1import{a as So,b as Fo,c as Io,d as Bo,e as Oo,f as Mo,g as No,h as To,i as Ro,j as Vo,k as zo,l as jo,m as Ho,n as Uo,o as Wo}from"./chunk-DRC52RAL.js";import{a as Po,b as Do,c as wn}from"./chunk-TMCMLRUB.js";import{f as Cn,h as yn,t as _n,w as Eo,x as kn}from"./chunk-ETOUN6PG.js";import{a as Pe}from"./chunk-7A374TV7.js";import{A as lo,B as co,b as to,e as Ve,h as ci,i as io,l as Me,m as no,q as oo,s as ro,u as ao,v as so,y as di,z as dt}from"./chunk-N6SDPKS7.js";import{a as Ge,b as gi,c as Jo}from"./chunk-CWACPX35.js";import{a as Ao}from"./chunk-SMNSNQ6U.js";import{d as yo,e as _o,f as ko,g as wo,h as Gt}from"./chunk-KGIYAQSQ.js";import{b as qo,c as Pn,d as Go,e as $o}from"./chunk-UF7X5D7F.js";import{a as Yo}from"./chunk-QXGUUETH.js";import{a as ho}from"./chunk-H4B4PPRI.js";import{a as En,b as xi,c as Nt,d as Tt,e as Lo}from"./chunk-VFUO7DWR.js";import{l as fi}from"./chunk-HRO4HKYD.js";import"./chunk-X6YHEMIY.js";import{a as Fe}from"./chunk-6PWLJE7K.js";import{k as Mt,l as ze,m as vo,o as bo,p as Co,q as bn}from"./chunk-WFFJJOHB.js";import"./chunk-PLOZBXGZ.js";import{a as Ke}from"./chunk-EVHKDTHY.js";import{$a as F,Ac as hi,Ba as Hn,Bc as uo,Cb as ve,Cc as ui,Db as Re,Dc as mo,E as Vn,Ea as X,Eb as ai,Ec as xo,Fb as Bt,Hc as mi,Ia as vt,Ic as go,L as Le,Lc as Se,M as Et,Nb as Jn,O as De,Oa as M,Pa as p,Qa as h,R as H,Ra as ie,S as U,Ub as ct,V as qe,Va as Dt,Vb as Ye,W as zn,Wa as St,Wb as ye,Ya as ee,_a as q,a as Rn,ac as si,ba as ke,bc as Kn,cc as li,db as Un,dc as Ot,eb as qn,ec as Xn,fb as Gn,h as xn,j as qt,ja as jn,jc as ue,kc as Qn,la as We,lc as Je,na as lt,nb as _,oa as k,ob as he,pa as Pt,pb as le,pc as Zn,qb as Ft,qc as eo,rb as $n,rc as po,s as gn,sb as Wn,sc as fo,tb as Yn,ub as Ce,uc as pt,va as Y,vb as It,wb as ri,wc as vn,xc as pi,ya as fe,yc as be,za as At,zb as He,zc as xe}from"./chunk-72RDFEB5.js";import{a as Nn,b as Tn,c as Ln,e as oe,g as oi}from"./chunk-66YHNWRR.js";var Ko=oe((Dn,Sn)=>{"use strict";(function(r,n){typeof Dn=="object"&&typeof Sn<"u"?Sn.exports=n():typeof define=="function"&&define.amd?define(n):(r=r||self,r.Cropme=n())})(Dn,function(){"use strict";function r(x){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?r=function(E){return typeof E}:r=function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},r(x)}function n(x,E){if(!(x instanceof E))throw new TypeError("Cannot call a class as a function")}function o(x,E){for(var v=0;v<E.length;v++){var S=E[v];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(x,S.key,S)}}function e(x,E,v){return E&&o(x.prototype,E),v&&o(x,v),x}function t(x,E,v){return E in x?Object.defineProperty(x,E,{value:v,enumerable:!0,configurable:!0,writable:!0}):x[E]=v,x}function i(x){return x&&r(x)==="object"&&!Array.isArray(x)}function s(x){return x&&Array.isArray(x)}function a(x){for(var E=arguments.length,v=new Array(E>1?E-1:0),S=1;S<E;S++)v[S-1]=arguments[S];if(!v.length)return x;var y=v.shift();if(Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(W){if(W==null)throw new TypeError("Cannot convert first argument to object");for(var T=Object(W),K=1;K<arguments.length;K++){var G=arguments[K];if(G!=null){G=Object(G);for(var J=Object.keys(Object(G)),Z=0,N=J.length;Z<N;Z++){var V=J[Z],j=Object.getOwnPropertyDescriptor(G,V);j!==void 0&&j.enumerable&&(T[V]=G[V])}}}return T}}),i(x)&&i(y))for(var w in y)i(y[w])?(x[w]||Object.assign(x,t({},w,{})),a(x[w],y[w])):s(y[w])?(x[w]||Object.assign(x,t({},w,[])),x[w]=x[w].concat(y[w])):Object.assign(x,t({},w,y[w]));return a.apply(void 0,[x].concat(v))}(function(x){(function(E){function v(y){if(S[y])return S[y].exports;var w=S[y]={i:y,l:!1,exports:{}};return E[y].call(w.exports,w,w.exports,v),w.l=!0,w.exports}var S={};v.m=E,v.c=S,v.i=function(y){return y},v.d=function(y,w,R){v.o(y,w)||Object.defineProperty(y,w,{configurable:!1,enumerable:!0,get:R})},v.n=function(y){var w=y&&y.__esModule?function(){return y.default}:function(){return y};return v.d(w,"a",w),w},v.o=function(y,w){return Object.prototype.hasOwnProperty.call(y,w)},v.p="",v(v.s=100)})({100:function(v,S,y){(function(w){var R=y(5);
1try{w.Promise=R,window.Promise=R}catch{}}).call(S,y(2))},2:function(v,S){var y;y=(function(){return this})();try{y=y||Function("return this")()||(0,eval)("this")}catch{(typeof window>"u"?"undefined":r(window))=="object"&&(y=window)}v.exports=y},5:function(v,S,y){(function(w){(function(){function R(){return de[kt][Vt]||fn}function W(B){return B&&r(B)=="object"}function T(B){return typeof B=="function"}function K(B,z){return B instanceof z}function G(B){return K(B,Rt)}function J(B,z,Q){if(!z(B))throw L(Q)}function Z(){try{return _t.apply(rt,arguments)}catch(B){return Ue.e=B,Ue}}function N(B,z){return _t=B,rt=z,Z}function V(B,z){function Q(){for(var me=0;me<pe;)z(te[me],te[me+1]),te[me++]=$e,te[me++]=$e;pe=0,te.length>B&&(te.length=B)}var te=Xt(B),pe=0;return function(me,Ae){te[pe++]=me,te[pe++]=Ae,pe===2&&de.nextTick(Q)}}function j(B,z){var Q,te,pe,me,Ae=0;if(!B)throw L(Ht);var st=B[de[kt][Qt]];if(T(st))te=st.call(B);else{if(!T(B.next)){if(K(B,Xt)){for(Q=B.length;Ae<Q;)z(B[Ae],Ae++);return Ae}throw L(Ht)}te=B}for(;!(pe=te.next()).done;)if((me=N(z)(pe.value,Ae++))===Ue)throw T(te[Zt])&&te[Zt](),me.e;return Ae}function L(B){return new TypeError(B)}function re(B){return(B?"":ei)+new Rt().stack}function se(B,z){var Q="on"+B.toLowerCase(),te=Be[Q];at&&at.listeners(B).length?B===ti?at.emit(B,z._v,z):at.emit(B,z):te?te({reason:z._v,promise:z}):de[B](z._v,z)}function _e(B){return B&&B._s}function ne(B){if(_e(B))return new B(Ut);var z,Q,te;return z=new B(function(pe,me){if(z)throw L();Q=pe,te=me}),J(Q,T),J(te,T),z}function it(B,z){var Q=!1;return function(te){Q||(Q=!0,Ne&&(B[wt]=re(!0)),z===Te?Qe(B,te):ce(B,z,te))}}function nt(B,z,Q,te){return T(Q)&&(z._onFulfilled=Q),T(te)&&(B[zt]&&se(un,B),z._onRejected=te),Ne&&(z._p=B),B[B._c++]=z,B._s!==et&&ii(B,z),z}function yt(B){if(B._umark)return!0;B._umark=!0;for(var z,Q=0,te=B._c;Q<te;)if(z=B[Q++],z._onRejected||yt(z))return!0}function ot(B,z){function Q(pe){return te.push(pe.replace(/^\s+|\s+$/g,""))}var te=[];return Ne&&(z[wt]&&Q(z[wt]),(function pe(me){me&&jt in me&&(pe(me._next),Q(me[jt]+""),pe(me._p))})(z)),(B&&B.stack?B.stack:B)+(` 2`+te.join(` 3`)).replace(mn,"")}function je(B,z){return B(z)}function ce(B,z,Q){var te=0,pe=B._c;if(B._s===et)for(B._s=z,B._v=Q,z===Oe&&(Ne&&G(Q)&&(Q.longStack=ot(Q,B)),ni(B));te<pe;)ii(B,B[te++]);return B}function Qe(B,z){if(z===B&&z)return ce(B,Oe,L(hn)),B;if(z!==Ee&&(T(z)||W(z))){var Q=N(mt)(z);if(Q===Ue)return ce(B,Oe,Q.e),B;T(Q)?(Ne&&_e(z)&&(B._next=z),_e(z)?xt(B,z,Q):de.nextTick(function(){xt(B,z,Q)})):ce(B,Te,z)}else ce(B,Te,z);return B}function mt(B){return B.then}function xt(B,z,Q){var te=N(Q,z)(function(pe){z&&(z=Ee,Qe(B,pe))},function(pe){z&&(z=Ee,ce(B,Oe,pe))});te===Ue&&z&&(ce(B,Oe,te.e),z=Ee)}var $e,_t,rt,Ee=null,Ie=(typeof self>"u"?"undefined":r(self))=="object",Be=Ie?self:w,gt=Be.Promise,at=Be.process,Ze=Be.console,Ne=!1,Xt=Array,Rt=Error,Oe=1,Te=2,et=3,kt="Symbol",Qt="iterator",Vt="species",fn=kt+"("+Vt+")",Zt="return",zt="_uh",jt="_pt",wt="_st",Ht="Invalid argument",ei=` 4From previous `,hn="Chaining cycle detected for promise",un="rejectionHandled",ti="unhandledRejection",Ue={e:Ee},Ut=function(){},mn=/^.+\/node_modules\/yaku\/.+\n?/gm,de=function(z){var Q,te=this;if(!W(te)||te._s!==$e)throw L("Invalid this");if(te._s=et,Ne&&(te[jt]=re()),z!==Ut){if(!T(z))throw L(Ht);(Q=N(z)(it(te,Te),it(te,Oe)))===Ue&&ce(te,Oe,Q.e)}};de.default=de,(function(B,z){for(var Q in z)B[Q]=z[Q]})(de.prototype,{then:function(z,Q){if(this._s===x)throw L();return nt(this,ne(de.speciesConstructor(this,de)),z,Q)},catch:function(z){return this.then($e,z)},finally:function(z){return this.then(function(Q){return de.resolve(z()).then(function(){return Q})},function(Q){return de.resolve(z()).then(function(){throw Q})})},_c:0,_p:Ee}),de.resolve=function(B){return _e(B)?B:Qe(ne(this),B)},de.reject=function(B){return ce(ne(this),Oe,B)},de.race=function(B){var z=this,Q=ne(z),te=function(st){ce(Q,Te,st)},pe=function(st){ce(Q,Oe,st)},me=N(j)(B,function(Ae){z.resolve(Ae).then(te,pe)});return me===Ue?z.reject(me.e):Q},de.all=function(B){function z(Ae){ce(pe,Oe,Ae)}var Q,te=this,pe=ne(te),me=[];return(Q=N(j)(B,function(Ae,st){te.resolve(Ae).then(function(Ra){me[st]=Ra,--Q||ce(pe,Te,me)},z)}))===Ue?te.reject(Q.e):(Q||ce(pe,Te,[]),pe)},de.Symbol=Be[kt]||{},N(function(){Object.defineProperty(de,R(),{get:function(){return this}})})(),de.speciesConstructor=function(B,z){var Q=B.constructor;return Q&&Q[R()]||z},de.unhandledRejection=function(B,z){Ze&&Ze.error("Uncaught (in promise)",Ne?z.longStack:ot(B,z))},de.rejectionHandled=Ut,de.enableLongStackTrace=function(){Ne=!0},de.nextTick=Ie?function(B){gt?new gt(function(z){z()}).then(B):setTimeout(B)}:at.nextTick,de._s=1;var ii=V(999,function(B,z){var Q,te;return(te=B._s!==Oe?z._onFulfilled:z._onRejected)===$e?void ce(z,B._s,B._v):(Q=N(je)(te,B._v))===Ue?void ce(z,Oe,Q.e):void Qe(z,Q)}),ni=V(9,function(B){yt(B)||(B[zt]=1,se(ti,B))});try{v.exports=de}catch{Be.Yaku=de}})()}).call(S,y(2))}})}).call((typeof window>"u"?"undefined":r(window))==="object"&&window||(typeof self>"u"?"undefined":r(self))==="object"&&self||(typeof global>"u"?"undefined":r(global))==="object"&&global||{}),window.jQuery&&(jQuery.fn.cropme=function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=arguments.length>1?arguments[1]:void 0;if(r(x)==="object")return this.each(function(){var S=new D(this,x);$(this).data("cropme",S)});
4if(typeof x=="string"){var v=$(this).data("cropme");switch(x){case"position":return v.position();case"bind":return v.bind(E);case"crop":return v.crop(E);case"rotate":return v.rotate(E);case"reload":return v.reload(E);case"destroy":return v.destroy();default:throw"Error: "+x+" method not found"}}else throw"Error: the argument must be an object or a string"});function l(){return"translate3d("+this.properties.x+"px,"+this.properties.y+"px, 0) scale("+this.properties.scale+") rotate("+this.properties.deg+"deg)"}function g(x,E){return x+"px "+E+"px"}function c(){if(this.properties.rotation_slider)this.options.rotation.slider?this.properties.rotation_slider.disabled=!this.options.rotation.enable:(this.properties.wrapper.removeChild(this.properties.rotation_slider.parentNode),delete this.properties.rotation_slider),this.properties.rotation_slider&&(this.properties.rotation_slider.style.width=this.properties.container.offsetWidth+"px");else if(this.options.rotation.slider){var x=document.createElement("div");x.classList.add("cropme-rotation-slider");var E=this.properties.rotation_slider=document.createElement("input");E.type="range",E.setAttribute("min",-180),E.setAttribute("max",180),E.setAttribute("step",1),E.value=0,E.style.width=this.properties.container.offsetWidth+"px",x.appendChild(E),this.properties.wrapper.appendChild(x);var v=this;this.properties.rotation_slider.addEventListener(m()?"change":"input",function(S){v.rotate(S.target.value)}),this.properties.rotation_slider.disabled=!this.options.rotation.enable}}function m(){var x=window.navigator.userAgent,E=x.indexOf("MSIE ");if(E>0)return parseInt(x.substring(E+5,x.indexOf(".",E)),10);var v=x.indexOf("Trident/");if(v>0){var S=x.indexOf("rv:");return parseInt(x.substring(S+3,x.indexOf(".",S)),10)}var y=x.indexOf("Edge/");return y>0?parseInt(x.substring(y+5,x.indexOf(".",y)),10):!1}function f(){function x(){var y=(this.properties.wrapper.offsetWidth-this.properties.container.offsetWidth)/2,w=this.properties.container.offsetWidth/2+12+y;this.options.rotation.position==="left"&&(w=-this.properties.container.offsetWidth/2-20+y);var R=(this.properties.container.offsetWidth-this.properties.container.offsetHeight)/2,W=this.properties.container.offsetHeight/2+12-R;this.properties.sliderContainer.style.transform="translate3d("+w+"px, "+W+"px, 0) rotate(-90deg)";var T=this.properties.container.offsetWidth/2;this.properties.sliderContainer.style.transformOrigin=T+"px 12px",this.properties.sliderContainer.style.marginTop="-24px",this.properties.slider.disabled=!this.options.zoom.enable}if(this.properties.slider)this.options.zoom.slider?x.call(this):(this.properties.wrapper.removeChild(this.properties.slider.parentNode),delete this.properties.slider);else if(this.options.zoom.slider){var E=this,v=this.properties.sliderContainer=document.createElement("div");v.classList.add("cropme-slider");var S=this.properties.slider=document.createElement("input");S.type="range",S.setAttribute("min",this.options.zoom.min),S.setAttribute("max",this.options.zoom.max),S.setAttribute("step",1e-6),S.style.width=this.properties.container.offsetHeight+"px",v.style.width=this.properties.container.offsetHeight+"px",v.appendChild(S),this.properties.wrapper.insertBefore(v,this.properties.wrapper.firstChild),this.properties.slider.value=this.properties.scale,this.properties.slider.addEventListener(m()?"change":"input",function(y){E.properties.scale=parseFloat(y.target.value),E.properties.image.style.transform=l.call(E)}),x.call(this)}}function C(){var x=this.properties.container;x||(x=this.properties.container=document.createElement("div"),this.properties.wrapper.appendChild(x)),x.classList.add("cropme-container"),x.style.width=this.options.container.width+(typeof this.options.container.width=="string"?"":"px"),x.style.height=this.options.container.height+"px"}function b(){this.properties.image||(this.properties.image=new Image),this.properties.image.ondragstart=function(){return!1},this.properties.container.appendChild(this.properties.image)}function P(){var x=this.properties.viewport=this.properties.viewport||document.createElement("div"),E=this.properties.container,v=this.options,S=v.viewport.border.width;if(E.style.width=v.viewport.width>E.offsetWidth?v.viewport.width+S*2+"px":E.offsetWidth,E.style.height=v.viewport.height>E.offsetHeight?v.viewport.height+S*2+"px":E.offsetHeight,x.style.width=v.viewport.width+"px",x.style.height=v.viewport.height+"px",x.className="viewport",v.viewport.type==="circle"&&(x.className="viewport circle"),v.viewport.border.enable){var y=(E.offsetWidth-v.viewport.width)/2;v.viewport.border.width=y<v.viewport.border.width?y:v.viewport.border.width}else v.viewport.border.width=0;this.properties.viewport.style.borderWidth=v.viewport.border.width+"px",this.properties.viewport.style.borderColor=v.viewport.border.color,this.properties.container.appendChild(x)}function A(){var x=this.properties.image.style.transformOrigin.split("px ");return{x:parseFloat(x[0]),y:parseFloat(x[1])}}function d(){var x=A.call(this),E=x.x,v=x.y,S=-parseInt(this.properties.deg)*Math.PI/180;if(this.options.transformOrigin==="viewport"){var y=this.properties.deg;this.properties.deg=0,this.properties.image.style.transform=l.call(this);var w=this.properties.scale,R=this.properties.container,W=this.properties.image.getBoundingClientRect(),T=this.properties.viewport.getBoundingClientRect(),K=T.top-W.to
4p+T.height/2,G=T.left-W.left+T.width/2,J,Z,N=G/w,V=K/w,j=N-E,L=V-v,re=j*Math.cos(S)-L*Math.sin(S),se=j*Math.sin(S)+L*Math.cos(S);J=E+re,Z=v+se,this.properties.x=R.offsetWidth/2-J,this.properties.y=R.offsetHeight/2-Z,this.properties.image.style.transformOrigin=g.call(this,J,Z),this.properties.deg=y,this.properties.image.style.transform=l.call(this)}else this.properties.x-=this.properties.origin_x-E,this.properties.y-=this.properties.origin_y-v,this.properties.image.style.transformOrigin=g.call(this,this.properties.origin_x,this.properties.origin_y),this.properties.image.style.transform=l.call(this)}function u(){C.call(this),c.call(this),f.call(this),b.call(this),P.call(this);var x,E,v=0,S=0,y=this,w=function(G){G.preventDefault();var J=G.pageX,Z=G.pageY;G.touches&&(J=G.touches[0].pageX,Z=G.touches[0].pageY),v=y.properties.x||v,S=y.properties.y||S,x=J-v,E=Z-S,document.addEventListener("mousemove",R),document.addEventListener("touchmove",R),document.addEventListener("mouseup",W),document.addEventListener("touchend",W)};y.properties.image.addEventListener("mousedown",w),y.properties.image.addEventListener("touchstart",w);var R=function(G){G.preventDefault();var J=G.pageX,Z=G.pageY;if(G.touches&&(J=G.touches[0].pageX,Z=G.touches[0].pageY),G.touches&&G.touches.length>1){var N=G.touches[1],V=J-N.pageX,j=Z-N.pageY;if(y.options.rotation.enable){var L=90-Math.atan2(V,j)*180/Math.PI;y.properties.odeg||(y.properties.odeg=L-y.properties.deg),y.properties.deg=L-y.properties.odeg}if(y.options.zoom.enable){var re=Math.sqrt(Math.pow(V,2)+Math.pow(j,2));y.properties.od||(y.properties.od=re/y.properties.scale),y.properties.scale=re/y.properties.od,y.properties.slider&&(y.properties.slider.value=y.properties.scale)}}else y.properties.x=J-x,y.properties.y=Z-E;y.properties.image.style.transform=l.call(y)},W=function K(){document.removeEventListener("touchmove",R),document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",K),document.removeEventListener("touchend",K),y.properties.od=0,y.properties.odeg=0,d.call(y)},T=function(G){G.preventDefault();var J=y.properties.scale+G.wheelDelta/1200*y.properties.scale;J>y.options.zoom.min&&J<y.options.zoom.max&&y.options.zoom.mouseWheel&&y.options.zoom.enable&&(y.options.zoom.slider&&(y.properties.slider.value=J),y.properties.scale=J,y.properties.image.style.transform=l.call(y))};y.properties.container.addEventListener("mousewheel",T)}function I(x){var E=document.createElement("canvas"),v=E.getContext("2d"),S=this.options.viewport.width,y=this.options.viewport.height;r(x)==="object"&&(x.scale?(S=S*x.scale,y=y*x.scale):x.width&&(y=x.width*y/S,S=x.width)),E.width=S,E.height=y;var w=S/this.options.viewport.width,R=y/this.options.viewport.height,W=this.properties.deg,T=this.properties.x,K=this.properties.y;function G(se,_e,ne){this.properties.deg=se,this.properties.x=_e,this.properties.y=ne,this.properties.image.style.transform=l.call(this)}G.call(this,0,this.properties.ox,this.properties.oy);var J=this.properties.image.getBoundingClientRect(),Z=this.properties.viewport.getBoundingClientRect(),N=w*(J.left-Z.left-this.options.viewport.border.width),V=R*(J.top-Z.top-this.options.viewport.border.width),j=this.options.transformOrigin,L=(T-this.properties.x)*w,re=(K-this.properties.y)*R;return j==="image"&&v.translate(L,re),v.translate(S/2,y/2),v.rotate(W*Math.PI/180),j==="image"?v.translate(-S/2,-y/2):v.translate(-S/2+L,-y/2+re),v.drawImage(this.properties.image,N,V,J.width*w,J.height*R),this.options.viewport.type==="circle"&&(j==="image"?v.translate(S/2,y/2):v.translate(S/2-L,y/2-re),v.rotate(-W*Math.PI/180),v.translate(-S/2,-y/2),v.scale(1,this.options.viewport.height/this.options.viewport.width),j==="image"?v.translate(-L*2,-re*2):v.translate(-L,-re),v.globalCompositeOperation="destination-in",v.arc(S/2+L,y/2+re,S/2,0,2*Math.PI),v.fill()),G.call(this,W,T,K),E}var D=(function(){function x(E,v){if(n(this,x),E.className.indexOf("cropme-wrapper")>-1)throw"Error: Cropme is already initialized";if(this.properties={},this.options=a(O,v),this.options.viewport.width>this.options.container.width)throw"Error: Viewport width cannot be greater that c
4ontainer width";if(this.options.viewport.height>this.options.container.height)throw"Error: Viewport height cannot be greater that container height";this.properties.wrapper=E,E.tagName.toLowerCase()==="img"&&(this.properties.image=new Image,this.properties.image.src=E.src,this.properties.wrapper=document.createElement("div"),E.parentNode.insertBefore(this.properties.wrapper,E.previousSibling),E.parentNode.removeChild(E)),this.properties.wrapper.className+=" cropme-wrapper "+this.options.customClass,u.call(this),this.properties.image.src&&this.bind({url:this.properties.image.src})}return e(x,[{key:"resize",value:function(){var v=this.properties.container,S=this.properties.container_w-v.offsetWidth,y=this.properties.container_h-v.offsetHeight;v.style.width=this.options.container.width+(typeof this.options.container.width=="string"?"":"px"),v.offsetWidth>this.options.viewport.width?(this.properties.x-=S/2,this.properties.y-=y/2,this.properties.container_w=v.offsetWidth,this.properties.container_h=v.offsetHeight,this.properties.ox-=S/2,this.properties.oy-=y/2,this.properties.image.style.transform=l.call(this),f.call(this),c.call(this)):v.style.width=this.options.viewport.width+this.options.viewport.border.width*2+"px"}},{key:"bind",value:function(v){var S=this;window.onresize=this.resize.bind(this),this.properties.image.src=v.url;var y=this.properties,w=this.options,R=this;return new Promise(function(W){S.properties.image.onload=function(){var T=y.image.getBoundingClientRect(),K=y.container.getBoundingClientRect(),G=(K.width-T.width)/2,J=(K.height-T.height)/2,Z=K.height/T.height,N=0;y.ox=G,y.oy=J;var V={};if(r(v.position)==="object"&&(G=v.position.x?v.position.x+G:G,J=v.position.y?v.position.y+J:J,Z=v.position.scale||Z,N=v.position.angle||N,V=v.position.origin||V,w.transformOrigin=v.position.origin==="object"?"viewport":"image"),w.zoom.max<=w.zoom.min)throw"Error: max zoom cannot be less or equal to min zoom";Z<w.zoom.min&&(Z=w.zoom.min),Z>w.zoom.max&&(Z=w.zoom.max),y.x=G,y.y=J,y.container_w=K.width,y.container_h=K.height,y.origin_x=T.width/2,y.origin_y=T.height/2,y.scale=Z,R.options.zoom.slider&&(y.slider.value=Z),R.options.rotation.slider&&(y.rotation_slider.value=N),y.deg=N,y.image.style.transform=l.call(R),y.image.style.transformOrigin=g.call(R,V.x||y.origin_x,V.y||y.origin_y),y.image.style.opacity=1,d.call(R),W(R.properties.image)}})}},{key:"rotate",value:function(v){this.properties.deg=v;var S=this.properties.image.style.transformOrigin.split("px "),y=parseInt(S[0]),w=parseInt(S[1]);this.properties.rotate_originx=y,this.properties.rotate_originy=w,this.properties.image.style.transform=l.call(this)}},{key:"crop",value:function(v){var S=I.call(this,v),y=r(v)==="object"?v.type:v;return new Promise(function(w){y==="blob"?S.toBlob(function(R){return w(URL.createObjectURL(R))},v.mimetype,v.quality):r(v)==="object"?w(S.toDataURL(v.mimetype,v.quality)):w(S.toDataURL())})}},{key:"position",value:function(){var v={x:parseFloat((this.properties.x-this.properties.ox).toFixed(3)),y:parseFloat((this.properties.y-this.properties.oy).toFixed(3)),scale:parseFloat(this.properties.scale.toFixed(4)),angle:parseInt(this.properties.deg)};return this.options.transformOrigin==="viewport"&&(v.origin=A.call(this)),v}},{key:"reload",value:function(v){this.options=a(O,v),f.call(this),C.call(this),c.call(this),P.call(this),d.call(this)}},{key:"destroy",value:function(){this.properties.wrapper.innerHTML="",this.properties.wrapper.className=this.properties.wrapper.className.replace("cropme-wrapper",""),delete this.options,delete this.properties}}]),x})(),O={container:{width:300,height:300},viewport:{width:100,height:100,border:{enable:!0,width:2,color:"#fff"}},transformOrigin:"viewport",zoom:{min:.01,max:3,enable:!0,mouseWheel:!0,slider:!1},customClass:"",rotation:{slider:!1,enable:!0,position:"right"}};return D})});var or=oe((M0,nr)=>{"use strict";nr.exports={"4r5e":1,"5h1t":1,"5hit":1,a55:1,anal:1,anus:1,ar5e:1,arrse:1,arse:1,ass:1,"ass-fucker":1,asses:1,assfucker:1,assfukka:1,asshole:1,assholes:1,asswhole:1,a_s_s:1,"b!tch":1,b00bs:1,b17ch:1,b1tch:1,ballbag:1,balls:1,ballsack:1,bastard:1,beastial:1,beastiality:1,bellend:1,bestial:1,bestiality:1,"bi+ch":1,biatch:1,bitch:1,bitcher:1,bitchers:1,bitches:1,bitchin:1,bitching:1,bloody:1,"blow job":1,blowjob:1,blowjobs:1,boiolas:1,bollock:1,bollok:1,boner:1,boob:1,boobs:1,booobs:1,boooobs:1,booooobs:1,booooooobs:1,breasts:1,buceta:1,bugger:1,bum:1,"bunny fucker":1,butt:1,butthole:1,buttmuch:1,buttplug:1,c0ck:1,c0cksucker:1,"carpet muncher":1,cawk:1,chink:1,cipa:1,cl1t:1,clit:1,clitoris:1,clits:1,cnut:1,cock:1,"cock-sucker":1,cockface:1,cockhead:1,cockmunch:1,cockmuncher:1,cocks:1,cocksuck:1,cocksucked:1,cocksucker:1,cocksucking:1,cocksucks:1,cocksuka:1,cocksukka:1,cok:1,cokmuncher:1,coksucka:1,coon:1,cox:1,crap:1,cum:1,cummer:1,cumming:1,cums:1,cumshot:1,cunilingus:1,cunillingus:1,cunnilingus:1,cunt:1,cuntlick:1,cuntlicker:1,cuntlicking:1,cunts:1,cyalis:1,cyberfuc:1,cyberfuck:1,cyberfucked:1,cyberfucker:1,cyberfuckers:1,cyberfucking:1,d1ck:1,damn:1,dick:1,dickhead:1,dildo:1,dildos:1,dink:1,dinks:1,dirsa:1,dlck:1,"dog-fucker":1,doggin:1,dogging:1,donkeyribber:1,doosh:1,duche:1,dyke:1,ejaculate:1,ejaculated:1,ejaculates:1,ejaculating:1,ejaculatings:1,ejaculation:1,ejakulate:1,"f u c k":1,"f u c k e r":1,f4nny:1,fag:1,fagging:1,faggitt:1,faggot:1,faggs:1,fagot:1,fagots:1,fags:1,fanny:1,fannyflaps:1,fannyfucker:1,fanyy:1,fatass:1,fcuk:1,fcuker:1,fcuking:1,feck:1,fecker:1,felching:1,fellate:1,fellatio:1,fingerfuck:1,fingerfucked:1,fingerfucker:1,fingerfuckers:1,fingerfucking:1,fingerfucks:1,fistfuck:1,fistfucked:1,fistfucker:1,fistfuckers:1,fistfucking:1,fistfuckings:1,fistfucks:1,flange:1,fook:1,fooker:1,fuck:1,fucka:1,fucked:1,fucker:1,fuckers:1,fuckhead:1,fuckheads:1,fuckin:1,fucking:1,fuckings:1,fuckingshitmotherfucker:1,fuckme:1,fucks:1,fuckw
4hit:1,fuckwit:1,"fudge packer":1,fudgepacker:1,fuk:1,fuker:1,fukker:1,fukkin:1,fuks:1,fukwhit:1,fukwit:1,fux:1,fux0r:1,f_u_c_k:1,gangbang:1,gangbanged:1,gangbangs:1,gaylord:1,gaysex:1,goatse:1,God:1,"god-dam":1,"god-damned":1,goddamn:1,goddamned:1,hardcoresex:1,hell:1,heshe:1,hoar:1,hoare:1,hoer:1,homo:1,hore:1,horniest:1,horny:1,hotsex:1,"jack-off":1,jackoff:1,jap:1,"jerk-off":1,jism:1,jiz:1,jizm:1,jizz:1,kawk:1,knob:1,knobead:1,knobed:1,knobend:1,knobhead:1,knobjocky:1,knobjokey:1,kock:1,kondum:1,kondums:1,kum:1,kummer:1,kumming:1,kums:1,kunilingus:1,"l3i+ch":1,l3itch:1,labia:1,lust:1,lusting:1,m0f0:1,m0fo:1,m45terbate:1,ma5terb8:1,ma5terbate:1,masochist:1,"master-bate":1,masterb8:1,"masterbat*":1,masterbat3:1,masterbate:1,masterbation:1,masterbations:1,masturbate:1,"mo-fo":1,mof0:1,mofo:1,mothafuck:1,mothafucka:1,mothafuckas:1,mothafuckaz:1,mothafucked:1,mothafucker:1,mothafuckers:1,mothafuckin:1,mothafucking:1,mothafuckings:1,mothafucks:1,"mother fucker":1,motherfuck:1,motherfucked:1,motherfucker:1,motherfuckers:1,motherfuckin:1,motherfucking:1,motherfuckings:1,motherfuckka:1,motherfucks:1,muff:1,mutha:1,muthafecker:1,muthafuckker:1,muther:1,mutherfucker:1,n1gga:1,n1gger:1,nazi:1,nigg3r:1,nigg4h:1,nigga:1,niggah:1,niggas:1,niggaz:1,nigger:1,niggers:1,nob:1,"nob jokey":1,nobhead:1,nobjocky:1,nobjokey:1,numbnuts:1,nutsack:1,orgasim:1,orgasims:1,orgasm:1,orgasms:1,p0rn:1,pawn:1,pecker:1,penis:1,penisfucker:1,phonesex:1,phuck:1,phuk:1,phuked:1,phuking:1,phukked:1,phukking:1,phuks:1,phuq:1,pigfucker:1,pimpis:1,piss:1,pissed:1,pisser:1,pissers:1,pisses:1,pissflaps:1,pissin:1,pissing:1,pissoff:1,poop:1,porn:1,porno:1,pornography:1,pornos:1,prick:1,pricks:1,pron:1,pube:1,pusse:1,pussi:1,pussies:1,pussy:1,pussys:1,rectum:1,retard:1,rimjaw:1,rimming:1,"s hit":1,"s.o.b.":1,sadist:1,schlong:1,screwing:1,scroat:1,scrote:1,scrotum:1,semen:1,sex:1,"sh!+":1,"sh!t":1,sh1t:1,shag:1,shagger:1,shaggin:1,shagging:1,shemale:1,"shi+":1,shit:1,shitdick:1,shite:1,shited:1,shitey:1,shitfuck:1,shitfull:1,shithead:1,shiting:1,shitings:1,shits:1,shitted:1,shitter:1,shitters:1,shitting:1,shittings:1,shitty:1,skank:1,slut:1,sluts:1,smegma:1,smut:1,snatch:1,"son-of-a-bitch":1,spac:1,spunk:1,s_h_i_t:1,t1tt1e5:1,t1tties:1,teets:1,teez:1,testical:1,testicle:1,tit:1,titfuck:1,tits:1,titt:1,tittie5:1,tittiefucker:1,titties:1,tittyfuck:1,tittywank:1,titwank:1,tosser:1,turd:1,tw4t:1,twat:1,twathead:1,twatty:1,twunt:1,twunter:1,v14gra:1,v1gra:1,vagina:1,viagra:1,vulva:1,w00se:1,wang:1,wank:1,wanker:1,wanky:1,whoar:1,whore:1,willies:1,willy:1,xrated:1,xxx:1}});var ar=oe((N0,rr)=>{"use strict";rr.exports=["4r5e","5h1t","5hit","a55","anal","anus","ar5e","arrse","arse","ass","ass-fucker","asses","assfucker","assfukka","asshole","assholes","asswhole","a_s_s","b!tch","b00bs","b17ch","b1tch","ballbag","balls","ballsack","bastard","beastial","beastiality","bellend","bestial","bestiality","bi+ch","biatch","bitch","bitcher","bitchers","bitches","bitchin","bitching","bloody","blow job","blowjob","blowjobs","boiolas","bollock","bollok","boner","boob","boobs","booobs","boooobs","booooobs","booooooobs","breasts","buceta","bugger","bum","bunny fucker","butt","butthole","buttmuch","buttplug","c0ck","c0cksucker","carpet muncher","cawk","chink","cipa","cl1t","clit","clitoris","clits","cnut","cock","cock-sucker","cockface","cockhead","cockmunch","cockmuncher","cocks","cocksuck","cocksucked","cocksucker","cocksucking","cocksucks","cocksuka","cocksukka","cok","cokmuncher","coksucka","coon","cox","crap","cum","cummer","cumming","cums","cumshot","cunilingus","cunillingus","cunnilingus","cunt","cuntlick","cuntlicker","cuntlicking","cunts","cyalis","cyberfuc","cyberfuck","cyberfucked","cyberfucker","cyberfuckers","cyberfucking","d1ck","damn","dick","dickhead","dildo","dildos","dink","dinks","dirsa","dlck","dog-fucker","doggin","dogging","donkeyribber","doosh","duche","dyke","ejaculate","ejaculated","ejaculates","ejaculating","ejaculatings","ejaculation","ejakulate","f u c k","f u c k e r","f4nny","fag","fagging","faggitt","faggot","faggs","fagot","fagots","fags","fanny","fannyflaps","fannyfucker","fanyy","fatass","fcuk","fcuker","fcuking","feck","fecker","felching","fellate","fellatio","fingerfuck","fingerfucked","fingerfucker","fingerfuckers","fingerfucking","fingerfucks","fistfuck","fistfucked","fistfucker","fistfuckers","fistfucking","fistfuckings","fistfucks","flange","fook","fooker","fuck","fucka","fucked","fucker","fuckers","fu
4ckhead","fuckheads","fuckin","fucking","fuckings","fuckingshitmotherfucker","fuckme","fucks","fuckwhit","fuckwit","fudge packer","fudgepacker","fuk","fuker","fukker","fukkin","fuks","fukwhit","fukwit","fux","fux0r","f_u_c_k","gangbang","gangbanged","gangbangs","gaylord","gaysex","goatse","God","god-dam","god-damned","goddamn","goddamned","hardcoresex","hell","heshe","hoar","hoare","hoer","homo","hore","horniest","horny","hotsex","jack-off","jackoff","jap","jerk-off","jism","jiz","jizm","jizz","kawk","knob","knobead","knobed","knobend","knobhead","knobjocky","knobjokey","kock","kondum","kondums","kum","kummer","kumming","kums","kunilingus","l3i+ch","l3itch","labia","lust","lusting","m0f0","m0fo","m45terbate","ma5terb8","ma5terbate","masochist","master-bate","masterb8","masterbat*","masterbat3","masterbate","masterbation","masterbations","masturbate","mo-fo","mof0","mofo","mothafuck","mothafucka","mothafuckas","mothafuckaz","mothafucked","mothafucker","mothafuckers","mothafuckin","mothafucking","mothafuckings","mothafucks","mother fucker","motherfuck","motherfucked","motherfucker","motherfuckers","motherfuckin","motherfucking","motherfuckings","motherfuckka","motherfucks","muff","mutha","muthafecker","muthafuckker","muther","mutherfucker","n1gga","n1gger","nazi","nigg3r","nigg4h","nigga","niggah","niggas","niggaz","nigger","niggers","nob","nob jokey","nobhead","nobjocky","nobjokey","numbnuts","nutsack","orgasim","orgasims","orgasm","orgasms","p0rn","pawn","pecker","penis","penisfucker","phonesex","phuck","phuk","phuked","phuking","phukked","phukking","phuks","phuq","pigfucker","pimpis","piss","pissed","pisser","pissers","pisses","pissflaps","pissin","pissing","pissoff","poop","porn","porno","pornography","pornos","prick","pricks","pron","pube","pusse","pussi","pussies","pussy","pussys","rectum","retard","rimjaw","rimming","s hit","s.o.b.","sadist","schlong","screwing","scroat","scrote","scrotum","semen","sex","sh!+","sh!t","sh1t","shag","shagger","shaggin","shagging","shemale","shi+","shit","shitdick","shite","shited","shitey","shitfuck","shitfull","shithead","shiting","shitings","shits","shitted","shitter","shitters","shitting","shittings","shitty","skank","slut","sluts","smegma","smut","snatch","son-of-a-bitch","spac","spunk","s_h_i_t","t1tt1e5","t1tties","teets","teez","testical","testicle","tit","titfuck","tits","titt","tittie5","tittiefucker","titties","tittyfuck","tittywank","titwank","tosser","turd","tw4t","twat","twathead","twatty","twunt","twunter","v14gra","v1gra","vagina","viagra","vulva","w00se","wang","wank","wanker","wanky","whoar","whore","willies","willy","xrated","xxx"]});var lr=oe((T0,sr)=>{"use strict";sr.exports=/\b(4r5e|5h1t|5hit|a55|anal|anus|ar5e|arrse|arse|ass|ass-fucker|asses|assfucker|assfukka|asshole|assholes|asswhole|a_s_s|b!tch|b00bs|b17ch|b1tch|ballbag|balls|ballsack|bastard|beastial|beastiality|bellend|bestial|bestiality|bi\+ch|biatch|bitch|bitcher|bitchers|bitches|bitchin|bitching|bloody|blow job|blowjob|blowjobs|boiolas|bollock|bollok|boner|boob|boobs|booobs|boooobs|booooobs|booooooobs|breasts|buceta|bugger|bum|bunny fucker|butt|butthole|buttmuch|buttplug|c0ck|c0cksucker|carpet muncher|cawk|chink|cipa|cl1t|clit|clitoris|clits|cnut|cock|cock-sucker|cockface|cockhead|cockmunch|cockmuncher|cocks|cocksuck|cocksucked|cocksucker|cocksucking|c
4ocksucks|cocksuka|cocksukka|cok|cokmuncher|coksucka|coon|cox|crap|cum|cummer|cumming|cums|cumshot|cunilingus|cunillingus|cunnilingus|cunt|cuntlick|cuntlicker|cuntlicking|cunts|cyalis|cyberfuc|cyberfuck|cyberfucked|cyberfucker|cyberfuckers|cyberfucking|d1ck|damn|dick|dickhead|dildo|dildos|dink|dinks|dirsa|dlck|dog-fucker|doggin|dogging|donkeyribber|doosh|duche|dyke|ejaculate|ejaculated|ejaculates|ejaculating|ejaculatings|ejaculation|ejakulate|f u c k|f u c k e r|f4nny|fag|fagging|faggitt|faggot|faggs|fagot|fagots|fags|fanny|fannyflaps|fannyfucker|fanyy|fatass|fcuk|fcuker|fcuking|feck|fecker|felching|fellate|fellatio|fingerfuck|fingerfucked|fingerfucker|fingerfuckers|fingerfucking|fingerfucks|fistfuck|fistfucked|fistfucker|fistfuckers|fistfucking|fistfuckings|fistfucks|flange|fook|fooker|fuck|fucka|fucked|fucker|fuckers|fuckhead|fuckheads|fuckin|fucking|fuckings|fuckingshitmotherfucker|fuckme|fucks|fuckwhit|fuckwit|fudge packer|fudgepacker|fuk|fuker|fukker|fukkin|fuks|fukwhit|fukwit|fux|fux0r|f_u_c_k|gangbang|gangbanged|gangbangs|gaylord|gaysex|goatse|God|god-dam|god-damned|goddamn|goddamned|hardcoresex|hell|heshe|hoar|hoare|hoer|homo|hore|horniest|horny|hotsex|jack-off|jackoff|jap|jerk-off|jism|jiz|jizm|jizz|kawk|knob|knobead|knobed|knobend|knobhead|knobjocky|knobjokey|kock|kondum|kondums|kum|kummer|kumming|kums|kunilingus|l3i\+ch|l3itch|labia|lust|lusting|m0f0|m0fo|m45terbate|ma5terb8|ma5terbate|masochist|master-bate|masterb8|masterbat*|masterbat3|masterbate|masterbation|masterbations|masturbate|mo-fo|mof0|mofo|mothafuck|mothafucka|mothafuckas|mothafuckaz|mothafucked|mothafucker|mothafuckers|mothafuckin|mothafucking|mothafuckings|mothafucks|mother fucker|motherfuck|motherfucked|motherfucker|motherfuckers|motherfuckin|motherfucking|motherfuckings|motherfuckka|motherfucks|muff|mutha|muthafecker|muthafuckker|muther|mutherfucker|n1gga|n1gger|nazi|nigg3r|nigg4h|nigga|niggah|niggas|niggaz|nigger|niggers|nob|nob jokey|nobhead|nobjocky|nobjokey|numbnuts|nutsack|orgasim|orgasims|orgasm|orgasms|p0rn|pawn|pecker|penis|penisfucker|phonesex|phuck|phuk|phuked|phuking|phukked|phukking|phuks|phuq|pigfucker|pimpis|piss|pissed|pisser|pissers|pisses|pissflaps|pissin|pissing|pissoff|poop|porn|porno|pornography|pornos|prick|pricks|pron|pube|pusse|pussi|pussies|pussy|pussys|rectum|retard|rimjaw|rimming|s hit|s.o.b.|sadist|schlong|screwing|scroat|scrote|scrotum|semen|sex|sh!\+|sh!t|sh1t|shag|shagger|shaggin|shagging|shemale|shi\+|shit|shitdick|shite|shited|shitey|shitfuck|shitfull|shithead|shiting|shitings|shits|shitted|shitter|shitters|shitting|shittings|shitty|skank|slut|sluts|smegma|smut|snatch|son-of-a-bitch|spac|spunk|s_h_i_t|t1tt1e5|t1tties|teets|teez|testical|testicle|tit|titfuck|tits|titt|tittie5|tittiefucker|titties|tittyfuck|tittywank|titwank|tosser|turd|tw4t|twat|twathead|twatty|twunt|twunter|v14gra|v1gra|vagina|viagra|vulva|w00se|wang|wank|wanker|wanky|whoar|whore|willies|willy|xrated|xxx)\b/gi});var Wt=oe((L0,cr)=>{"use strict";cr.exports={object:or(),array:ar(),regex:lr()}});var Er=oe(()=>{"use strict"});var ae=oe((Ai,Pr)=>{"use strict";(function(r,n){typeof Ai=="object"?Pr.exports=Ai=n():typeof define=="function"&&define.amd?define([],n):r.CryptoJS=n()})(Ai,function(){var r=r||(function(n,o){var e;if(typeof window<"u"&&window.crypto&&(e=window.crypto),typeof self<"u"&&self.crypto&&(e=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(e=globalThis.crypto),!e&&typeof window<"u"&&window.msCrypto&&(e=window.msCrypto),!e&&typeof global<"u"&&global.crypto&&(e=global.crypto),!e&&typeof Ln=="function")try{e=Er()}catch{}var t=function(){if(e){if(typeof e.getRandomValues=="function")try{return e.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof e.randomBytes=="function")try{return e.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||(function(){function d(){}return function(u){var I;return d.prototype=u,I=new d,d.prototype=null,I}})(),s={},a=s.lib={},l=a.Base=(function(){return{extend:function(d){var u=i(this);return d&&u.mixIn(d),(!u.hasOwnProperty("init")||this.init===u.init)&&(u.init=function(){u.$super.init.a
4pply(this,arguments)}),u.init.prototype=u,u.$super=this,u},create:function(){var d=this.extend();return d.init.apply(d,arguments),d},init:function(){},mixIn:function(d){for(var u in d)d.hasOwnProperty(u)&&(this[u]=d[u]);d.hasOwnProperty("toString")&&(this.toString=d.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),g=a.WordArray=l.extend({init:function(d,u){d=this.words=d||[],u!=o?this.sigBytes=u:this.sigBytes=d.length*4},toString:function(d){return(d||m).stringify(this)},concat:function(d){var u=this.words,I=d.words,D=this.sigBytes,O=d.sigBytes;if(this.clamp(),D%4)for(var x=0;x<O;x++){var E=I[x>>>2]>>>24-x%4*8&255;u[D+x>>>2]|=E<<24-(D+x)%4*8}else for(var v=0;v<O;v+=4)u[D+v>>>2]=I[v>>>2];return this.sigBytes+=O,this},clamp:function(){var d=this.words,u=this.sigBytes;d[u>>>2]&=4294967295<<32-u%4*8,d.length=n.ceil(u/4)},clone:function(){var d=l.clone.call(this);return d.words=this.words.slice(0),d},random:function(d){for(var u=[],I=0;I<d;I+=4)u.push(t());return new g.init(u,d)}}),c=s.enc={},m=c.Hex={stringify:function(d){for(var u=d.words,I=d.sigBytes,D=[],O=0;O<I;O++){var x=u[O>>>2]>>>24-O%4*8&255;D.push((x>>>4).toString(16)),D.push((x&15).toString(16))}return D.join("")},parse:function(d){for(var u=d.length,I=[],D=0;D<u;D+=2)I[D>>>3]|=parseInt(d.substr(D,2),16)<<24-D%8*4;return new g.init(I,u/2)}},f=c.Latin1={stringify:function(d){for(var u=d.words,I=d.sigBytes,D=[],O=0;O<I;O++){var x=u[O>>>2]>>>24-O%4*8&255;D.push(String.fromCharCode(x))}return D.join("")},parse:function(d){for(var u=d.length,I=[],D=0;D<u;D++)I[D>>>2]|=(d.charCodeAt(D)&255)<<24-D%4*8;return new g.init(I,u)}},C=c.Utf8={stringify:function(d){try{return decodeURIComponent(escape(f.stringify(d)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(d){return f.parse(unescape(encodeURIComponent(d)))}},b=a.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new g.init,this._nDataBytes=0},_append:function(d){typeof d=="string"&&(d=C.parse(d)),this._data.concat(d),this._nDataBytes+=d.sigBytes},_process:function(d){var u,I=this._data,D=I.words,O=I.sigBytes,x=this.blockSize,E=x*4,v=O/E;d?v=n.ceil(v):v=n.max((v|0)-this._minBufferSize,0);var S=v*x,y=n.min(S*4,O);if(S){for(var w=0;w<S;w+=x)this._doProcessBlock(D,w);u=D.splice(0,S),I.sigBytes-=y}return new g.init(u,y)},clone:function(){var d=l.clone.call(this);return d._data=this._data.clone(),d},_minBufferSize:0}),P=a.Hasher=b.extend({cfg:l.extend(),init:function(d){this.cfg=this.cfg.extend(d),this.reset()},reset:function(){b.reset.call(this),this._doReset()},update:function(d){return this._append(d),this._process(),this},finalize:function(d){d&&this._append(d);var u=this._doFinalize();return u},blockSize:512/32,_createHelper:function(d){return function(u,I){return new d.init(I).finalize(u)}},_createHmacHelper:function(d){return function(u,I){return new A.HMAC.init(d,I).finalize(u)}}}),A=s.algo={};return s})(Math);return r})});var Jt=oe((Di,Ar)=>{"use strict";(function(r,n){typeof Di=="object"?Ar.exports=Di=n(ae()):typeof define=="function"&&define.amd?define(["./core"],n):n(r.CryptoJS)})(Di,function(r){return(function(n){var o=r,e=o.lib,t=e.Base,i=e.WordArray,s=o.x64={},a=s.Word=t.extend({init:function(g,c){this.high=g,this.low=c}}),l=s.WordArray=t.extend({init:function(g,c){g=this.words=g||[],c!=n?this.sigBytes=c:this.sigBytes=g.length*8},toX32:function(){for(var g=this.words,c=g.length,m=[],f=0;f<c;f++){var C=g[f];m.push(C.high),m.push(C.low)}return i.create(m,this.sigBytes)},clone:function(){for(var g=t.clone.call(this),c=g.words=this.words.slice(0),m=c.length,f=0;f<m;f++)c[f]=c[f].clone();return g}})})(),r})});var Sr=oe((Si,Dr)=>{"use strict";(function(r,n){typeof Si=="object"?Dr.exports=Si=n(ae()):typeof define=="function"&&define.amd?define(["./core"],n):n(r.CryptoJS)})(Si,function(r){return(function(){if(typeof ArrayBuffer=="function"){var n=r,o=n.lib,e=o.WordArray,t=e.init,i=e.init=function(s){if(s instanceof ArrayBuffer&&(s=new Uint8Array(s)),(s instanceof Int8Array||typeof Uint8ClampedArray<"u"&&s instanceof Uint8ClampedArray||s instanceof Int16Array||s instanceof Uint16Array||s instanceof Int32Array||s instanceof Uint32Array||s instanceof Float32Array||s instanceof Float64Array)&&(s=new Uint8Array(s.buffer,s.byteOffset,s.byteLength)),s instanceof Uint8Array){for(var a=s.byteLength,l=[],g=0;g<a;g++)l[g>>>2]|=s[g]<<24-g%4*8;t.call(this,l,a)}else t.apply(this,arguments)};i.prototype=e}})(),r.lib.WordArray})});var Ir=oe((Fi,Fr)=>{"use strict";(function(r,n){typeof Fi=="object"?Fr.exports=Fi=n(ae()):typeof define=="function"&&define.amd?define(["./core"],n):n(r.CryptoJS)})(Fi,function(r){return(function(){var n=r,o=n.lib,e=o.WordArray,t=n.enc,i=t.Utf16=t.Utf16BE={stringify:function(a){for(var l=a.words,g=a.sigBytes,c=[],m=0;m<g;m+=2){var f=l[m>>>2]>>>16-m%4*8&65535;c.push(String.fromCharCode(f))}return c.join("")},parse:function(a){for(var l=a.length,g=[],c=0;c<l;c++)g[c>>>
41]|=a.charCodeAt(c)<<16-c%2*16;return e.create(g,l*2)}};t.Utf16LE={stringify:function(a){for(var l=a.words,g=a.sigBytes,c=[],m=0;m<g;m+=2){var f=s(l[m>>>2]>>>16-m%4*8&65535);c.push(String.fromCharCode(f))}return c.join("")},parse:function(a){for(var l=a.length,g=[],c=0;c<l;c++)g[c>>>1]|=s(a.charCodeAt(c)<<16-c%2*16);return e.create(g,l*2)}};function s(a){return a<<8&4278255360|a>>>8&16711935}})(),r.enc.Utf16})});var ht=oe((Ii,Br)=>{"use strict";(function(r,n){typeof Ii=="object"?Br.exports=Ii=n(ae()):typeof define=="function"&&define.amd?define(["./core"],n):n(r.CryptoJS)})(Ii,function(r){return(function(){var n=r,o=n.lib,e=o.WordArray,t=n.enc,i=t.Base64={stringify:function(a){var l=a.words,g=a.sigBytes,c=this._map;a.clamp();for(var m=[],f=0;f<g;f+=3)for(var C=l[f>>>2]>>>24-f%4*8&255,b=l[f+1>>>2]>>>24-(f+1)%4*8&255,P=l[f+2>>>2]>>>24-(f+2)%4*8&255,A=C<<16|b<<8|P,d=0;d<4&&f+d*.75<g;d++)m.push(c.charAt(A>>>6*(3-d)&63));var u=c.charAt(64);if(u)for(;m.length%4;)m.push(u);return m.join("")},parse:function(a){var l=a.length,g=this._map,c=this._reverseMap;if(!c){c=this._reverseMap=[];for(var m=0;m<g.length;m++)c[g.charCodeAt(m)]=m}var f=g.charAt(64);if(f){var C=a.indexOf(f);C!==-1&&(l=C)}return s(a,l,c)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(a,l,g){for(var c=[],m=0,f=0;f<l;f++)if(f%4){var C=g[a.charCodeAt(f-1)]<<f%4*2,b=g[a.charCodeAt(f)]>>>6-f%4*2,P=C|b;c[m>>>2]|=P<<24-m%4*8,m++}return e.create(c,m)}})(),r.enc.Base64})});var Mr=oe((Bi,Or)=>{"use strict";(function(r,n){typeof Bi=="object"?Or.exports=Bi=n(ae()):typeof define=="function"&&define.amd?define(["./core"],n):n(r.CryptoJS)})(Bi,function(r){return(function(){var n=r,o=n.lib,e=o.WordArray,t=n.enc,i=t.Base64url={stringify:function(a,l){l===void 0&&(l=!0);var g=a.words,c=a.sigBytes,m=l?this._safe_map:this._map;a.clamp();for(var f=[],C=0;C<c;C+=3)for(var b=g[C>>>2]>>>24-C%4*8&255,P=g[C+1>>>2]>>>24-(C+1)%4*8&255,A=g[C+2>>>2]>>>24-(C+2)%4*8&255,d=b<<16|P<<8|A,u=0;u<4&&C+u*.75<c;u++)f.push(m.charAt(d>>>6*(3-u)&63));var I=m.charAt(64);if(I)for(;f.length%4;)f.push(I);return f.join("")},parse:function(a,l){l===void 0&&(l=!0);var g=a.length,c=l?this._safe_map:this._map,m=this._reverseMap;if(!m){m=this._reverseMap=[];for(var f=0;f<c.length;f++)m[c.charCodeAt(f)]=f}var C=c.charAt(64);if(C){var b=a.indexOf(C);b!==-1&&(g=b)}return s(a,g,m)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function s(a,l,g){for(var c=[],m=0,f=0;f<l;f++)if(f%4){var C=g[a.charCodeAt(f-1)]<<f%4*2,b=g[a.charCodeAt(f)]>>>6-f%4*2,P=C|b;c[m>>>2]|=P<<24-m%4*8,m++}return e.create(c,m)}})(),r.enc.Base64url})});var ut=oe((Oi,Nr)=>{"use strict";(function(r,n){typeof Oi=="object"?Nr.exports=Oi=n(ae()):typeof define=="function"&&define.amd?define(["./core"],n):n(r.CryptoJS)})(Oi,function(r){return(function(n){var o=r,e=o.lib,t=e.WordArray,i=e.Hasher,s=o.algo,a=[];(function(){for(var C=0;C<64;C++)a[C]=n.abs(n.sin(C+1))*4294967296|0})();var l=s.MD5=i.extend({_doReset:function(){this._hash=new t.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(C,b){for(var P=0;P<16;P++){var A=b+P,d=C[A];C[A]=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360}var u=this._hash.words,I=C[b+0],D=C[b+1],O=C[b+2],x=C[b+3],E=C[b+4],v=C[b+5],S=C[b+6],y=C[b+7],w=C[b+8],R=C[b+9],W=C[b+10],T=C[b+11],K=C[b+12],G=C[b+13],J=C[b+14],Z=C[b+15],N=u[0],V=u[1],j=u[2],L=u[3];N=g(N,V,j,L,I,7,a[0]),L=g(L,N,V,j,D,12,a[1]),j=g(j,L,N,V,O,17,a[2]),V=g(V,j,L,N,x,22,a[3]),N=g(N,V,j,L,E,7,a[4]),L=g(L,N,V,j,v,12,a[5]),j=g(j,L,N,V,S,17,a[6]),V=g(V,j,L,N,y,22,a[7]),N=g(N,V,j,L,w,7,a[8]),L=g(L,N,V,j,R,12,a[9]),j=g(j,L,N,V,W,17,a[10]),V=g(V,j,L,N,T,22,a[11]),N=g(N,V,j,L,K,7,a[12]),L=g(L,N,V,j,G,12,a[13]),j=g(j,L,N,V,J,17,a[14]),V=g(V,j,L,N,Z,22,a[15]),N=c(N,V,j,L,D,5,a[16]),L=c(L,N,V,j,S,9,a[17]),j=c(j,L,N,V,T,14,a[18]),V=c(V,j,L,N,I,20,a[19]),N=c(N,V,j,L,v,5,a[20]),L=c(L,N,V,j,W,9,a[21]),j=c(j,L,N,V,Z,14,a[22]),V=c(V,j,L,N,E,20,a[23]),N=c(N,V,j,L,R,5,a[24]),L=c(L,N,V,j,J,9,a[25]),j=c(j,L,N,V,x,14,a[26]),V=c(V,j,L,N,w,20,a[27]),N=c(N,V,j,L,G,5,a[28]),L=c(L,N,V,j,O,9,a[29]),j=c(j,L,N,V,y,14,a[30]),V=c(V,j,L,N,K,20,a[31]),N=m(N,V,j,L,v,4,a[32]),L=m(L,N,V,j,w,11,a[33]),j=m(j,L,N,V,T,16,a[34]),V=m(V,j,L,N,J,23,a[35]),N=m(N,V,j,L,D,4,a[36]),L=m(L,N,V,j,E,11,a[37]),j=m(j,L,N,V,y,16,a[38]),V=m(V,j,L,N,W,23,a[39]),N=m(N,V,j,L,G,4,a[40]),L=m(L,N,V,j,I,11,a[41]),j=m(j,L,N,V,x,16,a[42]),V=m(V,j,L,N,S,23,a[43]),N=m(N,V,j,L,R,4,a[44]),L=m(L,N,V,j,K,11,a[45]),j=m(j,L,N,V,Z,16,a[46]),V=m(V,j,L,N,O,23,a[47]),N=f(N,V,j,L,I,6,a[48]),L=f(L,N,V,j,y,10,a[49]),j=f(j,L,N,V,J,15,a[50]),V=f(V,j,L,N,v,21,a[51]),N=f(N,V,j,L,K,6,a[52]),L=f(L,N,V,j,x,10,a[53]),j=f(j,L,N,V,W,15,a[54]),V=f(V,j,L,N,D,21,a[55]),N=f(N,V,j,L,w,6,a[56]),L=f(L,N,V,j,Z,10,a[57]),j=f(j,L,N,V,S,15,a[58]),V=f(V,j,L,N,G,21,a[59]),N=f(N,V,j,L,E,6,a[60]),L=f(L,N,V,j,T,10,a[61]),j=f(j,L,N,V,O,15,a[62]),V=f(V,j,L,N,R,21,a[63]),u[0]=u[0]+N|0,u[1]=u[1]+V|0,u[2]=u[2]+j|0,u[3]=u[3]+L|0},_doFinalize:function(){var C=this._data,b=C.words,P=this._nDataBytes*8,A=C.sigBytes*8;b[A>>>5]|=128<<24-A%32;var d=n.floor(P/4294967296),u=P;b[(A+64>>>9<<4)+15]=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,b[(A+64>>>9<<4)+14]=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360,C.sigBytes=(b.length+1)*4,this._process();for(var I=this._hash,D=I.words,O=0;O<4;O++){var x=D[O];D[O]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360}return I},clone:function(){var C=i.clone.call(this);return C._hash=this._hash.clone(),C}});function g(C,b,P,A,d,u,I){var D=C+(b&P|~b&A)+d+I;return(D<<u|D>>>32-u)+b}function c(C,b,P,A,d,u,I){var D=C+(b&A|P&~A)+d+I;return(D<<u|D>>>32-u)+b}function m(C,b,P,A,d,u,I){var D=C+(b^P^A)+d+I;return(D<<u|D>>>32-u)+b}function f(C,b,P,A,d,u,I){var D=C+(P^(b|~A))+d+I;return(D<<u|D>>>32-u)+b}o.MD5=i._createHelper(l),o.HmacMD5=i._createHmacHelper(l)})(Math),r.MD5})});var Bn=oe((Mi,Tr)=>
4{"use strict";(function(r,n){typeof Mi=="object"?Tr.exports=Mi=n(ae()):typeof define=="function"&&define.amd?define(["./core"],n):n(r.CryptoJS)})(Mi,function(r){return(function(){var n=r,o=n.lib,e=o.WordArray,t=o.Hasher,i=n.algo,s=[],a=i.SHA1=t.extend({_doReset:function(){this._hash=new e.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(l,g){for(var c=this._hash.words,m=c[0],f=c[1],C=c[2],b=c[3],P=c[4],A=0;A<80;A++){if(A<16)s[A]=l[g+A]|0;else{var d=s[A-3]^s[A-8]^s[A-14]^s[A-16];s[A]=d<<1|d>>>31}var u=(m<<5|m>>>27)+P+s[A];A<20?u+=(f&C|~f&b)+1518500249:A<40?u+=(f^C^b)+1859775393:A<60?u+=(f&C|f&b|C&b)-1894007588:u+=(f^C^b)-899497514,P=b,b=C,C=f<<30|f>>>2,f=m,m=u}c[0]=c[0]+m|0,c[1]=c[1]+f|0,c[2]=c[2]+C|0,c[3]=c[3]+b|0,c[4]=c[4]+P|0},_doFinalize:function(){var l=this._data,g=l.words,c=this._nDataBytes*8,m=l.sigBytes*8;return g[m>>>5]|=128<<24-m%32,g[(m+64>>>9<<4)+14]=Math.floor(c/4294967296),g[(m+64>>>9<<4)+15]=c,l.sigBytes=g.length*4,this._process(),this._hash},clone:function(){var l=t.clone.call(this);return l._hash=this._hash.clone(),l}});n.SHA1=t._createHelper(a),n.HmacSHA1=t._createHmacHelper(a)})(),r.SHA1})});var Ti=oe((Ni,Lr)=>{"use strict";(function(r,n){typeof Ni=="object"?Lr.exports=Ni=n(ae()):typeof define=="function"&&define.amd?define(["./core"],n):n(r.CryptoJS)})(Ni,function(r){return(function(n){var o=r,e=o.lib,t=e.WordArray,i=e.Hasher,s=o.algo,a=[],l=[];(function(){function m(P){for(var A=n.sqrt(P),d=2;d<=A;d++)if(!(P%d))return!1;return!0}function f(P){return(P-(P|0))*4294967296|0}for(var C=2,b=0;b<64;)m(C)&&(b<8&&(a[b]=f(n.pow(C,1/2))),l[b]=f(n.pow(C,1/3)),b++),C++})();var g=[],c=s.SHA256=i.extend({_doReset:function(){this._hash=new t.init(a.slice(0))},_doProcessBlock:function(m,f){for(var C=this._hash.words,b=C[0],P=C[1],A=C[2],d=C[3],u=C[4],I=C[5],D=C[6],O=C[7],x=0;x<64;x++){if(x<16)g[x]=m[f+x]|0;else{var E=g[x-15],v=(E<<25|E>>>7)^(E<<14|E>>>18)^E>>>3,S=g[x-2],y=(S<<15|S>>>17)^(S<<13|S>>>19)^S>>>10;g[x]=v+g[x-7]+y+g[x-16]}var w=u&I^~u&D,R=b&P^b&A^P&A,W=(b<<30|b>>>2)^(b<<19|b>>>13)^(b<<10|b>>>22),T=(u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25),K=O+T+w+l[x]+g[x],G=W+R;O=D,D=I,I=u,u=d+K|0,d=A,A=P,P=b,b=K+G|0}C[0]=C[0]+b|0,C[1]=C[1]+P|0,C[2]=C[2]+A|0,C[3]=C[3]+d|0,C[4]=C[4]+u|0,C[5]=C[5]+I|0,C[6]=C[6]+D|0,C[7]=C[7]+O|0},_doFinalize:function(){var m=this._data,f=m.words,C=this._nDataBytes*8,b=m.sigBytes*8;return f[b>>>5]|=128<<24-b%32,f[(b+64>>>9<<4)+14]=n.floor(C/4294967296),f[(b+64>>>9<<4)+15]=C,m.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var m=i.clone.call(this);return m._hash=this._hash.clone(),m}});o.SHA256=i._createHelper(c),o.HmacSHA256=i._createHmacHelper(c)})(Math),r.SHA256})});var Vr=oe((Li,Rr)=>{"use strict";(function(r,n,o){typeof Li=="object"?Rr.exports=Li=n(ae(),Ti()):typeof define=="function"&&define.amd?define(["./core","./sha256"],n):n(r.CryptoJS)})(Li,function(r){return(function(){var n=r,o=n.lib,e=o.WordArray,t=n.algo,i=t.SHA256,s=t.SHA224=i.extend({_doReset:function(){this._hash=new e.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var a=i._doFinalize.call(this);return a.sigBytes-=4,a}});n.SHA224=i._createHelper(s),n.HmacSHA224=i._createHmacHelper(s)})(),r.SHA224})});var On=oe((Ri,zr)=>{"use strict";(function(r,n,o){typeof Ri=="object"?zr.exports=Ri=n(ae(),Jt()):typeof define=="function"&&define.amd?define(["./core","./x64-core"],n):n(r.CryptoJS)})(Ri,function(r){return(function(){var n=r,o=n.lib,e=o.Hasher,t=n.x64,i=t.Word,s=t.WordArray,a=n.algo;function l(){return i.create.apply(i,arguments)}var g=[l(1116352408,3609767458),l(1899447441,602891725),l(3049323471,3964484399),l(3921009573,2173295548),l(961987163,4081628472),l(1508970993,3053834265),l(2453635748,2937671579),l(2870763221,3664609560),l(3624381080,2734883394),l(310598401,1164996542),l(607225278,1323610764),l(1426881987,3590304994),l(1925078388,4068182383),l(2162078206,991336113),l(2614888103,633803317),l(3248222580,3479774868),l(3835390401,2666613458),l(4022224774,944711139),l(264347078,2341262773),l(604807628,2007800933),l(770255983,1495990901),l(1249150122,1856431235),l(1555081692,3175218132),l(1996064986,2198950837),l(2554220882,3999719339),l(2821834349,766784016),l(2952996808,2566594879),l(3210313671,3203337956),l(3336571891,1034457026),l(3584528711,2466948901),l(113926993,3758326383),l(338241895,168717936),l(666307205,1188179964),l(773529912,1546045734),l(1294757372,1522805485),l(1396182291,2643833823),l(1695183700,2343527390),l(1986661051,1014477480),l(2177026350,1206759142),l(2456956037,344077627),l(2730485921,1290863460),l(2820302411,3158454273),l(3259730800,3505952657),l(3345764771,106217008),l(3516065817,3606008344),l(3600352804,1432725776),l(4094571909,1467031594),l(275423344,851169720),l(430227734,3100823752),l(506948616,1363258195),l(659060556,3750685593),l(883997877,3785050280),l(958139571,3318307427),l(1322822218,3812723403),l(1537002063,2003034995),l(1747873779,3602036899),l(1955562222,1575990012),l(2024104815,1125592928),l(2227730452,2716904306),l(2361852424,442776044),l(2428436474,593698344),l(2756734187,3733110249),l(3204031479,2999351573),l(3329325298,3815920427),l(3391569614,3928383900),l(3515267271,566280711),l(3940187606,3454069534),l(4118630271,4000239992),l(116418474,1914138554),l(174292421,2731055270),l(289380356,3203993006),l(460393269,320620315),l(685471733,587496836),l(852142971,1086792851),l(1017036298,365543100),l(1126000580,2618297676),l(1288033470,3409855158),l(1501505948,4234509866),l(1607167915,987167468),l(18164
402316,1246189591)],c=[];(function(){for(var f=0;f<80;f++)c[f]=l()})();var m=a.SHA512=e.extend({_doReset:function(){this._hash=new s.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(f,C){for(var b=this._hash.words,P=b[0],A=b[1],d=b[2],u=b[3],I=b[4],D=b[5],O=b[6],x=b[7],E=P.high,v=P.low,S=A.high,y=A.low,w=d.high,R=d.low,W=u.high,T=u.low,K=I.high,G=I.low,J=D.high,Z=D.low,N=O.high,V=O.low,j=x.high,L=x.low,re=E,se=v,_e=S,ne=y,it=w,nt=R,yt=W,ot=T,je=K,ce=G,Qe=J,mt=Z,xt=N,$e=V,_t=j,rt=L,Ee=0;Ee<80;Ee++){var Ie,Be,gt=c[Ee];if(Ee<16)Be=gt.high=f[C+Ee*2]|0,Ie=gt.low=f[C+Ee*2+1]|0;else{var at=c[Ee-15],Ze=at.high,Ne=at.low,Xt=(Ze>>>1|Ne<<31)^(Ze>>>8|Ne<<24)^Ze>>>7,Rt=(Ne>>>1|Ze<<31)^(Ne>>>8|Ze<<24)^(Ne>>>7|Ze<<25),Oe=c[Ee-2],Te=Oe.high,et=Oe.low,kt=(Te>>>19|et<<13)^(Te<<3|et>>>29)^Te>>>6,Qt=(et>>>19|Te<<13)^(et<<3|Te>>>29)^(et>>>6|Te<<26),Vt=c[Ee-7],fn=Vt.high,Zt=Vt.low,zt=c[Ee-16],jt=zt.high,wt=zt.low;Ie=Rt+Zt,Be=Xt+fn+(Ie>>>0<Rt>>>0?1:0),Ie=Ie+Qt,Be=Be+kt+(Ie>>>0<Qt>>>0?1:0),Ie=Ie+wt,Be=Be+jt+(Ie>>>0<wt>>>0?1:0),gt.high=Be,gt.low=Ie}var Ht=je&Qe^~je&xt,ei=ce&mt^~ce&$e,hn=re&_e^re&it^_e&it,un=se&ne^se&nt^ne&nt,ti=(re>>>28|se<<4)^(re<<30|se>>>2)^(re<<25|se>>>7),Ue=(se>>>28|re<<4)^(se<<30|re>>>2)^(se<<25|re>>>7),Ut=(je>>>14|ce<<18)^(je>>>18|ce<<14)^(je<<23|ce>>>9),mn=(ce>>>14|je<<18)^(ce>>>18|je<<14)^(ce<<23|je>>>9),de=g[Ee],ii=de.high,ni=de.low,B=rt+mn,z=_t+Ut+(B>>>0<rt>>>0?1:0),B=B+ei,z=z+Ht+(B>>>0<ei>>>0?1:0),B=B+ni,z=z+ii+(B>>>0<ni>>>0?1:0),B=B+Ie,z=z+Be+(B>>>0<Ie>>>0?1:0),Q=Ue+un,te=ti+hn+(Q>>>0<Ue>>>0?1:0);_t=xt,rt=$e,xt=Qe,$e=mt,Qe=je,mt=ce,ce=ot+B|0,je=yt+z+(ce>>>0<ot>>>0?1:0)|0,yt=it,ot=nt,it=_e,nt=ne,_e=re,ne=se,se=B+Q|0,re=z+te+(se>>>0<B>>>0?1:0)|0}v=P.low=v+se,P.high=E+re+(v>>>0<se>>>0?1:0),y=A.low=y+ne,A.high=S+_e+(y>>>0<ne>>>0?1:0),R=d.low=R+nt,d.high=w+it+(R>>>0<nt>>>0?1:0),T=u.low=T+ot,u.high=W+yt+(T>>>0<ot>>>0?1:0),G=I.low=G+ce,I.high=K+je+(G>>>0<ce>>>0?1:0),Z=D.low=Z+mt,D.high=J+Qe+(Z>>>0<mt>>>0?1:0),V=O.low=V+$e,O.high=N+xt+(V>>>0<$e>>>0?1:0),L=x.low=L+rt,x.high=j+_t+(L>>>0<rt>>>0?1:0)},_doFinalize:function(){var f=this._data,C=f.words,b=this._nDataBytes*8,P=f.sigBytes*8;C[P>>>5]|=128<<24-P%32,C[(P+128>>>10<<5)+30]=Math.floor(b/4294967296),C[(P+128>>>10<<5)+31]=b,f.sigBytes=C.length*4,this._process();var A=this._hash.toX32();return A},clone:function(){var f=e.clone.call(this);return f._hash=this._hash.clone(),f},blockSize:1024/32});n.SHA512=e._createHelper(m),n.HmacSHA512=e._createHmacHelper(m)})(),r.SHA512})});var Hr=oe((Vi,jr)=>{"use strict";(function(r,n,o){typeof Vi=="object"?jr.exports=Vi=n(ae(),Jt(),On()):typeof define=="function"&&define.amd?define(["./core","./x64-core","./sha512"],n):n(r.CryptoJS)})(Vi,function(r){return(function(){var n=r,o=n.x64,e=o.Word,t=o.WordArray,i=n.algo,s=i.SHA512,a=i.SHA384=s.extend({_doReset:function(){this._hash=new t.init([new e.init(3418070365,3238371032),new e.init(1654270250,914150663),new e.init(2438529370,812702999),new e.init(355462360,4144912697),new e.init(1731405415,4290775857),new e.init(2394180231,1750603025),new e.init(3675008525,1694076839),new e.init(1203062813,3204075428)])},_doFinalize:function(){var l=s._doFinalize.call(this);return l.sigBytes-=16,l}});n.SHA384=s._createHelper(a),n.HmacSHA384=s._createHmacHelper(a)})(),r.SHA384})});var qr=oe((zi,Ur)=>{"use strict";(function(r,n,o){typeof zi=="object"?Ur.exports=zi=n(ae(),Jt()):typeof define=="function"&&define.amd?define(["./core","./x64-core"],n):n(r.CryptoJS)})(zi,function(r){return(function(n){var o=r,e=o.lib,t=e.WordArray,i=e.Hasher,s=o.x64,a=s.Word,l=o.algo,g=[],c=[],m=[];(function(){for(var b=1,P=0,A=0;A<24;A++){g[b+5*P]=(A+1)*(A+2)/2%64;var d=P%5,u=(2*b+3*P)%5;b=d,P=u}for(var b=0;b<5;b++)for(var P=0;P<5;P++)c[b+5*P]=P+(2*b+3*P)%5*5;for(var I=1,D=0;D<24;D++){for(var O=0,x=0,E=0;E<7;E++){if(I&1){var v=(1<<E)-1;v<32?x^=1<<v:O^=1<<v-32}I&128?I=I<<1^113:I<<=1}
4m[D]=a.create(O,x)}})();var f=[];(function(){for(var b=0;b<25;b++)f[b]=a.create()})();var C=l.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var b=this._state=[],P=0;P<25;P++)b[P]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(b,P){for(var A=this._state,d=this.blockSize/2,u=0;u<d;u++){var I=b[P+2*u],D=b[P+2*u+1];I=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,D=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360;var O=A[u];O.high^=D,O.low^=I}for(var x=0;x<24;x++){for(var E=0;E<5;E++){for(var v=0,S=0,y=0;y<5;y++){var O=A[E+5*y];v^=O.high,S^=O.low}var w=f[E];w.high=v,w.low=S}for(var E=0;E<5;E++)for(var R=f[(E+4)%5],W=f[(E+1)%5],T=W.high,K=W.low,v=R.high^(T<<1|K>>>31),S=R.low^(K<<1|T>>>31),y=0;y<5;y++){var O=A[E+5*y];O.high^=v,O.low^=S}for(var G=1;G<25;G++){var v,S,O=A[G],J=O.high,Z=O.low,N=g[G];N<32?(v=J<<N|Z>>>32-N,S=Z<<N|J>>>32-N):(v=Z<<N-32|J>>>64-N,S=J<<N-32|Z>>>64-N);var V=f[c[G]];V.high=v,V.low=S}var j=f[0],L=A[0];j.high=L.high,j.low=L.low;for(var E=0;E<5;E++)for(var y=0;y<5;y++){var G=E+5*y,O=A[G],re=f[G],se=f[(E+1)%5+5*y],_e=f[(E+2)%5+5*y];O.high=re.high^~se.high&_e.high,O.low=re.low^~se.low&_e.low}var O=A[0],ne=m[x];O.high^=ne.high,O.low^=ne.low}},_doFinalize:function(){var b=this._data,P=b.words,A=this._nDataBytes*8,d=b.sigBytes*8,u=this.blockSize*32;P[d>>>5]|=1<<24-d%32,P[(n.ceil((d+1)/u)*u>>>5)-1]|=128,b.sigBytes=P.length*4,this._process();for(var I=this._state,D=this.cfg.outputLength/8,O=D/8,x=[],E=0;E<O;E++){var v=I[E],S=v.high,y=v.low;S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,y=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,x.push(y),x.push(S)}return new t.init(x,D)},clone:function(){for(var b=i.clone.call(this),P=b._state=this._state.slice(0),A=0;A<25;A++)P[A]=P[A].clone();return b}});o.SHA3=i._createHelper(C),o.HmacSHA3=i._createHmacHelper(C)})(Math),r.SHA3})});var $r=oe((ji,Gr)=>{"use strict";(function(r,n){typeof ji=="object"?Gr.exports=ji=n(ae()):typeof define=="function"&&define.amd?define(["./core"],n):n(r.CryptoJS)})(ji,function(r){return(function(n){var o=r,e=o.lib,t=e.WordArray,i=e.Hasher,s=o.algo,a=t.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=t.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),g=t.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=t.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),m=t.create([0,1518500249,1859775393,2400959708,2840853838]),f=t.create([1352829926,1548603684,1836072691,2053994217,0]),C=s.RIPEMD160=i.extend({_doReset:function(){this._hash=t.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(D,O){for(var x=0;x<16;x++){var E=O+x,v=D[E];D[E]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}var S=this._hash.words,y=m.words,w=f.words,R=a.words,W=l.words,T=g.words,K=c.words,G,J,Z,N,V,j,L,re,se,_e;j=G=S[0],L=J=S[1],re=Z=S[2],se=N=S[3],_e=V=S[4];for(var ne,x=0;x<80;x+=1)ne=G+D[O+R[x]]|0,x<16?ne+=b(J,Z,N)+y[0]:x<32?ne+=P(J,Z,N)+y[1]:x<48?ne+=A(J,Z,N)+y[2]:x<64?ne+=d(J,Z,N)+y[3]:ne+=u(J,Z,N)+y[4],ne=ne|0,ne=I(ne,T[x]),ne=ne+V|0,G=V,V=N,N=I(Z,10),Z=J,J=ne,ne=j+D[O+W[x]]|0,x<16?ne+=u(L,re,se)+w[0]:x<32?ne+=d(L,re,se)+w[1]:x<48?ne+=A(L,re,se)+w[2]:x<64?ne+=P(L,re,se)+w[3]:ne+=b(L,re,se)+w[4],ne=ne|0,ne=I(ne,K[x]),ne=ne+_e|0,j=_e,_e=se,se=I(re,10),re=L,L=ne;ne=S[1]+Z+se|0,S[1]=S[2]+N+_e|0,S[2]=S[3]+V+j|0,S[3]=S[4]+G+L|0,S[4]=S[0]+J+re|0,S[0]=ne},_doFinalize:function(){var D=this._data,O=D.words,x=this._nDataBytes*8,E=D.sigBytes*8;O[E>>>5]|=128<<24-E%32,O[(E+64>>>9<<4)+14]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,D.sigBytes=(O.length+1)*4,this._process();for(var v=this._hash,S=v.words,y=0;y<5;y++){var w=S[y];S[y]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}return v},clone:function(){var D=i.clone.call(this);return D._hash=this._hash.clone(),D}});function b(D,O,x){return D^O^x}function P(D,O,x){return D&O|~D&x}function A(D,O,x){return(D|~O)^x}function d(D,O,x){return D&x|O&~x}function u(D,O,x){return D^(O|~x)}function I(D,O){return D<<O|D>>>32-O}o.RIPEMD160=i._createHelper(C),o.HmacRIPEMD160=i._createHmacHelper(C)})(Math),r.RIPEMD160})});var Ui=oe((Hi,Wr)=>{"use strict";
4(function(r,n){typeof Hi=="object"?Wr.exports=Hi=n(ae()):typeof define=="function"&&define.amd?define(["./core"],n):n(r.CryptoJS)})(Hi,function(r){(function(){var n=r,o=n.lib,e=o.Base,t=n.enc,i=t.Utf8,s=n.algo,a=s.HMAC=e.extend({init:function(l,g){l=this._hasher=new l.init,typeof g=="string"&&(g=i.parse(g));var c=l.blockSize,m=c*4;g.sigBytes>m&&(g=l.finalize(g)),g.clamp();for(var f=this._oKey=g.clone(),C=this._iKey=g.clone(),b=f.words,P=C.words,A=0;A<c;A++)b[A]^=1549556828,P[A]^=909522486;f.sigBytes=C.sigBytes=m,this.reset()},reset:function(){var l=this._hasher;l.reset(),l.update(this._iKey)},update:function(l){return this._hasher.update(l),this},finalize:function(l){var g=this._hasher,c=g.finalize(l);g.reset();var m=g.finalize(this._oKey.clone().concat(c));return m}})})()})});var Jr=oe((qi,Yr)=>{"use strict";(function(r,n,o){typeof qi=="object"?Yr.exports=qi=n(ae(),Ti(),Ui()):typeof define=="function"&&define.amd?define(["./core","./sha256","./hmac"],n):n(r.CryptoJS)})(qi,function(r){return(function(){var n=r,o=n.lib,e=o.Base,t=o.WordArray,i=n.algo,s=i.SHA256,a=i.HMAC,l=i.PBKDF2=e.extend({cfg:e.extend({keySize:128/32,hasher:s,iterations:25e4}),init:function(g){this.cfg=this.cfg.extend(g)},compute:function(g,c){for(var m=this.cfg,f=a.create(m.hasher,g),C=t.create(),b=t.create([1]),P=C.words,A=b.words,d=m.keySize,u=m.iterations;P.length<d;){var I=f.update(c).finalize(b);f.reset();for(var D=I.words,O=D.length,x=I,E=1;E<u;E++){x=f.finalize(x),f.reset();for(var v=x.words,S=0;S<O;S++)D[S]^=v[S]}C.concat(I),A[0]++}return C.sigBytes=d*4,C}});n.PBKDF2=function(g,c,m){return l.create(m).compute(g,c)}})(),r.PBKDF2})});var tt=oe((Gi,Kr)=>{"use strict";(function(r,n,o){typeof Gi=="object"?Kr.exports=Gi=n(ae(),Bn(),Ui()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],n):n(r.CryptoJS)})(Gi,function(r){return(function(){var n=r,o=n.lib,e=o.Base,t=o.WordArray,i=n.algo,s=i.MD5,a=i.EvpKDF=e.extend({cfg:e.extend({keySize:128/32,hasher:s,iterations:1}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,g){for(var c,m=this.cfg,f=m.hasher.create(),C=t.create(),b=C.words,P=m.keySize,A=m.iterations;b.length<P;){c&&f.update(c),c=f.update(l).finalize(g),f.reset();for(var d=1;d<A;d++)c=f.finalize(c),f.reset();C.concat(c)}return C.sigBytes=P*4,C}});n.EvpKDF=function(l,g,c){return a.create(c).compute(l,g)}})(),r.EvpKDF})});var we=oe(($i,Xr)=>{"use strict";(function(r,n,o){typeof $i=="object"?Xr.exports=$i=n(ae(),tt()):typeof define=="function"&&define.amd?define(["./core","./evpkdf"],n):n(r.CryptoJS)})($i,function(r){r.lib.Cipher||(function(n){var o=r,e=o.lib,t=e.Base,i=e.WordArray,s=e.BufferedBlockAlgorithm,a=o.enc,l=a.Utf8,g=a.Base64,c=o.algo,m=c.EvpKDF,f=e.Cipher=s.extend({cfg:t.extend(),createEncryptor:function(w,R){return this.create(this._ENC_XFORM_MODE,w,R)},createDecryptor:function(w,R){return this.create(this._DEC_XFORM_MODE,w,R)},init:function(w,R,W){this.cfg=this.cfg.extend(W),this._xformMode=w,this._key=R,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(w){return this._append(w),this._process()},finalize:function(w){w&&this._append(w);var R=this._doFinalize();return R},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:(function(){function w(R){return typeof R=="string"?y:E}return function(R){return{encrypt:function(W,T,K){return w(T).encrypt(R,W,T,K)},decrypt:function(W,T,K){return w(T).decrypt(R,W,T,K)}}}})()}),C=e.StreamCipher=f.extend({_doFinalize:function(){var w=this._process(!0);return w},blockSize:1}),b=o.mode={},P=e.BlockCipherMode=t.extend({createEncryptor:function(w,R){return this.Encryptor.create(w,R)},createDecryptor:function(w,R){return this.Decryptor.create(w,R)},init:function(w,R){this._cipher=w,this._iv=R}}),A=b.CBC=(function(){var w=P.extend();w.Encryptor=w.extend({processBlock:function(W,T){var K=this._cipher,G=K.blockSize;R.call(this,W,T,G),K.encryptBlock(W,T),this._prevBlock=W.slice(T,T+G)}}),w.Decryptor=w.extend({processBlock:function(W,T){var K=this._cipher,G=K.blockSize,J=W.slice(T,T+G);K.decryptBlock(W,T),R.call(this,W,T,G),this._prevBlock=J}});function R(W,T,K){var G,J=this._iv;J?(G=J,this._iv=n):G=this._prevBlock;for(var Z=0;Z<K;Z++)W[T+Z]^=G[Z]}return w})(),d=o.pad={},u=d.Pkcs7={pad:function(w,R){for(var W=R*4,T=W-w.sigBytes%W,K=T<<24|T<<16|T<<8|T,G=[],J=0;J<T;J+=4)G.push(K);var Z=i.create(G,T);w.concat(Z)},unpad:function(w){var R=w.words[w.sigBytes-1>>>2]&255;w.sigBytes-=R}},I=e.BlockCipher=f.extend({cfg:f.cfg.extend({mode:A,padding:u}),reset:function(){var w;f.reset.call(this);var R=this.cfg,W=R.iv,T=R.mode;this._xformMode==this._ENC_XFORM_MODE?w=T.createEncryptor:(w=T.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==w?this._mode.init(this,W&&W.words):(this._mode=w.call(T,this,W&&W.words),this._mode.__creator=w)},_doProcessBlock:function(w,R){this._mode.processBlock(w,R)},_doFinalize:function(){var w,R=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(R.pad(this._data,this.blockSize),w=this._process(!0)):(w=this._process(!0),R.unpad(w)),w},blockSize:128/32}),D=e.CipherParams=t.extend({init:function(w){this.mixIn(w)},toString:function(w){return(w||this.formatter).stringify(this)}}),O=o.format={},x=O.OpenSSL={stringify:function(w){var R,W=w.ciphertext,T=w.salt;
4return T?R=i.create([1398893684,1701076831]).concat(T).concat(W):R=W,R.toString(g)},parse:function(w){var R,W=g.parse(w),T=W.words;return T[0]==1398893684&&T[1]==1701076831&&(R=i.create(T.slice(2,4)),T.splice(0,4),W.sigBytes-=16),D.create({ciphertext:W,salt:R})}},E=e.SerializableCipher=t.extend({cfg:t.extend({format:x}),encrypt:function(w,R,W,T){T=this.cfg.extend(T);var K=w.createEncryptor(W,T),G=K.finalize(R),J=K.cfg;return D.create({ciphertext:G,key:W,iv:J.iv,algorithm:w,mode:J.mode,padding:J.padding,blockSize:w.blockSize,formatter:T.format})},decrypt:function(w,R,W,T){T=this.cfg.extend(T),R=this._parse(R,T.format);var K=w.createDecryptor(W,T).finalize(R.ciphertext);return K},_parse:function(w,R){return typeof w=="string"?R.parse(w,this):w}}),v=o.kdf={},S=v.OpenSSL={execute:function(w,R,W,T,K){if(T||(T=i.random(64/8)),K)var G=m.create({keySize:R+W,hasher:K}).compute(w,T);else var G=m.create({keySize:R+W}).compute(w,T);var J=i.create(G.words.slice(R),W*4);return G.sigBytes=R*4,D.create({key:G,iv:J,salt:T})}},y=e.PasswordBasedCipher=E.extend({cfg:E.cfg.extend({kdf:S}),encrypt:function(w,R,W,T){T=this.cfg.extend(T);var K=T.kdf.execute(W,w.keySize,w.ivSize,T.salt,T.hasher);T.iv=K.iv;var G=E.encrypt.call(this,w,R,K.key,T);return G.mixIn(K),G},decrypt:function(w,R,W,T){T=this.cfg.extend(T),R=this._parse(R,T.format);var K=T.kdf.execute(W,w.keySize,w.ivSize,R.salt,T.hasher);T.iv=K.iv;var G=E.decrypt.call(this,w,R,K.key,T);return G}})})()})});var Zr=oe((Wi,Qr)=>{"use strict";(function(r,n,o){typeof Wi=="object"?Qr.exports=Wi=n(ae(),we()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],n):n(r.CryptoJS)})(Wi,function(r){return r.mode.CFB=(function(){var n=r.lib.BlockCipherMode.extend();n.Encryptor=n.extend({processBlock:function(e,t){var i=this._cipher,s=i.blockSize;o.call(this,e,t,s,i),this._prevBlock=e.slice(t,t+s)}}),n.Decryptor=n.extend({processBlock:function(e,t){var i=this._cipher,s=i.blockSize,a=e.slice(t,t+s);o.call(this,e,t,s,i),this._prevBlock=a}});function o(e,t,i,s){var a,l=this._iv;l?(a=l.slice(0),this._iv=void 0):a=this._prevBlock,s.encryptBlock(a,0);for(var g=0;g<i;g++)e[t+g]^=a[g]}return n})(),r.mode.CFB})});var ta=oe((Yi,ea)=>{"use strict";(function(r,n,o){typeof Yi=="object"?ea.exports=Yi=n(ae(),we()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],n):n(r.CryptoJS)})(Yi,function(r){return r.mode.CTR=(function(){var n=r.lib.BlockCipherMode.extend(),o=n.Encryptor=n.extend({processBlock:function(e,t){var i=this._cipher,s=i.blockSize,a=this._iv,l=this._counter;a&&(l=this._counter=a.slice(0),this._iv=void 0);var g=l.slice(0);i.encryptBlock(g,0),l[s-1]=l[s-1]+1|0;for(var c=0;c<s;c++)e[t+c]^=g[c]}});return n.Decryptor=o,n})(),r.mode.CTR})});var na=oe((Ji,ia)=>{"use strict";(function(r,n,o){typeof Ji=="object"?ia.exports=Ji=n(ae(),we()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],n):n(r.CryptoJS)}
4)(Ji,function(r){return r.mode.CTRGladman=(function(){var n=r.lib.BlockCipherMode.extend();function o(i){if((i>>24&255)===255){var s=i>>16&255,a=i>>8&255,l=i&255;s===255?(s=0,a===255?(a=0,l===255?l=0:++l):++a):++s,i=0,i+=s<<16,i+=a<<8,i+=l}else i+=1<<24;return i}function e(i){return(i[0]=o(i[0]))===0&&(i[1]=o(i[1])),i}var t=n.Encryptor=n.extend({processBlock:function(i,s){var a=this._cipher,l=a.blockSize,g=this._iv,c=this._counter;g&&(c=this._counter=g.slice(0),this._iv=void 0),e(c);var m=c.slice(0);a.encryptBlock(m,0);for(var f=0;f<l;f++)i[s+f]^=m[f]}});return n.Decryptor=t,n})(),r.mode.CTRGladman})});var ra=oe((Ki,oa)=>{"use strict";(function(r,n,o){typeof Ki=="object"?oa.exports=Ki=n(ae(),we()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],n):n(r.CryptoJS)})(Ki,function(r){return r.mode.OFB=(function(){var n=r.lib.BlockCipherMode.extend(),o=n.Encryptor=n.extend({processBlock:function(e,t){var i=this._cipher,s=i.blockSize,a=this._iv,l=this._keystream;a&&(l=this._keystream=a.slice(0),this._iv=void 0),i.encryptBlock(l,0);for(var g=0;g<s;g++)e[t+g]^=l[g]}});return n.Decryptor=o,n})(),r.mode.OFB})});var sa=oe((Xi,aa)=>{"use strict";(function(r,n,o){typeof Xi=="object"?aa.exports=Xi=n(ae(),we()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],n):n(r.CryptoJS)})(Xi,function(r){return r.mode.ECB=(function(){var n=r.lib.BlockCipherMode.extend();return n.Encryptor=n.extend({processBlock:function(o,e){this._cipher.encryptBlock(o,e)}}),n.Decryptor=n.extend({processBlock:function(o,e){this._cipher.decryptBlock(o,e)}}),n})(),r.mode.ECB})});var ca=oe((Qi,la)=>{"use strict";(function(r,n,o){typeof Qi=="object"?la.exports=Qi=n(ae(),we()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],n):n(r.CryptoJS)})(Qi,function(r){return r.pad.AnsiX923={pad:function(n,o){var e=n.sigBytes,t=o*4,i=t-e%t,s=e+i-1;n.clamp(),n.words[s>>>2]|=i<<24-s%4*8,n.sigBytes+=i},unpad:function(n){var o=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=o}},r.pad.Ansix923})});var pa=oe((Zi,da)=>{"use strict";(function(r,n,o){typeof Zi=="object"?da.exports=Zi=n(ae(),we()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],n):n(r.CryptoJS)})(Zi,function(r){return r.pad.Iso10126={pad:function(n,o){var e=o*4,t=e-n.sigBytes%e;n.concat(r.lib.WordArray.random(t-1)).concat(r.lib.WordArray.create([t<<24],1))},unpad:function(n){var o=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=o}},r.pad.Iso10126})});var ha=oe((en,fa)=>{"use strict";(function(r,n,o){typeof en=="object"?fa.exports=en=n(ae(),we()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],n):n(r.CryptoJS)})(en,function(r){return r.pad.Iso97971={pad:function(n,o){n.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(n,o)},unpad:function(n){r.pad.ZeroPadding.unpad(n),n.sigBytes--}},r.pad.Iso97971})});var ma=oe((tn,ua)=>{"use strict";(function(r,n,o){typeof tn=="object"?ua.exports=tn=n(ae(),we()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],n):n(r.CryptoJS)})(tn,function(r){return r.pad.ZeroPadding={pad:function(n,o){var e=o*4;n.clamp(),n.sigBytes+=e-(n.sigBytes%e||e)},unpad:function(n){for(var o=n.words,e=n.sigBytes-1,e=n.sigBytes-1;e>=0;e--)if(o[e>>>2]>>>24-e%4*8&255){n.sigBytes=e+1;break}}},r.pad.ZeroPadding})});var ga=oe((nn,xa)=>{"use strict";(function(r,n,o){typeof nn=="object"?xa.exports=nn=n(ae(),we()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],n):n(r.CryptoJS)})(nn,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})});var ba=oe((on,va)=>{"use strict";(function(r,n,o){typeof on=="object"?va.exports=on=n(ae(),we()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],n):n(r.CryptoJS)})(on,function(r){return(function(n){var o=r,e=o.lib,t=e.CipherParams,i=o.enc,s=i.Hex,a=o.format,l=a.Hex={stringify:function(g){return g.ciphertext.toString(s)},parse:function(g){var c=s.parse(g);return t.create({ciphertext:c})}}})(),r.format.Hex})});var ya=oe((rn,Ca)=>{"use strict";(function(r,n,o){typeof rn=="object"?Ca.exports=rn=n(ae(),ht(),ut(),tt(),we()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],n):n(r.CryptoJS)})(rn,function(r){return(function(){var n=r,o=n.lib,e=o.BlockCipher,t=n.algo,i=[],s=[],a=[],l=[],g=[],c=[],m=[],f=[],C=[],b=[];(function(){for(var d=[],u=0;u<256;u++)u<128?d[u]=u<<1:d[u]=u<<1^283;for(var I=0,D=0,u=0;u<256;u++){var O=D^D<<1^D<<2^D<<3^D<<4;O=O>>>8^O&255^99,i[I]=O,s[O]=I;var x=d[I],E=d[x],v=d[E],S=d[O]*257^O*16843008;a[I]=S<<24|S>>>8,l[I]=S<<16|S>>>16,g[I]=S<<8|S>>>24,c[I]=S;var S=v*16843009^E*65537^x*257^I*16843008;m[O]=S<<24|S>>>8,f[O]=S<<16|S>>>16,C[O]=S<<8|S>>>24,b[O]=S,I?(I=x^d[d[d[v^x]]],D^=d[d[D]]):I=D=1}})();var P=[0,1,2,4,8,16,32,64,128,27,54],A=t.AES=e.extend({_doReset:function(){var d;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var u=this._keyPriorReset=this._key,I=u.words,D=u.sigBytes/4,O=this._nRounds=D+6,x=(O+1)*4,E=this._keySchedule=[],v=0;v<x;v++)v<D?E[v]=I[v]:(d=E[v-1],v%D?D>6&&v%D==4&&(d=i[d>>>24]<<24|i[d>>>16&255]<<16|i[d>>>8&255]<<8|i[d&255]):(d=d<<8|d>>>24,d=i[d>>>24]<<24|i[d>>>16&255]<<16|i[d>>>8&255]<<8|i[d&255],d^=P[v/D|0]<<24),E[v]=E[v-D]^d);for(var S=this._invKeySchedule=[],y=0;y<x;y++){var v=x-y;if(y%4)var d=E[v];else var d=E[v-4];y<4||v<=4?S[y]=d:S[y]=m[i[d>>>24]]^f[i[d>>>16&255]]^C[i[d>>>8&255]]^b[i[d&255]]}}},encryptBlock:function(d,u){this._doCryptBlock(d,u,this._keySchedule,a,l,g,c,i)},decryptBlock:function(d,u){var I=d[u+1];d[u+1]=d[u+3],d[u+3]=I,this._doCryptBlock(d,u,this._invKeySchedule,m,f,C,b,s);var I=d[u+1];d[u+1]=d[u+3],d[u+3]=I},_doCryptBlock:function(d,u,I,D,O,x,E,v){for(var S=this._nRounds,y=d[u]^I[0],w=d[u+1]^I[1],R=d[u+2]^I[2],W=d[u+3]^I[3],T=4,K=1;K<S;K++){var G=D[y>>>24]^O[w>>>16&255]^x[R>>>8&255]^E[W&255]^I[T++],J=D[w>>>24]^O[R>>>16&255]^x[W>>>8&255]^E[y&255]^I[T++],Z=D[R>>>24]^O[W>>>16&255]^x[y>>>8&255]^E[w&255]^I[T++],N=D[W>>>24]^O[y>>>16&255]^x[w>>>8&255]^E[R&255]^I[T++];y=G,w=J,R=Z,W=N}var G=(v[y>>>24]<<24|v[w>>>16&255]<<16|v[R>>>8&255]<<8|v[W&255])^I[T++],J=(v[w>>>24]<<24|v[R>>>16&255]<<16|v[W>>>8&255]<<8|v[y&255])^I[T++],Z=(v[R>>>24]<<24|v[W>>>
416&255]<<16|v[y>>>8&255]<<8|v[w&255])^I[T++],N=(v[W>>>24]<<24|v[y>>>16&255]<<16|v[w>>>8&255]<<8|v[R&255])^I[T++];d[u]=G,d[u+1]=J,d[u+2]=Z,d[u+3]=N},keySize:256/32});n.AES=e._createHelper(A)})(),r.AES})});var ka=oe((an,_a)=>{"use strict";(function(r,n,o){typeof an=="object"?_a.exports=an=n(ae(),ht(),ut(),tt(),we()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],n):n(r.CryptoJS)})(an,function(r){return(function(){var n=r,o=n.lib,e=o.WordArray,t=o.BlockCipher,i=n.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],g
vendor: 7,629 bytes, line 4
4=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],
4c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],m=i.DES=t.extend({_doReset:function(){for(var P=this._key,A=P.words,d=[],u=0;u<56;u++){var I=s[u]-1;d[u]=A[I>>>5]>>>31-I%32&1}for(var D=this._subKeys=[],O=0;O<16;O++){for(var x=D[O]=[],E=l[O],u=0;u<24;u++)x[u/6|0]|=d[(a[u]-1+E)%28]<<31-u%6,x[4+(u/6|0)]|=d[28+(a[u+24]-1+E)%28]<<31-u%6;x[0]=x[0]<<1|x[0]>>>31;for(var u=1;u<7;u++)x[u]=x[u]>>>(u-1)*4+3;x[7]=x[7]<<5|x[7]>>>27}for(var v=this._invSubKeys=[],u=0;u<16;u++)v[u]=D[15-u]},encryptBlock:function(P,A){this._doCryptBlock(P,A,this._subKeys)},decryptBlock:function(P,A){this._doCryptBlock(P,A,this._invSubKeys)},_doCryptBlock:function(P,A,d){this._lBlock=P[A],this._rBlock=P[A+1],f.call(this,4,252645135),f.call(this,16,65535),C.call(this,2,858993459),C.call(this,8,16711935),f.call(this,1,1431655765);for(var u=0;u<16;u++){for(var I=d[u],D=this._lBlock,O=this._rBlock,x=0,E=0;E<8;E++)x|=g[E][((O^I[E])&c[E])>>>0];this._lBlock=O,this._rBlock=D^x}var v=this._lBlock;this._lBlock=this._rBlock,this._rBlock=v,f.call(this,1,1431655765),C.call(this,8,16711935),C.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),P[A]=this._lBlock,P[A+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function f(P,A){var d=(this._lBlock>>>P^this._rBlock)&A;this._rBlock^=d,this._lBlock^=d<<P}function C(P,A){var d=(this._rBlock>>>P^this._lBlock)&A;this._lBlock^=d,this._rBlock^=d<<P}n.DES=t._createHelper(m);var b=i.TripleDES=t.extend({_doReset:function(){var P=this._key,A=P.words;if(A.length!==2&&A.length!==4&&A.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var d=A.slice(0,2),u=A.length<4?A.slice(0,2):A.slice(2,4),I=A.length<6?A.slice(0,2):A.slice(4,6);this._des1=m.createEncryptor(e.create(d)),this._des2=m.createEncryptor(e.create(u)),this._des3=m.createEncryptor(e.create(I))},encryptBlock:function(P,A){this._des1.encryptBlock(P,A),this._des2.decryptBlock(P,A),this._des3.encryptBlock(P,A)},decryptBlock:function(P,A){this._des3.decryptBlock(P,A),this._des2.encryptBlock(P,A),this._des1.decryptBlock(P,A)},keySize:192/32,ivSize:64/32,blockSize:64/32});n.TripleDES=t._createHelper(b)})(),r.TripleDES})});var Ea=oe((sn,wa)=>{"use strict";(function(r,n,o){typeof sn=="object"?wa.exports=sn=n(ae(),ht(),ut(),tt(),we()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],n):n(r.CryptoJS)})(sn,function(r){return(function(){var n=r,o=n.lib,e=o.StreamCipher,t=n.algo,i=t.RC4=e.extend({_doReset:function(){for(var l=this._key,g=l.words,c=l.sigBytes,m=this._S=[],f=0;f<256;f++)m[f]=f;
4for(var f=0,C=0;f<256;f++){var b=f%c,P=g[b>>>2]>>>24-b%4*8&255;C=(C+m[f]+P)%256;var A=m[f];m[f]=m[C],m[C]=A}this._i=this._j=0},_doProcessBlock:function(l,g){l[g]^=s.call(this)},keySize:256/32,ivSize:0});function s(){for(var l=this._S,g=this._i,c=this._j,m=0,f=0;f<4;f++){g=(g+1)%256,c=(c+l[g])%256;var C=l[g];l[g]=l[c],l[c]=C,m|=l[(l[g]+l[c])%256]<<24-f*8}return this._i=g,this._j=c,m}n.RC4=e._createHelper(i);var a=t.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var l=this.cfg.drop;l>0;l--)s.call(this)}});n.RC4Drop=e._createHelper(a)})(),r.RC4})});var Aa=oe((ln,Pa)=>{"use strict";(function(r,n,o){typeof ln=="object"?Pa.exports=ln=n(ae(),ht(),ut(),tt(),we()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],n):n(r.CryptoJS)})(ln,function(r){return(function(){var n=r,o=n.lib,e=o.StreamCipher,t=n.algo,i=[],s=[],a=[],l=t.Rabbit=e.extend({_doReset:function(){for(var c=this._key.words,m=this.cfg.iv,f=0;f<4;f++)c[f]=(c[f]<<8|c[f]>>>24)&16711935|(c[f]<<24|c[f]>>>8)&4278255360;var C=this._X=[c[0],c[3]<<16|c[2]>>>16,c[1],c[0]<<16|c[3]>>>16,c[2],c[1]<<16|c[0]>>>16,c[3],c[2]<<16|c[1]>>>16],b=this._C=[c[2]<<16|c[2]>>>16,c[0]&4294901760|c[1]&65535,c[3]<<16|c[3]>>>16,c[1]&4294901760|c[2]&65535,c[0]<<16|c[0]>>>16,c[2]&4294901760|c[3]&65535,c[1]<<16|c[1]>>>16,c[3]&4294901760|c[0]&65535];this._b=0;for(var f=0;f<4;f++)g.call(this);for(var f=0;f<8;f++)b[f]^=C[f+4&7];if(m){var P=m.words,A=P[0],d=P[1],u=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,I=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,D=u>>>16|I&4294901760,O=I<<16|u&65535;b[0]^=u,b[1]^=D,b[2]^=I,b[3]^=O,b[4]^=u,b[5]^=D,b[6]^=I,b[7]^=O;for(var f=0;f<4;f++)g.call(this)}},_doProcessBlock:function(c,m){var f=this._X;g.call(this),i[0]=f[0]^f[5]>>>16^f[3]<<16,i[1]=f[2]^f[7]>>>16^f[5]<<16,i[2]=f[4]^f[1]>>>16^f[7]<<16,i[3]=f[6]^f[3]>>>16^f[1]<<16;for(var C=0;C<4;C++)i[C]=(i[C]<<8|i[C]>>>24)&16711935|(i[C]<<24|i[C]>>>8)&4278255360,c[m+C]^=i[C]},blockSize:128/32,ivSize:64/32});function g(){for(var c=this._X,m=this._C,f=0;f<8;f++)s[f]=m[f];m[0]=m[0]+1295307597+this._b|0,m[1]=m[1]+3545052371+(m[0]>>>0<s[0]>>>0?1:0)|0,m[2]=m[2]+886263092+(m[1]>>>0<s[1]>>>0?1:0)|0,m[3]=m[3]+1295307597+(m[2]>>>0<s[2]>>>0?1:0)|0,m[4]=m[4]+3545052371+(m[3]>>>0<s[3]>>>0?1:0)|0,m[5]=m[5]+886263092+(m[4]>>>0<s[4]>>>0?1:0)|0,m[6]=m[6]+1295307597+(m[5]>>>0<s[5]>>>0?1:0)|0,m[7]=m[7]+3545052371+(m[6]>>>0<s[6]>>>0?1:0)|0,this._b=m[7]>>>0<s[7]>>>0?1:0;for(var f=0;f<8;f++){var C=c[f]+m[f],b=C&65535,P=C>>>16,A=((b*b>>>17)+b*P>>>15)+P*P,d=((C&4294901760)*C|0)+((C&65535)*C|0);a[f]=A^d}c[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,c[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,c[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,c[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,c[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,c[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,c[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,c[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}n.Rabbit=e._createHelper(l)})(),r.Rabbit})});var Sa=oe((cn,Da)=>{"use strict";(function(r,n,o){typeof cn=="object"?Da.exports=cn=n(ae(),ht(),ut(),tt(),we()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],n):n(r.CryptoJS)})(cn,function(r){return(function(){var n=r,o=n.lib,e=o.StreamCipher,t=n.algo,i=[],s=[],a=[],l=t.RabbitLegacy=e.extend({_doReset:function(){var c=this._key.words,m=this.cfg.iv,f=this._X=[c[0],c[3]<<16|c[2]>>>16,c[1],c[0]<<16|c[3]>>>16,c[2],c[1]<<16|c[0]>>>16,c[3],c[2]<<16|c[1]>>>16],C=this._C=[c[2]<<16|c[2]>>>16,c[0]&4294901760|c[1]&65535,c[3]<<16|c[3]>>>16,c[1]&4294901760|c[2]&65535,c[0]<<16|c[0]>>>16,c[2]&4294901760|c[3]&65535,c[1]<<16|c[1]>>>16,c[3]&4294901760|c[0]&65535];this._b=0;for(var b=0;b<4;b++)g.call(this);for(var b=0;b<8;b++)C[b]^=f[b+4&7];if(m){var P=m.words,A=P[0],d=P[1],u=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,I=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,D=u>>>16|I&4294901760,O=I<<16|u&65535;C[0]^=u,C[1]^=D,C[2]^=I,C[3]^=O,C[4]^=u,C[5]^=D,C[6]^=I,C[7]^=O;for(var b=0;b<4;b++)g.call(this)}},_doProcessBlock:function(c,m){var f=this._X;g.call(this),i[0]=f[0]^f[5]>>>16^f[3]<<16,i[1]=f[2]^f[7]>>>16^f[5]<<16,i[2]=f[4]^f[1]>>>16^f[7]<<16,i[3]=f[6]^f[3]>>>16^f[1]<<16;for(var C=0;C<4;C++)i[C]=(i[C]<<8|i[C]>>>24)&16711935|(i[C]<<24|i[C]>>>8)&4278255360,c[m+C]^=i[C]},blockSize:128/32,ivSize:64/32});function g(){for(var c=this._X,m=this._C,f=0;f<8;f++)s[f]=m[f];m[0]=m[0]+1295307597+this._b|0,m[1]=m[1]+3545052371+(m[0]>>>0<s[0]>>>0?1:0)|0,m[2]=m[2]+886263092+(m[1]>>>0<s[1]>>>0?1:0)|0,m[3]=m[3]+1295307597+(m[2]>>>0<s[2]>>>0?1:0)|0,m[4]=m[4]+3545052371+(m[3]>>>0<s[3]>>>0?1:0)|0,m[5]=m[5]+886263092+(m[4]>>>0<s[4]>>>0?1:0)|0,m[6]=m[6]+1295307597+(m[5]>>>0<s[5]>>>0?1:0)|0,m[7]=m[7]+3545052371+(m[6]>>>0<s[6]>>>0?1:0)|0,this._b=m[7]>>>0<s[7]>>>0?1:0;for(var f=0;f<8;f++){var C=c[f]+m[f],b=C&65535,P=C>>>16,A=((b*b>>>17)+b*P>>>15)+P*P,d=((C&4294901760)*C|0)+((C&65535)*C|0);a[f]=A^d}c[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,c[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,c[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,c[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,c[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,c[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,c[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,c[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}n.RabbitLegacy=e._createHelper(l)})(),r.RabbitLegacy})});var Ia=oe((dn,Fa)=>{"use strict";(function(r,n,o){typeof dn=="object"?Fa.exports=dn=n(ae(),ht(),ut(),tt(),we()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],n):n(r.CryptoJS)})(dn,function(r){return(function(){var n=r,o=n.lib,e=o.BlockCipher,t=n.algo;let i=16,s=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a
vendor: 11,038 bytes, line 4
4=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var
4l={pbox:[],sbox:[]};function g(b,P){let A=P>>24&255,d=P>>16&255,u=P>>8&255,I=P&255,D=b.sbox[0][A]+b.sbox[1][d];return D=D^b.sbox[2][u],D=D+b.sbox[3][I],D}function c(b,P,A){let d=P,u=A,I;for(let D=0;D<i;++D)d=d^b.pbox[D],u=g(b,d)^u,I=d,d=u,u=I;return I=d,d=u,u=I,u=u^b.pbox[i],d=d^b.pbox[i+1],{left:d,right:u}}function m(b,P,A){let d=P,u=A,I;for(let D=i+1;D>1;--D)d=d^b.pbox[D],u=g(b,d)^u,I=d,d=u,u=I;return I=d,d=u,u=I,u=u^b.pbox[1],d=d^b.pbox[0],{left:d,right:u}}function f(b,P,A){for(let O=0;O<4;O++){b.sbox[O]=[];for(let x=0;x<256;x++)b.sbox[O][x]=a[O][x]}let d=0;for(let O=0;O<i+2;O++)b.pbox[O]=s[O]^P[d],d++,d>=A&&(d=0);let u=0,I=0,D=0;for(let O=0;O<i+2;O+=2)D=c(b,u,I),u=D.left,I=D.right,b.pbox[O]=u,b.pbox[O+1]=I;for(let O=0;O<4;O++)for(let x=0;x<256;x+=2)D=c(b,u,I),u=D.left,I=D.right,b.sbox[O][x]=u,b.sbox[O][x+1]=I;return!0}var C=t.Blowfish=e.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var b=this._keyPriorReset=this._key,P=b.words,A=b.sigBytes/4;f(l,P,A)}},encryptBlock:function(b,P){var A=c(l,b[P],b[P+1]);b[P]=A.left,b[P+1]=A.right},decryptBlock:function(b,P){var A=m(l,b[P],b[P+1]);b[P]=A.left,b[P+1]=A.right},blockSize:64/32,keySize:128/32,ivSize:64/32});n.Blowfish=e._createHelper(C)})(),r.Blowfish})});var Oa=oe((pn,Ba)=>{"use strict";(function(r,n,o){typeof pn=="object"?Ba.exports=pn=n(ae(),Jt(),Sr(),Ir(),ht(),Mr(),ut(),Bn(),Ti(),Vr(),On(),Hr(),qr(),$r(),Ui(),Jr(),tt(),we(),Zr(),ta(),na(),ra(),sa(),ca(),pa(),ha(),ma(),ga(),ba(),ya(),ka(),Ea(),Aa(),Sa(),Ia()):typeof define=="function"&&define.amd?define(["./core","./x64-core","./lib-typedarrays","./enc-utf16","./enc-base64","./enc-base64url","./md5","./sha1","./sha256","./sha224","./sha512","./sha384","./sha3","./ripemd160","./hmac","./pbkdf2","./evpkdf","./cipher-core","./mode-cfb","./mode-ctr","./mode-ctr-gladman","./mode-ofb","./mode-ecb","./pad-ansix923","./pad-iso10126","./pad-iso97971","./pad-zeropadding","./pad-nopadding","./format-hex","./aes","./tripledes","./rc4","./rabbit","./rabbit-legacy","./blowfish"],n):r.CryptoJS=n(r.CryptoJS)})(pn,function(r){return r})});var An=(()=>{let n=class n{constructor(e,t,i){this.ipsService=e,this.sharedService=t,this.userDataService=i,this.fancode="",this.isYouth=!1,this.dob=new Date}resolve(e,t){return this.userDataService.getUserDetails(),e.queryParamMap.get("childAccount")?(this.sharedService.childFancode=e.queryParamMap.get("childAccount")??"",this.fancode=this.sharedService.childFancode,this.getLinkedAccount=this.ipsService.getChildLinkedAccounts(this.fancode).pipe(qt(i=>i),gn(i=>xn({error:i})))):(this.fancode=this.sharedService.fanCode,this.getLinkedAccount=this.ipsService.getLinkedAccounts(this.fancode).pipe(qt(i=>i),gn(i=>xn({error:i})))),this.getLinkedAccount}};n.\u0275fac=function(t){return new(t||n)(De(Se),De(xe),De(Po))},n.\u0275prov=Le({token:n,factory:n.\u0275fac,providedIn:"root"});let r=n;return r})();var ft=(()=>{let n=class n{constructor(e,t){this.http=e,this.sharedService=t,this.apiEndPoints=be.apiEndPoints}downloadImage(e){let t={headers:new ue({"Content-Type":"application/json"})};return this.sharedService.isChildAccount==="true"?this.http.get(this.apiEndPoints.serverUrl+this.apiEndPoints.services.mediaService+this.apiEndPoints.endpoints.childDownloadImageApiUrl+"?fanCode="+e,t):this.http.get(this.apiEndPoints.serverUrl+this.apiEndPoints.services.mediaService+this.apiEndPoints.endpoints.downloadImageApiUrl+"?fanCode="+e,t)}deleteImage(e){let t={headers:new ue({"Content-Type":"application/json"})};return this.sharedService.isChildAccount==="true"?this.http.delete(this.apiEndPoints.serverUrl+this.apiEndPoints.services.mediaService+this.apiEndPoints.endpoints.childDeleteImageApiUrl+"?fanCode="+e,t):this.http.delete(this.apiEndPoints.serverUrl+this.apiEndPoints.services.mediaService+this.apiEndPoints.endpoints.deleteImageApiUrl+"?fanCode="+e,t)}uploadImage(e){let t={headers:new ue({"Content-Type":"application/json"})};return this.sharedService.isChildAccount==="true"?this.http.post(this.apiEndPoints.serverUrl+this.apiEndPoints.services.mediaService+this.apiEndPoints.endpoints.childUploadImageApiUrl,e,t):this.http.post(this.apiEndPoints.serverUrl+this.apiEndPoints.services.mediaService+this.apiEndPoints.endpoints.uploadImageApiUrl,e,t)}parentDownloadImage(e,t){let i={headers:new ue({"Content-Type":"application/json"})};return this.http.get(this.apiEndPoints.serverUrl+this.apiEndPoints.services.mediaService+this.apiEndPoints.endpoints.childDownloadImageApiUrl+"?fanCode="+e+"&linkedFanCode="+t,i)}childDownloadImage(e){let t={headers:new ue({"Content-Type":"application/json"})};return this.http.get(this.apiEndPoints.serverUrl+this.apiEndPoints.services.mediaService+this.apiEndPoints.endpoints.childDownloadImageApiUrl+"?fanCode="+e,t)}childDeleteImage(e){let t={headers:new ue({"Content-Type":"application/json"})};return this.http.delete(this.apiEndPoints.serverUrl+this.apiEndPoints.services.mediaService+this.apiEndPoints.endpoints.childDeleteImageApiUrl+"?fanCode="+e,t)}childUploadImage(e){let t={headers:new ue({"Content-Type":"application/json"})};return this.http.post(this.apiEndPoints.serverUrl+this.apiEndPoints.services.mediaService+this.apiEndPoints.endpoints.childUploadImageApiUrl,e,t)}getMembershipDetails(e){let t={headers:new ue({"Content-Type":"application/json"})};return this.http.get(this.apiEndPoints.serverUrl+this.apiEndPoints.services.mediaService+this.apiEndPoints.endpoints.fetchmembershipsApiUrl+"?fanCode="+e,t)}};n.\u0275fac=function(t){return new(t||n)(De(Je),De(xe))},n.\u0275prov=Le({token:n,factory:n.\u0275fac,providedIn:"root"});let r=n;return r})();var Xo=oi(Ko());var bi=class{};var Ci=(()=>{let n=class n{constructor(e){this.http=e,this.config=be.apiEndPoints,this.playerRegServerUrl=this.config.serverUrl+this.config.services.playerReg,this.consentApi=this.playerRegServerUrl+this.config.endpoints.consentApi}getConsent(e){let t={headers:new ue({"Content-Type":"application/json","Cache-Control":"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})};return this.http.get(`${this.consentApi}/${e}/consents`,t)}isPhotoLock(e){let t=`${this.playerRegServerUrl}v1/players/${e}/registration`,i={headers:new ue({"Content-Type":"application/json"})};return this.http.head(t,i)}};n.\u0275fac=function(t){return new(t||n)(De(Je))},n.\u0275prov=Le({token:n,factory:n.\u0275fac,providedIn:"root"});let r=n;return r})();function ja(r,n){if(r&1){let o=ee();p(0,"a",19),q("keypress",function(t){H(o);let i=F();return U(i.openDialogOnKeyPress(t,"photo-edit"))})("click",function(){H(o);let t=F();return U(t.openPhotoEditDialog())}),h()}}function Ha(r,n){if(r&1){let o=ee();p(0,"a",20),q("keypress",function(){H(o);let t=F();return U(t.showProfileInfo=!0)})("click",function(){H(o);let t=F();return U(t.showProfileInfo=!0)}),h()}}function Ua(r,n){if(r&1){let o=ee();p(0,"div",21)(1,"p",22),_(2,"Sorry, you cannot change or remove your photo because it is currently associated to an active league registration. Please contact your Club or
4County FA if you have any queries."),ie(3,"br")(4,"br"),h(),p(5,"button",23),q("click",function(t){H(o);let i=F();return i.showProfileInfo=!1,U(i.closeTooltip(t))})("keypress",function(t){H(o);let i=F();return i.closeTooltipTab(t),U(i.showProfileInfo=!1)}),_(6,"GOT IT"),h()()}}function qa(r,n){if(r&1){let o=ee();p(0,"a",24),q("keypress",function(t){H(o);let i=F();return U(i.openDialogOnKeyPress(t,"name-edit"))})("click",function(){H(o);let t=F();return U(t.openNameEditDialog())}),h()}}function Ga(r,n){if(r&1&&(p(0,"div"),_(1),ve(2,"date"),h()),r&2){let o=F();k(),he(ai(2,1,o.individualProfile.DateOfBirth,"d MMMM yyyy"))}}function $a(r,n){if(r&1){let o=ee();p(0,"div")(1,"label",25),_(2,"Missing"),h(),p(3,"a",26),q("keypress",function(t){H(o);let i=F();return U(i.openDialogOnKeyPress(t,"dob-edit"))})("click",function(){H(o);let t=F();return U(t.openDobEditDialog())}),_(4,"Add\xA0\xA0Now"),h()()}}function Wa(r,n){if(r&1){let o=ee();p(0,"div",27)(1,"p",22),_(2,"Caps are loyalty points awarded to members of the England Supporters Club and England Supporters Travel Club for attending an England Men's Senior friendly or qualifier using tickets purchased from The FA."),ie(3,"br")(4,"br"),h(),p(5,"button",28),q("click",function(t){H(o);let i=F();return i.showCaps=!1,U(i.closeTooltip(t))})("keypress",function(t){H(o);let i=F();return i.closeTooltipTab(t),U(i.showCaps=!1)}),_(6,"GOT IT"),h()()}}var Qo=(()=>{let n=class n{clickout(e){var t=this;e.target.className!="note-info capsInfo"&&e.target.className.indexOf("caps-info-tooltip")==-1&&e.target.tagName.toLowerCase()!="p"&&this.showCaps&&(this.showCaps=!1),$(e.target).is(".padLock_Profile-tooltip")===!1&&$(e.target).is(".padLock_Profile-tooltip p")===!1&&$(e.target).is("a.padLock_Profile")===!1&&t.showProfileInfo&&(t.showProfileInfo=!1)}constructor(e,t,i,s,a,l){this.injector=e,this.ipsService=t,this.formBuilder=i,this.checkYouthService=s,this.dialog=a,this.document=l,this.caps=new bi,this.capsTableUrl="",this.addNoteFormControl=new Me("",[Ve.required,Ve.maxLength(999)]),this.showProfileInfo=!1,this.showDOB=!1,this.oldName={firstName:"",middleName:"",lastName:""},this.showNameEditError=!1,this.nameEditErrorMessage="",this.nameEditErrorMessageMobile="",this.photoInvalidContent="Please ensure that you are trying to upload a good quality photo which clearly shows your face (and doesn\u2019t include more than one person). Also, please ensure that the photo is in a standard image format (jpg, jpeg, png or gif) and is no more than 10mb in size.",this.photoUploadError="Unable to upload photo. Please try again later",this.days=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31],this.months=["January","February","March","April","May","June","July","August","September","October","November","December"],this.years=[],this.showCaps=!1,this.imageTypes=["gif","jpg","png","jpeg","jpe","jif","jfif","jfi"],this.subscription=new Rn,this.outputData=new Pt,this.fullName="",this.fan=-1,this.dob="",this.angle=90,this.dobError=!1,this.noLengthyCharacter=!1,this.crsService=e.get(Ao),this.successPopupService=e.get(Ke),this.getFullNameService=e.get(Ge),this.mediaService=e.get(ft),this.notificationService=e.get(Tt),this.playerRegService=e.get(Ci),this.dynamicStyleLoaderService=e.get(Fe),this.sharedService=e.get(xe),this.dobForm=this.formBuilder.group({day:"dd",month:"month",year:"yyyy"})}ngOnInit(){this.setYearTrack(),this.capsTableUrl=be.apiEndPoints.endpoints.capsTableUrl,this.getCaps(this.individualProfile.Fan.toString())}ngOnChanges(e){e.individualProfile&&(this.individualProfile!=null&&this.individualProfile!=null&&(this.fullName=this.getFullNameService.setFullName(this.individualProfile.FirstName,this.individualProfile.MiddleName,this.individualProfile.LastName),this.createNameEditControls(),this.storeOldNameObject(),this.checkDateOfBirth(e.individualProfile)),this.loadProfilePicture(),this.capsTableUrl=be.apiEndPoints.endpoints.capsTableUrl,this.getCaps(this.individualProfile.Fan.toString())),$(".name-input-field").on("blur",function(){$(".name-input-field").closest("div").find("span").show()}),$(".name-input-field").on("focus",function(){$(".name-input-field").closest("div").find("span").hide()})}editIconClickHandler(e){$(e.target).closest("div").find("input").focus(),$(e.target).hide()}createNameEditControls(){function e(t){t=t.toLowerCase();let i=t.trim().split(" ");for(let s=0;s<i.length;s++)i[s]!=""&&i[s]!=null&&(i[s]=i[s][0].toUpperCase()+i[s].substr(1));return i.join(" ")}this.fullNameToEdit=this.formBuilder.group({firstName:this.individualProfile.FirstName!==null&&this.individualProfile.FirstName!=""?e(this.individualProfile.FirstName):"",middleName:this.individualProfile.MiddleName!==null&&this.individualProfile.MiddleName!=""?e(this.individualProfile.MiddleName):"",lastName:this.individualProfile.LastName!==null&&this.individualProfile.LastName!=""?e(this.individualProfile.LastName):""})}storeOldNameObject(){this.oldName.firstName=this.individualProfile.FirstName,this.oldName.middleName=this.individualProfile.MiddleName,this.oldName.lastName=this.individualProfile.LastName}saveFullName(){let e={FanCode:this.individualProfile.Fan,FirstName:this.fullNameToEdit.value.firstName!==""?this.fullNameToEdit.value.firstName.trim():null,MiddleName:this.fullNameToEdit.value.middleName!==""?this.fullNameToEdit.value.middleName.trim():null,LastName:this.fullNameToEdit.value.lastName!==""?this.fullNameToEdit.value.lastName.trim():null,OldFirstName:this.oldName.firstName,OldMiddleName:this.oldName.middleName,OldLastName:this.oldName.lastName};this.oldName.firstName==e.FirstName&&this.oldName.middleName==e.MiddleName&&this.oldName.lastName==e.LastName||this.saveFullNameToDB(e)}saveFullNameToDB(e){this.ipsService.saveNameByFuzzySearch(e).subscribe(()=>{this.dialogInstance.close(),this.successPopupService.setSuccessMessage("Changes saved"),this.successPopupService.show(),this.individualProfile.FirstName=e.FirstName,this.individualProfile.MiddleName=e.MiddleName,this.individualProfile.LastName=e.LastName,this.fullName=this.getFullNameService.setFullName(this.individualProfile.FirstName,this.individualProfile.MiddleName,this.individualProfile.LastName),this.createNameEditControls(),this.storeOldNameObject(),this.getFullNameService.getNameChangeSubject().next(e)},()=>{this.nameEditErrorMessage='We are unable to make your requested changes automatically. To submit a request to update <span class="error-message"><u>YOUR</u></span> name, update and <span class="error-message">Submit</span>
4. Please note that FANs are non-transferable so this should only be to update an account and not to change the owner of the FAN. To change details on a child account, click <span class="error-message">Help?</span> for guidance.',this.nameEditErrorMessageMobile=`<p style='margin-bottom:20px'>We are unable to make your requested changes automatically.</p><p> To submit a request to update <span class="error-message"><u>YOUR</u></span> name, update and <span class="error-message">Submit</span>.</p><p>Please note that FANs are non-transferable so this should only be to update an account and not to change the owner of the FAN.</p><p>To change details on a child account, click <span class="error-message">Help?</span> for guidance. </p>`,this.showNameEditError=!0})}onNameEditPopupClose(){this.dialogInstance.close(),this.showNameEditError=!1,this.createNameEditControls()}setYearTrack(){let t=new Date().getFullYear();for(let i=t;i>=t-100;i--)this.years.push(i)}onNameInputKeyPress(e){return/[a-zA-Z ]/.test(e.key)?!0:(e.preventDefault(),!1)}onPaste(e){let i=e.clipboardData.getData("text"),s=/^[a-z][a-z\s]*$/;return i.match(s)?!0:(e.preventDefault(),!1)}closeDobDialog(){this.onDateInput(),this.dialogInstance.close()}onDateInput(){this.dobError=!1}closeTooltip(e){e.target.offsetParent.previousElementSibling.focus()}closeTooltipTab(e){(e.keyCode==13||e.which==13)&&e.target.offsetParent.previousElementSibling.focus()}checkDateOfBirth(e){this.showDOB=!1,e.currentValue.DateOfBirth&&new Date(e.currentValue.DateOfBirth).getFullYear()===1900&&(this.showDOB=!0),(e.currentValue.DateOfBirth==null||e.currentValue.DateOfBirth=="")&&(this.showDOB=!0)}editDateOfBirth(){this.validDateEntered()?this.ipsService.UpdateDateOfBirth(this.dobForm.value).subscribe(()=>{(this.sharedService.isChildAccount==="true"?this.ipsService.getChildIndividualProfile(this.sharedService.childFancode):this.ipsService.getIndividualProfile(this.sharedService.fanCode)).subscribe(t=>{this.individualProfile.DateOfBirth=t.DateOfBirth,this.showDOB=!1,this.outputData.emit("Success"),this.dialogInstance.close(),this.dobForm.reset(),this.successPopupService.setSuccessMessage("Your Date of Birth is Updated"),this.successPopupService.show()})},()=>{this.dobError=!0}):this.dobError=!0}addDobga(){window.dataLayer.push({event:"add-label",generalData:"add date of birth"})}editNameGA(){window.dataLayer.push({event:"edit-labels",generalData:"update note to cfa"})}validDateEntered(){let e=new Date,t,i=e.getDate(),s=e.getMonth()+1,a=e.getFullYear();return this.dobForm.value.day!="dd"&&this.dobForm.value.month!="month"&&this.dobForm.value.year!="yyyy"?this.dobForm.value.year==a&&(this.dobForm.value.month>s||this.dobForm.value.month==s&&this.dobForm.value.day>i)?t=!1:t=!0:t=!1,t}checkProfilePicture(e,t){e.FileData?(t.src="data:image/png;base64,"+e.FileData,this.lockProfile&&this.outputData.emit("checkPhoto")):(t.src="/assets/account-management/images/icons/noun_profile.svg",this.lockProfile=!1)}setProfilePictureOnChange(e){this.imageResponse=e;let t=document.getElementById("profileImg");this.checkProfilePicture(e,t),this.showUploadSuccessMessage(),this.lockProfile=this.activeLeagueMember}resetProfilePictureOnError(){let e=document.getElementById("profileImg");e.src="/assets/account-management/images/icons/noun_profile.svg",this.imageResponse=""}loadProfilePicture(){this.individualProfile.Fan&&this.mediaService.downloadImage(this.individualProfile.Fan).subscribe(e=>{if(e){this.imageResponse=e;let t=document.getElementById("profileImg");this.checkProfilePicture(e,t),this.checkLockProfileImage(!0)}else this.resetProfilePictureOnError(),this.checkLockProfileImage(!1)})}deletePic(){if(document.getElementById("my-image"))document.getElementById("my-image").src="";else{var e=document.getElementsByClassName("cropme-wrapper")[0];e.getElementsByTagName("img")[0].src=""}this.mediaService.deleteImage(this.individualProfile.Fan).subscribe(()=>{this.loadProfilePicture(),this.sharedService.isChildAccount=="true"?this.successPopupService.setSuccessMessage("Your child's photo has been deleted"):this.successPopupService.setSuccessMessage("Your photo has been deleted"),this.successPopupService.show()},t=>{console.log(t)}),this.dialogInstance.close()}allowDrop(e){e.preventDefault()}drop(e){e.preventDefault(),console.log(e);var t=e.dataTransfer.files[0],i=new FileReader,s=this;i.onload=(function(a){return function(l){if(document.getElementById("my-image"))document.getElementById("my-image").src=l.target.result,document.getElementById("zoom-slider").value=s.cropme.properties.scale,document.getElementById("zoom-value").innerHTML=document.getElementById("zoom-slider").value,document.getElementById("rotation-sli
4der").value="0",document.getElementById("rotate-value").innerHTML="0°";else{var g=document.getElementsByClassName("cropme-wrapper")[0];g.getElementsByTagName("img")[0].src=l.target.result,document.getElementById("zoom-slider").value=s.cropme.properties.scale,document.getElementById("zoom-value").innerHTML=document.getElementById("zoom-slider").value,document.getElementById("rotation-slider").value="0",document.getElementById("rotate-value").innerHTML="0°"}}})(t),i.readAsDataURL(t)}crop(){var e=this;this.cropme.crop().then(function(t){var i={FanCode:e.individualProfile.Fan,PhotoTypeId:1,PhotoTypeDescription:"Individual",FileName:e.fileName,FileData:t.split("base64,")[1],IndividualProfilePhotoId:e.imageResponse.IndividualProfilePhotoId?e.imageResponse.IndividualProfilePhotoId:0,ApplicationName:"AM"};e.mediaService.uploadImage(i).subscribe(s=>{e.dialogInstance.close(),$("#upload-profile-photo").val(""),$("#again-upload-profile-photo").val(""),i.IndividualProfilePhotoId=s.IndividualProfilePhotoId,e.setProfilePictureOnChange(i)},s=>{s.error.ErrorCode=="400_INVALID_CONTENT"||s.error.ErrorCode=="403_IMPROPER_SIZE_IMAGE"||s.error.ErrorCode=="403_MULTIPLE_FACES"?document.getElementById("warning-text").innerText=s.error.ErrorDescription:document.getElementById("warning-text").innerText=e.photoUploadError,document.getElementById("warning-popup").style.display="block",e.resetProfilePictureOnError()})})}showUploadSuccessMessage(){this.sharedService.isChildAccount=="true"?this.successPopupService.setSuccessMessage("Your child's photo has been added"):this.successPopupService.setSuccessMessage("Your photo has been added"),this.successPopupService.show()}reset(){this.dialogInstance.close(),$("#upload-profile-photo").val(""),$("#again-upload-profile-photo").val("")}showBrowsePanel(){window.dataLayer.push({event:"edit-labels",generalData:"Browse for Photo"}),$("#profile-editpic-panel").hide(),$("#profile-browse-panel").show(),$(".profile-photo-header .save-button").hide(),this.imageResponse==""?($(".browse-block").show(),$(".image-display").hide()):($(".image-display").show(),$(".browse-block").hide())}checkLockProfileImage(e){this.playerRegService.isPhotoLock(this.individualProfile.Fan).subscribe(i=>{e?this.lockProfile=!0:this.lockProfile=!1,this.activeLeagueMember=!0},i=>{i.status===400?(this.lockProfile=!1,this.activeLeagueMember=!1):console.error(`something went wrong at ${i.url}`)})}openDialogOnKeyPress(e,t){if(e.keyCode===13||e.which===13)switch(t){case"name-edit":this.openNameEditDialog();break;case"photo-edit":this.openPhotoEditDialog();break;case"dob-edit":this.openDobEditDialog();break}}openNameEditDialog(){this.editNameGA(),this.dynamicStyleLoaderService.attachDialogStyles(),delete this.dialogInstance,this.dialogInstance=this.dialog.open(So,{width:"60%",position:{top:"25px"},disableClose:!0,data:{parentInstance:this}}),this.dialogInstance.afterClosed().subscribe(()=>{this.addNoteFormControl.reset(),this.noLengthyCharacter=!1,this.dynamicStyleLoaderService.removeDialogStyles()})}openPhotoEditDialog(){this.dynamicStyleLoaderService.attachDialogStyles(),delete this.dialogInstance,this.dialogInstance=this.dialog.open(Fo,{width:"60%",position:{top:"25px"},disableClose:!0,data:{parentInstance:this}}),this.dialogInstance.afterClosed().subscribe(()=>{this.dynamicStyleLoaderService.removeDialogStyles()})}openDobEditDialog(){this.addDobga(),this.dynamicStyleLoaderService.attachDialogStyles(),delete this.dialogInstance,this.dialogInstance=this.dialog.open(Io,{width:"60%",position:{top:"25px"},disableClose:!0,data:{parentInstance:this}}),this.dialogInstance.afterClosed().subscribe(()=>{this.dobForm.reset(),this.dobForm.controls.day.setValue("dd"),this.dobForm.controls.month.setValue("month"),this.dobForm.controls.year.setValue("yyyy"),this.dobError=!1,this.dynamicStyleLoaderService.removeDialogStyles()})}createImageElement(){if(document.getElementById("div1").getElementsByClassName("cropme-wrapper")){var e=document.getElementById("div1").getElementsByClassName("cropme-wrapper");if(e.length>0){e[0].remove();var t=document.getElementById("div1");let i=document.createElement("img");i.setAttribute("id","my-image"),t.appendChild(i)}}}createCropmeInstance(e){if(document.getElementById("my-image")){var t=document.getElementById("my-image");this.cropme=new Xo.default(t,{container:{width:500,height:400},viewport:{width:150,height:150,type:"rectangle",border:{width:2,enable:!0,color:"#fff"}},zoom:{enable:!0,mouseWheel:!0,slider:!1,min:.05,max:1.5},transformOrigin:"viewport"}),this.transform(),document.getElementById("zoom-slider").value=e.cropme.properties.scale,document.getElementById("zoom-value").innerHTML=document.getElementById("zoom-slider").value;var i=function(a){a.preventDefault();var l=e.cropme.properties.scale+a.wheelDelta/1200*e.cropme.properties.scale;if(l>e.cropme.options.zoom.min&&l<e.cropme.options.zoom.max&&e.cropme.options.zoom.mouseWheel&&e.cropme.options.zoom.enable){document.getElementById("zoom-slider").value=l,document.getElementById("zoom-value").innerHTML=document.getElementById("zoom-slider").value,e.cropme.properties.scale=l,e.cropme.properties.image.style.transform=e.transform();var g=parseFloat(document.getElementById("zoom-slider").value)/15.67*1e3;document.getElementById("zoom-highlight").style.width=g.toFixed().toString()+"%"}};e.cropme.properties.container.addEventListener("mousewheel",i)}}changeSrcFile(e){var t=e.target.files[0];this.fileName=t.name;let i,s;var a=t.name.substring(t.name.lastIndexOf(".")+1).toLowerCase();if(this.imageTypes.indexOf(a)>-1)if(t.size<1e7){let m=function(f){document.getElementById("zoom-slider").value="
40.8",document.getElementById("zoom-highlight").style.width=f.toFixed().toString()+"%",l.cropme.properties.scale=parseFloat(document.getElementById("zoom-slider").value),l.cropme.properties.image.style.transform=l.transform(),document.getElementById("zoom-value").innerHTML=document.getElementById("zoom-slider").value,document.getElementById("rotation-slider").value="0",document.getElementById("rotate-value").innerHTML="0°"};var c=m;$("#profile-editpic-panel").show(),window.screen.width<768&&$(".profile-photo-header .save-button").show(),$("#profile-browse-panel").hide(),$(".browse-block").hide(),$(".image-display").hide();var l=this;this.createImageElement(),this.createCropmeInstance(l),t=e.target.files[0];var g=new FileReader;g.onload=(function(f){return function(C){var b=parseFloat(document.getElementById("zoom-slider").value)/15.67*1e3,P=document.getElementsByClassName("cropme-wrapper")[0];document.getElementById("my-image")?(document.getElementById("my-image").src=C.target.result,m(b)):(P=document.getElementsByClassName("cropme-wrapper")[0],P.getElementsByTagName("img")[0].src=C.target.result,m(b));var A=new Image;A.src=window.URL.createObjectURL(t),$(A).one("load",function(){setTimeout(function(){P=document.getElementsByClassName("cropme-wrapper")[0];let d=P.getElementsByTagName("img")[0].style.transform;document.getElementById("zoom-slider").value=d.split("scale(")[1].split(")")[0],b=parseFloat(document.getElementById("zoom-slider").value)/15.67*1e3,document.getElementById("zoom-highlight").style.width=b.toFixed().toString()+"%",l.cropme.properties.scale=parseFloat(document.getElementById("zoom-slider").value),l.cropme.properties.image.style.transform=l.transform(),document.getElementById("zoom-value").innerHTML=document.getElementById("zoom-slider").value,document.getElementById("rotation-slider").value="0",document.getElementById("rotate-value").innerHTML="0°",window.URL.revokeObjectURL(A.src)},100)})}})(t),g.readAsDataURL(t)}else document.getElementById("warning-text").innerText=this.photoInvalidContent,document.getElementById("warning-popup").style.display="block";else document.getElementById("warning-text").innerText=this.photoInvalidContent,document.getElementById("warning-popup").style.display="block"}closeWarning(){document.getElementById("warning-popup").style.display="none",document.getElementById("upload-profile-photo").value=""}transform(){var e=this;return"translate("+e.cropme.properties.x+"px,"+e.cropme.properties.y+"px) scale("+e.cropme.properties.scale+") rotate("+e.cropme.properties.deg+"deg)"}onRotate(e){var t=this;t.cropme.rotate(e.target.value),document.getElementById("rotate-value").innerHTML=e.target.value+"°",t.highlightSlider(document.getElementById("rotation-slider").value)}onZoom(e){var t=this;t.cropme.properties.scale=parseFloat(e.target.value),t.cropme.properties.image.style.transform=t.transform(),document.getElementById("zoom-value").innerHTML=document.getElementById("zoom-slider").value,console.log(parseInt(document.getElementById("zoom-slider").value));var i=parseFloat(document.getElementById("zoom-slider").value)/15.67*1e3;document.getElementById("zoom-highlight").style.width=i.toFixed().toString()+"%"}rotate90(){this.cropme.rotate(this.angle),this.angle!=360?this.angle=this.angle+90:this.angle=90}highlightSlider(e){let t={0:"49.5%",10:"55%",20:"60.5%",30:"66%",40:"71.5%",50:"77%",60:"82.5%",70:"88%",80:"93.5%",90:"99%","-10":"44%","-20":"38.5%","-30":"33%","-40":"27.5%","-50":"22%","-60":"16.5%","-70":"11%","-80":"5.5%","-90":"0%"};document.getElementById("rotate-highlight").style.width=t[e]}getCaps(e){this.subscription=this.crsService.getCaps(e).subscribe(t=>{this.caps=t,this.caps.AllTimeCapsTotal==null&&(this.caps.AllTimeCapsTotal=0),this.caps.Total==null&&(this.caps.Total=0)},()=>{this.caps.AllTimeCapsTotal=0,this.caps.Total=0})}goToCapsTableUrl(){window.dataLayer.push({event:"view-label",generalData:"caps table"})}sendRequestToCustomerSupport(){let e=this.fullName+" should be changed to "+this.getFullNameService.setFullName(this.fullNameToEdit.value.firstName,this.fullNameToEdit.value.middleName,this.fullNameToEdit.value.lastName);this.subscription=this.ipsService.updateCFAMessage(e,this.individualProfile.Fan).subscribe(t=>{t.FanCode&&this.triggerCFANotification()})}sendNotificationWithEmarsys(){var e=new Nt;e.Fancode=Number(this.individualProfile.Fan),e.EmailId=this.countyInfo.cfaNotificationEmailAddress?this.countyInfo.cfaNotificationEmailAddress:"[email protected]",e.EventId=4955,e.NotificationType="customerSupportEmail",e.EmailSubjectData=new xi,e.EmailSubjectData.countyName=this.countyInfo.parentCounty?this.countyInfo.parentCounty[0]:"GrassrootsTechnology",e.EmailSubjectData.countyNameInSentence=this.countyInfo.parentCounty?this.countyInfo.parentCounty[0]:"GrassrootsTechnology",e.EmailSubjectData.firstName=this.fullNameToEdit.value.firstName,e.EmailSubjectData.middleName=this.fullNameToEdit.value.middleName,e.EmailSubjectData.lastName=this.fullNameToEdit.value.lastName,e.EmailSubjectData.oldFirstName=this.oldName.firstName,e.EmailSubjectData.oldLastName=this.oldName.lastName,e.EmailSubjectData.fan=this.individualProfile.Fan,e.EmailSubjectData.userEmailAddress=this.individualProfile.Indiv
4idualProfileEmail&&this.individualProfile.IndividualProfileEmail.length>0?this.individualProfile.IndividualProfileEmail[0].EmailAddress:"",e.EmailTemplateId=null,this.notificationService.sendNotificationWithEmarsys(e).subscribe(()=>{console.log("customerSupportEmail sent successfully"),this.dialogInstance.close(),this.successPopupService.setSuccessMessage("Your request has been sent to customer services"),this.successPopupService.show(),this.showNameEditError=!1,this.createNameEditControls()})}triggerCFANotification(){let e={FanCode:Number(this.individualProfile.Fan),firstName:this.fullNameToEdit.value.firstName,middleName:this.fullNameToEdit.value.middleName,lastName:this.fullNameToEdit.value.lastName,oldFirstName:this.oldName.firstName,oldLastName:this.oldName.lastName,oldMiddleName:this.oldName.middleName};this.ipsService.sendCFANotification(e).subscribe(()=>{this.dialogInstance.close(),this.successPopupService.setSuccessMessage("Your request has been sent to customer services"),this.successPopupService.show(),this.showNameEditError=!1,this.createNameEditControls()})}checkSendNotificationLink(){if(this.sharedService.isChildAccount=="true"){let e=new Date(this.individualProfile.DateOfBirth);return this.checkYouthService.isLessThanFourteen(e)?!1:!(this.individualProfile.IndividualProfileEmail==null||this.individualProfile.IndividualProfileEmail==null||this.individualProfile.IndividualProfileEmail.length==0)}else return!0}ngOnDestroy(){this.subscription.unsubscribe()}};n.\u0275fac=function(t){return new(t||n)(Y(qe),Y(Se),Y(dt),Y(Pe),Y(ze),Y(zn))},n.\u0275cmp=fe({type:n,selectors:[["app-basic-info"]],hostBindings:function(t,i){t&1&&q("click",function(a){return i.clickout(a)},lt)},inputs:{individualProfile:"individualProfile",countyInfo:"countyInfo"},outputs:{outputData:"outputData"},standalone:!1,features:[ke],decls:40,vars:13,consts:[[1,"rectangle"],[1,"red-corner"],[1,"basic-info"],[1,"basic-info-left"],["tabindex","0","alt","Profile-Image","src","/assets/account-management/images/icons/noun_profile.svg","id","profileImg",1,"profile-img","first-item-focus"],["tabindex","0","class","edit-photo","aria-label","edit profile photo","title","Edit profile photo","role","button",3,"keypress","click",4,"ngIf"],["class","padLock_Profile","role","link","aria-label","Profile Details Restriction","tabindex","0",3,"keypress","click",4,"ngIf"],["class","padLock_Profile-tooltip","role","tooltip",4,"ngIf"],[1,"basic-info-right"],["role","button","tabindex","0","class","edit-details","aria-label","edit profile name","title","Edit profile name",3,"keypress","click",4,"ngIf"],[1,"form-group"],[4,"ngIf"],["role","link","aria-label","caps info details","tabindex","0",1,"note-info","capsInfo",3,"keypress","click"],["class","caps-info-tooltip","role","tooltip",4,"ngIf"],[1,"caps-block"],[1,"caps"],[1,"active"],[1,"total"],["tabindex","0","target","_blank","rel","noopener","role","link","aria-label","View Caps Table opens in a new tab",1,"edit-link",3,"click","href"],["tabindex","0","aria-label","edit profile photo","title","Edit profile photo","role","button",1,"edit-photo",3,"keypress","click"],["role","link","aria-label","Profile Details Restriction","tabindex","0",1,"padLock_Profile",3,"keypress","click"],["role","tooltip",1,"padLock_Profile-tooltip"],["tabindex","0"],["role","button","tabindex","0","aria-label","Got it - Closes Profile Restrict Help-Text",1,"profileRestrictButton",3,"click","keypress"],["role","button","tabindex","0","aria-label","edit profile name","title","Edit profile name",1,"edit-details",3,"keypress","click"],[1,"dobMissingLabel"],["tabindex","0","aria-label","edit date of birth-opens modal window",1,"editDOB",3,"keypress","click"],["role","tooltip",1,"caps-info-tooltip"],["role","button","tabindex","0","aria-label","Got it - Close caps info details",1,"dbs-button",3,"click","keypress"]],template:function(t,i){t&1&&(p(0,"section")(1,"div",0),ie(2,"div",1),p(3,"div",2)(4,"div",3),ie(5,"img",4),X(6,ja,1,0,"a",5)(7,Ha,1,0,"a",6)(8,Ua,7,0,"div",7),h(),p(9,"div",8)(10,"h1"),_(11),h(),X(12,qa,1,0,"a",9),p(13,"div",10)(14,"label"),_(15,"FAN:"),h(),p(16,"div"),_(17),h()(),p(18,"div",10)(19,"label"),_(20,"Date of birth:"),h(),X(21,Ga,3,4,"div",11)(22,$a,5,0,"div",11),h(),p(23,"div",10)(24,"label"),_(25,"Caps:"),h(),p(26,"a",12),q("keypress",function(){return i.showCaps=!0})("click",function(){return i.showCaps=!0}),h(),X(27,Wa,7,0,"div",13),p(28,"div",14)(29,"ul",15)(30,"li"),_(31),p(32,"span",16),_(33,"Active"),h()(),p(34,"li"),_(35),p(36,"span",17),_(37,"Total"),h()()(),p(38,"a",18),q("click",function(){return i.goToCapsTableUrl()}),_(39,"View caps table"),h()()()()()()()),t&2&&(k(6),M("ngIf",!i.lockProfile),k(),M("ngIf",i.lockProfile),k(),M("ngIf",i.showProfileInfo),k(3),he(i.fullName),k(),M("ngIf",i.checkSendNotificationLink()),k(5),he(i.individualProfile.Fan),k(4),M("ngIf",!i.showDOB),k(),M("ngIf",i.showDOB),k(5),M("ngIf",i.showCaps),k(4),he(i.caps.Total),k(4),he(i.caps.AllTimeC
4apsTotal),k(3),M("href",Ce(i.capsTableUrl),We))},dependencies:[ye,li],styles:['.note-info.capsInfo[_ngcontent-%COMP%]{bottom:8px!important;margin-left:48px;display:block;margin-bottom:10px}.caps-info-tooltip[_ngcontent-%COMP%]{border-radius:0;background-color:#e0e0e0;padding:15px 15px 1px;font-family:FSJack-Medium,arial,helvetica,sans-serif;font-size:12px!important;line-height:14px!important;position:absolute!important;color:#011e41;width:267px!important;top:0;margin:0;z-index:1;box-shadow:0 2px 2px #0000003d;left:37%}.caps-info-tooltip[_ngcontent-%COMP%]:before{top:78%;right:266px;border-top:12px solid transparent;border-bottom:12px solid transparent;border-right:12px solid #E0E0E0;transform:rotate(0);content:"";height:0;width:0;position:absolute;pointer-events:none}@media (max-width:767px) and (min-width:320px){.note-info.capsInfo[_ngcontent-%COMP%]{bottom:28px!important;margin-bottom:14px}.caps-info-tooltip[_ngcontent-%COMP%]{top:30px;left:0}.caps-info-tooltip[_ngcontent-%COMP%]:before{top:97%;right:202px;transform:rotate(-90deg)}}']});let r=n;return r})();var er=(()=>{let n=class n{constructor(e,t){this.data=e,this.dynamicStyleLoader=t,this.dialogData=e.parentInstance}
4ngOnInit(){this.dynamicStyleLoader.focusCloseButton("mob-focus-remove-individual","desktop-focus-remove-individual")}};n.\u0275fac=function(t){return new(t||n)(Y(Mt),Y(Fe))},n.\u0275cmp=fe({type:n,selectors:[["my-account-setting"]],standalone:!1,decls:21,vars:0,consts:[[1,"dialog-component"],[1,"cross"],["id","desktop-focus-remove-individual","tabindex","0","type","button","aria-label","Close",1,"close","close-btn",3,"click"],[1,"image-container"],[1,"profile-photo-header"],["id","mob-focus-remove-individual","tabindex","0","type","button","aria-label","Close",1,"close","close-btn",3,"click"],[1,"modal-body-content",2,"color","#1a3453"],[1,"title-line"],[1,"btn-container"],["type","link",1,"cancel-btn",3,"click"],["type","button",1,"save-Button",3,"click"]],template:function(t,i){t&1&&(p(0,"div",0)(1,"div",1)(2,"button",2),q("click",function(){return i.dialogData.close()}),h()(),p(3,"div",3)(4,"div",4)(5,"button",5),q("click",function(){return i.dialogData.close()}),h()(),p(6,"div",6)(7,"h4")(8,"strong"),_(9,"Remove linked individual from your account? "),h()(),ie(10,"hr",7),p(11,"p"),_(12,"Are you sure you want to remove this child / individual from your account? Please be aware all U16\u2019s require a Parent / Carer link to enable them to register to play football"),h(),ie(13,"br"),p(14,"p"),_(15,"If you still wish to proceed, Please confirm."),h(),p(16,"div",8)(17,"a",9),q("click",function(){return i.dialogData.close()}),_(18,"CANCEL"),h(),p(19,"button",10),q("click",function(){return i.dialogData.removeIndividualHandler()}),_(20,"CONFIRM"),h()()()()())},styles:[".confirm[_ngcontent-%COMP%]{font: 11pt/14pt Arial,helvetica,sans-serif;font-size:medium}.image-container[_ngcontent-%COMP%]{padding-bottom:15px}.btn-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin-top:50px}.cancel-btn[_ngcontent-%COMP%]{border:none;color:inherit;cursor:pointer;
4font-family:FSJack-Bold,arial,helvetica,sans-serif;font-size:16px;line-height:22px;text-transform:uppercase;margin-right:5%}.save-Button[_ngcontent-%COMP%]{background-color:#011e41;border:none;padding:11px 30px;color:#fff;font-family:FSJack-Bold,arial,helvetica,sans-serif;font-size:16px;line-height:22px;text-transform:uppercase;margin-left:5%}.modal-body-content[_ngcontent-%COMP%]{width:80%}.title-line[_ngcontent-%COMP%]{margin-bottom:50px}@media (max-width: 767px){.modal-body-content[_ngcontent-%COMP%]{width:96%}}"]});let r=n;return r})();var Ja=r=>({"child-alert-tag":r});function Ka(r,n){if(r&1){let o=ee();p(0,"div",10)(1,"span",11),_(2,"There are changes needed on some of your linked accounts."),h(),p(3,"span",12),q("click",function(t){H(o);let i=F(2);return t.stopPropagation(),U(i.showEmailAlertNotification=!1)}),_(4,"Dismiss "),p(5,"span",13),_(6,"X"),h()()()}}function Xa(r,n){r&1&&ie(0,"span",20)}function Qa(r,n){if(r&1){let o=ee();p(0,"ul")(1,"li",14),q("click",function(){let t=H(o).$implicit,i=F(2);return U(i.loadChildAccount(t.Fan))}),p(2,"div",15),ie(3,"img",16),h(),p(4,"div",17)(5,"p"),_(6),X(7,Xa,1,0,"span",18),h(),p(8,"div")(9,"label"),_(10,"FAN:"),h(),p(11,"span"),_(12),h()(),p(13,"a",19),q("click",function(t){let i=H(o),s=i.$implicit,a=i.index,l=F(2);return U(l.openRemoveIndividualDialog(t,s.Fan,a))}),_(14,"Remove "),h()()()()}if(r&2){let o=n.$implicit,e=n.index;k(),M("ngClass",He(7,Ja,o.showEmailAlert)),k(2),M("id",Ce("profileImg"+e)),k(3),Ft("",o.FirstName," ",o.LastName," "),k(),M("ngIf",o.showEmailAlert),k(5),he(o.Fan)}}function Za(r,n){r&1&&(p(0,"div",21)(1,"div",22),ie(2,"div",23),p(3,"p"),_(4," There are currently no individuals linked to this account "),h()()())}function es(r,n){if(r&1){let o=ee();p(0,"div",24)(1,"a",25),q("keypress",function(t){H(o);let i=F(2);return U(i.openDialogOnKeyPress(t))})("click",function(){H(o);let t=F(2);return U(t.openAddIndividualDialog())}),_(2,"ADD ANOTHER INDIVIDUAL"),h()()}}function ts(r,n){if(r&1){let o=ee();p(0,"div",24)(1,"a",26),q("keypress",function(t){H(o);let i=F(2);return U(i.openDialogOnKeyPress(t))})("click",function(){H(o);let t=F(2);return U(t.openAddIndividualDialog())}),_(2,"ADD AN INDIVIDUAL"),h()()}}function is(r,n){if(r&1&&(p(0,"section")(1,"div",1)(2,"div",2),X(3,Ka,7,0,"div",3),p(4,"div",4)(5,"h3")(6,"label",5),_(7,"Individuals "),p(8,"span"),_(9,"(Linked to this account)"),h()()()(),p(10,"div",6),X(11,Qa,15,9,"ul",7),ve(12,"slice"),X(13,Za,5,0,"div",8),h(),X(14,es,3,0,"div",9)(15,ts,3,0,"div",9),h()()()),r&2){let o=F();k(3),M("ngIf",o.showEmailAlertNotification),k(8),M("ngForOf",Bt(12,5,o.childAccounts,0,5)),k(2),M("ngIf",o.childAccounts.length==0||o.childAccounts==null),k(),M("ngIf",o.childAccounts.length>0&&o.childAccounts.length<5),k(),M("ngIf",o.childAccounts.length==0||o.childAccounts==null)}}var tr=(()=>{let n=class n{constructor(e,t,i,s,a,l){this.injector=e,this.ipsService=t,this.checkYouthService=i,this.formBuilder=s,this.router=a,this.dialog=l,this.days=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31],this.months=["January","February","March","April","May","June","July","August","September","October","November","December"],this.years=[],this.childError=!1,this.hideDOBError=!0,this.linkedAccounts=new mi,this.isChildAccount=!1,this.childAccounts=[],this.sendEmail=new Pt,this.linkedChildVm=this,this.imageResponse={FileData:""},this.showEmailAlertNotification=!1,this.adultChildrenWithNoEmail=[],this.childFanToRemove=0,this.childIndexToRemove=-1,this.mediaService=e.get(ft),this.successPopupService=e.get(Ke),this.sharedService=e.get(xe),this.dynamicStyleLoaderService=e.get(Fe),this.childForm=this.formBuilder.group({firstName:"",lastName:"",day:"dd",month:"month",year:"yyyy"})}ngOnInit(){this.setYearTrack()}ngOnChanges(e){e.childAccounts&&(this.setProfilePicForChildAccounts(this.childAccounts),this.setIsYouthforAllAccounts(this.childAccounts))}setYearTrack(){let t=new Date().getFullYear();for(let i=t;i>=t-100;i--)this.years.push(i)}clearErrors(){this.childError=!1,this.dialogInstance.close()}setIsYouthforAllAccounts(e){this.childAccounts=e.map(t=>(t.isYouth=this.checkYouthService.isYouth(t.DateOfBirth),t.isYouth||(t.isFakeEmail=this.setAndCheckIsFakeEmail(t.EmailAddress||"")),!t.isYouth&&(t.EmailAddress==""||t.EmailAddress==null)?(this.adultChildrenWithNoEmail.push(t.Fan),this.showEmailAlertNotification=!0,t.showEmailAlert=!0):t.showEmailAlert=!1,t))}setAndCheckIsFakeEmail(e){return!!e.startsWith("fake",0)}validDateEntered(){let e=new Date,t=!1,i=e.getDate(),s=e.getMonth()+1;return e.getFullYear()==this.childForm.value.year?(this.childForm.value.month<s&&(t=!0),this.childForm.value.month==s&&this.childForm.value.day<i&&(t=!0)):t=!0,t}saveChild(){if(this.childError=!1,this.validDateEntered()){let e=this.childForm.value.firstName.trim(),t=this.childForm.value.lastName.trim();this.childForm.patchValue({firstName:e,lastName:t}),this.ipsService.updateLinkedChildAccount(this.childForm.value).subscribe(i=>{i.status==409?(this.hideDOBError=!1,$(".image-container").toggleClass("warningOpacity")):i.status==400||i.status==404||i.status==403?this.childError=!0:i.Status=="Success"&&(this.loadLinkedAccount(),this.dialogInstance.close(),this.childForm.reset(),this.successPopupService.setSuccessMessage("Your Child has been added"),this.successPopupService.show())},()=>{this.childError=!0})}else this.childError=!0}loadLinkedAccount(){this.sharedService.isChildAccount==="true"?this.ipsService.getChildLinkedAccounts(this.sharedService.childFancode).subscribe(e=>{this.linkedAccounts=e,this.childAccounts=this.filterLinkedAccounts(this.linkedAccounts,2),this.setEmailAlertForChilds()}):this.ipsService.getLinkedAccounts(this.sharedService.fanCode).subscribe(e=>{this.linkedAccounts=e,this.childAccounts=this.filterLinkedAccounts(this.linkedAccounts,2),this.setEmailAlertForChilds()})}filterLinkedAccounts(e,t){return e.ListLinkedProfile!=null?e.ListLinkedProfile.filter(i=>i.RelationshipId==t):[]}setEmailAlertForChilds(){this.childAccounts=this.childAccounts.map(e=>(e.isYouth=this.checkYouthService.isYouth(e.DateOfBirth),!e.isYouth&&(e.EmailAddress==""||e.EmailAddress==null)?(this.adultChildrenWithNoEmail.push(e.Fan),this.showEmailAlertNotification=!0,e.showEmailAlert=!0):e.showEmailAlert=!1,e))}closeInfoPopup(){$(".image-container").toggleClass("warningOpacity"),this.hideDOBError=!0,this.clearErrors(),this.dialogInstance.close()}onInput(e){e.target.value==""?this.childError=!0:this.childError=!1}onDateInput(){this.childError=!1}addChildGA(){window.dataLayer.push({event:"view-label",generalData:"children \u2013 add another child"})}openDialogOnKeyPress(e){(e.keyCode==13||e.which==13)&&this.openAddIndividualDialog()}openAddIndividualDialog(){this.addChildGA(),this.dynamicStyleLoaderService.attachDialogStyles(),delete this.dialogInstance,this.dialogInstance=this.dialog.open(Bo,{width:"60%",disableClose:!0,position:{top:"25px"},data:{parentInstance:this}}),this.dialogInstance.afterClosed().subscribe(()=>{this.childForm.reset(),this.childForm.controls.day.setValue("dd"),this.childForm.controls.month.setValue("month"),this.childForm.controls.year.setValue("yyyy"),this.childError=!1,this.dynamicStyleLoaderService.removeDialogStyles()})}loadChildAccount(e){this.sharedService.isChildAccount="true",this.sharedService.childFancode=e.toString(),this.router.navigate(["/account-management/profile/child"],{queryParams:{childAccount:e}})}setProfilePicForChildAccounts(e){let t=0;e.forEach(i=>
4{this.loadProfilePicture(i.Fan,t),t++})}loadProfilePicture(e,t){e&&this.mediaService.childDownloadImage(e).subscribe(i=>{if(i){this.imageResponse=i;let s="profileImg"+t,a=document.getElementById(s);i.FileData?a.src="data:image/png;base64,"+i.FileData:a.src="/assets/account-management/images/icons/noun_profile.svg"}else{let s="profileImg"+t,a=document.getElementById(s);a.src="/assets/account-management/images/icons/noun_profile.svg"}})}openRemoveIndividualDialog(e,t,i){e.preventDefault(),e.stopPropagation(),this.childFanToRemove=t,this.childIndexToRemove=i,this.dynamicStyleLoaderService.attachDialogStyles(),delete this.dialogInstance,this.dialogInstance=this.dialog.open(er,{width:"62%",disableClose:!0,position:{top:"25px"},data:{parentInstance:this}}),this.dialogInstance.afterClosed().subscribe(()=>{this.dynamicStyleLoaderService.removeDialogStyles()})}close(){this.dialogInstance.close()}removeIndividualHandler(){let e={ParentFanCode:this.sharedService.fanCode,ChildFanCode:this.childFanToRemove,RequestorFanCode:this.childFanToRemove};this.ipsService.removeLinkedIndividualRequest(e).subscribe(()=>{this.dialogInstance.close(),this.childAccounts.splice(this.childIndexToRemove,1);let t=this.adultChildrenWithNoEmail.indexOf(this.childFanToRemove);t!==-1&&(this.adultChildrenWithNoEmail.splice(t,1),this.adultChildrenWithNoEmail.length===0&&(this.showEmailAlertNotification=!1)),this.successPopupService.setSuccessMessage("Individual Removed"),this.successPopupService.show()})}};n.\u0275fac=function(t){return new(t||n)(Y(qe),Y(Se),Y(Pe),Y(dt),Y(pt),Y(ze))},n.\u0275cmp=fe({type:n,selectors:[["app-linked-child-account"]],inputs:{isChildAccount:"isChildAccount",childAccounts:"childAccounts"},outputs:{sendEmail:"sendEmail"},standalone:!1,features:[ke],decls:1,vars:1,consts:[[4,"ngIf"],[1,"info-panel","child-panel"],[1,"linked-account-block"],["class","sixteen-message",4,"ngIf"],[1,"linked-account-left"],[1,"child"],[1,"linked-account-right","linked-individuals"],[4,"ngFor","ngForOf"],["class","panel-childbody",4,"ngIf"],["class","panel-childlink",4,"ngIf"],[1,"sixteen-message"],[1,"message-text"],[1,"dismiss-text",3,"click"],[1,"dismiss-icon"],["role","link","tabindex","0",1,"child-account",3,"click","ngClass"],[1,"linked-account-img"],["alt","photo","src","/assets/account-management/images/icons/noun_profile.svg",3,"id"],[1,"linked-account-info"],["class","child-alert-icon",4,"ngIf"],["href","#","role","link","tabindex","0","aria-label","Remove linked individual",1,"remove-linked-individual-link",3,"click"],[1,"child-alert-icon"],[1,"panel-childbody"],[1,"panel-child"],[1,"childIcon"],[1,"panel-childlink"],["role","link","tabindex","0","aria-label","ADD ANOTHER INDIVIDUAL",3,"keypress","click"],["role","link","tabindex","0","aria-label","ADD AN INDIVIDUAL",3,"keypress","click"]],template:function(t,i){t&1&&X(0,is,16,9,"section",0),t&2&&M("ngIf",!i.isChildAccount)},dependencies:[ct,Ye,ye,Ot],styles:['.linked-individuals[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:10px 40px 70px 12px;margin-bottom:15px}.linked-individuals[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .linked-account-img[_ngcontent-%COMP%]{width:55px}.linked-individuals[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .linked-account-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:40px;width:40px;border-radius:23px}.noPadding[_ngcontent-%COMP%]{padding-top:0!important}.childPanel[_ngcontent-%COMP%]{padding-bottom:50px}.sixteen-message[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-size:13px;
4font-family:FSJack-Medium,arial,helvetica,sans-serif;margin-bottom:20px;width:100%!important;background-color:#ffccb659;height:23px;padding-left:12px;padding-top:2px}.dismiss-text[_ngcontent-%COMP%]{margin-right:10px;color:gray;cursor:pointer}.dismiss-icon[_ngcontent-%COMP%]{margin-left:10px;font-family:FSJack,arial,helvetica,sans-serif;font-size:14px}.child-account[_ngcontent-%COMP%]{position:relative}.child-alert-icon[_ngcontent-%COMP%]{cursor:default;position:absolute;right:2px;top:2px;width:16px;height:16px;background:url("./media/alert-red-ZB3NG2OA.svg") no-repeat center center}.child-alert-tag[_ngcontent-%COMP%]{border-left:5px solid red}a.remove-linked-individual-link[_ngcontent-%COMP%]{font-size:13px;font-family:FSJack-Medium,arial,helvetica,sans-serif;text-decoration:underline}@media (max-width: 767px){.sixteen-message[_ngcontent-%COMP%]{flex-direction:column;height:auto;padding-top:5px;padding-bottom:5px}.dismiss-text[_ngcontent-%COMP%]{text-align:right}.sixteen-message[_ngcontent-%COMP%] .message-text[_ngcontent-%COMP%]{padding-bottom:20px}.sixteen-message[_ngcontent-%COMP%] .dismiss-icon[_ngcontent-%COMP%]{font-size:15px}}']});let r=n;return r})();var _i=(()=>{let n=class n{constructor(e){this.data=e}ngOnInit(){}};n.\u0275fac=function(t){return new(t||n)(Y(Mt,8))},n.\u0275cmp=fe({type:n,selectors:[["common-dialog"]],standalone:!1,decls:9,vars:7,consts:[[1,"common-dialog-container"],[1,"danger-icon"],["mat-dialog-content","",1,"mat-dialog-content"],["mat-dialog-actions","",1,"mat-dialog-actions"],["mat-button","",1,"mat-dialog-btn-no",3,"mat-dialog-close"],["mat-button","","cdkFocusInitial","",1,"mat-dialog-btn-yes",3,"mat-dialog-close"]],template:function(t,i){t&1&&(p(0,"div",0),ie(1,"div",1),p(2,"div",2),_(3),h(),p(4,"div",3)(5,"button",4),_(6),h(),p(7,"button",5),_(8),h()()()),t&2&&(k(3),he(i.data.message),k(2),M("mat-dialog-close",Ce(i.data.cancelButton.value)),k(),he(i.data.cancelButton.text),k(),M("mat-dialog-close",Ce(i.data.okButton.value)),k(),he(i.data.okButton.text))},dependencies:[vo,Co,bo],styles:['.mat-dialog-actions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;min-height:52px;align-items:center;height:54px;margin-top:26px;padding:0!important;justify-content:center}.mat-dialog-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border:none;padding:11px 37px;text-transform:uppercase}
4.mat-dialog-btn-no[_ngcontent-%COMP%]{font-family:FSJack-Bold,arial,helvetica,sans-serif;font-size:16px;line-height:22px;color:#004f9f;font-weight:700;background-color:transparent;margin-right:10px}.mat-dialog-btn-yes[_ngcontent-%COMP%]{font-family:FSJack-Bold,arial,helvetica,sans-serif;font-size:16px;line-height:22px;color:#fff;font-weight:700;background-color:#011e41}.mat-dialog-content[_ngcontent-%COMP%]{display:block;margin:auto;margin-top:32px!important;max-height:65vh;overflow:auto;font-size:14px;font-family:FSJack-Medium,arial,helvetica,sans-serif;margin-bottom:10px!important}.danger-icon[_ngcontent-%COMP%]{width:61px;height:35px;margin:auto 38%;background:url("./media/danger-icon-PJDF4CZ4.svg") center center no-repeat}@media (max-width: 767px){.mat-dialog-actions[_ngcontent-%COMP%]{margin-top:0}.mat-dialog-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:5px}.common-dialog-container[_ngcontent-%COMP%]{width:75%}}']});let r=n;return r})();var os=r=>({"parent-disable":r});function rs(r,n){if(r&1){let o=ee();p(0,"div",7)(1,"span",8),_(2,"Now you've turned 18, you can remove these linked accounts from your profile"),h(),p(3,"span",9),q("click",function(t){H(o);let i=F(2);return t.stopPropagation(),U(i.onDismissMessage())}),_(4,"Dismiss "),p(5,"span",10),_(6,"X"),h()()()}}function as(r,n){if(r&1){let o=ee();p(0,"span",18),q("click",function(t){H(o);let i=F().$implicit,s=F(3);return t.stopPropagation(),U(s.removeParentHandler(i.Fan))}),h()}}function ss(r,n){if(r&1){let o=ee();p(0,"ul")(1,"li",13),q("click",function(){let t=H(o).$implicit,i=F(3);return U(i.loadParentAccount(t.Fan))}),p(2,"div",14),ie(3,"img",15),h(),p(4,"div",16)(5,"p"),_(6),X(7,as,1,0,"span",17),h(),p(8,"div")(9,"label"),_(10,"FAN:"),h(),p(11,"span"),_(12),h()()()()()}if(r&2){let o=n.$implicit,e=n.index,t=F(3);k(),M("ngClass",He(8,os,o.Fan!=t.originalFancode&&t.isChildAccount)),vt("disabled",o.Fan!=t.originalFancode&&t.isChildAccount),k(2),M("id",Ce("profileImg"+e)),k(3),Ft("",o.FirstName," ",o.LastName," "),k(),M("ngIf",t.isEighteen&&!t.isChildAccount),k(5),he(o.Fan)}}function ls(r,n){if(r&1&&(p(0,"div",11),X(1,ss,13,10,"ul",12),ve(2,"slice"),h()),r&2){let o=F(2);k(),M("ngForOf",Bt(2,1,o.parentAccounts,0,5))}}function cs(r,n){if(r&1&&(p(0,"section")(1,"div",1)(2,"div",2),X(3,rs,7,0,"div",3),p(4,"div",4)(5,"h3")(6,"label",5),_(7,"Parent / Carer: "),p(8,"span"),_(9,"(Linked to this account)"),h()()()(),X(10,ls,3,5,"div",6),h()()()),r&2){let o=F();k(3),M("ngIf",o.showRemoveParentNotification&&!o.isChildAccount),k(7),M("ngIf",o.parentAccounts.length>=1)}}var ir=(()=>{let n=class n{constructor(e,t,i,s,a,l){this.router=e,this.mediaService=t,this.dialog=i,this.checkYouthService=s,this.ipsService=a,this.sharedService=l,this.originalFancode=-1,this.showRemoveParentNotification=!1,this.isEighteen=!1,this.parentAccounts=[],this.imageResponse={FileData:""},this.isChildAccount=!1}ngOnInit(){this.originalFancode=Number(this.sharedService.fanCode),this.checkIsEighteen()}ngOnChanges(e){e.parentAccounts&&this.setProfilePicForParentAccounts(this.parentAccounts)}loadParentAccount(e){e==Number(this.sharedService.fanCode)&&(this.sharedService.isChildAccount="false",this.sharedService.childFancode="",this.router.navigate(["/profile"]))}setProfilePicForParentAccounts(e){let t=0;e.forEach(i=>{this.loadProfilePicture(i.Fan,t),t++})}loadProfilePicture(e,t){if(e){let i=this.isChildAccount?this.sharedService.childFancode:this.sharedService.fanCode;this.mediaService.parentDownloadImage(e,i).subscribe(s=>{if(s){this.imageResponse=s;let a="profileImg"+t,l=document.getElementById(a);s.FileData?l.src="data:image/png;base64,"+s.FileData:l.src="/assets/account-management/images/icons/noun_profile.svg"}else{let a="profileImg"+t,l=document.getElementById(a);l.src="/assets/account-management/images/icons/noun_profile.svg"}})}}checkIsEighteen(){if(this.sharedService.dob!==void 0&&this.sharedService.dob!==null){let e=new Date(this.sharedService.dob);this.checkYouthService.isLessThanEighteen(e)||(this.isEighteen=!0,this.ipsService.getRemoveParentNotification(this.originalFancode).subscribe(t=>{this.showRemoveParentNotification=t.NotificationRequest},t=>{console.log(t)}))}}removeParentHandler(e){this.dialog.open(_i,{width:"400px",height:"230px",data:{message:"Are you sure you want to remove this parent / carer link from your account?",icon:"danger",okButton:{text:"CONFIRM",value:"confirm"},cancelButton:{text:"CANCEL",value:"cancel"}}}).afterClosed().subscribe(i=>{if(i==="confirm"){let s={ParentFanCode:e,ChildFanCode:this.originalFancode,RequestorFanCode:this.originalFancode};this.ipsService.removeParentAccountRequest(s).subscribe(a=>{console.log("all the parents here",this.parentAccounts);let l=this.parentAccounts.filter(g=>g.Fan!==e);this.parentAccounts=l},()=>{})}})}onDismissMessage(){let e={FAN:this.originalFancode,NotificationRequest:!1};this.ipsService.postNotificationStatus(e).subscribe(t=>{this.showRemoveParentNotification=!1},t=>{console.log(t)})}};n.\u0275fac=function(t){return new(t||n)(Y(pt),Y(ft),Y(ze),Y(Pe),Y(Se),Y(xe))},n.\u0275cmp=fe({type:n,selectors:[["app-linked-parent-account"]],inputs:{parentAccounts:"parentAccounts",isChildAccount:"isChildAccount"}
4,standalone:!1,features:[ke],decls:1,vars:1,consts:[[4,"ngIf"],[1,"info-panel","child-panel"],[1,"linked-account-block"],["class","eighteen-message",4,"ngIf"],[1,"linked-account-left"],[1,"child"],["class","linked-account-right",4,"ngIf"],[1,"eighteen-message"],[1,"message-text"],[1,"dismiss-text",3,"click"],[1,"dismiss-icon"],[1,"linked-account-right"],[4,"ngFor","ngForOf"],["role","link","tabindex","0",1,"parent-account",3,"click","ngClass"],[1,"linked-account-img"],["alt","photo","src","/assets/account-management/images/icons/noun_profile.svg",3,"id"],[1,"linked-account-info"],["class","remove-parent-icon",3,"click",4,"ngIf"],[1,"remove-parent-icon",3,"click"]],template:function(t,i){t&1&&X(0,cs,11,2,"section",0),t&2&&M("ngIf",i.parentAccounts.length>=1)},dependencies:[ct,Ye,ye,Ot],styles:['.parent-disable[_ngcontent-%COMP%]{opacity:.3;filter:alpha(opacity=30);cursor:default;color:#011e3c66}.parent-account[_ngcontent-%COMP%]{position:relative}.remove-parent-icon[_ngcontent-%COMP%]{position:absolute;right:2px;top:3px;width:16px;height:16px;background:url("./media/cross-56KS5CJF.svg") no-repeat center center}.eighteen-message[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-size:13px;
4font-family:FSJack-Medium,arial,helvetica,sans-serif;margin-bottom:20px;width:100%!important;background-color:#ffccb659;height:23px;padding-left:12px;padding-top:2px}.dismiss-text[_ngcontent-%COMP%]{margin-right:10px;color:gray;cursor:pointer}.dismiss-icon[_ngcontent-%COMP%]{margin-left:10px;font-family:FSJack,arial,helvetica,sans-serif;font-size:14px}@media (max-width: 767px){.eighteen-message[_ngcontent-%COMP%]{flex-direction:column;height:auto;padding-top:5px;padding-bottom:5px}.dismiss-text[_ngcontent-%COMP%]{text-align:right}}']});let r=n;return r})();var pr=oi(Wt());function In(r){return n=>r.test(n.value)?null:{forbiddenName:{value:n.value}}}var ki=class{};var dr=(()=>{let n=class n{transform(e){return e!=null?(e.includes("+44")&&(e=e.replace("+44","0044")),e.replace(/[^\w\s]/gi,"")):e}};n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=Hn({name:"displayOnlyDigitsPipe",type:n,pure:!0,standalone:!1});let r=n;return r})();var us=r=>({unVerifiedEmail:r}),ms=r=>({"email-alert-position":r}),xs=r=>({"email-alert-tag":r});function gs(r,n){r&1&&(p(0,"p",17),_(1," Unverified"),h())}function vs(r,n){r&1&&(p(0,"p",18),_(1," Verified"),h())}function bs(r,n){if(r&1){let o=ee();p(0,"div",7)(1,"label"),_(2,"Email:"),h(),p(3,"div",13),_(4),X(5,gs,2,0,"p",14)(6,vs,2,0,"p",15),p(7,"a",16),q("keypress",function(t){H(o);let i=F();return U(i.openB2CModal("email",t))})("click",function(){H(o);let t=F();return U(t.editEmail())}),_(8,"EDIT / VERIFY"),h()()()}if(r&2){let o=F();k(3),M("ngClass",He(4,us,!o.individualProfileEmail.IsConfirmed&&o.individualProfileEmail.IsConfirmed!=null)),k(),le(" ",o.individualProfileEmail.EmailAddress," "),k(),M("ngIf",!(o.individualProfileEmail!=null&&o.individualProfileEmail.IsConfirmed)&&(o.individualProfileEmail==null?null:o.individualProfileEmail.IsConfirmed)!=null),k(),M("ngIf",o.individualProfileEmail==null?null:o.individualProfileEmail.IsConfirmed)}}function Cs(r,n){if(r&1){let o=ee();p(0,"a",23),q("keypress",function(){H(o);let t=F(2);return U(t.showInfo5=!0)})("click",function(){H(o);let t=F(2);return U(t.showInfo5=!0)}),h()}}function ys(r,n){if(r&1){let o=ee();p(0,"div",24)(1,"p",25),_(2,"We do not store this email address for communication purposes."),ie(3,"br")(4,"br"),h(),p(5,"button",26),q("click",function(t){H(o);let i=F(2);return i.showInfo5=!1,U(i.closeTooltip(t))})("keypress",function(t){H(o);let i=F(2);return i.closeTooltipTab(t),U(i.showInfo5=!1)}),_(6,"GOT IT"),h()()}}function _s(r,n){r&1&&(p(0,"p",17),_(1," Unverified"),h())}function ks(r,n){r&1&&(p(0,"p",18),_(1," Confirmed"),h())}function ws(r,n){if(r&1){let o=ee();p(0,"div",19),ie(1,"span",13),p(2,"label"),_(3," Email:"),h(),p(4,"div"),X(5,Cs,1,0,"a",20)(6,ys,7,0,"div",21),_(7),X(8,_s,2,0,"p",14)(9,ks,2,0,"p",15),p(10,"a",22),q("keypress",function(t){H(o);let i=F();return U(i.openDialogOnKeyPress(t,"child-email"))})("click",function(){H(o);let t=F();return U(t.openChildEmailDialog())}),h()()()}if(r&2){let o=F();M("ngClass",He(7,ms,o.showEmailAlert)),k(),M("ngClass",He(9,xs,o.showEmailAlert)),k(4),M("ngIf",o.isYouth),k(),M("ngIf",o.showInfo5),k(),le(" ",o.individualProfileEmail.EmailAddress," "),k(),M("ngIf",(o.individualProfileEmail==null?null:o.individualProfileEmail.EmailAddress)!=null&&(o.individualProfileEmail==null?null:o.individualProfileEmail.EmailAddress)!=""&&!(o.individualProfileEmail!=null&&o.individualProfileEmail.IsConfirmed)&&(o.individualProfileEmail==null?null:o.individualProfileEmail.IsConfirmed)!=null),k(),M("ngIf",(o.individualProfileEmail==null?null:o.individualProfileEmail.EmailAddress)!=null&&(o.individualProfileEmail==null?null:o.individualProfileEmail.EmailAddress)!=""&&(o.individualProfileEmail==null?null:o.individualProfileEmail.IsConfirmed))}}function Es(r,n){if(r&1){let o=ee();p(0,"a",27),q("keypress",function(t){H(o);let i=F();return U(i.openB2CModal("Mob",t))})("click",function(){H(o);let t=F();return U(t.editMobile())}),h()}}function Ps(r,n){if(r&1){let o=ee();p(0,"div",7)(1,"label"),_(2,"Other number:"),h(),p(3,"div"),_(4),p(5,"a",28),q("keypress",function(t){H(o);let i=F();return U(i.openDialogOnKeyPress(t,"other-number"))})("click",function(){H(o);let t=F();return U(t.editOtherMobile())})("click",function(){H(o);let t=F();return U(t.openOtherNumberDialog())}),h()()()}if(r&2){let o=F();k(4),le(" ",o.otherIndividualPhone&&o.otherIndividualPhone.PhoneNumber?o.otherIndividualPhone.PhoneNumber:o.filteredOtherNumber.length>0?o.filteredOtherNumber[0].PhoneNumber:""," \xA0 \xA0 \xA0 \xA0 \xA0 ")}}function As(r,n){if(r&1&&(p(0,"p"),_(1),ve(2,"titlecase"),h()),r&2){let o=F(2);k(),le(" ",Re(2,1,o.individualProfileAddress.HouseName))}}function Ds(r,n){if(r&1&&(p(0,"p"),_(1),ve(2,"titlecase"),h()),r&2){let o=F(2);k(),le(" ",Re(2,1,o.individualProfileAddress.AddressLine1))}}function Ss(r,n){if(r&1&&(p(0,"p"),_(1),ve(2,"titlecase"),h()),r&2){let o=F(2);k(),le(" ",Re(2,1,o.individualProfileAddress.AddressLine2))}}function Fs(r,n){if(r&1&&(p(0,"p"),_(1),ve(2,"titlecase"),h()),r&2){let o=F(2);k(),le(" ",Re(2,1,o.individualProfileAddress.AddressLine3))}}function Is(r,n){if(r&1&&(p(0,"p"),_(1),ve(2,"titlecase"),h()),r&2){let o=F(2);k(),le(" ",Re(2,1,o.individualProfileAddress.CityOrTown))}}function Bs(r,n){if(r&1&&(p(0,"p"),_(1),ve(2,"titlecase"),h()),r&2){let o=F(2);k(),le(" ",Re(2,1,o.individualProfileAddress.County))}}function Os(r,n){if(r&1&&(p(0,"p"),_(1),ve(2,"uppercase"),h()),r&2){let o=F(2);k(),le(" ",Re(2,1,o.individualProfileAddress.PostCode))}}function Ms(r,n){if(r&1&&(p(0,"p"),_(1),ve(2,"titlecase"),h()),r&2){let o=F(2);k(),le(" ",Re(2,1,o.individualProfileAddress.Country))}}function Ns(r,n){if(r&1&&(p(0,"section"),X(1,As,3,3,"p",9)(2,Ds,3,3,"p",9)(3,Ss,3,3,"p",9)(4,Fs,3,3,"p",9)(5,Is,3,3,"p",9)(6,Bs,3,3,"p",9)(7,Os,3,3,"p",9)(8,Ms,3,3,"p",9),h()),r&2){let o=F();k(),M("ngIf",o.individualProfileAddress.HouseName!=""&&o.individualProfileAddress.HouseName!=null&&o.individualProfileAddress.HouseName!=null&&o.individualProfileAddress.HouseName!="."),k(),M("ngIf",o.individualProfileAddress.AddressLine1!=""&&o.individualProfileAddress.AddressLine1!=null&&o.individualProfileAddress.AddressLine1!=null&&o.individualProfileAddress.AddressLine1!="."),k(),M("ngIf",o.individualProfileAddress.AddressLine2!=""&&o.individualProfileAddress.AddressLine2!=null&&o.individualProfileAddress.AddressLine2!=null&&o.individualProfileAddress.AddressLine2!="."),k(),M("ngIf",o.individualProfileAddress.AddressLine3!=""&&o.individualProfileAddress.AddressLine3!=null&&o.individualProfileAddress.AddressLine3!=null&&o.individualProfileAddress.AddressLine3!="."),k(),M("ngIf",o.individualProfileAddress.CityOrTown!=""&&o.individualProfileAddress.CityOrTown!=null&&o.individualProfileAddress.CityOrTown!=null&&o.individualProfileAddress.CityOrTown!="."),k(),M("ngIf",o.individualProfileAddress.PostCode!=""&&o.individualProfileAddress.County!=null&&o.individualProfileAddress.County!=null&&o.individualProfileAddress.County!="."),k(),M("ngIf",o.individualProfileAddress.PostCode!=""&&o.individualProfileAddress.PostCode!=null&&o.individualProfileAddress.PostCode!=null&&o.individualProfileAddress.PostCode!="."),k(),M("ngIf",o.individualProfileAddress.Country!=""&&o.individualProfileAddress.Country!=null&&o.individualProfileAddress.Country!=null&&o.individualProfileAddress.Country!=".")}}function Ts(r,n){if(r&1){let o=ee();p(0,"a",29),q("click",function(){H(o);let t=F();return U(t.editAddress())})("keypress",function(t){H(o);let i=F();return U(i.openB2CModal("address",t))}),h()}}function Ls(r,n){if(r&1){let o=ee();p(0,"a",29),q("click",function(){H(o);let t=F();return U(t.openChildAddressDialog())})("keypress",function(t){H(o);let i=F();return U(i.openDialogOnKeyPress(t,"child-address"))}),h()}}var fr=(()=>{let n=class n{clickout(e){let t=this;$(e.target).is(".medical-info-tooltip.child-email")===!1&&$(e.target).is(".medical-info-tooltip.child-email p")===!1&&$(e.target).is("a.note-info.child-email")===!1&&t.showInfo5&&(t.showInfo5=!1)}constructor(e,t,i,s,a,l,g){this.notificationService=e,this.getFullNameService=t,this.successPopupService=i,this.checkYouthService=s,this.router=a,this.dialog=l,this.injector=g,this.otherPhoneNumber="",this.otherNumber="",this.filteredOtherNumber=[],this.filteredOtherPhone=[],this.isOtherNumber=!1,this.phoneTypes=uo,this.otherIndividualPhone=new ui,this.emergencyContactData=new ki,this.sendEmailNotification=!1,this.OtherMobileControl=new Me("",[Ve.required,In(/^\d*$/)]),this.emergencyContactNumberControl=new Me("",[Ve.required,In(/^\d*$/)]),this.emergencyContactNumber="",this.emergencyContactControl=new Me("",[Ve.required,Ve.maxLength(999)]),this.emergencyContact="",this.isProfane=!1,this.childEmailControl=new Me("",[Ve.required,Ve.email]),this.childPostCodeControl=new Me("",[Ve.required]),this.childEmail="",this.isChildAgeNotProperForEmail=!1,this.isDuplicateChildEmail=!1,this.isLessThanFourteen=!1,this.showEmailAlert=!1,this.isYouth=!1,this.showError=!1,this.individualProfile=new hi,this.isChildAccount=!1,this.parentAccounts=[],this.fullName="",this.individualProfileAddress=new xo,this.editChildAddress={},this.individualProfilePhone=new ui,this.individualProfileEmail=new mo,this.showInfo1=!1,this.showInfo2=!1,this.showInfo3=!1,this.showInfo4=!1,this.showInfo5=!1,this.preferredEmail="",this.sharedService=g.get(xe),this.ipsService=g.get(Se),this.dynamicStyleLoaderService=g.get(Fe),this.sendEmailNotificationService=g.get(Lo)}openChildAddressDialog(){this.dynamicStyleLoaderService.attachDialogStyles(),delete this.dialogInstance,this.ipsService.getChildIndividualProfile(this.individualProfile.Fan.toString()).subscribe(e=>{this.individualProfileAddress=e.IndividualProfileAddress[0]}),this.editChildAddress=this.individualProfileAddress,this.dialogInstance=this.dialog.open(Ro,{width:"60%",disableClose:!0,position:{top:"25px"},data:{parentInstance:this}}),this.dialogInstance.afterClosed().subscribe(()=>{this.dynamicStyleLoaderService.removeDialogStyles(),this.childPostCodeControl.reset(),this.showError=!1})}openChildEmailDialog(){this.dynamicStyleLoaderService.attachDialogStyles(),delete this.dialogInstance,this.dialogInstance=this.dialog.open(To,{width:"60%",disableClose:!0,position:{top:"25px"},data:{parentInstance:this}}),this.dialogInstance.afterClosed().subscribe(()=>{this.childEmailControl.reset(),this.childEmailControl.setValue(this.individualProfileEmail.EmailAddress),this.isChildAgeNotProperForEmail=!1,this.isDuplicateChildEmail=!1,this.dynamicStyleLoaderService.removeDialogStyles()})}openOtherNumberDialog(){this.editOtherMobile(),this.dynamicStyleLoaderService.attachDialogStyles(),delete this.dialogInstance,this.dialogInstance=this.dialog.open(Oo,{width:"60%",disableClose:!0,position:{top:"25px"},data:{parentInstance:this}}),this.dialogInstance.afterClosed().subscribe(()=>{this.dynamicStyleLoaderService.removeDialogStyles()})}OpenEmergencyContactDialog(){this.editOtherMobile(),this.dynamicStyleLoaderService.attachDialogStyles(),delete this.dialogInstance,this.dialogInstance=this.dialog.open(Mo,{width:"60%",disableClose:!0,position:{top:"25px"},data:{parentInstance:this}}),this.dialogInstance.afterClosed().subscribe(()=>{this.emergencyContactControl.reset(),this.isProfane=!1,this.emergencyContactControl.setValue(this.emergencyContactData.EmergencyContactName),this.dynamicStyleLoaderService.removeDialogStyles()})}OpenEmergencyContactNumberDialog(){this.editOtherMobile(),this.dynamicStyleLoaderService.attachDialogStyles(),delete this.dialogInstance,this.dialogInstance=this.dialog.open(No,{width:"60%",disableClose:!0,position:{top:"25px"},data:{parentInstance:this}}),this.dialogInstance.afterClosed().subscribe(()=>{this.emergencyContactNumberControl.reset(),this.emergencyContactNumberControl.setValue(this.emergencyContactData.EmergencyContactNumber),this.dynamicStyleLoaderService.removeDialogStyles()})}checkIndividualProfilePhone(){this.individualProfile!=null&&this.individualProfile!=null&&this.individualProfile.Indiv
4idualProfilePhone!=null&&(this.individualProfilePhone=this.filterMobilePhone(this.individualProfile.IndividualProfilePhone),this.otherIndividualPhone=this.filterOtherPhone(this.individualProfile.IndividualProfilePhone),this.filteredOtherPhone=this.individualProfile.IndividualProfilePhone.filter(e=>e.PhoneType=="OTHPHO"),this.filteredOtherNumber=this.individualProfile.IndividualProfilePhone.filter(e=>e.PhoneType!="MOBI"),this.filteredOtherNumber=this.filteredOtherNumber.filter(e=>e.PhoneNumber!=""&&e.PhoneNumber!=null))}checkIndividualProfileAddress(){this.individualProfile!=null&&this.individualProfile!=null&&this.individualProfile.IndividualProfileAddress!=null&&(this.individualProfileAddress=this.individualProfile.IndividualProfileAddress[0])}ngOnChanges(e){if(e.individualProfile){if(this.checkIndividualProfileAddress(),this.checkIndividualProfilePhone(),this.sendEmailNotificationService.sendProfileChangeNotification(),this.individualProfile!=null&&this.individualProfile!=null&&this.individualProfile.IndividualProfileEmail.length!=0&&this.individualProfile.IndividualProfileEmail!=null){let t;t=this.findPreferredEmail(this.individualProfile.IndividualProfileEmail),this.individualProfileEmail=t,this.childEmail=this.individualProfileEmail.EmailAddress,this.childEmailControl.setValue(this.childEmail)}else this.individualProfileEmail.EmailAddress="",this.childEmail="",this.childEmailControl.setValue(this.childEmail);if(this.individualProfile!=null&&this.individualProfile!=null){let t=this.individualProfile.Fan.toString();this.ipsService.getEmergencyContact(t,this.isChildAccount).subscribe(i=>{console.log(i),this.emergencyContactData=i,this.emergencyContactNumber=this.emergencyContactData.EmergencyContactNumber,this.emergencyContactNumberControl.setValue(this.emergencyContactNumber),this.emergencyContact=this.emergencyContactData.EmergencyContactName,this.emergencyContactControl.setValue(this.emergencyContact)})}if(this.individualProfile!=null&&this.individualProfile!=null&&this.individualProfile.DateOfBirth!=null){let t=new Date(this.individualProfile.DateOfBirth);this.isLessThanFourteen=this.checkYouthService.isLessThanFourteen(t),this.isYouth=this.checkYouthService.isYouth(t),this.showEmailAlert=!this.isYouth&&(this.childEmail==null||this.childEmail=="")}this.setFullName(),this.getFullNameService.getNameChangeSubject().subscribe(t=>{this.individualProfile.FirstName=t.FirstName,this.individualProfile.MiddleName=t.MiddleName,this.individualProfile.LastName=t.LastName,this.setFullName()})}}setFullName(){this.fullName=this.getFullNameService.setFullName(this.individualProfile.FirstName,this.individualProfile.MiddleName,this.individualProfile.LastName)}filterMobilePhone(e){return e.filter(i=>i.PhoneType=="MOBI")[0]}filterOtherPhone(e){return e.filter(i=>i.PhoneType=="OTHPHO")[0]}editEmail(){let e=window;localStorage.setItem("isB2Cupdate","true"),localStorage.setItem("B2CupdateType","email"),e.dataLayer.push({event:"edit-labels",generalData:"contact details - email"}),this.router.navigateByUrl("account-management/profile/edit-email")}editMobile(){let e=window;localStorage.setItem("isB2Cupdate","true"),localStorage.setItem("B2CupdateType","mobile"),e.dataLayer.push({event:"edit-labels",generalData:"contact details - mobile number"}),this.router.navigateByUrl("account-management/profile/edit-mobile")}editAddress(){let e=window;localStorage.setItem("isB2Cupdate","true"),localStorage.setItem("B2CupdateType","address"),e.dataLayer.push({event:"edit-labels",generalData:"contact details - address"}),this.router.navigateByUrl("account-management/profile/edit-address")}editOtherMobile(){window.dataLayer.push({event:"edit-labels",generalData:"contact details - other number"}),this.filteredOtherPhone.length!=0?(this.isOtherNumber=!0,this.filteredOtherNumber=[],this.otherNumber=this.filteredOtherPhone[0].PhoneNumber.replace(/ /g,"")):this.filteredOtherNumber.length==1?(this.isOtherNumber=!0,this.otherNumber=this.filteredOtherNumber[0].PhoneNumber.replace(/ /g,"")):(this.isOtherNumber=!1,this.otherNumber="",this.filteredOtherNumber.length>=1&&(this.otherPhoneNumber=this.filteredOtherNumber[0].ProfilePhoneId.toString()))}openModal(e){if(e.keyCode==13||e.which==13){let t=e.target.dataset.target;$(t).modal("show")}}openDialogOnKeyPress(e,t){if(e.keyCode===13||e.which===13)switch(t){case"child-address":this.openChildAddressDialog();break;case"email-address":this.openChildEmailDialog();break;case"other-number":this.openOtherNumberDialog();break;case"emergency-contact":this.OpenEmergencyContactDialog();break;case"emergency-contact-number":this.OpenEmergencyContactNumberDialog();break}}
4openB2CModal(e,t){(t.keyCode==13||t.which==13)&&(e=="Mob"&&this.editMobile(),e=="email"&&this.editEmail(),e=="address"&&this.editAddress())}checkAndSave(e){this.isOtherNumber||this.individualProfile.IndividualProfilePhone.push({IndividualProfileId:this.individualProfile.IndividualProfileId,IsActive:!0,IsPreferred:!1,PhoneNumber:e.PhoneNumber,PhoneType:"OTHPHO",ProfilePhoneId:0})}checkAndSaveOthernum(e,t){(!this.isOtherNumber&&e!="new-number"||this.isOtherNumber&&e==""||!this.isOtherNumber&&e=="new-number"&&this.OtherMobileControl.valid||this.isOtherNumber&&this.OtherMobileControl.valid)&&this.ipsService.updateOtherNumber(t).subscribe(i=>{this.dialogInstance.close(),this.successPopupService.setSuccessMessage("Your other phone number is updated"),this.successPopupService.show();for(let s of this.individualProfile.IndividualProfilePhone)s.PhoneType=="OTHPHO"&&(s.PhoneNumber=t.PhoneNumber,this.isOtherNumber=!0);this.checkAndSave(t),this.approvedOtherNumber(t),this.otherIndividualPhone=this.filterOtherPhone(this.individualProfile.IndividualProfilePhone),this.filteredOtherPhone=this.individualProfile.IndividualProfilePhone.filter(s=>s.PhoneType=="OTHPHO")},i=>{})}saveOtherNumDetails(e,t){this.otherNumber=t;let i;if(this.isOtherNumber)i={FanCode:this.individualProfile.Fan,PhoneNumber:this.otherNumber,PhoneType:"OTHPHO",IsPreferred:!0,IsActive:!0};else if(e=="")i={FanCode:this.individualProfile.Fan,PhoneNumber:"",PhoneType:"OTHPHO",IsPreferred:!1,IsActive:!1};else if(e=="new-number")i={FanCode:this.individualProfile.Fan,PhoneNumber:this.otherNumber,PhoneType:"OTHPHO",IsPreferred:!0,IsActive:!0};else{let s=new ui;for(let a of this.individualProfile.IndividualProfilePhone)a.ProfilePhoneId==e&&(s=a);i={FanCode:this.individualProfile.Fan,PhoneNumber:s.PhoneNumber,PhoneType:"OTHPHO",IsPreferred:s.IsPreferred,IsActive:s.IsActive}}this.checkAndSaveOthernum(e,i)}approvedOtherNumber(e){let t=!1;for(let i of this.individualProfile.IndividualProfilePhone)i.PhoneType=="OTHPHO"&&(t=!0);t||this.individualProfile.IndividualProfilePhone.push({IndividualProfileId:this.individualProfile.IndividualProfileId,IsActive:!0,IsPreferred:!1,PhoneNumber:e.PhoneNumber,PhoneType:"OTHPHO",ProfilePhoneId:0})}closeTooltip(e){e.target.offsetParent.offsetParent.firstChild.focus()}closeTooltipTab(e){(e.keyCode==13||e.which==13)&&e.target.offsetParent.offsetParent.firstChild.focus()}saveEmergencyContactNumber(e){if(this.emergencyContactNumber=e,this.emergencyContactNumberControl.markAsDirty(),this.emergencyContactNumberControl.valid&&this.emergencyContactData.EmergencyContactNumber!=e){let t={FanCode:this.individualProfile.Fan,EmergencyContactName:this.emergencyContactData.EmergencyContactName,EmergencyContactNumber:e,IsActive:!0};this.ipsService.updateEmergencyContact(t,this.isChildAccount).subscribe(i=>{this.dialogInstance.close(),this.isChildAccount?this.successPopupService.setSuccessMessage("Your child's emergency contact number is updated"):this.successPopupService.setSuccessMessage("Your emergency contact number is updated"),this.successPopupService.show(),this.emergencyContactNumber=e,this.emergencyContactNumberControl.setValue(this.emergencyContactNumber),this.emergencyContactData.EmergencyContactNumber=e},i=>{})}}saveEmergencyContact(e){this.emergencyContact=e,this.emergencyContactControl.markAsDirty();let t=this.emergencyContactData.EmergencyContactName?this.emergencyContactData.EmergencyContactName.toLowerCase():this.emergencyContactData.EmergencyContactName;if(this.emergencyContactControl.valid&&t!=e.toLowerCase()){if(this.checkBadWordsUsingBadWordList(e))this.isProfane=!0;else{let i={FanCode:this.individualProfile.Fan,EmergencyContactName:e,EmergencyContactNumber:this.emergencyContactData.EmergencyContactNumber,IsActive:!0};this.ipsService.updateEmergencyContact(i,this.isChildAccount).subscribe(s=>{this.dialogInstance.close(),this.isChildAccount?this.successPopupService.setSuccessMessage("Your child's emergency contact is updated"):this.successPopupService.setSuccessMessage("Your emergency contact is updated"),this.successPopupService.show(),this.emergencyContact=e,this.emergencyContactControl.setValue(this.emergencyContact),this.emergencyContactData.EmergencyContactName=e},s=>{})}console.log(this.isProfane)}}
4saveChildEmail(e){this.isYouth?this.saveChildEmailRequest(e):this.showEmailAlert?this.saveChildEmailRequest(e):this.isChildAgeNotProperForEmail=!0}saveChildEmailRequest(e){if(this.sendEmailNotification=!0,this.childEmailControl.markAsDirty(),this.childEmailControl.valid){let t={FanCode:this.individualProfile.Fan,EmailAddress:e,EmailType:"EMAILHOME",IsConfirmed:!1,IsPreferred:!0,IsActive:!0};this.ipsService.updateChildEmail(t,this.sendEmailNotification).subscribe({next:i=>{this.dialogInstance.close(),this.successPopupService.setSuccessMessage("Your child's email is updated"),this.successPopupService.show(),this.childEmail=e,this.childEmailControl.setValue(this.childEmail),this.individualProfileEmail.EmailAddress=this.childEmail,this.individualProfileEmail.IsConfirmed=i.IsConfirmed,this.showEmailAlert=!1},error:i=>{console.log(i.error.ErrorCode),i.error.ErrorCode=="409_CONFLICT"&&(this.isDuplicateChildEmail=!0)}})}}saveChildAddress(e){if(this.childPostCodeControl.invalid)this.showError=!0;else{let t={FanCode:this.individualProfile.Fan,HouseName:e.HouseName,AddressLine1:e.AddressLine1,AddressLine2:e.AddressLine2,AddressLine3:e.AddressLine3,CityOrTown:e.CityOrTown,County:e.County,PostCode:e.PostCode,Country:e.Country};this.ipsService.updateChildAddress(t).subscribe(i=>{this.dialogInstance.close(),this.successPopupService.setSuccessMessage("Your child's address is updated"),this.successPopupService.show(),this.editChildAddress=e,this.individualProfileAddress=this.editChildAddress},i=>{})}}onInputEmergencyContact(){this.isProfane=!1}onInputChildEmail(){this.isDuplicateChildEmail=!1}checkBadWordsUsingBadWordList(e){let t=!1,s=e.toLowerCase().split(" ");return this.obscenities=pr.default,s.forEach(a=>{this.obscenities.array.indexOf(a)>-1&&(t=!0)}),t}findPreferredEmail(e){let t=[];return t=e.filter(i=>i.IsPreferred&&i.IsActive),(t.length==0||t==null||t==null)&&(t=e.filter(i=>i.IsActive)),t[0]}reset(){this.dialogInstance.close()}};n.\u0275fac=function(t){return new(t||n)(Y(Tt),Y(Ge),Y(Ke),Y(Pe),Y(pt),Y(ze),Y(qe))},n.\u0275cmp=fe({type:n,selectors:[["app-contact-details"]],hostBindings:function(t,i){t&1&&q("click",function(a){return i.clickout(a)},lt)},inputs:{individualProfile:"individualProfile",isChildAccount:"isChildAccount",parentAccounts:"parentAccounts"},standalone:!1,features:[ke],decls:38,vars:17,consts:[[1,"info-panel"],[1,"info-panel-heading"],[1,"info-panel-title"],[1,"phone"],[1,"info-panel-collapse","in","contact-details",3,"ngClass"],["class","form-group",4,"ngIf"],["class","form-group",3,"ngClass",4,"ngIf"],[1,"form-group"],["role","button","tabindex","0","class","edit-details","aria-label","edit Mobile number","title","Edit Mobile number",3,"keypress","click",4,"ngIf"],[4,"ngIf"],["role","button","tabindex","0","class","edit-details","aria-label","edit address","title","Edit address",3,"click","keypress",4,"ngIf"],["role","button","tabindex","0","aria-label","edit emergency contact","title","Edit emergency contact","data-toggle","modal","data-backdrop","static",1,"edit-details",3,"keypress","click"],["role","button","tabindex","0","aria-label","edit emergency contact number","title","Edit emergency contact number",1,"edit-details",3,"keypress","click"],[3,"ngClass"],["class","red","aria-label","email Unconfirmed",4,"ngIf"],["class","green","aria-label","email confirmed",4,"ngIf"],["role","link","tabindex","0","aria-label","EDIT OR VERIFY EMAIL",1,"edit-details-email",3,"keypress","click"],["aria-label","email Unconfirmed",1,"red"],["aria-label","email confirmed",1,"green"],[1,"form-group",3,"ngClass"],["class","note-info child-email","role","link","aria-label","child email info details","tabindex","0",3,"keypress","click",4,"ngIf"],["tabindex","-1","aria-label","child email info tooltip","class","medical-info-tooltip child-email","role","tooltip",4,"ngIf"],["role","button","tabindex","0","aria-label","edit emergency contact number",1,"edit-details",3,"keypress","click"],["role","link","aria-label","child email info details","tabindex","0",1,"note-info","child-email",3,"keypress","click"],["tabindex","-1","aria-label","child email info tooltip","role","tooltip",1,"medical-info-tooltip","child-email"],["tabindex","0"],["role","button","tabindex","0","aria-label","Got it- Close nationality info details",1,"dbs-button",3,"click","keypress"],["role","button","tabindex","0","aria-label","edit Mobile number","title","Edit Mobile number",1,"edit-details",3,"keypress","click"],["role","button","tabindex","0","title","Edit other number","aria-label","edit other number","data-toggle","modal","data-target","#edit-other-phone-modal","data-backdrop","static",1,"edit-details",3,"keypress","click"],["role","button","tabindex","0","aria-label","edit address","title","Edit address",1,"edit-details",3,"click","keypress"]],template:function(t,i){t&1&&(p(0,"section")(1,"div",0)(2,"div",1)(3,"h3",2)(4,"label",3),_(5,"Contact Details"),h()()(),p(6,"div",4),X(7,bs,9,6,"div",5)(8,ws,11,11,"div",6),p(9,"div",7)(10,"label"),_(11,"Mobile number:"),h(),p(12,"div"),_(13),ve(14,"displayOnlyDigitsPipe"),X(15,Es,1,0,"a",8),h()(),X(16,Ps,6,1,"div",5),p(17,"div",7)(18,"label"),_(19,"Address:"),h(),p(20,"div"),X(21,Ns,9,8,"section",9)(22,Ts,1,0,"a",10)(23,Ls,1,0,"a",10),h()(),p(24,"div",7)(25,"label"),_(26,"Emergency contact:"),h(),p(27,"div"),_(28),ve(29,"titlecase"),p(30,"a",11),q("keypress",function(a){return i.openDialogOnKeyPress(a,"emergency-contact")})("click",function(){return i.OpenEmergencyContactDialog()}),h()()(),p(31,"div",7)(32,"label"),_(33,"Emergency contact number:"),h(),p(34,"div"),_(35),ve(36,"displayOnlyDigitsPipe"),p(37,"a",12),q("keypress",function(a){return i.openDialogOnKeyPress(a,"emergency-contact-number")})("click",function(){return i.OpenEmergencyContactNumberDialog()}),h()()()()()()),t&2&&(k(6),M("ngClass",i.isChildAccount?"child-detail
4s":""),k(),M("ngIf",!i.isChildAccount),k(),M("ngIf",i.isChildAccount&&!i.isLessThanFourteen),k(5),le(" ",i.individualProfilePhone?i.individualProfilePhone.PhoneNumber:Re(14,11,"")," "),k(2),M("ngIf",!i.isChildAccount),k(),M("ngIf",!i.isChildAccount),k(5),M("ngIf",i.individualProfileAddress!=null),k(),M("ngIf",!i.isChildAccount),k(),M("ngIf",i.isChildAccount&&i.isYouth),k(5),le(" ",Re(29,13,i.emergencyContactData.EmergencyContactName)," "),k(7),le(" ",Re(36,15,i.emergencyContactData.EmergencyContactNumber)," "))},dependencies:[ct,ye,Kn,si,dr],styles:[".red[_ngcontent-%COMP%]{margin-left:34px;color:#e1261c;font-family:Arial,helvetica,sans-serif;font-size:13px;line-height:15px;margin-top:10px}.unVerifiedEmail[_ngcontent-%COMP%]{color:#a01e21}.red.no-margin[_ngcontent-%COMP%]{margin-left:0}.note-info.child-email[_ngcontent-%COMP%]{margin-left:-40px;top:0}.medical-info-tooltip.child-email[_ngcontent-%COMP%]:before{right:266px;border-right:12px solid #E0E0E0;border-left:none}.edit-details-email[_ngcontent-%COMP%]{text-align:right;color:#0068b2;
4font-family:FSJack-Medium,arial,helvetica,sans-serif;font-size:14px;line-height:17px;text-transform:uppercase;cursor:pointer;float:right}.email-alert-position[_ngcontent-%COMP%]{position:relative}.email-alert-tag[_ngcontent-%COMP%]{border-left:5px solid red;position:absolute;left:-30px;top:-17px;height:56px}@media (max-width:767px){.medical-info-tooltip.child-email[_ngcontent-%COMP%]{margin-top:4px}.medical-info-tooltip.child-email[_ngcontent-%COMP%]:before{right:120px;transform:rotate(90deg);top:-17px}.note-info.child-email[_ngcontent-%COMP%]{margin-left:0;top:-22px!important;left:130px}.email-alert-tag[_ngcontent-%COMP%]{left:-21px;top:-19px}}"]});let r=n;return r})();var ur=oi(Wt());var hr=(()=>{let n=class n{constructor(e){this.http=e,this.disabilityInfoModalRequest=new go,this.config=be.apiEndPoints,this.referenceDataSubkyServerUrl=this.config.serverUrl+this.config.services.referenceDataSubky,this.disabilityApi=this.referenceDataSubkyServerUrl+this.config.endpoints.listOfDisabilities,this.listOfDisabilitySubscriptionValue=be.listOfDisabilitiesSubscriptionValue}getAllDisabilities(){console.log("Called new service : ");let e={headers:new ue({"Content-Type":"application/json","Ocp-Apim-Subscription-Key":`${this.listOfDisabilitySubscriptionValue}`,"Cache-Control":"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})};return this.http.get(`${this.disabilityApi}`,e)}};n.\u0275fac=function(t){return new(t||n)(De(Je))},n.\u0275prov=Le({token:n,factory:n.\u0275fac,providedIn:"root"});let r=n;return r})();function zs(r,n){if(r&1){let o=ee();p(0,"div",26)(1,"p",27),_(2," This data is optional, but will help us be aware of your representative football eligibility."),ie(3,"br")(4,"br"),h(),p(5,"button",28),q("click",function(t){H(o);let i=F();return i.showInfo2=!1,U(i.closeTooltip(t))})("keypress",function(t){H(o);let i=F();return i.closeTooltipTab(t),U(i.showInfo2=!1)}),_(6," GOT IT "),h()()}}function js(r,n){if(r&1){let o=ee();p(0,"div",29)(1,"p",27),_(2," This data is optional, but will help us be aware of your representative football eligibility."),ie(3,"br")(4,"br"),h(),p(5,"button",28),q("click",function(t){H(o);let i=F();return i.showInfo4=!1,U(i.closeTooltip(t))})("keypress",function(t){H(o);let i=F();return i.closeTooltipTab(t),U(i.showInfo4=!1)}),_(6," GOT IT "),h()()}}function Hs(r,n){if(r&1){let o=ee();p(0,"div",30)(1,"p",27),_(2," This data is optional but is used to ensure that you are registered for correct teams and leagues."),ie(3,"br")(4,"br"),h(),p(5,"button",31),q("click",function(t){H(o);let i=F();return i.showInfo1=!1,U(i.closeTooltip(t))})("keypress",function(t){H(o);let i=F();return i.closeTooltipTab(t),U(i.showInfo1=!1)}),_(6," GOT IT "),h()()}}function Us(r,n){if(r&1){let o=ee();p(0,"a",32),q("keyup",function(t){H(o);let i=F();return U(i.openDialogOnKeyPress(t,"gender"))})("click",function(){H(o);let t=F();return U(t.openGenderDialog())}),h()}}function qs(r,n){if(r&1){let o=ee();p(0,"a",33),q("keypress",function(t){H(o);let i=F();return U(i.genderEditTab(t))})("click",function(){H(o);let t=F();return t.genderEdit(),U(t.editGenderGA())}),h()}}function Gs(r,n){if(r&1){let o=ee();p(0,"div",38)(1,"p",27),_(2," This data is optional but it is useful to let us know of any medical conditions. This will help ensure your safety and ensure you're and well being during any footabll participation."),ie(3,"br")(4,"br"),h(),p(5,"button",39),q("click",function(t){H(o);let i=F(2);return i.showInfo5=!1,U(i.closeTooltip(t))})("keypress",function(t){H(o);let i=F(2);return i.closeTooltipTab(t),U(i.showInfo5=!1)}),_(6," GOT IT "),h()()}}function $s(r,n){if(r&1&&(Dt(0),_(1),St()),r&2){let o=F(2);k(),le("",o.selectedDisabilties.length," selected")}}function Ws(r,n){if(r&1){let o=ee();p(0,"div",5)(1,"label",6),_(2,"Disability:"),h(),p(3,"div")(4,"a",34),q("keypress",function(){H(o);let t=F();return U(t.showInfo5=!0)})("click",function(){H(o);let t=F();return t.showInfo5=!0,t.showInfo1=!1,t.showInfo2=!1,t.showInfo3=!1,U(t.showInfo4=!1)}),h(),X(5,Gs,7,0,"div",35)(6,$s,2,1,"ng-container",36),p(7,"a",37),q("keyup",function(t){H(o);let i=F();return U(i.openDialogOnKeyPress(t,"disability"))})("click",function(){H(o);let t=F();return U(t.openDisabilityDialog())}),h()()()}if(r&2){let o=F();k(5),M("ngIf",o.showInfo5),k(),M("ngIf",o.selectedDisabilties.length>0)}}function Ys(r,n){if(r&1){let o=ee();p(0,"div",40)(1,"p",27),_(2," This data is optional, but it is useful to let us know of any medical conditions. This will help ensure your safety and well being during any football participation."),ie(3,"br")(4,"br"),h(),p(5,"button",41),q("click",function(t){H(o);let i=F();return i.showInfo3=!1,U(i.closeTooltip(t))})("keypress",function(t){H(o);let i=F();return i.closeTooltipTab(t),U(i.showInfo3=!1)}),_(6," GOT IT "),h()()}}var mr=(()=>{let n=class n{get disabilityFormArray(){return this.disabilityForm?.controls.disabilities}clickout(e){let t=this;$(e.target).is(".medical-info-tooltip")===!1&&$(e.target).is(".medical-info-tooltip p")===!1&&$(e.target).is("a.note-info.medicalNote")===!1&&t.showInfo1&&(t.showInfo1=!1),$(e.target).is(".medical-info-tooltip")===!1&&$(e.target).is(".medical-info-tooltip p")===!1&&$(e.target).is("a.note-info.medicalNote")===!1&&t.showInfo2&&(t.showInfo2=!1),$(e.target).is(".medical-info-tooltip")===!1&&$(e.target).is(".medical-info-tooltip p")===!1&&$(e.target).is("a.note-info.medicalNote")===!1&&t.showInfo3&&(t.showInfo3=!1),$(e.target).is(".medical-info-tooltip")===!1&&$(e.target).is(".medical-info-tooltip p")===!1&&$(e.target).is("a.note-info.medicalNote")===!1&&t.showInfo4&&(t.showInfo4=!1),$(e.target).is(".medical-info-tooltip")===!1&&$(e.target).is(".medical-info-tooltip p")===!1&&$(e.target).is("a.note-info.medicalNote")===!1&&t.showInfo5&&(t.showInfo5=!1)}constructor(e,t,i,s,a,l,g){this.ipsService=e,this.referenceDataSubkyService=t,this.successPopupService=i,this.formBuilder=s,this.checkYouthService=a,this.injector=l,this.dialog=g,this.addMedicalFormControl=new Me("",[Ve.maxLength(999)]),this.addPlaceOfBirthFormControl=new Me("",[Ve.maxLength(99)]),this.noLengthyCharacter=!1,this.showInfo1=!1,this.showInfo2=!1,this.showInfo3=!1,this.showInfo4=!1,this.showInfo5=!1,this.dobError=!1,this.nationalityError=!1,this.genderError=!1,this.genderOptions=[{ID:1,Name:"Male"},{ID:2,Name:"Female"},{ID:3,Name:"Prefer not to say"}],this.myControl=new Me,this.options=[],this.isProfane=!1,this.checkMedicalConsent=!1,this.disabilityInfo="",this.showDisabilityInfo=!0,this.disabilityLink=null,this.selectedDisabilties=[],this.showDisabilityTitleInfo=!1,this.disabilitySave=!1,this.childAccountFlag=!1,this.disability=[],this.tempArr2=[],this.showErrorMessage=!1,this.parentFanCode=null,this.sharedService=l.get(xe),this.dynamicStyleLoaderService=l.get(Fe),this.getFullNameService=l.get(Ge),this.getOtherDetailsData(),this.selectedGender={gender:""}}ngOnInit(){this.filteredOptions=this.myControl.valueChanges.pipe(Vn(""),qt(e=>this.filterNaltionality(e))),this.disabilityForm=this.formBuilder.group({disabilities:new di([],this.minSelectedCheckboxes(1))}),this.getAllDisabilities()}openDialogOnKeyPress(e,t){if(e.keyCode===13||e.which===13)switch(t){case"nationality":this.openNationalityDialog();break;case"place-of-birth":this.openPlaceOfBirthDialog();break;case"gender":this.openGenderDialog();break;case"medical-information":this.openMedicalInfoDialog();break;case"disability":this.openDisabilityDialog()}}openNationalityDialog(){this.editNationalityGA(),this.dynamicStyleLoaderService.attachDialogStyles(),delete this.dialogInstance,this.dialogInstance=this.dialog.open(Vo,{width:"60%",disableClose:!0,position:{top:"25px"},data:{parentInstance:this}}),this.dialogInstance.afterClosed().subscribe(()=>{this.myControl.reset(),this.nationalityError=!1,this.myControl.setValue(this.showNationality),this.dynamicStyleLoaderService.removeDialogStyles()})}openPlaceOfBirthDialog(){this.dynamicStyleLoaderService.attachDialogStyles(),delete this.dialogInstance,this.dialogInstance=this.dialog.open(zo,{width:"60%",disableClose:!0,position:{top:"25px"},data:{parentInstance:this}}),this.dialogInstance.afterClosed().subscribe(()=>{this.addPlaceOfBirthFormControl.reset(),this.isProfane=!1,this.addPlaceOfBirthFormControl.setValue(this.individualProfile.PlaceOfBirth),this.dynamicStyleLoaderService.removeDialogStyles()})}openGenderDialog(){this.editGenderGA(),this.dynamicStyleLoaderService.attachDialogStyles(),delete this.dialogInstance,this.dialogInstance=this.dialog.open(jo,{width:"60%",disableClose:!0,position:{top:"25px"},data:{parentInstance:this}}),this.dialogInstance.afterClosed().subscribe(()=>{this.genderError=!1,this.selectedGender.gender=this.selectedGender.gender!==""?this.getGenderID(this.showGender):"",this.dynamicStyleLoaderService.removeDialogStyles()})}openMedicalInfoDialog(){this.editMedicalGA(),this.dynamicStyleLoaderService.attachDialogStyles(),delete this.dialogInstance,this.dialogInstance=this.dialog.open(Ho,{width:"60%",disableClose:!0,position:{top:"25px"},data:{parentInstance:this}}),this.dialogInstance.afterClosed().subscribe(()=>{this.addMedicalFormControl.reset(),this.noLengthyCharacter=!1,this.checkMedicalConsent=!1,this.addMedicalFormControl.setValue(this.showMedicalInfo),this.dynamicStyleLoaderService.removeDialogStyles()})}openDisabilityDialog(){this.editDisabilityGA(),this.dynamicStyleLoaderService.attachDialogStyles(),this.dialogInstance=this.dialog.open(Uo,{width:"60%",disableClose:!0,position:{top:"25px"},data:{parentInstance:this}}),this.dialogInstance.afterClosed().subscribe(()=>{this.selectedDisabilties.length===0&&this.disabilityFormArray.reset(),this.disabilitySave=!1,this.showDisabilityTitleInfo=!1,this.showDisabilityInfo=!1,this.dynamicStyleLoaderService.removeDialogStyles()})}getAllDisabilities(){this.referenceDataSubkyService.getAllDisabilities().subscribe(e=>{e&&(this.disability=e,console.log("disability : ",e),this.disability.length>
40&&(this.disability.forEach(()=>this.disabilityFormArray.push(new Me(!1))),this.updateSelectedDisabilities()))})}updateSelectedDisabilities(){let e=[];setTimeout(()=>{this.disability.forEach((t,i)=>{this.selectedDisabilties.forEach(s=>{t.id==s.DisabilityTypeId&&e.push(i)})}),this.tempArr2=this.disability.map(t=>Tn(Nn({},t),{isActive:!1})),e.forEach(t=>{this.tempArr2[t].isActive=!0})},100)}saveDisabilityDetails(){let e=this.disabilityForm.value.disabilities.map((s,a)=>s?this.disability[a].id:null).filter(s=>s!==null),t=this.modifyDisabilityData(e),i=this.sharedService.fanCode;i&&(this.parentFanCode=i),this.ipsService.saveDisabilites(t,this.fancode,this.parentFanCode).subscribe(s=>{s&&(this.dialogInstance.close(),this.successPopupService.setSuccessMessage("Your child's disability playing activity is updated."),this.successPopupService.show(),this.selectedDisabilties=t.filter(a=>a.IsActive),this.updateSelectedDisabilities())})}modifyDisabilityData(e){let t=[];if(this.selectedDisabilties&&this.selectedDisabilties.length>0){let i=[];t=this.selectedDisabilties.map(s=>(e.indexOf(s.DisabilityTypeId)===-1?s.IsActive=!1:i.push(s.DisabilityTypeId),s)),e.forEach(s=>{i.indexOf(s)===-1&&t.push({IsActive:!0,DisabilityTypeId:s})})}else t=e.map(s=>({IsActive:!0,DisabilityTypeId:s})).slice();return t}minSelectedCheckboxes(e=1){return i=>{if(i instanceof di)return i.controls.map(a=>a.value).reduce((a,l)=>l?a+l:a,0)>=e?null:{required:!0};throw new Error("formArray is not an instance of FormArray")}}getDisabilityInfo(e){this.disabilityPopupIndex=e,this.disability.forEach((t,i)=>{if(this.disabilityPopupIndex===i){if(t.link){let s=t.description.lastIndexOf("here");this.disabilityInfo=t.description.slice(0,s-1)}else this.disabilityInfo=t.description,console.log("disability:",this.disabilityInfo);this.disabilityLink=t.link?t.link:null}}),this.showDisabilityInfo=!0}ngOnChanges(e){this.childAccountFlag=this.sharedService.isChildAccount==="true",this.isChildLessThanSixteen=this.checkYouthService.isLessThanSixteen(new Date(this.individualProfile.DateOfBirth)),e.individualProfile&&this.individualProfile!=null&&this.individualProfile!=null&&(this.showGender=this.individualProfile.Gender,this.showNationality=this.camelize(this.individualProfile.CountryOfNationality),this.showMedicalInfo=this.individualProfile.MedicalInformation,this.addMedicalFormControl.setValue(this.individualProfile.MedicalInformation),this.addPlaceOfBirthFormControl.setValue(this.individualProfile.PlaceOfBirth),this.selectedDisabilties=this.individualProfile.Disability?this.individualProfile.Disability:[],this.selectedGender!=null&&(this.selectedGender.gender=this.getGenderID(this.showGender)),this.myControl.setValue(this.showNationality)),this.getAllDisabilities()}openModal(e){if(e.keyCode==13||e.which==13){let t=e.target.dataset.target;$(t).modal("show")}}getGenderID(e){let t="";for(let i of this.genderOptions)i.Name==e&&(t=i.ID.toString());return t}fetchGender(e){let t="";for(let i of this.genderOptions)i.ID==e&&(this.showGender=i.Name,t=i.Name);return t}filterNaltionality(e){let t=[];if(this.nationalityError=!1,e!=null&&e.length>0){let i=e.toLowerCase();return t=this.options.filter(s=>s.Name.toLowerCase().substring(0,e.length).indexOf(i)>-1),t.length==0?(this.nationalityError=!0,[]):t}}saveNationalityDetails(){this.nationalityError=!1,console.log(this.myControl.value);let e=this.myControl.value;if(e!=""&&e!=this.showNationality){let t=this.options.filter(i=>i.Name.toLowerCase()===this.myControl.value.toLowerCase());this.sharedService.isChildAccount==="true"?this.ipsService.childUpdateNationality(t,this.fancode).subscribe(()=>{this.showNationality=this.camelize(this.myControl.value),this.dialogInstance.close(),this.myControl.reset(),this.myControl.setValue(this.showNationality),this.successPopupService.setSuccessMessage("Your Child's Nationality is updated"),this.successPopupService.show()},i=>{console.log(i),this.nationalityError=!0}):this.ipsService.updateNationality(t,this.fancode).subscribe(()=>{this.showNationality=this.camelize(this.myControl.value),this.dialogInstance.close(),this.myControl.reset(),this.successPopupService.setSuccessMessage("Your Nationality is updated"),this.successPopupService.show()},i=>{console.log(i),this.nationalityError=!0})}}camelize(e){return e===null||e===""||e==null?"":(e=e.toString(),e.replace(/\w\S*/g,function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}))}genderEdit(){let e=document.getElementById("cannotEditGender");e.style.display="block"}genderEditTab(e){if(e.stopPropagation(),e.keyCode==13||e.which==13){let t=document.getElementById("cannotEditGender");t.style.display="block"}}closeGenderEdit(){document.getElementById("cannotEditGender").style.display="none",$("#genderEdit").focus()}closeTooltip(e){e.target.offsetParent.offsetParent.firstChild.focus()}closeTooltipTab(e){(e.keyCode==13||e.which==13)&&e.target.offsetParent.offsetParent.firstChild.focus()}getOtherDetailsData(){this.ipsService.getNationalityDetails(this.fancode).subscribe(e=>{this.options=e;let t=this.options.slice();this.options=[].concat(t)})}onInput(e){e.target.value.length>=1e3?this.noLengthyCharacter=!0:this.noLengthyCharacter=!1}saveMedicalDetails(){let e=this.showMedicalInfo?this.showMedicalInfo.toLowerCase():this.showMedicalInfo;(this.addMedicalFormControl.value?this.addMedicalFormControl.value.toLowerCase():this.addMedicalFormControl.value)!=e&&(this.sharedService.isChildAccount==="true"?this.ipsService.childUpdateMedicalInfo(this.addMedicalFormControl.value).subscribe(()=>{this.dialogInstance.close(),this.showMedicalInfo=this.addMedicalFormControl.value,this.addMedicalFormControl.reset(),this.successPopupService.setSuccessMessage("Your Child's Medical Information is updated"),this.successPopupService.show(),this.addMedicalFormControl.setValue(this.showMedicalInfo),this.checkMedicalConsent=!1},i=>{console.log(i)}):this.ipsService.updateMedicalInfo(this.addMedicalFormControl.value).subscribe(()=>{this.dialogInstance.close(),this.showMedicalInfo=this.addMedicalFormControl.value,this.addMedicalFormControl.reset(),this.successPopupService.setSuccessMessage("Medical Information is updated"),this.successPopupService.show(),this.addMedicalFormControl.setValue(this.showMedicalInfo),this.checkMedicalConsent=!1},i=>{console.log(i)}))}saveGenderDetails(){this.genderError=!1;let e;for(let t of this.genderOptions)t.ID==this.selectedGender.gender&&(e=t.Name);this.showGender!=e&&(this.sharedService.isChildAccount==="true"?this.ipsService.ChildUpdateGender(this.selectedGender,this.fancode).subscribe(t=>{this.dialogInstance.close();let i=this.fetchGender(t.GenderId);this.successPopupService.setSuccessMessage("Your Child's Gender is Updated"),this.successPopupService.show(),this.getFullNameService.getGenderChangeSubject().next(i)},t=>{console.log(t),this.genderError=!0}):this.ipsService.updateGender(this.selectedGender,this.fancode).subscribe(t=>{this.dialogInstance.close(),this.fetchGender(t.GenderId),this.successPopupService.setSuccessMessage("Your Gender is Updated"),this.successPopupService.show()},t=>{console.log(t),this.genderError=!0}))}editGenderGA(){window.dataLayer.push({event:"edit-labels",generalData:"other details - gender"})}editNationalityGA(){window.dataLayer.push({event:"edit-labels",generalData:"other details - nationality"})}editDisabilityGA(){window.dataLayer.push({event:"edit-labels",generalData:"other details - disability info"}),this.disabilityForm=this.formBuilder.group({disabilities:new di([],this.minSelectedCheckboxes(1))}),console.log("this.tempArr2 : ",this.tempArr2),this.tempArr2.forEach(e
4=>{e.isActive?this.disabilityFormArray.push(new Me(!0)):this.disabilityFormArray.push(new Me(!1))})}editMedicalGA(){window.dataLayer.push({event:"edit-labels",generalData:"other details - medical info"})}reset(){this.dialogInstance.close()}savePlaceOfBirthDetails(){console.log(this.addPlaceOfBirthFormControl.value);let e=this.addPlaceOfBirthFormControl.value?this.addPlaceOfBirthFormControl.value.toLowerCase():this.addPlaceOfBirthFormControl.value,t=this.individualProfile.PlaceOfBirth?this.individualProfile.PlaceOfBirth.toLowerCase():this.individualProfile.PlaceOfBirth;if(e&&e!=t)if(this.checkBadWordsUsingBadWordList(this.addPlaceOfBirthFormControl.value))this.isProfane=!0;else{this.isProfane=!1,this.individualProfile.PlaceOfBirth=this.addPlaceOfBirthFormControl.value;let i={FanCode:this.individualProfile.Fan,PlaceOfBirth:this.individualProfile.PlaceOfBirth};this.sharedService.isChildAccount==="true"?this.ipsService.childUpdatePlaceOfBirth(i).subscribe(()=>{this.addPlaceOfBirthFormControl.setValue(this.individualProfile.PlaceOfBirth),this.dialogInstance.close(),this.successPopupService.setSuccessMessage("Your child's place of birth is updated."),this.successPopupService.show()},s=>{console.log(s)}):this.ipsService.updatePlaceOfBirth(i).subscribe(()=>{this.addPlaceOfBirthFormControl.setValue(this.individualProfile.PlaceOfBirth),this.dialogInstance.close(),this.successPopupService.setSuccessMessage("Your Place of birth is updated"),this.successPopupService.show()},s=>{console.log(s)})}}onInputPlaceofBirth(){this.isProfane=!1}omitBadWordsUsingBadWordList(e){let t=e;return this.obscenities=Wt(),this.obscenities.array.forEach(i=>{t=t.replace(i,"")}),t}checkBadWordsUsingBadWordList(e){let t=!1;if(e==null||e=="")return!1;{let s=e.toLowerCase().split(" ");return this.obscenities=ur.default,s.forEach(a=>{this.obscenities.array.indexOf(a)>-1&&(t=!0)}),t}}omitBadWordsUsingBadWord(e){return e}isProfaneFunc(){return!1}omitBadWordsFromInput(e){let t=e.target.value;return this.obscenities=Wt(),this.obscenities.array.forEach(i=>{t=t.replace(i,"")}),t}medicalConsentSelected(e){e.target.checked?this.checkMedicalConsent=!0:this.checkMedicalConsent=!1}checkedEvent(e,t){if(e.checked){let i=this.selectedDisabilties.findIndex(s=>s.DisabilityTypeId==t);i>-1&&(this.selectedDisabilties[i].IsActive=!0)}else{let i=this.selectedDisabilties.findIndex(s=>s.DisabilityTypeId==t);i>-1&&(this.selectedDisabilties[i].IsActive=!1)}}openDisabilityInfo(e){e.preventDefault(),window.open(this.disabilityLink,"_blank")}};n.\u0275fac=function(t){return new(t||n)(Y(Se),Y(hr),Y(Ke),Y(dt),Y(Pe),Y(qe),Y(ze))},n.\u0275cmp=fe({type:n,selectors:[["app-playing-details"]],hostBindings:function(t,i){t&1&&q("click",function(a){return i.clickout(a)},lt)},inputs:{individualProfile:"individualProfile",fancode:"fancode",isChildAccount:"isChildAccount",linkedAccounts:"linkedAccounts"},standalone:!1,features:[ke],decls:48,vars:11,consts:[[1,"info-panel","otherDetails"],[1,"info-panel-heading"],[1,"info-panel-title"],[1,"playingDetails"],[1,"info-panel-collapse","in","contact-details"],[1,"form-group","otherFields"],[1,"medicalLabel"],["role","link","aria-label","nationality info details","tabindex","0",1,"note-info","medicalNote",3,"keypress","click"],["tabindex","-1","aria-label","nationality info tooltip","class","medical-info-tooltip","role","tooltip",4,"ngIf"],["role","button","aria-label","edit nationality","tabindex","0","title","Edit nationality",1,"edit-details",3,"click","keyup"],["role","link","aria-label","placeOfBirth info details","tabindex","0",1,"note-info","medicalNote",3,"keypress","click"],["tabindex","-1","aria-label","placeOfBirth info tooltip","class","medical-info-tooltip","role","tooltip",4,"ngIf"],["role","button","aria-label","edit place of Birth","title","Edit place of Birth","tabindex","0",1,"edit-details",3,"click","keyup"],["role","link","aria-label","gender info details","tabindex","0",1,"note-info","medicalNote",3,"keypress","click"],["tabindex","-1","aria-label","gender info tooltip","class","medical-info-tooltip","role","tooltip",4,"ngIf"],["role","button","id","genderEdit","tabindex","0","class","edit-details","aria-label","edit Sex","title","Edit Sex",3,"keyup","click",4,"ngIf"],["role","button","id","genderEdit","tabindex","0","class","edit-details","aria-label","edit Sex",3,"keypress","click",4,"ngIf"],["tabindex","-1","id","cannotEditGender",1,"overlay",2,"display","none"],[1,"info-popup","genderedit"],["tabindex","0","role","alert","aria-label","dialog",1,"child-info-text"],["aria-label","ok","tabindex","0",1,"save-button","error-btn",3,"click"],["class","form-group otherFields",4,"ngIf"],[2,"display","table"],["role","link","aria-label","medical info details","tabindex","0",1,"note-info","medicalNote",3,"keypress","click"],["tabindex","-1","aria-label","medical info tooltip","class","medical-info-tooltip","role","tooltip",4,"ngIf"],["role","button","tabindex","0","aria-label","edit medical information","title","Edit medical information",1,"edit-details",3,"click","keyup"],["tabindex","-1","aria-label","nationality info tooltip","role","tooltip",1,"medical-info-tooltip"],["tabindex","0"],["role","button","tabindex","0","aria-label","Got it- Close nationality info details",1,"dbs-button",3,"click","keypress"],["tabindex","-1","aria-label","placeOfBirth info tooltip","role","tooltip",1,"medical-info-tooltip"],["tabindex","-1","aria-label","gender info tooltip","role","tooltip",1,"medical-info-tooltip"],["role","button","tabindex","0","aria-label","Got it- Close gender info details",1,"dbs-button",3,"click","keypress"],["role","button","id","genderEdit","tabindex","0","aria-label","edit Sex","title","Edit Sex",1,"edit-details",3,"keyup","click"],["role","button","id","genderEdit","tabindex","0","aria-label","edit Sex",1,"edit-details",3,"keypress","click"],["role","link","aria-label","disbaility info details","tabindex","0",1,"note-info","medicalNote",3,"keypress","click"],["tabindex","-1","aria-label","disability info tooltip","class","medical-info-tooltip","role","tooltip",4,"ngIf"],[4,"ngIf"],["role","button","data-toggle","modal","tabindex","0","aria-label","edit disability",1,"edit-details",3,"keyup","click"],["tabindex","-1","aria-label","disability info tooltip","role","tooltip",1,"medical-info-tooltip"],["role","button","tabindex","0","aria-label","Got it- Close disbaility info details",1,"dbs-button",3,"click","keypress"],["tabindex","-1","aria-label","medical info tooltip","role","tooltip",1,"medical-info-tooltip"],["role","button","tabindex","0","aria-label","Got it- Close medical info details",1,"dbs-button",3,"click","keypress"]],template:function(t,i){t&1&&(p(0,"section")(1,"div",0)(2,"div",1)(3,"h3",2)(4,"label",3),_(5,"Playing Details"),h()()(),p(6,"div",4)(7,"div",5)(8,"label",6),_(9,"Nationality:"),h(),p(10,"div")(11,"a",7),q("keypress",function(){return i.showInfo2=!0})("click",function(){return i.showInfo1=!1,i.showInfo2=!0,i.showInfo3=!1,i.showInfo4=!1,i.showInfo5=!1}),h(),X(12,zs,7,0,"div",8),_(13),p(14,"a",9),q("click",function(){return i.openNationalityDialog()})("keyup",function(a){return i.openDialogOnKeyPress(a,"nationality")}),h()()(),p(15,"div",5)(16,"label",6),_(17,"Place of birth:"),h(),p(18,"div")(19,"a",10),q("keypress",function(){return i.showInfo4=!0})("click",function(){return i.showInfo1=!1,i.showInfo2=!1,i.showInfo3=!1,i.showInfo4=!0,i.showInfo5=!1}),h(),X(20,js,7,0,"div",11),_(21),p(22,"a",12),q("click",function(){return i.openPlaceOfBirthDialog()})("keyup",function(a){return i.openDialogOnKeyPress(a,"place-of-birth")}),h()()(),p(23,"div",5)(24,"label",6),_(25,"Sex:"),h(),p(26,"div")(27,"a",13),q("keypress",function(){return i.showInfo1=!0})("click",function(){return i.showInfo1=!0,i.showInfo2=!1,i.showInfo3=!1,i.showInfo4=!1,i.showInfo5=!1}),h(),X(28,Hs,7,0,"div",14),_(29),X(30,Us,1,0,"a",15)(31,qs,1,0,"a",16),h(),p(32,"div",17)(33,"div",18)(34,"label",19),_(35,"Sorry you cannot edit your playing gender as you are a registered player and this data is recorded against your registration. Please contact your club County FA if you have any queries."),h(),p(36,"button",20),q("click",function(){return i.closeGenderEdit()}),_(37," OK "),h()()()(),X(38,Ws,8,2,"div",21),p(39,"div",5)(40,"label",6),_(41,"Medical Information:"),h(),p(42,"div",22)(43,"a",23),q("keypress",function(){return i.showInfo3=!0})("click",function(){return i.showInfo1=!1,i.showInfo2=!1,i.showInfo3=!0,i.showInfo4=!1,i.showInfo5=!1}),h(),X(44,Ys,7,0,"div",24),p(45,"span"),_(46),h(),p(47,"a",25),q("click",function(){return i.openMedicalInfoDialog()})("keyup",function(a){return i.openDialogOnKeyPress(a,"medical-information")}),h()()()()()()),t&2&&(k(12),M("ngIf",i.showInfo2),k(),le(" ",i.showNationality," "),k(7),M("ngIf",i.showInfo4),k(),le(" ",i.individualProfile.PlaceOfBirth," "),k(7),M("ngIf",i.showInfo1),k(),le(" ",i.showGender," "),k(),M("ngIf",!i.individualProfile.isGenderEdit),k(),M("ngIf",i.individualProfile.isGenderEdit),k(7),M("ngIf",i.isChildAccount&&i.isChildLessThanSixteen),k(6),M("ngIf",i.showInfo3),k(2),he(i.showMedicalInfo))},dependencies:[ye],styles:[`.cannot-edit-profile-rectangle mat-form-field{width:100%!important}.form-group.otherFields div{height:22px;display:inherit}.form-group.otherFields div span{float:left;width:95%}
4.cannotGenderLabel{color:#011e41;font-family:FSJack-Medium,arial,helvetica,sans-serif;font-size:20px;line-height:24px}.info-popup.genderedit{height:190px!important}.info-popup.genderedit .child-info-text{width:100%!important;color:#222!important;font-family:FSJack,arial,helvetica,sans-serif!important;font-size:16px!important;line-height:19px!important}.medical-information{height:20px;width:117px;opacity:.8;color:#2b2b2b;font-family:FS Jack,arial,helvetica,sans-serif;font-size:14px;letter-spacing:0;line-height:20px}.checkbox-info-desktop-checkbox{height:48px;width:508px}.desktop-checkbox-checked{height:24px;width:24px}.max-character-error label{text-align:left;height:15px;width:308px;color:#e1261c;font-family:Arial,helvetica,sans-serif;font-size:13px;letter-spacing:0;line-height:15px}.max-character-error-box-error{border:2px solid #e1261c;background-color:#f5f5f5;box-shadow:0 2px 2px #0000003d;padding:0 45px}.please-tick-here-to{width:92%;color:#5f5f5f;font-family:FSJack,arial,helvetica,sans-serif;font-size:14px;line-height:16px;float:right;letter-spacing:0}#cannotEditGender.overlay{position:fixed!important;height:unset;top:10%}@media (max-width: 768px){.info-popup.genderedit{width:calc(100% - 30px)!important;float:unset!important;margin-top:15%}#cannotEditGender.overlay{top:30%;left:0}.please-tick-here-to{width:88%;color:#5f5f5f;
4font-family:FSJack,arial,helvetica,sans-serif;font-size:14px;line-height:16px;float:right;letter-spacing:0}}.disability-info-icon{background-color:#011e41;-webkit-mask-image:url("./media/info-icon-JPQ23EZ3.svg");mask-image:url("./media/info-icon-JPQ23EZ3.svg");-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:24px;height:24px;position:absolute;right:0}.disability-text{font-weight:300;color:#545454;font-family:FSJack,arial,helvetica,sans-serif;font-size:16px;line-height:16px}.edit-disability-body{width:60%;margin:2% auto 0}.disability-option{position:relative;min-width:238px}.disability-option .mat-checkbox-inner-container{height:23px;width:23px}.disability-option .mat-checkbox-checked.mat-accent .mat-checkbox-background{background-color:#000}.disability-option .mat-checkbox-ripple .mat-ripple-element{background-color:#000!important}.disability-option .mat-checkbox-frame{border-color:#011e41}.disability-label-info{display:flex;flex-direction:column;position:relative;margin-bottom:10px}.disability-label{color:#6f6f6f;font-family:Arial,helvetica,sans-serif;font-size:14px;line-height:22px}.disability-label-info .d-icon{cursor:pointer;background:url("./media/Help-NW5F47MY.svg") no-repeat center center;width:24px;height:24px;position:absolute;margin-left:10px}.disability-title-info-popup{border-radius:0;background-color:#e0e0e0;padding:15px 15px 2px;
4font-family:FSJack-Medium,arial,helvetica,sans-serif;font-size:12px!important;line-height:20px!important;position:absolute!important;color:#011e41;width:100%;top:59px;left:50px;margin:0;z-index:1;box-shadow:0 2px 2px #0000003d;height:auto!important}.disability-title-info-popup:before{border-top:10px solid transparent;border-bottom:8px solid transparent;border-right:10px solid #e0e0e0;transform:rotate(90deg);content:"";height:0;width:0;position:absolute;pointer-events:none;left:85px;top:-14px}.disability-info-popup{border-radius:0;background-color:#e0e0e0;padding:15px 15px 2px;font-family:FSJack-Medium,arial,helvetica,sans-serif;font-size:12px!important;line-height:14px!important;position:absolute!important;color:#011e41;width:267px!important;z-index:1;box-shadow:0 2px 2px #0000003d;height:auto!important;right:-10px}.disability-info-popup:before{top:-14px;right:15px;border-top:10px solid transparent;border-bottom:8px solid transparent;border-right:10px solid #e0e0e0;transform:rotate(90deg);content:"";height:0;width:0;position:absolute;pointer-events:none}.disability-info-popup p,.disability-title-info-popup p{word-wrap:break-word}.disability-modal-height{min-height:900px!important;height:auto!important}.modal-container{overflow:initial!important}.disability-title-info-popup button{margin-left:37%!important}.disability-option .mat-checkbox-checked.mat-accent .mat-checkbox-background,.mat-checkbox-indeterminate.mat-accent .mat-checkbox-background{background:#011e41!important}
4.form-error{font-family:FSJack,arial,helvetica,sans-serif;font-size:16px;line-height:24px;color:#a01e21;background-color:#f8d7da;border:1px solid #ffa9b1;padding:15px;margin-top:15px;text-align:left}@media (max-width: 768px){.info-popup.genderedit{width:calc(100% - 30px)!important;float:unset!important;margin-top:15%}#cannotEditGender.overlay{top:30%;left:0}.please-tick-here-to{width:88%;color:#5f5f5f;font-family:FSJack,arial,helvetica,sans-serif;font-size:14px;line-height:16px;float:right;letter-spacing:0}.disability-title-info-popup button{margin-left:23%!important}}@media (min-width: 768px) and (max-width: 991px){.info-popup.genderedit{left:15%}}@media (max-width: 767px){.edit-disability-body{width:80%}} 5`],encapsulation:2});let r=n;return r})();var wi=class{};var Ei=class{};var Pi=(()=>{let n=class n{constructor(e,t){this.http=e,this.sharedService=t,this.config=be.apiEndPoints,this.refereeServerUrl=this.config.serverUrl+this.config.services.refereeService,this.verifyRefreeRegAPI=this.refereeServerUrl+this.config.endpoints.verifyRefreeRegAPI,this.refereeRegistrationDetailAPI=this.refereeServerUrl+this.config.endpoints.refereeRegistrationDetail,this.childRegistrationSeasonDetailAPI=this.refereeServerUrl+this.config.endpoints.childRegistrationSeasonDetails,this.refereeLevelsApi=this.refereeServerUrl+this.config.endpoints.refereeLevelsApi,this.childRefereeLevelsApi=this.refereeServerUrl+this.config.endpoints.childRefereeLevelsApi,this.affilicatedCountyWithLocationApi=this.refereeServerUrl+this.config.endpoints.affilicatedCountyWithLocationApi,this.refereeIntensionApiUrl=this.refereeServerUrl+this.config.endpoints.refereeIntensionApiUrl,this.childRefereeIntensionApiUrl=this.refereeServerUrl+this.config.endpoints.childRefereeIntensionApiUrl,this.refereeIntensionUpdateApiUrl=this.refereeServerUrl+this.config.endpoints.refereeIntensionUpdateApiUrl}verifyRefreeRegistration(){let e={headers:new ue({"Content-Type":"application/json"})},t=this.sharedService.fanCode;return this.http.get(`${this.verifyRefreeRegAPI}?fanCode=${t}`,e)}getRefereeRegistrationDetails(e){let t={headers:new ue({"Content-Type":"application/json"})};return this.http.get(`${this.refereeRegistrationDetailAPI}?fanCode=${e}`,t)}getChildRefereeRegistrationDetails(e){let t={headers:new ue({"Content-Type":"application/json"})};return this.http.get(`${this.childRegistrationSeasonDetailAPI}?fanCode=${e}`,t)}getRefereeDeatils(e,t){let i=t?this.childRefereeLevelsApi:this.refereeLevelsApi,s={headers:new ue({"Content-Type":"application/json"})};return this.http.get(`${i}?fanCode=${e}`,s)}updateOtherCounty(e){let t={headers:new ue({"Content-Type":"application/json"})};return this.http.post(`${this.affilicatedCountyWithLocationApi}`,e,t)}getRefereeIntensionOptions(e,t){let i={headers:new ue({"Content-Type":"application/json"})},s=t?this.childRefereeIntensionApiUrl:this.refereeIntensionApiUrl;return this.http.get(`${s}?fanCode=${e}`,i)}updateRefereeIntensionOptions(e){let t={headers:new ue({"Content-Type":"application/json"})};return this.http.put(`${this.refereeIntensionUpdateApiUrl}`,e,t)}};n.\u0275fac=function(t){return new(t||n)(De(Je),De(xe))},n.\u0275prov=Le({token:n,factory:n.\u0275fac,providedIn:"root"});let r=n;return r})();var gr=(()=>{let n=class n{constructor(e){this.http=e,this.config=be.apiEndPoints,this.paymentAutoRenewalApiUrl=this.config.paymentServerUrl+this.config.services.passApi+this.config.endpoints.paymentAutoRenewalApi,this.paymentSubscriptionValue=be.paymentSubscriptionValue}getAutoRenewal(e){let t={headers:new ue({"Content-Type":"application/json","Ocp-Apim-Subscription-Key":this.paymentSubscriptionValue,"Cache-Control":"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"}),params:new Qn().set("fancode",e.toString()).set("source","Referee Registration").set("requestedSource","Account Management")};return this.http.get(`${this.paymentAutoRenewalApiUrl}`,t)}postAutoRenewal(e){let t={headers:new ue({"Content-Type":"application/json","Ocp-Apim-Subscription-Key":this.paymentSubscriptionValue,"Cache-Control":"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})};return this.http.post(`${this.paymentAutoRenewalApiUrl}`,e,t)}};n.\u0275fac=function(t){return new(t||n)(De(Je))},n.\u0275prov=Le({token:n,factory:n.\u0275fac,providedIn:"root"});let r=n;return r})();var Yt=class{};function Xs(r,n){if(r&1){let o=ee();p(0,"section",14),q("keydown",function(){H(o);let t=F();return U(t.showToolTip1=!1)}),_(1),h()}if(r&2){let o=F();k(),le(" ",o.openAgeFootballInfo," ")}}function Qs(r,n){if(r&1){let o=ee();p(0,"section",14),q("keydown",function(){H(o);let t=F();return U(t.showToolTip2=!1)}),_(1),h()}if(r&2){let o=F();k(),le(" ",o.youthFootballInfo," ")}}function Zs(r,n){if(r&1&&(p(0,"section",15)(1,"mat-expansion-panel",16)(2,"mat-expansion-panel-header")(3,"mat-panel-title")(4,"p",17)(5,"strong"),_(6,"Note:"),h(),_(7),h()()()()()),r&2){let o=F();k(7),le(" ",o.refereeNotesHeader," ")}}var vr=(()=>{let n=class n{constructor(e,t,i,s,a){this.ipsService=e,this.formBuilder=t,this.refereeService=i,this.checkYouthService=s,this.expiryCheckService=a,this.showToolTip1=!1,this.showToolTip2=!1,this.openAgeFootballInfo="Football in competitions that have no age restriction",this.youthFootballInfo="Football in competitions which are restricted to U18 or younger age groups only",this.openAgeFootballStatus=!1,this.youthFootballStatus=!1,this.refereeOptInDetails=new Yt,this.refereeOptChange=new Yt,this.refereeOptInIds={openAge:0,youth:0}
5,this.qualifications=new Jo,this.isChildAccount=!1,this.fanCode=-1}ngOnChanges(e){e.fanCode&&(this.setFormControls(),this.refereeService.getRefereeIntensionOptions(this.fanCode,this.isChildAccount).subscribe(t=>{this.refereeOptInDetails=t,this.isChildAccount?this.setChildRefereeIntensions():this.ipsService.getQualifications(this.fanCode.toString()).subscribe(i=>{this.refereeOptionsGroup.controls.openAgeFootball.enable(),this.refereeOptionsGroup.controls.youthFootball.enable(),this.qualifications=i,this.setRefereeIntensions()})}))}setFormControls(){delete this.refereeOptionsGroup,this.refereeOptionsGroup=this.formBuilder.group({openAgeFootball:!1,youthFootball:!1}),this.refereeNotesHeader=null}setChildRefereeIntensions(){this.setIntensionsToCheckboxes(),this.refereeOptionsGroup.controls.openAgeFootball.disable(),this.refereeOptionsGroup.controls.youthFootball.disable()}checkDbsstatus(){let e=this.isValidDBS();(e=="invalid"||e=="expired")&&(this.refereeOptionsGroup.controls.youthFootball.disable(),this.refereeNotesHeader="You must have an in date DBS check to referee youth football.",this.refereeOptionsGroup.controls.youthFootball.value&&(this.untickYouthFootball(),this.refereeOptionsGroup.controls.youthFootball.setValue(!1)))}setRefereeIntensions(){this.setIntensionsToCheckboxes();let e=[];
5if(this.checkYouthService.isLessThanSixteen(this.dob)){if(!this.checkYouthService.isLessThanFourteen(this.dob)){e=[759,101,738];let t=this.isValidSafeguarding(e);(t=="invalid"||t=="expired")&&(this.refereeOptionsGroup.controls.youthFootball.disable(),this.refereeNotesHeader="You must have an in-date safeguarding qualification in order to register to referee.")}}else{this.checkDbsstatus(),e=[79,103,609,759,101,738];let t=this.isValidSafeguarding(e);(t=="invalid"||t=="expired")&&(this.refereeOptionsGroup.controls.youthFootball.disable(),this.refereeNotesHeader="You must have an in-date safeguarding qualification in order to register to referee.",this.refereeOptionsGroup.controls.youthFootball.value&&(this.untickYouthFootball(),this.refereeOptionsGroup.controls.youthFootball.setValue(!1)))}}setIntensionsToCheckboxes(){this.refereeOptInIds={openAge:0,youth:0};for(let e of this.refereeOptInDetails.refereeoptInDetails)e.optInName=="Open Age"&&(this.refereeOptionsGroup.controls.openAgeFootball.setValue(e.isActive),this.refereeOptInIds.openAge=e.refereeOptInID),e.optInName=="Youth"&&(this.refereeOptionsGroup.controls.youthFootball.setValue(e.isActive),this.refereeOptInIds.youth=e.refereeOptInID)}isValidDBS(){return this.qualifications!=null&&this.qualifications.DBSAwardedDate!=null&&this.qualifications.DBSExpiryDate!=null&&this.qualifications.DBSStatusName!==null?this.expiryCheckService.checkExpiryForSixMonths(this.qualifications.DBSExpiryDate)=="expired"?"expired":this.qualifications.DBSStatusName=="Accepted"?"valid":"invalid":"invalid"}isValidSafeguarding(e){if(this.qualifications!=null&&this.qualifications.SafeguardingQualifications!=null&&this.qualifications.SafeguardingQualifications.length>=1){let t=[];return this.qualifications.SafeguardingQualifications.forEach(i=>{e.includes(i.QualificationID)&&this.expiryCheckService.checkExpiry(i.ExpiryDate)!="expired"&&t.push(i.QualificationID)}),t.length>0?"valid":"expired"}else return"invalid"}untickYouthFootball(){let e=[{optInName:"",optInID:2,refereeOptInID:this.refereeOptInIds.youth,isActive:!1}];this.updateRefereeIntensionsToDB(e)}refereeIntensionsChange(e,t){let i=[];t=="openAgeFootball"?i=[{optInName:"",optInID:1,refereeOptInID:this.refereeOptInIds.openAge,isActive:this.refereeOptionsGroup.controls.openAgeFootball.value}]:t=="youthFootball"&&(i=[{optInName:"",optInID:2,refereeOptInID:this.refereeOptInIds.youth,isActive:this.refereeOptionsGroup.controls.youthFootball.value}]),this.updateRefereeIntensionsToDB(i)}updateRefereeIntensionsToDB(e){let t={refereeoptInDetails:e,fanCode:Number(this.fanCode)};this.refereeService.updateRefereeIntensionOptions(t).subscribe(i=>{this.refereeService.getRefereeIntensionOptions(this.fanCode,this.isChildAccount).subscribe(s=>{this.refereeOptInDetails=s;for(let a of this.refereeOptInDetails.refereeoptInDetails)a.optInName=="Open Age"&&(this.refereeOptInIds.openAge=a.refereeOptInID),a.optInName=="Youth"&&(this.refereeOptInIds.youth=a.refereeOptInID)})})}closeInfoPopup(e){e.target.offsetParent.offsetParent.firstChild.focus()}};n.\u0275fac=function(t){return new(t||n)(Y(Se),Y(dt),Y(Pi),Y(Pe),Y(gi))},n.\u0275cmp=fe({type:n,selectors:[["app-football-categories"]],inputs:{isChildAccount:"isChildAccount",fanCode:"fanCode",dob:"dob"},standalone:!1,features:[ke],decls:18,vars:4,consts:[[1,"referee-intensions-section"],[1,"referee-intensions","display-li"],[1,"subtitle"],[1,"referee-intensions-content",3,"formGroup"],[1,"open-age-football"],["formControlName","openAgeFootball","color","primary","tabindex","0",3,"change"],[1,"open-football-label"],["role","tooltip","tabindex","0","aria-label","Open age football information icon",1,"info",3,"keyup","mouseover","mouseout"],["class","info-tip","tabindex","0",3,"keydown",4,"ngIf"],[1,"youth-football"],["formControlName","youthFootball","color","primary","tabindex","0",3,"change"],[1,"youth-football-label"],["role","tooltip","tabindex","0","aria-label","Youth Football information icon",1,"info",3,"keyup","mouseover","mouseout"],["class","intensions-notes-section",4,"ngIf"],["tabindex","0",1,"info-tip",3,"keydown"],[1,"intensions-notes-section"],["hideToggle","true","disabled","",1,"intentions-note"],[1,"note-you-cannot-ref"]],template:function(t,i){t&1&&(p(0,"ul",0)(1,"li",1)(2,"h3",2),_(3,"Football Categories"),h(),p(4,"div",3)(5,"section",4)(6,"mat-checkbox",5),q("change",function(a){return i.refereeIntensionsChange(a,"openAgeFootball")}),p(7,"span",6),_(8,"Open Age Football"),h()(),p(9,"a",7),q("keyup",function(){return i.showToolTip1=!0})("mouseover",function(){return i.showToolTip1=!0})("mouseout",function(){return i.showToolTip1=!1}),h(),X(10,Xs,2,1,"section",8),h(),p(11,"section",9)(12,"mat-checkbox",10),q("change",function(a){return i.refereeIntensionsChange(a,"youthFootball")}),p(13,"span",11),_(14,"Youth Football"),h()(),p(15,"a",12),q("keyup",function(){return i.showToolTip2=!0})("mouseover",function(){return i.showToolTip2=!0})("mouseout",function(){return i.showToolTip2=!1}),h(),X(16,Qs,2,1,"section",8),h(),X(17,Zs,8,1,"section",13),h()()()),t&2&&(k(4),M("formGroup",i.refereeOptionsGroup),k(6),M("ngIf",i.showToolTip1),k(6),M("ngIf",i.showToolTip2),k(),M("ngIf",i.refereeNotesHeader))},dependencies:[ye,ci,io,oo,ro,yo,_o,ko,Eo],styles:[`.referee-intensions-section{padding-left:0}
5.referee-intensions .subtitle{font-family:FSJack-Medium,arial,helvetica,sans-serif;font-size:16px;line-height:19px;margin-bottom:20px;width:44.5%}.display-li{display:flex!important}.referee-intensions{border-bottom:.5px solid rgba(0,0,0,.24);padding-bottom:20px;margin-top:20px;clear:both;display:table;width:100%}.referee-intensions div{float:left;font-family:arial,helvetica,sans-serif;font-size:14px;line-height:19px;color:#6f6f6f;text-align:left}.referee-intensions-content{width:50%!important}.open-age-football,.youth-football{display:flex;justify-content:space-between;position:relative;font-family:FS Jack Regular,arial,helvetica,sans-serif;font-weight:500;line-height:16px;font-size:15px;color:#545454}.referee-intensions a.info{position:relative;background:url("./media/info-icon-blue-6PG4K2NJ.svg") center center no-repeat;width:24px}.referee-intensions section.info-tip{position:absolute;width:286px;height:auto;white-space:pre-wrap;padding:15px;background:#edeceb;z-index:1;color:#011e41;font-family:Arial,helvetica,sans-serif;font-size:12px;line-height:16px;box-shadow:0 2px 2px #0000003d;border-radius:4px;left:50px;top:40px}.referee-intensions section.info-tip:before{content:"";display:block;width:0;height:0;position:absolute;border-top:10px solid transparent;border-bottom:10px solid transparent;border-right:10px solid #edeceb;right:15px;top:-14px;transform:rotate(90deg)}.intensions-notes-section{padding-top:6px}.intentions-note,.intentions-note.mat-expanded{background-color:#e4e4e4;border-radius:0;border-left:6px solid #545454;box-shadow:none!important}.note-you-cannot-ref{color:#545454;font-family:Arial,helvetica,sans-serif;font-size:10px;line-height:14px}.referee-intensions .mat-checkbox-inner-container{width:16px!important}.referee-intensions .mat-checkbox-checked.mat-primary .mat-checkbox-background,.mat-checkbox-indeterminate.mat-primary .mat-checkbox-background{background-color:#000!important}@media (max-width: 767px){.display-li{flex-direction:column}.referee-intensions-content{width:100%!important}}@media (max-width : 320px){.referee-intensions section.info-tip:before{right:28px}.referee-intensions section.info-tip{left:-14px}}@media (min-width: 360px) and (max-width: 411px){.referee-intensions section.info-tip:before{right:28px}.referee-intensions section.info-tip{left:25px}}@media (min-width: 412px) and (max-width : 415px){.referee-intensions section.info-tip:before{right:16px}.referee-intensions section.info-tip{left:70px}}@media (min-width : 416px) and (max-width: 767px){.referee-intensions section.info-tip{left:198px}.referee-intensions section.info-tip:before{right:20px}}@media (min-width : 768px) and (max-width: 1023px){.referee-intensions section.info-tip:before{right:46px}}@media (min-width : 1024px) and (max-width: 1200px){.referee-intensions section.info-tip:before{right:50px}.referee-intensions section.info-tip{left:0}} 6`],encapsulation:2});let r=n;return r})();var br=r=>({"disabled-btn-county":r}),Cr=r=>({"mySelectedList show":r});function tl(r,n){r&1&&(p(0,"span",34),_(1,"Expired"),h())}function il(r,n){if(r&1&&(p(0,"li")(1,"label"),_(2,"Registered"),h(),p(3,"div"),_(4),h(),X(5,tl,2,0,"span",33),h()),r&2){let o=n.$implicit,e=n.index,t=F(2);k(4),le("",t.formattedSeasonName[e]," Season"),k(),M("ngIf",o.expiryDate!=null&&t.checkExpiryForSixMonth(o.expiryDate)=="expired")}}function nl(r,n){if(r&1&&(p(0,"div",11),_(1),h()),r&2){let o=n.$implicit;k(),he(o)}}function ol(r,n){if(r&1&&(p(0,"section",9)(1,"label"),_(2),h(),p(3,"div",10),_(4),h(),X(5,nl,2,1,"div",36),h()),r&2){let o=n.$implicit;k(2),he(o.pathway.pathwayName),k(2),he(o.pathway.levels.join("; ")),k(),M("ngForOf",o.pathway.levels)}}function rl(r,n){if(r&1&&(p(0,"li")(1,"h3",8),_(2,"Refereeing Level"),h(),X(3,ol,6,3,"section",35),h()),r&2){let o=F(2);k(3),M("ngForOf",o.refereePathwayLevels)}}function al(r,n){if(r&1){let o=ee();p(0,"div",37)(1,"p",38),_(2,"To request an affiliate County FA, select the appropriate County FAs from the list and the appropriate reason. If you have more than one location (i.e. at university or work in a different County, or a member of the services) and plan to referee from this location as well as your parent County, please affiliate with the respective County"),ie(3,"br")(4,"br"),h(),p(5,"button",39),q("click",function(){H(o);let t=F(2);return U(t.showInfoOtherCountyPopup=!1)})("keypress",function(t){H(o);let i=F(2);return i.closeTooltipTab(t),U(i.showInfoOtherCountyPopup=!1)}),_(6,"GOT IT"),h()()}}function sl(r,n){if(r&1&&(p(0,"div",40),_(1),h()),r&2){let o=F(2);k(),he(o.otherCountyListForChild.join("; "))}}function ll(r,n){if(r&1&&(p(0,"div",11),_(1),h()),r&2){let o=n.$implicit;k(),he(o)}}function cl(r,n){if(r&1&&(p(0,"div",41),X(1,ll,2,1,"div",36),h()),r&2){let o=F(2);k(),M("ngForOf",o.otherCountyListForChild)}}function dl(r,n){if(r&1){let o=ee();p(0,"span",52),_(1),p(2,"a",53),q("click",function(t){let i=H(o).$implicit,s=F(3);return U(s.removeCounty(t,i))})("keypress",function(t){let i=H(o).$implicit,s=F(3);return U(s.removeCounty(t,i))}),_(3,"X"),h()()}if(r&2){let o=n.$implicit;
6M("id",It("anchor_",o.CountyCode)),k(),le("",o.affiliatedCountyName," ")}}function pl(r,n){if(r&1){let o=ee();p(0,"div",10)(1,"span",42)(2,"div",43)(3,"div",44),q("click",function(t){H(o);let i=F(2);return U(i.toggleMultiCheckboxDropdown(t))}),X(4,dl,4,3,"span",45),p(5,"span",46),q("keypress",function(t){H(o);let i=F(2);return U(i.toggleMultiCheckboxDropdown(t))})("click",function(t){H(o);let i=F(2);return U(i.toggleMultiCheckboxDropdown(t))}),h()()()(),p(6,"div",47)(7,"div",48)(8,"select",49)(9,"option",50),_(10,"Choose from list"),h()(),ie(11,"div",51),h()()()}if(r&2){let o=F(2);k(3),M("ngClass",He(2,Cr,o.selectedAffiliatedCounty.length==0)),k(),M("ngForOf",o.selectedAffiliatedCounty)}}function fl(r,n){if(r&1){let o=ee();p(0,"span",52),_(1),p(2,"a",53),q("click",function(t){let i=H(o).$implicit,s=F(3);return U(s.removeCounty(t,i))})("keypress",function(t){let i=H(o).$implicit,s=F(3);return U(s.removeCounty(t,i))}),_(3,"X"),h()()}if(r&2){let o=n.$implicit;M("id",It("anchor_",o.CountyCode)),k(),le("",o.affiliatedCountyName," ")}}function hl(r,n){if(r&1){let o=ee();p(0,"div",54)(1,"span",42)(2,"div",43)(3,"div",44),q("click",function(t){H(o);let i=F(2);return U(i.toggleMultiCheckboxDropdown(t))}),X(4,fl,4,3,"span",45),p(5,"span",55),q("keypress",function(){H(o);let t=F(2);return U(t.openOtherCountiesDialog())})("click",function(){H(o);let t=F(2);return U(t.openOtherCountiesDialog())}),h()()()(),p(6,"div",47)(7,"div",48)(8,"select",49)(9,"option",50),_(10,"Choose from list"),h()(),ie(11,"div",51),h()()()}if(r&2){let o=F(2);k(3),M("ngClass",He(2,Cr,o.selectedAffiliatedCounty.length==0)),k(),M("ngForOf",o.selectedAffiliatedCounty)}}function ul(r,n){if(r&1){let o=ee();p(0,"label",61)(1,"input",62),q("keypress",function(t){let i=H(o).$implicit,s=F(2),a=s.$implicit,l=s.index,g=F(2);return U(g.addRemoveSelectedCountyLocation(t,a.countyCode,i.id,l))})("click",function(t){let i=H(o).$implicit,s=F(2),a=s.$implicit,l=s.index,g=F(2);return U(g.addRemoveSelectedCountyLocation(t,a.countyCode,i.id,l))}),h(),ie(2,"span",59),_(3),h()}if(r&2){let o=n.$implicit,e=F(2).$implicit;M("for",ri("locationCheckbox_",e.countyCode,"_",o.id)),k(),M("id",ri("locationCheckbox_",e.countyCode,"_",o.id))("name",ri("locationCheckbox_",e.countyCode,"_",o.id))("value",Ce(o.name)),k(2),le("",o.name," ")}}function ml(r,n){if(r&1&&(Dt(0),X(1,ul,4,12,"label",60),St()),r&2){let o=F(3);k(),M("ngForOf",o.locations)}}function xl(r,n){if(r&1){let o=ee();p(0,"label",56)(1,"input",57),q("keypress",function(t){let i=H(o).index,s=F(2);return U(s.addRemoveSelectedCounty(t,"county",i))})("click",function(t){let i=H(o).index,s=F(2);return U(s.addRemoveSelectedCounty(t,"county",i))}),h(),p(2,"span",58),_(3),h(),ie(4,"span",59),X(5,ml,2,1,"ng-container",0),h()}if(r&2){let o=n.$implicit,e=n.index,t=F(2);M("for",It("checkbox_",o.countyCode)),k(),M("id",It("checkbox_",o.countyCode))("value",Ce(o.countyName))("disabled",t.disabledArr[e]),k(2),he(o.countyName),k(2),M("ngIf",t.isCountySelected(o))}}function gl(r,n){if(r&1){let o=ee();p(0,"div",73)(1,"p",38),_(2,"You have opted in to auto-renewal your next referee registration. This means you will automatically be re-registered for next season and your registration fee will be charged from your card. You can opt out by changing the toggle from \u2018on\u2019 to \u2018off\u2019."),ie(3,"br")(4,"br"),h(),p(5,"button",74),q("click",function(t){H(o);let i=F(3);return i.showInfoPopup=!1,U(i.closeInfoPopup(t))})("keypress",function(){H(o);let t=F(3);return U(t.showInfoPopup=!1)}),_(6,"GOT IT"),h()()}}function vl(r,n){if(r&1){let o=ee();p(0,"li",63)(1,"label"),_(2,"Auto-Renewel"),h(),p(3,"div",64)(4,"span",65)(5,"label",66)(6,"input",67),q("click",function(t){H(o);let i=F(2);return U(i.onToggleChange(t))}),h(),p(7,"span")(8,"span"),_(9,"Off"),h(),p(10,"span"),_(11,"On"),h()(),ie(12,"a"),h()(),p(13,"span",68)(14,"span",69),_(15),h(),p(16,"span",70),_(17," Saved Card "),h()(),p(18,"a",71),q("keypress",function(){H(o);let t=F(2);return U(t.showInfoPopup=!0)})("click",function(){H(o);let t=F(2);return U(t.showInfoPopup=!0)}),h(),X(19,gl,7,0,"div",72),h()()}if(r&2){let o=F(2);k(6),M("checked",o.checked),k(9),le(" ",o.paymentAutoRenewal.cardNumber," "),k(4),M("ngIf",o.showInfoPopup)}}
6function bl(r,n){if(r&1&&(p(0,"li",75)(1,"a",76),_(2),ve(3,"titlecase"),h()()),r&2){let o=F(2);k(),vt("aria-label",It("Register ",o.fullName," as a Referee")),M("href",Ce(o.refereeRegistrationUrl),We),k(),le("Register ",Re(3,5,o.fullName)," as a Referee")}}function Cl(r,n){if(r&1){let o=ee();p(0,"li")(1,"label"),_(2,"Referee Registration Consent"),h(),p(3,"div",77)(4,"input",78),Yn("ngModelChange",function(t){H(o);let i=F(2);return Wn(i.childRefereeConsent,t)||(i.childRefereeConsent=t),U(t)}),q("change",function(t){H(o);let i=F(2);return U(i.childRefereeConsentSelected(t))}),h(),ie(5,"label",79),h(),p(6,"label",80),_(7,"Please tick to give your child consent to register as a referee"),h()()}if(r&2){let o=F(2);k(4),$n("ngModel",o.childRefereeConsent),M("checked",o.childRefereeConsent)}}function yl(r,n){if(r&1){let o=ee();p(0,"section")(1,"div",1)(2,"div",2)(3,"h3",3)(4,"label",4),_(5,"Referee"),h()()(),p(6,"div",5)(7,"ul"),X(8,il,6,2,"li",6),ve(9,"slice"),X(10,rl,4,1,"li",0),p(11,"li",7)(12,"h3",8),_(13,"Registered County"),h(),p(14,"section",9)(15,"label"),_(16,"Parent County"),h(),p(17,"div",10),_(18),h(),p(19,"div",11),_(20),h()(),p(21,"section",9)(22,"div",12)(23,"label",13),_(24,"Other Counties "),h(),p(25,"a",14),q("keypress",function(){H(o);let t=F();return U(t.showInfoOtherCountyPopup=!0)})("click",function(){H(o);let t=F();return U(t.showInfoOtherCountyPopup=!0)}),h(),X(26,al,7,0,"div",15),h(),X(27,sl,2,1,"div",16)(28,cl,2,1,"div",17)(29,pl,12,4,"div",18)(30,hl,12,4,"div",19),h(),p(31,"section",9)(32,"div",20)(33,"div",21),ie(34,"div",22),p(35,"input",23),q("keyup",function(){H(o);let t=F();return U(t.filterFunction())}),h(),p(36,"button",24),q("keypress",function(){H(o);let t=F();return U(t.hideDropdown())})("click",function(){H(o);let t=F();return U(t.hideDropdown())}),h(),p(37,"div",25),X(38,xl,6,9,"label",26),h(),p(39,"div",27)(40,"button",28),q("click",function(){H(o);let t=F();return U(t.updateCounties())}),_(41,"APPLY "),h(),p(42,"button",29),q("click",function(){H(o);let t=F();return t.resetCheckboxesDesktop(),U(t.resetClicked=!0)}),_(43,"RESET"),h()()()()()(),ie(44,"app-football-categories",30),X(45,vl,20,3,"li",31)(46,bl,4,7,"li",32)(47,Cl,8,2,"li",0),h()()()()}if(r&2){let o=F();k(8),M("ngForOf",Bt(9,20,o.RegistrationSeasonDetails,0,2)),k(2),M("ngIf",o.refereePathwayLevels&&o.refereePathwayLevels.length>0),k(8),he(o.linkedCounties==null?null:o.linkedCounties.parentCounty[0]),k(2),he(o.linkedCounties==null?null:o.linkedCounties.parentCounty[0]),k(6),M("ngIf",o.showInfoOtherCountyPopup),k(),M("ngIf",o.isChildAccount),k(),M("ngIf",o.isChildAccount),k(),M("ngIf",!o.isChildAccount),k(),M("ngIf",!o.isChildAccount),k(8),M("ngForOf",o.countyList),k(2),M("disabled",o.applybtnEnabled&&!o.resetClicked)("ngClass",He(24,br,o.applybtnEnabled&&!o.resetClicked)),k(2),M("disabled",o.selectedAffiliatedCounty.length==0)("ngClass",He(26,br,o.selectedAffiliatedCounty.length==0)),k(2),M("fanCode",o.individualProfile.Fan)("isChildAccount",o.isChildAccount)("dob",o.individualProfile.DateOfBirth),k(),M("ngIf",!o.isChildAccount&&(o.paymentAutoRenewal==null?null:o.paymentAutoRenewal.paymentCompleted)&&(o.paymentAutoRenewal==null?null:o.paymentAutoRenewal.autoRenewalOptIn)),k(),M("ngIf",!o.isChildAccount&&o.RegistrationSeasonDetails.length>0&&o.RegistrationSeasonDetails[0].expiryDate!=null&&o.checkExpiryForSixMonth(o.RegistrationSeasonDetails[0].expiryDate)=="expired"),k(),M("ngIf",o.isChildAccount&&o.isChildLessThanSixteen)}}var yr=(()=>{let n=class n{clickout(e){let t=this;$(e.target).is(".auto-renewel-popup")===!1&&$(e.target).is(".auto-renewel-popup p")===!1&&$(e.target).is("a.auto-renewel-info")===!1&&t.showInfoPopup&&(t.showInfoPopup=!1),$(e.target).is(".medical-info-tooltip-mobile")===!1&&$(e.target).is(".medical-info-tooltip-mobile p")===!1&&$(e.target).is("a.note-info-county.medicalNote")===!1&&t.showInfoOtherCountyPopup&&(t.showInfoOtherCountyPopup=!1),e.target.id!="anchorInMyList"&&e.target.id!="myDropdownParent"&&e.target.id!="myDropdown"&&e.target.id!="myList"&&e.target.id!="myInput"&&e.target.id!="mydropdownoption"&&$(e.target).is(".containerDrop")===!1&&$(e.target).is(".countyCheckbox")===!1&&$(e.target).is(".checkmark")===!1&&$(e.target).is(".county-searchbox-buttons")===!1&&$(e.target).is(".btn-county")}constructor(e,t,i,s,a,l,g){this.injector=e,this.refereeService=t,this.dialog=i,this.cd=s,this.passApiService=a,this.refereeDataAuthz=l,this.sharedService=g,this.individualProfile=new hi,this.refereeRegistrationDetail
6s=new wi,this.isAReferee=!1,this.resetClicked=!1,this.fullName="",this.refereeRegistrationUrl="",this.RegistrationSeasonDetails=[],this.formattedSeasonName=[],this.childRefereeConsent=!1,this.refereeRegistrationConsent=new Ei,this.isChildLessThanSixteen=!1,this.showInfoPopup=!1,this.showInfoOtherCountyPopup=!1,this.paymentAutoRenewal=new En,this.checked=!1,this.emailData=new Nt,this.refereePathwayLevels=[],this.affiliatedCountyLocations=[],this.isChildAccount=!1,this.selectedAffiliatedCounty=[],this.postOtherCountyPreference=[],this.selectedCountiesMobile=[],this.copiedMobileCountyList=[],this.countyList=[],this.individualCounty=new qo,this.panelOpenState=!1,this.locations=[],this.currentlyOpenedItemIndex=-1,this.disabledArr=[],this.saveBtnDisabled=!1,this.applyBtnDisabled=!1,this.resetBtnDisabled=!1,this.searchCountyForMobile=null,this.applybtnEnabled=!0,this.otherCountyListForChild=[],this.updateLinkedCountiesInprofile=new Pt,this.getFullNameService=e.get(Ge),this.ipsService=e.get(Se),this.expiryCheckService=e.get(gi),this.checkYouthService=e.get(Pe),this.successPopupService=e.get(Ke),this.dynamicStyleLoaderService=e.get(Fe)}ngOnInit(){this.locations=[{id:1,name:"Student",isActive:!1},{id:2,name:"Work",isActive:!1},{id:3,name:"Armed Forces",isActive:!1},{id:4,name:"Neighbouring County",isActive:!1},{id:5,name:"Other",isActive:!1}],this.refereeRegistrationUrl=be.apiEndPoints.refreeRegistration}openOtherCountiesDialog(){this.dynamicStyleLoaderService.attachDialogStyles(),delete this.dialogInstance,this.dialogInstance=this.dialog.open(Wo,{disableClose:!0,data:{parentInstance:this}}),this.dialogInstance.afterClosed().subscribe(()=>{this.dynamicStyleLoaderService.removeDialogStyles()})}ngOnChanges(e){e.individualProfile&&this.individualProfile!=null&&this.individualProfile!=null&&(this.fullName=this.getFullNameService.setFullName(this.individualProfile.FirstName,this.individualProfile.MiddleName,this.individualProfile.LastName),this.getRefereeRegistrationDetails(),this.getRefereeDetails(),this.childRefereeConsent=this.individualProfile.RefRegConsent,this.isChildLessThanSixteen=this.checkYouthService.isLessThanSixteen(new Date(this.individualProfile.DateOfBirth)))}sortBy(e){return e.sort((t,i)=>t.startDate>i.startDate?-1:t.startDate<i.startDate?1:0),e}checkExpiryForSixMonth(e){return this.expiryCheckService.checkExpiryForSixMonths(e)}getSeasonYear(e){let t=new Date(e).getFullYear(),i=new Date(e).getFullYear()+1;return t+"/"+i}setSeasonName(e){let t=0;e.forEach(i=>{this.formattedSeasonName[t]=i.seasonName.replace("-","/"),t++})}goToRefereeRegistration(){window.open(this.refereeRegistrationUrl)}getRefereeRegistrationDetails(){this.sharedService.isChildAccount==="true"?this.refereeService.getChildRefereeRegistrationDetails(this.individualProfile.Fan).subscribe(e=>{this.refereeRegistrationDetails=e,this.isAReferee=!0,this.RegistrationSeasonDetails=this.sortBy(this.refereeRegistrationDetails.registartionSeasonDetails),this.setSeasonName(this.RegistrationSeasonDetails)},e=>{e.status=="404"&&(this.isAReferee=!1)}):this.refereeService.getRefereeRegistrationDetails(this.individualProfile.Fan).subscribe(e=>{this.refereeRegistrationDetails=e,this.isAReferee=!0,this.checkAutoRenewal(),this.RegistrationSeasonDetails=this.sortBy(this.refereeRegistrationDetails.registartionSeasonDetails),this.setSeasonName(this.RegistrationSeasonDetails)},e=>{e.status=="404"&&(this.isAReferee=!1)})}getRefereeDetails(){this.refereeService.getRefereeDeatils(this.individualProfile.Fan,this.isChildAccount).subscribe(e=>{this.refereePathwayLevels=e.refereePathwayLevels,this.linkedCounties=e.linkedCounties,this.updateLinkedCountiesInprofile.emit(e.linkedCounties),this.affiliatedCountyLocations=e.affiliatedCountyLocations,this.isChildAccount&&this.setOtherCountyListForChild(e.affiliatedCountyLocations),this.getCountyList()},e=>{console.log(e)})}setOtherCountyListForChild(e){this.otherCountyListForChild=e.map(t=>t.affiliatedCountyName)}childRefereeConsentSelected(e){e.target.checked?this.childRefereeConsent=!0:this.childRefereeConsent=!1,this.updateChildRefereeConsent(this.childRefereeConsent)}updateChildRefereeConsent(e){this.ipsService.updateRefereeRegistrationConsent(e).subscribe(()=>{this.successPopupService.setSuccessMessage("Your child's consent has been updated"),this.successPopupService.show()},t=>{console.log(t)})}checkAutoRenewal(){this.passApiService.getAutoRenewal(this.individualProfile.Fan).subscribe(e=>{this.paymentAutoRenewal=e[0],this.checked=this.paymentAutoRenewal.autoRenewalOptIn})}onToggleChange(e){this.dialog.open(_i,{width:"400px",height:"250px",data:{message:"Are you sure? Cancelling your auto-renewel cannot be undone and you will have to register using the normal process next season",icon:"danger",okButton:{text:"CONFIRM",value:"confirm"},cancelButton:{text:"CANCEL",value:"cancel"}}}).afterClosed().subscribe(i=>{if(i==="confirm"){let s=new En;s.fanCode=this.individualProfile.Fan,s.autoRenewalId=this.paymentAutoRenewal.autoRenewalId,s.autoRenewalOptIn=!1,s.invoiceNumber=this.paymentAutoRenewal.invoiceNumber,s.source="Referee Registration",s.requestedSource="Account Management",s.emailId=this.individualProfile.Indiv
6idualProfileEmail[0].EmailAddress,s.fullName=this.fullName,this.passApiService.postAutoRenewal(s).subscribe(a=>{this.paymentAutoRenewal=a,this.checked=this.paymentAutoRenewal.autoRenewalOptIn},a=>{console.log(a),e.target.checked=!0})}else this.cd.detectChanges(),e.target.checked=!0})}closeInfoPopup(e){e.target.offsetParent.offsetParent.firstChild.focus()}filterFunction(){let e,t,i,s,a,l;for(e=document.getElementById("myInput"),t=e.value.toUpperCase(),document.getElementById("mydropdownoption"),a=document.getElementsByName("countyLablesInDropdown"),l=0;l<a.length;l++)(a[l].textContent??a[l].innerText).toUpperCase().indexOf(t)>-1?a[l].style.display="":a[l].style.setProperty("display","none","important")}getCountyList(){this.refereeDataAuthz.getCountyList().subscribe(e=>{if(this.countyList=e,this.countyList&&this.countyList.length>0)for(let t of this.countyList)this.disabledArr.push(!1),t.locations=JSON.parse(JSON.stringify(this.locations));this.setSelectedCounty(this.affiliatedCountyLocations)})}setSelectedCounty(e){this.selectedAffiliatedCounty=[],e.forEach(t=>{t.isActive&&this.selectedAffiliatedCounty.find(s=>s.affiliatedCountyName===t.affiliatedCountyName)==null&&this.selectedAffiliatedCounty.push(t)}),this.forMobileSelectedCounties()}forMobileSelectedCounties(){let e=[],t=null;this.countyList&&this.countyList.length>0&&(t=JSON.parse(JSON.stringify(this.countyList)));let i=JSON.parse(JSON.stringify(this.selectedAffiliatedCounty));t.forEach((s,a)=>{i.forEach((l,g)=>{s.countyCode==l.affiliatedCountyCode&&(s.locations.forEach((c,m)=>{c.name==l.locationType?(c.isActive=!0,this.countyList[a].locations[m].isActive=!0):(c.isActive=!1,this.countyList[a].locations[m].isActive=!1)}),e.push(s))})}),this.copiedMobileCountyList=JSON.parse(JSON.stringify(e)),this.selectedCountiesMobile=e.slice()}hideDropdown(){document.getElementById("myDropdownParent").classList.remove("show"),document.getElementById("myDropdown").classList.remove("show"),this.resetCheckboxesDesktop();let e;e=document.getElementById("myInput"),e.value="",this.filterFunction(),this.setSelectedCounty(this.affiliatedCountyLocations)}closeCountyModel(){this.dialogInstance.close()}addRemoveSelectedCounty(e,t,i){document.getElementById(e.target.id);let s=this.countyList.find(l=>l.countyName==e.target.value),a=new Pn;if(s&&(a.affiliatedCountyCode=s.countyCode,a.affiliatedCountyName=s.countyName),e.target.checked)a.isActive=!0,this.selectedAffiliatedCounty.push(a),t=="county"&&this.disabled(i,!0);else{let l=this.selectedAffiliatedCounty.findIndex(g=>g.affiliatedCountyName===a.affiliatedCountyName);l>-1&&this.selectedAffiliatedCounty.splice(l,1),t=="county"&&this.disabled(i,!1)}this.addValidationsForCounty(),this.checkDisableForApplyButton(),this.applyBtnToggle(),e.target.checked&&(this.applybtnEnabled=!0)}addRemoveSelectedCountyForMobile(e,t,i){this.addValidationsForCountyMobile()}updateCounties(){this.resetClicked=!1,this.affiliatedCountyLocations.forEach(e=>{let t=this.selectedAffiliatedCounty.findIndex(i=>i.affiliatedCountyCode===e.affiliatedCountyCode);t>-1?(e.isActive=this.selectedAffiliatedCounty[t].isActive,e.locationType=this.selectedAffiliatedCounty[t].locationType):e.isActive=!1}),this.selectedAffiliatedCounty.forEach(e=>{this.affiliatedCountyLocations.find(t=>t.affiliatedCountyCode==e.affiliatedCountyCode)==null&&this.affiliatedCountyLocations.push(e)}),this.postCountyList(this.affiliatedCountyLocations)}resetCheckboxes(){for(let e of this.countyList)for(let t of e.locations)t.isActive=!1}resetCheckboxesDesktop(){this.selectedAffiliatedCounty.splice(0),$(".countyCheckbox").prop("checked",!1),$(".containerDrop").removeClass("checkbox-selected");for(let e=0;e<this.disabledArr.length;e++)this.disabledArr[e]=!1;this.checkDisableForApplyButton(),this.applybtnEnabled=!0}postCountyList(e){let t=new $o;t.FanCode=Number(this.sharedService.fanCode),t.Source="Account Management",this.postOtherCountyPreference=[],e.forEach(i=>{let s=new Go;s.CountyCode=i.affiliatedCountyCode,s.CountyName=i.affiliatedCountyName,s.IsActive=i.isActive,s.LocationId=this.returnLocationId(i.locationType??""),this.postOtherCountyPreference.push(s)}),t.CountyPreferences=this.postOtherCountyPreference,this.refereeService.updateOtherCounty(t).subscribe(i=>{this.setSelectedCounty(e),this.hideDropdown(),this.successPopupService.setSuccessMessage("Your other county list has been Upd
6ated"),this.successPopupService.show()})}toggleMultiCheckboxDropdown(e){if(screen.width>768){if(e.target.nodeName=="DIV"||e.target.id=="anchorInMyList"){document.getElementById("myDropdownParent").classList.add("show"),document.getElementById("myDropdown").classList.add("show"),document.getElementById("myInput").focus(),this.setCheckboxForSelectedCounty(this.selectedAffiliatedCounty);for(let t=0;t<this.disabledArr.length;t++)this.disabledArr[t]=!1;this.checkDisableForApplyButton()}}else this.selectedCountiesMobile=JSON.parse(JSON.stringify(this.copiedMobileCountyList))}toggleMultiCheckboxDropdownMobile(){if(this.searchCountyForMobile=null,$("#countyModal").modal("hide"),this.countyList.forEach(t=>{t.locations.forEach(i=>i.isActive=!1)}),this.selectedCountiesMobile&&this.selectedCountiesMobile.length>0){let t=JSON.parse(JSON.stringify(this.selectedCountiesMobile));for(let i of this.countyList)for(let s of t)i.id==s.id&&(i.locations=s.locations)}let e=0;this.countyList.forEach(t=>{t.locations.forEach(i=>{i.isActive&&e++})}),this.resetBtnDisabled=!(e>0)}setCheckboxForSelectedCounty(e){e.forEach(t=>{if(t.isActive){let i="checkbox_"+t.affiliatedCountyCode,a=document.getElementById(i).parentNode;$("#"+i).prop("checked",!0),$(a).addClass("checkbox-selected");let l=this.returnLocationId(t.locationType??"");if(l!==0){let g="locationCheckbox_"+t.affiliatedCountyCode+"_"+l,m=document.getElementById(g).parentNode;$("#"+g).prop("checked",!0),$(m).addClass("checkbox-selected")}}})}removeCounty(e,t){e.stopPropagation();let i=this.countyList.find(c=>c.countyName===t.affiliatedCountyName),s=this.selectedAffiliatedCounty.findIndex(c=>c.affiliatedCountyName===i.countyName);this.updateCounty(t),this.selectedAffiliatedCounty.splice(s,1);let a="checkbox_"+i.countyCode,g=document.getElementById(a).parentNode;$("#"+a).prop("checked",!1),$(g).removeClass("checkbox-selected")}updateCounty(e){let t=this.affiliatedCountyLocations.find(i=>i.affiliatedCountyName===e.affiliatedCountyName);t.isActive=!1,this.postCountyList(this.affiliatedCountyLocations)}setOpened(e,t){this.currentlyOpenedItemIndex=t,e=="county"&&this.disabled(t,!0)}setOpenedMobile(e,t){this.currentlyOpenedItemIndex=t,e=="county"&&this.disabledMobile(t,!0)}setClosed(e,t){this.currentlyOpenedItemIndex===t&&(this.currentlyOpenedItemIndex=-1,e=="county"&&this.disabled(t,!1))}setClosedMobile(e,t){this.currentlyOpenedItemIndex===t&&(this.currentlyOpenedItemIndex=-1,e=="county"&&this.disabledMobile(t,!1))}isCountySelected(e){return!!this.selectedAffiliatedCounty.find(t=>t.affiliatedCountyCode===e.countyCode)}returnLocationId(e){switch(e){case"Student":return 1;case"Work":return 2;case"Armed Forces":return 3;case"Neighbouring County":return 4;case"Other":return 5;case null:return 0}return 0}closeTooltipTab(e){e.keyCode==13||e.which==13}disabled(e,t){if(t)for(let i=0;i<this.disabledArr.length;i++)i==e?this.disabledArr[i]=!1:this.disabledArr[i]=!0;else for(let i=0;i<this.disabledArr.length;i++)this.disabledArr[i]=!1;this.addValidationsForCounty()}disabledMobile(e,t){if(t)for(let i=0;i<this.disabledArr.length;i++)i==e?this.disabledArr[i]=!1:this.disabledArr[i]=!0;else for(let i=0;i<this.disabledArr.length;i++)this.disabledArr[i]=!1;this.addValidationsForCountyMobile()}addRemoveSelectedCountyLocation(e,t,i,s){let a=0;for(let m=1;m<=this.locations.length;m++)m==i?$("#locationCheckbox_"+t+"_"+i).prop("checked",e.target.checked):$("#locationCheckbox_"+t+"_"+m).prop("checked",!1),$("#locationCheckbox_"+t+"_"+m).is(":checked")&&a++;let l=this.disabledArr.length;if(a>0)for(let m=0;m<l;m++)this.disabledArr[m]=!1;else{for(let m=0;m<l;m++)this.disabledArr[m]=!0;this.disabledArr[s]=!1}this.addValidationsForCounty();let g=this.countyList.find(m=>m.countyCode===t),c=new Pn;if(g&&(c.affiliatedCountyCode=g.countyCode,c.affiliatedCountyName=g.countyName),e.target.checked){let m=this.selectedAffiliatedCounty.find(f=>f.affiliatedCountyCode===c.affiliatedCountyCode);m.isActive=!0,m.locationType=e.target.value}this.checkDisableForApplyButton(),this.applyBtnToggle()}checkResetbtn(){let e=0;this.countyList.forEach(t=>{t.locations.forEach(i=>
6{i.isActive&&e++})}),e>0?this.resetBtnDisabled=!1:this.resetBtnDisabled=!0}checkDisabledArr(e,t=0){let i=this.disabledArr.length;if(t>0)for(let s=0;s<i;s++)this.disabledArr[s]=!1;else{for(let s=0;s<i;s++)this.disabledArr[s]=!0;this.disabledArr[e]=!1}}addRemoveSelectedCountyLocationMobile(e,t,i,s){let a=0;for(let l of this.countyList)if(t==l.countyCode){let g=l.locations;for(let c of g)i-1==c?c.isActive=e.target.checked:c.isActive=!1,c.isActive&&a++}setTimeout(()=>{this.countyList[s].locations[i-1].isActive=e.target.checked},0),this.checkDisabledArr(s,a),this.checkResetbtn(),this.addValidationsForCountyMobile()}activeChecked(e,t,i){return e-1==t?i.target.checked:!1}addRemoveSelectedCountyLocationMobileForSave(e,t,i,s){for(let l of this.selectedCountiesMobile)if(t==l.countyCode){let g=l.locations;for(let c of g)c.isActive=this.activeChecked(i,c,e)}setTimeout(()=>{this.selectedCountiesMobile[s].locations[i-1].isActive=e.target.checked},0);let a=0;this.selectedCountiesMobile.forEach(l=>{l.locations.forEach(g=>{g.isActive&&a++})}),this.saveBtnDisabled=a!==this.selectedCountiesMobile.length}addValidationsForCounty(){for(let e=0;e<this.countyList.length;e++)for(let t=0;t<this.locations.length;t++)$("#locationCheckbox_"+this.countyList[e].countyCode+"_"+t).is(":checked")&&(this.disabledArr[e]=!1)}addValidationsForCountyMobile(){for(let e=0;e<this.countyList.length;e++)for(let t=0;t<this.locations.length;t++)this.countyList[e].locations[t].isActive&&(this.disabledArr[e]=!1)}applyMobile(){let e=this.countyList.filter(t=>t.locations.some(i=>i.isActive));this.selectedCountiesMobile=JSON.parse(JSON.stringify(e)),this.saveCountiesMobile()}checkLength(e=[]){this.selectedCountiesMobile.forEach(t=>{t.locations.forEach(i=>{if(i.isActive){let s={affiliatedCountyCode:t.countyCode,affiliatedCountyName:t.countyName,isActive:!0,locationType:i.name};e.push(s)}})})}saveCountiesMobile(){let e=[],t=[];t=this.selectedCountiesMobile,t.length==0?this.checkLength():this.selectedCountiesMobile.forEach(i=>{i.locations.forEach(s=>{if(s.isActive){let a={affiliatedCountyCode:i.countyCode,affiliatedCountyName:i.countyName,isActive:!0,locationType:s.name};e.push(a)}})}),this.selectedAffiliatedCounty=e,this.affiliatedCountyLocations=e,this.postCountyList(this.affiliatedCountyLocations),setTimeout(()=>{this.dialogInstance.close()},100)}filterFunctionForMobile(){console.log("filter")}checkDisableForApplyButton(){let e=this.disabledArr.find(t=>t);this.applyBtnDisabled=e}applyBtnToggle(){this.applybtnEnabled=!1}};n.\u0275fac=function(t){return new(t||n)(Y(qe),Y(Pi),Y(ze),Y(Jn),Y(gr),Y(Yo),Y(xe))},n.\u0275cmp=fe({type:n,selectors:[["app-referee"]],viewQuery:function(t,i){if(t&1&&Un(wo,5),t&2){let s;qn(s=Gn())&&(i.accordion=s.first)}},hostBindings:function(t,i){t&1&&q("click",function(a){return i.clickout(a)},lt)},inputs:{individualProfile:"individualProfile",isChildAccount:"isChildAccount"},outputs:{updateLinkedCountiesInprofile:"updateLinkedCountiesInprofile"},standalone:!1,features:[ke],decls:1,vars:1,consts:[[4,"ngIf"],[1,"info-panel","refereeDetails"],[1,"info-panel-heading"],[1,"info-panel-title"],[1,"referee"],[1,"info-panel-collapse","in","referee-registration-details"],[4,"ngFor","ngForOf"],[1,"display-li"],[1,"subtitle"],[1,"referee-levels-section"],[1,"referee-levels-semicolon"],[1,"referee-levels-newline"],[1,"for-tooltip-box"],[1,"label-county"],["role","link","aria-label","other county information popup","tabindex","0",1,"note-info-county","medicalNote",3,"keypress","click"],["tabindex","-1","aria-label","disability info tooltip","class","medical-info-tooltip-mobile","role","tooltip",4,"ngIf"],["class","referee-levels-semicolon other-county-list",4,"ngIf"],["class","other-county-list-mobile",4,"ngIf"],["class","referee-levels-semicolon",4,"ngIf"],["class","referee-levels-newline-mobile",4,"ngIf"],["id","myDropdownParent",1,"dropdown-content-parent"],["id","myDropdown",1,"dropdown-content"],[1,"rectangle-3"],["sanitizeInput","","type","text","tabindex","0","placeholder","Search..","id","myInput",3,"keyup"],["tabindex","0","aria-label","Close",1,"search-close-button",3,"keypress","click"],["id","mydropdownoption"],["tabindex","0","name","countyLablesInDropdown","class","containerDrop",3,"for",4,"ngFor","ngForOf"],[1,"county-searchbox-buttons"],["tabindex","0",1,"btn-county","blue-county",3,"click","disabled","ngClass"],["tabindex","0",1,"btn-county","grey-county",3,"click","disabled","ngClass"],[3,"fanCode","isChildAccount","dob"],["class","auto-renewel",4,"ngIf"],["class","referee-registration-link",4,"ngIf"],["class","red",4,"ngIf"],[1,"red"],["class","referee-levels-section",4,"ngFor","ngForOf"],["class","referee-levels-newline",4,"ngFor","ngForOf"],["tabindex","-1","aria-label","disability info tooltip","role","tooltip",1,"medical-info-tooltip-mobile"],["tabindex","0"],["role","button","tabindex","0","aria-label","Got it- Close disbaility info details",1,"dbs-button",3,"click","keypress"],[1,"referee-levels-semicolon","other-county-list"],[1,"other-county-list-mobile"],[1,"dbs_Currently_info","county-dropdown-mobile"],[1,"parent-my-list"],["id","myList",3,"click","ngClass"],["tabindex","0","class","selectedCountry",3,"id",4,"ngFor","ngForOf"],["tabindex","0","id","anchorInMyList","aria-label","Open other county list",1,"anchor-myList",3,"keypress","click"],[1,"dropdown"],[1,"selectBox"],["id","select","placeholder","Choose from list",1,"inp"],[1,"chooseFromList"],[1,"overSelect"],["tabindex","0",1,"selectedCountry",3,"id"],["tabindex","0","aria-label","remove",1,"removeSelCounty",3,"click","keypress"],[1,"referee-levels-newline-mobile"],["tabindex","0","id","anchorInMyList",1,"anchor-myList-mobile",3,"keypress","click"],["tabindex","0","name","countyLablesInDropdown",1,"containerDrop",3,"for"],["tabindex","-1","type","checkbox","name","countyCheckboxes",1,"countyCheckbox",3,"keypress","click","disabled","id","value"],["tabindex","-1",1,"county-name"],["tabindex","-1",1,"checkmark"],["tabindex","0","name","countyLocationsInDropdown","class","containerDrop",3,"for",4,"ngFor","ngForOf"],["tabindex","0","name","countyLocationsInDropdown",1,"containerDrop",3,"for"],["tabindex","-1","type","checkbox",1,"countyCheckbox",3,"keypress","click","id","name","value"],[1,"auto-renewel"],[1,"auto-renewel-content"],[1,"toggle-button"],[1,"toggleSwitch"],["type","checkbox",3,"click","checked"],[1,"saved-card"],[1,"saved-card-number"],[1,"saved-card-text-icon"],["role","link","aria-label","auto renewel details","tabindex","0",1,"auto-renewel-info",3,"keypress","click"],["tabindex","-1","aria-label","auto renewel popup","class","auto-renewel-popup","role","tooltip",4,"ngIf"],["tabindex","-1","aria-label","auto renewel popup","role","tooltip",1,"auto-renewel-popup"],["role","button","tabindex","0","aria-label","Got it- Close auto renewel popup details",1,"dbs-button",3,"click","keypress"],[1,"referee-registration-link"],["tabindex","0","role","link",1,"edit-link",3,"href"],[1,"referee-checkbox","referee-checkbox-a"],["sanitizeInput","","id","referee-consent-check","type","checkbox",3,"ngModelChange","change","ngModel","checked"],["for","referee-consent-check"],[1,"referee-consent-text"]],template:function(t,i){t&1&&X(0,yl,48,28,"section",0),t&2&&M("ngIf",i.isAReferee)},dependencies:[ct,Ye,ye,ao,so,to,ci,no,vr,Ot,si],styles:['.referee-registration-detail
6s[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding-left:0}.referee-registration-details[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{border-bottom:.5px solid rgba(0,0,0,.24);padding-bottom:20px;margin-top:20px;clear:both;display:table;width:100%}.referee-registration-details[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:first-child{margin:0}.referee-registration-details[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.referee-registration-link[_ngcontent-%COMP%]{border:none;text-align:right!important}.referee-registration-details[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child{border:none}.referee-registration-details[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#6f6f6f;font-family:Arial,helvetica,sans-serif;font-size:14px;float:left;width:46.5%;text-align:left}.referee-registration-details[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{float:left;
6font-family:FSJack-Medium,arial,helvetica,sans-serif;font-size:16px;line-height:22px;color:#011e41;text-align:left}.referee-registration-details[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span.red[_ngcontent-%COMP%]{color:#fff;font-family:FSJack-Medium,arial,helvetica,sans-serif;font-size:10px;line-height:12px;background:#a01e21;padding:1px 5px;display:block;border-radius:2px;margin-left:3px;margin-top:5px;float:left}.referee-registration-details[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#0068b2;font-family:FSJack-Medium,arial,helvetica,sans-serif;font-size:15px;line-height:17px;text-align:right;cursor:pointer;text-transform:uppercase}.referee-registration-details[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .subtitle[_ngcontent-%COMP%]{font-family:FSJack-Medium,arial,helvetica,sans-serif;font-size:16px;line-height:19px;margin-bottom:20px}.referee-registration-details[_ngcontent-%COMP%] .auto-renewel-content[_ngcontent-%COMP%], .referee-registration-details[_ngcontent-%COMP%] .saved-card[_ngcontent-%COMP%]{display:flex}.referee-registration-details[_ngcontent-%COMP%] .saved-card-number[_ngcontent-%COMP%]{float:left;margin-left:10px}.referee-registration-details[_ngcontent-%COMP%] .saved-card-text-icon[_ngcontent-%COMP%]{color:#fff;
6font-family:FSJack-Medium,arial,helvetica,sans-serif;font-size:10px;line-height:12px;background:gray;padding:2px 5px;display:block;border-radius:2px;margin:5px 8px;float:left}.referee-registration-details[_ngcontent-%COMP%] li.auto-renewel[_ngcontent-%COMP%]{position:relative}.referee-registration-details[_ngcontent-%COMP%] .auto-renewel-info[_ngcontent-%COMP%]{position:relative;background:url("./media/Help-NW5F47MY.svg") center center no-repeat;width:24px;height:24px;float:left;margin-left:28px}.referee-registration-details[_ngcontent-%COMP%] .auto-renewel-popup[_ngcontent-%COMP%]{border-radius:0;background-color:#e0e0e0;padding:15px 15px 1px;font-size:12px!important;line-height:14px!important;position:absolute!important;width:267px!important;box-shadow:0 2px 2px #0000003d;height:auto!important;right:58px;bottom:-3px;z-index:5}.referee-registration-details[_ngcontent-%COMP%] .auto-renewel-popup[_ngcontent-%COMP%]:after{top:119px;right:-12px;border-top:12px solid transparent;border-bottom:12px solid transparent;border-right:12px solid #e0e0e0;transform:rotate(180deg);content:"";height:0;width:0;position:absolute;pointer-events:none}.referee-levels-semicolon[_ngcontent-%COMP%]{display:block;width:50%!important;margin-bottom:10px}.referee-levels-newline[_ngcontent-%COMP%], .referee-levels-newline-mobile[_ngcontent-%COMP%]{display:none}.referee-levels-newline[_ngcontent-%COMP%]:last-child{margin-bottom:10px}.referee-levels-newline-mobile[_ngcontent-%COMP%]:last-child{margin-bottom:10px}.other-county-list[_ngcontent-%COMP%]{margin-left:5px}.toggle-button[_ngcontent-%COMP%]{line-height:24px!important;float:left!important}.toggleSwitch[_ngcontent-%COMP%]{display:inline-block;height:18px;position:relative;overflow:visible;padding:0;cursor:pointer;width:73px!important;-webkit-user-select:none;user-select:none}.toggleSwitch[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.toggleSwitch[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .toggleSwitch[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{line-height:20px;height:25px;vertical-align:middle}.toggleSwitch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus ~ a[_ngcontent-%COMP%], .toggleSwitch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus + label[_ngcontent-%COMP%]{outline:none}.toggleSwitch[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{position:relative;z-index:3;display:block;width:100%}.toggleSwitch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{position:absolute;opacity:0;z-index:5}.toggleSwitch[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{position:absolute;width:100%;margin:0;padding-right:20px;white-space:nowrap}.toggleSwitch[_ngcontent-%COMP%] > span[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:absolute;z-index:5;display:block;width:50%;text-align:left;font-size:16px;
6font-family:FSJack,arial,helvetica,sans-serif;font-weight:700;color:#fff;left:15%;top:3px;opacity:0}.toggleSwitch[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{position:absolute;right:50%;z-index:4;display:block;height:90%;padding:0;top:4px;left:4px;width:18px;background-color:#fff;border:1px solid #ccc;border-radius:100%;-webkit-transition:all .2s ease-out;-moz-transition:all .2s ease-out;transition:all .2s ease-out;box-shadow:0 1px 2px #0000003d}.toggleSwitch[_ngcontent-%COMP%] > span[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-of-type{color:#fff;opacity:1;left:45%;width:50%}.toggleSwitch[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:before{content:"";display:block;width:100%;height:100%;position:absolute;background-color:#757575;border:1px solid #757575;border-radius:30px;-webkit-transition:all .2s ease-out;-moz-transition:all .2s ease-out;transition:all .2s ease-out}.toggleSwitch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ a[_ngcontent-%COMP%]{border-color:#fff;left:75%;margin-left:-4px}.toggleSwitch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ span[_ngcontent-%COMP%]:before{border-color:#068520;box-shadow:inset 0 0 0 30px #068520}.toggleSwitch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ span[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-of-type{opacity:0;width:50%}.toggleSwitch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ span[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:last-of-type{opacity:1;color:#fff;width:50%}@media (max-width: 767px){.referee-registration-details[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .referee-registration-details[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:100%;margin-top:4px}.referee-registration-details[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span.red[_ngcontent-%COMP%]{display:block;float:left}.referee-checkbox-a[_ngcontent-%COMP%]{float:left!important;width:auto!important;margin-top:-17px!important}.referee-consent-text[_ngcontent-%COMP%]{float:left!important;width:85%!important;margin-top:10px!important;font-size:12px!important}.referee-registration-details[_ngcontent-%COMP%] .auto-renewel-content[_ngcontent-%COMP%]{flex-direction:column-reverse}.referee-registration-details[_ngcontent-%COMP%] .saved-card[_ngcontent-%COMP%]{flex-direction:row;margin-bottom:13px}.referee-registration-details[_ngcontent-%COMP%] .auto-renewel-info[_ngcontent-%COMP%]{left:70%;top:66px}.referee-registration-details[_ngcontent-%COMP%] .saved-card-number[_ngcontent-%COMP%]{margin-left:0}.referee-registration-details[_ngcontent-%COMP%] .saved-card-text-icon[_ngcontent-%COMP%]{margin-left:25%;margin-top:2%}.referee-levels-semicolon[_ngcontent-%COMP%]{display:none}.referee-levels-newline[_ngcontent-%COMP%], .referee-levels-newline-mobile[_ngcontent-%COMP%]{display:block}.for-tooltip-box[_ngcontent-%COMP%]{width:100%!important;height:20px!important}}body[_ngcontent-%COMP%]{margin:0}hr[_ngcontent-%COMP%]{margin:10px 70px}.containerDrop[_ngcontent-%COMP%]{display:block;position:relative;padding-left:70px;margin-bottom:12px;cursor:pointer;font-size:16px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%!important}#myDropdown[_ngcontent-%COMP%] #mydropdownoption[_ngcontent-%COMP%]{width:99%!important}label[for=extension_CFA_None][_ngcontent-%COMP%]{display:none!important}.containerDrop[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.checkmark[_ngcontent-%COMP%]{position:absolute;top:13px;left:10px;height:18px;width:18px;background-color:#fefefe;border:1px solid grey}.containerDrop[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]{background-color:#011e41;border:none}.containerDrop[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:disabled ~ .checkmark[_ngcontent-%COMP%]{background-color:#f7f6f6}.checkmark[_ngcontent-%COMP%]:after{content:"";position:absolute;display:none}.containerDrop[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]:after{display:block}.containerDrop[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]:after{left:5px;top:1px;width:5px;height:12px;border:solid white;border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}
6.chooseFromList[_ngcontent-%COMP%]{font-weight:700;font-size:12px}.overSelect[_ngcontent-%COMP%]{position:absolute;inset:0}.selectBox[_ngcontent-%COMP%]{width:300px}.inp[_ngcontent-%COMP%]{border:none;padding:5px 10px;outline:none;width:300px;border-bottom:.5px solid #011e41;opacity:.4;font-weight:700;font-size:16px;display:none}#myInput[_ngcontent-%COMP%]{box-sizing:border-box;background:url("./media/[email protected]") no-repeat center center;background-position:10px 10px;background-repeat:no-repeat;font-size:16px!important;padding:14px 20px 12px 45px!important;border:1px solid #979797!important;border-radius:4px;margin:4px;width:calc(100% - 10px)!important;height:40px;position:relative;bottom:-5px}#myInputMobile[_ngcontent-%COMP%]{box-sizing:border-box;background:url("./media/[email protected]") no-repeat center center;background-position:10px 10px;background-repeat:no-repeat;font-size:16px!important;padding:14px 20px 12px 45px!important;border:1px solid #979797!important;border-radius:4px;margin:4px;width:calc(100% - 10px)!important;height:40px;position:relative;bottom:-5px}form.example[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%]{padding:10px;font-size:17px;border:1px solid grey;float:left;width:80%;background:#f1f1f1}form.example[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{float:left;width:20%;padding:10px;background:#2196f3;color:#fff;font-size:17px;border:1px solid grey;border-left:none;cursor:pointer;position:relative;top:-36px;left:-12px;background-size:contain;background-repeat:no-repeat;background-color:#fff;height:11px}form.example[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:#0b7dda}form.example[_ngcontent-%COMP%]:after{content:"";clear:both;display:table}.parent-my-list[_ngcontent-%COMP%]{position:relative;width:100%!important}#myList[_ngcontent-%COMP%]{z-index:1;border-bottom:1px solid #eee;overflow-x:auto;white-space:pre-wrap;
6font-family:FSJack,arial,helvetica,sans-serif;margin:0!important;margin-right:34px;padding:0!important;padding-bottom:10px;padding-top:10px;min-height:44px;width:100%!important}.anchor-myList[_ngcontent-%COMP%]{background:#fff url("./media/[email protected]") center center no-repeat;position:absolute;display:inline-block;width:30px;height:40px;right:5px;top:3px;z-index:4;cursor:pointer}.anchor-myList-mobile[_ngcontent-%COMP%]{background:#fff url("./media/[email protected]") center center no-repeat;position:absolute;display:inline-block;width:30px;height:40px;right:5px;top:3px;z-index:4;cursor:pointer}.selectedCountyList[_ngcontent-%COMP%]{display:block!important}#myInput[_ngcontent-%COMP%]:focus{outline:1px solid #979797}.mySelectedList[_ngcontent-%COMP%]:before{content:"Choose from list";color:#303030;font-family:FSJack,arial,helvetica,sans-serif;font-size:18px;font-weight:700;letter-spacing:0;line-height:44px}.mySelectedList[_ngcontent-%COMP%]{margin-top:20px}.selectedCountry[_ngcontent-%COMP%]{z-index:2;padding:8px 6px;margin-right:5px;border-radius:1px;background-color:#ededed;color:#011e41;font-family:Arial,helvetica,sans-serif;font-weight:550;font-size:14px;letter-spacing:0;line-height:38px}.selectedCountryMobile[_ngcontent-%COMP%]{z-index:2;padding:8px 6px;margin-right:5px;border-radius:1px;color:#011e41;font-family:Arial,helvetica,sans-serif;font-weight:550;font-size:14px;letter-spacing:0;line-height:38px}.removeSelCounty[_ngcontent-%COMP%]{z-index:2;font-weight:700;font-size:16px!important;color:#011e41!important;text-decoration:none;height:16px;overflow:hidden;margin-left:10px;position:relative;width:13px;left:0;right:0;top:0}#mydropdownoption[_ngcontent-%COMP%]{max-height:300px;overflow:auto}.dropdown[_ngcontent-%COMP%]{position:relative;display:inline-block;max-width:300px}.dropdown-content-parent[_ngcontent-%COMP%]{position:relative;width:100%;display:none}.dropdown-content[_ngcontent-%COMP%]{display:none;position:absolute;background-color:#fff;z-index:6;box-sizing:border-box;width:55%;border:1px solid #979797;border-radius:4px;top:0;right:0;padding:5px}.dropdown-content-mobile[_ngcontent-%COMP%]{display:none;position:relative;background-color:#fff;z-index:2;box-sizing:border-box;border:1px solid #979797;border-radius:4px;padding:5px;height:calc(100vh - 62px)}.dropdown-content-mobile[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#000;padding:12px 36px;text-decoration:none;display:block}.dropdown-content-mobile[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#000;padding:12px 36px;text-decoration:none;display:block;margin-bottom:0}.dropdown-content[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#000;padding:12px 36px;text-decoration:none;display:block}.dropdown-content[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#000;padding:12px 36px;text-decoration:none;display:block;margin-bottom:0}.county-searchbox-buttons[_ngcontent-%COMP%]{border-top:1px solid #f5f5f5;padding:10px 20px}.btn-county[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:10px;position:relative;float:right}.blue-county[_ngcontent-%COMP%]{color:#fff;
6font-family:FSJack-Bold,arial,helvetica,sans-serif;font-size:14px;line-height:22px;padding:8px 45px;background-color:#011e41;border:none;font-weight:700;letter-spacing:0;text-align:center}.grey-county[_ngcontent-%COMP%]{color:#011e41;font-family:FSJack-Bold,arial,helvetica,sans-serif;font-size:14px;line-height:22px;padding:8px 45px;background-color:#d7d7d7;border:none;font-weight:700;letter-spacing:0;text-align:center}.disabled-btn-county[_ngcontent-%COMP%]{color:#a9a9a9!important;background-color:#e1e1e1!important}.countyCheckbox[_ngcontent-%COMP%]{background-color:#fefefe;cursor:default;-webkit-appearance:checkbox;box-sizing:border-box;margin:3px 3px 3px 4px;padding:initial;border:none}.search-close-button[_ngcontent-%COMP%]{height:38px;background:url("./media/[email protected]") no-repeat center center;background-color:#fff;float:right;position:relative;bottom:37.6px;right:8.5px;border:none;border-left:1px solid #979797;padding-left:6px;width:40px!important;cursor:pointer;z-index:3;margin-bottom:-35px;background-position:15px 12px;background-repeat:no-repeat;font-size:16px!important}button.search-close-button[_ngcontent-%COMP%]:hover{background-color:#fff!important;box-shadow:0 0!important;border:none!important;border-left:1px solid #979797!important;border-top:1px solid #979797!important}.show[_ngcontent-%COMP%]{display:block}.hide[_ngcontent-%COMP%], .rectangle-3[_ngcontent-%COMP%]{display:none}.pad-l-5[_ngcontent-%COMP%]{padding-left:5px!important}.preferences-row[_ngcontent-%COMP%]{display:table!important;padding-bottom:0!important}@media (max-width: 767px) and (min-width: 320px){.dropdown-content-parent[_ngcontent-%COMP%]{position:absolute;top:-200px;width:100%;z-index:10000;background-color:#011e41;padding-bottom:0}.dropdown-content-parent-mobile[_ngcontent-%COMP%]{position:relative;top:0;width:100%;z-index:10000;padding-bottom:0}.dropdown-content[_ngcontent-%COMP%]{width:100%!important;top:-88px;left:-15px;min-height:3340px;border-top-left-radius:12px;border-top-right-radius:12px}.dropdown-content-mobile[_ngcontent-%COMP%]{width:100%!important;top:0;left:0;border-top-left-radius:12px;border-top-right-radius:12px}#mydropdownoption[_ngcontent-%COMP%]{height:575px!important;overflow:auto;max-height:none}.checkmark[_ngcontent-%COMP%]{left:87%;height:24px;width:24px;border-radius:1px}.containerDrop[_ngcontent-%COMP%]{font-size:18px;letter-spacing:0;line-height:21px}.county-dropdown-mobile[_ngcontent-%COMP%]{width:100%!important}.thick-mid-line[_ngcontent-%COMP%]{height:5px;width:114px;opacity:.5;border-radius:4px;background-color:#464646}.btn-county[_ngcontent-%COMP%]{margin:10px 20px 10px 0;position:relative;float:right}.rectangle-3[_ngcontent-%COMP%]{display:block;height:5px;width:114px;opacity:.5;z-index:100003!important;border-radius:4px;background-color:#464646;margin:20px 120px}.referee-levels-semicolon[_ngcontent-%COMP%]{width:100%!important}.dbs_Currently_info[_ngcontent-%COMP%]{float:right!important;padding-left:0!important}.county-searchbox-buttons[_ngcontent-%COMP%]{border-top:1px solid #f5f5f5;padding:5px}.anchor-myList[_ngcontent-%COMP%], .anchor-myList-mobile[_ngcontent-%COMP%]{right:-15px!important}}.display-li[_ngcontent-%COMP%]{display:inline-block!important}.dbs_Currently_info[_ngcontent-%COMP%]{float:none!important}@media screen and (max-width: 320px){.referee-levels-semicolon[_ngcontent-%COMP%]{width:100%!important}.dbs_Currently_info[_ngcontent-%COMP%]{float:right!important;padding-left:0!important}.btn-county[_ngcontent-%COMP%]{margin-left:0;margin-right:5px}.county-searchbox-buttons[_ngcontent-%COMP%]{border-top:1px solid #f5f5f5;padding:5px}.anchor-myList[_ngcontent-%COMP%], .anchor-myList-mobile[_ngcontent-%COMP%]{right:-15px!important}}.form-group__field[_ngcontent-%COMP%]{border-bottom:2px solid #dddddd;height:36px!important;margin-bottom:5px!important}.profile-photo-body[_ngcontent-%COMP%]{margin-top:20px!important}
6.mat-select-placeholder[_ngcontent-%COMP%]{font-family:FSJackRegular,arial,helvetica,sans-serif!important;font-size:14px!important;line-height:20px!important;color:#2b2b2b!important}.height-100[_ngcontent-%COMP%]{height:100%!important}.mat-accordion[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important;border-radius:0!important}.mat-expansion-panel[_ngcontent-%COMP%]:not(.mat-expanded):not([aria-disabled=true]) .mat-expansion-panel-header[_ngcontent-%COMP%]:hover{height:40px!important;border-bottom:1px solid #979797!important;border-radius:0!important}.mat-expansion-panel-header[_ngcontent-%COMP%]{height:40px!important;border-bottom:1px solid #979797!important}.mat-expansion-panel-header.mat-expanded[_ngcontent-%COMP%]:focus, .mat-expansion-panel-header.mat-expanded[_ngcontent-%COMP%]:hover{background-color:#011e41!important;color:#fff!important}.mat-expansion-panel[_ngcontent-%COMP%]:not([class*=mat-elevation-z]){box-shadow:none!important}.mat-expansion-panel-header.mat-expanded[_ngcontent-%COMP%]:focus, .mat-expansion-panel-header.mat-expanded[_ngcontent-%COMP%]:hover .mat-expansion-indicator[_ngcontent-%COMP%]:after .mat-expansion-panel-header-description[_ngcontent-%COMP%], .mat-expansion-panel-header-title[_ngcontent-%COMP%]{color:#fff!important}.mat-expansion-panel-header.mat-expanded[_ngcontent-%COMP%]{background-color:#011e41!important;color:#fff!important}.mat-expansion-panel-header.mat-expanded[_ngcontent-%COMP%] .mat-expansion-indicator[_ngcontent-%COMP%]:after .mat-expansion-panel-header-description[_ngcontent-%COMP%]{color:#fff!important}.form-group[_ngcontent-%COMP%]{display:block;margin-bottom:15px;position:relative}.form-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding:0;height:initial;width:initial;margin-bottom:0;display:none;cursor:pointer}.form-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{position:relative;cursor:pointer;background:#fff!important;color:#000!important;padding:10px!important}.form-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:before{content:"";-webkit-appearance:none;border:1px solid #757575;box-shadow:0 1px 2px #0000000d,inset 0 -15px 10px -12px #0000000d;padding:10px;display:inline-block;position:absolute;vertical-align:middle;cursor:pointer;right:0;margin-right:5px}.form-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:before{background-color:#011e41;border:1px solid #011e41!important}.form-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:after{content:"";display:block;position:absolute;top:12px;right:12px;width:6px;height:14px;border:solid #ffffff;border-width:0 2px 2px 0;transform:rotate(45deg)}.add-another[_ngcontent-%COMP%]{margin-bottom:0!important;color:#0168b2!important;
6font-family:FSJack-Medium,arial,helvetica,sans-serif;line-height:20px!important;margin-top:20px!important;cursor:pointer}.accordian-content[_ngcontent-%COMP%]{width:100%!important;min-height:3340px;z-index:2;box-sizing:border-box}.allCountyModal[_ngcontent-%COMP%]{margin:0!important;opacity:1;background-color:#767676;border-top:4px solid red}.margin-0[_ngcontent-%COMP%]{margin:0!important}.note-info-county[_ngcontent-%COMP%]{position:absolute!important;background:url("./media/Help-NW5F47MY.svg") no-repeat center center;width:24px;height:24px;cursor:pointer}.note-info-county.medicalNote[_ngcontent-%COMP%]{display:inline-block;position:absolute!important;left:100px}.medical-info-tooltip-mobile[_ngcontent-%COMP%]{border-radius:0;background-color:#e0e0e0;padding:15px 15px 1px;font-family:FSJack-Medium,arial,helvetica,sans-serif;font-size:12px!important;line-height:14px!important;color:#011e41;position:relative!important;width:267px!important;top:-10px;left:145px;margin:0;z-index:1;box-shadow:0 2px 2px #0000003d;height:auto!important}.medical-info-tooltip-mobile[_ngcontent-%COMP%]:before{top:13px;right:266px;border-top:12px solid transparent;border-bottom:12px solid transparent;border-right:12px solid #e0e0e0;transform:rotate(0);content:"";height:0;width:0;position:absolute;pointer-events:none}.for-tooltip-box[_ngcontent-%COMP%]{width:46%!important;height:50px;position:relative}.label-county[_ngcontent-%COMP%]{position:absolute;left:0}[type=checkbox][_ngcontent-%COMP%]:disabled + .county-name[_ngcontent-%COMP%]{opacity:.4}@media screen and (max-width: 768px){.medical-info-tooltip-mobile[_ngcontent-%COMP%]{top:30px;left:-26px}.medical-info-tooltip-mobile[_ngcontent-%COMP%]:before{top:-17px;right:120px;transform:rotate(90deg)}.containerDrop[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]:after{left:10px;top:4px}.for-county-box[_ngcontent-%COMP%]{max-height:400px;overflow-y:auto}}']});let r=n;return r})();function kl(r,n){if(r&1&&(p(0,"li")(1,"div",10)(2,"p"),_(3),h()(),p(4,"div",11)(5,"p",12),_(6),p(7,"span"),_(8),ve(9,"date"),h()()()()),r&2){let o=n.$implicit;k(3),he(o.orgName),k(3),he(o.consentStatus),k(2),Ft(" (",o.consentMode,") ",ai(9,4,o.consentGivenDate,"d MMM yyyy")," ")}}function wl(r,n){if(r&1){let o=ee();p(0,"section")(1,"div",1)(2,"div",2)(3,"h3",3)(4,"label",4),_(5,"My Consent "),p(6,"span"),_(7),h()()()(),p(8,"div",5)(9,"p",6),_(10,"In order to register to play, each club requires your consent to play. Clubs listed below are those that you currently have approved consent for. Please click 'MANAGE CONSENT' to see any outstanding consent actions required. "),h(),p(11,"ul"),X(12,kl,10,7,"li",7),h(),p(13,"div",8)(14,"a",9),q("click",function(){H(o);let t=F();return U(t.openPlayerRegConsent())}),_(15,"MANAGE CONSENT"),h()()()()()}if(r&2){let o=F();k(7),le("",o.outstandingCount," Outstanding"),k(5),M("ngForOf",o.approvedConsents)}}var _r=(()=>{let n=class n{constructor(e,t){this.playerRegService=e,this.sharedService=t,this.consents=[],this.approvedConsents=[],this.outstandingCount=0}ngOnInit(){let e=be.apiEndPoints;this.playerRegUrl=e.playerRegServerUrl+e.externalApplicationUrls.playerRegistration}ngOnChanges(e){if(e.individualProfile&&this.individualProfile!=null&&this.individualProfile!=null){let t=this.sharedService.fanCode,i=this.individualProfile.Fan.toString();this.consents=[],this.getMyConsentData(t,i)}}getMyConsentData(e,t){console.log("***************** inside fn"),this.playerRegService.getConsent(e).subscribe(i=>{console.log("***************** inside api call"),this.playerConsents=i,this.playerConsents!=null&&this.playerConsents.length>0&&(this.getConsentsForFan(t),this.consents!=null&&this.consents.length>0&&(this.outstandingCount=this.countOutstanding(this.consents),this.takeApprovedConsents(this.consents)))},i=>{console.log(i)})}getConsentsForFan(e){this.playerConsents.forEach(t=>{t.fanId==Number(e)&&(this.consents=t.playerConsentModel)})}takeApprovedConsents(e){this.approvedConsents=[],e.forEach(t=>{t.consentStatusId==2&&this.approvedConsents.push(t)})}countOutstanding(e){let t=0;return e.forEach(i=>{i.consentStatusId==3&&t++}),t}openPlayerRegConsent(){window.open(this.playerRegUrl)}};n.\u0275fac=function(t){return new(t||n)(Y(Ci),Y(xe))},n.\u0275cmp=fe({type:n,selectors:[["app-my-consent"]],inputs:{individualProfile:"individualProfile",isChildAccount:"isChildAccount"}
6,standalone:!1,features:[ke],decls:1,vars:1,consts:[[4,"ngIf"],[1,"info-panel","otherDetails"],[1,"info-panel-heading"],[1,"info-panel-title"],[1,"myconsent"],[1,"info-panel-collapse","in","consent-info-details"],[1,"consent-info"],[4,"ngFor","ngForOf"],[1,"manage-consent"],[3,"click"],[1,"consent-name"],[1,"greenbox"],[1,"approved-txt"]],template:function(t,i){t&1&&X(0,wl,16,2,"section",0),t&2&&M("ngIf",i.playerConsents!=null&&i.playerConsents.length>0&&i.consents!=null&&i.consents.length>0)},dependencies:[Ye,ye,li],styles:['.consent-info[_ngcontent-%COMP%]{color:#6f6f6f;font-family:Arial,helvetica,sans-serif;font-size:14px;line-height:20px;margin-bottom:20px}.manage-consent[_ngcontent-%COMP%]{display:block;position:relative;width:100%;padding-bottom:20px}.manage-consent[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{float:right;color:#0068b2;font-family:FSJack-Medium,arial,helvetica,sans-serif;font-size:14px;line-height:17px;cursor:pointer;position:absolute;right:0}.consent-name[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#0168b2;
6font-family:FSJack-Bold,arial,helvetica,sans-serif;font-size:20px;line-height:34px;position:relative;padding-left:44px}.consent-info-details[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{display:table;width:100%}.consent-info-details[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{box-sizing:border-box;border:1px solid #cfd4dc;border-radius:4px;float:left;margin-left:15px;margin-bottom:16px;width:calc(50% - 10px);overflow:hidden}.consent-info-details[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(odd){margin-left:0}.consent-info-details[_ngcontent-%COMP%] .consent-name[_ngcontent-%COMP%]{padding:12px 16px}.consent-info-details[_ngcontent-%COMP%] .consent-name[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]:before{background:url("./media/myconsent_shield_icon-TETP4TNN.svg") no-repeat center center;width:34px;height:34px;content:"";display:inline-block;position:absolute;left:0}.consent-info-details[_ngcontent-%COMP%] .bluebox[_ngcontent-%COMP%]{background-color:#0168b2;padding:10px 16px;display:table}.consent-info-details[_ngcontent-%COMP%] .greenbox[_ngcontent-%COMP%]{background-color:#01813e;padding:10px 12px;display:table;width:100%}.consent-info-details[_ngcontent-%COMP%] .graybox[_ngcontent-%COMP%]{background-color:#cfd4dc;padding:12px 16px;min-width:320px}.consent-info-details[_ngcontent-%COMP%] a.btns[_ngcontent-%COMP%]{height:38px;width:auto;border-radius:6px;
6font-family:FSJack-Medium,arial,helvetica,sans-serif;font-size:14px;line-height:16px;text-align:right;padding:12px 20px;display:inline-block;position:relative}.consent-info-details[_ngcontent-%COMP%] a.reject[_ngcontent-%COMP%], .consent-info-details[_ngcontent-%COMP%] a.remove[_ngcontent-%COMP%]{background-color:#fff;color:#4d4d4d;content:"";padding-left:50px}.consent-info-details[_ngcontent-%COMP%] a.reject[_ngcontent-%COMP%]{float:left}.consent-info-details[_ngcontent-%COMP%] a.remove[_ngcontent-%COMP%]{width:auto;padding-left:55px;float:right}.consent-info-details[_ngcontent-%COMP%] a.reject[_ngcontent-%COMP%]:before, .consent-info-details[_ngcontent-%COMP%] a.remove[_ngcontent-%COMP%]:before{background:url(/src/assets/account-management/images/icons/rejected.svg) no-repeat center center;width:20px;height:20px;display:inline-block;content:"";position:absolute;left:16px;top:9px}.consent-info-details[_ngcontent-%COMP%] a.give[_ngcontent-%COMP%]{background-color:#fff;color:#0168b2;margin-left:29px;padding-left:53px;text-align:left;float:right}.consent-info-details[_ngcontent-%COMP%] a.give[_ngcontent-%COMP%]:before{background:url(/src/assets/account-management/images/icons/tick-blue.svg) no-repeat center center;width:20px;height:20px;display:inline-block;content:"";position:absolute;left:16px;top:9px}.consent-info-details[_ngcontent-%COMP%] .approved-txt[_ngcontent-%COMP%]{color:#fff;
6font-family:FSJack-Bold,arial,helvetica,sans-serif;font-size:14px;line-height:16px;display:inline-block;padding-left:26px;position:relative;margin-right:10px}.consent-info-details[_ngcontent-%COMP%] .approved-txt[_ngcontent-%COMP%]:before{background:url("./media/tick-green-I63HUQFA.svg") no-repeat center center;width:20px;height:20px;display:inline-block;content:"";position:absolute;left:0;top:-2px}.consent-info-details[_ngcontent-%COMP%] .approved-txt[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-family:FSJack,arial,helvetica,sans-serif}.consent-info-details[_ngcontent-%COMP%] .expired-txt[_ngcontent-%COMP%], .consent-info-details[_ngcontent-%COMP%] .rejected-txt[_ngcontent-%COMP%]{color:#4d4d4d;font-family:FSJack-Bold,arial,helvetica,sans-serif;font-size:14px;line-height:16px;padding-left:32px;position:relative;width:134px}.consent-info-details[_ngcontent-%COMP%] .expired-txt[_ngcontent-%COMP%]:before, .consent-info-details[_ngcontent-%COMP%] .rejected-txt[_ngcontent-%COMP%]:before{width:20px;height:20px;display:inline-block;content:"";position:absolute;left:1px;top:6px}.consent-info-details[_ngcontent-%COMP%] .expired-txt[_ngcontent-%COMP%]:before{background:url(/src/assets/account-management/images/icons/timer.svg) no-repeat center center}.consent-info-details[_ngcontent-%COMP%] .rejected-txt[_ngcontent-%COMP%]:before{background:url(/src/assets/account-management/images/icons/rejected.svg) no-repeat center center}@media (max-width: 768px){.consent-info-details[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-left:0!important;width:calc(100vw - 60px)}.consent-info-details[_ngcontent-%COMP%] .bluebox[_ngcontent-%COMP%]{width:100%;display:table}.consent-info-details[_ngcontent-%COMP%] .greenbox[_ngcontent-%COMP%]{width:100%}.consent-info-details[_ngcontent-%COMP%] a.give[_ngcontent-%COMP%]{margin-left:10px;padding-left:45px!important;float:right}.consent-info-details[_ngcontent-%COMP%] a.btns[_ngcontent-%COMP%]{padding:10px 16px}.consent-info-details[_ngcontent-%COMP%] .graybox[_ngcontent-%COMP%]{min-width:100%}.consent-info-details[_ngcontent-%COMP%] a.reject[_ngcontent-%COMP%]{padding-left:75px;float:left}.consent-info-details[_ngcontent-%COMP%] a.remove[_ngcontent-%COMP%]{padding-left:50px}}@media (min-width: 768px) and (max-width: 768px){.consent-info-details[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-left:0!important;width:calc(100vw - 120px)}.consent-info-details[_ngcontent-%COMP%] .greenbox[_ngcontent-%COMP%]{width:100%}}@media (min-width: 992px) and (max-width: 1199px){.consent-info-details[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-left:0!important}}']});let r=n;return r})();function Pl(r,n){r&1&&(p(0,"div",9),_(1," No current memberships found. "),h())}function Al(r,n){if(r&1){let o=ee();p(0,"li"),ie(1,"img",13),p(2,"a",14),q("click",function(){let t=H(o).$implicit,i=F(3);return U(i.membershipUrlGA(t.MembershipType.MembershipName))}),_(3,"GO TO SITE"),h()()}if(r&2){let o=n.$implicit;k(),M("src",Ce(o.MembershipType.MembershipLogoPath),We)("alt",Ce(o==null||o.MembershipType==null?null:o.MembershipType.MembershipName))("title",Ce(o==null||o.MembershipType==null?null:o.MembershipType.MembershipName)),k(),M("href",Ce(o==null||o.MembershipType==null?null:o.MembershipType.MembershipUrl),We),vt("aria-label"," Go To Site"+(o==null||o.MembershipType==null?null:o.MembershipType.MembershipName))}}function Dl(r,n){if(r&1&&(Dt(0),X(1,Al,4,9,"li",12),St()),r&2){let o=F(2);k(),M("ngForOf",o.individualMemberships)}}function Sl(r,n){if(r&1&&(p(0,"ul",10),X(1,Dl,2,1,"ng-container",11),h()),r&2){let o=F();k(),M("ngIf",o.individualMemberships!=null&&o.individualMemberships.length>0)}}function Fl(r,n){if(r&1){let o=ee();p(0,"li"),ie(1,"img",13),p(2,"button",15),q("click",function(){let t=H(o).$implicit,i=F(2);return i.goToUrl(t.MembershipSignUpUrl),U(i.signUpUrlGA(t.MembershipName))}),_(3," SIGN UP NOW "),h(),p(4,"a",16),q("click",function(){let t=H(o).$implicit,i=F(2);return U(i.learnUrlGA(t.MembershipName))}),_(5," LEARN MORE "),h()()}if(r&2){let o=n.$implicit;k(),M("src",Ce(o==null?null:o.MembershipLogoPath),We)("alt",Ce(o==null?null:o.MembershipName))("title",Ce(o==null?null:o.MembershipName)),k(),vt("aria-label"," Sign up Now"+o.MembershipName),k(2),M("href",Ce(o==null?null:o.MembershipUrl),We)}}function Il(r,n){if(r&1&&(p(0,"div",5)(1,"ul",10)(2,"h4"),_(3,"Available memberships"),h(),X(4,Fl,6,9,"li",12),h()()),r&2){let o=F();k(4),M("ngForOf",o.availableMemberships)}}var kr=(()=>{let n=class n{constructor(){this.availableMemberships=[],this.individualMemberships=[]}ngOnChanges(e){if((e.individualProfile||e.membershipDetails)&&this.individualProfile!=null&&this.individualProfile!=null&&this.membershipDetails!==void 0&&this.membershipDetails!==null){let t=this.membershipDetails.MembershipBlobData,i=this.individualProfile.Indiv
6idualMembership,s=this.individualProfile.AvailableMemberships;i?.forEach(a=>{let l=t.find(g=>g.MembershipId==a.MembershipType?.MembershipTypeId);if(l){let g=this.getMimeType(l?.FileData);a.MembershipType.MembershipLogoPath=`data:${g};base64,${l.FileData}`}}),s?.forEach(a=>{let l=t.find(g=>g.MembershipId==a.MembershipTypeId);if(l){let g=this.getMimeType(l?.FileData);a.MembershipLogoPath=`data:${g};base64,${l.FileData}`}}),this.individualMemberships=i||[],this.availableMemberships=s||[]}}getMimeType(e){return e.startsWith("/9j")?"image/jpeg":"image/svg+xml"}goToUrl(e){window.open(e,"_blank")}membershipUrlGA(e){window.dataLayer.push({event:"view-label",generalData:"go to site "+e})}signUpUrlGA(e){window.dataLayer.push({event:"membership-signup",generalData:e})}learnUrlGA(e){window.dataLayer.push({event:"membership-learn",generalData:e})}};n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=fe({type:n,selectors:[["app-memberships"]],inputs:{individualProfile:"individualProfile",membershipDetails:"membershipDetails"},standalone:!1,features:[ke],decls:13,vars:3,consts:[[1,"info-panel"],[1,"info-panel-heading"],[1,"info-panel-title"],[1,"membership"],[1,"info-panel-collapse","in"],[1,"memberships-panel"],["class","no-membership-message",4,"ngIf"],["class","memberships-logos",4,"ngIf"],["class","memberships-panel",4,"ngIf"],[1,"no-membership-message"],[1,"memberships-logos"],[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"src","alt","title"],["tabindex","0","target","_blank","rel","noopener",1,"link-btn",3,"click","href"],[1,"btn-blue",3,"click"],["target","_blank","rel","noopener","aria-label","LEARN MORE - opens in a new tab","tabindex","0",1,"link-btn",3,"click","href"]],template:function(t,i){t&1&&(p(0,"section")(1,"div",0)(2,"div",1)(3,"h3",2)(4,"label",3),_(5,"Memberships"),h()()(),p(6,"div",4)(7,"div",5)(8,"h4"),_(9,"Current Memberships"),h(),X(10,Pl,2,0,"div",6)(11,Sl,2,1,"ul",7),h(),X(12,Il,5,1,"div",8),h()()()),t&2&&(k(10),M("ngIf",!i.individualMemberships||i.individualMemberships.length===0),k(),M("ngIf",i.individualMemberships&&i.individualMemberships.length>0),k(),M("ngIf",i.availableMemberships!=null&&i.availableMemberships.length>0))},dependencies:[Ye,ye],styles:["body[_ngcontent-%COMP%]{margin:0}.no-membership-message[_ngcontent-%COMP%]{text-align:center;padding:25px 20px;margin:15px 0;font-size:16px;color:#666;font-style:italic;border:1px dashed #d9d9d9;border-radius:6px;background-color:#fafafa}.memberships-panel[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin-bottom:15px}"]});let r=n;return r})();var wr=(()=>{let n=class n{constructor(e,t){this.data=e,this.dynamicStyleLoader=t,this.dialogData=e.parentInstance}
6ngOnInit(){this.dynamicStyleLoader.focusCloseButton("mob-focus-phone","desktop-focus-phone")}};n.\u0275fac=function(t){return new(t||n)(Y(Mt),Y(Fe))},n.\u0275cmp=fe({type:n,selectors:[["my-account-dispensation-intervention-dialog"]],standalone:!1,decls:55,vars:0,consts:[[1,"dialog-component"],[1,"cross"],["id","desktop-focus-phone","tabindex","0","type","button","aria-label","Close",1,"close","close-btn",3,"click"],[1,"image-container"],[1,"profile-photo-header"],["id","mob-focus-phone","tabindex","0","type","button","aria-label","Close",1,"close","close-btn",3,"click"],[1,"edit-nationality-body"],[1,"modal-form-group"],[1,"intervention-message"],["href","https://grassrootstechnology.thefa.com/support/solutions/articles/48001254877-what-documents-to-use","target","_blank"],[1,"btn-container","nationality-button"],["role","button","tabindex","0","aria-label","save",1,"send-button",3,"click"]],template:function(t,i){t&1&&(p(0,"div",0)(1,"div",1)(2,"button",2),q("click",function(){return i.dialogData.reset()}),h()(),p(3,"div",3)(4,"div",4)(5,"button",5),q("click",function(){return i.dialogData.reset()}),h()(),p(6,"div",6)(7,"div",7)(8,"div",8)(9,"p")(10,"strong")(11,"u"),_(12,"Important Information"),h()()(),ie(13,"br"),p(14,"p"),_(15,"Before you apply for dispensation, it is important you have the right documentation ready to submit as part of your application."),h(),ie(16,"br"),p(17,"p"),_(18,"Requests relating to "),p(19,"strong"),_(20,"disability, significant physical development delay or mental health / chronic illness"),h(),_(21," - please submit a letter dated within the last 18 months from your "),p(22,"strong"),_(23,"GP"),h(),_(24," (please note, for certain disabilities we may be able to accept evidence with an older date)"),h(),ie(25,"br"),p(26,"p"),_(27,"Requests relating to "),p(28,"strong"),_(29,"education"),h(),_(30,", please submit a letter (headed and signed by the school) dated within the last 12 months from your child\u2019s "),p(31,"strong"),_(32,"school"),h(),_(33,"."),h(),ie(34,"br"),p(35,"p"),_(36,"Requests relating to "),p(37,"strong")(38,"u"),_(39,"availability of opportunity"),h()(),_(40," or "),p(41,"strong")(42,"u"),_(43,"Talent Development"),h()(),_(44," are required to complete existing templates which can be found in the FAQ page below."),h(),ie(45,"br"),p(46,"p"),_(47,"Please visit "),p(48,"a",9)(49,"u"),_(50,"our FAQ page"),h()(),_(51," to see more information relating to supporting evidence"),h()()(),p(52,"div",10)(53,"button",11),q("click",function(){return i.dialogData.navigateToUrl("applyDispensation")}),_(54,"Proceed"),h()()()()())},styles:[".edit-nationality-body[_ngcontent-%COMP%]{width:75%;margin-top:10px}@media (max-width: 767px){.edit-nationality-body[_ngcontent-%COMP%]{width:90%;margin:50px auto 0}}@media (min-width: 960px){.dialog-component[_ngcontent-%COMP%]{margin-bottom:10px}}"]});let r=n;return r})();var Kt=oi(Oa());var Ma=(()=>{let n=class n{constructor(){this.secretKey=ho.cryptoSecretKey}encrypt(e){return Kt.AES.encrypt(e,this.secretKey.trim()).toString()}decrypt(e){return Kt.AES.decrypt(e,this.secretKey.trim()).toString(Kt.enc.Utf8)}};n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=Le({token:n,factory:n.\u0275fac,providedIn:"root"});let r=n;return r})();function Ml(r,n){if(r&1){let o=ee();p(0,"section")(1,"div",1)(2,"div",2)(3,"h3",3)(4,"label",4),_(5,"Player Dispensation"),h()()(),p(6,"div",5)(7,"p",6),_(8,"For dispensation guidelines, "),p(9,"a",7),_(10," click here "),h()(),p(11,"section",8)(12,"button",9),q("keypress",function(){H(o);let t=F();return U(t.openDispensationInterventionDialog())})("click",function(){H(o);let t=F();return U(t.openDispensationInterventionDialog())}),_(13,"Apply for Dispensation"),h(),p(14,"button",10),q("click",function(){H(o);let t=F();return U(t.navigateToUrl("applicationDashboard"))}),_(15,"Application Dashboard"),h()()()()()}if(r&2){let o=F();k(9),M("href",o.dispensationGuidelines,We)}}var Na=(()=>{let n=class n{constructor(e,t,i,s,a,l){this.sharedService=e,this.checkYouthService=t,this.cryptoService=i,this.getFullNameService=s,this.dynamicStyleLoaderService=a,this.dialog=l,this.dispensationGuidelines="",this.applyDispensationUrl="",this.applicationDashboardUrl="",this.isLessThanEighteen=!1,this.data={child:{},parent:{}},this.isChildAccount=this.sharedService.isChildAccount,this.isLessThanEighteen=this.checkYouthService.isLessThanEighteen(new Date(this.sharedService.dob)),this.applicationDashboardUrl=be.a
6piEndPoints.applicationDashboard,this.dispensationGuidelines=be.apiEndPoints.externalApplicationUrls.dispensationGuidelines}ngOnChanges(e){(e.individualProfile||e.linkedAccounts)&&this.isChildAccount=="true"&&(this.setChildDetails(),this.setParentDetails(),this.getFullNameService.getNameChangeSubject().subscribe(t=>{this.individualProfile.FirstName=t.FirstName,this.individualProfile.MiddleName=t.MiddleName,this.individualProfile.LastName=t.LastName,this.data.child.Name=this.setChildName()}),this.getFullNameService.getGenderChangeSubject().subscribe(t=>{this.data.child.Gender=t}))}openDispensationInterventionDialog(){this.dynamicStyleLoaderService.attachDialogStyles(),delete this.dialogInstance,this.dialogInstance=this.dialog.open(wr,{width:"60%",disableClose:!0,position:{top:"25px"},data:{parentInstance:this}}),this.dialogInstance.afterClosed().subscribe(()=>{this.dynamicStyleLoaderService.removeDialogStyles()})}setChildName(){return this.getFullNameService.setFullName(this.individualProfile.FirstName,this.individualProfile.MiddleName,this.individualProfile.LastName)}setChildDetails(){let e=t=>{let i=0;if(t!=null||t!=null){let s=Math.abs(Date.now()-new Date(t).getTime());i=Math.floor(s/864e5/365.25)}return i};this.data.child={Name:this.setChildName(),FAN_ID:this.individualProfile.Fan,Date_of_Birth:this.individualProfile.DateOfBirth,Age_of_Child:e(this.individualProfile.DateOfBirth),Gender:this.individualProfile.Gender}}
6setParentDetails(){if(this.linkedAccounts&&this.linkedAccounts.ListLinkedProfile&&this.linkedAccounts.ListLinkedProfile.length>0){let e;this.linkedAccounts.ListLinkedProfile.forEach(t=>{t.Fan.toString()===this.sharedService.fanCode&&(e=t)}),this.data.parent={Name:this.getFullNameService.setFullName(e.FirstName,e.MiddleName,e.LastName),FAN_ID:e.Fan,Email:e.EmailAddress?e.EmailAddress:"",Phone_Number:e.PhoneNumber.length>0?e.PhoneNumber[0].PhoneNumber:""}}}navigateToUrl(e){console.log("set dispensation details ",this.data);let t=this.cryptoService.encrypt(JSON.stringify(this.data));this.applyDispensationUrl=`${be.apiEndPoints.dispensationRequest}?data=${t}`;let i=e=="applyDispensation"?this.applyDispensationUrl:this.applicationDashboardUrl;window.open(i,"_blank"),this.reset()}reset(){this.dialogInstance.close()}};n.\u0275fac=function(t){return new(t||n)(Y(xe),Y(Pe),Y(Ma),Y(Ge),Y(Fe),Y(ze))},n.\u0275cmp=fe({type:n,selectors:[["my-account-player-dispensation"]],inputs:{individualProfile:"individualProfile",linkedAccounts:"linkedAccounts"},standalone:!1,features:[ke],decls:1,vars:1,consts:[[4,"ngIf"],[1,"info-panel","otherDetails"],[1,"info-panel-heading"],[1,"info-panel-title"],[1,"player-dispensation"],[1,"info-panel-collapse","in","dispensation-details"],[1,"dispensation-guide"],["role","link","tabindex","0","target","_blank","rel","noopener","aria-label","click here for dispensation guidelines",1,"link-btn",3,"href"],[1,"dispensation-navigation"],["role","button","tabindex","0","aria-label","Apply for Dispensation","data-backdrop","static","data-toggle","modal",1,"apply-dispensation",3,"keypress","click"],["role","button","tabindex","0","aria-label","Application Dashboard",1,"application-dashboard",3,"click"]],template:function(t,i){t&1&&X(0,Ml,16,1,"section",0),t&2&&M("ngIf",i.isChildAccount=="true"&&i.isLessThanEighteen)},dependencies:[ye],styles:[".dispensation-details[_ngcontent-%COMP%]{display:flex}.dispensation-details[_ngcontent-%COMP%] .dispensation-guide[_ngcontent-%COMP%]{width:50%;color:#6f6f6f;font-family:Arial,helvetica,sans-serif;font-size:14px;line-height:16px}.dispensation-details[_ngcontent-%COMP%] .dispensation-navigation[_ngcontent-%COMP%]{width:50%;display:flex;flex-direction:column}.dispensation-details[_ngcontent-%COMP%] .dispensation-navigation[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:12px;align-self:flex-end;border-radius:.4rem;padding:5px 20px;border:2px solid #0068b2}.dispensation-details[_ngcontent-%COMP%] .dispensation-navigation[_ngcontent-%COMP%] .apply-dispensation[_ngcontent-%COMP%]{background-color:#0068b2;color:#fff;margin-bottom:15px}.dispensation-details[_ngcontent-%COMP%] .dispensation-navigation[_ngcontent-%COMP%] .application-dashboard[_ngcontent-%COMP%]{background-color:#fff;color:#0068b2}@media (max-width: 767px) and (min-width: 320px){.dispensation-details[_ngcontent-%COMP%]{display:flex;flex-direction:column}.dispensation-guide[_ngcontent-%COMP%], .dispensation-navigation[_ngcontent-%COMP%]{min-width:100%}.dispensation-guide[_ngcontent-%COMP%]{border-bottom:.5px solid rgba(0,0,0,.24);padding-bottom:10px}.dispensation-navigation[_ngcontent-%COMP%]{margin:30px 0 15px}.dispensation-navigation[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:auto}}"]});let r=n;return r})();function Tl(r,n){if(r&1&&ie(0,"app-linked-child-account",18),r&2){let o=F(2);M("childAccounts",o.childAccounts)("isChildAccount",o.isChildAccount)}}function Ll(r,n){if(r&1&&ie(0,"app-linked-parent-account",19),r&2){let o=F(2);M("parentAccounts",o.parentAccounts)("isChildAccount",o.isChildAccount)}}function Rl(r,n){if(r&1){let o=ee();p(0,"main",1)(1,"div",2),_(2,"My Account"),h(),p(3,"section",3),ie(4,"div",4),h(),p(5,"div",5)(6,"div",6),ie(7,"div",7),p(8,"div",8)(9,"app-basic-info",9),q("outputData",function(t){H(o);let i=F();return U(i.captureData(t))}),h(),X(10,Tl,1,2,"app-linked-child-account",10)(11,Ll,1,2,"app-linked-parent-account",11),ie(12,"app-contact-details",12)(13,"app-playing-details",13)(14,"my-account-player-dispensation",14)(15,"app-my-consent",15),p(16,"app-referee",16),q("updateLinkedCountiesInprofile",function(t){H(o);let i=F();return U(i.updateLinkedCountiesInprofile(t))}),h(),ie(17,"app-memberships",17),h()()()()}if(r&2){let o=F();k(9),M("individualProfile",o.individualProfile)("countyInfo",o.countyInfo),k(),M("ngIf",o.validProfile),k(),M("ngIf",o.parentAccounts!=null&&o.parentAccounts.length>
60),k(),M("individualProfile",o.individualProfile)("isChildAccount",o.isChildAccount)("parentAccounts",o.parentAccounts),k(),M("linkedAccounts",o.linkedAccounts)("individualProfile",o.individualProfile)("isChildAccount",o.isChildAccount)("fancode",o.fancode),k(),M("individualProfile",o.individualProfile)("linkedAccounts",o.linkedAccounts),k(),M("individualProfile",o.individualProfile)("isChildAccount",o.isChildAccount),k(),M("individualProfile",o.individualProfile)("isChildAccount",o.isChildAccount),k(),M("individualProfile",o.individualProfile)("membershipDetails",o.membershipDetails)}}var Mn=(()=>{let n=class n{constructor(e,t,i,s,a,l,g){this.injector=e,this._route=t,this.enableDisableHeaderLinkService=i,this.router=s,this.sanitizer=a,this.titleService=l,this.sharedService=g,this.individualProfile={},this.linkedAccounts=new mi,this.parentAccounts=[],this.childAccounts=[],this.validProfile=!1,this.helpToggle=!0,this.fancode="",this.isChildAccount=!1,this.showProfile=!0,console.log("***********We are in angular 20 version"),this.getFullNameService=e.get(Ge),this.notificationService=e.get(Tt),this.checkYouthService=e.get(Pe),this.mediaService=e.get(ft)}ngOnInit(){let e=window,t=this.sanitizer.sanitize(jn.HTML,localStorage.getItem("settings"));t=="authentication"||t=="changePasswordSuccess"||t=="changePasswordError"?(this.showProfile=!1,this.router.navigate(["/account-management/settings"],{})):this.showProfile=!0,e.dataLayer.push({event:"virtual-profile"}),this.titleService.setTitle("My Account"),this.navigationSubscription=this.router.events.subscribe(i=>{i instanceof po&&(console.log("navigation end ",i),this.initialiseInvites())}),this.initialiseInvites(),$(".fa-navigation .global-navigation__primary-list-item").removeClass("current-section"),$("#profile").closest("li.global-navigation__primary-list-item").addClass("current-section"),this.getFullNameService.getNameChangeSubject().subscribe(i=>{this.individualProfile.FirstName=i.FirstName,this.individualProfile.MiddleName=i.MiddleName,this.individualProfile.LastName=i.LastName})}initialiseInvites(){this._route.snapshot.queryParamMap.get("childAccount")?(this.fancode=this.sharedService.childFancode,this.isChildAccount=!0):(this.fancode=this.sharedService.fanCode,this.isChildAccount=!1),this.fetchIndividualDetails(),this.getLinkedAccounts(this.fancode)}checkPreferences(){if(this.isChildAccount)this.enableDisableHeaderLinkService.disableDNILinkForChildView();else{this.sharedService.dob=this.individualProfile.DateOfBirth;let e=this,t=setInterval(function(){$("ul.global-navigation__primary-menu").find("#preferences").html()!=null&&(e.enableDisableHeaderLinkService.enablePreferenceLinks(),e.enableDisableHeaderLinkService.enableDiversityAndInclusionLinks(),clearInterval(t))},1e3)}}checkDiversityAndInclusion(){if(this.isChildAccount)this.enableDisableHeaderLinkService.disableDiversityAndInclusionLinks();else{this.sharedService.dob=this.individualProfile.DateOfBirth;let e=this,t=setInterval(function(){$("ul.global-navigation__primary-menu").find("#diversityAndInclusion").html()!=null&&(e.enableDisableHeaderLinkService.disablePreferenceLinks(),e.enableDisableHeaderLinkService.disableDiversityAndInclusionLinks(),clearInterval(t))},1e3)}}validateProfile(){if(this.individualProfile.DateOfBirth!=""){this.sharedService.dob=this.individualProfile.DateOfBirth;let t=new Date(this.individualProfile.DateOfBirth).getFullYear();t!=null&&t>1900?this.checkYouthService.isYouth(new Date(this.individualProfile.DateOfBirth))?(this.validProfile=!1,this.checkDiversityAndInclusion()):(this.validProfile=!0,this.checkPreferences()):(this.validProfile=!1,this.enableDisableHeaderLinkService.disablePreferenceLinks(),this.enableDisableHeaderLinkService.disableDiversityAndInclusionLinks())}this.individualProfile.DateOfBirth==null&&(this.validProfile=!1,this.enableDisableHeaderLinkService.disablePreferenceLinks())}fetchIndividualDetails(){let e=this._route.snapshot.data.resolveProfile;this.individualProfile=e[0],this.individualProfile.isGenderEdit=!1,this.validateProfile(),this.result=e[1],this.getMembershipDetails(Number(this.sharedService.fanCode))}validateGenderEdit(e){if(e.LeaguePlayerTeam!==null&&e.LeaguePlayerTeam.Disability=="Non Disabled"&&(this.individualProfile.isGenderEdit=!0,e.LeaguePlayerTeam.AgeGroup.indexOf("U")>-1)){let t=e.LeaguePlayerTeam.AgeGroup.slice(0,e.LeaguePlayerTeam.AgeGroup.search(/\d/)),i=e.LeaguePlayerTeam.AgeGroup.replace(t,"");i>6&&i<18&&(this.individualProfile.isGenderEdit=!1)}}captureData(e){e=="Success"&&this.validateProfile()}getLinkedAccounts(e){this.linkedAccounts=this._route.snapshot.data.resolveLinkedAccount,this.parentAccounts=this.filterLinkedAccounts(this.linkedAccounts,1),this.childAccounts=this.filterLinkedAccounts(this.linkedAccounts,2)}filterLinkedAccounts(e,t){return e.ListLinkedProfile!=null?e.ListLinkedProfile.filter(i=>i.RelationshipId==t):[]}updateLinkedCountiesInprofile(e){this.countyInfo=e}setFullName(){return this.getFullNameService.setFullName(this.individualProfile.FirstName,this.individualProfile.MiddleName,this.individualProfile.LastName)}notifyProfileChanges(){let e=new Nt;e.Fancode=Number(this.sharedService.fanCode),e.EmailId=this.individualProfile.Indiv
6idualProfileEmail&&this.individualProfile.IndividualProfileEmail.length>0?this.individualProfile.IndividualProfileEmail[0].EmailAddress:"",e.EventId=5625,e.NotificationType="notifyProfileChanges",e.EmailSubjectData=new xi,e.EmailSubjectData.name=this.setFullName(),this.notificationService.sendNotificationWithEmarsys(e).subscribe()}getMembershipDetails(e){this.mediaService.getMembershipDetails(e).subscribe(t=>{this.membershipDetails=t})}ngOnDestroy(){this.navigationSubscription&&this.navigationSubscription.unsubscribe()}};n.\u0275fac=function(t){return new(t||n)(Y(qe),Y(fo),Y(Do),Y(pt),Y(eo),Y(Zn),Y(xe))},n.\u0275cmp=fe({type:n,selectors:[["app-profile"]],standalone:!1,decls:1,vars:1,consts:[["class","body-content","id","main-content",4,"ngIf"],["id","main-content",1,"body-content"],["tabindex","0",1,"current-page-title"],["id","bannerimage",1,"banner"],["role","banner",1,"bannerbg"],["role","main",1,"container"],[1,"row"],[1,"col-lg-2","col-md-2"],[1,"col-lg-8","col-md-8","col-xs-12"],[3,"outputData","individualProfile","countyInfo"],[3,"childAccounts","isChildAccount",4,"ngIf"],[3,"parentAccounts","isChildAccount",4,"ngIf"],[3,"individualProfile","isChildAccount","parentAccounts"],[3,"linkedAccounts","individualProfile","isChildAccount","fancode"],[3,"individualProfile","linkedAccounts"],[3,"individualProfile","isChildAccount"],[3,"updateLinkedCountiesInprofile","individualProfile","isChildAccount"],[3,"individualProfile","membershipDetails"],[3,"childAccounts","isChildAccount"],[3,"parentAccounts","isChildAccount"]],template:function(t,i){t&1&&X(0,Rl,18,19,"main",0),t&2&&M("ngIf",i.showProfile)},dependencies:[ye,Qo,tr,ir,fr,mr,yr,_r,kr,Na],styles:['.help_button[_ngcontent-%COMP%]{bottom:10%;position:fixed;right:13%;cursor:pointer;z-index:1}.help_button[_ngcontent-%COMP%] .primary[_ngcontent-%COMP%]{background-color:#0068b2!important;color:#fff;
6font-family:FSJack,arial,helvetica,sans-serif;font-size:14px;line-height:17px!important;border-radius:6px!important;border:#0068B2!important;text-transform:uppercase;height:44px;outline:unset;width:53px}.help_button[_ngcontent-%COMP%] .primary.closeIcon[_ngcontent-%COMP%]{background:url("./media/HelpClose-FNKT3KJZ.svg") center no-repeat;height:44px;width:53px;font-size:0px;border:none}.help_button[_ngcontent-%COMP%] .nonPrimary[_ngcontent-%COMP%]{background:url("./media/HelpClose-FNKT3KJZ.svg") center no-repeat;height:44px;width:53px;font-size:0px;border:none}.help_button[_ngcontent-%COMP%] .nonPrimary[_ngcontent-%COMP%]:focus{outline:unset}@media (max-width: 768px){.help_button[_ngcontent-%COMP%]{bottom:0%;right:4%}}']});let r=n;return r})();var Vl=[{path:"edit-email",component:fi,data:{type:pi.updateEmail}},{path:"edit-mobile",component:fi,data:{type:pi.updateMobile}},{path:"edit-address",component:fi,data:{type:pi.updateAddress}},{path:"child",component:Mn,resolve:{resolveProfile:wn,resolveLinkedAccount:An}},{path:"",component:Mn,resolve:{resolveProfile:wn,resolveLinkedAccount:An}}],Ta=(()=>{let n=class n{};n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=At({type:n}),n.\u0275inj=Et({imports:[vn.forChild(Vl),vn]});let r=n;return r})();var zl=[Gt,Cn,yn,bn,kn,_n],La=(()=>{let n=class n{};n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=At({type:n}),n.\u0275inj=Et({imports:[zl,Gt,Cn,yn,bn,kn,_n]});let r=n;return r})();var sp=(()=>{let n=class n{};n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=At({type:n}),n.\u0275inj=Et({imports:[Xn,lo,co,Ta,La,Gt]});let r=n;return r})();export{sp as MyAccountModule};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.