sm-click-library-ui 0.0.436 → 0.0.437
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-IhFtiLB7.js → index-1s0d8y-Q.js} +581 -570
- package/dist/sm-click-library-ui.es.js +1 -1
- package/dist/sm-click-library-ui.umd.js +9 -9
- package/dist/style.css +1 -1
- package/dist/tailwind.css +3 -0
- package/dist/{web-QrpwTUCA.js → web-BehJFtm_.js} +2 -2
- package/dist/{web-v_Ggs3-k.js → web-luW_D2XX.js} +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { unref as Se, getCurrentScope as Is, onScopeDispose as Ws, watch as Ve, ref as G, computed as ue, createElementBlock as y, openBlock as v, createElementVNode as r, createCommentVNode as
|
|
1
|
+
import { unref as Se, getCurrentScope as Is, onScopeDispose as Ws, watch as Ve, ref as G, computed as ue, createElementBlock as y, openBlock as v, createElementVNode as r, createCommentVNode as Y, toDisplayString as re, normalizeClass as le, renderSlot as mt, createBlock as ze, Transition as Ht, withCtx as Fe, onMounted as lt, resolveComponent as Dt, createTextVNode as Qe, Fragment as Pe, renderList as Ie, createVNode as Me, nextTick as rt, onBeforeUnmount as nn, withModifiers as It, normalizeStyle as Ze, TransitionGroup as ho, reactive as dn, isRef as qs, withDirectives as Ye, withKeys as mo, vModelText as kt, defineComponent as gn, toRefs as po, onUnmounted as Wn, vShow as Zt, pushScopeId as Us, popScopeId as Zs, inject as qn, h as Ae, shallowReactive as Y1, watchEffect as $1, provide as go, useId as Ys, getCurrentInstance as Xs, onUpdated as Ks, cloneVNode as Qs, mergeProps as Js, createSlots as ei, useSlots as ti, vModelSelect as ni, createStaticVNode as xe, normalizeProps as ai, guardReactiveProps as oi, vModelCheckbox as vo, Teleport as yo, vModelDynamic as si, toRaw as ii } from "vue";
|
|
2
2
|
import { defineStore as Fn, storeToRefs as ri } from "pinia";
|
|
3
3
|
function li(e) {
|
|
4
4
|
return Is() ? (Ws(e), !0) : !1;
|
|
@@ -125,7 +125,7 @@ const Oe = (e, t) => {
|
|
|
125
125
|
]),
|
|
126
126
|
r("div", null, [
|
|
127
127
|
(v(), y("svg", {
|
|
128
|
-
class:
|
|
128
|
+
class: le([a.value ? "rotate-180 transition-transform ease-in-out" : "", "w-3 h-3 text-white"]),
|
|
129
129
|
xmlns: "http://www.w3.org/2000/svg",
|
|
130
130
|
fill: "currentColor",
|
|
131
131
|
viewBox: "0 0 24 24"
|
|
@@ -142,7 +142,7 @@ const Oe = (e, t) => {
|
|
|
142
142
|
r("div", null, [
|
|
143
143
|
mt(l.$slots, "free-slot", {}, void 0, !0)
|
|
144
144
|
])
|
|
145
|
-
])) :
|
|
145
|
+
])) : Y("", !0)
|
|
146
146
|
], 512));
|
|
147
147
|
}
|
|
148
148
|
}, wo = /* @__PURE__ */ Oe(pi, [["__scopeId", "data-v-970e6830"]]), gi = {
|
|
@@ -185,7 +185,7 @@ const Oe = (e, t) => {
|
|
|
185
185
|
r("div", vi, [
|
|
186
186
|
r("div", yi, [
|
|
187
187
|
r("div", {
|
|
188
|
-
class:
|
|
188
|
+
class: le(["z-50 w-full shadow rounded-2xl shadow-black", e.size])
|
|
189
189
|
}, [
|
|
190
190
|
r("div", xi, [
|
|
191
191
|
r("section", bi, [
|
|
@@ -235,7 +235,7 @@ const Oe = (e, t) => {
|
|
|
235
235
|
], 2)
|
|
236
236
|
])
|
|
237
237
|
])
|
|
238
|
-
])) :
|
|
238
|
+
])) : Y("", !0)
|
|
239
239
|
];
|
|
240
240
|
}),
|
|
241
241
|
_: 3
|
|
@@ -289,7 +289,7 @@ const Oe = (e, t) => {
|
|
|
289
289
|
simple_card_error: t.typeCard === "error"
|
|
290
290
|
}));
|
|
291
291
|
return (a, o) => (v(), y("div", {
|
|
292
|
-
class:
|
|
292
|
+
class: le([n.value, "simple_card"])
|
|
293
293
|
}, [
|
|
294
294
|
r("div", Ai, [
|
|
295
295
|
e.typeCard === "success" ? (v(), y("svg", Ti, [...o[0] || (o[0] = [
|
|
@@ -299,7 +299,7 @@ const Oe = (e, t) => {
|
|
|
299
299
|
d: "M0.25 10C0.25 4.61522 4.61522 0.25 10 0.25C15.3848 0.25 19.75 4.61522 19.75 10C19.75 15.3848 15.3848 19.75 10 19.75C4.61522 19.75 0.25 15.3848 0.25 10ZM13.6103 8.18593C13.8511 7.84887 13.773 7.38046 13.4359 7.1397C13.0989 6.89894 12.6305 6.97701 12.3897 7.31407L9.1543 11.8436L7.53033 10.2197C7.23744 9.92678 6.76256 9.92678 6.46967 10.2197C6.17678 10.5126 6.17678 10.9874 6.46967 11.2803L8.71967 13.5303C8.87556 13.6862 9.09215 13.7656 9.31186 13.7474C9.53157 13.7293 9.73216 13.6153 9.8603 13.4359L13.6103 8.18593Z",
|
|
300
300
|
fill: "currentColor"
|
|
301
301
|
}, null, -1)
|
|
302
|
-
])])) :
|
|
302
|
+
])])) : Y("", !0),
|
|
303
303
|
e.typeCard === "info" ? (v(), y("svg", Li, [...o[1] || (o[1] = [
|
|
304
304
|
r("path", {
|
|
305
305
|
"fill-rule": "evenodd",
|
|
@@ -307,7 +307,7 @@ const Oe = (e, t) => {
|
|
|
307
307
|
d: "M0.25 10C0.25 4.61522 4.61522 0.25 10 0.25C15.3848 0.25 19.75 4.61522 19.75 10C19.75 15.3848 15.3848 19.75 10 19.75C4.61522 19.75 0.25 15.3848 0.25 10ZM10 6.25C10.4142 6.25 10.75 6.58579 10.75 7V10.75C10.75 11.1642 10.4142 11.5 10 11.5C9.58579 11.5 9.25 11.1642 9.25 10.75V7C9.25 6.58579 9.58579 6.25 10 6.25ZM10 14.5C10.4142 14.5 10.75 14.1642 10.75 13.75C10.75 13.3358 10.4142 13 10 13C9.58579 13 9.25 13.3358 9.25 13.75C9.25 14.1642 9.58579 14.5 10 14.5Z",
|
|
308
308
|
fill: "currentColor"
|
|
309
309
|
}, null, -1)
|
|
310
|
-
])])) :
|
|
310
|
+
])])) : Y("", !0),
|
|
311
311
|
e.typeCard === "alert" ? (v(), y("svg", Fi, [...o[2] || (o[2] = [
|
|
312
312
|
r("path", {
|
|
313
313
|
"fill-rule": "evenodd",
|
|
@@ -315,14 +315,14 @@ const Oe = (e, t) => {
|
|
|
315
315
|
d: "M8.40123 2.0034C9.55572 0.0022862 12.4439 0.0022856 13.5983 2.0034L20.9527 14.7509C22.1065 16.7509 20.6631 19.2501 18.3541 19.2501H3.64546C1.33649 19.2501 -0.106939 16.7509 1.04691 14.7509L8.40123 2.0034ZM11 7.25C11.4142 7.25 11.75 7.58579 11.75 8V11.75C11.75 12.1642 11.4142 12.5 11 12.5C10.5858 12.5 10.25 12.1642 10.25 11.75V8C10.25 7.58579 10.5858 7.25 11 7.25ZM11 15.5C11.4142 15.5 11.75 15.1642 11.75 14.75C11.75 14.3358 11.4142 14 11 14C10.5858 14 10.25 14.3358 10.25 14.75C10.25 15.1642 10.5858 15.5 11 15.5Z",
|
|
316
316
|
fill: "currentColor"
|
|
317
317
|
}, null, -1)
|
|
318
|
-
])])) :
|
|
318
|
+
])])) : Y("", !0),
|
|
319
319
|
e.typeCard === "error" ? (v(), y("svg", $i, [...o[3] || (o[3] = [
|
|
320
320
|
r("path", {
|
|
321
321
|
"fill-rule": "evenodd",
|
|
322
322
|
d: "M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm7.707-3.707a1 1 0 0 0-1.414 1.414L10.586 12l-2.293 2.293a1 1 0 1 0 1.414 1.414L12 13.414l2.293 2.293a1 1 0 0 0 1.414-1.414L13.414 12l2.293-2.293a1 1 0 0 0-1.414-1.414L12 10.586 9.707 8.293Z",
|
|
323
323
|
"clip-rule": "evenodd"
|
|
324
324
|
}, null, -1)
|
|
325
|
-
])])) :
|
|
325
|
+
])])) : Y("", !0),
|
|
326
326
|
r("p", Di, re(e.content.title), 1)
|
|
327
327
|
]),
|
|
328
328
|
r("section", Bi, [
|
|
@@ -2083,22 +2083,22 @@ at.getAdapter = Wo.getAdapter;
|
|
|
2083
2083
|
at.HttpStatusCode = J1;
|
|
2084
2084
|
at.default = at;
|
|
2085
2085
|
const {
|
|
2086
|
-
Axios:
|
|
2087
|
-
AxiosError:
|
|
2088
|
-
CanceledError:
|
|
2089
|
-
isCancel:
|
|
2090
|
-
CancelToken:
|
|
2091
|
-
VERSION:
|
|
2092
|
-
all:
|
|
2093
|
-
Cancel:
|
|
2094
|
-
isAxiosError:
|
|
2095
|
-
spread:
|
|
2096
|
-
toFormData:
|
|
2097
|
-
AxiosHeaders:
|
|
2098
|
-
HttpStatusCode:
|
|
2099
|
-
formToJSON:
|
|
2100
|
-
getAdapter:
|
|
2101
|
-
mergeConfig:
|
|
2086
|
+
Axios: rk,
|
|
2087
|
+
AxiosError: lk,
|
|
2088
|
+
CanceledError: ck,
|
|
2089
|
+
isCancel: dk,
|
|
2090
|
+
CancelToken: uk,
|
|
2091
|
+
VERSION: fk,
|
|
2092
|
+
all: hk,
|
|
2093
|
+
Cancel: mk,
|
|
2094
|
+
isAxiosError: pk,
|
|
2095
|
+
spread: gk,
|
|
2096
|
+
toFormData: vk,
|
|
2097
|
+
AxiosHeaders: yk,
|
|
2098
|
+
HttpStatusCode: xk,
|
|
2099
|
+
formToJSON: bk,
|
|
2100
|
+
getAdapter: kk,
|
|
2101
|
+
mergeConfig: wk
|
|
2102
2102
|
} = at, Yo = Fn("auth", {
|
|
2103
2103
|
state: () => ({
|
|
2104
2104
|
jwtToken: null
|
|
@@ -2272,7 +2272,7 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2272
2272
|
const c = Dt("Popper");
|
|
2273
2273
|
return v(), y("main", yl, [
|
|
2274
2274
|
r("div", {
|
|
2275
|
-
class:
|
|
2275
|
+
class: le([{ "rounded-b-none": a.value }, "rounded-lg shadow dark:shadow-gray-400 shadow-gray-900 dark:bg-base-100 bg-base-100 text-center"])
|
|
2276
2276
|
}, [
|
|
2277
2277
|
r("div", xl, [
|
|
2278
2278
|
r("p", {
|
|
@@ -2299,7 +2299,7 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2299
2299
|
d: "M8.217 5.243C9.145 3.988 10.171 3 11.483 3 13.96 3 16 6.153 16.001 9.907c0 2.29-.986 3.725-2.757 3.725-1.543 0-2.395-.866-3.924-3.424l-.667-1.123-.118-.197a54.944 54.944 0 0 0-.53-.877l-1.178 2.08c-1.673 2.925-2.615 3.541-3.923 3.541C1.086 13.632 0 12.217 0 9.973 0 6.388 1.995 3 4.598 3c.319 0 .625.039.924.122.31.086.611.22.913.407.577.359 1.154.915 1.782 1.714Zm1.516 2.224c-.252-.41-.494-.787-.727-1.133L9 6.326c.845-1.305 1.543-1.954 2.372-1.954 1.723 0 3.102 2.537 3.102 5.653 0 1.188-.39 1.877-1.195 1.877-.773 0-1.142-.51-2.61-2.87l-.937-1.565ZM4.846 4.756c.725.1 1.385.634 2.34 2.001A212.13 212.13 0 0 0 5.551 9.3c-1.357 2.126-1.826 2.603-2.581 2.603-.777 0-1.24-.682-1.24-1.9 0-2.602 1.298-5.264 2.846-5.264.091 0 .181.006.27.018Z"
|
|
2300
2300
|
}, null, -1)
|
|
2301
2301
|
])]))
|
|
2302
|
-
])) :
|
|
2302
|
+
])) : Y("", !0),
|
|
2303
2303
|
o.value && o.value.status !== void 0 ? (v(), ze(c, {
|
|
2304
2304
|
key: 2,
|
|
2305
2305
|
class: "dark:popper-light popper-dark",
|
|
@@ -2308,7 +2308,7 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2308
2308
|
}, {
|
|
2309
2309
|
content: Fe(() => [
|
|
2310
2310
|
r("main", {
|
|
2311
|
-
class:
|
|
2311
|
+
class: le(["p-1 rounded text-sm px-3", { "bg-red-500": o.value.status === !1, "bg-green-500": o.value.status === !0, "bg-purple-500": o.value.status === "Offline" }])
|
|
2312
2312
|
}, [
|
|
2313
2313
|
r("div", Al, re(o.value.status === !0 ? "Conectada" : o.value.status === !1 ? "Desconectada" : "Indefinida"), 1)
|
|
2314
2314
|
], 2)
|
|
@@ -2318,11 +2318,11 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2318
2318
|
r("div", { class: "h-5 w-5 border-t-transparent border-solid animate-spin rounded-full border-white border-4" }, null, -1)
|
|
2319
2319
|
])])) : (v(), y("div", {
|
|
2320
2320
|
key: 0,
|
|
2321
|
-
class:
|
|
2321
|
+
class: le([{ "bg-red-500": o.value.status === !1, "bg-green-500": o.value.status === !0, "bg-purple-500": o.value.status === "Offline" }, "text-xs w-5 h-5 py-1 shadow flex justify-start shadow-gray-900 dark:shadow-gray-400 rounded-full cursor-pointer transition-all duration-200 ease-in-out"])
|
|
2322
2322
|
}, null, 2))
|
|
2323
2323
|
]),
|
|
2324
2324
|
_: 1
|
|
2325
|
-
})) :
|
|
2325
|
+
})) : Y("", !0)
|
|
2326
2326
|
]),
|
|
2327
2327
|
r("div", Ll, re(o.value.name), 1)
|
|
2328
2328
|
])) : (v(), y("span", kl, re(Se(n).instances ? Se(n).instances.length : "Sem") + " Instâncias disponíveis", 1))
|
|
@@ -2372,7 +2372,7 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2372
2372
|
onClick: u[2] || (u[2] = (m) => a.value = !a.value)
|
|
2373
2373
|
}, [
|
|
2374
2374
|
(v(), y("svg", {
|
|
2375
|
-
class:
|
|
2375
|
+
class: le([{ "rotate-180": a.value }, "w-4 h-4 ease-out transition"]),
|
|
2376
2376
|
"aria-hidden": "true",
|
|
2377
2377
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2378
2378
|
width: "24",
|
|
@@ -2398,7 +2398,7 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2398
2398
|
var g;
|
|
2399
2399
|
return v(), y("li", Ol, [
|
|
2400
2400
|
r("button", {
|
|
2401
|
-
class:
|
|
2401
|
+
class: le([o.value && o.value.id === m.id ? "bg-base-100" : "bg-base-200 hover:bg-base-100", "flex rounded-md justify-between items-center p-2 px-1 w-full"]),
|
|
2402
2402
|
onClick: (h) => (o.value = m, a.value = !1, l(m)),
|
|
2403
2403
|
disabled: o.value && o.value.id === m.id || e.type && m.type !== e.type || e.webhooks !== void 0 && e.webhooks !== ((g = m.config) == null ? void 0 : g.webhooks)
|
|
2404
2404
|
}, [
|
|
@@ -2420,7 +2420,7 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2420
2420
|
d: "M8.217 5.243C9.145 3.988 10.171 3 11.483 3 13.96 3 16 6.153 16.001 9.907c0 2.29-.986 3.725-2.757 3.725-1.543 0-2.395-.866-3.924-3.424l-.667-1.123-.118-.197a54.944 54.944 0 0 0-.53-.877l-1.178 2.08c-1.673 2.925-2.615 3.541-3.923 3.541C1.086 13.632 0 12.217 0 9.973 0 6.388 1.995 3 4.598 3c.319 0 .625.039.924.122.31.086.611.22.913.407.577.359 1.154.915 1.782 1.714Zm1.516 2.224c-.252-.41-.494-.787-.727-1.133L9 6.326c.845-1.305 1.543-1.954 2.372-1.954 1.723 0 3.102 2.537 3.102 5.653 0 1.188-.39 1.877-1.195 1.877-.773 0-1.142-.51-2.61-2.87l-.937-1.565ZM4.846 4.756c.725.1 1.385.634 2.34 2.001A212.13 212.13 0 0 0 5.551 9.3c-1.357 2.126-1.826 2.603-2.581 2.603-.777 0-1.24-.682-1.24-1.9 0-2.602 1.298-5.264 2.846-5.264.091 0 .181.006.27.018Z"
|
|
2421
2421
|
}, null, -1)
|
|
2422
2422
|
])]))
|
|
2423
|
-
])) :
|
|
2423
|
+
])) : Y("", !0),
|
|
2424
2424
|
Me(c, {
|
|
2425
2425
|
class: "dark:popper-light popper-dark",
|
|
2426
2426
|
hover: !0,
|
|
@@ -2438,7 +2438,7 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2438
2438
|
d: "M8 10V7a4 4 0 1 1 8 0v3h1a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h1Zm2-3a2 2 0 1 1 4 0v3h-4V7Zm2 6a1 1 0 0 1 1 1v3a1 1 0 1 1-2 0v-3a1 1 0 0 1 1-1Z",
|
|
2439
2439
|
"clip-rule": "evenodd"
|
|
2440
2440
|
}, null, -1)
|
|
2441
|
-
])])) :
|
|
2441
|
+
])])) : Y("", !0)
|
|
2442
2442
|
];
|
|
2443
2443
|
}),
|
|
2444
2444
|
_: 2
|
|
@@ -2451,7 +2451,7 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2451
2451
|
}, {
|
|
2452
2452
|
content: Fe(() => [
|
|
2453
2453
|
r("main", {
|
|
2454
|
-
class:
|
|
2454
|
+
class: le(["p-1 rounded px-3", { "bg-red-500": m.status === !1, "bg-green-500": m.status === !0, "bg-purple-500": m.status === "Offline" }])
|
|
2455
2455
|
}, [
|
|
2456
2456
|
r("div", Nl, re(m.status === !0 ? "Conectada" : m.status === !1 ? "Desconectada" : "Indefinida"), 1)
|
|
2457
2457
|
], 2)
|
|
@@ -2461,7 +2461,7 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2461
2461
|
r("div", { class: "h-5 w-5 border-t-transparent border-solid animate-spin rounded-full border-white border-4" }, null, -1)
|
|
2462
2462
|
])])) : (v(), y("div", {
|
|
2463
2463
|
key: 0,
|
|
2464
|
-
class:
|
|
2464
|
+
class: le([{ "bg-red-500": m.status === !1, "bg-green-500": m.status === !0, "bg-purple-500": m.status === "Offline" }, "text-xs w-5 h-5 py-1 shadow flex justify-start shadow-gray-900 dark:shadow-gray-400 rounded-full cursor-pointer transition-all duration-200 ease-in-out"])
|
|
2465
2465
|
}, null, 2))
|
|
2466
2466
|
]),
|
|
2467
2467
|
_: 2
|
|
@@ -2491,13 +2491,13 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2491
2491
|
], -1))
|
|
2492
2492
|
]),
|
|
2493
2493
|
_: 2
|
|
2494
|
-
}, 1024)) :
|
|
2494
|
+
}, 1024)) : Y("", !0)
|
|
2495
2495
|
])
|
|
2496
2496
|
], 10, Pl)
|
|
2497
2497
|
]);
|
|
2498
2498
|
}), 256)) : (v(), y("div", Wl, " Sem instâncias disponíveis"))
|
|
2499
2499
|
])
|
|
2500
|
-
])) :
|
|
2500
|
+
])) : Y("", !0)
|
|
2501
2501
|
]);
|
|
2502
2502
|
};
|
|
2503
2503
|
}
|
|
@@ -2667,7 +2667,7 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2667
2667
|
r("div", {
|
|
2668
2668
|
ref_key: "card",
|
|
2669
2669
|
ref: s,
|
|
2670
|
-
class:
|
|
2670
|
+
class: le(["cpk-popover bg-base-300", [{ "is-loading": e.loading, "is-danger": e.destructive }]]),
|
|
2671
2671
|
style: Ze(S.value),
|
|
2672
2672
|
role: "dialog",
|
|
2673
2673
|
"aria-modal": "false",
|
|
@@ -2695,7 +2695,7 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2695
2695
|
key: 0,
|
|
2696
2696
|
class: "cpk-popover__desc",
|
|
2697
2697
|
id: l.desc
|
|
2698
|
-
}, re(e.description), 9, Xl)) :
|
|
2698
|
+
}, re(e.description), 9, Xl)) : Y("", !0),
|
|
2699
2699
|
r("div", Kl, [
|
|
2700
2700
|
mt(L.$slots, "details", {}, void 0, !0)
|
|
2701
2701
|
]),
|
|
@@ -2708,7 +2708,7 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2708
2708
|
}, re(e.cancelLabel), 9, Jl),
|
|
2709
2709
|
r("button", {
|
|
2710
2710
|
type: "button",
|
|
2711
|
-
class:
|
|
2711
|
+
class: le([
|
|
2712
2712
|
"cyber-button",
|
|
2713
2713
|
"cyber-button--md",
|
|
2714
2714
|
e.destructive ? "cyber-button--danger" : "cyber-button--accent"
|
|
@@ -2716,7 +2716,7 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2716
2716
|
onClick: u,
|
|
2717
2717
|
disabled: e.loading
|
|
2718
2718
|
}, [
|
|
2719
|
-
e.loading ? (v(), y("span", t2)) :
|
|
2719
|
+
e.loading ? (v(), y("span", t2)) : Y("", !0),
|
|
2720
2720
|
r("span", null, re(e.loading ? e.loadingLabel : e.confirmLabel), 1)
|
|
2721
2721
|
], 10, e2)
|
|
2722
2722
|
])
|
|
@@ -2724,7 +2724,7 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2724
2724
|
]),
|
|
2725
2725
|
_: 3
|
|
2726
2726
|
})
|
|
2727
|
-
], 32)) :
|
|
2727
|
+
], 32)) : Y("", !0)
|
|
2728
2728
|
]),
|
|
2729
2729
|
_: 3
|
|
2730
2730
|
}));
|
|
@@ -3876,8 +3876,8 @@ const Bn = Fn("attendant", {
|
|
|
3876
3876
|
r("div", L3, [
|
|
3877
3877
|
e.ev.status !== void 0 ? (v(), y("div", {
|
|
3878
3878
|
key: 0,
|
|
3879
|
-
class:
|
|
3880
|
-
}, null, 2)) :
|
|
3879
|
+
class: le(["status-bar", (m = e.ev) != null && m.status ? "status--up" : "status--down"])
|
|
3880
|
+
}, null, 2)) : Y("", !0),
|
|
3881
3881
|
r("div", F3, [
|
|
3882
3882
|
c[10] || (c[10] = r("strong", null, "Status", -1)),
|
|
3883
3883
|
c[11] || (c[11] = r("br", null, null, -1)),
|
|
@@ -3905,7 +3905,7 @@ const Bn = Fn("attendant", {
|
|
|
3905
3905
|
"clip-rule": "evenodd"
|
|
3906
3906
|
}, null, -1)
|
|
3907
3907
|
])]))
|
|
3908
|
-
])) :
|
|
3908
|
+
])) : Y("", !0),
|
|
3909
3909
|
s.value ? (v(), y("button", {
|
|
3910
3910
|
key: 1,
|
|
3911
3911
|
onClick: c[1] || (c[1] = (b) => u.$emit("delete-message", e.ev)),
|
|
@@ -3913,15 +3913,15 @@ const Bn = Fn("attendant", {
|
|
|
3913
3913
|
"aria-label": "Apagar evento",
|
|
3914
3914
|
disabled: e.ev.deleteLoading || !e.ev.status
|
|
3915
3915
|
}, [
|
|
3916
|
-
e.ev.deleteLoading ?
|
|
3916
|
+
e.ev.deleteLoading ? Y("", !0) : (v(), y("svg", O3, [...c[14] || (c[14] = [
|
|
3917
3917
|
r("path", {
|
|
3918
3918
|
"fill-rule": "evenodd",
|
|
3919
3919
|
d: "M8.586 2.586A2 2 0 0 1 10 2h4a2 2 0 0 1 2 2v2h3a1 1 0 1 1 0 2v12a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V8a1 1 0 0 1 0-2h3V4a2 2 0 0 1 .586-1.414ZM10 6h4V4h-4v2Zm1 4a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Zm4 0a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Z",
|
|
3920
3920
|
"clip-rule": "evenodd"
|
|
3921
3921
|
}, null, -1)
|
|
3922
3922
|
])])),
|
|
3923
|
-
e.ev.deleteLoading ? (v(), y("div", P3)) :
|
|
3924
|
-
], 8, B3)) :
|
|
3923
|
+
e.ev.deleteLoading ? (v(), y("div", P3)) : Y("", !0)
|
|
3924
|
+
], 8, B3)) : Y("", !0),
|
|
3925
3925
|
r("button", {
|
|
3926
3926
|
class: "cyber-button cyber-button--xs cyber-button--accent",
|
|
3927
3927
|
onClick: c[2] || (c[2] = (b) => u.$emit("open-chat", e.ev)),
|
|
@@ -3967,8 +3967,8 @@ const Bn = Fn("attendant", {
|
|
|
3967
3967
|
r("div", R3, [
|
|
3968
3968
|
e.ev.status !== void 0 ? (v(), y("span", {
|
|
3969
3969
|
key: 0,
|
|
3970
|
-
class:
|
|
3971
|
-
}, null, 2)) :
|
|
3970
|
+
class: le(["status-dot-avatar", (g = e.ev) != null && g.status ? "status--up" : "status--down"])
|
|
3971
|
+
}, null, 2)) : Y("", !0),
|
|
3972
3972
|
r("div", z3, [
|
|
3973
3973
|
c[17] || (c[17] = r("strong", null, "Status", -1)),
|
|
3974
3974
|
c[18] || (c[18] = r("br", null, null, -1)),
|
|
@@ -4003,13 +4003,13 @@ const Bn = Fn("attendant", {
|
|
|
4003
4003
|
])
|
|
4004
4004
|
]),
|
|
4005
4005
|
r("p", U3, re(e.ev.content || e.ev.title), 1),
|
|
4006
|
-
e.viewOnly ?
|
|
4006
|
+
e.viewOnly ? Y("", !0) : (v(), y("div", Z3, [
|
|
4007
4007
|
s.value ? (v(), y("button", {
|
|
4008
4008
|
key: 0,
|
|
4009
4009
|
type: "button",
|
|
4010
4010
|
class: "cyber-button cyber-button--sm cyber-button--primary",
|
|
4011
4011
|
onClick: c[3] || (c[3] = (b) => u.$emit("open-message", e.ev))
|
|
4012
|
-
}, re(((h = e.ev) == null ? void 0 : h.status) === !0 ? "Editar" : "Visualizar"), 1)) :
|
|
4012
|
+
}, re(((h = e.ev) == null ? void 0 : h.status) === !0 ? "Editar" : "Visualizar"), 1)) : Y("", !0),
|
|
4013
4013
|
s.value ? (v(), y("button", {
|
|
4014
4014
|
key: 1,
|
|
4015
4015
|
onClick: c[4] || (c[4] = (b) => u.$emit("delete-message", e.ev)),
|
|
@@ -4017,15 +4017,15 @@ const Bn = Fn("attendant", {
|
|
|
4017
4017
|
"aria-label": "Apagar evento",
|
|
4018
4018
|
disabled: e.ev.deleteLoading || !e.ev.status
|
|
4019
4019
|
}, [
|
|
4020
|
-
e.ev.deleteLoading ? (v(), y("div", X3)) :
|
|
4020
|
+
e.ev.deleteLoading ? (v(), y("div", X3)) : Y("", !0),
|
|
4021
4021
|
c[20] || (c[20] = Qe(" Apagar ", -1))
|
|
4022
|
-
], 8, Y3)) :
|
|
4022
|
+
], 8, Y3)) : Y("", !0),
|
|
4023
4023
|
s.value ? (v(), y("button", {
|
|
4024
4024
|
key: 2,
|
|
4025
4025
|
type: "button",
|
|
4026
4026
|
class: "cyber-button cyber-button--sm cyber-button--accent",
|
|
4027
4027
|
onClick: c[5] || (c[5] = (b) => u.$emit("open-chat", e.ev))
|
|
4028
|
-
}, " Abrir conversa ")) :
|
|
4028
|
+
}, " Abrir conversa ")) : Y("", !0)
|
|
4029
4029
|
]))
|
|
4030
4030
|
], 64)) : (v(), y(Pe, { key: 2 }, [
|
|
4031
4031
|
r("div", K3, [
|
|
@@ -4061,8 +4061,8 @@ const Bn = Fn("attendant", {
|
|
|
4061
4061
|
r("div", nc, [
|
|
4062
4062
|
e.ev.status !== void 0 ? (v(), y("span", {
|
|
4063
4063
|
key: 0,
|
|
4064
|
-
class:
|
|
4065
|
-
}, null, 2)) :
|
|
4064
|
+
class: le(["status-bar", (p = e.ev) != null && p.status ? "status--up" : "status--down"])
|
|
4065
|
+
}, null, 2)) : Y("", !0),
|
|
4066
4066
|
r("div", ac, [
|
|
4067
4067
|
c[24] || (c[24] = r("strong", null, "Status", -1)),
|
|
4068
4068
|
c[25] || (c[25] = r("br", null, null, -1)),
|
|
@@ -4090,7 +4090,7 @@ const Bn = Fn("attendant", {
|
|
|
4090
4090
|
"clip-rule": "evenodd"
|
|
4091
4091
|
}, null, -1)
|
|
4092
4092
|
])]))
|
|
4093
|
-
])) :
|
|
4093
|
+
])) : Y("", !0),
|
|
4094
4094
|
s.value ? (v(), y("button", {
|
|
4095
4095
|
key: 1,
|
|
4096
4096
|
onClick: c[7] || (c[7] = (b) => u.$emit("delete-message", e.ev)),
|
|
@@ -4098,15 +4098,15 @@ const Bn = Fn("attendant", {
|
|
|
4098
4098
|
"aria-label": "Apagar evento",
|
|
4099
4099
|
disabled: e.ev.deleteLoading || !e.ev.status
|
|
4100
4100
|
}, [
|
|
4101
|
-
e.ev.deleteLoading ?
|
|
4101
|
+
e.ev.deleteLoading ? Y("", !0) : (v(), y("svg", lc, [...c[28] || (c[28] = [
|
|
4102
4102
|
r("path", {
|
|
4103
4103
|
"fill-rule": "evenodd",
|
|
4104
4104
|
d: "M8.586 2.586A2 2 0 0 1 10 2h4a2 2 0 0 1 2 2v2h3a1 1 0 1 1 0 2v12a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V8a1 1 0 0 1 0-2h3V4a2 2 0 0 1 .586-1.414ZM10 6h4V4h-4v2Zm1 4a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Zm4 0a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Z",
|
|
4105
4105
|
"clip-rule": "evenodd"
|
|
4106
4106
|
}, null, -1)
|
|
4107
4107
|
])])),
|
|
4108
|
-
e.ev.deleteLoading ? (v(), y("div", cc)) :
|
|
4109
|
-
], 8, rc)) :
|
|
4108
|
+
e.ev.deleteLoading ? (v(), y("div", cc)) : Y("", !0)
|
|
4109
|
+
], 8, rc)) : Y("", !0),
|
|
4110
4110
|
r("button", {
|
|
4111
4111
|
class: "cyber-button cyber-button--xs cyber-button--accent",
|
|
4112
4112
|
onClick: c[8] || (c[8] = (b) => u.$emit("open-chat", e.ev)),
|
|
@@ -4482,12 +4482,12 @@ const Bn = Fn("attendant", {
|
|
|
4482
4482
|
key: 0,
|
|
4483
4483
|
class: "filter-badge",
|
|
4484
4484
|
title: `${e.filterCount} filtro${e.filterCount > 1 ? "s" : ""} ativo${e.filterCount > 1 ? "s" : ""}`
|
|
4485
|
-
}, re(e.filterCount), 9, gc)) :
|
|
4485
|
+
}, re(e.filterCount), 9, gc)) : Y("", !0)
|
|
4486
4486
|
]),
|
|
4487
4487
|
r("div", vc, [
|
|
4488
4488
|
r("button", {
|
|
4489
4489
|
type: "button",
|
|
4490
|
-
class:
|
|
4490
|
+
class: le(["cyber-button cyber-button--sm btn-ghost", e.viewMode === "calendar" ? "is-active" : ""]),
|
|
4491
4491
|
onClick: n[5] || (n[5] = (a) => t.$emit("set-view-mode", "calendar")),
|
|
4492
4492
|
"aria-label": "Visão Calendário"
|
|
4493
4493
|
}, [...n[13] || (n[13] = [
|
|
@@ -4507,7 +4507,7 @@ const Bn = Fn("attendant", {
|
|
|
4507
4507
|
])], 2),
|
|
4508
4508
|
r("button", {
|
|
4509
4509
|
type: "button",
|
|
4510
|
-
class:
|
|
4510
|
+
class: le(["cyber-button cyber-button--sm btn-ghost", e.viewMode === "agenda" ? "is-active" : ""]),
|
|
4511
4511
|
onClick: n[6] || (n[6] = (a) => t.$emit("set-view-mode", "agenda")),
|
|
4512
4512
|
"aria-label": "Visão Agenda"
|
|
4513
4513
|
}, [...n[14] || (n[14] = [
|
|
@@ -4693,7 +4693,7 @@ const Bn = Fn("attendant", {
|
|
|
4693
4693
|
(v(!0), y(Pe, null, Ie(e.monthDays, (x, b) => (v(), y("div", {
|
|
4694
4694
|
key: x.key,
|
|
4695
4695
|
style: Ze({ "--i": b }),
|
|
4696
|
-
class:
|
|
4696
|
+
class: le(["cal-cell day-cell border border-base-100 bg-base-200 hover:bg-base-100", [
|
|
4697
4697
|
e.isSameMonthFn(x.date, e.viewDate) ? "" : "opacity-60",
|
|
4698
4698
|
e.isSelectedDayFn(x.date) ? "neon-selected" : "",
|
|
4699
4699
|
e.isTodayFn(x.date) ? "is-today" : "",
|
|
@@ -4701,11 +4701,11 @@ const Bn = Fn("attendant", {
|
|
|
4701
4701
|
]]),
|
|
4702
4702
|
onClick: (w) => e.selectDayFn(x.date)
|
|
4703
4703
|
}, [
|
|
4704
|
-
e.isTodayFn(x.date) ? (v(), y("div", Tc, " Hoje ")) :
|
|
4704
|
+
e.isTodayFn(x.date) ? (v(), y("div", Tc, " Hoje ")) : Y("", !0),
|
|
4705
4705
|
r("div", Lc, [
|
|
4706
4706
|
r("span", Fc, re(x.date.getDate()), 1)
|
|
4707
4707
|
]),
|
|
4708
|
-
f(x.key, x.date).overflow > 0 ? (v(), y("span", $c, " +" + re(f(x.key, x.date).overflow), 1)) :
|
|
4708
|
+
f(x.key, x.date).overflow > 0 ? (v(), y("span", $c, " +" + re(f(x.key, x.date).overflow), 1)) : Y("", !0),
|
|
4709
4709
|
r("div", Dc, [
|
|
4710
4710
|
r("div", {
|
|
4711
4711
|
class: "bars-vert",
|
|
@@ -4724,7 +4724,7 @@ const Bn = Fn("attendant", {
|
|
|
4724
4724
|
boxShadow: `0 0 8px ${Se(g1)(L)}70`
|
|
4725
4725
|
})
|
|
4726
4726
|
}, null, 4))), 128))
|
|
4727
|
-
]))), 128)) :
|
|
4727
|
+
]))), 128)) : Y("", !0)
|
|
4728
4728
|
], 512)
|
|
4729
4729
|
])
|
|
4730
4730
|
], 14, Ac))), 128))
|
|
@@ -4810,7 +4810,7 @@ const Bn = Fn("attendant", {
|
|
|
4810
4810
|
() => t.mode === "compact" ? t.selectedLabelLong || "Hoje" : `Eventos em ${t.selectedLabel || "—"}`
|
|
4811
4811
|
);
|
|
4812
4812
|
return (a, o) => (v(), y("section", {
|
|
4813
|
-
class:
|
|
4813
|
+
class: le(["bg-base-300 daylist", [
|
|
4814
4814
|
e.mode === "compact" ? "daylist--compact has-border border-base-200" : "daylist--sidebar has-border border-base-200 supports-blur",
|
|
4815
4815
|
{
|
|
4816
4816
|
"daylist--tight": e.mode === "compact" && !e.loading && e.events.length === 0
|
|
@@ -4820,13 +4820,13 @@ const Bn = Fn("attendant", {
|
|
|
4820
4820
|
"data-empty": !e.loading && e.events.length === 0 ? "1" : "0"
|
|
4821
4821
|
}, [
|
|
4822
4822
|
r("div", {
|
|
4823
|
-
class:
|
|
4823
|
+
class: le([
|
|
4824
4824
|
"daylist-header",
|
|
4825
4825
|
e.mode === "compact" ? "daylist-header--compact bg-base-300" : "daylist-header--sidebar bg-base-300"
|
|
4826
4826
|
])
|
|
4827
4827
|
}, [
|
|
4828
4828
|
r("h3", {
|
|
4829
|
-
class:
|
|
4829
|
+
class: le(
|
|
4830
4830
|
e.mode === "compact" ? "daylist-title--compact" : "daylist-title--sidebar"
|
|
4831
4831
|
)
|
|
4832
4832
|
}, re(n.value), 3),
|
|
@@ -4843,7 +4843,7 @@ const Bn = Fn("attendant", {
|
|
|
4843
4843
|
}, {
|
|
4844
4844
|
default: Fe(() => [
|
|
4845
4845
|
r("div", {
|
|
4846
|
-
class:
|
|
4846
|
+
class: le([
|
|
4847
4847
|
"loading-text",
|
|
4848
4848
|
e.mode === "compact" ? "is-compact" : "is-sidebar"
|
|
4849
4849
|
])
|
|
@@ -4864,7 +4864,7 @@ const Bn = Fn("attendant", {
|
|
|
4864
4864
|
"move-class": "list-move",
|
|
4865
4865
|
tag: "ul",
|
|
4866
4866
|
appear: "",
|
|
4867
|
-
class:
|
|
4867
|
+
class: le([
|
|
4868
4868
|
e.mode === "compact" ? "list-compact has-border border-base-300 bg-base-200 supports-blur" : "list-sidebar"
|
|
4869
4869
|
])
|
|
4870
4870
|
}, {
|
|
@@ -4872,7 +4872,7 @@ const Bn = Fn("attendant", {
|
|
|
4872
4872
|
(v(!0), y(Pe, null, Ie(e.events, (s, i) => (v(), y("li", {
|
|
4873
4873
|
key: s.id,
|
|
4874
4874
|
style: Ze({ "--i": i }),
|
|
4875
|
-
class:
|
|
4875
|
+
class: le(
|
|
4876
4876
|
e.mode === "compact" ? "item-compact hover:bg-base-100" : "item-sidebar hover:z-10 has-border hover:bg-base-100 border-base-100 bg-base-200 "
|
|
4877
4877
|
)
|
|
4878
4878
|
}, [
|
|
@@ -5143,13 +5143,13 @@ const Bn = Fn("attendant", {
|
|
|
5143
5143
|
r("div", l4, [
|
|
5144
5144
|
r("button", {
|
|
5145
5145
|
type: "button",
|
|
5146
|
-
class:
|
|
5146
|
+
class: le(["cyber-button cyber-button--xs btn-ghost", i.status === !0 ? "is-active" : ""]),
|
|
5147
5147
|
onClick: k[2] || (k[2] = (F) => u(!0)),
|
|
5148
5148
|
"aria-pressed": "state.status === true"
|
|
5149
5149
|
}, " Ativos ", 2),
|
|
5150
5150
|
r("button", {
|
|
5151
5151
|
type: "button",
|
|
5152
|
-
class:
|
|
5152
|
+
class: le(["cyber-button cyber-button--xs btn-ghost", i.status === !1 ? "is-active" : ""]),
|
|
5153
5153
|
onClick: k[3] || (k[3] = (F) => u(!1)),
|
|
5154
5154
|
"aria-pressed": "state.status === false"
|
|
5155
5155
|
}, " Executados ", 2)
|
|
@@ -5161,7 +5161,7 @@ const Bn = Fn("attendant", {
|
|
|
5161
5161
|
]),
|
|
5162
5162
|
_: 1
|
|
5163
5163
|
})
|
|
5164
|
-
], 32)) :
|
|
5164
|
+
], 32)) : Y("", !0)
|
|
5165
5165
|
]),
|
|
5166
5166
|
_: 1
|
|
5167
5167
|
}));
|
|
@@ -5182,10 +5182,10 @@ const Bn = Fn("attendant", {
|
|
|
5182
5182
|
function u(C) {
|
|
5183
5183
|
if (C instanceof Date) return new Date(C.getFullYear(), C.getMonth(), 1);
|
|
5184
5184
|
if (typeof C == "string") {
|
|
5185
|
-
const [D,
|
|
5185
|
+
const [D, X] = C.split("-").map((ae) => parseInt(ae, 10));
|
|
5186
5186
|
return new Date(
|
|
5187
5187
|
D || s.getFullYear(),
|
|
5188
|
-
(
|
|
5188
|
+
(X || s.getMonth() + 1) - 1,
|
|
5189
5189
|
1
|
|
5190
5190
|
);
|
|
5191
5191
|
}
|
|
@@ -5283,8 +5283,8 @@ const Bn = Fn("attendant", {
|
|
|
5283
5283
|
}
|
|
5284
5284
|
const V = ue(() => m(i.value)), K = ue(() => {
|
|
5285
5285
|
const C = c(i.value);
|
|
5286
|
-
return Array.from({ length: C }, (D,
|
|
5287
|
-
const ae =
|
|
5286
|
+
return Array.from({ length: C }, (D, X) => {
|
|
5287
|
+
const ae = X + 1, fe = new Date(
|
|
5288
5288
|
i.value.getFullYear(),
|
|
5289
5289
|
i.value.getMonth(),
|
|
5290
5290
|
ae
|
|
@@ -5300,14 +5300,14 @@ const Bn = Fn("attendant", {
|
|
|
5300
5300
|
), be = {
|
|
5301
5301
|
scheduled_by: (C) => {
|
|
5302
5302
|
var ae, fe, ve;
|
|
5303
|
-
const D = (C == null ? void 0 : C.scheduled_by) ?? ((fe = (ae = C == null ? void 0 : C.raw) == null ? void 0 : ae.params) == null ? void 0 : fe.scheduled_by) ?? ((ve = C == null ? void 0 : C.raw) == null ? void 0 : ve.scheduled_by) ?? (C == null ? void 0 : C.created_by) ?? (C == null ? void 0 : C.attendant_id),
|
|
5304
|
-
return
|
|
5303
|
+
const D = (C == null ? void 0 : C.scheduled_by) ?? ((fe = (ae = C == null ? void 0 : C.raw) == null ? void 0 : ae.params) == null ? void 0 : fe.scheduled_by) ?? ((ve = C == null ? void 0 : C.raw) == null ? void 0 : ve.scheduled_by) ?? (C == null ? void 0 : C.created_by) ?? (C == null ? void 0 : C.attendant_id), X = typeof D == "object" && D ? D.id ?? D.attendant_id : D;
|
|
5304
|
+
return X != null ? String(X) : "";
|
|
5305
5305
|
}
|
|
5306
5306
|
// exemplo: status: (ev) => String(ev.status ?? ev.raw?.status ?? ""),
|
|
5307
5307
|
};
|
|
5308
5308
|
function je(C, D) {
|
|
5309
|
-
const
|
|
5310
|
-
return !
|
|
5309
|
+
const X = (D == null ? void 0 : D.value) ?? D;
|
|
5310
|
+
return !X || typeof X != "object" ? !0 : Object.entries(X).every(([ae, fe]) => {
|
|
5311
5311
|
var Be, qe, Ee;
|
|
5312
5312
|
if (fe == null || fe === "" || Array.isArray(fe) && fe.length === 0)
|
|
5313
5313
|
return !0;
|
|
@@ -5350,27 +5350,27 @@ const Bn = Fn("attendant", {
|
|
|
5350
5350
|
return D > 3 ? D - 3 : 0;
|
|
5351
5351
|
}
|
|
5352
5352
|
const st = ue(() => {
|
|
5353
|
-
const C = i.value.getFullYear(), D = i.value.getMonth(),
|
|
5353
|
+
const C = i.value.getFullYear(), D = i.value.getMonth(), X = /* @__PURE__ */ new Map();
|
|
5354
5354
|
for (const fe of _e.value) {
|
|
5355
5355
|
const ve = fe == null ? void 0 : fe.date;
|
|
5356
5356
|
if (!(ve instanceof Date) || ve.getFullYear() !== C || ve.getMonth() !== D) continue;
|
|
5357
5357
|
const ye = `${C}-${D + 1}-${ve.getDate()}`;
|
|
5358
|
-
|
|
5358
|
+
X.has(ye) || X.set(ye, {
|
|
5359
5359
|
key: `ag-${ye}`,
|
|
5360
5360
|
date: new Date(C, D, ve.getDate()),
|
|
5361
5361
|
events: []
|
|
5362
|
-
}),
|
|
5362
|
+
}), X.get(ye).events.push(fe);
|
|
5363
5363
|
}
|
|
5364
|
-
const ae = Array.from(
|
|
5364
|
+
const ae = Array.from(X.values());
|
|
5365
5365
|
for (const fe of ae) fe.events.sort((ve, ye) => ve.date - ye.date);
|
|
5366
5366
|
return ae.sort((fe, ve) => fe.date - ve.date), ae;
|
|
5367
|
-
}), Xe = G(!1), et = G(!1), W = ue(() => et.value || Xe.value),
|
|
5367
|
+
}), Xe = G(!1), et = G(!1), W = ue(() => et.value || Xe.value), ce = ue(
|
|
5368
5368
|
() => W ? "calendar-stage--compact" : "calendar-stage--single"
|
|
5369
5369
|
);
|
|
5370
5370
|
function ke() {
|
|
5371
|
-
var
|
|
5371
|
+
var X;
|
|
5372
5372
|
const C = window.matchMedia("(max-width: 1280px)"), D = () => et.value = C.matches;
|
|
5373
|
-
D(), (
|
|
5373
|
+
D(), (X = C.addEventListener) == null || X.call(C, "change", D);
|
|
5374
5374
|
}
|
|
5375
5375
|
const oe = ue(() => o.isLoading(pe.value));
|
|
5376
5376
|
ue(() => o.errorOf(pe.value));
|
|
@@ -5407,12 +5407,12 @@ const Bn = Fn("attendant", {
|
|
|
5407
5407
|
var D;
|
|
5408
5408
|
try {
|
|
5409
5409
|
C.deleteLoading = !0;
|
|
5410
|
-
const
|
|
5411
|
-
if (
|
|
5410
|
+
const X = ((D = C == null ? void 0 : C.raw) == null ? void 0 : D.id) ?? (C == null ? void 0 : C.id) ?? C;
|
|
5411
|
+
if (X == null) throw new Error("Evento inválido para exclusão");
|
|
5412
5412
|
const ae = await y3(hl, C);
|
|
5413
|
-
return ae != null && ae.ok && (o.removeFromCache(String(
|
|
5414
|
-
} catch (
|
|
5415
|
-
return console.error(
|
|
5413
|
+
return ae != null && ae.ok && (o.removeFromCache(String(X)) || await o.forceReload(pe.value)), ae;
|
|
5414
|
+
} catch (X) {
|
|
5415
|
+
return console.error(X), null;
|
|
5416
5416
|
} finally {
|
|
5417
5417
|
C.deleteLoading = !1;
|
|
5418
5418
|
}
|
|
@@ -5439,11 +5439,11 @@ const Bn = Fn("attendant", {
|
|
|
5439
5439
|
}
|
|
5440
5440
|
}
|
|
5441
5441
|
), Ve(pe, async () => {
|
|
5442
|
-
const C = i.value.getFullYear(), D = i.value.getMonth(),
|
|
5442
|
+
const C = i.value.getFullYear(), D = i.value.getMonth(), X = Math.min(
|
|
5443
5443
|
l.value.getDate(),
|
|
5444
5444
|
c(i.value)
|
|
5445
5445
|
);
|
|
5446
|
-
if (l.value = new Date(C, D,
|
|
5446
|
+
if (l.value = new Date(C, D, X), await o.ensureMonthLoaded(pe.value), !Te(l.value).length && _e.value.length) {
|
|
5447
5447
|
const ae = _e.value[0];
|
|
5448
5448
|
l.value = new Date(
|
|
5449
5449
|
ae.date.getFullYear(),
|
|
@@ -5453,7 +5453,7 @@ const Bn = Fn("attendant", {
|
|
|
5453
5453
|
}
|
|
5454
5454
|
}), t({ updateEvent: o.applyUpdateToCache }), (C, D) => (v(), y(Pe, null, [
|
|
5455
5455
|
r("div", {
|
|
5456
|
-
class:
|
|
5456
|
+
class: le(["calendar-main bg-base-300", { "calendar-main--compact": W.value }])
|
|
5457
5457
|
}, [
|
|
5458
5458
|
r("div", u4, [
|
|
5459
5459
|
D[15] || (D[15] = r("div", { class: "cyber-glow-overlay" }, null, -1)),
|
|
@@ -5466,14 +5466,14 @@ const Bn = Fn("attendant", {
|
|
|
5466
5466
|
onPrev: x,
|
|
5467
5467
|
onNext: b,
|
|
5468
5468
|
onToday: w,
|
|
5469
|
-
onToggleCompact: D[0] || (D[0] = (
|
|
5470
|
-
onSetViewMode: D[1] || (D[1] = (
|
|
5471
|
-
onClosePage: D[2] || (D[2] = (
|
|
5469
|
+
onToggleCompact: D[0] || (D[0] = (X) => Xe.value = !Xe.value),
|
|
5470
|
+
onSetViewMode: D[1] || (D[1] = (X) => f.value = X),
|
|
5471
|
+
onClosePage: D[2] || (D[2] = (X) => C.$emit("close-page")),
|
|
5472
5472
|
onOpenFilter: te
|
|
5473
5473
|
}, null, 8, ["month", "year", "is-compact", "view-mode", "filter-count"]),
|
|
5474
5474
|
f.value === "calendar" ? (v(), y("div", {
|
|
5475
5475
|
key: 0,
|
|
5476
|
-
class:
|
|
5476
|
+
class: le(["calendar-stage", ce.value])
|
|
5477
5477
|
}, [
|
|
5478
5478
|
r("div", f4, [
|
|
5479
5479
|
Me(Ec, {
|
|
@@ -5504,10 +5504,10 @@ const Bn = Fn("attendant", {
|
|
|
5504
5504
|
events: gt.value,
|
|
5505
5505
|
mode: "compact",
|
|
5506
5506
|
onReload: ne,
|
|
5507
|
-
onOpenChat: D[3] || (D[3] = (
|
|
5508
|
-
onOpenMessage: D[4] || (D[4] = (
|
|
5509
|
-
onDeleteMessage: D[5] || (D[5] = (
|
|
5510
|
-
}, null, 8, ["loading", "selected-label-long", "events"])) :
|
|
5507
|
+
onOpenChat: D[3] || (D[3] = (X) => C.$emit("open-chat", X)),
|
|
5508
|
+
onOpenMessage: D[4] || (D[4] = (X) => C.$emit("open-message", X)),
|
|
5509
|
+
onDeleteMessage: D[5] || (D[5] = (X, ae) => me(X, ae))
|
|
5510
|
+
}, null, 8, ["loading", "selected-label-long", "events"])) : Y("", !0)
|
|
5511
5511
|
], 2)) : (v(), ze(Qc, {
|
|
5512
5512
|
key: 1,
|
|
5513
5513
|
days: st.value,
|
|
@@ -5516,9 +5516,9 @@ const Bn = Fn("attendant", {
|
|
|
5516
5516
|
"month-short": P,
|
|
5517
5517
|
"month-label-of": E,
|
|
5518
5518
|
year: O.value,
|
|
5519
|
-
onOpenChat: D[6] || (D[6] = (
|
|
5520
|
-
onOpenMessage: D[7] || (D[7] = (
|
|
5521
|
-
onDeleteMessage: D[8] || (D[8] = (
|
|
5519
|
+
onOpenChat: D[6] || (D[6] = (X) => C.$emit("open-chat", X)),
|
|
5520
|
+
onOpenMessage: D[7] || (D[7] = (X) => C.$emit("open-message", X)),
|
|
5521
|
+
onDeleteMessage: D[8] || (D[8] = (X, ae) => me(X, ae))
|
|
5522
5522
|
}, null, 8, ["days", "year"]))
|
|
5523
5523
|
]),
|
|
5524
5524
|
Me(n0, {
|
|
@@ -5529,14 +5529,14 @@ const Bn = Fn("attendant", {
|
|
|
5529
5529
|
events: gt.value,
|
|
5530
5530
|
mode: W.value ? "compact" : "sidebar",
|
|
5531
5531
|
onReload: ne,
|
|
5532
|
-
onOpenChat: D[9] || (D[9] = (
|
|
5533
|
-
onOpenMessage: D[10] || (D[10] = (
|
|
5534
|
-
onDeleteMessage: D[11] || (D[11] = (
|
|
5532
|
+
onOpenChat: D[9] || (D[9] = (X) => C.$emit("open-chat", X)),
|
|
5533
|
+
onOpenMessage: D[10] || (D[10] = (X) => C.$emit("open-message", X)),
|
|
5534
|
+
onDeleteMessage: D[11] || (D[11] = (X, ae) => me(X, ae))
|
|
5535
5535
|
}, null, 8, ["loading", "selected-label", "selected-label-long", "events", "mode"])
|
|
5536
5536
|
], 2),
|
|
5537
5537
|
Me(a2, {
|
|
5538
5538
|
modelValue: Q.value.open,
|
|
5539
|
-
"onUpdate:modelValue": D[12] || (D[12] = (
|
|
5539
|
+
"onUpdate:modelValue": D[12] || (D[12] = (X) => Q.value.open = X),
|
|
5540
5540
|
title: Q.value.title,
|
|
5541
5541
|
description: Q.value.description,
|
|
5542
5542
|
destructive: Q.value.destructive,
|
|
@@ -5553,15 +5553,15 @@ const Bn = Fn("attendant", {
|
|
|
5553
5553
|
onCancel: I
|
|
5554
5554
|
}, {
|
|
5555
5555
|
details: Fe(() => {
|
|
5556
|
-
var
|
|
5556
|
+
var X;
|
|
5557
5557
|
return [
|
|
5558
|
-
(
|
|
5558
|
+
(X = Q.value.context) != null && X.event ? (v(), y("div", h4, [
|
|
5559
5559
|
Me(ga, {
|
|
5560
5560
|
"view-only": !0,
|
|
5561
5561
|
mode: "sidebar",
|
|
5562
5562
|
ev: Q.value.context.event
|
|
5563
5563
|
}, null, 8, ["ev"])
|
|
5564
|
-
])) :
|
|
5564
|
+
])) : Y("", !0)
|
|
5565
5565
|
];
|
|
5566
5566
|
}),
|
|
5567
5567
|
_: 1
|
|
@@ -5570,8 +5570,8 @@ const Bn = Fn("attendant", {
|
|
|
5570
5570
|
open: ee.value.open,
|
|
5571
5571
|
"anchor-el": ee.value.anchorEl,
|
|
5572
5572
|
filters: Se(se),
|
|
5573
|
-
"onUpdate:filters": D[13] || (D[13] = (
|
|
5574
|
-
onClose: D[14] || (D[14] = (
|
|
5573
|
+
"onUpdate:filters": D[13] || (D[13] = (X) => qs(se) ? se.value = X : null),
|
|
5574
|
+
onClose: D[14] || (D[14] = (X) => ee.value.open = !1)
|
|
5575
5575
|
}, null, 8, ["open", "anchor-el", "filters"])
|
|
5576
5576
|
], 64));
|
|
5577
5577
|
}
|
|
@@ -5607,7 +5607,7 @@ const Bn = Fn("attendant", {
|
|
|
5607
5607
|
(v(!0), y(Pe, null, Ie(a.value, (m, d) => Ye((v(), y("input", {
|
|
5608
5608
|
key: d,
|
|
5609
5609
|
"onUpdate:modelValue": (g) => a.value[d] = g,
|
|
5610
|
-
class:
|
|
5610
|
+
class: le([
|
|
5611
5611
|
e.eventHandling === "check" ? "checked_mfa" : e.eventHandling === "err" ? "err_mfa" : "reset_input",
|
|
5612
5612
|
"inline-block w-10 h-10 rounded-md text-center"
|
|
5613
5613
|
]),
|
|
@@ -5659,9 +5659,9 @@ const Bn = Fn("attendant", {
|
|
|
5659
5659
|
);
|
|
5660
5660
|
return (f, u) => (v(), y("div", x4, [
|
|
5661
5661
|
r("section", b4, [
|
|
5662
|
-
e.generated ?
|
|
5662
|
+
e.generated ? Y("", !0) : (v(), y("div", {
|
|
5663
5663
|
key: 0,
|
|
5664
|
-
class:
|
|
5664
|
+
class: le([i.value, "btnQrCode"])
|
|
5665
5665
|
}, [
|
|
5666
5666
|
e.loading ? (v(), y("div", k4, [...u[0] || (u[0] = [
|
|
5667
5667
|
r("div", { class: "loaderMFA" }, null, -1)
|
|
@@ -5672,7 +5672,7 @@ const Bn = Fn("attendant", {
|
|
|
5672
5672
|
}, " Gerar QR "))
|
|
5673
5673
|
], 2)),
|
|
5674
5674
|
r("img", {
|
|
5675
|
-
class:
|
|
5675
|
+
class: le([[i.value, e.generated ? "rounded-md" : "rounded-none"], ""]),
|
|
5676
5676
|
src: s.value,
|
|
5677
5677
|
alt: "QRCode"
|
|
5678
5678
|
}, null, 10, w4)
|
|
@@ -5863,7 +5863,7 @@ const L4 = { class: "avatar bg-[#404857] shadow shadow-gray-900 dark:shadow-gray
|
|
|
5863
5863
|
return (f, u) => (v(), y("div", B4, [
|
|
5864
5864
|
Ye(r("input", {
|
|
5865
5865
|
"onUpdate:modelValue": u[0] || (u[0] = (c) => o.value = c),
|
|
5866
|
-
class:
|
|
5866
|
+
class: le(
|
|
5867
5867
|
e.mobile ? "search-input-mobile bg-base-300 border-b border-base-200" : "search-input bg-base-300 border-b border-base-200"
|
|
5868
5868
|
),
|
|
5869
5869
|
placeholder: "Pesquise entre os atendentes..."
|
|
@@ -5871,11 +5871,11 @@ const L4 = { class: "avatar bg-[#404857] shadow shadow-gray-900 dark:shadow-gray
|
|
|
5871
5871
|
[kt, o.value]
|
|
5872
5872
|
]),
|
|
5873
5873
|
r("ul", O4, [
|
|
5874
|
-
l.value.length === 0 ? (v(), y("li", P4, re(e.atendentes.length === 0 ? "Não há atendentes disponíveis" : "Não há atendentes com esse nome"), 1)) :
|
|
5874
|
+
l.value.length === 0 ? (v(), y("li", P4, re(e.atendentes.length === 0 ? "Não há atendentes disponíveis" : "Não há atendentes com esse nome"), 1)) : Y("", !0),
|
|
5875
5875
|
(v(!0), y(Pe, null, Ie(l.value, (c) => (v(), y("li", {
|
|
5876
5876
|
key: c.id,
|
|
5877
5877
|
onClick: (m) => s(c),
|
|
5878
|
-
class:
|
|
5878
|
+
class: le([["atendente-item", c.isMoved ? "moved" : ""], "border-b even:bg-base-300 bg-blue-400/10 border-base-200 hover:bg-base-200 relative"])
|
|
5879
5879
|
}, [
|
|
5880
5880
|
r("main", _4, [
|
|
5881
5881
|
Me(va, {
|
|
@@ -5884,15 +5884,15 @@ const L4 = { class: "avatar bg-[#404857] shadow shadow-gray-900 dark:shadow-gray
|
|
|
5884
5884
|
r("span", V4, re(c.name), 1)
|
|
5885
5885
|
]),
|
|
5886
5886
|
r("footer", R4, [
|
|
5887
|
-
c.internal_chat.unread > 0 ? (v(), y("span", z4, re(c.internal_chat.unread), 1)) :
|
|
5887
|
+
c.internal_chat.unread > 0 ? (v(), y("span", z4, re(c.internal_chat.unread), 1)) : Y("", !0),
|
|
5888
5888
|
r("div", {
|
|
5889
|
-
class:
|
|
5889
|
+
class: le(["status-indicator", i(c.login_status)])
|
|
5890
5890
|
}, null, 2)
|
|
5891
5891
|
]),
|
|
5892
5892
|
u[1] || (u[1] = r("div", { class: "hover-action" }, "Conversar", -1))
|
|
5893
5893
|
], 10, H4))), 128))
|
|
5894
5894
|
]),
|
|
5895
|
-
e.mobile ?
|
|
5895
|
+
e.mobile ? Y("", !0) : (v(), y("footer", j4))
|
|
5896
5896
|
]));
|
|
5897
5897
|
}
|
|
5898
5898
|
}, ns = /* @__PURE__ */ Oe(N4, [["__scopeId", "data-v-dc8950e9"]]);
|
|
@@ -5992,7 +5992,7 @@ const Q4 = /* @__PURE__ */ as(q4, [["render", K4], ["__scopeId", "data-v-d3e3763
|
|
|
5992
5992
|
return [
|
|
5993
5993
|
r("span", null, re(((b = p.slots) == null ? void 0 : b.complete) || "No more results!"), 1)
|
|
5994
5994
|
];
|
|
5995
|
-
}, !0) :
|
|
5995
|
+
}, !0) : Y("", !0),
|
|
5996
5996
|
i.value == "error" ? mt(p.$slots, "error", {
|
|
5997
5997
|
key: 1,
|
|
5998
5998
|
retry: d.emit
|
|
@@ -6008,7 +6008,7 @@ const Q4 = /* @__PURE__ */ as(q4, [["render", K4], ["__scopeId", "data-v-d3e3763
|
|
|
6008
6008
|
}, "retry")
|
|
6009
6009
|
])
|
|
6010
6010
|
];
|
|
6011
|
-
}, !0) :
|
|
6011
|
+
}, !0) : Y("", !0)
|
|
6012
6012
|
], 512));
|
|
6013
6013
|
}
|
|
6014
6014
|
}), An = /* @__PURE__ */ as(e5, [["__scopeId", "data-v-4bdee133"]]);
|
|
@@ -7135,14 +7135,14 @@ const na = (e, t = {}, n = {}) => {
|
|
|
7135
7135
|
L("wheel", _, C);
|
|
7136
7136
|
const D = b("wheelAction");
|
|
7137
7137
|
if (!D || _.defaultPrevented) return;
|
|
7138
|
-
const
|
|
7139
|
-
let ae =
|
|
7138
|
+
const X = p.scale;
|
|
7139
|
+
let ae = X * (C > 0 ? 1.5 : 0.5);
|
|
7140
7140
|
if (D === we.Zoom) {
|
|
7141
7141
|
const fe = Math.abs(_.deltaY) < 100 && Math.abs(_.deltaX) < 100;
|
|
7142
7142
|
if (ne - v0 < (fe ? 200 : 45)) return void an(_);
|
|
7143
7143
|
v0 = ne;
|
|
7144
7144
|
const ve = ee(), ye = ie();
|
|
7145
|
-
if (vt(ae) < vt(ve) && vt(
|
|
7145
|
+
if (vt(ae) < vt(ve) && vt(X) <= vt(ve) ? (a1 += Math.abs(C), ae = ve) : vt(ae) > vt(ye) && vt(X) >= vt(ye) ? (a1 += Math.abs(C), ae = ye) : (a1 = 0, ae = Re(ve, ae, ye)), a1 > 7) return;
|
|
7146
7146
|
}
|
|
7147
7147
|
switch (an(_), D) {
|
|
7148
7148
|
case we.Pan:
|
|
@@ -7159,21 +7159,21 @@ const na = (e, t = {}, n = {}) => {
|
|
|
7159
7159
|
var I, ne;
|
|
7160
7160
|
const Z = _.composedPath()[0];
|
|
7161
7161
|
if (!Tn.isClickAllowed() || !wn(Z) || _.defaultPrevented || !(e != null && e.contains(Z)) || Z.hasAttribute("disabled") || Z.hasAttribute("aria-disabled")) return;
|
|
7162
|
-
const C = Z.closest("[data-panzoom-action]"), D = (I = C == null ? void 0 : C.dataset) === null || I === void 0 ? void 0 : I.panzoomAction,
|
|
7162
|
+
const C = Z.closest("[data-panzoom-action]"), D = (I = C == null ? void 0 : C.dataset) === null || I === void 0 ? void 0 : I.panzoomAction, X = ((ne = C == null ? void 0 : C.dataset) === null || ne === void 0 ? void 0 : ne.panzoomValue) || "";
|
|
7163
7163
|
if (D) {
|
|
7164
7164
|
switch (an(_), D) {
|
|
7165
7165
|
case we.ZoomTo:
|
|
7166
7166
|
case we.ZoomIn:
|
|
7167
7167
|
case we.ZoomOut:
|
|
7168
|
-
Te(D, { scale: parseFloat(
|
|
7168
|
+
Te(D, { scale: parseFloat(X || "") || void 0 });
|
|
7169
7169
|
break;
|
|
7170
7170
|
case we.MoveLeft:
|
|
7171
7171
|
case we.MoveRight:
|
|
7172
|
-
Te(D, { deltaX: parseFloat(
|
|
7172
|
+
Te(D, { deltaX: parseFloat(X || "") || void 0 });
|
|
7173
7173
|
break;
|
|
7174
7174
|
case we.MoveUp:
|
|
7175
7175
|
case we.MoveDown:
|
|
7176
|
-
Te(D, { deltaY: parseFloat(
|
|
7176
|
+
Te(D, { deltaY: parseFloat(X || "") || void 0 });
|
|
7177
7177
|
break;
|
|
7178
7178
|
case we.ToggleFS:
|
|
7179
7179
|
oe();
|
|
@@ -7216,12 +7216,12 @@ const na = (e, t = {}, n = {}) => {
|
|
|
7216
7216
|
if (!w()) return void (f == null || f.end());
|
|
7217
7217
|
if (h = Object.assign(Object.assign({}, Ot), Z), M() || !b("bounds") || W() || p.scale > h.scale || p.scale < te()) return void ot();
|
|
7218
7218
|
const C = be(p.scale);
|
|
7219
|
-
let D = !1,
|
|
7220
|
-
h.x < C.x[0] && (D = !0), h.x > C.x[1] && (
|
|
7219
|
+
let D = !1, X = !1, ae = !1, fe = !1;
|
|
7220
|
+
h.x < C.x[0] && (D = !0), h.x > C.x[1] && (X = !0), h.y < C.y[0] && (fe = !0), h.y > C.y[1] && (ae = !0);
|
|
7221
7221
|
let ve = !1, ye = !1, Le = !1, Be = !1;
|
|
7222
7222
|
p.x < C.x[0] && (ve = !0), p.x > C.x[1] && (ye = !0), p.y < C.y[0] && (Be = !0), p.y > C.y[1] && (Le = !0);
|
|
7223
7223
|
let qe = !1;
|
|
7224
|
-
(
|
|
7224
|
+
(X && ye || D && ve) && (p.x = Re(C.x[0], p.x, C.x[1]), qe = !0), (ae && Le || fe && Be) && (p.y = Re(C.y[0], p.y, C.y[1]), qe = !0), qe && f && f.spring({ tension: 94, friction: 17, maxSpeed: 555 * p.scale, restDelta: 0.1, restSpeed: 0.1, velocity: f.getCurrentVelocities() }).from(h).to(p).start(), ot();
|
|
7225
7225
|
}).on("end", () => {
|
|
7226
7226
|
l != null && l.isPointerDown() || je(), f != null && f.isRunning() || (_e(), L("animationEnd"));
|
|
7227
7227
|
}), function() {
|
|
@@ -7230,15 +7230,15 @@ const na = (e, t = {}, n = {}) => {
|
|
|
7230
7230
|
let C = !1;
|
|
7231
7231
|
l = Tn(i, Z).on("start", (D) => {
|
|
7232
7232
|
if (!b("gestures") || !f || !w() || M()) return;
|
|
7233
|
-
const
|
|
7234
|
-
(h.scale > 1 || D.currentTouch.length > 1) && (
|
|
7233
|
+
const X = D.srcEvent;
|
|
7234
|
+
(h.scale > 1 || D.currentTouch.length > 1) && (X == null || X.stopPropagation(), f.pause(), C = !0), D.currentTouch.length === 1 && L("touchStart");
|
|
7235
7235
|
}).on("move", (D) => {
|
|
7236
|
-
var
|
|
7237
|
-
C && (p.scale !== 1 || D.currentTouch.length > 1) && (an(D.srcEvent), (
|
|
7236
|
+
var X;
|
|
7237
|
+
C && (p.scale !== 1 || D.currentTouch.length > 1) && (an(D.srcEvent), (X = D.srcEvent) === null || X === void 0 || X.stopPropagation());
|
|
7238
7238
|
}).on("pan", (D) => {
|
|
7239
7239
|
if (!C) return;
|
|
7240
|
-
const
|
|
7241
|
-
(p.scale !== 1 || D.currentTouch.length > 1) && (an(
|
|
7240
|
+
const X = D.srcEvent;
|
|
7241
|
+
(p.scale !== 1 || D.currentTouch.length > 1) && (an(X), Te(we.Pan, D));
|
|
7242
7242
|
}).on("swipe", (D) => {
|
|
7243
7243
|
C && p.scale > 1 && Te(we.Swipe, D);
|
|
7244
7244
|
}).on("tap", (D) => {
|
|
@@ -7268,8 +7268,8 @@ const na = (e, t = {}, n = {}) => {
|
|
|
7268
7268
|
ne = typeof I == "string" ? K(I) : typeof I == "number" ? I : te();
|
|
7269
7269
|
const Z = Object.assign(Object.assign(Object.assign({}, Ot), _), { scale: ne }), C = M() ? V(ne) : void 0;
|
|
7270
7270
|
if (C) {
|
|
7271
|
-
const { x: D, y:
|
|
7272
|
-
Z.x = D, Z.y =
|
|
7271
|
+
const { x: D, y: X } = C;
|
|
7272
|
+
Z.x = D, Z.y = X;
|
|
7273
7273
|
}
|
|
7274
7274
|
return Z;
|
|
7275
7275
|
}
|
|
@@ -7303,12 +7303,12 @@ const na = (e, t = {}, n = {}) => {
|
|
|
7303
7303
|
function V(_) {
|
|
7304
7304
|
const I = c || b("event"), ne = a == null ? void 0 : a.getBoundingClientRect();
|
|
7305
7305
|
if (!I || !ne || _ <= 1) return { x: 0, y: 0 };
|
|
7306
|
-
const Z = (I.clientX || 0) - ne.left, C = (I.clientY || 0) - ne.top, { width: D, height:
|
|
7306
|
+
const Z = (I.clientX || 0) - ne.left, C = (I.clientY || 0) - ne.top, { width: D, height: X } = E(), ae = be(_);
|
|
7307
7307
|
if (_ > 1) {
|
|
7308
7308
|
const Be = b("mouseMoveFactor");
|
|
7309
7309
|
Be > 1 && (_ *= Be);
|
|
7310
7310
|
}
|
|
7311
|
-
let fe = D * _, ve =
|
|
7311
|
+
let fe = D * _, ve = X * _, ye = 0.5 * (fe - D) - Z / D * 100 / 100 * (fe - D), Le = 0.5 * (ve - X) - C / X * 100 / 100 * (ve - X);
|
|
7312
7312
|
return ye = Re(ae.x[0], ye, ae.x[1]), Le = Re(ae.y[0], Le, ae.y[1]), { x: ye, y: Le };
|
|
7313
7313
|
}
|
|
7314
7314
|
function K(_ = "base") {
|
|
@@ -7327,7 +7327,7 @@ const na = (e, t = {}, n = {}) => {
|
|
|
7327
7327
|
return Le && ne.width ? Le / ne.width : 1;
|
|
7328
7328
|
}
|
|
7329
7329
|
}
|
|
7330
|
-
},
|
|
7330
|
+
}, X = b("minScale"), ae = b("maxScale"), fe = Math.min(D("full"), D(X)), ve = typeof ae == "number" ? D("full") * ae : Math.min(D("full"), D(ae));
|
|
7331
7331
|
switch (_) {
|
|
7332
7332
|
case "min":
|
|
7333
7333
|
return fe;
|
|
@@ -7360,12 +7360,12 @@ const na = (e, t = {}, n = {}) => {
|
|
|
7360
7360
|
const I = { x: [0, 0], y: [0, 0] }, ne = e == null ? void 0 : e.getBoundingClientRect();
|
|
7361
7361
|
if (!ne) return I;
|
|
7362
7362
|
const Z = H(), C = ne.width, D = ne.height;
|
|
7363
|
-
let
|
|
7363
|
+
let X = Z.width, ae = Z.height, fe = _ = _ === void 0 ? p.scale : _, ve = _;
|
|
7364
7364
|
if (M() && _ > 1) {
|
|
7365
7365
|
const ye = b("mouseMoveFactor");
|
|
7366
|
-
ye > 1 && (
|
|
7366
|
+
ye > 1 && (X * _ > C + 0.01 && (fe *= ye), ae * _ > D + 0.01 && (ve *= ye));
|
|
7367
7367
|
}
|
|
7368
|
-
return
|
|
7368
|
+
return X *= fe, ae *= ve, _ > 1 && (X > C && (I.x[0] = 0.5 * (C - X), I.x[1] = 0.5 * (X - C)), I.x[0] -= 0.5 * (Z.left - ne.left), I.x[1] -= 0.5 * (Z.left - ne.left), I.x[0] -= 0.5 * (Z.left + Z.width - ne.right), I.x[1] -= 0.5 * (Z.left + Z.width - ne.right), ae > D && (I.y[0] = 0.5 * (D - ae), I.y[1] = 0.5 * (ae - D)), I.y[0] -= 0.5 * (Z.top - ne.top), I.y[1] -= 0.5 * (Z.top - ne.top), I.y[0] -= 0.5 * (Z.top + Z.height - ne.bottom), I.y[1] -= 0.5 * (Z.top + Z.height - ne.bottom)), I;
|
|
7369
7369
|
}
|
|
7370
7370
|
function je() {
|
|
7371
7371
|
if (!w() || !b("bounds") || !f) return;
|
|
@@ -7378,8 +7378,8 @@ const na = (e, t = {}, n = {}) => {
|
|
|
7378
7378
|
function _e(_) {
|
|
7379
7379
|
var I;
|
|
7380
7380
|
if (!w()) return;
|
|
7381
|
-
const ne = et(), Z = W(), C =
|
|
7382
|
-
ft(a, "is-fullsize", D), ft(a, "is-expanded", C), ft(a, "is-dragging", Z), ft(a, "can-drag", ne), ft(a, "will-zoom-in",
|
|
7381
|
+
const ne = et(), Z = W(), C = ce(), D = ke(), X = ut(), ae = wt();
|
|
7382
|
+
ft(a, "is-fullsize", D), ft(a, "is-expanded", C), ft(a, "is-dragging", Z), ft(a, "can-drag", ne), ft(a, "will-zoom-in", X), ft(a, "will-zoom-out", ae);
|
|
7383
7383
|
const fe = st(), ve = Xe(), ye = ct(), Le = !w();
|
|
7384
7384
|
for (const Be of ((I = _ || e) === null || I === void 0 ? void 0 : I.querySelectorAll("[data-panzoom-action]")) || []) {
|
|
7385
7385
|
const qe = Be.dataset.panzoomAction;
|
|
@@ -7416,7 +7416,7 @@ const na = (e, t = {}, n = {}) => {
|
|
|
7416
7416
|
if (!(_ && e && o && f && w()) || _ === we.Swipe && Math.abs(f.getCurrentVelocities().scale) > 0.01) return;
|
|
7417
7417
|
const Z = Object.assign({}, p);
|
|
7418
7418
|
let C = Object.assign({}, p), D = be(M() ? Z.scale : h.scale);
|
|
7419
|
-
const
|
|
7419
|
+
const X = f.getCurrentVelocities(), ae = H(), fe = (((ne = (I = I || {}).currentTouch) === null || ne === void 0 ? void 0 : ne.length) || 0) > 1, ve = I.velocityX || 0, ye = I.velocityY || 0;
|
|
7420
7420
|
let Le = I.center;
|
|
7421
7421
|
I.srcEvent && (Le = Jt(cs(I.srcEvent)));
|
|
7422
7422
|
let Be = I.deltaX || 0, qe = I.deltaY || 0;
|
|
@@ -7451,7 +7451,7 @@ const na = (e, t = {}, n = {}) => {
|
|
|
7451
7451
|
break;
|
|
7452
7452
|
case we.Swipe:
|
|
7453
7453
|
const T = (j = 0) => Math.sign(j) * Math.pow(Math.abs(j), 1.5);
|
|
7454
|
-
C.x += Re(-1e3, T(ve), 1e3), C.y += Re(-1e3, T(ye), 1e3), ye && !ve && (C.x = Re(D.x[0], C.x, D.x[1])), !ye && ve && (C.y = Re(D.y[0], C.y, D.y[1])),
|
|
7454
|
+
C.x += Re(-1e3, T(ve), 1e3), C.y += Re(-1e3, T(ye), 1e3), ye && !ve && (C.x = Re(D.x[0], C.x, D.x[1])), !ye && ve && (C.y = Re(D.y[0], C.y, D.y[1])), X.x = ve, X.y = ye;
|
|
7455
7455
|
break;
|
|
7456
7456
|
case we.ZoomTo:
|
|
7457
7457
|
C.scale = I.scale || 1;
|
|
@@ -7513,9 +7513,9 @@ const na = (e, t = {}, n = {}) => {
|
|
|
7513
7513
|
C.x = j - N * C.scale, C.y = B - q * C.scale, !fe && b("bounds") && (D = be(C.scale), C.x = Re(D.x[0], C.x, D.x[1]), C.y = Re(D.y[0], C.y, D.y[1]));
|
|
7514
7514
|
}
|
|
7515
7515
|
if (_ === we.Swipe) {
|
|
7516
|
-
let T = 94, z = 17, j = 500 * C.scale, B =
|
|
7516
|
+
let T = 94, z = 17, j = 500 * C.scale, B = X;
|
|
7517
7517
|
f.spring({ tension: T, friction: z, maxSpeed: j, restDelta: 0.1, restSpeed: 0.1, velocity: B });
|
|
7518
|
-
} else _ === we.Pan || fe ? f.spring({ tension: 900, friction: 17, restDelta: 0.01, restSpeed: 0.01, maxSpeed: 1 }) : f.spring({ tension: 170, friction: 17, restDelta: 1e-3, restSpeed: 1e-3, maxSpeed: 1 / 0, velocity:
|
|
7518
|
+
} else _ === we.Pan || fe ? f.spring({ tension: 900, friction: 17, restDelta: 0.01, restSpeed: 0.01, maxSpeed: 1 }) : f.spring({ tension: 170, friction: 17, restDelta: 1e-3, restSpeed: 1e-3, maxSpeed: 1 / 0, velocity: X });
|
|
7519
7519
|
if (I.velocity === 0 || jn(h, C)) h = Object.assign({}, C), p = Object.assign({}, C), f.end(), ot(), _e();
|
|
7520
7520
|
else {
|
|
7521
7521
|
if (jn(p, C)) return;
|
|
@@ -7535,9 +7535,9 @@ const na = (e, t = {}, n = {}) => {
|
|
|
7535
7535
|
Be > qe ? (ge = Ne, he = Ge) : (ge = Ge, he = Ne), Ce = Be > qe ? Ne * B / Be || 1 : Ne * B / qe || 1;
|
|
7536
7536
|
let tt = ge ? Be * $e : 0, At = he ? qe * $e : 0, Tt = ge && he ? Be * Ce / tt : 0;
|
|
7537
7537
|
return z = z + 0.5 * ge - 0.5 * tt, j = j + 0.5 * he - 0.5 * At, { x: z, y: j, width: tt, height: At, scale: Tt, flipX: q, flipY: J, angle: N, fitWidth: Ee, fitHeight: T, fullWidth: Be, fullHeight: qe };
|
|
7538
|
-
}(), { x: Z, y: C, width: D, height:
|
|
7538
|
+
}(), { x: Z, y: C, width: D, height: X, scale: ae, angle: fe, flipX: ve, flipY: ye } = ne;
|
|
7539
7539
|
let Le = `translate(${vt(Z)}px, ${vt(C)}px)`;
|
|
7540
|
-
Le += ve !== 1 || ye !== 1 ? ` scaleX(${vt(ae * ve)}) scaleY(${vt(ae * ye)})` : ` scale(${vt(ae)})`, fe !== 0 && (Le += ` rotate(${fe}deg)`), i.style.width = `${vt(D)}px`, i.style.height = `${vt(
|
|
7540
|
+
Le += ve !== 1 || ye !== 1 ? ` scaleX(${vt(ae * ve)}) scaleY(${vt(ae * ye)})` : ` scale(${vt(ae)})`, fe !== 0 && (Le += ` rotate(${fe}deg)`), i.style.width = `${vt(D)}px`, i.style.height = `${vt(X)}px`, i.style.transform = `${Le}`, L("render");
|
|
7541
7541
|
}
|
|
7542
7542
|
function gt() {
|
|
7543
7543
|
let _ = p.scale;
|
|
@@ -7591,12 +7591,12 @@ const na = (e, t = {}, n = {}) => {
|
|
|
7591
7591
|
return !!(w() && p.scale < pe());
|
|
7592
7592
|
}
|
|
7593
7593
|
function et() {
|
|
7594
|
-
return !(!(w() &&
|
|
7594
|
+
return !(!(w() && ce() && l) || M());
|
|
7595
7595
|
}
|
|
7596
7596
|
function W() {
|
|
7597
7597
|
return !(!w() || !(l != null && l.isPointerDown()) || M());
|
|
7598
7598
|
}
|
|
7599
|
-
function
|
|
7599
|
+
function ce() {
|
|
7600
7600
|
return !!(w() && p.scale > te());
|
|
7601
7601
|
}
|
|
7602
7602
|
function ke() {
|
|
@@ -7685,7 +7685,7 @@ const na = (e, t = {}, n = {}) => {
|
|
|
7685
7685
|
s == null || s.removeEventListener("load", _, !1), s == null || s.removeEventListener("error", _, !1);
|
|
7686
7686
|
});
|
|
7687
7687
|
}(), me;
|
|
7688
|
-
}, isDragging: W, isExpanded:
|
|
7688
|
+
}, isDragging: W, isExpanded: ce, isFullsize: ke, isMousemoveMode: M, localize: function(_, I = []) {
|
|
7689
7689
|
const ne = b("l10n") || {};
|
|
7690
7690
|
_ = String(_).replace(/\{\{(\w+)\}\}/g, (Z, C) => ne[C] || Z);
|
|
7691
7691
|
for (let Z = 0; Z < I.length; Z++) _ = _.split(I[Z][0]).join(I[Z][1]);
|
|
@@ -7784,7 +7784,7 @@ const k1 = (e, t = {}, n = {}) => {
|
|
|
7784
7784
|
const q = te("classes") || {};
|
|
7785
7785
|
F = [], [...j1(g, `.${q.slide}`)].forEach((J) => {
|
|
7786
7786
|
if (J.parentElement) {
|
|
7787
|
-
const de =
|
|
7787
|
+
const de = ce(Object.assign({ el: J, isVirtual: !1 }, J.dataset || {}));
|
|
7788
7788
|
ie("createSlide", de), F.push(de);
|
|
7789
7789
|
}
|
|
7790
7790
|
}), me();
|
|
@@ -7951,14 +7951,14 @@ const k1 = (e, t = {}, n = {}) => {
|
|
|
7951
7951
|
function W(T, z) {
|
|
7952
7952
|
const j = [];
|
|
7953
7953
|
for (const B of Array.isArray(T) ? T : [T]) {
|
|
7954
|
-
const N =
|
|
7954
|
+
const N = ce(Object.assign(Object.assign({}, B), { isVirtual: !0 }));
|
|
7955
7955
|
N.el || (N.el = document.createElement("div")), ie("createSlide", N), j.push(N);
|
|
7956
7956
|
}
|
|
7957
7957
|
F.splice(z === void 0 ? F.length : z, 0, ...j), me();
|
|
7958
7958
|
for (const B of j) ie("addSlide", B), ke(B);
|
|
7959
7959
|
return Te(k), j;
|
|
7960
7960
|
}
|
|
7961
|
-
function
|
|
7961
|
+
function ce(T) {
|
|
7962
7962
|
return (We(T) || T instanceof HTMLElement) && (T = { html: T }), Object.assign({ index: -1, el: void 0, class: "", isVirtual: !0, dim: 0, pos: 0, offset: 0, html: "", src: "" }, T);
|
|
7963
7963
|
}
|
|
7964
7964
|
function ke(T) {
|
|
@@ -8107,7 +8107,7 @@ const k1 = (e, t = {}, n = {}) => {
|
|
|
8107
8107
|
const j = T.el;
|
|
8108
8108
|
j && ((z = j.querySelector(".f-spinner")) === null || z === void 0 || z.remove());
|
|
8109
8109
|
}
|
|
8110
|
-
function
|
|
8110
|
+
function X(T) {
|
|
8111
8111
|
var z;
|
|
8112
8112
|
const j = T.el;
|
|
8113
8113
|
j && ((z = j.querySelector(".f-html.is-error")) === null || z === void 0 || z.remove(), xt(j, "has-error"));
|
|
@@ -8201,7 +8201,7 @@ const k1 = (e, t = {}, n = {}) => {
|
|
|
8201
8201
|
d == null || d.removeEventListener("click", C), document.removeEventListener("mousemove", je), P.clear(), s == null || s.disconnect(), s = void 0;
|
|
8202
8202
|
for (const T of F) {
|
|
8203
8203
|
let z = T.el;
|
|
8204
|
-
z && wn(z) && (T.state = void 0, D(T),
|
|
8204
|
+
z && wn(z) && (T.state = void 0, D(T), X(T), T.isVirtual ? (Q(T), T.el = void 0) : (I(z), z.style.transform = "", g && !g.contains(z) && g.appendChild(z)));
|
|
8205
8205
|
}
|
|
8206
8206
|
for (const T of Object.values(m)) T == null || T.destroy();
|
|
8207
8207
|
m = {}, a == null || a.destroy(), a = void 0, o == null || o.destroy(), o = void 0;
|
|
@@ -8285,7 +8285,7 @@ const k1 = (e, t = {}, n = {}) => {
|
|
|
8285
8285
|
return T === void 0 ? E : et(T);
|
|
8286
8286
|
}, goTo: fe, hasNavigated: function() {
|
|
8287
8287
|
return i !== void 0;
|
|
8288
|
-
}, hideError:
|
|
8288
|
+
}, hideError: X, hideLoading: D, init: function() {
|
|
8289
8289
|
if (!e || !wn(e)) throw new Error("No Element found");
|
|
8290
8290
|
return f !== 0 && (Le(), f = 0), d = e, u = t, window.removeEventListener("resize", be), u.breakpoints && window.addEventListener("resize", be), be(), Ee;
|
|
8291
8291
|
}, isInfinite: function() {
|
|
@@ -8319,7 +8319,7 @@ const k1 = (e, t = {}, n = {}) => {
|
|
|
8319
8319
|
}, setPosition: function(T) {
|
|
8320
8320
|
S = T, ot(), ye();
|
|
8321
8321
|
}, showError: function(T, z) {
|
|
8322
|
-
D(T),
|
|
8322
|
+
D(T), X(T);
|
|
8323
8323
|
const j = T.el;
|
|
8324
8324
|
if (j) {
|
|
8325
8325
|
const B = document.createElement("div");
|
|
@@ -9321,22 +9321,22 @@ const Nn = { ajax: null, backdropClick: "close", Carousel: {}, closeButton: "aut
|
|
|
9321
9321
|
let N5 = 0;
|
|
9322
9322
|
const j0 = "with-fancybox", G5 = () => {
|
|
9323
9323
|
let e, t, n, a, o, s, i, l = it.Init, f = Object.assign({}, Nn), u = -1, c = {}, m = [], d = !1, g = !0, h = 0;
|
|
9324
|
-
function p(W, ...
|
|
9324
|
+
function p(W, ...ce) {
|
|
9325
9325
|
let ke = f[W];
|
|
9326
|
-
return ke && typeof ke == "function" ? ke(et, ...
|
|
9326
|
+
return ke && typeof ke == "function" ? ke(et, ...ce) : ke;
|
|
9327
9327
|
}
|
|
9328
|
-
function x(W,
|
|
9328
|
+
function x(W, ce = []) {
|
|
9329
9329
|
const ke = p("l10n") || {};
|
|
9330
9330
|
W = String(W).replace(/\{\{(\w+)\}\}/g, (oe, Q) => ke[Q] || oe);
|
|
9331
|
-
for (let oe = 0; oe <
|
|
9331
|
+
for (let oe = 0; oe < ce.length; oe++) W = W.split(ce[oe][0]).join(ce[oe][1]);
|
|
9332
9332
|
return W = W.replace(/\{\{(.*?)\}\}/g, (oe, Q) => Q);
|
|
9333
9333
|
}
|
|
9334
9334
|
const b = /* @__PURE__ */ new Map();
|
|
9335
|
-
function w(W, ...
|
|
9335
|
+
function w(W, ...ce) {
|
|
9336
9336
|
const ke = [...b.get(W) || []];
|
|
9337
9337
|
for (const [oe, Q] of Object.entries(f.on || {})) (oe === W || oe.split(" ").indexOf(W) > -1) && ke.push(Q);
|
|
9338
|
-
for (const oe of ke) oe && typeof oe == "function" && oe(et, ...
|
|
9339
|
-
W !== "*" && w("*", W, ...
|
|
9338
|
+
for (const oe of ke) oe && typeof oe == "function" && oe(et, ...ce);
|
|
9339
|
+
W !== "*" && w("*", W, ...ce);
|
|
9340
9340
|
}
|
|
9341
9341
|
function S() {
|
|
9342
9342
|
xt(t, "is-revealing");
|
|
@@ -9345,9 +9345,9 @@ const j0 = "with-fancybox", G5 = () => {
|
|
|
9345
9345
|
} catch {
|
|
9346
9346
|
}
|
|
9347
9347
|
}
|
|
9348
|
-
function L(W,
|
|
9348
|
+
function L(W, ce) {
|
|
9349
9349
|
var ke;
|
|
9350
|
-
ee(
|
|
9350
|
+
ee(ce), P(), (ke = ce.el) === null || ke === void 0 || ke.addEventListener("click", O), ce.type !== "inline" && ce.type !== "clone" || function(oe) {
|
|
9351
9351
|
if (!a || !oe || !oe.el) return;
|
|
9352
9352
|
let Q = null;
|
|
9353
9353
|
if (We(oe.src)) {
|
|
@@ -9367,7 +9367,7 @@ const j0 = "with-fancybox", G5 = () => {
|
|
|
9367
9367
|
}
|
|
9368
9368
|
oe.htmlEl = Q, De(oe.el, "has-html"), oe.el.prepend(Q), Q.classList.remove("hidden"), Q.style.display === "none" && (Q.style.display = ""), getComputedStyle(Q).getPropertyValue("display") === "none" && (Q.style.display = Q.dataset.display || "flex"), a == null || a.emit("contentReady", oe);
|
|
9369
9369
|
} else a == null || a.showError(oe, "{{ELEMENT_NOT_FOUND}}");
|
|
9370
|
-
}(
|
|
9370
|
+
}(ce), ce.type === "ajax" && function(oe) {
|
|
9371
9371
|
const Q = oe.el;
|
|
9372
9372
|
if (!Q || oe.htmlEl || oe.xhr) return;
|
|
9373
9373
|
a == null || a.showLoading(oe), oe.state = 0;
|
|
@@ -9384,28 +9384,28 @@ const j0 = "with-fancybox", G5 = () => {
|
|
|
9384
9384
|
};
|
|
9385
9385
|
const _ = p("ajax") || null;
|
|
9386
9386
|
me.open(_ ? "POST" : "GET", oe.src + ""), me.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), me.setRequestHeader("X-Requested-With", "XMLHttpRequest"), me.send(_), oe.xhr = me;
|
|
9387
|
-
}(
|
|
9387
|
+
}(ce);
|
|
9388
9388
|
}
|
|
9389
|
-
function $(W,
|
|
9389
|
+
function $(W, ce) {
|
|
9390
9390
|
var ke;
|
|
9391
|
-
te(
|
|
9391
|
+
te(ce), (ke = ce.el) === null || ke === void 0 || ke.removeEventListener("click", O), ce.type !== "inline" && ce.type !== "clone" || function(oe) {
|
|
9392
9392
|
const Q = oe.htmlEl, me = oe.placeholderEl;
|
|
9393
9393
|
Q && (getComputedStyle(Q).getPropertyValue("display") !== "none" && (Q.style.display = "none"), Q.offsetHeight), me && (Q && me.parentNode && me.parentNode.insertBefore(Q, me), me.remove()), oe.htmlEl = void 0, oe.placeholderEl = void 0;
|
|
9394
|
-
}(
|
|
9394
|
+
}(ce), ce.xhr && (ce.xhr.abort(), ce.xhr = void 0);
|
|
9395
9395
|
}
|
|
9396
9396
|
function O(W) {
|
|
9397
9397
|
if (!pe()) return;
|
|
9398
9398
|
if (l !== it.Ready) return jt(W), void W.stopPropagation();
|
|
9399
9399
|
if (W.defaultPrevented || !Tn.isClickAllowed()) return;
|
|
9400
|
-
const
|
|
9401
|
-
|
|
9400
|
+
const ce = W.composedPath()[0];
|
|
9401
|
+
ce.closest(".fancybox__carousel") && ce.classList.contains("fancybox__slide") && E(W);
|
|
9402
9402
|
}
|
|
9403
9403
|
function R() {
|
|
9404
9404
|
g = !1, t && a && t.classList.remove("is-revealing"), P();
|
|
9405
9405
|
const W = p("sync");
|
|
9406
9406
|
if (a && W) {
|
|
9407
|
-
const
|
|
9408
|
-
W.goTo(
|
|
9407
|
+
const ce = W.getPageIndex(a.getPageIndex()) || 0;
|
|
9408
|
+
W.goTo(ce, { transition: !1 });
|
|
9409
9409
|
}
|
|
9410
9410
|
}
|
|
9411
9411
|
function A() {
|
|
@@ -9417,32 +9417,32 @@ const j0 = "with-fancybox", G5 = () => {
|
|
|
9417
9417
|
function ne() {
|
|
9418
9418
|
var C, D;
|
|
9419
9419
|
s == null || s.spring({ clamp: !0, mass: 1, tension: me === 0 ? 140 : 960, friction: 17, restDelta: 0.1, restSpeed: 0.1, maxSpeed: 1 / 0 }).from({ y: Q }).to({ y: me }).start();
|
|
9420
|
-
const
|
|
9421
|
-
if (
|
|
9420
|
+
const X = ((C = a == null ? void 0 : a.getViewport()) === null || C === void 0 ? void 0 : C.getBoundingClientRect().height) || 0, ae = (D = ie()) === null || D === void 0 ? void 0 : D.panzoomRef;
|
|
9421
|
+
if (X && ae) if (me === 0) ae.execute(we.Reset);
|
|
9422
9422
|
else {
|
|
9423
|
-
const fe = b1(Math.abs(Q), 0, 0.33 *
|
|
9423
|
+
const fe = b1(Math.abs(Q), 0, 0.33 * X, I, 0.77 * I, !1);
|
|
9424
9424
|
ae.execute(we.ZoomTo, { scale: fe });
|
|
9425
9425
|
}
|
|
9426
9426
|
}
|
|
9427
9427
|
const Z = (C) => {
|
|
9428
9428
|
var D;
|
|
9429
|
-
const
|
|
9430
|
-
return a && !(zn(
|
|
9429
|
+
const X = C.srcEvent, ae = X.target;
|
|
9430
|
+
return a && !(zn(X) && ((D = X.touches) === null || D === void 0 ? void 0 : D.length) > 1) && ae && !fn(ae);
|
|
9431
9431
|
};
|
|
9432
9432
|
s = tn().on("step", (C) => {
|
|
9433
9433
|
if (t && ke && l === it.Ready) {
|
|
9434
9434
|
const D = ke.getBoundingClientRect().height;
|
|
9435
9435
|
Q = Math.min(D, Math.max(-1 * D, C.y));
|
|
9436
|
-
const
|
|
9437
|
-
t.style.setProperty("--f-drag-opacity",
|
|
9436
|
+
const X = b1(Math.abs(Q), 0, 0.5 * D, 1, 0, !0);
|
|
9437
|
+
t.style.setProperty("--f-drag-opacity", X + ""), t.style.setProperty("--f-drag-offset", Q + "px");
|
|
9438
9438
|
}
|
|
9439
9439
|
}), o.on("start", function() {
|
|
9440
9440
|
oe || (s == null || s.pause(), me = Q);
|
|
9441
9441
|
}).on("panstart", (C) => {
|
|
9442
|
-
var D,
|
|
9442
|
+
var D, X;
|
|
9443
9443
|
if (!oe && Z(C) && C.axis === "y") {
|
|
9444
9444
|
jt(C.srcEvent), oe = !0, wt(), (D = a == null ? void 0 : a.getViewport()) === null || D === void 0 || D.classList.add("is-dragging");
|
|
9445
|
-
const ae = (
|
|
9445
|
+
const ae = (X = ie()) === null || X === void 0 ? void 0 : X.panzoomRef;
|
|
9446
9446
|
if (ae) {
|
|
9447
9447
|
I = ae.getTransform().scale || 1;
|
|
9448
9448
|
const fe = ae.getOptions();
|
|
@@ -9452,9 +9452,9 @@ const j0 = "with-fancybox", G5 = () => {
|
|
|
9452
9452
|
}).on("pan", function(C) {
|
|
9453
9453
|
oe && Z(C) && (jt(C.srcEvent), C.srcEvent.stopPropagation(), C.axis === "y" && (me += C.deltaY, ne()));
|
|
9454
9454
|
}).on("end", (C) => {
|
|
9455
|
-
var D,
|
|
9455
|
+
var D, X, ae;
|
|
9456
9456
|
if ((D = a == null ? void 0 : a.getViewport()) === null || D === void 0 || D.classList.remove("is-dragging"), oe) {
|
|
9457
|
-
const fe = (
|
|
9457
|
+
const fe = (X = ie()) === null || X === void 0 ? void 0 : X.panzoomRef;
|
|
9458
9458
|
if (fe) {
|
|
9459
9459
|
(ae = fe.getTween()) === null || ae === void 0 || ae.end();
|
|
9460
9460
|
const ve = fe.getOptions();
|
|
@@ -9465,25 +9465,25 @@ const j0 = "with-fancybox", G5 = () => {
|
|
|
9465
9465
|
oe = !1, l === it.Ready && Q !== 0 && (me = 0, ne());
|
|
9466
9466
|
});
|
|
9467
9467
|
})(), document.body.addEventListener("click", K), document.body.addEventListener("keydown", V, { passive: !1, capture: !0 }), P(), Te();
|
|
9468
|
-
const
|
|
9469
|
-
a &&
|
|
9468
|
+
const ce = p("sync");
|
|
9469
|
+
a && ce && ((W = ce.getTween()) === null || W === void 0 || W.start()), se(ie());
|
|
9470
9470
|
}
|
|
9471
9471
|
function k() {
|
|
9472
9472
|
a != null && a.canGoNext() ? Te() : ut();
|
|
9473
9473
|
}
|
|
9474
|
-
function F(W,
|
|
9475
|
-
ee(
|
|
9474
|
+
function F(W, ce) {
|
|
9475
|
+
ee(ce), se(ce);
|
|
9476
9476
|
}
|
|
9477
9477
|
function H() {
|
|
9478
9478
|
var W;
|
|
9479
|
-
const
|
|
9480
|
-
ft(t, "has-thumbs", (
|
|
9479
|
+
const ce = a == null ? void 0 : a.getPlugins().Thumbs;
|
|
9480
|
+
ft(t, "has-thumbs", (ce == null ? void 0 : ce.isEnabled()) || !1), ft(t, "has-vertical-thumbs", !!ce && (ce.getType() === "scrollable" || ((W = ce.getCarousel()) === null || W === void 0 ? void 0 : W.isVertical()) === !0));
|
|
9481
9481
|
}
|
|
9482
9482
|
function P() {
|
|
9483
9483
|
if (t) {
|
|
9484
|
-
const W = (a == null ? void 0 : a.getPages()) || [],
|
|
9485
|
-
for (const ke of t.querySelectorAll("[data-fancybox-index]")) ke.innerHTML =
|
|
9486
|
-
for (const ke of t.querySelectorAll("[data-fancybox-page]")) ke.innerHTML =
|
|
9484
|
+
const W = (a == null ? void 0 : a.getPages()) || [], ce = (a == null ? void 0 : a.getPageIndex()) || 0;
|
|
9485
|
+
for (const ke of t.querySelectorAll("[data-fancybox-index]")) ke.innerHTML = ce + "";
|
|
9486
|
+
for (const ke of t.querySelectorAll("[data-fancybox-page]")) ke.innerHTML = ce + 1 + "";
|
|
9487
9487
|
for (const ke of t.querySelectorAll("[data-fancybox-pages]")) ke.innerHTML = W.length + "";
|
|
9488
9488
|
}
|
|
9489
9489
|
}
|
|
@@ -9496,14 +9496,14 @@ const j0 = "with-fancybox", G5 = () => {
|
|
|
9496
9496
|
}
|
|
9497
9497
|
function V(W) {
|
|
9498
9498
|
if (!pe() || l !== it.Ready) return;
|
|
9499
|
-
const
|
|
9499
|
+
const ce = W.key, ke = p("keyboard");
|
|
9500
9500
|
if (!ke || W.ctrlKey || W.altKey || W.shiftKey) return;
|
|
9501
9501
|
const oe = W.composedPath()[0];
|
|
9502
|
-
if (!wn(oe) ||
|
|
9502
|
+
if (!wn(oe) || ce !== "Escape" && ((me) => {
|
|
9503
9503
|
const _ = ["input", "textarea", "select", "option", "video", "iframe", "[contenteditable]", "[data-selectable]", "[data-draggable]"].join(",");
|
|
9504
9504
|
return me.matches(_) || me.closest(_);
|
|
9505
9505
|
})(oe) || (w("keydown", W), W.defaultPrevented)) return;
|
|
9506
|
-
const Q = ke[
|
|
9506
|
+
const Q = ke[ce];
|
|
9507
9507
|
if (Q) switch (Q) {
|
|
9508
9508
|
case "close":
|
|
9509
9509
|
ct(W);
|
|
@@ -9517,15 +9517,15 @@ const j0 = "with-fancybox", G5 = () => {
|
|
|
9517
9517
|
}
|
|
9518
9518
|
function K(W) {
|
|
9519
9519
|
if (!pe() || l !== it.Ready || (gt(), W.defaultPrevented)) return;
|
|
9520
|
-
const
|
|
9520
|
+
const ce = W.composedPath()[0], ke = !!ce.closest("[data-fancybox-close]"), oe = ce.classList.contains("fancybox__backdrop");
|
|
9521
9521
|
(ke || oe) && E(W);
|
|
9522
9522
|
}
|
|
9523
9523
|
function ee(W) {
|
|
9524
|
-
var
|
|
9524
|
+
var ce;
|
|
9525
9525
|
const { el: ke, htmlEl: oe, closeButtonEl: Q } = W;
|
|
9526
9526
|
if (!ke || !ke.parentElement || !oe) return;
|
|
9527
9527
|
let me = p("closeButton");
|
|
9528
|
-
if (me === "auto" && (me = ((
|
|
9528
|
+
if (me === "auto" && (me = ((ce = a == null ? void 0 : a.getPlugins().Toolbar) === null || ce === void 0 ? void 0 : ce.isEnabled()) !== !0), me) {
|
|
9529
9529
|
if (!Q) {
|
|
9530
9530
|
const _ = Yt(x(ms));
|
|
9531
9531
|
_ && (De(_, "is-close-button"), W.closeButtonEl = oe.insertAdjacentElement("afterbegin", _), De(ke, "has-close-btn"));
|
|
@@ -9538,12 +9538,12 @@ const j0 = "with-fancybox", G5 = () => {
|
|
|
9538
9538
|
function se(W) {
|
|
9539
9539
|
if (!(g && a && a.getState() === 1 && W && W.index === a.getOptions().initialPage && W.el && W.el.parentElement) || W.state !== void 0 && W.state !== 1) return;
|
|
9540
9540
|
g = !1;
|
|
9541
|
-
const
|
|
9542
|
-
if (
|
|
9543
|
-
const { x: me, y: _, scale: I } =
|
|
9541
|
+
const ce = W.panzoomRef, ke = ce == null ? void 0 : ce.getTween(), oe = p("zoomEffect") && ke ? je(W) : void 0;
|
|
9542
|
+
if (ce && ke && oe) {
|
|
9543
|
+
const { x: me, y: _, scale: I } = ce.getStartPosition();
|
|
9544
9544
|
return void ke.spring({ tension: 215, friction: 25, restDelta: 1e-3, restSpeed: 1e-3, maxSpeed: 1 / 0 }).from(oe).to({ x: me, y: _, scale: I }).start();
|
|
9545
9545
|
}
|
|
9546
|
-
const Q = (
|
|
9546
|
+
const Q = (ce == null ? void 0 : ce.getContent()) || W.htmlEl;
|
|
9547
9547
|
Q && z0(Q, p("showClass", W));
|
|
9548
9548
|
}
|
|
9549
9549
|
function pe() {
|
|
@@ -9559,10 +9559,10 @@ const j0 = "with-fancybox", G5 = () => {
|
|
|
9559
9559
|
return W ? W.triggerEl || p("triggerEl") : void 0;
|
|
9560
9560
|
}
|
|
9561
9561
|
function je(W) {
|
|
9562
|
-
var
|
|
9562
|
+
var ce, ke;
|
|
9563
9563
|
const oe = W.thumbEl;
|
|
9564
|
-
if (!oe || !((
|
|
9565
|
-
const ae =
|
|
9564
|
+
if (!oe || !((X) => {
|
|
9565
|
+
const ae = X.getBoundingClientRect(), fe = X.closest("[style]"), ve = fe == null ? void 0 : fe.parentElement;
|
|
9566
9566
|
if (fe && fe.style.transform && ve) {
|
|
9567
9567
|
const Be = ve.getBoundingClientRect();
|
|
9568
9568
|
if (ae.left < Be.left || ae.left > Be.left + Be.width - ae.width || ae.top < Be.top || ae.top > Be.top + Be.height - ae.height) return !1;
|
|
@@ -9570,21 +9570,21 @@ const j0 = "with-fancybox", G5 = () => {
|
|
|
9570
9570
|
const ye = Math.max(document.documentElement.clientHeight, window.innerHeight), Le = Math.max(document.documentElement.clientWidth, window.innerWidth);
|
|
9571
9571
|
return !(ae.bottom < 0 || ae.top - ye >= 0 || ae.right < 0 || ae.left - Le >= 0);
|
|
9572
9572
|
})(oe)) return;
|
|
9573
|
-
const Q = (ke = (
|
|
9573
|
+
const Q = (ke = (ce = W.panzoomRef) === null || ce === void 0 ? void 0 : ce.getWrapper()) === null || ke === void 0 ? void 0 : ke.getBoundingClientRect(), me = Q == null ? void 0 : Q.width, _ = Q == null ? void 0 : Q.height;
|
|
9574
9574
|
if (!me || !_) return;
|
|
9575
9575
|
const I = oe.getBoundingClientRect();
|
|
9576
9576
|
let ne = I.width, Z = I.height, C = I.left, D = I.top;
|
|
9577
9577
|
if (!(!I || !ne || !Z)) {
|
|
9578
9578
|
if (oe instanceof HTMLImageElement) {
|
|
9579
|
-
const
|
|
9580
|
-
if (
|
|
9579
|
+
const X = window.getComputedStyle(oe).getPropertyValue("object-fit");
|
|
9580
|
+
if (X === "contain" || X === "scale-down") {
|
|
9581
9581
|
const { width: ae, height: fe } = ((ve, ye, Le, Be, qe = "contain") => {
|
|
9582
9582
|
if (qe === "contain" || ve > Le || ye > Be) {
|
|
9583
9583
|
const Ee = Le / ve, T = Be / ye, z = Math.min(Ee, T);
|
|
9584
9584
|
ve *= z, ye *= z;
|
|
9585
9585
|
}
|
|
9586
9586
|
return { width: ve, height: ye };
|
|
9587
|
-
})(oe.naturalWidth, oe.naturalHeight, ne, Z,
|
|
9587
|
+
})(oe.naturalWidth, oe.naturalHeight, ne, Z, X);
|
|
9588
9588
|
C += 0.5 * (ne - ae), D += 0.5 * (Z - fe), ne = ae, Z = fe;
|
|
9589
9589
|
}
|
|
9590
9590
|
}
|
|
@@ -9611,10 +9611,10 @@ const j0 = "with-fancybox", G5 = () => {
|
|
|
9611
9611
|
}
|
|
9612
9612
|
function wt() {
|
|
9613
9613
|
const W = be();
|
|
9614
|
-
var
|
|
9615
|
-
!W || (
|
|
9614
|
+
var ce;
|
|
9615
|
+
!W || (ce = W.getBoundingClientRect()).bottom > 0 && ce.right > 0 && ce.left < (window.innerWidth || document.documentElement.clientWidth) && ce.top < (window.innerHeight || document.documentElement.clientHeight) || W.scrollIntoView({ behavior: "instant", block: "center", inline: "center" });
|
|
9616
9616
|
}
|
|
9617
|
-
function ct(W,
|
|
9617
|
+
function ct(W, ce) {
|
|
9618
9618
|
var ke, oe, Q, me, _;
|
|
9619
9619
|
if (l === it.Closing || l === it.Destroyed) return;
|
|
9620
9620
|
const I = new Event("shouldClose", { bubbles: !0, cancelable: !0 });
|
|
@@ -9635,26 +9635,26 @@ const j0 = "with-fancybox", G5 = () => {
|
|
|
9635
9635
|
const Z = ne == null ? void 0 : ne.Fullscreen;
|
|
9636
9636
|
Z && Z.inFullscreen() ? Promise.resolve(Z.exit()).then(() => {
|
|
9637
9637
|
setTimeout(() => {
|
|
9638
|
-
st(W,
|
|
9638
|
+
st(W, ce);
|
|
9639
9639
|
}, 150);
|
|
9640
|
-
}) : st(W,
|
|
9640
|
+
}) : st(W, ce);
|
|
9641
9641
|
}
|
|
9642
|
-
function st(W,
|
|
9642
|
+
function st(W, ce) {
|
|
9643
9643
|
var ke, oe;
|
|
9644
9644
|
if (l !== it.Closing) return;
|
|
9645
9645
|
w("close", W), g = !1, document.body.removeEventListener("click", K), document.body.removeEventListener("keydown", V, { passive: !1, capture: !0 }), p("placeFocusBack") && wt(), p("fadeEffect") && (t == null || t.classList.remove("is-ready"), t == null || t.classList.add("is-hiding")), t == null || t.classList.add("is-closing");
|
|
9646
|
-
const Q = ie(), me = Q == null ? void 0 : Q.el, _ = Q == null ? void 0 : Q.panzoomRef, I = (ke = Q == null ? void 0 : Q.panzoomRef) === null || ke === void 0 ? void 0 : ke.getTween(), ne =
|
|
9646
|
+
const Q = ie(), me = Q == null ? void 0 : Q.el, _ = Q == null ? void 0 : Q.panzoomRef, I = (ke = Q == null ? void 0 : Q.panzoomRef) === null || ke === void 0 ? void 0 : ke.getTween(), ne = ce || p("hideClass");
|
|
9647
9647
|
let Z = !1, C = !1;
|
|
9648
9648
|
if (a && Q && me && _ && I) {
|
|
9649
|
-
let
|
|
9650
|
-
if (p("zoomEffect") && Q.state === 1 && (
|
|
9649
|
+
let X;
|
|
9650
|
+
if (p("zoomEffect") && Q.state === 1 && (X = je(Q)), X) {
|
|
9651
9651
|
Z = !0;
|
|
9652
9652
|
const ae = () => {
|
|
9653
|
-
|
|
9653
|
+
X = je(Q), X ? I.to(Object.assign(Object.assign({}, Ot), X)) : Xe();
|
|
9654
9654
|
};
|
|
9655
9655
|
_.on("refresh", () => {
|
|
9656
9656
|
ae();
|
|
9657
|
-
}), I.easing(tn.Easings.EaseOut).duration(350).from(Object.assign({}, _.getTransform())).to(Object.assign(Object.assign({}, Ot),
|
|
9657
|
+
}), I.easing(tn.Easings.EaseOut).duration(350).from(Object.assign({}, _.getTransform())).to(Object.assign(Object.assign({}, Ot), X)).start(), me != null && me.getAnimations() && (me.style.animationPlayState = "paused", requestAnimationFrame(() => {
|
|
9658
9658
|
ae();
|
|
9659
9659
|
}));
|
|
9660
9660
|
}
|
|
@@ -9667,11 +9667,11 @@ const j0 = "with-fancybox", G5 = () => {
|
|
|
9667
9667
|
}, 350) : Xe();
|
|
9668
9668
|
}
|
|
9669
9669
|
function Xe() {
|
|
9670
|
-
var W,
|
|
9670
|
+
var W, ce, ke, oe, Q;
|
|
9671
9671
|
if (l === it.Destroyed) return;
|
|
9672
9672
|
l = it.Destroyed;
|
|
9673
9673
|
const me = be();
|
|
9674
|
-
w("destroy"), (
|
|
9674
|
+
w("destroy"), (ce = (W = p("sync")) === null || W === void 0 ? void 0 : W.getPlugins().Autoplay) === null || ce === void 0 || ce.resume(), (oe = (ke = p("sync")) === null || ke === void 0 ? void 0 : ke.getPlugins().Autoscroll) === null || oe === void 0 || oe.resume(), e instanceof HTMLDialogElement && e.close(), (Q = a == null ? void 0 : a.getContainer()) === null || Q === void 0 || Q.classList.remove("is-idle"), a == null || a.destroy();
|
|
9675
9675
|
for (const _ of Object.values(c)) _ == null || _.destroy();
|
|
9676
9676
|
if (c = {}, e == null || e.remove(), e = void 0, t = void 0, a = void 0, Ut.delete(u), !Ut.size && (b0(!1), document.documentElement.classList.remove(j0), p("placeFocusBack"))) try {
|
|
9677
9677
|
me == null || me.focus({ preventScroll: !0 });
|
|
@@ -9692,8 +9692,8 @@ const j0 = "with-fancybox", G5 = () => {
|
|
|
9692
9692
|
return ie();
|
|
9693
9693
|
}, getState: function() {
|
|
9694
9694
|
return l;
|
|
9695
|
-
}, init: function(W = [],
|
|
9696
|
-
l !== it.Init && (et.destroy(), l = it.Init), f = Ct({}, Nn,
|
|
9695
|
+
}, init: function(W = [], ce = {}) {
|
|
9696
|
+
l !== it.Init && (et.destroy(), l = it.Init), f = Ct({}, Nn, ce), u = p("id") || "fancybox-" + ++N5;
|
|
9697
9697
|
const ke = Ut.get(u);
|
|
9698
9698
|
if (ke && ke.destroy(), Ut.set(u, et), w("init"), function() {
|
|
9699
9699
|
for (const [oe, Q] of Object.entries(Object.assign(Object.assign({}, Ke.Plugins), f.plugins || {}))) if (oe && !c[oe] && Q instanceof Function) {
|
|
@@ -9719,10 +9719,10 @@ const j0 = "with-fancybox", G5 = () => {
|
|
|
9719
9719
|
const C = Z.target;
|
|
9720
9720
|
let D = p("wheel", Z);
|
|
9721
9721
|
C.closest(".f-thumbs") && (D = "slide");
|
|
9722
|
-
const
|
|
9722
|
+
const X = D === "slide", ae = [-Z.deltaX || 0, -Z.deltaY || 0, -Z.detail || 0].reduce(function(ye, Le) {
|
|
9723
9723
|
return Math.abs(Le) > Math.abs(ye) ? Le : ye;
|
|
9724
9724
|
}), fe = Math.max(-1, Math.min(1, ae)), ve = Date.now();
|
|
9725
|
-
h && ve - h < 300 ?
|
|
9725
|
+
h && ve - h < 300 ? X && jt(Z) : (h = ve, w("wheel", Z, fe), Z.defaultPrevented || (D === "close" ? ct(Z) : D === "slide" && a && !fn(C) && (jt(Z), a[fe > 0 ? "prev" : "next"]())));
|
|
9726
9726
|
}, { capture: !0, passive: !1 }), e.addEventListener("cancel", (Z) => {
|
|
9727
9727
|
ct(Z);
|
|
9728
9728
|
}), oe.append(e), Ut.size === 1 && (p("hideScrollbar") && b0(!0), document.documentElement.classList.add(j0)), e instanceof HTMLDialogElement && (p("modal") ? e.showModal() : e.show()), w("initLayout");
|
|
@@ -9743,14 +9743,14 @@ const j0 = "with-fancybox", G5 = () => {
|
|
|
9743
9743
|
}, 500), De(t, "is-revealing")) : S(), t.classList.add("is-ready"), l = it.Ready, w("ready");
|
|
9744
9744
|
}
|
|
9745
9745
|
}, isCurrentSlide: function(W) {
|
|
9746
|
-
const
|
|
9747
|
-
return !(!W || !
|
|
9746
|
+
const ce = ie();
|
|
9747
|
+
return !(!W || !ce) && ce.index === W.index;
|
|
9748
9748
|
}, isTopMost: function() {
|
|
9749
9749
|
return pe();
|
|
9750
|
-
}, off: function(W,
|
|
9751
|
-
return b.has(W) && b.set(W, b.get(W).filter((ke) => ke !==
|
|
9752
|
-
}, on: function(W,
|
|
9753
|
-
return b.set(W, [...b.get(W) || [],
|
|
9750
|
+
}, off: function(W, ce) {
|
|
9751
|
+
return b.has(W) && b.set(W, b.get(W).filter((ke) => ke !== ce)), et;
|
|
9752
|
+
}, on: function(W, ce) {
|
|
9753
|
+
return b.set(W, [...b.get(W) || [], ce]), et;
|
|
9754
9754
|
}, toggleIdle(W) {
|
|
9755
9755
|
(d || W === !0) && ot(), d && W !== !1 || ut();
|
|
9756
9756
|
} };
|
|
@@ -11071,7 +11071,7 @@ const Q5 = {
|
|
|
11071
11071
|
function cd(e, t, n, a, o, s) {
|
|
11072
11072
|
const i = Dt("Avatar");
|
|
11073
11073
|
return v(), y("div", J5, [
|
|
11074
|
-
n.isOwner ?
|
|
11074
|
+
n.isOwner ? Y("", !0) : (v(), y("section", ed, [
|
|
11075
11075
|
Ye(r("main", td, [
|
|
11076
11076
|
Me(i, {
|
|
11077
11077
|
url: n.avatar,
|
|
@@ -11115,7 +11115,7 @@ function cd(e, t, n, a, o, s) {
|
|
|
11115
11115
|
class: "",
|
|
11116
11116
|
onClick: t[1] || (t[1] = (...l) => s.playPause && s.playPause(...l))
|
|
11117
11117
|
}, [
|
|
11118
|
-
o.isPlaying ?
|
|
11118
|
+
o.isPlaying ? Y("", !0) : (v(), y("svg", nd, [...t[5] || (t[5] = [
|
|
11119
11119
|
r("path", {
|
|
11120
11120
|
"stroke-linecap": "round",
|
|
11121
11121
|
"stroke-linejoin": "round",
|
|
@@ -11128,7 +11128,7 @@ function cd(e, t, n, a, o, s) {
|
|
|
11128
11128
|
"stroke-linejoin": "round",
|
|
11129
11129
|
d: "M15.75 5.25v13.5m-7.5-13.5v13.5"
|
|
11130
11130
|
}, null, -1)
|
|
11131
|
-
])])) :
|
|
11131
|
+
])])) : Y("", !0)
|
|
11132
11132
|
]),
|
|
11133
11133
|
r("section", od, [
|
|
11134
11134
|
o.isLoading ? (v(), y("div", sd, [...t[7] || (t[7] = [
|
|
@@ -11136,7 +11136,7 @@ function cd(e, t, n, a, o, s) {
|
|
|
11136
11136
|
r("div", { class: "absolute top-0 ml-5 mt-1 size-3 rounded-full bg-[#0FB2D6]" }, null, -1),
|
|
11137
11137
|
r("div", { class: "absolute top-0 ml-5 mt-1 size-3 rounded-full bg-[#0FB2D6]" }, null, -1),
|
|
11138
11138
|
r("div", { class: "absolute top-0 ml-5 mt-1 size-3 rounded-full bg-[#0FB2D6]" }, null, -1)
|
|
11139
|
-
])])) :
|
|
11139
|
+
])])) : Y("", !0),
|
|
11140
11140
|
Ye(r("div", id, null, 512), [
|
|
11141
11141
|
[Zt, !o.isLoading]
|
|
11142
11142
|
])
|
|
@@ -11180,7 +11180,7 @@ function cd(e, t, n, a, o, s) {
|
|
|
11180
11180
|
], 512), [
|
|
11181
11181
|
[Zt, o.isPlaying]
|
|
11182
11182
|
])
|
|
11183
|
-
])) :
|
|
11183
|
+
])) : Y("", !0)
|
|
11184
11184
|
]);
|
|
11185
11185
|
}
|
|
11186
11186
|
const ys = /* @__PURE__ */ Oe(Q5, [["render", cd]]), dd = { key: 0 }, ud = ["src"], fd = {
|
|
@@ -11380,7 +11380,7 @@ const ys = /* @__PURE__ */ Oe(Q5, [["render", cd]]), dd = { key: 0 }, ud = ["src
|
|
|
11380
11380
|
console.error("Erro ao gerar thumbnail:", h), n.value = c();
|
|
11381
11381
|
}
|
|
11382
11382
|
}), (h, p) => (v(), y("main", {
|
|
11383
|
-
class:
|
|
11383
|
+
class: le({
|
|
11384
11384
|
main_preview_files_container_message: e.mode === "message",
|
|
11385
11385
|
main_preview_files_container_miniature: e.mode === "miniature",
|
|
11386
11386
|
"main_preview_files_container_preview bg-base-200": e.mode === "preview"
|
|
@@ -11401,7 +11401,7 @@ const ys = /* @__PURE__ */ Oe(Q5, [["render", cd]]), dd = { key: 0 }, ud = ["src
|
|
|
11401
11401
|
])]))
|
|
11402
11402
|
])) : e.isMobile && s.value && e.mode === "message" ? (v(), y("section", {
|
|
11403
11403
|
key: 1,
|
|
11404
|
-
class:
|
|
11404
|
+
class: le(
|
|
11405
11405
|
e.mode === "message" ? "flex flex-col bg-base-300 p-2 rounded-md gap-2" : ""
|
|
11406
11406
|
)
|
|
11407
11407
|
}, [
|
|
@@ -11428,7 +11428,7 @@ const ys = /* @__PURE__ */ Oe(Q5, [["render", cd]]), dd = { key: 0 }, ud = ["src
|
|
|
11428
11428
|
class: "bg-base-200 p-2 text-primary w-full text-xs rounded-md hover:bg-base-100",
|
|
11429
11429
|
onClick: p[0] || (p[0] = (x) => h.$emit("open-mobile-pdf"))
|
|
11430
11430
|
}, " Abrir PDF ")
|
|
11431
|
-
])) :
|
|
11431
|
+
])) : Y("", !0)
|
|
11432
11432
|
], 2)) : i.value ? (v(), y("button", {
|
|
11433
11433
|
key: 2,
|
|
11434
11434
|
onClick: p[1] || (p[1] = (x) => u(e.base64, e.mimetype)),
|
|
@@ -11467,7 +11467,7 @@ const ys = /* @__PURE__ */ Oe(Q5, [["render", cd]]), dd = { key: 0 }, ud = ["src
|
|
|
11467
11467
|
])
|
|
11468
11468
|
]),
|
|
11469
11469
|
r("img", {
|
|
11470
|
-
class:
|
|
11470
|
+
class: le(["preview_img", e.mode]),
|
|
11471
11471
|
src: d(e.base64) ? e.base64 : e.base64.replace("+", "%2B")
|
|
11472
11472
|
}, null, 10, wd)
|
|
11473
11473
|
])) : f(e.mimetype) ? (v(), y("section", Cd, [
|
|
@@ -11542,13 +11542,13 @@ const ys = /* @__PURE__ */ Oe(Q5, [["render", cd]]), dd = { key: 0 }, ud = ["src
|
|
|
11542
11542
|
])
|
|
11543
11543
|
]),
|
|
11544
11544
|
r("img", {
|
|
11545
|
-
class:
|
|
11545
|
+
class: le(["preview_img", e.mode]),
|
|
11546
11546
|
src: n.value
|
|
11547
11547
|
}, null, 10, Od)
|
|
11548
11548
|
])) : (v(), y("span", Pd, [...p[18] || (p[18] = [
|
|
11549
11549
|
r("span", { class: "loader-preview-lib" }, null, -1)
|
|
11550
11550
|
])]))
|
|
11551
|
-
])) :
|
|
11551
|
+
])) : Y("", !0)
|
|
11552
11552
|
])) : l.value ? (v(), y("section", Hd, [
|
|
11553
11553
|
e.mode !== "miniature" ? (v(), y("section", _d, [
|
|
11554
11554
|
Me(ys, {
|
|
@@ -11567,7 +11567,7 @@ const ys = /* @__PURE__ */ Oe(Q5, [["render", cd]]), dd = { key: 0 }, ud = ["src
|
|
|
11567
11567
|
])]))
|
|
11568
11568
|
])) : (v(), y("div", {
|
|
11569
11569
|
key: 5,
|
|
11570
|
-
class:
|
|
11570
|
+
class: le(e.mode === "message" ? "generic_files" : "")
|
|
11571
11571
|
}, [
|
|
11572
11572
|
p[20] || (p[20] = r("div", null, [
|
|
11573
11573
|
r("svg", {
|
|
@@ -11592,17 +11592,17 @@ const ys = /* @__PURE__ */ Oe(Q5, [["render", cd]]), dd = { key: 0 }, ud = ["src
|
|
|
11592
11592
|
class: "download_btn_generic_files",
|
|
11593
11593
|
onClick: p[5] || (p[5] = (x) => h.$emit("download"))
|
|
11594
11594
|
}, " Baixar arquivo ")
|
|
11595
|
-
])) :
|
|
11595
|
+
])) : Y("", !0)
|
|
11596
11596
|
], 2)),
|
|
11597
11597
|
e.mode === "message" ? (v(), y("div", jd, [
|
|
11598
11598
|
mt(h.$slots, "content-message", {}, void 0, !0),
|
|
11599
11599
|
r("div", {
|
|
11600
|
-
class:
|
|
11600
|
+
class: le([a.value ? "justify-between" : " justify-end", "flex w-full"])
|
|
11601
11601
|
}, [
|
|
11602
|
-
l.value && a.value ? (v(), y("p", Nd, re(g(a.value)) + " - " + re(o.value ? g(o.value) : "00:00"), 1)) :
|
|
11602
|
+
l.value && a.value ? (v(), y("p", Nd, re(g(a.value)) + " - " + re(o.value ? g(o.value) : "00:00"), 1)) : Y("", !0),
|
|
11603
11603
|
mt(h.$slots, "time-message", {}, void 0, !0)
|
|
11604
11604
|
], 2)
|
|
11605
|
-
])) :
|
|
11605
|
+
])) : Y("", !0)
|
|
11606
11606
|
], 2));
|
|
11607
11607
|
}
|
|
11608
11608
|
}, sa = /* @__PURE__ */ Oe(Gd, [["__scopeId", "data-v-6405f10f"]]), Id = {
|
|
@@ -11741,7 +11741,7 @@ const Ud = /* @__PURE__ */ Oe(Id, [["render", qd], ["__scopeId", "data-v-49dbe3d
|
|
|
11741
11741
|
])])) : (v(), y("div", Zd, [
|
|
11742
11742
|
!s.value && !c.value ? (v(), y("button", {
|
|
11743
11743
|
key: 0,
|
|
11744
|
-
class:
|
|
11744
|
+
class: le(["send-audio-button", { recording: s.value }]),
|
|
11745
11745
|
disabled: s.value || !e.canSendMessage,
|
|
11746
11746
|
onClick: M[0] || (M[0] = (K) => ($(), f.value = 0, x.value = !1))
|
|
11747
11747
|
}, [...M[3] || (M[3] = [
|
|
@@ -11755,7 +11755,7 @@ const Ud = /* @__PURE__ */ Oe(Id, [["render", qd], ["__scopeId", "data-v-49dbe3d
|
|
|
11755
11755
|
r("path", { d: "M15 5a1 1 0 0 0-1 1v3a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V6a1 1 0 0 0-2 0v3a6.006 6.006 0 0 0 6 6h1v2H5a1 1 0 0 0 0 2h6a1 1 0 0 0 0-2H9v-2h1a6.006 6.006 0 0 0 6-6V6a1 1 0 0 0-1-1Z" }),
|
|
11756
11756
|
r("path", { d: "M9 0H7a3 3 0 0 0-3 3v5a3 3 0 0 0 3 3h2a3 3 0 0 0 3-3V3a3 3 0 0 0-3-3Z" })
|
|
11757
11757
|
], -1)
|
|
11758
|
-
])], 10, Yd)) :
|
|
11758
|
+
])], 10, Yd)) : Y("", !0),
|
|
11759
11759
|
d.value ? (v(), y("button", {
|
|
11760
11760
|
key: 1,
|
|
11761
11761
|
class: "rounded-full bg-red-500 p-1.5 hover:bg-red-600",
|
|
@@ -11775,7 +11775,7 @@ const Ud = /* @__PURE__ */ Oe(Id, [["render", qd], ["__scopeId", "data-v-49dbe3d
|
|
|
11775
11775
|
d: "M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"
|
|
11776
11776
|
})
|
|
11777
11777
|
], -1)
|
|
11778
|
-
])])) :
|
|
11778
|
+
])])) : Y("", !0),
|
|
11779
11779
|
s.value ? (v(), y("button", {
|
|
11780
11780
|
key: 2,
|
|
11781
11781
|
disabled: !s.value && !i.value,
|
|
@@ -11794,7 +11794,7 @@ const Ud = /* @__PURE__ */ Oe(Id, [["render", qd], ["__scopeId", "data-v-49dbe3d
|
|
|
11794
11794
|
"clip-rule": "evenodd"
|
|
11795
11795
|
}, null, -1)
|
|
11796
11796
|
])]))
|
|
11797
|
-
], 8, Xd)) :
|
|
11797
|
+
], 8, Xd)) : Y("", !0),
|
|
11798
11798
|
(s.value || u.value) && !c.value ? (v(), y("button", {
|
|
11799
11799
|
key: 3,
|
|
11800
11800
|
class: "rounded-full p-1.5 hover:bg-gray-100 hover:text-light",
|
|
@@ -11814,11 +11814,11 @@ const Ud = /* @__PURE__ */ Oe(Id, [["render", qd], ["__scopeId", "data-v-49dbe3d
|
|
|
11814
11814
|
d: "M5.25 7.5A2.25 2.25 0 017.5 5.25h9a2.25 2.25 0 012.25 2.25v9a2.25 2.25 0 01-2.25 2.25h-9a2.25 2.25 0 01-2.25-2.25v-9z"
|
|
11815
11815
|
})
|
|
11816
11816
|
], -1)
|
|
11817
|
-
])])) :
|
|
11817
|
+
])])) : Y("", !0),
|
|
11818
11818
|
d.value && s.value && !i.value ? (v(), ze(Ud, {
|
|
11819
11819
|
key: 4,
|
|
11820
11820
|
"audio-stream": d.value
|
|
11821
|
-
}, null, 8, ["audio-stream"])) :
|
|
11821
|
+
}, null, 8, ["audio-stream"])) : Y("", !0),
|
|
11822
11822
|
c.value ? (v(), y("div", Jd, [
|
|
11823
11823
|
Me(ys, {
|
|
11824
11824
|
avatar: ((V = e.attendant) == null ? void 0 : V.photo) || null,
|
|
@@ -11828,9 +11828,9 @@ const Ud = /* @__PURE__ */ Oe(Id, [["render", qd], ["__scopeId", "data-v-49dbe3d
|
|
|
11828
11828
|
}, null, 8, ["avatar", "audio"]),
|
|
11829
11829
|
r("main", eu, [
|
|
11830
11830
|
r("div", null, re(L(h.value)), 1),
|
|
11831
|
-
s.value || u.value ? (v(), y("div", tu, re(L(l.value)), 1)) :
|
|
11831
|
+
s.value || u.value ? (v(), y("div", tu, re(L(l.value)), 1)) : Y("", !0)
|
|
11832
11832
|
])
|
|
11833
|
-
])) :
|
|
11833
|
+
])) : Y("", !0),
|
|
11834
11834
|
c.value ? (v(), y("button", {
|
|
11835
11835
|
key: 6,
|
|
11836
11836
|
class: "rounded-full p-2 hover:bg-base-100",
|
|
@@ -11851,7 +11851,7 @@ const Ud = /* @__PURE__ */ Oe(Id, [["render", qd], ["__scopeId", "data-v-49dbe3d
|
|
|
11851
11851
|
"clip-rule": "evenodd"
|
|
11852
11852
|
})
|
|
11853
11853
|
], -1)
|
|
11854
|
-
])])) :
|
|
11854
|
+
])])) : Y("", !0)
|
|
11855
11855
|
]));
|
|
11856
11856
|
};
|
|
11857
11857
|
}
|
|
@@ -12204,7 +12204,7 @@ Ma("CapacitorHttp", {
|
|
|
12204
12204
|
web: () => new gu()
|
|
12205
12205
|
});
|
|
12206
12206
|
const sn = Ma("VoiceRecorder", {
|
|
12207
|
-
web: () => import("./web-
|
|
12207
|
+
web: () => import("./web-luW_D2XX.js").then((e) => e.w).then((e) => new e.VoiceRecorderWeb())
|
|
12208
12208
|
});
|
|
12209
12209
|
function J0(e, t) {
|
|
12210
12210
|
return v(), y("svg", {
|
|
@@ -12429,9 +12429,9 @@ const bu = {
|
|
|
12429
12429
|
default: Fe(() => [
|
|
12430
12430
|
o.value ? (v(), y("div", bu, [
|
|
12431
12431
|
r("div", ku, [
|
|
12432
|
-
o.value != "paused" ? (v(), y("section", wu, "Gravando")) :
|
|
12432
|
+
o.value != "paused" ? (v(), y("section", wu, "Gravando")) : Y("", !0)
|
|
12433
12433
|
]),
|
|
12434
|
-
o.value != "paused" ? (v(), y("section", Cu, re(c.value), 1)) :
|
|
12434
|
+
o.value != "paused" ? (v(), y("section", Cu, re(c.value), 1)) : Y("", !0),
|
|
12435
12435
|
o.value === "paused" ? (v(), y("section", Su, [
|
|
12436
12436
|
m.value ? (v(), y("button", Mu, [
|
|
12437
12437
|
Me(Se(eo), {
|
|
@@ -12446,8 +12446,8 @@ const bu = {
|
|
|
12446
12446
|
])),
|
|
12447
12447
|
V[7] || (V[7] = r("div", null, null, -1)),
|
|
12448
12448
|
Qe(" " + re(c.value), 1)
|
|
12449
|
-
])) :
|
|
12450
|
-
])) :
|
|
12449
|
+
])) : Y("", !0)
|
|
12450
|
+
])) : Y("", !0)
|
|
12451
12451
|
]),
|
|
12452
12452
|
_: 1
|
|
12453
12453
|
}),
|
|
@@ -12457,19 +12457,19 @@ const bu = {
|
|
|
12457
12457
|
onClick: V[2] || (V[2] = (K) => k())
|
|
12458
12458
|
}, [
|
|
12459
12459
|
Me(Se(xu), { class: "ml-2 size-6 cursor-pointer text-red-500/80 drop-shadow-md" })
|
|
12460
|
-
])) :
|
|
12460
|
+
])) : Y("", !0),
|
|
12461
12461
|
o.value === "paused" ? (v(), y("button", {
|
|
12462
12462
|
key: 1,
|
|
12463
12463
|
onClick: V[3] || (V[3] = (K) => O())
|
|
12464
12464
|
}, [
|
|
12465
12465
|
Me(Se(J0), { class: "size-7 cursor-pointer text-green-500/90 drop-shadow-md" })
|
|
12466
|
-
])) :
|
|
12466
|
+
])) : Y("", !0),
|
|
12467
12467
|
o.value === "started" ? (v(), y("button", {
|
|
12468
12468
|
key: 2,
|
|
12469
12469
|
onClick: V[4] || (V[4] = (K) => $())
|
|
12470
12470
|
}, [
|
|
12471
12471
|
Me(Se(eo), { class: "size-7 cursor-pointer text-green-500 drop-shadow-md" })
|
|
12472
|
-
])) :
|
|
12472
|
+
])) : Y("", !0),
|
|
12473
12473
|
o.value ? (v(), y("button", {
|
|
12474
12474
|
key: 4,
|
|
12475
12475
|
disabled: s.value,
|
|
@@ -12685,16 +12685,16 @@ const bu = {
|
|
|
12685
12685
|
], -1)
|
|
12686
12686
|
])]),
|
|
12687
12687
|
_: 1
|
|
12688
|
-
})) :
|
|
12688
|
+
})) : Y("", !0),
|
|
12689
12689
|
r("div", null, [
|
|
12690
12690
|
(v(!0), y(Pe, null, Ie(u.value, (H, P) => (v(), y("div", { key: P }, [
|
|
12691
12691
|
p(P) ? (v(), y("div", Pu, [
|
|
12692
12692
|
k[7] || (k[7] = r("div", { class: "date-separator-line" }, null, -1)),
|
|
12693
12693
|
r("div", Hu, re(h(H.created_at)), 1),
|
|
12694
12694
|
k[8] || (k[8] = r("div", { class: "date-separator-line" }, null, -1))
|
|
12695
|
-
])) :
|
|
12695
|
+
])) : Y("", !0),
|
|
12696
12696
|
r("div", {
|
|
12697
|
-
class:
|
|
12697
|
+
class: le([
|
|
12698
12698
|
"message",
|
|
12699
12699
|
{
|
|
12700
12700
|
me: H.sender.id === e.attendant.id,
|
|
@@ -12704,7 +12704,7 @@ const bu = {
|
|
|
12704
12704
|
])
|
|
12705
12705
|
}, [
|
|
12706
12706
|
r("div", {
|
|
12707
|
-
class:
|
|
12707
|
+
class: le([
|
|
12708
12708
|
"relative",
|
|
12709
12709
|
H.sender.id === e.attendant.id ? "text-right" : "text-left"
|
|
12710
12710
|
])
|
|
@@ -12747,9 +12747,9 @@ const bu = {
|
|
|
12747
12747
|
]),
|
|
12748
12748
|
_: 2
|
|
12749
12749
|
}, 1024)
|
|
12750
|
-
])) :
|
|
12750
|
+
])) : Y("", !0),
|
|
12751
12751
|
r("div", {
|
|
12752
|
-
class:
|
|
12752
|
+
class: le(["shadow shadow-gray-900 dark:shadow-gray-500", [
|
|
12753
12753
|
"message-content",
|
|
12754
12754
|
{
|
|
12755
12755
|
me: H.sender.id === e.attendant.id,
|
|
@@ -12842,7 +12842,7 @@ const bu = {
|
|
|
12842
12842
|
], -1)
|
|
12843
12843
|
])])) : (v(), y("section", {
|
|
12844
12844
|
key: 1,
|
|
12845
|
-
class:
|
|
12845
|
+
class: le(["bg-base-300", ["send-audio-button", { recording: l.value }]])
|
|
12846
12846
|
}, [
|
|
12847
12847
|
e.isMobile ? (v(), ze($u, {
|
|
12848
12848
|
key: 0,
|
|
@@ -13424,7 +13424,7 @@ const r6 = {
|
|
|
13424
13424
|
function W() {
|
|
13425
13425
|
S && (clearInterval(S), S = null);
|
|
13426
13426
|
}
|
|
13427
|
-
const
|
|
13427
|
+
const ce = G(!1), ke = ({ deltaX: B, deltaY: N, isTouch: q }) => {
|
|
13428
13428
|
var J, de, ge, he;
|
|
13429
13429
|
n("drag", { deltaX: B, deltaY: N });
|
|
13430
13430
|
const Ce = q ? typeof d.touchDrag == "object" && (de = (J = d.touchDrag) === null || J === void 0 ? void 0 : J.threshold) !== null && de !== void 0 ? de : i1 : typeof d.mouseDrag == "object" && (he = (ge = d.mouseDrag) === null || ge === void 0 ? void 0 : ge.threshold) !== null && he !== void 0 ? he : i1, $e = Qu({
|
|
@@ -13440,14 +13440,14 @@ const r6 = {
|
|
|
13440
13440
|
min: w.value
|
|
13441
13441
|
}));
|
|
13442
13442
|
}, oe = () => D(h.value), { dragged: Q, isDragging: me, handleDragStart: _ } = o6({
|
|
13443
|
-
isSliding:
|
|
13443
|
+
isSliding: ce,
|
|
13444
13444
|
onDrag: ke,
|
|
13445
13445
|
onDragEnd: oe
|
|
13446
13446
|
}), I = ({ deltaX: B, deltaY: N, isScrollingForward: q }) => {
|
|
13447
13447
|
n("wheel", { deltaX: B, deltaY: N }), q ? A.value ? C() : Z() : A.value ? Z() : C();
|
|
13448
13448
|
}, { handleScroll: ne } = i6({
|
|
13449
13449
|
isVertical: k,
|
|
13450
|
-
isSliding:
|
|
13450
|
+
isSliding: ce,
|
|
13451
13451
|
config: d,
|
|
13452
13452
|
onWheel: I
|
|
13453
13453
|
});
|
|
@@ -13458,7 +13458,7 @@ const r6 = {
|
|
|
13458
13458
|
D(g.value - d.itemsToScroll, B);
|
|
13459
13459
|
}
|
|
13460
13460
|
function D(B, N = !1) {
|
|
13461
|
-
if (!N &&
|
|
13461
|
+
if (!N && ce.value)
|
|
13462
13462
|
return;
|
|
13463
13463
|
const q = (d.wrapAround ? As : Wt)({
|
|
13464
13464
|
val: B,
|
|
@@ -13472,7 +13472,7 @@ const r6 = {
|
|
|
13472
13472
|
currentSlideIndex: g.value,
|
|
13473
13473
|
prevSlideIndex: p.value,
|
|
13474
13474
|
slidesCount: l.value
|
|
13475
|
-
}), W(),
|
|
13475
|
+
}), W(), ce.value = !0, g.value = B, q !== B && ae.pause(), n("update:modelValue", q), L = setTimeout(() => {
|
|
13476
13476
|
d.wrapAround && q !== B && (ae.resume(), g.value = q, n("loop", {
|
|
13477
13477
|
currentSlideIndex: g.value,
|
|
13478
13478
|
slidingToIndex: B
|
|
@@ -13480,10 +13480,10 @@ const r6 = {
|
|
|
13480
13480
|
currentSlideIndex: g.value,
|
|
13481
13481
|
prevSlideIndex: p.value,
|
|
13482
13482
|
slidesCount: l.value
|
|
13483
|
-
}),
|
|
13483
|
+
}), ce.value = !1, et();
|
|
13484
13484
|
}, d.transition);
|
|
13485
13485
|
}
|
|
13486
|
-
function
|
|
13486
|
+
function X() {
|
|
13487
13487
|
P(), pe(), se(), et();
|
|
13488
13488
|
}
|
|
13489
13489
|
Ve(() => [m.value, e.breakpoints], () => P(), { deep: !0 }), Ve(() => e.autoplay, () => et());
|
|
@@ -13598,12 +13598,12 @@ const r6 = {
|
|
|
13598
13598
|
"--vc-carousel-height": r1(d.height),
|
|
13599
13599
|
"--vc-cloned-offset": r1(ve.value),
|
|
13600
13600
|
"--vc-slide-gap": r1(d.gap),
|
|
13601
|
-
"--vc-transition-duration":
|
|
13601
|
+
"--vc-transition-duration": ce.value ? r1(d.transition, "ms") : void 0
|
|
13602
13602
|
})), z = dn({
|
|
13603
13603
|
activeSlide: h,
|
|
13604
13604
|
config: d,
|
|
13605
13605
|
currentSlide: g,
|
|
13606
|
-
isSliding:
|
|
13606
|
+
isSliding: ce,
|
|
13607
13607
|
isVertical: k,
|
|
13608
13608
|
maxSlide: b,
|
|
13609
13609
|
minSlide: w,
|
|
@@ -13630,7 +13630,7 @@ const r6 = {
|
|
|
13630
13630
|
data: j,
|
|
13631
13631
|
next: Z,
|
|
13632
13632
|
prev: C,
|
|
13633
|
-
restartCarousel:
|
|
13633
|
+
restartCarousel: X,
|
|
13634
13634
|
slideTo: D,
|
|
13635
13635
|
updateBreakpointsConfig: P,
|
|
13636
13636
|
updateSlideSize: se,
|
|
@@ -13667,7 +13667,7 @@ const r6 = {
|
|
|
13667
13667
|
{
|
|
13668
13668
|
"is-dragging": me.value,
|
|
13669
13669
|
"is-hover": ot.value,
|
|
13670
|
-
"is-sliding":
|
|
13670
|
+
"is-sliding": ce.value,
|
|
13671
13671
|
"is-vertical": k.value
|
|
13672
13672
|
}
|
|
13673
13673
|
],
|
|
@@ -14041,7 +14041,7 @@ const f6 = gn({
|
|
|
14041
14041
|
onDrop: It($, ["prevent"])
|
|
14042
14042
|
}, [
|
|
14043
14043
|
r("section", {
|
|
14044
|
-
class:
|
|
14044
|
+
class: le(["dropzone-container ", { "dropzone-active": o.value }])
|
|
14045
14045
|
}, [
|
|
14046
14046
|
!m.value && f.value.length > 0 && !o.value ? (v(), y("div", h6, [
|
|
14047
14047
|
r("button", {
|
|
@@ -14114,9 +14114,9 @@ const f6 = gn({
|
|
|
14114
14114
|
"clip-rule": "evenodd"
|
|
14115
14115
|
})
|
|
14116
14116
|
], -1)
|
|
14117
|
-
])], 8, x6)) :
|
|
14117
|
+
])], 8, x6)) : Y("", !0),
|
|
14118
14118
|
r("button", {
|
|
14119
|
-
class:
|
|
14119
|
+
class: le(["bg-base-100", [
|
|
14120
14120
|
"carousel-preview",
|
|
14121
14121
|
{ active: c.value === te }
|
|
14122
14122
|
]]),
|
|
@@ -14170,8 +14170,8 @@ const f6 = gn({
|
|
|
14170
14170
|
], -1)
|
|
14171
14171
|
])])
|
|
14172
14172
|
])
|
|
14173
|
-
])) :
|
|
14174
|
-
m.value ? (v(), y("section", w6, " Enviando Arquivos... (" + re(g.value) + " / " + re(d.value) + ") ", 1)) :
|
|
14173
|
+
])) : Y("", !0),
|
|
14174
|
+
m.value ? (v(), y("section", w6, " Enviando Arquivos... (" + re(g.value) + " / " + re(d.value) + ") ", 1)) : Y("", !0),
|
|
14175
14175
|
mt(P.$slots, "default", {}, void 0, !0)
|
|
14176
14176
|
], 2),
|
|
14177
14177
|
r("input", {
|
|
@@ -14330,33 +14330,33 @@ const f6 = gn({
|
|
|
14330
14330
|
})
|
|
14331
14331
|
])
|
|
14332
14332
|
], -1)
|
|
14333
|
-
])])) :
|
|
14333
|
+
])])) : Y("", !0),
|
|
14334
14334
|
!d.value && e.countMessages > 0 ? (v(), y("section", {
|
|
14335
14335
|
key: 1,
|
|
14336
14336
|
style: Ze(
|
|
14337
14337
|
e.countMessages > 10 ? "padding: 0.2rem 0.500rem;" : "padding: 0.2rem 0.625rem;"
|
|
14338
14338
|
),
|
|
14339
14339
|
class: "chat-count"
|
|
14340
|
-
}, re(e.countMessages), 5)) :
|
|
14340
|
+
}, re(e.countMessages), 5)) : Y("", !0),
|
|
14341
14341
|
r("div", {
|
|
14342
14342
|
onClick: It(k, ["stop"]),
|
|
14343
|
-
class:
|
|
14343
|
+
class: le([
|
|
14344
14344
|
"group relative",
|
|
14345
14345
|
d.value ? "chat-box border-base-200 open bg-base-200" : "chat-box closed"
|
|
14346
14346
|
]),
|
|
14347
14347
|
style: Ze(R.value)
|
|
14348
14348
|
}, [
|
|
14349
|
-
d.value ?
|
|
14349
|
+
d.value ? Y("", !0) : (v(), y("span", S6, [
|
|
14350
14350
|
(v(), y("svg", M6, [
|
|
14351
14351
|
r("path", {
|
|
14352
|
-
class:
|
|
14352
|
+
class: le(
|
|
14353
14353
|
e.mode === "dark" ? "dark-chat-window-icon" : "chat-window-icon"
|
|
14354
14354
|
),
|
|
14355
14355
|
fill: "currentColor",
|
|
14356
14356
|
d: "M208 352c114.9 0 208-78.8 208-176S322.9 0 208 0S0 78.8 0 176c0 38.6 14.7 74.3 39.6 103.4c-3.5 9.4-8.7 17.7-14.2 24.7c-4.8 6.2-9.7 11-13.3 14.3c-1.8 1.6-3.3 2.9-4.3 3.7c-.5 .4-.9 .7-1.1 .8l-.2 .2s0 0 0 0s0 0 0 0C1 327.2-1.4 334.4 .8 340.9S9.1 352 16 352c21.8 0 43.8-5.6 62.1-12.5c9.2-3.5 17.8-7.4 25.2-11.4C134.1 343.3 169.8 352 208 352zM448 176c0 112.3-99.1 196.9-216.5 207C255.8 457.4 336.4 512 432 512c38.2 0 73.9-8.7 104.7-23.9c7.5 4 16 7.9 25.2 11.4c18.3 6.9 40.3 12.5 62.1 12.5c6.9 0 13.1-4.5 15.2-11.1c2.1-6.6-.2-13.8-5.8-17.9c0 0 0 0 0 0s0 0 0 0l-.2-.2c-.2-.2-.6-.4-1.1-.8c-1-.8-2.5-2-4.3-3.7c-3.6-3.3-8.5-8.1-13.3-14.3c-5.5-7-10.7-15.4-14.2-24.7c24.9-29 39.6-64.7 39.6-103.4c0-92.8-84.9-168.9-192.6-175.5c.4 5.1 .6 10.3 .6 15.5z"
|
|
14357
14357
|
}, null, 2)
|
|
14358
14358
|
])),
|
|
14359
|
-
S.value > 0 ? (v(), y("span", E6, re(S.value), 1)) :
|
|
14359
|
+
S.value > 0 ? (v(), y("span", E6, re(S.value), 1)) : Y("", !0),
|
|
14360
14360
|
P[2] || (P[2] = r("div", { class: "chat-tooltip" }, [
|
|
14361
14361
|
r("div", { class: "text-sm my-auto text-center" }, "Chat interno")
|
|
14362
14362
|
], -1))
|
|
@@ -14407,14 +14407,14 @@ const f6 = gn({
|
|
|
14407
14407
|
]),
|
|
14408
14408
|
_: 1
|
|
14409
14409
|
}, 8, ["attendant", "selectedAttendant", "sendFilesToAttendant"])
|
|
14410
|
-
])) :
|
|
14410
|
+
])) : Y("", !0),
|
|
14411
14411
|
!h.value && !Se(m) ? (v(), ze(ns, {
|
|
14412
14412
|
key: 2,
|
|
14413
14413
|
attendant: e.attendant,
|
|
14414
14414
|
atendentes: Se(a),
|
|
14415
14415
|
onAtendenteSelecionado: F
|
|
14416
|
-
}, null, 8, ["attendant", "atendentes"])) :
|
|
14417
|
-
])) :
|
|
14416
|
+
}, null, 8, ["attendant", "atendentes"])) : Y("", !0)
|
|
14417
|
+
])) : Y("", !0)
|
|
14418
14418
|
]),
|
|
14419
14419
|
_: 1
|
|
14420
14420
|
})
|
|
@@ -14540,14 +14540,14 @@ const f6 = gn({
|
|
|
14540
14540
|
]),
|
|
14541
14541
|
_: 1
|
|
14542
14542
|
}, 8, ["attendant", "selectedAttendant", "sendFilesToAttendant"])
|
|
14543
|
-
])) :
|
|
14543
|
+
])) : Y("", !0),
|
|
14544
14544
|
!h.value && !Se(m) ? (v(), ze(ns, {
|
|
14545
14545
|
key: 2,
|
|
14546
14546
|
mobile: !0,
|
|
14547
14547
|
attendant: e.attendant,
|
|
14548
14548
|
atendentes: Se(a),
|
|
14549
14549
|
onAtendenteSelecionado: R
|
|
14550
|
-
}, null, 8, ["attendant", "atendentes"])) :
|
|
14550
|
+
}, null, 8, ["attendant", "atendentes"])) : Y("", !0)
|
|
14551
14551
|
]));
|
|
14552
14552
|
}
|
|
14553
14553
|
}, Fs = /* @__PURE__ */ Oe(D6, [["__scopeId", "data-v-aacec6d2"]]), Ea = Fn("department", {
|
|
@@ -14662,7 +14662,7 @@ const f6 = gn({
|
|
|
14662
14662
|
}), (w, S) => (v(), y("div", B6, [
|
|
14663
14663
|
r("div", O6, [
|
|
14664
14664
|
r("div", {
|
|
14665
|
-
class:
|
|
14665
|
+
class: le(["input-wrapper bg-base-300 border-b border-base-200", { expanded: l.value || i.value.length > 0 }]),
|
|
14666
14666
|
onClick: S[1] || (S[1] = (L) => l.value = !l.value)
|
|
14667
14667
|
}, [
|
|
14668
14668
|
Ye(r("input", {
|
|
@@ -14715,20 +14715,20 @@ const f6 = gn({
|
|
|
14715
14715
|
], -1)
|
|
14716
14716
|
])], 8, _6)
|
|
14717
14717
|
]))), 128))
|
|
14718
|
-
])) :
|
|
14718
|
+
])) : Y("", !0),
|
|
14719
14719
|
r("div", {
|
|
14720
|
-
class:
|
|
14720
|
+
class: le([
|
|
14721
14721
|
i.value.length > 0 && e.multiSelect ? "dropdown-depart-expanded" : "dropdown-depart",
|
|
14722
14722
|
"dropdown-depart bg-base-300"
|
|
14723
14723
|
])
|
|
14724
14724
|
}, [
|
|
14725
14725
|
r("div", V6, [
|
|
14726
14726
|
r("div", {
|
|
14727
|
-
class:
|
|
14727
|
+
class: le([{ "two-columns": u.value.length > 4 }, "grid-container"])
|
|
14728
14728
|
}, [
|
|
14729
14729
|
Se(o).loaded ? (v(!0), y(Pe, { key: 0 }, Ie(u.value, (L) => (v(), y("div", {
|
|
14730
14730
|
key: L.id,
|
|
14731
|
-
class:
|
|
14731
|
+
class: le([{ selected: L.selected }, "department-item line-clamp-1 bg-slate-500/20 hover:bg-teal-600"])
|
|
14732
14732
|
}, [
|
|
14733
14733
|
r("span", {
|
|
14734
14734
|
onClick: ($) => h(L),
|
|
@@ -14745,14 +14745,14 @@ const f6 = gn({
|
|
|
14745
14745
|
])], 40, j6), [
|
|
14746
14746
|
[ni, L.permission]
|
|
14747
14747
|
])
|
|
14748
|
-
])) :
|
|
14749
|
-
], 2))), 128)) :
|
|
14748
|
+
])) : Y("", !0)
|
|
14749
|
+
], 2))), 128)) : Y("", !0)
|
|
14750
14750
|
], 2)
|
|
14751
14751
|
]),
|
|
14752
14752
|
Se(o).loaded && u.value.length === 0 ? (v(), y("div", N6, [
|
|
14753
14753
|
w.$slots.default ? mt(w.$slots, "default", { key: 1 }, void 0, !0) : (v(), y("p", G6, "Nenhum departamento disponível."))
|
|
14754
|
-
])) :
|
|
14755
|
-
Se(o).loaded ?
|
|
14754
|
+
])) : Y("", !0),
|
|
14755
|
+
Se(o).loaded ? Y("", !0) : (v(), y("div", I6, [...S[5] || (S[5] = [
|
|
14756
14756
|
Qe(" Inicializando departamentos ", -1),
|
|
14757
14757
|
r("div", { class: "library-loader" }, null, -1)
|
|
14758
14758
|
])]))
|
|
@@ -14869,7 +14869,7 @@ const f6 = gn({
|
|
|
14869
14869
|
return (b, w) => (v(), y("div", q6, [
|
|
14870
14870
|
r("div", U6, [
|
|
14871
14871
|
r("div", {
|
|
14872
|
-
class:
|
|
14872
|
+
class: le(["input-wrapper bg-base-300 border-b border-base-200", { expanded: i.value || l.value.length > 0 }]),
|
|
14873
14873
|
onClick: w[1] || (w[1] = (S) => i.value = !i.value)
|
|
14874
14874
|
}, [
|
|
14875
14875
|
Ye(r("input", {
|
|
@@ -14922,20 +14922,20 @@ const f6 = gn({
|
|
|
14922
14922
|
], -1)
|
|
14923
14923
|
])], 8, X6)
|
|
14924
14924
|
]))), 128))
|
|
14925
|
-
])) :
|
|
14925
|
+
])) : Y("", !0),
|
|
14926
14926
|
r("div", {
|
|
14927
|
-
class:
|
|
14927
|
+
class: le([
|
|
14928
14928
|
l.value.length > 0 && e.multiSelect ? "dropdown-attendance-expanded" : "dropdown-attendance",
|
|
14929
14929
|
"dropdown-attendance bg-base-300"
|
|
14930
14930
|
])
|
|
14931
14931
|
}, [
|
|
14932
14932
|
r("div", K6, [
|
|
14933
14933
|
r("div", {
|
|
14934
|
-
class:
|
|
14934
|
+
class: le([{ "two-columns": u.value.length > 4 }, "grid-container"])
|
|
14935
14935
|
}, [
|
|
14936
14936
|
Se(o).loaded ? (v(!0), y(Pe, { key: 0 }, Ie(u.value, (S) => (v(), y("div", {
|
|
14937
14937
|
key: S,
|
|
14938
|
-
class:
|
|
14938
|
+
class: le([{ selected: S.selected }, "department-item line-clamp-1 bg-slate-500/20 hover:bg-teal-600"])
|
|
14939
14939
|
}, [
|
|
14940
14940
|
r("div", Q6, [
|
|
14941
14941
|
S.photo ? (v(), y("img", {
|
|
@@ -14954,11 +14954,11 @@ const f6 = gn({
|
|
|
14954
14954
|
onClick: (L) => p(S),
|
|
14955
14955
|
class: "department-name h-full w-full"
|
|
14956
14956
|
}, re(S.name), 9, t7)
|
|
14957
|
-
], 2))), 128)) :
|
|
14957
|
+
], 2))), 128)) : Y("", !0)
|
|
14958
14958
|
], 2)
|
|
14959
14959
|
]),
|
|
14960
|
-
Se(o).loaded && u.value.length === 0 ? (v(), y("div", n7, " Nenhum atendente disponível. ")) :
|
|
14961
|
-
Se(o).loaded ?
|
|
14960
|
+
Se(o).loaded && u.value.length === 0 ? (v(), y("div", n7, " Nenhum atendente disponível. ")) : Y("", !0),
|
|
14961
|
+
Se(o).loaded ? Y("", !0) : (v(), y("div", a7, [...w[5] || (w[5] = [
|
|
14962
14962
|
Qe(" Inicializando atendentes ", -1),
|
|
14963
14963
|
r("div", { class: "library-loader" }, null, -1)
|
|
14964
14964
|
])]))
|
|
@@ -16621,7 +16621,7 @@ const ro = {
|
|
|
16621
16621
|
]),
|
|
16622
16622
|
r("div", Cv, [
|
|
16623
16623
|
r("div", {
|
|
16624
|
-
class:
|
|
16624
|
+
class: le(["modal_content ", e.defineWidth])
|
|
16625
16625
|
}, [
|
|
16626
16626
|
r("div", Sv, [
|
|
16627
16627
|
r("div", Mv, [
|
|
@@ -42221,7 +42221,7 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
42221
42221
|
], -1)),
|
|
42222
42222
|
l[4] || (l[4] = r("p", { class: "font-bold" }, "Agradecemos sua colaboração", -1))
|
|
42223
42223
|
])
|
|
42224
|
-
])) :
|
|
42224
|
+
])) : Y("", !0),
|
|
42225
42225
|
r("section", Nv, [
|
|
42226
42226
|
l[5] || (l[5] = r("h1", { class: "header_send_suggestion" }, "Envie sua sugestão para nós", -1)),
|
|
42227
42227
|
Ye(r("textarea", {
|
|
@@ -42232,7 +42232,7 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
42232
42232
|
}, null, 512), [
|
|
42233
42233
|
[kt, a.value]
|
|
42234
42234
|
]),
|
|
42235
|
-
o.value ? (v(), y("span", Gv, " Por favor, preencha o campo antes de continuar ")) :
|
|
42235
|
+
o.value ? (v(), y("span", Gv, " Por favor, preencha o campo antes de continuar ")) : Y("", !0),
|
|
42236
42236
|
r("button", {
|
|
42237
42237
|
onClick: l[1] || (l[1] = (u) => s()),
|
|
42238
42238
|
class: "submit-button-send-suggestion"
|
|
@@ -42294,7 +42294,7 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
42294
42294
|
return (c, m) => {
|
|
42295
42295
|
const d = Dt("Popper");
|
|
42296
42296
|
return v(), y("main", {
|
|
42297
|
-
class:
|
|
42297
|
+
class: le(["feature_style relative", i.value]),
|
|
42298
42298
|
ref_key: "targetFeatureCard",
|
|
42299
42299
|
ref: n,
|
|
42300
42300
|
onClick: m[0] || (m[0] = (g) => t.value = !t.value)
|
|
@@ -42303,7 +42303,7 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
42303
42303
|
r("h1", Qv, re(e.title), 1),
|
|
42304
42304
|
r("section", Jv, [
|
|
42305
42305
|
(v(), y("svg", {
|
|
42306
|
-
class:
|
|
42306
|
+
class: le(s.value),
|
|
42307
42307
|
viewBox: "0 0 24 24",
|
|
42308
42308
|
fill: "none"
|
|
42309
42309
|
}, [...m[1] || (m[1] = [
|
|
@@ -42319,7 +42319,7 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
42319
42319
|
])], 2)),
|
|
42320
42320
|
e.sparkles ? (v(), y("div", ey, [...m[2] || (m[2] = [
|
|
42321
42321
|
xe('<svg class="size-4" viewBox="0 0 128 128" data-v-7969ce9a><path d="M121.59 60.83l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.16-.59-.55-1.38-1.75-1.38c-1.01 0-1.59.79-1.75 1.38l-6.13 29.87c-2.46 9.06-7.67 16.27-16.58 19.21l-13.93 4.49c-1.97.64-2 3.42-.04 4.09l14.03 4.83c8.88 2.95 14.06 10.15 16.52 19.17l6.14 29.53c.16.59.49 1.65 1.75 1.65c1.33 0 1.59-1.06 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c1.94-.68 1.91-3.46-.06-4.1z" fill="#fdd835" data-v-7969ce9a></path><path d="M122.91 62.08c-.22-.55-.65-1.03-1.32-1.25l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.09-.34-.41-.96-.78-1.14l1.98 29.97c1.47 13.68 2.73 20.12 13.65 22c9.38 1.62 20.23 3.48 23.11 3.98z" fill="#ffee58" data-v-7969ce9a></path><path d="M122.94 63.64l-24.16 5.54c-8.51 2.16-13.2 7.09-13.2 19.99l-2.37 30.94c.81-.08 1.47-.52 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c.66-.24 1.08-.73 1.29-1.29z" fill="#f4b400" data-v-7969ce9a></path><g data-v-7969ce9a><path d="M41.81 86.81c-8.33-2.75-9.09-5.85-10.49-11.08l-3.49-12.24c-.21-.79-2.27-.79-2.49 0L22.97 74.8c-1.41 5.21-4.41 9.35-9.53 11.04l-8.16 3.54c-1.13.37-1.15 1.97-.02 2.35l8.22 2.91c5.1 1.69 8.08 5.83 9.5 11.02l2.37 10.82c.22.79 2.27.79 2.48 0l2.78-10.77c1.41-5.22 3.57-9.37 10.5-11.07l7.72-2.91c1.13-.39 1.12-1.99-.02-2.36l-7-2.56z" fill="#fdd835" data-v-7969ce9a></path><path d="M28.49 75.55c.85 7.86 1.28 10.04 7.65 11.67l13.27 2.59c-.14-.19-.34-.35-.61-.43l-7-2.57c-7.31-2.5-9.33-5.68-10.7-12.04c-1.37-6.36-2.83-10.51-2.83-10.51c-.51-1.37-1.24-1.3-1.24-1.3l1.46 12.59z" fill="#ffee58" data-v-7969ce9a></path><path d="M28.73 102.99c0-7.41 4.05-11.08 10.49-11.08l10.02-.41s-.58.77-1.59 1.01l-6.54 2.13c-5.55 2.23-8.08 3.35-9.8 10.94c0 0-2.22 8.83-2.64 9.76c-.58 1.3-1.27 1.57-1.27 1.57l1.33-13.92z" fill="#f4b400" data-v-7969ce9a></path></g><path d="M59.74 28.14c.56-.19.54-.99-.03-1.15l-7.72-2.08a4.77 4.77 0 0 1-3.34-3.3L45.61 9.06c-.15-.61-1.02-.61-1.17.01l-2.86 12.5a4.734 4.734 0 0 1-3.4 3.37l-7.67 1.99c-.57.15-.61.95-.05 1.15l8.09 2.8c1.45.5 2.57 1.68 3.01 3.15l2.89 11.59c.15.6 1.01.61 1.16 0l2.99-11.63a4.773 4.773 0 0 1 3.04-3.13l8.1-2.72z" fill="#f4b400" stroke="#f4b400" stroke-miterlimit="10" data-v-7969ce9a></path></svg>', 1)
|
|
42322
|
-
])])) :
|
|
42322
|
+
])])) : Y("", !0)
|
|
42323
42323
|
])
|
|
42324
42324
|
]),
|
|
42325
42325
|
Me(Ht, { name: "fade-slide" }, {
|
|
@@ -42343,16 +42343,16 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
42343
42343
|
Me(uo, {
|
|
42344
42344
|
svgContent: Se(Zv)("size-4 text-blue-900")
|
|
42345
42345
|
}, null, 8, ["svgContent"])
|
|
42346
|
-
], 8, sy)) :
|
|
42346
|
+
], 8, sy)) : Y("", !0)
|
|
42347
42347
|
])
|
|
42348
|
-
])) :
|
|
42348
|
+
])) : Y("", !0)
|
|
42349
42349
|
]),
|
|
42350
42350
|
_: 1
|
|
42351
42351
|
}),
|
|
42352
42352
|
r("footer", iy, [
|
|
42353
42353
|
r("section", ry, [
|
|
42354
42354
|
r("span", {
|
|
42355
|
-
class:
|
|
42355
|
+
class: le(l.value)
|
|
42356
42356
|
}, re(f.value), 3),
|
|
42357
42357
|
Me(d, {
|
|
42358
42358
|
class: "pill_date_popper",
|
|
@@ -42363,7 +42363,7 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
42363
42363
|
}, {
|
|
42364
42364
|
default: Fe(() => [
|
|
42365
42365
|
r("div", {
|
|
42366
|
-
class:
|
|
42366
|
+
class: le(u.value)
|
|
42367
42367
|
}, [
|
|
42368
42368
|
Me(uo, {
|
|
42369
42369
|
svgContent: Se(Yv)("size-4 text-white")
|
|
@@ -42459,7 +42459,7 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
42459
42459
|
ref: s,
|
|
42460
42460
|
class: "features-list scrollable-section scroll_area_patch_notes_latest_update"
|
|
42461
42461
|
}, [
|
|
42462
|
-
e.latest_update ? e.latest_update <= 0 ? (v(), y("span", vy, " Nenhuma atualização programada ")) :
|
|
42462
|
+
e.latest_update ? e.latest_update <= 0 ? (v(), y("span", vy, " Nenhuma atualização programada ")) : Y("", !0) : (v(), y("section", py, [
|
|
42463
42463
|
(v(), y(Pe, null, Ie(15, (h) => r("div", gy)), 64))
|
|
42464
42464
|
])),
|
|
42465
42465
|
(v(!0), y(Pe, null, Ie(e.latest_update, (h, p) => (v(), ze(fo, {
|
|
@@ -42589,12 +42589,12 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
42589
42589
|
n("openNewUpdates");
|
|
42590
42590
|
};
|
|
42591
42591
|
return (l, f) => (v(), y("main", {
|
|
42592
|
-
class:
|
|
42592
|
+
class: le(["relative", s.value.container]),
|
|
42593
42593
|
onClick: i
|
|
42594
42594
|
}, [
|
|
42595
42595
|
s.value.usePopper ? (v(), y(Pe, { key: 0 }, [
|
|
42596
42596
|
r("button", {
|
|
42597
|
-
class:
|
|
42597
|
+
class: le(s.value.button)
|
|
42598
42598
|
}, [...f[0] || (f[0] = [
|
|
42599
42599
|
r("svg", {
|
|
42600
42600
|
class: "new_update-icon",
|
|
@@ -42611,18 +42611,18 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
42611
42611
|
])], 2),
|
|
42612
42612
|
e.sparkles ? (v(), y("div", Cy, [
|
|
42613
42613
|
(v(), y("svg", {
|
|
42614
|
-
class:
|
|
42614
|
+
class: le(s.value.iconSize),
|
|
42615
42615
|
viewBox: "0 0 128 128"
|
|
42616
42616
|
}, [...f[1] || (f[1] = [
|
|
42617
42617
|
xe('<path d="M121.59 60.83l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.16-.59-.55-1.38-1.75-1.38c-1.01 0-1.59.79-1.75 1.38l-6.13 29.87c-2.46 9.06-7.67 16.27-16.58 19.21l-13.93 4.49c-1.97.64-2 3.42-.04 4.09l14.03 4.83c8.88 2.95 14.06 10.15 16.52 19.17l6.14 29.53c.16.59.49 1.65 1.75 1.65c1.33 0 1.59-1.06 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c1.94-.68 1.91-3.46-.06-4.1z" fill="#fdd835" data-v-b6196bab></path><path d="M122.91 62.08c-.22-.55-.65-1.03-1.32-1.25l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.09-.34-.41-.96-.78-1.14l1.98 29.97c1.47 13.68 2.73 20.12 13.65 22c9.38 1.62 20.23 3.48 23.11 3.98z" fill="#ffee58" data-v-b6196bab></path><path d="M122.94 63.64l-24.16 5.54c-8.51 2.16-13.2 7.09-13.2 19.99l-2.37 30.94c.81-.08 1.47-.52 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c.66-.24 1.08-.73 1.29-1.29z" fill="#f4b400" data-v-b6196bab></path><g data-v-b6196bab><path d="M41.81 86.81c-8.33-2.75-9.09-5.85-10.49-11.08l-3.49-12.24c-.21-.79-2.27-.79-2.49 0L22.97 74.8c-1.41 5.21-4.41 9.35-9.53 11.04l-8.16 3.54c-1.13.37-1.15 1.97-.02 2.35l8.22 2.91c5.1 1.69 8.08 5.83 9.5 11.02l2.37 10.82c.22.79 2.27.79 2.48 0l2.78-10.77c1.41-5.22 3.57-9.37 10.5-11.07l7.72-2.91c1.13-.39 1.12-1.99-.02-2.36l-7-2.56z" fill="#fdd835" data-v-b6196bab></path><path d="M28.49 75.55c.85 7.86 1.28 10.04 7.65 11.67l13.27 2.59c-.14-.19-.34-.35-.61-.43l-7-2.57c-7.31-2.5-9.33-5.68-10.7-12.04c-1.37-6.36-2.83-10.51-2.83-10.51c-.51-1.37-1.24-1.3-1.24-1.3l1.46 12.59z" fill="#ffee58" data-v-b6196bab></path><path d="M28.73 102.99c0-7.41 4.05-11.08 10.49-11.08l10.02-.41s-.58.77-1.59 1.01l-6.54 2.13c-5.55 2.23-8.08 3.35-9.8 10.94c0 0-2.22 8.83-2.64 9.76c-.58 1.3-1.27 1.57-1.27 1.57l1.33-13.92z" fill="#f4b400" data-v-b6196bab></path></g><path d="M59.74 28.14c.56-.19.54-.99-.03-1.15l-7.72-2.08a4.77 4.77 0 0 1-3.34-3.3L45.61 9.06c-.15-.61-1.02-.61-1.17.01l-2.86 12.5a4.734 4.734 0 0 1-3.4 3.37l-7.67 1.99c-.57.15-.61.95-.05 1.15l8.09 2.8c1.45.5 2.57 1.68 3.01 3.15l2.89 11.59c.15.6 1.01.61 1.16 0l2.99-11.63a4.773 4.773 0 0 1 3.04-3.13l8.1-2.72z" fill="#f4b400" stroke="#f4b400" stroke-miterlimit="10" data-v-b6196bab></path>', 5)
|
|
42618
42618
|
])], 2))
|
|
42619
|
-
])) :
|
|
42619
|
+
])) : Y("", !0)
|
|
42620
42620
|
], 64)) : (v(), y(Pe, { key: 1 }, [
|
|
42621
42621
|
r("button", {
|
|
42622
|
-
class:
|
|
42622
|
+
class: le(["relative", s.value.button])
|
|
42623
42623
|
}, [
|
|
42624
42624
|
(v(), y("svg", {
|
|
42625
|
-
class:
|
|
42625
|
+
class: le(
|
|
42626
42626
|
a.mode === "dark" ? "dark_new_update-icon" : "new_update-icon"
|
|
42627
42627
|
),
|
|
42628
42628
|
fill: "currentColor",
|
|
@@ -42635,18 +42635,18 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
42635
42635
|
])
|
|
42636
42636
|
], -1)
|
|
42637
42637
|
])], 2)),
|
|
42638
|
-
s.value.text ? (v(), y("span", Sy, re(s.value.text), 1)) :
|
|
42638
|
+
s.value.text ? (v(), y("span", Sy, re(s.value.text), 1)) : Y("", !0),
|
|
42639
42639
|
e.sparkles ? (v(), y("div", My, [
|
|
42640
42640
|
(v(), y("svg", {
|
|
42641
|
-
class:
|
|
42641
|
+
class: le(s.value.iconSize),
|
|
42642
42642
|
viewBox: "0 0 128 128"
|
|
42643
42643
|
}, [...f[3] || (f[3] = [
|
|
42644
42644
|
xe('<path d="M121.59 60.83l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.16-.59-.55-1.38-1.75-1.38c-1.01 0-1.59.79-1.75 1.38l-6.13 29.87c-2.46 9.06-7.67 16.27-16.58 19.21l-13.93 4.49c-1.97.64-2 3.42-.04 4.09l14.03 4.83c8.88 2.95 14.06 10.15 16.52 19.17l6.14 29.53c.16.59.49 1.65 1.75 1.65c1.33 0 1.59-1.06 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c1.94-.68 1.91-3.46-.06-4.1z" fill="#fdd835" data-v-b6196bab></path><path d="M122.91 62.08c-.22-.55-.65-1.03-1.32-1.25l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.09-.34-.41-.96-.78-1.14l1.98 29.97c1.47 13.68 2.73 20.12 13.65 22c9.38 1.62 20.23 3.48 23.11 3.98z" fill="#ffee58" data-v-b6196bab></path><path d="M122.94 63.64l-24.16 5.54c-8.51 2.16-13.2 7.09-13.2 19.99l-2.37 30.94c.81-.08 1.47-.52 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c.66-.24 1.08-.73 1.29-1.29z" fill="#f4b400" data-v-b6196bab></path><g data-v-b6196bab><path d="M41.81 86.81c-8.33-2.75-9.09-5.85-10.49-11.08l-3.49-12.24c-.21-.79-2.27-.79-2.49 0L22.97 74.8c-1.41 5.21-4.41 9.35-9.53 11.04l-8.16 3.54c-1.13.37-1.15 1.97-.02 2.35l8.22 2.91c5.1 1.69 8.08 5.83 9.5 11.02l2.37 10.82c.22.79 2.27.79 2.48 0l2.78-10.77c1.41-5.22 3.57-9.37 10.5-11.07l7.72-2.91c1.13-.39 1.12-1.99-.02-2.36l-7-2.56z" fill="#fdd835" data-v-b6196bab></path><path d="M28.49 75.55c.85 7.86 1.28 10.04 7.65 11.67l13.27 2.59c-.14-.19-.34-.35-.61-.43l-7-2.57c-7.31-2.5-9.33-5.68-10.7-12.04c-1.37-6.36-2.83-10.51-2.83-10.51c-.51-1.37-1.24-1.3-1.24-1.3l1.46 12.59z" fill="#ffee58" data-v-b6196bab></path><path d="M28.73 102.99c0-7.41 4.05-11.08 10.49-11.08l10.02-.41s-.58.77-1.59 1.01l-6.54 2.13c-5.55 2.23-8.08 3.35-9.8 10.94c0 0-2.22 8.83-2.64 9.76c-.58 1.3-1.27 1.57-1.27 1.57l1.33-13.92z" fill="#f4b400" data-v-b6196bab></path></g><path d="M59.74 28.14c.56-.19.54-.99-.03-1.15l-7.72-2.08a4.77 4.77 0 0 1-3.34-3.3L45.61 9.06c-.15-.61-1.02-.61-1.17.01l-2.86 12.5a4.734 4.734 0 0 1-3.4 3.37l-7.67 1.99c-.57.15-.61.95-.05 1.15l8.09 2.8c1.45.5 2.57 1.68 3.01 3.15l2.89 11.59c.15.6 1.01.61 1.16 0l2.99-11.63a4.773 4.773 0 0 1 3.04-3.13l8.1-2.72z" fill="#f4b400" stroke="#f4b400" stroke-miterlimit="10" data-v-b6196bab></path>', 5)
|
|
42645
42645
|
])], 2))
|
|
42646
|
-
])) :
|
|
42646
|
+
])) : Y("", !0)
|
|
42647
42647
|
], 2),
|
|
42648
42648
|
Ye(r("p", {
|
|
42649
|
-
class:
|
|
42649
|
+
class: le(s.value.tooltip)
|
|
42650
42650
|
}, " Notas de atualização ", 2), [
|
|
42651
42651
|
[Zt, s.value.tooltip]
|
|
42652
42652
|
])
|
|
@@ -42693,20 +42693,20 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
42693
42693
|
n("update:modelValue", null);
|
|
42694
42694
|
};
|
|
42695
42695
|
return (s, i) => (v(), y("button", {
|
|
42696
|
-
class:
|
|
42696
|
+
class: le(e.baseClass)
|
|
42697
42697
|
}, [
|
|
42698
42698
|
e.modelValue ? (v(), y("img", {
|
|
42699
42699
|
key: 1,
|
|
42700
42700
|
src: typeof e.modelValue == "string" && e.modelValue.startsWith("data:image/") ? e.modelValue : `${e.modelValue}?t=${Date.now()}`,
|
|
42701
42701
|
onClick: a,
|
|
42702
|
-
class:
|
|
42702
|
+
class: le(`${e.sizeClass} rounded-xl z-10 object-center bg-base-300 object-scale-down hover:bg-base-300/70`)
|
|
42703
42703
|
}, null, 10, Ty)) : (v(), y("section", {
|
|
42704
42704
|
key: 0,
|
|
42705
|
-
class:
|
|
42705
|
+
class: le(`flex items-center justify-center ${e.sizeClass}`),
|
|
42706
42706
|
onClick: a
|
|
42707
42707
|
}, [
|
|
42708
42708
|
r("span", {
|
|
42709
|
-
class:
|
|
42709
|
+
class: le("p-3 rounded-xl text-gray-400 hover:scale-105 hover:text-primary hover:border-primary"),
|
|
42710
42710
|
innerHTML: e.emptyPlaceholder
|
|
42711
42711
|
}, null, 8, Ay)
|
|
42712
42712
|
], 2)),
|
|
@@ -42729,7 +42729,7 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
42729
42729
|
d: "M6 18L18 6M6 6l12 12"
|
|
42730
42730
|
})
|
|
42731
42731
|
], -1)
|
|
42732
|
-
])])) :
|
|
42732
|
+
])])) : Y("", !0)
|
|
42733
42733
|
], 2));
|
|
42734
42734
|
}
|
|
42735
42735
|
}, Ly = {
|
|
@@ -42799,7 +42799,7 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
42799
42799
|
r("a", $y, re(e.modelValue.length), 1)
|
|
42800
42800
|
])) : (v(), y("span", Ly, re(e.placeholder), 1)),
|
|
42801
42801
|
(v(), y("svg", {
|
|
42802
|
-
class:
|
|
42802
|
+
class: le([
|
|
42803
42803
|
"size-3.5 text-white transition duration-300",
|
|
42804
42804
|
o.value ? "rotate-180" : ""
|
|
42805
42805
|
]),
|
|
@@ -42832,7 +42832,7 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
42832
42832
|
]),
|
|
42833
42833
|
(v(!0), y(Pe, null, Ie(l.value, (m) => (v(), y("button", {
|
|
42834
42834
|
key: m.id,
|
|
42835
|
-
class:
|
|
42835
|
+
class: le([
|
|
42836
42836
|
e.modelValue.some((d) => d.id === m.id) ? "bg-green-500/30 hover:bg-green-500/50" : "hover:bg-base-200",
|
|
42837
42837
|
"flex items-center justify-between gap-2 px-3 py-2 cursor-pointer transition w-full"
|
|
42838
42838
|
]),
|
|
@@ -42847,12 +42847,12 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
42847
42847
|
"stroke-width": "2",
|
|
42848
42848
|
d: "M5 11.917 9.724 16.5 19 7.5"
|
|
42849
42849
|
}, null, -1)
|
|
42850
|
-
])])) :
|
|
42850
|
+
])])) : Y("", !0)
|
|
42851
42851
|
], 10, Oy))), 128)),
|
|
42852
|
-
l.value.length ?
|
|
42852
|
+
l.value.length ? Y("", !0) : (v(), y("div", _y, [...c[5] || (c[5] = [
|
|
42853
42853
|
r("span", { class: "text-xs" }, "Nenhum resultado encontrado", -1)
|
|
42854
42854
|
])]))
|
|
42855
|
-
])) :
|
|
42855
|
+
])) : Y("", !0)
|
|
42856
42856
|
], 512));
|
|
42857
42857
|
}
|
|
42858
42858
|
}, Rs = /* @__PURE__ */ Oe(Vy, [["__scopeId", "data-v-f9cc6382"]]);
|
|
@@ -43045,7 +43045,7 @@ const Ry = {
|
|
|
43045
43045
|
])) : (v(), y("span", Ny, " Selecione a etiqueta "))
|
|
43046
43046
|
], 64)),
|
|
43047
43047
|
(v(), y("svg", {
|
|
43048
|
-
class:
|
|
43048
|
+
class: le([
|
|
43049
43049
|
"size-3.5 text-white transition duration-300",
|
|
43050
43050
|
o.value ? "rotate-180" : ""
|
|
43051
43051
|
]),
|
|
@@ -43082,7 +43082,7 @@ const Ry = {
|
|
|
43082
43082
|
]),
|
|
43083
43083
|
(v(!0), y(Pe, null, Ie(S.value, (P) => (v(), y("button", {
|
|
43084
43084
|
key: P.id,
|
|
43085
|
-
class:
|
|
43085
|
+
class: le([
|
|
43086
43086
|
e.modelValue.some((E) => E.id === P.id) ? "bg-green-500/30 hover:bg-green-500/50" : "hover:bg-base-200",
|
|
43087
43087
|
"flex items-center justify-between gap-2 px-3 py-2 cursor-pointer transition w-full"
|
|
43088
43088
|
]),
|
|
@@ -43102,7 +43102,7 @@ const Ry = {
|
|
|
43102
43102
|
])], 4)),
|
|
43103
43103
|
r("span", {
|
|
43104
43104
|
style: Ze({ backgroundColor: P.color || "#ffff" }),
|
|
43105
|
-
class:
|
|
43105
|
+
class: le(["text-xs truncate max-w-32 p-1 rounded-r-md", Se(In)(P.color || "#ffff")])
|
|
43106
43106
|
}, re(P.name), 7)
|
|
43107
43107
|
]),
|
|
43108
43108
|
e.modelValue.some((E) => E.id === P.id) ? (v(), y("svg", Zy, [...F[6] || (F[6] = [
|
|
@@ -43113,9 +43113,9 @@ const Ry = {
|
|
|
43113
43113
|
"stroke-width": "2",
|
|
43114
43114
|
d: "M5 11.917 9.724 16.5 19 7.5"
|
|
43115
43115
|
}, null, -1)
|
|
43116
|
-
])])) :
|
|
43116
|
+
])])) : Y("", !0)
|
|
43117
43117
|
], 10, qy))), 128)),
|
|
43118
|
-
S.value.length ?
|
|
43118
|
+
S.value.length ? Y("", !0) : (v(), y("div", Yy, [...F[7] || (F[7] = [
|
|
43119
43119
|
r("span", { class: "text-xs" }, "Nenhum resultado encontrado", -1)
|
|
43120
43120
|
])])),
|
|
43121
43121
|
d.value ? (v(), ze(Se(An), {
|
|
@@ -43129,8 +43129,8 @@ const Ry = {
|
|
|
43129
43129
|
], -1)
|
|
43130
43130
|
])]),
|
|
43131
43131
|
_: 1
|
|
43132
|
-
})) :
|
|
43133
|
-
], 4)) :
|
|
43132
|
+
})) : Y("", !0)
|
|
43133
|
+
], 4)) : Y("", !0),
|
|
43134
43134
|
o.value && e.teleportTo ? (v(), ze(yo, {
|
|
43135
43135
|
key: 1,
|
|
43136
43136
|
to: e.teleportTo
|
|
@@ -43153,7 +43153,7 @@ const Ry = {
|
|
|
43153
43153
|
]),
|
|
43154
43154
|
(v(!0), y(Pe, null, Ie(S.value, (P) => (v(), y("button", {
|
|
43155
43155
|
key: P.id,
|
|
43156
|
-
class:
|
|
43156
|
+
class: le([
|
|
43157
43157
|
e.modelValue.some((E) => E.id === P.id) ? "bg-green-500/30 hover:bg-green-500/50" : "hover:bg-base-200",
|
|
43158
43158
|
"flex items-center justify-between gap-2 px-3 py-2 cursor-pointer transition w-full"
|
|
43159
43159
|
]),
|
|
@@ -43173,7 +43173,7 @@ const Ry = {
|
|
|
43173
43173
|
])], 4)),
|
|
43174
43174
|
r("span", {
|
|
43175
43175
|
style: Ze({ backgroundColor: P.color || "#ffff" }),
|
|
43176
|
-
class:
|
|
43176
|
+
class: le(["text-xs truncate max-w-32 p-1 rounded-r-md", Se(In)(P.color || "#ffff")])
|
|
43177
43177
|
}, re(P.name), 7)
|
|
43178
43178
|
]),
|
|
43179
43179
|
e.modelValue.some((E) => E.id === P.id) ? (v(), y("svg", Jy, [...F[10] || (F[10] = [
|
|
@@ -43184,9 +43184,9 @@ const Ry = {
|
|
|
43184
43184
|
"stroke-width": "2",
|
|
43185
43185
|
d: "M5 11.917 9.724 16.5 19 7.5"
|
|
43186
43186
|
}, null, -1)
|
|
43187
|
-
])])) :
|
|
43187
|
+
])])) : Y("", !0)
|
|
43188
43188
|
], 10, Ky))), 128)),
|
|
43189
|
-
S.value.length ?
|
|
43189
|
+
S.value.length ? Y("", !0) : (v(), y("div", ex, [...F[11] || (F[11] = [
|
|
43190
43190
|
r("span", { class: "text-xs" }, "Nenhum resultado encontrado", -1)
|
|
43191
43191
|
])])),
|
|
43192
43192
|
d.value ? (v(), ze(Se(An), {
|
|
@@ -43200,9 +43200,9 @@ const Ry = {
|
|
|
43200
43200
|
], -1)
|
|
43201
43201
|
])]),
|
|
43202
43202
|
_: 1
|
|
43203
|
-
})) :
|
|
43203
|
+
})) : Y("", !0)
|
|
43204
43204
|
], 4)
|
|
43205
|
-
], 8, ["to"])) :
|
|
43205
|
+
], 8, ["to"])) : Y("", !0)
|
|
43206
43206
|
], 512);
|
|
43207
43207
|
};
|
|
43208
43208
|
}
|
|
@@ -43258,7 +43258,8 @@ const Ry = {
|
|
|
43258
43258
|
return v(), y("section", nx, [
|
|
43259
43259
|
r("header", ax, [
|
|
43260
43260
|
r("p", ox, re(o.title), 1),
|
|
43261
|
-
|
|
43261
|
+
o.info ? (v(), ze(u, {
|
|
43262
|
+
key: 0,
|
|
43262
43263
|
hover: "",
|
|
43263
43264
|
content: o.info,
|
|
43264
43265
|
placement: "top",
|
|
@@ -43279,10 +43280,10 @@ const Ry = {
|
|
|
43279
43280
|
], -1)
|
|
43280
43281
|
])]),
|
|
43281
43282
|
_: 1
|
|
43282
|
-
}, 8, ["content"])
|
|
43283
|
+
}, 8, ["content"])) : Y("", !0)
|
|
43283
43284
|
]),
|
|
43284
43285
|
r("div", {
|
|
43285
|
-
class:
|
|
43286
|
+
class: le([
|
|
43286
43287
|
"input__container",
|
|
43287
43288
|
i.value ? "input__container--error" : "",
|
|
43288
43289
|
o.type === "textArea" ? "textArea" : ""
|
|
@@ -43290,31 +43291,31 @@ const Ry = {
|
|
|
43290
43291
|
}, [
|
|
43291
43292
|
o.type !== "textArea" ? (v(), y("span", {
|
|
43292
43293
|
key: 0,
|
|
43293
|
-
class:
|
|
43294
|
+
class: le(i.value ? "text-red-500" : "text-base-100"),
|
|
43294
43295
|
innerHTML: o.svg
|
|
43295
|
-
}, null, 10, sx)) :
|
|
43296
|
+
}, null, 10, sx)) : Y("", !0),
|
|
43296
43297
|
o.type !== "textArea" ? Ye((v(), y("input", {
|
|
43297
43298
|
type: o.type,
|
|
43298
43299
|
key: o.type,
|
|
43299
43300
|
placeholder: o.placeholder,
|
|
43300
43301
|
"onUpdate:modelValue": f[0] || (f[0] = (c) => s.value = c),
|
|
43301
|
-
class:
|
|
43302
|
+
class: le([i.value ? "empty" : null, "input__field"])
|
|
43302
43303
|
}, null, 10, ix)), [
|
|
43303
43304
|
[si, s.value]
|
|
43304
43305
|
]) : Ye((v(), y("textarea", {
|
|
43305
43306
|
key: 2,
|
|
43306
|
-
class:
|
|
43307
|
+
class: le([i.value ? "empty" : null, "input__field h-full resize-y"]),
|
|
43307
43308
|
"onUpdate:modelValue": f[1] || (f[1] = (c) => s.value = c),
|
|
43308
43309
|
placeholder: o.placeholder
|
|
43309
43310
|
}, null, 10, rx)), [
|
|
43310
43311
|
[kt, s.value]
|
|
43311
43312
|
]),
|
|
43312
|
-
i.value ? (v(), y("span", lx, " Campo obrigatório ")) :
|
|
43313
|
+
i.value ? (v(), y("span", lx, " Campo obrigatório ")) : Y("", !0)
|
|
43313
43314
|
], 2)
|
|
43314
43315
|
]);
|
|
43315
43316
|
};
|
|
43316
43317
|
}
|
|
43317
|
-
}, Ta = /* @__PURE__ */ Oe(cx, [["__scopeId", "data-v-
|
|
43318
|
+
}, Ta = /* @__PURE__ */ Oe(cx, [["__scopeId", "data-v-3673f915"]]), dx = ["onClick"], ux = {
|
|
43318
43319
|
key: 0,
|
|
43319
43320
|
xmlns: "http://www.w3.org/2000/svg",
|
|
43320
43321
|
class: "size-4 text-green-400",
|
|
@@ -43418,7 +43419,7 @@ const Ry = {
|
|
|
43418
43419
|
}, [
|
|
43419
43420
|
r("div", {
|
|
43420
43421
|
onClick: h[0] || (h[0] = (p) => o.value = !o.value),
|
|
43421
|
-
class:
|
|
43422
|
+
class: le([
|
|
43422
43423
|
"flex flex-wrap items-center justify-between p-3 gap-2 rounded-md cursor-pointer transition",
|
|
43423
43424
|
e.theme
|
|
43424
43425
|
]),
|
|
@@ -43426,13 +43427,13 @@ const Ry = {
|
|
|
43426
43427
|
ref: i
|
|
43427
43428
|
}, [
|
|
43428
43429
|
r("span", {
|
|
43429
|
-
class:
|
|
43430
|
+
class: le([
|
|
43430
43431
|
"text-xs truncate max-w-full",
|
|
43431
43432
|
d.value === e.placeholder ? "text-gray-400" : "text-white"
|
|
43432
43433
|
])
|
|
43433
43434
|
}, re(d.value), 3),
|
|
43434
43435
|
(v(), y("svg", {
|
|
43435
|
-
class:
|
|
43436
|
+
class: le([
|
|
43436
43437
|
"size-3 text-white transition-transform duration-300",
|
|
43437
43438
|
o.value ? "rotate-180" : ""
|
|
43438
43439
|
]),
|
|
@@ -43451,14 +43452,14 @@ const Ry = {
|
|
|
43451
43452
|
], 2),
|
|
43452
43453
|
o.value && !e.teleportTo ? (v(), y("div", {
|
|
43453
43454
|
key: 0,
|
|
43454
|
-
class:
|
|
43455
|
+
class: le([
|
|
43455
43456
|
"absolute flex flex-col z-10 mt-1.5 w-full shadow-sm border rounded-md max-h-64 overflow-y-auto hide-scrollbar",
|
|
43456
43457
|
e.theme
|
|
43457
43458
|
])
|
|
43458
43459
|
}, [
|
|
43459
43460
|
(v(!0), y(Pe, null, Ie(e.options, (p) => (v(), y("button", {
|
|
43460
43461
|
key: p.value,
|
|
43461
|
-
class:
|
|
43462
|
+
class: le([
|
|
43462
43463
|
c(p.value) ? "bg-green-500/30 hover:bg-green-500/50" : "hover:bg-base-200",
|
|
43463
43464
|
"flex items-center justify-between gap-2 px-3 py-2 text-left text-sm cursor-pointer transition w-full"
|
|
43464
43465
|
]),
|
|
@@ -43472,23 +43473,23 @@ const Ry = {
|
|
|
43472
43473
|
"stroke-width": "2",
|
|
43473
43474
|
d: "M5 13l4 4L19 7"
|
|
43474
43475
|
}, null, -1)
|
|
43475
|
-
])])) :
|
|
43476
|
+
])])) : Y("", !0)
|
|
43476
43477
|
], 10, dx))), 128))
|
|
43477
|
-
], 2)) :
|
|
43478
|
+
], 2)) : Y("", !0),
|
|
43478
43479
|
o.value && e.teleportTo ? (v(), ze(yo, {
|
|
43479
43480
|
key: 1,
|
|
43480
43481
|
to: e.teleportTo
|
|
43481
43482
|
}, [
|
|
43482
43483
|
r("div", {
|
|
43483
43484
|
style: Ze(l.value),
|
|
43484
|
-
class:
|
|
43485
|
+
class: le([
|
|
43485
43486
|
"flex flex-col shadow-sm border rounded-md max-h-64 overflow-y-auto hide-scrollbar",
|
|
43486
43487
|
e.theme
|
|
43487
43488
|
])
|
|
43488
43489
|
}, [
|
|
43489
43490
|
(v(!0), y(Pe, null, Ie(e.options, (p) => (v(), y("button", {
|
|
43490
43491
|
key: p.value,
|
|
43491
|
-
class:
|
|
43492
|
+
class: le([
|
|
43492
43493
|
c(p.value) ? "bg-green-500/30 hover:bg-green-500/50" : "hover:bg-base-200",
|
|
43493
43494
|
"flex items-center justify-between gap-2 px-3 py-2 text-left text-sm cursor-pointer transition w-full"
|
|
43494
43495
|
]),
|
|
@@ -43502,10 +43503,10 @@ const Ry = {
|
|
|
43502
43503
|
"stroke-width": "2",
|
|
43503
43504
|
d: "M5 13l4 4L19 7"
|
|
43504
43505
|
}, null, -1)
|
|
43505
|
-
])])) :
|
|
43506
|
+
])])) : Y("", !0)
|
|
43506
43507
|
], 10, fx))), 128))
|
|
43507
43508
|
], 6)
|
|
43508
|
-
], 8, ["to"])) :
|
|
43509
|
+
], 8, ["to"])) : Y("", !0)
|
|
43509
43510
|
], 512));
|
|
43510
43511
|
}
|
|
43511
43512
|
}, zs = /* @__PURE__ */ Oe(mx, [["__scopeId", "data-v-3ee440f9"]]), px = { class: "flex gap-2" }, gx = {
|
|
@@ -43528,11 +43529,11 @@ const Ry = {
|
|
|
43528
43529
|
return (l, f) => (v(), y("div", px, [
|
|
43529
43530
|
r("button", {
|
|
43530
43531
|
onClick: f[0] || (f[0] = (u) => o("won")),
|
|
43531
|
-
class:
|
|
43532
|
+
class: le(["button_outcome-base", { "button_outcome-active-won": s.value }])
|
|
43532
43533
|
}, [
|
|
43533
43534
|
f[3] || (f[3] = r("p", null, "Ganho", -1)),
|
|
43534
43535
|
(v(), y("svg", {
|
|
43535
|
-
class:
|
|
43536
|
+
class: le([{ "svg_outcome-active-won": s.value }, "text-white size-4"]),
|
|
43536
43537
|
xmlns: "http://www.w3.org/2000/svg",
|
|
43537
43538
|
viewBox: "0 0 20 20",
|
|
43538
43539
|
fill: "none"
|
|
@@ -43549,10 +43550,10 @@ const Ry = {
|
|
|
43549
43550
|
], 2),
|
|
43550
43551
|
r("button", {
|
|
43551
43552
|
onClick: f[1] || (f[1] = (u) => o("lost")),
|
|
43552
|
-
class:
|
|
43553
|
+
class: le(["button_outcome-base", { "button_outcome-active-lost": i.value }])
|
|
43553
43554
|
}, [
|
|
43554
43555
|
(v(), y("svg", {
|
|
43555
|
-
class:
|
|
43556
|
+
class: le([{ "svg_outcome-active-lost": i.value }, "text-white size-4 mt-0.8"]),
|
|
43556
43557
|
xmlns: "http://www.w3.org/2000/svg",
|
|
43557
43558
|
viewBox: "0 0 20 19",
|
|
43558
43559
|
fill: "none"
|
|
@@ -43570,7 +43571,7 @@ const Ry = {
|
|
|
43570
43571
|
], 2)
|
|
43571
43572
|
]));
|
|
43572
43573
|
}
|
|
43573
|
-
}, vx = /* @__PURE__ */ Oe(gx, [["__scopeId", "data-v-cde71744"]]), yx = ["onMousemove", "onClick"],
|
|
43574
|
+
}, vx = /* @__PURE__ */ Oe(gx, [["__scopeId", "data-v-cde71744"]]), yx = ["disabled"], xx = ["onMousemove", "onClick"], bx = {
|
|
43574
43575
|
__name: "raitingInput",
|
|
43575
43576
|
props: {
|
|
43576
43577
|
modelValue: { type: Number, default: 0 },
|
|
@@ -43578,8 +43579,9 @@ const Ry = {
|
|
|
43578
43579
|
// tamanho das estrelas (px)
|
|
43579
43580
|
gap: { type: Number, default: 4 },
|
|
43580
43581
|
// espaçamento entre estrelas (px)
|
|
43581
|
-
onRate: { type: Function, default: null }
|
|
43582
|
+
onRate: { type: Function, default: null },
|
|
43582
43583
|
// função opcional a ser executada no clique
|
|
43584
|
+
readonly: { type: Boolean, default: !1 }
|
|
43583
43585
|
},
|
|
43584
43586
|
emits: ["update:modelValue"],
|
|
43585
43587
|
setup(e, { emit: t }) {
|
|
@@ -43604,16 +43606,20 @@ const Ry = {
|
|
|
43604
43606
|
o.value = o.value === h ? 0 : h, a("update:modelValue", o.value), typeof n.onRate == "function" && n.onRate(o.value);
|
|
43605
43607
|
}
|
|
43606
43608
|
return (c, m) => (v(), y("main", {
|
|
43609
|
+
disabled: n.readonly,
|
|
43607
43610
|
class: "flex select-none",
|
|
43608
43611
|
style: Ze({ gap: `${e.gap}px` })
|
|
43609
43612
|
}, [
|
|
43610
43613
|
(v(), y(Pe, null, Ie(5, (d) => r("div", {
|
|
43611
43614
|
key: d,
|
|
43612
|
-
class: "relative
|
|
43615
|
+
class: le(["relative", {
|
|
43616
|
+
"cursor-pointer": !n.readonly,
|
|
43617
|
+
"cursor-default": n.readonly
|
|
43618
|
+
}]),
|
|
43613
43619
|
style: Ze({ width: `${e.size}px`, height: `${e.size}px` }),
|
|
43614
|
-
onMousemove: (g) => f(g, d),
|
|
43615
|
-
onMouseleave: m[0] || (m[0] = (g) => s.value = 0),
|
|
43616
|
-
onClick: (g) => u(g, d)
|
|
43620
|
+
onMousemove: (g) => !n.readonly && f(g, d),
|
|
43621
|
+
onMouseleave: m[0] || (m[0] = (g) => !n.readonly && (s.value = 0)),
|
|
43622
|
+
onClick: (g) => !n.readonly && u(g, d)
|
|
43617
43623
|
}, [
|
|
43618
43624
|
(v(), y("svg", {
|
|
43619
43625
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -43625,7 +43631,10 @@ const Ry = {
|
|
|
43625
43631
|
r("path", { d: "M13.849 4.22c-.684-1.626-3.014-1.626-3.698 0L8.397 8.387l-4.552.361c-1.775.14-2.495 2.331-1.142 3.477l3.468 2.937-1.06 4.392c-.413 1.713 1.472 3.067 2.992 2.149L12 19.35l3.897 2.354c1.52.918 3.405-.436 2.992-2.15l-1.06-4.39 3.468-2.938c1.353-1.146.633-3.336-1.142-3.477l-4.552-.36-1.754-4.17Z" }, null, -1)
|
|
43626
43632
|
])], 4)),
|
|
43627
43633
|
r("div", {
|
|
43628
|
-
class: "absolute top-0 left-0 h-full overflow-hidden
|
|
43634
|
+
class: le(["absolute top-0 left-0 h-full overflow-hidden transition-all duration-150", {
|
|
43635
|
+
"text-primary": !s.value,
|
|
43636
|
+
"text-hover": s.value > 0
|
|
43637
|
+
}]),
|
|
43629
43638
|
style: Ze({ width: l(d), height: `${e.size}px` })
|
|
43630
43639
|
}, [
|
|
43631
43640
|
(v(), y("svg", {
|
|
@@ -43636,35 +43645,35 @@ const Ry = {
|
|
|
43636
43645
|
}, [...m[2] || (m[2] = [
|
|
43637
43646
|
r("path", { d: "M13.849 4.22c-.684-1.626-3.014-1.626-3.698 0L8.397 8.387l-4.552.361c-1.775.14-2.495 2.331-1.142 3.477l3.468 2.937-1.06 4.392c-.413 1.713 1.472 3.067 2.992 2.149L12 19.35l3.897 2.354c1.52.918 3.405-.436 2.992-2.15l-1.06-4.39 3.468-2.938c1.353-1.146.633-3.336-1.142-3.477l-4.552-.36-1.754-4.17Z" }, null, -1)
|
|
43638
43647
|
])], 4))
|
|
43639
|
-
],
|
|
43640
|
-
],
|
|
43641
|
-
],
|
|
43648
|
+
], 6)
|
|
43649
|
+
], 46, xx)), 64))
|
|
43650
|
+
], 12, yx));
|
|
43642
43651
|
}
|
|
43643
|
-
}, La = /* @__PURE__ */ Oe(
|
|
43652
|
+
}, La = /* @__PURE__ */ Oe(bx, [["__scopeId", "data-v-b89a612e"]]), kx = {
|
|
43644
43653
|
key: 0,
|
|
43645
43654
|
class: "flex items-center justify-center overflow-hidden h-svh"
|
|
43646
|
-
},
|
|
43655
|
+
}, wx = {
|
|
43647
43656
|
key: 1,
|
|
43648
43657
|
class: "flex flex-col overflow-hidden"
|
|
43649
|
-
},
|
|
43658
|
+
}, Cx = {
|
|
43650
43659
|
key: 0,
|
|
43651
43660
|
class: "sticky top-0 z-50 bg-base-300 py-1 px-1.5 flex gap-2"
|
|
43652
|
-
},
|
|
43661
|
+
}, Sx = { class: "total-price-badge" }, Mx = {
|
|
43653
43662
|
key: 1,
|
|
43654
43663
|
class: "flex-1 overflow-y-auto flex flex-col gap-2 px-2"
|
|
43655
|
-
},
|
|
43664
|
+
}, Ex = { class: "w-full text-gray-500 list-none list-inside dark:text-gray-400 divide-y divide-base-200" }, Ax = { class: "flex gap-2 items-center" }, Tx = ["src"], Lx = {
|
|
43656
43665
|
key: 1,
|
|
43657
43666
|
class: "size-8 rounded-md flex items-center justify-center border border-base-200"
|
|
43658
|
-
},
|
|
43667
|
+
}, Fx = { class: "flex flex-col items-start" }, $x = ["title"], Dx = { class: "text-[10px] flex gap-1 items-center" }, Bx = { class: "text-xs font-semibold font-sans" }, Ox = {
|
|
43659
43668
|
key: 0,
|
|
43660
|
-
class: "font-sans text-primary"
|
|
43661
|
-
},
|
|
43669
|
+
class: "font-sans text-primary text-white font-semibold"
|
|
43670
|
+
}, Px = { class: "text-primary" }, Hx = { class: "flex flex-col gap-1" }, _x = { class: "flex gap-1" }, Vx = ["onClick"], Rx = ["onClick"], zx = {
|
|
43662
43671
|
key: 2,
|
|
43663
43672
|
class: "h-full flex flex-col items-center justify-center"
|
|
43664
|
-
},
|
|
43673
|
+
}, jx = {
|
|
43665
43674
|
key: 0,
|
|
43666
43675
|
class: "text-gray-200 text-[10px] md:text-xs font-sans"
|
|
43667
|
-
},
|
|
43676
|
+
}, Nx = {
|
|
43668
43677
|
__name: "listProducts",
|
|
43669
43678
|
props: {
|
|
43670
43679
|
// --- Lista que será exibida e já selecionada ---
|
|
@@ -43757,10 +43766,10 @@ const Ry = {
|
|
|
43757
43766
|
), (O, R) => {
|
|
43758
43767
|
const A = Dt("SimpleLoader");
|
|
43759
43768
|
return v(), y(Pe, null, [
|
|
43760
|
-
o.value ? (v(), y("div",
|
|
43769
|
+
o.value ? (v(), y("div", kx, [
|
|
43761
43770
|
Me(A)
|
|
43762
|
-
])) : (v(), y("main",
|
|
43763
|
-
s.value.length === 0 && L.value || !L.value && s.value.length > 0 ? (v(), y("header",
|
|
43771
|
+
])) : (v(), y("main", wx, [
|
|
43772
|
+
s.value.length === 0 && L.value || !L.value && s.value.length > 0 ? (v(), y("header", Cx, [
|
|
43764
43773
|
Ye(r("input", {
|
|
43765
43774
|
class: "w-full text-xs bg-base-300 rounded-md pt-1.5 outline-none border-none focus:outline-none focus:ring-0 focus:shadow-none",
|
|
43766
43775
|
type: "text",
|
|
@@ -43769,25 +43778,25 @@ const Ry = {
|
|
|
43769
43778
|
}, null, 512), [
|
|
43770
43779
|
[kt, S.value.query]
|
|
43771
43780
|
]),
|
|
43772
|
-
r("section",
|
|
43781
|
+
r("section", Sx, " Valor total: " + re(c.value.toLocaleString("pt-BR", {
|
|
43773
43782
|
style: "currency",
|
|
43774
43783
|
currency: "BRL"
|
|
43775
43784
|
})), 1)
|
|
43776
|
-
])) :
|
|
43777
|
-
s.value.length > 0 ? (v(), y("div",
|
|
43778
|
-
r("ul",
|
|
43785
|
+
])) : Y("", !0),
|
|
43786
|
+
s.value.length > 0 ? (v(), y("div", Mx, [
|
|
43787
|
+
r("ul", Ex, [
|
|
43779
43788
|
(v(!0), y(Pe, null, Ie(s.value, (k, F) => (v(), y("li", {
|
|
43780
43789
|
class: "flex w-full justify-between items-center py-2",
|
|
43781
43790
|
key: k.id
|
|
43782
43791
|
}, [
|
|
43783
|
-
r("div",
|
|
43792
|
+
r("div", Ax, [
|
|
43784
43793
|
r("section", null, [
|
|
43785
43794
|
k.photo ? (v(), y("img", {
|
|
43786
43795
|
key: 0,
|
|
43787
43796
|
class: "size-8 rounded-md",
|
|
43788
43797
|
src: k.photo,
|
|
43789
43798
|
alt: ""
|
|
43790
|
-
}, null, 8,
|
|
43799
|
+
}, null, 8, Tx)) : (v(), y("div", Lx, [...R[1] || (R[1] = [
|
|
43791
43800
|
r("svg", {
|
|
43792
43801
|
class: "w-6 h-6",
|
|
43793
43802
|
"aria-hidden": "true",
|
|
@@ -43810,42 +43819,45 @@ const Ry = {
|
|
|
43810
43819
|
], -1)
|
|
43811
43820
|
])]))
|
|
43812
43821
|
]),
|
|
43813
|
-
r("section",
|
|
43822
|
+
r("section", Fx, [
|
|
43814
43823
|
r("p", {
|
|
43815
43824
|
title: k.name,
|
|
43816
|
-
class:
|
|
43817
|
-
}, re(k.name), 11,
|
|
43818
|
-
r("span",
|
|
43819
|
-
r("p",
|
|
43825
|
+
class: le(["text-xs text-start font-semibold truncate max-w-32", d(k) > 0 ? "text-white" : ""])
|
|
43826
|
+
}, re(k.name), 11, $x),
|
|
43827
|
+
r("span", Dx, [
|
|
43828
|
+
r("p", Bx, " R$ " + re(k.price.toLocaleString("pt-BR", {
|
|
43820
43829
|
style: "currency",
|
|
43821
43830
|
currency: "BRL"
|
|
43822
43831
|
})), 1),
|
|
43823
|
-
d(k) > 0 ? (v(), y("p",
|
|
43824
|
-
|
|
43825
|
-
|
|
43826
|
-
|
|
43832
|
+
d(k) > 0 ? (v(), y("p", Ox, [
|
|
43833
|
+
Qe(" - x " + re(d(k)) + " = ", 1),
|
|
43834
|
+
r("a", Px, re((k.price * d(k)).toLocaleString("pt-BR", {
|
|
43835
|
+
style: "currency",
|
|
43836
|
+
currency: "BRL"
|
|
43837
|
+
})), 1)
|
|
43838
|
+
])) : Y("", !0)
|
|
43827
43839
|
])
|
|
43828
43840
|
])
|
|
43829
43841
|
]),
|
|
43830
|
-
r("section",
|
|
43842
|
+
r("section", Hx, [
|
|
43831
43843
|
r("p", {
|
|
43832
|
-
class:
|
|
43844
|
+
class: le([
|
|
43833
43845
|
"text-xs font-semibold font-sans products-and-services_badge",
|
|
43834
43846
|
k.recurrence
|
|
43835
43847
|
])
|
|
43836
43848
|
}, re(k.recurrence === "monthly" ? "Mensal" : "Único"), 3),
|
|
43837
|
-
r("div",
|
|
43849
|
+
r("div", _x, [
|
|
43838
43850
|
r("button", {
|
|
43839
43851
|
class: "action-list-button",
|
|
43840
43852
|
onClick: (H) => h(k)
|
|
43841
|
-
}, " - ", 8,
|
|
43853
|
+
}, " - ", 8, Vx),
|
|
43842
43854
|
r("p", {
|
|
43843
|
-
class:
|
|
43855
|
+
class: le(["w-5 text-xs flex items-center justify-center font-semibold font-sans", d(k) > 0 ? "text-white" : ""])
|
|
43844
43856
|
}, re(d(k)), 3),
|
|
43845
43857
|
r("button", {
|
|
43846
43858
|
class: "action-list-button",
|
|
43847
43859
|
onClick: (H) => g(k)
|
|
43848
|
-
}, " + ", 8,
|
|
43860
|
+
}, " + ", 8, Rx)
|
|
43849
43861
|
])
|
|
43850
43862
|
])
|
|
43851
43863
|
]))), 128))
|
|
@@ -43861,37 +43873,37 @@ const Ry = {
|
|
|
43861
43873
|
], -1)
|
|
43862
43874
|
])]),
|
|
43863
43875
|
_: 1
|
|
43864
|
-
})) :
|
|
43865
|
-
])) :
|
|
43876
|
+
})) : Y("", !0)
|
|
43877
|
+
])) : Y("", !0)
|
|
43866
43878
|
])),
|
|
43867
|
-
!o.value && s.value.length <= 0 ? (v(), y("section",
|
|
43879
|
+
!o.value && s.value.length <= 0 ? (v(), y("section", zx, [
|
|
43868
43880
|
R[4] || (R[4] = r("p", { class: "text-gray-200 text-xs md:text-base font-sans" }, " Nenhum item encontrado ", -1)),
|
|
43869
|
-
L.value ?
|
|
43881
|
+
L.value ? Y("", !0) : (v(), y("p", jx, [...R[3] || (R[3] = [
|
|
43870
43882
|
Qe(" Comece criando seu primeiro na aba ", -1),
|
|
43871
43883
|
r("strong", null, "Produtos", -1)
|
|
43872
43884
|
])]))
|
|
43873
|
-
])) :
|
|
43885
|
+
])) : Y("", !0)
|
|
43874
43886
|
], 64);
|
|
43875
43887
|
};
|
|
43876
43888
|
}
|
|
43877
|
-
},
|
|
43878
|
-
function
|
|
43879
|
-
return v(), y("div",
|
|
43889
|
+
}, Gx = /* @__PURE__ */ Oe(Nx, [["__scopeId", "data-v-aaa205b7"]]), Ix = {}, Wx = { class: "flex items-center justify-center h-full" };
|
|
43890
|
+
function qx(e, t) {
|
|
43891
|
+
return v(), y("div", Wx, [...t[0] || (t[0] = [
|
|
43880
43892
|
r("span", { class: "products-and-services_bar" }, null, -1),
|
|
43881
43893
|
r("span", { class: "products-and-services_bar" }, null, -1),
|
|
43882
43894
|
r("span", { class: "products-and-services_bar" }, null, -1)
|
|
43883
43895
|
])]);
|
|
43884
43896
|
}
|
|
43885
|
-
const Fa = /* @__PURE__ */ Oe(
|
|
43897
|
+
const Fa = /* @__PURE__ */ Oe(Ix, [["render", qx], ["__scopeId", "data-v-3f0502dd"]]), Ux = {
|
|
43886
43898
|
key: 0,
|
|
43887
43899
|
class: "flex items-center justify-center overflow-hidden h-svh"
|
|
43888
|
-
},
|
|
43900
|
+
}, Zx = {
|
|
43889
43901
|
key: 1,
|
|
43890
43902
|
class: "rounded-md h-svh bg-base-200 border border-white/10 shadow-sm transition-shadow duration-200 hover:shadow-md p-1"
|
|
43891
|
-
},
|
|
43903
|
+
}, Yx = { class: "flex flex-col gap-2" }, Xx = ["onUpdate:modelValue"], Kx = { class: "text-[10px] font-sans" }, Qx = ["onUpdate:modelValue"], Jx = ["onUpdate:modelValue"], eb = {
|
|
43892
43904
|
key: 2,
|
|
43893
43905
|
class: "rounded-md h-svh bg-base-200 border border-white/10 shadow-sm transition-shadow duration-200 hover:shadow-md p-1 flex flex-col items-center justify-center gap-2"
|
|
43894
|
-
},
|
|
43906
|
+
}, tb = {
|
|
43895
43907
|
__name: "listSegmentationsFields",
|
|
43896
43908
|
props: {
|
|
43897
43909
|
modelValue: {
|
|
@@ -43926,18 +43938,18 @@ const Fa = /* @__PURE__ */ Oe(Nx, [["render", Ix], ["__scopeId", "data-v-3f0502d
|
|
|
43926
43938
|
{ deep: !0 }
|
|
43927
43939
|
), (f, u) => {
|
|
43928
43940
|
const c = Dt("SimpleSelect");
|
|
43929
|
-
return s.value ? (v(), y("div",
|
|
43941
|
+
return s.value ? (v(), y("div", Ux, [
|
|
43930
43942
|
Me(Fa)
|
|
43931
|
-
])) : o.value.length > 0 ? (v(), y("div",
|
|
43943
|
+
])) : o.value.length > 0 ? (v(), y("div", Zx, [
|
|
43932
43944
|
u[0] || (u[0] = r("header", { class: "text-start w-full items-center justify-between flex mb-2 px-1" }, [
|
|
43933
43945
|
r("p", { class: "text-sm font-semibold" }, "Campos Personalizados")
|
|
43934
43946
|
], -1)),
|
|
43935
|
-
r("div",
|
|
43947
|
+
r("div", Yx, [
|
|
43936
43948
|
(v(!0), y(Pe, null, Ie(o.value, (m) => (v(), y("section", {
|
|
43937
43949
|
key: m.id
|
|
43938
43950
|
}, [
|
|
43939
43951
|
r("div", {
|
|
43940
|
-
class:
|
|
43952
|
+
class: le([
|
|
43941
43953
|
"flex gap-1 rounded-md",
|
|
43942
43954
|
m.type === "bool" ? "flex-row items-center" : "flex-col items-start"
|
|
43943
43955
|
])
|
|
@@ -43947,26 +43959,26 @@ const Fa = /* @__PURE__ */ Oe(Nx, [["render", Ix], ["__scopeId", "data-v-3f0502d
|
|
|
43947
43959
|
class: "checkbox size-4 rounded-sm",
|
|
43948
43960
|
type: "checkbox",
|
|
43949
43961
|
"onUpdate:modelValue": (d) => m.content = d
|
|
43950
|
-
}, null, 8,
|
|
43962
|
+
}, null, 8, Xx)), [
|
|
43951
43963
|
[vo, m.content]
|
|
43952
|
-
]) :
|
|
43953
|
-
r("p",
|
|
43964
|
+
]) : Y("", !0),
|
|
43965
|
+
r("p", Kx, re(m.name) + ":", 1),
|
|
43954
43966
|
m.type === "string" ? Ye((v(), y("input", {
|
|
43955
43967
|
key: 1,
|
|
43956
43968
|
class: "input_field",
|
|
43957
43969
|
type: "text",
|
|
43958
43970
|
"onUpdate:modelValue": (d) => m.content = d
|
|
43959
|
-
}, null, 8,
|
|
43971
|
+
}, null, 8, Qx)), [
|
|
43960
43972
|
[kt, m.content]
|
|
43961
|
-
]) :
|
|
43973
|
+
]) : Y("", !0),
|
|
43962
43974
|
m.type === "float" ? Ye((v(), y("input", {
|
|
43963
43975
|
key: 2,
|
|
43964
43976
|
class: "input_field",
|
|
43965
43977
|
type: "number",
|
|
43966
43978
|
"onUpdate:modelValue": (d) => m.content = d
|
|
43967
|
-
}, null, 8,
|
|
43979
|
+
}, null, 8, Jx)), [
|
|
43968
43980
|
[kt, m.content]
|
|
43969
|
-
]) :
|
|
43981
|
+
]) : Y("", !0),
|
|
43970
43982
|
m.type === "list" ? (v(), ze(c, {
|
|
43971
43983
|
key: 3,
|
|
43972
43984
|
modelValue: m.content,
|
|
@@ -43978,11 +43990,11 @@ const Fa = /* @__PURE__ */ Oe(Nx, [["render", Ix], ["__scopeId", "data-v-3f0502d
|
|
|
43978
43990
|
placeholder: "Selecione uma opção",
|
|
43979
43991
|
theme: "bg-base-300 border-base-100",
|
|
43980
43992
|
"teleport-to": "body"
|
|
43981
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "options"])) :
|
|
43993
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "options"])) : Y("", !0)
|
|
43982
43994
|
], 2)
|
|
43983
43995
|
]))), 128))
|
|
43984
43996
|
])
|
|
43985
|
-
])) : (v(), y("section",
|
|
43997
|
+
])) : (v(), y("section", eb, [...u[1] || (u[1] = [
|
|
43986
43998
|
r("p", { class: "text-gray-200 text-xs md:text-base font-sans" }, " Nenhum item encontrado ", -1),
|
|
43987
43999
|
r("p", { class: "text-gray-200 text-[10px] md:text-xs font-sans" }, [
|
|
43988
44000
|
Qe(" Comece criando seu primeiro na aba "),
|
|
@@ -43991,31 +44003,31 @@ const Fa = /* @__PURE__ */ Oe(Nx, [["render", Ix], ["__scopeId", "data-v-3f0502d
|
|
|
43991
44003
|
])]));
|
|
43992
44004
|
};
|
|
43993
44005
|
}
|
|
43994
|
-
},
|
|
44006
|
+
}, nb = /* @__PURE__ */ Oe(tb, [["__scopeId", "data-v-ac199f8c"]]), ab = { class: "modal_head" }, ob = { class: "modal_responsive" }, sb = {
|
|
43995
44007
|
style: { "min-height": "100%" },
|
|
43996
44008
|
class: "flex min-h-full items-center justify-center text-center"
|
|
43997
|
-
},
|
|
44009
|
+
}, ib = { class: "modal-form-container" }, rb = { class: "flex justify-between p-2.5 rounded-t-2xl bg-base-300 items-center text-current" }, lb = { class: "flex items-center gap-2" }, cb = { class: "flex flex-col items-start" }, db = { class: "text-lg font-semibold" }, ub = {
|
|
43998
44010
|
key: 0,
|
|
43999
44011
|
class: "text-xs text-gray-400"
|
|
44000
|
-
},
|
|
44012
|
+
}, fb = { class: "flex gap-2 items-center" }, hb = { class: "grid grid-cols-2 h-full min-h-0" }, mb = { class: "flex flex-col h-full min-h-0 px-1 py-2" }, pb = {
|
|
44001
44013
|
title: "Não é possível alterar a foto do cliente neste momento",
|
|
44002
44014
|
class: "flex items-center justify-center w-full"
|
|
44003
|
-
},
|
|
44015
|
+
}, gb = ["src"], vb = {
|
|
44004
44016
|
key: 1,
|
|
44005
44017
|
class: "bg-base-300 p-2 rounded-xl size-24 flex items-center justify-center border border-base-100 cursor-not-allowed"
|
|
44006
|
-
},
|
|
44018
|
+
}, yb = { class: "flex flex-col gap-1.5 w-full h-full overflow-y-auto overflow-x-hidden" }, xb = { class: "w-full" }, bb = { class: "flex flex-col gap-2 w-full" }, kb = { class: "flex items-center justify-between px-1" }, wb = {
|
|
44007
44019
|
key: 0,
|
|
44008
44020
|
class: "flex flex-1 min-h-0 flex-col gap-2"
|
|
44009
|
-
},
|
|
44021
|
+
}, Cb = { class: "flex items-center justify-between px-1" }, Sb = { class: "w-full h-full bg-base-300 rounded-lg flex flex-col min-h-0" }, Mb = { class: "bg-base-300 flex flex-col h-full min-h-0 overflow-hidden" }, Eb = {
|
|
44010
44022
|
key: 0,
|
|
44011
44023
|
class: "flex gap-1 px-1.5"
|
|
44012
|
-
},
|
|
44024
|
+
}, Ab = ["disabled"], Tb = { class: "flex flex-col gap-2 flex-1 min-h-0 px-1.5 pt-1.5 overflow-hidden" }, Lb = { class: "rounded-md bg-base-200 border border-white/10 shadow-sm transition-shadow duration-200 hover:shadow-md" }, Fb = { class: "flex w-full" }, $b = { class: "segmentation-section" }, Db = { class: "products-list-section flex-1 min-h-0 overflow-y-auto" }, Bb = { class: "modal_end_button" }, Ob = ["disabled"], Pb = {
|
|
44013
44025
|
key: 0,
|
|
44014
44026
|
class: "size-4 animate-spin rounded-full border-4 border-solid text-white border-t-transparent"
|
|
44015
|
-
},
|
|
44027
|
+
}, Hb = {
|
|
44016
44028
|
key: 1,
|
|
44017
44029
|
class: "text-xs font-semibold"
|
|
44018
|
-
},
|
|
44030
|
+
}, _b = {
|
|
44019
44031
|
__name: "clientsForm",
|
|
44020
44032
|
props: {
|
|
44021
44033
|
// --- Estado atual do formulário caso preenchido ---
|
|
@@ -44066,7 +44078,7 @@ const Fa = /* @__PURE__ */ Oe(Nx, [["render", Ix], ["__scopeId", "data-v-3f0502d
|
|
|
44066
44078
|
const n = t, a = G("data"), o = e, s = dn({ ...o.form }), i = G(!1), l = G(!1), f = G([
|
|
44067
44079
|
{
|
|
44068
44080
|
title: "Nome",
|
|
44069
|
-
info:
|
|
44081
|
+
info: !1,
|
|
44070
44082
|
type: "text",
|
|
44071
44083
|
placeholder: "Digite o nome do contato",
|
|
44072
44084
|
empty: ue(() => l.value),
|
|
@@ -44107,16 +44119,16 @@ const Fa = /* @__PURE__ */ Oe(Nx, [["render", Ix], ["__scopeId", "data-v-3f0502d
|
|
|
44107
44119
|
), (m, d) => {
|
|
44108
44120
|
var p, x, b;
|
|
44109
44121
|
const g = Dt("Popper"), h = Dt("vue-tel-input");
|
|
44110
|
-
return v(), y("div",
|
|
44122
|
+
return v(), y("div", ab, [
|
|
44111
44123
|
d[24] || (d[24] = r("div", { class: "modal-form-background" }, null, -1)),
|
|
44112
|
-
r("div",
|
|
44113
|
-
r("div",
|
|
44114
|
-
r("div",
|
|
44124
|
+
r("div", ob, [
|
|
44125
|
+
r("div", sb, [
|
|
44126
|
+
r("div", ib, [
|
|
44115
44127
|
r("div", {
|
|
44116
|
-
class:
|
|
44128
|
+
class: le([{ noCrmPlus: !e.hasCrmPlus }, "clients-form-background relative rounded-2xl bg-base-200 backdrop-blur-lg"])
|
|
44117
44129
|
}, [
|
|
44118
|
-
r("div",
|
|
44119
|
-
r("span",
|
|
44130
|
+
r("div", rb, [
|
|
44131
|
+
r("span", lb, [
|
|
44120
44132
|
d[14] || (d[14] = r("svg", {
|
|
44121
44133
|
class: "size-6 text-green-500",
|
|
44122
44134
|
"aria-hidden": "true",
|
|
@@ -44132,12 +44144,12 @@ const Fa = /* @__PURE__ */ Oe(Nx, [["render", Ix], ["__scopeId", "data-v-3f0502d
|
|
|
44132
44144
|
"clip-rule": "evenodd"
|
|
44133
44145
|
})
|
|
44134
44146
|
], -1)),
|
|
44135
|
-
r("span",
|
|
44136
|
-
r("p",
|
|
44137
|
-
s.id ? (v(), y("p",
|
|
44147
|
+
r("span", cb, [
|
|
44148
|
+
r("p", db, re(u.value), 1),
|
|
44149
|
+
s.id ? (v(), y("p", ub, " ID: " + re(s.id), 1)) : Y("", !0)
|
|
44138
44150
|
])
|
|
44139
44151
|
]),
|
|
44140
|
-
r("section",
|
|
44152
|
+
r("section", fb, [
|
|
44141
44153
|
r("button", {
|
|
44142
44154
|
class: "bg-base-200 p-1.5 rounded-md hover:bg-base-200/70 transition",
|
|
44143
44155
|
onClick: d[0] || (d[0] = (w) => n("close"))
|
|
@@ -44160,18 +44172,17 @@ const Fa = /* @__PURE__ */ Oe(Nx, [["render", Ix], ["__scopeId", "data-v-3f0502d
|
|
|
44160
44172
|
])])
|
|
44161
44173
|
])
|
|
44162
44174
|
]),
|
|
44163
|
-
r("div",
|
|
44164
|
-
r("section",
|
|
44175
|
+
r("div", hb, [
|
|
44176
|
+
r("section", mb, [
|
|
44165
44177
|
r("div", {
|
|
44166
|
-
class:
|
|
44178
|
+
class: le([e.hasCrmPlus ? "justify-between" : "justify-center", "flex flex-col gap-2 items-center"])
|
|
44167
44179
|
}, [
|
|
44168
44180
|
e.hasCrmPlus ? (v(), ze(vx, {
|
|
44169
44181
|
key: 0,
|
|
44170
44182
|
outcome: s.outcome,
|
|
44171
|
-
"onUpdate:outcome": d[1] || (d[1] = (w) => s.outcome = w)
|
|
44172
|
-
|
|
44173
|
-
|
|
44174
|
-
r("div", hb, [
|
|
44183
|
+
"onUpdate:outcome": d[1] || (d[1] = (w) => s.outcome = w)
|
|
44184
|
+
}, null, 8, ["outcome"])) : Y("", !0),
|
|
44185
|
+
r("div", pb, [
|
|
44175
44186
|
s.photo ? (v(), y("button", {
|
|
44176
44187
|
key: 0,
|
|
44177
44188
|
onClick: d[2] || (d[2] = (w) => m.viewSingleImage(s.photo))
|
|
@@ -44180,8 +44191,8 @@ const Fa = /* @__PURE__ */ Oe(Nx, [["render", Ix], ["__scopeId", "data-v-3f0502d
|
|
|
44180
44191
|
src: s.photo,
|
|
44181
44192
|
alt: "",
|
|
44182
44193
|
class: "size-24 object-cover rounded-md cursor-not-allowed"
|
|
44183
|
-
}, null, 8,
|
|
44184
|
-
])) : (v(), y("span",
|
|
44194
|
+
}, null, 8, gb)
|
|
44195
|
+
])) : (v(), y("span", vb, [...d[16] || (d[16] = [
|
|
44185
44196
|
r("svg", {
|
|
44186
44197
|
class: "size-14",
|
|
44187
44198
|
"aria-hidden": "true",
|
|
@@ -44203,17 +44214,17 @@ const Fa = /* @__PURE__ */ Oe(Nx, [["render", Ix], ["__scopeId", "data-v-3f0502d
|
|
|
44203
44214
|
key: 1,
|
|
44204
44215
|
modelValue: s.rating,
|
|
44205
44216
|
"onUpdate:modelValue": d[3] || (d[3] = (w) => s.rating = w)
|
|
44206
|
-
}, null, 8, ["modelValue"])) :
|
|
44217
|
+
}, null, 8, ["modelValue"])) : Y("", !0)
|
|
44207
44218
|
], 2),
|
|
44208
|
-
r("div",
|
|
44209
|
-
r("div",
|
|
44219
|
+
r("div", yb, [
|
|
44220
|
+
r("div", xb, [
|
|
44210
44221
|
Me(Ta, {
|
|
44211
44222
|
"onUpdate:content": d[4] || (d[4] = (w) => f.value[0].data = w.data),
|
|
44212
44223
|
content: f.value[0]
|
|
44213
44224
|
}, null, 8, ["content"])
|
|
44214
44225
|
]),
|
|
44215
|
-
r("div",
|
|
44216
|
-
r("header",
|
|
44226
|
+
r("div", bb, [
|
|
44227
|
+
r("header", kb, [
|
|
44217
44228
|
d[18] || (d[18] = r("p", { class: "text-xs font-medium text-left" }, " Escolha suas etiquetas ", -1)),
|
|
44218
44229
|
Me(g, {
|
|
44219
44230
|
hover: "",
|
|
@@ -44246,8 +44257,8 @@ const Fa = /* @__PURE__ */ Oe(Nx, [["render", Ix], ["__scopeId", "data-v-3f0502d
|
|
|
44246
44257
|
"onUpdate:modelValue": d[5] || (d[5] = (w) => s.tags = w)
|
|
44247
44258
|
}, null, 8, ["allTags", "modelValue"])
|
|
44248
44259
|
]),
|
|
44249
|
-
e.hasCrmPlus ? (v(), y("div",
|
|
44250
|
-
r("header",
|
|
44260
|
+
e.hasCrmPlus ? (v(), y("div", wb, [
|
|
44261
|
+
r("header", Cb, [
|
|
44251
44262
|
d[20] || (d[20] = r("p", { class: "text-xs font-medium text-left" }, " Anotações sobre o cliente ", -1)),
|
|
44252
44263
|
Me(g, {
|
|
44253
44264
|
hover: "",
|
|
@@ -44272,7 +44283,7 @@ const Fa = /* @__PURE__ */ Oe(Nx, [["render", Ix], ["__scopeId", "data-v-3f0502d
|
|
|
44272
44283
|
_: 1
|
|
44273
44284
|
})
|
|
44274
44285
|
]),
|
|
44275
|
-
r("div",
|
|
44286
|
+
r("div", Sb, [
|
|
44276
44287
|
Ye(r("textarea", {
|
|
44277
44288
|
class: "form-text-area flex-1 h-full min-h-0",
|
|
44278
44289
|
"onUpdate:modelValue": d[6] || (d[6] = (w) => s.notes = w),
|
|
@@ -44282,26 +44293,26 @@ const Fa = /* @__PURE__ */ Oe(Nx, [["render", Ix], ["__scopeId", "data-v-3f0502d
|
|
|
44282
44293
|
[kt, s.notes]
|
|
44283
44294
|
]),
|
|
44284
44295
|
r("div", {
|
|
44285
|
-
class:
|
|
44296
|
+
class: le([
|
|
44286
44297
|
"text-[10px] bg-base-300 px-1 rounded-md text-right mb-1 mr-1",
|
|
44287
44298
|
((p = s.notes) == null ? void 0 : p.length) > 900 ? "text-red-500" : ((x = s.notes) == null ? void 0 : x.length) > 700 ? "text-yellow-500" : "text-gray-400"
|
|
44288
44299
|
])
|
|
44289
44300
|
}, re(((b = s.notes) == null ? void 0 : b.length) || 0) + "/1000 ", 3)
|
|
44290
44301
|
])
|
|
44291
|
-
])) :
|
|
44302
|
+
])) : Y("", !0)
|
|
44292
44303
|
])
|
|
44293
44304
|
]),
|
|
44294
|
-
r("section",
|
|
44295
|
-
e.hasCrmPlus ? (v(), y("div",
|
|
44305
|
+
r("section", Mb, [
|
|
44306
|
+
e.hasCrmPlus ? (v(), y("div", Eb, [
|
|
44296
44307
|
r("button", {
|
|
44297
|
-
class:
|
|
44308
|
+
class: le([
|
|
44298
44309
|
"toggle-page-button",
|
|
44299
44310
|
{ selected: a.value === "data" }
|
|
44300
44311
|
]),
|
|
44301
44312
|
onClick: d[7] || (d[7] = (w) => a.value = "data")
|
|
44302
44313
|
}, " Informações ", 2),
|
|
44303
44314
|
r("button", {
|
|
44304
|
-
class:
|
|
44315
|
+
class: le([
|
|
44305
44316
|
"toggle-page-button",
|
|
44306
44317
|
{ selected: a.value === "products" }
|
|
44307
44318
|
]),
|
|
@@ -44309,14 +44320,14 @@ const Fa = /* @__PURE__ */ Oe(Nx, [["render", Ix], ["__scopeId", "data-v-3f0502d
|
|
|
44309
44320
|
onClick: d[8] || (d[8] = (w) => a.value = "products")
|
|
44310
44321
|
}, [...d[21] || (d[21] = [
|
|
44311
44322
|
r("p", null, "Produtos", -1)
|
|
44312
|
-
])], 10,
|
|
44313
|
-
])) :
|
|
44314
|
-
Ye(r("div",
|
|
44315
|
-
r("div",
|
|
44323
|
+
])], 10, Ab)
|
|
44324
|
+
])) : Y("", !0),
|
|
44325
|
+
Ye(r("div", Tb, [
|
|
44326
|
+
r("div", Lb, [
|
|
44316
44327
|
d[23] || (d[23] = r("h1", { class: "text-start w-full items-center justify-between flex p-2" }, [
|
|
44317
44328
|
r("p", { class: "text-xs font-semibold" }, "Contatos")
|
|
44318
44329
|
], -1)),
|
|
44319
|
-
r("div",
|
|
44330
|
+
r("div", Fb, [
|
|
44320
44331
|
d[22] || (d[22] = r("span", {
|
|
44321
44332
|
style: { "border-bottom-left-radius": "0.4rem" },
|
|
44322
44333
|
class: "bg-base-300 rounded-bl-lg rounded-t-none flex justify-center items-center w-8"
|
|
@@ -44352,8 +44363,8 @@ const Fa = /* @__PURE__ */ Oe(Nx, [["render", Ix], ["__scopeId", "data-v-3f0502d
|
|
|
44352
44363
|
}, null, 8, ["defaultCountry", "modelValue"])
|
|
44353
44364
|
])
|
|
44354
44365
|
]),
|
|
44355
|
-
r("div",
|
|
44356
|
-
Me(
|
|
44366
|
+
r("div", $b, [
|
|
44367
|
+
Me(nb, {
|
|
44357
44368
|
modelValue: s.segmentation_fields,
|
|
44358
44369
|
"onUpdate:modelValue": d[11] || (d[11] = (w) => s.segmentation_fields = w)
|
|
44359
44370
|
}, null, 8, ["modelValue"])
|
|
@@ -44361,8 +44372,8 @@ const Fa = /* @__PURE__ */ Oe(Nx, [["render", Ix], ["__scopeId", "data-v-3f0502d
|
|
|
44361
44372
|
], 512), [
|
|
44362
44373
|
[Zt, a.value === "data"]
|
|
44363
44374
|
]),
|
|
44364
|
-
Ye(r("div",
|
|
44365
|
-
Me(
|
|
44375
|
+
Ye(r("div", Db, [
|
|
44376
|
+
Me(Gx, {
|
|
44366
44377
|
allProducts: e.allProducts,
|
|
44367
44378
|
modelValue: s.products,
|
|
44368
44379
|
"onUpdate:modelValue": d[12] || (d[12] = (w) => s.products = w)
|
|
@@ -44372,14 +44383,14 @@ const Fa = /* @__PURE__ */ Oe(Nx, [["render", Ix], ["__scopeId", "data-v-3f0502d
|
|
|
44372
44383
|
])
|
|
44373
44384
|
])
|
|
44374
44385
|
]),
|
|
44375
|
-
r("div",
|
|
44386
|
+
r("div", Bb, [
|
|
44376
44387
|
r("button", {
|
|
44377
44388
|
disabled: i.value,
|
|
44378
44389
|
class: "bg-green-500 py-2 px-4 rounded-lg text-sm font-medium hover:bg-green-500/80 transition-colors flex gap-2 items-center justify-center min-w-32",
|
|
44379
44390
|
onClick: d[13] || (d[13] = (w) => c())
|
|
44380
44391
|
}, [
|
|
44381
|
-
i.value ? (v(), y("div",
|
|
44382
|
-
], 8,
|
|
44392
|
+
i.value ? (v(), y("div", Pb)) : (v(), y("p", Hb, "Salvar"))
|
|
44393
|
+
], 8, Ob)
|
|
44383
44394
|
])
|
|
44384
44395
|
], 2)
|
|
44385
44396
|
])
|
|
@@ -44388,15 +44399,15 @@ const Fa = /* @__PURE__ */ Oe(Nx, [["render", Ix], ["__scopeId", "data-v-3f0502d
|
|
|
44388
44399
|
]);
|
|
44389
44400
|
};
|
|
44390
44401
|
}
|
|
44391
|
-
}, js = /* @__PURE__ */ Oe(
|
|
44402
|
+
}, js = /* @__PURE__ */ Oe(_b, [["__scopeId", "data-v-df186100"]]), Vb = { class: "flex justify-center items-center" }, Rb = { class: "text-[8px] font-bold" }, zb = { class: "tag-view-popper-content-text" }, jb = { class: "flex" }, Nb = {
|
|
44392
44403
|
class: "svg-list-tag",
|
|
44393
44404
|
"aria-hidden": "true",
|
|
44394
44405
|
viewBox: "0 0 25 100",
|
|
44395
44406
|
style: { color: "#d1d5db" }
|
|
44396
|
-
},
|
|
44407
|
+
}, Gb = {
|
|
44397
44408
|
style: { backgroundColor: "#d1d5db" },
|
|
44398
44409
|
class: "w-full ml-[-0.5rem] rounded-r-md inline-flex items-center justify-center p-0.5 border-b-2 border-gray-900"
|
|
44399
|
-
},
|
|
44410
|
+
}, Ib = { class: "text-[8px] text-black font-bold" }, Wb = { class: "max-h-64 overflow-y-auto hide-scrollbar" }, qb = { class: "flex flex-col gap-2" }, Ub = { class: "tag-view-popper-content-text" }, Zb = { key: 1 }, Yb = {
|
|
44400
44411
|
__name: "tagView",
|
|
44401
44412
|
props: {
|
|
44402
44413
|
// --- lista de clientes ---
|
|
@@ -44412,7 +44423,7 @@ const Fa = /* @__PURE__ */ Oe(Nx, [["render", Ix], ["__scopeId", "data-v-3f0502d
|
|
|
44412
44423
|
return ((a = (n = t.clients) == null ? void 0 : n.tags) == null ? void 0 : a.slice(0, 4)) || [];
|
|
44413
44424
|
}), (n, a) => {
|
|
44414
44425
|
const o = Dt("Popper");
|
|
44415
|
-
return v(), y("section",
|
|
44426
|
+
return v(), y("section", Vb, [
|
|
44416
44427
|
(v(!0), y(Pe, null, Ie(e.clients.tags.slice(0, 4), (s, i) => (v(), ze(o, {
|
|
44417
44428
|
class: "tag-view-theme",
|
|
44418
44429
|
arrow: "",
|
|
@@ -44420,11 +44431,11 @@ const Fa = /* @__PURE__ */ Oe(Nx, [["render", Ix], ["__scopeId", "data-v-3f0502d
|
|
|
44420
44431
|
key: i
|
|
44421
44432
|
}, {
|
|
44422
44433
|
content: Fe(() => [
|
|
44423
|
-
r("p",
|
|
44434
|
+
r("p", zb, re(s.name), 1)
|
|
44424
44435
|
]),
|
|
44425
44436
|
default: Fe(() => [
|
|
44426
44437
|
r("div", {
|
|
44427
|
-
class:
|
|
44438
|
+
class: le(["flex", Se(In)(s.color)])
|
|
44428
44439
|
}, [
|
|
44429
44440
|
(v(), y("svg", {
|
|
44430
44441
|
class: "svg-list-tag",
|
|
@@ -44441,7 +44452,7 @@ const Fa = /* @__PURE__ */ Oe(Nx, [["render", Ix], ["__scopeId", "data-v-3f0502d
|
|
|
44441
44452
|
style: Ze({ backgroundColor: s.color || "#fff" }),
|
|
44442
44453
|
class: "w-full ml-[-0.10rem] rounded-r-md inline-flex items-center justify-center px-1 py-0.5 border-b-2 border-gray-900"
|
|
44443
44454
|
}, [
|
|
44444
|
-
r("p",
|
|
44455
|
+
r("p", Rb, re(s.name.charAt(0).toUpperCase()), 1)
|
|
44445
44456
|
], 4)
|
|
44446
44457
|
], 2)
|
|
44447
44458
|
]),
|
|
@@ -44454,8 +44465,8 @@ const Fa = /* @__PURE__ */ Oe(Nx, [["render", Ix], ["__scopeId", "data-v-3f0502d
|
|
|
44454
44465
|
class: "tag-view-theme"
|
|
44455
44466
|
}, {
|
|
44456
44467
|
content: Fe(() => [
|
|
44457
|
-
r("section",
|
|
44458
|
-
r("div",
|
|
44468
|
+
r("section", Wb, [
|
|
44469
|
+
r("div", qb, [
|
|
44459
44470
|
(v(!0), y(Pe, null, Ie(e.clients.tags, (s) => (v(), y("div", {
|
|
44460
44471
|
key: s.id || s.name,
|
|
44461
44472
|
class: "relative inline-flex items-center rounded-md overflow-hidden"
|
|
@@ -44472,38 +44483,38 @@ const Fa = /* @__PURE__ */ Oe(Nx, [["render", Ix], ["__scopeId", "data-v-3f0502d
|
|
|
44472
44483
|
}, null, -1)
|
|
44473
44484
|
])], 4)),
|
|
44474
44485
|
r("span", {
|
|
44475
|
-
class:
|
|
44486
|
+
class: le(["p-0.5 w-full text-sm font-semibold truncate text-start -ml-2", Se(In)(s.color)]),
|
|
44476
44487
|
style: Ze([
|
|
44477
44488
|
"max-width: 12rem",
|
|
44478
44489
|
{ background: s.color || "#fff" }
|
|
44479
44490
|
])
|
|
44480
44491
|
}, [
|
|
44481
|
-
r("p",
|
|
44492
|
+
r("p", Ub, re(s.name), 1)
|
|
44482
44493
|
], 6)
|
|
44483
44494
|
]))), 128))
|
|
44484
44495
|
])
|
|
44485
44496
|
])
|
|
44486
44497
|
]),
|
|
44487
44498
|
default: Fe(() => [
|
|
44488
|
-
r("div",
|
|
44489
|
-
(v(), y("svg",
|
|
44499
|
+
r("div", jb, [
|
|
44500
|
+
(v(), y("svg", Nb, [...a[1] || (a[1] = [
|
|
44490
44501
|
r("path", {
|
|
44491
44502
|
d: "M49.9,0a17.1,17.1,0,0,0-12,5L5,37.9A17,17,0,0,0,5,62L37.9,94.9a17.1,17.1,0,0,0,12,5ZM25.4,59.4a9.5,9.5,0,1,1,9.5-9.5A9.5,9.5,0,0,1,25.4,59.4Z",
|
|
44492
44503
|
fill: "currentColor"
|
|
44493
44504
|
}, null, -1)
|
|
44494
44505
|
])])),
|
|
44495
|
-
r("span",
|
|
44496
|
-
r("p",
|
|
44506
|
+
r("span", Gb, [
|
|
44507
|
+
r("p", Ib, " +" + re(e.clients.tags.length - 4), 1)
|
|
44497
44508
|
])
|
|
44498
44509
|
])
|
|
44499
44510
|
]),
|
|
44500
44511
|
_: 1
|
|
44501
|
-
})) :
|
|
44502
|
-
!e.clients.tags || e.clients.tags.length === 0 ? (v(), y("span",
|
|
44512
|
+
})) : Y("", !0),
|
|
44513
|
+
!e.clients.tags || e.clients.tags.length === 0 ? (v(), y("span", Zb, "-")) : Y("", !0)
|
|
44503
44514
|
]);
|
|
44504
44515
|
};
|
|
44505
44516
|
}
|
|
44506
|
-
}, Ns = /* @__PURE__ */ Oe(
|
|
44517
|
+
}, Ns = /* @__PURE__ */ Oe(Yb, [["__scopeId", "data-v-e2356f0a"]]), Xb = {
|
|
44507
44518
|
__name: "floating-dev",
|
|
44508
44519
|
setup(e) {
|
|
44509
44520
|
const t = G(!1), n = G({ x: 30, y: 30 }), a = G({ x: 0, y: 0 }), o = G(!1), s = G(null), i = G(null), l = G({ vertical: "bottom", horizontal: "right" }), f = ue(() => ({
|
|
@@ -44613,13 +44624,13 @@ const Fa = /* @__PURE__ */ Oe(Nx, [["render", Ix], ["__scopeId", "data-v-3f0502d
|
|
|
44613
44624
|
mt(p.$slots, "default", {}, () => [
|
|
44614
44625
|
x[1] || (x[1] = r("p", { style: { "text-align": "center", "font-size": "0.9rem" } }, " Adicione seu conteúdo aqui 👇 ", -1))
|
|
44615
44626
|
], !0)
|
|
44616
|
-
], 4)) :
|
|
44627
|
+
], 4)) : Y("", !0)
|
|
44617
44628
|
]),
|
|
44618
44629
|
_: 3
|
|
44619
44630
|
})
|
|
44620
44631
|
], 36));
|
|
44621
44632
|
}
|
|
44622
|
-
}, Gs = /* @__PURE__ */ Oe(
|
|
44633
|
+
}, Gs = /* @__PURE__ */ Oe(Xb, [["__scopeId", "data-v-7767be25"]]);
|
|
44623
44634
|
Fn("debug", {
|
|
44624
44635
|
state: () => ({
|
|
44625
44636
|
message: "Debug store initialized"
|
|
@@ -44630,22 +44641,22 @@ Fn("debug", {
|
|
|
44630
44641
|
}
|
|
44631
44642
|
}
|
|
44632
44643
|
});
|
|
44633
|
-
function
|
|
44644
|
+
function Kb(e) {
|
|
44634
44645
|
e.component("primarySelect", wo), e.component("departSelect", $s), e.component("attendantSelect", Ds), e.component("SimpleModal", Co), e.component("simpleCard", So), e.component("instanceSelect", Xo), e.component("calendarEvents", Jo), e.component("MFA", es), e.component("MfaQrCode", C4), e.component("chatWindow", Ls), e.component("FilterSelectLib", Bs), e.component("MobileInternalChat", Fs), e.component("RandomAvatar", Os), e.component("MinModal", Ps), e.component("LibPatchNotes", Hs), e.component("BtnNewUpdates", _s), e.component("LibPhotoPicker", Vs), e.component("SelectMultipleDepartments", Rs), e.component("PrimaryInput", Ta), e.component("SimpleSelect", zs), e.component("FloatingDev", Gs), e.component("RaitingInput", La), e.component("TagView", Ns), e.component("ClientsForm", js), e.component("SelectMultipleTags", Aa), e.component("SimpleLoader", Fa);
|
|
44635
44646
|
}
|
|
44636
|
-
function
|
|
44647
|
+
function Qb(e, t = "add") {
|
|
44637
44648
|
const n = Ea();
|
|
44638
44649
|
t === "add" ? n.addDepartments(e) : t === "delete" ? n.removeDepartments(e) : t === "update" ? (n.departments = e, n.loaded = !0) : console.error(`Ação "${t}" não suportada em attLibDeparts.`);
|
|
44639
44650
|
}
|
|
44640
|
-
function
|
|
44651
|
+
function Jb(e, t = "add") {
|
|
44641
44652
|
const n = Bn();
|
|
44642
44653
|
t === "add" ? n.addAttendants(e) : t === "delete" ? n.removeAttendants(e) : t === "update" ? (n.attendants = e, n.loaded = !0) : console.error(`Ação "${t}" não suportada em attLibAttendants.`);
|
|
44643
44654
|
}
|
|
44644
|
-
function
|
|
44655
|
+
function ek(e, t = "add") {
|
|
44645
44656
|
const n = ma();
|
|
44646
44657
|
t === "add" ? n.addInstance(e) : t === "delete" ? n.removeInstance(e) : t === "update" ? (n.instances = e, n.loaded = !0) : console.error(`Ação "${t}" não suportada em attLibInstances.`);
|
|
44647
44658
|
}
|
|
44648
|
-
async function
|
|
44659
|
+
async function tk(e, t, n, a = [], o = [], s = []) {
|
|
44649
44660
|
try {
|
|
44650
44661
|
const i = await Yo(e);
|
|
44651
44662
|
t && await i.setToken(t), n && (Et.defaults.baseURL = n);
|
|
@@ -44657,15 +44668,15 @@ async function Jb(e, t, n, a = [], o = [], s = []) {
|
|
|
44657
44668
|
console.error("Erro no setupLibrary:", i);
|
|
44658
44669
|
}
|
|
44659
44670
|
}
|
|
44660
|
-
function
|
|
44671
|
+
function nk(e) {
|
|
44661
44672
|
return In(e);
|
|
44662
44673
|
}
|
|
44663
|
-
const
|
|
44664
|
-
install:
|
|
44665
|
-
setupLibrary:
|
|
44666
|
-
attLibDeparts:
|
|
44667
|
-
attLibAttendants:
|
|
44668
|
-
attLibInstances:
|
|
44674
|
+
const Sk = {
|
|
44675
|
+
install: Kb,
|
|
44676
|
+
setupLibrary: tk,
|
|
44677
|
+
attLibDeparts: Qb,
|
|
44678
|
+
attLibAttendants: Jb,
|
|
44679
|
+
attLibInstances: ek,
|
|
44669
44680
|
primarySelect: wo,
|
|
44670
44681
|
simpleModal: Co,
|
|
44671
44682
|
simpleCard: So,
|
|
@@ -44688,7 +44699,7 @@ const wk = {
|
|
|
44688
44699
|
SelectMultipleDepartments: Rs,
|
|
44689
44700
|
SelectMultipleTags: Aa,
|
|
44690
44701
|
PrimaryInput: Ta,
|
|
44691
|
-
getWithContrastColor:
|
|
44702
|
+
getWithContrastColor: nk,
|
|
44692
44703
|
RaitingInput: La,
|
|
44693
44704
|
TagView: Ns,
|
|
44694
44705
|
ClientsForm: js
|
|
@@ -44696,13 +44707,13 @@ const wk = {
|
|
|
44696
44707
|
export {
|
|
44697
44708
|
ia as C,
|
|
44698
44709
|
xs as W,
|
|
44699
|
-
|
|
44710
|
+
Qb as a,
|
|
44700
44711
|
pu as b,
|
|
44701
|
-
|
|
44702
|
-
|
|
44703
|
-
|
|
44704
|
-
|
|
44712
|
+
Jb as c,
|
|
44713
|
+
ek as d,
|
|
44714
|
+
nk as g,
|
|
44715
|
+
Sk as i,
|
|
44705
44716
|
Ma as r,
|
|
44706
|
-
|
|
44717
|
+
tk as s,
|
|
44707
44718
|
uc as u
|
|
44708
44719
|
};
|