File: /home/dv-pro/public_html/wp-content/plugins/simply-static/src/admin/build/reactPlayerDash.js
"use strict";(globalThis.webpackChunksimplystatic_settings=globalThis.webpackChunksimplystatic_settings||[]).push([[395],{121:(t,e,i)=>{i.d(e,{lB:()=>c});const n=["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"],s=["autopictureinpicture","disablepictureinpicture","disableremoteplayback","autoplay","controls","controlslist","crossorigin","loop","muted","playsinline","poster","preload","src"];function o(t){return`\n <style>\n :host {\n display: inline-flex;\n line-height: 0;\n flex-direction: column;\n justify-content: end;\n }\n\n audio {\n width: 100%;\n }\n </style>\n <slot name="media">\n <audio${l(t)}></audio>\n </slot>\n <slot></slot>\n `}function a(t){return`\n <style>\n :host {\n display: inline-block;\n line-height: 0;\n }\n\n video {\n max-width: 100%;\n max-height: 100%;\n min-width: 100%;\n min-height: 100%;\n object-fit: var(--media-object-fit, contain);\n object-position: var(--media-object-position, 50% 50%);\n }\n\n video::-webkit-media-text-track-container {\n transform: var(--media-webkit-text-track-transform);\n transition: var(--media-webkit-text-track-transition);\n }\n </style>\n <slot name="media">\n <video${l(t)}></video>\n </slot>\n <slot></slot>\n `}function r(t,{tag:e,is:i}){const r=globalThis.document?.createElement?.(e,{is:i}),l=r?function(t){const e=[];for(let i=Object.getPrototypeOf(t);i&&i!==HTMLElement.prototype;i=Object.getPrototypeOf(i)){const t=Object.getOwnPropertyNames(i);e.push(...t)}return e}(r):[];return class c extends t{static getTemplateHTML=e.endsWith("audio")?o:a;static shadowRootOptions={mode:"open"};static Events=n;static#t=!1;static get observedAttributes(){return c.#e(),[...r?.constructor?.observedAttributes??[],...s]}static#e(){if(this.#t)return;this.#t=!0;const t=new Set(this.observedAttributes);t.delete("muted");for(const e of l)if(!(e in this.prototype))if("function"==typeof r[e])this.prototype[e]=function(...t){return this.#i(),(()=>{if(this.call)return this.call(e,...t);const i=this.nativeEl?.[e];return i?.apply(this.nativeEl,t)})()};else{const i={get(){this.#i();const i=e.toLowerCase();if(t.has(i)){const t=this.getAttribute(i);return null!==t&&(""===t||t)}return this.get?.(e)??this.nativeEl?.[e]}};e!==e.toUpperCase()&&(i.set=function(i){this.#i();const n=e.toLowerCase();t.has(n)?!0===i||!1===i||null==i?this.toggleAttribute(n,Boolean(i)):this.setAttribute(n,i):this.set?this.set(e,i):this.nativeEl&&(this.nativeEl[e]=i)}),Object.defineProperty(this.prototype,e,i)}}#n=!1;#s=null;#o=new Map;#a;get;set;call;get nativeEl(){return this.#i(),this.#s??this.querySelector(":scope > [slot=media]")??this.querySelector(e)??this.shadowRoot?.querySelector(e)??null}set nativeEl(t){this.#s=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}`)}#i(){this.#n||(this.#n=!0,this.init())}init(){if(!this.shadowRoot){this.attachShadow({mode:"open"});const t=function(t){const e={};for(const i of t)e[i.name]=i.value;return e}(this.attributes);i&&(t.is=i),e&&(t.part=e),this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(t)}this.nativeEl.muted=this.hasAttribute("muted");for(const t of l)this.#r(t);this.#a=new MutationObserver(this.#l.bind(this)),this.shadowRoot.addEventListener("slotchange",(()=>this.#c())),this.#c();for(const t of this.constructor.Events)this.shadowRoot.addEventListener(t,this,!0)}handleEvent(t){t.target===this.nativeEl&&this.dispatchEvent(new CustomEvent(t.type,{detail:t.detail}))}#c(){const t=new Map(this.#o),e=this.shadowRoot?.querySelector("slot:not([name])"),i=e?.assignedElements({flatten:!0}).filter((t=>["track","source"].includes(t.localName)));i.forEach((e=>{t.delete(e);let i=this.#o.get(e);i||(i=e.cloneNode(),this.#o.set(e,i),this.#a?.observe(e,{attributes:!0})),this.nativeEl?.append(i),this.#d(i)})),t.forEach(((t,e)=>{t.remove(),this.#o.delete(e)}))}#l(t){for(const e of t)if("attributes"===e.type){const{target:t,attributeName:i}=e,n=this.#o.get(t);n&&i&&(n.setAttribute(i,t.getAttribute(i)??""),this.#d(n))}}#d(t){t&&"track"===t.localName&&t.default&&("chapters"===t.kind||"metadata"===t.kind)&&"disabled"===t.track.mode&&(t.track.mode="hidden")}#r(t){if(Object.prototype.hasOwnProperty.call(this,t)){const e=this[t];delete this[t],this[t]=e}}attributeChangedCallback(t,e,i){this.#i(),this.#u(t,e,i)}#u(t,e,i){["id","class"].includes(t)||!c.observedAttributes.includes(t)&&this.constructor.observedAttributes.includes(t)||(null===i?this.nativeEl?.removeAttribute(t):this.nativeEl?.getAttribute(t)!==i&&this.nativeEl?.setAttribute(t,i))}connectedCallback(){this.#i()}}}function l(t){let e="";for(const i in t){if(!s.includes(i))continue;const n=t[i];e+=""===n?` ${i}`:` ${i}="${n}"`}return e}const c=r(globalThis.HTMLElement??class{},{tag:"video"});r(globalThis.HTMLElement??class{},{tag:"audio"})},517:(t,e,i)=>{i.r(e),i.d(e,{default:()=>h});var n=i(609),s=i(121);class o extends s.lB{static shadowRootOptions={...s.lB.shadowRootOptions};static getTemplateHTML=t=>{const{src:e,...i}=t;return s.lB.getTemplateHTML(i)};#h;attributeChangedCallback(t,e,i){"src"!==t&&super.attributeChangedCallback(t,e,i),"src"===t&&e!=i&&this.load()}async load(){if(this.#h)this.api.attachSource(this.src);else{this.#h=!0;const t=await i.e(303).then(i.bind(i,303));this.api=t.MediaPlayer().create(),this.api.initialize(this.nativeEl,this.src,this.autoplay)}}}globalThis.customElements&&!globalThis.customElements.get("dash-video")&&globalThis.customElements.define("dash-video",o);var a=o,r=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),l={className:"class",htmlFor:"for"};function c(t){return t.toLowerCase()}function d(t){return"boolean"==typeof t?t?"":void 0:"function"==typeof t||"object"==typeof t&&null!==t?void 0:t}function u(t,e,i){var n;t[e]=i,null==i&&e in((null==(n=globalThis.HTMLElement)?void 0:n.prototype)??{})&&t.removeAttribute(e)}var h=function({react:t,tagName:e,elementClass:i,events:n,displayName:s,defaultProps:o,toAttributeName:a=c,toAttributeValue:h=d}){const p=Number.parseInt(t.version)>=19,f=t.forwardRef(((s,c)=>{var f,b;const m=t.useRef(null),g=t.useRef(new Map),v={},y={},w={},E={};for(const[t,e]of Object.entries(s)){if(r.has(t)){w[t]=e;continue}const n=a(l[t]??t);if(t in i.prototype&&!(t in((null==(f=globalThis.HTMLElement)?void 0:f.prototype)??{}))&&!(null==(b=i.observedAttributes)?void 0:b.some((t=>t===n)))){E[t]=e;continue}if(t.startsWith("on")){v[t]=e;continue}const s=h(e);if(n&&null!=s&&(y[n]=String(s),p||(w[n]=s)),n&&p){const t=d(e);w[n]=s!==t?s:e}}if("undefined"!=typeof window){for(const e in v){const i=v[e],s=e.endsWith("Capture"),o=((null==n?void 0:n[e])??e.slice(2).toLowerCase()).slice(0,s?-7:void 0);t.useLayoutEffect((()=>{const t=null==m?void 0:m.current;if(t&&"function"==typeof i)return t.addEventListener(o,i,s),()=>{t.removeEventListener(o,i,s)}}),[null==m?void 0:m.current,i])}t.useLayoutEffect((()=>{if(null===m.current)return;const t=new Map;for(const e in E)u(m.current,e,E[e]),g.current.delete(e),t.set(e,E[e]);for(const[t,e]of g.current)u(m.current,t,void 0);g.current=t}))}if("undefined"==typeof window&&(null==i?void 0:i.getTemplateHTML)&&(null==i?void 0:i.shadowRootOptions)){const{mode:e,delegatesFocus:n}=i.shadowRootOptions,o=t.createElement("template",{shadowrootmode:e,shadowrootdelegatesfocus:n,dangerouslySetInnerHTML:{__html:i.getTemplateHTML(y,s)}});w.children=[o,w.children]}return t.createElement(e,{...o,...w,ref:t.useCallback((t=>{m.current=t,"function"==typeof c?c(t):null!==c&&(c.current=t)}),[c])})}));return f.displayName=s??i.name,f}({react:n,tagName:"dash-video",elementClass:a,toAttributeName:t=>"muted"===t?"":"defaultMuted"===t?"muted":c(t)})}}]);