@tmsoft/webphone 3.0.20 → 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/dist/webphone.component.js +15 -15
- package/dist/webphone.es.js +352 -340
- 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,7 @@ const createSipService = (e, t = {}) => {
|
|
|
8473
8473
|
audio: t,
|
|
8474
8474
|
video: e
|
|
8475
8475
|
};
|
|
8476
|
-
},
|
|
8476
|
+
}, U = async () => {
|
|
8477
8477
|
let t = i.value;
|
|
8478
8478
|
t && await t.register({ requestDelegate: {
|
|
8479
8479
|
onAccept: () => {
|
|
@@ -8483,7 +8483,7 @@ const createSipService = (e, t = {}) => {
|
|
|
8483
8483
|
e.setConnected(!1);
|
|
8484
8484
|
}
|
|
8485
8485
|
} });
|
|
8486
|
-
},
|
|
8486
|
+
}, W = async (t) => {
|
|
8487
8487
|
if (!n.value) {
|
|
8488
8488
|
try {
|
|
8489
8489
|
(await navigator.mediaDevices.getUserMedia({ audio: !0 })).getTracks().forEach((e) => e.stop());
|
|
@@ -8505,16 +8505,16 @@ const createSipService = (e, t = {}) => {
|
|
|
8505
8505
|
delegate: {
|
|
8506
8506
|
onConnect: () => {},
|
|
8507
8507
|
onDisconnect: () => e.setConnected(!1),
|
|
8508
|
-
onInvite: (e) =>
|
|
8508
|
+
onInvite: (e) => Kp(e)
|
|
8509
8509
|
}
|
|
8510
|
-
}), 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();
|
|
8511
8511
|
} catch {}
|
|
8512
8512
|
}
|
|
8513
|
-
},
|
|
8513
|
+
}, Wp = () => {
|
|
8514
8514
|
v = new AbortController();
|
|
8515
8515
|
let { signal: t } = v, n = Date.now(), i = (e = 1e3) => {
|
|
8516
8516
|
y && clearTimeout(y), y = setTimeout(async () => {
|
|
8517
|
-
y = null, await
|
|
8517
|
+
y = null, await Gp();
|
|
8518
8518
|
}, e);
|
|
8519
8519
|
}, a = () => {
|
|
8520
8520
|
if (document.visibilityState === "visible") {
|
|
@@ -8537,7 +8537,7 @@ const createSipService = (e, t = {}) => {
|
|
|
8537
8537
|
}, { signal: t }), document.addEventListener("resume", () => {
|
|
8538
8538
|
console.log("[SipJs] Page resumed"), n = Date.now(), l(), i(1e3);
|
|
8539
8539
|
}, { signal: t }), l();
|
|
8540
|
-
},
|
|
8540
|
+
}, Gp = async () => {
|
|
8541
8541
|
if (n.value) {
|
|
8542
8542
|
if (!navigator.onLine) {
|
|
8543
8543
|
console.log("[SipJs] Skipping reconnect, device is offline");
|
|
@@ -8549,13 +8549,13 @@ const createSipService = (e, t = {}) => {
|
|
|
8549
8549
|
}
|
|
8550
8550
|
try {
|
|
8551
8551
|
if (n.value.isConnected() || (console.log("[SipJs] Reconnecting..."), await n.value.reconnect()), i.value && n.value.isConnected()) try {
|
|
8552
|
-
await
|
|
8552
|
+
await U();
|
|
8553
8553
|
} catch {}
|
|
8554
8554
|
} catch (e) {
|
|
8555
8555
|
console.error("[SipJs] Reconnection failed:", e);
|
|
8556
8556
|
}
|
|
8557
8557
|
}
|
|
8558
|
-
},
|
|
8558
|
+
}, K = async () => {
|
|
8559
8559
|
v?.abort(), v = null, y &&= (clearTimeout(y), null), b &&= (clearInterval(b), null);
|
|
8560
8560
|
let e = i.value, t = n.value;
|
|
8561
8561
|
if (i.value = null, n.value = null, e) try {
|
|
@@ -8568,7 +8568,7 @@ const createSipService = (e, t = {}) => {
|
|
|
8568
8568
|
} catch (e) {
|
|
8569
8569
|
console.warn("[SipJs] UserAgent stop failed:", e);
|
|
8570
8570
|
}
|
|
8571
|
-
},
|
|
8571
|
+
}, Kp = (t) => {
|
|
8572
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);
|
|
8573
8573
|
let n = e.channels.value.find((e) => e.status === "idle");
|
|
8574
8574
|
if (!n) {
|
|
@@ -8610,18 +8610,18 @@ const createSipService = (e, t = {}) => {
|
|
|
8610
8610
|
isHeld: !1,
|
|
8611
8611
|
hasVideo: !1,
|
|
8612
8612
|
hasEarlyMedia: !1
|
|
8613
|
-
}), a.value.delete(i), e.activeChannelId.value === i &&
|
|
8613
|
+
}), a.value.delete(i), e.activeChannelId.value === i && tm(), P();
|
|
8614
8614
|
break;
|
|
8615
8615
|
}
|
|
8616
8616
|
case SessionState.Established:
|
|
8617
8617
|
m.add(i), e.updateChannelState(i, {
|
|
8618
8618
|
status: "connected",
|
|
8619
8619
|
startTime: Date.now()
|
|
8620
|
-
}), j(i, "connected"), e.activeChannelId.value === i && (
|
|
8620
|
+
}), j(i, "connected"), e.activeChannelId.value === i && ($(t), V(t).then(() => M(t, i))), P();
|
|
8621
8621
|
break;
|
|
8622
8622
|
}
|
|
8623
8623
|
});
|
|
8624
|
-
},
|
|
8624
|
+
}, q = async (t, i = !1) => {
|
|
8625
8625
|
if (!n.value) return;
|
|
8626
8626
|
let o = e.activeChannelId.value;
|
|
8627
8627
|
if (a.value.has(o)) return;
|
|
@@ -8642,7 +8642,7 @@ const createSipService = (e, t = {}) => {
|
|
|
8642
8642
|
m.add(o), e.channels.value.find((e) => e.id === o)?.status !== "connected" && (e.updateChannelState(o, {
|
|
8643
8643
|
status: "connected",
|
|
8644
8644
|
startTime: Date.now()
|
|
8645
|
-
}), j(o, "connected"),
|
|
8645
|
+
}), j(o, "connected"), $(l), V(l).then(() => M(l, o)), P());
|
|
8646
8646
|
break;
|
|
8647
8647
|
case SessionState.Terminated: {
|
|
8648
8648
|
let n = e.channels.value.find((e) => e.id === o);
|
|
@@ -8670,41 +8670,41 @@ const createSipService = (e, t = {}) => {
|
|
|
8670
8670
|
startTime: void 0,
|
|
8671
8671
|
keypadValue: "",
|
|
8672
8672
|
hasVideo: !1
|
|
8673
|
-
}), a.value.delete(o), e.activeChannelId.value === o &&
|
|
8673
|
+
}), a.value.delete(o), e.activeChannelId.value === o && tm(), P();
|
|
8674
8674
|
break;
|
|
8675
8675
|
}
|
|
8676
8676
|
}
|
|
8677
8677
|
});
|
|
8678
8678
|
let u = {
|
|
8679
|
-
sessionDescriptionHandlerOptions: { constraints:
|
|
8679
|
+
sessionDescriptionHandlerOptions: { constraints: H(i) },
|
|
8680
8680
|
requestDelegate: {
|
|
8681
8681
|
onProgress: (t) => {
|
|
8682
|
-
(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());
|
|
8683
8683
|
},
|
|
8684
8684
|
onAccept: (t) => {
|
|
8685
8685
|
e.channels.value.find((e) => e.id === o)?.status !== "connected" && (m.add(o), e.updateChannelState(o, {
|
|
8686
8686
|
status: "connected",
|
|
8687
8687
|
startTime: Date.now()
|
|
8688
|
-
}), j(o, "connected"),
|
|
8688
|
+
}), j(o, "connected"), $(l), V(l).then(() => M(l, o)), P());
|
|
8689
8689
|
}
|
|
8690
8690
|
}
|
|
8691
8691
|
};
|
|
8692
8692
|
await l.invite(u);
|
|
8693
|
-
},
|
|
8693
|
+
}, J = async (t = !1) => {
|
|
8694
8694
|
let n = e.activeChannelId.value, i = a.value.get(n);
|
|
8695
8695
|
if (i instanceof Invitation && i.state === SessionState.Initial) {
|
|
8696
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 {
|
|
8697
|
-
await
|
|
8697
|
+
await qp(n, !0), e.updateChannelState(t, { isHeld: !0 });
|
|
8698
8698
|
} catch (e) {
|
|
8699
8699
|
console.error(`[SipJs] Failed to hold channel ${t}:`, e);
|
|
8700
8700
|
}
|
|
8701
|
-
let o = { sessionDescriptionHandlerOptions: { constraints:
|
|
8701
|
+
let o = { sessionDescriptionHandlerOptions: { constraints: H(t) } };
|
|
8702
8702
|
e.updateChannelState(n, {
|
|
8703
8703
|
status: "connected",
|
|
8704
8704
|
startTime: Date.now()
|
|
8705
8705
|
});
|
|
8706
8706
|
try {
|
|
8707
|
-
await i.accept(o), await
|
|
8707
|
+
await i.accept(o), await V(i), P();
|
|
8708
8708
|
} catch (t) {
|
|
8709
8709
|
let i = a.value.get(n);
|
|
8710
8710
|
throw i instanceof Invitation && i.state === SessionState.Initial && e.updateChannelState(n, {
|
|
@@ -8713,7 +8713,7 @@ const createSipService = (e, t = {}) => {
|
|
|
8713
8713
|
}), t;
|
|
8714
8714
|
}
|
|
8715
8715
|
}
|
|
8716
|
-
},
|
|
8716
|
+
}, Y = async () => {
|
|
8717
8717
|
let t = a.value.get(e.activeChannelId.value);
|
|
8718
8718
|
if (t) switch (t.state) {
|
|
8719
8719
|
case SessionState.Initial:
|
|
@@ -8724,35 +8724,35 @@ const createSipService = (e, t = {}) => {
|
|
|
8724
8724
|
await t.bye();
|
|
8725
8725
|
break;
|
|
8726
8726
|
}
|
|
8727
|
-
},
|
|
8727
|
+
}, Z = () => {
|
|
8728
8728
|
let t = a.value.get(e.activeChannelId.value);
|
|
8729
8729
|
if (!t) return;
|
|
8730
8730
|
let n = !e.isMuted.value;
|
|
8731
|
-
e.setMuted(n),
|
|
8732
|
-
},
|
|
8731
|
+
e.setMuted(n), B(t, e.channels.value.find((t) => t.id === e.activeChannelId.value));
|
|
8732
|
+
}, qp = async (e, t) => {
|
|
8733
8733
|
let n = { sessionDescriptionHandlerOptions: { hold: t } };
|
|
8734
8734
|
await e.invite(n);
|
|
8735
|
-
},
|
|
8735
|
+
}, Q = async () => {
|
|
8736
8736
|
let t = a.value.get(e.activeChannelId.value);
|
|
8737
8737
|
if (t?.state !== SessionState.Established) return;
|
|
8738
8738
|
let n = !e.isHeld.value;
|
|
8739
8739
|
try {
|
|
8740
|
-
await
|
|
8740
|
+
await qp(t, n), e.setHeld(n), B(t, e.channels.value.find((t) => t.id === e.activeChannelId.value));
|
|
8741
8741
|
} catch {}
|
|
8742
|
-
},
|
|
8742
|
+
}, Jp = async (t) => {
|
|
8743
8743
|
let n = e.activeChannelId.value;
|
|
8744
8744
|
if (n === t) return;
|
|
8745
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);
|
|
8746
8746
|
if (i && i.state === SessionState.Established && !s?.isHeld) try {
|
|
8747
|
-
await
|
|
8747
|
+
await qp(i, !0), e.updateChannelState(n, { isHeld: !0 }), B(i, e.channels.value.find((e) => e.id === n));
|
|
8748
8748
|
} catch {}
|
|
8749
8749
|
if (e.setActiveChannelId(t), P(), o && o.state === SessionState.Established) {
|
|
8750
8750
|
if (l?.isHeld) try {
|
|
8751
|
-
await
|
|
8751
|
+
await qp(o, !1), e.updateChannelState(t, { isHeld: !1 });
|
|
8752
8752
|
} catch {}
|
|
8753
|
-
|
|
8754
|
-
} else
|
|
8755
|
-
},
|
|
8753
|
+
B(o, e.channels.value.find((e) => e.id === t)), $(o);
|
|
8754
|
+
} else tm();
|
|
8755
|
+
}, Yp = (t) => {
|
|
8756
8756
|
let n = a.value.get(e.activeChannelId.value);
|
|
8757
8757
|
if (n?.state !== SessionState.Established) return;
|
|
8758
8758
|
let i = { requestOptions: { body: {
|
|
@@ -8761,10 +8761,10 @@ const createSipService = (e, t = {}) => {
|
|
|
8761
8761
|
contentDisposition: "signal"
|
|
8762
8762
|
} } };
|
|
8763
8763
|
n.info(i);
|
|
8764
|
-
},
|
|
8764
|
+
}, Xp = (t, n) => {
|
|
8765
8765
|
let i = e.channels.value.find((e) => e.id === t);
|
|
8766
|
-
!i || i.status !== "connected" || (
|
|
8767
|
-
},
|
|
8766
|
+
!i || i.status !== "connected" || ($(n), B(n, i), V(n), o.play().catch(() => {}));
|
|
8767
|
+
}, Zp = async (t) => {
|
|
8768
8768
|
console.log("[SipJs] 🔄 transferCall iniciado"), console.log("[SipJs] Target:", t);
|
|
8769
8769
|
let i = e.activeChannelId.value, o = a.value.get(i);
|
|
8770
8770
|
if (!o) throw console.error("[SipJs] ❌ No hay sesión activa en el canal", i), Error("No active session to transfer");
|
|
@@ -8784,7 +8784,7 @@ const createSipService = (e, t = {}) => {
|
|
|
8784
8784
|
},
|
|
8785
8785
|
onReject: (e) => {
|
|
8786
8786
|
let t = e.message.statusCode;
|
|
8787
|
-
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), Xp(i, o);
|
|
8788
8788
|
}
|
|
8789
8789
|
},
|
|
8790
8790
|
onNotify: (e) => {
|
|
@@ -8807,7 +8807,7 @@ const createSipService = (e, t = {}) => {
|
|
|
8807
8807
|
487: "Transferencia cancelada",
|
|
8808
8808
|
503: "Servicio no disponible - el destino puede estar fuera de línea"
|
|
8809
8809
|
}[t] || `Error en transferencia (código ${t})`;
|
|
8810
|
-
console.warn("[SipJs] 💬", e),
|
|
8810
|
+
console.warn("[SipJs] 💬", e), Xp(i, o);
|
|
8811
8811
|
} else t >= 100 && t < 200 && console.log("[SipJs] 📞 Transferencia en progreso:", t, n);
|
|
8812
8812
|
} else console.warn("[SipJs] ⚠️ No se pudo extraer el código de estado del NOTIFY body");
|
|
8813
8813
|
} else console.warn("[SipJs] ⚠️ NOTIFY sin body");
|
|
@@ -8816,28 +8816,28 @@ const createSipService = (e, t = {}) => {
|
|
|
8816
8816
|
} catch (e) {
|
|
8817
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;
|
|
8818
8818
|
}
|
|
8819
|
-
},
|
|
8819
|
+
}, Qp = async (t) => {
|
|
8820
8820
|
console.log("[SipJs] 🔄 startAttendedTransfer iniciado"), console.log("[SipJs] Target:", t);
|
|
8821
8821
|
let n = e.activeChannelId.value, i = a.value.get(n);
|
|
8822
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");
|
|
8823
8823
|
let o = e.channels.value.find((e) => e.status === "idle");
|
|
8824
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");
|
|
8825
8825
|
try {
|
|
8826
|
-
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");
|
|
8827
8827
|
} catch (e) {
|
|
8828
8828
|
throw console.error("[SipJs] ❌ Failed to hold original call:", e), Error("Failed to put call on hold");
|
|
8829
8829
|
}
|
|
8830
8830
|
console.log("[SipJs] 🔄 Cambiando al canal de consulta:", o.id), e.setActiveChannelId(o.id);
|
|
8831
8831
|
try {
|
|
8832
|
-
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({
|
|
8833
8833
|
originalChannelId: n,
|
|
8834
8834
|
consultationChannelId: o.id,
|
|
8835
8835
|
targetNumber: t
|
|
8836
8836
|
}), console.log("[SipJs] 📋 Transferencia en progreso registrada");
|
|
8837
8837
|
} catch (t) {
|
|
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
|
|
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");
|
|
8839
8839
|
}
|
|
8840
|
-
},
|
|
8840
|
+
}, $p = async () => {
|
|
8841
8841
|
console.log("[SipJs] 🔄 completeAttendedTransfer iniciado");
|
|
8842
8842
|
let t = e.transferInProgress.value;
|
|
8843
8843
|
if (!t) throw console.error("[SipJs] ❌ No hay transferencia en progreso"), Error("No transfer in progress");
|
|
@@ -8880,7 +8880,7 @@ const createSipService = (e, t = {}) => {
|
|
|
8880
8880
|
} catch (e) {
|
|
8881
8881
|
throw console.error("[SipJs] Attended transfer failed:", e), e;
|
|
8882
8882
|
}
|
|
8883
|
-
},
|
|
8883
|
+
}, em = async () => {
|
|
8884
8884
|
let t = e.transferInProgress.value;
|
|
8885
8885
|
if (!t) throw Error("No transfer in progress");
|
|
8886
8886
|
console.log("[SipJs] Canceling attended transfer...");
|
|
@@ -8891,12 +8891,12 @@ const createSipService = (e, t = {}) => {
|
|
|
8891
8891
|
console.warn("[SipJs] Error ending consultation:", e);
|
|
8892
8892
|
}
|
|
8893
8893
|
if (n) try {
|
|
8894
|
-
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");
|
|
8895
8895
|
} catch (e) {
|
|
8896
8896
|
console.warn("[SipJs] Error resuming original call:", e);
|
|
8897
8897
|
}
|
|
8898
8898
|
e.setTransferInProgress(null);
|
|
8899
|
-
},
|
|
8899
|
+
}, $ = (e) => {
|
|
8900
8900
|
let t = e.sessionDescriptionHandler;
|
|
8901
8901
|
if (!t) {
|
|
8902
8902
|
console.error("[SipJs] setupRemoteMedia: no sessionDescriptionHandler");
|
|
@@ -8909,8 +8909,8 @@ const createSipService = (e, t = {}) => {
|
|
|
8909
8909
|
}
|
|
8910
8910
|
if (u.value === n) return;
|
|
8911
8911
|
o.pause(), o.srcObject = null, g?.abort(), g = new AbortController(), u.value = n, d.value = t.localMediaStream ?? null;
|
|
8912
|
-
let i =
|
|
8913
|
-
|
|
8912
|
+
let i = Up(e);
|
|
8913
|
+
B(e, i), i && M(e, i.id);
|
|
8914
8914
|
let a = (e) => {
|
|
8915
8915
|
_?.abort(), _ = new AbortController();
|
|
8916
8916
|
let { signal: t } = _, n = () => {
|
|
@@ -8927,23 +8927,23 @@ const createSipService = (e, t = {}) => {
|
|
|
8927
8927
|
}, { signal: g.signal });
|
|
8928
8928
|
let [s] = n.getTracks();
|
|
8929
8929
|
s && (o.srcObject = n, a(s), i && M(e, i.id));
|
|
8930
|
-
},
|
|
8930
|
+
}, tm = () => {
|
|
8931
8931
|
_?.abort(), _ = null, g?.abort(), g = null, o.pause(), o.srcObject = null, u.value = null, d.value = null;
|
|
8932
8932
|
};
|
|
8933
8933
|
return {
|
|
8934
|
-
initUserAgent:
|
|
8935
|
-
stop:
|
|
8936
|
-
makeCall:
|
|
8937
|
-
answerCall:
|
|
8938
|
-
hangupCall:
|
|
8939
|
-
toggleMute:
|
|
8940
|
-
toggleHold:
|
|
8941
|
-
sendDTMF:
|
|
8942
|
-
transferCall:
|
|
8943
|
-
startAttendedTransfer:
|
|
8944
|
-
completeAttendedTransfer:
|
|
8945
|
-
cancelAttendedTransfer:
|
|
8946
|
-
switchChannel:
|
|
8934
|
+
initUserAgent: W,
|
|
8935
|
+
stop: K,
|
|
8936
|
+
makeCall: q,
|
|
8937
|
+
answerCall: J,
|
|
8938
|
+
hangupCall: Y,
|
|
8939
|
+
toggleMute: Z,
|
|
8940
|
+
toggleHold: Q,
|
|
8941
|
+
sendDTMF: Yp,
|
|
8942
|
+
transferCall: Zp,
|
|
8943
|
+
startAttendedTransfer: Qp,
|
|
8944
|
+
completeAttendedTransfer: $p,
|
|
8945
|
+
cancelAttendedTransfer: em,
|
|
8946
|
+
switchChannel: Jp,
|
|
8947
8947
|
extension: x,
|
|
8948
8948
|
setVolume: F,
|
|
8949
8949
|
setNotificationVolume: D,
|
|
@@ -16273,62 +16273,66 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
16273
16273
|
if (!t.isConnected) return "wp:text-status-disconnected";
|
|
16274
16274
|
let e = p.value;
|
|
16275
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";
|
|
16276
|
-
}), 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
|
+
};
|
|
16277
16281
|
onClickOutside(y, () => {
|
|
16278
16282
|
v.value = !1;
|
|
16279
16283
|
});
|
|
16280
|
-
let
|
|
16284
|
+
let E = computed({
|
|
16281
16285
|
get: () => p.value?.keypadValue || "",
|
|
16282
16286
|
set: (e) => {
|
|
16283
|
-
p.value && t.updateChannelState(p.value.id, { keypadValue: e });
|
|
16287
|
+
p.value && t.updateChannelState(p.value.id, { keypadValue: x(e) });
|
|
16284
16288
|
}
|
|
16285
|
-
}),
|
|
16286
|
-
if (!
|
|
16287
|
-
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 = [];
|
|
16288
16292
|
for (let n of o.contacts) if ((n.name.toLowerCase().includes(e) || n.number.includes(e)) && (t.push(n), t.length >= 10)) break;
|
|
16289
16293
|
return t;
|
|
16290
|
-
}),
|
|
16291
|
-
p.value && t.updateChannelState(p.value.id, { keypadValue: e.number }), v.value = !1;
|
|
16292
|
-
},
|
|
16293
|
-
!
|
|
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));
|
|
16294
16298
|
};
|
|
16295
|
-
watch(
|
|
16299
|
+
watch(E, () => {
|
|
16296
16300
|
v.value = !0;
|
|
16297
16301
|
});
|
|
16298
|
-
let
|
|
16299
|
-
|
|
16300
|
-
},
|
|
16302
|
+
let M = () => {
|
|
16303
|
+
E.value && D.value && j();
|
|
16304
|
+
}, N = () => {
|
|
16301
16305
|
v.value = !1;
|
|
16302
|
-
},
|
|
16306
|
+
}, P = () => {
|
|
16303
16307
|
v.value = !0;
|
|
16304
|
-
},
|
|
16308
|
+
}, F = () => {
|
|
16305
16309
|
setTimeout(() => {
|
|
16306
16310
|
v.value = !1;
|
|
16307
16311
|
}, 150);
|
|
16308
|
-
},
|
|
16312
|
+
}, I = ref(Date.now());
|
|
16309
16313
|
useIntervalFn(() => {
|
|
16310
|
-
|
|
16314
|
+
I.value = Date.now();
|
|
16311
16315
|
}, 1e3);
|
|
16312
|
-
let
|
|
16316
|
+
let L = computed(() => {
|
|
16313
16317
|
let e = p.value?.startTime, t = p.value?.status || "idle";
|
|
16314
16318
|
if (!e || t !== "connected") return "00:00:00";
|
|
16315
|
-
let n = Math.floor((
|
|
16319
|
+
let n = Math.floor((I.value - e) / 1e3);
|
|
16316
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")}`;
|
|
16317
|
-
}),
|
|
16321
|
+
}), z = computed(() => {
|
|
16318
16322
|
if (!o.isOnline) return "Sin internet";
|
|
16319
16323
|
if (!t.isConnected) return "Sin conexión";
|
|
16320
16324
|
let e = p.value, n = e?.status || "idle";
|
|
16321
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);
|
|
16322
|
-
}),
|
|
16326
|
+
}), B = (e) => {
|
|
16323
16327
|
if (!e) return "";
|
|
16324
16328
|
let t = e.trim(), n = t.startsWith("+"), i = t.replace(/[^\d]/g, "");
|
|
16325
16329
|
return n ? `+${i}` : i;
|
|
16326
|
-
},
|
|
16330
|
+
}, H = computed(() => {
|
|
16327
16331
|
let e = p.value, t = e?.remoteNumber || e?.keypadValue, n = e?.remoteDisplayName;
|
|
16328
16332
|
if (!t) return "Unknown";
|
|
16329
|
-
let i =
|
|
16333
|
+
let i = B(t), a = o.contacts?.find((e) => B(e.number) === i);
|
|
16330
16334
|
return a ? a.name : n || t;
|
|
16331
|
-
}),
|
|
16335
|
+
}), U = computed(() => {
|
|
16332
16336
|
let e = p.value;
|
|
16333
16337
|
return e?.remoteNumber || e?.keypadValue || "";
|
|
16334
16338
|
});
|
|
@@ -16339,11 +16343,11 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
16339
16343
|
(p.value?.status || "idle") === "connected" ? (openBlock(), createElementBlock("div", {
|
|
16340
16344
|
key: 0,
|
|
16341
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"])
|
|
16342
|
-
}, [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),
|
|
16343
16347
|
o.user ? (openBlock(), createElementBlock("span", {
|
|
16344
16348
|
key: 1,
|
|
16345
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"])
|
|
16346
|
-
}, [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),
|
|
16347
16351
|
(p.value?.status || "idle") === "idle" && o.allowInput ? (openBlock(), createElementBlock("div", _hoisted_5$4, [createElementVNode("div", {
|
|
16348
16352
|
class: "webphone-display__dialer-container wp:relative wp:w-full wp:max-w-80",
|
|
16349
16353
|
ref_key: "containerRef",
|
|
@@ -16382,11 +16386,19 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
16382
16386
|
createVNode(unref(Input_default), {
|
|
16383
16387
|
ref_key: "inputRef",
|
|
16384
16388
|
ref: b,
|
|
16385
|
-
modelValue:
|
|
16386
|
-
"onUpdate:modelValue": i[1] ||= (e) =>
|
|
16387
|
-
|
|
16388
|
-
|
|
16389
|
-
|
|
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,
|
|
16390
16402
|
placeholder: "Ingresa el numero a llamar...",
|
|
16391
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"
|
|
16392
16404
|
}, null, 8, ["modelValue"]),
|
|
@@ -16394,14 +16406,14 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
16394
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",
|
|
16395
16407
|
onClick: i[2] ||= withModifiers((e) => unref(t).backspaceKeypad(), ["stop"])
|
|
16396
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" })])
|
|
16397
|
-
]), withDirectives(createElementVNode("div", _hoisted_7$4, [
|
|
16409
|
+
]), withDirectives(createElementVNode("div", _hoisted_7$4, [D.value ? (openBlock(), createElementBlock("div", {
|
|
16398
16410
|
key: 0,
|
|
16399
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",
|
|
16400
|
-
onPointerdown: withModifiers(
|
|
16401
|
-
}, [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", {
|
|
16402
16414
|
key: e.number,
|
|
16403
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",
|
|
16404
|
-
onPointerdown: withModifiers((t) =>
|
|
16416
|
+
onPointerdown: withModifiers((t) => k(e), ["prevent"])
|
|
16405
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), {
|
|
16406
16418
|
key: 0,
|
|
16407
16419
|
class: "wp:w-3 wp:h-3"
|
|
@@ -16417,7 +16429,7 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
16417
16429
|
})) : (openBlock(), createBlock(unref(CircleUser), {
|
|
16418
16430
|
key: 4,
|
|
16419
16431
|
class: "wp:w-3 wp:h-3"
|
|
16420
|
-
}))], 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, {
|
|
16421
16433
|
default: withCtx(() => [createVNode(unref(Tooltip_default), null, {
|
|
16422
16434
|
default: withCtx(() => [createVNode(unref(TooltipTrigger_default), { "as-child": "" }), createVNode(unref(TooltipContent_default), { class: "wp:flex wp:items-center wp:gap-2" }, {
|
|
16423
16435
|
default: withCtx(() => [createElementVNode("span", null, toDisplayString(unref(t).isKeypadVisible ? "Ocultar" : "Mostrar") + " teclado", 1), createVNode(unref(Kbd_default), null, {
|
|
@@ -17329,14 +17341,14 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17329
17341
|
onMounted(() => {
|
|
17330
17342
|
o.value = "documentPictureInPicture" in window, document.addEventListener("visibilitychange", y), window.addEventListener("blur", b);
|
|
17331
17343
|
}), onUnmounted(() => {
|
|
17332
|
-
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();
|
|
17333
17345
|
});
|
|
17334
17346
|
let _ = () => {
|
|
17335
17347
|
let e = i.callStatus !== "idle", t = document.hidden || !document.hasFocus();
|
|
17336
17348
|
return i.autoOpenOnBlur !== !1 && e && o.value && t && !l.value && !u.value;
|
|
17337
17349
|
}, v = () => {
|
|
17338
17350
|
_() && (g && clearTimeout(g), g = setTimeout(() => {
|
|
17339
|
-
_() &&
|
|
17351
|
+
_() && R();
|
|
17340
17352
|
}, 120));
|
|
17341
17353
|
}, y = () => {
|
|
17342
17354
|
v();
|
|
@@ -17353,9 +17365,9 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17353
17365
|
return `${t.toString().padStart(2, "0")}:${n.toString().padStart(2, "0")}`;
|
|
17354
17366
|
};
|
|
17355
17367
|
watch(() => i.callStatus, (e, t) => {
|
|
17356
|
-
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());
|
|
17357
17369
|
}, { immediate: !0 }), watch(() => i.isConnected, (e) => {
|
|
17358
|
-
!e && l.value && (S(),
|
|
17370
|
+
!e && l.value && (S(), z());
|
|
17359
17371
|
}), watch(() => [
|
|
17360
17372
|
i.callStatus,
|
|
17361
17373
|
i.isMuted,
|
|
@@ -17429,7 +17441,7 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17429
17441
|
n.className = "pip-btn pip-btn-answer", n.title = "Contestar", n.innerHTML = E.phone, n.onclick = () => a("answer", !1), t.appendChild(n);
|
|
17430
17442
|
let o = e.createElement("button");
|
|
17431
17443
|
o.className = "pip-btn pip-btn-hangup", o.title = "Rechazar", o.innerHTML = E.phoneOff, o.onclick = () => {
|
|
17432
|
-
a("hangup"),
|
|
17444
|
+
a("hangup"), z();
|
|
17433
17445
|
}, t.appendChild(o);
|
|
17434
17446
|
} else if (i.callStatus === "connected") {
|
|
17435
17447
|
let n = e.createElement("button");
|
|
@@ -17440,12 +17452,12 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17440
17452
|
s.className = "pip-btn pip-btn-transfer", s.title = "Transferir", s.innerHTML = E.transfer, s.onclick = () => a("transfer"), t.appendChild(s);
|
|
17441
17453
|
let l = e.createElement("button");
|
|
17442
17454
|
l.className = "pip-btn pip-btn-hangup", l.title = "Colgar", l.innerHTML = E.phoneOff, l.onclick = () => {
|
|
17443
|
-
a("hangup"),
|
|
17455
|
+
a("hangup"), z();
|
|
17444
17456
|
}, t.appendChild(l);
|
|
17445
17457
|
} else if (i.callStatus === "calling") {
|
|
17446
17458
|
let n = e.createElement("button");
|
|
17447
17459
|
n.className = "pip-btn pip-btn-hangup", n.title = "Cancelar", n.innerHTML = E.phoneOff, n.onclick = () => {
|
|
17448
|
-
a("hangup"),
|
|
17460
|
+
a("hangup"), z();
|
|
17449
17461
|
}, t.appendChild(n);
|
|
17450
17462
|
}
|
|
17451
17463
|
}
|
|
@@ -17461,7 +17473,7 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17461
17473
|
}, 1e3));
|
|
17462
17474
|
}, L = () => {
|
|
17463
17475
|
m &&= (clearInterval(m), null);
|
|
17464
|
-
},
|
|
17476
|
+
}, R = async () => {
|
|
17465
17477
|
if (!(!o.value || l.value || u.value)) {
|
|
17466
17478
|
u.value = !0;
|
|
17467
17479
|
try {
|
|
@@ -17481,14 +17493,14 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17481
17493
|
u.value = !1;
|
|
17482
17494
|
}
|
|
17483
17495
|
}
|
|
17484
|
-
},
|
|
17496
|
+
}, z = () => {
|
|
17485
17497
|
L(), d.value && (d.value.close(), d.value = null, l.value = !1, a("update:active", !1));
|
|
17486
17498
|
};
|
|
17487
17499
|
return t({
|
|
17488
|
-
open:
|
|
17489
|
-
close:
|
|
17500
|
+
open: R,
|
|
17501
|
+
close: z,
|
|
17490
17502
|
toggle: () => {
|
|
17491
|
-
l.value ?
|
|
17503
|
+
l.value ? z() : R();
|
|
17492
17504
|
},
|
|
17493
17505
|
isActive: l,
|
|
17494
17506
|
isSupported: o,
|
|
@@ -17574,7 +17586,7 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17574
17586
|
provide("webphone", x), provide("sip", S), t({ stop: S.stop }), watchEffect(() => {
|
|
17575
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\""));
|
|
17576
17588
|
});
|
|
17577
|
-
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;
|
|
17578
17590
|
watch(() => x.callStatus, (e) => {
|
|
17579
17591
|
if (e === "idle" && !x.isKeypadVisible) {
|
|
17580
17592
|
x.toggleKeypad();
|
|
@@ -17582,80 +17594,80 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17582
17594
|
}
|
|
17583
17595
|
e !== "idle" && x.isKeypadVisible && x.toggleKeypad();
|
|
17584
17596
|
});
|
|
17585
|
-
let
|
|
17597
|
+
let Gp = computed(() => x.channels.find((e) => e.id === x.activeChannelId) ?? null), K = (e) => {
|
|
17586
17598
|
if (!e) return "";
|
|
17587
17599
|
let t = e.trim(), n = t.startsWith("+"), i = t.replace(/[^\d]/g, "");
|
|
17588
17600
|
return n ? `+${i}` : i;
|
|
17589
|
-
},
|
|
17590
|
-
let e =
|
|
17591
|
-
return o.contacts.find((e) =>
|
|
17592
|
-
}),
|
|
17593
|
-
|
|
17594
|
-
},
|
|
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) => {
|
|
17595
17607
|
try {
|
|
17596
17608
|
t === "blind" ? await S.transferCall(e) : await S.startAttendedTransfer(e);
|
|
17597
17609
|
} catch (e) {
|
|
17598
17610
|
console.error("[WebPhone] Transfer error:", e), alert(e instanceof Error ? e.message : "Transfer failed. Please try again.");
|
|
17599
17611
|
}
|
|
17600
|
-
},
|
|
17612
|
+
}, tm = async () => {
|
|
17601
17613
|
try {
|
|
17602
17614
|
await S.completeAttendedTransfer();
|
|
17603
17615
|
} catch (e) {
|
|
17604
17616
|
console.error("[WebPhone] Complete transfer error:", e), alert(e instanceof Error ? e.message : "Failed to complete transfer.");
|
|
17605
17617
|
}
|
|
17606
|
-
},
|
|
17618
|
+
}, nm = async () => {
|
|
17607
17619
|
try {
|
|
17608
17620
|
await S.cancelAttendedTransfer();
|
|
17609
17621
|
} catch (e) {
|
|
17610
17622
|
console.error("[WebPhone] Cancel transfer error:", e), alert(e instanceof Error ? e.message : "Failed to cancel transfer.");
|
|
17611
17623
|
}
|
|
17612
|
-
},
|
|
17624
|
+
}, rm = (e) => {
|
|
17613
17625
|
x.keypadValue = e, S.makeCall(e);
|
|
17614
|
-
},
|
|
17626
|
+
}, im = (e) => {
|
|
17615
17627
|
if (o.onAnswer) {
|
|
17616
17628
|
o.onAnswer(e);
|
|
17617
17629
|
return;
|
|
17618
17630
|
}
|
|
17619
17631
|
S.answerCall(e);
|
|
17620
|
-
},
|
|
17632
|
+
}, am = () => {
|
|
17621
17633
|
if (o.onHangup) {
|
|
17622
17634
|
o.onHangup();
|
|
17623
17635
|
return;
|
|
17624
17636
|
}
|
|
17625
17637
|
S.hangupCall();
|
|
17626
|
-
},
|
|
17638
|
+
}, om = () => {
|
|
17627
17639
|
if (o.onReject) {
|
|
17628
17640
|
o.onReject();
|
|
17629
17641
|
return;
|
|
17630
17642
|
}
|
|
17631
17643
|
S.hangupCall();
|
|
17644
|
+
}, sm = () => {
|
|
17645
|
+
j.value = !0, Z.value?.close(), window.focus();
|
|
17632
17646
|
}, cm = () => {
|
|
17633
|
-
|
|
17634
|
-
}, lm = () => {
|
|
17635
|
-
if (!Qp.value) return !1;
|
|
17647
|
+
if (!Zp.value) return !1;
|
|
17636
17648
|
let e = x.callStatus !== "idle", t = document.hidden || !document.hasFocus();
|
|
17637
|
-
return e && t && !
|
|
17638
|
-
},
|
|
17649
|
+
return e && t && !Q.value;
|
|
17650
|
+
}, lm = () => {
|
|
17639
17651
|
window.setTimeout(() => {
|
|
17640
|
-
|
|
17652
|
+
cm() && Z.value?.open();
|
|
17641
17653
|
}, 150);
|
|
17642
17654
|
};
|
|
17643
17655
|
watchEffect(() => {
|
|
17644
|
-
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);
|
|
17645
17657
|
});
|
|
17646
17658
|
let um = (e) => {
|
|
17647
17659
|
if (!e || typeof e.addEventListener != "function" || typeof e.removeEventListener != "function") return () => {};
|
|
17648
17660
|
let t = () => {
|
|
17649
|
-
|
|
17661
|
+
W.value += 1;
|
|
17650
17662
|
};
|
|
17651
17663
|
return e.addEventListener("addtrack", t), e.addEventListener("removetrack", t), () => {
|
|
17652
17664
|
e.removeEventListener("addtrack", t), e.removeEventListener("removetrack", t);
|
|
17653
17665
|
};
|
|
17654
17666
|
};
|
|
17655
17667
|
watch(E, (e, t, n) => {
|
|
17656
|
-
|
|
17668
|
+
W.value += 1, n(um(e));
|
|
17657
17669
|
}, { immediate: !0 }), watch(D, (e, t, n) => {
|
|
17658
|
-
|
|
17670
|
+
W.value += 1, n(um(e));
|
|
17659
17671
|
}, { immediate: !0 });
|
|
17660
17672
|
let dm = [
|
|
17661
17673
|
"button",
|
|
@@ -17708,7 +17720,7 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17708
17720
|
], _m = ref(!1), vm = computed({
|
|
17709
17721
|
get: () => x.activeChannelId.toString(),
|
|
17710
17722
|
set: async (e) => {
|
|
17711
|
-
if (!
|
|
17723
|
+
if (!Y.value && e && !_m.value) {
|
|
17712
17724
|
_m.value = !0;
|
|
17713
17725
|
try {
|
|
17714
17726
|
await T(parseInt(e));
|
|
@@ -17724,9 +17736,9 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17724
17736
|
let t = x.channels.find((t) => t.id === e);
|
|
17725
17737
|
return t ? t.isHeld || t.status === "held" : !1;
|
|
17726
17738
|
}, xm = (e) => {
|
|
17727
|
-
|
|
17739
|
+
Y.value || (vm.value = e.toString());
|
|
17728
17740
|
}, Sm = (e) => {
|
|
17729
|
-
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) && [
|
|
17730
17742
|
"1",
|
|
17731
17743
|
"2",
|
|
17732
17744
|
"3"
|
|
@@ -17739,14 +17751,14 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17739
17751
|
}
|
|
17740
17752
|
};
|
|
17741
17753
|
watch(() => x.callStatus, () => {
|
|
17742
|
-
|
|
17754
|
+
cm() && lm();
|
|
17743
17755
|
}), watch(() => x.isConnected, (e) => {
|
|
17744
17756
|
v.value && a.set(v.value, e);
|
|
17745
|
-
}, { immediate: !0 }), watch(
|
|
17746
|
-
!e &&
|
|
17757
|
+
}, { immediate: !0 }), watch(Zp, (e) => {
|
|
17758
|
+
!e && Q.value && Z.value?.close();
|
|
17747
17759
|
});
|
|
17748
17760
|
let Cm = ref(!1), wm = async () => {
|
|
17749
|
-
Cm.value ||
|
|
17761
|
+
Cm.value || Y.value || !o.host || !o.extension || !o.password || (await w({
|
|
17750
17762
|
uri: `sip:${o.extension}@${o.host}`,
|
|
17751
17763
|
transportOptions: { server: _.value },
|
|
17752
17764
|
authorizationUsername: o.extension,
|
|
@@ -17760,22 +17772,22 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17760
17772
|
await S.stop(), Cm.value = !1;
|
|
17761
17773
|
}
|
|
17762
17774
|
}), onMounted(async () => {
|
|
17763
|
-
window.addEventListener("keydown", Sm), document.addEventListener("visibilitychange",
|
|
17764
|
-
}), 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) => {
|
|
17765
17777
|
e && await wm();
|
|
17766
17778
|
}), onUnmounted(() => {
|
|
17767
|
-
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);
|
|
17768
17780
|
}), (e, t) => (openBlock(), createElementBlock(Fragment, null, [
|
|
17769
17781
|
createElementVNode("div", {
|
|
17770
17782
|
ref_key: "phoneRef",
|
|
17771
17783
|
ref: N,
|
|
17772
17784
|
style: normalizeStyle(unref(hm)),
|
|
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",
|
|
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" : ""]),
|
|
17774
17786
|
"data-mode": o.mode,
|
|
17775
17787
|
"data-call-status": x.callStatus,
|
|
17776
|
-
"data-network-status":
|
|
17788
|
+
"data-network-status": Y.value ? "offline" : "online"
|
|
17777
17789
|
}, [
|
|
17778
|
-
|
|
17790
|
+
q.value && !Q.value ? (openBlock(), createElementBlock("div", _hoisted_2, [createElementVNode("video", {
|
|
17779
17791
|
ref_key: "remoteVideoRef",
|
|
17780
17792
|
ref: F,
|
|
17781
17793
|
autoplay: "",
|
|
@@ -17790,14 +17802,14 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17790
17802
|
class: "webphone__video-local wp:w-full wp:h-full wp:object-cover"
|
|
17791
17803
|
}, null, 512)])])) : createCommentVNode("", !0),
|
|
17792
17804
|
createElementVNode("div", _hoisted_4, [
|
|
17793
|
-
|
|
17805
|
+
U.value ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", _hoisted_5, [createElementVNode("div", _hoisted_6, [
|
|
17794
17806
|
createElementVNode("div", _hoisted_7, [(openBlock(), createElementBlock(Fragment, null, renderList(gm, (e) => createElementVNode("button", {
|
|
17795
17807
|
key: e.value,
|
|
17796
17808
|
type: "button",
|
|
17797
17809
|
role: "radio",
|
|
17798
17810
|
"aria-checked": vm.value === e.value.toString(),
|
|
17799
|
-
disabled:
|
|
17800
|
-
title: `${e.label} (${unref(
|
|
17811
|
+
disabled: Y.value,
|
|
17812
|
+
title: `${e.label} (${unref(H)}${e.value + 1})`,
|
|
17801
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"]),
|
|
17802
17814
|
"data-channel-id": e.value,
|
|
17803
17815
|
"data-state": vm.value === e.value.toString() ? "active" : "idle",
|
|
@@ -17813,9 +17825,9 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17813
17825
|
default: withCtx(() => [createVNode(unref(Button_default), {
|
|
17814
17826
|
variant: "ghost",
|
|
17815
17827
|
size: "icon",
|
|
17816
|
-
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" : ""]),
|
|
17817
17829
|
title: "Picture-in-Picture",
|
|
17818
|
-
onClick:
|
|
17830
|
+
onClick: em
|
|
17819
17831
|
}, {
|
|
17820
17832
|
default: withCtx(() => [createVNode(unref(PictureInPicture2), { class: "wp:w-4 wp:h-4 wp:text-[var(--color-settings)]" })]),
|
|
17821
17833
|
_: 1
|
|
@@ -17844,7 +17856,7 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17844
17856
|
_: 1
|
|
17845
17857
|
}), createVNode(unref(TooltipContent_default), { class: "wp:flex wp:items-center wp:gap-2" }, {
|
|
17846
17858
|
default: withCtx(() => [t[9] ||= createElementVNode("span", null, "Configuración", -1), createVNode(unref(Kbd_default), null, {
|
|
17847
|
-
default: withCtx(() => [createTextVNode(toDisplayString(unref(
|
|
17859
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(H)) + ",", 1)]),
|
|
17848
17860
|
_: 1
|
|
17849
17861
|
})]),
|
|
17850
17862
|
_: 1
|
|
@@ -17857,9 +17869,9 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17857
17869
|
createElementVNode("div", _hoisted_9, [(openBlock(!0), createElementBlock(Fragment, null, renderList(x.channels, (e) => withDirectives((openBlock(), createBlock(CallDisplay_default, {
|
|
17858
17870
|
key: e.id,
|
|
17859
17871
|
"channel-id": e.id,
|
|
17860
|
-
"allow-input": !
|
|
17861
|
-
"is-web-call":
|
|
17862
|
-
"is-online": unref(
|
|
17872
|
+
"allow-input": !U.value,
|
|
17873
|
+
"is-web-call": U.value,
|
|
17874
|
+
"is-online": unref(J),
|
|
17863
17875
|
contacts: o.contacts,
|
|
17864
17876
|
user: o.extension
|
|
17865
17877
|
}, null, 8, [
|
|
@@ -17876,15 +17888,15 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17876
17888
|
}, [createVNode(KeyPad_default)], 10, _hoisted_10),
|
|
17877
17889
|
createVNode(CallActions_default, {
|
|
17878
17890
|
class: "webphone__actions",
|
|
17879
|
-
style: normalizeStyle(
|
|
17880
|
-
destination:
|
|
17891
|
+
style: normalizeStyle(Y.value ? "pointer-events: none;" : void 0),
|
|
17892
|
+
destination: U.value ? o.to : void 0,
|
|
17881
17893
|
"is-video": o.mode === "video",
|
|
17882
17894
|
"on-answer": o.onAnswer,
|
|
17883
17895
|
"on-hangup": o.onHangup,
|
|
17884
17896
|
"on-reject": o.onReject,
|
|
17885
17897
|
onTransfer: t[1] ||= (e) => j.value = !0,
|
|
17886
|
-
onCompleteTransfer:
|
|
17887
|
-
onCancelTransfer:
|
|
17898
|
+
onCompleteTransfer: tm,
|
|
17899
|
+
onCancelTransfer: nm
|
|
17888
17900
|
}, null, 8, [
|
|
17889
17901
|
"style",
|
|
17890
17902
|
"destination",
|
|
@@ -17894,8 +17906,8 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17894
17906
|
"on-reject"
|
|
17895
17907
|
])
|
|
17896
17908
|
]),
|
|
17897
|
-
|
|
17898
|
-
|
|
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", {
|
|
17899
17911
|
href: "https://www.nebula123.com",
|
|
17900
17912
|
target: "_blank",
|
|
17901
17913
|
class: "webphone__footer-link wp:text-[10px] wp:text-primary wp:hover:underline"
|
|
@@ -17909,36 +17921,36 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
17909
17921
|
visible: k.value,
|
|
17910
17922
|
"onUpdate:visible": t[3] ||= (e) => k.value = e,
|
|
17911
17923
|
contacts: o.contacts,
|
|
17912
|
-
onCall:
|
|
17924
|
+
onCall: rm
|
|
17913
17925
|
}, null, 8, ["visible", "contacts"]),
|
|
17914
17926
|
createVNode(TransferDialog_default, {
|
|
17915
17927
|
visible: j.value,
|
|
17916
17928
|
"onUpdate:visible": t[4] ||= (e) => j.value = e,
|
|
17917
17929
|
contacts: o.contacts,
|
|
17918
|
-
onTransfer:
|
|
17930
|
+
onTransfer: $
|
|
17919
17931
|
}, null, 8, ["visible", "contacts"]),
|
|
17920
17932
|
createVNode(DocumentPip_default, {
|
|
17921
17933
|
ref_key: "documentPipRef",
|
|
17922
|
-
ref:
|
|
17923
|
-
active:
|
|
17924
|
-
"onUpdate:active": t[5] ||= (e) =>
|
|
17925
|
-
"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,
|
|
17926
17938
|
"is-connected": x.isConnected,
|
|
17927
17939
|
"remote-number": x.remoteNumber,
|
|
17928
|
-
"caller-name":
|
|
17929
|
-
"has-video":
|
|
17940
|
+
"caller-name": Kp.value,
|
|
17941
|
+
"has-video": q.value ?? !1,
|
|
17930
17942
|
"remote-stream": unref(E),
|
|
17931
17943
|
"local-stream": unref(D),
|
|
17932
|
-
destination:
|
|
17944
|
+
destination: U.value ? o.to : void 0,
|
|
17933
17945
|
"is-video": o.mode === "video",
|
|
17934
17946
|
"call-status": x.callStatus,
|
|
17935
17947
|
"is-muted": x.isMuted,
|
|
17936
17948
|
"is-held": x.isHeld,
|
|
17937
|
-
onTransfer:
|
|
17938
|
-
onTransferRequest:
|
|
17939
|
-
onHangup:
|
|
17940
|
-
onReject:
|
|
17941
|
-
onAnswer:
|
|
17949
|
+
onTransfer: sm,
|
|
17950
|
+
onTransferRequest: $,
|
|
17951
|
+
onHangup: am,
|
|
17952
|
+
onReject: om,
|
|
17953
|
+
onAnswer: im,
|
|
17942
17954
|
onToggleMute: t[6] ||= (e) => unref(S).toggleMute(),
|
|
17943
17955
|
onToggleHold: t[7] ||= (e) => unref(S).toggleHold()
|
|
17944
17956
|
}, null, 8, [
|