@webitel/ui-sdk 25.12.70 → 25.12.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/{install-BUivnNCy.js → install-B8JNcoye.js} +31 -25
  2. package/dist/{plyr-QbaIRdbm.js → plyr-BrazDgcE.js} +1 -1
  3. package/dist/ui-sdk.css +1 -1
  4. package/dist/ui-sdk.js +1 -1
  5. package/dist/ui-sdk.umd.cjs +1 -1
  6. package/dist/{vidstack-Bq6c3Bam-DPX2f4W3.js → vidstack-Bq6c3Bam-B5Zg-rlV.js} +2 -2
  7. package/dist/{vidstack-D2pY00kU-DZBArKSs.js → vidstack-D2pY00kU-DB-utBEG.js} +2 -2
  8. package/dist/{vidstack-DDXt6fpN-DZEByFh0.js → vidstack-DDXt6fpN-D1r7J67P.js} +1 -1
  9. package/dist/{vidstack-D_-9AA6_-CEaEiCb9.js → vidstack-D_-9AA6_-le180TNP.js} +1 -1
  10. package/dist/{vidstack-DqAw8m9J-DiLnJpqy.js → vidstack-DqAw8m9J-fTI0n0C2.js} +1 -1
  11. package/dist/{vidstack-audio-BbtisONe.js → vidstack-audio-2ke6S-fM.js} +2 -2
  12. package/dist/{vidstack-dash-CHjAN1Q9.js → vidstack-dash-BjpbrDGN.js} +3 -3
  13. package/dist/{vidstack-google-cast-uP2CzAX2.js → vidstack-google-cast-Bv3kuiDu.js} +3 -3
  14. package/dist/{vidstack-hls-C-VNarsf.js → vidstack-hls-5PjMeK-h.js} +3 -3
  15. package/dist/{vidstack-video-BIsBopdI.js → vidstack-video-rs777JhY.js} +2 -2
  16. package/dist/{vidstack-vimeo-BkpKymHD.js → vidstack-vimeo-C35MpTeJ.js} +3 -3
  17. package/dist/{vidstack-youtube-Dg6LlYdT.js → vidstack-youtube-DzEXsVw0.js} +2 -2
  18. package/dist/{vuex.esm-bundler-DUU0qEUt.js → vuex.esm-bundler-Bwxb5nl7.js} +1 -1
  19. package/package.json +2 -2
  20. package/src/components/wt-vidstack-player/wt-vidstack-player.vue +21 -5
  21. package/src/enums/WebitelApplications/SupervisorSections.ts +1 -1
  22. package/src/enums/WebitelApplications/WfmSections.ts +1 -1
  23. package/src/modules/CallSession/modules/VideoCall/video-call.vue +2 -2
  24. package/types/components/wt-vidstack-player/wt-vidstack-player.vue.d.ts +6 -4
  25. package/types/enums/WebitelApplications/SupervisorSections.d.ts +1 -1
  26. package/types/enums/WebitelApplications/WfmSections.d.ts +1 -1
  27. package/types/locale/en/en.d.ts +1 -1
  28. package/types/locale/es/es.d.ts +4 -4
  29. package/types/locale/i18n.d.ts +33 -33
  30. package/types/locale/index.d.ts +33 -33
  31. package/types/locale/kz/kz.d.ts +4 -4
  32. package/types/locale/pl/pl.d.ts +4 -4
  33. package/types/locale/ro/ro.d.ts +4 -4
  34. package/types/locale/ru/ru.d.ts +4 -4
  35. package/types/locale/uk/uk.d.ts +4 -4
  36. package/types/locale/uz/uz.d.ts +4 -4
  37. package/types/locale/vi/vi.d.ts +4 -4
package/dist/ui-sdk.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Y as f } from "./install-BUivnNCy.js";
1
+ import { Y as f } from "./install-B8JNcoye.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -3184,7 +3184,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
3184
3184
  data-part="track-fill"
3185
3185
  ></circle>
3186
3186
  </svg>
3187
- `}}M(Aj,"tagName","media-spinner");class Dj extends ct{}M(Dj,"props",{when:!1});class Oj extends dt(HTMLElement,Dj){constructor(){super(...arguments);P(this,U5);P(this,m3)}onSetup(){j(this,m3,_t())}onConnect(){he(k(this,U5,wJ).bind(this))}}m3=new WeakMap,U5=new WeakSet,wJ=function(){const i=this.firstElementChild,a=(i==null?void 0:i.localName)==="template",l=this.$props.when();if(!(CM(l)?l:cr(()=>l(b(this,m3).player.state))())){a?(this.textContent="",this.appendChild(i)):Tp(i)&&(i.style.display="none");return}a?this.append(i.content.cloneNode(!0)):Tp(i)&&(i.style.display="")},M(Oj,"tagName","media-layout");class _j extends dt(HTMLElement,$N){}M(_j,"tagName","media-google-cast-button");class Rj extends dt(HTMLElement,PN){}M(Rj,"tagName","media-toggle-button");class Bj extends dt(HTMLElement,FTe){}M(Bj,"tagName","media-tooltip");class Lj extends dt(HTMLElement,qTe){onConnect(){this.style.display="contents"}}M(Lj,"tagName","media-tooltip-trigger");class Pj extends dt(HTMLElement,LN){}M(Pj,"tagName","media-tooltip-content");class YC extends dt(HTMLElement,_N){}M(YC,"tagName","media-menu-portal"),M(YC,"attrs",{disabled:{converter(n){return Ve(n)?n:n!==null}}});class $j extends dt(HTMLElement,eh){onConnect(){o2(this,(n,i)=>{const{cue:a,startTime:l,duration:s}=i,d=n.querySelector(".vds-thumbnail,media-thumbnail"),p=n.querySelector('[data-part="start-time"]'),u=n.querySelector('[data-part="duration"]');p&&(p.textContent=l),u&&(u.textContent=s),d&&(d.setAttribute("time",a.startTime+""),he(()=>{const h=this.$props.thumbnails();"src"in d?d.src=h:Ve(h)&&d.setAttribute("src",h)}))})}}M($j,"tagName","media-chapters-radio-group");class Mj extends dt(HTMLElement,jC){onConnect(){o2(this)}}M(Mj,"tagName","media-audio-gain-radio-group");class Nj extends dt(HTMLElement,MC){}M(Nj,"tagName","media-radio-group");class jj extends dt(HTMLElement,Dp){}M(jj,"tagName","media-slider");const sEe=eC('<video muted playsinline preload="none" style="max-width: unset;"></video>');class Fj extends dt(HTMLElement,d4){constructor(){super(...arguments);P(this,H5);P(this,b3);P(this,Xs,k(this,H5,CJ).call(this))}onSetup(){j(this,b3,_t()),this.$state.video.set(b(this,Xs))}onConnect(){const{canLoad:i}=b(this,b3).$state,{src:a,crossOrigin:l}=this.$state;b(this,Xs).parentNode!==this&&this.prepend(b(this,Xs)),he(()=>{We(b(this,Xs),"crossorigin",l()),We(b(this,Xs),"preload",i()?"auto":"none"),We(b(this,Xs),"src",a())})}}b3=new WeakMap,Xs=new WeakMap,H5=new WeakSet,CJ=function(){return tC(sEe)},M(Fj,"tagName","media-slider-video");class qj extends dt(HTMLElement,BC){}M(qj,"tagName","media-audio-gain-slider");class zj extends dt(HTMLElement,LC){}M(zj,"tagName","media-speed-slider");class Uj extends dt(HTMLElement,PC){}M(Uj,"tagName","media-quality-slider");class Hj extends dt(HTMLElement,$C){constructor(){super(...arguments);P(this,G5);P(this,y1,null)}onConnect(){fs(()=>{if(!this.connectScope)return;const i=this.querySelector("template");i&&(j(this,y1,i),he(k(this,G5,kJ).bind(this)))})}}y1=new WeakMap,G5=new WeakSet,kJ=function(){if(!b(this,y1))return;const i=Vw(b(this,y1),this.cues.length||1);this.setRefs(i)},M(Hj,"tagName","media-slider-chapters");class cEe extends ct{}class Gj extends dt(HTMLElement,cEe){constructor(){super(...arguments);P(this,K5);P(this,z0,null)}onConnect(i){fs(()=>{this.connectScope&&(j(this,z0,i.querySelector("template")),b(this,z0)&&he(k(this,K5,xJ).bind(this)))})}}z0=new WeakMap,K5=new WeakSet,xJ=function(){if(!b(this,z0))return;const{min:i,max:a,step:l}=Zu(Ap),s=(a()-i())/l();Vw(b(this,z0),Math.floor(s)+1)},M(Gj,"tagName","media-slider-steps");class ZC extends ct{constructor(){super(...arguments);P(this,vo);P(this,Za);P(this,g3,"")}onSetup(){j(this,Za,_t()),k(this,vo,kT).call(this),k(this,vo,xT).call(this),k(this,vo,ST).call(this),k(this,vo,CT).call(this)}onAttach(i){i.style.setProperty("pointer-events","none"),he(k(this,vo,TJ).bind(this)),he(k(this,vo,kT).bind(this)),he(k(this,vo,xT).bind(this)),he(k(this,vo,ST).bind(this)),he(k(this,vo,CT).bind(this));const{started:a}=b(this,Za).$state;this.setAttributes({"data-visible":()=>!a()&&!this.$state.hidden(),"data-loading":k(this,vo,IJ).bind(this),"data-error":k(this,vo,wT).bind(this),"data-hidden":this.$state.hidden})}onConnect(i){he(k(this,vo,SJ).bind(this)),he(k(this,vo,EJ).bind(this))}}Za=new WeakMap,vo=new WeakSet,wT=function(){const{error:i}=this.$state;return!il(i())},SJ=function(){const{canLoadPoster:i,poster:a}=b(this,Za).$state;!i()&&a()&&ps(a(),"preconnect")},CT=function(){const{src:i}=this.$props,{poster:a,nativeControls:l}=b(this,Za).$state;this.el&&We(this.el,"display",l()?"none":null),this.$state.hidden.set(k(this,vo,wT).call(this)||!(i()||a())||l())},IJ=function(){const{loading:i,hidden:a}=this.$state;return!a()&&i()},TJ=function(){const i=this.$state.img();i&&(new bo(i).add("load",k(this,vo,IT).bind(this)).add("error",k(this,vo,AJ).bind(this)),i.complete&&k(this,vo,IT).call(this))},g3=new WeakMap,kT=function(){const{poster:i}=b(this,Za).$props,{canLoadPoster:a,providedPoster:l,inferredPoster:s}=b(this,Za).$state,d=this.$props.src()||"",p=d||i()||s();b(this,g3)===l()&&l.set(d),this.$state.src.set(a()&&p.length?p:null),j(this,g3,d)},xT=function(){const{src:i}=this.$props,{alt:a}=this.$state,{poster:l}=b(this,Za).$state;a.set(i()||l()?this.$props.alt():null)},ST=function(){const{crossOrigin:i}=this.$props,{crossOrigin:a}=this.$state,{crossOrigin:l,poster:s}=b(this,Za).$state,d=i()!==null?i():l();a.set(/ytimg\.com|vimeo/.test(s()||"")?null:d===!0?"anonymous":d)},EJ=function(){const{loading:i,error:a}=this.$state,{canLoadPoster:l,poster:s}=b(this,Za).$state;i.set(l()&&!!s()),a.set(null)},IT=function(){const{loading:i,error:a}=this.$state;i.set(!1),a.set(null)},AJ=function(i){const{loading:a,error:l}=this.$state;a.set(!1),l.set(i)},M(ZC,"props",{src:null,alt:null,crossOrigin:null}),M(ZC,"state",new vc({img:null,src:null,alt:null,crossOrigin:null,loading:!0,error:null,hidden:!1}));class XC extends dt(HTMLElement,ZC){constructor(){super(...arguments);P(this,Ml,document.createElement("img"))}onSetup(){this.$state.img.set(b(this,Ml))}onConnect(){const{src:i,alt:a,crossOrigin:l}=this.$state;he(()=>{const{loading:s,hidden:d}=this.$state;b(this,Ml).style.display=s()||d()?"none":""}),he(()=>{We(b(this,Ml),"alt",a()),We(b(this,Ml),"crossorigin",l()),We(b(this,Ml),"src",i())}),b(this,Ml).parentNode!==this&&this.prepend(b(this,Ml))}}Ml=new WeakMap,M(XC,"tagName","media-poster"),M(XC,"attrs",{crossOrigin:"crossorigin"}),at(Oj),at(kj),at(xj),at(XC),at(Cj),at(Bj),at(Lj),at(Pj),at(ij),at(oj),at(VN),at(ej),at(nj),at(aj),at(JN),at(_j),at(Rj),at(jj),at(qj),at(yj),at(bj),at(zj),at(Uj),at(Hj),at(Gj),at(gj),at(WC),at(mj),at(Fj),at(sj),at(cj),at(YC),at(pj),at(dj),at(rj),at(lj),at(uj),at(Mj),at(fj),at($j),at(Nj),at(hj),at(wj),at(h4),at(vj),at(tj),at(QN),at(Sj),at(Tj),at(Aj);const dEe=Fe(c.defineComponent({__name:"fullscreen-button",emits:["toggle"],setup(o,{emit:n}){const i=n;return(a,l)=>(c.openBlock(),c.createElementBlock("media-fullscreen-button",{class:"fullscreen-button",onMediaEnterFullscreenRequest:l[0]||(l[0]=s=>i("toggle",!0)),onMediaExitFullscreenRequest:l[1]||(l[1]=s=>i("toggle",!1))},[c.createVNode(hp,{icon:"player-enter-fullscreen",color:"on-dark",class:"fullscreen-button__enter"}),c.createVNode(hp,{icon:"player-exit-fullscreen",color:"on-dark",class:"fullscreen-button__exit"})],32))}}),[["__scopeId","data-v-66a03a6f"]]),pEe=["disabled"],uEe=Fe(c.defineComponent({__name:"toggle-button",props:{primaryIcon:{},secondaryIcon:{},color:{},disabled:{type:Boolean}},emits:["toggle"],setup(o,{emit:n}){const i=o,a=c.useTemplateRef("toggleButton"),l=n,s=()=>{i.disabled||l("toggle",a.value.pressed)};return(d,p)=>(c.openBlock(),c.createElementBlock("media-toggle-button",{ref_key:"toggleButton",ref:a,class:"toggle-button",disabled:i.disabled,onClick:s},[c.createVNode(hp,{icon:i.primaryIcon,color:i.color,disabled:i.disabled,class:"toggle-button__primary"},null,8,["icon","color","disabled"]),c.createVNode(hp,{icon:i.secondaryIcon,color:i.color,disabled:i.disabled,class:"toggle-button__secondary"},null,8,["icon","color","disabled"])],8,pEe))}}),[["__scopeId","data-v-f1a807ee"]]),fEe={class:"video-display-panel__head"},hEe={class:"video-display-panel__title"},mEe={class:"video-display-panel__controls"},bEe=Fe(c.defineComponent({__name:"video-display-panel",props:{title:{},username:{},closable:{type:Boolean},hideExpand:{type:Boolean}},emits:["close"],setup(o,{emit:n}){const{size:i,fullscreen:a,changeSize:l}=c.inject("size"),s=o,d=n,p=v=>{v?i.value!==Lt.LG&&(a.value=!0,l(Lt.LG)):i.value===Lt.LG&&(h(),a.value=!1,l(Lt.SM))},u=()=>{i.value===Lt.SM?l(Lt.MD):i.value===Lt.MD?l(Lt.SM):i.value===Lt.LG&&(h(),a.value=!1,l(Lt.MD))},h=()=>{document.fullscreenElement&&document.exitFullscreen()},y=v=>{v.key==="Escape"&&p(!1)};return c.onMounted(()=>{document.addEventListener("fullscreenchange",()=>{document.fullscreenElement||p(!1)}),c.onBeforeUnmount(()=>{document.removeEventListener("keyup",y)})}),(v,w)=>(c.openBlock(),c.createElementBlock("media-controls-group",{class:c.normalizeClass(["video-display-panel controls-group",`video-display-panel--${c.unref(i)}`])},[c.createElementVNode("div",fEe,[s.username?(c.openBlock(),c.createBlock(sB,{key:0,username:s.username,size:"sm",class:"video-display-panel__avatar"},null,8,["username"])):c.createCommentVNode("",!0),c.createElementVNode("span",hEe,c.toDisplayString(s.title||s.username),1)]),c.createElementVNode("div",mEe,[c.createVNode(dEe,{onToggle:p}),s.hideExpand?c.createCommentVNode("",!0):(c.openBlock(),c.createBlock(uEe,{key:0,"primary-icon":"expand","secondary-icon":"collapse",color:"on-dark",onToggle:u})),s.closable?(c.openBlock(),c.createBlock(hp,{key:1,icon:"close",color:"on-dark",onClick:w[0]||(w[0]=C=>d("close"))})):c.createCommentVNode("",!0)])],2))}}),[["__scopeId","data-v-5022f508"]]),gEe=Fe(c.defineComponent({__name:"video-layout",props:{title:{},username:{},closable:{type:Boolean},hideHeader:{type:Boolean},hideControlsPanel:{type:Boolean},hideExpand:{type:Boolean}},emits:["close-player","close-session","make-screenshot","toggle-record"],setup(o,{emit:n}){const{size:i}=c.inject("size"),a=o,l=n;return(s,d)=>(c.openBlock(),c.createElementBlock("media-controls",{class:c.normalizeClass(["video-layout controls",`video-layout--${c.unref(i)}`])},[c.createVNode(bEe,{class:c.normalizeClass({"video-display-panel--hidden":a.hideHeader}),title:a.title,username:a.username,closable:a.closable,"hide-expand":a.hideExpand,onClose:d[0]||(d[0]=p=>l("close-player"))},null,8,["class","title","username","closable","hide-expand"]),c.createElementVNode("media-controls-group",null,[c.renderSlot(s.$slots,"content",{},void 0,!0)]),a.hideControlsPanel?c.createCommentVNode("",!0):c.renderSlot(s.$slots,"controls-panel",{key:0},()=>[d[1]||(d[1]=c.createElementVNode("media-controls-panel",null,null,-1))],!0)],2))}}),[["__scopeId","data-v-8a513385"]]),yEe=["src","autoplay","muted"],Kj={WtActionBar:a4e,WtImage:UB,WtEmpty:o6e,WtLogo:A7e,WtAvatar:sB,WtBadge:t5e,WtBadgeNew:cB,WtIcon:U8,WtIndicator:r7e,WtInputInfo:jB,WtButton:r5e,WtChip:dB,WtConfirmDialog:f5e,WtDivider:B9e,WtTooltip:Axe,WtLabel:u7e,WtLoader:S7e,WtRoundedAction:fwe,WtReplaceTransition:e4e,WtCheckbox:H8,WtDatepicker:R9e,WtIconBtn:hp,WtInput:c7e,WtIntersectionObserver:d7e,WtHint:o7e,WtNotification:sve,WtPopup:rwe,WtProgressBar:cwe,WtRadio:uwe,WtSearchBar:ywe,WtSelect:rCe,WtSlider:lCe,WtSwitcher:vCe,WtTabs:MCe,WtTagsInput:Cke,WtTimeInput:Ake,WtTimepicker:Rke,WtTextarea:xke,WtAppHeader:c4e,WtHeadline:V8e,WtBreadcrumb:n5e,WtNavigationBar:ive,WtAppNavigator:_4e,WtFiltersPanelWrapper:k6e,WtHeaderActions:G4e,WtErrorPage:u6e,WtNotificationsBar:hve,WtPageWrapper:kve,WtDualPanel:j9e,WtPagination:$ve,WtPlayer:jve,WtPopover:aP,WtStatusSelect:pCe,WtTable:xCe,WtTree:Mxe,WtTreeTable:Vxe,WtTableActions:ICe,WtTableColumnSelect:_Ce,WtButtonSelect:l5e,WtContextMenu:b5e,WtCopyAction:k5e,WtLoadBar:m7e,WtIconAction:rB,WtPageHeader:mve,WtItemLink:p7e,WtDummy:K9e,WtStepper:gCe,WtExpansionPanel:g6e,WtNavigationMenu:wfe,WtStartPage:Gme,WtSelectionPopup:_me,WtDisplayChipItems:ffe,WtGalleria:W8e,WtVidstackPlayer:Fe(c.defineComponent({__name:"wt-vidstack-player",props:{src:{},mime:{default:"video/mp4"},autoplay:{type:Boolean,default:!1},muted:{type:Boolean,default:!0},title:{default:""},username:{default:""},closable:{type:Boolean,default:!1},static:{type:Boolean,default:!1},stream:{},size:{},hideHeader:{type:Boolean},hideControlsPanel:{type:Boolean},hideBackground:{type:Boolean},hideExpand:{type:Boolean},stretch:{type:Boolean}},emits:["close","change-size"],setup(o,{emit:n}){const i=o,a=n,l=c.useTemplateRef("player"),s=c.ref(i.size||Lt.SM),d=c.ref(!1),p=y=>{s.value=y,a("change-size",y)};c.provide("size",{size:s,fullscreen:d,changeSize:p});const u=c.computed(()=>{if(i.mime)return i.mime;if(typeof i.src=="string"){if(i.src.includes("media")||i.src.includes("mp3"))return"audio/mp3";if(i.src.includes("ogg")||i.src.includes("oga"))return"audio/ogg"}return"video/mp4"}),h=c.computed(()=>{var y,v;return i.stream?{src:i.stream,type:"video/object"}:typeof i.src=="string"?{src:i.src,type:u.value}:{src:((y=i.src)==null?void 0:y.src)||null,type:((v=i.src)==null?void 0:v.type)||u.value}});return(y,v)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["wt-vidstack-player",[`wt-vidstack-player--${s.value}`,d.value&&"wt-vidstack-player--fullscreen",o.stretch&&"wt-vidstack-player--stretch",i.static&&"wt-vidstack-player--static",i.hideBackground&&"wt-vidstack-player--hide-background"]])},[c.createElementVNode("media-player",{ref_key:"player",ref:l,src:h.value,autoplay:i.autoplay,muted:i.muted,class:"wt-vidstack-player__player","cross-origin":"","plays-inline":"",onClose:v[1]||(v[1]=w=>a("close"))},[v[2]||(v[2]=c.createElementVNode("media-provider",{class:"wt-vidstack-player__provider"},null,-1)),c.createVNode(c.unref(gEe),{"hide-header":i.hideHeader,"hide-controls-panel":i.hideControlsPanel,closable:i.closable,autoplay:i.autoplay,title:i.title,username:i.username,"hide-expand":i.hideExpand,onClosePlayer:v[0]||(v[0]=w=>a("close"))},{"controls-panel":c.withCtx(()=>[c.renderSlot(y.$slots,"controls-panel",{size:s.value},void 0,!0)]),content:c.withCtx(()=>[c.renderSlot(y.$slots,"content",{size:s.value},void 0,!0)]),_:3},8,["hide-header","hide-controls-panel","closable","autoplay","title","username","hide-expand"])],40,yEe)],2))}}),[["__scopeId","data-v-643a320b"]]),WtChatEmoji:j0e},Wj=c7?window:void 0;function ah(o){var n;const i=c.toValue(o);return(n=i==null?void 0:i.$el)!=null?n:i}function m4(...o){const n=[],i=()=>{n.forEach(p=>p()),n.length=0},a=(p,u,h,y)=>(p.addEventListener(u,h,y),()=>p.removeEventListener(u,h,y)),l=c.computed(()=>{const p=dp(c.toValue(o[0])).filter(u=>u!=null);return p.every(u=>typeof u!="string")?p:void 0}),s=MB(()=>{var p,u;return[(u=(p=l.value)==null?void 0:p.map(h=>ah(h)))!=null?u:[Wj].filter(h=>h!=null),dp(c.toValue(l.value?o[1]:o[0])),dp(c.unref(l.value?o[2]:o[1])),c.toValue(l.value?o[3]:o[2])]},([p,u,h,y])=>{if(i(),!(p!=null&&p.length)||!(u!=null&&u.length)||!(h!=null&&h.length))return;const v=$B(y)?{...y}:y;n.push(...p.flatMap(w=>u.flatMap(C=>h.map(S=>a(w,C,S,v)))))},{flush:"post"}),d=()=>{s(),i()};return eg(i),d}let Yj=!1;function Zj(o,n,i={}){const{window:a=Wj,ignore:l=[],capture:s=!0,detectIframe:d=!1,controls:p=!1}=i;if(!a)return p?{stop:Qr,cancel:Qr,trigger:Qr}:Qr;if(d7&&!Yj){Yj=!0;const A={passive:!0};Array.from(a.document.body.children).forEach(T=>T.addEventListener("click",Qr,A)),a.document.documentElement.addEventListener("click",Qr,A)}let u=!0;const h=A=>c.toValue(l).some(T=>{if(typeof T=="string")return Array.from(a.document.querySelectorAll(T)).some(x=>x===A.target||A.composedPath().includes(x));{const x=ah(T);return x&&(A.target===x||A.composedPath().includes(x))}});function y(A){const T=c.toValue(A);return T&&T.$.subTree.shapeFlag===16}function v(A,T){const x=c.toValue(A),_=x.$.subTree&&x.$.subTree.children;return _==null||!Array.isArray(_)?!1:_.some(O=>O.el===T.target||T.composedPath().includes(O.el))}const w=A=>{const T=ah(o);if(A.target!=null&&!(!(T instanceof Element)&&y(o)&&v(o,A))&&!(!T||T===A.target||A.composedPath().includes(T))){if("detail"in A&&A.detail===0&&(u=!h(A)),!u){u=!0;return}n(A)}};let C=!1;const S=[m4(a,"click",A=>{C||(C=!0,setTimeout(()=>{C=!1},0),w(A))},{passive:!0,capture:s}),m4(a,"pointerdown",A=>{const T=ah(o);u=!h(A)&&!!(T&&!A.composedPath().includes(T))},{passive:!0}),d&&m4(a,"blur",A=>{setTimeout(()=>{var T;const x=ah(o);((T=a.document.activeElement)==null?void 0:T.tagName)==="IFRAME"&&!(x!=null&&x.contains(a.document.activeElement))&&n(A)},0)},{passive:!0})].filter(Boolean),E=()=>S.forEach(A=>A());return p?{stop:E,cancel:()=>{u=!1},trigger:A=>{u=!0,w(A),u=!1}}:E}const QC=new WeakMap,vEe={mounted(o,n){const i=!n.modifiers.bubble;let a;if(typeof n.value=="function")a=Zj(o,n.value,{capture:i});else{const[l,s]=n.value;a=Zj(o,l,Object.assign({capture:i},s))}QC.set(o,a)},unmounted(o){const n=QC.get(o);n&&typeof n=="function"?n():n==null||n.stop(),QC.delete(o)}};function JC(o){return typeof Window<"u"&&o instanceof Window?o.document.documentElement:typeof Document<"u"&&o instanceof Document?o.documentElement:o}function Xj(o){const n=window.getComputedStyle(o);if(n.overflowX==="scroll"||n.overflowY==="scroll"||n.overflowX==="auto"&&o.clientWidth<o.scrollWidth||n.overflowY==="auto"&&o.clientHeight<o.scrollHeight)return!0;{const i=o.parentNode;return!i||i.tagName==="BODY"?!1:Xj(i)}}function wEe(o){const n=o||window.event,i=n.target;return Xj(i)?!1:n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)}const VC=new WeakMap;function CEe(o,n=!1){const i=c.shallowRef(n);let a=null,l="";c.watch(k9e(o),p=>{const u=JC(c.toValue(p));if(u){const h=u;if(VC.get(h)||VC.set(h,h.style.overflow),h.style.overflow!=="hidden"&&(l=h.style.overflow),h.style.overflow==="hidden")return i.value=!0;if(i.value)return h.style.overflow="hidden"}},{immediate:!0});const s=()=>{const p=JC(c.toValue(o));!p||i.value||(d7&&(a=m4(p,"touchmove",u=>{wEe(u)},{passive:!1})),p.style.overflow="hidden",i.value=!0)},d=()=>{const p=JC(c.toValue(o));!p||!i.value||(d7&&(a==null||a()),p.style.overflow=l,VC.delete(p),i.value=!1)};return eg(d),c.computed({get(){return i.value},set(p){p?s():d()}})}function kEe(){let o=!1;const n=c.shallowRef(!1);return(i,a)=>{if(n.value=a.value,o)return;o=!0;const l=CEe(i,a.value);c.watch(n,s=>l.value=s)}}kEe();const Qj={clickaway:vEe};function Wo(...o){if(o){let n=[];for(let i=0;i<o.length;i++){let a=o[i];if(!a)continue;let l=typeof a;if(l==="string"||l==="number")n.push(a);else if(l==="object"){let s=Array.isArray(a)?[Wo(...a)]:Object.entries(a).map(([d,p])=>p?d:void 0);n=s.length?n.concat(s.filter(d=>!!d)):n}}return n.join(" ").trim()}}function Jj(o,n){return o?o.classList?o.classList.contains(n):new RegExp("(^| )"+n+"( |$)","gi").test(o.className):!1}function Fa(o,n){if(o&&n){let i=a=>{Jj(o,a)||(o.classList?o.classList.add(a):o.className+=" "+a)};[n].flat().filter(Boolean).forEach(a=>a.split(" ").forEach(i))}}function xEe(){return window.innerWidth-document.documentElement.offsetWidth}function SEe(o){typeof o=="string"?Fa(document.body,o||"p-overflow-hidden"):(o!=null&&o.variableName&&document.body.style.setProperty(o.variableName,xEe()+"px"),Fa(document.body,(o==null?void 0:o.className)||"p-overflow-hidden"))}function IEe(o){if(o){let n=document.createElement("a");if(n.download!==void 0){let{name:i,src:a}=o;return n.setAttribute("href",a),n.setAttribute("download",i),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),!0}}return!1}function TEe(o,n){let i=new Blob([o],{type:"application/csv;charset=utf-8;"});window.navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(i,n+".csv"):IEe({name:n+".csv",src:URL.createObjectURL(i)})||(o="data:text/csv;charset=utf-8,"+o,window.open(encodeURI(o)))}function wa(o,n){if(o&&n){let i=a=>{o.classList?o.classList.remove(a):o.className=o.className.replace(new RegExp("(^|\\b)"+a.split(" ").join("|")+"(\\b|$)","gi")," ")};[n].flat().filter(Boolean).forEach(a=>a.split(" ").forEach(i))}}function EEe(o){typeof o=="string"?wa(document.body,o||"p-overflow-hidden"):(o!=null&&o.variableName&&document.body.style.removeProperty(o.variableName),wa(document.body,(o==null?void 0:o.className)||"p-overflow-hidden"))}function ek(o){for(let n of document==null?void 0:document.styleSheets)try{for(let i of n==null?void 0:n.cssRules)for(let a of i==null?void 0:i.style)if(o.test(a))return{name:a,value:i.style.getPropertyValue(a).trim()}}catch{}return null}function Vj(o){let n={width:0,height:0};if(o){let[i,a]=[o.style.visibility,o.style.display],l=o.getBoundingClientRect();o.style.visibility="hidden",o.style.display="block",n.width=l.width||o.offsetWidth,n.height=l.height||o.offsetHeight,o.style.display=a,o.style.visibility=i}return n}function rh(){let o=window,n=document,i=n.documentElement,a=n.getElementsByTagName("body")[0],l=o.innerWidth||i.clientWidth||a.clientWidth,s=o.innerHeight||i.clientHeight||a.clientHeight;return{width:l,height:s}}function tk(o){return o?Math.abs(o.scrollLeft):0}function ok(){let o=document.documentElement;return(window.pageXOffset||tk(o))-(o.clientLeft||0)}function nk(){let o=document.documentElement;return(window.pageYOffset||o.scrollTop)-(o.clientTop||0)}function ik(o){return o?getComputedStyle(o).direction==="rtl":!1}function b4(o,n,i=!0){var a,l,s,d;if(o){let p=o.offsetParent?{width:o.offsetWidth,height:o.offsetHeight}:Vj(o),u=p.height,h=p.width,y=n.offsetHeight,v=n.offsetWidth,w=n.getBoundingClientRect(),C=nk(),S=ok(),E=rh(),A,T,x="top";w.top+y+u>E.height?(A=w.top+C-u,x="bottom",A<0&&(A=C)):A=y+w.top+C,w.left+h>E.width?T=Math.max(0,w.left+S+v-h):T=w.left+S,ik(o)?o.style.insetInlineEnd=T+"px":o.style.insetInlineStart=T+"px",o.style.top=A+"px",o.style.transformOrigin=x,i&&(o.style.marginTop=x==="bottom"?`calc(${(l=(a=ek(/-anchor-gutter$/))==null?void 0:a.value)!=null?l:"2px"} * -1)`:(d=(s=ek(/-anchor-gutter$/))==null?void 0:s.value)!=null?d:"")}}function n2(o,n){o&&(typeof n=="string"?o.style.cssText=n:Object.entries(n||{}).forEach(([i,a])=>o.style[i]=a))}function sn(o,n){return o instanceof HTMLElement?o.offsetWidth:0}function eF(o,n,i=!0,a=void 0){var l;if(o){let s=o.offsetParent?{width:o.offsetWidth,height:o.offsetHeight}:Vj(o),d=n.offsetHeight,p=n.getBoundingClientRect(),u=rh(),h,y,v=a??"top";if(!a&&p.top+d+s.height>u.height?(h=-1*s.height,v="bottom",p.top+h<0&&(h=-1*p.top)):h=d,s.width>u.width?y=p.left*-1:p.left+s.width>u.width?y=(p.left+s.width-u.width)*-1:y=0,o.style.top=h+"px",o.style.insetInlineStart=y+"px",o.style.transformOrigin=v,i){let w=(l=ek(/-anchor-gutter$/))==null?void 0:l.value;o.style.marginTop=v==="bottom"?`calc(${w??"2px"} * -1)`:w??""}}}function ak(o){if(o){let n=o.parentNode;return n&&n instanceof ShadowRoot&&n.host&&(n=n.host),n}return null}function tF(o){return!!(o!==null&&typeof o<"u"&&o.nodeName&&ak(o))}function Ic(o){return typeof Element<"u"?o instanceof Element:o!==null&&typeof o=="object"&&o.nodeType===1&&typeof o.nodeName=="string"}function g4(){if(window.getSelection){let o=window.getSelection()||{};o.empty?o.empty():o.removeAllRanges&&o.rangeCount>0&&o.getRangeAt(0).getClientRects().length>0&&o.removeAllRanges()}}function y4(o,n={}){if(Ic(o)){let i=(a,l)=>{var s,d;let p=(s=o==null?void 0:o.$attrs)!=null&&s[a]?[(d=o==null?void 0:o.$attrs)==null?void 0:d[a]]:[];return[l].flat().reduce((u,h)=>{if(h!=null){let y=typeof h;if(y==="string"||y==="number")u.push(h);else if(y==="object"){let v=Array.isArray(h)?i(a,h):Object.entries(h).map(([w,C])=>a==="style"&&(C||C===0)?`${w.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${C}`:C?w:void 0);u=v.length?u.concat(v.filter(w=>!!w)):u}}return u},p)};Object.entries(n).forEach(([a,l])=>{if(l!=null){let s=a.match(/^on(.+)/);s?o.addEventListener(s[1].toLowerCase(),l):a==="p-bind"||a==="pBind"?y4(o,l):(l=a==="class"?[...new Set(i("class",l))].join(" ").trim():a==="style"?i("style",l).join(";").trim():l,(o.$attrs=o.$attrs||{})&&(o.$attrs[a]=l),o.setAttribute(a,l))}})}}function lh(o,n={},...i){if(o){let a=document.createElement(o);return y4(a,n),a.append(...i),a}}function AEe(o,n){if(o){o.style.opacity="0";let i=+new Date,a="0",l=function(){a=`${+o.style.opacity+(new Date().getTime()-i)/n}`,o.style.opacity=a,i=+new Date,+a<1&&("requestAnimationFrame"in window?requestAnimationFrame(l):setTimeout(l,16))};l()}}function Si(o,n){return Ic(o)?Array.from(o.querySelectorAll(n)):[]}function Hn(o,n){return Ic(o)?o.matches(n)?o:o.querySelector(n):null}function go(o,n){o&&document.activeElement!==o&&o.focus(n)}function Eo(o,n){if(Ic(o)){let i=o.getAttribute(n);return isNaN(i)?i==="true"||i==="false"?i==="true":i:+i}}function rk(o,n=""){let i=Si(o,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},
3187
+ `}}M(Aj,"tagName","media-spinner");class Dj extends ct{}M(Dj,"props",{when:!1});class Oj extends dt(HTMLElement,Dj){constructor(){super(...arguments);P(this,U5);P(this,m3)}onSetup(){j(this,m3,_t())}onConnect(){he(k(this,U5,wJ).bind(this))}}m3=new WeakMap,U5=new WeakSet,wJ=function(){const i=this.firstElementChild,a=(i==null?void 0:i.localName)==="template",l=this.$props.when();if(!(CM(l)?l:cr(()=>l(b(this,m3).player.state))())){a?(this.textContent="",this.appendChild(i)):Tp(i)&&(i.style.display="none");return}a?this.append(i.content.cloneNode(!0)):Tp(i)&&(i.style.display="")},M(Oj,"tagName","media-layout");class _j extends dt(HTMLElement,$N){}M(_j,"tagName","media-google-cast-button");class Rj extends dt(HTMLElement,PN){}M(Rj,"tagName","media-toggle-button");class Bj extends dt(HTMLElement,FTe){}M(Bj,"tagName","media-tooltip");class Lj extends dt(HTMLElement,qTe){onConnect(){this.style.display="contents"}}M(Lj,"tagName","media-tooltip-trigger");class Pj extends dt(HTMLElement,LN){}M(Pj,"tagName","media-tooltip-content");class YC extends dt(HTMLElement,_N){}M(YC,"tagName","media-menu-portal"),M(YC,"attrs",{disabled:{converter(n){return Ve(n)?n:n!==null}}});class $j extends dt(HTMLElement,eh){onConnect(){o2(this,(n,i)=>{const{cue:a,startTime:l,duration:s}=i,d=n.querySelector(".vds-thumbnail,media-thumbnail"),p=n.querySelector('[data-part="start-time"]'),u=n.querySelector('[data-part="duration"]');p&&(p.textContent=l),u&&(u.textContent=s),d&&(d.setAttribute("time",a.startTime+""),he(()=>{const h=this.$props.thumbnails();"src"in d?d.src=h:Ve(h)&&d.setAttribute("src",h)}))})}}M($j,"tagName","media-chapters-radio-group");class Mj extends dt(HTMLElement,jC){onConnect(){o2(this)}}M(Mj,"tagName","media-audio-gain-radio-group");class Nj extends dt(HTMLElement,MC){}M(Nj,"tagName","media-radio-group");class jj extends dt(HTMLElement,Dp){}M(jj,"tagName","media-slider");const sEe=eC('<video muted playsinline preload="none" style="max-width: unset;"></video>');class Fj extends dt(HTMLElement,d4){constructor(){super(...arguments);P(this,H5);P(this,b3);P(this,Xs,k(this,H5,CJ).call(this))}onSetup(){j(this,b3,_t()),this.$state.video.set(b(this,Xs))}onConnect(){const{canLoad:i}=b(this,b3).$state,{src:a,crossOrigin:l}=this.$state;b(this,Xs).parentNode!==this&&this.prepend(b(this,Xs)),he(()=>{We(b(this,Xs),"crossorigin",l()),We(b(this,Xs),"preload",i()?"auto":"none"),We(b(this,Xs),"src",a())})}}b3=new WeakMap,Xs=new WeakMap,H5=new WeakSet,CJ=function(){return tC(sEe)},M(Fj,"tagName","media-slider-video");class qj extends dt(HTMLElement,BC){}M(qj,"tagName","media-audio-gain-slider");class zj extends dt(HTMLElement,LC){}M(zj,"tagName","media-speed-slider");class Uj extends dt(HTMLElement,PC){}M(Uj,"tagName","media-quality-slider");class Hj extends dt(HTMLElement,$C){constructor(){super(...arguments);P(this,G5);P(this,y1,null)}onConnect(){fs(()=>{if(!this.connectScope)return;const i=this.querySelector("template");i&&(j(this,y1,i),he(k(this,G5,kJ).bind(this)))})}}y1=new WeakMap,G5=new WeakSet,kJ=function(){if(!b(this,y1))return;const i=Vw(b(this,y1),this.cues.length||1);this.setRefs(i)},M(Hj,"tagName","media-slider-chapters");class cEe extends ct{}class Gj extends dt(HTMLElement,cEe){constructor(){super(...arguments);P(this,K5);P(this,z0,null)}onConnect(i){fs(()=>{this.connectScope&&(j(this,z0,i.querySelector("template")),b(this,z0)&&he(k(this,K5,xJ).bind(this)))})}}z0=new WeakMap,K5=new WeakSet,xJ=function(){if(!b(this,z0))return;const{min:i,max:a,step:l}=Zu(Ap),s=(a()-i())/l();Vw(b(this,z0),Math.floor(s)+1)},M(Gj,"tagName","media-slider-steps");class ZC extends ct{constructor(){super(...arguments);P(this,vo);P(this,Za);P(this,g3,"")}onSetup(){j(this,Za,_t()),k(this,vo,kT).call(this),k(this,vo,xT).call(this),k(this,vo,ST).call(this),k(this,vo,CT).call(this)}onAttach(i){i.style.setProperty("pointer-events","none"),he(k(this,vo,TJ).bind(this)),he(k(this,vo,kT).bind(this)),he(k(this,vo,xT).bind(this)),he(k(this,vo,ST).bind(this)),he(k(this,vo,CT).bind(this));const{started:a}=b(this,Za).$state;this.setAttributes({"data-visible":()=>!a()&&!this.$state.hidden(),"data-loading":k(this,vo,IJ).bind(this),"data-error":k(this,vo,wT).bind(this),"data-hidden":this.$state.hidden})}onConnect(i){he(k(this,vo,SJ).bind(this)),he(k(this,vo,EJ).bind(this))}}Za=new WeakMap,vo=new WeakSet,wT=function(){const{error:i}=this.$state;return!il(i())},SJ=function(){const{canLoadPoster:i,poster:a}=b(this,Za).$state;!i()&&a()&&ps(a(),"preconnect")},CT=function(){const{src:i}=this.$props,{poster:a,nativeControls:l}=b(this,Za).$state;this.el&&We(this.el,"display",l()?"none":null),this.$state.hidden.set(k(this,vo,wT).call(this)||!(i()||a())||l())},IJ=function(){const{loading:i,hidden:a}=this.$state;return!a()&&i()},TJ=function(){const i=this.$state.img();i&&(new bo(i).add("load",k(this,vo,IT).bind(this)).add("error",k(this,vo,AJ).bind(this)),i.complete&&k(this,vo,IT).call(this))},g3=new WeakMap,kT=function(){const{poster:i}=b(this,Za).$props,{canLoadPoster:a,providedPoster:l,inferredPoster:s}=b(this,Za).$state,d=this.$props.src()||"",p=d||i()||s();b(this,g3)===l()&&l.set(d),this.$state.src.set(a()&&p.length?p:null),j(this,g3,d)},xT=function(){const{src:i}=this.$props,{alt:a}=this.$state,{poster:l}=b(this,Za).$state;a.set(i()||l()?this.$props.alt():null)},ST=function(){const{crossOrigin:i}=this.$props,{crossOrigin:a}=this.$state,{crossOrigin:l,poster:s}=b(this,Za).$state,d=i()!==null?i():l();a.set(/ytimg\.com|vimeo/.test(s()||"")?null:d===!0?"anonymous":d)},EJ=function(){const{loading:i,error:a}=this.$state,{canLoadPoster:l,poster:s}=b(this,Za).$state;i.set(l()&&!!s()),a.set(null)},IT=function(){const{loading:i,error:a}=this.$state;i.set(!1),a.set(null)},AJ=function(i){const{loading:a,error:l}=this.$state;a.set(!1),l.set(i)},M(ZC,"props",{src:null,alt:null,crossOrigin:null}),M(ZC,"state",new vc({img:null,src:null,alt:null,crossOrigin:null,loading:!0,error:null,hidden:!1}));class XC extends dt(HTMLElement,ZC){constructor(){super(...arguments);P(this,Ml,document.createElement("img"))}onSetup(){this.$state.img.set(b(this,Ml))}onConnect(){const{src:i,alt:a,crossOrigin:l}=this.$state;he(()=>{const{loading:s,hidden:d}=this.$state;b(this,Ml).style.display=s()||d()?"none":""}),he(()=>{We(b(this,Ml),"alt",a()),We(b(this,Ml),"crossorigin",l()),We(b(this,Ml),"src",i())}),b(this,Ml).parentNode!==this&&this.prepend(b(this,Ml))}}Ml=new WeakMap,M(XC,"tagName","media-poster"),M(XC,"attrs",{crossOrigin:"crossorigin"}),at(Oj),at(kj),at(xj),at(XC),at(Cj),at(Bj),at(Lj),at(Pj),at(ij),at(oj),at(VN),at(ej),at(nj),at(aj),at(JN),at(_j),at(Rj),at(jj),at(qj),at(yj),at(bj),at(zj),at(Uj),at(Hj),at(Gj),at(gj),at(WC),at(mj),at(Fj),at(sj),at(cj),at(YC),at(pj),at(dj),at(rj),at(lj),at(uj),at(Mj),at(fj),at($j),at(Nj),at(hj),at(wj),at(h4),at(vj),at(tj),at(QN),at(Sj),at(Tj),at(Aj);const dEe=Fe(c.defineComponent({__name:"fullscreen-button",emits:["toggle"],setup(o,{emit:n}){const i=n;return(a,l)=>(c.openBlock(),c.createElementBlock("media-fullscreen-button",{class:"fullscreen-button",onMediaEnterFullscreenRequest:l[0]||(l[0]=s=>i("toggle",!0)),onMediaExitFullscreenRequest:l[1]||(l[1]=s=>i("toggle",!1))},[c.createVNode(hp,{icon:"player-enter-fullscreen",color:"on-dark",class:"fullscreen-button__enter"}),c.createVNode(hp,{icon:"player-exit-fullscreen",color:"on-dark",class:"fullscreen-button__exit"})],32))}}),[["__scopeId","data-v-66a03a6f"]]),pEe=["disabled"],uEe=Fe(c.defineComponent({__name:"toggle-button",props:{primaryIcon:{},secondaryIcon:{},color:{},disabled:{type:Boolean}},emits:["toggle"],setup(o,{emit:n}){const i=o,a=c.useTemplateRef("toggleButton"),l=n,s=()=>{i.disabled||l("toggle",a.value.pressed)};return(d,p)=>(c.openBlock(),c.createElementBlock("media-toggle-button",{ref_key:"toggleButton",ref:a,class:"toggle-button",disabled:i.disabled,onClick:s},[c.createVNode(hp,{icon:i.primaryIcon,color:i.color,disabled:i.disabled,class:"toggle-button__primary"},null,8,["icon","color","disabled"]),c.createVNode(hp,{icon:i.secondaryIcon,color:i.color,disabled:i.disabled,class:"toggle-button__secondary"},null,8,["icon","color","disabled"])],8,pEe))}}),[["__scopeId","data-v-f1a807ee"]]),fEe={class:"video-display-panel__head"},hEe={class:"video-display-panel__title"},mEe={class:"video-display-panel__controls"},bEe=Fe(c.defineComponent({__name:"video-display-panel",props:{title:{},username:{},closable:{type:Boolean},hideExpand:{type:Boolean}},emits:["close"],setup(o,{emit:n}){const{size:i,fullscreen:a,changeSize:l}=c.inject("size"),s=o,d=n,p=v=>{v?i.value!==Lt.LG&&(a.value=!0,l(Lt.LG)):i.value===Lt.LG&&(h(),a.value=!1,l(Lt.SM))},u=()=>{i.value===Lt.SM?l(Lt.MD):i.value===Lt.MD?l(Lt.SM):i.value===Lt.LG&&(h(),a.value=!1,l(Lt.MD))},h=()=>{document.fullscreenElement&&document.exitFullscreen()},y=v=>{v.key==="Escape"&&p(!1)};return c.onMounted(()=>{document.addEventListener("fullscreenchange",()=>{document.fullscreenElement||p(!1)}),c.onBeforeUnmount(()=>{document.removeEventListener("keyup",y)})}),(v,w)=>(c.openBlock(),c.createElementBlock("media-controls-group",{class:c.normalizeClass(["video-display-panel controls-group",`video-display-panel--${c.unref(i)}`])},[c.createElementVNode("div",fEe,[s.username?(c.openBlock(),c.createBlock(sB,{key:0,username:s.username,size:"sm",class:"video-display-panel__avatar"},null,8,["username"])):c.createCommentVNode("",!0),c.createElementVNode("span",hEe,c.toDisplayString(s.title||s.username),1)]),c.createElementVNode("div",mEe,[c.createVNode(dEe,{onToggle:p}),s.hideExpand?c.createCommentVNode("",!0):(c.openBlock(),c.createBlock(uEe,{key:0,"primary-icon":"expand","secondary-icon":"collapse",color:"on-dark",onToggle:u})),s.closable?(c.openBlock(),c.createBlock(hp,{key:1,icon:"close",color:"on-dark",onClick:w[0]||(w[0]=C=>d("close"))})):c.createCommentVNode("",!0)])],2))}}),[["__scopeId","data-v-5022f508"]]),gEe=Fe(c.defineComponent({__name:"video-layout",props:{title:{},username:{},closable:{type:Boolean},hideHeader:{type:Boolean},hideControlsPanel:{type:Boolean},hideExpand:{type:Boolean}},emits:["close-player","close-session","make-screenshot","toggle-record"],setup(o,{emit:n}){const{size:i}=c.inject("size"),a=o,l=n;return(s,d)=>(c.openBlock(),c.createElementBlock("media-controls",{class:c.normalizeClass(["video-layout controls",`video-layout--${c.unref(i)}`])},[c.createVNode(bEe,{class:c.normalizeClass({"video-display-panel--hidden":a.hideHeader}),title:a.title,username:a.username,closable:a.closable,"hide-expand":a.hideExpand,onClose:d[0]||(d[0]=p=>l("close-player"))},null,8,["class","title","username","closable","hide-expand"]),c.createElementVNode("media-controls-group",null,[c.renderSlot(s.$slots,"content",{},void 0,!0)]),a.hideControlsPanel?c.createCommentVNode("",!0):c.renderSlot(s.$slots,"controls-panel",{key:0},()=>[d[1]||(d[1]=c.createElementVNode("media-controls-panel",null,null,-1))],!0)],2))}}),[["__scopeId","data-v-8a513385"]]),yEe=["src","autoplay","muted"],Kj={WtActionBar:a4e,WtImage:UB,WtEmpty:o6e,WtLogo:A7e,WtAvatar:sB,WtBadge:t5e,WtBadgeNew:cB,WtIcon:U8,WtIndicator:r7e,WtInputInfo:jB,WtButton:r5e,WtChip:dB,WtConfirmDialog:f5e,WtDivider:B9e,WtTooltip:Axe,WtLabel:u7e,WtLoader:S7e,WtRoundedAction:fwe,WtReplaceTransition:e4e,WtCheckbox:H8,WtDatepicker:R9e,WtIconBtn:hp,WtInput:c7e,WtIntersectionObserver:d7e,WtHint:o7e,WtNotification:sve,WtPopup:rwe,WtProgressBar:cwe,WtRadio:uwe,WtSearchBar:ywe,WtSelect:rCe,WtSlider:lCe,WtSwitcher:vCe,WtTabs:MCe,WtTagsInput:Cke,WtTimeInput:Ake,WtTimepicker:Rke,WtTextarea:xke,WtAppHeader:c4e,WtHeadline:V8e,WtBreadcrumb:n5e,WtNavigationBar:ive,WtAppNavigator:_4e,WtFiltersPanelWrapper:k6e,WtHeaderActions:G4e,WtErrorPage:u6e,WtNotificationsBar:hve,WtPageWrapper:kve,WtDualPanel:j9e,WtPagination:$ve,WtPlayer:jve,WtPopover:aP,WtStatusSelect:pCe,WtTable:xCe,WtTree:Mxe,WtTreeTable:Vxe,WtTableActions:ICe,WtTableColumnSelect:_Ce,WtButtonSelect:l5e,WtContextMenu:b5e,WtCopyAction:k5e,WtLoadBar:m7e,WtIconAction:rB,WtPageHeader:mve,WtItemLink:p7e,WtDummy:K9e,WtStepper:gCe,WtExpansionPanel:g6e,WtNavigationMenu:wfe,WtStartPage:Gme,WtSelectionPopup:_me,WtDisplayChipItems:ffe,WtGalleria:W8e,WtVidstackPlayer:Fe(c.defineComponent({__name:"wt-vidstack-player",props:{src:{},mime:{default:"video/mp4"},autoplay:{type:Boolean,default:!1},muted:{type:Boolean,default:!0},title:{default:""},username:{default:""},closable:{type:Boolean,default:!1},static:{type:Boolean,default:!1},stream:{},size:{},hideHeader:{type:Boolean},hideControlsPanel:{type:Boolean},hideBackground:{type:Boolean},hideExpand:{type:Boolean},stretch:{type:Boolean},videoObjectFit:{default:"contain"}},emits:["close","change-size"],setup(o,{emit:n}){const i=o,a=n,l=c.useTemplateRef("player"),s=c.ref(i.size||Lt.SM),d=c.ref(!1),p=v=>{s.value=v,a("change-size",v)};c.provide("size",{size:s,fullscreen:d,changeSize:p});const u=c.computed(()=>{if(i.mime)return i.mime;if(typeof i.src=="string"){if(i.src.includes("media")||i.src.includes("mp3"))return"audio/mp3";if(i.src.includes("ogg")||i.src.includes("oga"))return"audio/ogg"}return"video/mp4"}),h=c.computed(()=>{var v,w;return i.stream?{src:i.stream,type:"video/object"}:typeof i.src=="string"?{src:i.src,type:u.value}:{src:((v=i.src)==null?void 0:v.src)||null,type:((w=i.src)==null?void 0:w.type)||u.value}}),y=v=>{var w;(w=v==null?void 0:v.srcElement)==null||w.play()};return(v,w)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["wt-vidstack-player",[`wt-vidstack-player--${s.value}`,`wt-vidstack-player-video-object-fit--${i.videoObjectFit}`,d.value&&"wt-vidstack-player--fullscreen",o.stretch&&"wt-vidstack-player--stretch",i.static&&"wt-vidstack-player--static",i.hideBackground&&"wt-vidstack-player--hide-background"]])},[c.createElementVNode("media-player",{ref_key:"player",ref:l,src:h.value,autoplay:i.autoplay,muted:i.muted,class:"wt-vidstack-player__player","cross-origin":"",playsinline:"",onClose:w[1]||(w[1]=C=>a("close")),onCanPlay:y},[w[2]||(w[2]=c.createElementVNode("media-provider",{class:"wt-vidstack-player__provider"},null,-1)),c.createVNode(c.unref(gEe),{"hide-header":i.hideHeader,"hide-controls-panel":i.hideControlsPanel,closable:i.closable,autoplay:i.autoplay,title:i.title,username:i.username,"hide-expand":i.hideExpand,onClosePlayer:w[0]||(w[0]=C=>a("close"))},{"controls-panel":c.withCtx(()=>[c.renderSlot(v.$slots,"controls-panel",{size:s.value},void 0,!0)]),content:c.withCtx(()=>[c.renderSlot(v.$slots,"content",{size:s.value},void 0,!0)]),_:3},8,["hide-header","hide-controls-panel","closable","autoplay","title","username","hide-expand"])],40,yEe)],2))}}),[["__scopeId","data-v-02ab188a"]]),WtChatEmoji:j0e},Wj=c7?window:void 0;function ah(o){var n;const i=c.toValue(o);return(n=i==null?void 0:i.$el)!=null?n:i}function m4(...o){const n=[],i=()=>{n.forEach(p=>p()),n.length=0},a=(p,u,h,y)=>(p.addEventListener(u,h,y),()=>p.removeEventListener(u,h,y)),l=c.computed(()=>{const p=dp(c.toValue(o[0])).filter(u=>u!=null);return p.every(u=>typeof u!="string")?p:void 0}),s=MB(()=>{var p,u;return[(u=(p=l.value)==null?void 0:p.map(h=>ah(h)))!=null?u:[Wj].filter(h=>h!=null),dp(c.toValue(l.value?o[1]:o[0])),dp(c.unref(l.value?o[2]:o[1])),c.toValue(l.value?o[3]:o[2])]},([p,u,h,y])=>{if(i(),!(p!=null&&p.length)||!(u!=null&&u.length)||!(h!=null&&h.length))return;const v=$B(y)?{...y}:y;n.push(...p.flatMap(w=>u.flatMap(C=>h.map(S=>a(w,C,S,v)))))},{flush:"post"}),d=()=>{s(),i()};return eg(i),d}let Yj=!1;function Zj(o,n,i={}){const{window:a=Wj,ignore:l=[],capture:s=!0,detectIframe:d=!1,controls:p=!1}=i;if(!a)return p?{stop:Qr,cancel:Qr,trigger:Qr}:Qr;if(d7&&!Yj){Yj=!0;const A={passive:!0};Array.from(a.document.body.children).forEach(T=>T.addEventListener("click",Qr,A)),a.document.documentElement.addEventListener("click",Qr,A)}let u=!0;const h=A=>c.toValue(l).some(T=>{if(typeof T=="string")return Array.from(a.document.querySelectorAll(T)).some(x=>x===A.target||A.composedPath().includes(x));{const x=ah(T);return x&&(A.target===x||A.composedPath().includes(x))}});function y(A){const T=c.toValue(A);return T&&T.$.subTree.shapeFlag===16}function v(A,T){const x=c.toValue(A),_=x.$.subTree&&x.$.subTree.children;return _==null||!Array.isArray(_)?!1:_.some(O=>O.el===T.target||T.composedPath().includes(O.el))}const w=A=>{const T=ah(o);if(A.target!=null&&!(!(T instanceof Element)&&y(o)&&v(o,A))&&!(!T||T===A.target||A.composedPath().includes(T))){if("detail"in A&&A.detail===0&&(u=!h(A)),!u){u=!0;return}n(A)}};let C=!1;const S=[m4(a,"click",A=>{C||(C=!0,setTimeout(()=>{C=!1},0),w(A))},{passive:!0,capture:s}),m4(a,"pointerdown",A=>{const T=ah(o);u=!h(A)&&!!(T&&!A.composedPath().includes(T))},{passive:!0}),d&&m4(a,"blur",A=>{setTimeout(()=>{var T;const x=ah(o);((T=a.document.activeElement)==null?void 0:T.tagName)==="IFRAME"&&!(x!=null&&x.contains(a.document.activeElement))&&n(A)},0)},{passive:!0})].filter(Boolean),E=()=>S.forEach(A=>A());return p?{stop:E,cancel:()=>{u=!1},trigger:A=>{u=!0,w(A),u=!1}}:E}const QC=new WeakMap,vEe={mounted(o,n){const i=!n.modifiers.bubble;let a;if(typeof n.value=="function")a=Zj(o,n.value,{capture:i});else{const[l,s]=n.value;a=Zj(o,l,Object.assign({capture:i},s))}QC.set(o,a)},unmounted(o){const n=QC.get(o);n&&typeof n=="function"?n():n==null||n.stop(),QC.delete(o)}};function JC(o){return typeof Window<"u"&&o instanceof Window?o.document.documentElement:typeof Document<"u"&&o instanceof Document?o.documentElement:o}function Xj(o){const n=window.getComputedStyle(o);if(n.overflowX==="scroll"||n.overflowY==="scroll"||n.overflowX==="auto"&&o.clientWidth<o.scrollWidth||n.overflowY==="auto"&&o.clientHeight<o.scrollHeight)return!0;{const i=o.parentNode;return!i||i.tagName==="BODY"?!1:Xj(i)}}function wEe(o){const n=o||window.event,i=n.target;return Xj(i)?!1:n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)}const VC=new WeakMap;function CEe(o,n=!1){const i=c.shallowRef(n);let a=null,l="";c.watch(k9e(o),p=>{const u=JC(c.toValue(p));if(u){const h=u;if(VC.get(h)||VC.set(h,h.style.overflow),h.style.overflow!=="hidden"&&(l=h.style.overflow),h.style.overflow==="hidden")return i.value=!0;if(i.value)return h.style.overflow="hidden"}},{immediate:!0});const s=()=>{const p=JC(c.toValue(o));!p||i.value||(d7&&(a=m4(p,"touchmove",u=>{wEe(u)},{passive:!1})),p.style.overflow="hidden",i.value=!0)},d=()=>{const p=JC(c.toValue(o));!p||!i.value||(d7&&(a==null||a()),p.style.overflow=l,VC.delete(p),i.value=!1)};return eg(d),c.computed({get(){return i.value},set(p){p?s():d()}})}function kEe(){let o=!1;const n=c.shallowRef(!1);return(i,a)=>{if(n.value=a.value,o)return;o=!0;const l=CEe(i,a.value);c.watch(n,s=>l.value=s)}}kEe();const Qj={clickaway:vEe};function Wo(...o){if(o){let n=[];for(let i=0;i<o.length;i++){let a=o[i];if(!a)continue;let l=typeof a;if(l==="string"||l==="number")n.push(a);else if(l==="object"){let s=Array.isArray(a)?[Wo(...a)]:Object.entries(a).map(([d,p])=>p?d:void 0);n=s.length?n.concat(s.filter(d=>!!d)):n}}return n.join(" ").trim()}}function Jj(o,n){return o?o.classList?o.classList.contains(n):new RegExp("(^| )"+n+"( |$)","gi").test(o.className):!1}function Fa(o,n){if(o&&n){let i=a=>{Jj(o,a)||(o.classList?o.classList.add(a):o.className+=" "+a)};[n].flat().filter(Boolean).forEach(a=>a.split(" ").forEach(i))}}function xEe(){return window.innerWidth-document.documentElement.offsetWidth}function SEe(o){typeof o=="string"?Fa(document.body,o||"p-overflow-hidden"):(o!=null&&o.variableName&&document.body.style.setProperty(o.variableName,xEe()+"px"),Fa(document.body,(o==null?void 0:o.className)||"p-overflow-hidden"))}function IEe(o){if(o){let n=document.createElement("a");if(n.download!==void 0){let{name:i,src:a}=o;return n.setAttribute("href",a),n.setAttribute("download",i),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),!0}}return!1}function TEe(o,n){let i=new Blob([o],{type:"application/csv;charset=utf-8;"});window.navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(i,n+".csv"):IEe({name:n+".csv",src:URL.createObjectURL(i)})||(o="data:text/csv;charset=utf-8,"+o,window.open(encodeURI(o)))}function wa(o,n){if(o&&n){let i=a=>{o.classList?o.classList.remove(a):o.className=o.className.replace(new RegExp("(^|\\b)"+a.split(" ").join("|")+"(\\b|$)","gi")," ")};[n].flat().filter(Boolean).forEach(a=>a.split(" ").forEach(i))}}function EEe(o){typeof o=="string"?wa(document.body,o||"p-overflow-hidden"):(o!=null&&o.variableName&&document.body.style.removeProperty(o.variableName),wa(document.body,(o==null?void 0:o.className)||"p-overflow-hidden"))}function ek(o){for(let n of document==null?void 0:document.styleSheets)try{for(let i of n==null?void 0:n.cssRules)for(let a of i==null?void 0:i.style)if(o.test(a))return{name:a,value:i.style.getPropertyValue(a).trim()}}catch{}return null}function Vj(o){let n={width:0,height:0};if(o){let[i,a]=[o.style.visibility,o.style.display],l=o.getBoundingClientRect();o.style.visibility="hidden",o.style.display="block",n.width=l.width||o.offsetWidth,n.height=l.height||o.offsetHeight,o.style.display=a,o.style.visibility=i}return n}function rh(){let o=window,n=document,i=n.documentElement,a=n.getElementsByTagName("body")[0],l=o.innerWidth||i.clientWidth||a.clientWidth,s=o.innerHeight||i.clientHeight||a.clientHeight;return{width:l,height:s}}function tk(o){return o?Math.abs(o.scrollLeft):0}function ok(){let o=document.documentElement;return(window.pageXOffset||tk(o))-(o.clientLeft||0)}function nk(){let o=document.documentElement;return(window.pageYOffset||o.scrollTop)-(o.clientTop||0)}function ik(o){return o?getComputedStyle(o).direction==="rtl":!1}function b4(o,n,i=!0){var a,l,s,d;if(o){let p=o.offsetParent?{width:o.offsetWidth,height:o.offsetHeight}:Vj(o),u=p.height,h=p.width,y=n.offsetHeight,v=n.offsetWidth,w=n.getBoundingClientRect(),C=nk(),S=ok(),E=rh(),A,T,x="top";w.top+y+u>E.height?(A=w.top+C-u,x="bottom",A<0&&(A=C)):A=y+w.top+C,w.left+h>E.width?T=Math.max(0,w.left+S+v-h):T=w.left+S,ik(o)?o.style.insetInlineEnd=T+"px":o.style.insetInlineStart=T+"px",o.style.top=A+"px",o.style.transformOrigin=x,i&&(o.style.marginTop=x==="bottom"?`calc(${(l=(a=ek(/-anchor-gutter$/))==null?void 0:a.value)!=null?l:"2px"} * -1)`:(d=(s=ek(/-anchor-gutter$/))==null?void 0:s.value)!=null?d:"")}}function n2(o,n){o&&(typeof n=="string"?o.style.cssText=n:Object.entries(n||{}).forEach(([i,a])=>o.style[i]=a))}function sn(o,n){return o instanceof HTMLElement?o.offsetWidth:0}function eF(o,n,i=!0,a=void 0){var l;if(o){let s=o.offsetParent?{width:o.offsetWidth,height:o.offsetHeight}:Vj(o),d=n.offsetHeight,p=n.getBoundingClientRect(),u=rh(),h,y,v=a??"top";if(!a&&p.top+d+s.height>u.height?(h=-1*s.height,v="bottom",p.top+h<0&&(h=-1*p.top)):h=d,s.width>u.width?y=p.left*-1:p.left+s.width>u.width?y=(p.left+s.width-u.width)*-1:y=0,o.style.top=h+"px",o.style.insetInlineStart=y+"px",o.style.transformOrigin=v,i){let w=(l=ek(/-anchor-gutter$/))==null?void 0:l.value;o.style.marginTop=v==="bottom"?`calc(${w??"2px"} * -1)`:w??""}}}function ak(o){if(o){let n=o.parentNode;return n&&n instanceof ShadowRoot&&n.host&&(n=n.host),n}return null}function tF(o){return!!(o!==null&&typeof o<"u"&&o.nodeName&&ak(o))}function Ic(o){return typeof Element<"u"?o instanceof Element:o!==null&&typeof o=="object"&&o.nodeType===1&&typeof o.nodeName=="string"}function g4(){if(window.getSelection){let o=window.getSelection()||{};o.empty?o.empty():o.removeAllRanges&&o.rangeCount>0&&o.getRangeAt(0).getClientRects().length>0&&o.removeAllRanges()}}function y4(o,n={}){if(Ic(o)){let i=(a,l)=>{var s,d;let p=(s=o==null?void 0:o.$attrs)!=null&&s[a]?[(d=o==null?void 0:o.$attrs)==null?void 0:d[a]]:[];return[l].flat().reduce((u,h)=>{if(h!=null){let y=typeof h;if(y==="string"||y==="number")u.push(h);else if(y==="object"){let v=Array.isArray(h)?i(a,h):Object.entries(h).map(([w,C])=>a==="style"&&(C||C===0)?`${w.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${C}`:C?w:void 0);u=v.length?u.concat(v.filter(w=>!!w)):u}}return u},p)};Object.entries(n).forEach(([a,l])=>{if(l!=null){let s=a.match(/^on(.+)/);s?o.addEventListener(s[1].toLowerCase(),l):a==="p-bind"||a==="pBind"?y4(o,l):(l=a==="class"?[...new Set(i("class",l))].join(" ").trim():a==="style"?i("style",l).join(";").trim():l,(o.$attrs=o.$attrs||{})&&(o.$attrs[a]=l),o.setAttribute(a,l))}})}}function lh(o,n={},...i){if(o){let a=document.createElement(o);return y4(a,n),a.append(...i),a}}function AEe(o,n){if(o){o.style.opacity="0";let i=+new Date,a="0",l=function(){a=`${+o.style.opacity+(new Date().getTime()-i)/n}`,o.style.opacity=a,i=+new Date,+a<1&&("requestAnimationFrame"in window?requestAnimationFrame(l):setTimeout(l,16))};l()}}function Si(o,n){return Ic(o)?Array.from(o.querySelectorAll(n)):[]}function Hn(o,n){return Ic(o)?o.matches(n)?o:o.querySelector(n):null}function go(o,n){o&&document.activeElement!==o&&o.focus(n)}function Eo(o,n){if(Ic(o)){let i=o.getAttribute(n);return isNaN(i)?i==="true"||i==="false"?i==="true":i:+i}}function rk(o,n=""){let i=Si(o,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},
3188
3188
  [href]:not([tabindex = "-1"]):not([style*="display:none"]):not([hidden])${n},
3189
3189
  input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},
3190
3190
  select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},
@@ -5,8 +5,8 @@ var ot = (n) => {
5
5
  var Xt = (n, t, s) => t in n ? Qt(n, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : n[t] = s;
6
6
  var N = (n, t, s) => Xt(n, typeof t != "symbol" ? t + "" : t, s), X = (n, t, s) => t.has(n) || ot("Cannot " + s);
7
7
  var i = (n, t, s) => (X(n, t, "read from private field"), s ? s.call(n) : t.get(n)), d = (n, t, s) => t.has(n) ? ot("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(n) : t.set(n, s), c = (n, t, s, r) => (X(n, t, "write to private field"), r ? r.call(n, s) : t.set(n, s), s), a = (n, t, s) => (X(n, t, "access private method"), s);
8
- import { A as Yt, z as ut, B as j, C as Zt, b as ti, E as nt, e as lt, F as _, G as ii, H as ei, f as si, J as ai, l as rt, K as dt, D as ni, L as Y, M as Z } from "./install-BUivnNCy.js";
9
- import { R as ri } from "./vidstack-DqAw8m9J-DiLnJpqy.js";
8
+ import { A as Yt, z as ut, B as j, C as Zt, b as ti, E as nt, e as lt, F as _, G as ii, H as ei, f as si, J as ai, l as rt, K as dt, D as ni, L as Y, M as Z } from "./install-B8JNcoye.js";
9
+ import { R as ri } from "./vidstack-DqAw8m9J-fTI0n0C2.js";
10
10
  let q = null, K = [], z = [];
11
11
  function ht() {
12
12
  return q ?? (q = new AudioContext());
@@ -5,7 +5,7 @@ var w = (t) => {
5
5
  var P = (t, e, a) => e in t ? _(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
6
6
  var u = (t, e, a) => P(t, typeof e != "symbol" ? e + "" : e, a), C = (t, e, a) => e.has(t) || w("Cannot " + a);
7
7
  var c = (t, e, a) => (C(t, e, "read from private field"), a ? a.call(t) : e.get(t)), m = (t, e, a) => e.has(t) ? w("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, a), y = (t, e, a, o) => (C(t, e, "write to private field"), o ? o.call(t, a) : e.set(t, a), a), s = (t, e, a) => (C(t, e, "access private method"), a);
8
- import { l as b, k as A, V as O, G as D, f as R, o as G } from "./install-BUivnNCy.js";
8
+ import { l as b, k as A, V as O, G as D, f as R, o as G } from "./install-B8JNcoye.js";
9
9
  function M() {
10
10
  return "https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1";
11
11
  }
@@ -94,7 +94,7 @@ class F {
94
94
  async load(e) {
95
95
  if (!c(this, n))
96
96
  throw Error("[vidstack] google cast player was not initialized");
97
- return new (await import("./vidstack-google-cast-uP2CzAX2.js")).GoogleCastProvider(c(this, n), e);
97
+ return new (await import("./vidstack-google-cast-Bv3kuiDu.js")).GoogleCastProvider(c(this, n), e);
98
98
  }
99
99
  }
100
100
  n = new WeakMap(), r = new WeakSet(), S = async function(e) {
@@ -5,7 +5,7 @@ var g = (s) => {
5
5
  var M = (s, t, i) => t in s ? y(s, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[t] = i;
6
6
  var c = (s, t, i) => M(s, typeof t != "symbol" ? t + "" : t, i), h = (s, t, i) => t.has(s) || g("Cannot " + i);
7
7
  var e = (s, t, i) => (h(s, t, "read from private field"), i ? i.call(s) : t.get(s)), l = (s, t, i) => t.has(s) ? g("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, i), p = (s, t, i, a) => (h(s, t, "write to private field"), a ? a.call(s, i) : t.set(s, i), i), u = (s, t, i) => (h(s, t, "access private method"), i);
8
- import { M as w, l as f, e as A, f as P, U as O, b as S } from "./install-BUivnNCy.js";
8
+ import { M as w, l as f, e as A, f as P, U as O, b as S } from "./install-B8JNcoye.js";
9
9
  var r, o, b, m;
10
10
  class J {
11
11
  constructor(t) {
@@ -1,4 +1,4 @@
1
- import { c as d, a as i, I as l, e as m } from "./install-BUivnNCy.js";
1
+ import { c as d, a as i, I as l, e as m } from "./install-B8JNcoye.js";
2
2
  const p = /* @__PURE__ */ i(
3
3
  '<svg viewBox="0 0 32 32" fill="none" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"></svg>'
4
4
  );
@@ -3,7 +3,7 @@ var l = (i) => {
3
3
  };
4
4
  var m = (i, t, s) => t.has(i) || l("Cannot " + s);
5
5
  var r = (i, t, s) => (m(i, t, "read from private field"), s ? s.call(i) : t.get(i)), e = (i, t, s) => t.has(i) ? l("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, s), h = (i, t, s, f) => (m(i, t, "write to private field"), f ? f.call(i, s) : t.set(i, s), s), c = (i, t, s) => (m(i, t, "access private method"), s);
6
- import { m as p, v as u } from "./install-BUivnNCy.js";
6
+ import { m as p, v as u } from "./install-B8JNcoye.js";
7
7
  var o, a, n, d;
8
8
  class F {
9
9
  constructor(t) {
@@ -1,8 +1,8 @@
1
1
  var a = Object.defineProperty;
2
2
  var o = (i, e, t) => e in i ? a(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
3
  var r = (i, e, t) => o(i, typeof e != "symbol" ? e + "" : e, t);
4
- import { s as p } from "./install-BUivnNCy.js";
5
- import { H as d, a as u } from "./vidstack-Bq6c3Bam-DPX2f4W3.js";
4
+ import { s as p } from "./install-B8JNcoye.js";
5
+ import { H as d, a as u } from "./vidstack-Bq6c3Bam-B5Zg-rlV.js";
6
6
  class n extends d {
7
7
  constructor(t, s) {
8
8
  super(t, s);
@@ -5,9 +5,9 @@ var Y = (n) => {
5
5
  var wt = (n, t, e) => t in n ? vt(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
6
6
  var I = (n, t, e) => wt(n, typeof t != "symbol" ? t + "" : t, e), b = (n, t, e) => t.has(n) || Y("Cannot " + e);
7
7
  var i = (n, t, e) => (b(n, t, "read from private field"), e ? e.call(n) : t.get(n)), f = (n, t, e) => t.has(n) ? Y("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(n) : t.set(n, e), p = (n, t, e, r) => (b(n, t, "write to private field"), r ? r.call(n, e) : t.set(n, e), e), h = (n, t, e) => (b(n, t, "access private method"), e);
8
- import { r as Et, b as _, d as Lt, f as At, Q as z, l as J, e as Dt, D as N, h as xt, j as O, T as Mt, L as q, t as Ct, u as Nt, v as Rt, k as Ft, m as Z, n as Pt, o as qt, q as _t } from "./install-BUivnNCy.js";
9
- import { VideoProvider as $t } from "./vidstack-video-BIsBopdI.js";
10
- import { R as jt } from "./vidstack-DqAw8m9J-DiLnJpqy.js";
8
+ import { r as Et, b as _, d as Lt, f as At, Q as z, l as J, e as Dt, D as N, h as xt, j as O, T as Mt, L as q, t as Ct, u as Nt, v as Rt, k as Ft, m as Z, n as Pt, o as qt, q as _t } from "./install-B8JNcoye.js";
9
+ import { VideoProvider as $t } from "./vidstack-video-rs777JhY.js";
10
+ import { R as jt } from "./vidstack-DqAw8m9J-fTI0n0C2.js";
11
11
  function W(n) {
12
12
  try {
13
13
  return new Intl.DisplayNames(navigator.languages, { type: "language" }).of(n) ?? null;
@@ -5,9 +5,9 @@ var Q = (d) => {
5
5
  var vt = (d, t, s) => t in d ? Lt(d, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : d[t] = s;
6
6
  var G = (d, t, s) => vt(d, typeof t != "symbol" ? t + "" : t, s), O = (d, t, s) => t.has(d) || Q("Cannot " + s);
7
7
  var e = (d, t, s) => (O(d, t, "read from private field"), s ? s.call(d) : t.get(d)), T = (d, t, s) => t.has(d) ? Q("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(d) : t.set(d, s), l = (d, t, s, i) => (O(d, t, "write to private field"), i ? i.call(d, s) : t.set(d, s), s), r = (d, t, s) => (O(d, t, "access private method"), s);
8
- import { A as St, N as L, W as Z, z as At, D as tt, f as V, l as et, e as It, X as bt, L as Rt } from "./install-BUivnNCy.js";
9
- import { R as wt } from "./vidstack-DqAw8m9J-DiLnJpqy.js";
10
- import { g as Mt, a as Dt, b as it, h as st, l as Nt, c as Pt } from "./vidstack-D2pY00kU-DZBArKSs.js";
8
+ import { A as St, N as L, W as Z, z as At, D as tt, f as V, l as et, e as It, X as bt, L as Rt } from "./install-B8JNcoye.js";
9
+ import { R as wt } from "./vidstack-DqAw8m9J-fTI0n0C2.js";
10
+ import { g as Mt, a as Dt, b as it, h as st, l as Nt, c as Pt } from "./vidstack-D2pY00kU-DB-utBEG.js";
11
11
  var g, _, at;
12
12
  class _t {
13
13
  constructor(t) {
@@ -5,9 +5,9 @@ var q = (n) => {
5
5
  var ot = (n, t, i) => t in n ? rt(n, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : n[t] = i;
6
6
  var _ = (n, t, i) => ot(n, typeof t != "symbol" ? t + "" : t, i), R = (n, t, i) => t.has(n) || q("Cannot " + i);
7
7
  var e = (n, t, i) => (R(n, t, "read from private field"), i ? i.call(n) : t.get(n)), f = (n, t, i) => t.has(n) ? q("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(n) : t.set(n, i), p = (n, t, i, s) => (R(n, t, "write to private field"), s ? s.call(n, i) : t.set(n, i), i), a = (n, t, i) => (R(n, t, "access private method"), i);
8
- import { i as ht, b as C, d as at, f as O, Q as N, l as V, e as dt, D as x, h as ut, T as ct, j, L as $, k as lt, m as k, n as ft, o as pt, q as vt } from "./install-BUivnNCy.js";
9
- import { VideoProvider as yt } from "./vidstack-video-BIsBopdI.js";
10
- import { R as gt } from "./vidstack-DqAw8m9J-DiLnJpqy.js";
8
+ import { i as ht, b as C, d as at, f as O, Q as N, l as V, e as dt, D as x, h as ut, T as ct, j, L as $, k as lt, m as k, n as ft, o as pt, q as vt } from "./install-B8JNcoye.js";
9
+ import { VideoProvider as yt } from "./vidstack-video-rs777JhY.js";
10
+ import { R as gt } from "./vidstack-DqAw8m9J-fTI0n0C2.js";
11
11
  const Lt = (n) => ut(n);
12
12
  var T, h, o, D, b, r, E, M, U, F, Q, K, W, B, J, X, Y, z, G, Z, tt;
13
13
  class St {
@@ -5,8 +5,8 @@ var b = (i) => {
5
5
  var N = (i, t, e) => t in i ? $(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
6
6
  var y = (i, t, e) => N(i, typeof t != "symbol" ? t + "" : t, e), E = (i, t, e) => t.has(i) || b("Cannot " + e);
7
7
  var s = (i, t, e) => (E(i, t, "read from private field"), e ? e.call(i) : t.get(i)), r = (i, t, e) => t.has(i) ? b("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, e), c = (i, t, e, n) => (E(i, t, "write to private field"), n ? n.call(i, e) : t.set(i, e), e), p = (i, t, e) => (E(i, t, "access private method"), e);
8
- import { s as U, w as V, x as A, y as j, z as C, l as q, D as z, E as F, T as Y, j as v } from "./install-BUivnNCy.js";
9
- import { H as _, a as B } from "./vidstack-Bq6c3Bam-DPX2f4W3.js";
8
+ import { s as U, w as V, x as A, y as j, z as C, l as q, D as z, E as F, T as Y, j as v } from "./install-B8JNcoye.js";
9
+ import { H as _, a as B } from "./vidstack-Bq6c3Bam-B5Zg-rlV.js";
10
10
  var P, f, k, D, H;
11
11
  class G {
12
12
  constructor(t, e) {
@@ -5,9 +5,9 @@ var N = (r) => {
5
5
  var de = (r, c, e) => c in r ? ue(r, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[c] = e;
6
6
  var b = (r, c, e) => de(r, typeof c != "symbol" ? c + "" : c, e), S = (r, c, e) => c.has(r) || N("Cannot " + e);
7
7
  var t = (r, c, e) => (S(r, c, "read from private field"), e ? e.call(r) : c.get(r)), f = (r, c, e) => c.has(r) ? N("Cannot add the same private member more than once") : c instanceof WeakSet ? c.add(r) : c.set(r, e), u = (r, c, e, i) => (S(r, c, "write to private field"), i ? i.call(r, e) : c.set(r, e), e), o = (r, c, e) => (S(r, c, "access private method"), e);
8
- import { A as fe, M as U, N as C, d as pe, e as q, f as Q, b as ye, O as _, L as R, l as be, P as ke, T as ve, Q as W } from "./install-BUivnNCy.js";
9
- import { R as me } from "./vidstack-DqAw8m9J-DiLnJpqy.js";
10
- import { E as we } from "./vidstack-DDXt6fpN-DZEByFh0.js";
8
+ import { A as fe, M as U, N as C, d as pe, e as q, f as Q, b as ye, O as _, L as R, l as be, P as ke, T as ve, Q as W } from "./install-B8JNcoye.js";
9
+ import { R as me } from "./vidstack-DqAw8m9J-fTI0n0C2.js";
10
+ import { E as we } from "./vidstack-DDXt6fpN-D1r7J67P.js";
11
11
  import { resolveVimeoVideoId as Pe, getVimeoVideoInfo as Te } from "./vidstack-krOAtKMi-B4IZWKdc.js";
12
12
  const Ce = [
13
13
  "bufferend",
@@ -5,8 +5,8 @@ var B = (r) => {
5
5
  var q = (r, n, e) => n in r ? A(r, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[n] = e;
6
6
  var T = (r, n, e) => q(r, typeof n != "symbol" ? n + "" : n, e), M = (r, n, e) => n.has(r) || B("Cannot " + e);
7
7
  var s = (r, n, e) => (M(r, n, "read from private field"), e ? e.call(r) : n.get(r)), p = (r, n, e) => n.has(r) ? B("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(r) : n.set(r, e), l = (r, n, e, t) => (M(r, n, "write to private field"), t ? t.call(r, e) : n.set(r, e), e), o = (r, n, e) => (M(r, n, "access private method"), e);
8
- import { A as z, M as G, d as H, e as J, b as K, O as Q, N as C, R as W, v as $, S as X } from "./install-BUivnNCy.js";
9
- import { E as Z } from "./vidstack-DDXt6fpN-DZEByFh0.js";
8
+ import { A as z, M as G, d as H, e as J, b as K, O as Q, N as C, R as W, v as $, S as X } from "./install-B8JNcoye.js";
9
+ import { E as Z } from "./vidstack-DDXt6fpN-D1r7J67P.js";
10
10
  import { resolveYouTubeVideoId as ee } from "./vidstack-Dm1xEU9Q-qSXq3AI-.js";
11
11
  const b = {
12
12
  Ended: 0,
@@ -1,4 +1,4 @@
1
- import { p as d } from "./install-BUivnNCy.js";
1
+ import { p as d } from "./install-B8JNcoye.js";
2
2
  import { inject as lt, effectScope as dt, reactive as vt, watch as J, computed as pt } from "vue";
3
3
  function ht() {
4
4
  return W().__VUE_DEVTOOLS_GLOBAL_HOOK__;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "25.12.70",
3
+ "version": "25.12.72",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "make-all": "npm version patch --git-tag-version false && npm run build && (npm run build:types || true) && (npm run lint:fix || true) && npm run publish-lib",
@@ -55,7 +55,7 @@
55
55
  "@vuelidate/validators": "^2.0.4",
56
56
  "@vuepic/vue-datepicker": "^4.5.1",
57
57
  "@vueuse/components": "^13.0.0",
58
- "@webitel/api-services": "^0.0.100",
58
+ "@webitel/api-services": "^0.0.105",
59
59
  "@webitel/styleguide": "^25.12.7",
60
60
  "autosize": "^6.0.1",
61
61
  "axios": "^1.8.3",
@@ -3,6 +3,7 @@
3
3
  class="wt-vidstack-player"
4
4
  :class="[
5
5
  `wt-vidstack-player--${size}`,
6
+ `wt-vidstack-player-video-object-fit--${props.videoObjectFit}`,
6
7
  fullscreen && `wt-vidstack-player--fullscreen`,
7
8
  stretch && `wt-vidstack-player--stretch`,
8
9
  props.static && 'wt-vidstack-player--static',
@@ -16,8 +17,9 @@
16
17
  :muted="props.muted"
17
18
  class="wt-vidstack-player__player"
18
19
  cross-origin
19
- plays-inline
20
+ playsinline
20
21
  @close="emit('close')"
22
+ @can-play="onCanPlay"
21
23
  >
22
24
  <media-provider
23
25
  class="wt-vidstack-player__provider"
@@ -51,7 +53,7 @@ import 'vidstack/player';
51
53
  import 'vidstack/player/ui';
52
54
 
53
55
  import type {MediaPlayerElement} from 'vidstack/elements';
54
- import { computed, defineEmits, defineProps, provide, ref, useTemplateRef } from 'vue';
56
+ import {computed, defineEmits, defineProps, provide, ref, useTemplateRef, watch} from 'vue';
55
57
 
56
58
  import {ComponentSize} from '../../enums';
57
59
  import {VideoLayout} from "./components";
@@ -72,6 +74,7 @@ interface Props {
72
74
  hideBackground?: boolean
73
75
  hideExpand?: boolean
74
76
  stretch?: boolean
77
+ videoObjectFit?: 'cover' | 'contain'
75
78
  }
76
79
 
77
80
  const props = withDefaults(defineProps<Props>(), {
@@ -82,6 +85,7 @@ const props = withDefaults(defineProps<Props>(), {
82
85
  username: '',
83
86
  closable: false,
84
87
  static: false,
88
+ videoObjectFit: 'contain',
85
89
  });
86
90
 
87
91
  const emit = defineEmits<{
@@ -130,6 +134,9 @@ const normalizedSrc = computed(() => {
130
134
  };
131
135
  });
132
136
 
137
+ const onCanPlay = (ev: unknown) => {
138
+ ev?.srcElement?.play()
139
+ }
133
140
  </script>
134
141
 
135
142
  <style scoped lang="scss">
@@ -276,11 +283,20 @@ const normalizedSrc = computed(() => {
276
283
  <style lang="scss">
277
284
  .wt-vidstack-player {
278
285
  video {
279
- height: 100%;
280
- object-fit: cover;
281
- width: 100%;
282
286
  min-width: 0;
287
+ width: 100%;
288
+ height: 100%;
283
289
  background: var(--p-player-wrapper-background);
284
290
  }
291
+
292
+ &-video-object-fit {
293
+ &--cover {
294
+ object-fit: cover;
295
+ }
296
+
297
+ &--contain {
298
+ object-fit: contain;
299
+ }
300
+ }
285
301
  }
286
302
  </style>
@@ -1,7 +1,7 @@
1
1
  export const SupervisorSections = {
2
2
  Queues: 'queues',
3
3
  Agents: 'agents',
4
- ActiveCalls: 'activeCalls',
4
+ ActiveCalls: 'active-calls',
5
5
  } as const;
6
6
 
7
7
  export type SupervisorSections =
@@ -1,5 +1,5 @@
1
1
  export const WfmSections = {
2
- MySchedules: 'mySchedules',
2
+ MySchedules: 'my-schedules',
3
3
  Agents: 'agents',
4
4
  Schedules: 'schedules',
5
5
  } as const;
@@ -6,10 +6,10 @@
6
6
  :class="[!props.static && `video-call-position--${props.position}`]"
7
7
  :username="props.username"
8
8
  :hide-header="props.hideHeader"
9
+ video-object-fit="cover"
9
10
  class="video-call"
10
11
  hide-background
11
12
  autoplay
12
- muted
13
13
  @change-size="(payload) => emit('change-size', payload)"
14
14
  >
15
15
  <template #content="{ size: innerSize }">
@@ -53,11 +53,11 @@
53
53
  <wt-vidstack-player
54
54
  :stream="props['sender:stream']"
55
55
  :class="`video-call-sender--${innerSize}`"
56
+ video-object-fit="cover"
56
57
  hide-header
57
58
  hide-controls-panel
58
59
  static
59
60
  autoplay
60
- muted
61
61
  class="video-call-sender"
62
62
  />
63
63
  </template>
@@ -20,16 +20,17 @@ interface Props {
20
20
  hideBackground?: boolean;
21
21
  hideExpand?: boolean;
22
22
  stretch?: boolean;
23
+ videoObjectFit?: 'cover' | 'contain';
23
24
  }
24
- declare var __VLS_23: {
25
+ declare var __VLS_24: {
25
26
  size: ComponentSize;
26
- }, __VLS_25: {
27
+ }, __VLS_26: {
27
28
  size: ComponentSize;
28
29
  };
29
30
  type __VLS_Slots = {} & {
30
- 'controls-panel'?: (props: typeof __VLS_23) => any;
31
+ 'controls-panel'?: (props: typeof __VLS_24) => any;
31
32
  } & {
32
- content?: (props: typeof __VLS_25) => any;
33
+ content?: (props: typeof __VLS_26) => any;
33
34
  };
34
35
  declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
35
36
  close: () => any;
@@ -45,6 +46,7 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
45
46
  closable: boolean;
46
47
  muted: boolean;
47
48
  static: boolean;
49
+ videoObjectFit: "cover" | "contain";
48
50
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
49
51
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
50
52
  export default _default;
@@ -1,6 +1,6 @@
1
1
  export declare const SupervisorSections: {
2
2
  readonly Queues: "queues";
3
3
  readonly Agents: "agents";
4
- readonly ActiveCalls: "activeCalls";
4
+ readonly ActiveCalls: "active-calls";
5
5
  };
6
6
  export type SupervisorSections = (typeof SupervisorSections)[keyof typeof SupervisorSections];
@@ -1,5 +1,5 @@
1
1
  export declare const WfmSections: {
2
- readonly MySchedules: "mySchedules";
2
+ readonly MySchedules: "my-schedules";
3
3
  readonly Agents: "agents";
4
4
  readonly Schedules: "schedules";
5
5
  };
@@ -302,7 +302,7 @@ declare const _default: {
302
302
  sections: {
303
303
  queues: string;
304
304
  agents: string;
305
- activeCalls: string;
305
+ "active-calls": string;
306
306
  };
307
307
  };
308
308
  [WebitelApplications.ADMIN]: {
@@ -314,7 +314,7 @@ declare namespace _default {
314
314
  "contact-groups"?: undefined;
315
315
  queues?: undefined;
316
316
  agents?: undefined;
317
- activeCalls?: undefined;
317
+ "active-calls"?: undefined;
318
318
  users?: undefined;
319
319
  license?: undefined;
320
320
  devices?: undefined;
@@ -367,7 +367,7 @@ declare namespace _default {
367
367
  scorecards?: undefined;
368
368
  queues?: undefined;
369
369
  agents?: undefined;
370
- activeCalls?: undefined;
370
+ "active-calls"?: undefined;
371
371
  users?: undefined;
372
372
  license?: undefined;
373
373
  devices?: undefined;
@@ -410,7 +410,7 @@ declare namespace _default {
410
410
  sections: {
411
411
  queues: string;
412
412
  agents: string;
413
- activeCalls: string;
413
+ "active-calls": string;
414
414
  scorecards?: undefined;
415
415
  contacts?: undefined;
416
416
  cases?: undefined;
@@ -508,7 +508,7 @@ declare namespace _default {
508
508
  "service-catalogs"?: undefined;
509
509
  sources?: undefined;
510
510
  "contact-groups"?: undefined;
511
- activeCalls?: undefined;
511
+ "active-calls"?: undefined;
512
512
  };
513
513
  theCameraIsTurnedOff?: undefined;
514
514
  } | {