@feedmepos/mf-order-setting 0.0.44 → 0.0.46
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/{KioskDevicesView-KBpXQJmy.js → KioskDevicesView-Dd3xcM5X.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-taf41a-7.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-D-epeOIx.js} +101 -96
- package/dist/{KioskSettingView-DG12ZvfT.js → KioskSettingView-D50Gh7NR.js} +1 -1
- package/dist/KioskView-BGiHHSjd.js +448 -0
- package/dist/{OrderSettingsView-CEh1QUZm.js → OrderSettingsView-DNuKMNFe.js} +33723 -34786
- package/dist/{app-CKeIud_f.js → app-DGT9bC4M.js} +115 -43
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-D9bsUd57.js → dayjs.min-D-vfvSns.js} +1 -1
- package/dist/frontend/mf-order/src/api/remoteOrder/index.d.ts +2 -2
- package/dist/frontend/mf-order/src/api/restaurant-setting/index.d.ts +2 -1
- package/dist/frontend/mf-order/src/app.d.ts +72 -0
- package/dist/frontend/mf-order/src/main.d.ts +72 -0
- package/dist/frontend/mf-order/src/modules/kiosk/interface.d.ts +1 -0
- package/dist/frontend/mf-order/src/stores/kiosk/index.d.ts +3 -0
- package/dist/frontend/mf-order/src/stores/menu/menu.d.ts +111 -1
- package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +291 -288
- package/dist/frontend/mf-order/src/stores/restaurant/index.d.ts +20 -173
- package/dist/frontend/mf-order/src/views/all-orders/ReflowOrder.vue.d.ts +12 -114
- package/dist/frontend/mf-order/src/views/order-settings/delivery/delivery.data.d.ts +2 -2
- package/dist/frontend/mf-order/src/views/order-settings/delivery/inhouse/InHouseDelivery.vue.d.ts +2 -2
- package/dist/frontend/mf-order/src/views/order-settings/pickup/PickUpSettingDialogContent.vue.d.ts +4 -4
- package/dist/frontend/mf-order/src/views/order-settings/queue/PresetRemarksSheet.vue.d.ts +19 -0
- package/dist/frontend/mf-order/src/views/order-settings/queue/QueueSetting.vue.d.ts +2 -0
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-D_Tmm1qL.js → index-DAruvcri.js} +2 -2
- package/dist/{menu.dto-BY9dVf93.js → menu.dto-B82ITnH5.js} +54755 -57698
- package/dist/package/entity/booking/booking.do.d.ts +168 -2368
- package/dist/package/entity/delivery/delivery.dto.d.ts +33 -473
- package/dist/package/entity/food-court/food-court.dto.d.ts +44 -44
- package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +23 -0
- package/dist/package/entity/incoming-order/incoming-order.do.d.ts +450 -60
- package/dist/package/entity/incoming-order/incoming-order.dto.d.ts +680 -628
- package/dist/package/entity/incoming-order/incoming-order.enum.d.ts +2 -2
- package/dist/package/entity/index.d.ts +2 -0
- package/dist/package/entity/kiosk/kiosk.do.d.ts +16 -0
- package/dist/package/entity/kiosk/kiosk.dto.d.ts +19 -0
- package/dist/package/entity/kiosk/marketing/marketing.dto.d.ts +201 -2031
- package/dist/package/entity/order/order-item/order-item.dto.d.ts +129 -16
- package/dist/package/entity/order/order.do.d.ts +8 -0
- package/dist/package/entity/order/order.dto.d.ts +390 -974
- package/dist/package/entity/order/order.enum.d.ts +2 -0
- package/dist/package/entity/order-platform/external/menu/external-master-menu.do.d.ts +367 -18
- package/dist/package/entity/order-platform/external/menu/external-menu.do.d.ts +48 -8
- package/dist/package/entity/order-platform/external/order/external-order.do.d.ts +1 -0
- package/dist/package/entity/order-platform/foodpanda/foodpanda-order.dto.d.ts +33 -473
- package/dist/package/entity/order-platform/grabfood/grabfood-omni.do.d.ts +672 -0
- package/dist/package/entity/order-platform/grabfood/grabfood-omni.dto.d.ts +9 -0
- package/dist/package/entity/order-platform/grabfood/grabfood-order.do.d.ts +90 -508
- package/dist/package/entity/order-platform/grabfood/grabfood-settings.do.d.ts +3 -0
- package/dist/package/entity/order-platform/grabfood/grabfood-webhook.dto.d.ts +1130 -0
- package/dist/package/entity/order-platform/grabfood/grabfood.dto.d.ts +34 -47
- package/dist/package/entity/order-platform/grabfood/grabfood.enum.d.ts +8 -2
- package/dist/package/entity/order-platform/menu.dto.d.ts +46 -12
- package/dist/package/entity/order-platform/order-platform.dto.d.ts +8 -5
- package/dist/package/entity/order-platform/shopeefood/shopeefood-order.do.d.ts +33 -473
- package/dist/package/entity/order-platform/shopeefood/shopeefood-settings.do.d.ts +3 -0
- package/dist/package/entity/order-platform/shopeefood/shopeefood-settings.dto.d.ts +3 -0
- package/dist/package/entity/order-setting/customization/color.do.d.ts +3 -0
- package/dist/package/entity/order-setting/kiosk/kiosk.dto.d.ts +18 -18
- package/dist/package/entity/order-setting/order-setting.do.d.ts +77 -88
- package/dist/package/entity/order-setting/order-setting.dto.d.ts +724 -1036
- package/dist/package/entity/order-setting/queue/queue.do.d.ts +22 -0
- package/dist/package/entity/order-setting/queue/queue.dto.d.ts +12 -0
- package/dist/package/entity/order-setting/reservation/reservation.do.d.ts +4 -51
- package/dist/package/entity/order-setting/reservation/reservation.dto.d.ts +248 -585
- package/dist/package/entity/pubsub/ably/ably.enum.d.ts +10 -1
- package/dist/package/entity/queue/queue.dto.d.ts +76 -14
- package/dist/package/entity/restaurant/restaurant.dto.d.ts +41 -26
- package/dist/package/entity/websocket/websocket.dto.d.ts +22 -22
- package/package.json +3 -3
- package/src/api/remoteOrder/index.ts +13 -2
- package/src/api/restaurant-setting/index.ts +6 -0
- package/src/locales/en-US.json +24 -0
- package/src/locales/th-TH.json +24 -0
- package/src/locales/zh-CN.json +24 -0
- package/src/modules/kiosk/interface.ts +1 -0
- package/src/stores/kiosk/mapper.ts +1 -0
- package/src/stores/order-setting/mapper.ts +20 -33
- package/src/stores/restaurant/index.ts +7 -3
- package/src/views/all-orders/FilterStatus.vue +1 -1
- package/src/views/kiosk/devices/KioskDeviceCard.vue +6 -0
- package/src/views/order-settings/OrderSettingsView.vue +13 -5
- package/src/views/order-settings/delivery/delivery.data.ts +7 -4
- package/src/views/order-settings/delivery/integrated-delivery/FoodpandaSetting.vue +2 -2
- package/src/views/order-settings/dine-in/DineInSetting.vue +18 -2
- package/src/views/order-settings/general/GeneralSetting.vue +2 -2
- package/src/views/order-settings/queue/PresetRemarksSheet.vue +103 -0
- package/src/views/order-settings/queue/QueueSetting.vue +358 -0
- package/dist/KioskView-KNiT-upH.js +0 -453
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ref as v, defineComponent as S, onMounted as f, resolveComponent as b, createElementBlock as
|
|
1
|
+
import { ref as v, defineComponent as S, onMounted as f, resolveComponent as b, createElementBlock as P, openBlock as h, createVNode as k } from "vue";
|
|
2
2
|
import "vue-router";
|
|
3
|
-
const
|
|
3
|
+
const D = {
|
|
4
4
|
accept: "accept",
|
|
5
5
|
acceptedPayment: "Accepted Payment",
|
|
6
6
|
acceptQueue: "Accept queue",
|
|
@@ -40,6 +40,14 @@ const k = {
|
|
|
40
40
|
autoIntegrationCountryNotSupport: "Platform not support auto integration in current country.",
|
|
41
41
|
autoSendKitchen: "Auto Send Kitchen",
|
|
42
42
|
autoSendKitchenSublabel: "Required POS version 7 or above",
|
|
43
|
+
presetRemarks: "Preset Remarks",
|
|
44
|
+
editPresetRemarks: "Edit Preset Remarks",
|
|
45
|
+
addNewRemark: "Add New Remark",
|
|
46
|
+
enterRemark: "Enter remark",
|
|
47
|
+
existingRemarks: "Existing Remarks",
|
|
48
|
+
noPresetRemarks: "No preset remarks configured",
|
|
49
|
+
noPresetRemarksAdded: "No remarks added yet",
|
|
50
|
+
presetRemarksSaved: "Preset remarks saved successfully",
|
|
43
51
|
balance: "Balance",
|
|
44
52
|
bankCard: "Card",
|
|
45
53
|
beforeBillDiscount: "Before bill discount",
|
|
@@ -73,6 +81,8 @@ const k = {
|
|
|
73
81
|
daysTo: "days to",
|
|
74
82
|
deactivated: "Deactivated",
|
|
75
83
|
default: "Default",
|
|
84
|
+
enabled: "Enabled",
|
|
85
|
+
disabled: "Disabled",
|
|
76
86
|
delete: "delete",
|
|
77
87
|
delivery: "Delivery",
|
|
78
88
|
deliveryCompany: "Delivery Company",
|
|
@@ -116,6 +126,7 @@ const k = {
|
|
|
116
126
|
feedmeExpressPosVersionIssue: "Min POS version {minVersion} required for FeedMe Express",
|
|
117
127
|
feedmeExpressTitle: "Update FeedMe express",
|
|
118
128
|
fieldCannotBeEmpty: "Field cannot be empty",
|
|
129
|
+
followDineIn: "Follow Dine In",
|
|
119
130
|
fixedTime: "Fixed time",
|
|
120
131
|
friday: "Friday",
|
|
121
132
|
general: "General",
|
|
@@ -199,6 +210,19 @@ const k = {
|
|
|
199
210
|
processing: "PROCESSING",
|
|
200
211
|
productSelected: "product(s) selected",
|
|
201
212
|
promptAnonymousLoginDialog: "Prompt Login Dialog For Anonymous Order",
|
|
213
|
+
queue: "Queue",
|
|
214
|
+
queueSettings: "Queue Settings",
|
|
215
|
+
enableQueueOrder: "Enable Queue Order",
|
|
216
|
+
autoCalledLimit: "Auto Called Limit",
|
|
217
|
+
duration: "Duration",
|
|
218
|
+
disableRemoteQueue: "Disable Remote Queue",
|
|
219
|
+
disableSMS: "Disable SMS",
|
|
220
|
+
printChecklist: "Print Checklist",
|
|
221
|
+
codeSettings: "Queue Code Settings",
|
|
222
|
+
addCodeSetting: "Add Queue Code Setting",
|
|
223
|
+
current: "Current",
|
|
224
|
+
paxMin: "Pax Min",
|
|
225
|
+
paxMax: "Pax Max",
|
|
202
226
|
qrPay: "QR Pay",
|
|
203
227
|
terminalScanPay: "Terminal Scan Pay",
|
|
204
228
|
terminalQrPay: "Terminal QR Pay",
|
|
@@ -309,7 +333,7 @@ const k = {
|
|
|
309
333
|
voucher: "Voucher"
|
|
310
334
|
}
|
|
311
335
|
}, C = {
|
|
312
|
-
order:
|
|
336
|
+
order: D
|
|
313
337
|
}, A = {
|
|
314
338
|
accept: "接受",
|
|
315
339
|
acceptedPayment: "可接受付款方式",
|
|
@@ -350,6 +374,14 @@ const k = {
|
|
|
350
374
|
autoIntegrationCountryNotSupport: "平台不支持当前国家/地区的自动配送对接。",
|
|
351
375
|
autoSendKitchen: "自动发送至厨房",
|
|
352
376
|
autoSendKitchenSublabel: "需要POS版本7或以上",
|
|
377
|
+
presetRemarks: "预设备注",
|
|
378
|
+
editPresetRemarks: "编辑预设备注",
|
|
379
|
+
addNewRemark: "添加新备注",
|
|
380
|
+
enterRemark: "输入备注",
|
|
381
|
+
existingRemarks: "现有备注",
|
|
382
|
+
noPresetRemarks: "未配置预设备注",
|
|
383
|
+
noPresetRemarksAdded: "尚未添加备注",
|
|
384
|
+
presetRemarksSaved: "预设备注保存成功",
|
|
353
385
|
balance: "余额",
|
|
354
386
|
bankCard: "银行卡",
|
|
355
387
|
beforeBillDiscount: "账单折扣前",
|
|
@@ -385,6 +417,8 @@ const k = {
|
|
|
385
417
|
deactivated: "已停用",
|
|
386
418
|
default: "默认",
|
|
387
419
|
delete: "删除",
|
|
420
|
+
disabled: "禁用",
|
|
421
|
+
enabled: "启用",
|
|
388
422
|
delivery: "配送",
|
|
389
423
|
deliveryCompany: "配送公司",
|
|
390
424
|
deliveryDescription: "我们将以下配送服务与您的POS系统进行结合,让您能够更加快速且安全地将餐点送到客户手中。",
|
|
@@ -428,6 +462,7 @@ const k = {
|
|
|
428
462
|
feedmeExpressPosVersionIssue: "需要最低{minVersion}版本的POS系统才能使用FeedMe外卖快递",
|
|
429
463
|
feedmeExpressTitle: "更新 Feedme 外卖快递",
|
|
430
464
|
fieldCannotBeEmpty: "字段不可为空",
|
|
465
|
+
followDineIn: "跟随堂食",
|
|
431
466
|
fixedTime: "固定时间",
|
|
432
467
|
friday: "星期五",
|
|
433
468
|
general: "通用",
|
|
@@ -503,6 +538,7 @@ const k = {
|
|
|
503
538
|
pleaseCompleteProfile: "请完善您的餐厅资料以启用FeedMe外卖快递",
|
|
504
539
|
pleaseSelectRestaurant: "请选择一个餐厅",
|
|
505
540
|
prefix: "前缀",
|
|
541
|
+
printChecklist: "打印清单",
|
|
506
542
|
preOrder: "预订",
|
|
507
543
|
preOrderHint: "于今日 {today} 下单,客户可以在 {start} 和 {end} 之间预订。最多 7 天。",
|
|
508
544
|
printReceiptAfterClose: "自动关闭账单后打印收据",
|
|
@@ -510,6 +546,18 @@ const k = {
|
|
|
510
546
|
processing: "处理中",
|
|
511
547
|
productSelected: "已选择商品",
|
|
512
548
|
promptAnonymousLoginDialog: "为匿名用户弹出登入对话框",
|
|
549
|
+
queue: "排队",
|
|
550
|
+
queueSettings: "排队设置",
|
|
551
|
+
enableQueueOrder: "启用排队订单",
|
|
552
|
+
autoCalledLimit: "自动呼叫限制",
|
|
553
|
+
duration: "持续时间",
|
|
554
|
+
disableRemoteQueue: "禁用远程排队",
|
|
555
|
+
disableSMS: "禁用短信",
|
|
556
|
+
codeSettings: "代码设置",
|
|
557
|
+
addCodeSetting: "添加代码设置",
|
|
558
|
+
current: "当前",
|
|
559
|
+
paxMin: "最少人数",
|
|
560
|
+
paxMax: "最多人数",
|
|
513
561
|
qrPay: "二维码支付",
|
|
514
562
|
terminalScanPay: "终端扫描支付",
|
|
515
563
|
terminalQrPay: "终端二维码支付",
|
|
@@ -621,9 +669,9 @@ const k = {
|
|
|
621
669
|
promotion: "促销",
|
|
622
670
|
voucher: "代金券"
|
|
623
671
|
}
|
|
624
|
-
},
|
|
672
|
+
}, x = {
|
|
625
673
|
order: A
|
|
626
|
-
},
|
|
674
|
+
}, R = {
|
|
627
675
|
accept: "ยอมรับ",
|
|
628
676
|
acceptedPayment: "ยอมรับการชำระเงิน",
|
|
629
677
|
acceptQueue: "ยอมรับคิว",
|
|
@@ -663,6 +711,14 @@ const k = {
|
|
|
663
711
|
autoIntegrationCountryNotSupport: "แพลตฟอร์มไม่รองรับการเชื่อมต่อการจัดส่งแบบไดนามิกในประเทศ/ภูมิภาคปัจจุบัน",
|
|
664
712
|
autoSendKitchen: "ส่งอัตโนมัติครัว",
|
|
665
713
|
autoSendKitchenSublabel: "ต้องใช้ POS เวอร์ชัน 7 ขึ้นไป",
|
|
714
|
+
presetRemarks: "หมายเหตุที่ตั้งไว้ล่วงหน้า",
|
|
715
|
+
editPresetRemarks: "แก้ไขหมายเหตุที่ตั้งไว้ล่วงหน้า",
|
|
716
|
+
addNewRemark: "เพิ่มหมายเหตุใหม่",
|
|
717
|
+
enterRemark: "ป้อนหมายเหตุ",
|
|
718
|
+
existingRemarks: "หมายเหตุที่มีอยู่",
|
|
719
|
+
noPresetRemarks: "ไม่มีหมายเหตุที่ตั้งไว้ล่วงหน้า",
|
|
720
|
+
noPresetRemarksAdded: "ยังไม่ได้เพิ่มหมายเหตุ",
|
|
721
|
+
presetRemarksSaved: "บันทึกหมายเหตุที่ตั้งไว้ล่วงหน้าสำเร็จ",
|
|
666
722
|
balance: "ยอดคงเหลือ",
|
|
667
723
|
bankCard: "บัตร",
|
|
668
724
|
beforeBillDiscount: "ก่อนหักส่วนลดบิล",
|
|
@@ -697,6 +753,8 @@ const k = {
|
|
|
697
753
|
deactivated: "ปิดใช้งาน",
|
|
698
754
|
default: "ค่าเริ่มต้น",
|
|
699
755
|
delete: "ลบ",
|
|
756
|
+
disabled: "ปิดใช้งาน",
|
|
757
|
+
enabled: "เปิดใช้งาน",
|
|
700
758
|
delivery: "การจัดส่ง",
|
|
701
759
|
deliveryCompany: "บริษัทจัดส่ง",
|
|
702
760
|
deliveryDescription: "เราบูรณาการการจัดส่งเหล่านี้กับระบบ POS ของคุณ คุณสามารถจัดส่งอาหารให้กับลูกค้าของคุณได้รวดเร็วและปลอดภัยยิ่งขึ้น",
|
|
@@ -737,6 +795,7 @@ const k = {
|
|
|
737
795
|
feedmeExpressPosVersionIssue: "จำเป็นต้องมีเวอร์ชัน POS ขั้นต่ำ {minVersion} สำหรับ FeedMe Express",
|
|
738
796
|
feedmeExpressTitle: "อัปเดต FeedMe express",
|
|
739
797
|
fieldCannotBeEmpty: "ไม่สามารถเว้นช่องได้",
|
|
798
|
+
followDineIn: "ทำตามการรับประทานอาหารที่ร้าน",
|
|
740
799
|
fixedTime: "เวลาที่กำหนด",
|
|
741
800
|
friday: "วันศุกร์",
|
|
742
801
|
general: "ข้อมูลทั่วไป",
|
|
@@ -812,6 +871,7 @@ const k = {
|
|
|
812
871
|
pleaseCompleteProfile: "โปรดกรอกโปรไฟล์ร้านอาหารของคุณเพื่อเปิดใช้งาน FeedMe Express",
|
|
813
872
|
pleaseSelectRestaurant: "โปรดเลือกร้านอาหาร",
|
|
814
873
|
prefix: "คำนำหน้า",
|
|
874
|
+
printChecklist: "พิมพ์รายการตรวจสอบ",
|
|
815
875
|
preOrder: "สั่งซื้อล่วงหน้า",
|
|
816
876
|
preOrderHint: "สั่งซื้อในวันที่ {today} ลูกค้าสามารถสั่งซื้อได้ระหว่าง {start} และ {end} สูงสุด 7 วัน",
|
|
817
877
|
pricePerMessage: "ราคาต่อข้อความ",
|
|
@@ -819,6 +879,18 @@ const k = {
|
|
|
819
879
|
processing: "กำลังประมวลผล",
|
|
820
880
|
productSelected: "ผลิตภัณฑ์ที่เลือก",
|
|
821
881
|
promptAnonymousLoginDialog: "กล่องโต้ตอบพร้อมท์เข้าสู่ระบบสำหรับคำสั่งซื้อแบบไม่เปิดเผยตัวตน",
|
|
882
|
+
queue: "คิว",
|
|
883
|
+
queueSettings: "การตั้งค่าคิว",
|
|
884
|
+
enableQueueOrder: "เปิดใช้งานคำสั่งซื้อคิว",
|
|
885
|
+
autoCalledLimit: "ขีดจำกัดการเรียกอัตโนมัติ",
|
|
886
|
+
duration: "ระยะเวลา",
|
|
887
|
+
disableRemoteQueue: "ปิดใช้งานคิวระยะไกล",
|
|
888
|
+
disableSMS: "ปิดใช้งาน SMS",
|
|
889
|
+
codeSettings: "การตั้งค่ารหัส",
|
|
890
|
+
addCodeSetting: "เพิ่มการตั้งค่ารหัส",
|
|
891
|
+
current: "ปัจจุบัน",
|
|
892
|
+
paxMin: "จำนวนผู้โดยสารขั้นต่ำ",
|
|
893
|
+
paxMax: "จำนวนผู้โดยสารสูงสุด",
|
|
822
894
|
qrPay: "ชำระเงินด้วย QR",
|
|
823
895
|
terminalScanPay: "ชำระเงินด้วยการสแกนเทอร์มินัล",
|
|
824
896
|
terminalQrPay: "ชำระเงินด้วย QR เทอร์มินัล",
|
|
@@ -926,11 +998,11 @@ const k = {
|
|
|
926
998
|
promotion: "โปรโมชั่น",
|
|
927
999
|
voucher: "บัตรกำนัล"
|
|
928
1000
|
}
|
|
929
|
-
},
|
|
930
|
-
order:
|
|
931
|
-
},
|
|
932
|
-
function
|
|
933
|
-
|
|
1001
|
+
}, I = {
|
|
1002
|
+
order: R
|
|
1003
|
+
}, p = v(null), g = () => p.value;
|
|
1004
|
+
function T(t) {
|
|
1005
|
+
p.value || (p.value = t);
|
|
934
1006
|
}
|
|
935
1007
|
const B = Object.freeze({
|
|
936
1008
|
jb: {
|
|
@@ -938,7 +1010,7 @@ const B = Object.freeze({
|
|
|
938
1010
|
lng: 103.7413591
|
|
939
1011
|
}
|
|
940
1012
|
});
|
|
941
|
-
function
|
|
1013
|
+
function Q(t) {
|
|
942
1014
|
return [t.lng, t.lat];
|
|
943
1015
|
}
|
|
944
1016
|
function y(t) {
|
|
@@ -948,21 +1020,21 @@ function y(t) {
|
|
|
948
1020
|
lng: t[0]
|
|
949
1021
|
};
|
|
950
1022
|
}
|
|
951
|
-
function
|
|
1023
|
+
function U({
|
|
952
1024
|
center: t,
|
|
953
1025
|
radius: i
|
|
954
1026
|
}) {
|
|
955
1027
|
const e = [], a = i / 6371 * (180 / Math.PI), r = a / Math.cos(t.lat * (Math.PI / 180));
|
|
956
1028
|
for (let o = 0; o < 361; o += 45) {
|
|
957
|
-
const
|
|
1029
|
+
const d = o * (Math.PI / 180), n = t.lng + r * Math.cos(d), m = t.lat + a * Math.sin(d), s = g(), l = new s.maps.LatLng(m, n, !0);
|
|
958
1030
|
e.push(l);
|
|
959
1031
|
}
|
|
960
1032
|
return e.map((o) => ({ lat: o.lat(), lng: o.lng() }));
|
|
961
1033
|
}
|
|
962
|
-
function
|
|
1034
|
+
function V(t) {
|
|
963
1035
|
if (!t.length) return;
|
|
964
|
-
const { lat: i, lng: e } = y(t[0]), { maxLng: a, minLng: r, maxLat: o, minLat:
|
|
965
|
-
const { lng: s, lat: l } = y(
|
|
1036
|
+
const { lat: i, lng: e } = y(t[0]), { maxLng: a, minLng: r, maxLat: o, minLat: d } = t.reduce((n, m) => {
|
|
1037
|
+
const { lng: s, lat: l } = y(m);
|
|
966
1038
|
return s > n.maxLng && (n.maxLng = s), s < n.minLng && (n.minLng = s), l > n.maxLat && (n.maxLat = l), l < n.minLat && (n.minLat = l), n;
|
|
967
1039
|
}, {
|
|
968
1040
|
maxLng: e,
|
|
@@ -972,16 +1044,16 @@ function W(t) {
|
|
|
972
1044
|
});
|
|
973
1045
|
return {
|
|
974
1046
|
lng: r + (a - r) / 2,
|
|
975
|
-
lat:
|
|
1047
|
+
lat: d + (o - d) / 2
|
|
976
1048
|
};
|
|
977
1049
|
}
|
|
978
|
-
class
|
|
1050
|
+
class c {
|
|
979
1051
|
constructor(i = null, e = {}) {
|
|
980
1052
|
if (this.apiKey = i, this.options = e, typeof window > "u")
|
|
981
1053
|
throw new Error("google-maps is supported only in browser environment");
|
|
982
1054
|
}
|
|
983
1055
|
load() {
|
|
984
|
-
return typeof this.api < "u" ? Promise.resolve(this.api) : typeof this.loader < "u" ? this.loader : (window[
|
|
1056
|
+
return typeof this.api < "u" ? Promise.resolve(this.api) : typeof this.loader < "u" ? this.loader : (window[c.CALLBACK_NAME] = () => {
|
|
985
1057
|
if (this.api = window.google, typeof this.resolve > "u")
|
|
986
1058
|
throw new Error("Should not happen");
|
|
987
1059
|
this.resolve(this.api);
|
|
@@ -997,7 +1069,7 @@ class d {
|
|
|
997
1069
|
}
|
|
998
1070
|
createUrl() {
|
|
999
1071
|
const i = [
|
|
1000
|
-
`callback=${
|
|
1072
|
+
`callback=${c.CALLBACK_NAME}`
|
|
1001
1073
|
];
|
|
1002
1074
|
this.apiKey && i.push(`key=${this.apiKey}`);
|
|
1003
1075
|
for (let e in this.options)
|
|
@@ -1008,66 +1080,66 @@ class d {
|
|
|
1008
1080
|
return `https://maps.googleapis.com/maps/api/js?${i.join("&")}`;
|
|
1009
1081
|
}
|
|
1010
1082
|
}
|
|
1011
|
-
|
|
1012
|
-
var
|
|
1013
|
-
const M = { class: "flex-1 overflow-auto" },
|
|
1083
|
+
c.CALLBACK_NAME = "_dk_google_maps_loader_cb";
|
|
1084
|
+
var O = { googleMap: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4" };
|
|
1085
|
+
const M = { class: "flex-1 overflow-auto" }, q = /* @__PURE__ */ S({
|
|
1014
1086
|
__name: "App",
|
|
1015
1087
|
setup(t) {
|
|
1016
1088
|
async function i() {
|
|
1017
1089
|
if (g()) return;
|
|
1018
|
-
const a = await new
|
|
1090
|
+
const a = await new c(O.googleMap, {
|
|
1019
1091
|
libraries: ["places"]
|
|
1020
1092
|
}).load();
|
|
1021
|
-
|
|
1093
|
+
T(a);
|
|
1022
1094
|
}
|
|
1023
1095
|
return f(async () => {
|
|
1024
1096
|
await i();
|
|
1025
1097
|
}), (e, a) => {
|
|
1026
1098
|
const r = b("RouterView");
|
|
1027
|
-
return
|
|
1028
|
-
|
|
1099
|
+
return h(), P("div", M, [
|
|
1100
|
+
k(r)
|
|
1029
1101
|
]);
|
|
1030
1102
|
};
|
|
1031
1103
|
}
|
|
1032
|
-
}),
|
|
1033
|
-
KioskRoute:
|
|
1104
|
+
}), w = "/kiosk", E = "/kiosk/device", N = "/kiosk/order-setting", F = "/order-settings", u = {
|
|
1105
|
+
KioskRoute: w,
|
|
1034
1106
|
KioskDeviceRoute: E,
|
|
1035
1107
|
KioskOrderSettingRoute: N,
|
|
1036
1108
|
OrderSettingView: F
|
|
1037
|
-
},
|
|
1109
|
+
}, W = [
|
|
1038
1110
|
{
|
|
1039
1111
|
path: u.KioskRoute,
|
|
1040
1112
|
name: "Kiosk",
|
|
1041
|
-
component: () => import("./KioskView-
|
|
1113
|
+
component: () => import("./KioskView-BGiHHSjd.js")
|
|
1042
1114
|
},
|
|
1043
1115
|
{
|
|
1044
1116
|
path: u.KioskDeviceRoute,
|
|
1045
1117
|
name: "Kiosk Device",
|
|
1046
|
-
component: () => import("./KioskDevicesView-
|
|
1118
|
+
component: () => import("./KioskDevicesView-Dd3xcM5X.js")
|
|
1047
1119
|
},
|
|
1048
1120
|
{
|
|
1049
1121
|
path: u.KioskOrderSettingRoute,
|
|
1050
1122
|
name: "Kiosk Order Setting",
|
|
1051
|
-
component: () => import("./KioskSettingView-
|
|
1123
|
+
component: () => import("./KioskSettingView-D50Gh7NR.js")
|
|
1052
1124
|
},
|
|
1053
1125
|
{
|
|
1054
1126
|
path: u.OrderSettingView,
|
|
1055
1127
|
name: "Order Setting View",
|
|
1056
|
-
component: () => import("./OrderSettingsView-
|
|
1128
|
+
component: () => import("./OrderSettingsView-DNuKMNFe.js")
|
|
1057
1129
|
}
|
|
1058
|
-
],
|
|
1130
|
+
], _ = {
|
|
1059
1131
|
"en-US": C,
|
|
1060
|
-
"zh-CN":
|
|
1061
|
-
"th-TH":
|
|
1132
|
+
"zh-CN": x,
|
|
1133
|
+
"th-TH": I
|
|
1062
1134
|
};
|
|
1063
1135
|
export {
|
|
1064
|
-
|
|
1136
|
+
q as _,
|
|
1065
1137
|
y as a,
|
|
1066
|
-
|
|
1138
|
+
U as b,
|
|
1067
1139
|
B as c,
|
|
1068
|
-
|
|
1069
|
-
|
|
1140
|
+
Q as d,
|
|
1141
|
+
V as e,
|
|
1070
1142
|
g,
|
|
1071
|
-
|
|
1072
|
-
|
|
1143
|
+
_ as i,
|
|
1144
|
+
W as r
|
|
1073
1145
|
};
|
package/dist/app.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DeliveryCompany, LinkedDeliveryDoc } from '../../views/order-settings/delivery/delivery';
|
|
2
|
-
import {
|
|
3
|
-
import type { FdoDeliverooSettings, FdoExternalSetting, FdoFoodpandaOrderOutput, FdoGrabfoodOrderOutput, FdoGrabfoodSettings, FdoShopeeFoodOrderOutput, FdoShopeeFoodSettings, FdtoGetOrderReq } from '@entity';
|
|
2
|
+
import { FdoLinkedDelivery, FdoRestaurant, FdoRestaurantFeedmeDelivery, FdoRestaurantInHouseDelivery } from '@feedmepos/core/entity';
|
|
3
|
+
import type { FdoDeliverooSettings, FdoExternalSetting, FdoFoodpandaOrderOutput, FdoFoodpandaSettings, FdoGrabfoodOrderOutput, FdoGrabfoodSettings, FdoShopeeFoodOrder, FdoShopeeFoodOrderOutput, FdoShopeeFoodSettings, FdtoGetOrderReq } from '@entity';
|
|
4
4
|
type DeliveryCompanyUrl = 'foodpanda' | 'grabfood' | 'shopeefood' | 'deliveroo' | 'external';
|
|
5
5
|
export declare const remoteOrderApi: {
|
|
6
6
|
readLinkedDeliveryCompanies(): Promise<LinkedDeliveryDoc[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { OrderSettingsDto } from '@entity';
|
|
2
|
-
import { FdoRestaurantDineIn, FdoRestaurantPickup, FdoRestaurantSetting, FdoServiceChargeSetting } from '@feedmepos/core/entity';
|
|
2
|
+
import { FdoQueueQrSetting, FdoRestaurantDineIn, FdoRestaurantPickup, FdoRestaurantSetting, FdoServiceChargeSetting } from '@feedmepos/core/entity';
|
|
3
3
|
interface EntityDocument {
|
|
4
4
|
_rev: string;
|
|
5
5
|
_id: string;
|
|
@@ -12,5 +12,6 @@ export declare const restaurantApi: {
|
|
|
12
12
|
updatePickupSetting(setting: FdoRestaurantPickup): Promise<any>;
|
|
13
13
|
updateServiceCharge(setting: FdoServiceChargeSetting): Promise<any>;
|
|
14
14
|
getMobileOrderSetting(): Promise<OrderSettingsDto>;
|
|
15
|
+
updateQueueSetting(restaurantId: string, setting: Partial<FdoQueueQrSetting>): Promise<RestaurantSettingDoc>;
|
|
15
16
|
};
|
|
16
17
|
export {};
|
|
@@ -42,6 +42,14 @@ export declare const i18nMessages: {
|
|
|
42
42
|
autoIntegrationCountryNotSupport: string;
|
|
43
43
|
autoSendKitchen: string;
|
|
44
44
|
autoSendKitchenSublabel: string;
|
|
45
|
+
presetRemarks: string;
|
|
46
|
+
editPresetRemarks: string;
|
|
47
|
+
addNewRemark: string;
|
|
48
|
+
enterRemark: string;
|
|
49
|
+
existingRemarks: string;
|
|
50
|
+
noPresetRemarks: string;
|
|
51
|
+
noPresetRemarksAdded: string;
|
|
52
|
+
presetRemarksSaved: string;
|
|
45
53
|
balance: string;
|
|
46
54
|
bankCard: string;
|
|
47
55
|
beforeBillDiscount: string;
|
|
@@ -75,6 +83,8 @@ export declare const i18nMessages: {
|
|
|
75
83
|
daysTo: string;
|
|
76
84
|
deactivated: string;
|
|
77
85
|
default: string;
|
|
86
|
+
enabled: string;
|
|
87
|
+
disabled: string;
|
|
78
88
|
delete: string;
|
|
79
89
|
delivery: string;
|
|
80
90
|
deliveryCompany: string;
|
|
@@ -118,6 +128,7 @@ export declare const i18nMessages: {
|
|
|
118
128
|
feedmeExpressPosVersionIssue: string;
|
|
119
129
|
feedmeExpressTitle: string;
|
|
120
130
|
fieldCannotBeEmpty: string;
|
|
131
|
+
followDineIn: string;
|
|
121
132
|
fixedTime: string;
|
|
122
133
|
friday: string;
|
|
123
134
|
general: string;
|
|
@@ -201,6 +212,19 @@ export declare const i18nMessages: {
|
|
|
201
212
|
processing: string;
|
|
202
213
|
productSelected: string;
|
|
203
214
|
promptAnonymousLoginDialog: string;
|
|
215
|
+
queue: string;
|
|
216
|
+
queueSettings: string;
|
|
217
|
+
enableQueueOrder: string;
|
|
218
|
+
autoCalledLimit: string;
|
|
219
|
+
duration: string;
|
|
220
|
+
disableRemoteQueue: string;
|
|
221
|
+
disableSMS: string;
|
|
222
|
+
printChecklist: string;
|
|
223
|
+
codeSettings: string;
|
|
224
|
+
addCodeSetting: string;
|
|
225
|
+
current: string;
|
|
226
|
+
paxMin: string;
|
|
227
|
+
paxMax: string;
|
|
204
228
|
qrPay: string;
|
|
205
229
|
terminalScanPay: string;
|
|
206
230
|
terminalQrPay: string;
|
|
@@ -353,6 +377,14 @@ export declare const i18nMessages: {
|
|
|
353
377
|
autoIntegrationCountryNotSupport: string;
|
|
354
378
|
autoSendKitchen: string;
|
|
355
379
|
autoSendKitchenSublabel: string;
|
|
380
|
+
presetRemarks: string;
|
|
381
|
+
editPresetRemarks: string;
|
|
382
|
+
addNewRemark: string;
|
|
383
|
+
enterRemark: string;
|
|
384
|
+
existingRemarks: string;
|
|
385
|
+
noPresetRemarks: string;
|
|
386
|
+
noPresetRemarksAdded: string;
|
|
387
|
+
presetRemarksSaved: string;
|
|
356
388
|
balance: string;
|
|
357
389
|
bankCard: string;
|
|
358
390
|
beforeBillDiscount: string;
|
|
@@ -388,6 +420,8 @@ export declare const i18nMessages: {
|
|
|
388
420
|
deactivated: string;
|
|
389
421
|
default: string;
|
|
390
422
|
delete: string;
|
|
423
|
+
disabled: string;
|
|
424
|
+
enabled: string;
|
|
391
425
|
delivery: string;
|
|
392
426
|
deliveryCompany: string;
|
|
393
427
|
deliveryDescription: string;
|
|
@@ -431,6 +465,7 @@ export declare const i18nMessages: {
|
|
|
431
465
|
feedmeExpressPosVersionIssue: string;
|
|
432
466
|
feedmeExpressTitle: string;
|
|
433
467
|
fieldCannotBeEmpty: string;
|
|
468
|
+
followDineIn: string;
|
|
434
469
|
fixedTime: string;
|
|
435
470
|
friday: string;
|
|
436
471
|
general: string;
|
|
@@ -506,6 +541,7 @@ export declare const i18nMessages: {
|
|
|
506
541
|
pleaseCompleteProfile: string;
|
|
507
542
|
pleaseSelectRestaurant: string;
|
|
508
543
|
prefix: string;
|
|
544
|
+
printChecklist: string;
|
|
509
545
|
preOrder: string;
|
|
510
546
|
preOrderHint: string;
|
|
511
547
|
printReceiptAfterClose: string;
|
|
@@ -513,6 +549,18 @@ export declare const i18nMessages: {
|
|
|
513
549
|
processing: string;
|
|
514
550
|
productSelected: string;
|
|
515
551
|
promptAnonymousLoginDialog: string;
|
|
552
|
+
queue: string;
|
|
553
|
+
queueSettings: string;
|
|
554
|
+
enableQueueOrder: string;
|
|
555
|
+
autoCalledLimit: string;
|
|
556
|
+
duration: string;
|
|
557
|
+
disableRemoteQueue: string;
|
|
558
|
+
disableSMS: string;
|
|
559
|
+
codeSettings: string;
|
|
560
|
+
addCodeSetting: string;
|
|
561
|
+
current: string;
|
|
562
|
+
paxMin: string;
|
|
563
|
+
paxMax: string;
|
|
516
564
|
qrPay: string;
|
|
517
565
|
terminalScanPay: string;
|
|
518
566
|
terminalQrPay: string;
|
|
@@ -667,6 +715,14 @@ export declare const i18nMessages: {
|
|
|
667
715
|
autoIntegrationCountryNotSupport: string;
|
|
668
716
|
autoSendKitchen: string;
|
|
669
717
|
autoSendKitchenSublabel: string;
|
|
718
|
+
presetRemarks: string;
|
|
719
|
+
editPresetRemarks: string;
|
|
720
|
+
addNewRemark: string;
|
|
721
|
+
enterRemark: string;
|
|
722
|
+
existingRemarks: string;
|
|
723
|
+
noPresetRemarks: string;
|
|
724
|
+
noPresetRemarksAdded: string;
|
|
725
|
+
presetRemarksSaved: string;
|
|
670
726
|
balance: string;
|
|
671
727
|
bankCard: string;
|
|
672
728
|
beforeBillDiscount: string;
|
|
@@ -701,6 +757,8 @@ export declare const i18nMessages: {
|
|
|
701
757
|
deactivated: string;
|
|
702
758
|
default: string;
|
|
703
759
|
delete: string;
|
|
760
|
+
disabled: string;
|
|
761
|
+
enabled: string;
|
|
704
762
|
delivery: string;
|
|
705
763
|
deliveryCompany: string;
|
|
706
764
|
deliveryDescription: string;
|
|
@@ -741,6 +799,7 @@ export declare const i18nMessages: {
|
|
|
741
799
|
feedmeExpressPosVersionIssue: string;
|
|
742
800
|
feedmeExpressTitle: string;
|
|
743
801
|
fieldCannotBeEmpty: string;
|
|
802
|
+
followDineIn: string;
|
|
744
803
|
fixedTime: string;
|
|
745
804
|
friday: string;
|
|
746
805
|
general: string;
|
|
@@ -816,6 +875,7 @@ export declare const i18nMessages: {
|
|
|
816
875
|
pleaseCompleteProfile: string;
|
|
817
876
|
pleaseSelectRestaurant: string;
|
|
818
877
|
prefix: string;
|
|
878
|
+
printChecklist: string;
|
|
819
879
|
preOrder: string;
|
|
820
880
|
preOrderHint: string;
|
|
821
881
|
pricePerMessage: string;
|
|
@@ -823,6 +883,18 @@ export declare const i18nMessages: {
|
|
|
823
883
|
processing: string;
|
|
824
884
|
productSelected: string;
|
|
825
885
|
promptAnonymousLoginDialog: string;
|
|
886
|
+
queue: string;
|
|
887
|
+
queueSettings: string;
|
|
888
|
+
enableQueueOrder: string;
|
|
889
|
+
autoCalledLimit: string;
|
|
890
|
+
duration: string;
|
|
891
|
+
disableRemoteQueue: string;
|
|
892
|
+
disableSMS: string;
|
|
893
|
+
codeSettings: string;
|
|
894
|
+
addCodeSetting: string;
|
|
895
|
+
current: string;
|
|
896
|
+
paxMin: string;
|
|
897
|
+
paxMax: string;
|
|
826
898
|
qrPay: string;
|
|
827
899
|
terminalScanPay: string;
|
|
828
900
|
terminalQrPay: string;
|