-
-
Save mjgerace/ae144c6bcf434c68cf85f1b686d3ce83 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
/** | |
* @param {!Object} object | |
* @param {string} property | |
* @return {?} | |
*/ | |
function __getOwnPropertyDescriptor(object, property) { | |
try { | |
return Object.getOwnPropertyDescriptor(object, property); | |
} catch (n) { | |
return { | |
configurable: false, | |
enumerable: true, | |
value: object[property], | |
writable: true | |
}; | |
} | |
} | |
/** | |
* @param {!Object} obj | |
* @param {string} prop | |
* @param {?} r | |
* @return {undefined} | |
*/ | |
function __defineProperty(obj, prop, r) { | |
try { | |
Object.defineProperty(obj, prop, r); | |
} catch (i) { | |
} | |
} | |
/** | |
* @param {?} prop | |
* @param {?} overridee | |
* @param {?} overrider | |
* @return {undefined} | |
*/ | |
function override(prop, overridee, overrider) { | |
} | |
/** | |
* @param {?} handler | |
* @param {?} data | |
* @return {undefined} | |
*/ | |
function final(handler, data) { | |
} | |
/** | |
* @param {?} canCreateDiscussions | |
* @return {?} | |
*/ | |
function GetCompiledAsset(canCreateDiscussions) { | |
return ErrorReporter.Trace(null, "GetCompiledAsset call outside of module definition."), ""; | |
} | |
/** | |
* @param {?} formatters | |
* @param {?} customFormatters | |
* @return {undefined} | |
*/ | |
function RegisterCompiledAsset(formatters, customFormatters) { | |
} | |
/** | |
* @param {?} childProcess | |
* @return {?} | |
*/ | |
function Harness(childProcess) { | |
return null; | |
} | |
/** | |
* @param {?} canCreateDiscussions | |
* @return {?} | |
*/ | |
function JasmineSpec(canCreateDiscussions) { | |
return null; | |
} | |
/** | |
* @param {?} done | |
* @return {?} | |
*/ | |
function lazyStaticInit(done) { | |
return function (impl) { | |
/** @type {boolean} */ | |
var n = true; | |
/** | |
* @return {?} | |
*/ | |
var proxy = function () { | |
var r = impl.apply(this, arguments); | |
return n && (n = false, done()), r; | |
}; | |
return proxy.prototype = impl.prototype, proxy; | |
}; | |
} | |
/** | |
* @param {string} message | |
* @return {undefined} | |
*/ | |
function $timestamp(message) { | |
if ("console" in window && "timeStamp" in console && "object" != typeof console.timeStamp && -1 == console.timeStamp.toString().indexOf("__BROWSERTOOLS_CONSOLE_SAFEFUNC")) { | |
console.timeStamp(message); | |
} | |
} | |
/** | |
* @param {string} asyncFunction | |
* @param {string} extraAsyncArgs | |
* @return {undefined} | |
*/ | |
function $logFmt(asyncFunction, extraAsyncArgs) { | |
} | |
/** | |
* @param {?} canCreateDiscussions | |
* @return {undefined} | |
*/ | |
function $warn(canCreateDiscussions) { | |
} | |
/** | |
* @param {?} event | |
* @return {undefined} | |
*/ | |
function $time(event) { | |
} | |
/** | |
* @param {?} canCreateDiscussions | |
* @return {undefined} | |
*/ | |
function $timeEnd(canCreateDiscussions) { | |
} | |
/** | |
* @return {undefined} | |
*/ | |
function $ots() { | |
if ("console" in window) { | |
console.log(Locator.otsReport.generate()); | |
} | |
} | |
/** | |
* @param {?} canCreateDiscussions | |
* @return {undefined} | |
*/ | |
function $dir(canCreateDiscussions) { | |
} | |
/** | |
* @return {?} | |
*/ | |
function $now() { | |
return null; | |
} | |
/** | |
* @param {string} key | |
* @return {?} | |
*/ | |
function $stem(key) { | |
var rule = Locator.treeLookup.getReference(key); | |
return "dir" in console && console.dir(rule), rule; | |
} | |
/** | |
* @return {?} | |
*/ | |
function cycleid() { | |
return "Locator" in window && Locator.validationManager ? Locator.validationManager.cyclecount : 0; | |
} | |
/** | |
* @param {!Element} layer | |
* @param {number} time | |
* @param {!Function} handler | |
* @return {undefined} | |
*/ | |
function LongClick(layer, time, handler) { | |
var _whitespaceCharClass = this; | |
if (this.trackingClick = false, this.trackingClickStart = 0, this.targetElement = null, this.touchStartX = 0, this.touchStartY = 0, this.touchBoundary = 10, this.time = time, this.handler = handler, this.timer = null, this.layer = layer, !layer || !layer.nodeType) { | |
throw new TypeError("Layer must be a document node"); | |
} | |
/** | |
* @return {?} | |
*/ | |
this.onTouchStart = function () { | |
return LongClick.prototype.onTouchStart.apply(_whitespaceCharClass, arguments); | |
}; | |
/** | |
* @return {?} | |
*/ | |
this.onTouchMove = function () { | |
return LongClick.prototype.onTouchMove.apply(_whitespaceCharClass, arguments); | |
}; | |
/** | |
* @return {?} | |
*/ | |
this.onTouchEnd = function () { | |
return LongClick.prototype.onTouchEnd.apply(_whitespaceCharClass, arguments); | |
}; | |
/** | |
* @return {?} | |
*/ | |
this.onTouchCancel = function () { | |
return LongClick.prototype.onTouchCancel.apply(_whitespaceCharClass, arguments); | |
}; | |
if (window.navigator.msPointerEnabled) { | |
/** @type {string} */ | |
this.startEventName = "MSPointerDown"; | |
/** @type {string} */ | |
this.moveEventName = "MSPointerMove"; | |
/** @type {string} */ | |
this.endEventName = "MSPointerUp"; | |
/** @type {string} */ | |
this.cancelEventName = "MSPointerCancel"; | |
} else { | |
/** @type {string} */ | |
this.startEventName = "touchstart"; | |
/** @type {string} */ | |
this.moveEventName = "touchmove"; | |
/** @type {string} */ | |
this.endEventName = "touchend"; | |
/** @type {string} */ | |
this.cancelEventName = "touchcancel"; | |
} | |
layer.addEventListener(this.startEventName, this.onTouchStart, false); | |
layer.addEventListener(this.moveEventName, this.onTouchMove, false); | |
layer.addEventListener(this.endEventName, this.onTouchEnd, false); | |
layer.addEventListener(this.cancelEventName, this.onTouchCancel, false); | |
} | |
var ns_test; | |
var ns_gen5_util; | |
var ErrorReporter; | |
var __decorate; | |
var __param; | |
var __extends; | |
var extend; | |
var ANIMATION_END; | |
var TRANSITION_END; | |
var $log_log; | |
var $log; | |
var $logTest; | |
var $break_on_assert; | |
var $assert; | |
var FastClick; | |
var ns_gen5_ml; | |
var ns_gen5_util_user; | |
var ns_gen5_events; | |
var ns_gen5_net; | |
var ns_gen5_util_logging; | |
var ns_gen5_validation; | |
var ns_gen5_language; | |
var ns_gen5_data; | |
var ns_gen5_ui; | |
var ns_gen5_config; | |
var ns_gen5_ui_managers; | |
var ns_gen5_ui_controls; | |
var ns_gen5_animation_easing; | |
var ns_gen5_animation; | |
var readit; | |
var ns_betslip; | |
var Locator; | |
/** @type {string} */ | |
var SITE_ROOT_PATH = "sportsnj"; | |
!function (state) { | |
var scopeWindow; | |
var hooksByComponent; | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function HTMLSectionBuilder() { | |
} | |
return HTMLSectionBuilder.prototype.runSpec = function () { | |
throw new Error("Method should be overriten"); | |
}, HTMLSectionBuilder; | |
}(); | |
state.B365JasmineSpec = size; | |
/** @type {!Window} */ | |
scopeWindow = window; | |
hooksByComponent = scopeWindow.JasmineSpecLookup = {}; | |
/** | |
* @param {?} component | |
* @param {?} item | |
* @param {?} name | |
* @return {undefined} | |
*/ | |
scopeWindow.addJasmineSpec = function (component, item, name) { | |
var menu = hooksByComponent[component] || (hooksByComponent[component] = []); | |
menu.push([item, name]); | |
}; | |
}(ns_test || (ns_test = {})), function (state) { | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function my() { | |
} | |
return my.encrypt = function (target) { | |
var pix_base; | |
/** @type {string} */ | |
var pix_color = ""; | |
var pos = target.length; | |
/** @type {number} */ | |
var min = 0; | |
/** @type {number} */ | |
var i = 0; | |
/** @type {number} */ | |
min = 0; | |
for (; pos > min; min++) { | |
pix_base = target.substr(min, 1); | |
/** @type {number} */ | |
i = 0; | |
for (; i < my.MAP_LEN; i++) { | |
if (pix_base == my.charMap[i][0]) { | |
pix_base = my.charMap[i][1]; | |
break; | |
} | |
} | |
/** @type {string} */ | |
pix_color = pix_color + pix_base; | |
} | |
return pix_color; | |
}, my.decrypt = function (m) { | |
var pix_base; | |
/** @type {string} */ | |
var pix_color = ""; | |
var y = m.length; | |
/** @type {number} */ | |
var x = 0; | |
/** @type {number} */ | |
var i = 0; | |
/** @type {number} */ | |
x = 0; | |
for (; y > x; x++) { | |
pix_base = m.substr(x, 1); | |
/** @type {number} */ | |
i = 0; | |
for (; i < my.MAP_LEN; i++) { | |
if (":" == pix_base && ":|~" == m.substr(x, 3)) { | |
/** @type {string} */ | |
pix_base = "\n"; | |
/** @type {number} */ | |
x = x + 2; | |
break; | |
} | |
if (pix_base == my.charMap[i][1]) { | |
pix_base = my.charMap[i][0]; | |
break; | |
} | |
} | |
/** @type {string} */ | |
pix_color = pix_color + pix_base; | |
} | |
return pix_color; | |
}, my.MAP_LEN = 64, my.charMap = [["A", "d"], ["B", "e"], ["C", "f"], ["D", "g"], ["E", "h"], ["F", "i"], ["G", "j"], ["H", "k"], ["I", "l"], ["J", "m"], ["K", "n"], ["L", "o"], ["M", "p"], ["N", "q"], ["O", "r"], ["P", "s"], ["Q", "t"], ["R", "u"], ["S", "v"], ["T", "w"], ["U", "x"], ["V", "y"], ["W", "z"], ["X", "a"], ["Y", "b"], ["Z", "c"], ["a", "Q"], ["b", "R"], ["c", "S"], ["d", "T"], ["e", "U"], ["f", "V"], ["g", "W"], ["h", "X"], ["i", "Y"], ["j", "Z"], ["k", "A"], ["l", "B"], ["m", "C"], | |
["n", "D"], ["o", "E"], ["p", "F"], ["q", "0"], ["r", "1"], ["s", "2"], ["t", "3"], ["u", "4"], ["v", "5"], ["w", "6"], ["x", "7"], ["y", "8"], ["z", "9"], ["0", "G"], ["1", "H"], ["2", "I"], ["3", "J"], ["4", "K"], ["5", "L"], ["6", "M"], ["7", "N"], ["8", "O"], ["9", "P"], ["\n", ":|~"], ["\r", ""]], my; | |
}(); | |
state.B365SimpleEncrypt = size; | |
}(ns_gen5_util || (ns_gen5_util = {})), function (state) { | |
var t; | |
var size; | |
!function (canCreateDiscussions) { | |
/** @type {string} */ | |
canCreateDiscussions.CONNECTION_ENTRY = "CONNECTION_ENTRY"; | |
/** @type {string} */ | |
canCreateDiscussions.PUSH_MESSAGE_CONNECTION_ENTRY = "PUSH_MESSAGE_CONNECTION_ENTRY"; | |
/** @type {string} */ | |
canCreateDiscussions.PULL_DATA_ENTRY = "PULL_DATA_ENTRY"; | |
/** @type {string} */ | |
canCreateDiscussions.MODULE_LOAD_ENTRY = "MODULE_LOAD_ENTRY"; | |
/** @type {string} */ | |
canCreateDiscussions.NAVIGATION_ENTRY = "NAVIGATION_ENTRY"; | |
/** @type {string} */ | |
canCreateDiscussions.VIDEO_ENTRY = "VIDEO_ENTRY"; | |
/** @type {string} */ | |
canCreateDiscussions.COUPON_STREAMING_ENTRY = "COUPON_STREAMING_ENTRY"; | |
/** @type {string} */ | |
canCreateDiscussions.BET_SLIP_ENTRY = "BET_SLIP_ENTRY"; | |
/** @type {string} */ | |
canCreateDiscussions.GLOBAL_CONFIG_ENTRY = "GLOBAL_CONFIG_ENTRY"; | |
/** @type {string} */ | |
canCreateDiscussions.PLAYTECH_INSTANT_GAMES_ENTRY = "PLAYTECH_INSTANT_GAMES_ENTRY"; | |
/** @type {string} */ | |
canCreateDiscussions.FLASH_MODULE_ENTRY = "FLASH_MODULE_ENTRY"; | |
/** @type {string} */ | |
canCreateDiscussions.EMPTY_TOPIC_ENTRY = "EMPTY_TOPIC_ENTRY"; | |
/** @type {string} */ | |
canCreateDiscussions.FINANCIALS_TOPIC_ENTRY = "FINANCIALS_TOPIC_ENTRY"; | |
/** @type {string} */ | |
canCreateDiscussions.FILTERING_ENTRY = "FILTERING_ENTRY"; | |
/** @type {string} */ | |
canCreateDiscussions.BLOB_ENTRY = "BLOB_ENTRY"; | |
/** @type {string} */ | |
canCreateDiscussions.EDIT_BETS_ENTRY = "EDIT_BETS"; | |
/** @type {string} */ | |
canCreateDiscussions.MATCH_ALERTS_SERVICE_WORKER_ENTRY = "MATCH_ALERTS_SERVICE_WORKER_ENTRY"; | |
/** @type {string} */ | |
canCreateDiscussions.MATCH_ALERTS_ENTRY = "MATCH_ALERTS_ENTRY"; | |
/** @type {string} */ | |
canCreateDiscussions.QUICK_BET_ENTRY = "QUICK_BET_ENTRY"; | |
/** @type {string} */ | |
canCreateDiscussions.GENERAL_ENTRY = "GENERAL_ENTRY"; | |
/** @type {string} */ | |
canCreateDiscussions.DEPRECATION_WARNING_ENTRY = "DEPRECATION_WARNING_ENTRY"; | |
/** @type {string} */ | |
canCreateDiscussions.MOS_ENTRY = "MOS_ENTRY"; | |
/** @type {string} */ | |
canCreateDiscussions.GEO_COMPLY_ENTRY = "GEO_COMPLY_ENTRY"; | |
/** @type {string} */ | |
canCreateDiscussions.LOGIN_ENTRY = "LOGIN_ENTRY"; | |
/** @type {string} */ | |
canCreateDiscussions.MEMBERS_ENTRY = "MEMBERS_ENTRY"; | |
}(t = state.InfoReporterGroups || (state.InfoReporterGroups = {})); | |
size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function message() { | |
} | |
return message.getLog = function () { | |
return message.InfoLog; | |
}, message.Trace = function (s, input) { | |
var dt; | |
var comment; | |
if (!message.InfoLog[s]) { | |
/** @type {!Array} */ | |
message.InfoLog[s] = []; | |
} | |
/** @type {!Date} */ | |
dt = new Date; | |
/** @type {string} */ | |
comment = dt.getHours() + ":" + dt.getMinutes() + ":" + dt.getSeconds(); | |
/** @type {string} */ | |
input = comment + " " + input; | |
message.InfoLog[s].push(input); | |
}, message.InfoLog = {}, message; | |
}(); | |
state.InfoReporter = size; | |
}(ns_gen5_util || (ns_gen5_util = {})), ErrorReporter = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function body() { | |
} | |
return body.Trace = function (s, result) { | |
var ret; | |
var e; | |
var mergedRpp; | |
try { | |
ret = result.stack || result.message || result; | |
/** @type {string} */ | |
e = "" + s; | |
$log(e, ret); | |
if (this.ErrorLog.length >= body.MAXIMUM_LOG_SIZE) { | |
/** @type {number} */ | |
mergedRpp = this.ErrorLog.length - body.MAXIMUM_LOG_SIZE + 1; | |
body.ErrorLog.splice(0, mergedRpp); | |
} | |
this.ErrorLog.push(new Date + " " + e + " " + result); | |
ns_gen5_util_logging.ClientErrorLogger.QueueError(s, result); | |
} catch (n) { | |
ns_gen5_util.InfoReporter.Trace(ns_gen5_util.InfoReporterGroups.GENERAL_ENTRY, "Problem happened during logging error"); | |
} | |
}, body.MAXIMUM_LOG_SIZE = 100, body.ErrorLog = [], body.GetLog = function () { | |
return body.ErrorLog; | |
}, body; | |
}(), __decorate = this && this.__decorate || function (child, target, key, desc) { | |
var d; | |
var o; | |
/** @type {number} */ | |
var c = arguments.length; | |
var r = 3 > c ? target : null === desc ? desc = __getOwnPropertyDescriptor(target, key) : desc; | |
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) { | |
r = Reflect.decorate(child, target, key, desc); | |
} else { | |
/** @type {number} */ | |
o = child.length - 1; | |
for (; o >= 0; o--) { | |
if (d = child[o]) { | |
r = (3 > c ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | |
} | |
} | |
} | |
return c > 3 && r && __defineProperty(target, key, r), r; | |
}, __param = this.__param || function (callback, fn) { | |
return function (n, previousAnimation) { | |
fn(n, previousAnimation, callback); | |
}; | |
}, __extends = this && this.__extends || function (child, parent) { | |
var key; | |
var ctor; | |
for (key in parent) { | |
if (parent.hasOwnProperty(key)) { | |
child[key] = parent[key]; | |
} | |
} | |
/** | |
* @return {undefined} | |
*/ | |
ctor = function () { | |
/** @type {!Function} */ | |
this.constructor = child; | |
}; | |
child.prototype = null === parent ? Object.create(parent) : (ctor.prototype = parent.prototype, new ctor); | |
}, extend = function (result, value) { | |
return __extends(value, result), result; | |
}, function () { | |
var autotocID; | |
var vendors; | |
var global; | |
var i; | |
/** @type {!Element} */ | |
var domScroll = document.createElement("div"); | |
/** @type {!CSSStyleDeclaration} */ | |
var style = domScroll.style; | |
if ("" === style.animation) { | |
/** @type {string} */ | |
ANIMATION_END = "animationend"; | |
} else { | |
if ("" === style.webkitAnimation) { | |
/** @type {string} */ | |
ANIMATION_END = "webkitAnimationEnd"; | |
} else { | |
if ("" === style.mozAnimation) { | |
/** @type {string} */ | |
ANIMATION_END = "mozAnimationEnd"; | |
} else { | |
if ("" === style.msAnimation) { | |
/** @type {string} */ | |
ANIMATION_END = "msAnimationEnd"; | |
} | |
} | |
} | |
} | |
if ("" === style.transition) { | |
/** @type {string} */ | |
TRANSITION_END = "transitionend"; | |
} else { | |
if ("" === style.webkitTransition) { | |
/** @type {string} */ | |
TRANSITION_END = "webkitTransitionEnd"; | |
} | |
} | |
/** @type {number} */ | |
autotocID = 0; | |
/** @type {!Array} */ | |
vendors = ["webkit", "moz"]; | |
/** @type {!Window} */ | |
global = window; | |
/** @type {number} */ | |
i = 0; | |
for (; i < vendors.length && !window.requestAnimationFrame; ++i) { | |
global.requestAnimationFrame = global[vendors[i] + "RequestAnimationFrame"]; | |
global.cancelAnimationFrame = global[vendors[i] + "CancelAnimationFrame"] || global[vendors[i] + "CancelRequestAnimationFrame"]; | |
} | |
if (!window.requestAnimationFrame) { | |
/** | |
* @param {?} callback | |
* @return {?} | |
*/ | |
window.requestAnimationFrame = function (callback) { | |
/** @type {number} */ | |
var mockup_autotoc_ = (new Date).getTime(); | |
/** @type {number} */ | |
var i = Math.max(0, 16 - (mockup_autotoc_ - autotocID)); | |
var regexpImage = window.setTimeout(function () { | |
callback(mockup_autotoc_ + i); | |
}, i); | |
return autotocID = mockup_autotoc_ + i, regexpImage; | |
}; | |
} | |
if (!window.cancelAnimationFrame) { | |
/** | |
* @param {?} id | |
* @return {undefined} | |
*/ | |
window.cancelAnimationFrame = function (id) { | |
clearTimeout(id); | |
}; | |
} | |
}(), function () { | |
if (!Array.prototype.indexOf) { | |
/** | |
* @param {string} value | |
* @param {number=} fromIndex | |
* @return {number} | |
* @template T | |
*/ | |
Array.prototype.indexOf = function (value, fromIndex) { | |
var l; | |
var i; | |
if (!fromIndex) { | |
/** @type {number} */ | |
fromIndex = 0; | |
} | |
/** @type {number} */ | |
l = this.length; | |
/** @type {(number|undefined)} */ | |
i = fromIndex; | |
for (; l > i; i++) { | |
if (this[i] === value) { | |
return i; | |
} | |
} | |
return -1; | |
}; | |
} | |
}(), $log_log = "", $log = function () { | |
}, $logTest = function () { | |
}, function () { | |
if (!window.safeSessionStorage) { | |
window.safeSessionStorage = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function FakeLocalStorage() { | |
} | |
/** | |
* @return {undefined} | |
*/ | |
function Storage() { | |
this._store = {}; | |
} | |
/** @type {string} */ | |
var test_val = "test-string"; | |
var shiftClicked = function () { | |
try { | |
if (window.sessionStorage) { | |
return window.sessionStorage.setItem(test_val, test_val), window.sessionStorage.removeItem(test_val), true; | |
} | |
} catch (format) { | |
ErrorReporter.Trace(null, format); | |
} | |
return false; | |
}(); | |
return FakeLocalStorage.prototype.setItem = function (key, data) { | |
try { | |
if (window.sessionStorage) { | |
window.sessionStorage.setItem(key, data); | |
} | |
} catch (n) { | |
} | |
}, FakeLocalStorage.prototype.getItem = function (id) { | |
try { | |
if (window.sessionStorage) { | |
return window.sessionStorage.getItem(id); | |
} | |
} catch (t) { | |
} | |
return null; | |
}, FakeLocalStorage.prototype.removeItem = function (key) { | |
try { | |
if (window.sessionStorage) { | |
window.sessionStorage.removeItem(key); | |
} | |
} catch (t) { | |
} | |
}, Storage.prototype.setItem = function (key, value) { | |
/** @type {string} */ | |
this._store[key] = value; | |
}, Storage.prototype.getItem = function (id) { | |
return this._store[id]; | |
}, Storage.prototype.removeItem = function (key) { | |
delete this._store[key]; | |
}, shiftClicked ? new FakeLocalStorage : new Storage; | |
}(); | |
} | |
}(), function (win, doc, type) { | |
/** | |
* @param {string} p | |
* @return {undefined} | |
*/ | |
function docHijack(p) { | |
var old = doc[p]; | |
/** | |
* @param {?} v | |
* @return {?} | |
*/ | |
doc[p] = function (v) { | |
return addListen(old(v)); | |
}; | |
} | |
/** | |
* @param {!Object} obj | |
* @return {?} | |
*/ | |
function addListen(obj) { | |
var i = obj.length; | |
if (i) { | |
for (; i--;) { | |
obj[i].addEventListener = addEvent; | |
obj[i].removeEventListener = removeEvent; | |
} | |
} else { | |
obj.addEventListener = addEvent; | |
obj.removeEventListener = removeEvent; | |
} | |
return obj; | |
} | |
var isEventSupported; | |
var get; | |
var $; | |
var addEvent; | |
var removeEvent; | |
var _; | |
if (!(win.addEventListener && win.removeEventListener || !win.attachEvent || !win.detachEvent)) { | |
/** | |
* @param {!Function} name | |
* @return {?} | |
*/ | |
isEventSupported = function (name) { | |
return "function" == typeof name; | |
}; | |
/** | |
* @param {!Object} o | |
* @param {!Function} v | |
* @return {?} | |
*/ | |
get = function (o, v) { | |
var name; | |
var j; | |
var t = v[type]; | |
if (t) { | |
name = void 0; | |
j = t.length; | |
for (; j--;) { | |
if (name = t[j], name[0] === o) { | |
return name[1]; | |
} | |
} | |
} | |
}; | |
/** | |
* @param {!Object} el | |
* @param {!Function} e | |
* @param {!Function} element | |
* @return {?} | |
*/ | |
$ = function (el, e, element) { | |
var groups = e[type] || (e[type] = []); | |
return get(el, e) || (groups[groups.length] = [el, element], element); | |
}; | |
/** | |
* @param {string} type | |
* @param {!Function} name | |
* @param {boolean} add | |
* @return {undefined} | |
*/ | |
addEvent = function (type, name, add) { | |
if (isEventSupported(name)) { | |
var self = this; | |
self.attachEvent("on" + type, $(self, name, function (e) { | |
e = e || win.event; | |
e.preventDefault = e.preventDefault || function () { | |
/** @type {boolean} */ | |
e.returnValue = false; | |
}; | |
e.stopPropagation = e.stopPropagation || function () { | |
/** @type {boolean} */ | |
e.cancelBubble = true; | |
}; | |
e.target = e.target || e.srcElement || doc.documentElement; | |
e.currentTarget = e.currentTarget || self; | |
e.timeStamp = e.timeStamp || (new Date).getTime(); | |
name.call(self, e); | |
})); | |
} | |
}; | |
/** | |
* @param {string} type | |
* @param {!Function} name | |
* @param {boolean} capture | |
* @return {undefined} | |
*/ | |
removeEvent = function (type, name, capture) { | |
var obj; | |
var x; | |
if (isEventSupported(name)) { | |
obj = this; | |
x = get(obj, name); | |
if (x) { | |
obj.detachEvent("on" + type, x); | |
} | |
} | |
}; | |
addListen([doc, win]); | |
if ("Element" in win) { | |
_ = win.Element; | |
/** @type {function(string, !Function, boolean): undefined} */ | |
_.prototype.addEventListener = addEvent; | |
/** @type {function(string, !Function, boolean): undefined} */ | |
_.prototype.removeEventListener = removeEvent; | |
} else { | |
doc.attachEvent("onreadystatechange", function () { | |
addListen(doc.all); | |
}); | |
docHijack("getElementsByTagName"); | |
docHijack("getElementById"); | |
docHijack("createElement"); | |
addListen(doc.all); | |
} | |
} | |
}(window, document, "x-ms-event-listeners"), function () { | |
/** | |
* @param {?} callback | |
* @return {?} | |
*/ | |
function reduceRight(callback) { | |
var value; | |
var k; | |
var i = this; | |
var t = i; | |
/** @type {number} */ | |
var r = t.length >>> 0; | |
if ("function" != typeof callback) { | |
throw new TypeError("Array.prototype.reduceRight callback must be a function"); | |
} | |
if (0 === r && 1 === arguments.length) { | |
throw new TypeError("reduceRight of empty array with no initial value"); | |
} | |
if (k = r - 1, arguments.length >= 2) { | |
value = arguments[1]; | |
} else { | |
for (; ;) { | |
if (k in t) { | |
value = t[k--]; | |
break; | |
} | |
if (--k < 0) { | |
throw new TypeError("reduceRight of empty array with no initial value"); | |
} | |
} | |
} | |
if (0 > k) { | |
return value; | |
} | |
do { | |
if (k in t) { | |
value = callback(value, t[k], k, i); | |
} | |
} while (k--); | |
return value; | |
} | |
if (!Array.prototype.reduceRight) { | |
/** @type {function(?): ?} */ | |
Array.prototype.reduceRight = reduceRight; | |
} | |
}(), function (window) { | |
/** | |
* @param {!HTMLElement} element | |
* @param {string} property | |
* @param {number} e | |
* @return {?} | |
*/ | |
function getComputedStylePixel(element, property, e) { | |
var a; | |
var mat22 = element.document && element.currentStyle[property].match(/([\d\.]+)(%|cm|em|in|mm|pc|pt|)/) || [0, 0, ""]; | |
var b = mat22[1]; | |
var d = mat22[2]; | |
return e = e ? /%|em/.test(d) && element.parentElement ? getComputedStylePixel(element.parentElement, "fontSize", null) : 16 : e, a = "fontSize" == property ? e : /width/i.test(property) ? element.clientWidth : element.clientHeight, "%" == d ? b / 100 * a : "cm" == d ? .3937 * b * 96 : "em" == d ? b * e : "in" == d ? 96 * b : "mm" == d ? .3937 * b * 96 / 10 : "pc" == d ? 12 * b * 96 / 72 : "pt" == d ? 96 * b / 72 : b; | |
} | |
/** | |
* @param {!Object} style | |
* @param {string} property | |
* @return {undefined} | |
*/ | |
function setShortStyleProperty(style, property) { | |
/** @type {string} */ | |
var borderSuffix = "border" == property ? "Width" : ""; | |
/** @type {string} */ | |
var t = property + "Top" + borderSuffix; | |
/** @type {string} */ | |
var r = property + "Right" + borderSuffix; | |
/** @type {string} */ | |
var b = property + "Bottom" + borderSuffix; | |
/** @type {string} */ | |
var l = property + "Left" + borderSuffix; | |
/** @type {string} */ | |
style[property] = (style[t] == style[r] && style[t] == style[b] && style[t] == style[l] ? [style[t]] : style[t] == style[b] && style[l] == style[r] ? [style[t], style[r]] : style[l] == style[r] ? [style[t], style[r], style[b]] : [style[t], style[r], style[b], style[l]]).join(" "); | |
} | |
/** | |
* @param {!HTMLElement} element | |
* @return {undefined} | |
*/ | |
function CSSStyleDeclaration(element) { | |
var property; | |
var style = this; | |
var currentStyle = element.currentStyle; | |
var fontSizeValue = getComputedStylePixel(element, "fontSize"); | |
/** | |
* @param {string} match | |
* @return {?} | |
*/ | |
var unCamelCase = function (match) { | |
return "-" + match.toLowerCase(); | |
}; | |
for (property in currentStyle) { | |
if (Array.prototype.push.call(style, "styleFloat" == property ? "float" : property.replace(/[A-Z]/, unCamelCase)), "width" == property) { | |
/** @type {string} */ | |
style[property] = element.offsetWidth + "px"; | |
} else { | |
if ("height" == property) { | |
/** @type {string} */ | |
style[property] = element.offsetHeight + "px"; | |
} else { | |
if ("styleFloat" == property) { | |
style["float"] = currentStyle[property]; | |
} else { | |
if (/margin.|padding.|border.+W/.test(property) && "auto" != style[property]) { | |
/** @type {string} */ | |
style[property] = Math.round(getComputedStylePixel(element, property, fontSizeValue)) + "px"; | |
} else { | |
if (/^outline/.test(property)) { | |
try { | |
style[property] = currentStyle[property]; | |
} catch (c) { | |
style.outlineColor = currentStyle.color; | |
style.outlineStyle = style.outlineStyle || "none"; | |
style.outlineWidth = style.outlineWidth || "0px"; | |
/** @type {string} */ | |
style.outline = [style.outlineColor, style.outlineWidth, style.outlineStyle].join(" "); | |
} | |
} else { | |
style[property] = currentStyle[property]; | |
} | |
} | |
} | |
} | |
} | |
} | |
setShortStyleProperty(style, "margin"); | |
setShortStyleProperty(style, "padding"); | |
setShortStyleProperty(style, "border"); | |
/** @type {string} */ | |
style.fontSize = Math.round(fontSizeValue) + "px"; | |
} | |
if (!window.getComputedStyle) { | |
CSSStyleDeclaration.prototype = { | |
constructor: CSSStyleDeclaration, | |
getPropertyPriority: function () { | |
if ($assert) { | |
$assert(false, "NotSupportedError: DOM Exception 9"); | |
} | |
}, | |
getPropertyValue: function (elem) { | |
return this[elem.replace(/-\w/g, function (ctcp) { | |
return ctcp[1].toUpperCase(); | |
})]; | |
}, | |
item: function (operator) { | |
return this[operator]; | |
}, | |
removeProperty: function () { | |
if ($assert) { | |
$assert(false, "NoModificationAllowedError: DOM Exception 7"); | |
} | |
}, | |
setProperty: function () { | |
if ($assert) { | |
$assert(false, "NoModificationAllowedError: DOM Exception 7"); | |
} | |
}, | |
getPropertyCSSValue: function () { | |
if ($assert) { | |
$assert(false, "NotSupportedError: DOM Exception 9"); | |
} | |
} | |
}; | |
/** | |
* @param {?} element | |
* @return {?} | |
*/ | |
window.getComputedStyle = function (element) { | |
return new CSSStyleDeclaration(element); | |
}; | |
} | |
}(this), FastClick = function () { | |
/** | |
* @param {!Element} layer | |
* @param {!Object} options | |
* @return {undefined} | |
*/ | |
function FastClick(layer, options) { | |
/** | |
* @param {!Function} topic | |
* @param {!Object} callback | |
* @return {?} | |
*/ | |
function bind(topic, callback) { | |
return function () { | |
return topic.apply(callback, arguments); | |
}; | |
} | |
var oldOnClick; | |
var r; | |
var s; | |
var keys; | |
var obj; | |
var i; | |
var l; | |
if (options = options || {}, this.trackingClick = false, this.trackingClickStart = 0, this.targetElement = null, this.touchStartX = 0, this.touchStartY = 0, this.lastTouchIdentifier = 0, this.touchBoundary = options.touchBoundary || 10, this.layer = layer, this.tapDelay = options.tapDelay || 20, this.tapTimeout = options.tapTimeout || 700, r = this.deviceIsWindowsPhone = navigator.userAgent.indexOf("Windows Phone") >= 0, s = this.deviceIsAndroid = navigator.userAgent.indexOf("Android") > 0 && | |
!r, this.deviceIsIOS = /iP(ad|hone|od)/.test(navigator.userAgent) && !r, this.deviceIsIOS4 = this.deviceIsIOS && /OS 4_\d(_\d)?/.test(navigator.userAgent), this.deviceIsIOSWithBadTarget = this.deviceIsIOS && /OS [6-7]_\d/.test(navigator.userAgent), this.deviceIsBlackBerry10 = navigator.userAgent.indexOf("BB10") > 0, !FastClick.notNeeded(layer)) { | |
/** @type {!Array} */ | |
keys = ["onMouse", "onClick", "onTouchStart", "onTouchMove", "onTouchEnd", "onTouchCancel"]; | |
obj = this; | |
/** @type {number} */ | |
i = keys.length; | |
/** @type {number} */ | |
l = 0; | |
for (; i > l; l++) { | |
obj[keys[l]] = bind(obj[keys[l]], obj); | |
} | |
if (s) { | |
layer.addEventListener("mouseover", this.onMouse, true); | |
layer.addEventListener("mousedown", this.onMouse, true); | |
layer.addEventListener("mouseup", this.onMouse, true); | |
} | |
layer.addEventListener("click", this.onClick, true); | |
layer.addEventListener("touchstart", this.onTouchStart, false); | |
layer.addEventListener("touchmove", this.onTouchMove, false); | |
layer.addEventListener("touchend", this.onTouchEnd, false); | |
layer.addEventListener("touchcancel", this.onTouchCancel, false); | |
if (!Event.prototype.stopImmediatePropagation) { | |
/** | |
* @param {string} type | |
* @param {!Function} callback | |
* @param {boolean} capture | |
* @return {undefined} | |
*/ | |
layer.removeEventListener = function (type, callback, capture) { | |
/** @type {function(this:Node, string, (EventListener|function(!Event): (boolean|undefined)|null), (EventListenerOptions|boolean)=): undefined} */ | |
var rmv = Node.prototype.removeEventListener; | |
if ("click" === type) { | |
rmv.call(layer, type, callback.hijacked || callback, capture); | |
} else { | |
rmv.call(layer, type, callback, capture); | |
} | |
}; | |
/** | |
* @param {string} type | |
* @param {!Function} callback | |
* @param {boolean} capture | |
* @return {undefined} | |
*/ | |
layer.addEventListener = function (type, callback, capture) { | |
/** @type {function(this:Node, string, (EventListener|function(!Event): (boolean|undefined)|null), (AddEventListenerOptions|boolean)=): undefined} */ | |
var adv = Node.prototype.addEventListener; | |
if ("click" === type) { | |
adv.call(layer, type, callback.hijacked || (callback.hijacked = function (event) { | |
if (!event.propagationStopped) { | |
callback(event); | |
} | |
}), capture); | |
} else { | |
adv.call(layer, type, callback, capture); | |
} | |
}; | |
} | |
if ("function" == typeof layer.onclick) { | |
/** @type {!Function} */ | |
oldOnClick = layer.onclick; | |
layer.addEventListener("click", function (event) { | |
oldOnClick(event); | |
}, false); | |
/** @type {null} */ | |
layer.onclick = null; | |
} | |
} | |
} | |
return FastClick.prototype.needsClick = function (target) { | |
var found; | |
var elem; | |
switch (target.nodeName.toLowerCase()) { | |
case "button": | |
case "select": | |
case "textarea": | |
if (target.disabled) { | |
return true; | |
} | |
break; | |
case "input": | |
if (this.deviceIsIOS && "file" === target.type || target.disabled) { | |
return true; | |
} | |
break; | |
case "label": | |
case "iframe": | |
case "video": | |
return true; | |
} | |
/** @type {boolean} */ | |
found = false; | |
/** @type {!EventTarget} */ | |
elem = target; | |
for (; elem && elem !== document && !found;) { | |
/** @type {boolean} */ | |
found = /\bneedsclick\b/.test(elem.className); | |
elem = elem.parentNode; | |
} | |
return found; | |
}, FastClick.prototype.needsFocus = function (target) { | |
if (/\bforcenofocus\b/.test(target.className)) { | |
return false; | |
} | |
switch (target.nodeName.toLowerCase()) { | |
case "textarea": | |
return true; | |
case "select": | |
return !this.deviceIsAndroid; | |
case "input": | |
switch (target.type) { | |
case "button": | |
case "checkbox": | |
case "file": | |
case "image": | |
case "radio": | |
case "submit": | |
return false; | |
}return !target.disabled && !target.readOnly; | |
default: | |
return /\bneedsfocus\b/.test(target.className); | |
} | |
}, FastClick.prototype.sendClick = function (targetElement, event) { | |
var clickEvent; | |
var touch; | |
if (document.activeElement && document.activeElement !== targetElement) { | |
document.activeElement.blur(); | |
} | |
touch = event.changedTouches[0]; | |
/** @type {(Event|null)} */ | |
clickEvent = document.createEvent("MouseEvents"); | |
clickEvent.initMouseEvent(this.determineEventType(targetElement), true, true, window, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null); | |
/** @type {boolean} */ | |
clickEvent.forwardedTouchEvent = true; | |
targetElement.dispatchEvent(clickEvent); | |
}, FastClick.prototype.determineEventType = function (targetElement) { | |
return this.deviceIsAndroid && "select" === targetElement.tagName.toLowerCase() ? "mousedown" : "click"; | |
}, FastClick.prototype.focus = function (targetElement) { | |
var length; | |
if (this.deviceIsIOS && targetElement.setSelectionRange && -1 !== targetElement.type.indexOf("date") && "time" !== targetElement.type && "month" !== targetElement.type) { | |
length = targetElement.value.length; | |
targetElement.setSelectionRange(length, length); | |
} else { | |
targetElement.focus(); | |
} | |
}, FastClick.prototype.updateScrollParent = function (targetElement) { | |
var parentElement; | |
var scrollParent = targetElement.fastClickScrollParent; | |
if (!scrollParent || !scrollParent.contains(targetElement)) { | |
/** @type {!Element} */ | |
parentElement = targetElement; | |
do { | |
if (parentElement.scrollHeight > parentElement.offsetHeight) { | |
scrollParent = parentElement; | |
targetElement.fastClickScrollParent = parentElement; | |
break; | |
} | |
parentElement = parentElement.parentElement; | |
} while (parentElement); | |
} | |
if (scrollParent) { | |
scrollParent.fastClickLastScrollTop = scrollParent.scrollTop; | |
scrollParent.fastClickLastScrollLeft = scrollParent.scrollLeft; | |
} | |
}, FastClick.prototype.getTargetElementFromEventTarget = function (eventTarget) { | |
return eventTarget.nodeType === Node.TEXT_NODE ? eventTarget.parentNode : eventTarget; | |
}, FastClick.prototype.onTouchStart = function (event) { | |
var targetElement; | |
var touch; | |
var selection; | |
if (event.targetTouches.length > 1) { | |
return true; | |
} | |
if (targetElement = this.getTargetElementFromEventTarget(event.target), touch = event.targetTouches[0], this.deviceIsIOS) { | |
if (selection = window.getSelection(), selection.rangeCount && !selection.isCollapsed) { | |
return true; | |
} | |
if (!this.deviceIsIOS4) { | |
if (touch.identifier && touch.identifier === this.lastTouchIdentifier) { | |
return event.preventDefault(), false; | |
} | |
this.lastTouchIdentifier = touch.identifier; | |
this.updateScrollParent(targetElement); | |
} | |
} | |
return this.trackingClick = true, this.trackingClickStart = (new Date).getTime(), this.targetElement = targetElement, this.touchStartX = touch.pageX, this.touchStartY = touch.pageY, this.trackingClickStart - this.lastClickTime < this.tapDelay && event.preventDefault(), true; | |
}, FastClick.prototype.touchHasMoved = function (event) { | |
var touch = event.changedTouches[0]; | |
var boundary = this.touchBoundary; | |
return Math.abs(touch.pageX - this.touchStartX) > boundary || Math.abs(touch.pageY - this.touchStartY) > boundary; | |
}, FastClick.prototype.onTouchMove = function (event) { | |
return this.trackingClick ? ((this.targetElement !== this.getTargetElementFromEventTarget(event.target) || this.touchHasMoved(event)) && (this.trackingClick = false, this.targetElement = null), true) : true; | |
}, FastClick.prototype.findControl = function (labelElement) { | |
return void 0 !== labelElement.control ? labelElement.control : labelElement.htmlFor ? document.getElementById(labelElement.htmlFor) : labelElement.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea"); | |
}, FastClick.prototype.onTouchEnd = function (event) { | |
var forElement; | |
var trackingClickStart; | |
var undefined; | |
var scrollParent; | |
var touch; | |
var currentTime; | |
var targetElement = this.targetElement; | |
if ((this.targetElement !== this.getTargetElementFromEventTarget(event.target) || this.touchHasMoved(event)) && (this.trackingClick = false, this.targetElement = null), !this.trackingClick) { | |
return true; | |
} | |
if (currentTime = (new Date).getTime(), currentTime - this.lastClickTime < this.tapDelay) { | |
return this.cancelNextClick = true, true; | |
} | |
if (currentTime - this.trackingClickStart > this.tapTimeout) { | |
return true; | |
} | |
if (this.cancelNextClick = false, this.lastClickTime = currentTime, trackingClickStart = this.trackingClickStart, this.trackingClick = false, this.trackingClickStart = 0, this.deviceIsIOSWithBadTarget && (touch = event.changedTouches[0], targetElement = document.elementFromPoint(touch.pageX - window.pageXOffset, touch.pageY - window.pageYOffset) || targetElement, targetElement.fastClickScrollParent = this.targetElement.fastClickScrollParent), undefined = targetElement.tagName.toLowerCase(), "label" === | |
undefined) { | |
if (forElement = this.findControl(targetElement)) { | |
if (this.focus(targetElement), this.deviceIsAndroid) { | |
return false; | |
} | |
targetElement = forElement; | |
} | |
} else { | |
if (this.needsFocus(targetElement)) { | |
return currentTime - trackingClickStart > 100 || this.deviceIsIOS && window.top !== window && "input" === undefined ? (this.targetElement = null, false) : (this.focus(targetElement), this.sendClick(targetElement, event), this.deviceIsIOS && "select" === undefined || (this.targetElement = null, event.preventDefault()), false); | |
} | |
} | |
return !this.deviceIsIOS || this.deviceIsIOS4 || (scrollParent = targetElement.fastClickScrollParent, !scrollParent || scrollParent.fastClickLastScrollTop === scrollParent.scrollTop && scrollParent.fastClickLastScrollLeft === scrollParent.scrollLeft) ? (this.needsClick(targetElement) || (event.preventDefault(), this.sendClick(targetElement, event)), false) : true; | |
}, FastClick.prototype.onTouchCancel = function () { | |
/** @type {boolean} */ | |
this.trackingClick = false; | |
/** @type {null} */ | |
this.targetElement = null; | |
}, FastClick.prototype.onMouse = function (event) { | |
return this.targetElement ? event.forwardedTouchEvent ? true : event.cancelable && (!this.needsClick(this.targetElement) || this.cancelNextClick) ? (event.stopImmediatePropagation ? event.stopImmediatePropagation() : event.propagationStopped = true, event.stopPropagation(), event.preventDefault(), false) : true : true; | |
}, FastClick.prototype.onClick = function (event) { | |
var permitted; | |
return this.trackingClick ? (this.targetElement = null, this.trackingClick = false, true) : "submit" === event.target.type && 0 === event.detail ? true : (permitted = this.onMouse(event), permitted || (this.targetElement = null), permitted); | |
}, FastClick.prototype.destroy = function () { | |
var layer = this.layer; | |
if (this.deviceIsAndroid) { | |
layer.removeEventListener("mouseover", this.onMouse, true); | |
layer.removeEventListener("mousedown", this.onMouse, true); | |
layer.removeEventListener("mouseup", this.onMouse, true); | |
} | |
layer.removeEventListener("click", this.onClick, true); | |
layer.removeEventListener("touchstart", this.onTouchStart, false); | |
layer.removeEventListener("touchmove", this.onTouchMove, false); | |
layer.removeEventListener("touchend", this.onTouchEnd, false); | |
layer.removeEventListener("touchcancel", this.onTouchCancel, false); | |
}, FastClick.notNeeded = function (layer) { | |
var n; | |
var t; | |
var i; | |
var o; | |
if ("undefined" == typeof window.ontouchstart) { | |
return true; | |
} | |
if (t = +(/Chrome\/([0-9]+)/.exec(navigator.userAgent) || [, 0])[1]) { | |
if (!this.deviceIsAndroid) { | |
return true; | |
} | |
if (n = document.querySelector("meta[name=viewport]")) { | |
if (-1 !== n.content.indexOf("user-scalable=no")) { | |
return true; | |
} | |
if (t > 31 && document.documentElement.scrollWidth <= window.outerWidth) { | |
return true; | |
} | |
} | |
} | |
if (this.deviceIsBlackBerry10 && (i = navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/), i[1] >= 10 && i[2] >= 3 && (n = document.querySelector("meta[name=viewport]")))) { | |
if (-1 !== n.content.indexOf("user-scalable=no")) { | |
return true; | |
} | |
if (document.documentElement.scrollWidth <= window.outerWidth) { | |
return true; | |
} | |
} | |
return "none" === layer.style.msTouchAction || "manipulation" === layer.style.touchAction ? true : (o = +(/Firefox\/([0-9]+)/.exec(navigator.userAgent) || [, 0])[1], o >= 27 && (n = document.querySelector("meta[name=viewport]"), n && (-1 !== n.content.indexOf("user-scalable=no") || document.documentElement.scrollWidth <= window.outerWidth)) ? true : "none" === layer.style.touchAction || "manipulation" === layer.style.touchAction); | |
}, FastClick.attach = function (layer, options) { | |
return new FastClick(layer, options); | |
}, FastClick; | |
}(), window.FastClick = FastClick, LongClick.prototype.onTouchStart = function (event) { | |
var targetElement; | |
var touch; | |
if (event.targetTouches && 1 === event.targetTouches.length) { | |
touch = event.targetTouches[0]; | |
} else { | |
if (!event.clientX || !event.clientY) { | |
return true; | |
} | |
/** @type {!Object} */ | |
touch = event; | |
} | |
return targetElement = event.target, this.trackingClick = true, this.trackingClickStart = event.timeStamp, this.targetElement = targetElement, this.touchStartX = touch.clientX, this.touchStartY = touch.clientY, this.timer = window.setTimeout(this.handler, this.time), true; | |
}, LongClick.prototype.touchHasMoved = function (event) { | |
var touch; | |
var boundary = this.touchBoundary; | |
return touch = event.changedTouches ? event.changedTouches[0] : event, Math.abs(touch.clientX - this.touchStartX) > boundary || Math.abs(touch.clientY - this.touchStartY) > boundary; | |
}, LongClick.prototype.onTouchMove = function (event) { | |
return this.trackingClick ? ((this.targetElement !== event.target || this.touchHasMoved(event)) && this.reset(), true) : true; | |
}, LongClick.prototype.onTouchEnd = function (event) { | |
return this.trackingClick ? event.timeStamp - this.trackingClickStart < this.time ? (this.reset(), true) : false : true; | |
}, LongClick.prototype.reset = function () { | |
if (this.timer) { | |
window.clearTimeout(this.timer); | |
} | |
/** @type {boolean} */ | |
this.trackingClick = false; | |
/** @type {null} */ | |
this.trackingClickStart = null; | |
/** @type {null} */ | |
this.targetElement = null; | |
}, LongClick.prototype.onTouchCancel = function () { | |
this.reset(); | |
}, LongClick.prototype.destroy = function () { | |
var layer = this.layer; | |
layer.removeEventListener(this.startEventName, this.onTouchStart, false); | |
layer.removeEventListener(this.moveEventName, this.onTouchMove, false); | |
layer.removeEventListener(this.endEventName, this.onTouchEnd, false); | |
layer.removeEventListener(this.cancelEventName, this.onTouchCancel, false); | |
}, LongClick.attach = function (i, t, obj) { | |
return new LongClick(i, t, obj); | |
}, function (state) { | |
var size = function () { | |
/** | |
* @param {string} position | |
* @param {?} coords | |
* @param {?} text | |
* @param {string} languageCode | |
* @param {?} model | |
* @param {?} value | |
* @param {(RegExp|string)} re | |
* @return {undefined} | |
*/ | |
function success(position, coords, text, languageCode, model, value, re) { | |
/** @type {string} */ | |
this.languageId = position; | |
this.cultureCode = coords; | |
this.cultureCode2 = text; | |
/** @type {string} */ | |
this.languageCode = languageCode; | |
this.supportsEmbeddedFonts = model; | |
this.isAsianRegion = value; | |
/** @type {(RegExp|string)} */ | |
this.allowCapitalisation = re; | |
} | |
return success; | |
}(); | |
state.LanguageProfile = size; | |
}(ns_gen5_ml || (ns_gen5_ml = {})), function (Ext) { | |
var Viewport = Ext.LanguageProfile; | |
var Boot = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function generator() { | |
} | |
return generator.SelectLanguageProfile = function (ruleName) { | |
if (0 == ruleName) { | |
/** @type {number} */ | |
ruleName = 1; | |
} | |
generator.SelectedProfile = generator.LanguageProfiles[ruleName]; | |
}, generator.getRegionIsAsian = function () { | |
return generator.SelectedProfile.isAsianRegion; | |
}, generator.getLanguageId = function () { | |
return generator.SelectedProfile.languageId; | |
}, generator.allowCapitalisation = function () { | |
return generator.SelectedProfile.allowCapitalisation; | |
}, generator.getLanguageCode = function () { | |
return this.SelectedProfile.languageCode; | |
}, generator.getCultureCode = function () { | |
return this.SelectedProfile.cultureCode; | |
}, generator.getCultureCode2 = function () { | |
return this.SelectedProfile.cultureCode2; | |
}, generator.init = function () { | |
generator.LanguageProfiles = { | |
1: new Viewport(1, "en", "en", "en-GB", true, false, true), | |
2: new Viewport(2, "zht", "zh-cht", "ch", false, true, false), | |
3: new Viewport(3, "es", "es", "es", true, false, true), | |
4: new Viewport(4, "fr", "fr", "fr", true, false, true), | |
5: new Viewport(5, "de", "de", "de", true, false, true), | |
6: new Viewport(6, "it", "it", "it", true, false, true), | |
7: new Viewport(7, "da", "da", "da", true, false, true), | |
8: new Viewport(8, "sv", "sv", "sv", true, false, true), | |
9: new Viewport(9, "nn", "nn", "no", true, false, true), | |
10: new Viewport(10, "zh", "zh-chs", "zh-cn", false, true, false), | |
19: new Viewport(19, "bg", "bg", "bg", true, false, true), | |
20: new Viewport(20, "el", "el", "el", true, false, false), | |
21: new Viewport(21, "pl", "pl", "pl", true, false, true), | |
22: new Viewport(22, "pt", "pt", "pt", true, false, true), | |
23: new Viewport(23, "ro", "ro", "ro", true, false, true), | |
24: new Viewport(24, "cs", "cs", "cs", true, false, true), | |
25: new Viewport(25, "hu", "hu", "hu", true, false, true), | |
26: new Viewport(26, "sk", "sk", "sk", true, false, true), | |
28: new Viewport(28, "nl", "nl", "nl-nl", true, false, true), | |
29: new Viewport(29, "et", "et", "et-EE", true, false, true), | |
30: new Viewport(30, "au", "au", "en-AU", true, false, true), | |
31: new Viewport(31, "ru", "ru", "ru", true, false, true), | |
32: new Viewport(32, "us", "us", "en-US", true, false, true), | |
33: new Viewport(33, "br", "br", "br", true, false, true) | |
}; | |
}, generator; | |
}(); | |
Ext.LanguageSettings = Boot; | |
Boot.init(); | |
}(ns_gen5_ml || (ns_gen5_ml = {})), function (browserify) { | |
var crdt = browserify.LanguageSettings; | |
var fileSet = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function plugin() { | |
} | |
return plugin.GetMonthName = function (i) { | |
return plugin._mylanguage || (plugin._mylanguage = plugin.ALL_MONTHS[crdt.getLanguageId()]), crdt.getRegionIsAsian() ? (i + 1 + plugin.CMC).toString() : plugin._mylanguage[i].toString(); | |
}, plugin.CMC = "\u6708", plugin.CDC = "\u65e5", plugin.ALL_MONTHS = { | |
1: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], | |
2: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"], | |
3: ["Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"], | |
5: ["Januar ", "Februar ", "M\u00e4rz", "April ", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"], | |
6: ["Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre"], | |
7: ["Januar", "Februar", "Marts", "April", "Maj", "Juni", "Juli", "August", "September", "Oktober ", "November", "December"], | |
8: ["Januari", "Februari", "Mars", "April", "Maj", "Juni", "Juli", "Augusti", "September", "Oktober", "November", "December"], | |
9: ["Januar", "Februar", "Mars", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Desember"], | |
10: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"], | |
19: ["\u042f\u043d\u0443\u0430\u0440\u0438", "\u0424\u0435\u0432\u0440\u0443\u0430\u0440\u0438", "\u041c\u0430\u0440\u0442", "\u0410\u043f\u0440\u0438\u043b", "\u041c\u0430\u0439", "\u042e\u043d\u0438", "\u042e\u043b\u0438", "\u0410\u0432\u0433\u0443\u0441\u0442", "\u0421\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438", "\u041e\u043a\u0442\u043e\u043c\u0432\u0440\u0438", "\u041d\u043e\u0435\u043c\u0432\u0440\u0438", "\u0414\u0435\u043a\u0435\u043c\u0432\u0440\u0438"], | |
20: ["\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5", "\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5", "\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5", "\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5", "\u039c\u03b1\u03ca\u03bf\u03c5", "\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5", "\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5", "\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5", "\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5", "\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5", | |
"\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5", "\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5"], | |
21: ["stycznia", "lutego", "marca", "kwietnia", "maja", "czerwca", "lipca", "sierpnia", "wrze\u015bnia", "pa\u017adziernika", "listopada", "grudnia"], | |
22: ["Janeiro", "Fevereiro", "Mar\u00e7o", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"], | |
23: ["Ian", "Feb", "Mar", "Apr", "Mai", "Iun", "Iul", "Aug", "Sep", "Oct", "Nov", "Dec"], | |
24: ["ledna", "\u00fanora", "b\u0159ezna", "dubna", "kv\u011btna", "\u010dervna", "\u010dervence", "srpna", "z\u00e1\u0159\u00ed", "\u0159\u00edjna", "listopadu", "prosince"], | |
25: ["Janu\u00e1r", "Febru\u00e1r", "M\u00e1rcius", "\u00c1prilis", "M\u00e1jus", "J\u00fanius", "J\u00falius", "Augusztus", "Szeptember", "Okt\u00f3ber", "November", "December"], | |
26: ["janu\u00e1ra", "febru\u00e1ra", "marca", "apr\u00edla", "m\u00e1ja", "j\u00fana", "j\u00fala", "augusta", "septembra", "okt\u00f3bra", "novembra", "decembra"], | |
28: ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december"], | |
29: ["jaanuar", "veebruar", "m\u00e4rts", "aprill", "mai", "juuni", "juuli", "august", "september", "oktoober", "november", "detsember"], | |
30: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], | |
31: ["\u042f\u043d\u0432\u0430\u0440\u044c", "\u0424\u0435\u0432\u0440\u0430\u043b\u044c", "\u041c\u0430\u0440\u0442", "\u0410\u043f\u0440\u0435\u043b\u044c", "\u041c\u0430\u0439", "\u0418\u044e\u043d\u044c", "\u0418\u044e\u043b\u044c", "\u0410\u0432\u0433\u0443\u0441\u0442", "\u0421\u0435\u043d\u0442\u044f\u0431\u0440\u044c", "\u041e\u043a\u0442\u044f\u0431\u0440\u044c", "\u041d\u043e\u044f\u0431\u0440\u044c", "\u0414\u0435\u043a\u0430\u0431\u0440\u044c"], | |
32: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], | |
33: ["Janeiro", "Fevereiro", "Mar\u00e7o", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"] | |
}, plugin; | |
}(); | |
browserify.LongMonthNames = fileSet; | |
}(ns_gen5_ml || (ns_gen5_ml = {})), function (browserify) { | |
var crdt = browserify.LanguageSettings; | |
var fileSet = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function CalendarDateField() { | |
} | |
return CalendarDateField.GetDay = function (ballNumber) { | |
return CalendarDateField._mylanguage || (CalendarDateField._mylanguage = CalendarDateField.ALL_DAYS[crdt.getLanguageId()]), CalendarDateField._mylanguage[ballNumber].toString(); | |
}, CalendarDateField.ALL_DAYS = { | |
1: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], | |
2: ["\u661f\u671f\u65e5", "\u661f\u671f\u4e00", "\u661f\u671f\u4e8c", "\u661f\u671f\u4e09", "\u661f\u671f\u56db", "\u661f\u671f\u4e94", "\u661f\u671f\u516d"], | |
3: ["Domingo", "Lunes", "Martes", "Mi\u00e9rcoles", "Jueves", "Viernes", "S\u00e1bado"], | |
5: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], | |
6: ["Domenica", "Luned\u00ec", "Marted\u00ec", "Mercoled\u00ec", "Gioved\u00ec", "Venerd\u00ec", "Sabato"], | |
7: ["S\u00f8ndag", "Mandag", "Tirsdag", "Onsdag", "Torsdag", "Fredag", "L\u00f8rdag"], | |
8: ["S\u00f6ndag", "Mandag", "Tisdag", "Onsdag", "Torsdag", "Fredag", "L\u00f6rdag"], | |
9: ["S\u00f8ndag", "Mandag", "Tirsdag", "Onsdag", "Torsdag", "Fredag", "L\u00f8rdag"], | |
10: ["\u661f\u671f\u5929", "\u661f\u671f\u4e00", "\u661f\u671f\u4e8c", "\u661f\u671f\u4e09", "\u661f\u671f\u56db", "\u661f\u671f\u4e94", "\u661f\u671f\u516d"], | |
19: ["\u041d\u0435\u0434\u0435\u043b\u044f", "\u041f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a", "\u0412\u0442\u043e\u0440\u043d\u0438\u043a", "\u0421\u0440\u044f\u0434\u0430", "\u0427\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a", "\u041f\u0435\u0442\u044a\u043a", "\u0421\u044a\u0431\u043e\u0442\u0430"], | |
20: ["\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae", "\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1", "\u03a4\u03c1\u03af\u03c4\u03b7", "\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7", "\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7", "\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae", "\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf"], | |
21: ["Niedziela", "Poniedzia\u0142ek", "Wtorek", "\u015aroda", "Czwartek", "Pi\u0105tek", "Sobota"], | |
22: ["Domingo", "Segunda-Feira", "Ter\u00e7a-Feira", "Quarta-Feira", "Quinta-Feira", "Sexta-Feira", "S\u00e1bado"], | |
23: ["Duminica", "Luni", "Marti", "Miercuri", "Joi", "Vineri", "Sambata"], | |
24: ["Ned\u011ble", "Pond\u011bl\u00ed", "\u00dater\u00fd", "St\u0159eda", "\u010ctvrtek", "P\u00e1tek", "Sobota"], | |
25: ["Vas\u00e1rnap", "H\u00e9tf\u0151", "Kedd", "Szerda", " Cs\u00fct\u00f6rt\u00f6k", "P\u00e9ntek", "Szombat"], | |
26: ["Nede\u013ea", "Pondelok", "Utorok", "Streda", "\u0160tvrtok", "Piatok", "Sobota"], | |
28: ["Zondag", "Maandag", "Dinsdag", "Woensdag", "Donderdag", "Vrijdag", "Zaterdag"], | |
29: ["p\u00fchap\u00e4ev", "esmasp\u00e4ev", "teisip\u00e4ev", "kolmap\u00e4ev", "neljap\u00e4ev", "reede", "laup\u00e4ev"], | |
30: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], | |
31: ["\u0412\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435", "\u041f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a", "\u0412\u0442\u043e\u0440\u043d\u0438\u043a", "\u0421\u0440\u0435\u0434\u0430", "\u0427\u0435\u0442\u0432\u0435\u0440\u0433", "\u041f\u044f\u0442\u043d\u0438\u0446\u0430", "\u0421\u0443\u0431\u0431\u043e\u0442\u0430"], | |
32: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], | |
33: ["Domingo", "Segunda-Feira", "Ter\u00e7a-Feira", "Quarta-Feira", "Quinta-Feira", "Sexta-Feira", "S\u00e1bado"] | |
}, CalendarDateField; | |
}(); | |
browserify.LongDayNames = fileSet; | |
}(ns_gen5_ml || (ns_gen5_ml = {})), function (browserify) { | |
var crdt = browserify.LanguageSettings; | |
var fileSet = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function Types() { | |
} | |
return Types.GetMonthName = function (i) { | |
return Types._mylanguage || (Types._mylanguage = Types.ALL_MONTHS[crdt.getLanguageId()]), crdt.getRegionIsAsian() ? String(i + 1) + this.CMC : Types._mylanguage[i]; | |
}, Types.CYC = "\u5e74", Types.CMC = "\u6708", Types.CDC = "\u65e5", Types.ALL_MONTHS = { | |
1: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], | |
2: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], | |
3: ["Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic"], | |
4: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], | |
5: ["Jan", "Feb", "M\u00e4r", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"], | |
6: ["Gen", "Feb", "Mar", "Apr", "Mag", "Giu", "Lug", "Ago", "Set", "Ott", "Nov", "Dic"], | |
7: ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec"], | |
8: ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec"], | |
9: ["jan", "feb", "mar", "apr", "mai", "jun", "jul", "aug", "sep", "okt", "nov", "des"], | |
10: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], | |
14: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], | |
19: ["\u044f\u043d\u0443", "\u0444\u0435\u0432", "\u043c\u0430\u0440", "\u0430\u043f\u0440", "\u043c\u0430\u0439", "\u044e\u043d\u0438", "\u044e\u043b\u0438", "\u0430\u0432\u0433", "\u0441\u0435\u043f", "\u043e\u043a\u0442", "\u043d\u043e\u0435", "\u0434\u0435\u043a"], | |
20: ["\u0399\u03b1\u03bd", "\u03a6\u03b5\u03b2", "\u039c\u03b1\u03c1", "\u0391\u03c0\u03c1", "\u039c\u03b1\u0390\u03bf\u03c5", "\u0399\u03bf\u03c5\u03bd", "\u0399\u03bf\u03c5\u03bb", "\u0391\u03c5\u03b3", "\u03a3\u03b5\u03c0", "\u039f\u03ba\u03c4", "\u039d\u03bf\u03b5", "\u0394\u03b5\u03ba"], | |
21: ["Sty", "Lut", "Mar", "Kwi", "Maj", "Cze", "Lip", "Sie", "Wrz", "Pa\u017a", "Lis", "Gru"], | |
22: ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Sep", "Out", "Nov", "Dez"], | |
23: ["Ian", "Feb", "Mar", "Apr", "Mai", "Iun", "Iul", "Aug", "Sep", "Oct", "Nov", "Dec"], | |
24: ["led", "\u00fano", "b\u0159e", "dub", "kv\u011b", "\u010der", "\u010dvc", "srp", "z\u00e1\u0159", "\u0159\u00edj", "lis", "pro"], | |
25: ["Jan", "Feb", "M\u00e1r", "\u00c1pr", "M\u00e1j", "J\u00fan", "J\u00fal", "Aug", "Szep", "Okt", "Nov", "Dec"], | |
26: ["jan", "feb", "mar", "apr", "m\u00e1j", "j\u00fan", "j\u00fal", "aug", "sep", "okt", "nov", "dec"], | |
28: ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec"], | |
29: ["jan", "veb", "m\u00e4r", "apr", "mai", "jun", "jul", "aug", "sep", "okt", "nov", "det"], | |
30: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], | |
31: ["\u042f\u043d\u0432", "\u0424\u0435\u0432", "\u041c\u0430\u0440", "\u0410\u043f\u0440", "\u041c\u0430\u0439", "\u0418\u044e\u043d", "\u0418\u044e\u043b", "\u0410\u0432\u0433", "\u0421\u0435\u043d", "\u041e\u043a\u0442", "\u041d\u0431\u0440", "\u0414\u0435\u043a"], | |
32: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], | |
33: ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Sep", "Out", "Nov", "Dez"] | |
}, Types; | |
}(); | |
browserify.ShortMonthNames = fileSet; | |
}(ns_gen5_ml || (ns_gen5_ml = {})), function (browserify) { | |
var crdt = browserify.LanguageSettings; | |
var fileSet = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function CalendarDateField() { | |
} | |
return CalendarDateField.GetDay = function (ballNumber) { | |
return CalendarDateField._mylanguage || (CalendarDateField._mylanguage = CalendarDateField.ALL_DAYS[crdt.getLanguageId()]), CalendarDateField._mylanguage[ballNumber]; | |
}, CalendarDateField.ALL_DAYS = { | |
1: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], | |
2: ["\u661f\u671f\u65e5", "\u661f\u671f\u4e00", "\u661f\u671f\u4e8c", "\u661f\u671f\u4e09", "\u661f\u671f\u56db", "\u661f\u671f\u4e94", "\u661f\u671f\u516d"], | |
3: ["Dom", "Lun", "Mar", "Mi\u00e9", "Jue", "Vie", "S\u00e1b"], | |
5: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], | |
6: ["Dom", "Lun", "Mar", "Mer", "Giov", "Ven", "Sab"], | |
7: ["S\u00f8n", "Man", "Tir", "Ons", "Tor", "Fre", " L\u00f8r"], | |
8: ["S\u00f6n", "M\u00e5n", "Tis", "Ons", "Tor", "Fre", "L\u00f6r"], | |
9: ["S\u00f8n", "Man", "Tirs", "Ons", "Tors", "Fre", "L\u00f8r"], | |
10: ["\u661f\u671f\u65e5", "\u661f\u671f\u4e00", "\u661f\u671f\u4e8c", "\u661f\u671f\u4e09", "\u661f\u671f\u56db", "\u661f\u671f\u4e94", "\u661f\u671f\u516d"], | |
19: ["\u041d\u0435\u0434", "\u041f\u043e\u043d", "\u0412\u0442", "\u0421\u0440", "\u0427\u0435\u0442", "\u041f\u0435\u0442", "\u0421\u044a\u0431"], | |
20: ["\u039a\u03c5\u03c1", "\u0394\u03b5\u03c5", "\u03a4\u03c1\u03b9", "\u03a4\u03b5\u03c4", "\u03a0\u03b5\u03bc", "\u03a0\u03b1\u03c1", "\u03a3\u03b1\u03b2"], | |
21: ["N", "Pn", "Wt", "\u015ar", "Cz", "Pt", "So"], | |
22: ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sab"], | |
23: ["D", "L", "Ma", "Mi", "J", "V", "S"], | |
24: ["Ne", "Po", "\u00dat", "St", "\u010ct", "P\u00e1", "So"], | |
25: ["Vas", "H\u00e9t", "Kedd", "Sze", " Cs\u00fct", "P\u00e9n", "Szo"], | |
26: ["Ned", "Pon", "Ut", "Str", "\u0160tv", "Pia", "Sob"], | |
28: ["zo", "ma", "di", "wo", "do", "vr", "za"], | |
29: ["P", "E", "T", "K", "N", "R", "L"], | |
30: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], | |
31: ["\u0412\u0441", "\u041f\u043d", "\u0412\u0442", "\u0421\u0440", "\u0427\u0442", "\u041f\u0442", "\u0421\u0431"], | |
32: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], | |
33: ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sab"] | |
}, CalendarDateField; | |
}(); | |
browserify.ShortDayNames = fileSet; | |
}(ns_gen5_ml || (ns_gen5_ml = {})), function (that) { | |
var malakh = that.LanguageSettings; | |
var options = that.ShortMonthNames; | |
var Types = that.LongMonthNames; | |
var CircularList = that.ShortDayNames; | |
var rZone = that.LongDayNames; | |
var floourl = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function options() { | |
} | |
return options.FormatDate = function (parenthashbuf, date, y, div) { | |
var ret; | |
var minute; | |
switch (0 != div && (minute = date.getMinutes(), minute = minute + div, date.setMinutes(minute)), parenthashbuf) { | |
case this.BOOK_CLOSE: | |
ret = this.bookClose(date, y); | |
break; | |
case this.DAY_DATE_LONGMONTH: | |
ret = this.dayDateLongMonth(date, y); | |
break; | |
case this.DAY_SUFFIX_DATE_MONTH_TIME: | |
ret = this.daySuffixDateMonthTime(date, y); | |
break; | |
case this.DAY_DATE_MONTH_YEAR_TIME: | |
ret = this.dayDateMonthYearTime(date, y); | |
break; | |
case this.DAY_SUFFIX_TIME: | |
ret = this.daySuffixTime(date, y); | |
break; | |
case this.HH_MM_SS: | |
ret = this.hhmmss(date); | |
break; | |
case this.HH_MM: | |
ret = this.hhmm(date); | |
break; | |
case this.DAY_DATE: | |
ret = this.dayDate(date, y); | |
break; | |
case this.DAY_DATE_LONG: | |
ret = this.dayDateLong(date, y); | |
break; | |
case this.DAY_ONLY: | |
ret = this.day(date); | |
break; | |
case this.DATE_MONTH_YEAR: | |
ret = this.dateMonthYear(date); | |
break; | |
case this.DAY_DATE_MONTH_YEAR_TIME_SECONDS: | |
ret = this.dayDateMonthYearTimeSeconds(date, y); | |
break; | |
case this.DAY_DATE_MONTH_TIME: | |
ret = this.dayDateMonthTime(date); | |
break; | |
case this.DATE_MONTHNAME_YEAR: | |
ret = this.dateMonthNameYear(date, y); | |
} | |
return ret; | |
}, options.FormatStringToDate = function (clusterShardData) { | |
var localStorage = clusterShardData.split(" "); | |
var n = localStorage[0]; | |
var out_stats = n.split("/"); | |
var prevVersion = localStorage[1]; | |
var sArrDayId = prevVersion.split(":"); | |
/** @type {!Date} */ | |
var date = new Date; | |
return date.setDate(parseInt(out_stats[0])), date.setMonth(parseInt(out_stats[1]) - 1), date.setFullYear(parseInt(out_stats[2])), date.setHours(parseInt(sArrDayId[0])), date.setMinutes(parseInt(sArrDayId[1])), date.setSeconds(parseInt(sArrDayId[2])), date; | |
}, options.bookClose = function (dt, x) { | |
var offset; | |
var r = dt.getDate().toString(); | |
var c = options.GetMonthName(dt.getMonth()); | |
var expRecords = dt.getMinutes().toString(); | |
var loadedAddons = dt.getHours().toString(); | |
var left = (loadedAddons.length > 1 ? loadedAddons : "0" + loadedAddons) + this.TIME_SEPERATOR + (expRecords.length > 1 ? expRecords : "0" + expRecords); | |
return malakh.getRegionIsAsian() ? (r = r + options.CDC, offset = c + r + " " + left) : offset = this.requiresAmericanFormatting(x, malakh.getLanguageId()) ? c + " " + r + " " + left : 25 == malakh.getLanguageId() ? c + " " + r + " " + left : r + " " + c + " " + left, offset; | |
}, options.dayDateLong = function (d, aesthetic) { | |
var ballNumber = d.getDay(); | |
return CircularList.GetDay(ballNumber) + " " + this.dayDate(d, aesthetic); | |
}, options.dateMonthNameYear = function (d, aesthetic) { | |
return this.dayDate(d, aesthetic) + " " + d.getFullYear().toString().substr(-2); | |
}, options.dayDate = function (d, aesthetic) { | |
var str; | |
var default_favicon = d.getDate(); | |
var id = 10 > default_favicon ? "0" + default_favicon.toString() : default_favicon.toString(); | |
var a = options.GetMonthName(d.getMonth()); | |
return malakh.getRegionIsAsian() ? (id = id + options.CDC, str = a + id) : str = this.requiresAmericanFormatting(aesthetic, malakh.getLanguageId()) ? a + " " + id : 25 == malakh.getLanguageId() ? a + " " + id : id + " " + a, str; | |
}, options.day = function (date) { | |
var ballNumber = date.getDay(); | |
return rZone.GetDay(ballNumber); | |
}, options.requiresAmericanFormatting = function (type, value) { | |
return "11" == type && 1 == value; | |
}, options.hhmmss = function (dt) { | |
var url = dt.getHours().toString(); | |
var s = dt.getMinutes().toString(); | |
var ashex = dt.getSeconds().toString(); | |
return url.length < 2 && (url = "0" + url), s.length < 2 && (s = "0" + s), ashex.length < 2 && (ashex = "0" + ashex), url + ":" + s + ":" + ashex; | |
}, options.hhmm = function (date) { | |
var url = date.getHours().toString(); | |
var s = date.getMinutes().toString(); | |
return url.length < 2 && (url = "0" + url), s.length < 2 && (s = "0" + s), url + ":" + s; | |
}, options.dayDateLongMonth = function (d, label) { | |
var name; | |
var i = d.toString(); | |
var line = Types.GetMonthName(d.getMonth()).toString(); | |
var index = this.GetSuffix(d.getDay()); | |
var indent = malakh.getLanguageId(); | |
switch (indent) { | |
case 1: | |
case 6: | |
case 9: | |
case 19: | |
case 20: | |
case 21: | |
case 24: | |
case 26: | |
case 28: | |
case 31: | |
case 32: | |
/** @type {string} */ | |
name = this.requiresAmericanFormatting(label, indent) ? line + " " + i + index : i + index + " " + line; | |
break; | |
case 2: | |
case 10: | |
i = i + Types.CDC; | |
/** @type {string} */ | |
name = line + " " + i; | |
break; | |
case 3: | |
/** @type {string} */ | |
name = i + index + " de " + line; | |
break; | |
case 5: | |
/** @type {string} */ | |
name = ", den " + i + index + " " + line; | |
break; | |
case 7: | |
case 8: | |
/** @type {string} */ | |
name = "den " + i + index + " " + line; | |
break; | |
case 23: | |
/** @type {string} */ | |
name = ", " + i + index + " " + line; | |
break; | |
case 25: | |
/** @type {string} */ | |
name = line + " " + i + index; | |
break; | |
default: | |
/** @type {string} */ | |
name = i + " " + line; | |
} | |
return name; | |
}, options.dayDateMonthYearTime = function (dt, action) { | |
var builtNumber; | |
var b; | |
var a = options.GetMonthName(dt.getMonth()); | |
var longNameA = CircularList.GetDay(dt.getDay()); | |
var c = dt.getMinutes().toString(); | |
var u = malakh.getLanguageId(); | |
switch (b = 0 == dt.getHours() ? "00" : dt.getHours() < 10 ? "0" + dt.getHours().toString() : dt.getHours().toString(), c = 0 == dt.getMinutes() ? "00" : dt.getMinutes() < 10 ? "0" + dt.getMinutes().toString() : dt.getMinutes().toString(), u) { | |
case 2: | |
case 10: | |
/** @type {string} */ | |
builtNumber = longNameA + " " + dt.getFullYear() + options.CYC + a + dt.getDate() + options.CDC + ", " + b + ":" + c; | |
break; | |
case 23: | |
/** @type {string} */ | |
builtNumber = longNameA + ", " + dt.getDate() + " " + a + " " + dt.getFullYear() + ", " + b + ":" + c; | |
break; | |
case 25: | |
/** @type {string} */ | |
builtNumber = longNameA + " " + dt.getFullYear() + " " + a + " " + dt.getDate() + " " + b + ":" + c; | |
break; | |
default: | |
/** @type {string} */ | |
builtNumber = this.requiresAmericanFormatting(action, malakh.getLanguageId()) ? longNameA + " " + a + " " + dt.getDate() + " " + dt.getFullYear() + ", " + b + ":" + c : longNameA + " " + dt.getDate() + " " + a + " " + dt.getFullYear() + ", " + b + ":" + c; | |
} | |
return builtNumber; | |
}, options.daySuffixDateMonthTime = function (dt, action) { | |
var results; | |
var id = options.GetMonthName(dt.getMonth()); | |
var DATASETS_BASE = CircularList.GetDay(dt.getDay()); | |
var default_favicon = dt.getMinutes(); | |
var line = default_favicon.toString(); | |
var i = dt.getDate(); | |
var codeB = this.GetSuffix(i); | |
/** @type {number} */ | |
var indent = Number(Locator.user.languageId); | |
var gasEstimates = dt.getHours(); | |
var p = ("00" + gasEstimates.toString()).slice(-2); | |
switch (line = ("00" + default_favicon.toString()).slice(-2), indent) { | |
case 2: | |
case 10: | |
/** @type {string} */ | |
results = DATASETS_BASE + " " + id + i + codeB + ", " + p + ":" + line; | |
break; | |
case 23: | |
/** @type {string} */ | |
results = DATASETS_BASE + ", " + i + codeB + " " + id + ", " + p + ":" + line; | |
break; | |
case 25: | |
/** @type {string} */ | |
results = DATASETS_BASE + " " + id + " " + i + codeB + " " + p + ":" + line; | |
break; | |
case 3: | |
case 6: | |
case 28: | |
/** @type {string} */ | |
results = DATASETS_BASE + " " + i + " " + id + " " + p + ":" + line; | |
break; | |
default: | |
/** @type {string} */ | |
results = this.requiresAmericanFormatting(action, indent) ? DATASETS_BASE + " " + id + " " + i + codeB + " " + p + ":" + line : DATASETS_BASE + " " + i + codeB + " " + id + " " + p + ":" + line; | |
} | |
return results; | |
}, options.daySuffixTime = function (newDate, options) { | |
var i; | |
var strToHash = CircularList.GetDay(newDate.getDay()); | |
var default_favicon = newDate.getMinutes(); | |
var s = default_favicon.toString(); | |
var gasEstimates = newDate.getHours(); | |
var c = ("00" + gasEstimates.toString()).slice(-2); | |
return s = ("00" + default_favicon.toString()).slice(-2), i = strToHash + " " + c + ":" + s; | |
}, options.dayDateMonthYearTimeSeconds = function (date, y) { | |
var out = this.dayDateMonthYearTime(date, y); | |
var code = date.getSeconds().toString(); | |
return code.length < 2 && (code = "0" + code), out = out + (":" + code); | |
}, options.dateMonthYear = function (dt) { | |
var strIdxStart = (dt.getDay() < 10 ? "0" + dt.getDay() : dt.getDay()).toString(); | |
/** @type {string} */ | |
var n = ((dt.getMonth() < 9 ? "0" : "") + (dt.getMonth() + 1)).toString(); | |
var i = dt.getFullYear().toString(); | |
/** @type {string} */ | |
var nameResultIdString = strIdxStart + "." + n + "." + i; | |
return nameResultIdString; | |
}, options.dayDateMonthTime = function (dt) { | |
var result; | |
var i = options.GetMonthName(dt.getMonth()); | |
var r = CircularList.GetDay(dt.getDay()); | |
var n = dt.getMinutes().toString(); | |
return result = 0 == dt.getHours() ? "00" : dt.getHours() < 10 ? "0" + dt.getHours().toString() : dt.getHours().toString(), n = 0 == dt.getMinutes() ? "00" : dt.getMinutes() < 10 ? "0" + dt.getMinutes().toString() : dt.getMinutes().toString(), r + " " + dt.getDate() + " " + i + " " + result + ":" + n; | |
}, options.GetSuffix = function (i) { | |
var string; | |
var j; | |
var o = malakh.getLanguageId(); | |
/** @type {!Array} */ | |
var expected = []; | |
switch (i = i % 100, i > 19 && (j = i.toString(), i = parseInt(this.charAt(j, j.length - 1))), o) { | |
case 1: | |
/** @type {!Array} */ | |
expected = ["th", "st", "nd", "rd", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th"]; | |
break; | |
case 6: | |
/** @type {string} */ | |
string = 1 == i ? "\u00b0" : ""; | |
break; | |
case 3: | |
/** @type {string} */ | |
string = "\u00b0"; | |
break; | |
case 5: | |
case 7: | |
case 9: | |
case 21: | |
case 24: | |
case 25: | |
case 26: | |
/** @type {string} */ | |
string = "."; | |
break; | |
case 19: | |
case 20: | |
case 22: | |
case 23: | |
/** @type {string} */ | |
string = ""; | |
break; | |
case 8: | |
/** @type {!Array} */ | |
expected = ["e:", ":a", ":a", ":e", ":e", ":e", ":e", ":e", ":e", ":e", ":e", ":e", ":e", ":e", ":e", ":e", ":e", ":e", ":e", ":e"]; | |
break; | |
case 28: | |
/** @type {!Array} */ | |
expected = ["e", "e", "e", "e", "e", "e", "e", "e", "e", "e", "e", "e", "e", "e", "e", "e", "e", "e", "e", "e"]; | |
break; | |
default: | |
/** @type {string} */ | |
string = ""; | |
} | |
return null != string ? string : expected[i]; | |
}, options.charAt = function (pos, index) { | |
var char = pos.charAt(index); | |
return char; | |
}, options.BOOK_CLOSE = "bookClose", options.HH_MM_SS = "hhmmss", options.HH_MM = "hhmm", options.DAY_SUFFIX_DATE_MONTH_TIME = "daySuffixDateMonthTime", options.DAY_DATE_MONTH_YEAR_TIME = "dayDateMonthYearTime", options.DAY_SUFFIX_TIME = "daySuffixTime", options.DAY_DATE_LONGMONTH = "dayDateLongMonth", options.DAY_ONLY = "day", options.DAY_DATE = "dayDate", options.DAY_DATE_LONG = "dayDateLong", options.DATE_MONTH_YEAR = "dateMonthYear", options.DAY_DATE_MONTH_TIME = "dayDateMonthTime", options.DAY_DATE_MONTH_YEAR_TIME_SECONDS = | |
"dayDateMonthYearTimeSeconds", options.DATE_MONTHNAME_YEAR = "dateMonthNameYear", options.TIME_SEPERATOR = ":", options; | |
}(); | |
that.MLDateFormatter = floourl; | |
}(ns_gen5_ml || (ns_gen5_ml = {})), function (state) { | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function scope() { | |
} | |
return scope.Init = function () { | |
var index = Locator.user.countryId; | |
/** @type {!Array<string>} */ | |
var expRecords = window.location.hostname.toLowerCase().split("."); | |
/** @type {boolean} */ | |
scope.IsSpanish = index === scope.Spain; | |
/** @type {boolean} */ | |
scope.IsDanish = index === scope.Denmark; | |
/** @type {boolean} */ | |
scope.IsGreek = index === scope.Greece; | |
/** @type {boolean} */ | |
scope.IsCypriot = index === scope.Cyprus; | |
/** @type {boolean} */ | |
scope.IsItalyDomain = index === scope.Italy; | |
/** @type {boolean} */ | |
scope.IsBulgarian = index === scope.Bulgaria; | |
/** @type {boolean} */ | |
scope.IsSpainDomain = "es" == expRecords[expRecords.length - 1]; | |
/** @type {boolean} */ | |
scope.IsAusDomain = index === scope.Australia; | |
/** @type {boolean} */ | |
scope.IsCzechRepublic = index === scope.CzechRepublic; | |
/** @type {boolean} */ | |
scope.IsIndia = index === scope.India; | |
/** @type {boolean} */ | |
scope.IsEstonia = index === scope.Estonia; | |
scope.IsEstoniaRestricted = scope.IsEstonia && Locator.user.restrictedBettingEnabled; | |
/** @type {boolean} */ | |
scope.IsMexico = index === scope.Mexico; | |
/** @type {boolean} */ | |
scope.IsMexicoDomain = "mx" == expRecords[expRecords.length - 1]; | |
/** @type {string} */ | |
scope.SupportEmail = scope.IsMexicoDomain ? "SupportEmailMX" : "SupportEmail"; | |
/** @type {boolean} */ | |
scope.IsUnitedStatesOfAmerica = index === scope.UnitedStatesOfAmerica; | |
/** @type {boolean} */ | |
scope.IsSwedish = index === scope.Sweden; | |
/** @type {boolean} */ | |
scope.IsDkDomain = "dk" == expRecords[expRecords.length - 1]; | |
/** @type {boolean} */ | |
scope.IsCanadian = index === scope.Canada; | |
scope.IsAusDomainAndCustomer = scope.IsAusDomain && (Locator.user.isLoggedIn || !Locator.user.isLoggedIn && "AU" === Locator.user.countryCode); | |
}, scope.Denmark = "54", scope.Spain = "171", scope.Greenland = "218", scope.Australia = "13", scope.Germany = "75", scope.Greece = "78", scope.Cyprus = "51", scope.Italy = "97", scope.Bulgaria = "31", scope.CzechRepublic = "52", scope.India = "91", scope.Estonia = "64", scope.Mexico = "126", scope.UnitedStatesOfAmerica = "198", scope.Sweden = "181", scope.Canada = "36", scope; | |
}(); | |
state.RegisteredCountry = size; | |
}(ns_gen5_util_user || (ns_gen5_util_user = {})), function (state) { | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function e() { | |
} | |
return e.HexStringToNumber = function (ast) { | |
return Number("0x" + ast.slice(1)); | |
}, e.NumberToHexString = function (canCreateDiscussions) { | |
/** @type {string} */ | |
var diff_green = (16777215 & canCreateDiscussions).toString(16); | |
return "#" + "00000".substring(0, 6 - diff_green.length) + diff_green; | |
}, e.AdjustColourBrightness = function (precision, data) { | |
return precision = ((16711680 & precision) >> 16) * data << 16 | ((65280 & precision) >> 8) * data << 8 | (255 & precision) * data, precision > 16777215 ? 16777215 : precision; | |
}, e.AdjustHexBrightness = function (e, sStyle) { | |
return this.NumberToHexString(this.AdjustColourBrightness(this.HexStringToNumber(e), sStyle)); | |
}, e.Blend = function (eta, lmbda, n) { | |
/** @type {number} */ | |
var i = (((16711680 & eta) >> 16) * (1 - n) << 16 | ((65280 & eta) >> 8) * (1 - n) << 8 | (255 & eta) * (1 - n)) + (((16711680 & lmbda) >> 16) * n << 16 | ((65280 & lmbda) >> 8) * n << 8 | (255 & lmbda) * n); | |
return i; | |
}, e; | |
}(); | |
state.ColourUtil = size; | |
}(ns_gen5_util || (ns_gen5_util = {})), function (Library) { | |
var t; | |
!function (module) { | |
/** | |
* @param {number} b | |
* @return {?} | |
*/ | |
function BinaryBundle(b) { | |
return b - 0; | |
} | |
/** | |
* @param {!Object} step | |
* @return {?} | |
*/ | |
function firebaseDeleteSite(step) { | |
return ~~step; | |
} | |
/** | |
* @param {number} params | |
* @return {?} | |
*/ | |
function Truncate(params) { | |
return params - params % 1; | |
} | |
/** | |
* @param {?} data | |
* @return {?} | |
*/ | |
function toBuffer(data) { | |
var i; | |
var buf; | |
var dv; | |
var l; | |
/** @type {string} */ | |
var binary = atob(data); | |
/** @type {number} */ | |
var length = binary.length; | |
/** @type {!Uint8Array} */ | |
var ba = new Uint8Array(new ArrayBuffer(length)); | |
/** @type {number} */ | |
i = 0; | |
for (; length > i; i++) { | |
/** @type {number} */ | |
ba[i] = binary.charCodeAt(i); | |
} | |
/** @type {!ArrayBuffer} */ | |
buf = new ArrayBuffer(ba.length); | |
/** @type {!DataView} */ | |
dv = new DataView(buf); | |
/** @type {number} */ | |
i = 0; | |
/** @type {number} */ | |
l = ba.length; | |
for (; l > i; i++) { | |
dv.setUint8(ba.length - 1 - i, ba[i]); | |
} | |
return dv.getUint32(0); | |
} | |
/** @type {function(number): ?} */ | |
module.StringToNumber = BinaryBundle; | |
/** @type {function(!Object): ?} */ | |
module.StringToInteger = firebaseDeleteSite; | |
/** @type {function(number): ?} */ | |
module.Truncate = Truncate; | |
/** @type {function(?): ?} */ | |
module.ConvertBase64ToNumber = toBuffer; | |
}(t = Library.MathUtil || (Library.MathUtil = {})); | |
}(ns_gen5_util || (ns_gen5_util = {})), function (App) { | |
var Config = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function HistoryCache() { | |
} | |
return HistoryCache.prototype.setConfigJSON = function (rawJSON) { | |
/** @type {!Object} */ | |
this.rawJSON = rawJSON; | |
this.configJSON = this.rawJSON.config; | |
}, HistoryCache.prototype.getItem = function (api) { | |
return this.configJSON[api]; | |
}, HistoryCache.prototype.getRawJson = function () { | |
return this.rawJSON; | |
}, HistoryCache; | |
}(); | |
App.Config = Config; | |
}(ns_gen5_util || (ns_gen5_util = {})), function (connect) { | |
var LogEntry = function () { | |
/** | |
* @param {string} msg | |
* @return {undefined} | |
*/ | |
function e(msg) { | |
/** @type {string} */ | |
this.message = msg; | |
/** @type {!Date} */ | |
this.timestamp = new Date; | |
} | |
return e.prototype.toString = function () { | |
return "[" + this.timestamp + "] - " + this.message; | |
}, e; | |
}(); | |
connect.LogEntry = LogEntry; | |
}(ns_gen5_util || (ns_gen5_util = {})), function (DefaultCompositionProvider) { | |
DefaultCompositionProvider.AjaxLoader = function () { | |
/** | |
* @param {!Object} prev | |
* @param {!Function} callback | |
* @return {undefined} | |
*/ | |
function parse(prev, callback) { | |
var value; | |
var div; | |
var node; | |
var l; | |
var tl; | |
var c; | |
/** @type {!Array} */ | |
var t = []; | |
if (t.splice(0, 0, document.getElementsByTagName("script")), c = false, prev.src) { | |
/** @type {number} */ | |
l = 0; | |
/** @type {number} */ | |
tl = t.length; | |
for (; tl > l; l++) { | |
if (t[l].src && t[l].src.split("?")[0] == prev.src.split("?")[0]) { | |
/** @type {boolean} */ | |
c = true; | |
break; | |
} | |
} | |
} | |
if (c) { | |
if (callback) { | |
callback(); | |
} | |
} else { | |
if (div = document.head || document.getElementsByTagName("head")[0], node = document.createElement("script"), node.type = "text/javascript", prev.src) { | |
node.src = prev.src; | |
node.onerror = node.onload = callback; | |
} else { | |
value = fn(prev); | |
/** @type {number} */ | |
l = 0; | |
/** @type {number} */ | |
tl = t.length; | |
for (; tl > l; l++) { | |
if (fn(t[l]) == value) { | |
t[l].parentNode.removeChild(t[l]); | |
} | |
} | |
node.appendChild(document.createTextNode(value)); | |
if (callback) { | |
callback(); | |
} | |
} | |
div.appendChild(node, div.firstChild); | |
if (prev.parentNode) { | |
prev.parentNode.removeChild(prev); | |
} | |
} | |
} | |
/** | |
* @param {!Object} elem | |
* @return {?} | |
*/ | |
function fn(elem) { | |
return elem.text || elem.textContent || elem.innerHTML || ""; | |
} | |
/** | |
* @param {!Array} value | |
* @param {number} i | |
* @param {?} state | |
* @return {undefined} | |
*/ | |
function cb(value, i, state) { | |
if (i < value.length) { | |
parse(value[i], function () { | |
cb(value, ++i, state); | |
}); | |
} else { | |
if (state) { | |
state(); | |
} | |
} | |
} | |
return { | |
load: function (url, obj, n) { | |
/** @type {!XMLHttpRequest} */ | |
var request = new XMLHttpRequest; | |
/** | |
* @return {undefined} | |
*/ | |
request.onreadystatechange = function () { | |
if (4 == request.readyState) { | |
if (200 == request.status) { | |
/** @type {string} */ | |
obj.innerHTML = request.responseText; | |
if (n) { | |
n(); | |
} | |
} else { | |
$log("MatchLive markup request failed, status: " + request.status); | |
} | |
/** @type {null} */ | |
request.onreadystatechange = null; | |
} | |
}; | |
request.open("GET", url, true); | |
request.send(""); | |
}, | |
loadAndExecute: function (url, o, indentString) { | |
DefaultCompositionProvider.AjaxLoader.load(url, o, function () { | |
DefaultCompositionProvider.AjaxLoader.processScripts(o, indentString); | |
}); | |
}, | |
processScripts: function (parent, text) { | |
var span_split; | |
/** @type {!Array} */ | |
var o = []; | |
var ret = parent.getElementsByTagName("script"); | |
span_split = ret.length; | |
for (; span_split--;) { | |
if (!(ret[0].type && "text/javascript" !== ret[0].type.toLowerCase())) { | |
o.push(ret[0].parentNode ? ret[0].parentNode.removeChild(ret[0]) : ret[0]); | |
} | |
} | |
cb(o, 0, text); | |
} | |
}; | |
}(); | |
}(ns_gen5_util || (ns_gen5_util = {})), function (canCreateDiscussions) { | |
canCreateDiscussions.EventTrigger = function () { | |
return { | |
triggerEventOnElement: function ($origOpt, type, data) { | |
var evt; | |
if (document.createEvent) { | |
/** @type {(Event|null)} */ | |
evt = document.createEvent("HTMLEvents"); | |
evt.initEvent(type, true, true); | |
} else { | |
evt = document.createEventObject(); | |
/** @type {string} */ | |
evt.eventType = type; | |
} | |
/** @type {string} */ | |
evt.eventName = type; | |
evt.data = data || {}; | |
if (document.createEvent) { | |
document.dispatchEvent(evt); | |
} else { | |
document.fireEvent("on" + evt.eventType, evt); | |
} | |
} | |
}; | |
}(); | |
}(ns_gen5_util || (ns_gen5_util = {})), function (_schema) { | |
var name = function () { | |
/** | |
* @param {string} array | |
* @param {!Object} method | |
* @return {undefined} | |
*/ | |
function ArrIndex(array, method) { | |
/** @type {string} */ | |
this.scope = array; | |
/** @type {!Object} */ | |
this.method = method; | |
} | |
return ArrIndex.prototype.toString = function () { | |
return "[Delegate scope=" + this.scope + "]"; | |
}, ArrIndex; | |
}(); | |
_schema.Delegate = name; | |
_schema.EventListener = name; | |
}(ns_gen5_util || (ns_gen5_util = {})), function (canCreateDiscussions) { | |
var t; | |
!function (PackagingPolicy) { | |
/** @type {string} */ | |
PackagingPolicy[PackagingPolicy.DEFAULT = 1] = "DEFAULT"; | |
/** @type {string} */ | |
PackagingPolicy[PackagingPolicy.FRACTIONAL = 1] = "FRACTIONAL"; | |
/** @type {string} */ | |
PackagingPolicy[PackagingPolicy.DECIMAL = 2] = "DECIMAL"; | |
/** @type {string} */ | |
PackagingPolicy[PackagingPolicy.AMERICAN = 3] = "AMERICAN"; | |
/** @type {string} */ | |
PackagingPolicy[PackagingPolicy.AMERICANFRACTIONAL = 4] = "AMERICANFRACTIONAL"; | |
}(t = canCreateDiscussions.OddsType || (canCreateDiscussions.OddsType = {})); | |
}(ns_gen5_util || (ns_gen5_util = {})), function (state) { | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function e() { | |
} | |
return e.NOT_SUSPENDED = "0", e.SUSPEND_AND_SHOW = "1", e.OFF_THE_BOARD = "2", e.IPPG_SUSPEND_AND_HIDE = "3", e; | |
}(); | |
state.SuspendType = size; | |
}(ns_gen5_util || (ns_gen5_util = {})), function (state) { | |
var ExtensionType; | |
var size; | |
var pageStyleSheets = {}; | |
var catData = {}; | |
!function (Status) { | |
/** @type {string} */ | |
Status[Status.AVAILABLE = 0] = "AVAILABLE"; | |
/** @type {string} */ | |
Status[Status.BELOW_MINIMUM = 1] = "BELOW_MINIMUM"; | |
/** @type {string} */ | |
Status[Status.NOT_OFFERED = 2] = "NOT_OFFERED"; | |
}(ExtensionType = state.OddsAvailable || (state.OddsAvailable = {})); | |
size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function assert() { | |
} | |
return assert.ConvertOddsDecimal = function (value, size, t) { | |
var name; | |
var c; | |
var index; | |
var s; | |
var len; | |
var count; | |
var mvlen; | |
var kb; | |
if (size || 0 == size || (size = 2), t || 0 == t || (t = true), name = value + size, t && (pageStyleSheets[name] || !value)) { | |
return pageStyleSheets[name]; | |
} | |
if (index = value.indexOf("/", 1), index > -1) { | |
if (c = [value.slice(0, index), value.slice(++index)], s = Number(Number(c[0]) / Number(c[1]) + (t ? 1 : 0)).toFixed(4), Number(s) < 1.1 && s.split(".")[1].length > 2 && 0 == assert.MinOdds && "0" !== s.charAt(s.length - 2) && (size = 3), len = 0, count = s.indexOf(".", 1), 0 == size) { | |
/** @type {string} */ | |
s = s.slice(0, count > -1 ? count : 2147483647); | |
} else { | |
if (count > -1) { | |
if (len = size - (s.length - ++count), len > 0) { | |
/** @type {number} */ | |
mvlen = 0; | |
for (; len > mvlen; mvlen++) { | |
/** @type {string} */ | |
s = s + "0"; | |
} | |
} else { | |
if (0 > len) { | |
/** @type {string} */ | |
s = s.slice(0, s.length + len); | |
} | |
} | |
} else { | |
/** @type {string} */ | |
s = s + "."; | |
/** @type {number} */ | |
kb = 0; | |
for (; size > kb; kb++) { | |
/** @type {string} */ | |
s = s + "0"; | |
} | |
} | |
} | |
} | |
return t && (pageStyleSheets[name] = s), s; | |
}, assert.ConvertOddsUS = function (key) { | |
var data; | |
var filem; | |
var index; | |
var length; | |
var total; | |
var avg; | |
return catData[key] || !key ? catData[key] : (index = key.indexOf("/", 1), index > -1 && (filem = [key.slice(0, index), key.slice(++index)], length = Number(filem[0]), total = Number(filem[1]), avg = length / total, data = avg > .999999 ? "+" + String(100 * avg + 1e-6 | 0) : "-" + String(total / length * 100 + .999999 | 0)), catData[key] = data, data); | |
}, assert.AreOddsBelowMinimum = function (notes) { | |
if (assert.MinOdds <= 1) { | |
return false; | |
} | |
var n = assert.ConvertOddsDecimal(notes, 4); | |
return isNaN(n) ? false : n - 0 < assert.MinOdds; | |
}, assert.AreOddsRestricted = function (simpleselect) { | |
var index; | |
var n; | |
var test = simpleselect.data.PX; | |
/** @type {boolean} */ | |
var has_prev = false; | |
if (test) { | |
/** @type {number} */ | |
index = -1; | |
n = Locator.user.countryCode64; | |
do { | |
index = test.indexOf(n, ++index); | |
} while (-1 != index && index % 2); | |
/** @type {boolean} */ | |
has_prev = index > -1; | |
} | |
return has_prev; | |
}, assert.ConvertDecimalOddsToFractional = function (n) { | |
var p; | |
var a; | |
var r; | |
/** @type {string} */ | |
var color = String(n); | |
/** @type {number} */ | |
var s = Math.pow(color.length, 10); | |
/** @type {number} */ | |
var w = (n - 1) * s; | |
var h = assert.FactorOdds(w, s); | |
return h ? (a = w / h, r = s / h) : (a = w, r = s), p = String(a) + "/" + String(r); | |
}, assert.FactorOdds = function (n, a) { | |
var i; | |
return i = assert.HCF(n, a), Math.floor(i); | |
}, assert.HCF = function (t, object) { | |
var upDelta; | |
return upDelta = 0 == t ? object : 0 == object ? t : assert.HCF(object, t % object), Math.floor(upDelta); | |
}, assert.AreOddsAvailable = function (perUserDir) { | |
return this.AreOddsBelowMinimum(perUserDir.data.OD) ? ExtensionType.BELOW_MINIMUM : this.AreOddsRestricted(perUserDir) ? ExtensionType.NOT_OFFERED : ExtensionType.AVAILABLE; | |
}, assert.MinOdds = 0, assert.NOT_OFFERED = "N / O", assert; | |
}(); | |
state.OddsConverter = size; | |
}(ns_gen5_util || (ns_gen5_util = {})), function (exports) { | |
var Range = function () { | |
/** | |
* @param {number} pAST | |
* @param {number} pPreCalculate | |
* @return {undefined} | |
*/ | |
function init(pAST, pPreCalculate) { | |
/** @type {number} */ | |
this.min = pAST; | |
/** @type {number} */ | |
this.max = pPreCalculate; | |
} | |
return init.prototype.getLength = function () { | |
return this.max - this.min; | |
}, init; | |
}(); | |
exports.Range = Range; | |
}(ns_gen5_util || (ns_gen5_util = {})), function (state) { | |
var size = function () { | |
/** | |
* @param {string} arg | |
* @return {undefined} | |
*/ | |
function e(arg) { | |
/** @type {string} */ | |
this.type = arg; | |
if ($assert) { | |
$assert(arg, '"type" has not been defined on ' + this); | |
} | |
} | |
return e.prototype.toString = function () { | |
return "[Event365 type=" + this.type + "]"; | |
}, e.SInit = function () { | |
/** @type {boolean} */ | |
e.prototype.stopPropagation = false; | |
/** @type {null} */ | |
e.prototype.target = null; | |
/** @type {null} */ | |
e.prototype.currentTarget = null; | |
}(), e; | |
}(); | |
state.Event365 = size; | |
}(ns_gen5_events || (ns_gen5_events = {})), function (state) { | |
var size = function (_super) { | |
/** | |
* @param {string} key | |
* @param {!Object} value | |
* @return {?} | |
*/ | |
function data(key, value) { | |
var i = _super.call(this, key) || this; | |
return i.type = key, i.data = value, i; | |
} | |
return __extends(data, _super), data.prototype.toString = function () { | |
return "[Event365 type=" + this.type + ", data = " + this.data + "]"; | |
}, data.DATA = "data", data; | |
}(state.Event365); | |
state.DataEvent = size; | |
}(ns_gen5_events || (ns_gen5_events = {})), function (exports) { | |
var EventDispatcher = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function obj() { | |
} | |
return obj.prototype.toString = function () { | |
return "[EventDispatcher]"; | |
}, obj.prototype.addEventListener = function (type, fn) { | |
if ($assert) { | |
$assert(fn, "handlerDelegate must be defined."); | |
} | |
if (!this._eRegister) { | |
this._eRegister = {}; | |
this._touchlist = {}; | |
} | |
var eventList = this._eRegister[type]; | |
if (eventList) { | |
/** @type {!Function} */ | |
eventList[eventList.length] = fn; | |
} else { | |
/** @type {!Array} */ | |
this._eRegister[type] = [fn]; | |
} | |
}, obj.prototype.dispatchEvent = function (e) { | |
var c; | |
var n; | |
var item; | |
var i; | |
if (e.target ? e.currentTarget = this : e.target = e.currentTarget = this, this._eRegister && (c = e.type, n = this._eRegister[c])) { | |
if (this._touchlist[c]) { | |
this.cleanRegister(c); | |
} | |
/** @type {number} */ | |
i = 0; | |
for (; i < n.length; i++) { | |
item = n[i]; | |
try { | |
if (item) { | |
item.method.call(item.scope, e); | |
} | |
} catch (format) { | |
ErrorReporter.Trace(item.scope, format); | |
} | |
} | |
} | |
}, obj.prototype.bubbleEvent = function (event) { | |
if (this.dispatchEvent(event), !event.stopPropagation) { | |
var suite = this.parent; | |
for (; suite;) { | |
if (suite.bubbleEvent) { | |
suite.bubbleEvent(event); | |
break; | |
} | |
suite = suite.parent; | |
} | |
} | |
}, obj.prototype.removeEventListener = function (type, fn) { | |
var callbacks; | |
var i; | |
return this._eRegister ? (callbacks = this._eRegister[type], void (callbacks && (i = callbacks.indexOf(fn)) > -1 ? (callbacks[i] = void 0, this._touchlist[type] = true) : $assert && $assert(false, "removeEventListener call failed because the delegate didn't exist."))) : void ($assert && $assert(false, "removeEventListener call failed because the eRegister doesn't exist.")); | |
}, obj.prototype.hasEventListener = function (name) { | |
if (!this._eRegister) { | |
return false; | |
} | |
if (this._touchlist[name]) { | |
this.cleanRegister(name); | |
} | |
var mboxes = this._eRegister[name]; | |
return mboxes && mboxes.length > 0; | |
}, obj.prototype.hasEventListenerWithDelegate = function (id, t) { | |
if (!this._eRegister) { | |
return false; | |
} | |
if (this._touchlist[id]) { | |
this.cleanRegister(id); | |
} | |
var ret = this._eRegister[id]; | |
return !!(ret && ret.indexOf(t) > -1); | |
}, obj.prototype.cleanRegister = function (k) { | |
var assnList; | |
var q; | |
var i; | |
var colordata; | |
var b; | |
/** @type {boolean} */ | |
this._touchlist[k] = false; | |
assnList = this._eRegister[k]; | |
/** @type {!Array} */ | |
q = []; | |
/** @type {number} */ | |
i = 0; | |
colordata = assnList; | |
for (; i < colordata.length; i++) { | |
b = colordata[i]; | |
if (b) { | |
q[q.length] = b; | |
} | |
} | |
/** @type {!Array} */ | |
this._eRegister[k] = q; | |
}, obj.SInit = function () { | |
/** @type {null} */ | |
obj.prototype._eRegister = null; | |
/** @type {null} */ | |
obj.prototype._touchlist = null; | |
}(), obj; | |
}(); | |
exports.EventDispatcher = EventDispatcher; | |
}(ns_gen5_events || (ns_gen5_events = {})), function (state) { | |
var size = function (_super) { | |
/** | |
* @param {?} obj | |
* @param {number} n | |
* @return {?} | |
*/ | |
function result(obj, n) { | |
if (void 0 === n) { | |
/** @type {number} */ | |
n = NaN; | |
} | |
var i = _super.call(this, obj) || this; | |
return i.width = n, i; | |
} | |
return __extends(result, _super), result.prototype.toString = function () { | |
return "[ApplicationEvent]"; | |
}, result.LOADING = "loading", result.LOADING_COMPLETE = "loadingComplete", result.LOADING_TIMEOUT = "loadingTimeout", result.UNLOADING = "unloading", result.WIDTH_STATE_CHANGED = "widthStateChanged", result.VIEW_STATE_CHANGED = "viewStateChanged", result.HEIGHT_CHANGED = "heightChanged", result.WIDTH_CHANGED = "widthChanged", result.FOCUS_IN = "focusIn", result.FOCUS_OUT = "focusOut", result; | |
}(state.Event365); | |
state.ApplicationEvent = size; | |
}(ns_gen5_events || (ns_gen5_events = {})), function (state) { | |
var size = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function t() { | |
return null !== _super && _super.apply(this, arguments) || this; | |
} | |
return __extends(t, _super), t.ODDS_TYPE_CHANGED = "oddsChanged", t.LANGUAGE_CHANGED = "languageChanged", t; | |
}(state.Event365); | |
state.UserEvent = size; | |
}(ns_gen5_events || (ns_gen5_events = {})), function (state) { | |
var size = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function t() { | |
return null !== _super && _super.apply(this, arguments) || this; | |
} | |
return __extends(t, _super), t.MODULE_READY = "moduleReady", t; | |
}(state.Event365); | |
state.ModuleEvent = size; | |
}(ns_gen5_events || (ns_gen5_events = {})), function (Models) { | |
var Tag = Models.Event365; | |
var NewChannel = function (_super) { | |
/** | |
* @param {?} nguiMapComponent | |
* @return {?} | |
*/ | |
function DirectionsRenderer(nguiMapComponent) { | |
return _super.call(this, nguiMapComponent) || this; | |
} | |
return __extends(DirectionsRenderer, _super), DirectionsRenderer.BALANCEMODEL_UPDATE_EVENT = "balanceModelUpdated", DirectionsRenderer; | |
}(Tag); | |
Models.BalanceModelEvent = NewChannel; | |
}(ns_gen5_events || (ns_gen5_events = {})), function (state) { | |
var size = function (_super) { | |
/** | |
* @param {?} game | |
* @param {string} fn | |
* @return {?} | |
*/ | |
function Controller(game, fn) { | |
var $ = _super.call(this, game) || this; | |
return $.modal = fn, $; | |
} | |
return __extends(Controller, _super), Controller.MODAL_CHANGE = "modalChange", Controller; | |
}(state.Event365); | |
state.ModalEvent = size; | |
}(ns_gen5_events || (ns_gen5_events = {})), function (exports) { | |
var EventDispatcher = ns_gen5_events.EventDispatcher; | |
var Shake = function (_super) { | |
/** | |
* @param {?} value | |
* @return {?} | |
*/ | |
function t(value) { | |
var elem = _super.call(this) || this; | |
return elem.preformattedXML = value, elem; | |
} | |
return __extends(t, _super), t.prototype.setPreformattedXML = function (a22) { | |
if (this.preformattedXML !== a22) { | |
/** @type {!Object} */ | |
this.preformattedXML = a22; | |
} | |
}, t.prototype.parse = function (e) { | |
var doc; | |
var parser; | |
var i; | |
if (e && this.setPreformattedXML(e), window.DOMParser && DOMParser.prototype.parseFromString) { | |
/** @type {!DOMParser} */ | |
parser = new DOMParser; | |
/** @type {(Document|null)} */ | |
doc = parser.parseFromString(this.preformattedXML, "text/xml"); | |
} else { | |
if (parser = new ActiveXObject("Microsoft.XMLDOM"), parser.aSync && (parser.aSync = false), i = parser.loadXML(this.preformattedXML), !i) { | |
return ErrorReporter.Trace(this, "Unable to parse XML"), null; | |
} | |
doc = parser; | |
} | |
return doc; | |
}, t; | |
}(EventDispatcher); | |
exports.XMLParser = Shake; | |
}(ns_gen5_util || (ns_gen5_util = {})), function (state) { | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function ConnectMincer() { | |
this.manifest = window.websiteManifest; | |
} | |
return ConnectMincer.prototype.getBuildVersion = function (path) { | |
return path ? this.manifest.modulesInformation[path].version : this.manifest.version; | |
}, ConnectMincer.prototype.getDefaultTopic = function (path) { | |
return this.manifest.modulesInformation[path].defaultTopic; | |
}, ConnectMincer.prototype.getDefaultApiLocation = function (path) { | |
return this.manifest.modulesInformation[path].defaultApiLocation; | |
}, ConnectMincer.prototype.getLocaleNames = function (path) { | |
return this.manifest.modulesInformation[path].localeNames; | |
}, ConnectMincer.prototype.resolveResourcePath = function (formatters, customFormatters) { | |
return ""; | |
}, ConnectMincer.prototype.getDependencyLookup = function () { | |
return this.manifest.modulesInformation; | |
}, ConnectMincer; | |
}(); | |
state.ManifestManager = size; | |
}(ns_gen5_util || (ns_gen5_util = {})), function (this_) { | |
var config = function (_super) { | |
/** | |
* @param {?} props | |
* @return {?} | |
*/ | |
function Event(props) { | |
return _super.call(this, props) || this; | |
} | |
return __extends(Event, _super), Event.COMPLETE = "complete", Event.TICK = "tick", Event; | |
}(ns_gen5_events.Event365); | |
this_.TimerEvent = config; | |
}(ns_gen5_util || (ns_gen5_util = {})), function (global) { | |
var Event = global.TimerEvent; | |
var Timer = function (_super) { | |
/** | |
* @param {number} duration | |
* @param {number} delay | |
* @return {?} | |
*/ | |
function Timer(duration, delay) { | |
var self = _super.call(this) || this; | |
return self.time = duration, self.timeStarted = null, self.timerid = -1, self.timeRemaining = 0, self.repeats = delay || 0, self.ticks = 0, self.callback_tickHandler = function () { | |
return self.tickHandler(); | |
}, self; | |
} | |
return __extends(Timer, _super), Timer.prototype.start = function () { | |
var interval = this.timeRemaining || this.time; | |
/** @type {number} */ | |
this.timeRemaining = 0; | |
/** @type {!Date} */ | |
this.timeStarted = new Date; | |
/** @type {number} */ | |
this.timerid = setTimeout(this.callback_tickHandler, interval); | |
/** @type {boolean} */ | |
this.active = true; | |
}, Timer.prototype.reset = function () { | |
if (this.timerid > -1) { | |
clearTimeout(this.timerid); | |
/** @type {number} */ | |
this.timerid = -1; | |
/** @type {number} */ | |
this.ticks = 0; | |
/** @type {number} */ | |
this.timeRemaining = 0; | |
/** @type {boolean} */ | |
this.active = false; | |
} | |
}, Timer.prototype.stop = function () { | |
if (this.timerid > -1) { | |
/** @type {number} */ | |
this.timeRemaining = this.time - ((new Date).getTime() - this.timeStarted.getTime()); | |
clearTimeout(this.timerid); | |
/** @type {number} */ | |
this.timerid = -1; | |
/** @type {boolean} */ | |
this.active = false; | |
} | |
}, Timer.prototype.tickHandler = function () { | |
if (this.repeats > -1 && ++this.ticks >= this.repeats) { | |
this.dispatchEvent(new Event(Event.COMPLETE)); | |
if (this.completeDelegate) { | |
this.completeDelegate(); | |
} | |
/** @type {boolean} */ | |
this.active = false; | |
} else { | |
this.dispatchEvent(new Event(Event.TICK)); | |
if (this.tickDelegate) { | |
this.tickDelegate(); | |
} | |
this.start(); | |
} | |
}, Timer; | |
}(ns_gen5_events.EventDispatcher); | |
global.Timer = Timer; | |
}(ns_gen5_util || (ns_gen5_util = {})), function (state) { | |
var size = function (_super) { | |
/** | |
* @param {?} mode | |
* @param {!Date} key | |
* @param {?} value | |
* @return {?} | |
*/ | |
function exports(mode, key, value) { | |
var field = _super.call(this, mode) || this; | |
return field.date = key, field.dateZoneAdjusted = value, field; | |
} | |
return __extends(exports, _super), exports.prototype.toString = function () { | |
return "[TimeManagerEvent type=" + this.type + "]"; | |
}, exports.TICK = "tick", exports; | |
}(ns_gen5_events.Event365); | |
state.TimeManagerEvent = size; | |
}(ns_gen5_util || (ns_gen5_util = {})), function (state) { | |
var IOBoardEvent = state.TimeManagerEvent; | |
var size = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function n() { | |
var t = _super.call(this) || this; | |
return t._callback_serverTime_tick = function () { | |
t._serverTime_tick(); | |
}, t; | |
} | |
return __extends(n, _super), n.prototype.toString = function () { | |
return "[TimeManager]"; | |
}, n.prototype.getTime = function () { | |
return this._serverDate ? new Date(this._serverDate.getTime()) : null; | |
}, n.prototype.getTimeInDateFormat = function () { | |
var e = n.ParseDate(this._serverTime); | |
return e; | |
}, n.prototype.getTimeZoneAdjustedDate = function () { | |
var min = this._serverDateZoneAdjusted ? this._serverDateZoneAdjusted : this._serverDate; | |
return min ? new Date(min.getTime()) : null; | |
}, n.ParseDate = function (text) { | |
/** @type {!Date} */ | |
var d = new Date(Number(text.slice(0, 4)), Number(text.slice(4, 6)) - 1, Number(text.slice(6, 8)), Number(text.slice(8, 10)), Number(text.slice(10, 12)), Number(text.slice(12, 14))); | |
return d; | |
}, n.ParseZoneDate = function (ev) { | |
var copy = n.ParseDate(ev); | |
return copy.setTime(copy.getTime() + 60 * Locator.user.timeZoneAdjustment * 1e3), copy; | |
}, n.ParseEpochDate = function (e, targets) { | |
if (targets) { | |
/** @type {string} */ | |
e = e + "000"; | |
} | |
/** @type {!Date} */ | |
var expected_date2 = new Date(1e3 * Number(e)); | |
return expected_date2; | |
}, n.ParseEpochZoneDate = function (error, t) { | |
var b = n.ParseEpochDate(error, t); | |
return b.setTime(b.getTime() + 60 * Locator.user.timeZoneAdjustment * 1e3), b; | |
}, n.StripNonNumericChars = function (e) { | |
/** @type {!RegExp} */ | |
var t = /[^0-9]/g; | |
var tname = e.replace(t, ""); | |
return tname; | |
}, n.getTimeString = function (now, startTime) { | |
if (void 0 === startTime) { | |
/** @type {boolean} */ | |
startTime = true; | |
} | |
var token = now.toTimeString(); | |
return token = token.substr(0, token.indexOf(" ")), startTime ? token : token = token.substr(0, token.lastIndexOf(this.TIME_SEPERATOR)); | |
}, n.prototype.setServerTime = function (e) { | |
var YYYY; | |
var m; | |
if (!this._serverTime) { | |
Locator.validationManager.callLater(this._callback_serverTime_tick); | |
/** @type {number} */ | |
this._lastUpdatedMS = (new Date).getTime(); | |
} | |
/** @type {!Object} */ | |
this._serverTime = e; | |
this._serverDate = n.ParseDate(e); | |
/** @type {number} */ | |
this._lastUpdatedMS = (new Date).getTime(); | |
YYYY = Locator.user.timeZoneAdjustment; | |
if (0 != YYYY) { | |
this._serverDateZoneAdjusted = n.ParseDate(e); | |
m = this._serverDate.getMinutes() + YYYY; | |
this._serverDateZoneAdjusted.setMinutes(m); | |
} | |
}, n.prototype._serverTime_tick = function () { | |
var dragEvent; | |
var days; | |
var offset; | |
var origin; | |
if (this._serverDate) { | |
/** @type {number} */ | |
days = (new Date).getTime(); | |
/** @type {number} */ | |
offset = days - this._lastUpdatedMS; | |
/** @type {number} */ | |
this._lastUpdatedMS = days; | |
origin = this._serverDate.getTime() + offset; | |
this._serverDate.setTime(origin); | |
if (this._serverDateZoneAdjusted) { | |
origin = this._serverDateZoneAdjusted.getTime() + offset; | |
this._serverDateZoneAdjusted.setTime(origin); | |
dragEvent = this._serverDateZoneAdjusted; | |
} else { | |
dragEvent = this._serverDate; | |
} | |
this.dispatchEvent(new IOBoardEvent(IOBoardEvent.TICK, this._serverDate, dragEvent)); | |
setTimeout(this._callback_serverTime_tick, 1e3); | |
} | |
}, n.DATE_SEPERATOR = "/", n.TIME_SEPERATOR = ":", n; | |
}(ns_gen5_events.EventDispatcher); | |
state.TimeManager = size; | |
}(ns_gen5_util || (ns_gen5_util = {})), function (canCreateDiscussions) { | |
canCreateDiscussions.PrintDump = function () { | |
/** | |
* @param {?} v | |
* @param {number} d | |
* @return {?} | |
*/ | |
function toString(v, d) { | |
var t; | |
var out; | |
var i; | |
var name; | |
var MIN_DISTANCE; | |
var j; | |
if (!d) { | |
/** @type {number} */ | |
d = 0; | |
} | |
t = type(v); | |
/** @type {string} */ | |
out = ""; | |
/** @type {string} */ | |
name = ""; | |
/** @type {number} */ | |
MIN_DISTANCE = 0; | |
for (; d > MIN_DISTANCE; MIN_DISTANCE++) { | |
/** @type {string} */ | |
name = name + " "; | |
} | |
switch (t) { | |
case "string": | |
return '"' + v + '"'; | |
case "number": | |
return v.toString(); | |
case "boolean": | |
return v ? "true" : "false"; | |
case "date": | |
return "Date: " + v.toLocaleString(); | |
case "array": | |
/** @type {string} */ | |
out = out + "List ( \n"; | |
/** @type {number} */ | |
i = 0; | |
for (; i < v.length; i++) { | |
/** @type {string} */ | |
out = out + (name + " " + i + " => " + toString(v[i], d + 1) + "\n"); | |
} | |
/** @type {string} */ | |
out = out + (name + ")"); | |
break; | |
case "object": | |
/** @type {string} */ | |
out = out + "\n"; | |
for (j in v) { | |
if (v.hasOwnProperty(j)) { | |
/** @type {string} */ | |
out = out + (name + " " + j + ": " + toString(v[j], d + 1) + "\n"); | |
} | |
} | |
break; | |
default: | |
/** @type {string} */ | |
out = out + ("N/A: " + t); | |
} | |
return out; | |
} | |
/** | |
* @param {?} value | |
* @return {?} | |
*/ | |
function type(value) { | |
/** @type {string} */ | |
var type = typeof value; | |
if ("object" !== type) { | |
return type; | |
} | |
switch (value) { | |
case null: | |
return "null"; | |
} | |
switch (value.constructor) { | |
case Array: | |
return "array"; | |
case Boolean: | |
return "boolean"; | |
case Date: | |
return "date"; | |
case Number: | |
return "number"; | |
case Object: | |
return "object"; | |
} | |
return "Unknown"; | |
} | |
/** | |
* @param {?} fn | |
* @return {?} | |
*/ | |
function humanReadableWatchExpression(fn) { | |
return toString(fn); | |
} | |
return humanReadableWatchExpression; | |
}(); | |
}(ns_gen5_util || (ns_gen5_util = {})), function (context) { | |
/** @type {string} */ | |
var val = "\r\n"; | |
/** @type {string} */ | |
var x = " -------------------- "; | |
var enableAccessChecks = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function requestHandlerMock() { | |
} | |
return requestHandlerMock.prototype.buildHeader = function (res) { | |
return "*" + x + res + x + "*" + val; | |
}, requestHandlerMock.prototype.generate = function () { | |
/** @type {!Array} */ | |
var newNodeLists = [this._appendSummary()]; | |
return newNodeLists.push(this._appendNavigationHistory()), newNodeLists.push(this._appendManifest()), newNodeLists.push(this._appendSiteProps()), newNodeLists.push(this._appendSettings()), newNodeLists.push(this._pushedConfig()), newNodeLists.push(this._appendNavigator()), newNodeLists.push(this._appendReadIt()), newNodeLists.push(this._appendSportSubscriptions()), newNodeLists.push(this._appendPrivateSubscriptions()), newNodeLists.push(this._appendErrorLog()), newNodeLists.push(this._appendTraceLog()), | |
newNodeLists.push(this._appendOpenBetsLog()), newNodeLists.push(this._appendAAATCookie()), newNodeLists.push(this._appendSiteDataLocal()), newNodeLists; | |
}, requestHandlerMock.prototype.send = function () { | |
/** @type {!XMLHttpRequest} */ | |
var mypostrequest = new XMLHttpRequest; | |
mypostrequest.open("POST", "/api/1/clienterrors/ots", true); | |
mypostrequest.send(this.generate()); | |
}, requestHandlerMock.prototype._appendSiteProps = function () { | |
return ""; | |
}, requestHandlerMock.prototype._appendAAATCookie = function () { | |
var mixElem = context.CookieManager.GetCookieValue("aaat"); | |
return mixElem ? this.buildHeader("Alternative Auth Token Cookie") + mixElem : ""; | |
}, requestHandlerMock.prototype._appendSiteDataLocal = function () { | |
if ("siteDataLocal" in window) { | |
var e = window.siteDataLocal.siteData; | |
return e.constructor = Object, this.buildHeader("Site Data Local") + context.PrintDump(e); | |
} | |
return ""; | |
}, requestHandlerMock.prototype._appendManifest = function () { | |
var p; | |
var x; | |
var res = this.buildHeader("Manifest"); | |
res = res.concat("MasterVersion:" + Locator.manifestManager.getBuildVersion() + val); | |
p = Locator.manifestManager.getDependencyLookup(); | |
for (x in p) { | |
if (p.hasOwnProperty(x)) { | |
res = res.concat(x + ":" + val); | |
res = res.concat(" version:" + p[x].version + val); | |
res = res.concat(val); | |
} | |
} | |
return res; | |
}, requestHandlerMock.prototype._appendSettings = function () { | |
var n; | |
var name; | |
var ss = Locator.user; | |
var result = this.buildHeader("User"); | |
result = result.concat("sessionId: " + context.CookieManager.GetSessionId() + val); | |
for (n in ss) { | |
if (ss.hasOwnProperty(n)) { | |
if (name = ss[n], "object" == typeof name) { | |
try { | |
/** @type {string} */ | |
name = JSON.stringify(name); | |
} catch (s) { | |
/** @type {string} */ | |
name = ""; | |
} | |
} | |
if (name) { | |
result = result.concat(n + ":" + name + val); | |
} | |
} | |
} | |
return result; | |
}, requestHandlerMock.prototype._pushedConfig = function () { | |
var c; | |
/** @type {string} */ | |
var p = ""; | |
var subs = Locator.pushedConfig; | |
var r = this.buildHeader("pushedConfig"); | |
for (p in subs) { | |
if (subs.hasOwnProperty(p)) { | |
if (c = subs[p], "object" == typeof c) { | |
try { | |
/** @type {string} */ | |
c = JSON.stringify(c); | |
} catch (r) { | |
/** @type {string} */ | |
c = ""; | |
} | |
} | |
if (c) { | |
r = r.concat(p + ":" + c + val); | |
} | |
} | |
} | |
return r; | |
}, requestHandlerMock.prototype._appendSummary = function () { | |
/** @type {string} */ | |
var s = ""; | |
return s = s.concat("Current Url:" + window.location.href + val), s = s.concat("Current time:" + new Date + val); | |
}, requestHandlerMock.prototype._appendNavigator = function () { | |
/** @type {(Navigator|null)} */ | |
var nav = window.navigator; | |
var s = this.buildHeader("Navigator"); | |
return s = s.concat("UserAgent:" + nav.userAgent + val), s = s.concat("Language:" + (nav.language || nav.userLanguage) + val), s = s.concat("Vendor:" + nav.vendor + val), s = s.concat("Platform:" + nav.platform + val); | |
}, requestHandlerMock.prototype._appendNavigationHistory = function () { | |
return ""; | |
}, requestHandlerMock.prototype._appendReadIt = function () { | |
var e; | |
var enums = readit.ReadItLog.getLog(); | |
var r = this.buildHeader("ReadIt"); | |
/** @type {number} */ | |
e = 0; | |
for (; e < enums.length; e++) { | |
r = r.concat(enums[e].toString() + val); | |
} | |
return r; | |
}, requestHandlerMock.prototype._appendSportSubscriptions = function () { | |
return this.buildHeader("SubscriptionManager - Sports") + Locator.subscriptionManager._OtsReport(); | |
}, requestHandlerMock.prototype._appendPrivateSubscriptions = function () { | |
return this.buildHeader("PrivateSubscriptionManager") + Locator.privateSubscriptionManager._OtsReport(); | |
}, requestHandlerMock.prototype._appendErrorLog = function () { | |
var i; | |
var array = ErrorReporter.GetLog(); | |
var r = this.buildHeader("Error Reporter"); | |
/** @type {number} */ | |
i = 0; | |
for (; i < array.length; i++) { | |
r = r.concat(array[i] + val); | |
} | |
return r; | |
}, requestHandlerMock.prototype._appendTraceLog = function () { | |
var j; | |
var i; | |
var result; | |
var item; | |
var channels = context.InfoReporter.getLog(); | |
var res = this.buildHeader("Trace Log"); | |
for (j in channels) { | |
res = res.concat(x + j + x + val); | |
/** @type {number} */ | |
i = 0; | |
result = channels[j]; | |
for (; i < result.length; i++) { | |
item = result[i]; | |
res = res.concat(item + val); | |
} | |
} | |
return res = res.concat(x + val); | |
}, requestHandlerMock.prototype._appendOpenBetsLog = function () { | |
var datasetIndex; | |
var tabsRight; | |
/** @type {string} */ | |
var defs = ""; | |
try { | |
if (tabsRight = Locator.treeLookup.getReference("OPENBETS")) { | |
defs = this.buildHeader("Open Bets"); | |
/** @type {number} */ | |
datasetIndex = 0; | |
for (; datasetIndex < tabsRight.getChildren().length; datasetIndex++) { | |
defs = defs.concat(tabsRight.getChildren()[datasetIndex].data.IT + val); | |
} | |
} | |
} catch (o) { | |
/** @type {string} */ | |
defs = ""; | |
} | |
return defs; | |
}, requestHandlerMock; | |
}(); | |
context.OTSReport = enableAccessChecks; | |
}(ns_gen5_util || (ns_gen5_util = {})), function (root) { | |
var t = ns_gen5_ml.LanguageSettings; | |
var Codd = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function args() { | |
} | |
return args.Format = function (fmt) { | |
var i; | |
var sidx; | |
var context; | |
/** @type {!Array} */ | |
var o = []; | |
/** @type {number} */ | |
i = 1; | |
for (; i < arguments.length; i++) { | |
o[i - 1] = arguments[i]; | |
} | |
if (!fmt) { | |
return null; | |
} | |
/** @type {number} */ | |
sidx = o.length; | |
/** @type {number} */ | |
context = 0; | |
for (; sidx > context; context++) { | |
fmt = fmt.split("{" + context + "}").join(o[context]); | |
} | |
return fmt; | |
}, args.Uppercase = function (e) { | |
return e ? t.allowCapitalisation() ? e.toUpperCase() : e : ""; | |
}, args.Trim = function (string) { | |
return string.replace(/^\s+|\s+$/g, ""); | |
}, args.DecodeHtmlEntity = function (e) { | |
return e ? e.replace(this.HTML_ENTITY_REGEX, function (canCreateDiscussions, code21) { | |
return String.fromCharCode(code21); | |
}) : ""; | |
}, args.HTML_ENTITY_REGEX = /&#(\d+);/g, args; | |
}(); | |
root.StringUtil = Codd; | |
}(ns_gen5_util || (ns_gen5_util = {})), function (state) { | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function HTMLSectionBuilder() { | |
} | |
return HTMLSectionBuilder.prototype.endPageRender = function () { | |
}, HTMLSectionBuilder; | |
}(); | |
state.PageRender = size; | |
}(ns_gen5_util || (ns_gen5_util = {})), function (state) { | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function node() { | |
} | |
return node.getUnloadedDependencies = function (name) { | |
var values; | |
var i; | |
var rac; | |
var l; | |
if (!this.Lookup) { | |
return null; | |
} | |
/** @type {!Array} */ | |
values = []; | |
/** @type {number} */ | |
i = 0; | |
rac = this.Lookup[name].deps; | |
for (; i < rac.length; i++) { | |
l = rac[i]; | |
if (!this.LoadedDependenciesLookup[l]) { | |
values.push(l); | |
} | |
} | |
return values.length ? values : null; | |
}, node.setLookup = function (kmlObject) { | |
this.Lookup = kmlObject; | |
}, node.setLoaded = function (id) { | |
/** @type {boolean} */ | |
this.LoadedDependenciesLookup[id] = true; | |
}, node.IsLoaded = function (normalizedDep) { | |
return normalizedDep in this.LoadedDependenciesLookup; | |
}, node.LoadedDependenciesLookup = {}, node; | |
}(); | |
state.DependencyManager = size; | |
}(ns_gen5_net || (ns_gen5_net = {})), function (Y) { | |
var Event; | |
var Loader; | |
var Timer = ns_gen5_util.Timer; | |
var CanvasVideoEvent = ns_gen5_util.TimerEvent; | |
var VMLPieSlice = function () { | |
/** | |
* @param {string} f | |
* @return {undefined} | |
*/ | |
function Map(f) { | |
/** @type {!Array} */ | |
this.keys = []; | |
if (f) { | |
this.deSerialize(f); | |
} | |
} | |
return Map.prototype.addPair = function (name, value) { | |
/** @type {!Array} */ | |
this.keys[this.keys.length] = [name, value]; | |
}, Map.prototype.getPairWithKey = function (value) { | |
var layer_i; | |
var crossfilterable_layers; | |
var imscp; | |
/** @type {number} */ | |
layer_i = 0; | |
crossfilterable_layers = this.keys; | |
for (; layer_i < crossfilterable_layers.length; layer_i++) { | |
if (imscp = crossfilterable_layers[layer_i], imscp[0] == value) { | |
return imscp[1]; | |
} | |
} | |
return null; | |
}, Map.prototype.getKeys = function () { | |
return this.keys; | |
}, Map.prototype.serialize = function () { | |
var layer_i; | |
var crossfilterable_layers; | |
var wikidata_page; | |
/** @type {string} */ | |
var s = ""; | |
/** @type {number} */ | |
layer_i = 0; | |
crossfilterable_layers = this.keys; | |
for (; layer_i < crossfilterable_layers.length; layer_i++) { | |
wikidata_page = crossfilterable_layers[layer_i]; | |
/** @type {string} */ | |
s = s + (wikidata_page[0] + "=" + encodeURIComponent(wikidata_page[1]) + "&"); | |
} | |
return s.length ? s.slice(0, s.length - 1) : s; | |
}, Map.prototype.deSerialize = function (data) { | |
var i; | |
var m; | |
var src; | |
var q; | |
var F8 = data.split("&"); | |
/** @type {number} */ | |
i = 0; | |
m = F8; | |
for (; i < m.length; i++) { | |
src = m[i]; | |
q = src.indexOf("="); | |
if (q > -1) { | |
this.addPair(src.substring(0, q), src.substring(q + 1)); | |
} | |
} | |
}, Map; | |
}(); | |
Y.URLVariables = VMLPieSlice; | |
Event = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function exports() { | |
return null !== _super && _super.apply(this, arguments) || this; | |
} | |
return __extends(exports, _super), exports.COMPLETE = "complete", exports.ERROR = "error", exports.TIMEOUT = "timeout", exports; | |
}(ns_gen5_events.Event365); | |
Y.LoaderEvent = Event; | |
Loader = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function s() { | |
return null !== _super && _super.apply(this, arguments) || this; | |
} | |
return __extends(s, _super), s.prototype.load = function (url, options) { | |
var xhr; | |
var a; | |
var self = this; | |
var inLegacyIE = this.isExternalDomain(url); | |
/** @type {string} */ | |
this.url = url; | |
xhr = this.xhr = inLegacyIE ? readit.XDomainXMLHttpRequest.TryCreate(new XMLHttpRequest) : new XMLHttpRequest; | |
/** @type {boolean} */ | |
a = false; | |
/** | |
* @param {?} isTimeout | |
* @return {undefined} | |
*/ | |
xhr.onreadystatechange = function (isTimeout) { | |
var event; | |
var e; | |
if (!(4 != xhr.readyState || a)) { | |
/** @type {boolean} */ | |
a = true; | |
/** @type {null} */ | |
xhr.onreadystatechange = null; | |
/** @type {null} */ | |
self.xhr = null; | |
if (200 == xhr.status) { | |
if (self.completeHandler) { | |
Locator.validationManager.callNewContext(function () { | |
return self.completeHandler(xhr.responseText, xhr.status); | |
}); | |
} | |
if (self.hasEventListener(Event.COMPLETE)) { | |
event = new Event(Event.COMPLETE); | |
/** @type {number} */ | |
event.status = 200; | |
event.data = xhr.responseText; | |
Locator.validationManager.callNewContext(function () { | |
return self.dispatchEvent(event); | |
}); | |
} | |
} else { | |
if (self.errorHandler) { | |
Locator.validationManager.callNewContext(function () { | |
return self.errorHandler(xhr.status, xhr.responseText); | |
}); | |
} | |
if (self.hasEventListener(Event.ERROR)) { | |
e = new Event(Event.ERROR); | |
e.status = xhr.status; | |
e.data = xhr.responseText; | |
Locator.validationManager.callNewContext(function () { | |
return self.dispatchEvent(e); | |
}); | |
} | |
} | |
self.disposeTimer(); | |
} | |
}; | |
xhr.open(options && options.method || "GET", url + (options && options.method != s.POST && options.urlVariables && "?" + options.urlVariables.serialize() || ""), true); | |
if (options && options.contentType) { | |
xhr.setRequestHeader("Content-type", options.contentType); | |
} | |
xhr.withCredentials = options && options.withCredentials || false; | |
if (options && options.timeout) { | |
this.timer = new Timer(options.timeout, 1); | |
this.timer.addEventListener(CanvasVideoEvent.COMPLETE, this.delegate_timeHandler = new ns_gen5_util.Delegate(this, function () { | |
self.abort(); | |
if (self.timeoutHandler) { | |
Locator.validationManager.callNewContext(function () { | |
return self.timeoutHandler(); | |
}); | |
} | |
if (self.hasEventListener(Event.TIMEOUT)) { | |
Locator.validationManager.callNewContext(function () { | |
return self.dispatchEvent(new Event(Event.TIMEOUT)); | |
}); | |
} | |
})); | |
this.timer.start(); | |
} | |
xhr.send((options && options.method == s.POST ? options.urlVariables && options.urlVariables.serialize() : null) || options && options.data || ""); | |
}, s.prototype.abort = function () { | |
try { | |
if (this.xhr) { | |
this.xhr.abort(); | |
/** @type {null} */ | |
this.xhr.onreadystatechange = null; | |
/** @type {null} */ | |
this.xhr = null; | |
} | |
} catch (e) { | |
} | |
this.disposeTimer(); | |
}, s.prototype.getURL = function () { | |
return this.url; | |
}, s.prototype.isExternalDomain = function (name) { | |
/** | |
* @param {string} c | |
* @return {?} | |
*/ | |
var decode = function (c) { | |
return 0 === c.indexOf("//") && (c = location.protocol + c), c.toLowerCase().replace(/([a-z])?:\/\//, "$1").split("/")[0]; | |
}; | |
return (name.indexOf(":") > -1 || name.indexOf("//") > -1) && decode(location.href) !== decode(name); | |
}, s.prototype.disposeTimer = function () { | |
if (this.timer) { | |
this.timer.removeEventListener(CanvasVideoEvent.COMPLETE, this.delegate_timeHandler); | |
this.timer.stop(); | |
/** @type {null} */ | |
this.timer = null; | |
} | |
}, s.GET = "GET", s.POST = "POST", s; | |
}(ns_gen5_events.EventDispatcher); | |
Y.Loader = Loader; | |
}(ns_gen5_net || (ns_gen5_net = {})), function (state) { | |
var size; | |
var Helper = ns_gen5_util.StringUtil; | |
/** @type {string} */ | |
var value = "/SportsUI/{0}/min/{1}/{0}"; | |
/** @type {string} */ | |
var b = "/SportsUI/{0}/locale/{1}/min/{2}/{0}-{1}"; | |
if (!window.LazyLoad) { | |
window.LazyLoad = { | |
css: function (block, cb, elem) { | |
var monthContainer; | |
var uriContent; | |
var blockLength; | |
var KEY_COMPONENT; | |
var a; | |
/** @type {!Array} */ | |
block = [block]; | |
/** @type {!Element} */ | |
monthContainer = document.head || document.getElementsByTagName("head")[0]; | |
/** @type {number} */ | |
blockLength = block.length; | |
/** @type {number} */ | |
KEY_COMPONENT = 0; | |
for (; blockLength > KEY_COMPONENT; KEY_COMPONENT++) { | |
uriContent = block[KEY_COMPONENT]; | |
/** @type {!Element} */ | |
a = document.createElement("link"); | |
a.href = uriContent; | |
/** @type {string} */ | |
a.rel = "stylesheet"; | |
/** | |
* @return {undefined} | |
*/ | |
a.onload = function () { | |
cb(elem); | |
}; | |
/** | |
* @return {undefined} | |
*/ | |
a.onerror = function () { | |
ErrorReporter.Trace("LazyLoader", "Module CSS Failed to Load: " + uriContent); | |
}; | |
monthContainer.appendChild(a); | |
} | |
}, | |
js: function (block, callback, mode) { | |
var blockLength; | |
var KEY_COMPONENT; | |
/** @type {!Array} */ | |
block = [block]; | |
/** @type {number} */ | |
blockLength = block.length; | |
/** @type {number} */ | |
KEY_COMPONENT = 0; | |
for (; blockLength > KEY_COMPONENT; KEY_COMPONENT++) { | |
!function (script_uri) { | |
var script; | |
var head; | |
var r; | |
/** @type {!Element} */ | |
script = document.createElement("script"); | |
script.setAttribute("charset", "UTF-8"); | |
/** @type {!Element} */ | |
head = document.head || document.getElementsByTagName("head")[0]; | |
/** @type {function(): undefined} */ | |
script.onload = script.onreadystatechange = function () { | |
if (!(r || script.readyState && "loaded" !== script.readyState && "complete" !== script.readyState)) { | |
/** @type {boolean} */ | |
r = true; | |
callback(mode); | |
/** @type {null} */ | |
script.onload = script.onreadystatechange = null; | |
if (head && script.parentNode) { | |
head.removeChild(script); | |
} | |
} | |
}; | |
/** | |
* @return {undefined} | |
*/ | |
script.onerror = function () { | |
ErrorReporter.Trace("LazyLoader", " Failed to Load: " + script_uri); | |
}; | |
/** @type {string} */ | |
script.src = script_uri; | |
head.appendChild(script); | |
}(block[KEY_COMPONENT]); | |
} | |
} | |
}; | |
} | |
size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function Loader() { | |
} | |
return Loader.SetModulePath = function (stateValue) { | |
if ($assert) { | |
$assert(stateValue.indexOf("{0}") > -1 && stateValue.indexOf("{1}") > -1, "Path must contain {0} AND {1} tokens for module name and version respectively."); | |
} | |
/** @type {string} */ | |
value = stateValue; | |
}, Loader.SetLocalePath = function (txt) { | |
if ($assert) { | |
$assert(txt.indexOf("{0}") > -1 && txt.indexOf("{1}") > -1 && txt.indexOf("{0}") > -1, "Path must contain {0}, {1} AND {2} tokens for module name, locale name and version respectively."); | |
} | |
/** @type {string} */ | |
b = txt; | |
}, Loader.prototype.loadModule = function (name, module, cb, config) { | |
var data; | |
var color; | |
var load; | |
var _sizeAnimateTimeStamps; | |
var save; | |
var exports = this; | |
var i = Locator.manifestManager.getBuildVersion(name); | |
var src = Helper.Format(value, name, i); | |
var idx = name.indexOf("-"); | |
if (-1 !== idx) { | |
data = name.substring(0, idx); | |
color = name.substring(idx + 1); | |
src = Helper.Format(b, data, color, i); | |
} | |
config = config || function () { | |
module.resourcesLoaded++; | |
cb(); | |
}; | |
/** | |
* @return {undefined} | |
*/ | |
load = function () { | |
var expected_dir; | |
var b; | |
var dateManager; | |
var self = Loader.ModuleResourceLookup[name]; | |
var $ = window.LazyLoad; | |
if (self) { | |
if (self.loadCSS) { | |
module.resourcesNeeded++; | |
} | |
if (self.loadLanguage) { | |
module.resourcesNeeded++; | |
} | |
if (self.loadConfig) { | |
module.resourcesNeeded++; | |
} | |
if (self.loadCSS) { | |
$.css(src + ".css", config); | |
} | |
if (self.loadLanguage) { | |
$.js(src.slice(0, src.lastIndexOf("/") + 1) + Locator.user.languageId + ".js", cb); | |
} | |
if (self.loadConfig) { | |
/** @type {string} */ | |
expected_dir = window.location.host.indexOf(":3000") > -1 ? "http://www414.b365dev.com" : "http://" + window.location.host; | |
/** @type {string} */ | |
b = expected_dir + "/sports/" + name + "/config.asp?lang={0}&cid={1}&zid={2}&cg={3}"; | |
dateManager = Locator.user; | |
b = Helper.Format(b, dateManager.languageId, dateManager.countryId, dateManager.zoneId, dateManager.countryGroupId); | |
$.js(b, config); | |
} | |
} | |
$.js(src + ".min.js", cb); | |
}; | |
if (null != (_sizeAnimateTimeStamps = state.DependencyManager.getUnloadedDependencies(name))) { | |
(save = function () { | |
var moduleName; | |
var m; | |
var cb; | |
if (_sizeAnimateTimeStamps.length) { | |
moduleName = _sizeAnimateTimeStamps.shift(); | |
state.DependencyManager.setLoaded(moduleName); | |
m = new ns_gen5_ui.ModuleResourcePackage; | |
/** | |
* @return {undefined} | |
*/ | |
cb = function () { | |
m.resourcesLoaded++; | |
if (m.isFullyLoaded()) { | |
save(); | |
} | |
}; | |
exports.loadModule(moduleName, m, cb, cb); | |
} else { | |
load(); | |
} | |
})(); | |
} else { | |
load(); | |
} | |
}, Loader; | |
}(); | |
state.ModuleLoaderDefault = size; | |
}(ns_gen5_net || (ns_gen5_net = {})), function (state) { | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function api() { | |
} | |
return api.prototype.loadModule = function (moduleName, m, fn) { | |
/** | |
* @return {undefined} | |
*/ | |
function module() { | |
m.resourcesLoaded = m.resourcesNeeded; | |
fn(); | |
} | |
var resourceOrLocation; | |
var i; | |
var allowedUrlsWithWildCard; | |
var url; | |
var requirePath; | |
if (!state.DependencyManager.IsLoaded(moduleName)) { | |
if (resourceOrLocation = state.DependencyManager.getUnloadedDependencies(moduleName)) { | |
/** @type {number} */ | |
i = 0; | |
allowedUrlsWithWildCard = resourceOrLocation; | |
for (; i < allowedUrlsWithWildCard.length; i++) { | |
url = allowedUrlsWithWildCard[i]; | |
this.loadModule(url, new ns_gen5_ui.ModuleResourcePackage, function () { | |
}); | |
} | |
} | |
requirePath = boot.loadModule(moduleName, module); | |
state.DependencyManager.setLoaded(moduleName); | |
if (requirePath & boot.LoadingFlags.CSS) { | |
m.resourcesNeeded++; | |
} | |
if (requirePath & boot.LoadingFlags.LANGUAGE) { | |
m.resourcesNeeded++; | |
} | |
} | |
}, api; | |
}(); | |
state.ModuleLoaderBlob = size; | |
}(ns_gen5_net || (ns_gen5_net = {})), function (state) { | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function ConnectMincer() { | |
this.manifest = _websiteManifest; | |
} | |
return ConnectMincer.prototype.getBuildVersion = function (path) { | |
return path ? this.manifest.modulesInformation[path].version : this.manifest.version; | |
}, ConnectMincer.prototype.getDefaultTopic = function (path) { | |
return this.manifest.modulesInformation[path].defaultTopic; | |
}, ConnectMincer.prototype.getDependencyLookup = function () { | |
return this.manifest.modulesInformation; | |
}, ConnectMincer.prototype.getDefaultApiLocation = function (path) { | |
return this.manifest.modulesInformation[path].defaultApiLocation; | |
}, ConnectMincer.prototype.getLocaleNames = function (path) { | |
return this.manifest.modulesInformation[path].localeNames; | |
}, ConnectMincer; | |
}(); | |
state.WebsiteManifest = size; | |
}(ns_gen5_util || (ns_gen5_util = {})), function (state) { | |
var When = function (Module) { | |
/** | |
* @param {string} name | |
* @param {!Object} options | |
* @return {?} | |
*/ | |
function Client(name, options) { | |
var $this = Module.call(this) || this; | |
return $this._url = name, $this._options = options, $this; | |
} | |
return __extends(Client, Module), Client.prototype.load = function () { | |
Module.prototype.load.call(this, this._url, this._options); | |
}, Client; | |
}(ns_gen5_net.Loader); | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function e() { | |
} | |
return e.QueueForLogSubmission = function (_42, then) { | |
if ($assert) { | |
$assert(_42, "URL isn't defined."); | |
} | |
this.LoggingQueue[this.LoggingQueue.length] = new When(_42, then); | |
}, e.ProcessQueue = function () { | |
var l; | |
var i; | |
var elem; | |
var checkSet = this.LoggingQueue; | |
/** @type {!Array} */ | |
this.LoggingQueue = []; | |
l = checkSet.length; | |
/** @type {number} */ | |
i = 0; | |
for (; l > i; i++) { | |
try { | |
elem = checkSet[i]; | |
elem.load(); | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
} | |
}, e.LoggingQueue = [], e; | |
}(); | |
state.ServerLogger = size; | |
}(ns_gen5_util_logging || (ns_gen5_util_logging = {})), function (res) { | |
var $ = res.ServerLogger; | |
var vuln = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function e() { | |
} | |
return e.QueueError = function (data, err) { | |
var i; | |
var stack; | |
var node; | |
var result; | |
var error; | |
var message; | |
var pkg; | |
var ch; | |
try { | |
if (!Locator.pushedConfig.getArePropertiesInitialised()) { | |
return; | |
} | |
if (i = ns_gen5_util.MathUtil.StringToNumber(Locator.pushedConfig.getAttributeValue("WL")) || 0, !(i > 0)) { | |
return; | |
} | |
if (1e4 * Math.random() > i) { | |
return; | |
} | |
if (stack = err.stack || err.message, node = stack && stack.split("\n"), result = void 0, error = void 0, message = void 0, "string" == typeof data) { | |
/** @type {!Object} */ | |
result = data; | |
} else { | |
if (result = data.moduleName || "", result || (pkg = ns_gen5_ui.Module.getRoot(data), pkg && (result = pkg.parent.moduleName || "")), data._styleList) { | |
for (ch in data._styleList) { | |
/** @type {string} */ | |
result = result + " " + ch; | |
} | |
} | |
} | |
if (node && node[1]) { | |
if (node[0].indexOf(err.message) > -1) { | |
error = node[1].match(/\.([<>\w\d]+)\s/i); | |
error = error ? error[1] : "Window"; | |
} else { | |
error = node[0].split("@")[0]; | |
} | |
message = err.message; | |
} else { | |
/** @type {string} */ | |
message = err + ""; | |
} | |
$.QueueForLogSubmission("/api/1/clienterrors", { | |
method: "POST", | |
data: JSON.stringify({ | |
summary: (result || error || "Unknown") + ": " + error + " encountered an error with the message " + message, | |
filename: result || "Unknown", | |
funcname: error || "Unknown", | |
main: data + "", | |
message: message || "Unknown", | |
stack: stack || "Unknown", | |
url: location.href, | |
history: (ns_gen5_util.InfoReporter.getLog()[ns_gen5_util.InfoReporterGroups.NAVIGATION_ENTRY] || []).join("\n"), | |
zone: Locator.user.zoneId, | |
language: Locator.user.languageId, | |
manifestversion: Locator.manifestManager.getBuildVersion(), | |
betstring: window.safeSessionStorage.getItem("betstring") || "Unknown" | |
}) | |
}); | |
} catch (d) { | |
ns_gen5_util.InfoReporter.Trace(ns_gen5_util.InfoReporterGroups.GENERAL_ENTRY, "MobileServerLogger failed to submit to the server."); | |
} | |
}, e; | |
}(); | |
res.ClientErrorLogger = vuln; | |
}(ns_gen5_util_logging || (ns_gen5_util_logging = {})), function (browserify) { | |
var crdt = browserify.ServerLogger; | |
var UssdMenu = ns_gen5_net.URLVariables; | |
var fileSet = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function main() { | |
} | |
return main.QueueCounter = function (i, a) { | |
try { | |
if (main.CounterLookup[i]) { | |
main.CounterLookup[i] += a; | |
} else { | |
/** @type {number} */ | |
main.CounterLookup[i] = a; | |
} | |
if (!main.FlushTimer) { | |
/** @type {number} */ | |
main.FlushTimer = setTimeout(function () { | |
main.FlushCounters(); | |
}, 1e4); | |
} | |
} catch (i) { | |
ns_gen5_util.InfoReporter.Trace(ns_gen5_util.InfoReporterGroups.GENERAL_ENTRY, "CounterLogger failed to submit to the server."); | |
} | |
}, main.ForceCounterFlush = function () { | |
main.FlushCounters(); | |
crdt.ProcessQueue(); | |
}, main.FlushCounters = function () { | |
var menu; | |
var i; | |
if ("1" === Locator.pushedConfig.getAttributeValue("EC")) { | |
menu = new UssdMenu; | |
for (i in main.CounterLookup) { | |
menu.addPair(i, main.CounterLookup[i] + ""); | |
} | |
crdt.QueueForLogSubmission("/uicountersapi/increment", { | |
method: "GET", | |
urlVariables: menu | |
}); | |
main.CounterLookup = {}; | |
} | |
}, main.CounterLookup = {}, main; | |
}(); | |
browserify.CounterLogger = fileSet; | |
}(ns_gen5_util_logging || (ns_gen5_util_logging = {})), function (_schema) { | |
var t; | |
var REQUEST_METHODS = ns_gen5_net.Loader; | |
var events = ns_gen5_net.LoaderEvent; | |
var UssdMenu = ns_gen5_net.URLVariables; | |
var name = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function add_plan() { | |
this.data = {}; | |
} | |
return add_plan.UserPreferencesGUID = "ns_gen5_util.UserPreferenceData", add_plan; | |
}(); | |
_schema.UserPreferenceData = name; | |
t = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function self() { | |
this._preferences = new name; | |
/** @type {boolean} */ | |
this._preferencesInitialised = false; | |
/** @type {null} */ | |
this._pendingRequest = null; | |
this._saveToServerCompleteHandlerDelegate = new _schema.Delegate(this, this._saveToServerCompleteHandler); | |
this._saveToServerErrorHandlerDelegate = new _schema.Delegate(this, this._saveToServerErrorHandler); | |
} | |
return self.prototype.setUserPreferenceServiceUrl = function (extendObj2) { | |
if ($assert) { | |
$assert(!this._userPreferenceServiceUrl, "setUserPreferenceServiceUrl: value already set."); | |
} | |
this._userPreferenceServiceUrl = extendObj2; | |
}, self.prototype.loadInitialPreferenceData = function (a22) { | |
if ($assert) { | |
$assert(!this._preferencesInitialised, "UserPreferencesAPI already initialised!"); | |
} | |
if (!this._preferencesInitialised) { | |
/** @type {boolean} */ | |
this._preferencesInitialised = true; | |
if (a22) { | |
this._preferences.data[self.TEAM_PREFERENCE] = a22.teamPreference; | |
this._preferences.data[self.MARKET_GROUP_PREFERENCE] = a22.marketGroupPreference; | |
this._preferences.data[self.LEAGUE_TABLE_PREFERENCE] = a22.leagueTablePreference; | |
this._preferences.data[self.OVERVIEW_DEFAULT_MARKET] = a22.overviewDefaultMarketPreference; | |
this._preferences.data[self.PREGAME_CLASSIFICATION_MENU_FAVOURITES] = a22.prematchClassificationsPreference; | |
this._preferences.data[self.INPLAY_FAVOURITE_MARKETS] = a22.inplayFavouriteMarkets; | |
} | |
} | |
}, self.prototype.getSerializationData = function () { | |
return this._preferences; | |
}, self.prototype.setSerializationData = function (newPrefs) { | |
/** @type {string} */ | |
this._preferences = newPrefs; | |
}, self.prototype.addValues = function (obj, predicate) { | |
var resolved; | |
var i; | |
var result; | |
var promise; | |
if (!this._preferences.data[obj]) { | |
/** @type {!Array} */ | |
this._preferences.data[obj] = []; | |
} | |
resolved = this._preferences.data[obj]; | |
/** @type {number} */ | |
i = 0; | |
/** @type {!Array} */ | |
result = predicate; | |
for (; i < result.length; i++) { | |
promise = result[i]; | |
if (-1 === resolved.indexOf(promise)) { | |
resolved.push(promise); | |
} | |
} | |
this.save(obj); | |
}, self.prototype.removeValues = function (name, ar) { | |
var j; | |
var i; | |
var a = this._preferences.data[name]; | |
/** @type {number} */ | |
j = 0; | |
for (; j < a.length; ++j) { | |
/** @type {number} */ | |
i = 0; | |
for (; i < ar.length; ++i) { | |
if (a[j] === ar[i]) { | |
a.splice(j--, 1); | |
} | |
} | |
} | |
this._preferences.data[name] = a; | |
this.save(name); | |
}, self.prototype.setValues = function (id, force) { | |
/** @type {!Object} */ | |
this._preferences.data[id] = force; | |
this.save(id); | |
}, self.prototype.getValues = function (property) { | |
return this._preferences.data[property]; | |
}, self.prototype.save = function (num) { | |
this.saveToServer(num); | |
}, self.prototype.saveToServer = function (name) { | |
var menu; | |
var name; | |
var self; | |
if (Locator.user.isLoggedIn) { | |
if (this._clearPendingRequest(), menu = new UssdMenu, name) { | |
menu.addPair(name, this._preferences.data[name].join(",")); | |
} else { | |
for (name in this._preferences.data) { | |
menu.addPair(name, this._preferences.data[name].join(",")); | |
} | |
} | |
self = this._pendingRequest = new REQUEST_METHODS; | |
self.addEventListener(events.COMPLETE, this._saveToServerCompleteHandlerDelegate); | |
self.addEventListener(events.ERROR, this._saveToServerErrorHandlerDelegate); | |
self.load(this._userPreferenceServiceUrl, { | |
method: REQUEST_METHODS.POST, | |
urlVariables: menu, | |
contentType: "application/x-www-form-urlencoded" | |
}); | |
} | |
}, self.prototype._saveToServerCompleteHandler = function () { | |
$log(this, "Save To Server OK"); | |
this._clearPendingRequest(); | |
}, self.prototype._saveToServerErrorHandler = function (simpleselect) { | |
ErrorReporter.Trace(this, "Save To Server : " + simpleselect.data); | |
this._clearPendingRequest(); | |
}, self.prototype._clearPendingRequest = function () { | |
if (this._pendingRequest) { | |
this._pendingRequest.removeEventListener(events.COMPLETE, this._saveToServerCompleteHandlerDelegate); | |
this._pendingRequest.removeEventListener(events.ERROR, this._saveToServerErrorHandlerDelegate); | |
this._pendingRequest.abort(); | |
/** @type {null} */ | |
this._pendingRequest = null; | |
} | |
}, self.TEAM_PREFERENCE = "te", self.MARKET_GROUP_PREFERENCE = "lg", self.LEAGUE_TABLE_PREFERENCE = "lt", self.OVERVIEW_DEFAULT_MARKET = "odm", self.PREGAME_CLASSIFICATION_MENU_FAVOURITES = "lhsf", self.INPLAY_FAVOURITE_MARKETS = "ipf", self; | |
}(); | |
_schema.UserPreferenceAPI = t; | |
}(ns_gen5_util || (ns_gen5_util = {})), function (state) { | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function Stepper() { | |
/** @type {null} */ | |
this._interface = null; | |
} | |
return Stepper.prototype.setUserPreferenceInterface = function (_interface) { | |
/** @type {!Object} */ | |
this._interface = _interface; | |
}, Stepper.prototype.get3wayPreference = function (name) { | |
try { | |
if (this._interface && this._interface.get3wayPreference) { | |
return this._interface.get3wayPreference(name); | |
} | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
return false; | |
}, Stepper.prototype.set3wayPreference = function (name, collapsed_protos) { | |
try { | |
if (this._interface && this._interface.set3wayPreference) { | |
this._interface.set3wayPreference(name, collapsed_protos); | |
} | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
}, Stepper.prototype.setTeamPreference = function (name, collapsed_protos) { | |
try { | |
if (this._interface && this._interface.setTeamPreference) { | |
return this._interface.setTeamPreference(name, collapsed_protos); | |
} | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
return false; | |
}, Stepper.prototype.getTeamPreference = function (name) { | |
try { | |
if (this._interface && this._interface.getTeamPreference) { | |
return this._interface.getTeamPreference(name); | |
} | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
return false; | |
}, Stepper.prototype.getPreferredTeams = function () { | |
try { | |
if (this._interface && this._interface.getPreferredTeams) { | |
return this._interface.getPreferredTeams(); | |
} | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
return []; | |
}, Stepper.prototype.getPreferredTeamIds = function () { | |
try { | |
if (this._interface && this._interface.getPreferredTeamIds) { | |
return this._interface.getPreferredTeamIds(); | |
} | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
return []; | |
}, Stepper.prototype.setLeagueTableLiveUpdates = function (name) { | |
try { | |
if (this._interface && this._interface.setLeagueTableLiveUpdates) { | |
return this._interface.setLeagueTableLiveUpdates(name); | |
} | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
}, Stepper.prototype.getLeagueTableLiveUpdates = function () { | |
try { | |
if (this._interface && this._interface.getLeagueTableLiveUpdates) { | |
return this._interface.getLeagueTableLiveUpdates(); | |
} | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
return ""; | |
}, Stepper.prototype.setClassificationMenuFavourites = function (name) { | |
try { | |
if (this._interface && this._interface.setClassificationMenuFavourites) { | |
return this._interface.setClassificationMenuFavourites(name); | |
} | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
}, Stepper.prototype.getClassificationMenuFavourites = function () { | |
try { | |
if (this._interface && this._interface.getClassificationMenuFavourites) { | |
return this._interface.getClassificationMenuFavourites(); | |
} | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
return []; | |
}, Stepper.prototype.setOverviewDefaultMarkets = function (name) { | |
try { | |
if (this._interface && this._interface.setOverviewDefaultMarkets) { | |
return this._interface.setOverviewDefaultMarkets(name); | |
} | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
}, Stepper.prototype.getOverviewDefaultMarkets = function () { | |
try { | |
if (this._interface && this._interface.getOverviewDefaultMarkets) { | |
return this._interface.getOverviewDefaultMarkets(); | |
} | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
return []; | |
}, Stepper.prototype.addInPlayFavouriteMarket = function (name) { | |
try { | |
if (this._interface && this._interface.addInPlayFavouriteMarket) { | |
return this._interface.addInPlayFavouriteMarket(name); | |
} | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
return false; | |
}, Stepper.prototype.removeInPlayFavouriteMarket = function (name) { | |
try { | |
if (this._interface && this._interface.removeInPlayFavouriteMarket) { | |
return this._interface.removeInPlayFavouriteMarket(name); | |
} | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
return false; | |
}, Stepper.prototype.getInPlayFavouriteMarkets = function () { | |
try { | |
if (this._interface && this._interface.getOverviewDefaultMarkets) { | |
return this._interface.getInPlayFavouriteMarkets(); | |
} | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
return []; | |
}, Stepper; | |
}(); | |
state.ServerPreferenceManager = size; | |
}(ns_gen5_util || (ns_gen5_util = {})), function (Library) { | |
var MathUtil = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function protocol() { | |
} | |
return protocol.FilterStemChildren = function (elem) { | |
var thing; | |
var i; | |
/** @type {number} */ | |
i = 0; | |
for (; i < elem.getChildren().length; i++) { | |
if ((thing = elem.getChildren()[i]) && this.IsExcludedFromPromotion(thing.data.EF)) { | |
thing.remove(); | |
i--; | |
} | |
} | |
return elem.parent && "XL" !== elem.parent.nodeName && 0 === elem.getChildren().length && Locator.validationManager.callPostValidation(function () { | |
return elem.parent.remove(); | |
}), elem.getChildren().length > 0; | |
}, protocol.IsExcludedFromPromotion = function (buf) { | |
return 1 == Locator.user.customerType && Library.MathUtil.StringToNumber(buf) & protocol.NSW_EXCLUSION_FLAG ? true : !!(Library.MathUtil.StringToNumber(buf) & Locator.user.offerType); | |
}, protocol.NSW_EXCLUSION_FLAG = 4, protocol; | |
}(); | |
Library.PromotionalFilter = MathUtil; | |
}(ns_gen5_util || (ns_gen5_util = {})), function (canCreateDiscussions) { | |
}(ns_gen5_validation || (ns_gen5_validation = {})), function (state) { | |
var t = ns_gen5_util_logging.ServerLogger; | |
var size = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function List() { | |
var s = null !== _super && _super.apply(this, arguments) || this; | |
return s.callLaterQueue = [], s.priorityQueue = [], s.postValidationQueue = [], s.canCreateNewContext = true, s.nextCallLaterQueue = [], s.cycleID = -1, s.callback_cycleHandler = function () { | |
return s.cycleHandler(); | |
}, s.cyclecount = 0, s; | |
} | |
return __extends(List, _super), List.prototype.toString = function () { | |
return "[ValidationManager]"; | |
}, List.prototype.callLater = function (data) { | |
if ($assert) { | |
$assert(data, "Callback isn't defined."); | |
} | |
/** @type {!Function} */ | |
this.callLaterQueue[this.callLaterQueue.length] = data; | |
if (-1 == this.cycleID) { | |
this.cycle(); | |
} | |
}, List.prototype.callNewContext = function (_42) { | |
var _date_str = this; | |
if ($assert) { | |
$assert(_42, "Callback isn't defined."); | |
} | |
/** @type {!Function} */ | |
this.nextCallLaterQueue[this.nextCallLaterQueue.length] = _42; | |
if (this.canCreateNewContext) { | |
/** @type {boolean} */ | |
this.canCreateNewContext = false; | |
setTimeout(function () { | |
document.body.clientWidth; | |
/** @type {boolean} */ | |
_date_str.canCreateNewContext = true; | |
_date_str.callLaterQueue = _date_str.nextCallLaterQueue.concat(_date_str.callLaterQueue); | |
/** @type {number} */ | |
_date_str.nextCallLaterQueue.length = 0; | |
_date_str.processValidationCycleNow(); | |
}, 0); | |
} | |
}, List.prototype.queueForValidation = function (field) { | |
var j; | |
var missing; | |
if (1 != field.validationState) { | |
/** @type {number} */ | |
field.validationState = 1; | |
j = field.nestLevel || 0; | |
missing = this.priorityQueue[j]; | |
if (!missing) { | |
/** @type {!Array} */ | |
missing = this.priorityQueue[j] = []; | |
} | |
/** @type {!Object} */ | |
missing[missing.length] = field; | |
if (-1 == this.cycleID) { | |
this.cycle(); | |
} | |
} | |
}, List.prototype.callPostValidation = function (_42) { | |
if ($assert) { | |
$assert(_42, "Callback isnt defined."); | |
} | |
/** @type {!Function} */ | |
this.postValidationQueue[this.postValidationQueue.length] = _42; | |
if (-1 == this.cycleID) { | |
this.cycle(); | |
} | |
}, List.prototype.processValidationCycleNow = function () { | |
if (-1 != this.cycleID) { | |
clearTimeout(this.cycleID); | |
} | |
this.cycleHandler(); | |
}, List.prototype.processCallLaterQueue = function () { | |
var i; | |
var time; | |
var ch = this.callLaterQueue; | |
/** @type {!Array} */ | |
this.callLaterQueue = []; | |
i = ch.length; | |
/** @type {number} */ | |
time = 0; | |
for (; i > time; time++) { | |
try { | |
ch[time](); | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
} | |
}, List.prototype.processValidationQueue = function () { | |
var i; | |
var max; | |
var current; | |
var data; | |
var to; | |
var l; | |
var range = this.priorityQueue; | |
/** @type {!Array} */ | |
this.priorityQueue = []; | |
to = range.length; | |
/** @type {number} */ | |
l = 0; | |
for (; to > l; l++) { | |
if (current = range[l]) { | |
/** @type {number} */ | |
i = 0; | |
max = current.length; | |
for (; max > i; i++) { | |
if ((data = current[i]) && 1 == data.validationState) { | |
try { | |
/** @type {number} */ | |
data.validationState = 2; | |
data.validateNow(false); | |
/** @type {number} */ | |
data.validationState = 0; | |
} catch (format) { | |
ErrorReporter.Trace(data, format); | |
} | |
} | |
} | |
} | |
} | |
}, List.prototype.processPostValidationQueue = function () { | |
var i; | |
var time; | |
var ch = this.postValidationQueue; | |
/** @type {!Array} */ | |
this.postValidationQueue = []; | |
i = ch.length; | |
/** @type {number} */ | |
time = 0; | |
for (; i > time; time++) { | |
try { | |
ch[time](); | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
} | |
}, List.prototype.cycle = function (delay) { | |
/** @type {number} */ | |
this.cycleID = setTimeout(this.callback_cycleHandler, delay || 50); | |
}, List.prototype.cycleHandler = function () { | |
this.cyclecount++; | |
$timestamp("Start Frame"); | |
if (this.callLaterQueue.length > 0) { | |
this.processCallLaterQueue(); | |
} | |
for (; this.priorityQueue.length > 0;) { | |
this.processValidationQueue(); | |
} | |
if (this.postValidationQueue.length > 0) { | |
this.processPostValidationQueue(); | |
} | |
if (this.callLaterQueue.length > 0 || this.priorityQueue.length > 0 || this.postValidationQueue.length > 0) { | |
$timestamp("Recursive Start Frame"); | |
this.cycleHandler(); | |
} else { | |
if (Math.random() < .05) { | |
t.ProcessQueue(); | |
} | |
/** @type {number} */ | |
this.cycleID = -1; | |
} | |
}, List; | |
}(ns_gen5_events.EventDispatcher); | |
state.ValidationManager = size; | |
}(ns_gen5_validation || (ns_gen5_validation = {})), function (exports) { | |
var localCon = ns_gen5_util.InfoReporterGroups; | |
var assert = ns_gen5_util.InfoReporter; | |
var Resource = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function CognitoUserAttribute() { | |
this.mlJson = {}; | |
} | |
return CognitoUserAttribute.prototype.toString = function () { | |
return "[Resource]"; | |
}, CognitoUserAttribute.prototype.getValue = function (value, defaultValue) { | |
return this.mlJson[value] || assert.Trace(localCon.DEPRECATION_WARNING_ENTRY, "Missing language asset " + value), this.mlJson[value] || defaultValue; | |
}, CognitoUserAttribute; | |
}(); | |
exports.Resource = Resource; | |
}(ns_gen5_language || (ns_gen5_language = {})), function (marker) { | |
var countryLayer; | |
var vehicle = function () { | |
/** | |
* @param {string} res | |
* @param {string} name | |
* @param {string} data | |
* @param {string} type | |
* @param {!Object} info | |
* @return {undefined} | |
*/ | |
function run(res, name, data, type, info) { | |
/** @type {string} */ | |
this.topic = res; | |
/** @type {string} */ | |
this.type = name; | |
/** @type {string} */ | |
this.item = data; | |
/** @type {string} */ | |
this.nodeType = type; | |
/** @type {!Object} */ | |
this.info = info; | |
} | |
return run.prototype.toString = function () { | |
return "[DataMessage type=" + this.type + " item=" + this.item + " nodeType=" + this.nodeType + " info=" + this.info + "]"; | |
}, run; | |
}(); | |
marker.DataMessage = vehicle; | |
countryLayer = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function key() { | |
} | |
return key.SNAPSHOT = "F", key.UPDATE = "U", key.INSERT = "I", key.DELETE = "D", key; | |
}(); | |
marker.DataMessageType = countryLayer; | |
}(ns_gen5_data || (ns_gen5_data = {})), function (state) { | |
var size = function (_super) { | |
/** | |
* @param {?} name | |
* @param {!Object} data | |
* @return {?} | |
*/ | |
function self(name, data) { | |
var imageData = _super.call(this, name) || this; | |
return imageData.data = data, imageData; | |
} | |
return __extends(self, _super), self.prototype.toString = function () { | |
return "[StemEvent type=" + this.type + "]"; | |
}, self.UPDATE = "update", self.INSERT = "insert", self.DELETE = "delete", self.CHILD_DELETE = "childDelete", self; | |
}(ns_gen5_events.Event365); | |
state.StemEvent = size; | |
}(ns_gen5_data || (ns_gen5_data = {})), function ($rootScope) { | |
var Event = $rootScope.StemEvent; | |
var originalBackFunction = $rootScope.DataMessage; | |
var resourceMock = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function self() { | |
var t = _super.call(this) || this; | |
return t._delegateList = [], t._actualChildren = [], t; | |
} | |
return __extends(self, _super), self.prototype.toString = function () { | |
return "[Stem]"; | |
}, self.prototype.update = function (data) { | |
var i; | |
var countRep; | |
var middleware; | |
var k; | |
var enabledCheckboxElement; | |
var b; | |
var c; | |
var array; | |
var item; | |
var $i; | |
if (data) { | |
for (k in data) { | |
this.data[k] = data[k]; | |
} | |
if (this.parent) { | |
if (enabledCheckboxElement = "OR" in data, enabledCheckboxElement && (b = Number(data.OR), c = this.parent._actualChildren, c.splice(c.indexOf(this), 1), c.splice(b, 0, this)), "FF" in data) { | |
/** @type {boolean} */ | |
array = false; | |
item = data.FF; | |
/** @type {null} */ | |
$i = null; | |
/** @type {number} */ | |
self.FilterToken.lastIndex = 0; | |
for (; !array && null !== ($i = self.FilterToken.exec(item));) { | |
/** @type {boolean} */ | |
array = !(1 & $i.index); | |
self.FilterToken.lastIndex--; | |
} | |
if (this.filtered != (this.filtered = array)) { | |
if (this.parent._filterInvalidated = true, this.filtered) { | |
if (this.readonly_length-- , this._hasDelegates) { | |
/** @type {number} */ | |
i = 0; | |
countRep = this._delegateList.length; | |
for (; countRep > i; i++) { | |
if (middleware = this._delegateList[i]) { | |
try { | |
middleware.stemDeleteHandler(this); | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
} | |
} | |
} | |
if (this._hasListeners) { | |
this.dispatchEvent(new Event(Event.DELETE)); | |
} | |
} else { | |
if (this.parent.getChildren(), this.parent._hasDelegates) { | |
/** @type {number} */ | |
i = 0; | |
countRep = this.parent._delegateList.length; | |
for (; countRep > i; i++) { | |
if (middleware = this.parent._delegateList[i]) { | |
try { | |
middleware.stemInsertHandler(this.parent, this); | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
} | |
} | |
} | |
if (this.parent._hasListeners) { | |
this.parent.dispatchEvent(new Event(Event.INSERT, this)); | |
} | |
/** @type {boolean} */ | |
this._filterInvalidated = true; | |
} | |
return; | |
} | |
} else { | |
if (enabledCheckboxElement && !this.filtered && this.parent._children) { | |
/** @type {boolean} */ | |
this.parent._filterInvalidated = true; | |
} | |
} | |
} | |
if (!this.filtered) { | |
if (this._hasDelegates) { | |
/** @type {number} */ | |
i = 0; | |
countRep = this._delegateList.length; | |
for (; countRep > i; i++) { | |
if (middleware = this._delegateList[i]) { | |
try { | |
middleware.stemUpdateHandler(this, data); | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
} | |
} | |
} | |
if (this._hasListeners) { | |
this.dispatchEvent(new Event(Event.UPDATE, data)); | |
} | |
} | |
} | |
}, self.prototype.insert = function (key, data) { | |
var result; | |
var obj; | |
var type; | |
var subwiki; | |
var l; | |
var i; | |
if (data = data || self, key instanceof originalBackFunction ? (obj = key, result = new data, result.set_data(obj.item), result.nodeName = obj.nodeType) : key instanceof self ? result = key : (result = new data, result.set_data(key)), result.parent = this, type = result.data.OR, type ? this._actualChildren.splice(Number(type), 0, result) : this._actualChildren[this._actualChildren.length] = result, result.filtered) { | |
/** @type {boolean} */ | |
this._filterInvalidated = true; | |
} else { | |
if (this._children ? (this._filterInvalidated = true, this.getChildren()) : this.readonly_length++ , this._hasDelegates) { | |
subwiki = void 0; | |
l = this._delegateList.length; | |
/** @type {number} */ | |
i = 0; | |
for (; l > i; i++) { | |
if (subwiki = this._delegateList[i]) { | |
try { | |
subwiki.stemInsertHandler(this, result); | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
} | |
} | |
} | |
if (this._hasListeners) { | |
this.dispatchEvent(new Event(Event.INSERT, result)); | |
} | |
} | |
}, self.prototype.remove = function () { | |
var node_style_list; | |
var countRep; | |
var i; | |
var template; | |
var tableslen; | |
var type; | |
var siblings; | |
var l; | |
if (this._hasDelegates) { | |
node_style_list = void 0; | |
countRep = this._delegateList.length; | |
/** @type {number} */ | |
i = 0; | |
for (; countRep > i; i++) { | |
if (node_style_list = this._delegateList[i]) { | |
try { | |
node_style_list.stemDeleteHandler(this); | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
} | |
} | |
} | |
if (this._hasListeners) { | |
this.dispatchEvent(new Event(Event.DELETE)); | |
} | |
tableslen = this._actualChildren.length; | |
/** @type {number} */ | |
type = 0; | |
for (; tableslen > type; type++) { | |
template = this._actualChildren[type]; | |
if (template) { | |
/** @type {null} */ | |
template.parent = null; | |
template.remove(); | |
delete this._actualChildren[type]; | |
} | |
} | |
if (this.hasLookupReference && Locator.treeLookup.removeReference(this.data.IT), this.shadow && (this.shadow.remove(), this.shadow = null), null != this.parent) { | |
if (!this.filtered) { | |
this.parent.readonly_length--; | |
} | |
siblings = this.parent._actualChildren; | |
l = siblings.length; | |
if (this.parent._children) { | |
/** @type {boolean} */ | |
this.parent._filterInvalidated = true; | |
} | |
/** @type {number} */ | |
i = 0; | |
for (; l > i; i++) { | |
if (siblings[i] == this) { | |
siblings.splice(i, 1); | |
break; | |
} | |
} | |
if (this.parent._hasListeners && this.parent.hasEventListener(Event.CHILD_DELETE)) { | |
this.parent.dispatchEvent(new Event(Event.CHILD_DELETE, this)); | |
} | |
/** @type {null} */ | |
this.parent = null; | |
} | |
}, self.prototype.removeChildStem = function (asset) { | |
if (asset.parent == this) { | |
if (!asset.filtered) { | |
this.readonly_length--; | |
} | |
if (this._children) { | |
/** @type {boolean} */ | |
this._filterInvalidated = true; | |
} | |
var id = this._actualChildren.indexOf(asset); | |
if (id > -1) { | |
this._actualChildren.splice(id, 1); | |
} | |
/** @type {null} */ | |
asset.parent = null; | |
} | |
}, self.prototype.adoptStem = function (data, postName) { | |
var item; | |
var values; | |
var l; | |
var i; | |
if (null != data.parent) { | |
item = data.parent; | |
values = item._actualChildren; | |
l = values.length; | |
if (!data.filtered) { | |
item.readonly_length--; | |
this.readonly_length++; | |
} | |
if (item._children) { | |
/** @type {boolean} */ | |
item._filterInvalidated = true; | |
} | |
/** @type {number} */ | |
i = 0; | |
for (; l > i; i++) { | |
if (values[i] == data) { | |
values.splice(i, 1); | |
break; | |
} | |
} | |
data.parent = this; | |
if (void 0 == postName || postName > this._actualChildren.length) { | |
postName = this._actualChildren.length; | |
} | |
/** @type {!Object} */ | |
this._actualChildren[postName] = data; | |
if (this._children) { | |
/** @type {boolean} */ | |
this._filterInvalidated = true; | |
} | |
} | |
}, self.prototype.set_data = function (data) { | |
var n; | |
var name; | |
var bl; | |
var subwiki; | |
var countRep; | |
var i; | |
if (this.data = data, this.hasLookupReference || Locator.treeLookup.addReference(this), data.FF) { | |
/** @type {boolean} */ | |
n = false; | |
name = data.FF; | |
/** @type {null} */ | |
bl = null; | |
/** @type {number} */ | |
self.FilterToken.lastIndex = 0; | |
for (; !n && null !== (bl = self.FilterToken.exec(name));) { | |
/** @type {boolean} */ | |
n = !(1 & bl.index); | |
self.FilterToken.lastIndex--; | |
} | |
if (n) { | |
/** @type {boolean} */ | |
this.filtered = true; | |
if (this.parent) { | |
/** @type {boolean} */ | |
this.parent._filterInvalidated = true; | |
} | |
} else { | |
if (this.parent) { | |
this.parent.readonly_length++; | |
} | |
} | |
} else { | |
if (this.parent) { | |
this.parent.readonly_length++; | |
} | |
} | |
if (this._hasDelegates) { | |
subwiki = void 0; | |
countRep = this._delegateList.length; | |
/** @type {number} */ | |
i = 0; | |
for (; countRep > i; i++) { | |
if (subwiki = this._delegateList[i]) { | |
try { | |
subwiki.stemUpdateHandler(this, data); | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
} | |
} | |
} | |
if (this._hasListeners) { | |
this.dispatchEvent(new Event(Event.UPDATE, data)); | |
} | |
}, self.prototype.getChildren = function () { | |
var child; | |
var gen29_items; | |
var i; | |
var tableslen; | |
var gen30_i; | |
if (this._filterInvalidated) { | |
/** @type {boolean} */ | |
this._filterInvalidated = false; | |
if (this._children) { | |
/** @type {number} */ | |
this._children.length = 0; | |
} else { | |
/** @type {!Array} */ | |
this._children = []; | |
} | |
child = void 0; | |
gen29_items = this._actualChildren; | |
i = void 0; | |
tableslen = gen29_items.length; | |
/** @type {number} */ | |
gen30_i = 0; | |
for (; tableslen > gen30_i; gen30_i++) { | |
child = gen29_items[gen30_i]; | |
if (child && !child.filtered) { | |
i = this._children.length; | |
/** @type {string} */ | |
child.data.OR = String(i); | |
this._children[i] = child; | |
} | |
} | |
this.readonly_length = this._children.length; | |
} | |
return this._children || this._actualChildren; | |
}, self.prototype.shed = function () { | |
var i; | |
var n; | |
var node_style_list; | |
var htmlcodearr; | |
var r = this; | |
if (this._hasDelegates) { | |
node_style_list = void 0; | |
/** @type {number} */ | |
i = 0; | |
n = this._delegateList.length; | |
for (; n > i; i++) { | |
if (node_style_list = this._delegateList[i]) { | |
try { | |
node_style_list.stemDeleteHandler(this); | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
} | |
} | |
} | |
if (this._hasListeners) { | |
this.dispatchEvent(new Event(Event.DELETE)); | |
} | |
if ($assert) { | |
if (!this.hasClearedDown()) { | |
Locator.validationManager.callPostValidation(function () { | |
return $assert && $assert(r.hasClearedDown(), "`shed` has been called on this stem, but delegates/listeners still exist."); | |
}); | |
} | |
} | |
htmlcodearr = this._actualChildren; | |
/** @type {number} */ | |
i = 0; | |
n = htmlcodearr.length; | |
for (; n > i; i++) { | |
htmlcodearr[i].shed(); | |
} | |
if (this.shadow) { | |
this.shadow.shed(); | |
} | |
}, self.prototype.hasClearedDown = function () { | |
var i; | |
var m; | |
var soFar; | |
/** @type {number} */ | |
i = 0; | |
m = this._delegateList; | |
for (; i < m.length; i++) { | |
if (soFar = m[i]) { | |
return false; | |
} | |
} | |
return !this._hasListeners; | |
}, self.prototype.addDelegate = function (callback) { | |
this._delegateList[this._delegateList.length] = callback; | |
/** @type {boolean} */ | |
this._hasDelegates = true; | |
}, self.prototype.removeDelegate = function (type) { | |
var i = this._delegateList.indexOf(type); | |
if (i > -1) { | |
this._delegateList[i] = void 0; | |
} | |
}, self.prototype.addEventListener = function (type, fn) { | |
this._numListeners++; | |
/** @type {boolean} */ | |
this._hasListeners = true; | |
_super.prototype.addEventListener.call(this, type, fn); | |
}, self.prototype.removeEventListener = function (type, fn) { | |
this._numListeners--; | |
/** @type {boolean} */ | |
this._hasListeners = this._numListeners > 0; | |
_super.prototype.removeEventListener.call(this, type, fn); | |
}, self.SInit = function () { | |
/** @type {null} */ | |
self.prototype._actualChildren = null; | |
/** @type {null} */ | |
self.prototype._children = null; | |
/** @type {number} */ | |
self.prototype._numListeners = 0; | |
/** @type {boolean} */ | |
self.prototype._hasListeners = false; | |
/** @type {boolean} */ | |
self.prototype._filterInvalidated = false; | |
/** @type {null} */ | |
self.prototype.data = null; | |
/** @type {null} */ | |
self.prototype.parent = null; | |
/** @type {boolean} */ | |
self.prototype.filtered = false; | |
/** @type {number} */ | |
self.prototype.readonly_length = 0; | |
/** @type {null} */ | |
self.prototype.nodeName = null; | |
/** @type {boolean} */ | |
self.prototype.hasLookupReference = false; | |
}(), self.FilterToken = /\^\^\^/, self; | |
}(ns_gen5_events.EventDispatcher); | |
$rootScope.Stem = resourceMock; | |
}(ns_gen5_data || (ns_gen5_data = {})), function (canCreateDiscussions) { | |
}(ns_gen5_data || (ns_gen5_data = {})), function (game) { | |
var amount = game.Stem; | |
var VPatch = game.StemEvent; | |
var oldNation = game.DataMessage; | |
var testCanvas = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function o() { | |
var data = _super.call(this) || this; | |
return data.statGroups = [], data.teamGroups = [], data.additionalScores = [], data; | |
} | |
return __extends(o, _super), o.prototype.toString = function () { | |
return "[FixtureStem]"; | |
}, o.prototype.insert = function (e, options) { | |
var self; | |
var obj; | |
var type; | |
var relationship; | |
var l; | |
var i; | |
if (options = options || amount, e instanceof oldNation ? (obj = e, self = new options, self.set_data(obj.item), self.nodeName = obj.nodeType) : e instanceof amount ? self = e : (self = new options, self.set_data(e)), self.parent = this, "ES" == self.nodeName ? this.additionalScores[this.additionalScores.length] = self : "TG" == self.nodeName ? this.teamGroups[this.teamGroups.length] = self : "SG" == self.nodeName ? this.statGroups[this.statGroups.length] = self : (type = self.data.OR, type ? | |
this._actualChildren.splice(Number(type), 0, self) : this._actualChildren[this._actualChildren.length] = self, self.filtered || (this._children ? (this._filterInvalidated = true, this.getChildren()) : this.readonly_length++)), self.filtered) { | |
/** @type {boolean} */ | |
this._filterInvalidated = true; | |
} else { | |
if (this._hasDelegates) { | |
relationship = void 0; | |
l = this._delegateList.length; | |
/** @type {number} */ | |
i = 0; | |
for (; l > i; i++) { | |
if (relationship = this._delegateList[i]) { | |
relationship.stemInsertHandler(this, self); | |
} | |
} | |
} | |
if (this._hasListeners) { | |
this.dispatchEvent(new VPatch(VPatch.INSERT, self)); | |
} | |
} | |
}, o.prototype.remove = function () { | |
var t; | |
var tableslen; | |
var textureSampleStep; | |
_super.prototype.remove.call(this); | |
tableslen = this.statGroups.length; | |
/** @type {number} */ | |
textureSampleStep = 0; | |
for (; tableslen > textureSampleStep; textureSampleStep++) { | |
t = this.statGroups[textureSampleStep]; | |
if (t) { | |
/** @type {null} */ | |
t.parent = null; | |
t.remove(); | |
delete this.statGroups[textureSampleStep]; | |
} | |
} | |
tableslen = this.teamGroups.length; | |
/** @type {number} */ | |
textureSampleStep = 0; | |
for (; tableslen > textureSampleStep; textureSampleStep++) { | |
t = this.teamGroups[textureSampleStep]; | |
if (t) { | |
/** @type {null} */ | |
t.parent = null; | |
t.remove(); | |
delete this.teamGroups[textureSampleStep]; | |
} | |
} | |
tableslen = this.additionalScores.length; | |
/** @type {number} */ | |
textureSampleStep = 0; | |
for (; tableslen > textureSampleStep; textureSampleStep++) { | |
t = this.additionalScores[textureSampleStep]; | |
if (t) { | |
/** @type {null} */ | |
t.parent = null; | |
t.remove(); | |
delete this.additionalScores[textureSampleStep]; | |
} | |
} | |
}, o.prototype.shed = function () { | |
var _$rapyd$_Index0; | |
var _$rapyd$_Iter0; | |
var i; | |
var j; | |
var recycleIndices; | |
var notI; | |
var sortedLanes; | |
_super.prototype.shed.call(this); | |
/** @type {number} */ | |
_$rapyd$_Index0 = 0; | |
_$rapyd$_Iter0 = this.additionalScores; | |
for (; _$rapyd$_Index0 < _$rapyd$_Iter0.length; _$rapyd$_Index0++) { | |
i = _$rapyd$_Iter0[_$rapyd$_Index0]; | |
i.shed(); | |
} | |
/** @type {number} */ | |
j = 0; | |
recycleIndices = this.teamGroups; | |
for (; j < recycleIndices.length; j++) { | |
i = recycleIndices[j]; | |
i.shed(); | |
} | |
/** @type {number} */ | |
notI = 0; | |
sortedLanes = this.statGroups; | |
for (; notI < sortedLanes.length; notI++) { | |
i = sortedLanes[notI]; | |
i.shed(); | |
} | |
}, o.prototype.getLegacyID = function () { | |
return this.data.C1 + this.data.T1 + this.data.C2 + this.data.T2 + "-" + ((this.parent && this.parent.data ? this.parent.data.ID : null) || this.data.CL); | |
}, o.prototype.getLegacyIDraw = function () { | |
return this.data.C1 + this.data.T1 + this.data.C2 + this.data.T2 + ((this.parent && this.parent.data ? this.parent.data.ID : null) || this.data.CL); | |
}, o; | |
}(game.Stem); | |
game.FixtureStem = testCanvas; | |
}(ns_gen5_data || (ns_gen5_data = {})), function (state) { | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function self() { | |
this._table = {}; | |
} | |
return self.prototype.toString = function () { | |
return "[TreeLookup]"; | |
}, self.prototype.addReference = function (node, key) { | |
var i = node.data[key || "IT"]; | |
if (i) { | |
/** @type {!Object} */ | |
this._table[i] = node; | |
/** @type {boolean} */ | |
node.hasLookupReference = true; | |
} | |
}, self.prototype.getReference = function (key) { | |
return this._table[key]; | |
}, self.prototype.removeReference = function (key) { | |
var v = this._table[key]; | |
if (v) { | |
delete this._table[key]; | |
/** @type {boolean} */ | |
v.hasLookupReference = false; | |
} | |
}, self; | |
}(); | |
state.TreeLookup = size; | |
}(ns_gen5_data || (ns_gen5_data = {})), function (state) { | |
var size = function (_super) { | |
/** | |
* @param {?} clock | |
* @param {!Object} data | |
* @return {?} | |
*/ | |
function Event(clock, data) { | |
var imageData = _super.call(this, clock) || this; | |
return imageData.data = data, imageData; | |
} | |
return __extends(Event, _super), Event.INFO_UPDATED = "infoUpdated", Event.SNAPSHOT_EMPTY = "snapshotEmpty", Event.SERVER_RECONNECT = "serverReconnect", Event.CONNECTION_FAILED = "connectionFailed", Event.RECONNECT_FAILED = "reconnectFailed", Event.CONNECTED = "connected", Event.PULL_DATA_RECEIVED = "pullDataReceived", Event.PULL_REQUEST_FAILED = "pullRequestFailed", Event.CONNECTION_FAILED_INVALID_SESSION = "connectionFailedInvalidSession", Event; | |
}(ns_gen5_events.Event365); | |
state.StreamDataProcessorEvent = size; | |
}(ns_gen5_data || (ns_gen5_data = {})), function (state) { | |
var size = function (_super) { | |
/** | |
* @param {?} key | |
* @param {string} value | |
* @return {?} | |
*/ | |
function t(key, value) { | |
var memo = _super.call(this, key) || this; | |
return memo.message = value, memo; | |
} | |
return __extends(t, _super), t.BALANCE_RECEIVED = "balanceReceived", t.PUSH_MESSAGE_RECEIVED = "pushMessageReceived", t.D23_MESSAGE_RECEIVED = "d23Received", t; | |
}(ns_gen5_events.Event365); | |
state.PrivateStreamDataProcessorEvent = size; | |
}(ns_gen5_data || (ns_gen5_data = {})), function (canCreateDiscussions) { | |
canCreateDiscussions.SubscriptionManagerFlags = { | |
SUPPRESS_SERVER_MESSAGE: 1, | |
BATCH: 2, | |
SUPPRESS_FULL_HIERARCHY: 4, | |
NO_GRACE_PERIOD: 16, | |
DONT_BATCH: 32, | |
USE_CUSTOM_PARAMS: 64, | |
SUPPRESS_STANDARD_QS_PARAMS: 128 | |
}; | |
}(ns_gen5_data || (ns_gen5_data = {})), function (state) { | |
var size = function (_super) { | |
/** | |
* @param {?} clock | |
* @param {!Object} data | |
* @return {?} | |
*/ | |
function Event(clock, data) { | |
var imageData = _super.call(this, clock) || this; | |
return imageData.data = data, imageData; | |
} | |
return __extends(Event, _super), Event.RENEW_SUBSCRIPTION = "renewSubscription", Event.CONNECTION_FAILED = "connectionFailed", Event.CONNECTED = "connected", Event.ERROR = "error", Event; | |
}(ns_gen5_events.Event365); | |
state.SubscriptionManagerEvent = size; | |
}(ns_gen5_data || (ns_gen5_data = {})), function (state) { | |
var size = function (_super) { | |
/** | |
* @param {?} args | |
* @param {string} key | |
* @param {string} value | |
* @return {?} | |
*/ | |
function Filter(args, key, value) { | |
var json = _super.call(this, args) || this; | |
return json.topic = key, json.message = value, json; | |
} | |
return __extends(Filter, _super), Filter.BALANCE_RECEIVED = "balanceReceived", Filter.PUSH_MESSAGE_RECEIVED = "pushMessageReceived", Filter.D23_MESSAGE_RECEIVED = "d23Received", Filter; | |
}(ns_gen5_events.Event365); | |
state.PrivateSubscriptionManagerEvent = size; | |
}(ns_gen5_data || (ns_gen5_data = {})), function (window) { | |
/** | |
* @param {!Object} i18n | |
* @return {undefined} | |
*/ | |
function convert(i18n) { | |
/** @type {string} */ | |
i18n.VI = "0"; | |
/** @type {string} */ | |
i18n.VS = "0"; | |
/** @type {string} */ | |
i18n.MS = "0"; | |
} | |
var Array = window.Stem; | |
var Document = window.DataMessage; | |
var self = window.DataMessageType; | |
var Object = window.FixtureStem; | |
var visible = self.SNAPSHOT; | |
/** @type {string} */ | |
var i = "PH"; | |
/** @type {number} */ | |
var c = 0; | |
var photonResizeGrid = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function self() { | |
/** | |
* @return {?} | |
*/ | |
this.toString = function () { | |
return "[DataUtil]"; | |
}; | |
} | |
return self.ProcessStemChanges = function (data, key, match, value, getByTagName) { | |
var a; | |
var result; | |
var i; | |
var u; | |
var id; | |
var state = data.type; | |
var header = data.item; | |
if (state == self.SNAPSHOT) { | |
getByTagName(key); | |
} else { | |
if (state == self.UPDATE) { | |
a = Locator.treeLookup.getReference(key); | |
if (a) { | |
a.update(header); | |
} | |
} else { | |
if (state == self.INSERT) { | |
result = value ? key : match; | |
i = result.lastIndexOf("/"); | |
u = result.lastIndexOf("/", i - 1) + 1; | |
id = result.slice(u, i); | |
a = Locator.treeLookup.getReference(id); | |
if (a) { | |
a.insert(data, "EV" == data.nodeType ? Object : null); | |
} | |
} else { | |
if (state == self.DELETE) { | |
a = Locator.treeLookup.getReference(key); | |
if (a) { | |
a.remove(); | |
} | |
} | |
} | |
} | |
} | |
}, self.ParseMessage = function (str, name) { | |
var length; | |
var voteChanged; | |
var validationMessages; | |
var _i; | |
var callbacks; | |
var i18n; | |
var options; | |
var key; | |
var callback; | |
var addResource; | |
var value; | |
var scope; | |
var element; | |
var invalidated; | |
var opt_window; | |
var parent; | |
var data; | |
var remainder; | |
var where; | |
var elem; | |
var canViewMyFiles; | |
var animation; | |
var selector; | |
var model; | |
var container; | |
var item; | |
var o; | |
var query; | |
var group; | |
var term; | |
var ulNode; | |
var canUploadFiles; | |
var force; | |
var el; | |
var target; | |
var label; | |
var items; | |
var code; | |
var elm; | |
var result; | |
var schema = Locator.treeLookup; | |
var state = str.charAt(0); | |
/** @type {boolean} */ | |
var K = state == self.SNAPSHOT || state == self.INSERT; | |
var window = new Array; | |
var idx = str.indexOf("|", 1); | |
var i = idx; | |
/** @type {number} */ | |
var undefined = (voteChanged = state != visible) ? 0 : 1; | |
var country = Locator.user.countryCode; | |
var index = Locator.user.countryCode64; | |
var re = Locator.user.phoneOnlyEnabled; | |
for (; -1 != i;) { | |
idx = str.indexOf("|", ++i); | |
callbacks = str.slice(i, idx).split(";"); | |
/** @type {number} */ | |
_i = callbacks.length - 1; | |
i = idx; | |
i18n = {}; | |
callback = callbacks[0]; | |
/** @type {number} */ | |
length = undefined; | |
for (; _i > length; length++) { | |
key = callbacks[length]; | |
i18n[key.charAt(0) + key.charAt(1)] = key.substr(3); | |
} | |
if (K && !i18n.IT && (i18n.IT = "_i" + c++), country && "CB" in i18n) { | |
label = i18n.CB || ""; | |
/** @type {number} */ | |
items = -1; | |
do { | |
items = label.indexOf(country, ++items); | |
} while (-1 != items && 1 == (1 & items)); | |
if (-1 != items) { | |
convert(i18n); | |
} | |
} else { | |
if (!country && "CB" in i18n && "" != i18n.CB) { | |
convert(i18n); | |
} | |
} | |
if ("Modernizr" in window && !Modernizr.embeddedstreaming && "1" == i18n.ES && (i18n._V = i18n.VI, convert(i18n)), re && "TO" in i18n) { | |
label = i18n.TO; | |
/** @type {number} */ | |
items = -1; | |
do { | |
items = label.indexOf(index, ++items); | |
} while (-1 != items && 1 == (1 & items)); | |
if (-1 != items) { | |
/** @type {string} */ | |
i18n[i] = "1"; | |
} | |
} | |
if ("FI" in i18n && (value = i18n.FI), "TK" in i18n && (code = i18n.TK, addResource = String.fromCharCode(code.charCodeAt(0) ^ code.charCodeAt(1))), voteChanged && "IN" != callback) { | |
return state === self.INSERT && "PA" === callback ? i18n.ZW = value + "-" + i18n.ID : state === self.UPDATE && i18n.ID && (elm = Locator.treeLookup.getReference(name), elm && "PA" === elm.nodeName && (value || (value = elm.data.FI), i18n.ZW = value + "-" + i18n.ID)), [new Document(name, state, i18n, callback, validationMessages)]; | |
} | |
switch (callback) { | |
case "PA": | |
options = new Array; | |
el = canViewMyFiles || elem || canUploadFiles || force || window; | |
if (value) { | |
/** @type {string} */ | |
i18n.ZW = value + "-" + i18n.ID; | |
} | |
if (addResource) { | |
/** @type {string} */ | |
i18n._T = addResource; | |
} | |
options.parent = el; | |
animation = el._actualChildren[el._actualChildren.length] = options; | |
break; | |
case "CO": | |
options = new Array; | |
options.parent = elem; | |
canViewMyFiles = elem._actualChildren[elem._actualChildren.length] = options; | |
break; | |
case "MA": | |
/** @type {null} */ | |
canViewMyFiles = null; | |
elem = options = new Array; | |
target = remainder || data || force || window; | |
options.parent = target; | |
target._actualChildren[target._actualChildren.length] = options; | |
break; | |
case "MG": | |
/** @type {null} */ | |
canViewMyFiles = null; | |
remainder = options = new Array; | |
options.parent = data; | |
data._actualChildren[data._actualChildren.length] = options; | |
break; | |
case "CT": | |
where = options = new Array; | |
options.parent = parent; | |
parent._actualChildren[parent._actualChildren.length] = options; | |
break; | |
case "EV": | |
options = new Object; | |
if (null == parent) { | |
parent = invalidated || force || window; | |
} | |
target = where || parent; | |
options.parent = target; | |
data = options; | |
target._actualChildren[target._actualChildren.length] = options; | |
break; | |
case "CL": | |
parent = options = new Array; | |
/** @type {null} */ | |
where = null; | |
options.parent = opt_window || force || window; | |
options.parent._actualChildren[options.parent._actualChildren.length] = options; | |
break; | |
case "CS": | |
opt_window = options = new Array; | |
options.parent = window; | |
window._actualChildren[window._actualChildren.length] = options; | |
break; | |
case "TG": | |
selector = options = new Array; | |
options.parent = data; | |
data.teamGroups[data.teamGroups.length] = options; | |
break; | |
case "TE": | |
options = new Array; | |
options.parent = selector; | |
selector._actualChildren[selector._actualChildren.length] = options; | |
break; | |
case "SG": | |
model = options = new Array; | |
options.parent = data; | |
data.statGroups[data.statGroups.length] = options; | |
break; | |
case "ST": | |
options = new Array; | |
options.parent = model; | |
model._actualChildren[model._actualChildren.length] = options; | |
break; | |
case "ES": | |
container = options = new Array; | |
options.parent = data; | |
data.additionalScores[data.additionalScores.length] = options; | |
break; | |
case "SC": | |
item = options = new Array; | |
options.parent = container; | |
container._actualChildren[container._actualChildren.length] = options; | |
break; | |
case "SL": | |
options = new Array; | |
options.parent = item; | |
item._actualChildren[item._actualChildren.length] = options; | |
break; | |
case "AS": | |
o = options = new Array; | |
options.parent = data; | |
data._actualChildren[data._actualChildren.length] = options; | |
break; | |
case "AP": | |
query = options = new Array; | |
options.parent = o; | |
o._actualChildren[o._actualChildren.length] = options; | |
break; | |
case "AT": | |
group = options = new Array; | |
options.parent = query; | |
query._actualChildren[query._actualChildren.length] = options; | |
break; | |
case "AC": | |
term = options = new Array; | |
options.parent = group; | |
group._actualChildren[group._actualChildren.length] = options; | |
break; | |
case "AE": | |
options = new Array; | |
options.parent = term; | |
term._actualChildren[term._actualChildren.length] = options; | |
break; | |
case "SP": | |
options = new Array; | |
options.parent = animation; | |
animation._actualChildren[animation._actualChildren.length] = options; | |
break; | |
case "IN": | |
validationMessages = i18n; | |
break; | |
case "PD": | |
invalidated = options = new Array; | |
if (null == element) { | |
element = scope || force || window; | |
} | |
options.parent = element; | |
element._actualChildren[element._actualChildren.length] = options; | |
break; | |
case "PS": | |
element = options = new Array; | |
if (null == scope) { | |
scope = window; | |
} | |
options.parent = scope; | |
scope._actualChildren[scope._actualChildren.length] = options; | |
break; | |
case "XL": | |
scope = options = new Array; | |
window._actualChildren[window._actualChildren.length] = scope; | |
break; | |
case "LG": | |
options.parent = data; | |
data._actualChildren[data._actualChildren.length] = options; | |
break; | |
case "XI": | |
window = options = new Array; | |
break; | |
case "CG": | |
window = options = new Array; | |
break; | |
case "OP": | |
ulNode = options = new Array; | |
break; | |
case "CF": | |
ulNode = options = new Array; | |
break; | |
case "BE": | |
canUploadFiles = options = new Array; | |
options.parent = ulNode; | |
ulNode._actualChildren[ulNode._actualChildren.length] = options; | |
break; | |
case "SH": | |
force = options = new Array; | |
/** @type {null} */ | |
opt_window = null; | |
/** @type {null} */ | |
data = null; | |
/** @type {null} */ | |
remainder = null; | |
/** @type {null} */ | |
elem = null; | |
/** @type {null} */ | |
canViewMyFiles = null; | |
break; | |
default: | |
/** @type {null} */ | |
options = null; | |
} | |
if (options) { | |
options.nodeName = callback; | |
options.set_data(i18n); | |
} | |
} | |
return 1 == window._actualChildren.length && "PA" == window._actualChildren[0].nodeName ? window = window._actualChildren[0] : schema.getReference(name) || window.set_data({ | |
IT: name | |
}), force && (window.shadow = force), result = new Document(name, state, window, callback, validationMessages), [result]; | |
}, self.ParseMergeMessage = function (p, key) { | |
var x; | |
var bHandleProject; | |
var module; | |
var left; | |
var cache; | |
var data; | |
var name; | |
var state; | |
var m; | |
var bufferindex; | |
var value; | |
var val; | |
var prefix; | |
var username; | |
var v; | |
var id; | |
var element; | |
var img; | |
var uniqueId; | |
var b; | |
var a; | |
var triggerLevel; | |
var ghBranches; | |
var last_rollback; | |
var textPlusCoords; | |
var start_seq; | |
var end_seq; | |
var inNumberState; | |
var gotBoolState; | |
var gotEndQuoteState; | |
var c; | |
var defaultValue; | |
var msover; | |
var resolved; | |
var prop; | |
var label; | |
var tmp; | |
var num_elements; | |
var message; | |
var text; | |
var o; | |
var J; | |
var i; | |
var storageData; | |
var handler; | |
var treatMultiplePaste; | |
var l; | |
var start; | |
var f; | |
var _f; | |
var lang; | |
var self; | |
var e; | |
var _this2 = Locator.treeLookup; | |
var idx = p.indexOf("|", 1); | |
var index = idx; | |
var code = Locator.user.phoneOnlyEnabled; | |
var oIgnore = p.charAt(0); | |
var evt = Locator.user.countryCode64; | |
var country = Locator.user.countryCode; | |
/** @type {number} */ | |
var G__19581 = (bHandleProject = oIgnore != visible) ? 0 : 1; | |
var map = {}; | |
/** @type {!Array} */ | |
var model = []; | |
/** @type {!Array} */ | |
var nodes = []; | |
/** @type {!Array} */ | |
var result = []; | |
/** @type {!Array} */ | |
var args = [model, nodes, result]; | |
/** @type {!Array} */ | |
var onSelectionCalls = []; | |
/** @type {boolean} */ | |
map[key] = true; | |
if (key.lastIndexOf("/") >= 0) { | |
num_elements = key.substring(key.lastIndexOf("/") + 1, key.length); | |
/** @type {boolean} */ | |
map[num_elements] = true; | |
} | |
for (; -1 != index;) { | |
try { | |
if (idx = p.indexOf("|", ++index), cache = p.slice(index, idx).split(";"), left = cache.length - 1, index = idx, -1 === index && 0 === left) { | |
break; | |
} | |
data = {}; | |
bufferindex = cache[0]; | |
/** @type {number} */ | |
x = G__19581; | |
for (; left > x; x++) { | |
m = cache[x]; | |
data[m.substr(0, 2)] = m.substr(3); | |
} | |
if (country && "CB" in data) { | |
label = data.CB || ""; | |
/** @type {number} */ | |
tmp = -1; | |
do { | |
tmp = label.indexOf(country, ++tmp); | |
} while (-1 != tmp && 1 == (1 & tmp)); | |
if (-1 != tmp) { | |
convert(data); | |
} | |
} else { | |
if (!country && "CB" in data && "" != data.CB) { | |
convert(data); | |
} | |
} | |
if ("Modernizr" in window && !Modernizr.embeddedstreaming && "1" == data.ES && convert(data), code && "TO" in data) { | |
label = data.TO; | |
/** @type {number} */ | |
tmp = -1; | |
do { | |
tmp = label.indexOf(evt, ++tmp); | |
} while (-1 != tmp && 1 == (1 & tmp)); | |
if (-1 != tmp) { | |
/** @type {string} */ | |
data[i] = "1"; | |
} | |
} | |
switch ("FI" in data && (value = data.FI), bufferindex) { | |
case "PA": | |
msover = data.IT; | |
resolved = a || b || c || defaultValue || key; | |
if (value) { | |
/** @type {string} */ | |
data.ZW = value + "-" + data.ID; | |
} | |
state = resolved; | |
break; | |
case "CO": | |
a = data.IT; | |
state = b; | |
break; | |
case "MA": | |
/** @type {null} */ | |
a = null; | |
b = data.IT; | |
prop = img || element || defaultValue || key; | |
state = prop; | |
break; | |
case "MG": | |
/** @type {null} */ | |
a = null; | |
img = data.IT; | |
state = element; | |
break; | |
case "CT": | |
uniqueId = data.IT; | |
state = id; | |
break; | |
case "EV": | |
if (null == id) { | |
id = username || key; | |
} | |
prop = uniqueId || id || defaultValue; | |
state = prop; | |
element = data.IT; | |
break; | |
case "CL": | |
id = data.IT; | |
/** @type {null} */ | |
uniqueId = null; | |
state = v || defaultValue || data.IT; | |
break; | |
case "CS": | |
v = data.IT; | |
state = data.IT; | |
break; | |
case "TG": | |
triggerLevel = data.IT; | |
state = element; | |
break; | |
case "TE": | |
state = triggerLevel; | |
break; | |
case "SG": | |
ghBranches = data.IT; | |
state = element; | |
break; | |
case "ST": | |
state = ghBranches; | |
break; | |
case "ES": | |
last_rollback = data.IT; | |
state = element; | |
break; | |
case "SC": | |
textPlusCoords = data.IT; | |
state = last_rollback; | |
break; | |
case "SL": | |
state = textPlusCoords; | |
break; | |
case "AS": | |
start_seq = data.IT; | |
state = element; | |
break; | |
case "AP": | |
end_seq = data.IT; | |
state = start_seq; | |
break; | |
case "AT": | |
inNumberState = data.IT; | |
state = end_seq; | |
break; | |
case "AC": | |
gotBoolState = data.IT; | |
state = inNumberState; | |
break; | |
case "AE": | |
state = gotBoolState; | |
break; | |
case "IN": | |
module = data; | |
break; | |
case "PD": | |
username = data.IT; | |
if (null == prefix) { | |
prefix = val || defaultValue || key; | |
} | |
state = prefix; | |
break; | |
case "PS": | |
prefix = data.IT; | |
if (null == val) { | |
/** @type {string} */ | |
val = key; | |
} | |
state = val; | |
break; | |
case "XL": | |
val = data.IT; | |
break; | |
case "LG": | |
state = element; | |
break; | |
case "OP": | |
gotEndQuoteState = data.IT; | |
break; | |
case "CF": | |
gotEndQuoteState = data.IT; | |
state = gotEndQuoteState; | |
break; | |
case "BE": | |
c = data.IT; | |
state = gotEndQuoteState; | |
break; | |
case "CG": | |
state = data.IT; | |
break; | |
case "SH": | |
defaultValue = state = data.IT; | |
/** @type {null} */ | |
v = null; | |
/** @type {null} */ | |
element = null; | |
/** @type {null} */ | |
img = null; | |
/** @type {null} */ | |
b = null; | |
/** @type {null} */ | |
a = null; | |
break; | |
case "SP": | |
state = msover; | |
} | |
if (name = data.IT, map[name] = true, message = _this2.getReference(name), message && (name === state || message.parent && message.parent.data && message.parent.data.IT === state)) { | |
text = message.data; | |
o = {}; | |
/** @type {boolean} */ | |
J = false; | |
for (i in data) { | |
if (text[i] != data[i]) { | |
/** @type {boolean} */ | |
J = true; | |
o[i] = data[i]; | |
} | |
} | |
if (J) { | |
o.IT = name; | |
result[result.length] = { | |
topic: name, | |
msgType: self.UPDATE, | |
data: o, | |
nodeType: bufferindex, | |
info: module | |
}; | |
} | |
} else { | |
if (name !== state) { | |
nodes.push({ | |
topic: state + "/" + name, | |
msgType: self.INSERT, | |
data: data, | |
nodeType: bufferindex, | |
info: module | |
}); | |
} else { | |
if ("EMPTY" === key && "undefined" != typeof module) { | |
nodes.push({ | |
topic: key, | |
msgType: self.SNAPSHOT, | |
data: data, | |
nodeType: "", | |
info: module | |
}); | |
} | |
} | |
} | |
} catch (format) { | |
ErrorReporter.Trace(self, format); | |
} | |
} | |
storageData = _this2.getReference(key); | |
if (storageData) { | |
/** | |
* @param {!Array} items | |
* @return {undefined} | |
*/ | |
treatMultiplePaste = function (items) { | |
var j; | |
var i = items.length; | |
/** @type {number} */ | |
j = 0; | |
for (; i > j; j++) { | |
handler(items[j], items); | |
} | |
}; | |
(handler = function (data, obj) { | |
var l; | |
var i; | |
if (data) { | |
if (!map[data.data.IT] && (model.push({ | |
topic: data.data.IT, | |
msgType: self.DELETE, | |
data: data.data, | |
nodeType: data.nodeName | |
}), obj && data.parent instanceof window.FixtureStem && (obj === data.parent.statGroups || obj === data.parent.teamGroups || obj === data.parent.additionalScores))) { | |
l = obj.length; | |
/** @type {number} */ | |
i = 0; | |
for (; l > i; i++) { | |
if (obj[i] === data) { | |
obj.splice(i, 1); | |
} | |
} | |
} | |
treatMultiplePaste(data.getChildren()); | |
if (data instanceof window.FixtureStem) { | |
treatMultiplePaste(data.statGroups); | |
treatMultiplePaste(data.teamGroups); | |
treatMultiplePaste(data.additionalScores); | |
} | |
} | |
})(storageData); | |
} | |
/** @type {number} */ | |
l = args.length; | |
/** @type {number} */ | |
start = 0; | |
for (; l > start; start++) { | |
if (f = args[start]) { | |
_f = f.length; | |
/** @type {number} */ | |
lang = 0; | |
for (; _f > lang; lang++) { | |
self = f[lang]; | |
if (self) { | |
e = new Document(self.topic, self.msgType, self.data, self.nodeType, self.info); | |
onSelectionCalls.push(e); | |
} | |
} | |
} | |
} | |
return onSelectionCalls; | |
}, self; | |
}(); | |
window.DataUtil = photonResizeGrid; | |
}(ns_gen5_data || (ns_gen5_data = {})), function (self) { | |
var t; | |
var user; | |
var boxInput = self.Stem; | |
var IOBoardEvent = ns_gen5_events.UserEvent; | |
/** @type {string} */ | |
var componentsStr = "GD,GG,GI,GJ"; | |
!function (PlatformType) { | |
/** @type {string} */ | |
PlatformType[PlatformType.Desktop = 1] = "Desktop"; | |
/** @type {string} */ | |
PlatformType[PlatformType.Mobile = 2] = "Mobile"; | |
/** @type {string} */ | |
PlatformType[PlatformType.IosApp = 3] = "IosApp"; | |
/** @type {string} */ | |
PlatformType[PlatformType.AndroidApp = 4] = "AndroidApp"; | |
}(t = self.Platforms || (self.Platforms = {})); | |
user = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function init() { | |
var $scope = null !== _super && _super.apply(this, arguments) || this; | |
return $scope.username = null, $scope.geoComplyUserId = null, $scope.migratedSession = false, $scope.oddsTypeId = null, $scope.languageId = null, $scope.zoneId = null, $scope.timeZoneId = null, $scope.timeZoneAdjustment = null, $scope.timeZoneInitials = null, $scope.wizeGuy = false, $scope.displayGroupId = null, $scope.offerType = 1, $scope.countryId = null, $scope.countryStateId = null, $scope.countryGroupId = null, $scope.countryCode = null, $scope.countryCode64 = "", $scope.countryState64 = | |
"", $scope.countryGroup64 = "", $scope.filterMode = null, $scope.phoneOnlyEnabled = false, $scope.isLoggedIn = false, $scope.lastLoginTime = null, $scope.telephoneAccountNumber = null, $scope.codiceFiscale = null, $scope.impersonatedUsername = null, $scope.currencyCode = null, $scope.currencyRate = null, $scope.currencyDecimalSeparator = null, $scope.restrictedBettingEnabled = false, $scope._balance = null, $scope.cookieSecurityLevel = "", $scope; | |
} | |
return __extends(init, _super), init.prototype.toString = function () { | |
return "[User]"; | |
}, init.prototype.getBalance = function () { | |
return this._balance || (this._balance = ns_gen5_util.Singleton.getInstance(ns_gen5_util.BalanceModel)); | |
}, init.prototype.setSiteConfig = function (filterMode, countryId, options, siteId) { | |
/** @type {string} */ | |
this.countryId = countryId; | |
/** @type {string} */ | |
this.countryStateId = options; | |
/** @type {string} */ | |
this.countryGroupId = siteId; | |
/** @type {string} */ | |
this.filterMode = filterMode; | |
this._setStemFilterMode(); | |
}, init.prototype.setOddsTypeId = function (canCreateDiscussions) { | |
if (this.oddsTypeId != canCreateDiscussions) { | |
/** @type {!AudioNode} */ | |
this.oddsTypeId = canCreateDiscussions; | |
this.dispatchEvent(new IOBoardEvent(IOBoardEvent.ODDS_TYPE_CHANGED)); | |
} | |
}, init.prototype.setLanguageId = function (canCreateDiscussions) { | |
if (this.languageId != canCreateDiscussions) { | |
/** @type {string} */ | |
this.languageId = canCreateDiscussions; | |
this.dispatchEvent(new IOBoardEvent(IOBoardEvent.LANGUAGE_CHANGED)); | |
} | |
}, init.prototype.getFilterToken = function () { | |
return new RegExp("(" + this.countryCode64.replace("+", "\\+") + "|" + this.countryState64.replace("+", "\\+") + "|" + this.countryGroup64.replace("+", "\\+") + ")", "g"); | |
}, init.prototype._setStemFilterMode = function () { | |
var modPath; | |
/** @type {!Array} */ | |
var chars = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "+", "/"]; | |
/** @type {!Array} */ | |
var a = []; | |
/** @type {number} */ | |
var p = 0; | |
/** @type {number} */ | |
var d = 0; | |
/** @type {number} */ | |
var i = 0; | |
for (; 4096 > i;) { | |
modPath = chars[p] + chars[d]; | |
if ((i + 1) % 64 == 0) { | |
p++; | |
/** @type {number} */ | |
d = -1; | |
} | |
a[i] = modPath; | |
d++; | |
i++; | |
} | |
this.countryCode64 = a[1024 + Number(this.countryId)]; | |
this.countryState64 = a[2048 + Number(this.countryStateId)]; | |
this.countryGroup64 = a[Number(this.countryGroupId)]; | |
/** @type {boolean} */ | |
this.phoneOnlyEnabled = componentsStr.split(",").indexOf(this.countryCode64) > -1; | |
boxInput.FilterToken = this.getFilterToken(); | |
}, init.FILTER_MODE_COUNTRY_GROUP = "1", init.FILTER_MODE_COUNTRY = "2", init.FILTER_MODE_COUNTRY_STATE = "3", init; | |
}(ns_gen5_events.EventDispatcher); | |
self.User = user; | |
}(ns_gen5_data || (ns_gen5_data = {})), function (stellarApi) { | |
var MouseEvent = ns_gen5_events.Event365; | |
var localStorage = stellarApi.DataUtil; | |
var Event = stellarApi.SubscriptionManagerEvent; | |
var User = stellarApi.User; | |
var loader = ns_gen5_net.Loader; | |
var events = ns_gen5_net.LoaderEvent; | |
var Handler = ns_gen5_util.Delegate; | |
var exports = ns_gen5_util.InfoReporter; | |
var strBuff = ns_gen5_util.InfoReporterGroups; | |
var F = function (a) { | |
/** | |
* @return {?} | |
*/ | |
function n() { | |
return null !== a && a.apply(this, arguments) || this; | |
} | |
return __extends(n, a), n; | |
}(loader); | |
var Upgrade = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function Service() { | |
var self = _super.call(this) || this; | |
return self._dataInclusionExclusionLevel = "", self._customDataInclusionExclusionLevel = "", self._topicRequestLookup = null, self._initialised = false, self.canDebouncePVCN = true, self._topicRequestLookup = {}, self; | |
} | |
return __extends(Service, _super), Service.prototype.toString = function () { | |
return "[PullDataProcessor]"; | |
}, Service.prototype.loadPageData = function (name, n, width, keys) { | |
var config; | |
var owner; | |
var value; | |
var char_; | |
var entry; | |
var self; | |
if (this._initialised || this._initialise(), config = Locator.config, owner = Locator.user, value = config.apiLocation, char_ = this._dataInclusionExclusionLevel, width && (value = width, keys & stellarApi.SubscriptionManagerFlags.USE_CUSTOM_PARAMS && (char_ = this._customDataInclusionExclusionLevel)), -1 == value.indexOf("?") && (value = value + "?"), keys & stellarApi.SubscriptionManagerFlags.SUPPRESS_STANDARD_QS_PARAMS || (value = value + ("lid=" + owner.languageId + "&zid=" + owner.zoneId + | |
"&pd=" + escape(name) + "&cid=" + owner.countryId)), value = value + char_, null != n) { | |
for (entry in n) { | |
value = value + ("&" + entry + "=" + n[entry]); | |
} | |
} | |
self = new F; | |
/** @type {string} */ | |
self.pageTopic = name; | |
self.addEventListener(events.COMPLETE, new Handler(this, this._pageDataCompleteHandler)); | |
self.addEventListener(events.ERROR, new Handler(this, this._pageDataErrorHandler)); | |
self.load(value); | |
this._topicRequestLookup[name] = self; | |
}, Service.prototype.cancelPageDataLoad = function (name) { | |
var canvas = this._topicRequestLookup[name]; | |
if (canvas) { | |
try { | |
canvas.abort(); | |
delete this._topicRequestLookup[name]; | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
} | |
}, Service.prototype._initialise = function () { | |
var self = Locator.user; | |
if (this._initialised = true, self.countryGroupId && (this._dataInclusionExclusionLevel = "&cg=" + self.countryGroupId), self.filterMode) { | |
if ("-1" != self.filterMode) { | |
switch (self.filterMode) { | |
case User.FILTER_MODE_COUNTRY_GROUP: | |
/** @type {string} */ | |
this._dataInclusionExclusionLevel = "&cgid=" + self.countryGroupId; | |
break; | |
case User.FILTER_MODE_COUNTRY: | |
/** @type {string} */ | |
this._dataInclusionExclusionLevel = "&ctid=" + self.countryId; | |
break; | |
case User.FILTER_MODE_COUNTRY_STATE: | |
/** @type {string} */ | |
this._dataInclusionExclusionLevel = "&csid=" + self.countryStateId; | |
} | |
} | |
/** @type {string} */ | |
this._customDataInclusionExclusionLevel = "&csid=" + self.countryStateId + "&ctid=" + self.countryId + "&cgid=" + self.countryGroupId; | |
} | |
}, Service.prototype._pageDataCompleteHandler = function (a) { | |
var colors; | |
var color; | |
var value; | |
var i; | |
var il; | |
var iColor; | |
var node = this; | |
var aType = a.target; | |
var name = aType.pageTopic; | |
var ad = a.data; | |
delete this._topicRequestLookup[name]; | |
colors = ad.split("\b"); | |
il = colors.length; | |
/** @type {number} */ | |
iColor = 0; | |
for (; il > iColor; iColor++) { | |
color = colors[iColor]; | |
i = color.indexOf("IT="); | |
value = 1 == il ? name : color.slice(i + 3, color.indexOf(";", i)); | |
localStorage.ParseMessage(color, value); | |
} | |
Locator.validationManager.callLater(function () { | |
node.dispatchEvent(new MouseEvent(name)); | |
}); | |
if (this.canDebouncePVCN) { | |
/** @type {boolean} */ | |
this.canDebouncePVCN = false; | |
setTimeout(function () { | |
/** @type {boolean} */ | |
node.canDebouncePVCN = true; | |
Locator.validationManager.processValidationCycleNow(); | |
}, 0); | |
} | |
}, Service.prototype._pageDataErrorHandler = function (parameters) { | |
var element = parameters.target; | |
var type = element.pageTopic; | |
var action = parameters.status; | |
var dispatcher = Locator.subscriptionManager; | |
if (type) { | |
dispatcher.dispatchEvent(new Event(Event.ERROR + type)); | |
exports.Trace(strBuff.PULL_DATA_ENTRY, "Pull API IO Error on pageData: " + type + " - " + action); | |
dispatcher.unsubscribe(type); | |
delete this._topicRequestLookup[type]; | |
} | |
}, Service; | |
}(ns_gen5_events.EventDispatcher); | |
stellarApi.PullDataProcessor = Upgrade; | |
}(ns_gen5_data || (ns_gen5_data = {})), function (canCreateDiscussions) { | |
}(ns_gen5_ui || (ns_gen5_ui = {})), function (tile2) { | |
/** | |
* @return {?} | |
*/ | |
function makeTOCAtLevel() { | |
return s.length ? s.pop() : document.createComment(""); | |
} | |
/** | |
* @param {!Object} value | |
* @return {undefined} | |
*/ | |
function setElementTransformProperty(value) { | |
/** @type {!Object} */ | |
s[s.length] = value; | |
} | |
/** @type {!Array} */ | |
var s = []; | |
var tile1Pos = function (_super) { | |
/** | |
* @param {string} nodeName | |
* @return {?} | |
*/ | |
function Node(nodeName) { | |
var doc = _super.call(this) || this; | |
return doc._element = doc._active_element = doc.createElement ? doc.createElement(nodeName || "div") : document.createElement(nodeName || "div"), doc._element.wrapper = doc, doc; | |
} | |
return __extends(Node, _super), Node.prototype.toString = function () { | |
return "[DomElement]"; | |
}, Node.prototype.initialize = function () { | |
/** @type {boolean} */ | |
this.initialized = true; | |
}, Node.prototype.appendChild = function (newChild) { | |
/** @type {!Object} */ | |
var scene = newChild; | |
return newChild.parent = this, !scene.initialized && scene.initialize && (scene.nestLevel = this.nestLevel + 1, scene.initialize()), $assert && $assert("initialized" in newChild && scene.initialized || !("initialized" in newChild), "Child - " + newChild + " - is not initialized."), this._element.appendChild(scene._active_element), newChild; | |
}, Node.prototype.insertBefore = function (fn, data) { | |
if ($assert) { | |
$assert(data, "before is null or undefined!!!"); | |
} | |
/** @type {!Object} */ | |
var self = fn; | |
return fn.parent = this, !self.initialized && self.initialize && (self.nestLevel = this.nestLevel + 1, self.initialize()), this._element.insertBefore(self._active_element, data._active_element ? data._active_element : data), fn; | |
}, Node.prototype.insertAfter = function (sibling, data) { | |
var child; | |
var obj; | |
return $assert && $assert(data, "after is null or undefined!!!"), child = sibling, sibling.parent = this, !child.initialized && child.initialize && (child.nestLevel = this.nestLevel + 1, child.initialize()), obj = data._active_element ? data._active_element : data, obj.nextSibling ? this._element.insertBefore(child._active_element, obj.nextSibling) : this._element.appendChild(child._active_element), sibling; | |
}, Node.prototype.appendChildAt = function (result, index) { | |
var label; | |
/** @type {!Object} */ | |
var item = result; | |
return result.parent = this, !item.initialized && item.initialize && (item.nestLevel = this.nestLevel + 1, item.initialize()), label = this._element.children.length > index ? this._element.children[index] : null, this._element.insertBefore(item._active_element, label), result; | |
}, Node.prototype.removeChild = function (el) { | |
var config; | |
var href; | |
var location; | |
/** @type {!Object} */ | |
var child = el; | |
if (el.parent == this) { | |
/** @type {null} */ | |
el.parent = null; | |
try { | |
this._element.removeChild(child._active_element); | |
} catch (format) { | |
config = el.getElement(); | |
href = config.parentNode && config.parentNode.className || ""; | |
if (this._element.className || config.className || href) { | |
/** @type {string} */ | |
location = this._element.className + " " + config.className + " " + href; | |
ErrorReporter.Trace(location, format); | |
} else { | |
if ($assert) { | |
$assert(false, "Remove child has no parent when being called"); | |
} | |
} | |
} | |
} | |
return el; | |
}, Node.prototype.replaceChild = function (node, oldNode) { | |
if (oldNode.parent == this) { | |
/** @type {null} */ | |
oldNode.parent = null; | |
/** @type {!Object} */ | |
var child = node; | |
node.parent = this; | |
if (!child.initialized && child.initialize) { | |
child.nestLevel = this.nestLevel + 1; | |
child.initialize(); | |
} | |
this._element.replaceChild(child._active_element, oldNode._active_element); | |
} | |
return node; | |
}, Node.prototype.removeAllChildren = function () { | |
var header; | |
var child = this._element.firstChild; | |
for (; child;) { | |
header = child.wrapper; | |
child = child.nextSibling; | |
if (header) { | |
this.removeChild(header); | |
} | |
} | |
return this; | |
}, Node.prototype.suspendElementFromDom = function () { | |
var a; | |
var parent; | |
if (!this._suspended_markerNode) { | |
a = this._active_element = this._suspended_markerNode = makeTOCAtLevel(); | |
a.wrapper = this; | |
if (this.parent && this._element.parentNode) { | |
parent = this.parent._element; | |
parent.replaceChild(a, this._element); | |
} | |
} | |
}, Node.prototype.unsuspendElementFromDom = function () { | |
var e; | |
var node; | |
if (this._suspended_markerNode) { | |
e = this._suspended_markerNode; | |
/** @type {null} */ | |
e.wrapper = null; | |
/** @type {null} */ | |
this._suspended_markerNode = null; | |
this._active_element = this._element; | |
setElementTransformProperty(e); | |
if (this.parent && e.parentNode) { | |
node = this.parent._element; | |
node.replaceChild(this._element, e); | |
} | |
} | |
}, Node.prototype.setAttribute = function (name, value) { | |
return this._element.setAttribute(name, value), this; | |
}, Node.prototype.removeAttribute = function (name) { | |
return this._element.removeAttribute(name), this; | |
}, Node.prototype.getAttribute = function (name) { | |
return this._element.getAttribute(name); | |
}, Node.prototype.getElement = function () { | |
return this._element; | |
}, Node.prototype.getElementChildren = function () { | |
return this._element.children; | |
}, Node.prototype.getFirstChild = function () { | |
return this._element.firstChild; | |
}, Node.prototype.getLastChild = function () { | |
return this._element.lastChild; | |
}, Node.prototype.getPreviousSibling = function () { | |
return this._active_element.previousSibling; | |
}, Node.prototype.getNextSibling = function () { | |
return this._active_element.nextSibling; | |
}, Node.prototype.getInlineStyle = function () { | |
return this._element.style; | |
}, Node.prototype.getTooltip = function () { | |
return this.tooltip; | |
}, Node.SInit = function () { | |
/** @type {null} */ | |
Node.prototype._element = null; | |
/** @type {null} */ | |
Node.prototype._active_element = null; | |
/** @type {null} */ | |
Node.prototype.parent = null; | |
/** @type {boolean} */ | |
Node.prototype.initialized = false; | |
/** @type {number} */ | |
Node.prototype.nestLevel = 0; | |
/** @type {null} */ | |
Node.prototype._suspended_markerNode = null; | |
/** @type {null} */ | |
Node.prototype.tooltip = null; | |
/** @type {boolean} */ | |
Node.prototype.alwaysShowTooltip = false; | |
}(), Node; | |
}(ns_gen5_events.EventDispatcher); | |
tile2.DomElement = tile1Pos; | |
}(ns_gen5_ui || (ns_gen5_ui = {})), function (V) { | |
var Component = function (_super) { | |
/** | |
* @param {?} name | |
* @return {?} | |
*/ | |
function self(name) { | |
var n = _super.call(this, name) || this; | |
return n._styleList = {}, n; | |
} | |
return __extends(self, _super), self.prototype.toString = function () { | |
return "[Component]"; | |
}, self.prototype.initialize = function () { | |
if (1 != this._stopInitInvalidation) { | |
Locator.validationManager.queueForValidation(this); | |
/** @type {boolean} */ | |
this._propertiesInvalidated = true; | |
} | |
this.createChildren(); | |
/** @type {boolean} */ | |
this.initialized = true; | |
}, self.prototype.setAttribute = function (name, a) { | |
return $assert && $assert("class" != name, "It's not safe to use 'setAttribute(\"class\",' with a Component instance. Use 'addStyle' instead."), _super.prototype.setAttribute.call(this, name, a); | |
}, self.prototype.createChildren = function () { | |
}, self.prototype.commitProperties = function () { | |
}, self.prototype.commitStyles = function () { | |
var minutes; | |
/** @type {string} */ | |
var value = ""; | |
for (minutes in this._styleList) { | |
/** @type {string} */ | |
value = value + (minutes + " "); | |
} | |
/** @type {string} */ | |
this._element.className = value; | |
}, self.prototype.hasStyle = function (name) { | |
return !!this._styleList[name]; | |
}, self.prototype.addStyle = function (name) { | |
return this._styleList[name] = true, this._stylesInvalidated || this.invalidateStyles(), this; | |
}, self.prototype.removeStyle = function (name) { | |
return delete this._styleList[name], this._stylesInvalidated || this.invalidateStyles(), this; | |
}, self.prototype.overwriteStyle = function (keyringConnectionId, siteId) { | |
return delete this._styleList[keyringConnectionId], this._styleList[siteId] = true, this.invalidateStyles(), this; | |
}, self.prototype.setVisible = function (bool) { | |
return bool != this._visible && (this._visible = bool, bool ? this.removeStyle("Hidden") : this.addStyle("Hidden")), this; | |
}, self.prototype.getVisible = function () { | |
return this._visible; | |
}, self.prototype.invalidateProperties = function () { | |
return this._propertiesInvalidated = true, 1 != this.validationState && this.parent && Locator.validationManager.queueForValidation(this), this; | |
}, self.prototype.invalidateStyles = function () { | |
return this._stylesInvalidated = true, 0 == this.validationState && this.parent && Locator.validationManager.queueForValidation(this), this; | |
}, self.prototype.validateNow = function (addedRenderer) { | |
if (this._propertiesInvalidated) { | |
/** @type {boolean} */ | |
this._propertiesInvalidated = false; | |
this.commitProperties(); | |
} | |
if (this._stylesInvalidated) { | |
/** @type {boolean} */ | |
this._stylesInvalidated = false; | |
this.commitStyles(); | |
} | |
if (0 != addedRenderer) { | |
/** @type {number} */ | |
this.validationState = 0; | |
} | |
}, self.Wrapper = function (selector) { | |
var value; | |
var optionText; | |
var options; | |
var l; | |
var i; | |
ns_gen5_events.EventDispatcher.call(this); | |
/** @type {boolean} */ | |
this.parent = true; | |
/** @type {!Object} */ | |
this._element = selector; | |
selector.wrapper = this; | |
value = this._element.getAttribute("class"); | |
optionText = {}; | |
options = value ? value.split(" ") : []; | |
l = options.length; | |
/** @type {number} */ | |
i = 0; | |
for (; l > i; i++) { | |
/** @type {boolean} */ | |
optionText[options[i]] = true; | |
} | |
this._styleList = optionText; | |
}, self.SInit = function () { | |
/** @type {null} */ | |
self.prototype._styleList = null; | |
/** @type {boolean} */ | |
self.prototype._propertiesInvalidated = false; | |
/** @type {boolean} */ | |
self.prototype._stylesInvalidated = false; | |
/** @type {boolean} */ | |
self.prototype._visible = true; | |
/** @type {boolean} */ | |
self.prototype._stopInitInvalidation = false; | |
/** @type {number} */ | |
self.prototype.validationState = 0; | |
self.Wrapper.prototype = new self; | |
}(), self; | |
}(V.DomElement); | |
V.Component = Component; | |
}(ns_gen5_ui || (ns_gen5_ui = {})), function (exports) { | |
var Deferred = exports.DomElement; | |
/** @type {number} */ | |
var count = 0; | |
var WebinosNotificationModule = function (_super) { | |
/** | |
* @param {?} message | |
* @return {?} | |
*/ | |
function Element(message) { | |
var node = _super.call(this, message) || this; | |
return node.root = new Deferred, node.uid = ++count, node; | |
} | |
return __extends(Element, _super), Element.prototype.toString = function () { | |
return "[Module]"; | |
}, Element.getRoot = function (node) { | |
for (; node;) { | |
if (node instanceof Element) { | |
return node; | |
} | |
node = node.parent; | |
} | |
return null; | |
}, Element.prototype.initialize = function () { | |
_super.prototype.initialize.call(this); | |
ns_gen5_util.Singleton.RegisterModule(this); | |
if (!(this.parent && this.parent.parent || this.parent instanceof exports.ModuleContainer)) { | |
this.parent = this.root; | |
this.moduleReady(); | |
} | |
}, Element.prototype.moduleReady = function () { | |
/** @type {boolean} */ | |
this.ready = true; | |
}, Element.prototype.dispose = function () { | |
var e = this; | |
/** @type {boolean} */ | |
this.disposed = true; | |
Locator.validationManager.callNewContext(function () { | |
ns_gen5_util.Singleton.RemoveScope(e); | |
}); | |
}, Element; | |
}(exports.Component); | |
exports.Module = WebinosNotificationModule; | |
}(ns_gen5_ui || (ns_gen5_ui = {})), function (self) { | |
var mouseoverEvent; | |
var callback; | |
var Event = self.SubscriptionManagerEvent; | |
var Buffer = ns_gen5_util.Delegate; | |
var r = ns_gen5_util_logging.CounterLogger; | |
/** @type {number} */ | |
var tickZoom = 15e3; | |
/** @type {string} */ | |
var max = "SPTBK"; | |
var SubscriptionManager = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function options() { | |
var self = _super.call(this) || this; | |
return self.pushConnected = false, self.topicCountLookup = {}, self.hasLoggedCounter = false, self.unsubscribeDeferralPeriodMS = tickZoom, self._subscribedTopics = {}, self.unsubscribeGraceLookup = {}, self.batchSubscribe = "", self.batchUnsubscribe = "", self._streamDataProcessor = null, self.pullDataProcessor = null, self.delegatesnapshotRecievedHandler = new Buffer(self, self.snapshotRecievedHandler), self.delegatepushConnectedHandler = new Buffer(self, self.pushConnectedHandler), self.delegatepushReConnectedHandler = | |
new Buffer(self, self.pushReConnectedHandler), self.delegatepushConnectFailedHandler = new Buffer(self, self.pushConnectFailedHandler), self.callback_submitBatch = function () { | |
return self.submitBatch(); | |
}, self; | |
} | |
return __extends(options, _super), options.prototype.toString = function () { | |
return "[SubscriptionManager]"; | |
}, options.prototype.connect = function () { | |
this._streamDataProcessor.connect(mouseoverEvent, callback); | |
}, options.prototype.subscribe = function (key, value, path, e) { | |
var okfunc; | |
var val; | |
var n; | |
var newValue; | |
var icon; | |
var _takingTooLongTimeout; | |
return "boolean" == typeof path && (okfunc = arguments[2], val = arguments[3], n = arguments[4], newValue = arguments[5], path = 0, okfunc || (path = path | self.SubscriptionManagerFlags.SUPPRESS_SERVER_MESSAGE), val || (path = path | self.SubscriptionManagerFlags.SUPPRESS_FULL_HIERARCHY), n && (e = n), newValue && (path = path | self.SubscriptionManagerFlags.BATCH)), key ? (options.DevicePrefix && key.indexOf("X^{0}") > -1 && (key = key.replace("{0}", options.DevicePrefix)), icon = Locator.treeLookup.getReference(key), | |
_takingTooLongTimeout = this.unsubscribeGraceLookup[key], _takingTooLongTimeout && (clearTimeout(_takingTooLongTimeout), !icon && this._subscribedTopics[key] && delete this._subscribedTopics[key], delete this.unsubscribeGraceLookup[key]), icon ? Locator.validationManager.callLater(function () { | |
return value.method.call(value.scope, new Event(key)); | |
}) : (this.addEventListener(key, value), this._subscribedTopics[key] ? this._subscribedTopics[key].push(value) : (this._subscribedTopics[key] = [value], "#" == key.charAt(0) ? (path & self.SubscriptionManagerFlags.SUPPRESS_SERVER_MESSAGE || this.pullDataProcessor.loadPageData(key, null, e, path), this.pullDataProcessor.addEventListener(key, this.delegatesnapshotRecievedHandler)) : (path & self.SubscriptionManagerFlags.SUPPRESS_SERVER_MESSAGE || (path & self.SubscriptionManagerFlags.DONT_BATCH ? | |
this._streamDataProcessor.subscribe(key) : this._addToSubscribeBuffer(key)), this._streamDataProcessor.addEventListener(key, this.delegatesnapshotRecievedHandler)))), key) : null; | |
}, options.prototype.sharedSubscribe = function (c, callback, options, context) { | |
return this.topicCountLookup[c] = this.topicCountLookup[c] ? this.topicCountLookup[c] + 1 : 1, this.subscribe(c, callback, options, context); | |
}, options.prototype.sharedUnsubscribe = function (name, callback) { | |
/** @type {number} */ | |
this.topicCountLookup[name] = this.topicCountLookup[name] - 1; | |
if (this.topicCountLookup[name] < 1) { | |
delete this.topicCountLookup[name]; | |
this.unsubscribe(name, callback); | |
} | |
}, options.prototype.unsubscribe = function (type, fn) { | |
var name; | |
var remove; | |
var callback; | |
var jQuery = this; | |
if (type) { | |
if (options.DevicePrefix && type.indexOf("X^{0}") > -1) { | |
type = type.replace("{0}", options.DevicePrefix); | |
} | |
name = Locator.treeLookup.getReference(type); | |
if (name) { | |
name.shed(); | |
} | |
if ("#" != type.charAt(0)) { | |
if (!(fn & self.SubscriptionManagerFlags.SUPPRESS_SERVER_MESSAGE)) { | |
if (!name) { | |
if (this._streamDataProcessor.hasEventListener(type)) { | |
this._streamDataProcessor.removeEventListener(type, this.delegatesnapshotRecievedHandler); | |
} | |
} | |
if (!this.unsubscribeGraceLookup[type] || fn & self.SubscriptionManagerFlags.NO_GRACE_PERIOD) { | |
/** | |
* @return {undefined} | |
*/ | |
remove = function () { | |
if (fn & self.SubscriptionManagerFlags.DONT_BATCH) { | |
jQuery._streamDataProcessor.unsubscribe(type); | |
} else { | |
jQuery.addToUnsubscribeBuffer(type); | |
} | |
jQuery.clearDownTopic(type, name); | |
var _takingTooLongTimeout = jQuery.unsubscribeGraceLookup[type]; | |
if (_takingTooLongTimeout) { | |
clearTimeout(_takingTooLongTimeout); | |
delete jQuery.unsubscribeGraceLookup[type]; | |
} | |
}; | |
if (fn & self.SubscriptionManagerFlags.NO_GRACE_PERIOD || this.unsubscribeDeferralPeriodMS <= 0) { | |
remove(); | |
} else { | |
/** @type {number} */ | |
callback = setTimeout(remove, this.unsubscribeDeferralPeriodMS); | |
/** @type {number} */ | |
this.unsubscribeGraceLookup[type] = callback; | |
} | |
} | |
} | |
} else { | |
if (!this.unsubscribeGraceLookup[type] || fn & self.SubscriptionManagerFlags.NO_GRACE_PERIOD) { | |
/** | |
* @return {undefined} | |
*/ | |
remove = function () { | |
jQuery.pullDataProcessor.cancelPageDataLoad(type); | |
jQuery.clearDownTopic(type, name); | |
var e = jQuery.unsubscribeGraceLookup[type]; | |
if (e) { | |
clearTimeout(e); | |
delete jQuery.unsubscribeGraceLookup[type]; | |
} | |
}; | |
if (fn & self.SubscriptionManagerFlags.NO_GRACE_PERIOD || !name) { | |
remove(); | |
} else { | |
/** @type {number} */ | |
callback = setTimeout(remove, this.unsubscribeDeferralPeriodMS); | |
/** @type {number} */ | |
this.unsubscribeGraceLookup[type] = callback; | |
} | |
} | |
} | |
} | |
}, options.prototype.clearDownTopic = function (event, module) { | |
this.removeListenersForTopic(event); | |
delete this._subscribedTopics[event]; | |
if (module) { | |
module.remove(); | |
} | |
}, options.prototype.send = function (value, text) { | |
this._streamDataProcessor.send(value, text); | |
}, options.prototype.resubscribePush = function (nodeDict) { | |
var key; | |
for (key in nodeDict) { | |
if ("#" != key.charAt(0)) { | |
this._addToSubscribeBuffer(key); | |
} | |
} | |
}, options.prototype.getSubscribedPushTopics = function () { | |
var width; | |
/** @type {!Array} */ | |
var attrs = []; | |
for (width in this._subscribedTopics) { | |
if ("#" != width.charAt(0)) { | |
/** @type {string} */ | |
attrs[attrs.length] = width; | |
} | |
} | |
return attrs; | |
}, options.prototype.setStreamDataProcessor = function (canCreateDiscussions) { | |
var n = this; | |
if (this._streamDataProcessor) { | |
this._streamDataProcessor.removeEventListener(self.StreamDataProcessorEvent.CONNECTED, this.delegatepushConnectedHandler); | |
this._streamDataProcessor.removeEventListener(self.StreamDataProcessorEvent.CONNECTION_FAILED, this.delegatepushConnectFailedHandler); | |
this._streamDataProcessor.removeEventListener(self.StreamDataProcessorEvent.RECONNECT_FAILED, this.delegatepushConnectFailedHandler); | |
this._streamDataProcessor.removeEventListener(self.StreamDataProcessorEvent.SERVER_RECONNECT, this.delegatepushReConnectedHandler); | |
} | |
/** @type {!Object} */ | |
this._streamDataProcessor = canCreateDiscussions; | |
/** | |
* @return {?} | |
*/ | |
this._streamDataProcessor.getCurrentTopics = function () { | |
return n.getSubscribedPushTopics(); | |
}; | |
this._streamDataProcessor.addEventListener(self.StreamDataProcessorEvent.CONNECTED, this.delegatepushConnectedHandler); | |
this._streamDataProcessor.addEventListener(self.StreamDataProcessorEvent.CONNECTION_FAILED, this.delegatepushConnectFailedHandler); | |
this._streamDataProcessor.addEventListener(self.StreamDataProcessorEvent.RECONNECT_FAILED, this.delegatepushConnectFailedHandler); | |
this._streamDataProcessor.addEventListener(self.StreamDataProcessorEvent.SERVER_RECONNECT, this.delegatepushReConnectedHandler); | |
}, options.prototype.setNST = function (e, value) { | |
mouseoverEvent = e; | |
/** @type {string} */ | |
callback = value; | |
this._streamDataProcessor.setNst(e, value); | |
}, options.prototype.sendNSTToken = function (e, fn) { | |
var nextValue; | |
var divE; | |
var data; | |
mouseoverEvent = e; | |
/** @type {string} */ | |
callback = fn; | |
this._streamDataProcessor.setNst(e, fn); | |
nextValue = callback && callback(); | |
if (nextValue && Date.now() / 1e3 > nextValue) { | |
if (!this.hasLoggedCounter) { | |
/** @type {boolean} */ | |
this.hasLoggedCounter = true; | |
r.QueueCounter("nst_timestamp_1", 1); | |
r.ForceCounterFlush(); | |
} | |
} | |
divE = e(); | |
/** @type {string} */ | |
data = "nst" + readit.StandardProtocolConstants.RECORD_DELIM + divE + readit.StandardProtocolConstants.FIELD_DELIM + max; | |
this.send("command", data); | |
}, options.prototype.setPullDataProcessor = function (canCreateDiscussions) { | |
/** @type {!Element} */ | |
this.pullDataProcessor = canCreateDiscussions; | |
}, options.prototype.close = function () { | |
this._streamDataProcessor.close(readit.ReaditFlags.SEND_CLOSE); | |
}, options.prototype._addToSubscribeBuffer = function (gen_id) { | |
if (0 == this.batchSubscribe.length && 0 == this.batchUnsubscribe.length) { | |
Locator.validationManager.callLater(this.callback_submitBatch); | |
} else { | |
if (this.batchSubscribe) { | |
this.batchSubscribe += ","; | |
} | |
} | |
this.batchSubscribe += gen_id; | |
}, options.prototype.addToUnsubscribeBuffer = function (deltaType) { | |
if (0 == this.batchSubscribe.length && 0 == this.batchUnsubscribe.length) { | |
Locator.validationManager.callLater(this.callback_submitBatch); | |
} else { | |
if (this.batchUnsubscribe) { | |
this.batchUnsubscribe += ","; | |
} | |
} | |
this.batchUnsubscribe += deltaType; | |
}, options.prototype.submitBatch = function () { | |
if (this.batchSubscribe && this.batchUnsubscribe) { | |
this._streamDataProcessor.swapSubscriptions(this.batchSubscribe, this.batchUnsubscribe); | |
} else { | |
if (this.batchSubscribe) { | |
this._streamDataProcessor.subscribe(this.batchSubscribe); | |
} | |
if (this.batchUnsubscribe) { | |
this._streamDataProcessor.unsubscribe(this.batchUnsubscribe); | |
} | |
} | |
/** @type {string} */ | |
this.batchSubscribe = ""; | |
/** @type {string} */ | |
this.batchUnsubscribe = ""; | |
}, options.prototype.removeListenersForTopic = function (type) { | |
var l; | |
var i; | |
var types = this._subscribedTopics[type]; | |
if (types) { | |
l = types.length; | |
/** @type {number} */ | |
i = 0; | |
for (; l > i; i++) { | |
this.removeEventListener(type, types[i]); | |
} | |
/** @type {number} */ | |
types.length = 0; | |
} | |
}, options.prototype._OtsReport = function () { | |
var kicadpin; | |
/** @type {string} */ | |
var kicadpins = ""; | |
for (kicadpin in this._subscribedTopics) { | |
/** @type {string} */ | |
kicadpins = kicadpins + (kicadpin + "\t\r\n"); | |
} | |
return kicadpins; | |
}, options.prototype.snapshotRecievedHandler = function (event) { | |
event.target.removeEventListener(event.type, this.delegatesnapshotRecievedHandler); | |
try { | |
this.dispatchEvent(new Event(event.type)); | |
this.removeListenersForTopic(event.type); | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
}, options.prototype.pushReConnectedHandler = function () { | |
if (mouseoverEvent) { | |
this.sendNSTToken(mouseoverEvent, callback); | |
} | |
}, options.prototype.pushConnectedHandler = function () { | |
if (!this.pushConnected) { | |
this.dispatchEvent(new Event(Event.CONNECTED)); | |
} | |
/** @type {boolean} */ | |
this.pushConnected = true; | |
/** @type {number} */ | |
this.unsubscribeDeferralPeriodMS = tickZoom; | |
}, options.prototype.pushConnectFailedHandler = function () { | |
if (this.pushConnected) { | |
this.dispatchEvent(new Event(Event.CONNECTION_FAILED)); | |
} | |
/** @type {boolean} */ | |
this.pushConnected = false; | |
/** @type {number} */ | |
this.unsubscribeDeferralPeriodMS = 0; | |
}, options.TOPIC_FALLBACK_INDICATOR = "*", options; | |
}(ns_gen5_events.EventDispatcher); | |
self.SubscriptionManager = SubscriptionManager; | |
}(ns_gen5_data || (ns_gen5_data = {})), function (ctx) { | |
var delegateManager = ns_gen5_util.Delegate; | |
var 28010D = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function i() { | |
return _super.call(this) || this; | |
} | |
return __extends(i, _super), i.prototype.setStreamDataProcessor = function (i) { | |
if (this._streamDataProcessor) { | |
this._streamDataProcessor.removeEventListener(ctx.PrivateStreamDataProcessorEvent.BALANCE_RECEIVED, this.delegate_balanceReceivedHandler); | |
this._streamDataProcessor.removeEventListener(ctx.PrivateStreamDataProcessorEvent.PUSH_MESSAGE_RECEIVED, this.delegate_pushMessageReceivedHandler); | |
this._streamDataProcessor.removeEventListener(ctx.PrivateStreamDataProcessorEvent.D23_MESSAGE_RECEIVED, this.delegate_d23MessageReceivedHandler); | |
} else { | |
this.delegate_balanceReceivedHandler = new delegateManager(this, this.balanceReceivedHandler); | |
this.delegate_pushMessageReceivedHandler = new delegateManager(this, this.pushMessageReceivedHandler); | |
this.delegate_d23MessageReceivedHandler = new delegateManager(this, this.d23MessageReceivedHandler); | |
} | |
_super.prototype.setStreamDataProcessor.call(this, i); | |
this._streamDataProcessor.addEventListener(ctx.PrivateStreamDataProcessorEvent.BALANCE_RECEIVED, this.delegate_balanceReceivedHandler); | |
this._streamDataProcessor.addEventListener(ctx.PrivateStreamDataProcessorEvent.PUSH_MESSAGE_RECEIVED, this.delegate_pushMessageReceivedHandler); | |
this._streamDataProcessor.addEventListener(ctx.PrivateStreamDataProcessorEvent.D23_MESSAGE_RECEIVED, this.delegate_d23MessageReceivedHandler); | |
}, i.prototype.balanceReceivedHandler = function (data) { | |
this.dispatchEvent(new ctx.PrivateSubscriptionManagerEvent(ctx.PrivateSubscriptionManagerEvent.BALANCE_RECEIVED, data.message.topic, data.message.message)); | |
}, i.prototype.pushMessageReceivedHandler = function (data) { | |
this.dispatchEvent(new ctx.PrivateSubscriptionManagerEvent(ctx.PrivateSubscriptionManagerEvent.PUSH_MESSAGE_RECEIVED, data.message.topic, data.message.message)); | |
}, i.prototype.d23MessageReceivedHandler = function (data) { | |
this.dispatchEvent(new ctx.PrivateSubscriptionManagerEvent(ctx.PrivateSubscriptionManagerEvent.D23_MESSAGE_RECEIVED, data.message.topic, data.message.message)); | |
}, i.prototype.getSubscribedPushTopics = function () { | |
return []; | |
}, i.prototype.pushReConnectedHandler = function () { | |
_super.prototype.resubscribePush.call(this, this._subscribedTopics); | |
}, i; | |
}(ctx.SubscriptionManager); | |
ctx.PrivateSubscriptionManager = 28010D; | |
}(ns_gen5_data || (ns_gen5_data = {})), function (stellarApi) { | |
var console = stellarApi.DataUtil; | |
var Error = ns_gen5_net.Loader; | |
var Upgrade = function () { | |
/** | |
* @param {string} path | |
* @param {string} ownUserName | |
* @param {!Array} revision | |
* @return {undefined} | |
*/ | |
function AjaxAdapter(path, ownUserName, revision) { | |
if (void 0 === revision) { | |
/** @type {boolean} */ | |
revision = false; | |
} | |
/** | |
* @param {?} a22 | |
* @return {undefined} | |
*/ | |
this.initialSnapshotHandler = function (a22) { | |
}; | |
/** @type {string} */ | |
this.url = path; | |
/** @type {string} */ | |
this.topic = ownUserName; | |
if (revision) { | |
this.buildInclusionExclusionData(); | |
} | |
} | |
return AjaxAdapter.prototype.poll = function () { | |
var result; | |
var self = this; | |
if (this.dataInclusionExclusionLevel) { | |
/** @type {string} */ | |
this.url = -1 === this.url.indexOf("?") ? this.url + "?" : this.url + "&"; | |
this.url += "pd=" + encodeURIComponent(this.topic); | |
this.url += "&" + this.dataInclusionExclusionLevel; | |
/** @type {null} */ | |
this.dataInclusionExclusionLevel = null; | |
} | |
result = new Error; | |
/** | |
* @param {string} event | |
* @param {number} data | |
* @return {undefined} | |
*/ | |
result.completeHandler = function (event, data) { | |
if (200 === data) { | |
self.handleResponse(event); | |
} | |
}; | |
result.load(this.url); | |
}, AjaxAdapter.prototype.handleResponse = function (type) { | |
var nFrame; | |
var oFrame; | |
var o; | |
var touchSystem = this; | |
var name = this.topic; | |
/** @type {boolean} */ | |
var value = !!Locator.treeLookup.getReference(name); | |
var iframe = value ? console.ParseMergeMessage(type, name) : console.ParseMessage(type, name); | |
/** @type {number} */ | |
nFrame = 0; | |
oFrame = iframe; | |
for (; nFrame < oFrame.length; nFrame++) { | |
o = oFrame[nFrame]; | |
if (value) { | |
name = o.topic; | |
} | |
console.ProcessStemChanges(o, name, this.topic, value, function (e) { | |
return touchSystem.initialSnapshotHandler(e); | |
}); | |
} | |
if (this.pollCompleteHandler) { | |
this.pollCompleteHandler(); | |
} | |
}, AjaxAdapter.prototype.buildInclusionExclusionData = function () { | |
var $scope = Locator.user; | |
if (this.dataInclusionExclusionLevel = "cid=" + $scope.countryId + "&cg=" + $scope.countryGroupId + "&lid=" + $scope.languageId + "&zid=" + $scope.zoneId, $scope.filterMode && "-1" != $scope.filterMode) { | |
switch ($scope.filterMode) { | |
case stellarApi.User.FILTER_MODE_COUNTRY_GROUP: | |
this.dataInclusionExclusionLevel += "&cgid=" + $scope.countryGroupId; | |
break; | |
case stellarApi.User.FILTER_MODE_COUNTRY: | |
this.dataInclusionExclusionLevel += "&ctid=" + $scope.countryId; | |
break; | |
case stellarApi.User.FILTER_MODE_COUNTRY_STATE: | |
this.dataInclusionExclusionLevel += "&csid=" + $scope.countryStateId; | |
} | |
} | |
}, AjaxAdapter; | |
}(); | |
stellarApi.PollDataProcessor = Upgrade; | |
}(ns_gen5_data || (ns_gen5_data = {})), function (state) { | |
var size = function (_super) { | |
/** | |
* @param {?} nguiMapComponent | |
* @return {?} | |
*/ | |
function DirectionsRenderer(nguiMapComponent) { | |
return _super.call(this, nguiMapComponent) || this; | |
} | |
return __extends(DirectionsRenderer, _super), DirectionsRenderer.prototype.toString = function () { | |
return "[PushedConfigPropertyChangeEvent type=" + this.type + "]"; | |
}, DirectionsRenderer.PROPERTIES_INITIALISED = "PUSH_CONFIG_PROPERTIES_INITIALISED", DirectionsRenderer.IS_INPLAY_AVAILABLE = "IS_INPLAY_AVAILABLE", DirectionsRenderer.INPLAY_LAUNCHER_DISPLAY_MODE = "INPLAY_LAUNCHER_CONTENT_TYPE", DirectionsRenderer.INPLAY_RHS_LAUNCHER_DISPLAY_MODE = "INPLAY_RHS_LAUNCHER_CONTENT_TYPE", DirectionsRenderer.IS_MYBETS_SYSTEM_ENABLED = "IS_MYBETS_SYSTEM_ENABLED", DirectionsRenderer.IS_OPEN_BETS_PULL_DELIVERY_AVAILABLE = "IS_OPEN_BETS_PULL_DELIVERY_AVAILABLE", DirectionsRenderer.IS_CLOSE_BETS_PULL_DELIVERY_AVAILABLE = | |
"IS_CLOSE_BETS_PULL_DELIVERY_AVAILABLE", DirectionsRenderer.IS_MYBETS_SITE_FEATURE_AVAILABLE = "IS_MYBETS_SITE_FEATURE_AVAILABLE", DirectionsRenderer.IS_CLICK_TO_CALL_SITE_FEATURE_AVAILABLE = "IS_CLICK_TO_CALL_SITE_FEATURE_AVAILABLE", DirectionsRenderer.IS_BET_CALL_AVAILABLE = "IS_BET_CALL_AVAILABLE", DirectionsRenderer.IS_BET_CALL_TWILIO_AVAILABLE = "IS_BET_CALL_TWILIO_AVAILABLE", DirectionsRenderer.IS_CUSTOMER_TO_CUSTOMER_CALLING_FEATURE_AVAILABLE = "IS_CUSTOMER_TO_CUSTOMER_CALLING_FEATURE_AVAILABLE", | |
DirectionsRenderer.IS_CUSTOMER_TO_REPRESENTATIVE_CALLING_FEATURE_AVAILABLE = "IS_CUSTOMER_TO_REPRESENTATIVE_CALLING_FEATURE_AVAILABLE", DirectionsRenderer.PUSH_BALANCE_ENABLED_AVAILABLE = "PUSH_BALANCE_ENABLED_AVAIBLE", DirectionsRenderer.IS_SETTLED_BETS_FEATURE_AVAILABLE = "IS_SETTLED_BETS_FEATURE_AVAILABLE", DirectionsRenderer.IS_EDIT_BETS_FEATURE_AVAILABLE = "IS_EDIT_BETS_FEATURE_AVAILABLE", DirectionsRenderer.IS_EDIT_BETS_COMPLEX_MULTIPLES_FEATURE_AVAILABLE = "IS_EDIT_BETS_COMPLEX_MULTIPLE_FEATURE_AVAILABLE", | |
DirectionsRenderer.IS_AUS_MULTIPLES_AVAILABLE = "IS_AUS_MULTIPLES_AVAILABLE", DirectionsRenderer.FREE_BET_COUNTRIES_UPDATED = "FREE_BET_COUNTRIES_UPDATED", DirectionsRenderer.PSQFV4_AVAILABLE = "PSQFV4_AVAILABLE", DirectionsRenderer; | |
}(ns_gen5_events.Event365); | |
state.PushedConfigPropertyChangeEvent = size; | |
}(ns_gen5_config || (ns_gen5_config = {})), function (outValue) { | |
/** | |
* @param {string} c | |
* @return {undefined} | |
*/ | |
function listen(c) { | |
if (c && c.length > 0) { | |
c = ns_gen5_util.B365SimpleEncrypt.decrypt(c); | |
Locator.subscriptionManager.subscribe(c, new Error(this, function (canCreateDiscussions) { | |
})); | |
} | |
} | |
var n; | |
var i; | |
var o = ns_gen5_util.OddsConverter; | |
var EventDispatcher = ns_gen5_events.EventDispatcher; | |
var Event = ns_gen5_events.Event365; | |
var ConnectionEvents = ns_gen5_data.SubscriptionManagerEvent; | |
var handler = ns_gen5_data.StemEvent; | |
var Error = ns_gen5_util.Delegate; | |
!function (result) { | |
/** @type {string} */ | |
result[result.fixture = 0] = "fixture"; | |
/** @type {string} */ | |
result[result.classification = 1] = "classification"; | |
}(n = outValue.InplayLauncherDisplayModeEnum || (outValue.InplayLauncherDisplayModeEnum = {})); | |
i = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function Tag() { | |
var self = _super.call(this) || this; | |
return self._subscriptionTopic = null, self._subscriptionManager = null, self._configStem = null, self._configStemUpdateHandlerDelegate = null, self._configStemDeleteHandlerDelegate = null, self._pushConnectedHandlerDelegate = null, self._pushDisconnectedHandlerDelegate = null, self._isSubscriptionInitialised = false, self._isDisposed = false, self._pushConnected = false, self._arePropertiesInitialised = false, self._isInPlayDataAvailable = false, self._isMyBetsSystemEnabled = false, self._isOpenBetsPullDeliveryAvailable = | |
false, self._isMyBetsSiteFeatureAvailable = false, self._isBetCallAvailable = false, self._isAusMultiplesAvailable = false, self._isBetCallTwilioAvailable = false, self._isPushBalanceEnabled = false, self._settledBetsEnabled = false, self._isCloseBetPullPresentationEnabled = true, self._isEditBetsEnabled = false, self.psqfV4Enabled = false, self.freeBetCountries = [], self.editBetsComplexMultiplesEnabled = false, self.betCallDisabledAttribute = "MB", self.ausMultiplesDisabledAttribute = "AM", | |
self.betCallTwilioDisabledAttribute = "MT", self.settledBetsDisabledAttribute = "SB", self.pushBalanceEnabledAttribute = "PB", self.complexMultiplesEnabledAttribute = "EM", self; | |
} | |
return __extends(Tag, _super), Tag.prototype.initialiseSubscription = function (p, n) { | |
if (!(this._isSubscriptionInitialised || this._isDisposed)) { | |
this._pushConnectedHandlerDelegate = new Error(this, this.pushConnectedHandler); | |
this._pushDisconnectedHandlerDelegate = new Error(this, this.pushDisconnectedHandler); | |
Locator.privateSubscriptionManager.addEventListener(ConnectionEvents.CONNECTED, this._pushConnectedHandlerDelegate); | |
Locator.privateSubscriptionManager.addEventListener(ConnectionEvents.CONNECTION_FAILED, this._pushDisconnectedHandlerDelegate); | |
/** @type {boolean} */ | |
this._isSubscriptionInitialised = true; | |
this._subscriptionTopic = ns_gen5_util.StringUtil.Format(Tag.USER_CONFIG_SUBSCRIPTION_TOPIC, n.languageId, n.zoneId); | |
/** @type {!Object} */ | |
this._subscriptionManager = p; | |
p.subscribe(this._subscriptionTopic, new Error(this, this.configTopicSubscriptionHandler)); | |
} | |
}, Tag.prototype.getArePropertiesInitialised = function () { | |
return this._arePropertiesInitialised; | |
}, Tag.prototype.getAttributeValue = function (target) { | |
return this._configStem && this._configStem.data[target] || ""; | |
}, Tag.prototype.getIsInPlayAvailable = function () { | |
return this._isInPlayDataAvailable; | |
}, Tag.prototype.getIsMyBetsSystemEnabled = function () { | |
return this._isMyBetsSystemEnabled; | |
}, Tag.prototype.getIsOpenBetsPullDeliveryAvailable = function () { | |
return this._isOpenBetsPullDeliveryAvailable; | |
}, Tag.prototype.getIsCloseBetPullPresentationEnabled = function () { | |
return this._isCloseBetPullPresentationEnabled; | |
}, Tag.prototype.getIsMyBetsSiteFeatureAvailable = function () { | |
return this._isMyBetsSiteFeatureAvailable; | |
}, Tag.prototype.getIsBetCallAvailable = function () { | |
return this._isBetCallAvailable; | |
}, Tag.prototype.getIsAusMultiplesAvailable = function () { | |
return this._isAusMultiplesAvailable; | |
}, Tag.prototype.getIsBetCallTwilioAvailable = function () { | |
return this._isBetCallTwilioAvailable; | |
}, Tag.prototype.getIsPushBalanceEnabled = function () { | |
return this._isPushBalanceEnabled; | |
}, Tag.prototype.getIsEditBetsEnabled = function () { | |
return this._isEditBetsEnabled; | |
}, Tag.prototype.getIsSettledBetsEnabled = function () { | |
return this._settledBetsEnabled; | |
}, Tag.prototype.getIsEditBetsComplexEnabled = function () { | |
return this.editBetsComplexMultiplesEnabled; | |
}, Tag.prototype.getIsPSQFV4Enabled = function () { | |
return this.psqfV4Enabled; | |
}, Tag.prototype.getIsFreeBetsAllowed = function (e) { | |
return this.freeBetCountries.indexOf(e) > -1; | |
}, Tag.prototype.dispose = function () { | |
if (!this._isDisposed) { | |
/** @type {boolean} */ | |
this._isDisposed = true; | |
if (this._subscriptionTopic) { | |
Locator.privateSubscriptionManager.removeEventListener(ConnectionEvents.CONNECTED, this._pushConnectedHandlerDelegate); | |
Locator.privateSubscriptionManager.removeEventListener(ConnectionEvents.CONNECTION_FAILED, this._pushDisconnectedHandlerDelegate); | |
this._subscriptionManager.unsubscribe(this._subscriptionTopic); | |
/** @type {null} */ | |
this._subscriptionTopic = null; | |
/** @type {null} */ | |
this._subscriptionManager = null; | |
} | |
this.configStemDeleteHandler(); | |
} | |
}, Tag.prototype.getIsDisposed = function () { | |
return this._isDisposed; | |
}, Tag.prototype.configTopicSubscriptionHandler = function (n) { | |
var element = this; | |
var _this = Locator.treeLookup; | |
if (!this._configStem && _this) { | |
this._configStem = _this.getReference(n.type); | |
this._configStemUpdateHandlerDelegate = new Error(this, this.configStemUpdateHandler); | |
this._configStemDeleteHandlerDelegate = new Error(this, this.configStemDeleteHandler); | |
this._configStem.addEventListener(handler.UPDATE, this._configStemUpdateHandlerDelegate); | |
this._configStem.addEventListener(handler.DELETE, this._configStemDeleteHandlerDelegate); | |
this.configStemChanged(this._configStem.data); | |
/** @type {boolean} */ | |
this._arePropertiesInitialised = true; | |
this.dispatchEvent(new outValue.PushedConfigPropertyChangeEvent(outValue.PushedConfigPropertyChangeEvent.PROPERTIES_INITIALISED)); | |
this.addEventListener("AD", new Error(this, function (canCreateDiscussions) { | |
return listen(element.getAttributeValue("AD")); | |
})); | |
if (this.getAttributeValue("AD")) { | |
listen(this.getAttributeValue("AD")); | |
} | |
} | |
}, Tag.prototype.updateProperties = function (obj, add) { | |
var i; | |
var r; | |
var s; | |
var a; | |
var c; | |
var l; | |
var u; | |
var d; | |
var h; | |
var p; | |
var _; | |
var g; | |
var f; | |
if ("IF" in obj) { | |
/** @type {boolean} */ | |
i = "1" === this._configStem.data.IF; | |
if (this._isInPlayDataAvailable !== i) { | |
/** @type {boolean} */ | |
this._isInPlayDataAvailable = i; | |
if (add) { | |
this.dispatchEvent(new outValue.PushedConfigPropertyChangeEvent(outValue.PushedConfigPropertyChangeEvent.IS_INPLAY_AVAILABLE)); | |
} | |
} | |
} | |
if ("CB" in obj) { | |
/** @type {boolean} */ | |
r = "0" === this._configStem.data.CB; | |
if (this._isMyBetsSystemEnabled !== r) { | |
/** @type {boolean} */ | |
this._isMyBetsSystemEnabled = r; | |
if (add) { | |
this.dispatchEvent(new outValue.PushedConfigPropertyChangeEvent(outValue.PushedConfigPropertyChangeEvent.IS_MYBETS_SYSTEM_ENABLED)); | |
} | |
} | |
} | |
if ("CP" in obj) { | |
/** @type {boolean} */ | |
s = "0" === this._configStem.data.CP; | |
if (this._isCloseBetPullPresentationEnabled !== s) { | |
/** @type {boolean} */ | |
this._isCloseBetPullPresentationEnabled = s; | |
this.dispatchEvent(new outValue.PushedConfigPropertyChangeEvent(outValue.PushedConfigPropertyChangeEvent.IS_CLOSE_BETS_PULL_DELIVERY_AVAILABLE)); | |
} | |
} | |
if ("OP" in obj) { | |
/** @type {boolean} */ | |
a = "0" === this._configStem.data.OP; | |
if (this._isOpenBetsPullDeliveryAvailable !== a) { | |
/** @type {boolean} */ | |
this._isOpenBetsPullDeliveryAvailable = a; | |
if (add) { | |
this.dispatchEvent(new outValue.PushedConfigPropertyChangeEvent(outValue.PushedConfigPropertyChangeEvent.IS_OPEN_BETS_PULL_DELIVERY_AVAILABLE)); | |
} | |
} | |
} | |
if ("FC" in obj) { | |
this.freeBetCountries = this._configStem.data.FC.split(","); | |
if (add) { | |
this.dispatchEvent(new outValue.PushedConfigPropertyChangeEvent(outValue.PushedConfigPropertyChangeEvent.FREE_BET_COUNTRIES_UPDATED)); | |
} | |
} | |
c = this._isMyBetsSystemEnabled && this._isOpenBetsPullDeliveryAvailable; | |
if (this._isMyBetsSiteFeatureAvailable !== c) { | |
this._isMyBetsSiteFeatureAvailable = c; | |
if (add) { | |
this.dispatchEvent(new outValue.PushedConfigPropertyChangeEvent(outValue.PushedConfigPropertyChangeEvent.IS_MYBETS_SITE_FEATURE_AVAILABLE)); | |
} | |
} | |
if (this.betCallTwilioDisabledAttribute in obj) { | |
/** @type {boolean} */ | |
l = "1" != this._configStem.data[this.betCallTwilioDisabledAttribute]; | |
if (this._isBetCallTwilioAvailable !== l) { | |
/** @type {boolean} */ | |
this._isBetCallTwilioAvailable = l; | |
this.dispatchEvent(new outValue.PushedConfigPropertyChangeEvent(outValue.PushedConfigPropertyChangeEvent.IS_BET_CALL_TWILIO_AVAILABLE)); | |
} | |
} | |
if (this.betCallDisabledAttribute in obj) { | |
/** @type {boolean} */ | |
u = "1" != this._configStem.data[this.betCallDisabledAttribute]; | |
if (this._isBetCallAvailable !== u) { | |
/** @type {boolean} */ | |
this._isBetCallAvailable = u; | |
this.dispatchEvent(new outValue.PushedConfigPropertyChangeEvent(outValue.PushedConfigPropertyChangeEvent.IS_BET_CALL_AVAILABLE)); | |
} | |
} | |
if (this.ausMultiplesDisabledAttribute in obj) { | |
/** @type {boolean} */ | |
d = "1" != this._configStem.data[this.ausMultiplesDisabledAttribute]; | |
if (this._isAusMultiplesAvailable !== d) { | |
/** @type {boolean} */ | |
this._isAusMultiplesAvailable = d; | |
this.dispatchEvent(new outValue.PushedConfigPropertyChangeEvent(outValue.PushedConfigPropertyChangeEvent.IS_AUS_MULTIPLES_AVAILABLE)); | |
} | |
} | |
if (this.settledBetsDisabledAttribute in obj) { | |
/** @type {boolean} */ | |
h = "1" != this._configStem.data[this.settledBetsDisabledAttribute]; | |
if (this._settledBetsEnabled !== h) { | |
/** @type {boolean} */ | |
this._settledBetsEnabled = h; | |
this.dispatchEvent(new outValue.PushedConfigPropertyChangeEvent(outValue.PushedConfigPropertyChangeEvent.IS_SETTLED_BETS_FEATURE_AVAILABLE)); | |
} | |
} | |
if (this.pushBalanceEnabledAttribute in obj) { | |
p = "1" == this._configStem.data[this.pushBalanceEnabledAttribute] && this._pushConnected; | |
if (this._isPushBalanceEnabled !== p) { | |
this._isPushBalanceEnabled = p; | |
if (add) { | |
this.dispatchEvent(new outValue.PushedConfigPropertyChangeEvent(outValue.PushedConfigPropertyChangeEvent.PUSH_BALANCE_ENABLED_AVAILABLE)); | |
} | |
} | |
} | |
if ("EE" in obj) { | |
/** @type {boolean} */ | |
_ = "1" !== this._configStem.data.EE; | |
if (this._isEditBetsEnabled !== _) { | |
/** @type {boolean} */ | |
this._isEditBetsEnabled = _; | |
this.dispatchEvent(new outValue.PushedConfigPropertyChangeEvent(outValue.PushedConfigPropertyChangeEvent.IS_EDIT_BETS_FEATURE_AVAILABLE)); | |
} | |
} | |
if (this.complexMultiplesEnabledAttribute in obj) { | |
g = obj[this.complexMultiplesEnabledAttribute] && "1" !== obj[this.complexMultiplesEnabledAttribute]; | |
if (this.editBetsComplexMultiplesEnabled !== g) { | |
this.editBetsComplexMultiplesEnabled = g; | |
this.dispatchEvent(new outValue.PushedConfigPropertyChangeEvent(outValue.PushedConfigPropertyChangeEvent.IS_EDIT_BETS_COMPLEX_MULTIPLES_FEATURE_AVAILABLE)); | |
} | |
} | |
if ("PF" in obj) { | |
/** @type {boolean} */ | |
f = "1" === this._configStem.data.PF; | |
if (this.psqfV4Enabled !== f) { | |
/** @type {boolean} */ | |
this.psqfV4Enabled = f; | |
this.dispatchEvent(new outValue.PushedConfigPropertyChangeEvent(outValue.PushedConfigPropertyChangeEvent.PSQFV4_AVAILABLE)); | |
} | |
} | |
if (this.psqfV4Enabled) { | |
/** @type {number} */ | |
o.MinOdds = 0; | |
} | |
}, Tag.prototype.configStemUpdateHandler = function (simpleselect) { | |
this.configStemChanged(simpleselect.data); | |
}, Tag.prototype.configStemChanged = function (properties) { | |
this.updateProperties(properties, true); | |
var name; | |
for (name in properties) { | |
this.dispatchEvent(new Event(name)); | |
} | |
}, Tag.prototype.configStemDeleteHandler = function () { | |
if (this._configStem) { | |
this._configStem.removeEventListener(handler.UPDATE, this._configStemUpdateHandlerDelegate); | |
this._configStem.removeEventListener(handler.DELETE, this._configStemDeleteHandlerDelegate); | |
/** @type {null} */ | |
this._configStem = null; | |
} | |
}, Tag.prototype.pushDisconnectedHandler = function () { | |
if (this._pushConnected && (this._pushConnected = false, this._configStem)) { | |
var lastProps = {}; | |
/** @type {string} */ | |
lastProps[this.pushBalanceEnabledAttribute] = "0"; | |
this.updateProperties(lastProps, true); | |
} | |
}, Tag.prototype.pushConnectedHandler = function () { | |
if (!this._pushConnected && (this._pushConnected = true, this._configStem)) { | |
var lastProps = {}; | |
/** @type {string} */ | |
lastProps[this.pushBalanceEnabledAttribute] = "1"; | |
this.updateProperties(lastProps, true); | |
} | |
}, Tag.USER_CONFIG_SUBSCRIPTION_TOPIC = "CONFIG_{0}_{1}", Tag; | |
}(EventDispatcher); | |
outValue.PushedConfigManager = i; | |
}(ns_gen5_config || (ns_gen5_config = {})), function (state) { | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function HTMLSectionBuilder() { | |
} | |
return HTMLSectionBuilder.prototype.setConnectionDetails = function (canCreateDiscussions) { | |
/** @type {!Array} */ | |
this.connectionDetails = canCreateDiscussions; | |
}, HTMLSectionBuilder.prototype.getConnectionDetails = function () { | |
return this.connectionDetails; | |
}, HTMLSectionBuilder.prototype.setPrivateConnectionDetails = function (canCreateDiscussions) { | |
/** @type {!Array} */ | |
this.privateConnectionDetails = canCreateDiscussions; | |
}, HTMLSectionBuilder.prototype.getPrivateConnectionDetails = function () { | |
return this.privateConnectionDetails; | |
}, HTMLSectionBuilder.prototype.fallbackConnectionEnabled = function () { | |
return false; | |
}, HTMLSectionBuilder.prototype.hasSessionExpired = function () { | |
return false; | |
}, HTMLSectionBuilder; | |
}(); | |
state.ApplicationConfig = size; | |
}(ns_gen5_config || (ns_gen5_config = {})), function (canCreateDiscussions) { | |
}(ns_gen5_events || (ns_gen5_events = {})), function (Widget) { | |
var widget = function () { | |
/** | |
* @param {number} text | |
* @return {undefined} | |
*/ | |
function o(text) { | |
/** @type {!Text} */ | |
this._element = this._active_element = document.createTextNode(text || ""); | |
this._text = text || null; | |
} | |
return o.prototype.toString = function () { | |
return "[TextNode text=" + this._text + "]"; | |
}, o.prototype.setText = function (text) { | |
return this._text = this._element.data = text; | |
}, o.prototype.getText = function () { | |
return this._text; | |
}, o.prototype.getElement = function () { | |
return this._element; | |
}, o.Wrapper = function (target) { | |
/** @type {!Element} */ | |
this._element = target; | |
this._text = this._element.data || null; | |
}, o.SInit = function () { | |
/** @type {null} */ | |
o.prototype.parent = null; | |
/** @type {null} */ | |
o.prototype._element = null; | |
/** @type {null} */ | |
o.prototype._active_element = null; | |
/** @type {null} */ | |
o.prototype._text = null; | |
o.Wrapper.prototype = new o; | |
}(), o; | |
}(); | |
Widget.TextNode = widget; | |
}(ns_gen5_ui || (ns_gen5_ui = {})), function (tile2) { | |
var tile1Pos = function () { | |
/** | |
* @param {string} container | |
* @param {?} connection | |
* @return {undefined} | |
*/ | |
function Controller(container, connection) { | |
var f = this; | |
/** @type {string} */ | |
this.element = container; | |
this.enableFastClick = connection; | |
/** | |
* @param {!Object} e | |
* @return {?} | |
*/ | |
this._callback_clickHandler = function (e) { | |
return f._clickHandler(e); | |
}; | |
/** | |
* @param {!Event} e | |
* @return {?} | |
*/ | |
this._callback_touchStartHandler = function (e) { | |
return f._touchStartHandler(e); | |
}; | |
} | |
return Controller.prototype.activate = function () { | |
var element = this.element instanceof tile2.DomElement ? this.element.getElement() : this.element; | |
element.addEventListener("click", this._callback_clickHandler); | |
if (Controller.IS_CHROME) { | |
element.addEventListener("touchstart", this._callback_touchStartHandler); | |
} | |
if (this.enableFastClick) { | |
this._fastClick = FastClick.attach(element); | |
} | |
}, Controller.prototype.release = function () { | |
if (this._fastClick) { | |
this._fastClick.destroy(); | |
/** @type {null} */ | |
this._fastClick = null; | |
} | |
var element = this.element instanceof tile2.DomElement ? this.element.getElement() : this.element; | |
element.removeEventListener("click", this._callback_clickHandler); | |
if (Controller.IS_CHROME) { | |
element.removeEventListener("touchstart", this._callback_touchStartHandler); | |
} | |
}, Controller.prototype._touchStartHandler = function (event) { | |
if (event) { | |
this._touchElement = event.target; | |
} else { | |
/** @type {null} */ | |
this._touchElement = null; | |
} | |
}, Controller.prototype._clickHandler = function (event) { | |
var cur; | |
var evt = event || window.event; | |
if (evt.target) { | |
cur = evt.target; | |
if (this._touchElement && Controller.IS_CHROME) { | |
cur = this._touchElement; | |
/** @type {null} */ | |
this._touchElement = null; | |
} | |
for (; cur;) { | |
if (cur.wrapper && cur.wrapper.clickHandler) { | |
try { | |
cur.wrapper.clickHandler(evt); | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
break; | |
} | |
cur = cur.parentNode; | |
} | |
Locator.validationManager.processValidationCycleNow(); | |
} | |
}, Controller.IS_CHROME = !!/chrome/.exec(navigator.userAgent.toLowerCase()), Controller; | |
}(); | |
tile2.PointerProcessor = tile1Pos; | |
}(ns_gen5_ui || (ns_gen5_ui = {})), function (e) { | |
var newOrg = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function str() { | |
return null !== _super && _super.apply(this, arguments) || this; | |
} | |
return __extends(str, _super), str.prototype.setSVGData = function (html) { | |
if (str.RequiresAbsolutePaths) { | |
html = html.replace(/url\(#/g, "url(" + window.location.href.replace(window.location.hash, "") + "#"); | |
} | |
/** @type {string} */ | |
this._element.innerHTML = html; | |
}, str.RequiresAbsolutePaths = true, str; | |
}(e.Component); | |
e.SVGWrapperComponent = newOrg; | |
}(ns_gen5_ui || (ns_gen5_ui = {})), function (Scribe) { | |
var SVG = function (_super) { | |
/** | |
* @param {?} name | |
* @return {?} | |
*/ | |
function Document(name) { | |
return _super.call(this, name) || this; | |
} | |
return __extends(Document, _super), Document.prototype.commitStyles = function () { | |
var e; | |
/** @type {string} */ | |
var temp = ""; | |
for (e in this._styleList) { | |
/** @type {string} */ | |
temp = temp + (e + " "); | |
} | |
this._element.setAttribute("class", temp); | |
}, Document.prototype.createElement = function (type) { | |
return document.createElementNS("http://www.w3.org/2000/svg", type); | |
}, Document.prototype.setViewbox = function (height) { | |
this._element.setAttribute("viewBox", height); | |
}, Document.prototype.createSVGPoint = function () { | |
return this._element.createSVGPoint(); | |
}, Document; | |
}(Scribe.Component); | |
Scribe.SVG = SVG; | |
}(ns_gen5_ui || (ns_gen5_ui = {})), function (p) { | |
var custommethods = function (_super) { | |
/** | |
* @param {?} name | |
* @return {?} | |
*/ | |
function self(name) { | |
return _super.call(this, name) || this; | |
} | |
return __extends(self, _super), self.prototype.addPoint = function (e) { | |
var point = this.cordinateContext ? this.cordinateContext.createSVGPoint() : e; | |
if (this.cordinateContext) { | |
point.x = e.x; | |
point.y = e.y; | |
} | |
this._element.points.appendItem(point); | |
}, self.prototype.removePoint = function (index) { | |
this._element.points.removeItem(index); | |
}, self.prototype.pointCount = function () { | |
return this._element.points.numberOfItems; | |
}, self.prototype.clearPoints = function () { | |
this._element.points.clear(); | |
}, self.prototype.setStroke = function (stroke) { | |
this._element.setAttribute("stroke", stroke); | |
}, self.prototype.setStrokeWidth = function (value) { | |
this._element.setAttribute("stroke-width", value); | |
}, self.prototype.setFill = function (value) { | |
this._element.setAttribute("fill", value); | |
}, self.prototype.setFillOpacity = function (value) { | |
this._element.setAttribute("fill-opacity", value); | |
}, self.SInit = function () { | |
/** @type {null} */ | |
self.prototype.cordinateContext = null; | |
}(), self; | |
}(p.SVG); | |
p.SVGPoly = custommethods; | |
}(ns_gen5_ui || (ns_gen5_ui = {})), function (p) { | |
var custommethods = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function Player() { | |
return _super.call(this, "stop") || this; | |
} | |
return __extends(Player, _super), Player.prototype.setOffset = function (value) { | |
this._element.setAttribute("offset", value); | |
}, Player.prototype.setOpacity = function (value) { | |
this._element.setAttribute("stop-opacity", value); | |
}, Player.prototype.setColor = function (value) { | |
this._element.setAttribute("stop-color", value); | |
}, Player; | |
}(p.SVG); | |
p.SVGStop = custommethods; | |
}(ns_gen5_ui || (ns_gen5_ui = {})), function (p) { | |
var custommethods = function (_super) { | |
/** | |
* @param {string} id | |
* @return {?} | |
*/ | |
function Marker(id) { | |
var props = _super.call(this, "linearGradient") || this; | |
return props.id = id, props.svgId = id, props; | |
} | |
return __extends(Marker, _super), Marker.prototype.initialize = function () { | |
this._element.setAttribute("id", this.id); | |
_super.prototype.initialize.call(this); | |
}, Marker.prototype.setX1 = function (x) { | |
this._element.setAttribute("x1", x); | |
}, Marker.prototype.setX2 = function (x) { | |
this._element.setAttribute("x2", x); | |
}, Marker.prototype.setY1 = function (y1) { | |
this._element.setAttribute("y1", y1); | |
}, Marker.prototype.setY2 = function (value) { | |
this._element.setAttribute("y2", value); | |
}, Marker.prototype.getUrl = function () { | |
var e; | |
return e = Marker.RequiresAbsolutePaths ? "url(" + window.location.href.replace(window.location.hash, "#") + this.svgId + ")" : "url(#" + this.svgId + ")"; | |
}, Marker.RequiresAbsolutePaths = true, Marker; | |
}(p.SVG); | |
p.SVGLinearGradient = custommethods; | |
}(ns_gen5_ui || (ns_gen5_ui = {})), function (p) { | |
var t; | |
var custommethods = function (_super) { | |
/** | |
* @param {?} name | |
* @param {!Entity} text | |
* @return {?} | |
*/ | |
function Document(name, text) { | |
var cellField = this; | |
return t = text.getElement(), cellField = _super.call(this, name) || this, t = null, 1 != cellField._stopInitInvalidation && (Locator.validationManager.queueForValidation(cellField), cellField._propertiesInvalidated = true), cellField; | |
} | |
return __extends(Document, _super), Document.prototype.createElement = function (type) { | |
var _tf_var2 = t.querySelector("#" + type); | |
return $assert && $assert(!_tf_var2.wrapper, "The SVG element has already been wrapped."), _tf_var2; | |
}, Document; | |
}(p.SVG); | |
p.SVGWrapper = custommethods; | |
}(ns_gen5_ui || (ns_gen5_ui = {})), function (e) { | |
/** | |
* @param {string} host | |
* @return {?} | |
*/ | |
function render(host) { | |
return function (metadata) { | |
return host + " " + (metadata.moduleName || "") + ":" + (metadata.elementName || ""); | |
}; | |
} | |
/** | |
* @param {string} text | |
* @return {undefined} | |
*/ | |
function setPlaceholderOrFlagChanged(text) { | |
/** @type {string} */ | |
var t = "Module Load Error " + text; | |
ErrorReporter.Trace("ModuleContainer:::", t); | |
$logFmt(t, "font-weight:bold; color:#FF0000;"); | |
} | |
var newOrg; | |
var sectionTemplate = render("0x01"); | |
var AppcException = ns_gen5_util.Delegate; | |
var Config = ns_gen5_util.Config; | |
var Event = ns_gen5_events.ModuleEvent; | |
var exports = ns_gen5_util.InfoReporter; | |
var strBuff = ns_gen5_util.InfoReporterGroups; | |
var ArrayConfig = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function AssetHandler() { | |
/** @type {number} */ | |
this.resourcesNeeded = 1; | |
/** @type {number} */ | |
this.resourcesLoaded = 0; | |
} | |
return AssetHandler.prototype.isFullyLoaded = function () { | |
return this.resourcesLoaded >= this.resourcesNeeded; | |
}, AssetHandler; | |
}(); | |
e.ModuleResourcePackage = ArrayConfig; | |
newOrg = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function Model() { | |
var e = _super.call(this) || this; | |
return e.invokeQueue = [], e; | |
} | |
return __extends(Model, _super), Model.LoadModule = function (key, name) { | |
var n; | |
var a; | |
var app; | |
var index = Model.ModuleCache[key]; | |
if (index && index.definition) { | |
n = index.isFullyLoaded(); | |
Locator.validationManager.callLater(function () { | |
name.moduleAvailableHandler(index); | |
if (n) { | |
name.moduleReadyHandler(index); | |
} | |
}); | |
} else { | |
if (index) { | |
a = Model.PendingList[key]; | |
a[a.length] = name; | |
} else { | |
index = Model.ModuleCache[key] = new ArrayConfig; | |
/** | |
* @return {undefined} | |
*/ | |
app = function () { | |
var firer; | |
var layer_i; | |
var crossfilterable_layers; | |
var enabled_methods; | |
if (index.isFullyLoaded() && (firer = Model.PendingList[key])) { | |
/** @type {number} */ | |
layer_i = 0; | |
crossfilterable_layers = firer; | |
for (; layer_i < crossfilterable_layers.length; layer_i++) { | |
enabled_methods = crossfilterable_layers[layer_i]; | |
enabled_methods.moduleReadyHandler(index); | |
} | |
delete Model.PendingList[key]; | |
} | |
}; | |
/** @type {!Array} */ | |
Model.PendingList[key] = [name]; | |
Model.ModuleLoader.loadModule(key, index, app); | |
} | |
} | |
}, Model.RegisterModule = function (prop, def) { | |
var p; | |
var i; | |
var var1; | |
var curSocket; | |
var state = Model.ModuleCache[prop]; | |
if (state || (state = Model.ModuleCache[prop] = new ArrayConfig), state.resourcesLoaded++ , $assert && $assert(!state.definition, "Duplicate module definition loaded - " + prop), state.definition = def, p = Model.PendingList[prop]) { | |
/** @type {number} */ | |
i = 0; | |
var1 = p; | |
for (; i < var1.length; i++) { | |
curSocket = var1[i]; | |
curSocket.moduleAvailableHandler(state); | |
} | |
} | |
}, Model.RegisterLanguage = function (key, value) { | |
var childMap = Model.ModuleCache[key]; | |
childMap.resourcesLoaded++; | |
/** @type {!Array} */ | |
childMap.languageDefinition = value; | |
}, Model.RegisterConfig = function (eventName, data) { | |
var main = Model.ModuleCache[eventName]; | |
/** @type {!Object} */ | |
main.config = data; | |
}, Model.prototype.load = function (name) { | |
var n; | |
var ext; | |
var s; | |
var d; | |
/** @type {string} */ | |
this.moduleName = name; | |
n = Locator.manifestManager.getLocaleNames(name); | |
if (n && n.length) { | |
ext = boot.getLocale(); | |
if (-1 === n.indexOf(ext)) { | |
/** @type {string} */ | |
ext = "Default"; | |
} | |
this.localeModule = new e.ModuleContainer; | |
this.localeModule.load(name + "-" + ext); | |
} | |
Model.LoadModule(name, this); | |
this.defaultApiLocation = this.defaultApiLocation || Locator.manifestManager.getDefaultApiLocation(name); | |
s = Locator.manifestManager.getDefaultTopic(name); | |
if (null !== s) { | |
if (s) { | |
d = Locator.user; | |
s = s.replace("{L}", d.languageId); | |
s = s.replace("{Z}", d.zoneId); | |
s = s.replace("{C}", "" + d.customerType); | |
this.defaultTopic = s; | |
} | |
if (this.defaultTopic) { | |
if (this.defaultApiLocation) { | |
Locator.subscriptionManager.subscribe(this.defaultTopic, new AppcException(this, this.defaultTopicSubscriptionHandler), null, this.defaultApiLocation); | |
} else { | |
Locator.subscriptionManager.subscribe(this.defaultTopic, new AppcException(this, this.defaultTopicSubscriptionHandler)); | |
} | |
} | |
} | |
}, Model.prototype.defaultTopicSubscriptionHandler = function (n) { | |
var t = Locator.treeLookup.getReference(n.type); | |
this.defaultStem = t; | |
if (this.storedResourcePackage) { | |
this.moduleReadyHandler(this.storedResourcePackage); | |
} | |
}, Model.prototype.dispose = function () { | |
if (this._module) { | |
try { | |
this._module.dispose(); | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
if ($assert) { | |
$assert(this._module.disposed, "dispose() has been called but module isn't reporting as being disposed - " + this._module); | |
} | |
if (!this._module.disposed) { | |
exports.Trace(strBuff.MODULE_LOAD_ENTRY, this._module + " did not dispose correctly"); | |
} | |
/** @type {null} */ | |
this._module = null; | |
} | |
/** @type {boolean} */ | |
this.disposed = true; | |
}, Model.prototype.getModule = function () { | |
return this._module; | |
}, Model.prototype.invoke = function (cb) { | |
var _module = this; | |
if (this.moduleReady) { | |
Locator.validationManager.callLater(function () { | |
return cb(_module._module); | |
}); | |
} else { | |
this.invokeQueue.push(cb); | |
} | |
}, Model.prototype.moduleAvailableHandler = function (prop) { | |
var a; | |
var nOpt = this._module = new prop.definition; | |
nOpt.initObject = this.initObject; | |
if (e.MediaTypeIdLookup) { | |
a = -1 === this.moduleName.indexOf("-") ? this.moduleName : this.moduleName.substring(0, this.moduleName.indexOf("-")); | |
nOpt.mediaTypeId = e.MediaTypeIdLookup[a]; | |
if ($assert) { | |
$assert(void 0 !== nOpt.mediaTypeId, "moduleAvailableHandler() is looking for the media type of module '" + this.moduleName + "' which is not defined in MediaTypeIdLookup"); | |
} | |
} | |
try { | |
this.appendChild(nOpt); | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
}, Model.prototype.moduleReadyHandler = function (e) { | |
var labelMessage; | |
var i; | |
var array; | |
var timeString; | |
if (!this.disposed) { | |
if (this.defaultTopic && !this.defaultStem) { | |
return void (this.storedResourcePackage = e); | |
} | |
if (this.defaultTopic && !this._module) { | |
return void setPlaceholderOrFlagChanged(sectionTemplate(this)); | |
} | |
/** @type {null} */ | |
this.storedResourcePackage = null; | |
labelMessage = this._module.languageDefinition = ns_gen5_util.Singleton.getInstance(ns_gen5_language.Resource, this._module); | |
labelMessage.mlJson = e.languageDefinition; | |
if (e.config) { | |
this._module.config = new Config; | |
this._module.config.setConfigJSON(e.config); | |
} | |
if (this.defaultStem) { | |
this._module.defaultStem = this.defaultStem; | |
} | |
if (this.defaultApiLocation) { | |
this._module.defaultApiLocation = this.defaultApiLocation; | |
} | |
try { | |
this._module.moduleReady(); | |
this._module.bubbleEvent(new Event(Event.MODULE_READY)); | |
/** @type {boolean} */ | |
this.moduleReady = true; | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
if ($assert) { | |
$assert(this._module.ready, "moduleReady() has been called but module isn't reporting as ready - " + this._module); | |
} | |
if (!this._module.ready) { | |
exports.Trace(strBuff.MODULE_LOAD_ENTRY, this._module + " did not ready-up correctly"); | |
} | |
/** @type {number} */ | |
i = 0; | |
array = this.invokeQueue; | |
for (; i < array.length; i++) { | |
timeString = array[i]; | |
try { | |
timeString(this._module); | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
} | |
/** @type {number} */ | |
this.invokeQueue.length = 0; | |
} | |
}, Model.ModuleCache = {}, Model.PendingList = {}, Model.ModuleLoader = new ns_gen5_net.ModuleLoaderDefault, Model.SInit = function () { | |
/** @type {null} */ | |
Model.prototype._module = null; | |
/** @type {null} */ | |
Model.prototype.defaultStem = null; | |
/** @type {boolean} */ | |
Model.prototype.moduleReady = false; | |
/** @type {null} */ | |
Model.prototype.storedResourcePackage = null; | |
/** @type {boolean} */ | |
Model.prototype.disposed = false; | |
/** @type {null} */ | |
Model.prototype.initObject = null; | |
/** @type {null} */ | |
Model.prototype.defaultTopic = null; | |
/** @type {null} */ | |
Model.prototype.elementName = null; | |
/** @type {null} */ | |
Model.prototype.moduleName = null; | |
/** @type {null} */ | |
Model.prototype.defaultApiLocation = null; | |
}(), Model; | |
}(e.Component); | |
e.ModuleContainerAs = newOrg; | |
e.ModuleContainer = newOrg; | |
}(ns_gen5_ui || (ns_gen5_ui = {})), function (window) { | |
var Element = window.DomElement; | |
var Spinner = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function Tabs() { | |
var type = null !== _super && _super.apply(this, arguments) || this; | |
return type.spinnerStyle = "g5-Spinner_Image", type.defaultStyle = "g5-Spinner", type; | |
} | |
return __extends(Tabs, _super), Tabs.prototype.createChildren = function () { | |
this.addStyle(this.defaultStyle); | |
this.addStyle("g5-Spinner_FadeIn"); | |
var div = new Element; | |
div.setAttribute("class", this.spinnerStyle); | |
this.appendChild(div); | |
this.validateNow(); | |
}, Tabs.prototype.remove = function () { | |
var callback; | |
var previewImg = this; | |
var target = this._element; | |
this.removeStyle("g5-Spinner_FadeIn"); | |
this.addStyle("g5-Spinner_FadeOut"); | |
/** | |
* @return {undefined} | |
*/ | |
callback = function () { | |
previewImg.removeStyle("g5-Spinner_FadeOut"); | |
target.parentElement.removeChild(target); | |
target.removeEventListener(ANIMATION_END, callback); | |
}; | |
if (this._element.addEventListener) { | |
this._element.addEventListener(ANIMATION_END, callback, false); | |
} | |
this.validateNow(); | |
}, Tabs; | |
}(window.Component); | |
window.Spinner = Spinner; | |
}(ns_gen5_ui || (ns_gen5_ui = {})), function (state) { | |
/** | |
* @param {?} name | |
* @param {?} t | |
* @return {?} | |
*/ | |
function callback(name, t) { | |
if (!t) { | |
return false; | |
} | |
for (; t.parent;) { | |
if (t.parent == name || t == name) { | |
return true; | |
} | |
t = t.parent; | |
} | |
return false; | |
} | |
var u_parent = ns_gen5_ui.Component; | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function obj() { | |
} | |
return obj.Register = function (server) { | |
/** @type {!Object} */ | |
obj.Root = server; | |
}, obj.AddPopup = function (t, i, container, numOfElements) { | |
if (void 0 === i) { | |
/** @type {boolean} */ | |
i = true; | |
} | |
if (void 0 === container) { | |
container = obj.Root; | |
} | |
if (void 0 === numOfElements) { | |
/** @type {boolean} */ | |
numOfElements = true; | |
} | |
if ($assert) { | |
$assert(obj.Root, "Root is not specified"); | |
} | |
if (i) { | |
/** @type {boolean} */ | |
obj.PopupHasOverlay = true; | |
obj.ShowOverlay(true, obj.Root); | |
} else { | |
if (obj.PopupHasOverlay) { | |
/** @type {boolean} */ | |
obj.PopupHasOverlay = false; | |
obj.ShowOverlay(false, obj.Root); | |
} | |
} | |
obj.PopupList.push(t); | |
container.appendChildAt(t, 0); | |
if (numOfElements) { | |
/** @type {string} */ | |
obj.SupressClickTarget = t; | |
} | |
}, obj.RemovePopup = function (c) { | |
if ($assert) { | |
$assert(obj.PopupList.indexOf(c) > -1, "Popup does not exist in the manager"); | |
} | |
/** @type {number} */ | |
var ofs = obj.PopupList.indexOf(c); | |
if (ofs > -1) { | |
c.parent.removeChild(c); | |
c.dispose(); | |
obj.PopupList.splice(ofs, 1); | |
if (obj.PopupHasOverlay) { | |
/** @type {boolean} */ | |
obj.PopupHasOverlay = false; | |
obj.ShowOverlay(false, obj.Root); | |
} | |
} | |
}, obj.HasPopup = function () { | |
return this.PopupList.length > 0; | |
}, obj.ContainsPopup = function (n) { | |
return callback(obj.Root, n); | |
}, obj.HandleHover = function (mmCoreSplitViewBlock) { | |
/** @type {number} */ | |
var ds = 0; | |
for (; ds < obj.RegisteredDelegates.length; ds++) { | |
if (obj.RegisteredDelegates[ds].overlayHoverHandler) { | |
obj.RegisteredDelegates[ds].overlayHoverHandler(mmCoreSplitViewBlock); | |
} | |
} | |
}, obj.HandleTouchMove = function (e) { | |
e.preventDefault(); | |
}, obj.HandleClick = function (e) { | |
var i; | |
var g; | |
if (e = e || window.event, e.target) { | |
/** @type {number} */ | |
g = 0; | |
for (; g < obj.RegisteredDelegates.length; g++) { | |
i = obj.RegisteredDelegates[g]; | |
if (!(callback(i, e.target.wrapper) || i == obj.SupressClickTarget)) { | |
i.clickOutsideHandler(e); | |
} | |
} | |
/** @type {null} */ | |
obj.SupressClickTarget = null; | |
} | |
}, obj.AddDelegate = function (type) { | |
/** @type {number} */ | |
var data = obj.RegisteredDelegates.indexOf(type); | |
if ($assert) { | |
$assert(-1 === data, "The delegate has already been added."); | |
} | |
if (-1 === data) { | |
obj.RegisteredDelegates.push(type); | |
} | |
}, obj.RemoveDelegate = function (s) { | |
/** @type {number} */ | |
var n = obj.RegisteredDelegates.indexOf(s); | |
if ($assert) { | |
$assert(n > -1, "The delegate is not added."); | |
} | |
if (n > -1) { | |
obj.RegisteredDelegates.splice(n, 1); | |
} | |
}, obj.ShowOverlay = function (configFiles, settings) { | |
var field; | |
var fragments; | |
if (void 0 === settings) { | |
/** @type {null} */ | |
settings = null; | |
} | |
field = obj.OverlayComponent; | |
if (!field.initialized) { | |
field.initialize(); | |
} | |
if (configFiles) { | |
if (obj.OverlayCount > 0) { | |
obj.RemoveOverlay(field); | |
obj.OverlayCount--; | |
} | |
if (null != settings) { | |
settings.appendChild(field); | |
} else { | |
/** @type {!NodeList<Element>} */ | |
fragments = document.getElementsByTagName("body"); | |
if (fragments) { | |
fragments[0].appendChild(field.getElement()); | |
} | |
} | |
obj.OverlayCount++; | |
} else { | |
if (obj.OverlayCount > 0) { | |
obj.RemoveOverlay(field); | |
obj.OverlayCount--; | |
} | |
} | |
field.setVisible(obj.OverlayCount > 0); | |
Locator.validationManager.queueForValidation(field); | |
}, obj.RemoveOverlay = function (parent) { | |
if (parent.parent) { | |
parent.parent.removeChild(parent); | |
} else { | |
parent.getElement().parentElement.removeChild(parent.getElement()); | |
} | |
}, obj.RegisteredDelegates = [], obj.OverlayCount = 0, obj.PopupList = [], obj.CreateOverlay = function () { | |
var td; | |
var $element; | |
var parent = new u_parent; | |
parent.addStyle("g5-PopupManager_ClickMask"); | |
parent.setVisible(false); | |
/** @type {!Element} */ | |
td = document.getElementsByTagName("body")[0]; | |
if (td) { | |
td.appendChild(parent.getElement()); | |
td.addEventListener("click", obj.HandleClick); | |
td.addEventListener("touchend", obj.HandleClick); | |
} | |
$element = parent.getElement(); | |
$element.addEventListener("mouseover", obj.HandleHover); | |
$element.addEventListener("mousemove", obj.HandleHover); | |
$element.addEventListener("touchmove", obj.HandleTouchMove); | |
obj.OverlayComponent = parent; | |
}(), obj; | |
}(); | |
state.PopupManager = size; | |
}(ns_gen5_ui_managers || (ns_gen5_ui_managers = {})), function (exports) { | |
/** | |
* @return {undefined} | |
*/ | |
function render() { | |
var channelId; | |
var value; | |
if ("undefined" != typeof self.currentApplication) { | |
/** @type {number} */ | |
size = document.documentElement.clientWidth || window.innerWidth || document.body.clientWidth; | |
/** @type {number} */ | |
height = document.documentElement.clientHeight || window.innerHeight || document.body.clientHeight; | |
/** @type {number} */ | |
self.currentApplication.width = size; | |
/** @type {number} */ | |
channelId = size < self.widthThreshold ? 0 : 1; | |
if (channelId != self.currentApplication.widthState) { | |
self.currentApplication.removeStyle(f + self.currentApplication.widthState); | |
/** @type {number} */ | |
self.currentApplication.widthState = channelId; | |
target.dispatchEvent(new Event(Event.WIDTH_STATE_CHANGED, size)); | |
Locator.validationManager.processValidationCycleNow(); | |
self.currentApplication.overwriteStyle(f + self.currentApplication.widthState, f + channelId); | |
} | |
/** @type {number} */ | |
channelId = size < self.viewWidthThreshold ? 0 : 1; | |
if (channelId != self.currentApplication.viewState) { | |
self.currentApplication.removeStyle(chan + self.currentApplication.viewState); | |
/** @type {number} */ | |
self.currentApplication.viewState = channelId; | |
target.dispatchEvent(new Event(Event.VIEW_STATE_CHANGED)); | |
Locator.validationManager.processValidationCycleNow(); | |
self.currentApplication.overwriteStyle(chan + self.currentApplication.viewState, chan + channelId); | |
} | |
if (self.currentApplication.height !== height) { | |
/** @type {number} */ | |
self.currentApplication.height = height; | |
target.dispatchEvent(new Event(Event.HEIGHT_CHANGED)); | |
} | |
self.currentApplication.dispatchEvent(new Event(Event.WIDTH_CHANGED, size)); | |
/** @type {number} */ | |
value = height; | |
if (value) { | |
/** @type {number} */ | |
value = value - self.heightOffset; | |
/** @type {string} */ | |
self.currentApplication.getElement().style.minHeight = value + "px"; | |
} | |
} | |
} | |
/** | |
* @param {!Object} v | |
* @return {undefined} | |
*/ | |
function s(v) { | |
window.removeEventListener("orientationchanged", s); | |
window.removeEventListener("resize", s); | |
window.addEventListener(v.type, render); | |
render(); | |
} | |
/** | |
* @return {undefined} | |
*/ | |
function i() { | |
if (target && !target.preventUnloading) { | |
/** @type {boolean} */ | |
target.preventUnloading = false; | |
target.dispatchEvent(new Event(Event.UNLOADING)); | |
} | |
} | |
/** | |
* @param {!Object} event | |
* @return {undefined} | |
*/ | |
function onchange(event) { | |
if (target) { | |
event = event || window.event; | |
if ("focus" == event.type || "focusin" == event.type) { | |
/** @type {boolean} */ | |
target.suspended = false; | |
} else { | |
if ("blur" == event.type || "focusout" == event.type) { | |
/** @type {boolean} */ | |
target.suspended = true; | |
} else { | |
if (this[name]) { | |
/** @type {boolean} */ | |
target.suspended = true; | |
} else { | |
/** @type {boolean} */ | |
target.suspended = false; | |
} | |
} | |
} | |
if (target.suspended) { | |
target.dispatchEvent(new Event(Event.FOCUS_OUT)); | |
} else { | |
target.dispatchEvent(new Event(Event.FOCUS_IN)); | |
} | |
} | |
} | |
var target; | |
var type; | |
var name; | |
var attrs; | |
var self; | |
var Event = ns_gen5_events.ApplicationEvent; | |
var Player = ns_gen5_util.Delegate; | |
var Spinner = exports.Spinner; | |
var ConnectionEvents = ns_gen5_data.StreamDataProcessorEvent; | |
var oldUserCtx = exports.PointerProcessor; | |
/** @type {boolean} */ | |
var g = false; | |
/** @type {string} */ | |
var f = "widthState"; | |
/** @type {string} */ | |
var chan = "viewState"; | |
/** @type {number} */ | |
var size = 0; | |
/** @type {number} */ | |
var height = 0; | |
/** @type {number} */ | |
var $c$ = 0; | |
/** @type {number} */ | |
var ch = 0; | |
window.addEventListener("orientationchanged", s); | |
window.addEventListener("resize", s); | |
window.addEventListener("beforeunload", i); | |
/** @type {string} */ | |
name = ""; | |
attrs = { | |
hidden: "visibilitychange", | |
mozHidden: "mozvisibilitychange", | |
webkitHidden: "webkitvisibilitychange", | |
msHidden: "msvisibilitychange" | |
}; | |
for (name in attrs) { | |
if (name in document) { | |
type = attrs[name]; | |
break; | |
} | |
} | |
if (type) { | |
document.removeEventListener(type, onchange); | |
document.addEventListener(type, onchange); | |
} else { | |
if ("onfocusin" in document) { | |
/** @type {function(!Object): undefined} */ | |
document.onfocusin = document.onfocusout = onchange; | |
} else { | |
/** @type {function(!Object): undefined} */ | |
window.onfocus = window.onblur = onchange; | |
} | |
} | |
self = function (_super) { | |
/** | |
* @param {?} conid | |
* @return {?} | |
*/ | |
function init(conid) { | |
var state = _super.call(this) || this; | |
return state.applyPointerProcessor = true, state._loadingTimer = null, state._spinner = null, state.height = 0, state.width = 0, state.widthState = -1, state.viewState = -1, state.suspended = false, state.preventUnloading = false, state.connected = false, exports.Component.Wrapper.call(state, conid), state.addStyle("g5-Application"), state._delegate_loadingHandler = new Player(state, state.loadingHandler), state._delegate_loadingCompleteHandler = new Player(state, state.loadingCompleteHandler), | |
state._delegate_showStreamingHandler = new Player(state, state._showStreamingHandler), state._delegate_connectedHandler = new Player(state, state._connectedHandler), state._delegate_connectionFailureHandler = new Player(state, state._connectionFailedHandler), state._addSpinnerCallback = function () { | |
return state.addSpinner(); | |
}, Locator.subscriptionManager._streamDataProcessor.addEventListener(ConnectionEvents.CONNECTED, state._delegate_connectedHandler), Locator.subscriptionManager._streamDataProcessor.addEventListener(ConnectionEvents.CONNECTION_FAILED, state._delegate_connectionFailureHandler), target = init.currentApplication = state, size = window.innerWidth || document.body.clientWidth, height = window.innerHeight || document.body.clientHeight, "screen" in window && ($c$ = window.screen.width, ch = window.screen.height), | |
state.width = size, render(), state; | |
} | |
return __extends(init, _super), init.prototype.toString = function () { | |
return "[Application]"; | |
}, init.prototype.enableUI = function () { | |
if (!g) { | |
/** @type {boolean} */ | |
g = true; | |
if (this.applyPointerProcessor) { | |
this.pointerProcessor = new oldUserCtx(this); | |
this.pointerProcessor.activate(); | |
} | |
this.addEventListener(Event.LOADING, this._delegate_loadingHandler); | |
this.addEventListener(Event.LOADING_COMPLETE, this._delegate_loadingCompleteHandler); | |
this.addEventListener("showStreaming", this._delegate_showStreamingHandler); | |
} | |
}, init.prototype.disableUI = function () { | |
if (g) { | |
/** @type {boolean} */ | |
g = false; | |
if (this._spinner) { | |
this._spinner.remove(); | |
/** @type {null} */ | |
this._spinner = null; | |
} | |
this.removeEventListener(Event.LOADING, this._delegate_loadingHandler); | |
this.removeEventListener(Event.LOADING_COMPLETE, this._delegate_loadingCompleteHandler); | |
this.removeEventListener("showStreaming", this._delegate_showStreamingHandler); | |
if (this.pointerProcessor) { | |
this.pointerProcessor.release(); | |
/** @type {null} */ | |
this.pointerProcessor = null; | |
} | |
} | |
}, init.prototype.loadingHandler = function () { | |
if (g && !this._loadingTimer) { | |
/** @type {number} */ | |
this._loadingTimer = setTimeout(this._addSpinnerCallback, init.loadingTimeout); | |
} | |
}, init.prototype.addSpinner = function () { | |
this._spinner = new Spinner; | |
var elem = this.getElement(); | |
elem.appendChild(this._spinner.getElement()); | |
this._spinner.initialize(); | |
}, init.prototype.loadingCompleteHandler = function () { | |
if (this._loadingTimer) { | |
clearTimeout(this._loadingTimer); | |
/** @type {null} */ | |
this._loadingTimer = null; | |
} | |
if (this._spinner) { | |
this._spinner.remove(); | |
/** @type {null} */ | |
this._spinner = null; | |
} | |
}, init.prototype._showStreamingHandler = function () { | |
/** @type {boolean} */ | |
this.preventUnloading = true; | |
}, init.prototype._connectedHandler = function () { | |
/** @type {boolean} */ | |
this.connected = true; | |
}, init.prototype._connectionFailedHandler = function () { | |
/** @type {boolean} */ | |
this.connected = false; | |
}, init.prototype.getDeviceWidth = function () { | |
return size; | |
}, init.prototype.getDeviceHeight = function () { | |
return height; | |
}, init.prototype.getScreenWidth = function () { | |
return $c$; | |
}, init.prototype.getScreenHeight = function () { | |
return ch; | |
}, init.loadingTimeout = 200, init.overflowLayout = false, init.widthThreshold = 550, init.viewWidthThreshold = 950, init.heightOffset = 89, init; | |
}(exports.Component); | |
exports.Application = self; | |
}(ns_gen5_ui || (ns_gen5_ui = {})), function (e) { | |
var c = e.Component; | |
var newOrg = function (_super) { | |
/** | |
* @param {?} name | |
* @return {?} | |
*/ | |
function Test(name) { | |
return _super.call(this, name) || this; | |
} | |
return __extends(Test, _super), Test.prototype.toString = function () { | |
return "[ClosableContainer]"; | |
}, Test.prototype.createChildren = function () { | |
this._button = new this._buttonClass(this._buttonTag); | |
if (this._initAppendChildButton) { | |
this.appendChild(this._button); | |
} | |
if (this._open) { | |
this.initializeContainer(); | |
} | |
}, Test.prototype.initializeContainer = function () { | |
if (!this._container) { | |
this._container = new this._containerClass(this._containerTag); | |
if (this._initAppendChildContainer) { | |
this.appendChild(this._container); | |
} | |
} | |
}, Test.prototype.setOpen = function (value) { | |
if (value != this._open) { | |
/** @type {boolean} */ | |
this._open = value; | |
if (this._container) { | |
this._container.setVisible(this._open); | |
} else { | |
this.initializeContainer(); | |
} | |
} | |
}, Test.prototype.getOpen = function () { | |
return this._open; | |
}, Test.prototype.clickHandler = function (name) { | |
this.setOpen(!this._open); | |
}, Test.SInit = function () { | |
/** @type {null} */ | |
Test.prototype._button = null; | |
Test.prototype._buttonClass = c; | |
/** @type {null} */ | |
Test.prototype._container = null; | |
Test.prototype._containerClass = c; | |
/** @type {boolean} */ | |
Test.prototype._open = false; | |
/** @type {boolean} */ | |
Test.prototype._initAppendChildButton = true; | |
/** @type {boolean} */ | |
Test.prototype._initAppendChildContainer = true; | |
/** @type {null} */ | |
Test.prototype._buttonTag = null; | |
/** @type {null} */ | |
Test.prototype._containerTag = null; | |
}(), Test; | |
}(e.Component); | |
e.ClosableContainer = newOrg; | |
}(ns_gen5_ui || (ns_gen5_ui = {})), function (canCreateDiscussions) { | |
canCreateDiscussions.StemBaseMixin = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function initialize() { | |
if (this.stem) { | |
this.stem.addDelegate(this); | |
} | |
if (this.___initialize) { | |
this.___initialize(); | |
} | |
} | |
/** | |
* @param {!Object} data | |
* @return {undefined} | |
*/ | |
function build(data) { | |
var d; | |
var value; | |
var body = data || this; | |
if (body.detatchStem && body.detatchStem(), body.getFirstChild) { | |
d = body.getFirstChild(); | |
value = void 0; | |
for (; d;) { | |
value = d.wrapper; | |
d = d.nextSibling; | |
if (value) { | |
if (value.recursiveDetatchStem) { | |
value.recursiveDetatchStem(); | |
} else { | |
build(value); | |
} | |
} | |
} | |
} | |
} | |
/** | |
* @return {undefined} | |
*/ | |
function removeAfterMouseUp() { | |
if (this.stem) { | |
this.stem.removeDelegate(this); | |
/** @type {null} */ | |
this.stem = null; | |
/** @type {number} */ | |
this.validationState = 0; | |
if (this.parent) { | |
this.parent.removeChild(this); | |
} | |
} | |
} | |
/** | |
* @param {?} user | |
* @param {!Object} group | |
* @return {undefined} | |
*/ | |
function userToGroup(user, group) { | |
} | |
/** | |
* @param {?} t | |
* @param {!Object} object | |
* @return {undefined} | |
*/ | |
function o(t, object) { | |
} | |
/** | |
* @param {?} callback | |
* @return {undefined} | |
*/ | |
function extractPresetLocal(callback) { | |
this.detatchStem(); | |
} | |
return function () { | |
/** @type {null} */ | |
this.stem = null; | |
this.___initialize = this.initialize; | |
/** @type {function(): undefined} */ | |
this.initialize = initialize; | |
/** @type {function(?, !Object): undefined} */ | |
this.stemUpdateHandler = userToGroup; | |
/** @type {function(?): undefined} */ | |
this.stemDeleteHandler = extractPresetLocal; | |
/** @type {function(?, !Object): undefined} */ | |
this.stemInsertHandler = o; | |
/** @type {function(): undefined} */ | |
this.detatchStem = removeAfterMouseUp; | |
/** @type {function(!Object): undefined} */ | |
this.recursiveDetatchStem = build; | |
}; | |
}(); | |
}(ns_gen5_ui || (ns_gen5_ui = {})), function (canCreateDiscussions) { | |
}(ns_gen5_ui || (ns_gen5_ui = {})), function (component) { | |
var record = function (_super) { | |
/** | |
* @param {?} key | |
* @return {?} | |
*/ | |
function t(key) { | |
return _super.call(this, key) || this; | |
} | |
return __extends(t, _super), t.prototype.toString = function () { | |
return "[ComponentStemBase]"; | |
}, t.prototype.stemUpdateHandler = function (cond, text) { | |
}, t.prototype.stemDeleteHandler = function (EMSarray) { | |
}, t.prototype.stemInsertHandler = function (name, promise) { | |
}, t.prototype.detatchStem = function () { | |
}, t.prototype.recursiveDetatchStem = function () { | |
}, t; | |
}(component.Component); | |
component.ComponentStemBase = record; | |
component.StemBaseMixin.call(record.prototype); | |
}(ns_gen5_ui || (ns_gen5_ui = {})), function (audio) { | |
var data = function (_super) { | |
/** | |
* @param {?} key | |
* @return {?} | |
*/ | |
function t(key) { | |
return _super.call(this, key) || this; | |
} | |
return __extends(t, _super), t.prototype.toString = function () { | |
return "[ClosableContainerStemBase]"; | |
}, t.prototype.createChildren = function () { | |
this._button = new this._buttonClass(this._buttonTag); | |
if (this.buttonAcceptsStem) { | |
this._button.stem = this.stem; | |
} | |
if (this._initAppendChildButton) { | |
this.appendChild(this._button); | |
} | |
if (this._open) { | |
this.initializeContainer(); | |
} | |
}, t.prototype.initializeContainer = function () { | |
this._container = new this._containerClass; | |
this._container.stem = this.stem; | |
if (this._initAppendChildContainer) { | |
this.appendChild(this._container); | |
} | |
}, t.prototype.stemUpdateHandler = function (cond, text) { | |
}, t.prototype.stemDeleteHandler = function (EMSarray) { | |
}, t.prototype.stemInsertHandler = function (name, promise) { | |
}, t.prototype.detatchStem = function () { | |
}, t.prototype.recursiveDetatchStem = function () { | |
}, t.SInit = function () { | |
/** @type {boolean} */ | |
t.prototype.buttonAcceptsStem = false; | |
}(), t; | |
}(audio.ClosableContainer); | |
audio.ClosableContainerStemBase = data; | |
audio.StemBaseMixin.call(data.prototype); | |
}(ns_gen5_ui || (ns_gen5_ui = {})), function (browserify) { | |
/** | |
* @param {!Object} onWhat | |
* @return {?} | |
*/ | |
function actionsTooltip(onWhat) { | |
return !!onWhat.createChildInstance; | |
} | |
var crdt = browserify.ComponentStemBase; | |
var fileSet = function (_super) { | |
/** | |
* @param {?} args | |
* @return {?} | |
*/ | |
function i(args) { | |
return _super.call(this, args) || this; | |
} | |
return __extends(i, _super), i.prototype.toString = function () { | |
return "[GenericStemRenderer]"; | |
}, i.prototype.createChildren = function () { | |
var _this; | |
var x; | |
var AbsIttCatalogItem; | |
var i; | |
var keys; | |
var key; | |
var item; | |
var j; | |
var arg; | |
if (this.stem) { | |
if (_this = this, x = this.stem.getChildren(), AbsIttCatalogItem = this.childType, actionsTooltip(_this)) { | |
/** @type {number} */ | |
i = 0; | |
keys = x; | |
for (; i < keys.length; i++) { | |
key = keys[i]; | |
item = _this.createChildInstance(key); | |
item.stem = key; | |
this.appendChild(item); | |
} | |
} else { | |
/** @type {number} */ | |
j = 0; | |
arg = x; | |
for (; j < arg.length; j++) { | |
key = arg[j]; | |
item = new AbsIttCatalogItem; | |
item.stem = key; | |
this.appendChild(item); | |
} | |
} | |
} | |
}, i.prototype.appendChildAt = function (b, i) { | |
return _super.prototype.appendChildAt.call(this, b, i + this.baseIndex); | |
}, i.prototype.stemInsertHandler = function (host, a) { | |
var value; | |
var t = a.data.OR; | |
var _this = this; | |
var item = actionsTooltip(_this) ? _this.createChildInstance(a) : new this.childType; | |
if (item.stem = a, t) { | |
try { | |
value = this._element.children[Number(t) + this.baseIndex]; | |
if (value) { | |
this.insertBefore(item, value); | |
} else { | |
this.appendChild(item); | |
} | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
this.appendChild(item); | |
} | |
} else { | |
this.appendChild(item); | |
} | |
}, i.prototype.setStem = function (stem) { | |
var baseType = this; | |
if (this.stem) { | |
this.recursiveDetatchStem(); | |
} | |
this.stem = stem; | |
if (this.parent && this.stem) { | |
this.stem.addDelegate(this); | |
Locator.validationManager.callLater(function () { | |
baseType.suspendElementFromDom(); | |
baseType.createChildren(); | |
Locator.validationManager.callPostValidation(function () { | |
return baseType.unsuspendElementFromDom(); | |
}); | |
}); | |
} | |
}, i.SInit = function () { | |
i.prototype.childType = crdt; | |
/** @type {number} */ | |
i.prototype.baseIndex = 0; | |
}(), i; | |
}(browserify.ComponentStemBase); | |
browserify.GenericStemRenderer = fileSet; | |
}(ns_gen5_ui || (ns_gen5_ui = {})), function (exports) { | |
var TextInput = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function Router() { | |
var self = _super.call(this, "input") || this; | |
return self.passwordDisplay = false, self._rendered = false, self; | |
} | |
return __extends(Router, _super), Router.prototype.createChildren = function () { | |
if (this.defaultValue && this.setValue(this.defaultValue), this.maxLength > 0 && this.setAttribute("maxlength", this.maxLength + ""), this.passwordDisplay) { | |
this.setAttribute("type", "password"); | |
} else { | |
if (this.setAttribute("type", "text"), this._initialValue && "" != this._initialValue) { | |
var elm = this.getElement(); | |
elm.value = this._initialValue; | |
} | |
} | |
/** @type {boolean} */ | |
this._rendered = true; | |
}, Router.prototype.setValue = function (value) { | |
return this._rendered ? this.getElement().value = value : this._initialValue = value, value; | |
}, Router.prototype.getValue = function () { | |
var e; | |
return e = this._rendered ? this.getElement().value : this._initialValue; | |
}, Router; | |
}(exports.Component); | |
exports.TextInput = TextInput; | |
}(ns_gen5_ui || (ns_gen5_ui = {})), function (Ajax) { | |
var Array = ns_gen5_ui.DomElement; | |
var ViewerLoader = ns_gen5_ui.Module; | |
var Singleton = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function self() { | |
} | |
return self.getInstance = function (name, id) { | |
var r; | |
var f; | |
var a; | |
if (self.ClassMap || (self.ClassMap = new Map, self.ModuleBank = new Map), id) { | |
if (a = id instanceof Array ? ViewerLoader.getRoot(id) : self.ModuleIDLookup[id], !a) { | |
return null; | |
} | |
r = self.ModuleBank.get(a); | |
if (!r) { | |
/** @type {!Map} */ | |
r = new Map; | |
self.ModuleBank.set(a, r); | |
} | |
} else { | |
r = self.ClassMap; | |
} | |
return f = r.get(name), f || (f = new name, r.set(name, f)), f; | |
}, self.RemoveInstance = function (key) { | |
self.ClassMap["delete"](key); | |
}, self.RemoveScope = function (obj) { | |
if (obj instanceof ViewerLoader) { | |
delete self.ModuleIDLookup[obj.uid]; | |
} | |
self.ModuleBank["delete"](obj); | |
}, self.RegisterModule = function (evt) { | |
if (!self.ModuleIDLookup[evt.uid]) { | |
self.ModuleIDLookup[evt.uid] = evt; | |
} | |
}, self.ModuleIDLookup = [], self; | |
}(); | |
Ajax.Singleton = Singleton; | |
}(ns_gen5_util || (ns_gen5_util = {})), function (state) { | |
var size = function (_super) { | |
/** | |
* @param {?} key | |
* @return {?} | |
*/ | |
function t(key) { | |
return _super.call(this, key) || this; | |
} | |
return __extends(t, _super), t.prototype.toString = function () { | |
return "[WidthStateWatcherEvent]"; | |
}, t.WIDTH_STATE_CHANGED = "widthStateChanged", t; | |
}(ns_gen5_events.Event365); | |
state.WidthStateWatcherEvent = size; | |
}(ns_gen5_util || (ns_gen5_util = {})), function (_schema) { | |
var app = ns_gen5_ui.Application; | |
var handler = ns_gen5_events.ApplicationEvent; | |
var ii = _schema.Delegate; | |
var IOBoardEvent = _schema.WidthStateWatcherEvent; | |
var name = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function me() { | |
return _super.call(this) || this; | |
} | |
return __extends(me, _super), me.prototype.toString = function () { | |
return "[WidthStateWatcher]"; | |
}, me.prototype.initialize = function () { | |
var el; | |
var b; | |
var currHeight; | |
var prop; | |
var a; | |
if (this._delegate_applicationWidthChangedHandler = new ii(this, this._applicationWidthChangedHandler), this._applicationWidthChangedHandler(new handler(handler.WIDTH_CHANGED, app.currentApplication.width)), app.currentApplication.addEventListener(handler.WIDTH_CHANGED, this._delegate_applicationWidthChangedHandler), $assert) { | |
$assert(this.thresholds, "Thresholds have not been set on this instance of " + this); | |
el = this.thresholds; | |
/** @type {number} */ | |
b = -1; | |
currHeight = el.length; | |
/** @type {number} */ | |
prop = 0; | |
for (; currHeight > prop; prop++) { | |
a = el[prop]; | |
$assert(a > b, "The thresholds list provided to this instance of " + this + " is not sequential."); | |
b = a; | |
} | |
} | |
/** @type {boolean} */ | |
this.initialized = true; | |
}, me.prototype.dispose = function () { | |
/** @type {null} */ | |
this._registeredDisplayElements = null; | |
app.currentApplication.removeEventListener(handler.WIDTH_CHANGED, this._delegate_applicationWidthChangedHandler); | |
}, me.prototype.registerElement = function (element) { | |
if (!this._registeredDisplayElements) { | |
/** @type {!Array} */ | |
this._registeredDisplayElements = []; | |
} | |
this._registeredDisplayElements[this._registeredDisplayElements.length] = element; | |
if (this.initialized) { | |
element.addStyle(this.classPrefix + this.state); | |
} | |
}, me.prototype.unregisterElement = function (chara) { | |
this._registeredDisplayElements.splice(this._registeredDisplayElements.indexOf(chara), 1); | |
}, me.prototype._applicationWidthChangedHandler = function (ch) { | |
var n; | |
var i; | |
var _localExports; | |
var arrs; | |
var args = this.thresholds; | |
var len = ch.width; | |
/** @type {number} */ | |
var name = -1; | |
var aLen = args.length; | |
/** @type {number} */ | |
i = 0; | |
for (; aLen > i; i++) { | |
if (n = args[i], n > len) { | |
/** @type {number} */ | |
name = i; | |
break; | |
} | |
} | |
if (-1 == name && (name = args.length), this.state != name && (_localExports = this.state, this.state = name, this.hasEventListener(IOBoardEvent.WIDTH_STATE_CHANGED) && this.dispatchEvent(new IOBoardEvent(IOBoardEvent.WIDTH_STATE_CHANGED)), arrs = this._registeredDisplayElements, arrs && (aLen = arrs.length))) { | |
if (-1 == _localExports) { | |
/** @type {number} */ | |
i = 0; | |
for (; aLen > i; i++) { | |
arrs[i].addStyle(this.classPrefix + name); | |
} | |
} else { | |
/** @type {number} */ | |
i = 0; | |
for (; aLen > i; i++) { | |
arrs[i].overwriteStyle(this.classPrefix + _localExports, this.classPrefix + name); | |
} | |
} | |
} | |
}, me.SInit = function () { | |
/** @type {null} */ | |
me.prototype._delegate_applicationWidthChangedHandler = null; | |
/** @type {null} */ | |
me.prototype._registeredDisplayElements = null; | |
/** @type {boolean} */ | |
me.prototype.initialized = false; | |
/** @type {number} */ | |
me.prototype.state = -1; | |
/** @type {null} */ | |
me.prototype.thresholds = null; | |
/** @type {string} */ | |
me.prototype.classPrefix = "g5-WidthStateWatcher_CurrentSize-"; | |
}(), me; | |
}(ns_gen5_events.EventDispatcher); | |
_schema.WidthStateWatcher = name; | |
}(ns_gen5_util || (ns_gen5_util = {})), function (Models) { | |
var friendlyTypeName; | |
var NestedRepresentation = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function t() { | |
return _super.call(this) || this; | |
} | |
return __extends(t, _super), t.prototype.initialize = function () { | |
}, t.prototype.stemUpdateHandler = function (cond, text) { | |
}, t.prototype.stemInsertHandler = function (name, promise) { | |
}, t.prototype.stemDeleteHandler = function (EMSarray) { | |
}, t.prototype.detatchStem = function () { | |
}, t.prototype.recursiveDetatchStem = function () { | |
}, t.SInit = function () { | |
ns_gen5_ui.StemBaseMixin.call(t.prototype); | |
}(), t; | |
}(ns_gen5_events.EventDispatcher); | |
Models.StemMergeProcessor_PrivateBase = NestedRepresentation; | |
friendlyTypeName = function (_super) { | |
/** | |
* @param {?} token | |
* @param {!Object} state | |
* @return {?} | |
*/ | |
function t(token, state) { | |
var params = _super.call(this) || this; | |
return params.toStem = null, params._excludeMap = null, params.stem = token, params.toStem = state, "_T" in state.data && delete state.data._T, params._excludeMap = {}, params._excludeMap.IT = 1, params; | |
} | |
return __extends(t, _super), t.prototype.toString = function () { | |
return "[StemMergeProcessor]"; | |
}, t.prototype.excludeAttributes = function () { | |
var i; | |
var parCnt; | |
var i__7286__auto___11343; | |
/** @type {!Array} */ | |
var argumentsArray = []; | |
/** @type {number} */ | |
i = 0; | |
for (; i < arguments.length; i++) { | |
argumentsArray[i] = arguments[i]; | |
} | |
/** @type {number} */ | |
parCnt = arguments.length; | |
/** @type {number} */ | |
i__7286__auto___11343 = 0; | |
for (; parCnt > i__7286__auto___11343; i__7286__auto___11343++) { | |
/** @type {number} */ | |
this._excludeMap[arguments[i__7286__auto___11343]] = 1; | |
} | |
}, t.prototype.initialize = function () { | |
_super.prototype.initialize.call(this); | |
this.takeAll(); | |
}, t.prototype.takeAll = function () { | |
var i; | |
var data = this.stem.data; | |
var c = this.toStem.data; | |
for (i in data) { | |
if (!(i in this._excludeMap)) { | |
c[i] = data[i]; | |
} | |
} | |
return c; | |
}, t.prototype.detatchStem = function () { | |
/** @type {null} */ | |
this.toStem = null; | |
_super.prototype.detatchStem.call(this); | |
}, t.prototype.stemUpdateHandler = function (clas, data) { | |
var i; | |
var b = {}; | |
for (i in data) { | |
if (!(i in this._excludeMap)) { | |
b[i] = data[i]; | |
} | |
} | |
this.toStem.update(b); | |
}, t; | |
}(NestedRepresentation); | |
Models.StemMergeProcessor = friendlyTypeName; | |
}(ns_gen5_util || (ns_gen5_util = {})), function (Context) { | |
var parentContext = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function self() { | |
} | |
return self.GetCookieValue = function (fetchedDoc) { | |
return this.GetCookieAttributeValue(fetchedDoc); | |
}, self.GetCookieAttributeValue = function (doc, x) { | |
var name; | |
var n; | |
var result; | |
var _j; | |
var paramsSplit; | |
var i; | |
/** @type {!Array<string>} */ | |
var rules = document.cookie.split(";"); | |
/** @type {null} */ | |
var part = null; | |
/** @type {number} */ | |
var rulesCount = rules.length; | |
/** @type {number} */ | |
_j = 0; | |
for (; rulesCount > _j; _j++) { | |
if (result = rules[_j], n = result.indexOf("="), name = result.substr(0, n), name = name.replace(/^\s+|\s+$/g, ""), name == doc) { | |
if (part = result.substr(n + 1), x) { | |
/** @type {!Array<string>} */ | |
paramsSplit = part.split("&"); | |
/** @type {null} */ | |
part = null; | |
/** @type {number} */ | |
i = 0; | |
for (; i < paramsSplit.length; i++) { | |
if (x == paramsSplit[i].split("=")[0]) { | |
/** @type {string} */ | |
part = paramsSplit[i].split("=")[1]; | |
break; | |
} | |
} | |
} | |
break; | |
} | |
} | |
return part ? unescape(part) : part; | |
}, self.SetCookieValue = function (name, x, v, text, expanded) { | |
var calendarStartDate; | |
var i; | |
var componentsStr; | |
var CR_index; | |
/** @type {!Array<string>} */ | |
var frags = document.cookie.split(";"); | |
/** @type {!Array} */ | |
var row = []; | |
/** @type {boolean} */ | |
var d = false; | |
/** @type {string} */ | |
var h = ""; | |
if (text && (h = ";domain=" + text), x && 0 != x.length) { | |
/** @type {number} */ | |
i = 0; | |
for (; i < frags.length; i++) { | |
if (frags[i] = frags[i].replace(/^\s+|\s+$/g, ""), name == frags[i].split("=")[0]) { | |
/** @type {string} */ | |
componentsStr = frags[i].substring(frags[i].indexOf("=") + 1, frags[i].length); | |
/** @type {!Array<string>} */ | |
row = componentsStr.split("&"); | |
/** @type {number} */ | |
CR_index = 0; | |
for (; CR_index < row.length; CR_index++) { | |
if (x == row[CR_index].split("=")[0]) { | |
/** @type {string} */ | |
row[CR_index] = x + "=" + escape(v).replace(/\+/g, "%2b"); | |
/** @type {boolean} */ | |
d = true; | |
} | |
} | |
} | |
} | |
if (!d) { | |
row.length++; | |
/** @type {string} */ | |
row[row.length - 1] = x + "=" + escape(v).replace(/\+/g, "%2b"); | |
} | |
/** @type {string} */ | |
document.cookie = name + "=; expires=Thu, 01-Jan-70 00:00:01 GMT;path=/"; | |
/** @type {string} */ | |
document.cookie = name + "=" + row.join("&") + (expanded ? h : "") + ";path=/" + Locator.user.cookieSecurityLevel; | |
} else { | |
/** @type {!Date} */ | |
calendarStartDate = new Date; | |
calendarStartDate.setDate(calendarStartDate.getDate() + 90); | |
/** @type {string} */ | |
document.cookie = name + "=" + v + h + ";path=/" + Locator.user.cookieSecurityLevel; | |
} | |
}, self.GetSessionId = function () { | |
var instanceFillValue; | |
try { | |
instanceFillValue = self.GetCookieValue("pstk"); | |
if (!/[A-F0-9]{38}/i.test(instanceFillValue)) { | |
/** @type {null} */ | |
instanceFillValue = null; | |
} | |
} catch (format) { | |
/** @type {null} */ | |
instanceFillValue = null; | |
ErrorReporter.Trace(this, format); | |
} | |
return instanceFillValue; | |
}, self.SetSessionId = function (id, sessionId) { | |
self.SetCookieValue("pstk", "", id, sessionId); | |
}, self.SetLoginSuccess = function (isIron) { | |
/** @type {string} */ | |
var options = 1 == isIron ? "1" : "0"; | |
self.SetCookieValue("session", "lgs", options); | |
}, self.SetKYCPage = function (name) { | |
self.SetCookieValue("session", "kpd", name); | |
}, self; | |
}(); | |
Context.CookieManager = parentContext; | |
}(ns_gen5_util || (ns_gen5_util = {})), function (exports) { | |
var TextNode = exports.TextNode; | |
var Label = function (_super) { | |
/** | |
* @param {?} name | |
* @return {?} | |
*/ | |
function Document(name) { | |
return _super.call(this, name) || this; | |
} | |
return __extends(Document, _super), Document.prototype.toString = function () { | |
return "[Label]"; | |
}, Document.prototype.createChildren = function () { | |
this._textNode = new TextNode(this._text); | |
this.appendChild(this._textNode); | |
}, Document.prototype.commitProperties = function () { | |
if (this._textChanged) { | |
/** @type {boolean} */ | |
this._textChanged = false; | |
this._textNode.setText(this._text); | |
} | |
}, Document.prototype.setText = function (text) { | |
if (text != this._text) { | |
/** @type {!Object} */ | |
this._text = text; | |
/** @type {boolean} */ | |
this._textChanged = true; | |
this.invalidateProperties(); | |
} | |
}, Document.prototype.getText = function () { | |
return this._text; | |
}, Document.prototype.getTooltip = function () { | |
return this._text; | |
}, Document.prototype.commitText = function (text) { | |
this._textNode.setText(text); | |
}, Document.SInit = function () { | |
/** @type {null} */ | |
Document.prototype._text = null; | |
/** @type {boolean} */ | |
Document.prototype._textChanged = false; | |
/** @type {null} */ | |
Document.prototype._textNode = null; | |
}(), Document; | |
}(exports.Component); | |
exports.Label = Label; | |
}(ns_gen5_ui || (ns_gen5_ui = {})), function (action) { | |
var url; | |
var scope = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function t() { | |
return null !== _super && _super.apply(this, arguments) || this; | |
} | |
return __extends(t, _super), t.prototype.stemUpdateHandler = function (cond, text) { | |
}, t.prototype.stemDeleteHandler = function (EMSarray) { | |
}, t.prototype.stemInsertHandler = function (name, promise) { | |
}, t.prototype.detatchStem = function () { | |
}, t.prototype.recursiveDetatchStem = function () { | |
}, t; | |
}(action.Label); | |
action.LabelStemBase_Mixin = scope; | |
action.StemBaseMixin.call(scope.prototype); | |
url = function (parent) { | |
/** | |
* @param {?} version | |
* @return {?} | |
*/ | |
function t(version) { | |
var n = parent.call(this, version) || this; | |
return n._textChanged = true, n; | |
} | |
return __extends(t, parent), t.prototype.toString = function () { | |
return "[LabelStemBase]"; | |
}, t.prototype.commitProperties = function () { | |
if (this._textChanged) { | |
this._text = this.stem.data[this.stemAttributeName] || ""; | |
parent.prototype.commitProperties.call(this); | |
} | |
}, t.prototype.stemUpdateHandler = function (type, coords) { | |
if (this.stemAttributeName in coords) { | |
/** @type {boolean} */ | |
this._textChanged = true; | |
this.invalidateProperties(); | |
} | |
}, t.prototype.setStem = function (stem) { | |
if (this.stem) { | |
this.stem.removeDelegate(this); | |
} | |
this.stem = stem; | |
if (stem) { | |
stem.addDelegate(this); | |
/** @type {boolean} */ | |
this._textChanged = true; | |
this.invalidateProperties(); | |
} | |
}, t.SInit = function () { | |
/** @type {string} */ | |
t.prototype.stemAttributeName = "NA"; | |
}(), t; | |
}(scope); | |
action.LabelStemBase = url; | |
}(ns_gen5_ui || (ns_gen5_ui = {})), function (e) { | |
var newOrg = function (parent) { | |
/** | |
* @return {?} | |
*/ | |
function WebView() { | |
var me = parent.call(this, "iframe") || this; | |
return me.scrolling = false, me.onloadHandler = function () { | |
return me.onLoad(); | |
}, me; | |
} | |
return __extends(WebView, parent), WebView.prototype.createChildren = function () { | |
var button = this; | |
var e = this.getElement(); | |
e.src = this.src; | |
e.name = this.name; | |
/** @type {string} */ | |
e.scrolling = this.scrolling ? "yes" : "no"; | |
e.setAttribute("allowtransparency", this.allowTransparency ? "true" : "false"); | |
this.setVisible(false); | |
e.addEventListener("load", this.onloadHandler); | |
e.addEventListener("unload", function () { | |
return button.executeUnload(); | |
}); | |
}, WebView.prototype.executeUnload = function () { | |
}, WebView.prototype.onLoad = function () { | |
var layer = this.getElement(); | |
layer.removeEventListener("load", this.onloadHandler); | |
this.setVisible(true); | |
}, WebView; | |
}(e.Component); | |
e.InlineFrame = newOrg; | |
}(ns_gen5_ui || (ns_gen5_ui = {})), function (p) { | |
/** | |
* @param {string} value | |
* @return {?} | |
*/ | |
function sub(value) { | |
return function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function result() { | |
var result = _super.call(this) || this; | |
return result.load(value), result; | |
} | |
return __extends(result, _super), result; | |
}(p.ModuleContainer); | |
} | |
/** @type {function(string): ?} */ | |
p.SingletonModule = sub; | |
}(ns_gen5_ui || (ns_gen5_ui = {})), function (state) { | |
var size = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function Keyboard() { | |
var scrollBoxPosition = _super.call(this) || this; | |
return scrollBoxPosition.direction = null, scrollBoxPosition; | |
} | |
return __extends(Keyboard, _super), Keyboard.prototype.toString = function () { | |
return "[ArrowButton]"; | |
}, Keyboard.prototype.createChildren = function () { | |
this.addStyle("g5-ArrowButton"); | |
if (this.direction) { | |
this.addStyle(this.direction); | |
} | |
}, Keyboard.LEFT = "g5-ArrowButton_Left", Keyboard.RIGHT = "g5-ArrowButton_Right", Keyboard.UP = "g5-ArrowButton_Up", Keyboard.DOWN = "g5-ArrowButton_Down", Keyboard; | |
}(ns_gen5_ui.Component); | |
state.ArrowButton = size; | |
}(ns_gen5_ui_controls || (ns_gen5_ui_controls = {})), function (route) { | |
var u_parent = ns_gen5_ui.Component; | |
var directions = route.ArrowButton; | |
/** @type {number} */ | |
var i = -1; | |
/** @type {number} */ | |
var o = 1; | |
var routed = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function self() { | |
var self = _super.call(this) || this; | |
return self.scrollAmmountModifier = 1, self.ignoreButtonsForTravel = false, self.fixedWidthScroll = false, self._scrollContent = null, self._leftButton = null, self._rightButton = null, self; | |
} | |
return __extends(self, _super), self.prototype.toString = function () { | |
return "[HorizontalScroller]"; | |
}, self.prototype.createChildren = function () { | |
var parent; | |
var item; | |
var list; | |
var _acl = this; | |
this.addStyle(this.baseStyle); | |
parent = this._leftButton = new this.arrowButtonType; | |
parent.direction = this.directions.LEFT; | |
/** | |
* @return {?} | |
*/ | |
parent.clickHandler = function () { | |
return _acl._travel(o); | |
}; | |
parent.addStyle(this.baseStyle + "_Dis"); | |
item = this._rightButton = new this.arrowButtonType; | |
item.direction = this.directions.RIGHT; | |
/** | |
* @return {?} | |
*/ | |
item.clickHandler = function () { | |
return _acl._travel(i); | |
}; | |
list = new u_parent; | |
list.addStyle(this.baseStyle + "_HScroll"); | |
this.appendChild(list); | |
this.appendChild(parent); | |
this.appendChild(list); | |
list.appendChild(this._scrollContent); | |
this.appendChild(item); | |
}, self.prototype._travel = function (size, func) { | |
var slide; | |
var i; | |
var number; | |
var index; | |
this._rightButton.removeStyle(this.baseStyle + "_Dis"); | |
this._leftButton.removeStyle(this.baseStyle + "_Dis"); | |
if (!this.buttonWidth) { | |
this.buttonWidth = this._rightButton.getElement().clientWidth; | |
} | |
if (this.ignoreButtonsForTravel) { | |
/** @type {number} */ | |
this.buttonWidth = 0; | |
} | |
slide = this._scrollContent.getElement(); | |
/** @type {number} */ | |
i = slide.clientWidth - 2 * this.buttonWidth; | |
if (!this.totalWidth) { | |
this.totalWidth = slide.scrollWidth; | |
} | |
/** @type {number} */ | |
this.max_x_pos = i - this.totalWidth; | |
if (this.max_x_pos > 0) { | |
/** @type {number} */ | |
this.max_x_pos = 0; | |
} | |
number = slide.style.left || "0px"; | |
number = number.slice(0, -2); | |
index = func || slide.scrollWidth / slide.children.length * this.scrollAmmountModifier; | |
/** @type {number} */ | |
this.endPos = Number(number) + index * size; | |
if (this.endPos - this.graceSpace < this.max_x_pos) { | |
/** @type {number} */ | |
this.endPos = this.max_x_pos; | |
this._rightButton.addStyle(this.baseStyle + "_Dis"); | |
} | |
if (this.endPos + this.graceSpace > 0) { | |
/** @type {number} */ | |
this.endPos = 0; | |
this._leftButton.addStyle(this.baseStyle + "_Dis"); | |
} | |
/** @type {string} */ | |
slide.style.left = this.endPos + "px"; | |
}, self.prototype.setScrollContent = function (canCreateDiscussions) { | |
/** @type {string} */ | |
this._scrollContent = canCreateDiscussions; | |
this._scrollContent.addStyle(this.baseStyle + "_ScrollContent"); | |
}, self.SInit = function () { | |
self.prototype.directions = directions; | |
self.prototype.arrowButtonType = directions; | |
/** @type {string} */ | |
self.prototype.baseStyle = "g5-HorizontalScroller"; | |
/** @type {number} */ | |
self.prototype.graceSpace = 60; | |
}(), self; | |
}(ns_gen5_ui.Component); | |
route.HorizontalScroller = routed; | |
}(ns_gen5_ui_controls || (ns_gen5_ui_controls = {})), function (state) { | |
var states; | |
var size; | |
var u_parent = ns_gen5_ui.Component; | |
var EventDispatcher = ns_gen5_events.EventDispatcher; | |
var IOBoardEvent = ns_gen5_events.ModalEvent; | |
!function (previous) { | |
/** @type {string} */ | |
previous[previous.Low = 1] = "Low"; | |
/** @type {string} */ | |
previous[previous.Normal = 2] = "Normal"; | |
/** @type {string} */ | |
previous[previous.High = 3] = "High"; | |
/** @type {string} */ | |
previous[previous.Urgent = 4] = "Urgent"; | |
/** @type {string} */ | |
previous[previous.AboveAllElse = 5] = "AboveAllElse"; | |
}(states = state.ModalPriority || (state.ModalPriority = {})); | |
size = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function n() { | |
var t = null !== _super && _super.apply(this, arguments) || this; | |
return t.modalQueue = [], t; | |
} | |
return __extends(n, _super), n.prototype.addModal = function (type, content) { | |
if (!this.root) { | |
this.root = this.getModalRoot(); | |
} | |
if (!content) { | |
content = states.Normal; | |
} | |
if (this.displayingModal) { | |
if (content > this.displayingModal.priority) { | |
this.modalQueue.push(this.displayingModal); | |
this.modalQueue.push({ | |
modalComponent: type, | |
priority: content | |
}); | |
this.removeModal(this.displayingModal.modalComponent); | |
} else { | |
this.modalQueue.push({ | |
modalComponent: type, | |
priority: content | |
}); | |
} | |
} else { | |
this.displayingModal = { | |
modalComponent: type, | |
priority: content | |
}; | |
this.showDarkWash(); | |
this.root.appendChild(type); | |
} | |
this.dispatchEvent(new IOBoardEvent(IOBoardEvent.MODAL_CHANGE, true)); | |
}, n.prototype.removeModal = function (modal) { | |
if (this.displayingModal = null, this.darkWash.suspendElementFromDom(), this.root.removeChild(modal), this.modalQueue.length > 0) { | |
this.modalQueue.sort(function (firstListenerDetails, secondListenerDetails) { | |
return secondListenerDetails.priority - firstListenerDetails.priority; | |
}); | |
var entryarray = this.modalQueue.splice(0, 1)[0]; | |
this.addModal(entryarray.modalComponent, entryarray.priority); | |
} else { | |
this.dispatchEvent(new IOBoardEvent(IOBoardEvent.MODAL_CHANGE, false)); | |
} | |
}, n.prototype.contains = function (object) { | |
if (this.displayingModal && this.displayingModal.modalComponent == object) { | |
return true; | |
} | |
if (this.modalQueue && this.modalQueue.length > 0) { | |
/** @type {number} */ | |
var layer_i = 0; | |
for (; layer_i < this.modalQueue.length; layer_i++) { | |
if (this.modalQueue[layer_i].modalComponent == object) { | |
return true; | |
} | |
} | |
} | |
return false; | |
}, n.prototype.showDarkWash = function () { | |
if (this.darkWash) { | |
this.darkWash.unsuspendElementFromDom(); | |
} else { | |
this.darkWash = new u_parent; | |
this.darkWash.addStyle(this.getWashStyle()); | |
this.root.appendChild(this.darkWash); | |
} | |
}, n; | |
}(EventDispatcher); | |
state.ModalManagerBase = size; | |
}(ns_gen5_util || (ns_gen5_util = {})), function (Functions) { | |
/** @type {number} */ | |
var s = 1.70158; | |
var Back = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function Bounce() { | |
} | |
return Bounce.EaseIn = function (t) { | |
return t * t * ((s + 1) * t - s); | |
}, Bounce.EaseOut = function (t) { | |
return (t = t - 1) * t * ((s + 1) * t + s) + 1; | |
}, Bounce.EaseInOut = function (t) { | |
return (t = t * 2) < 1 ? .5 * (t * t * ((1.525 * s + 1) * t - 1.525 * s)) : .5 * ((t = t - 2) * t * ((1.525 * s + 1) * t + 1.525 * s) + 2); | |
}, Bounce; | |
}(); | |
Functions.Back = Back; | |
}(ns_gen5_animation_easing || (ns_gen5_animation_easing = {})), function (Functions) { | |
var Bounce = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function Math() { | |
} | |
return Math.EaseIn = function (k) { | |
return 1 - Math.EaseOut(1 - k); | |
}, Math.EaseOut = function (t) { | |
return 1 / 2.75 > t ? 7.5625 * t * t : 2 / 2.75 > t ? 7.5625 * (t = t - 1.5 / 2.75) * t + .75 : 2.5 / 2.75 > t ? 7.5625 * (t = t - 2.25 / 2.75) * t + .9375 : 7.5625 * (t = t - 2.625 / 2.75) * t + .984375; | |
}, Math.EaseInOut = function (t) { | |
return (t = t * 2) < 1 ? .5 * Math.EaseIn(t) : .5 * Math.EaseOut(t - 1) + .5; | |
}, Math; | |
}(); | |
Functions.Bounce = Bounce; | |
}(ns_gen5_animation_easing || (ns_gen5_animation_easing = {})), function (Functions) { | |
/** @type {number} */ | |
var t = 1; | |
/** @type {number} */ | |
var n = .3; | |
/** @type {number} */ | |
var i = n / 4; | |
var Elastic = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function Bounce() { | |
} | |
return Bounce.EaseIn = function (c) { | |
return 0 == c || 1 == c ? c : -(t * Math.pow(2, 10 * (c = c - 1)) * Math.sin((c - i) * (2 * Math.PI) / n)); | |
}, Bounce.EaseOut = function (k) { | |
return 0 == k || 1 == k ? k : t * Math.pow(2, -10 * k) * Math.sin((k - i) * (2 * Math.PI) / n) + 1; | |
}, Bounce.EaseInOut = function (b) { | |
return 0 == b || 1 == b ? b : (b = 2 * b - 1, 0 > b ? -.5 * (t * Math.pow(2, 10 * b) * Math.sin((b - 1.5 * i) * (2 * Math.PI) / (1.5 * n))) : .5 * t * Math.pow(2, -10 * b) * Math.sin((b - 1.5 * i) * (2 * Math.PI) / (1.5 * n)) + 1); | |
}, Bounce; | |
}(); | |
Functions.Elastic = Elastic; | |
}(ns_gen5_animation_easing || (ns_gen5_animation_easing = {})), function (Functions) { | |
var Exponential = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function Bounce() { | |
} | |
return Bounce.EaseIn = function (b) { | |
return 0 == b ? 0 : Math.pow(2, 10 * (b - 1)); | |
}, Bounce.EaseOut = function (t) { | |
return 1 == t ? 1 : 1 - Math.pow(2, -10 * t); | |
}, Bounce.EaseInOut = function (t) { | |
return 0 == t || 1 == t ? t : 0 > (t = 2 * t - 1) ? .5 * Math.pow(2, 10 * t) : 1 - .5 * Math.pow(2, -10 * t); | |
}, Bounce; | |
}(); | |
Functions.Exponential = Exponential; | |
}(ns_gen5_animation_easing || (ns_gen5_animation_easing = {})), function (Functions) { | |
var Linear = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function e() { | |
} | |
return e.EaseNone = function (k) { | |
return k; | |
}, e; | |
}(); | |
Functions.Linear = Linear; | |
}(ns_gen5_animation_easing || (ns_gen5_animation_easing = {})), function (Functions) { | |
var Quartic = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function Bounce() { | |
} | |
return Bounce.EaseIn = function (t) { | |
return t * t * t * t; | |
}, Bounce.EaseOut = function (t) { | |
return 1 - (t = t - 1) * t * t * t; | |
}, Bounce.EaseInOut = function (t) { | |
return .5 > t ? 8 * t * t * t * t : -8 * (t = t - 1) * t * t * t + 1; | |
}, Bounce; | |
}(); | |
Functions.Quartic = Quartic; | |
}(ns_gen5_animation_easing || (ns_gen5_animation_easing = {})), function (Functions) { | |
var Quadratic = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function Bounce() { | |
} | |
return Bounce.EaseIn = function (b) { | |
return b * b; | |
}, Bounce.EaseOut = function (t) { | |
return -t * (t - 2); | |
}, Bounce.EaseInOut = function (t) { | |
return .5 > t ? 2 * t * t : -2 * t * (t - 2) - 1; | |
}, Bounce; | |
}(); | |
Functions.Quadratic = Quadratic; | |
}(ns_gen5_animation_easing || (ns_gen5_animation_easing = {})), function (HTMLSectionBuilder) { | |
/** | |
* @return {undefined} | |
*/ | |
function animate() { | |
var i; | |
var toScopes; | |
var scope; | |
/** @type {number} */ | |
now = +new Date; | |
/** @type {number} */ | |
i = 0; | |
/** @type {!Array<?>} */ | |
toScopes = a.slice(); | |
for (; i < toScopes.length; i++) { | |
scope = toScopes[i]; | |
scope.update(now); | |
if (!scope.getPlaying()) { | |
fn(scope); | |
} | |
} | |
Locator.validationManager.processValidationCycleNow(); | |
if (a.length) { | |
requestAnimationFrame(animate); | |
} | |
} | |
/** | |
* @param {?} h | |
* @return {undefined} | |
*/ | |
function init(h) { | |
a[a.length] = h; | |
if (1 == a.length) { | |
requestAnimationFrame(animate); | |
/** @type {number} */ | |
now = +new Date; | |
} | |
if (c) { | |
/** @type {boolean} */ | |
c = false; | |
Locator.validationManager.callPostValidation(function () { | |
/** @type {boolean} */ | |
c = true; | |
animate(); | |
}); | |
} | |
} | |
/** | |
* @param {string} fn | |
* @return {undefined} | |
*/ | |
function fn(fn) { | |
/** @type {number} */ | |
var index = a.indexOf(fn); | |
if (index > -1) { | |
a.splice(index, 1); | |
} | |
} | |
/** | |
* @param {!Object} c | |
* @param {number} s | |
* @return {?} | |
*/ | |
function transform(c, s) { | |
var x; | |
var t; | |
var iterator; | |
var ref; | |
var type; | |
var right; | |
var sum; | |
var i = c.from; | |
return c.to instanceof Array ? (ref = c.to, x = ref[0], type = ref[1], "string" == typeof type ? t = type : iterator = type) : (x = c.to, t = ""), right = i + s * (x - i), c.internal_different = right !== c.internal_previous_raw, c.internal_previous_raw = right, c.internal_different ? iterator ? (sum = iterator(x + i === 1 ? right : Math.round(right)), c.internal_different = sum !== c.internal_previous_calc, c.internal_previous_calc = sum, sum) : t ? (sum = (x + i === 1 ? right : Math.round(right)) + | |
t, c.internal_different = sum !== c.internal_previous_calc, c.internal_previous_calc = sum, sum) : right : -0; | |
} | |
var now; | |
var css = ns_gen5_animation_easing.Linear; | |
/** @type {!Array} */ | |
var a = []; | |
/** @type {boolean} */ | |
var c = true; | |
var HTMLSection = function () { | |
/** | |
* @param {string} item | |
* @param {number} val | |
* @param {!Object} data | |
* @param {number} flags | |
* @return {undefined} | |
*/ | |
function self(item, val, data, flags) { | |
var tfdt = this; | |
/** @type {string} */ | |
this.element = item; | |
/** @type {number} */ | |
this.time = val; | |
/** @type {!Object} */ | |
this.params = data; | |
/** @type {number} */ | |
this.flags = flags; | |
Locator.validationManager.callLater(function () { | |
if (!(tfdt.flags & self.AUTO_START_OFF)) { | |
tfdt.start(); | |
} | |
}); | |
} | |
return self.prototype.start = function () { | |
if (!this.playing) { | |
/** @type {boolean} */ | |
this.playing = true; | |
init(this); | |
this.startTime = now; | |
} | |
}, self.prototype.pause = function () { | |
if (this.playing) { | |
/** @type {boolean} */ | |
this.playing = false; | |
fn(this); | |
} else { | |
this.flags |= self.AUTO_START_OFF; | |
} | |
}, self.prototype.end = function () { | |
if (this.playing) { | |
/** @type {boolean} */ | |
this.playing = false; | |
this.update(this.startTime + this.time + 1); | |
fn(this); | |
} | |
}, self.prototype.getPlaying = function () { | |
return this.playing; | |
}, self.prototype.getElement = function () { | |
return this.element; | |
}, self.prototype.then = function (a) { | |
return a.flags = (a.flags || 0) | self.AUTO_START_OFF, this.next = a; | |
}, self.prototype.onBegin = function (size) { | |
return this.beginCallback = size, this; | |
}, self.prototype.onChange = function (cb) { | |
return this.changeCallback = cb, this; | |
}, self.prototype.onComplete = function (allPassed) { | |
return this.completeCallback = allPassed, this; | |
}, self.prototype.executeVoidCallback = function (saveNotifs) { | |
try { | |
saveNotifs(); | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
}, self.prototype.executeChangeCallback = function (y) { | |
try { | |
this.changeCallback(y); | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
}, self.prototype.update = function (now) { | |
var item; | |
var params; | |
var key; | |
var a; | |
var value; | |
var oStyle; | |
/** @type {number} */ | |
var element = (now - (this.startTime + (this.params.delay || 0))) / (this.time * self.DurationModifier) || (0 === this.time ? 1 : 0); | |
if (element >= 1) { | |
/** @type {boolean} */ | |
this.playing = false; | |
/** @type {number} */ | |
element = 1; | |
} else { | |
if (0 > element) { | |
return void (element = 0); | |
} | |
} | |
if (!this.moving && this.playing && (this.moving = true, this.beginCallback && this.executeVoidCallback(this.beginCallback)), item = (this.params.ease || css.EaseNone)(element), params = this.params, params.attribute) { | |
for (key in params.attribute) { | |
a = params.attribute[key]; | |
/** @type {string} */ | |
value = transform(a, item) + ""; | |
if (a.internal_different) { | |
this.element.setAttribute(key, value); | |
} | |
} | |
} | |
if (params.style) { | |
oStyle = this.element.getElement().style; | |
for (key in params.style) { | |
a = params.style[key]; | |
/** @type {string} */ | |
value = transform(a, item) + ""; | |
if (a.internal_different) { | |
/** @type {string} */ | |
oStyle[key] = value; | |
} | |
} | |
} | |
if (params.property) { | |
for (key in params.property) { | |
a = params.property[key]; | |
value = transform(a, item); | |
if (a.internal_different) { | |
if ("function" == typeof this.element[key]) { | |
this.element[key](value); | |
} else { | |
this.element[key] = value; | |
} | |
} | |
} | |
} | |
if (this.changeCallback) { | |
this.executeChangeCallback(item); | |
} | |
if (!this.playing) { | |
if (this.completeCallback) { | |
this.executeVoidCallback(this.completeCallback); | |
} | |
if (this.next) { | |
this.next.start(); | |
/** @type {null} */ | |
this.next = null; | |
} | |
} | |
}, self.DurationModifier = 1, self.AUTO_START_OFF = 1, self.SInit = function () { | |
/** @type {boolean} */ | |
self.prototype.playing = false; | |
/** @type {boolean} */ | |
self.prototype.moving = false; | |
/** @type {number} */ | |
self.prototype.startTime = 0; | |
/** @type {null} */ | |
self.prototype.next = null; | |
/** @type {null} */ | |
self.prototype.element = null; | |
/** @type {number} */ | |
self.prototype.time = 0; | |
/** @type {null} */ | |
self.prototype.params = null; | |
/** @type {number} */ | |
self.prototype.flags = 0; | |
/** @type {null} */ | |
self.prototype.beginCallback = null; | |
/** @type {null} */ | |
self.prototype.changeCallback = null; | |
/** @type {null} */ | |
self.prototype.completeCallback = null; | |
}(), self; | |
}(); | |
HTMLSectionBuilder.Tween = HTMLSection; | |
}(ns_gen5_animation || (ns_gen5_animation = {})), function (state) { | |
var size = function (_super) { | |
/** | |
* @param {?} props | |
* @return {?} | |
*/ | |
function Event(props) { | |
return _super.call(this, props) || this; | |
} | |
return __extends(Event, _super), Event.CONNECTED = "connected", Event.DISCONNECTED = "disconnected", Event.CONNECTION_FAILED = "connectionFailed", Event.CONNECTION_FAILED_INVALID_SESSION = "connectionFailedInvalidSession", Event; | |
}(ns_gen5_events.Event365); | |
state.ReaditConnectionEvent = size; | |
}(readit || (readit = {})), function (canCreateDiscussions) { | |
}(readit || (readit = {})), function (state) { | |
var size = function (_super) { | |
/** | |
* @param {?} props | |
* @return {?} | |
*/ | |
function Event(props) { | |
return _super.call(this, props) || this; | |
} | |
return __extends(Event, _super), Event.CONNECTED = "connected", Event.DISCONNECTED = "disconnected", Event.CONNECTION_FAILED = "connectionFailed", Event.PULL_ENABLED = "pullEnabled", Event.PULL_DISABLED = "pullDisabled", Event.PULL_DATA_RECEIVED = "pullDataReceived", Event.PULL_REQUEST_FAILED = "pullRequestFailed", Event.CONNECTION_FAILED_INVALID_SESSION = "connectionFailedInvalidSession", Event; | |
}(ns_gen5_events.Event365); | |
state.TransportConnectionEvent = size; | |
}(readit || (readit = {})), function (state) { | |
var size = function (_super) { | |
/** | |
* @param {?} ctx | |
* @param {string} value | |
* @return {?} | |
*/ | |
function response(ctx, value) { | |
var memo = _super.call(this, ctx) || this; | |
return memo.message = value, memo; | |
} | |
return __extends(response, _super), response.prototype.toString = function () { | |
return "[ReaditMessageEvent type=" + this.type + " message=" + this.message + "]"; | |
}, response.MESSAGE_RECEIVED = "messageReceived", response; | |
}(ns_gen5_events.Event365); | |
state.ReaditMessageEvent = size; | |
}(readit || (readit = {})), function (state) { | |
var size = function () { | |
/** | |
* @param {string} to | |
* @param {string} topic | |
* @param {string} msg | |
* @param {?} range | |
* @return {undefined} | |
*/ | |
function Message(to, topic, msg, range) { | |
/** @type {string} */ | |
this.messageType = to; | |
/** @type {string} */ | |
this.topic = topic; | |
/** @type {string} */ | |
this.message = msg; | |
this.userHeaders = range; | |
} | |
return Message.prototype.toString = function () { | |
return "[ReaditMessage messageType=" + this.messageType + " message=" + this.message + " topic=" + this.topic + "]"; | |
}, Message.prototype.getMessage = function () { | |
return this.message; | |
}, Message.prototype.getTopic = function () { | |
return this.topic; | |
}, Message.prototype.getBaseTopic = function () { | |
return this.topic.substr(this.topic.lastIndexOf("/") + 1, this.topic.length); | |
}, Message.prototype.getUserHeaders = function () { | |
return this.userHeaders; | |
}, Message.prototype.isInitialTopicLoad = function () { | |
return this.messageType === state.StandardProtocolConstants.INITIAL_TOPIC_LOAD; | |
}, Message; | |
}(); | |
state.ReaditMessage = size; | |
}(readit || (readit = {})), function (canCreateDiscussions) { | |
var t; | |
!function (Status) { | |
/** @type {string} */ | |
Status[Status.DISCONNECTED = 0] = "DISCONNECTED"; | |
/** @type {string} */ | |
Status[Status.PENDING = 1] = "PENDING"; | |
/** @type {string} */ | |
Status[Status.CONNECTED = 2] = "CONNECTED"; | |
}(t = canCreateDiscussions.ReaditConnectionStatus || (canCreateDiscussions.ReaditConnectionStatus = {})); | |
canCreateDiscussions.StandardProtocolConstants = { | |
RECORD_DELIM: "\u0001", | |
FIELD_DELIM: "\u0002", | |
HANDSHAKE_MESSAGE_DELIM: "\u0003", | |
MESSAGE_DELIM: "\b", | |
CLIENT_CONNECT: 0, | |
CLIENT_POLL: 1, | |
CLIENT_SEND: 2, | |
CLIENT_CONNECT_FAST: 3, | |
INITIAL_TOPIC_LOAD: 20, | |
DELTA: 21, | |
CLIENT_SUBSCRIBE: 22, | |
CLIENT_UNSUBSCRIBE: 23, | |
CLIENT_SWAP_SUBSCRIPTIONS: 26, | |
NONE_ENCODING: 0, | |
ENCRYPTED_ENCODING: 17, | |
COMPRESSED_ENCODING: 18, | |
BASE64_ENCODING: 19, | |
SERVER_PING: 24, | |
CLIENT_PING: 25, | |
CLIENT_ABORT: 28, | |
CLIENT_CLOSE: 29, | |
ACK_ITL: 30, | |
ACK_DELTA: 31, | |
ACK_RESPONSE: 32 | |
}; | |
}(readit || (readit = {})), function (CONSTANTS) { | |
var t; | |
var n; | |
var origSwiftProgId; | |
var RuleBuilder = ns_gen5_util.Delegate; | |
var STORAGE_CONSTANTS = CONSTANTS.TransportConnectionEvent; | |
var IOBoardEvent = CONSTANTS.ReaditConnectionEvent; | |
var Status = CONSTANTS.ReaditConnectionStatus; | |
CONSTANTS.ReadItLog = new function () { | |
var LogEntry = ns_gen5_util.LogEntry; | |
/** @type {boolean} */ | |
this._enabled = true; | |
/** @type {!Array} */ | |
this._log = []; | |
/** | |
* @return {?} | |
*/ | |
this.getLog = function () { | |
return this._log; | |
}; | |
/** | |
* @param {string} component | |
* @return {undefined} | |
*/ | |
this.Log = function (component) { | |
if (this._log.push(new LogEntry(component)), this._enabled) { | |
try { | |
/** @type {!Date} */ | |
var d = new Date; | |
$log(d.getHours() + ":" + d.getMinutes() + ":" + d.getSeconds() + "." + d.getMilliseconds() + " -> " + component); | |
} catch (i) { | |
} | |
} | |
}; | |
/** | |
* @param {boolean} enabled | |
* @return {undefined} | |
*/ | |
this.SetEnabled = function (enabled) { | |
/** @type {boolean} */ | |
this._enabled = enabled; | |
}; | |
}; | |
CONSTANTS.pushConnectionStatusEnum = { | |
ATTEMPTINGCONNECTION: 1, | |
CONNECTED: 2, | |
FIRSTATTEMPTFAILED: 3, | |
ALLRETRYSFAILED: 4, | |
DISCONNECTED: 5, | |
DELTA: 6, | |
PULL_FALLBACK_ENABLED: 7, | |
PULL_FALLBACK_DISABLED: 8, | |
PULL_FALLBACK_DATA_RECEIVED: 9, | |
PULL_FALLBACK_REQUEST_FAILED: 10 | |
}; | |
CONSTANTS.ReaditFlags = { | |
SEND_CLOSE: 1 | |
}; | |
origSwiftProgId = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function child() { | |
var self = _super.call(this) || this; | |
return self._connectionListStart = null, self._connectionListEnd = null, self._currentConnectionDetails = null, self._currentTransportMethod = null, self._connectionStatus = Status.DISCONNECTED, self._connectionCycleAttempts = 0, self.connectionListCycles = 0, self.pushStatusHandler = null, self.storageId = null, self.delegate_transportConnectedHandler = new RuleBuilder(self, self.transportConnectedHandler), self.delegate_transportConnectionFailedHandler = new RuleBuilder(self, self.transportConnectionFailedHandler), | |
self.delegate_transportDisconnectedHandler = new RuleBuilder(self, self.transportDisconnectedHandler), self.delegate_transportConnectionFailedInvalidSessionHandler = new RuleBuilder(self, self.transportConnectionFailedInvalidSessionHandler), self; | |
} | |
return __extends(child, _super), child.prototype.toString = function () { | |
return "[ReaditClient]"; | |
}, child.prototype.addConnectionAttempt = function (totalPages) { | |
if (this._connectionListStart) { | |
/** @type {string} */ | |
this._connectionListEnd.next = totalPages; | |
/** @type {string} */ | |
this._connectionListEnd = totalPages; | |
} else { | |
this._connectionListStart = this._connectionListEnd = totalPages; | |
} | |
}, child.prototype.connect = function (e, o) { | |
t = e; | |
n = o; | |
if (this._connectionStatus == Status.DISCONNECTED) { | |
this._connectionStatus = Status.PENDING; | |
/** @type {number} */ | |
this._connectionCycleAttempts = 0; | |
this._currentConnectionDetails = this._connectionListEnd; | |
this.connectToNext(); | |
} | |
}, child.prototype.close = function (callback) { | |
if (this._currentTransportMethod) { | |
var t = this._currentTransportMethod; | |
this.disposeCurrentTransportMethod(); | |
t.close(callback); | |
} | |
this._connectionStatus = Status.DISCONNECTED; | |
}, child.prototype.connectToNext = function () { | |
if (!Locator.config.hasSessionExpired()) { | |
if (!this._currentConnectionDetails || !(this._currentConnectionDetails = this._currentConnectionDetails.next)) { | |
if (this.connectionListCycles > 0 && this._connectionCycleAttempts++ == this.connectionListCycles) { | |
return CONSTANTS.ReadItLog.Log("Transport connection cycles completed, connection failed"), this.close(), void this.dispatchEvent(new IOBoardEvent(CONSTANTS.ReaditConnectionEvent.CONNECTION_FAILED)); | |
} | |
this._currentConnectionDetails = this._connectionListStart; | |
} | |
this.disposeCurrentTransportMethod(); | |
this._currentTransportMethod = new this._currentConnectionDetails.transportMethod; | |
this._currentTransportMethod.addEventListener(STORAGE_CONSTANTS.CONNECTED, this.delegate_transportConnectedHandler); | |
this._currentTransportMethod.addEventListener(STORAGE_CONSTANTS.CONNECTION_FAILED, this.delegate_transportConnectionFailedHandler); | |
this._currentTransportMethod.addEventListener(STORAGE_CONSTANTS.DISCONNECTED, this.delegate_transportDisconnectedHandler); | |
this._currentTransportMethod.addEventListener(STORAGE_CONSTANTS.CONNECTION_FAILED_INVALID_SESSION, this.delegate_transportConnectionFailedInvalidSessionHandler); | |
this._currentTransportMethod.setConnectionDetails(this._currentConnectionDetails); | |
this._currentTransportMethod.setMessageDispatcher(this); | |
this.logPushStatus(String(CONSTANTS.pushConnectionStatusEnum.ATTEMPTINGCONNECTION), this.getCurrentConnectionHost()); | |
this._currentTransportMethod.storageId = this.storageId; | |
this._currentTransportMethod.tokenValidation = this.tokenValidation; | |
this._currentTransportMethod.connect(t, n); | |
} | |
}, child.prototype.disposeCurrentTransportMethod = function () { | |
if (this._currentTransportMethod) { | |
this._currentTransportMethod.removeEventListener(STORAGE_CONSTANTS.CONNECTED, this.delegate_transportConnectedHandler); | |
this._currentTransportMethod.removeEventListener(STORAGE_CONSTANTS.CONNECTION_FAILED, this.delegate_transportConnectionFailedHandler); | |
this._currentTransportMethod.removeEventListener(STORAGE_CONSTANTS.DISCONNECTED, this.delegate_transportDisconnectedHandler); | |
this._currentTransportMethod.removeEventListener(STORAGE_CONSTANTS.CONNECTION_FAILED_INVALID_SESSION, this.delegate_transportConnectionFailedInvalidSessionHandler); | |
/** @type {null} */ | |
this._currentTransportMethod = null; | |
} | |
}, child.prototype.subscribe = function (type) { | |
if (this._connectionStatus == Status.CONNECTED) { | |
try { | |
this._currentTransportMethod.subscribe(type); | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
} | |
}, child.prototype.unsubscribe = function (name) { | |
if (this._connectionStatus == Status.CONNECTED) { | |
try { | |
this._currentTransportMethod.unsubscribe(name); | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
} | |
}, child.prototype.send = function (text, obj) { | |
if (this._connectionStatus == Status.CONNECTED) { | |
this._currentTransportMethod.send(text, obj); | |
} | |
}, child.prototype.swapSubscription = function (e, f) { | |
if (this._connectionStatus == Status.CONNECTED) { | |
try { | |
this._currentTransportMethod.swapSubscription(e, f); | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
} | |
}, child.prototype.getConnectionID = function () { | |
return this._connectionStatus == Status.CONNECTED ? this._currentTransportMethod.getConnectionId() : null; | |
}, child.prototype.getConnected = function () { | |
return this._connectionStatus == Status.CONNECTED; | |
}, child.prototype.getConnectionStatus = function () { | |
return this._connectionStatus; | |
}, child.prototype.getTransportSuspended = function () { | |
return this._currentTransportMethod && this._currentTransportMethod.suspended; | |
}, child.prototype.getCurrentConnectionHost = function () { | |
return this._currentConnectionDetails ? this._currentConnectionDetails.host : this._connectionListEnd.host; | |
}, child.prototype.getCurrentConnectionDetails = function () { | |
return this._currentTransportMethod.getConnectionDetails(); | |
}, child.prototype.logPushStatus = function (base, rel) { | |
try { | |
if (this.pushStatusHandler) { | |
this.pushStatusHandler.log(base, 0, rel); | |
} | |
} catch (n) { | |
} | |
}, child.prototype.transportConnectedHandler = function () { | |
this._connectionStatus = Status.CONNECTED; | |
this.logPushStatus(String(CONSTANTS.pushConnectionStatusEnum.CONNECTED), this.getCurrentConnectionHost()); | |
this.dispatchEvent(new IOBoardEvent(CONSTANTS.ReaditConnectionEvent.CONNECTED)); | |
}, child.prototype.transportConnectionFailedHandler = function () { | |
this.logPushStatus(String(CONSTANTS.pushConnectionStatusEnum.DISCONNECTED), this.getCurrentConnectionHost()); | |
this.connectToNext(); | |
}, child.prototype.transportDisconnectedHandler = function () { | |
this.close(); | |
this.logPushStatus(String(CONSTANTS.pushConnectionStatusEnum.DISCONNECTED), this.getCurrentConnectionHost()); | |
this.dispatchEvent(new IOBoardEvent(CONSTANTS.ReaditConnectionEvent.DISCONNECTED)); | |
}, child.prototype.transportConnectionFailedInvalidSessionHandler = function () { | |
this.close(); | |
this.dispatchEvent(new IOBoardEvent(CONSTANTS.ReaditConnectionEvent.CONNECTION_FAILED_INVALID_SESSION)); | |
}, child; | |
}(ns_gen5_events.EventDispatcher); | |
CONSTANTS.ReaditClient = origSwiftProgId; | |
}(readit || (readit = {})), function (state) { | |
var size = function () { | |
/** | |
* @param {string} value | |
* @param {string} couchdbconn | |
* @param {number} changesFeedHandle | |
* @param {string} selector | |
* @param {string} id | |
* @return {undefined} | |
*/ | |
function Cursor(value, couchdbconn, changesFeedHandle, selector, id) { | |
/** @type {string} */ | |
this.host = value; | |
/** @type {string} */ | |
this.port = couchdbconn; | |
/** @type {number} */ | |
this.transportMethodId = changesFeedHandle; | |
/** @type {string} */ | |
this.defaultTopic = selector; | |
/** @type {string} */ | |
this.uid = id; | |
/** @type {null} */ | |
this.next = null; | |
} | |
return Cursor.prototype.clone = function () { | |
return new Cursor(this.host, this.port, this.transportMethodId, this.defaultTopic, this.uid); | |
}, Cursor.prototype.toString = function () { | |
return "[host:" + this.host + ", port:" + this.port + ", topic:" + this.defaultTopic + "]"; | |
}, Cursor; | |
}(); | |
state.ReaditConnectionDetails = size; | |
}(readit || (readit = {})), function (a) { | |
/** @type {number} */ | |
var state = 0; | |
/** @type {number} */ | |
var readyState = 1; | |
/** @type {number} */ | |
var HAVE_NOTHING = 3; | |
/** @type {number} */ | |
var i = 4; | |
var ricoSubMenu = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function xhr() { | |
var self = this; | |
/** @type {!XDomainRequest} */ | |
this.xdr = new XDomainRequest; | |
/** @type {number} */ | |
this.xdr.timeout = 6e4; | |
/** @type {number} */ | |
this.status = 0; | |
/** @type {number} */ | |
this.readyState = state; | |
/** @type {null} */ | |
this.responseText = null; | |
/** @type {null} */ | |
this.contentType = null; | |
/** @type {null} */ | |
this.onreadystatechange = null; | |
/** | |
* @return {?} | |
*/ | |
this.progress_delegate = function () { | |
return self._progress(); | |
}; | |
/** | |
* @return {?} | |
*/ | |
this.onload_delegate = function () { | |
return self._onload(); | |
}; | |
/** | |
* @return {?} | |
*/ | |
this.onerror_delegate = function () { | |
return self._onerror(); | |
}; | |
/** | |
* @return {?} | |
*/ | |
this.ontimeout_delegate = function () { | |
return self._timeout(); | |
}; | |
} | |
return xhr.TryCreate = function (options) { | |
return "withCredentials" in options || !XDomainRequest ? options : new xhr; | |
}, xhr.prototype._progress = function () { | |
/** @type {number} */ | |
this.readyState = HAVE_NOTHING; | |
if (this.onreadystatechange) { | |
this.onreadystatechange.call(this); | |
} | |
}, xhr.prototype._timeout = function () { | |
/** @type {number} */ | |
this.readyState = i; | |
/** @type {number} */ | |
this.status = 0; | |
/** @type {null} */ | |
this.responseText = null; | |
/** @type {null} */ | |
this.contentType = null; | |
/** @type {function(): undefined} */ | |
this.xdr.onload = this.xdr.onerror = this.xdr.ontimeout = function () { | |
}; | |
this.xdr = void 0; | |
if (this.onreadystatechange) { | |
this.onreadystatechange.call(this); | |
} | |
}, xhr.prototype._onerror = function () { | |
/** @type {number} */ | |
this.readyState = i; | |
/** @type {number} */ | |
this.status = 0; | |
/** @type {null} */ | |
this.responseText = null; | |
/** @type {null} */ | |
this.contentType = null; | |
/** @type {function(): undefined} */ | |
this.xdr.onload = this.xdr.onerror = this.xdr.ontimeout = function () { | |
}; | |
this.xdr = void 0; | |
if (this.onreadystatechange) { | |
this.onreadystatechange.call(this); | |
} | |
}, xhr.prototype._onload = function () { | |
/** @type {number} */ | |
this.readyState = i; | |
/** @type {number} */ | |
this.status = 200; | |
this.responseText = this.xdr.responseText; | |
this.contentType = this.xdr.contentType; | |
/** @type {function(): undefined} */ | |
this.xdr.onload = this.xdr.onerror = this.xdr.ontimeout = function () { | |
}; | |
this.xdr = void 0; | |
if (this.onreadystatechange) { | |
this.onreadystatechange.call(this); | |
} | |
}, xhr.prototype.open = function (method, url) { | |
/** @type {null} */ | |
var reqSignature = null; | |
try { | |
reqSignature = this.xdr.open(method, url); | |
} catch (line) { | |
throw { | |
name: line.name, | |
message: line.message, | |
number: line.number | |
}; | |
} | |
return this.xdr.onprogress = this.progress_delegate, this.xdr.ontimeout = this.ontimeout_delegate, this.xdr.onerror = this.onerror_delegate, this.xdr.onload = this.onload_delegate, this.readyState = readyState, this.onreadystatechange && this.onreadystatechange.call(this), reqSignature; | |
}, xhr.prototype.send = function (data) { | |
this.xdr.send(data); | |
}, xhr.prototype.abort = function () { | |
return this.readyState = state, this.onreadystatechange = null, this.xdr.abort(); | |
}, xhr; | |
}(); | |
a.XDomainXMLHttpRequest = ricoSubMenu; | |
}(readit || (readit = {})), function (self) { | |
var h; | |
var s; | |
var event = ns_gen5_ui.Application; | |
var CaptureDevice = ns_gen5_events.ApplicationEvent; | |
var Buffer = ns_gen5_util.Delegate; | |
var n = ns_gen5_util.CookieManager; | |
var a = ns_gen5_util_logging.CounterLogger; | |
var QRErrorCorrectLevel = { | |
L: "1", | |
M: "2", | |
I: "3" | |
}; | |
var tickZoom = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function options() { | |
var self = _super.call(this) || this; | |
return self._poller = null, self._messageDispatcher = null, self._connectionTimeout = 0, self._url = "", self._requestActive = false, self._requestQueue = [], self._connectionID = "", self._sID = "", self._sequence = 0, self._connected = false, self._hasNativeXmlHttp = false, self._transportIsSupported = self.checkXmlHttpAvailable(), self._activeXVersion = null, self.instanceid = options.count++ , self.hasLoggedCounter = false, self.suspended = false, self.storageId = null, self.tokenValidation = | |
false, self.TRAILING = "/pow2/", self.CONNECTION_TIMEOUT_LIMIT = 15e3, self.PUBLISHER_SESSION_TIMEOUT = 9e4, self.TRANSPORT_TIMEOUT = 20, self._delegate_resume = new Buffer(self, self._resume), self; | |
} | |
return __extends(options, _super), options.prototype.toString = function () { | |
return "[HttpTransportMethod]"; | |
}, options.prototype.connect = function (e, n) { | |
var topic; | |
var data; | |
var idx; | |
var send; | |
var d; | |
var req; | |
var end; | |
var that = this; | |
if (h = e, s = n, this._transportIsSupported) { | |
/** @type {number} */ | |
this._connectionTimeout = setTimeout(function () { | |
that.connectionFailed("timeout after " + that.CONNECTION_TIMEOUT_LIMIT + "ms"); | |
}, this.CONNECTION_TIMEOUT_LIMIT); | |
try { | |
end = this.retrieve(); | |
this._connectionID = end[0]; | |
this._connectionTimeStamp = end[1]; | |
/** @type {string} */ | |
this._url = this._connectionDetails.host + ":" + this._connectionDetails.port + this.TRAILING; | |
this.log("Attempting connection to " + this._url); | |
topic = n.GetSessionId(); | |
data = h && h(); | |
idx = s && s(); | |
if (null == topic) { | |
this.dispatchEvent(new self.TransportConnectionEvent(self.TransportConnectionEvent.CONNECTION_FAILED_INVALID_SESSION)); | |
} else { | |
/** | |
* @return {undefined} | |
*/ | |
send = function () { | |
var args; | |
var req; | |
if (idx && Date.now() / 1e3 > idx) { | |
if (!that.hasLoggedCounter) { | |
/** @type {boolean} */ | |
that.hasLoggedCounter = true; | |
a.QueueCounter("nst_timestamp_2", 1); | |
a.ForceCounterFlush(); | |
} | |
} | |
args = { | |
method: self.StandardProtocolConstants.CLIENT_CONNECT, | |
transporttimeout: that.TRANSPORT_TIMEOUT, | |
type: "F", | |
topic: that._connectionDetails.defaultTopic + ",S_" + topic | |
}; | |
if (that.tokenValidation && data) { | |
args.topic += ",D_" + data; | |
} | |
req = that.getRequest(args); | |
that.log("Connecting with:" + req); | |
/** | |
* @return {undefined} | |
*/ | |
req.onreadystatechange = function () { | |
var m; | |
var argNames; | |
var FALLBACK_CROSS_POST_MARGIN_MAP; | |
var message; | |
if (4 == req.readyState) { | |
clearTimeout(that._connectionTimeout); | |
if (200 == req.status) { | |
m = req.responseText.split(self.StandardProtocolConstants.HANDSHAKE_MESSAGE_DELIM); | |
argNames = m[0]; | |
FALLBACK_CROSS_POST_MARGIN_MAP = argNames.split("\u0002"); | |
if ("100" == FALLBACK_CROSS_POST_MARGIN_MAP[0]) { | |
that.handshakeHandler(FALLBACK_CROSS_POST_MARGIN_MAP[1]); | |
message = m[1]; | |
if (message) { | |
that.processMessage(message); | |
} | |
} | |
if ("111" == FALLBACK_CROSS_POST_MARGIN_MAP[0]) { | |
that.connectionFailed("connection rejected 111"); | |
} | |
} else { | |
that.connectionFailed("Connection Rejected - Invalid response status:" + req.status); | |
} | |
/** @type {null} */ | |
req.onreadystatechange = null; | |
} | |
}; | |
req.send(req.params || ""); | |
}; | |
if (!this.storageId || !this._connectionID || !this._connectionTimeStamp || (new Date).getTime() - this._connectionTimeStamp > this.PUBLISHER_SESSION_TIMEOUT) { | |
send(); | |
} else { | |
this.clear(); | |
/** @type {boolean} */ | |
d = false; | |
req = this.getRequest({ | |
method: self.StandardProtocolConstants.CLIENT_CLOSE, | |
s: this._sequence++ | |
}); | |
/** | |
* @return {undefined} | |
*/ | |
req.onreadystatechange = function () { | |
if (!(d || 4 !== req.readyState)) { | |
/** @type {boolean} */ | |
d = true; | |
/** @type {null} */ | |
req.onreadystatechange = null; | |
send(); | |
} | |
}; | |
req.send(""); | |
} | |
} | |
} catch (g) { | |
clearTimeout(this._connectionTimeout); | |
this.connectionFailed("Unable to open Socket."); | |
} | |
} else { | |
this.connectionFailed("XML Http Transport not supported."); | |
} | |
}, options.prototype.subscribe = function (key) { | |
this.put(this.getRequest({ | |
method: self.StandardProtocolConstants.CLIENT_SUBSCRIBE, | |
topic: key, | |
s: this._sequence++ | |
})); | |
}, options.prototype.unsubscribe = function (event) { | |
this.put(this.getRequest({ | |
method: self.StandardProtocolConstants.CLIENT_UNSUBSCRIBE, | |
topic: event, | |
s: this._sequence++ | |
})); | |
}, options.prototype.send = function (text, obj) { | |
this.put(this.getRequest({ | |
method: self.StandardProtocolConstants.CLIENT_SEND, | |
data: encodeURIComponent(obj), | |
topic: text, | |
s: this._sequence++ | |
})); | |
}, options.prototype.swapSubscription = function (timeout, asyncFunction) { | |
this.put(this.getRequest({ | |
method: self.StandardProtocolConstants.CLIENT_SWAP_SUBSCRIPTIONS, | |
subs: timeout, | |
unsubs: asyncFunction, | |
s: this._sequence++ | |
})); | |
}, options.prototype.close = function (callback) { | |
if (callback & self.ReaditFlags.SEND_CLOSE) { | |
this.put(this.getRequest({ | |
method: self.StandardProtocolConstants.CLIENT_CLOSE, | |
s: this._sequence++ | |
})); | |
this.clear(); | |
} | |
this.dispose(); | |
this.dispatchEvent(new self.TransportConnectionEvent(self.TransportConnectionEvent.DISCONNECTED)); | |
}, options.prototype.setMessageDispatcher = function (EMSarray) { | |
this._messageDispatcher = EMSarray; | |
}, options.prototype.getConnectionDetails = function () { | |
return this._connectionDetails; | |
}, options.prototype.setConnectionDetails = function (canCreateDiscussions) { | |
/** @type {!Object} */ | |
this._connectionDetails = canCreateDiscussions; | |
}, options.prototype.getConnected = function () { | |
return this._connected; | |
}, options.prototype.connectionFailed = function (err) { | |
this.log("http connection (" + this.instanceid + ", " + this._connectionDetails + ") failed - " + err); | |
var n = this._connected; | |
this.dispose(); | |
if (n) { | |
this.dispatchEvent(new self.TransportConnectionEvent(self.TransportConnectionEvent.DISCONNECTED)); | |
} else { | |
this.dispatchEvent(new self.TransportConnectionEvent(self.TransportConnectionEvent.CONNECTION_FAILED)); | |
} | |
}, options.prototype.getRequest = function (data) { | |
var request; | |
var token; | |
var i; | |
request = this._hasNativeXmlHttp ? self.XDomainXMLHttpRequest.TryCreate(new XMLHttpRequest) : new ActiveXObject(this._activeXVersion); | |
try { | |
request.open("POST", this._url + (this._connectionID ? "?id=" + this._connectionID : "")); | |
if (this._connectionID) { | |
data.clientid = this._connectionID; | |
} | |
/** @type {string} */ | |
token = ""; | |
if (request.setRequestHeader) { | |
request.setRequestHeader("Content-Type", "text/plain"); | |
} | |
for (i in data) { | |
/** @type {string} */ | |
token = token + ((token.length > 0 ? "&" : "") + i + "=" + encodeURIComponent(data[i])); | |
} | |
return request.params = token, request; | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
return null; | |
}, options.prototype.put = function (key) { | |
var doc; | |
var self = this; | |
if (null !== key) { | |
this._requestQueue.push(key); | |
} | |
if (!(this._requestActive || this.suspended || "" === this._connectionID)) { | |
if (this._requestQueue.length > 0) { | |
doc = this._requestQueue.shift(); | |
/** @type {boolean} */ | |
this._requestActive = true; | |
/** | |
* @return {undefined} | |
*/ | |
doc.onreadystatechange = function () { | |
if (4 == doc.readyState) { | |
if (200 == doc.status && doc.responseText) { | |
self.processMessage(doc.responseText); | |
} else { | |
if (200 != doc.status) { | |
self.connectionFailed("Connection lost during put."); | |
} | |
} | |
self.queuedRequestCompleteHandler(); | |
/** @type {null} */ | |
doc.onreadystatechange = null; | |
} | |
}; | |
if ("params" in doc) { | |
doc.send(doc.params || ""); | |
} else { | |
doc.send(""); | |
} | |
} | |
} | |
}, options.prototype.poll = function () { | |
var self = this; | |
if (this._connected) { | |
if (options.SuspendOnFocusLost && event.currentApplication && event.currentApplication.suspended) { | |
if (!this.suspended) { | |
$log("suspend"); | |
/** @type {boolean} */ | |
this.suspended = true; | |
event.currentApplication.addEventListener(CaptureDevice.FOCUS_IN, this._delegate_resume); | |
} | |
} else { | |
this._poller = this.getRequest({ | |
method: self.StandardProtocolConstants.CLIENT_POLL, | |
s: this._sequence++, | |
topic: "" | |
}); | |
/** @type {boolean} */ | |
this._poller.complete = false; | |
/** | |
* @return {undefined} | |
*/ | |
this._poller.onreadystatechange = function () { | |
if (!(4 != self._poller.readyState || self._poller.complete)) { | |
/** @type {boolean} */ | |
self._poller.complete = true; | |
/** @type {null} */ | |
self._poller.onreadystatechange = null; | |
if (200 == self._poller.status) { | |
self.pollerCompleteHandler(self._poller.responseText); | |
} else { | |
if (self._connected) { | |
self.connectionFailed('Connection lost during poll statusCode:"' + self._poller.status + '" statusText:"' + self._poller.statusText + '"'); | |
} | |
} | |
} | |
}; | |
if ("params" in this._poller) { | |
this._poller.send(this._poller.params || ""); | |
} else { | |
this._poller.send(""); | |
} | |
} | |
} | |
}, options.prototype.save = function () { | |
if (this.storageId && this._connectionID) { | |
window.safeSessionStorage.setItem(this.storageId, this._connectionID + "|" + (this._connectionTimeStamp = (new Date).getTime())); | |
} | |
}, options.prototype.clear = function () { | |
if (this.storageId) { | |
window.safeSessionStorage.setItem(this.storageId, ""); | |
} | |
}, options.prototype.retrieve = function () { | |
var componentsStr; | |
var result; | |
var n; | |
var timeStr; | |
return this.storageId && (componentsStr = window.safeSessionStorage.getItem(this.storageId)) ? (result = componentsStr.split("|"), n = result[0], timeStr = result[1], [n, Number(timeStr)]) : [null, null]; | |
}, options.prototype._resume = function () { | |
$log("resume"); | |
event.currentApplication.removeEventListener(CaptureDevice.FOCUS_IN, this._delegate_resume); | |
/** @type {boolean} */ | |
this.suspended = false; | |
this.poll(); | |
if (this._requestQueue.length > 0) { | |
this.put(null); | |
} | |
}, options.prototype.dispose = function () { | |
if (this._connected = false, this._connectionTimeStamp = null, this._connectionID = null, this._poller) { | |
try { | |
this._poller.abort(); | |
} catch (e) { | |
} | |
/** @type {null} */ | |
this._poller.onreadystatechange = null; | |
/** @type {null} */ | |
this._poller = null; | |
} | |
/** @type {null} */ | |
this._messageDispatcher = null; | |
clearTimeout(this._connectionTimeout); | |
}, options.prototype.checkXmlHttpAvailable = function () { | |
try { | |
return new XMLHttpRequest, this._hasNativeXmlHttp = true, true; | |
} catch (e) { | |
} | |
return false; | |
}, options.prototype.getConnectionId = function () { | |
return this._connected ? this._connectionID : ""; | |
}, options.prototype.log = function (inMsg) { | |
self.ReadItLog.Log(this + " -> " + inMsg); | |
}, options.prototype.handshakeHandler = function (hashComponent) { | |
/** @type {boolean} */ | |
this._requestActive = false; | |
/** @type {string} */ | |
this._connectionID = hashComponent; | |
/** @type {string} */ | |
this._connectionDetails.connectionID = hashComponent; | |
this.save(); | |
if (hashComponent) { | |
this._sID = QRErrorCorrectLevel[hashComponent.charAt(0).toUpperCase()] || "0"; | |
} else { | |
/** @type {string} */ | |
this._sID = "0"; | |
} | |
/** @type {boolean} */ | |
this._connected = true; | |
this.log(this.instanceid + " connected as " + this._connectionID + ". " + this._connectionDetails); | |
this.poll(); | |
this.dispatchEvent(new self.TransportConnectionEvent(self.TransportConnectionEvent.CONNECTED)); | |
}, options.prototype.processMessage = function (data) { | |
var _sizeAnimateTimeStamps; | |
var i; | |
var uuid; | |
var nameSplitted; | |
var pos; | |
var testPageParameter; | |
var server; | |
var chartData; | |
if (this.save(), data) { | |
_sizeAnimateTimeStamps = data.split(self.StandardProtocolConstants.MESSAGE_DELIM); | |
do { | |
switch (i = _sizeAnimateTimeStamps.shift(), uuid = i.charCodeAt(0)) { | |
case self.StandardProtocolConstants.INITIAL_TOPIC_LOAD: | |
case self.StandardProtocolConstants.DELTA: | |
nameSplitted = i.split(self.StandardProtocolConstants.RECORD_DELIM); | |
pos = nameSplitted[0].split(self.StandardProtocolConstants.FIELD_DELIM); | |
testPageParameter = pos.shift(); | |
server = testPageParameter.substr(1, testPageParameter.length); | |
chartData = i.substr(nameSplitted[0].length + 1); | |
if (null !== this._messageDispatcher) { | |
this._messageDispatcher.dispatchEvent(new self.ReaditMessageEvent(self.ReaditMessageEvent.MESSAGE_RECEIVED, new self.ReaditMessage(String(uuid), server, chartData, pos))); | |
} | |
break; | |
case self.StandardProtocolConstants.CLIENT_ABORT: | |
case self.StandardProtocolConstants.CLIENT_CLOSE: | |
this.connectionFailed("Connection close/abort during poll."); | |
} | |
} while (_sizeAnimateTimeStamps.length); | |
} | |
}, options.prototype.pollerCompleteHandler = function (data) { | |
var domainService = this; | |
this.processMessage(data); | |
if (this._connected) { | |
setTimeout(function () { | |
domainService.poll(); | |
}, options.pollDelay); | |
} | |
}, options.prototype.queuedRequestCompleteHandler = function () { | |
/** @type {boolean} */ | |
this._requestActive = false; | |
if (this._requestQueue.length) { | |
this.put(null); | |
} | |
}, options.prototype.getTransportSuspended = function () { | |
return this.suspended; | |
}, options.SuspendOnFocusLost = true, options.pollDelay = 10, options.count = 0, options; | |
}(ns_gen5_events.EventDispatcher); | |
self.HttpTransportMethod = tickZoom; | |
}(readit || (readit = {})), function (self) { | |
var h; | |
var tmp7; | |
var i = ns_gen5_util_logging.CounterLogger; | |
var tickZoom = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function node() { | |
var self = _super.call(this) || this; | |
return self._messageDispatcher = null, self._connectionID = "", self._connectionTimeout = 0, self._url = "", self._transportIsSupported = self.checkWebsocketAvailable(), self._socket = null, self._socketReadyState = null, self._connected = false, self.suspended = false, self.storageId = null, self.tokenValidation = false, self.hasLoggedCounter = false, self.socketOpenHandler = function (verifiedEvent) { | |
self.log("Websocket: onopen: " + verifiedEvent.type); | |
self.socketConnectCallback(); | |
}, self.socketErrorHandler = function (e) { | |
self.connectionFailed("connection error: " + e.type); | |
}, self.socketCloseHandler = function (event) { | |
if (self._connected) { | |
self.connectionClosed("Websocket: onclosed: " + event.reason); | |
} else { | |
self.connectionFailed("connection error: " + event.type + " (unable to connect error)"); | |
} | |
}, self.socketMessageHandshakeHandler = function (t) { | |
self.handshakeCallback(t.data); | |
}, self.socketMessageDataHandler = function (t) { | |
self.socketDataCallback(t.data); | |
}, self; | |
} | |
return __extends(node, _super), node.prototype.toString = function () { | |
return "[WebsocketTransportMethod]"; | |
}, node.prototype.close = function () { | |
if (this.getSocketConnected()) { | |
/** @type {string} */ | |
var data = ""; | |
/** @type {string} */ | |
data = data + String.fromCharCode(self.StandardProtocolConstants.CLIENT_CLOSE); | |
/** @type {string} */ | |
data = data + String.fromCharCode(0); | |
this.put(data); | |
this._socket.close(); | |
} | |
}, node.prototype.getConnected = function () { | |
return this.getSocketConnected() && this._connected; | |
}, node.prototype.getSocketConnected = function () { | |
return this._transportIsSupported && this._socketReadyState == WebSocket.OPEN; | |
}, node.prototype.setSocketReadyState = function () { | |
this._socketReadyState = this._socket && this._socket.readyState ? this._socket.readyState : null; | |
if (this._connected && this._socketReadyState !== WebSocket.OPEN) { | |
/** @type {boolean} */ | |
this._connected = false; | |
} | |
}, node.prototype.connect = function (e, g) { | |
var self = this; | |
if (h = e, tmp7 = g, this._transportIsSupported || this.connectionFailed("Websocket Transport not supported."), null == this._socket) { | |
/** @type {number} */ | |
this._connectionTimeout = setTimeout(function () { | |
self.connectionFailed("timeout after " + node.CONNECTION_TIMEOUT_LIMIT + "ms"); | |
}, node.CONNECTION_TIMEOUT_LIMIT); | |
try { | |
/** @type {string} */ | |
this._url = this._connectionDetails.host + ":" + this._connectionDetails.port + node.TRAILING + "?uid=" + this._connectionDetails.uid; | |
/** @type {!WebSocket} */ | |
this._socket = new WebSocket(this._url, "zap-protocol-v1"); | |
this._socket.addEventListener("open", this.socketOpenHandler); | |
this._socket.addEventListener("error", this.socketErrorHandler); | |
this._socket.addEventListener("close", this.socketCloseHandler); | |
} catch (s) { | |
this.connectionFailed("Unable to open Socket. Error: " + s); | |
} | |
} | |
}, node.prototype.socketConnectCallback = function () { | |
var data; | |
var self = this; | |
this.clearConnectionTimeout(); | |
this.setSocketReadyState(); | |
if (this.getSocketConnected()) { | |
this._socket.addEventListener("message", this.socketMessageHandshakeHandler); | |
data = this.getHandshakeData(); | |
if (data) { | |
this._socket.send(data); | |
/** @type {number} */ | |
this._connectionTimeout = setTimeout(function () { | |
self.connectionFailed("timeout after " + node.HANDSHAKE_TIMEOUT_LIMIT + "ms"); | |
}, node.HANDSHAKE_TIMEOUT_LIMIT); | |
} else { | |
this.close(); | |
} | |
} else { | |
this.connectionFailed("not connected"); | |
} | |
}, node.prototype.handshakeCallback = function (options) { | |
var language_info = options.split(self.StandardProtocolConstants.HANDSHAKE_MESSAGE_DELIM); | |
var file_name = language_info[0]; | |
var direction = file_name.split(self.StandardProtocolConstants.FIELD_DELIM); | |
return this._socket.removeEventListener("message", this.socketMessageHandshakeHandler), this.clearConnectionTimeout(), direction[0] != node.HANDSHAKE_STATUS_CONNECTED ? direction[0] == node.HANDSHAKE_STATUS_REJECTED ? void this.connectionFailed("connection rejected " + node.HANDSHAKE_STATUS_REJECTED) : void this.connectionFailed("connection rejected - unrecognised response") : (this.setSocketReadyState(), this._connected = true, this._connectionID = direction[1], this.dispatchEvent(new self.TransportConnectionEvent(self.TransportConnectionEvent.CONNECTED)), | |
this.log("Websocket connected as " + this._connectionID + ". " + this._connectionDetails), void this._socket.addEventListener("message", this.socketMessageDataHandler)); | |
}, node.prototype.socketDataCallback = function (clusterShardData) { | |
var _sizeAnimateTimeStamps; | |
var i; | |
var path; | |
var nameSplitted; | |
var pos; | |
var testPageParameter; | |
var server; | |
var chartData; | |
try { | |
if (clusterShardData) { | |
_sizeAnimateTimeStamps = clusterShardData.split(self.StandardProtocolConstants.MESSAGE_DELIM); | |
do { | |
switch (i = _sizeAnimateTimeStamps.shift(), path = i.charCodeAt(0)) { | |
case self.StandardProtocolConstants.INITIAL_TOPIC_LOAD: | |
case self.StandardProtocolConstants.DELTA: | |
nameSplitted = i.split(self.StandardProtocolConstants.RECORD_DELIM); | |
pos = nameSplitted[0].split(self.StandardProtocolConstants.FIELD_DELIM); | |
testPageParameter = pos.shift(); | |
server = testPageParameter.substr(1, testPageParameter.length); | |
chartData = i.substr(nameSplitted[0].length + 1); | |
if (null !== this._messageDispatcher) { | |
this._messageDispatcher.dispatchEvent(new self.ReaditMessageEvent(self.ReaditMessageEvent.MESSAGE_RECEIVED, new self.ReaditMessage(String(path), server, chartData, pos))); | |
} | |
break; | |
case self.StandardProtocolConstants.CLIENT_ABORT: | |
case self.StandardProtocolConstants.CLIENT_CLOSE: | |
this.connectionFailed("Connection close/abort message type sent from publisher. Message type: " + path); | |
break; | |
default: | |
this.log("Unrecognised message type sent from publisher: " + path); | |
} | |
} while (_sizeAnimateTimeStamps.length); | |
} | |
} catch (default_favicon) { | |
this.log(default_favicon.toString()); | |
} | |
}, node.prototype.subscribe = function (type) { | |
/** @type {string} */ | |
var key = ""; | |
/** @type {string} */ | |
key = key + String.fromCharCode(self.StandardProtocolConstants.CLIENT_SUBSCRIBE); | |
/** @type {string} */ | |
key = key + String.fromCharCode(self.StandardProtocolConstants.NONE_ENCODING); | |
/** @type {string} */ | |
key = key + type; | |
/** @type {string} */ | |
key = key + self.StandardProtocolConstants.RECORD_DELIM; | |
this.put(key); | |
}, node.prototype.unsubscribe = function (value) { | |
/** @type {string} */ | |
var data = ""; | |
/** @type {string} */ | |
data = data + String.fromCharCode(self.StandardProtocolConstants.CLIENT_UNSUBSCRIBE); | |
/** @type {string} */ | |
data = data + String.fromCharCode(self.StandardProtocolConstants.NONE_ENCODING); | |
/** @type {string} */ | |
data = data + value; | |
/** @type {string} */ | |
data = data + self.StandardProtocolConstants.RECORD_DELIM; | |
this.put(data); | |
}, node.prototype.swapSubscription = function (c, v) { | |
this.unsubscribe(v); | |
this.subscribe(c); | |
}, node.prototype.send = function (str, val) { | |
/** @type {string} */ | |
var data = ""; | |
/** @type {string} */ | |
data = data + String.fromCharCode(self.StandardProtocolConstants.CLIENT_SEND); | |
/** @type {string} */ | |
data = data + String.fromCharCode(self.StandardProtocolConstants.NONE_ENCODING); | |
/** @type {string} */ | |
data = data + str; | |
/** @type {string} */ | |
data = data + self.StandardProtocolConstants.RECORD_DELIM; | |
/** @type {string} */ | |
data = data + val; | |
this.put(data); | |
}, node.prototype.put = function (data) { | |
try { | |
if (!this.getSocketConnected()) { | |
throw new Error("socket not connected"); | |
} | |
this._socket.send(data); | |
} catch (t) { | |
this.connectionFailed("WebSocket: put:" + t); | |
} | |
}, node.prototype.getHandshakeData = function () { | |
var code; | |
var nodecrypto; | |
/** @type {string} */ | |
var out = ""; | |
return out = out + String.fromCharCode(node.HANDSHAKE_PROTOCOL), out = out + String.fromCharCode(node.HANDSHAKE_VERSION), out = out + String.fromCharCode(node.HANDSHAKE_CONNECTION_TYPE), out = out + String.fromCharCode(node.HANDSHAKE_CAPABILITIES_FLAG), null != this._connectionDetails.defaultTopic && (out = out + (this._connectionDetails.defaultTopic + ",")), code = ns_gen5_util.CookieManager.GetSessionId(), null == code ? (this.dispatchEvent(new self.TransportConnectionEvent(self.TransportConnectionEvent.CONNECTION_FAILED_INVALID_SESSION)), | |
null) : (out = out + ("S_" + code), this.tokenValidation && (tmp7 && Date.now() / 1e3 > tmp7() && (this.hasLoggedCounter || (this.hasLoggedCounter = true, i.QueueCounter("nst_timestamp_3_count", 1), i.ForceCounterFlush())), nodecrypto = h && h(), nodecrypto && (out = out + (",D_" + nodecrypto))), out = out + String.fromCharCode(0)); | |
}, node.prototype.checkWebsocketAvailable = function () { | |
return "WebSocket" in window; | |
}, node.prototype.getConnectionId = function () { | |
return this._connectionID; | |
}, node.prototype.getConnectionDetails = function () { | |
return this._connectionDetails; | |
}, node.prototype.setConnectionDetails = function (canCreateDiscussions) { | |
/** @type {!Object} */ | |
this._connectionDetails = canCreateDiscussions; | |
}, node.prototype.setMessageDispatcher = function (EMSarray) { | |
this._messageDispatcher = EMSarray; | |
}, node.prototype.log = function (inMsg) { | |
self.ReadItLog.Log(this + " -> " + inMsg); | |
}, node.prototype.clearConnectionTimeout = function () { | |
if (this._connectionTimeout) { | |
clearTimeout(this._connectionTimeout); | |
/** @type {null} */ | |
this._connectionTimeout = null; | |
} | |
}, node.prototype.connectionFailed = function (err) { | |
return this.log("Websocket connection (" + this._connectionDetails + ") failed - " + err), this.clearConnectionTimeout(), this.getConnected() ? void this.connectionClosed("connection failed") : (this.setSocketReadyState(), this.dispose(), void this.dispatchEvent(new self.TransportConnectionEvent(self.TransportConnectionEvent.CONNECTION_FAILED))); | |
}, node.prototype.connectionClosed = function (state) { | |
this.log("Websocket connection (" + this._connectionDetails + ") closed - " + state); | |
this.clearConnectionTimeout(); | |
this.setSocketReadyState(); | |
this.dispose(); | |
this.dispatchEvent(new self.TransportConnectionEvent(self.TransportConnectionEvent.DISCONNECTED)); | |
}, node.prototype.dispose = function () { | |
this.close(); | |
if (this._socket) { | |
this._socket.removeEventListener("open", this.socketOpenHandler); | |
this._socket.removeEventListener("close", this.socketCloseHandler); | |
this._socket.removeEventListener("error", this.socketErrorHandler); | |
this._socket.removeEventListener("message", this.socketMessageDataHandler); | |
this._socket.removeEventListener("message", this.socketMessageHandshakeHandler); | |
/** @type {null} */ | |
this._socket = null; | |
} | |
}, node.TRAILING = "/zap/", node.CONNECTION_TIMEOUT_LIMIT = 15e3, node.HANDSHAKE_TIMEOUT_LIMIT = 15e3, node.HANDSHAKE_PROTOCOL = 35, node.HANDSHAKE_VERSION = 3, node.HANDSHAKE_CONNECTION_TYPE = 80, node.HANDSHAKE_CAPABILITIES_FLAG = 1, node.HANDSHAKE_STATUS_CONNECTED = "100", node.HANDSHAKE_STATUS_REJECTED = "111", node; | |
}(ns_gen5_events.EventDispatcher); | |
self.WebsocketTransportMethod = tickZoom; | |
}(readit || (readit = {})), function (THREE) { | |
var r; | |
var PbrUtilities; | |
var EventDispatcher = ns_gen5_events.EventDispatcher; | |
var require = ns_gen5_ui.SingletonModule; | |
var _c = ns_gen5_util.Singleton; | |
!function (r) { | |
/** @type {string} */ | |
r.Private = "private"; | |
/** @type {string} */ | |
r.Public = "public"; | |
}(r = THREE.ConnectionTypes || (THREE.ConnectionTypes = {})); | |
PbrUtilities = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function Connection() { | |
var self = _super.call(this) || this; | |
return self._messageDispatcher = null, self._connectionID = "", self._connectionTimeout = 0, self._connected = false, self.suspended = false, self.storageId = null, self.tokenValidation = false, Connection.AppCommsModuleContainer || (Connection.AppCommsModuleContainer = _c.getInstance(Connection.AppApiModuleContainer)), self; | |
} | |
return __extends(Connection, _super), Connection.prototype.toString = function () { | |
return "[NativeAppTransportMethod]"; | |
}, Connection.prototype.close = function (callback) { | |
/** @type {string} */ | |
this._connectionID = ""; | |
}, Connection.prototype.getConnected = function () { | |
return this._connected; | |
}, Connection.prototype.connect = function () { | |
/** @type {boolean} */ | |
this._connected = true; | |
/** @type {string} */ | |
this._connectionID = "NativeApp-Transport"; | |
this.dispatchEvent(new THREE.TransportConnectionEvent(THREE.TransportConnectionEvent.CONNECTED)); | |
}, Connection.prototype.subscribe = function (type) { | |
var s = this; | |
Connection.AppCommsModuleContainer.invoke(function (i) { | |
if (s.connectionHost == r.Private) { | |
i.privateDataHandlers.private_subscribe(type, function (e) { | |
return s.appDataCallback(e); | |
}); | |
} else { | |
i.publicDataHandlers.public_subscribe(type, function (e) { | |
return s.appDataCallback(e); | |
}); | |
} | |
}); | |
}, Connection.prototype.unsubscribe = function (type) { | |
var account = this; | |
Connection.AppCommsModuleContainer.invoke(function (i) { | |
if (account.connectionHost == r.Private) { | |
i.privateDataHandlers.private_unsubscribe(type); | |
} else { | |
i.publicDataHandlers.public_unsubscribe(type); | |
} | |
}); | |
}, Connection.prototype.swapSubscription = function (e, f) { | |
var s = this; | |
Connection.AppCommsModuleContainer.invoke(function (n) { | |
if (s.connectionHost == r.Private) { | |
n.privateDataHandlers.private_swapSubscription(e, f, function (e) { | |
return s.appDataCallback(e); | |
}); | |
} else { | |
n.publicDataHandlers.public_swapSubscription(e, f, function (e) { | |
return s.appDataCallback(e); | |
}); | |
} | |
}); | |
}, Connection.prototype.send = function (text, obj) { | |
var s = this; | |
Connection.AppCommsModuleContainer.invoke(function (i) { | |
if (s.connectionHost == r.Private) { | |
i.privateDataHandlers.private_send(text, obj, function (e) { | |
return s.appDataCallback(e); | |
}); | |
} else { | |
i.publicDataHandlers.public_send(text, obj, function (e) { | |
return s.appDataCallback(e); | |
}); | |
} | |
}); | |
}, Connection.prototype.getConnectionId = function () { | |
return this._connectionID; | |
}, Connection.prototype.getConnectionDetails = function () { | |
return this._connectionDetails; | |
}, Connection.prototype.setConnectionDetails = function (e) { | |
/** @type {!Object} */ | |
this._connectionDetails = e; | |
/** @type {string} */ | |
this.connectionHost = e.host + "_"; | |
}, Connection.prototype.setMessageDispatcher = function (EMSarray) { | |
this._messageDispatcher = EMSarray; | |
}, Connection.prototype.appDataCallback = function (sVal) { | |
var _sizeAnimateTimeStamps; | |
var r; | |
var offset; | |
var nameSplitted; | |
var parameters; | |
var testPageParameter; | |
var y; | |
var z; | |
try { | |
if (sVal) { | |
_sizeAnimateTimeStamps = sVal.split(THREE.StandardProtocolConstants.MESSAGE_DELIM); | |
do { | |
switch (r = _sizeAnimateTimeStamps.shift(), offset = r.charCodeAt(0)) { | |
case THREE.StandardProtocolConstants.INITIAL_TOPIC_LOAD: | |
case THREE.StandardProtocolConstants.DELTA: | |
nameSplitted = r.split(THREE.StandardProtocolConstants.RECORD_DELIM); | |
parameters = nameSplitted[0].split(THREE.StandardProtocolConstants.FIELD_DELIM); | |
testPageParameter = parameters.shift(); | |
y = testPageParameter.substr(1, testPageParameter.length); | |
z = r.substr(nameSplitted[0].length + 1); | |
if (null !== this._messageDispatcher) { | |
this._messageDispatcher.dispatchEvent(new THREE.ReaditMessageEvent(THREE.ReaditMessageEvent.MESSAGE_RECEIVED, new THREE.ReaditMessage(String(offset), y, z, parameters))); | |
} | |
break; | |
case THREE.StandardProtocolConstants.CLIENT_ABORT: | |
case THREE.StandardProtocolConstants.CLIENT_CLOSE: | |
this.connectionFailed("Connection close/abort message type sent from publisher. Message type: " + offset); | |
break; | |
default: | |
this.log("Unrecognised message type sent from publisher: " + offset); | |
} | |
} while (_sizeAnimateTimeStamps.length); | |
} | |
} catch (default_favicon) { | |
this.log(default_favicon.toString()); | |
} | |
}, Connection.prototype.log = function (inMsg) { | |
THREE.ReadItLog.Log(this + " -> " + inMsg); | |
}, Connection.prototype.connectionFailed = function (err) { | |
this.log("native app push connection (" + this._connectionDetails + ") failed - " + err); | |
}, Connection.prototype.dispose = function () { | |
this.close(); | |
}, Connection.AppApiModuleContainer = require("AppApiModule"), Connection; | |
}(EventDispatcher); | |
THREE.NativeAppTransportMethod = PbrUtilities; | |
}(readit || (readit = {})), function (state) { | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function e() { | |
/** @type {boolean} */ | |
this.showUserBalance = true; | |
} | |
return e.SessionPreferencesGUID = "BalancePreferences", e; | |
}(); | |
state.BalancePreferences = size; | |
}(ns_gen5_util || (ns_gen5_util = {})), function (self) { | |
var t = readit.StandardProtocolConstants; | |
var opts = ns_gen5_events.BalanceModelEvent; | |
var animationPropertiesForBrowser = ns_gen5_config.PushedConfigPropertyChangeEvent; | |
var CaptureDevice = ns_gen5_data.PrivateSubscriptionManagerEvent; | |
var EventDispatcher = ns_gen5_events.EventDispatcher; | |
var scp = self.MathUtil; | |
var Methods = ns_gen5_net.Loader; | |
var events = ns_gen5_net.LoaderEvent; | |
var Haproxy = ns_gen5_events.Event365; | |
var RandomTokenizer = ns_gen5_net.URLVariables; | |
var body = self.InfoReporter; | |
/** @type {string} */ | |
var mongodbFile = "SPTBK"; | |
/** @type {string} */ | |
var value = "rn"; | |
/** @type {string} */ | |
var url = "/balancedataapi/pullbalance"; | |
var p = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function constructor() { | |
var config = _super.call(this) || this; | |
return config._subscriptionsInitializedDelegate = null, config._pushBalanceFlagChangeDelegate = null, config._pushBalanceReceivedDelegate = null, config._pullBalanceReceivedDelegate = null, config._pullBalanceErrorDelegate = null, config.balanceModelDelegates = [], config._subscriptionsInitializedDelegate = new self.Delegate(config, config.loadBalance), config._pushBalanceFlagChangeDelegate = new self.Delegate(config, config.pushBalanceFlagChangeHandler), config._pushBalanceReceivedDelegate = | |
new self.Delegate(config, config.pushBalanceReceivedHandler), config._pullBalanceReceivedDelegate = new self.Delegate(config, config.pullBalanceReceivedHandler), config._pullBalanceErrorDelegate = new self.Delegate(config, config.pullBalanceErrorHandler), config.isItalianDomain = ns_gen5_util_user.RegisteredCountry.IsItalyDomain, config; | |
} | |
return __extends(constructor, _super), constructor.prototype.load = function (num) { | |
/** @type {string} */ | |
this._sessionToken = num; | |
if (Locator.pushedConfig.getArePropertiesInitialised()) { | |
this.loadBalance(); | |
} else { | |
Locator.pushedConfig.addEventListener(animationPropertiesForBrowser.PROPERTIES_INITIALISED, this._subscriptionsInitializedDelegate); | |
} | |
}, constructor.prototype.loadBalance = function () { | |
this.pushBalanceEnabled = Locator.pushedConfig.getIsPushBalanceEnabled(); | |
if (this.isItalianDomain) { | |
this.loadPullBalance(); | |
} | |
this.loadPushBalance(); | |
Locator.pushedConfig.addEventListener(animationPropertiesForBrowser.PUSH_BALANCE_ENABLED_AVAILABLE, this._pushBalanceFlagChangeDelegate); | |
}, constructor.prototype.refreshBalance = function () { | |
if (this._sessionToken) { | |
if (!(this.pushBalanceEnabled && !this.isItalianDomain)) { | |
this.loadPullBalance(); | |
} | |
if (this.pushBalanceEnabled) { | |
this.refreshPushBalance(); | |
} | |
} | |
}, constructor.prototype.calculateTotalBalance = function (e, islongclick) { | |
if (void 0 === islongclick) { | |
/** @type {boolean} */ | |
islongclick = false; | |
} | |
if (!(this.pushBalanceEnabled || islongclick)) { | |
/** @type {string} */ | |
this.totalBalance = (scp.StringToNumber(this.totalBalance) - this.formatCurrencyNoCulture(e.toString())).toFixed(2); | |
this.dispatchEvent(new Haproxy(opts.BALANCEMODEL_UPDATE_EVENT)); | |
} | |
}, constructor.prototype.updateWithdrawableBalance = function (e, islongclick) { | |
if (void 0 === islongclick && (islongclick = false), !this.pushBalanceEnabled && !islongclick) { | |
/** @type {number} */ | |
var pixelDensity = scp.StringToNumber(this.withdrableBalance) - this.formatCurrencyNoCulture(e.toString()); | |
if (0 > pixelDensity && scp.StringToNumber(this.bonusBalance) > 0) { | |
/** @type {string} */ | |
this.withdrableBalance = "0.00"; | |
this.updateBonusBalance((-1 * pixelDensity).toFixed(2)); | |
} else { | |
/** @type {string} */ | |
this.withdrableBalance = pixelDensity.toFixed(2); | |
} | |
this.dispatchEvent(new Haproxy(opts.BALANCEMODEL_UPDATE_EVENT)); | |
} | |
}, constructor.prototype.updateBonusBalance = function (pingErr) { | |
if (!this.pushBalanceEnabled) { | |
/** @type {string} */ | |
this.bonusBalance = (scp.StringToNumber(this.bonusBalance) - this.formatCurrencyNoCulture(pingErr.toString())).toFixed(2); | |
this.dispatchEvent(new Haproxy(opts.BALANCEMODEL_UPDATE_EVENT)); | |
} | |
}, constructor.prototype.formatCurrencyNoCulture = function (clusterShardData) { | |
return clusterShardData ? scp.StringToNumber(clusterShardData.split(Locator.user.currencyDecimalSeparator).join(".")) : 0; | |
}, constructor.prototype.pushBalanceFlagChangeHandler = function () { | |
this.pushBalanceEnabled = Locator.pushedConfig.getIsPushBalanceEnabled(); | |
if (this.pushBalanceEnabled) { | |
this.loadPushBalance(); | |
} else { | |
Locator.privateSubscriptionManager.removeEventListener(CaptureDevice.BALANCE_RECEIVED, this._pushBalanceReceivedDelegate); | |
/** @type {boolean} */ | |
this._balanceListenerAdded = false; | |
} | |
}, constructor.prototype.pushBalanceReceivedHandler = function (issue) { | |
body.Trace(self.InfoReporterGroups.PUSH_MESSAGE_CONNECTION_ENTRY, "Push balance received: " + issue.message); | |
if ("D" == issue.message.charAt(0)) { | |
this.loadPushBalance(); | |
} else { | |
this.pushBalanceEnabled = this.updateBalanceInfo(issue.message); | |
} | |
}, constructor.prototype.pullBalanceReceivedHandler = function (simpleselect) { | |
body.Trace(self.InfoReporterGroups.PUSH_MESSAGE_CONNECTION_ENTRY, "Pull balance received: " + simpleselect.data); | |
this._urlLoader.removeEventListener(events.COMPLETE, this._pullBalanceReceivedDelegate); | |
this._urlLoader.removeEventListener(events.ERROR, this._pullBalanceErrorDelegate); | |
this.updateBalanceInfo(simpleselect.data); | |
}, constructor.prototype.pullBalanceErrorHandler = function () { | |
this._urlLoader.removeEventListener(events.COMPLETE, this._pullBalanceReceivedDelegate); | |
this._urlLoader.removeEventListener(events.ERROR, this._pullBalanceErrorDelegate); | |
}, constructor.prototype.loadPushBalance = function () { | |
if (this.pushBalanceEnabled) { | |
if (!this._balanceListenerAdded) { | |
Locator.privateSubscriptionManager.addEventListener(CaptureDevice.BALANCE_RECEIVED, this._pushBalanceReceivedDelegate); | |
/** @type {boolean} */ | |
this._balanceListenerAdded = true; | |
} | |
/** @type {string} */ | |
var e = "getBalance" + t.RECORD_DELIM + this._sessionToken + t.FIELD_DELIM + mongodbFile; | |
Locator.privateSubscriptionManager.send("command", e); | |
} | |
}, constructor.prototype.loadPullBalance = function () { | |
if (!this._urlLoader) { | |
this._urlLoader = new Methods; | |
} | |
var t = new RandomTokenizer; | |
t.addPair(value, (new Date).getTime() + ""); | |
t.addPair("y", self.B365SimpleEncrypt.encrypt(scp.StringToNumber(Locator.manifestManager.getBuildVersion()).toString(16))); | |
this._urlLoader.addEventListener(events.COMPLETE, this._pullBalanceReceivedDelegate); | |
this._urlLoader.addEventListener(events.ERROR, this._pullBalanceErrorDelegate); | |
this._urlLoader.load(url, { | |
method: Methods.GET, | |
urlVariables: t | |
}); | |
}, constructor.prototype.refreshPushBalance = function () { | |
if (this.pushBalanceEnabled) { | |
this.loadPushBalance(); | |
/** @type {string} */ | |
var e = "refresh" + t.RECORD_DELIM + this._sessionToken + t.FIELD_DELIM + mongodbFile; | |
Locator.privateSubscriptionManager.send("command", e); | |
} | |
}, constructor.prototype.updateBalanceInfo = function (hostInfoValue) { | |
var elements = hostInfoValue.split("$"); | |
/** @type {boolean} */ | |
var i = false; | |
var l$0 = elements.length; | |
return l$0 > 1 && elements[1].length > 0 ? (this.totalBalance = scp.StringToNumber(elements[1]).toFixed(2), this.withdrableBalance = scp.StringToNumber(elements[2]).toFixed(2), this.bonusBalance = scp.StringToNumber(elements[3]).toFixed(2), this.stakeRollover = scp.StringToNumber(elements[4]).toFixed(2), this.stakeRolloverRequirement = scp.StringToNumber(elements[5]).toFixed(2), this.depositRollover = scp.StringToNumber(elements[6]).toFixed(2), this.depositRolloverRequirement = scp.StringToNumber(elements[7]).toFixed(2), | |
this.italianSportsWithdrableBalance = scp.StringToNumber(elements[8]).toFixed(2), this.italianSportsNonWithdrableBalance = scp.StringToNumber(elements[9]).toFixed(2), 11 == l$0 && (this.gamingBalance = scp.StringToNumber(elements[10]).toFixed(2)), this.isItalianDomain && l$0 > 11 && "1" === elements[11] && this.refreshBalance(), this.dispatchEvent(new Haproxy(opts.BALANCEMODEL_UPDATE_EVENT)), i = true) : this.pushBalanceEnabled = false, i; | |
}, constructor.prototype.registerBalanceItem = function (bone_in) { | |
this.balanceModelDelegates.push(bone_in); | |
}, constructor.prototype.unregisterBalanceItem = function (e) { | |
var t = this.balanceModelDelegates.indexOf(e); | |
if (t > -1) { | |
this.balanceModelDelegates.splice(t, 1); | |
} | |
}, constructor.prototype.updateBalanceItemsVisibility = function (canCreateDiscussions) { | |
var layer_i; | |
var crossfilterable_layers; | |
var importedStyleSheet; | |
var j; | |
var imports; | |
if (canCreateDiscussions) { | |
/** @type {number} */ | |
layer_i = 0; | |
crossfilterable_layers = this.balanceModelDelegates; | |
for (; layer_i < crossfilterable_layers.length; layer_i++) { | |
importedStyleSheet = crossfilterable_layers[layer_i]; | |
importedStyleSheet.hideBalanceItem(); | |
} | |
} else { | |
/** @type {number} */ | |
j = 0; | |
imports = this.balanceModelDelegates; | |
for (; j < imports.length; j++) { | |
importedStyleSheet = imports[j]; | |
importedStyleSheet.showBalanceItem(); | |
} | |
} | |
}, constructor; | |
}(EventDispatcher); | |
self.BalanceModel = p; | |
}(ns_gen5_util || (ns_gen5_util = {})), function (state) { | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function TreeViewVM() { | |
/** @type {!Array} */ | |
this.betQueue = []; | |
/** @type {null} */ | |
this.noRightHandSidePushFlag = null; | |
} | |
return TreeViewVM.prototype.restoreSlip = function () { | |
if (this.betslipWebDelegate.restoreSlip) { | |
this.betslipWebDelegate.restoreSlip(); | |
} | |
}, TreeViewVM.prototype.setSlipBoundingClientRect = function (clientRect) { | |
/** @type {!ClientRect} */ | |
this.clientRect = clientRect; | |
}, TreeViewVM.prototype.getSlipBoundingClientRect = function () { | |
return this.clientRect; | |
}, TreeViewVM.prototype.getRegisteredBetslip = function () { | |
return this.betslipWebDelegate; | |
}, TreeViewVM.prototype.registerBetslip = function (res, rej) { | |
if (this.betslipWebDelegate = res, this.betslipUI = rej, this.betslipWebModule && this.betslipWebDelegate.setWebModuleDelegate && (this.betslipWebDelegate.setWebModuleDelegate(this.betslipWebModule), this.betslipWebModule = null), this.betQueue.length > 0) { | |
/** @type {number} */ | |
var MIN_DISTANCE = 0; | |
var d = this.betQueue.length; | |
for (; d > MIN_DISTANCE; MIN_DISTANCE++) { | |
this.betslipWebDelegate.addBet(this.betQueue[MIN_DISTANCE]); | |
} | |
/** @type {!Array} */ | |
this.betQueue = []; | |
} | |
}, TreeViewVM.prototype.registerBetslipWebModule = function (e) { | |
if (this.betslipWebDelegate && this.betslipWebDelegate.setWebModuleDelegate) { | |
this.betslipWebDelegate.setWebModuleDelegate(e); | |
} else { | |
if (!this.betslipWebModule) { | |
/** @type {!Object} */ | |
this.betslipWebModule = e; | |
} | |
} | |
}, TreeViewVM.prototype.addBet = function (result, item) { | |
var desc; | |
var that; | |
var value; | |
var processedItem; | |
var params; | |
if ($assert) { | |
$assert(result, "No bet item provided to betslip"); | |
} | |
if (result) { | |
if (!this.isBetslipOnRHS() && Locator.user.isLoggedIn && this.editBetController && this.editBetController.addSelectionsEnabled) { | |
desc = item.stem; | |
that = this.editBetController.editBetModel; | |
value = desc.data; | |
/** @type {string} */ | |
processedItem = "BS" + this.getFixtureId(desc) + "-" + value.ID; | |
if (that.canAddSelection(result.uid)) { | |
that.addBet({ | |
item: result, | |
Target: item | |
}, processedItem); | |
} | |
} else { | |
params = { | |
item: result, | |
Target: item | |
}; | |
if (this.betslipWebDelegate) { | |
this.betslipWebDelegate.addBet(params); | |
} else { | |
this.betQueue.push(params); | |
} | |
} | |
} | |
}, TreeViewVM.prototype.deleteBet = function (data) { | |
if ($assert && $assert(data, "No bet item provided to betslip"), data) { | |
if (!this.isBetslipOnRHS() && Locator.user.isLoggedIn && this.editBetController.addSelectionsEnabled) { | |
var deviceService = this.editBetController.editBetModel; | |
deviceService.removeBet(data.uid); | |
} else { | |
this.betslipWebDelegate.deleteBet({ | |
betItem: data | |
}); | |
} | |
} | |
}, TreeViewVM.prototype.deleteAllBets = function () { | |
this.betslipWebDelegate.deleteAllBets(); | |
}, TreeViewVM.prototype.betCountChanged = function () { | |
if (this.betslipWebDelegate) { | |
this.betslipWebDelegate.betCountChanged(); | |
} | |
}, TreeViewVM.prototype.isSelected = function (key) { | |
return $assert && $assert(key, "No id provided for bet check"), !this.isBetslipOnRHS() && this.editBetController && this.editBetController.addSelectionsEnabled ? this.editBetController.editBetModel.addState.itemAdded(key) : this.betslipWebDelegate ? this.betslipWebDelegate.isSelected({ | |
Id: key | |
}) : false; | |
}, TreeViewVM.prototype.betslipModuleSupported = function () { | |
return this.betslipWebDelegate.allBetsSupported ? this.betslipWebDelegate.allBetsSupported() : false; | |
}, TreeViewVM.prototype.getBetCount = function () { | |
return this.betslipWebDelegate.getBetCount(); | |
}, TreeViewVM.prototype.setBetguid = function (e) { | |
this.betslipWebDelegate.setBetguid(e); | |
}, TreeViewVM.prototype.getBetguid = function () { | |
return this.betslipWebDelegate.getBetguid(); | |
}, TreeViewVM.prototype.showMyBets = function () { | |
return this.betslipUI.showMyBets(); | |
}, TreeViewVM.prototype.showBetslip = function () { | |
return this.betslipUI.showBetslip(); | |
}, TreeViewVM.prototype.isBetslipOnRHS = function () { | |
return this.parseRhsPushFlag(), this.noRightHandSidePushFlag.globalOff ? true : this.noRightHandSidePushFlag.globalOn ? false : this.noRightHandSidePushFlag.countryBlacklist.indexOf(Locator.user.countryId) > -1; | |
}, TreeViewVM.prototype.parseRhsPushFlag = function () { | |
this.noRightHandSidePushFlag = { | |
countryBlacklist: [], | |
globalOff: false, | |
globalOn: false | |
}; | |
var expected = Locator.pushedConfig.getAttributeValue("BS"); | |
return expected ? "1" == expected ? (this.noRightHandSidePushFlag.globalOn = true, false) : (this.noRightHandSidePushFlag.countryBlacklist = expected.split(","), this.noRightHandSidePushFlag.countryBlacklist.indexOf(Locator.user.countryId) > -1) : (this.noRightHandSidePushFlag.globalOff = true, true); | |
}, TreeViewVM.prototype.setBetslipModuleActive = function () { | |
/** @type {boolean} */ | |
this.betslipModuleActive = true; | |
}, TreeViewVM.prototype.setBetslipModuleInactive = function () { | |
/** @type {boolean} */ | |
this.betslipModuleActive = false; | |
}, TreeViewVM.prototype.getBetslipModuleActive = function () { | |
return this.betslipModuleActive; | |
}, TreeViewVM.prototype.cancelEditBet = function () { | |
this.myBetsManager.cancelEditBet(); | |
}, TreeViewVM.prototype.isSelectedEditBet = function (x) { | |
if ($assert && $assert(x, "No id provided for edit bet check"), x) { | |
if (!this.isBetslipOnRHS() && this.editBetController) { | |
return this.editBetController.isSelectedEditBet(x); | |
} | |
if (this.betslipWebDelegate) { | |
return this.betslipWebDelegate.isSelectedEditBet({ | |
Id: x | |
}); | |
} | |
} | |
return false; | |
}, TreeViewVM.prototype.getTaxConfig = function () { | |
return this.betslipWebDelegate ? this.betslipWebDelegate.getTaxConfig() : ""; | |
}, TreeViewVM.prototype.sabswaOnBetRemoved = function () { | |
if (this.betslipWebDelegate && this.betslipWebDelegate.sabswaOnBetRemoved) { | |
this.betslipWebDelegate.sabswaOnBetRemoved(); | |
} | |
}, TreeViewVM.prototype.getFixtureId = function (next) { | |
var t; | |
do { | |
if (t = next.data.FI) { | |
break; | |
} | |
next = next.parent; | |
} while (next && next.data); | |
return t; | |
}, TreeViewVM; | |
}(); | |
state.BetSlipManager = size; | |
}(ns_betslip || (ns_betslip = {})), function (state) { | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function e() { | |
} | |
return e.SetConstructOnBetItem = function (data) { | |
var width; | |
/** @type {string} */ | |
var v = "#"; | |
/** @type {string} */ | |
var key = "x"; | |
/** @type {string} */ | |
var t = "|"; | |
/** @type {string} */ | |
var i = "pt="; | |
/** @type {string} */ | |
var remoteUri = "o="; | |
/** @type {string} */ | |
var str = "f="; | |
/** @type {string} */ | |
var count = "fp="; | |
/** @type {string} */ | |
var n = "so="; | |
/** @type {string} */ | |
var base = "c="; | |
/** @type {string} */ | |
var ndk = "ln="; | |
/** @type {string} */ | |
var total = "mt="; | |
/** @type {string} */ | |
var d = "atc="; | |
/** @type {string} */ | |
var fileName = "TP="; | |
/** @type {string} */ | |
var html = "Inc="; | |
/** @type {string} */ | |
var u = "BOdds="; | |
/** @type {string} */ | |
var color = "oto="; | |
/** @type {string} */ | |
var _ = "pom=Y"; | |
/** @type {string} */ | |
var s = i + data.partType + v; | |
return s = s + (remoteUri + (data.baseOdds && data.baseOdds.length > 0 ? data.baseOdds : data.odds) + v), s = s + (str + data.fixtureID + v), s = s + (count + data.participantID + v), s = s + (n + "" + v), s = s + (base + data.classificationID + v), s = s + (data.handicap.length > 0 ? ndk + (data.baseHandicap && data.baseHandicap.length > 0 ? data.baseHandicap : data.handicap) + v : ""), s = s + (data.baseHandicap && data.baseHandicap.length > 0 ? html + data.handicap + v : ""), s = s + (data.baseHandicap && | |
data.baseHandicap.length > 0 ? u + data.odds + v : ""), data.betsource && (s = s + (total + data.betsource + v)), s = s + ("id=" + data.uid + (data.subscribe ? "Y" : "N") + v), data.oddsTypeOverride && (s = s + (color + data.oddsTypeOverride.toString() + v)), width = data.oddsTypeOverride ? key + data.oddsTypeOverride.toString() + key + data.decimalPlaces : "", data.subscribe && (s = s + ("" + t + fileName + "BS" + data.fixtureID + "-" + data.participantID + width + v)), data.pom && "1" === | |
data.pom && (s = s + (data.subscribe ? _ + v : t + _ + v)), "S" == data.partType && (s = s + ("pid=" + data.playerID + v + "mid=" + data.matchId + v)), s = s + (data.toteCombination ? d + data.toteCombination + v : ""), data.constructString = s, data; | |
}, e; | |
}(); | |
state.BetConstructor = size; | |
}(ns_betslip || (ns_betslip = {})), function (state) { | |
var size = function (_super) { | |
/** | |
* @param {?} key | |
* @return {?} | |
*/ | |
function t(key) { | |
return _super.call(this, key) || this; | |
} | |
return __extends(t, _super), t.prototype.toString = function () { | |
return "[BetSlipEvent type=" + this.type + "]"; | |
}, t.PARTICIPANT_REMOVED_FROM_BETSLIP = "participantRemovedFromBetSlip", t.PARTICIPANT_ADDED_TO_BETSLIP = "participantAddedToBetslip", t.TOTE_COMBINATION_CHANGED = "totecombinationchanged", t.BETCALL_CONNECTED = "betCallConnected", t; | |
}(ns_gen5_events.Event365); | |
state.BetSlipEvent = size; | |
}(ns_betslip || (ns_betslip = {})), function (dom) { | |
var t; | |
var n; | |
var MouseEvent = ns_gen5_events.Event365; | |
var Client = ns_gen5_util.Delegate; | |
var WIoT = readit.ReaditClient; | |
var type = readit.HttpTransportMethod; | |
var a = readit.WebsocketTransportMethod; | |
var c = readit.NativeAppTransportMethod; | |
var ConnectionEvents = readit.ReaditConnectionEvent; | |
var testCase = readit.ReaditMessageEvent; | |
var d = dom.DataUtil; | |
var Event = dom.StreamDataProcessorEvent; | |
var con = ns_gen5_util.Timer; | |
var CanvasVideoEvent = ns_gen5_util.TimerEvent; | |
var animationPropertiesForBrowser = ns_gen5_events.ApplicationEvent; | |
var app = ns_gen5_ui.Application; | |
var exports = ns_gen5_util.InfoReporter; | |
var strBuff = ns_gen5_util.InfoReporterGroups; | |
var eventMap = { | |
0: null, | |
2: type, | |
3: a, | |
4: c | |
}; | |
/** @type {number} */ | |
var config = 1e4; | |
/** @type {number} */ | |
var C = 9900; | |
var hasUnsanctionedElements = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function Connection() { | |
var self = _super.call(this) || this; | |
return self._retryInterval = 0, self._connectedPublisher = null, self._reconnected = false, self._idleTime = 8e4, self._idleTimerID = -1, self._reConnectTimer = null, self._connectionAttempts = 0, self._applicaitonUnloading = false, self._subscriptionTimeoutTimer = null, self.canDebouncePVCN = true, self.tokenValidation = true, self.storageId = null, self._serverConnection = null, self._pendingConnect = false, self._initialized = false, self._subscriptionTimeoutTopic = null, self._subscriptionQueue = | |
[], self._sendQueue = [], self.delegate_serverConnectHandler = new Client(self, self._serverConnectHandler), self.delegate_serverDataHandler = new Client(self, self._serverDataHandler), self.delegate_applicationUnloadingHandler = new Client(self, self._applicationUnloadingHandler), self.delegate_connectionFailedInvalidSessionHandler = new Client(self, self._connectionFailedInvalidSessionHandler), self.callback_idleTimerHandler = function () { | |
return self._idleTimerHandler(); | |
}, self; | |
} | |
return __extends(Connection, _super), Connection.prototype.getConnectionDetails = function () { | |
return Locator.config.getConnectionDetails(); | |
}, Connection.prototype.setNst = function (e, map) { | |
t = e; | |
/** @type {string} */ | |
n = map; | |
}, Connection.prototype.connect = function (e, g) { | |
var me; | |
var expRecords; | |
var layer_i; | |
var crossfilterable_layers; | |
var postLi; | |
var options; | |
if (t = e, n = g, this._initialized || this._initialize(), !this._pendingConnect) { | |
this.closeConnection(this._serverConnection); | |
/** @type {boolean} */ | |
this._pendingConnect = true; | |
me = this._serverConnection = new WIoT; | |
me.storageId = this.storageId; | |
me.tokenValidation = this.tokenValidation; | |
/** @type {number} */ | |
me.connectionListCycles = 1; | |
expRecords = (this.getCurrentTopics && this.getCurrentTopics() || []).join(","); | |
/** @type {number} */ | |
layer_i = 0; | |
crossfilterable_layers = this.getConnectionDetails(); | |
for (; layer_i < crossfilterable_layers.length; layer_i++) { | |
postLi = crossfilterable_layers[layer_i]; | |
options = postLi.clone(); | |
options.transportMethod = eventMap[options.transportMethodId] || type; | |
options.defaultTopic += 0 === expRecords.length ? "" : "," + expRecords; | |
me.addConnectionAttempt(options); | |
} | |
this.openConnection(me); | |
} | |
}, Connection.prototype.close = function (callback) { | |
this.closeConnection(this._serverConnection, callback); | |
}, Connection.prototype.openConnection = function (connection) { | |
if (connection) { | |
connection.addEventListener(ConnectionEvents.CONNECTED, this.delegate_serverConnectHandler); | |
connection.addEventListener(ConnectionEvents.DISCONNECTED, this.delegate_serverConnectHandler); | |
connection.addEventListener(ConnectionEvents.CONNECTION_FAILED, this.delegate_serverConnectHandler); | |
connection.addEventListener(ConnectionEvents.CONNECTION_FAILED_INVALID_SESSION, this.delegate_connectionFailedInvalidSessionHandler); | |
connection.addEventListener(testCase.MESSAGE_RECEIVED, this.delegate_serverDataHandler); | |
connection.connect(t, n); | |
} | |
}, Connection.prototype.closeConnection = function (connection, callback) { | |
if (connection) { | |
if (connection.hasEventListener(ConnectionEvents.CONNECTED)) { | |
connection.removeEventListener(ConnectionEvents.CONNECTED, this.delegate_serverConnectHandler); | |
connection.removeEventListener(ConnectionEvents.DISCONNECTED, this.delegate_serverConnectHandler); | |
connection.removeEventListener(ConnectionEvents.CONNECTION_FAILED, this.delegate_serverConnectHandler); | |
connection.removeEventListener(ConnectionEvents.CONNECTION_FAILED_INVALID_SESSION, this.delegate_connectionFailedInvalidSessionHandler); | |
connection.removeEventListener(testCase.MESSAGE_RECEIVED, this.delegate_serverDataHandler); | |
} | |
try { | |
connection.close(callback); | |
} catch (n) { | |
} | |
} | |
}, Connection.prototype.subscribe = function (view) { | |
var j; | |
var r; | |
if (this._reConnectTimer && this._reConnectTimer.active) { | |
this._reConnectTimer.stop(); | |
this.connect(t, n); | |
} | |
if (this._serverConnection && this._serverConnection.getConnected()) { | |
if (view) { | |
if (view.length > C) { | |
j = view.indexOf(",", view.length / 2); | |
this.subscribe(view.slice(0, j)); | |
this.subscribe(view.slice(j + 1)); | |
} else { | |
this._serverConnection.subscribe(view); | |
if (!this._subscriptionTimeoutTimer) { | |
r = view.split(",")[0]; | |
this._subscriptionTimeoutTimer = new con(config); | |
this._subscriptionTimeoutTimer.addEventListener(CanvasVideoEvent.COMPLETE, new Client(this, this._subscriptionTimeoutHandler)); | |
this._subscriptionTimeoutTimer.start(); | |
this._subscriptionTimeoutTopic = r; | |
} | |
} | |
} | |
} else { | |
this._subscriptionQueue.push(view); | |
} | |
}, Connection.prototype.unsubscribe = function (name) { | |
var t; | |
var n = this._subscriptionQueue; | |
if (n.length && (t = n.indexOf(name)) > -1) { | |
n.splice(t, 1); | |
} | |
if (this._serverConnection && this._serverConnection.getConnected()) { | |
this._serverConnection.unsubscribe(name); | |
} | |
}, Connection.prototype.send = function (text, obj) { | |
if (this._serverConnection && this._serverConnection.getConnected()) { | |
this._serverConnection.send(text, obj); | |
} else { | |
this._sendQueue.push({ | |
topic: text, | |
message: obj | |
}); | |
} | |
}, Connection.prototype.swapSubscriptions = function (e, f) { | |
if (this._serverConnection.getConnected()) { | |
if (this._serverConnection.swapSubscription(e, f), !this._subscriptionTimeoutTimer && e) { | |
var n = e.split(",")[0]; | |
this._subscriptionTimeoutTimer = new con(config); | |
this._subscriptionTimeoutTimer.addEventListener(CanvasVideoEvent.COMPLETE, new Client(this, this._subscriptionTimeoutHandler)); | |
this._subscriptionTimeoutTimer.start(); | |
this._subscriptionTimeoutTopic = n; | |
} | |
} else { | |
this._subscriptionQueue.push(e); | |
} | |
}, Connection.prototype._initialize = function () { | |
app.currentApplication.addEventListener(animationPropertiesForBrowser.UNLOADING, this.delegate_applicationUnloadingHandler); | |
/** @type {boolean} */ | |
this._initialized = true; | |
}, Connection.prototype._resetIdleTimer = function () { | |
clearTimeout(this._idleTimerID); | |
/** @type {number} */ | |
this._idleTimerID = setTimeout(this.callback_idleTimerHandler, this._idleTime); | |
}, Connection.prototype._processSubscriptionQueue = function () { | |
if (this._subscriptionQueue.length > 0) { | |
try { | |
this._serverConnection.subscribe(this._subscriptionQueue.join(",")); | |
/** @type {number} */ | |
this._subscriptionQueue.length = 0; | |
} catch (format) { | |
ErrorReporter.Trace(this, format); | |
} | |
} | |
for (; this._sendQueue.length > 0;) { | |
this.send(this._sendQueue[0].topic, this._sendQueue.shift().message); | |
} | |
}, Connection.prototype._connectionFailedInvalidSessionHandler = function () { | |
exports.Trace(strBuff.PUSH_MESSAGE_CONNECTION_ENTRY, "Failed on invalid session"); | |
this.close(); | |
this.dispatchEvent(new Event(Event.CONNECTION_FAILED_INVALID_SESSION)); | |
}, Connection.prototype._serverConnectHandler = function (canCreateDiscussions) { | |
var options; | |
var G__20648; | |
var o; | |
var r; | |
var name; | |
var _; | |
var i; | |
var s; | |
var evt; | |
if (this._pendingConnect = false, this._serverConnection.getConnected()) { | |
if (this._retryInterval = 0, this._connectedPublisher = this._serverConnection.getConnectionID(), this._connectedPublisher = this._connectedPublisher.substring(0, this._connectedPublisher.indexOf("-")), options = this._serverConnection.getCurrentConnectionDetails(), this.dispatchEvent(new Event(Event.CONNECTED, options)), this._reconnected ? (this._subscriptionQueue.length = 0, this.dispatchEvent(new Event(Event.SERVER_RECONNECT))) : this._reconnected = true, this._resetIdleTimer(), this._processSubscriptionQueue(), | |
!Connection.WebsocketConnectionEstablished && 3 === options.transportMethodId) { | |
/** @type {boolean} */ | |
Connection.WebsocketConnectionEstablished = true; | |
G__20648 = Locator.config.getConnectionDetails(); | |
/** @type {number} */ | |
o = 0; | |
r = G__20648; | |
for (; o < r.length; o++) { | |
name = r[o]; | |
if (3 === name.transportMethodId) { | |
Locator.config.setConnectionDetails([name]); | |
} | |
} | |
_ = Locator.config.getPrivateConnectionDetails(); | |
/** @type {number} */ | |
i = 0; | |
s = _; | |
for (; i < s.length; i++) { | |
name = s[i]; | |
if (3 === name.transportMethodId) { | |
Locator.config.setPrivateConnectionDetails([name]); | |
} | |
} | |
} | |
} else { | |
/** @type {string} */ | |
this._connectedPublisher = "not connected."; | |
this._serverConnection.logPushStatus(readit.pushConnectionStatusEnum.ALLRETRYSFAILED, this._serverConnection.getCurrentConnectionHost()); | |
evt = void 0; | |
if (this._reconnected) { | |
this.dispatchEvent(new Event(Event.RECONNECT_FAILED, this._connectionAttempts)); | |
} else { | |
evt = new Event(Event.CONNECTION_FAILED, this._connectionAttempts); | |
this.dispatchEvent(evt); | |
/** @type {boolean} */ | |
evt.retry = true; | |
if (!evt.retry) { | |
/** @type {number} */ | |
this._subscriptionQueue.length = 0; | |
} | |
} | |
if (this._reconnected || evt && evt.retry) { | |
if (!this._applicaitonUnloading) { | |
/** @type {number} */ | |
this._retryInterval = 5e3 + 1e4 * Math.random() | 0; | |
if (this._reConnectTimer) { | |
/** @type {number} */ | |
this._reConnectTimer.time = this._retryInterval; | |
} else { | |
this._reConnectTimer = new con(this._retryInterval); | |
this._reConnectTimer.addEventListener(CanvasVideoEvent.COMPLETE, new Client(this, this._reConnectHandler)); | |
} | |
this._reConnectTimer.reset(); | |
this._reConnectTimer.start(); | |
} | |
if (this._idleTimerID > -1) { | |
clearTimeout(this._idleTimerID); | |
} | |
} | |
this._connectionAttempts++; | |
} | |
}, Connection.prototype._applicationUnloadingHandler = function () { | |
/** @type {boolean} */ | |
this._applicaitonUnloading = true; | |
}, Connection.prototype._serverDataHandler = function (e) { | |
var touchSystem = this; | |
Locator.validationManager.callLater(function () { | |
return touchSystem._serverDataHandler_later(e); | |
}); | |
if (Number(e.message.messageType) == readit.StandardProtocolConstants.INITIAL_TOPIC_LOAD && this.canDebouncePVCN) { | |
/** @type {boolean} */ | |
this.canDebouncePVCN = false; | |
setTimeout(function () { | |
/** @type {boolean} */ | |
touchSystem.canDebouncePVCN = true; | |
Locator.validationManager.processValidationCycleNow(); | |
}, 0); | |
} | |
}, Connection.prototype._serverDataHandler_later = function (e) { | |
var m; | |
var n; | |
var name; | |
var r; | |
var s; | |
var ret; | |
var length; | |
var i; | |
var x; | |
var baseSel; | |
var data; | |
var uboard; | |
var field; | |
var node = this; | |
this._resetIdleTimer(); | |
m = e.message; | |
n = m.getMessage(); | |
if (Number(m.messageType) == readit.StandardProtocolConstants.INITIAL_TOPIC_LOAD) { | |
name = m.getTopic(); | |
if (e.currentTarget === this._serverConnection && this._subscriptionTimeoutTopic === name) { | |
this._resetSubscriptionTimeoutTimer(); | |
} | |
} else { | |
name = m.getBaseTopic(); | |
this._serverConnection.logPushStatus(readit.pushConnectionStatusEnum.DELTA, this._serverConnection.getCurrentConnectionHost()); | |
} | |
/** @type {boolean} */ | |
r = !!Locator.treeLookup.getReference(name); | |
/** @type {boolean} */ | |
s = Number(m.messageType) == readit.StandardProtocolConstants.INITIAL_TOPIC_LOAD && r; | |
ret = s ? d.ParseMergeMessage(n, name) : d.ParseMessage(n, name); | |
length = ret.length; | |
/** @type {number} */ | |
i = 0; | |
for (; length > i; i++) { | |
x = ret[i]; | |
if (s) { | |
name = x.topic; | |
} | |
baseSel = void 0; | |
if (x.info) { | |
data = x.info; | |
uboard = data.TI; | |
if (uboard) { | |
Locator.timeManager.setServerTime(uboard); | |
} | |
if (data && name) { | |
field = Locator.treeLookup.getReference(name); | |
if (field) { | |
field.dispatchEvent(new Event(Event.INFO_UPDATED, data)); | |
} | |
} | |
if ("EMPTY" == name && data.TO) { | |
exports.Trace(strBuff.EMPTY_TOPIC_ENTRY, "Empty topic " + data.TO); | |
name = data.TO; | |
if (this._subscriptionTimeoutTopic && (this._subscriptionTimeoutTopic === name || this._subscriptionTimeoutTopic.lastIndexOf("/") > -1 && this._subscriptionTimeoutTopic.substring(this._subscriptionTimeoutTopic.lastIndexOf("/") + 1) == name)) { | |
this._resetSubscriptionTimeoutTimer(); | |
} | |
baseSel = Locator.treeLookup.getReference(name); | |
if (baseSel) { | |
baseSel.remove(); | |
} | |
} | |
this.dispatchEvent(new Event(Event.INFO_UPDATED, data)); | |
} | |
d.ProcessStemChanges(x, name, m.getTopic(), s, function (name) { | |
return node.dispatchEvent(new MouseEvent(name)); | |
}); | |
} | |
}, Connection.prototype._resetSubscriptionTimeoutTimer = function () { | |
this._subscriptionTimeoutTimer.stop(); | |
/** @type {null} */ | |
this._subscriptionTimeoutTimer = null; | |
/** @type {null} */ | |
this._subscriptionTimeoutTopic = null; | |
}, Connection.prototype._idleTimerHandler = function () { | |
if (!this._serverConnection.getTransportSuspended()) { | |
this.close(); | |
this.connect(t, n); | |
} | |
}, Connection.prototype._reConnectHandler = function () { | |
this.connect(t, n); | |
}, Connection.prototype._subscriptionTimeoutHandler = function () { | |
this.closeConnection(this._serverConnection); | |
}, Connection.WebsocketConnectionEstablished = false, Connection; | |
}(ns_gen5_events.EventDispatcher); | |
dom.StreamDataProcessor = hasUnsanctionedElements; | |
}(ns_gen5_data || (ns_gen5_data = {})), function (scope) { | |
var isolateScope = scope.StreamDataProcessor; | |
var PinEvent = scope.PrivateStreamDataProcessorEvent; | |
var childDigest = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function Storage() { | |
var options = _super.call(this) || this; | |
return options.storageId = "PrivateConnectionDetails", options.tokenValidation = false, options; | |
} | |
return __extends(Storage, _super), Storage.prototype.getConnectionDetails = function () { | |
return Locator.config.getPrivateConnectionDetails(); | |
}, Storage.prototype._serverDataHandler_later = function (e) { | |
var topic = e.message.topic; | |
var o = topic.substr(topic.lastIndexOf("_") + 1); | |
switch (o) { | |
case "BAL": | |
this.dispatchEvent(new PinEvent(PinEvent.BALANCE_RECEIVED, e.message)); | |
break; | |
case "MSG": | |
this.dispatchEvent(new PinEvent(PinEvent.PUSH_MESSAGE_RECEIVED, e.message)); | |
break; | |
case "D23": | |
this.dispatchEvent(new PinEvent(PinEvent.D23_MESSAGE_RECEIVED, e.message)); | |
break; | |
default: | |
_super.prototype._serverDataHandler_later.call(this, e); | |
} | |
}, Storage; | |
}(isolateScope); | |
scope.PrivateStreamDataProcessor = childDigest; | |
}(ns_gen5_data || (ns_gen5_data = {})), Locator = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function result() { | |
} | |
return result.treeLookup = new ns_gen5_data.TreeLookup, result.subscriptionManager = function () { | |
var e = new ns_gen5_data.SubscriptionManager; | |
return e.setStreamDataProcessor(new ns_gen5_data.StreamDataProcessor), e.setPullDataProcessor(new ns_gen5_data.PullDataProcessor), e; | |
}(), result.privateSubscriptionManager = function () { | |
var e = new ns_gen5_data.PrivateSubscriptionManager; | |
return e.setStreamDataProcessor(new ns_gen5_data.PrivateStreamDataProcessor), e; | |
}(), result.validationManager = new ns_gen5_validation.ValidationManager, result.betSlipManager = new ns_betslip.BetSlipManager, result.timeManager = new ns_gen5_util.TimeManager, result.manifestManager = new ns_gen5_util.ManifestManager, result.user = new ns_gen5_data.User, result.languageResource = new ns_gen5_language.Resource, result.pushedConfig = new ns_gen5_config.PushedConfigManager, result.inplayEvents = new ns_gen5_events.EventDispatcher, result.participantEvents = new ns_gen5_events.EventDispatcher, | |
result.otsReport = new ns_gen5_util.OTSReport, result.serverPreferenceManager = new ns_gen5_util.ServerPreferenceManager, result.pageRender = new ns_gen5_util.PageRender, result; | |
}(), function (state) { | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function options() { | |
} | |
return options.ApplyCurrencyDelimiter = function (i, s) { | |
var splitter; | |
var data; | |
var name; | |
return s ? "s" == s ? s : (splitter = new RegExp("\\" + ("." === i ? "," : "."), "g"), data = s.replace(splitter, i), -1 == data.indexOf(i) ? data = data + (i + "00") : (name = data.indexOf(i), name == data.length - 2 ? data = data + "0" : name == data.length - 1 && (data = data + "00")), data) : ""; | |
}, options.ApplyGroupSeparator = function (css) { | |
if (!css) { | |
return ""; | |
} | |
if (!options.GroupSeparator) { | |
return css; | |
} | |
/** @type {number} */ | |
var value = +options.ApplyCurrencyDelimiter(".", css); | |
return Math.abs(value) < options.MinSepValue ? css : (options.REMOVE_GROUP_SEPARATOR_REGEX = options.REMOVE_GROUP_SEPARATOR_REGEX || new RegExp("\\" + options.GroupSeparator, "g"), css = css.replace(options.REMOVE_GROUP_SEPARATOR_REGEX, ""), css = css.replace(options.GROUP_SEPARATOR_REGEX, "$1" + options.GroupSeparator)); | |
}, options.ApplyDelimiterAndGroupSeparator = function (left) { | |
var box = options.ApplyCurrencyDelimiter(Locator.user.currencyDecimalSeparator, left); | |
return options.ApplyGroupSeparator(box); | |
}, options.ApplyCurrencySymbol = function (_) { | |
var i = options.GetCurrencySymbol(_); | |
/** @type {string} */ | |
var y = options.SpaceRequired ? options.WHITE_SPACE : ""; | |
return options.PrefixSymbol ? i + y + _ : _ + y + i; | |
}, options.GetFormatRules = function (y) { | |
var currencySymbol; | |
var i; | |
return void 0 === y && (y = ""), currencySymbol = options.GetCurrencySymbol(y), i = options.SpaceRequired ? options.WHITE_SPACE : "", y = options.PrefixSymbol ? i + y : y + i, { | |
formattedValue: y, | |
currencySymbol: currencySymbol, | |
prefixSymbol: options.PrefixSymbol, | |
spaceRequired: options.SpaceRequired, | |
featureAvailable: true | |
}; | |
}, options.ForceCorrectDecimalSeparator = function (e) { | |
return e && -1 !== e.indexOf(".") ? e = e.split(".").join(Locator.user.currencyDecimalSeparator) : e; | |
}, options.GetCurrencySymbol = function (that) { | |
var top; | |
var li; | |
var type = options.Symbol; | |
return options.PluralSymbol && (top = that, options.GroupSeparator && (options.REMOVE_GROUP_SEPARATOR_REGEX = options.REMOVE_GROUP_SEPARATOR_REGEX || new RegExp("\\" + options.GroupSeparator, "g"), top = that.replace(options.REMOVE_GROUP_SEPARATOR_REGEX, "")), li = +options.ApplyCurrencyDelimiter(".", top), 1 != li && (type = options.PluralSymbol)), type; | |
}, options.UnformatCurrencyValue = function (s) { | |
var i; | |
var tokens; | |
var day; | |
return s ? (tokens = s.indexOf("-") >= 0, day = Locator.user.currencyDecimalSeparator, s = s.replace(/[^\d,.]/g, ""), s[s.length - 3] === day ? (i = s.substring(s.length - 2), s = s.substring(0, s.length - 3)) : s[s.length - 2] === day && (i = s.substring(s.length - 1), s = s.substring(0, s.length - 2)), s = s.replace(/[,.]/g, ""), i && (s = s + ("." + i)), (tokens ? "-" : "") + s) : s; | |
}, options.GROUP_SEPARATOR_REGEX = /(-?\d)(?=(\d{3})+(?!\d))/g, options.WHITE_SPACE = "\u00a0", options; | |
}(); | |
state.CurrencyFormatter = size; | |
}(ns_gen5_util || (ns_gen5_util = {})), function (state) { | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function List() { | |
/** @type {string} */ | |
this.stype = ""; | |
/** @type {string} */ | |
this.cmask = ""; | |
/** @type {string} */ | |
this.ctype = ""; | |
/** @type {string} */ | |
this.ttype = ""; | |
/** @type {boolean} */ | |
this.quickBetApplicable = true; | |
} | |
return List.prototype.updateItem = function () { | |
state.BetConstructor.SetConstructOnBetItem(this); | |
}, List.prototype.getCastCode = function () { | |
return "" + this.stype + this.cmask + this.ctype; | |
}, List.prototype.key = function () { | |
return this.uid ? this.uid.replace("Y", "").replace("N", "") : ""; | |
}, List.prototype.toString = function () { | |
return "[BetItem]"; | |
}, List; | |
}(); | |
state.BetItem = size; | |
}(ns_betslip || (ns_betslip = {})), ns_gen5_net.ModuleLoaderDefault.ModuleResourceLookup = window._websiteManifest ? window._websiteManifest.modulesInformation : {}; | |
var cache = cache || {}; | |
(function () { | |
/** | |
* @param {string} name | |
* @param {?} value | |
* @return {undefined} | |
*/ | |
RegisterCompiledAsset = function (name, value) { | |
name = name.toLowerCase(); | |
cache[name] = value; | |
}; | |
/** | |
* @param {string} name | |
* @return {?} | |
*/ | |
GetCompiledAsset = function (name) { | |
name = name.toLowerCase(); | |
return cache[name]; | |
}; | |
})(); | |
!function (global) { | |
/** | |
* @param {!Object} proto | |
* @param {string} objectOnly | |
* @return {?} | |
*/ | |
function createCollection(proto, objectOnly) { | |
/** | |
* @param {!Object} a | |
* @return {?} | |
*/ | |
function Collection(a) { | |
return this && this.constructor === Collection ? (this._keys = [], this._values = [], this._itp = [], this.objectOnly = objectOnly, void (a && n.call(this, a))) : new Collection(a); | |
} | |
return proto.constructor = Collection, Collection.prototype = proto, Collection; | |
} | |
/** | |
* @param {!Array} a | |
* @return {undefined} | |
*/ | |
function n(a) { | |
if (this.add) { | |
a.forEach(this.add, this); | |
} else { | |
a.forEach(function (transition) { | |
this.set(transition[0], transition[1]); | |
}, this); | |
} | |
} | |
/** | |
* @param {!Object} name | |
* @return {?} | |
*/ | |
function d(name) { | |
if (this.has(name)) { | |
this._keys.splice(i, 1); | |
this._values.splice(i, 1); | |
/** @type {number} */ | |
var duplexType = 0; | |
var readersLength = this._itp.length; | |
for (; readersLength > duplexType; duplexType++) { | |
var data = this._itp[duplexType]; | |
if (i < data[0]) { | |
data[0]--; | |
} | |
} | |
} | |
return i > -1; | |
} | |
/** | |
* @param {!Object} key | |
* @return {?} | |
*/ | |
function init(key) { | |
return this.has(key) ? this._values[i] : void 0; | |
} | |
/** | |
* @param {!Array} s | |
* @param {!Object} c | |
* @return {?} | |
*/ | |
function has(s, c) { | |
if (this.objectOnly && c !== Object(c)) { | |
throw new TypeError("Invalid value used as weak collection key"); | |
} | |
if (c != c || 0 === c) { | |
i = s.length; | |
for (; i-- && !contains(s[i], c);) { | |
} | |
} else { | |
i = s.indexOf(c); | |
} | |
return i > -1; | |
} | |
/** | |
* @param {!Object} value | |
* @return {?} | |
*/ | |
function setHas(value) { | |
return has.call(this, this._values, value); | |
} | |
/** | |
* @param {!Object} value | |
* @return {?} | |
*/ | |
function mapHas(value) { | |
return has.call(this, this._keys, value); | |
} | |
/** | |
* @param {!Object} name | |
* @param {number} val | |
* @return {?} | |
*/ | |
function set(name, val) { | |
return this.has(name) ? this._values[i] = val : this._values[this._keys.push(name) - 1] = val, this; | |
} | |
/** | |
* @param {!Object} name | |
* @return {?} | |
*/ | |
function _add(name) { | |
return this.has(name) || this._values.push(name), this; | |
} | |
/** | |
* @return {undefined} | |
*/ | |
function clear() { | |
/** @type {number} */ | |
(this._keys || 0).length = this._values.length = 0; | |
} | |
/** | |
* @return {?} | |
*/ | |
function sharedKeys() { | |
return sharedIterator(this._itp, this._keys); | |
} | |
/** | |
* @return {?} | |
*/ | |
function sharedValues() { | |
return sharedIterator(this._itp, this._values); | |
} | |
/** | |
* @return {?} | |
*/ | |
function setEntries() { | |
return sharedIterator(this._itp, this._keys, this._values); | |
} | |
/** | |
* @return {?} | |
*/ | |
function mapEntries() { | |
return sharedIterator(this._itp, this._values, this._values); | |
} | |
/** | |
* @param {!Array} set | |
* @param {!NodeList} array | |
* @param {string} array2 | |
* @return {?} | |
*/ | |
function sharedIterator(set, array, array2) { | |
/** @type {!Array} */ | |
var item = [0]; | |
/** @type {boolean} */ | |
var done = false; | |
return set.push(item), { | |
next: function () { | |
var v; | |
var k = item[0]; | |
return !done && k < array.length ? (v = array2 ? [array[k], array2[k]] : array[k], item[0]++) : (done = true, set.splice(set.indexOf(item), 1)), { | |
done: done, | |
value: v | |
}; | |
} | |
}; | |
} | |
/** | |
* @param {!Function} callback | |
* @param {?} context | |
* @return {undefined} | |
*/ | |
function sharedForEach(callback, context) { | |
var entries = this.entries(); | |
for (; ;) { | |
var nextOther = entries.next(); | |
if (nextOther.done) { | |
break; | |
} | |
callback.call(context, nextOther.value[1], nextOther.value[0], this); | |
} | |
} | |
var i; | |
/** @type {function(!Object, !Object): ?} */ | |
var contains = (Object.defineProperty, function (a, b) { | |
return isNaN(a) ? isNaN(b) : a === b; | |
}); | |
if ("undefined" == typeof WeakMap) { | |
global.WeakMap = createCollection({ | |
"delete": d, | |
clear: clear, | |
get: init, | |
has: mapHas, | |
set: set | |
}, true); | |
} | |
if (!("undefined" != typeof Map && "function" == typeof (new Map).values && (new Map).values().next)) { | |
global.Map = createCollection({ | |
"delete": d, | |
has: mapHas, | |
get: init, | |
set: set, | |
keys: sharedKeys, | |
values: sharedValues, | |
entries: setEntries, | |
forEach: sharedForEach, | |
clear: clear | |
}); | |
} | |
if (!("undefined" != typeof Set && "function" == typeof (new Set).values && (new Set).values().next)) { | |
global.Set = createCollection({ | |
has: setHas, | |
add: _add, | |
"delete": d, | |
clear: clear, | |
keys: sharedValues, | |
values: sharedValues, | |
entries: mapEntries, | |
forEach: sharedForEach | |
}); | |
} | |
if ("undefined" == typeof WeakSet) { | |
global.WeakSet = createCollection({ | |
"delete": d, | |
add: _add, | |
clear: clear, | |
has: setHas | |
}, true); | |
} | |
}("undefined" != typeof exports && "undefined" != typeof global ? global : window); | |
var ns_webconsolelib_util; | |
var ns_webconsolelib; | |
var ns_weblib_util; | |
var ns_webconsolelib_events; | |
var ns_webconsolelib_pages_interface; | |
var ns_webconsolelib_pages; | |
var ns_webconsolelib_pages_util; | |
var ns_webconsolelib_util_broadcast; | |
/** @type {string} */ | |
SITE_ROOT_PATH = "sportsnj"; | |
!function (vars) { | |
var n; | |
!function (data) { | |
/** | |
* @param {?} m | |
* @param {boolean} array | |
* @return {?} | |
*/ | |
function create(m, array) { | |
var value = t[m]; | |
return value ? "string" == typeof value ? value : value[array ? 1 : 0] : ""; | |
} | |
/** @type {string} */ | |
data.GEN5BASE = "gen5base"; | |
/** @type {string} */ | |
data.WEBCONSOLELIB = "WebConsoleLib"; | |
/** @type {string} */ | |
data.HEADER_MODULE = "HeaderModule"; | |
/** @type {string} */ | |
data.HEADER_LOCALE_MODULE = "HeaderLocaleModule"; | |
/** @type {string} */ | |
data.FOOTER_MODULE = "FooterModule"; | |
/** @type {string} */ | |
data.INPLAY_MODULE = "InPlayModule"; | |
/** @type {string} */ | |
data.WEB_CONSOLE_MODULE = "WebConsoleModule"; | |
/** @type {string} */ | |
data.WEB_CONSOLE_LOCALE_MODULE = "WebConsoleLocaleModule"; | |
/** @type {string} */ | |
data.APP_CONSOLE_MODULE = "AppConsoleModule"; | |
/** @type {string} */ | |
data.WEB_NAV_MODULE = "WebNavModule"; | |
/** @type {string} */ | |
data.SPLASH_MODULE = "SplashModule"; | |
/** @type {string} */ | |
data.SPLASH_LOTTO_MODULE = "SplashLottoModule"; | |
/** @type {string} */ | |
data.RACING_SPLASH_MODULE = "RacingSplashModule"; | |
/** @type {string} */ | |
data.SPLASH_MYTEAMS_MODULE = "SplashMyTeamsModule"; | |
/** @type {string} */ | |
data.COUPON_MODULE = "CouponModule"; | |
/** @type {string} */ | |
data.POD_LOADER_MODULE = "PodLoaderModule"; | |
/** @type {string} */ | |
data.POD_LOADER_LOCALE_MODULE = "PodLoaderLocaleModule"; | |
/** @type {string} */ | |
data.RACING_SEARCH = "RacingSearchModule"; | |
/** @type {string} */ | |
data.INPLAY_SCHEDULE_MODULE = "InPlayScheduleModule"; | |
/** @type {string} */ | |
data.RACING_COUPON_MODULE = "RacingCouponModule"; | |
/** @type {string} */ | |
data.ODDS_ON_COUPON_MODULE = "OddsOnCouponModule"; | |
/** @type {string} */ | |
data.VIRTUAL_RACING_MODULE = "VirtualRacingModule"; | |
/** @type {string} */ | |
data.MY_BETS_MODULE = "MyBetsModule"; | |
/** @type {string} */ | |
data.MY_BETS_LHS_MODULE = "MyBetsLhsModule"; | |
/** @type {string} */ | |
data.MY_BETS_RHS_MODULE = "MyBetsRhsModule"; | |
/** @type {string} */ | |
data.MY_BETS_BOOT_MODULE = "MyBetsBootModule"; | |
/** @type {string} */ | |
data.MY_BETS_BOOT_LEGACY_MODULE = "MyBetsBootLegacyModule"; | |
/** @type {string} */ | |
data.BETSLIP = "BetslipWebModule"; | |
/** @type {string} */ | |
data.LOTTO_MODULE = "LottoModule"; | |
/** @type {string} */ | |
data.QUICKBET_MODULE = "QuickBetModule"; | |
/** @type {string} */ | |
data.FLASH_STREAMING_MODULE = "FlashStreamingModule"; | |
/** @type {string} */ | |
data.HLS_STREAMING_MODULE = "HLSStreamingModule"; | |
/** @type {string} */ | |
data.MP4_STREAMING_MODULE = "MP4StreamingModule"; | |
/** @type {string} */ | |
data.LIVE_VIEW = "LiveViewModule"; | |
/** @type {string} */ | |
data.AUDIO_PLAYER = "AudioPlayerModule"; | |
/** @type {string} */ | |
data.RACING_ARCHIVE_MODULE = "RacingArchiveModule"; | |
/** @type {string} */ | |
data.EDIT_BET_ADVERT_MODULE = "EditBetAdvertModule"; | |
/** @type {string} */ | |
data.EDITBET_MODULE = "EditBetModule"; | |
/** @type {string} */ | |
data.BETCALL_MODULE = "BetCallModule"; | |
/** @type {string} */ | |
data.MEPG_DASH_STREAMING_MODULE = "MPEGDashStreamingModule"; | |
/** @type {string} */ | |
data.MY_ALERTS_HEADER_MODULE = "MyAlertsHeaderModule"; | |
/** @type {string} */ | |
data.BET_BUILDER_MODULE = "BetBuilderModule"; | |
/** @type {string} */ | |
data.STABLES_MODULE = "StablesModule"; | |
/** @type {string} */ | |
data.INPLAY_LEAGUE_TABLE_MODULE = "InPlayLeagueTableModule"; | |
/** @type {string} */ | |
data.LOGIN_MODULE = "LoginModule"; | |
/** @type {string} */ | |
data.GEOCOMPLY_MODULE = "GeoComplyModule"; | |
/** @type {string} */ | |
data.IMPORTANT_ANNOUNCEMENT_MODULE = "ImportantAnnouncementModule"; | |
/** @type {string} */ | |
data.INFO_BANNERS_MODULE = "InfoBannersModule"; | |
/** @type {string} */ | |
data.BETTING_BANNERS_MODULE = "BettingBannersModule"; | |
/** @type {string} */ | |
data.INPLAY_LAUNCHER_POD_MODULE = "InPlayLauncherPodModule"; | |
/** @type {string} */ | |
data.TOP_COUPONS_MODULE = "TopCouponsModule"; | |
/** @type {string} */ | |
data.HIGHLIGHTS_MAIN_MODULE = "HighlightsMainModule"; | |
/** @type {string} */ | |
data.HIGHLIGHTS_ADDITIONAL_MODULE = "HighlightsAdditionalModule"; | |
/** @type {string} */ | |
data.IMAGE_BANNERS_MODULE = "ImageBannersModule"; | |
/** @type {string} */ | |
data.INSTANT_GAMES_MODULE = "InstantGamesModule"; | |
/** @type {string} */ | |
data.AUS_RACING_MODULE = "InPlayRacingModule"; | |
/** @type {string} */ | |
data.RUNNERS_MODULE = "RunnersModule"; | |
/** @type {string} */ | |
data.AUS_RACE_RIBBONS_MODULE = "RaceRibbonsModule"; | |
/** @type {string} */ | |
data.OPEN_OFFERS_LHS_MODULE = "OpenOffersLhsModule"; | |
/** @type {string} */ | |
data.PROMO_BANNERS_LHS_MODULE = "PromoBannersLhsModule"; | |
/** @type {string} */ | |
data.MATCHLIVE_LIB = "MatchLiveLib"; | |
/** @type {string} */ | |
data.MATCHLIVE_SOCCER_MODULE = "MatchLiveSoccerModule"; | |
/** @type {string} */ | |
data.MATCHLIVE_BASKETBALL_MODULE = "MatchLiveBasketballModule"; | |
/** @type {string} */ | |
data.MATCHLIVE_RUGBY_UNION_MODULE = "MatchLiveRugbyUnionModule"; | |
/** @type {string} */ | |
data.MATCHLIVE_RUGBY_LEAGUE_MODULE = "MatchLiveRugbyLeagueModule"; | |
/** @type {string} */ | |
data.MATCHLIVE_ICE_HOCKEY_MODULE = "MatchLiveIceHockeyModule"; | |
/** @type {string} */ | |
data.MATCHLIVE_HANDBALL_MODULE = "MatchLiveHandballModule"; | |
/** @type {string} */ | |
data.MATCHLIVE_GOLF_HOCKEY_MODULE = "MatchLiveGolfModule"; | |
/** @type {string} */ | |
data.MATCHLIVE_WATER_POLO_MODULE = "MatchLiveWaterPoloModule"; | |
/** @type {string} */ | |
data.MATCHLIVE_TENNIS_MODULE = "MatchLiveTennisModule"; | |
/** @type {string} */ | |
data.MATCHLIVE_HORSE_RACING_MODULE = "MatchLiveHorseRacingModule"; | |
/** @type {string} */ | |
data.MATCHLIVE_DARTS_MODULE = "MatchLiveDartsModule"; | |
/** @type {string} */ | |
data.MATCHLIVE_BASEBALL_MODULE = "MatchLiveBaseballModule"; | |
/** @type {string} */ | |
data.MATCHLIVE_CRICKET_MODULE = "MatchLiveCricketModule"; | |
/** @type {string} */ | |
data.MATCHLIVE_VOLLEYBALL_MODULE = "MatchLiveVolleyballModule"; | |
/** @type {string} */ | |
data.MATCHLIVE_AUSSIE_RULES_MODULE = "MatchLiveAussieRulesModule"; | |
/** @type {string} */ | |
data.MATCHLIVE_AMERICAN_FOOTBALL_MODULE = "MatchLiveAmericanFootballModule"; | |
/** @type {string} */ | |
data.PREMATCH_STATS_MODULE = "PreMatchStatsModule"; | |
/** @type {string} */ | |
data.EXTRA_PLAYER_MODULE = "ExtraPlayerModule"; | |
/** @type {string} */ | |
data.MULTI_MAKER_MODULE = "MultiMakerModule"; | |
/** @type {string} */ | |
data.MATCH_ALERTS_MODULE = "MatchAlertsModule"; | |
/** @type {string} */ | |
data.PUSH_NOTIFICATIONS_MODULE = "PushNotificationsModule"; | |
/** @type {string} */ | |
data.TOURNAMENT_MODULE = "TournamentModule"; | |
/** @type {string} */ | |
data.KNOCKOUT_TREE_MODULE = "KnockoutTreeModule"; | |
/** @type {string} */ | |
data.BETSLIP_MATCH_ALERTS_MODULE = "BetslipMatchAlertsModule"; | |
/** @type {string} */ | |
data.SITE_SEARCH_MODULE = "SiteSearchModule"; | |
/** @type {string} */ | |
data.SITE_SEARCH_ASSETS_MODULE = "SiteSearchAssetsModule"; | |
/** @type {string} */ | |
data.STUDIO_STREAMING_POD_MODULE = "StudioStreamingPodModule"; | |
/** @type {string} */ | |
data.SCORECAST_MODULE = "ScorecastModule"; | |
/** @type {string} */ | |
data.SWEDISH_HEADER_MODULE = "SwedishHeaderModule"; | |
/** @type {string} */ | |
data.ITALIAN_HEADER_MODULE = "ItalianHeaderModule"; | |
/** @type {string} */ | |
data.ACTIVITY_LIMIT_MODULE = "ActivityLimitModule"; | |
/** @type {string} */ | |
data.UPCOMING_FIXTURES_MODULE = "UpcomingFixturesModule"; | |
/** @type {string} */ | |
data.MINIMATCHLIVE_OVERVIEW_MODULE = "MiniMatchLiveOverviewModule"; | |
/** @type {string} */ | |
data.PUSH_MESSAGE_MODULE = "PushMessageModule"; | |
/** @type {string} */ | |
data.MEDIA_PREFERENCES_MODULE = "MediaPreferencesModule"; | |
/** @type {string} */ | |
data.MINIMATCHLIVE_SOCCER_MODULE = "MiniMatchLiveSoccerModule"; | |
/** @type {string} */ | |
data.MINIMATCHLIVE_CRICKET_MODULE = "MiniMatchLiveCricketModule"; | |
/** @type {string} */ | |
data.BET_CALCULATIONS_MODULE = "BetCalculationsModule"; | |
/** @type {string} */ | |
data.MINIMATCHLIVE_RUGBYUNION_MODULE = "MiniMatchLiveRugbyUnionModule"; | |
/** @type {string} */ | |
data.MINIMATCHLIVE_WATERPOLO_MODULE = "MiniMatchLiveWaterPoloModule"; | |
/** @type {string} */ | |
data.MINIMATCHLIVE_RUGBYLEAGUE_MODULE = "MiniMatchLiveRugbyLeagueModule"; | |
/** @type {string} */ | |
data.MINIMATCHLIVE_HANDBALL_MODULE = "MiniMatchLiveHandballModule"; | |
/** @type {string} */ | |
data.MINIMATCHLIVE_ICEHOCKEY_MODULE = "MiniMatchLiveIceHockeyModule"; | |
/** @type {string} */ | |
data.MINIMATCHLIVE_AMERICANFOOTBALL_MODULE = "MiniMatchLiveAmericanFootballModule"; | |
/** @type {string} */ | |
data.MINIMATCHLIVE_AUSSIERULES_MODULE = "MiniMatchLiveAussieRulesModule"; | |
/** @type {string} */ | |
data.MINIMATCHLIVE_BASKETBALL_MODULE = "MiniMatchLiveBasketballModule"; | |
/** @type {string} */ | |
data.MINIMATCHLIVE_BASEBALL_MODULE = "MiniMatchLiveBaseballModule"; | |
/** @type {string} */ | |
data.MINIMATCHLIVE_DARTS_MODULE = "MiniMatchLiveDartsModule"; | |
/** @type {string} */ | |
data.MINIMATCHLIVE_GOLF_MODULE = "MiniMatchLiveGolfModule"; | |
/** @type {string} */ | |
data.MINIMATCHLIVE_HORSERACING_MODULE = "MiniMatchLiveHorseRacingModule"; | |
/** @type {string} */ | |
data.USA_HEADER_MODULE = "USAHeaderModule"; | |
/** @type {string} */ | |
data.OFFER_BADGE_MODULE = "OfferBadgeModule"; | |
/** @type {string} */ | |
data.OVERVIEW_DATA_PROCESSOR_MODULE = "OverviewDataProcessorModule"; | |
/** @type {string} */ | |
data.PERFMON_MODULE = "PerfMonModule"; | |
/** @type {string} */ | |
data.STYLING_RB_MODULE = "StylingRBModule"; | |
/** @type {string} */ | |
data.STYLING_RB_AMERICAN_MODULE = "StylingRBAmericanModule"; | |
/** @type {string} */ | |
data.STYLING_RC_MODULE = "StylingRCModule"; | |
/** @type {string} */ | |
data.STYLING_MARKET_CORRECT_SCORE_MODULE = "StylingMarketCorrectScoreModule"; | |
/** @type {string} */ | |
data.STYLING_SCORECAST_UI_MODULE = "StylingScorecastUIModule"; | |
/** @type {string} */ | |
data.STYLING_SETCAST_MODULE = "StylingSetcastModule"; | |
/** @type {string} */ | |
data.MEMBER_MENU_MODULE = "MemberMenuModule"; | |
/** @type {string} */ | |
data.APPLE_PAY_MODULE = "ApplePayModule"; | |
/** @type {string} */ | |
data.GOOGLE_PAY_MODULE = "GooglePayModule"; | |
/** @type {string} */ | |
data.BIOMETRIC_MODULE = "BiometricModule"; | |
/** @type {string} */ | |
data.PASSCODE_MODULE = "PasscodeModule"; | |
/** @type {string} */ | |
data.STYLING_GAME_LINES_MODULE = "StylingGameLinesModule"; | |
/** @type {string} */ | |
data.STYLING_SOCCER_MODULE = "StylingSoccerModule"; | |
/** @type {string} */ | |
data.STYLING_OFFER_BADGES_MODULE = "StylingOfferBadgesModule"; | |
/** @type {string} */ | |
data.STYLING_FEATURED_FIXTURE_MODULE = "StylingFeaturedFixtureModule"; | |
/** @type {string} */ | |
data.STYLING_PREMATCH_LEAGUE_TABLE_MODULE = "StylingPreMatchLeagueTableModule"; | |
/** @type {string} */ | |
data.IPPG_MODULE = "IPPGModule"; | |
/** @type {string} */ | |
data.DK_HEADER_MODULE = "DKHeaderModule"; | |
/** @type {string} */ | |
data.IN_PLAY_EVENT_VIEW_MODULE = "InPlayEventViewModule"; | |
/** @type {string} */ | |
data.IN_PLAY_NAVIGATION_MODULE = "InPlayNavigationModule"; | |
/** @type {string} */ | |
data.IN_PLAY_MY_BETS_MODULE = "InPlayMyBetsModule"; | |
/** @type {string} */ | |
data.CONTACT_US = "ContactUsModule"; | |
/** @type {string} */ | |
data.OFFERS_MODULE = "OffersModule"; | |
/** @type {string} */ | |
data.APP_API_MODULE = "AppApiModule"; | |
/** @type {string} */ | |
data.BETSLIP_STANDARD_MODULE = "BetslipStandardModule"; | |
/** @type {string} */ | |
data.BETSLIP_BANKER_MODULE = "BetslipBankerModule"; | |
/** @type {string} */ | |
data.BETSLIP_IF_BET_MODULE = "BetslipIfBetModule"; | |
/** @type {string} */ | |
data.BETSLIP_TEASER_MODULE = "BetslipTeaserModule"; | |
/** @type {string} */ | |
data.BETSLIP_REVERSE_IF_MODULE = "BetslipReverseIfModule"; | |
/** @type {string} */ | |
data.BETSLIP_LOADER_MODULE = "BetslipLoaderModule"; | |
/** @type {string} */ | |
data.BETSLIP_UK_TOTE_MODULE = "BetslipUkToteModule"; | |
/** @type {string} */ | |
data.BETSLIP_US_TOTE_MODULE = "BetslipUsToteModule"; | |
/** @type {string} */ | |
data.BETSLIP_E_TOTE_MODULE = "BetslipEToteModule"; | |
/** @type {string} */ | |
data.BETSLIP_FOREIGN_POOLS_MODULE = "BetslipForeignPoolsModule"; | |
/** @type {string} */ | |
data.BETSLIP_AUS_RACING_MODULE = "BetslipAusRacingModule"; | |
/** @type {string} */ | |
data.BETSLIP_CAST_MODULE = "BetslipCastModule"; | |
/** @type {string} */ | |
data.BETSLIP_BETCALL_MODULE = "BetslipBetCallModule"; | |
/** @type {string} */ | |
data.BETSLIP_COLOSSUS_MODULE = "BetslipColossusModule"; | |
var t = { | |
1: data.IMPORTANT_ANNOUNCEMENT_MODULE, | |
2: data.BETTING_BANNERS_MODULE, | |
3: [data.PROMO_BANNERS_LHS_MODULE, data.INFO_BANNERS_MODULE], | |
5: data.INPLAY_LAUNCHER_POD_MODULE, | |
6: data.TOP_COUPONS_MODULE, | |
7: data.INFO_BANNERS_MODULE, | |
8: data.IMAGE_BANNERS_MODULE, | |
10: data.HIGHLIGHTS_MAIN_MODULE, | |
11: data.HIGHLIGHTS_MAIN_MODULE, | |
12: data.HIGHLIGHTS_ADDITIONAL_MODULE, | |
13: data.HIGHLIGHTS_ADDITIONAL_MODULE, | |
14: data.INSTANT_GAMES_MODULE, | |
16: data.OPEN_OFFERS_LHS_MODULE, | |
17: data.AUS_RACING_MODULE, | |
18: data.INFO_BANNERS_MODULE, | |
19: data.AUS_RACING_MODULE, | |
20: data.RUNNERS_MODULE, | |
22: data.AUS_RACE_RIBBONS_MODULE, | |
24: data.STUDIO_STREAMING_POD_MODULE | |
}; | |
/** @type {function(?, boolean): ?} */ | |
data.GetResourceOnPodType = create; | |
}(n = vars.ModuleName || (vars.ModuleName = {})); | |
}(ns_webconsolelib_util || (ns_webconsolelib_util = {})), function (soa) { | |
var parseInt = ns_gen5_ui.SingletonModule; | |
var mainPost = ns_webconsolelib_util.ModuleName; | |
soa.BetslipWebModuleContainer = parseInt(mainPost.BETSLIP); | |
}(ns_webconsolelib || (ns_webconsolelib = {})), function (cellPB) { | |
var a; | |
var prop; | |
var o; | |
var j; | |
var obj = {}; | |
try { | |
a = window.ns_weblib_util.WebsiteConfig; | |
for (prop in a) { | |
obj[prop] = a[prop]; | |
} | |
} catch (_) { | |
} | |
if (o = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function e() { | |
} | |
return e.HTTPS_HOST = "https://" + window.location.host, e.API_LOCATION_SITE_CONFIG = e.HTTPS_HOST + "/home/pd001/ppds.ashx", e.BLOB_LOCATION = "/Api/1/Blob?", e.UNITED_STATES_OF_AMERICA_REGULATORY_FEATURES_ENABLED = false, e.VERIFY_BET = "puw|https://{membersURL}/home/mainpage.asp?prdid=1&ibpid=12102&isb=0&lng={LiD}&cnt={nG}&cb={Rand}|Members|Height=600,Width=800,statusbar=no,scrollbars=yes", e.PREFERENCES_ENABLED = 1, e.INSTANT_BET = false, e.Interim = true, e.SILKS_IMAGE = "https://www.imagecache365.com/JockeySilksTransparent/{0}", | |
e.SILKS_IMAGE_AUS = "https://www.imagecache365.com/JockeySilksTransparent/aussilks/{0}", e.SILKS_IMAGE_ITALY = "https://www.imagecache365.com/jockeysilks/italyracing/{0}", e.DOG_SILKS_UK = "https://www.help-pages.net/WebImages/images/greyhounds/premium-1/{0}_25x25.png", e.DOG_SILKS_AUS = "https://www.help-pages.net/WebImages/images/greyhounds/premium-1/aus_{0}_25x25.png", e.TROTTING_SILKS_AUS = "https://www.imagecache365.com/JockeySilksTransparent/aussilks/Harness/{0}", e.VIRTUAL_SILKS_IMAGE = | |
"https://www.imagecache365.com/VRSilks/VRSilksTrans/{0}", e.VIRTUAL_GRAND_NATIONAL_SILKS_IMAGE = "https://www.imagecache365.com/VRSilks/GNational/{0}", e.ITALY_VIRTUAL_SILKS_IMAGE = "https://www.imagecache365.com/VRSilks7/VRITSilks/{0}", e.VIRTUAL_SPEEDWAY_IMAGE = "https://www.imagecache365.com/VRSilks7/VRSilksTrans/speedway_{0}.png", e.VIRTUAL_GRAND_PRIX_IMAGE = "https://www.imagecache365.com/VRSilks7/VRSilksTrans/grand_prix_{0}.png", e.VIRTUAL_STOCK_CAR_IMAGE = "https://www.imagecache365.com/VRSilks/VRSilksTrans/stock_cars_{0}.png", | |
e.VIRTUAL_CYCLING_IMAGE = "https://www.imagecache365.com/VRSilks7/VirtualCycling/cycling_{0}.png", e.ACTIVITY_SETTER_TIMEOUT = "60", e.ACTIVITY_MARGIN_TIME = "60", e.ACTIVITY_REFRESH_WAIT_TIME = "5", e.ACTIVITY_TOLERANCE = "30", e.INPLAY_TOPIC = "InPlay_{0}_{1}", e.COL1CONTROLLER_TOPIC = "HL_L{0}_Z{1}_C{2}_W{3}", e.COL2CONTROLLER_TOPIC = "HM_L{0}_Z{1}_C{2}_W{3}", e.RHS_CONTROLLER_TOPIC = "HR_L{0}_Z{1}_C{2}_W{3}", e.INPLAY_CONTROLLER_TOPIC = "XL_L{0}_Z{1}_C{2}_W{3}", e.SPORTS_RIGHT_CONTROLLER_TOPIC = | |
"SR0_L{0}_Z{1}_C{2}_W{3}", e.MEDIA_TOPIC = "Media_L{0}_Z{1}", e.MATCHLIVE_TOPIC = "{0}M_{1}_{2}", e.MATCHLIVE_TOPIC_NEW = "{0}M{1}_{2}_{3}", e.MATCHLIVE_TOPIC_WITHOUT_ZONE = "{0}M{1}_{2}", e.MATCHLIVE_FIXTUREID_TOPIC = "{0}LS_{1}_0", e; | |
}(), cellPB.WebsiteConfig = o, a) { | |
for (j in a) { | |
o[j] = a[j]; | |
} | |
} | |
}(ns_weblib_util || (ns_weblib_util = {})), function (state) { | |
var size = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function n() { | |
return null !== _super && _super.apply(this, arguments) || this; | |
} | |
return __extends(n, _super), n.ITEM_SELECTED = "itemSelected", n; | |
}(ns_gen5_events.Event365); | |
state.ButtonBarEvent = size; | |
}(ns_webconsolelib_events || (ns_webconsolelib_events = {})), function (Models) { | |
var NestedRepresentation = ns_gen5_events.Event365; | |
var Parameter = function (_super) { | |
/** | |
* @param {?} data | |
* @return {?} | |
*/ | |
function c(data) { | |
return _super.call(this, data) || this; | |
} | |
return __extends(c, _super), c.SELECTED = "selected", c; | |
}(NestedRepresentation); | |
Models.DropDownEvent = Parameter; | |
}(ns_webconsolelib_events || (ns_webconsolelib_events = {})), function (vars) { | |
var ComponentManager = ns_gen5_util.Singleton; | |
var arr = vars.ModuleName; | |
var rand = ns_gen5_ui.SingletonModule; | |
var aggro = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function vm() { | |
} | |
return vm.Initialise = function (a) { | |
/** @type {!Object} */ | |
vm.InitObject = a; | |
}, vm.LogInternal = function () { | |
if (!vm.ActivityLimitModuleContainer) { | |
var name = rand(arr.ACTIVITY_LIMIT_MODULE); | |
vm.ActivityLimitModuleContainer = ComponentManager.getInstance(name); | |
vm.ActivityLimitModuleContainer.initObject = vm.InitObject; | |
} | |
vm.ActivityLimitModuleContainer.invoke(function (canCreateDiscussions) { | |
canCreateDiscussions.logInternal(); | |
}); | |
}, vm; | |
}(); | |
vars.ActivityLimit = aggro; | |
}(ns_webconsolelib_util || (ns_webconsolelib_util = {})), function (data) { | |
var n; | |
var argument = ns_gen5_ui.DomElement; | |
!function ($) { | |
/** | |
* @param {string} e | |
* @return {?} | |
*/ | |
function get(e) { | |
var event = value[e]; | |
return event || (event = value[e] = document.createElement(e)), event; | |
} | |
/** | |
* @param {string} type | |
* @param {string} value | |
* @param {string} params | |
* @param {string} respectCase | |
* @return {?} | |
*/ | |
function parse(type, value, params, respectCase) { | |
var el; | |
/** @type {string} */ | |
var prop = type + ":"; | |
var a = get(params || "div"); | |
var style = a.style; | |
return respectCase ? style.cssText = prop + value : style.cssText = prefixes.join(prop + value + ";") + prop + value + ";" + prop + prefixes.join(value + ";" + prop) + value + ";", el = !!style.length, style.cssText = "", el; | |
} | |
/** | |
* @return {?} | |
*/ | |
function getPageOffset() { | |
/** @type {boolean} */ | |
var supportPageOffset = void 0 !== window.pageXOffset; | |
/** @type {boolean} */ | |
var isCSS1Compat = "CSS1Compat" === (document.compatMode || ""); | |
return supportPageOffset ? window.pageYOffset : isCSS1Compat ? document.documentElement.scrollTop : document.body.scrollTop; | |
} | |
/** | |
* @return {?} | |
*/ | |
function canaryClearInterval() { | |
return that || (that = new Matrix4), that.mouseBased; | |
} | |
/** | |
* @return {?} | |
*/ | |
function canarySetInterval() { | |
return that || (that = new Matrix4), that.touchDetected; | |
} | |
/** | |
* @param {?} fn | |
* @return {undefined} | |
*/ | |
function registerPseudo(fn) { | |
if (!that) { | |
that = new Matrix4; | |
} | |
that.addDelegate(fn); | |
} | |
/** | |
* @param {string} text | |
* @return {undefined} | |
*/ | |
function u(text) { | |
if (!that) { | |
that = new Matrix4; | |
} | |
that.removeDelegate(text); | |
} | |
/** | |
* @return {?} | |
*/ | |
function fillYouTubePlayerIframe() { | |
return I ? I : I = $.widthState() >= ya.WIDTHSTATE_767 ? $.TABLET_DEVICE_PREFIX : $.MOBILE_DEVICE_PREFIX; | |
} | |
var Browser; | |
var Matrix4; | |
var that; | |
var ya; | |
var y2; | |
var I; | |
/** @type {!Array} */ | |
var prefixes = ["", "-webkit-", "-moz-", "-o-", "-ms-"]; | |
/** @type {string} */ | |
var ua = navigator.userAgent; | |
var value = {}; | |
!function (result) { | |
/** @type {string} */ | |
result.OPERA = "opera"; | |
/** @type {string} */ | |
result.CHROME = "chrome"; | |
/** @type {string} */ | |
result.SAFARI = "safari"; | |
/** @type {string} */ | |
result.FIREFOX = "firefox"; | |
/** @type {string} */ | |
result.MSIE = "msie"; | |
/** @type {string} */ | |
result.MSEDGE = "edge"; | |
/** @type {string} */ | |
result.MSEDGECHR = "edg/"; | |
/** @type {string} */ | |
result.UNKNOWN = "unknown"; | |
}(Browser = $.vendor || ($.vendor = {})); | |
$.type = function () { | |
/** @type {string} */ | |
var env = ua.toLowerCase(); | |
return -1 != (env.indexOf(Browser.OPERA) || env.indexOf("opr")) ? Browser.OPERA : -1 != env.indexOf(Browser.MSEDGE) ? Browser.MSEDGE : -1 != env.indexOf(Browser.MSEDGECHR) ? Browser.MSEDGECHR : -1 != env.indexOf(Browser.CHROME) ? Browser.CHROME : -1 != env.indexOf(Browser.SAFARI) ? Browser.SAFARI : -1 != env.indexOf(Browser.FIREFOX) ? Browser.FIREFOX : -1 != env.indexOf(Browser.MSIE) || env.indexOf("trident/") > 0 ? Browser.MSIE : Browser.UNKNOWN; | |
}(); | |
$.isMP4StreamingAvailable = function () { | |
/** @type {!Element} */ | |
var vEl = document.createElement("video"); | |
return !!vEl.canPlayType && vEl.canPlayType("video/mp4").length > 0; | |
}(); | |
$.isHLSStreamingAvailable = function () { | |
if ("undefined" == typeof MediaSource && "undefined" == typeof WebKitMediaSource) { | |
return false; | |
} | |
var fileTools = "undefined" != typeof MediaSource ? MediaSource : WebKitMediaSource; | |
return "undefined" != typeof fileTools && "function" == typeof fileTools.isTypeSupported && fileTools.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'); | |
}(); | |
/** @type {boolean} */ | |
$.hasSVG = !!("createElementNS" in document) && !!document.createElementNS("http://www.w3.org/2000/svg", "svg").createSVGRect; | |
$.hasCSSCalc = function () { | |
/** @type {!Element} */ | |
var e = document.createElement("a"); | |
/** @type {string} */ | |
var prop = "width:"; | |
return e.style.cssText = prop + prefixes.join("calc(9px);" + prop), !!e.style.length; | |
}(); | |
$.hasCSSTranslate = parse("transform", "translate(1px,1px)"); | |
/** @type {boolean} */ | |
$.hasCSSScrollbarStyling = $.type == $.vendor.CHROME || $.type == $.vendor.SAFARI || $.type == $.vendor.OPERA; | |
/** @type {function(): ?} */ | |
$.getScrollY = getPageOffset; | |
$.getPrefixedStyleName = function () { | |
var s = (new argument).getElement().style; | |
var colorNamesInverted = {}; | |
return function (v2) { | |
var i; | |
var predictedActions; | |
var j; | |
var k; | |
var theCol = colorNamesInverted[v2]; | |
if (theCol) { | |
return theCol; | |
} | |
/** @type {number} */ | |
i = 0; | |
/** @type {!Array} */ | |
predictedActions = prefixes; | |
for (; i < predictedActions.length; i++) { | |
if (j = predictedActions[i], k = j + (v2 || ""), "" === s[k]) { | |
return colorNamesInverted[v2] = k, k; | |
} | |
} | |
return null; | |
}; | |
}(); | |
$.notification = function () { | |
return "serviceWorker" in navigator && "PushManager" in window && "Notification" in window && ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification") && PushSubscription.prototype.hasOwnProperty("getKey"); | |
}(); | |
Matrix4 = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function setup() { | |
var dde = this; | |
/** @type {!Array} */ | |
this.delegateList = []; | |
/** @type {boolean} */ | |
this.mouseBased = false; | |
/** @type {boolean} */ | |
this.suppressMouse = false; | |
/** @type {boolean} */ | |
this.touchDetected = false; | |
/** | |
* @return {undefined} | |
*/ | |
this.touchStartHandler = function () { | |
var k; | |
var t; | |
var phase; | |
if (dde.touchDetected = true, dde.suppressMouse = true, dde.mouseBased) { | |
/** @type {boolean} */ | |
dde.mouseBased = false; | |
/** @type {number} */ | |
k = 0; | |
t = dde.delegateList; | |
for (; k < t.length; k++) { | |
phase = t[k]; | |
phase.mouseModeDisabled(); | |
} | |
} | |
}; | |
/** | |
* @return {?} | |
*/ | |
this.mouseMoveHandler = function () { | |
var k; | |
var t; | |
var phase; | |
if (dde.mouseBased || dde.suppressMouse) { | |
return void (dde.suppressMouse = false); | |
} | |
/** @type {boolean} */ | |
dde.touchDetected = false; | |
/** @type {boolean} */ | |
dde.mouseBased = true; | |
/** @type {number} */ | |
k = 0; | |
t = dde.delegateList; | |
for (; k < t.length; k++) { | |
phase = t[k]; | |
phase.mouseModeEnabled(); | |
} | |
}; | |
this.touchDetected = this.suppressMouse = this.isTouchAvailable(); | |
/** @type {boolean} */ | |
this.mouseBased = !this.suppressMouse; | |
document.body.addEventListener("mousemove", this.mouseMoveHandler); | |
document.body.addEventListener("touchstart", this.touchStartHandler); | |
} | |
return setup.prototype.addDelegate = function (callback) { | |
this.delegateList.push(callback); | |
}, setup.prototype.removeDelegate = function (type) { | |
var n = this.delegateList.indexOf(type); | |
this.delegateList.splice(n, 1); | |
}, setup.prototype.isTouchAvailable = function () { | |
if ("PointerEvent" in window && "maxTouchPoints" in navigator) { | |
if (navigator.maxTouchPoints > 0) { | |
return true; | |
} | |
} else { | |
if (window.matchMedia && window.matchMedia("(any-pointer:coarse)").matches) { | |
return true; | |
} | |
if ("TouchEvent" in window || "ontouchstart" in window) { | |
return true; | |
} | |
} | |
return false; | |
}, setup; | |
}(); | |
/** @type {function(): ?} */ | |
$.mouseMode = canaryClearInterval; | |
/** @type {function(): ?} */ | |
$.touchDetected = canarySetInterval; | |
/** @type {function(?): undefined} */ | |
$.addMouseModeDelegate = registerPseudo; | |
/** @type {function(string): undefined} */ | |
$.removeMouseModeDelegate = u; | |
/** @type {null} */ | |
value = null; | |
(function (canCreateDiscussions) { | |
/** @type {string} */ | |
canCreateDiscussions[canCreateDiscussions.WIDTHSTATE_300 = 300] = "WIDTHSTATE_300"; | |
/** @type {string} */ | |
canCreateDiscussions[canCreateDiscussions.WIDTHSTATE_380 = 380] = "WIDTHSTATE_380"; | |
/** @type {string} */ | |
canCreateDiscussions[canCreateDiscussions.WIDTHSTATE_550 = 550] = "WIDTHSTATE_550"; | |
/** @type {string} */ | |
canCreateDiscussions[canCreateDiscussions.WIDTHSTATE_650 = 650] = "WIDTHSTATE_650"; | |
/** @type {string} */ | |
canCreateDiscussions[canCreateDiscussions.WIDTHSTATE_767 = 767] = "WIDTHSTATE_767"; | |
/** @type {string} */ | |
canCreateDiscussions[canCreateDiscussions.WIDTHSTATE_768 = 768] = "WIDTHSTATE_768"; | |
/** @type {string} */ | |
canCreateDiscussions[canCreateDiscussions.WIDTHSTATE_950 = 950] = "WIDTHSTATE_950"; | |
/** @type {string} */ | |
canCreateDiscussions[canCreateDiscussions.WIDTHSTATE_1200 = 1200] = "WIDTHSTATE_1200"; | |
/** @type {string} */ | |
canCreateDiscussions[canCreateDiscussions.WIDTHSTATE_1328 = 1328] = "WIDTHSTATE_1328"; | |
})(ya = $.WidthStateEnum || ($.WidthStateEnum = {})); | |
/** @type {string} */ | |
$.MOBILE_DEVICE_PREFIX = "M"; | |
/** @type {string} */ | |
$.TABLET_DEVICE_PREFIX = "T"; | |
/** | |
* @return {?} | |
*/ | |
$.widthState = function () { | |
var e; | |
return e = y2 <= ya.WIDTHSTATE_300 ? ya.WIDTHSTATE_300 : y2 <= ya.WIDTHSTATE_380 ? ya.WIDTHSTATE_380 : y2 <= ya.WIDTHSTATE_550 ? ya.WIDTHSTATE_550 : y2 <= ya.WIDTHSTATE_650 ? ya.WIDTHSTATE_650 : y2 <= ya.WIDTHSTATE_767 ? ya.WIDTHSTATE_767 : y2 <= ya.WIDTHSTATE_768 ? ya.WIDTHSTATE_768 : y2 <= ya.WIDTHSTATE_950 ? ya.WIDTHSTATE_950 : y2 <= ya.WIDTHSTATE_1200 ? ya.WIDTHSTATE_1200 : ya.WIDTHSTATE_1328; | |
}; | |
/** @type {function(): ?} */ | |
$.getDeviceStylePrefix = fillYouTubePlayerIframe; | |
if (document && document.body) { | |
/** @type {number} */ | |
y2 = document.body.getBoundingClientRect().width; | |
ns_gen5_data.SubscriptionManager.DevicePrefix = fillYouTubePlayerIframe(); | |
} | |
}(n = data.Browser || (data.Browser = {})); | |
}(ns_webconsolelib_util || (ns_webconsolelib_util = {})), function (state) { | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function p() { | |
} | |
return p.Register = function (server) { | |
/** @type {!Object} */ | |
this.Object = server; | |
}, p.LoadFunds = function (gid, image, isBgroundImg, stgs, index, callback, whyLabel, fn, macro_context) { | |
var threeToolkit = this; | |
this.FunctionQueue.push({ | |
func: function () { | |
return threeToolkit.Object.LoadFunds(gid, image, isBgroundImg, stgs, index, callback, whyLabel); | |
}, | |
callBack: fn, | |
dismissCallBack: macro_context | |
}); | |
this.StartExecution(); | |
}, p.StartExecution = function () { | |
if (!this.IsRunning && this.FunctionQueue.length > 0 && this.Object) { | |
/** @type {boolean} */ | |
this.IsRunning = true; | |
var item = this.FunctionQueue.shift(); | |
this.CurrentCallBack = item.callBack; | |
this.DismissCallBack = item.dismissCallBack; | |
item.func(); | |
} | |
}, p.FinishedExecution = function (canCreateDiscussions) { | |
/** @type {boolean} */ | |
this.IsRunning = false; | |
if (canCreateDiscussions && this.CurrentCallBack) { | |
this.CurrentCallBack(); | |
} else { | |
if (this.DismissCallBack) { | |
this.DismissCallBack(); | |
} | |
} | |
this.StartExecution(); | |
}, p.IsRunning = false, p.FunctionQueue = [], p; | |
}(); | |
state.SitePreReqsProxy = size; | |
}(ns_webconsolelib_util || (ns_webconsolelib_util = {})), function (state) { | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function header() { | |
} | |
return header.nGeneraProductArea = "", header; | |
}(); | |
state.WebConsoleGlobals = size; | |
}(ns_webconsolelib_util || (ns_webconsolelib_util = {})), function (state) { | |
/** | |
* @param {number} x | |
* @return {?} | |
*/ | |
function isArray(x) { | |
/** @type {number} */ | |
var l = x / 60 * d; | |
return l > d && (l = d), l; | |
} | |
/** | |
* @param {!Object} target | |
* @param {number} duration | |
* @param {!Function} frameHandler | |
* @return {undefined} | |
*/ | |
function animate(target, duration, frameHandler) { | |
/** @type {string} */ | |
target.style.transitionDuration = duration + "s"; | |
/** @type {string} */ | |
target.style.overflow = "hidden"; | |
clearTimeout(target.__ClosableContainerUtils_timeout__); | |
/** @type {number} */ | |
target.__ClosableContainerUtils_timeout__ = setTimeout(function () { | |
/** @type {string} */ | |
target.style.maxHeight = ""; | |
/** @type {string} */ | |
target.style.transitionDuration = ""; | |
/** @type {string} */ | |
target.style.overflow = ""; | |
if (frameHandler) { | |
frameHandler(); | |
} | |
}, 1e3 * duration); | |
} | |
/** @type {number} */ | |
var d = .45; | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function e() { | |
} | |
return e.TweenHeightOpen = function (chart, data) { | |
var elem; | |
var height; | |
chart.unsuspendElementFromDom(); | |
chart.validateNow(); | |
elem = chart.getElement(); | |
height = elem.offsetHeight || elem.scrollHeight; | |
/** @type {string} */ | |
elem.style.maxHeight = "0px"; | |
elem.offsetHeight; | |
/** @type {string} */ | |
elem.style.maxHeight = height + "px"; | |
animate(elem, data && data.tweenDuration || isArray(height), data && data.callback || null); | |
}, e.TweenHeightClosed = function (datasource, data) { | |
var elem = datasource.getElement(); | |
var height = elem.offsetHeight || elem.scrollHeight; | |
/** @type {string} */ | |
elem.style.maxHeight = height + "px"; | |
elem.offsetHeight; | |
/** @type {string} */ | |
elem.style.maxHeight = "0px"; | |
animate(elem, data && data.tweenDuration || isArray(height), function () { | |
datasource.suspendElementFromDom(); | |
if (data && data.callback) { | |
data.callback(); | |
} | |
}); | |
}, e; | |
}(); | |
state.ClosableContainerUtils = size; | |
}(ns_webconsolelib_util || (ns_webconsolelib_util = {})), function (pool) { | |
var n; | |
!function (previous) { | |
/** @type {string} */ | |
previous[previous.Low = 1] = "Low"; | |
/** @type {string} */ | |
previous[previous.Normal = 2] = "Normal"; | |
/** @type {string} */ | |
previous[previous.High = 3] = "High"; | |
/** @type {string} */ | |
previous[previous.Urgent = 4] = "Urgent"; | |
}(n = pool.Priority || (pool.Priority = {})); | |
}(ns_webconsolelib_util || (ns_webconsolelib_util = {})), function (HTMLSectionBuilder) { | |
var state = ns_gen5_ui.Application; | |
var u_parent = ns_gen5_ui.Component; | |
var EventDispatcher = ns_gen5_events.EventDispatcher; | |
var WSocketEvent = ns_gen5_events.ModalEvent; | |
var HTMLSection = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function test() { | |
return null !== _super && _super.apply(this, arguments) || this; | |
} | |
return __extends(test, _super), test.AddModal = function (unit, priority) { | |
if (!this.Instance) { | |
this.Instance = new test; | |
} | |
if (!this.Root) { | |
this.Root = state.currentApplication; | |
} | |
if (!priority) { | |
priority = HTMLSectionBuilder.Priority.Normal; | |
} | |
if (this.DisplayingModal) { | |
if (priority > this.DisplayingModal.priority) { | |
this.ModalQueue.push(this.DisplayingModal); | |
this.ModalQueue.push({ | |
modalComponent: unit, | |
priority: priority | |
}); | |
this.RemoveModal(this.DisplayingModal.modalComponent); | |
} else { | |
this.ModalQueue.push({ | |
modalComponent: unit, | |
priority: priority | |
}); | |
} | |
} else { | |
this.DisplayingModal = { | |
modalComponent: unit, | |
priority: priority | |
}; | |
this.ShowDarkWash(); | |
this.Root.appendChild(unit); | |
} | |
this.Instance.dispatchEvent(new WSocketEvent(WSocketEvent.MODAL_CHANGE, true)); | |
}, test.RemoveModal = function (p) { | |
if (this.DisplayingModal = null, this.DarkWash.suspendElementFromDom(), this.Root.removeChild(p), this.ModalQueue.length > 0) { | |
this.ModalQueue.sort(function (firstListenerDetails, secondListenerDetails) { | |
return secondListenerDetails.priority - firstListenerDetails.priority; | |
}); | |
var MyService = test.ModalQueue.splice(0, 1)[0]; | |
test.AddModal(MyService.modalComponent, MyService.priority); | |
} else { | |
this.Instance.dispatchEvent(new WSocketEvent(WSocketEvent.MODAL_CHANGE, false)); | |
} | |
}, test.Contains = function (value) { | |
if (this.DisplayingModal && this.DisplayingModal.modalComponent == value) { | |
return true; | |
} | |
if (this.ModalQueue && this.ModalQueue.length > 0) { | |
/** @type {number} */ | |
var layer_i = 0; | |
for (; layer_i < this.ModalQueue.length; layer_i++) { | |
if (this.ModalQueue[layer_i].modalComponent == value) { | |
return true; | |
} | |
} | |
} | |
return false; | |
}, test.ShowDarkWash = function () { | |
if (this.DarkWash) { | |
this.DarkWash.unsuspendElementFromDom(); | |
} else { | |
this.DarkWash = new u_parent; | |
this.DarkWash.addStyle("wcl-ModalManager_DarkWash"); | |
this.Root.appendChild(this.DarkWash); | |
} | |
}, test.prototype.isDisplayingModal = function () { | |
return !!test.DisplayingModal; | |
}, test.ModalQueue = [], test; | |
}(EventDispatcher); | |
HTMLSectionBuilder.ModalManager = HTMLSection; | |
}(ns_webconsolelib_util || (ns_webconsolelib_util = {})), function (Models) { | |
var n; | |
!function (n) { | |
ns_gen5_ui.MediaTypeIdLookup = {}; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.BETSLIP] = 1; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.INPLAY_LAUNCHER_POD_MODULE] = 2; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.BETTING_BANNERS_MODULE] = 4; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.HIGHLIGHTS_ADDITIONAL_MODULE] = 5; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.HIGHLIGHTS_MAIN_MODULE] = 7; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.INPLAY_MODULE] = 1; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.ODDS_ON_COUPON_MODULE] = 9; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.HEADER_MODULE] = 10; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.HEADER_LOCALE_MODULE] = 10; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.INSTANT_GAMES_MODULE] = 11; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.RACING_SEARCH] = 12; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.IMAGE_BANNERS_MODULE] = 13; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.FOOTER_MODULE] = 14; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.INPLAY_SCHEDULE_MODULE] = 15; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.AUDIO_PLAYER] = 18; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.LIVE_VIEW] = 18; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.COUPON_MODULE] = 13; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.VIRTUAL_RACING_MODULE] = 13; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.RACING_COUPON_MODULE] = 13; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.LOTTO_MODULE] = 20; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MULTI_MAKER_MODULE] = 20; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.POD_LOADER_MODULE] = 21; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.POD_LOADER_LOCALE_MODULE] = 21; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.AUS_RACE_RIBBONS_MODULE] = 22; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.TOP_COUPONS_MODULE] = 24; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.WEB_NAV_MODULE] = 26; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.INFO_BANNERS_MODULE] = 28; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.AUS_RACING_MODULE] = 29; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.RACING_SPLASH_MODULE] = 121; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.SPLASH_MODULE] = 121; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.SPLASH_LOTTO_MODULE] = 121; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.STABLES_MODULE] = 13; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.RUNNERS_MODULE] = 17; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.SITE_SEARCH_MODULE] = 22; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.STYLING_FEATURED_FIXTURE_MODULE] = 16; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.BET_BUILDER_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.GEN5BASE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.WEBCONSOLELIB] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.WEB_CONSOLE_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.WEB_CONSOLE_LOCALE_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.APP_CONSOLE_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MY_BETS_LHS_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MY_BETS_RHS_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MY_BETS_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MY_BETS_BOOT_LEGACY_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.IMPORTANT_ANNOUNCEMENT_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.OFFERS_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.OPEN_OFFERS_LHS_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.PROMO_BANNERS_LHS_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.QUICKBET_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MY_BETS_BOOT_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MATCHLIVE_LIB] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MATCHLIVE_AUSSIE_RULES_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MATCHLIVE_AMERICAN_FOOTBALL_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MATCHLIVE_BASEBALL_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MATCHLIVE_BASKETBALL_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MATCHLIVE_CRICKET_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MATCHLIVE_DARTS_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MATCHLIVE_HANDBALL_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MATCHLIVE_HORSE_RACING_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MATCHLIVE_ICE_HOCKEY_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MATCHLIVE_GOLF_HOCKEY_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MATCHLIVE_RUGBY_LEAGUE_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MATCHLIVE_RUGBY_UNION_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MATCHLIVE_SOCCER_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MATCHLIVE_TENNIS_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MATCHLIVE_VOLLEYBALL_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MATCHLIVE_WATER_POLO_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.HLS_STREAMING_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.EDITBET_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.EDIT_BET_ADVERT_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.BETCALL_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MP4_STREAMING_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.RACING_ARCHIVE_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MEPG_DASH_STREAMING_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.INPLAY_LEAGUE_TABLE_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.STUDIO_STREAMING_POD_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.UPCOMING_FIXTURES_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MINIMATCHLIVE_OVERVIEW_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MINIMATCHLIVE_SOCCER_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MINIMATCHLIVE_CRICKET_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.BET_CALCULATIONS_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MINIMATCHLIVE_RUGBYUNION_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MINIMATCHLIVE_WATERPOLO_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MINIMATCHLIVE_RUGBYLEAGUE_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MINIMATCHLIVE_HANDBALL_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MINIMATCHLIVE_ICEHOCKEY_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MINIMATCHLIVE_AMERICANFOOTBALL_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MINIMATCHLIVE_AUSSIERULES_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MINIMATCHLIVE_BASKETBALL_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MINIMATCHLIVE_BASEBALL_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MINIMATCHLIVE_DARTS_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MINIMATCHLIVE_GOLF_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MINIMATCHLIVE_HORSERACING_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.GEOCOMPLY_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.OVERVIEW_DATA_PROCESSOR_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.IN_PLAY_MY_BETS_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.STYLING_RB_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.STYLING_RB_AMERICAN_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.STYLING_RC_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.STYLING_MARKET_CORRECT_SCORE_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.STYLING_SCORECAST_UI_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.STYLING_SETCAST_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.STYLING_SOCCER_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.STYLING_OFFER_BADGES_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.STYLING_PREMATCH_LEAGUE_TABLE_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.STYLING_GAME_LINES_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.SPLASH_MYTEAMS_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.EXTRA_PLAYER_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.FLASH_STREAMING_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.PREMATCH_STATS_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MATCH_ALERTS_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MY_ALERTS_HEADER_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.PUSH_NOTIFICATIONS_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.TOURNAMENT_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.KNOCKOUT_TREE_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.BETSLIP_MATCH_ALERTS_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.SCORECAST_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.SWEDISH_HEADER_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.ITALIAN_HEADER_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.ACTIVITY_LIMIT_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.PUSH_MESSAGE_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MEDIA_PREFERENCES_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.SITE_SEARCH_ASSETS_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.LOGIN_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.OFFER_BADGE_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.USA_HEADER_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.PERFMON_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.DK_HEADER_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.IPPG_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.APP_API_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.APPLE_PAY_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.GOOGLE_PAY_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.BIOMETRIC_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.PASSCODE_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.MEMBER_MENU_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.PERFMON_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.BETSLIP_LOADER_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.BETSLIP_STANDARD_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.BETSLIP_BANKER_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.BETSLIP_TEASER_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.BETSLIP_IF_BET_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.BETSLIP_REVERSE_IF_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.BETSLIP_CAST_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.BETSLIP_FOREIGN_POOLS_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.BETSLIP_UK_TOTE_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.BETSLIP_US_TOTE_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.BETSLIP_E_TOTE_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.BETSLIP_AUS_RACING_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.BETSLIP_BETCALL_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.BETSLIP_COLOSSUS_MODULE] = 0; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.IN_PLAY_EVENT_VIEW_MODULE] = 1; | |
/** @type {number} */ | |
ns_gen5_ui.MediaTypeIdLookup[Models.ModuleName.IN_PLAY_NAVIGATION_MODULE] = 1; | |
n.MediaTypeIdOverride = {}; | |
n.MediaTypeIdOverride.homeController = { | |
currentMediaTypeId: 3, | |
mediaTypeIdOverride: 7 | |
}; | |
n.MediaTypeIdOverride.homeControllerSecondColumn = { | |
currentMediaTypeId: 5, | |
mediaTypeIdOverride: 8 | |
}; | |
n.MediaTypeIdOverride.rightColumnController = { | |
currentMediaTypeId: 2, | |
mediaTypeIdOverride: 3 | |
}; | |
}(n = Models.MediaType || (Models.MediaType = {})); | |
}(ns_webconsolelib_util || (ns_webconsolelib_util = {})), function (state) { | |
var size = function (Base) { | |
/** | |
* @param {?} n | |
* @param {?} fn | |
* @return {?} | |
*/ | |
function n(n, fn) { | |
var $ = Base.call(this, n) || this; | |
return $.stem = fn, $; | |
} | |
return __extends(n, Base), n.STEM_DATA = "stem_data", n; | |
}(ns_gen5_events.Event365); | |
state.PageHeaderDataEvent = size; | |
}(ns_webconsolelib_util || (ns_webconsolelib_util = {})), function (vars) { | |
var ComponentManager = ns_gen5_util.Singleton; | |
var data = vars.ModuleName; | |
var unescape = ns_gen5_ui.SingletonModule; | |
var aggro = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function vm() { | |
} | |
return vm.Initialise = function (b) { | |
if (!vm.PushMessageModuleContainer) { | |
var name = unescape(data.PUSH_MESSAGE_MODULE); | |
vm.PushMessageModuleContainer = ComponentManager.getInstance(name); | |
} | |
vm.PushMessageModuleContainer.invoke(function (report) { | |
vm.PushMessageController = report.getController(); | |
b(); | |
}); | |
}, vm.GetPushMessageController = function () { | |
return vm.PushMessageController; | |
}, vm.AddFunctionToMessageQueue = function (n) { | |
vm.Initialise(function () { | |
vm.PushMessageModuleContainer.invoke(function (intersectionArray) { | |
intersectionArray.addFunctionToMessageQueue(n); | |
}); | |
}); | |
}, vm.RemoveExternalOverlay = function (n) { | |
vm.PushMessageModuleContainer.invoke(function (intersectionArray) { | |
intersectionArray.removeExternalOverlay(n); | |
}); | |
}, vm.AddUserNotificationsPopup = function (conditional, t, n) { | |
vm.Initialise(function () { | |
vm.PushMessageModuleContainer.invoke(function (e) { | |
e.addUserNotificationsPopup(conditional, t, n); | |
}); | |
}); | |
}, vm.AddUserPopups = function (conditional, t, a, b, f, arr, getMaterial) { | |
vm.Initialise(function () { | |
vm.PushMessageModuleContainer.invoke(function (e) { | |
e.addUserPopups(conditional, t, a, b, f, arr, getMaterial); | |
}); | |
}); | |
}, vm; | |
}(); | |
vars.PushMessage = aggro; | |
}(ns_webconsolelib_util || (ns_webconsolelib_util = {})), function (ns) { | |
var BaseRouter = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function e() { | |
} | |
return e.RegisterHeaderModule = function (innerException) { | |
/** @type {!AudioNode} */ | |
e.HeaderModule = innerException; | |
}, e.UnRegisterHeaderModule = function () { | |
/** @type {null} */ | |
e.HeaderModule = null; | |
}, e.RemeasureHeaderHeight = function () { | |
Locator.validationManager.callPostValidation(function () { | |
if (e.HeaderModule) { | |
e.HeaderModule.remeasureHeight(); | |
e.HeaderHeightChanged(); | |
} | |
}); | |
}, e.RegisterDelegate = function (n, tab) { | |
n.fullHeaderHeight = tab; | |
e.HeaderInterestedDelegates.push(n); | |
if (e.HeaderModule) { | |
Locator.validationManager.callPostValidation(function () { | |
if (n.fullHeaderHeight) { | |
e.HeaderModule.getHeaderHeight(function (srcRegister) { | |
n.headerHeightChanged(srcRegister); | |
}); | |
} else { | |
e.HeaderModule.getRegulatoryHeaderHeight(function (t) { | |
/** @type {number} */ | |
e.RegulatoryHeaderHeight = t; | |
n.headerHeightChanged(t); | |
}); | |
} | |
}); | |
} | |
}, e.UnregisterDelegate = function (id) { | |
/** @type {number} */ | |
var oldPos = e.HeaderInterestedDelegates.indexOf(id); | |
if (oldPos > -1) { | |
e.HeaderInterestedDelegates.splice(oldPos, 1); | |
} | |
}, e.HeaderHeightChanged = function () { | |
var n = this; | |
if (!this.RemeasurePending) { | |
/** @type {boolean} */ | |
this.RemeasurePending = true; | |
Locator.validationManager.callPostValidation(function () { | |
var animateScroll; | |
var i; | |
var items; | |
var callback; | |
if (!e.HeaderModule) { | |
return void (n.RemeasurePending = false); | |
} | |
e.HeaderModule.getRegulatoryHeaderHeight(function (innerException) { | |
/** @type {number} */ | |
e.RegulatoryHeaderHeight = innerException; | |
}); | |
/** | |
* @param {!Object} tx | |
* @return {undefined} | |
*/ | |
animateScroll = function (tx) { | |
if (tx.fullHeaderHeight) { | |
e.HeaderModule.getHeaderHeight(function (e) { | |
tx.headerHeightChanged(e); | |
}); | |
} else { | |
e.HeaderModule.getRegulatoryHeaderHeight(function (e) { | |
tx.headerHeightChanged(e); | |
}); | |
} | |
}; | |
/** @type {number} */ | |
i = 0; | |
/** @type {!Array} */ | |
items = e.HeaderInterestedDelegates; | |
for (; i < items.length; i++) { | |
callback = items[i]; | |
animateScroll(callback); | |
} | |
/** @type {boolean} */ | |
n.RemeasurePending = false; | |
}); | |
} | |
}, e.HideHeader = function () { | |
}, e.ShowHeader = function () { | |
}, e.AddHeaderAnimation = function () { | |
var k; | |
var t; | |
var phase; | |
/** @type {number} */ | |
k = 0; | |
/** @type {!Array} */ | |
t = e.HeaderInterestedDelegates; | |
for (; k < t.length; k++) { | |
phase = t[k]; | |
if (phase.headerControllerAddHeaderAnimation) { | |
phase.headerControllerAddHeaderAnimation(); | |
} | |
} | |
}, e.RemoveHeaderAnimation = function () { | |
var k; | |
var t; | |
var phase; | |
/** @type {number} */ | |
k = 0; | |
/** @type {!Array} */ | |
t = e.HeaderInterestedDelegates; | |
for (; k < t.length; k++) { | |
phase = t[k]; | |
if (phase.headerControllerRemoveHeaderAnimation) { | |
phase.headerControllerRemoveHeaderAnimation(); | |
} | |
} | |
}, e.HeaderInterestedDelegates = [], e.RegulatoryHeaderHeight = 0, e.LoginShowing = false, e; | |
}(); | |
ns.HeaderController = BaseRouter; | |
}(ns_webconsolelib_util || (ns_webconsolelib_util = {})), function (vars) { | |
vars.PerfMonContainer = ns_gen5_ui.SingletonModule(vars.ModuleName.PERFMON_MODULE); | |
}(ns_webconsolelib_util || (ns_webconsolelib_util = {})), function (state) { | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function Map() { | |
/** @type {null} */ | |
this.teamID = null; | |
/** @type {null} */ | |
this.betRadarID = null; | |
/** @type {null} */ | |
this.teamName = null; | |
/** @type {null} */ | |
this.kitID = null; | |
/** @type {null} */ | |
this.kitColours = null; | |
} | |
return Map.FromString = function (string) { | |
var n = string.split("~"); | |
return { | |
teamID: n[0], | |
betRadarID: n[1], | |
teamName: n[2], | |
kitID: n[3], | |
kitColours: n[4] | |
}; | |
}, Map.prototype.toString = function () { | |
return this.teamID + "~" + this.teamName + "~" + this.kitID + "~" + this.kitColours; | |
}, Map; | |
}(); | |
state.MyTeamsData = size; | |
}(ns_webconsolelib_util || (ns_webconsolelib_util = {})), function (vars) { | |
var infer = ns_gen5_util.Singleton; | |
var data = vars.ModuleName; | |
var unescape = ns_gen5_ui.SingletonModule; | |
var aggro = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function exports() { | |
} | |
return exports.Initialise = function (parse) { | |
if (this.ModuleLoaded) { | |
parse(); | |
} else { | |
var base = unescape(data.MEDIA_PREFERENCES_MODULE); | |
exports.MediaPreferencesModuleContainer = infer.getInstance(base); | |
exports.MediaPreferencesModuleContainer.invoke(function (n) { | |
/** @type {boolean} */ | |
exports.ModuleLoaded = true; | |
exports.Manager = n.getMediaPreferenceManager(); | |
parse(); | |
}); | |
} | |
}, exports.ModuleLoaded = false, exports; | |
}(); | |
vars.MediaPreferences = aggro; | |
}(ns_webconsolelib_util || (ns_webconsolelib_util = {})), function (Models) { | |
var NestedRepresentation = ns_gen5_events.Event365; | |
var Parameter = function (_super) { | |
/** | |
* @param {?} name | |
* @param {!Object} value | |
* @return {?} | |
*/ | |
function n(name, value) { | |
var elem = _super.call(this, name) || this; | |
return elem.data = value, elem; | |
} | |
return __extends(n, _super), n.RHS_EXPANDED_CHANGED = "RHS_EXPANDED_CHANGED", n.RHS_EXPANDED_CHANGED_END = "RHS_EXPANDED_CHANGED_END", n.RHS_EXPAND_BY_CLICK = "RHS_EXPAND_BY_CLICK", n.LHS_EXPANDED_CHANGED = "LHS_EXPANDED_CHANGED", n.LHS_EXPAND_STARTED = "LHS_EXPAND_STARTED", n.LHS_COLLAPSE_HALF_STARTED = "LHS_COLLAPSE_HALF_STARTED", n.RHS_EXPAND_DISABLED_CHANGED = "RHS_EXPAND_DISABLED_CHANGED", n.LHS_COLLAPSE_MS = 650, n; | |
}(NestedRepresentation); | |
Models.LayoutEvent = Parameter; | |
}(ns_webconsolelib_events || (ns_webconsolelib_events = {})), function (Backbone) { | |
var EventDispatcher = ns_gen5_events.EventDispatcher; | |
var IOBoardEvent = ns_webconsolelib_events.LayoutEvent; | |
var LayoutManager = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function n() { | |
var n = null !== _super && _super.apply(this, arguments) || this; | |
return n.rhsIsExpanded = null, n.rhsIsStretchy = null, n.lhsIsExpanded = null, n.rhsIsExpandDisabled = false, n.rhsRecentlyExpanded = false, n; | |
} | |
return __extends(n, _super), n.prototype.getLHSIsExpanded = function () { | |
return this.lhsIsExpanded; | |
}, n.prototype.setLHSIsExpanded = function (lmbda, n) { | |
if (void 0 === n) { | |
/** @type {boolean} */ | |
n = false; | |
} | |
/** @type {!AudioNode} */ | |
this.lhsIsExpanded = lmbda; | |
this.dispatchEvent(new IOBoardEvent(IOBoardEvent.LHS_EXPANDED_CHANGED, { | |
lhsIsExpanded: lmbda, | |
isClick: n | |
})); | |
}, n.prototype.getRHSIsExpanded = function () { | |
return this.rhsIsExpanded; | |
}, n.prototype.setRHSIsExpanded = function (chunk, n) { | |
return void 0 === n && (n = false), this.setRHSRecentlyExpanded(chunk !== this.rhsIsExpanded), this.rhsRecentlyExpanded && (this.rhsIsExpanded = chunk, chunk && n ? this.dispatchEvent(new IOBoardEvent(IOBoardEvent.RHS_EXPAND_BY_CLICK)) : this.dispatchEvent(new IOBoardEvent(IOBoardEvent.RHS_EXPANDED_CHANGED, { | |
rhsIsExpanded: chunk, | |
isClick: n | |
}))), this.rhsRecentlyExpanded; | |
}, n.prototype.getRHSIsStretchy = function () { | |
return this.rhsIsStretchy; | |
}, n.prototype.setRHSIsStretchy = function (newValue) { | |
/** @type {string} */ | |
this.rhsIsStretchy = newValue; | |
}, n.prototype.getRHSIsExpandDisabled = function () { | |
return this.rhsIsExpandDisabled; | |
}, n.prototype.setRHSIsExpandDisabled = function (hackerspace) { | |
/** @type {boolean} */ | |
this.rhsIsExpandDisabled = hackerspace; | |
this.dispatchEvent(new IOBoardEvent(IOBoardEvent.RHS_EXPAND_DISABLED_CHANGED, { | |
rhsIsExpandDisabled: hackerspace | |
})); | |
}, n.prototype.setRHSRecentlyExpanded = function (canCreateDiscussions) { | |
var n = this; | |
if (canCreateDiscussions) { | |
/** @type {boolean} */ | |
this.rhsRecentlyExpanded = canCreateDiscussions; | |
Locator.validationManager.callNewContext(function () { | |
/** @type {boolean} */ | |
n.rhsRecentlyExpanded = false; | |
}); | |
} | |
}, n.prototype.getRHSRecentlyExpanded = function () { | |
return this.rhsRecentlyExpanded; | |
}, n; | |
}(EventDispatcher); | |
Backbone.LayoutManager = LayoutManager; | |
}(ns_webconsolelib_util || (ns_webconsolelib_util = {})), function (HTMLSectionBuilder) { | |
var n = ns_weblib_util.WebsiteConfig; | |
var MathUtil = ns_gen5_util.MathUtil; | |
var HTMLSection = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function model() { | |
} | |
return model.ValidateCurrentHash = function (element) { | |
var i; | |
/** @type {string} */ | |
var found = element; | |
var content = found.indexOf(model.VIRTUALS) > -1 ? n.SITE_EXCLUDED_VIRTUALS : n.SITE_EXCLUDED_SPORTS; | |
return content ? (i = model.GetClassificationFromHash(), i && -1 !== content.indexOf(MathUtil.StringToInteger(i)) && (found = "#HO#"), found) : found; | |
}, model.GetClassificationFromHash = function () { | |
var i; | |
/** @type {string} */ | |
var key = location.hash; | |
/** @type {string} */ | |
var name = ""; | |
/** @type {!Array<string>} */ | |
var names = key.split("/"); | |
/** @type {number} */ | |
i = 0; | |
for (; i < names.length; i++) { | |
if (names[i].charAt(0) === model.CLASSIFICATION_ID_QUERY_CHAR) { | |
/** @type {string} */ | |
name = names[i]; | |
break; | |
} | |
} | |
return name.replace(/\D/g, ""); | |
}, model.GetPageDataFromHash = function () { | |
var j; | |
/** @type {string} */ | |
var i = location.hash; | |
/** @type {number} */ | |
var width = i.indexOf(model.KEEP_CHAR); | |
return i = -1 != width ? i.slice(1, width) : i.slice(1), j = i.indexOf(model.QUERYSTRING_CHAR), -1 != j && (i = i.slice(0, j)), model.ValidateCurrentHash(i); | |
}, model.GetFormattedPageDataFromHash = function () { | |
return model.GetPageDataFromHash().replace(/\//g, "#"); | |
}, model.KEEP_CHAR = "@", model.QUERYSTRING_CHAR = "?", model.CLASSIFICATION_ID_QUERY_CHAR = "B", model.VIRTUALS = "AVR", model; | |
}(); | |
HTMLSectionBuilder.HashParser = HTMLSection; | |
}(ns_webconsolelib_util || (ns_webconsolelib_util = {})), function (canCreateDiscussions) { | |
}(ns_webconsolelib_pages_interface || (ns_webconsolelib_pages_interface = {})), function (my) { | |
var instruct_test = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function e() { | |
} | |
return e; | |
}(); | |
my.PageElement = instruct_test; | |
}(ns_webconsolelib_pages || (ns_webconsolelib_pages = {})), function (canCreateDiscussions) { | |
var n; | |
!function (canCreateDiscussions) { | |
canCreateDiscussions.LoadedElementsLookup = {}; | |
}(n = canCreateDiscussions.PageState || (canCreateDiscussions.PageState = {})); | |
}(ns_webconsolelib_pages_util || (ns_webconsolelib_pages_util = {})), function (canCreateDiscussions) { | |
var n; | |
var message = ns_webconsolelib_util.ModuleName; | |
!function ($scope) { | |
/** | |
* @param {string} index | |
* @return {?} | |
*/ | |
function n(index) { | |
return obj[index]; | |
} | |
/** @type {string} */ | |
$scope.NAVIGATION = "navigation"; | |
/** @type {string} */ | |
$scope.SPLASH = "splash"; | |
/** @type {string} */ | |
$scope.SPLASH_LOTTO = "splashLotto"; | |
/** @type {string} */ | |
$scope.RACING_SPLASH = "racingSplash"; | |
/** @type {string} */ | |
$scope.COUPON = "coupon"; | |
/** @type {string} */ | |
$scope.ODDS_ON_COUPON = "oddsOnCoupon"; | |
/** @type {string} */ | |
$scope.RACE_COUPON = "raceCoupon"; | |
/** @type {string} */ | |
$scope.VIRTUAL_RACING = "virtualRacing"; | |
/** @type {string} */ | |
$scope.MULTIMAKER = "multimaker"; | |
/** @type {string} */ | |
$scope.HOME_CONTROLLER = "homeController"; | |
/** @type {string} */ | |
$scope.HOME_CONTROLLER_SECOND_COLUMN = "homeControllerSecondColumn"; | |
/** @type {string} */ | |
$scope.RIGHT_COLUMN_CONTROLLER = "rightColumnController"; | |
/** @type {string} */ | |
$scope.BETSLIP = "betslip"; | |
/** @type {string} */ | |
$scope.FINANCIALS_BETSLIP = "financialsBetslip"; | |
/** @type {string} */ | |
$scope.INPLAY = "inplay"; | |
/** @type {string} */ | |
$scope.INPLAY_LAUNCHER = "inPlayLauncher"; | |
/** @type {string} */ | |
$scope.INPLAY_RACING_POD = "inPlayRacingPod"; | |
/** @type {string} */ | |
$scope.LOTTO = "lotto"; | |
/** @type {string} */ | |
$scope.PARLAY_TEASER = "parlayTeaser"; | |
/** @type {string} */ | |
$scope.FINANCIALS = "financials"; | |
/** @type {string} */ | |
$scope.FINANCIALS_FLASH = "financialsFlash"; | |
/** @type {string} */ | |
$scope.TOOLS_MENU = "toolsMenu"; | |
/** @type {string} */ | |
$scope.MEDIA_CONTROLLER = "mediaController"; | |
/** @type {string} */ | |
$scope.LIVE_VIEW = "liveView"; | |
/** @type {string} */ | |
$scope.UPCOMING_INPLAY = "upcomingInplay"; | |
/** @type {string} */ | |
$scope.RACING_SEARCH = "racingSearch"; | |
/** @type {string} */ | |
$scope.COUPON_MATCH_LIVE = "couponMatchLive"; | |
/** @type {string} */ | |
$scope.RACING_POD = "racingPod"; | |
/** @type {string} */ | |
$scope.DAILY_RACING = "dailyRacing"; | |
/** @type {string} */ | |
$scope.MY_BETS = "mybets"; | |
/** @type {string} */ | |
$scope.MY_BETS_LEGACY = "mybetslegacy"; | |
/** @type {string} */ | |
$scope.AUDIO_PLAYER = "audioPlayer"; | |
/** @type {string} */ | |
$scope.STABLES_PAGE = "stablesPage"; | |
/** @type {string} */ | |
$scope.SITE_SEARCH = "siteSearch"; | |
/** @type {string} */ | |
$scope.CONTACT_US = "contactUs"; | |
/** @type {string} */ | |
$scope.OFFERS = "offers"; | |
var obj = {}; | |
obj[$scope.NAVIGATION] = message.WEB_NAV_MODULE; | |
obj[$scope.SPLASH] = message.SPLASH_MODULE; | |
obj[$scope.SPLASH_LOTTO] = message.SPLASH_LOTTO_MODULE; | |
obj[$scope.RACING_SPLASH] = message.RACING_SPLASH_MODULE; | |
obj[$scope.COUPON] = message.COUPON_MODULE; | |
obj[$scope.ODDS_ON_COUPON] = message.ODDS_ON_COUPON_MODULE; | |
obj[$scope.RACE_COUPON] = message.RACING_COUPON_MODULE; | |
obj[$scope.VIRTUAL_RACING] = message.VIRTUAL_RACING_MODULE; | |
obj[$scope.MULTIMAKER] = message.MULTI_MAKER_MODULE; | |
obj[$scope.HOME_CONTROLLER] = message.POD_LOADER_MODULE; | |
obj[$scope.HOME_CONTROLLER_SECOND_COLUMN] = message.POD_LOADER_MODULE; | |
obj[$scope.RIGHT_COLUMN_CONTROLLER] = message.POD_LOADER_MODULE; | |
obj[$scope.MY_BETS_LEGACY] = message.MY_BETS_LHS_MODULE; | |
obj[$scope.MY_BETS] = message.MY_BETS_MODULE; | |
obj[$scope.BETSLIP] = message.BETSLIP; | |
obj[$scope.INPLAY] = message.INPLAY_MODULE; | |
obj[$scope.INPLAY_LAUNCHER] = message.INPLAY_LAUNCHER_POD_MODULE; | |
obj[$scope.LOTTO] = message.LOTTO_MODULE; | |
obj[$scope.LIVE_VIEW] = message.LIVE_VIEW; | |
obj[$scope.AUDIO_PLAYER] = message.AUDIO_PLAYER; | |
obj[$scope.RACING_SEARCH] = message.RACING_SEARCH; | |
obj[$scope.STABLES_PAGE] = message.STABLES_MODULE; | |
obj[$scope.SITE_SEARCH] = message.SITE_SEARCH_MODULE; | |
obj[$scope.CONTACT_US] = message.CONTACT_US; | |
obj[$scope.OFFERS] = message.OFFERS_MODULE; | |
/** @type {function(string): ?} */ | |
$scope.ModuleLookup = n; | |
}(n = canCreateDiscussions.CommonElementName || (canCreateDiscussions.CommonElementName = {})); | |
}(ns_webconsolelib_pages_util || (ns_webconsolelib_pages_util = {})), function (state) { | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function e() { | |
} | |
return e.WebsiteNavigation = function (bullet) { | |
bullet.addStyle("wcl-CommonElementStyle_WebNav"); | |
}, e.PrematchCenterColumn = function (bullet) { | |
bullet.addStyle("wcl-CommonElementStyle_PrematchCenter"); | |
}, e.NavContentContainerStyle = function (bullet) { | |
bullet.addStyle("wcl-CommonElementStyle_NavContentContainer"); | |
}, e; | |
}(); | |
state.CommonElementStyle = size; | |
}(ns_webconsolelib_pages_util || (ns_webconsolelib_pages_util = {})), function (IPython) { | |
var that; | |
var PhotoSwipe = ns_gen5_util.Singleton; | |
var Browser = ns_webconsolelib_util.Browser; | |
var ContentFlowGUIElement = ns_gen5_util.Delegate; | |
var exports = ns_webconsolelib_pages_util.PageState; | |
var LightboxOptions = ns_gen5_ui.ModuleContainer; | |
var argv = ns_webconsolelib_pages_util.CommonElementName; | |
var Module = ns_webconsolelib_util.MediaPreferences; | |
var id = ns_webconsolelib_util.LayoutManager; | |
var TimerEvent = ns_webconsolelib_events.LayoutEvent; | |
var M = ns_gen5_util.WidthStateWatcher; | |
var CaptureDevice = ns_gen5_util.WidthStateWatcherEvent; | |
var animationPropertiesForBrowser = ns_gen5_config.PushedConfigPropertyChangeEvent; | |
var instance = ns_webconsolelib.BetslipWebModuleContainer; | |
var Page = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function init() { | |
this.transEndEventNames = { | |
WebkitTransition: "webkitTransitionEnd", | |
MozTransition: "transitionend", | |
OTransition: "oTransitionEnd", | |
msTransition: "MSTransitionEnd", | |
transition: "transitionend" | |
}; | |
this.transEndEventName = this.transEndEventNames[Browser.getPrefixedStyleName("transition")]; | |
} | |
return init.CoupleToView = function (other) { | |
that = other; | |
}, init.GetView = function () { | |
return that; | |
}, init.prototype.initializePage = function () { | |
var state; | |
var options = this; | |
this.layoutManager = PhotoSwipe.getInstance(id); | |
this.defaultStyle = this.defaultStyle || "wc-Page"; | |
state = that.getRightColumnContainer(); | |
state.addStyle(this.defaultStyle + "_RightColumn"); | |
if (this.layoutManager.getRHSIsExpanded()) { | |
state.addStyle(this.defaultStyle + "_RightColumnExpanded"); | |
if (this.layoutManager.getRHSIsStretchy()) { | |
state.addStyle(this.defaultStyle + "_RightColumnExpanded-stretchy"); | |
} | |
} else { | |
state.addStyle(this.defaultStyle + "_RightColumnStandard"); | |
} | |
if (this.transEndEventName) { | |
/** | |
* @param {?} sha2pass | |
* @return {undefined} | |
*/ | |
this.transEndListener = function (sha2pass) { | |
if (state.isEventTargetEqualToElement(sha2pass)) { | |
state.removeStyle(options.defaultStyle + "_RightColumn-animate"); | |
options.layoutManager.dispatchEvent(new TimerEvent(TimerEvent.RHS_EXPANDED_CHANGED_END)); | |
} | |
}; | |
state.addElementEventListener(this.transEndEventName, this.transEndListener); | |
} | |
}, init.prototype.changePageData = function (canCreateDiscussions) { | |
}, init.prototype.leavePage = function () { | |
var previewImg = that.getRightColumnContainer(); | |
previewImg.removeStyle(this.defaultStyle + "_RightColumn"); | |
previewImg.removeStyle(this.defaultStyle + "_RightColumn-animate"); | |
previewImg.removeStyle(this.defaultStyle + "_RightColumnStandard"); | |
previewImg.removeStyle(this.defaultStyle + "_RightColumnExpanded"); | |
previewImg.removeStyle(this.defaultStyle + "_RightColumnExpanded-stretchy"); | |
/** @type {boolean} */ | |
this.allowAnimation = false; | |
if (this.layoutManager && this.layoutManager.hasEventListenerWithDelegate(TimerEvent.RHS_EXPANDED_CHANGED, this.rhsExpandedChangedDelegate)) { | |
this.layoutManager.removeEventListener(TimerEvent.RHS_EXPANDED_CHANGED, this.rhsExpandedChangedDelegate); | |
this.layoutManager.removeEventListener(TimerEvent.RHS_EXPAND_BY_CLICK, this.rhsExpandByClickDelegate); | |
} | |
if (this.widthStateWatcher) { | |
this.widthStateWatcher.removeEventListener(CaptureDevice.WIDTH_STATE_CHANGED, this.widthStateChangedDelegate); | |
} | |
if (this.transEndListener) { | |
that.getRightColumnContainer().removeElementEventListener(this.transEndEventName, this.transEndListener); | |
} | |
}, init.prototype.setRHSLayout = function (child, node) { | |
var element = that.getRightColumnContainer(); | |
if (Browser.getPrefixedStyleName("transition") && this.allowAnimation && this.layoutManager.getRHSRecentlyExpanded()) { | |
element.addStyle(this.defaultStyle + "_RightColumn-animate"); | |
} | |
/** @type {boolean} */ | |
this.allowAnimation = true; | |
if (this.layoutManager.getRHSRecentlyExpanded()) { | |
if (child) { | |
element.addStyle(this.defaultStyle + "_RightColumnExpanded"); | |
element.removeStyle(this.defaultStyle + "_RightColumnStandard"); | |
} else { | |
element.addStyle(this.defaultStyle + "_RightColumnStandard"); | |
element.removeStyle(this.defaultStyle + "_RightColumnExpanded"); | |
} | |
if (node) { | |
element.addStyle(this.defaultStyle + "_RightColumnExpanded-stretchy"); | |
} else { | |
element.removeStyle(this.defaultStyle + "_RightColumnExpanded-stretchy"); | |
} | |
} | |
}, init.prototype.showPinnedVideo = function () { | |
Module.Initialise(function () { | |
var Manager = Module.Manager; | |
var t = Manager.getIsVideoViewLocked(); | |
if (t) { | |
init.CreateElementByName(argv.LIVE_VIEW, that.rightColumnBeforeBetslipContainer); | |
} | |
}); | |
this.initializeRHSResize(); | |
}, init.prototype.initializeRHSResize = function () { | |
this.widthStateWatcher = new M; | |
/** @type {!Array} */ | |
this.widthStateWatcher.thresholds = [1190, 1400, 1450]; | |
this.widthStateWatcher.initialize(); | |
this.widthStateWatcher.addEventListener(CaptureDevice.WIDTH_STATE_CHANGED, this.widthStateChangedDelegate = new ContentFlowGUIElement(this, this.reCalculateLayout)); | |
this.layoutManager = PhotoSwipe.getInstance(id); | |
this.layoutManager.addEventListener(TimerEvent.RHS_EXPANDED_CHANGED, this.rhsExpandedChangedDelegate = new ContentFlowGUIElement(this, this.rhsExpandedChangedHandler)); | |
this.layoutManager.addEventListener(TimerEvent.RHS_EXPAND_BY_CLICK, this.rhsExpandByClickDelegate = new ContentFlowGUIElement(this, this.rhsExpandedByClickHandler)); | |
}, init.prototype.rhsExpandedChangedHandler = function (simpleselect) { | |
this.buttonRHSIsExpanded = simpleselect.data.rhsIsExpanded; | |
this.reCalculateLayout(); | |
}, init.prototype.rhsExpandedByClickHandler = function (canCreateDiscussions) { | |
this.buttonRHSIsExpanded = this.layoutManager.getRHSIsExpanded(); | |
that.getRightColumnContainer().addStyle(this.defaultStyle + "_RightColumn-animate"); | |
this.reCalculateLayout(); | |
}, init.prototype.reCalculateLayout = function () { | |
var newChild; | |
/** @type {boolean} */ | |
var name = false; | |
/** @type {boolean} */ | |
var newLast = false; | |
switch (this.widthStateWatcher.state) { | |
case 0: | |
/** @type {boolean} */ | |
newChild = false; | |
/** @type {boolean} */ | |
name = true; | |
break; | |
case 1: | |
/** @type {boolean} */ | |
newChild = this.buttonRHSIsExpanded === true; | |
break; | |
case 2: | |
/** @type {boolean} */ | |
newChild = this.buttonRHSIsExpanded !== false; | |
break; | |
case 3: | |
/** @type {boolean} */ | |
newChild = this.buttonRHSIsExpanded !== false; | |
/** @type {boolean} */ | |
newLast = newChild; | |
} | |
this.layoutManager.setRHSRecentlyExpanded(newChild !== this.layoutManager.getRHSIsExpanded()); | |
this.setRHSLayout(newChild, newLast); | |
if (newChild !== this.layoutManager.getRHSIsExpanded()) { | |
this.layoutManager.setRHSIsExpanded(newChild); | |
} | |
if (newLast !== this.layoutManager.getRHSIsStretchy()) { | |
this.layoutManager.setRHSIsStretchy(newLast); | |
} | |
if (name !== this.layoutManager.getRHSIsExpandDisabled()) { | |
this.layoutManager.setRHSIsExpandDisabled(name); | |
} | |
}, init.CreateElementByName = function (name, view, i, provider) { | |
var state; | |
var options; | |
var children; | |
var doNotAddSender; | |
var get; | |
var states; | |
return void 0 === i && (i = -1), children = that.readID, doNotAddSender = provider && provider.forceLoad, get = provider && provider.defaultTopic || null, states = exports.LoadedElementsLookup, state = states[name], !state || doNotAddSender ? (options = new LightboxOptions, options.defaultTopic = get, options.load(argv.ModuleLookup(name)), options.elementName = name, state = new IPython.PageElement, state.element = options, state.name = name, states[name] = state) : options = state.element, | |
i > -1 ? view.appendChildAt(options, i) : options.parent !== view && view.appendChild(options), state.readID = children, state; | |
}, init.CreateBetslipElement = function (name) { | |
var flow; | |
var wedgeData = this; | |
var port = that.readID; | |
var params = exports.LoadedElementsLookup; | |
var options = params[name]; | |
return options || (this.BetSlipModule || (this.BetSlipModule = PhotoSwipe.getInstance(instance), this.BetSlipModule.elementName = name), options = new IPython.PageElement, options.element = this.BetSlipModule, options.name = name, params[name] = options, flow = function () { | |
if (Locator.betSlipManager.isBetslipOnRHS()) { | |
that.rightColumnBetslipContainer.appendChild(wedgeData.BetSlipModule); | |
} else { | |
that.mainContainer.appendChild(wedgeData.BetSlipModule); | |
} | |
}, Locator.pushedConfig.getArePropertiesInitialised() ? flow() : Locator.pushedConfig.addEventListener(animationPropertiesForBrowser.PROPERTIES_INITIALISED, new ContentFlowGUIElement(this, flow))), options.readID = port, options; | |
}, init.GetActiveElement = function (styleType) { | |
return exports.LoadedElementsLookup[styleType] || null; | |
}, init; | |
}(); | |
IPython.Page = Page; | |
}(ns_webconsolelib_pages || (ns_webconsolelib_pages = {})), function (Views) { | |
var n = ns_webconsolelib_util.PushMessage; | |
var op_class = ns_webconsolelib_util.ModalManager; | |
var u_parent = ns_gen5_ui.Component; | |
var Membership = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function $() { | |
var thiz = null !== _super && _super.apply(this, arguments) || this; | |
return thiz.areaId = 0, thiz.classificationId = 0, thiz; | |
} | |
return __extends($, _super), $.prototype.addPushMessageRHSContainer = function (p, f) { | |
if (void 0 === f) { | |
/** @type {number} */ | |
f = -1; | |
} | |
this.pushMessageContainer = new u_parent; | |
if (f > -1) { | |
p.appendChildAt(this.pushMessageContainer, f); | |
} else { | |
p.appendChild(this.pushMessageContainer); | |
} | |
}, $.prototype.addPushGraphic = function (op) { | |
if (op.positionId < 5) { | |
op_class.AddModal(op, ns_webconsolelib_util.Priority.High); | |
} else { | |
this.pushMessageContainer.appendChild(op); | |
} | |
}, $.prototype.removePushGraphic = function (op) { | |
if (op.positionId < 5) { | |
if (op.parent) { | |
op_class.RemoveModal(op); | |
} | |
} else { | |
op.parent.removeChild(op); | |
} | |
op.dispose(); | |
}, $.prototype.getAreaId = function () { | |
return this.areaId; | |
}, $.prototype.getClassificationId = function () { | |
return this.classificationId; | |
}, $.prototype.initializePage = function () { | |
var e = this; | |
Locator.validationManager.callNewContext(function () { | |
if (Locator.user.isLoggedIn) { | |
n.Initialise(function () { | |
e.pushMessageController = n.GetPushMessageController(); | |
e.pushMessageController.setActiveClient(e); | |
}); | |
} | |
}); | |
_super.prototype.initializePage.call(this); | |
}, $.prototype.leavePage = function () { | |
var node = Views.Page.GetView(); | |
if (this.pushMessageContainer) { | |
if (this.pushMessageContainer.parent && this.pushMessageContainer.parent == node.rightColumnAfterBetslipContainer) { | |
node.rightColumnAfterBetslipContainer.removeChild(this.pushMessageContainer); | |
} | |
this.pushMessageContainer.removeAllChildren(); | |
} | |
if (this.pushMessageController) { | |
this.pushMessageController.clearProperties(); | |
} | |
_super.prototype.leavePage.call(this); | |
}, $; | |
}(Views.Page); | |
Views.PushMessagingPage = Membership; | |
}(ns_webconsolelib_pages || (ns_webconsolelib_pages = {})), function (state) { | |
var size = function () { | |
/** | |
* @param {?} pluginid | |
* @param {string} pluginType | |
* @return {undefined} | |
*/ | |
function PluginMediaElement(pluginid, pluginType) { | |
this.pageInitializer = pluginid; | |
/** @type {string} */ | |
this.id = pluginType; | |
} | |
return PluginMediaElement; | |
}(); | |
state.PageType = size; | |
}(ns_webconsolelib_pages || (ns_webconsolelib_pages = {})), function (data) { | |
var n; | |
!function (canCreateDiscussions) { | |
/** @type {string} */ | |
canCreateDiscussions.SESSION_CHANGE = "pstk_change"; | |
}(n = data.MessageType || (data.MessageType = {})); | |
}(ns_webconsolelib_util_broadcast || (ns_webconsolelib_util_broadcast = {})), function (exports) { | |
var Message = function () { | |
/** | |
* @param {string} type | |
* @return {undefined} | |
*/ | |
function FloppyDisk(type) { | |
/** @type {string} */ | |
this.type = type; | |
} | |
return FloppyDisk; | |
}(); | |
exports.Message = Message; | |
}(ns_webconsolelib_util_broadcast || (ns_webconsolelib_util_broadcast = {})), function (model) { | |
/** @type {string} */ | |
var BROADCAST_CHANNEL_NAME = "bet365_channel"; | |
var mesh = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function self() { | |
} | |
return self.SendMessage = function (data) { | |
if (this.Channel) { | |
this.Channel.postMessage(new model.Message(data)); | |
} | |
}, self.AddCallback = function (i, depExports) { | |
this.Callbacks[i] = depExports; | |
}, self.Initialize = function () { | |
var jQuery = this; | |
if ("undefined" != typeof BroadcastChannel) { | |
/** @type {!BroadcastChannel} */ | |
this.Channel = new BroadcastChannel(BROADCAST_CHANNEL_NAME); | |
/** | |
* @param {!Object} b | |
* @return {undefined} | |
*/ | |
this.Channel.onmessage = function (b) { | |
var s = b.data; | |
if (jQuery.Callbacks[s.type]) { | |
jQuery.Callbacks[s.type](); | |
} | |
}; | |
} | |
}, self.Callbacks = {}, self; | |
}(); | |
model.BroadcastChannelHelper = mesh; | |
mesh.Initialize(); | |
}(ns_webconsolelib_util_broadcast || (ns_webconsolelib_util_broadcast = {})), function (state) { | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function HTMLSectionBuilder() { | |
} | |
return HTMLSectionBuilder.prototype.stemUpdateHandler = function (cond, text) { | |
}, HTMLSectionBuilder.prototype.stemDeleteHandler = function (EMSarray) { | |
setTimeout(function () { | |
window.location.reload(); | |
}, 6e4); | |
}, HTMLSectionBuilder.prototype.stemInsertHandler = function (name, promise) { | |
}, HTMLSectionBuilder; | |
}(); | |
state.SessionRefresh = size; | |
}(ns_webconsolelib_util || (ns_webconsolelib_util = {})), function (RockMod_Flicker) { | |
/** | |
* @param {?} flightPhase | |
* @return {undefined} | |
*/ | |
function init(flightPhase) { | |
var self; | |
var options; | |
/** | |
* @param {?} column | |
* @param {?} line | |
* @param {?} e | |
* @param {?} error | |
* @param {?} url | |
* @return {undefined} | |
*/ | |
window.onerror = function (column, line, e, error, url) { | |
}; | |
Locator.manifestManager = redis.getInstance(identifier); | |
setTimeout(function () { | |
var __el; | |
/** @type {(Element|null)} */ | |
var n = document.getElementById("__-LoadingIcon"); | |
n.parentNode.removeChild(n); | |
/** @type {(Element|null)} */ | |
__el = document.getElementById("__-iconStyleTag"); | |
__el.parentNode.removeChild(__el); | |
}, 1150); | |
node.setLoaded("gen5base"); | |
node.setLoaded("WebConsoleLib"); | |
node.setLoaded("ScrollerLib"); | |
node.setLoaded("NavLib"); | |
node.setLoaded("LoginLib"); | |
node.setLoaded("PodLib"); | |
node.setLoaded("SitePreferencesLib"); | |
node.setLoaded("GridLoaderLib"); | |
self = new ns_gen5_ui.Application(document.body || document.getElementsByTagName("body")[0]); | |
self.initialize(); | |
self.enableUI(); | |
param.Register(self); | |
options = new ns_gen5_ui.ModuleContainer; | |
options.load(ns_webconsolelib_util.ModuleName.WEB_CONSOLE_MODULE); | |
options.initObject = { | |
nstToken: flightPhase | |
}; | |
self.appendChildAt(options, 0); | |
Locator.validationManager.processValidationCycleNow(); | |
} | |
var param = ns_gen5_ui_managers.PopupManager; | |
var redis = ns_gen5_util.Singleton; | |
var identifier = ns_gen5_util.WebsiteManifest; | |
var node = ns_gen5_net.DependencyManager; | |
/** @type {function(?): undefined} */ | |
RockMod_Flicker.EndBootSequence = init; | |
}(ns_webconsolelib || (ns_webconsolelib = {}))(function (browserify) { | |
var crdt = browserify.WebsiteNavigationManager; | |
var fileSet = function () { | |
/** | |
* @param {?} fn | |
* @param {string} selector | |
* @param {string} win | |
* @param {string} query | |
* @param {string} i | |
* @param {string} ctx | |
* @param {string} s | |
* @param {string} q | |
* @param {string} id | |
* @return {undefined} | |
*/ | |
function $(fn, selector, win, query, i, ctx, s, q, id) { | |
this.inplay = fn; | |
/** @type {string} */ | |
this.classificationId = selector; | |
/** @type {string} */ | |
this.c1ID = win; | |
/** @type {string} */ | |
this.c1IDTable = query; | |
/** @type {string} */ | |
this.c2ID = i; | |
/** @type {string} */ | |
this.c2IDTable = ctx; | |
if (s) { | |
/** @type {string} */ | |
this.c3ID = s; | |
} | |
if (q) { | |
/** @type {string} */ | |
this.c3IDTable = q; | |
} | |
if (id) { | |
/** @type {string} */ | |
this.c3SectionID = id; | |
} | |
} | |
return $.prototype.getPageData = function () { | |
if (this.inplay) { | |
return "#IP#" + crdt.QUERY_TOKEN + "#EV" + this.c1ID + this.c1IDTable + this.c2ID + this.c2IDTable + this.classificationId + "#"; | |
} | |
/** @type {string} */ | |
var d = "#AC#B" + this.classificationId + "#C" + this.c1ID + "#D" + this.c1IDTable + "#E" + this.c2ID + "#F" + this.c2IDTable; | |
return this.c3ID && (d = d + ("#G" + this.c3ID)), this.c3IDTable && (d = d + ("#H" + this.c3IDTable)), this.c3SectionID && (d = d + ("#P" + this.c3SectionID)), d + "#"; | |
}, $.CreateFromStem = function (params, command) { | |
return command == $.COUPON_STEM || params.data.C1 && params.data.T1 ? $.CreateVOFromCouponStem(params) : command == $.POD_STEM || params.data.LC && params.data.LD ? $.CreateVOFromPodStem(params) : null; | |
}, $.CreateVOFromCouponStem = function (run) { | |
return new $("1" == run.data.IF, $.getClassificationId(run), run.data.C1, run.data.T1, run.data.C2, run.data.T2, run.data.C3, run.data.T3, run.data.LR); | |
}, $.CreateVOFromPodStem = function (run) { | |
return new $("1" == run.data.IF, $.getClassificationId(run), run.data.LC, run.data.LD, run.data.LE, run.data.LF, run.data.LP, run.data.LQ, run.data.LR); | |
}, $.getClassificationId = function (e) { | |
return "CL" == e.nodeName ? e.data.ID : e.data.CL ? e.data.CL : e.parent ? $.getClassificationId(e.parent) : null; | |
}, $.POD_STEM = "pod-stem", $.COUPON_STEM = "coupon-stem", $; | |
}(); | |
browserify.PageDataVO = fileSet; | |
})(ns_navlib_util || (ns_navlib_util = {})), function (browserify) { | |
var pack = browserify.WebsiteNavigationManager; | |
var fileSet = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function Ack() { | |
/** @type {!Array} */ | |
this.breadcrumbPages = ["#AC#", "#AS#", "#AA#"]; | |
} | |
return Ack.prototype.registerLeftCrumbContainer = function (canCreateDiscussions) { | |
if (this.centreContainer && this.breadcrumbTrail) { | |
canCreateDiscussions.appendChildAt(this.centreContainer.removeChild(this.breadcrumbTrail), 0); | |
} | |
/** @type {string} */ | |
this.centreContainer = canCreateDiscussions; | |
}, Ack.prototype.registerRightCrumbContainer = function (canCreateDiscussions) { | |
if (this.rightContainer && this.iconBlock) { | |
canCreateDiscussions.appendChildAt(this.rightContainer.removeChild(this.iconBlock), 0); | |
} | |
/** @type {string} */ | |
this.rightContainer = canCreateDiscussions; | |
}, Ack.prototype.unregisterLeftCrumbContainer = function () { | |
/** @type {boolean} */ | |
var t = this.breadcrumbPages.indexOf(pack.CurrentPageData.substr(0, 4)) > -1; | |
if (!t) { | |
if (this.breadcrumbTrail && this.centreContainer) { | |
this.centreContainer.removeChild(this.breadcrumbTrail); | |
/** @type {null} */ | |
this.breadcrumbTrail = null; | |
} | |
/** @type {null} */ | |
this.centreContainer = null; | |
} | |
}, Ack.prototype.unregisterRightCrumbContainer = function () { | |
/** @type {boolean} */ | |
var t = this.breadcrumbPages.indexOf(pack.CurrentPageData.substr(0, 4)) > -1; | |
if (!t) { | |
if (this.iconBlock && this.rightContainer) { | |
this.rightContainer.removeChild(this.iconBlock); | |
/** @type {null} */ | |
this.iconBlock = null; | |
} | |
/** @type {null} */ | |
this.rightContainer = null; | |
} | |
}, Ack.prototype.setBreadcrumb = function (canCreateDiscussions) { | |
if (this.breadcrumbTrail) { | |
this.centreContainer.removeChild(this.breadcrumbTrail); | |
/** @type {null} */ | |
this.breadcrumbTrail = null; | |
} | |
if (this.centreContainer) { | |
/** @type {string} */ | |
this.breadcrumbTrail = canCreateDiscussions; | |
this.centreContainer.appendChildAt(this.breadcrumbTrail, 0); | |
} | |
}, Ack.prototype.setBreadcrumbIconBlock = function (canCreateDiscussions) { | |
if (this.iconBlock && this.rightContainer) { | |
this.rightContainer.removeChild(this.iconBlock); | |
/** @type {null} */ | |
this.iconBlock = null; | |
} | |
/** @type {string} */ | |
this.iconBlock = canCreateDiscussions; | |
if (this.rightContainer) { | |
this.rightContainer.appendChildAt(this.iconBlock, 0); | |
} | |
}, Ack; | |
}(); | |
browserify.BreadcrumbManager = fileSet; | |
}(ns_navlib_util || (ns_navlib_util = {})), function (exports) { | |
var OC_CONFIG = ns_navlib_events.ProductManagerEvent; | |
var recompile_shader = ns_navlib_util.WebsiteNavigationManager; | |
var EventDispatcher = ns_gen5_events.EventDispatcher; | |
var Shake = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function p() { | |
return null !== _super && _super.apply(this, arguments) || this; | |
} | |
return __extends(p, _super), p.SwitchProductOrClassificationFromMSH = function (warning, name) { | |
recompile_shader.CurrentClassification = name; | |
p.SwitchProduct(warning); | |
}, p.SwitchProduct = function (name) { | |
var context = new OC_CONFIG(OC_CONFIG.PRODUCT); | |
/** @type {string} */ | |
p.CurrentProduct = name; | |
p.DispatchEvent(context); | |
}, p.AddEventListener = function (eventName, listener) { | |
return p.EventDispatcher.addEventListener(eventName, listener); | |
}, p.RemoveEventListener = function (eventName, listener) { | |
return p.EventDispatcher.removeEventListener(eventName, listener); | |
}, p.DispatchEvent = function (context) { | |
return p.EventDispatcher.dispatchEvent(context); | |
}, p.EventDispatcher = new p, p; | |
}(EventDispatcher); | |
exports.ProductManager = Shake; | |
}(ns_navlib_util_managers || (ns_navlib_util_managers = {})), function (exports) { | |
var Icon = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function Property() { | |
return null !== _super && _super.apply(this, arguments) || this; | |
} | |
return __extends(Property, _super), Property.prototype.setID = function (nid) { | |
/** @type {!Object} */ | |
this.iconID = nid; | |
}, Property.prototype.getID = function () { | |
return this.iconID; | |
}, Property; | |
}(ns_gen5_ui.Component); | |
exports.Icon = Icon; | |
}(ns_navlib_ui || (ns_navlib_ui = {})), function (global) { | |
var res = ns_navlib_util.WebsiteNavigationManager; | |
var PhotoSwipe = ns_gen5_util.Singleton; | |
var instance = ns_gen5_language.Resource; | |
var $popPanel = ns_navlib_util.WebLinks; | |
var subscription = ns_gen5_data.SubscriptionManagerFlags; | |
var id = ns_webconsolelib_util.LayoutManager; | |
var CaptureDevice = ns_webconsolelib_events.LayoutEvent; | |
var RegionMapping = ns_gen5_util.Delegate; | |
/** @type {string} */ | |
var hoodId = "7"; | |
/** @type {string} */ | |
var user_status_online = "5"; | |
var TalkingImage = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function Editor() { | |
var that = _super.call(this) || this; | |
return that.language = PhotoSwipe.getInstance(instance), that.displayRefreshButton = true, that.layoutManager = PhotoSwipe.getInstance(id), that.rhsExpandedChangedDelegate = new RegionMapping(that, that.resizeRHSClasses), that.layoutManager.addEventListener(CaptureDevice.RHS_EXPANDED_CHANGED, that.rhsExpandedChangedDelegate), that.layoutManager.addEventListener(CaptureDevice.RHS_EXPAND_DISABLED_CHANGED, that.rhsExpandedChangedDelegate), that; | |
} | |
return __extends(Editor, _super), Editor.prototype.createChildren = function () { | |
var tableslen; | |
var obj; | |
var val; | |
var price; | |
var gen2_i; | |
var line; | |
var i; | |
var id; | |
var h; | |
var prices; | |
var parent; | |
var b = this; | |
/** @type {!Array} */ | |
var gen1_items = []; | |
if (this.defaultValue ? gen1_items = this.defaultValue.split("@") : this.stem && (gen1_items = this.stem.data.EX ? this.stem.data.EX.split("@") : []), this.addStyle("nl-IconBlock_Icons"), tableslen = gen1_items.length, tableslen > 0) { | |
val = void 0; | |
price = void 0; | |
/** @type {number} */ | |
gen2_i = 0; | |
for (; tableslen > gen2_i; gen2_i++) { | |
if (line = gen1_items[gen2_i], i = line.indexOf(","), id = line.slice(0, i), h = line.slice(i + 1, line.length), id != hoodId) { | |
h = h.replace(/~/g, "|"); | |
if (id == user_status_online) { | |
h = h.replace("defaulthmr.asp", "home/mainpage.asp"); | |
} | |
} else { | |
if (!this.displayRefreshButton) { | |
continue; | |
} | |
} | |
prices = h.split(","); | |
/** @type {string} */ | |
price = ""; | |
if (2 == prices.length) { | |
price = prices[1]; | |
} | |
val = this.getIconName(id); | |
if (val && val.length > 0) { | |
obj = new global.Icon; | |
/** @type {boolean} */ | |
obj.alwaysShowTooltip = true; | |
obj.setID(id); | |
obj.tooltip = price || this.language.getValue(val) || "No ML"; | |
obj.addStyle("nl-IconBlock_Icon"); | |
obj.addStyle("nl-IconBlock_Icon" + val); | |
this.addLinkClickHandler(obj, h); | |
this.appendChild(obj); | |
} | |
} | |
} | |
parent = new global.Icon; | |
this.appendChild(parent); | |
parent.addStyle("nl-IconBlock_Icon"); | |
parent.addStyle("nl-IconBlock_IconResizeView"); | |
this.resizeRHSClasses(); | |
/** | |
* @return {undefined} | |
*/ | |
parent.clickHandler = function () { | |
b.resizeRHSHandler(); | |
b.resizeRHSClasses(); | |
}; | |
}, Editor.prototype.addLinkClickHandler = function (target, name) { | |
/** | |
* @param {!Function} name | |
* @return {undefined} | |
*/ | |
target.clickHandler = function (name) { | |
var ref3$; | |
var left; | |
var n; | |
if ("#" == name.charAt(0)) { | |
res.NavigateTo(name, { | |
data: { | |
needsCard: false | |
} | |
}); | |
if (target.getID() == hoodId) { | |
Locator.subscriptionManager.unsubscribe(name, subscription.NO_GRACE_PERIOD); | |
} | |
} else { | |
ref3$ = name.split(","); | |
left = ref3$[0]; | |
n = $popPanel.GetLink(left) || unescape(left); | |
if (!n && name.indexOf("|") > -1) { | |
/** @type {string} */ | |
n = name; | |
} | |
res.NavigateTo(n, { | |
data: { | |
needsCard: false | |
} | |
}); | |
} | |
}; | |
}, Editor.prototype.getIconName = function (color) { | |
/** @type {string} */ | |
var buff = ""; | |
switch (color) { | |
case "5": | |
/** @type {string} */ | |
buff = "Rules"; | |
break; | |
case "7": | |
/** @type {string} */ | |
buff = "Refresh"; | |
break; | |
case "8": | |
/** @type {string} */ | |
buff = "Audio"; | |
break; | |
case "9": | |
/** @type {string} */ | |
buff = "BettingNews"; | |
break; | |
case "10": | |
/** @type {string} */ | |
buff = "Stats"; | |
break; | |
case "11": | |
/** @type {string} */ | |
buff = "LiveScores"; | |
break; | |
case "13": | |
/** @type {string} */ | |
buff = "HorseSearch"; | |
break; | |
case "14": | |
/** @type {string} */ | |
buff = "RaceForm"; | |
break; | |
case "18": | |
/** @type {string} */ | |
buff = "GreyhoundSearch"; | |
break; | |
case "19": | |
/** @type {string} */ | |
buff = "TrottingSearch"; | |
} | |
return buff; | |
}, Editor.prototype.resizeRHSHandler = function () { | |
if (!this.layoutManager.getRHSIsExpandDisabled()) { | |
this.layoutManager.setRHSIsExpanded(!this.layoutManager.getRHSIsExpanded(), true); | |
} | |
}, Editor.prototype.resizeRHSClasses = function () { | |
return this.layoutManager.getRHSIsExpandDisabled() ? (this.addStyle("nl-IconBlock_Icons-disabled"), void this.removeStyle("nl-IconBlock_Icons-expanded")) : (this.removeStyle("nl-IconBlock_Icons-disabled"), void (this.layoutManager.getRHSIsExpanded() ? this.addStyle("nl-IconBlock_Icons-expanded") : this.removeStyle("nl-IconBlock_Icons-expanded"))); | |
}, Editor.prototype.detatchStem = function () { | |
if (this.stem) { | |
this.stem.removeDelegate(this); | |
/** @type {null} */ | |
this.stem = null; | |
} | |
if (this.rhsExpandedChangedDelegate) { | |
this.layoutManager.removeEventListener(CaptureDevice.RHS_EXPANDED_CHANGED, this.rhsExpandedChangedDelegate); | |
this.layoutManager.removeEventListener(CaptureDevice.RHS_EXPAND_DISABLED_CHANGED, this.rhsExpandedChangedDelegate); | |
/** @type {null} */ | |
this.rhsExpandedChangedDelegate = null; | |
} | |
}, Editor; | |
}(ns_gen5_ui.ComponentStemBase); | |
global.IconBlock = TalkingImage; | |
}(ns_navlib_ui || (ns_navlib_ui = {})); | |
var ns_sitepreferenceslib_events; | |
var ns_sitepreferenceslib_util; | |
/** @type {string} */ | |
SITE_ROOT_PATH = "sportsnj"; | |
!function (Models) { | |
var NestedRepresentation = ns_gen5_events.Event365; | |
var Parameter = function (_super) { | |
/** | |
* @param {?} name | |
* @param {?} value | |
* @return {?} | |
*/ | |
function exports(name, value) { | |
var elem = _super.call(this, name) || this; | |
return elem.lastFixture = value, elem; | |
} | |
return __extends(exports, _super), exports.LAST_FIXTURE_CHANGED = "lastFixtureChanged", exports; | |
}(NestedRepresentation); | |
Models.UserPreferencesEvent = Parameter; | |
}(ns_sitepreferenceslib_events || (ns_sitepreferenceslib_events = {})), function (state) { | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function dict() { | |
} | |
return dict.Add = function (name, value) { | |
try { | |
window.safeSessionStorage.setItem(name, value); | |
} catch (s) { | |
} | |
}, dict.Get = function (id) { | |
try { | |
return window.safeSessionStorage.getItem(id); | |
} catch (t) { | |
} | |
return ""; | |
}, dict.Remove = function (key) { | |
try { | |
window.safeSessionStorage.removeItem(key); | |
} catch (t) { | |
} | |
}, dict; | |
}(); | |
state.SessionStorage = size; | |
}(ns_sitepreferenceslib_util || (ns_sitepreferenceslib_util = {})), function (NS) { | |
/** | |
* @return {?} | |
*/ | |
function callback() { | |
try { | |
/** @type {string} */ | |
var i = "test"; | |
return localStorage.setItem(i, i), localStorage.removeItem(i), true; | |
} catch (t) { | |
} | |
return false; | |
} | |
var record = callback(); | |
var LocalStorage = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function dict() { | |
} | |
return dict.Add = function (name, value) { | |
if (record) { | |
localStorage.setItem(name, value); | |
} | |
}, dict.Get = function (id) { | |
return record ? localStorage.getItem(id) : null; | |
}, dict.Remove = function (key) { | |
if (record) { | |
localStorage.removeItem(key); | |
} | |
}, dict; | |
}(); | |
NS.LocalStorage = LocalStorage; | |
}(ns_sitepreferenceslib_util || (ns_sitepreferenceslib_util = {})), function (state) { | |
var me = ns_gen5_util.UserPreferenceAPI; | |
var B = ns_gen5_util.UserPreferenceData; | |
var Fullscreen = ns_gen5_util.Singleton; | |
var verifierDevicesNotPadded = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function e() { | |
this.teamData = {}; | |
} | |
return e.UserPreferencesGUID = "ns_weblib_util.PersistentPreferenceData", e; | |
}(); | |
var size = function () { | |
/** | |
* @param {?} config | |
* @return {undefined} | |
*/ | |
function LocationSelect(config) { | |
/** @type {null} */ | |
this._preferenceAPI = null; | |
this._preferenceData = state.UserPreferences.AdditionalPreferences(verifierDevicesNotPadded); | |
this._preferenceAPI = Fullscreen.getInstance(me); | |
this._preferenceAPI.setUserPreferenceServiceUrl(config); | |
this._preferenceAPI.setSerializationData(state.UserPreferences.AdditionalPreferences(B)); | |
} | |
return LocationSelect.prototype.loadInitialPreferenceData = function (e, t) { | |
var i; | |
var radius; | |
if (e && this._preferenceAPI.loadInitialPreferenceData(e), t) { | |
for (i in t) { | |
if (t.hasOwnProperty(i)) { | |
radius = t[i]; | |
this._preferenceData.teamData[i] = radius; | |
} | |
} | |
} | |
}, LocationSelect.prototype.get3wayPreference = function (aMetaName) { | |
return this._getBooleanPreference(me.MARKET_GROUP_PREFERENCE, aMetaName); | |
}, LocationSelect.prototype.set3wayPreference = function (name, collapsed_protos) { | |
this._setBooleanPreference(me.MARKET_GROUP_PREFERENCE, name, collapsed_protos); | |
}, LocationSelect.prototype.setTeamPreference = function (n, precision) { | |
return !precision || this._getNumTeams() < LocationSelect.MAX_NUMBER_OF_TEAMS ? (this._setBooleanPreference(me.TEAM_PREFERENCE, n.teamID, precision), precision ? this._setTeamData(n) : this._removeTeamData(n), true) : false; | |
}, LocationSelect.prototype.getTeamPreference = function (data) { | |
return this._getBooleanPreference(me.TEAM_PREFERENCE, data.teamID); | |
}, LocationSelect.prototype.getPreferredTeams = function () { | |
var i; | |
var params; | |
var el; | |
var info_param = this._preferenceAPI.getValues(me.TEAM_PREFERENCE); | |
/** @type {!Array} */ | |
var teardownFunctions = []; | |
if (info_param) { | |
/** @type {number} */ | |
i = 0; | |
params = info_param; | |
for (; i < params.length; i++) { | |
el = params[i]; | |
teardownFunctions.push(this._getTeamData(el)); | |
} | |
} | |
return teardownFunctions; | |
}, LocationSelect.prototype.getPreferredTeamIds = function () { | |
var layer_i; | |
var crossfilterable_layers; | |
var itemNodeList; | |
var n = this._preferenceAPI.getValues(me.TEAM_PREFERENCE); | |
/** @type {!Array} */ | |
var newNodeLists = []; | |
if (n) { | |
/** @type {number} */ | |
layer_i = 0; | |
crossfilterable_layers = n; | |
for (; layer_i < crossfilterable_layers.length; layer_i++) { | |
itemNodeList = crossfilterable_layers[layer_i]; | |
newNodeLists.push(itemNodeList); | |
} | |
} | |
return newNodeLists; | |
}, LocationSelect.prototype.setLeagueTableLiveUpdates = function (hackerspace) { | |
var s = this.getLeagueTableLiveUpdates(); | |
if ("1" == hackerspace && "0" == s) { | |
this._preferenceAPI.setValues(me.LEAGUE_TABLE_PREFERENCE, ["1"]); | |
} else { | |
if ("0" == hackerspace && "1" == s) { | |
this._preferenceAPI.setValues(me.LEAGUE_TABLE_PREFERENCE, ["0"]); | |
} | |
} | |
}, LocationSelect.prototype.getLeagueTableLiveUpdates = function () { | |
var e = this._preferenceAPI.getValues(me.LEAGUE_TABLE_PREFERENCE); | |
return e ? e[0] : null; | |
}, LocationSelect.prototype.setClassificationMenuFavourites = function (value) { | |
this._preferenceAPI.setValues(me.PREGAME_CLASSIFICATION_MENU_FAVOURITES, value); | |
state.UserPreferences.FlushPreferences(B); | |
}, LocationSelect.prototype.getClassificationMenuFavourites = function () { | |
var end = this._preferenceAPI.getValues(me.PREGAME_CLASSIFICATION_MENU_FAVOURITES); | |
return end ? end : []; | |
}, LocationSelect.prototype._setBooleanPreference = function (predicate, source, width) { | |
if (width) { | |
this._preferenceAPI.addValues(predicate, [source]); | |
} else { | |
this._preferenceAPI.removeValues(predicate, [source]); | |
} | |
}, LocationSelect.prototype._getBooleanPreference = function (m, s) { | |
var t = this._preferenceAPI.getValues(m); | |
return t ? t.indexOf(s) > -1 : false; | |
}, LocationSelect.prototype._setTeamData = function (team) { | |
var ctrl = this._preferenceData.teamData[team.teamID]; | |
if (ctrl) { | |
if (team.betRadarID) { | |
ctrl.betRadarID = team.betRadarID; | |
} | |
if (team.kitColours) { | |
ctrl.kitColours = team.kitColours; | |
} | |
if (team.kitID) { | |
ctrl.kitID = team.kitID; | |
} | |
if (team.teamName) { | |
ctrl.teamName = team.teamName; | |
} | |
} else { | |
/** @type {string} */ | |
this._preferenceData.teamData[team.teamID] = team; | |
} | |
}, LocationSelect.prototype._getTeamData = function (teamID) { | |
var teamName = this._preferenceData.teamData[teamID]; | |
return teamName ? teamName : { | |
teamID: teamID | |
}; | |
}, LocationSelect.prototype._removeTeamData = function (data) { | |
delete this._preferenceData.teamData[data.teamID]; | |
}, LocationSelect.prototype._getNumTeams = function () { | |
var newLineCharsBefore = this._preferenceAPI.getValues(me.TEAM_PREFERENCE); | |
return newLineCharsBefore ? newLineCharsBefore.length : 0; | |
}, LocationSelect.MAX_NUMBER_OF_TEAMS = 12, LocationSelect; | |
}(); | |
state.PersistentPreferenceDefault = size; | |
}(ns_sitepreferenceslib_util || (ns_sitepreferenceslib_util = {})), function (exports) { | |
var B; | |
var EventDispatcher = ns_gen5_events.EventDispatcher; | |
var Event = ns_sitepreferenceslib_events.UserPreferencesEvent; | |
var Shake = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function $() { | |
var r; | |
var context = _super.call(this) || this; | |
return context.storageItems = $.AdditionalPreferences(B), r = exports.LocalStorage.Get("UserPreferencesUpdate"), r && ($.LastUpdateTime = +r), context; | |
} | |
return __extends($, _super), $.RebuildCache = function () { | |
var key; | |
var hasOptions = exports.LocalStorage.Get("UserPreferencesUpdate"); | |
if (!(hasOptions && $.LastUpdateTime && $.LastUpdateTime < +hasOptions)) { | |
for (key in $.LocalInstanceBank) { | |
exports.LocalStorage.Add(key, JSON.stringify($.LocalInstanceBank[key])); | |
} | |
for (key in $.SessionInstanceBank) { | |
exports.SessionStorage.Add(key, JSON.stringify($.SessionInstanceBank[key])); | |
} | |
/** @type {number} */ | |
$.LastUpdateTime = Date.now(); | |
exports.LocalStorage.Add("UserPreferencesUpdate", $.LastUpdateTime.toString()); | |
} | |
}, $.FlushPreferences = function (value) { | |
var i; | |
var x; | |
if (value.UserPreferencesGUID) { | |
i = value.UserPreferencesGUID; | |
x = this.LocalInstanceBank[i]; | |
/** @type {number} */ | |
$.LastUpdateTime = Date.now(); | |
exports.LocalStorage.Add("UserPreferencesUpdate", $.LastUpdateTime.toString()); | |
if (x) { | |
exports.LocalStorage.Add(i, JSON.stringify(x)); | |
} | |
} else { | |
i = value.SessionPreferencesGUID; | |
x = this.SessionInstanceBank[i]; | |
if (x) { | |
exports.SessionStorage.Add(i, JSON.stringify(x)); | |
} | |
} | |
}, $.AdditionalPreferences = function (bigInt) { | |
var i; | |
var base; | |
var j; | |
var x; | |
var o; | |
var k; | |
if (bigInt.UserPreferencesGUID) { | |
if (i = bigInt.UserPreferencesGUID, base = exports.LocalStorage, this.LocalInstanceBank[i]) { | |
return this.LocalInstanceBank[i]; | |
} | |
} else { | |
if (i = bigInt.SessionPreferencesGUID, base = exports.SessionStorage, this.SessionInstanceBank[i]) { | |
return this.SessionInstanceBank[i]; | |
} | |
} | |
if (j = base.Get(i), x = new bigInt, j) { | |
/** @type {*} */ | |
o = JSON.parse(j); | |
for (k in o) { | |
x[k] = o[k]; | |
} | |
} else { | |
base.Add(i, JSON.stringify(x)); | |
} | |
return bigInt.UserPreferencesGUID ? this.LocalInstanceBank[i] = x : this.SessionInstanceBank[i] = x; | |
}, $.Drop = function (rainyday) { | |
if (this.LocalInstanceBank && this.LocalInstanceBank[rainyday.UserPreferencesGUID]) { | |
delete this.LocalInstanceBank[rainyday.UserPreferencesGUID]; | |
} | |
}, $.prototype.getCurrentPageClassification = function () { | |
return this.storageItems.currentPageClassification; | |
}, $.prototype.setCurrentPageClassification = function (currentState) { | |
/** @type {string} */ | |
this.storageItems.currentPageClassification = currentState; | |
this.dispatchEvent(new Event($.CLASSIFICATION_CHANGED_PREFIX + currentState)); | |
}, $.prototype.getCurrentPageId = function () { | |
return this.storageItems.currentPageId; | |
}, $.prototype.setCurrentPageId = function (id) { | |
this.storageItems.currentPageId = id; | |
}, $.prototype.getLastFixture = function () { | |
return this.storageItems.lastFixture; | |
}, $.prototype.setLastFixture = function (options) { | |
if (this.storageItems.lastFixture !== options) { | |
/** @type {!Object} */ | |
this.storageItems.lastFixture = options; | |
this.dispatchEvent(new Event($.LAST_FIXTURE_CHANGED, options)); | |
} | |
}, $.prototype.getStartModule = function () { | |
return this.storageItems.startModule; | |
}, $.prototype.getAutoCashoutMessageDismissed = function () { | |
return this.storageItems.autoCashoutMessageDismissed; | |
}, $.prototype.getAutoCashoutAlertMessageShown = function () { | |
return this.storageItems.autoCashoutAlertMessageShown; | |
}, $.prototype.setAutoCashoutMessageDismissed = function (canCreateDiscussions) { | |
/** @type {boolean} */ | |
this.storageItems.autoCashoutMessageDismissed = canCreateDiscussions; | |
}, $.prototype.setAutoCashoutAlertMessageShown = function (canCreateDiscussions) { | |
/** @type {boolean} */ | |
this.storageItems.autoCashoutAlertMessageShown = canCreateDiscussions; | |
}, $.prototype.getPreferredHorseOrDogSectionID = function () { | |
return this.storageItems.preferredHorseOrDogSectionID; | |
}, $.prototype.setPreferredHorseOrDogSectionID = function (canCreateDiscussions) { | |
/** @type {!Object} */ | |
this.storageItems.preferredHorseOrDogSectionID = canCreateDiscussions; | |
}, $.prototype.getQuickBetStake = function () { | |
return this.storageItems.quickBetStake; | |
}, $.prototype.setQuickBetStake = function (canCreateDiscussions) { | |
this.storageItems.quickBetStake = canCreateDiscussions; | |
}, $.prototype.getRealityCheckedUsers = function () { | |
return this.storageItems.realityCheckedUsers; | |
}, $.prototype.addRealityCheckedUser = function (canCreateDiscussions) { | |
this.storageItems.realityCheckedUsers += canCreateDiscussions + "~"; | |
}, $.prototype.getBetslipSubPath = function () { | |
return this.storageItems.betslipSubPath; | |
}, $.prototype.setBetslipSubPath = function (canCreateDiscussions) { | |
this.storageItems.betslipSubPath = canCreateDiscussions; | |
}, $.prototype.getTwilioSupported = function () { | |
return this.storageItems.twilioSupported > 0; | |
}, $.prototype.setMicrophoneAvailable = function (canCreateDiscussions) { | |
/** @type {number} */ | |
this.storageItems.microphoneAvailable = canCreateDiscussions ? 1 : 0; | |
this.dispatchEvent(new Event($.MICROPHONE_AVAILABLE_CHANGED)); | |
}, $.prototype.getMicrophoneAvailable = function () { | |
return this.storageItems.microphoneAvailable > 0; | |
}, $.prototype.setTwilioSupported = function (canCreateDiscussions) { | |
/** @type {number} */ | |
this.storageItems.twilioSupported = canCreateDiscussions ? 1 : 0; | |
}, $.prototype.setQuickBetTooltipDismissed = function (canCreateDiscussions) { | |
/** @type {boolean} */ | |
this.storageItems.quickBetTooltipDismissed = canCreateDiscussions; | |
}, $.prototype.getQuickBetTooltipDismissed = function () { | |
return this.storageItems.quickBetTooltipDismissed; | |
}, $.prototype.setQuickBetEnabled = function (canCreateDiscussions) { | |
/** @type {boolean} */ | |
this.storageItems.quickBetEnabled = canCreateDiscussions; | |
}, $.prototype.getQuickBetEnabled = function () { | |
return this.storageItems.quickBetEnabled; | |
}, $.prototype.seteditBetAdIntroShown = function (canCreateDiscussions) { | |
this.storageItems.editBetAdIntroShown = canCreateDiscussions; | |
}, $.prototype.geteditBetAdIntroShown = function () { | |
return this.storageItems.editBetAdIntroShown; | |
}, $.prototype.setclassificationsMenuFavouritesTooltipShown = function (canCreateDiscussions) { | |
this.storageItems.classificationsMenuFavouritesTooltipShown = canCreateDiscussions; | |
}, $.prototype.getclassificationsMenuFavouritesTooltipShown = function () { | |
return this.storageItems.classificationsMenuFavouritesTooltipShown; | |
}, $.prototype.setAusMultiplesAvailable = function (canCreateDiscussions) { | |
/** @type {boolean} */ | |
this.storageItems.ausMultiplesAvailable = canCreateDiscussions; | |
}, $.prototype.getAusMultiplesAvailable = function () { | |
return this.storageItems.ausMultiplesAvailable; | |
}, $.LocalInstanceBank = {}, $.SessionInstanceBank = {}, $.CLASSIFICATION_CHANGED_PREFIX = "classificationChanged", $.RACING_SORT_CHANGED = "racingSortChanged", $.LAST_FIXTURE_CHANGED = "lastFixtureChanged", $.MICROPHONE_AVAILABLE_CHANGED = "microphoneAvailableChanged", $.SInit = function () { | |
window.addEventListener("beforeunload", $.RebuildCache); | |
}(), $; | |
}(EventDispatcher); | |
exports.UserPreferences = Shake; | |
B = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function presenterLogic() { | |
/** @type {string} */ | |
this.currentPageId = ""; | |
/** @type {string} */ | |
this.currentPageClassification = ""; | |
/** @type {string} */ | |
this.lastFixture = ""; | |
/** @type {null} */ | |
this.startModule = null; | |
/** @type {boolean} */ | |
this.autoCashoutMessageDismissed = false; | |
/** @type {boolean} */ | |
this.autoCashoutAlertMessageShown = false; | |
/** @type {string} */ | |
this.preferredHorseOrDogSectionID = ""; | |
/** @type {string} */ | |
this.quickBetStake = ""; | |
/** @type {string} */ | |
this.realityCheckedUsers = ""; | |
/** @type {string} */ | |
this.betslipSubPath = ""; | |
/** @type {number} */ | |
this.twilioSupported = 0; | |
/** @type {number} */ | |
this.microphoneAvailable = 0; | |
/** @type {boolean} */ | |
this.quickBetTooltipDismissed = false; | |
/** @type {boolean} */ | |
this.quickBetEnabled = false; | |
/** @type {string} */ | |
this.classificationsMenuFavouritesTooltipShown = ""; | |
/** @type {boolean} */ | |
this.ausMultiplesAvailable = false; | |
} | |
return presenterLogic.UserPreferencesGUID = "ns_weblib_util.StorageItems", presenterLogic; | |
}(); | |
}(ns_sitepreferenceslib_util || (ns_sitepreferenceslib_util = {})); | |
var ns_loginlib_mos; | |
var ns_loginlib_events; | |
var ns_loginlib_data; | |
var ns_loginlib_utils; | |
var ns_loginlib_controllers; | |
var ns_loginlib_login; | |
var ns_loginlib_delegates; | |
/** @type {string} */ | |
SITE_ROOT_PATH = "sportsnj"; | |
!function (appContextProperties) { | |
var t; | |
!function (detectDeviceServices) { | |
/** @type {string} */ | |
detectDeviceServices[detectDeviceServices.Android = 1] = "Android"; | |
/** @type {string} */ | |
detectDeviceServices[detectDeviceServices.Ios = 2] = "Ios"; | |
}(t = appContextProperties.AppType || (appContextProperties.AppType = {})); | |
}(ns_loginlib_mos || (ns_loginlib_mos = {})), function (HTMLSectionBuilder) { | |
var LogEvent = ns_gen5_util.Delegate; | |
var events = ns_gen5_net.LoaderEvent; | |
var REQUEST_METHODS = ns_gen5_net.Loader; | |
var HTMLSection = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function UploadRepository() { | |
/** @type {!Array} */ | |
this.loaders = []; | |
/** @type {!Array} */ | |
this.lowpriorityloaders = []; | |
} | |
return UploadRepository.prototype.fetchAuthenticationMethods = function (bbls) { | |
var data = { | |
CountryCode: Locator.user.countryId ? Locator.user.countryId : Locator.user.countryCode, | |
UserAgent: navigator.userAgent | |
}; | |
this.postData("authenticationmethods", JSON.stringify(data), bbls, false); | |
}, UploadRepository.prototype.fetchValidationRules = function (expr, instance, Constructor, obj) { | |
var data = { | |
StandardAuthenticationToken: expr, | |
DeviceId: instance, | |
AuthenticationMethod: Constructor | |
}; | |
return this.postData("pinvalidationrules", JSON.stringify(data), obj, false); | |
}, UploadRepository.prototype.revertAuthToken = function (fn, t, e) { | |
var data = { | |
AuthenticationToken: t, | |
DeviceId: fn | |
}; | |
return this.postData("revertauthorisationtoken", JSON.stringify(data), e, false); | |
}, UploadRepository.prototype.postData = function (data, topic, message, port) { | |
var url; | |
var root = this; | |
var self = new REQUEST_METHODS; | |
/** @type {null} */ | |
var evt = null; | |
var options = { | |
method: REQUEST_METHODS.POST, | |
data: topic, | |
contentType: "text/json" | |
}; | |
/** | |
* @param {?} value | |
* @return {undefined} | |
*/ | |
var error = function (value) { | |
message(value); | |
self.removeEventListener(events.COMPLETE, evt); | |
self.removeEventListener(events.ERROR, evt); | |
if (port) { | |
root.lowpriorityloaders.splice(root.lowpriorityloaders.indexOf(self), 1); | |
} else { | |
root.loaders.splice(root.loaders.indexOf(self), 1); | |
} | |
}; | |
evt = new LogEvent(this, error); | |
self.addEventListener(events.COMPLETE, evt); | |
self.addEventListener(events.ERROR, evt); | |
/** @type {string} */ | |
url = "moswrapperapi/" + data; | |
self.load(url, options); | |
if (port) { | |
this.lowpriorityloaders.push(self); | |
} else { | |
this.loaders.push(self); | |
} | |
}, UploadRepository; | |
}(); | |
HTMLSectionBuilder.MemberOperations = HTMLSection; | |
}(ns_loginlib_mos || (ns_loginlib_mos = {})), function (state) { | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function e() { | |
} | |
return e.EVENT_SHOW_LOGIN = "showLoginPopup", e.EVENT_HIDE_LOGIN = "hideLoginPopup", e; | |
}(); | |
state.LoginEvents = size; | |
}(ns_loginlib_events || (ns_loginlib_events = {})), function (state) { | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function e() { | |
} | |
return e.STATUS_NOT_AUTHENTICATED = "NotAuthenticated", e.STATUS_LOGIN_FAILED = "loginfailed", e; | |
}(); | |
state.LoginStatuses = size; | |
}(ns_loginlib_data || (ns_loginlib_data = {})), function (state) { | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function e() { | |
} | |
return e.URL_MEMBERS_LOGIN = "/members/lp/default.aspx", e.URL_LOGIN_RESULTS = "/account/LogInResult.aspx", e.URL_MEMBERS_DESKTOP_LOGIN = "/members/lp/default.aspx", e.URL_LOGIN_DESKTOP_RESULTS = "/loginpageredirectapi/redirect?IS=1", e; | |
}(); | |
state.LoginURLs = size; | |
}(ns_loginlib_data || (ns_loginlib_data = {})), function (canCreateDiscussions) { | |
var t; | |
!function (canCreateDiscussions) { | |
/** @type {string} */ | |
canCreateDiscussions.MobileLogin = "47"; | |
/** @type {string} */ | |
canCreateDiscussions.MobileInstantbetLogin = "49"; | |
/** @type {string} */ | |
canCreateDiscussions.DesktopLogin = "85"; | |
}(t = canCreateDiscussions.LoginOrigin || (canCreateDiscussions.LoginOrigin = {})); | |
}(ns_loginlib_data || (ns_loginlib_data = {})), function (canCreateDiscussions) { | |
var t; | |
!function (PackagingPolicy) { | |
/** @type {string} */ | |
PackagingPolicy[PackagingPolicy.DEFAULT = 0] = "DEFAULT"; | |
/** @type {string} */ | |
PackagingPolicy[PackagingPolicy.MY_TEAMS = 1] = "MY_TEAMS"; | |
/** @type {string} */ | |
PackagingPolicy[PackagingPolicy.STREAM = 2] = "STREAM"; | |
/** @type {string} */ | |
PackagingPolicy[PackagingPolicy.OTHERS_ON_REQUEST = 3] = "OTHERS_ON_REQUEST"; | |
}(t = canCreateDiscussions.LoginTypesEnum || (canCreateDiscussions.LoginTypesEnum = {})); | |
}(ns_loginlib_data || (ns_loginlib_data = {})), function (canCreateDiscussions) { | |
var t; | |
!function (canCreateDiscussions) { | |
/** @type {string} */ | |
canCreateDiscussions[canCreateDiscussions.AUTHENTICATION_NOT_ALLOWED = 0] = "AUTHENTICATION_NOT_ALLOWED"; | |
/** @type {string} */ | |
canCreateDiscussions[canCreateDiscussions.EXCEEDED_ATTEMPTS = 1] = "EXCEEDED_ATTEMPTS"; | |
/** @type {string} */ | |
canCreateDiscussions[canCreateDiscussions.INVALID_CREDENTIALS = 2] = "INVALID_CREDENTIALS"; | |
}(t = canCreateDiscussions.LoginFailReasons || (canCreateDiscussions.LoginFailReasons = {})); | |
}(ns_loginlib_data || (ns_loginlib_data = {})), function (state) { | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function AcquisitionManager() { | |
/** @type {string} */ | |
this.appType = ""; | |
/** @type {string} */ | |
this.appVersion = ""; | |
/** @type {number} */ | |
this.passcodePromptCount = 0; | |
/** @type {number} */ | |
this.touchDeclinedCount = 0; | |
} | |
return AcquisitionManager.prototype.resetAuthAndPinData = function () { | |
this.timeStamp = void 0; | |
this.authTypes = void 0; | |
this.passcodePinRules = void 0; | |
this.biometricAndroidPinRules = void 0; | |
this.biometricIosPinRules = void 0; | |
this.countryId = void 0; | |
}, AcquisitionManager.UserPreferencesGUID = "ns_loginlib_utils.LoginPreferences", AcquisitionManager; | |
}(); | |
state.LoginPreferences = size; | |
}(ns_loginlib_utils || (ns_loginlib_utils = {})), function (state) { | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function treatRecentMessage() { | |
/** @type {boolean} */ | |
this.attemptAutoLogin = true; | |
/** @type {string} */ | |
this.kycOrSecondAuthPrevPage = ""; | |
} | |
return treatRecentMessage.SessionPreferencesGUID = "ns_loginlib_utils.LoginSessionPreferences", treatRecentMessage; | |
}(); | |
state.LoginSessionPreferences = size; | |
}(ns_loginlib_utils || (ns_loginlib_utils = {})), function (res) { | |
var RepositoryApi = ns_gen5_util.Singleton; | |
var i = ns_gen5_ui.ModuleContainerAs; | |
var whiteBoard = ns_webconsolelib_util.ModuleName; | |
var e = ns_loginlib_data.LoginTypesEnum; | |
var falseV = ns_sitepreferenceslib_util.UserPreferences; | |
var B = ns_loginlib_utils.LoginPreferences; | |
var overlappingDays = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function Class() { | |
this.altAuth = RepositoryApi.getInstance(ns_loginlib_utils.AlternativeAuthentication); | |
this.loginPreferences = falseV.AdditionalPreferences(B); | |
} | |
return Class.prototype.initialise = function () { | |
}, Class.prototype.executeLogin = function (ns) { | |
if (void 0 === ns) { | |
ns = e.DEFAULT; | |
} | |
}, Class.prototype.promptActivation = function () { | |
this.loadModuleBiometric(); | |
this.loginBiometric.invoke(function (canCreateDiscussions) { | |
canCreateDiscussions.offerBiometric(); | |
}); | |
}, Class.prototype.close = function () { | |
}, Class.prototype.enableFeature = function () { | |
this.loadModuleBiometric(); | |
this.loginBiometric.invoke(function (canCreateDiscussions) { | |
canCreateDiscussions.toggleBiometric(); | |
}); | |
}, Class.prototype.disableFeature = function () { | |
var set = this; | |
if (this.altAuth.getTouchIdActive()) { | |
this.altAuth.resetAuthToStandard(function () { | |
set.altAuth.announce(); | |
}); | |
} | |
}, Class.prototype.clearPin = function () { | |
}, Class.prototype.loadModuleBiometric = function () { | |
if (!this.loginBiometric) { | |
this.loginBiometric = new i; | |
this.loginBiometric.load(whiteBoard.BIOMETRIC_MODULE); | |
} | |
}, Class.prototype.couldSupportTouch = function () { | |
return false; | |
}, Class.prototype.touchIdDecline = function () { | |
var e = this.altAuth.getTouchDeclinedCount(); | |
this.loginPreferences.touchDeclinedCount = e + 1; | |
}, Class.prototype.clearTouchIdDeclined = function () { | |
/** @type {number} */ | |
this.loginPreferences.touchDeclinedCount = 0; | |
}, Class.prototype.getBiometricRules = function (branchData, beforeZero, afterZero) { | |
}, Class; | |
}(); | |
res.LoginBiometric = overlappingDays; | |
}(ns_loginlib_controllers || (ns_loginlib_controllers = {})), function (event) { | |
var t = ns_navlib_util_managers.ProductManager; | |
var RepositoryApi = ns_gen5_util.Singleton; | |
var n = ns_gen5_ui.ModuleContainerAs; | |
var whiteBoard = ns_webconsolelib_util.ModuleName; | |
var e = ns_loginlib_data.LoginTypesEnum; | |
var falseV = ns_sitepreferenceslib_util.UserPreferences; | |
var B = ns_loginlib_utils.LoginPreferences; | |
var A = ns_loginlib_utils.LoginSessionPreferences; | |
var g = ns_loginlib_mos.MemberOperations; | |
var relSet = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function Class() { | |
this.altAuth = RepositoryApi.getInstance(ns_loginlib_utils.AlternativeAuthentication); | |
} | |
return Class.prototype.initialise = function () { | |
if (Locator.user.isLoggedIn && this.canShowPasscodeActivationPrompt() && !this.altAuth.getTouchIdActive()) { | |
this.promptActivation(); | |
/** @type {boolean} */ | |
falseV.AdditionalPreferences(A).passcodeJustLoggedIn = false; | |
} | |
}, Class.prototype.executeLogin = function (ns) { | |
var k; | |
var d; | |
return void 0 === ns && (ns = e.DEFAULT), k = this.altAuth.retrieveDeviceId(), d = this.altAuth.retrieveAuthToken(), k && d ? (this.loadModulePasscode(), void this.loginPasscodePopup.invoke(function (canCreateDiscussions) { | |
canCreateDiscussions.showPasscodeLogin(); | |
})) : void this.disableFeature(); | |
}, Class.prototype.promptActivation = function () { | |
this.loadModulePasscode(); | |
this.loginPasscodePopup.invoke(function (canCreateDiscussions) { | |
canCreateDiscussions.offerPasscode(); | |
}); | |
}, Class.prototype.close = function () { | |
}, Class.prototype.enableFeature = function () { | |
var e = this; | |
this.loadModulePasscode(); | |
this.loginPasscodePopup.invoke(function (canCreateDiscussions) { | |
if (e.altAuth.hasAlternativeAuthEnabled()) { | |
e.altAuth.revertAuthToken(function () { | |
canCreateDiscussions.togglePasscode(); | |
}); | |
} else { | |
canCreateDiscussions.togglePasscode(); | |
} | |
}); | |
}, Class.prototype.disableFeature = function () { | |
var set = this; | |
if (this.altAuth.getPasscodeActive()) { | |
/** @type {number} */ | |
falseV.AdditionalPreferences(B).passcodePromptCount = 0; | |
this.altAuth.resetAuthToStandard(function () { | |
set.altAuth.announce(); | |
}); | |
} | |
}, Class.prototype.canShowPasscodeActivationPrompt = function () { | |
var medianB = falseV.AdditionalPreferences(B); | |
var w = this.altAuth.getPasscodeSupported(); | |
/** @type {boolean} */ | |
var h = !this.altAuth.getPasscodeActive(); | |
/** @type {boolean} */ | |
var m = medianB.passcodePromptCount < 3; | |
var d = falseV.AdditionalPreferences(A).passcodeJustLoggedIn; | |
/** @type {boolean} */ | |
var doUpdate = this.altAuth.getTouchDeclinedCount() >= 3 || !this.altAuth.getTouchSupported() && !this.altAuth.getTouchIdActive(); | |
/** @type {boolean} */ | |
var hasNamedAttributes = !this.altAuth.getKMLActive(); | |
/** @type {boolean} */ | |
var hasSimpleAttrs = !medianB.suppresspromptActivation; | |
/** @type {boolean} */ | |
var hasDynamicAttributes = "Members" == t.CurrentProduct; | |
return w && h && m && d && doUpdate && hasNamedAttributes && hasSimpleAttrs && !hasDynamicAttributes; | |
}, Class.prototype.loadModulePasscode = function () { | |
if (!this.loginPasscodePopup) { | |
this.loginPasscodePopup = new n; | |
this.loginPasscodePopup.load(whiteBoard.PASSCODE_MODULE); | |
} | |
}, Class.prototype.getPasscodeRules = function (query, extstreamInstance, converter) { | |
var querier; | |
var param = this; | |
if (!this.passcodeRules) { | |
this.passcodeRules = falseV.AdditionalPreferences(B).passcodePinRules; | |
} | |
if (this.passcodeRules) { | |
converter(this.passcodeRules); | |
} else { | |
querier = new g; | |
querier.fetchValidationRules(query, extstreamInstance, "Pin", function (textFile) { | |
try { | |
/** @type {*} */ | |
param.passcodeRules = JSON.parse(textFile.data); | |
/** @type {*} */ | |
falseV.AdditionalPreferences(B).passcodePinRules = param.passcodeRules; | |
} catch (t) { | |
/** @type {null} */ | |
param.passcodeRules = null; | |
} | |
converter(param.passcodeRules); | |
}); | |
} | |
}, Class; | |
}(); | |
event.LoginPasscode = relSet; | |
}(ns_loginlib_controllers || (ns_loginlib_controllers = {})), function (res) { | |
var RepositoryApi = ns_gen5_util.Singleton; | |
var i = ns_gen5_util.CookieManager; | |
var n = ns_gen5_ui.ModuleContainerAs; | |
var whiteBoard = ns_webconsolelib_util.ModuleName; | |
var menu = ns_gen5_ui_managers.PopupManager; | |
var e = ns_loginlib_data.LoginTypesEnum; | |
var overlappingDays = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function Class() { | |
this.altAuth = RepositoryApi.getInstance(ns_loginlib_utils.AlternativeAuthentication); | |
} | |
return Class.prototype.initialise = function () { | |
var jptCall = i.GetSessionId(); | |
return jptCall && jptCall.lastIndexOf("0004") != jptCall.length - 4 && this.altAuth.kmlSupported() && this.altAuth.getKMLActive() ? (this.loadModuleKML(), void this.kmlLogin.invoke(function (e) { | |
e.invokeKMLLogin(); | |
menu.AddPopup(e, false); | |
menu.AddDelegate(e); | |
})) : void 0; | |
}, Class.prototype.executeLogin = function (ns) { | |
if (void 0 === ns) { | |
ns = e.DEFAULT; | |
} | |
this.loadModuleKML(); | |
this.kmlLogin.invoke(function (e) { | |
e.invokeKMLLogin(); | |
menu.AddPopup(e, false); | |
menu.AddDelegate(e); | |
}); | |
}, Class.prototype.promptActivation = function () { | |
}, Class.prototype.close = function () { | |
if (this.kmlLogin) { | |
menu.RemoveDelegate(this.kmlLogin.getModule()); | |
menu.RemovePopup(this.kmlLogin.getModule()); | |
this.kmlLogin.dispose(); | |
} | |
}, Class.prototype.enableFeature = function () { | |
}, Class.prototype.disableFeature = function () { | |
}, Class.prototype.sessionExpire = function (saveNotifs) { | |
var rejectingServer = this; | |
return this.altAuth.kmlSupported() && this.altAuth.getKMLActive() ? (this.loadModuleKML(), void this.kmlLogin.invoke(function (i) { | |
i.invokeKMLSessionExpiry({ | |
kmlLoginSuccess: function () { | |
rejectingServer.close(); | |
saveNotifs(); | |
}, | |
kmlLoginFail: function () { | |
rejectingServer.close(); | |
saveNotifs(); | |
} | |
}); | |
menu.AddPopup(i, false); | |
menu.AddDelegate(i); | |
})) : void 0; | |
}, Class.prototype.loadModuleKML = function () { | |
if (!this.kmlLogin) { | |
this.kmlLogin = new n; | |
this.kmlLogin.load(whiteBoard.LOGIN_MODULE); | |
} | |
}, Class; | |
}(); | |
res.LoginKML = overlappingDays; | |
}(ns_loginlib_controllers || (ns_loginlib_controllers = {})), function (state) { | |
var t = ns_gen5_ui.ModuleContainerAs; | |
var whiteBoard = ns_webconsolelib_util.ModuleName; | |
var e = ns_loginlib_data.LoginTypesEnum; | |
var menu = ns_gen5_ui_managers.PopupManager; | |
var app = ns_gen5_ui.Application; | |
var Event = ns_gen5_events.Event365; | |
var event = ns_loginlib_events.LoginEvents; | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function CookiePopup() { | |
/** @type {boolean} */ | |
this.loginDisplaying = false; | |
} | |
return CookiePopup.prototype.initialise = function () { | |
}, CookiePopup.prototype.executeLogin = function (ns) { | |
var t = this; | |
if (void 0 === ns) { | |
ns = e.DEFAULT; | |
} | |
this.loadModuleStandard(); | |
if (!this.loginDisplaying) { | |
this.loginPopup.invoke(function (prev) { | |
/** @type {boolean} */ | |
t.loginDisplaying = true; | |
prev.invokeStandardLogin(ns); | |
menu.AddPopup(prev, false); | |
menu.AddDelegate(prev); | |
app.currentApplication.dispatchEvent(new Event(event.EVENT_SHOW_LOGIN)); | |
}); | |
} | |
}, CookiePopup.prototype.promptActivation = function () { | |
}, CookiePopup.prototype.close = function () { | |
if (this.loginPopup) { | |
/** @type {boolean} */ | |
this.loginDisplaying = false; | |
menu.RemoveDelegate(this.loginPopup.getModule()); | |
menu.RemovePopup(this.loginPopup.getModule()); | |
this.loginPopup.dispose(); | |
/** @type {null} */ | |
this.loginPopup = null; | |
app.currentApplication.dispatchEvent(new Event(event.EVENT_HIDE_LOGIN)); | |
} | |
}, CookiePopup.prototype.enableFeature = function () { | |
}, CookiePopup.prototype.disableFeature = function () { | |
}, CookiePopup.prototype.loadModuleStandard = function () { | |
if (!this.loginPopup) { | |
this.loginPopup = new t; | |
this.loginPopup.load(whiteBoard.LOGIN_MODULE); | |
} | |
}, CookiePopup; | |
}(); | |
state.LoginStandard = size; | |
}(ns_loginlib_controllers || (ns_loginlib_controllers = {})), function (g) { | |
var data; | |
var 88F; | |
var assert = ns_gen5_util.CookieManager; | |
var o = ns_weblib_util.WebsiteConfig; | |
var BooleanWrapper = ns_loginlib_mos.MemberOperations; | |
var a = ns_loginlib_mos.AppType; | |
var falseV = ns_sitepreferenceslib_util.UserPreferences; | |
var r = ns_loginlib_controllers.LoginStandard; | |
var canCreateDiscussions = ns_loginlib_controllers.LoginKML; | |
var u = ns_loginlib_controllers.LoginBiometric; | |
var d = ns_loginlib_controllers.LoginPasscode; | |
var e = ns_loginlib_data.LoginTypesEnum; | |
var B = g.LoginPreferences; | |
var A = g.LoginSessionPreferences; | |
!function (window) { | |
/** @type {string} */ | |
window.Standard = "Standard"; | |
/** @type {string} */ | |
window.Pin = "Pin"; | |
/** @type {string} */ | |
window.Touch = "Touch"; | |
/** @type {string} */ | |
window.KML = "KML"; | |
/** @type {string} */ | |
window.Fingerprint = "Fingerprint"; | |
/** @type {string} */ | |
window.RememberUser = "RememberUser"; | |
}(data || (data = {})); | |
88F = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function self() { | |
/** @type {boolean} */ | |
this.initialized = false; | |
/** @type {!Array} */ | |
this.delegateList = []; | |
/** @type {!Array} */ | |
this.initCallback = []; | |
/** @type {!Array} */ | |
this.appVersion = []; | |
/** @type {!Array} */ | |
this.availLoginTypes = []; | |
this.loginMethods = { | |
0: data.Standard, | |
1: data.Pin, | |
2: data.Touch, | |
3: data.KML, | |
4: data.RememberUser, | |
5: data.Fingerprint | |
}; | |
this.loginPreferences = falseV.AdditionalPreferences(B); | |
} | |
return self.prototype.initialise = function () { | |
if (!this.initialized) { | |
this.initialiseAuthentications(); | |
} | |
}, self.prototype.initialiseAuthentications = function () { | |
/** @type {boolean} */ | |
this.initialized = true; | |
this.standardLogin = new r; | |
this.kmlLogin = new canCreateDiscussions; | |
this.passcodeLogin = new d; | |
this.biometricLogin = new u; | |
this.defaultLogin = this.standardLogin; | |
if (!o.INSTANT_BET && this.getKMLActive()) { | |
this.defaultLogin = this.kmlLogin; | |
} else { | |
if (!o.INSTANT_BET && this.getTouchIdActive()) { | |
this.defaultLogin = this.biometricLogin; | |
} else { | |
if (!o.INSTANT_BET && this.getPasscodeActive()) { | |
this.defaultLogin = this.passcodeLogin; | |
} | |
} | |
} | |
this.defaultLogin.initialise(); | |
var e = this.biometricLogin.couldSupportTouch(); | |
if (!e && this.loginPreferences.touchSupported) { | |
this.loginPreferences.touchSupported = e; | |
} | |
if (e && (this.getLoginAvailability(data.Touch) || this.getLoginAvailability(data.Fingerprint))) { | |
this.biometricLogin.initialise(); | |
} | |
if (this.getLoginAvailability(data.Pin)) { | |
this.passcodeLogin.initialise(); | |
} | |
this.progressCallbacks(); | |
}, self.prototype.login = function (ns) { | |
var t = this; | |
if (void 0 === ns) { | |
ns = e.DEFAULT; | |
} | |
if (this.defaultLogin) { | |
this.defaultLogin.executeLogin(ns); | |
} else { | |
this.initCallback.push(function () { | |
t.defaultLogin.executeLogin(ns); | |
}); | |
} | |
}, self.prototype.retrieveAuthToken = function () { | |
var e = assert.GetCookieAttributeValue("aaat", "at") || ""; | |
return e || this.resetAuthToStandard(), e; | |
}, self.prototype.retrieveDeviceId = function () { | |
var e = assert.GetCookieAttributeValue("aaat", "di") || ""; | |
return e || this.resetAuthToStandard(), e; | |
}, self.prototype.getTouchDeclinedCount = function () { | |
return this.loginPreferences.touchDeclinedCount; | |
}, self.prototype.kmlSupported = function () { | |
return this.availLoginTypes.indexOf(data.KML) > -1; | |
}, self.prototype.getLoginAvailability = function (e) { | |
return this.availLoginTypes.indexOf(e) > -1; | |
}, self.prototype.getTouchSupported = function () { | |
return (this.availLoginTypes.indexOf(data.Touch) > -1 || this.availLoginTypes.indexOf(data.Fingerprint) > -1) && this.loginPreferences.touchSupported; | |
}, self.prototype.fallbackToStandard = function () { | |
var scope = this; | |
this.resetAuthToStandard(function () { | |
if (scope.autoLogin) { | |
scope.initaliseComplete(); | |
} | |
scope.defaultLogin.executeLogin(e.DEFAULT); | |
}); | |
}, self.prototype.resetAuthToStandard = function (e) { | |
var t = assert.GetCookieValue("aaat"); | |
if (!(Locator.user.isLoggedIn && !t)) { | |
if (t && assert.GetCookieAttributeValue("aaat", "di") && this.getTouchIdActive()) { | |
this.biometricLogin.clearPin(); | |
this.biometricLogin.clearTouchIdDeclined(); | |
} | |
this.revertAuthToken(e); | |
} | |
}, self.prototype.revertAuthToken = function (c2) { | |
var t; | |
var $scope = this; | |
var e = assert.GetCookieAttributeValue("aaat", "di"); | |
var n = assert.GetCookieAttributeValue("aaat", "at"); | |
if (n && e) { | |
t = new BooleanWrapper; | |
t.revertAuthToken(e, n, function (testsStatus) { | |
if (testsStatus && 200 !== testsStatus.status) { | |
/** @type {string} */ | |
var done = document.location.host.substring(document.location.host.indexOf(".")); | |
assert.SetCookieValue("aaat", "am", "0", done, true); | |
} | |
falseV.AdditionalPreferences(B).resetAuthAndPinData(); | |
$scope.defaultLogin = $scope.standardLogin; | |
if (c2) { | |
c2(); | |
} | |
}); | |
} | |
}, self.prototype.register = function (e) { | |
this.delegateList.push(e); | |
if (this.initialized) { | |
e(); | |
} | |
}, self.prototype.announce = function () { | |
var _$rapyd$_Index0; | |
var _$rapyd$_Iter0; | |
var geo; | |
/** @type {number} */ | |
_$rapyd$_Index0 = 0; | |
_$rapyd$_Iter0 = this.delegateList; | |
for (; _$rapyd$_Index0 < _$rapyd$_Iter0.length; _$rapyd$_Index0++) { | |
(geo = _$rapyd$_Iter0[_$rapyd$_Index0])(); | |
} | |
}, self.prototype.initaliseComplete = function () { | |
/** @type {boolean} */ | |
this.initialized = true; | |
/** @type {boolean} */ | |
this.autoLogin = false; | |
/** @type {boolean} */ | |
falseV.AdditionalPreferences(A).attemptAutoLogin = false; | |
this.announce(); | |
this.progressCallbacks(); | |
}, self.prototype.progressCallbacks = function () { | |
var gotoNewOfflinePage = this.initCallback.shift(); | |
if (gotoNewOfflinePage) { | |
gotoNewOfflinePage(); | |
this.progressCallbacks(); | |
} | |
}, self.prototype.getActiveMethod = function () { | |
var e = assert.GetCookieAttributeValue("aaat", "am"); | |
var t = data.Standard; | |
return e && (t = this.loginMethods[e] ? this.loginMethods[e] : data.Standard), t; | |
}, self.prototype.hasAlternativeAuthEnabled = function () { | |
return !o.INSTANT_BET && this.getActiveMethod() !== data.Standard; | |
}, self.prototype.getTouchIdActive = function () { | |
var ok = this.getActiveMethod(); | |
return ok == data.Touch || ok == data.Fingerprint; | |
}, self.prototype.getKMLActive = function () { | |
return this.getActiveMethod() == data.KML; | |
}, self.prototype.getPasscodeActive = function () { | |
return this.getActiveMethod() == data.Pin; | |
}, self.prototype.disableTouch = function () { | |
if (this.getTouchIdActive()) { | |
this.resetAuthToStandard(); | |
} | |
if (this.getLoginAvailability(data.Pin)) { | |
this.passcodeLogin.initialise(); | |
} | |
}, self.prototype.getPasscodeSupported = function () { | |
return this.availLoginTypes.indexOf(data.Pin) > -1 && !o.INSTANT_BET; | |
}, self.prototype.setSuppressAltAuthPrompt = function (isIron) { | |
/** @type {boolean} */ | |
this.loginPreferences.suppresspromptActivation = isIron; | |
}, self.prototype.getAppType = function () { | |
return a.Ios; | |
}, self.prototype.terminate = function () { | |
/** @type {!Array} */ | |
this.availLoginTypes = []; | |
/** @type {boolean} */ | |
this.initialized = false; | |
}, self.prototype.getAppVersion = function () { | |
var componentsStr; | |
var paramsSplit; | |
var hourIndex; | |
var tableslen; | |
if (0 == this.appVersion.length) { | |
/** @type {string} */ | |
componentsStr = navigator.userAgent.toLowerCase(); | |
/** @type {!Array<string>} */ | |
paramsSplit = componentsStr.split(/(b365sports|bet365wrapper)([a-zA-Z]{2})?\//); | |
if (paramsSplit.length > 3) { | |
/** @type {!Array<string>} */ | |
this.appVersion = paramsSplit[3].split("."); | |
} | |
/** @type {number} */ | |
hourIndex = 0; | |
tableslen = this.appVersion.length; | |
for (; tableslen > hourIndex; hourIndex++) { | |
if (parseInt(this.appVersion[hourIndex]) < 10) { | |
this.appVersion[hourIndex] = "0" + this.appVersion[hourIndex]; | |
} | |
} | |
} | |
return this.appVersion.join("."); | |
}, self.LOGIN_METHOD_STANDARD = "0", self.LOGIN_METHOD_PASSCODE = "1", self.LOGIN_METHOD_TOUCH = "2", self.LOGIN_METHOD_KML = "3", self.LOGIN_METHOD_REMEMBERUSER = "4", self.LOGIN_METHOD_FINGER = "5", self; | |
}(); | |
g.AlternativeAuthentication = 88F; | |
}(ns_loginlib_utils || (ns_loginlib_utils = {})), function (exports) { | |
var Util = ns_gen5_net.URLVariables; | |
var Promise = ns_gen5_net.Loader; | |
var events = ns_gen5_net.LoaderEvent; | |
var delegateManager = ns_gen5_util.Delegate; | |
var s = ns_gen5_util.CookieManager; | |
var EventDispatcher = ns_gen5_events.EventDispatcher; | |
var fieldFormats = ns_gen5_util.Singleton; | |
var config = ns_loginlib_utils.AlternativeAuthentication; | |
var falseV = ns_sitepreferenceslib_util.UserPreferences; | |
var B = ns_loginlib_utils.LoginSessionPreferences; | |
var $ = ns_gen5_ui.Application; | |
var Shake = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function User() { | |
var styled = null !== _super && _super.apply(this, arguments) || this; | |
return styled._loginStage1ResultsHandlerDelegate = null, styled._loginStage1ErrorHandlerDelegate = null, styled._loginStage2ResultsHandlerDelegate = null, styled._loginStage2ErrorHandlerDelegate = null, styled._logoutResultsHandlerDelegate = null, styled._logoutErrorHandlerDelegate = null, styled.loginPlatforms = { | |
Desktop: 1, | |
Mobile: 2, | |
SportsiOSApp: 15, | |
SportsAndroidApp: 16 | |
}, styled; | |
} | |
return __extends(User, _super), User.prototype.logout = function (data) { | |
var self; | |
var url = this.logoutPath; | |
var options = { | |
method: Promise.GET, | |
withCredentials: true | |
}; | |
if (data) { | |
options.urlVariables = data; | |
} | |
self = new Promise; | |
this._logoutResultsHandlerDelegate = new delegateManager(this, this.logoutResultHandler); | |
this._logoutErrorHandlerDelegate = new delegateManager(this, this.logoutErrorHandler); | |
self.addEventListener(events.COMPLETE, this._logoutResultsHandlerDelegate); | |
self.addEventListener(events.ERROR, this._logoutErrorHandlerDelegate); | |
self.load(url, options); | |
}, User.prototype.logoutResultHandler = function (event) { | |
/** @type {boolean} */ | |
falseV.AdditionalPreferences(B).showBalancePopup = true; | |
/** @type {boolean} */ | |
falseV.AdditionalPreferences(B).instantBetLoggedInPopupShowed = false; | |
fieldFormats.getInstance(config).setSuppressAltAuthPrompt(false); | |
var loader = event.target; | |
loader.removeEventListener(events.COMPLETE, this._logoutResultsHandlerDelegate); | |
loader.removeEventListener(events.ERROR, this._logoutErrorHandlerDelegate); | |
if (this.loginDelegate) { | |
this.loginDelegate.logoutSuccess(); | |
} | |
}, User.prototype.logoutErrorHandler = function (event) { | |
var loader = event.target; | |
loader.removeEventListener(events.COMPLETE, this._logoutResultsHandlerDelegate); | |
loader.removeEventListener(events.ERROR, this._logoutErrorHandlerDelegate); | |
if (this.loginDelegate) { | |
this.loginDelegate.logoutFailed(); | |
} | |
}, User.prototype.loginStandard = function (name, value, variables, callback) { | |
var e; | |
var level; | |
var u; | |
var _this = new Util; | |
var Config = fieldFormats.getInstance(config); | |
var windowObjects = $.currentApplication.getScreenWidth() + " x " + $.currentApplication.getScreenHeight(); | |
this.loginInProgressDelegate = callback; | |
e = config.LOGIN_METHOD_STANDARD; | |
level = this.loginPlatforms.Mobile; | |
_this.addPair("txtType", this.loginType); | |
u = s.GetSessionId(); | |
if (u) { | |
_this.addPair("txtTKN", u); | |
} | |
if (flashvars.CountryCode) { | |
_this.addPair("txtLCNOVR", flashvars.CountryCode); | |
} | |
if (Config.getAppVersion().length > 0) { | |
_this.addPair("txtFlashVersion", Config.getAppVersion()); | |
} | |
_this.addPair("platform", level + ""); | |
if (variables) { | |
e = config.LOGIN_METHOD_KML; | |
} | |
_this.addPair("txtUsername", name); | |
_this.addPair("txtPassword", encodeURIComponent(value)); | |
_this.addPair("AuthenticationMethod", e); | |
if (windowObjects) { | |
_this.addPair("txtScreenSize", windowObjects); | |
} | |
this.executeLogin(_this); | |
}, User.prototype.loginStandardWeb = function (name, value, variables, callback) { | |
var e; | |
var level; | |
var u; | |
var _this = new Util; | |
var Config = fieldFormats.getInstance(config); | |
var windowObjects = $.currentApplication.getScreenWidth() + " x " + $.currentApplication.getScreenHeight(); | |
this.loginInProgressDelegate = callback; | |
e = config.LOGIN_METHOD_STANDARD; | |
level = this.loginPlatforms.Desktop; | |
_this.addPair("txtType", this.loginType); | |
u = s.GetSessionId(); | |
if (u) { | |
_this.addPair("txtTKN", u); | |
} | |
if (flashvars.CountryCode) { | |
_this.addPair("txtLCNOVR", flashvars.CountryCode); | |
} | |
if (Locator.user.impersonatedUsername && Locator.user.impersonatedUsername.length > 0) { | |
_this.addPair("txtOtp", "1"); | |
} | |
if (Config.getAppVersion().length > 0) { | |
_this.addPair("txtFlashVersion", Config.getAppVersion()); | |
} | |
_this.addPair("platform", level + ""); | |
_this.addPair("IS", level + "1"); | |
_this.addPair("txtScreenSize", $.currentApplication.getScreenWidth() + " x " + $.currentApplication.getScreenHeight()); | |
if (variables) { | |
e = config.LOGIN_METHOD_KML; | |
} | |
_this.addPair("txtUsername", name); | |
_this.addPair("txtPassword", encodeURIComponent(value)); | |
_this.addPair("AuthenticationMethod", e); | |
if (windowObjects) { | |
_this.addPair("txtScreenSize", windowObjects); | |
} | |
this.executeLogin(_this); | |
}, User.prototype.loginKML = function (EMSarray) { | |
var sc_options; | |
var key; | |
var Config = fieldFormats.getInstance(config); | |
var util = new Util; | |
var realVal = $.currentApplication.getScreenWidth() + " x " + $.currentApplication.getScreenHeight(); | |
var name = config.LOGIN_METHOD_KML; | |
this.loginInProgressDelegate = EMSarray; | |
sc_options = s.GetSessionId(); | |
if (sc_options) { | |
util.addPair("txtTKN", sc_options); | |
} | |
key = this.loginPlatforms.Mobile; | |
if (Config.getAppVersion().length > 0) { | |
util.addPair("txtFlashVersion", Config.getAppVersion()); | |
} | |
util.addPair("platform", key + ""); | |
util.addPair("DeviceId", Config.retrieveDeviceId()); | |
util.addPair("txtType", this.loginType); | |
util.addPair("AuthenticationMethod", name); | |
util.addPair("AuthenticationToken", Config.retrieveAuthToken()); | |
if (realVal) { | |
util.addPair("txtScreenSize", realVal); | |
} | |
this.executeLogin(util); | |
}, User.prototype.loginPasscode = function (type, elem) { | |
var realVal; | |
var key; | |
var Config = fieldFormats.getInstance(config); | |
var util = new Util; | |
var e = $.currentApplication.getScreenWidth() + " x " + $.currentApplication.getScreenHeight(); | |
var name = config.LOGIN_METHOD_PASSCODE; | |
this.loginInProgressDelegate = elem; | |
realVal = s.GetSessionId(); | |
if (realVal) { | |
util.addPair("txtTKN", realVal); | |
} | |
util.addPair("Pin", type); | |
key = this.loginPlatforms.Mobile; | |
if (Config.getAppVersion().length > 0) { | |
util.addPair("txtFlashVersion", Config.getAppVersion()); | |
} | |
util.addPair("platform", key + ""); | |
util.addPair("DeviceId", Config.retrieveDeviceId()); | |
util.addPair("txtType", this.loginType); | |
util.addPair("AuthenticationMethod", name); | |
util.addPair("AuthenticationToken", Config.retrieveAuthToken()); | |
if (e) { | |
util.addPair("txtScreenSize", e); | |
} | |
this.executeLogin(util); | |
}, User.prototype.loginBiometric = function (type, elem) { | |
var realVal; | |
var key; | |
var Config = fieldFormats.getInstance(config); | |
var util = new Util; | |
var c = $.currentApplication.getScreenWidth() + " x " + $.currentApplication.getScreenHeight(); | |
var name = config.LOGIN_METHOD_FINGER; | |
this.loginInProgressDelegate = elem; | |
realVal = s.GetSessionId(); | |
if (realVal) { | |
util.addPair("txtTKN", realVal); | |
} | |
util.addPair("Pin", type); | |
key = this.loginPlatforms.Mobile; | |
if (Config.getAppVersion().length > 0) { | |
util.addPair("txtFlashVersion", Config.getAppVersion()); | |
} | |
util.addPair("platform", key + ""); | |
util.addPair("DeviceId", Config.retrieveDeviceId()); | |
util.addPair("txtType", this.loginType); | |
util.addPair("AuthenticationMethod", name); | |
util.addPair("AuthenticationToken", Config.retrieveAuthToken()); | |
if (c) { | |
util.addPair("txtScreenSize", c); | |
} | |
this.executeLogin(util); | |
}, User.prototype.executeLogin = function (ns) { | |
var self = new Promise; | |
try { | |
this._loginStage1ResultsHandlerDelegate = new delegateManager(this.loginInProgressDelegate, this.loginInProgressDelegate.loginStage1ResultHandler); | |
this._loginStage1ErrorHandlerDelegate = new delegateManager(this.loginInProgressDelegate, this.loginInProgressDelegate.loginStage1ErrorHandler); | |
self.addEventListener(events.COMPLETE, this._loginStage1ResultsHandlerDelegate); | |
self.addEventListener(events.ERROR, this._loginStage1ErrorHandlerDelegate); | |
self.load(this.membersLoginPath, { | |
method: Promise.POST, | |
urlVariables: ns, | |
contentType: "application/x-www-form-urlencoded", | |
withCredentials: true | |
}); | |
} catch (s) { | |
self.removeEventListener(events.COMPLETE, this._loginStage1ResultsHandlerDelegate); | |
self.removeEventListener(events.ERROR, this._loginStage1ErrorHandlerDelegate); | |
} | |
}, User.prototype.stage1LoginCleanUp = function (event) { | |
var loader = event.target; | |
loader.removeEventListener(events.COMPLETE, this._loginStage1ResultsHandlerDelegate); | |
loader.removeEventListener(events.ERROR, this._loginStage1ErrorHandlerDelegate); | |
}, User.prototype.processLoginRedirects = function (type, t) { | |
var self = new Promise; | |
try { | |
this.loginInProgressDelegate = t; | |
this._loginStage2ResultsHandlerDelegate = new delegateManager(this.loginInProgressDelegate, this.loginInProgressDelegate.loginStage2ResultHandler); | |
this._loginStage2ErrorHandlerDelegate = new delegateManager(this.loginInProgressDelegate, this.loginInProgressDelegate.loginStage2ErrorHandler); | |
self.addEventListener(events.COMPLETE, this._loginStage2ResultsHandlerDelegate); | |
self.addEventListener(events.ERROR, this._loginStage2ErrorHandlerDelegate); | |
self.load(this.loginRedirectPath, { | |
method: Promise.POST, | |
urlVariables: type, | |
contentType: "application/x-www-form-urlencoded", | |
withCredentials: true | |
}); | |
} catch (a) { | |
self.removeEventListener(events.COMPLETE, this._loginStage2ResultsHandlerDelegate); | |
self.removeEventListener(events.ERROR, this._loginStage2ErrorHandlerDelegate); | |
} | |
}, User.prototype.stage2LoginCleanUp = function (event) { | |
var loader = event.target; | |
loader.removeEventListener(events.COMPLETE, this._loginStage2ResultsHandlerDelegate); | |
loader.removeEventListener(events.ERROR, this._loginStage2ErrorHandlerDelegate); | |
}, User.SInit = function () { | |
/** @type {string} */ | |
User.prototype.logoutPath = "//" + location.host.replace("www", "members") + "/Members/lp/logout/default.aspx"; | |
}(), User; | |
}(EventDispatcher); | |
exports.LoginAPI = Shake; | |
}(ns_loginlib_login || (ns_loginlib_login = {})), function (state) { | |
var name = ns_loginlib_utils.AlternativeAuthentication; | |
var cQuestion = ns_gen5_util.Singleton; | |
var SwaggerResource = ns_gen5_net.URLVariables; | |
var KeyboardEventListener = ns_loginlib_login.LoginAPI; | |
var s = ns_loginlib_data.LoginOrigin; | |
var a = ns_loginlib_data.LoginURLs; | |
var console = ns_gen5_util.CookieManager; | |
var size = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function init() { | |
this.altAuth = cQuestion.getInstance(name); | |
this.loginAPI = new KeyboardEventListener; | |
/** @type {string} */ | |
this.loginAPI.membersLoginPath = location.protocol + "//" + location.host.replace("www", "members") + a.URL_MEMBERS_DESKTOP_LOGIN; | |
this.loginAPI.loginRedirectPath = a.URL_LOGIN_DESKTOP_RESULTS; | |
} | |
return init.prototype.loginUser = function (password, res, variables, callback) { | |
this.kmlSelected = variables; | |
this.loginResultsDelegate = callback; | |
this.loginAPI.loginType = s.DesktopLogin; | |
this.loginAPI.loginStandardWeb(password, res, variables, this); | |
}, init.prototype.loginStage1ResultHandler = function (e) { | |
var response; | |
var res; | |
var isWiredAttr; | |
var lat; | |
var l; | |
var sid; | |
var $translate; | |
this.loginAPI.stage1LoginCleanUp(e); | |
response = e.data.split(",").join("&"); | |
res = new SwaggerResource(response); | |
isWiredAttr = res.getPairWithKey("notificationsRequired"); | |
if (isWiredAttr && "true" == isWiredAttr.toLowerCase()) { | |
console.SetCookieValue("session", "ntfr", "1"); | |
} | |
lat = res.getPairWithKey("txtKYCPID"); | |
if (lat && Number(lat) > 0) { | |
console.SetKYCPage(lat); | |
} | |
l = res.getPairWithKey("txtNuTKN"); | |
if (l) { | |
console.SetSessionId(l, this.getDomain()); | |
} else { | |
sid = res.getPairWithKey("txtPSTK"); | |
if (sid) { | |
console.SetSessionId(sid, this.getDomain()); | |
} | |
} | |
$translate = new SwaggerResource; | |
$translate.addPair("IS", "1"); | |
if (!this.kmlSelected) { | |
this.altAuth.terminate(); | |
} | |
this.loginAPI.processLoginRedirects($translate, this); | |
}, init.prototype.loginStage1ErrorHandler = function (e) { | |
this.loginAPI.stage1LoginCleanUp(e); | |
this.loginResultsDelegate.loginFailed(); | |
}, init.prototype.loginStage2ResultHandler = function (e) { | |
var _ref2; | |
var isLoggedIn; | |
var hour; | |
var r; | |
var m; | |
this.loginAPI.stage2LoginCleanUp(e); | |
_ref2 = e.data.split("|"); | |
/** @type {boolean} */ | |
isLoggedIn = "True" == _ref2[0]; | |
/** @type {boolean} */ | |
Locator.user.isLoggedIn = isLoggedIn; | |
if (isLoggedIn) { | |
console.SetLoginSuccess(true); | |
hour = _ref2[1]; | |
console.SetCookieValue("aps03", "lng", hour); | |
r = _ref2[3]; | |
console.SetCookieValue("aps03", "oty", r); | |
if (_ref2.length >= 6) { | |
m = _ref2[5]; | |
console.SetCookieValue("aps03", "ct", m); | |
} | |
if (this.loginResultsDelegate) { | |
this.loginResultsDelegate.loginSuccess(); | |
} | |
} else { | |
if (this.loginResultsDelegate) { | |
console.SetLoginSuccess(false); | |
this.loginResultsDelegate.loginFailed(); | |
} | |
} | |
}, init.prototype.loginStage2ErrorHandler = function (e) { | |
this.loginAPI.stage2LoginCleanUp(e); | |
this.loginResultsDelegate.loginFailed(); | |
}, init.prototype.getDomain = function () { | |
return this.domain || (this.domain = this.getDomainFromUri(window.location.hostname)), this.domain; | |
}, init.prototype.getDomainFromUri = function (e) { | |
var i; | |
var args; | |
var OBJECT_REG; | |
if (-1 === e.indexOf(".")) { | |
return e; | |
} | |
/** @type {number} */ | |
i = 0; | |
args = e.split(".").splice(1); | |
/** @type {!RegExp} */ | |
OBJECT_REG = new RegExp("\\d"); | |
/** @type {number} */ | |
i = 0; | |
for (; i < args.length && !OBJECT_REG.test(args[i]); i++) { | |
} | |
return args.slice(i).join("."); | |
}, init; | |
}(); | |
state.StandardLoginWebDelegate = size; | |
}(ns_loginlib_delegates || (ns_loginlib_delegates = {})), function (text) { | |
var name = ns_loginlib_utils.AlternativeAuthentication; | |
var cQuestion = ns_gen5_util.Singleton; | |
var o_dialog = ns_weblib_util.WebsiteConfig; | |
var pkgEl = ns_navlib_util.WebsiteNavigationManager; | |
var Twitter = ns_gen5_net.URLVariables; | |
var Browser = ns_webconsolelib_util.Browser; | |
var SelectGroup = ns_loginlib_login.LoginAPI; | |
var tsip_event_register_type_e = ns_loginlib_data.LoginOrigin; | |
var community = ns_loginlib_data.LoginStatuses; | |
var u = ns_loginlib_data.LoginURLs; | |
var log = ns_gen5_util.CookieManager; | |
var res = ns_navlib_util.ExternalLinkManager; | |
var falseV = ns_sitepreferenceslib_util.UserPreferences; | |
var B = ns_loginlib_utils.LoginPreferences; | |
var verifierDevicesNotPadded = ns_loginlib_utils.LoginSessionPreferences; | |
var A = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function LocationSelect() { | |
this.altAuth = cQuestion.getInstance(name); | |
this.loginAPI = new SelectGroup; | |
this.loginAPI.membersLoginPath = u.URL_MEMBERS_LOGIN; | |
this.loginAPI.loginRedirectPath = u.URL_LOGIN_RESULTS; | |
} | |
return LocationSelect.prototype.loginUser = function (password, res, variables, callback) { | |
this.kmlSelected = variables; | |
this.loginResultsDelegate = callback; | |
this.loginAPI.loginType = o_dialog.INSTANT_BET ? tsip_event_register_type_e.MobileInstantbetLogin : tsip_event_register_type_e.MobileLogin; | |
this.loginAPI.loginStandard(password, res, variables, this); | |
}, LocationSelect.prototype.loginStage1ResultHandler = function (e) { | |
this.loginAPI.stage1LoginCleanUp(e); | |
try { | |
/** @type {*} */ | |
var user = JSON.parse(e.data); | |
if (!(user.authenticationStatus && user.authenticationStatus !== community.STATUS_NOT_AUTHENTICATED || user.notificationsRequired || user.kyc)) { | |
return void this.loginResultsDelegate.loginFailed(); | |
} | |
if (user.notificationsRequired || user.kyc) { | |
this.altAuth.setSuppressAltAuthPrompt(true); | |
log.SetCookieValue("session", "ntfr", user.notificationsRequired ? "1" : ""); | |
if (user.kyc) { | |
falseV.AdditionalPreferences(verifierDevicesNotPadded).kycOrSecondAuthPrevPage = pkgEl.CurrentPageData; | |
} | |
} | |
if (!this.kmlSelected) { | |
this.altAuth.terminate(); | |
} | |
this.processLoginResults(); | |
} catch (i) { | |
return void this.loginResultsDelegate.loginFailed(); | |
} | |
}, LocationSelect.prototype.processLoginResults = function () { | |
var t; | |
var result; | |
var name; | |
/** @type {boolean} */ | |
falseV.AdditionalPreferences(verifierDevicesNotPadded).passcodeJustLoggedIn = true; | |
t = new Twitter; | |
t.addPair("data", "true"); | |
if (pkgEl.CurrentPageData) { | |
t.addPair("target", pkgEl.CurrentPageData.replace(/#/g, "/")); | |
} | |
t.addPair("dt", Browser.getDeviceStylePrefix() == Browser.TABLET_DEVICE_PREFIX ? "w" : "n"); | |
result = falseV.AdditionalPreferences(B); | |
name = log.GetCookieAttributeValue("aaat", "un") || ""; | |
if (result.appType) { | |
t.addPair("appType", result.appType); | |
} | |
if (result.appVersion) { | |
t.addPair("appVersion", result.appVersion); | |
} | |
if (this.altAuth.retrieveAuthToken()) { | |
t.addPair("at", this.altAuth.retrieveAuthToken()); | |
} | |
if (this.altAuth.retrieveDeviceId()) { | |
t.addPair("di", this.altAuth.retrieveDeviceId()); | |
} | |
if (name) { | |
t.addPair("un", name); | |
} | |
this.loginAPI.processLoginRedirects(t, this); | |
}, LocationSelect.prototype.loginStage1ErrorHandler = function (e) { | |
this.loginAPI.stage1LoginCleanUp(e); | |
this.loginResultsDelegate.loginFailed(); | |
}, LocationSelect.prototype.loginStage2ResultHandler = function (e) { | |
var response; | |
var serverRecoveryCode; | |
this.loginAPI.stage2LoginCleanUp(e); | |
try { | |
if (response = JSON.parse(e.data), response.redirectURL) { | |
return void res.Go(response.redirectURL); | |
} | |
serverRecoveryCode = response.appStatus; | |
if (serverRecoveryCode == community.STATUS_LOGIN_FAILED) { | |
if (this.loginResultsDelegate) { | |
this.loginResultsDelegate.loginFailed(); | |
} | |
} else { | |
if (this.loginResultsDelegate) { | |
if ("1" !== log.GetCookieAttributeValue("session", "ntfr")) { | |
/** @type {boolean} */ | |
falseV.AdditionalPreferences(verifierDevicesNotPadded).showBetSlip = true; | |
} | |
this.loginResultsDelegate.loginSuccess(); | |
} | |
} | |
} catch (n) { | |
return void this.loginResultsDelegate.loginFailed(); | |
} | |
}, LocationSelect.prototype.loginStage2ErrorHandler = function (e) { | |
this.loginAPI.stage2LoginCleanUp(e); | |
this.loginResultsDelegate.loginFailed(); | |
}, LocationSelect; | |
}(); | |
text.StandardLoginDelegate = A; | |
}(ns_loginlib_delegates || (ns_loginlib_delegates = {})), function (text) { | |
var pkgEl = ns_navlib_util.WebsiteNavigationManager; | |
var gl = ns_loginlib_data.LoginOrigin; | |
var name = ns_loginlib_utils.AlternativeAuthentication; | |
var cQuestion = ns_gen5_util.Singleton; | |
var buffers = ns_weblib_util.WebsiteConfig; | |
var SelectGroup = ns_loginlib_login.LoginAPI; | |
var DatumTag = ns_gen5_net.URLVariables; | |
var Browser = ns_webconsolelib_util.Browser; | |
var cookie = ns_loginlib_data.LoginStatuses; | |
var u = ns_loginlib_data.LoginURLs; | |
var log = ns_gen5_util.CookieManager; | |
var res = ns_navlib_util.ExternalLinkManager; | |
var falseV = ns_sitepreferenceslib_util.UserPreferences; | |
var B = ns_loginlib_utils.LoginPreferences; | |
var verifierDevicesNotPadded = ns_loginlib_utils.LoginSessionPreferences; | |
var A = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function LocationSelect() { | |
this.altAuth = cQuestion.getInstance(name); | |
this.loginAPI = new SelectGroup; | |
this.loginAPI.membersLoginPath = u.URL_MEMBERS_LOGIN; | |
this.loginAPI.loginRedirectPath = u.URL_LOGIN_RESULTS; | |
} | |
return LocationSelect.prototype.loginUser = function (object) { | |
this.loginResultsDelegate = object; | |
this.loginAPI.loginType = buffers.INSTANT_BET ? gl.MobileInstantbetLogin : gl.MobileLogin; | |
this.loginAPI.loginKML(this); | |
}, LocationSelect.prototype.loginStage1ResultHandler = function (e) { | |
this.loginAPI.stage1LoginCleanUp(e); | |
try { | |
/** @type {*} */ | |
var user = JSON.parse(e.data); | |
if (!user.authenticationStatus || user.authenticationStatus === cookie.STATUS_NOT_AUTHENTICATED) { | |
return void (this.altAuth.hasAlternativeAuthEnabled() && this.altAuth.getKMLActive() && (this.altAuth.fallbackToStandard(), this.loginResultsDelegate.loginFailed())); | |
} | |
if (user.notificationsRequired || user.kyc) { | |
this.altAuth.setSuppressAltAuthPrompt(true); | |
log.SetCookieValue("session", "ntfr", user.notificationsRequired ? "1" : ""); | |
if (user.kyc) { | |
falseV.AdditionalPreferences(verifierDevicesNotPadded).kycOrSecondAuthPrevPage = pkgEl.CurrentPageData; | |
} | |
} | |
this.processLoginResults(); | |
} catch (n) { | |
return this.altAuth.fallbackToStandard(), void this.loginResultsDelegate.loginFailed(); | |
} | |
}, LocationSelect.prototype.processLoginResults = function () { | |
var result; | |
var name; | |
var t = new DatumTag; | |
t.addPair("data", "true"); | |
if (pkgEl.CurrentPageData) { | |
t.addPair("target", pkgEl.CurrentPageData.replace(/#/g, "/")); | |
} | |
t.addPair("dt", Browser.getDeviceStylePrefix() == Browser.TABLET_DEVICE_PREFIX ? "w" : "n"); | |
result = falseV.AdditionalPreferences(B); | |
name = log.GetCookieAttributeValue("aaat", "un") || ""; | |
if (result.appType) { | |
t.addPair("appType", result.appType); | |
} | |
if (result.appVersion) { | |
t.addPair("appVersion", result.appVersion); | |
} | |
if (this.altAuth.retrieveAuthToken()) { | |
t.addPair("at", this.altAuth.retrieveAuthToken()); | |
} | |
if (this.altAuth.retrieveDeviceId()) { | |
t.addPair("di", this.altAuth.retrieveDeviceId()); | |
} | |
if (name) { | |
t.addPair("un", name); | |
} | |
this.loginAPI.processLoginRedirects(t, this); | |
}, LocationSelect.prototype.loginStage1ErrorHandler = function (e) { | |
this.loginAPI.stage1LoginCleanUp(e); | |
this.loginResultsDelegate.loginFailed(); | |
}, LocationSelect.prototype.loginStage2ResultHandler = function (e) { | |
var response; | |
var resourcePort; | |
this.loginAPI.stage2LoginCleanUp(e); | |
try { | |
if (response = JSON.parse(e.data), response.redirectURL) { | |
return void res.Go(response.redirectURL); | |
} | |
resourcePort = response.appStatus; | |
if (resourcePort == cookie.STATUS_LOGIN_FAILED) { | |
if (this.loginResultsDelegate) { | |
this.loginResultsDelegate.loginFailed(); | |
} | |
} else { | |
if (this.loginResultsDelegate) { | |
if ("1" !== log.GetCookieAttributeValue("session", "ntfr")) { | |
/** @type {boolean} */ | |
falseV.AdditionalPreferences(verifierDevicesNotPadded).showBetSlip = true; | |
} | |
this.loginResultsDelegate.loginSuccess(); | |
} | |
} | |
} catch (n) { | |
return void this.loginResultsDelegate.loginFailed(); | |
} | |
}, LocationSelect.prototype.loginStage2ErrorHandler = function (e) { | |
this.loginAPI.stage2LoginCleanUp(e); | |
this.loginResultsDelegate.loginFailed(); | |
}, LocationSelect; | |
}(); | |
text.KMLLoginDelegate = A; | |
}(ns_loginlib_delegates || (ns_loginlib_delegates = {})), function (text) { | |
var name = ns_loginlib_utils.AlternativeAuthentication; | |
var cQuestion = ns_gen5_util.Singleton; | |
var SelectGroup = ns_loginlib_login.LoginAPI; | |
var that = ns_loginlib_data.LoginURLs; | |
var tsip_event_register_type_e = ns_loginlib_data.LoginOrigin; | |
var cookie = ns_loginlib_data.LoginStatuses; | |
var log = ns_gen5_util.CookieManager; | |
var res = ns_navlib_util.ExternalLinkManager; | |
var pkgEl = ns_navlib_util.WebsiteNavigationManager; | |
var DatumTag = ns_gen5_net.URLVariables; | |
var Browser = ns_webconsolelib_util.Browser; | |
var falseV = ns_sitepreferenceslib_util.UserPreferences; | |
var B = ns_loginlib_utils.LoginPreferences; | |
var verifierDevicesNotPadded = ns_loginlib_utils.LoginSessionPreferences; | |
var o_dialog = ns_weblib_util.WebsiteConfig; | |
var A = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function LocationSelect() { | |
this.altAuth = cQuestion.getInstance(name); | |
this.loginAPI = new SelectGroup; | |
this.loginAPI.membersLoginPath = that.URL_MEMBERS_LOGIN; | |
this.loginAPI.loginRedirectPath = that.URL_LOGIN_RESULTS; | |
} | |
return LocationSelect.prototype.loginUser = function (password, object) { | |
this.loginResultsDelegate = object; | |
this.loginAPI.loginType = o_dialog.INSTANT_BET ? tsip_event_register_type_e.MobileInstantbetLogin : tsip_event_register_type_e.MobileLogin; | |
this.loginAPI.loginPasscode(password, this); | |
}, LocationSelect.prototype.loginStage1ResultHandler = function (e) { | |
this.loginAPI.stage1LoginCleanUp(e); | |
try { | |
/** @type {*} */ | |
var user = JSON.parse(e.data); | |
if (!user.authenticationStatus || user.authenticationStatus === cookie.STATUS_NOT_AUTHENTICATED) { | |
return this.altAuth.getKMLActive() && (this.loginResultsDelegate.loginFailed(), this.altAuth.fallbackToStandard()), void this.loginResultsDelegate.loginFailed(); | |
} | |
if (user.notificationsRequired || user.kyc) { | |
this.altAuth.setSuppressAltAuthPrompt(true); | |
log.SetCookieValue("session", "ntfr", user.notificationsRequired ? "1" : ""); | |
if (user.kyc) { | |
falseV.AdditionalPreferences(verifierDevicesNotPadded).kycOrSecondAuthPrevPage = pkgEl.CurrentPageData; | |
} | |
} | |
this.altAuth.terminate(); | |
this.processLoginResults(); | |
} catch (i) { | |
return this.altAuth.fallbackToStandard(), void this.loginResultsDelegate.loginFailed(); | |
} | |
}, LocationSelect.prototype.processLoginResults = function () { | |
var result; | |
var name; | |
var t = new DatumTag; | |
t.addPair("data", "true"); | |
if (pkgEl.CurrentPageData) { | |
t.addPair("target", pkgEl.CurrentPageData.replace(/#/g, "/")); | |
} | |
t.addPair("dt", Browser.getDeviceStylePrefix() == Browser.TABLET_DEVICE_PREFIX ? "w" : "n"); | |
result = falseV.AdditionalPreferences(B); | |
name = log.GetCookieAttributeValue("aaat", "un") || ""; | |
if (result.appType) { | |
t.addPair("appType", result.appType); | |
} | |
if (result.appVersion) { | |
t.addPair("appVersion", result.appVersion); | |
} | |
if (this.altAuth.retrieveAuthToken()) { | |
t.addPair("at", this.altAuth.retrieveAuthToken()); | |
} | |
if (this.altAuth.retrieveDeviceId()) { | |
t.addPair("di", this.altAuth.retrieveDeviceId()); | |
} | |
if (name) { | |
t.addPair("un", name); | |
} | |
this.loginAPI.processLoginRedirects(t, this); | |
}, LocationSelect.prototype.loginStage1ErrorHandler = function (e) { | |
this.loginAPI.stage1LoginCleanUp(e); | |
this.loginResultsDelegate.loginFailed(); | |
}, LocationSelect.prototype.loginStage2ResultHandler = function (e) { | |
var response; | |
var resourcePort; | |
this.loginAPI.stage2LoginCleanUp(e); | |
try { | |
if (response = JSON.parse(e.data), response.redirectURL) { | |
return void res.Go(response.redirectURL); | |
} | |
resourcePort = response.appStatus; | |
if (resourcePort == cookie.STATUS_LOGIN_FAILED) { | |
this.loginResultsDelegate.loginFailed(); | |
} else { | |
if (this.loginResultsDelegate) { | |
if ("1" !== log.GetCookieAttributeValue("session", "ntfr")) { | |
/** @type {boolean} */ | |
falseV.AdditionalPreferences(verifierDevicesNotPadded).showBetSlip = true; | |
} | |
this.loginResultsDelegate.loginSuccess(); | |
} | |
} | |
} catch (n) { | |
return void this.loginResultsDelegate.loginFailed(); | |
} | |
}, LocationSelect.prototype.loginStage2ErrorHandler = function (e) { | |
this.loginAPI.stage2LoginCleanUp(e); | |
this.loginResultsDelegate.loginFailed(); | |
}, LocationSelect; | |
}(); | |
text.PasscodeLoginDelegate = A; | |
}(ns_loginlib_delegates || (ns_loginlib_delegates = {})), function (HTMLSectionBuilder) { | |
var name = ns_loginlib_utils.AlternativeAuthentication; | |
var cQuestion = ns_gen5_util.Singleton; | |
var b = ns_weblib_util.WebsiteConfig; | |
var SelectGroup = ns_loginlib_login.LoginAPI; | |
var s = ns_loginlib_data.LoginURLs; | |
var a = ns_loginlib_data.LoginOrigin; | |
var cookie = ns_loginlib_data.LoginStatuses; | |
var log = ns_gen5_util.CookieManager; | |
var res = ns_navlib_util.ExternalLinkManager; | |
var pkgEl = ns_navlib_util.WebsiteNavigationManager; | |
var DatumTag = ns_gen5_net.URLVariables; | |
var Browser = ns_webconsolelib_util.Browser; | |
var p = ns_loginlib_data.LoginFailReasons; | |
var falseV = ns_sitepreferenceslib_util.UserPreferences; | |
var B = ns_loginlib_utils.LoginPreferences; | |
var A = ns_loginlib_utils.LoginSessionPreferences; | |
var HTMLSection = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function LocationSelect() { | |
this.altAuth = cQuestion.getInstance(name); | |
this.loginAPI = new SelectGroup; | |
this.loginAPI.membersLoginPath = s.URL_MEMBERS_LOGIN; | |
this.loginAPI.loginRedirectPath = s.URL_LOGIN_RESULTS; | |
} | |
return LocationSelect.prototype.loginUser = function (password, object) { | |
this.loginResultsDelegate = object; | |
this.loginAPI.loginType = b.INSTANT_BET ? a.MobileInstantbetLogin : a.MobileLogin; | |
this.loginAPI.loginBiometric(password, this); | |
}, LocationSelect.prototype.loginStage1ResultHandler = function (e) { | |
this.loginAPI.stage1LoginCleanUp(e); | |
try { | |
/** @type {*} */ | |
var user = JSON.parse(e.data); | |
if (!user.authenticationStatus || user.authenticationStatus === cookie.STATUS_NOT_AUTHENTICATED) { | |
return this.altAuth.getKMLActive() && (this.loginResultsDelegate.loginFailed(p.INVALID_CREDENTIALS), this.altAuth.fallbackToStandard()), void (user.exceededAttempts || user.noPinSet ? this.loginResultsDelegate.loginFailed(p.EXCEEDED_ATTEMPTS) : user.authenticationMethodNotAllowed ? this.loginResultsDelegate.loginFailed(p.AUTHENTICATION_NOT_ALLOWED) : this.loginResultsDelegate.loginFailed(p.INVALID_CREDENTIALS)); | |
} | |
if (user.notificationsRequired || user.kyc) { | |
this.altAuth.setSuppressAltAuthPrompt(true); | |
log.SetCookieValue("session", "ntfr", user.notificationsRequired ? "1" : ""); | |
if (user.kyc) { | |
falseV.AdditionalPreferences(A).kycOrSecondAuthPrevPage = pkgEl.CurrentPageData; | |
} | |
} | |
this.altAuth.terminate(); | |
this.processLoginResults(); | |
} catch (i) { | |
return this.altAuth.fallbackToStandard(), void this.loginResultsDelegate.loginFailed(); | |
} | |
}, LocationSelect.prototype.processLoginResults = function () { | |
var result; | |
var name; | |
var t = new DatumTag; | |
t.addPair("data", "true"); | |
if (pkgEl.CurrentPageData) { | |
t.addPair("target", pkgEl.CurrentPageData.replace(/#/g, "/")); | |
} | |
t.addPair("dt", Browser.getDeviceStylePrefix() == Browser.TABLET_DEVICE_PREFIX ? "w" : "n"); | |
result = falseV.AdditionalPreferences(B); | |
name = log.GetCookieAttributeValue("aaat", "un") || ""; | |
if (result.appType) { | |
t.addPair("appType", result.appType); | |
} | |
if (result.appVersion) { | |
t.addPair("appVersion", result.appVersion); | |
} | |
if (this.altAuth.retrieveAuthToken()) { | |
t.addPair("at", this.altAuth.retrieveAuthToken()); | |
} | |
if (this.altAuth.retrieveDeviceId()) { | |
t.addPair("di", this.altAuth.retrieveDeviceId()); | |
} | |
if (name) { | |
t.addPair("un", name); | |
} | |
this.loginAPI.processLoginRedirects(t, this); | |
}, LocationSelect.prototype.loginStage1ErrorHandler = function (e) { | |
this.loginAPI.stage1LoginCleanUp(e); | |
this.loginResultsDelegate.loginFailed(); | |
}, LocationSelect.prototype.loginStage2ResultHandler = function (e) { | |
var response; | |
var resourcePort; | |
this.loginAPI.stage2LoginCleanUp(e); | |
try { | |
if (response = JSON.parse(e.data), response.redirectURL) { | |
return void res.Go(response.redirectURL); | |
} | |
resourcePort = response.appStatus; | |
if (resourcePort == cookie.STATUS_LOGIN_FAILED) { | |
this.loginResultsDelegate.loginFailed(); | |
} else { | |
if (this.loginResultsDelegate) { | |
if ("1" !== log.GetCookieAttributeValue("session", "ntfr")) { | |
/** @type {boolean} */ | |
falseV.AdditionalPreferences(A).showBetSlip = true; | |
} | |
this.loginResultsDelegate.loginSuccess(); | |
} | |
} | |
} catch (n) { | |
return void this.loginResultsDelegate.loginFailed(); | |
} | |
}, LocationSelect.prototype.loginStage2ErrorHandler = function (e) { | |
this.loginAPI.stage2LoginCleanUp(e); | |
this.loginResultsDelegate.loginFailed(); | |
}, LocationSelect; | |
}(); | |
HTMLSectionBuilder.BiometricLoginDelegate = HTMLSection; | |
}(ns_loginlib_delegates || (ns_loginlib_delegates = {})); | |
var ns_podlib_events; | |
var ns_podlib_ui; | |
var ns_podlib_util; | |
/** @type {string} */ | |
SITE_ROOT_PATH = "sportsnj"; | |
!function (state) { | |
var size = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function e() { | |
return null !== _super && _super.apply(this, arguments) || this; | |
} | |
return __extends(e, _super), e.COLUMN_WIDTH_CHANGED = "COLUMN_WIDTH_CHANGED", e; | |
}(ns_gen5_events.Event365); | |
state.ColumnWidthChangeEvent = size; | |
}(ns_podlib_events || (ns_podlib_events = {})), function (regr) { | |
var Y = ns_gen5_util.MathUtil; | |
var Module = ns_gen5_ui.Module; | |
var Xtract = ns_webconsolelib_util.MediaType; | |
var node = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function $() { | |
return null !== _super && _super.apply(this, arguments) || this; | |
} | |
return __extends($, _super), $.prototype.moduleReady = function () { | |
var name; | |
var baseProvider; | |
_super.prototype.moduleReady.call(this); | |
this.addStyle("po-PodModuleBase"); | |
if (this.initObject.isRightColumn) { | |
this.addStyle("po-PodModuleBase_RightColumn"); | |
} | |
name = this.getElementName(); | |
baseProvider = Xtract.MediaTypeIdOverride[name]; | |
if (baseProvider && baseProvider.currentMediaTypeId == this.mediaTypeId) { | |
this.mediaTypeId = baseProvider.mediaTypeIdOverride; | |
} | |
}, $.prototype.hide = function () { | |
this.setVisible(false); | |
this.removeStyle("po-PodModuleBase"); | |
}, $.prototype.show = function () { | |
this.setVisible(true); | |
this.addStyle("po-PodModuleBase"); | |
}, $.prototype.getPageData = function () { | |
var node; | |
var currentDataItemIdentifyingStr; | |
var x; | |
var text; | |
var type; | |
var d; | |
var ctrl; | |
var p; | |
var S; | |
var _; | |
var chainid2; | |
var $; | |
var key = this.initObject.topic; | |
return key && (node = Locator.treeLookup.getReference(key), node && node.parent && node.parent.parent) ? (this.podType = node.data.PT, currentDataItemIdentifyingStr = node.data.IT, x = node.data.PG, text = node.data.CN, type = currentDataItemIdentifyingStr.split("_"), d = type[3].substr(1), ctrl = node.parent.data.PO ? (Y.StringToNumber(node.parent.data.PO) + 1).toString() : (Y.StringToNumber(node.parent.data.OR) + 1).toString(), p = (Y.StringToNumber(node.data.IO) + 1).toString(), S = node.data.PP, | |
_ = type[4].substr(1), chainid2 = node.parent.parent.data.IT, $ = "0", "S" == chainid2.substr(0, 1) && ($ = chainid2.substr(2, chainid2.indexOf("_") - 2)), "#D^" + this.podType + "#B" + $ + "#Z^" + text + "#O" + p + "#C^" + d + "#p^" + ctrl + "#X" + x + "#O^" + S + "#w" + _ + "#t" + this.initObject.topicList + "#p" + node.parent.data.IT) : null; | |
}, $.prototype.getElementName = function () { | |
var elementName; | |
var element = this.parent; | |
for (; element;) { | |
if (elementName = element.elementName) { | |
return elementName; | |
} | |
element = element.parent; | |
} | |
return ""; | |
}, $.prototype.dispose = function () { | |
this.removeStyle("po-PodModuleBase"); | |
_super.prototype.dispose.call(this); | |
}, __decorate([override], $.prototype, "moduleReady", null), __decorate([override], $.prototype, "dispose", null), $; | |
}(Module); | |
regr.PodModuleBase = node; | |
}(ns_podlib_ui || (ns_podlib_ui = {})), function (HTMLSectionBuilder) { | |
var exports = ns_gen5_util.InfoReporter; | |
var strBuff = ns_gen5_util.InfoReporterGroups; | |
var HTMLSection = function () { | |
/** | |
* @return {undefined} | |
*/ | |
function commonJs() { | |
} | |
return commonJs.ShouldFilter = function (name, value) { | |
/** @type {boolean} */ | |
var handleLambda = false; | |
/** @type {null} */ | |
var bl = null; | |
/** @type {number} */ | |
commonJs.FilterToken.lastIndex = 0; | |
for (; !handleLambda && null !== (bl = commonJs.FilterToken.exec(name));) { | |
/** @type {boolean} */ | |
handleLambda = !(1 & bl.index); | |
} | |
return handleLambda && value && exports.Trace(strBuff.FILTERING_ENTRY, "Pod excluded a topic from " + value), handleLambda; | |
}, commonJs.FilterToken = null, commonJs; | |
}(); | |
HTMLSectionBuilder.StemFilter = HTMLSection; | |
}(ns_podlib_util || (ns_podlib_util = {})); | |
var ns_scrollerlib_ui; | |
/** @type {string} */ | |
SITE_ROOT_PATH = "sportsnj"; | |
!function (Models) { | |
var Container; | |
var Component = ns_gen5_ui.Component; | |
var NestedRepresentation = ns_gen5_ui_controls.HorizontalScroller; | |
var CaptureDevice = ns_gen5_events.ApplicationEvent; | |
var app = ns_gen5_ui.Application; | |
var delegateManager = ns_gen5_util.Delegate; | |
var Parameter = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function b() { | |
var me = _super.call(this) || this; | |
return me.fired = false, me.totalChildWidth = 0, me.multiplier = 1.5, me.buttonMargin = 20, me.baseStyle = "scr-NavBarScroller", me; | |
} | |
return __extends(b, _super), b.prototype.createChildren = function () { | |
/** @type {number} */ | |
this.scrollAmmountModifier = 1.7; | |
this.directions = { | |
LEFT: this.baseStyle + "_LeftArrow", | |
RIGHT: this.baseStyle + "_RightArrow" | |
}; | |
this.arrowButtonType = Container; | |
_super.prototype.createChildren.call(this); | |
/** @type {string} */ | |
this.hiddenStyle = this.baseStyle + "_Hidden"; | |
/** @type {string} */ | |
this.parentStyle = "Visible"; | |
this._leftButton.addStyle("scr-NavBarScroller_Hidden"); | |
this._rightButton.addStyle("scr-NavBarScroller_Hidden"); | |
if (this.parent && this.parent.parent) { | |
this.container = this.parent.parent; | |
} | |
this.delegate_resizeDebouncer = new delegateManager(this, this.resizeDebouncer); | |
app.currentApplication.addEventListener(CaptureDevice.WIDTH_CHANGED, this.delegate_resizeDebouncer); | |
this.recalibrate(); | |
}, b.prototype.recalibrate = function () { | |
var dashboardMainChart = this; | |
Locator.validationManager.callPostValidation(function () { | |
dashboardMainChart.resizeHandler(null); | |
}); | |
}, b.prototype._travel = function (config, func) { | |
this.graceSpace = this.graceSpace || 20; | |
if (!this.buttonWidth) { | |
/** @type {number} */ | |
this.buttonWidth = this._rightButton.getElement().clientWidth / this.multiplier; | |
} | |
_super.prototype._travel.call(this, config, func); | |
this.checkArrowVisibility(); | |
}, b.prototype.resizeHandler = function (size) { | |
var element; | |
var cells; | |
var fullLength; | |
var length; | |
var i; | |
var l; | |
var offset; | |
var value; | |
/** @type {string} */ | |
var style = this.baseStyle + "_Dis"; | |
this._rightButton.removeStyle(style); | |
this._leftButton.removeStyle(style); | |
element = this._scrollContent.getElement(); | |
this.scrollContentWidth = element.clientWidth; | |
cells = element.children; | |
/** @type {number} */ | |
fullLength = 0; | |
length = cells.length; | |
/** @type {number} */ | |
i = 0; | |
for (; length > i; i++) { | |
l = cells[i].clientWidth + this.buttonMargin; | |
fullLength = fullLength + l; | |
} | |
this.totalChildWidth = fullLength; | |
/** @type {number} */ | |
this.graceSpace = 20; | |
offset = this._rightButton.getElement().clientWidth; | |
/** @type {number} */ | |
value = this.scrollContentWidth - offset; | |
/** @type {number} */ | |
this.max_x_pos = value - element.scrollWidth; | |
if (this.endPos - this.graceSpace < this.max_x_pos) { | |
/** @type {number} */ | |
this.endPos = this.max_x_pos; | |
this._rightButton.addStyle(style); | |
} | |
if (this.endPos + this.graceSpace > 0) { | |
/** @type {number} */ | |
this.endPos = 0; | |
this._leftButton.addStyle("scr-NavBarScroller_Hidden"); | |
this._leftButton.addStyle(style); | |
} | |
if (this.endPos || 0 == this.endPos) { | |
/** @type {string} */ | |
element.style.left = this.endPos + "px"; | |
} | |
this.checkArrowVisibility(); | |
}, b.prototype.checkArrowVisibility = function () { | |
if (this.endPos) { | |
this._leftButton.removeStyle("scr-NavBarScroller_Hidden"); | |
if (this.container) { | |
this.container.addStyle("scr-NavBarScroller_LeftArrow" + this.parentStyle); | |
} | |
} else { | |
this._leftButton.addStyle("scr-NavBarScroller_Hidden"); | |
if (this.container) { | |
this.container.removeStyle("scr-NavBarScroller_LeftArrow" + this.parentStyle); | |
} | |
} | |
if (this.scrollContentWidth >= this.totalChildWidth) { | |
this._rightButton.addStyle("scr-NavBarScroller_Hidden"); | |
if (this.container) { | |
this.container.removeStyle("scr-NavBarScroller_RightArrow" + this.parentStyle); | |
} | |
} else { | |
this._rightButton.removeStyle("scr-NavBarScroller_Hidden"); | |
if (this.container) { | |
this.container.addStyle("scr-NavBarScroller_RightArrow" + this.parentStyle); | |
} | |
} | |
}, b.prototype.resizeDebouncer = function (size) { | |
var me = this; | |
if (!this.fired) { | |
/** @type {boolean} */ | |
this.fired = true; | |
Locator.validationManager.callPostValidation(function () { | |
Locator.validationManager.callPostValidation(function () { | |
me.resizeHandler(size); | |
}); | |
/** @type {boolean} */ | |
me.fired = false; | |
}); | |
} | |
}, b.prototype.addArrowButtonStyle = function (styleText) { | |
this._leftButton.addStyle(styleText); | |
this._rightButton.addStyle(styleText); | |
}, b.prototype.resetScrollPosition = function () { | |
/** @type {number} */ | |
var config = 1e4; | |
this._travel(config); | |
}, b.prototype.dispose = function () { | |
app.currentApplication.removeEventListener(CaptureDevice.WIDTH_CHANGED, this.delegate_resizeDebouncer); | |
}, b; | |
}(NestedRepresentation); | |
Models.NavBarScroller = Parameter; | |
Container = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function e() { | |
return null !== _super && _super.apply(this, arguments) || this; | |
} | |
return __extends(e, _super), e.prototype.createChildren = function () { | |
if (this.direction) { | |
this.addStyle(this.direction); | |
} | |
}, e; | |
}(Component); | |
}(ns_scrollerlib_ui || (ns_scrollerlib_ui = {})), function (Models) { | |
var Surface = ns_gen5_ui.GenericStemRenderer; | |
var NestedRepresentation = ns_gen5_ui.ComponentStemBase; | |
var Validation = Models.NavBarScroller; | |
var Parameter = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function ChatBuffer() { | |
var style = _super.call(this) || this; | |
return style.scrollerType = Validation, style.baseStyle = "scr-ScrollableHorizontalNavBar", style; | |
} | |
return __extends(ChatBuffer, _super), ChatBuffer.prototype.createChildren = function () { | |
this.addStyle(this.baseStyle); | |
this.buttonContainer = new Surface; | |
this.buttonContainer.childType = this.childType; | |
this.buttonContainer.stem = this.stem; | |
/** @type {string} */ | |
var style = this.baseStyle + "_ButtonContainer"; | |
this.buttonContainer.addStyle(style); | |
this.buttonContainer.createChildInstance = this.createChildInstance; | |
if (!this.scrollable) { | |
this.scrollable = new this.scrollerType; | |
} | |
if (this.scollerBaseStyle) { | |
this.scrollable.baseStyle = this.scollerBaseStyle; | |
} | |
this.scrollable.setScrollContent(this.buttonContainer); | |
this.appendChild(this.scrollable); | |
}, ChatBuffer.prototype.detatchStem = function () { | |
this.scrollable.dispose(); | |
_super.prototype.detatchStem.call(this); | |
}, ChatBuffer.prototype.resetScrollPosition = function () { | |
this.scrollable.resetScrollPosition(); | |
}, ChatBuffer.prototype.recalibrateScroller = function () { | |
this.scrollable.recalibrate(); | |
}, ChatBuffer; | |
}(NestedRepresentation); | |
Models.ScrollableHorizontalNavBar = Parameter; | |
}(ns_scrollerlib_ui || (ns_scrollerlib_ui = {})), function (result) { | |
var Component = ns_gen5_ui.Component; | |
var Browser = ns_webconsolelib_util.Browser; | |
var con = ns_gen5_util.Timer; | |
var TimerEvent = ns_gen5_util.TimerEvent; | |
var delegateManager = ns_gen5_util.Delegate; | |
/** @type {number} */ | |
var tickZoom = 500; | |
/** @type {string} */ | |
var touchstart = "mousedown"; | |
/** @type {string} */ | |
var touchmove = "mousemove"; | |
/** @type {string} */ | |
var touchend = "mouseup"; | |
/** @type {string} */ | |
var eventName = "keydown"; | |
/** @type {string} */ | |
var type = "mouseover"; | |
/** @type {string} */ | |
var end = "mouseout"; | |
/** @type {string} */ | |
var media = "wheel"; | |
/** @type {string} */ | |
var nativeSignal = "mousewheel"; | |
/** @type {string} */ | |
var DOM_MOUSE_SCROLL = "DOMMouseScroll"; | |
/** @type {string} */ | |
var m = "onwheel" in document.createElement("div") ? media : void 0 !== document.onmousewheel ? nativeSignal : DOM_MOUSE_SCROLL; | |
/** @type {number} */ | |
var quasimodeKeycode = 40; | |
/** @type {number} */ | |
var SHIFT_KEY = 38; | |
var name = function (_super) { | |
/** | |
* @return {?} | |
*/ | |
function init() { | |
var self = null !== _super && _super.apply(this, arguments) || this; | |
return self.scrollbarHeightCheckInterval = tickZoom, self.heightChanged = false, self.scrollListener = function (e) { | |
return self.scrollHandler(e); | |
}, self.mouseDownListener = function (event) { | |
return self.dragHandler(event); | |
}, self.hoverListener = function (closest) { | |
return self.hoverHandler(closest); | |
}, self.keyDownHandler = function (event) { | |
event.preventDefault(); | |
var scrollItem = self.contentContainer.getElement(); | |
if (event.keyCode == quasimodeKeycode) { | |
scrollItem.scrollTop += 10; | |
} else { | |
if (event.keyCode == SHIFT_KEY) { | |
scrollItem.scrollTop -= 10; | |
} | |
} | |
self.scrollHandler(null); | |
}, self.autoScrollCleanupListener = function (other) { | |
return self.autoScrollCleanupHandler(other); | |
}, self.containerMouseDownListener = function (t) { | |
return self.containerMouseDownHandler(t); | |
}, self; | |
} | |
return __extends(init, _super), init.prototype.createChildren = function () { | |
var style; | |
var element; | |
var self = this; | |
this.defaultStyle = this.defaultStyle || "scr-VerticalScrollingContainer"; | |
this.addStyle(this.defaultStyle); | |
this.contentContainer = new Component; | |
/** @type {string} */ | |
style = this.defaultStyle + "_ContentContainer"; | |
this.contentContainer.addStyle(style); | |
/** @type {string} */ | |
style = this.defaultStyle + "_Content"; | |
this.content.addStyle(style); | |
this.scrollContainer = new Component; | |
/** @type {string} */ | |
style = this.defaultStyle + "_ScrollContainer"; | |
this.scrollContainer.addStyle(style); | |
this.scrollBar = new Component; | |
/** @type {string} */ | |
style = this.defaultStyle + "_ScrollBar"; | |
this.scrollBar.addStyle(style); | |
this.appendChild(this.contentContainer); | |
this.appendChild(this.scrollContainer); | |
this.contentContainer.appendChild(this.content); | |
this.scrollContainer.appendChild(this.scrollBar); | |
this.contentContainer.getElement().addEventListener(m, this.scrollListener); | |
this.scrollContainer.getElement().addEventListener(touchstart, this.mouseDownListener); | |
element = this.getElement(); | |
element.addEventListener(type, this.hoverListener); | |
element.addEventListener(end, this.hoverListener); | |
element.addEventListener(touchstart, this.containerMouseDownListener); | |
Locator.validationManager.callPostValidation(function () { | |
self.setScrollBarHeight(); | |
self.scrollHandler(null); | |
}); | |
this.delegate_timerTickHandler = new delegateManager(this, this.timerTickHandler); | |
this.scrollTimer = new con(this.scrollbarHeightCheckInterval, -1); | |
this.scrollTimer.addEventListener(TimerEvent.TICK, this.delegate_timerTickHandler); | |
this.scrollTimer.start(); | |
}, init.prototype.getPercentageMousePositionInsideScrollBar = function (start) { | |
var v; | |
var h; | |
var j; | |
var numValues; | |
var parent; | |
var top; | |
var lngsum; | |
var numTicks; | |
return start.pageY ? v = start.pageY : (h = Browser.getScrollY(), v = start.clientY + h), j = v - (this.getElement().getBoundingClientRect().top + Browser.getScrollY()), numValues = 100 - this.scrollBarHeight, parent = this.scrollContainer.getElement(), top = 0, this.useScrollContainerOffsetTopForMouseCalcs() && (top = parent.offsetTop), lngsum = j - top - this.scrollBar.getElement().offsetHeight / 2, numTicks = lngsum / parent.offsetHeight * 100, numTicks > numValues ? numTicks = numValues : | |
0 > numTicks && (numTicks = 0), numTicks; | |
}, init.prototype.useScrollContainerOffsetTopForMouseCalcs = function () { | |
return true; | |
}, init.prototype.setScrollDistanceAsPercentage = function (i) { | |
/** @type {number} */ | |
var baseDamage = this.content.getElement().offsetHeight / 100; | |
/** @type {number} */ | |
var scrollTopValue = Math.floor(baseDamage * i); | |
/** @type {number} */ | |
this.contentContainer.getElement().scrollTop = scrollTopValue; | |
}, init.prototype.scrollHandler = function (update) { | |
var _this = this; | |
var hints = this.contentContainer.getElement(); | |
Locator.validationManager.callPostValidation(function () { | |
/** @type {string} */ | |
_this.scrollBar.getElement().style.top = hints.scrollTop / _this.content.getElement().offsetHeight * 100 + "%"; | |
}); | |
}, init.prototype.timerTickHandler = function (canCreateDiscussions) { | |
var e = this; | |
Locator.validationManager.callLater(function () { | |
return e.setScrollBarHeight(); | |
}); | |
}, init.prototype.setScrollBarHeight = function () { | |
var style; | |
/** @type {number} */ | |
var daywidth = this.contentContainer.getElement().offsetHeight / this.content.getElement().offsetHeight * 100; | |
if (this.scrollBarHeight != daywidth) { | |
/** @type {number} */ | |
this.scrollBarHeight = daywidth; | |
/** @type {boolean} */ | |
this.heightChanged = true; | |
} | |
if (this.heightChanged) { | |
/** @type {boolean} */ | |
this.heightChanged = false; | |
/** @type {string} */ | |
style = this.defaultStyle + "-scrollable"; | |
if (daywidth >= 100) { | |
this.scrollBar.setVisible(false); | |
this.removeStyle(style); | |
} else { | |
/** @type {string} */ | |
this.scrollBar.getElement().style.height = Math.floor(daywidth) + "%"; | |
this.scrollBar.setVisible(true); | |
this.addStyle(style); | |
} | |
} | |
}, init.prototype.dragHandler = function (event) { | |
var o = this; | |
/** | |
* @param {!Event} e | |
* @return {undefined} | |
*/ | |
var render = function (e) { | |
e.preventDefault(); | |
var n = o.getPercentageMousePositionInsideScrollBar(e); | |
/** @type {string} */ | |
o.scrollBar.getElement().style.top = n + "%"; | |
o.setScrollDistanceAsPercentage(n); | |
}; | |
/** | |
* @param {?} passedDatabaseTypes | |
* @return {undefined} | |
*/ | |
var init = function (passedDatabaseTypes) { | |
document.removeEventListener(touchmove, render); | |
document.removeEventListener(touchend, init); | |
}; | |
render(event); | |
document.addEventListener(touchmove, render); | |
document.addEventListener(touchend, init); | |
}, init.prototype.setKeyboardListenerActive = function (addedRenderer) { | |
if (addedRenderer) { | |
document.addEventListener(eventName, this.keyDownHandler); | |
} else { | |
document.removeEventListener(eventName, this.keyDownHandler); | |
} | |
}, init.prototype.resetVerticalScroller = function () { | |
var _this = this; | |
var scrollItem = this.contentContainer.getElement(); | |
/** @type {number} */ | |
scrollItem.scrollTop = 0; | |
Locator.validationManager.callPostValidation(function () { | |
/** @type {string} */ | |
_this.scrollBar.getElement().style.top = "0%"; | |
}); | |
}, init.prototype.hoverHandler = function (marker) { | |
/** @type {string} */ | |
var style = this.defaultStyle + "-hover"; | |
switch (marker.type) { | |
case type: | |
this.addStyle(style); | |
break; | |
case end: | |
this.removeStyle(style); | |
} | |
}, init.prototype.autoScrollCleanup = function () { | |
clearTimeout(this.autoScrollTimeout); | |
document.removeEventListener(touchend, this.autoScrollCleanupListener); | |
document.removeEventListener(touchstart, this.autoScrollCleanupListener); | |
}, init.prototype.autoScrollCleanupHandler = function (instance) { | |
if (instance.timeStamp >= this.autoScrollStart + 300) { | |
this.autoScrollCleanup(); | |
} | |
}, init.prototype.containerMouseDownHandler = function (e) { | |
var show; | |
var o = this; | |
if (!(2 !== e.which && 4 !== e.button)) { | |
this.autoScrollStart = e.timeStamp; | |
/** | |
* @return {undefined} | |
*/ | |
show = function () { | |
var hints = o.contentContainer.getElement(); | |
Locator.validationManager.callPostValidation(function () { | |
/** @type {string} */ | |
o.scrollBar.getElement().style.top = hints.scrollTop / o.content.getElement().offsetHeight * 100 + "%"; | |
}); | |
/** @type {number} */ | |
o.autoScrollTimeout = setTimeout(show, 100); | |
}; | |
clearTimeout(this.autoScrollTimeout); | |
show(); | |
document.removeEventListener(touchend, this.autoScrollCleanupListener); | |
document.removeEventListener(touchstart, this.autoScrollCleanupListener); | |
document.addEventListener(touchend, this.autoScrollCleanupListener); | |
document.addEventListener(touchstart, this.autoScrollCleanupListener); | |
} | |
}, init.prototype.dispose = function () { | |
this.contentContainer.getElement().removeEventListener(m, this.scrollListener); | |
this.scrollContainer.getElement().removeEventListener(touchstart, this.mouseDownListener); | |
var element = this.getElement(); | |
element.removeEventListener(type, this.hoverHandler); | |
element.removeEventListener(end, this.hoverHandler); | |
element.removeEventListener(touchstart, this.containerMouseDownListener); | |
this.autoScrollCleanup(); | |
this.scrollTimer.removeEventListener(TimerEvent.TICK, this.delegate_timerTickHandler); | |
this.scrollTimer.stop(); | |
/** @type {null} */ | |
this.scrollTimer = null; | |
this.setKeyboardListenerActive(false); | |
}, init; | |
}(Component); | |
result.VerticalScrollingContainer = name; | |
}(ns_scrollerlib_ui || (ns_scrollerlib_ui = {})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment