PageSourceSearch

https://langmobile.com/wp-content/themes/langmobile/dist/assets/modules-video-BTj6biBc.js

js langmobile.com collected 2026-10-04 02:16:37 UTC 1,825 bytes, 1 lines download raw bytes

1import{B as s,j as e,k as l,V as n}from"./app-shared.bundle-BP6fmk7e.js";const a=["(min-width: 768px)"];class _{constructor(t,i){this.el=t,this.emitter=i,this._action=null,this._playPromise=null,this._src=this.el.dataset.src,this._src_mobile=this.el.dataset.srcMobile,this._onBreakpointChange=this._onBreakpointChange.bind(this),this._onMetadata=this._onMetadata.bind(this),this._onScrollCall=this._onScrollCall.bind(this),this._src&&this._src_mobile&&(this._bp=s(a,this._onBreakpointChange))}init(){this._bindEvents(),this._bindScrollEvents(),this._bp?this._bp.run():this._onBreakpointChange()}destroy(){this._unbindScrollEvents(),this._unbindEvents(),this._bp&&this._bp.dispose(),this.el=null,this.emitter=null,this._action=null,this._playPromise=null,this._src=null,this._src_mobile=null,this._bp=null,this._onBreakpointChange=null,this._onMetadata=null,this._onScrollCall=null}play(t=!1){this.el&&(this._action==="play"&&t===!1||(this._action="play",!this._playPromise&&(this._playPromise=this.el?.play().finally(()=>{this._playPromise=null}))))}pause(){this.el&&this._action!=="pause"&&(this._action="pause",this._playPromise?this._playPromise.then(()=>this.el?.pause()):this.el?.pause())}_bindEvents(){e(this.el,"loadedmetadata",this._onMetadata),this._bp?.on()}_unbindEvents(){l(this.el,"loadedmetadata",this._onMetadata),this._bp?.off()}_bindScrollEvents(){this.emitter.on("SiteScroll.video",this._onScrollCall)}_unbindScrollEvents(){this.emitter.off("SiteScroll.video",this._onScrollCall)}_onBreakpointChange(){this.el.setAttribute("src",this.src),this._action==="play"&&this.play(!0)}_onMetadata(){this.emitter.emit("SiteScroll.update")}_onScrollCall(t,i,o){i.el===this.el&&this[t==="enter"?"play":"pause"]()}get src(){return this._src_mobile?n.width<768?this._src_mobile:this._src:this._src}}export{_ as default};

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.