LinuxConfig/LarkShell/PC_Gadget/7195161935556460547/app/cli_9cb844403dbb9108/2.16.2010/app.js

1 line
166 KiB
JavaScript
Raw Normal View History

2023-10-14 02:46:39 +08:00
define("app.js",(function(e,t,a,r,n,o,i,s,p,l,c,u,d,h,v,_,b,f,g,w,y,m,S,O){var I=!1,T="function"==typeof tt.getLaunchOptionsSync;if(T){var E=tt.getLaunchOptionsSync();E.mode?I="sidebar-semi"===E.mode||"window-semi"===E.mode:T=!1}T||(I=tt.getSystemInfoSync().windowWidth<=400);console.log("pc app merge",T,I),I?(tt.PCAppGetPrintHtml=()=>{},function(){tt.__approvalInfo={lifeCycleBreadcrumb:[],metricLifeCycleBreadcrumbLength:0,breadcrumb:[],metricBreadcrumbLength:0},tt.__approvalPerformance={};const t=Date.now();tt.__approvalInfo.appJsStartTimestamp=t,e("./m_runtime");const a=Date.now();tt.__approvalPerformance.metricRuntimeJsLoadDuration=a-t,e("./m_common");const r=Date.now();tt.__approvalPerformance.metricCommonJsLoadDuration=r-a,e("./m_vendors");const n=Date.now();tt.__approvalPerformance.metricVendorsJsLoadDuration=n-r,e("./m_taro");const o=Date.now();tt.__approvalPerformance.metricTaroJsLoadDuration=o-n,tt.__approvalInfo.loadEndTimestamp=o,(tt.webpackJsonp=tt.webpackJsonp||[]).push([[4],{1079:function(e,t,a){"use strict";(function(e){var r=a(6),n=a(74),o=a(0),i=a(15),s=a.n(i),p=a(7),l=a(17),c=a(734),u=(a(1592),a(153)),d=a(14),h=a(1),v=a(19),_=a(359),b=a(87),f=a(1177),g=a(158),w=(a(1597),a(1598),a(73)),y=a(186),m=a(206),S=a(25),O=a(16),I=a(697),T=a(625),E=a(324),L=a(75),x=a(453),R=a(677),D=a(309),A=a(199),k=a(93),P=a(45),C=a(210),q=a(512),M=a(35),j=a(4),N=Object(v.b)("mobile:src/app.tsx");class F extends o.Component{constructor(){super(...arguments),Object(r.a)(this,"initV1Language",(()=>{wx.t=h.t})),Object(r.a)(this,"setPolyfills",(()=>{var{system:t,brand:a,platform:r}=d.k;/ios\s*10/gi.test(t)&&"devtools"!==a&&"devtools"!==r&&!Promise&&(Promise=e.Promise)})),Object(r.a)(this,"reportColdLaunch",(()=>{var{version:e,model:t,brand:a,platform:r,system:n}=d.k,o={language_code:Object(d.b)(),version:e,model:t,brand:a,system:n,platform:r,env:S.m};Object(l.b)("mp_launch_sys_info",o)})),Object(r.a)(this,"setRouteEvent",(()=>{"function"==typeof m.a.onAppRoute&&m.a.onAppRoute((e=>{Object(n.e)("enterRouter"),Object(D.c)(e),Object(D.e)(e),Object(v.f)(),Object(g.a)(e.path),b.a.setPagePath(e.path),b.a.setPageQuery(e.query);var t={openType:e.openType,url_path:e.path,scene:e.scene,query:JSON.stringify(e.query)};Object(l.b)("mp_on_app_route",t),N("commonOnAppRoute",t),p.a.info("setRouteEvent","onAppRoute",t),Object(I.a)()}))})),Object(r.a)(this,"setNetworkListener",(()=>{tt.onNetworkQualityChange((e=>{var t,{networkQualityType:a}=e,r=getCurrentPages(),n=(null===(t=r[r.length-1])||void 0===t?void 0:t.__route__)||"unknown";N("networkQualityChange",{networkType:a,page:n})}))}))}onLaunch(e){var t=Date.now();if(tt.__approvalPerformance.metricAppJsStartToOnLaunchDuration=t-tt.__approvalInfo.appJsStartTimestamp,tt.__approvalPerformance.metricLoadEndToOnLaunchDuration=t-tt.__approvalInfo.loadEndTimestamp,tt.__approvalInfo.launchPath=e.path,tt.__approvalInfo.launchQuery=JSON.stringify(e.query||{}),tt.__approvalInfo.launchScene="".concat(e.scene),Object(C.b)({type:"appOnLaunch",timestamp:t,scene:tt.__approvalInfo.launchScene,query:tt.__approvalInfo.launchQuery,path:tt.__approvalInfo.launchPath}),"pages/detail/index"!==e.path&&"pages/detail/index-old"!==e.path&&"package-detail-at/detail-at/index"!==e.path||!Object(P.l)(e.query)){var a=M.a.getSync(q.b),r=Object(C.e)(e.path,e.query,"1"===(null==a?void 0:a.tenantId));null===r?(tt.__approvalInfo.shouldColdStartToTrusteeshipPage=!1,tt.__approvalInfo.specialColdStartReason="none"):(C.d.current=!0,tt.__approvalInfo.specialColdStartReason=r.scene,setTimeout((()=>{C.d.current=!1}),1e4),tt.__approvalInfo.shouldColdStartToTrusteeshipPage=!0)}else tt.__approvalInfo.shouldColdStartToTrusteeshipPage=!0,tt.__approvalInfo.specialColdStartReason="none";tt.__approvalInfo.onLaunchTimestamp=t,Object(c.b)(),Object(n.a)("onLaunch");var{scene:o}=e;N("commonAppLaunch",e),p.a.info("onLaunch",e),Object(_.b)(e),Object(n.e)("onLaunch"),w.b.globalStore.setData("scene",Number(o)||0),Object(f.a)(e),Object(u.f)(s.a),this.setPolyfills(),this.setRouteEvent(),this.reportColdLaunch(),this.initV1Language(),Object(y.c)().then((()=>{tt.__