@tmsoft/webphone 3.0.22 → 3.0.23
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/webphone.component.js +18 -18
- package/dist/webphone.es.js +76 -45
- package/dist/webphone.umd.js +2 -2
- package/package.json +1 -1
package/dist/webphone.es.js
CHANGED
|
@@ -8753,14 +8753,20 @@ const createSipService = (e, t = {}) => {
|
|
|
8753
8753
|
B(o, e.channels.value.find((e) => e.id === t)), $(o);
|
|
8754
8754
|
} else tm();
|
|
8755
8755
|
}, Xp = (t) => {
|
|
8756
|
+
if (!/^[0-9*#]$/.test(t)) return;
|
|
8756
8757
|
let n = a.value.get(e.activeChannelId.value);
|
|
8757
8758
|
if (n?.state !== SessionState.Established) return;
|
|
8758
|
-
let i =
|
|
8759
|
+
let i = n.sessionDescriptionHandler?.peerConnection?.getSenders().find((e) => e.track?.kind === "audio")?.dtmf;
|
|
8760
|
+
if (i?.canInsertDTMF) {
|
|
8761
|
+
i.insertDTMF(t, 160, 70);
|
|
8762
|
+
return;
|
|
8763
|
+
}
|
|
8764
|
+
let o = { requestOptions: { body: {
|
|
8759
8765
|
content: `Signal=${t}\r\nDuration=160`,
|
|
8760
8766
|
contentType: "application/dtmf-relay",
|
|
8761
8767
|
contentDisposition: "signal"
|
|
8762
8768
|
} } };
|
|
8763
|
-
n.info(
|
|
8769
|
+
n.info(o);
|
|
8764
8770
|
}, Zp = (t, n) => {
|
|
8765
8771
|
let i = e.channels.value.find((e) => e.id === t);
|
|
8766
8772
|
!i || i.status !== "connected" || ($(n), B(n, i), Wp(n), o.play().catch(() => {}));
|
|
@@ -15409,6 +15415,7 @@ var _hoisted_1$17 = {
|
|
|
15409
15415
|
Object,
|
|
15410
15416
|
Array
|
|
15411
15417
|
] },
|
|
15418
|
+
type: { default: "button" },
|
|
15412
15419
|
asChild: { type: Boolean },
|
|
15413
15420
|
as: { default: "button" }
|
|
15414
15421
|
},
|
|
@@ -15418,6 +15425,7 @@ var _hoisted_1$17 = {
|
|
|
15418
15425
|
"data-slot": "button",
|
|
15419
15426
|
as: e.as,
|
|
15420
15427
|
"as-child": e.asChild,
|
|
15428
|
+
type: e.as === "button" ? e.type : void 0,
|
|
15421
15429
|
class: normalizeClass(unref(cn)(unref(buttonVariants)({
|
|
15422
15430
|
variant: e.variant,
|
|
15423
15431
|
size: e.size
|
|
@@ -15428,6 +15436,7 @@ var _hoisted_1$17 = {
|
|
|
15428
15436
|
}, 8, [
|
|
15429
15437
|
"as",
|
|
15430
15438
|
"as-child",
|
|
15439
|
+
"type",
|
|
15431
15440
|
"class"
|
|
15432
15441
|
]));
|
|
15433
15442
|
}
|
|
@@ -15473,10 +15482,11 @@ var _hoisted_1$15 = { class: "webphone-keypad wp:grid wp:grid-cols-3 wp:gap-y-3
|
|
|
15473
15482
|
"0",
|
|
15474
15483
|
"#"
|
|
15475
15484
|
], s = (e) => {
|
|
15476
|
-
a(e), t.callStatus === "connected"
|
|
15485
|
+
a(e), t.callStatus === "connected" && i(e), t.appendKeypad(e);
|
|
15477
15486
|
};
|
|
15478
15487
|
return (e, t) => (openBlock(), createElementBlock("div", _hoisted_1$15, [(openBlock(), createElementBlock(Fragment, null, renderList(o, (e) => createVNode(unref(Button_default), {
|
|
15479
15488
|
key: e,
|
|
15489
|
+
type: "button",
|
|
15480
15490
|
onClick: (t) => s(e),
|
|
15481
15491
|
variant: "ghost",
|
|
15482
15492
|
size: "icon",
|
|
@@ -15871,63 +15881,78 @@ var IconDelete_default = { render: render$1 }, _hoisted_1$7 = ["data-call-status
|
|
|
15871
15881
|
"cancelTransfer"
|
|
15872
15882
|
],
|
|
15873
15883
|
setup(e, { emit: t }) {
|
|
15874
|
-
let i = inject("webphone"), { makeCall: a, hangupCall: o, answerCall: p, toggleMute: _, toggleHold: v } = inject("sip"),
|
|
15884
|
+
let i = inject("webphone"), { makeCall: a, hangupCall: o, answerCall: p, toggleMute: _, toggleHold: v, sendDTMF: y } = inject("sip"), b = /^[0-9*#]+$/, x = (e) => {
|
|
15885
|
+
if (b.test(e)) {
|
|
15886
|
+
for (let t of e) y(t);
|
|
15887
|
+
for (let t of e) i.appendKeypad(t);
|
|
15888
|
+
}
|
|
15889
|
+
}, S = (e) => {
|
|
15890
|
+
e.ctrlKey || e.metaKey || e.altKey || e.key.length !== 1 || (e.preventDefault(), e.stopPropagation(), x(e.key));
|
|
15891
|
+
}, T = (e) => {
|
|
15892
|
+
e.data && (e.preventDefault(), e.stopPropagation(), x(e.data));
|
|
15893
|
+
}, E = (e) => {
|
|
15894
|
+
e.preventDefault(), e.stopPropagation(), x(e.clipboardData?.getData("text").replace(/\s/g, "") || "");
|
|
15895
|
+
};
|
|
15896
|
+
watch(() => i.callStatus, (e, t) => {
|
|
15897
|
+
e === "connected" && t !== "connected" && i.clearKeypad();
|
|
15898
|
+
});
|
|
15899
|
+
let D = e, O = t, k = computed(() => !!i.transferInProgress), j = computed(() => D.destination || i.keypadValue || i.lastDialedNumber || ""), M = computed(() => !!D.destination || /^[+]?[0-9*#]+$/.test(i.keypadValue)), N = computed(() => M.value || !!i.lastDialedNumber), P = computed(() => !D.isVideo || !M.value ? !1 : j.value ? /^[0-9*#]{1,5}$/.test(j.value) : !0), F = async (e) => {
|
|
15875
15900
|
try {
|
|
15876
|
-
|
|
15901
|
+
D.destination ? await a(D.destination, e) : i.keypadValue ? await a(i.keypadValue, e) : i.lastDialedNumber && (i.keypadValue = i.lastDialedNumber);
|
|
15877
15902
|
} catch (t) {
|
|
15878
15903
|
if (console.error("Error initiating call:", t), e) {
|
|
15879
15904
|
let e = "No se pudo acceder a la cámara.", n = t instanceof Error ? t.name : String(t);
|
|
15880
|
-
n === "NotReadableError" ? e = "La cámara parece estar en uso por otra aplicación (ej: Zoom, Meet) o no se puede acceder al hardware." : n === "NotAllowedError" || n === "PermissionDeniedError" ? e = "Permiso de cámara denegado. Por favor, permita el acceso a la cámara." : n === "NotFoundError" ? e = "No se detectó ninguna cámara en el sistema." : e += " " + (t instanceof Error ? t.message : String(t)), confirm(`${e}\n\n¿Desea realizar la llamada solo con AUDIO?`) &&
|
|
15905
|
+
n === "NotReadableError" ? e = "La cámara parece estar en uso por otra aplicación (ej: Zoom, Meet) o no se puede acceder al hardware." : n === "NotAllowedError" || n === "PermissionDeniedError" ? e = "Permiso de cámara denegado. Por favor, permita el acceso a la cámara." : n === "NotFoundError" ? e = "No se detectó ninguna cámara en el sistema." : e += " " + (t instanceof Error ? t.message : String(t)), confirm(`${e}\n\n¿Desea realizar la llamada solo con AUDIO?`) && F(!1);
|
|
15881
15906
|
} else alert("Error al iniciar la llamada: " + (t instanceof Error ? t.message : String(t)));
|
|
15882
15907
|
}
|
|
15883
|
-
},
|
|
15884
|
-
if (
|
|
15885
|
-
|
|
15908
|
+
}, I = (e = !1) => {
|
|
15909
|
+
if (D.onAnswer) {
|
|
15910
|
+
D.onAnswer(e);
|
|
15886
15911
|
return;
|
|
15887
15912
|
}
|
|
15888
15913
|
p(e);
|
|
15889
|
-
},
|
|
15890
|
-
if (
|
|
15891
|
-
|
|
15914
|
+
}, L = () => {
|
|
15915
|
+
if (D.onHangup) {
|
|
15916
|
+
D.onHangup();
|
|
15892
15917
|
return;
|
|
15893
15918
|
}
|
|
15894
15919
|
o();
|
|
15895
|
-
},
|
|
15896
|
-
if (
|
|
15897
|
-
|
|
15920
|
+
}, z = () => {
|
|
15921
|
+
if (D.onReject) {
|
|
15922
|
+
D.onReject();
|
|
15898
15923
|
return;
|
|
15899
15924
|
}
|
|
15900
15925
|
o();
|
|
15901
|
-
},
|
|
15926
|
+
}, B = computed(() => {
|
|
15902
15927
|
let e = {};
|
|
15903
15928
|
return i.channels.forEach((t) => {
|
|
15904
15929
|
let n = t.status === "connected" || t.status === "calling" || t.status === "incoming";
|
|
15905
15930
|
e[t.id] = n ? "wp:text-[var(--color-red)]" : "wp:text-[var(--color-avaible)]";
|
|
15906
15931
|
}), e;
|
|
15907
|
-
}),
|
|
15932
|
+
}), Up = computed(() => B.value[i.activeChannelId] ?? "wp:text-[var(--p-primary-color)]");
|
|
15908
15933
|
return (e, t) => (openBlock(), createElementBlock("div", {
|
|
15909
15934
|
class: "webphone-actions wp:flex wp:justify-center wp:items-center wp:gap-2 wp:px-4 wp:relative wp:mb-4",
|
|
15910
15935
|
"data-call-status": unref(i).callStatus
|
|
15911
15936
|
}, [
|
|
15912
|
-
unref(i).callStatus === "idle" ? (openBlock(), createElementBlock("div", _hoisted_2$5, [
|
|
15937
|
+
unref(i).callStatus === "idle" ? (openBlock(), createElementBlock("div", _hoisted_2$5, [N.value ? (openBlock(), createBlock(unref(Button_default), {
|
|
15913
15938
|
key: 0,
|
|
15914
15939
|
variant: "default",
|
|
15915
15940
|
size: "icon",
|
|
15916
|
-
onClick: t[0] ||= (e) =>
|
|
15941
|
+
onClick: t[0] ||= (e) => F(!1),
|
|
15917
15942
|
"aria-label": "Audio Call",
|
|
15918
15943
|
class: "webphone-actions__button webphone-actions__button--call wp:w-full wp:px-4 wp:border-0 wp:bg-gradient-to-r wp:from-[color:var(--p-primary-color)]/80 wp:to-[color:var(--p-primary-color)]/100 wp:hover:from-[color:var(--p-primary-color)]/75 wp:hover:to-[color:var(--p-primary-color)]"
|
|
15919
15944
|
}, {
|
|
15920
|
-
default: withCtx(() => [createVNode(unref(phone_call_icon_default), { class: "webphone-actions__button-icon wp:size-7 wp:text-white" }), t[
|
|
15945
|
+
default: withCtx(() => [createVNode(unref(phone_call_icon_default), { class: "webphone-actions__button-icon wp:size-7 wp:text-white" }), t[12] ||= createElementVNode("span", { class: "webphone-actions__button-label wp:w-full wp:text-white wp:text-xs" }, "Llamar", -1)]),
|
|
15921
15946
|
_: 1
|
|
15922
|
-
})) : createCommentVNode("", !0),
|
|
15947
|
+
})) : createCommentVNode("", !0), P.value ? (openBlock(), createBlock(unref(Button_default), {
|
|
15923
15948
|
key: 1,
|
|
15924
15949
|
variant: "outline",
|
|
15925
15950
|
size: "icon",
|
|
15926
|
-
onClick: t[1] ||= (e) =>
|
|
15951
|
+
onClick: t[1] ||= (e) => F(!0),
|
|
15927
15952
|
"aria-label": "Video Call",
|
|
15928
15953
|
class: "webphone-actions__button webphone-actions__button--video wp:w-full wp:px-4 wp:bg-transparent wp:border wp:border-primary wp:hover:bg-[var(--p-primary-color)]/8"
|
|
15929
15954
|
}, {
|
|
15930
|
-
default: withCtx(() => [createVNode(unref(videocall_icon_default), { class: normalizeClass(["webphone-actions__button-icon wp:size-6 wp:text-primary wp:dark:text-white",
|
|
15955
|
+
default: withCtx(() => [createVNode(unref(videocall_icon_default), { class: normalizeClass(["webphone-actions__button-icon wp:size-6 wp:text-primary wp:dark:text-white", Up.value]) }, null, 8, ["class"]), t[13] ||= createElementVNode("span", { class: "webphone-actions__button-label wp:w-full wp:text-primary wp:text-xs wp:dark:text-white" }, " Video llamada a extensiones ", -1)]),
|
|
15931
15956
|
_: 1
|
|
15932
15957
|
})) : createCommentVNode("", !0)])) : createCommentVNode("", !0),
|
|
15933
15958
|
unref(i).callStatus === "incoming" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
@@ -15935,7 +15960,7 @@ var IconDelete_default = { render: render$1 }, _hoisted_1$7 = ["data-call-status
|
|
|
15935
15960
|
key: 0,
|
|
15936
15961
|
variant: "default",
|
|
15937
15962
|
size: "icon",
|
|
15938
|
-
onClick: t[2] ||= (e) =>
|
|
15963
|
+
onClick: t[2] ||= (e) => I(!0),
|
|
15939
15964
|
class: "webphone-actions__button webphone-actions__button--answer-video wp:animate-pulse wp:w-12 wp:h-12 wp:rounded-full wp:bg-transparent wp:hover:bg-[var(--p-primary-color)]/10",
|
|
15940
15965
|
"aria-label": "Answer Video"
|
|
15941
15966
|
}, {
|
|
@@ -15945,7 +15970,7 @@ var IconDelete_default = { render: render$1 }, _hoisted_1$7 = ["data-call-status
|
|
|
15945
15970
|
createVNode(unref(Button_default), {
|
|
15946
15971
|
variant: "default",
|
|
15947
15972
|
size: "icon",
|
|
15948
|
-
onClick: t[3] ||= (e) =>
|
|
15973
|
+
onClick: t[3] ||= (e) => I(!1),
|
|
15949
15974
|
class: "webphone-actions__button webphone-actions__button--answer wp:animate-pulse wp:w-12 wp:h-12 wp:rounded-full wp:border-0 wp:bg-status-available wp:hover:bg-status-available/90",
|
|
15950
15975
|
"aria-label": "Answer"
|
|
15951
15976
|
}, {
|
|
@@ -15955,7 +15980,7 @@ var IconDelete_default = { render: render$1 }, _hoisted_1$7 = ["data-call-status
|
|
|
15955
15980
|
createVNode(unref(Button_default), {
|
|
15956
15981
|
variant: "destructive",
|
|
15957
15982
|
size: "icon",
|
|
15958
|
-
onClick:
|
|
15983
|
+
onClick: z,
|
|
15959
15984
|
"aria-label": "Reject",
|
|
15960
15985
|
class: "webphone-actions__button webphone-actions__button--hangup webphone-actions__button--reject wp:w-12 wp:h-12 wp:rounded-full wp:border-0 wp:bg-gradient-to-r wp:from-destructive/60 wp:to-destructive/90 wp:hover:from-destructive/70 wp:hover:to-destructive/95"
|
|
15961
15986
|
}, {
|
|
@@ -15997,11 +16022,11 @@ var IconDelete_default = { render: render$1 }, _hoisted_1$7 = ["data-call-status
|
|
|
15997
16022
|
}))]),
|
|
15998
16023
|
_: 1
|
|
15999
16024
|
}, 8, ["variant", "onClick"]),
|
|
16000
|
-
|
|
16025
|
+
k.value ? createCommentVNode("", !0) : (openBlock(), createBlock(unref(Button_default), {
|
|
16001
16026
|
key: 0,
|
|
16002
16027
|
variant: "secondary",
|
|
16003
16028
|
size: "icon",
|
|
16004
|
-
onClick: t[4] ||= (e) =>
|
|
16029
|
+
onClick: t[4] ||= (e) => O("transfer"),
|
|
16005
16030
|
"aria-label": "Transfer",
|
|
16006
16031
|
class: "webphone-actions__button webphone-actions__button--transfer wp:w-12 wp:h-12 wp:rounded-full wp:bg-primary/10 wp:hover:bg-[var(--p-primary-color)]/20"
|
|
16007
16032
|
}, {
|
|
@@ -16027,14 +16052,20 @@ var IconDelete_default = { render: render$1 }, _hoisted_1$7 = ["data-call-status
|
|
|
16027
16052
|
_: 1
|
|
16028
16053
|
}, 8, ["aria-label"]),
|
|
16029
16054
|
createVNode(unref(Input_default), {
|
|
16030
|
-
|
|
16031
|
-
|
|
16032
|
-
|
|
16055
|
+
"model-value": unref(i).keypadValue,
|
|
16056
|
+
type: "text",
|
|
16057
|
+
inputmode: "tel",
|
|
16058
|
+
pattern: "[0-9*#]*",
|
|
16059
|
+
placeholder: "Marcar opción (0-9, * o #)...",
|
|
16060
|
+
"aria-label": "Tonos de marcación",
|
|
16061
|
+
onKeydown: S,
|
|
16062
|
+
onBeforeinput: T,
|
|
16063
|
+
onPaste: E,
|
|
16033
16064
|
class: "p-input webphone-actions__input wp:h-10 wp:text-center wp:select-text wp:px-14 wp:text-base hover:wp:border-[var(--p-primary-color)] wp:dark:hover:bg-neutral-900 focus-visible:wp:border-[var(--p-primary-color)] focus-visible:wp:ring-2 montserrat"
|
|
16034
|
-
}, null, 8, ["
|
|
16065
|
+
}, null, 8, ["model-value"]),
|
|
16035
16066
|
createElementVNode("div", {
|
|
16036
16067
|
class: "webphone-actions__backspace wp:absolute wp:right-1 wp:top-1/2 wp:-translate-y-1/2 wp:z-10 wp:flex wp:h-8 wp:w-8 wp:cursor-pointer wp:items-center wp:justify-center wp:hover:bg-accent wp:rounded-full",
|
|
16037
|
-
onClick: t[
|
|
16068
|
+
onClick: t[6] ||= withModifiers((e) => unref(i).backspaceKeypad(), ["stop"])
|
|
16038
16069
|
}, [createVNode(unref(IconDelete_default), { class: "webphone-actions__backspace-icon wp:w-[16px] wp:h-[16px] wp:text-black wp:hover:text-status-disconnected wp:dark:text-neutral-500 wp:dark:hover:text-status-disconnected wp:transition-colors" })])
|
|
16039
16070
|
]),
|
|
16040
16071
|
createElementVNode("div", {
|
|
@@ -16043,11 +16074,11 @@ var IconDelete_default = { render: render$1 }, _hoisted_1$7 = ["data-call-status
|
|
|
16043
16074
|
}, [createVNode(KeyPad_default)], 10, _hoisted_6$5),
|
|
16044
16075
|
createVNode(unref(Button_default), {
|
|
16045
16076
|
size: "icon",
|
|
16046
|
-
onClick:
|
|
16077
|
+
onClick: L,
|
|
16047
16078
|
"aria-label": "Hangup",
|
|
16048
16079
|
class: "webphone-actions__button webphone-actions__button--hangup wp:w-full wp:px-4 wp:border-0 wp:bg-gradient-to-r wp:from-destructive/60 wp:to-destructive/90 wp:hover:from-destructive/70 wp:hover:to-destructive/95"
|
|
16049
16080
|
}, {
|
|
16050
|
-
default: withCtx(() => [createVNode(unref(phone_off_icon_default), { class: "webphone-actions__button-icon wp:size-6 wp:text-white" }), t[
|
|
16081
|
+
default: withCtx(() => [createVNode(unref(phone_off_icon_default), { class: "webphone-actions__button-icon wp:size-6 wp:text-white" }), t[14] ||= createElementVNode("span", { class: "webphone-actions__button-label wp:w-full wp:text-white wp:text-xs" }, "Colgar", -1)]),
|
|
16051
16082
|
_: 1
|
|
16052
16083
|
})
|
|
16053
16084
|
])) : createCommentVNode("", !0),
|
|
@@ -16056,7 +16087,7 @@ var IconDelete_default = { render: render$1 }, _hoisted_1$7 = ["data-call-status
|
|
|
16056
16087
|
createVNode(unref(Button_default), {
|
|
16057
16088
|
variant: "ghost",
|
|
16058
16089
|
size: "icon",
|
|
16059
|
-
onClick: t[
|
|
16090
|
+
onClick: t[7] ||= (e) => unref(i).toggleKeypad(),
|
|
16060
16091
|
"aria-label": unref(i).isKeypadVisible ? "Ocultar teclado" : "Mostrar teclado",
|
|
16061
16092
|
class: "webphone-actions__keypad-toggle wp:absolute wp:left-0.5 wp:top-1/2 wp:-translate-y-1/2 wp:z-10 wp:h-9 wp:w-9 wp:rounded-full wp:text-[var(--p-primary-color)] wp:hover:opacity-80"
|
|
16062
16093
|
}, {
|
|
@@ -16071,13 +16102,13 @@ var IconDelete_default = { render: render$1 }, _hoisted_1$7 = ["data-call-status
|
|
|
16071
16102
|
}, 8, ["aria-label"]),
|
|
16072
16103
|
createVNode(unref(Input_default), {
|
|
16073
16104
|
modelValue: unref(i).keypadValue,
|
|
16074
|
-
"onUpdate:modelValue": t[
|
|
16105
|
+
"onUpdate:modelValue": t[8] ||= (e) => unref(i).keypadValue = e,
|
|
16075
16106
|
placeholder: "Ingresa el numero a llamar...",
|
|
16076
16107
|
class: "p-input webphone-actions__input wp:h-10 wp:text-center wp:select-text wp:px-14 wp:text-base hover:wp:border-[var(--p-primary-color)] wp:dark:hover:bg-neutral-900 focus-visible:wp:border-[var(--p-primary-color)] focus-visible:wp:ring-2 montserrat"
|
|
16077
16108
|
}, null, 8, ["modelValue"]),
|
|
16078
16109
|
createElementVNode("div", {
|
|
16079
16110
|
class: "webphone-actions__backspace wp:absolute wp:right-1 wp:top-1/2 wp:-translate-y-1/2 wp:z-10 wp:flex wp:h-8 wp:w-8 wp:cursor-pointer wp:items-center wp:justify-center wp:hover:bg-accent wp:rounded-full",
|
|
16080
|
-
onClick: t[
|
|
16111
|
+
onClick: t[9] ||= withModifiers((e) => unref(i).backspaceKeypad(), ["stop"])
|
|
16081
16112
|
}, [createVNode(unref(IconDelete_default), { class: "webphone-actions__backspace-icon wp:w-[16px] wp:h-[16px] wp:text-black wp:hover:text-status-disconnected wp:dark:text-neutral-500 wp:dark:hover:text-status-disconnected wp:transition-colors" })])
|
|
16082
16113
|
]),
|
|
16083
16114
|
createElementVNode("div", {
|
|
@@ -16087,29 +16118,29 @@ var IconDelete_default = { render: render$1 }, _hoisted_1$7 = ["data-call-status
|
|
|
16087
16118
|
createVNode(unref(Button_default), {
|
|
16088
16119
|
variant: "destructive",
|
|
16089
16120
|
size: "lg",
|
|
16090
|
-
onClick:
|
|
16121
|
+
onClick: L,
|
|
16091
16122
|
"aria-label": "Cancel",
|
|
16092
16123
|
class: "webphone-actions__button webphone-actions__button--hangup webphone-actions__button--cancel wp:w-full wp:px-4 wp:border-0 wp:bg-gradient-to-r wp:from-destructive/60 wp:to-destructive/90 wp:hover:from-destructive/70 wp:hover:to-destructive/95"
|
|
16093
16124
|
}, {
|
|
16094
|
-
default: withCtx(() => [createVNode(unref(phone_off_icon_default), { class: "webphone-actions__button-icon wp:size-6 wp:text-white" }), t[
|
|
16125
|
+
default: withCtx(() => [createVNode(unref(phone_off_icon_default), { class: "webphone-actions__button-icon wp:size-6 wp:text-white" }), t[15] ||= createElementVNode("span", { class: "webphone-actions__button-label wp:w-full wp:text-white" }, "Colgar", -1)]),
|
|
16095
16126
|
_: 1
|
|
16096
16127
|
})
|
|
16097
16128
|
])) : createCommentVNode("", !0),
|
|
16098
|
-
|
|
16129
|
+
k.value && unref(i).callStatus === "connected" ? (openBlock(), createElementBlock("div", _hoisted_10$4, [createVNode(unref(Button_default), {
|
|
16099
16130
|
variant: "default",
|
|
16100
16131
|
size: "sm",
|
|
16101
|
-
onClick: t[
|
|
16132
|
+
onClick: t[10] ||= (e) => O("completeTransfer"),
|
|
16102
16133
|
class: "webphone-actions__button webphone-actions__button--complete-transfer wp:gap-2 wp:bg-status-available wp:hover:bg-status-available/90 wp:text-white"
|
|
16103
16134
|
}, {
|
|
16104
|
-
default: withCtx(() => [createVNode(unref(Check), { class: "wp:w-4 wp:h-4" }), t[
|
|
16135
|
+
default: withCtx(() => [createVNode(unref(Check), { class: "wp:w-4 wp:h-4" }), t[16] ||= createTextVNode(" Completar Transferencia ", -1)]),
|
|
16105
16136
|
_: 1
|
|
16106
16137
|
}), createVNode(unref(Button_default), {
|
|
16107
16138
|
variant: "destructive",
|
|
16108
16139
|
size: "sm",
|
|
16109
|
-
onClick: t[
|
|
16140
|
+
onClick: t[11] ||= (e) => O("cancelTransfer"),
|
|
16110
16141
|
class: "webphone-actions__button webphone-actions__button--cancel-transfer wp:gap-2"
|
|
16111
16142
|
}, {
|
|
16112
|
-
default: withCtx(() => [createVNode(unref(X), { class: "wp:w-4 wp:h-4" }), t[
|
|
16143
|
+
default: withCtx(() => [createVNode(unref(X), { class: "wp:w-4 wp:h-4" }), t[17] ||= createTextVNode(" Cancelar ", -1)]),
|
|
16113
16144
|
_: 1
|
|
16114
16145
|
})])) : createCommentVNode("", !0)
|
|
16115
16146
|
], 8, _hoisted_1$7));
|