@feedmepos/mf-order-setting 0.0.104 → 0.0.105
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{DisplaySystemView-vuipxGRx.js → DisplaySystemView-CFr9DnaD.js} +4 -4
- package/dist/{FoodCourtInvitationsView-BZMsiArC.js → FoodCourtInvitationsView-Bo174yfB.js} +4 -4
- package/dist/{FoodCourtOrderSettingsView-i4bTicbZ.js → FoodCourtOrderSettingsView-uUe53O0Z.js} +1 -1
- package/dist/{FoodCourtOrdersView-CZM4c0bp.js → FoodCourtOrdersView-CxC5oGp2.js} +4 -4
- package/dist/{FoodCourtStallsView-BLeIFnAy.js → FoodCourtStallsView-BEpRBmSL.js} +2 -2
- package/dist/{FoodCourtStatusView-1oG0L1NW.js → FoodCourtStatusView-DA7mdsuf.js} +1 -1
- package/dist/{KioskDevicesView-AuzH288u.js → KioskDevicesView-BY9Egk75.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-C1OGpYPP.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-CxroxD-b.js} +5 -5
- package/dist/{KioskSettingView-BWcj91OM.js → KioskSettingView-DPaQ7YFV.js} +3 -3
- package/dist/{KioskView-Cj5FSqJn.js → KioskView-BYL0u6kj.js} +8 -8
- package/dist/{OrderSettingsView-Cl8fOtbj.js → OrderSettingsView-BBHAhgE9.js} +14212 -14191
- package/dist/{RestaurantSelector.vue_vue_type_script_setup_true_lang-c8v_szfd.js → RestaurantSelector.vue_vue_type_script_setup_true_lang--9bdtLE1.js} +1 -1
- package/dist/{app-Cf1H6V1s.js → app-BV2USn83.js} +1616 -1378
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-D-VxMFb0.js → dayjs.min-Bp4Kgnt_.js} +1 -1
- package/dist/{featureFlag-rUt7H5aH.js → featureFlag-C1uGG7u6.js} +1 -1
- package/dist/frontend/mf-order/src/app.d.ts +222 -0
- package/dist/frontend/mf-order/src/main.d.ts +222 -0
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-CtKOHwTp.js → index-0GuybwuA.js} +1 -1
- package/dist/{index-ffTQvJeM.js → index-CRNutZC_.js} +4 -4
- package/dist/{index-C3BPAUoF.js → index-D0ZIByef.js} +1 -1
- package/dist/{index-CMaJn6Yc.js → index-HF3qh9qG.js} +1 -1
- package/dist/{index-GZ4oNEnl.js → index-KWOCCun9.js} +2 -2
- package/dist/{order.dto-Dk3w1iY7.js → order.dto-GQaBESZq.js} +2 -2
- package/dist/{useInternalUser-8uTpJ7hZ.js → useInternalUser-C39xpsBU.js} +1 -1
- package/package.json +1 -1
- package/src/locales/en-US.json +111 -0
- package/src/locales/th-TH.json +116 -5
- package/src/views/order-settings/reservation/CopySettingsSheet.vue +21 -21
- package/src/views/order-settings/reservation/ReservationSetting.vue +226 -148
- package/src/views/order-settings/reservation/reservation-pos-note.spec.ts +1 -1
|
@@ -22,7 +22,7 @@ import CopySettingsSheet from './CopySettingsSheet.vue'
|
|
|
22
22
|
import { RESERVATION_MIN_POS_VERSION } from '../dine-in/reservation-pos'
|
|
23
23
|
import notfound from '@/assets/images/not-found.png'
|
|
24
24
|
|
|
25
|
-
const { t } = useI18n()
|
|
25
|
+
const { t, locale } = useI18n()
|
|
26
26
|
const { showSuccess } = useSnackbarFunctions()
|
|
27
27
|
const { currentRestaurant, restaurants } = useCoreStore()
|
|
28
28
|
const { isLoading, startAsyncCallWithErr } = useLoading()
|
|
@@ -41,17 +41,13 @@ const generateRangeDefaults = (index = 0) => ({
|
|
|
41
41
|
const generateCapacityTierId = () =>
|
|
42
42
|
new Date().toISOString() + '-' + Math.random().toString(36).substr(2, 9)
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
- Our restaurant enforces a dining time limit of 1 hour and 30 minutes.
|
|
48
|
-
|
|
49
|
-
2. 15-Minute Holding Policy
|
|
50
|
-
- We can hold your reservation for a maximum of 15 minutes. If we are unable to reach you after this time, your table may be released without prior notice. If you anticipate being late or need to cancel, please call us to let us know so we can either hold your table or offer it to other guests.`
|
|
51
|
-
|
|
52
|
-
const DEFAULT_CANCELLATION_POLICY = `Cancellation Policy
|
|
44
|
+
function defaultGuestMessage() {
|
|
45
|
+
return t('order.reservationSetting.guestMessageDefault')
|
|
46
|
+
}
|
|
53
47
|
|
|
54
|
-
|
|
48
|
+
function defaultCancellationPolicy() {
|
|
49
|
+
return t('order.reservationSetting.cancellationPolicyDefault')
|
|
50
|
+
}
|
|
55
51
|
|
|
56
52
|
function createDefaultCapacityTiers() {
|
|
57
53
|
return [
|
|
@@ -141,8 +137,8 @@ function createDefaultRange(index = 0): FdoReservationRange {
|
|
|
141
137
|
preferences: [],
|
|
142
138
|
capacityTiers: createDefaultCapacityTiers(),
|
|
143
139
|
slotInterval: 30,
|
|
144
|
-
guestMessage:
|
|
145
|
-
cancellationPolicy:
|
|
140
|
+
guestMessage: defaultGuestMessage(),
|
|
141
|
+
cancellationPolicy: defaultCancellationPolicy()
|
|
146
142
|
}
|
|
147
143
|
}
|
|
148
144
|
|
|
@@ -369,6 +365,17 @@ const hasMoreItems = computed(() => {
|
|
|
369
365
|
}
|
|
370
366
|
})
|
|
371
367
|
|
|
368
|
+
// Thai uses Thai month names (e.g. 10 พ.ย. 2026); other locales keep the English DD MMM YYYY.
|
|
369
|
+
// The Gregorian calendar is forced so the year stays 2026, not the Buddhist-era 2569.
|
|
370
|
+
function formatPreviewDate(date: moment.Moment) {
|
|
371
|
+
if (!String(locale.value).startsWith('th')) return date.format('DD MMM YYYY')
|
|
372
|
+
return new Intl.DateTimeFormat('th-TH-u-ca-gregory', {
|
|
373
|
+
day: '2-digit',
|
|
374
|
+
month: 'short',
|
|
375
|
+
year: 'numeric'
|
|
376
|
+
}).format(date.toDate())
|
|
377
|
+
}
|
|
378
|
+
|
|
372
379
|
const reservationPreview = computed(() => {
|
|
373
380
|
const today = moment()
|
|
374
381
|
const { minLeadDuration, maxLeadDuration } = rangeSetting.value
|
|
@@ -382,8 +389,8 @@ const reservationPreview = computed(() => {
|
|
|
382
389
|
// Check if hours exist for both days
|
|
383
390
|
if (!startDayHours || startDayHours.length === 0 || !endDayHours || endDayHours.length === 0) {
|
|
384
391
|
return {
|
|
385
|
-
start: startDate
|
|
386
|
-
end: endDate
|
|
392
|
+
start: formatPreviewDate(startDate),
|
|
393
|
+
end: formatPreviewDate(endDate),
|
|
387
394
|
startHour: '--:--',
|
|
388
395
|
endHour: '--:--'
|
|
389
396
|
}
|
|
@@ -401,8 +408,8 @@ const reservationPreview = computed(() => {
|
|
|
401
408
|
)[0]
|
|
402
409
|
|
|
403
410
|
return {
|
|
404
|
-
start: startDate
|
|
405
|
-
end: endDate
|
|
411
|
+
start: formatPreviewDate(startDate),
|
|
412
|
+
end: formatPreviewDate(endDate),
|
|
406
413
|
startHour: moment(startHour.start, 'HH:mm').format('hh:mm A'),
|
|
407
414
|
endHour: moment(endHour.end, 'HH:mm').format('hh:mm A')
|
|
408
415
|
}
|
|
@@ -440,7 +447,7 @@ async function updateReservationSetting() {
|
|
|
440
447
|
if (hasAnyTimeRangeErrors()) {
|
|
441
448
|
dialog.open({
|
|
442
449
|
title: t('order.validationError'),
|
|
443
|
-
message: '
|
|
450
|
+
message: t('order.reservationSetting.fixTimeRangeErrors'),
|
|
444
451
|
primaryActions: { text: t('order.ok'), close: true }
|
|
445
452
|
})
|
|
446
453
|
return
|
|
@@ -653,7 +660,7 @@ function isEditingOption(prefIndex: number, optIndex: number): boolean {
|
|
|
653
660
|
|
|
654
661
|
function toggleGuestMessage(enabled: boolean) {
|
|
655
662
|
if (enabled) {
|
|
656
|
-
rangeSetting.value.guestMessage =
|
|
663
|
+
rangeSetting.value.guestMessage = defaultGuestMessage()
|
|
657
664
|
} else {
|
|
658
665
|
rangeSetting.value.guestMessage = null
|
|
659
666
|
}
|
|
@@ -661,7 +668,7 @@ function toggleGuestMessage(enabled: boolean) {
|
|
|
661
668
|
|
|
662
669
|
function toggleCancellationPolicy(enabled: boolean) {
|
|
663
670
|
if (enabled) {
|
|
664
|
-
rangeSetting.value.cancellationPolicy =
|
|
671
|
+
rangeSetting.value.cancellationPolicy = defaultCancellationPolicy()
|
|
665
672
|
} else {
|
|
666
673
|
rangeSetting.value.cancellationPolicy = null
|
|
667
674
|
}
|
|
@@ -678,7 +685,7 @@ function validateTimeRange(day: 0 | 1 | 2 | 3 | 4 | 5 | 6, hourIndex: number): s
|
|
|
678
685
|
|
|
679
686
|
// Validate same day time range (end > start)
|
|
680
687
|
if (!validateSameDayTimeRange(range)) {
|
|
681
|
-
return '
|
|
688
|
+
return t('order.reservationSetting.timeRangeSameStartEnd')
|
|
682
689
|
}
|
|
683
690
|
|
|
684
691
|
// Check for overlaps with other time ranges
|
|
@@ -687,7 +694,7 @@ function validateTimeRange(day: 0 | 1 | 2 | 3 | 4 | 5 | 6, hourIndex: number): s
|
|
|
687
694
|
|
|
688
695
|
// Use shared utility to check overlap
|
|
689
696
|
if (validateTimeRangeOverlap(range, dayHours[i])) {
|
|
690
|
-
return '
|
|
697
|
+
return t('order.reservationSetting.timeRangeOverlap')
|
|
691
698
|
}
|
|
692
699
|
}
|
|
693
700
|
|
|
@@ -725,11 +732,11 @@ function validateLeadDurationLocal(): string | null {
|
|
|
725
732
|
|
|
726
733
|
// Use shared utility to validate
|
|
727
734
|
if (!validateLeadDuration(minLeadDuration, maxLeadDuration)) {
|
|
728
|
-
return '
|
|
735
|
+
return t('order.reservationSetting.maxLeadMustExceedMin')
|
|
729
736
|
}
|
|
730
737
|
|
|
731
738
|
if (minLeadDuration.value < 0 || maxLeadDuration.value < 0) {
|
|
732
|
-
return '
|
|
739
|
+
return t('order.reservationSetting.leadTimeMustBePositive')
|
|
733
740
|
}
|
|
734
741
|
|
|
735
742
|
return null
|
|
@@ -739,10 +746,10 @@ function validateLeadDurationLocal(): string | null {
|
|
|
739
746
|
function validateCapacityTiers(): string | null {
|
|
740
747
|
for (const tier of rangeSetting.value.capacityTiers) {
|
|
741
748
|
if (tier.minPax < 1) {
|
|
742
|
-
return '
|
|
749
|
+
return t('order.reservationSetting.minGuestsAtLeastOne')
|
|
743
750
|
}
|
|
744
751
|
if (tier.maxPax != null && tier.maxPax < tier.minPax) {
|
|
745
|
-
return '
|
|
752
|
+
return t('order.reservationSetting.maxGuestsAtLeastMin')
|
|
746
753
|
}
|
|
747
754
|
}
|
|
748
755
|
return null
|
|
@@ -792,8 +799,8 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
792
799
|
outlet to POS too is "Accept reservation" in the Dine-in tab. -->
|
|
793
800
|
<FmSwitch
|
|
794
801
|
label-placement="right"
|
|
795
|
-
:label="'
|
|
796
|
-
:sublabel="'
|
|
802
|
+
:label="t('order.reservationSetting.onlineBooking')"
|
|
803
|
+
:sublabel="t('order.reservationSetting.onlineBookingSublabel')"
|
|
797
804
|
:model-value="rangeSetting.enable !== false"
|
|
798
805
|
@update:model-value="(v: boolean) => (rangeSetting.enable = v)"
|
|
799
806
|
/>
|
|
@@ -848,9 +855,7 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
848
855
|
<div class="mb-5">
|
|
849
856
|
<div class="mb-8 fm-typo-en-body-md-600 flex items-center gap-8">
|
|
850
857
|
{{ t('order.draftHoldTimeMinutes') }}
|
|
851
|
-
<FmTooltip
|
|
852
|
-
:content="'The amount of time a reservation is held before it is automatically released.'"
|
|
853
|
-
>
|
|
858
|
+
<FmTooltip :content="t('order.reservationSetting.draftHoldTimeTooltip')">
|
|
854
859
|
<FmIcon name="info" outline size="sm" class="cursor-pointer" />
|
|
855
860
|
</FmTooltip>
|
|
856
861
|
</div>
|
|
@@ -861,7 +866,7 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
861
866
|
(v: string | number) =>
|
|
862
867
|
updateSetting('draftHoldTimeMinutes', v === '' ? 15 : Number(v))
|
|
863
868
|
"
|
|
864
|
-
suffix="minutes"
|
|
869
|
+
:suffix="t('order.reservationSetting.minutes')"
|
|
865
870
|
class="max-w-md"
|
|
866
871
|
/>
|
|
867
872
|
</div>
|
|
@@ -882,12 +887,11 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
882
887
|
{{ t('order.reservationAvailability') }}
|
|
883
888
|
</div>
|
|
884
889
|
<div class="fm-typo-en-body-lg-400 text-fm-color-typo-secondary mb-24">
|
|
885
|
-
|
|
886
|
-
availability updates automatically.
|
|
890
|
+
{{ t('order.reservationSetting.availabilityDescription') }}
|
|
887
891
|
</div>
|
|
888
892
|
<!-- Availability settings (eg. the min/max lead, and time interval + booking duration) -->
|
|
889
893
|
<div class="mb-24">
|
|
890
|
-
<div class="mb-8">
|
|
894
|
+
<div class="mb-8">{{ t('order.reservationSetting.preview') }}</div>
|
|
891
895
|
<div class="flex items-center gap-4 mb-8">
|
|
892
896
|
<div
|
|
893
897
|
class="w-fit border-1 border-fm-color-neutral-gray-200 rounded-md py-4 px-8 bg-fm-color-neutral-gray-100 flex items-center gap-8 text-fm-color-typo-tertiary"
|
|
@@ -897,7 +901,7 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
897
901
|
{{ reservationPreview.start + ' ' + reservationPreview.startHour }}
|
|
898
902
|
</div>
|
|
899
903
|
</div>
|
|
900
|
-
<div>to</div>
|
|
904
|
+
<div>{{ t('order.reservationSetting.to') }}</div>
|
|
901
905
|
<div
|
|
902
906
|
class="w-fit border-1 border-fm-color-neutral-gray-200 rounded-md py-4 px-8 bg-fm-color-neutral-gray-100 flex items-center gap-8 text-fm-color-typo-tertiary"
|
|
903
907
|
>
|
|
@@ -908,26 +912,31 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
908
912
|
</div>
|
|
909
913
|
</div>
|
|
910
914
|
<div class="fm-typo-en-body-md-400 text-fm-color-typo-secondary">
|
|
911
|
-
|
|
912
|
-
<strong> {{ reservationPreview.start + ', ' + reservationPreview.startHour }} </strong
|
|
913
|
-
|
|
915
|
+
{{ t('order.reservationSetting.reservationsOpenOnPrefix') }}
|
|
916
|
+
<strong> {{ reservationPreview.start + ', ' + reservationPreview.startHour }} </strong
|
|
917
|
+
>{{ t('order.reservationSetting.reservationsOpenOnSuffix') }}
|
|
914
918
|
</div>
|
|
915
919
|
</div>
|
|
916
920
|
|
|
917
921
|
<div class="mb-24">
|
|
918
|
-
<div class="mb-8">
|
|
922
|
+
<div class="mb-8">{{ t('order.reservationSetting.presets') }}</div>
|
|
919
923
|
<FmRadioGroup
|
|
920
924
|
:model-value="selectedPreset"
|
|
921
925
|
@update:model-value="(v: number | 'custom') => updateMaxLeadPreset(v)"
|
|
922
926
|
>
|
|
923
|
-
<FmRadio label="30
|
|
927
|
+
<FmRadio :label="t('order.reservationSetting.daysCount', { count: 30 })" :value="30">
|
|
924
928
|
<template #label>
|
|
925
|
-
<div>
|
|
929
|
+
<div>
|
|
930
|
+
{{ t('order.reservationSetting.daysCount', { count: 30 }) }}
|
|
931
|
+
<span class="text-fm-color-typo-secondary">{{
|
|
932
|
+
t('order.reservationSetting.default')
|
|
933
|
+
}}</span>
|
|
934
|
+
</div>
|
|
926
935
|
</template>
|
|
927
936
|
</FmRadio>
|
|
928
|
-
<FmRadio label="60
|
|
929
|
-
<FmRadio label="90
|
|
930
|
-
<FmRadio label="
|
|
937
|
+
<FmRadio :label="t('order.reservationSetting.daysCount', { count: 60 })" :value="60" />
|
|
938
|
+
<FmRadio :label="t('order.reservationSetting.daysCount', { count: 90 })" :value="90" />
|
|
939
|
+
<FmRadio :label="t('order.reservationSetting.custom')" :value="'custom'" />
|
|
931
940
|
</FmRadioGroup>
|
|
932
941
|
|
|
933
942
|
<!-- Custom preset fields -->
|
|
@@ -937,10 +946,8 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
937
946
|
>
|
|
938
947
|
<div class="mb-16">
|
|
939
948
|
<div class="mb-8 fm-typo-en-body-md-600 flex items-center gap-8">
|
|
940
|
-
|
|
941
|
-
<FmTooltip
|
|
942
|
-
:content="'The earliest time a guest can make a reservation. For example, if you set this to 1 day, guests can only make reservations from tomorrow onwards.'"
|
|
943
|
-
>
|
|
949
|
+
{{ t('order.reservationSetting.minLeadTime') }}
|
|
950
|
+
<FmTooltip :content="t('order.reservationSetting.minLeadTimeTooltip')">
|
|
944
951
|
<FmIcon name="info" outline size="sm" class="cursor-pointer" />
|
|
945
952
|
</FmTooltip>
|
|
946
953
|
</div>
|
|
@@ -955,8 +962,8 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
955
962
|
:model-value="rangeSetting.minLeadDuration.unit"
|
|
956
963
|
@update:model-value="(v: 'hour' | 'day') => updateMinLeadUnit(v)"
|
|
957
964
|
:items="[
|
|
958
|
-
{ label: '
|
|
959
|
-
{ label: '
|
|
965
|
+
{ label: t('order.reservationSetting.hours'), value: 'hour' },
|
|
966
|
+
{ label: t('order.reservationSetting.days'), value: 'day' }
|
|
960
967
|
]"
|
|
961
968
|
class="w-120"
|
|
962
969
|
/>
|
|
@@ -965,10 +972,8 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
965
972
|
|
|
966
973
|
<div>
|
|
967
974
|
<div class="mb-8 fm-typo-en-body-md-600 flex items-center gap-8">
|
|
968
|
-
|
|
969
|
-
<FmTooltip
|
|
970
|
-
:content="'The furthest in advance a guest can make a reservation. For example, if you set this to 30 days, guests can only make reservations up to 30 days from today.'"
|
|
971
|
-
>
|
|
975
|
+
{{ t('order.reservationSetting.maxLeadTime') }}
|
|
976
|
+
<FmTooltip :content="t('order.reservationSetting.maxLeadTimeTooltip')">
|
|
972
977
|
<FmIcon name="info" outline size="sm" class="cursor-pointer" />
|
|
973
978
|
</FmTooltip>
|
|
974
979
|
</div>
|
|
@@ -983,8 +988,8 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
983
988
|
:model-value="rangeSetting.maxLeadDuration.unit"
|
|
984
989
|
@update:model-value="(v: 'hour' | 'day') => updateMaxLeadUnit(v)"
|
|
985
990
|
:items="[
|
|
986
|
-
{ label: '
|
|
987
|
-
{ label: '
|
|
991
|
+
{ label: t('order.reservationSetting.hours'), value: 'hour' },
|
|
992
|
+
{ label: t('order.reservationSetting.days'), value: 'day' }
|
|
988
993
|
]"
|
|
989
994
|
class="w-120"
|
|
990
995
|
/>
|
|
@@ -1000,10 +1005,11 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
1000
1005
|
</div>
|
|
1001
1006
|
|
|
1002
1007
|
<div class="flex flex-col">
|
|
1003
|
-
<div class="flex-grow fm-typo-en-title-sm-600 mb-4">
|
|
1008
|
+
<div class="flex-grow fm-typo-en-title-sm-600 mb-4">
|
|
1009
|
+
{{ t('order.reservationSetting.timeSettings') }}
|
|
1010
|
+
</div>
|
|
1004
1011
|
<div class="fm-typo-en-body-lg-400 text-fm-color-typo-secondary mb-12">
|
|
1005
|
-
|
|
1006
|
-
Available time slots will be generated automatically.
|
|
1012
|
+
{{ t('order.reservationSetting.timeSettingsDescription') }}
|
|
1007
1013
|
</div>
|
|
1008
1014
|
|
|
1009
1015
|
<!-- Operating hour setting -->
|
|
@@ -1012,21 +1018,21 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
1012
1018
|
<div
|
|
1013
1019
|
class="p-12 fm-typo-en-body-md-600 text-fm-color-typo-secondary bg-fm-color-neutral-gray-100"
|
|
1014
1020
|
>
|
|
1015
|
-
|
|
1021
|
+
{{ t('order.reservationSetting.day') }}
|
|
1016
1022
|
</div>
|
|
1017
1023
|
<div
|
|
1018
1024
|
class="p-12 fm-typo-en-body-md-600 text-fm-color-typo-secondary bg-fm-color-neutral-gray-100"
|
|
1019
1025
|
>
|
|
1020
|
-
|
|
1026
|
+
{{ t('order.reservationSetting.openClosed') }}
|
|
1021
1027
|
</div>
|
|
1022
1028
|
<div
|
|
1023
1029
|
class="p-12 fm-typo-en-body-md-600 text-fm-color-typo-secondary bg-fm-color-neutral-gray-100"
|
|
1024
1030
|
>
|
|
1025
|
-
|
|
1031
|
+
{{ t('order.reservationSetting.reservationTimeRange') }}
|
|
1026
1032
|
</div>
|
|
1027
1033
|
<template v-for="day in [1, 2, 3, 4, 5, 6, 0] as const" :key="day">
|
|
1028
1034
|
<div class="fm-typo-en-body-md-400 py-12 px-12">
|
|
1029
|
-
{{
|
|
1035
|
+
{{ t(`order.reservationSetting.weekdays.${day}`) }}
|
|
1030
1036
|
</div>
|
|
1031
1037
|
<template v-if="rangeSetting.operatingHours[day as 0 | 1 | 2 | 3 | 4 | 5 | 6]">
|
|
1032
1038
|
<template
|
|
@@ -1050,7 +1056,11 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
1050
1056
|
: []
|
|
1051
1057
|
}
|
|
1052
1058
|
"
|
|
1053
|
-
:label="
|
|
1059
|
+
:label="
|
|
1060
|
+
hours.enable
|
|
1061
|
+
? t('order.reservationSetting.open')
|
|
1062
|
+
: t('order.reservationSetting.closed')
|
|
1063
|
+
"
|
|
1054
1064
|
/>
|
|
1055
1065
|
</div>
|
|
1056
1066
|
<div class="px-12 self-center">
|
|
@@ -1063,7 +1073,9 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
1063
1073
|
v-model="hour.start"
|
|
1064
1074
|
:min-time="hours.hours[hi - 1]?.end ?? '00:00'"
|
|
1065
1075
|
/>
|
|
1066
|
-
<div class="text-center w-16 flex-shrink-0">
|
|
1076
|
+
<div class="text-center w-16 flex-shrink-0">
|
|
1077
|
+
{{ t('order.reservationSetting.to') }}
|
|
1078
|
+
</div>
|
|
1067
1079
|
<CustomTimePicker
|
|
1068
1080
|
v-model="hour.end"
|
|
1069
1081
|
:min-time="hour.start"
|
|
@@ -1104,8 +1116,8 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
1104
1116
|
<div class="border-r py-[24px] px-16">
|
|
1105
1117
|
<div class="mb-24">
|
|
1106
1118
|
<div class="mb-8 fm-typo-en-body-lg-600 flex items-center gap-8">
|
|
1107
|
-
|
|
1108
|
-
<FmTooltip :content="'
|
|
1119
|
+
{{ t('order.reservationSetting.timeInterval') }}
|
|
1120
|
+
<FmTooltip :content="t('order.reservationSetting.timeIntervalTooltip')">
|
|
1109
1121
|
<FmIcon name="info" outline size="sm" class="cursor-pointer" />
|
|
1110
1122
|
</FmTooltip>
|
|
1111
1123
|
</div>
|
|
@@ -1113,20 +1125,32 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
1113
1125
|
:model-value="rangeSetting.slotInterval"
|
|
1114
1126
|
@update:model-value="(v: number) => updateSlotInterval(v)"
|
|
1115
1127
|
>
|
|
1116
|
-
<FmRadio
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1128
|
+
<FmRadio
|
|
1129
|
+
:label="t('order.reservationSetting.minutesShort', { count: 15 })"
|
|
1130
|
+
:value="15"
|
|
1131
|
+
/>
|
|
1132
|
+
<FmRadio
|
|
1133
|
+
:label="t('order.reservationSetting.minutesShort', { count: 30 })"
|
|
1134
|
+
:value="30"
|
|
1135
|
+
>
|
|
1136
|
+
<template #label>
|
|
1137
|
+
{{ t('order.reservationSetting.minutesShort', { count: 30 }) }}
|
|
1138
|
+
<span class="text-fm-color-typo-secondary">{{
|
|
1139
|
+
t('order.reservationSetting.default')
|
|
1140
|
+
}}</span>
|
|
1141
|
+
</template>
|
|
1121
1142
|
</FmRadio>
|
|
1122
|
-
<FmRadio
|
|
1143
|
+
<FmRadio
|
|
1144
|
+
:label="t('order.reservationSetting.minutesShort', { count: 60 })"
|
|
1145
|
+
:value="60"
|
|
1146
|
+
/>
|
|
1123
1147
|
</FmRadioGroup>
|
|
1124
1148
|
</div>
|
|
1125
1149
|
|
|
1126
1150
|
<div class="mb-24">
|
|
1127
1151
|
<div class="mb-8 fm-typo-en-body-lg-600 flex items-center gap-8">
|
|
1128
|
-
|
|
1129
|
-
<FmTooltip :content="'
|
|
1152
|
+
{{ t('order.reservationSetting.diningDuration') }}
|
|
1153
|
+
<FmTooltip :content="t('order.reservationSetting.diningDurationTooltip')">
|
|
1130
1154
|
<FmIcon name="info" outline size="sm" class="cursor-pointer" />
|
|
1131
1155
|
</FmTooltip>
|
|
1132
1156
|
</div>
|
|
@@ -1134,37 +1158,50 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
1134
1158
|
:model-value="rangeSetting.bookingDuration"
|
|
1135
1159
|
@update:model-value="(v: number) => updateBookingDuration(v)"
|
|
1136
1160
|
>
|
|
1137
|
-
<FmRadio
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1161
|
+
<FmRadio
|
|
1162
|
+
:label="t('order.reservationSetting.minutesShort', { count: 60 })"
|
|
1163
|
+
:value="60"
|
|
1164
|
+
/>
|
|
1165
|
+
<FmRadio
|
|
1166
|
+
:label="t('order.reservationSetting.minutesShort', { count: 90 })"
|
|
1167
|
+
:value="90"
|
|
1168
|
+
>
|
|
1169
|
+
<template #label>
|
|
1170
|
+
{{ t('order.reservationSetting.minutesShort', { count: 90 }) }}
|
|
1171
|
+
<span class="text-fm-color-typo-secondary">{{
|
|
1172
|
+
t('order.reservationSetting.default')
|
|
1173
|
+
}}</span>
|
|
1174
|
+
</template>
|
|
1142
1175
|
</FmRadio>
|
|
1143
1176
|
|
|
1144
|
-
<FmRadio
|
|
1177
|
+
<FmRadio
|
|
1178
|
+
:label="t('order.reservationSetting.minutesShort', { count: 120 })"
|
|
1179
|
+
:value="120"
|
|
1180
|
+
/>
|
|
1145
1181
|
</FmRadioGroup>
|
|
1146
1182
|
</div>
|
|
1147
1183
|
</div>
|
|
1148
1184
|
|
|
1149
1185
|
<div class="p-16 flex flex-col gap-16">
|
|
1150
1186
|
<div class="flex items-center justify-between w-full">
|
|
1151
|
-
<div class="fm-typo-en-body-lg-600">
|
|
1187
|
+
<div class="fm-typo-en-body-lg-600">
|
|
1188
|
+
{{ t('order.reservationSetting.availableSlotsPreview') }}
|
|
1189
|
+
</div>
|
|
1152
1190
|
<FmSelect
|
|
1153
1191
|
v-model="selectedPreviewDay"
|
|
1154
|
-
:items="
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
{ label: 'Saturday', value: 6 },
|
|
1161
|
-
{ label: 'Sunday', value: 0 }
|
|
1162
|
-
]"
|
|
1192
|
+
:items="
|
|
1193
|
+
[1, 2, 3, 4, 5, 6, 0].map((day) => ({
|
|
1194
|
+
label: t(`order.reservationSetting.weekdays.${day}`),
|
|
1195
|
+
value: day
|
|
1196
|
+
}))
|
|
1197
|
+
"
|
|
1163
1198
|
/>
|
|
1164
1199
|
</div>
|
|
1165
1200
|
|
|
1166
1201
|
<template v-if="availableSlots.morning.length > 0">
|
|
1167
|
-
<div class="fm-typo-en-body-md-600 text-[#4B4B4B]">
|
|
1202
|
+
<div class="fm-typo-en-body-md-600 text-[#4B4B4B]">
|
|
1203
|
+
{{ t('order.reservationSetting.morning') }}
|
|
1204
|
+
</div>
|
|
1168
1205
|
<div class="grid grid-cols-5 gap-8">
|
|
1169
1206
|
<div
|
|
1170
1207
|
v-for="slot in displayedSlots.morning"
|
|
@@ -1182,13 +1219,15 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
1182
1219
|
class="border-2 rounded-md text-center p-8 transition-colors cursor-pointer border-fm-color-primary text-fm-color-primary"
|
|
1183
1220
|
@click="toggleSegmentExpansion('morning')"
|
|
1184
1221
|
>
|
|
1185
|
-
more
|
|
1222
|
+
{{ t('order.reservationSetting.more') }}
|
|
1186
1223
|
</div>
|
|
1187
1224
|
</div>
|
|
1188
1225
|
</template>
|
|
1189
1226
|
|
|
1190
1227
|
<template v-if="availableSlots.afternoon.length > 0">
|
|
1191
|
-
<div class="fm-typo-en-body-md-600 text-[#4B4B4B]">
|
|
1228
|
+
<div class="fm-typo-en-body-md-600 text-[#4B4B4B]">
|
|
1229
|
+
{{ t('order.reservationSetting.afternoon') }}
|
|
1230
|
+
</div>
|
|
1192
1231
|
<div class="grid grid-cols-5 gap-8">
|
|
1193
1232
|
<div
|
|
1194
1233
|
v-for="slot in displayedSlots.afternoon"
|
|
@@ -1206,13 +1245,15 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
1206
1245
|
class="border-2 rounded-md text-center p-8 transition-colors cursor-pointer border-fm-color-primary text-fm-color-primary"
|
|
1207
1246
|
@click="toggleSegmentExpansion('afternoon')"
|
|
1208
1247
|
>
|
|
1209
|
-
more
|
|
1248
|
+
{{ t('order.reservationSetting.more') }}
|
|
1210
1249
|
</div>
|
|
1211
1250
|
</div>
|
|
1212
1251
|
</template>
|
|
1213
1252
|
|
|
1214
1253
|
<template v-if="availableSlots.evening.length > 0">
|
|
1215
|
-
<div class="fm-typo-en-body-md-600 text-[#4B4B4B]">
|
|
1254
|
+
<div class="fm-typo-en-body-md-600 text-[#4B4B4B]">
|
|
1255
|
+
{{ t('order.reservationSetting.evening') }}
|
|
1256
|
+
</div>
|
|
1216
1257
|
<div class="grid grid-cols-5 gap-8">
|
|
1217
1258
|
<div
|
|
1218
1259
|
v-for="slot in displayedSlots.evening"
|
|
@@ -1230,7 +1271,7 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
1230
1271
|
class="border-2 rounded-md text-center p-8 transition-colors cursor-pointer border-fm-color-primary text-fm-color-primary"
|
|
1231
1272
|
@click="toggleSegmentExpansion('evening')"
|
|
1232
1273
|
>
|
|
1233
|
-
more
|
|
1274
|
+
{{ t('order.reservationSetting.more') }}
|
|
1234
1275
|
</div>
|
|
1235
1276
|
</div>
|
|
1236
1277
|
</template>
|
|
@@ -1244,28 +1285,33 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
1244
1285
|
class="text-center text-fm-color-typo-secondary flex flex-col items-center gap-16 p-24"
|
|
1245
1286
|
>
|
|
1246
1287
|
<img :src="notfound" class="aspect-square w-[150px]" />
|
|
1247
|
-
|
|
1248
|
-
|
|
1288
|
+
{{ t('order.reservationSetting.closedOnSelectedDay') }} <br />
|
|
1289
|
+
{{ t('order.reservationSetting.selectAnotherDay') }}
|
|
1249
1290
|
</div>
|
|
1250
1291
|
</div>
|
|
1251
1292
|
</FmCard>
|
|
1252
1293
|
</div>
|
|
1253
1294
|
|
|
1254
1295
|
<div class="flex flex-col">
|
|
1255
|
-
<div class="flex-grow fm-typo-en-title-sm-600 mb-4">
|
|
1296
|
+
<div class="flex-grow fm-typo-en-title-sm-600 mb-4">
|
|
1297
|
+
{{ t('order.reservationSetting.tableCapacitySettings') }}
|
|
1298
|
+
</div>
|
|
1256
1299
|
<div class="fm-typo-en-body-lg-400 text-fm-color-typo-secondary mb-24">
|
|
1257
|
-
|
|
1258
|
-
to keep tables for walk-ins.
|
|
1300
|
+
{{ t('order.reservationSetting.tableCapacityDescription') }}
|
|
1259
1301
|
</div>
|
|
1260
1302
|
|
|
1261
1303
|
<!-- Table Capacity Settings -->
|
|
1262
1304
|
<div>
|
|
1263
1305
|
<div class="grid grid-cols-[4fr_4fr_4fr_1fr]">
|
|
1264
|
-
<div class="bg-fm-color-neutral-gray-100 p-12">
|
|
1265
|
-
|
|
1306
|
+
<div class="bg-fm-color-neutral-gray-100 p-12">
|
|
1307
|
+
{{ t('order.reservationSetting.tableType') }}
|
|
1308
|
+
</div>
|
|
1309
|
+
<div class="bg-fm-color-neutral-gray-100 p-12">
|
|
1310
|
+
{{ t('order.reservationSetting.guestRange') }}
|
|
1311
|
+
</div>
|
|
1266
1312
|
<div class="bg-fm-color-neutral-gray-100 p-12 flex items-center gap-4">
|
|
1267
|
-
|
|
1268
|
-
<FmTooltip :content="'
|
|
1313
|
+
{{ t('order.reservationSetting.availableTableCount') }}
|
|
1314
|
+
<FmTooltip :content="t('order.reservationSetting.availableTableCountTooltip')">
|
|
1269
1315
|
<FmIcon name="info" outline size="sm" class="cursor-pointer" />
|
|
1270
1316
|
</FmTooltip>
|
|
1271
1317
|
</div>
|
|
@@ -1276,10 +1322,16 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
1276
1322
|
v-for="tier in rangeSetting.capacityTiers"
|
|
1277
1323
|
:key="tier._id"
|
|
1278
1324
|
>
|
|
1279
|
-
<div class="p-8">
|
|
1325
|
+
<div class="p-8">
|
|
1326
|
+
{{
|
|
1327
|
+
t('order.reservationSetting.paxRange', {
|
|
1328
|
+
range: `${tier.minPax}${tier.maxPax ? `-${tier.maxPax}` : '+'}`
|
|
1329
|
+
})
|
|
1330
|
+
}}
|
|
1331
|
+
</div>
|
|
1280
1332
|
<div class="flex items-center gap-4 pr-24">
|
|
1281
1333
|
<FmStepperField v-model="tier.minPax" :min="1" />
|
|
1282
|
-
<div>to</div>
|
|
1334
|
+
<div>{{ t('order.reservationSetting.to') }}</div>
|
|
1283
1335
|
<FmStepperField
|
|
1284
1336
|
:model-value="tier.maxPax ?? null"
|
|
1285
1337
|
@update:model-value="(v) => (tier.maxPax = v)"
|
|
@@ -1312,7 +1364,7 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
1312
1364
|
</div>
|
|
1313
1365
|
<div>
|
|
1314
1366
|
<FmButton
|
|
1315
|
-
label="
|
|
1367
|
+
:label="t('order.reservationSetting.addTableType')"
|
|
1316
1368
|
icon="add"
|
|
1317
1369
|
variant="plain"
|
|
1318
1370
|
@click="
|
|
@@ -1329,11 +1381,13 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
1329
1381
|
</div>
|
|
1330
1382
|
|
|
1331
1383
|
<div>
|
|
1332
|
-
<div class="flex-grow fm-typo-en-title-sm-600 mb-16">
|
|
1384
|
+
<div class="flex-grow fm-typo-en-title-sm-600 mb-16">
|
|
1385
|
+
{{ t('order.reservationSetting.preorder') }}
|
|
1386
|
+
</div>
|
|
1333
1387
|
<FmSwitch
|
|
1334
1388
|
label-placement="right"
|
|
1335
|
-
:label="'
|
|
1336
|
-
:sublabel="'
|
|
1389
|
+
:label="t('order.reservationSetting.enablePreorder')"
|
|
1390
|
+
:sublabel="t('order.reservationSetting.enablePreorderSublabel')"
|
|
1337
1391
|
:model-value="rangeSetting.enablePreorder"
|
|
1338
1392
|
@update:model-value="(v: boolean) => (rangeSetting.enablePreorder = v)"
|
|
1339
1393
|
/>
|
|
@@ -1345,13 +1399,15 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
1345
1399
|
>
|
|
1346
1400
|
<FmSwitch
|
|
1347
1401
|
label-placement="right"
|
|
1348
|
-
:label="'
|
|
1349
|
-
:sublabel="'
|
|
1402
|
+
:label="t('order.reservationSetting.limitOnlineCancellation')"
|
|
1403
|
+
:sublabel="t('order.reservationSetting.limitOnlineCancellationSublabel')"
|
|
1350
1404
|
:model-value="!!rangeSetting.freeCancellationBefore"
|
|
1351
1405
|
@update:model-value="(v: boolean) => toggleFreeCancellation(v)"
|
|
1352
1406
|
/>
|
|
1353
1407
|
<div v-if="rangeSetting.freeCancellationBefore" class="flex items-center gap-8 mt-12">
|
|
1354
|
-
<div class="fm-typo-en-body-md-600">
|
|
1408
|
+
<div class="fm-typo-en-body-md-600">
|
|
1409
|
+
{{ t('order.reservationSetting.freeCancellationUntil') }}
|
|
1410
|
+
</div>
|
|
1355
1411
|
<FmStepperField
|
|
1356
1412
|
:model-value="rangeSetting.freeCancellationBefore.value"
|
|
1357
1413
|
@update:model-value="(v: number) => updateFreeCancellationValue(v)"
|
|
@@ -1361,26 +1417,29 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
1361
1417
|
:model-value="rangeSetting.freeCancellationBefore.unit"
|
|
1362
1418
|
@update:model-value="(v: 'hour' | 'day') => updateFreeCancellationUnit(v)"
|
|
1363
1419
|
:items="[
|
|
1364
|
-
{ label: '
|
|
1365
|
-
{ label: '
|
|
1420
|
+
{ label: t('order.reservationSetting.hours'), value: 'hour' },
|
|
1421
|
+
{ label: t('order.reservationSetting.days'), value: 'day' }
|
|
1366
1422
|
]"
|
|
1367
1423
|
class="w-120"
|
|
1368
1424
|
/>
|
|
1369
|
-
<div class="fm-typo-en-body-md-400">
|
|
1425
|
+
<div class="fm-typo-en-body-md-400">
|
|
1426
|
+
{{ t('order.reservationSetting.beforeTheBooking') }}
|
|
1427
|
+
</div>
|
|
1370
1428
|
</div>
|
|
1371
1429
|
</div>
|
|
1372
1430
|
</div>
|
|
1373
1431
|
|
|
1374
1432
|
<div class="flex flex-col">
|
|
1375
|
-
<div class="flex-grow fm-typo-en-title-sm-600 mb-4">
|
|
1433
|
+
<div class="flex-grow fm-typo-en-title-sm-600 mb-4">
|
|
1434
|
+
{{ t('order.reservationSetting.guestPreferences') }}
|
|
1435
|
+
</div>
|
|
1376
1436
|
<div class="fm-typo-en-body-lg-400 text-fm-color-typo-secondary mb-24">
|
|
1377
|
-
|
|
1378
|
-
allergies, or other notes.
|
|
1437
|
+
{{ t('order.reservationSetting.guestPreferencesDescription') }}
|
|
1379
1438
|
</div>
|
|
1380
1439
|
|
|
1381
1440
|
<FmSwitch
|
|
1382
1441
|
class="mb-8"
|
|
1383
|
-
label="
|
|
1442
|
+
:label="t('order.reservationSetting.enablePreferences')"
|
|
1384
1443
|
label-placement="right"
|
|
1385
1444
|
:model-value="rangeSetting.preferences.length > 0"
|
|
1386
1445
|
@update:model-value="
|
|
@@ -1406,26 +1465,31 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
1406
1465
|
variant="outlined"
|
|
1407
1466
|
:key="pIndex"
|
|
1408
1467
|
>
|
|
1409
|
-
<div class="fm-typo-en-body-lg-600 mb-8">
|
|
1468
|
+
<div class="fm-typo-en-body-lg-600 mb-8">
|
|
1469
|
+
{{ t('order.reservationSetting.categoryTitle') }}
|
|
1470
|
+
</div>
|
|
1410
1471
|
<div class="grid grid-cols-[6fr_3fr_1fr] items-start gap-24 mb-24">
|
|
1411
1472
|
<div>
|
|
1412
|
-
<FmTextField
|
|
1473
|
+
<FmTextField
|
|
1474
|
+
v-model="preference.name"
|
|
1475
|
+
:placeholder="t('order.reservationSetting.enterAName')"
|
|
1476
|
+
/>
|
|
1413
1477
|
<div class="fm-typo-en-body-md-400 text-fm-color-typo-tertiary mt-8">
|
|
1414
|
-
|
|
1478
|
+
{{ t('order.reservationSetting.categoryTitleHint') }}
|
|
1415
1479
|
</div>
|
|
1416
1480
|
</div>
|
|
1417
1481
|
<FmSelect
|
|
1418
1482
|
v-model="preference.type"
|
|
1419
1483
|
:items="[
|
|
1420
|
-
{ label: '
|
|
1421
|
-
{ label: '
|
|
1484
|
+
{ label: t('order.reservationSetting.singleChoice'), value: 'radio' },
|
|
1485
|
+
{ label: t('order.reservationSetting.multipleChoice'), value: 'checkbox' }
|
|
1422
1486
|
]"
|
|
1423
1487
|
/>
|
|
1424
1488
|
<FmButton variant="tertiary" icon="delete" @click="removePreference(pIndex)" />
|
|
1425
1489
|
</div>
|
|
1426
1490
|
|
|
1427
1491
|
<div v-if="preference.type == 'checkbox' || preference.type == 'radio'">
|
|
1428
|
-
<div class="mb-8 fm-typo-en-body-md-600">
|
|
1492
|
+
<div class="mb-8 fm-typo-en-body-md-600">{{ t('order.reservationSetting.options') }}</div>
|
|
1429
1493
|
<div
|
|
1430
1494
|
v-for="(option, oIndex) in preference.options"
|
|
1431
1495
|
:key="oIndex"
|
|
@@ -1464,7 +1528,7 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
1464
1528
|
v-else-if="option != 'Other'"
|
|
1465
1529
|
class="flex-1 cursor-pointer hover:bg-fm-color-neutral-gray-100 px-4 py-2 rounded transition-colors"
|
|
1466
1530
|
@click="startEditingOption(pIndex, oIndex)"
|
|
1467
|
-
title="
|
|
1531
|
+
:title="t('order.reservationSetting.clickToEdit')"
|
|
1468
1532
|
>
|
|
1469
1533
|
{{ option }}
|
|
1470
1534
|
</div>
|
|
@@ -1472,7 +1536,7 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
1472
1536
|
v-else-if="option == 'Other'"
|
|
1473
1537
|
class="flex-1 px-4 py-2 border-b border-fm-color-neutral-gray-200"
|
|
1474
1538
|
>
|
|
1475
|
-
|
|
1539
|
+
{{ t('order.reservationSetting.otherOption') }}
|
|
1476
1540
|
</div>
|
|
1477
1541
|
</div>
|
|
1478
1542
|
<FmButton
|
|
@@ -1497,18 +1561,18 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
1497
1561
|
<FmButton
|
|
1498
1562
|
variant="tertiary"
|
|
1499
1563
|
class="text-fm-color-typo-secondary"
|
|
1500
|
-
label="
|
|
1564
|
+
:label="t('order.reservationSetting.addOption')"
|
|
1501
1565
|
@click="addPreferenceOption(preference, `Option ${preference.options.length + 1}`)"
|
|
1502
1566
|
>
|
|
1503
1567
|
<template #default>
|
|
1504
|
-
<div>
|
|
1568
|
+
<div>{{ t('order.reservationSetting.addOption') }}</div>
|
|
1505
1569
|
</template>
|
|
1506
1570
|
</FmButton>
|
|
1507
1571
|
<template v-if="!preference.options.includes('Other')">
|
|
1508
|
-
<div>or</div>
|
|
1572
|
+
<div>{{ t('order.reservationSetting.or') }}</div>
|
|
1509
1573
|
<FmButton
|
|
1510
1574
|
variant="plain"
|
|
1511
|
-
label='
|
|
1575
|
+
:label="t('order.reservationSetting.addOther')"
|
|
1512
1576
|
@click="addPreferenceOption(preference, 'Other')"
|
|
1513
1577
|
/>
|
|
1514
1578
|
</template>
|
|
@@ -1519,7 +1583,7 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
1519
1583
|
|
|
1520
1584
|
<FmCard variant="outlined" class="border-dashed p-16" v-if="rangeSetting.preferences.length">
|
|
1521
1585
|
<FmButton
|
|
1522
|
-
label="
|
|
1586
|
+
:label="t('order.reservationSetting.addPreferenceCategory')"
|
|
1523
1587
|
icon="add"
|
|
1524
1588
|
variant="plain"
|
|
1525
1589
|
class="border-1 border-fm-color-primary rounded-lg"
|
|
@@ -1529,42 +1593,51 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
1529
1593
|
</div>
|
|
1530
1594
|
|
|
1531
1595
|
<div class="flex flex-col">
|
|
1532
|
-
<div class="flex-grow fm-typo-en-title-sm-600 mb-4">
|
|
1596
|
+
<div class="flex-grow fm-typo-en-title-sm-600 mb-4">
|
|
1597
|
+
{{ t('order.reservationSetting.guestMessage') }}
|
|
1598
|
+
</div>
|
|
1533
1599
|
<div class="fm-typo-en-body-lg-400 text-fm-color-typo-secondary mb-24">
|
|
1534
|
-
|
|
1600
|
+
{{ t('order.reservationSetting.guestMessageDescription') }}
|
|
1535
1601
|
</div>
|
|
1536
1602
|
|
|
1537
1603
|
<FmSwitch
|
|
1538
1604
|
class="mb-16"
|
|
1539
|
-
label="
|
|
1605
|
+
:label="t('order.reservationSetting.enableGuestMessage')"
|
|
1540
1606
|
label-placement="right"
|
|
1541
1607
|
:model-value="rangeSetting.guestMessage !== null && rangeSetting.guestMessage !== undefined"
|
|
1542
1608
|
@update:model-value="toggleGuestMessage"
|
|
1543
1609
|
/>
|
|
1544
1610
|
|
|
1545
1611
|
<div v-if="rangeSetting.guestMessage !== null && rangeSetting.guestMessage !== undefined">
|
|
1546
|
-
<div class="mb-8 fm-typo-en-body-md-600">
|
|
1612
|
+
<div class="mb-8 fm-typo-en-body-md-600">{{ t('order.reservationSetting.message') }}</div>
|
|
1547
1613
|
<FmTextarea
|
|
1548
1614
|
v-model="rangeSetting.guestMessage"
|
|
1549
1615
|
:maxLength="600"
|
|
1550
|
-
placeholder="
|
|
1616
|
+
:placeholder="t('order.reservationSetting.guestMessagePlaceholder')"
|
|
1551
1617
|
class="mb-4"
|
|
1552
1618
|
/>
|
|
1553
1619
|
<div class="text-right text-fm-color-typo-tertiary fm-typo-en-body-sm-400">
|
|
1554
|
-
{{
|
|
1620
|
+
{{
|
|
1621
|
+
t('order.reservationSetting.charactersCount', {
|
|
1622
|
+
count: rangeSetting.guestMessage?.length || 0,
|
|
1623
|
+
max: 600
|
|
1624
|
+
})
|
|
1625
|
+
}}
|
|
1555
1626
|
</div>
|
|
1556
1627
|
</div>
|
|
1557
1628
|
</div>
|
|
1558
1629
|
|
|
1559
1630
|
<div class="flex flex-col">
|
|
1560
|
-
<div class="flex-grow fm-typo-en-title-sm-600 mb-4">
|
|
1631
|
+
<div class="flex-grow fm-typo-en-title-sm-600 mb-4">
|
|
1632
|
+
{{ t('order.reservationSetting.cancellationPolicy') }}
|
|
1633
|
+
</div>
|
|
1561
1634
|
<div class="fm-typo-en-body-lg-400 text-fm-color-typo-secondary mb-24">
|
|
1562
|
-
|
|
1635
|
+
{{ t('order.reservationSetting.cancellationPolicyDescription') }}
|
|
1563
1636
|
</div>
|
|
1564
1637
|
|
|
1565
1638
|
<FmSwitch
|
|
1566
1639
|
class="mb-16"
|
|
1567
|
-
label="
|
|
1640
|
+
:label="t('order.reservationSetting.enableCancellationPolicy')"
|
|
1568
1641
|
label-placement="right"
|
|
1569
1642
|
:model-value="
|
|
1570
1643
|
rangeSetting.cancellationPolicy !== null && rangeSetting.cancellationPolicy !== undefined
|
|
@@ -1577,15 +1650,20 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
1577
1650
|
rangeSetting.cancellationPolicy !== null && rangeSetting.cancellationPolicy !== undefined
|
|
1578
1651
|
"
|
|
1579
1652
|
>
|
|
1580
|
-
<div class="mb-8 fm-typo-en-body-md-600">
|
|
1653
|
+
<div class="mb-8 fm-typo-en-body-md-600">{{ t('order.reservationSetting.message') }}</div>
|
|
1581
1654
|
<FmTextarea
|
|
1582
1655
|
v-model="rangeSetting.cancellationPolicy"
|
|
1583
1656
|
:maxLength="200"
|
|
1584
|
-
placeholder="
|
|
1657
|
+
:placeholder="t('order.reservationSetting.cancellationPolicy')"
|
|
1585
1658
|
class="mb-4"
|
|
1586
1659
|
/>
|
|
1587
1660
|
<div class="text-right text-fm-color-typo-tertiary fm-typo-en-body-sm-400">
|
|
1588
|
-
{{
|
|
1661
|
+
{{
|
|
1662
|
+
t('order.reservationSetting.charactersCount', {
|
|
1663
|
+
count: rangeSetting.cancellationPolicy?.length || 0,
|
|
1664
|
+
max: 200
|
|
1665
|
+
})
|
|
1666
|
+
}}
|
|
1589
1667
|
</div>
|
|
1590
1668
|
</div>
|
|
1591
1669
|
</div>
|