@quoreadmin/ui 1.7.20 → 1.8.0
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/index.css +1 -1
- package/dist/index.js +42 -40
- package/dist/index10.js +2 -2
- package/dist/{index100.js → index101.js} +1 -1
- package/dist/index103.js +138 -6
- package/dist/index104.js +4 -0
- package/dist/index107.js +2 -2
- package/dist/index109.js +1 -1
- package/dist/index11.js +2 -2
- package/dist/index111.js +3 -3
- package/dist/index113.js +6 -6
- package/dist/index115.js +1 -1
- package/dist/index117.js +5 -5
- package/dist/index12.js +2 -2
- package/dist/index127.js +2 -14
- package/dist/index128.js +16 -0
- package/dist/index13.js +2 -2
- package/dist/{index129.js → index130.js} +1 -1
- package/dist/{index131.js → index132.js} +2 -2
- package/dist/{index136.js → index137.js} +1 -1
- package/dist/index14.js +2 -2
- package/dist/{index140.js → index141.js} +7 -7
- package/dist/{index142.js → index143.js} +1 -1
- package/dist/{index144.js → index145.js} +10 -10
- package/dist/index15.js +2 -2
- package/dist/{index152.js → index153.js} +1 -1
- package/dist/{index155.js → index156.js} +1 -1
- package/dist/{index157.js → index158.js} +1 -1
- package/dist/index16.js +2 -2
- package/dist/{index159.js → index160.js} +9 -9
- package/dist/index163.js +111 -492
- package/dist/index164.js +471 -5498
- package/dist/index165.js +5511 -80
- package/dist/index166.js +86 -856
- package/dist/index167.js +844 -21
- package/dist/index168.js +23 -265
- package/dist/index169.js +256 -126
- package/dist/index17.js +2 -2
- package/dist/index170.js +146 -1195
- package/dist/index171.js +1139 -712
- package/dist/index172.js +704 -1240
- package/dist/index173.js +1280 -248
- package/dist/index174.js +266 -96
- package/dist/index175.js +106 -2
- package/dist/index176.js +2 -1376
- package/dist/index177.js +1378 -0
- package/dist/index179.js +12 -12
- package/dist/index18.js +2 -2
- package/dist/index180.js +10 -10
- package/dist/index181.js +12 -12
- package/dist/index182.js +14 -21
- package/dist/index183.js +23 -757
- package/dist/index184.js +759 -1122
- package/dist/index185.js +1122 -1234
- package/dist/index186.js +1205 -11248
- package/dist/index187.js +11277 -36
- package/dist/index188.js +36 -44
- package/dist/index189.js +42 -1188
- package/dist/index19.js +2 -2
- package/dist/index190.js +1192 -0
- package/dist/index192.js +5830 -99
- package/dist/index193.js +188 -16
- package/dist/index194.js +25 -8
- package/dist/index195.js +16 -76
- package/dist/index196.js +74 -249
- package/dist/index197.js +229 -13660
- package/dist/index198.js +13684 -27
- package/dist/index199.js +26 -62
- package/dist/index2.js +2 -2
- package/dist/index20.js +2 -2
- package/dist/index200.js +40 -215
- package/dist/index201.js +206 -276
- package/dist/index202.js +278 -258
- package/dist/index203.js +287 -32
- package/dist/index204.js +30 -113
- package/dist/index205.js +110 -30
- package/dist/index206.js +36 -26
- package/dist/index207.js +26 -36
- package/dist/index208.js +36 -9
- package/dist/index209.js +9 -19
- package/dist/index21.js +2 -2
- package/dist/index210.js +19 -10
- package/dist/index211.js +10 -10
- package/dist/index212.js +10 -51
- package/dist/index213.js +45 -37
- package/dist/index214.js +42 -3
- package/dist/index215.js +3 -38
- package/dist/index216.js +39 -21
- package/dist/index217.js +21 -88
- package/dist/index218.js +70 -389
- package/dist/index219.js +406 -21
- package/dist/index22.js +3 -3
- package/dist/index220.js +20 -159
- package/dist/index221.js +160 -19
- package/dist/index222.js +228 -20
- package/dist/index223.js +36 -21
- package/dist/index224.js +9 -198
- package/dist/index225.js +121 -64
- package/dist/index226.js +36 -32
- package/dist/index227.js +80 -40
- package/dist/index228.js +19 -126
- package/dist/index229.js +16 -34
- package/dist/index23.js +2 -2
- package/dist/index230.js +20 -80
- package/dist/index231.js +3 -3
- package/dist/index232.js +11 -11
- package/dist/index233.js +160 -19
- package/dist/index234.js +9 -9
- package/dist/index235.js +21 -160
- package/dist/index236.js +189 -218
- package/dist/index237.js +69 -36
- package/dist/index238.js +34 -10
- package/dist/index239.js +33 -3625
- package/dist/index24.js +2 -2
- package/dist/index240.js +22 -55
- package/dist/index241.js +22 -77
- package/dist/index242.js +20 -52
- package/dist/index243.js +822 -201
- package/dist/index244.js +702 -10
- package/dist/index245.js +174 -55
- package/dist/index246.js +22 -61
- package/dist/index247.js +20 -54
- package/dist/index248.js +20 -75
- package/dist/index249.js +3 -723
- package/dist/index25.js +53 -12
- package/dist/index250.js +182 -34
- package/dist/index251.js +128 -59
- package/dist/index252.js +1222 -10
- package/dist/index253.js +20 -705
- package/dist/index254.js +22 -820
- package/dist/index255.js +9 -9
- package/dist/index256.js +22 -15
- package/dist/index257.js +6 -6
- package/dist/index258.js +20 -836
- package/dist/index259.js +2 -702
- package/dist/index26.js +1 -1
- package/dist/index260.js +2 -176
- package/dist/index261.js +3632 -22
- package/dist/index262.js +55 -20
- package/dist/index263.js +77 -20
- package/dist/index264.js +52 -3
- package/dist/index265.js +208 -180
- package/dist/index266.js +10 -133
- package/dist/index267.js +51 -1217
- package/dist/index268.js +61 -20
- package/dist/index269.js +54 -22
- package/dist/index27.js +1 -1
- package/dist/index270.js +75 -22
- package/dist/index271.js +722 -28
- package/dist/index272.js +39 -20
- package/dist/index273.js +64 -20
- package/dist/index274.js +11 -2
- package/dist/index275.js +705 -2
- package/dist/index276.js +801 -234
- package/dist/index277.js +253 -8
- package/dist/index278.js +8 -138
- package/dist/index279.js +123 -68
- package/dist/index28.js +1 -1
- package/dist/index280.js +83 -3
- package/dist/index281.js +3 -27
- package/dist/index282.js +26 -53
- package/dist/index283.js +2 -79
- package/dist/index284.js +78 -25
- package/dist/index285.js +53 -21
- package/dist/index286.js +17 -13
- package/dist/index287.js +22 -16
- package/dist/index288.js +22 -17
- package/dist/index289.js +15 -22
- package/dist/index29.js +1 -1
- package/dist/index290.js +17 -2
- package/dist/index291.js +23 -1518
- package/dist/index292.js +74 -381
- package/dist/index293.js +22 -2731
- package/dist/index294.js +925 -76
- package/dist/index295.js +22 -3770
- package/dist/index296.js +19 -59
- package/dist/index297.js +20 -15
- package/dist/index298.js +63 -78
- package/dist/index299.js +18 -201
- package/dist/index3.js +2 -2
- package/dist/index30.js +1 -1
- package/dist/index300.js +19 -246
- package/dist/index301.js +21 -78
- package/dist/index302.js +11 -11
- package/dist/index303.js +58 -930
- package/dist/index304.js +1518 -22
- package/dist/index305.js +386 -20
- package/dist/index306.js +2731 -20
- package/dist/index307.js +84 -67
- package/dist/index308.js +3770 -19
- package/dist/index309.js +60 -19
- package/dist/index31.js +1 -1
- package/dist/index310.js +15 -22
- package/dist/index311.js +83 -21
- package/dist/index312.js +201 -62
- package/dist/index313.js +231 -247
- package/dist/index314.js +260 -4
- package/dist/index315.js +5 -139
- package/dist/index316.js +135 -68
- package/dist/index317.js +71 -85
- package/dist/index318.js +85 -27
- package/dist/index319.js +27 -14
- package/dist/index32.js +1 -1
- package/dist/index320.js +12 -71
- package/dist/index321.js +74 -3
- package/dist/index322.js +4 -2
- package/dist/index323.js +2 -83
- package/dist/index324.js +79 -49
- package/dist/index325.js +52 -5
- package/dist/index326.js +5 -4
- package/dist/index327.js +4 -178
- package/dist/index328.js +174 -58
- package/dist/index329.js +61 -73
- package/dist/index33.js +1 -1
- package/dist/index330.js +75 -9
- package/dist/index331.js +8 -12
- package/dist/index332.js +12 -54
- package/dist/index333.js +52 -9
- package/dist/index334.js +11 -13
- package/dist/index335.js +9 -53
- package/dist/index336.js +55 -49
- package/dist/index337.js +49 -28
- package/dist/index338.js +31 -2
- package/dist/index339.js +2 -5
- package/dist/index34.js +1 -1
- package/dist/index340.js +5 -2
- package/dist/index341.js +2 -23
- package/dist/index342.js +21 -39
- package/dist/index343.js +41 -2
- package/dist/index344.js +2 -11
- package/dist/index345.js +11 -20
- package/dist/index346.js +18 -15
- package/dist/index347.js +16 -9
- package/dist/index348.js +9 -9
- package/dist/index349.js +10 -2
- package/dist/index35.js +1 -1
- package/dist/index350.js +2 -9
- package/dist/index351.js +9 -10
- package/dist/index352.js +10 -14
- package/dist/index353.js +14 -37
- package/dist/index354.js +36 -19
- package/dist/index355.js +9 -9
- package/dist/index356.js +19 -63
- package/dist/index357.js +61 -34
- package/dist/index358.js +36 -18
- package/dist/index359.js +17 -55
- package/dist/index36.js +1 -1
- package/dist/index360.js +56 -28
- package/dist/index361.js +27 -5
- package/dist/index362.js +6 -51
- package/dist/index363.js +51 -6
- package/dist/index364.js +7 -12
- package/dist/index365.js +12 -7
- package/dist/index366.js +6 -27
- package/dist/index367.js +28 -2
- package/dist/index368.js +2 -70
- package/dist/index369.js +67 -164
- package/dist/index37.js +47 -17
- package/dist/index370.js +165 -99
- package/dist/index371.js +17 -91
- package/dist/index373.js +100 -16
- package/dist/index374.js +90 -30
- package/dist/index375.js +30 -10
- package/dist/index376.js +10 -3
- package/dist/index377.js +3 -3
- package/dist/index378.js +4 -13
- package/dist/index379.js +13 -7
- package/dist/index38.js +15 -43
- package/dist/index380.js +7 -12
- package/dist/index381.js +11 -4
- package/dist/index382.js +5 -33
- package/dist/index383.js +33 -31
- package/dist/index384.js +29 -26
- package/dist/index385.js +26 -59
- package/dist/index386.js +61 -3
- package/dist/index387.js +3 -2
- package/dist/index388.js +2 -2
- package/dist/index389.js +2 -17
- package/dist/index39.js +42 -67
- package/dist/index390.js +15 -11
- package/dist/index391.js +13 -6
- package/dist/index392.js +6 -32
- package/dist/index393.js +34 -0
- package/dist/index4.js +2 -2
- package/dist/index40.js +66 -26
- package/dist/index41.js +25 -32
- package/dist/index42.js +32 -37
- package/dist/index43.js +37 -1300
- package/dist/index44.js +1273 -337
- package/dist/index45.js +357 -145
- package/dist/index46.js +155 -18
- package/dist/index47.js +16 -42
- package/dist/index48.js +44 -68
- package/dist/index49.js +67 -61
- package/dist/index5.js +2 -2
- package/dist/index50.js +57 -175
- package/dist/index51.js +173 -77
- package/dist/index52.js +79 -200
- package/dist/index53.js +206 -68
- package/dist/index54.js +69 -20
- package/dist/index55.js +20 -11
- package/dist/index56.js +10 -6
- package/dist/index57.js +5 -209
- package/dist/index58.js +210 -12
- package/dist/index59.js +12 -184
- package/dist/index6.js +2 -2
- package/dist/index60.js +176 -68
- package/dist/index61.js +79 -0
- package/dist/index63.js +7 -63
- package/dist/index64.js +65 -0
- package/dist/index7.js +2 -2
- package/dist/{index71.js → index72.js} +2 -2
- package/dist/index76.js +40 -308
- package/dist/index77.js +330 -0
- package/dist/index8.js +3 -3
- package/dist/{index80.js → index81.js} +5 -5
- package/dist/{index82.js → index83.js} +1 -1
- package/dist/index85.js +23 -131
- package/dist/index86.js +144 -0
- package/dist/{index87.js → index88.js} +5 -5
- package/dist/index9.js +2 -2
- package/dist/{index89.js → index90.js} +5 -5
- package/dist/{index95.js → index96.js} +2 -2
- package/dist/index98.js +20 -25
- package/dist/index99.js +34 -0
- package/dist/src/components/footer-actions/footer-actions.stories.d.ts +33 -1
- package/dist/src/components/footer-actions/footer-actions.vue.d.ts +29 -2
- package/dist/src/components/page-header/page-header.stories.d.ts +376 -0
- package/dist/src/components/page-header/page-header.vue.d.ts +41 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/assets/illustrations/app-icon-news.svg +1 -0
- package/dist/index102.js +0 -142
- package/dist/index162.js +0 -116
- package/dist/index178.js +0 -20
- package/dist/index191.js +0 -5940
- package/dist/index62.js +0 -9
- package/dist/index75.js +0 -62
- package/dist/index84.js +0 -36
- package/dist/index97.js +0 -29
- package/dist/src/components/footer-actions/footer-actions.d.ts +0 -3
- /package/dist/{index134.js → index135.js} +0 -0
- /package/dist/{index138.js → index139.js} +0 -0
- /package/dist/{index146.js → index147.js} +0 -0
- /package/dist/{index148.js → index149.js} +0 -0
- /package/dist/{index150.js → index151.js} +0 -0
- /package/dist/{index65.js → index66.js} +0 -0
- /package/dist/{index67.js → index68.js} +0 -0
- /package/dist/{index69.js → index70.js} +0 -0
- /package/dist/{index73.js → index74.js} +0 -0
- /package/dist/{index78.js → index79.js} +0 -0
- /package/dist/{index91.js → index92.js} +0 -0
- /package/dist/{index93.js → index94.js} +0 -0
package/dist/index44.js
CHANGED
|
@@ -1,371 +1,1307 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as
|
|
1
|
+
import U from "./index141.js";
|
|
2
|
+
import { resolveComponent as g, createElementBlock as i, createCommentVNode as t, openBlock as l, createVNode as r, withCtx as d, createElementVNode as n, normalizeClass as u, toDisplayString as a, createBlock as y, createTextVNode as k, Fragment as h, renderList as q, withKeys as H, withModifiers as E, mergeProps as N, toHandlerKey as V, renderSlot as R } from "vue";
|
|
3
3
|
/* empty css */
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import I from "./index63.js";
|
|
5
|
+
const A = ["id"], G = ["id"], L = ["id"], z = { class: "flex gap-3" }, Y = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "animate-shimmer bg-gray-30 w-3/4 h-6 grow"
|
|
8
|
+
}, P = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "text-base text-inkwell-30"
|
|
11
|
+
}, B = { key: 0 }, K = ["href"], W = { class: "flex items-start" }, j = { class: "list-unstyled text-sm w-full font-normal" }, F = { class: "grow" }, Z = { class: "grow" }, Q = { class: "grow" }, J = { class: "grow" }, X = { class: "position-relative icon-container ml-auto" }, _ = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "animate-shimmer bg-gray-10 w-full h-4 my-4"
|
|
14
|
+
}, x = {
|
|
6
15
|
key: 1,
|
|
7
|
-
class: "
|
|
8
|
-
},
|
|
16
|
+
class: "flex flex-wrap items-center mb-3 gap-2"
|
|
17
|
+
}, ee = {
|
|
18
|
+
key: 2,
|
|
19
|
+
class: "animate-shimmer bg-gray-30 w-full h-4 my-4"
|
|
20
|
+
}, oe = {
|
|
21
|
+
key: 3,
|
|
22
|
+
class: "flex flex-wrap items-center mb-4"
|
|
23
|
+
}, se = ["href"], le = { class: "shrink-0 mr-2 text-sm font-normal" }, ie = {
|
|
9
24
|
key: 0,
|
|
10
|
-
class: "
|
|
11
|
-
},
|
|
25
|
+
class: "animate-shimmer bg-gray-10 w-full h-6"
|
|
26
|
+
}, te = {
|
|
27
|
+
key: 1,
|
|
28
|
+
class: "guest-info-container"
|
|
29
|
+
}, re = {
|
|
12
30
|
key: 0,
|
|
13
|
-
class: "
|
|
14
|
-
},
|
|
15
|
-
class: /* @__PURE__ */ i([
|
|
16
|
-
"tag-name text-sm leading-normal pr-2 capitalize"
|
|
17
|
-
])
|
|
18
|
-
}, I = { key: 1 }, U = ["onClick"], B = {
|
|
31
|
+
class: "text-base text-inkwell-30 mb-2"
|
|
32
|
+
}, ne = {
|
|
19
33
|
key: 0,
|
|
20
|
-
class: "
|
|
21
|
-
},
|
|
34
|
+
class: "flex gap-1 text-xs mb-2 stay-details-row"
|
|
35
|
+
}, ae = { class: "text-truncate text-inkwell-0" }, de = { class: "grow text-inkwell-30" }, ue = {
|
|
36
|
+
key: 1,
|
|
37
|
+
class: "flex gap-1 text-xs mb-2 stay-details-row"
|
|
38
|
+
}, pe = { class: "text-truncate text-inkwell-0" }, me = { class: "grow text-inkwell-30" }, ge = { class: "shrink-0 mr-2 text-sm font-normal" }, ye = {
|
|
22
39
|
key: 0,
|
|
23
|
-
class: "
|
|
24
|
-
},
|
|
40
|
+
class: "animate-shimmer bg-gray-30 w-full h-6"
|
|
41
|
+
}, ke = {
|
|
25
42
|
key: 1,
|
|
26
|
-
class: "
|
|
27
|
-
},
|
|
43
|
+
class: "open-tickets"
|
|
44
|
+
}, he = ["id"], ve = {
|
|
45
|
+
key: 2,
|
|
46
|
+
class: "text-center mx-auto font-normal"
|
|
47
|
+
}, we = { class: "shrink-0 mr-2 text-sm font-normal" }, fe = {
|
|
48
|
+
key: 0,
|
|
49
|
+
class: "quick-replies"
|
|
50
|
+
}, qe = ["onClick"], be = {
|
|
28
51
|
key: 1,
|
|
29
|
-
class: "
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
class: "
|
|
33
|
-
},
|
|
52
|
+
class: "text-inkwell-0 text-xxs text-center"
|
|
53
|
+
}, Te = { class: "chat-container" }, Ce = {
|
|
54
|
+
id: "comments-container",
|
|
55
|
+
class: "chat-messages"
|
|
56
|
+
}, ce = {
|
|
57
|
+
key: 0,
|
|
58
|
+
class: "flex flex-col gap-3 p-2"
|
|
59
|
+
}, Oe = {
|
|
60
|
+
key: 0,
|
|
61
|
+
class: "chat-separator"
|
|
62
|
+
}, Ee = { class: "chat-separator-text" }, $e = {
|
|
63
|
+
key: 0,
|
|
64
|
+
class: "chat-message-avatar"
|
|
65
|
+
}, De = { class: "chat-message-content" }, Se = { class: "chat-message-time" }, He = { class: "chat-message-bubble" }, Ve = {
|
|
66
|
+
key: 1,
|
|
67
|
+
class: "chat-message-avatar"
|
|
68
|
+
}, Me = {
|
|
34
69
|
key: 2,
|
|
35
|
-
class: "
|
|
36
|
-
},
|
|
70
|
+
class: "chat-empty text-center py-4 text-inkwell-0 text-sm"
|
|
71
|
+
}, Ue = {
|
|
37
72
|
key: 0,
|
|
38
|
-
class: "
|
|
39
|
-
},
|
|
73
|
+
class: "simulate-panel"
|
|
74
|
+
}, Ne = { class: "simulate-panel-header" }, Re = { class: "simulate-panel-body" }, Ie = { class: "flex justify-end mt-2" }, Ae = { class: "chat-input-area" }, Ge = { class: "flex items-center gap-2" }, Le = {
|
|
40
75
|
key: 0,
|
|
41
|
-
class: "
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
76
|
+
class: "inline-block animate-pulse"
|
|
77
|
+
}, ze = { class: "relative flex-1 min-w-0" }, Ye = ["innerHTML"], Pe = { class: "flex items-center add-ticket-divider" }, Be = { class: "grow flex items-center text-sm font-normal" }, Ke = {
|
|
78
|
+
key: 0,
|
|
79
|
+
class: "grow"
|
|
80
|
+
}, We = { class: "grid grid-cols-2 gap-3" }, je = { class: "field" }, Fe = {
|
|
81
|
+
key: 0,
|
|
82
|
+
class: "field"
|
|
83
|
+
}, Ze = {
|
|
84
|
+
key: 1,
|
|
85
|
+
class: "field"
|
|
86
|
+
}, Qe = {
|
|
87
|
+
key: 2,
|
|
88
|
+
class: "field"
|
|
89
|
+
}, Je = {
|
|
90
|
+
key: 3,
|
|
91
|
+
class: "field col-span-2"
|
|
92
|
+
}, Xe = {
|
|
93
|
+
key: 4,
|
|
94
|
+
class: "field"
|
|
95
|
+
}, _e = {
|
|
96
|
+
key: 5,
|
|
97
|
+
class: "field col-span-2"
|
|
98
|
+
}, xe = {
|
|
99
|
+
key: 6,
|
|
100
|
+
class: "field"
|
|
101
|
+
}, eo = {
|
|
102
|
+
key: 7,
|
|
103
|
+
class: "field"
|
|
104
|
+
}, oo = {
|
|
105
|
+
key: 8,
|
|
106
|
+
class: "field"
|
|
107
|
+
}, so = {
|
|
108
|
+
key: 9,
|
|
109
|
+
class: "field"
|
|
110
|
+
}, lo = {
|
|
111
|
+
key: 10,
|
|
112
|
+
class: "field"
|
|
113
|
+
}, io = {
|
|
114
|
+
key: 11,
|
|
115
|
+
class: "field"
|
|
116
|
+
}, to = {
|
|
117
|
+
key: 12,
|
|
118
|
+
class: "field col-span-2"
|
|
119
|
+
}, ro = {
|
|
120
|
+
key: 13,
|
|
121
|
+
class: "field"
|
|
122
|
+
}, no = {
|
|
123
|
+
key: 14,
|
|
124
|
+
class: "field"
|
|
125
|
+
}, ao = {
|
|
126
|
+
key: 15,
|
|
127
|
+
class: "field"
|
|
128
|
+
}, uo = {
|
|
129
|
+
key: 16,
|
|
130
|
+
class: "field"
|
|
131
|
+
}, po = {
|
|
132
|
+
key: 17,
|
|
133
|
+
class: "field"
|
|
134
|
+
}, mo = {
|
|
135
|
+
key: 18,
|
|
136
|
+
class: "field"
|
|
137
|
+
}, go = {
|
|
138
|
+
key: 19,
|
|
139
|
+
class: "field col-span-2"
|
|
140
|
+
}, yo = {
|
|
141
|
+
key: 20,
|
|
142
|
+
class: "field"
|
|
143
|
+
}, ko = {
|
|
144
|
+
key: 21,
|
|
145
|
+
class: "field"
|
|
146
|
+
}, ho = {
|
|
147
|
+
key: 22,
|
|
148
|
+
class: "field"
|
|
149
|
+
}, vo = {
|
|
150
|
+
key: 23,
|
|
151
|
+
class: "field"
|
|
152
|
+
}, wo = {
|
|
153
|
+
key: 24,
|
|
154
|
+
class: "field"
|
|
155
|
+
}, fo = {
|
|
156
|
+
key: 25,
|
|
157
|
+
class: "field"
|
|
158
|
+
}, qo = {
|
|
159
|
+
key: 26,
|
|
160
|
+
class: "field"
|
|
161
|
+
}, bo = {
|
|
162
|
+
key: 27,
|
|
163
|
+
class: "field col-span-2"
|
|
164
|
+
}, To = {
|
|
165
|
+
class: /* @__PURE__ */ u([
|
|
166
|
+
"actions flex-shrink-0",
|
|
167
|
+
"flex items-center justify-between mt-4"
|
|
168
|
+
])
|
|
169
|
+
}, Co = {
|
|
170
|
+
key: 4,
|
|
171
|
+
class: "animate-shimmer bg-gray-30 w-full h-4 my-4"
|
|
172
|
+
}, co = {
|
|
173
|
+
key: 5,
|
|
174
|
+
class: "flex items-center mt-0.5"
|
|
175
|
+
}, Oo = { class: "text-xs text-inkwell-0 font-normal" };
|
|
176
|
+
function Eo(e, s, $o, Do, So, Ho) {
|
|
177
|
+
const p = g("q-icon"), f = g("q-tooltip"), $ = g("q-tag"), D = g("q-popover"), b = g("q-divider"), O = g("q-accordion"), M = g("q-activity-item"), S = g("q-avatar"), v = g("q-textarea"), T = g("q-button"), m = g("q-select"), w = g("q-date-picker"), C = g("q-input");
|
|
178
|
+
return e.showActionMenu || e.showComments || e.showGuestDetails && e.roomDetailsData.reservations && e.roomDetailsData.reservations[0] || e.showTickets || e.tagsList.length ? (l(), i("div", {
|
|
179
|
+
key: 0,
|
|
180
|
+
id: e.id ? `rdp-${e.id}` : "",
|
|
181
|
+
class: "room-detail component-container text-inkwell-30",
|
|
182
|
+
onMouseleave: s[54] || (s[54] = (o) => e.onHoverToggle(!1))
|
|
54
183
|
}, [
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
{ "select-show-count": !!e.showSelectedCount },
|
|
81
|
-
{ "select-search": !!e.search },
|
|
82
|
-
{ "select-searchable": e.searchable },
|
|
83
|
-
e.searchable ? "cursor-text" : "cursor-default",
|
|
84
|
-
"q-select rounded",
|
|
85
|
-
// added q-select because of all the styling on style
|
|
86
|
-
"select-" + e.size
|
|
87
|
-
]),
|
|
88
|
-
disabled: e.disabled || e.loading,
|
|
89
|
-
loading: e.loading,
|
|
90
|
-
"allow-empty": e.allowEmpty,
|
|
91
|
-
"clear-on-select": e.clearOnSelect,
|
|
92
|
-
"close-on-select": e.closeOnSelect || !e.hasCheckboxes && !e.multiple,
|
|
93
|
-
"show-tags": e.showTags,
|
|
94
|
-
"tag-placeholder": e.noTagFound,
|
|
95
|
-
placeholder: e.floatingLabel ? "" : e.placeholder,
|
|
96
|
-
"preserve-search": !0,
|
|
97
|
-
"reset-after": !1,
|
|
98
|
-
"max-height": 280,
|
|
99
|
-
"open-direction": e.openDirection,
|
|
100
|
-
"select-label": "",
|
|
101
|
-
"deselect-label": "",
|
|
102
|
-
"selected-label": "",
|
|
103
|
-
"select-group-label": "",
|
|
104
|
-
"deselect-group-label": "",
|
|
105
|
-
onOpen: e.onOpen,
|
|
106
|
-
onClose: e.onClose,
|
|
107
|
-
onRemove: u[2] || (u[2] = (l) => e.onRemove(l)),
|
|
108
|
-
onTag: e.addTag,
|
|
109
|
-
onSearchChange: u[3] || (u[3] = (l) => e.searchChange(l))
|
|
110
|
-
}, $({
|
|
111
|
-
caret: d(({ toggle: l }) => [
|
|
112
|
-
t("div", {
|
|
113
|
-
class: i([
|
|
114
|
-
"h-full w-full",
|
|
115
|
-
"absolute left-0 top-0",
|
|
116
|
-
"z-[1] cursor-pointer",
|
|
117
|
-
"flex justify-end"
|
|
118
|
-
]),
|
|
119
|
-
onMousedown: k(l, ["prevent"])
|
|
120
|
-
}, [
|
|
121
|
-
e.loading ? n("", !0) : (s(), g(p, {
|
|
122
|
-
key: 0,
|
|
123
|
-
icon: "chevron-down",
|
|
124
|
-
type: "line"
|
|
125
|
-
}))
|
|
126
|
-
], 40, R),
|
|
127
|
-
e.searchable ? (s(), g(p, {
|
|
128
|
-
key: 0,
|
|
129
|
-
class: "search-icon",
|
|
130
|
-
color: e.selectionControl ? "inkwell-0" : "gray-40",
|
|
131
|
-
icon: "search",
|
|
132
|
-
type: ""
|
|
133
|
-
}, null, 8, ["color"])) : n("", !0),
|
|
134
|
-
e.searchable && (e.multiple && !e.selected.length || !e.multiple && !e.selected) && !e.selectionControl && !e.floatingLabel ? (s(), a("div", z, [
|
|
135
|
-
c(o(e.placeholder), 1),
|
|
136
|
-
e.required ? (s(), a("span", A, " *" + o(e.$t("HC_REQUIRED")), 1)) : n("", !0)
|
|
137
|
-
])) : n("", !0)
|
|
138
|
-
]),
|
|
139
|
-
noResult: d(() => [
|
|
140
|
-
c(o(e.noResultsText), 1)
|
|
141
|
-
]),
|
|
142
|
-
noOptions: d(() => [
|
|
143
|
-
c(o(e.noOptionsText), 1)
|
|
144
|
-
]),
|
|
145
|
-
singleLabel: d(({ option: l }) => [
|
|
146
|
-
l.icon ? (s(), g(p, {
|
|
147
|
-
key: 0,
|
|
148
|
-
icon: l.icon
|
|
149
|
-
}, null, 8, ["icon"])) : n("", !0),
|
|
150
|
-
l && e.showPlaceholderImage ? f(e.$slots, "optionPrefix", C(v({ key: 1 }, l)), void 0, !0) : n("", !0),
|
|
151
|
-
e.selectionControl ? f(e.$slots, "controlPlaceholder", { key: 2 }, () => [
|
|
152
|
-
c(o(e.placeholder), 1)
|
|
153
|
-
], !0) : n("", !0),
|
|
154
|
-
t("span", {
|
|
155
|
-
class: i([
|
|
156
|
-
"option-name",
|
|
157
|
-
{
|
|
158
|
-
"text-inkwell-10 text-right truncate": e.selectionControl
|
|
159
|
-
}
|
|
184
|
+
r(D, {
|
|
185
|
+
"model-value": e.open,
|
|
186
|
+
align: e.alignment,
|
|
187
|
+
position: e.positioning,
|
|
188
|
+
size: (!e.showTickets || e.showTickets && (!e.ticketsList || !e.ticketsList.length)) && !e.showComments && !e.showActionMenu ? "sm" : e.size,
|
|
189
|
+
teleport: e.teleport,
|
|
190
|
+
"teleport-to": e.teleportTo,
|
|
191
|
+
"close-on-scroll-out-of-view": e.closeOnScrollOutOfView,
|
|
192
|
+
"scroll-into-view": e.scrollIntoView,
|
|
193
|
+
"scroll-into-view-padding": e.scrollIntoViewPadding,
|
|
194
|
+
onClose: s[52] || (s[52] = (o) => e.$emit("toggle", !1)),
|
|
195
|
+
"onUpdate:modelValue": s[53] || (s[53] = (o) => e.$emit("toggle", o))
|
|
196
|
+
}, {
|
|
197
|
+
trigger: d(() => [
|
|
198
|
+
n("div", N({
|
|
199
|
+
ref: "trigger",
|
|
200
|
+
id: e.id ? `rdp-${e.id}-trigger` : "",
|
|
201
|
+
class: "trigger-text"
|
|
202
|
+
}, {
|
|
203
|
+
[V(!e.hover && "click")]: s[0] || (s[0] = (o) => e.$emit("toggle", !e.open))
|
|
204
|
+
}, {
|
|
205
|
+
[V(e.hover && "mouseover")]: s[1] || (s[1] = (o) => e.onHoverToggle(!0))
|
|
206
|
+
}), [
|
|
207
|
+
R(e.$slots, "trigger", {}, () => [
|
|
208
|
+
k(a(e.trigger), 1)
|
|
160
209
|
])
|
|
161
|
-
|
|
210
|
+
], 16, G)
|
|
162
211
|
]),
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
e.
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
212
|
+
content: d(() => [
|
|
213
|
+
n("div", {
|
|
214
|
+
id: e.id ? `rdp-${e.id}-content` : "",
|
|
215
|
+
class: "popover-content w-full font-weight-normal cursor-default"
|
|
216
|
+
}, [
|
|
217
|
+
n("div", z, [
|
|
218
|
+
e.loading.pms || e.loading.roomNotices ? (l(), i("div", Y)) : (l(), i("div", {
|
|
219
|
+
key: 1,
|
|
220
|
+
class: u([
|
|
221
|
+
"flex grow items-center mb-4",
|
|
222
|
+
{ "gap-3": e.showRoomName }
|
|
170
223
|
])
|
|
171
224
|
}, [
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
225
|
+
e.showRoomName ? (l(), i("h2", P, [
|
|
226
|
+
n("strong", null, a(e.$t("HC_GUESTROOM")) + " " + a(e.room.name), 1)
|
|
227
|
+
])) : t("", !0),
|
|
228
|
+
(e.occupied || e.cleanliness || e.tagsList.length && !e.showRoomName) && e.size !== "sm" ? (l(), i("div", {
|
|
229
|
+
key: 1,
|
|
230
|
+
class: u([
|
|
231
|
+
"flex items-center flex-wrap gap-x-2",
|
|
232
|
+
{ "gap-y-3": !e.showRoomName }
|
|
233
|
+
])
|
|
177
234
|
}, [
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
235
|
+
e.occupied ? (l(), y(f, {
|
|
236
|
+
key: 0,
|
|
237
|
+
class: "flex shrink-0 items-center"
|
|
238
|
+
}, {
|
|
239
|
+
trigger: d(() => [
|
|
240
|
+
r(p, {
|
|
241
|
+
icon: "user",
|
|
242
|
+
type: "fill",
|
|
243
|
+
color: e.occupied && e.hasComplaint ? "red-10" : "gray-30",
|
|
244
|
+
width: "18",
|
|
245
|
+
height: "18",
|
|
246
|
+
"custom-size": ""
|
|
247
|
+
}, null, 8, ["color"])
|
|
184
248
|
]),
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
249
|
+
content: d(() => [
|
|
250
|
+
e.occupancyTooltipContent ? (l(), i("div", B, a(e.$t(e.occupancyTooltipContent)), 1)) : t("", !0)
|
|
251
|
+
]),
|
|
252
|
+
_: 1
|
|
253
|
+
})) : t("", !0),
|
|
254
|
+
e.cleanliness === "DIRTY" ? (l(), y(f, {
|
|
255
|
+
key: 1,
|
|
256
|
+
class: "flex shrink-0 items-center"
|
|
257
|
+
}, {
|
|
258
|
+
trigger: d(() => [
|
|
259
|
+
r(p, {
|
|
260
|
+
icon: "spray-bottle",
|
|
261
|
+
type: "fill",
|
|
262
|
+
color: "red-10",
|
|
263
|
+
class: "mt-[0.0612rem]",
|
|
264
|
+
width: "18",
|
|
265
|
+
height: "18",
|
|
266
|
+
"custom-size": ""
|
|
267
|
+
})
|
|
268
|
+
]),
|
|
269
|
+
content: d(() => [
|
|
270
|
+
k(a(e.$t("HC_DIRTY")), 1)
|
|
271
|
+
]),
|
|
272
|
+
_: 1
|
|
273
|
+
})) : t("", !0),
|
|
274
|
+
e.tagsList.length && !e.showRoomName ? (l(!0), i(h, { key: 2 }, q(e.tagsList, (o) => (l(), i("a", {
|
|
275
|
+
key: o,
|
|
276
|
+
href: typeof o == "object" && o.id && o.name ? `/roomsbook/notice.php?id=${o.id}` : "",
|
|
277
|
+
target: "_blank",
|
|
278
|
+
class: "capitalize"
|
|
279
|
+
}, [
|
|
280
|
+
r($, {
|
|
281
|
+
class: u([
|
|
282
|
+
"!text-xs !leading-4",
|
|
283
|
+
"shrink-0 max-w-[100px] !h-auto",
|
|
284
|
+
"!py-[0.1875rem] !px-[0.4375rem] border",
|
|
285
|
+
"border-orange-10",
|
|
286
|
+
{ pulse: o.isNew }
|
|
287
|
+
]),
|
|
288
|
+
"bg-color": "bg-yellow-0",
|
|
289
|
+
"text-color": "text-inkwell-30"
|
|
290
|
+
}, {
|
|
291
|
+
default: d(() => [
|
|
292
|
+
k(a(typeof o == "object" && o.id && o.name ? o.name : o), 1)
|
|
293
|
+
]),
|
|
294
|
+
_: 2
|
|
295
|
+
}, 1032, ["class"])
|
|
296
|
+
], 8, K))), 128)) : t("", !0)
|
|
297
|
+
], 2)) : t("", !0)
|
|
298
|
+
], 2)),
|
|
299
|
+
n("div", W, [
|
|
300
|
+
e.showActionMenu && (e.showActionsLink || !e.hasGuestCallback && e.showGuestCallback || e.showComments || e.showGuestDetails) ? (l(), y(D, {
|
|
200
301
|
key: 0,
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
class:
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
302
|
+
modelValue: e.actionMenuOpen,
|
|
303
|
+
"onUpdate:modelValue": s[7] || (s[7] = (o) => e.actionMenuOpen = o),
|
|
304
|
+
"has-caret": !1,
|
|
305
|
+
align: "right",
|
|
306
|
+
class: "action-menu mr-1",
|
|
307
|
+
size: "md",
|
|
308
|
+
onClose: s[8] || (s[8] = (o) => e.actionMenuOpen = !1)
|
|
309
|
+
}, {
|
|
310
|
+
trigger: d(() => [
|
|
311
|
+
r(p, {
|
|
312
|
+
class: "popover-action rounded-full cursor-pointer",
|
|
313
|
+
icon: "ellipsis-h",
|
|
314
|
+
size: "md",
|
|
315
|
+
type: "fill",
|
|
316
|
+
color: "inkwell-10",
|
|
317
|
+
onClick: s[2] || (s[2] = (o) => e.actionMenuOpen = !e.actionMenuOpen)
|
|
318
|
+
})
|
|
319
|
+
]),
|
|
320
|
+
content: d(() => [
|
|
321
|
+
n("ul", j, [
|
|
322
|
+
e.showActionsLink ? (l(), i("li", {
|
|
323
|
+
key: 0,
|
|
324
|
+
class: u([
|
|
325
|
+
"flex items-center",
|
|
326
|
+
"icon-container cursor-pointer",
|
|
327
|
+
"text-inkwell-30 px-2 py-1 mt-2",
|
|
328
|
+
{
|
|
329
|
+
"mb-2": !e.showGuestDetails && (e.hasGuestCallback || !e.showGuestCallback) && !e.showComments
|
|
330
|
+
}
|
|
331
|
+
]),
|
|
332
|
+
onClick: s[3] || (s[3] = (...o) => e.openRequest && e.openRequest(...o))
|
|
333
|
+
}, [
|
|
334
|
+
r(p, {
|
|
335
|
+
class: "shrink-0 mr-1 p-1",
|
|
336
|
+
color: "inkwell-10",
|
|
337
|
+
icon: "plus",
|
|
338
|
+
size: "md",
|
|
339
|
+
type: ""
|
|
340
|
+
}),
|
|
341
|
+
n("div", F, a(e.$t("HC_ACTION")), 1)
|
|
342
|
+
], 2)) : t("", !0),
|
|
343
|
+
!e.hasGuestCallback && e.showGuestCallback ? (l(), i("li", {
|
|
344
|
+
key: 1,
|
|
345
|
+
class: u([
|
|
346
|
+
"flex items-center",
|
|
347
|
+
"icon-container cursor-pointer",
|
|
348
|
+
"text-inkwell-30 px-2 py-1",
|
|
349
|
+
{
|
|
350
|
+
"mb-2": !e.showGuestDetails && !e.showComments
|
|
351
|
+
},
|
|
352
|
+
{ "mt-2": !e.showActionsLink }
|
|
353
|
+
]),
|
|
354
|
+
onClick: s[4] || (s[4] = (...o) => e.createCallback && e.createCallback(...o))
|
|
355
|
+
}, [
|
|
356
|
+
r(p, {
|
|
357
|
+
class: "shrink-0 mr-1 p-0.5",
|
|
358
|
+
color: "inkwell-10",
|
|
359
|
+
icon: "phone-plus",
|
|
360
|
+
size: "md",
|
|
361
|
+
type: "fill"
|
|
362
|
+
}),
|
|
363
|
+
n("div", Z, a(e.$t(
|
|
364
|
+
"HC_GUEST_CALLBACK"
|
|
365
|
+
)), 1)
|
|
366
|
+
], 2)) : t("", !0),
|
|
367
|
+
e.showComments ? (l(), i("li", {
|
|
368
|
+
key: 2,
|
|
369
|
+
class: u([
|
|
370
|
+
"flex items-center",
|
|
371
|
+
"icon-container cursor-pointer",
|
|
372
|
+
"text-inkwell-30 px-2 py-1",
|
|
373
|
+
{ "mb-2": !e.showGuestDetails },
|
|
374
|
+
{
|
|
375
|
+
"mt-2": !e.showActionsLink && (e.hasGuestCallback || !e.showGuestCallback)
|
|
376
|
+
}
|
|
377
|
+
]),
|
|
378
|
+
onClick: s[5] || (s[5] = (...o) => e.onClickEditConnectGuest && e.onClickEditConnectGuest(...o))
|
|
379
|
+
}, [
|
|
380
|
+
r(p, {
|
|
381
|
+
class: "shrink-0 mr-1 p-1",
|
|
382
|
+
color: "inkwell-10",
|
|
383
|
+
icon: "pencil",
|
|
384
|
+
size: "md",
|
|
385
|
+
type: "fill"
|
|
386
|
+
}),
|
|
387
|
+
n("div", Q, a(e.$t("HC_EDIT_INFORMATION")), 1)
|
|
388
|
+
], 2)) : t("", !0),
|
|
389
|
+
e.showGuestDetails ? (l(), i("li", {
|
|
390
|
+
key: 3,
|
|
391
|
+
class: u([
|
|
392
|
+
"flex items-center",
|
|
393
|
+
"icon-container cursor-pointer",
|
|
394
|
+
"text-inkwell-30 px-2 py-1 mb-2",
|
|
395
|
+
{
|
|
396
|
+
"mt-2": !e.showActionsLink && (e.hasGuestCallback || !e.showGuestCallback) && !e.showComments
|
|
397
|
+
}
|
|
398
|
+
]),
|
|
399
|
+
onClick: s[6] || (s[6] = (...o) => e.refreshPMSData && e.refreshPMSData(...o))
|
|
400
|
+
}, [
|
|
401
|
+
r(p, {
|
|
402
|
+
class: "shrink-0 mr-1 p-1",
|
|
403
|
+
color: "inkwell-10",
|
|
404
|
+
icon: "refresh",
|
|
405
|
+
size: "md",
|
|
406
|
+
type: ""
|
|
407
|
+
}),
|
|
408
|
+
n("div", J, a(e.$t("HC_REFRESH_PMS_DATA")), 1)
|
|
409
|
+
], 2)) : t("", !0)
|
|
410
|
+
])
|
|
411
|
+
]),
|
|
412
|
+
_: 1
|
|
413
|
+
}, 8, ["modelValue"])) : t("", !0),
|
|
414
|
+
n("div", X, [
|
|
415
|
+
r(f, null, {
|
|
416
|
+
trigger: d(() => [
|
|
417
|
+
r(p, {
|
|
418
|
+
icon: "close",
|
|
419
|
+
color: "inkwell-10",
|
|
420
|
+
size: "md",
|
|
421
|
+
type: "",
|
|
422
|
+
class: "popover-action rounded-full cursor-pointer p-1",
|
|
423
|
+
onClick: s[9] || (s[9] = (o) => e.$emit("toggle", !1))
|
|
424
|
+
})
|
|
222
425
|
]),
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
])) : n("", !0),
|
|
230
|
-
!e.showTags && !e.taggable && e.multiple && l.length ? (s(), a("div", {
|
|
231
|
-
key: 1,
|
|
232
|
-
class: i([
|
|
233
|
-
"multiselect__single flex w-full",
|
|
234
|
-
e.selectionControl ? "whitespace-nowrap justify-between" : "items-center"
|
|
235
|
-
])
|
|
236
|
-
}, [
|
|
237
|
-
t("span", {
|
|
238
|
-
class: i([
|
|
239
|
-
"option-selected",
|
|
240
|
-
{
|
|
241
|
-
capitalize: e.groupValues && e.options[0][e.groupValues].length === l.length
|
|
242
|
-
}
|
|
426
|
+
content: d(() => [
|
|
427
|
+
k(a(e.$t("HC_CLOSE")), 1)
|
|
428
|
+
]),
|
|
429
|
+
_: 1
|
|
430
|
+
})
|
|
431
|
+
])
|
|
243
432
|
])
|
|
244
|
-
}, o(e.selectionControl ? e.placeholder : e.groupValues && e.options[0][e.groupValues].length === l.length ? e.options[0][e.groupLabel] || e.groupLabel : l[0][e.label]), 3),
|
|
245
|
-
e.selectionControl ? (s(), a("span", M, o(e.selectedText), 1)) : n("", !0),
|
|
246
|
-
e.limitShown && e.limitShown < l.length && (!e.groupValues && l.length !== e.limitShown || e.groupValues && e.options[0][e.groupValues].length !== l.length) ? (s(), a("span", N, " + " + o(l.length - e.limitShown) + " more... ", 1)) : n("", !0)
|
|
247
|
-
], 2)) : m && !e.useTags && !e.multiple ? (s(), a("div", {
|
|
248
|
-
key: 2,
|
|
249
|
-
class: i([
|
|
250
|
-
"multiselect__single flex w-full",
|
|
251
|
-
e.selectionControl ? "justify-between" : "items-center"
|
|
252
|
-
])
|
|
253
|
-
}, [
|
|
254
|
-
e.selectionControl ? (s(), a(T, { key: 0 }, [
|
|
255
|
-
t("span", Q, o(e.placeholder || ""), 1),
|
|
256
|
-
t("span", G, o(e.selected?.label || e.selected?.name || ""), 1)
|
|
257
|
-
], 64)) : (s(), a("span", K, o(e.selected?.label || e.selected?.name || e.placeholder || ""), 1))
|
|
258
|
-
], 2)) : m && !e.useTags && e.multiple && e.selectionControl ? (s(), a("div", J, [
|
|
259
|
-
t("span", W, o(e.placeholder || ""), 1)
|
|
260
|
-
])) : n("", !0)
|
|
261
|
-
]),
|
|
262
|
-
option: d(({ option: l, search: m }) => [
|
|
263
|
-
t("div", {
|
|
264
|
-
class: i([
|
|
265
|
-
"flex items-center w-full",
|
|
266
|
-
{ "option-search": l.label === m },
|
|
267
|
-
{ "option-disabled": l.$isDisabled }
|
|
268
433
|
]),
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
434
|
+
e.loading.pms && e.size === "sm" ? (l(), i("div", _)) : !e.loading.pms && (e.occupied || e.cleanliness) && e.size === "sm" ? (l(), i("div", x, [
|
|
435
|
+
e.occupied ? (l(), y(p, {
|
|
436
|
+
key: 0,
|
|
437
|
+
icon: "user",
|
|
438
|
+
type: "fill",
|
|
439
|
+
color: e.occupied && e.hasComplaint ? "red-10" : "gray-30",
|
|
440
|
+
width: "18",
|
|
441
|
+
height: "18",
|
|
442
|
+
"custom-size": ""
|
|
443
|
+
}, null, 8, ["color"])) : t("", !0),
|
|
444
|
+
e.cleanliness === "DIRTY" ? (l(), y(p, {
|
|
445
|
+
key: 1,
|
|
446
|
+
icon: "spray-bottle",
|
|
447
|
+
type: "fill",
|
|
448
|
+
color: "red-10",
|
|
449
|
+
width: "18",
|
|
450
|
+
height: "18",
|
|
451
|
+
"custom-size": ""
|
|
452
|
+
})) : t("", !0)
|
|
453
|
+
])) : t("", !0),
|
|
454
|
+
e.loading.roomNotices ? (l(), i("div", ee)) : !e.loading.roomNotices && e.tagsList.length && e.showRoomName ? (l(), i("div", oe, [
|
|
455
|
+
(l(!0), i(h, null, q(e.tagsList, (o) => (l(), i("a", {
|
|
456
|
+
key: o,
|
|
457
|
+
href: typeof o == "object" && o.id && o.name ? `/roomsbook/notice.php?id=${o.id}` : "",
|
|
458
|
+
target: "_blank",
|
|
459
|
+
class: "mr-2 mb-1 capitalize"
|
|
460
|
+
}, [
|
|
461
|
+
r(f, { position: "bottom" }, {
|
|
462
|
+
trigger: d(() => [
|
|
463
|
+
r($, {
|
|
464
|
+
class: u([
|
|
465
|
+
"!text-tiny !leading-4",
|
|
466
|
+
"shrink-0 max-w-[100px] !h-auto",
|
|
467
|
+
"!py-0.5 !px-1.5 border",
|
|
468
|
+
"border-orange-10",
|
|
469
|
+
{ pulse: o.isNew }
|
|
470
|
+
]),
|
|
471
|
+
"bg-color": "bg-yellow-0",
|
|
472
|
+
"text-color": "text-inkwell-30"
|
|
473
|
+
}, {
|
|
474
|
+
default: d(() => [
|
|
475
|
+
k(a(typeof o == "object" && o.id && o.name ? o.name : o), 1)
|
|
476
|
+
]),
|
|
477
|
+
_: 2
|
|
478
|
+
}, 1032, ["class"])
|
|
479
|
+
]),
|
|
480
|
+
content: d(() => [
|
|
481
|
+
k(a(e.$t("HC_VIEW_DETAILS")), 1)
|
|
482
|
+
]),
|
|
483
|
+
_: 2
|
|
484
|
+
}, 1024)
|
|
485
|
+
], 8, se))), 128))
|
|
486
|
+
])) : t("", !0),
|
|
487
|
+
n("div", {
|
|
488
|
+
class: u(["accordions", { closed: e.showCreateRequest }])
|
|
291
489
|
}, [
|
|
292
|
-
|
|
490
|
+
e.showGuestDetails && e.roomDetailsData.reservations && e.roomDetailsData.reservations[0] ? (l(), y(O, {
|
|
293
491
|
key: 0,
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
t("div", {
|
|
299
|
-
class: i(["option-name", [
|
|
300
|
-
l.optionClass ? l.optionClass : ""
|
|
301
|
-
]])
|
|
302
|
-
}, o(l.$groupLabel || l.label || l.name || l), 3),
|
|
303
|
-
l.description && e.showOptionDescription ? (s(), a("div", Y, o(l.description), 1)) : n("", !0),
|
|
304
|
-
e.multiple && e.hasCheckboxes ? n("", !0) : (s(), g(p, {
|
|
305
|
-
key: 3,
|
|
306
|
-
icon: "check",
|
|
307
|
-
size: "sm",
|
|
308
|
-
type: "line",
|
|
309
|
-
color: "inkwell-30",
|
|
310
|
-
class: "selected-icon"
|
|
311
|
-
}))
|
|
312
|
-
], 2)
|
|
313
|
-
], 10, X)
|
|
314
|
-
]),
|
|
315
|
-
_: 2
|
|
316
|
-
}, [
|
|
317
|
-
e.showSelectAll ? {
|
|
318
|
-
name: "beforeList",
|
|
319
|
-
fn: d(() => [
|
|
320
|
-
t("div", D, [
|
|
321
|
-
h(y, {
|
|
322
|
-
type: "button",
|
|
323
|
-
disabled: e.selectedCount === e.selected.length,
|
|
324
|
-
"no-min-width": !0,
|
|
325
|
-
class: "!text-sm !font-normal !leading-4",
|
|
326
|
-
status: "link",
|
|
327
|
-
onClick: k(e.selectAll, ["prevent"])
|
|
492
|
+
modelValue: e.expandGuestInfo,
|
|
493
|
+
"onUpdate:modelValue": s[11] || (s[11] = (o) => e.expandGuestInfo = o),
|
|
494
|
+
class: "mb-3",
|
|
495
|
+
"content-class": "!px-0 !pt-3 !pb-0"
|
|
328
496
|
}, {
|
|
329
|
-
|
|
330
|
-
|
|
497
|
+
toggle: d(() => [
|
|
498
|
+
n("div", {
|
|
499
|
+
class: "flex items-center cursor-pointer",
|
|
500
|
+
onClick: s[10] || (s[10] = (o) => e.expandGuestInfo = !e.expandGuestInfo)
|
|
501
|
+
}, [
|
|
502
|
+
n("div", le, a(e.$t("HC_GUEST_INFORMATION")), 1),
|
|
503
|
+
r(b, { class: "grow" }),
|
|
504
|
+
r(p, {
|
|
505
|
+
class: u([
|
|
506
|
+
"ml-2 transition-transform",
|
|
507
|
+
{ "rotate-90": e.expandGuestInfo }
|
|
508
|
+
]),
|
|
509
|
+
color: "gray-20",
|
|
510
|
+
icon: "chevron-right",
|
|
511
|
+
type: ""
|
|
512
|
+
}, null, 8, ["class"])
|
|
513
|
+
])
|
|
514
|
+
]),
|
|
515
|
+
content: d(() => [
|
|
516
|
+
e.loading.pms ? (l(), i("div", ie)) : (l(), i("div", te, [
|
|
517
|
+
e.roomDetailsData.reservations[0].guestName ? (l(), i("p", re, [
|
|
518
|
+
n("strong", null, a(e.roomDetailsData.reservations[0].guestName), 1)
|
|
519
|
+
])) : t("", !0),
|
|
520
|
+
n("div", {
|
|
521
|
+
class: u([
|
|
522
|
+
"stay-details-container flex",
|
|
523
|
+
e.size === "sm" ? "flex-col" : "flex-row gap-3"
|
|
524
|
+
])
|
|
525
|
+
}, [
|
|
526
|
+
e.roomDetailsData.reservations[0].confirmationNumber ? (l(), i("div", ne, [
|
|
527
|
+
n("div", ae, a(e.$t("HC_RESERVATION")) + ": ", 1),
|
|
528
|
+
n("div", de, a(e.roomDetailsData.reservations[0].confirmationNumber), 1)
|
|
529
|
+
])) : t("", !0),
|
|
530
|
+
e.stayDetails ? (l(), i("div", ue, [
|
|
531
|
+
n("div", pe, a(e.$t("HC_STAY")) + ": ", 1),
|
|
532
|
+
n("div", me, a(e.stayDetails), 1)
|
|
533
|
+
])) : t("", !0)
|
|
534
|
+
], 2)
|
|
535
|
+
]))
|
|
536
|
+
]),
|
|
537
|
+
_: 1
|
|
538
|
+
}, 8, ["modelValue"])) : t("", !0),
|
|
539
|
+
e.showTickets ? (l(), y(O, {
|
|
540
|
+
key: 1,
|
|
541
|
+
modelValue: e.expandTickets,
|
|
542
|
+
"onUpdate:modelValue": s[13] || (s[13] = (o) => e.expandTickets = o),
|
|
543
|
+
class: "mb-3",
|
|
544
|
+
"content-class": "!px-0 !pt-3 !pb-0"
|
|
545
|
+
}, {
|
|
546
|
+
toggle: d(() => [
|
|
547
|
+
n("div", {
|
|
548
|
+
class: "flex items-center cursor-pointer",
|
|
549
|
+
onClick: s[12] || (s[12] = (o) => e.expandTickets = !e.expandTickets)
|
|
550
|
+
}, [
|
|
551
|
+
n("div", ge, a(e.$t("HC_OPEN_TICKETS")), 1),
|
|
552
|
+
r(b, { class: "grow" }),
|
|
553
|
+
r(p, {
|
|
554
|
+
class: u([
|
|
555
|
+
"ml-2 transition-transform",
|
|
556
|
+
{ "rotate-90": e.expandTickets }
|
|
557
|
+
]),
|
|
558
|
+
color: "gray-20",
|
|
559
|
+
icon: "chevron-right",
|
|
560
|
+
type: ""
|
|
561
|
+
}, null, 8, ["class"])
|
|
562
|
+
])
|
|
563
|
+
]),
|
|
564
|
+
content: d(() => [
|
|
565
|
+
e.loading.tickets ? (l(), i("div", ye)) : e.ticketsList.length ? (l(), i("ul", ke, [
|
|
566
|
+
(l(!0), i(h, null, q(e.ticketsList, (o, c) => (l(), i("li", {
|
|
567
|
+
key: o.id,
|
|
568
|
+
id: `open-ticket-${o.id}`
|
|
569
|
+
}, [
|
|
570
|
+
r(M, {
|
|
571
|
+
class: u([
|
|
572
|
+
{
|
|
573
|
+
"mt-3": c > 0,
|
|
574
|
+
pulse: o.isNew
|
|
575
|
+
}
|
|
576
|
+
]),
|
|
577
|
+
"is-clickable": !0,
|
|
578
|
+
text: o.name,
|
|
579
|
+
time: e.getHowLongAgo(
|
|
580
|
+
o.started?.dateUtc
|
|
581
|
+
),
|
|
582
|
+
type: o.type,
|
|
583
|
+
onClick: (Vo) => e.onClickTicket(o)
|
|
584
|
+
}, null, 8, ["class", "text", "time", "type", "onClick"])
|
|
585
|
+
], 8, he))), 128))
|
|
586
|
+
])) : (l(), i("p", ve, a(e.$t("HC_THERE_ARE_NO_OPEN_TICKETS_YET")), 1))
|
|
331
587
|
]),
|
|
332
588
|
_: 1
|
|
333
|
-
}, 8, ["
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
"
|
|
338
|
-
class: "
|
|
339
|
-
|
|
340
|
-
|
|
589
|
+
}, 8, ["modelValue"])) : t("", !0),
|
|
590
|
+
e.showComments ? (l(), y(O, {
|
|
591
|
+
key: 2,
|
|
592
|
+
modelValue: e.expandComments,
|
|
593
|
+
"onUpdate:modelValue": s[19] || (s[19] = (o) => e.expandComments = o),
|
|
594
|
+
class: "messages mb-3",
|
|
595
|
+
"content-class": "!px-0 !pt-3 !pb-0"
|
|
596
|
+
}, {
|
|
597
|
+
toggle: d(() => [
|
|
598
|
+
n("div", {
|
|
599
|
+
class: "flex items-center cursor-pointer",
|
|
600
|
+
onClick: s[14] || (s[14] = (o) => e.expandComments = !e.expandComments)
|
|
601
|
+
}, [
|
|
602
|
+
n("div", we, a(e.$t("HC_GUEST_CONNECT")), 1),
|
|
603
|
+
r(b, { class: "grow" }),
|
|
604
|
+
r(p, {
|
|
605
|
+
class: u([
|
|
606
|
+
"ml-2 transition-transform",
|
|
607
|
+
{ "rotate-90": e.expandComments }
|
|
608
|
+
]),
|
|
609
|
+
color: "gray-20",
|
|
610
|
+
icon: "chevron-right",
|
|
611
|
+
type: ""
|
|
612
|
+
}, null, 8, ["class"])
|
|
613
|
+
])
|
|
614
|
+
]),
|
|
615
|
+
content: d(() => [
|
|
616
|
+
n("div", {
|
|
617
|
+
class: u([
|
|
618
|
+
"quick-replies-container",
|
|
619
|
+
"flex flex-col",
|
|
620
|
+
{ show: e.quickReplyOpen },
|
|
621
|
+
{
|
|
622
|
+
"justify-end": !!e.filteredReplies.length
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
"justify-center": !e.filteredReplies.length
|
|
626
|
+
}
|
|
627
|
+
])
|
|
628
|
+
}, [
|
|
629
|
+
e.filteredReplies.length ? (l(), i("div", fe, [
|
|
630
|
+
(l(!0), i(h, null, q(e.filteredReplies, (o) => (l(), i("div", {
|
|
631
|
+
key: o,
|
|
632
|
+
class: u([
|
|
633
|
+
"quick-reply",
|
|
634
|
+
{ active: e.comment }
|
|
635
|
+
]),
|
|
636
|
+
onClick: (c) => e.onSelectQuickReply(o)
|
|
637
|
+
}, [
|
|
638
|
+
n("div", null, a(o), 1)
|
|
639
|
+
], 10, qe))), 128))
|
|
640
|
+
])) : (l(), i("div", be, a(e.$t("HC_NO_RESULTS_FOUND_FOR")) + ' "' + a(e.comment) + '". ', 1))
|
|
641
|
+
], 2),
|
|
642
|
+
n("div", Te, [
|
|
643
|
+
n("div", Ce, [
|
|
644
|
+
e.loading.messages ? (l(), i("div", ce, [...s[55] || (s[55] = [
|
|
645
|
+
n("div", { class: "flex gap-2 items-end" }, [
|
|
646
|
+
n("div", { class: "animate-shimmer bg-gray-20 w-8 h-8 rounded-full shrink-0" }),
|
|
647
|
+
n("div", { class: "animate-shimmer bg-gray-10 h-12 w-3/4 rounded-lg" })
|
|
648
|
+
], -1),
|
|
649
|
+
n("div", { class: "flex gap-2 items-end justify-end" }, [
|
|
650
|
+
n("div", { class: "animate-shimmer bg-gray-10 h-10 w-2/3 rounded-lg" }),
|
|
651
|
+
n("div", { class: "animate-shimmer bg-gray-20 w-8 h-8 rounded-full shrink-0" })
|
|
652
|
+
], -1),
|
|
653
|
+
n("div", { class: "flex gap-2 items-end" }, [
|
|
654
|
+
n("div", { class: "animate-shimmer bg-gray-20 w-8 h-8 rounded-full shrink-0" }),
|
|
655
|
+
n("div", { class: "animate-shimmer bg-gray-10 h-8 w-1/2 rounded-lg" })
|
|
656
|
+
], -1)
|
|
657
|
+
])])) : (l(!0), i(h, { key: 1 }, q(e.groupedMessages, (o, c) => (l(), i(h, { key: c }, [
|
|
658
|
+
o.type === "separator" ? (l(), i("div", Oe, [
|
|
659
|
+
n("span", Ee, a(o.label), 1)
|
|
660
|
+
])) : (l(), i("div", {
|
|
661
|
+
key: 1,
|
|
662
|
+
class: u([
|
|
663
|
+
"chat-message",
|
|
664
|
+
{
|
|
665
|
+
"chat-message--staff": o.isStaffMessage,
|
|
666
|
+
"chat-message--guest": o.isGuestMessage
|
|
667
|
+
}
|
|
668
|
+
])
|
|
669
|
+
}, [
|
|
670
|
+
o.isGuestMessage ? (l(), i("div", $e, [
|
|
671
|
+
r(f, { position: "top" }, {
|
|
672
|
+
trigger: d(() => [
|
|
673
|
+
r(S, {
|
|
674
|
+
initials: o.user?.initials || "?",
|
|
675
|
+
src: o.user?.src || "",
|
|
676
|
+
size: "sm"
|
|
677
|
+
}, null, 8, ["initials", "src"])
|
|
678
|
+
]),
|
|
679
|
+
content: d(() => [
|
|
680
|
+
k(a(o.user?.name || e.$t("HC_GUEST")), 1)
|
|
681
|
+
]),
|
|
682
|
+
_: 2
|
|
683
|
+
}, 1024)
|
|
684
|
+
])) : t("", !0),
|
|
685
|
+
n("div", De, [
|
|
686
|
+
n("div", Se, a(o.formattedTime), 1),
|
|
687
|
+
n("div", He, a(o.comment), 1)
|
|
688
|
+
]),
|
|
689
|
+
o.isStaffMessage ? (l(), i("div", Ve, [
|
|
690
|
+
r(S, { size: "sm" }, {
|
|
691
|
+
default: d(() => [
|
|
692
|
+
r(p, {
|
|
693
|
+
icon: "building",
|
|
694
|
+
size: "sm",
|
|
695
|
+
color: "gray-30",
|
|
696
|
+
type: "fill"
|
|
697
|
+
})
|
|
698
|
+
]),
|
|
699
|
+
_: 1
|
|
700
|
+
})
|
|
701
|
+
])) : t("", !0)
|
|
702
|
+
], 2))
|
|
703
|
+
], 64))), 128)),
|
|
704
|
+
!e.loading.messages && !e.groupedMessages.length ? (l(), i("div", Me, a(e.$t("HC_NO_MESSAGES_YET")), 1)) : t("", !0)
|
|
705
|
+
]),
|
|
706
|
+
e.isTestEnvironment && e.simulateOpen ? (l(), i("div", Ue, [
|
|
707
|
+
n("div", Ne, [
|
|
708
|
+
s[56] || (s[56] = n("span", { class: "simulate-badge" }, "TEST", -1)),
|
|
709
|
+
n("span", null, a(e.$t("HC_SIMULATE_GUEST_REPLY")), 1),
|
|
710
|
+
r(p, {
|
|
711
|
+
icon: "close",
|
|
712
|
+
size: "sm",
|
|
713
|
+
class: "cursor-pointer ml-auto",
|
|
714
|
+
onClick: e.toggleSimulateOpen
|
|
715
|
+
}, null, 8, ["onClick"])
|
|
716
|
+
]),
|
|
717
|
+
n("div", Re, [
|
|
718
|
+
r(v, {
|
|
719
|
+
id: "simulate-content",
|
|
720
|
+
modelValue: e.simulateContent,
|
|
721
|
+
"onUpdate:modelValue": s[15] || (s[15] = (o) => e.simulateContent = o),
|
|
722
|
+
placeholder: e.$t("HC_ENTER_SIMULATED_MESSAGE"),
|
|
723
|
+
"textarea-class": "text-sm border-gray-12 w-full",
|
|
724
|
+
"control-class": "w-full",
|
|
725
|
+
rows: 2,
|
|
726
|
+
onKeydown: H(E(e.simulateGuestReply, ["prevent"]), ["enter"])
|
|
727
|
+
}, null, 8, ["modelValue", "placeholder", "onKeydown"]),
|
|
728
|
+
n("div", Ie, [
|
|
729
|
+
r(T, {
|
|
730
|
+
disabled: !e.simulateContent.trim() || e.simulateLoading,
|
|
731
|
+
loading: e.simulateLoading,
|
|
732
|
+
size: "xsm",
|
|
733
|
+
class: "simulate-send-btn",
|
|
734
|
+
onClick: e.simulateGuestReply
|
|
735
|
+
}, {
|
|
736
|
+
default: d(() => [
|
|
737
|
+
k(a(e.$t("HC_SEND")), 1)
|
|
738
|
+
]),
|
|
739
|
+
_: 1
|
|
740
|
+
}, 8, ["disabled", "loading", "onClick"])
|
|
741
|
+
])
|
|
742
|
+
])
|
|
743
|
+
])) : t("", !0),
|
|
744
|
+
n("div", Ae, [
|
|
745
|
+
n("div", Ge, [
|
|
746
|
+
e.messages.length > 0 ? (l(), i("div", {
|
|
747
|
+
key: 0,
|
|
748
|
+
class: u([
|
|
749
|
+
"text-xs px-2 py-1 rounded shrink-0",
|
|
750
|
+
"border border-gray-12",
|
|
751
|
+
e.loading.conversationToggle ? "opacity-50 cursor-wait" : "cursor-pointer hover:bg-gray-5",
|
|
752
|
+
{ hide: e.quickReplyOpen || e.simulateOpen }
|
|
753
|
+
]),
|
|
754
|
+
onClick: s[16] || (s[16] = (o) => !e.loading.conversationToggle && e.toggleMarkOpenClose())
|
|
755
|
+
}, [
|
|
756
|
+
e.loading.conversationToggle ? (l(), i("span", Le, "...")) : (l(), i(h, { key: 1 }, [
|
|
757
|
+
k(a(e.$t(
|
|
758
|
+
e.isConversationOpen ? "HC_CLOSE" : "HC_OPEN"
|
|
759
|
+
)), 1)
|
|
760
|
+
], 64))
|
|
761
|
+
], 2)) : t("", !0),
|
|
762
|
+
e.isTestEnvironment && e.roomDetailsData?.tokenId ? (l(), i("div", {
|
|
763
|
+
key: 1,
|
|
764
|
+
class: u([
|
|
765
|
+
"cursor-pointer text-xs px-2 py-1 rounded shrink-0",
|
|
766
|
+
"border hover:bg-orange-5",
|
|
767
|
+
e.simulateOpen ? "border-orange-20 bg-orange-5" : "border-orange-10",
|
|
768
|
+
{ hide: e.quickReplyOpen }
|
|
769
|
+
]),
|
|
770
|
+
style: { color: "#e67e22" },
|
|
771
|
+
onClick: s[17] || (s[17] = (...o) => e.toggleSimulateOpen && e.toggleSimulateOpen(...o))
|
|
772
|
+
}, a(e.$t("HC_SIMULATE")), 3)) : t("", !0),
|
|
773
|
+
n("div", ze, [
|
|
774
|
+
r(v, {
|
|
775
|
+
id: "comment-field",
|
|
776
|
+
modelValue: e.comment,
|
|
777
|
+
"onUpdate:modelValue": s[18] || (s[18] = (o) => e.comment = o),
|
|
778
|
+
"textarea-class": "text-sm pr-5 border-gray-12 w-full",
|
|
779
|
+
placeholder: e.quickReplyOpen ? e.$t("HC_SEARCH_REPLIES") : e.$t("HC_WRITE_A_MESSAGE"),
|
|
780
|
+
rows: 1,
|
|
781
|
+
"control-class": "w-full",
|
|
782
|
+
onKeydown: H(e.sendChatMessage, ["enter"])
|
|
783
|
+
}, null, 8, ["modelValue", "placeholder", "onKeydown"]),
|
|
784
|
+
n("div", {
|
|
785
|
+
id: "hidden-text",
|
|
786
|
+
class: "text-sm",
|
|
787
|
+
innerHTML: e.comment
|
|
788
|
+
}, null, 8, Ye),
|
|
789
|
+
r(p, {
|
|
790
|
+
id: "quick-reply-trigger",
|
|
791
|
+
icon: "comment-lines",
|
|
792
|
+
class: "cursor-pointer !absolute top-1/2 -translate-y-1/2 mb-1",
|
|
793
|
+
color: e.quickReplyOpen ? "blue-20" : "inkwell-0",
|
|
794
|
+
size: "sm",
|
|
795
|
+
type: e.quickReplyOpen ? "fill" : "outline",
|
|
796
|
+
onClick: e.toggleQuickReply
|
|
797
|
+
}, null, 8, ["color", "type", "onClick"]),
|
|
798
|
+
r(T, {
|
|
799
|
+
id: "send-comment",
|
|
800
|
+
disabled: !e.comment || e.quickReplyOpen || e.loading.sendingMessage,
|
|
801
|
+
loading: e.loading.sendingMessage,
|
|
802
|
+
"use-loading-spinner": !0,
|
|
803
|
+
class: "!absolute top-1/2 -translate-y-1/2 px-2 mr-2 !text-sm",
|
|
804
|
+
size: "xsm",
|
|
805
|
+
status: "link",
|
|
806
|
+
onClick: e.sendChatMessage
|
|
807
|
+
}, {
|
|
808
|
+
default: d(() => [
|
|
809
|
+
k(a(e.$t("HC_SEND")), 1)
|
|
810
|
+
]),
|
|
811
|
+
_: 1
|
|
812
|
+
}, 8, ["disabled", "loading", "onClick"])
|
|
813
|
+
])
|
|
814
|
+
])
|
|
815
|
+
])
|
|
816
|
+
])
|
|
817
|
+
]),
|
|
818
|
+
_: 1
|
|
819
|
+
}, 8, ["modelValue"])) : t("", !0)
|
|
820
|
+
], 2),
|
|
821
|
+
n("div", {
|
|
822
|
+
id: "add-ticket",
|
|
823
|
+
class: u([
|
|
824
|
+
"add-ticket",
|
|
825
|
+
{
|
|
826
|
+
"overflow-hidden": !e.showCreateRequest,
|
|
827
|
+
open: e.showCreateRequest
|
|
828
|
+
}
|
|
829
|
+
])
|
|
830
|
+
}, [
|
|
831
|
+
r(b, {
|
|
832
|
+
class: "text-base section-header mb-3",
|
|
833
|
+
align: "left",
|
|
834
|
+
color: "inkwell-30"
|
|
341
835
|
}, {
|
|
342
836
|
default: d(() => [
|
|
343
|
-
|
|
837
|
+
n("div", Pe, [
|
|
838
|
+
n("div", Be, a(e.$t("HC_ACTION")), 1)
|
|
839
|
+
])
|
|
344
840
|
]),
|
|
345
841
|
_: 1
|
|
346
|
-
},
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
842
|
+
}),
|
|
843
|
+
n("form", {
|
|
844
|
+
class: "flex flex-col",
|
|
845
|
+
onSubmit: s[51] || (s[51] = E((...o) => e.onCreateRequestSubmit && e.onCreateRequestSubmit(...o), ["prevent"]))
|
|
846
|
+
}, [
|
|
847
|
+
e.showCreateRequest ? (l(), i("div", Ke, [
|
|
848
|
+
n("div", We, [
|
|
849
|
+
n("div", je, [
|
|
850
|
+
r(m, {
|
|
851
|
+
id: "todo-type",
|
|
852
|
+
"model-value": e.requestType,
|
|
853
|
+
options: e.todoOptions,
|
|
854
|
+
placeholder: e.$t("HC_ACTION_TYPE"),
|
|
855
|
+
"floating-label": "",
|
|
856
|
+
required: "",
|
|
857
|
+
"onUpdate:modelValue": s[20] || (s[20] = (o) => e.onSelectToDo(o))
|
|
858
|
+
}, null, 8, ["model-value", "options", "placeholder"])
|
|
859
|
+
]),
|
|
860
|
+
e.requestType && e.requestType.id === "room_notice" ? (l(), i("div", Fe, [
|
|
861
|
+
r(m, {
|
|
862
|
+
id: "todo-notice-issue",
|
|
863
|
+
"model-value": e.roomNotice.issue,
|
|
864
|
+
options: e.itemOptionsList,
|
|
865
|
+
disabled: !e.itemOptionsList.length && !e.loading.actionItems,
|
|
866
|
+
loading: e.loading.actionItems,
|
|
867
|
+
placeholder: e.$t("HC_ITEM"),
|
|
868
|
+
"floating-label": "",
|
|
869
|
+
required: "",
|
|
870
|
+
"onUpdate:modelValue": s[21] || (s[21] = (o) => e.roomNotice.issue = o)
|
|
871
|
+
}, null, 8, ["model-value", "options", "disabled", "loading", "placeholder"])
|
|
872
|
+
])) : t("", !0),
|
|
873
|
+
e.requestType && e.requestType.id === "room_notice" && e.roomNotice.issue ? (l(), i("div", Ze, [
|
|
874
|
+
r(w, {
|
|
875
|
+
id: "todo-notice-start-date",
|
|
876
|
+
"model-value": e.roomNotice.startDate,
|
|
877
|
+
"is-today-min": !0,
|
|
878
|
+
"property-timezone": e.propertyTimeZone,
|
|
879
|
+
locale: e.locale,
|
|
880
|
+
placeholder: e.$t("HC_START_DATE"),
|
|
881
|
+
format: "DD-MMM-YYYY",
|
|
882
|
+
"calendar-classes": "mt-0",
|
|
883
|
+
class: "icon-right",
|
|
884
|
+
"input-classes": "datepicker-md text-inkwell-40",
|
|
885
|
+
"wrapper-classes": "ui-overhaul",
|
|
886
|
+
"floating-label": "",
|
|
887
|
+
required: "",
|
|
888
|
+
"onUpdate:modelValue": s[22] || (s[22] = (o) => e.roomNotice.startDate = o)
|
|
889
|
+
}, null, 8, ["model-value", "property-timezone", "locale", "placeholder"])
|
|
890
|
+
])) : t("", !0),
|
|
891
|
+
e.requestType && e.requestType.id === "room_notice" && e.roomNotice.issue ? (l(), i("div", Qe, [
|
|
892
|
+
r(w, {
|
|
893
|
+
id: "todo-notice-end-date",
|
|
894
|
+
"model-value": e.roomNotice.endDate,
|
|
895
|
+
"is-today-min": !0,
|
|
896
|
+
"minimum-date": e.roomNotice.startDate,
|
|
897
|
+
"property-timezone": e.propertyTimeZone,
|
|
898
|
+
locale: e.locale,
|
|
899
|
+
placeholder: e.$t("HC_END_DATE"),
|
|
900
|
+
format: "DD-MMM-YYYY",
|
|
901
|
+
"calendar-classes": "mt-0",
|
|
902
|
+
class: "icon-right",
|
|
903
|
+
"input-classes": "datepicker-md text-inkwell-40",
|
|
904
|
+
"wrapper-classes": "ui-overhaul",
|
|
905
|
+
"floating-label": "",
|
|
906
|
+
required: "",
|
|
907
|
+
"onUpdate:modelValue": s[23] || (s[23] = (o) => e.roomNotice.endDate = o)
|
|
908
|
+
}, null, 8, ["model-value", "minimum-date", "property-timezone", "locale", "placeholder"])
|
|
909
|
+
])) : t("", !0),
|
|
910
|
+
e.requestType && e.requestType.id === "room_notice" && e.roomNotice.issue ? (l(), i("div", Je, [
|
|
911
|
+
r(v, {
|
|
912
|
+
id: "todo-notice-notes",
|
|
913
|
+
modelValue: e.roomNotice.notes,
|
|
914
|
+
"onUpdate:modelValue": s[24] || (s[24] = (o) => e.roomNotice.notes = o),
|
|
915
|
+
placeholder: e.$t("HC_WRITE_A_MESSAGE"),
|
|
916
|
+
"textarea-class": "text-inkwell-30 border-gray-12 mb-2",
|
|
917
|
+
"control-class": "w-full",
|
|
918
|
+
rows: 2,
|
|
919
|
+
"floating-label": ""
|
|
920
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
921
|
+
])) : t("", !0),
|
|
922
|
+
e.requestType && e.requestType.id === "complaint" ? (l(), i("div", Xe, [
|
|
923
|
+
r(m, {
|
|
924
|
+
id: "todo-complaint-problem",
|
|
925
|
+
"model-value": e.complaint.problem,
|
|
926
|
+
options: e.itemOptionsList,
|
|
927
|
+
disabled: !e.itemOptionsList.length && !e.loading.actionItems,
|
|
928
|
+
loading: e.loading.actionItems,
|
|
929
|
+
multiple: !1,
|
|
930
|
+
placeholder: e.$t("HC_PROBLEM"),
|
|
931
|
+
"floating-label": "",
|
|
932
|
+
required: "",
|
|
933
|
+
"onUpdate:modelValue": s[25] || (s[25] = (o) => e.complaint.problem = o)
|
|
934
|
+
}, null, 8, ["model-value", "options", "disabled", "loading", "placeholder"])
|
|
935
|
+
])) : t("", !0),
|
|
936
|
+
e.requestType && e.requestType.id === "complaint" && e.complaint.problem ? (l(), i("div", _e, [
|
|
937
|
+
r(C, {
|
|
938
|
+
id: "guest-name",
|
|
939
|
+
modelValue: e.complaint.guestName,
|
|
940
|
+
"onUpdate:modelValue": s[26] || (s[26] = (o) => e.complaint.guestName = o),
|
|
941
|
+
placeholder: e.$t("HC_GUEST_NAME"),
|
|
942
|
+
"control-class": "w-full",
|
|
943
|
+
classes: "text-inkwell-30 border-gray-12 ui-overhaul",
|
|
944
|
+
"floating-label": "",
|
|
945
|
+
required: ""
|
|
946
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
947
|
+
])) : t("", !0),
|
|
948
|
+
e.requestType && e.requestType.id === "complaint" && e.complaint.problem ? (l(), i("div", xe, [
|
|
949
|
+
r(C, {
|
|
950
|
+
id: "guest-phone",
|
|
951
|
+
modelValue: e.complaint.guestPhone,
|
|
952
|
+
"onUpdate:modelValue": s[27] || (s[27] = (o) => e.complaint.guestPhone = o),
|
|
953
|
+
placeholder: e.$t("HC_GUEST_PHONE_NUMBER"),
|
|
954
|
+
classes: "text-inkwell-40 border-gray-12 ui-overhaul",
|
|
955
|
+
"floating-label": ""
|
|
956
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
957
|
+
])) : t("", !0),
|
|
958
|
+
e.requestType && e.requestType.id === "complaint" && e.complaint.problem ? (l(), i("div", eo, [
|
|
959
|
+
r(C, {
|
|
960
|
+
id: "guest-email",
|
|
961
|
+
modelValue: e.complaint.guestEmail,
|
|
962
|
+
"onUpdate:modelValue": s[28] || (s[28] = (o) => e.complaint.guestEmail = o),
|
|
963
|
+
placeholder: e.$t("HC_GUEST_EMAIL"),
|
|
964
|
+
classes: "text-inkwell-40 border-gray-12 ui-overhaul",
|
|
965
|
+
"floating-label": ""
|
|
966
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
967
|
+
])) : t("", !0),
|
|
968
|
+
e.requestType && e.requestType.id === "complaint" && e.complaint.problem ? (l(), i("div", oo, [
|
|
969
|
+
r(C, {
|
|
970
|
+
id: "guest-loyalty",
|
|
971
|
+
modelValue: e.complaint.guestLoyalty,
|
|
972
|
+
"onUpdate:modelValue": s[29] || (s[29] = (o) => e.complaint.guestLoyalty = o),
|
|
973
|
+
placeholder: e.$t("HC_GUEST_LOYALTY"),
|
|
974
|
+
classes: "text-inkwell-40 border-gray-12 ui-overhaul",
|
|
975
|
+
"floating-label": ""
|
|
976
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
977
|
+
])) : t("", !0),
|
|
978
|
+
e.requestType && e.requestType.id === "complaint" && e.complaint.problem ? (l(), i("div", so, [
|
|
979
|
+
r(m, {
|
|
980
|
+
id: "todo-complaint-mood",
|
|
981
|
+
"model-value": e.complaint.guestMood,
|
|
982
|
+
options: e.moodOptions,
|
|
983
|
+
disabled: !e.moodOptions.length,
|
|
984
|
+
placeholder: e.$t("HC_GUEST_MOOD"),
|
|
985
|
+
"floating-label": "",
|
|
986
|
+
required: "",
|
|
987
|
+
"onUpdate:modelValue": s[30] || (s[30] = (o) => e.complaint.guestMood = o)
|
|
988
|
+
}, null, 8, ["model-value", "options", "disabled", "placeholder"])
|
|
989
|
+
])) : t("", !0),
|
|
990
|
+
e.requestType && e.requestType.id === "complaint" && e.complaint.problem ? (l(), i("div", lo, [
|
|
991
|
+
r(w, {
|
|
992
|
+
id: "todo-complaint-check-in",
|
|
993
|
+
"model-value": e.complaint.checkInDate,
|
|
994
|
+
"is-today-min": !1,
|
|
995
|
+
"property-timezone": e.propertyTimeZone,
|
|
996
|
+
locale: e.locale,
|
|
997
|
+
placeholder: e.$t("HC_CHECK_IN_DATE"),
|
|
998
|
+
format: "DD-MMM-YYYY",
|
|
999
|
+
"calendar-classes": "mt-0",
|
|
1000
|
+
class: "icon-right",
|
|
1001
|
+
"input-classes": "datepicker-md text-inkwell-40",
|
|
1002
|
+
"wrapper-classes": "ui-overhaul",
|
|
1003
|
+
"floating-label": "",
|
|
1004
|
+
required: "",
|
|
1005
|
+
"onUpdate:modelValue": s[31] || (s[31] = (o) => e.complaint.checkInDate = o)
|
|
1006
|
+
}, null, 8, ["model-value", "property-timezone", "locale", "placeholder"])
|
|
1007
|
+
])) : t("", !0),
|
|
1008
|
+
e.requestType && e.requestType.id === "complaint" && e.complaint.problem ? (l(), i("div", io, [
|
|
1009
|
+
r(w, {
|
|
1010
|
+
id: "todo-complaint-check-out",
|
|
1011
|
+
"model-value": e.complaint.checkOutDate,
|
|
1012
|
+
"is-today-min": !1,
|
|
1013
|
+
"minimum-date": e.complaint.checkInDate,
|
|
1014
|
+
"property-timezone": e.propertyTimeZone,
|
|
1015
|
+
locale: e.locale,
|
|
1016
|
+
placeholder: e.$t("HC_CHECK_OUT_DATE"),
|
|
1017
|
+
format: "DD-MMM-YYYY",
|
|
1018
|
+
"calendar-classes": "mt-0",
|
|
1019
|
+
class: "icon-right",
|
|
1020
|
+
"input-classes": "datepicker-md text-inkwell-40",
|
|
1021
|
+
"wrapper-classes": "ui-overhaul",
|
|
1022
|
+
"floating-label": "",
|
|
1023
|
+
required: "",
|
|
1024
|
+
"onUpdate:modelValue": s[32] || (s[32] = (o) => e.complaint.checkOutDate = o)
|
|
1025
|
+
}, null, 8, ["model-value", "minimum-date", "property-timezone", "locale", "placeholder"])
|
|
1026
|
+
])) : t("", !0),
|
|
1027
|
+
e.requestType && e.requestType.id === "complaint" && e.complaint.problem ? (l(), i("div", to, [
|
|
1028
|
+
r(v, {
|
|
1029
|
+
id: "todo-complaint-notes",
|
|
1030
|
+
modelValue: e.complaint.notes,
|
|
1031
|
+
"onUpdate:modelValue": s[33] || (s[33] = (o) => e.complaint.notes = o),
|
|
1032
|
+
placeholder: e.$t("HC_WRITE_A_MESSAGE"),
|
|
1033
|
+
"textarea-class": "text-inkwell-30 border-gray-12 mb-2",
|
|
1034
|
+
"control-class": "w-full",
|
|
1035
|
+
rows: 2,
|
|
1036
|
+
"floating-label": ""
|
|
1037
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
1038
|
+
])) : t("", !0),
|
|
1039
|
+
e.requestType && e.requestType.id === "work_order" ? (l(), i("div", ro, [
|
|
1040
|
+
r(m, {
|
|
1041
|
+
id: "todo-work-order-item",
|
|
1042
|
+
"model-value": e.workOrder.item,
|
|
1043
|
+
options: e.itemOptionsList,
|
|
1044
|
+
disabled: !e.itemOptionsList.length && !e.loading.actionItems,
|
|
1045
|
+
loading: e.loading.actionItems,
|
|
1046
|
+
"group-selectable": !1,
|
|
1047
|
+
placeholder: e.$t("HC_ITEM"),
|
|
1048
|
+
"group-label": "group",
|
|
1049
|
+
"group-values": "options",
|
|
1050
|
+
"floating-label": "",
|
|
1051
|
+
required: "",
|
|
1052
|
+
"onUpdate:modelValue": s[34] || (s[34] = (o) => e.workOrder.item = o)
|
|
1053
|
+
}, null, 8, ["model-value", "options", "disabled", "loading", "placeholder"])
|
|
1054
|
+
])) : t("", !0),
|
|
1055
|
+
e.requestType && e.requestType.id === "work_order" && e.workOrder.item ? (l(), i("div", no, [
|
|
1056
|
+
r(m, {
|
|
1057
|
+
id: "todo-work-order-issue",
|
|
1058
|
+
"model-value": e.workOrder.issue,
|
|
1059
|
+
options: e.workOrderIssues,
|
|
1060
|
+
disabled: !e.workOrderIssues.length,
|
|
1061
|
+
placeholder: e.$t("HC_ISSUE"),
|
|
1062
|
+
"floating-label": "",
|
|
1063
|
+
required: "",
|
|
1064
|
+
"onUpdate:modelValue": s[35] || (s[35] = (o) => e.workOrder.issue = o)
|
|
1065
|
+
}, null, 8, ["model-value", "options", "disabled", "placeholder"])
|
|
1066
|
+
])) : t("", !0),
|
|
1067
|
+
e.requestType && e.requestType.id === "work_order" && e.workOrder.item && e.workOrder.issue ? (l(), i("div", ao, [
|
|
1068
|
+
r(m, {
|
|
1069
|
+
id: "todo-work-order-requested-by",
|
|
1070
|
+
"model-value": e.workOrder.requestedBy,
|
|
1071
|
+
options: e.requestedByOptions,
|
|
1072
|
+
placeholder: e.$t("HC_REQUESTED_BY"),
|
|
1073
|
+
"floating-label": "",
|
|
1074
|
+
required: "",
|
|
1075
|
+
"onUpdate:modelValue": s[36] || (s[36] = (o) => e.workOrder.requestedBy = o)
|
|
1076
|
+
}, null, 8, ["model-value", "options", "placeholder"])
|
|
1077
|
+
])) : t("", !0),
|
|
1078
|
+
e.requestType && e.requestType.id === "work_order" && e.workOrder.item && e.workOrder.issue ? (l(), i("div", uo, [
|
|
1079
|
+
r(m, {
|
|
1080
|
+
id: "todo-work-order-assign-type",
|
|
1081
|
+
"model-value": e.workOrder.assignType,
|
|
1082
|
+
options: e.assignTypes,
|
|
1083
|
+
placeholder: e.$t("HC_ASSIGN_TYPE"),
|
|
1084
|
+
"floating-label": "",
|
|
1085
|
+
required: "",
|
|
1086
|
+
"onUpdate:modelValue": s[37] || (s[37] = (o) => e.workOrder.assignType = o)
|
|
1087
|
+
}, null, 8, ["model-value", "options", "placeholder"])
|
|
1088
|
+
])) : t("", !0),
|
|
1089
|
+
e.requestType && e.requestType.id === "work_order" && e.workOrder.item && e.workOrder.issue ? (l(), i("div", po, [
|
|
1090
|
+
e.requestType && e.requestType.id === "work_order" && e.workOrder.item && e.workOrder.issue && e.workOrder.assignType && e.workOrder.assignType.id === 1 ? (l(), y(m, {
|
|
1091
|
+
key: 0,
|
|
1092
|
+
id: "todo-work-order-assign-to",
|
|
1093
|
+
"model-value": e.workOrder.department,
|
|
1094
|
+
options: e.departments,
|
|
1095
|
+
disabled: !e.departments.length,
|
|
1096
|
+
placeholder: e.$t("HC_ASSIGN_TO"),
|
|
1097
|
+
"floating-label": "",
|
|
1098
|
+
required: "",
|
|
1099
|
+
"onUpdate:modelValue": s[38] || (s[38] = (o) => e.workOrder.department = o)
|
|
1100
|
+
}, null, 8, ["model-value", "options", "disabled", "placeholder"])) : t("", !0),
|
|
1101
|
+
e.requestType && e.requestType.id === "work_order" && e.workOrder.item && e.workOrder.issue && e.workOrder.assignType && e.workOrder.assignType.id === 2 ? (l(), y(m, {
|
|
1102
|
+
key: 1,
|
|
1103
|
+
id: "todo-work-order-assign-to",
|
|
1104
|
+
"model-value": e.workOrder.person,
|
|
1105
|
+
options: e.departmentUsers,
|
|
1106
|
+
disabled: !e.departmentUsers.length,
|
|
1107
|
+
"group-selectable": !1,
|
|
1108
|
+
placeholder: e.$t("HC_ASSIGN_TO"),
|
|
1109
|
+
"group-label": "group",
|
|
1110
|
+
"group-values": "options",
|
|
1111
|
+
"floating-label": "",
|
|
1112
|
+
required: "",
|
|
1113
|
+
"onUpdate:modelValue": s[39] || (s[39] = (o) => e.workOrder.person = o)
|
|
1114
|
+
}, null, 8, ["model-value", "options", "disabled", "placeholder"])) : t("", !0)
|
|
1115
|
+
])) : t("", !0),
|
|
1116
|
+
e.requestType && e.requestType.id === "work_order" && e.workOrder.item && e.workOrder.issue ? (l(), i("div", mo, [
|
|
1117
|
+
r(w, {
|
|
1118
|
+
id: "todo-work-order-due",
|
|
1119
|
+
"model-value": e.workOrder.due,
|
|
1120
|
+
"is-today-min": !0,
|
|
1121
|
+
"property-timezone": e.propertyTimeZone,
|
|
1122
|
+
locale: e.locale,
|
|
1123
|
+
placeholder: e.$t("HC_DUE_DATE"),
|
|
1124
|
+
format: "DD-MMM-YYYY",
|
|
1125
|
+
"calendar-classes": "mt-0",
|
|
1126
|
+
class: "icon-right",
|
|
1127
|
+
"input-classes": "datepicker-md text-inkwell-40",
|
|
1128
|
+
"wrapper-classes": "ui-overhaul",
|
|
1129
|
+
"floating-label": "",
|
|
1130
|
+
required: "",
|
|
1131
|
+
"onUpdate:modelValue": s[40] || (s[40] = (o) => e.workOrder.due = o)
|
|
1132
|
+
}, null, 8, ["model-value", "property-timezone", "locale", "placeholder"])
|
|
1133
|
+
])) : t("", !0),
|
|
1134
|
+
e.requestType && e.requestType.id === "work_order" && e.workOrder.item && e.workOrder.issue ? (l(), i("div", go, [
|
|
1135
|
+
r(v, {
|
|
1136
|
+
id: "todo-work-order-notes",
|
|
1137
|
+
modelValue: e.workOrder.notes,
|
|
1138
|
+
"onUpdate:modelValue": s[41] || (s[41] = (o) => e.workOrder.notes = o),
|
|
1139
|
+
placeholder: e.$t("HC_WRITE_A_MESSAGE"),
|
|
1140
|
+
"textarea-class": "text-inkwell-30 border-gray-12 mb-2",
|
|
1141
|
+
"control-class": "w-full",
|
|
1142
|
+
rows: 2,
|
|
1143
|
+
"floating-label": ""
|
|
1144
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
1145
|
+
])) : t("", !0),
|
|
1146
|
+
e.requestType && e.requestType.id === "request" ? (l(), i("div", yo, [
|
|
1147
|
+
r(m, {
|
|
1148
|
+
id: "todo-request-item",
|
|
1149
|
+
"model-value": e.request.item,
|
|
1150
|
+
options: e.itemOptionsList,
|
|
1151
|
+
disabled: !e.itemOptionsList.length && !e.loading.actionItems,
|
|
1152
|
+
loading: e.loading.actionItems,
|
|
1153
|
+
placeholder: e.$t("HC_ITEM"),
|
|
1154
|
+
"floating-label": "",
|
|
1155
|
+
required: "",
|
|
1156
|
+
"onUpdate:modelValue": s[42] || (s[42] = (o) => e.request.item = o)
|
|
1157
|
+
}, null, 8, ["model-value", "options", "disabled", "loading", "placeholder"])
|
|
1158
|
+
])) : t("", !0),
|
|
1159
|
+
e.requestType && e.requestType.id === "request" && e.request.item ? (l(), i("div", ko, [
|
|
1160
|
+
r(m, {
|
|
1161
|
+
id: "todo-request-requested-by",
|
|
1162
|
+
"model-value": e.request.requestedBy,
|
|
1163
|
+
options: e.requestedByOptions,
|
|
1164
|
+
placeholder: e.$t("HC_REQUESTED_BY"),
|
|
1165
|
+
"floating-label": "",
|
|
1166
|
+
required: "",
|
|
1167
|
+
"onUpdate:modelValue": s[43] || (s[43] = (o) => e.request.requestedBy = o)
|
|
1168
|
+
}, null, 8, ["model-value", "options", "placeholder"])
|
|
1169
|
+
])) : t("", !0),
|
|
1170
|
+
e.requestType && e.requestType.id === "request" && e.request.item ? (l(), i("div", ho, [
|
|
1171
|
+
r(w, {
|
|
1172
|
+
id: "todo-request-due",
|
|
1173
|
+
"model-value": e.request.due,
|
|
1174
|
+
"is-today-min": !0,
|
|
1175
|
+
"property-timezone": e.propertyTimeZone,
|
|
1176
|
+
locale: e.locale,
|
|
1177
|
+
placeholder: e.$t("HC_DUE_DATE"),
|
|
1178
|
+
format: "DD-MMM-YYYY",
|
|
1179
|
+
"calendar-classes": "mt-0",
|
|
1180
|
+
class: "icon-right",
|
|
1181
|
+
"input-classes": "datepicker-md text-inkwell-40",
|
|
1182
|
+
"wrapper-classes": "ui-overhaul",
|
|
1183
|
+
"floating-label": "",
|
|
1184
|
+
required: "",
|
|
1185
|
+
"onUpdate:modelValue": s[44] || (s[44] = (o) => e.request.due = o)
|
|
1186
|
+
}, null, 8, ["model-value", "property-timezone", "locale", "placeholder"])
|
|
1187
|
+
])) : t("", !0),
|
|
1188
|
+
e.requestType && e.requestType.id === "request" && e.request.item ? (l(), i("div", vo, [
|
|
1189
|
+
r(m, {
|
|
1190
|
+
id: "todo-request-assign-type",
|
|
1191
|
+
"model-value": e.request.assignType,
|
|
1192
|
+
options: e.assignTypes,
|
|
1193
|
+
placeholder: e.$t("HC_ASSIGN_TYPE"),
|
|
1194
|
+
"floating-label": "",
|
|
1195
|
+
required: "",
|
|
1196
|
+
"onUpdate:modelValue": s[45] || (s[45] = (o) => e.request.assignType = o)
|
|
1197
|
+
}, null, 8, ["model-value", "options", "placeholder"])
|
|
1198
|
+
])) : t("", !0),
|
|
1199
|
+
e.requestType && e.requestType.id === "request" && e.request.item ? (l(), i("div", wo, [
|
|
1200
|
+
e.requestType && e.requestType.id === "request" && e.request.item && e.request.assignType && e.request.assignType.id === 1 ? (l(), y(m, {
|
|
1201
|
+
key: 0,
|
|
1202
|
+
id: "todo-request-assign-to",
|
|
1203
|
+
"model-value": e.request.department,
|
|
1204
|
+
options: e.departments,
|
|
1205
|
+
disabled: !e.departments.length,
|
|
1206
|
+
placeholder: e.$t("HC_ASSIGN_TO"),
|
|
1207
|
+
"floating-label": "",
|
|
1208
|
+
required: "",
|
|
1209
|
+
"onUpdate:modelValue": s[46] || (s[46] = (o) => e.request.department = o)
|
|
1210
|
+
}, null, 8, ["model-value", "options", "disabled", "placeholder"])) : t("", !0),
|
|
1211
|
+
e.requestType && e.requestType.id === "request" && e.request.item && e.request.assignType && e.request.assignType.id === 2 ? (l(), y(m, {
|
|
1212
|
+
key: 1,
|
|
1213
|
+
id: "todo-request-assign-to",
|
|
1214
|
+
"model-value": e.request.person,
|
|
1215
|
+
options: e.departmentUsers,
|
|
1216
|
+
disabled: !e.departmentUsers.length,
|
|
1217
|
+
"group-selectable": !1,
|
|
1218
|
+
placeholder: e.$t("HC_ASSIGN_TO"),
|
|
1219
|
+
"group-label": "group",
|
|
1220
|
+
"group-values": "options",
|
|
1221
|
+
"floating-label": "",
|
|
1222
|
+
required: "",
|
|
1223
|
+
"onUpdate:modelValue": s[47] || (s[47] = (o) => e.request.person = o)
|
|
1224
|
+
}, null, 8, ["model-value", "options", "disabled", "placeholder"])) : t("", !0)
|
|
1225
|
+
])) : t("", !0),
|
|
1226
|
+
e.requestType && e.requestType.id === "request" && e.request.item && e.allowWhenWhere ? (l(), i("div", fo, [
|
|
1227
|
+
r(m, {
|
|
1228
|
+
id: "todo-request-when",
|
|
1229
|
+
"model-value": e.request.when,
|
|
1230
|
+
options: e.whenOptions,
|
|
1231
|
+
disabled: !e.whenOptions.length,
|
|
1232
|
+
placeholder: e.$t("HC_SELECT_WHEN"),
|
|
1233
|
+
"floating-label": "",
|
|
1234
|
+
"onUpdate:modelValue": s[48] || (s[48] = (o) => e.request.when = o)
|
|
1235
|
+
}, null, 8, ["model-value", "options", "disabled", "placeholder"])
|
|
1236
|
+
])) : t("", !0),
|
|
1237
|
+
e.requestType && e.requestType.id === "request" && e.request.item && e.allowWhenWhere ? (l(), i("div", qo, [
|
|
1238
|
+
r(m, {
|
|
1239
|
+
id: "todo-request-where",
|
|
1240
|
+
"model-value": e.request.where,
|
|
1241
|
+
options: e.whereOptions,
|
|
1242
|
+
disabled: !e.whereOptions.length,
|
|
1243
|
+
placeholder: e.$t("HC_SELECT_WHERE"),
|
|
1244
|
+
"floating-label": "",
|
|
1245
|
+
"onUpdate:modelValue": s[49] || (s[49] = (o) => e.request.where = o)
|
|
1246
|
+
}, null, 8, ["model-value", "options", "disabled", "placeholder"])
|
|
1247
|
+
])) : t("", !0),
|
|
1248
|
+
e.requestType && e.requestType.id === "request" && e.request.item ? (l(), i("div", bo, [
|
|
1249
|
+
r(v, {
|
|
1250
|
+
id: "todo-request-notes",
|
|
1251
|
+
modelValue: e.request.notes,
|
|
1252
|
+
"onUpdate:modelValue": s[50] || (s[50] = (o) => e.request.notes = o),
|
|
1253
|
+
placeholder: e.$t("HC_WRITE_A_MESSAGE"),
|
|
1254
|
+
"textarea-class": "text-inkwell-30 border-gray-12 mb-2",
|
|
1255
|
+
"control-class": "w-full",
|
|
1256
|
+
rows: 2,
|
|
1257
|
+
"floating-label": ""
|
|
1258
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
1259
|
+
])) : t("", !0)
|
|
1260
|
+
])
|
|
1261
|
+
])) : t("", !0),
|
|
1262
|
+
n("div", To, [
|
|
1263
|
+
r(T, {
|
|
1264
|
+
status: "secondary",
|
|
1265
|
+
onClick: E(e.closeRequest, ["prevent"])
|
|
1266
|
+
}, {
|
|
1267
|
+
default: d(() => [
|
|
1268
|
+
k(a(e.$t("HC_BACK")), 1)
|
|
1269
|
+
]),
|
|
1270
|
+
_: 1
|
|
1271
|
+
}, 8, ["onClick"]),
|
|
1272
|
+
r(T, {
|
|
1273
|
+
disabled: !e.validateToDo,
|
|
1274
|
+
loading: e.requestLoading,
|
|
1275
|
+
"use-loading-spinner": !0,
|
|
1276
|
+
onClick: e.onCreateRequestSubmit
|
|
1277
|
+
}, {
|
|
1278
|
+
default: d(() => [
|
|
1279
|
+
k(a(e.$t("HC_POST")), 1)
|
|
1280
|
+
]),
|
|
1281
|
+
_: 1
|
|
1282
|
+
}, 8, ["disabled", "loading", "onClick"])
|
|
1283
|
+
])
|
|
1284
|
+
], 32)
|
|
1285
|
+
], 2),
|
|
1286
|
+
e.loading.pms ? (l(), i("div", Co)) : !e.loading.pms && e.roomDetailsData.updatedAt ? (l(), i("div", co, [
|
|
1287
|
+
r(p, {
|
|
1288
|
+
class: "flex-shrink-1 mr-2",
|
|
1289
|
+
size: "sm",
|
|
1290
|
+
color: "inkwell-0",
|
|
1291
|
+
icon: "clock-alarm",
|
|
1292
|
+
type: "outline"
|
|
1293
|
+
}),
|
|
1294
|
+
n("p", Oo, a(e.$t("HC_PMS_UPDATED")) + " " + a(e.DateTime.fromISO(
|
|
1295
|
+
e.roomDetailsData.updatedAt
|
|
1296
|
+
).toRelative({ locale: e.locale })), 1)
|
|
1297
|
+
])) : t("", !0)
|
|
1298
|
+
], 8, L)
|
|
1299
|
+
]),
|
|
1300
|
+
_: 3
|
|
1301
|
+
}, 8, ["model-value", "align", "position", "size", "teleport", "teleport-to", "close-on-scroll-out-of-view", "scroll-into-view", "scroll-into-view-padding"])
|
|
1302
|
+
], 40, A)) : t("", !0);
|
|
367
1303
|
}
|
|
368
|
-
const
|
|
1304
|
+
const Io = /* @__PURE__ */ I(U, [["render", Eo]]);
|
|
369
1305
|
export {
|
|
370
|
-
|
|
1306
|
+
Io as default
|
|
371
1307
|
};
|