function OryxNotificationItem(data){this.data=data,this.timeCreated=+new Date,this.timeAction=null,this.deleted=!1}function OryxNotificationStore(){this.notifications=[],this.tmpIndex=-1,this.api=null}function OryxChat(api){this.api=api,this.connected=!1,this.available=!1,this.initialized=!1,this.chatWindowState=OryxEnum.ChatWindowState.CLOSE}function OryxApi(){this.apiVersion="ORYX_JSAPI_16.10_04",this.mainHandlers=OryxHandlers,this.handlers={},this.notificationStore=new OryxNotificationStore}var OryxApiCodes={status:{LOGGED_IN:1,LOGGED_OUT:2,LOGGED_IN_ANONYMOUS:3,SYSTEM_ERROR:100},login:{OK:1,LOGIN_FAILED:2,SYSTEM_ERROR:100},gamelink:{OK:1,NO_FREE_ANONYMOUS_SLOTS:2,GAME_NOT_AVAILABLE:3,BONUS_RESTRICTION:4,SYSTEM_ERROR:100},opengame:{OK:1,NO_FREE_ANONYMOUS_SLOTS:2,GAME_NOT_AVAILABLE:3,BONUS_RESTRICTION:4,SYSTEM_ERROR:100},registrationForm:{OK:1,SYSTEM_ERROR:100},submitRegistration:{OK:1,FAILED:2,SYSTEM_ERROR:100},accepttc:{OK:1,ERROR:2,SYSTEM_ERROR:100},changepassword:{OK:1,PASSWORD_INCORRECT:2,LOCKED:3,PASSWORD_LENGTH_PROBLEM:4,PASSWORD_DATA_FORMAT:5,AUTH_NEEDED:6,AUTH_ERROR:7,SYSTEM_ERROR:100},listGames:{OK:1,SYSTEM_ERROR:100},ackClientNotification:{OK:1,ERROR:2,SYSTEM_ERROR:100},ackPlayStat:{OK:1,SYSTEM_ERROR:100},extBalanceInfo:{OK:1,ERROR:2,SYSTEM_ERROR:100},fundTransfer:{OK:1,ERROR:2,SYSTEM_ERROR:100},chatInit:{OK:"OK"},chatCommand:{OK:"OK"},listFunPlayPackages:{OK:1,ERROR:2,SYSTEM_ERROR:100},getPlayerPromotionTokens:{OK:1,ERROR:2,SYSTEM_ERROR:100},lostPassword:{OK:1,PLAYER_NOT_FOUND:2,LOGIN_WITH_EMAIL_NOT_ALLOWED:3,MISSING_DATA:4,EMAIL_AND_USERNAME_DOES_NOT_MATCH:5,NOT_ALLOWED:6,AUTH_NEEDED:7,AUTH_ERROR:8,SYSTEM_ERROR:100},changeLostPassword:{OK:1,PLAYER_NOT_FOUND:2,KEY_NOT_VALID:3,MISSING_DATA:4,PASSWORD_DATA_FORMAT:5,AUTH_NEEDED:6,AUTH_ERROR:7,SYSTEM_ERROR:100},getPlayerProfile:{OK:"OK",NO_PLAYER_FOUND:"NO_PLAYER_FOUND",ERROR:"ERROR"},updatePlayerProfile:{OK:"OK",VALIDATION_ERROR:"VALIDATION_ERROR",DUPLICATE_EMAIL:"DUPLICATE_EMAIL",DUPLICATE_NICKNAME:"DUPLICATE_NICKNAME",DENIED:"DENIED",NO_PLAYER_FOUND:"NO_PLAYER_FOUND",ERROR:"ERROR"},updatePMAccount:{OK:"OK",LABEL_NOT_FOUND:"LABEL_NOT_FOUND",NO_ALLOWED_FIELDS:"NO_ALLOWED_FIELDS",ERROR:"ERROR",SYSTEM_ERROR:100},GetTopWinsList:{OK:"OK",ERROR:"ERROR",SYSTEM_ERROR:100}},OryxEnum={FundTransfer:{DEPOSIT:"DEPOSIT",WITHDRAWAL:"WITHDRAWAL"},PlayerPaymentStatus:{APPROVED:"APPROVED",DECLINED:"DECLINED",ERROR:"ERROR"},ChatMsgTypes:{MSG:"MSG",CHAT_OPEN:"CHAT_OPEN",CHAT_CLOSE:"CHAT_CLOSE"},ChatWindowState:{CLOSE:"CLOSE",MIN:"MIN",MAX:"MAX"},ForceLogoutCode:{KILL:"KILL",SESSION_DURATION_LIMIT_REACHED:"SESSION_DURATION_LIMIT_REACHED"},LoginResponseCode:{OK:"OK",DENIED:"DENIED",ERROR:"ERROR",NOT_FOUND:"NOT_FOUND",INCORRECT_PASSWORD:"INCORRECT_PASSWORD",LOCKED:"LOCKED",WRONG_PLAY_MODE:"WRONG_PLAY_MODE",PLAYER_BIRTH_DATE_NOT_SET:"PLAYER_BIRTH_DATE_NOT_SET",PLAYER_COUNTRY_NOT_SET:"PLAYER_COUNTRY_NOT_SET",BANNED_COUNTRY:"BANNED_COUNTRY",FIELDS_EMPTY:"FIELDS_EMPTY",ALREADY_LOGGED_IN:"ALREADY_LOGGED_IN"},CashierMode:{AUTO:0,DESKTOP:1,MOBILE:2},SubmitRegistrationForm:{ERROR:"ERROR",DUPLICATE_EMAIL:"DUPLICATE_EMAIL",VALIDATION_ERROR:"VALIDATION_ERROR",DUPLICATE_MAIN_DATA:"DUPLICATE_MAIN_DATA",DUPLICATE_NICKNAME:"DUPLICATE_NICKNAME",DUPLICATE_USERNAME:"DUPLICATE_USERNAME",DUPLICATE_EXT_PLATFORM_PLAYER_ID:"DUPLICATE_EXT_PLATFORM_PLAYER_ID",DUPLICATE_PERSONAL_ID:"DUPLICATE_PERSONAL_ID",BANNED_COUNTRY:"BANNED_COUNTRY",DENIED:"DENIED",REGISTRATION_CHECK_ERROR:"REGISTRATION_CHECK_ERROR"},FormatAmountOrigin:{CASHIER_MAIN_BALANCE:"CASHIER_MAIN_BALANCE",BALANCE_CLASS_OUTPUT:"BALANCE_CLASS_OUTPUT",MOD_TRANSACTION_HISTORY:"MOD_TRANSACTION_HISTORY",AM_BALANCE_DETAILS:"AM_BALANCE_DETAILS"}},OryxHandlers={popMsg:function(data){null===oryxApi.cashier.ocSuccessHandler?setTimeout(function(){OryxHandlers.popMsg(data)},500):window.ocSuccess(data)},status:function(status){switch(OryxUtil.trace("status main handler",status),status){case OryxApiCodes.status.LOGGED_IN:var player=oryxApi.getPlayer();if(player&&$(".playerName").html(player.firstName+" "+player.lastName),$(".player-unauth").hide(),$(".player-auth").show(),$.cookie("oryxContinue")){var objContinueCookie=$.parseJSON($.cookie("oryxContinue"));$.cookie("oryxContinue",null,{path:"/"});var objOpenTab={tab:objContinueCookie.tab};objContinueCookie.sub&&(objOpenTab.sub=objContinueCookie.sub),objContinueCookie.pmCode&&(objOpenTab.pmCode=objContinueCookie.pmCode),objContinueCookie.pspCode&&(objOpenTab.pspCode=objContinueCookie.pspCode),objContinueCookie.pmId&&(objOpenTab.pmId=objContinueCookie.pmId),objContinueCookie.data&&(objOpenTab.data=objContinueCookie.data),window.OryxCashier&&(window.OryxCashier.continueDepositData=objContinueCookie),OryxUtil.isFunction(oryxApi.handlers.customOpenCashier)?oryxApi.handlers.customOpenCashier.apply(this,[objOpenTab,objContinueCookie]):oryxApi.openCashier(objOpenTab).then(function(){OryxHandlers.popMsg(objContinueCookie.data)})}break;case OryxApiCodes.status.LOGGED_OUT:case OryxApiCodes.status.LOGGED_IN_ANONYMOUS:$(".player-auth").hide(),$(".player-unauth").show();break;default:alert("Error")}},login:function(status,response){OryxUtil.trace("login main handler",status,response)},balance:function(balance){OryxUtil.trace("balance main handler",balance);var player=oryxApi.getPlayer();player&&player.currencyCode&&$(".balance").html(oryxApi.formatAmount(balance.balance,player.currencyCode,OryxEnum.FormatAmountOrigin.BALANCE_CLASS_OUTPUT))},countryChange:function(){var $stateEl=$('.form-element[data-field="STATE"]');if(0!==$stateEl.length){$stateEl.find("input").remove(),$stateEl.find("select").remove();var $this=$(this),$f=null,field=OryxApi._tmpStateField,stateValues=[];void 0!==field&&"string"==typeof field.allowedValues&&(field.allowedValues=[field.allowedValues]),void 0!==field&&void 0!==field.allowedValues&&$.each(field.allowedValues,function(){var elt=this.split("|"),val=elt[0];elt[1]===$this.val()&&stateValues.push({key:val,text:elt[elt.length-1]})}),0===stateValues.length?$f=$(""):($f=$("
";tc+="",tc+=" "+oryxApi.translate("AGREE_TXT")+" "+oryxApi.translate("TERMS_AND_CONDITIONS_TXT"),tc+='*',tc+="",formItems.push({element:tc,elementType:OryxUtil.FormElementType.TC,data:{currentTcVersion:registrationFormData.currentTcVersion,tcContent:registrationFormData.tcContent}}),registrationFormData.fieldInfos.sort(OryxUtil.formFieldComparator);for(var i=0;i