@feedmepos/mf-order-setting 0.0.101 → 0.0.102
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-B0OFPhT_.js → DisplaySystemView-jnt6letY.js} +4 -4
- package/dist/{FoodCourtInvitationsView-B334lj_D.js → FoodCourtInvitationsView-DoynqFWB.js} +4 -4
- package/dist/{FoodCourtOrderSettingsView-DEYQ6O7B.js → FoodCourtOrderSettingsView-DYZLhTHy.js} +1 -1
- package/dist/{FoodCourtOrdersView-kt9JfcJs.js → FoodCourtOrdersView-CAPOycT3.js} +3 -3
- package/dist/{FoodCourtStallsView-ptDjHESk.js → FoodCourtStallsView-CRMTt5BB.js} +2 -2
- package/dist/{FoodCourtStatusView-CjNnTpE5.js → FoodCourtStatusView-C-b-eI-8.js} +1 -1
- package/dist/{KioskDevicesView-BQhgFAGI.js → KioskDevicesView-B0U9JxRl.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-Dt3ShVeD.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-V3ai4FVI.js} +5 -5
- package/dist/{KioskSettingView-BUXtHLZR.js → KioskSettingView-rdom_aS8.js} +3 -3
- package/dist/{KioskView-5qVlW-kC.js → KioskView-DOON9zR6.js} +6 -6
- package/dist/{OrderSettingsView-BI9fe4ks.js → OrderSettingsView-BBCnekaj.js} +1300 -1302
- package/dist/{RestaurantSelector.vue_vue_type_script_setup_true_lang-BXLhWx3Z.js → RestaurantSelector.vue_vue_type_script_setup_true_lang-DjoTyV6m.js} +1 -1
- package/dist/{app-DCKPiyKq.js → app-Dvk30CIa.js} +11 -11
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-D7WjNGf-.js → dayjs.min-DUFHhM7O.js} +1 -1
- package/dist/{featureFlag-Dr-_Iams.js → featureFlag-BvcirzHS.js} +1 -1
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-DuWgIluk.js → index-C4n5H7t3.js} +1 -1
- package/dist/{index-cDKD4gwv.js → index-C5n6lil6.js} +2 -2
- package/dist/{index-4UdKsfrs.js → index-CGxCWKHB.js} +4 -4
- package/dist/{index-DWbgaGih.js → index-CW4VlFWz.js} +1 -1
- package/dist/{index-DKUkKt64.js → index-CaHG3M7C.js} +1 -1
- package/dist/{index-DctLjb3F.js → index-ILnighyU.js} +1 -1
- package/dist/{order.dto-CGpR_O3X.js → order.dto-Cb_gh3iB.js} +2 -2
- package/package.json +1 -1
- package/src/views/order-settings/reservation/ReservationSetting.vue +702 -715
- package/src/views/order-settings/reservation/reservation-pos-note.spec.ts +2 -2
|
@@ -787,821 +787,808 @@ function handleCopySettings(copiedSettings: Partial<FdoOrderReservationSettingsV
|
|
|
787
787
|
:state="'warning'"
|
|
788
788
|
:text="t('order.reservationNeedsPosV8', { min: RESERVATION_MIN_POS_VERSION })"
|
|
789
789
|
/>
|
|
790
|
+
<!-- Online booking only: staff keep booking on POS while it is off, and an unset
|
|
791
|
+
value is on, as reservation-backend reads it (isRangeEnabled). Closing the
|
|
792
|
+
outlet to POS too is "Accept reservation" in the Dine-in tab. -->
|
|
790
793
|
<FmSwitch
|
|
791
794
|
label-placement="right"
|
|
792
|
-
:label="'
|
|
793
|
-
:sublabel="'
|
|
794
|
-
:model-value="rangeSetting.enable
|
|
795
|
+
:label="'Online booking'"
|
|
796
|
+
:sublabel="'Customers can book this outlet online. When off, staff can still add bookings on POS. This setting does not impact walk-in dining.'"
|
|
797
|
+
:model-value="rangeSetting.enable !== false"
|
|
795
798
|
@update:model-value="(v: boolean) => (rangeSetting.enable = v)"
|
|
796
799
|
/>
|
|
797
800
|
|
|
798
|
-
<div v-if="
|
|
801
|
+
<div v-if="isMultiOutlet" class="ml-56 my-8">
|
|
799
802
|
<CopySettingsSheet :current-settings="reservationSettings" @apply="handleCopySettings" />
|
|
800
803
|
</div>
|
|
801
804
|
</div>
|
|
802
805
|
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
<div class="flex
|
|
806
|
-
|
|
807
|
-
|
|
806
|
+
<!-- Notification Settings Section -->
|
|
807
|
+
<div class="flex flex-col">
|
|
808
|
+
<div class="flex-grow fm-typo-en-title-sm-600 my-8">
|
|
809
|
+
{{ t('order.notificationSettings') }}
|
|
810
|
+
</div>
|
|
811
|
+
<FmCard variant="outlined" class="p-5">
|
|
812
|
+
<div class="mb-5">
|
|
813
|
+
<FmSwitch
|
|
814
|
+
:model-value="reservationSettings.smsEnabled"
|
|
815
|
+
@update:model-value="(v: boolean) => updateSetting('smsEnabled', v)"
|
|
816
|
+
:label="t('order.smsEnabled')"
|
|
817
|
+
label-placement="right"
|
|
818
|
+
:sublabel="t('order.smsEnabledDescription')"
|
|
819
|
+
/>
|
|
808
820
|
</div>
|
|
809
|
-
<
|
|
810
|
-
<
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
<
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
821
|
+
<div class="mb-5">
|
|
822
|
+
<FmSwitch
|
|
823
|
+
:model-value="reservationSettings.emailEnabled"
|
|
824
|
+
@update:model-value="(v: boolean) => updateSetting('emailEnabled', v)"
|
|
825
|
+
:label="t('order.emailEnabled')"
|
|
826
|
+
label-placement="right"
|
|
827
|
+
:sublabel="t('order.emailEnabledDescription')"
|
|
828
|
+
/>
|
|
829
|
+
</div>
|
|
830
|
+
<div class="mb-5">
|
|
831
|
+
<FmSwitch
|
|
832
|
+
:model-value="reservationSettings.notifyOnConfirm"
|
|
833
|
+
@update:model-value="(v: boolean) => updateSetting('notifyOnConfirm', v)"
|
|
834
|
+
:label="t('order.notifyOnConfirm')"
|
|
835
|
+
label-placement="right"
|
|
836
|
+
:sublabel="t('order.notifyOnConfirmDescription')"
|
|
837
|
+
/>
|
|
838
|
+
</div>
|
|
839
|
+
<div class="mb-5">
|
|
840
|
+
<FmSwitch
|
|
841
|
+
:model-value="reservationSettings.notifyOnCancel"
|
|
842
|
+
@update:model-value="(v: boolean) => updateSetting('notifyOnCancel', v)"
|
|
843
|
+
:label="t('order.notifyOnCancel')"
|
|
844
|
+
label-placement="right"
|
|
845
|
+
:sublabel="t('order.notifyOnCancelDescription')"
|
|
846
|
+
/>
|
|
847
|
+
</div>
|
|
848
|
+
<div class="mb-5">
|
|
849
|
+
<div class="mb-8 fm-typo-en-body-md-600 flex items-center gap-8">
|
|
850
|
+
{{ t('order.draftHoldTimeMinutes') }}
|
|
851
|
+
<FmTooltip
|
|
852
|
+
:content="'The amount of time a reservation is held before it is automatically released.'"
|
|
853
|
+
>
|
|
854
|
+
<FmIcon name="info" outline size="sm" class="cursor-pointer" />
|
|
855
|
+
</FmTooltip>
|
|
827
856
|
</div>
|
|
828
|
-
<
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
:
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
857
|
+
<FmTextField
|
|
858
|
+
type="number"
|
|
859
|
+
:model-value="reservationSettings.draftHoldTimeMinutes"
|
|
860
|
+
@update:model-value="
|
|
861
|
+
(v: string | number) =>
|
|
862
|
+
updateSetting('draftHoldTimeMinutes', v === '' ? 15 : Number(v))
|
|
863
|
+
"
|
|
864
|
+
suffix="minutes"
|
|
865
|
+
class="max-w-md"
|
|
866
|
+
/>
|
|
867
|
+
</div>
|
|
868
|
+
<div class="mb-5">
|
|
869
|
+
<FmSwitch
|
|
870
|
+
:model-value="reservationSettings.posCanOverbook"
|
|
871
|
+
@update:model-value="(v: boolean) => updateSetting('posCanOverbook', v)"
|
|
872
|
+
:label="t('order.posCanOverbook')"
|
|
873
|
+
label-placement="right"
|
|
874
|
+
:sublabel="t('order.posCanOverbookDescription')"
|
|
875
|
+
/>
|
|
876
|
+
</div>
|
|
877
|
+
</FmCard>
|
|
878
|
+
</div>
|
|
879
|
+
|
|
880
|
+
<div class="flex flex-col">
|
|
881
|
+
<div class="flex-grow fm-typo-en-title-sm-600 mb-4">
|
|
882
|
+
{{ t('order.reservationAvailability') }}
|
|
883
|
+
</div>
|
|
884
|
+
<div class="fm-typo-en-body-lg-400 text-fm-color-typo-secondary mb-24">
|
|
885
|
+
This shows when guests can make reservations based on your current settings. The
|
|
886
|
+
availability updates automatically.
|
|
887
|
+
</div>
|
|
888
|
+
<!-- Availability settings (eg. the min/max lead, and time interval + booking duration) -->
|
|
889
|
+
<div class="mb-24">
|
|
890
|
+
<div class="mb-8">Preview</div>
|
|
891
|
+
<div class="flex items-center gap-4 mb-8">
|
|
892
|
+
<div
|
|
893
|
+
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"
|
|
894
|
+
>
|
|
895
|
+
<FmIcon name="calendar_month" outline />
|
|
896
|
+
<div class="pr-6">
|
|
897
|
+
{{ reservationPreview.start + ' ' + reservationPreview.startHour }}
|
|
898
|
+
</div>
|
|
836
899
|
</div>
|
|
837
|
-
<div
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
900
|
+
<div>to</div>
|
|
901
|
+
<div
|
|
902
|
+
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
|
+
>
|
|
904
|
+
<FmIcon name="calendar_month" outline />
|
|
905
|
+
<div class="pr-6">
|
|
906
|
+
{{ reservationPreview.end + ' ' + reservationPreview.endHour }}
|
|
907
|
+
</div>
|
|
845
908
|
</div>
|
|
846
|
-
|
|
909
|
+
</div>
|
|
910
|
+
<div class="fm-typo-en-body-md-400 text-fm-color-typo-secondary">
|
|
911
|
+
Reservations will open on
|
|
912
|
+
<strong> {{ reservationPreview.start + ', ' + reservationPreview.startHour }} </strong>.
|
|
913
|
+
Guests will not be able to make reservations before this time.
|
|
914
|
+
</div>
|
|
915
|
+
</div>
|
|
916
|
+
|
|
917
|
+
<div class="mb-24">
|
|
918
|
+
<div class="mb-8">Presets</div>
|
|
919
|
+
<FmRadioGroup
|
|
920
|
+
:model-value="selectedPreset"
|
|
921
|
+
@update:model-value="(v: number | 'custom') => updateMaxLeadPreset(v)"
|
|
922
|
+
>
|
|
923
|
+
<FmRadio label="30 days" :value="30">
|
|
924
|
+
<template #label>
|
|
925
|
+
<div>30 days <span class="text-fm-color-typo-secondary">(default)</span></div>
|
|
926
|
+
</template>
|
|
927
|
+
</FmRadio>
|
|
928
|
+
<FmRadio label="60 days" :value="60" />
|
|
929
|
+
<FmRadio label="90 days" :value="90" />
|
|
930
|
+
<FmRadio label="Custom" :value="'custom'" />
|
|
931
|
+
</FmRadioGroup>
|
|
932
|
+
|
|
933
|
+
<!-- Custom preset fields -->
|
|
934
|
+
<div
|
|
935
|
+
v-if="selectedPreset === 'custom'"
|
|
936
|
+
class="ml-32 mt-12 p-16 border rounded-md bg-fm-color-neutral-gray-50"
|
|
937
|
+
>
|
|
938
|
+
<div class="mb-16">
|
|
847
939
|
<div class="mb-8 fm-typo-en-body-md-600 flex items-center gap-8">
|
|
848
|
-
|
|
940
|
+
Minimum Lead Time
|
|
849
941
|
<FmTooltip
|
|
850
|
-
:content="'The
|
|
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.'"
|
|
851
943
|
>
|
|
852
944
|
<FmIcon name="info" outline size="sm" class="cursor-pointer" />
|
|
853
945
|
</FmTooltip>
|
|
854
946
|
</div>
|
|
855
|
-
<
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
:sublabel="t('order.posCanOverbookDescription')"
|
|
873
|
-
/>
|
|
947
|
+
<div class="flex items-center gap-8">
|
|
948
|
+
<FmStepperField
|
|
949
|
+
:model-value="rangeSetting.minLeadDuration.value"
|
|
950
|
+
@update:model-value="(v: number) => updateMinLeadValue(v)"
|
|
951
|
+
:min="0"
|
|
952
|
+
class=""
|
|
953
|
+
/>
|
|
954
|
+
<FmSelect
|
|
955
|
+
:model-value="rangeSetting.minLeadDuration.unit"
|
|
956
|
+
@update:model-value="(v: 'hour' | 'day') => updateMinLeadUnit(v)"
|
|
957
|
+
:items="[
|
|
958
|
+
{ label: 'Hours', value: 'hour' },
|
|
959
|
+
{ label: 'Days', value: 'day' }
|
|
960
|
+
]"
|
|
961
|
+
class="w-120"
|
|
962
|
+
/>
|
|
963
|
+
</div>
|
|
874
964
|
</div>
|
|
875
|
-
</FmCard>
|
|
876
|
-
</div>
|
|
877
965
|
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
<!-- Availability settings (eg. the min/max lead, and time interval + booking duration) -->
|
|
887
|
-
<div class="mb-24">
|
|
888
|
-
<div class="mb-8">Preview</div>
|
|
889
|
-
<div class="flex items-center gap-4 mb-8">
|
|
890
|
-
<div
|
|
891
|
-
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"
|
|
892
|
-
>
|
|
893
|
-
<FmIcon name="calendar_month" outline />
|
|
894
|
-
<div class="pr-6">
|
|
895
|
-
{{ reservationPreview.start + ' ' + reservationPreview.startHour }}
|
|
896
|
-
</div>
|
|
966
|
+
<div>
|
|
967
|
+
<div class="mb-8 fm-typo-en-body-md-600 flex items-center gap-8">
|
|
968
|
+
Maximum Lead Time
|
|
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
|
+
>
|
|
972
|
+
<FmIcon name="info" outline size="sm" class="cursor-pointer" />
|
|
973
|
+
</FmTooltip>
|
|
897
974
|
</div>
|
|
898
|
-
<div>
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
975
|
+
<div class="flex items-center gap-8">
|
|
976
|
+
<FmStepperField
|
|
977
|
+
:model-value="rangeSetting.maxLeadDuration.value"
|
|
978
|
+
@update:model-value="(v: number) => updateMaxLeadValue(v)"
|
|
979
|
+
:min="0"
|
|
980
|
+
class=""
|
|
981
|
+
/>
|
|
982
|
+
<FmSelect
|
|
983
|
+
:model-value="rangeSetting.maxLeadDuration.unit"
|
|
984
|
+
@update:model-value="(v: 'hour' | 'day') => updateMaxLeadUnit(v)"
|
|
985
|
+
:items="[
|
|
986
|
+
{ label: 'Hours', value: 'hour' },
|
|
987
|
+
{ label: 'Days', value: 'day' }
|
|
988
|
+
]"
|
|
989
|
+
class="w-120"
|
|
990
|
+
/>
|
|
906
991
|
</div>
|
|
907
992
|
</div>
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
993
|
+
|
|
994
|
+
<!-- Validation error message -->
|
|
995
|
+
<div v-if="validateLeadDurationLocal()" class="mt-16 text-sm text-red-600">
|
|
996
|
+
{{ validateLeadDurationLocal() }}
|
|
912
997
|
</div>
|
|
913
998
|
</div>
|
|
999
|
+
</div>
|
|
1000
|
+
</div>
|
|
914
1001
|
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
<FmRadio label="30 days" :value="30">
|
|
922
|
-
<template #label>
|
|
923
|
-
<div>30 days <span class="text-fm-color-typo-secondary">(default)</span></div>
|
|
924
|
-
</template>
|
|
925
|
-
</FmRadio>
|
|
926
|
-
<FmRadio label="60 days" :value="60" />
|
|
927
|
-
<FmRadio label="90 days" :value="90" />
|
|
928
|
-
<FmRadio label="Custom" :value="'custom'" />
|
|
929
|
-
</FmRadioGroup>
|
|
1002
|
+
<div class="flex flex-col">
|
|
1003
|
+
<div class="flex-grow fm-typo-en-title-sm-600 mb-4">Time Settings</div>
|
|
1004
|
+
<div class="fm-typo-en-body-lg-400 text-fm-color-typo-secondary mb-12">
|
|
1005
|
+
Choose the start and end time for reservations, and the interval between each time slot.
|
|
1006
|
+
Available time slots will be generated automatically.
|
|
1007
|
+
</div>
|
|
930
1008
|
|
|
931
|
-
|
|
1009
|
+
<!-- Operating hour setting -->
|
|
1010
|
+
<div class="mb-32">
|
|
1011
|
+
<div class="grid grid-cols-[1fr_1fr_3fr] items-start">
|
|
932
1012
|
<div
|
|
933
|
-
|
|
934
|
-
class="ml-32 mt-12 p-16 border rounded-md bg-fm-color-neutral-gray-50"
|
|
1013
|
+
class="p-12 fm-typo-en-body-md-600 text-fm-color-typo-secondary bg-fm-color-neutral-gray-100"
|
|
935
1014
|
>
|
|
936
|
-
|
|
937
|
-
<div class="mb-8 fm-typo-en-body-md-600 flex items-center gap-8">
|
|
938
|
-
Minimum Lead Time
|
|
939
|
-
<FmTooltip
|
|
940
|
-
: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.'"
|
|
941
|
-
>
|
|
942
|
-
<FmIcon name="info" outline size="sm" class="cursor-pointer" />
|
|
943
|
-
</FmTooltip>
|
|
944
|
-
</div>
|
|
945
|
-
<div class="flex items-center gap-8">
|
|
946
|
-
<FmStepperField
|
|
947
|
-
:model-value="rangeSetting.minLeadDuration.value"
|
|
948
|
-
@update:model-value="(v: number) => updateMinLeadValue(v)"
|
|
949
|
-
:min="0"
|
|
950
|
-
class=""
|
|
951
|
-
/>
|
|
952
|
-
<FmSelect
|
|
953
|
-
:model-value="rangeSetting.minLeadDuration.unit"
|
|
954
|
-
@update:model-value="(v: 'hour' | 'day') => updateMinLeadUnit(v)"
|
|
955
|
-
:items="[
|
|
956
|
-
{ label: 'Hours', value: 'hour' },
|
|
957
|
-
{ label: 'Days', value: 'day' }
|
|
958
|
-
]"
|
|
959
|
-
class="w-120"
|
|
960
|
-
/>
|
|
961
|
-
</div>
|
|
962
|
-
</div>
|
|
963
|
-
|
|
964
|
-
<div>
|
|
965
|
-
<div class="mb-8 fm-typo-en-body-md-600 flex items-center gap-8">
|
|
966
|
-
Maximum Lead Time
|
|
967
|
-
<FmTooltip
|
|
968
|
-
: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.'"
|
|
969
|
-
>
|
|
970
|
-
<FmIcon name="info" outline size="sm" class="cursor-pointer" />
|
|
971
|
-
</FmTooltip>
|
|
972
|
-
</div>
|
|
973
|
-
<div class="flex items-center gap-8">
|
|
974
|
-
<FmStepperField
|
|
975
|
-
:model-value="rangeSetting.maxLeadDuration.value"
|
|
976
|
-
@update:model-value="(v: number) => updateMaxLeadValue(v)"
|
|
977
|
-
:min="0"
|
|
978
|
-
class=""
|
|
979
|
-
/>
|
|
980
|
-
<FmSelect
|
|
981
|
-
:model-value="rangeSetting.maxLeadDuration.unit"
|
|
982
|
-
@update:model-value="(v: 'hour' | 'day') => updateMaxLeadUnit(v)"
|
|
983
|
-
:items="[
|
|
984
|
-
{ label: 'Hours', value: 'hour' },
|
|
985
|
-
{ label: 'Days', value: 'day' }
|
|
986
|
-
]"
|
|
987
|
-
class="w-120"
|
|
988
|
-
/>
|
|
989
|
-
</div>
|
|
990
|
-
</div>
|
|
991
|
-
|
|
992
|
-
<!-- Validation error message -->
|
|
993
|
-
<div v-if="validateLeadDurationLocal()" class="mt-16 text-sm text-red-600">
|
|
994
|
-
{{ validateLeadDurationLocal() }}
|
|
995
|
-
</div>
|
|
1015
|
+
Day
|
|
996
1016
|
</div>
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
<div
|
|
1011
|
-
class="p-12 fm-typo-en-body-md-600 text-fm-color-typo-secondary bg-fm-color-neutral-gray-100"
|
|
1012
|
-
>
|
|
1013
|
-
Day
|
|
1014
|
-
</div>
|
|
1015
|
-
<div
|
|
1016
|
-
class="p-12 fm-typo-en-body-md-600 text-fm-color-typo-secondary bg-fm-color-neutral-gray-100"
|
|
1017
|
-
>
|
|
1018
|
-
Open / Closed
|
|
1019
|
-
</div>
|
|
1020
|
-
<div
|
|
1021
|
-
class="p-12 fm-typo-en-body-md-600 text-fm-color-typo-secondary bg-fm-color-neutral-gray-100"
|
|
1022
|
-
>
|
|
1023
|
-
Reservation Time Range
|
|
1017
|
+
<div
|
|
1018
|
+
class="p-12 fm-typo-en-body-md-600 text-fm-color-typo-secondary bg-fm-color-neutral-gray-100"
|
|
1019
|
+
>
|
|
1020
|
+
Open / Closed
|
|
1021
|
+
</div>
|
|
1022
|
+
<div
|
|
1023
|
+
class="p-12 fm-typo-en-body-md-600 text-fm-color-typo-secondary bg-fm-color-neutral-gray-100"
|
|
1024
|
+
>
|
|
1025
|
+
Reservation Time Range
|
|
1026
|
+
</div>
|
|
1027
|
+
<template v-for="day in [1, 2, 3, 4, 5, 6, 0] as const" :key="day">
|
|
1028
|
+
<div class="fm-typo-en-body-md-400 py-12 px-12">
|
|
1029
|
+
{{ moment().day(day).format('dddd') }}
|
|
1024
1030
|
</div>
|
|
1025
|
-
<template v-
|
|
1026
|
-
<
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
<
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
v-model="hour.end"
|
|
1067
|
-
:min-time="hour.start"
|
|
1068
|
-
:restrict-min-time="false"
|
|
1069
|
-
/>
|
|
1070
|
-
</div>
|
|
1071
|
-
<div class="mr-8 w-32 flex-shrink">
|
|
1072
|
-
<FmButton
|
|
1073
|
-
variant="plain"
|
|
1074
|
-
icon="add"
|
|
1075
|
-
v-if="hi == 0"
|
|
1076
|
-
:disabled="hours.hours.length >= 2"
|
|
1077
|
-
@click="hours.hours.push({ start: hour.end, end: '23:59' })"
|
|
1078
|
-
/>
|
|
1079
|
-
<FmButton
|
|
1080
|
-
variant="plain"
|
|
1081
|
-
icon="delete"
|
|
1082
|
-
v-if="hi > 0"
|
|
1083
|
-
@click="
|
|
1084
|
-
deleteTimeRange(day as unknown as 0 | 1 | 2 | 3 | 4 | 5 | 6, hi)
|
|
1085
|
-
"
|
|
1086
|
-
/>
|
|
1087
|
-
</div>
|
|
1031
|
+
<template v-if="rangeSetting.operatingHours[day as 0 | 1 | 2 | 3 | 4 | 5 | 6]">
|
|
1032
|
+
<template
|
|
1033
|
+
v-for="hours in [rangeSetting.operatingHours[day as 0 | 1 | 2 | 3 | 4 | 5 | 6]]"
|
|
1034
|
+
:key="`hours-${day}`"
|
|
1035
|
+
>
|
|
1036
|
+
<div class="px-12 py-8">
|
|
1037
|
+
<FmSwitch
|
|
1038
|
+
label-placement="right"
|
|
1039
|
+
:model-value="hours.enable"
|
|
1040
|
+
@update:model-value="
|
|
1041
|
+
(v) => {
|
|
1042
|
+
rangeSetting.operatingHours[day].enable = v
|
|
1043
|
+
rangeSetting.operatingHours[day].hours = v
|
|
1044
|
+
? [
|
|
1045
|
+
{
|
|
1046
|
+
start: '00:00',
|
|
1047
|
+
end: '23:59'
|
|
1048
|
+
}
|
|
1049
|
+
]
|
|
1050
|
+
: []
|
|
1051
|
+
}
|
|
1052
|
+
"
|
|
1053
|
+
:label="hours.enable ? 'Open' : 'Closed'"
|
|
1054
|
+
/>
|
|
1055
|
+
</div>
|
|
1056
|
+
<div class="px-12 self-center">
|
|
1057
|
+
<div v-if="!hours.enable" class="">-</div>
|
|
1058
|
+
<div v-else class="flex flex-col">
|
|
1059
|
+
<div v-for="(hour, hi) in hours.hours" :key="hi" class="flex flex-col gap-4">
|
|
1060
|
+
<div class="flex gap-4 items-center justify-between">
|
|
1061
|
+
<div class="flex gap-12 items-center flex-1 justify-start py-8">
|
|
1062
|
+
<CustomTimePicker
|
|
1063
|
+
v-model="hour.start"
|
|
1064
|
+
:min-time="hours.hours[hi - 1]?.end ?? '00:00'"
|
|
1065
|
+
/>
|
|
1066
|
+
<div class="text-center w-16 flex-shrink-0">to</div>
|
|
1067
|
+
<CustomTimePicker
|
|
1068
|
+
v-model="hour.end"
|
|
1069
|
+
:min-time="hour.start"
|
|
1070
|
+
:restrict-min-time="false"
|
|
1071
|
+
/>
|
|
1088
1072
|
</div>
|
|
1089
|
-
<div
|
|
1090
|
-
|
|
1073
|
+
<div class="mr-8 w-32 flex-shrink">
|
|
1074
|
+
<FmButton
|
|
1075
|
+
variant="plain"
|
|
1076
|
+
icon="add"
|
|
1077
|
+
v-if="hi == 0"
|
|
1078
|
+
:disabled="hours.hours.length >= 2"
|
|
1079
|
+
@click="hours.hours.push({ start: hour.end, end: '23:59' })"
|
|
1080
|
+
/>
|
|
1081
|
+
<FmButton
|
|
1082
|
+
variant="plain"
|
|
1083
|
+
icon="delete"
|
|
1084
|
+
v-if="hi > 0"
|
|
1085
|
+
@click="
|
|
1086
|
+
deleteTimeRange(day as unknown as 0 | 1 | 2 | 3 | 4 | 5 | 6, hi)
|
|
1087
|
+
"
|
|
1088
|
+
/>
|
|
1091
1089
|
</div>
|
|
1092
1090
|
</div>
|
|
1091
|
+
<div v-if="getTimeRangeError(day, hi)" class="text-sm text-red-600 ml-4">
|
|
1092
|
+
{{ getTimeRangeError(day, hi) }}
|
|
1093
|
+
</div>
|
|
1093
1094
|
</div>
|
|
1094
1095
|
</div>
|
|
1095
|
-
</
|
|
1096
|
+
</div>
|
|
1096
1097
|
</template>
|
|
1097
1098
|
</template>
|
|
1098
|
-
</
|
|
1099
|
+
</template>
|
|
1099
1100
|
</div>
|
|
1101
|
+
</div>
|
|
1100
1102
|
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
</div>
|
|
1110
|
-
<FmRadioGroup
|
|
1111
|
-
:model-value="rangeSetting.slotInterval"
|
|
1112
|
-
@update:model-value="(v: number) => updateSlotInterval(v)"
|
|
1113
|
-
>
|
|
1114
|
-
<FmRadio label="15 min" :value="15" />
|
|
1115
|
-
<FmRadio label="30 min (default)" :value="30">
|
|
1116
|
-
<template #label
|
|
1117
|
-
>30 min <span class="text-fm-color-typo-secondary">(default)</span></template
|
|
1118
|
-
>
|
|
1119
|
-
</FmRadio>
|
|
1120
|
-
<FmRadio label="60 min" :value="60" />
|
|
1121
|
-
</FmRadioGroup>
|
|
1103
|
+
<FmCard variant="outlined" class="grid grid-cols-[1fr_2fr]">
|
|
1104
|
+
<div class="border-r py-[24px] px-16">
|
|
1105
|
+
<div class="mb-24">
|
|
1106
|
+
<div class="mb-8 fm-typo-en-body-lg-600 flex items-center gap-8">
|
|
1107
|
+
Time Interval
|
|
1108
|
+
<FmTooltip :content="'How often guests can start a reservation'">
|
|
1109
|
+
<FmIcon name="info" outline size="sm" class="cursor-pointer" />
|
|
1110
|
+
</FmTooltip>
|
|
1122
1111
|
</div>
|
|
1112
|
+
<FmRadioGroup
|
|
1113
|
+
:model-value="rangeSetting.slotInterval"
|
|
1114
|
+
@update:model-value="(v: number) => updateSlotInterval(v)"
|
|
1115
|
+
>
|
|
1116
|
+
<FmRadio label="15 min" :value="15" />
|
|
1117
|
+
<FmRadio label="30 min (default)" :value="30">
|
|
1118
|
+
<template #label
|
|
1119
|
+
>30 min <span class="text-fm-color-typo-secondary">(default)</span></template
|
|
1120
|
+
>
|
|
1121
|
+
</FmRadio>
|
|
1122
|
+
<FmRadio label="60 min" :value="60" />
|
|
1123
|
+
</FmRadioGroup>
|
|
1124
|
+
</div>
|
|
1123
1125
|
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
</div>
|
|
1131
|
-
<FmRadioGroup
|
|
1132
|
-
:model-value="rangeSetting.bookingDuration"
|
|
1133
|
-
@update:model-value="(v: number) => updateBookingDuration(v)"
|
|
1134
|
-
>
|
|
1135
|
-
<FmRadio label="60 min" :value="60" />
|
|
1136
|
-
<FmRadio label="90 min" :value="90">
|
|
1137
|
-
<template #label
|
|
1138
|
-
>90 min <span class="text-fm-color-typo-secondary">(default)</span></template
|
|
1139
|
-
>
|
|
1140
|
-
</FmRadio>
|
|
1141
|
-
|
|
1142
|
-
<FmRadio label="120 min" :value="120" />
|
|
1143
|
-
</FmRadioGroup>
|
|
1126
|
+
<div class="mb-24">
|
|
1127
|
+
<div class="mb-8 fm-typo-en-body-lg-600 flex items-center gap-8">
|
|
1128
|
+
Dining Duration
|
|
1129
|
+
<FmTooltip :content="'How long a table is reserved for each booking'">
|
|
1130
|
+
<FmIcon name="info" outline size="sm" class="cursor-pointer" />
|
|
1131
|
+
</FmTooltip>
|
|
1144
1132
|
</div>
|
|
1133
|
+
<FmRadioGroup
|
|
1134
|
+
:model-value="rangeSetting.bookingDuration"
|
|
1135
|
+
@update:model-value="(v: number) => updateBookingDuration(v)"
|
|
1136
|
+
>
|
|
1137
|
+
<FmRadio label="60 min" :value="60" />
|
|
1138
|
+
<FmRadio label="90 min" :value="90">
|
|
1139
|
+
<template #label
|
|
1140
|
+
>90 min <span class="text-fm-color-typo-secondary">(default)</span></template
|
|
1141
|
+
>
|
|
1142
|
+
</FmRadio>
|
|
1143
|
+
|
|
1144
|
+
<FmRadio label="120 min" :value="120" />
|
|
1145
|
+
</FmRadioGroup>
|
|
1145
1146
|
</div>
|
|
1147
|
+
</div>
|
|
1146
1148
|
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1149
|
+
<div class="p-16 flex flex-col gap-16">
|
|
1150
|
+
<div class="flex items-center justify-between w-full">
|
|
1151
|
+
<div class="fm-typo-en-body-lg-600">Available reservation slots (preview)</div>
|
|
1152
|
+
<FmSelect
|
|
1153
|
+
v-model="selectedPreviewDay"
|
|
1154
|
+
:items="[
|
|
1155
|
+
{ label: 'Monday', value: 1 },
|
|
1156
|
+
{ label: 'Tuesday', value: 2 },
|
|
1157
|
+
{ label: 'Wednesday', value: 3 },
|
|
1158
|
+
{ label: 'Thursday', value: 4 },
|
|
1159
|
+
{ label: 'Friday', value: 5 },
|
|
1160
|
+
{ label: 'Saturday', value: 6 },
|
|
1161
|
+
{ label: 'Sunday', value: 0 }
|
|
1162
|
+
]"
|
|
1163
|
+
/>
|
|
1164
|
+
</div>
|
|
1163
1165
|
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
</div>
|
|
1178
|
-
<div
|
|
1179
|
-
v-if="hasMoreItems.morning && !expandedSegments.morning"
|
|
1180
|
-
class="border-2 rounded-md text-center p-8 transition-colors cursor-pointer border-fm-color-primary text-fm-color-primary"
|
|
1181
|
-
@click="toggleSegmentExpansion('morning')"
|
|
1182
|
-
>
|
|
1183
|
-
more
|
|
1184
|
-
</div>
|
|
1166
|
+
<template v-if="availableSlots.morning.length > 0">
|
|
1167
|
+
<div class="fm-typo-en-body-md-600 text-[#4B4B4B]">Morning</div>
|
|
1168
|
+
<div class="grid grid-cols-5 gap-8">
|
|
1169
|
+
<div
|
|
1170
|
+
v-for="slot in displayedSlots.morning"
|
|
1171
|
+
:key="slot.time"
|
|
1172
|
+
class="border-1 rounded-md text-center p-8 transition-colors"
|
|
1173
|
+
:class="{
|
|
1174
|
+
'bg-[#fafafa] text-fm-color-typo-primary': slot.available,
|
|
1175
|
+
'bg-[#f0f0f0] text-fm-color-typo-disabled border-dashed': !slot.available
|
|
1176
|
+
}"
|
|
1177
|
+
>
|
|
1178
|
+
{{ slot.time }}
|
|
1185
1179
|
</div>
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
v-for="slot in displayedSlots.afternoon"
|
|
1193
|
-
:key="slot.time"
|
|
1194
|
-
class="border-1 rounded-md text-center p-8 transition-colors"
|
|
1195
|
-
:class="{
|
|
1196
|
-
'bg-[#fafafa] text-fm-color-typo-primary': slot.available,
|
|
1197
|
-
'bg-[#f0f0f0] text-fm-color-typo-disabled border-dashed': !slot.available
|
|
1198
|
-
}"
|
|
1199
|
-
>
|
|
1200
|
-
{{ slot.time }}
|
|
1201
|
-
</div>
|
|
1202
|
-
<div
|
|
1203
|
-
v-if="hasMoreItems.afternoon && !expandedSegments.afternoon"
|
|
1204
|
-
class="border-2 rounded-md text-center p-8 transition-colors cursor-pointer border-fm-color-primary text-fm-color-primary"
|
|
1205
|
-
@click="toggleSegmentExpansion('afternoon')"
|
|
1206
|
-
>
|
|
1207
|
-
more
|
|
1208
|
-
</div>
|
|
1180
|
+
<div
|
|
1181
|
+
v-if="hasMoreItems.morning && !expandedSegments.morning"
|
|
1182
|
+
class="border-2 rounded-md text-center p-8 transition-colors cursor-pointer border-fm-color-primary text-fm-color-primary"
|
|
1183
|
+
@click="toggleSegmentExpansion('morning')"
|
|
1184
|
+
>
|
|
1185
|
+
more
|
|
1209
1186
|
</div>
|
|
1210
|
-
</
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1187
|
+
</div>
|
|
1188
|
+
</template>
|
|
1189
|
+
|
|
1190
|
+
<template v-if="availableSlots.afternoon.length > 0">
|
|
1191
|
+
<div class="fm-typo-en-body-md-600 text-[#4B4B4B]">Afternoon</div>
|
|
1192
|
+
<div class="grid grid-cols-5 gap-8">
|
|
1193
|
+
<div
|
|
1194
|
+
v-for="slot in displayedSlots.afternoon"
|
|
1195
|
+
:key="slot.time"
|
|
1196
|
+
class="border-1 rounded-md text-center p-8 transition-colors"
|
|
1197
|
+
:class="{
|
|
1198
|
+
'bg-[#fafafa] text-fm-color-typo-primary': slot.available,
|
|
1199
|
+
'bg-[#f0f0f0] text-fm-color-typo-disabled border-dashed': !slot.available
|
|
1200
|
+
}"
|
|
1201
|
+
>
|
|
1202
|
+
{{ slot.time }}
|
|
1203
|
+
</div>
|
|
1204
|
+
<div
|
|
1205
|
+
v-if="hasMoreItems.afternoon && !expandedSegments.afternoon"
|
|
1206
|
+
class="border-2 rounded-md text-center p-8 transition-colors cursor-pointer border-fm-color-primary text-fm-color-primary"
|
|
1207
|
+
@click="toggleSegmentExpansion('afternoon')"
|
|
1208
|
+
>
|
|
1209
|
+
more
|
|
1210
|
+
</div>
|
|
1211
|
+
</div>
|
|
1212
|
+
</template>
|
|
1213
|
+
|
|
1214
|
+
<template v-if="availableSlots.evening.length > 0">
|
|
1215
|
+
<div class="fm-typo-en-body-md-600 text-[#4B4B4B]">Evening</div>
|
|
1216
|
+
<div class="grid grid-cols-5 gap-8">
|
|
1217
|
+
<div
|
|
1218
|
+
v-for="slot in displayedSlots.evening"
|
|
1219
|
+
:key="slot.time"
|
|
1220
|
+
class="border-1 rounded-md text-center p-8 transition-colors"
|
|
1221
|
+
:class="{
|
|
1222
|
+
'bg-[#fafafa] text-fm-color-typo-primary': slot.available,
|
|
1223
|
+
'bg-[#f0f0f0] text-fm-color-typo-disabled border-dashed': !slot.available
|
|
1224
|
+
}"
|
|
1225
|
+
>
|
|
1226
|
+
{{ slot.time }}
|
|
1227
|
+
</div>
|
|
1228
|
+
<div
|
|
1229
|
+
v-if="hasMoreItems.evening && !expandedSegments.evening"
|
|
1230
|
+
class="border-2 rounded-md text-center p-8 transition-colors cursor-pointer border-fm-color-primary text-fm-color-primary"
|
|
1231
|
+
@click="toggleSegmentExpansion('evening')"
|
|
1232
|
+
>
|
|
1233
|
+
more
|
|
1233
1234
|
</div>
|
|
1234
|
-
</template>
|
|
1235
|
-
|
|
1236
|
-
<div
|
|
1237
|
-
v-if="
|
|
1238
|
-
!availableSlots.morning.length &&
|
|
1239
|
-
!availableSlots.afternoon.length &&
|
|
1240
|
-
!availableSlots.evening.length
|
|
1241
|
-
"
|
|
1242
|
-
class="text-center text-fm-color-typo-secondary flex flex-col items-center gap-16 p-24"
|
|
1243
|
-
>
|
|
1244
|
-
<img :src="notfound" class="aspect-square w-[150px]" />
|
|
1245
|
-
Uh-oh! This outlet is closed on the selected day. <br />
|
|
1246
|
-
Please select another day to view available time slots.
|
|
1247
1235
|
</div>
|
|
1236
|
+
</template>
|
|
1237
|
+
|
|
1238
|
+
<div
|
|
1239
|
+
v-if="
|
|
1240
|
+
!availableSlots.morning.length &&
|
|
1241
|
+
!availableSlots.afternoon.length &&
|
|
1242
|
+
!availableSlots.evening.length
|
|
1243
|
+
"
|
|
1244
|
+
class="text-center text-fm-color-typo-secondary flex flex-col items-center gap-16 p-24"
|
|
1245
|
+
>
|
|
1246
|
+
<img :src="notfound" class="aspect-square w-[150px]" />
|
|
1247
|
+
Uh-oh! This outlet is closed on the selected day. <br />
|
|
1248
|
+
Please select another day to view available time slots.
|
|
1248
1249
|
</div>
|
|
1249
|
-
</
|
|
1250
|
+
</div>
|
|
1251
|
+
</FmCard>
|
|
1252
|
+
</div>
|
|
1253
|
+
|
|
1254
|
+
<div class="flex flex-col">
|
|
1255
|
+
<div class="flex-grow fm-typo-en-title-sm-600 mb-4">Table Capacity Settings</div>
|
|
1256
|
+
<div class="fm-typo-en-body-lg-400 text-fm-color-typo-secondary mb-24">
|
|
1257
|
+
Set how many tables are available for reservation per time slot. You can reduce availability
|
|
1258
|
+
to keep tables for walk-ins.
|
|
1250
1259
|
</div>
|
|
1251
1260
|
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
<div class="
|
|
1255
|
-
|
|
1256
|
-
|
|
1261
|
+
<!-- Table Capacity Settings -->
|
|
1262
|
+
<div>
|
|
1263
|
+
<div class="grid grid-cols-[4fr_4fr_4fr_1fr]">
|
|
1264
|
+
<div class="bg-fm-color-neutral-gray-100 p-12">Table Type</div>
|
|
1265
|
+
<div class="bg-fm-color-neutral-gray-100 p-12">Guest Range</div>
|
|
1266
|
+
<div class="bg-fm-color-neutral-gray-100 p-12 flex items-center gap-4">
|
|
1267
|
+
Available Table Count
|
|
1268
|
+
<FmTooltip :content="'Adjust how many tables can be booked for each time slot'">
|
|
1269
|
+
<FmIcon name="info" outline size="sm" class="cursor-pointer" />
|
|
1270
|
+
</FmTooltip>
|
|
1271
|
+
</div>
|
|
1272
|
+
<div class="bg-fm-color-neutral-gray-100 p-12"></div>
|
|
1257
1273
|
</div>
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1274
|
+
<div
|
|
1275
|
+
class="grid grid-cols-[4fr_4fr_4fr_1fr] items-center gap-8"
|
|
1276
|
+
v-for="tier in rangeSetting.capacityTiers"
|
|
1277
|
+
:key="tier._id"
|
|
1278
|
+
>
|
|
1279
|
+
<div class="p-8">{{ tier.minPax }}{{ tier.maxPax ? `-${tier.maxPax}` : '+' }} pax</div>
|
|
1280
|
+
<div class="flex items-center gap-4 pr-24">
|
|
1281
|
+
<FmStepperField v-model="tier.minPax" :min="1" />
|
|
1282
|
+
<div>to</div>
|
|
1283
|
+
<FmStepperField
|
|
1284
|
+
:model-value="tier.maxPax ?? null"
|
|
1285
|
+
@update:model-value="(v) => (tier.maxPax = v)"
|
|
1286
|
+
:min="tier.minPax"
|
|
1287
|
+
/>
|
|
1271
1288
|
</div>
|
|
1272
|
-
<div
|
|
1273
|
-
class="grid grid-cols-[4fr_4fr_4fr_1fr] items-center gap-8"
|
|
1274
|
-
v-for="tier in rangeSetting.capacityTiers"
|
|
1275
|
-
:key="tier._id"
|
|
1276
|
-
>
|
|
1277
|
-
<div class="p-8">{{ tier.minPax }}{{ tier.maxPax ? `-${tier.maxPax}` : '+' }} pax</div>
|
|
1278
|
-
<div class="flex items-center gap-4 pr-24">
|
|
1279
|
-
<FmStepperField v-model="tier.minPax" :min="1" />
|
|
1280
|
-
<div>to</div>
|
|
1281
|
-
<FmStepperField
|
|
1282
|
-
:model-value="tier.maxPax ?? null"
|
|
1283
|
-
@update:model-value="(v) => (tier.maxPax = v)"
|
|
1284
|
-
:min="tier.minPax"
|
|
1285
|
-
/>
|
|
1286
|
-
</div>
|
|
1287
|
-
<div class="flex items-center gap-8">
|
|
1288
|
-
<FmButton
|
|
1289
|
-
variant="tertiary"
|
|
1290
|
-
icon="remove"
|
|
1291
|
-
@click="tier.capacity--"
|
|
1292
|
-
:disabled="tier.capacity <= 1"
|
|
1293
|
-
class="!rounded-full !w-10 !h-10 !bg-fm-color-neutral-gray-100"
|
|
1294
|
-
/>
|
|
1295
|
-
<div class="w-32 text-center">{{ tier.capacity }}</div>
|
|
1296
|
-
<FmButton
|
|
1297
|
-
variant="tertiary"
|
|
1298
|
-
icon="add"
|
|
1299
|
-
@click="tier.capacity++"
|
|
1300
|
-
class="!rounded-full !w-10 !h-10 !bg-fm-color-neutral-gray-100"
|
|
1301
|
-
/>
|
|
1302
|
-
|
|
1303
|
-
<!-- <FmStepperField :model-value="tier.capacity ?? null" @update:model-value="(v) => (tier.capacity = v)" /> -->
|
|
1304
|
-
</div>
|
|
1289
|
+
<div class="flex items-center gap-8">
|
|
1305
1290
|
<FmButton
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
@click="
|
|
1309
|
-
|
|
1310
|
-
"
|
|
1291
|
+
variant="tertiary"
|
|
1292
|
+
icon="remove"
|
|
1293
|
+
@click="tier.capacity--"
|
|
1294
|
+
:disabled="tier.capacity <= 1"
|
|
1295
|
+
class="!rounded-full !w-10 !h-10 !bg-fm-color-neutral-gray-100"
|
|
1311
1296
|
/>
|
|
1312
|
-
|
|
1313
|
-
<div>
|
|
1297
|
+
<div class="w-32 text-center">{{ tier.capacity }}</div>
|
|
1314
1298
|
<FmButton
|
|
1315
|
-
|
|
1299
|
+
variant="tertiary"
|
|
1316
1300
|
icon="add"
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
rangeSetting.capacityTiers.push({
|
|
1320
|
-
_id: generateCapacityTierId(),
|
|
1321
|
-
minPax: Math.max(1, ([...rangeSetting.capacityTiers].pop()?.maxPax ?? 0) + 1),
|
|
1322
|
-
maxPax: null,
|
|
1323
|
-
capacity: 0
|
|
1324
|
-
})
|
|
1325
|
-
"
|
|
1301
|
+
@click="tier.capacity++"
|
|
1302
|
+
class="!rounded-full !w-10 !h-10 !bg-fm-color-neutral-gray-100"
|
|
1326
1303
|
/>
|
|
1304
|
+
|
|
1305
|
+
<!-- <FmStepperField :model-value="tier.capacity ?? null" @update:model-value="(v) => (tier.capacity = v)" /> -->
|
|
1327
1306
|
</div>
|
|
1307
|
+
<FmButton
|
|
1308
|
+
icon="delete"
|
|
1309
|
+
variant="plain"
|
|
1310
|
+
@click="rangeSetting.capacityTiers.splice(rangeSetting.capacityTiers.indexOf(tier), 1)"
|
|
1311
|
+
/>
|
|
1312
|
+
</div>
|
|
1313
|
+
<div>
|
|
1314
|
+
<FmButton
|
|
1315
|
+
label="Add table type"
|
|
1316
|
+
icon="add"
|
|
1317
|
+
variant="plain"
|
|
1318
|
+
@click="
|
|
1319
|
+
rangeSetting.capacityTiers.push({
|
|
1320
|
+
_id: generateCapacityTierId(),
|
|
1321
|
+
minPax: Math.max(1, ([...rangeSetting.capacityTiers].pop()?.maxPax ?? 0) + 1),
|
|
1322
|
+
maxPax: null,
|
|
1323
|
+
capacity: 0
|
|
1324
|
+
})
|
|
1325
|
+
"
|
|
1326
|
+
/>
|
|
1328
1327
|
</div>
|
|
1329
1328
|
</div>
|
|
1329
|
+
</div>
|
|
1330
1330
|
|
|
1331
|
-
|
|
1332
|
-
|
|
1331
|
+
<div>
|
|
1332
|
+
<div class="flex-grow fm-typo-en-title-sm-600 mb-16">Preorder</div>
|
|
1333
|
+
<FmSwitch
|
|
1334
|
+
label-placement="right"
|
|
1335
|
+
:label="'Enable preorder'"
|
|
1336
|
+
:sublabel="'Enable this to allow guests to place preorders when making a reservation. This allows them to order food in advance.'"
|
|
1337
|
+
:model-value="rangeSetting.enablePreorder"
|
|
1338
|
+
@update:model-value="(v: boolean) => (rangeSetting.enablePreorder = v)"
|
|
1339
|
+
/>
|
|
1340
|
+
<!-- Also shown while a window is stored with pre-order off: the server still applies
|
|
1341
|
+
it to bookings that already carry a pre-order, so it must stay visible to turn off. -->
|
|
1342
|
+
<div
|
|
1343
|
+
v-if="rangeSetting.enablePreorder || rangeSetting.freeCancellationBefore"
|
|
1344
|
+
class="ml-32 mt-12 p-16 border rounded-md bg-fm-color-neutral-gray-50"
|
|
1345
|
+
>
|
|
1333
1346
|
<FmSwitch
|
|
1334
1347
|
label-placement="right"
|
|
1335
|
-
:label="'
|
|
1336
|
-
:sublabel="'
|
|
1337
|
-
:model-value="rangeSetting.
|
|
1338
|
-
@update:model-value="(v: boolean) => (
|
|
1348
|
+
:label="'Limit online cancellation'"
|
|
1349
|
+
:sublabel="'Guests with a pre-order can cancel online only until this long before their booking. After that they need to call the outlet. Staff can still cancel on the POS.'"
|
|
1350
|
+
:model-value="!!rangeSetting.freeCancellationBefore"
|
|
1351
|
+
@update:model-value="(v: boolean) => toggleFreeCancellation(v)"
|
|
1339
1352
|
/>
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
<FmSwitch
|
|
1347
|
-
label-placement="right"
|
|
1348
|
-
:label="'Limit online cancellation'"
|
|
1349
|
-
:sublabel="'Guests with a pre-order can cancel online only until this long before their booking. After that they need to call the outlet. Staff can still cancel on the POS.'"
|
|
1350
|
-
:model-value="!!rangeSetting.freeCancellationBefore"
|
|
1351
|
-
@update:model-value="(v: boolean) => toggleFreeCancellation(v)"
|
|
1353
|
+
<div v-if="rangeSetting.freeCancellationBefore" class="flex items-center gap-8 mt-12">
|
|
1354
|
+
<div class="fm-typo-en-body-md-600">Free cancellation until</div>
|
|
1355
|
+
<FmStepperField
|
|
1356
|
+
:model-value="rangeSetting.freeCancellationBefore.value"
|
|
1357
|
+
@update:model-value="(v: number) => updateFreeCancellationValue(v)"
|
|
1358
|
+
:min="1"
|
|
1352
1359
|
/>
|
|
1353
|
-
<
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
:
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
:items="[
|
|
1364
|
-
{ label: 'Hours', value: 'hour' },
|
|
1365
|
-
{ label: 'Days', value: 'day' }
|
|
1366
|
-
]"
|
|
1367
|
-
class="w-120"
|
|
1368
|
-
/>
|
|
1369
|
-
<div class="fm-typo-en-body-md-400">before the booking</div>
|
|
1370
|
-
</div>
|
|
1360
|
+
<FmSelect
|
|
1361
|
+
:model-value="rangeSetting.freeCancellationBefore.unit"
|
|
1362
|
+
@update:model-value="(v: 'hour' | 'day') => updateFreeCancellationUnit(v)"
|
|
1363
|
+
:items="[
|
|
1364
|
+
{ label: 'Hours', value: 'hour' },
|
|
1365
|
+
{ label: 'Days', value: 'day' }
|
|
1366
|
+
]"
|
|
1367
|
+
class="w-120"
|
|
1368
|
+
/>
|
|
1369
|
+
<div class="fm-typo-en-body-md-400">before the booking</div>
|
|
1371
1370
|
</div>
|
|
1372
1371
|
</div>
|
|
1372
|
+
</div>
|
|
1373
1373
|
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1374
|
+
<div class="flex flex-col">
|
|
1375
|
+
<div class="flex-grow fm-typo-en-title-sm-600 mb-4">Guest Preferences</div>
|
|
1376
|
+
<div class="fm-typo-en-body-lg-400 text-fm-color-typo-secondary mb-24">
|
|
1377
|
+
Allow guests to select preferences during reservation, such as seating preferences,
|
|
1378
|
+
allergies, or other notes.
|
|
1379
|
+
</div>
|
|
1380
1380
|
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
}
|
|
1381
|
+
<FmSwitch
|
|
1382
|
+
class="mb-8"
|
|
1383
|
+
label="Enable preferences"
|
|
1384
|
+
label-placement="right"
|
|
1385
|
+
:model-value="rangeSetting.preferences.length > 0"
|
|
1386
|
+
@update:model-value="
|
|
1387
|
+
(v) => {
|
|
1388
|
+
if (v == true) {
|
|
1389
|
+
rangeSetting.preferences = [
|
|
1390
|
+
{
|
|
1391
|
+
name: '',
|
|
1392
|
+
type: 'radio',
|
|
1393
|
+
options: []
|
|
1394
|
+
}
|
|
1395
|
+
]
|
|
1396
|
+
} else {
|
|
1397
|
+
rangeSetting.preferences = []
|
|
1399
1398
|
}
|
|
1400
|
-
|
|
1401
|
-
|
|
1399
|
+
}
|
|
1400
|
+
"
|
|
1401
|
+
/>
|
|
1402
1402
|
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
</div>
|
|
1403
|
+
<FmCard
|
|
1404
|
+
v-for="(preference, pIndex) in rangeSetting.preferences"
|
|
1405
|
+
class="p-16 mb-12"
|
|
1406
|
+
variant="outlined"
|
|
1407
|
+
:key="pIndex"
|
|
1408
|
+
>
|
|
1409
|
+
<div class="fm-typo-en-body-lg-600 mb-8">Category title</div>
|
|
1410
|
+
<div class="grid grid-cols-[6fr_3fr_1fr] items-start gap-24 mb-24">
|
|
1411
|
+
<div>
|
|
1412
|
+
<FmTextField v-model="preference.name" placeholder="Enter a name" />
|
|
1413
|
+
<div class="fm-typo-en-body-md-400 text-fm-color-typo-tertiary mt-8">
|
|
1414
|
+
This title will be shown to guests during reservation.
|
|
1416
1415
|
</div>
|
|
1417
|
-
<FmSelect
|
|
1418
|
-
v-model="preference.type"
|
|
1419
|
-
:items="[
|
|
1420
|
-
{ label: 'Single choice', value: 'radio' },
|
|
1421
|
-
{ label: 'Multiple choice', value: 'checkbox' }
|
|
1422
|
-
]"
|
|
1423
|
-
/>
|
|
1424
|
-
<FmButton variant="tertiary" icon="delete" @click="removePreference(pIndex)" />
|
|
1425
1416
|
</div>
|
|
1417
|
+
<FmSelect
|
|
1418
|
+
v-model="preference.type"
|
|
1419
|
+
:items="[
|
|
1420
|
+
{ label: 'Single choice', value: 'radio' },
|
|
1421
|
+
{ label: 'Multiple choice', value: 'checkbox' }
|
|
1422
|
+
]"
|
|
1423
|
+
/>
|
|
1424
|
+
<FmButton variant="tertiary" icon="delete" @click="removePreference(pIndex)" />
|
|
1425
|
+
</div>
|
|
1426
1426
|
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
<FmCheckbox
|
|
1436
|
-
v-if="preference.type == 'checkbox'"
|
|
1437
|
-
disabled
|
|
1438
|
-
:value="option"
|
|
1439
|
-
:model-value="false"
|
|
1440
|
-
readonly
|
|
1441
|
-
class="mr-8"
|
|
1442
|
-
/>
|
|
1443
|
-
<FmRadio
|
|
1444
|
-
v-if="preference.type == 'radio'"
|
|
1445
|
-
disabled
|
|
1446
|
-
:value="option"
|
|
1447
|
-
:model-value="false"
|
|
1448
|
-
readonly
|
|
1449
|
-
/>
|
|
1450
|
-
|
|
1451
|
-
<!-- Editable option label -->
|
|
1452
|
-
<input
|
|
1453
|
-
v-if="isEditingOption(pIndex, oIndex)"
|
|
1454
|
-
type="text"
|
|
1455
|
-
class="flex-1 outline-none border-b-2 border-fm-color-primary px-4 py-2"
|
|
1456
|
-
:value="option"
|
|
1457
|
-
@blur="
|
|
1458
|
-
(e) => saveOptionEdit(pIndex, oIndex, (e.target as HTMLInputElement).value)
|
|
1459
|
-
"
|
|
1460
|
-
@keyup.enter="
|
|
1461
|
-
(e) => saveOptionEdit(pIndex, oIndex, (e.target as HTMLInputElement).value)
|
|
1462
|
-
"
|
|
1463
|
-
ref="optionInput"
|
|
1464
|
-
/>
|
|
1465
|
-
<div
|
|
1466
|
-
v-else-if="option != 'Other'"
|
|
1467
|
-
class="flex-1 cursor-pointer hover:bg-fm-color-neutral-gray-100 px-4 py-2 rounded transition-colors"
|
|
1468
|
-
@click="startEditingOption(pIndex, oIndex)"
|
|
1469
|
-
title="Click to edit"
|
|
1470
|
-
>
|
|
1471
|
-
{{ option }}
|
|
1472
|
-
</div>
|
|
1473
|
-
<div
|
|
1474
|
-
v-else-if="option == 'Other'"
|
|
1475
|
-
class="flex-1 px-4 py-2 border-b border-fm-color-neutral-gray-200"
|
|
1476
|
-
>
|
|
1477
|
-
Other:
|
|
1478
|
-
</div>
|
|
1479
|
-
</div>
|
|
1480
|
-
<FmButton
|
|
1481
|
-
variant="plain"
|
|
1482
|
-
icon="close"
|
|
1483
|
-
:class="{ 'opacity-0 pointer-events-nonex': oIndex == 0 }"
|
|
1484
|
-
@click="oIndex != 0 && removePreferenceOption(preference, option)"
|
|
1485
|
-
/>
|
|
1486
|
-
</div>
|
|
1487
|
-
<div class="flex items-center">
|
|
1427
|
+
<div v-if="preference.type == 'checkbox' || preference.type == 'radio'">
|
|
1428
|
+
<div class="mb-8 fm-typo-en-body-md-600">Options</div>
|
|
1429
|
+
<div
|
|
1430
|
+
v-for="(option, oIndex) in preference.options"
|
|
1431
|
+
:key="oIndex"
|
|
1432
|
+
class="flex items-center gap-4 gap-y-8 mb-8"
|
|
1433
|
+
>
|
|
1434
|
+
<div class="flex items-center w-full">
|
|
1488
1435
|
<FmCheckbox
|
|
1489
1436
|
v-if="preference.type == 'checkbox'"
|
|
1490
1437
|
disabled
|
|
1491
|
-
:value="
|
|
1438
|
+
:value="option"
|
|
1492
1439
|
:model-value="false"
|
|
1493
1440
|
readonly
|
|
1441
|
+
class="mr-8"
|
|
1442
|
+
/>
|
|
1443
|
+
<FmRadio
|
|
1444
|
+
v-if="preference.type == 'radio'"
|
|
1445
|
+
disabled
|
|
1446
|
+
:value="option"
|
|
1447
|
+
:model-value="false"
|
|
1448
|
+
readonly
|
|
1449
|
+
/>
|
|
1450
|
+
|
|
1451
|
+
<!-- Editable option label -->
|
|
1452
|
+
<input
|
|
1453
|
+
v-if="isEditingOption(pIndex, oIndex)"
|
|
1454
|
+
type="text"
|
|
1455
|
+
class="flex-1 outline-none border-b-2 border-fm-color-primary px-4 py-2"
|
|
1456
|
+
:value="option"
|
|
1457
|
+
@blur="(e) => saveOptionEdit(pIndex, oIndex, (e.target as HTMLInputElement).value)"
|
|
1458
|
+
@keyup.enter="
|
|
1459
|
+
(e) => saveOptionEdit(pIndex, oIndex, (e.target as HTMLInputElement).value)
|
|
1460
|
+
"
|
|
1461
|
+
ref="optionInput"
|
|
1494
1462
|
/>
|
|
1495
|
-
<div
|
|
1496
|
-
|
|
1463
|
+
<div
|
|
1464
|
+
v-else-if="option != 'Other'"
|
|
1465
|
+
class="flex-1 cursor-pointer hover:bg-fm-color-neutral-gray-100 px-4 py-2 rounded transition-colors"
|
|
1466
|
+
@click="startEditingOption(pIndex, oIndex)"
|
|
1467
|
+
title="Click to edit"
|
|
1468
|
+
>
|
|
1469
|
+
{{ option }}
|
|
1497
1470
|
</div>
|
|
1498
|
-
<div
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
@click="
|
|
1504
|
-
addPreferenceOption(preference, `Option ${preference.options.length + 1}`)
|
|
1505
|
-
"
|
|
1506
|
-
>
|
|
1507
|
-
<template #default>
|
|
1508
|
-
<div>Add option</div>
|
|
1509
|
-
</template>
|
|
1510
|
-
</FmButton>
|
|
1511
|
-
<template v-if="!preference.options.includes('Other')">
|
|
1512
|
-
<div>or</div>
|
|
1513
|
-
<FmButton
|
|
1514
|
-
variant="plain"
|
|
1515
|
-
label='add "Other"'
|
|
1516
|
-
@click="addPreferenceOption(preference, 'Other')"
|
|
1517
|
-
/>
|
|
1518
|
-
</template>
|
|
1471
|
+
<div
|
|
1472
|
+
v-else-if="option == 'Other'"
|
|
1473
|
+
class="flex-1 px-4 py-2 border-b border-fm-color-neutral-gray-200"
|
|
1474
|
+
>
|
|
1475
|
+
Other:
|
|
1519
1476
|
</div>
|
|
1520
1477
|
</div>
|
|
1478
|
+
<FmButton
|
|
1479
|
+
variant="plain"
|
|
1480
|
+
icon="close"
|
|
1481
|
+
:class="{ 'opacity-0 pointer-events-nonex': oIndex == 0 }"
|
|
1482
|
+
@click="oIndex != 0 && removePreferenceOption(preference, option)"
|
|
1483
|
+
/>
|
|
1521
1484
|
</div>
|
|
1522
|
-
|
|
1485
|
+
<div class="flex items-center">
|
|
1486
|
+
<FmCheckbox
|
|
1487
|
+
v-if="preference.type == 'checkbox'"
|
|
1488
|
+
disabled
|
|
1489
|
+
:value="null"
|
|
1490
|
+
:model-value="false"
|
|
1491
|
+
readonly
|
|
1492
|
+
/>
|
|
1493
|
+
<div v-if="preference.type == 'radio'" class="flex items-center">
|
|
1494
|
+
<FmRadio disabled :value="null" :model-value="false" readonly />
|
|
1495
|
+
</div>
|
|
1496
|
+
<div class="flex items-center w-full">
|
|
1497
|
+
<FmButton
|
|
1498
|
+
variant="tertiary"
|
|
1499
|
+
class="text-fm-color-typo-secondary"
|
|
1500
|
+
label="add option"
|
|
1501
|
+
@click="addPreferenceOption(preference, `Option ${preference.options.length + 1}`)"
|
|
1502
|
+
>
|
|
1503
|
+
<template #default>
|
|
1504
|
+
<div>Add option</div>
|
|
1505
|
+
</template>
|
|
1506
|
+
</FmButton>
|
|
1507
|
+
<template v-if="!preference.options.includes('Other')">
|
|
1508
|
+
<div>or</div>
|
|
1509
|
+
<FmButton
|
|
1510
|
+
variant="plain"
|
|
1511
|
+
label='add "Other"'
|
|
1512
|
+
@click="addPreferenceOption(preference, 'Other')"
|
|
1513
|
+
/>
|
|
1514
|
+
</template>
|
|
1515
|
+
</div>
|
|
1516
|
+
</div>
|
|
1517
|
+
</div>
|
|
1518
|
+
</FmCard>
|
|
1519
|
+
|
|
1520
|
+
<FmCard variant="outlined" class="border-dashed p-16" v-if="rangeSetting.preferences.length">
|
|
1521
|
+
<FmButton
|
|
1522
|
+
label="Add another preference category"
|
|
1523
|
+
icon="add"
|
|
1524
|
+
variant="plain"
|
|
1525
|
+
class="border-1 border-fm-color-primary rounded-lg"
|
|
1526
|
+
@click="addPreference"
|
|
1527
|
+
/>
|
|
1528
|
+
</FmCard>
|
|
1529
|
+
</div>
|
|
1523
1530
|
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
>
|
|
1529
|
-
<FmButton
|
|
1530
|
-
label="Add another preference category"
|
|
1531
|
-
icon="add"
|
|
1532
|
-
variant="plain"
|
|
1533
|
-
class="border-1 border-fm-color-primary rounded-lg"
|
|
1534
|
-
@click="addPreference"
|
|
1535
|
-
/>
|
|
1536
|
-
</FmCard>
|
|
1531
|
+
<div class="flex flex-col">
|
|
1532
|
+
<div class="flex-grow fm-typo-en-title-sm-600 mb-4">Guest Message</div>
|
|
1533
|
+
<div class="fm-typo-en-body-lg-400 text-fm-color-typo-secondary mb-24">
|
|
1534
|
+
Add important information or notes guests should know before their visit.
|
|
1537
1535
|
</div>
|
|
1538
1536
|
|
|
1539
|
-
<
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1537
|
+
<FmSwitch
|
|
1538
|
+
class="mb-16"
|
|
1539
|
+
label="Enable guest message"
|
|
1540
|
+
label-placement="right"
|
|
1541
|
+
:model-value="rangeSetting.guestMessage !== null && rangeSetting.guestMessage !== undefined"
|
|
1542
|
+
@update:model-value="toggleGuestMessage"
|
|
1543
|
+
/>
|
|
1544
1544
|
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
:
|
|
1550
|
-
|
|
1551
|
-
"
|
|
1552
|
-
@update:model-value="toggleGuestMessage"
|
|
1545
|
+
<div v-if="rangeSetting.guestMessage !== null && rangeSetting.guestMessage !== undefined">
|
|
1546
|
+
<div class="mb-8 fm-typo-en-body-md-600">Message</div>
|
|
1547
|
+
<FmTextarea
|
|
1548
|
+
v-model="rangeSetting.guestMessage"
|
|
1549
|
+
:maxLength="600"
|
|
1550
|
+
placeholder="Please take note of the following important details before making a reservation:"
|
|
1551
|
+
class="mb-4"
|
|
1553
1552
|
/>
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
<div class="mb-8 fm-typo-en-body-md-600">Message</div>
|
|
1557
|
-
<FmTextarea
|
|
1558
|
-
v-model="rangeSetting.guestMessage"
|
|
1559
|
-
:maxLength="600"
|
|
1560
|
-
placeholder="Please take note of the following important details before making a reservation:"
|
|
1561
|
-
class="mb-4"
|
|
1562
|
-
/>
|
|
1563
|
-
<div class="text-right text-fm-color-typo-tertiary fm-typo-en-body-sm-400">
|
|
1564
|
-
{{ rangeSetting.guestMessage?.length || 0 }} / 600 characters
|
|
1565
|
-
</div>
|
|
1553
|
+
<div class="text-right text-fm-color-typo-tertiary fm-typo-en-body-sm-400">
|
|
1554
|
+
{{ rangeSetting.guestMessage?.length || 0 }} / 600 characters
|
|
1566
1555
|
</div>
|
|
1567
1556
|
</div>
|
|
1557
|
+
</div>
|
|
1568
1558
|
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1559
|
+
<div class="flex flex-col">
|
|
1560
|
+
<div class="flex-grow fm-typo-en-title-sm-600 mb-4">Cancellation Policy</div>
|
|
1561
|
+
<div class="fm-typo-en-body-lg-400 text-fm-color-typo-secondary mb-24">
|
|
1562
|
+
Set the rules guests should follow when cancelling a reservation.
|
|
1563
|
+
</div>
|
|
1574
1564
|
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
/>
|
|
1565
|
+
<FmSwitch
|
|
1566
|
+
class="mb-16"
|
|
1567
|
+
label="Enable cancellation policy"
|
|
1568
|
+
label-placement="right"
|
|
1569
|
+
:model-value="
|
|
1570
|
+
rangeSetting.cancellationPolicy !== null && rangeSetting.cancellationPolicy !== undefined
|
|
1571
|
+
"
|
|
1572
|
+
@update:model-value="toggleCancellationPolicy"
|
|
1573
|
+
/>
|
|
1585
1574
|
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
>
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
{{ rangeSetting.cancellationPolicy?.length || 0 }} / 200 characters
|
|
1601
|
-
</div>
|
|
1575
|
+
<div
|
|
1576
|
+
v-if="
|
|
1577
|
+
rangeSetting.cancellationPolicy !== null && rangeSetting.cancellationPolicy !== undefined
|
|
1578
|
+
"
|
|
1579
|
+
>
|
|
1580
|
+
<div class="mb-8 fm-typo-en-body-md-600">Message</div>
|
|
1581
|
+
<FmTextarea
|
|
1582
|
+
v-model="rangeSetting.cancellationPolicy"
|
|
1583
|
+
:maxLength="200"
|
|
1584
|
+
placeholder="Cancellation Policy"
|
|
1585
|
+
class="mb-4"
|
|
1586
|
+
/>
|
|
1587
|
+
<div class="text-right text-fm-color-typo-tertiary fm-typo-en-body-sm-400">
|
|
1588
|
+
{{ rangeSetting.cancellationPolicy?.length || 0 }} / 200 characters
|
|
1602
1589
|
</div>
|
|
1603
1590
|
</div>
|
|
1604
|
-
</
|
|
1591
|
+
</div>
|
|
1605
1592
|
|
|
1606
1593
|
<!-- Save Button -->
|
|
1607
1594
|
<div class="flex mt-5">
|