@quoreadmin/ui 1.6.8 → 1.7.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/index13.js +7 -7
- package/dist/index140.js +559 -409
- package/dist/index175.js +4 -4
- package/dist/index182.js +7 -7
- package/dist/index187.js +17 -17
- package/dist/index190.js +21 -21
- package/dist/index191.js +1 -1
- package/dist/index192.js +1 -1
- package/dist/index195.js +2 -2
- package/dist/index197.js +14 -14
- package/dist/index198.js +1 -1
- package/dist/index199.js +1 -1
- package/dist/index200.js +3 -3
- package/dist/index201.js +6 -6
- package/dist/index208.js +2 -2
- package/dist/index209.js +1 -1
- package/dist/index210.js +1 -1
- package/dist/index211.js +1 -1
- package/dist/index212.js +1 -1
- package/dist/index213.js +4 -4
- package/dist/index215.js +4 -4
- package/dist/index218.js +1 -1
- package/dist/index219.js +1 -1
- package/dist/index222.js +1 -1
- package/dist/index223.js +1 -1
- package/dist/index224.js +1 -1
- package/dist/index225.js +1 -1
- package/dist/index226.js +1 -1
- package/dist/index227.js +159 -159
- package/dist/index228.js +228 -20
- package/dist/index229.js +36 -21
- package/dist/index230.js +9 -198
- package/dist/index231.js +140 -49
- package/dist/index232.js +20 -34
- package/dist/index233.js +21 -39
- package/dist/index234.js +198 -21
- package/dist/index235.js +69 -21
- package/dist/index236.js +34 -20
- package/dist/index237.js +27 -823
- package/dist/index238.js +21 -701
- package/dist/index239.js +22 -176
- package/dist/index240.js +13 -15
- package/dist/index241.js +836 -20
- package/dist/index242.js +701 -19
- package/dist/index243.js +176 -3
- package/dist/index244.js +21 -186
- package/dist/index245.js +19 -132
- package/dist/index246.js +20 -1223
- package/dist/index247.js +3 -20
- package/dist/index248.js +186 -21
- package/dist/index249.js +132 -21
- package/dist/index250.js +1223 -29
- package/dist/index251.js +12 -12
- package/dist/index252.js +15 -13
- package/dist/index253.js +22 -2
- package/dist/index254.js +29 -2
- package/dist/index255.js +20 -3632
- package/dist/index256.js +20 -55
- package/dist/index257.js +2 -77
- package/dist/index258.js +2 -52
- package/dist/index259.js +3599 -182
- package/dist/index260.js +53 -8
- package/dist/index261.js +60 -40
- package/dist/index262.js +35 -44
- package/dist/index263.js +193 -32
- package/dist/index264.js +9 -74
- package/dist/index265.js +38 -704
- package/dist/index266.js +44 -22
- package/dist/index267.js +36 -46
- package/dist/index268.js +74 -10
- package/dist/index269.js +698 -680
- package/dist/index270.js +37 -818
- package/dist/index271.js +63 -160
- package/dist/index272.js +10 -227
- package/dist/index273.js +704 -36
- package/dist/index274.js +819 -9
- package/dist/index279.js +3 -2
- package/dist/index280.js +25 -77
- package/dist/index281.js +2 -3
- package/dist/index282.js +77 -25
- package/dist/index283.js +230 -49
- package/dist/index284.js +5 -25
- package/dist/index285.js +133 -21
- package/dist/index286.js +67 -21
- package/dist/index287.js +85 -14
- package/dist/index288.js +29 -17
- package/dist/index289.js +8 -22
- package/dist/index290.js +64 -1507
- package/dist/index291.js +3 -385
- package/dist/index292.js +2 -2731
- package/dist/index293.js +77 -80
- package/dist/index294.js +53 -3769
- package/dist/index295.js +4 -58
- package/dist/index296.js +4 -78
- package/dist/index297.js +178 -21
- package/dist/index298.js +56 -928
- package/dist/index299.js +75 -22
- package/dist/index300.js +53 -19
- package/dist/index301.js +18 -12
- package/dist/index302.js +21 -68
- package/dist/index303.js +21 -18
- package/dist/index304.js +11 -14
- package/dist/index305.js +17 -22
- package/dist/index306.js +23 -22
- package/dist/index307.js +68 -52
- package/dist/index308.js +22 -15
- package/dist/index309.js +923 -72
- package/dist/index310.js +22 -202
- package/dist/index311.js +20 -246
- package/dist/index312.js +19 -234
- package/dist/index313.js +68 -5
- package/dist/index314.js +18 -133
- package/dist/index315.js +19 -68
- package/dist/index316.js +20 -85
- package/dist/index317.js +21 -28
- package/dist/index318.js +62 -8
- package/dist/index319.js +1507 -64
- package/dist/index320.js +385 -3
- package/dist/index321.js +2731 -2
- package/dist/index322.js +80 -77
- package/dist/index323.js +3769 -53
- package/dist/index324.js +58 -4
- package/dist/index325.js +15 -5
- package/dist/index326.js +71 -166
- package/dist/index327.js +196 -57
- package/dist/index328.js +246 -75
- package/dist/index329.js +8 -36
- package/dist/index330.js +12 -8
- package/dist/index331.js +54 -12
- package/dist/index332.js +9 -52
- package/dist/index333.js +13 -11
- package/dist/index334.js +53 -9
- package/dist/index335.js +49 -55
- package/dist/index336.js +28 -49
- package/dist/index337.js +2 -31
- package/dist/index338.js +5 -2
- package/dist/index339.js +2 -5
- package/dist/index340.js +23 -2
- package/dist/index341.js +39 -21
- package/dist/index342.js +2 -41
- package/dist/index343.js +11 -2
- package/dist/index344.js +20 -11
- package/dist/index345.js +15 -18
- package/dist/index346.js +9 -16
- package/dist/index347.js +9 -9
- package/dist/index348.js +2 -10
- package/dist/index349.js +9 -2
- package/dist/index350.js +10 -9
- package/dist/index351.js +14 -10
- package/dist/index352.js +37 -14
- package/dist/index353.js +20 -19
- package/dist/index354.js +55 -19
- package/dist/index355.js +28 -63
- package/dist/index356.js +7 -37
- package/dist/index357.js +49 -18
- package/dist/index358.js +6 -56
- package/dist/index359.js +10 -27
- package/dist/index360.js +7 -7
- package/dist/index361.js +27 -51
- package/dist/index362.js +2 -6
- package/dist/index363.js +69 -11
- package/dist/index364.js +166 -6
- package/dist/index365.js +20 -28
- package/dist/index366.js +20 -2
- package/dist/index367.js +61 -67
- package/dist/index368.js +36 -166
- package/dist/index369.js +28 -98
- package/dist/index370.js +10 -90
- package/dist/index371.js +4 -17
- package/dist/index372.js +4 -98
- package/dist/index373.js +12 -30
- package/dist/index374.js +7 -11
- package/dist/index375.js +11 -3
- package/dist/index376.js +4 -3
- package/dist/index377.js +33 -13
- package/dist/index378.js +31 -7
- package/dist/index379.js +28 -12
- package/dist/index380.js +61 -5
- package/dist/index381.js +17 -33
- package/dist/index382.js +99 -29
- package/dist/index383.js +91 -28
- package/dist/index384.js +96 -59
- package/dist/index385.js +1 -1
- package/dist/index390.js +1 -1
- package/dist/index391.js +2 -2
- package/dist/index43.js +394 -282
- package/dist/src/components/room-details-popover/room-details-popover.d.ts +51 -4870
- package/package.json +1 -1
package/dist/index43.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as y, createElementBlock as t, createCommentVNode as i, openBlock as l, createVNode as r, withCtx as a, createElementVNode as n, normalizeClass as p, toDisplayString as d, createBlock as k, Fragment as
|
|
1
|
+
import U from "./index140.js";
|
|
2
|
+
import { resolveComponent as y, createElementBlock as t, createCommentVNode as i, openBlock as l, createVNode as r, withCtx as a, createElementVNode as n, normalizeClass as p, toDisplayString as d, createBlock as k, Fragment as q, renderList as c, createTextVNode as g, withKeys as V, withModifiers as E, mergeProps as R, toHandlerKey as D, renderSlot as A } from "vue";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import G from "./index62.js";
|
|
5
|
-
const
|
|
5
|
+
const M = ["id"], L = ["id"], I = ["id"], z = { class: "flex gap-3" }, P = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "animate-shimmer bg-gray-30 w-3/4 h-6 grow"
|
|
8
8
|
}, W = {
|
|
@@ -14,10 +14,10 @@ const I = ["id"], L = ["id"], M = ["id"], z = { class: "flex gap-3" }, P = {
|
|
|
14
14
|
}, ee = {
|
|
15
15
|
key: 1,
|
|
16
16
|
class: "flex flex-wrap items-center mb-3 gap-2"
|
|
17
|
-
},
|
|
17
|
+
}, se = {
|
|
18
18
|
key: 2,
|
|
19
19
|
class: "animate-shimmer bg-gray-30 w-full h-4 my-4"
|
|
20
|
-
},
|
|
20
|
+
}, oe = {
|
|
21
21
|
key: 3,
|
|
22
22
|
class: "flex flex-wrap items-center mb-4"
|
|
23
23
|
}, le = ["href"], te = { class: "shrink-0 mr-2 text-sm font-normal" }, ie = {
|
|
@@ -35,137 +35,155 @@ const I = ["id"], L = ["id"], M = ["id"], z = { class: "flex gap-3" }, P = {
|
|
|
35
35
|
}, ae = { class: "text-truncate text-inkwell-0" }, pe = { class: "grow text-inkwell-30" }, ue = {
|
|
36
36
|
key: 1,
|
|
37
37
|
class: "flex text-xs mb-2 stay-details-row"
|
|
38
|
-
}, me = { class: "text-truncate text-inkwell-0" }, ye = { class: "grow text-inkwell-30" }, ke = { class: "shrink-0 mr-2 text-sm font-normal" },
|
|
38
|
+
}, me = { class: "text-truncate text-inkwell-0" }, ye = { class: "grow text-inkwell-30" }, ke = { class: "shrink-0 mr-2 text-sm font-normal" }, ge = {
|
|
39
39
|
key: 0,
|
|
40
40
|
class: "animate-shimmer bg-gray-30 w-full h-6"
|
|
41
|
-
},
|
|
41
|
+
}, he = {
|
|
42
42
|
key: 1,
|
|
43
43
|
class: "open-tickets"
|
|
44
44
|
}, we = ["id"], qe = {
|
|
45
45
|
key: 2,
|
|
46
46
|
class: "text-center mx-auto font-normal"
|
|
47
|
-
},
|
|
47
|
+
}, ce = { class: "shrink-0 mr-2 text-sm font-normal" }, ve = {
|
|
48
48
|
key: 0,
|
|
49
49
|
class: "quick-replies"
|
|
50
|
-
},
|
|
50
|
+
}, Te = ["onClick"], fe = {
|
|
51
51
|
key: 1,
|
|
52
52
|
class: "text-inkwell-0 text-xxs text-center"
|
|
53
|
-
}, Ce = { class: "
|
|
53
|
+
}, Ce = { class: "chat-container" }, be = {
|
|
54
|
+
id: "comments-container",
|
|
55
|
+
class: "chat-messages"
|
|
56
|
+
}, Oe = {
|
|
57
|
+
key: 0,
|
|
58
|
+
class: "chat-separator"
|
|
59
|
+
}, Ee = { class: "chat-separator-text" }, $e = {
|
|
60
|
+
key: 0,
|
|
61
|
+
class: "chat-message-avatar"
|
|
62
|
+
}, Se = { class: "chat-message-content" }, He = { class: "chat-message-time" }, Ve = { class: "chat-message-bubble" }, De = {
|
|
63
|
+
key: 1,
|
|
64
|
+
class: "chat-message-avatar"
|
|
65
|
+
}, Ne = {
|
|
66
|
+
key: 0,
|
|
67
|
+
class: "chat-empty text-center py-4 text-inkwell-0 text-sm"
|
|
68
|
+
}, Ue = {
|
|
69
|
+
key: 0,
|
|
70
|
+
class: "simulate-panel"
|
|
71
|
+
}, Re = { class: "simulate-panel-header" }, Ae = { class: "simulate-panel-body" }, Ge = { class: "flex justify-end mt-2" }, Me = { class: "chat-input-area" }, Le = { class: "flex items-center gap-2" }, Ie = { class: "relative flex-1 min-w-0" }, ze = ["innerHTML"], Pe = { class: "flex items-center add-ticket-divider" }, We = { class: "grow flex items-center text-sm font-normal" }, Be = {
|
|
54
72
|
key: 0,
|
|
55
73
|
class: "grow"
|
|
56
|
-
},
|
|
74
|
+
}, Ke = { class: "grid grid-cols-2 gap-3" }, Ye = { class: "field" }, je = {
|
|
57
75
|
key: 0,
|
|
58
76
|
class: "field"
|
|
59
|
-
},
|
|
77
|
+
}, Fe = {
|
|
60
78
|
key: 1,
|
|
61
79
|
class: "field"
|
|
62
|
-
},
|
|
80
|
+
}, Ze = {
|
|
63
81
|
key: 2,
|
|
64
82
|
class: "field"
|
|
65
|
-
},
|
|
83
|
+
}, Qe = {
|
|
66
84
|
key: 3,
|
|
67
85
|
class: "field col-span-2"
|
|
68
|
-
},
|
|
86
|
+
}, Je = {
|
|
69
87
|
key: 4,
|
|
70
88
|
class: "field"
|
|
71
|
-
},
|
|
89
|
+
}, Xe = {
|
|
72
90
|
key: 5,
|
|
73
91
|
class: "field col-span-2"
|
|
74
|
-
},
|
|
92
|
+
}, _e = {
|
|
75
93
|
key: 6,
|
|
76
94
|
class: "field"
|
|
77
|
-
},
|
|
95
|
+
}, xe = {
|
|
78
96
|
key: 7,
|
|
79
97
|
class: "field"
|
|
80
|
-
},
|
|
98
|
+
}, es = {
|
|
81
99
|
key: 8,
|
|
82
100
|
class: "field"
|
|
83
|
-
},
|
|
101
|
+
}, ss = {
|
|
84
102
|
key: 9,
|
|
85
103
|
class: "field"
|
|
86
|
-
},
|
|
104
|
+
}, os = {
|
|
87
105
|
key: 10,
|
|
88
106
|
class: "field"
|
|
89
|
-
},
|
|
107
|
+
}, ls = {
|
|
90
108
|
key: 11,
|
|
91
109
|
class: "field"
|
|
92
|
-
},
|
|
110
|
+
}, ts = {
|
|
93
111
|
key: 12,
|
|
94
112
|
class: "field col-span-2"
|
|
95
|
-
},
|
|
113
|
+
}, is = {
|
|
96
114
|
key: 13,
|
|
97
115
|
class: "field"
|
|
98
|
-
},
|
|
116
|
+
}, rs = {
|
|
99
117
|
key: 14,
|
|
100
118
|
class: "field"
|
|
101
|
-
},
|
|
119
|
+
}, ns = {
|
|
102
120
|
key: 15,
|
|
103
121
|
class: "field"
|
|
104
|
-
},
|
|
122
|
+
}, ds = {
|
|
105
123
|
key: 16,
|
|
106
124
|
class: "field"
|
|
107
|
-
},
|
|
125
|
+
}, as = {
|
|
108
126
|
key: 17,
|
|
109
127
|
class: "field"
|
|
110
|
-
},
|
|
128
|
+
}, ps = {
|
|
111
129
|
key: 18,
|
|
112
130
|
class: "field"
|
|
113
|
-
},
|
|
131
|
+
}, us = {
|
|
114
132
|
key: 19,
|
|
115
133
|
class: "field col-span-2"
|
|
116
|
-
},
|
|
134
|
+
}, ms = {
|
|
117
135
|
key: 20,
|
|
118
136
|
class: "field"
|
|
119
|
-
},
|
|
137
|
+
}, ys = {
|
|
120
138
|
key: 21,
|
|
121
139
|
class: "field"
|
|
122
|
-
},
|
|
140
|
+
}, ks = {
|
|
123
141
|
key: 22,
|
|
124
142
|
class: "field"
|
|
125
|
-
},
|
|
143
|
+
}, gs = {
|
|
126
144
|
key: 23,
|
|
127
145
|
class: "field"
|
|
128
|
-
},
|
|
146
|
+
}, hs = {
|
|
129
147
|
key: 24,
|
|
130
148
|
class: "field"
|
|
131
|
-
},
|
|
149
|
+
}, ws = {
|
|
132
150
|
key: 25,
|
|
133
151
|
class: "field"
|
|
134
|
-
},
|
|
152
|
+
}, qs = {
|
|
135
153
|
key: 26,
|
|
136
154
|
class: "field"
|
|
137
|
-
},
|
|
155
|
+
}, cs = {
|
|
138
156
|
key: 27,
|
|
139
157
|
class: "field col-span-2"
|
|
140
|
-
},
|
|
158
|
+
}, vs = {
|
|
141
159
|
class: /* @__PURE__ */ p([
|
|
142
160
|
"actions flex-shrink-0",
|
|
143
161
|
"flex items-center justify-between mt-4"
|
|
144
162
|
])
|
|
145
|
-
},
|
|
163
|
+
}, Ts = {
|
|
146
164
|
key: 4,
|
|
147
165
|
class: "animate-shimmer bg-gray-30 w-full h-4 my-4"
|
|
148
|
-
},
|
|
166
|
+
}, fs = {
|
|
149
167
|
key: 5,
|
|
150
168
|
class: "flex items-center mt-0.5"
|
|
151
|
-
},
|
|
152
|
-
function
|
|
153
|
-
const
|
|
169
|
+
}, Cs = { class: "text-xs text-inkwell-0 font-normal" };
|
|
170
|
+
function bs(e, o, Os, Es, $s, Ss) {
|
|
171
|
+
const u = y("q-icon"), v = y("q-tooltip"), $ = y("q-tag"), S = y("q-popover"), T = y("q-divider"), O = y("q-accordion"), N = y("q-activity-item"), H = y("q-avatar"), h = y("q-textarea"), f = y("q-button"), m = y("q-select"), w = y("q-date-picker"), C = y("q-input");
|
|
154
172
|
return e.showActionMenu || e.showComments || e.showGuestDetails && e.roomDetailsData.reservations && e.roomDetailsData.reservations[0] || e.showTickets || e.tagsList.length ? (l(), t("div", {
|
|
155
173
|
key: 0,
|
|
156
174
|
id: e.id ? `rdp-${e.id}` : "",
|
|
157
175
|
class: "room-detail component-container text-inkwell-30",
|
|
158
|
-
onMouseleave:
|
|
176
|
+
onMouseleave: o[54] || (o[54] = (s) => e.onHoverToggle(!1))
|
|
159
177
|
}, [
|
|
160
|
-
r(
|
|
178
|
+
r(S, {
|
|
161
179
|
"model-value": e.open,
|
|
162
180
|
align: e.alignment,
|
|
163
181
|
position: e.positioning,
|
|
164
182
|
size: (!e.showTickets || e.showTickets && (!e.ticketsList || !e.ticketsList.length)) && !e.showComments && !e.showActionMenu ? "sm" : e.size,
|
|
165
183
|
teleport: e.teleport,
|
|
166
184
|
"teleport-to": e.teleportTo,
|
|
167
|
-
onClose:
|
|
168
|
-
"onUpdate:modelValue":
|
|
185
|
+
onClose: o[52] || (o[52] = (s) => e.$emit("toggle", !1)),
|
|
186
|
+
"onUpdate:modelValue": o[53] || (o[53] = (s) => e.$emit("toggle", s))
|
|
169
187
|
}, {
|
|
170
188
|
trigger: a(() => [
|
|
171
189
|
n("div", R({
|
|
@@ -173,12 +191,12 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
173
191
|
id: e.id ? `rdp-${e.id}-trigger` : "",
|
|
174
192
|
class: "trigger-text"
|
|
175
193
|
}, {
|
|
176
|
-
[
|
|
194
|
+
[D(!e.hover && "click")]: o[0] || (o[0] = (s) => e.$emit("toggle", !e.open))
|
|
177
195
|
}, {
|
|
178
|
-
[
|
|
196
|
+
[D(e.hover && "mouseover")]: o[1] || (o[1] = (s) => e.onHoverToggle(!0))
|
|
179
197
|
}), [
|
|
180
198
|
A(e.$slots, "trigger", {}, () => [
|
|
181
|
-
|
|
199
|
+
g(d(e.trigger), 1)
|
|
182
200
|
])
|
|
183
201
|
], 16, L)
|
|
184
202
|
]),
|
|
@@ -205,12 +223,12 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
205
223
|
{ "gap-y-3": !e.showRoomName }
|
|
206
224
|
])
|
|
207
225
|
}, [
|
|
208
|
-
e.occupied ? (l(), k(
|
|
226
|
+
e.occupied ? (l(), k(v, {
|
|
209
227
|
key: 0,
|
|
210
228
|
class: "flex shrink-0 items-center"
|
|
211
229
|
}, {
|
|
212
230
|
trigger: a(() => [
|
|
213
|
-
r(
|
|
231
|
+
r(u, {
|
|
214
232
|
icon: "user",
|
|
215
233
|
type: "fill",
|
|
216
234
|
color: e.occupied && e.hasComplaint ? "red-10" : "gray-30",
|
|
@@ -223,12 +241,12 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
223
241
|
]),
|
|
224
242
|
_: 1
|
|
225
243
|
})) : i("", !0),
|
|
226
|
-
e.cleanliness ? (l(), k(
|
|
244
|
+
e.cleanliness ? (l(), k(v, {
|
|
227
245
|
key: 1,
|
|
228
246
|
class: "flex shrink-0 items-center"
|
|
229
247
|
}, {
|
|
230
248
|
trigger: a(() => [
|
|
231
|
-
r(
|
|
249
|
+
r(u, {
|
|
232
250
|
icon: "spray-bottle",
|
|
233
251
|
type: "fill",
|
|
234
252
|
color: e.cleanlinessColor,
|
|
@@ -241,24 +259,24 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
241
259
|
]),
|
|
242
260
|
_: 1
|
|
243
261
|
})) : i("", !0),
|
|
244
|
-
e.tagsList.length && !e.showRoomName ? (l(!0), t(
|
|
245
|
-
key:
|
|
246
|
-
href: typeof
|
|
262
|
+
e.tagsList.length && !e.showRoomName ? (l(!0), t(q, { key: 2 }, c(e.tagsList, (s) => (l(), t("a", {
|
|
263
|
+
key: s,
|
|
264
|
+
href: typeof s == "object" && s.id && s.name ? `/roomsbook/notice.php?id=${s.id}` : "",
|
|
247
265
|
class: "capitalize"
|
|
248
266
|
}, [
|
|
249
|
-
r(
|
|
267
|
+
r($, {
|
|
250
268
|
class: p([
|
|
251
269
|
"!text-xs !leading-4",
|
|
252
270
|
"shrink-0 max-w-[100px] !h-auto",
|
|
253
271
|
"!py-[0.1875rem] !px-[0.4375rem] border",
|
|
254
272
|
"border-orange-10",
|
|
255
|
-
{ pulse:
|
|
273
|
+
{ pulse: s.isNew }
|
|
256
274
|
]),
|
|
257
275
|
"bg-color": "bg-yellow-0",
|
|
258
276
|
"text-color": "text-inkwell-30"
|
|
259
277
|
}, {
|
|
260
278
|
default: a(() => [
|
|
261
|
-
|
|
279
|
+
g(d(typeof s == "object" && s.id && s.name ? s.name : s), 1)
|
|
262
280
|
]),
|
|
263
281
|
_: 2
|
|
264
282
|
}, 1032, ["class"])
|
|
@@ -266,23 +284,23 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
266
284
|
], 2)) : i("", !0)
|
|
267
285
|
], 2)),
|
|
268
286
|
n("div", j, [
|
|
269
|
-
e.showActionMenu && (e.showActionsLink || !e.hasGuestCallback && e.showGuestCallback || e.showComments || e.showGuestDetails) ? (l(), k(
|
|
287
|
+
e.showActionMenu && (e.showActionsLink || !e.hasGuestCallback && e.showGuestCallback || e.showComments || e.showGuestDetails) ? (l(), k(S, {
|
|
270
288
|
key: 0,
|
|
271
289
|
modelValue: e.actionMenuOpen,
|
|
272
|
-
"onUpdate:modelValue":
|
|
290
|
+
"onUpdate:modelValue": o[7] || (o[7] = (s) => e.actionMenuOpen = s),
|
|
273
291
|
"has-caret": !1,
|
|
274
292
|
align: "right",
|
|
275
293
|
class: "action-menu mr-1",
|
|
276
294
|
size: "md",
|
|
277
|
-
onClose:
|
|
295
|
+
onClose: o[8] || (o[8] = (s) => e.actionMenuOpen = !1)
|
|
278
296
|
}, {
|
|
279
297
|
trigger: a(() => [
|
|
280
|
-
r(
|
|
298
|
+
r(u, {
|
|
281
299
|
class: "popover-action rounded-full cursor-pointer",
|
|
282
300
|
icon: "ellipsis-h",
|
|
283
301
|
size: "md",
|
|
284
302
|
type: "fill",
|
|
285
|
-
onClick:
|
|
303
|
+
onClick: o[2] || (o[2] = (s) => e.actionMenuOpen = !e.actionMenuOpen)
|
|
286
304
|
})
|
|
287
305
|
]),
|
|
288
306
|
content: a(() => [
|
|
@@ -297,9 +315,9 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
297
315
|
"mb-2": !e.showGuestDetails && (e.hasGuestCallback || !e.showGuestCallback) && !e.showComments
|
|
298
316
|
}
|
|
299
317
|
]),
|
|
300
|
-
onClick:
|
|
318
|
+
onClick: o[3] || (o[3] = (...s) => e.openRequest && e.openRequest(...s))
|
|
301
319
|
}, [
|
|
302
|
-
r(
|
|
320
|
+
r(u, {
|
|
303
321
|
class: "shrink-0 mr-1 p-1",
|
|
304
322
|
color: "inkwell-10",
|
|
305
323
|
icon: "plus",
|
|
@@ -319,9 +337,9 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
319
337
|
},
|
|
320
338
|
{ "mt-2": !e.showActionsLink }
|
|
321
339
|
]),
|
|
322
|
-
onClick:
|
|
340
|
+
onClick: o[4] || (o[4] = (...s) => e.createCallback && e.createCallback(...s))
|
|
323
341
|
}, [
|
|
324
|
-
r(
|
|
342
|
+
r(u, {
|
|
325
343
|
class: "shrink-0 mr-1 p-0.5",
|
|
326
344
|
color: "inkwell-10",
|
|
327
345
|
icon: "phone-plus",
|
|
@@ -343,9 +361,9 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
343
361
|
"mt-2": !e.showActionsLink && (e.hasGuestCallback || !e.showGuestCallback)
|
|
344
362
|
}
|
|
345
363
|
]),
|
|
346
|
-
onClick:
|
|
364
|
+
onClick: o[5] || (o[5] = (...s) => e.onClickEditConnectGuest && e.onClickEditConnectGuest(...s))
|
|
347
365
|
}, [
|
|
348
|
-
r(
|
|
366
|
+
r(u, {
|
|
349
367
|
class: "shrink-0 mr-1 p-1",
|
|
350
368
|
color: "inkwell-10",
|
|
351
369
|
icon: "pencil",
|
|
@@ -364,9 +382,9 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
364
382
|
"mt-2": !e.showActionsLink && (e.hasGuestCallback || !e.showGuestCallback) && !e.showComments
|
|
365
383
|
}
|
|
366
384
|
]),
|
|
367
|
-
onClick:
|
|
385
|
+
onClick: o[6] || (o[6] = (...s) => e.refreshPMSData && e.refreshPMSData(...s))
|
|
368
386
|
}, [
|
|
369
|
-
r(
|
|
387
|
+
r(u, {
|
|
370
388
|
class: "shrink-0 mr-1 p-1",
|
|
371
389
|
color: "inkwell-10",
|
|
372
390
|
icon: "refresh",
|
|
@@ -380,18 +398,18 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
380
398
|
_: 1
|
|
381
399
|
}, 8, ["modelValue"])) : i("", !0),
|
|
382
400
|
n("div", _, [
|
|
383
|
-
r(
|
|
401
|
+
r(v, null, {
|
|
384
402
|
trigger: a(() => [
|
|
385
|
-
r(
|
|
403
|
+
r(u, {
|
|
386
404
|
icon: "close",
|
|
387
405
|
size: "md",
|
|
388
406
|
type: "",
|
|
389
407
|
class: "popover-action rounded-full cursor-pointer p-1",
|
|
390
|
-
onClick:
|
|
408
|
+
onClick: o[9] || (o[9] = (s) => e.$emit("toggle", !1))
|
|
391
409
|
})
|
|
392
410
|
]),
|
|
393
411
|
content: a(() => [
|
|
394
|
-
|
|
412
|
+
g(d(e.$t("HC_CLOSE")), 1)
|
|
395
413
|
]),
|
|
396
414
|
_: 1
|
|
397
415
|
})
|
|
@@ -399,14 +417,14 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
399
417
|
])
|
|
400
418
|
]),
|
|
401
419
|
e.loading.pms && e.size === "sm" ? (l(), t("div", x)) : !e.loading.pms && (e.occupied || e.cleanliness) && e.size === "sm" ? (l(), t("div", ee, [
|
|
402
|
-
e.occupied ? (l(), k(
|
|
420
|
+
e.occupied ? (l(), k(u, {
|
|
403
421
|
key: 0,
|
|
404
422
|
icon: "user",
|
|
405
423
|
type: "fill",
|
|
406
424
|
color: e.occupied && e.hasComplaint ? "red-10" : "gray-30",
|
|
407
425
|
size: "sm"
|
|
408
426
|
}, null, 8, ["color"])) : i("", !0),
|
|
409
|
-
e.cleanliness ? (l(), k(
|
|
427
|
+
e.cleanliness ? (l(), k(u, {
|
|
410
428
|
key: 1,
|
|
411
429
|
icon: "spray-bottle",
|
|
412
430
|
type: "fill",
|
|
@@ -414,25 +432,25 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
414
432
|
size: "sm"
|
|
415
433
|
}, null, 8, ["color"])) : i("", !0)
|
|
416
434
|
])) : i("", !0),
|
|
417
|
-
e.loading.roomNotices ? (l(), t("div",
|
|
418
|
-
(l(!0), t(
|
|
419
|
-
key:
|
|
420
|
-
href: typeof
|
|
435
|
+
e.loading.roomNotices ? (l(), t("div", se)) : !e.loading.roomNotices && e.tagsList.length && e.showRoomName ? (l(), t("div", oe, [
|
|
436
|
+
(l(!0), t(q, null, c(e.tagsList, (s) => (l(), t("a", {
|
|
437
|
+
key: s,
|
|
438
|
+
href: typeof s == "object" && s.id && s.name ? `/roomsbook/notice.php?id=${s.id}` : "",
|
|
421
439
|
class: "mr-2 mb-1 capitalize"
|
|
422
440
|
}, [
|
|
423
|
-
r(
|
|
441
|
+
r($, {
|
|
424
442
|
class: p([
|
|
425
443
|
"!text-tiny !leading-4",
|
|
426
444
|
"shrink-0 max-w-[100px] !h-auto",
|
|
427
445
|
"!py-0.5 !px-1.5 border",
|
|
428
446
|
"border-orange-10",
|
|
429
|
-
{ pulse:
|
|
447
|
+
{ pulse: s.isNew }
|
|
430
448
|
]),
|
|
431
449
|
"bg-color": "bg-yellow-0",
|
|
432
450
|
"text-color": "text-inkwell-30"
|
|
433
451
|
}, {
|
|
434
452
|
default: a(() => [
|
|
435
|
-
|
|
453
|
+
g(d(typeof s == "object" && s.id && s.name ? s.name : s), 1)
|
|
436
454
|
]),
|
|
437
455
|
_: 2
|
|
438
456
|
}, 1032, ["class"])
|
|
@@ -441,21 +459,21 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
441
459
|
n("div", {
|
|
442
460
|
class: p(["accordions", { closed: e.showCreateRequest }])
|
|
443
461
|
}, [
|
|
444
|
-
e.showGuestDetails && e.roomDetailsData.reservations && e.roomDetailsData.reservations[0] ? (l(), k(
|
|
462
|
+
e.showGuestDetails && e.roomDetailsData.reservations && e.roomDetailsData.reservations[0] ? (l(), k(O, {
|
|
445
463
|
key: 0,
|
|
446
464
|
modelValue: e.expandGuestInfo,
|
|
447
|
-
"onUpdate:modelValue":
|
|
465
|
+
"onUpdate:modelValue": o[11] || (o[11] = (s) => e.expandGuestInfo = s),
|
|
448
466
|
class: "mb-3",
|
|
449
467
|
"content-class": "!px-0 !pt-3 !pb-0"
|
|
450
468
|
}, {
|
|
451
469
|
toggle: a(() => [
|
|
452
470
|
n("div", {
|
|
453
471
|
class: "flex items-center cursor-pointer",
|
|
454
|
-
onClick:
|
|
472
|
+
onClick: o[10] || (o[10] = (s) => e.expandGuestInfo = !e.expandGuestInfo)
|
|
455
473
|
}, [
|
|
456
474
|
n("div", te, d(e.$t("HC_GUEST_INFORMATION")), 1),
|
|
457
|
-
r(
|
|
458
|
-
r(
|
|
475
|
+
r(T, { class: "grow" }),
|
|
476
|
+
r(u, {
|
|
459
477
|
class: p([
|
|
460
478
|
"ml-2 transition-transform",
|
|
461
479
|
{ "rotate-90": e.expandGuestInfo }
|
|
@@ -490,21 +508,21 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
490
508
|
]),
|
|
491
509
|
_: 1
|
|
492
510
|
}, 8, ["modelValue"])) : i("", !0),
|
|
493
|
-
e.showTickets ? (l(), k(
|
|
511
|
+
e.showTickets ? (l(), k(O, {
|
|
494
512
|
key: 1,
|
|
495
513
|
modelValue: e.expandTickets,
|
|
496
|
-
"onUpdate:modelValue":
|
|
514
|
+
"onUpdate:modelValue": o[13] || (o[13] = (s) => e.expandTickets = s),
|
|
497
515
|
class: "mb-3",
|
|
498
516
|
"content-class": "!px-0 !pt-3 !pb-0"
|
|
499
517
|
}, {
|
|
500
518
|
toggle: a(() => [
|
|
501
519
|
n("div", {
|
|
502
520
|
class: "flex items-center cursor-pointer",
|
|
503
|
-
onClick:
|
|
521
|
+
onClick: o[12] || (o[12] = (s) => e.expandTickets = !e.expandTickets)
|
|
504
522
|
}, [
|
|
505
523
|
n("div", ke, d(e.$t("HC_OPEN_TICKETS")), 1),
|
|
506
|
-
r(
|
|
507
|
-
r(
|
|
524
|
+
r(T, { class: "grow" }),
|
|
525
|
+
r(u, {
|
|
508
526
|
class: p([
|
|
509
527
|
"ml-2 transition-transform",
|
|
510
528
|
{ "rotate-90": e.expandTickets }
|
|
@@ -516,46 +534,46 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
516
534
|
])
|
|
517
535
|
]),
|
|
518
536
|
content: a(() => [
|
|
519
|
-
e.loading.tickets ? (l(), t("div",
|
|
520
|
-
(l(!0), t(
|
|
521
|
-
key:
|
|
522
|
-
id: `open-ticket-${
|
|
537
|
+
e.loading.tickets ? (l(), t("div", ge)) : e.ticketsList.length ? (l(), t("ul", he, [
|
|
538
|
+
(l(!0), t(q, null, c(e.ticketsList, (s, b) => (l(), t("li", {
|
|
539
|
+
key: s.id,
|
|
540
|
+
id: `open-ticket-${s.id}`
|
|
523
541
|
}, [
|
|
524
|
-
r(
|
|
542
|
+
r(N, {
|
|
525
543
|
class: p([
|
|
526
544
|
{
|
|
527
|
-
"mt-3":
|
|
528
|
-
pulse:
|
|
545
|
+
"mt-3": b > 0,
|
|
546
|
+
pulse: s.isNew
|
|
529
547
|
}
|
|
530
548
|
]),
|
|
531
549
|
"is-clickable": !0,
|
|
532
|
-
text:
|
|
550
|
+
text: s.name,
|
|
533
551
|
time: e.getHowLongAgo(
|
|
534
|
-
|
|
552
|
+
s.started?.dateUtc
|
|
535
553
|
),
|
|
536
|
-
type:
|
|
537
|
-
onClick: (
|
|
554
|
+
type: s.type,
|
|
555
|
+
onClick: (Hs) => e.onClickTicket(s)
|
|
538
556
|
}, null, 8, ["class", "text", "time", "type", "onClick"])
|
|
539
557
|
], 8, we))), 128))
|
|
540
558
|
])) : (l(), t("p", qe, d(e.$t("HC_THERE_ARE_NO_OPEN_TICKETS_YET")), 1))
|
|
541
559
|
]),
|
|
542
560
|
_: 1
|
|
543
561
|
}, 8, ["modelValue"])) : i("", !0),
|
|
544
|
-
e.showComments ? (l(), k(
|
|
562
|
+
e.showComments ? (l(), k(O, {
|
|
545
563
|
key: 2,
|
|
546
564
|
modelValue: e.expandComments,
|
|
547
|
-
"onUpdate:modelValue":
|
|
565
|
+
"onUpdate:modelValue": o[19] || (o[19] = (s) => e.expandComments = s),
|
|
548
566
|
class: "messages mb-3",
|
|
549
567
|
"content-class": "!px-0 !pt-3 !pb-0"
|
|
550
568
|
}, {
|
|
551
569
|
toggle: a(() => [
|
|
552
570
|
n("div", {
|
|
553
571
|
class: "flex items-center cursor-pointer",
|
|
554
|
-
onClick:
|
|
572
|
+
onClick: o[14] || (o[14] = (s) => e.expandComments = !e.expandComments)
|
|
555
573
|
}, [
|
|
556
|
-
n("div",
|
|
557
|
-
r(
|
|
558
|
-
r(
|
|
574
|
+
n("div", ce, d(e.$t("HC_GUEST_CONNECT")), 1),
|
|
575
|
+
r(T, { class: "grow" }),
|
|
576
|
+
r(u, {
|
|
559
577
|
class: p([
|
|
560
578
|
"ml-2 transition-transform",
|
|
561
579
|
{ "rotate-90": e.expandComments }
|
|
@@ -581,79 +599,173 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
581
599
|
])
|
|
582
600
|
}, [
|
|
583
601
|
e.filteredReplies.length ? (l(), t("div", ve, [
|
|
584
|
-
(l(!0), t(
|
|
585
|
-
key:
|
|
602
|
+
(l(!0), t(q, null, c(e.filteredReplies, (s) => (l(), t("div", {
|
|
603
|
+
key: s,
|
|
586
604
|
class: p([
|
|
587
605
|
"quick-reply",
|
|
588
606
|
{ active: e.comment }
|
|
589
607
|
]),
|
|
590
|
-
onClick: (
|
|
608
|
+
onClick: (b) => e.onSelectQuickReply(s)
|
|
591
609
|
}, [
|
|
592
|
-
n("div", null, d(
|
|
593
|
-
], 10,
|
|
594
|
-
])) : (l(), t("div",
|
|
610
|
+
n("div", null, d(s), 1)
|
|
611
|
+
], 10, Te))), 128))
|
|
612
|
+
])) : (l(), t("div", fe, d(e.$t("HC_NO_RESULTS_FOUND_FOR")) + ' "' + d(e.comment) + '". ', 1))
|
|
595
613
|
], 2),
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
614
|
+
n("div", Ce, [
|
|
615
|
+
n("div", be, [
|
|
616
|
+
(l(!0), t(q, null, c(e.groupedMessages, (s, b) => (l(), t(q, { key: b }, [
|
|
617
|
+
s.type === "separator" ? (l(), t("div", Oe, [
|
|
618
|
+
n("span", Ee, d(s.label), 1)
|
|
619
|
+
])) : (l(), t("div", {
|
|
620
|
+
key: 1,
|
|
621
|
+
class: p([
|
|
622
|
+
"chat-message",
|
|
623
|
+
{
|
|
624
|
+
"chat-message--staff": s.isStaffMessage,
|
|
625
|
+
"chat-message--guest": s.isGuestMessage
|
|
626
|
+
}
|
|
627
|
+
])
|
|
628
|
+
}, [
|
|
629
|
+
s.isGuestMessage ? (l(), t("div", $e, [
|
|
630
|
+
r(v, { position: "top" }, {
|
|
631
|
+
trigger: a(() => [
|
|
632
|
+
r(H, {
|
|
633
|
+
initials: s.user?.initials || "?",
|
|
634
|
+
src: s.user?.src || "",
|
|
635
|
+
size: "sm"
|
|
636
|
+
}, null, 8, ["initials", "src"])
|
|
637
|
+
]),
|
|
638
|
+
content: a(() => [
|
|
639
|
+
g(d(s.user?.name || e.$t("HC_GUEST")), 1)
|
|
640
|
+
]),
|
|
641
|
+
_: 2
|
|
642
|
+
}, 1024)
|
|
643
|
+
])) : i("", !0),
|
|
644
|
+
n("div", Se, [
|
|
645
|
+
n("div", He, d(s.formattedTime), 1),
|
|
646
|
+
n("div", Ve, d(s.comment), 1)
|
|
647
|
+
]),
|
|
648
|
+
s.isStaffMessage ? (l(), t("div", De, [
|
|
649
|
+
r(H, { size: "sm" }, {
|
|
650
|
+
default: a(() => [
|
|
651
|
+
r(u, {
|
|
652
|
+
icon: "building",
|
|
653
|
+
size: "sm",
|
|
654
|
+
color: "gray-30",
|
|
655
|
+
type: "fill"
|
|
656
|
+
})
|
|
657
|
+
]),
|
|
658
|
+
_: 1
|
|
659
|
+
})
|
|
660
|
+
])) : i("", !0)
|
|
661
|
+
], 2))
|
|
662
|
+
], 64))), 128)),
|
|
663
|
+
e.groupedMessages.length ? i("", !0) : (l(), t("div", Ne, d(e.$t("HC_NO_MESSAGES_YET")), 1))
|
|
664
|
+
]),
|
|
665
|
+
e.isTestEnvironment && e.simulateOpen ? (l(), t("div", Ue, [
|
|
666
|
+
n("div", Re, [
|
|
667
|
+
o[55] || (o[55] = n("span", { class: "simulate-badge" }, "TEST", -1)),
|
|
668
|
+
n("span", null, d(e.$t("HC_SIMULATE_GUEST_REPLY")), 1),
|
|
669
|
+
r(u, {
|
|
670
|
+
icon: "close",
|
|
671
|
+
size: "sm",
|
|
672
|
+
class: "cursor-pointer ml-auto",
|
|
673
|
+
onClick: e.toggleSimulateOpen
|
|
674
|
+
}, null, 8, ["onClick"])
|
|
675
|
+
]),
|
|
676
|
+
n("div", Ae, [
|
|
677
|
+
r(h, {
|
|
678
|
+
id: "simulate-content",
|
|
679
|
+
modelValue: e.simulateContent,
|
|
680
|
+
"onUpdate:modelValue": o[15] || (o[15] = (s) => e.simulateContent = s),
|
|
681
|
+
placeholder: e.$t("HC_ENTER_SIMULATED_MESSAGE"),
|
|
682
|
+
"textarea-class": "text-sm border-gray-12 w-full",
|
|
683
|
+
"control-class": "w-full",
|
|
684
|
+
rows: 2,
|
|
685
|
+
onKeydown: V(E(e.simulateGuestReply, ["prevent"]), ["enter"])
|
|
686
|
+
}, null, 8, ["modelValue", "placeholder", "onKeydown"]),
|
|
687
|
+
n("div", Ge, [
|
|
688
|
+
r(f, {
|
|
689
|
+
disabled: !e.simulateContent.trim() || e.simulateLoading,
|
|
690
|
+
loading: e.simulateLoading,
|
|
691
|
+
size: "xsm",
|
|
692
|
+
class: "simulate-send-btn",
|
|
693
|
+
onClick: e.simulateGuestReply
|
|
694
|
+
}, {
|
|
695
|
+
default: a(() => [
|
|
696
|
+
g(d(e.$t("HC_SEND")), 1)
|
|
697
|
+
]),
|
|
698
|
+
_: 1
|
|
699
|
+
}, 8, ["disabled", "loading", "onClick"])
|
|
700
|
+
])
|
|
701
|
+
])
|
|
702
|
+
])) : i("", !0),
|
|
703
|
+
n("div", Me, [
|
|
704
|
+
n("div", Le, [
|
|
603
705
|
e.messages.length > 0 ? (l(), t("div", {
|
|
604
706
|
key: 0,
|
|
605
707
|
class: p([
|
|
606
|
-
"cursor-pointer text-xs px-2 py-1 rounded",
|
|
708
|
+
"cursor-pointer text-xs px-2 py-1 rounded shrink-0",
|
|
607
709
|
"border border-gray-12 hover:bg-gray-5",
|
|
608
|
-
{ hide: e.quickReplyOpen }
|
|
710
|
+
{ hide: e.quickReplyOpen || e.simulateOpen }
|
|
609
711
|
]),
|
|
610
|
-
onClick:
|
|
712
|
+
onClick: o[16] || (o[16] = (...s) => e.toggleMarkOpenClose && e.toggleMarkOpenClose(...s))
|
|
611
713
|
}, d(e.$t(
|
|
612
714
|
e.isConversationOpen ? "HC_CLOSE" : "HC_OPEN"
|
|
613
|
-
)), 3)) : i("", !0)
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
placeholder: e.quickReplyOpen ? e.$t("HC_SEARCH_REPLIES") : e.$t("HC_WRITE_A_MESSAGE"),
|
|
622
|
-
rows: 1,
|
|
623
|
-
"control-class": "w-100 mr-2",
|
|
624
|
-
onKeydown: U(e.sendChatMessage, ["enter"])
|
|
625
|
-
}, null, 8, ["modelValue", "placeholder", "onKeydown"]),
|
|
626
|
-
n("div", {
|
|
627
|
-
id: "hidden-text",
|
|
628
|
-
class: "text-sm",
|
|
629
|
-
innerHTML: e.comment
|
|
630
|
-
}, null, 8, Oe),
|
|
631
|
-
r(m, {
|
|
632
|
-
id: "quick-reply-trigger",
|
|
633
|
-
icon: "comment-lines",
|
|
634
|
-
class: "cursor-pointer !absolute top-1/2 -translate-y-1/2 mb-1",
|
|
635
|
-
color: e.quickReplyOpen ? "blue-20" : "inkwell-0",
|
|
636
|
-
size: "sm",
|
|
637
|
-
type: e.quickReplyOpen ? "fill" : "outline",
|
|
638
|
-
onClick: e.toggleQuickReply
|
|
639
|
-
}, null, 8, ["color", "type", "onClick"]),
|
|
640
|
-
r(b, {
|
|
641
|
-
id: "send-comment",
|
|
642
|
-
disabled: !e.comment || e.quickReplyOpen,
|
|
643
|
-
class: "!absolute top-1/2 -translate-y-1/2 px-2 mr-2 !text-sm",
|
|
644
|
-
size: "xsm",
|
|
645
|
-
status: "link",
|
|
646
|
-
onClick: e.sendChatMessage
|
|
647
|
-
}, {
|
|
648
|
-
default: a(() => [
|
|
649
|
-
h(d(e.$t("HC_SEND")), 1)
|
|
715
|
+
)), 3)) : i("", !0),
|
|
716
|
+
e.isTestEnvironment && e.roomDetailsData?.tokenId ? (l(), t("div", {
|
|
717
|
+
key: 1,
|
|
718
|
+
class: p([
|
|
719
|
+
"cursor-pointer text-xs px-2 py-1 rounded shrink-0",
|
|
720
|
+
"border hover:bg-orange-5",
|
|
721
|
+
e.simulateOpen ? "border-orange-20 bg-orange-5" : "border-orange-10",
|
|
722
|
+
{ hide: e.quickReplyOpen }
|
|
650
723
|
]),
|
|
651
|
-
|
|
652
|
-
|
|
724
|
+
style: { color: "#e67e22" },
|
|
725
|
+
onClick: o[17] || (o[17] = (...s) => e.toggleSimulateOpen && e.toggleSimulateOpen(...s))
|
|
726
|
+
}, d(e.$t("HC_SIMULATE")), 3)) : i("", !0),
|
|
727
|
+
n("div", Ie, [
|
|
728
|
+
r(h, {
|
|
729
|
+
id: "comment-field",
|
|
730
|
+
modelValue: e.comment,
|
|
731
|
+
"onUpdate:modelValue": o[18] || (o[18] = (s) => e.comment = s),
|
|
732
|
+
"textarea-class": "text-sm pr-5 border-gray-12 w-full",
|
|
733
|
+
placeholder: e.quickReplyOpen ? e.$t("HC_SEARCH_REPLIES") : e.$t("HC_WRITE_A_MESSAGE"),
|
|
734
|
+
rows: 1,
|
|
735
|
+
"control-class": "w-full",
|
|
736
|
+
onKeydown: V(e.sendChatMessage, ["enter"])
|
|
737
|
+
}, null, 8, ["modelValue", "placeholder", "onKeydown"]),
|
|
738
|
+
n("div", {
|
|
739
|
+
id: "hidden-text",
|
|
740
|
+
class: "text-sm",
|
|
741
|
+
innerHTML: e.comment
|
|
742
|
+
}, null, 8, ze),
|
|
743
|
+
r(u, {
|
|
744
|
+
id: "quick-reply-trigger",
|
|
745
|
+
icon: "comment-lines",
|
|
746
|
+
class: "cursor-pointer !absolute top-1/2 -translate-y-1/2 mb-1",
|
|
747
|
+
color: e.quickReplyOpen ? "blue-20" : "inkwell-0",
|
|
748
|
+
size: "sm",
|
|
749
|
+
type: e.quickReplyOpen ? "fill" : "outline",
|
|
750
|
+
onClick: e.toggleQuickReply
|
|
751
|
+
}, null, 8, ["color", "type", "onClick"]),
|
|
752
|
+
r(f, {
|
|
753
|
+
id: "send-comment",
|
|
754
|
+
disabled: !e.comment || e.quickReplyOpen,
|
|
755
|
+
class: "!absolute top-1/2 -translate-y-1/2 px-2 mr-2 !text-sm",
|
|
756
|
+
size: "xsm",
|
|
757
|
+
status: "link",
|
|
758
|
+
onClick: e.sendChatMessage
|
|
759
|
+
}, {
|
|
760
|
+
default: a(() => [
|
|
761
|
+
g(d(e.$t("HC_SEND")), 1)
|
|
762
|
+
]),
|
|
763
|
+
_: 1
|
|
764
|
+
}, 8, ["disabled", "onClick"])
|
|
765
|
+
])
|
|
653
766
|
])
|
|
654
|
-
])
|
|
655
|
-
|
|
656
|
-
}, 8, ["comments"])
|
|
767
|
+
])
|
|
768
|
+
])
|
|
657
769
|
]),
|
|
658
770
|
_: 1
|
|
659
771
|
}, 8, ["modelValue"])) : i("", !0)
|
|
@@ -668,37 +780,37 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
668
780
|
}
|
|
669
781
|
])
|
|
670
782
|
}, [
|
|
671
|
-
r(
|
|
783
|
+
r(T, {
|
|
672
784
|
class: "text-base section-header mb-3",
|
|
673
785
|
align: "left",
|
|
674
786
|
color: "inkwell-30"
|
|
675
787
|
}, {
|
|
676
788
|
default: a(() => [
|
|
677
|
-
n("div",
|
|
678
|
-
n("div",
|
|
789
|
+
n("div", Pe, [
|
|
790
|
+
n("div", We, d(e.$t("HC_ACTION")), 1)
|
|
679
791
|
])
|
|
680
792
|
]),
|
|
681
793
|
_: 1
|
|
682
794
|
}),
|
|
683
795
|
n("form", {
|
|
684
796
|
class: "flex flex-col",
|
|
685
|
-
onSubmit:
|
|
797
|
+
onSubmit: o[51] || (o[51] = E((...s) => e.onCreateRequestSubmit && e.onCreateRequestSubmit(...s), ["prevent"]))
|
|
686
798
|
}, [
|
|
687
|
-
e.showCreateRequest ? (l(), t("div",
|
|
688
|
-
n("div",
|
|
689
|
-
n("div",
|
|
690
|
-
r(
|
|
799
|
+
e.showCreateRequest ? (l(), t("div", Be, [
|
|
800
|
+
n("div", Ke, [
|
|
801
|
+
n("div", Ye, [
|
|
802
|
+
r(m, {
|
|
691
803
|
id: "todo-type",
|
|
692
804
|
selected: e.requestType,
|
|
693
805
|
options: e.todoOptions,
|
|
694
806
|
placeholder: e.$t("HC_ACTION_TYPE"),
|
|
695
807
|
condensed: "",
|
|
696
808
|
required: "",
|
|
697
|
-
"onUpdate:modelValue":
|
|
809
|
+
"onUpdate:modelValue": o[20] || (o[20] = (s) => e.onSelectToDo(s))
|
|
698
810
|
}, null, 8, ["selected", "options", "placeholder"])
|
|
699
811
|
]),
|
|
700
|
-
e.requestType && e.requestType.id === "room_notice" ? (l(), t("div",
|
|
701
|
-
r(
|
|
812
|
+
e.requestType && e.requestType.id === "room_notice" ? (l(), t("div", je, [
|
|
813
|
+
r(m, {
|
|
702
814
|
id: "todo-notice-issue",
|
|
703
815
|
selected: e.roomNotice.issue,
|
|
704
816
|
options: e.itemOptionsList,
|
|
@@ -706,11 +818,11 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
706
818
|
placeholder: e.$t("HC_ITEM"),
|
|
707
819
|
condensed: "",
|
|
708
820
|
required: "",
|
|
709
|
-
"onUpdate:modelValue":
|
|
821
|
+
"onUpdate:modelValue": o[21] || (o[21] = (s) => e.roomNotice.issue = s)
|
|
710
822
|
}, null, 8, ["selected", "options", "disabled", "placeholder"])
|
|
711
823
|
])) : i("", !0),
|
|
712
|
-
e.requestType && e.requestType.id === "room_notice" && e.roomNotice.issue ? (l(), t("div",
|
|
713
|
-
r(
|
|
824
|
+
e.requestType && e.requestType.id === "room_notice" && e.roomNotice.issue ? (l(), t("div", Fe, [
|
|
825
|
+
r(w, {
|
|
714
826
|
id: "todo-notice-start-date",
|
|
715
827
|
value: e.roomNotice.startDate,
|
|
716
828
|
"is-today-min": !0,
|
|
@@ -723,11 +835,11 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
723
835
|
"wrapper-classes": "ui-overhaul",
|
|
724
836
|
condensed: "",
|
|
725
837
|
required: "",
|
|
726
|
-
"onUpdate:modelValue":
|
|
838
|
+
"onUpdate:modelValue": o[22] || (o[22] = (s) => e.roomNotice.startDate = s)
|
|
727
839
|
}, null, 8, ["value", "property-timezone", "locale", "placeholder"])
|
|
728
840
|
])) : i("", !0),
|
|
729
|
-
e.requestType && e.requestType.id === "room_notice" && e.roomNotice.issue ? (l(), t("div",
|
|
730
|
-
r(
|
|
841
|
+
e.requestType && e.requestType.id === "room_notice" && e.roomNotice.issue ? (l(), t("div", Ze, [
|
|
842
|
+
r(w, {
|
|
731
843
|
id: "todo-notice-end-date",
|
|
732
844
|
value: e.roomNotice.endDate,
|
|
733
845
|
"is-today-min": !0,
|
|
@@ -741,22 +853,22 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
741
853
|
"wrapper-classes": "ui-overhaul",
|
|
742
854
|
condensed: "",
|
|
743
855
|
required: "",
|
|
744
|
-
"onUpdate:modelValue":
|
|
856
|
+
"onUpdate:modelValue": o[23] || (o[23] = (s) => e.roomNotice.endDate = s)
|
|
745
857
|
}, null, 8, ["value", "minimum-date", "property-timezone", "locale", "placeholder"])
|
|
746
858
|
])) : i("", !0),
|
|
747
|
-
e.requestType && e.requestType.id === "room_notice" && e.roomNotice.issue ? (l(), t("div",
|
|
748
|
-
r(
|
|
859
|
+
e.requestType && e.requestType.id === "room_notice" && e.roomNotice.issue ? (l(), t("div", Qe, [
|
|
860
|
+
r(h, {
|
|
749
861
|
id: "todo-notice-notes",
|
|
750
862
|
modelValue: e.roomNotice.notes,
|
|
751
|
-
"onUpdate:modelValue":
|
|
863
|
+
"onUpdate:modelValue": o[24] || (o[24] = (s) => e.roomNotice.notes = s),
|
|
752
864
|
placeholder: e.$t("HC_WRITE_A_MESSAGE"),
|
|
753
865
|
"textarea-class": "text-inkwell-30 border-gray-12 mb-2",
|
|
754
866
|
"control-class": "w-full",
|
|
755
867
|
rows: 2
|
|
756
868
|
}, null, 8, ["modelValue", "placeholder"])
|
|
757
869
|
])) : i("", !0),
|
|
758
|
-
e.requestType && e.requestType.id === "complaint" ? (l(), t("div",
|
|
759
|
-
r(
|
|
870
|
+
e.requestType && e.requestType.id === "complaint" ? (l(), t("div", Je, [
|
|
871
|
+
r(m, {
|
|
760
872
|
id: "todo-complaint-problem",
|
|
761
873
|
selected: e.complaint.problem,
|
|
762
874
|
options: e.itemOptionsList,
|
|
@@ -765,14 +877,14 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
765
877
|
placeholder: e.$t("HC_PROBLEM"),
|
|
766
878
|
condensed: "",
|
|
767
879
|
required: "",
|
|
768
|
-
"onUpdate:modelValue":
|
|
880
|
+
"onUpdate:modelValue": o[25] || (o[25] = (s) => e.complaint.problem = s)
|
|
769
881
|
}, null, 8, ["selected", "options", "disabled", "placeholder"])
|
|
770
882
|
])) : i("", !0),
|
|
771
|
-
e.requestType && e.requestType.id === "complaint" && e.complaint.problem ? (l(), t("div",
|
|
772
|
-
r(
|
|
883
|
+
e.requestType && e.requestType.id === "complaint" && e.complaint.problem ? (l(), t("div", Xe, [
|
|
884
|
+
r(C, {
|
|
773
885
|
id: "guest-name",
|
|
774
886
|
modelValue: e.complaint.guestName,
|
|
775
|
-
"onUpdate:modelValue":
|
|
887
|
+
"onUpdate:modelValue": o[26] || (o[26] = (s) => e.complaint.guestName = s),
|
|
776
888
|
placeholder: e.$t("HC_GUEST_NAME"),
|
|
777
889
|
"control-class": "w-full",
|
|
778
890
|
classes: "text-inkwell-30 border-gray-12 ui-overhaul",
|
|
@@ -780,38 +892,38 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
780
892
|
required: ""
|
|
781
893
|
}, null, 8, ["modelValue", "placeholder"])
|
|
782
894
|
])) : i("", !0),
|
|
783
|
-
e.requestType && e.requestType.id === "complaint" && e.complaint.problem ? (l(), t("div",
|
|
784
|
-
r(
|
|
895
|
+
e.requestType && e.requestType.id === "complaint" && e.complaint.problem ? (l(), t("div", _e, [
|
|
896
|
+
r(C, {
|
|
785
897
|
id: "guest-phone",
|
|
786
898
|
modelValue: e.complaint.guestPhone,
|
|
787
|
-
"onUpdate:modelValue":
|
|
899
|
+
"onUpdate:modelValue": o[27] || (o[27] = (s) => e.complaint.guestPhone = s),
|
|
788
900
|
placeholder: e.$t("HC_GUEST_PHONE_NUMBER"),
|
|
789
901
|
classes: "text-inkwell-40 border-gray-12 ui-overhaul",
|
|
790
902
|
condensed: ""
|
|
791
903
|
}, null, 8, ["modelValue", "placeholder"])
|
|
792
904
|
])) : i("", !0),
|
|
793
|
-
e.requestType && e.requestType.id === "complaint" && e.complaint.problem ? (l(), t("div",
|
|
794
|
-
r(
|
|
905
|
+
e.requestType && e.requestType.id === "complaint" && e.complaint.problem ? (l(), t("div", xe, [
|
|
906
|
+
r(C, {
|
|
795
907
|
id: "guest-email",
|
|
796
908
|
modelValue: e.complaint.guestEmail,
|
|
797
|
-
"onUpdate:modelValue":
|
|
909
|
+
"onUpdate:modelValue": o[28] || (o[28] = (s) => e.complaint.guestEmail = s),
|
|
798
910
|
placeholder: e.$t("HC_GUEST_EMAIL"),
|
|
799
911
|
classes: "text-inkwell-40 border-gray-12 ui-overhaul",
|
|
800
912
|
condensed: ""
|
|
801
913
|
}, null, 8, ["modelValue", "placeholder"])
|
|
802
914
|
])) : i("", !0),
|
|
803
|
-
e.requestType && e.requestType.id === "complaint" && e.complaint.problem ? (l(), t("div",
|
|
804
|
-
r(
|
|
915
|
+
e.requestType && e.requestType.id === "complaint" && e.complaint.problem ? (l(), t("div", es, [
|
|
916
|
+
r(C, {
|
|
805
917
|
id: "guest-loyalty",
|
|
806
918
|
modelValue: e.complaint.guestLoyalty,
|
|
807
|
-
"onUpdate:modelValue":
|
|
919
|
+
"onUpdate:modelValue": o[29] || (o[29] = (s) => e.complaint.guestLoyalty = s),
|
|
808
920
|
placeholder: e.$t("HC_GUEST_LOYALTY"),
|
|
809
921
|
classes: "text-inkwell-40 border-gray-12 ui-overhaul",
|
|
810
922
|
condensed: ""
|
|
811
923
|
}, null, 8, ["modelValue", "placeholder"])
|
|
812
924
|
])) : i("", !0),
|
|
813
|
-
e.requestType && e.requestType.id === "complaint" && e.complaint.problem ? (l(), t("div",
|
|
814
|
-
r(
|
|
925
|
+
e.requestType && e.requestType.id === "complaint" && e.complaint.problem ? (l(), t("div", ss, [
|
|
926
|
+
r(m, {
|
|
815
927
|
id: "todo-complaint-mood",
|
|
816
928
|
selected: e.complaint.guestMood,
|
|
817
929
|
options: e.moodOptions,
|
|
@@ -819,11 +931,11 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
819
931
|
placeholder: e.$t("HC_GUEST_MOOD"),
|
|
820
932
|
condensed: "",
|
|
821
933
|
required: "",
|
|
822
|
-
"onUpdate:modelValue":
|
|
934
|
+
"onUpdate:modelValue": o[30] || (o[30] = (s) => e.complaint.guestMood = s)
|
|
823
935
|
}, null, 8, ["selected", "options", "disabled", "placeholder"])
|
|
824
936
|
])) : i("", !0),
|
|
825
|
-
e.requestType && e.requestType.id === "complaint" && e.complaint.problem ? (l(), t("div",
|
|
826
|
-
r(
|
|
937
|
+
e.requestType && e.requestType.id === "complaint" && e.complaint.problem ? (l(), t("div", os, [
|
|
938
|
+
r(w, {
|
|
827
939
|
id: "todo-complaint-check-in",
|
|
828
940
|
value: e.complaint.checkInDate,
|
|
829
941
|
"is-today-min": !1,
|
|
@@ -836,11 +948,11 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
836
948
|
"wrapper-classes": "ui-overhaul",
|
|
837
949
|
condensed: "",
|
|
838
950
|
required: "",
|
|
839
|
-
"onUpdate:modelValue":
|
|
951
|
+
"onUpdate:modelValue": o[31] || (o[31] = (s) => e.complaint.checkInDate = s)
|
|
840
952
|
}, null, 8, ["value", "property-timezone", "locale", "placeholder"])
|
|
841
953
|
])) : i("", !0),
|
|
842
|
-
e.requestType && e.requestType.id === "complaint" && e.complaint.problem ? (l(), t("div",
|
|
843
|
-
r(
|
|
954
|
+
e.requestType && e.requestType.id === "complaint" && e.complaint.problem ? (l(), t("div", ls, [
|
|
955
|
+
r(w, {
|
|
844
956
|
id: "todo-complaint-check-out",
|
|
845
957
|
value: e.complaint.checkOutDate,
|
|
846
958
|
"is-today-min": !1,
|
|
@@ -854,22 +966,22 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
854
966
|
"wrapper-classes": "ui-overhaul",
|
|
855
967
|
condensed: "",
|
|
856
968
|
required: "",
|
|
857
|
-
"onUpdate:modelValue":
|
|
969
|
+
"onUpdate:modelValue": o[32] || (o[32] = (s) => e.complaint.checkOutDate = s)
|
|
858
970
|
}, null, 8, ["value", "minimum-date", "property-timezone", "locale", "placeholder"])
|
|
859
971
|
])) : i("", !0),
|
|
860
|
-
e.requestType && e.requestType.id === "complaint" && e.complaint.problem ? (l(), t("div",
|
|
861
|
-
r(
|
|
972
|
+
e.requestType && e.requestType.id === "complaint" && e.complaint.problem ? (l(), t("div", ts, [
|
|
973
|
+
r(h, {
|
|
862
974
|
id: "todo-complaint-notes",
|
|
863
975
|
modelValue: e.complaint.notes,
|
|
864
|
-
"onUpdate:modelValue":
|
|
976
|
+
"onUpdate:modelValue": o[33] || (o[33] = (s) => e.complaint.notes = s),
|
|
865
977
|
placeholder: e.$t("HC_WRITE_A_MESSAGE"),
|
|
866
978
|
"textarea-class": "text-inkwell-30 border-gray-12 mb-2",
|
|
867
979
|
"control-class": "w-full",
|
|
868
980
|
rows: 2
|
|
869
981
|
}, null, 8, ["modelValue", "placeholder"])
|
|
870
982
|
])) : i("", !0),
|
|
871
|
-
e.requestType && e.requestType.id === "work_order" ? (l(), t("div",
|
|
872
|
-
r(
|
|
983
|
+
e.requestType && e.requestType.id === "work_order" ? (l(), t("div", is, [
|
|
984
|
+
r(m, {
|
|
873
985
|
id: "todo-work-order-item",
|
|
874
986
|
selected: e.workOrder.item,
|
|
875
987
|
options: e.itemOptionsList,
|
|
@@ -880,11 +992,11 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
880
992
|
"group-values": "options",
|
|
881
993
|
condensed: "",
|
|
882
994
|
required: "",
|
|
883
|
-
"onUpdate:modelValue":
|
|
995
|
+
"onUpdate:modelValue": o[34] || (o[34] = (s) => e.workOrder.item = s)
|
|
884
996
|
}, null, 8, ["selected", "options", "disabled", "placeholder"])
|
|
885
997
|
])) : i("", !0),
|
|
886
|
-
e.requestType && e.requestType.id === "work_order" && e.workOrder.item ? (l(), t("div",
|
|
887
|
-
r(
|
|
998
|
+
e.requestType && e.requestType.id === "work_order" && e.workOrder.item ? (l(), t("div", rs, [
|
|
999
|
+
r(m, {
|
|
888
1000
|
id: "todo-work-order-issue",
|
|
889
1001
|
selected: e.workOrder.issue,
|
|
890
1002
|
options: e.workOrderIssues,
|
|
@@ -892,33 +1004,33 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
892
1004
|
placeholder: e.$t("HC_ISSUE"),
|
|
893
1005
|
condensed: "",
|
|
894
1006
|
required: "",
|
|
895
|
-
"onUpdate:modelValue":
|
|
1007
|
+
"onUpdate:modelValue": o[35] || (o[35] = (s) => e.workOrder.issue = s)
|
|
896
1008
|
}, null, 8, ["selected", "options", "disabled", "placeholder"])
|
|
897
1009
|
])) : i("", !0),
|
|
898
|
-
e.requestType && e.requestType.id === "work_order" && e.workOrder.item && e.workOrder.issue ? (l(), t("div",
|
|
899
|
-
r(
|
|
1010
|
+
e.requestType && e.requestType.id === "work_order" && e.workOrder.item && e.workOrder.issue ? (l(), t("div", ns, [
|
|
1011
|
+
r(m, {
|
|
900
1012
|
id: "todo-work-order-requested-by",
|
|
901
1013
|
selected: e.workOrder.requestedBy,
|
|
902
1014
|
options: e.requestedByOptions,
|
|
903
1015
|
placeholder: e.$t("HC_REQUESTED_BY"),
|
|
904
1016
|
condensed: "",
|
|
905
1017
|
required: "",
|
|
906
|
-
"onUpdate:modelValue":
|
|
1018
|
+
"onUpdate:modelValue": o[36] || (o[36] = (s) => e.workOrder.requestedBy = s)
|
|
907
1019
|
}, null, 8, ["selected", "options", "placeholder"])
|
|
908
1020
|
])) : i("", !0),
|
|
909
|
-
e.requestType && e.requestType.id === "work_order" && e.workOrder.item && e.workOrder.issue ? (l(), t("div",
|
|
910
|
-
r(
|
|
1021
|
+
e.requestType && e.requestType.id === "work_order" && e.workOrder.item && e.workOrder.issue ? (l(), t("div", ds, [
|
|
1022
|
+
r(m, {
|
|
911
1023
|
id: "todo-work-order-assign-type",
|
|
912
1024
|
selected: e.workOrder.assignType,
|
|
913
1025
|
options: e.assignTypes,
|
|
914
1026
|
placeholder: e.$t("HC_ASSIGN_TYPE"),
|
|
915
1027
|
condensed: "",
|
|
916
1028
|
required: "",
|
|
917
|
-
"onUpdate:modelValue":
|
|
1029
|
+
"onUpdate:modelValue": o[37] || (o[37] = (s) => e.workOrder.assignType = s)
|
|
918
1030
|
}, null, 8, ["selected", "options", "placeholder"])
|
|
919
1031
|
])) : i("", !0),
|
|
920
|
-
e.requestType && e.requestType.id === "work_order" && e.workOrder.item && e.workOrder.issue ? (l(), t("div",
|
|
921
|
-
e.requestType && e.requestType.id === "work_order" && e.workOrder.item && e.workOrder.issue && e.workOrder.assignType && e.workOrder.assignType.id === 1 ? (l(), k(
|
|
1032
|
+
e.requestType && e.requestType.id === "work_order" && e.workOrder.item && e.workOrder.issue ? (l(), t("div", as, [
|
|
1033
|
+
e.requestType && e.requestType.id === "work_order" && e.workOrder.item && e.workOrder.issue && e.workOrder.assignType && e.workOrder.assignType.id === 1 ? (l(), k(m, {
|
|
922
1034
|
key: 0,
|
|
923
1035
|
id: "todo-work-order-assign-type",
|
|
924
1036
|
selected: e.workOrder.department,
|
|
@@ -927,9 +1039,9 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
927
1039
|
placeholder: e.$t("HC_ASSIGN_TO"),
|
|
928
1040
|
condensed: "",
|
|
929
1041
|
required: "",
|
|
930
|
-
"onUpdate:modelValue":
|
|
1042
|
+
"onUpdate:modelValue": o[38] || (o[38] = (s) => e.workOrder.department = s)
|
|
931
1043
|
}, null, 8, ["selected", "options", "disabled", "placeholder"])) : i("", !0),
|
|
932
|
-
e.requestType && e.requestType.id === "work_order" && e.workOrder.item && e.workOrder.issue && e.workOrder.assignType && e.workOrder.assignType.id === 2 ? (l(), k(
|
|
1044
|
+
e.requestType && e.requestType.id === "work_order" && e.workOrder.item && e.workOrder.issue && e.workOrder.assignType && e.workOrder.assignType.id === 2 ? (l(), k(m, {
|
|
933
1045
|
key: 1,
|
|
934
1046
|
id: "todo-work-order-assign-type",
|
|
935
1047
|
selected: e.workOrder.person,
|
|
@@ -941,11 +1053,11 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
941
1053
|
"group-values": "options",
|
|
942
1054
|
condensed: "",
|
|
943
1055
|
required: "",
|
|
944
|
-
"onUpdate:modelValue":
|
|
1056
|
+
"onUpdate:modelValue": o[39] || (o[39] = (s) => e.workOrder.person = s)
|
|
945
1057
|
}, null, 8, ["selected", "options", "disabled", "placeholder"])) : i("", !0)
|
|
946
1058
|
])) : i("", !0),
|
|
947
|
-
e.requestType && e.requestType.id === "work_order" && e.workOrder.item && e.workOrder.issue ? (l(), t("div",
|
|
948
|
-
r(
|
|
1059
|
+
e.requestType && e.requestType.id === "work_order" && e.workOrder.item && e.workOrder.issue ? (l(), t("div", ps, [
|
|
1060
|
+
r(w, {
|
|
949
1061
|
id: "todo-work-order-due",
|
|
950
1062
|
value: e.workOrder.due,
|
|
951
1063
|
"is-today-min": !0,
|
|
@@ -958,22 +1070,22 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
958
1070
|
"wrapper-classes": "ui-overhaul",
|
|
959
1071
|
condensed: "",
|
|
960
1072
|
required: "",
|
|
961
|
-
"onUpdate:modelValue":
|
|
1073
|
+
"onUpdate:modelValue": o[40] || (o[40] = (s) => e.workOrder.due = s)
|
|
962
1074
|
}, null, 8, ["value", "property-timezone", "locale", "placeholder"])
|
|
963
1075
|
])) : i("", !0),
|
|
964
|
-
e.requestType && e.requestType.id === "work_order" && e.workOrder.item && e.workOrder.issue ? (l(), t("div",
|
|
965
|
-
r(
|
|
1076
|
+
e.requestType && e.requestType.id === "work_order" && e.workOrder.item && e.workOrder.issue ? (l(), t("div", us, [
|
|
1077
|
+
r(h, {
|
|
966
1078
|
id: "todo-work-order-notes",
|
|
967
1079
|
modelValue: e.workOrder.notes,
|
|
968
|
-
"onUpdate:modelValue":
|
|
1080
|
+
"onUpdate:modelValue": o[41] || (o[41] = (s) => e.workOrder.notes = s),
|
|
969
1081
|
placeholder: e.$t("HC_WRITE_A_MESSAGE"),
|
|
970
1082
|
"textarea-class": "text-inkwell-30 border-gray-12 mb-2",
|
|
971
1083
|
"control-class": "w-full",
|
|
972
1084
|
rows: 2
|
|
973
1085
|
}, null, 8, ["modelValue", "placeholder"])
|
|
974
1086
|
])) : i("", !0),
|
|
975
|
-
e.requestType && e.requestType.id === "request" ? (l(), t("div",
|
|
976
|
-
r(
|
|
1087
|
+
e.requestType && e.requestType.id === "request" ? (l(), t("div", ms, [
|
|
1088
|
+
r(m, {
|
|
977
1089
|
id: "todo-request-item",
|
|
978
1090
|
selected: e.request.item,
|
|
979
1091
|
options: e.itemOptionsList,
|
|
@@ -981,22 +1093,22 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
981
1093
|
placeholder: e.$t("HC_ITEM"),
|
|
982
1094
|
condensed: "",
|
|
983
1095
|
required: "",
|
|
984
|
-
"onUpdate:modelValue":
|
|
1096
|
+
"onUpdate:modelValue": o[42] || (o[42] = (s) => e.request.item = s)
|
|
985
1097
|
}, null, 8, ["selected", "options", "disabled", "placeholder"])
|
|
986
1098
|
])) : i("", !0),
|
|
987
|
-
e.requestType && e.requestType.id === "request" && e.request.item ? (l(), t("div",
|
|
988
|
-
r(
|
|
1099
|
+
e.requestType && e.requestType.id === "request" && e.request.item ? (l(), t("div", ys, [
|
|
1100
|
+
r(m, {
|
|
989
1101
|
id: "todo-request-requested-by",
|
|
990
1102
|
selected: e.request.requestedBy,
|
|
991
1103
|
options: e.requestedByOptions,
|
|
992
1104
|
placeholder: e.$t("HC_REQUESTED_BY"),
|
|
993
1105
|
condensed: "",
|
|
994
1106
|
required: "",
|
|
995
|
-
"onUpdate:modelValue":
|
|
1107
|
+
"onUpdate:modelValue": o[43] || (o[43] = (s) => e.request.requestedBy = s)
|
|
996
1108
|
}, null, 8, ["selected", "options", "placeholder"])
|
|
997
1109
|
])) : i("", !0),
|
|
998
|
-
e.requestType && e.requestType.id === "request" && e.request.item ? (l(), t("div",
|
|
999
|
-
r(
|
|
1110
|
+
e.requestType && e.requestType.id === "request" && e.request.item ? (l(), t("div", ks, [
|
|
1111
|
+
r(w, {
|
|
1000
1112
|
id: "todo-request-due",
|
|
1001
1113
|
value: e.request.due,
|
|
1002
1114
|
"is-today-min": !0,
|
|
@@ -1009,22 +1121,22 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
1009
1121
|
"wrapper-classes": "ui-overhaul",
|
|
1010
1122
|
condensed: "",
|
|
1011
1123
|
required: "",
|
|
1012
|
-
"onUpdate:modelValue":
|
|
1124
|
+
"onUpdate:modelValue": o[44] || (o[44] = (s) => e.request.due = s)
|
|
1013
1125
|
}, null, 8, ["value", "property-timezone", "locale", "placeholder"])
|
|
1014
1126
|
])) : i("", !0),
|
|
1015
|
-
e.requestType && e.requestType.id === "request" && e.request.item ? (l(), t("div",
|
|
1016
|
-
r(
|
|
1127
|
+
e.requestType && e.requestType.id === "request" && e.request.item ? (l(), t("div", gs, [
|
|
1128
|
+
r(m, {
|
|
1017
1129
|
id: "todo-request-assign-type",
|
|
1018
1130
|
selected: e.request.assignType,
|
|
1019
1131
|
options: e.assignTypes,
|
|
1020
1132
|
placeholder: e.$t("HC_ASSIGN_TYPE"),
|
|
1021
1133
|
condensed: "",
|
|
1022
1134
|
required: "",
|
|
1023
|
-
"onUpdate:modelValue":
|
|
1135
|
+
"onUpdate:modelValue": o[45] || (o[45] = (s) => e.request.assignType = s)
|
|
1024
1136
|
}, null, 8, ["selected", "options", "placeholder"])
|
|
1025
1137
|
])) : i("", !0),
|
|
1026
|
-
e.requestType && e.requestType.id === "request" && e.request.item ? (l(), t("div",
|
|
1027
|
-
e.requestType && e.requestType.id === "request" && e.request.item && e.request.assignType && e.request.assignType.id === 1 ? (l(), k(
|
|
1138
|
+
e.requestType && e.requestType.id === "request" && e.request.item ? (l(), t("div", hs, [
|
|
1139
|
+
e.requestType && e.requestType.id === "request" && e.request.item && e.request.assignType && e.request.assignType.id === 1 ? (l(), k(m, {
|
|
1028
1140
|
key: 0,
|
|
1029
1141
|
id: "todo-request-assign-type",
|
|
1030
1142
|
selected: e.request.department,
|
|
@@ -1033,9 +1145,9 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
1033
1145
|
placeholder: e.$t("HC_ASSIGN_TO"),
|
|
1034
1146
|
condensed: "",
|
|
1035
1147
|
required: "",
|
|
1036
|
-
"onUpdate:modelValue":
|
|
1148
|
+
"onUpdate:modelValue": o[46] || (o[46] = (s) => e.request.department = s)
|
|
1037
1149
|
}, null, 8, ["selected", "options", "disabled", "placeholder"])) : i("", !0),
|
|
1038
|
-
e.requestType && e.requestType.id === "request" && e.request.item && e.request.assignType && e.request.assignType.id === 2 ? (l(), k(
|
|
1150
|
+
e.requestType && e.requestType.id === "request" && e.request.item && e.request.assignType && e.request.assignType.id === 2 ? (l(), k(m, {
|
|
1039
1151
|
key: 1,
|
|
1040
1152
|
id: "todo-request-assign-type",
|
|
1041
1153
|
selected: e.request.person,
|
|
@@ -1047,11 +1159,11 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
1047
1159
|
"group-values": "options",
|
|
1048
1160
|
condensed: "",
|
|
1049
1161
|
required: "",
|
|
1050
|
-
"onUpdate:modelValue":
|
|
1162
|
+
"onUpdate:modelValue": o[47] || (o[47] = (s) => e.request.person = s)
|
|
1051
1163
|
}, null, 8, ["selected", "options", "disabled", "placeholder"])) : i("", !0)
|
|
1052
1164
|
])) : i("", !0),
|
|
1053
|
-
e.requestType && e.requestType.id === "request" && e.request.item && e.allowWhenWhere ? (l(), t("div",
|
|
1054
|
-
r(
|
|
1165
|
+
e.requestType && e.requestType.id === "request" && e.request.item && e.allowWhenWhere ? (l(), t("div", ws, [
|
|
1166
|
+
r(m, {
|
|
1055
1167
|
id: "todo-request-when",
|
|
1056
1168
|
selected: e.request.when,
|
|
1057
1169
|
options: e.whenOptions,
|
|
@@ -1059,11 +1171,11 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
1059
1171
|
placeholder: e.$t("HC_SELECT_WHEN"),
|
|
1060
1172
|
required: e.allowWhenWhere,
|
|
1061
1173
|
condensed: "",
|
|
1062
|
-
"onUpdate:modelValue":
|
|
1174
|
+
"onUpdate:modelValue": o[48] || (o[48] = (s) => e.request.when = s)
|
|
1063
1175
|
}, null, 8, ["selected", "options", "disabled", "placeholder", "required"])
|
|
1064
1176
|
])) : i("", !0),
|
|
1065
|
-
e.requestType && e.requestType.id === "request" && e.request.item && e.allowWhenWhere ? (l(), t("div",
|
|
1066
|
-
r(
|
|
1177
|
+
e.requestType && e.requestType.id === "request" && e.request.item && e.allowWhenWhere ? (l(), t("div", qs, [
|
|
1178
|
+
r(m, {
|
|
1067
1179
|
id: "todo-request-where",
|
|
1068
1180
|
selected: e.request.where,
|
|
1069
1181
|
options: e.whereOptions,
|
|
@@ -1071,14 +1183,14 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
1071
1183
|
placeholder: e.$t("HC_SELECT_WHERE"),
|
|
1072
1184
|
required: e.allowWhenWhere,
|
|
1073
1185
|
condensed: "",
|
|
1074
|
-
"onUpdate:modelValue":
|
|
1186
|
+
"onUpdate:modelValue": o[49] || (o[49] = (s) => e.request.where = s)
|
|
1075
1187
|
}, null, 8, ["selected", "options", "disabled", "placeholder", "required"])
|
|
1076
1188
|
])) : i("", !0),
|
|
1077
|
-
e.requestType && e.requestType.id === "request" && e.request.item ? (l(), t("div",
|
|
1078
|
-
r(
|
|
1189
|
+
e.requestType && e.requestType.id === "request" && e.request.item ? (l(), t("div", cs, [
|
|
1190
|
+
r(h, {
|
|
1079
1191
|
id: "todo-request-notes",
|
|
1080
1192
|
modelValue: e.request.notes,
|
|
1081
|
-
"onUpdate:modelValue":
|
|
1193
|
+
"onUpdate:modelValue": o[50] || (o[50] = (s) => e.request.notes = s),
|
|
1082
1194
|
placeholder: e.$t("HC_WRITE_A_MESSAGE"),
|
|
1083
1195
|
"textarea-class": "text-inkwell-30 border-gray-12 mb-2",
|
|
1084
1196
|
"control-class": "w-full",
|
|
@@ -1087,49 +1199,49 @@ function po(e, s, uo, mo, yo, ko) {
|
|
|
1087
1199
|
])) : i("", !0)
|
|
1088
1200
|
])
|
|
1089
1201
|
])) : i("", !0),
|
|
1090
|
-
n("div",
|
|
1091
|
-
r(
|
|
1202
|
+
n("div", vs, [
|
|
1203
|
+
r(f, {
|
|
1092
1204
|
status: "secondary",
|
|
1093
|
-
onClick:
|
|
1205
|
+
onClick: E(e.closeRequest, ["prevent"])
|
|
1094
1206
|
}, {
|
|
1095
1207
|
default: a(() => [
|
|
1096
|
-
|
|
1208
|
+
g(d(e.$t("HC_BACK")), 1)
|
|
1097
1209
|
]),
|
|
1098
1210
|
_: 1
|
|
1099
1211
|
}, 8, ["onClick"]),
|
|
1100
|
-
r(
|
|
1212
|
+
r(f, {
|
|
1101
1213
|
disabled: !e.validateToDo,
|
|
1102
1214
|
loading: e.requestLoading,
|
|
1103
1215
|
"use-loading-spinner": !0,
|
|
1104
1216
|
onClick: e.onCreateRequestSubmit
|
|
1105
1217
|
}, {
|
|
1106
1218
|
default: a(() => [
|
|
1107
|
-
|
|
1219
|
+
g(d(e.$t("HC_POST")), 1)
|
|
1108
1220
|
]),
|
|
1109
1221
|
_: 1
|
|
1110
1222
|
}, 8, ["disabled", "loading", "onClick"])
|
|
1111
1223
|
])
|
|
1112
1224
|
], 32)
|
|
1113
1225
|
], 2),
|
|
1114
|
-
e.loading.pms ? (l(), t("div",
|
|
1115
|
-
r(
|
|
1226
|
+
e.loading.pms ? (l(), t("div", Ts)) : !e.loading.pms && e.roomDetailsData.updatedAt ? (l(), t("div", fs, [
|
|
1227
|
+
r(u, {
|
|
1116
1228
|
class: "flex-shrink-1 mr-2",
|
|
1117
1229
|
size: "sm",
|
|
1118
1230
|
color: "inkwell-0",
|
|
1119
1231
|
icon: "clock-alarm",
|
|
1120
1232
|
type: "outline"
|
|
1121
1233
|
}),
|
|
1122
|
-
n("p",
|
|
1234
|
+
n("p", Cs, d(e.$t("HC_PMS_UPDATED")) + " " + d(e.DateTime.fromISO(
|
|
1123
1235
|
e.roomDetailsData.updatedAt
|
|
1124
1236
|
).toRelative({ locale: e.locale })), 1)
|
|
1125
1237
|
])) : i("", !0)
|
|
1126
|
-
], 8,
|
|
1238
|
+
], 8, I)
|
|
1127
1239
|
]),
|
|
1128
1240
|
_: 3
|
|
1129
1241
|
}, 8, ["model-value", "align", "position", "size", "teleport", "teleport-to"])
|
|
1130
|
-
], 40,
|
|
1242
|
+
], 40, M)) : i("", !0);
|
|
1131
1243
|
}
|
|
1132
|
-
const
|
|
1244
|
+
const Rs = /* @__PURE__ */ G(U, [["render", bs]]);
|
|
1133
1245
|
export {
|
|
1134
|
-
|
|
1246
|
+
Rs as default
|
|
1135
1247
|
};
|