@94ai/nf-microphone 7.0.0 → 8.0.1

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/lib/index.d.ts CHANGED
@@ -479,6 +479,9 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
479
479
  "softphone-session-state-change": (event: any) => void;
480
480
  "softphone-incoming": (event: any) => void;
481
481
  "softphone-connect-registered": (event: any) => void;
482
+ "softphone-sign-overdued": (event: any) => void;
483
+ "update:sign": (event: any) => void;
484
+ "update:timestamp": (event: any) => void;
482
485
  }, {
483
486
  mode: "qiankun" | "wujie";
484
487
  envMap: Partial<Record<import("./types").Env, Record<string, any>>>;
@@ -1239,6 +1242,9 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
1239
1242
  "softphone-session-state-change": (event: any) => void;
1240
1243
  "softphone-incoming": (event: any) => void;
1241
1244
  "softphone-connect-registered": (event: any) => void;
1245
+ "softphone-sign-overdued": (event: any) => void;
1246
+ "update:sign": (event: any) => void;
1247
+ "update:timestamp": (event: any) => void;
1242
1248
  }, string, {
1243
1249
  mode: "qiankun" | "wujie";
1244
1250
  envMap: Partial<Record<import("./types").Env, Record<string, any>>>;
@@ -15872,62 +15872,6 @@ __sfc_main.setup = (__props, __ctx) => {
15872
15872
  return 3;
15873
15873
  }
15874
15874
  }
15875
- class SoftphoneNotity {
15876
- constructor() {
15877
- this.communicationList = {
15878
- "softphone-connect-registered": (data) => {
15879
- emit("softphone-connect-registered", data);
15880
- },
15881
- "softphone-session-state-change": (data) => {
15882
- emit("softphone-session-state-change", data);
15883
- },
15884
- "softphone-call-refresh": (data) => {
15885
- emit("softphone-call-refresh", data);
15886
- },
15887
- "softphone-connect": (data) => {
15888
- emit("softphone-connect", data);
15889
- },
15890
- "softphone-accept": (data) => {
15891
- emit("softphone-accept", data);
15892
- },
15893
- "softphone-seats-status-change": (data) => {
15894
- emit("softphone-seats-status-change", data);
15895
- },
15896
- "softphone-ignore": (data) => {
15897
- emit("softphone-ignore", data);
15898
- },
15899
- "softphone-hangup": (data) => {
15900
- emit("softphone-hangup", data);
15901
- },
15902
- "softphone-incoming": (data) => {
15903
- emit("softphone-incoming", data);
15904
- },
15905
- "softphone-send-dtmf": (data) => {
15906
- emit("softphone-send-dtmf", data);
15907
- }
15908
- };
15909
- this.useQinkunSoftphoneNotity = (state) => {
15910
- var _a, _b;
15911
- if (state.ancestorOrigin === props.ancestorOrigin && state.origin !== props.ancestorOrigin || state.ancestorOrigin === props.origin && state.origin === props.origin) {
15912
- if (state.destinationOrigin === "*" || state.destinationOrigin === props.destinationOrigin) {
15913
- (_b = (_a = this.communicationList)[state.type]) == null ? void 0 : _b.call(_a, state.data);
15914
- }
15915
- }
15916
- };
15917
- }
15918
- useWujieSoftphoneNotity() {
15919
- Object.keys(this.communicationList).forEach((key) => {
15920
- bus.$on(key, (state) => {
15921
- var _a, _b;
15922
- if (state.ancestorOrigin === props.ancestorOrigin && state.origin !== props.ancestorOrigin || state.ancestorOrigin === props.origin && state.origin === props.origin) {
15923
- if (state.destinationOrigin === "*" || state.destinationOrigin === props.destinationOrigin) {
15924
- (_b = (_a = this.communicationList)[key]) == null ? void 0 : _b.call(_a, state.data);
15925
- }
15926
- }
15927
- });
15928
- });
15929
- }
15930
- }
15931
15875
  class MicroManager {
15932
15876
  constructor() {
15933
15877
  __privateAdd(this, _qiankunActions, void 0);
@@ -15939,15 +15883,15 @@ __sfc_main.setup = (__props, __ctx) => {
15939
15883
  getWejieActions() {
15940
15884
  return bus;
15941
15885
  }
15942
- microCommunicat(type, status) {
15886
+ microCommunicat(type, data = {}, operationType = "manual", ancestorOrigin = props.ancestorOrigin, destinationOrigin = props.destinationOrigin) {
15943
15887
  const state = {
15944
15888
  origin: "nf-softphone",
15945
- ancestorOrigin: props.ancestorOrigin,
15946
- destinationOrigin: props.destinationOrigin,
15889
+ ancestorOrigin: ancestorOrigin || props.ancestorOrigin,
15890
+ destinationOrigin: destinationOrigin || props.destinationOrigin,
15947
15891
  type,
15948
15892
  data: {
15949
- status,
15950
- type: "manual"
15893
+ ...data,
15894
+ type: operationType
15951
15895
  }
15952
15896
  };
15953
15897
  if (this.mode === "qiankun") {
@@ -15956,15 +15900,24 @@ __sfc_main.setup = (__props, __ctx) => {
15956
15900
  this.getWejieActions().$emit("ai-softphone", state);
15957
15901
  }
15958
15902
  }
15903
+ signOverdued(data) {
15904
+ this.microCommunicat("softphone-sign-overdued", data, "auto", props.ancestorOrigin, "ai-softphone");
15905
+ }
15959
15906
  // 签入
15960
15907
  connect() {
15961
- this.microCommunicat("softphone-connect", true);
15908
+ this.microCommunicat("softphone-connect", {
15909
+ status: true
15910
+ });
15962
15911
  }
15963
15912
  disconnect() {
15964
- this.microCommunicat("softphone-connect", false);
15913
+ this.microCommunicat("softphone-connect", {
15914
+ status: false
15915
+ });
15965
15916
  }
15966
15917
  seatsStatusChange(status) {
15967
- this.microCommunicat("softphone-connect", status);
15918
+ this.microCommunicat("softphone-connect", {
15919
+ status
15920
+ });
15968
15921
  }
15969
15922
  accept() {
15970
15923
  this.microCommunicat("softphone-connect");
@@ -16059,8 +16012,7 @@ __sfc_main.setup = (__props, __ctx) => {
16059
16012
  loadQiankunMicroApps() {
16060
16013
  const appConfig = this.getMicroAppConfig()[0];
16061
16014
  appConfig.props.shared.getUserInfo = getUserInfo;
16062
- appConfig.props.shared.setUserInfo = () => {
16063
- };
16015
+ appConfig.props.shared.setUserInfo = setUserInfo;
16064
16016
  this.initState();
16065
16017
  this.app = loadMicroApp(appConfig, {
16066
16018
  sandbox: {
@@ -16085,8 +16037,7 @@ __sfc_main.setup = (__props, __ctx) => {
16085
16037
  const appConfig = this.getMicroAppConfig()[0];
16086
16038
  const url = appConfig.entry;
16087
16039
  appConfig.props.shared.getUserInfo = getUserInfo;
16088
- appConfig.props.shared.setUserInfo = () => {
16089
- };
16040
+ appConfig.props.shared.setUserInfo = setUserInfo;
16090
16041
  setupApp({
16091
16042
  name: props.name,
16092
16043
  plugins: [{
@@ -16127,8 +16078,7 @@ __sfc_main.setup = (__props, __ctx) => {
16127
16078
  registerQiankunMicroApps() {
16128
16079
  const appConfig = this.getMicroAppConfig()[0];
16129
16080
  appConfig.props.shared.getUserInfo = getUserInfo;
16130
- appConfig.props.shared.setUserInfo = () => {
16131
- };
16081
+ appConfig.props.shared.setUserInfo = setUserInfo;
16132
16082
  registerMicroApps([appConfig], {
16133
16083
  // qiankun 生命周期钩子 - 加载前
16134
16084
  beforeLoad: [(app) => {
@@ -16172,6 +16122,75 @@ __sfc_main.setup = (__props, __ctx) => {
16172
16122
  }
16173
16123
  _qiankunActions = new WeakMap();
16174
16124
  const nfMicrophoneInstance = new MicroManager();
16125
+ class SoftphoneNotity {
16126
+ constructor() {
16127
+ this.communicationList = {
16128
+ "softphone-connect-registered": (data) => {
16129
+ emit("softphone-connect-registered", data);
16130
+ },
16131
+ "softphone-session-state-change": (data) => {
16132
+ emit("softphone-session-state-change", data);
16133
+ },
16134
+ "softphone-call-refresh": (data) => {
16135
+ emit("softphone-call-refresh", data);
16136
+ },
16137
+ "softphone-connect": (data) => {
16138
+ emit("softphone-connect", data);
16139
+ },
16140
+ "softphone-accept": (data) => {
16141
+ emit("softphone-accept", data);
16142
+ },
16143
+ "softphone-seats-status-change": (data) => {
16144
+ emit("softphone-seats-status-change", data);
16145
+ },
16146
+ "softphone-ignore": (data) => {
16147
+ emit("softphone-ignore", data);
16148
+ },
16149
+ "softphone-hangup": (data) => {
16150
+ emit("softphone-hangup", data);
16151
+ },
16152
+ "softphone-incoming": (data) => {
16153
+ emit("softphone-incoming", data);
16154
+ },
16155
+ "softphone-send-dtmf": (data) => {
16156
+ emit("softphone-send-dtmf", data);
16157
+ },
16158
+ "softphone-sign-overdued": (data) => {
16159
+ const done = (data2) => {
16160
+ const {
16161
+ sign,
16162
+ timestamp
16163
+ } = data2;
16164
+ nfMicrophoneInstance.signOverdued({
16165
+ sign,
16166
+ timestamp
16167
+ });
16168
+ };
16169
+ emit("softphone-sign-overdued", done);
16170
+ }
16171
+ };
16172
+ this.useQinkunSoftphoneNotity = (state) => {
16173
+ var _a, _b;
16174
+ if (state.ancestorOrigin === props.ancestorOrigin && state.origin !== props.ancestorOrigin || state.ancestorOrigin === props.origin && state.origin === props.origin) {
16175
+ if (state.destinationOrigin === "*" || state.destinationOrigin === props.destinationOrigin) {
16176
+ (_b = (_a = this.communicationList)[state.type]) == null ? void 0 : _b.call(_a, state.data);
16177
+ }
16178
+ }
16179
+ };
16180
+ }
16181
+ useWujieSoftphoneNotity() {
16182
+ Object.keys(this.communicationList).forEach((key) => {
16183
+ bus.$on(key, (state) => {
16184
+ var _a, _b;
16185
+ if (state.ancestorOrigin === props.ancestorOrigin && state.origin !== props.ancestorOrigin || state.ancestorOrigin === props.origin && state.origin === props.origin) {
16186
+ if (state.destinationOrigin === "*" || state.destinationOrigin === props.destinationOrigin) {
16187
+ (_b = (_a = this.communicationList)[key]) == null ? void 0 : _b.call(_a, state.data);
16188
+ }
16189
+ }
16190
+ });
16191
+ });
16192
+ }
16193
+ }
16175
16194
  const getUserInfo = () => {
16176
16195
  const {
16177
16196
  agentId,
@@ -16289,6 +16308,12 @@ __sfc_main.setup = (__props, __ctx) => {
16289
16308
  seats: true
16290
16309
  };
16291
16310
  };
16311
+ const setUserInfo = (userInfo) => {
16312
+ if (userInfo.sign && props.sign && userInfo.sign !== props.sign) {
16313
+ emit("update:sign", userInfo.sign);
16314
+ emit("update:timestamp", userInfo.timestamp);
16315
+ }
16316
+ };
16292
16317
  vueDemi.onMounted(() => {
16293
16318
  if (props.mode === "qiankun") {
16294
16319
  nfMicrophoneInstance.loadQiankunMicroApps();
@@ -16439,6 +16464,12 @@ class SoftphoneManager {
16439
16464
  },
16440
16465
  softphoneConnectRegisteredCallBack: () => {
16441
16466
  console.log("softphone-connect-registered");
16467
+ },
16468
+ softphoneSignOverduedCallBack: (done) => {
16469
+ done({
16470
+ timestamp: void 0,
16471
+ sign: void 0
16472
+ });
16442
16473
  }
16443
16474
  };
16444
16475
  this.initSoftphone = (option) => {
@@ -16447,6 +16478,12 @@ class SoftphoneManager {
16447
16478
  return;
16448
16479
  }
16449
16480
  const props = this.option = option ? { ...this.option, ...option } : this.option;
16481
+ const setUserInfo = (userInfo) => {
16482
+ if (userInfo.sign && props.sign && userInfo.sign !== props.sign) {
16483
+ this.option.sign = userInfo.sign;
16484
+ this.option.timestamp = userInfo.timestamp;
16485
+ }
16486
+ };
16450
16487
  const getUserInfo = () => {
16451
16488
  const {
16452
16489
  agentId,
@@ -16723,72 +16760,6 @@ class SoftphoneManager {
16723
16760
  return 3;
16724
16761
  }
16725
16762
  }
16726
- class SoftphoneNotity {
16727
- constructor() {
16728
- this.communicationList = {
16729
- "softphone-connect-registered": (data) => {
16730
- var _a;
16731
- (_a = props.softphoneConnectRegisteredCallBack) == null ? void 0 : _a.call(props, data);
16732
- },
16733
- "softphone-session-state-change": (data) => {
16734
- var _a;
16735
- (_a = props.softphoneSessionStateChangeCallBack) == null ? void 0 : _a.call(props, data);
16736
- },
16737
- "softphone-call-refresh": (data) => {
16738
- var _a;
16739
- (_a = props.softphoneCallRefreshCallBack) == null ? void 0 : _a.call(props, data);
16740
- },
16741
- "softphone-connect": (data) => {
16742
- var _a;
16743
- (_a = props.softphoneConnectCallBack) == null ? void 0 : _a.call(props, data);
16744
- },
16745
- "softphone-accept": (data) => {
16746
- var _a;
16747
- (_a = props.softphoneAcceptCallBack) == null ? void 0 : _a.call(props, data);
16748
- },
16749
- "softphone-seats-status-change": (data) => {
16750
- var _a;
16751
- (_a = props.softphoneSeatStatusChangeCallBack) == null ? void 0 : _a.call(props, data);
16752
- },
16753
- "softphone-ignore": (data) => {
16754
- var _a;
16755
- (_a = props.softphoneIgnoreCallBack) == null ? void 0 : _a.call(props, data);
16756
- },
16757
- "softphone-hangup": (data) => {
16758
- var _a;
16759
- (_a = props.softphoneHangupCallBack) == null ? void 0 : _a.call(props, data);
16760
- },
16761
- "softphone-incoming": (data) => {
16762
- var _a;
16763
- (_a = props.softphoneIncomingCallBack) == null ? void 0 : _a.call(props, data);
16764
- },
16765
- "softphone-send-dtmf": (data) => {
16766
- var _a;
16767
- (_a = props.softphoneSendDtmfCallBack) == null ? void 0 : _a.call(props, data);
16768
- }
16769
- };
16770
- this.useQinkunSoftphoneNotity = (state) => {
16771
- var _a, _b;
16772
- if (state.ancestorOrigin === props.ancestorOrigin && state.origin !== props.ancestorOrigin || state.ancestorOrigin === props.origin && state.origin === props.origin) {
16773
- if (state.destinationOrigin === "*" || state.destinationOrigin === props.destinationOrigin) {
16774
- (_b = (_a = this.communicationList)[state.type]) == null ? void 0 : _b.call(_a, state.data);
16775
- }
16776
- }
16777
- };
16778
- }
16779
- useWujieSoftphoneNotity() {
16780
- Object.keys(this.communicationList).forEach((key) => {
16781
- bus.$on(key, (state) => {
16782
- var _a, _b;
16783
- if (state.ancestorOrigin === props.ancestorOrigin && state.origin !== props.ancestorOrigin || state.ancestorOrigin === props.origin && state.origin === props.origin) {
16784
- if (state.destinationOrigin === "*" || state.destinationOrigin === props.destinationOrigin) {
16785
- (_b = (_a = this.communicationList)[key]) == null ? void 0 : _b.call(_a, state.data);
16786
- }
16787
- }
16788
- });
16789
- });
16790
- }
16791
- }
16792
16763
  class MicroManager {
16793
16764
  constructor() {
16794
16765
  __privateAdd(this, _qiankunActions, void 0);
@@ -16801,15 +16772,15 @@ class SoftphoneManager {
16801
16772
  getWejieActions() {
16802
16773
  return bus;
16803
16774
  }
16804
- microCommunicat(type, status) {
16775
+ microCommunicat(type, data = {}, operationType = "manual", ancestorOrigin = props.ancestorOrigin, destinationOrigin = props.destinationOrigin) {
16805
16776
  const state = {
16806
16777
  origin: "nf-softphone",
16807
- ancestorOrigin: props.ancestorOrigin,
16808
- destinationOrigin: props.destinationOrigin,
16778
+ ancestorOrigin: ancestorOrigin || props.ancestorOrigin,
16779
+ destinationOrigin: destinationOrigin || props.destinationOrigin,
16809
16780
  type,
16810
16781
  data: {
16811
- status,
16812
- type: "manual"
16782
+ ...data,
16783
+ type: operationType
16813
16784
  }
16814
16785
  };
16815
16786
  if (this.mode === "qiankun") {
@@ -16820,13 +16791,19 @@ class SoftphoneManager {
16820
16791
  }
16821
16792
  // 签入
16822
16793
  connect() {
16823
- this.microCommunicat("softphone-connect", true);
16794
+ this.microCommunicat("softphone-connect", {
16795
+ status: true
16796
+ });
16824
16797
  }
16825
16798
  disconnect() {
16826
- this.microCommunicat("softphone-connect", false);
16799
+ this.microCommunicat("softphone-connect", {
16800
+ status: false
16801
+ });
16827
16802
  }
16828
16803
  seatsStatusChange(status) {
16829
- this.microCommunicat("softphone-connect", status);
16804
+ this.microCommunicat("softphone-connect", {
16805
+ status
16806
+ });
16830
16807
  }
16831
16808
  accept() {
16832
16809
  this.microCommunicat("softphone-connect");
@@ -16840,6 +16817,9 @@ class SoftphoneManager {
16840
16817
  sendDtmf() {
16841
16818
  this.microCommunicat("softphone-send-dtmf");
16842
16819
  }
16820
+ signOverdued(data) {
16821
+ this.microCommunicat("softphone-sign-overdued", data, "auto", props.ancestorOrigin, "ai-softphone");
16822
+ }
16843
16823
  changeServerToRegister() {
16844
16824
  this.microCommunicat("softphone-change-server-to-register");
16845
16825
  }
@@ -16918,8 +16898,7 @@ class SoftphoneManager {
16918
16898
  loadQiankunMicroApps() {
16919
16899
  const appConfig = this.getMicroAppConfig()[0];
16920
16900
  appConfig.props.shared.getUserInfo = getUserInfo;
16921
- appConfig.props.shared.setUserInfo = () => {
16922
- };
16901
+ appConfig.props.shared.setUserInfo = setUserInfo;
16923
16902
  this.initState();
16924
16903
  this.app = loadMicroApp(appConfig, {
16925
16904
  sandbox: {
@@ -16944,8 +16923,7 @@ class SoftphoneManager {
16944
16923
  const appConfig = this.getMicroAppConfig()[0];
16945
16924
  const url = appConfig.entry;
16946
16925
  appConfig.props.shared.getUserInfo = getUserInfo;
16947
- appConfig.props.shared.setUserInfo = () => {
16948
- };
16926
+ appConfig.props.shared.setUserInfo = setUserInfo;
16949
16927
  setupApp({
16950
16928
  name: props.name,
16951
16929
  plugins: [
@@ -16983,8 +16961,7 @@ class SoftphoneManager {
16983
16961
  registerQiankunMicroApps() {
16984
16962
  const appConfig = this.getMicroAppConfig()[0];
16985
16963
  appConfig.props.shared.getUserInfo = getUserInfo;
16986
- appConfig.props.shared.setUserInfo = () => {
16987
- };
16964
+ appConfig.props.shared.setUserInfo = setUserInfo;
16988
16965
  registerMicroApps([appConfig], {
16989
16966
  // qiankun 生命周期钩子 - 加载前
16990
16967
  beforeLoad: [() => {
@@ -17027,7 +17004,87 @@ class SoftphoneManager {
17027
17004
  }
17028
17005
  }
17029
17006
  _qiankunActions = new WeakMap();
17030
- this.nfMicrophoneInstance = new MicroManager();
17007
+ const nfMicrophoneInstance = this.nfMicrophoneInstance = new MicroManager();
17008
+ class SoftphoneNotity {
17009
+ constructor() {
17010
+ this.communicationList = {
17011
+ "softphone-connect-registered": (data) => {
17012
+ var _a;
17013
+ (_a = props.softphoneConnectRegisteredCallBack) == null ? void 0 : _a.call(props, data);
17014
+ },
17015
+ "softphone-session-state-change": (data) => {
17016
+ var _a;
17017
+ (_a = props.softphoneSessionStateChangeCallBack) == null ? void 0 : _a.call(props, data);
17018
+ },
17019
+ "softphone-call-refresh": (data) => {
17020
+ var _a;
17021
+ (_a = props.softphoneCallRefreshCallBack) == null ? void 0 : _a.call(props, data);
17022
+ },
17023
+ "softphone-connect": (data) => {
17024
+ var _a;
17025
+ (_a = props.softphoneConnectCallBack) == null ? void 0 : _a.call(props, data);
17026
+ },
17027
+ "softphone-accept": (data) => {
17028
+ var _a;
17029
+ (_a = props.softphoneAcceptCallBack) == null ? void 0 : _a.call(props, data);
17030
+ },
17031
+ "softphone-seats-status-change": (data) => {
17032
+ var _a;
17033
+ (_a = props.softphoneSeatStatusChangeCallBack) == null ? void 0 : _a.call(props, data);
17034
+ },
17035
+ "softphone-ignore": (data) => {
17036
+ var _a;
17037
+ (_a = props.softphoneIgnoreCallBack) == null ? void 0 : _a.call(props, data);
17038
+ },
17039
+ "softphone-hangup": (data) => {
17040
+ var _a;
17041
+ (_a = props.softphoneHangupCallBack) == null ? void 0 : _a.call(props, data);
17042
+ },
17043
+ "softphone-incoming": (data) => {
17044
+ var _a;
17045
+ (_a = props.softphoneIncomingCallBack) == null ? void 0 : _a.call(props, data);
17046
+ },
17047
+ "softphone-send-dtmf": (data) => {
17048
+ var _a;
17049
+ (_a = props.softphoneSendDtmfCallBack) == null ? void 0 : _a.call(props, data);
17050
+ },
17051
+ "softphone-sign-overdued": () => {
17052
+ var _a;
17053
+ const done = (data) => {
17054
+ const {
17055
+ sign,
17056
+ timestamp
17057
+ } = data;
17058
+ nfMicrophoneInstance.signOverdued({
17059
+ sign,
17060
+ timestamp
17061
+ });
17062
+ };
17063
+ (_a = props.softphoneSignOverduedCallBack) == null ? void 0 : _a.call(props, done);
17064
+ }
17065
+ };
17066
+ this.useQinkunSoftphoneNotity = (state) => {
17067
+ var _a, _b;
17068
+ if (state.ancestorOrigin === props.ancestorOrigin && state.origin !== props.ancestorOrigin || state.ancestorOrigin === props.origin && state.origin === props.origin) {
17069
+ if (state.destinationOrigin === "*" || state.destinationOrigin === props.destinationOrigin) {
17070
+ (_b = (_a = this.communicationList)[state.type]) == null ? void 0 : _b.call(_a, state.data);
17071
+ }
17072
+ }
17073
+ };
17074
+ }
17075
+ useWujieSoftphoneNotity() {
17076
+ Object.keys(this.communicationList).forEach((key) => {
17077
+ bus.$on(key, (state) => {
17078
+ var _a, _b;
17079
+ if (state.ancestorOrigin === props.ancestorOrigin && state.origin !== props.ancestorOrigin || state.ancestorOrigin === props.origin && state.origin === props.origin) {
17080
+ if (state.destinationOrigin === "*" || state.destinationOrigin === props.destinationOrigin) {
17081
+ (_b = (_a = this.communicationList)[key]) == null ? void 0 : _b.call(_a, state.data);
17082
+ }
17083
+ }
17084
+ });
17085
+ });
17086
+ }
17087
+ }
17031
17088
  if (this.option.mode === "qiankun") {
17032
17089
  this.nfMicrophoneInstance.loadQiankunMicroApps();
17033
17090
  } else {