@tmsoft/webphone 5.0.12 → 5.0.13
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 +22 -22
- package/dist/webphone.es.js +406 -388
- package/dist/webphone.umd.js +17 -17
- package/package.json +1 -1
package/dist/webphone.es.js
CHANGED
|
@@ -7094,7 +7094,7 @@ var concatArrays = (e, t) => {
|
|
|
7094
7094
|
"max",
|
|
7095
7095
|
"fit",
|
|
7096
7096
|
...O()
|
|
7097
|
-
],
|
|
7097
|
+
], gm = () => [
|
|
7098
7098
|
isFraction,
|
|
7099
7099
|
"screen",
|
|
7100
7100
|
"full",
|
|
@@ -7105,7 +7105,7 @@ var concatArrays = (e, t) => {
|
|
|
7105
7105
|
"max",
|
|
7106
7106
|
"fit",
|
|
7107
7107
|
...O()
|
|
7108
|
-
],
|
|
7108
|
+
], R = () => [
|
|
7109
7109
|
isFraction,
|
|
7110
7110
|
"screen",
|
|
7111
7111
|
"full",
|
|
@@ -7117,16 +7117,16 @@ var concatArrays = (e, t) => {
|
|
|
7117
7117
|
"max",
|
|
7118
7118
|
"fit",
|
|
7119
7119
|
...O()
|
|
7120
|
-
],
|
|
7120
|
+
], z = () => [
|
|
7121
7121
|
e,
|
|
7122
7122
|
isArbitraryVariable,
|
|
7123
7123
|
isArbitraryValue
|
|
7124
|
-
],
|
|
7124
|
+
], _m = () => [
|
|
7125
7125
|
...w(),
|
|
7126
7126
|
isArbitraryVariablePosition,
|
|
7127
7127
|
isArbitraryPosition,
|
|
7128
7128
|
{ position: [isArbitraryVariable, isArbitraryValue] }
|
|
7129
|
-
],
|
|
7129
|
+
], B = () => ["no-repeat", { repeat: [
|
|
7130
7130
|
"",
|
|
7131
7131
|
"x",
|
|
7132
7132
|
"y",
|
|
@@ -7155,7 +7155,7 @@ var concatArrays = (e, t) => {
|
|
|
7155
7155
|
isNumber,
|
|
7156
7156
|
isArbitraryVariableLength,
|
|
7157
7157
|
isArbitraryLength
|
|
7158
|
-
],
|
|
7158
|
+
], vm = () => [
|
|
7159
7159
|
"solid",
|
|
7160
7160
|
"dashed",
|
|
7161
7161
|
"dotted",
|
|
@@ -7182,27 +7182,27 @@ var concatArrays = (e, t) => {
|
|
|
7182
7182
|
isPercent,
|
|
7183
7183
|
isArbitraryVariablePosition,
|
|
7184
7184
|
isArbitraryPosition
|
|
7185
|
-
],
|
|
7185
|
+
], ym = () => [
|
|
7186
7186
|
"",
|
|
7187
7187
|
"none",
|
|
7188
7188
|
_,
|
|
7189
7189
|
isArbitraryVariable,
|
|
7190
7190
|
isArbitraryValue
|
|
7191
|
-
],
|
|
7191
|
+
], bm = () => [
|
|
7192
7192
|
"none",
|
|
7193
7193
|
isNumber,
|
|
7194
7194
|
isArbitraryVariable,
|
|
7195
7195
|
isArbitraryValue
|
|
7196
|
-
],
|
|
7196
|
+
], xm = () => [
|
|
7197
7197
|
"none",
|
|
7198
7198
|
isNumber,
|
|
7199
7199
|
isArbitraryVariable,
|
|
7200
7200
|
isArbitraryValue
|
|
7201
|
-
],
|
|
7201
|
+
], Sm = () => [
|
|
7202
7202
|
isNumber,
|
|
7203
7203
|
isArbitraryVariable,
|
|
7204
7204
|
isArbitraryValue
|
|
7205
|
-
],
|
|
7205
|
+
], q = () => [
|
|
7206
7206
|
isFraction,
|
|
7207
7207
|
"full",
|
|
7208
7208
|
...O()
|
|
@@ -7491,12 +7491,12 @@ var concatArrays = (e, t) => {
|
|
|
7491
7491
|
"space-y": [{ "space-y": O() }],
|
|
7492
7492
|
"space-y-reverse": ["space-y-reverse"],
|
|
7493
7493
|
size: [{ size: L() }],
|
|
7494
|
-
"inline-size": [{ inline: ["auto", ...
|
|
7495
|
-
"min-inline-size": [{ "min-inline": ["auto", ...
|
|
7496
|
-
"max-inline-size": [{ "max-inline": ["none", ...
|
|
7497
|
-
"block-size": [{ block: ["auto", ...
|
|
7498
|
-
"min-block-size": [{ "min-block": ["auto", ...
|
|
7499
|
-
"max-block-size": [{ "max-block": ["none", ...
|
|
7494
|
+
"inline-size": [{ inline: ["auto", ...gm()] }],
|
|
7495
|
+
"min-inline-size": [{ "min-inline": ["auto", ...gm()] }],
|
|
7496
|
+
"max-inline-size": [{ "max-inline": ["none", ...gm()] }],
|
|
7497
|
+
"block-size": [{ block: ["auto", ...R()] }],
|
|
7498
|
+
"min-block-size": [{ "min-block": ["auto", ...R()] }],
|
|
7499
|
+
"max-block-size": [{ "max-block": ["none", ...R()] }],
|
|
7500
7500
|
w: [{ w: [
|
|
7501
7501
|
l,
|
|
7502
7502
|
"screen",
|
|
@@ -7603,15 +7603,15 @@ var concatArrays = (e, t) => {
|
|
|
7603
7603
|
"start",
|
|
7604
7604
|
"end"
|
|
7605
7605
|
] }],
|
|
7606
|
-
"placeholder-color": [{ placeholder:
|
|
7607
|
-
"text-color": [{ text:
|
|
7606
|
+
"placeholder-color": [{ placeholder: z() }],
|
|
7607
|
+
"text-color": [{ text: z() }],
|
|
7608
7608
|
"text-decoration": [
|
|
7609
7609
|
"underline",
|
|
7610
7610
|
"overline",
|
|
7611
7611
|
"line-through",
|
|
7612
7612
|
"no-underline"
|
|
7613
7613
|
],
|
|
7614
|
-
"text-decoration-style": [{ decoration: [...
|
|
7614
|
+
"text-decoration-style": [{ decoration: [...vm(), "wavy"] }],
|
|
7615
7615
|
"text-decoration-thickness": [{ decoration: [
|
|
7616
7616
|
isNumber,
|
|
7617
7617
|
"from-font",
|
|
@@ -7619,7 +7619,7 @@ var concatArrays = (e, t) => {
|
|
|
7619
7619
|
isArbitraryVariable,
|
|
7620
7620
|
isArbitraryLength
|
|
7621
7621
|
] }],
|
|
7622
|
-
"text-decoration-color": [{ decoration:
|
|
7622
|
+
"text-decoration-color": [{ decoration: z() }],
|
|
7623
7623
|
"underline-offset": [{ "underline-offset": [
|
|
7624
7624
|
isNumber,
|
|
7625
7625
|
"auto",
|
|
@@ -7701,8 +7701,8 @@ var concatArrays = (e, t) => {
|
|
|
7701
7701
|
"padding",
|
|
7702
7702
|
"content"
|
|
7703
7703
|
] }],
|
|
7704
|
-
"bg-position": [{ bg:
|
|
7705
|
-
"bg-repeat": [{ bg:
|
|
7704
|
+
"bg-position": [{ bg: _m() }],
|
|
7705
|
+
"bg-repeat": [{ bg: B() }],
|
|
7706
7706
|
"bg-size": [{ bg: V() }],
|
|
7707
7707
|
"bg-image": [{ bg: [
|
|
7708
7708
|
"none",
|
|
@@ -7736,13 +7736,13 @@ var concatArrays = (e, t) => {
|
|
|
7736
7736
|
isArbitraryVariableImage,
|
|
7737
7737
|
isArbitraryImage
|
|
7738
7738
|
] }],
|
|
7739
|
-
"bg-color": [{ bg:
|
|
7739
|
+
"bg-color": [{ bg: z() }],
|
|
7740
7740
|
"gradient-from-pos": [{ from: H() }],
|
|
7741
7741
|
"gradient-via-pos": [{ via: H() }],
|
|
7742
7742
|
"gradient-to-pos": [{ to: H() }],
|
|
7743
|
-
"gradient-from": [{ from:
|
|
7744
|
-
"gradient-via": [{ via:
|
|
7745
|
-
"gradient-to": [{ to:
|
|
7743
|
+
"gradient-from": [{ from: z() }],
|
|
7744
|
+
"gradient-via": [{ via: z() }],
|
|
7745
|
+
"gradient-to": [{ to: z() }],
|
|
7746
7746
|
rounded: [{ rounded: U() }],
|
|
7747
7747
|
"rounded-s": [{ "rounded-s": U() }],
|
|
7748
7748
|
"rounded-e": [{ "rounded-e": U() }],
|
|
@@ -7774,29 +7774,29 @@ var concatArrays = (e, t) => {
|
|
|
7774
7774
|
"divide-y": [{ "divide-y": W() }],
|
|
7775
7775
|
"divide-y-reverse": ["divide-y-reverse"],
|
|
7776
7776
|
"border-style": [{ border: [
|
|
7777
|
-
...
|
|
7777
|
+
...vm(),
|
|
7778
7778
|
"hidden",
|
|
7779
7779
|
"none"
|
|
7780
7780
|
] }],
|
|
7781
7781
|
"divide-style": [{ divide: [
|
|
7782
|
-
...
|
|
7782
|
+
...vm(),
|
|
7783
7783
|
"hidden",
|
|
7784
7784
|
"none"
|
|
7785
7785
|
] }],
|
|
7786
|
-
"border-color": [{ border:
|
|
7787
|
-
"border-color-x": [{ "border-x":
|
|
7788
|
-
"border-color-y": [{ "border-y":
|
|
7789
|
-
"border-color-s": [{ "border-s":
|
|
7790
|
-
"border-color-e": [{ "border-e":
|
|
7791
|
-
"border-color-bs": [{ "border-bs":
|
|
7792
|
-
"border-color-be": [{ "border-be":
|
|
7793
|
-
"border-color-t": [{ "border-t":
|
|
7794
|
-
"border-color-r": [{ "border-r":
|
|
7795
|
-
"border-color-b": [{ "border-b":
|
|
7796
|
-
"border-color-l": [{ "border-l":
|
|
7797
|
-
"divide-color": [{ divide:
|
|
7786
|
+
"border-color": [{ border: z() }],
|
|
7787
|
+
"border-color-x": [{ "border-x": z() }],
|
|
7788
|
+
"border-color-y": [{ "border-y": z() }],
|
|
7789
|
+
"border-color-s": [{ "border-s": z() }],
|
|
7790
|
+
"border-color-e": [{ "border-e": z() }],
|
|
7791
|
+
"border-color-bs": [{ "border-bs": z() }],
|
|
7792
|
+
"border-color-be": [{ "border-be": z() }],
|
|
7793
|
+
"border-color-t": [{ "border-t": z() }],
|
|
7794
|
+
"border-color-r": [{ "border-r": z() }],
|
|
7795
|
+
"border-color-b": [{ "border-b": z() }],
|
|
7796
|
+
"border-color-l": [{ "border-l": z() }],
|
|
7797
|
+
"divide-color": [{ divide: z() }],
|
|
7798
7798
|
"outline-style": [{ outline: [
|
|
7799
|
-
...
|
|
7799
|
+
...vm(),
|
|
7800
7800
|
"none",
|
|
7801
7801
|
"hidden"
|
|
7802
7802
|
] }],
|
|
@@ -7811,7 +7811,7 @@ var concatArrays = (e, t) => {
|
|
|
7811
7811
|
isArbitraryVariableLength,
|
|
7812
7812
|
isArbitraryLength
|
|
7813
7813
|
] }],
|
|
7814
|
-
"outline-color": [{ outline:
|
|
7814
|
+
"outline-color": [{ outline: z() }],
|
|
7815
7815
|
shadow: [{ shadow: [
|
|
7816
7816
|
"",
|
|
7817
7817
|
"none",
|
|
@@ -7819,28 +7819,28 @@ var concatArrays = (e, t) => {
|
|
|
7819
7819
|
isArbitraryVariableShadow,
|
|
7820
7820
|
isArbitraryShadow
|
|
7821
7821
|
] }],
|
|
7822
|
-
"shadow-color": [{ shadow:
|
|
7822
|
+
"shadow-color": [{ shadow: z() }],
|
|
7823
7823
|
"inset-shadow": [{ "inset-shadow": [
|
|
7824
7824
|
"none",
|
|
7825
7825
|
p,
|
|
7826
7826
|
isArbitraryVariableShadow,
|
|
7827
7827
|
isArbitraryShadow
|
|
7828
7828
|
] }],
|
|
7829
|
-
"inset-shadow-color": [{ "inset-shadow":
|
|
7829
|
+
"inset-shadow-color": [{ "inset-shadow": z() }],
|
|
7830
7830
|
"ring-w": [{ ring: W() }],
|
|
7831
7831
|
"ring-w-inset": ["ring-inset"],
|
|
7832
|
-
"ring-color": [{ ring:
|
|
7832
|
+
"ring-color": [{ ring: z() }],
|
|
7833
7833
|
"ring-offset-w": [{ "ring-offset": [isNumber, isArbitraryLength] }],
|
|
7834
|
-
"ring-offset-color": [{ "ring-offset":
|
|
7834
|
+
"ring-offset-color": [{ "ring-offset": z() }],
|
|
7835
7835
|
"inset-ring-w": [{ "inset-ring": W() }],
|
|
7836
|
-
"inset-ring-color": [{ "inset-ring":
|
|
7836
|
+
"inset-ring-color": [{ "inset-ring": z() }],
|
|
7837
7837
|
"text-shadow": [{ "text-shadow": [
|
|
7838
7838
|
"none",
|
|
7839
7839
|
m,
|
|
7840
7840
|
isArbitraryVariableShadow,
|
|
7841
7841
|
isArbitraryShadow
|
|
7842
7842
|
] }],
|
|
7843
|
-
"text-shadow-color": [{ "text-shadow":
|
|
7843
|
+
"text-shadow-color": [{ "text-shadow": z() }],
|
|
7844
7844
|
opacity: [{ opacity: [
|
|
7845
7845
|
isNumber,
|
|
7846
7846
|
isArbitraryVariable,
|
|
@@ -7869,37 +7869,37 @@ var concatArrays = (e, t) => {
|
|
|
7869
7869
|
"mask-image-linear-pos": [{ "mask-linear": [isNumber] }],
|
|
7870
7870
|
"mask-image-linear-from-pos": [{ "mask-linear-from": K() }],
|
|
7871
7871
|
"mask-image-linear-to-pos": [{ "mask-linear-to": K() }],
|
|
7872
|
-
"mask-image-linear-from-color": [{ "mask-linear-from":
|
|
7873
|
-
"mask-image-linear-to-color": [{ "mask-linear-to":
|
|
7872
|
+
"mask-image-linear-from-color": [{ "mask-linear-from": z() }],
|
|
7873
|
+
"mask-image-linear-to-color": [{ "mask-linear-to": z() }],
|
|
7874
7874
|
"mask-image-t-from-pos": [{ "mask-t-from": K() }],
|
|
7875
7875
|
"mask-image-t-to-pos": [{ "mask-t-to": K() }],
|
|
7876
|
-
"mask-image-t-from-color": [{ "mask-t-from":
|
|
7877
|
-
"mask-image-t-to-color": [{ "mask-t-to":
|
|
7876
|
+
"mask-image-t-from-color": [{ "mask-t-from": z() }],
|
|
7877
|
+
"mask-image-t-to-color": [{ "mask-t-to": z() }],
|
|
7878
7878
|
"mask-image-r-from-pos": [{ "mask-r-from": K() }],
|
|
7879
7879
|
"mask-image-r-to-pos": [{ "mask-r-to": K() }],
|
|
7880
|
-
"mask-image-r-from-color": [{ "mask-r-from":
|
|
7881
|
-
"mask-image-r-to-color": [{ "mask-r-to":
|
|
7880
|
+
"mask-image-r-from-color": [{ "mask-r-from": z() }],
|
|
7881
|
+
"mask-image-r-to-color": [{ "mask-r-to": z() }],
|
|
7882
7882
|
"mask-image-b-from-pos": [{ "mask-b-from": K() }],
|
|
7883
7883
|
"mask-image-b-to-pos": [{ "mask-b-to": K() }],
|
|
7884
|
-
"mask-image-b-from-color": [{ "mask-b-from":
|
|
7885
|
-
"mask-image-b-to-color": [{ "mask-b-to":
|
|
7884
|
+
"mask-image-b-from-color": [{ "mask-b-from": z() }],
|
|
7885
|
+
"mask-image-b-to-color": [{ "mask-b-to": z() }],
|
|
7886
7886
|
"mask-image-l-from-pos": [{ "mask-l-from": K() }],
|
|
7887
7887
|
"mask-image-l-to-pos": [{ "mask-l-to": K() }],
|
|
7888
|
-
"mask-image-l-from-color": [{ "mask-l-from":
|
|
7889
|
-
"mask-image-l-to-color": [{ "mask-l-to":
|
|
7888
|
+
"mask-image-l-from-color": [{ "mask-l-from": z() }],
|
|
7889
|
+
"mask-image-l-to-color": [{ "mask-l-to": z() }],
|
|
7890
7890
|
"mask-image-x-from-pos": [{ "mask-x-from": K() }],
|
|
7891
7891
|
"mask-image-x-to-pos": [{ "mask-x-to": K() }],
|
|
7892
|
-
"mask-image-x-from-color": [{ "mask-x-from":
|
|
7893
|
-
"mask-image-x-to-color": [{ "mask-x-to":
|
|
7892
|
+
"mask-image-x-from-color": [{ "mask-x-from": z() }],
|
|
7893
|
+
"mask-image-x-to-color": [{ "mask-x-to": z() }],
|
|
7894
7894
|
"mask-image-y-from-pos": [{ "mask-y-from": K() }],
|
|
7895
7895
|
"mask-image-y-to-pos": [{ "mask-y-to": K() }],
|
|
7896
|
-
"mask-image-y-from-color": [{ "mask-y-from":
|
|
7897
|
-
"mask-image-y-to-color": [{ "mask-y-to":
|
|
7896
|
+
"mask-image-y-from-color": [{ "mask-y-from": z() }],
|
|
7897
|
+
"mask-image-y-to-color": [{ "mask-y-to": z() }],
|
|
7898
7898
|
"mask-image-radial": [{ "mask-radial": [isArbitraryVariable, isArbitraryValue] }],
|
|
7899
7899
|
"mask-image-radial-from-pos": [{ "mask-radial-from": K() }],
|
|
7900
7900
|
"mask-image-radial-to-pos": [{ "mask-radial-to": K() }],
|
|
7901
|
-
"mask-image-radial-from-color": [{ "mask-radial-from":
|
|
7902
|
-
"mask-image-radial-to-color": [{ "mask-radial-to":
|
|
7901
|
+
"mask-image-radial-from-color": [{ "mask-radial-from": z() }],
|
|
7902
|
+
"mask-image-radial-to-color": [{ "mask-radial-to": z() }],
|
|
7903
7903
|
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
|
|
7904
7904
|
"mask-image-radial-size": [{ "mask-radial": [{
|
|
7905
7905
|
closest: ["side", "corner"],
|
|
@@ -7909,8 +7909,8 @@ var concatArrays = (e, t) => {
|
|
|
7909
7909
|
"mask-image-conic-pos": [{ "mask-conic": [isNumber] }],
|
|
7910
7910
|
"mask-image-conic-from-pos": [{ "mask-conic-from": K() }],
|
|
7911
7911
|
"mask-image-conic-to-pos": [{ "mask-conic-to": K() }],
|
|
7912
|
-
"mask-image-conic-from-color": [{ "mask-conic-from":
|
|
7913
|
-
"mask-image-conic-to-color": [{ "mask-conic-to":
|
|
7912
|
+
"mask-image-conic-from-color": [{ "mask-conic-from": z() }],
|
|
7913
|
+
"mask-image-conic-to-color": [{ "mask-conic-to": z() }],
|
|
7914
7914
|
"mask-mode": [{ mask: [
|
|
7915
7915
|
"alpha",
|
|
7916
7916
|
"luminance",
|
|
@@ -7924,8 +7924,8 @@ var concatArrays = (e, t) => {
|
|
|
7924
7924
|
"stroke",
|
|
7925
7925
|
"view"
|
|
7926
7926
|
] }],
|
|
7927
|
-
"mask-position": [{ mask:
|
|
7928
|
-
"mask-repeat": [{ mask:
|
|
7927
|
+
"mask-position": [{ mask: _m() }],
|
|
7928
|
+
"mask-repeat": [{ mask: B() }],
|
|
7929
7929
|
"mask-size": [{ mask: V() }],
|
|
7930
7930
|
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
|
|
7931
7931
|
"mask-image": [{ mask: [
|
|
@@ -7939,7 +7939,7 @@ var concatArrays = (e, t) => {
|
|
|
7939
7939
|
isArbitraryVariable,
|
|
7940
7940
|
isArbitraryValue
|
|
7941
7941
|
] }],
|
|
7942
|
-
blur: [{ blur:
|
|
7942
|
+
blur: [{ blur: ym() }],
|
|
7943
7943
|
brightness: [{ brightness: [
|
|
7944
7944
|
isNumber,
|
|
7945
7945
|
isArbitraryVariable,
|
|
@@ -7957,7 +7957,7 @@ var concatArrays = (e, t) => {
|
|
|
7957
7957
|
isArbitraryVariableShadow,
|
|
7958
7958
|
isArbitraryShadow
|
|
7959
7959
|
] }],
|
|
7960
|
-
"drop-shadow-color": [{ "drop-shadow":
|
|
7960
|
+
"drop-shadow-color": [{ "drop-shadow": z() }],
|
|
7961
7961
|
grayscale: [{ grayscale: [
|
|
7962
7962
|
"",
|
|
7963
7963
|
isNumber,
|
|
@@ -7992,7 +7992,7 @@ var concatArrays = (e, t) => {
|
|
|
7992
7992
|
isArbitraryVariable,
|
|
7993
7993
|
isArbitraryValue
|
|
7994
7994
|
] }],
|
|
7995
|
-
"backdrop-blur": [{ "backdrop-blur":
|
|
7995
|
+
"backdrop-blur": [{ "backdrop-blur": ym() }],
|
|
7996
7996
|
"backdrop-brightness": [{ "backdrop-brightness": [
|
|
7997
7997
|
isNumber,
|
|
7998
7998
|
isArbitraryVariable,
|
|
@@ -8085,18 +8085,18 @@ var concatArrays = (e, t) => {
|
|
|
8085
8085
|
isArbitraryValue
|
|
8086
8086
|
] }],
|
|
8087
8087
|
"perspective-origin": [{ "perspective-origin": T() }],
|
|
8088
|
-
rotate: [{ rotate:
|
|
8089
|
-
"rotate-x": [{ "rotate-x":
|
|
8090
|
-
"rotate-y": [{ "rotate-y":
|
|
8091
|
-
"rotate-z": [{ "rotate-z":
|
|
8092
|
-
scale: [{ scale:
|
|
8093
|
-
"scale-x": [{ "scale-x":
|
|
8094
|
-
"scale-y": [{ "scale-y":
|
|
8095
|
-
"scale-z": [{ "scale-z":
|
|
8088
|
+
rotate: [{ rotate: bm() }],
|
|
8089
|
+
"rotate-x": [{ "rotate-x": bm() }],
|
|
8090
|
+
"rotate-y": [{ "rotate-y": bm() }],
|
|
8091
|
+
"rotate-z": [{ "rotate-z": bm() }],
|
|
8092
|
+
scale: [{ scale: xm() }],
|
|
8093
|
+
"scale-x": [{ "scale-x": xm() }],
|
|
8094
|
+
"scale-y": [{ "scale-y": xm() }],
|
|
8095
|
+
"scale-z": [{ "scale-z": xm() }],
|
|
8096
8096
|
"scale-3d": ["scale-3d"],
|
|
8097
|
-
skew: [{ skew:
|
|
8098
|
-
"skew-x": [{ "skew-x":
|
|
8099
|
-
"skew-y": [{ "skew-y":
|
|
8097
|
+
skew: [{ skew: Sm() }],
|
|
8098
|
+
"skew-x": [{ "skew-x": Sm() }],
|
|
8099
|
+
"skew-y": [{ "skew-y": Sm() }],
|
|
8100
8100
|
transform: [{ transform: [
|
|
8101
8101
|
isArbitraryVariable,
|
|
8102
8102
|
isArbitraryValue,
|
|
@@ -8107,14 +8107,14 @@ var concatArrays = (e, t) => {
|
|
|
8107
8107
|
] }],
|
|
8108
8108
|
"transform-origin": [{ origin: T() }],
|
|
8109
8109
|
"transform-style": [{ transform: ["3d", "flat"] }],
|
|
8110
|
-
translate: [{ translate:
|
|
8111
|
-
"translate-x": [{ "translate-x":
|
|
8112
|
-
"translate-y": [{ "translate-y":
|
|
8113
|
-
"translate-z": [{ "translate-z":
|
|
8110
|
+
translate: [{ translate: q() }],
|
|
8111
|
+
"translate-x": [{ "translate-x": q() }],
|
|
8112
|
+
"translate-y": [{ "translate-y": q() }],
|
|
8113
|
+
"translate-z": [{ "translate-z": q() }],
|
|
8114
8114
|
"translate-none": ["translate-none"],
|
|
8115
|
-
accent: [{ accent:
|
|
8115
|
+
accent: [{ accent: z() }],
|
|
8116
8116
|
appearance: [{ appearance: ["none", "auto"] }],
|
|
8117
|
-
"caret-color": [{ caret:
|
|
8117
|
+
"caret-color": [{ caret: z() }],
|
|
8118
8118
|
"color-scheme": [{ scheme: [
|
|
8119
8119
|
"normal",
|
|
8120
8120
|
"dark",
|
|
@@ -8238,14 +8238,14 @@ var concatArrays = (e, t) => {
|
|
|
8238
8238
|
isArbitraryVariable,
|
|
8239
8239
|
isArbitraryValue
|
|
8240
8240
|
] }],
|
|
8241
|
-
fill: [{ fill: ["none", ...
|
|
8241
|
+
fill: [{ fill: ["none", ...z()] }],
|
|
8242
8242
|
"stroke-w": [{ stroke: [
|
|
8243
8243
|
isNumber,
|
|
8244
8244
|
isArbitraryVariableLength,
|
|
8245
8245
|
isArbitraryLength,
|
|
8246
8246
|
isArbitraryNumber
|
|
8247
8247
|
] }],
|
|
8248
|
-
stroke: [{ stroke: ["none", ...
|
|
8248
|
+
stroke: [{ stroke: ["none", ...z()] }],
|
|
8249
8249
|
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
|
|
8250
8250
|
},
|
|
8251
8251
|
conflictingClassGroups: {
|
|
@@ -8572,10 +8572,16 @@ const RECOVERY_DELAYS_MS = [
|
|
|
8572
8572
|
1e4,
|
|
8573
8573
|
2e4,
|
|
8574
8574
|
3e4
|
|
8575
|
-
]
|
|
8575
|
+
];
|
|
8576
|
+
var InvalidUriError = class extends Error {
|
|
8577
|
+
constructor() {
|
|
8578
|
+
super("Invalid URI");
|
|
8579
|
+
}
|
|
8580
|
+
};
|
|
8581
|
+
const createSipService = (e, t = {}) => {
|
|
8576
8582
|
let n = shallowRef(null), i = shallowRef(null), a = shallowRef(/* @__PURE__ */ new Map()), o = new Audio();
|
|
8577
8583
|
o.autoplay = !0;
|
|
8578
|
-
let l = shallowRef(void 0), u = shallowRef(null), d = shallowRef(null), f = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Set(), g = /* @__PURE__ */ new Map(), _ = !1, v = null, y = null, b = null, x = null, S = null, w = null, T = 0, E = null, D = computed(() => n.value?.configuration.uri?.user || ""), { startRingtone:
|
|
8584
|
+
let l = shallowRef(void 0), u = shallowRef(null), d = shallowRef(null), f = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Set(), g = /* @__PURE__ */ new Map(), _ = !1, v = null, y = null, b = null, x = null, S = null, w = null, T = 0, E = null, D = null, O = 0, k = 0, A = computed(() => n.value?.configuration.uri?.user || ""), { startRingtone: j, stopRingtone: M, startRingback: N, stopRingback: P, playAutoAnswerBeep: F, setNotificationVolume: I, setRingtoneVolume: L, setRingtoneTone: gm } = useAudioSounds(), R = (e) => e instanceof Inviter || e instanceof Invitation ? e.request?.callId || e.dialog?.callId || e.id || crypto.randomUUID() : e.dialog?.callId || e.id || crypto.randomUUID(), z = (e) => {
|
|
8579
8585
|
if (!(e instanceof Invitation)) return;
|
|
8580
8586
|
let t = e.request;
|
|
8581
8587
|
if (!t) return;
|
|
@@ -8584,23 +8590,23 @@ const RECOVERY_DELAYS_MS = [
|
|
|
8584
8590
|
...i ? { id: i } : {},
|
|
8585
8591
|
...n ? { name: n } : {}
|
|
8586
8592
|
};
|
|
8587
|
-
},
|
|
8588
|
-
let o =
|
|
8593
|
+
}, _m = (e, n, i, a) => {
|
|
8594
|
+
let o = z(e), s = {
|
|
8589
8595
|
channelId: n,
|
|
8590
|
-
sipCallId:
|
|
8596
|
+
sipCallId: R(e),
|
|
8591
8597
|
direction: i,
|
|
8592
8598
|
remoteNumber: a,
|
|
8593
8599
|
...o ? { queue: o } : {}
|
|
8594
8600
|
};
|
|
8595
8601
|
return f.set(n, s), t.onCallContext?.(s), s;
|
|
8596
|
-
},
|
|
8602
|
+
}, B = (e, n) => {
|
|
8597
8603
|
let i = f.get(e);
|
|
8598
8604
|
i && t.onCallState?.({
|
|
8599
8605
|
...i,
|
|
8600
8606
|
state: n,
|
|
8601
8607
|
timestamp: Date.now()
|
|
8602
8608
|
});
|
|
8603
|
-
},
|
|
8609
|
+
}, V = (e, n) => {
|
|
8604
8610
|
if (a.value.get(n) !== e || e.state !== SessionState.Established) return;
|
|
8605
8611
|
let i = f.get(n), o = e.sessionDescriptionHandler, s = o?.localMediaStream ?? d.value, l = o?.remoteMediaStream ?? u.value, m = s?.getAudioTracks() ?? [], g = l?.getAudioTracks() ?? [];
|
|
8606
8612
|
if (!i || !s || !l || m.length === 0 || g.length === 0) return;
|
|
@@ -8614,14 +8620,14 @@ const RECOVERY_DELAYS_MS = [
|
|
|
8614
8620
|
localStream: s,
|
|
8615
8621
|
remoteStream: l
|
|
8616
8622
|
}));
|
|
8617
|
-
},
|
|
8623
|
+
}, H = (e) => {
|
|
8618
8624
|
f.delete(e), p.delete(e), m.delete(e);
|
|
8619
|
-
},
|
|
8625
|
+
}, U = (n, i) => {
|
|
8620
8626
|
if (a.value.get(n) !== i) return;
|
|
8621
8627
|
let o = g.get(i);
|
|
8622
8628
|
o && clearTimeout(o), g.delete(i);
|
|
8623
8629
|
let s = e.channels.value.find((e) => e.id === n), l = f.get(n), u = m.has(n) || s?.status === "connected";
|
|
8624
|
-
|
|
8630
|
+
H(n), a.value.delete(n), e.updateChannelState(n, {
|
|
8625
8631
|
status: "idle",
|
|
8626
8632
|
remoteNumber: "",
|
|
8627
8633
|
remoteDisplayName: void 0,
|
|
@@ -8633,7 +8639,7 @@ const RECOVERY_DELAYS_MS = [
|
|
|
8633
8639
|
hasEarlyMedia: !1
|
|
8634
8640
|
});
|
|
8635
8641
|
let d = e.transferInProgress.value;
|
|
8636
|
-
if (d && (d.originalChannelId === n || d.consultationChannelId === n) && e.setTransferInProgress(null), e.activeChannelId.value === n &&
|
|
8642
|
+
if (d && (d.originalChannelId === n || d.consultationChannelId === n) && e.setTransferInProgress(null), e.activeChannelId.value === n && $(), K(), l) {
|
|
8637
8643
|
try {
|
|
8638
8644
|
e.addCallLog({
|
|
8639
8645
|
number: l.remoteNumber,
|
|
@@ -8655,11 +8661,11 @@ const RECOVERY_DELAYS_MS = [
|
|
|
8655
8661
|
console.warn("[SipJs] Call ended, but the state callback failed:", e);
|
|
8656
8662
|
}
|
|
8657
8663
|
}
|
|
8658
|
-
},
|
|
8664
|
+
}, vm = (e, t) => {
|
|
8659
8665
|
g.has(t) || g.set(t, setTimeout(() => {
|
|
8660
|
-
console.warn("[SipJs] Hangup did not terminate; releasing local call state"),
|
|
8666
|
+
console.warn("[SipJs] Hangup did not terminate; releasing local call state"), G(t), U(e, t);
|
|
8661
8667
|
}, 5e3));
|
|
8662
|
-
},
|
|
8668
|
+
}, G = (e) => {
|
|
8663
8669
|
if (e.state !== SessionState.Terminated) try {
|
|
8664
8670
|
e.dispose().catch((e) => {
|
|
8665
8671
|
console.warn("[SipJs] Session disposal failed:", e);
|
|
@@ -8667,15 +8673,15 @@ const RECOVERY_DELAYS_MS = [
|
|
|
8667
8673
|
} catch (e) {
|
|
8668
8674
|
console.warn("[SipJs] Session disposal failed:", e);
|
|
8669
8675
|
}
|
|
8670
|
-
},
|
|
8671
|
-
e.channels.value.some((e) => e.status === "incoming") && !isAutoAnswerEnabled() ?
|
|
8672
|
-
},
|
|
8673
|
-
await
|
|
8674
|
-
},
|
|
8676
|
+
}, K = () => {
|
|
8677
|
+
e.channels.value.some((e) => e.status === "incoming") && !isAutoAnswerEnabled() ? j() : M(), e.activeChannel.value?.status === "calling" ? N() : P();
|
|
8678
|
+
}, ym = async (e, t, n) => {
|
|
8679
|
+
await F(), isAutoAnswerEnabled() && a.value.get(e) === t && t.state === SessionState.Initial && await Im(n);
|
|
8680
|
+
}, bm = (e) => {
|
|
8675
8681
|
o.volume = e / 100;
|
|
8676
|
-
},
|
|
8682
|
+
}, xm = async (e) => {
|
|
8677
8683
|
typeof o.setSinkId == "function" && await o.setSinkId(e);
|
|
8678
|
-
},
|
|
8684
|
+
}, Sm = async (t) => {
|
|
8679
8685
|
if (!t) return;
|
|
8680
8686
|
let n = [...a.value.entries()].flatMap(([e, t]) => {
|
|
8681
8687
|
let n = t.sessionDescriptionHandler, i = n?.peerConnection?.getSenders().find((e) => e.track?.kind === "audio");
|
|
@@ -8693,7 +8699,7 @@ const RECOVERY_DELAYS_MS = [
|
|
|
8693
8699
|
let i = [], o = [];
|
|
8694
8700
|
try {
|
|
8695
8701
|
for (let { sender: e } of n) {
|
|
8696
|
-
let n = await navigator.mediaDevices.getUserMedia(
|
|
8702
|
+
let n = await navigator.mediaDevices.getUserMedia(Em(!1, t));
|
|
8697
8703
|
i.push(n);
|
|
8698
8704
|
let [a] = n.getAudioTracks(), s = e.track;
|
|
8699
8705
|
if (!a || !s) throw Error("Could not acquire an audio track for the selected microphone");
|
|
@@ -8714,7 +8720,7 @@ const RECOVERY_DELAYS_MS = [
|
|
|
8714
8720
|
e !== l && d.value?.removeTrack(e);
|
|
8715
8721
|
}), d.value.getTracks().includes(l) || d.value.addTrack(l)));
|
|
8716
8722
|
try {
|
|
8717
|
-
|
|
8723
|
+
V(n, t);
|
|
8718
8724
|
} catch (e) {
|
|
8719
8725
|
console.error("[SipJs] Media-ready callback failed after microphone switch:", e);
|
|
8720
8726
|
}
|
|
@@ -8730,32 +8736,32 @@ const RECOVERY_DELAYS_MS = [
|
|
|
8730
8736
|
} catch (e) {
|
|
8731
8737
|
await Promise.allSettled(o.map(({ sender: e, previousTrack: t }) => e.replaceTrack(t))), i.forEach((e) => e.getTracks().forEach((e) => e.stop())), console.warn("[SipJs] Failed to switch microphone:", e);
|
|
8732
8738
|
}
|
|
8733
|
-
},
|
|
8739
|
+
}, q = (e, t) => {
|
|
8734
8740
|
let n = !1, i = e.sessionDescriptionHandler;
|
|
8735
8741
|
return i?.peerConnection && i.peerConnection.getSenders().forEach((e) => {
|
|
8736
8742
|
e.track && e.track.kind === "audio" && (e.track.enabled = t, n = !0);
|
|
8737
8743
|
}), n;
|
|
8738
|
-
},
|
|
8744
|
+
}, Cm = (e) => {
|
|
8739
8745
|
let t = !1;
|
|
8740
8746
|
return d.value && d.value.getAudioTracks().forEach((n) => {
|
|
8741
8747
|
n.enabled = e, t = !0;
|
|
8742
8748
|
}), t;
|
|
8743
|
-
},
|
|
8744
|
-
let n = !(t?.isHeld || t?.isMuted), i =
|
|
8749
|
+
}, J = (e, t) => {
|
|
8750
|
+
let n = !(t?.isHeld || t?.isMuted), i = q(e, n), a = Cm(n);
|
|
8745
8751
|
!i && !a && console.warn("[SipJs] No audio tracks found to apply channel audio state");
|
|
8746
|
-
},
|
|
8752
|
+
}, wm = (t) => {
|
|
8747
8753
|
for (let [n, i] of a.value.entries()) if (i === t) return e.channels.value.find((e) => e.id === n) || null;
|
|
8748
8754
|
return e.activeChannel.value || null;
|
|
8749
|
-
},
|
|
8755
|
+
}, Tm = async (e) => {
|
|
8750
8756
|
let t = e.sessionDescriptionHandler?.peerConnection;
|
|
8751
8757
|
if (!t) return;
|
|
8752
|
-
let n =
|
|
8758
|
+
let n = wm(e), i = !(n?.isHeld || n?.isMuted), o = t.getSenders().find((e) => e.track?.kind === "audio");
|
|
8753
8759
|
if (o?.track) {
|
|
8754
|
-
o.track.enabled = i, n &&
|
|
8760
|
+
o.track.enabled = i, n && V(e, n.id);
|
|
8755
8761
|
return;
|
|
8756
8762
|
}
|
|
8757
8763
|
try {
|
|
8758
|
-
let o = await navigator.mediaDevices.getUserMedia(
|
|
8764
|
+
let o = await navigator.mediaDevices.getUserMedia(Em(!1));
|
|
8759
8765
|
if (![...a.value.values()].includes(e)) {
|
|
8760
8766
|
o.getTracks().forEach((e) => e.stop());
|
|
8761
8767
|
return;
|
|
@@ -8766,11 +8772,11 @@ const RECOVERY_DELAYS_MS = [
|
|
|
8766
8772
|
let l = new MediaStream([s]);
|
|
8767
8773
|
d.value = l;
|
|
8768
8774
|
let u = t.getSenders().find((e) => e.track === null);
|
|
8769
|
-
u ? await u.replaceTrack(s) : t.addTrack(s, l),
|
|
8775
|
+
u ? await u.replaceTrack(s) : t.addTrack(s, l), J(e, n), n && V(e, n.id);
|
|
8770
8776
|
} catch (e) {
|
|
8771
8777
|
console.warn("[SipJs] Failed to recover outbound audio track:", e);
|
|
8772
8778
|
}
|
|
8773
|
-
},
|
|
8779
|
+
}, Em = (e = !1, t = l.value) => {
|
|
8774
8780
|
let n = {
|
|
8775
8781
|
echoCancellation: { ideal: !0 },
|
|
8776
8782
|
noiseSuppression: { ideal: !1 },
|
|
@@ -8781,7 +8787,7 @@ const RECOVERY_DELAYS_MS = [
|
|
|
8781
8787
|
audio: n,
|
|
8782
8788
|
video: e
|
|
8783
8789
|
};
|
|
8784
|
-
},
|
|
8790
|
+
}, Y = async () => {
|
|
8785
8791
|
let t = i.value;
|
|
8786
8792
|
t && await t.register({ requestDelegate: {
|
|
8787
8793
|
onAccept: () => {
|
|
@@ -8790,80 +8796,92 @@ const RECOVERY_DELAYS_MS = [
|
|
|
8790
8796
|
onReject: (t) => {
|
|
8791
8797
|
e.setConnected(!1);
|
|
8792
8798
|
let n = t?.message?.statusCode;
|
|
8793
|
-
n === 401 || n === 403 || n === 404 ||
|
|
8799
|
+
n === 401 || n === 403 || n === 404 || Am();
|
|
8794
8800
|
}
|
|
8795
8801
|
} });
|
|
8796
|
-
},
|
|
8797
|
-
if (
|
|
8802
|
+
}, Dm = async (t) => {
|
|
8803
|
+
if (n.value) return;
|
|
8804
|
+
D &&= (clearTimeout(D), null);
|
|
8805
|
+
let a = k;
|
|
8806
|
+
try {
|
|
8807
|
+
(await navigator.mediaDevices.getUserMedia({ audio: !0 })).getTracks().forEach((e) => e.stop());
|
|
8808
|
+
} catch (e) {
|
|
8809
|
+
console.error("Microphone permission denied", e);
|
|
8810
|
+
return;
|
|
8811
|
+
}
|
|
8812
|
+
try {
|
|
8813
|
+
let a = UserAgent.makeURI(t.uri);
|
|
8814
|
+
if (!a) throw new InvalidUriError();
|
|
8815
|
+
_ = t.earlyMedia ?? !1;
|
|
8816
|
+
let o = {
|
|
8817
|
+
server: t.transportOptions.server,
|
|
8818
|
+
keepAliveInterval: t.transportOptions.keepAliveInterval ?? 30
|
|
8819
|
+
}, s = {
|
|
8820
|
+
uri: a,
|
|
8821
|
+
logLevel: "error",
|
|
8822
|
+
transportOptions: o,
|
|
8823
|
+
authorizationUsername: t.authorizationUsername,
|
|
8824
|
+
authorizationPassword: t.authorizationPassword,
|
|
8825
|
+
reconnectionAttempts: 0,
|
|
8826
|
+
delegate: {
|
|
8827
|
+
onConnect: () => {},
|
|
8828
|
+
onDisconnect: () => {
|
|
8829
|
+
e.setConnected(!1), Am();
|
|
8830
|
+
},
|
|
8831
|
+
onInvite: (e) => Pm(e)
|
|
8832
|
+
}
|
|
8833
|
+
}, l = typeof SharedWorker < "u", u = l;
|
|
8834
|
+
l && (s.transportConstructor = SharedWorkerTransport, s.transportOptions = {
|
|
8835
|
+
...o,
|
|
8836
|
+
clientId: crypto.randomUUID(),
|
|
8837
|
+
connectionId: `${t.transportOptions.server}|${t.uri}|${crypto.randomUUID()}`
|
|
8838
|
+
});
|
|
8798
8839
|
try {
|
|
8799
|
-
|
|
8840
|
+
n.value = new UserAgent(s);
|
|
8800
8841
|
} catch (e) {
|
|
8801
|
-
|
|
8802
|
-
|
|
8842
|
+
if (!l) throw e;
|
|
8843
|
+
u = !1, console.warn("[SipJs] SharedWorker unavailable, using native WebSocket transport", e), delete s.transportConstructor, s.transportOptions = o, n.value = new UserAgent(s);
|
|
8803
8844
|
}
|
|
8804
8845
|
try {
|
|
8805
|
-
|
|
8806
|
-
if (!a) throw Error("Invalid URI");
|
|
8807
|
-
_ = t.earlyMedia ?? !1;
|
|
8808
|
-
let o = {
|
|
8809
|
-
server: t.transportOptions.server,
|
|
8810
|
-
keepAliveInterval: t.transportOptions.keepAliveInterval ?? 30
|
|
8811
|
-
}, s = {
|
|
8812
|
-
uri: a,
|
|
8813
|
-
logLevel: "error",
|
|
8814
|
-
transportOptions: o,
|
|
8815
|
-
authorizationUsername: t.authorizationUsername,
|
|
8816
|
-
authorizationPassword: t.authorizationPassword,
|
|
8817
|
-
reconnectionAttempts: 0,
|
|
8818
|
-
delegate: {
|
|
8819
|
-
onConnect: () => {},
|
|
8820
|
-
onDisconnect: () => {
|
|
8821
|
-
e.setConnected(!1), Z();
|
|
8822
|
-
},
|
|
8823
|
-
onInvite: (e) => Om(e)
|
|
8824
|
-
}
|
|
8825
|
-
}, l = typeof SharedWorker < "u", u = l;
|
|
8826
|
-
l && (s.transportConstructor = SharedWorkerTransport, s.transportOptions = {
|
|
8827
|
-
...o,
|
|
8828
|
-
clientId: crypto.randomUUID(),
|
|
8829
|
-
connectionId: `${t.transportOptions.server}|${t.uri}|${crypto.randomUUID()}`
|
|
8830
|
-
});
|
|
8831
|
-
try {
|
|
8832
|
-
n.value = new UserAgent(s);
|
|
8833
|
-
} catch (e) {
|
|
8834
|
-
if (!l) throw e;
|
|
8835
|
-
u = !1, console.warn("[SipJs] SharedWorker unavailable, using native WebSocket transport", e), delete s.transportConstructor, s.transportOptions = o, n.value = new UserAgent(s);
|
|
8836
|
-
}
|
|
8837
|
-
try {
|
|
8838
|
-
await n.value.start(), i.value = new Registerer(n.value), await Sm();
|
|
8839
|
-
} catch (e) {
|
|
8840
|
-
if (!u) throw e;
|
|
8841
|
-
console.warn("[SipJs] SharedWorker connection failed, retrying with native WebSocket", e);
|
|
8842
|
-
let t = n.value;
|
|
8843
|
-
n.value = null, i.value = null;
|
|
8844
|
-
try {
|
|
8845
|
-
await t?.stop();
|
|
8846
|
-
} catch (e) {
|
|
8847
|
-
console.warn("[SipJs] Failed to clean up SharedWorker transport", e);
|
|
8848
|
-
}
|
|
8849
|
-
delete s.transportConstructor, s.transportOptions = o, n.value = new UserAgent(s), await n.value.start(), i.value = new Registerer(n.value), await Sm();
|
|
8850
|
-
}
|
|
8851
|
-
wm();
|
|
8846
|
+
await n.value.start(), i.value = new Registerer(n.value), await Y();
|
|
8852
8847
|
} catch (e) {
|
|
8853
|
-
|
|
8848
|
+
if (!u) throw e;
|
|
8849
|
+
console.warn("[SipJs] SharedWorker connection failed, retrying with native WebSocket", e);
|
|
8854
8850
|
let t = n.value;
|
|
8855
|
-
|
|
8856
|
-
|
|
8851
|
+
n.value = null, i.value = null;
|
|
8852
|
+
try {
|
|
8853
|
+
await t?.stop();
|
|
8857
8854
|
} catch (e) {
|
|
8858
|
-
console.warn("[SipJs] Failed to clean up
|
|
8855
|
+
console.warn("[SipJs] Failed to clean up SharedWorker transport", e);
|
|
8859
8856
|
}
|
|
8857
|
+
delete s.transportConstructor, s.transportOptions = o, n.value = new UserAgent(s), await n.value.start(), i.value = new Registerer(n.value), await Y();
|
|
8860
8858
|
}
|
|
8861
|
-
|
|
8862
|
-
|
|
8859
|
+
km(), O = 0;
|
|
8860
|
+
} catch (e) {
|
|
8861
|
+
console.error("[SipJs] Failed to initialize WSS/SIP connection", e);
|
|
8862
|
+
let o = n.value;
|
|
8863
|
+
if (n.value = null, i.value = null, o !== null) try {
|
|
8864
|
+
await o.stop();
|
|
8865
|
+
} catch (e) {
|
|
8866
|
+
console.warn("[SipJs] Failed to clean up after connection error", e);
|
|
8867
|
+
}
|
|
8868
|
+
!(e instanceof InvalidUriError) && a === k && Om(t);
|
|
8869
|
+
}
|
|
8870
|
+
}, Om = (e) => {
|
|
8871
|
+
if (D) return;
|
|
8872
|
+
let t = RECOVERY_DELAYS_MS[Math.min(O, RECOVERY_DELAYS_MS.length - 1)];
|
|
8873
|
+
O++, D = setTimeout(async () => {
|
|
8874
|
+
if (D = null, !navigator.onLine) {
|
|
8875
|
+
console.log("[SipJs] Skipping initial connection retry, device is offline"), Om(e);
|
|
8876
|
+
return;
|
|
8877
|
+
}
|
|
8878
|
+
console.log("[SipJs] Retrying initial connection..."), await Dm(e);
|
|
8879
|
+
}, t);
|
|
8880
|
+
}, km = () => {
|
|
8863
8881
|
b = new AbortController();
|
|
8864
8882
|
let { signal: t } = b, n = Date.now(), i = (e = 1e3) => {
|
|
8865
8883
|
x && clearTimeout(x), x = setTimeout(async () => {
|
|
8866
|
-
x = null, await
|
|
8884
|
+
x = null, await Mm();
|
|
8867
8885
|
}, e);
|
|
8868
8886
|
}, a = () => {
|
|
8869
8887
|
if (document.visibilityState === "visible") {
|
|
@@ -8885,8 +8903,8 @@ const RECOVERY_DELAYS_MS = [
|
|
|
8885
8903
|
console.log("[SipJs] Page frozen"), S &&= (clearInterval(S), null);
|
|
8886
8904
|
}, { signal: t }), document.addEventListener("resume", () => {
|
|
8887
8905
|
console.log("[SipJs] Page resumed"), n = Date.now(), l(), i(1e3);
|
|
8888
|
-
}, { signal: t }), l(),
|
|
8889
|
-
},
|
|
8906
|
+
}, { signal: t }), l(), jm();
|
|
8907
|
+
}, Am = () => {
|
|
8890
8908
|
if (w || !n.value) return;
|
|
8891
8909
|
let t = RECOVERY_DELAYS_MS[Math.min(T, RECOVERY_DELAYS_MS.length - 1)];
|
|
8892
8910
|
w = setTimeout(async () => {
|
|
@@ -8894,13 +8912,13 @@ const RECOVERY_DELAYS_MS = [
|
|
|
8894
8912
|
T = 0;
|
|
8895
8913
|
return;
|
|
8896
8914
|
}
|
|
8897
|
-
T++, await
|
|
8915
|
+
T++, await Mm(), e.isConnected.value || Am();
|
|
8898
8916
|
}, t);
|
|
8899
|
-
},
|
|
8917
|
+
}, jm = () => {
|
|
8900
8918
|
E && clearInterval(E), E = setInterval(() => {
|
|
8901
|
-
n.value && !e.isConnected.value &&
|
|
8919
|
+
n.value && !e.isConnected.value && Am();
|
|
8902
8920
|
}, 3e4);
|
|
8903
|
-
},
|
|
8921
|
+
}, Mm = async () => {
|
|
8904
8922
|
if (n.value) {
|
|
8905
8923
|
if (!navigator.onLine) {
|
|
8906
8924
|
console.log("[SipJs] Skipping reconnect, device is offline");
|
|
@@ -8912,25 +8930,25 @@ const RECOVERY_DELAYS_MS = [
|
|
|
8912
8930
|
}
|
|
8913
8931
|
try {
|
|
8914
8932
|
if (n.value.isConnected() || (console.log("[SipJs] Reconnecting..."), await n.value.reconnect()), i.value && n.value.isConnected()) try {
|
|
8915
|
-
await
|
|
8933
|
+
await Y();
|
|
8916
8934
|
} catch {}
|
|
8917
8935
|
} catch (e) {
|
|
8918
8936
|
console.error("[SipJs] Reconnection failed:", e);
|
|
8919
8937
|
}
|
|
8920
8938
|
}
|
|
8921
|
-
},
|
|
8922
|
-
b?.abort(), b = null, x &&= (clearTimeout(x), null), S &&= (clearInterval(S), null), E &&= (clearInterval(E), null), w &&= (clearTimeout(w), null), T = 0
|
|
8939
|
+
}, Nm = async () => {
|
|
8940
|
+
b?.abort(), b = null, x &&= (clearTimeout(x), null), S &&= (clearInterval(S), null), E &&= (clearInterval(E), null), w &&= (clearTimeout(w), null), T = 0, D &&= (clearTimeout(D), null), O = 0, k++;
|
|
8923
8941
|
for (let [e, t] of a.value.entries()) {
|
|
8924
8942
|
let n;
|
|
8925
8943
|
try {
|
|
8926
|
-
await Promise.race([
|
|
8944
|
+
await Promise.race([Lm(e, t), new Promise((e) => {
|
|
8927
8945
|
n = setTimeout(e, 1500);
|
|
8928
8946
|
})]);
|
|
8929
8947
|
} finally {
|
|
8930
8948
|
n && clearTimeout(n);
|
|
8931
8949
|
}
|
|
8932
8950
|
}
|
|
8933
|
-
|
|
8951
|
+
$();
|
|
8934
8952
|
let e = i.value, t = n.value;
|
|
8935
8953
|
if (i.value = null, n.value = null, e) try {
|
|
8936
8954
|
await e.unregister();
|
|
@@ -8942,7 +8960,7 @@ const RECOVERY_DELAYS_MS = [
|
|
|
8942
8960
|
} catch (e) {
|
|
8943
8961
|
console.warn("[SipJs] UserAgent stop failed:", e);
|
|
8944
8962
|
}
|
|
8945
|
-
},
|
|
8963
|
+
}, Pm = (t) => {
|
|
8946
8964
|
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);
|
|
8947
8965
|
let n = e.channels.value.find((e) => e.status === "idle" && !a.value.has(e.id));
|
|
8948
8966
|
if (!n) {
|
|
@@ -8957,21 +8975,21 @@ const RECOVERY_DELAYS_MS = [
|
|
|
8957
8975
|
remoteNumber: s,
|
|
8958
8976
|
remoteDisplayName: t.remoteIdentity.displayName || void 0,
|
|
8959
8977
|
hasVideo: o
|
|
8960
|
-
}),
|
|
8978
|
+
}), _m(t, i, "incoming", s), B(i, "ringing"), K(), e.setActiveChannelId(i), isAutoAnswerEnabled() && ym(i, t, o), t.stateChange.addListener((n) => {
|
|
8961
8979
|
switch (n) {
|
|
8962
8980
|
case SessionState.Terminated:
|
|
8963
|
-
|
|
8981
|
+
U(i, t);
|
|
8964
8982
|
break;
|
|
8965
8983
|
case SessionState.Established:
|
|
8966
8984
|
if (a.value.get(i) !== t) break;
|
|
8967
8985
|
m.add(i), e.updateChannelState(i, {
|
|
8968
8986
|
status: "connected",
|
|
8969
8987
|
startTime: Date.now()
|
|
8970
|
-
}),
|
|
8988
|
+
}), B(i, "connected"), e.activeChannelId.value === i && (Q(t), Tm(t).then(() => V(t, i))), K();
|
|
8971
8989
|
break;
|
|
8972
8990
|
}
|
|
8973
8991
|
});
|
|
8974
|
-
},
|
|
8992
|
+
}, Fm = async (t, i = !1) => {
|
|
8975
8993
|
if (!n.value) return;
|
|
8976
8994
|
let o = e.activeChannelId.value;
|
|
8977
8995
|
if (a.value.has(o)) return;
|
|
@@ -8982,71 +9000,71 @@ const RECOVERY_DELAYS_MS = [
|
|
|
8982
9000
|
}
|
|
8983
9001
|
if (!s) return;
|
|
8984
9002
|
let l = new Inviter(n.value, s, { earlyMedia: _ });
|
|
8985
|
-
a.value.set(o, l),
|
|
9003
|
+
a.value.set(o, l), _m(l, o, "outgoing", t), B(o, "dialing"), e.updateChannelState(o, {
|
|
8986
9004
|
status: "calling",
|
|
8987
9005
|
remoteNumber: t,
|
|
8988
9006
|
hasVideo: i
|
|
8989
|
-
}), e.setLastDialedNumber(t),
|
|
9007
|
+
}), e.setLastDialedNumber(t), K(), l.stateChange.addListener((t) => {
|
|
8990
9008
|
switch (t) {
|
|
8991
9009
|
case SessionState.Established:
|
|
8992
9010
|
if (a.value.get(o) !== l) break;
|
|
8993
9011
|
m.add(o), e.channels.value.find((e) => e.id === o)?.status !== "connected" && (e.updateChannelState(o, {
|
|
8994
9012
|
status: "connected",
|
|
8995
9013
|
startTime: Date.now()
|
|
8996
|
-
}),
|
|
9014
|
+
}), B(o, "connected"), Q(l), Tm(l).then(() => V(l, o)), K());
|
|
8997
9015
|
break;
|
|
8998
9016
|
case SessionState.Terminated:
|
|
8999
|
-
|
|
9017
|
+
U(o, l);
|
|
9000
9018
|
break;
|
|
9001
9019
|
}
|
|
9002
9020
|
});
|
|
9003
9021
|
let u = {
|
|
9004
|
-
sessionDescriptionHandlerOptions: { constraints:
|
|
9022
|
+
sessionDescriptionHandlerOptions: { constraints: Em(i) },
|
|
9005
9023
|
requestDelegate: {
|
|
9006
9024
|
onProgress: (t) => {
|
|
9007
|
-
a.value.get(o) === l && (t.message.statusCode === 180 || t.message.statusCode === 183) && (t.message.body && (e.updateChannelState(o, { hasEarlyMedia: !0 }),
|
|
9025
|
+
a.value.get(o) === l && (t.message.statusCode === 180 || t.message.statusCode === 183) && (t.message.body && (e.updateChannelState(o, { hasEarlyMedia: !0 }), Q(l)), K());
|
|
9008
9026
|
},
|
|
9009
9027
|
onAccept: (t) => {
|
|
9010
9028
|
a.value.get(o) === l && e.channels.value.find((e) => e.id === o)?.status !== "connected" && (m.add(o), e.updateChannelState(o, {
|
|
9011
9029
|
status: "connected",
|
|
9012
9030
|
startTime: Date.now()
|
|
9013
|
-
}),
|
|
9031
|
+
}), B(o, "connected"), Q(l), Tm(l).then(() => V(l, o)), K());
|
|
9014
9032
|
}
|
|
9015
9033
|
}
|
|
9016
9034
|
};
|
|
9017
9035
|
try {
|
|
9018
9036
|
await l.invite(u);
|
|
9019
9037
|
} catch (e) {
|
|
9020
|
-
throw
|
|
9038
|
+
throw U(o, l), e;
|
|
9021
9039
|
}
|
|
9022
|
-
},
|
|
9040
|
+
}, Im = async (t = !1) => {
|
|
9023
9041
|
let n = e.activeChannelId.value, i = a.value.get(n);
|
|
9024
9042
|
if (i instanceof Invitation && i.state === SessionState.Initial) {
|
|
9025
|
-
|
|
9043
|
+
M(), e.updateChannelState(n, {
|
|
9026
9044
|
status: "connected",
|
|
9027
9045
|
startTime: Date.now()
|
|
9028
|
-
}),
|
|
9046
|
+
}), K();
|
|
9029
9047
|
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 {
|
|
9030
|
-
await
|
|
9048
|
+
await Bm(n, !0), e.updateChannelState(t, { isHeld: !0 });
|
|
9031
9049
|
} catch (e) {
|
|
9032
9050
|
console.error(`[SipJs] Failed to hold channel ${t}:`, e);
|
|
9033
9051
|
}
|
|
9034
9052
|
let o = { sessionDescriptionHandlerOptions: {
|
|
9035
|
-
constraints:
|
|
9053
|
+
constraints: Em(t),
|
|
9036
9054
|
iceGatheringTimeout: 1e3
|
|
9037
9055
|
} };
|
|
9038
9056
|
try {
|
|
9039
|
-
await i.accept(o),
|
|
9057
|
+
await i.accept(o), K();
|
|
9040
9058
|
} catch (t) {
|
|
9041
9059
|
let i = a.value.get(n);
|
|
9042
9060
|
throw i instanceof Invitation && i.state === SessionState.Initial && (e.updateChannelState(n, {
|
|
9043
9061
|
status: "incoming",
|
|
9044
9062
|
startTime: void 0
|
|
9045
|
-
}),
|
|
9063
|
+
}), K()), t;
|
|
9046
9064
|
}
|
|
9047
9065
|
}
|
|
9048
|
-
},
|
|
9049
|
-
|
|
9066
|
+
}, Lm = async (e, t) => {
|
|
9067
|
+
vm(e, t);
|
|
9050
9068
|
try {
|
|
9051
9069
|
switch (t.state) {
|
|
9052
9070
|
case SessionState.Initial:
|
|
@@ -9060,40 +9078,40 @@ const RECOVERY_DELAYS_MS = [
|
|
|
9060
9078
|
} catch (e) {
|
|
9061
9079
|
console.warn("[SipJs] Hangup signaling failed:", e);
|
|
9062
9080
|
} finally {
|
|
9063
|
-
|
|
9081
|
+
G(t), U(e, t);
|
|
9064
9082
|
}
|
|
9065
|
-
},
|
|
9083
|
+
}, Rm = async () => {
|
|
9066
9084
|
let t = e.activeChannelId.value, n = a.value.get(t);
|
|
9067
|
-
n && await
|
|
9068
|
-
},
|
|
9085
|
+
n && await Lm(t, n);
|
|
9086
|
+
}, zm = () => {
|
|
9069
9087
|
let t = a.value.get(e.activeChannelId.value);
|
|
9070
9088
|
if (!t) return;
|
|
9071
9089
|
let n = !e.isMuted.value;
|
|
9072
|
-
e.setMuted(n),
|
|
9073
|
-
},
|
|
9090
|
+
e.setMuted(n), J(t, e.channels.value.find((t) => t.id === e.activeChannelId.value));
|
|
9091
|
+
}, Bm = async (e, t) => {
|
|
9074
9092
|
let n = { sessionDescriptionHandlerOptions: { hold: t } };
|
|
9075
9093
|
await e.invite(n);
|
|
9076
|
-
},
|
|
9094
|
+
}, Z = async () => {
|
|
9077
9095
|
let t = a.value.get(e.activeChannelId.value);
|
|
9078
9096
|
if (t?.state !== SessionState.Established) return;
|
|
9079
9097
|
let n = !e.isHeld.value;
|
|
9080
9098
|
try {
|
|
9081
|
-
await
|
|
9099
|
+
await Bm(t, n), e.setHeld(n), J(t, e.channels.value.find((t) => t.id === e.activeChannelId.value));
|
|
9082
9100
|
} catch {}
|
|
9083
|
-
},
|
|
9101
|
+
}, Vm = async (t) => {
|
|
9084
9102
|
let n = e.activeChannelId.value;
|
|
9085
9103
|
if (n === t) return;
|
|
9086
9104
|
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);
|
|
9087
9105
|
if (i && i.state === SessionState.Established && !s?.isHeld) try {
|
|
9088
|
-
await
|
|
9106
|
+
await Bm(i, !0), e.updateChannelState(n, { isHeld: !0 }), J(i, e.channels.value.find((e) => e.id === n));
|
|
9089
9107
|
} catch {}
|
|
9090
|
-
if (e.setActiveChannelId(t),
|
|
9108
|
+
if (e.setActiveChannelId(t), K(), o && o.state === SessionState.Established) {
|
|
9091
9109
|
if (l?.isHeld) try {
|
|
9092
|
-
await
|
|
9110
|
+
await Bm(o, !1), e.updateChannelState(t, { isHeld: !1 });
|
|
9093
9111
|
} catch {}
|
|
9094
|
-
|
|
9095
|
-
} else
|
|
9096
|
-
},
|
|
9112
|
+
J(o, e.channels.value.find((e) => e.id === t)), Q(o);
|
|
9113
|
+
} else $();
|
|
9114
|
+
}, Hm = (t) => {
|
|
9097
9115
|
if (!/^[0-9*#]$/.test(t)) return;
|
|
9098
9116
|
let n = a.value.get(e.activeChannelId.value);
|
|
9099
9117
|
if (n?.state !== SessionState.Established) return;
|
|
@@ -9108,10 +9126,10 @@ const RECOVERY_DELAYS_MS = [
|
|
|
9108
9126
|
contentDisposition: "signal"
|
|
9109
9127
|
} } };
|
|
9110
9128
|
n.info(o);
|
|
9111
|
-
},
|
|
9129
|
+
}, Um = (t, n) => {
|
|
9112
9130
|
let i = e.channels.value.find((e) => e.id === t);
|
|
9113
|
-
!i || i.status !== "connected" || (
|
|
9114
|
-
},
|
|
9131
|
+
!i || i.status !== "connected" || (Q(n), J(n, i), Tm(n), o.play().catch(() => {}));
|
|
9132
|
+
}, Wm = async (t) => {
|
|
9115
9133
|
console.log("[SipJs] 🔄 transferCall iniciado"), console.log("[SipJs] Target:", t);
|
|
9116
9134
|
let i = e.activeChannelId.value, o = a.value.get(i);
|
|
9117
9135
|
if (!o) throw console.error("[SipJs] ❌ No hay sesión activa en el canal", i), Error("No active session to transfer");
|
|
@@ -9131,7 +9149,7 @@ const RECOVERY_DELAYS_MS = [
|
|
|
9131
9149
|
},
|
|
9132
9150
|
onReject: (e) => {
|
|
9133
9151
|
let t = e.message.statusCode;
|
|
9134
|
-
console.error("[SipJs] ❌ Transfer REFER rechazado:", t), console.error("[SipJs] Response completo:", e.message),
|
|
9152
|
+
console.error("[SipJs] ❌ Transfer REFER rechazado:", t), console.error("[SipJs] Response completo:", e.message), Um(i, o);
|
|
9135
9153
|
}
|
|
9136
9154
|
},
|
|
9137
9155
|
onNotify: (e) => {
|
|
@@ -9154,7 +9172,7 @@ const RECOVERY_DELAYS_MS = [
|
|
|
9154
9172
|
487: "Transferencia cancelada",
|
|
9155
9173
|
503: "Servicio no disponible - el destino puede estar fuera de línea"
|
|
9156
9174
|
}[t] || `Error en transferencia (código ${t})`;
|
|
9157
|
-
console.warn("[SipJs] 💬", e),
|
|
9175
|
+
console.warn("[SipJs] 💬", e), Um(i, o);
|
|
9158
9176
|
} else t >= 100 && t < 200 && console.log("[SipJs] 📞 Transferencia en progreso:", t, n);
|
|
9159
9177
|
} else console.warn("[SipJs] ⚠️ No se pudo extraer el código de estado del NOTIFY body");
|
|
9160
9178
|
} else console.warn("[SipJs] ⚠️ NOTIFY sin body");
|
|
@@ -9163,28 +9181,28 @@ const RECOVERY_DELAYS_MS = [
|
|
|
9163
9181
|
} catch (e) {
|
|
9164
9182
|
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;
|
|
9165
9183
|
}
|
|
9166
|
-
},
|
|
9184
|
+
}, Gm = async (t) => {
|
|
9167
9185
|
console.log("[SipJs] 🔄 startAttendedTransfer iniciado"), console.log("[SipJs] Target:", t);
|
|
9168
9186
|
let n = e.activeChannelId.value, i = a.value.get(n);
|
|
9169
9187
|
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");
|
|
9170
9188
|
let o = e.channels.value.find((e) => e.status === "idle");
|
|
9171
9189
|
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");
|
|
9172
9190
|
try {
|
|
9173
|
-
console.log("[SipJs] 🔇 Poniendo llamada original en hold..."), await
|
|
9191
|
+
console.log("[SipJs] 🔇 Poniendo llamada original en hold..."), await Bm(i, !0), e.updateChannelState(n, { isHeld: !0 }), console.log("[SipJs] ✅ Llamada original en hold");
|
|
9174
9192
|
} catch (e) {
|
|
9175
9193
|
throw console.error("[SipJs] ❌ Failed to hold original call:", e), Error("Failed to put call on hold");
|
|
9176
9194
|
}
|
|
9177
9195
|
console.log("[SipJs] 🔄 Cambiando al canal de consulta:", o.id), e.setActiveChannelId(o.id);
|
|
9178
9196
|
try {
|
|
9179
|
-
console.log("[SipJs] 📞 Iniciando llamada de consulta a:", t), await
|
|
9197
|
+
console.log("[SipJs] 📞 Iniciando llamada de consulta a:", t), await Fm(t, !1), console.log("[SipJs] ✅ Llamada de consulta iniciada"), e.setTransferInProgress({
|
|
9180
9198
|
originalChannelId: n,
|
|
9181
9199
|
consultationChannelId: o.id,
|
|
9182
9200
|
targetNumber: t
|
|
9183
9201
|
}), console.log("[SipJs] 📋 Transferencia en progreso registrada");
|
|
9184
9202
|
} catch (t) {
|
|
9185
|
-
throw console.error("[SipJs] ❌ Failed to start consultation call:", t), console.log("[SipJs] 🔄 Volviendo al canal original y quitando hold..."), e.setActiveChannelId(n), await
|
|
9203
|
+
throw console.error("[SipJs] ❌ Failed to start consultation call:", t), console.log("[SipJs] 🔄 Volviendo al canal original y quitando hold..."), e.setActiveChannelId(n), await Bm(i, !1).catch(() => {}), e.updateChannelState(n, { isHeld: !1 }), Error("Failed to initiate consultation call");
|
|
9186
9204
|
}
|
|
9187
|
-
},
|
|
9205
|
+
}, Km = async () => {
|
|
9188
9206
|
console.log("[SipJs] 🔄 completeAttendedTransfer iniciado");
|
|
9189
9207
|
let t = e.transferInProgress.value;
|
|
9190
9208
|
if (!t) throw console.error("[SipJs] ❌ No hay transferencia en progreso"), Error("No transfer in progress");
|
|
@@ -9212,7 +9230,7 @@ const RECOVERY_DELAYS_MS = [
|
|
|
9212
9230
|
if (n && n[1]) {
|
|
9213
9231
|
let a = parseInt(n[1]);
|
|
9214
9232
|
a >= 200 && a < 300 ? setTimeout(() => {
|
|
9215
|
-
|
|
9233
|
+
Lm(t.originalChannelId, i), Lm(t.consultationChannelId, o), e.setTransferInProgress(null);
|
|
9216
9234
|
}, 500) : a >= 400 && (console.error("[SipJs] Attended transfer failed with status:", a), e.setTransferInProgress(null));
|
|
9217
9235
|
}
|
|
9218
9236
|
}
|
|
@@ -9227,23 +9245,23 @@ const RECOVERY_DELAYS_MS = [
|
|
|
9227
9245
|
} catch (e) {
|
|
9228
9246
|
throw console.error("[SipJs] Attended transfer failed:", e), e;
|
|
9229
9247
|
}
|
|
9230
|
-
},
|
|
9248
|
+
}, qm = async () => {
|
|
9231
9249
|
let t = e.transferInProgress.value;
|
|
9232
9250
|
if (!t) throw Error("No transfer in progress");
|
|
9233
9251
|
console.log("[SipJs] Canceling attended transfer...");
|
|
9234
9252
|
let n = a.value.get(t.originalChannelId), i = a.value.get(t.consultationChannelId);
|
|
9235
9253
|
if (i) try {
|
|
9236
|
-
await
|
|
9254
|
+
await Lm(t.consultationChannelId, i), console.log("[SipJs] Consultation call ended");
|
|
9237
9255
|
} catch (e) {
|
|
9238
9256
|
console.warn("[SipJs] Error ending consultation:", e);
|
|
9239
9257
|
}
|
|
9240
9258
|
if (n) try {
|
|
9241
|
-
e.setActiveChannelId(t.originalChannelId), await
|
|
9259
|
+
e.setActiveChannelId(t.originalChannelId), await Bm(n, !1), e.updateChannelState(t.originalChannelId, { isHeld: !1 }), console.log("[SipJs] Returned to original call");
|
|
9242
9260
|
} catch (e) {
|
|
9243
9261
|
console.warn("[SipJs] Error resuming original call:", e);
|
|
9244
9262
|
}
|
|
9245
9263
|
e.setTransferInProgress(null);
|
|
9246
|
-
},
|
|
9264
|
+
}, Q = (e) => {
|
|
9247
9265
|
let t = e.sessionDescriptionHandler;
|
|
9248
9266
|
if (!t) {
|
|
9249
9267
|
console.error("[SipJs] setupRemoteMedia: no sessionDescriptionHandler");
|
|
@@ -9256,8 +9274,8 @@ const RECOVERY_DELAYS_MS = [
|
|
|
9256
9274
|
}
|
|
9257
9275
|
if (u.value === n) return;
|
|
9258
9276
|
o.pause(), o.srcObject = null, v?.abort(), v = new AbortController(), u.value = n, d.value = t.localMediaStream ?? null;
|
|
9259
|
-
let i =
|
|
9260
|
-
|
|
9277
|
+
let i = wm(e);
|
|
9278
|
+
J(e, i), i && V(e, i.id);
|
|
9261
9279
|
let a = (e) => {
|
|
9262
9280
|
y?.abort(), y = new AbortController();
|
|
9263
9281
|
let { signal: t } = y, n = () => {
|
|
@@ -9270,34 +9288,34 @@ const RECOVERY_DELAYS_MS = [
|
|
|
9270
9288
|
}, { signal: t }), n();
|
|
9271
9289
|
};
|
|
9272
9290
|
n.addEventListener("addtrack", (t) => {
|
|
9273
|
-
t.track.kind === "audio" && (o.srcObject = null, o.srcObject = n, a(t.track), i &&
|
|
9291
|
+
t.track.kind === "audio" && (o.srcObject = null, o.srcObject = n, a(t.track), i && V(e, i.id));
|
|
9274
9292
|
}, { signal: v.signal });
|
|
9275
9293
|
let [s] = n.getTracks();
|
|
9276
|
-
s && (o.srcObject = n, a(s), i &&
|
|
9277
|
-
},
|
|
9294
|
+
s && (o.srcObject = n, a(s), i && V(e, i.id));
|
|
9295
|
+
}, $ = () => {
|
|
9278
9296
|
y?.abort(), y = null, v?.abort(), v = null, o.pause(), o.srcObject = null, u.value = null, d.value = null;
|
|
9279
9297
|
};
|
|
9280
9298
|
return {
|
|
9281
|
-
initUserAgent:
|
|
9282
|
-
stop:
|
|
9283
|
-
makeCall:
|
|
9284
|
-
answerCall:
|
|
9285
|
-
hangupCall:
|
|
9286
|
-
toggleMute:
|
|
9287
|
-
toggleHold:
|
|
9288
|
-
sendDTMF:
|
|
9289
|
-
transferCall:
|
|
9290
|
-
startAttendedTransfer:
|
|
9291
|
-
completeAttendedTransfer:
|
|
9292
|
-
cancelAttendedTransfer:
|
|
9293
|
-
switchChannel:
|
|
9294
|
-
extension:
|
|
9295
|
-
setVolume:
|
|
9296
|
-
setNotificationVolume:
|
|
9297
|
-
setRingtoneVolume:
|
|
9298
|
-
setRingtoneTone:
|
|
9299
|
-
setOutputDevice:
|
|
9300
|
-
setInputDevice:
|
|
9299
|
+
initUserAgent: Dm,
|
|
9300
|
+
stop: Nm,
|
|
9301
|
+
makeCall: Fm,
|
|
9302
|
+
answerCall: Im,
|
|
9303
|
+
hangupCall: Rm,
|
|
9304
|
+
toggleMute: zm,
|
|
9305
|
+
toggleHold: Z,
|
|
9306
|
+
sendDTMF: Hm,
|
|
9307
|
+
transferCall: Wm,
|
|
9308
|
+
startAttendedTransfer: Gm,
|
|
9309
|
+
completeAttendedTransfer: Km,
|
|
9310
|
+
cancelAttendedTransfer: qm,
|
|
9311
|
+
switchChannel: Vm,
|
|
9312
|
+
extension: A,
|
|
9313
|
+
setVolume: bm,
|
|
9314
|
+
setNotificationVolume: I,
|
|
9315
|
+
setRingtoneVolume: L,
|
|
9316
|
+
setRingtoneTone: gm,
|
|
9317
|
+
setOutputDevice: xm,
|
|
9318
|
+
setInputDevice: Sm,
|
|
9301
9319
|
remoteStream: u,
|
|
9302
9320
|
localStream: d
|
|
9303
9321
|
};
|
|
@@ -16363,19 +16381,19 @@ var IconDelete_default = { render: render$1 }, _hoisted_1$7 = ["data-call-status
|
|
|
16363
16381
|
p(e);
|
|
16364
16382
|
}, L = async () => {
|
|
16365
16383
|
await o(), await D.onHangup?.();
|
|
16366
|
-
},
|
|
16384
|
+
}, R = () => {
|
|
16367
16385
|
if (D.onReject) {
|
|
16368
16386
|
D.onReject();
|
|
16369
16387
|
return;
|
|
16370
16388
|
}
|
|
16371
16389
|
o();
|
|
16372
|
-
},
|
|
16390
|
+
}, z = computed(() => {
|
|
16373
16391
|
let e = {};
|
|
16374
16392
|
return i.channels.forEach((t) => {
|
|
16375
16393
|
let n = t.status === "connected" || t.status === "calling" || t.status === "incoming";
|
|
16376
16394
|
e[t.id] = n ? "wp:text-[var(--color-red)]" : "wp:text-[var(--color-avaible)]";
|
|
16377
16395
|
}), e;
|
|
16378
|
-
}),
|
|
16396
|
+
}), _m = computed(() => z.value[i.activeChannelId] ?? "wp:text-[var(--p-primary-color)]");
|
|
16379
16397
|
return (e, t) => (openBlock(), createElementBlock("div", {
|
|
16380
16398
|
class: "webphone-actions wp:flex wp:justify-center wp:items-center wp:gap-2 wp:px-4 wp:relative wp:mb-4",
|
|
16381
16399
|
"data-call-status": unref(i).callStatus
|
|
@@ -16398,7 +16416,7 @@ var IconDelete_default = { render: render$1 }, _hoisted_1$7 = ["data-call-status
|
|
|
16398
16416
|
"aria-label": "Video Call",
|
|
16399
16417
|
class: "webphone-actions__button webphone-actions__button--video wp:w-full wp:px-4 wp:bg-transparent wp:border wp:border-primary wp:hover:bg-[var(--p-primary-color)]/8"
|
|
16400
16418
|
}, {
|
|
16401
|
-
default: withCtx(() => [createVNode(unref(videocall_icon_default), { class: normalizeClass(["webphone-actions__button-icon wp:size-6 wp:text-primary wp:dark:text-white",
|
|
16419
|
+
default: withCtx(() => [createVNode(unref(videocall_icon_default), { class: normalizeClass(["webphone-actions__button-icon wp:size-6 wp:text-primary wp:dark:text-white", _m.value]) }, null, 8, ["class"]), t[13] ||= createElementVNode("span", { class: "webphone-actions__button-label wp:w-full wp:text-primary wp:text-xs wp:dark:text-white" }, " Video llamada a extensiones ", -1)]),
|
|
16402
16420
|
_: 1
|
|
16403
16421
|
})) : createCommentVNode("", !0)])) : createCommentVNode("", !0),
|
|
16404
16422
|
unref(i).callStatus === "incoming" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
@@ -16426,7 +16444,7 @@ var IconDelete_default = { render: render$1 }, _hoisted_1$7 = ["data-call-status
|
|
|
16426
16444
|
createVNode(unref(Button_default), {
|
|
16427
16445
|
variant: "destructive",
|
|
16428
16446
|
size: "icon",
|
|
16429
|
-
onClick:
|
|
16447
|
+
onClick: R,
|
|
16430
16448
|
"aria-label": "Reject",
|
|
16431
16449
|
class: "webphone-actions__button webphone-actions__button--hangup webphone-actions__button--reject wp:w-12 wp:h-12 wp:rounded-full wp:border-0 wp:bg-gradient-to-r wp:from-destructive/60 wp:to-destructive/90 wp:hover:from-destructive/70 wp:hover:to-destructive/95"
|
|
16432
16450
|
}, {
|
|
@@ -16795,12 +16813,12 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
16795
16813
|
useIntervalFn(() => {
|
|
16796
16814
|
L.value = Date.now();
|
|
16797
16815
|
}, 1e3);
|
|
16798
|
-
let
|
|
16816
|
+
let R = computed(() => {
|
|
16799
16817
|
let e = p.value?.startTime, t = p.value?.status || "idle";
|
|
16800
16818
|
if (!e || t !== "connected") return "00:00:00";
|
|
16801
16819
|
let n = Math.floor((L.value - e) / 1e3);
|
|
16802
16820
|
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")}`;
|
|
16803
|
-
}),
|
|
16821
|
+
}), z = computed(() => {
|
|
16804
16822
|
if (!o.isOnline) return "Sin internet";
|
|
16805
16823
|
if (!t.isConnected) return "Sin conexión";
|
|
16806
16824
|
let e = p.value, n = e?.status || "idle";
|
|
@@ -16831,11 +16849,11 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
16831
16849
|
(p.value?.status || "idle") === "connected" ? (openBlock(), createElementBlock("div", {
|
|
16832
16850
|
key: 0,
|
|
16833
16851
|
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"])
|
|
16834
|
-
}, [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(
|
|
16852
|
+
}, [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(R.value), 1)], 2)) : createCommentVNode("", !0),
|
|
16835
16853
|
o.user ? (openBlock(), createElementBlock("span", {
|
|
16836
16854
|
key: 1,
|
|
16837
16855
|
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"])
|
|
16838
|
-
}, [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(
|
|
16856
|
+
}, [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),
|
|
16839
16857
|
(p.value?.status || "idle") === "idle" && o.allowInput ? (openBlock(), createElementBlock("div", _hoisted_5$4, [createElementVNode("div", {
|
|
16840
16858
|
class: "webphone-display__dialer-container wp:relative wp:w-full wp:max-w-80",
|
|
16841
16859
|
ref_key: "containerRef",
|
|
@@ -17431,7 +17449,7 @@ var _hoisted_1$3 = { class: "wp:flex wp:flex-col wp:gap-6 wp:py-4" }, _hoisted_2
|
|
|
17431
17449
|
classic: "original",
|
|
17432
17450
|
"original-loud": "aurora",
|
|
17433
17451
|
"original-intense": "resonancia"
|
|
17434
|
-
},
|
|
17452
|
+
}, R = async () => {
|
|
17435
17453
|
try {
|
|
17436
17454
|
await navigator.mediaDevices.getUserMedia({ audio: !0 });
|
|
17437
17455
|
let e = await navigator.mediaDevices.enumerateDevices();
|
|
@@ -17449,7 +17467,7 @@ var _hoisted_1$3 = { class: "wp:flex wp:flex-col wp:gap-6 wp:py-4" }, _hoisted_2
|
|
|
17449
17467
|
} catch (e) {
|
|
17450
17468
|
console.error("Error loading devices", e);
|
|
17451
17469
|
}
|
|
17452
|
-
},
|
|
17470
|
+
}, z = (e) => {
|
|
17453
17471
|
let t = String(e);
|
|
17454
17472
|
D.value = t, v(t);
|
|
17455
17473
|
}, V = (e) => {
|
|
@@ -17472,11 +17490,11 @@ var _hoisted_1$3 = { class: "wp:flex wp:flex-col wp:gap-6 wp:py-4" }, _hoisted_2
|
|
|
17472
17490
|
}
|
|
17473
17491
|
}), K = (e) => {
|
|
17474
17492
|
F.value = String(e), x(F.value);
|
|
17475
|
-
},
|
|
17493
|
+
}, ym = (e) => {
|
|
17476
17494
|
I.value = e;
|
|
17477
17495
|
};
|
|
17478
17496
|
return onMounted(() => {
|
|
17479
|
-
|
|
17497
|
+
R(), p(k.value), y(j.value), b(N.value), localStorage.removeItem("webphone-custom-ringtone");
|
|
17480
17498
|
let e = L[F.value] ?? F.value;
|
|
17481
17499
|
F.value = [
|
|
17482
17500
|
"original",
|
|
@@ -17503,7 +17521,7 @@ var _hoisted_1$3 = { class: "wp:flex wp:flex-col wp:gap-6 wp:py-4" }, _hoisted_2
|
|
|
17503
17521
|
_: 1
|
|
17504
17522
|
}), createVNode(unref(Select_default), {
|
|
17505
17523
|
modelValue: unref(D),
|
|
17506
|
-
"onUpdate:modelValue": [o[0] ||= (e) => isRef(D) ? D.value = e : null,
|
|
17524
|
+
"onUpdate:modelValue": [o[0] ||= (e) => isRef(D) ? D.value = e : null, z]
|
|
17507
17525
|
}, {
|
|
17508
17526
|
default: withCtx(() => [createVNode(unref(SelectTrigger_default), { class: "wp:w-full" }, {
|
|
17509
17527
|
default: withCtx(() => [createVNode(unref(SelectValue_default), { placeholder: "Select Microphone" })]),
|
|
@@ -17621,7 +17639,7 @@ var _hoisted_1$3 = { class: "wp:flex wp:flex-col wp:gap-6 wp:py-4" }, _hoisted_2
|
|
|
17621
17639
|
"aria-label": unref(I) ? "Desactivar respuesta automática" : "Activar respuesta automática",
|
|
17622
17640
|
class: normalizeClass(["wp:flex wp:h-7 wp:w-12 wp:shrink-0 wp:cursor-pointer wp:items-center wp:justify-start wp:rounded-full wp:border-0 wp:p-0.5 wp:transition-colors wp:focus-visible:ring-2 wp:focus-visible:ring-primary/50"]),
|
|
17623
17641
|
style: normalizeStyle({ backgroundColor: unref(I) ? "var(--color-primary-500)" : "var(--muted)" }),
|
|
17624
|
-
"onUpdate:modelValue":
|
|
17642
|
+
"onUpdate:modelValue": ym
|
|
17625
17643
|
}, {
|
|
17626
17644
|
default: withCtx(() => [createElementVNode("span", { class: normalizeClass(["wp:pointer-events-none wp:block wp:h-6 wp:w-6 wp:shrink-0 wp:rounded-full wp:bg-white wp:shadow-sm wp:transition-transform", unref(I) ? "wp:translate-x-5" : "wp:translate-x-0"]) }, null, 2)]),
|
|
17627
17645
|
_: 1
|
|
@@ -18035,14 +18053,14 @@ var _hoisted_1$3 = { class: "wp:flex wp:flex-col wp:gap-6 wp:py-4" }, _hoisted_2
|
|
|
18035
18053
|
onMounted(() => {
|
|
18036
18054
|
o.value = "documentPictureInPicture" in window, document.addEventListener("visibilitychange", y), window.addEventListener("blur", b);
|
|
18037
18055
|
}), onUnmounted(() => {
|
|
18038
|
-
document.removeEventListener("visibilitychange", y), window.removeEventListener("blur", b), g &&= (clearTimeout(g), null), S(),
|
|
18056
|
+
document.removeEventListener("visibilitychange", y), window.removeEventListener("blur", b), g &&= (clearTimeout(g), null), S(), R();
|
|
18039
18057
|
});
|
|
18040
18058
|
let _ = () => {
|
|
18041
18059
|
let e = i.callStatus !== "idle", t = document.hidden || !document.hasFocus();
|
|
18042
18060
|
return i.autoOpenOnBlur !== !1 && e && o.value && t && !l.value && !u.value;
|
|
18043
18061
|
}, v = () => {
|
|
18044
18062
|
_() && (g && clearTimeout(g), g = setTimeout(() => {
|
|
18045
|
-
_() &&
|
|
18063
|
+
_() && gm();
|
|
18046
18064
|
}, 120));
|
|
18047
18065
|
}, y = () => {
|
|
18048
18066
|
v();
|
|
@@ -18059,9 +18077,9 @@ var _hoisted_1$3 = { class: "wp:flex wp:flex-col wp:gap-6 wp:py-4" }, _hoisted_2
|
|
|
18059
18077
|
return `${t.toString().padStart(2, "0")}:${n.toString().padStart(2, "0")}`;
|
|
18060
18078
|
};
|
|
18061
18079
|
watch(() => i.callStatus, (e, t) => {
|
|
18062
|
-
e === "connected" && t !== "connected" ? x() : e === "idle" && t !== "idle" && (S(), l.value &&
|
|
18080
|
+
e === "connected" && t !== "connected" ? x() : e === "idle" && t !== "idle" && (S(), l.value && R());
|
|
18063
18081
|
}, { immediate: !0 }), watch(() => i.isConnected, (e) => {
|
|
18064
|
-
!e && l.value && (S(),
|
|
18082
|
+
!e && l.value && (S(), R());
|
|
18065
18083
|
}), watch(() => [
|
|
18066
18084
|
i.callStatus,
|
|
18067
18085
|
i.isMuted,
|
|
@@ -18135,7 +18153,7 @@ var _hoisted_1$3 = { class: "wp:flex wp:flex-col wp:gap-6 wp:py-4" }, _hoisted_2
|
|
|
18135
18153
|
n.className = "pip-btn pip-btn-answer", n.title = "Contestar", n.innerHTML = E.phone, n.onclick = () => a("answer", !1), t.appendChild(n);
|
|
18136
18154
|
let o = e.createElement("button");
|
|
18137
18155
|
o.className = "pip-btn pip-btn-hangup", o.title = "Rechazar", o.innerHTML = E.phoneOff, o.onclick = () => {
|
|
18138
|
-
a("hangup"),
|
|
18156
|
+
a("hangup"), R();
|
|
18139
18157
|
}, t.appendChild(o);
|
|
18140
18158
|
} else if (i.callStatus === "connected") {
|
|
18141
18159
|
let n = e.createElement("button");
|
|
@@ -18146,12 +18164,12 @@ var _hoisted_1$3 = { class: "wp:flex wp:flex-col wp:gap-6 wp:py-4" }, _hoisted_2
|
|
|
18146
18164
|
s.className = "pip-btn pip-btn-transfer", s.title = "Transferir", s.innerHTML = E.transfer, s.onclick = () => a("transfer"), t.appendChild(s);
|
|
18147
18165
|
let l = e.createElement("button");
|
|
18148
18166
|
l.className = "pip-btn pip-btn-hangup", l.title = "Colgar", l.innerHTML = E.phoneOff, l.onclick = () => {
|
|
18149
|
-
a("hangup"),
|
|
18167
|
+
a("hangup"), R();
|
|
18150
18168
|
}, t.appendChild(l);
|
|
18151
18169
|
} else if (i.callStatus === "calling") {
|
|
18152
18170
|
let n = e.createElement("button");
|
|
18153
18171
|
n.className = "pip-btn pip-btn-hangup", n.title = "Cancelar", n.innerHTML = E.phoneOff, n.onclick = () => {
|
|
18154
|
-
a("hangup"),
|
|
18172
|
+
a("hangup"), R();
|
|
18155
18173
|
}, t.appendChild(n);
|
|
18156
18174
|
}
|
|
18157
18175
|
}
|
|
@@ -18167,7 +18185,7 @@ var _hoisted_1$3 = { class: "wp:flex wp:flex-col wp:gap-6 wp:py-4" }, _hoisted_2
|
|
|
18167
18185
|
}, 1e3));
|
|
18168
18186
|
}, L = () => {
|
|
18169
18187
|
m &&= (clearInterval(m), null);
|
|
18170
|
-
},
|
|
18188
|
+
}, gm = async () => {
|
|
18171
18189
|
if (!(!o.value || l.value || u.value)) {
|
|
18172
18190
|
u.value = !0;
|
|
18173
18191
|
try {
|
|
@@ -18187,14 +18205,14 @@ var _hoisted_1$3 = { class: "wp:flex wp:flex-col wp:gap-6 wp:py-4" }, _hoisted_2
|
|
|
18187
18205
|
u.value = !1;
|
|
18188
18206
|
}
|
|
18189
18207
|
}
|
|
18190
|
-
},
|
|
18208
|
+
}, R = () => {
|
|
18191
18209
|
L(), d.value && (d.value.close(), d.value = null, l.value = !1, a("update:active", !1));
|
|
18192
18210
|
};
|
|
18193
18211
|
return t({
|
|
18194
|
-
open:
|
|
18195
|
-
close:
|
|
18212
|
+
open: gm,
|
|
18213
|
+
close: R,
|
|
18196
18214
|
toggle: () => {
|
|
18197
|
-
l.value ?
|
|
18215
|
+
l.value ? R() : gm();
|
|
18198
18216
|
},
|
|
18199
18217
|
isActive: l,
|
|
18200
18218
|
isSupported: o,
|
|
@@ -18301,63 +18319,63 @@ var _hoisted_1$3 = { class: "wp:flex wp:flex-col wp:gap-6 wp:py-4" }, _hoisted_2
|
|
|
18301
18319
|
if (!e) return "";
|
|
18302
18320
|
let t = e.trim(), n = t.startsWith("+"), i = t.replace(/[^\d]/g, "");
|
|
18303
18321
|
return n ? `+${i}` : i;
|
|
18304
|
-
},
|
|
18322
|
+
}, ym = computed(() => {
|
|
18305
18323
|
let e = G.value?.remoteNumber || x.remoteNumber, t = K(e), n = o.contacts.find((e) => K(e.number) === t);
|
|
18306
18324
|
return n?.name ? o.maskNumber && /^[+\d\s().*#-]+$/.test(n.name.trim()) ? maskPhoneNumber(n.name, o.extensions) : n.name : o.maskNumber && e ? maskPhoneNumber(e, o.extensions) : e || "Llamada";
|
|
18307
|
-
}),
|
|
18325
|
+
}), bm = computed(() => {
|
|
18308
18326
|
let e = G.value?.remoteNumber || x.remoteNumber;
|
|
18309
18327
|
return o.maskNumber ? maskPhoneNumber(e, o.extensions) : e;
|
|
18310
|
-
}),
|
|
18311
|
-
|
|
18312
|
-
},
|
|
18328
|
+
}), xm = computed(() => (U.value, !!G.value?.hasVideo || W(E.value) || W(D.value))), { isOnline: Sm } = useNetwork(), q = computed(() => !Sm.value), J = ref(null), Y = ref(!1), km = computed(() => o.enablePictureInPicture), Am = () => {
|
|
18329
|
+
km.value && J.value?.toggle();
|
|
18330
|
+
}, jm = async (e, t) => {
|
|
18313
18331
|
try {
|
|
18314
18332
|
t === "blind" ? await S.transferCall(e) : await S.startAttendedTransfer(e);
|
|
18315
18333
|
} catch (e) {
|
|
18316
18334
|
console.error("[WebPhone] Transfer error:", e), alert(e instanceof Error ? e.message : "Transfer failed. Please try again.");
|
|
18317
18335
|
}
|
|
18318
|
-
},
|
|
18336
|
+
}, Mm = async () => {
|
|
18319
18337
|
try {
|
|
18320
18338
|
await S.completeAttendedTransfer();
|
|
18321
18339
|
} catch (e) {
|
|
18322
18340
|
console.error("[WebPhone] Complete transfer error:", e), alert(e instanceof Error ? e.message : "Failed to complete transfer.");
|
|
18323
18341
|
}
|
|
18324
|
-
},
|
|
18342
|
+
}, Nm = async () => {
|
|
18325
18343
|
try {
|
|
18326
18344
|
await S.cancelAttendedTransfer();
|
|
18327
18345
|
} catch (e) {
|
|
18328
18346
|
console.error("[WebPhone] Cancel transfer error:", e), alert(e instanceof Error ? e.message : "Failed to cancel transfer.");
|
|
18329
18347
|
}
|
|
18330
|
-
},
|
|
18348
|
+
}, Pm = (e) => {
|
|
18331
18349
|
x.keypadValue = e, S.makeCall(e);
|
|
18332
|
-
},
|
|
18350
|
+
}, Fm = (e) => {
|
|
18333
18351
|
if (o.onAnswer) {
|
|
18334
18352
|
o.onAnswer(e);
|
|
18335
18353
|
return;
|
|
18336
18354
|
}
|
|
18337
18355
|
S.answerCall(e);
|
|
18338
|
-
},
|
|
18356
|
+
}, Im = async () => {
|
|
18339
18357
|
await S.hangupCall(), await o.onHangup?.();
|
|
18340
|
-
},
|
|
18358
|
+
}, Lm = () => {
|
|
18341
18359
|
if (o.onReject) {
|
|
18342
18360
|
o.onReject();
|
|
18343
18361
|
return;
|
|
18344
18362
|
}
|
|
18345
18363
|
S.hangupCall();
|
|
18346
|
-
},
|
|
18347
|
-
j.value = !0,
|
|
18348
|
-
},
|
|
18349
|
-
if (!
|
|
18364
|
+
}, Rm = () => {
|
|
18365
|
+
j.value = !0, J.value?.close(), window.focus();
|
|
18366
|
+
}, zm = () => {
|
|
18367
|
+
if (!km.value) return !1;
|
|
18350
18368
|
let e = x.callStatus !== "idle", t = document.hidden || !document.hasFocus();
|
|
18351
|
-
return e && t && !
|
|
18352
|
-
},
|
|
18369
|
+
return e && t && !Y.value;
|
|
18370
|
+
}, Z = () => {
|
|
18353
18371
|
window.setTimeout(() => {
|
|
18354
|
-
|
|
18372
|
+
zm() && J.value?.open();
|
|
18355
18373
|
}, 150);
|
|
18356
18374
|
};
|
|
18357
18375
|
watchEffect(() => {
|
|
18358
|
-
F.value && (
|
|
18376
|
+
F.value && (Y.value || !E.value ? F.value.srcObject = null : F.value.srcObject = E.value), L.value && (Y.value || !D.value ? L.value.srcObject = null : L.value.srcObject = D.value);
|
|
18359
18377
|
});
|
|
18360
|
-
let
|
|
18378
|
+
let Vm = (e) => {
|
|
18361
18379
|
if (!e || typeof e.addEventListener != "function" || typeof e.removeEventListener != "function") return () => {};
|
|
18362
18380
|
let t = () => {
|
|
18363
18381
|
U.value += 1;
|
|
@@ -18367,11 +18385,11 @@ var _hoisted_1$3 = { class: "wp:flex wp:flex-col wp:gap-6 wp:py-4" }, _hoisted_2
|
|
|
18367
18385
|
};
|
|
18368
18386
|
};
|
|
18369
18387
|
watch(E, (e, t, n) => {
|
|
18370
|
-
U.value += 1, n(
|
|
18388
|
+
U.value += 1, n(Vm(e));
|
|
18371
18389
|
}, { immediate: !0 }), watch(D, (e, t, n) => {
|
|
18372
|
-
U.value += 1, n(
|
|
18390
|
+
U.value += 1, n(Vm(e));
|
|
18373
18391
|
}, { immediate: !0 });
|
|
18374
|
-
let
|
|
18392
|
+
let Hm = [
|
|
18375
18393
|
"button",
|
|
18376
18394
|
"a",
|
|
18377
18395
|
"input",
|
|
@@ -18382,15 +18400,15 @@ var _hoisted_1$3 = { class: "wp:flex wp:flex-col wp:gap-6 wp:py-4" }, _hoisted_2
|
|
|
18382
18400
|
"[role=\"button\"]",
|
|
18383
18401
|
"[role=\"radio\"]",
|
|
18384
18402
|
"[data-no-drag]"
|
|
18385
|
-
].join(", "),
|
|
18403
|
+
].join(", "), Wm = () => {
|
|
18386
18404
|
let e = window.innerWidth < 640, t = window.innerWidth < 1024, n = 360;
|
|
18387
18405
|
return e ? n = window.innerWidth * .9 : t && (n = 340), {
|
|
18388
18406
|
x: Math.max(0, (window.innerWidth - n) / 2),
|
|
18389
18407
|
y: e ? 30 : 80
|
|
18390
18408
|
};
|
|
18391
|
-
}, { x:
|
|
18409
|
+
}, { x: Gm, y: Km, style: qm } = useDraggable(N, {
|
|
18392
18410
|
initialValue: computed(() => {
|
|
18393
|
-
let e =
|
|
18411
|
+
let e = Wm();
|
|
18394
18412
|
return {
|
|
18395
18413
|
x: o.position.x ?? e.x,
|
|
18396
18414
|
y: o.position.y ?? e.y
|
|
@@ -18399,14 +18417,14 @@ var _hoisted_1$3 = { class: "wp:flex wp:flex-col wp:gap-6 wp:py-4" }, _hoisted_2
|
|
|
18399
18417
|
preventDefault: !0,
|
|
18400
18418
|
onStart: (e, t) => {
|
|
18401
18419
|
let n = t.target;
|
|
18402
|
-
if (n instanceof HTMLElement && n.closest(
|
|
18420
|
+
if (n instanceof HTMLElement && n.closest(Hm)) return !1;
|
|
18403
18421
|
}
|
|
18404
18422
|
});
|
|
18405
18423
|
watch(() => o.position, (e) => {
|
|
18406
|
-
let t =
|
|
18407
|
-
|
|
18424
|
+
let t = Wm();
|
|
18425
|
+
Gm.value = e.x ?? t.x, Km.value = e.y ?? t.y;
|
|
18408
18426
|
}, { deep: !0 });
|
|
18409
|
-
let
|
|
18427
|
+
let Q = [
|
|
18410
18428
|
{
|
|
18411
18429
|
label: "Canal 1",
|
|
18412
18430
|
value: 0
|
|
@@ -18419,78 +18437,78 @@ var _hoisted_1$3 = { class: "wp:flex wp:flex-col wp:gap-6 wp:py-4" }, _hoisted_2
|
|
|
18419
18437
|
label: "Canal 3",
|
|
18420
18438
|
value: 2
|
|
18421
18439
|
}
|
|
18422
|
-
],
|
|
18440
|
+
], $ = ref(!1), Jm = computed({
|
|
18423
18441
|
get: () => x.activeChannelId.toString(),
|
|
18424
18442
|
set: async (e) => {
|
|
18425
|
-
if (!
|
|
18426
|
-
|
|
18443
|
+
if (!q.value && e && !$.value) {
|
|
18444
|
+
$.value = !0;
|
|
18427
18445
|
try {
|
|
18428
18446
|
await T(parseInt(e));
|
|
18429
18447
|
} finally {
|
|
18430
|
-
|
|
18448
|
+
$.value = !1;
|
|
18431
18449
|
}
|
|
18432
18450
|
}
|
|
18433
18451
|
}
|
|
18434
|
-
}),
|
|
18452
|
+
}), Ym = (e) => {
|
|
18435
18453
|
let t = x.channels.find((t) => t.id === e);
|
|
18436
18454
|
return t ? t.status === "connected" || t.status === "calling" || t.status === "incoming" : !1;
|
|
18437
|
-
},
|
|
18455
|
+
}, Xm = (e) => {
|
|
18438
18456
|
let t = x.channels.find((t) => t.id === e);
|
|
18439
18457
|
return t ? t.isHeld || t.status === "held" : !1;
|
|
18440
|
-
}, Xm = (e) => {
|
|
18441
|
-
J.value || (qm.value = e.toString());
|
|
18442
18458
|
}, Zm = (e) => {
|
|
18443
|
-
|
|
18459
|
+
q.value || (Jm.value = e.toString());
|
|
18460
|
+
}, Qm = (e) => {
|
|
18461
|
+
if (!q.value && ((e.metaKey || e.ctrlKey) && e.key.toLowerCase() === "h" && (e.preventDefault(), k.value = !0), (e.metaKey || e.ctrlKey) && e.key === "," && (e.preventDefault(), O.value = !0), (e.metaKey || e.ctrlKey) && e.key.toLowerCase() === "k" && (e.preventDefault(), x.toggleKeypad()), (e.metaKey || e.ctrlKey) && [
|
|
18444
18462
|
"1",
|
|
18445
18463
|
"2",
|
|
18446
18464
|
"3"
|
|
18447
18465
|
].includes(e.key))) {
|
|
18448
18466
|
e.preventDefault();
|
|
18449
18467
|
let t = parseInt(e.key) - 1;
|
|
18450
|
-
|
|
18451
|
-
|
|
18468
|
+
$.value || ($.value = !0, T(t).finally(() => {
|
|
18469
|
+
$.value = !1;
|
|
18452
18470
|
}));
|
|
18453
18471
|
}
|
|
18454
18472
|
};
|
|
18455
18473
|
watch(() => x.callStatus, () => {
|
|
18456
|
-
|
|
18474
|
+
zm() && Z();
|
|
18457
18475
|
}), watch(() => x.isConnected, (e) => {
|
|
18458
18476
|
v.value && a.set(v.value, e);
|
|
18459
|
-
}, { immediate: !0 }), watch(
|
|
18460
|
-
!e &&
|
|
18477
|
+
}, { immediate: !0 }), watch(km, (e) => {
|
|
18478
|
+
!e && Y.value && J.value?.close();
|
|
18461
18479
|
});
|
|
18462
|
-
let
|
|
18463
|
-
|
|
18480
|
+
let $m = ref(!1), eh = async () => {
|
|
18481
|
+
$m.value || q.value || !o.host || !o.extension || !o.password || (await w({
|
|
18464
18482
|
uri: `sip:${o.extension}@${o.host}`,
|
|
18465
18483
|
transportOptions: { server: _.value },
|
|
18466
18484
|
authorizationUsername: o.extension,
|
|
18467
18485
|
authorizationPassword: o.password,
|
|
18468
18486
|
earlyMedia: o.earlyMedia
|
|
18469
|
-
}), S.extension.value && (
|
|
18487
|
+
}), S.extension.value && ($m.value = !0, o.mode === "webcall" && o.to && S.makeCall(o.to)));
|
|
18470
18488
|
};
|
|
18471
18489
|
return provide("webphoneRegistration", {
|
|
18472
18490
|
isConnected: computed(() => x.isConnected),
|
|
18473
|
-
register: () =>
|
|
18491
|
+
register: () => eh(),
|
|
18474
18492
|
unregister: async () => {
|
|
18475
|
-
await S.stop(),
|
|
18493
|
+
await S.stop(), $m.value = !1;
|
|
18476
18494
|
}
|
|
18477
18495
|
}), onMounted(async () => {
|
|
18478
|
-
window.addEventListener("keydown",
|
|
18479
|
-
}), watch(() =>
|
|
18480
|
-
e && await
|
|
18496
|
+
window.addEventListener("keydown", Qm), document.addEventListener("visibilitychange", Z), window.addEventListener("blur", Z), window.addEventListener("pagehide", Z), !(o.mode === "webcall" && (!o.to || !o.logo)) && await eh();
|
|
18497
|
+
}), watch(() => Sm.value, async (e) => {
|
|
18498
|
+
e && await eh();
|
|
18481
18499
|
}), onUnmounted(() => {
|
|
18482
|
-
S.stop(), window.removeEventListener("keydown",
|
|
18500
|
+
S.stop(), window.removeEventListener("keydown", Qm), document.removeEventListener("visibilitychange", Z), window.removeEventListener("blur", Z), window.removeEventListener("pagehide", Z);
|
|
18483
18501
|
}), (e, t) => (openBlock(), createElementBlock(Fragment, null, [
|
|
18484
18502
|
createElementVNode("div", {
|
|
18485
18503
|
ref_key: "phoneRef",
|
|
18486
18504
|
ref: N,
|
|
18487
|
-
style: normalizeStyle(unref(
|
|
18488
|
-
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",
|
|
18505
|
+
style: normalizeStyle(unref(qm)),
|
|
18506
|
+
class: normalizeClass(["webphone webphone-container wp:bg-white wp:dark:bg-neutral-800 wp:rounded-lg wp:shadow-sm wp:inset-shadow-2xs wp:w-[min(92vw,330px)] wp:fixed wp:z-50 wp:select-none wp:[&_button]:cursor-pointer wp:**:[[role=button]]:cursor-pointer", q.value ? "wp:opacity-70" : ""]),
|
|
18489
18507
|
"data-mode": o.mode,
|
|
18490
18508
|
"data-call-status": x.callStatus,
|
|
18491
|
-
"data-network-status":
|
|
18509
|
+
"data-network-status": q.value ? "offline" : "online"
|
|
18492
18510
|
}, [
|
|
18493
|
-
|
|
18511
|
+
xm.value && !Y.value ? (openBlock(), createElementBlock("div", _hoisted_2, [createElementVNode("video", {
|
|
18494
18512
|
ref_key: "remoteVideoRef",
|
|
18495
18513
|
ref: F,
|
|
18496
18514
|
autoplay: "",
|
|
@@ -18506,31 +18524,31 @@ var _hoisted_1$3 = { class: "wp:flex wp:flex-col wp:gap-6 wp:py-4" }, _hoisted_2
|
|
|
18506
18524
|
}, null, 512)])])) : createCommentVNode("", !0),
|
|
18507
18525
|
createElementVNode("div", _hoisted_4, [
|
|
18508
18526
|
H.value ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", _hoisted_5, [createElementVNode("div", _hoisted_6, [
|
|
18509
|
-
createElementVNode("div", _hoisted_7, [(openBlock(), createElementBlock(Fragment, null, renderList(
|
|
18527
|
+
createElementVNode("div", _hoisted_7, [(openBlock(), createElementBlock(Fragment, null, renderList(Q, (e) => createElementVNode("button", {
|
|
18510
18528
|
key: e.value,
|
|
18511
18529
|
type: "button",
|
|
18512
18530
|
role: "radio",
|
|
18513
|
-
"aria-checked":
|
|
18514
|
-
disabled:
|
|
18531
|
+
"aria-checked": Jm.value === e.value.toString(),
|
|
18532
|
+
disabled: q.value,
|
|
18515
18533
|
title: `${e.label} (${unref(V)}${e.value + 1})`,
|
|
18516
|
-
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",
|
|
18534
|
+
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", Xm(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" : Jm.value === e.value.toString() ? "wp:bg-[var(--p-primary-color)]/12" : "wp:hover:bg-neutral-100 wp:dark:hover:bg-neutral-800/80"]),
|
|
18517
18535
|
"data-channel-id": e.value,
|
|
18518
|
-
"data-state":
|
|
18519
|
-
"data-call-state":
|
|
18520
|
-
onClick: (t) =>
|
|
18536
|
+
"data-state": Jm.value === e.value.toString() ? "active" : "idle",
|
|
18537
|
+
"data-call-state": Xm(e.value) ? "held" : Ym(e.value) ? "busy" : "available",
|
|
18538
|
+
onClick: (t) => Zm(e.value)
|
|
18521
18539
|
}, [createVNode(unref(icon_phone_default), {
|
|
18522
|
-
class: normalizeClass(["webphone__channel-icon wp:size-3 wp:shrink-0",
|
|
18540
|
+
class: normalizeClass(["webphone__channel-icon wp:size-3 wp:shrink-0", Xm(e.value) ? "wp:text-status-hold" : Ym(e.value) ? "wp:text-[var(--color-red)]" : Jm.value === e.value.toString() ? "wp:text-[var(--p-primary-color)]" : "wp:text-neutral-400"]),
|
|
18523
18541
|
"stroke-width": 1.8
|
|
18524
|
-
}, null, 8, ["class"]), createElementVNode("span", { class: normalizeClass(["webphone__channel-label wp:text-[11px] wp:leading-none manrope wp:font-bold",
|
|
18542
|
+
}, null, 8, ["class"]), createElementVNode("span", { class: normalizeClass(["webphone__channel-label wp:text-[11px] wp:leading-none manrope wp:font-bold", Xm(e.value) ? "wp:text-status-hold" : Ym(e.value) ? "wp:text-[var(--color-red)]" : Jm.value === e.value.toString() ? "wp:text-[var(--p-primary-color)]" : "wp:text-neutral-500 wp:dark:text-neutral-400"]) }, toDisplayString(e.label), 3)], 10, _hoisted_8)), 64))]),
|
|
18525
18543
|
createVNode(unref(TooltipProvider_default), null, {
|
|
18526
18544
|
default: withCtx(() => [createVNode(unref(Tooltip_default), null, {
|
|
18527
18545
|
default: withCtx(() => [createVNode(unref(TooltipTrigger_default), { "as-child": "" }, {
|
|
18528
18546
|
default: withCtx(() => [createVNode(unref(Button_default), {
|
|
18529
18547
|
variant: "ghost",
|
|
18530
18548
|
size: "icon",
|
|
18531
|
-
class: normalizeClass(["wp:h-8 wp:w-8 wp:rounded-full",
|
|
18549
|
+
class: normalizeClass(["wp:h-8 wp:w-8 wp:rounded-full", Y.value ? "wp:text-primary" : ""]),
|
|
18532
18550
|
title: "Picture-in-Picture",
|
|
18533
|
-
onClick:
|
|
18551
|
+
onClick: Am
|
|
18534
18552
|
}, {
|
|
18535
18553
|
default: withCtx(() => [createVNode(unref(PictureInPicture2), { class: "wp:w-4 wp:h-4 wp:text-[var(--color-settings)]" })]),
|
|
18536
18554
|
_: 1
|
|
@@ -18574,7 +18592,7 @@ var _hoisted_1$3 = { class: "wp:flex wp:flex-col wp:gap-6 wp:py-4" }, _hoisted_2
|
|
|
18574
18592
|
"channel-id": e.id,
|
|
18575
18593
|
"allow-input": !H.value,
|
|
18576
18594
|
"is-web-call": H.value,
|
|
18577
|
-
"is-online": unref(
|
|
18595
|
+
"is-online": unref(Sm),
|
|
18578
18596
|
contacts: o.contacts,
|
|
18579
18597
|
user: o.extension,
|
|
18580
18598
|
"mask-number": o.maskNumber,
|
|
@@ -18595,15 +18613,15 @@ var _hoisted_1$3 = { class: "wp:flex wp:flex-col wp:gap-6 wp:py-4" }, _hoisted_2
|
|
|
18595
18613
|
}, [createVNode(KeyPad_default)], 10, _hoisted_10),
|
|
18596
18614
|
createVNode(CallActions_default, {
|
|
18597
18615
|
class: "webphone__actions",
|
|
18598
|
-
style: normalizeStyle(
|
|
18616
|
+
style: normalizeStyle(q.value ? "pointer-events: none;" : void 0),
|
|
18599
18617
|
destination: H.value ? o.to : void 0,
|
|
18600
18618
|
"is-video": o.mode === "video",
|
|
18601
18619
|
"on-answer": o.onAnswer,
|
|
18602
18620
|
"on-hangup": o.onHangup,
|
|
18603
18621
|
"on-reject": o.onReject,
|
|
18604
18622
|
onTransfer: t[1] ||= (e) => j.value = !0,
|
|
18605
|
-
onCompleteTransfer:
|
|
18606
|
-
onCancelTransfer:
|
|
18623
|
+
onCompleteTransfer: Mm,
|
|
18624
|
+
onCancelTransfer: Nm
|
|
18607
18625
|
}, null, 8, [
|
|
18608
18626
|
"style",
|
|
18609
18627
|
"destination",
|
|
@@ -18613,7 +18631,7 @@ var _hoisted_1$3 = { class: "wp:flex wp:flex-col wp:gap-6 wp:py-4" }, _hoisted_2
|
|
|
18613
18631
|
"on-reject"
|
|
18614
18632
|
])
|
|
18615
18633
|
]),
|
|
18616
|
-
|
|
18634
|
+
q.value ? (openBlock(), createElementBlock("div", _hoisted_11, [...t[10] ||= [createElementVNode("span", { class: "wp:text-sm wp:font-semibold wp:text-status-disconnected" }, "Sin internet", -1)]])) : createCommentVNode("", !0),
|
|
18617
18635
|
H.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", {
|
|
18618
18636
|
href: "https://www.nebula123.com",
|
|
18619
18637
|
target: "_blank",
|
|
@@ -18630,7 +18648,7 @@ var _hoisted_1$3 = { class: "wp:flex wp:flex-col wp:gap-6 wp:py-4" }, _hoisted_2
|
|
|
18630
18648
|
contacts: o.contacts,
|
|
18631
18649
|
"mask-number": o.maskNumber,
|
|
18632
18650
|
extensions: o.extensions,
|
|
18633
|
-
onCall:
|
|
18651
|
+
onCall: Pm
|
|
18634
18652
|
}, null, 8, [
|
|
18635
18653
|
"visible",
|
|
18636
18654
|
"contacts",
|
|
@@ -18643,7 +18661,7 @@ var _hoisted_1$3 = { class: "wp:flex wp:flex-col wp:gap-6 wp:py-4" }, _hoisted_2
|
|
|
18643
18661
|
contacts: o.contacts,
|
|
18644
18662
|
"mask-number": o.maskNumber,
|
|
18645
18663
|
extensions: o.extensions,
|
|
18646
|
-
onTransfer:
|
|
18664
|
+
onTransfer: jm
|
|
18647
18665
|
}, null, 8, [
|
|
18648
18666
|
"visible",
|
|
18649
18667
|
"contacts",
|
|
@@ -18652,14 +18670,14 @@ var _hoisted_1$3 = { class: "wp:flex wp:flex-col wp:gap-6 wp:py-4" }, _hoisted_2
|
|
|
18652
18670
|
]),
|
|
18653
18671
|
createVNode(DocumentPip_default, {
|
|
18654
18672
|
ref_key: "documentPipRef",
|
|
18655
|
-
ref:
|
|
18656
|
-
active:
|
|
18657
|
-
"onUpdate:active": t[5] ||= (e) =>
|
|
18658
|
-
"auto-open-on-blur":
|
|
18673
|
+
ref: J,
|
|
18674
|
+
active: Y.value,
|
|
18675
|
+
"onUpdate:active": t[5] ||= (e) => Y.value = e,
|
|
18676
|
+
"auto-open-on-blur": km.value,
|
|
18659
18677
|
"is-connected": x.isConnected,
|
|
18660
|
-
"remote-number":
|
|
18661
|
-
"caller-name":
|
|
18662
|
-
"has-video":
|
|
18678
|
+
"remote-number": bm.value,
|
|
18679
|
+
"caller-name": ym.value,
|
|
18680
|
+
"has-video": xm.value ?? !1,
|
|
18663
18681
|
"remote-stream": unref(E),
|
|
18664
18682
|
"local-stream": unref(D),
|
|
18665
18683
|
destination: H.value ? o.to : void 0,
|
|
@@ -18667,11 +18685,11 @@ var _hoisted_1$3 = { class: "wp:flex wp:flex-col wp:gap-6 wp:py-4" }, _hoisted_2
|
|
|
18667
18685
|
"call-status": x.callStatus,
|
|
18668
18686
|
"is-muted": x.isMuted,
|
|
18669
18687
|
"is-held": x.isHeld,
|
|
18670
|
-
onTransfer:
|
|
18671
|
-
onTransferRequest:
|
|
18672
|
-
onHangup:
|
|
18673
|
-
onReject:
|
|
18674
|
-
onAnswer:
|
|
18688
|
+
onTransfer: Rm,
|
|
18689
|
+
onTransferRequest: jm,
|
|
18690
|
+
onHangup: Im,
|
|
18691
|
+
onReject: Lm,
|
|
18692
|
+
onAnswer: Fm,
|
|
18675
18693
|
onToggleMute: t[6] ||= (e) => unref(S).toggleMute(),
|
|
18676
18694
|
onToggleHold: t[7] ||= (e) => unref(S).toggleHold()
|
|
18677
18695
|
}, null, 8, [
|