var classes,Uni;(function(n,t,i){"use strict";function wt(n,t,i){if(!n)throw ngMinErr("areq","Argument '{0}' is {1}",t||"?",i||"required");return n}function bt(n,t){return!n&&!t?"":n?t?(h(n)&&(n=n.join(" ")),h(t)&&(t=t.join(" ")),n+" "+t):n:t}function ci(n){var t={};return n&&(n.to||n.from)&&(t.to=n.to,t.from=n.from),t}function l(n,t,i){var u="";return n=h(n)?n:n&&w(n)&&n.length?n.split(/\s+/):[],r(n,function(n,r){n&&n.length>0&&(u+=r>0?" ":"",u+=i?t+n:n+t)}),u}function li(n,t){var i=n.indexOf(t);t>=0&&n.splice(i,1)}function ai(n){if(n instanceof s)switch(n.length){case 0:return[];case 1:if(n[0].nodeType===c)return n;break;default:return s(ut(n))}if(n.nodeType===c)return s(n)}function ut(n){var t,i;if(!n[0])return n;for(t=0;t<n.length;t++)if(i=n[t],i.nodeType==c)return i}function vi(n,t,i){r(t,function(t){n.addClass(t,i)})}function yi(n,t,i){r(t,function(t){n.removeClass(t,i)})}function b(n){return function(t,i){i.addClass&&(vi(n,t,i.addClass),i.addClass=null);i.removeClass&&(yi(n,t,i.removeClass),i.removeClass=null)}}function k(n){if(n=n||{},!n.$$prepared){var t=n.domOperation||o;n.domOperation=function(){n.$$domOperationFired=!0;t();t=o};n.$$prepared=!0}return n}function a(n,t){kt(n,t);dt(n,t)}function kt(n,t){t.from&&(n.css(t.from),t.from=null)}function dt(n,t){t.to&&(n.css(t.to),t.to=null)}function d(n,t,i){var u=(t.addClass||"")+" "+(i.addClass||""),f=(t.removeClass||"")+" "+(i.removeClass||""),r=pi(n.attr("class"),u,f);return vt(t,i),t.addClass=r.addClass?r.addClass:null,t.removeClass=r.removeClass?r.removeClass:null,t}function pi(n,t,i){function o(n){w(n)&&(n=n.split(" "));var t={};return r(n,function(n){n.length&&(t[n]=!0)}),t}var e=1,s=-1,f={},u;return n=o(n),t=o(t),r(t,function(n,t){f[t]=e}),i=o(i),r(i,function(n,t){f[t]=f[t]===e?null:s}),u={addClass:"",removeClass:""},r(f,function(t,i){var r,f;t===e?(r="addClass",f=!n[i]):t===s&&(r="removeClass",f=n[i]);f&&(u[r].length&&(u[r]+=" "),u[r]+=i)}),u}function u(n){return n instanceof t.element?n[0]:n}function ui(n,t,i){var u=Object.create(null),f=n.getComputedStyle(t)||{};return r(i,function(n,t){var i=f[n],r;i&&(r=i.charAt(0),(r==="-"||r==="+"||r>=0)&&(i=rr(i)),i===0&&(i=null),u[t]=i)}),u}function rr(n){var t=0,i=n.split(/\s*,\s*/);return r(i,function(n){n.charAt(n.length-1)=="s"&&(n=n.substring(0,n.length-1));n=parseFloat(n)||0;t=t?Math.max(n,t):n}),t}function ct(n){return n===0||n!=null}function fi(n,t){var i=f,r=n+"s";return t?i+=ot:r+=" linear all",[i,r]}function ur(n){return[ht,n+"s"]}function ei(n,t){var i=t?st:y;return[i,n+"s"]}function g(n,t){var i=t?"-"+t+"s":"";return p(n,[y,i]),[y,i]}function lt(n,t){var i=t?"paused":"",r=e+ki;return p(n,[r,i]),[r,i]}function p(n,t){var i=t[0],r=t[1];n.style[i]=r}function oi(){var n=Object.create(null);return{flush:function(){n=Object.create(null)},count:function(t){var i=n[t];return i?i.total:0},get:function(t){var i=n[t];return i&&i.value},put:function(t,i){n[t]?n[t].total++:n[t]={total:1,value:i}}}}var o=t.noop,vt=t.extend,s=t.element,r=t.forEach,h=t.isArray,w=t.isString,tt=t.isObject,si=t.isUndefined,hi=t.isDefined,yt=t.isFunction,it=t.isElement,c=1,pt="ng-animate",rt="$$ngAnimateChildren",vr=function(n){return n&&n.then?!0:!1},wi=["$$rAF",function(n){function u(n){i.push([].concat(n));r()}function r(){var o,u,e;if(i.length){for(o=[],u=0;u<i.length;u++)e=i[u],f(e),e.length&&o.push(e);i=o;t||n(function(){t||r()})}}function f(n){var t=n.shift();t()}var i=[],t;return u.waitUntilQuiet=function(i){t&&t();t=n(function(){t=null;i();r()})},u}],bi=[function(){return function(n,i,r){var u=r.ngAnimateChildren;t.isString(u)&&u.length===0?i.data(rt,!0):r.$observe("ngAnimateChildren",function(n){n=n==="on"||n==="true";i.data(rt,n)})}}],gt="",f,ft,e,et;n.ontransitionend===i&&n.onwebkittransitionend!==i?(gt="-webkit-",f="WebkitTransition",ft="webkitTransitionEnd transitionend"):(f="transition",ft="transitionend");n.onanimationend===i&&n.onwebkitanimationend!==i?(gt="-webkit-",e="WebkitAnimation",et="webkitAnimationEnd animationend"):(e="animation",et="animationend");var ot="Duration",ni="Property",ti="Delay",ii="TimingFunction",ki="PlayState",di=3,gi=1.5,v=1e3,nr=9999,st=e+ti,ht=e+ot,y=f+ti,ri=f+ot,tr={transitionDuration:ri,transitionDelay:y,transitionProperty:f+ni,animationDuration:ht,animationDelay:st,animationIterationCount:e+"IterationCount"},ir={transitionDuration:ri,transitionDelay:y,animationDuration:ht,animationDelay:st};var fr=["$animateProvider",function(){var n=oi(),t=oi();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$document","$sniffer","$$rAFScheduler",function(i,o,s,c,y,w,d){function it(n,t){var i="$$ngAnimateParentKey",r=n.parentNode,u=r[i]||(r[i]=++ut);return u+"-"+n.getAttribute("class")+"-"+t}function ot(t,r,u,f){var e=n.get(u);return e||(e=ui(i,t,f),e.animationIterationCount==="infinite"&&(e.animationIterationCount=1)),n.put(u,e),e}function st(r,u,f,e){var s,h;return n.count(f)>0&&(s=t.get(f),s||(h=l(u,"-stagger"),o.addClass(r,h),s=ui(i,r,e),s.animationDuration=Math.max(s.animationDuration,0),s.transitionDuration=Math.max(s.transitionDuration,0),o.removeClass(r,h),t.put(f,s))),s||{}}function at(i){nt.push(i);d.waitUntilQuiet(function(){var r,i;for(n.flush(),t.flush(),r=ht.offsetWidth+1,i=0;i<nt.length;i++)nt[i](r);nt.length=0})}function rt(n,t,i){var r=ot(n,t,i,tr),u=r.animationDelay,f=r.transitionDelay;return r.maxDelay=u&&f?Math.max(u,f):u||f,r.maxDuration=Math.max(r.animationDuration*r.animationIterationCount,r.transitionDuration),r}function vt(t,i){function yi(){yt()}function lr(){yt(!0)}function yt(n){ti||wi&&pt||(ti=!0,pt=!1,o.removeClass(t,wt),o.removeClass(t,hr),lt(b,!1),g(b,!1),r(ut,function(n){b.style[n[0]]=""}),tt(t,i),a(t,i),i.onDone&&i.onDone(),bt&&bt.complete(!n))}function ar(n){y.blockTransition&&g(b,n);y.blockKeyframeAnimation&&lt(b,!!n)}function pi(){return bt=new s({end:yi,cancel:lr}),yt(),{$$willAnimate:!1,start:function(){return bt},end:yi}}function wr(){function l(){var s,h,l;if(!ti){if(ar(!1),r(ut,function(n){var t=n[0],i=n[1];b.style[t]=i}),tt(t,i),o.addClass(t,hr),y.recalculateTimingStyles){if(ui=b.className+" "+wt,gt=it(b,ui),d=rt(b,ui,gt),ot=d.maxDelay,ri=Math.max(ot,0),nt=d.maxDuration,nt===0){yt();return}y.hasTransitions=d.transitionDuration>0;y.hasAnimations=d.animationDuration>0}(y.applyTransitionDelay||y.applyAnimationDelay)&&(ot=typeof i.delay!="boolean"&&ct(i.delay)?parseFloat(i.delay):ot,ri=Math.max(ot,0),y.applyTransitionDelay&&(d.transitionDelay=ot,s=ei(ot),ut.push(s),b.style[s[0]]=s[1]),y.applyAnimationDelay&&(d.animationDelay=ot,s=ei(ot,!0),ut.push(s),b.style[s[0]]=s[1]));si=ri*v;bi=nt*v;i.easing&&(l=i.easing,y.hasTransitions&&(h=f+ii,ut.push([h,l]),b.style[h]=l),y.hasAnimations&&(h=e+ii,ut.push([h,l]),b.style[h]=l));d.transitionDuration&&n.push(ft);d.animationDuration&&n.push(et);u=Date.now();t.on(n.join(" "),p);c(a,si+gi*bi);dt(t,i)}}function a(){yt()}function p(n){n.stopPropagation();var t=n.originalEvent||n,i=t.$manualTimeStamp||t.timeStamp||Date.now(),r=parseFloat(t.elapsedTime.toFixed(di));Math.max(i-u,0)>=si&&r>=nt&&(wi=!0,yt())}if(!ti){if(!b.parentNode){yt();return}var u,n=[],s=function(n){if(wi)pt&&n&&(pt=!1,yt());else if(pt=!n,d.animationDuration){var t=lt(b,pt);pt?ut.push(t):li(ut,t)}},h=vi>0&&(d.transitionDuration&&ht.transitionDuration===0||d.animationDuration&&ht.animationDuration===0)&&Math.max(ht.animationDelay,ht.transitionDelay);h?c(l,Math.floor(h*vi*v),!1):l();oi.resume=function(){s(!0)};oi.pause=function(){s(!1)}}}var b=u(t),gt,ht,tr,ai,rr,fr,er,vi,or,d,ot,y;if(!b||!b.parentNode)return pi();i=k(i);var ut=[],vr=t.attr("class"),sr=ci(i),ti,pt,wi,bt,oi,ri,si,nt,bi;if(i.duration===0||!w.animations&&!w.transitions)return pi();var hi=i.event&&h(i.event)?i.event.join(" "):i.event,yr=hi&&i.structural,ki="",vt="";yr?ki=l(hi,"ng-",!0):hi&&(ki=hi);i.addClass&&(vt+=l(i.addClass,"-add"));i.removeClass&&(vt.length&&(vt+=" "),vt+=l(i.removeClass,"-remove"));i.applyClassesEarly&&vt.length&&(tt(t,i),vt="");var wt=[ki,vt].join(" ").trim(),ui=vr+" "+wt,hr=l(wt,"-active"),cr=sr.to&&Object.keys(sr.to).length>0,pr=(i.keyframeStyle||"").length>0;return!pr&&!cr&&!wt?pi():(i.stagger>0?(tr=parseFloat(i.stagger),ht={transitionDelay:tr,animationDelay:tr,transitionDuration:0,animationDuration:0}):(gt=it(b,ui),ht=st(b,wt,gt,ir)),o.addClass(t,wt),i.transitionStyle&&(rr=[f,i.transitionStyle],p(b,rr),ut.push(rr)),i.duration>=0&&(ai=b.style[f].length>0,fr=fi(i.duration,ai),p(b,fr),ut.push(fr)),i.keyframeStyle&&(er=[e,i.keyframeStyle],p(b,er),ut.push(er)),vi=ht?i.staggerIndex>=0?i.staggerIndex:n.count(gt):0,or=vi===0,or&&g(b,nr),d=rt(b,ui,gt),ot=d.maxDelay,ri=Math.max(ot,0),nt=d.maxDuration,y={},y.hasTransitions=d.transitionDuration>0,y.hasAnimations=d.animationDuration>0,y.hasTransitionAll=y.hasTransitions&&d.transitionProperty=="all",y.applyTransitionDuration=cr&&(y.hasTransitions&&!y.hasTransitionAll||y.hasAnimations&&!y.hasTransitions),y.applyAnimationDuration=i.duration&&y.hasAnimations,y.applyTransitionDelay=ct(i.delay)&&(y.applyTransitionDuration||y.hasTransitions),y.applyAnimationDelay=ct(i.delay)&&y.hasAnimations,y.recalculateTimingStyles=vt.length>0,(y.applyTransitionDuration||y.applyAnimationDuration)&&(nt=i.duration?parseFloat(i.duration):nt,y.applyTransitionDuration&&(y.hasTransitions=!0,d.transitionDuration=nt,ai=b.style[f+ni].length>0,ut.push(fi(nt,ai))),y.applyAnimationDuration&&(y.hasAnimations=!0,d.animationDuration=nt,ut.push(ur(nt)))),nt===0&&!y.recalculateTimingStyles)?pi():(i.duration==null&&d.transitionDuration>0&&(y.recalculateTimingStyles=y.recalculateTimingStyles||or),si=ri*v,bi=nt*v,i.skipBlocking||(y.blockTransition=d.transitionDuration>0,y.blockKeyframeAnimation=d.animationDuration>0&&ht.animationDelay>0&&ht.animationDuration===0),kt(t,i),y.blockTransition||g(b,!1),ar(nt),{$$willAnimate:!0,end:yi,start:function(){if(!ti)return oi={end:yi,cancel:lr,resume:null,pause:null},bt=new s(oi),at(wr),bt}})}var tt=b(o),ut=0,ht=u(y).body,nt=[];return vt}]}],er=["$$animationProvider",function(n){n.drivers.push("$$animateCssDriver");var t="ng-animate-shim",f="ng-anchor",i="ng-anchor-out",e="ng-anchor-in";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$document","$sniffer",function(n,h,c,l,a,v){function k(n){return n.replace(/\bng-\S+\b/g,"")}function d(n,t){return w(n)&&(n=n.split(" ")),w(t)&&(t=t.split(" ")),n.filter(function(n){return t.indexOf(n)===-1}).join(" ")}function nt(o,h,l){function tt(n){var t={},i=u(n).getBoundingClientRect();return r(["width","height","top","left"],function(n){var r=i[n];switch(n){case"top":r+=y.scrollTop;break;case"left":r+=y.scrollLeft}t[n]=Math.floor(r)+"px"}),t}function ut(){var t=n(v,{addClass:i,delay:!0,from:tt(h)});return t.$$willAnimate?t:null}function it(n){return n.attr("class")||""}function rt(){var t=k(it(l)),u=d(t,b),f=d(b,t),r=n(v,{to:tt(l),addClass:e+" "+u,removeClass:i+" "+f,delay:!0});return r.$$willAnimate?r:null}function w(){v.remove();h.removeClass(t);l.removeClass(t)}var v=s(u(h).cloneNode(!0)),b=k(it(v)),a,p,nt;return(h.addClass(t),l.addClass(t),v.addClass(f),g.append(v),p=ut(),!p&&(a=rt(),!a))?w():(nt=p||a,{start:function(){function i(){n&&n.end()}var t,n=nt.start();return n.done(function(){if(n=null,!a&&(a=rt(),a))return n=a.start(),n.done(function(){n=null;w();t.complete()}),n;w();t.complete()}),t=new c({end:i,cancel:i})}})}function tt(n,t,i,u){var f=p(n),e=p(t),o=[];if(r(u,function(n){var r=n.out,u=n["in"],t=nt(i,r,u);t&&o.push(t)}),f||e||o.length!==0)return{start:function(){function i(){r(n,function(n){n.end()})}var n=[],t;return f&&n.push(f.start()),e&&n.push(e.start()),r(o,function(t){n.push(t.start())}),t=new c({end:i,cancel:i}),c.all(n,function(n){t.complete(n)}),t}}}function p(t){var u=t.element,i=t.options||{},r;return t.structural?(i.structural=i.applyClassesEarly=!0,i.event=t.event,i.event==="leave"&&(i.onDone=i.domOperation)):i.event=null,r=n(u,i),r.$$willAnimate?r:null}if(!v.animations&&!v.transitions)return o;var y=u(a).body,b=u(l),g=s(y.parentNode===b?y:b);return function(n){return n.from&&n.to?tt(n.from,n.to,n.classes,n.anchors):p(n)}}]}],or=["$animateProvider",function(n){this.$get=["$injector","$$AnimateRunner","$$rAFMutex","$$jqLite",function(t,i,u,f){function s(i){var f,e,r,u,o;for(i=h(i)?i:i.split(" "),f=[],e={},r=0;r<i.length;r++)u=i[r],o=n.$$registeredAnimations[u],o&&!e[u]&&(f.push(t.get(o)),e[u]=!0);return f}var e=b(f);return function(n,t,u,f){function w(){f.domOperation();e(n,f)}function nt(n,t,r,u,f){var s,e;switch(r){case"animate":s=[t,u.from,u.to,f];break;case"setClass":s=[t,b,d,f];break;case"addClass":s=[t,b,f];break;case"removeClass":s=[t,d,f];break;default:s=[t,f]}if(s.push(u),e=n.apply(n,s),e)if(yt(e.start)&&(e=e.start()),e instanceof i)e.done(f);else if(yt(e))return e;return o}function h(n,t,u,f,e){var s=[];return r(f,function(r){var f=r[e];f&&s.push(function(){var r,s,h=!1,e=function(n){h||(h=!0,(s||o)(n),r.complete(!n))};return r=new i({end:function(){e()},cancel:function(){e(!0)}}),s=nt(f,n,t,u,function(n){var t=n===!1;e(t)}),r})}),s}function g(n,t,u,f,e){var o=h(n,t,u,f,e),s,c;if(o.length===0&&(e==="beforeSetClass"?(s=h(n,"removeClass",u,f,"beforeRemoveClass"),c=h(n,"addClass",u,f,"beforeAddClass")):e==="setClass"&&(s=h(n,"removeClass",u,f,"removeClass"),c=h(n,"addClass",u,f,"addClass")),s&&(o=o.concat(s)),c&&(o=o.concat(c))),o.length!==0)return function(n){var t=[];return o.length&&r(o,function(n){t.push(n())}),t.length?i.all(t,n):n(),function(n){r(t,function(t){n?t.cancel():t.end()})}}}var y,p;arguments.length===3&&tt(u)&&(f=u,u=null);f=k(f);u||(u=n.attr("class")||"",f.addClass&&(u+=" "+f.addClass),f.removeClass&&(u+=" "+f.removeClass));var b=f.addClass,d=f.removeClass,v=s(u),c,l;if(v.length&&(t=="leave"?(p="leave",y="afterLeave"):(p="before"+t.charAt(0).toUpperCase()+t.substr(1),y=t),t!=="enter"&&t!=="move"&&(c=g(n,t,f,v,p)),l=g(n,t,f,v,y)),c||l)return{start:function(){function s(t){u=!0;w();a(n,f);e.complete(t)}function h(n){u||((r||o)(n),s(n))}var r,t=[],u,e;return c&&t.push(function(n){r=c(n)}),t.length?t.push(function(n){w();n(!0)}):w(),l&&t.push(function(n){r=l(n)}),u=!1,e=new i({end:function(){h()},cancel:function(){h(!0)}}),i.chain(t,s),e}}}}]}],sr=["$$animationProvider",function(n){n.drivers.push("$$animateJsDriver");this.$get=["$$animateJs","$$AnimateRunner",function(n,t){function i(t){var i=t.element,r=t.event,u=t.options,f=t.classes;return n(i,r,f,u)}return function(n){if(n.from&&n.to){var u=i(n.from),f=i(n.to);return!u&&!f?void 0:{start:function(){function e(){return function(){r(n,function(n){n.end()})}}function o(n){i.complete(n)}var n=[],i;return u&&n.push(u.start()),f&&n.push(f.start()),t.all(n,o),i=new t({end:e(),cancel:e()})}}}return i(n)}}]}],nt="data-ng-animate",at="$ngAnimatePin",hr=["$animateProvider",function(n){function o(n,i,r,u){return t[n].some(function(n){return n(i,r,u)})}function f(n,t){n=n||{};var i=(n.addClass||"").length>0,r=(n.removeClass||"").length>0;return t?i&&r:i||r}var e=1,i=2,t=this.rules={skip:[],cancel:[],join:[]};t.join.push(function(n,t){return!t.structural&&f(t.options)});t.skip.push(function(n,t){return!t.structural&&!f(t.options)});t.skip.push(function(n,t,i){return i.event=="leave"&&t.structural});t.skip.push(function(n,t,i){return i.structural&&!t.structural});t.cancel.push(function(n,t,i){return i.structural&&t.structural});t.cancel.push(function(n,t,r){return r.state===i&&t.structural});t.cancel.push(function(n,t,i){var r=t.options,u=i.options;return r.addClass&&r.addClass===u.removeClass||r.removeClass&&r.removeClass===u.addClass});this.$get=["$$rAF","$rootScope","$rootElement","$document","$$HashMap","$$animation","$$AnimateRunner","$templateRequest","$$jqLite",function(t,l,v,y,p,w,g,ft,et){function kt(n,t){return d(n,t,{})}function ri(n,t){var e=u(n),i=[],f=st[t];return f&&r(f,function(n){n.node.contains(e)&&i.push(n.callback)}),i}function ui(n,i,u,f){t(function(){r(ri(i,n),function(n){n(i,u,f)})})}function fi(n,t,r){function yt(t,i,r,u){ui(i,n,r,u);t.progress(i,r,u)}function p(t){bt(n,r);a(n,r);r.domOperation();c.complete(!t)}var y,ut,c,ft,v,st,at,vt,it,rt;if((n=ai(n),n&&(y=u(n),ut=n.parent()),r=k(r),c=new g,!y)||(h(r.addClass)&&(r.addClass=r.addClass.join(" ")),h(r.removeClass)&&(r.removeClass=r.removeClass.join(" ")),r.from&&!tt(r.from)&&(r.from=null),r.to&&!tt(r.to)&&(r.to=null),ft=[y.className,r.addClass,r.removeClass].join(" "),!ii(ft)))return p(),c;var b=["enter","move","leave"].indexOf(t)>=0,nt=!ct||ht.get(y),s=!nt&&ot.get(y)||{},et=!!s.state;if(nt||et&&s.state==e||(nt=!oi(n,ut,t)),nt)return p(),c;if(b&&ei(n),v={structural:b,element:n,event:t,close:p,options:r,runner:c},et){if(st=o("skip",n,v,s),st)return s.state===i?(p(),c):(d(n,s.options,r),s.runner);if(at=o("cancel",n,v,s),at)s.state===i?s.runner.end():s.structural?s.close():d(n,v.options,s.options);else if(vt=o("join",n,v,s),vt)if(s.state===i)kt(n,r);else return t=v.event=s.event,r=d(n,s.options,v.options),c}else kt(n,r);return(it=v.structural,it||(it=v.event==="animate"&&Object.keys(v.options.to||{}).length>0||f(v.options)),!it)?(p(),lt(n),c):(b&&dt(ut),rt=(s.counter||0)+1,v.counter=rt,gt(n,e,v),l.$$postDigest(function(){var e=ot.get(y),o=!e,s,h,l;if(e=e||{},s=n.parent()||[],h=s.length>0&&(e.event==="animate"||e.structural||f(e.options)),o||e.counter!==rt||!h){o&&(bt(n,r),a(n,r));(o||b&&e.event!==t)&&(r.domOperation(),c.end());h||lt(n);return}t=!e.structural&&f(e.options,!0)?"setClass":e.event;e.structural&&dt(s);gt(n,i);l=w(n,t,e.options);l.done(function(i){p(!i);var r=ot.get(y);r&&r.counter===rt&&lt(u(n));yt(c,t,"close",{})});c.setHost(l);yt(c,t,"start",{})}),c)}function ei(n){var t=u(n),f=t.querySelectorAll("["+nt+"]");r(f,function(n){var r=parseInt(n.getAttribute(nt)),t=ot.get(n);switch(r){case i:t.runner.end();case e:t&&ot.remove(n)}})}function lt(n){var t=u(n);t.removeAttribute(nt);ot.remove(t)}function yt(n,t){return u(n)===u(t)}function dt(n){function e(n,t){!t.structural&&f(t.options)&&(t.state===i&&t.runner.end(),lt(n))}var t=u(n),r;do{if(!t||t.nodeType!==c)break;r=ot.get(t);r&&e(t,r);t=t.parentNode}while(1)}function oi(n,t){var o=!1,i=!1,f=!1,r,u=n.data(at),e,h,s,l;for(u&&(t=u);t&&t.length;){if(i||(i=yt(t,v)),e=t[0],e.nodeType!==c)break;if(h=ot.get(e)||{},f||(f=h.structural||ht.get(e)),(si(r)||r===!0)&&(s=t.data(rt),hi(s)&&(r=s)),f&&r===!1)break;i||(i=yt(t,v),i||(u=t.data(at),u&&(t=u)));o||(o=yt(t,ti));t=t.parent()}return l=!f||r,l&&i&&o}function gt(n,t,i){var r,f,e;i=i||{};i.state=t;r=u(n);r.setAttribute(nt,t);f=ot.get(r);e=f?vt(f,i):i;ot.put(r,e)}var ot=new p,ht=new p,ct=null,ni=l.$watch(function(){return ft.totalPendingRequests===0},function(n){n&&(ni(),l.$$postDigest(function(){l.$$postDigest(function(){ct===null&&(ct=!0)})}))}),ti=s(y[0].body),st={},pt=n.classNameFilter(),ii=pt?function(n){return pt.test(n)}:function(){return!0},bt=b(et);return{on:function(n,t,i){var r=ut(t);st[n]=st[n]||[];st[n].push({node:r,callback:i})},off:function(n,t,i){function u(n,t,i){var r=ut(t);return n.filter(function(n){var t=n.node===r&&(!i||n.callback===i);return!t})}var r=st[n];r&&(st[n]=arguments.length===1?null:u(r,t,i))},pin:function(n,t){wt(it(n),"element","not an element");wt(it(t),"parentElement","not an element");n.data(at,t)},push:function(n,t,i,r){return i=i||{},i.domOperation=r,fi(n,t,i)},enabled:function(n,t){var f=arguments.length,e,i,r;return f===0?t=!!ct:(e=it(n),e?(i=u(n),r=ht.get(i),f===1?t=!r:(t=!!t,t?r&&ht.remove(i):ht.put(i,!0))):t=ct=!!n),t}}}]}],cr=["$$rAF",function(n){return function(){var t=!1;return n(function(){t=!0}),function(i){t?i():n(i)}}}],lr=["$q","$$rAFMutex",function(n,t){function i(n){this.setHost(n);this._doneCallbacks=[];this._runInAnimationFrame=t();this._state=0}var f=0,e=1,u=2;return i.chain=function(n,t){function r(){if(i===n.length){t(!0);return}n[i](function(n){if(n===!1){t(!1);return}i++;r()})}var i=0;r()},i.all=function(n,t){function f(r){i=i&&r;++u===n.length&&t(i)}var u=0,i=!0;r(n,function(n){n.done(f)})},i.prototype={setHost:function(n){this.host=n||{}},done:function(n){this._state===u?n():this._doneCallbacks.push(n)},progress:o,getPromise:function(){if(!this.promise){var t=this;this.promise=n(function(n,i){t.done(function(t){t===!1?i():n()})})}return this.promise},then:function(n,t){return this.getPromise().then(n,t)},"catch":function(n){return this.getPromise()["catch"](n)},"finally":function(n){return this.getPromise()["finally"](n)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end();this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel();this._resolve(!1)},complete:function(n){var t=this;t._state===f&&(t._state=e,t._runInAnimationFrame(function(){t._resolve(n)}))},_resolve:function(n){this._state!==u&&(r(this._doneCallbacks,function(t){t(n)}),this._doneCallbacks.length=0,this._state=u)}},i}],ar=["$animateProvider",function(){function e(n,t){n.data(f,t)}function o(n){n.removeData(f)}function t(n){return n.data(f)}var n="ng-animate-ref",i=this.drivers=[],f="$$animationRunner";this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$rAFScheduler",function(f,h,c,l,v){var p=[],g=b(f),w=0,d=0,y=[];return function(b,nt,tt){function ht(t){var u="["+n+"]",f=t.hasAttribute(n)?[t]:t.querySelectorAll(u),i=[];return r(f,function(t){var r=t.getAttribute(n);r&&r.length&&i.push(t)}),i}function ct(t){var i=[],f={},o,e;return r(t,function(t,e){var c=t.element,l=u(c),a=t.event,v=["enter","move"].indexOf(a)>=0,o=t.structural?ht(l):[],h;o.length?(h=v?"to":"from",r(o,function(t){var i=t.getAttribute(n);f[i]=f[i]||{};f[i][h]={animationID:e,element:s(t)}})):i.push(t)}),o={},e={},r(f,function(n){var r=n.from,s=n.to,h,c,a;if(!r||!s){h=r?r.animationID:s.animationID;c=h.toString();o[c]||(o[c]=!0,i.push(t[h]));return}var u=t[r.animationID],f=t[s.animationID],l=r.animationID.toString();e[l]||(a=e[l]={structural:!0,beforeStart:function(){u.beforeStart();f.beforeStart()},close:function(){u.close();f.close()},classes:lt(u.classes,f.classes),from:u,to:f,anchors:[]},a.classes.length?i.push(a):(i.push(u),i.push(f)));e[l].anchors.push({out:r.element,"in":s.element})}),i}function lt(n,t){var f,i,r,u;for(n=n.split(" "),t=t.split(" "),f=[],i=0;i<n.length;i++)if(r=n[i],r.substring(0,3)!=="ng-")for(u=0;u<t.length;u++)if(r===t[u]){f.push(r);break}return f.join(" ")}function at(n){for(var r,f,u,t=i.length-1;t>=0;t--)if((r=i[t],c.has(r))&&(f=c.get(r),u=f(n),u))return u}function vt(){b.addClass(pt);it&&f.addClass(b,it)}function yt(n,i){function r(n){t(n).setHost(i)}n.from&&n.to?(r(n.from.element),r(n.to.element)):r(n.element)}function st(){var n=t(b);n&&(nt!=="leave"||!tt.$$domOperationFired)&&n.end()}function ut(n){b.off("$destroy",st);o(b);g(b,tt);a(b,tt);tt.domOperation();it&&f.removeClass(b,it);b.removeClass(pt);rt.complete(!n)}var ft,rt,et,it,ot;if(tt=k(tt),ft=["enter","move","leave"].indexOf(nt)>=0,rt=new l({end:function(){ut()},cancel:function(){ut(!0)}}),!i.length)return ut(),rt;e(b,rt);et=bt(b.attr("class"),bt(tt.addClass,tt.removeClass));it=tt.tempClasses;it&&(et+=" "+it,tt.tempClasses=null);ft||(ot=w,w+=1);p.push({element:b,classes:et,event:nt,classBasedIndex:ot,structural:ft,options:tt,beforeStart:vt,close:ut});b.on("$destroy",st);return p.length>1?rt:(h.$$postDigest(function(){d=w;w=0;y.length=0;var n=[];r(p,function(i){t(i.element)&&n.push(i)});p.length=0;r(ct(n),function(n){function i(){var i,r,f,e,o;n.beforeStart();r=n.close;f=n.anchors?n.from.element||n.to.element:n.element;t(f)&&u(f).parentNode&&(e=at(n),e&&(i=e.start));i?(o=i(),o.done(function(n){r(!n)}),yt(n,o)):r()}n.structural?i():(y.push({node:u(n.element),fn:i}),n.classBasedIndex===d-1&&(y=y.sort(function(n,t){return t.node.contains(n.node)}).map(function(n){return n.fn}),v(y)))})}),rt)}}]}];t.module("ngAnimate",[]).directive("ngAnimateChildren",bi).factory("$$rAFMutex",cr).factory("$$rAFScheduler",wi).factory("$$AnimateRunner",lr).provider("$$animateQueue",hr).provider("$$animation",ar).provider("$animateCss",fr).provider("$$animateCssDriver",er).provider("$$animateJs",or).provider("$$animateJsDriver",sr)})(window,window.angular),function(n){"use strict";n.module("vcRecaptcha",[])}(angular),function(n){"use strict";function t(){throw new Error('You need to set the "key" attribute to your public reCaptcha key. If you don\'t have a key, please get one from https://www.google.com/recaptcha/admin/create');}var i=n.module("vcRecaptcha");i.provider("vcRecaptchaService",function(){var i=this,r={};i.onLoadFunctionName="vcRecaptchaApiLoaded";i.setDefaults=function(t){n.copy(t,r)};i.setSiteKey=function(n){r.key=n};i.setTheme=function(n){r.theme=n};i.setStoken=function(n){r.stoken=n};i.setSize=function(n){r.size=n};i.setType=function(n){r.type=n};i.setLang=function(n){r.lang=n};i.setOnLoadFunctionName=function(n){i.onLoadFunctionName=n};i.$get=["$rootScope","$window","$q","$document",function(u,f,e,o){function p(){return!s?y:e.when(s)}function v(){if(!s)throw new Error("reCaptcha has not been loaded yet.");}var a=e.defer(),y=a.promise,c={},s,l,h;return f.vcRecaptchaApiLoadedCallback=f.vcRecaptchaApiLoadedCallback||[],l=function(){s=f.grecaptcha;a.resolve(s)},f.vcRecaptchaApiLoadedCallback.push(l),f[i.onLoadFunctionName]=function(){f.vcRecaptchaApiLoadedCallback.forEach(function(n){n()})},n.isDefined(f.grecaptcha)?l():(h=f.document.createElement("script"),h.async=!0,h.defer=!0,h.src="https://www.google.com/recaptcha/api.js?onload="+i.onLoadFunctionName+"&render=explicit",o.find("body").append(h)),{create:function(n,i){return i.sitekey=window[n.id+"Key"]||googleCaptchaKey,i.theme=i.theme||r.theme,i.stoken=i.stoken||r.stoken,i.size=i.size||r.size,i.type=i.type||r.type,i.hl=i.lang||r.lang,i.sitekey&&i.sitekey.length===40||t(),p().then(function(t){var r=t.render(n,i);return c[r]=n,r})},reload:function(n){v();s.reset(n);u.$broadcast("reCaptchaReset",n)},useLang:function(n,t){var u=c[n],i,r;if(u)if(i=u.querySelector("iframe"),t)i&&i.src&&(r=i.src,/[?&]hl=/.test(r)?r=r.replace(/([?&]hl=)\w+/,"$1"+t):r+=(r.indexOf("?")===-1?"?":"&")+"hl="+t,i.src=r);else return i&&i.src&&/[?&]hl=\w+/.test(i.src)?i.src.replace(/.+[?&]hl=(\w+)([^\w].+)?/,"$1"):null;else throw new Error("reCaptcha Widget ID not exists",n);},getResponse:function(n){return v(),s.getResponse(n)},getInstance:function(n){return c[n]},destroy:function(n){delete c[n]}}}]})}(angular),function(n){"use strict";var t=n.module("vcRecaptcha");t.directive("vcRecaptcha",["$document","$timeout","vcRecaptchaService",function(t,i,r){return{restrict:"A",require:"?^^form",scope:{response:"=?ngModel",key:"=?",stoken:"=?",theme:"=?",size:"=?",type:"=?",lang:"=?",tabindex:"=?",required:"=?",onCreate:"&",onSuccess:"&",onExpire:"&"},link:function(u,f,e,o){function c(){o&&o.$setValidity("recaptcha",null);a()}function l(){i(function(){u.response="";s();u.onExpire({widgetId:u.widgetId})})}function s(){o&&o.$setValidity("recaptcha",u.required===!1?null:Boolean(u.response))}function a(){r.destroy(u.widgetId);n.element(t[0].querySelectorAll(".pls-container")).parent().remove()}u.widgetId=null;o&&n.isDefined(e.required)&&u.$watch("required",s);var h=u.$watch("key",function(t){var o=function(n){i(function(){u.response=n;s();u.onSuccess({response:n,widgetId:u.widgetId})})};r.create(f[0],{callback:o,key:t,stoken:u.stoken||e.stoken||null,theme:u.theme||e.theme||null,type:u.type||e.type||null,lang:u.lang||e.lang||null,tabindex:u.tabindex||e.tabindex||null,size:u.size||e.size||null,"expired-callback":l}).then(function(t){s();u.widgetId=t;u.onCreate({widgetId:t});u.$on("$destroy",c);u.$on("reCaptchaReset",function(i,r){(n.isUndefined(r)||t===r)&&(u.response="",s())})});h()})}}}])}(angular),function(n){var t;(function(n){var t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k,d,g,nt,tt,it,rt,ut,ft,et,ot,st,ht,ct,lt,at,vt,yt,pt,wt,bt,kt,dt,gt;n.idTypeValue="1";n.passportTypeValue="4";n.defaultCountryCode="212";n.ContanctDetailsActionCode={Select:0,UpdatedualCompany:1,UpdateMailPhone:2};n.ClientOnlineBankingActionCode={Select:1,Update:2};n.CahnnelCode={Isracard:100,Amex:102};n.onlineClientCompanyCode={Isracrad:1,Amex:2,Dualy:4};t=function(){function n(){}return n}();n.ValidateIdRequest=t;i=function(){function n(){}return n}();n.HeaderType=i;r=function(){function n(){}return n}();n.GetCountriesResponse=r;u=function(){function n(){}return n}();n.GetCountriesResponseBean=u;f=function(){function n(){}return n}();n.CountryType=f;e=function(){function n(){}return n}();n.GetQuestionsResponse=e;o=function(){function n(){}return n}();n.GetQuestionsResponseBean=o;s=function(){function n(n,t){this.kod_sheaela=n;this.teur_sheaela=t}return n}();n.QuestionType=s;h=function(){function n(){}return n}();n.ValidateIdQuestionRequest=h;c=function(){function n(){}return n}();n.ValidateIdQuestionResponse=c;l=function(){function n(){}return n}();n.ValidateIdQuestionResponseBean=l;a=function(){function n(){}return n}();n.ValidateIdResponse=a;v=function(){function n(){}return n}();n.ValidateIdNoRegResponse=v;y=function(){function n(){}return n}();n.ValidateIdDataNoRegBean=y;p=function(){function n(){}return n}();n.ValidateIdResponseBean=p;w=function(){function n(){}return n}();n.StatusResponse=w;b=function(){function n(){}return n}();n.PerformLoginRequest=b;k=function(){function n(){}return n}();n.PerformLogonOTPRequest=k;d=function(){function n(){}return n}();n.PerformLoginResponse=d;g=function(){function n(){}return n}();n.SendOTPRequest=g;nt=function(){function n(){}return n}();n.SendOTPResponse=nt;tt=function(){function n(){}return n}();n.SendOTPResponseBean=tt;it=function(){function n(){}return n}();n.ValidateOTPRequest=it;rt=function(){function n(){}return n}();n.ValidateOTPNoRegResponse=rt;ut=function(){function n(){}return n}();n.ValidateOTPNoRegResponseBean=ut;ft=function(){function n(){}return n}();n.ValidateOTPResponse=ft;et=function(){function n(){}return n}();n.ValidateOTPResponseBean=et;ot=function(){function n(){}return n}();n.NewCustomerRegisterRequest=ot;st=function(){function n(){}return n}();n.NewCustomerRegisterResponse=st;ht=function(){function n(){}return n}();n.NewCustomerRegistrationBean=ht;ct=function(){function n(){}return n}();n.NewCustomerChangePasswordRequest=ct;lt=function(){function n(){}return n}();n.NewCustomerChangePasswordRespons=lt;at=function(){function n(){}return n}();n.NewCustomerChangePasswordResponseBean=at;vt=function(){function n(){}return n}();n.LegalTerm=vt;yt=function(){function n(){this.title="";this.text="";this.btnText="";this.successText="";this.errorMessage=""}return n}();n.passwordPopUp=yt;pt=function(){function n(){}return n}();n.CustomerContactDetailsRequest=pt;wt=function(){function n(){}return n}();n.CustomerContactDetailsResponse=wt;bt=function(){function n(){}return n}();n.ClientOnlineBankingRequest=bt;kt=function(){function n(){}return n}();n.ClientOnlineBankingResponse=kt;dt=function(){function n(){}return n}();n.LoginRequest=dt;gt=function(){function n(){var n=this;this.onCreate=function(t){n.widgetId=t}}return n}();n.GoogleRecaptchaDetails=gt})(t=n.otpLogin||(n.otpLogin={}))}(classes||(classes={})),function(){var n=angular.module("OTPLoginModule",["ngRoute","ngMessages","app.Common.validations.UniValidationModule","ui.select","ngSanitize","app.Common.ReturnCodesModule","app.Common.DigitalServicesModule","ngAnimate","app.Common.FeaturesModule","app.CallBack.CallBackPopup","app.DynamicPopup.callBackAddrequest","app.DynamicPopup.SendOtp","vcRecaptcha"]).config(["vcRecaptchaServiceProvider",function(n){n.setSiteKey(window.googleRecaptchaSiteKey);n.setLang("iw")}])}(),function(n){var t;(function(n){var t=function(){function n(n,t){var i=this;this.otpService=n;this.locationService=t;this.getLocation=function(){return i.locationService.path()};this.toggleLegalTerm=function(){var r="'"+i.otpService.loginLegalTerm.legalTermGaName+"'",n=i.otpService.loginLegalTerm.legalTermGaStep,t=i.otpService.loginLegalTerm.legalTermGaEvent;PushGACode({legalTermGaName:n,event:t});i.openLegalTerm=!i.openLegalTerm};this.passwordInstructions=!1;this.openLegalTerm=!1}return n}();t.$inject=["Uni.Services.otpService","$location"];n.mainOTP=t;angular.module("OTPLoginModule").controller("Uni.controllers.mainOTP",t)})(t=n.controllers||(n.controllers={}))}(Uni||(Uni={})),function(n){var t;(function(n){var t=function(){function n(n,t,i){var r=this;this.digitalServices=n;this.featureService=t;this.returnCodesService=i;this.idTypeValue=classes.otpLogin.idTypeValue;this.passportTypeValue=classes.otpLogin.passportTypeValue;this.defaultCountryCode=classes.otpLogin.defaultCountryCode;this.isSMSORPasswordExpired=!1;this.isLoading=!1;this.countries=[];this.questionList=[];this.resetForm=function(n){n.$setPristine();n.$setUntouched()};this.initVaribles=function(){r.validateIdCaptcha=!1;r.validateIdQuestionCaptcha=!1;r.validateOTPCaptcha=!1;r.performLoginCaptcha=!1;r.validateIdResponse=new classes.otpLogin.ValidateIdResponse;r.validateIdQuestionResponse=new classes.otpLogin.ValidateIdQuestionResponse;r.initAllRequests()};this.initAllRequests=function(n){n===void 0&&(n=!1);r.validateIdRequest=new classes.otpLogin.ValidateIdRequest;r.validateIdRequest.checkLevel="1";r.validateIdRequest.idType=n?r.idTypeValue:r.saveLastIdType;r.performLoginRequest=new classes.otpLogin.PerformLoginRequest;r.sendOTPRequest=new classes.otpLogin.SendOTPRequest;r.validateOTPRequest=new classes.otpLogin.ValidateOTPRequest;r.newRegisterRequest=new classes.otpLogin.NewCustomerRegisterRequest;r.performLogonOTPRequest=new classes.otpLogin.PerformLogonOTPRequest;r.validateIdQuestionRequest=new classes.otpLogin.ValidateIdQuestionRequest;r.NewCustomerChangePasswordRequest=new classes.otpLogin.NewCustomerChangePasswordRequest};this.callInitialServices=function(){r.GetCountries()};this.performLogin=function(){return r.digitalServices.useSimplePostHandler(currentLogonServiceName,r.performLoginRequest)};this.performLogonOTP=function(){return r.digitalServices.useSimplePostHandler(currentOTPLogonServiceName,r.performLogonOTPRequest)};this.performValidateId=function(){return r.validateIdRequest.companyCode=companyServiceCode,r.saveLastIdType=r.validateIdRequest.idType,r.validateIdRequest.idType==classes.otpLogin.idTypeValue&&(r.validateIdRequest.countryCode=classes.otpLogin.defaultCountryCode),r.validateIdRequest.applicationSource="0",r.digitalServices.useSimplePostHandler(app.Common.DigitalServicesModule.Constants.ValidateIdData,r.validateIdRequest)};this.performValidateIdNoReg=function(){return r.validateIdRequest.companyCode=companyServiceCode,r.saveLastIdType=r.validateIdRequest.idType,r.validateIdRequest.idType==classes.otpLogin.idTypeValue&&(r.validateIdRequest.countryCode=classes.otpLogin.defaultCountryCode),r.validateIdRequest.applicationSource="0",r.digitalServices.useSimplePostHandler(app.Common.DigitalServicesModule.Constants.ValidateIdDataNoReg,r.validateIdRequest)};this.GetCountries=function(){var n=r.digitalServices.useSimpleGetHandler(app.Common.DigitalServicesModule.Constants.GetCountries,"",!0).then(function(n){var t=n.data;t&&t.Header&&t.Header.Status=="1"&&t.KodeyEretzBean&&t.KodeyEretzBean.Table1&&t.KodeyEretzBean.Table1.length>0&&(r.countries=t.KodeyEretzBean.Table1)})};this.SendOTP=function(){return r.popupStage.serviceForActivate!="Email"?(r.sendOTPRequest.sendByEmail="false",r.sendOTPRequest.sendBySMS="true"):r.popupStage.serviceForActivate=="Email"&&(r.sendOTPRequest.sendByEmail="true",r.sendOTPRequest.sendBySMS="false"),r.digitalServices.useSimplePostHandler(app.Common.DigitalServicesModule.Constants.SendOTP,r.sendOTPRequest)};this.ValidateOTP=function(){return r.digitalServices.useSimplePostHandler("ValidateForgotOTP",r.validateOTPRequest)};this.ValidateOTPNoReg=function(){return r.digitalServices.useSimplePostHandler("ValidateForgotOTPNoReg",r.validateOTPRequest)};this.GetQuestions=function(){var n=r.digitalServices.useSimpleGetHandler(app.Common.DigitalServicesModule.Constants.GetQuestions,"",!0).then(function(n){var t=n.data;t&&t.Header&&t.Header.Status=="1"&&t.ReshimatSheelotBean&&t.ReshimatSheelotBean.Table1&&t.ReshimatSheelotBean.Table1.length>0&&(r.questionList=t.ReshimatSheelotBean.Table1)})};this.ValidateIdQuestion=function(){return r.digitalServices.useSimplePostHandler(app.Common.DigitalServicesModule.Constants.ValidateIdQuestion,r.validateIdQuestionRequest)};this.prepareQuestionArray=function(){r.validateIdQuestionsArray=[];r.validateIdQuestionsArray.push(new classes.otpLogin.QuestionType(r.validateIdResponse.ValidateIdDataBean.questionCode,r.validateIdResponse.ValidateIdDataBean.questionContent));r.validateIdQuestionsArray.push(new classes.otpLogin.QuestionType(r.validateIdResponse.ValidateIdDataBean.question2Code,r.validateIdResponse.ValidateIdDataBean.question2Content));r.validateIdQuestionsArray.push(new classes.otpLogin.QuestionType(r.validateIdResponse.ValidateIdDataBean.question3Code,r.validateIdResponse.ValidateIdDataBean.question3Content))};this.deleteMe=function(){r.validateIdQuestionsArray=[];r.validateIdQuestionsArray.push(new classes.otpLogin.QuestionType("1","question 1"));r.validateIdQuestionsArray.push(new classes.otpLogin.QuestionType("1","question 1"));r.validateIdQuestionsArray.push(new classes.otpLogin.QuestionType("1","question 1"))};this.NewCustomerChangePassword=function(){return r.digitalServices.useSimplePostHandler(app.Common.DigitalServicesModule.Constants.NewCustomerChangePassword,r.NewCustomerChangePasswordRequest)};this.NewCustomerRegistration=function(){return r.digitalServices.useSimplePostHandler(app.Common.DigitalServicesModule.Constants.NewCustomerRegistration,r.newRegisterRequest)};this.CustomerContactDetails=function(n){return r.digitalServices.useSimplePostHandler(app.Common.DigitalServicesModule.Constants.MaskedContactDetails,n)};this.ClientOnlineBanking=function(n){return r.digitalServices.useSimplePostHandler(app.Common.DigitalServicesModule.Constants.ClientOnlineBanking,n)};this.validateCaptcha=function(n,t,i){return r.featureService.ValidateCaptcha(n,t,i)};this.ShowIvrOrEmailLink=function(n,t,i){if(!t||t!=app.Common.DigitalServicesModule.Constants.SendOTP)t==app.Common.DigitalServicesModule.Constants.ValidateOTP&&n=="33"&&(r.showEmailLink=!1,r.showIvrLink=!1);else{switch(n){case"33":r.showEmailLink=!1;i||(r.showIvrLink=!1);break;case"99":r.showEmailLink=!1;i||(r.showIvrLink=!1)}r.sendOTPResponse.SendOTPBean.emailMasked||(r.showEmailLink=!1);(i||r.sendOTPResponse.SendOTPBean.smsMasked)&&r.sendOTPResponse.SendOTPBean.smsMasked!="000"||(r.showIvrLink=!1)}};this.ShowIvrEmailPopUp=function(n){var t,i;n=="Email"?(t="{mail}",i="emailMasked",r.popupStage.serviceForActivate="Email",PushGACode({event:"PersonalZoneSMSCodeMailClick"})):(t="{phone}",i="smsMasked",r.popupStage.serviceForActivate="Ivr",PushGACode({event:"PersonalZoneSMSCodeVoicemailClick"}));r.sendPasswordPopup.title=r.stringDictionary[n+"VerificationTitle"];r.sendPasswordPopup.text=r.xhtmlDictionary[n+"PopupText"].replace(t,"<bdi class='bdi-phone-num'>"+r.maskedProperties[i]+"<\/bdi>");r.sendPasswordPopup.successText=r.xhtmlDictionary[n+"SuccessText"];r.sendPasswordPopup.btnText=r.stringDictionary[n+"PopupBtnText"];r.showPopupForSending=!0;n=="Email"?PushGACode({event:"PersonalZoneSMSCodeMailPopUp"}):PushGACode({event:"PersonalZoneSMSCodeVoicemailPopUp"})};this.SendIvrOrMail=function(){var n="";r.popupStage.serviceForActivate=="Email"?(PushGACode({event:"PersonalZoneSMSCodeMailSend"}),n=app.Common.DigitalServicesModule.Constants.SendOTP.toBean(),r.SendOTP().then(function(t){var i=t.data;if(r.ShowIvrOrEmailLink(i[n].returnCode,app.Common.DigitalServicesModule.Constants.SendOTP,r.popupStage.serviceForActivate=="Email"),i&&i.Header&&i.Header.Status=="1"){r.sendOTPResponse=t.data;r.popupStage.beforeServiceCall=!1;r.popupStage.afterServiceCall=!0;switch(r.sendOTPResponse.SendOTPBean.returnCode){case"0":PushGACode({event:"PersonalZoneSMSCodeMailSuccess"});r.errorAtSendingPassword=!1;r.maskSpecialPropeties();break;default:PushGACode({event:"PersonalZoneSMSCodeMailFail"});try{r.getReturnCodeMessage(n,r.sendOTPResponse.SendOTPBean.returnCode).then(function(n){r.errorMsg=n})}catch(u){r.errorMsg=generalErrorOtpService}r.errorAtSendingPassword=!0}}})):r.popupStage.serviceForActivate=="Ivr"&&(n=app.Common.DigitalServicesModule.Constants.CallBackAddRequest.toBean(),PushGACode({event:"PersonalZoneSMSCodeVoicemailCallMe"}),r.featureService.CallBackAddReqest(r.CallBackAddRequestService()).then(function(t){var i=t.data,u;if(!!i&&!!i.Header){r.popupStage.beforeServiceCall=!1;r.popupStage.afterServiceCall=!0;u=i.CallBackAddRequestBean.returnCode;switch(u){case"0":r.errorAtSendingPassword=!1;PushGACode({event:"PersonalZoneSMSCodeVoicemailSuccess"});break;default:PushGACode({event:"PersonalZoneSMSCodeVoicemailFail"});try{u.length>1&&u.charAt(0)=="1"&&(r.showIvrLink=!1);r.getReturnCodeMessage(n,i.CallBackAddRequestBean.returnCode).then(function(n){r.errorMsg=n})}catch(f){r.errorMsg=generalErrorOtpService}r.errorAtSendingPassword=!0}}}))};this.CallBackAddRequestService=function(){r.callBackPopupkRequest.callingListCode="TA_CallBack_OTP";r.callBackPopupkRequest.callingListName="TA_CallBack_OTP";r.callBackPopupkRequest.cardNumber=r.sendOTPRequest.cardSuffix;var n="";return r.sendOTPRequest.kodChevra==app.Common.DigitalServicesModule.Constants.Company_Code_Isracard?n="1":r.sendOTPRequest.kodChevra==app.Common.DigitalServicesModule.Constants.Company_Code_Amex&&(n="2"),r.callBackPopupkRequest.companyCode=n,r.callBackPopupkRequest.idNumber=r.sendOTPRequest.id,r.callBackPopupkRequest.custKey=r.sendOTPRequest.id,r.callBackPopupkRequest.dailyFrom="00:00",r.callBackPopupkRequest.dailyTo="23:59",r.callBackPopupkRequest.field6=r.sendOTPRequest.idType,r.callBackPopupkRequest.field7=r.sendOTPRequest.countryCode,r.callBackPopupkRequest.phoneNumber="",r.callBackPopupkRequest.routing=r.stringDictionary.Routing,r.callBackPopupkRequest.selectedPhonePrefix="",r.callBackPopupkRequest.varchar_8="MOKED_BERURIM",r.callBackPopupkRequest};this.ClosePopupClearData=function(){r.showPopupForSending=!1;r.popupStage.beforeServiceCall=!0;r.popupStage.afterServiceCall=!1;r.errorAtSendingPassword=!1};this.getReturnCodeMessage=function(n,t){return r.messageRequest.serviceName=n,r.messageRequest.returnCode=t,r.returnCodesService.getMessage(r.messageRequest).then(function(n){var t=n.message;return t!=null&&t!=""?t:r.generalError})};this.maskSpecialPropeties=function(){!r.sendOTPResponse.SendOTPBean.smsMasked?!1:r.maskedProperties.smsMasked=r.sendOTPResponse.SendOTPBean.smsMasked;!r.sendOTPResponse.SendOTPBean.emailMasked?!1:r.maskedProperties.emailMasked=r.sendOTPResponse.SendOTPBean.emailMasked};this.initVaribles();this.callInitialServices();this.deleteMe();this.maskedProperties={emailMasked:"",smsMasked:""};this.showIvrLink=!0;this.showEmailLink=!0;this.showPopupForSending=!1;this.errorAtSendingPassword=!1;this.messageRequest=new app.Common.ReturnCodesModule.ReturnCodeRequest(app.Common.DigitalServicesModule.Constants.SendOTP,"","ErrorPageID");this.callBackPopupkRequest=new app.Common.Features.Classes.CallBackRequest;this.sendOTPResponse=new classes.otpLogin.SendOTPResponse;this.stringDictionary=stringDictionaryData;this.globalHideForIvrAndMail=!this.stringDictionary.HideSendOtpPasswordAtMailAndIvr||this.stringDictionary.HideSendOtpPasswordAtMailAndIvr!="true"?!1:!0;this.xhtmlDictionary=xhtmlDictionaryData;this.generalError=generalErrorOtpService;this.sendPasswordPopup=new classes.otpLogin.passwordPopUp;this.popupStage={beforeServiceCall:!0,afterServiceCall:!1,serviceForActivate:""}}return n.prototype.login=function(n,t){return this.digitalServices.useSimplePostHandler(t,n)},n}();t.$inject=["app.Common.DigitalServicesModule.DigitalServices","app.Common.FeaturesModule.FeatureServices","app.Common.ReturnCodesModule.Service"];n.otpService=t;angular.module("OTPLoginModule").service("Uni.Services.otpService",t)})(t=n.Services||(n.Services={}))}(Uni||(Uni={})),function(n){var t;(function(n){var t=function(){function n(n,t,i){var r=this,u;this.lobbyService=n;this.injScope=i;this.countries=[];this.getLocation=function(){return r.locationService.path()};this.handleDivClick=function(n,t){t==r.isOTPDisabled;r.isOtpLastClick!=t&&(t?PushGACode({event:"PersonalZoneSMSLoginViewLoginPage"}):PushGACode({event:"PersonalZonePermanentPasswordViewLoginPage"}));r.isOTPDisabled=!t;r.isOtpLastClick=t};this.performLogin=function(){var t,n;r.isLoading!=!0&&(r.isLoading=!0,r.serverErrorPassword="",t=document.getElementById("captchaInputPassword"),t&&(n=t.Captcha,n&&(r.lobbyService.validateIdRequest.instanceId=n.InstanceId,r.lobbyService.validateIdRequest.captchaId=n.Id,r.lobbyService.performLoginRequest.userInput=r.lobbyService.validateIdRequest.userInput,r.lobbyService.performLoginRequest.instanceId=n.InstanceId,r.lobbyService.performLoginRequest.captchaId=n.Id)),r.lobbyService.performValidateId().then(function(t){var i=t.data;if(i&&i.Header&&i.Header.Status=="1")switch(i.ValidateIdDataBean.returnCode){case"1":r.lobbyService.performLoginRequest.KodMishtamesh=i.ValidateIdDataBean.userName;r.lobbyService.performLoginRequest.MisparZihuy=r.lobbyService.validateIdRequest.id;r.lobbyService.performLoginRequest.countryCode=r.lobbyService.validateIdRequest.countryCode;r.lobbyService.performLoginRequest.idType=r.lobbyService.validateIdRequest.idType;r.lobbyService.performLoginRequest.cardSuffix=r.lobbyService.validateIdRequest.cardSuffix;r.lobbyService.performLogin().then(function(n){var t=n.data;r.lobbyService.performLoginCaptcha=t.isCaptcha=="true";switch(t.status){case"1":if(urlRedirect){PushGACode({event:"PersonalZonePermanentPasswordEnterSuccess"});try{location.href.split("returnUrl=")&&(urlRedirect=location.href.split("returnUrl=")[1].replace("#/","#"),urlRedirect=urlRedirect.replace("https:/s","https://s"))}catch(i){}window.location.href=urlRedirect}else window.location.href="/",r.isLoading=!1;break;case"2":r.serverErrorPassword=t.message;PushGACode({PersonalZonePermanentPasswordEnterFailName:t.message,event:"PersonalZonePermanentPasswordEnterFail"});r.isLoading=!1;r.lobbyService.resetForm(r.injScope.$$childTail.otpLobbyForm);r.lobbyService.initAllRequests();break;case"3":PushGACode({event:"PersonalZoneChangePasswordStep1"});r.isLoading=!1;r.lobbyService.performLoginRequest.Sisma="";r.lobbyService.isSMSORPasswordExpired=!0;r.locationService.url("/PasswordExpired");break;default:r.lobbyService.resetForm(r.injScope.$$childTail.otpLobbyForm);r.lobbyService.initAllRequests();r.serverErrorPassword=t.message;r.lobbyService.performLoginCaptcha=t.isCaptcha=="true";PushGACode({PersonalZonePermanentPasswordEnterFailName:t.message,event:"PersonalZonePermanentPasswordEnterFail"});r.isLoading=!1}});break;case"4":r.isLoading=!1;r.lobbyService.performLoginRequest.KodMishtamesh=i.ValidateIdDataBean.userName;r.lobbyService.performLoginRequest.MisparZihuy=r.lobbyService.validateIdRequest.id;r.lobbyService.performLoginRequest.Sisma="";r.lobbyService.isSMSORPasswordExpired=!0;r.locationService.url("/PasswordExpired");break;case"7":r.notRegisterServerError=!0;default:i.ValidateIdDataBean.returnCode=="5"&&(r.lobbyService.loginLegalTerm=new classes.otpLogin.LegalTerm,PushGACode({PersonalZoneLockedAccountLoginFailName:"PermanentPassword",event:"PersonalZoneLockedAccountLoginFail"}));r.serverErrorPassword=i.ValidateIdDataBean.message;r.lobbyService.validateIdCaptcha=i.ValidateIdDataBean.isCaptcha=="true";r.lobbyService.resetForm(r.injScope.$$childTail.otpLobbyForm);r.lobbyService.initAllRequests();r.isLoading=!1;n&&n.ReloadImage()}else r.isLoading=!1,r.serverErrorPassword=generalErrorText,PushGACode({PersonalZonePermanentPasswordEnterFailName:generalErrorText,event:"PersonalZonePermanentPasswordEnterFail"});return i}))};this.pushEloquaContent=function(n,t){if(!n.$invalid){var i="PersonalAreaLogin";n&&n.$name&&n.$name.indexOf("SMS")!=-1&&(i="PersonalAreaOTPLogin");try{clientGuid&&clientGuid.length>0?pushEloqua("PersonalAreaOTPLogin"):t=="otpLoginID"?getUserGuid(classes.otpLogin.defaultCountryCode,r.lobbyService.validateIdRequest.id,i,"1"):r.lobbyService.validateIdRequest.countryCode&&r.lobbyService.validateIdRequest.id&&r.lobbyService.validateIdRequest.id.length>0&&getUserGuid(r.lobbyService.validateIdRequest.countryCode,r.lobbyService.validateIdRequest.id,i,"4")}catch(u){}}};this.performPasswordExpired=function(){var t,n;r.isLoading!=!0&&(r.isLoading=!0,r.serverErrorPassword="",t=document.getElementById("captchaInputExpired"),t&&(n=t.Captcha,n&&(r.lobbyService.performLoginRequest.instanceId=n.InstanceId,r.lobbyService.performLoginRequest.captchaId=n.Id)),r.lobbyService.performLoginRequest.CODE_CHANGE="1",r.lobbyService.performLogin().then(function(n){var t=n.data;if(t)switch(t.status){case"1":PushGACode({event:"PersonalZoneChangePasswordStep2Success"});r.locationService.url("/PasswordExpiredSuccess");break;default:r.lobbyService.resetForm(r.injScope.$$childTail.otpRenewExpiredForm);r.serverErrorPassword=t.message;r.lobbyService.performLoginRequest.Sisma="";r.lobbyService.performLoginRequest.SismaHadasha="";r.lobbyService.performLoginRequest.confirm="";r.lobbyService.performLoginCaptcha=t.isCaptcha=="true";PushGACode({PersonalZoneChangePasswordStep1FailName:t.message,event:"PersonalZoneChangePasswordStep1Fail"});r.isLoading=!1}else r.serverErrorPassword=generalErrorText,PushGACode({PersonalZoneChangePasswordStep1FailName:generalErrorText,event:"PersonalZoneChangePasswordStep1Fail"})}))};this.performSendSMS=function(){var t,n;r.isLoading!=!0&&(r.isLoading=!0,t=document.getElementById("captchaInputSMS"),t&&(n=t.Captcha,n&&(r.lobbyService.validateIdRequest.instanceId=n.InstanceId,r.lobbyService.validateIdRequest.captchaId=n.Id)),r.lobbyService.performValidateId().then(function(t){r.isLoading=!1;var i=t.data;if(r.lobbyService.validateIdResponse=i,i&&i.Header&&i.Header.Status=="1")switch(i.ValidateIdDataBean.returnCode){case"4":case"1":PushGACode({event:"PersonalZoneSMSLoginStep1"});r.performSendOTP(!1);break;default:i.ValidateIdDataBean.returnCode=="5"?PushGACode({PersonalZoneLockedAccountLoginFailName:"SMSLogin",event:"PersonalZoneLockedAccountLoginFail"}):PushGACode({PersonalZoneSMSLoginEnterFailName:i.ValidateIdDataBean.message,event:"PersonalZoneSMSLoginEnterFail"});r.lobbyService.validateIdCaptcha=i.ValidateIdDataBean.isCaptcha=="true";r.serverErrorSMS=i.ValidateIdDataBean.message;r.lobbyService.resetForm(r.injScope.$$childTail.otpSMSForm);r.lobbyService.initAllRequests();n&&n.ReloadImage()}else r.serverErrorSMS=generalErrorText,PushGACode({PersonalZoneSMSLoginEnterFailName:r.serverErrorSMS,event:"PersonalZoneSMSLoginEnterFail"})}))};this.performLogonOTP=function(){if(r.isLoading!=!0){r.isLoading=!0;r.lobbyService.validateOTPCaptcha=!1;var n=r.getOtpCaptcha(!0);r.lobbyService.validateOTPRequest.cardSuffix=r.lobbyService.validateIdRequest.cardSuffix;r.lobbyService.validateOTPRequest.id=r.lobbyService.validateIdRequest.id;r.lobbyService.validateOTPRequest.countryCode=r.lobbyService.validateIdRequest.countryCode;r.lobbyService.validateOTPRequest.idType=r.lobbyService.validateIdRequest.idType;r.lobbyService.validateOTPRequest.kodChevra=companyServiceCode;r.lobbyService.ValidateOTP().then(function(t){r.isLoading=!1;var i=t.data;if(i&&i.Header&&i.Header.Status=="1"){r.lobbyService.ShowIvrOrEmailLink(i.ValidateOTPBean.returnCode,app.Common.DigitalServicesModule.Constants.ValidateOTP);switch(i.ValidateOTPBean.returnCode){case"9":case"0":r.isOtpCorrect=!0;r.renewValidateQuestion();break;default:r.serverErrorSMS=i.ValidateOTPBean.message;r.lobbyService.resetForm(r.injScope.$$childTail.otpLoginForm);r.lobbyService.validateOTPRequest.otp="";r.lobbyService.validateOTPRequest.userInput="";r.lobbyService.validateIdQuestionRequest.questionAnswer="";r.lobbyService.validateOTPCaptcha=i.ValidateOTPBean.isCaptcha=="true";n&&n.ReloadImage();PushGACode({PersonalZoneSMSLoginStep1FailName:r.serverErrorSMS,event:"PersonalZoneSMSLoginStep1Fail"})}r.isLoading=!1}else r.serverErrorSMS=generalErrorText,PushGACode({PersonalZoneSMSLoginStep1FailName:r.serverErrorSMS,event:"PersonalZoneSMSLoginStep1Fail"})})}};this.renewValidateQuestion=function(){r.lobbyService.validateIdQuestionRequest.id=r.lobbyService.validateIdRequest.id;r.lobbyService.validateIdQuestionRequest.countryCode=r.lobbyService.validateIdRequest.countryCode;r.lobbyService.validateIdQuestionRequest.idType=r.lobbyService.validateIdRequest.idType;r.lobbyService.validateIdQuestionRequest.userName=r.lobbyService.validateIdResponse.ValidateIdDataBean.userName;r.isLoading=!0;r.lobbyService.performLogonOTPRequest.MisparZihuy=r.lobbyService.validateIdRequest.id;r.lobbyService.performLogonOTPRequest.KodEretz=r.lobbyService.validateIdRequest.countryCode;r.lobbyService.performLogonOTPRequest.KodZihuy=r.lobbyService.validateIdRequest.idType;r.lobbyService.performLogonOTPRequest.KodMishtamesh=r.lobbyService.validateIdResponse.ValidateIdDataBean.userName;r.lobbyService.performLogonOTPRequest.idType=r.lobbyService.validateIdRequest.idType;r.lobbyService.performLogonOTPRequest.countryCode=r.lobbyService.validateIdRequest.countryCode;r.lobbyService.performLogonOTPRequest.cardSuffix=r.lobbyService.validateIdRequest.cardSuffix;r.isLoading=!0;r.lobbyService.performLogonOTP().then(function(n){var t=n.data;switch(t.status){case"1":PushGACode({event:"PersonalZoneSMSLoginStep2Success"});urlRedirect?window.location.href=urlRedirect:(r.isLoading=!1,window.location.href="/");break;case"2":r.serverErrorSMS=t.message;PushGACode({PersonalZoneSMSLoginStep1FailName:t.message,event:"PersonalZoneSMSLoginStep1Fail"});r.isLoading=!1;break;case"3":PushGACode({event:"NewPassword"});r.isLoading=!1;r.lobbyService.isSMSORPasswordExpired=!0;r.locationService.url("/PasswordExpired");r.lobbyService.performLoginRequest.Sisma="";break;default:r.serverErrorSMS=t.message;r.isLoading=!1;PushGACode({PersonalZoneSMSLoginStep1FailName:t.message,event:"PersonalZoneSMSLoginStep1Fail"})}})};this.performSendOTP=function(n){n?r.isResendLoading=!0:r.isLoading=!0;r.lobbyService.sendOTPRequest=new classes.otpLogin.SendOTPRequest;r.lobbyService.sendOTPRequest.cardSuffix=r.lobbyService.validateIdRequest.cardSuffix;r.lobbyService.sendOTPRequest.id=r.lobbyService.validateIdRequest.id;r.lobbyService.sendOTPRequest.countryCode=r.lobbyService.validateIdRequest.countryCode;r.lobbyService.sendOTPRequest.idType=r.lobbyService.validateIdRequest.idType;r.lobbyService.sendOTPRequest.kodChevra=companyServiceCode;r.lobbyService.sendOTPRequest.idType==classes.otpLogin.idTypeValue&&(r.lobbyService.sendOTPRequest.countryCode=classes.otpLogin.defaultCountryCode);r.lobbyService.SendOTP().then(function(n){r.isLoading=!1;r.isResendLoading=!1;var t=n.data;if(r.lobbyService.sendOTPResponse=t,t&&t.Header&&t.Header.Status=="1"&&r.lobbyService.sendOTPResponse.SendOTPBean.returnCode=="0"){if(r.lobbyService.ShowIvrOrEmailLink(r.lobbyService.sendOTPResponse.SendOTPBean.returnCode,app.Common.DigitalServicesModule.Constants.SendOTP),PushGACode({event:"PersonalZoneSMSLoginEnterSuccess"}),r.lobbyService.maskSpecialPropeties(),r.lobbyService.isSMSORPasswordExpired=!0,urlRedirect&&window.location.href.indexOf("returnUrl")>0&&window.location.href.indexOf("service.americanexpress")>0)try{location.href.split("returnUrl=")&&(urlRedirect=location.href.split("returnUrl=")[1].replace("#/","#"),urlRedirect=urlRedirect.replace("https:/s","https://s"))}catch(i){}r.locationService.url("/SMS")}else r.lobbyService.getReturnCodeMessage(app.Common.DigitalServicesModule.Constants.SendOTP.toBean(),r.lobbyService.sendOTPResponse.SendOTPBean.returnCode).then(function(n){r.serverErrorSMS=n}),PushGACode({PersonalZoneSMSLoginEnterFailName:r.serverErrorSMS,event:"PersonalZoneSMSLoginEnterFail"})})};this.getOtpCaptcha=function(){var t=document.getElementById("captchaSMSOtp"),n;if(t)return n=t.Captcha,n&&(r.lobbyService.validateOTPRequest.instanceId=n.InstanceId,r.lobbyService.validateOTPRequest.captchaId=n.Id),n};this.detectHebrewPress=function(n){return n.keyCode>96&&n.keyCode<123||n.keyCode>64&&n.keyCode<91||n.keyCode>47&&n.keyCode<58?!1:(n.preventDefault(),!0)};this.locationService=t;this.lobbyService.loginLegalTerm=new classes.otpLogin.LegalTerm;this.idTypeDefault=classes.otpLogin.idTypeValue;this.isLoading=!1;this.togglePassport=!1;showLoginLeftSection=="True"?(this.showRightSection=!1,this.isOTPDisabled=!1):(this.showRightSection=!0,this.isOTPDisabled=!0);this.serverErrorPassword="";this.serverErrorSMS="";this.hebrewFlag=!1;u=this.getLocation();u=="/SMS"||u=="/PasswordExpired"?this.lobbyService.isSMSORPasswordExpired||this.locationService.url("/"):this.lobbyService.initAllRequests(!0)}return n}();t.$inject=["Uni.Services.otpService","$location","$scope"];n.lobbyController=t;angular.module("OTPLoginModule").controller("Uni.controllers.lobbyController",t)})(t=n.controllers||(n.controllers={}))}(Uni||(Uni={})),function(n){var t;(function(n){var t=function(){function n(n,t,i,r){var u=this;this.otpRegisterService=n;this.injScope=t;this.$location=i;this.vcRecaptchaService=r;this.vcRecaptchaValidateId=new classes.otpLogin.GoogleRecaptchaDetails;this.vcRecaptchavalidateOTP=new classes.otpLogin.GoogleRecaptchaDetails;this.validateIdCaptcha=!1;this.validateOTPCaptcha=!1;this.hasMailChanged=!1;this.init=function(){PushGACode({event:"PersonalZoneRegistrationStep1"});u.isLoading=!1;u.isResendLoading=!1;u.otpRegisterService.initAllRequests();u.otpRegisterService.validateIdResponse=new classes.otpLogin.ValidateIdResponse;u.otpRegisterService.sendOTPResponse=new classes.otpLogin.SendOTPResponse;u.otpRegisterService.validateOTPResponse=new classes.otpLogin.ValidateOTPResponse;u.otpRegisterService.newRegisterResponse=new classes.otpLogin.NewCustomerRegisterResponse;u.validateIdCaptcha=!1;u.validateOTPCaptcha=!1;u.isCaptchaValid=!0;u.togglePassport=!1;u.digitalCustomerData={}};this.CheckPersonalInformation=function(){u.isLoading!=!0&&(u.isLoading=!0,u.generalErrorMsg="",u.otpRegisterService.validateIdRequest.checkLevel="0",u.otpRegisterService.validateIdRequest.isGoogleCaptcha=!0,u.validateIdCaptcha&&(u.otpRegisterService.validateIdRequest.instanceId=u.vcRecaptchaValidateId.response),u.CheckPersonalInformationHandler())};this.CheckPersonalInformationHandler=function(){u.otpRegisterService.performValidateId().then(function(n){var t=n.data,i;if(t&&t.Header&&t.Header.Status=="1"){u.otpRegisterService.validateIdRequest.userInput="";u.otpRegisterService.validateIdResponse=n.data;switch(u.otpRegisterService.validateIdResponse.ValidateIdDataBean.returnCode){case"7":u.SendOTP(!1);break;default:u.isLoading=!1;i=u.otpRegisterService.validateIdResponse.ValidateIdDataBean.message?u.otpRegisterService.validateIdResponse.ValidateIdDataBean.message:generalErrorText;u.generalErrorMsg=i;u.GAStep1Fail(i);u.otpRegisterService.resetForm(u.injScope.$$childTail.RegisterInfoForm);u.otpRegisterService.validateIdRequest.userInput=null;u.otpRegisterService.validateIdRequest.id=null;u.otpRegisterService.validateIdRequest.cardSuffix=null;u.validateIdCaptcha=u.otpRegisterService.validateIdResponse.ValidateIdDataBean.isCaptcha=="true"}}else u.isLoading=!1,u.generalErrorMsg=generalErrorText,u.GAStep1Fail(generalErrorText)}).finally(function(){u.validateIdCaptcha&&u.vcRecaptchaValidateId.response&&u.vcRecaptchaService.reload(u.vcRecaptchaValidateId.widgetId)})};this.SendOTP=function(n){if(n){if(u.isResendLoading==!0)return;u.isResendLoading=!0;PushGACode({event:"PersonalZoneRegistrationStep2SendAgain"})}u.otpRegisterService.sendOTPRequest.id=u.otpRegisterService.validateIdRequest.id;u.otpRegisterService.sendOTPRequest.idType=u.otpRegisterService.validateIdRequest.idType;u.otpRegisterService.sendOTPRequest.cardSuffix=u.otpRegisterService.validateIdRequest.cardSuffix;u.otpRegisterService.sendOTPRequest.countryCode=u.otpRegisterService.validateIdRequest.countryCode;u.otpRegisterService.sendOTPRequest.kodChevra=companyServiceCode;u.otpRegisterService.SendOTP().then(function(t){var i,f,r,e;if(u.isLoading=!1,u.isResendLoading=!1,i=t.data,i&&i.Header&&i.Header.Status=="1"){u.otpRegisterService.sendOTPResponse=t.data;u.otpRegisterService.ShowIvrOrEmailLink(i.SendOTPBean.returnCode,app.Common.DigitalServicesModule.Constants.SendOTP);switch(u.otpRegisterService.sendOTPResponse.SendOTPBean.returnCode){case"50":f=SendOTPBeanErrorMessages.filter(function(n){return n.returnCode==u.otpRegisterService.sendOTPResponse.SendOTPBean.returnCode});r=void 0;f.length>0&&(r=f[0].message);e=r?r:generalErrorText;u.generalErrorMsg=e;u.GAStep1Fail(e);n||(u.otpRegisterService.resetForm(u.injScope.$$childTail.RegisterInfoForm),u.otpRegisterService.validateIdRequest.id=null,u.otpRegisterService.validateIdRequest.userInput=null,u.otpRegisterService.validateIdRequest.cardSuffix=null);break;default:u.stepChanged();u.currentExpandedStage=n?u.currentExpandedStage:u.currentExpandedStage+1;$("body").animate({scrollTop:$("#step2scroll").position().top-450},"slow");n||PushGACode({event:"PersonalZoneRegistrationStep2"})}}else u.generalErrorMsg=generalErrorText,u.GAStep1Fail(generalErrorText)})};this.GAStep1Fail=function(n){PushGACode({PersonalZoneRegistrationStep1FailName:n,event:"PersonalZoneRegistrationStep1Fail"})};this.ValidateOTP=function(){u.isLoading!=!0&&(u.isLoading=!0,u.generalErrorMsg="",u.otpRegisterService.validateOTPRequest.id=u.otpRegisterService.validateIdRequest.id,u.otpRegisterService.validateOTPRequest.idType=u.otpRegisterService.validateIdRequest.idType,u.otpRegisterService.validateOTPRequest.countryCode=u.otpRegisterService.validateIdRequest.countryCode,u.otpRegisterService.validateOTPRequest.cardSuffix=u.otpRegisterService.validateIdRequest.cardSuffix,u.otpRegisterService.validateOTPRequest.kodChevra=companyServiceCode,u.otpRegisterService.validateOTPRequest.isGoogleCaptcha=!0,u.validateOTPCaptcha&&(u.otpRegisterService.validateOTPRequest.instanceId=u.vcRecaptchavalidateOTP.response),u.ValidateOTPHandler())};this.ValidateOTPHandler=function(){u.otpRegisterService.ValidateOTP().then(function(n){var t,r,i,f;if(u.isLoading=!1,t=n.data,t&&t.Header&&t.Header.Status=="1"){u.otpRegisterService.validateOTPResponse=n.data;switch(u.otpRegisterService.validateOTPResponse.ValidateOTPBean.returnCode){case"0":u.stepChanged();u.SelectCustomerContanctDetails().then(function(n){var t=n.data;t&&t[app.Common.DigitalServicesModule.Constants.ContanctDetails.toBean()]&&(u.customerContactDetailsSelectResponse=t[app.Common.DigitalServicesModule.Constants.ContanctDetails.toBean()],u.digitalCustomerData.email=u.customerContactDetailsSelectResponse.maskedMail?u.customerContactDetailsSelectResponse.maskedMail:"",u.SelectClientOnlineBanking().then(function(n){var t=n.data;t&&t[app.Common.DigitalServicesModule.Constants.ClientOnlineBanking.toBean()]&&(u.clientOnlineBankingSelectResponse=t[app.Common.DigitalServicesModule.Constants.ClientOnlineBanking.toBean()],u.clientOnlineBankingSelectResponse&&u.clientOnlineBankingSelectResponse.returnCode=="0"&&u.customerContactDetailsSelectResponse&&u.customerContactDetailsSelectResponse.returnCode=="0"&&(u.showChannelsSection=!0));u.currentExpandedStage=u.currentExpandedStage+1;$("body").animate({scrollTop:$("#step3scroll").position().top-450},"slow");PushGACode({event:"PersonalZoneRegistrationStep2.5UpdateDetails"})}))});break;case"33":window.location.href="/";break;default:r=ValidateOTPBeanErrorMessages.filter(function(n){return n.returnCode==u.otpRegisterService.validateOTPResponse.ValidateOTPBean.returnCode});i=void 0;r.length>0&&(i=r[0].message);f=i?i:generalErrorText;u.generalErrorMsg=f;u.GAStep2Fail(f);u.otpRegisterService.resetForm(u.injScope.$$childTail.sendOtpForm);u.otpRegisterService.validateOTPRequest.userInput=null;u.otpRegisterService.validateOTPRequest.id=null;u.otpRegisterService.validateOTPRequest.otp=null;u.validateOTPCaptcha=u.otpRegisterService.validateOTPResponse.ValidateOTPBean.isCaptcha=="true"}}else u.generalErrorMsg=generalErrorText,u.GAStep2Fail(generalErrorText)}).finally(function(){u.validateOTPCaptcha&&u.vcRecaptchavalidateOTP.response&&u.vcRecaptchaService.reload(u.vcRecaptchavalidateOTP.widgetId)})};this.RegisterNumberChanged=function(){u.numberChanged=!0;PushGACode({event:"PersonalZoneRegistrationStep2WrongNumber"})};this.GAStep2Fail=function(n){PushGACode({PersonalZoneRegistrationStep2FailName:n,event:"PersonalZoneRegistrationStep2Fail"})};this.NewCustomerRegistration=function(){u.isLoading!=!0&&(u.isLoading=!0,u.generalErrorMsg="",u.otpRegisterService.newRegisterRequest.id=u.otpRegisterService.validateIdRequest.id,u.otpRegisterService.newRegisterRequest.idType=u.otpRegisterService.validateIdRequest.idType,u.otpRegisterService.newRegisterRequest.countryCode=u.otpRegisterService.validateIdRequest.countryCode,u.otpRegisterService.newRegisterRequest.companyCode=companyServiceCode,u.otpRegisterService.newRegisterRequest.cardSuffix=u.otpRegisterService.validateIdRequest.cardSuffix,u.otpRegisterService.newRegisterRequest.userName=u.otpRegisterService.validateIdResponse.ValidateIdDataBean.userName,u.otpRegisterService.NewCustomerRegistration().then(function(n){var t,i;if(u.isLoading=!1,t=n.data,t&&t.Header&&t.Header.Status=="1"){u.otpRegisterService.newRegisterResponse=n.data;switch(u.otpRegisterService.newRegisterResponse.NewCustomerRegistrationBean.returnCode){case"00":u.stepChanged();u.currentExpandedStage=u.currentExpandedStage+1;$("body").animate({scrollTop:$("#step5scroll").position().top-450},"slow");PushGACode({event:"PersonalZoneRegistrationStep4Success"});break;default:i=u.otpRegisterService.newRegisterResponse.NewCustomerRegistrationBean.Message?u.otpRegisterService.newRegisterResponse.NewCustomerRegistrationBean.Message:generalErrorText;u.generalErrorMsg=i;u.GAStep3Fail(u.otpRegisterService.newRegisterResponse.NewCustomerRegistrationBean.Message)}}else u.generalErrorMsg=generalErrorText,u.GAStep3Fail(generalErrorText)}))};this.GAStep3Fail=function(n){PushGACode({PersonalZoneRegistrationStep3FailName:n,event:"PersonalZoneRegistrationStep3Fail"})};this.resetSelectedQuestions=function(){u.otpRegisterService.resetForm(u.injScope.$$childTail.registerOtpForm);u.rePassword=null};this.removeDisabledQuestions=function(){for(var n in u.otpRegisterService.questionList)u.otpRegisterService.questionList[n].status=undefined};this.onSelectQuestion=function(){u.removeDisabledQuestions();for(var n in u.otpRegisterService.newRegisterRequest)n.substring(0,8).localeCompare("question")==0&&u.otpRegisterService.questionList[u.otpRegisterService.newRegisterRequest[n]-1]&&(u.otpRegisterService.questionList[u.otpRegisterService.newRegisterRequest[n]-1].status="inactive")};this.processMail=function(n){u.digitalCustomerData.email!=u.customerContactDetailsSelectResponse.maskedMail?u.hasMailChanged=!0:n.$valid=!0;console.log(n)};this.stepChanged=function(){};this.SelectCustomerContanctDetails=function(){return u.customerContactDetailsRequest.countryCode=parseInt(u.otpRegisterService.validateIdRequest.countryCode),u.customerContactDetailsRequest.codeZihuy=parseInt(u.otpRegisterService.validateIdRequest.idType),u.customerContactDetailsRequest.idNumber=u.otpRegisterService.validateIdRequest.id,u.customerContactDetailsRequest.channelCode=u.dcChannelCode,u.customerContactDetailsRequest.actionCode=classes.otpLogin.ContanctDetailsActionCode.Select,u.customerContactDetailsRequest.companyCode=parseInt(u.otpRegisterService.validateIdRequest.companyCode),u.otpRegisterService.CustomerContactDetails(u.customerContactDetailsRequest)};this.SelectClientOnlineBanking=function(){return u.clientOnlineBankingRequest.actionCode=classes.otpLogin.ClientOnlineBankingActionCode.Select,u.clientOnlineBankingRequest.inputCode=1,u.clientOnlineBankingRequest.companyCode=u.onlineBankingCompanyCode,u.clientOnlineBankingRequest.idCode=parseInt(u.otpRegisterService.validateIdRequest.idType),u.clientOnlineBankingRequest.countryCode=parseInt(u.otpRegisterService.validateIdRequest.countryCode),u.clientOnlineBankingRequest.idNumber=u.otpRegisterService.validateIdRequest.id,u.clientOnlineBankingRequest.cardServiceCode=0,u.clientOnlineBankingRequest.cardPrefix=0,u.clientOnlineBankingRequest.cardNumber=0,u.clientOnlineBankingRequest.channelCode=3,u.clientOnlineBankingRequest.accessLevel=1,u.clientOnlineBankingRequest.updateSource=9,u.otpRegisterService.ClientOnlineBanking(u.clientOnlineBankingRequest)};this.handleBankingServices=function(n){u.hasPopupBeenTouched=!0;u.bankingAction||n?(u.bankingAction=!0,u.updateIvrIndicator=u.updateMailIndicator=u.updateCellularIndicator=u.updateInternetIndicator=!0,u.dualCompany=!0):(u.updateIvrIndicator=u.updateMailIndicator=u.updateCellularIndicator=!1,u.dualCompany=!1)};this.handleBankingAction=function(n){n||(u.bankingAction=!1,u.dualCompany=!1);u.updateMailIndicator&&u.updateIvrIndicator&&u.updateCellularIndicator&&(u.bankingAction=!0,u.dualCompany=!0)};this.submitDigitalCustomerServices=function(){if(u.isLoading!=!0){if(u.isLoading=!0,!u.hasPopupBeenTouched&&!u.isEmptyDigitalCustomer&&u.showChannelsSection&&(u.customerContactDetailsSelectResponse&&u.customerContactDetailsSelectResponse.showAdvertisingCode!="1"||u.clientOnlineBankingSelectResponse&&u.clientOnlineBankingSelectResponse.showBankingComm!="1")){u.isEmptyDigitalCustomer=!0;u.isLoading=!1;return}u.generalErrorMsg="";u.updaterContanctDetails();u.updateClientOnlineBanking().then(function(n){var r=n.data,t,i,f;(r||r[app.Common.DigitalServicesModule.Constants.ClientOnlineBanking.toBean()])&&(u.clientOnlineBankingUpdateResponse=r[app.Common.DigitalServicesModule.Constants.ClientOnlineBanking.toBean()],(r.Header.Status=="1"||u.clientOnlineBankingUpdateResponse)&&u.clientOnlineBankingUpdateResponse.returnCode=="0"||(u.generalErrorMsg=u.clientOnlineBankingUpdateResponse&&u.clientOnlineBankingUpdateResponse.message?u.clientOnlineBankingUpdateResponse.message:generalErrorText));u.currentExpandedStage=u.currentExpandedStage+1;$("body").animate({scrollTop:$("#step4scroll").position().top-450},"slow");u.isLoading=!1;PushGACode({event:"PersonalZoneRegistrationStep3"});t={};t["PersonalZoneRegistrationStep2.5UpdateDetailsSuccessBank"]=u.bankingAction?"Bank-Yes":"Bank-No";i=[];u.updateMailIndicator&&i.push("Mail");u.updateCellularIndicator&&i.push("SMS");u.updateIvrIndicator&&i.push("Voice");u.updateInternetIndicator&&i.push("Internet");i.length>0&&(f=i.join(","),t["PersonalZoneRegistrationStep2.5UpdateDetailsSuccessBank"]="Bank-Yes",t["PersonalZoneRegistrationStep2.5UpdateDetailsSuccessBankChan"]=f);u.clientOnlineBankingSelectResponse.showBankingComm!="1"&&u.customerContactDetailsSelectResponse.multicompanyCode=="3"&&(companyServiceCode=="11"?t["PersonalZoneRegistrationStep2.5UpdateDetailsSuccessAmex"]=u.dualCompany?"Amex-Yes":"Amex-No":companyServiceCode=="77"&&(t["PersonalZoneRegistrationStep2.5UpdateDetailsSuccessIsracard"]=u.dualCompany?"Isracard-Yes":"Isracard-No"));u.customerContactDetailsSelectResponse.showAdvertisingCode!="1"&&(t["PersonalZoneRegistrationStep2.5UpdateDetailsSuccessAdv"]=u.advertisingCode?"Adv-Yes":"Adv-No");t.PersonalZoneUpdateDetailsStep1SuccessMailEntry=u.digitalCustomerData.email?"true":"false";t.event="PersonalZoneRegistrationStep2.5UpdateDetailsSuccess";PushGACode(t)})}};this.updaterContanctDetails=function(){u.customerContactDetailsRequest.actionCode=classes.otpLogin.ContanctDetailsActionCode.UpdateMailPhone;u.customerContactDetailsRequest.mailDeliveryCode=0;u.customerContactDetailsRequest.smsBenefitCode=0;u.customerContactDetailsRequest.smsBenefitCodeIndicator=0;u.customerContactDetailsRequest.mailDeliveryCodeIndicator=0;u.customerContactDetailsRequest.cellphoneStatus=0;u.customerContactDetailsRequest.cellphoneStatusIndicator=2;u.customerContactDetailsRequest.emailStatus=0;u.customerContactDetailsRequest.emailStatusIndicator=0;u.customerContactDetailsRequest.landphoneStatusIndicator=0;u.customerContactDetailsRequest.cellphoneIndicator=2;u.digitalCustomerData.email?(u.hasMailChanged&&(u.customerContactDetailsRequest.emailIndicator=1,u.customerContactDetailsRequest.email=u.digitalCustomerData.email),u.customerContactDetailsSelectResponse&&u.customerContactDetailsSelectResponse.email==u.digitalCustomerData.email&&(u.customerContactDetailsRequest.emailIndicator=0,u.customerContactDetailsRequest.email="")):(u.customerContactDetailsRequest.emailIndicator=0,u.customerContactDetailsRequest.email="");u.otpRegisterService.CustomerContactDetails(u.customerContactDetailsRequest).then(function(n){var t=n.data;(t||t[app.Common.DigitalServicesModule.Constants.ContanctDetails.toBean()])&&(u.customerContactDetailsUpdateResponse=t[app.Common.DigitalServicesModule.Constants.ContanctDetails.toBean()],u.customerContactDetailsUpdateResponse&&u.customerContactDetailsUpdateResponse.returnCode=="0"||(u.generalErrorMsg=u.customerContactDetailsUpdateResponse&&u.customerContactDetailsUpdateResponse.message?u.customerContactDetailsUpdateResponse.message:generalErrorText));(u.advertisingCode||u.dualCompanyMarketingAgreement)&&(u.customerContactDetailsRequest.actionCode=classes.otpLogin.ContanctDetailsActionCode.UpdatedualCompany,u.advertisingCode&&!u.dualCompanyMarketingAgreement&&(u.customerContactDetailsRequest.companyCode=parseInt(companyServiceCode)),!u.advertisingCode&&u.dualCompanyMarketingAgreement&&(companyServiceCode=="11"&&(u.customerContactDetailsRequest.companyCode=77),companyServiceCode=="77"&&(u.customerContactDetailsRequest.companyCode=11)),u.customerContactDetailsSelectResponse&&u.customerContactDetailsSelectResponse.showAdvertisingCode!="1"&&u.customerContactDetailsSelectResponse.multicompanyCode=="3"&&u.advertisingCode&&u.dualCompanyMarketingAgreement&&(u.customerContactDetailsRequest.companyCode=99),u.customerContactDetailsRequest.mailDeliveryCode=1,u.customerContactDetailsRequest.smsBenefitCode=1,u.customerContactDetailsRequest.smsBenefitCodeIndicator=1,u.customerContactDetailsRequest.mailDeliveryCodeIndicator=1,u.otpRegisterService.CustomerContactDetails(u.customerContactDetailsRequest).then(function(n){var t=n.data;(t||t[app.Common.DigitalServicesModule.Constants.ContanctDetails.toBean()])&&(u.customerContactDetailsUpdateResponse=t[app.Common.DigitalServicesModule.Constants.ContanctDetails.toBean()],u.customerContactDetailsUpdateResponse&&u.customerContactDetailsUpdateResponse.returnCode=="0"||(u.generalErrorMsg=u.customerContactDetailsUpdateResponse&&u.customerContactDetailsUpdateResponse.message?u.customerContactDetailsUpdateResponse.message:generalErrorText))}))})};this.updateClientOnlineBanking=function(){u.clientOnlineBankingRequest.actionCode=classes.otpLogin.ClientOnlineBankingActionCode.Update;u.clientOnlineBankingSelectResponse.showBankingComm&&u.clientOnlineBankingSelectResponse.showBankingComm!="1"&&u.customerContactDetailsSelectResponse&&u.customerContactDetailsSelectResponse.multicompanyCode=="3"&&u.dualCompany&&(u.clientOnlineBankingRequest.companyCode=4);u.clientOnlineBankingRequest.accessLevel=2;u.clientOnlineBankingRequest.joiningChannelCode=u.dcChannelCode;u.clientOnlineBankingRequest.channelCode=3;u.clientOnlineBankingRequest.updatingUser="X0T";u.clientOnlineBankingRequest.consentCodeInternet=2;u.clientOnlineBankingRequest.updateIndicationInternet=1;u.clientOnlineBankingRequest.consentCodeFax=0;u.clientOnlineBankingRequest.updateIndicationFax=0;switch(u.updateIvrIndicator){case!0:u.clientOnlineBankingRequest.consentCodeIVR=2;u.clientOnlineBankingRequest.updateIndicationIVR=1;break;case!1:u.clientOnlineBankingRequest.consentCodeIVR=3;u.clientOnlineBankingRequest.updateIndicationIVR=1;break;default:u.clientOnlineBankingRequest.consentCodeIVR=0;u.clientOnlineBankingRequest.updateIndicationIVR=0}switch(u.updateMailIndicator){case!0:u.clientOnlineBankingRequest.consentCodeMail=2;u.clientOnlineBankingRequest.updateIndicationMail=1;break;case!1:u.clientOnlineBankingRequest.consentCodeMail=3;u.clientOnlineBankingRequest.updateIndicationMail=1;break;default:u.clientOnlineBankingRequest.consentCodeMail=0;u.clientOnlineBankingRequest.updateIndicationMail=0}switch(u.updateCellularIndicator){case!0:u.clientOnlineBankingRequest.consentCodeCellular=2;u.clientOnlineBankingRequest.updateIndicationCellular=1;break;case!1:u.clientOnlineBankingRequest.consentCodeCellular=3;u.clientOnlineBankingRequest.updateIndicationCellular=1;break;default:u.clientOnlineBankingRequest.consentCodeCellular=0;u.clientOnlineBankingRequest.updateIndicationCellular=0}return u.otpRegisterService.ClientOnlineBanking(u.clientOnlineBankingRequest)};this.PushEloqua=function(n,t){clientGuid&&clientGuid.length!=0?pushEloqua("PersonalAreaRegistration"):n.$invalid||(t==1?getUserGuid(classes.otpLogin.defaultCountryCode,u.otpRegisterService.validateIdRequest.id,"PersonalAreaRegistration","1"):u.otpRegisterService.validateIdRequest.countryCode&&u.otpRegisterService.validateIdRequest.countryCode.length>0&&getUserGuid(u.otpRegisterService.validateIdRequest.countryCode,u.otpRegisterService.validateIdRequest.id,"PersonalAreaRegistration","4"))};this.currentExpandedStage=1;this.numberChanged=!1;this.questionList=[];this.removeDisabledQuestions();this.hasMailChanged=!1;this.customerContactDetailsRequest=new classes.otpLogin.CustomerContactDetailsRequest;this.clientOnlineBankingRequest=new classes.otpLogin.ClientOnlineBankingRequest;this.dualCompany=!1;this.advertisingCode=!1;this.isEmptyDigitalCustomer=!1;companyServiceCode=="11"?(this.dcChannelCode=classes.otpLogin.CahnnelCode.Isracard,this.onlineBankingCompanyCode=classes.otpLogin.onlineClientCompanyCode.Isracrad):companyServiceCode=="77"&&(this.dcChannelCode=classes.otpLogin.CahnnelCode.Amex,this.onlineBankingCompanyCode=classes.otpLogin.onlineClientCompanyCode.Amex);this.otpRegisterService.loginLegalTerm=new classes.otpLogin.LegalTerm;this.otpRegisterService.loginLegalTerm.showLegalTerm=!0;this.otpRegisterService.loginLegalTerm.legalTermGaName="PersonalZoneRegistrationLegalconditionsName";this.otpRegisterService.loginLegalTerm.legalTermGaStep=this.currentExpandedStage.toString();this.otpRegisterService.loginLegalTerm.legalTermGaEvent="PersonalZoneRegistrationLegalconditions";this.init()}return n}();t.$inject=["Uni.Services.otpService","$scope","$location","vcRecaptchaService"];n.RegistrationController=t;angular.module("OTPLoginModule").controller("Uni.controllers.RegistrationController",t)})(t=n.controllers||(n.controllers={}))}(Uni||(Uni={})),function(n){var t;(function(n){var t=function(){function n(n,t,i,r){var u=this;this.otpRenewService=n;this.injScope=t;this.locationService=i;this.vcRecaptchaService=r;this.isLoading=!1;this.vcRecaptchaValidateId=new classes.otpLogin.GoogleRecaptchaDetails;this.vcRecaptchaValidateOtp=new classes.otpLogin.GoogleRecaptchaDetails;this.showChannelsSection=!1;this.isAgreementSection=!1;this.customerContactDetailsRequest={};this.customerContactDetailsSelectResponse={};this.customerContactDetailsUpdateResponse={};this.clientOnlineBankingRequest={};this.clientOnlineBankingSelectResponse={};this.clientOnlineBankingUpdateResponse={};this.onlineBankingCompanyCode=companyServiceCode==="11"?1:2;this.agreement=!0;this.dualCompany=!0;this.bankingAction=!0;this.advertisingCode=!1;this.updateIvrIndicator=!0;this.updateMailIndicator=!0;this.updateCellularIndicator=!0;this.updateInternetIndicator=!0;this.init=function(){PushGACode({event:"PersonalZoneForgotPasswordStep1"});u.otpRenewService.initAllRequests();u.otpRenewService.validateIdResponse=new classes.otpLogin.ValidateIdResponse;u.otpRenewService.sendOTPResponse=new classes.otpLogin.SendOTPResponse;u.otpRenewService.validateIdQuestionResponse=new classes.otpLogin.ValidateIdQuestionResponse;u.otpRenewService.validateOTPResponse=new classes.otpLogin.ValidateOTPResponse;u.otpRenewService.NewCustomerChangePasswordResponse=new classes.otpLogin.NewCustomerChangePasswordRespons;u.isCaptchaValid=!0;u.validateIdCaptcha=!1;u.validateOTPCaptcha=!1;u.validateIdQuestionCaptcha=!1;u.togglePassport=!1;u.otpRenewService.loginLegalTerm=new classes.otpLogin.LegalTerm};this.RenewEntry=function(){u.isLoading!=!0&&(u.isLoading=!0,u.generalErrorMsg="",u.otpRenewService.validateIdRequest.isGoogleCaptcha=!0,u.validateIdCaptcha&&(u.otpRenewService.validateIdRequest.instanceId=u.vcRecaptchaValidateId.response),u.RenewEntryHandler())};this.RenewEntryHandler=function(){u.otpRenewService.performValidateIdNoReg().then(function(n){var t=n.data,i;if(t&&t.Header&&t.Header.Status=="1"){u.otpRenewService.validateIdNoRegResponse=n.data;switch(u.otpRenewService.validateIdNoRegResponse.ValidateIdDataNoRegBean.returnCode){case"1":u.SendOTP(!1);break;case"4":u.SendOTP(!1);break;default:i=u.otpRenewService.validateIdNoRegResponse.ValidateIdDataNoRegBean.message?u.otpRenewService.validateIdNoRegResponse.ValidateIdDataNoRegBean.message:generalErrorText;u.generalErrorMsg=i;u.GAStep1Fail(u.otpRenewService.validateIdNoRegResponse.ValidateIdDataNoRegBean.message);u.isLoading=!1;u.otpRenewService.resetForm(u.injScope.$$childTail.renewInfoForm);u.otpRenewService.validateIdRequest.id=null;u.otpRenewService.validateIdRequest.cardSuffix=null;u.otpRenewService.validateIdRequest.userInput=null;u.validateIdCaptcha=u.otpRenewService.validateIdNoRegResponse.ValidateIdDataNoRegBean.isCaptcha=="true"}}else u.generalErrorMsg=generalErrorText,u.isLoading=!1,u.GAStep1Fail(generalErrorText)}).finally(function(){u.validateIdCaptcha&&u.vcRecaptchaValidateId.response&&u.vcRecaptchaService.reload(u.vcRecaptchaValidateId.widgetId)})};this.SendOTP=function(n){if(n){if(u.isResendLoading==!0)return;u.isResendLoading=!0;PushGACode({event:"PersonalZoneForgotPasswordStep2SendAgain"})}u.otpRenewService.sendOTPRequest.id=u.otpRenewService.validateIdRequest.id;u.otpRenewService.sendOTPRequest.idType=u.otpRenewService.validateIdRequest.idType;u.otpRenewService.sendOTPRequest.cardSuffix=u.otpRenewService.validateIdRequest.cardSuffix;u.otpRenewService.sendOTPRequest.countryCode=u.otpRenewService.validateIdRequest.countryCode;u.otpRenewService.sendOTPRequest.kodChevra=companyServiceCode;u.otpRenewService.SendOTP().then(function(t){var i,r;if(u.isLoading=!1,u.isResendLoading=!1,i=t.data,i&&i.Header&&i.Header.Status=="1"){u.otpRenewService.sendOTPResponse=t.data;u.otpRenewService.ShowIvrOrEmailLink(u.otpRenewService.sendOTPResponse.SendOTPBean.returnCode,app.Common.DigitalServicesModule.Constants.SendOTP);switch(u.otpRenewService.sendOTPResponse.SendOTPBean.returnCode){case"50":r=u.otpRenewService.sendOTPResponse.SendOTPBean.message?u.otpRenewService.sendOTPResponse.SendOTPBean.message:generalErrorText;u.generalErrorMsg=r;u.GAStep1Fail(r);u.otpRenewService.resetForm(u.injScope.$$childTail.renewInfoForm);u.otpRenewService.validateIdRequest.userInput=null;u.otpRenewService.validateIdRequest.id=null;u.otpRenewService.validateIdRequest.cardSuffix=null;break;default:u.stepChanged();u.otpRenewService.maskSpecialPropeties();u.currentExpandedStage="step2";u.isLoading=!1;n||PushGACode({event:"PersonalZoneForgotPasswordStep2"})}}else u.generalErrorMsg=generalErrorText,u.GAStep1Fail(generalErrorText)})};this.GAStep1Fail=function(n){PushGACode({PersonalZoneForgotPasswordStep1FailName:n,event:"PersonalZoneForgotPasswordStep1Fail"})};this.backToPrevious=function(){u.locationService.url("/")};this.RenewValidateOtp=function(){if(u.isLoading!=!0){if(u.isLoading=!0,u.generalErrorMsg="",u.otpRenewService.validateOTPRequest.id=u.otpRenewService.validateIdRequest.id,u.otpRenewService.validateOTPRequest.idType=u.otpRenewService.validateIdRequest.idType,u.otpRenewService.validateOTPRequest.countryCode=u.otpRenewService.validateIdRequest.countryCode,u.otpRenewService.validateOTPRequest.cardSuffix=u.otpRenewService.validateIdRequest.cardSuffix,u.otpRenewService.validateOTPRequest.kodChevra=companyServiceCode,u.isOtpCorrect){u.RenewValidateQuestion();return}u.otpRenewService.validateOTPRequest.isGoogleCaptcha=!0;u.validateOTPCaptcha&&(u.otpRenewService.validateOTPRequest.instanceId=u.vcRecaptchaValidateOtp.response);u.RenewValidateOtpHandler()}};this.CheckboxScreenNewLogin=function(n){PushGACode({event:"ScreenView",Screen_name:"PZ/Login/Login_Success_first_visit/"+n,Passport_or_ID:"תעודת זהות"})};this.RenewValidateOtpHandler=function(){u.otpRenewService.ValidateOTPNoReg().then(function(n){var i=n.data,r,t,f;if(i&&i.Header&&i.Header.Status=="1"){u.otpRenewService.validateOTPNoRegResponse=n.data;u.isLoading=!1;switch(u.otpRenewService.validateOTPNoRegResponse.ValidateOTPNoRegBean.returnCode){case"0":u.isOtpCorrect=!0;u.stepChanged();u.currentExpandedStage="step3";PushGACode({event:"PersonalZoneForgotPasswordStep3"});u.isLoading=!1;break;case"7":u.SelectCustomerContanctDetails().then(function(n){var t=n.data;t&&t[app.Common.DigitalServicesModule.Constants.ContanctDetails.toBean()]&&(u.customerContactDetailsSelectResponse=t[app.Common.DigitalServicesModule.Constants.ContanctDetails.toBean()],u.advertisingCode=u.customerContactDetailsSelectResponse.showAdvertisingCode!="1",u.SelectClientOnlineBanking().then(function(n){u.CheckboxScreenNewLogin("password");var t=n.data;t&&t[app.Common.DigitalServicesModule.Constants.ClientOnlineBanking.toBean()]&&(u.clientOnlineBankingSelectResponse=t[app.Common.DigitalServicesModule.Constants.ClientOnlineBanking.toBean()],u.clientOnlineBankingSelectResponse&&u.clientOnlineBankingSelectResponse.showBankingComm!="1"&&u.customerContactDetailsSelectResponse&&u.customerContactDetailsSelectResponse.returnCode=="0"&&(u.showChannelsSection=!0));u.isAgreementSection=!0;u.isOtpCorrect=!0;u.stepChanged();u.currentExpandedStage="step3";PushGACode({event:"PersonalZoneForgotPasswordStep3"});u.isLoading=!1}))});break;case"33":window.location.href="/";break;default:r=ValidateOTPBeanErrorMessages.filter(function(n){return n.returnCode==u.otpRenewService.validateOTPNoRegResponse.ValidateOTPNoRegBean.returnCode});t=void 0;r.length>0&&(t=r[0].message);f=t?t:generalErrorText;u.generalErrorMsg=f;u.isLoading=!1;u.otpRenewService.resetForm(u.injScope.$$childTail.renewSendOtpForm);u.otpRenewService.validateOTPRequest.userInput=null;u.otpRenewService.validateOTPRequest.otp=null;u.otpRenewService.validateIdQuestionRequest.questionAnswer=null;u.GAStep2Fail(f);u.validateOTPCaptcha=u.otpRenewService.validateOTPResponse.ValidateOTPBean.isCaptcha=="true"}}else u.isLoading=!1,u.generalErrorMsg=generalErrorText,u.GAStep2Fail(generalErrorText)}).finally(function(){u.validateOTPCaptcha&&u.vcRecaptchaValidateOtp.response&&u.vcRecaptchaService.reload(u.vcRecaptchaValidateOtp.widgetId)})};this.registerNewCustomer=function(){u.generalErrorMsg="";u.updaterContanctDetails();u.updateClientOnlineBanking().then(function(n){var t=n.data;if(t||t[app.Common.DigitalServicesModule.Constants.ClientOnlineBanking.toBean()]){if(u.clientOnlineBankingUpdateResponse=t[app.Common.DigitalServicesModule.Constants.ClientOnlineBanking.toBean()],t.Header.Status!="1"&&!u.clientOnlineBankingUpdateResponse||u.clientOnlineBankingUpdateResponse.returnCode!="0"){u.generalErrorMsg=u.clientOnlineBankingUpdateResponse&&u.clientOnlineBankingUpdateResponse.message?u.clientOnlineBankingUpdateResponse.message:generalErrorText;return}u.NewCustomerRegistration();return}u.generalErrorMsg=generalErrorText})};this.NewCustomerRegistration=function(){u.otpRenewService.newRegisterRequest.id=u.otpRenewService.validateIdRequest.id;u.otpRenewService.newRegisterRequest.idType=u.otpRenewService.validateIdRequest.idType;u.otpRenewService.newRegisterRequest.countryCode=u.otpRenewService.validateIdRequest.countryCode;u.otpRenewService.newRegisterRequest.companyCode=companyServiceCode;u.otpRenewService.newRegisterRequest.cardSuffix=u.otpRenewService.validateIdRequest.cardSuffix;u.otpRenewService.newRegisterRequest.userName=u.otpRenewService.validateIdNoRegResponse.ValidateIdDataNoRegBean.userName;u.otpRenewService.newRegisterRequest.password=u.otpRenewService.NewCustomerChangePasswordRequest.password;u.otpRenewService.NewCustomerRegistration().then(function(n){var t=n.data,i;if(t&&t.Header&&t.Header.Status=="1"){u.otpRenewService.newRegisterResponse=n.data;switch(u.otpRenewService.newRegisterResponse.NewCustomerRegistrationBean.returnCode){case"00":u.stepChanged();u.currentExpandedStage="step4";PushGACode({event:"PersonalZoneForgotPasswordStep4Success"});break;default:i=u.otpRenewService.newRegisterResponse.NewCustomerRegistrationBean.Message?u.otpRenewService.newRegisterResponse.NewCustomerRegistrationBean.Message:generalErrorText;u.generalErrorMsg=i}}else u.generalErrorMsg=generalErrorText})};this.SelectCustomerContanctDetails=function(){return u.customerContactDetailsRequest.countryCode=u.otpRenewService.validateIdRequest.countryCode,u.customerContactDetailsRequest.codeZihuy=u.otpRenewService.validateIdRequest.idType,u.customerContactDetailsRequest.idNumber=u.otpRenewService.validateIdRequest.id,u.customerContactDetailsRequest.channelCode=u.dcChannelCode,u.customerContactDetailsRequest.actionCode=0,u.customerContactDetailsRequest.companyCode=u.otpRenewService.validateIdRequest.companyCode,u.otpRenewService.CustomerContactDetails(u.customerContactDetailsRequest)};this.SelectClientOnlineBanking=function(){return u.clientOnlineBankingRequest.actionCode=1,u.clientOnlineBankingRequest.inputCode=1,u.clientOnlineBankingRequest.companyCode=u.onlineBankingCompanyCode,u.clientOnlineBankingRequest.idCode=u.otpRenewService.validateIdRequest.idType,u.clientOnlineBankingRequest.countryCode=u.otpRenewService.validateIdRequest.countryCode,u.clientOnlineBankingRequest.idNumber=u.otpRenewService.validateIdRequest.id,u.clientOnlineBankingRequest.cardServiceCode=0,u.clientOnlineBankingRequest.cardPrefix=0,u.clientOnlineBankingRequest.cardNumber=0,u.clientOnlineBankingRequest.channelCode=3,u.clientOnlineBankingRequest.accessLevel=1,u.clientOnlineBankingRequest.updateSource=9,u.otpRenewService.ClientOnlineBanking(u.clientOnlineBankingRequest)};this.RenewValidateQuestion=function(){u.otpRenewService.validateIdQuestionRequest.id=u.otpRenewService.validateIdRequest.id;u.otpRenewService.validateIdQuestionRequest.countryCode=u.otpRenewService.validateIdRequest.countryCode;u.otpRenewService.validateIdQuestionRequest.idType=u.otpRenewService.validateIdRequest.idType;u.otpRenewService.validateIdQuestionRequest.userName=u.otpRenewService.validateIdResponse.ValidateIdDataBean.userName;u.otpRenewService.validateIdQuestionRequest.userInput=u.otpRenewService.validateOTPRequest.userInput};this.RenewValidateQuestionHandler=function(){u.otpRenewService.ValidateIdQuestion().then(function(n){var t,i;if(u.isLoading=!1,t=n.data,t&&t.Header&&t.Header.Status=="1"){u.otpRenewService.validateIdQuestionResponse=n.data;i=u.otpRenewService.validateIdQuestionResponse.ValidateIdQuestionBean.message?u.otpRenewService.validateIdQuestionResponse.ValidateIdQuestionBean.message:generalErrorText;switch(u.otpRenewService.validateIdQuestionResponse.ValidateIdQuestionBean.returnCode){case"1":u.stepChanged();u.currentExpandedStage="step3";PushGACode({event:"PersonalZoneForgotPasswordStep3"});break;default:u.otpRenewService.resetForm(u.injScope.$$childTail.renewSendOtpForm);u.otpRenewService.validateIdQuestionRequest.questionAnswer=null;u.otpRenewService.validateIdQuestionRequest.userInput=null;u.GAStep2Fail(i);u.generalErrorMsg=i}}else u.generalErrorMsg=generalErrorText,u.GAStep2Fail(generalErrorText)})};this.updaterContanctDetails=function(){u.generalErrorMsg="";u.customerContactDetailsRequest.actionCode=2;u.customerContactDetailsRequest.mailDeliveryCode=0;u.customerContactDetailsRequest.smsBenefitCode=0;u.customerContactDetailsRequest.smsBenefitCodeIndicator=0;u.customerContactDetailsRequest.mailDeliveryCodeIndicator=0;u.customerContactDetailsRequest.cellphoneStatus=0;u.customerContactDetailsRequest.cellphoneStatusIndicator=2;u.customerContactDetailsRequest.emailStatus=0;u.customerContactDetailsRequest.emailStatusIndicator=0;u.customerContactDetailsRequest.landphoneStatusIndicator=0;u.customerContactDetailsRequest.cellphoneIndicator=2;u.otpRenewService.CustomerContactDetails(u.customerContactDetailsRequest).then(function(n){var t=n.data;(t||t[app.Common.DigitalServicesModule.Constants.ContanctDetails.toBean()])&&(u.customerContactDetailsUpdateResponse=t[app.Common.DigitalServicesModule.Constants.ContanctDetails.toBean()],u.customerContactDetailsUpdateResponse&&u.customerContactDetailsUpdateResponse.returnCode=="0"||(u.generalErrorMsg=u.customerContactDetailsUpdateResponse&&u.customerContactDetailsUpdateResponse.message?u.customerContactDetailsUpdateResponse.message:generalErrorText));(u.advertisingCode||u.dualCompanyMarketingAgreement)&&(u.customerContactDetailsRequest.actionCode=1,u.advertisingCode&&!u.dualCompanyMarketingAgreement&&(u.customerContactDetailsRequest.companyCode=parseInt(companyServiceCode)),!u.advertisingCode&&u.dualCompanyMarketingAgreement&&(companyServiceCode=="11"&&(u.customerContactDetailsRequest.companyCode=77),companyServiceCode=="77"&&(u.customerContactDetailsRequest.companyCode=11)),u.customerContactDetailsSelectResponse&&u.customerContactDetailsSelectResponse.showAdvertisingCode!="1"&&u.customerContactDetailsSelectResponse.multicompanyCode=="3"&&u.advertisingCode&&u.dualCompanyMarketingAgreement&&(u.customerContactDetailsRequest.companyCode=99),u.customerContactDetailsRequest.mailDeliveryCode=1,u.customerContactDetailsRequest.smsBenefitCode=1,u.customerContactDetailsRequest.smsBenefitCodeIndicator=1,u.customerContactDetailsRequest.mailDeliveryCodeIndicator=1,u.otpRenewService.CustomerContactDetails(u.customerContactDetailsRequest).then(function(n){var t=n.data;(t||t[app.Common.DigitalServicesModule.Constants.ContanctDetails.toBean()])&&(u.customerContactDetailsUpdateResponse=t[app.Common.DigitalServicesModule.Constants.ContanctDetails.toBean()],u.customerContactDetailsUpdateResponse&&u.customerContactDetailsUpdateResponse.returnCode=="0"||(u.generalErrorMsg=u.customerContactDetailsUpdateResponse&&u.customerContactDetailsUpdateResponse.message?u.customerContactDetailsUpdateResponse.message:generalErrorText))}))})};this.updateClientOnlineBanking=function(){u.clientOnlineBankingRequest.actionCode=2;u.clientOnlineBankingSelectResponse.showBankingComm&&u.clientOnlineBankingSelectResponse.showBankingComm!="1"&&u.customerContactDetailsSelectResponse&&u.customerContactDetailsSelectResponse.multicompanyCode=="3"&&u.dualCompany&&(u.clientOnlineBankingRequest.companyCode=4);u.clientOnlineBankingRequest.accessLevel=2;u.clientOnlineBankingRequest.joiningChannelCode=u.dcChannelCode;u.clientOnlineBankingRequest.channelCode=3;u.clientOnlineBankingRequest.updatingUser="X0T";u.clientOnlineBankingRequest.consentCodeInternet=2;u.clientOnlineBankingRequest.updateIndicationInternet=1;u.clientOnlineBankingRequest.consentCodeFax=0;u.clientOnlineBankingRequest.updateIndicationFax=0;switch(u.updateIvrIndicator){case!0:u.clientOnlineBankingRequest.consentCodeIVR=2;u.clientOnlineBankingRequest.updateIndicationIVR=1;break;case!1:u.clientOnlineBankingRequest.consentCodeIVR=3;u.clientOnlineBankingRequest.updateIndicationIVR=1;break;default:u.clientOnlineBankingRequest.consentCodeIVR=0;u.clientOnlineBankingRequest.updateIndicationIVR=0}switch(u.updateMailIndicator){case!0:u.clientOnlineBankingRequest.consentCodeMail=2;u.clientOnlineBankingRequest.updateIndicationMail=1;break;case!1:u.clientOnlineBankingRequest.consentCodeMail=3;u.clientOnlineBankingRequest.updateIndicationMail=1;break;default:u.clientOnlineBankingRequest.consentCodeMail=0;u.clientOnlineBankingRequest.updateIndicationMail=0}switch(u.updateCellularIndicator){case!0:u.clientOnlineBankingRequest.consentCodeCellular=2;u.clientOnlineBankingRequest.updateIndicationCellular=1;break;case!1:u.clientOnlineBankingRequest.consentCodeCellular=3;u.clientOnlineBankingRequest.updateIndicationCellular=1;break;default:u.clientOnlineBankingRequest.consentCodeCellular=0;u.clientOnlineBankingRequest.updateIndicationCellular=0}return u.otpRenewService.ClientOnlineBanking(u.clientOnlineBankingRequest)};this.RenewNumberChanged=function(){u.numberChanged=!0;PushGACode({event:"PersonalZoneForgotPasswordStep2WrongNumber"})};this.GAStep2Fail=function(n){PushGACode({PersonalZoneForgotPasswordStep2FailName:n,event:"PersonalZoneForgotPasswordStep2Fail"})};this.getOtpCaptcha=function(n){var i=document.getElementById("captchaRenewOtp"),t;if(i)return t=i.Captcha,t&&(n?(u.otpRenewService.validateOTPRequest.instanceId=t.InstanceId,u.otpRenewService.validateOTPRequest.captchaId=t.Id):(u.otpRenewService.validateIdQuestionRequest.instanceId=t.InstanceId,u.otpRenewService.validateIdQuestionRequest.captchaId=t.Id)),t};this.SelectNewPassword=function(){if(u.isLoading!=!0){if(u.isLoading=!0,u.generalErrorMsg="",u.isAgreementSection){u.registerNewCustomer();return}u.otpRenewService.NewCustomerChangePasswordRequest.id=u.otpRenewService.validateIdRequest.id;u.otpRenewService.NewCustomerChangePasswordRequest.idType=u.otpRenewService.validateIdRequest.idType;u.otpRenewService.NewCustomerChangePasswordRequest.countryCode=u.otpRenewService.validateIdRequest.countryCode;u.otpRenewService.NewCustomerChangePasswordRequest.kodChevra=companyServiceCode;u.otpRenewService.NewCustomerChangePasswordRequest.userName=u.otpRenewService.validateIdNoRegResponse.ValidateIdDataNoRegBean.userName;u.otpRenewService.NewCustomerChangePassword().then(function(n){var t,i;if(u.isLoading=!1,t=n.data,t&&t.Header&&t.Header.Status=="1"){u.otpRenewService.NewCustomerChangePasswordResponse=n.data;switch(u.otpRenewService.NewCustomerChangePasswordResponse.NewCustomerChangePasswordBean.returnCode){case"13":u.stepChanged();u.currentExpandedStage="step4";PushGACode({event:"PersonalZoneForgotPasswordStep4Success"});break;default:i=u.otpRenewService.NewCustomerChangePasswordResponse.NewCustomerChangePasswordBean.message?u.otpRenewService.NewCustomerChangePasswordResponse.NewCustomerChangePasswordBean.message:generalErrorText;u.generalErrorMsg=i;u.GAStep3Fail(u.otpRenewService.NewCustomerChangePasswordResponse.NewCustomerChangePasswordBean.message);u.otpRenewService.resetForm(u.injScope.$$childTail.renewOtpForm);u.otpRenewService.NewCustomerChangePasswordRequest.password=null;u.rePassword=null}}else u.generalErrorMsg=generalErrorText,u.GAStep3Fail(generalErrorText)})}};this.GAStep3Fail=function(n){PushGACode({PersonalZoneForgotPasswordStep3FailName:n,event:"PersonalZoneForgotPasswordStep3Fail"})};this.initailizeObject=function(n){n.id=u.otpRenewService.validateIdRequest.id;n.idType=u.otpRenewService.validateIdRequest.idType;n.cardSuffix=u.otpRenewService.validateIdRequest.cardSuffix;n.countryCode=u.otpRenewService.validateIdRequest.countryCode;n.kodChevra=companyServiceCode};this.stepChanged=function(){var n=document.getElementById(u.currentExpandedStage).offsetTop;document.body.scrollTop=n};this.PushEloqua=function(n,t){clientGuid&&clientGuid.length!=0?pushEloqua("PersonalAreaRenewPassword"):n.$invalid||(t==1?getUserGuid(classes.otpLogin.defaultCountryCode,u.otpRenewService.validateIdRequest.id,"PersonalAreaForgotPassword","1"):u.otpRenewService.validateIdRequest.countryCode&&u.otpRenewService.validateIdRequest.countryCode.length>0&&getUserGuid(u.otpRenewService.validateIdRequest.countryCode,u.otpRenewService.validateIdRequest.id,"PersonalAreaForgotPassword","4"))};this.currentExpandedStage="step1";this.numberChanged=!1;this.isOtpCorrect=!1;this.isResendLoading=!1;this.init();companyServiceCode=="11"?(this.dcChannelCode=100,this.onlineBankingCompanyCode=1):companyServiceCode=="77"&&(this.dcChannelCode=102,this.onlineBankingCompanyCode=2)}return n}();t.$inject=["Uni.Services.otpService","$scope","$location","vcRecaptchaService"];n.ForgotPassController=t;angular.module("OTPLoginModule").controller("Uni.controllers.ForgotPassController",t)})(t=n.controllers||(n.controllers={}))}(Uni||(Uni={}))