@tmsoft/webphone 3.0.19 → 3.0.20
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/README.md +58 -0
- package/dist/webphone.component.js +20 -20
- package/dist/webphone.es.js +176 -166
- package/dist/webphone.umd.js +10 -10
- package/package.json +1 -1
package/dist/webphone.es.js
CHANGED
|
@@ -7058,35 +7058,35 @@ var concatArrays = (e, t) => {
|
|
|
7058
7058
|
"y",
|
|
7059
7059
|
"space",
|
|
7060
7060
|
"round"
|
|
7061
|
-
] }],
|
|
7061
|
+
] }], Gp = () => [
|
|
7062
7062
|
"auto",
|
|
7063
7063
|
"cover",
|
|
7064
7064
|
"contain",
|
|
7065
7065
|
isArbitraryVariableSize,
|
|
7066
7066
|
isArbitrarySize,
|
|
7067
7067
|
{ size: [isArbitraryVariable, isArbitraryValue] }
|
|
7068
|
-
],
|
|
7068
|
+
], V = () => [
|
|
7069
7069
|
isPercent,
|
|
7070
7070
|
isArbitraryVariableLength,
|
|
7071
7071
|
isArbitraryLength
|
|
7072
|
-
],
|
|
7072
|
+
], H = () => [
|
|
7073
7073
|
"",
|
|
7074
7074
|
"none",
|
|
7075
7075
|
"full",
|
|
7076
7076
|
d,
|
|
7077
7077
|
isArbitraryVariable,
|
|
7078
7078
|
isArbitraryValue
|
|
7079
|
-
],
|
|
7079
|
+
], U = () => [
|
|
7080
7080
|
"",
|
|
7081
7081
|
isNumber,
|
|
7082
7082
|
isArbitraryVariableLength,
|
|
7083
7083
|
isArbitraryLength
|
|
7084
|
-
],
|
|
7084
|
+
], Kp = () => [
|
|
7085
7085
|
"solid",
|
|
7086
7086
|
"dashed",
|
|
7087
7087
|
"dotted",
|
|
7088
7088
|
"double"
|
|
7089
|
-
],
|
|
7089
|
+
], qp = () => [
|
|
7090
7090
|
"normal",
|
|
7091
7091
|
"multiply",
|
|
7092
7092
|
"screen",
|
|
@@ -7103,32 +7103,32 @@ var concatArrays = (e, t) => {
|
|
|
7103
7103
|
"saturation",
|
|
7104
7104
|
"color",
|
|
7105
7105
|
"luminosity"
|
|
7106
|
-
],
|
|
7106
|
+
], W = () => [
|
|
7107
7107
|
isNumber,
|
|
7108
7108
|
isPercent,
|
|
7109
7109
|
isArbitraryVariablePosition,
|
|
7110
7110
|
isArbitraryPosition
|
|
7111
|
-
],
|
|
7111
|
+
], Jp = () => [
|
|
7112
7112
|
"",
|
|
7113
7113
|
"none",
|
|
7114
7114
|
_,
|
|
7115
7115
|
isArbitraryVariable,
|
|
7116
7116
|
isArbitraryValue
|
|
7117
|
-
],
|
|
7117
|
+
], G = () => [
|
|
7118
7118
|
"none",
|
|
7119
7119
|
isNumber,
|
|
7120
7120
|
isArbitraryVariable,
|
|
7121
7121
|
isArbitraryValue
|
|
7122
|
-
],
|
|
7122
|
+
], K = () => [
|
|
7123
7123
|
"none",
|
|
7124
7124
|
isNumber,
|
|
7125
7125
|
isArbitraryVariable,
|
|
7126
7126
|
isArbitraryValue
|
|
7127
|
-
],
|
|
7127
|
+
], q = () => [
|
|
7128
7128
|
isNumber,
|
|
7129
7129
|
isArbitraryVariable,
|
|
7130
7130
|
isArbitraryValue
|
|
7131
|
-
],
|
|
7131
|
+
], J = () => [
|
|
7132
7132
|
isFraction,
|
|
7133
7133
|
"full",
|
|
7134
7134
|
...O()
|
|
@@ -7537,7 +7537,7 @@ var concatArrays = (e, t) => {
|
|
|
7537
7537
|
"line-through",
|
|
7538
7538
|
"no-underline"
|
|
7539
7539
|
],
|
|
7540
|
-
"text-decoration-style": [{ decoration: [...
|
|
7540
|
+
"text-decoration-style": [{ decoration: [...Kp(), "wavy"] }],
|
|
7541
7541
|
"text-decoration-thickness": [{ decoration: [
|
|
7542
7542
|
isNumber,
|
|
7543
7543
|
"from-font",
|
|
@@ -7629,7 +7629,7 @@ var concatArrays = (e, t) => {
|
|
|
7629
7629
|
] }],
|
|
7630
7630
|
"bg-position": [{ bg: Wp() }],
|
|
7631
7631
|
"bg-repeat": [{ bg: B() }],
|
|
7632
|
-
"bg-size": [{ bg:
|
|
7632
|
+
"bg-size": [{ bg: Gp() }],
|
|
7633
7633
|
"bg-image": [{ bg: [
|
|
7634
7634
|
"none",
|
|
7635
7635
|
{
|
|
@@ -7663,49 +7663,49 @@ var concatArrays = (e, t) => {
|
|
|
7663
7663
|
isArbitraryImage
|
|
7664
7664
|
] }],
|
|
7665
7665
|
"bg-color": [{ bg: z() }],
|
|
7666
|
-
"gradient-from-pos": [{ from:
|
|
7667
|
-
"gradient-via-pos": [{ via:
|
|
7668
|
-
"gradient-to-pos": [{ to:
|
|
7666
|
+
"gradient-from-pos": [{ from: V() }],
|
|
7667
|
+
"gradient-via-pos": [{ via: V() }],
|
|
7668
|
+
"gradient-to-pos": [{ to: V() }],
|
|
7669
7669
|
"gradient-from": [{ from: z() }],
|
|
7670
7670
|
"gradient-via": [{ via: z() }],
|
|
7671
7671
|
"gradient-to": [{ to: z() }],
|
|
7672
|
-
rounded: [{ rounded:
|
|
7673
|
-
"rounded-s": [{ "rounded-s":
|
|
7674
|
-
"rounded-e": [{ "rounded-e":
|
|
7675
|
-
"rounded-t": [{ "rounded-t":
|
|
7676
|
-
"rounded-r": [{ "rounded-r":
|
|
7677
|
-
"rounded-b": [{ "rounded-b":
|
|
7678
|
-
"rounded-l": [{ "rounded-l":
|
|
7679
|
-
"rounded-ss": [{ "rounded-ss":
|
|
7680
|
-
"rounded-se": [{ "rounded-se":
|
|
7681
|
-
"rounded-ee": [{ "rounded-ee":
|
|
7682
|
-
"rounded-es": [{ "rounded-es":
|
|
7683
|
-
"rounded-tl": [{ "rounded-tl":
|
|
7684
|
-
"rounded-tr": [{ "rounded-tr":
|
|
7685
|
-
"rounded-br": [{ "rounded-br":
|
|
7686
|
-
"rounded-bl": [{ "rounded-bl":
|
|
7687
|
-
"border-w": [{ border:
|
|
7688
|
-
"border-w-x": [{ "border-x":
|
|
7689
|
-
"border-w-y": [{ "border-y":
|
|
7690
|
-
"border-w-s": [{ "border-s":
|
|
7691
|
-
"border-w-e": [{ "border-e":
|
|
7692
|
-
"border-w-bs": [{ "border-bs":
|
|
7693
|
-
"border-w-be": [{ "border-be":
|
|
7694
|
-
"border-w-t": [{ "border-t":
|
|
7695
|
-
"border-w-r": [{ "border-r":
|
|
7696
|
-
"border-w-b": [{ "border-b":
|
|
7697
|
-
"border-w-l": [{ "border-l":
|
|
7698
|
-
"divide-x": [{ "divide-x":
|
|
7672
|
+
rounded: [{ rounded: H() }],
|
|
7673
|
+
"rounded-s": [{ "rounded-s": H() }],
|
|
7674
|
+
"rounded-e": [{ "rounded-e": H() }],
|
|
7675
|
+
"rounded-t": [{ "rounded-t": H() }],
|
|
7676
|
+
"rounded-r": [{ "rounded-r": H() }],
|
|
7677
|
+
"rounded-b": [{ "rounded-b": H() }],
|
|
7678
|
+
"rounded-l": [{ "rounded-l": H() }],
|
|
7679
|
+
"rounded-ss": [{ "rounded-ss": H() }],
|
|
7680
|
+
"rounded-se": [{ "rounded-se": H() }],
|
|
7681
|
+
"rounded-ee": [{ "rounded-ee": H() }],
|
|
7682
|
+
"rounded-es": [{ "rounded-es": H() }],
|
|
7683
|
+
"rounded-tl": [{ "rounded-tl": H() }],
|
|
7684
|
+
"rounded-tr": [{ "rounded-tr": H() }],
|
|
7685
|
+
"rounded-br": [{ "rounded-br": H() }],
|
|
7686
|
+
"rounded-bl": [{ "rounded-bl": H() }],
|
|
7687
|
+
"border-w": [{ border: U() }],
|
|
7688
|
+
"border-w-x": [{ "border-x": U() }],
|
|
7689
|
+
"border-w-y": [{ "border-y": U() }],
|
|
7690
|
+
"border-w-s": [{ "border-s": U() }],
|
|
7691
|
+
"border-w-e": [{ "border-e": U() }],
|
|
7692
|
+
"border-w-bs": [{ "border-bs": U() }],
|
|
7693
|
+
"border-w-be": [{ "border-be": U() }],
|
|
7694
|
+
"border-w-t": [{ "border-t": U() }],
|
|
7695
|
+
"border-w-r": [{ "border-r": U() }],
|
|
7696
|
+
"border-w-b": [{ "border-b": U() }],
|
|
7697
|
+
"border-w-l": [{ "border-l": U() }],
|
|
7698
|
+
"divide-x": [{ "divide-x": U() }],
|
|
7699
7699
|
"divide-x-reverse": ["divide-x-reverse"],
|
|
7700
|
-
"divide-y": [{ "divide-y":
|
|
7700
|
+
"divide-y": [{ "divide-y": U() }],
|
|
7701
7701
|
"divide-y-reverse": ["divide-y-reverse"],
|
|
7702
7702
|
"border-style": [{ border: [
|
|
7703
|
-
...
|
|
7703
|
+
...Kp(),
|
|
7704
7704
|
"hidden",
|
|
7705
7705
|
"none"
|
|
7706
7706
|
] }],
|
|
7707
7707
|
"divide-style": [{ divide: [
|
|
7708
|
-
...
|
|
7708
|
+
...Kp(),
|
|
7709
7709
|
"hidden",
|
|
7710
7710
|
"none"
|
|
7711
7711
|
] }],
|
|
@@ -7722,7 +7722,7 @@ var concatArrays = (e, t) => {
|
|
|
7722
7722
|
"border-color-l": [{ "border-l": z() }],
|
|
7723
7723
|
"divide-color": [{ divide: z() }],
|
|
7724
7724
|
"outline-style": [{ outline: [
|
|
7725
|
-
...
|
|
7725
|
+
...Kp(),
|
|
7726
7726
|
"none",
|
|
7727
7727
|
"hidden"
|
|
7728
7728
|
] }],
|
|
@@ -7753,12 +7753,12 @@ var concatArrays = (e, t) => {
|
|
|
7753
7753
|
isArbitraryShadow
|
|
7754
7754
|
] }],
|
|
7755
7755
|
"inset-shadow-color": [{ "inset-shadow": z() }],
|
|
7756
|
-
"ring-w": [{ ring:
|
|
7756
|
+
"ring-w": [{ ring: U() }],
|
|
7757
7757
|
"ring-w-inset": ["ring-inset"],
|
|
7758
7758
|
"ring-color": [{ ring: z() }],
|
|
7759
7759
|
"ring-offset-w": [{ "ring-offset": [isNumber, isArbitraryLength] }],
|
|
7760
7760
|
"ring-offset-color": [{ "ring-offset": z() }],
|
|
7761
|
-
"inset-ring-w": [{ "inset-ring":
|
|
7761
|
+
"inset-ring-w": [{ "inset-ring": U() }],
|
|
7762
7762
|
"inset-ring-color": [{ "inset-ring": z() }],
|
|
7763
7763
|
"text-shadow": [{ "text-shadow": [
|
|
7764
7764
|
"none",
|
|
@@ -7773,11 +7773,11 @@ var concatArrays = (e, t) => {
|
|
|
7773
7773
|
isArbitraryValue
|
|
7774
7774
|
] }],
|
|
7775
7775
|
"mix-blend": [{ "mix-blend": [
|
|
7776
|
-
...
|
|
7776
|
+
...qp(),
|
|
7777
7777
|
"plus-darker",
|
|
7778
7778
|
"plus-lighter"
|
|
7779
7779
|
] }],
|
|
7780
|
-
"bg-blend": [{ "bg-blend":
|
|
7780
|
+
"bg-blend": [{ "bg-blend": qp() }],
|
|
7781
7781
|
"mask-clip": [{ "mask-clip": [
|
|
7782
7782
|
"border",
|
|
7783
7783
|
"padding",
|
|
@@ -7793,37 +7793,37 @@ var concatArrays = (e, t) => {
|
|
|
7793
7793
|
"exclude"
|
|
7794
7794
|
] }],
|
|
7795
7795
|
"mask-image-linear-pos": [{ "mask-linear": [isNumber] }],
|
|
7796
|
-
"mask-image-linear-from-pos": [{ "mask-linear-from":
|
|
7797
|
-
"mask-image-linear-to-pos": [{ "mask-linear-to":
|
|
7796
|
+
"mask-image-linear-from-pos": [{ "mask-linear-from": W() }],
|
|
7797
|
+
"mask-image-linear-to-pos": [{ "mask-linear-to": W() }],
|
|
7798
7798
|
"mask-image-linear-from-color": [{ "mask-linear-from": z() }],
|
|
7799
7799
|
"mask-image-linear-to-color": [{ "mask-linear-to": z() }],
|
|
7800
|
-
"mask-image-t-from-pos": [{ "mask-t-from":
|
|
7801
|
-
"mask-image-t-to-pos": [{ "mask-t-to":
|
|
7800
|
+
"mask-image-t-from-pos": [{ "mask-t-from": W() }],
|
|
7801
|
+
"mask-image-t-to-pos": [{ "mask-t-to": W() }],
|
|
7802
7802
|
"mask-image-t-from-color": [{ "mask-t-from": z() }],
|
|
7803
7803
|
"mask-image-t-to-color": [{ "mask-t-to": z() }],
|
|
7804
|
-
"mask-image-r-from-pos": [{ "mask-r-from":
|
|
7805
|
-
"mask-image-r-to-pos": [{ "mask-r-to":
|
|
7804
|
+
"mask-image-r-from-pos": [{ "mask-r-from": W() }],
|
|
7805
|
+
"mask-image-r-to-pos": [{ "mask-r-to": W() }],
|
|
7806
7806
|
"mask-image-r-from-color": [{ "mask-r-from": z() }],
|
|
7807
7807
|
"mask-image-r-to-color": [{ "mask-r-to": z() }],
|
|
7808
|
-
"mask-image-b-from-pos": [{ "mask-b-from":
|
|
7809
|
-
"mask-image-b-to-pos": [{ "mask-b-to":
|
|
7808
|
+
"mask-image-b-from-pos": [{ "mask-b-from": W() }],
|
|
7809
|
+
"mask-image-b-to-pos": [{ "mask-b-to": W() }],
|
|
7810
7810
|
"mask-image-b-from-color": [{ "mask-b-from": z() }],
|
|
7811
7811
|
"mask-image-b-to-color": [{ "mask-b-to": z() }],
|
|
7812
|
-
"mask-image-l-from-pos": [{ "mask-l-from":
|
|
7813
|
-
"mask-image-l-to-pos": [{ "mask-l-to":
|
|
7812
|
+
"mask-image-l-from-pos": [{ "mask-l-from": W() }],
|
|
7813
|
+
"mask-image-l-to-pos": [{ "mask-l-to": W() }],
|
|
7814
7814
|
"mask-image-l-from-color": [{ "mask-l-from": z() }],
|
|
7815
7815
|
"mask-image-l-to-color": [{ "mask-l-to": z() }],
|
|
7816
|
-
"mask-image-x-from-pos": [{ "mask-x-from":
|
|
7817
|
-
"mask-image-x-to-pos": [{ "mask-x-to":
|
|
7816
|
+
"mask-image-x-from-pos": [{ "mask-x-from": W() }],
|
|
7817
|
+
"mask-image-x-to-pos": [{ "mask-x-to": W() }],
|
|
7818
7818
|
"mask-image-x-from-color": [{ "mask-x-from": z() }],
|
|
7819
7819
|
"mask-image-x-to-color": [{ "mask-x-to": z() }],
|
|
7820
|
-
"mask-image-y-from-pos": [{ "mask-y-from":
|
|
7821
|
-
"mask-image-y-to-pos": [{ "mask-y-to":
|
|
7820
|
+
"mask-image-y-from-pos": [{ "mask-y-from": W() }],
|
|
7821
|
+
"mask-image-y-to-pos": [{ "mask-y-to": W() }],
|
|
7822
7822
|
"mask-image-y-from-color": [{ "mask-y-from": z() }],
|
|
7823
7823
|
"mask-image-y-to-color": [{ "mask-y-to": z() }],
|
|
7824
7824
|
"mask-image-radial": [{ "mask-radial": [isArbitraryVariable, isArbitraryValue] }],
|
|
7825
|
-
"mask-image-radial-from-pos": [{ "mask-radial-from":
|
|
7826
|
-
"mask-image-radial-to-pos": [{ "mask-radial-to":
|
|
7825
|
+
"mask-image-radial-from-pos": [{ "mask-radial-from": W() }],
|
|
7826
|
+
"mask-image-radial-to-pos": [{ "mask-radial-to": W() }],
|
|
7827
7827
|
"mask-image-radial-from-color": [{ "mask-radial-from": z() }],
|
|
7828
7828
|
"mask-image-radial-to-color": [{ "mask-radial-to": z() }],
|
|
7829
7829
|
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
|
|
@@ -7833,8 +7833,8 @@ var concatArrays = (e, t) => {
|
|
|
7833
7833
|
}] }],
|
|
7834
7834
|
"mask-image-radial-pos": [{ "mask-radial-at": w() }],
|
|
7835
7835
|
"mask-image-conic-pos": [{ "mask-conic": [isNumber] }],
|
|
7836
|
-
"mask-image-conic-from-pos": [{ "mask-conic-from":
|
|
7837
|
-
"mask-image-conic-to-pos": [{ "mask-conic-to":
|
|
7836
|
+
"mask-image-conic-from-pos": [{ "mask-conic-from": W() }],
|
|
7837
|
+
"mask-image-conic-to-pos": [{ "mask-conic-to": W() }],
|
|
7838
7838
|
"mask-image-conic-from-color": [{ "mask-conic-from": z() }],
|
|
7839
7839
|
"mask-image-conic-to-color": [{ "mask-conic-to": z() }],
|
|
7840
7840
|
"mask-mode": [{ mask: [
|
|
@@ -7852,7 +7852,7 @@ var concatArrays = (e, t) => {
|
|
|
7852
7852
|
] }],
|
|
7853
7853
|
"mask-position": [{ mask: Wp() }],
|
|
7854
7854
|
"mask-repeat": [{ mask: B() }],
|
|
7855
|
-
"mask-size": [{ mask:
|
|
7855
|
+
"mask-size": [{ mask: Gp() }],
|
|
7856
7856
|
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
|
|
7857
7857
|
"mask-image": [{ mask: [
|
|
7858
7858
|
"none",
|
|
@@ -7865,7 +7865,7 @@ var concatArrays = (e, t) => {
|
|
|
7865
7865
|
isArbitraryVariable,
|
|
7866
7866
|
isArbitraryValue
|
|
7867
7867
|
] }],
|
|
7868
|
-
blur: [{ blur:
|
|
7868
|
+
blur: [{ blur: Jp() }],
|
|
7869
7869
|
brightness: [{ brightness: [
|
|
7870
7870
|
isNumber,
|
|
7871
7871
|
isArbitraryVariable,
|
|
@@ -7918,7 +7918,7 @@ var concatArrays = (e, t) => {
|
|
|
7918
7918
|
isArbitraryVariable,
|
|
7919
7919
|
isArbitraryValue
|
|
7920
7920
|
] }],
|
|
7921
|
-
"backdrop-blur": [{ "backdrop-blur":
|
|
7921
|
+
"backdrop-blur": [{ "backdrop-blur": Jp() }],
|
|
7922
7922
|
"backdrop-brightness": [{ "backdrop-brightness": [
|
|
7923
7923
|
isNumber,
|
|
7924
7924
|
isArbitraryVariable,
|
|
@@ -8011,18 +8011,18 @@ var concatArrays = (e, t) => {
|
|
|
8011
8011
|
isArbitraryValue
|
|
8012
8012
|
] }],
|
|
8013
8013
|
"perspective-origin": [{ "perspective-origin": T() }],
|
|
8014
|
-
rotate: [{ rotate:
|
|
8015
|
-
"rotate-x": [{ "rotate-x":
|
|
8016
|
-
"rotate-y": [{ "rotate-y":
|
|
8017
|
-
"rotate-z": [{ "rotate-z":
|
|
8018
|
-
scale: [{ scale:
|
|
8019
|
-
"scale-x": [{ "scale-x":
|
|
8020
|
-
"scale-y": [{ "scale-y":
|
|
8021
|
-
"scale-z": [{ "scale-z":
|
|
8014
|
+
rotate: [{ rotate: G() }],
|
|
8015
|
+
"rotate-x": [{ "rotate-x": G() }],
|
|
8016
|
+
"rotate-y": [{ "rotate-y": G() }],
|
|
8017
|
+
"rotate-z": [{ "rotate-z": G() }],
|
|
8018
|
+
scale: [{ scale: K() }],
|
|
8019
|
+
"scale-x": [{ "scale-x": K() }],
|
|
8020
|
+
"scale-y": [{ "scale-y": K() }],
|
|
8021
|
+
"scale-z": [{ "scale-z": K() }],
|
|
8022
8022
|
"scale-3d": ["scale-3d"],
|
|
8023
|
-
skew: [{ skew:
|
|
8024
|
-
"skew-x": [{ "skew-x":
|
|
8025
|
-
"skew-y": [{ "skew-y":
|
|
8023
|
+
skew: [{ skew: q() }],
|
|
8024
|
+
"skew-x": [{ "skew-x": q() }],
|
|
8025
|
+
"skew-y": [{ "skew-y": q() }],
|
|
8026
8026
|
transform: [{ transform: [
|
|
8027
8027
|
isArbitraryVariable,
|
|
8028
8028
|
isArbitraryValue,
|
|
@@ -8033,10 +8033,10 @@ var concatArrays = (e, t) => {
|
|
|
8033
8033
|
] }],
|
|
8034
8034
|
"transform-origin": [{ origin: T() }],
|
|
8035
8035
|
"transform-style": [{ transform: ["3d", "flat"] }],
|
|
8036
|
-
translate: [{ translate:
|
|
8037
|
-
"translate-x": [{ "translate-x":
|
|
8038
|
-
"translate-y": [{ "translate-y":
|
|
8039
|
-
"translate-z": [{ "translate-z":
|
|
8036
|
+
translate: [{ translate: J() }],
|
|
8037
|
+
"translate-x": [{ "translate-x": J() }],
|
|
8038
|
+
"translate-y": [{ "translate-y": J() }],
|
|
8039
|
+
"translate-z": [{ "translate-z": J() }],
|
|
8040
8040
|
"translate-none": ["translate-none"],
|
|
8041
8041
|
accent: [{ accent: z() }],
|
|
8042
8042
|
appearance: [{ appearance: ["none", "auto"] }],
|
|
@@ -8452,7 +8452,7 @@ const createSipService = (e, t = {}) => {
|
|
|
8452
8452
|
return;
|
|
8453
8453
|
}
|
|
8454
8454
|
try {
|
|
8455
|
-
let [a] = (await navigator.mediaDevices.getUserMedia(
|
|
8455
|
+
let [a] = (await navigator.mediaDevices.getUserMedia(Gp(!1))).getAudioTracks();
|
|
8456
8456
|
if (!a) return;
|
|
8457
8457
|
a.enabled = i;
|
|
8458
8458
|
let o = new MediaStream([a]);
|
|
@@ -8462,7 +8462,7 @@ const createSipService = (e, t = {}) => {
|
|
|
8462
8462
|
} catch (e) {
|
|
8463
8463
|
console.warn("[SipJs] Failed to recover outbound audio track:", e);
|
|
8464
8464
|
}
|
|
8465
|
-
},
|
|
8465
|
+
}, Gp = (e = !1) => {
|
|
8466
8466
|
let t = {
|
|
8467
8467
|
echoCancellation: { ideal: !0 },
|
|
8468
8468
|
noiseSuppression: { ideal: !1 },
|
|
@@ -8473,6 +8473,16 @@ const createSipService = (e, t = {}) => {
|
|
|
8473
8473
|
audio: t,
|
|
8474
8474
|
video: e
|
|
8475
8475
|
};
|
|
8476
|
+
}, V = async () => {
|
|
8477
|
+
let t = i.value;
|
|
8478
|
+
t && await t.register({ requestDelegate: {
|
|
8479
|
+
onAccept: () => {
|
|
8480
|
+
e.setConnected(!0);
|
|
8481
|
+
},
|
|
8482
|
+
onReject: () => {
|
|
8483
|
+
e.setConnected(!1);
|
|
8484
|
+
}
|
|
8485
|
+
} });
|
|
8476
8486
|
}, H = async (t) => {
|
|
8477
8487
|
if (!n.value) {
|
|
8478
8488
|
try {
|
|
@@ -8493,18 +8503,18 @@ const createSipService = (e, t = {}) => {
|
|
|
8493
8503
|
reconnectionDelay: 5,
|
|
8494
8504
|
reconnectionAttempts: 3,
|
|
8495
8505
|
delegate: {
|
|
8496
|
-
onConnect: () =>
|
|
8506
|
+
onConnect: () => {},
|
|
8497
8507
|
onDisconnect: () => e.setConnected(!1),
|
|
8498
|
-
onInvite: (e) =>
|
|
8508
|
+
onInvite: (e) => Jp(e)
|
|
8499
8509
|
}
|
|
8500
|
-
}), await n.value.start(), i.value = new Registerer(n.value), await
|
|
8510
|
+
}), await n.value.start(), i.value = new Registerer(n.value), await V(), Kp();
|
|
8501
8511
|
} catch {}
|
|
8502
8512
|
}
|
|
8503
|
-
},
|
|
8513
|
+
}, Kp = () => {
|
|
8504
8514
|
v = new AbortController();
|
|
8505
8515
|
let { signal: t } = v, n = Date.now(), i = (e = 1e3) => {
|
|
8506
8516
|
y && clearTimeout(y), y = setTimeout(async () => {
|
|
8507
|
-
y = null, await
|
|
8517
|
+
y = null, await qp();
|
|
8508
8518
|
}, e);
|
|
8509
8519
|
}, a = () => {
|
|
8510
8520
|
if (document.visibilityState === "visible") {
|
|
@@ -8527,7 +8537,7 @@ const createSipService = (e, t = {}) => {
|
|
|
8527
8537
|
}, { signal: t }), document.addEventListener("resume", () => {
|
|
8528
8538
|
console.log("[SipJs] Page resumed"), n = Date.now(), l(), i(1e3);
|
|
8529
8539
|
}, { signal: t }), l();
|
|
8530
|
-
},
|
|
8540
|
+
}, qp = async () => {
|
|
8531
8541
|
if (n.value) {
|
|
8532
8542
|
if (!navigator.onLine) {
|
|
8533
8543
|
console.log("[SipJs] Skipping reconnect, device is offline");
|
|
@@ -8539,13 +8549,13 @@ const createSipService = (e, t = {}) => {
|
|
|
8539
8549
|
}
|
|
8540
8550
|
try {
|
|
8541
8551
|
if (n.value.isConnected() || (console.log("[SipJs] Reconnecting..."), await n.value.reconnect()), i.value && n.value.isConnected()) try {
|
|
8542
|
-
await
|
|
8552
|
+
await V();
|
|
8543
8553
|
} catch {}
|
|
8544
8554
|
} catch (e) {
|
|
8545
8555
|
console.error("[SipJs] Reconnection failed:", e);
|
|
8546
8556
|
}
|
|
8547
8557
|
}
|
|
8548
|
-
},
|
|
8558
|
+
}, W = async () => {
|
|
8549
8559
|
v?.abort(), v = null, y &&= (clearTimeout(y), null), b &&= (clearInterval(b), null);
|
|
8550
8560
|
let e = i.value, t = n.value;
|
|
8551
8561
|
if (i.value = null, n.value = null, e) try {
|
|
@@ -8558,7 +8568,7 @@ const createSipService = (e, t = {}) => {
|
|
|
8558
8568
|
} catch (e) {
|
|
8559
8569
|
console.warn("[SipJs] UserAgent stop failed:", e);
|
|
8560
8570
|
}
|
|
8561
|
-
},
|
|
8571
|
+
}, Jp = (t) => {
|
|
8562
8572
|
console.log("[SipJs] 📞 Llamada entrante recibida"), console.log("[SipJs] Remote Identity URI:", t.remoteIdentity.uri.toString()), console.log("[SipJs] Remote Identity URI user:", t.remoteIdentity.uri.user), console.log("[SipJs] Remote Identity displayName:", t.remoteIdentity.displayName);
|
|
8563
8573
|
let n = e.channels.value.find((e) => e.status === "idle");
|
|
8564
8574
|
if (!n) {
|
|
@@ -8600,7 +8610,7 @@ const createSipService = (e, t = {}) => {
|
|
|
8600
8610
|
isHeld: !1,
|
|
8601
8611
|
hasVideo: !1,
|
|
8602
8612
|
hasEarlyMedia: !1
|
|
8603
|
-
}), a.value.delete(i), e.activeChannelId.value === i &&
|
|
8613
|
+
}), a.value.delete(i), e.activeChannelId.value === i && nm(), P();
|
|
8604
8614
|
break;
|
|
8605
8615
|
}
|
|
8606
8616
|
case SessionState.Established:
|
|
@@ -8611,7 +8621,7 @@ const createSipService = (e, t = {}) => {
|
|
|
8611
8621
|
break;
|
|
8612
8622
|
}
|
|
8613
8623
|
});
|
|
8614
|
-
},
|
|
8624
|
+
}, G = async (t, i = !1) => {
|
|
8615
8625
|
if (!n.value) return;
|
|
8616
8626
|
let o = e.activeChannelId.value;
|
|
8617
8627
|
if (a.value.has(o)) return;
|
|
@@ -8660,13 +8670,13 @@ const createSipService = (e, t = {}) => {
|
|
|
8660
8670
|
startTime: void 0,
|
|
8661
8671
|
keypadValue: "",
|
|
8662
8672
|
hasVideo: !1
|
|
8663
|
-
}), a.value.delete(o), e.activeChannelId.value === o &&
|
|
8673
|
+
}), a.value.delete(o), e.activeChannelId.value === o && nm(), P();
|
|
8664
8674
|
break;
|
|
8665
8675
|
}
|
|
8666
8676
|
}
|
|
8667
8677
|
});
|
|
8668
8678
|
let u = {
|
|
8669
|
-
sessionDescriptionHandlerOptions: { constraints:
|
|
8679
|
+
sessionDescriptionHandlerOptions: { constraints: Gp(i) },
|
|
8670
8680
|
requestDelegate: {
|
|
8671
8681
|
onProgress: (t) => {
|
|
8672
8682
|
(t.message.statusCode === 180 || t.message.statusCode === 183) && (t.message.body && (e.updateChannelState(o, { hasEarlyMedia: !0 }), Q(l)), P());
|
|
@@ -8688,7 +8698,7 @@ const createSipService = (e, t = {}) => {
|
|
|
8688
8698
|
} catch (e) {
|
|
8689
8699
|
console.error(`[SipJs] Failed to hold channel ${t}:`, e);
|
|
8690
8700
|
}
|
|
8691
|
-
let o = { sessionDescriptionHandlerOptions: { constraints:
|
|
8701
|
+
let o = { sessionDescriptionHandlerOptions: { constraints: Gp(t) } };
|
|
8692
8702
|
e.updateChannelState(n, {
|
|
8693
8703
|
status: "connected",
|
|
8694
8704
|
startTime: Date.now()
|
|
@@ -8722,14 +8732,14 @@ const createSipService = (e, t = {}) => {
|
|
|
8722
8732
|
}, Y = async (e, t) => {
|
|
8723
8733
|
let n = { sessionDescriptionHandlerOptions: { hold: t } };
|
|
8724
8734
|
await e.invite(n);
|
|
8725
|
-
},
|
|
8735
|
+
}, Z = async () => {
|
|
8726
8736
|
let t = a.value.get(e.activeChannelId.value);
|
|
8727
8737
|
if (t?.state !== SessionState.Established) return;
|
|
8728
8738
|
let n = !e.isHeld.value;
|
|
8729
8739
|
try {
|
|
8730
8740
|
await Y(t, n), e.setHeld(n), z(t, e.channels.value.find((t) => t.id === e.activeChannelId.value));
|
|
8731
8741
|
} catch {}
|
|
8732
|
-
},
|
|
8742
|
+
}, Yp = async (t) => {
|
|
8733
8743
|
let n = e.activeChannelId.value;
|
|
8734
8744
|
if (n === t) return;
|
|
8735
8745
|
let i = a.value.get(n), o = a.value.get(t), s = e.channels.value.find((e) => e.id === n), l = e.channels.value.find((e) => e.id === t);
|
|
@@ -8741,8 +8751,8 @@ const createSipService = (e, t = {}) => {
|
|
|
8741
8751
|
await Y(o, !1), e.updateChannelState(t, { isHeld: !1 });
|
|
8742
8752
|
} catch {}
|
|
8743
8753
|
z(o, e.channels.value.find((e) => e.id === t)), Q(o);
|
|
8744
|
-
} else
|
|
8745
|
-
},
|
|
8754
|
+
} else nm();
|
|
8755
|
+
}, Xp = (t) => {
|
|
8746
8756
|
let n = a.value.get(e.activeChannelId.value);
|
|
8747
8757
|
if (n?.state !== SessionState.Established) return;
|
|
8748
8758
|
let i = { requestOptions: { body: {
|
|
@@ -8751,10 +8761,10 @@ const createSipService = (e, t = {}) => {
|
|
|
8751
8761
|
contentDisposition: "signal"
|
|
8752
8762
|
} } };
|
|
8753
8763
|
n.info(i);
|
|
8754
|
-
},
|
|
8764
|
+
}, Zp = (t, n) => {
|
|
8755
8765
|
let i = e.channels.value.find((e) => e.id === t);
|
|
8756
8766
|
!i || i.status !== "connected" || (Q(n), z(n, i), B(n), o.play().catch(() => {}));
|
|
8757
|
-
},
|
|
8767
|
+
}, Qp = async (t) => {
|
|
8758
8768
|
console.log("[SipJs] 🔄 transferCall iniciado"), console.log("[SipJs] Target:", t);
|
|
8759
8769
|
let i = e.activeChannelId.value, o = a.value.get(i);
|
|
8760
8770
|
if (!o) throw console.error("[SipJs] ❌ No hay sesión activa en el canal", i), Error("No active session to transfer");
|
|
@@ -8774,7 +8784,7 @@ const createSipService = (e, t = {}) => {
|
|
|
8774
8784
|
},
|
|
8775
8785
|
onReject: (e) => {
|
|
8776
8786
|
let t = e.message.statusCode;
|
|
8777
|
-
console.error("[SipJs] ❌ Transfer REFER rechazado:", t), console.error("[SipJs] Response completo:", e.message),
|
|
8787
|
+
console.error("[SipJs] ❌ Transfer REFER rechazado:", t), console.error("[SipJs] Response completo:", e.message), Zp(i, o);
|
|
8778
8788
|
}
|
|
8779
8789
|
},
|
|
8780
8790
|
onNotify: (e) => {
|
|
@@ -8797,7 +8807,7 @@ const createSipService = (e, t = {}) => {
|
|
|
8797
8807
|
487: "Transferencia cancelada",
|
|
8798
8808
|
503: "Servicio no disponible - el destino puede estar fuera de línea"
|
|
8799
8809
|
}[t] || `Error en transferencia (código ${t})`;
|
|
8800
|
-
console.warn("[SipJs] 💬", e),
|
|
8810
|
+
console.warn("[SipJs] 💬", e), Zp(i, o);
|
|
8801
8811
|
} else t >= 100 && t < 200 && console.log("[SipJs] 📞 Transferencia en progreso:", t, n);
|
|
8802
8812
|
} else console.warn("[SipJs] ⚠️ No se pudo extraer el código de estado del NOTIFY body");
|
|
8803
8813
|
} else console.warn("[SipJs] ⚠️ NOTIFY sin body");
|
|
@@ -8806,7 +8816,7 @@ const createSipService = (e, t = {}) => {
|
|
|
8806
8816
|
} catch (e) {
|
|
8807
8817
|
throw console.error("[SipJs] ❌ Error en transferCall:", e), console.error("[SipJs] Error type:", e?.constructor?.name), console.error("[SipJs] Error message:", e instanceof Error ? e.message : String(e)), console.error("[SipJs] Error stack:", e instanceof Error ? e.stack : "N/A"), e;
|
|
8808
8818
|
}
|
|
8809
|
-
},
|
|
8819
|
+
}, $p = async (t) => {
|
|
8810
8820
|
console.log("[SipJs] 🔄 startAttendedTransfer iniciado"), console.log("[SipJs] Target:", t);
|
|
8811
8821
|
let n = e.activeChannelId.value, i = a.value.get(n);
|
|
8812
8822
|
if (console.log("[SipJs] Canal original:", n), console.log("[SipJs] Sesión original:", i?.state), !i || i.state !== SessionState.Established) throw console.error("[SipJs] ❌ No hay llamada establecida para transferir"), Error("No established call to transfer");
|
|
@@ -8819,7 +8829,7 @@ const createSipService = (e, t = {}) => {
|
|
|
8819
8829
|
}
|
|
8820
8830
|
console.log("[SipJs] 🔄 Cambiando al canal de consulta:", o.id), e.setActiveChannelId(o.id);
|
|
8821
8831
|
try {
|
|
8822
|
-
console.log("[SipJs] 📞 Iniciando llamada de consulta a:", t), await
|
|
8832
|
+
console.log("[SipJs] 📞 Iniciando llamada de consulta a:", t), await G(t, !1), console.log("[SipJs] ✅ Llamada de consulta iniciada"), e.setTransferInProgress({
|
|
8823
8833
|
originalChannelId: n,
|
|
8824
8834
|
consultationChannelId: o.id,
|
|
8825
8835
|
targetNumber: t
|
|
@@ -8827,7 +8837,7 @@ const createSipService = (e, t = {}) => {
|
|
|
8827
8837
|
} catch (t) {
|
|
8828
8838
|
throw console.error("[SipJs] ❌ Failed to start consultation call:", t), console.log("[SipJs] 🔄 Volviendo al canal original y quitando hold..."), e.setActiveChannelId(n), await Y(i, !1).catch(() => {}), e.updateChannelState(n, { isHeld: !1 }), Error("Failed to initiate consultation call");
|
|
8829
8839
|
}
|
|
8830
|
-
},
|
|
8840
|
+
}, em = async () => {
|
|
8831
8841
|
console.log("[SipJs] 🔄 completeAttendedTransfer iniciado");
|
|
8832
8842
|
let t = e.transferInProgress.value;
|
|
8833
8843
|
if (!t) throw console.error("[SipJs] ❌ No hay transferencia en progreso"), Error("No transfer in progress");
|
|
@@ -8870,7 +8880,7 @@ const createSipService = (e, t = {}) => {
|
|
|
8870
8880
|
} catch (e) {
|
|
8871
8881
|
throw console.error("[SipJs] Attended transfer failed:", e), e;
|
|
8872
8882
|
}
|
|
8873
|
-
},
|
|
8883
|
+
}, tm = async () => {
|
|
8874
8884
|
let t = e.transferInProgress.value;
|
|
8875
8885
|
if (!t) throw Error("No transfer in progress");
|
|
8876
8886
|
console.log("[SipJs] Canceling attended transfer...");
|
|
@@ -8917,23 +8927,23 @@ const createSipService = (e, t = {}) => {
|
|
|
8917
8927
|
}, { signal: g.signal });
|
|
8918
8928
|
let [s] = n.getTracks();
|
|
8919
8929
|
s && (o.srcObject = n, a(s), i && M(e, i.id));
|
|
8920
|
-
},
|
|
8930
|
+
}, nm = () => {
|
|
8921
8931
|
_?.abort(), _ = null, g?.abort(), g = null, o.pause(), o.srcObject = null, u.value = null, d.value = null;
|
|
8922
8932
|
};
|
|
8923
8933
|
return {
|
|
8924
8934
|
initUserAgent: H,
|
|
8925
|
-
stop:
|
|
8926
|
-
makeCall:
|
|
8935
|
+
stop: W,
|
|
8936
|
+
makeCall: G,
|
|
8927
8937
|
answerCall: K,
|
|
8928
8938
|
hangupCall: q,
|
|
8929
8939
|
toggleMute: J,
|
|
8930
|
-
toggleHold:
|
|
8931
|
-
sendDTMF:
|
|
8932
|
-
transferCall:
|
|
8933
|
-
startAttendedTransfer:
|
|
8934
|
-
completeAttendedTransfer:
|
|
8935
|
-
cancelAttendedTransfer:
|
|
8936
|
-
switchChannel:
|
|
8940
|
+
toggleHold: Z,
|
|
8941
|
+
sendDTMF: Xp,
|
|
8942
|
+
transferCall: Qp,
|
|
8943
|
+
startAttendedTransfer: $p,
|
|
8944
|
+
completeAttendedTransfer: em,
|
|
8945
|
+
cancelAttendedTransfer: tm,
|
|
8946
|
+
switchChannel: Yp,
|
|
8937
8947
|
extension: x,
|
|
8938
8948
|
setVolume: F,
|
|
8939
8949
|
setNotificationVolume: D,
|
|
@@ -17564,7 +17574,7 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17564
17574
|
provide("webphone", x), provide("sip", S), t({ stop: S.stop }), watchEffect(() => {
|
|
17565
17575
|
o.mode === "webcall" && (o.to || console.error("WebPhone: \"to\" prop is required when mode is \"webcall\""), o.logo || console.error("WebPhone: \"logo\" prop is required when mode is \"webcall\""));
|
|
17566
17576
|
});
|
|
17567
|
-
let O = ref(!1), k = ref(!1), j = ref(!1), N = ref(null), F = ref(null), L = ref(null),
|
|
17577
|
+
let O = ref(!1), k = ref(!1), j = ref(!1), N = ref(null), F = ref(null), L = ref(null), Gp = navigator.platform.toUpperCase().indexOf("MAC") >= 0 ? "⌘" : "Ctrl+", V = computed(() => o.mode === "webcall"), H = ref(0), U = (e) => !!e && e.getVideoTracks().length > 0;
|
|
17568
17578
|
watch(() => x.callStatus, (e) => {
|
|
17569
17579
|
if (e === "idle" && !x.isKeypadVisible) {
|
|
17570
17580
|
x.toggleKeypad();
|
|
@@ -17572,16 +17582,16 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17572
17582
|
}
|
|
17573
17583
|
e !== "idle" && x.isKeypadVisible && x.toggleKeypad();
|
|
17574
17584
|
});
|
|
17575
|
-
let
|
|
17585
|
+
let qp = computed(() => x.channels.find((e) => e.id === x.activeChannelId) ?? null), W = (e) => {
|
|
17576
17586
|
if (!e) return "";
|
|
17577
17587
|
let t = e.trim(), n = t.startsWith("+"), i = t.replace(/[^\d]/g, "");
|
|
17578
17588
|
return n ? `+${i}` : i;
|
|
17579
|
-
},
|
|
17580
|
-
let e =
|
|
17581
|
-
return o.contacts.find((e) =>
|
|
17582
|
-
}),
|
|
17583
|
-
Qp.value &&
|
|
17584
|
-
},
|
|
17589
|
+
}, Jp = computed(() => {
|
|
17590
|
+
let e = qp.value?.remoteNumber || x.remoteNumber, t = W(e);
|
|
17591
|
+
return o.contacts.find((e) => W(e.number) === t)?.name || e || "Llamada";
|
|
17592
|
+
}), G = computed(() => (H.value, !!qp.value?.hasVideo || U(E.value) || U(D.value))), { isOnline: K } = useNetwork(), q = computed(() => !K.value), J = ref(null), Z = ref(!1), Qp = computed(() => o.enablePictureInPicture), tm = () => {
|
|
17593
|
+
Qp.value && J.value?.toggle();
|
|
17594
|
+
}, Q = async (e, t) => {
|
|
17585
17595
|
try {
|
|
17586
17596
|
t === "blind" ? await S.transferCall(e) : await S.startAttendedTransfer(e);
|
|
17587
17597
|
} catch (e) {
|
|
@@ -17620,14 +17630,14 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17620
17630
|
}
|
|
17621
17631
|
S.hangupCall();
|
|
17622
17632
|
}, cm = () => {
|
|
17623
|
-
j.value = !0,
|
|
17633
|
+
j.value = !0, J.value?.close(), window.focus();
|
|
17624
17634
|
}, lm = () => {
|
|
17625
17635
|
if (!Qp.value) return !1;
|
|
17626
17636
|
let e = x.callStatus !== "idle", t = document.hidden || !document.hasFocus();
|
|
17627
17637
|
return e && t && !Z.value;
|
|
17628
17638
|
}, $ = () => {
|
|
17629
17639
|
window.setTimeout(() => {
|
|
17630
|
-
lm() &&
|
|
17640
|
+
lm() && J.value?.open();
|
|
17631
17641
|
}, 150);
|
|
17632
17642
|
};
|
|
17633
17643
|
watchEffect(() => {
|
|
@@ -17636,16 +17646,16 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17636
17646
|
let um = (e) => {
|
|
17637
17647
|
if (!e || typeof e.addEventListener != "function" || typeof e.removeEventListener != "function") return () => {};
|
|
17638
17648
|
let t = () => {
|
|
17639
|
-
|
|
17649
|
+
H.value += 1;
|
|
17640
17650
|
};
|
|
17641
17651
|
return e.addEventListener("addtrack", t), e.addEventListener("removetrack", t), () => {
|
|
17642
17652
|
e.removeEventListener("addtrack", t), e.removeEventListener("removetrack", t);
|
|
17643
17653
|
};
|
|
17644
17654
|
};
|
|
17645
17655
|
watch(E, (e, t, n) => {
|
|
17646
|
-
|
|
17656
|
+
H.value += 1, n(um(e));
|
|
17647
17657
|
}, { immediate: !0 }), watch(D, (e, t, n) => {
|
|
17648
|
-
|
|
17658
|
+
H.value += 1, n(um(e));
|
|
17649
17659
|
}, { immediate: !0 });
|
|
17650
17660
|
let dm = [
|
|
17651
17661
|
"button",
|
|
@@ -17698,7 +17708,7 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17698
17708
|
], _m = ref(!1), vm = computed({
|
|
17699
17709
|
get: () => x.activeChannelId.toString(),
|
|
17700
17710
|
set: async (e) => {
|
|
17701
|
-
if (!
|
|
17711
|
+
if (!q.value && e && !_m.value) {
|
|
17702
17712
|
_m.value = !0;
|
|
17703
17713
|
try {
|
|
17704
17714
|
await T(parseInt(e));
|
|
@@ -17714,9 +17724,9 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17714
17724
|
let t = x.channels.find((t) => t.id === e);
|
|
17715
17725
|
return t ? t.isHeld || t.status === "held" : !1;
|
|
17716
17726
|
}, xm = (e) => {
|
|
17717
|
-
|
|
17727
|
+
q.value || (vm.value = e.toString());
|
|
17718
17728
|
}, Sm = (e) => {
|
|
17719
|
-
if (!
|
|
17729
|
+
if (!q.value && ((e.metaKey || e.ctrlKey) && e.key.toLowerCase() === "h" && (e.preventDefault(), k.value = !0), (e.metaKey || e.ctrlKey) && e.key === "," && (e.preventDefault(), O.value = !0), (e.metaKey || e.ctrlKey) && e.key.toLowerCase() === "k" && (e.preventDefault(), x.toggleKeypad()), (e.metaKey || e.ctrlKey) && [
|
|
17720
17730
|
"1",
|
|
17721
17731
|
"2",
|
|
17722
17732
|
"3"
|
|
@@ -17733,10 +17743,10 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17733
17743
|
}), watch(() => x.isConnected, (e) => {
|
|
17734
17744
|
v.value && a.set(v.value, e);
|
|
17735
17745
|
}, { immediate: !0 }), watch(Qp, (e) => {
|
|
17736
|
-
!e && Z.value &&
|
|
17746
|
+
!e && Z.value && J.value?.close();
|
|
17737
17747
|
});
|
|
17738
17748
|
let Cm = ref(!1), wm = async () => {
|
|
17739
|
-
Cm.value ||
|
|
17749
|
+
Cm.value || q.value || !o.host || !o.extension || !o.password || (await w({
|
|
17740
17750
|
uri: `sip:${o.extension}@${o.host}`,
|
|
17741
17751
|
transportOptions: { server: _.value },
|
|
17742
17752
|
authorizationUsername: o.extension,
|
|
@@ -17751,7 +17761,7 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17751
17761
|
}
|
|
17752
17762
|
}), onMounted(async () => {
|
|
17753
17763
|
window.addEventListener("keydown", Sm), document.addEventListener("visibilitychange", $), window.addEventListener("blur", $), window.addEventListener("pagehide", $), !(o.mode === "webcall" && (!o.to || !o.logo)) && await wm();
|
|
17754
|
-
}), watch(() =>
|
|
17764
|
+
}), watch(() => K.value, async (e) => {
|
|
17755
17765
|
e && await wm();
|
|
17756
17766
|
}), onUnmounted(() => {
|
|
17757
17767
|
S.stop(), window.removeEventListener("keydown", Sm), document.removeEventListener("visibilitychange", $), window.removeEventListener("blur", $), window.removeEventListener("pagehide", $);
|
|
@@ -17760,12 +17770,12 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17760
17770
|
ref_key: "phoneRef",
|
|
17761
17771
|
ref: N,
|
|
17762
17772
|
style: normalizeStyle(unref(hm)),
|
|
17763
|
-
class: normalizeClass(["webphone webphone-container wp:bg-white wp:dark:bg-neutral-800 wp:rounded-lg wp:shadow-sm wp:inset-shadow-2xs wp:w-[min(92vw,330px)] wp:fixed wp:z-50 wp:select-none wp:[&_button]:cursor-pointer wp:**:[[role=button]]:cursor-pointer",
|
|
17773
|
+
class: normalizeClass(["webphone webphone-container wp:bg-white wp:dark:bg-neutral-800 wp:rounded-lg wp:shadow-sm wp:inset-shadow-2xs wp:w-[min(92vw,330px)] wp:fixed wp:z-50 wp:select-none wp:[&_button]:cursor-pointer wp:**:[[role=button]]:cursor-pointer", q.value ? "wp:opacity-70" : ""]),
|
|
17764
17774
|
"data-mode": o.mode,
|
|
17765
17775
|
"data-call-status": x.callStatus,
|
|
17766
|
-
"data-network-status":
|
|
17776
|
+
"data-network-status": q.value ? "offline" : "online"
|
|
17767
17777
|
}, [
|
|
17768
|
-
|
|
17778
|
+
G.value && !Z.value ? (openBlock(), createElementBlock("div", _hoisted_2, [createElementVNode("video", {
|
|
17769
17779
|
ref_key: "remoteVideoRef",
|
|
17770
17780
|
ref: F,
|
|
17771
17781
|
autoplay: "",
|
|
@@ -17780,14 +17790,14 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17780
17790
|
class: "webphone__video-local wp:w-full wp:h-full wp:object-cover"
|
|
17781
17791
|
}, null, 512)])])) : createCommentVNode("", !0),
|
|
17782
17792
|
createElementVNode("div", _hoisted_4, [
|
|
17783
|
-
|
|
17793
|
+
V.value ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", _hoisted_5, [createElementVNode("div", _hoisted_6, [
|
|
17784
17794
|
createElementVNode("div", _hoisted_7, [(openBlock(), createElementBlock(Fragment, null, renderList(gm, (e) => createElementVNode("button", {
|
|
17785
17795
|
key: e.value,
|
|
17786
17796
|
type: "button",
|
|
17787
17797
|
role: "radio",
|
|
17788
17798
|
"aria-checked": vm.value === e.value.toString(),
|
|
17789
|
-
disabled:
|
|
17790
|
-
title: `${e.label} (${unref(
|
|
17799
|
+
disabled: q.value,
|
|
17800
|
+
title: `${e.label} (${unref(Gp)}${e.value + 1})`,
|
|
17791
17801
|
class: normalizeClass(["webphone__channel-button wp:flex wp:items-center wp:gap-1 wp:px-2 wp:py-2 wp:rounded-lg wp:transition-colors wp:duration-200 wp:outline-none wp:focus-visible:ring-2 wp:focus-visible:ring-[var(--p-primary-color)] wp:focus-visible:ring-offset-2 wp:focus-visible:ring-offset-white wp:dark:focus-visible:ring-offset-neutral-900", bm(e.value) ? "wp:bg-status-hold/12 hover:wp:bg-status-hold/18" : ym(e.value) ? "wp:bg-[var(--color-red)]/12 hover:wp:bg-[var(--color-red)]/18" : vm.value === e.value.toString() ? "wp:bg-[var(--p-primary-color)]/12" : "wp:hover:bg-neutral-100 wp:dark:hover:bg-neutral-800/80"]),
|
|
17792
17802
|
"data-channel-id": e.value,
|
|
17793
17803
|
"data-state": vm.value === e.value.toString() ? "active" : "idle",
|
|
@@ -17805,7 +17815,7 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17805
17815
|
size: "icon",
|
|
17806
17816
|
class: normalizeClass(["wp:h-8 wp:w-8 wp:rounded-full", Z.value ? "wp:text-primary" : ""]),
|
|
17807
17817
|
title: "Picture-in-Picture",
|
|
17808
|
-
onClick:
|
|
17818
|
+
onClick: tm
|
|
17809
17819
|
}, {
|
|
17810
17820
|
default: withCtx(() => [createVNode(unref(PictureInPicture2), { class: "wp:w-4 wp:h-4 wp:text-[var(--color-settings)]" })]),
|
|
17811
17821
|
_: 1
|
|
@@ -17834,7 +17844,7 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17834
17844
|
_: 1
|
|
17835
17845
|
}), createVNode(unref(TooltipContent_default), { class: "wp:flex wp:items-center wp:gap-2" }, {
|
|
17836
17846
|
default: withCtx(() => [t[9] ||= createElementVNode("span", null, "Configuración", -1), createVNode(unref(Kbd_default), null, {
|
|
17837
|
-
default: withCtx(() => [createTextVNode(toDisplayString(unref(
|
|
17847
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(Gp)) + ",", 1)]),
|
|
17838
17848
|
_: 1
|
|
17839
17849
|
})]),
|
|
17840
17850
|
_: 1
|
|
@@ -17847,9 +17857,9 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17847
17857
|
createElementVNode("div", _hoisted_9, [(openBlock(!0), createElementBlock(Fragment, null, renderList(x.channels, (e) => withDirectives((openBlock(), createBlock(CallDisplay_default, {
|
|
17848
17858
|
key: e.id,
|
|
17849
17859
|
"channel-id": e.id,
|
|
17850
|
-
"allow-input": !
|
|
17851
|
-
"is-web-call":
|
|
17852
|
-
"is-online": unref(
|
|
17860
|
+
"allow-input": !V.value,
|
|
17861
|
+
"is-web-call": V.value,
|
|
17862
|
+
"is-online": unref(K),
|
|
17853
17863
|
contacts: o.contacts,
|
|
17854
17864
|
user: o.extension
|
|
17855
17865
|
}, null, 8, [
|
|
@@ -17866,8 +17876,8 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17866
17876
|
}, [createVNode(KeyPad_default)], 10, _hoisted_10),
|
|
17867
17877
|
createVNode(CallActions_default, {
|
|
17868
17878
|
class: "webphone__actions",
|
|
17869
|
-
style: normalizeStyle(
|
|
17870
|
-
destination:
|
|
17879
|
+
style: normalizeStyle(q.value ? "pointer-events: none;" : void 0),
|
|
17880
|
+
destination: V.value ? o.to : void 0,
|
|
17871
17881
|
"is-video": o.mode === "video",
|
|
17872
17882
|
"on-answer": o.onAnswer,
|
|
17873
17883
|
"on-hangup": o.onHangup,
|
|
@@ -17884,8 +17894,8 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17884
17894
|
"on-reject"
|
|
17885
17895
|
])
|
|
17886
17896
|
]),
|
|
17887
|
-
|
|
17888
|
-
|
|
17897
|
+
q.value ? (openBlock(), createElementBlock("div", _hoisted_11, [...t[10] ||= [createElementVNode("span", { class: "wp:text-sm wp:font-semibold wp:text-status-disconnected" }, "Sin internet", -1)]])) : createCommentVNode("", !0),
|
|
17898
|
+
V.value ? (openBlock(), createElementBlock("div", _hoisted_12, [...t[11] ||= [createElementVNode("div", { class: "webphone__footer-label wp:text-[10px] wp:text-primary" }, "Powered By", -1), createElementVNode("div", { class: "webphone__footer-content wp:flex wp:items-center wp:gap-2" }, [createElementVNode("a", {
|
|
17889
17899
|
href: "https://www.nebula123.com",
|
|
17890
17900
|
target: "_blank",
|
|
17891
17901
|
class: "webphone__footer-link wp:text-[10px] wp:text-primary wp:hover:underline"
|
|
@@ -17905,27 +17915,27 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17905
17915
|
visible: j.value,
|
|
17906
17916
|
"onUpdate:visible": t[4] ||= (e) => j.value = e,
|
|
17907
17917
|
contacts: o.contacts,
|
|
17908
|
-
onTransfer:
|
|
17918
|
+
onTransfer: Q
|
|
17909
17919
|
}, null, 8, ["visible", "contacts"]),
|
|
17910
17920
|
createVNode(DocumentPip_default, {
|
|
17911
17921
|
ref_key: "documentPipRef",
|
|
17912
|
-
ref:
|
|
17922
|
+
ref: J,
|
|
17913
17923
|
active: Z.value,
|
|
17914
17924
|
"onUpdate:active": t[5] ||= (e) => Z.value = e,
|
|
17915
17925
|
"auto-open-on-blur": Qp.value,
|
|
17916
17926
|
"is-connected": x.isConnected,
|
|
17917
17927
|
"remote-number": x.remoteNumber,
|
|
17918
|
-
"caller-name":
|
|
17919
|
-
"has-video":
|
|
17928
|
+
"caller-name": Jp.value,
|
|
17929
|
+
"has-video": G.value ?? !1,
|
|
17920
17930
|
"remote-stream": unref(E),
|
|
17921
17931
|
"local-stream": unref(D),
|
|
17922
|
-
destination:
|
|
17932
|
+
destination: V.value ? o.to : void 0,
|
|
17923
17933
|
"is-video": o.mode === "video",
|
|
17924
17934
|
"call-status": x.callStatus,
|
|
17925
17935
|
"is-muted": x.isMuted,
|
|
17926
17936
|
"is-held": x.isHeld,
|
|
17927
17937
|
onTransfer: cm,
|
|
17928
|
-
onTransferRequest:
|
|
17938
|
+
onTransferRequest: Q,
|
|
17929
17939
|
onHangup: om,
|
|
17930
17940
|
onReject: sm,
|
|
17931
17941
|
onAnswer: am,
|