sm-click-library-ui 0.0.422 → 0.0.424
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.
|
@@ -2319,103 +2319,109 @@ const Ls = "v1/api/attendances/attendant/", Bs = "v1/api/attendances/department/
|
|
|
2319
2319
|
], 2),
|
|
2320
2320
|
a.value ? (g(), v("nav", Xs, [
|
|
2321
2321
|
l("ul", Qs, [
|
|
2322
|
-
Te(n).instances.length > 0 ? (g(!0), v(ze, { key: 0 }, Qe(Te(n).instances, (m, u) =>
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
class: "w-4 h-4 flex-shrink-0 text-green-400",
|
|
2336
|
-
viewBox: "0 0 16 16"
|
|
2337
|
-
}, [
|
|
2338
|
-
l("path", { d: "M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z" })
|
|
2339
|
-
], -1)),
|
|
2340
|
-
(g(), v("svg", a2, h[11] || (h[11] = [
|
|
2341
|
-
l("path", {
|
|
2342
|
-
"fill-rule": "evenodd",
|
|
2343
|
-
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"
|
|
2344
|
-
}, null, -1)
|
|
2345
|
-
])))
|
|
2346
|
-
])) : J("", !0),
|
|
2347
|
-
Be(d, {
|
|
2348
|
-
class: "dark:popper-light popper-dark",
|
|
2349
|
-
hover: !0,
|
|
2350
|
-
placement: "top"
|
|
2351
|
-
}, {
|
|
2352
|
-
content: Pe(() => [
|
|
2353
|
-
l("span", null, le(e.type && m.type !== e.type ? "Não é possível utilizar esse tipo de Instância neste recurso" : e.webhooks === !0 ? "Essa instância está com o Atendimento desabilitado" : "Essa aplicação é somente para instâncias sem atendimento habilitado."), 1)
|
|
2354
|
-
]),
|
|
2355
|
-
default: Pe(() => [
|
|
2356
|
-
e.type && m.type !== e.type || e.webhooks !== void 0 && e.webhooks !== m.webhooks ? (g(), v("svg", i2, h[13] || (h[13] = [
|
|
2357
|
-
l("path", {
|
|
2358
|
-
"fill-rule": "evenodd",
|
|
2359
|
-
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",
|
|
2360
|
-
"clip-rule": "evenodd"
|
|
2361
|
-
}, null, -1)
|
|
2362
|
-
]))) : J("", !0)
|
|
2363
|
-
]),
|
|
2364
|
-
_: 2
|
|
2365
|
-
}, 1024),
|
|
2366
|
-
l("p", o2, le(m.name), 1),
|
|
2367
|
-
Be(d, {
|
|
2368
|
-
class: "dark:popper-light popper-dark",
|
|
2369
|
-
hover: !0,
|
|
2370
|
-
placement: "top"
|
|
2371
|
-
}, {
|
|
2372
|
-
content: Pe(() => [
|
|
2373
|
-
l("main", {
|
|
2374
|
-
class: de(["p-1 rounded px-3", { "bg-red-500": m.status === !1, "bg-green-500": m.status === !0, "bg-purple-500": m.status === "Offline" }])
|
|
2375
|
-
}, [
|
|
2376
|
-
l("div", r2, le(m.status === !0 ? "Conectada" : m.status === !1 ? "Desconectada" : "Indefinida"), 1)
|
|
2377
|
-
], 2)
|
|
2378
|
-
]),
|
|
2379
|
-
default: Pe(() => [
|
|
2380
|
-
m.isLoading ? (g(), v("div", s2, h[14] || (h[14] = [
|
|
2381
|
-
l("div", { class: "h-5 w-5 border-t-transparent border-solid animate-spin rounded-full border-white border-4" }, null, -1)
|
|
2382
|
-
]))) : (g(), v("div", {
|
|
2383
|
-
key: 0,
|
|
2384
|
-
class: de([{ "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"])
|
|
2385
|
-
}, null, 2))
|
|
2386
|
-
]),
|
|
2387
|
-
_: 2
|
|
2388
|
-
}, 1024)
|
|
2389
|
-
]),
|
|
2390
|
-
l("div", l2, [
|
|
2391
|
-
m.telephone ? (g(), Ye(d, {
|
|
2392
|
-
key: 0,
|
|
2393
|
-
class: "dark:popper-light popper-dark",
|
|
2394
|
-
hover: !0,
|
|
2395
|
-
placement: "top"
|
|
2396
|
-
}, {
|
|
2397
|
-
content: Pe(() => [
|
|
2398
|
-
l("div", null, le(m.telephone ? `${m.telephone}` : ""), 1)
|
|
2399
|
-
]),
|
|
2400
|
-
default: Pe(() => [
|
|
2401
|
-
h[15] || (h[15] = l("svg", {
|
|
2402
|
-
class: "w-6 h-6",
|
|
2403
|
-
"aria-hidden": "true",
|
|
2322
|
+
Te(n).instances.length > 0 ? (g(!0), v(ze, { key: 0 }, Qe(Te(n).instances, (m, u) => {
|
|
2323
|
+
var p;
|
|
2324
|
+
return g(), v("li", Ks, [
|
|
2325
|
+
l("button", {
|
|
2326
|
+
class: de([i.value && i.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"]),
|
|
2327
|
+
onClick: (c) => (i.value = m, a.value = !1, s(m)),
|
|
2328
|
+
disabled: i.value && i.value.id === m.id || e.type && m.type !== e.type || e.webhooks !== void 0 && e.webhooks !== ((p = m.config) == null ? void 0 : p.webhooks)
|
|
2329
|
+
}, [
|
|
2330
|
+
l("div", e2, [
|
|
2331
|
+
m.type === "whatsapp-qrcode" ? (g(), v("svg", t2, h[10] || (h[10] = [
|
|
2332
|
+
l("path", { d: "M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z" }, null, -1)
|
|
2333
|
+
]))) : m.type === "whatsapp-api-official" ? (g(), v("div", n2, [
|
|
2334
|
+
h[12] || (h[12] = l("svg", {
|
|
2404
2335
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2405
|
-
width: "24",
|
|
2406
|
-
height: "24",
|
|
2407
2336
|
fill: "currentColor",
|
|
2408
|
-
|
|
2337
|
+
class: "w-4 h-4 flex-shrink-0 text-green-400",
|
|
2338
|
+
viewBox: "0 0 16 16"
|
|
2409
2339
|
}, [
|
|
2410
|
-
l("path", { d: "
|
|
2411
|
-
], -1))
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2340
|
+
l("path", { d: "M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z" })
|
|
2341
|
+
], -1)),
|
|
2342
|
+
(g(), v("svg", a2, h[11] || (h[11] = [
|
|
2343
|
+
l("path", {
|
|
2344
|
+
"fill-rule": "evenodd",
|
|
2345
|
+
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"
|
|
2346
|
+
}, null, -1)
|
|
2347
|
+
])))
|
|
2348
|
+
])) : J("", !0),
|
|
2349
|
+
Be(d, {
|
|
2350
|
+
class: "dark:popper-light popper-dark",
|
|
2351
|
+
hover: !0,
|
|
2352
|
+
placement: "top"
|
|
2353
|
+
}, {
|
|
2354
|
+
content: Pe(() => [
|
|
2355
|
+
l("span", null, le(e.type && m.type !== e.type ? "Não é possível utilizar esse tipo de Instância neste recurso" : e.webhooks === !0 ? "Essa instância está com o Atendimento desabilitado" : "Essa aplicação é somente para instâncias sem atendimento habilitado."), 1)
|
|
2356
|
+
]),
|
|
2357
|
+
default: Pe(() => {
|
|
2358
|
+
var c;
|
|
2359
|
+
return [
|
|
2360
|
+
e.type && m.type !== e.type || e.webhooks !== void 0 && e.webhooks !== ((c = m.config) == null ? void 0 : c.webhooks) ? (g(), v("svg", i2, h[13] || (h[13] = [
|
|
2361
|
+
l("path", {
|
|
2362
|
+
"fill-rule": "evenodd",
|
|
2363
|
+
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",
|
|
2364
|
+
"clip-rule": "evenodd"
|
|
2365
|
+
}, null, -1)
|
|
2366
|
+
]))) : J("", !0)
|
|
2367
|
+
];
|
|
2368
|
+
}),
|
|
2369
|
+
_: 2
|
|
2370
|
+
}, 1024),
|
|
2371
|
+
l("p", o2, le(m.name), 1),
|
|
2372
|
+
Be(d, {
|
|
2373
|
+
class: "dark:popper-light popper-dark",
|
|
2374
|
+
hover: !0,
|
|
2375
|
+
placement: "top"
|
|
2376
|
+
}, {
|
|
2377
|
+
content: Pe(() => [
|
|
2378
|
+
l("main", {
|
|
2379
|
+
class: de(["p-1 rounded px-3", { "bg-red-500": m.status === !1, "bg-green-500": m.status === !0, "bg-purple-500": m.status === "Offline" }])
|
|
2380
|
+
}, [
|
|
2381
|
+
l("div", r2, le(m.status === !0 ? "Conectada" : m.status === !1 ? "Desconectada" : "Indefinida"), 1)
|
|
2382
|
+
], 2)
|
|
2383
|
+
]),
|
|
2384
|
+
default: Pe(() => [
|
|
2385
|
+
m.isLoading ? (g(), v("div", s2, h[14] || (h[14] = [
|
|
2386
|
+
l("div", { class: "h-5 w-5 border-t-transparent border-solid animate-spin rounded-full border-white border-4" }, null, -1)
|
|
2387
|
+
]))) : (g(), v("div", {
|
|
2388
|
+
key: 0,
|
|
2389
|
+
class: de([{ "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"])
|
|
2390
|
+
}, null, 2))
|
|
2391
|
+
]),
|
|
2392
|
+
_: 2
|
|
2393
|
+
}, 1024)
|
|
2394
|
+
]),
|
|
2395
|
+
l("div", l2, [
|
|
2396
|
+
m.telephone ? (g(), Ye(d, {
|
|
2397
|
+
key: 0,
|
|
2398
|
+
class: "dark:popper-light popper-dark",
|
|
2399
|
+
hover: !0,
|
|
2400
|
+
placement: "top"
|
|
2401
|
+
}, {
|
|
2402
|
+
content: Pe(() => [
|
|
2403
|
+
l("div", null, le(m.telephone ? `${m.telephone}` : ""), 1)
|
|
2404
|
+
]),
|
|
2405
|
+
default: Pe(() => [
|
|
2406
|
+
h[15] || (h[15] = l("svg", {
|
|
2407
|
+
class: "w-6 h-6",
|
|
2408
|
+
"aria-hidden": "true",
|
|
2409
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2410
|
+
width: "24",
|
|
2411
|
+
height: "24",
|
|
2412
|
+
fill: "currentColor",
|
|
2413
|
+
viewBox: "0 0 24 24"
|
|
2414
|
+
}, [
|
|
2415
|
+
l("path", { d: "M7.978 4a2.553 2.553 0 0 0-1.926.877C4.233 6.7 3.699 8.751 4.153 10.814c.44 1.995 1.778 3.893 3.456 5.572 1.68 1.679 3.577 3.018 5.57 3.459 2.062.456 4.115-.073 5.94-1.885a2.556 2.556 0 0 0 .001-3.861l-1.21-1.21a2.689 2.689 0 0 0-3.802 0l-.617.618a.806.806 0 0 1-1.14 0l-1.854-1.855a.807.807 0 0 1 0-1.14l.618-.62a2.692 2.692 0 0 0 0-3.803l-1.21-1.211A2.555 2.555 0 0 0 7.978 4Z" })
|
|
2416
|
+
], -1))
|
|
2417
|
+
]),
|
|
2418
|
+
_: 2,
|
|
2419
|
+
__: [15]
|
|
2420
|
+
}, 1024)) : J("", !0)
|
|
2421
|
+
])
|
|
2422
|
+
], 10, Js)
|
|
2423
|
+
]);
|
|
2424
|
+
}), 256)) : (g(), v("div", c2, " Sem instâncias disponíveis"))
|
|
2419
2425
|
])
|
|
2420
2426
|
])) : J("", !0)
|
|
2421
2427
|
]);
|
|
@@ -11821,7 +11827,7 @@ f0("CapacitorHttp", {
|
|
|
11821
11827
|
web: () => new F6()
|
|
11822
11828
|
});
|
|
11823
11829
|
const Zt = f0("VoiceRecorder", {
|
|
11824
|
-
web: () => import("./web-
|
|
11830
|
+
web: () => import("./web-YgFsZ6dy.js").then((e) => e.w).then((e) => new e.VoiceRecorderWeb())
|
|
11825
11831
|
});
|
|
11826
11832
|
function wa(e, t) {
|
|
11827
11833
|
return g(), v("svg", {
|