1"use strict";(self.webpackChunk_template_frontend=self.webpackChunk_template_frontend||[]).push([[20],{49:function(e,t,n){var a=n(24),o=n(25),i=function(){function e(){(0,a.Z)(this,e)}return(0,o.Z)(e,[{key:"Trigger",value:function(e,t){var n=new CustomEvent(e,{detail:t});document.dispatchEvent(n)}},{key:"On",value:function(e,t){t&&document.addEventListener(e,t)}},{key:"AjaxModuleLoaded",value:function(){var e=new Event("ajax-module-loaded");document.dispatchEvent(e)}},{key:"OnAjaxModuleLoaded",value:function(e){e&&document.addEventListener("ajax-module-loaded",e)}},{key:"ReloadCarousels",value:function(){var e=new Event("reload-carousels");document.dispatchEvent(e)}},{key:"OnReloadCarousels",value:function(e){e&&document.addEventListener("reload-carousels",e)}},{key:"BeforeMatchDay",value:function(){var e=new Event("before-match-day");document.dispatchEvent(e)}},{key:"OnBeforeMatchDay",value:function(e){e&&document.addEventListener("before-match-day",e)}},{key:"AfterMatchDay",value:function(){var e=new Event("after-match-day");document.dispatchEvent(e)}},{key:"OnAfterMatchDay",value:function(e){e&&document.addEventListener("after-match-day",e)}},{key:"GlobalScheduleWeeklyNavChange",value:function(e,t){var n=new CustomEvent("gs-calendar-nav-date-changed",{detail:{fromDate:e,toDate:t}});document.dispatchEvent(n)}},{key:"OnGlobalScheduleWeeklyNavChange",value:function(e){e&&document.addEventListener("gs-calendar-nav-date-changed",e)}},{key:"ContentReload",value:function(){var e=new Event("content-reload");document.dispatchEvent(e)}},{key:"OnContentReload",value:function(e){e&&document.addEventListener("content-reload",e)}}]),e}();i=new i,t.Z=i},46:function(e,t,n){n.d(t,{Ei:function(){return g},Em:function(){return c},Lm:function(){return d},S5:function(){return v},T:function(){return i},ay:function(){return m},nI:function(){return r},qs:function(){return l},tq:function(){return u},tu:function(){return s},x:function(){return a},x0:function(){return o}});var a=function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).querySelectorAll(e)},o=function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).querySelector(e)},i="ontouchstart"in globalThis||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0,r=function(){return globalThis.innerWidth>=1024},u=function(){return globalThis.innerWidth<=768},d=function(){return globalThis.innerWidth<=430},c=function(){return globalThis.innerWidth<=1024&&globalThis.innerWidth>768},l=(/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.MSStream,!/Trident/.exec(navigator.userAgent)||/rv[ :]11/.exec(navigator.userAgent),function(){return o("html").lang}),s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";return document.querySelector(e).scrollTo({left:t,behavior:n})},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;requestAnimationFrame((function(){setTimeout(e,t)}))},f=function(e,t){return Array.from({length:t-e+1},(function(t,n){return e+n}))},h={volley:{upComing:new Set(f(1,3)),live:new Set(f(4,23)),finished:new Set(f(24,27))},beach:{upComing:new Set([1,2]),live:new Set(f(3,11)),finished:new Set(f(12,15))}},m=function(){var e,t,n,a,o=null===(e=globalThis.matchconfig)||void 0===e?void 0:e.status,i=null===(t=globalThis.matchconfig)||void 0===t?void 0:t.discipline;return(null===(n=h[i])||void 0===n?void 0:n.live.has(o))||(null===(a=h[i])||void 0===a?void 0:a.upComing.has(o))},g=function(e,t){return!(!e||Number.isNaN(t))&&new Date(e).getTime()<=Date.now()+60*Number(t)*60*1e3}},116:function(e,t,n){n.r(t),n.d(t,{default:function(){return u}});var a=n(24),o=n(25),i=n(49),r=n(46),u=function(){function e(){(0,a.Z)(this,e),this.widgetItems=$("[js-vbw-widget-iframe]")}return(0,o.Z)(e,[{key:"init",value:function(){var e,t=this;this.widgetItems&&0!==this.widgetItems.length&&(this.teamLogos=(null===(e=window.matchconfig)||void 0===e?void 0:e.logos)||{},this.widgetHeight={"play-by-play":(0,r.tq)()?"500px":"900px",court:(0,r.tq)()?"300px":"320px","team-stats":(0,r.tq)()?"500px":"800px"},this.triggerIframeUpdate(),i.Z.OnAjaxModuleLoaded((function(){return t.triggerIframeUpdate()}),{once:!0}))}},{key:"triggerIframeUpdate",value:function(){var e=this;this.widgetItems&&this.widgetItems.each((function(t,n){return e.updateWidgetIFrame(n)}))}},{key:"updateWidgetIFrame",value:function(e){var t=$(e),n=this._buildIframeSrc(t);if(n){var a=t.attr("data-widget");t.find(".vbw-widget-iframe").attr("src",n).attr("height",this.widgetHeight[a]||"400px")}}},{key:"_buildIframeSrc",value:function(e){var t,n,a=e.attr("data-iframe-url"),o=e.attr("data-widget-id");if(!a||!o)return null;var i=e.attr("data-widget"),r=e.attr("data-team-a-color"),u=e.attr("data-team-b-color");return a=a.replace("{widget}",i).replace("{id}",o),"team-stats"===i&&(a=(a=a.replace(/([?&])side_force=[^&]*&?/,(function(e,t){return"?"===t?"?":""}))).replace(/[?&]$/,"")),r&&(a+="&home_color=".concat(encodeURIComponent(r))),u&&(
1a+="&away_color=".concat(encodeURIComponent(u))),null!==(t=this.teamLogos)&&void 0!==t&&t.teamA&&(a=a.replace("{home_image}",encodeURIComponent(this.teamLogos.teamA))),null!==(n=this.teamLogos)&&void 0!==n&&n.teamB&&(a=a.replace("{away_image}",encodeURIComponent(this.teamLogos.teamB))),a}}]),e}()}}]); 2//# sourceMappingURL=volley-station-widget.ccc17cc40c36e5818dcd.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.