"use strict";const a=require("../../../common/vendor.js"),t=require("../../utils/env.js");class n{constructor(){a.R.registerService(a.E.TUIContact.SERVICE.NAME,this),this.onCallParamsMap=new Map,this.onCallCallbackMap=new Map,this.constants=a.E}static getInstance(){return n.instance||(n.instance=new n),n.instance}getOnCallParams(a){return this.onCallParamsMap.get(a)}getOnCallCallback(a){return this.onCallCallbackMap.get(a)}async onCall(n,e,s){var l;this.onCallParamsMap.set(n,e),this.onCallCallbackMap.set(n,s),n===a.E.TUIContact.SERVICE.METHOD.SELECT_FRIEND&&(a.Jt.update(a.o.CUSTOM,"isShowSelectFriendComponent",!0),t.isUniFrameWork&&(null==(l=a.i)||l.reLaunch({url:"/TUIKit/components/TUIContact/index"})))}}exports.TUIContactServer=n;
