PageSourceSearch

https://www.ploom.az/_next/static/chunks/reactPlayerWistia.3c4785689c9c57b7.js

js ploom.az collected 2026-10-07 23:02:56 UTC 10,440 bytes, 35 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9340],{8841:(t,e,i)=>{i.r(e),i.d(e,{default:()=>W});var s,o,a,l,n,r,d,u,h,c,p,m,f,v,y,b=i(12900),g=i(49),w=i(87790),E=i(3235),C=i(7620);let L=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","waitingforkey","resize","enterpictureinpicture","leavepictureinpicture","webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"],A=globalThis.document?.createElement("template");A&&(A.innerHTML=`
2    <style>
3      :host {
4        display: inline-block;
5        line-height: 0;
6      }
7
8      video,
9      audio {
10        max-width: 100%;
11        max-height: 100%;
12        min-width: 100%;
13        min-height: 100%;
14      }
15    </style>
16    <slot></slot>
17  `);let T=(t,{tag:e,is:i})=>{let s=globalThis.document?.createElement(e,{is:i}
17),o=s?k(s):[];return class a extends t{static Events=L;static template=A;static skipAttributes=[];static #t;static get observedAttributes(){return a.#e(),[...s?.constructor?.observedAttributes??[],"autopictureinpicture","disablepictureinpicture","disableremoteplayback","autoplay","controls","controlslist","crossorigin","loop","muted","playsinline","poster","preload","src"]}static #e(){if(this.#t)return;this.#t=!0;let t=new Set(this.observedAttributes);for(let e of(t.delete("muted"),o))if(!(e in this.prototype))if("function"==typeof s[e])this.prototype[e]=function(...t){this.#i();let i=()=>this.call?this.call(e,...t):this.nativeEl[e].apply(this.nativeEl,t);return this.loadComplete&&!this.isLoaded?this.loadComplete.then(i):i()};else{let i={get(){this.#i();let i=e.toLowerCase();if(t.has(i)){let t=this.getAttribute(i);return null!==t&&(""===t||t)}return this.get?.(e)??this.nativeEl?.[e]??this.#s[e]}};e!==e.toUpperCase()&&(i.set=async function(i){this.#i();let s=e.toLowerCase();t.has(s)?!0===i||!1===i||null==i?this.toggleAttribute(s,!!i):this.setAttribute(s,i):(this.loadComplete&&!this.isLoaded&&await this.loadComplete,this.set)?this.set(e,i):this.nativeEl[e]=i}),Object.defineProperty(this.prototype,e,i)}}#o;#a;#l=!1;#n=!1;#r;#s;constructor(){super(),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.append(this.constructor.template.content.cloneNode(!0))),this.load!==a.prototype.load&&(this.loadComplete=new M)}get loadComplete(){return this.#a}set loadComplete(t){this.#n=!1,this.#a=t,t?.then(()=>{this.#n=!0})}get isLoaded(){return this.#n}get nativeEl(){return this.#r??this.shadowRoot.querySelector(e)??this.querySelector(e)}set nativeEl(t){this.#r=t}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(t){this.toggleAttribute("muted",!!t)}get src(){return this.getAttribute("src")}set src(t){this.setAttribute("src",`${t}`)}get preload(){return this.getAttribute("preload")??this.nativeEl?.preload}set preload(t){this.setAttribute("preload",`${t}`)}async #i(){if(this.#o)return;for(let t of(this.#o=!0,this.#d(),this.#u(),o))this.#h(t);let t=new Map,e=this.shadowRoot.querySelector("slot:not([name])");for(let i of(e?.addEventListener("slotchange",()=>{let i=new Map(t);e.assignedElements().filter(t=>["track","source"].includes(t.localName)).forEach(async e=>{i.delete(e);let s=t.get(e);s||(s=e.cloneNode(),t.set(e,s)),this.loadComplete&&!this.isLoaded&&await this.loadComplete,this.nativeEl.append?.(s)}
17),i.forEach(t=>t.remove())}),this.constructor.Events))this.shadowRoot.addEventListener?.(i,t=>{t.target===this.nativeEl&&this.dispatchEvent(new CustomEvent(t.type,{detail:t.detail}))},!0)}#h(t){if(Object.prototype.hasOwnProperty.call(this,t)){let e=this[t];delete this[t],this[t]=e}}#d(){let t=document.createElement(e,{is:i});for(let{name:e,value:i}of(t.muted=this.hasAttribute("muted"),this.attributes))t.setAttribute(e,i);for(let e of(this.#s={},k(t)))this.#s[e]=t[e];t.removeAttribute("src"),t.load()}async #u(){if(this.loadComplete&&!this.isLoaded&&await this.loadComplete,!this.nativeEl){let t=document.createElement(e,{is:i});t.part=e,this.shadowRoot.append(t)}this.nativeEl.muted=this.hasAttribute("muted")}attributeChangedCallback(t,e,i){this.#i(),"src"===t&&this.load!==a.prototype.load&&this.#c(),this.#p(t,e,i)}async #c(){this.#l&&(this.loadComplete=new M),this.#l=!0,await Promise.resolve(),await this.load(),this.loadComplete?.resolve(),await this.loadComplete}async #p(t,e,i){this.loadComplete&&!this.isLoaded&&await this.loadComplete,["id","class",...this.constructor.skipAttributes].includes(t)||(null===i?this.nativeEl.removeAttribute?.(t):this.nativeEl.setAttribute?.(t,i))}connectedCallback(){this.#i()}}};function k(t){let e=[];for(let i=Object.getPrototypeOf(t);i&&i!==HTMLElement.prototype;i=Object.getPrototypeOf(i))e.push(...Object.getOwnPropertyNames(i));return e}class M extends Promise{constructor(t=()=>{}){let e,i;super((s,o)=>{t(s,o),e=s,i=o}),this.resolve=e,this.reject=i}}let S=globalThis.document?T(HTMLElement,{tag:"video"}):class{};globalThis.document&&T(HTMLElement,{tag:"audio"});let _=null==(v=globalThis.document)?void 0:v.createElement("template");_&&(_.innerHTML=`
18  <div class="wistia_embed"></div>
19  `);let N=null==(y=globalThis.document)?void 0:y.createElement("template");N&&(N.innerHTML=`
20  <style>
21    :host {
22      display: inline-block;
23      min-width: 300px;
24      min-height: 150px;
25      position: relative;
26    }
27    ::slotted(.wistia_embed) {
28      position: absolute;
29      width: 100%;
30      height: 100%;
31    }
32  </style>
33  <slot></slot>
34  `);class P extends S{static template=N;static skipAttributes=["src"];#m=null;constructor(){super(),function(t,e){if(Object.hasOwn(t,e)){let i=t[e];delete t[e],t[e]=i}}(this,"config")}get config(){return this.#m}set config(t){this.#m=t}get nativeEl(){var t;return(null==(t=this.api)?void 0:t.elem())??this.querySelector("video")}async load(){var t,e;let i;if(null==(t=this.querySelector(".wistia_embed"))||t.remove(),!this.src)return;await new Promise(t=>setTimeout(t,50));let s=this.src.match(/(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/i)[1],o={autoPlay:this.autoplay,silentAutoPlay:this.autoplay?"allow":void 0,preload:this.preload??"metadata",playsinline:this.playsInline,endVideoBehavior:this.loop?"loop":void 0,chromeless:!this.controls,playButton:this.controls,muted:this.defaultMuted,...this.#m??{}};this.append(_.content.cloneNode(!0));let a=this.querySelector(".wistia_embed");a.id||(e=s,i=++R,a.id=`${e}${i}`),a.classList.add(`wistia_async_${s}`),await H("https://fast.wistia.com/assets/external/E-v1.js","Wistia"),this.api=await new Promise(t=>{globalThis._wq.push({id:a.id,onReady:t,options:o})})}async attributeChangedCallback(t,e,i){if("controls"===t){await this.loadComplete,"controls"===t&&(this.api.bigPlayButtonEnabled(this.controls),this.controls?this.api.releaseChromeless():this.api.requestChromeless());return}super.attributeChangedCallback(t,e,i)}get duration(){var t;return null==(t=this.api)?void 0:t.duration()}async play(){return await this.loadComplete,this.api.play(),new Promise(t=>this.addEventListener("playing",t))}}let O={};async function H(t,e){if(!e)return import(t);if(O[t])return O[t];if(self[e])return self[e];let i=new Promise((i,s)=>{let o=document.createElement("script");o.defer=!0,o.src=t,o.onload=()=>i(self[e]),o.onerror=s,document.head.append(o)});return O[t]=i,i}let R=0;globalThis.customElements&&!globalThis.customElements.get("wistia-video")&&globalThis.customElements.define("wistia-video",P);var j=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),x={className:"class",htmlFor:"for"};function q(t){return t.toLowerCase()}function I(t){return"boolean"==typeof t?t?"":void 0:"function"==typeof t?void 0:(void 0===t?"undefined":(0,E._)(t))!=="object"||null===t?t:void 0}function $(t,e,i){var s,o;t[e]=i,null==i&&e in(null!=(s=null==(o=globalThis.HTMLElement)?void 0:o.prototype)?s:{})&&t.removeAttribute(e)}var W=(o=(s={react:C,tagName:"wistia-video",elementClass:P,toAttributeName:function(t){return"muted"===t?"":"defaultMuted"===t?"muted":q(t)}}).react,a=s.tagName,l=s.elementClass,n=s.events,r=s.displayName,d=s.defaultProps,h=void 0===(u=s.toAttributeName)?q:u,p=void 0===(c=s.toAttributeValue)?I:c,m=Number.parseInt(o.version)>=19,(f=o.forwardRef(function(t,e){var i=o.useRef(null),s=o.useRef(new Map),r={},u={},c={},f={},v=!0,y=!1,E=void 0;try{for(var C,L,A,T=Object.entries(t)[Symbol.iterator]();!(v=(A=T.next()).done);v=!0)!function(){var t,e,i=(0,w._)(A.value,2),s=i[0],o=i[1];if(j.has(s))return c[s]=o;var a=h(null!=(t=x[s])?t:s);if(l.prototype&&s in l.prototype&&!(s in(null!=(e=null==(C=globalThis.HTMLElement)?void 0:C.prototype)?e:{}))&&!(null==(L=l.observedAttributes)?void 0:L.some(function(t){return t===a})))return f[s]=o;if(s.startsWith("on"))return r[s]=o;var n=p(o);if(a&&null!=n&&(u[a]=String(n),m||(c[a]=n)),a&&m){var d=I(o);n!==d?c[a]=n:c[a]=o}}()}catch(t){y=!0,E=t}finally{try{v||null==T.return||T.return()}finally{if(y)throw E}}if("u">typeof window){for(var k in r)!function(t){var e,s=r[t],a=t.endsWith("Capture"),l=(null!=(e=null==n?void 0:n[t])?e:t.slice(2).toLowerCase()).slice(0,a?-7:void 0);o.useLayoutEffect(function(){var t=null==i?void 0:i.current;if(t&&"function"==typeof s)return t.addEventListener(l,s,a),function(){t.removeEventListener(l,s,a)}},[null==i?void 0:i.current,s])}(k);o.useLayoutEffect(function(){if(null!==i.current){var t=new Map;for(var e in f)$(i.current,e,f[e]),s.current.delete(e),t.set(e,f[e]);var o=!0,a=!1,l=void 0;try{for(var n,r=s.current[Symbol.iterator]();!(o=(n=r.next()).done);o=!0){var d=(0,w._)(n.value,2),u=d[0];d[1],$(i.current,u,void 0)}}catch(t){a=!0,l=t}finally{try{o||null==r.return||r.return()}finally{if(a)throw l}}s.current=t}})}if("u"<typeof window&&(null==l?void 0:l.getTemplateHTML)&&(null==l?void 0:l.shadowRootOptions)){var M=l.shadowRootOptions,S=M.mode,_=M.delegatesFocus;c.children=[o.createElement("template",{shadowrootmode:S,shadowrootdelegatesfocus:_,dangerouslySetInnerHTML:{__html:l.getTemplateHTML(u,t)},key:"ce-la-react-ssr-template-shadow-root"}),c.children]}return o.createElement(a,(0,g._)((0,b._)({},d,c),{ref:o.useCallback(function(t){i.current=t,"function"==typeof e?e(t):null!==e&&(e.current=t)},[e])}),c.children)})).displayName=null!=r?r:l.name,f)}}]);
35//# sourceMappingURL=reactPlayerWistia.3c4785689c9c57b7.js.map

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.