@wscsports/blaze-web-sdk 0.3.10 → 0.3.12

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wscsports/blaze-web-sdk",
3
- "version": "0.3.10",
3
+ "version": "0.3.12",
4
4
  "main": "publish/index",
5
5
  "types": "publish/index",
6
6
  "files": [
@@ -27,6 +27,7 @@
27
27
  "fs-extra": "^11.1.1",
28
28
  "glob-promise": "^6.0.5",
29
29
  "html-webpack-plugin": "^5.5.3",
30
+ "intersection-observer": "^0.12.2",
30
31
  "javascript-obfuscator": "^4.0.2",
31
32
  "npm-registry-fetch": "^16.0.0",
32
33
  "style-loader": "^3.3.3",
@@ -36,12 +37,12 @@
36
37
  "webpack": "^5.88.1",
37
38
  "webpack-cli": "^5.1.4",
38
39
  "webpack-dev-server": "^4.15.1",
39
- "webpack-obfuscator": "^3.5.1"
40
+ "webpack-obfuscator": "^3.5.1",
41
+ "media-captions": "^0.0.18"
40
42
  },
41
43
  "dependencies": {
42
44
  "animejs": "^3.2.1",
43
45
  "hammerjs": "^2.0.8",
44
- "intersection-observer": "^0.12.2",
45
46
  "ua-parser-js": "^1.0.36"
46
47
  }
47
48
  }
@@ -0,0 +1 @@
1
+ 'use strict';const a2_0x47cb9f=a2_0x449d;function a2_0x449d(_0x559d0a,_0x15fb6b){const _0x3150d7=a2_0x3150();return a2_0x449d=function(_0x449da5,_0x549c9e){_0x449da5=_0x449da5-0xa1;let _0x39d6ad=_0x3150d7[_0x449da5];return _0x39d6ad;},a2_0x449d(_0x559d0a,_0x15fb6b);}(function(_0x473ac3,_0x27b6bd){const _0x16951d=a2_0x449d,_0x14b1a5=_0x473ac3();while(!![]){try{const _0x5a517e=-parseInt(_0x16951d(0xc9))/0x1+parseInt(_0x16951d(0xad))/0x2*(-parseInt(_0x16951d(0xb9))/0x3)+-parseInt(_0x16951d(0xde))/0x4+-parseInt(_0x16951d(0xb4))/0x5+-parseInt(_0x16951d(0xf0))/0x6*(-parseInt(_0x16951d(0xd9))/0x7)+parseInt(_0x16951d(0xef))/0x8+parseInt(_0x16951d(0xb7))/0x9;if(_0x5a517e===_0x27b6bd)break;else _0x14b1a5['push'](_0x14b1a5['shift']());}catch(_0x5d4e8b){_0x14b1a5['push'](_0x14b1a5['shift']());}}}(a2_0x3150,0x5d2b1));function a2_0x3150(){const _0x2e803c=['font-family','--cue-white-space','push','letter-spacing','Style','underline','end','Outline','auto','--cue-transform','32114MwmMIU','replace','onCue','ParseErrorBuilder','px\x20solid\x20','cos','--cue-text-shadow','3674395rjFKnW','split','normal','9565173JMXPNx','Start','63tfprgx','ceil','keys','translateY(-50%)','then','number','none','MarginL','webpackChunkBlazeSDK','onError','bind','Default','text','--cue-line-height','Fontname','MarginR','115960mmkTFA','cancel','MarginV','center','AlphaLevel','Name','slice','font-weight','done','opacity','bottom','BackColour','join','OutlineColour','Alignment','Shadow','121443JdgHhV','50%','length','BorderStyle','Italic','1779176yUBXAF','deg)','test','--cue-color','Underline','--cue-left','init','--cue-padding-y','sin','--cue-outline','scaleX(','scaleY(','strict','--cue-top','--cue-width','italic','--cue-right','2616688nUMqEK','216LnWQPh','End','parse','bold','Spacing'];a2_0x3150=function(){return _0x2e803c;};return a2_0x3150();}(window[a2_0x47cb9f(0xc1)]=window['webpackChunkBlazeSDK']||[])[a2_0x47cb9f(0xa5)]([[0x124],{0x14ac:(_0x435d58,_0x211a0e,_0x5bff5b)=>{const _0x5d57e5=a2_0x47cb9f;_0x5bff5b['r'](_0x211a0e),_0x5bff5b['d'](_0x211a0e,{'SSAParser':()=>_0x4cf338,'default':()=>_0x4c8de5});var _0x18ece8=_0x5bff5b(0x49b);const _0x4cc618=/^Format:[\s\t]*/,_0xbaf462=/^Style:[\s\t]*/,_0x55ecf0=/^Dialogue:[\s\t]*/,_0x25a4b2=/[\s\t]*,[\s\t]*/,_0x4807d3=/\{[^}]+\}/g,_0x9cc858=/\\N/g,_0x4b9771=/^\[(.*)[\s\t]?Styles\]$/,_0x5ce454=/^\[(.*)[\s\t]?Events\]$/;class _0x4cf338{['f'];['O']=0x0;['a']=null;['j']=[];['k']=[];['N']=null;['d'];['P']={};async[_0x5d57e5(0xe4)](_0x19c2d5){const _0x56effe=_0x5d57e5;this['f']=_0x19c2d5,_0x19c2d5['errors']&&(this['d']=(await _0x5bff5b['e'](0x2a4)[_0x56effe(0xbd)](_0x5bff5b[_0x56effe(0xc3)](_0x5bff5b,0x2a4)))[_0x56effe(0xb0)]);}[_0x5d57e5(0xf2)](_0x3af6ba,_0x352e40){const _0x39b109=_0x5d57e5;if(this['O'])switch(this['O']){case 0x1:if(''===_0x3af6ba)this['O']=0x0;else{if(_0xbaf462[_0x39b109(0xe0)](_0x3af6ba)){if(this['N']){const _0x34b67e=_0x3af6ba[_0x39b109(0xae)](_0xbaf462,'')[_0x39b109(0xb5)](_0x25a4b2);this['S'](_0x34b67e);}else this['e'](this['d']?.['T']('Style',_0x352e40));}else _0x4cc618[_0x39b109(0xe0)](_0x3af6ba)?this['N']=_0x3af6ba['replace'](_0x4cc618,'')[_0x39b109(0xb5)](_0x25a4b2):_0x5ce454[_0x39b109(0xe0)](_0x3af6ba)&&(this['N']=null,this['O']=0x2);}break;case 0x2:if(''===_0x3af6ba)this['Q']();else{if(_0x55ecf0[_0x39b109(0xe0)](_0x3af6ba)){if(this['Q'](),this['N']){const _0x1d305c=_0x3af6ba[_0x39b109(0xae)](_0x55ecf0,'')[_0x39b109(0xb5)](_0x25a4b2),_0x437925=this['U'](_0x1d305c,_0x352e40);_0x437925&&(this['a']=_0x437925);}else this['e'](this['d']?.['T']('Dialogue',_0x352e40));}else this['a']?this['a'][_0x39b109(0xc5)]+='\x0a'+_0x3af6ba[_0x39b109(0xae)](_0x4807d3,'')[_0x39b109(0xae)](_0x9cc858,'\x0a'):_0x4cc618[_0x39b109(0xe0)](_0x3af6ba)?this['N']=_0x3af6ba[_0x39b109(0xae)](_0x4cc618,'')[_0x39b109(0xb5)](_0x25a4b2):_0x4b9771[_0x39b109(0xe0)](_0x3af6ba)?(this['N']=null,this['O']=0x1):_0x5ce454[_0x39b109(0xe0)](_0x3af6ba)&&(this['N']=null);}}else''===_0x3af6ba||(_0x4b9771[_0x39b109(0xe0)](_0x3af6ba)?(this['N']=null,this['O']=0x1):_0x5ce454[_0x39b109(0xe0)](_0x3af6ba)&&(this['N']=null,this['O']=0x2));}[_0x5d57e5(0xd1)](){return{'metadata':{},'cues':this['j'],'regions':[],'errors':this['k']};}['Q'](){const _0x415b50=_0x5d57e5;this['a']&&(this['j'][_0x415b50(0xa5)](this['a']),this['f'][_0x415b50(0xaf)]?.(this['a']),this['a']=null);}['S'](_0x53b3d7){const _0x427a24=_0x5d57e5;let _0x5d41fa,_0x5a4c36,_0x2057cc,_0xadc751,_0x4482f4=_0x427a24(0xc4),_0x586102={},_0x3dfcd2=_0x427a24(0xcc),_0x3a0c94=_0x427a24(0xd3),_0xeda215=1.2,_0x2bd35e=0x3,_0x171bb7=[];for(let _0xb0ce9f=0x0;_0xb0ce9f<this['N']['length'];_0xb0ce9f++){const _0x387595=this['N'][_0xb0ce9f],_0x57de02=_0x53b3d7[_0xb0ce9f];switch(_0x387595){case _0x427a24(0xce):_0x4482f4=_0x57de02;break;case _0x427a24(0xc7):_0x586102[_0x427a24(0xa3)]=_0x57de02;break;case'Fontsize':_0x586102['font-size']='calc('+_0x57de02+'\x20/\x20var(--overlay-height))';break;case'PrimaryColour':const _0x95cb0c=_0x437358(_0x57de02);_0x95cb0c&&(_0x586102[_0x427a24(0xe1)]=_0x95cb0c);break;case _0x427a24(0xdc):_0x2bd35e=parseInt(_0x57de02,0xa);break;case _0x427a24(0xd4):_0xadc751=_0x437358(_0x57de02);break;case _0x427a24(0xd6):const _0x505108=_0x437358(_0x57de02);_0x505108&&(_0x2057cc=_0x505108);break;case'Bold':parseInt(_0x57de02)&&(_0x586102[_0x427a24(0xd0)]=_0x427a24(0xa1));break;case _0x427a24(0xdd):parseInt(_0x57de02)&&(_0x586102['font-style']=_0x427a24(0xed));break;case _0x427a24(0xe2):parseInt(_0x57de02)&&(_0x586102['text-decoration']=_0x427a24(0xa8));break;case'StrikeOut':parseInt(_0x57de02)&&(_0x586102['text-decoration']='line-through');break;case _0x427a24(0xa2):_0x586102[_0x427a24(0xa6)]=_0x57de02+'px';break;case _0x427a24(0xcd):_0x586102[_0x427a24(0xd2)]=parseFloat(_0x57de02);break;case'ScaleX':_0x171bb7['push'](_0x427a24(0xe8)+parseFloat(_0x57de02)/0x64+')');break;case'ScaleY':_0x171bb7[_0x427a24(0xa5)](_0x427a24(0xe9)+parseFloat(_0x57de02)/0x64+')');break;case'Angle':_0x171bb7[_0x427a24(0xa5)]('rotate('+_0x57de02+_0x427a24(0xdf));break;case _0x427a24(0xd8):_0xeda215=1.2*parseInt(_0x57de02,0xa);break;case _0x427a24(0xc0):_0x586102[_0x427a24(0xec)]=_0x427a24(0xab),_0x586102[_0x427a24(0xe3)]=parseFloat(_0x57de02)+'px';break;case _0x427a24(0xc8):_0x586102[_0x427a24(0xec)]=_0x427a24(0xab),_0x586102[_0x427a24(0xee)]=parseFloat(_0x57de02)+'px';break;case _0x427a24(0xcb):_0x5a4c36=parseFloat(_0x57de02);break;case _0x427a24(0xaa):_0x5d41fa=parseInt(_0x57de02,0xa);break;case _0x427a24(0xd7):const _0x460b09=parseInt(_0x57de02,0xa);switch(_0x460b09>=0x4&&(_0x3a0c94=_0x460b09>=0x7?'top':'center'),_0x460b09%0x3){case 0x1:_0x3dfcd2='start';break;case 0x2:_0x3dfcd2=_0x427a24(0xcc);break;case 0x3:_0x3dfcd2=_0x427a24(0xa9);}}}if(_0x586102['R']=_0x3a0c94,_0x586102[_0x427a24(0xa4)]=_0x427a24(0xb6),_0x586102[_0x427a24(0xc6)]=_0x427a24(0xb6),_0x586102['--cue-text-align']=_0x3dfcd2,_0x427a24(0xcc)===_0x3a0c94?(_0x586102[_0x427a24(0xeb)]=_0x427a24(0xda),_0x171bb7[_0x427a24(0xa5)](_0x427a24(0xbc))):_0x586102['--cue-'+_0x3a0c94]=(_0x5a4c36||0x0)+'px',0x1===_0x2bd35e&&(_0x586102[_0x427a24(0xe5)]='0'),(0x1===_0x2bd35e||_0xadc751)&&(_0x586102['--cue-bg-color']=0x1===_0x2bd35e?_0x427a24(0xbf):_0xadc751),0x3===_0x2bd35e&&_0x2057cc&&(_0x586102[_0x427a24(0xe7)]=_0x5d41fa+_0x427a24(0xb1)+_0x2057cc),0x1===_0x2bd35e&&_0x427a24(0xbe)==typeof _0x5d41fa){const _0x5d9481=_0xadc751??'#000';_0x586102[_0x427a24(0xb3)]=[_0x2057cc&&_0xf1c5ba(1.2*_0x5d41fa,1.2*_0xeda215,_0x2057cc),_0x2057cc?_0xf1c5ba(_0x5d41fa*(_0x5d41fa/0x2),_0xeda215*(_0x5d41fa/0x2),_0x5d9481):_0xf1c5ba(_0x5d41fa,_0xeda215,_0x5d9481)]['filter'](Boolean)['join'](',\x20');}_0x171bb7[_0x427a24(0xdb)]&&(_0x586102[_0x427a24(0xac)]=_0x171bb7[_0x427a24(0xd5)]('\x20')),this['P'][_0x4482f4]=_0x586102;}['U'](_0x40ed1e,_0x99c685){const _0x2631d1=_0x5d57e5,_0x253bff=this['V'](_0x40ed1e),_0xd39a6b=this['o'](_0x253bff[_0x2631d1(0xb8)],_0x253bff[_0x2631d1(0xf1)],_0x99c685);if(!_0xd39a6b)return;const _0x1bba10=new _0x18ece8['b'](_0xd39a6b[0x0],_0xd39a6b[0x1],''),_0x1825f9={...this['P'][_0x253bff[_0x2631d1(0xa7)]]||{}},_0x5d2579=_0x253bff[_0x2631d1(0xce)]?'<v\x20'+_0x253bff[_0x2631d1(0xce)]+'>':'',_0xbdb3=_0x1825f9['R'],_0x4f163d=_0x253bff[_0x2631d1(0xc0)]&&parseFloat(_0x253bff[_0x2631d1(0xc0)]),_0x2909f3=_0x253bff[_0x2631d1(0xc8)]&&parseFloat(_0x253bff[_0x2631d1(0xc8)]),_0x31fc1a=_0x253bff[_0x2631d1(0xcb)]&&parseFloat(_0x253bff[_0x2631d1(0xcb)]);return _0x4f163d&&(_0x1825f9[_0x2631d1(0xec)]=_0x2631d1(0xab),_0x1825f9[_0x2631d1(0xe3)]=_0x4f163d+'px'),_0x2909f3&&(_0x1825f9[_0x2631d1(0xec)]=_0x2631d1(0xab),_0x1825f9['--cue-right']=_0x2909f3+'px'),_0x31fc1a&&'center'!==_0xbdb3&&(_0x1825f9['--cue-'+_0xbdb3]=_0x31fc1a+'px'),_0x1bba10[_0x2631d1(0xc5)]=_0x5d2579+_0x40ed1e[_0x2631d1(0xcf)](this['N'][_0x2631d1(0xdb)]-0x1)['join'](',\x20')[_0x2631d1(0xae)](_0x4807d3,'')[_0x2631d1(0xae)](_0x9cc858,'\x0a'),delete _0x1825f9['R'],Object[_0x2631d1(0xbb)](_0x1825f9)[_0x2631d1(0xdb)]&&(_0x1bba10['style']=_0x1825f9),_0x1bba10;}['V'](_0x20e552){const _0x55f0db=_0x5d57e5,_0x10d929={};for(let _0x5767db=0x0;_0x5767db<this['N'][_0x55f0db(0xdb)];_0x5767db++)_0x10d929[this['N'][_0x5767db]]=_0x20e552[_0x5767db];return _0x10d929;}['o'](_0xcfed2f,_0x1b868a,_0x45e447){const _0x725df4=(0x0,_0x18ece8['p'])(_0xcfed2f),_0x426272=(0x0,_0x18ece8['p'])(_0x1b868a);if(null!==_0x725df4&&null!==_0x426272&&_0x426272>_0x725df4)return[_0x725df4,_0x426272];null===_0x725df4&&this['e'](this['d']?.['q'](_0xcfed2f,_0x45e447)),null===_0x426272&&this['e'](this['d']?.['r'](_0x1b868a,_0x45e447)),null!=_0x725df4&&null!==_0x426272&&_0x426272>_0x725df4&&this['e'](this['d']?.['s'](_0x725df4,_0x426272,_0x45e447));}['e'](_0x589f2e){const _0x5c9804=_0x5d57e5;if(_0x589f2e){if(this['k'][_0x5c9804(0xa5)](_0x589f2e),this['f'][_0x5c9804(0xea)])throw this['f'][_0x5c9804(0xca)](),_0x589f2e;this['f'][_0x5c9804(0xc2)]?.(_0x589f2e);}}}function _0x437358(_0x56795a){const _0x4a2ff0=_0x5d57e5,_0x48c89a=parseInt(_0x56795a[_0x4a2ff0(0xae)]('&H',''),0x10);return _0x48c89a>=0x0?'rgba('+[0xff&_0x48c89a,_0x48c89a>>0x8&0xff,_0x48c89a>>0x10&0xff,(_0x48c89a>>0x18&0xff^0xff)/0xff]['join'](',')+')':null;}function _0xf1c5ba(_0x305d31,_0x5a7b64,_0x34075a){const _0x41e009=_0x5d57e5,_0x121d27=Math[_0x41e009(0xba)](0x2*Math['PI']*_0x305d31);let _0x2240d0='';for(let _0x3a64e7=0x0;_0x3a64e7<_0x121d27;_0x3a64e7++){const _0x4444d4=0x2*Math['PI']*_0x3a64e7/_0x121d27;_0x2240d0+=_0x305d31*Math[_0x41e009(0xb2)](_0x4444d4)+'px\x20'+_0x5a7b64*Math[_0x41e009(0xe6)](_0x4444d4)+'px\x200\x20'+_0x34075a+(_0x3a64e7==_0x121d27-0x1?'':',');}return _0x2240d0;}function _0x4c8de5(){return new _0x4cf338();}}}]);
@@ -0,0 +1 @@
1
+ 'use strict';const a1_0x3306a2=a1_0x44dc;(function(_0x3ce5a3,_0x522e91){const _0x24c931=a1_0x44dc,_0x38aeb7=_0x3ce5a3();while(!![]){try{const _0x3c8c63=-parseInt(_0x24c931(0x18f))/0x1+-parseInt(_0x24c931(0x18e))/0x2*(-parseInt(_0x24c931(0x18c))/0x3)+-parseInt(_0x24c931(0x189))/0x4*(parseInt(_0x24c931(0x182))/0x5)+-parseInt(_0x24c931(0x18a))/0x6*(parseInt(_0x24c931(0x185))/0x7)+-parseInt(_0x24c931(0x184))/0x8+-parseInt(_0x24c931(0x191))/0x9*(-parseInt(_0x24c931(0x17f))/0xa)+parseInt(_0x24c931(0x188))/0xb*(parseInt(_0x24c931(0x190))/0xc);if(_0x3c8c63===_0x522e91)break;else _0x38aeb7['push'](_0x38aeb7['shift']());}catch(_0x12a2dc){_0x38aeb7['push'](_0x38aeb7['shift']());}}}(a1_0x1cfe,0x96d36));function a1_0x44dc(_0x3c91b1,_0x5a1c95){const _0x1cfedb=a1_0x1cfe();return a1_0x44dc=function(_0x44dc79,_0x30de52){_0x44dc79=_0x44dc79-0x17f;let _0x4fefa1=_0x1cfedb[_0x44dc79];return _0x4fefa1;},a1_0x44dc(_0x3c91b1,_0x5a1c95);}function a1_0x1cfe(){const _0x4efddf=['14773kQHKBj','4sGfcUE','28986PxdHee','parse','105IjrhLU','None','9046vtXCfK','630337AdXoCR','20028phJNlU','9LkCrpO','push','onCue','Cue','text','2251980GfwjwD','includes','webpackChunkBlazeSDK','3569090JbTPWH','-->','1903240osSynu','616JrWlrh','join','replace'];a1_0x1cfe=function(){return _0x4efddf;};return a1_0x1cfe();}(window['webpackChunkBlazeSDK']=window[a1_0x3306a2(0x181)]||[])['push']([[0x29a],{0xa6a:(_0x4c7e00,_0x5b5ae0,_0x7dd2fd)=>{const _0x24d5d9=a1_0x3306a2;_0x7dd2fd['r'](_0x5b5ae0),_0x7dd2fd['d'](_0x5b5ae0,{'SRTParser':()=>_0x2f1a8e,'default':()=>_0x13bd72});var _0x7c4ef1=_0x7dd2fd(0x49b);const _0x2e6e52=/,/g;class _0x2f1a8e extends _0x7c4ef1['V']{[_0x24d5d9(0x18b)](_0x1d3671,_0x57c715){const _0x1a9020=_0x24d5d9;if(''===_0x1d3671)this['a']&&(this['j'][_0x1a9020(0x192)](this['a']),this['f'][_0x1a9020(0x193)]?.(this['a']),this['a']=null),this['c']=_0x7c4ef1['a'][_0x1a9020(0x18d)];else{if(this['c']===_0x7c4ef1['a']['Cue'])this['a'][_0x1a9020(0x195)]+=(this['a'][_0x1a9020(0x195)]?'\x0a':'')+_0x1d3671;else{if(_0x1d3671[_0x1a9020(0x180)](_0x1a9020(0x183))){const _0x44076d=this['o'](_0x1d3671,_0x57c715);_0x44076d&&(this['a']=new _0x7c4ef1['b'](_0x44076d[0x0],_0x44076d[0x1],_0x44076d[0x2][_0x1a9020(0x186)]('\x20')),this['a']['id']=this['l'],this['c']=_0x7c4ef1['a'][_0x1a9020(0x194)]);}}}this['l']=_0x1d3671;}['o'](_0x5e2610,_0x793443){const _0x52d1a2=_0x24d5d9;return super['o'](_0x5e2610[_0x52d1a2(0x187)](_0x2e6e52,'.'),_0x793443);}}function _0x13bd72(){return new _0x2f1a8e();}}}]);
@@ -0,0 +1 @@
1
+ 'use strict';var a3_0x18d499=a3_0x55f8;(function(_0x6543de,_0x27f790){var _0x5445d0=a3_0x55f8,_0x32073f=_0x6543de();while(!![]){try{var _0x54e0f7=-parseInt(_0x5445d0(0x67))/0x1+parseInt(_0x5445d0(0x79))/0x2+parseInt(_0x5445d0(0x71))/0x3*(-parseInt(_0x5445d0(0x81))/0x4)+parseInt(_0x5445d0(0x70))/0x5*(-parseInt(_0x5445d0(0x69))/0x6)+-parseInt(_0x5445d0(0x7e))/0x7*(parseInt(_0x5445d0(0x7b))/0x8)+parseInt(_0x5445d0(0x72))/0x9*(-parseInt(_0x5445d0(0x78))/0xa)+-parseInt(_0x5445d0(0x75))/0xb*(-parseInt(_0x5445d0(0x6d))/0xc);if(_0x54e0f7===_0x27f790)break;else _0x32073f['push'](_0x32073f['shift']());}catch(_0x1d9a59){_0x32073f['push'](_0x32073f['shift']());}}}(a3_0xc711,0x2b534));function a3_0x55f8(_0x14b7ae,_0x7de564){var _0xc71148=a3_0xc711();return a3_0x55f8=function(_0x55f83b,_0x4aa5f6){_0x55f83b=_0x55f83b-0x64;var _0x236afc=_0xc71148[_0x55f83b];return _0x236afc;},a3_0x55f8(_0x14b7ae,_0x7de564);}(window[a3_0x18d499(0x6f)]=window[a3_0x18d499(0x6f)]||[])[a3_0x18d499(0x80)]([[0x2a4],{0x2a4:(_0x4cb554,_0x4e7435,_0x10a61d)=>{var _0x5c1939=a3_0x18d499;_0x10a61d['r'](_0x4e7435),_0x10a61d['d'](_0x4e7435,{'ParseErrorBuilder':()=>_0x1ab95b});var _0x51378e=_0x10a61d(0x49b);const _0x1ab95b={'p':()=>new _0x51378e['P']({'code':_0x51378e['c']['BadSignature'],'reason':_0x5c1939(0x6b),'line':0x1}),'q':(_0x5a6b7b,_0x32d419)=>new _0x51378e['P']({'code':_0x51378e['c'][_0x5c1939(0x74)],'reason':_0x5c1939(0x66)+_0x5a6b7b+_0x5c1939(0x7f)+_0x32d419,'line':_0x32d419}),'r':(_0x581869,_0xa1d4d1)=>new _0x51378e['P']({'code':_0x51378e['c'][_0x5c1939(0x74)],'reason':_0x5c1939(0x6a)+_0x581869+_0x5c1939(0x7f)+_0xa1d4d1,'line':_0xa1d4d1}),'s':(_0x2163db,_0x475d80,_0x332eef)=>new _0x51378e['P']({'code':_0x51378e['c'][_0x5c1939(0x74)],'reason':'cue\x20end\x20timestamp\x20`'+_0x475d80+_0x5c1939(0x65)+_0x2163db+_0x5c1939(0x77)+_0x332eef,'line':_0x332eef}),'w':(_0x446dee,_0x4c9b23,_0xa56e68)=>new _0x51378e['P']({'code':_0x51378e['c'][_0x5c1939(0x73)],'reason':_0x5c1939(0x76)+_0x446dee+_0x5c1939(0x77)+_0xa56e68+_0x5c1939(0x68)+_0x4c9b23+')','line':_0xa56e68}),'v':(_0xe9802a,_0x90757,_0x12fd23)=>new _0x51378e['P']({'code':_0x51378e['c'][_0x5c1939(0x82)],'reason':_0x5c1939(0x6e)+_0xe9802a+'`\x20on\x20line\x20'+_0x12fd23+_0x5c1939(0x68)+_0x90757+')','line':_0x12fd23}),'u':(_0x38f322,_0x14f64a,_0x154f31)=>new _0x51378e['P']({'code':_0x51378e['c'][_0x5c1939(0x73)],'reason':_0x5c1939(0x7a)+_0x38f322+_0x5c1939(0x77)+_0x154f31+_0x5c1939(0x68)+_0x14f64a+')','line':_0x154f31}),'t':(_0x1b1d6a,_0x2d1fb3,_0x3b36df)=>new _0x51378e['P']({'code':_0x51378e['c'][_0x5c1939(0x82)],'reason':_0x5c1939(0x6c)+_0x1b1d6a+_0x5c1939(0x77)+_0x3b36df+_0x5c1939(0x68)+_0x2d1fb3+')','line':_0x3b36df}),'T':(_0x2a248d,_0x1e5e98)=>new _0x51378e['P']({'code':_0x51378e['c'][_0x5c1939(0x64)],'reason':_0x5c1939(0x7d)+_0x2a248d+_0x5c1939(0x7c)+_0x1e5e98,'line':_0x1e5e98})};}}]);function a3_0xc711(){var _0x1ace38=['1256yhVZOd','UnknownSetting','BadFormat','`\x20is\x20greater\x20than\x20start\x20`','cue\x20start\x20timestamp\x20`','255054XmqXfW','\x20(value:\x20','576rNNTBj','cue\x20end\x20timestamp\x20`','missing\x20WEBVTT\x20file\x20header','unknown\x20region\x20setting\x20`','216uPAHfT','unknown\x20cue\x20setting\x20`','webpackChunkBlazeSDK','4180ahepza','15JREKRS','325098IGuWtF','BadSettingValue','BadTimestamp','403392bLICBS','invalid\x20value\x20for\x20cue\x20setting\x20`','`\x20on\x20line\x20','10MFKdDc','125484NmyuKp','invalid\x20value\x20for\x20region\x20setting\x20`','32yNlahL','`\x20block\x20on\x20line\x20','format\x20missing\x20for\x20`','301658srgyzx','`\x20is\x20invalid\x20on\x20line\x20','push'];a3_0xc711=function(){return _0x1ace38;};return a3_0xc711();}
@@ -18,6 +18,7 @@ export declare function setGoogleCustomNativeAdsHandler(handler: CustomNativeAdH
18
18
  export declare function setImaHandler(handler: ImaAdHandler): void;
19
19
  export declare function playStory(storyId: string, style?: StoryPlayerStyle): Promise<void>;
20
20
  export declare function playStories(dataSource: BlazeDataSourceType, style?: StoryPlayerStyle): Promise<void>;
21
+ export declare function setAbTestParams(abTestParams: BlazeAbTestType): void;
21
22
  declare const _default: {
22
23
  Initialize: typeof Initialize;
23
24
  WidgetGridView: typeof WidgetGridView;
@@ -37,6 +38,7 @@ declare const _default: {
37
38
  setExternalUserId: typeof setExternalUserId;
38
39
  playStory: typeof playStory;
39
40
  playStories: typeof playStories;
41
+ setAbTestParams: typeof setAbTestParams;
40
42
  };
41
43
  export default _default;
42
44
 
@@ -81,6 +83,8 @@ declare class UserEventInfo {
81
83
  'mac_address': string;
82
84
  'user_type': string;
83
85
  'is_bot': true;
86
+ 'ab_test_id': string;
87
+ 'ab_test_variant': string;
84
88
  }
85
89
  declare class TechEventInfo {
86
90
  'device_type': string;
@@ -181,6 +185,7 @@ export declare class StoryEvent {
181
185
  'playback_action_method': PlaybackActionType;
182
186
  'player_type': PlayerType;
183
187
  'player_orientation': ContentAspectRatio;
188
+ 'cc_state': string;
184
189
  }
185
190
  export declare class MomentEvent {
186
191
  'moments_session_id': string;
@@ -197,6 +202,7 @@ export declare class MomentEvent {
197
202
  'audio_state': string;
198
203
  'loop_number': string;
199
204
  'gesture_type': MomentGestureType;
205
+ 'cc_state': string;
200
206
  }
201
207
  export declare class WidgetEvent {
202
208
  'page_view_id': string;
@@ -335,6 +341,9 @@ declare class DeviceDetector {
335
341
  static getInstance(): DeviceDetector;
336
342
  private detectOS;
337
343
  private detectBrowser;
344
+ get isDesktop(): boolean;
345
+ get isMobile(): boolean;
346
+ get isTablet(): boolean;
338
347
  private detectPlatform;
339
348
  private getScreenOrientation;
340
349
  private handleResize;
@@ -617,7 +626,9 @@ export declare enum StoryAction {
617
626
  PlaybackPause = "playback_pause",
618
627
  PlaybackPlay = "playback_play",
619
628
  Expand = "expand",
620
- Minimize = "minimize"
629
+ Minimize = "minimize",
630
+ ClosedCaptionsOff = "cc_off",
631
+ ClosedCaptionsOn = "cc_on"
621
632
  }
622
633
  export declare enum MomentAction {
623
634
  MomentsPlaylistStart = "moments_playlist_start",
@@ -631,7 +642,9 @@ export declare enum MomentAction {
631
642
  ShareClick = "share_click",
632
643
  ShareSuccess = "share_success",
633
644
  PlaybackPause = "playback_pause",
634
- PlaybackPlay = "playback_play"
645
+ PlaybackPlay = "playback_play",
646
+ ClosedCaptionsOff = "cc_off",
647
+ ClosedCaptionsOn = "cc_on"
635
648
  }
636
649
  export declare enum WidgetAction {
637
650
  Load = "widget_load",
@@ -745,7 +758,6 @@ export interface IBannerAdInfo {
745
758
  type: 'Banner';
746
759
  }
747
760
 
748
- export type ContentAspectRatio = 'Vertical' | 'Horizontal';
749
761
  export interface IContent {
750
762
  id: string;
751
763
  title: string;
@@ -761,6 +773,7 @@ export interface IContent {
761
773
  playerId: string | null;
762
774
  };
763
775
  bannerAdInfo?: IBannerAdInfo;
776
+ closedCaptions?: IClosedCaption[];
764
777
  }
765
778
 
766
779
  export interface ICTA {
@@ -868,6 +881,7 @@ export interface IContentPage {
868
881
  adContext?: IAdContext;
869
882
  interaction?: Interaction;
870
883
  poster?: IThumbnail;
884
+ closedCaptions: IClosedCaption[];
871
885
  }
872
886
  export interface IAdPage {
873
887
  id: string;
@@ -977,6 +991,7 @@ export interface WidgetsTagNameMap {
977
991
  'blaze-widget-video': BlazeWidgetVideo;
978
992
  'blaze-widget-interaction': BlazeWidgetInteraction;
979
993
  'blaze-widget-banner-ad': BlazeWidgetBannerAd;
994
+ 'blaze-widget-captions': BlazeWidgetCaptions;
980
995
  'blaze-loader': BlazeLoader;
981
996
  'blaze-chip': BlazeChip;
982
997
  'blaze-image': BlazeImage;
@@ -1009,6 +1024,7 @@ interface WidgetsTagNameOptionsMap {
1009
1024
  'blaze-widget-moment-video': {};
1010
1025
  'blaze-widget-interaction': {};
1011
1026
  'blaze-widget-banner-ad': {};
1027
+ 'blaze-widget-captions': {};
1012
1028
  'blaze-loader': {};
1013
1029
  'blaze-chip': {};
1014
1030
  'blaze-image': {};
@@ -1063,6 +1079,8 @@ export declare const fullscreenIconSvg = "data:image/svg+xml;base64,PHN2ZyB3aWR0
1063
1079
  export declare const arrowDownMomentIconSvg = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYuNjY2NjcgMThWNS43MzMzMkwxLjg2NjY3IDEwL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MDAwMDUgMTguNTUwMiAzLjAwMDA1IDE4LjAwMDJWNi4wMDAyQzMuMDAwMDUgNS41ODM1MyAzLjExMjU1IDUuMjEyNyAzLjMzNzU1IDQuODg3N0MzLjU2MjU1IDQuNTYyNyAzLjg1MDA1IDQuMzI1MiA0LjIwMDA1IDQuMTc1MloiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuOTIiLz4KPC9nPgo8L3N2Zz4K";
1066
1084
 
1067
1085
  type CustomNativeTargeting = Record<string, string | string[]>;
1068
1086
  type CustomNativeArgs = {
@@ -1101,6 +1119,7 @@ export interface IBlazeSDKOptions {
1101
1119
  shouldAutoAdvance?: boolean;
1102
1120
  autoAdvanceUrl?: string;
1103
1121
  layoutDirection?: LocaleDirectionType;
1122
+ shouldAllowClosedCaptions?: boolean;
1104
1123
  }
1105
1124
 
1106
1125
  export interface IButtonPlayerNavigationConfig {
@@ -1187,6 +1206,8 @@ export interface BlazeStoryIcons {
1187
1206
  unmute: string;
1188
1207
  share: string;
1189
1208
  fullscreen: string;
1209
+ closedCaptionsOn: string;
1210
+ closedCaptionsOff: string;
1190
1211
  exitMobileTablet: string;
1191
1212
  exitDesktop: string;
1192
1213
  navigation: {
@@ -1205,6 +1226,8 @@ export interface BlazeMomentIconsStyle {
1205
1226
  exit: string;
1206
1227
  like: string;
1207
1228
  unlike: string;
1229
+ closedCaptionsOn: string;
1230
+ closedCaptionsOff: string;
1208
1231
  navigation: {
1209
1232
  nextMoment: string;
1210
1233
  prevMoment: string;
@@ -1421,6 +1444,7 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
1421
1444
  private _shouldAllowHorizontalStories;
1422
1445
  private _excludeContentId;
1423
1446
  private _layoutDirection;
1447
+ private _shouldAllowClosedCaptions;
1424
1448
  protected constructor();
1425
1449
  init(options: IBlazeSDKOptions): Promise<void>;
1426
1450
  private _urls;
@@ -1436,6 +1460,7 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
1436
1460
  get doNotTrack(): boolean;
1437
1461
  set doNotTrack(value: boolean);
1438
1462
  get shouldAllowHorizontalStories(): boolean;
1463
+ set shouldAllowHorizontalStories(value: boolean);
1439
1464
  get geoLocation(): string;
1440
1465
  set geoLocation(value: string);
1441
1466
  get staticContent(): boolean;
@@ -1461,6 +1486,7 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
1461
1486
  set excludeContentId(value: string | undefined);
1462
1487
  get layoutDirection(): LocaleDirectionType;
1463
1488
  set layoutDirection(value: LocaleDirectionType);
1489
+ get shouldAllowClosedCaptions(): boolean;
1464
1490
  }
1465
1491
  export declare const ConfigService: ConfigServiceClass;
1466
1492
 
@@ -1663,6 +1689,10 @@ declare abstract class StoryServiceClass extends StoryServiceClass_base implemen
1663
1689
  }
1664
1690
  export declare const StoryService: StoryServiceClass;
1665
1691
 
1692
+ export type BlazeAbTestType = {
1693
+ id: string;
1694
+ variant: string;
1695
+ };
1666
1696
  declare const UserServiceClass_base: {
1667
1697
  new (): {};
1668
1698
  _instance: UserServiceClass;
@@ -1671,9 +1701,12 @@ declare const UserServiceClass_base: {
1671
1701
  declare abstract class UserServiceClass extends UserServiceClass_base implements IService {
1672
1702
  _userId: string;
1673
1703
  _sessionId: string;
1704
+ _abTest: BlazeAbTestType | null;
1674
1705
  constructor();
1675
1706
  get userId(): string;
1676
1707
  get sessionId(): string;
1708
+ get abTest(): BlazeAbTestType | null;
1709
+ set abTest(abTest: BlazeAbTestType);
1677
1710
  init(): Promise<void>;
1678
1711
  private ensureSessionId;
1679
1712
  assignUserId(): Promise<void>;
@@ -1732,6 +1765,7 @@ declare abstract class VideoPlayerServiceClass extends VideoPlayerServiceClass_b
1732
1765
  private _isNavigating;
1733
1766
  private _isModalOpen;
1734
1767
  private _isSeekBarDragging;
1768
+ private _isClosedCaptioningEnabled;
1735
1769
  private _playReference;
1736
1770
  private _currentPlayedContentId;
1737
1771
  muteStateBeforeAd: 'mute' | 'unmute' | 'no-ad';
@@ -1753,6 +1787,8 @@ declare abstract class VideoPlayerServiceClass extends VideoPlayerServiceClass_b
1753
1787
  set isModalOpen(value: boolean);
1754
1788
  get isSeekBarDragging(): boolean;
1755
1789
  set isSeekBarDragging(value: boolean);
1790
+ get isClosedCaptioningEnabled(): boolean;
1791
+ set isClosedCaptioningEnabled(value: boolean);
1756
1792
  }
1757
1793
  export declare const VideoPlayerService: VideoPlayerServiceClass;
1758
1794
 
@@ -1839,6 +1875,7 @@ export interface LabelStyle {
1839
1875
  gap: number;
1840
1876
  width: number | 'auto';
1841
1877
  color: string;
1878
+ backgroundColor?: string;
1842
1879
  height: string | number;
1843
1880
  padding: string;
1844
1881
  font: string;
@@ -1892,6 +1929,7 @@ type BlazeMomentsPlayerButtonsStyle = {
1892
1929
  exit: BlazeMomentsPlayerButtonStyle;
1893
1930
  share: BlazeMomentsPlayerButtonStyle;
1894
1931
  like_unlike: BlazeMomentsPlayerButtonStyle;
1932
+ closed_captions: BlazeMomentsPlayerButtonStyle;
1895
1933
  };
1896
1934
  export type BlazeMomentsPlayerButtonDeviceStyle = {
1897
1935
  width: string;
@@ -2359,7 +2397,7 @@ export type ButtonPositionType = 'LEFT' | 'CENTER' | 'RIGHT';
2359
2397
  export declare const positionMap: {
2360
2398
  [key: string]: string;
2361
2399
  };
2362
- export type IconButtonType = "MUTE_UNMUTE" | "PLAY_PAUSE" | "SHARE" | "FULLSCREEN" | "EXIT_PLAYER";
2400
+ export type IconButtonType = "MUTE_UNMUTE" | "PLAY_PAUSE" | "SHARE" | "FULLSCREEN" | "EXIT_PLAYER" | 'CLOSED_CAPTIONS';
2363
2401
  export type IconPropertiesType = {
2364
2402
  value: IconButtonType | StoryDirectionType;
2365
2403
  embeddedSize?: string;
@@ -2376,6 +2414,15 @@ export type ChipStatusType = 'statusReadStyle' | 'statusUnreadStyle' | 'statusLi
2376
2414
 
2377
2415
  export type ClientPlatform = 'Web';
2378
2416
 
2417
+ export type CaptionFormat = 'srt' | 'vtt' | 'ttml' | 'scc';
2418
+ export type ICaptionFile = {
2419
+ url: string;
2420
+ fileSize: number | null;
2421
+ };
2422
+ export type IClosedCaption = {
2423
+ files: ICaptionFile[];
2424
+ };
2425
+
2379
2426
  export type FontWeightType = 'normal' | 'bold' | 'bolder' | 'lighter' | 'inherit' | 'initial' | 'unset' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
2380
2427
  export type TextTransformType = 'capitalize' | 'uppercase' | 'lowercase' | 'none';
2381
2428
 
@@ -2415,6 +2462,8 @@ export * from './chip-status.type';
2415
2462
  export * from './prefetch.type';
2416
2463
  export * from './trigger.type';
2417
2464
  export * from './gesture.type';
2465
+ export * from './closed-captions.type';
2466
+ export * from './ratio.type';
2418
2467
 
2419
2468
  export type EntitiesType = 'playerId' | 'teamId' | 'gameId' | 'roundId';
2420
2469
  export type PerItemStyleOverrides = Partial<Record<EntitiesType, Array<{
@@ -2446,6 +2495,8 @@ export type IconsPositionType = 'HORIZONTAL' | 'VERTICAL';
2446
2495
 
2447
2496
  export type PrefetchingPolicyType = 'low' | 'default';
2448
2497
 
2498
+ export type ContentAspectRatio = 'Vertical' | 'Horizontal';
2499
+
2449
2500
  export type SeverityType = 'error' | 'warning' | 'info' | 'success';
2450
2501
 
2451
2502
  export type SizeType = 'small' | 'medium' | 'large';
@@ -2585,6 +2636,33 @@ export * from './story/widget-story-player';
2585
2636
  export * from './widget-video';
2586
2637
  export * from './moment/widget-moment-seek-bar';
2587
2638
  export * from './widget-cta-modal';
2639
+ export * from './widget-captions';
2640
+
2641
+ export declare class BlazeWidgetCaptions extends HTMLElement {
2642
+ private container;
2643
+ private renderer;
2644
+ private observer;
2645
+ private captions;
2646
+ private video;
2647
+ private startTime;
2648
+ private boundTimeUpdate;
2649
+ private boundSeekUpdate;
2650
+ constructor();
2651
+ static get observedAttributes(): string[];
2652
+ connectedCallback(): void;
2653
+ disconnectedCallback(): void;
2654
+ attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
2655
+ private checkContainerContent;
2656
+ private handleTimeUpdate;
2657
+ private handleSeekUpdate;
2658
+ updateTime(currentTime: number): void;
2659
+ private setupTimeUpdateHandling;
2660
+ private cleanup;
2661
+ private updateVisibility;
2662
+ private setupStyles;
2663
+ initialize(video: HTMLVideoElement, captions: ICaptionFile[]): Promise<void>;
2664
+ private setupCaptions;
2665
+ }
2588
2666
 
2589
2667
  export declare abstract class BlazeWidgetContent extends HTMLElement {
2590
2668
  container: HTMLElement;
@@ -2907,7 +2985,7 @@ export declare class BlazeWidgetModal extends BaseWidget {
2907
2985
  disconnectedCallback(): void;
2908
2986
  onResize(): void;
2909
2987
  handleOnContentChange(mode: ContentDirection): void;
2910
- handlePopState(ev: PopStateEvent): void;
2988
+ handlePopState(): void;
2911
2989
  seek(id: string): void;
2912
2990
  setupHammer(): void;
2913
2991
  handlePanStart(ev: HammerInput): void;
@@ -3006,6 +3084,7 @@ export declare class BlazeWidgetSDK extends BaseWidget {
3006
3084
  modal: BlazeWidgetStoryModal | BlazeWidgetMomentModal;
3007
3085
  boundOnResizeEvent: (this: Window, ev: UIEvent) => void;
3008
3086
  boundOnResizeEventDelay: () => void;
3087
+ static get observedAttributes(): string[];
3009
3088
  constructor();
3010
3089
  connectedCallback(): Promise<void>;
3011
3090
  disconnectedCallback(): void;
@@ -3023,6 +3102,7 @@ export declare class BlazeWidgetSDK extends BaseWidget {
3023
3102
  handleStaticContentLoad(playReference: playRefType): Promise<void>;
3024
3103
  enrichContent(content: IStory[]): Promise<IStory[]>;
3025
3104
  setupModalAndLoadContent(contentType: ContentType, playReference: playRefType, content: IStory | IMoment): Promise<void>;
3105
+ attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
3026
3106
  private getConfigAttributes;
3027
3107
  private initialize;
3028
3108
  private injectToHead;
@@ -3100,6 +3180,7 @@ export declare class BlazeWidgetVideo extends BlazeWidgetVideoBase {
3100
3180
  loader: HTMLElement;
3101
3181
  source: HTMLElement;
3102
3182
  interactionElement: BlazeWidgetInteraction;
3183
+ captionsElement: BlazeWidgetCaptions;
3103
3184
  videoUrl: string | undefined;
3104
3185
  videoFrameCallback?: any;
3105
3186
  eventRenderBackgroundPercentageTriggered: Array<boolean>;
@@ -3118,10 +3199,13 @@ export declare class BlazeWidgetVideo extends BlazeWidgetVideoBase {
3118
3199
  googleIMA: any;
3119
3200
  isCurrentlyTryingToRunImaAd: boolean;
3120
3201
  hasPoster: boolean;
3202
+ static get observedAttributes(): string[];
3121
3203
  constructor(contentParent: BlazeWidgetStory | BlazeWidgetMoment);
3204
+ attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
3122
3205
  connectedCallback(): void;
3123
3206
  disconnectedCallback(): void;
3124
3207
  setData(data: IPage): void;
3208
+ loadClosedCaptions(): Promise<void>;
3125
3209
  getVideoDuration(): Promise<number>;
3126
3210
  loadPoster(): void;
3127
3211
  display(): void;
@@ -3391,6 +3475,7 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
3391
3475
  likeButtonElement: BlazeButton;
3392
3476
  shareButtonElement: BlazeButton;
3393
3477
  playPauseButtonElement: BlazeButton;
3478
+ closedCaptionButtonElement: BlazeButton;
3394
3479
  headBodyContainer: BlazeDiv;
3395
3480
  headElement: BlazeDiv;
3396
3481
  bodyElement: BlazeDiv;
@@ -3449,12 +3534,15 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
3449
3534
  collapseBodyText(lineClamp: string): void;
3450
3535
  onMuteUnmuteChange(): void;
3451
3536
  updatePlayerButtonIcons(): void;
3537
+ private handleOnClosedCaptionClick;
3538
+ private toggleCaptionsVisibility;
3452
3539
  handleOnShareClick(): Promise<void>;
3453
3540
  onShareModalButtonClick(shareButton: BlazeShareButton): Promise<void>;
3454
3541
  loadMoments(): Promise<void>;
3455
3542
  load(loadingType?: 'direct' | 'cache'): Promise<void>;
3456
3543
  unload(): Promise<void>;
3457
3544
  playToggle(): void;
3545
+ private updateCaptions;
3458
3546
  handleOnMuteUnmuteToggle(): void;
3459
3547
  setData(data: IMoment | null): void;
3460
3548
  updateData(options: {
@@ -3486,10 +3574,14 @@ export declare class BlazeWidgetStoryModal extends BlazeWidgetModal {
3486
3574
  onClose?: (options?: ISmoothOpenCloseModal) => void;
3487
3575
  boundOnResizeEventDelay: (this: Window, ev: UIEvent) => void;
3488
3576
  boundOnKeyDown: (ev: KeyboardEvent) => void;
3577
+ boundOnBeforeUnload: () => void;
3578
+ private currentState;
3489
3579
  constructor(parentWidget: HTMLElement, playerLayout: StoryPlayerStyle);
3490
3580
  connectedCallback(): void;
3491
3581
  disconnectedCallback(): void;
3582
+ onBeforeUnload(): null | undefined;
3492
3583
  setTheme(playerStyle: StoryPlayerStyle): void;
3584
+ updateModalContent(): void;
3493
3585
  setModalContent(stories: IStory[], indexOfContentInWidget: number, defaultAdsInfo?: IAdInfo): void;
3494
3586
  onKeyDown(ev: KeyboardEvent): void;
3495
3587
  close(): void;
@@ -3507,11 +3599,13 @@ export declare class BlazeWidgetStoryModal extends BlazeWidgetModal {
3507
3599
  export declare class BlazeWidgetStoryPlayer extends WidgetAbstractPlayer {
3508
3600
  boundOnKeyDown: (event: KeyboardEvent) => Promise<void>;
3509
3601
  backgroundAnimation?: Animation;
3602
+ dispatchExitStoryEvents: (() => void) | undefined;
3510
3603
  constructor();
3511
3604
  connectedCallback(): void;
3512
3605
  disconnectedCallback(): void;
3513
3606
  setupEventListeners(): void;
3514
3607
  applyStyles(): void;
3608
+ updateContentConfig(stories: IStory[]): void;
3515
3609
  attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
3516
3610
  setContent(content: BlazeWidgetStory[]): void;
3517
3611
  navigateContent(direction: ContentDirection): void;
@@ -3541,7 +3635,6 @@ export declare class BlazeWidgetStoryPlayer extends WidgetAbstractPlayer {
3541
3635
  export declare class BlazeWidgetStory extends BlazeWidgetContent {
3542
3636
  playerStyle: StoryPlayerStyle;
3543
3637
  mode: ScreenMode;
3544
- aspectRatio?: ContentAspectRatio;
3545
3638
  pages: BlazeWidgetVideoBase[];
3546
3639
  data: IStory;
3547
3640
  shareModal: BlazeWidgetShareModal | undefined;
@@ -3552,6 +3645,7 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
3552
3645
  ctaModal: BlazeWidgetCtaModal;
3553
3646
  isCtaWasClickedOrSwiped: boolean;
3554
3647
  resumeAfterBlurButton: BlazeButton | undefined;
3648
+ aspectRatio?: ContentAspectRatio;
3555
3649
  pageIndex: number;
3556
3650
  type: string;
3557
3651
  progressElement: HTMLElement;
@@ -3566,6 +3660,7 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
3566
3660
  muteButtonElement?: BlazeButton;
3567
3661
  exitMobileTabletButtonElement?: BlazeButton;
3568
3662
  fullScreenElement?: BlazeButton;
3663
+ closedCaptionsButtonElement?: BlazeButton;
3569
3664
  topContainer: BlazeDiv;
3570
3665
  bottomContainer: BlazeDiv;
3571
3666
  contentWrapper: BlazeDiv;
@@ -3601,7 +3696,8 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
3601
3696
  private createResumeAfterBlurButton;
3602
3697
  private applyIconStyle;
3603
3698
  onShareClick(): Promise<void>;
3604
- private updateCtaButtonLayout;
3699
+ private onClosedCaptionClick;
3700
+ updateCtaButtonLayout(): void;
3605
3701
  private updateChip;
3606
3702
  setTheme(playerStyle: StoryPlayerStyle): void;
3607
3703
  private disableStoriesNavigationButtons;
@@ -3616,7 +3712,13 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
3616
3712
  }): void;
3617
3713
  muteToggle(): boolean;
3618
3714
  resetStoryLocationIndexToLastUnseen(): void;
3619
- setData(data: any): void;
3715
+ private determineAspectRatio;
3716
+ private clearExistingContent;
3717
+ private createPageElement;
3718
+ private setupPageEndedHandler;
3719
+ private createProgressElements;
3720
+ private createProgressPart;
3721
+ setData(story: IStory): void;
3620
3722
  get currentPage(): BlazeWidgetVideoBase;
3621
3723
  get nextPage(): BlazeWidgetVideoBase;
3622
3724
  get prevPage(): BlazeWidgetVideoBase;
@@ -3625,6 +3727,7 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
3625
3727
  revertNextPageButtonToPreviousAction(): void;
3626
3728
  displayRestartStoryButton(): void;
3627
3729
  playPage(pageIndexToPlayNext: number): void;
3730
+ updatePublishedDate(index?: number): void;
3628
3731
  switchToPage(newPageIndex: number): void;
3629
3732
  startPage(indexToPlay: number): void;
3630
3733
  unload(): void;