"use strict";(self["webpackChunkbms_app"]=self["webpackChunkbms_app"]||[]).push([[500],{93861:function(e,t,n){n.r(t),n.d(t,{default:function(){return k}});var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div")},o=[],r=n(91114),i=n(31635),s=n(442),l=(n(44114),n(69592)),m=n(8058),p=n(86301),d=n(20354),c=n.n(d);function y(e){const t=[];e.watermarkEmail&&t.push(e.identifier),e.watermarkName&&t.push(e.nickname),e.watermarkIp&&t.push(e.IP);const n={enabled:!1,text:"",timerAnimate:null,timerControll:null,color:null,fontSize:null,screenTime:null,timeBetweenShows:null,transparency:null},a=n,o=1;function r(){1!=a.mutex&&(a.mutex=!0,window.addEventListener("resize",i),a.video.style.setProperty("z-index","0","important"),a.elementsData=[],(0,m.A)(a.tagNames,((e,t)=>{let n;n=a.hwdPlayer.getElementsByTagName(e);do{(0,m.A)(n,((e,t)=>{void 0!=e&&e.parentNode.removeChild(e)})),n=a.hwdPlayer.getElementsByTagName(e)}while(n.length>0)})),a.tagNames=Array.apply(null,Array(10)).map((function(){return Array.apply(null,Array(~~(10*Math.random()+3))).map((function(){return String.fromCharCode(26*Math.random()+97)})).join("")})),s())}function i(){clearTimeout(a.timerResize),a.timerResize=setTimeout((function(){if(void 0==a.elementsData[0])return;a.mutex=!0;const e=document.documentElement.clientWidth,t=document.documentElement.clientHeight;let n=e,o=t;e/t<=16/9?a.height>a.width?(n=9*t/16,o=t>16*e/9?16*e/9:t):(n=e,o=9*e/16):a.height>a.width?(n=9*t/16,o=t):(n=16*t/9,o=t),a.demo||a.wtContainer.style.setProperty("margin",`${(t-o)/2}px ${(e-n)/2}px ${(t-o)/2}px ${(e-n)/2}px`,"important"),a.wtContainer.style.setProperty("width",`${n}px`,"important"),a.wtContainer.style.setProperty("height",`${o}px`,"important"),a.elementsData[0].margin=a.wtContainer.style.margin,a.elementsData[0].width=a.wtContainer.style.width,a.elementsData[0].height=a.wtContainer.style.height,a.mutex=!1}),100)}function s(){(a.tagNameIndex>a.tagNames.length-1||a.tagNameIndex<0)&&(a.tagNameIndex=0);const e=document.createElement(a.tagNames[a.tagNameIndex]);let t,n,o;a.wtContainer=e,a.hwdPlayer.appendChild(e),e.style.setProperty("display","block","important"),e.style.setProperty("z-index","-1","important"),e.style.setProperty("position","absolute","important"),e.style.setProperty("padding","0px","important"),e.style.setProperty("opacity","1","important"),a.demo?(t=a.hwdPlayer.clientWidth/window.screen.availWidth,n=a.hwdPlayer.clientWidth,o=a.hwdPlayer.clientHeight):(t=window.devicePixelRatio||window.screen.availWidth/document.documentElement.clientWidth,n=document.documentElement.clientWidth,o=document.documentElement.clientHeight);let r=n,i=o;n/o<=16/9?a.height>a.width?(r=9*o/16,i=o>16*n/9?16*n/9:o):(r=n,i=9*n/16):a.height>a.width?(r=9*o/16,i=o):(r=16*o/9,i=o),e.style.setProperty("margin",`${(o-i)/2}px ${(n-r)/2}px ${(o-i)/2}px ${(n-r)/2}px`,"important"),e.style.setProperty("width",`${r}px`,"important"),e.style.setProperty("height",`${i}px`,"important");const s=document.createElement("div");s.style.setProperty("position","relative","important"),e.appendChild(s),s.style.setProperty("text-shadow","1px 1px 2px black, 0 0 1em black","important"),s.style.setProperty("color",a.color,"important"),s.style.setProperty("pointer-events","none","important"),s.style.setProperty("text-align","center","important");let l="",m=0,y=0;if(null!=a.text[0]&&(l+=a.text[0],a.text[0].length>m&&(m=a.text[0].length),y++),null!=a.text[1]&&(l+=`<br/>${a.text[1]}`,a.text[1].length>m&&(m=a.text[1].length),y++),null!=a.text[2]&&(l+=`<br/>${a.text[2]}`,a.text[2].length>m&&(m=a.text[2].length),y++),"static"===a.watermarkType){r=a.fontSize,i=r,s.innerHTML=l;const t=Math.round(2200/m);s.style.setProperty("font-size",`${t}px`,"important"),s.style.setProperty("line-height",`${Math.round(1.2*t)}px`,"important"),s.style.setProperty("text-align","center","important"),s.style.setProperty("display","flex","important"),s.style.setProperty("justify-content","center","important"),s.style.setProperty("align-items","center","important"),s.style.setProperty("width","1000px","important"),s.style.setProperty("height","1000px","important"),s.style.setProperty("transform","rotateY(0deg) rotate(45deg)","important"),e.style.setProperty("background-position","center","important"),a.height>a.width?e.style.setProperty("background-size",`${r}% auto`,"important"):e.style.setProperty("background-size",`auto ${i}%`,"important"),e.style.setProperty("background-repeat","repeat","important"),c()(e,{allowTaint:!0,backgroundColor:null,width:1e3,height:1e3,logging:a.debug,scale:1}).then((t=>{s.style.setProperty("display","none","important"),s.innerHTML="",a.wtImage=t.toDataURL("image/png"),d(e)}))}else if("staticFull"===a.watermarkType){const t=2*i,n=r;s.style.setProperty("width",`${n}px`,"important"),s.style.setProperty("height",`${t}px`,"important"),s.style.setProperty("transform","rotateY(0deg) rotate(45deg)","important"),s.style.setProperty("top",`-${t/3}px`,"important");const a=15*m;let o=20,p=20,d=!0;while(p<t){const e=document.createElement("div");e.innerHTML=l,e.style.setProperty("text-align","center","important"),e.style.setProperty("position","absolute","important"),e.style.setProperty("top",`${p}px`,"important"),e.style.setProperty("left",`${o}px`,"important"),e.style.setProperty("width",10*m+"px","important"),s.appendChild(e),o>n&&(o=20,d=!1),d?o+=a:(p+=a/2,d=!0)}e.style.setProperty("background-position","center","important"),e.style.setProperty("background-repeat","no-repeat","important"),e.style.setProperty("background-size","contain","important")}else{let t;if(a.height>a.width){t=Math.round(i*a.fontSize*2/(100*m)*.9);const e=Math.round(2*r/m*.9);t>e&&(t=e)}else t=Math.round(r*a.fontSize*2/(100*m)*.9);const n=Math.round(m*t/2),o=(0,p.A)(20,r-n,!0),g=(0,p.A)(20,i-y*t*1.2,!0);s.innerHTML=l,s.style.setProperty("top",`${g}px`,"important"),s.style.setProperty("left",`${o}px`,"important"),s.style.setProperty("width",`${n}px`,"important"),s.style.setProperty("font-size",`${t}px`,"important"),s.style.setProperty("line-height",`${Math.round(1.2*t)}px`,"important"),e.style.setProperty("background-position","center","important"),e.style.setProperty("background-repeat","no-repeat","important"),e.style.setProperty("background-size","contain","important"),c()(e,{allowTaint:!0,backgroundColor:null,width:r,height:i,logging:a.debug,scale:1}).then((t=>{s.style.setProperty("display","none","important"),s.innerHTML="",a.wtImage=t.toDataURL("image/png"),d(e)}))}}function d(e){"static"==a.watermarkType?e.style.setProperty("opacity",a.transparency/100,"important"):e.style.setProperty("opacity","0","important"),e.style.setProperty("z-index","0","important"),e.style.setProperty("background-image",`url(${a.wtImage})`,"important");const t={display:e.style.display,"z-index":e.style.getPropertyValue("z-index"),position:e.style.position,padding:e.style.padding,margin:e.style.margin,opacity:e.style.opacity,pointerEvents:e.style.pointerEvents,width:e.style.width,height:e.style.height,backgroundPosition:e.style.backgroundPosition,backgroundRepeat:e.style.backgroundRepeat,backgroundImage:e.style.backgroundImage,backgroundSize:e.style.backgroundSize,background:e.style.background,left:e.style.left,top:e.style.top,right:e.style.right,bottom:e.style.bottom};a.elementsData.push(t),a.fadeIndex=0,a.ticsForNewFadeInEffect=null,a.nextIndexForFadeInEffect=0,a.timerControll&&clearTimeout(a.timerControll),a.timerControll=setInterval(h,500),a.mutex=!1}function y(e){const t=a.hwdPlayer.getElementsByTagName(a.tagNames[a.tagNameIndex]);null!=a.ticsForNewFadeInEffect?(a.ticsForNewFadeInEffect--,a.ticsForNewFadeInEffect<=0&&(a.fadeIndex=a.nextIndexForFadeInEffect,a.tickInEffect=5*a.screenTime,a.ticsForNewFadeInEffect=null,a.stop(),a.tagNameIndex++,a.start())):a.tickInEffect>=0&&a.elementsData[a.fadeIndex]?(a.elementsData[a.fadeIndex].opacity=0,a.elementsData[a.fadeIndex].opacity=e[a.tickInEffect-1],t[a.fadeIndex].style.setProperty("opacity",a.elementsData[a.fadeIndex].opacity,"important"),a.nextIndexForFadeInEffect=a.fadeIndex+1,a.tickInEffect--):a.ticsForNewFadeInEffect=5*a.timeBetweenShows}function u(){const e=a.transparency/100/Math.pow(a.screenTime/2,4),t=[];let n=0;for(let o=0;o<a.tickInEffect;o++){const o=a.transparency/100-e*Math.pow(n-a.screenTime/2,4);t.push(o.toFixed(4)),n+=.2}return t}function h(){if(1==a.mutex)return;let e=!1;a.hwdPlayer.getElementsByTagName(a.tagNames[a.tagNameIndex]).length!=o&&(a.debug&&console.log("==== check elements count",a.hwdPlayer.getElementsByTagName(a.tagNames[a.tagNameIndex]).length,o),e=!0),((0,l.A)(a.video.style)||-1==a.video.style.cssText.indexOf("z-index: 0 !important;"))&&(a.debug&&console.log("==== check video z-index"),e=!0),(0,m.A)(a.hwdPlayer.getElementsByTagName(a.tagNames[a.tagNameIndex]),((t,n)=>{((0,l.A)(t.style)||(0,l.A)(t.style.display)||-1==t.style.cssText.indexOf("display: block !important;")||(0,l.A)(t.style.zIndex)||-1==t.style.cssText.indexOf("z-index: 0 !important;")||(0,l.A)(t.style.position)||-1==t.style.cssText.indexOf("position: absolute !important;")||(0,l.A)(t.style.padding)||-1==t.style.cssText.indexOf("padding: 0px !important;"))&&(a.debug&&console.log("==== check styles",a.elementsData[n]),e=!0),((0,l.A)(t.style)||(0,l.A)(t.style.margin)||a.elementsData[n].margin!=t.style.margin)&&(a.debug&&console.log("==== check margin",a.elementsData[n],a.elementsData[n].margin,t.style.margin),e=!0),((0,l.A)(t.style)||(0,l.A)(t.style.height)||a.elementsData[n].height!=t.style.height||(0,l.A)(t.style.width)||a.elementsData[n].width!=t.style.width)&&(a.debug&&(console.log("==== check width",a.elementsData[n],a.elementsData[n].width,t.style.width),console.log("==== check height",a.elementsData[n],a.elementsData[n].height,t.style.height)),e=!0),((0,l.A)(t.style)||t.style.top&&(!a.elementsData[n].top||-1==t.style.cssText.indexOf(`top: ${a.elementsData[n].top} !important;`))||t.style.right&&(!a.elementsData[n].right||-1==t.style.cssText.indexOf(`right: ${a.elementsData[n].right} !important;`))||t.style.bottom&&(!a.elementsData[n].bottom||-1==t.style.cssText.indexOf(`bottom: ${a.elementsData[n].bottom} !important;`))||t.style.left&&(!a.elementsData[n].left||-1==t.style.cssText.indexOf(`left: ${a.elementsData[n].left} !important;`)))&&(a.debug&&console.log("==== check position",a.elementsData[n]),e=!0),((0,l.A)(t.style)||Math.abs(a.elementsData[n].opacity-t.style.opacity)>.001)&&(a.debug&&console.log("==== check opacity",a.elementsData[n]),e=!0),((0,l.A)(t.style)||(0,l.A)(t.style.backgroundImage)||a.elementsData[n].backgroundImage!=t.style.backgroundImage||(0,l.A)(t.style.backgroundPosition)||a.elementsData[n].backgroundPosition!=t.style.backgroundPosition||(0,l.A)(t.style.backgroundRepeat)||a.elementsData[n].backgroundRepeat!=t.style.backgroundRepeat||(0,l.A)(t.style.backgroundSize)||a.elementsData[n].backgroundSize!=t.style.backgroundSize||(0,l.A)(t.style.background)||a.elementsData[n].background!=t.style.background)&&(a.debug&&console.log("==== check BG",a.elementsData[n],t.style.backgroundImage,a.elementsData[n].backgroundImage!=t.style.backgroundImage,a.elementsData[n].backgroundPosition!=t.style.backgroundPosition,a.elementsData[n].backgroundRepeat!=t.style.backgroundRepeat,a.elementsData[n].backgroundSize!=t.style.backgroundSize,a.elementsData[n].background!=t.style.background),e=!0)})),e&&(a.hacksCount++,a.hacksCount>3?(g("watermark","Try to remove watermark again, open the blank page"),a.stop(),a.tagNameIndex++,a.start()):(a.stop(),a.tagNameIndex++,a.start()))}a.mutex=!1,a.wtImage=null,a.wtContainer=null,a.debug=!1,a.enabled=!0,a.text=t,a.watermarkType=e.watermarkType,a.color=e.watermarkColor,a.fontSize=e.watermarkFontSize,a.screenTime=e.watermarkScreenTime,a.timeBetweenShows=e.watermarkTimeBetweenShows,a.transparency=e.watermarkTransparency,a.elIndex=0,a.tagNameIndex=0,a.tagNames=[],a.width=e.mediaData.width,a.height=e.mediaData.height,a.demo=e.watermarkIsDemo,a.ticsForNewFadeInEffect=null,a.nextIndexForFadeInEffect=null,a.tickInEffect=5*a.screenTime,a.hwdPlayer=document.getElementById("videojs-player"),a.video=a.hwdPlayer.getElementsByTagName("video")[0],a.hacksCount=0,a.start=function(){if(r(),a.timerAnimate&&clearTimeout(a.timerAnimate),"dynamic"==a.watermarkType){const e=u();a.timerAnimate=setInterval((()=>y(e)),200)}},a.stop=function(){"dynamic"==a.watermarkType&&(a.wtImage=null),a.timerAnimate&&clearTimeout(a.timerAnimate)},a.start()}function g(e,t){return c()(document.body,{allowTaint:!0,backgroundColor:"#ffffff"}).then((function(n){const a=new Date,o=`${a.getFullYear()}-${a.getMonth()+1}-${a.getDate()}`,r=`${a.getHours()}:${a.getMinutes()}:${a.getSeconds()}`,i=`${o} ${r}`,s=window.MediaSource=window.MediaSource||window.WebKitMediaSource,l=window.SourceBuffer=window.SourceBuffer||window.WebKitSourceBuffer,m=s&&"function"===typeof s.isTypeSupported&&s.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),p=!l||l.prototype&&"function"===typeof l.prototype.appendBuffer&&"function"===typeof l.prototype.remove,d={mediaSource:!!s,sourceBuffer:!!l,isTypeSupported:m,sourceBufferValidAPI:p},c=n.toDataURL("image/png"),y={event:e,message:t,image:c,ua:navigator.userAgent,href:document.location.href,identity:window.boomstreamConfig.identifier,date_time:i,media:d};return console.log("Hack report",y),y}))}let u=class extends s.lD{constructor(...e){super(...e),(0,r.A)(this,"config",void 0)}mounted(){y(this?.config)}};(0,i.Cg)([(0,s.Xs)()],u.prototype,"config",void 0),u=(0,i.Cg)([(0,s.uA)({name:"bms-watermark"})],u);var h=u,f=h,w=n(81656),x=(0,w.A)(f,a,o,!1,null,null,null),k=x.exports}}]);