!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue"),require("../../../../common/v1/src")):"function"==typeof def&&def.amd?def("pcs-video-screening-landing-page-store-v1",["vue","../../../../common/v1/src"],t):((e=e||self).phw=e.phw||{},e.phw.PcsVideoScreeningLandingPageStoreV1=t(e.Vue,e.PcsCommon))}(this,function(u,d){"use strict";u=u&&u.hasOwnProperty("default")?u.default:u,d=d&&d.hasOwnProperty("default")?d.default:d;var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var p=function(){return(p=Object.assign||function(e){for(var t,n=1,o=arguments.length;n"),C.forEach(function(e){t=t.replace(e.regex,n.contentReplaceables[e.key])});try{return JSON.parse(t)}catch(e){}}},O.prototype.constructCntReplaceMap=function(){var e=d.PhenomAppManager.getBaseDomain(),t=d.PhenomAppManager.getBaseUrl();this.contentReplaceables.domainName=e&&e.replace("https://",""),this.contentReplaceables.linkDomain=t},O.prototype.appClick=function(e){this.trackWidgetClick("app_download_click",{ctx:p({appName:e},this.eventsParams)})},O.prototype.startLink=function(e,t){if(void 0===t&&(t=!0),t)this.checkSessionStarted();else{var n="";this.videoScreenDetails&&this.videoScreenDetails.interviewDetails&&this.videoScreenDetails.interviewDetails.jobDetails&&this.videoScreenDetails.interviewDetails.jobDetails.category&&(n=this.videoScreenDetails.interviewDetails.jobDetails.category),this.videoScreenDetails.videoScreenCandidate&&this.videoScreenDetails.videoScreenCandidate.userId&&this.trackWidgetClick("start_now_click",{ctx:p({category:n,userId:this.videoScreenDetails.videoScreenCandidate.userId},this.eventsParams)});var o=this.getUrl(null,"video-assessment-recording",{},"");if(o){var i=d.CommonService.getQueryParam("rUrl")||"";i=i&&"&rUrl="+i;var a=o+"?eit="+this.otp+i;location.href=a}}},O.prototype.checkSessionStarted=function(){var n=this;if(this.videoScreenConfig&&this.videoScreenConfig.flowStatus&&this.videoScreenConfig.flowStatus.sessionChanged){this.sessionFlags.showPopup=!0,this.hideOverflow(!0);var e=this.videoScreenConfig.videoScreen.deviceInfo,t=new Date(e.lastAccess),o=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][t.getDay()],i=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][t.getMonth()],a=t.getDate(),r=t.getFullYear(),s=t.getHours(),c=t.getMinutes();s=1==(s=s.toString()).length?"0"+s:s,c=1==(c=c.toString()).length?"0"+c:c;var l=o+" "+(a=1==(a=a.toString()).length?"0"+a:a)+" "+i+" "+r+" - "+s+":"+c;e.dayString=l,this.sessionFlags.context=p({},e),d.EventBus.$on("session-cancel",function(e){n.sessionFlags.showPopup=!1,n.hideOverflow(!1)}),d.EventBus.$on("session-confirm",function(e){var t={eit:n.otp};n.videoScreeningWelcomeService.makeDDOrequest(D.v1.updateVSProfileCreateSession,t).then(function(e){"success"==e.status&&n.startLink(void 0,!1)})})}else this.startLink(void 0,!1)},O.prototype.handleTabsAccessibility=function(e){for(var n=e&&e.querySelectorAll(".device-block")||[],t=function(t){n[t]&&n[t].addEventListener("keyup",function(e){37===e.keyCode?t-1<0?n[n.length-1]&&n[n.length-1].focus():n[t-1]&&n[t-1].focus():39===e.keyCode&&(t+1>=n.length?n[0]&&n[0].focus():n[t+1]&&n[t+1].focus())})},o=0;o=n.length?n[0]&&n[0].focus():n[t+1]&&n[t+1].focus(),e.preventDefault())})};for(o=0;o