1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3407],{7158:function(a,b,c){"use strict";c.r(b),c.d(b,{default:function(){return D}});var d=c(47568),e=c(26042),f=c(69396),g=c(34051),h=c.n(g),i=c(85893),j=c(78758),k=c.n(j),l=c(27758),m=c(8100),n=c(11163),o=c(67294),p=c(73935),q=c(59552),r=c.n(q),s=null,t=function(a){var b=a.targetRef,c=a.children,d=a.getContainer,e=a.onNotVisibleArea,f=a.menuRef,g=a.placement,h=d&&d();return s||((s=document.createElement("div")).className=r()["share-position"],document.body.appendChild(s)),(0,o.useEffect)(function(){var a=function(){var a,c,d,e,i,j,k,l=null===(j=b.current)|| void 0===j?void 0:j.getBoundingClientRect(),m=l.top,n=l.left,o=l.right,p=l.bottom,q=l.height,r=l.width;l.x,l.y;var t=h&&(null==h?void 0:h.getBoundingClientRect()),u=null===(k=f.current)|| void 0===k?void 0:k.getBoundingClientRect(),v=t?t.top:m,w=t?t.left:n,x=t?t.bottom:p,y=t?t.right:o,z={top:p,left:o};if("top"===g){var A=v-u.height;z={top:A+"px",left:w-(u.width-r)/2+"px"},A<0&&document.documentElement.clientHeight-x>=u.height&&(z.top=p+"px")}if("bottom"===g){z={top:x+"px",left:w-(u.width-r)/2+"px"},document.documentElement.clientHeight-x<u.height&&v-u.height>=0&&(z.top=v-u.height+"px")}if("left"===g){var B=v-(u.height/2-q/2),C=w-u.width;z={top:B+"px",left:C+"px"},C<0&&document.documentElement.clientWidth-y>=u.width&&(z.left=y+"px")}if("right"===g){var D=v-(u.height/2-q/2),E=y;z={top:D+"px",left:E+"px"},document.documentElement.clientWidth-E<u.width&&w>u.width&&(z.left=w-u.width+"px")}if("topLeft"===g){z={top:v-u.height+"px",left:w+"px"}}if("topRight"===g){var F=v-u.height,G=y-u.width;z={top:F+"px",left:G+"px"}}if("bottomLeft"===g&&(z={top:x+"px",left:w+"px"}),"bottomRight"===g){z={top:x+"px",left:y-u.width+"px"}}if("leftTop"===g){z={top:v+"px",left:w-u.width+"px"}}if("rightTop"===g&&(z={top:v+"px",left:y+"px"}),"leftBottom"===g){var H=x-u.height,I=w-u.width;z={top:H+"px",left:I+"px"}}if("rightBottom"===g){z={top:x-u.height+"px",left:y+"px"}}return s.style.top=z.top,s.style.left=z.left,{top:m,left:n,height:q}},c=function(){var b=a(),c=b.top,d=b.height;h.offsetTop>c&&e(),c-h.offsetTop+d>h.offsetHeight&&e()};return a(),h&&h.addEventListener("scroll",c,!1),function(){h&&h.removeEventListener("scroll",c,!1)}},[b,h]),s&&p.createPortal(c,s)},u=t,v=c(945),w=c(27634),x=c(98802),y=c(81614),z=c.n(y),A=c(19327),B=c(8017),C=c.n(B);function D(a){var b=function(a){var b=document.createElement("input");b.setAttribute("readonly","readonly"),b.setAttribute("value",a),document.body.appendChild(b),b.setSelectionRange(0,9999),b.select(),document.execCommand("copy"),v.y.show({type:"success",text:"en"===s.locale?"Successfully copied":"å¤å¶é¾æ¥æå"}),document.body.removeChild(b)},c=a.placement,g=a.getContainer,j=a.detail,p=(0,m.ZP)("/api/coalresource-customer/customer/loading");p.data;var q,r,s=(0,n.useRouter)(),t=(0,o.useState)(!1),y=t[0],z=t[1],B=(0,o.useRef)(null),D=(0,o.useRef)(null),E=(q=(0,d.Z)(h().mark(function a(b){var c,d,g,i,k,m,n,o,p,q;return h().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,l.Z)("/api/station-msg/external/wechat/getSing",{url:b},"GET");case 2:200===(c=a.sent).code&&(null===(d=window.wx)|| void 0===d||d.config((0,f.Z)((0,e.Z)({debug:!1},c.data),{jsApiList:["updateAppMessageShareData","updateTimelineShareData","onMenuShareTimeline","onMenuShareAppMessage"]})),n=null===(g=window.navigator)|| void 0===g?void 0:g.userAgent,o=((null==j?void 0:j.shareType)==="news"?"æ°é»â¡ï¸":(null==j?void 0:j.shareType)==="product"?"ææ°æ°æ®\uD83D\uDCC8":"")+(null==j?void 0:j.title),p=(null==j?void 0:j.shareType)==="news"?(j.time?1>(0,A.Z)().diff(j.time,"days")?(0,A.Z)(j.time).fromNow():(0,A.Z)(j.time).format("YYYY/MM/DD"):j.time)+" "+(j.viewCounts?"æµè§"+j.viewCounts:""):(null==j?void 0:j.shareType)==="report"?j.updateCycleName:(null==j?void 0:j.shareType)==="product"?null===(i=(0,A.Z)())|| void 0===i?void 0:i.format("YYYY/MM/DD"):j.desc,q=w.Hx+((null==j?void 0:j.shareType)==="news"?
1"/assets/img/share_news.png":(null==j?void 0:j.shareType)==="report"?
1"/assets/img/share_report.png":(null==j?void 0:j.shareType)==="product"?"/assets/img/share_data.png":"/assets/img/share_index.png"),null===(k=window.wx)|| void 0===k||k.ready(function(a){var c=n.match(/MicroMessenger\/([\d.]+)/i);c&&c[1]>"5.0"?(window.wx.updateTimelineShareData({title:o,desc:p,link:b,imgUrl:q,type:"link",success:function(){}}),window.wx.updateAppMessageShareData({title:o,desc:p,link:b,imgUrl:q,type:"link",success:function(){}})):(window.wx.onMenuShareTimeline({title:o,desc:p,link:b,imgUrl:q,type:"link",success:function(){}}),window.wx.onMenuShareAppMessage({title:o,desc:p,link:b,imgUrl:q,type:"link",success:function(){}}))}),null===(m=window.wx)|| void 0===m||m.error(function(a){}));case 4:case"end":return a.stop()}},a)})),function(a){return q.apply(this,arguments)}),F=(0,o.useState)();F[0],F[1];var G=(r=(0,d.Z)(h().mark(function a(b){var c,d,e,f;return h().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:for(e in c={url:b,title:null==j?void 0:j.title,pic:w.Hx+((null==j?void 0:j.shareType)==="news"?
1"/assets/img/share_news.png":(null==j?void 0:j.shareType)
1==="report"?"/assets/img/share_report.png":"/assets/img/share_data.png")},d=[],c)d.push(e+"="+encodeURIComponent(c[e]||""));f="https://service.weibo.com/share/share.php?"+d.join("&"),window.open(f,"sinaweibo","height=600, width=800");case 6:case"end":return a.stop()}},a)})),function(a){return r.apply(this,arguments)}),H=function(a,b){"facebook"===b?window.open("https://www.facebook.com/sharer/sharer.php?u=".concat(encodeURIComponent(a),"&t=").concat(encodeURIComponent(null==j?void 0:j.title),"&description=").concat(encodeURIComponent(null==j?void 0:j.desc),"&title=").concat(encodeURIComponent(null==j?void 0:j.title)),"_blank","width=800, height=600, toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, top=100,left=350"):"twitter"===b?window.open("https://www.twitter.com/share?url=".concat(encodeURIComponent(a),"&text=").concat(encodeURIComponent(null==j?void 0:j.title)),"_blank","width=800, height=600, toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, top=100,left=350"):"linkedIn"===b?window.open("https://www.linkedin.com/shareArticle?mini=true&url=".concat(a,"&title=").concat(encodeURIComponent(null==j?void 0:j.title),"&summary=").concat(encodeURIComponent(null==j?void 0:j.desc)),"_blank","width=800, height=600, toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, top=100,left=350"):"whatsapp"===b&&window.open("https://api.whatsapp.com/send?url=".concat(encodeURIComponent(a),"&text=").concat(encodeURIComponent(null==j?void 0:j.title)," ").concat(encodeURIComponent(a)),"_blank","width=800, height=600, toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, top=100,left=350")},I=function(a){z(!0)},J=function(a){var b=a.relatedTarget;b===D.current||b===B.current||(0,x.f4)(b,D.current)||(0,x.f4)(b,B.current)||z(!1)};(0,o.useEffect)(function(){E(window.location.href)},[]);var K=o.cloneElement(o.Children.only(a.children),{ref:B});return(0,o.useEffect)(function(){if(B.current){var a,b;null===(a=B.current)|| void 0===a||a.addEventListener("mouseenter",I,!1),null===(b=B.current)|| void 0===b||b.addEventListener("mouseleave",J,!1)}return function(){var a,b;null===(a=B.current)|| void 0===a||a.removeEventListener("mouseenter",I),null===(b=B.current)|| void 0===b||b.removeEventListener("mouseleave",J)}},[B,D]),(0,i.jsxs)(o.Fragment,{children:[K,y?(0,i.jsx)(u,{location:location,onNotVisibleArea:function(){return z(!1)},getContainer:g,targetRef:B,menuRef:D,visible:y,placement:void 0===c?"bottom":c,children:(0,i.jsx)("section",{className:k().shareModelWrap,onMouseLeave:function(){return z(!1)},ref:D,children:"en"===s.locale?(0,i.jsxs)("ul",{children:[(0,i.jsx)("li",{className:"".concat(k().icon," ").concat(k().link),onClick:function(){b(window.location.href)},children:"Copy"}),(0,i.jsx)("li",{className:"".concat(k().icon," ").concat(k().whatsApp),onClick:function(){H(window.location.href,"whatsapp")},children:"WhatsApp"}),(0,i.jsx)("li",{className:"".concat(k().icon," ").concat(k().twitter),onClick:function(){H(window.location.href,"twitter")},children:"Twitter"}),(0,i.jsx)("li",{className:"".concat(k().icon," ").concat(k().linkedIn),onClick:function(){H(window.location.href,"linkedIn")},children:"LinkedIn"}),(0,i.jsx)("li",{className:"".concat(k().icon," ").concat(k().faceBook),onClick:function(){H(window.location.href,"facebook")},children:"Facebook"})]}):(0,i.jsxs)("ul",{children:[(0,i.jsx)("li",{className:"".concat(k().icon," ").concat(k().link),onClick:function(){b(window.location.href)},children:"å¤å¶é¾æ¥"}),(0,i.jsx)("li",{className:"".concat(k().icon," ").concat(k().weibo),onClick:function(){G(window.location.href)},children:"å享è³å¾®å"}),(0,i.jsxs)("li",{className:k().wechat,children:[(0,i.jsx)("span",{children:"微信æ«ä¸æ«"}),(0,i.jsx)("div",{className:k().qrcode,onClick:function(){},children:(0,i.jsx)(C(),{className:k().qrcode,value:window.location.href,size:96,bgColor:"#ffffff",fgColor:"#000000"})})]})]})})}):null]})}window.wx=z()},59552:function(a){a.exports={"share-position":"Position_share-position__Mfovw"}},78758:function(a){a.exports={shareModelWrap:"Share_shareModelWrap__7RKY2",icon:"Share_icon__EABRy",link:"Share_link__6hU6K",weibo:"Share_weibo__hFvbK",
1wechat:"Share_wechat__5yZo1",whatsApp:"Share_whatsApp__nzTBI",linkedIn:"Share_linkedIn__9qKAz",faceBook:"Share_faceBook__6y32n",twitter:"Share_twitter__996Ok",qrcode:"Share_qrcode__ICRcy"}},92703:function(a,b,c){"use strict";var d=c(50414);function e(){}function f(){}f.resetWarningCache=e,a.exports=function(){function a(a,b,c,e,f,g){if(g!==d){var h=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}function b(){return a}a.isRequired=a;var c={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:b,element:a,elementType:a,instanceOf:b,node:a,objectOf:b,oneOf:b,oneOfType:b,shape:b,exact:b,checkPropTypes:f,resetWarningCache:e};return c.PropTypes=c,c}},45697:function(a,b,c){a.exports=c(92703)()},50414:function(a){"use strict";a.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},81614:function(a){!function(b,c){a.exports=c(b)}("object"==typeof window&&window,function(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x;if(!a){console.warn("can't use weixin-js-sdk in server side");return}if(!a.jWeixin)return c={config:"preVerifyJSAPI",onMenuShareTimeline:"menu:share:timeline",onMenuShareAppMessage:"menu:share:appmessage",onMenuShareQQ:"menu:share:qq",onMenuShareWeibo:"menu:share:weiboApp",onMenuShareQZone:"menu:share:QZone",previewImage:"imagePreview",getLocation:"geoLocation",openProductSpecificView:"openProductViewWithPid",addCard:"batchAddCard",openCard:"batchViewCard",chooseWXPay:"getBrandWCPayRequest",openEnterpriseRedPacket:"getRecevieBizHongBaoRequest",startSearchBeacons:"startMonitoringBeacons",stopSearchBeacons:"stopMonitoringBeacons",onSearchBeacons:"onBeaconsInRange",consumeAndShareCard:"consumedShareCard",openAddress:"editAddress"},d=function(){var a,b={};for(a in c)b[c[a]]=a;return b}(),f=(e=a.document).title,g=navigator.userAgent.toLowerCase(),n=navigator.platform.toLowerCase(),h=!(!n.match("mac")&&!n.match("win")),i=-1!=g.indexOf("wxdebugger"),j=-1!=g.indexOf("micromessenger"),k=-1!=g.indexOf("android"),l=-1!=g.indexOf("iphone")|| -1!=g.indexOf("ipad"),m=(n=g.match(/micromessenger\/(\d+\.\d+\.\d+)/)||g.match(/micromessenger\/(\d+\.\d+)/))?n[1]:"",o={initStartTime:G(),initEndTime:0,preVerifyStartTime:0,preVerifyEndTime:0},p={version:1,appId:"",initTime:0,preVerifyTime:0,networkType:"",isPreVerifyOk:1,systemType:l?1:k?2:-1,clientVersion:m,url:encodeURIComponent(location.href)},q={},r={_completes:[]},s={state:0,data:{}},H(function(){o.initEndTime=G()}),t=!1,u=[],v={config:function(b){E("config",q=b);var d=!1!==q.check;H(function(){if(d)y(c.config,{verifyJsApiList:D(q.jsApiList),verifyOpenTagList:D(q.openTagList)},(r._complete=function(a){o.preVerifyEndTime=G(),s.state=1,s.data=a},r.success=function(a){p.isPreVerifyOk=0},r.fail=function(a){r._fail?r._fail(a):s.state=-1},(a=r._completes).push(function(){F()}),r.complete=function(b){for(var c=0,d=a.length;c<d;++c)a[c]();r._completes=[]},r)),o.preVerifyStartTime=G();else{s.state=1;for(var a,b=r._completes,e=0,f=b.length;e<f;++e)b[e]();r._completes=[]}}),v.invoke||(v.invoke=function(b,c,d){a.WeixinJSBridge&&WeixinJSBridge.invoke(b,A(c),d)},v.on=function(b,c){a.WeixinJSBridge&&WeixinJSBridge.on(b,c)})},ready:function(a){(0!=s.state||(r._completes.push(a),!j&&q.debug))&&a()},error:function(a){m<"6.0.2"||(-1==s.state?a(s.data):r._fail=a)},checkJsApi:function(a){y("checkJsApi",{jsApiList:D(a.jsApiList)},(a._complete=function(a){k&&(c=a.checkResult)&&(a.checkResult=JSON.parse(c));var b,c=a,e=c.checkResult;for(b in e){var f=d[b];f&&(e[f]=e[b],delete e[b])}},a))},onMenuShareTimeline:function(a){z(c.onMenuShareTimeline,{complete:function(){y("shareTimeline",{title:a.title||f,desc:a.title||f,img_url:a.imgUrl||"",link:a.link||location.href,type:a.type||"link",data_url:a.dataUrl||""},a)}},a)},onMenuShareAppMessage:function(a){z(c.onMenuShareAppMessage,{complete:function(b){"favorite"===b.scene?y("sendAppMessage",{title:a.title||f,desc:a.desc||"",link:a.link||location.href,img_url:a.imgUrl||"",type:a.type||"link",data_url:a.dataUrl||""}):y("sendAppMessage",{title:a.title||f,desc:a.desc||"",link:a.link||location.href,img_url:a.imgUrl||"",type:a.type||"link",data_url:a.dataUrl||""},a)}},a)},onMenuShareQQ:function(a){z(c.onMenuShareQQ,{complete:function(){y("shareQQ",{title:a.title||f,desc:a.desc||"",img_url:a.imgUrl||"",link:a.link||location.href},a)}},a)},onMenuShareWeibo:function(a){z(c.onMenuShareWeibo,{complete:function(){y("shareWeiboApp",{title:a.title||f,desc:a.desc||"",img_url:a.imgUrl||"",link:a.link||location.href},a)}},a)},onMenuShareQZone:function(a){z(c.onMenuShareQZone,{complete:function(){y("shareQZone",{title:a.title||f,desc:a.desc||"",img_url:a.imgUrl||"",link:a.link||location.href},a)}},a)},updateTimelineShareData:function(a){y("updateTimelineShareData",{title:a.title,link:a.link,imgUrl:a.imgUrl},a)},updateAppMessageShareData:function(a){y("updateAppMessageShareData",{title:a.title,de
1sc:a.desc,link:a.link,imgUrl:a.imgUrl},a)},startRecord:function(a){y("startRecord",{},a)},stopRecord:function(a){y("stopRecord",{},a)},onVoiceRecordEnd:function(a){z("onVoiceRecordEnd",a)},playVoice:function(a){y("playVoice",{localId:a.localId},a)},pauseVoice:function(a){y("pauseVoice",{localId:a.localId},a)},stopVoice:function(a){y("stopVoice",{localId:a.localId},a)},onVoicePlayEnd:function(a){z("onVoicePlayEnd",a)},uploadVoice:function(a){y("uploadVoice",{localId:a.localId,isShowProgressTips:0==a.isShowProgressTips?0:1},a)},downloadVoice:function(a){y("downloadVoice",{serverId:a.serverId,isShowProgressTips:0==a.isShowProgressTips?0:1},a)},translateVoice:function(a){y("translateVoice",{localId:a.localId,isShowProgressTips:0==a.isShowProgressTips?0:1},a)},chooseImage:function(a){y("chooseImage",{scene:"1|2",count:a.count||9,sizeType:a.sizeType||["original","compressed"],sourceType:a.sourceType||["album","camera"]},(a._complete=function(a){if(k){var b=a.localIds;try{b&&(a.localIds=JSON.parse(b))}catch(c){}}},a))},getLocation:function(a){a=a||{},y(c.getLocation,{type:a.type||"wgs84"},(a._complete=function(a){delete a.type},a))},previewImage:function(a){y(c.previewImage,{current:a.current,urls:a.urls},a)},uploadImage:function(a){y("uploadImage",{localId:a.localId,isShowProgressTips:0==a.isShowProgressTips?0:1},a)},downloadImage:function(a){y("downloadImage",{serverId:a.serverId,isShowProgressTips:0==a.isShowProgressTips?0:1},a)},getLocalImgData:function(a){!1===t?(t=!0,y("getLocalImgData",{localId:a.localId},(a._complete=function(a){var b;t=!1,0<u.length&&(b=u.shift(),wx.getLocalImgData(b))},a))):u.push(a)},getNetworkType:function(a){y("getNetworkType",{},(a._complete=function(a){var b=a,a=b.errMsg,c=(b.errMsg="getNetworkType:ok",b.subtype);if(delete b.subtype,c)b.networkType=c;else{var c=a.indexOf(":"),d=a.substring(c+1);switch(d){case"wifi":case"edge":case"wwan":b.networkType=d;break;default:b.errMsg="getNetworkType:fail"}}},a))},openLocation:function(a){y("openLocation",{latitude:a.latitude,longitude:a.longitude,name:a.name||"",address:a.address||"",scale:a.scale||28,infoUrl:a.infoUrl||""},a)},hideOptionMenu:function(a){y("hideOptionMenu",{},a)},showOptionMenu:function(a){y("showOptionMenu",{},a)},closeWindow:function(a){y("closeWindow",{},a=a||{})},hideMenuItems:function(a){y("hideMenuItems",{menuList:a.menuList},a)},showMenuItems:function(a){y("showMenuItems",{menuList:a.menuList},a)},hideAllNonBaseMenuItem:function(a){y("hideAllNonBaseMenuItem",{},a)},showAllNonBaseMenuItem:function(a){y("showAllNonBaseMenuItem",{},a)},scanQRCode:function(a){y("scanQRCode",{needResult:(a=a||{}).needResult||0,scanType:a.scanType||["qrCode","barCode"]},(a._complete=function(a){var b;l&&(b=a.resultStr)&&(b=JSON.parse(b),a.resultStr=b&&b.scan_code&&b.scan_code.scan_result)},a))},openAddress:function(a){y(c.openAddress,{},(a._complete=function(a){a.postalCode=a.addressPostalCode,delete a.addressPostalCode,a.provinceName=a.proviceFirstStageName,delete a.proviceFirstStageName,a.cityName=a.addressCitySecondStageName,delete a.addressCitySecondStageName,a.countryName=a.addressCountiesThirdStageName,delete a.addressCountiesThirdStageName,a.detailInfo=a.addressDetailInfo,delete a.addressDetailInfo},a))},openProductSpecificView:function(a){y(c.openProductSpecificView,{pid:a.productId,view_type:a.viewType||0,ext_info:a.extInfo},a)},addCard:function(a){for(var b=a.cardList,d=[],e=0,f=b.length;e<f;++e){var g=b[e],g={card_id:g.cardId,card_ext:g.cardExt};d.push(g)}y(c.addCard,{card_list:d},(a._complete=function(a){if(b=a.card_list){for(var b,c=0,d=(b=JSON.parse(b)).length;c<d;++c){var e=b[c];e.cardId=e.card_id,e.cardExt=e.card_ext,e.isSuccess=!!e.is_succ,delete e.card_id,delete e.card_ext,delete e.is_succ}a.cardList=b,delete a.card_list}},a))},chooseCard:function(a){y("chooseCard",{app_id:q.appId,location_id:a.shopId||"",sign_type:a.signType||"SHA1",card_id:a.cardId||"",card_type:a.cardType||"",card_sign:a.cardSign,time_stamp:a.timestamp+"",nonce_str:a.nonceStr},(a._complete=function(a){a.cardList=a.choose_card_info,delete a.choose_card_info},a))},openCard:function(a){for(var b=a.cardList,d=[],e=0,f=b.length;e<f;++e){var g=b[e],g={card_id:g.cardId,code:g.code};d.push(g)}y(c.openCard,{card_list:d},a)},consumeAndShareCard:function(a){y(c.consumeAndShareCard,{consumedCardId:a.cardId,consumedCode:
1a.code},a)},chooseWXPay:function(a){y(c.chooseWXPay,B(a),a),F({jsApiName:"chooseWXPay"})},openEnterpriseRedPacket:function(a){y(c.openEnterpriseRedPacket,B(a),a)},startSearchBeacons:function(a){y(c.startSearchBeacons,{ticket:a.ticket},a)},stopSearchBeacons:function(a){y(c.stopSearchBeacons,{},a)},onSearchBeacons:function(a){z(c.onSearchBeacons,a)},openEnterpriseChat:function(a){y("openEnterpriseChat",{useridlist:a.userIds,chatname:a.groupName},a)},launchMiniProgram:function(a){y("launchMiniProgram",{targetAppId:a.targetAppId,path:function(a){var b;if("string"==typeof a&&0<a.length)return b=a.split("?")[0],b+=".html",void 0!==(a=a.split("?")[1])?b+"?"+a:b}(a.path),envVersion:a.envVersion},a)},openBusinessView:function(a){y("openBusinessView",{businessType:a.businessType,queryString:a.queryString||"",envVersion:a.envVersion},(a._complete=function(a){if(k){var b=a.extraData;if(b)try{a.extraData=JSON.parse(b)}catch(c){a.extraData={}}}},a))},miniProgram:{navigateBack:function(a){a=a||{},H(function(){y("invokeMiniProgramAPI",{name:"navigateBack",arg:{delta:a.delta||1}},a)})},navigateTo:function(a){H(function(){y("invokeMiniProgramAPI",{name:"navigateTo",arg:{url:a.url}},a)})},redirectTo:function(a){H(function(){y("invokeMiniProgramAPI",{name:"redirectTo",arg:{url:a.url}},a)})},switchTab:function(a){H(function(){y("invokeMiniProgramAPI",{name:"switchTab",arg:{url:a.url}},a)})},reLaunch:function(a){H(function(){y("invokeMiniProgramAPI",{name:"reLaunch",arg:{url:a.url}},a)})},postMessage:function(a){H(function(){y("invokeMiniProgramAPI",{name:"postMessage",arg:a.data||{}},a)})},getEnv:function(b){H(function(){b({miniprogram:"miniprogram"===a.__wxjs_environment})})}}},w=1,x={},e.addEventListener("error",function(a){var b,c,d;k||(d=(b=a.target).tagName,c=b.src,"IMG"!=d&&"VIDEO"!=d&&"AUDIO"!=d&&"SOURCE"!=d)|| -1!=c.indexOf("wxlocalresource://")&&(a.preventDefault(),a.stopPropagation(),(d=b["wx-id"])||(d=w++,b["wx-id"]=d),x[d]||(x[d]=!0,wx.ready(function(){wx.getLocalImgData({localId:c,success:function(a){b.src=a.localData}})})))},!0),e.addEventListener("load",function(a){var b;k||(b=(a=a.target).tagName,a.src,"IMG"!=b&&"VIDEO"!=b&&"AUDIO"!=b&&"SOURCE"!=b)||(b=a["wx-id"])&&(x[b]=!1)},!0),b&&(a.wx=a.jWeixin=v),v;return a.jWeixin;function y(b,c,d){a.WeixinJSBridge?WeixinJSBridge.invoke(b,A(c),function(a){C(b,a,d)}):E(b,d)}function z(b,c,d){a.WeixinJSBridge?WeixinJSBridge.on(b,function(a){d&&d.trigger&&d.trigger(a),C(b,a,c)}):E(b,d||c)}function A(a){return(a=a||{}).appId=q.appId,a.verifyAppId=q.appId,a.verifySignType="sha1",a.verifyTimestamp=q.timestamp+"",a.verifyNonceStr=q.nonceStr,a.verifySignature=q.signature,a}function B(a){return{timeStamp:a.timestamp+"",nonceStr:a.nonceStr,package:a.package,paySign:a.paySign,signType:a.signType||"SHA1"}}function C(a,b,c){"openEnterpriseChat"!=a&&"openBusinessView"!==a||(b.errCode=b.err_code),delete b.err_code,delete b.err_desc,delete b.err_detail;var e,f,g,h,i=b.errMsg,a=(i||(i=b.err_msg,delete b.err_msg,i=(e=a,f=i,(h=d[e])&&(e=h),h="ok",f&&(g=f.indexOf(":"),"access denied"!=(h=(h=(h=-1!=(h=-1!=(h="failed"==(h="confirm"==(h=f.substring(g+1))?"ok":h)?"fail":h).indexOf("failed_")?h.substring(7):h).indexOf("fail_")?h.substring(5):h).replace(/_/g," ")).toLowerCase())&&"no permission to execute"!=h||(h="permission denied"),""==(h="config"==e&&"function not exist"==h?"ok":h))&&(h="fail"),f=e+":"+h),b.errMsg=i),(c=c||{})._complete&&(c._complete(b),delete c._complete),i=b.errMsg||"",q.debug&&!c.isInnerInvoke&&alert(JSON.stringify(b)),i.indexOf(":"));switch(i.substring(a+1)){case"ok":c.success&&c.success(b);break;case"cancel":c.cancel&&c.cancel(b);break;default:c.fail&&c.fail(b)}c.complete&&c.complete(b)}function D(a){if(a){for(var b=0,d=a.length;b<d;++b){var e=a[b],e=c[e];e&&(a[b]=e)}return a}}function E(a,b){var c;!q.debug||b&&b.isInnerInvoke||((c=d[a])&&(a=c),b&&b._complete&&delete b._complete,console.log('"'+a+'",',b||""))}function F(a){var b;h||i||q.debug||m<"6.0.2"||p.systemType<0||(b=new Image,p.appId=q.appId,p.initTime=o.initEndTime-o.initStartTime,p.preVerifyTime=o.preVerifyEndTime-o.preVerifyStartTime,v.getNetworkType({isInnerInvoke:!0,success:function(c){p.networkType=c.networkType,c="https://open.weixin.qq.com/sdk/report?v="+p.version+"&o="+p.isPreVerifyOk+"&s="+p.systemType+"&c="+p.clientVersion+"&a="+p.appId+"&n="+p.networkType+"&i="+p.initTime+"&p="+p.preVerifyTime+"&u="+p.url+"&jsapi_name="+(a?a.jsApiName:""),b.src=c}}))}function G(){return new Date().getTime()}function H(b){j&&(a.WeixinJSBridge?b():e.addEventListener&&e.addEventListener("WeixinJSBridgeReady",b,!1))}})}}])
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.