PageSourceSearch

https://www.wholesalesuppliesplus.com/cdn/shop/t/206/assets/-core-…?v=112825565902792149721790256142

js wholesalesuppliesplus.com collected 2026-10-02 06:08:00 UTC 4,763 bytes, 1 lines download raw bytes

1import{_}from"./chunk-preload-helper-D7HrI6pR.js";import{B as P}from"./chunk-BaseElement-COVKFV2h.js";import{c as T}from"./chunk-deferred-media-Clw3gdQB.js";import{c as g}from"./chunk-consume-BsoYqMTv.js";import{t as D}from"./chunk-custom-element-BhZVzxrc.js";import{n as h}from"./chunk-property-BXqvfTtY.js";import{r as c}from"./chunk-query-async-ChW7oX9n.js";import"./chunk-lit-element-CULRVKo8.js";import"./chunk-create-context-89xeped_.js";import"./chunk-context-request-event-CEfviNJd.js";import"./chunk-base-DIkkzJ-c.js";var w=Object.defineProperty,A=Object.getOwnPropertyDescriptor,E=t=>{throw TypeError(t)},r=(t,e,i,s)=>{for(var a=s>1?void 0:s?A(e,i):e,n=t.length-1,u;n>=0;n--)(u=t[n])&&(a=(s?u(e,i,a):u(a))||a);return s&&a&&w(e,i,a),a},C=(t,e,i)=>e.has(t)||E("Cannot "+i),M=(t,e,i)=>e.has(t)?E("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),p=(t,e,i)=>(C(t,e,"access private method"),i),l,L,m,f,y;const v={PAUSE:"deferred-media::pause",PLAY:"deferred-media::play"},d={ENDED:0,PLAYING:1,PAUSED:2};let o=class extends P{constructor(){super(),M(this,l),this.playing=!1,this.loaded=!1,this.handlePosterClick=this.handlePosterClick.bind(this)}get isInlineHTML5LoopingVideo(){return this.mediaType==="video"&&this.loop&&this.autoplay}firstUpdated(t){super.firstUpdated(t),this.isInlineHTML5LoopingVideo&&p(this,l,y).call(this,!1,!1)}updated(t){super.updated(t),!this.isInlineHTML5LoopingVideo&&(this.activeDeferredMedia===this?p(this,l,y).call(this):this.pause(!0))}async connectedCallback(){super.connectedCallback();const t=await this.poster;t==null||t.addEventListener("click",this.handlePosterClick)}play(){this.playing||(this.$emit(v.PLAY),this.playing=!0)}pause(t=!1){if(!t){if(!this.playing)return;this.$emit(v.PAUSE)}this.playing=!1,!this.isInlineHTML5LoopingVideo&&t&&p(this,l,L).call(this)}handlePosterClick(t){t.preventDefault(),this.play()}async _attachHTMLVideoEvents(){const t=await this.video;t&&(t.addEventListener("pause",()=>{this.playing=!1,this.pause()}),t.addEventListener("play",()=>{this.play()}))}async _attachYoutubeEvents(){const{default:t}=await _(async()=>{const{default:i}=await import("./chunk-index-C43HUeRb.js").then(s=>s.i);return{default:i}},[]),e=await this.iframe;e&&(this.player=t(e,{playerVars:{autoplay:this.autoplay?1:0,controls:this.controls?1:0,loop:this.loop?1:0,playsinline:1,rel:0,modestbranding:1}}),this.player.getPlayerState().then(i=>{this.playing=i===d.PLAYING}),this.player.on("stateChange",i=>{switch(i.data){case d.PLAYING:this.play();break;case d.PAUSED:case d.ENDED:this.playing=!1,this.pause();break}}))}async _attachVimeoEvents(){const t=await _(()=>import("./chunk-player.es-BygSSrCb.js"),[]),e=await this.iframe;if(!e)return;const i=new t(e,{autoplay:this.autoplay,controls:this.controls,loop:this.loop,muted:this.muted,byline:!1,title:!1});i.on("play",()=>{this.play()}),i.on("pause",()=>{this.playing=!1,this.pause()})}_initListners(){this.mediaType==="video"&&this._attachHTMLVideoEvents(),this.mediaType==="external_video"&&(this.host==="youtube"&&this._attachYoutubeEvents(),this.host==="vimeo"&&this._attachVimeoEvents())}};l=new WeakSet;L=function(){return p(this,l,m).call(this,!1)};m=async function(t=!0){var e,i,s,a;if(this.loaded)if(this.mediaType==="video"){const n=await this.video;t?n==null||n.play():n==null||n.pause()}else this.mediaType==="external_video"&&(this.host==="youtube"?t?(e=this.player)==null||e.playVideo():(i=this.player)==null||i.pauseVideo():this.host==="vimeo"&&(t?(s=this.player)==null||s.play():(a=this.player)==null||a.pause()))};f=function(){return p(this,l,m).call(this,!0)};y=async function(t=!0,e=!0){if(this.loaded)p(this,l,f).call(this);else{this.loaded=!0;const i=document.createElement("div"),s=await this.template;s&&s.content.firstElementChild&&i.appendChild(s.content.firstElementChild.cloneNode(!0));const a=i.querySelector("video, iframe");if(!a)return;e?this.innerHTML=a.outerHTML:this.appendChild(a),t&&(a==null||a.focus()),a&&a.nodeName=="VIDEO"&&requestAnimationFrame(()=>{p(this,l,f).call(this)}),this._initListners()}};r([g({context:T,subscribe:!0})],o.prototype,"activeDeferredMedia",2);r([h({type:String})],o.prototype,"host",2);r([h({type:String,attribute:"media-type"})],o.prototype,"mediaType",2);r([h({type:Boolean,converter:t=>t==="true"})],o.prototype,"autoplay",2);r([h({type:Boolean,converter:t=>t==="true"})],o.prototype,"controls",2);r([h({type:Boolean,converter:t=>t==="true"})],o.prototype,"loop",2);r([h({type:Boolean,converter:t=>t==="true"})],o.prototype,"muted",2);
1r([c('[id^="Deferred-Poster-Modal-"]')],o.prototype,"poster",2);r([c("template")],o.prototype,"template",2);r([c("video")],o.prototype,"video",2);r([c("iframe")],o.prototype,"iframe",2);o=r([D("deferred-media")],o);

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.