PageSourceSearch

https://slot365.ai/assets/theme-0/register.impl.XIT_kIO-.js

js slot365.ai collected 2026-10-05 15:06:22 UTC 4,070 bytes, 1 lines download raw bytes

1var I=Object.defineProperty;var b=(s,e,t)=>e in s?I(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var l=(s,e,t)=>b(s,typeof e!="symbol"?e+"":e,t);import{dI as p,b as g,fL as w,sC as y,hx as P,ec as S,ed as T,sb as _}from"./commonChunk.ClFq2l8G.js";import{H as k}from"./vendorChunk.B0S1SHvJ.js";import"../vendors/vendor-stable.B-qaYwd4.js";function m(s){p.doReport({rule:p.rules.SENSOR_BURIED,eventName:p.sensorEvents.NotificationsPermissions,payload:{...s}})}function R(){p.doReport({rule:p.rules.SENSOR_BURIED,eventName:p.sensorEvents.GuideNotification})}function E(){var e,t;const s=document.querySelector(".notic-user-tip-warp");s&&(R(),(e=s.querySelector(".web-push-tip-cancel"))==null||e.addEventListener("click",function(){m({NoticeType:"webPush",selectType:"denied"})}),(t=s.querySelector(".confirm"))==null||t.addEventListener("click",function(){m({NoticeType:"webPush",selectType:"granted"})}))}function N(){navigator.permissions.query({name:"notifications"}).then(s=>{s.onchange=()=>{m({NoticeType:"permission",selectType:s.state})}})}window.webPushLog=["----"];const o=s=>{window.webPushLog.push(s),setTimeout(()=>{window.webPushLog=["----"]},1e3*60*5)},f=class f{constructor(){l(this,"appkey","");l(this,"repeatTimes",5);l(this,"params",{user_str:"",callback:()=>{},reporter:{}})}static getInstance(){return this.instance||(this.instance=new f),this.instance}static getVisitorFingerId(){const{getFingerId:e}=g(),t=w.localStorage.get(y);if(t)return t;const c=e||k();return w.localStorage.set(y,c),c}async init(e){(!e.user_str||e.user_str==="undefined")&&(e.user_str=f.getVisitorFingerId()),o(["WebPush starting place"]),this.appkey&&(this.params=e,this.loadJs())}async setConfig(e){o(["Received backend data",e]),this.appkey=e.webKey}loadJs(){P([{id:"gt",src:"/libs/[email protected]/webPushSdk.produce.min.js"}]).serial().then(()=>{var c,u;const e=window.location.origin+"/libs/[email protected]/sw.produce.min.js";window.MTpushInterface.mtPush.onDisconnect(()=>{this.repeatTimes--,o(["Disconnected!"]),this.repeatTimes>0&&this.loadJs()}),window.MTpushInterface.onMsgReceive(i=>{o(["Received push message",i])}),o(["this.user_str",(c=this.params)==null?void 0:c.user_str]);const t=this;window.MTpushInterface.init({swUrl:e,appkey:this.appkey,user_str:(u=this.params)==null?void 0:u.user_str,fail(i){o(["Online push creation failed",i])},success(i){var n,r;o(["Online push created successfully",i]),setTimeout(()=>{var a,d;(d=(a=t.params.reporter)==null?void 0:a.ButtonListener)==null||d.call(a)},400),(r=(n=t.params.reporter)==null?void 0:n.PermissionsListener)==null||r.call(n)},webPushcallback(i,n){o(["Status codes and messages received by the user,code,tip",i,n])},canGetInfo(i){var n,r;try{o(["Get RegId",window.MTpushInterface.getRegistrationID()]),o(["Get more information after successful access",i]),i.regid&&((r=(n=t.params)==null?void 0:n.callback)==null||r.call(n,i.regid),o(["Currently logged in, transmitting regId to the backend",i.regid]))}catch(a){console.error("Notification error---",a)}},custom:()=>{o(["The custom function has been executed"])}})}).catch(()=>{o(["Initialization failed"])})}};l(f,"instance");let h=f;const O=s=>{var t,c,u;const e=h.getInstance();if(s){const i=String((c=(t=g())==null?void 0:t.userInfos)==null?void 0:c.username),n=r=>{g().hasLogined&&r&&setTimeout(()=>{_({jpushWebId:r})},5e3)};window.self!==window.top?(u=S(T.EVENT_JPUSH_PARAMS).send({engageLabWebPush:s,user_str:i},{merge:1e3,timeout:60*1e3*2}))==null||u.then(r=>{var a;n((a=r.payload)==null?void 0:a.regid)}):(e.appkey||e.setConfig(s),e.init({callback:n,user_str:i,reporter:{ButtonListener:E,PermissionsListener:N}}))}},B=s=>{const{payload:e}=s,t=h.getInstance(),c=e.engageLabWebPush,u=e.user_str;if(c){t.appkey||t.setConfig(c);const i=n=>{var d;const r=document.querySelector(".pwa-iframe"),a=Object.assign(s,{payload:{regid:n}});(d=r.contentWindow)==null||d.postMessage(JSON.stringify(a),new URL(r.src).origin),console.log("jpush regid",n)};t.init({callback:i,user_str:u})}};export{O as registerWebPush,B as registerWebPushInParent};

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.