@tmsoft/webphone 3.0.19 → 3.0.21
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 +21 -21
- package/dist/webphone.es.js +343 -321
- package/dist/webphone.umd.js +20 -20
- package/package.json +1 -1
package/dist/webphone.es.js
CHANGED
|
@@ -7020,7 +7020,7 @@ var concatArrays = (e, t) => {
|
|
|
7020
7020
|
"max",
|
|
7021
7021
|
"fit",
|
|
7022
7022
|
...O()
|
|
7023
|
-
],
|
|
7023
|
+
], R = () => [
|
|
7024
7024
|
isFraction,
|
|
7025
7025
|
"screen",
|
|
7026
7026
|
"full",
|
|
@@ -7031,7 +7031,7 @@ var concatArrays = (e, t) => {
|
|
|
7031
7031
|
"max",
|
|
7032
7032
|
"fit",
|
|
7033
7033
|
...O()
|
|
7034
|
-
],
|
|
7034
|
+
], z = () => [
|
|
7035
7035
|
isFraction,
|
|
7036
7036
|
"screen",
|
|
7037
7037
|
"full",
|
|
@@ -7043,50 +7043,50 @@ var concatArrays = (e, t) => {
|
|
|
7043
7043
|
"max",
|
|
7044
7044
|
"fit",
|
|
7045
7045
|
...O()
|
|
7046
|
-
],
|
|
7046
|
+
], B = () => [
|
|
7047
7047
|
e,
|
|
7048
7048
|
isArbitraryVariable,
|
|
7049
7049
|
isArbitraryValue
|
|
7050
|
-
],
|
|
7050
|
+
], Up = () => [
|
|
7051
7051
|
...w(),
|
|
7052
7052
|
isArbitraryVariablePosition,
|
|
7053
7053
|
isArbitraryPosition,
|
|
7054
7054
|
{ position: [isArbitraryVariable, isArbitraryValue] }
|
|
7055
|
-
],
|
|
7055
|
+
], V = () => ["no-repeat", { repeat: [
|
|
7056
7056
|
"",
|
|
7057
7057
|
"x",
|
|
7058
7058
|
"y",
|
|
7059
7059
|
"space",
|
|
7060
7060
|
"round"
|
|
7061
|
-
] }],
|
|
7061
|
+
] }], H = () => [
|
|
7062
7062
|
"auto",
|
|
7063
7063
|
"cover",
|
|
7064
7064
|
"contain",
|
|
7065
7065
|
isArbitraryVariableSize,
|
|
7066
7066
|
isArbitrarySize,
|
|
7067
7067
|
{ size: [isArbitraryVariable, isArbitraryValue] }
|
|
7068
|
-
],
|
|
7068
|
+
], U = () => [
|
|
7069
7069
|
isPercent,
|
|
7070
7070
|
isArbitraryVariableLength,
|
|
7071
7071
|
isArbitraryLength
|
|
7072
|
-
],
|
|
7072
|
+
], W = () => [
|
|
7073
7073
|
"",
|
|
7074
7074
|
"none",
|
|
7075
7075
|
"full",
|
|
7076
7076
|
d,
|
|
7077
7077
|
isArbitraryVariable,
|
|
7078
7078
|
isArbitraryValue
|
|
7079
|
-
],
|
|
7079
|
+
], G = () => [
|
|
7080
7080
|
"",
|
|
7081
7081
|
isNumber,
|
|
7082
7082
|
isArbitraryVariableLength,
|
|
7083
7083
|
isArbitraryLength
|
|
7084
|
-
],
|
|
7084
|
+
], Wp = () => [
|
|
7085
7085
|
"solid",
|
|
7086
7086
|
"dashed",
|
|
7087
7087
|
"dotted",
|
|
7088
7088
|
"double"
|
|
7089
|
-
],
|
|
7089
|
+
], Gp = () => [
|
|
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
|
+
], K = () => [
|
|
7107
7107
|
isNumber,
|
|
7108
7108
|
isPercent,
|
|
7109
7109
|
isArbitraryVariablePosition,
|
|
7110
7110
|
isArbitraryPosition
|
|
7111
|
-
],
|
|
7111
|
+
], Kp = () => [
|
|
7112
7112
|
"",
|
|
7113
7113
|
"none",
|
|
7114
7114
|
_,
|
|
7115
7115
|
isArbitraryVariable,
|
|
7116
7116
|
isArbitraryValue
|
|
7117
|
-
],
|
|
7117
|
+
], q = () => [
|
|
7118
7118
|
"none",
|
|
7119
7119
|
isNumber,
|
|
7120
7120
|
isArbitraryVariable,
|
|
7121
7121
|
isArbitraryValue
|
|
7122
|
-
],
|
|
7122
|
+
], J = () => [
|
|
7123
7123
|
"none",
|
|
7124
7124
|
isNumber,
|
|
7125
7125
|
isArbitraryVariable,
|
|
7126
7126
|
isArbitraryValue
|
|
7127
|
-
],
|
|
7127
|
+
], Y = () => [
|
|
7128
7128
|
isNumber,
|
|
7129
7129
|
isArbitraryVariable,
|
|
7130
7130
|
isArbitraryValue
|
|
7131
|
-
],
|
|
7131
|
+
], Z = () => [
|
|
7132
7132
|
isFraction,
|
|
7133
7133
|
"full",
|
|
7134
7134
|
...O()
|
|
@@ -7417,12 +7417,12 @@ var concatArrays = (e, t) => {
|
|
|
7417
7417
|
"space-y": [{ "space-y": O() }],
|
|
7418
7418
|
"space-y-reverse": ["space-y-reverse"],
|
|
7419
7419
|
size: [{ size: L() }],
|
|
7420
|
-
"inline-size": [{ inline: ["auto", ...
|
|
7421
|
-
"min-inline-size": [{ "min-inline": ["auto", ...
|
|
7422
|
-
"max-inline-size": [{ "max-inline": ["none", ...
|
|
7423
|
-
"block-size": [{ block: ["auto", ...
|
|
7424
|
-
"min-block-size": [{ "min-block": ["auto", ...
|
|
7425
|
-
"max-block-size": [{ "max-block": ["none", ...
|
|
7420
|
+
"inline-size": [{ inline: ["auto", ...R()] }],
|
|
7421
|
+
"min-inline-size": [{ "min-inline": ["auto", ...R()] }],
|
|
7422
|
+
"max-inline-size": [{ "max-inline": ["none", ...R()] }],
|
|
7423
|
+
"block-size": [{ block: ["auto", ...z()] }],
|
|
7424
|
+
"min-block-size": [{ "min-block": ["auto", ...z()] }],
|
|
7425
|
+
"max-block-size": [{ "max-block": ["none", ...z()] }],
|
|
7426
7426
|
w: [{ w: [
|
|
7427
7427
|
l,
|
|
7428
7428
|
"screen",
|
|
@@ -7529,15 +7529,15 @@ var concatArrays = (e, t) => {
|
|
|
7529
7529
|
"start",
|
|
7530
7530
|
"end"
|
|
7531
7531
|
] }],
|
|
7532
|
-
"placeholder-color": [{ placeholder:
|
|
7533
|
-
"text-color": [{ text:
|
|
7532
|
+
"placeholder-color": [{ placeholder: B() }],
|
|
7533
|
+
"text-color": [{ text: B() }],
|
|
7534
7534
|
"text-decoration": [
|
|
7535
7535
|
"underline",
|
|
7536
7536
|
"overline",
|
|
7537
7537
|
"line-through",
|
|
7538
7538
|
"no-underline"
|
|
7539
7539
|
],
|
|
7540
|
-
"text-decoration-style": [{ decoration: [...
|
|
7540
|
+
"text-decoration-style": [{ decoration: [...Wp(), "wavy"] }],
|
|
7541
7541
|
"text-decoration-thickness": [{ decoration: [
|
|
7542
7542
|
isNumber,
|
|
7543
7543
|
"from-font",
|
|
@@ -7545,7 +7545,7 @@ var concatArrays = (e, t) => {
|
|
|
7545
7545
|
isArbitraryVariable,
|
|
7546
7546
|
isArbitraryLength
|
|
7547
7547
|
] }],
|
|
7548
|
-
"text-decoration-color": [{ decoration:
|
|
7548
|
+
"text-decoration-color": [{ decoration: B() }],
|
|
7549
7549
|
"underline-offset": [{ "underline-offset": [
|
|
7550
7550
|
isNumber,
|
|
7551
7551
|
"auto",
|
|
@@ -7627,9 +7627,9 @@ var concatArrays = (e, t) => {
|
|
|
7627
7627
|
"padding",
|
|
7628
7628
|
"content"
|
|
7629
7629
|
] }],
|
|
7630
|
-
"bg-position": [{ bg:
|
|
7631
|
-
"bg-repeat": [{ bg:
|
|
7632
|
-
"bg-size": [{ bg:
|
|
7630
|
+
"bg-position": [{ bg: Up() }],
|
|
7631
|
+
"bg-repeat": [{ bg: V() }],
|
|
7632
|
+
"bg-size": [{ bg: H() }],
|
|
7633
7633
|
"bg-image": [{ bg: [
|
|
7634
7634
|
"none",
|
|
7635
7635
|
{
|
|
@@ -7662,67 +7662,67 @@ var concatArrays = (e, t) => {
|
|
|
7662
7662
|
isArbitraryVariableImage,
|
|
7663
7663
|
isArbitraryImage
|
|
7664
7664
|
] }],
|
|
7665
|
-
"bg-color": [{ bg:
|
|
7666
|
-
"gradient-from-pos": [{ from:
|
|
7667
|
-
"gradient-via-pos": [{ via:
|
|
7668
|
-
"gradient-to-pos": [{ to:
|
|
7669
|
-
"gradient-from": [{ from:
|
|
7670
|
-
"gradient-via": [{ via:
|
|
7671
|
-
"gradient-to": [{ to:
|
|
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":
|
|
7665
|
+
"bg-color": [{ bg: B() }],
|
|
7666
|
+
"gradient-from-pos": [{ from: U() }],
|
|
7667
|
+
"gradient-via-pos": [{ via: U() }],
|
|
7668
|
+
"gradient-to-pos": [{ to: U() }],
|
|
7669
|
+
"gradient-from": [{ from: B() }],
|
|
7670
|
+
"gradient-via": [{ via: B() }],
|
|
7671
|
+
"gradient-to": [{ to: B() }],
|
|
7672
|
+
rounded: [{ rounded: W() }],
|
|
7673
|
+
"rounded-s": [{ "rounded-s": W() }],
|
|
7674
|
+
"rounded-e": [{ "rounded-e": W() }],
|
|
7675
|
+
"rounded-t": [{ "rounded-t": W() }],
|
|
7676
|
+
"rounded-r": [{ "rounded-r": W() }],
|
|
7677
|
+
"rounded-b": [{ "rounded-b": W() }],
|
|
7678
|
+
"rounded-l": [{ "rounded-l": W() }],
|
|
7679
|
+
"rounded-ss": [{ "rounded-ss": W() }],
|
|
7680
|
+
"rounded-se": [{ "rounded-se": W() }],
|
|
7681
|
+
"rounded-ee": [{ "rounded-ee": W() }],
|
|
7682
|
+
"rounded-es": [{ "rounded-es": W() }],
|
|
7683
|
+
"rounded-tl": [{ "rounded-tl": W() }],
|
|
7684
|
+
"rounded-tr": [{ "rounded-tr": W() }],
|
|
7685
|
+
"rounded-br": [{ "rounded-br": W() }],
|
|
7686
|
+
"rounded-bl": [{ "rounded-bl": W() }],
|
|
7687
|
+
"border-w": [{ border: G() }],
|
|
7688
|
+
"border-w-x": [{ "border-x": G() }],
|
|
7689
|
+
"border-w-y": [{ "border-y": G() }],
|
|
7690
|
+
"border-w-s": [{ "border-s": G() }],
|
|
7691
|
+
"border-w-e": [{ "border-e": G() }],
|
|
7692
|
+
"border-w-bs": [{ "border-bs": G() }],
|
|
7693
|
+
"border-w-be": [{ "border-be": G() }],
|
|
7694
|
+
"border-w-t": [{ "border-t": G() }],
|
|
7695
|
+
"border-w-r": [{ "border-r": G() }],
|
|
7696
|
+
"border-w-b": [{ "border-b": G() }],
|
|
7697
|
+
"border-w-l": [{ "border-l": G() }],
|
|
7698
|
+
"divide-x": [{ "divide-x": G() }],
|
|
7699
7699
|
"divide-x-reverse": ["divide-x-reverse"],
|
|
7700
|
-
"divide-y": [{ "divide-y":
|
|
7700
|
+
"divide-y": [{ "divide-y": G() }],
|
|
7701
7701
|
"divide-y-reverse": ["divide-y-reverse"],
|
|
7702
7702
|
"border-style": [{ border: [
|
|
7703
|
-
...
|
|
7703
|
+
...Wp(),
|
|
7704
7704
|
"hidden",
|
|
7705
7705
|
"none"
|
|
7706
7706
|
] }],
|
|
7707
7707
|
"divide-style": [{ divide: [
|
|
7708
|
-
...
|
|
7708
|
+
...Wp(),
|
|
7709
7709
|
"hidden",
|
|
7710
7710
|
"none"
|
|
7711
7711
|
] }],
|
|
7712
|
-
"border-color": [{ border:
|
|
7713
|
-
"border-color-x": [{ "border-x":
|
|
7714
|
-
"border-color-y": [{ "border-y":
|
|
7715
|
-
"border-color-s": [{ "border-s":
|
|
7716
|
-
"border-color-e": [{ "border-e":
|
|
7717
|
-
"border-color-bs": [{ "border-bs":
|
|
7718
|
-
"border-color-be": [{ "border-be":
|
|
7719
|
-
"border-color-t": [{ "border-t":
|
|
7720
|
-
"border-color-r": [{ "border-r":
|
|
7721
|
-
"border-color-b": [{ "border-b":
|
|
7722
|
-
"border-color-l": [{ "border-l":
|
|
7723
|
-
"divide-color": [{ divide:
|
|
7712
|
+
"border-color": [{ border: B() }],
|
|
7713
|
+
"border-color-x": [{ "border-x": B() }],
|
|
7714
|
+
"border-color-y": [{ "border-y": B() }],
|
|
7715
|
+
"border-color-s": [{ "border-s": B() }],
|
|
7716
|
+
"border-color-e": [{ "border-e": B() }],
|
|
7717
|
+
"border-color-bs": [{ "border-bs": B() }],
|
|
7718
|
+
"border-color-be": [{ "border-be": B() }],
|
|
7719
|
+
"border-color-t": [{ "border-t": B() }],
|
|
7720
|
+
"border-color-r": [{ "border-r": B() }],
|
|
7721
|
+
"border-color-b": [{ "border-b": B() }],
|
|
7722
|
+
"border-color-l": [{ "border-l": B() }],
|
|
7723
|
+
"divide-color": [{ divide: B() }],
|
|
7724
7724
|
"outline-style": [{ outline: [
|
|
7725
|
-
...
|
|
7725
|
+
...Wp(),
|
|
7726
7726
|
"none",
|
|
7727
7727
|
"hidden"
|
|
7728
7728
|
] }],
|
|
@@ -7737,7 +7737,7 @@ var concatArrays = (e, t) => {
|
|
|
7737
7737
|
isArbitraryVariableLength,
|
|
7738
7738
|
isArbitraryLength
|
|
7739
7739
|
] }],
|
|
7740
|
-
"outline-color": [{ outline:
|
|
7740
|
+
"outline-color": [{ outline: B() }],
|
|
7741
7741
|
shadow: [{ shadow: [
|
|
7742
7742
|
"",
|
|
7743
7743
|
"none",
|
|
@@ -7745,39 +7745,39 @@ var concatArrays = (e, t) => {
|
|
|
7745
7745
|
isArbitraryVariableShadow,
|
|
7746
7746
|
isArbitraryShadow
|
|
7747
7747
|
] }],
|
|
7748
|
-
"shadow-color": [{ shadow:
|
|
7748
|
+
"shadow-color": [{ shadow: B() }],
|
|
7749
7749
|
"inset-shadow": [{ "inset-shadow": [
|
|
7750
7750
|
"none",
|
|
7751
7751
|
p,
|
|
7752
7752
|
isArbitraryVariableShadow,
|
|
7753
7753
|
isArbitraryShadow
|
|
7754
7754
|
] }],
|
|
7755
|
-
"inset-shadow-color": [{ "inset-shadow":
|
|
7756
|
-
"ring-w": [{ ring:
|
|
7755
|
+
"inset-shadow-color": [{ "inset-shadow": B() }],
|
|
7756
|
+
"ring-w": [{ ring: G() }],
|
|
7757
7757
|
"ring-w-inset": ["ring-inset"],
|
|
7758
|
-
"ring-color": [{ ring:
|
|
7758
|
+
"ring-color": [{ ring: B() }],
|
|
7759
7759
|
"ring-offset-w": [{ "ring-offset": [isNumber, isArbitraryLength] }],
|
|
7760
|
-
"ring-offset-color": [{ "ring-offset":
|
|
7761
|
-
"inset-ring-w": [{ "inset-ring":
|
|
7762
|
-
"inset-ring-color": [{ "inset-ring":
|
|
7760
|
+
"ring-offset-color": [{ "ring-offset": B() }],
|
|
7761
|
+
"inset-ring-w": [{ "inset-ring": G() }],
|
|
7762
|
+
"inset-ring-color": [{ "inset-ring": B() }],
|
|
7763
7763
|
"text-shadow": [{ "text-shadow": [
|
|
7764
7764
|
"none",
|
|
7765
7765
|
m,
|
|
7766
7766
|
isArbitraryVariableShadow,
|
|
7767
7767
|
isArbitraryShadow
|
|
7768
7768
|
] }],
|
|
7769
|
-
"text-shadow-color": [{ "text-shadow":
|
|
7769
|
+
"text-shadow-color": [{ "text-shadow": B() }],
|
|
7770
7770
|
opacity: [{ opacity: [
|
|
7771
7771
|
isNumber,
|
|
7772
7772
|
isArbitraryVariable,
|
|
7773
7773
|
isArbitraryValue
|
|
7774
7774
|
] }],
|
|
7775
7775
|
"mix-blend": [{ "mix-blend": [
|
|
7776
|
-
...
|
|
7776
|
+
...Gp(),
|
|
7777
7777
|
"plus-darker",
|
|
7778
7778
|
"plus-lighter"
|
|
7779
7779
|
] }],
|
|
7780
|
-
"bg-blend": [{ "bg-blend":
|
|
7780
|
+
"bg-blend": [{ "bg-blend": Gp() }],
|
|
7781
7781
|
"mask-clip": [{ "mask-clip": [
|
|
7782
7782
|
"border",
|
|
7783
7783
|
"padding",
|
|
@@ -7793,39 +7793,39 @@ 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":
|
|
7798
|
-
"mask-image-linear-from-color": [{ "mask-linear-from":
|
|
7799
|
-
"mask-image-linear-to-color": [{ "mask-linear-to":
|
|
7800
|
-
"mask-image-t-from-pos": [{ "mask-t-from":
|
|
7801
|
-
"mask-image-t-to-pos": [{ "mask-t-to":
|
|
7802
|
-
"mask-image-t-from-color": [{ "mask-t-from":
|
|
7803
|
-
"mask-image-t-to-color": [{ "mask-t-to":
|
|
7804
|
-
"mask-image-r-from-pos": [{ "mask-r-from":
|
|
7805
|
-
"mask-image-r-to-pos": [{ "mask-r-to":
|
|
7806
|
-
"mask-image-r-from-color": [{ "mask-r-from":
|
|
7807
|
-
"mask-image-r-to-color": [{ "mask-r-to":
|
|
7808
|
-
"mask-image-b-from-pos": [{ "mask-b-from":
|
|
7809
|
-
"mask-image-b-to-pos": [{ "mask-b-to":
|
|
7810
|
-
"mask-image-b-from-color": [{ "mask-b-from":
|
|
7811
|
-
"mask-image-b-to-color": [{ "mask-b-to":
|
|
7812
|
-
"mask-image-l-from-pos": [{ "mask-l-from":
|
|
7813
|
-
"mask-image-l-to-pos": [{ "mask-l-to":
|
|
7814
|
-
"mask-image-l-from-color": [{ "mask-l-from":
|
|
7815
|
-
"mask-image-l-to-color": [{ "mask-l-to":
|
|
7816
|
-
"mask-image-x-from-pos": [{ "mask-x-from":
|
|
7817
|
-
"mask-image-x-to-pos": [{ "mask-x-to":
|
|
7818
|
-
"mask-image-x-from-color": [{ "mask-x-from":
|
|
7819
|
-
"mask-image-x-to-color": [{ "mask-x-to":
|
|
7820
|
-
"mask-image-y-from-pos": [{ "mask-y-from":
|
|
7821
|
-
"mask-image-y-to-pos": [{ "mask-y-to":
|
|
7822
|
-
"mask-image-y-from-color": [{ "mask-y-from":
|
|
7823
|
-
"mask-image-y-to-color": [{ "mask-y-to":
|
|
7796
|
+
"mask-image-linear-from-pos": [{ "mask-linear-from": K() }],
|
|
7797
|
+
"mask-image-linear-to-pos": [{ "mask-linear-to": K() }],
|
|
7798
|
+
"mask-image-linear-from-color": [{ "mask-linear-from": B() }],
|
|
7799
|
+
"mask-image-linear-to-color": [{ "mask-linear-to": B() }],
|
|
7800
|
+
"mask-image-t-from-pos": [{ "mask-t-from": K() }],
|
|
7801
|
+
"mask-image-t-to-pos": [{ "mask-t-to": K() }],
|
|
7802
|
+
"mask-image-t-from-color": [{ "mask-t-from": B() }],
|
|
7803
|
+
"mask-image-t-to-color": [{ "mask-t-to": B() }],
|
|
7804
|
+
"mask-image-r-from-pos": [{ "mask-r-from": K() }],
|
|
7805
|
+
"mask-image-r-to-pos": [{ "mask-r-to": K() }],
|
|
7806
|
+
"mask-image-r-from-color": [{ "mask-r-from": B() }],
|
|
7807
|
+
"mask-image-r-to-color": [{ "mask-r-to": B() }],
|
|
7808
|
+
"mask-image-b-from-pos": [{ "mask-b-from": K() }],
|
|
7809
|
+
"mask-image-b-to-pos": [{ "mask-b-to": K() }],
|
|
7810
|
+
"mask-image-b-from-color": [{ "mask-b-from": B() }],
|
|
7811
|
+
"mask-image-b-to-color": [{ "mask-b-to": B() }],
|
|
7812
|
+
"mask-image-l-from-pos": [{ "mask-l-from": K() }],
|
|
7813
|
+
"mask-image-l-to-pos": [{ "mask-l-to": K() }],
|
|
7814
|
+
"mask-image-l-from-color": [{ "mask-l-from": B() }],
|
|
7815
|
+
"mask-image-l-to-color": [{ "mask-l-to": B() }],
|
|
7816
|
+
"mask-image-x-from-pos": [{ "mask-x-from": K() }],
|
|
7817
|
+
"mask-image-x-to-pos": [{ "mask-x-to": K() }],
|
|
7818
|
+
"mask-image-x-from-color": [{ "mask-x-from": B() }],
|
|
7819
|
+
"mask-image-x-to-color": [{ "mask-x-to": B() }],
|
|
7820
|
+
"mask-image-y-from-pos": [{ "mask-y-from": K() }],
|
|
7821
|
+
"mask-image-y-to-pos": [{ "mask-y-to": K() }],
|
|
7822
|
+
"mask-image-y-from-color": [{ "mask-y-from": B() }],
|
|
7823
|
+
"mask-image-y-to-color": [{ "mask-y-to": B() }],
|
|
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":
|
|
7827
|
-
"mask-image-radial-from-color": [{ "mask-radial-from":
|
|
7828
|
-
"mask-image-radial-to-color": [{ "mask-radial-to":
|
|
7825
|
+
"mask-image-radial-from-pos": [{ "mask-radial-from": K() }],
|
|
7826
|
+
"mask-image-radial-to-pos": [{ "mask-radial-to": K() }],
|
|
7827
|
+
"mask-image-radial-from-color": [{ "mask-radial-from": B() }],
|
|
7828
|
+
"mask-image-radial-to-color": [{ "mask-radial-to": B() }],
|
|
7829
7829
|
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
|
|
7830
7830
|
"mask-image-radial-size": [{ "mask-radial": [{
|
|
7831
7831
|
closest: ["side", "corner"],
|
|
@@ -7833,10 +7833,10 @@ 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":
|
|
7838
|
-
"mask-image-conic-from-color": [{ "mask-conic-from":
|
|
7839
|
-
"mask-image-conic-to-color": [{ "mask-conic-to":
|
|
7836
|
+
"mask-image-conic-from-pos": [{ "mask-conic-from": K() }],
|
|
7837
|
+
"mask-image-conic-to-pos": [{ "mask-conic-to": K() }],
|
|
7838
|
+
"mask-image-conic-from-color": [{ "mask-conic-from": B() }],
|
|
7839
|
+
"mask-image-conic-to-color": [{ "mask-conic-to": B() }],
|
|
7840
7840
|
"mask-mode": [{ mask: [
|
|
7841
7841
|
"alpha",
|
|
7842
7842
|
"luminance",
|
|
@@ -7850,9 +7850,9 @@ var concatArrays = (e, t) => {
|
|
|
7850
7850
|
"stroke",
|
|
7851
7851
|
"view"
|
|
7852
7852
|
] }],
|
|
7853
|
-
"mask-position": [{ mask:
|
|
7854
|
-
"mask-repeat": [{ mask:
|
|
7855
|
-
"mask-size": [{ mask:
|
|
7853
|
+
"mask-position": [{ mask: Up() }],
|
|
7854
|
+
"mask-repeat": [{ mask: V() }],
|
|
7855
|
+
"mask-size": [{ mask: H() }],
|
|
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: Kp() }],
|
|
7869
7869
|
brightness: [{ brightness: [
|
|
7870
7870
|
isNumber,
|
|
7871
7871
|
isArbitraryVariable,
|
|
@@ -7883,7 +7883,7 @@ var concatArrays = (e, t) => {
|
|
|
7883
7883
|
isArbitraryVariableShadow,
|
|
7884
7884
|
isArbitraryShadow
|
|
7885
7885
|
] }],
|
|
7886
|
-
"drop-shadow-color": [{ "drop-shadow":
|
|
7886
|
+
"drop-shadow-color": [{ "drop-shadow": B() }],
|
|
7887
7887
|
grayscale: [{ grayscale: [
|
|
7888
7888
|
"",
|
|
7889
7889
|
isNumber,
|
|
@@ -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": Kp() }],
|
|
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: q() }],
|
|
8015
|
+
"rotate-x": [{ "rotate-x": q() }],
|
|
8016
|
+
"rotate-y": [{ "rotate-y": q() }],
|
|
8017
|
+
"rotate-z": [{ "rotate-z": q() }],
|
|
8018
|
+
scale: [{ scale: J() }],
|
|
8019
|
+
"scale-x": [{ "scale-x": J() }],
|
|
8020
|
+
"scale-y": [{ "scale-y": J() }],
|
|
8021
|
+
"scale-z": [{ "scale-z": J() }],
|
|
8022
8022
|
"scale-3d": ["scale-3d"],
|
|
8023
|
-
skew: [{ skew:
|
|
8024
|
-
"skew-x": [{ "skew-x":
|
|
8025
|
-
"skew-y": [{ "skew-y":
|
|
8023
|
+
skew: [{ skew: Y() }],
|
|
8024
|
+
"skew-x": [{ "skew-x": Y() }],
|
|
8025
|
+
"skew-y": [{ "skew-y": Y() }],
|
|
8026
8026
|
transform: [{ transform: [
|
|
8027
8027
|
isArbitraryVariable,
|
|
8028
8028
|
isArbitraryValue,
|
|
@@ -8033,14 +8033,14 @@ 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: Z() }],
|
|
8037
|
+
"translate-x": [{ "translate-x": Z() }],
|
|
8038
|
+
"translate-y": [{ "translate-y": Z() }],
|
|
8039
|
+
"translate-z": [{ "translate-z": Z() }],
|
|
8040
8040
|
"translate-none": ["translate-none"],
|
|
8041
|
-
accent: [{ accent:
|
|
8041
|
+
accent: [{ accent: B() }],
|
|
8042
8042
|
appearance: [{ appearance: ["none", "auto"] }],
|
|
8043
|
-
"caret-color": [{ caret:
|
|
8043
|
+
"caret-color": [{ caret: B() }],
|
|
8044
8044
|
"color-scheme": [{ scheme: [
|
|
8045
8045
|
"normal",
|
|
8046
8046
|
"dark",
|
|
@@ -8164,14 +8164,14 @@ var concatArrays = (e, t) => {
|
|
|
8164
8164
|
isArbitraryVariable,
|
|
8165
8165
|
isArbitraryValue
|
|
8166
8166
|
] }],
|
|
8167
|
-
fill: [{ fill: ["none", ...
|
|
8167
|
+
fill: [{ fill: ["none", ...B()] }],
|
|
8168
8168
|
"stroke-w": [{ stroke: [
|
|
8169
8169
|
isNumber,
|
|
8170
8170
|
isArbitraryVariableLength,
|
|
8171
8171
|
isArbitraryLength,
|
|
8172
8172
|
isArbitraryNumber
|
|
8173
8173
|
] }],
|
|
8174
|
-
stroke: [{ stroke: ["none", ...
|
|
8174
|
+
stroke: [{ stroke: ["none", ...B()] }],
|
|
8175
8175
|
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
|
|
8176
8176
|
},
|
|
8177
8177
|
conflictingClassGroups: {
|
|
@@ -8427,42 +8427,42 @@ const createSipService = (e, t = {}) => {
|
|
|
8427
8427
|
typeof o.setSinkId == "function" && await o.setSinkId(e);
|
|
8428
8428
|
}, L = (e) => {
|
|
8429
8429
|
l.value = e;
|
|
8430
|
-
},
|
|
8430
|
+
}, R = (e, t) => {
|
|
8431
8431
|
let n = !1, i = e.sessionDescriptionHandler;
|
|
8432
8432
|
return i?.peerConnection && i.peerConnection.getSenders().forEach((e) => {
|
|
8433
8433
|
e.track && e.track.kind === "audio" && (e.track.enabled = t, n = !0);
|
|
8434
8434
|
}), n;
|
|
8435
|
-
},
|
|
8435
|
+
}, z = (e) => {
|
|
8436
8436
|
let t = !1;
|
|
8437
8437
|
return d.value && d.value.getAudioTracks().forEach((n) => {
|
|
8438
8438
|
n.enabled = e, t = !0;
|
|
8439
8439
|
}), t;
|
|
8440
|
-
},
|
|
8441
|
-
let n = !(t?.isHeld || t?.isMuted), i =
|
|
8440
|
+
}, B = (e, t) => {
|
|
8441
|
+
let n = !(t?.isHeld || t?.isMuted), i = R(e, n), a = z(n);
|
|
8442
8442
|
!i && !a && console.warn("[SipJs] No audio tracks found to apply channel audio state");
|
|
8443
|
-
},
|
|
8443
|
+
}, Up = (t) => {
|
|
8444
8444
|
for (let [n, i] of a.value.entries()) if (i === t) return e.channels.value.find((e) => e.id === n) || null;
|
|
8445
8445
|
return e.activeChannel.value || null;
|
|
8446
|
-
},
|
|
8446
|
+
}, V = async (e) => {
|
|
8447
8447
|
let t = e.sessionDescriptionHandler?.peerConnection;
|
|
8448
8448
|
if (!t) return;
|
|
8449
|
-
let n =
|
|
8449
|
+
let n = Up(e), i = !(n?.isHeld || n?.isMuted), a = t.getSenders().find((e) => e.track?.kind === "audio");
|
|
8450
8450
|
if (a?.track) {
|
|
8451
8451
|
a.track.enabled = i, n && M(e, n.id);
|
|
8452
8452
|
return;
|
|
8453
8453
|
}
|
|
8454
8454
|
try {
|
|
8455
|
-
let [a] = (await navigator.mediaDevices.getUserMedia(
|
|
8455
|
+
let [a] = (await navigator.mediaDevices.getUserMedia(H(!1))).getAudioTracks();
|
|
8456
8456
|
if (!a) return;
|
|
8457
8457
|
a.enabled = i;
|
|
8458
8458
|
let o = new MediaStream([a]);
|
|
8459
8459
|
d.value = o;
|
|
8460
8460
|
let s = t.getSenders().find((e) => e.track === null);
|
|
8461
|
-
s ? await s.replaceTrack(a) : t.addTrack(a, o),
|
|
8461
|
+
s ? await s.replaceTrack(a) : t.addTrack(a, o), B(e, n), n && M(e, n.id);
|
|
8462
8462
|
} catch (e) {
|
|
8463
8463
|
console.warn("[SipJs] Failed to recover outbound audio track:", e);
|
|
8464
8464
|
}
|
|
8465
|
-
},
|
|
8465
|
+
}, H = (e = !1) => {
|
|
8466
8466
|
let t = {
|
|
8467
8467
|
echoCancellation: { ideal: !0 },
|
|
8468
8468
|
noiseSuppression: { ideal: !1 },
|
|
@@ -8473,7 +8473,17 @@ const createSipService = (e, t = {}) => {
|
|
|
8473
8473
|
audio: t,
|
|
8474
8474
|
video: e
|
|
8475
8475
|
};
|
|
8476
|
-
},
|
|
8476
|
+
}, U = 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
|
+
} });
|
|
8486
|
+
}, W = async (t) => {
|
|
8477
8487
|
if (!n.value) {
|
|
8478
8488
|
try {
|
|
8479
8489
|
(await navigator.mediaDevices.getUserMedia({ audio: !0 })).getTracks().forEach((e) => e.stop());
|
|
@@ -8493,14 +8503,14 @@ 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) => Kp(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 U(), Wp();
|
|
8501
8511
|
} catch {}
|
|
8502
8512
|
}
|
|
8503
|
-
},
|
|
8513
|
+
}, Wp = () => {
|
|
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 () => {
|
|
@@ -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 U();
|
|
8543
8553
|
} catch {}
|
|
8544
8554
|
} catch (e) {
|
|
8545
8555
|
console.error("[SipJs] Reconnection failed:", e);
|
|
8546
8556
|
}
|
|
8547
8557
|
}
|
|
8548
|
-
},
|
|
8558
|
+
}, K = 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
|
+
}, Kp = (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) {
|
|
@@ -8607,11 +8617,11 @@ const createSipService = (e, t = {}) => {
|
|
|
8607
8617
|
m.add(i), e.updateChannelState(i, {
|
|
8608
8618
|
status: "connected",
|
|
8609
8619
|
startTime: Date.now()
|
|
8610
|
-
}), j(i, "connected"), e.activeChannelId.value === i && (
|
|
8620
|
+
}), j(i, "connected"), e.activeChannelId.value === i && ($(t), V(t).then(() => M(t, i))), P();
|
|
8611
8621
|
break;
|
|
8612
8622
|
}
|
|
8613
8623
|
});
|
|
8614
|
-
},
|
|
8624
|
+
}, q = 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;
|
|
@@ -8632,7 +8642,7 @@ const createSipService = (e, t = {}) => {
|
|
|
8632
8642
|
m.add(o), e.channels.value.find((e) => e.id === o)?.status !== "connected" && (e.updateChannelState(o, {
|
|
8633
8643
|
status: "connected",
|
|
8634
8644
|
startTime: Date.now()
|
|
8635
|
-
}), j(o, "connected"),
|
|
8645
|
+
}), j(o, "connected"), $(l), V(l).then(() => M(l, o)), P());
|
|
8636
8646
|
break;
|
|
8637
8647
|
case SessionState.Terminated: {
|
|
8638
8648
|
let n = e.channels.value.find((e) => e.id === o);
|
|
@@ -8666,35 +8676,35 @@ const createSipService = (e, t = {}) => {
|
|
|
8666
8676
|
}
|
|
8667
8677
|
});
|
|
8668
8678
|
let u = {
|
|
8669
|
-
sessionDescriptionHandlerOptions: { constraints:
|
|
8679
|
+
sessionDescriptionHandlerOptions: { constraints: H(i) },
|
|
8670
8680
|
requestDelegate: {
|
|
8671
8681
|
onProgress: (t) => {
|
|
8672
|
-
(t.message.statusCode === 180 || t.message.statusCode === 183) && (t.message.body && (e.updateChannelState(o, { hasEarlyMedia: !0 }),
|
|
8682
|
+
(t.message.statusCode === 180 || t.message.statusCode === 183) && (t.message.body && (e.updateChannelState(o, { hasEarlyMedia: !0 }), $(l)), P());
|
|
8673
8683
|
},
|
|
8674
8684
|
onAccept: (t) => {
|
|
8675
8685
|
e.channels.value.find((e) => e.id === o)?.status !== "connected" && (m.add(o), e.updateChannelState(o, {
|
|
8676
8686
|
status: "connected",
|
|
8677
8687
|
startTime: Date.now()
|
|
8678
|
-
}), j(o, "connected"),
|
|
8688
|
+
}), j(o, "connected"), $(l), V(l).then(() => M(l, o)), P());
|
|
8679
8689
|
}
|
|
8680
8690
|
}
|
|
8681
8691
|
};
|
|
8682
8692
|
await l.invite(u);
|
|
8683
|
-
},
|
|
8693
|
+
}, J = async (t = !1) => {
|
|
8684
8694
|
let n = e.activeChannelId.value, i = a.value.get(n);
|
|
8685
8695
|
if (i instanceof Invitation && i.state === SessionState.Initial) {
|
|
8686
8696
|
for (let [t, n] of a.value.entries()) if (t !== e.activeChannelId.value && n.state === SessionState.Established && !e.channels.value.find((e) => e.id === t)?.isHeld) try {
|
|
8687
|
-
await
|
|
8697
|
+
await qp(n, !0), e.updateChannelState(t, { isHeld: !0 });
|
|
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: H(t) } };
|
|
8692
8702
|
e.updateChannelState(n, {
|
|
8693
8703
|
status: "connected",
|
|
8694
8704
|
startTime: Date.now()
|
|
8695
8705
|
});
|
|
8696
8706
|
try {
|
|
8697
|
-
await i.accept(o), await
|
|
8707
|
+
await i.accept(o), await V(i), P();
|
|
8698
8708
|
} catch (t) {
|
|
8699
8709
|
let i = a.value.get(n);
|
|
8700
8710
|
throw i instanceof Invitation && i.state === SessionState.Initial && e.updateChannelState(n, {
|
|
@@ -8703,7 +8713,7 @@ const createSipService = (e, t = {}) => {
|
|
|
8703
8713
|
}), t;
|
|
8704
8714
|
}
|
|
8705
8715
|
}
|
|
8706
|
-
},
|
|
8716
|
+
}, Y = async () => {
|
|
8707
8717
|
let t = a.value.get(e.activeChannelId.value);
|
|
8708
8718
|
if (t) switch (t.state) {
|
|
8709
8719
|
case SessionState.Initial:
|
|
@@ -8714,33 +8724,33 @@ const createSipService = (e, t = {}) => {
|
|
|
8714
8724
|
await t.bye();
|
|
8715
8725
|
break;
|
|
8716
8726
|
}
|
|
8717
|
-
},
|
|
8727
|
+
}, Z = () => {
|
|
8718
8728
|
let t = a.value.get(e.activeChannelId.value);
|
|
8719
8729
|
if (!t) return;
|
|
8720
8730
|
let n = !e.isMuted.value;
|
|
8721
|
-
e.setMuted(n),
|
|
8722
|
-
},
|
|
8731
|
+
e.setMuted(n), B(t, e.channels.value.find((t) => t.id === e.activeChannelId.value));
|
|
8732
|
+
}, qp = async (e, t) => {
|
|
8723
8733
|
let n = { sessionDescriptionHandlerOptions: { hold: t } };
|
|
8724
8734
|
await e.invite(n);
|
|
8725
|
-
},
|
|
8735
|
+
}, Q = 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
|
-
await
|
|
8740
|
+
await qp(t, n), e.setHeld(n), B(t, e.channels.value.find((t) => t.id === e.activeChannelId.value));
|
|
8731
8741
|
} catch {}
|
|
8732
|
-
},
|
|
8742
|
+
}, Jp = 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);
|
|
8736
8746
|
if (i && i.state === SessionState.Established && !s?.isHeld) try {
|
|
8737
|
-
await
|
|
8747
|
+
await qp(i, !0), e.updateChannelState(n, { isHeld: !0 }), B(i, e.channels.value.find((e) => e.id === n));
|
|
8738
8748
|
} catch {}
|
|
8739
8749
|
if (e.setActiveChannelId(t), P(), o && o.state === SessionState.Established) {
|
|
8740
8750
|
if (l?.isHeld) try {
|
|
8741
|
-
await
|
|
8751
|
+
await qp(o, !1), e.updateChannelState(t, { isHeld: !1 });
|
|
8742
8752
|
} catch {}
|
|
8743
|
-
|
|
8753
|
+
B(o, e.channels.value.find((e) => e.id === t)), $(o);
|
|
8744
8754
|
} else tm();
|
|
8745
8755
|
}, Yp = (t) => {
|
|
8746
8756
|
let n = a.value.get(e.activeChannelId.value);
|
|
@@ -8753,7 +8763,7 @@ const createSipService = (e, t = {}) => {
|
|
|
8753
8763
|
n.info(i);
|
|
8754
8764
|
}, Xp = (t, n) => {
|
|
8755
8765
|
let i = e.channels.value.find((e) => e.id === t);
|
|
8756
|
-
!i || i.status !== "connected" || (
|
|
8766
|
+
!i || i.status !== "connected" || ($(n), B(n, i), V(n), o.play().catch(() => {}));
|
|
8757
8767
|
}, Zp = 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);
|
|
@@ -8813,19 +8823,19 @@ const createSipService = (e, t = {}) => {
|
|
|
8813
8823
|
let o = e.channels.value.find((e) => e.status === "idle");
|
|
8814
8824
|
if (console.log("[SipJs] Canal de consulta encontrado:", o?.id), !o) throw console.error("[SipJs] ❌ No hay canales disponibles para llamada de consulta"), Error("No available channel for consultation call");
|
|
8815
8825
|
try {
|
|
8816
|
-
console.log("[SipJs] 🔇 Poniendo llamada original en hold..."), await
|
|
8826
|
+
console.log("[SipJs] 🔇 Poniendo llamada original en hold..."), await qp(i, !0), e.updateChannelState(n, { isHeld: !0 }), console.log("[SipJs] ✅ Llamada original en hold");
|
|
8817
8827
|
} catch (e) {
|
|
8818
8828
|
throw console.error("[SipJs] ❌ Failed to hold original call:", e), Error("Failed to put call on hold");
|
|
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 q(t, !1), console.log("[SipJs] ✅ Llamada de consulta iniciada"), e.setTransferInProgress({
|
|
8823
8833
|
originalChannelId: n,
|
|
8824
8834
|
consultationChannelId: o.id,
|
|
8825
8835
|
targetNumber: t
|
|
8826
8836
|
}), console.log("[SipJs] 📋 Transferencia en progreso registrada");
|
|
8827
8837
|
} catch (t) {
|
|
8828
|
-
throw console.error("[SipJs] ❌ Failed to start consultation call:", t), console.log("[SipJs] 🔄 Volviendo al canal original y quitando hold..."), e.setActiveChannelId(n), await
|
|
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 qp(i, !1).catch(() => {}), e.updateChannelState(n, { isHeld: !1 }), Error("Failed to initiate consultation call");
|
|
8829
8839
|
}
|
|
8830
8840
|
}, $p = async () => {
|
|
8831
8841
|
console.log("[SipJs] 🔄 completeAttendedTransfer iniciado");
|
|
@@ -8881,12 +8891,12 @@ const createSipService = (e, t = {}) => {
|
|
|
8881
8891
|
console.warn("[SipJs] Error ending consultation:", e);
|
|
8882
8892
|
}
|
|
8883
8893
|
if (n) try {
|
|
8884
|
-
e.setActiveChannelId(t.originalChannelId), await
|
|
8894
|
+
e.setActiveChannelId(t.originalChannelId), await qp(n, !1), e.updateChannelState(t.originalChannelId, { isHeld: !1 }), console.log("[SipJs] Returned to original call");
|
|
8885
8895
|
} catch (e) {
|
|
8886
8896
|
console.warn("[SipJs] Error resuming original call:", e);
|
|
8887
8897
|
}
|
|
8888
8898
|
e.setTransferInProgress(null);
|
|
8889
|
-
},
|
|
8899
|
+
}, $ = (e) => {
|
|
8890
8900
|
let t = e.sessionDescriptionHandler;
|
|
8891
8901
|
if (!t) {
|
|
8892
8902
|
console.error("[SipJs] setupRemoteMedia: no sessionDescriptionHandler");
|
|
@@ -8899,8 +8909,8 @@ const createSipService = (e, t = {}) => {
|
|
|
8899
8909
|
}
|
|
8900
8910
|
if (u.value === n) return;
|
|
8901
8911
|
o.pause(), o.srcObject = null, g?.abort(), g = new AbortController(), u.value = n, d.value = t.localMediaStream ?? null;
|
|
8902
|
-
let i =
|
|
8903
|
-
|
|
8912
|
+
let i = Up(e);
|
|
8913
|
+
B(e, i), i && M(e, i.id);
|
|
8904
8914
|
let a = (e) => {
|
|
8905
8915
|
_?.abort(), _ = new AbortController();
|
|
8906
8916
|
let { signal: t } = _, n = () => {
|
|
@@ -8921,19 +8931,19 @@ const createSipService = (e, t = {}) => {
|
|
|
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
|
-
initUserAgent:
|
|
8925
|
-
stop:
|
|
8926
|
-
makeCall:
|
|
8927
|
-
answerCall:
|
|
8928
|
-
hangupCall:
|
|
8929
|
-
toggleMute:
|
|
8930
|
-
toggleHold:
|
|
8934
|
+
initUserAgent: W,
|
|
8935
|
+
stop: K,
|
|
8936
|
+
makeCall: q,
|
|
8937
|
+
answerCall: J,
|
|
8938
|
+
hangupCall: Y,
|
|
8939
|
+
toggleMute: Z,
|
|
8940
|
+
toggleHold: Q,
|
|
8931
8941
|
sendDTMF: Yp,
|
|
8932
8942
|
transferCall: Zp,
|
|
8933
8943
|
startAttendedTransfer: Qp,
|
|
8934
8944
|
completeAttendedTransfer: $p,
|
|
8935
8945
|
cancelAttendedTransfer: em,
|
|
8936
|
-
switchChannel:
|
|
8946
|
+
switchChannel: Jp,
|
|
8937
8947
|
extension: x,
|
|
8938
8948
|
setVolume: F,
|
|
8939
8949
|
setNotificationVolume: D,
|
|
@@ -16263,62 +16273,66 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
16263
16273
|
if (!t.isConnected) return "wp:text-status-disconnected";
|
|
16264
16274
|
let e = p.value;
|
|
16265
16275
|
return e && e.status !== "idle" ? e.isHeld || e.status === "held" ? "wp:text-status-hold" : e.status === "incoming" ? "wp:text-status-incoming" : "wp:text-primary" : "wp:text-primary";
|
|
16266
|
-
}), v = ref(!1), y = ref(null), b = ref(null)
|
|
16276
|
+
}), v = ref(!1), y = ref(null), b = ref(null), x = (e) => e.replace(/[^0-9*#]/g, ""), S = (e) => {
|
|
16277
|
+
e.ctrlKey || e.metaKey || e.altKey || e.key.length !== 1 || /[0-9*#]/.test(e.key) || e.preventDefault();
|
|
16278
|
+
}, T = (e) => {
|
|
16279
|
+
e.data && x(e.data) !== e.data && e.preventDefault();
|
|
16280
|
+
};
|
|
16267
16281
|
onClickOutside(y, () => {
|
|
16268
16282
|
v.value = !1;
|
|
16269
16283
|
});
|
|
16270
|
-
let
|
|
16284
|
+
let E = computed({
|
|
16271
16285
|
get: () => p.value?.keypadValue || "",
|
|
16272
16286
|
set: (e) => {
|
|
16273
|
-
p.value && t.updateChannelState(p.value.id, { keypadValue: e });
|
|
16287
|
+
p.value && t.updateChannelState(p.value.id, { keypadValue: x(e) });
|
|
16274
16288
|
}
|
|
16275
|
-
}),
|
|
16276
|
-
if (!
|
|
16277
|
-
let e =
|
|
16289
|
+
}), D = computed(() => /^[0-9*#]+$/.test(E.value)), O = computed(() => {
|
|
16290
|
+
if (!E.value) return o.contacts.slice(0, 10);
|
|
16291
|
+
let e = E.value.toLowerCase(), t = [];
|
|
16278
16292
|
for (let n of o.contacts) if ((n.name.toLowerCase().includes(e) || n.number.includes(e)) && (t.push(n), t.length >= 10)) break;
|
|
16279
16293
|
return t;
|
|
16280
|
-
}),
|
|
16281
|
-
p.value && t.updateChannelState(p.value.id, { keypadValue: e.number }), v.value = !1;
|
|
16282
|
-
},
|
|
16283
|
-
!
|
|
16294
|
+
}), k = (e) => {
|
|
16295
|
+
p.value && t.updateChannelState(p.value.id, { keypadValue: x(e.number) }), v.value = !1;
|
|
16296
|
+
}, j = () => {
|
|
16297
|
+
!E.value || !D.value || (v.value = !1, i.makeCall(E.value));
|
|
16284
16298
|
};
|
|
16285
|
-
watch(
|
|
16299
|
+
watch(E, () => {
|
|
16286
16300
|
v.value = !0;
|
|
16287
16301
|
});
|
|
16288
|
-
let
|
|
16289
|
-
|
|
16290
|
-
},
|
|
16302
|
+
let M = () => {
|
|
16303
|
+
E.value && D.value && j();
|
|
16304
|
+
}, N = () => {
|
|
16291
16305
|
v.value = !1;
|
|
16292
|
-
},
|
|
16306
|
+
}, P = () => {
|
|
16293
16307
|
v.value = !0;
|
|
16294
|
-
},
|
|
16308
|
+
}, F = () => {
|
|
16295
16309
|
setTimeout(() => {
|
|
16296
16310
|
v.value = !1;
|
|
16297
16311
|
}, 150);
|
|
16298
|
-
},
|
|
16312
|
+
}, I = ref(Date.now());
|
|
16299
16313
|
useIntervalFn(() => {
|
|
16300
|
-
|
|
16314
|
+
I.value = Date.now();
|
|
16301
16315
|
}, 1e3);
|
|
16302
|
-
let
|
|
16316
|
+
let L = computed(() => {
|
|
16303
16317
|
let e = p.value?.startTime, t = p.value?.status || "idle";
|
|
16304
16318
|
if (!e || t !== "connected") return "00:00:00";
|
|
16305
|
-
let n = Math.floor((
|
|
16319
|
+
let n = Math.floor((I.value - e) / 1e3);
|
|
16306
16320
|
return n < 0 ? "00:00:00" : `${Math.floor(n / 3600).toString().padStart(2, "0")}:${Math.floor(n % 3600 / 60).toString().padStart(2, "0")}:${(n % 60).toString().padStart(2, "0")}`;
|
|
16307
|
-
}),
|
|
16321
|
+
}), z = computed(() => {
|
|
16308
16322
|
if (!o.isOnline) return "Sin internet";
|
|
16309
16323
|
if (!t.isConnected) return "Sin conexión";
|
|
16310
16324
|
let e = p.value, n = e?.status || "idle";
|
|
16311
16325
|
return n === "idle" ? "Disponible" : n === "calling" ? "Llamando..." : e?.isHeld ? `En espera - ${e.remoteNumber || e.keypadValue || "Unknown"}` : n === "connected" ? "Conectado" : n.charAt(0).toUpperCase() + n.slice(1);
|
|
16312
|
-
}),
|
|
16326
|
+
}), B = (e) => {
|
|
16313
16327
|
if (!e) return "";
|
|
16314
16328
|
let t = e.trim(), n = t.startsWith("+"), i = t.replace(/[^\d]/g, "");
|
|
16315
16329
|
return n ? `+${i}` : i;
|
|
16316
|
-
},
|
|
16330
|
+
}, H = computed(() => {
|
|
16317
16331
|
let e = p.value, t = e?.remoteNumber || e?.keypadValue, n = e?.remoteDisplayName;
|
|
16318
16332
|
if (!t) return "Unknown";
|
|
16319
|
-
let i =
|
|
16333
|
+
let i = B(t), a = o.contacts?.find((e) => B(e.number) === i);
|
|
16320
16334
|
return a ? a.name : n || t;
|
|
16321
|
-
}),
|
|
16335
|
+
}), U = computed(() => {
|
|
16322
16336
|
let e = p.value;
|
|
16323
16337
|
return e?.remoteNumber || e?.keypadValue || "";
|
|
16324
16338
|
});
|
|
@@ -16329,11 +16343,11 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
16329
16343
|
(p.value?.status || "idle") === "connected" ? (openBlock(), createElementBlock("div", {
|
|
16330
16344
|
key: 0,
|
|
16331
16345
|
class: normalizeClass([_.value, "webphone-display__connected-status wp:w-full wp:flex wp:items-center wp:justify-between wp:gap-2 wp:text-3xl wp:font-light wp:mb-5"])
|
|
16332
|
-
}, [createElementVNode("div", _hoisted_2$4, [createVNode(unref(icon_phone_default), { class: "webphone-display__connected-status-icon wp:w-4 wp:h-4" }), i[3] ||= createElementVNode("span", { class: "webphone-display__connected-status-text wp:text-sm wp:montserrat wp:font-medium" }, "En llamada", -1)]), createElementVNode("span", _hoisted_3$4, toDisplayString(
|
|
16346
|
+
}, [createElementVNode("div", _hoisted_2$4, [createVNode(unref(icon_phone_default), { class: "webphone-display__connected-status-icon wp:w-4 wp:h-4" }), i[3] ||= createElementVNode("span", { class: "webphone-display__connected-status-text wp:text-sm wp:montserrat wp:font-medium" }, "En llamada", -1)]), createElementVNode("span", _hoisted_3$4, toDisplayString(L.value), 1)], 2)) : createCommentVNode("", !0),
|
|
16333
16347
|
o.user ? (openBlock(), createElementBlock("span", {
|
|
16334
16348
|
key: 1,
|
|
16335
16349
|
class: normalizeClass([_.value, "webphone-display__user wp:font-bold wp:text-lg wp:flex wp:items-center wp:gap-1 wp:transition-colors wp:duration-300"])
|
|
16336
|
-
}, [createElementVNode("div", _hoisted_4$4, [createVNode(unref(icon_phone_default), { class: "webphone-display__user-icon wp:size-6 wp:shrink-0 montserrat" }), createTextVNode(" " + toDisplayString(o.user), 1)]), createElementVNode("div", { class: normalizeClass(["webphone-display__status-text wp:font-semibold wp:tracking-wider wp:text-sm wp:text-[var(--color-primary)] montserrat", _.value]) }, toDisplayString(
|
|
16350
|
+
}, [createElementVNode("div", _hoisted_4$4, [createVNode(unref(icon_phone_default), { class: "webphone-display__user-icon wp:size-6 wp:shrink-0 montserrat" }), createTextVNode(" " + toDisplayString(o.user), 1)]), createElementVNode("div", { class: normalizeClass(["webphone-display__status-text wp:font-semibold wp:tracking-wider wp:text-sm wp:text-[var(--color-primary)] montserrat", _.value]) }, toDisplayString(z.value), 3)], 2)) : createCommentVNode("", !0),
|
|
16337
16351
|
(p.value?.status || "idle") === "idle" && o.allowInput ? (openBlock(), createElementBlock("div", _hoisted_5$4, [createElementVNode("div", {
|
|
16338
16352
|
class: "webphone-display__dialer-container wp:relative wp:w-full wp:max-w-80",
|
|
16339
16353
|
ref_key: "containerRef",
|
|
@@ -16372,11 +16386,19 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
16372
16386
|
createVNode(unref(Input_default), {
|
|
16373
16387
|
ref_key: "inputRef",
|
|
16374
16388
|
ref: b,
|
|
16375
|
-
modelValue:
|
|
16376
|
-
"onUpdate:modelValue": i[1] ||= (e) =>
|
|
16377
|
-
|
|
16378
|
-
|
|
16379
|
-
|
|
16389
|
+
modelValue: E.value,
|
|
16390
|
+
"onUpdate:modelValue": i[1] ||= (e) => E.value = e,
|
|
16391
|
+
type: "text",
|
|
16392
|
+
inputmode: "tel",
|
|
16393
|
+
pattern: "[0-9*#]*",
|
|
16394
|
+
onFocus: P,
|
|
16395
|
+
onBlur: F,
|
|
16396
|
+
onKeydown: [
|
|
16397
|
+
S,
|
|
16398
|
+
withKeys(M, ["enter"]),
|
|
16399
|
+
withKeys(N, ["escape"])
|
|
16400
|
+
],
|
|
16401
|
+
onBeforeinput: T,
|
|
16380
16402
|
placeholder: "Ingresa el numero a llamar...",
|
|
16381
16403
|
class: "p-input webphone-display__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"
|
|
16382
16404
|
}, null, 8, ["modelValue"]),
|
|
@@ -16384,14 +16406,14 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
16384
16406
|
class: "webphone-display__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",
|
|
16385
16407
|
onClick: i[2] ||= withModifiers((e) => unref(t).backspaceKeypad(), ["stop"])
|
|
16386
16408
|
}, [createVNode(unref(IconDelete_default), { class: "webphone-display__backspace-icon wp:w-[15px] wp:h-[15px] wp:text-black wp:hover:text-status-disconnected wp:dark:text-neutral-100 wp:dark:hover:text-status-disconnected wp:transition-colors" })])
|
|
16387
|
-
]), withDirectives(createElementVNode("div", _hoisted_7$4, [
|
|
16409
|
+
]), withDirectives(createElementVNode("div", _hoisted_7$4, [D.value ? (openBlock(), createElementBlock("div", {
|
|
16388
16410
|
key: 0,
|
|
16389
16411
|
class: "webphone-display__suggestion webphone-display__suggestion--raw wp:cursor-pointer wp:hover:bg-accent wp:flex wp:items-center wp:gap-2 wp:p-2 wp:px-3 wp:text-sm",
|
|
16390
|
-
onPointerdown: withModifiers(
|
|
16391
|
-
}, [createVNode(unref(Phone), { class: "webphone-display__suggestion-icon wp:w-4 wp:h-4 wp:shrink-0" }), createElementVNode("span", null, "Marcar " + toDisplayString(
|
|
16412
|
+
onPointerdown: withModifiers(j, ["prevent"])
|
|
16413
|
+
}, [createVNode(unref(Phone), { class: "webphone-display__suggestion-icon wp:w-4 wp:h-4 wp:shrink-0" }), createElementVNode("span", null, "Marcar " + toDisplayString(E.value), 1)], 32)) : createCommentVNode("", !0), (openBlock(!0), createElementBlock(Fragment, null, renderList(O.value, (e) => (openBlock(), createElementBlock("div", {
|
|
16392
16414
|
key: e.number,
|
|
16393
16415
|
class: "webphone-display__suggestion webphone-display__suggestion--contact wp:cursor-pointer wp:hover:bg-accent wp:flex wp:items-center wp:gap-2 wp:p-2 wp:px-3 wp:text-sm",
|
|
16394
|
-
onPointerdown: withModifiers((t) =>
|
|
16416
|
+
onPointerdown: withModifiers((t) => k(e), ["prevent"])
|
|
16395
16417
|
}, [createElementVNode("div", { class: normalizeClass(unref(cn)("webphone-display__contact-badge wp:flex wp:items-center wp:justify-center wp:w-6 wp:h-6 wp:rounded-full wp:shrink-0", e.type === "extension" ? "wp:bg-blue-100 wp:text-blue-600 wp:dark:bg-blue-900/30 wp:dark:text-blue-400" : e.type === "contact" ? "wp:bg-emerald-100 wp:text-emerald-600 wp:dark:bg-emerald-900/30 wp:dark:text-emerald-400" : e.type === "voicemail" ? "wp:bg-purple-100 wp:text-purple-600 wp:dark:bg-purple-900/30 wp:dark:text-purple-400" : e.type === "tool" ? "wp:bg-amber-100 wp:text-amber-600 wp:dark:bg-amber-900/30 wp:dark:text-amber-400" : "wp:bg-neutral-100 wp:text-neutral-600 wp:dark:bg-neutral-800 wp:dark:text-neutral-400")) }, [e.type === "extension" ? (openBlock(), createBlock(unref(Building2), {
|
|
16396
16418
|
key: 0,
|
|
16397
16419
|
class: "wp:w-3 wp:h-3"
|
|
@@ -16407,7 +16429,7 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
16407
16429
|
})) : (openBlock(), createBlock(unref(CircleUser), {
|
|
16408
16430
|
key: 4,
|
|
16409
16431
|
class: "wp:w-3 wp:h-3"
|
|
16410
|
-
}))], 2), createElementVNode("div", _hoisted_9$4, [createElementVNode("span", _hoisted_10$3, toDisplayString(e.name), 1), createElementVNode("span", _hoisted_11$3, toDisplayString(e.number), 1)])], 40, _hoisted_8$4))), 128))], 512), [[vShow, v.value &&
|
|
16432
|
+
}))], 2), createElementVNode("div", _hoisted_9$4, [createElementVNode("span", _hoisted_10$3, toDisplayString(e.name), 1), createElementVNode("span", _hoisted_11$3, toDisplayString(e.number), 1)])], 40, _hoisted_8$4))), 128))], 512), [[vShow, v.value && E.value && (O.value.length > 0 || D.value)]])], 512)])) : (p.value?.status || "idle") === "connected" ? (openBlock(), createElementBlock("div", _hoisted_12$3, [createElementVNode("div", _hoisted_13$1, [createElementVNode("div", _hoisted_14$1, " En llamada con " + toDisplayString(H.value), 1), H.value === U.value ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", _hoisted_15$1, toDisplayString(U.value), 1))])])) : (p.value?.status || "idle") === "idle" ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", _hoisted_16$1, [createElementVNode("div", _hoisted_17$1, [createElementVNode("div", _hoisted_18, [createElementVNode("div", _hoisted_19, toDisplayString(H.value), 1), H.value === U.value ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", _hoisted_20, toDisplayString(U.value), 1))]), createVNode(unref(TooltipProvider_default), null, {
|
|
16411
16433
|
default: withCtx(() => [createVNode(unref(Tooltip_default), null, {
|
|
16412
16434
|
default: withCtx(() => [createVNode(unref(TooltipTrigger_default), { "as-child": "" }), createVNode(unref(TooltipContent_default), { class: "wp:flex wp:items-center wp:gap-2" }, {
|
|
16413
16435
|
default: withCtx(() => [createElementVNode("span", null, toDisplayString(unref(t).isKeypadVisible ? "Ocultar" : "Mostrar") + " teclado", 1), createVNode(unref(Kbd_default), null, {
|
|
@@ -17319,14 +17341,14 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17319
17341
|
onMounted(() => {
|
|
17320
17342
|
o.value = "documentPictureInPicture" in window, document.addEventListener("visibilitychange", y), window.addEventListener("blur", b);
|
|
17321
17343
|
}), onUnmounted(() => {
|
|
17322
|
-
document.removeEventListener("visibilitychange", y), window.removeEventListener("blur", b), g &&= (clearTimeout(g), null), S(),
|
|
17344
|
+
document.removeEventListener("visibilitychange", y), window.removeEventListener("blur", b), g &&= (clearTimeout(g), null), S(), z();
|
|
17323
17345
|
});
|
|
17324
17346
|
let _ = () => {
|
|
17325
17347
|
let e = i.callStatus !== "idle", t = document.hidden || !document.hasFocus();
|
|
17326
17348
|
return i.autoOpenOnBlur !== !1 && e && o.value && t && !l.value && !u.value;
|
|
17327
17349
|
}, v = () => {
|
|
17328
17350
|
_() && (g && clearTimeout(g), g = setTimeout(() => {
|
|
17329
|
-
_() &&
|
|
17351
|
+
_() && R();
|
|
17330
17352
|
}, 120));
|
|
17331
17353
|
}, y = () => {
|
|
17332
17354
|
v();
|
|
@@ -17343,9 +17365,9 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17343
17365
|
return `${t.toString().padStart(2, "0")}:${n.toString().padStart(2, "0")}`;
|
|
17344
17366
|
};
|
|
17345
17367
|
watch(() => i.callStatus, (e, t) => {
|
|
17346
|
-
e === "connected" && t !== "connected" ? x() : e === "idle" && t !== "idle" && (S(), l.value &&
|
|
17368
|
+
e === "connected" && t !== "connected" ? x() : e === "idle" && t !== "idle" && (S(), l.value && z());
|
|
17347
17369
|
}, { immediate: !0 }), watch(() => i.isConnected, (e) => {
|
|
17348
|
-
!e && l.value && (S(),
|
|
17370
|
+
!e && l.value && (S(), z());
|
|
17349
17371
|
}), watch(() => [
|
|
17350
17372
|
i.callStatus,
|
|
17351
17373
|
i.isMuted,
|
|
@@ -17419,7 +17441,7 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17419
17441
|
n.className = "pip-btn pip-btn-answer", n.title = "Contestar", n.innerHTML = E.phone, n.onclick = () => a("answer", !1), t.appendChild(n);
|
|
17420
17442
|
let o = e.createElement("button");
|
|
17421
17443
|
o.className = "pip-btn pip-btn-hangup", o.title = "Rechazar", o.innerHTML = E.phoneOff, o.onclick = () => {
|
|
17422
|
-
a("hangup"),
|
|
17444
|
+
a("hangup"), z();
|
|
17423
17445
|
}, t.appendChild(o);
|
|
17424
17446
|
} else if (i.callStatus === "connected") {
|
|
17425
17447
|
let n = e.createElement("button");
|
|
@@ -17430,12 +17452,12 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17430
17452
|
s.className = "pip-btn pip-btn-transfer", s.title = "Transferir", s.innerHTML = E.transfer, s.onclick = () => a("transfer"), t.appendChild(s);
|
|
17431
17453
|
let l = e.createElement("button");
|
|
17432
17454
|
l.className = "pip-btn pip-btn-hangup", l.title = "Colgar", l.innerHTML = E.phoneOff, l.onclick = () => {
|
|
17433
|
-
a("hangup"),
|
|
17455
|
+
a("hangup"), z();
|
|
17434
17456
|
}, t.appendChild(l);
|
|
17435
17457
|
} else if (i.callStatus === "calling") {
|
|
17436
17458
|
let n = e.createElement("button");
|
|
17437
17459
|
n.className = "pip-btn pip-btn-hangup", n.title = "Cancelar", n.innerHTML = E.phoneOff, n.onclick = () => {
|
|
17438
|
-
a("hangup"),
|
|
17460
|
+
a("hangup"), z();
|
|
17439
17461
|
}, t.appendChild(n);
|
|
17440
17462
|
}
|
|
17441
17463
|
}
|
|
@@ -17451,7 +17473,7 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17451
17473
|
}, 1e3));
|
|
17452
17474
|
}, L = () => {
|
|
17453
17475
|
m &&= (clearInterval(m), null);
|
|
17454
|
-
},
|
|
17476
|
+
}, R = async () => {
|
|
17455
17477
|
if (!(!o.value || l.value || u.value)) {
|
|
17456
17478
|
u.value = !0;
|
|
17457
17479
|
try {
|
|
@@ -17471,14 +17493,14 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17471
17493
|
u.value = !1;
|
|
17472
17494
|
}
|
|
17473
17495
|
}
|
|
17474
|
-
},
|
|
17496
|
+
}, z = () => {
|
|
17475
17497
|
L(), d.value && (d.value.close(), d.value = null, l.value = !1, a("update:active", !1));
|
|
17476
17498
|
};
|
|
17477
17499
|
return t({
|
|
17478
|
-
open:
|
|
17479
|
-
close:
|
|
17500
|
+
open: R,
|
|
17501
|
+
close: z,
|
|
17480
17502
|
toggle: () => {
|
|
17481
|
-
l.value ?
|
|
17503
|
+
l.value ? z() : R();
|
|
17482
17504
|
},
|
|
17483
17505
|
isActive: l,
|
|
17484
17506
|
isSupported: o,
|
|
@@ -17564,7 +17586,7 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17564
17586
|
provide("webphone", x), provide("sip", S), t({ stop: S.stop }), watchEffect(() => {
|
|
17565
17587
|
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
17588
|
});
|
|
17567
|
-
let O = ref(!1), k = ref(!1), j = ref(!1), N = ref(null), F = ref(null), L = ref(null),
|
|
17589
|
+
let O = ref(!1), k = ref(!1), j = ref(!1), N = ref(null), F = ref(null), L = ref(null), H = navigator.platform.toUpperCase().indexOf("MAC") >= 0 ? "⌘" : "Ctrl+", U = computed(() => o.mode === "webcall"), W = ref(0), G = (e) => !!e && e.getVideoTracks().length > 0;
|
|
17568
17590
|
watch(() => x.callStatus, (e) => {
|
|
17569
17591
|
if (e === "idle" && !x.isKeypadVisible) {
|
|
17570
17592
|
x.toggleKeypad();
|
|
@@ -17572,80 +17594,80 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17572
17594
|
}
|
|
17573
17595
|
e !== "idle" && x.isKeypadVisible && x.toggleKeypad();
|
|
17574
17596
|
});
|
|
17575
|
-
let
|
|
17597
|
+
let Gp = computed(() => x.channels.find((e) => e.id === x.activeChannelId) ?? null), K = (e) => {
|
|
17576
17598
|
if (!e) return "";
|
|
17577
17599
|
let t = e.trim(), n = t.startsWith("+"), i = t.replace(/[^\d]/g, "");
|
|
17578
17600
|
return n ? `+${i}` : i;
|
|
17579
|
-
},
|
|
17580
|
-
let e =
|
|
17581
|
-
return o.contacts.find((e) =>
|
|
17582
|
-
}),
|
|
17583
|
-
|
|
17584
|
-
},
|
|
17601
|
+
}, Kp = computed(() => {
|
|
17602
|
+
let e = Gp.value?.remoteNumber || x.remoteNumber, t = K(e);
|
|
17603
|
+
return o.contacts.find((e) => K(e.number) === t)?.name || e || "Llamada";
|
|
17604
|
+
}), q = computed(() => (W.value, !!Gp.value?.hasVideo || G(E.value) || G(D.value))), { isOnline: J } = useNetwork(), Y = computed(() => !J.value), Z = ref(null), Q = ref(!1), Zp = computed(() => o.enablePictureInPicture), em = () => {
|
|
17605
|
+
Zp.value && Z.value?.toggle();
|
|
17606
|
+
}, $ = async (e, t) => {
|
|
17585
17607
|
try {
|
|
17586
17608
|
t === "blind" ? await S.transferCall(e) : await S.startAttendedTransfer(e);
|
|
17587
17609
|
} catch (e) {
|
|
17588
17610
|
console.error("[WebPhone] Transfer error:", e), alert(e instanceof Error ? e.message : "Transfer failed. Please try again.");
|
|
17589
17611
|
}
|
|
17590
|
-
},
|
|
17612
|
+
}, tm = async () => {
|
|
17591
17613
|
try {
|
|
17592
17614
|
await S.completeAttendedTransfer();
|
|
17593
17615
|
} catch (e) {
|
|
17594
17616
|
console.error("[WebPhone] Complete transfer error:", e), alert(e instanceof Error ? e.message : "Failed to complete transfer.");
|
|
17595
17617
|
}
|
|
17596
|
-
},
|
|
17618
|
+
}, nm = async () => {
|
|
17597
17619
|
try {
|
|
17598
17620
|
await S.cancelAttendedTransfer();
|
|
17599
17621
|
} catch (e) {
|
|
17600
17622
|
console.error("[WebPhone] Cancel transfer error:", e), alert(e instanceof Error ? e.message : "Failed to cancel transfer.");
|
|
17601
17623
|
}
|
|
17602
|
-
},
|
|
17624
|
+
}, rm = (e) => {
|
|
17603
17625
|
x.keypadValue = e, S.makeCall(e);
|
|
17604
|
-
},
|
|
17626
|
+
}, im = (e) => {
|
|
17605
17627
|
if (o.onAnswer) {
|
|
17606
17628
|
o.onAnswer(e);
|
|
17607
17629
|
return;
|
|
17608
17630
|
}
|
|
17609
17631
|
S.answerCall(e);
|
|
17610
|
-
},
|
|
17632
|
+
}, am = () => {
|
|
17611
17633
|
if (o.onHangup) {
|
|
17612
17634
|
o.onHangup();
|
|
17613
17635
|
return;
|
|
17614
17636
|
}
|
|
17615
17637
|
S.hangupCall();
|
|
17616
|
-
},
|
|
17638
|
+
}, om = () => {
|
|
17617
17639
|
if (o.onReject) {
|
|
17618
17640
|
o.onReject();
|
|
17619
17641
|
return;
|
|
17620
17642
|
}
|
|
17621
17643
|
S.hangupCall();
|
|
17644
|
+
}, sm = () => {
|
|
17645
|
+
j.value = !0, Z.value?.close(), window.focus();
|
|
17622
17646
|
}, cm = () => {
|
|
17623
|
-
|
|
17624
|
-
}, lm = () => {
|
|
17625
|
-
if (!Qp.value) return !1;
|
|
17647
|
+
if (!Zp.value) return !1;
|
|
17626
17648
|
let e = x.callStatus !== "idle", t = document.hidden || !document.hasFocus();
|
|
17627
|
-
return e && t && !
|
|
17628
|
-
},
|
|
17649
|
+
return e && t && !Q.value;
|
|
17650
|
+
}, lm = () => {
|
|
17629
17651
|
window.setTimeout(() => {
|
|
17630
|
-
|
|
17652
|
+
cm() && Z.value?.open();
|
|
17631
17653
|
}, 150);
|
|
17632
17654
|
};
|
|
17633
17655
|
watchEffect(() => {
|
|
17634
|
-
F.value && (
|
|
17656
|
+
F.value && (Q.value || !E.value ? F.value.srcObject = null : F.value.srcObject = E.value), L.value && (Q.value || !D.value ? L.value.srcObject = null : L.value.srcObject = D.value);
|
|
17635
17657
|
});
|
|
17636
17658
|
let um = (e) => {
|
|
17637
17659
|
if (!e || typeof e.addEventListener != "function" || typeof e.removeEventListener != "function") return () => {};
|
|
17638
17660
|
let t = () => {
|
|
17639
|
-
|
|
17661
|
+
W.value += 1;
|
|
17640
17662
|
};
|
|
17641
17663
|
return e.addEventListener("addtrack", t), e.addEventListener("removetrack", t), () => {
|
|
17642
17664
|
e.removeEventListener("addtrack", t), e.removeEventListener("removetrack", t);
|
|
17643
17665
|
};
|
|
17644
17666
|
};
|
|
17645
17667
|
watch(E, (e, t, n) => {
|
|
17646
|
-
|
|
17668
|
+
W.value += 1, n(um(e));
|
|
17647
17669
|
}, { immediate: !0 }), watch(D, (e, t, n) => {
|
|
17648
|
-
|
|
17670
|
+
W.value += 1, n(um(e));
|
|
17649
17671
|
}, { immediate: !0 });
|
|
17650
17672
|
let dm = [
|
|
17651
17673
|
"button",
|
|
@@ -17698,7 +17720,7 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17698
17720
|
], _m = ref(!1), vm = computed({
|
|
17699
17721
|
get: () => x.activeChannelId.toString(),
|
|
17700
17722
|
set: async (e) => {
|
|
17701
|
-
if (!
|
|
17723
|
+
if (!Y.value && e && !_m.value) {
|
|
17702
17724
|
_m.value = !0;
|
|
17703
17725
|
try {
|
|
17704
17726
|
await T(parseInt(e));
|
|
@@ -17714,9 +17736,9 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17714
17736
|
let t = x.channels.find((t) => t.id === e);
|
|
17715
17737
|
return t ? t.isHeld || t.status === "held" : !1;
|
|
17716
17738
|
}, xm = (e) => {
|
|
17717
|
-
|
|
17739
|
+
Y.value || (vm.value = e.toString());
|
|
17718
17740
|
}, Sm = (e) => {
|
|
17719
|
-
if (!
|
|
17741
|
+
if (!Y.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
17742
|
"1",
|
|
17721
17743
|
"2",
|
|
17722
17744
|
"3"
|
|
@@ -17729,14 +17751,14 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17729
17751
|
}
|
|
17730
17752
|
};
|
|
17731
17753
|
watch(() => x.callStatus, () => {
|
|
17732
|
-
|
|
17754
|
+
cm() && lm();
|
|
17733
17755
|
}), watch(() => x.isConnected, (e) => {
|
|
17734
17756
|
v.value && a.set(v.value, e);
|
|
17735
|
-
}, { immediate: !0 }), watch(
|
|
17736
|
-
!e &&
|
|
17757
|
+
}, { immediate: !0 }), watch(Zp, (e) => {
|
|
17758
|
+
!e && Q.value && Z.value?.close();
|
|
17737
17759
|
});
|
|
17738
17760
|
let Cm = ref(!1), wm = async () => {
|
|
17739
|
-
Cm.value ||
|
|
17761
|
+
Cm.value || Y.value || !o.host || !o.extension || !o.password || (await w({
|
|
17740
17762
|
uri: `sip:${o.extension}@${o.host}`,
|
|
17741
17763
|
transportOptions: { server: _.value },
|
|
17742
17764
|
authorizationUsername: o.extension,
|
|
@@ -17750,22 +17772,22 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17750
17772
|
await S.stop(), Cm.value = !1;
|
|
17751
17773
|
}
|
|
17752
17774
|
}), onMounted(async () => {
|
|
17753
|
-
window.addEventListener("keydown", Sm), document.addEventListener("visibilitychange",
|
|
17754
|
-
}), watch(() =>
|
|
17775
|
+
window.addEventListener("keydown", Sm), document.addEventListener("visibilitychange", lm), window.addEventListener("blur", lm), window.addEventListener("pagehide", lm), !(o.mode === "webcall" && (!o.to || !o.logo)) && await wm();
|
|
17776
|
+
}), watch(() => J.value, async (e) => {
|
|
17755
17777
|
e && await wm();
|
|
17756
17778
|
}), onUnmounted(() => {
|
|
17757
|
-
S.stop(), window.removeEventListener("keydown", Sm), document.removeEventListener("visibilitychange",
|
|
17779
|
+
S.stop(), window.removeEventListener("keydown", Sm), document.removeEventListener("visibilitychange", lm), window.removeEventListener("blur", lm), window.removeEventListener("pagehide", lm);
|
|
17758
17780
|
}), (e, t) => (openBlock(), createElementBlock(Fragment, null, [
|
|
17759
17781
|
createElementVNode("div", {
|
|
17760
17782
|
ref_key: "phoneRef",
|
|
17761
17783
|
ref: N,
|
|
17762
17784
|
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",
|
|
17785
|
+
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", Y.value ? "wp:opacity-70" : ""]),
|
|
17764
17786
|
"data-mode": o.mode,
|
|
17765
17787
|
"data-call-status": x.callStatus,
|
|
17766
|
-
"data-network-status":
|
|
17788
|
+
"data-network-status": Y.value ? "offline" : "online"
|
|
17767
17789
|
}, [
|
|
17768
|
-
|
|
17790
|
+
q.value && !Q.value ? (openBlock(), createElementBlock("div", _hoisted_2, [createElementVNode("video", {
|
|
17769
17791
|
ref_key: "remoteVideoRef",
|
|
17770
17792
|
ref: F,
|
|
17771
17793
|
autoplay: "",
|
|
@@ -17780,14 +17802,14 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17780
17802
|
class: "webphone__video-local wp:w-full wp:h-full wp:object-cover"
|
|
17781
17803
|
}, null, 512)])])) : createCommentVNode("", !0),
|
|
17782
17804
|
createElementVNode("div", _hoisted_4, [
|
|
17783
|
-
|
|
17805
|
+
U.value ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", _hoisted_5, [createElementVNode("div", _hoisted_6, [
|
|
17784
17806
|
createElementVNode("div", _hoisted_7, [(openBlock(), createElementBlock(Fragment, null, renderList(gm, (e) => createElementVNode("button", {
|
|
17785
17807
|
key: e.value,
|
|
17786
17808
|
type: "button",
|
|
17787
17809
|
role: "radio",
|
|
17788
17810
|
"aria-checked": vm.value === e.value.toString(),
|
|
17789
|
-
disabled:
|
|
17790
|
-
title: `${e.label} (${unref(
|
|
17811
|
+
disabled: Y.value,
|
|
17812
|
+
title: `${e.label} (${unref(H)}${e.value + 1})`,
|
|
17791
17813
|
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
17814
|
"data-channel-id": e.value,
|
|
17793
17815
|
"data-state": vm.value === e.value.toString() ? "active" : "idle",
|
|
@@ -17803,9 +17825,9 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17803
17825
|
default: withCtx(() => [createVNode(unref(Button_default), {
|
|
17804
17826
|
variant: "ghost",
|
|
17805
17827
|
size: "icon",
|
|
17806
|
-
class: normalizeClass(["wp:h-8 wp:w-8 wp:rounded-full",
|
|
17828
|
+
class: normalizeClass(["wp:h-8 wp:w-8 wp:rounded-full", Q.value ? "wp:text-primary" : ""]),
|
|
17807
17829
|
title: "Picture-in-Picture",
|
|
17808
|
-
onClick:
|
|
17830
|
+
onClick: em
|
|
17809
17831
|
}, {
|
|
17810
17832
|
default: withCtx(() => [createVNode(unref(PictureInPicture2), { class: "wp:w-4 wp:h-4 wp:text-[var(--color-settings)]" })]),
|
|
17811
17833
|
_: 1
|
|
@@ -17834,7 +17856,7 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17834
17856
|
_: 1
|
|
17835
17857
|
}), createVNode(unref(TooltipContent_default), { class: "wp:flex wp:items-center wp:gap-2" }, {
|
|
17836
17858
|
default: withCtx(() => [t[9] ||= createElementVNode("span", null, "Configuración", -1), createVNode(unref(Kbd_default), null, {
|
|
17837
|
-
default: withCtx(() => [createTextVNode(toDisplayString(unref(
|
|
17859
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(H)) + ",", 1)]),
|
|
17838
17860
|
_: 1
|
|
17839
17861
|
})]),
|
|
17840
17862
|
_: 1
|
|
@@ -17847,9 +17869,9 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17847
17869
|
createElementVNode("div", _hoisted_9, [(openBlock(!0), createElementBlock(Fragment, null, renderList(x.channels, (e) => withDirectives((openBlock(), createBlock(CallDisplay_default, {
|
|
17848
17870
|
key: e.id,
|
|
17849
17871
|
"channel-id": e.id,
|
|
17850
|
-
"allow-input": !
|
|
17851
|
-
"is-web-call":
|
|
17852
|
-
"is-online": unref(
|
|
17872
|
+
"allow-input": !U.value,
|
|
17873
|
+
"is-web-call": U.value,
|
|
17874
|
+
"is-online": unref(J),
|
|
17853
17875
|
contacts: o.contacts,
|
|
17854
17876
|
user: o.extension
|
|
17855
17877
|
}, null, 8, [
|
|
@@ -17866,15 +17888,15 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17866
17888
|
}, [createVNode(KeyPad_default)], 10, _hoisted_10),
|
|
17867
17889
|
createVNode(CallActions_default, {
|
|
17868
17890
|
class: "webphone__actions",
|
|
17869
|
-
style: normalizeStyle(
|
|
17870
|
-
destination:
|
|
17891
|
+
style: normalizeStyle(Y.value ? "pointer-events: none;" : void 0),
|
|
17892
|
+
destination: U.value ? o.to : void 0,
|
|
17871
17893
|
"is-video": o.mode === "video",
|
|
17872
17894
|
"on-answer": o.onAnswer,
|
|
17873
17895
|
"on-hangup": o.onHangup,
|
|
17874
17896
|
"on-reject": o.onReject,
|
|
17875
17897
|
onTransfer: t[1] ||= (e) => j.value = !0,
|
|
17876
|
-
onCompleteTransfer:
|
|
17877
|
-
onCancelTransfer:
|
|
17898
|
+
onCompleteTransfer: tm,
|
|
17899
|
+
onCancelTransfer: nm
|
|
17878
17900
|
}, null, 8, [
|
|
17879
17901
|
"style",
|
|
17880
17902
|
"destination",
|
|
@@ -17884,8 +17906,8 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17884
17906
|
"on-reject"
|
|
17885
17907
|
])
|
|
17886
17908
|
]),
|
|
17887
|
-
|
|
17888
|
-
|
|
17909
|
+
Y.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),
|
|
17910
|
+
U.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
17911
|
href: "https://www.nebula123.com",
|
|
17890
17912
|
target: "_blank",
|
|
17891
17913
|
class: "webphone__footer-link wp:text-[10px] wp:text-primary wp:hover:underline"
|
|
@@ -17899,36 +17921,36 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17899
17921
|
visible: k.value,
|
|
17900
17922
|
"onUpdate:visible": t[3] ||= (e) => k.value = e,
|
|
17901
17923
|
contacts: o.contacts,
|
|
17902
|
-
onCall:
|
|
17924
|
+
onCall: rm
|
|
17903
17925
|
}, null, 8, ["visible", "contacts"]),
|
|
17904
17926
|
createVNode(TransferDialog_default, {
|
|
17905
17927
|
visible: j.value,
|
|
17906
17928
|
"onUpdate:visible": t[4] ||= (e) => j.value = e,
|
|
17907
17929
|
contacts: o.contacts,
|
|
17908
|
-
onTransfer:
|
|
17930
|
+
onTransfer: $
|
|
17909
17931
|
}, null, 8, ["visible", "contacts"]),
|
|
17910
17932
|
createVNode(DocumentPip_default, {
|
|
17911
17933
|
ref_key: "documentPipRef",
|
|
17912
|
-
ref:
|
|
17913
|
-
active:
|
|
17914
|
-
"onUpdate:active": t[5] ||= (e) =>
|
|
17915
|
-
"auto-open-on-blur":
|
|
17934
|
+
ref: Z,
|
|
17935
|
+
active: Q.value,
|
|
17936
|
+
"onUpdate:active": t[5] ||= (e) => Q.value = e,
|
|
17937
|
+
"auto-open-on-blur": Zp.value,
|
|
17916
17938
|
"is-connected": x.isConnected,
|
|
17917
17939
|
"remote-number": x.remoteNumber,
|
|
17918
|
-
"caller-name":
|
|
17919
|
-
"has-video":
|
|
17940
|
+
"caller-name": Kp.value,
|
|
17941
|
+
"has-video": q.value ?? !1,
|
|
17920
17942
|
"remote-stream": unref(E),
|
|
17921
17943
|
"local-stream": unref(D),
|
|
17922
|
-
destination:
|
|
17944
|
+
destination: U.value ? o.to : void 0,
|
|
17923
17945
|
"is-video": o.mode === "video",
|
|
17924
17946
|
"call-status": x.callStatus,
|
|
17925
17947
|
"is-muted": x.isMuted,
|
|
17926
17948
|
"is-held": x.isHeld,
|
|
17927
|
-
onTransfer:
|
|
17928
|
-
onTransferRequest:
|
|
17929
|
-
onHangup:
|
|
17930
|
-
onReject:
|
|
17931
|
-
onAnswer:
|
|
17949
|
+
onTransfer: sm,
|
|
17950
|
+
onTransferRequest: $,
|
|
17951
|
+
onHangup: am,
|
|
17952
|
+
onReject: om,
|
|
17953
|
+
onAnswer: im,
|
|
17932
17954
|
onToggleMute: t[6] ||= (e) => unref(S).toggleMute(),
|
|
17933
17955
|
onToggleHold: t[7] ||= (e) => unref(S).toggleHold()
|
|
17934
17956
|
}, null, 8, [
|