<div class="g-mnc">
<div class="j-flag g-slide"></div>
<div class="j-flag g-body"></div>
</div>
I$("2e6ba584ba8f99fd619131a66b563e4a",function(t,e,i,n,a,s,o,r,_,d,c,l,f,u,h){h=t._$klass();
u=h._$extend(l._$$Module);
u.__doBuild=function(){this.__tid="layout-body";this.__super();
this.__hideMask();
var t=i._$getByClassName(this.__
body,
"j-flag");
this.__export={sess:t[0],show:t[1]};
if(this.__
isMobilePlatform()&&2!=
window.setting.dialogMobileStyle)this.__doConnect();
else if(!
this.__isMobilePlatform()&&(1!=window.setting.winType||1==window.setting.isInvite))this.__
doConnect();
if(this.__
isMobilePlatform()&&2==window.setting.dialogMobileStyle&&window==top){this.__doConnect();i._$addClassName(this.__
body,
"m-mobile-frame-open")}n._$loop({onmessage:this.__onMessage._$bind(this),onkickout:this.__onKickout._$bind(this)},function(t,e){_._$
addEvent(e,t)});this.__doInitDomEvent([[document,"visibilitychange",this.__onVisibilityChange._$bind(this)],[window,"message",this.__onSdkMsg._$bind(this)]]);
window.parent.postMessage("pkg:"+JSON.stringify({category:"chatProxyBuild"}),"*");
if(this.__
doParseParent()&&this.__
isMobilePlatform())e._$addEvent("ysf-client","click",function(){window.parent.postMessage("pkg:"+JSON.stringify({category:"inviteModalClick"}),"*")},!
0)};
u.__onShow=function(t){this.__super(t)};
u.__onRefresh=function(t){if(!t.param.bid){var e=n._$query2object(location.search.substr(1));
d.SHOPID=e.bid||-1}else d.SHOPID=t.param.bid||-1;this.__super(t);
this.__title=document.title};u.__onHide=function(){this.__super()};
u.__doConnect=function(){c._$connect({appkey:setting.appkey})};
u.__checkSendPrdMsg=function(){var t=d._$getSessionByBid(d.SHOPID);if(t){if(200==t.sessionStatus.status)if(0==t.kefu.isRobot)_._$sendPrdMsg(d.SHOPID);else{var e=_.__
getProductInfo();
if(e&&1==e.sendProToRobot)_._$
sendPrdMsg(d.SHOPID)}}else console.log("session not exist when send prdMsg")};
u.__onSdkMsg=function(t){var e={status:function(t){d.isLayerOpen=t.layerOpen;this.__iframeOpenClearUnread();
if(a._$isFrameModule()&&d.isLayerOpen)this.__
checkSendPrdMsg()},doconnect:function(t){if("1"!=t.reconnect)this.__doConnect();else _._$applyRGKefu(d.SHOPID)}};
return function(t){try{var i=(t.data||"").split(":"),n=e[(i.shift()||"").toLowerCase()];
if(n)n.call(this,JSON.parse(i.join(":")))}catch(a){}}}();
u.__isMobilePlatform=function(){if(/(iPhone|iPod|iOS|Android)/i.test(navigator.userAgent))return!0;else return!1},u.__hideMask=function(){var t=i._$getByClassName(document.body,"g-mask")[0];i._$addClassName(t,"f-dn")};
u.__onMessage=function(t){if(!t.fromUser)this.__renderMarqueeTitle(!
0)};
u.__onVisibilityChange=function(){this.__renderMarqueeTitle();var t=localStorage.getItem("YSF-CLEARTIME-"+d.SHOPID);
var e=d._$getMsgListByBid(d.SHOPID);
var i;if(e)for(var n=e.length-1;n>=0;n--)if(0==e[n].fromUser&&"finish"!=
e[n].type&&"eval-show"!=
e[n].type){i=e[n].time;break}if(!
t||t&&t<i)this.__winchangeToServr()};
u.__renderMarqueeTitle=function(t){var e=d._$getUnreadTotal();if(!
document.hidden)this.__doUnMarqueeTitle();
else if(t)this.__
doMarqueeTitle(s.ONLINE_KF+"("+s.HAS_NEW_MESSAGE+")");
else if(e>0)this.__
doMarqueeTitle(s.ONLINE_KF+"("+s.HAS_UNREAD_MESSAGE+")")};
u.__winchangeToServr=function(){if(!document.hidden)if(a._$isFrameModule()){if(d.isLayerOpen){_._$clearUnreadMsg(d.SHOPID);_._$clearHiddenUnreadMsg(d.SHOPID)}else if(a._$isMobilePlatform()&&window==top){_._$clearUnreadMsg(d.SHOPID);_._$clearHiddenUnreadMsg(d.SHOPID)}}else{_._$clearUnreadMsg(d.SHOPID);_._$clearHiddenUnreadMsg(d.SHOPID)}};
u.__iframeOpenClearUnread=function(){if(a._$isFrameModule()||d.isLayerOpen){_._$clearUnreadMsg(d.SHOPID);_._$clearHiddenUnreadMsg(d.SHOPID)}};
u.__doMarqueeTitle=function(){var t;var e=function(){if(t)document.title=t.join("")};
var i=function(){t.push(t.shift());e()};
return function(n){if(this.__xtimer)window.clearInterval(this.__xtimer);t=n.split("");
this.__xtimer=window.setInterval(i,500);
e()}}();
u.__doUnMarqueeTitle=function(){if(this.__xtimer){this.__xtimer=window.clearInterval(this.__xtimer);document.title=this.__title}};u.__onKickout=function(t){if(c.__videoChat)c.__videoChat.destroy({shouldHangup:!1});
r. _ $alert ({btnOK: {label: s.RECONSULT | | "Reconsult"}, btnC: {hidden:!
0}, message: s.WARN_CONSULTATION_ON_ANOTHER_PAGE | | "You have initiated a consultation on other pages, and the current consultation has expired. You can re initiate a consultation", onok: function() {location. reload()}})};
u.__doParseParent=function(t){return i._$get("ysf-client")};
l._$regist("layout",h)},
"e4f0b0b7857ed3c1e2d0a46ba5b670d6","be567474249a271e4786c144ccf5f75a","5fb495f256a5dcde2a92e5fe919a6422","fbbf6ddc0634989027d138f4ffd4b78b","35df4ef4567b6cd0275a1b849d2bea8c","af3f2da7bbdae6f4919bfa7e84c55c4e","d252039c36767cb4f534ca3f91188796","972fe5ebc7a7940b3c06cefa017b585c","d67add781b37b82c1816b8c159701e56","aa835e6c54cfdee711ae8d0d1296fa57",
"4e09e3c278408cd8001c7779e34c93e9","8432624716159a6412219f26247c91bd");
<div class="j-show">
<div class="body_hd">
<div class="j-flag-tlt right"></div>
<div class="j-flag-tlt left"></div>
</div>
<div class="body_bd">
<div class="j-flag g-chat j-chat"></div>
<div class="j-flag g-tab j-tab"></div>
</div>
<div id="j-niuniu-capture"></div>
</div>
I$("9547c7f754b31895329fbc513fec1625",function(t,e,i,n,a,s,o,r,_,d,c,l,f,u,h,m){m=t._$klass();
h=m._$extend(f._$$Module);
h.__doBuild=function(){this.__super()};
h.__onShow=function(t){this.__super(t)};
h.__onRefresh=function(t){this.__super(t)};
h.__onHide=function(){this.__super()};
f._$regist("show",m)},
"e4f0b0b7857ed3c1e2d0a46ba5b670d6","fbbf6ddc0634989027d138f4ffd4b78b","be567474249a271e4786c144ccf5f75a","5fb495f256a5dcde2a92e5fe919a6422","d252039c36767cb4f534ca3f91188796","2a0f6f00e8af2a07d5b9a7c4620f5b4e","35df4ef4567b6cd0275a1b849d2bea8c","aa835e6c54cfdee711ae8d0d1296fa57","e4a45dc3cf399bf73004ce111fd4b206","d67add781b37b82c1816b8c159701e56",
"93872d9c4b2f20c68917dbdfa2b58e43","57b425e54e094947e45b4232d3c28d89","8fed76e567e32545928564a257a7dda4");
<div class="g-chat-body">
<div class="chat-switch-robot-button z-hide">
<img class="chat-switch-robot-icon" src="
https://qiyukf.nosdn.127.net/sdk/res/img/switch_a8dc169bb499aa84a1b7c81ab9cc6f9a.png
"Alt=" Toggle "/>
<span class="chat switch robot tip">Switching services</span>
</div>
<div class="chat-switch-robot-popover-contain"></div>
<div class="chat_show j-chat-show">
<div class="chat_show_tip j-tip u-headtip"></div>
<div class="chat_show_loading u-errtip j-loading"><img src="
https://res.qiyukf.net/operation/7360dbb0478604c0de70877785b5bada
" ><span class="j-loading-txt"></span></div>
<div class="chat_show_msg j-chat">
<div class="msg-upscroll j-upscroll"></div>
<div class="m-msglist j-list"></div>
</div>
<div class="j-flag-kf"></div>
<div class="chat_show_bot j-flag-bot" ></div>
<div class="chat_show_editor j-editor z-robot"></div>
</div>
<div class="chat_leave j-leave"></div>
<div class="chat_logo j-qiyuInfo" data-action="toqiyu" onclick="window.open('
https://b.163.com
');
">
<img class="taillogo" src="
https://res.qiyukf.net/operation/3446d45bc00632afca4302dde8982938
"Alt=" Netease Qiyu provides service support "><span class=" j foot jszc ">Qiyu provides service support</span>
</div>
</div>
I $("0b8613625bee0baebd2cd625551996e5", '<textarea name="ntp" id="#<photoBody>"> n - flag "></div> n</div> n<div class=" modul_ft "
>\N<button class="u-btn ok j-flag">Send</button> n<button class="u-btn cancel j-flag">Cancel</button> n</div> n</div> n</div> n</textarea> n<textarea name="jst" id="#<photoList>"> n {list photos as x} n {if x_length>1} n<div class="photo wrap" style="background image: url (${x.ur l})"></div> n {else} n<div class="photo wrap"
><img src="${x.url}"/></div>\n {/if}\n {/list}\n</textarea>');
I$("c1d55708b36e5cee72cf23349b7f94da",function(t,e,i,n,a,s,o,r,_,d,c){d._$$PhotoViewer=t._$klass();
c=d._$$PhotoViewer._$extend(n._$$Abstract);
c.__reset=function(t){this.__super(t);this.__doInitDomEvent([[this.__nok,"click",this.__onOK._$bind(this)],[this.__ncc,"click",this.__onCC._$bind(this)]]);
this.__scrollbar=o._$$Scrollbar._$allocate({parent:this.__lbox});
this.__list=t.photos||[];
s._$render(this.__
lbox,this.__seed_list,
{photos:this.__list});
this.__doUpdateClass(this.__
list.length);this.__nok.focus()};
c.__destroy=function(){this.__scrollbar._$recycle();this.__lbox.innerHTML="";delete this.__scrollbar;delete this.__list;this.__super()};
c.__initXGui=function(){var t=a._$parseUITemplate(_);return function(){this.__seed_list=t.photoList;this.__seed_html=t.photoBody}}();
c.__initNode=function(){this.__super();var t=e._$getByClassName(this.__
body,
"j-flag");
this.__lbox=t[0];
this.__nok=t[1];
this.__ncc=t[2];
this.__ntlt=e._$getByClassName(this.__
body,
"modal_title")[0];
This. __ntlt. innerHTML=r.CHAT_SEND_IMAGE | | "Send Picture"; this. __nok. innerHTML=r.SENT | | "Send"; this. __ncc. innerHTML=r.UI_CANCEL | | "Cancel"}; c.__doUpdateClass=function() {var t=["z-second", "z-more"]; return function (i) {var n=""; if (2==i) n=t [0];
else if(i>2)n=t[1];
e._$replaceClassName(this.__
lbox.parentNode,t.join(" "),n)}}();
c.__onOK=function(){this._$dispatchEvent("onok",{data:this.__list});
this._$recycle()};
c.__onCC=function(){this._$dispatchEvent("oncc");this._$recycle()};
d._$preview=function(t){var e={parent:document.body};
d._$$PhotoViewer._$allocate(i._$merge(e,t))}},
"e4f0b0b7857ed3c1e2d0a46ba5b670d6","5fb495f256a5dcde2a92e5fe919a6422","fbbf6ddc0634989027d138f4ffd4b78b","8fe733a225a830dc6b1da5866dcaf23c","d252039c36767cb4f534ca3f91188796","2a0f6f00e8af2a07d5b9a7c4620f5b4e","c711308f00adca75206c9dc3966a29d2","af3f2da7bbdae6f4919bfa7e84c55c4e","0b8613625bee0baebd2cd625552996e5");
I $("efa8f80f50bf19cd666a7c9c8c38605f", '<textarea name="ntp" id="#<mdlBody>"> n class="file list"></ul> n</div> n<div class="modul_ft"
>\N<button class="u-btn ok">OK</button> n<button class="u-btn u-btn cancel">Cancel</button> n<div class="u-error"> n t<span class="error msg"></span> n</div> n</div> n</div> n</div> n</div> n</textarea> n n<textarea name="jst" id="#<fileList>"> n t {list files as file} n t<li class="file item {if {file. overSize | | file. isZero}
z-disabled{/if}">\n\t\t\t<i class="u-icon-${file.name|spliceSuffix} icon"></i>\n\t\t\t<span class="name">${file.name|escape}</span>\n\t\t\t<span class="size">${file.size|fileSizeFormat}</span>\n {if file.overSize}\n <span class="file-error">${local.val(local._MSG_FILE_MORE_CANT_SENT,
MaxFileSize+"MB") | | "Greater than"+maxFileSize+"MB cannot be sent"}</span> n {elseif file. isZero} n<span class="file error">${local. MSG_CANT_SEND_EMPTY_FILE | 'Empty files cannot be sent '}</span> n {/if} n t</li> n t {/list} n</textarea> n'); I $("0601a0c5ba07e512639f37a3c53ba0", function (t, e, i, n, a, s, o, r, _, d, c, l, f) {l._ $$FileModal=t._ $klas();
f=l._$$FileModal._$extend(a._$$Abstract);
f.__init=function(t){this.__super(t);r._$extend({fileSizeFormat:s._$fileSizeFormat,spliceSuffix:s._$spliceSuffix})};f.__reset=function(t){this.__super(t);this.__data=n._$merge({max:9,files:[],isValid:!1,maxFileSize:_._$isSupportFileApi()?
200:100},t);this.__data.originFiles=this.__data.files;this.__data.files=Array.prototype.slice.call(this.__
data.files);var e=this.__data.files,i=this.__data.max;if(e.length>i)e.splice(i);
n._$forEach(e,function(t){if("INPUT"==t.tagName&&t.value)t.name=t.value.match(/[^\/\\]+$/);t.isZero=t.size<=0?!0:!1;t.overSize=t.size>this.__data.maxFileSize*Math.pow(1024,2)?!
0:!
1}._$
bind(this));
this.__onCanSendFile({result:t.canSend});
this.__doInitDomEvent([[this.__nok,"click",this.__onOK._$bind(this)],[this.__ncancel,"click",this.__onCancel._$bind(this)]]);
this._$addEvent("oncansendfile",this.__onCanSendFile._$bind(this));
this.__nok.focus();
this.__render()};
f.__destroy=function(){this.__super()};
f.__initXGui=function(){var t=o._$parseUITemplate(c);return function(){this.__seed_html=t.mdlBody;this.__list_html=t.fileList}}();
f.__initNode=function(){this.__super();this.__ntlt=e._$getByClassName(this.__
body,
"modal_title")[0];
this.__nok=e._$getByClassName(this.__
body,
"ok")[0];
this.__ncancel=e._$getByClassName(this.__
body,
"cancel")[0];
this.__nlist=e._$getByClassName(this.__
body,
"file-list")[0];
this.__nerror=e._$getByClassName(this.__
body,
"u-error")[0];
This. __ntlt. innerHTML=d. CHAT_SEND_FILE | | "Send File"; this. __nok. innerHTML=d. UI_OK | | "OK"; this. __cancel. innerHTML=d.UI_CANCEL | | "Cancel"}; f. __render=function() {this. __data. local=d; r._ $render (this__
nlist,this.__list_html,this.__data)};f.__onOK=function(t){if(this.__data.isValid){var e=this.__getValidateFiles();this._$dispatchEvent("onok",t,e);this._$recycle()}};
f.__onCancel=function(t){this._$dispatchEvent("oncancel",t);this._$recycle()};
f.__onCanSendFile=function(t){this.__data.canSend=t.result;this.__validate()};
f.__getValidateFiles=function(){var t=[];n._$forEach(this.__
data.files,function(e){if(!e.overSize&&!e.isZero)t.push(e)});
return t};f.__validate=function(){if(this.__getValidateFiles().length>0&&this.__data.canSend){this.__data.isValid=!0;this._$enableOk()}else{this.__data.isValid=!1;this._$disableOk()}var t="";
if(0==this.__
Data. canSend) t=d. CHAT_SENT_TOO_MANY_FILES_TRY_LATER | | "You sent too many files at the same time period, please try again later"; else if (this__
Data. originFiles. length>this. __data. max) t=d.val (d._CHAT_FIRST_FILES_CAN_SENT, this. __data. max) | | "This. __data. max+" files "; this. __error. innerText=t}; f. _ $disableOk=function() {e._ $attr (this. __nok," disabled ",! 0); e._ $addClassName (this__
nok,
"z-disabled");
e._$style(this.__
nok,
{color:"#fff"})};
f._$enableOk=function(){this.__nok.removeAttribute("disabled");e._$delClassName(this.__
nok,
"z-disabled");
e._$style(this.__
nok,
{color:"#fff"})}},"e4f0b0b7857ed3c1e2d0a46ba5b670d6","5fb495f256a5dcde2a92e5fe919a6422","be567474249a271e4786c144ccf5f75a","fbbf6ddc0634989027d138f4ffd4b78b","8fe733a225a830dc6b1da5866dcaf23c","35df4ef4567b6cd0275a1b849d2bea8c","d252039c36767cb4f534ca3f91188796","2a0f6f00e8af2a07d5b9a7c4620f5b4e","3e346f2b6313e57a75f5ee9b603c4b65",
"af3f2da7bbdae6f4919bfa7e84c55c4e","efa8f80f50bf19cd666a7c9c8c38605f");
I$("bad45afa5ce71bf8cd6e713026c82970",function(t,e){var i={};
var n=0;e._$getCache=function(t){return i[t]};
e._$setCache=function(t,e){i[t]=e};
e._$parseTemplate=function(t){var i=e._$getTemplateType(t);switch(i){case"order_list":return e.__parseListTemplate(t);case"order_detail":return e.__parseDetailTemplate(t);case"order_logistic":return e.__parseFlowTemplate(t);case"order_status":return e.__parseStatusTemplate(t)}};e._$getTemplateType=function(t){var e=new DOMParser,
i=e.parseFromString(t,"text/xml");
return i.querySelector("template").getAttribute("id")};
e.__parseListTemplate=function(t){var i=e.__botXmlParser(t),n={title:"",content:{list:[]}};
var a=i.getLinks();
n.title=i.getTextVal(null,"label");
n.status=100;if(!
(a.length<1)){for(var s=0;s<a.length;s++){var o=a[s];
if("block"==o.getAttribute("type"))n.content.list.push({target:o.getAttribute("target"),params:o.getAttribute("params"),image:i.getImageUrl(o),title:i.getTextVal(o,"p_name"),price:i.getTextVal(o,"p_price"),number:i.getTextVal(o,"p_count"),statusInfo:i.getTextVal(o,"p_status"),status:100})}e._$setCache("list",
n);return n}else console.error("parse list template is error",a)};e.__parseDetailTemplate=function(t){var i=e.__botXmlParser(t),n={title:"",content:{list:[]}};
var a=i.getLayouts();
if(!
(a.length<2)){n.title=i.getTextVal(a[0],"label");n.status=400;for(var s=1;
s<a.length;s++){var o=a[s];
n.content.list.push({label:i.getTextVal(o,"label"),value:i.getTextVal(o,"value")})}e._$setCache("detail",n);return n}else console.error("parse detail template is error",a)};e.__parseFlowTemplate=function(t){var i=e.__botXmlParser(t),n={title:"",content:{list:[]}};
var a=i.getLayouts();
if(!
(a.length<2)){n.title=i.getTextVal(a[0],"label");n.status=300;for(var s=1;
s<a.length;s++){var o=a[s];
n.content.list.push({value:i.getTextVal(o,"logistic"),timestamp:i.getTextVal(o,"timestamp")})}e._$setCache("flow",n);return n}else console.error("parse detail template is error",a)};e.__parseStatusTemplate=function(t){var i=e.__botXmlParser(t),n={title:"",content:{list:[]}};
var a=i.getLinks();
var s=i.getLayouts();
if(!
(s.length<3||a.length<1)){n.title=i.getTextVal(s[0],"label")+i.getTextVal(s[1],"label");n.status=200;for(var o=0;
o<a.length;o++){var r=a[o];
n.content.list.push({target:r.getAttribute("target"),params:r.getAttribute("params")||"",info:i.getTextVal(r,"valid_operation")})}e._$setCache("status",n);return n}else console.error("parse status template is error",s,a)};e.__botXmlParser=function(t){var e=new DOMParser;var i=e.parseFromString(t,"text/xml");
return{getLayouts:function(){return i.querySelectorAll("LinearLayout")||[]},getLinks:function(t){t=t||i;return t.querySelectorAll("link")},getTextVal:function(t,e){
t=t||i;var n=t.querySelector("text[name="+e+"]");
return n?n.textContent:""},getImageUrl:function(t){t=t||i;return t.querySelector("image").getAttribute("url")}}};
e._$openSwitch=function(){n=1};
e._$getSwitchStatus=function(){return n}},"fbbf6ddc0634989027d138f4ffd4b78b");
I$("cc7bc4a298ada69b7bf2d8371bd44932",function(t,e,i,n,a,s,o,r,_,d,c,l,f,u,h,m,p){var g=window.setting||{};
if(window.debug)var v=window.debug("visitorSession:push");
var b;var $={client_input:{"switch":1,sendingRate:"1.5"},input_assciation_permisson:{"switch":0,sendingRate:"0.5"},client_read:{"switch":1}};
var y=[];
window.msgQueue=y;var S=function(t){for(var e=0;e<y.length;e++)if(y[e]==t)return!
0;
return!1};var E=function(){var t=!1;t=window.screenTop<-3e4&&window.screenLeft<-3e4;return t};l._$config({"user-add":{domain:window.setting.getKefuDomain,url:"/webapi/user/create.action",format:function(t,e){var i=t.info;
t.result={token:i.token,account:i.accid,exchange:i.exchange};v&&v("[cbUserCreate] data:%O",{params:e.data,storage:i.storage});this.__setRemoteStorage(i.storage,e.data.appkey)},onerror:function(t,e){var i="";
c. _ $error ("httpRequestError", n._ $merge ({url: "/webapi/user/create. action"}, e, t)); if (1002==t.code | | 1003==t.code | | 1001==t.code) {switch (t.code) {case 1001: i=d.COMM_APPKEY_NOT_EXIST | | "Enterprise Appkey does not exist"; break; case 1002: i=d.COMM_ACCOUNTS_ILLEGAL | | "Account is illegal";
Break; case 1003: i=d. COMM_SYSTEM_ERROR | | "System Error"} this. _ $dispatchEvent ("onusererror", i)} else this. __cbCreateYXUser (e.data. appkey, null); return! 0}, "user push add": {domain: window. setting. getKefuDomain, url: "/webapi/user/create. action", format: function (t) {var e=t.info; t.result={token n: e.token,
account:e.accid,exchange:e.exchange}}},
"user-evaluate":{url:"/webapi/user/evaluate.action",format:function(t){t.result={code:t.code,desc:t.desc}}}});var I={NULL:0,INIT:1,CONNECTED:2};p=t._$klass();
h=p._$extend(l._$$Cache);
h.__init=function(){this.__step=2;this.__count=0;this.__state=I.NULL;this.__nopt={db:!
1,debug:window.MIN_DEBUG_MODE,syncBroadcastMsgs:!1,syncExtraTeamInfo:!1,syncFilter:!0,syncFriendUsers:!1,syncFriends:!1,syncRelations:!1,syncRoamingMsgs:!1,syncRobots:!1,syncSessionUnread:!1,syncStickTopSessions:!1,syncSuperTeamRoamingMsgs:!1,syncSuperTeams:!1,syncTeamMembers:!1,syncTeams:!1,
defaultLinkUrl:window.
DEFAULTWEBLINK||"https://weblink-qiyu.netease.im",privateConf:{lbs_web:window.
MIN_LBS,nos_downloader:"https://nos.netease.com/{bucket}/{object}"},onmsg:this.__cbReceiveMessage._$bind(this),onerror:this.__onConnectError._$bind(this),onconnect:this.__cbConnect2Yunxin._$bind(this),ondisconnect:this.__onDisConnect._$bind(this),oncustomsysmsg:this.__onReceiveInstr._$bind(this)};
this.__evalBox={};
this.__sesTokenMap={};
this.__floatingLayerMark=n._$uniqueID();
this.__splitmsgCache={};
this.__botCache={};
this.__super()};
h.__doResetTimeout=function(){this.__count=0;return this.__count};h.__getNextTimeout=function(){var t=1e3*(this.__step+this.__step*this.__count);this.__count++;return t};h.__getDeviceID=function(){return g.fid||g.device};
h.__getUserInfo=function(){var t=this.__getDataInCache("yunxin-user");if(window.localStorage){var e="X-"+t.appKey.toUpperCase()+"-YSF-INFO",i=localStorage.getItem(e);
if(!
i)return;var a=n._$query2object(i);
if(a.uid)t.fid=a.uid;
a.source=i;return a}};h.__getForeignInfo=function(t){var e={email:"email",real_name:"name",mobile_phone:"mobile",avator:"avator"},i=JSON.parse(t.profile||"null")||[];
n._$forEach(i,function(i){var n=e[i.key];if(n){delete e[i.key];i.value=i.value||t[n]||g[n]||""}});
n._$loop(e,function(e,n){var a=t[e]||g[e];
if(null!=
a)i.unshift({key:n,value:a})});return i};h.__getMessageBody=function(t){return{time:t.time,id:t.idServer,sid:this._$getSessionID(),msgIdClient:t.idClient,from:this._$getKefu(),to:{id:t.to}}};
h.__onConnectError=function(){var t={302:function(){this._$dispatchEvent("onusererror")}};
return function(e){var i=t[e.code];if(n._$isFunction(i))i.call(this);
else if(n._$isString(i))t[i].call(this);
c._$error("onConnectError",e)}}();
h.__doCreateYXUser=function(t){var e=this.__getDataInCache("yunxin-user");this.__offlineAckTimer=setInterval(function(){this.__setAckDvc(t);this.__setAckTime(t)}._$
bind(this),2e3);
if(!
e){var e={deviceid:this.__getDeviceID(t),appkey:t||"",token:g.uuid||""};if(g.bid&&g.bid!=-
1)e.bid=g.bid;
this.__doSendRequest("user-add",{data:e,onload:this.__cbCreateYXUser._$bind(this,t)})}else this.__cbCreateYXUser(t,e)};h.__cbCreateYXUser=function(t,e){if(e){n._$merge(window.logSetting,{token:e.token,account:e.account});this.__setDataInCache("yunxin-user",e);this.__setDataInCache("corp-appkey",t);this.__doResetTimeout();
e.appKey=t;e.exchange=e.exchange||[-1];
e=n._$merge({},e,this.__nopt);window.nim=this.__nim=new NIM(e)}else window.setTimeout(this.__doCreateYXUser._$bind(this,t),this.__getNextTimeout())};
h.__cbConnect2Yunxin=function(t){c._$info("__cbConnect2Yunxin",t);n._$merge(t,{staffid:g.staffid||0,groupid:g.groupid||0,qtype:g.qtype||0,welcomeTemplateId:g.welcomeTemplateId||0,robotShuntSwitch:g.robotShuntSwitch||0,robotId:g.robotId});var e=this.__getDataInCache("yunxin-user"),i=this.__getUserInfo()||{},a=e.exchange[0];
e.ip=e.ip||t.ip||"";if(this.__
ktimer)window.clearTimeout(this.__
ktimer);this.__ktimer=window.setTimeout(this.__
doCheckKefuFail._$bind(this),15e3);
var s=this.__tmpOnly2kefu;delete this.__tmpOnly2kefu;if(s)t.type=1;
var o=n._$query2object(location.search.substr(1));
var r;if(o.t)try{r=decodeURIComponent(o.t)}catch(_){r=o.t}this.__
Nim.sendCustomSysMsg ({to: a, cc:! 0, filter:! 0, scene: "p2p", content: JSON.stringify ({cmd: 1, deviceid: i.fid | | this. __getDeviceID()), exchange: a, foreignid: i.fid | | g.fid | | "", msgToken: this. _ $getSeqOfHistoryLoad(), fromTitle: i.title | | r | | d. COMM_UNKNOWN_PAGE | | "Unknown Page name", fromPage: i.referrer | | document. referrer, fromType: "WEB",
fromIp:e.ip,fromSubType:[navigator.platform||"",navigator.userAgent||""].join(" - "),version:"7",stafftype:t.type||0,staffid:t.staffid||0,groupid:t.groupid||0,entryid:t.entryid||0,level:i.level||0,qtype:t.qtype||0,welcomeTemplateId:t.welcomeTemplateId||0,authToken:i.authToken||0,robotShuntSwitch:t.robotShuntSwitch||0,landPage:i.landPage||"",
landPageTitle:i.landPageTitle||"",landPageReferrer:i.landPageReferrer||"",sessionInfo:i.sessionInfo,templateId:g.templateId||0,robotId:t.robotId||0}),done:function(e,i){if(e){window.setTimeout(this.__cbConnect2Yunxin._$bind(this,t),this.__getNextTimeout());
c._$error("cbConnect2Yunxin",n._$merge({cmd:1},e))}}._$bind(this)})};
h.__doCheckKefuFail=function(){if(!this.__isShuntFlow)this.__cbAllocateKefu({code:-1},{time:+new Date})};
h.__cbAllocateKefu=function(){var t=function(t,e){var i=this._$
getAppkey();
if(t)clearTimeout(t);
return setInterval(function(){try{var t=JSON.parse(localStorage.getItem(("YSF-SATISFY-"+i+"-"+e).toUpperCase())||"{}");
if(!
S(e)&&t.name){y.push(e);this._$dispatchEvent("onevalresult",{content:t.name});
this._$dispatchEvent("onevalresultmsg",{content:t.name,sid:t.sid})}}catch(n){console.error("time:",+new Date)}}._$
bind(this),2e3)};
var e={200:function(e,i){this.__
satifyTimer=t.call(this,this.__satifyTimer,this.__sessionId);this.__sesTokenMap[e.sessionid]=e.session_token;
var n=this.__getDataInCache("yunxin-kefu");
if(this.__
sessionId==e.sessionid&&n&&!n.isQueue){var a=!
0;
this._$dispatchEvent("onsamesession",e)}this.__sessionId=e.sessionid;if(1==e.stafftype)e.iconurl=e.iconurl||"";
else e.iconurl=e.iconurl||g.portrait||"";if(~e.iconurl.indexOf("nos.netease.com")||~e.iconurl.indexOf("nosdn.127.net"))e.iconurl+="?imageView&type=png|imageView&thumbnail=76y76&axis=5";
this.__doClearQueueCheck();
this.__setDataInCache("yunxin-kefu",e);try{this.staffReadSwitch=JSON.parse(i.content||"{}").shop.setting.staffReadSwitch}catch(s){}this.__
state=I.CONNECTED;this._$dispatchEvent("onconnect",{time:i.time,id:e.staffid,sid:e.sessionid,nickname:e.staffname,isRobot:1==e.stafftype,groupname:e.groupname,hasKefuEntry:1==e.operator_enable,hasEvaluated:0==e.evaluation_enable,welcome:e.message||"",isSameSession:!!a,botEntries:e.bot,setting:e.shop.setting});if(this.__
xtimer)window.clearInterval(this.__
xtimer);this.__xtimer=window.setInterval(this.__
doCheckUserChange._$bind(this),500);$
["client_input"]={"switch":1,sendingRate:"1.5"};this._$dispatchEvent("onconfig",{type:"client_input",config:$["client_input"]})},201:function(t,e){this.__
doClearQueueCheck();
this.__state=I.CONNECTED;this._$dispatchEvent("onnokefu",t)},205:function(t,e){this._$
dispatchEvent("onnokefunoleave",t)},203:function(t,e){this.__
sessionId=t.sessionid;if(t.robotSessionId)this.__
robotSessionId=t.robotSessionId;if(~t.iconurl.indexOf("nos.netease.com")||~t.iconurl.indexOf("nosdn.127.net"))t.iconurl+="?imageView&type=png|imageView&thumbnail=76y76&axis=5";
this.__setDataInCache("yunxin-kefu",n._$merge({isQueue:!0},t));this.__doClearQueueCheck();
this.__qtimer=window.setInterval(this.__
doCheckQueue._$bind(this),1e4);
this._$dispatchEvent("onqueuestart",t);this.staffReadSwitch=0},x:function(t,e,i){this.__
doClearQueueCheck();
this.__state=I.NULL;this._$dispatchEvent(i,t);this.__nim.disconnect()}};
return function(t,i){c._$info("__cbAllocateKefu",{data:t,msg:i});if(this.__
ktimer)this.__ktimer=window.clearTimeout(this.__
ktimer);var a=e[t.code];
if(n._$isFunction(a))a.call(this,t,i);else e.x.call(this,t,i,"onkefuerror")}}();
h.__clearUnreadMessage=function(t){if(this._$canSendMessage())if(0!=$["client_read"]["switch"]){var e=this.__getDataInCache("yunxin-user");this.__nim.sendCustomSysMsg({to:e.exchange[0],cc:!0,filter:!0,scene:"p2p",content:JSON.stringify({cmd:500,sessionid:t}),done:function(t,e){if(t)c._$error("_$clearUnreadMessage",
t)}})}};h.__doCheckQueue=function(){var t=this.__getDataInCache("yunxin-user");this.__nim.sendCustomSysMsg({cc:!0,filter:!0,scene:"p2p",to:t.exchange[0],content:JSON.stringify({cmd:16,deviceid:this.__getDeviceID()}),done:function(t,e){if(t)c._$error("doCheckQueue",n._$merge({cmd:16},
t))}})};h.__doClearQueueCheck=function(){if(this.__qtimer)this.__qtimer=window.clearInterval(this.__qtimer)};
h._$quitQueue=function(t){this.__doClearQueueCheck();var e=this.__getDataInCache("yunxin-user");
this.__nim.sendCustomSysMsg({cc:!0,
filter:!0,scene:"p2p",to:e.exchange[0],content:JSON.stringify({cmd:26,sessionid:t}),done:function(t,e){if(t)c._$error("quitQueue",n._$merge({cmd:26},t))}})};h.__getSessionConfig=function(t){this.__sendCustomSysMsg({content:{cmd:11059,sessionid:t}})};h.__onReceiveInstr=function(){var t=function(t,e){var i={image:"file",audio:"file",video:"file",
file:"file"};var e={type:t.type,time:e.time,msgIdClient:this._$getSessionID()+"#"+e.idClient,fromUser:e.fromUser,from:{id:-72},id:e.idServer,sid:e.isOffline?-100:this._$getSessionID(),to:{id:e.to}};
return n._$merge(e,{content:i[t.type]?t.attach:t.attach.msg})};var e={"-1000":function(t,e){var i=1==t.fromtype?!
0:!
1;
delete t.fromtype;var a=this.__getDataInCache("yunxin-kefu")||{};
if(1!=
a.stafftype&&t.sessionid==a.sessionid)this.__nim.sendCustomSysMsg({cc:i,filter:!0,to:e.from,scene:"p2p",content:JSON.stringify(t),done:function(t,e){if(t)c._$error("recieveInstr",n._$merge({cmd:1e3},t))}})},2:function(t,e){if(this.__botCache&&this.__botCache.length>0)n._$merge(t,{bot:this.__botCache});
if(0==b){b=1;this._$dispatchEvent("onshuntstatus",t)}this.__getSessionConfig(t.sessionid);
this.__cbAllocateKefu(t,e)},90:function(t,e){if(t.entries){this.__isShuntFlow=!0;var i=JSON.parse(t.entries),a=this.__getDataInCache("yunxin-kefu");
this._$dispatchEvent("onshunt");
this._$dispatchEvent("shuntentries",{entries:i,from:n._$merge(this._$
getKefu(),{portrait:t.iconurl}),label:t.message})}},6:function(t,e){if(t.sessionid==this.__sessionId){var i=this.__getDataInCache("yunxin-kefu");var n=this.__evalBox[t.sessionid];
var a={closeReason:t["close_reason"],evaluate:t.evaluate,message:t["message"],session_end_switch:i.shop.setting.session_end_switch,session_timeout_switch:i.shop.setting.session_timeout_switch};this._$keepConnection=t.keep_connection;this.__doDisConnect(a,this._$keepConnection);if(1==t.evaluate&&!
n)this._$dispatchEvent("oneval",{autoPopup:t["evaluation_auto_popup"],messageInvite:this._$getEvaluation().messageInvite})}},50:function(t,e){this._$
dispatchEvent("oneval",{autoPopup:t["evaluation_auto_popup"],messageInvite:t.message})},15:function(t,e){if(200!=t.code){if(302==t.code||303==t.code)this._$dispatchEvent("onqueuefail",t);this.__doClearQueueCheck()}else this._$
dispatchEvent("onqueuechange",{showNum:t.showNum,before:t.before,inqueueNotify:t.inqueueNotify})},17:function(t,e){},60:function(t,e){var i=_._$
parse(t);
n._$forEach(i,function(t){var i=this.__getMessageBody(e);i.id=i.msgIdClient;this._$dispatchEvent("onmessage",n._$merge(i,t))},this)},70:function(t,e){this._$
dispatchEvent("onovertime",{msg:t.message,time:t.timestamp})},95:function(t,e){this._$
setSessionID(t.sessionid);
this.__sesTokenMap[t.sessionid]=t.session_token;
this.__sessionId=t.sessionid;var i=this.__getDataInCache("yunxin-kefu");
this.__updateKefuName(t.staffname);
var n=t.iconurl;if(~n.indexOf("nos.netease.com")||~n.indexOf("nosdn.127.net"))n+="?imageView&type=png|imageView&thumbnail=76y76&axis=5";
this.__updataKefu("iconurl",n);this._$dispatchEvent("ontransferresult",{sessionId:t.sessionid,staffId:t.staffid,staffName:t.staffname||"",welcome:t.message||"",session_transfer_switch:i.shop.setting.session_transfer_switch})},72:function(e,i){var a={question:function(e,i){if(!S(i.idClient)){e.type="text";this._$dispatchEvent("onmessage",
t.call(this,e,i))}},robot:function(t,e){var i={id:t.attach.msgidClient,evaluation:t.attach.evaluation};if(t.attach.evaluation_content)i.evalcontent=t.attach.evaluation_content;
if(!
t.attach.floating_layer_mark||t.attach.floating_layer_mark!=this.__floatingLayerMark)this._$dispatchEvent("onrobotanswerevalresult",i)}};n._$merge(i,{fromUser:1});
if(a[e.type])a[e.type].call(this,e,i);else this._$dispatchEvent("onmessage",t.call(this,e,i))},134:function(t,e){var i={type:"push-msg",msgType:e.type,msgSessionId:e.ext.msgSessionId,content:e.text,from:this._$getKefu(),id:e.idServer,msgIdClient:e.idClient};var a=1,s=1;if(!
this._$chatNoKefu){if(!document.hidden&&!E()&&1==this.__
sdkWindowStatus){this._$
sendPushMsgStatus(2,[i.msgSessionId]);
s=0}if(1==this._$
hasList){this._$
dispatchEvent("onmessage",i);a=0}this._$dispatchEvent("onpushmessage",n._$merge(i,{append:a,sdkAppend:s}))}},203:function(t,e){var i=this.__
getMessageBody(e);
this._$dispatchEvent("receivethirdorder",n._$merge(i,{content:t}))},104:function(t){var e=this.__getDataInCache("yunxin-user");if(t.fromIp==e.ip)this._$
dispatchEvent("oncansendfile",{timestamp:t.timestamp,result:t.result})},205:function(t){var e=t.template.id;if("order_list"==e||"card_layout"==e)this._$
dispatchEvent("onmorebotlist",null,t);else if("pair"==e)this._$
dispatchEvent("onmorebotdetail",null,t)},41:function(t){var e=t.message;if(0==t.result){this._$dispatchEvent("onusererror",e);if(this.__
ktimer)this.__ktimer=window.clearTimeout(this.__
ktimer)}},65:function(t,e){var e={type:"rich",time:e.time,msgIdClient:e.idClient,fromUser:e.fromUser,from:this._$getKefu(),id:e.idServer,sid:e.isOffline?-100:this._$getSessionID(),to:{id:e.to},content:t.content};this._$dispatchEvent("onmessage",e)},57:function(t,e){$[t.type]=t.config;
this._$dispatchEvent("onconfig",t)},23:function(t,e){var i={"switch":t["switch"],sendingRate:t.sendingRate};$["input_assciation_permisson"]=i;
var n={sessionid:t.sessionid,"switch":t["switch"],sendingRate:t.sendingRate,type:"input_assciation_permisson"};this._$dispatchEvent("onconfig",n)},25:function(t,e){this._$
dispatchEvent("oninputassociation",t)},42:function(t,e){this._$
dispatchEvent("onmsgtrashed",t)},405:function(t,e){var i=t.split_index;
var a=t.split_id;var s=t.split_content||"";var o=t.msg_id||"";if(!
this.__splitmsgCache[a])this.__
splitmsgCache[a]={};
this.__splitmsgCache[a][i]=s;
if(t.split_count==n._$objectSize(this.__splitmsgCache[a])){var r="";for(var _=0;_<
t.split_count;_++){var d=this.__
splitmsgCache[a][_]?
this.__splitmsgCache[a][_]:"";
r+=d}var c=e;c.content=f._$b642str(r);
c.idClient=o;this.__onReceiveInstr(c);
delete this.__splitmsgCache[a]}},87:function(t,e){if(t.auditResult)var i={trashWords:t.trashWords};
this._$dispatchEvent("onleavesend",{error:i})},121:function(t,e){var i,a=[];
var s={title:t.title,
desc:t.desc,picture:t.picture,url:t.url,note:t.note,activity:t.activity,activityHref:t.activityHref,productType:t.productType,showCustomMsg:t.showCustomMsg,orderId:t.orderId,orderTime:t.orderTime,orderSku:t.orderSku,orderCount:t.orderCount,orderStatus:t.orderStatus,payMoney:t.payMoney,price:t.price,template:t.template,product:{tags:[]}};
if(t.tags){if(n._$isArray(t.tags))i=t.tags;else try{i=JSON.parse(t.tags)}catch(o){}if(n._$isArray(i)){if(i.length>3)i=i.slice(0,3);n._$forEach(i,function(t){if(t.label){if(t.label.length>8)t.label=t.label.substr(0,8);if(t.data)t.data=JSON.stringify(t.data);
a.push(t)}},this);n._$merge(s.product,{tags:a})}}this._$
dispatchEvent("onproductinfo",{id:e.idClient,msgIdClient:e.idClient,sid:t.sessionid,fromUser:0,data:s,type:"productinfo",from:this._$getKefu()})},211:function(t,e){this.__
botCache=t.bot||[];
this._$dispatchEvent("onbotentry",t.bot)},9:function(t){this._$dispatchEvent("onmessagereceipt",t)},28:function(t){t.msgIdClient=t.msgidClient;this._$dispatchEvent("onmsgwithdraw",t)},11060:function(t,e){this.__
setDataInCache("evaluation",n._$merge(JSON.parse(t.evaluation||"{}"),{id:n._$uniqueID(),sid:t.sessionid}))}};e["17"]=e["6"];
return function(t,i,a){c._$info("__onReceiveInstr",{msg:t,cmd:a});var s=t.content||"";try{s=JSON.parse(s);
if(i&&!
i[s.cmd]&&!
a)return}catch(o){}var r=e[s.cmd||a];
if(n._$isFunction(r))r.call(this,s,t)}}();
h.__cbReceiveMessage=function(){var t={image:"file",audio:"file",video:"file"};var e={60:!
0,90:!
0,95:!
0,72:!
0,203:!
0,205:!
0,65:!
0,121:!
0};
var i={2:134};
return function(a,s){v&&v("[recieveMessage] msg:%O",a);if("custom"!=
a.type)if(!/##/
gi.test(a.idClient)){c._$info("recievemessage",a);v&&v("[dispatch message]");
this._$dispatchEvent("onmessage",{type:a.type,time:a.time,id:a.idServer,sid:s?-100:this._$getSessionID(),content:a[t[a.type]||a.type],from:s?{id:-100}:this._$
getKefu(),to:{id:a.to},msgIdClient:a.idClient})}else{var o=a.idClient.split("##"),r=o[0],_=o[1];
n._$merge(a,{ext:{type:_,msgSessionId:r}});this.__onReceiveInstr(a,e,i[a.ext.type])}else{a.isOffline=s;this.__onReceiveInstr(a,e)}}}();
h.__doDisConnect=function(t,e){this.__
state=I.NULL;var i=n._$merge({time:+new Date},t);this.__delDataInCache("yunxin-kefu");
this._$dispatchEvent("onfinish",i);if(1!=
e)this.__nim.disconnect();
this.__clearPrdStorage()};
h.__onDisConnect=function(t){c._$error("__onDisConnect",t);this.__doClearQueueCheck();
this.__delDataInCache("yunxin-kefu");
if(this.__
xtimer)this.__xtimer=window.clearInterval(this.__
xtimer);if(this.__
offlineAckTimer)this.__offlineAckTimer=window.clearInterval(this.__
offlineAckTimer);if(this.__
state!==I.NULL){this.__
state=I.NULL;if(t.kicked)this._$
dispatchEvent("onkickout");
else this._$dispatchEvent("ondisconnect")}};
h.__doCheckUserChange=function(){var t=this.__getUserInfo(),e=this;if(t)if(this.__last!=t.source){this.__last=t.source;var i=this.__getDataInCache("yunxin-user"),a=i.exchange[0];
this.__nim.sendCustomSysMsg({to:a,cc:!0,filter:!0,scene:"p2p",content:JSON.stringify({cmd:52,foreignid:t.uid,userinfo:JSON.stringify(this.__
getForeignInfo(t)),authToken:t.authToken||0}),done:function(t,e){if(t)c._$error("doCheckUserChange",n._$merge({cmd:52},t))}});v&&v("[reportCrm] content:%O",{cmd:52,foreignid:t.uid,userinfo:this.__getForeignInfo(t),authToken:t.authToken||0})}};h.__setRemoteStorage=function(t,i){var a={userInfo:function(){var a=e._$text2type(t.userInfo,"json");
a=n._$object2query(a);
var s="X-"+i.toUpperCase()+"-YSF-INFO";window.localStorage.setItem(s,a)},orderInfo:function(){var a=e._$text2type(t.orderInfo,"json");a=n._$object2query(a);
var s="X-"+i.toUpperCase()+"-YSF-PRODUCT";window.localStorage.setItem(s,a)},analyticInfo:function(){var a=e._$text2type(t.analyticInfo,"json");a=n._$object2query(a);
var s="X-"+i.toUpperCase()+"-YSF-WEBANALYTICS";window.localStorage.setItem(s,a)}};if(t)n._$loop(t,function(t,e){var i=a[e];
if(i&&n._$isFunction(i))i.apply(this)}._$
bind(this))};
h._$getVisitor=function(){var t=this.__getDataInCache("yunxin-user");
return{id:t.account}};
h._$getAppkey=function(){return g.appkey||this.__getDataInCache("corp-appkey")};
h._$getPrdKey=function(){return"X-"+this._$getAppkey().toUpperCase()+"-YSF-PRODUCT"};
h._$getKefu=function(){var t=this.__getDataInCache("yunxin-kefu");if(!
t)return{};
else return{id:t.staffid,portrait:t.iconurl,nickname:t.staffname}};h._$getEvaluation=function(){return this.__getDataInCache("evaluation")||{}};
h._$getSessionID=function(){return this.__sessionId||(this.__getDataInCache("yunxin-kefu")||{}).sessionid};
h._$getRobotSessionID=function(){return this.__robotSessionId||""};
h._$setSessionID=function(t){(this.__getDataInCache("yunxin-kefu")||{}).sessionid=t};
h.__updateKefuName=function(t){(this.__getDataInCache("yunxin-kefu")||{}).staffname=t};
h.__updataKefu=function(t,e){var i=this.__
getDataInCache("yunxin-kefu")||{};
i[t]=e};
h._$isRobot=function(){var t=this.__getDataInCache("yunxin-kefu")||{};
return 1==t.stafftype||1==t.robotInQueue};h._$connect=function(t,e,i){if(window.nim){window.nim.disconnect();delete window.nim}if(t.appkey||t.token){if(this.__state===I.NULL){this.__state=I.INIT;this.__doResetTimeout();
t=t||{};
this.__tmpOnly2kefu=e;if(i)this._$
dispatchEvent("reconnect");
if(!
t.token)this.__doCreateYXUser(t.appkey);
else this.__cbCreateYXUser(t.appkey,t)}}else this._$dispatchEvent("onusererror")};
h._$pushMsgConnect=function(t,e,i){if(window.nim){window.nim.disconnect();delete window.nim}this.__doSendRequest("user-push-add",{data:{deviceid:this.__getDeviceID(),appkey:t||""},onload:function(a){a.appKey=t;a.exchange=a.exchange||[-1];
a=n._$merge({},a,this.__nopt,{onerror:function(){},onconnect:function(){this._$sendPushMsg(e,i)}._$bind(this),ondisconnect:function(){},oncustomsysmsg:function(){}});
window.nim=this.__nim=new NIM(a)}._$
bind(this)})};
h._$isInQueue=function(){return!!this.__qtimer};h._$canSendMessage=function(){return this._$isInQueue()||this.__state===I.CONNECTED};
h._$isDelay=function(){return!!this.__delay};h._$sendMessage=function(){var t=function(t){var e={c:t.content.file,m:"sendFile"};var i=t.content.file;if(n._$isString(i))if(0===i.indexOf("data:image"))e.r="dataURL";
else{e.r="file";
e.c={url:i,size:1,md5:i,ext:"png",w:1,h:1}}else if("INPUT"===i.tagName)e.r="fileInput";
else if(i.md5)e.r="file";
else e.r="blob";return e};var e=function(t){var e={"crm-thirdorder":202};
n._$merge(t.content,{cmd:e[t.type]});
var i={m:"sendCustomMsg",r:"content",c:JSON.stringify(t.content)};
return i};var i={image:t,audio:t,video:t,file:t,geo:{m:"sendGeo",r:"geo"},text:{m:"sendText",r:"text"},"crm-thirdorder":e};return function(t){if(this._$canSendMessage()){var e=i[t.type];if(n._$isFunction(e))e=e.call(this,t);if(e){var a=this.__getDataInCache("yunxin-user"),s=n._$merge({cc:!0,filter:!0,scene:"p2p",commonUpload:!0,to:a.exchange[0]},
t);s[e.r]=e.c||s.content;
if("content"!=
e. R) delete s.content; c._ $info ("_ $sendMessage", s); return this. __nim [e.m] (s)} else (t.done | | m) ({code: - 2, message: d.COMM_MSG_TYPE_NOT_SUPPORTED | | "Message type not supported"})} else (t.done | | m) ({code: - 1, message: d.COMM_LONG_CONN_NOT_ESTABLISHED | | "Long connection not established"})} (); h. _ $updateEvaluate=function (t, e, i, n, a) {t=parseInt (t, 10);
var s=this.__sesTokenMap[t];
if(s){this.__evalBox[t]=!0;y.push(t);
this.__doSendRequest("user-evaluate",{data:{appkey:this._$getAppkey(),sessionid:t,session_token:s,evaluation:e,fromtype:"web",remarks:encodeURIComponent(i),tagList:encodeURIComponent(JSON.stringify(n))},onload:function(){var n={sid:t,
value:e,name:a,remarks:i};if(window.localStorage)window.localStorage.setItem(("YSF-SATISFY-"+this._$getAppkey()+"-"+t).toUpperCase(),JSON.stringify(n))},onerror:function(){c._$error("_$updateEvaluate",{sid:t,value:e,remarks:i,tagList:n});window.setTimeout(this._$
updateEvaluate._$bind(this,t,e,i,n,a),1e4)}._$bind(this)})}};
h._$syncRobot=function(t){if(this._$canSendMessage()){var e=this.__getDataInCache("yunxin-user"),i=this.__getDataInCache("yunxin-kefu"),a=n._$merge({cmd:61},t);this.__nim.sendCustomSysMsg({to:e.exchange[0],cc:!0,filter:!0,scene:"p2p",content:JSON.stringify(a),done:function(e){if(e){window.setTimeout(this._$syncRobot._$bind(this,
t),1e4);c._$error("syncRobot",n._$merge({cmd:61},e))}}._$bind(this)})}};
h._$syncRobotEx=function(t){var e={matched_question:"question",id:"questionid"};var i=function(t){var i={};
for(var n in t)if(e[n])i[e[n]]=t[n];
else i[n]=t[n];
return i};if(this._$
canSendMessage()){var a=this.__getDataInCache("yunxin-user"),s=this.__getDataInCache("yunxin-kefu"),o=n._$uniqueID(),r=n._$merge({cmd:63},i(t),{msgIdClient:o});
this.__nim.sendCustomSysMsg({to:a.exchange[0],cc:!0,filter:!0,scene:"p2p",content:JSON.stringify(r),done:function(e,i){if(!e)y.push(o);
else{window.setTimeout(this._$syncRobotEx._$bind(this,t),1e4);c._$error("syncRobotEx",n._$merge({cmd:63},e))}}._$bind(this)})}};
h._$action=function(){var t={kefu:function(t){if(this._$isRobot())this.__cbConnect2Yunxin({type:1})}};
return function(e,i){var a=t[e];
if(n._$isFunction(a)){c._$info("_$action",{action:e,data:i});a.call(this,i)}}}();
h._$sendOfflineMessage=function(t){var e=this.__getDataInCache("yunxin-user");this.__nim.sendCustomSysMsg({cc:!0,filter:!0,scene:"p2p",to:e.exchange[0],content:JSON.stringify({cmd:83,message:t.message||"",mobile:t.mobile||"",email:t.email||"",customFields:JSON.stringify(t.customFields||[])}),done:function(t){if(t){c._$error("_$sendOfflineMessage",
t);this._$dispatchEvent("onleavesend",{error:t})}}._$
bind(this)})};
h._$sendSelectShunt=function(t){var e={type:1};
n._$merge(e,t);b=0;this.__cbConnect2Yunxin(e)};
h._$sendKefuHeart=function(t){var e=this,i=window.globalSetting.heartbeatCycle||8e3;var n=this.__getDataInCache("yunxin-user");
var a=function(){if(t)e.__nim.sendCustomSysMsg({cc:!0,filter:!0,to:n.exchange[0],scene:"p2p",content:JSON.stringify({cmd:-1e3,sessionid:t}),done:function(t,n){if(e.__timeout)clearTimeout(e.__timeout);
e.__timeout=setTimeout(function(){a()},i)}})};a()};
h.__getProductInfo=function(){if(window.localStorage){var t=this.__getDataInCache("yunxin-user");var e="X-"+t.appKey.toUpperCase()+"-YSF-PRODUCT",i=localStorage.getItem(e);
return null==i?null:n._$query2object(i)}};
h.__setAckDvc=function(t){if(window.localStorage){var e="YSF-"+t.toUpperCase()+"-DVCTIME";window.localStorage.setItem(e,+new Date)}};
h.__setAckTime=function(t){if(window.localStorage){var e="YSF-"+t+"-MSGTIME";if(!
document.hidden&&!E()&&1==this.__
sdkWindowStatus)window.localStorage.setItem(e,+new Date)}};
h.__confirmAckDvc=function(t){if(window.localStorage){var e="YSF-"+t.toUpperCase()+"-DVCTIME",i=this.__getDeviceID(),s=2100,o=+new Date;if(Math.abs(o-Number(window.localStorage.getItem(e)))>s){var r=a._$md52hex(n._$uniqueID()+"-"+ +new Date);window.localStorage.setItem(i,r)}}};h._$sendPrdMsg=function(){var t=this;
if(window.localStorage){var e=this._$getPrdKey(),i=localStorage.getItem(e),a="YSF-PRODUCT-"+this.__sessionId+"-last",s=localStorage.getItem(a);
if(!
i)return;var o=this.__getProductInfo();
if(o.pageId!=
g.pageId)return;if("1"==o.sendByUser){var r={id:n._$uniqueID(),type:"pre-product",fromUser:1,from:{id:-72},content:o};t._$dispatchEvent("onmessage",r)}else{if(i==s)return;
this._$doSendPrdMsg(o)}}};
h._$doSendPrdMsg=function(t){var e=this.__getDataInCache("yunxin-user"),i=this,a=this._$getPrdKey(),s=localStorage.getItem(a);
lastPrdKey="YSF-PRODUCT-"+this.__sessionId+"-last",lastPrd=localStorage.getItem(lastPrdKey);
if(t)i.__nim.sendCustomSysMsg({cc:!0,filter:!0,to:e.exchange[0],scene:"p2p",content:JSON.stringify(n._$merge({cmd:121},t)),done:function(e,a){if(!e){window.localStorage.setItem(lastPrdKey,s);var o=n._$merge({id:n._$uniqueID(),type:"productinfo",fromUser:1,from:{id:-72},time:a.time},t);if("1"==t.sendByUser)n._$merge(o,{read:0});
i. _ $dispatchEvent ("onmessage", o)} else {i._ $dispatchEvent ("onproducterror", {type: "product error", content: d.COMM_PRODUCT_LINK_PARAM_ERR | | "Product link parameter error"}); c._ $error ("sender3rdProductsInfo", n._ $merge ({cmd: 121}, e))}}})}; h. __clearPrdStorage=function() {var t=this. _ $getP rdKey(); window.localStorage.removeItem (t);
var e=/^YSF-PRODUCT-\d+-last$/;for(var i in window.localStorage)if(e.test(i))window.localStorage.removeItem(i)};
h._$sendPushMsg=function(t,e){t=t||[];
var i=this.__getDataInCache("yunxin-user");
for(var a=0;
a<t.length;a++){var s=1==e?
{cmd:133,deviceid:this.__getDeviceID(),msgId:t[a]}:{cmd:133,deviceid:this.__getDeviceID(),batchId:t[a]};
this.__nim.sendCustomSysMsg({cc:!0,filter:!0,to:i.exchange[0],scene:"p2p",content:JSON.stringify(s),done:function(t,e){if(t)c._$error("sendPushMsg",n._$merge({cmd:133},t))}})}};h._$sendPushMsgStatus=function(t,e){var i=this.__
getDataInCache("yunxin-user");
for(var a=0;
a<e.length;a++)this.__nim.sendCustomSysMsg({cc:!0,filter:!0,to:i.exchange[0],scene:"p2p",content:JSON.stringify({cmd:135,msgSessionId:e[a],status:t}),done:function(t,e){if(t)c._$error("sendPushMsgStatus",n._$merge({cmd:135},t))}})};h._$checkCanSendFile=function(t){var e=this.__getDataInCache("yunxin-user");
this.__nim.sendCustomSysMsg({to:e.exchange[0],cc:!0,filter:!0,scene:"p2p",content:JSON.stringify({cmd:103,fromIp:e.ip,timestamp:t.timestamp}),done:function(t){if(!t);else c._$error("checkCanSendFile",n._$merge({cmd:103},t))}._$bind(this)})};
h.__sendMessageByContent=function(t,e,i){t.time=t.time||+new Date;
t.id=t.id||n._$uniqueID();
t.idServer=t.idServer||n._$uniqueID();
t.idClient=t.idClient||n._$uniqueID();
this._$dispatchEvent("onmessage",{type:"text",time:t.time,id:t.idServer,content:e,fromUser:1,from:i||this._$getKefu(),to:{id:t.to},msgIdClient:t.idClient})};h._$getMoreBotList=function(t){var e=this.__getDataInCache("yunxin-user");this.__nim.sendCustomSysMsg({to:e.exchange[0],cc:!0,filter:!0,scene:"p2p",content:JSON.stringify({cmd:204,
target:t.template.action.target,params:t.template.action.params}),done:function(e){if(!e);else{this._$
dispatchEvent("onmorebotlist",e,t);c._$error("getMoreBotList",n._$merge({cmd:204},e))}}._$bind(this)})};
h._$getMoreBotDetail=function(t){var e=this.__getDataInCache("yunxin-user");this.__nim.sendCustomSysMsg({to:e.exchange[0],cc:!0,filter:!0,scene:"p2p",content:JSON.stringify({cmd:204,target:t.target,params:t.params}),done:function(t){
if(!
t);else{this._$
dispatchEvent("onmorebotdetail",t,{template:{id:"pair"}});
c._$error("getMoreBotDetail",n._$merge({cmd:204},t))}}._$bind(this)})};
h._$evalRobotAnswer=function(t){var e=this.__getDataInCache("yunxin-user");this._$dispatchEvent("onrobotanswerevalresult",{id:t.id,evaluation:t.evaluation,evalcontent:t.evalcontent||""});this.__nim.sendCustomSysMsg({to:e.exchange[0],cc:!0,filter:!0,scene:"p2p",content:JSON.stringify({cmd:64,
msgidClient:t.msgIdClient,evaluation:t.evaluation,floating_layer_mark:this.__floatingLayerMark}),done:function(t){if(!t);else c._$error("evalRobotAnswer",n._$merge({cmd:64},t))}._$bind(this)})};
h._$evaluationContent=function(t){var e=this.__getDataInCache("yunxin-user");this._$dispatchEvent("onrobotevalcontentresult",{id:t.id,evalcontent:t.evalcontent});if(""!=
t.evalcontent)this.__nim.sendCustomSysMsg({to:e.exchange[0],cc:!0,filter:!0,scene:"p2p",content:JSON.stringify({cmd:66,msgidClient:t.msgIdClient,evaluation_content:t.evalcontent,floating_layer_mark:this.__floatingLayerMark}),done:function(e){if(!e)this._$dispatchEvent("onrobotevalcontentDone",t.id);else c._$error("evaluationContent",
n._$merge({cmd:66},e))}._$bind(this)})};
h._$getSeqOfHistoryLoad=function(){var t=this._$getAppkey().toUpperCase(),e="YSF-"+t+"-HISTORY-SEQ",i=localStorage.getItem(e);
try{i=JSON.parse(i)}catch(s){i=null}if(!i||g.fid&&i.relatedFid&&i.relatedFid!=g.fid){i={value:a._$md52hex(n._$uniqueID()+"-"+ +new Date),relatedFid:g.fid};localStorage.setItem(e,JSON.stringify(i))}else if(i&&!i.relatedFid&&g.fid){i.relatedFid=g.fid;
localStorage.setItem(e,JSON.stringify(i))}return i.value};
h._$sendInputContent=function(t){var e=this.__getDataInCache("yunxin-user");this.__nim.sendCustomSysMsg({to:e.exchange[0],cc:!0,filter:!0,scene:"p2p",content:JSON.stringify({cmd:58,sessionid:t.sessionId,msgType:"text",content:t.content,editTime:+new Date,sendingRate:this._$getConfig("client_input").sendingRate}),done:function(t){if(!
t);else c._$error("sendInputContent",n._$merge({cmd:58},t))}._$bind(this)})};
h._$assoSendInputContent=function(t){var e=this.__getDataInCache("yunxin-user");this.__nim.sendCustomSysMsg({to:e.exchange[0],cc:!0,filter:!0,scene:"p2p",content:JSON.stringify({cmd:24,sessionid:t.sessionId,content:t.content,msgType:"text"}),done:function(t){if(!t);else c._$error("input_assciation_permisson",n._$merge({cmd:24},
t))}._$bind(this)})};
h._$getConfig=function(t){if(t)return $[t];else return $};h._$setConfig=function(t,e){if(t&&e)$[t]=e};
var w=p._$allocate();
c._$batch(w,["__init","__doCreateYXUser","__cbCreateYXUser","__cbConnect2Yunxin","__doCheckKefuFail","__doCheckQueue","__doClearQueueCheck","__doDisConnect","__updateKefuName","__sendMessageByContent","__botQuickEntry","__sender3rdProductsInfo","__confirmAckDvc","_$setSessionID","_$connect","_$pushMsgConnect","_$updateEvaluate","_$syncRobot"
,"_$syncRobotEx","_$sendOfflineMessage","_$sendSelectShunt","_$sendPrdMsg","_$sendPushMsg","_$sendPushMsgStatus","_$sendThirdOrder","_$checkCanSendFile","_$getMoreBotList","_$getMoreBotDetail","_$evalRobotAnswer","_$sendInputContent"]);
c._$batch(w,["__getDeviceID","__doResetTimeout","__getForeignInfo","__getProductInfo","__getNextTimeout","__getMessageBody","_$getKefu","_$getAppkey","_$getSessionID","_$getEvaluation","_$getVisitor","_$isDelay","_$isRobot","_$isInQueue","_$canSendMessage"],"after");
return w},
"e4f0b0b7857ed3c1e2d0a46ba5b670d6","5fb495f256a5dcde2a92e5fe919a6422","be567474249a271e4786c144ccf5f75a","fbbf6ddc0634989027d138f4ffd4b78b","d8694785278ea23e9444192ffae00916","dbf5521d3d1c3fc354b111366f669416","948cfd3d7899a2b3fc0e88dc2e0d1a90","bad45afa5ce71bf8cd6e713026c82970","4d3be81e509943f25257cbc97abc448d","af3f2da7bbdae6f4919bfa7e84c55c4e",
"c016c209845c99608f6b8fbdad4ee39b","0a031608798084dd303ad76241dcc09c","f5da7bdddddad5f42b7c73b364e10a1f");
I$("81e4c9c4999784e360c6a2b666dc5320",function(t,e,i,n,a,s,o,r,_,d){_._$$
FileTransfer=t._$klass();
d=_._$$FileTransfer._$extend(a._$$Abstract);
d.__init=function(){this.__super()};
d.__reset=function(t){this.__super(t);this.__fopt=i._$merge({node:null,accept:"*",multiple:!1,onchange:this.__onFileSelect._$bind(this)},t);if(this.__
fopt.node){this.__
fileSel=s._$bind(this.__
fopt.node,this.__fopt);this._$addEvent("oncansendfile",this.__onCanSendFile._$bind(this))}};
d.__destroy=function(){if(this.__fileSel)this.__fileSel._$recycle();this.__super()};
d.__onFileSelect=function(t){this.__form=t.form;var i=e._$get(t.id),n=i.files;if(void 0===n){n=[];n.push(i)}this.__
fModal=o._$$FileModal._$allocate({parent:document.body,canSend:this.__canSend,files:n,onok:this.__onOk._$bind(this),oncancel:this.__onCancel._$bind(this)});
this.__canSend&&delete this.__canSend},d.__onOk=function(t,e){this._$
dispatchEvent("onsend",e)};d.__onCancel=function(){this.__form.reset()};
d.__checkCanSendFile=function(){this.__timestamp=i._$uniqueID();r._$checkCanSendFile({timestamp:this.__timestamp})};
d.__onCanSendFile=function(t){this.__canSend=!!t.result;if(this.__
fModal)this.__fModal._$dispatchEvent("oncansendfile",{result:this.__canSend})}},"e4f0b0b7857ed3c1e2d0a46ba5b670d6","5fb495f256a5dcde2a92e5fe919a6422","fbbf6ddc0634989027d138f4ffd4b78b","be567474249a271e4786c144ccf5f75a","8fe733a225a830dc6b1da5866dcaf23c","9733787c25ceca396cb6e8dcce07ee63","0601a0c5ba07e512639f37a3e3c53ba0",
"cc7bc4a298ada69b7bf2d8371bd44932");
I $("fc5aed51c0df9784c68a9c2b6896c8ea", '<textarea name="ntp" id="#<editBody>"> n "u icon iconfont icon photo"
></i></label> n<label class="file_label j-fflag" title="Send File"><i class="u-icon iconfont icon-uploadfilesx1"></i></label> n<label class="evaluate_label j-fflag" title="Satisfaction Evaluation" data action="robotcomment" data robot=1><i class="u-icon iconfont icon-star linex"></i></label> n<label class="capture_label j-ffl ag" title="Screenshot"
><i class="u-icon iconfont icon screenshot"></i></label> n n<div class="textarea j richflag"> n<div class="textarea mn j flag"></div> n</div> n<button type="submit" class="u-btn u-btn-send j-flag">Send</button> n<form class="form j flag"></form> n<div class="disabled"></div> n</div> n</t extarea> n<textarea name="jst" id="#<editStyle>"
>\n <head>\n <meta charset="utf-8"/>\n <style>\n html,body{cursor:text;
font-size:14px;font-family:Arial;word-wrap:break-word;}\n html,body,p{margin:0;
padding:0;border:0}\n html{width:100%;
height:100%;overflow:hidden;}\n body{line-height:16px;
padding:8px 16px 0 16px;white-space:pre-wrap;}\n img{max-width:90%;}
\n .portrait_icon{\n width: 24px;\n height: 24px;\n vertical-align: middle;\n display: inline-block;\n }\n ${css}\n </style>\n </head>\n <body contenteditable="true"></body>\n</textarea>\n<textarea name="txt" id="#<editToast>">\n <div class="tips-message">\n <i class ="u-icon u-icon-warning"
></i> n<h4></h4> n</div> n</textarea> n<textarea name="txt" id="#<editPlaceHolder>"> n<div class="empty">Please enter a message</div> n</textarea> n ');
I$("3d11bad61274f72cc4672369e4367f45",function(t,e,i){i.__insertLineBreak=function(t){t.execCommand("insertLineBreak")};
i.__insertHTML=function(t,e){t.execCommand("insertHTML",!1,e)};i.__unlink=function(t){t.execCommand("unlink",!1)};
i.__getTextContent=function(t){return t&&t.innerText||""};
i.__focusToEnd=function(t){t.focus();var e=t.getSelection();
if(e.rangeCount>0){var i=e.getRangeAt(0);i.selectNodeContents(t.document.body);
i.collapse(!
1)}};
i.__fixFocus=function(t){};
i.__collapse=function(t){try{t.getSelection().collapseToEnd()}catch(e){}};
i.__hasSelectionHack=function(){return!1};
i.__saveSelection=function(){};
i.__revertSelection=function(t,e){};
i.__getPosition=function(t){if(t){var e=t.getSelection(),i=e.getRangeAt(0);
if(i){var n=(i.getClientRects()||[])[0];if(n){var a=t.document,s=Math.max(a.body.scrollTop,a.documentElement.scrollTop),o=Math.min(a.body.clientHeight,a.documentElement.clientHeight);if(n.top>0&&n.top<o)return;
return{top:n.top+s,left:n.left}}}}}},"fbbf6ddc0634989027d138f4ffd4b78b","5fb495f256a5dcde2a92e5fe919a6422");
I$("2a3d8899990b1a57302aa0f0bb6e9ec4",function(t,e,i){if("trident"===t._$KERNEL.engine)I$("60118affcd9a7bf4e6e94d1eeb77ba2b",function(){i.__getPosition=function(t){};
i.__saveSelection=function(t){var e=t.document;if(t.getSelection){var i=t.getSelection();if(i.rangeCount>0)return i.getRangeAt(0)}else if(e.selection)return e.selection.createRange()};
i.__revertSelection=function(t,e){if(t&&e)if(e.select)e.select();
else if(t.getSelection){var i=t.getSelection();i.addRange(e)}}});
if("trident"===t._$KERNEL.engine&&t._$KERNEL.release>"6.0")I$("6d476928bfbe08d2eac3dcf42e33ce24",function(){i.__insertLineBreak=function(t){var e=t.getSelection().getRangeAt(0);var i=t.createElement("p");
i.innerText=" ";e.insertNode(i);
e.collapse(!
0)};
i.__insertHTML=function(t,i){var n=t.getSelection();
if(n.getRangeAt){var a=n.getRangeAt(0);if(a){var s=t.createElement("div");s.innerHTML=i;a.deleteContents();
e._$reverseEach(s.childNodes,function(t){a.insertNode(t)});
a.collapse(!
1)}}}});
if("trident"===t._$KERNEL.engine&&t._$KERNEL.release<="6.0")I$("d951de6b23d5aba225d22325eed7f522",function(){i.__insertLineBreak=function(t){var e=t.selection.createRange();e.pasteHTML("<p></p>");
e.collapse(!
1);
e.select()};
i.__insertHTML=function(t,e){var i=t.selection.createRange();
if(i.pasteHTML)i.pasteHTML(e)};
i.__hasSelectionHack=function(){return!0}});
if("webkit"===t._$KERNEL.engine)I$("71eea72ff887613a8f02c41936272629",function(){i.__fixFocus=function(t){var e=t.getSelection();if(!
(e&&e.rangeCount>0)){var i=t.document.createRange();i.selectNodeContents(t.document.body);
e.addRange(i);
i.collapse(!
1)}}});
if("gecko"===t._$KERNEL.engine)I$("49440cd1d2530c2c966f7161146cc696",function(){i.__insertLineBreak=function(t){t.execCommand("insertHTML",!1,"<p></p>")};
i.__getTextContent=function(){var t=/inline|cell/i;var i=function(e){
return!t.test(window.getComputedStyle(e,null).display||"")};var n=function(t,a){var s=t.childNodes;
if(0!==
s.length||t.nodeType!==Node.ELEMENT_NODE&&t.nodeType!==Node.TEXT_NODE){if(0===s.length)return;
if(a.length>0)if("\n"!==a[a.length-1]&&i(t))a.push("\n");
else a.push(" ");
e._$forEach(s,function(t){n(t,a)})}else a.push(t.textContent||t.nodeValue||"")};
return function(t){var e=[];n(t,e);return e.join("")}}()});
return i},
"e7be6ff9122e14c2be65196e9dffe066","fbbf6ddc0634989027d138f4ffd4b78b","3d11bad61274f72cc4672369e4367f45");
I$("3c211b458888deac6eb931a8a8aa5f66",function(t,e,i,n,a,s,o,r,_,d,c,l,f,u,h,m,p,g,v,b,$,y,S){var E="YSF_MSG_"+n._$uniqueID()+"_";
var I=n._$query2object(location.search.substring(1));
y._$$YSFEditor=t._$klass();
S=y._$$YSFEditor._$extend(a._$$Abstract);
S.__init=function(){this.__sopt={};
this.__ropt={};
this.__fopt={accept:"image/*",multiple:I.disableMultiple?!1:!0,onchange:this.__onImageSelect._$bind(this)};
this.__popt={clazz:"pc_portrait",btn:"portrait_btn",onSelect:this.__onPortraitSelect._$bind(this),onSendGIf:this.__onSendGIf._$bind(this)};
this.__eopt={visible:!
0,onload:this.__onIFrameLoaded._$bind(this)};
this.__aopt={onselectItem:this.__
onSelectRbItem._$bind(this)};
this.__switchInputAssociation=!1;this.__super()};
S.__reset=function(t){this.__super(t);if(window.globalSetting&&window.globalSetting.hiddenFile)e._$addClassName(this.__nfile,"f-dn");
this.__inputComposition=!1;e._$dataset(this.__
fopt.btn,
"log",t.log||"");this.__limit=parseInt(t.maxLength)||0;
This. __placeholder=t. placeholder | | (p.CHAT_INPUT | | "Input Message")+"...";
this.__doShowPlaceHolder();
var i=parseInt(t.maxHeight)||0;
if(i)this.__
range=[0,i];this.__sopt.css=t.css||"";this.__iframe=e._$createXFrame(this.__
eopt);this.__doInitDomEvent([[this.__nsender,"click",this.__doSubmitContent._$bind(this,{label:0})],[this.__nholder,"click",this._$focus._$bind(this)],[this.__nfile,"click",this.__onFileBtnClick._$bind(this)],[this.__nCapture,"click",this.__onCaptureClick._$bind(this)]]);
this._$addEvent("oncansendfile",this.__onCanSendFile._$bind(this));
document.addEventListener("click",this.__closeInputAssociation._$bind(this));
if(t.popt){this.__popt=n._$merge(this.__popt,t.popt);this.__popt.parent=this.__popt.parent||this.__body;if(t.editFrom)this.__
popt.newWebTrade=!0}this.__portrait=u._$$Portrait._$allocate(this.__
popt);this.__ftOpt={node:this.__
nfile,multiple:I.disableMultiple?!1:!0,onsend:this.__doSendFile._$bind(this)};
this.__fileTransfer=l._$$FileTransfer._$allocate(this.__
ftOpt);var a=window.setting.appkey;if(!
this.__ccache){this.__
ccache=f._$$Cache._$allocate({load_getCF:this.__getCFLists._$bind(this)});
this.__ccache._$getCF({data:{appKey:a}})}};
S.__getCFLists=function(t){this.__emojiLists=t;if(!
this.__emojiLists.length){if(this.__popt.newWebTrade){e._$setStyle("portrait_btn","display","none");this._phLabel=e._$getByClassName(this.__
body,
"photo_label")[0];
e._$setStyle(this._
phLabel,
"left","10px");
this._fileLabel=e._$getByClassName(this.__
body,
"file_label")[0];
e._$setStyle(this._
fileLabel,
"left","42px")}}else if(1==this.__emojiLists.length&&1!=this.__emojiLists[0].status&&this.__emojiLists[0].id==-1)if(this.__popt.newWebTrade){e._$setStyle("portrait_btn","display","none");this._phLabel=e._$getByClassName(this.__
body,
"photo_label")[0];
e._$setStyle(this._
phLabel,
"left","10px");
this._fileLabel=e._$getByClassName(this.__
body,
"file_label")[0];
e._$setStyle(this._
fileLabel,
"left","42px")}};
S.__destroy=function(){if(this.__scrollbar){this.__scrollbar._$recycle();delete this.__scrollbar}if(this.__
observer){this.__
observer.disconnect();
delete this.__observer}if(this.__
stimer){window.clearTimeout(this.__stimer);
delete this.__stimer}e._$remove(this.__
iframe);delete this.__iframe;delete this.__content;delete this.__range;this.__doHideToast();
this._$clear();
document.removeEventListener("click",this.__closeInputAssociation._$bind(this));
this.__super()};
S.__initXGui=function(){var t=s._$parseUITemplate(b);return function(){this.__seed_tst=t.editToast;this.__seed_hld=t.editPlaceHolder;this.__seed_cnt=t.editStyle;this.__seed_html=t.editBody}}();
S.__initNode=function(){this.__super();var t=e._$getByClassName(this.__
body,
"j-flag");
this.__richText=e._$getByClassName(this.__
body,
"j-richflag")[0];
this.__eopt.parent=t[1];
this.__ropt.container=t[1];
this.__fopt.btn=t[0];
this.__fopt.form=t[3];
this.__fopt.parent=this.__body;r._$bind(this.__
fopt.btn,this.__fopt);this.__nsender=t[2];
this.__ntoast=e._$html2node(s._$getTextTemplate(this.__seed_tst));
this.__nholder=e._$html2node(s._$getTextTemplate(this.__seed_hld));
this.__nfile=e._$getByClassName(this.__
body,
"j-fflag")[0];
this.__nEvaluate=e._$getByClassName(this.__
body,
"j-fflag")[1];
this.__nCapture=e._$getByClassName(this.__
body,
"j-fflag")[2];
if(!
this.__inputAssociation)this.__inputAssociation=new h(this.__
aopt).$inject(t[2],"before");
var i=e._$getByClassName(this.__
body,
"portrait_label")[0];
If (i) i. title=p.CHAT_SEND_EMOJI | | "Send emoticon";
if(this.__
Fopt. btn) this. __fopt. btn. title=p.CHAT_SEND_IMAGE | | "Send pictures"; if (this__
Nsender) this. __nsender. innerHTML=p.SENT | | "Send"; if (this__
Nfile) this. __nfile. title=p.CHAT_SEND_FILE | | "Send File"; if (this__
NEvaluate) this. __nEvaluate. title=p. EVAluATE_SATISFACTION | | "Satisfaction Evaluation"; if (this__
NCapture) this. __nCapture. title=p. CAPTURE | | "Screenshot"; if (!
window.OVERSEASG)this.__initNiuniuCapture()};
S.__initNiuniuCapture=function(){if(!this.niuniuCapture){this.niuniuCapture=window.
Capture&&window.Capture.getInstance({root:document.querySelector(".j-niuniu-capture"),langJson:window.setting.langJson,onDownload:this.__oncaptureDownload});this.niuniuCapture&&this.niuniuCapture.on("onCaptureImg",function(t){config={file:"data:image/jpg;base64,"+t};config.url=config.file;this.__doPreviewImage([config])}.bind(this));
this.niuniuCapture&&this.niuniuCapture.on("onCaptureImgError",function(t){this._$dispatchEvent("captureError",{type:"niuniucaptureerror",info:t})}.bind(this));
if(!
this.niuniuCapture||m._$isIE())e._$addClassName(this.__nCapture,"f-dn");
else e._$delClassName(this.__
nCapture,
"f-dn")}};
S.__oncaptureDownload=function(t){e._$createXFrame({visible:!1,src:t})};S.__getViewPort=function(){try{return this.__iframe.contentWindow}catch(t){}};
S.__getContext=function(){try{return this.__getViewPort().document}catch(t){}};
S.__getBody=function(){try{var t=this.__getContext().body;return"true"==t.contentEditable?t:null}catch(e){}};
S.__hasContent=function(){var t=this.__getBody(),e=this.__getTextContent(t).trim();
if(!
e)return u._$hasPortrait(t);
else return!!e};S.__getTextContent=function(t){return $.__getTextContent(t||this.__getBody())};
S.__doShowToast=function(t){this.__doHideToast();this.__body.appendChild(this.__
ntoast);this.__ntoast.getElementsByTagName("h4")[0].innerHTML=t;
this.__xtimer=window.setTimeout(this.__
doHideToast._$bind(this),5e3)};
S.__doHideToast=function(){if(this.__xtimer)this.__xtimer=window.clearTimeout(this.__xtimer);e._$removeByEC(this.__
ntoast)};S.__doShowPlaceHolder=function(t){t=t||this.__placeholder;this.__nholder.innerText=t;this.__eopt.parent.appendChild(this.__
nholder)};S.__doHidePlaceHolder=function(){e._$removeByEC(this.__nholder)};
S.__doDumpImageFromEvent=function(t){var e=[],i=t.clipboardData||window.clipboardData||{};
if(i.items)n._$forEach(i.items,function(t){if(0===t.type.indexOf("image")){var i=t.getAsFile();e.push({file:i,url:URL.createObjectURL(i)})}});
else n._$forEach(i.files,function(t){if(0===t.type.indexOf("image"))e.push({file:t,url:URL.createObjectURL(t)})});
var a=t.dataTransfer||{};
n._$forEach(a.files,function(t){if(0===t.type.indexOf("image"))e.push({file:t,url:URL.createObjectURL(t)})});
return e};S.__doDumpImageFromContent=function(t){var e=[],i=t.getElementsByTagName("IMG");
n._$reverseEach(i,function(t){var i=t.src||"";if(0===i.indexOf("data:image")||i.indexOf("nos.netease.com")>0||i.indexOf("nosdn.127.net")>=0){e.push({url:i,file:i});t.parentNode.removeChild(t)}});
return e};S.__doDumpTextFromEvent=function(t){var e="",i=t.clipboardData;if(i)e=i.getData("text/plain");
else if(window.clipboardData)e=clipboardData.getData("text");
return e||""};S.__doCheckEnter=function(t){if(13==t.keyCode){i._$stop(t);var n=this.__inputAssociation&&this.__inputAssociation.entryItem();
if(!
n||"-1"==n.key1)if(!t.ctrlKey)this.__doSubmitContent({label:1});
else{$.__
insertLineBreak(this.__
getContext());
var a=e._$getStyle(this.__
getBody(),"lineHeight"),s=parseInt(a)||20;
this.__getViewPort().scrollBy(0,s);this.__doCheckScrollBar()}else{this._$dispatchEvent("onsubmit",{type:"text",content:n.value});this.__inputAssociation.hide()}}};
S.__doCheckScrollBar=function(){var t=function(){delete this.__stimer;if(this.__
scrollbar)this.__scrollbar._$resize()};
return function(){if(!this.__stimer)this.__stimer=window.setTimeout(t._$bind(this),50)}}();
S.__doCheckAutoHeight=function(){var t=this.__range;if(t&&t[0]!==
t[1]){var i=this.__eopt.parent;if(!
t[0]){if(!i.clientHeight)return;var n=i.clientHeight,a=t[1];
t[0]=n;
t[1]=Math.max(a,n)}var s=this.__getBody();
if(s){e._$setStyle(i,"height","1px");var o=Math.max(t[0],Math.min(s.scrollHeight,t[1]));
e._$setStyle(i,"height",o+"px");this._$dispatchEvent("onheightchange")}}};
S.__doCheckInputLimit=function(t){if(this.__limit){if(null==t)t=this._$getContent().trim();if(t.length>this.__
limit)this._$setContent(t.substr(0,this.__limit))}};S.__doCheckSubmitable=function(){this.__doDisableSubmit(!this.__hasContent())};
S.__doCheckPlaceHolder=function(){var t=this.__hasContent();!t?this.__doShowPlaceHolder():this.__
doHidePlaceHolder()};
S.__doCheckEventMessage=function(t){var e=this.__doDumpTextFromEvent(t);if(0===e.indexOf(E)){i._$stop(t);this._$dispatchEvent("onsubmit",{type:"message",content:e.replace(E,"")})}};
S.__doCheckEventImage=function(t){var e=this.__doDumpImageFromEvent(t);if(!
e||!e.length){this.__
filterRichContent(t);
window.setTimeout(this.__
doCheckContentImage._$bind(this),100)}else{i._$stop(t);this.__doPreviewImage(e)}};
S.__doCheckContentImage=function(){var t=this.__getBody(),e=this.__doDumpImageFromContent(t);
t.scrollTop=2*t.scrollHeight;$.__focusToEnd(this.__
getViewPort());
if(e&&e.length)this.__
doPreviewImage(e);
};
S.__doSelectionChange=function(t){var e=this.__onSelectionChange._$bind(this);if(!
window.MutationObserver){this.__
doInitDomEvent([[t,"selectionchange",e]]);if($.__
hasSelectionHack())this.__
doInitDomEvent([[t,"keydown",e],[t,"keyup",e]])}else{this.__
observer=new MutationObserver(e);
this.__observer.observe(t,{subtree:!0,childList:!0,attributes:!0,characterData:!0})}};S.__doLoadImage=function(t,e,i){var n=this,a=new Image;a.onload=function(){e.call(n,t)};a.onerror=function(){t.file=null;(i||e).call(n,t)};a.src=t.url};S.__doPreviewImage=function(){var t=function(t){var e=[];n._$forEach(t,function(t){if(t.file)e.push(t)});
return e};return function(e){var i=0,a=this;if(!
this.__onPreviewState){var s=function(){i++;if(i==e.length){var n=t(e);if(!
n.length)this.__doSendImage({});
else{a.__onPreviewState=!
0;
c._$preview({photos:n,onok:function(){a.__doSendImage(n);delete a.__onPreviewState},oncc:function(){delete a.__onPreviewState}})}}};
n._$forEach(e,function(t){if(t.url)this.__doLoadImage(t,s,s);else i++},this)}}}();
S.__doSendFile=function(t){n._$forEach(t,function(t){if(!(t.type.indexOf("video")>-1))this._$dispatchEvent("onsubmit",{type:"file",content:{file:t,name:t.name,size:t.size}});else{var e={file:t};
e.url=URL.createObjectURL(e.file);
this.__doSendVideo(e)}},this)};S.__doSendImage=function(t){if(!n._$isArray(t))this._$
dispatchEvent("onsubmit",{type:"image",content:{url:t.url,file:t.file}});else n._$forEach(t,this.__doSendImage,this)};S.__doSendVideo=function(t){if(!n._$isArray(t))this._$
dispatchEvent("onsubmit",{type:"video",content:{url:t.url,file:t.file}});else n._$forEach(t,this.__doSendVideo,this)};S.__doSubmitContent=function(t){var e=this._$getContent().trim();if(e)if(!(this.__limit&&e.length>this.__limit))this._$
DispatchEvent ("onsubmit", n._ $merge ({type: "text", content: e}, t)); else this. _ $toast ("Message content exceeds the maximum limit"+this__
Limit+"characters")}; S.__doDisableSubmit=function (t) {this. __sender. disabled=!! t;! T? E._ $delClassName (this__
nsender,
"u-btn-disabled"):e._$addClassName(this.__nsender,"u-btn-disabled")};
S.__doFocusToEnd=function(){$.__collapse(this.__getViewPort())};
S.__doFocus=function(){this.__doHidePlaceHolder()};
S.__doBlur=function(){this.__doCheckPlaceHolder()};
S.__onIFrameLoaded=function(t){var e=this.__getContext();e.open();
e.write(o._$get(this.__seed_cnt,this.__sopt));e.close();
var n=this.__getViewPort();
this.__doInitDomEvent([[e,"paste",this.__onContentPaste._$bind(this)],[e,"drop",this.__onFileDropIn._$bind(this)],[e,"keydown",this.__doCheckEnter._$bind(this)],[n,"focus",this.__doFocus._$bind(this)],[n,"blur",this.__doBlur._$bind(this)],[n,"scroll",this.__doCheckScrollBar._$bind(this)],[e,"click",i._$dispatchEvent._$bind(i,document,
"click")],[e,"beforedeactivate",this.__doSaveSelection._$bind(this)],[e,"compositionstart",this.__onCompositionStart._$bind(this)],[e,"compositionend",this.__onCompositionEnd._$bind(this)],[e,"keyup",this.__onKeyup._$bind(this)]]);
this.__doSelectionChange(e);
try{e.execCommand("enableObjectResizing",!1,!1)}catch(a){}this.__
ropt.parent=e.body;this.__ropt.sbody=this.__getViewPort();
this.__scrollbar=d._$$Scrollbar._$allocate(this.__
ropt);this._$setContent(this.__
content||"");this.__setIframeStyle(e)};
S.__doSaveSelection=function(){this.__range=$.__saveSelection(this.__getViewPort())};
S.__onSelectionChange=function(t){var e=this._$getContent();this.__doCheckSubmitable();
this.__doCheckAutoHeight();!
this.__inputComposition&&this._$dispatchEvent("oninputchange",e);this.__inputAssociation.$emit("change",{inputcontent:e})};
S.__onContentPaste=function(t){this.__doCheckEventMessage(t);if(!
this.__disSendImg)this.__doCheckEventImage(t);
else{this.__
stopImgEvent(t);
this.__filterRichContent(t)}};
S. __showFailInfo=function (t, e) {if (0!==t) {var i=g._ $getMaxSendFileSize()+"M"; var e=files. length; var n=e-t; var a=n+"/"+e; var s="send"+a+"files,"+t+"files larger than"+i; v. _ $onshowtip (p.val (p.MSG_FILE_EXCEEDS_INFO, a, t, i) | | s)}; S.__ onImageSelect=function (t) {var i=e._ $get (t.id); var n=i.files | | [];
var a=0;for(var s=0;
s<n.length;s++){var o=n[s];
var r=g._$checkFileOverSize(o);
if(r)a++;
else this.__doSendSingleImage(o)}if(a>0)this.__
showFailInfo(a,n.length)};S.__doSendSingleImage=function(t){var e={file:t};
if(e.file.type.indexOf("image")<0)e.file=null;
else e.url=URL.createObjectURL(e.file);
this.__doLoadImage(e,this.__doSendImage)};S.__onFileDropIn=function(t){if(!this.__disSendImg){this.__
doCheckEventImage(t);
i._$stop(t);
window.setTimeout(this.__
doFocusToEnd._$bind(this),150)}else this.__
stopImgEvent(t)};
S.__onSendGIf=function(t){var e={};
var i='<img src="'+t.src+'" title="'+t.name+'" width="'+t.Imgwidth+'" height="'+t.ImgHeight+'">';e=n._$merge(e,{type:"rich",content:i});this._$dispatchEvent("onsubmit",e)};S.__onPortraitSelect=function(t){var e=this.__getContext();try{this._$
focus();$.__
fixFocus(this.__
getViewPort());
this.__doScrollToCursor();$.__
insertHTML(e,t.html)}catch(i){console.log(i)}this.__
onSelectionChange()};
S.__doScrollToCursor=function(){var t=this.__getViewPort(),e=$.__getPosition(t);
if(e)if(t)t.scrollTo(0,e.top||0)};S._$setContent=function(t,e){var i=this.__
getBody();
var n=document.createElement("div");
if(i){delete this.__content;if("innerText"in n)n.innerText=t||"";
else n.textContent=t||"";i.innerHTML=this.__text2portrait(n.innerHTML);
if(!
e)this.__onSelectionChange();
else this._$dispatchEvent("oninputchange",t,e)}else this.__content=t||""};S._$getContent=function(){var t=this.__getBody(),e=u._$formatPortrait(t)||t;
return this.__getTextContent(e)};
S._$reset=function(){this._$resetFile();this._$resetContent()};
S._$resetFile=function(){this.__fopt.form.reset()};
S._$resetContent=function(){this._$setContent("")};
S._$focus=function(){var t=this.__getViewPort();if(t){this.__doHidePlaceHolder();t.focus();$.__
revertSelection(t,this.__range);delete this.__range}};S._$blur=function(){this.__focus=!1;window.focus()};
S._$disable=function(t){!t?e._$delClassName(this.__
body,
"z-disabled"):e._$addClassName(this.__body,"z-disabled");
this.__portrait._$hide()};
S._$toast=function(t){if(!t)this.__doHideToast();
else this.__doShowToast(t)};
S._$placeholder=function(t){this._$reset();this.__doShowPlaceHolder(t)};
S._$clear=function(t){t=t||{};
if(!
t.disabled&&t.focus){this._$
reset();
this._$focus()}else{this._$blur();this._$placeholder(t.placeholder);
this._$disable(!!
t.disabled);if(t.toast)this.__
doShowToast(t.toast)}};
y._$copy=function(t){i._$addEvent(t,"copy",function(t){var n=i._$getElement(t,"d:copyId");if(n){i._$stop(t);var a=E+e._$dataset(n,"copyId");
if(t.clipboardData)t.clipboardData.setData("text/plain",a);else if(window.clipboardData)clipboardData.setData("text",a)}})};S.__portrait2text=function(t){return u._$portrait2text(t)};
S.__text2portrait=function(t){return u._$text2portrait(t)};
S.__setRichTextStyle=function(){var t=150,i=window.setting.inputHeight;if(!
("webFrame"!==m._$isFrameModule()||parseInt(i)<t))setTimeout(function(){var n=parseInt(i)-t;var a=e._$hasClassName(this.__
richText,
"u-status-robot")?
78:64;
e._$setStyle(this.__
richText,
"height",a+n+"px")}._$bind(this),0)};S._$toggleOpr=function(t,i){if(t){if(i){e._$delClassName(this.__fopt.btn,"f-dn");e._$delClassName(this.__
richText,
"u-status-robot")}else{e._$addClassName(this.__fopt.btn,"f-dn");e._$addClassName(this.__
richText,
"u-status-robot")}e._$addClassName(this.__nCapture,"f-dn");
e._$addClassName("portrait_btn","f-dn");
e._$addClassName(this.__
nfile,
"f-dn");
this.__portrait._$hide()}else{e._$delClassName(this.__richText,"u-status-robot");e._$delClassName(this.__
fopt.btn,
"f-dn");
if(this.niuniuCapture&&!
m._$isIE())e._$delClassName(this.__nCapture,"f-dn");
e._$delClassName("portrait_btn","f-dn");
e._$delClassName(this.__
nfile,
"f-dn");
if(window.globalSetting&&window.globalSetting.hiddenFile)e._$addClassName(this.__nfile,"f-dn")}this._$
setDisSendImg(t);
if(window.
OVERSEASG)e._$addClassName(this.__
nCapture,
"f-dn");
this.__setRichTextStyle()};
S.__setModifyEval=function(t,e,i){if(t){if(i)this.__nEvaluate.setAttribute("data-action","modifyEval");else this.__nEvaluate.setAttribute("data-action","");
this.__nEvaluate.innerHTML='<i class="u-icon iconfont icon-star-line-hookx"></i>'}else{this.__nEvaluate.setAttribute("data-action","robotcomment");this.__nEvaluate.innerHTML='<i class="u-icon iconfont icon-star-linex"></i>'}this.__nEvaluate.setAttribute("data-sid",e)};S._$toggleEvaluate=function(t,
i,n,a){if(t){e._$addClassName(this.__richText,"u-status-robot");e._$addClassName(this.__
nEvaluate,
"f-dn")}else{this.__setModifyEval(n,i,a);e._$delClassName(this.__
richText,
"u-status-robot");
e._$delClassName(this.__
nEvaluate,
"f-dn")}this.__
setRichTextStyle()};
S.__filterRichContent=function(t){i._$stop(t);var e=this.__getContext();
var a=this.__doDumpTextFromEvent(t);
a=this.__text2portrait(a);$.__
insertHTML(e,n._$escape(a))};
S._$setDisSendImg=function(t){t?this.__disSendImg=!0:delete this.__disSendImg};S.__stopImgEvent=function(t){var e=this.__doDumpImageFromEvent(t);if(!
e||!e.length);else i._$stop(t)};
S.__onFileBtnClick=function(t){this.__timestamp=n._$uniqueID();this._$dispatchEvent("checkcansendfile",this.__timestamp)};S.__onCaptureClick=function(t){this.niuniuCapture.onCapture()};
S.__onCanSendFile=function(t){if(t.timestamp==this.__timestamp){this.__canSend=!!t.result;this.__fileTransfer._$dispatchEvent("oncansendfile",{result:this.__canSend})}};
S.__setIframeStyle=function(t){var e=function(t,e,i,n){if(t&&i){i="#"+i;if(!
e)var a=t+"{"+i+"}";else a=t+"{"+e+":"+i+"}";var s=document.createTextNode(a);
n.appendChild(s)}};
var i=n._$query2object(location.search.substr(1)),a=i["editorColor"],s=i["editorBgColor"];
if(a||s){var o=t.createElement("style"),r=t.head;o.type="text/css";r.appendChild(o);
e("body","color",a,o);e("body","background-color",s,o)}};S.__onCompositionStart=function(t){this.__inputComposition=!0};
S.__onCompositionEnd=function(t){this.__inputComposition=!1;var e=this._$getContent();!
this.__inputComposition&&this._$dispatchEvent("oninputchange",e);this.__inputAssociation.$emit("change",{inputcontent:e})};
S.__onKeyup=function(t){if(38===t.keyCode||40===t.keyCode){var e={keyCode:t.keyCode};
if(this.__
inputAssociation&&this.__inputAssociation.entryItem().qalist.length>0)this.__
inputAssociation.$emit("keyboard",e);
}};
S.__onSelectRbItem=function(){var t=this.__inputAssociation.entryItem();this._$dispatchEvent("onsubmit",{type:"text",content:t.value});this.__inputAssociation.hide()};
S._$renderInputAssociation=function(t,e){var i={qalist:t,keywords:e,inputcontent:this._$getContent().trim()};
this.__inputAssociation.$emit("change",i);this.__inputAssociation.show();
if(Array.isArray(i.qalist)&&i.qalist.length>0){var n=document.querySelector(".m-associationques-list");var a=n.offsetHeight;if(a>0){var s=document.querySelector(".j-richflag");var o=s.offsetTop||0;n.style.top=-(n.offsetHeight+1-o)+"px";
n.style.visibility="visible"}}};S._$hideInputAssociation=function(){var t=document.querySelector(".m-associationques-list");t&&(t.style.visibility="hidden");
this.__inputAssociation.hide()};
S.__closeInputAssociation=function(t){var e=document.querySelector(".m-associationques-list");if(!
e.contains(t.target))this._$
hideInputAssociation()}},"e4f0b0b7857ed3c1e2d0a46ba5b670d6","5fb495f256a5dcde2a92e5fe919a6422","be567474249a271e4786c144ccf5f75a","fbbf6ddc0634989027d138f4ffd4b78b","8fe733a225a830dc6b1da5866dcaf23c","d252039c36767cb4f534ca3f91188796","2a0f6f00e8af2a07d5b9a7c4620f5b4e","9733787c25ceca396cb6e8dcce07ee63","b8c452dcf5e5dd56a4db87471ce5da65",
"c711308f00adca75206c9dc3966a29d2","c1d55708b36e5cee72cf23349b7f94da","81e4c9c4999784e360c6a2b666dc5320","ccb6b7d0ce45c3548151b739858e96c8","00b1248fcdd93958d87e26de99277f67","f2b46c0ee658f65c8607f9d898c02a66","35df4ef4567b6cd0275a1b849d2bea8c","af3f2da7bbdae6f4919bfa7e84c55c4e","3e346f2b6313e57a75f5ee9b603c4b65","d67add781b37b82c1816b8c159701e56",
"fc5aed51c0df9784c68a9c2b6896c8ea","2a3d8899990b1a57302aa0f0bb6e9ec4");
I$("b02d8d903f51634e97264ccb64933373",'<textarea name="ntp" id="#<lbEntry>">\n</textarea>\n\n<textarea name="jst" id="#<lbList>">\n\t<ul class="m-botentry j-flag">\n\t\t{list list as x}\n\t\t\t<li class="li {if x.highLight}highLight{/if}" data-action="${x.action}" data-id="${x.id || x.data}" data-url="${x.data || x.url}" data-label="${x.label}"
>\n\t\t\t\t${x.label}\n\t\t\t</li>\n\t\t{/list}\n\t</ul>\n</textarea>\n');
I$("21e5b22e71937c4475a2de368ed9e491",function(t,e,i,n,a,s,o,r,_,d,c,l){c._$$BotEntry=t._$klass();
l=c._$$BotEntry._$extend(a._$$Abstract);
l.__reset=function(t){this.__super(t);var i=t.list;this.list=t.list;this.session=t.session||{};
n._$forEach(i,function(t){if("query_worksheet"==t.action)t.id=n._$uniqueID()});
var a=this;this.__timer={};
this.__timer["resize"]=null;
this.__canClick=!0;if(i&&i.length>0)this.__
renderList(t.list);
e._$addEvent(window,"resize",function(t){if(a.__timer.resize)clearTimeout(a.__timer.resize);a.__timer.resize=setTimeout(function(){a.__ht._$dispatchEvent("onresize")},500)})};
l.__destroy=function(){this.__super()};
l.__initXGui=function(){var t=s._$parseUITemplate(d);return function(){this.__seed_html=t.lbEntry;this.__seed_list=t.lbList}}();
l.__initNode=function(){this.__super();this.__delegate(this.__
body,
"li",this.__selectItem._$bind(this));
i._$style(this.__
body,
{right:"16px",left:"16px",height:"100%",position:"absolute",overflow:"hidden"})};l.__renderList=function(t,e){o._$render(this.__body,this.__seed_list,{list:t,showEval:e});var n=document.getElementsByClassName("chat_show_bot")[0];
var a=i._$getByClassName(this.__
body,
"m-botentry")[0];
if(a)try{var s={appkey:window.setting&&window.setting.appkey||0,robotId:this.session&&this.session.realStaffid||0,sessionId:this.session&&this.session.sessionid||0,list:t&&JSON.stringify(t)||""};
var r=window.sessionStorage.getItem("bot_quick_phrases_entry_show_FLAG")||"";
if("Y"==r)window.sessionStorage.setItem("bot_quick_phrases_entry_show_FLAG","N");
else{window.sessionStorage.setItem("bot_quick_phrases_entry_show_FLAG","Y");
window.DATracker&&window.DATracker.track("bot_quick_phrases_entry_show",s);setTimeout(function(){window.sessionStorage.setItem("bot_quick_phrases_entry_show_FLAG","N")},1e3)}}catch(d){console.error("bot_quick_phrases_entry_show error=========:",d)}var c=1e3;if(n)c=n.offsetWidth;
var l=i._$getByClassName(this.__
body,
"li");
TweenMax.staggerFrom(l,1,{x:c,onStart:function(){if(n&&a&&n.offsetWidth-40>a.offsetWidth)i._$style(a,{width:"100%"})}},.2,function(){i._$style(a,{width:"auto"})});
var f=i._$getByClassName(this.__
body,
"j-flag")[0];
var t=i._$getChildren(f);
this.__ht=_._$$HeadTab._$allocate({node:f,list:t})};l.__delegate=function(t,i,n){var a=this;
e._$addEvent(t,"click",function(t){var s=e._$getElement(t,"t:"+i);if(s){var o=a.list.map(function(t){return t.label});
var r={appkey:window.setting.appkey||0,robotId:a.session.realStaffid||0,sessionId:a.session.sessionid||0,clickItem:s.innerText,displayItems:JSON.stringify(o)};
s.innerText&&window.DATracker&&window.DATracker.track("bot_entry_click",r);n(s)}})};
l.__selectItem=function(t){var e=this;if(e.__canClick){var a=i._$dataset(t,"label"),s=i._$dataset(t,"action"),o=i._$dataset(t,"url");
id=i._$dataset(t,"id");
list=this.list;var _={};
n._$forEach(list,function(t){if(t.action==s&&t.id==id)_=t});
this._$dispatchEvent("select",{label:a,action:s,url:o,id:id,info:_});if(_.templateId){var d={sid:e.session.sessionid||0,type:1,operateType:1,title:a,questionId:id||"",templateId:_.templateId};r._$clientClickReport(d)}i._$delClassName(t,"highLight");
e.__canClick=!1;setTimeout(function(){e.__canClick=!0},1e3)}}},"e4f0b0b7857ed3c1e2d0a46ba5b670d6","be567474249a271e4786c144ccf5f75a","5fb495f256a5dcde2a92e5fe919a6422","fbbf6ddc0634989027d138f4ffd4b78b","8fe733a225a830dc6b1da5866dcaf23c","d252039c36767cb4f534ca3f91188796","2a0f6f00e8af2a07d5b9a7c4620f5b4e","d67add781b37b82c1816b8c159701e56",
"9b42795f59bfa55be8f84d79b287510a","b02d8d903f51634e97264ccb64933373");
I$("462784759f136bedba5a0d03f454e788","<bot-drawer template={template} on-selectItem={this.onSelectItem($event)}></bot-drawer>");
I$("2ae4b3f868c159318a2eff6d37fe4259",function(t,e,i,n,a){return i.extend({name:"bot-drawerModal",config:function(t){e._$extend(t,{contentTemplate:a,"class":"m-modal-botDrawer",closeButton:!0,okButton:!1,cancelButton:!1,hideFooter:!0,title:t.template.title||" "});this.supr(t)},init:function(){this.supr()},destroy:function(){this.supr()},
onSelectItem:function(t){this.$emit("selectItem",t)}})},"be567474249a271e4786c144ccf5f75a","3e346f2b6313e57a75f5ee9b603c4b65","fdec2b215e7e7770f7e7b5af3422ee86","7ccdd01e9d3ce809aac4bc84d0216707","462784759f136bedba5a0d03f454e788");
I$("a914c4c54ec6f47b83e5057f60e20646",'<div class="chat-switch-robot-popover">\n <div class="chat-switch-robot-popover-arrow"></div>\n <div class="chat-switch-robot-popover-arrow-block"></div>\n <div class="chat-switch-robot-popover-header">{title}</div>\n <div class="chat-switch-robot-popover-body">\n {#if contentTemplate}
{#include @(contentTemplate)}{/if}\n </div>\n</div>');
I$("de0f056eb3a9e788d082db057a0db010",function(t,e,i,n,a){var s=a.Component;
var o=s.extend({template:i,name:"popover",config:function(t){n._$extend(t,{contentTemplate:"",title:"Title"});this.supr(t)},init:function(t){},update:function(t,e){this.$
update();
this.data.contentTemplate=t;this.data.title=e;this.$update()}});
return o},
"be567474249a271e4786c144ccf5f75a","5fb495f256a5dcde2a92e5fe919a6422","a914c4c54ec6f47b83e5057f60e20646","3e346f2b6313e57a75f5ee9b603c4b65","fe686268a0af212baea04fc64f0059e8");
I$("8c7d64f10ed8f664dc200c4c4ad16191",function(t,e,i,n,a,s,o,r,_,d,c,l,f,u,h,m,p,g,v,b,$,y,S,E,I,w,T,C){C=t._$klass();
T=C._$extend(I._$$Module);
T.__doBuild=function(){this.__super();this.__scrollToNodeOffset=75;this.__initPicViewer(this.__
nList);var t=n._$getByClassName(this.__
body,
"j-loading-txt")[0];
if(t)t.innerHTML=u.CONNECTING_PLEASE_WAIT;
var e=n._$getByClassName(this.__
body,
"j-foot-jszc")[0];
if(e)e.innerHTML=u.TXT_TECHNICAL_SUPPORT_BY_QY};
T.__onShow=function(t){this.__super(t);var e=this.__body;if(e.offsetWidth<400)n._$addClassName(e,"g-chat-layer");
var i=n._$getByClassName(this.__
body,
"j-flag-bot")[0];
this.__setLayerStyle(i)};
T.__onRefresh=function(t){this.__super(t)};
T.__onHide=function(){this.__super()};
T.__initEditorConfig=function(t){this.__super();this.__eopt={popt:{parent:"ysf-client",col:12},maxLength:4500,parent:t,editFrom:"trade",placeholder:window.setting.inputPlaceholder,onsubmit:this.__editorSubmit._$bind(this),oninputchange:this.__onInputChange._$bind(this),checkcansendfile:this.__checkCanSendFile._$bind(this),
captureError:this.__onNiuniuCaptureError._$bind(this)}};
T.__initEditor=function(){if(!this.__editor){this.__
editor=f._$$YSFEditor._$allocate(this.__
eopt);this.__editor._$toggleOpr(!
0);
this.__editor._$toggleEvaluate(!
0)}};
T.__initEventListener=function(){this.__super();if(1!=
window.setting.winType&&!window.setting.tradeTag&&!window.setting.videoSimultaneous)this.__doInitDomEvent([[window,"beforeunload",this.__onBeforeUnload._$bind(this)]]);
E._$delegateWithStopEvent(this,this.__body,{picHref:this.__picHref._$bind(this)})};
T.__setEditorContent=function(t){if(this.__editor){var e=t.shop.editorContent;if(e){this.__editor._$setContent(e);this.__editor._$resetFile();
this.__editor.__portrait._$hide();
this.__editor._$focus()}else this.__
editor._$clear({focus:!1})}};
T.__richContentDelegate=function(t,i,a){i=i||window.event;
var s=e._$getElement(i,"t:a");
if(s){var o=n._$dataset(t,"msgid");var _=r._$getLinkSid(o);
this.__onRichContentLinkClick(s,i,_,a)}};T.__picHref=function(t){var e=n._$dataset(t,"href");window.open(E._$getOriginImageUrl(e),"_blank")};
T.__setLayerStyle=function(t){var e=150,i=window.setting.inputHeight;if(!
("webFrame"!==E._$isFrameModule()||parseInt(i)<e)){var a=n._$getByClassName(this.__body,"j-editor")[0];var s=String(i).indexOf("px")>-1?
i:i+"px";n._$style(t,{bottom:s});
n._$style(a,{height:s})}};
T.__renderBotEntry=function(t){if(this.__botentry)this.__botentry._$recycle();var e=n._$getByClassName(this.__
body,
"j-flag-bot")[0],i=n._$getByClassName(this.__
body,
"j-chat")[0];
var a=n._$getStyle(e,"bottom");
if(!
t.kefu.isRobot&&t.entranceSetting&&t.entranceSetting.length>=1){var s=E._$copy(t.entranceSetting);
for(var o=s.length-1;
o>=0;o--){if(!("evaluate"!=s[o].action||t.sessionStatus&&t.sessionStatus.initShowEvaluation))s.splice(o,1);
var r=l.__videoChat?l.__videoChat.getVideoState().status:-1;
var _=200===t.sessionStatus.status&&0===r&&!t.finished&&"-1"!==t.kefu.staffid;if(s[o]&&"video_invite"===s[o].action&&!_)
s.splice(o,1)}}var d=t.bot&&t.bot.filter(function(t){return"applyKf"===t.action})[0];
if(t.sessionStatus.hasKefuEntry&&"FIRST_SHORTCUT"===t.sessionStatus.kfEntryPosition&&!
d) {var c={label: u. APPLY_KF | | "Contact manual customer service", data: {bid: t.shop. id}, action: "applyKf"}; if (t.bot) t.bot. unshift (c);
else t.bot=[c]}if(t.kefu.isRobot&&(!t.bot||t.bot.length<1)||!t.kefu.isRobot&&(!
s||s.length<1)){n._$style(i,{bottom:n._$getStyle(e,"bottom")});
n._$style(e,{opacity:0,"z-index":-1e3})}else{n._$style(e,{opacity:1,"z-index":0});
n._$style(i,{bottom:parseInt(a.replace(/px/gi,""))+e.offsetHeight+"px"});
var f=t.kefu.isRobot?E._$copy(t.bot):s;
this.__botentry=b._$$BotEntry._$allocate({session:t,parent:e,list:f,select:this.__onBotEntrySelect._$bind(this)})}};
T.__initBotDrawerModal=function(t,e){this.__
botDrawerModal=new $({data:{template:t.content.template}}).$
inject(document.body).$
on("selectItem",function(i){this.__onSelectBotBubbleItem(i,t,e,this.__botDrawerModal)}._$bind(this))};
T.__initPicViewer=function(t){var a=n._$get(t);e._$addEvent(t,"click",function(t){var s=e._$getElement(t,"d:group"),o=n._$dataset(s,"group")||"";
if(s&&"IMG"==s.tagName){if(s.parentNode&&"A"===s.parentNode.tagName)return;var r=a.getElementsByTagName("IMG"),_=[],d=0;i._$forEach(r,function(t){if(!o||o==n._$dataset(t,"group")){_.push({name:n._$dataset(t,"name")||n._$attr(t,"title"),src:n._$dataset(t,"origin")||n._$dataset(t,"url")});
if(t===s)d=_.length-1}});
if(this.pview)this.pview.destroy();
this.pview=new S({data:{pics:_,CON_MAX_WIDTH:1==window.setting.isLayer?360:void 0,CON_MAX_HEIGHT:1==window.setting.isLayer?500:void 0}});this.pview.show(d)}}.bind(this))};
T.__initPopoverConfig=function(t,e){var i=n._$getByClassName(this.__body,"chat-switch-robot-popover-contain")[0];
i.innerText="";this.__chatPopover=new y({data:{contentTemplate:t,title:e,node:"chat-switch-robot-button"}}).$inject(n._$getByClassName(this.__body,"chat-switch-robot-popover-contain")[0])};I._$regist("chat",C)},
"e4f0b0b7857ed3c1e2d0a46ba5b670d6","be567474249a271e4786c144ccf5f75a","fbbf6ddc0634989027d138f4ffd4b78b","5fb495f256a5dcde2a92e5fe919a6422","d252039c36767cb4f534ca3f91188796","2a0f6f00e8af2a07d5b9a7c4620f5b4e","d99f29446b4a4cf86c6084cb99df7ab0","aa835e6c54cfdee711ae8d0d1296fa57","e4a45dc3cf399bf73004ce111fd4b206","f0b1d7ff05e74da750d6bb82da881934",
"d67add781b37b82c1816b8c159701e56","4e09e3c278408cd8001c7779e34c93e9","3c211b458888deac6eb931a8a8aa5f66","af3f2da7bbdae6f4919bfa7e84c55c4e","00b1248fcdd93958d87e26de99277f67","93872d9c4b2f20c68917dbdfa2b58e43","9e07459e62a4073031ead15e8b2bc7b2","57b425e54e094947e45b4232d3c28d89","aac22a477c227075a6def1f716ee003f","21e5b22e71937c4475a2de368ed9e491",
"2ae4b3f868c159318a2eff6d37fe4259","de0f056eb3a9e788d082db057a0db010","c2988d8e156e484a190351b466078479","35df4ef4567b6cd0275a1b849d2bea8c","36d99ebff621b8efb3f90d915049bdd7");
<div class="j-sess">
<div class="slide_hd m-info">
<div class="info_tlt">
<span class="j local it">Session list</span>
</div>
</div>
<div class="slide_bd" >
<ul class="j-flag m-session"></ul>
</div>
</div>
I$("8ec78e937121e9c3e934ecdc253c77a1",function(t,e,i,n,a,s,o,r,_,d,c,l,f,u,h){h=t._$klass();
u=h._$extend(l._$$Module);
u.__doBuild=function(){this.__super();var t=i._$getByClassName(document.body,"j-local-tit")[0];
if(t)t.innerHTML=c.SESSION_LIST};
u.__onShow=function(t){this.__super(t)};
u.__onRefresh=function(t){this.__super(t)};
u.__onHide=function(){this.__super()};
l._$regist("sess",h)},
"e4f0b0b7857ed3c1e2d0a46ba5b670d6","be567474249a271e4786c144ccf5f75a","5fb495f256a5dcde2a92e5fe919a6422","fbbf6ddc0634989027d138f4ffd4b78b","d252039c36767cb4f534ca3f91188796","d99f29446b4a4cf86c6084cb99df7ab0","aa835e6c54cfdee711ae8d0d1296fa57","e4a45dc3cf399bf73004ce111fd4b206","d67add781b37b82c1816b8c159701e56","35df4ef4567b6cd0275a1b849d2bea8c",
"af3f2da7bbdae6f4919bfa7e84c55c4e","88b788956da2767fcaa8ddc366db6d27");
<div class="tab_info j-flag"></div>
I$("8eece85b663528daaf7194a294d735ff",'<textarea name="ntp" id="#<faqBody>">\n <div class="bd_right j-companyinfo-right j-flag">\n </div>\n</textarea>\n<textarea name="jst" id="#<faqInfo>">\n {if companyInfo.companyInfo && companyInfo.companyInfo[0] && companyInfo.companyInfo[0].announcementGroup && companyInfo.companyInfo[0]
.announcementGroup.length > 0}\n <div class="m-announce j-announceinfo {if ((companyInfo.companyInfo[0].questions && companyInfo.companyInfo[0].questions.length == 0) || (!
companyInfo.companyInfo[0].questions))}m-announce-ex{/if}">\n <div class="swiper-container">\n <div class="swiper-wrapper">\n {list companyInfo.companyInfo[0].announcementGroup as x}\n <div class="swiper-slide">\n <div class="announcement-content-box">\n {if (x.announcementTitle) !=\'\'}\n <h1 class="announce_tlt">\n ${x.announcementTitle}
\n </h1>\n {/if}\n {if (x.announcementContent) !=\'\'}\n <div class="announce_cnt" data-action="richContentDelegate">${x.announcementContent}</div>\n {/if}\n <!--
The existence of images and corresponding links --> n {if (x.announcementImage&&x.announcementImage. url&&x.pictureHref)} n<div class="announce_pic"> n<a data action="pictureHref" data href="${x.pictureHref}" class="u-companyLogo"><img src="${x.announcementImage. url}" alt="${x.announcementImage. name}"></a> n</div> n {/i f} n<--
Only pictures, no links --> n {if (x.announcementImage&&x.announcementImage. url&&!
x.pictureHref)}\n <div class="announce_pic">\n <a class="u-conpanyLogo"><img src="${x.announcementImage.url}" alt="${x.announcementImage.name}"> </a>\n </div>\n {/if}\n </div>\n </div>\n {/list}\n </div>\n {if companyInfo.companyInfo && companyInfo.companyInfo[0] && companyInfo.companyInfo[0].announcementGroup && companyInfo.companyInfo[0]
.announcementGroup.length > 1}\n <div class="swiper-button-wrapper swiper-button-prev-wrapper" style="left: calc(50% - 714px)" on-click={this.onSwipePrev()}>\n <div class="iconfont icon-jiantouzuo icon-btn"></div>\n </div>\n <div class="swiper-button-wrapper swiper-button-next-wrapper" style="right: calc(50% - 714px)"
>\n <div class="iconfont icon-jiantouyou icon-btn"></div>\n </div>\n <div class="pagination"></div>\n {/if}\n \n </div>\n <!--
{if (companyInfo.announcementTitle) !=\'\'}\n <h1 class="announce_tlt">\n ${companyInfo.announcementTitle}\n </h1>\n {/if}\n {if (companyInfo.announcementContent) !=\'\'}\n <div class="announce_cnt" data-action="richContentDelegate">${companyInfo.announcementContent}</div>\n {/if}\n {if (companyInfo.pictureHref) !=\'\' || (companyInfo.pictureUrl) !
=\'\'}\n <div class="announce_pic">\n {if (companyInfo.pictureUrl)}\n {if (companyInfo.pictureHref)}\n <a data-action="pictureHref" data-href="${companyInfo.pictureHref}" class="u-conpanyLogo"><img src="${companyInfo.pictureUrl}" alt="${companyInfo.pictureNmae}"> </a>\n {else}\n <a class="u-conpanyLogo"><img src="${companyInfo.pictureUrl}"
alt="${companyInfo.pictureNmae}"> </a>\n {/if}\n {else}\n {/if}\n </div>\n {/if} -->\n </div>\n {else}\n <div class="m-announce j-announceinfo m-no-announce" style="padding: 0px; border: 0px;
">\n </div>\n {/if}\n {if (companyInfo.companyInfo && companyInfo.companyInfo[0] && companyInfo.companyInfo[0].questions && companyInfo.companyInfo[0].questions.length > 0) }\n <div class="m-comquestions j-comquestions">\n <h1>${local.COMMON_PROBLEM}</h1>\n <div>\n <ul class="j-comquestions bd">\n {list companyInfo.companyInfo[0].questions as x}
\n <li class="itm" data-id="${x.id}">\n <h2 class="title j-question" data-action="questionlist">${x.title}<i class="j-icon u-icon-jiantou iconfont icon-jiantouyou"></i></h2>\n <div class="answer f-dn" data-action="richContentDelegate">${x.answer}</div>\n </li>\n {/list}\n </ul>\n </div>\n </div>\n {/if}\n</textarea>');
I$("8ae6eae18399c1d213cfd2e7fd33c429",function(t,e,i,n,a,s,o,r,_,d,c,l){c._$$FAQ=t._$klass();
l=c._$$FAQ._$extend(a._$$Abstract);
l.__init=function(){this.__super()};
l.__reset=function(t){this.__super(t);if((!window.companyInfo.companyInfo||!window.companyInfo.companyInfo[0])&&window.companyInfo.announcementGroup&&window.companyInfo.announcementGroup.length){window.companyInfo.companyInfo=[{}];
window.companyInfo.companyInfo[0].announcementGroup=window.companyInfo.announcementGroup;
window.companyInfo.companyInfo[0].questions=window.companyInfo.questions}o._$render(this.__container,this.__seed_info,{companyInfo:this.__parseAInfo(window.companyInfo),local:_});this.__initEvent();
this.__prevBtn=i._$getByClassName(this.__
body,
"swiper-button-prev-wrapper")[0];
this.__nextBtn=i._$getByClassName(this.__
body,
"swiper-button-next-wrapper")[0];
this.__container=i._$getByClassName(this.__
body,
"swiper-container")[0];
this.__doInitDomEvent([[this.__prevBtn,"click",function(t){this.__onPrevBtn(t)}._$
bind(this)],[this.__nextBtn,"click",function(t){this.__onNextBtn(t)}._$
bind(this)],[this.__container,"mouseenter",function(t){this.__onContainerStop(t)}._$
bind(this)],[this.__container,"mouseleave",function(t){this.__onContainerStart(t)}._$
bind(this)]]);
this.__buildFAQHeight();
if(window.companyInfo.companyInfo&&window.companyInfo.companyInfo[0]&&window.companyInfo.companyInfo[0].announcementGroup&&window.companyInfo.companyInfo[0].announcementGroup.length>1)this.mySwiper=new Swiper(".swiper-container",{autoplay:5e3,loop:!0,pagination:".pagination",
mousewheelControl:!1,paginationClickable:!0});else this.mySwiper=new Swiper(".swiper-container",{loop:!0})};
l.__onPrevBtn=function(t){t.preventDefault();this.mySwiper.swipePrev()};
l.__onNextBtn=function(t){t.preventDefault();this.mySwiper.swipeNext()};
l.__onContainerStop=function(){this.mySwiper.stopAutoplay()};
l.__onContainerStart=function(){this.mySwiper.startAutoplay()};
l.__destroy=function(){this.__super()};
l.__initXGui=function(){var t=s._$parseUITemplate(d);return function(){this.__seed_html=t.faqBody;this.__seed_info=t.faqInfo}}();
l.__initNode=function(){this.__super();this.__container=this.__body};l.__toogleQuestion=function(t){var e=t.parentNode.parentNode,n=t.parentNode.getElementsByTagName("div")[0],a=t.parentNode.getElementsByTagName("i")[0],s=i._$hasClassName(a,"icon-jiantouyou");
this.__disableQuestionList(e);
if(s){i._$delClassName(n,"f-dn");i._$replaceClassName(a,"icon-jiantouyou","icon-jiantouxia")}else{i._$replaceClassName(a,"icon-jiantouxia","icon-jiantouyou");i._$addClassName(n,"f-dn")}};
l.__disableQuestionList=function(t){var e=t.getElementsByTagName("div"),n=t.getElementsByTagName("i");
for(var a=0;
a<e.length;a++)i._$addClassName(e[a],"f-dn");
for(var a=0;
a<n.length;a++)i._$replaceClassName(n[a],"icon-jiantouxia","icon-jiantouyou")};
l.__initEvent=function(){this.__questionList=i._$getByClassName(this.__body,"j-question");if(this.__
questionList)this.__questionList.forEach(function(t){e._$addEvent(t,"click",this.__toogleQuestion._$bind(this,t))}._$bind(this))};
l.__calculateCampanyInfo=function(){_tab=i._$getByClassName(document.body,"j-tab")[0];_announceinfo=i._$getByClassName(document.body,"j-announceinfo")[0];_comquestions=i._$getByClassName(document.body,"j-comquestions ")[1];var t=_tab.clientHeight-_announceinfo.clientHeight-55;i._$setStyle(_comquestions,"height",t+"px")};
l.__parseAInfo=function(t){var e=t;var i=t.announcementContent||"";var a=e.questions||"";if(!
n._$isString(a)){e.announcementContent=i.replace(/<a/g,'<a data-action="openlink"');if(a)n._$forEach(a,function(t){t.answer=t.answer.replace(/<a/g,'<a data-action="openlink"')},this);return e}};l.__buildFAQHeight=function(){var t=this.__body.offsetHeight;var e=i._$getByClassName(this.__
body,
"j-announceinfo")[0],n=e.offsetHeight,a=i._$getByClassName(this.__
body,
"j-comquestions")[0];
var s=t-n;i._$setStyle(a,"height",
s+"px")}},"e4f0b0b7857ed3c1e2d0a46ba5b670d6","be567474249a271e4786c144ccf5f75a","5fb495f256a5dcde2a92e5fe919a6422","fbbf6ddc0634989027d138f4ffd4b78b","8fe733a225a830dc6b1da5866dcaf23c","d252039c36767cb4f534ca3f91188796","2a0f6f00e8af2a07d5b9a7c4620f5b4e","c711308f00adca75206c9dc3966a29d2","af3f2da7bbdae6f4919bfa7e84c55c4e","
8eece85b663528daaf7194a294d735ff");I$("2acb24b6a7b70b5d190a68cd3caab413",function(t,e,i,n,a,s,o,r,_){_=t._$klass();
r=_._$extend(a._$$Module);
r.__doBuild=function(){this.__tid="tab-body";this.__super();
this.__box=i._$getByClassName(this.__
body,
"j-flag")[0]};
r.__onShow=function(t){this.__super(t);this.__initFAQ()};
r.__onRefresh=function(t){this.__super(t)};
r.__onHide=function(){this.__super();
};
r.__initFAQ=function(){if(window.permissionSetting["SHOW_COMPANY_INFO"]&&window.companyInfo.visitorSwitch)this.__faq=s._$$FAQ._$allocate({parent:this.__body})};
a._$regist("tab",_)},"e4f0b0b7857ed3c1e2d0a46ba5b670d6","be567474249a271e4786c144ccf5f75a","5fb495f256a5dcde2a92e5fe919a6422","d252039c36767cb4f534ca3f91188796","8432624716159a6412219f26247c91bd","8ae6eae18399c1d213cfd2e7fd33c429");