@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.
Files changed (32) hide show
  1. package/dist/{DisplaySystemView-vuipxGRx.js → DisplaySystemView-CFr9DnaD.js} +4 -4
  2. package/dist/{FoodCourtInvitationsView-BZMsiArC.js → FoodCourtInvitationsView-Bo174yfB.js} +4 -4
  3. package/dist/{FoodCourtOrderSettingsView-i4bTicbZ.js → FoodCourtOrderSettingsView-uUe53O0Z.js} +1 -1
  4. package/dist/{FoodCourtOrdersView-CZM4c0bp.js → FoodCourtOrdersView-CxC5oGp2.js} +4 -4
  5. package/dist/{FoodCourtStallsView-BLeIFnAy.js → FoodCourtStallsView-BEpRBmSL.js} +2 -2
  6. package/dist/{FoodCourtStatusView-1oG0L1NW.js → FoodCourtStatusView-DA7mdsuf.js} +1 -1
  7. package/dist/{KioskDevicesView-AuzH288u.js → KioskDevicesView-BY9Egk75.js} +1 -1
  8. 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
  9. package/dist/{KioskSettingView-BWcj91OM.js → KioskSettingView-DPaQ7YFV.js} +3 -3
  10. package/dist/{KioskView-Cj5FSqJn.js → KioskView-BYL0u6kj.js} +8 -8
  11. package/dist/{OrderSettingsView-Cl8fOtbj.js → OrderSettingsView-BBHAhgE9.js} +14212 -14191
  12. 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
  13. package/dist/{app-Cf1H6V1s.js → app-BV2USn83.js} +1616 -1378
  14. package/dist/app.js +1 -1
  15. package/dist/{dayjs.min-D-VxMFb0.js → dayjs.min-Bp4Kgnt_.js} +1 -1
  16. package/dist/{featureFlag-rUt7H5aH.js → featureFlag-C1uGG7u6.js} +1 -1
  17. package/dist/frontend/mf-order/src/app.d.ts +222 -0
  18. package/dist/frontend/mf-order/src/main.d.ts +222 -0
  19. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  20. package/dist/{index-CtKOHwTp.js → index-0GuybwuA.js} +1 -1
  21. package/dist/{index-ffTQvJeM.js → index-CRNutZC_.js} +4 -4
  22. package/dist/{index-C3BPAUoF.js → index-D0ZIByef.js} +1 -1
  23. package/dist/{index-CMaJn6Yc.js → index-HF3qh9qG.js} +1 -1
  24. package/dist/{index-GZ4oNEnl.js → index-KWOCCun9.js} +2 -2
  25. package/dist/{order.dto-Dk3w1iY7.js → order.dto-GQaBESZq.js} +2 -2
  26. package/dist/{useInternalUser-8uTpJ7hZ.js → useInternalUser-C39xpsBU.js} +1 -1
  27. package/package.json +1 -1
  28. package/src/locales/en-US.json +111 -0
  29. package/src/locales/th-TH.json +116 -5
  30. package/src/views/order-settings/reservation/CopySettingsSheet.vue +21 -21
  31. package/src/views/order-settings/reservation/ReservationSetting.vue +226 -148
  32. package/src/views/order-settings/reservation/reservation-pos-note.spec.ts +1 -1
@@ -1,4 +1,4 @@
1
- import { g as a, b as o } from "./index-CMaJn6Yc.js";
1
+ import { g as a, b as o } from "./index-HF3qh9qG.js";
2
2
  const n = (t) => o(`/food-court-v2/${t}`), u = {
3
3
  async getDineIn(t) {
4
4
  return a(await n(t).get("/dine-in"));
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as Q, ref as V, resolveComponent as R, openBlock as f, createElementBlock as T, createElementVNode as w, toDisplayString as S, createVNode as $, unref as x, createBlock as z, computed as U, watch as oe, onMounted as re, withCtx as N, createTextVNode as se, createCommentVNode as E, Fragment as ie, renderList as ue, renderSlot as ae } from "vue";
2
- import { e as g } from "./app-Cf1H6V1s.js";
2
+ import { e as g } from "./app-BV2USn83.js";
3
3
  import { useDialog as le } from "@feedmepos/ui-library";
4
4
  import { useI18n as Y, useCoreStore as ne } from "@feedmepos/mf-common";
5
5
  import { defineStore as de } from "pinia";
6
- import { r as O, g as a, b as F, S as H } from "./index-CMaJn6Yc.js";
7
- import "./order.dto-Dk3w1iY7.js";
8
- import { a as q } from "./index-C3BPAUoF.js";
6
+ import { r as O, g as a, b as F, S as H } from "./index-HF3qh9qG.js";
7
+ import "./order.dto-GQaBESZq.js";
8
+ import { a as q } from "./index-D0ZIByef.js";
9
9
  const ce = /* @__PURE__ */ Q({
10
10
  __name: "OfflinePaymentTypeDialogContent",
11
11
  props: {
@@ -1,4 +1,4 @@
1
- import { c as Le, j as ea } from "./app-Cf1H6V1s.js";
1
+ import { c as Le, j as ea } from "./app-BV2USn83.js";
2
2
  function Ct(me) {
3
3
  throw new Error('Could not dynamically require "' + me + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
4
4
  }
@@ -1,7 +1,7 @@
1
1
  var dn = Object.defineProperty;
2
2
  var pn = (e, t, n) => t in e ? dn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var je = (e, t, n) => pn(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { e as Ct } from "./app-Cf1H6V1s.js";
4
+ import { e as Ct } from "./app-BV2USn83.js";
5
5
  import { useCoreStore as Y } from "@feedmepos/mf-common";
6
6
  function Ut(e, t) {
7
7
  return function() {
@@ -1,5 +1,5 @@
1
- import { g as s, s as o, S as g, r as u } from "./index-CMaJn6Yc.js";
2
- import "./order.dto-Dk3w1iY7.js";
1
+ import { g as s, s as o, S as g, r as u } from "./index-HF3qh9qG.js";
2
+ import "./order.dto-GQaBESZq.js";
3
3
  function S(t, n = () => !1) {
4
4
  var i;
5
5
  const e = (i = t.queueSettings) == null ? void 0 : i.codeSettings;
@@ -1,5 +1,5 @@
1
- import { k as v, e as _, w as ce, c as E, i as _c, j as Su } from "./app-Cf1H6V1s.js";
2
- import { a as ut } from "./index-C3BPAUoF.js";
1
+ import { k as v, e as _, w as ce, c as E, i as _c, j as Su } from "./app-BV2USn83.js";
2
+ import { a as ut } from "./index-D0ZIByef.js";
3
3
  var e = v();
4
4
  const pe = e.z.enum([
5
5
  "CREATING",
@@ -1,4 +1,4 @@
1
- import { g as Kr } from "./app-Cf1H6V1s.js";
1
+ import { g as Kr } from "./app-BV2USn83.js";
2
2
  import { computed as Zr } from "vue";
3
3
  import { useCoreStore as Jr } from "@feedmepos/mf-common";
4
4
  var k = { exports: {} }, se, er;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-order-setting",
3
- "version": "0.0.104",
3
+ "version": "0.0.105",
4
4
  "type": "module",
5
5
  "module": "./dist/app.js",
6
6
  "license": "UNLICENSED",
@@ -1,5 +1,116 @@
1
1
  {
2
2
  "order": {
3
+ "reservationSetting": {
4
+ "onlineBooking": "Online booking",
5
+ "onlineBookingSublabel": "Customers can book this outlet online. When off, staff can still add bookings on POS. This setting does not impact walk-in dining.",
6
+ "draftHoldTimeTooltip": "The amount of time a reservation is held before it is automatically released.",
7
+ "minutes": "minutes",
8
+ "availabilityDescription": "This shows when guests can make reservations based on your current settings. The availability updates automatically.",
9
+ "preview": "Preview",
10
+ "to": "to",
11
+ "reservationsOpenOnPrefix": "Reservations will open on",
12
+ "reservationsOpenOnSuffix": ". Guests will not be able to make reservations before this time.",
13
+ "presets": "Presets",
14
+ "daysCount": "{count} days",
15
+ "default": "(default)",
16
+ "custom": "Custom",
17
+ "minLeadTime": "Minimum Lead Time",
18
+ "minLeadTimeTooltip": "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.",
19
+ "maxLeadTime": "Maximum Lead Time",
20
+ "maxLeadTimeTooltip": "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.",
21
+ "hours": "Hours",
22
+ "days": "Days",
23
+ "timeSettings": "Time Settings",
24
+ "timeSettingsDescription": "Choose the start and end time for reservations, and the interval between each time slot. Available time slots will be generated automatically.",
25
+ "day": "Day",
26
+ "openClosed": "Open / Closed",
27
+ "reservationTimeRange": "Reservation Time Range",
28
+ "open": "Open",
29
+ "closed": "Closed",
30
+ "weekdays": {
31
+ "0": "Sunday",
32
+ "1": "Monday",
33
+ "2": "Tuesday",
34
+ "3": "Wednesday",
35
+ "4": "Thursday",
36
+ "5": "Friday",
37
+ "6": "Saturday"
38
+ },
39
+ "timeInterval": "Time Interval",
40
+ "timeIntervalTooltip": "How often guests can start a reservation",
41
+ "minutesShort": "{count} min",
42
+ "diningDuration": "Dining Duration",
43
+ "diningDurationTooltip": "How long a table is reserved for each booking",
44
+ "availableSlotsPreview": "Available reservation slots (preview)",
45
+ "morning": "Morning",
46
+ "afternoon": "Afternoon",
47
+ "evening": "Evening",
48
+ "more": "more",
49
+ "closedOnSelectedDay": "Uh-oh! This outlet is closed on the selected day.",
50
+ "selectAnotherDay": "Please select another day to view available time slots.",
51
+ "tableCapacitySettings": "Table Capacity Settings",
52
+ "tableCapacityDescription": "Set how many tables are available for reservation per time slot. You can reduce availability to keep tables for walk-ins.",
53
+ "tableType": "Table Type",
54
+ "guestRange": "Guest Range",
55
+ "availableTableCount": "Available Table Count",
56
+ "availableTableCountTooltip": "Adjust how many tables can be booked for each time slot",
57
+ "paxRange": "{range} pax",
58
+ "addTableType": "Add table type",
59
+ "preorder": "Preorder",
60
+ "enablePreorder": "Enable preorder",
61
+ "enablePreorderSublabel": "Enable this to allow guests to place preorders when making a reservation. This allows them to order food in advance.",
62
+ "limitOnlineCancellation": "Limit online cancellation",
63
+ "limitOnlineCancellationSublabel": "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.",
64
+ "freeCancellationUntil": "Free cancellation until",
65
+ "beforeTheBooking": "before the booking",
66
+ "guestPreferences": "Guest Preferences",
67
+ "guestPreferencesDescription": "Allow guests to select preferences during reservation, such as seating preferences, allergies, or other notes.",
68
+ "enablePreferences": "Enable preferences",
69
+ "categoryTitle": "Category title",
70
+ "enterAName": "Enter a name",
71
+ "categoryTitleHint": "This title will be shown to guests during reservation.",
72
+ "singleChoice": "Single choice",
73
+ "multipleChoice": "Multiple choice",
74
+ "options": "Options",
75
+ "clickToEdit": "Click to edit",
76
+ "otherOption": "Other:",
77
+ "addOption": "Add option",
78
+ "or": "or",
79
+ "addOther": "add \"Other\"",
80
+ "addPreferenceCategory": "Add another preference category",
81
+ "guestMessage": "Guest Message",
82
+ "guestMessageDescription": "Add important information or notes guests should know before their visit.",
83
+ "enableGuestMessage": "Enable guest message",
84
+ "guestMessageDefault": "Please take note of the following important details before making a reservation:\n\n1. Dining Time Limit\n- Our restaurant enforces a dining time limit of 1 hour and 30 minutes.\n\n2. 15-Minute Holding Policy\n- 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.",
85
+ "message": "Message",
86
+ "guestMessagePlaceholder": "Please take note of the following important details before making a reservation:",
87
+ "charactersCount": "{count} / {max} characters",
88
+ "cancellationPolicy": "Cancellation Policy",
89
+ "cancellationPolicyDescription": "Set the rules guests should follow when cancelling a reservation.",
90
+ "enableCancellationPolicy": "Enable cancellation policy",
91
+ "cancellationPolicyDefault": "Cancellation Policy\n\nFree cancellation up to 24 hours before your reservation. Please contact the outlet for any last-minute changes.",
92
+ "fixTimeRangeErrors": "Please fix all time range errors before saving.",
93
+ "timeRangeSameStartEnd": "Start and end time cannot be the same",
94
+ "timeRangeOverlap": "Time ranges cannot overlap",
95
+ "maxLeadMustExceedMin": "Maximum lead time must be greater than minimum lead time",
96
+ "leadTimeMustBePositive": "Lead time values must be positive",
97
+ "minGuestsAtLeastOne": "Minimum guests must be at least 1",
98
+ "maxGuestsAtLeastMin": "Maximum guests must be greater than or equal to minimum guests",
99
+ "copyFromAnotherRestaurant": "Copy settings from another restaurant",
100
+ "copySettingsFrom": "Copy settings from",
101
+ "select": "Select",
102
+ "configuration": "Configuration",
103
+ "all": "All",
104
+ "copyOverwriteWarning": "This will overwrite all reservation settings for {name}",
105
+ "apply": "Apply",
106
+ "cancel": "Cancel",
107
+ "selectRestaurant": "Please select a restaurant",
108
+ "selectAtLeastOneOption": "Please select at least one configuration option",
109
+ "noSettingsFound": "No settings found for the selected restaurant",
110
+ "selectedOutlet": "selected outlet",
111
+ "settingsApplied": "Settings from \"{name}\" have been applied. Please review and save changes.",
112
+ "copyFailed": "Failed to copy settings. Please try again."
113
+ },
3
114
  "foodCourt": {
4
115
  "orders": {
5
116
  "title": "Orders",
@@ -1,5 +1,116 @@
1
1
  {
2
2
  "order": {
3
+ "reservationSetting": {
4
+ "onlineBooking": "การจองออนไลน์",
5
+ "onlineBookingSublabel": "ลูกค้าสามารถจองสาขานี้ผ่านช่องทางออนไลน์ได้ เมื่อปิดการจองออนไลน์ พนักงานยังสามารถเพิ่มรายการจองผ่าน POS ได้ตามปกติ โดยการตั้งค่านี้ไม่มีผลต่อการรับลูกค้า Walk-in ที่หน้าร้าน",
6
+ "draftHoldTimeTooltip": "ระยะเวลาที่ระบบสำรองการจองไว้ก่อนปล่อยคืนอัตโนมัติ",
7
+ "minutes": "นาที",
8
+ "availabilityDescription": "แสดงช่วงเวลาที่ลูกค้าสามารถจองได้ตามการตั้งค่าปัจจุบันของคุณ ช่วงเวลาจะอัปเดตโดยอัตโนมัติ",
9
+ "preview": "ตัวอย่าง",
10
+ "to": "ถึง",
11
+ "reservationsOpenOnPrefix": "การจองจะเปิดในวันที่",
12
+ "reservationsOpenOnSuffix": " ลูกค้าจะไม่สามารถจองก่อนเวลานี้ได้",
13
+ "presets": "ค่าที่ตั้งไว้ล่วงหน้า",
14
+ "daysCount": "{count} วัน",
15
+ "default": "(ค่าเริ่มต้น)",
16
+ "custom": "กำหนดเอง",
17
+ "minLeadTime": "ระยะเวลาจองล่วงหน้าขั้นต่ำ",
18
+ "minLeadTimeTooltip": "เวลาที่เร็วที่สุดที่ลูกค้าสามารถจองได้ เช่น หากตั้งไว้ 1 วัน ลูกค้าจะจองได้ตั้งแต่วันพรุ่งนี้เป็นต้นไป",
19
+ "maxLeadTime": "ระยะเวลาจองล่วงหน้าสูงสุด",
20
+ "maxLeadTimeTooltip": "ระยะเวลาล่วงหน้าที่ไกลที่สุดที่ลูกค้าสามารถจองได้ เช่น หากตั้งไว้ 30 วัน ลูกค้าจะจองได้ไม่เกิน 30 วันนับจากวันนี้",
21
+ "hours": "ชั่วโมง",
22
+ "days": "วัน",
23
+ "timeSettings": "การตั้งค่าเวลา",
24
+ "timeSettingsDescription": "เลือกเวลาเริ่มต้นและสิ้นสุดของการจอง และระยะห่างระหว่างแต่ละช่วงเวลา ระบบจะสร้างช่วงเวลาที่จองได้ให้อัตโนมัติ",
25
+ "day": "วัน",
26
+ "openClosed": "เปิด / ปิด",
27
+ "reservationTimeRange": "ช่วงเวลาการจอง",
28
+ "open": "เปิด",
29
+ "closed": "ปิด",
30
+ "weekdays": {
31
+ "0": "วันอาทิตย์",
32
+ "1": "วันจันทร์",
33
+ "2": "วันอังคาร",
34
+ "3": "วันพุธ",
35
+ "4": "วันพฤหัสบดี",
36
+ "5": "วันศุกร์",
37
+ "6": "วันเสาร์"
38
+ },
39
+ "timeInterval": "ระยะห่างของช่วงเวลา",
40
+ "timeIntervalTooltip": "ความถี่ที่ลูกค้าสามารถเริ่มการจองได้",
41
+ "minutesShort": "{count} นาที",
42
+ "diningDuration": "ระยะเวลารับประทานอาหาร",
43
+ "diningDurationTooltip": "ระยะเวลาที่กันโต๊ะไว้สำหรับแต่ละการจอง",
44
+ "availableSlotsPreview": "ช่วงเวลาที่เปิดให้จอง (ตัวอย่าง)",
45
+ "morning": "ช่วงเช้า",
46
+ "afternoon": "ช่วงบ่าย",
47
+ "evening": "ช่วงเย็น",
48
+ "more": "เพิ่มเติม",
49
+ "closedOnSelectedDay": "ขออภัย! สาขานี้ปิดในวันที่เลือก",
50
+ "selectAnotherDay": "กรุณาเลือกวันอื่นเพื่อดูช่วงเวลาที่จองได้",
51
+ "tableCapacitySettings": "การตั้งค่าจำนวนโต๊ะ",
52
+ "tableCapacityDescription": "กำหนดจำนวนโต๊ะที่เปิดให้จองต่อหนึ่งช่วงเวลา คุณสามารถลดจำนวนลงเพื่อเก็บโต๊ะไว้สำหรับลูกค้า Walk-in",
53
+ "tableType": "ประเภทโต๊ะ",
54
+ "guestRange": "จำนวนลูกค้า",
55
+ "availableTableCount": "จำนวนโต๊ะที่เปิดให้จอง",
56
+ "availableTableCountTooltip": "ปรับจำนวนโต๊ะที่สามารถจองได้ในแต่ละช่วงเวลา",
57
+ "paxRange": "{range} ท่าน",
58
+ "addTableType": "เพิ่มประเภทโต๊ะ",
59
+ "preorder": "สั่งอาหารล่วงหน้า",
60
+ "enablePreorder": "เปิดใช้การสั่งอาหารล่วงหน้า",
61
+ "enablePreorderSublabel": "เปิดเพื่อให้ลูกค้าสั่งอาหารล่วงหน้าได้ขณะทำการจอง",
62
+ "limitOnlineCancellation": "จำกัดการยกเลิกออนไลน์",
63
+ "limitOnlineCancellationSublabel": "ลูกค้าที่สั่งอาหารล่วงหน้าจะยกเลิกออนไลน์ได้จนถึงก่อนเวลาจองตามที่กำหนดเท่านั้น หลังจากนั้นต้องโทรติดต่อสาขา พนักงานยังคงยกเลิกผ่าน POS ได้",
64
+ "freeCancellationUntil": "ยกเลิกได้ฟรีจนถึง",
65
+ "beforeTheBooking": "ก่อนเวลาจอง",
66
+ "guestPreferences": "ความต้องการของลูกค้า",
67
+ "guestPreferencesDescription": "ให้ลูกค้าเลือกความต้องการระหว่างการจอง เช่น ที่นั่งที่ต้องการ อาการแพ้อาหาร หรือหมายเหตุอื่นๆ",
68
+ "enablePreferences": "เปิดใช้ตัวเลือกความต้องการ",
69
+ "categoryTitle": "ชื่อหมวดหมู่",
70
+ "enterAName": "กรอกชื่อ",
71
+ "categoryTitleHint": "ชื่อนี้จะแสดงให้ลูกค้าเห็นระหว่างการจอง",
72
+ "singleChoice": "เลือกได้ข้อเดียว",
73
+ "multipleChoice": "เลือกได้หลายข้อ",
74
+ "options": "ตัวเลือก",
75
+ "clickToEdit": "คลิกเพื่อแก้ไข",
76
+ "otherOption": "อื่นๆ:",
77
+ "addOption": "เพิ่มตัวเลือก",
78
+ "or": "หรือ",
79
+ "addOther": "เพิ่ม \"อื่นๆ\"",
80
+ "addPreferenceCategory": "เพิ่มหมวดหมู่ความต้องการ",
81
+ "guestMessage": "ข้อความถึงลูกค้า",
82
+ "guestMessageDescription": "เพิ่มข้อมูลสำคัญหรือหมายเหตุที่ลูกค้าควรทราบก่อนมาที่ร้าน",
83
+ "enableGuestMessage": "เปิดใช้ข้อความถึงลูกค้า",
84
+ "guestMessageDefault": "โปรดอ่านรายละเอียดสำคัญต่อไปนี้ก่อนทำการจอง:\n\n1. ระยะเวลาการรับประทานอาหาร\n- ทางร้านจำกัดเวลาการรับประทานอาหารไว้ที่ 1 ชั่วโมง 30 นาที\n\n2. นโยบายการรอโต๊ะ 15 นาที\n- ทางร้านสามารถรอการจองของท่านได้สูงสุด 15 นาที หากไม่สามารถติดต่อท่านได้หลังจากเวลานี้ โต๊ะของท่านอาจถูกปล่อยให้ลูกค้าท่านอื่นโดยไม่แจ้งล่วงหน้า หากท่านคาดว่าจะมาสายหรือต้องการยกเลิก กรุณาโทรแจ้งทางร้าน เพื่อให้เราสามารถรอโต๊ะของท่านหรือจัดให้ลูกค้าท่านอื่นได้",
85
+ "message": "ข้อความ",
86
+ "guestMessagePlaceholder": "โปรดอ่านรายละเอียดสำคัญต่อไปนี้ก่อนทำการจอง:",
87
+ "charactersCount": "{count} / {max} ตัวอักษร",
88
+ "cancellationPolicy": "นโยบายการยกเลิก",
89
+ "cancellationPolicyDescription": "กำหนดกฎที่ลูกค้าต้องปฏิบัติเมื่อยกเลิกการจอง",
90
+ "enableCancellationPolicy": "เปิดใช้นโยบายการยกเลิก",
91
+ "cancellationPolicyDefault": "นโยบายการยกเลิก\n\nยกเลิกได้ฟรีก่อนเวลาจองอย่างน้อย 24 ชั่วโมง หากต้องการเปลี่ยนแปลงในช่วงเวลาใกล้จอง กรุณาติดต่อร้านโดยตรง",
92
+ "fixTimeRangeErrors": "กรุณาแก้ไขช่วงเวลาที่ไม่ถูกต้องทั้งหมดก่อนบันทึก",
93
+ "timeRangeSameStartEnd": "เวลาเริ่มต้นและเวลาสิ้นสุดต้องไม่เหมือนกัน",
94
+ "timeRangeOverlap": "ช่วงเวลาต้องไม่ทับซ้อนกัน",
95
+ "maxLeadMustExceedMin": "ระยะเวลาจองล่วงหน้าสูงสุดต้องมากกว่าระยะเวลาจองล่วงหน้าขั้นต่ำ",
96
+ "leadTimeMustBePositive": "ระยะเวลาจองล่วงหน้าต้องเป็นค่าบวก",
97
+ "minGuestsAtLeastOne": "จำนวนลูกค้าขั้นต่ำต้องมีอย่างน้อย 1 ท่าน",
98
+ "maxGuestsAtLeastMin": "จำนวนลูกค้าสูงสุดต้องมากกว่าหรือเท่ากับจำนวนลูกค้าขั้นต่ำ",
99
+ "copyFromAnotherRestaurant": "คัดลอกการตั้งค่าจากร้านอื่น",
100
+ "copySettingsFrom": "คัดลอกการตั้งค่าจาก",
101
+ "select": "เลือก",
102
+ "configuration": "การตั้งค่า",
103
+ "all": "ทั้งหมด",
104
+ "copyOverwriteWarning": "การดำเนินการนี้จะเขียนทับการตั้งค่าการจองทั้งหมดของ {name}",
105
+ "apply": "นำไปใช้",
106
+ "cancel": "ยกเลิก",
107
+ "selectRestaurant": "กรุณาเลือกร้าน",
108
+ "selectAtLeastOneOption": "กรุณาเลือกการตั้งค่าอย่างน้อยหนึ่งรายการ",
109
+ "noSettingsFound": "ไม่พบการตั้งค่าของร้านที่เลือก",
110
+ "selectedOutlet": "สาขาที่เลือก",
111
+ "settingsApplied": "นำการตั้งค่าจาก \"{name}\" มาใช้แล้ว กรุณาตรวจสอบและบันทึกการเปลี่ยนแปลง",
112
+ "copyFailed": "คัดลอกการตั้งค่าไม่สำเร็จ กรุณาลองอีกครั้ง"
113
+ },
3
114
  "foodCourt": {
4
115
  "orders": {
5
116
  "title": "คำสั่งซื้อ",
@@ -698,7 +809,7 @@
698
809
  "refresh": "รีเฟรช",
699
810
  "refreshCheckedAt": "รีเฟรช (ตรวจสอบเมื่อ {time})",
700
811
  "loadFailed": "อ่านค่าจาก POS ไม่ได้ รีเฟรชเพื่อลองอีกครั้ง",
701
- "offlineHint": "ลูกค้าจะเห็น \"POS is offline\" ตรวจสอบว่า Main POS เปิดอยู่และออนไลน์",
812
+ "offlineHint": "ลูกค้าจะเห็น \"POS ออฟไลน์\" ตรวจสอบว่า Main POS เปิดอยู่และออนไลน์",
702
813
  "futureHeartbeatHint": "นาฬิกาของ POS เร็วเกินไป POS จึงแสดงว่าออนไลน์แม้จะปิดอยู่ ให้สาขาแก้วันที่และเวลาบน Main POS",
703
814
  "accept": {
704
815
  "dineIn": {
@@ -720,7 +831,7 @@
720
831
  "acceptOffHint": {
721
832
  "dineIn": "ลูกค้าจะเห็น \"QR order is disabled by the restaurant\" เปิดรับออเดอร์ทานที่ร้านในการตั้งค่า POS",
722
833
  "pickup": "ลูกค้าจะเห็น \"Pickup order is disabled by the restaurant\" เปิดรับออเดอร์รับเองในการตั้งค่า POS",
723
- "delivery": "ลูกค้าจะเห็น \"Delivery order is disabled by the restaurant\" เปิดรับออเดอร์เดลิเวอรีในการตั้งค่า POS"
834
+ "delivery": "ลูกค้าจะเห็น \"ร้านปิดรับออเดอร์เดลิเวอรี\" เปิดรับออเดอร์เดลิเวอรีในการตั้งค่า POS"
724
835
  }
725
836
  },
726
837
  "operatingHour": "เวลาทำการ",
@@ -835,9 +946,9 @@
835
946
  "notifyOnConfirmDescription": "ส่งการแจ้งเตือนเมื่อการจองได้รับการยืนยัน",
836
947
  "notifyOnCancel": "แจ้งเตือนเมื่อยกเลิก",
837
948
  "notifyOnCancelDescription": "ส่งการแจ้งเตือนเมื่อการจองถูกยกเลิก",
838
- "draftHoldTimeMinutes": "เวลาเก็บร่าง (นาที)",
839
- "posCanOverbook": "POS สามารถจองเกินได้",
840
- "posCanOverbookDescription": "อนุญาตให้ POS สร้างการจองแม้ว่าความจุเต็มแล้ว",
949
+ "draftHoldTimeMinutes": "ระยะเวลาสำรองการจอง (นาที)",
950
+ "posCanOverbook": "POS สามารถจองเกินจำนวนที่รองรับได้",
951
+ "posCanOverbookDescription": "อนุญาตให้พนักงานเพิ่มการจองผ่าน POS ได้ แม้ว่าจำนวนการจองจะเต็มแล้ว",
841
952
  "saveAllChanges": "บันทึกการเปลี่ยนแปลงทั้งหมด",
842
953
  "settingUpdated": "อัปเดตการตั้งค่าสำเร็จ",
843
954
  "validationError": "ข้อผิดพลาดในการตรวจสอบ",
@@ -1,49 +1,49 @@
1
1
  <template>
2
2
  <FmSideSheet :max-width="560" v-model="showSheet">
3
3
  <template #side-sheet-button>
4
- <FmButton label="Copy settings from another restaurant" icon="edit" variant="plain"
4
+ <FmButton :label="t('order.reservationSetting.copyFromAnotherRestaurant')" icon="edit" variant="plain"
5
5
  class="border-1 rounded-lg border-fm-color-primary" />
6
6
  </template>
7
7
 
8
- <template #side-sheet-header> Copy settings from </template>
8
+ <template #side-sheet-header> {{ t('order.reservationSetting.copySettingsFrom') }} </template>
9
9
 
10
10
  <template #default>
11
11
  <div class="flex flex-col gap-24">
12
12
  <!-- Restaurant Selector -->
13
13
  <div>
14
14
  <FmSelect :items="availableRestaurants" :model-value="selectedRestaurantId"
15
- @update:model-value="(v: string) => (selectedRestaurantId = v)" placeholder="Select" :width="512" />
15
+ @update:model-value="(v: string) => (selectedRestaurantId = v)" :placeholder="t('order.reservationSetting.select')" :width="512" />
16
16
  </div>
17
17
 
18
18
  <!-- Configuration Section -->
19
19
  <div>
20
- <div class="fm-typo-en-title-sm-600 mb-16">Configuration</div>
20
+ <div class="fm-typo-en-title-sm-600 mb-16">{{ t('order.reservationSetting.configuration') }}</div>
21
21
 
22
22
  <div class="flex flex-col gap-12 pl-8">
23
23
  <!-- All Checkbox -->
24
- <FmCheckbox label="All" :model-value="isAllSelected" value="all" @update:model-value="toggleAll" />
24
+ <FmCheckbox :label="t('order.reservationSetting.all')" :model-value="isAllSelected" value="all" @update:model-value="toggleAll" />
25
25
 
26
26
  <!-- Individual Configuration Checkboxes -->
27
- <FmCheckbox label="Reservation Availability" :model-value="configOptions.reservationAvailability"
27
+ <FmCheckbox :label="t('order.reservationAvailability')" :model-value="configOptions.reservationAvailability"
28
28
  value="reservationAvailability"
29
29
  @update:model-value="(v: boolean) => updateConfigOption('reservationAvailability', v)" />
30
30
 
31
- <FmCheckbox label="Time Settings" :model-value="configOptions.timeSettings" value="timeSettings"
31
+ <FmCheckbox :label="t('order.reservationSetting.timeSettings')" :model-value="configOptions.timeSettings" value="timeSettings"
32
32
  @update:model-value="(v: boolean) => updateConfigOption('timeSettings', v)" />
33
33
 
34
- <FmCheckbox label="Table Capacity Settings" :model-value="configOptions.tableCapacity" value="tableCapacity"
34
+ <FmCheckbox :label="t('order.reservationSetting.tableCapacitySettings')" :model-value="configOptions.tableCapacity" value="tableCapacity"
35
35
  @update:model-value="(v: boolean) => updateConfigOption('tableCapacity', v)" />
36
36
 
37
- <FmCheckbox label="Pre-order" :model-value="configOptions.preorder" value="preorder"
37
+ <FmCheckbox :label="t('order.reservationSetting.preorder')" :model-value="configOptions.preorder" value="preorder"
38
38
  @update:model-value="(v: boolean) => updateConfigOption('preorder', v)" />
39
39
 
40
- <FmCheckbox label="Guest Preferences" :model-value="configOptions.guestPreferences" value="guestPreferences"
40
+ <FmCheckbox :label="t('order.reservationSetting.guestPreferences')" :model-value="configOptions.guestPreferences" value="guestPreferences"
41
41
  @update:model-value="(v: boolean) => updateConfigOption('guestPreferences', v)" />
42
42
 
43
- <FmCheckbox label="Guest Message" :model-value="configOptions.guestMessage" value="guestMessage"
43
+ <FmCheckbox :label="t('order.reservationSetting.guestMessage')" :model-value="configOptions.guestMessage" value="guestMessage"
44
44
  @update:model-value="(v: boolean) => updateConfigOption('guestMessage', v)" />
45
45
 
46
- <FmCheckbox label="Cancellation Policy" :model-value="configOptions.cancellationPolicy"
46
+ <FmCheckbox :label="t('order.reservationSetting.cancellationPolicy')" :model-value="configOptions.cancellationPolicy"
47
47
  value="cancellationPolicy"
48
48
  @update:model-value="(v: boolean) => updateConfigOption('cancellationPolicy', v)" />
49
49
  </div>
@@ -54,10 +54,10 @@
54
54
  <template #side-sheet-footer>
55
55
  <div class="flex flex-col gap-16 w-full">
56
56
  <FmSnackbar variant="warning" class="!shadow-none"
57
- :description="`This will overwrite all reservation settings for ${targetRestaurantName}`" />
57
+ :description="t('order.reservationSetting.copyOverwriteWarning', { name: targetRestaurantName })" />
58
58
  <div class="flex items-center justify-start gap-8">
59
- <FmButton label="Apply" @click="handleApply" :disabled="!canApply" :loading="isLoading" />
60
- <FmButton label="Cancel" variant="tertiary" @click="handleCancel" />
59
+ <FmButton :label="t('order.reservationSetting.apply')" @click="handleApply" :disabled="!canApply" :loading="isLoading" />
60
+ <FmButton :label="t('order.reservationSetting.cancel')" variant="tertiary" @click="handleCancel" />
61
61
  </div>
62
62
  </div>
63
63
  </template>
@@ -145,12 +145,12 @@ function updateConfigOption(key: keyof typeof configOptions.value, value: boolea
145
145
 
146
146
  async function handleApply() {
147
147
  if (!selectedRestaurantId.value) {
148
- showError('Please select a restaurant')
148
+ showError(t('order.reservationSetting.selectRestaurant'))
149
149
  return
150
150
  }
151
151
 
152
152
  if (!Object.values(configOptions.value).some((v) => v)) {
153
- showError('Please select at least one configuration option')
153
+ showError(t('order.reservationSetting.selectAtLeastOneOption'))
154
154
  return
155
155
  }
156
156
 
@@ -161,7 +161,7 @@ async function handleApply() {
161
161
  const sourceSettings = await ReservationApi.getReservationSetting(selectedRestaurantId.value)
162
162
 
163
163
  if (!sourceSettings || !sourceSettings.ranges || sourceSettings.ranges.length === 0) {
164
- showError('No settings found for the selected restaurant')
164
+ showError(t('order.reservationSetting.noSettingsFound'))
165
165
  return
166
166
  }
167
167
 
@@ -223,8 +223,8 @@ async function handleApply() {
223
223
  emit('apply', updatedSettings)
224
224
 
225
225
  // Show success with source outlet name
226
- const sourceName = availableRestaurants.value.find(r => r.value === selectedRestaurantId.value)?.label ?? 'selected outlet'
227
- showSuccess(`Settings from "${sourceName}" have been applied. Please review and save changes.`)
226
+ const sourceName = availableRestaurants.value.find(r => r.value === selectedRestaurantId.value)?.label ?? t('order.reservationSetting.selectedOutlet')
227
+ showSuccess(t('order.reservationSetting.settingsApplied', { name: sourceName }))
228
228
 
229
229
  // Close the side sheet
230
230
  showSheet.value = false
@@ -233,7 +233,7 @@ async function handleApply() {
233
233
  resetForm()
234
234
  } catch (error) {
235
235
  console.error('Error copying settings:', error)
236
- showError('Failed to copy settings. Please try again.')
236
+ showError(t('order.reservationSetting.copyFailed'))
237
237
  } finally {
238
238
  isLoading.value = false
239
239
  }