@ozdao/prometheus-framework 0.2.198 → 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/@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/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/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.js +1 -1
- 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 +11 -10
- 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 +1 -1
- 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 +1 -1
- 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/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +6 -4
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.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 +7 -6
- 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 +16 -15
- 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 +27 -25
- 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/Header.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +1 -1
- 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/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
- 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 +124 -132
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
- 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/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +2 -1
- 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/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
- 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 +76 -70
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- 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 +2 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
- 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/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +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 +14 -13
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
- 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/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/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/spots/components/pages/SpotEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +2 -2
- 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 +8 -7
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/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/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +3 -3
- package/dist/prometheus-framework.cjs.js +22 -22
- package/dist/prometheus-framework.es.js +3228 -3201
- 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 +1 -2
- 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
|
4
|
+
import X from "../../../../components/Popup/Popup.vue2.js";
|
5
|
+
import Y from "../../../icons/entities/IconTime.vue.js";
|
8
6
|
import T from "../blocks/CardOrderItem.vue.js";
|
9
|
-
import
|
10
|
-
import
|
11
|
-
import
|
12
|
-
import { state as
|
13
|
-
import { actions as
|
14
|
-
import { actions as
|
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
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: L([{ "t-transp": !
|
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(T, {
|
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", $t,
|
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
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
|
-
t("div",
|
208
|
-
t("div",
|
199
|
+
t("div", Lt, [
|
200
|
+
t("div", Tt, [
|
209
201
|
qt,
|
210
|
-
t("p", null,
|
202
|
+
t("p", null, a(f(B)) + " " + a(s.returnCurrency()), 1)
|
211
203
|
]),
|
212
204
|
t("div", Ht, [
|
213
|
-
|
214
|
-
t("p", null,
|
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
|
};
|
package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("vue-router");;/* empty css */const P=require("../../../../components/Button/Button.vue2.cjs"),q=require("../../../../components/Tab/Tab.vue2.cjs"),k=require("../../../../components/Popup/Popup.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("vue-router");;/* empty css */const P=require("../../../../components/Button/Button.vue2.cjs"),q=require("../../../../components/Tab/Tab.vue2.cjs"),k=require("../../../../components/Popup/Popup.vue2.cjs"),u=require("../../../../components/Block/Block.vue.cjs"),b=require("../../../../components/Feed/Feed.vue.cjs"),_=require("../blocks/CardOrderItem.vue.cjs");;/* empty css */;/* empty css */const C=require("../../../users/components/blocks/CardUser.vue.cjs"),V=require("../sections/FormAddCustomer.vue.cjs"),O=require("../sections/FormDelivery.vue.cjs"),E=require("../sections/FormPayment.vue.cjs"),l=require("../../../globals/views/store/globals.cjs"),F=require("../../../auth/views/store/auth.cjs"),t=require("../../store/orders.cjs"),S=require("../../../products/store/products.cjs"),D=require("../../store/customers.store.cjs");;/* empty css */const R={class:"h-100 flex flex-column pd-thin"},T={class:"flex-v-center flex-nowrap flex"},A=e.createElementVNode("h2",{class:"mn-r-auto"},"Create Order",-1),I=e.createElementVNode("h3",{class:"mn-b-small"},"Add to order",-1),z={class:"bg-light h-max-100 mn-b-thin o-scroll pd-medium radius-big"},L={key:0,class:"w-100"},M={class:"h3 flex"},U=e.createElementVNode("span",{class:"mn-r-auto t-transp"},"In total",-1),j={__name:"OrderCreateBackoffice",setup(G){const a=f.useRoute(),g=f.useRouter();t.mutations.resetOrder(t.state.current);let v=e.computed(()=>Number(t.state.current.positions.reduce((d,n)=>d+n.price*n.quantity,0)));const s=e.ref("positions"),c=e.ref(!1);function y(){c.value=!0}function m(){c.value=!1}const i=e.ref(!1);function B(){i.value=!0}function p(){i.value=!1}e.ref(null);function w(){t.state.current.creator={type:"User",target:F.state.user._id},t.state.current.owner={type:"Organization",target:a.params._id},t.state.current.customer={type:"Customer",target:t.state.current.customer._id||null},t.actions.create(t.state.current)}function x(){g.push({name:"Backoffice Orders",params:{_id:a.params._id}})}return e.onMounted(()=>{}),(d,n)=>(e.openBlock(),e.createElementBlock("div",R,[e.createVNode(u.default,{class:"mn-b-thin"},{default:e.withCtx(()=>[e.createElementVNode("header",T,[A,e.createVNode(P.default,{submit:w,callback:x,class:"pd-small radius-big bg-main t-black uppercase t-medium"},{default:e.withCtx(()=>[e.createTextVNode(" Add Order ")]),_:1})])]),_:1}),e.createVNode(q.default,{selected:s.value,"onUpdate:selected":n[0]||(n[0]=r=>s.value=r),tabs:[{name:"Positions",value:"positions"},{name:"Customer",value:"customer"},{name:"Delivery",value:"delivery"},{name:"Payment",value:"payment"}],class:"t-medium radius-medium bg-light mn-b-small"},null,8,["selected"]),e.createVNode(k.default,{onClosePopup:m,isPopupOpen:c.value,class:"bg-white w-min-30r w-max-30r h-max-100 flex flex-column radius-big pd-medium pos-relative"},{default:e.withCtx(()=>[I,e.createElementVNode("div",z,[e.createVNode(b.default,{search:{placeholder:"Search products...",class:"bg-white mn-b-thin"},states:{empty:{title:"No Products Found",description:"Currently, there are no such products available."}},store:{read:r=>S.actions.read(r),state:null},options:{organization:e.unref(a).params._id},class:""},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(o,N)=>(e.openBlock(),e.createBlock(_.default,{key:o._id,editable:!1,product:o,onClick:()=>{let h={...o};h.quantity=1,l.actions.add(t.state.current.positions,h),m()},class:"bg-white pd-thin radius-medium w-100 mn-b-thin"},null,8,["product","onClick"]))),128))]),_:1},8,["store","options"])])]),_:1},8,["isPopupOpen"]),s.value==="positions"?(e.openBlock(),e.createBlock(u.default,{key:0,title:"Positions",actions:[{label:"+",function:()=>y()}],class:"mn-b-small"},{default:e.withCtx(()=>[t.state.current.positions.length===0?(e.openBlock(),e.createElementBlock("span",L," No positions added yet ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.positions,(r,o)=>(e.openBlock(),e.createBlock(_.default,{key:r._id,editable:!0,product:r,onIncrease:()=>{l.actions.increment(t.state.current.positions,r)},onDecrease:()=>{l.actions.decrement(t.state.current.positions,r)},onRemove:()=>{l.actions.delete(t.state.current.positions,r)},class:"mn-b-thin pd-thin radius-medium bg-white"},null,8,["product","onIncrease","onDecrease","onRemove"]))),128))]),_:1},8,["actions"])):e.createCommentVNode("",!0),s.value==="customer"?(e.openBlock(),e.createBlock(u.default,{key:1,title:"Customer",class:"mn-b-semi",actions:[{label:"+",function:()=>B()}]},{default:e.withCtx(()=>[t.state.current.customer._id?(e.openBlock(),e.createBlock(C.default,{key:0,user:t.state.current.customer,photo:t.state.current.customer.profile.photo,name:t.state.current.customer.profile.name||t.state.current.customer.phone||t.state.current.customer.email,onClick:n[1]||(n[1]=()=>{t.mutations.resetCustomer(t.state.current.customer)}),class:"bg-white pd-thin h-4r radius-medium w-100 mn-b-thin"},null,8,["user","photo","name"])):(e.openBlock(),e.createBlock(b.default,{key:1,search:{placeholder:"Search customer...",class:"bg-white mn-b-thin"},states:{empty:{title:"No Products Found",description:"Currently, there are no such products available."}},store:{read:r=>e.unref(D.default).read(r),state:null},options:{owner:e.unref(a).params._id},class:"bg-light h-max-20r o-scroll"},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(o,N)=>(e.openBlock(),e.createBlock(C.default,{key:o._id,user:o,photo:o.profile.photo,name:o.profile.name||o.phone||o.email,onClick:()=>{t.state.current.customer=o},class:"bg-white pd-thin h-4r radius-medium w-100 mn-b-thin"},null,8,["user","photo","name","onClick"]))),128))]),_:1},8,["store","options"]))]),_:1},8,["actions"])):e.createCommentVNode("",!0),s.value==="delivery"?(e.openBlock(),e.createBlock(O.default,{key:2,order:t.state.current},null,8,["order"])):e.createCommentVNode("",!0),s.value==="payment"?(e.openBlock(),e.createBlock(E.default,{key:3,order:t.state.current},null,8,["order"])):e.createCommentVNode("",!0),e.createVNode(k.default,{title:"Add customer",onClosePopup:p,isPopupOpen:i.value,class:e.normalizeClass("bg-white w-min-30r w-max-30r radius-big pd-medium")},{default:e.withCtx(()=>[e.createVNode(V.default,{onCallbackCustomer:p})]),_:1},8,["isPopupOpen"]),e.createVNode(u.default,{class:"mn-b-semi"},{default:e.withCtx(()=>[e.createElementVNode("div",M,[U,e.createElementVNode("span",null,e.toDisplayString(e.unref(v))+" "+e.toDisplayString(d.returnCurrency()),1)])]),_:1})]))}};exports.default=j;
|
package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js
CHANGED
@@ -3,11 +3,11 @@ import { useRoute as L, useRouter as M } from "vue-router";
|
|
3
3
|
/* empty css */
|
4
4
|
import j from "../../../../components/Button/Button.vue2.js";
|
5
5
|
import G from "../../../../components/Tab/Tab.vue2.js";
|
6
|
-
import O from "../../../../components/Popup/Popup.
|
6
|
+
import O from "../../../../components/Popup/Popup.vue2.js";
|
7
7
|
import h from "../../../../components/Block/Block.vue.js";
|
8
8
|
import $ from "../../../../components/Feed/Feed.vue.js";
|
9
9
|
import N from "../blocks/CardOrderItem.vue.js";
|
10
|
-
/* empty css
|
10
|
+
/* empty css */
|
11
11
|
/* empty css */
|
12
12
|
import B from "../../../users/components/blocks/CardUser.vue.js";
|
13
13
|
import H from "../sections/FormAddCustomer.vue.js";
|
@@ -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
|
};
|
package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("vue-router"),k=require("../../../../components/Block/Block.vue.cjs");;/* empty css */const b=require("../../../../components/FieldPhone/click-outside.cjs");;/* empty css
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("vue-router"),k=require("../../../../components/Block/Block.vue.cjs");;/* empty css */const b=require("../../../../components/FieldPhone/click-outside.cjs");;/* empty css */const g=require("../../../../components/Feed/Feed.vue.cjs"),v=require("../../../../components/Button/Button.vue2.cjs"),C=require("../../../globals/views/components/blocks/BlockSearch.vue.cjs"),n=require("../../../users/components/blocks/CardUser.vue.cjs"),q=require("./FormCustomerDetails.vue.cjs"),_=require("../../../users/store/users.cjs"),w=require("../../../auth/views/store/auth.cjs"),B=require("../../../globals/views/store/globals.cjs"),y=require("../../store/customers.store.cjs"),x=require("../../store/models/customer.cjs"),E={key:2,class:"mn-t-thin pos-absolute w-100 pos-t-100 pos-l-0 z-index-3 bg-light pd-small radius-small"},N={__name:"FormAddCustomer",props:{order:Object},emits:["callbackCustomer"],setup(V,{emit:i}){let c=b.default;const d=i,m=h.useRoute();let r=e.ref(x.default),u=e.ref(null),l=e.ref(!1);async function f(){let a={identity:{type:r.value.user?"User":"Visitor",target:r.value.user?r.value.user._id:null},owner:{type:"Organization",target:m.params._id},creator:{type:"User",target:w.state.user._id},phone:r.value.phone,email:r.value.email,profile:r.value.profile,socials:r.value.socials};try{let o=await y.default.create(a);r.value=o}catch(o){console.log(o)}}function p(){d("callbackCustomer",r.value)}return(a,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(k.default,{class:"pos-relative mn-b-thin"},{default:e.withCtx(()=>[e.unref(r).user?(e.openBlock(),e.createBlock(n.default,{key:1,user:e.unref(r).user,photo:e.unref(r).user.profile.photo,name:e.unref(r).user.profile.name||e.unref(r).user.phone||e.unref(r).user.email,onClick:o[1]||(o[1]=()=>{e.unref(r).user=null}),class:"bg-white h-2r pd-thin radius-medium w-100"},null,8,["user","photo","name"])):e.withDirectives((e.openBlock(),e.createBlock(C.default,{key:0,onSearch:o[0]||(o[0]=s=>{e.isRef(u)?u.value=s:u=s,e.isRef(l)?l.value=!0:l=!0}),placeholder:"Enter name, phone or email",class:"bg-white"},null,512)),[[e.unref(c),()=>{e.isRef(l)?l.value=!1:l=!1}]]),e.unref(u)&&e.unref(l)&&!e.unref(r).user?(e.openBlock(),e.createElementBlock("div",E,[e.createVNode(g.default,{states:{empty:{title:"No User Found",description:"Currently, there are no such user."}},store:{read:s=>_.actions.read(s),state:null},options:{search:e.unref(u)},showLoadMore:!1,class:"h-max-20r o-scroll"},{default:e.withCtx(({items:s})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s,(t,F)=>(e.openBlock(),e.createBlock(n.default,{key:t._id,user:t,photo:t.profile.photo,name:t.profile.name||t.phone||t.email,onClick:()=>{e.unref(r).user=t,e.unref(r).profile=t.profile,e.unref(r).phone=t.phone,e.unref(r).email=t.email,e.unref(r).socials=t.socials},class:"bg-white h-2r pd-thin radius-medium w-100 mn-b-thin"},null,8,["user","photo","name","onClick"]))),128))]),_:1},8,["store","options"])])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(q.default,{customer:e.unref(r),class:"mn-b-thin bg-light"},null,8,["customer"]),e.createVNode(v.default,{submit:f,callback:p,onError:e.unref(B.setError),class:"w-100 pd-small radius-big bg-main t-black uppercase t-medium"},{default:e.withCtx(()=>[e.createTextVNode(" Add Customer ")]),_:1},8,["onError"])],64))}};exports.default=N;
|
package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js
CHANGED
@@ -3,7 +3,7 @@ import { useRoute as U } from "vue-router";
|
|
3
3
|
import N from "../../../../components/Block/Block.vue.js";
|
4
4
|
/* empty css */
|
5
5
|
import O from "../../../../components/FieldPhone/click-outside.js";
|
6
|
-
/* empty css
|
6
|
+
/* empty css */
|
7
7
|
import V from "../../../../components/Feed/Feed.vue.js";
|
8
8
|
import B from "../../../../components/Button/Button.vue2.js";
|
9
9
|
import F from "../../../globals/views/components/blocks/BlockSearch.vue.js";
|
package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../../../components/Block/Block.vue.cjs"),n=require("../../../../components/Field/Field.vue2.cjs"),o=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),u=require("../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../../../components/Block/Block.vue.cjs"),n=require("../../../../components/Field/Field.vue2.cjs"),o=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),u=require("../../../../components/Select/Select.vue2.cjs"),i={class:"gap-thin flex-justify-between flex-nowrap flex"},d={__name:"FormCustomerDetails",props:{customer:Object,title:{type:String,default:"Personal Data"}},setup(a){let s=e.ref("instagram");return(m,l)=>(e.openBlock(),e.createBlock(r.default,{title:a.title,class:"mn-b-thin"},{default:e.withCtx(()=>[e.createVNode(n.default,{field:a.customer.profile.name,"onUpdate:field":l[0]||(l[0]=t=>a.customer.profile.name=t),label:"Name",placeholder:"Enter name",class:"bg-white pd-small radius-small mn-b-thin"},null,8,["field"]),e.createVNode(o.default,{modelValue:a.customer.phone,"onUpdate:modelValue":l[1]||(l[1]=t=>a.customer.phone=t),onCountry:l[2]||(l[2]=t=>{a.customer.number=t}),inputOptions:{placeholder:"Enter phone number",type:"tel"},defaultCountry:"TH",validCharactersOnly:!0,dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},mode:"national",class:"w-100 bg-white pd-small mn-b-thin radius-small"},null,8,["modelValue"]),e.createElementVNode("div",i,[e.createVNode(u.default,{select:e.unref(s),options:[{name:"Instagram",value:"instagram"},{name:"Telegram",value:"telegram"},{name:"WhatsApp",value:"whatsapp"}],"onUpdate:select":l[3]||(l[3]=t=>e.isRef(s)?s.value=t:s=t),placeholder:"Messenger",size:"small",class:"bg-white pd-small radius-small"},null,8,["select"]),e.createVNode(n.default,{field:a.customer.socials[e.unref(s)],"onUpdate:field":l[4]||(l[4]=t=>a.customer.socials[e.unref(s)]=t),label:"@",placeholder:"Enter username",class:"bg-white pd-small radius-small w-100"},null,8,["field"])])]),_:1},8,["title"]))}};exports.default=d;
|
package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js
CHANGED
@@ -2,7 +2,7 @@ import { ref as o, openBlock as m, createBlock as i, withCtx as u, createVNode a
|
|
2
2
|
import p from "../../../../components/Block/Block.vue.js";
|
3
3
|
import r from "../../../../components/Field/Field.vue2.js";
|
4
4
|
import c from "../../../../components/FieldPhone/FieldPhone.vue.js";
|
5
|
-
import g from "../../../../components/Select/Select.
|
5
|
+
import g from "../../../../components/Select/Select.vue2.js";
|
6
6
|
const h = { class: "gap-thin flex-justify-between flex-nowrap flex" }, V = {
|
7
7
|
__name: "FormCustomerDetails",
|
8
8
|
props: {
|
package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../../../components/Block/Block.vue.cjs"),n=require("../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../../../components/Block/Block.vue.cjs"),n=require("../../../../components/Select/Select.vue2.cjs"),o={class:"mn-b-small flex-nowrap flex"},s={__name:"FormPayment",props:{order:Object},setup(t){return(c,l)=>(e.openBlock(),e.createBlock(r.default,{title:"Payment"},{default:e.withCtx(()=>[e.createElementVNode("div",o,[e.createVNode(n.default,{select:t.order.payment.type,"onUpdate:select":l[0]||(l[0]=a=>t.order.payment.type=a),property:"value",options:[{name:"Cash On Delivery",value:"cash"},{name:"Bank Transfer",value:"bank"},{name:"Crypto",value:"crypto"}],placeholder:"Select type of payment",size:"small",class:"bg-white pd-medium radius-small w-100"},null,8,["select"])])]),_:1}))}};exports.default=s;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { openBlock as r, createBlock as l, withCtx as o, createElementVNode as n, createVNode as m } from "vue";
|
2
2
|
import s from "../../../../components/Block/Block.vue.js";
|
3
|
-
import p from "../../../../components/Select/Select.
|
3
|
+
import p from "../../../../components/Select/Select.vue2.js";
|
4
4
|
const c = { class: "mn-b-small flex-nowrap flex" }, f = {
|
5
5
|
__name: "FormPayment",
|
6
6
|
props: {
|