vendor: 5,833 bytes, line 1
1import{a as Jv,b as eC}from"./chunk-563YFTIG.js";import{c as jo,d as mi,f as Pt,g as co,h as fi}from"./chunk-36JN3LZY.js";import{D as Nv,G as bh,J as zv,P as cl,R as Bv,V as Vv,Y as Hv,Z as $c,_ as xn,a as wn,aa as Gv,b as vh,ca as Uv,fa as jv,ga as Wv,h as Fv,ha as $v,i as Ov,ia as qv,j as sl,ja as Yv,k as Av,ka as dl,la as Kv,m as Lv,ma as Qv,na as An,p as go,pa as Zv,q as Lt,ra as qc,sa as Xv,t as Ch,w as ll}from"./chunk-WPHW6CRH.js";import{B as al,E as fh,H as nn,J as Wc,K as Rt,L as Vi,a as Zt,b as Iv,c as Bi,e as fe,f as Dv,g as Pv,h as Qe,i as ct,j as Er,k as Rv,l as gh,m as Xt,n as uo,o as po,p as ho,r as mh,s as ei,t as _t,u as tl,v as il,w as ti,x as nl,y as ol,z as rl}from"./chunk-76O7YCWW.js";import{a as Ia,b as Tv,c as Uo,d as hh,e as gi,f as tt,k as At}from"./chunk-YYIIKC2W.js";import{d as Ev,e as Mv,f as yn}from"./chunk-3WYGUSDH.js";import{a as bt,c as lt,d as kv,f as Uc,g as jc}from"./chunk-LU7SZU5X.js";import{A as ge,E as Ct,e as yv,g as wv,j as Ce,k as lo,l as Ni,m as xv,n as Sv,o as kr,p as Ta,q as zi,r as Hc,s as el,t as tn,w as Gc,z as ph}from"./chunk-PO2RDVKE.js";import{$a as ah,Ab as V,Ac as R,B as sv,Bc as A,Ca as Ye,Cc as Yt,D as zc,Da as Tt,Dc as ch,E as he,Ec as Kt,Fa as $t,Fc as Qt,Gc as Jt,H as Ho,Ic as ne,J as ot,Ja as gt,Jc as vt,K as oh,Kb as Vc,Kc as Go,Lb as hv,Lc as St,M as Zs,Mb as Ve,Nb as gv,Nc as On,Ob as mv,Oc as z,Pb as y,Pc as Re,Qc as hi,R as lv,Rb as w,Rc as dh,S as cv,Sb as fv,Sc as vv,Tb as se,Tc as N,U as dv,Ub as X,Uc as G,V as uv,Vb as ee,Vc as He,W as ht,Wb as v,Wc as xr,X as ro,Xb as p,Yb as u,Yc as ze,Z as ao,Za as ue,Zb as x,_ as rh,_a as ae,ac as Fn,ad as uh,ba as Wt,bb as yr,bc as mt,bd as It,c as Lc,ca as ve,cb as wr,cc as ft,cd as Cv,da as te,db as d,dc as Ti,ec as P,ed as Dt,f as Xi,fa as ka,g as Ze,ga as Y,h as no,ha as xe,ib as L,id as Ii,jb as Ea,jc as T,lb as sh,lc as g,m as ov,mc as en,n as Q,nc as ui,o as jt,oa as k,ob as Rn,oc as pi,od as rt,p as Nc,pa as E,pb as O,pc as Ue,pd as Sr,qa as Xe,qc as Me,qd as bv,r as rv,rb as Ma,rc as Te,s as J,sa as Bc,sd as _v,ta as ci,u as _r,ua as Xs,ub as U,uc as de,vb as ie,vc as xt,wb as di,wc as Pe,x as av,xa as so,xb as et,xc as lh,y as oo,yb as qt,yc as pe,zb as pv,zc as C}from"./chunk-3URBZWPM.js";import{a as B,b as ye,c as Js,d as Ac,e as _n,f as nv,g as ih,h as nh,i as pt}from"./chunk-ODN5LVDJ.js";var RC=_n((pl,od)=>{(function(e,t){"use strict";var i="1.0.41",n="",o="?",r="function",a="undefined",s="object",l="string",c="major",h="model",m="name",f="type",b="vendor",_="version",S="architecture",M="console",D="mobile",I="tablet",F="smarttv",W="wearable",re="embedded",Z=500,q="Amazon",ce="Apple",_e="ASUS",Et="BlackBerry",Mi="Browser",Ic="Chrome",PE="Edge",Dc="Firefox",Pc="Google",W0="Honor",$0="Huawei",RE="Lenovo",Rc="LG",Yp="Microsoft",Kp="Motorola",Qp="Nvidia",q0="OnePlus",Ws="Opera",Jp="OPPO",$s="Samsung",Y0="Sharp",qs="Sony",Zp="Xiaomi",Xp="Zebra",K0="Facebook",Q0="Chromium OS",J0="Mac OS",Z0=" Browser",FE=function(Ne,We){var De={};for(var Je in Ne)We[Je]&&We[Je].length%2===0?De[Je]=We[Je].concat(Ne[Je]):De[Je]=Ne[Je];return De},Fc=function(Ne){for(var We={},De=0;De<Ne.length;De++)We[Ne[De].toUpperCase()]=Ne[De];return We},X0=function(Ne,We){return typeof Ne===l?Ys(We).indexOf(Ys(Ne))!==-1:!1},Ys=function(Ne){return Ne.toLowerCase()},OE=function(Ne){return typeof Ne===l?Ne.replace(/[^\d\.]/g,n).split(".")[0]:t},eh=function(Ne,We){if(typeof Ne===l)return Ne=Ne.replace(/^\s\s*/,n),typeof We===a?Ne:Ne.substring(0,Z)},Ks=function(Ne,We){for(var De=0,Je,io,Dn,$e,Ie,Pn;De<We.length&&!Ie;){var th=We[De],iv=We[De+1];for(Je=io=0;Je<th.length&&!Ie&&th[Je];)if(Ie=th[Je++].exec(Ne),Ie)for(Dn=0;Dn<iv.length;Dn++)Pn=Ie[++io],$e=iv[Dn],typeof $e===s&&$e.length>0?$e.length===2?typeof $e[1]==r?this[$e[0]]=$e[1].call(this,Pn):this[$e[0]]=$e[1]:$e.length===3?typeof $e[1]===r&&!($e[1].exec&&$e[1].test)?this[$e[0]]=Pn?$e[1].call(this,Pn,$e[2]):t:this[$e[0]]=Pn?Pn.replace($e[1],$e[2]):t:$e.length===4&&(this[$e[0]]=Pn?$e[3].call(this,Pn.replace($e[1],$e[2])):t):this[$e]=Pn||t;De+=2}},Qs=function(Ne,We){for(var De in We)if(typeof We[De]===s&&We[De].length>0){for(var Je=0;Je<We[De].length;Je++)if(X0(We[De][Je],Ne))return De===o?t:De}else if(X0(We[De],Ne))return De===o?t:De;return We.hasOwnProperty("*")?We["*"]:Ne},AE={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},ev={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},tv={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[_,[m,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[_,[m,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[m,_],[/opios[\/ ]+([\w\.]+)/i],[_,[m,Ws+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[_,[m,Ws+" GX"]],[/\bopr\/([\w\.]+)/i],[_,[m,Ws]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[_,[m,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[_,[m,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[m,_],[/quark(?:pc)?\/([-\w\.]+)/i],[_,[m,"Quark"]],[/\bddg\/([\w\.]+)/i],[_,[m,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[_,[m,"UC"+Mi]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[_,[m,"WeChat"]],[/konqueror\/([\w\.]+)/i],[_,[m,"K
1onqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[_,[m,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[_,[m,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[_,[m,"Smart Lenovo "+Mi]],[/(avast|avg)\/([\w\.]+)/i],[[m,/(.+)/,"$1 Secure "+Mi],_],[/\bfocus\/([\w\.]+)/i],[_,[m,Dc+" Focus"]],[/\bopt\/([\w\.]+)/i],[_,[m,Ws+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[_,[m,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[_,[m,"Dolphin"]],[/coast\/([\w\.]+)/i],[_,[m,Ws+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[_,[m,"MIUI"+Z0]],[/fxios\/([\w\.-]+)/i],[_,[m,Dc]],[/\bqihoobrowser\/?([\w\.]*)/i],[_,[m,"360"]],[/\b(qq)\/([\w\.]+)/i],[[m,/(.+)/,"$1Browser"],_],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[m,/(.+)/,"$1"+Z0],_],[/samsungbrowser\/([\w\.]+)/i],[_,[m,$s+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[_,[m,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[m,"Sogou Mobile"],_],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[m,_],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[m],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[_,m],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[m,K0],_],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[m,_],[/\bgsa\/([\w\.]+) .*safari\//i],[_,[m,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[_,[m,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[_,[m,Ic+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[m,Ic+" WebView"],_],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[_,[m,"Android "+Mi]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[m,_],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[_,[m,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[_,m],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[m,[_,Qs,AE]],[/(webkit|khtml)\/([\w\.]+)/i],[m,_],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[m,"Netscape"],_],[/(wolvic|librewolf)\/([\w\.]+)/i],[m,_],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[_,[m,Dc+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[m,[_,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[m,[_,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[S,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[S,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[S,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[S,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[S,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[S,/ower/,n,Ys]],[/ sun4\w[;\)]/i],[[S,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[S,Ys]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[h,[b,$s],[f,I]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[h,[b,$s],[f,D]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[h,[b,ce],[f,D]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[h,[b,ce],[f,I]],[/(macintosh);/i],[h,[b,ce]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[h,[b,Y0],[f,D]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[h,[b,W0],[f,I]],[/honor([-\w ]+)[;\)]/i],[h,[b,W0],[f,D]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[h,[b,$0],[f,I]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[h,[b,$0],[f,D]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[h,/_/g," "],[b,Zp],[f,I]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[h,/_/g," "],[b,Zp],[f,D]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[h,[b,Jp],[f,D]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[h,[b,Qs,{OnePlus:["304","403","203"],"*":Jp}],[f,I]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[h,[b,"Vivo"],[f,D]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[h,[b,"Realme"],[f,D]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[h,[b,Kp],[f,D]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[h,[b,Kp],[f,I]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[h,[b,Rc],[f,I]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[h,[b,Rc],[f,D]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}
1(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[h,[b,RE],[f,I]],[/(nokia) (t[12][01])/i],[b,h,[f,I]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[h,/_/g," "],[f,D],[b,"Nokia"]],[/(pixel (c|tablet))\b/i],[h,[b,Pc],[f,I]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[h,[b,Pc],[f,D]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[h,[b,qs],[f,D]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[h,"Xperia Tablet"],[b,qs],[f,I]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[h,[b,q0],[f,D]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[h,[b,q],[f,I]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[h,/(.+)/g,"Fire Phone $1"],[b,q],[f,D]],[/(playbook);[-\w\),; ]+(rim)/i],[h,b,[f,I]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[h,[b,Et],[f,D]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[h,[b,_e],[f,I]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[h,[b,_e],[f,D]],[/(nexus 9)/i],[h,[b,"HTC"],[f,I]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[b,[h,/_/g," "],[f,D]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[h,[b,"TCL"],[f,I]],[/(itel) ((\w+))/i],[[b,Ys],h,[f,Qs,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[h,[b,"Acer"],[f,I]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[h,[b,"Meizu"],[f,D]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[h,[b,"Ulefone"],[f,D]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[h,[b,"Energizer"],[f,D]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[h,[b,"Cat"],[f,D]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[h,[b,"Smartfren"],[f,D]],[/droid.+; (a(?:015|06[35]|142p?))/i],[h,[b,"Nothing"],[f,D]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[h,[b,"Archos"],[f,I]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[h,[b,"Archos"],[f,D]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[b,h,[f,I]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[b,h,[f,D]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[b,h,[f,I]],[/(surface duo)/i],[h,[b,Yp],[f,I]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[h,[b,"Fairphone"],[f,D]],[/(u304aa)/i],[h,[b,"AT&T"],[f,D]],[/\bsie-(\w*)/i],[h,[b,"Siemens"],[f,D]],[/\b(rct\w+) b/i],[h,[b,"RCA"],[f,I]],[/\b(venue[\d ]{2,7}) b/i],[h,[b,"Dell"],[f,I]],[/\b(q(?:mv|ta)\w+) b/i],[h,[b,"Verizon"],[f,I]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[h,[b,"Barnes & Noble"],[f,I]],[/\b(tm\d{3}\w+) b/i],[h,[b,"NuVision"],[f,I]],[/\b(k88) b/i],[h,[b,"ZTE"],[f,I]],[/\b(nx\d{3}j) b/i],[h,[b,"ZTE"],[f,D]],[/\b(gen\d{3}) b.+49h/i],[h,[b,"Swiss"],[f,D]],[/\b(zur\d{3}) b/i],[h,[b,"Swiss"],[f,I]],[/\b((zeki)?tb.*\b) b/i],[h,[b,"Zeki"],[f,I]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[b,"Dragon Touch"],h,[f,I]],[/\b(ns-?\w{0,9}) b/i],[h,[b,"Insignia"],[f,I]],[/\b((nxa|next)-?\w{0,9}) b/i],[h,[b,"NextBook"],[f,I]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[b,"Voice"],h,[f,D]],[/\b(lvtel\-)?(v1[12]) b/i],[[b,"LvTel"],h,[f,D]],[/\b(ph-1) /i],[h,[b,"Essential"],[f,D]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[h,[b,"Envizen"],[f,I]],[/\b(trio[-\w\. ]+) b/i],[h,[b,"MachSpeed"],[f,I]],[/\btu_(1491) b/i],[h,[b,"Rotor"],[f,I]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[h,[b,Qp],[f,I]],[/(sprint) (\w+)/i],[b,h,[f,D]],[/(kin\.[onetw]{3})/i],[[h,/\./g," "],[b,Yp],[f,D]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[h,[b,Xp],[f,I]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[h,[b,Xp],[f,D]],[/smart-tv.+(samsung)/i],[b,[f,F]],[/hbbtv.+maple;(\d+)/i],[[h,/^/,"SmartTV"],[b,$s],[f,F]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[b,Rc],[f,F]],[/(apple) ?tv/i],[b,[h,ce+" TV"],[f,F]],[/crkey/i],[[h,Ic+"cast"],[b,Pc],[f,F]],[/droid.+aft(\w+)( bui|\))/i],[h,[b,q],[f,F]],[/(shield \w+ tv)/i],[h,[b,Qp],[f,F]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[h,[b,Y0],[f,F]],[/(bravia[\w ]+)( bui|\))/i],[h,[b,qs],[f,F]],[/(mi(tv|box)-?\w+) bui/i],[h,[b,Zp],[f,F]],[/Hbbtv.*(technisat) (.*);/i],[b,h,[f,F]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[b,eh],[h,eh],[f,F]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[h,[f,F]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,F]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[b,h,[f,M]],[/droid.+; (shield)( bui|\))/i],[h,[b,Qp],[f,M]],[/(playstation \w+)/i],[h,[b,qs],[f,M]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[h,[b,Yp],[f,M]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[h,[b,$s],[f,W]],[/((pebble))app/i,/(asu
vendor: 2,023 bytes, line 1
1s|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[b,h,[f,W]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[h,[b,Jp],[f,W]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[h,[b,ce],[f,W]],[/(opwwe\d{3})/i],[h,[b,q0],[f,W]],[/(moto 360)/i],[h,[b,Kp],[f,W]],[/(smartwatch 3)/i],[h,[b,qs],[f,W]],[/(g watch r)/i],[h,[b,Rc],[f,W]],[/droid.+; (wt63?0{2,3})\)/i],[h,[b,Xp],[f,W]],[/droid.+; (glass) \d/i],[h,[b,Pc],[f,W]],[/(pico) (4|neo3(?: link|pro)?)/i],[b,h,[f,W]],[/; (quest( \d| pro)?)/i],[h,[b,K0],[f,W]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[b,[f,re]],[/(aeobc)\b/i],[h,[b,q],[f,re]],[/(homepod).+mac os/i],[h,[b,ce],[f,re]],[/windows iot/i],[[f,re]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[h,[f,D]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[h,[f,I]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,I]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,D]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[h,[b,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[_,[m,PE+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[m,_],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[_,[m,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[m,_],[/ladybird\//i],[[m,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[_,m]],os:[[/microsoft (windows) (vista|xp)/i],[m,_],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[m,[_,Qs,ev]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[_,Qs,ev],[m,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[_,/_/g,"."],[m,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[m,J0],[_,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[_,m],[/(ubuntu) ([\w\.]+) like android/i],[[m,/(.+
1)/,"$1 Touch"],_],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[m,_],[/\(bb(10);/i],[_,[m,Et]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[_,[m,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[_,[m,Dc+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[_,[m,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[_,[m,"watchOS"]],[/crkey\/([\d\.]+)/i],[_,[m,Ic+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[m,Q0],_],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[m,_],[/(sunos) ?([\w\.\d]*)/i],[[m,"Solaris"],_],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[m,_]]},Li=function(Ne,We){if(typeof Ne===s&&(We=Ne,Ne=t),!(this instanceof Li))return new Li(Ne,We).getResult();var De=typeof e!==a&&e.navigator?e.navigator:t,Je=Ne||(De&&De.userAgent?De.userAgent:n),io=De&&De.userAgentData?De.userAgentData:t,Dn=We?FE(tv,We):tv,$e=De&&De.userAgent==Je;return this.getBrowser=function(){var Ie={};return Ie[m]=t,Ie[_]=t,Ks.call(Ie,Je,Dn.browser),Ie[c]=OE(Ie[_]),$e&&De&&De.brave&&typeof De.brave.isBrave==r&&(Ie[m]="Brave"),Ie},this.getCPU=function(){var Ie={};return Ie[S]=t,Ks.call(Ie,Je,Dn.cpu),Ie},this.getDevice=function(){var Ie={};return Ie[b]=t,Ie[h]=t,Ie[f]=t,Ks.call(Ie,Je,Dn.device),$e&&!Ie[f]&&io&&io.mobile&&(Ie[f]=D),$e&&Ie[h]=="Macintosh"&&De&&typeof De.standalone!==a&&De.maxTouchPoints&&De.maxTouchPoints>2&&(Ie[h]="iPad",Ie[f]=I),Ie},this.getEngine=function(){var Ie={};return Ie[m]=t,Ie[_]=t,Ks.call(Ie,Je,Dn.engine),Ie},this.getOS=function(){var Ie={};return Ie[m]=t,Ie[_]=t,Ks.call(Ie,Je,Dn.os),$e&&!Ie[m]&&io&&io.platform&&io.platform!="Unknown"&&(Ie[m]=io.platform.replace(/chrome os/i,Q0).replace(/macos/i,J0)),Ie},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return Je},this.setUA=function(Ie){return Je=typeof Ie===l&&Ie.length>Z?eh(Ie,Z):Ie,this},this.setUA(Je),this};Li.VERSION=i,Li.BROWSER=Fc([m,_,c]),Li.CPU=Fc([S]),Li.DEVICE=Fc([h,b,f,M,D,F,I,W,re]),Li.ENGINE=Li.OS=Fc([m,_]),typeof pl!==a?(typeof od!==a&&od.exports&&(pl=od.exports=Li),pl.UAParser=Li):typeof define===r&&define.amd?define(function(){return Li}):typeof e!==a&&(e.UAParser=Li);var Sa=typeof e!==a&&(e.jQuery||e.Zepto);if(Sa&&!Sa.ua){var Oc=new Li;Sa.ua=Oc.getResult(),Sa.ua.get=function(){return Oc.getUA()},Sa.ua.set=function(Ne){Oc.setUA(Ne);var We=Oc.getResult();for(var De in We)Sa.ua[De]=We[De]}}})(typeof window=="object"?window:pl)});var VC=_n((lde,BC)=>{"use strict";function Fh(e){return typeof e=="function"}var vi=console.error.bind(console);function hl(e,t,i){var n=!!e[t]&&e.propertyIsEnumerable(t);Object.defineProperty(e,t,{configurable:!0,enumerable:n,writable:!0,value:i})}function gl(e){e&&e.logger&&(Fh(e.logger)?vi=e.logger:vi("new logger isn't a function, not replacing"))}function NC(e,t,i){if(!e||!e[t]){vi("no original function "+t+" to wrap");return}if(!i){vi("no wrapper function"),vi(new Error().stack);return}if(!Fh(e[t])||!Fh(i)){vi("original object and wrapper must be functions");return}var n=e[t],o=i(n,t);return hl(o,"__original",n),hl(o,"__unwrap",function(){e[t]===o&&hl(e,t,n)}),hl(o,"__wrapped",!0),hl(e,t,o),o}function DI(e,t,i){if(e)Array.isArray(e)||(e=[e]);else{vi("must provide one or more modules to patch"),vi(new Error().stack);return}if(!(t&&Array.isArray(t))){vi("must provide one or more functions to wrap on modules");return}e.forEach(function(n){t.forEach(function(o){NC(n,o,i)})})}function zC(e,t){if(!e||!e[t]){vi("no function to unwrap."),vi(new Error().stack);return}if(!e[t].__unwrap)vi("no original to unwrap to -- has "+t+" already been unwrapped?");else return e[t].__unwrap()}function PI(e,t){if(e)Array.isArray(e)||(e=[e]);else{vi("must provide one or more modules to patch"),vi(new Error().stack);return}if(!(t&&Array.isArray(t))){vi("must provide one or more functions to unwrap on modules");return}e.forEach(function(i){t.forEach(function(n){zC(i,n)})})}gl.wrap=NC;gl.massWrap=DI;gl.unwrap=zC;gl.massUnwrap=PI;BC.exports=gl});var Kh={};nv(Kh,{__assign:()=>qh,__asyncDelegator:()=>XI,__asyncGenerator:()=>ZI,__asyncValues:()=>eD,__await:()=>vl,__awaiter:()=>$I,__classPrivateFieldGet:()=>oD,__classPrivateFieldSet:()=>rD,__createBinding:()=>YI,__decorate:()=>UI,__exportStar:()=>KI,__extends:()=>HI,__generator:()=>qI,__importDefault:()=>nD,__importStar:()=>
vendor: 9,087 bytes, line 1
1iD,__makeTemplateObject:()=>tD,__metadata:()=>WI,__param:()=>jI,__read:()=>h1,__rest:()=>GI,__spread:()=>QI,__spreadArrays:()=>JI,__values:()=>Yh});function HI(e,t){$h(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}function GI(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]]);return i}function UI(e,t,i,n){var o=arguments.length,r=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,i):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(r=(o<3?a(r):o>3?a(t,i,r):a(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}function jI(e,t){return function(i,n){t(i,n,e)}}function WI(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function $I(e,t,i,n){function o(r){return r instanceof i?r:new i(function(a){a(r)})}return new(i||(i=Promise))(function(r,a){function s(h){try{c(n.next(h))}catch(m){a(m)}}function l(h){try{c(n.throw(h))}catch(m){a(m)}}function c(h){h.done?r(h.value):o(h.value).then(s,l)}c((n=n.apply(e,t||[])).next())})}function qI(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(h){return l([c,h])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,o&&(r=c[0]&2?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,o=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(r=i.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){i.label=c[1];break}if(c[0]===6&&i.label<r[1]){i.label=r[1],r=c;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(c);break}r[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(h){c=[6,h],o=0}finally{n=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function YI(e,t,i,n){n===void 0&&(n=i),e[n]=t[i]}function KI(e,t){for(var i in e)i!=="default"&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function Yh(e){var t=typeof Symbol=="function"&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function h1(e,t){var i=typeof Symbol=="function"&&e[Symbol.iterator];if(!i)return e;var n=i.call(e),o,r=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)r.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(a)throw a.error}}return r}function QI(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(h1(arguments[t]));return e}function JI(){for(var e=0,t=0,i=arguments.length;t<i;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<i;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)n[o]=r[a];return n}function vl(e){return this instanceof vl?(this.v=e,this):new vl(e)}function ZI(e,t,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i.apply(e,t||[]),o,r=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(f){n[f]&&(o[f]=function(b){return new Promise(function(_,S){r.push([f,b,_,S])>1||s(f,b)})})}function s(f,b){try{l(n[f](b))}catch(_){m(r[0][3],_)}}function l(f){f.value instanceof vl?Promise.resolve(f.value.v).then(c,h):m(r[0][2],f)}function c(f){s("next",f)}function h(f){s("throw",f)}function m(f,b){f(b),r.shift(),r.length&&s(r[0][0],r[0][1])}}function XI(e){var t,i;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,r){t[o]=e[o]?function(a){return(i=!i)?{value:vl(e[o](a)),done:o==="return"}:r?r(a):a}:r}}function eD(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],i;return t?t.call(e):(e=typeof Yh=="function"?Yh(e):e[Symbol.iterator](),i={},n("next"),n("throw"),n("return"),i[Symbol.asyncIterator]=function(){return this},i);function n(r){i[r]=e[r]&&function(a){return new Promise(function(s,l){a=e[r](a),o(s,l,a.done,a.value)})}}function o(r,a,s,l){Promise.resolve(l).then(function(c){r({value:c,done:s})},a)}}function tD(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function iD(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)Object.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}function nD(e){return e&&e.__esModule?e:{default:e}}function oD(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function rD(e,t,i){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,i),i}var $h,qh,Qh=Ac(()=>{$h=function(e,t){return $h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var o in n)n.hasOwnProperty(o)&&(i[o]=n[o])},$h(e,t)};qh=function(){return qh=Object.assign||function(t){for(var i,n=1,o=arguments.length;n<o;n++){i=arguments[n];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},qh.apply(this,arguments)}});var Jh=_n(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.MAX_HASHABLE_LENGTH=on.INIT=on.KEY=on.DIGEST_LENGTH=on.BLOCK_SIZE=void 0;on.BLOCK_SIZE=64;on.DIGEST_LENGTH=32;on.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);on.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];on.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1});var g1=_n(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.RawSha256=void 0;var rn=Jh(),aD=(function(){function e(){this.state=Int32Array.from(rn.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(t){if(this.finished)throw new Error("Attempted to update an already finished hash.");var i=0,n=t.byteLength;if(this.bytesHashed+=n,this.bytesHashed*8>rn.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;n>0;)this.buffer[this.bufferLength++]=t[i++],n--,this.bufferLength===rn.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var t=this.bytesHashed*8,i=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(i.setUint8(this.bufferLength++,128),n%rn.BLOCK_SIZE>=rn.BLOCK_SIZE-8){for(var o=this.bufferLength;o<rn.BLOCK_SIZE;o++)i.setUint8(o,0);this.hashBuffer(),this.bufferLength=0}for(var o=this.bufferLength;o<rn.BLOCK_SIZE-8;o++)i.setUint8(o,0);i.setUint32(rn.BLOCK_SIZE-8,Math.floor(t/4294967296),!0),i.setUint32(rn.BLOCK_SIZE-4,t),this.hashBuffer(),this.finished=!0}for(var r=new Uint8Array(rn.DIGEST_LENGTH),o=0;o<8;o++)r[o*4]=this.state[o]>>>24&255,r[o*4+1]=this.state[o]>>>16&255,r[o*4+2]=this.state[o]>>>8&255,r[o*4+3]=this.state[o]>>>0&255;return r},e.prototype.hashBuffer=function(){for(var t=this,i=t.buffer,n=t.state,o=n[0],r=n[1],a=n[2],s=n[3],l=n[4],c=n[5],h=n[6],m=n[7],f=0;f<rn.BLOCK_SIZE;f++){if(f<16)this.temp[f]=(i[f*4]&255)<<24|(i[f*4+1]&255)<<16|(i[f*4+2]&255)<<8|i[f*4+3]&255;else{var b=this.temp[f-2],_=(b>>>17|b<<15)^(b>>>19|b<<13)^b>>>10;b=this.temp[f-15];var S=(b>>>7|b<<25)^(b>>>18|b<<14)^b>>>3;this.temp[f]=(_+this.temp[f-7]|0)+(S+this.temp[f-16]|0)}var M=(((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&c^~l&h)|0)+(m+(rn.KEY[f]+this.temp[f]|0)|0)|0,D=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&r^o&a^r&a)|0;m=h,h=c,c=l,l=s+M|0,s=a,a=r,r=o,o=M+D|0}n[0]+=o,n[1]+=r,n[2]+=a,n[3]+=s,n[4]+=l,n[5]+=c,n[6]+=h,n[7]+=m},e})();Cd.RawSha256=aD});var m1,f1,v1=Ac(()=>{m1=e=>{let t=[];for(let i=0,n=e.length;i<n;i++){let o=e.charCodeAt(i);if(o<128)t.push(o);else if(o<2048)t.push(o>>6|192,o&63|128);
1else if(i+1<e.length&&(o&64512)===55296&&(e.charCodeAt(i+1)&64512)===56320){let r=65536+((o&1023)<<10)+(e.charCodeAt(++i)&1023);t.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else t.push(o>>12|224,o>>6&63|128,o&63|128)}return Uint8Array.from(t)},f1=e=>{let t="";for(let i=0,n=e.length;i<n;i++){let o=e[i];if(o<128)t+=String.fromCharCode(o);else if(192<=o&&o<224){let r=e[++i];t+=String.fromCharCode((o&31)<<6|r&63)}else if(240<=o&&o<365){let a="%"+[o,e[++i],e[++i],e[++i]].map(s=>s.toString(16)).join("%");t+=decodeURIComponent(a)}else t+=String.fromCharCode((o&15)<<12|(e[++i]&63)<<6|e[++i]&63)}return t}});function C1(e){return new TextEncoder().encode(e)}function b1(e){return new TextDecoder("utf-8").decode(e)}var _1=Ac(()=>{});var y1={};nv(y1,{fromUtf8:()=>sD,toUtf8:()=>lD});var sD,lD,w1=Ac(()=>{v1();_1();sD=e=>typeof TextEncoder=="function"?C1(e):m1(e),lD=e=>typeof TextDecoder=="function"?b1(e):f1(e)});var x1=_n(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});bd.convertToBuffer=void 0;var cD=(w1(),nh(y1)),dD=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:cD.fromUtf8;function uD(e){return e instanceof Uint8Array?e:typeof e=="string"?dD(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}bd.convertToBuffer=uD});var S1=_n(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.isEmptyData=void 0;function pD(e){return typeof e=="string"?e.length===0:e.byteLength===0}_d.isEmptyData=pD});var k1=_n(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.numToUint8=void 0;function hD(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}yd.numToUint8=hD});var E1=_n(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});wd.uint32ArrayFrom=void 0;function gD(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),i=0;i<e.length;)t[i]=e[i],i+=1;return t}return Uint32Array.from(e)}wd.uint32ArrayFrom=gD});var M1=_n(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.uint32ArrayFrom=Nn.numToUint8=Nn.isEmptyData=Nn.convertToBuffer=void 0;var mD=x1();Object.defineProperty(Nn,"convertToBuffer",{enumerable:!0,get:function(){return mD.convertToBuffer}});var fD=S1();Object.defineProperty(Nn,"isEmptyData",{enumerable:!0,get:function(){return fD.isEmptyData}});var vD=k1();Object.defineProperty(Nn,"numToUint8",{enumerable:!0,get:function(){return vD.numToUint8}});var CD=E1();Object.defineProperty(Nn,"uint32ArrayFrom",{enumerable:!0,get:function(){return CD.uint32ArrayFrom}})});var I1=_n(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});kd.Sha256=void 0;var T1=(Qh(),nh(Kh)),Sd=Jh(),xd=g1(),Zh=M1(),bD=(function(){function e(t){this.secret=t,this.hash=new xd.RawSha256,this.reset()}return e.prototype.update=function(t){if(!((0,Zh.isEmptyData)(t)||this.error))try{this.hash.update((0,Zh.convertToBuffer)(t))}catch(i){this.error=i}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return T1.__awaiter(this,void 0,void 0,function(){return T1.__generator(this,function(t){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new xd.RawSha256,this.secret){this.outer=new xd.RawSha256;var t=_D(this.secret),i=new Uint8Array(Sd.BLOCK_SIZE);i.set(t);for(var n=0;n<Sd.BLOCK_SIZE;n++)t[n]^=54,i[n]^=92;this.hash.update(t),this.outer.update(i);for(var n=0;n<t.byteLength;n++)t[n]=0}},e})();kd.Sha256=bD;function _D(e){var t=(0,Zh.convertToBuffer)(e);if(t.byteLength>Sd.BLOCK_SIZE){var i=new xd.RawSha256;i.update(t),t=i.digest()}var n=new Uint8Array(Sd.BLOCK_SIZE);return n.set(t),n}});var D1=_n(Xh=>{"use strict";Object.defineProperty(Xh,"__esModule",{value:!0});var yD=(Qh(),nh(Kh));yD.__exportStar(I1(),Xh)});function nle(e){e||(e=xe(Xs));let t=new Lc(i=>{if(e.destroyed){i.next();return}return e.onDestroy(i.next.bind(i))});return i=>i.pipe(ro(t))}function tC(e,t){let i=t?.injector??xe(Bc),n=new no(1),o=Cv(()=>{let r;try{r=e()}catch(a){uh(()=>n.error(a));return}uh(()=>n.next(r))},{injector:i,manualCleanup:!0}
1);return i.get(Xs).onDestroy(()=>{o.destroy(),n.complete()}),n.asObservable()}function iC(e,t){let n=!t?.manualCleanup?t?.injector?.get(Xs)??xe(Xs):null,o=LE(t?.equal),r;t?.requireSync?r=so({kind:0},{equal:o}):r=so({kind:1,value:t?.initialValue},{equal:o});let a,s=e.subscribe({next:l=>r.set({kind:1,value:l}),error:l=>{r.set({kind:2,error:l}),a?.()},complete:()=>{a?.()}});if(t?.requireSync&&r().kind===0)throw new rh(601,!1);return a=n?.onDestroy(s.unsubscribe.bind(s)),It(()=>{let l=r();switch(l.kind){case 1:return l.value;case 2:throw l.error;case 0:throw new rh(601,!1)}},{equal:t?.equal})}function LE(e=Object.is){return(t,i)=>t.kind===1&&i.kind===1&&e(t.value,i.value)}var nC="\u2026",NE=40,Mr=(()=>{class e{transform(i,...n){let o=n[0]||NE,r="",a=!1,s=i||"";n&&n[1]&&typeof n[1]=="object"?(r=n[1].trailingString||nC,a=n[1].countTrailing||!1):(r=n[1]||nC,a=n[2]||!1);let l=this.getStringLength(o,r,a);return l<0?(l*=-1,s.length>l?r+s.substring(s.length-l,s.length):s):s.length>l?s.substring(0,l)+r:s}getStringLength(i,n,o=!1){return o?i<0?i+n.length:i-n.length:i}}return e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=et({name:"truncate",type:e,pure:!0,standalone:!1}),e})();var Yc=(()=>{class e{}return e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ie({type:e}),e.\u0275inj=te({}),e})();var oC=(()=>{class e extends Yv{required=Dt(void 0,{transform:rt});invalid=Dt(void 0,{transform:rt});disabled=Dt(void 0,{transform:rt});name=Dt();_disabled=so(!1);$disabled=It(()=>this.disabled()||this._disabled());onModelChange=()=>{};onModelTouched=()=>{};writeDisabledState(i){this._disabled.set(i)}writeControlValue(i,n){}writeValue(i){this.writeControlValue(i,this.writeModelValue.bind(this))}registerOnChange(i){this.onModelChange=i}registerOnTouched(i){this.onModelTouched=i}setDisabledState(i){this.writeDisabledState(i),this.cd.markForCheck()}static \u0275fac=(()=>{let i;return function(o){return(i||(i=Tt(e)))(o||e)}})();static \u0275dir=di({type:e,inputs:{required:[1,"required"],invalid:[1,"invalid"],disabled:[1,"disabled"],name:[1,"name"]},features:[qt]})}return e})();var rC=(()=>{class e extends oC{pcFluid=xe(Qv,{optional:!0,host:!0,skipSelf:!0});fluid=Dt(void 0,{transform:rt});variant=Dt();size=Dt();inputSize=Dt();pattern=Dt();min=Dt();max=Dt();step=Dt();minlength=Dt();maxlength=Dt();$variant=It(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());get hasFluid(){return this.fluid()??!!this.pcFluid}static \u0275fac=(()=>{let i;return function(o){return(i||(i=Tt(e)))(o||e)}})();static \u0275dir=di({type:e,inputs:{fluid:[1,"fluid"],variant:[1,"variant"],size:[1,"size"],inputSize:[1,"inputSize"],pattern:[1,"pattern"],min:[1,"min"],max:[1,"max"],step:[1,"step"],minlength:[1,"minlength"],maxlength:[1,"maxlength"]},features:[qt]})}return e})();var BE=["data-p-icon","calendar"],aC=(()=>{class e extends An{static \u0275fac=(()=>{let i;return function(o){return(i||(i=Tt(e)))(o||e)}})();static \u0275cmp=U({type:e,selectors:[["","data-p-icon","calendar"]],features:[qt],attrs:BE,decls:1,vars:0,consts:[["d","M10.7838 1.51351H9.83783V0.567568C9.83783 0.417039 9.77804 0.272676 9.6716 0.166237C9.56516 0.0597971 9.42079 0 9.27027 0C9.11974 0 8.97538 0.0597971 8.86894 0.166237C8.7625 0.272676 8.7027 0.417039 8.7027 0.567568V1.51351H5.29729V0.567568C5.29729 0.417039 5.2375 0.272676 5.13106 0.166237C5.02462 0.0597971 4.88025 0 4.72973 0C4.5792 0 4.43484 0.0597971 4.3284 0.166237C4.22196 0.272676 4.16216 0.417039 4.16216 0.567568V1.51351H3.21621C2.66428 1.51351 2.13494 1.73277 1.74467 2.12305C1.35439 2.51333 1.13513 3.04266 1.13513 3.59459V11.9189C1.13513 12.4709 1.35439 13.0002 1.74467 13.3905C2.13494 13.7807 2.66428 14 3.21621 14H10.7838C11.3357 14 11.865 13.7807 12.2553 13.3905C12.6456 13.0002 12.8649 12.4709 12.8649 11.9189V3.59459C12.8649 3.04266 12.6456 2.51333 12.2553 2.12305C11.865 1.73277 11.3357 1.51351 10.7838 1.51351ZM3.21621 2.64865H4.16216V3.59459C4.16216 3.74512 4.22196 3.88949 4.3284 3.99593C4.43484 4.10237 4.5792 4.16216 4.72973 4.16216C4.88025 4.16216 5.02462 4.10237 5.13106 3.99593C5.2375 3.88949 5.29729 3.74512 5.29729 3.59459V2.64865H8.7027V3.59459C8.7027 3.74512 8.7625 3.88949 8.86894 3.99593C8.97538 4.10237 9.11974 4.16216 9.27027 4.16216C9.42079 4.16216 9.56516 4.10237 9.6716 3.99593C9.77804 3.88949 9.83783 3.74512 9.83783 3.59459V2.64865H10.7838C11.0347 2.64865 11.2753 2.74831 11.4527 2.92571C11.6301 3.10311 11.7297 3.34371 11.7297 3.59459V5.67568H2.27027V3.59459C2.27027 3.34371 2.36993 3.10311 2.54733 2.92571C2.72473 2.74831 2.96533 2.64865 3.21621 2.64865ZM10.7838 12.8649H3.21621C2.96533 12.8649 2.72473 12.7652 2.54733 12.5878C2.36993 12.4104 2.27027 12.1698 2.27027 11.9189V6.81081H11.7297V11.9189C11.7297 12.1698 11.6301 12.4104 11.4527 12.5878C11.2753 12.7652 11.
10347 12.8649 10.7838 12.8649Z","fill","currentColor"]],template:function(n,o){n&1&&(Xe(),Fn(0,"path",0))},encapsulation:2})}return e})();var VE=["data-p-icon","chevron-down"],sC=(()=>{class e extends An{static \u0275fac=(()=>{let i;return function(o){return(i||(i=Tt(e)))(o||e)}})();static \u0275cmp=U({type:e,selectors:[["","data-p-icon","chevron-down"]],features:[qt],attrs:VE,decls:1,vars:0,consts:[["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function(n,o){n&1&&(Xe(),Fn(0,"path",0))},encapsulation:2})}return e})();var HE=["data-p-icon","chevron-left"],lC=(()=>{class e extends An{static \u0275fac=(()=>{let i;return function(o){return(i||(i=Tt(e)))(o||e)}})();static \u0275cmp=U({type:e,selectors:[["","data-p-icon","chevron-left"]],features:[qt],attrs:HE,decls:1,vars:0,consts:[["d","M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z","fill","currentColor"]],template:function(n,o){n&1&&(Xe(),Fn(0,"path",0))},encapsulation:2})}return e})();var GE=["data-p-icon","chevron-right"],cC=(()=>{class e extends An{static \u0275fac=(()=>{let i;return function(o){return(i||(i=Tt(e)))(o||e)}})();static \u0275cmp=U({type:e,selectors:[["","data-p-icon","chevron-right"]],features:[qt],attrs:GE,decls:1,vars:0,consts:[["d","M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z","fill","currentColor"]],template:function(n,o){n&1&&(Xe(),Fn(0,"path",0))},encapsulation:2})}return e})();var UE=["data-p-icon","chevron-up"],dC=(()=>{class e extends An{static \u0275fac=(()=>{let i;return function(o){return(i||(i=Tt(e)))(o||e)}})();static \u0275cmp=U({type:e,selectors:[["","data-p-icon","chevron-up"]],features:[qt],attrs:UE,decls:1,vars:0,consts:[["d","M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z","fill","currentColor"]],template:function(n,o){n&1&&(Xe(),Fn(0,"path",0))},encapsulation:2})}return e})();var uC=class e{static isArray(t,i=!0){return Array.isArray(t)&&(i||t.length!==0)}static isObject(t,i=!0){return typeof t=="object"&&!Array.isArray(t)&&t!=null&&(i||Object.keys(t).length!==0)}static equals(t,i,n){return n?this.resolveFieldData(t,n)===this.resolveFieldData(i,n):this.equalsByValue(t,i)}static equalsByValue(t,i){if(t===i)return!0;
vendor: 4,253 bytes, line 1
1if(t&&i&&typeof t=="object"&&typeof i=="object"){var n=Array.isArray(t),o=Array.isArray(i),r,a,s;if(n&&o){if(a=t.length,a!=i.length)return!1;for(r=a;r--!==0;)if(!this.equalsByValue(t[r],i[r]))return!1;return!0}if(n!=o)return!1;var l=this.isDate(t),c=this.isDate(i);if(l!=c)return!1;if(l&&c)return t.getTime()==i.getTime();var h=t instanceof RegExp,m=i instanceof RegExp;if(h!=m)return!1;if(h&&m)return t.toString()==i.toString();var f=Object.keys(t);if(a=f.length,a!==Object.keys(i).length)return!1;for(r=a;r--!==0;)if(!Object.prototype.hasOwnProperty.call(i,f[r]))return!1;for(r=a;r--!==0;)if(s=f[r],!this.equalsByValue(t[s],i[s]))return!1;return!0}return t!==t&&i!==i}static resolveFieldData(t,i){if(t&&i){if(this.isFunction(i))return i(t);if(i.indexOf(".")==-1)return t[i];{let n=i.split("."),o=t;for(let r=0,a=n.length;r<a;++r){if(o==null)return null;o=o[n[r]]}return o}}else return null}static isFunction(t){return!!(t&&t.constructor&&t.call&&t.apply)}static reorderArray(t,i,n){let o;t&&i!==n&&(n>=t.length&&(n%=t.length,i%=t.length),t.splice(n,0,t.splice(i,1)[0]))}static insertIntoOrderedArray(t,i,n,o){if(n.length>0){let r=!1;for(let a=0;a<n.length;a++)if(this.findIndexInList(n[a],o)>i){n.splice(a,0,t),r=!0;break}r||n.push(t)}else n.push(t)}static findIndexInList(t,i){let n=-1;if(i){for(let o=0;o<i.length;o++)if(i[o]==t){n=o;break}}return n}static contains(t,i){if(t!=null&&i&&i.length){for(let n of i)if(this.equals(t,n))return!0}return!1}static removeAccents(t){return t&&(t=t.normalize("NFKD").replace(new RegExp("\\p{Diacritic}","gu"),"")),t}static isDate(t){return Object.prototype.toString.call(t)==="[object Date]"}static isEmpty(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!this.isDate(t)&&typeof t=="object"&&Object.keys(t).length===0}static isNotEmpty(t){return!this.isEmpty(t)}static compare(t,i,n,o=1){let r=-1,a=this.isEmpty(t),s=this.isEmpty(i);return a&&s?r=0:a?r=o:s?r=-o:typeof t=="string"&&typeof i=="string"?r=t.localeCompare(i,n,{numeric:!0}):r=t<i?-1:t>i?1:0,r}static sort(t,i,n=1,o,r=1){let a=e.compare(t,i,o,n),s=n;return(e.isEmpty(t)||e.isEmpty(i))&&(s=r===1?n:r),s*a}static merge(t,i){if(!(t==null&&i==null)){{if((t==null||typeof t=="object")&&(i==null||typeof i=="object"))return B(B({},t||{}),i||{});if((t==null||typeof t=="string")&&(i==null||typeof i=="string"))return[t||"",i||""].join(" ")}return i||t}}static isPrintableCharacter(t=""){return this.isNotEmpty(t)&&t.length===1&&t.match(/\S| /)}static getItemValue(t,...i){return this.isFunction(t)?t(...i):t}static findLastIndex(t,i){let n=-1;if(this.isNotEmpty(t))try{n=t.findLastIndex(i)}catch{n=t.lastIndexOf([...t].reverse().find(i))}return n}static findLast(t,i){let n;if(this.isNotEmpty(t))try{n=t.findLast(i)}catch{n=[...t].reverse().find(i)}return n}static deepEquals(t,i){if(t===i)return!0;if(t&&i&&typeof t=="object"&&typeof i=="object"){var n=Array.isArray(t),o=Array.isArray(i),r,a,s;if(n&&o){if(a=t.length,a!=i.length)return!1;for(r=a;r--!==0;)if(!this.deepEquals(t[r],i[r]))return!1;return!0}if(n!=o)return!1;var l=t instanceof Date,c=i instanceof Date;if(l!=c)return!1;if(l&&c)return t.getTime()==i.getTime();var h=t instanceof RegExp,m=i instanceof RegExp;if(h!=m)return!1;if(h&&m)return t.toString()==i.toString();var f=Object.keys(t);if(a=f.length,a!==Object.keys(i).length)return!1;for(r=a;r--!==0;)if(!Object.prototype.hasOwnProperty.call(i,f[r]))return!1;for(r=a;r--!==0;)if(s=f[r],!this.deepEquals(t[s],i[s]))return!1;return!0}return t!==t&&i!==i}static minifyCSS(t){return t&&t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}static toFlatCase(t){return this.isString(t)?t.replace(/(-|_)/g,"").toLowerCase():t}static isString(t,i=!0){return typeof t=="string"&&(i||t!=="")}};function jE(){let e=[],t=(r,a)=>{let s=e.length>0?e[e.length-1]:{key:r,value:a},l=s.value+(s.key===r?0:a)+2;return e.push({key:r,value:l}),l},i=r=>{e=e.filter(a=>a.value!==r)},n=()=>e.length>0?e[e.length-1].value:0,o=r=>r&&parseInt(r.style.zIndex,10)||0;return{get:o,set:(r,a,s)=>{a&&(a.style.zIndex=String(t(r,s)))},clear:r=>{r&&(i(o(r)),r.style.zIndex="")},getCurrent:()=>n(),generateZIndex:t,revertZIndex:i}}var ul=jE();var pC
vendor: 15,615 bytes, lines 1-461
1=` 2 .p-datepicker { 3 display: inline-flex; 4 max-width: 100%; 5 } 6 7 .p-datepicker:has(.p-datepicker-dropdown) .p-datepicker-input { 8 border-start-end-radius: 0; 9 border-end-end-radius: 0; 10 } 11 12 .p-datepicker-dropdown { 13 cursor: pointer; 14 display: inline-flex; 15 user-select: none; 16 align-items: center; 17 justify-content: center; 18 overflow: hidden; 19 position: relative; 20 width: dt('datepicker.dropdown.width'); 21 border-start-end-radius: dt('datepicker.dropdown.border.radius'); 22 border-end-end-radius: dt('datepicker.dropdown.border.radius'); 23 background: dt('datepicker.dropdown.background'); 24 border: 1px solid dt('datepicker.dropdown.border.color'); 25 border-inline-start: 0 none; 26 color: dt('datepicker.dropdown.color'); 27 transition: 28 background dt('datepicker.transition.duration'), 29 color dt('datepicker.transition.duration'), 30 border-color dt('datepicker.transition.duration'), 31 outline-color dt('datepicker.transition.duration'); 32 outline-color: transparent; 33 } 34 35 .p-datepicker-dropdown:not(:disabled):hover { 36 background: dt('datepicker.dropdown.hover.background'); 37 border-color: dt('datepicker.dropdown.hover.border.color'); 38 color: dt('datepicker.dropdown.hover.color'); 39 } 40 41 .p-datepicker-dropdown:not(:disabled):active { 42 background: dt('datepicker.dropdown.active.background'); 43 border-color: dt('datepicker.dropdown.active.border.color'); 44 color: dt('datepicker.dropdown.active.color'); 45 } 46 47 .p-datepicker-dropdown:focus-visible { 48 box-shadow: dt('datepicker.dropdown.focus.ring.shadow'); 49 outline: dt('datepicker.dropdown.focus.ring.width') dt('datepicker.dropdown.focus.ring.style') dt('datepicker.dropdown.focus.ring.color'); 50 outline-offset: dt('datepicker.dropdown.focus.ring.offset'); 51 } 52 53 .p-datepicker:has(.p-datepicker-input-icon-container) { 54 position: relative; 55 } 56 57 .p-datepicker:has(.p-datepicker-input-icon-container) .p-datepicker-input { 58 padding-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size')); 59 } 60 61 .p-datepicker-input-icon-container { 62 cursor: pointer; 63 position: absolute; 64 top: 50%; 65 inset-inline-end: dt('form.field.padding.x'); 66 margin-block-start: calc(-1 * (dt('icon.size') / 2)); 67 color: dt('datepicker.input.icon.color'); 68 line-height: 1; 69 z-index: 1; 70 } 71 72 .p-datepicker:has(.p-datepicker-input:disabled) .p-datepicker-input-icon-container { 73 cursor: default; 74 } 75 76 .p-datepicker-fluid { 77 display: flex; 78 } 79 80 .p-datepicker-fluid:has(.p-datepicker-dropdown) .p-datepicker-input { 81 flex: 1 1 auto; 82 width: 1%; 83 } 84 85 .p-datepicker .p-datepicker-panel { 86 min-width: 100%; 87 } 88 89 .p-datepicker-panel { 90 width: auto; 91 padding: dt('datepicker.panel.padding'); 92 background: dt('datepicker.panel.background'); 93 color: dt('datepicker.panel.color'); 94 border: 1px solid dt('datepicker.panel.border.color'); 95 border-radius: dt('datepicker.panel.border.radius'); 96 box-shadow: dt('datepicker.panel.shadow'); 97 } 98 99 .p-datepicker-panel-inline { 100 display: inline-block; 101 overflow-x: auto; 102 box-shadow: none; 103 } 104 105 .p-datepicker-header { 106 display: flex; 107 align-items: center; 108 justify-content: space-between; 109 padding: dt('datepicker.header.padding'); 110 background: dt('datepicker.header.background'); 111 color: dt('datepicker.header.color'); 112 border-block-end: 1px solid dt('datepicker.header.border.color'); 113 } 114 115 .p-datepicker-next-button:dir(rtl) { 116 order: -1; 117 } 118 119 .p-datepicker-prev-button:dir(rtl) { 120 order: 1; 121 } 122 123 .p-datepicker-title { 124 display: flex; 125 align-items: center; 126 justify-content: space-between; 127 gap: dt('datepicker.title.gap'); 128 font-weight: dt('datepicker.title.font.weight'); 129 } 130 131 .p-datepicker-select-year, 132 .p-datepicker-select-month { 133 border: none; 134 background: transparent; 135 margin: 0; 136 cursor: pointer; 137 font-weight: inherit; 138 transition: 139 background dt('datepicker.transition.duration'), 140 color dt('datepicker.transition.duration'), 141 border-color dt('datepicker.transition.duration'), 142 outline-color dt('datepicker.transition.duration'), 143 box-shadow dt('datepicker.transition.duration'); 144 } 145 146 .p-datepicker-select-month { 147 padding: dt('datepicker.select.month.padding'); 148 color: dt('datepicker.select.month.color'); 149 border-radius: dt('datepicker.select.month.border.radius'); 150 } 151 152 .p-datepicker-select-year { 153 padding: dt('datepicker.select.year.padding'); 154 color: dt('datepicker.select.year.color'); 155 border-radius: dt('datepicker.select.year.border.radius'); 156 } 157 158 .p-datepicker-select-month:enabled:hover { 159 background: dt('datepicker.select.month.hover.background'); 160 color: dt('datepicker.select.month.hover.color'); 161 } 162 163 .p-datepicker-select-year:enabled:hover { 164 background: dt('datepicker.select.year.hover.background'); 165 color: dt('datepicker.select.year.hover.color'); 166 } 167 168 .p-datepicker-select-month:focus-visible, 169 .p-datepicker-select-year:focus-visible { 170 box-shadow: dt('datepicker.date.focus.ring.shadow'); 171 outline: dt('datepicker.date.focus.ring.width') dt('datepicker.date.focus.ring.style') dt('datepicker.date.focus.ring.color'); 172 outline-offset: dt('datepicker.date.focus.ring.offset'); 173 } 174 175 .p-datepicker-calendar-container { 176 display: flex; 177 } 178 179 .p-datepicker-calendar-container .p-datepicker-calendar { 180 flex: 1 1 auto; 181 border-inline-start: 1px solid dt('datepicker.group.border.color'); 182 padding-inline-end: dt('datepicker.group.gap'); 183 padding-inline-start: dt('datepicker.group.gap'); 184 } 185 186 .p-datepicker-calendar-container .p-datepicker-calendar:first-child { 187 padding-inline-start: 0; 188 border-inline-start: 0 none; 189 } 190 191 .p-datepicker-calendar-container .p-datepicker-calendar:last-child { 192 padding-inline-end: 0; 193 } 194 195 .p-datepicker-day-view { 196 width: 100%; 197 border-collapse: collapse; 198 font-size: 1rem; 199 margin: dt('datepicker.day.view.margin'); 200 } 201 202 .p-datepicker-weekday-cell { 203 padding: dt('datepicker.week.day.padding'); 204 } 205 206 .p-datepicker-weekday { 207 font-weight: dt('datepicker.week.day.font.weight'); 208 color: dt('datepicker.week.day.color'); 209 } 210 211 .p-datepicker-day-cell { 212 padding: dt('datepicker.date.padding'); 213 } 214 215 .p-datepicker-day { 216 display: flex; 217 justify-content: center; 218 align-items: center; 219 cursor: pointer; 220 margin: 0 auto; 221 overflow: hidden; 222 position: relative; 223 width: dt('datepicker.date.width'); 224 height: dt('datepicker.date.height'); 225 border-radius: dt('datepicker.date.border.radius'); 226 transition: 227 background dt('datepicker.transition.duration'), 228 color dt('datepicker.transition.duration'), 229 border-color dt('datepicker.transition.duration'), 230 box-shadow dt('datepicker.transition.duration'), 231 outline-color dt('datepicker.transition.duration'); 232 border: 1px solid transparent; 233 outline-color: transparent; 234 color: dt('datepicker.date.color'); 235 } 236 237 .p-datepicker-day:not(.p-datepicker-day-selected):not(.p-disabled):hover { 238 background: dt('datepicker.date.hover.background'); 239 color: dt('datepicker.date.hover.color'); 240 } 241 242 .p-datepicker-day:focus-visible { 243 box-shadow: dt('datepicker.date.focus.ring.shadow'); 244 outline: dt('datepicker.date.focus.ring.width') dt('datepicker.date.focus.ring.style') dt('datepicker.date.focus.ring.color'); 245 outline-offset: dt('datepicker.date.focus.ring.offset'); 246 } 247 248 .p-datepicker-day-selected { 249 background: dt('datepicker.date.selected.background'); 250 color: dt('datepicker.date.selected.color'); 251 } 252 253 .p-datepicker-day-selected-range { 254 background: dt('datepicker.date.range.selected.background'); 255 color: dt('datepicker.date.range.selected.color'); 256 } 257 258 .p-datepicker-today > .p-datepicker-day { 259 background: dt('datepicker.today.background'); 260 color: dt('datepicker.today.color'); 261 } 262 263 .p-datepicker-today > .p-datepicker-day-selected { 264 background: dt('datepicker.date.selected.background'); 265 color: dt('datepicker.date.selected.color'); 266 } 267 268 .p-datepicker-today > .p-datepicker-day-selected-range { 269 background: dt('datepicker.date.range.selected.background'); 270 color: dt('datepicker.date.range.selected.color'); 271 } 272 273 .p-datepicker-weeknumber { 274 text-align: center; 275 } 276 277 .p-datepicker-month-view { 278 margin: dt('datepicker.month.view.margin'); 279 } 280 281 .p-datepicker-month { 282 width: 33.3%; 283 display: inline-flex; 284 align-items: center; 285 justify-content: center; 286 cursor: pointer; 287 overflow: hidden; 288 position: relative; 289 padding: dt('datepicker.month.padding'); 290 transition: 291 background dt('datepicker.transition.duration'), 292 color dt('datepicker.transition.duration'), 293 border-color dt('datepicker.transition.duration'), 294 box-shadow dt('datepicker.transition.duration'), 295 outline-color dt('datepicker.transition.duration'); 296 border-radius: dt('datepicker.month.border.radius'); 297 outline-color: transparent; 298 color: dt('datepicker.date.color'); 299 } 300 301 .p-datepicker-month:not(.p-disabled):not(.p-datepicker-month-selected):hover { 302 color: dt('datepicker.date.hover.color'); 303 background: dt('datepicker.date.hover.background'); 304 } 305 306 .p-datepicker-month-selected { 307 color: dt('datepicker.date.selected.color'); 308 background: dt('datepicker.date.selected.background'); 309 } 310 311 .p-datepicker-month:not(.p-disabled):focus-visible { 312 box-shadow: dt('datepicker.date.focus.ring.shadow'); 313 outline: dt('datepicker.date.focus.ring.width') dt('datepicker.date.focus.ring.style') dt('datepicker.date.focus.ring.color'); 314 outline-offset: dt('datepicker.date.focus.ring.offset'); 315 } 316 317 .p-datepicker-year-view { 318 margin: dt('datepicker.year.view.margin'); 319 } 320 321 .p-datepicker-year { 322 width: 50%; 323 display: inline-flex; 324 align-items: center; 325 justify-content: center; 326 cursor: pointer; 327 overflow: hidden; 328 position: relative; 329 padding: dt('datepicker.year.padding'); 330 transition: 331 background dt('datepicker.transition.duration'), 332 color dt('datepicker.transition.duration'), 333 border-color dt('datepicker.transition.duration'), 334 box-shadow dt('datepicker.transition.duration'), 335 outline-color dt('datepicker.transition.duration'); 336 border-radius: dt('datepicker.year.border.radius'); 337 outline-color: transparent; 338 color: dt('datepicker.date.color'); 339 } 340 341 .p-datepicker-year:not(.p-disabled):not(.p-datepicker-year-selected):hover { 342 color: dt('datepicker.date.hover.color'); 343 background: dt('datepicker.date.hover.background'); 344 } 345 346 .p-datepicker-year-selected { 347 color: dt('datepicker.date.selected.color'); 348 background: dt('datepicker.date.selected.background'); 349 } 350 351 .p-datepicker-year:not(.p-disabled):focus-visible { 352 box-shadow: dt('datepicker.date.focus.ring.shadow'); 353 outline: dt('datepicker.date.focus.ring.width') dt('datepicker.date.focus.ring.style') dt('datepicker.date.focus.ring.color'); 354 outline-offset: dt('datepicker.date.focus.ring.offset'); 355 } 356 357 .p-datepicker-buttonbar { 358 display: flex; 359 justify-content: space-between; 360 align-items: center; 361 padding: dt('datepicker.buttonbar.padding'); 362 border-block-start: 1px solid dt('datepicker.buttonbar.border.color'); 363 } 364 365 .p-datepicker-buttonbar .p-button { 366 width: auto; 367 } 368 369 .p-datepicker-time-picker { 370 display: flex; 371 justify-content: center; 372 align-items: center; 373 border-block-start: 1px solid dt('datepicker.time.picker.border.color'); 374 padding: 0; 375 gap: dt('datepicker.time.picker.gap'); 376 } 377 378 .p-datepicker-calendar-container + .p-datepicker-time-picker { 379 padding: dt('datepicker.time.picker.padding'); 380 } 381 382 .p-datepicker-time-picker > div { 383 display: flex; 384 align-items: center; 385 flex-direction: column; 386 gap: dt('datepicker.time.picker.button.gap'); 387 } 388 389 .p-datepicker-time-picker span { 390 font-size: 1rem; 391 } 392 393 .p-datepicker-timeonly .p-datepicker-time-picker { 394 border-block-start: 0 none; 395 } 396 397 .p-datepicker-time-picker:dir(rtl) { 398 flex-direction: row-reverse; 399 } 400 401 .p-datepicker:has(.p-inputtext-sm) .p-datepicker-dropdown { 402 width: dt('datepicker.dropdown.sm.width'); 403 } 404 405 .p-datepicker:has(.p-inputtext-sm) .p-datepicker-dropdown .p-icon, 406 .p-datepicker:has(.p-inputtext-sm) .p-datepicker-input-icon { 407 font-size: dt('form.field.sm.font.size'); 408 width: dt('form.field.sm.font.size'); 409 height: dt('form.field.sm.font.size'); 410 } 411 412 .p-datepicker:has(.p-inputtext-lg) .p-datepicker-dropdown { 413 width: dt('datepicker.dropdown.lg.width'); 414 } 415 416 .p-datepicker:has(.p-inputtext-lg) .p-datepicker-dropdown .p-icon, 417 .p-datepicker:has(.p-inputtext-lg) .p-datepicker-input-icon { 418 font-size: dt('form.field.lg.font.size'); 419 width: dt('form.field.lg.font.size'); 420 height: dt('form.field.lg.font.size'); 421 } 422 423 .p-datepicker-clear-icon { 424 position: absolute; 425 top: 50%; 426 margin-top: -0.5rem; 427 cursor: pointer; 428 color: dt('form.field.icon.color'); 429 inset-inline-end: dt('form.field.padding.x'); 430 } 431 432 .p-datepicker:has(.p-datepicker-dropdown) .p-datepicker-clear-icon { 433 inset-inline-end: calc(dt('datepicker.dropdown.width') + dt('form.field.padding.x')); 434 } 435 436 .p-datepicker:has(.p-datepicker-input-icon-container) .p-datepicker-clear-icon { 437 inset-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size')); 438 } 439 440 .p-datepicker:has(.p-datepicker-clear-icon) .p-datepicker-input { 441 padding-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size')); 442 } 443 444 .p-datepicker:has(.p-datepicker-input-icon-container):has(.p-datepicker-clear-icon) .p-datepicker-input { 445 padding-inline-end: calc((dt('form.field.padding.x') * 3) + calc(dt('icon.size') * 2)); 446 } 447 448 .p-inputgroup .p-datepicker-dropdown { 449 border-radius: 0; 450 } 451 452 .p-inputgroup > .p-datepicker:last-child:has(.p-datepicker-dropdown) > .p-datepicker-input { 453 border-start-end-radius: 0; 454 border-end-end-radius: 0; 455 } 456 457 .p-inputgroup > .p-datepicker:last-child .p-datepicker-dropdown { 458 border-start-end-radius: dt('datepicker.dropdown.border.radius'); 459 border-end-end-radius: dt('datepicker.dropdown.border.radius'); 460 } 461`;var
vendor: 26,290 bytes, lines 461-465
461WE=["date"],$E=["header"],qE=["footer"],YE=["disabledDate"],KE=["decade"],QE=["previousicon"],JE=["nexticon"],ZE=["triggericon"],XE=["clearicon"],eM=["decrementicon"],tM=["incrementicon"],iM=["inputicon"],nM=["buttonbar"],oM=["inputfield"],rM=["contentWrapper"],aM=[[["p-header"]],[["p-footer"]]],sM=["p-header","p-footer"],lM=e=>({clickCallBack:e}),cM=(e,t)=>({showTransitionParams:e,hideTransitionParams:t}),dM=e=>({value:"visible",params:e}),hC=e=>({visibility:e}),_h=e=>({$implicit:e}),uM=e=>({date:e}),pM=(e,t)=>({month:e,index:t}),hM=e=>({year:e}),gM=(e,t)=>({todayCallback:e,clearCallback:t});function mM(e,t){if(e&1){let i=P();Xe(),p(0,"svg",10),T("click",function(){k(i);let o=g(3);return E(o.clear())}),u()}if(e&2){let i=g(3);pe(i.cx("clearIcon")),v("pBind",i.ptm("inputIcon"))}}function fM(e,t){}function vM(e,t){e&1&&V(0,fM,0,0,"ng-template")}function CM(e,t){if(e&1){let i=P();p(0,"span",11),T("click",function(){k(i);let o=g(3);return E(o.clear())}),V(1,vM,1,0,null,12),u()}if(e&2){let i=g(3);pe(i.cx("clearIcon")),v("pBind",i.ptm("inputIcon")),d(),v("ngTemplateOutlet",i.clearIconTemplate||i._clearIconTemplate)}}function bM(e,t){if(e&1&&(mt(0),V(1,mM,1,3,"svg",8)(2,CM,2,4,"span",9),ft()),e&2){let i=g(2);d(),v("ngIf",!i.clearIconTemplate&&!i._clearIconTemplate),d(),v("ngIf",i.clearIconTemplate||i._clearIconTemplate)}}function _M(e,t){if(e&1&&x(0,"span",15),e&2){let i=g(3);v("ngClass",i.icon)("pBind",i.ptm("dropdownIcon"))}}function yM(e,t){if(e&1&&(Xe(),x(0,"svg",17)),e&2){let i=g(4);v("pBind",i.ptm("dropdownIcon"))}}function wM(e,t){}function xM(e,t){e&1&&V(0,wM,0,0,"ng-template")}function SM(e,t){if(e&1&&(mt(0),V(1,yM,1,1,"svg",16)(2,xM,1,0,null,12),ft()),e&2){let i=g(3);d(),v("ngIf",!i.triggerIconTemplate&&!i._triggerIconTemplate),d(),v("ngTemplateOutlet",i.triggerIconTemplate||i._triggerIconTemplate)}}function kM(e,t){if(e&1){let i=P();p(0,"button",13),T("click",function(o){k(i),g();let r=de(1),a=g();return E(a.onButtonClick(o,r))}),V(1,_M,1,2,"span",14)(2,SM,3,2,"ng-container",6),u()}if(e&2){let i=g(2);pe(i.cx("dropdown")),v("disabled",i.$disabled())("pBind",i.ptm("dropdown")),Ve("aria-label",i.iconButtonAriaLabel)("aria-expanded",i.overlayVisible??!1)("aria-controls",i.overlayVisible?i.panelId:null),d(),v("ngIf",i.icon),d(),v("ngIf",!i.icon)}}function EM(e,t){if(e&1){let i=P();Xe(),p(0,"svg",21),T("click",function(o){k(i);let r=g(3);return E(r.onButtonClick(o))}),u()}if(e&2){let i=g(3);pe(i.cx("inputIcon")),v("pBind",i.ptm("inputIcon"))}}function MM(e,t){e&1&&Ti(0)}function TM(e,t){if(e&1&&(mt(0),p(1,"span",18),V(2,EM,1,3,"svg",19)(3,MM,1,0,"ng-container",20),u(),ft()),e&2){let i=g(2);d(),pe(i.cx("inputIconContainer")),v("pBind",i.ptm("inputIconContainer")),d(),v("ngIf",!i.inputIconTemplate&&!i._inputIconTemplate),d(),v("ngTemplateOutlet",i.inputIconTemplate||i._inputIconTemplate)("ngTemplateOutletContext",z(6,lM,i.onButtonClick.bind(i)))}}function IM(e,t){if(e&1){let i=P();p(0,"input",5,0),T("focus",function(o){k(i);let r=g();return E(r.onInputFocus(o))})("keydown",function(o){k(i);let r=g();return E(r.onInputKeydown(o))})("click",function(){k(i);let o=g();return E(o.onInputClick())})("blur",function(o){k(i);let r=g();return E(r.onInputBlur(o))})("input",function(o){k(i);let r=g();return E(r.onUserInput(o))}),u(),V(2,bM,3,2,"ng-container",6)(3,kM,3,9,"button",7)(4,TM,4,8,"ng-container",6)}if(e&2){let i=g();pe(i.cn(i.cx("pcInputText"),i.inputStyleClass)),v("pSize",i.size())("value",i.inputFieldValue)("ngStyle",i.inputStyle)("pAutoFocus",i.autofocus)("variant",i.$variant())("fluid",i.hasFluid)("invalid",i.invalid())("pt",i.ptm("pcInputText")),Ve("size",i.inputSize())("id",i.inputId)("name",i.name())("aria-required",i.required())("aria-expanded",i.overlayVisible??!1)("aria-controls",i.overlayVisible?i.panelId:null)("aria-labelledby",i.ariaLabelledBy)("aria-label",i.ariaLabel)("required",i.required()?"":void 0)("readonly",i.readonlyInput?"":void 0)("disabled",i.$disabled()?"":void 0)("placeholder",i.placeholder)("tabindex",i.tabindex)("inputmode",i.touchUI?"off":null),d(2),v("ngIf",i.showClear&&!i.$disabled()&&(i.inputfieldViewChild==null||i.inputfieldViewChild.nativeElement==null?null:i.inputfieldViewChild.nativeElement.value)),d(),v("ngIf",i.showIcon&&i.iconDisplay==="button"),d(),v("ngIf",i.iconDisplay==="input"&&i.showIcon)}}function DM(e,t){e&1&&Ti(0)}function PM(e,t){e&1&&(Xe(),x(0,"svg",30))}function RM(e,t){}function FM(e,t){e&1&&V(0,RM,0,0,"ng-template")}function OM(e,t){if(e&1&&(p(0,"span"),V(1,FM,1,0,null,12),u()),e&2){let i=g(5);d(),v("ngTemplateOutlet",i.previousIconTemplate||i._previousIconTemplate)}}function AM(e,t){if(e&1&&V(0,PM,1,0,"svg",29)(1,OM,2,1,"span",6),e&2){let i=g(4);v("ngIf",!i.previousIconTemplate&&!i._previousIconTemplate),d(),v("ngIf",i.previousIconTemplate||i._previousIconTemplate)}}function LM(e,t){if(e&1){let i=P();p(0,"button",31),T("click",function(o){k(i);let r=g(4);return E(r.switchToMonthView(o))})("keydown",function(o){k(i);let r=g(4);return E(r.onContainerButtonKeydown(o))}),C(1),u()}if(e&2){let i=g().$implicit,n=g(3);pe(n.cx("selectMonth")),v("pBind",n.ptm("selectMonth")),Ve("disabled",n.switchViewButtonDisabled()?"":void 0)("aria-label",n.getTranslation("chooseMonth"))("data-pc-group-section","navigator"),d(),A(" ",n.getMonthName(i.month)," ")}}function NM(e,t){if(e&1){let i=P();p(0,"button",31),T("click",function(o){k(i);let r=g(4);return E(r.switchToYearView(o))})("keydown",function(o){k(i);let r=g(4);return E(r.onContainerButtonKeydown(o))}),C(1),u()}if(e&2){let i=g().$implicit,n=g(3);pe(n.cx("selectYear")),v("pBind",n.ptm("selectYear")),Ve("disabled",n.switchViewButtonDisabled()?"":void 0)("aria-label",n.getTranslation("chooseYear"))("data-pc-group-section","navigator"),d(),A(" ",n.getYear(i)," ")}}function zM(e,t){if(e&1&&(mt(0),C(1),ft()),e&2){let i=g(5);d(),Yt("",i.yearPickerValues()[0]," - ",i.yearPickerValues()[i.yearPickerValues().length-1])}}function BM(e,t){e&1&&Ti(0)}function VM(e,t){if(e&1&&(p(0,"span",18),V(1,zM,2,2,"ng-container",6)(2,BM,1,0,"ng-container",20),u()),e&2){let i=g(4);pe(i.cx("decade")),v("pBind",i.ptm("decade")),d(),v("ngIf",!i.decadeTemplate&&!i._decadeTemplate),d(),v("ngTemplateOutlet",i.decadeTemplate||i._decadeTemplate)("ngTemplateOutletContext",z(6,_h,i.yearPickerValues))}}function HM(e,t){e&1&&(Xe(),x(0,"svg",33))}function GM(e,t){}function UM(e,t){e&1&&V(0,GM,0,0,"ng-template")}function jM(e,t){if(e&1&&(mt(0),V(1,UM,1,0,null,12),ft()),e&2){let i=g(5);d(),v("ngTemplateOutlet",i.nextIconTemplate||i._nextIconTemplate)}}function WM(e,t){if(e&1&&V(0,HM,1,0,"svg",32)(1,jM,2,1,"ng-container",6),e&2){let i=g(4);v("ngIf",!i.nextIconTemplate&&!i._nextIconTemplate),d(),v("ngIf",i.nextIconTemplate||i._nextIconTemplate)}}function $M(e,t){if(e&1&&(p(0,"th",18)(1,"span",18),C(2),u()()),e&2){let i=g(5);pe(i.cx("weekHeader")),v("pBind",i.ptm("weekHeader")),d(),v("pBind",i.ptm("weekHeaderLabel")),d(),R(i.getTranslation("weekHeader"))}}function qM(e,t){if(e&1&&(p(0,"th",37)(1,"span",18),C(2),u()()),e&2){let i=t.$implicit,n=g(5);pe(n.cx("weekDayCell")),v("pBind",n.ptm("weekDayCell")),d(),pe(n.cx("weekDay")),v("pBind",n.ptm("weekDay")),d(),R(i)}}function YM(e,t){if(e&1&&(p(0,"td",18)(1,"span",18),C(2),u()()),e&2){let i=g().index,n=g(2).$implicit,o=g(3);pe(o.cx("weekNumber")),v("pBind",o.ptm("weekNumber")),d(),pe(o.cx("weekLabelContainer")),v("pBind",o.ptm("weekLabelContainer")),d(),A(" ",n.weekNumbers[i]," ")}}function KM(e,t){if(e&1&&(mt(0),C(1),ft()),e&2){let i=g(2).$implicit;d(),R(i.day)}}function QM(e,t){e&1&&Ti(0)}function JM(e,t){if(e&1&&(mt(0),V(1,QM,1,0,"ng-container",20),ft()),e&2){let i=g(2).$implicit,n=g(6);d(),v("ngTemplateOutlet",n.dateTemplate||n._dateTemplate)("ngTemplateOutletContext",z(2,_h,i))}}function ZM(e,t){e&1&&Ti(0)}function XM(e,t){if(e&1&&(mt(0),V(1,ZM,1,0,"ng-container",20),ft()),e&2){let i=g(2).$implicit,n=g(6);d(),v("ngTemplateOutlet",n.disabledDateTemplate||n._disabledDateTemplate)("ngTemplateOutletContext",z(2,_h,i))}}function eT(e,t){if(e&1&&(p(0,"div",40),C(1),u()),e&2){let i=g(2).$implicit;d(),A(" ",i.day," ")}}function tT(e,t){if(e&1){let i=P();mt(0),p(1,"span",38),T("click",function(o){k(i);let r=g().$implicit,a=g(6);return E(a.onDateSelect(o,r))})("keydown",function(o){k(i);let r=g().$implicit,a=g(3).index,s=g(3);return E(s.onDateCellKeydown(o,r,a))}),V(2,KM,2,1,"ng-container",6)(3,JM,2,4,"ng-container",6)(4,XM,2,4,"ng-container",6),u(),V(5,eT,2,1,"div",39),ft()}if(e&2){let i=g().$implicit,n=g(6);d(),v("ngClass",n.dayClass(i))("pBind",n.ptm("day")),Ve("data-date",n.formatDateKey(n.formatDateMetaToDate(i))),d(),v("ngIf",!n.dateTemplate&&!n._dateTemplate&&(i.selectable||!n.disabledDateTemplate&&!n._disabledDateTemplate)),d(),v("ngIf",i.selectable||!n.disabledDateTemplate&&!n._disabledDateTemplate),d(),v("ngIf",!i.selectable),d(),v("ngIf",n.isSelected(i))}}function iT(e,t){if(e&1&&(p(0,"td",18),V(1,tT,6,7,"ng-container",6),u()),e&2){let i=t.$implicit,n=g(6);pe(n.cx("dayCell",z(5,uM,i))),v("pBind",n.ptm("dayCell")),Ve("aria-label",i.day),d(),v("ngIf",i.otherMonth?n.showOtherMonths:!0)}}function nT(e,t){if(e&1&&(p(0,"tr",18),V(1,YM,3,7,"td",23)(2,iT,2,7,"td",24),u()),e&2){let i=t.$implicit,n=g(5);v("pBind",n.ptm("tableBodyRow")),d(),v("ngIf",n.showWeek),d(),v("ngForOf",i)}}function oT(e,t){if(e&1&&(p(0,"table",34)(1,"thead",18)(2,"tr",18),V(3,$M,3,5,"th",23)(4,qM,3,7,"th",35),u()(),p(5,"tbody",18),V(6,nT,3,3,"tr",36),u()()),e&2){let i=g().$implicit,n=g(3);pe(n.cx("dayView")),v("pBind",n.ptm("table")),d(),v("pBind",n.ptm("tableHeader")),d(),v("pBind",n.ptm("tableHeaderRow")),d(),v("ngIf",n.showWeek),d(),v("ngForOf",n.weekDays),d(),v("pBind",n.ptm("tableBody")),d(),v("ngForOf",i.dates)}}function rT(e,t){if(e&1){let i=P();p(0,"div",18)(1,"div",18)(2,"p-button",25),T("keydown",function(o){k(i);let r=g(3);return E(r.onContainerButtonKeydown(o))})("onClick",function(o){k(i);let r=g(3);return E(r.onPrevButtonClick(o))}),V(3,AM,2,2,"ng-template",null,2,ze),u(),p(5,"div",18),V(6,LM,2,7,"button",26)(7,NM,2,7,"button",26)(8,VM,3,8,"span",23),u(),p(9,"p-button",27),T("keydown",function(o){k(i);let r=g(3);return E(r.onContainerButtonKeydown(o))})("onClick",function(o){k(i);let r=g(3);return E(r.onNextButtonClick(o))}),V(10,WM,2,2,"ng-template",null,2,ze),u()(),V(12,oT,7,9,"table",28),u()}if(e&2){let i=t.index,n=g(3);pe(n.cx("calendar")),v("pBind",n.ptm("calendar")),d(),pe(n.cx("header")),v("pBind",n.ptm("header")),d(),v("styleClass",n.cx("pcPrevButton"))("ngStyle",z(23,hC,i===0?"visible":"hidden"))("ariaLabel",n.prevIconAriaLabel)("pt",n.ptm("pcPrevButton")),Ve("data-pc-group-section","navigator"),d(3),pe(n.cx("title")),v("pBind",n.ptm("title")),d(),v("ngIf",n.currentView==="date"),d(),v("ngIf",n.currentView!=="year"),d(),v("ngIf",n.currentView==="year"),d(),v("styleClass",n.cx("pcNextButton"))("ngStyle",z(25,hC,i===n.months.length-1?"visible":"hidden"))("ariaLabel",n.nextIconAriaLabel)("pt",n.ptm("pcNextButton")),Ve("data-pc-group-section","navigator"),d(3),v("ngIf",n.currentView==="date")}}function aT(e,t){if(e&1&&(p(0,"div",40),C(1),u()),e&2){let i=g().$implicit;d(),A(" ",i," ")}}function sT(e,t){if(e&1){let i=P();p(0,"span",42),T("click",function(o){let r=k(i).index,a=g(4);return E(a.onMonthSelect(o,r))})("keydown",function(o){let r=k(i).index,a=g(4);return E(a.onMonthCellKeydown(o,r))}),C(1),V(2,aT,2,1,"div",39),u()}if(e&2){let i=t.$implicit,n=t.index,o=g(4);pe(o.cx("month",Re(5,pM,i,n))),v("pBind",o.ptm("month")),d(),A(" ",i," "),d(),v("ngIf",o.isMonthSelected(n))}}function lT(e,t){if(e&1&&(p(0,"div",18),V(1,sT,3,8,"span",41),u()),e&2){let i=g(3);pe(i.cx("monthView")),v("pBind",i.ptm("monthView")),d(),v("ngForOf",i.monthPickerValues())}}function cT(e,t){if(e&1&&(p(0,"div",40),C(1),u()),e&2){let i=g().$implicit;d(),A(" ",i," ")}}function dT(e,t){if(e&1){let i=P();p(0,"span",42),T("click",function(o){let r=k(i).$implicit,a=g(4);return E(a.onYearSelect(o,r))})("keydown",function(o){let r=k(i).$implicit,a=g(4);return E(a.onYearCellKeydown(o,r))}),C(1),V(2,cT,2,1,"div",39),u()}if(e&2){let i=t.$implicit,n=g(4);pe(n.cx("year",z(5,hM,i))),v("pBind",n.ptm("year")),d(),A(" ",i," "),d(),v("ngIf",n.isYearSelected(i))}}function uT(e,t){if(e&1&&(p(0,"div",18),V(1,dT,3,7,"span",41),u()),e&2){let i=g(3);pe(i.cx("yearView")),v("pBind",i.ptm("yearView")),d(),v("ngForOf",i.yearPickerValues())}}function pT(e,t){if(e&1&&(mt(0),p(1,"div",18),V(2,rT,13,27,"div",24),u(),V(3,lT,2,4,"div",23)(4,uT,2,4,"div",23),ft()),e&2){let i=g(2);d(),pe(i.cx("calendarContainer")),v("pBind",i.ptm("calendarContainer")),d(),v("ngForOf",i.months),d(),v("ngIf",i.currentView==="month"),d(),v("ngIf",i.currentView==="year")}}function hT(e,t){if(e&1&&(Xe(),x(0,"svg",46)),e&2){let i=g(4);v("pBind",i.ptm("pcIncrementButton").icon)}}function gT(e,t){}function mT(e,t){e&1&&V(0,gT,0,0,"ng-template")}function fT(e,t){if(e&1&&V(0,hT,1,1,"svg",45)(1,mT,1,0,null,12),e&2){let i=g(3);v("ngIf",!i.incrementIconTemplate&&!i._incrementIconTemplate),d(),v("ngTemplateOutlet",i.incrementIconTemplate||i._incrementIconTemplate)}}function vT(e,t){e&1&&(mt(0),C(1,"0"),ft())}function CT(e,t){if(e&1&&(Xe(),x(0,"svg",48)),e&2){let i=g(4);v("pBind",i.ptm("pcDecrementButton").icon)}}function bT(e,t){}function _T(e,t){e&1&&V(0,bT,0,0,"ng-template")}function yT(e,t){if(e&1&&V(0,CT,1,1,"svg",47)(1,_T,1,0,null,12),e&2){let i=g(3);v("ngIf",!i.decrementIconTemplate&&!i._decrementIconTemplate),d(),v("ngTemplateOutlet",i.decrementIconTemplate||i._decrementIconTemplate)}}function wT(e,t){if(e&1&&(Xe(),x(0,"svg",46)),e&2){let i=g(4);v("pBind",i.ptm("pcIncrementButton").icon)}}function xT(e,t){}function ST(e,t){e&1&&V(0,xT,0,0,"ng-template")}function kT(e,t){if(e&1&&V(0,wT,1,1,"svg",45)(1,ST,1,0,null,12),e&2){let i=g(3);v("ngIf",!i.incrementIconTemplate&&!i._incrementIconTemplate),d(),v("ngTemplateOutlet",i.incrementIconTemplate||i._incrementIconTemplate)}}function ET(e,t){e&1&&(mt(0),C(1,"0"),ft())}function MT(e,t){if(e&1&&(Xe(),x(0,"svg",48)),e&2){let i=g(4);v("pBind",i.ptm("pcDecrementButton").icon)}}function TT(e,t){}function IT(e,t){e&1&&V(0,TT,0,0,"ng-template")}function DT(e,t){if(e&1&&V(0,MT,1,1,"svg",47)(1,IT,1,0,null,12),e&2){let i=g(3);v("ngIf",!i.decrementIconTemplate&&!i._decrementIconTemplate),d(),v("ngTemplateOutlet",i.decrementIconTemplate||i._decrementIconTemplate)}}function PT(e,t){if(e&1&&(p(0,"div",18)(1,"span",18),C(2),u()()),e&2){let i=g(3);pe(i.cx("separator")),v("pBind",i.ptm("separatorContainer")),d(),v("pBind",i.ptm("separator")),d(),R(i.timeSeparator)}}function RT(e,t){if(e&1&&(Xe(),x(0,"svg",46)),e&2){let i=g(5);v("pBind",i.ptm("pcIncrementButton").icon)}}function FT(e,t){}function OT(e,t){e&1&&V(0,FT,0,0,"ng-template")}function AT(e,t){if(e&1&&V(0,RT,1,1,"svg",45)(1,OT,1,0,null,12),e&2){let i=g(4);v("ngIf",!i.incrementIconTemplate&&!i._incrementIconTemplate),d(),v("ngTemplateOutlet",i.incrementIconTemplate||i._incrementIconTemplate)}}function LT(e,t){e&1&&(mt(0),C(1,"0"),ft())}function NT(e,t){if(e&1&&(Xe(),x(0,"svg",48)),e&2){let i=g(5);v("pBind",i.ptm("pcDecrementButton").icon)}}function zT(e,t){}function BT(e,t){e&1&&V(0,zT,0,0,"ng-template")}function VT(e,t){if(e&1&&V(0,NT,1,1,"svg",47)(1,BT,1,0,null,12),e&2){let i=g(4);v("ngIf",!i.decrementIconTemplate&&!i._decrementIconTemplate),d(),v("ngTemplateOutlet",i.decrementIconTemplate||i._decrementIconTemplate)}}function HT(e,t){if(e&1){let i=P();p(0,"div",18)(1,"p-button",43),T("keydown",function(o){k(i);let r=g(3);return E(r.onContainerButtonKeydown(o))})("keydown.enter",function(o){k(i);let r=g(3);return E(r.incrementSecond(o))})("keydown.space",function(o){k(i);let r=g(3);return E(r.incrementSecond(o))})("mousedown",function(o){k(i);let r=g(3);return E(r.onTimePickerElementMouseDown(o,2,1))})("mouseup",function(o){k(i);let r=g(3);return E(r.onTimePickerElementMouseUp(o))})("keyup.enter",function(o){k(i);let r=g(3);return E(r.onTimePickerElementMouseUp(o))})("keyup.space",function(o){k(i);let r=g(3);return E(r.onTimePickerElementMouseUp(o))})("mouseleave",function(){k(i);let o=g(3);return E(o.onTimePickerElementMouseLeave())}),V(2,AT,2,2,"ng-template",null,2,ze),u(),p(4,"span",18),V(5,LT,2,0,"ng-container",6),C(6),u(),p(7,"p-button",43),T("keydown",function(o){k(i);let r=g(3);return E(r.onContainerButtonKeydown(o))})("keydown.enter",function(o){k(i);let r=g(3);return E(r.decrementSecond(o))})("keydown.space",function(o){k(i);let r=g(3);return E(r.decrementSecond(o))})("mousedown",function(o){k(i);let r=g(3);return E(r.onTimePickerElementMouseDown(o,2,-1))})("mouseup",function(o){k(i);let r=g(3);return E(r.onTimePickerElementMouseUp(o))})("keyup.enter",function(o){k(i);let r=g(3);return E(r.onTimePickerElementMouseUp(o))})("keyup.space",function(o){k(i);let r=g(3);return E(r.onTimePickerElementMouseUp(o))})("mouseleave",function(){k(i);let o=g(3);return E(o.onTimePickerElementMouseLeave())}),V(8,VT,2,2,"ng-template",null,2,ze),u()()}if(e&2){let i=g(3);pe(i.cx("secondPicker")),v("pBind",i.ptm("secondPicker")),d(),v("styleClass",i.cx("pcIncrementButton"))("pt",i.ptm("pcIncrementButton")),Ve("aria-label",i.getTranslation("nextSecond"))("data-pc-group-section","timepickerbutton"),d(3),v("pBind",i.ptm("second")),d(),v("ngIf",i.currentSecond<10),d(),R(i.currentSecond),d(),v("styleClass",i.cx("pcDecrementButton"))("pt",i.ptm("pcDecrementButton")),Ve("aria-label",i.getTranslation("prevSecond"))("data-pc-group-section","timepickerbutton")}}function GT(e,t){if(e&1&&(p(0,"div",18)(1,"span",18),C(2),u()()),e&2){let i=g(3);pe(i.cx("separator")),v("pBind",i.ptm("separatorContainer")),d(),v("pBind",i.ptm("separator")),d(),R(i.timeSeparator)}}function UT(e,t){if(e&1&&(Xe(),x(0,"svg",46)),e&2){let i=g(5);v("pBind",i.ptm("pcIncrementButton").icon)}}function jT(e,t){}function WT(e,t){e&1&&V(0,jT,0,0,"ng-template")}function $T(e,t){if(e&1&&V(0,UT,1,1,"svg",45)(1,WT,1,0,null,12),e&2){let i=g(4);v("ngIf",!i.incrementIconTemplate&&!i._incrementIconTemplate),d(),v("ngTemplateOutlet",i.incrementIconTemplate||i._incrementIconTemplate)}}function qT(e,t){if(e&1&&(Xe(),x(0,"svg",48)),e&2){let i=g(5);v("pBind",i.ptm("pcDecrementButton").icon)}}function YT(e,t){}function KT(e,t){e&1&&V(0,YT,0,0,"ng-template")}function QT(e,t){if(e&1&&V(0,qT,1,1,"svg",47)(1,KT,1,0,null,12),e&2){let i=g(4);v("ngIf",!i.decrementIconTemplate&&!i._decrementIconTemplate),d(),v("ngTemplateOutlet",i.decrementIconTemplate||i._decrementIconTemplate)}}function JT(e,t){if(e&1){let i=P();p(0,"div",18)(1,"p-button",49),T("keydown",function(o){k(i);let r=g(3);return E(r.onContainerButtonKeydown(o))})("onClick",function(o){k(i);let r=g(3);return E(r.toggleAMPM(o))})("keydown.enter",function(o){k(i);let r=g(3);return E(r.toggleAMPM(o))}),V(2,$T,2,2,"ng-template",null,2,ze),u(),p(4,"span",18),C(5),u(),p(6,"p-button",50),T("keydown",function(o){k(i);let r=g(3);return E(r.onContainerButtonKeydown(o))})("click",function(o){k(i);let r=g(3);return E(r.toggleAMPM(o))})("keydown.enter",function(o){k(i);let r=g(3);return E(r.toggleAMPM(o))}),V(7,QT,2,2,"ng-template",null,2,ze),u()()}if(e&2){let i=g(3);pe(i.cx("ampmPicker")),v("pBind",i.ptm("ampmPicker")),d(),v("styleClass",i.cx("pcIncrementButton"))("pt",i.ptm("pcIncrementButton")),Ve("aria-label",i.getTranslation("am"))("data-pc-group-section","timepickerbutton"),d(3),v("pBind",i.ptm("ampm")),d(),R(i.pm?"PM":"AM"),d(),v("styleClass",i.cx("pcDecrementButton"))("pt",i.ptm("pcDecrementButton")),Ve("aria-label",i.getTranslation("pm"))("data-pc-group-section","timepickerbutton")}}function ZT(e,t){if(e&1){let i=P();p(0,"div",18)(1,"div",18)(2,"p-button",43),T("keydown",function(o){k(i);let r=g(2);return E(r.onContainerButtonKeydown(o))})("keydown.enter",function(o){k(i);let r=g(2);return E(r.incrementHour(o))})("keydown.space",function(o){k(i);let r=g(2);return E(r.incrementHour(o))})("mousedown",function(o){k(i);let r=g(2);return E(r.onTimePickerElementMouseDown(o,0,1))})("mouseup",function(o){k(i);let r=g(2);return E(r.onTimePickerElementMouseUp(o))})("keyup.enter",function(o){k(i);let r=g(2);return E(r.onTimePickerElementMouseUp(o))})("keyup.space",function(o){k(i);let r=g(2);return E(r.onTimePickerElementMouseUp(o))})("mouseleave",function(){k(i);let o=g(2);return E(o.onTimePickerElementMouseLeave())}),V(3,fT,2,2,"ng-template",null,2,ze),u(),p(5,"span",18),V(6,vT,2,0,"ng-container",6),C(7),u(),p(8,"p-button",43),T("keydown",function(o){k(i);let r=g(2);return E(r.onContainerButtonKeydown(o))})("keydown.enter",function(o){k(i);let r=g(2);return E(r.decrementHour(o))})("keydown.space",function(o){k(i);let r=g(2);return E(r.decrementHour(o))})("mousedown",function(o){k(i);let r=g(2);return E(r.onTimePickerElementMouseDown(o,0,-1))})("mouseup",function(o){k(i);let r=g(2);return E(r.onTimePickerElementMouseUp(o))})("keyup.enter",function(o){k(i);let r=g(2);return E(r.onTimePickerElementMouseUp(o))})("keyup.space",function(o){k(i);let r=g(2);return E(r.onTimePickerElementMouseUp(o))})("mouseleave",function(){k(i);let o=g(2);return E(o.onTimePickerElementMouseLeave())}),V(9,yT,2,2,"ng-template",null,2,ze),u()(),p(11,"div",44)(12,"span",18),C(13),u()(),p(14,"div",18)(15,"p-button",43),T("keydown",function(o){k(i);let r=g(2);return E(r.onContainerButtonKeydown(o))})("keydown.enter",function(o){k(i);let r=g(2);return E(r.incrementMinute(o))})("keydown.space",function(o){k(i);let r=g(2);return E(r.incrementMinute(o))})("mousedown",function(o){k(i);let r=g(2);return E(r.onTimePickerElementMouseDown(o,1,1))})("mouseup",function(o){k(i);let r=g(2);return E(r.onTimePickerElementMouseUp(o))})("keyup.enter",function(o){k(i);let r=g(2);return E(r.onTimePickerElementMouseUp(o))})("keyup.space",function(o){k(i);let r=g(2);return E(r.onTimePickerElementMouseUp(o))})("mouseleave",function(){k(i);let o=g(2);return E(o.onTimePickerElementMouseLeave())}),V(16,kT,2,2,"ng-template",null,2,ze),u(),p(18,"span",18),V(19,ET,2,0,"ng-container",6),C(20),u(),p(21,"p-button",43),T("keydown",function(o){k(i);let r=g(2);return E(r.onContainerButtonKeydown(o))})("keydown.enter",function(o){k(i);let r=g(2);return E(r.decrementMinute(o))})("keydown.space",function(o){k(i);let r=g(2);return E(r.decrementMinute(o))})("mousedown",function(o){k(i);let r=g(2);return E(r.onTimePickerElementMouseDown(o,1,-1))})("mouseup",function(o){k(i);let r=g(2);return E(r.onTimePickerElementMouseUp(o))})("keyup.enter",function(o){k(i);let r=g(2);return E(r.onTimePickerElementMouseUp(o))})("keyup.space",function(o){k(i);let r=g(2);return E(r.onTimePickerElementMouseUp(o))})("mouseleave",function(){k(i);let o=g(2);return E(o.onTimePickerElementMouseLeave())}),V(22,DT,2,2,"ng-template",null,2,ze),u()(),V(24,PT,3,5,"div",23)(25,HT,10,14,"div",23)(26,GT,3,5,"div",23)(27,JT,9,13,"div",23),u()}if(e&2){let i=g(2);pe(i.cx("timePicker")),v("pBind",i.ptm("timePicker")),d(),pe(i.cx("hourPicker")),v("pBind",i.ptm("hourPicker")),d(),v("styleClass",i.cx("pcIncrementButton"))("pt",i.ptm("pcIncrementButton")),Ve("aria-label",i.getTranslation("nextHour"))("data-pc-group-section","timepickerbutton"),d(3),v("pBind",i.ptm("hour")),d(),v("ngIf",i.currentHour<10),d(),R(i.currentHour),d(),v("styleClass",i.cx("pcDecrementButton"))("pt",i.ptm("pcDecrementButton")),Ve("aria-label",i.getTranslation("prevHour"))("data-pc-group-section","timepickerbutton"),d(3),v("pBind",i.ptm("separatorContainer")),d(),v("pBind",i.ptm("separator")),d(),R(i.timeSeparator),d(),pe(i.cx("minutePicker")),v("pBind",i.ptm("minutePicker")),d(),v("styleClass",i.cx("pcIncrementButton"))("pt",i.ptm("pcIncrementButton")),Ve("aria-label",i.getTranslation("nextMinute"))("data-pc-group-section","timepickerbutton"),d(3),v("pBind",i.ptm("minute")),d(),v("ngIf",i.currentMinute<10),d(),R(i.currentMinute),d(),v("styleClass",i.cx("pcDecrementButton"))("pt",i.ptm("pcDecrementButton")),Ve("aria-label",i.getTranslation("prevMinute"))("data-pc-group-section","timepickerbutton"),d(3),v("ngIf",i.showSeconds),d(),v("ngIf",i.showSeconds),d(),v("ngIf",i.hourFormat=="12"),d(),v("ngIf",i.hourFormat=="12")}}function XT(e,t){e&1&&Ti(0)}function eI(e,t){if(e&1&&V(0,XT,1,0,"ng-container",20),e&2){let i=g(3);v("ngTemplateOutlet",i.buttonBarTemplate||i._buttonBarTemplate)("ngTemplateOutletContext",Re(2,gM,i.onTodayButtonClick.bind(i),i.onClearButtonClick.bind(i)))}}function tI(e,t){if(e&1){let i=P();p(0,"p-button",51),T("keydown",function(o){k(i);let r=g(3);return E(r.onContainerButtonKeydown(o))})("onClick",function(o){k(i);let r=g(3);return E(r.onTodayButtonClick(o))}),u(),p(1,"p-button",51),T("keydown",function(o){k(i);let r=g(3);return E(r.onContainerButtonKeydown(o))})("onClick",function(o){k(i);let r=g(3);return E(r.onClearButtonClick(o))}),u()}if(e&2){let i=g(3);v("styleClass",i.cx("pcTodayButton"))("label",i.getTranslation("today"))("ngClass",i.todayButtonStyleClass)("pt",i.ptm("pcTodayButton")),Ve("data-pc-group-section","button"),d(),v("styleClass",i.cx("pcClearButton"))("label",i.getTranslation("clear"))("ngClass",i.clearButtonStyleClass)("pt",i.ptm("pcClearButton")),Ve("data-pc-group-section","button")}}function iI(e,t){if(e&1&&(p(0,"div",18),y(1,eI,1,5,"ng-container")(2,tI,2,10),u()),e&2){let i=g(2);pe(i.cx("buttonbar")),v("pBind",i.ptm("buttonbar")),d(),w(i.buttonBarTemplate||i._buttonBarTemplate?1:2)}}function nI(e,t){e&1&&Ti(0)}function oI(e,t){if(e&1){let i=P();p(0,"div",22,1),T("@overlayAnimation.start",function(o){k(i);let r=g();return E(r.onOverlayAnimationStart(o))})("@overlayAnimation.done",function(o){k(i);let r=g();return E(r.onOverlayAnimationDone(o))})("click",function(o){k(i);let r=g();return E(r.onOverlayClick(o))}),ui(2),V(3,DM,1,0,"ng-container",12)(4,pT,5,6,"ng-container",6)(5,ZT,28,38,"div",23)(6,iI,3,4,"div",23),ui(7,1),V(8,nI,1,0,"ng-container",12),u()}if(e&2){let i=g();pe(i.cn(i.cx("panel"),i.panelStyleClass)),v("ngStyle",i.panelStyle)("@overlayAnimation",z(18,dM,Re(15,cM,i.showTransitionOptions,i.hideTransitionOptions)))("@.disabled",i.inline===!0)("pBind",i.ptm("panel")),Ve("id",i.panelId)("aria-label",i.getTranslation("chooseDate"))("role",i.inline?null:"dialog")("aria-modal",i.inline?null:"true"),d(3),v("ngTemplateOutlet",i.headerTemplate||i._headerTemplate),d(),v("ngIf",!i.timeOnly),d(),v("ngIf",(i.showTime||i.timeOnly)&&i.currentView==="date"),d(),v("ngIf",i.showButtonBar),d(2),v("ngTemplateOutlet",i.footerTemplate||i._footerTemplate)}}var rI=` 462 ${pC} 463 464 /* For PrimeNG */ 465 .p-datepicker.ng-invalid.ng-dirty .p-inputtext {
466 border-color: dt('inputtext.invalid.border.color'); 467 } 468`,aI={root:()=>({position:"relative"})},sI={root:({instance:e})=>["p-datepicker p-component p-inputwrapper",{"p-invalid":e.invalid(),"p-datepicker-fluid":e.hasFluid,"p-inputwrapper-filled":e.$filled(),"p-variant-filled":e.$variant()==="filled","p-inputwrapper-focus":e.focus||e.overlayVisible,"p-focus":e.focus||e.overlayVisible}],pcInputText:"p-datepicker-input",dropdown:"p-datepicker-dropdown",inputIconContainer:"p-datepicker-input-icon-container",inputIcon:"p-datepicker-input-icon",panel:({instance:e})=>["p-datepicker-panel p-component",{"p-datepicker-panel p-component":!0,"p-datepicker-panel-inline":e.inline,"p-disabled":e.$disabled(),"p-datepicker-timeonly":e.timeOnly}],calendarContainer:"p-datepicker-calendar-container",calendar:"p-datepicker-calendar",header:"p-datepicker-header",pcPrevButton:"p-datepicker-prev-button",title:"p-datepicker-title",selectMonth:"p-datepicker-select-month",selectYear:"p-datepicker-select-year",decade:"p-datepicker-decade",pcNextButton:"p-datepicker-next-button",dayView:"p-datepicker-day-view",weekHeader:"p-datepicker-weekheader p-disabled",weekNumber:"p-datepicker-weeknumber",weekLabelContainer:"p-datepicker-weeklabel-container p-disabled",weekDayCell:"p-datepicker-weekday-cell",weekDay:"p-datepicker-weekday",dayCell:({date:e})=>["p-datepicker-day-cell",{"p-datepicker-other-month":e.otherMonth,"p-datepicker-today":e.today}],day:({instance:e,date:t})=>{let i="";if(e.isRangeSelection()&&e.isSelected(t)&&t.selectable){let n=e.value[0],o=e.value[1],r=n&&t.year===n.getFullYear()&&t.month===n.getMonth()&&t.day===n.getDate(),a=o&&t.year===o.getFullYear()&&t.month===o.getMonth()&&t.day===o.getDate();i=r||a?"p-datepicker-day-selected":"p-datepicker-day-selected-range"}return{"p-datepicker-day":!0,"p-datepicker-day-selected":!e.isRangeSelection()&&e.isSelected(t)&&t.selectable,"p-disabled":e.$disabled()||!t.selectable,[i]:!0}},monthView:"p-datepicker-month-view",month:({instance:e,index:t})=>["p-datepicker-month",{"p-datepicker-month-selected":e.isMonthSelected(t),"p-disabled":e.isMonthDisabled(t)}],yearView:"p-datepicker-year-view",year:({instance:e,year:t})=>["p-datepicker-year",{"p-datepicker-year-selected":e.isYearSelected(t),"p-disabled":e.isYearDisabled(t)}],timePicker:"p-datepicker-time-picker",hourPicker:"p-datepicker-hour-picker",pcIncrementButton:"p-datepicker-increment-button",pcDecrementButton:"p-datepicker-decrement-button",separator:"p-datepicker-separator",minutePicker:"p-datepicker-minute-picker",secondPicker:"p-datepicker-second-picker",ampmPicker:"p-datepicker-ampm-picker",buttonbar:"p-datepicker-buttonbar",pcTodayButton:"p-datepicker-today-button",pcClearButton:"p-datepicker-clear-button",clearIcon:"p-datepicker-clear-icon"},gC=(()=>{class e extends Gv{name="datepicker";style=rI;classes=sI;inlineStyles=aI;static \u0275fac=(()=>{let i;return function(o){return(i||(i=Tt(e)))(o||e)}})();static \u0275prov=ve({token:e,factory:e.\u0275fac})}return e})();var lI={provide:Zt,useExisting:Wt(()=>Da),multi:!0},mC=new ka("DATEPICKER_INSTANCE"),Da=(()=>{class e extends rC{zone;overlayService;bindDirectiveInstance=xe(dl,{self:!0});$pcDatePicker=xe(mC,{optional:!0,skipSelf:!0})??void 0;iconDisplay="button";styleClass;inputStyle;inputId;inputStyleClass;placeholder;ariaLabelledBy;ariaLabel;iconAriaLabel;get dateFormat(){return this._dateFormat}set dateFormat(i){this._dateFormat=i,this.initialized&&this.updateInputfield()}multipleSeparator=",";rangeSeparator="-";inline=!1;showOtherMonths=!0;selectOtherMonths;showIcon;icon;readonlyInput;shortYearCutoff="+10";get hourFormat(){return this._hourFormat}set hourFormat(i){this._hourFormat=i,this.initialized&&this.updateInputfield()}timeOnly;stepHour=1;stepMinute=1;stepSecond=1;showSeconds=!1;showOnFocus=!0;showWeek=!1;startWeekFromFirstDayOfYear=!1;showClear=!1;dataType="date";selectionMode="single";maxDateCount;showButtonBar;todayButtonStyleClass;clearButtonStyleClass;autofocus;autoZIndex=!0;baseZIndex=0;panelStyleClass;panelStyle;keepInvalid=!1;hideOnDateTimeSelect=!0;touchUI;timeSeparator=":";focusTrap=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";tabindex;
vendor: 34,862 bytes, line 468
468get minDate(){return this._minDate}set minDate(i){this._minDate=i,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get maxDate(){return this._maxDate}set maxDate(i){this._maxDate=i,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates(i){this._disabledDates=i,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays(i){this._disabledDays=i,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get showTime(){return this._showTime}set showTime(i){this._showTime=i,this.currentHour===void 0&&this.initTime(this.value||new Date),this.updateInputfield()}get responsiveOptions(){return this._responsiveOptions}set responsiveOptions(i){this._responsiveOptions=i,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths(i){this._numberOfMonths=i,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(i){this._firstDayOfWeek=i,this.createWeekDays()}get view(){return this._view}set view(i){this._view=i,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate(i){if(this._defaultDate=i,this.initialized){let n=i||new Date;this.currentMonth=n.getMonth(),this.currentYear=n.getFullYear(),this.initTime(n),this.createMonths(this.currentMonth,this.currentYear)}}appendTo=Dt(void 0);onFocus=new L;onBlur=new L;onClose=new L;onSelect=new L;onClear=new L;onInput=new L;onTodayClick=new L;onClearClick=new L;onMonthChange=new L;onYearChange=new L;onClickOutside=new L;onShow=new L;inputfieldViewChild;set content(i){this.contentViewChild=i,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then(()=>this.updateFocus()),this.isMonthNavigate=!1):!this.focus&&!this.inline&&this.initFocusableCell())}_componentStyle=xe(gC);contentViewChild;value;dates;months;weekDays;currentMonth;currentYear;currentHour;currentMinute;currentSecond;p;pm;mask;maskClickListener;overlay;responsiveStyleElement;overlayVisible;$appendTo=It(()=>this.appendTo()||this.config.overlayAppendTo());calendarElement;timePickerTimer;documentClickListener;animationEndListener;ticksTo1970;yearOptions;focus;isKeydown;_minDate;_maxDate;_dateFormat;_hourFormat="24";_showTime;_yearRange;preventDocumentListener;dayClass(i){return this._componentStyle.classes.day({instance:this,date:i})}dateTemplate;headerTemplate;footerTemplate;disabledDateTemplate;decadeTemplate;previousIconTemplate;nextIconTemplate;triggerIconTemplate;clearIconTemplate;decrementIconTemplate;incrementIconTemplate;inputIconTemplate;buttonBarTemplate;_dateTemplate;_headerTemplate;_footerTemplate;_disabledDateTemplate;_decadeTemplate;_previousIconTemplate;_nextIconTemplate;_triggerIconTemplate;_clearIconTemplate;_decrementIconTemplate;_incrementIconTemplate;_inputIconTemplate;_buttonBarTemplate;_disabledDates;_disabledDays;selectElement;todayElement;focusElement;scrollHandler;documentResizeListener;navigationState=null;isMonthNavigate;initialized;translationSubscription;_locale;_responsiveOptions;currentView;attributeSelector;panelId;_numberOfMonths=1;_firstDayOfWeek;_view="date";preventFocus;_defaultDate;_focusKey=null;window;get locale(){return this._locale}get iconButtonAriaLabel(){return this.iconAriaLabel?this.iconAriaLabel:this.getTranslation("chooseDate")}get prevIconAriaLabel(){return this.currentView==="year"?this.getTranslation("prevDecade"):this.currentView==="month"?this.getTranslation("prevYear"):this.getTranslation("prevMonth")}get nextIconAriaLabel(){return this.currentView==="year"?this.getTranslation("nextDecade"):this.currentView==="month"?this.getTranslation("nextYear"):this.getTranslation("nextMonth")}constructor(i,n){super(),this.zone=i,this.overlayService=n,this.window=this.document.defaultView}onInit(){this.attributeSelector=Bv("pn_id_"),this.panelId=this.attributeSelector+"_panel";let i=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=i.getMonth(),this.currentYear=i.getFullYear(),this.yearOptions=[],this.currentView=this.view,this.view==="date"&&(this.createWeekDays(),this.initTime(i),this.createMonths(this.currentMonth,this.currentYear),this.ticksTo1970=(1969*365+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*24*60*60*1e7),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.createWeekDays(),this.cd.markForCheck()}),this.initialized=!0}onAfterViewInit(){this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),!this.$disabled()&&!this.inline&&(this.initFocusableCell(),this.numberOfMonths===1&&this.contentViewChild&&this.contentViewChild.nativeElement&&(this.contentViewChild.nativeElement.style.width=sl(this.el?.nativeElement)+"px")))}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}templates;onAfterContentInit(){this.templates.forEach(i=>{switch(i.getType()){case"date":this._dateTemplate=i.template;break;case"decade":this._decadeTemplate=i.template;break;case"disabledDate":this._disabledDateTemplate=i.template;break;case"header":this._headerTemplate=i.template;break;case"inputicon":this._inputIconTemplate=i.template;break;case"buttonbar":this._buttonBarTemplate=i.template;break;case"previousicon":this._previousIconTemplate=i.template;break;case"nexticon":this._nextIconTemplate=i.template;break;case"triggericon":this._triggerIconTemplate=i.template;break;case"clearicon":this._clearIconTemplate=i.template;break;case"decrementicon":this._decrementIconTemplate=i.template;break;case"incrementicon":this._incrementIconTemplate=i.template;break;case"footer":this._footerTemplate=i.template;break;default:this._dateTemplate=i.template;break}})}getTranslation(i){return this.config.getTranslation(i)}populateYearOptions(i,n){this.yearOptions=[];for(let o=i;o<=n;o++)this.yearOptions.push(o)}createWeekDays(){this.weekDays=[];let i=this.getFirstDateOfWeek(),n=this.getTranslation(xn.DAY_NAMES_MIN);for(let o=0;o<7;o++)this.weekDays.push(n[i]),i=i==6?0:++i}monthPickerValues(){let i=[];for(let n=0;n<=11;n++)i.push(this.config.getTranslation("monthNamesShort")[n]);return i}yearPickerValues(){let i=[],n=this.currentYear-this.currentYear%10;for(let o=0;o<10;o++)i.push(n+o);return i}createMonths(i,n){this.months=this.months=[];for(let o=0;o<this.numberOfMonths;o++){let r=i+o,a=n;r>11&&(r=r%12,a=n+Math.floor((i+o)/12)),this.months.push(this.createMonth(r,a))}}getWeekNumber(i){let n=new Date(i.getTime());if(this.startWeekFromFirstDayOfYear){let r=+this.getFirstDateOfWeek();n.setDate(n.getDate()+6+r-n.getDay())}else n.setDate(n.getDate()+4-(n.getDay()||7));let o=n.getTime();return n.setMonth(0),n.setDate(1),Math.floor(Math.round((o-n.getTime())/864e5)/7)+1}createMonth(i,n){let o=[],r=this.getFirstDayOfMonthIndex(i,n),a=this.getDaysCountInMonth(i,n),s=this.getDaysCountInPrevMonth(i,n),l=1,c=new Date,h=[],m=Math.ceil((a+r)/7);for(let f=0;f<m;f++){let b=[];if(f==0){for(let S=s-r+1;S<=s;S++){let M=this.getPreviousMonthAndYear(i,n);b.push({day:S,month:M.month,year:M.year,otherMonth:!0,today:this.isToday(c,S,M.month,M.year),selectable:this.isSelectable(S,M.month,M.year,!0)})}let _=7-b.length;for(let S=0;S<_;S++)b.push({day:l,month:i,year:n,today:this.isToday(c,l,i,n),selectable:this.isSelectable(l,i,n,!1)}),l++}else for(let _=0;_<7;_++){if(l>a){let S=this.getNextMonthAndYear(i,n);b.push({day:l-a,month:S.month,year:S.year,otherMonth:!0,today:this.isToday(c,l-a,S.month,S.year),selectable:this.isSelectable(l-a,S.month,S.year,!0)})}else b.push({day:l,month:i,year:n,today:this.isToday(c,l,i,n),selectable:this.isSelectable(l,i,n,!1)});l++}this.showWeek&&h.push(this.getWeekNumber(new Date(b[0].year,b[0].month,b[0].day))),o.push(b)}return{month:i,year:n,dates:o,weekNumbers:h}}initTime(i){this.pm=i.getHours()>11,this.showTime?(this.currentMinute=i.getMinutes(),this.currentSecond=this.showSeconds?i.getSeconds():0,this.setCurrentHourPM(i.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward(i){if(this.$disabled()){i.preventDefault();return}this.isMonthNavigate=!0,this.currentView==="month"?(this.decrementYear(),setTimeout(()=>{this.updateFocus()},1)):this.currentView==="year"?(this.decrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(this.currentMonth===0?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear))}navForward(i){if(this.$disabled()){i.preventDefault();return}this.isMonthNavigate=!0,this.currentView==="month"?(this.incrementYear(),setTimeout(()=>{this.updateFocus()},1)):this.currentView==="year"?(this.incrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(this.currentMonth===11?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear))}decrementYear(){this.currentYear--;let i=this.yearOptions;if(this.currentYear<i[0]){let n=i[i.length-1]-i[0];this.populateYearOptions(i[0]-n,i[i.length-1]-n)}}decrementDecade(){this.currentYear=this.currentYear-10}incrementDecade(){this.currentYear=this.currentYear+10}incrementYear(){this.currentYear++;let i=this.yearOptions;if(this.currentYear>i[i.length-1]){let n=i[i.length-1]-i[0];this.populateYearOptions(i[0]+n,i[i.length-1]+n)}}switchToMonthView(i){this.setCurrentView("month"),i.preventDefault()}switchToYearView(i){this.setCurrentView("year"),i.preventDefault()}onDateSelect(i,n){if(this.$disabled()||!n.selectable){i.preventDefault();return}this.isMultipleSelection()&&this.isSelected(n)?(this.value=this.value.filter((o,r)=>!this.isDateEquals(o,n)),this.value.length===0&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(n)&&this.selectDate(n),this.hideOnDateTimeSelect&&(this.isSingleSelection()||this.isRangeSelection()&&this.value[1])&&setTimeout(()=>{i.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()},150),this.updateInputfield(),i.preventDefault()}shouldSelectDate(i){return this.isMultipleSelection()&&this.maxDateCount!=null?this.maxDateCount>(this.value?this.value.length:0):!0}onMonthSelect(i,n){this.view==="month"?this.onDateSelect(i,{year:this.currentYear,month:n,day:1,selectable:!0}):(this.currentMonth=n,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(i,n){this.view==="year"?this.onDateSelect(i,{year:n,month:0,day:1,selectable:!0}):(this.currentYear=n,this.setCurrentView("month"),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}))}updateInputfield(){let i="";if(this.value){if(this.isSingleSelection())i=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let n=0;n<this.value.length;n++){let o=this.formatDateTime(this.value[n]);i+=o,n!==this.value.length-1&&(i+=this.multipleSeparator+" ")}else if(this.isRangeSelection()&&this.value&&this.value.length){let n=this.value[0],o=this.value[1];i=this.formatDateTime(n),o&&(i+=" "+this.rangeSeparator+" "+this.formatDateTime(o))}}this.writeModelValue(i),this.inputFieldValue=i,this.inputfieldViewChild&&this.inputfieldViewChild.nativeElement&&(this.inputfieldViewChild.nativeElement.value=this.inputFieldValue)}inputFieldValue=null;formatDateTime(i){let n=this.keepInvalid?i:null,o=this.isValidDateForTimeConstraints(i);return this.isValidDate(i)?this.timeOnly?n=this.formatTime(i):(n=this.formatDate(i,this.getDateFormat()),this.showTime&&(n+=" "+this.formatTime(i))):this.dataType==="string"&&(n=i),n=o?n:"",n}formatDateMetaToDate(i){return new Date(i.year,i.month,i.day)}formatDateKey(i){return`${i.getFullYear()}-${i.getMonth()}-${i.getDate()}`}setCurrentHourPM(i){this.hourFormat=="12"?(this.pm=i>11,i>=12?this.currentHour=i==12?12:i-12:this.currentHour=i==0?12:i):this.currentHour=i}setCurrentView(i){this.currentView=i,this.cd.detectChanges(),this.alignOverlay()}selectDate(i){let n=this.formatDateMetaToDate(i);if(this.showTime&&(this.hourFormat=="12"?this.currentHour===12?n.setHours(this.pm?12:0):n.setHours(this.pm?this.currentHour+12:this.currentHour):n.setHours(this.currentHour),n.setMinutes(this.currentMinute),n.setSeconds(this.currentSecond)),this.minDate&&this.minDate>n&&(n=this.minDate,this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=n.getSeconds()),this.maxDate&&this.maxDate<n&&(n=this.maxDate,this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=n.getSeconds()),this.isSingleSelection())this.updateModel(n);else if(this.isMultipleSelection())this.updateModel(this.value?[...this.value,n]:[n]);else if(this.isRangeSelection())if(this.value&&this.value.length){let o=this.value[0],r=this.value[1];!r&&n.getTime()>=o.getTime()?r=n:(o=n,r=null),this.updateModel([o,r])}else this.updateModel([n,null]);this.onSelect.emit(n)}updateModel(i){if(this.value=i,this.dataType=="date")this.writeModelValue(this.value),this.onModelChange(this.value);else if(this.dataType=="string")if(this.isSingleSelection())this.onModelChange(this.formatDateTime(this.value));else{let n=null;Array.isArray(this.value)&&(n=this.value.map(o=>this.formatDateTime(o))),this.writeModelValue(n),this.onModelChange(n)}}getFirstDayOfMonthIndex(i,n){let o=new Date;o.setDate(1),o.setMonth(i),o.setFullYear(n);let r=o.getDay()+this.getSundayIndex();return r>=7?r-7:r}getDaysCountInMonth(i,n){return 32-this.daylightSavingAdjust(new Date(n,i,32)).getDate()}getDaysCountInPrevMonth(i,n){let o=this.getPreviousMonthAndYear(i,n);return this.getDaysCountInMonth(o.month,o.year)}getPreviousMonthAndYear(i,n){let o,r;return i===0?(o=11,r=n-1):(o=i-1,r=n),{month:o,year:r}}getNextMonthAndYear(i,n){let o,r;return i===11?(o=0,r=n+1):(o=i+1,r=n),{month:o,year:r}}getSundayIndex(){let i=this.getFirstDateOfWeek();return i>0?7-i:0}isSelected(i){if(this.value){if(this.isSingleSelection())return this.isDateEquals(this.value,i);if(this.isMultipleSelection()){let n=!1;for(let o of this.value)if(n=this.isDateEquals(o,i),n)break;return n}else if(this.isRangeSelection())return this.value[1]?this.isDateEquals(this.value[0],i)||this.isDateEquals(this.value[1],i)||this.isDateBetween(this.value[0],this.value[1],i):this.isDateEquals(this.value[0],i)}else return!1}isComparable(){return this.value!=null&&typeof this.value!="string"}isMonthSelected(i){if(!this.isComparable())return!1;if(this.isMultipleSelection())return this.value.some(n=>n.getMonth()===i&&n.getFullYear()===this.currentYear);if(this.isRangeSelection())if(this.value[1]){let n=new Date(this.currentYear,i,1),o=new Date(this.value[0].getFullYear(),this.value[0].getMonth(),1),r=new Date(this.value[1].getFullYear(),this.value[1].getMonth(),1);return n>=o&&n<=r}else return this.value[0]?.getFullYear()===this.currentYear&&this.value[0]?.getMonth()===i;else return this.value.getMonth()===i&&this.value.getFullYear()===this.currentYear}isMonthDisabled(i,n){let o=n??this.currentYear;for(let r=1;r<this.getDaysCountInMonth(i,o)+1;r++)if(this.isSelectable(r,i,o,!1))return!1;return!0}isYearDisabled(i){return Array(12).fill(0).every((n,o)=>this.isMonthDisabled(o,i))}isYearSelected(i){if(this.isComparable()){let n=this.isRangeSelection()?this.value[0]:this.value;return this.isMultipleSelection()?!1:n.getFullYear()===i}return!1}isDateEquals(i,n){return i&&cl(i)?i.getDate()===n.day&&i.getMonth()===n.month&&i.getFullYear()===n.year:!1}isDateBetween(i,n,o){let r=!1;if(cl(i)&&cl(n)){let a=this.formatDateMetaToDate(o);return i.getTime()<=a.getTime()&&n.getTime()>=a.getTime()}return r}isSingleSelection(){return this.selectionMode==="single"}isRangeSelection(){return this.selectionMode==="range"}isMultipleSelection(){return this.selectionMode==="multiple"}isToday(i,n,o,r){return i.getDate()===n&&i.getMonth()===o&&i.getFullYear()===r}isSelectable(i,n,o,r){let a=!0,s=!0,l=!0,c=!0;return r&&!this.selectOtherMonths?!1:(this.minDate&&(this.minDate.getFullYear()>o||this.minDate.getFullYear()===o&&this.currentView!="year"&&(this.minDate.getMonth()>n||this.minDate.getMonth()===n&&this.minDate.getDate()>i))&&(a=!1),this.maxDate&&(this.maxDate.getFullYear()<o||this.maxDate.getFullYear()===o&&(this.maxDate.getMonth()<n||this.maxDate.getMonth()===n&&this.maxDate.getDate()<i))&&(s=!1),this.disabledDates&&(l=!this.isDateDisabled(i,n,o)),this.disabledDays&&(c=!this.isDayDisabled(i,n,o)),a&&s&&l&&c)}isDateDisabled(i,n,o){if(this.disabledDates){for(let r of this.disabledDates)if(r.getFullYear()===o&&r.getMonth()===n&&r.getDate()===i)return!0}return!1}isDayDisabled(i,n,o){if(this.disabledDays){let a=new Date(o,n,i).getDay();return this.disabledDays.indexOf(a)!==-1}return!1}onInputFocus(i){this.focus=!0,this.showOnFocus&&this.showOverlay(),this.onFocus.emit(i)}onInputClick(){this.showOnFocus&&!this.overlayVisible&&this.showOverlay()}onInputBlur(i){this.focus=!1,this.onBlur.emit(i),this.keepInvalid||this.updateInputfield(),this.onModelTouched()}onButtonClick(i,n=this.inputfieldViewChild?.nativeElement){this.$disabled()||(this.overlayVisible?this.hideOverlay():(n.focus(),this.showOverlay()))}clear(){this.value=null,this.inputFieldValue=null,this.writeModelValue(this.value),this.onModelChange(this.value),this.updateInputfield(),this.onClear.emit()}onOverlayClick(i){this.overlayService.add({originalEvent:i,target:this.el.nativeElement})}getMonthName(i){return this.config.getTranslation("monthNames")[i]}getYear(i){return this.currentView==="month"?this.currentYear:i.year}switchViewButtonDisabled(){return this.numberOfMonths>1||this.$disabled()}onPrevButtonClick(i){this.navigationState={backward:!0,button:!0},this.navBackward(i)}onNextButtonClick(i){this.navigationState={backward:!1,button:!0},this.navForward(i)}onContainerButtonKeydown(i){switch(i.which){case 9:if(this.inline||this.trapFocus(i),this.inline){let n=Lt(this.el?.nativeElement,".p-datepicker-header"),o=i.target;if(this.timeOnly)return;o==n?.children[n?.children?.length-1]&&this.initFocusableCell()}break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,i.preventDefault();break;default:break}}onInputKeydown(i){this.isKeydown=!0,i.keyCode===40&&this.contentViewChild?this.trapFocus(i):i.keyCode===27?this.overlayVisible&&(this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,i.preventDefault()):i.keyCode===13?this.overlayVisible&&(this.overlayVisible=!1,i.preventDefault()):i.keyCode===9&&this.contentViewChild&&(Ch(this.contentViewChild.nativeElement).forEach(n=>n.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(i,n,o){let r=i.currentTarget,a=r.parentElement,s=this.formatDateMetaToDate(n);switch(i.which){case 40:{r.tabIndex="-1";let _=ll(a),S=a.parentElement.nextElementSibling;if(S){let M=S.children[_].children[0];wn(M,"p-disabled")?(this.navigationState={backward:!1},this.navForward(i)):(S.children[_].children[0].tabIndex="0",S.children[_].children[0].focus())}else this.navigationState={backward:!1},this.navForward(i);i.preventDefault();break}case 38:{r.tabIndex="-1";let _=ll(a),S=a.parentElement.previousElementSibling;if(S){let M=S.children[_].children[0];wn(M,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(i)):(M.tabIndex="0",M.focus())}else this.navigationState={backward:!0},this.navBackward(i);i.preventDefault();break}case 37:{r.tabIndex="-1";let _=a.previousElementSibling;if(_){let S=_.children[0];wn(S,"p-disabled")||wn(S.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,o):(S.tabIndex="0",S.focus())}else this.navigateToMonth(!0,o);i.preventDefault();break}case 39:{r.tabIndex="-1";let _=a.nextElementSibling;if(_){let S=_.children[0];wn(S,"p-disabled")?this.navigateToMonth(!1,o):(S.tabIndex="0",S.focus())}else this.navigateToMonth(!1,o);i.preventDefault();break}case 13:case 32:{this.onDateSelect(i,n),i.preventDefault();break}case 27:{this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,i.preventDefault();break}case 9:{this.inline||this.trapFocus(i);break}case 33:{r.tabIndex="-1";let _=new Date(s.getFullYear(),s.getMonth()-1,s.getDate()),S=this.formatDateKey(_);this.navigateToMonth(!0,o,`span[data-date='${S}']:not(.p-disabled):not(.p-ink)`),i.preventDefault();break}case 34:{r.tabIndex="-1";let _=new Date(s.getFullYear(),s.getMonth()+1,s.getDate()),S=this.formatDateKey(_);this.navigateToMonth(!1,o,`span[data-date='${S}']:not(.p-disabled):not(.p-ink)`),i.preventDefault();break}case 36:r.tabIndex="-1";let l=new Date(s.getFullYear(),s.getMonth(),1),c=this.formatDateKey(l),h=Lt(r.offsetParent,`span[data-date='${c}']:not(.p-disabled):not(.p-ink)`);h&&(h.tabIndex="0",h.focus()),i.preventDefault();break;case 35:r.tabIndex="-1";let m=new Date(s.getFullYear(),s.getMonth()+1,0),f=this.formatDateKey(m),b=Lt(r.offsetParent,`span[data-date='${f}']:not(.p-disabled):not(.p-ink)`);m&&(b.tabIndex="0",b.focus()),i.preventDefault();break;default:break}}onMonthCellKeydown(i,n){let o=i.currentTarget;switch(i.which){case 38:case 40:{o.tabIndex="-1";var r=o.parentElement.children,a=ll(o);let s=r[i.which===40?a+3:a-3];s&&(s.tabIndex="0",s.focus()),i.preventDefault();break}case 37:{o.tabIndex="-1";let s=o.previousElementSibling;s?(s.tabIndex="0",s.focus()):(this.navigationState={backward:!0},this.navBackward(i)),i.preventDefault();break}case 39:{o.tabIndex="-1";let s=o.nextElementSibling;s?(s.tabIndex="0",s.focus()):(this.navigationState={backward:!1},this.navForward(i)),i.preventDefault();break}case 13:case 32:{this.onMonthSelect(i,n),i.preventDefault();break}case 27:{this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,i.preventDefault();break}case 9:{this.inline||this.trapFocus(i);break}default:break}}onYearCellKeydown(i,n){let o=i.currentTarget;switch(i.which){case 38:case 40:{o.tabIndex="-1";var r=o.parentElement.children,a=ll(o);let s=r[i.which===40?a+2:a-2];s&&(s.tabIndex="0",s.focus()),i.preventDefault();break}case 37:{o.tabIndex="-1";let s=o.previousElementSibling;s?(s.tabIndex="0",s.focus()):(this.navigationState={backward:!0},this.navBackward(i)),i.preventDefault();break}case 39:{o.tabIndex="-1";let s=o.nextElementSibling;s?(s.tabIndex="0",s.focus()):(this.navigationState={backward:!1},this.navForward(i)),i.preventDefault();break}case 13:case 32:{this.onYearSelect(i,n),i.preventDefault();break}case 27:{this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,i.preventDefault();break}case 9:{this.trapFocus(i);break}default:break}}navigateToMonth(i,n,o){if(i)if(this.numberOfMonths===1||n===0)this.navigationState={backward:!0},this._focusKey=o,this.navBackward(event);else{let r=this.contentViewChild.nativeElement.children[n-1];if(o){let a=Lt(r,o);a.tabIndex="0",a.focus()}else{let a=go(r,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),s=a[a.length-1];s.tabIndex="0",s.focus()}}else if(this.numberOfMonths===1||n===this.numberOfMonths-1)this.navigationState={backward:!1},this._focusKey=o,this.navForward(event);else{let r=this.contentViewChild.nativeElement.children[n+1];if(o){let a=Lt(r,o);a.tabIndex="0",a.focus()}else{let a=Lt(r,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");a.tabIndex="0",a.focus()}}}updateFocus(){let i;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?Lt(this.contentViewChild.nativeElement,".p-datepicker-prev-button").focus():Lt(this.contentViewChild.nativeElement,".p-datepicker-next-button").focus();else{if(this.navigationState.backward){let n;this.currentView==="month"?n=go(this.contentViewChild.nativeElement,".p-datepicker-month-view .p-datepicker-month:not(.p-disabled)"):this.currentView==="year"?n=go(this.contentViewChild.nativeElement,".p-datepicker-year-view .p-datepicker-year:not(.p-disabled)"):n=go(this.contentViewChild.nativeElement,this._focusKey||".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),n&&n.length>0&&(i=n[n.length-1])}else this.currentView==="month"?i=Lt(this.contentViewChild.nativeElement,".p-datepicker-month-view .p-datepicker-month:not(.p-disabled)"):this.currentView==="year"?i=Lt(this.contentViewChild.nativeElement,".p-datepicker-year-view .p-datepicker-year:not(.p-disabled)"):i=Lt(this.contentViewChild.nativeElement,this._focusKey||".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");i&&(i.tabIndex="0",i.focus())}this.navigationState=null,this._focusKey=null}else this.initFocusableCell()}initFocusableCell(){let i=this.contentViewChild?.nativeElement,n;if(this.currentView==="month"){let o=go(i,".p-datepicker-month-view .p-datepicker-month:not(.p-disabled)"),r=Lt(i,".p-datepicker-month-view .p-datepicker-month.p-highlight");o.forEach(a=>a.tabIndex=-1),n=r||o[0],o.length===0&&go(i,'.p-datepicker-month-view .p-datepicker-month.p-disabled[tabindex = "0"]').forEach(s=>s.tabIndex=-1)}else if(this.currentView==="year"){let o=go(i,".p-datepicker-year-view .p-datepicker-year:not(.p-disabled)"),r=Lt(i,".p-datepicker-year-view .p-datepicker-year.p-highlight");o.forEach(a=>a.tabIndex=-1),n=r||o[0],o.length===0&&go(i,'.p-datepicker-year-view .p-datepicker-year.p-disabled[tabindex = "0"]').forEach(s=>s.tabIndex=-1)}else if(n=Lt(i,"span.p-highlight"),!n){let o=Lt(i,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");o?n=o:n=Lt(i,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}n&&(n.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{this.$disabled()||n.focus()},1),this.preventFocus=!1)}trapFocus(i){let n=Ch(this.contentViewChild.nativeElement);if(n&&n.length>0)if(!n[0].ownerDocument.activeElement)n[0].focus();else{let o=n.indexOf(n[0].ownerDocument.activeElement);if(i.shiftKey)if(o==-1||o===0)if(this.focusTrap)n[n.length-1].focus();else{if(o===-1)return this.hideOverlay();if(o===0)return}else n[o-1].focus();else if(o==-1)if(this.timeOnly)n[0].focus();else{let r=0;for(let a=0;a<n.length;a++)n[a].tagName==="SPAN"&&(r=a);n[r].focus()}else if(o===n.length-1){if(!this.focusTrap&&o!=-1)return this.hideOverlay();n[0].focus()}else n[o+1].focus()}i.preventDefault()}onMonthDropdownChange(i){this.currentMonth=parseInt(i),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}onYearDropdownChange(i){this.currentYear=parseInt(i),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}convertTo24Hour(i,n){return this.hourFormat=="12"?i===12?n?12:0:n?i+12:i:i}constrainTime(i,n,o,r){let a=[i,n,o],s=!1,l=this.value,c=this.convertTo24Hour(i,r),h=this.isRangeSelection(),m=this.isMultipleSelection();(h||m)&&(this.value||(this.value=[new Date,new Date]),h&&(l=this.value[1]||this.value[0]),m&&(l=this.value[this.value.length-1]));let b=l?l.toDateString():null,_=this.minDate&&b&&this.minDate.toDateString()===b,S=this.maxDate&&b&&this.maxDate.toDateString()===b;switch(_&&(s=this.minDate.getHours()>=12),!0){case(_&&s&&this.minDate.getHours()===12&&this.minDate.getHours()>c):a[0]=11;case(_&&this.minDate.getHours()===c&&this.minDate.getMinutes()>n):a[1]=this.minDate.getMinutes();case(_&&this.minDate.getHours()===c&&this.minDate.getMinutes()===n&&this.minDate.getSeconds()>o):a[2]=this.minDate.getSeconds();break;case(_&&!s&&this.minDate.getHours()-1===c&&this.minDate.getHours()>c):a[0]=11,this.pm=!0;case(_&&this.minDate.getHours()===c&&this.minDate.getMinutes()>n):a[1]=this.minDate.getMinutes();case(_&&this.minDate.getHours()===c&&this.minDate.getMinutes()===n&&this.minDate.getSeconds()>o):a[2]=this.minDate.getSeconds();break;case(_&&s&&this.minDate.getHours()>c&&c!==12):this.setCurrentHourPM(this.minDate.getHours()),a[0]=this.currentHour||0;case(_&&this.minDate.getHours()===c&&this.minDate.getMinutes()>n):a[1]=this.minDate.getMinutes();case(_&&this.minDate.getHours()===c&&this.minDate.getMinutes()===n&&this.minDate.getSeconds()>o):a[2]=this.minDate.getSeconds();break;case(_&&this.minDate.getHours()>c):a[0]=this.minDate.getHours();case(_&&this.minDate.getHours()===c&&this.minDate.getMinutes()>n):a[1]=this.minDate.getMinutes();case(_&&this.minDate.getHours()===c&&this.minDate.getMinutes()===n&&this.minDate.getSeconds()>o):a[2]=this.minDate.getSeconds();break;case(S&&this.maxDate.getHours()<c):a[0]=this.maxDate.getHours();case(S&&this.maxDate.getHours()===c&&this.maxDate.getMinutes()<n):a[1]=this.maxDate.getMinutes();case(S&&this.maxDate.getHours()===c&&this.maxDate.getMinutes()===n&&this.maxDate.getSeconds()<o):a[2]=this.maxDate.getSeconds();break}return a}incrementHour(i){let n=this.currentHour??0,o=(this.currentHour??0)+this.stepHour,r=this.pm;this.hourFormat=="24"?o=o>=24?o-24:o:this.hourFormat=="12"&&(n<12&&o>11&&(r=!this.pm),o=o>=13?o-12:o),this.toggleAMPMIfNotMinDate(r),[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(o,this.currentMinute,this.currentSecond,r),i.preventDefault()}toggleAMPMIfNotMinDate(i){let n=this.value,o=n?n.toDateString():null;this.minDate&&o&&this.minDate.toDateString()===o&&this.minDate.getHours()>=12?this.pm=!0:this.pm=i}onTimePickerElementMouseDown(i,n,o){this.$disabled()||(this.repeat(i,null,n,o),i.preventDefault())}onTimePickerElementMouseUp(i){this.$disabled()||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.$disabled()&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(i,n,o,r){let a=n||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(i,100,o,r),this.cd.markForCheck()},a),o){case 0:r===1?this.incrementHour(i):this.decrementHour(i);break;case 1:r===1?this.incrementMinute(i):this.decrementMinute(i);break;case 2:r===1?this.incrementSecond(i):this.decrementSecond(i);break}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(i){let n=(this.currentHour??0)-this.stepHour,o=this.pm;this.hourFormat=="24"?n=n<0?24+n:n:this.hourFormat=="12"&&(this.currentHour===12&&(o=!this.pm),n=n<=0?12+n:n),this.toggleAMPMIfNotMinDate(o),[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(n,this.currentMinute,this.currentSecond,o),i.preventDefault()}incrementMinute(i){let n=(this.currentMinute??0)+this.stepMinute;n=n>59?n-60:n,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour||0,n,this.currentSecond,this.pm),i.preventDefault()}decrementMinute(i){let n=(this.currentMinute??0)-this.stepMinute;n=n<0?60+n:n,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour||0,n,this.currentSecond||0,this.pm),i.preventDefault()}incrementSecond(i){let n=this.currentSecond+this.stepSecond;n=n>59?n-60:n,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour||0,this.currentMinute||0,n,this.pm),i.preventDefault()}decrementSecond(i){let n=this.currentSecond-this.stepSecond;n=n<0?60+n:n,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour||0,this.currentMinute||0,n,this.pm),i.preventDefault()}updateTime(){let i=this.value;this.isRangeSelection()&&(i=this.value[1]||this.value[0]),this.isMultipleSelection()&&(i=this.value[this.value.length-1]),i=i?new Date(i.getTime()):new Date,this.hourFormat=="12"?this.currentHour===12?i.setHours(this.pm?12:0):i.setHours(this.pm?this.currentHour+12:this.currentHour):i.setHours(this.currentHour),i.setMinutes(this.currentMinute),i.setSeconds(this.currentSecond),this.isRangeSelection()&&(this.value[1]?i=[this.value[0],i]:i=[i,null]),this.isMultipleSelection()&&(i=[...this.value.slice(0,-1),i]),this.updateModel(i),this.onSelect.emit(i),this.updateInputfield()}toggleAMPM(i){let n=!this.pm;this.pm=n,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour||0,this.currentMinute||0,this.currentSecond||0,n),this.updateTime(),i.preventDefault()}onUserInput(i){if(!this.isKeydown)return;this.isKeydown=!1;let n=i.target.value;try{let o=this.parseValueFromString(n);this.isValidSelection(o)?(this.updateModel(o),this.updateUI()):this.keepInvalid&&this.updateModel(o)}catch{let r=this.keepInvalid?n:null;this.updateModel(r)}this.onInput.emit(i)}isValidSelection(i){if(this.isSingleSelection())return this.isSelectable(i.getDate(),i.getMonth(),i.getFullYear(),!1);let n=i.every(o=>this.isSelectable(o.getDate(),o.getMonth(),o.getFullYear(),!1));return n&&this.isRangeSelection()&&(n=i.length===1||i.length>1&&i[1]>=i[0]),n}parseValueFromString(i){if(!i||i.trim().length===0)return null;let n;if(this.isSingleSelection())n=this.parseDateTime(i);else if(this.isMultipleSelection()){let o=i.split(this.multipleSeparator);n=[];for(let r of o)n.push(this.parseDateTime(r.trim()))}else if(this.isRangeSelection()){let o=i.split(" "+this.rangeSeparator+" ");n=[];for(let r=0;r<o.length;r++)n[r]=this.parseDateTime(o[r].trim())}return n}parseDateTime(i){let n,o=i.split(" ");if(this.timeOnly)n=new Date,this.populateTime(n,o[0],o[1]);else{let r=this.getDateFormat();if(this.showTime){let a=this.hourFormat=="12"?o.pop():null,s=o.pop();n=this.parseDate(o.join(" "),r),this.populateTime(n,s,a)}else n=this.parseDate(i,r)}return n}populateTime(i,n,o){if(this.hourFormat=="12"&&!o)throw"Invalid Time";this.pm=o==="PM"||o==="pm";let r=this.parseTime(n);i.setHours(r.hour),i.setMinutes(r.minute),i.setSeconds(r.second)}isValidDate(i){return cl(i)&&zv(i)}updateUI(){let i=this.value;Array.isArray(i)&&(i=i.length===2?i[1]:i[0]);let n=this.defaultDate&&this.isValidDate(this.defaultDate)&&!this.value?this.defaultDate:i&&this.isValidDate(i)?i:new Date;this.currentMonth=n.getMonth(),this.currentYear=n.getFullYear(),this.createMonths(this.currentMonth,this.currentYear),(this.showTime||this.timeOnly)&&(this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=this.showSeconds?n.getSeconds():0)}showOverlay(){this.overlayVisible||(this.updateUI(),this.touchUI||(this.preventFocus=!0),this.overlayVisible=!0)}hideOverlay(){this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,this.clearTimePickerTimer(),this.touchUI&&this.disableModality(),this.cd.markForCheck()}toggle(){this.inline||(this.overlayVisible?this.hideOverlay():(this.showOverlay(),this.inputfieldViewChild?.nativeElement.focus()))}onOverlayAnimationStart(i){switch(i.toState){case"visible":case"visibleTouchUI":if(!this.inl
468ine){this.overlay=i.element,this.$attrSelector&&this.overlay.setAttribute(this.$attrSelector,"");let n=this.inline?void 0:{position:"absolute",top:"0"};Ov(this.overlay,n||{}),this.appendOverlay(),this.updateFocus(),this.autoZIndex&&(this.touchUI?ul.set("modal",this.overlay,this.baseZIndex||this.config.zIndex.modal):ul.set("overlay",this.overlay,this.baseZIndex||this.config.zIndex.overlay)),this.alignOverlay(),this.onShow.emit(i)}break;case"void":this.onOverlayHide(),this.onClose.emit(i);break}}onOverlayAnimationDone(i){switch(i.toState){case"visible":case"visibleTouchUI":this.inline||(this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.autoZIndex&&ul.clear(i.element);break}}appendOverlay(){this.$appendTo()&&this.$appendTo()!=="self"&&(this.$appendTo()==="body"?this.document.body.appendChild(this.overlay):Lv(this.$appendTo(),this.overlay))}restoreOverlayAppend(){this.overlay&&this.$appendTo()!=="self"&&this.el.nativeElement.appendChild(this.overlay)}alignOverlay(){this.touchUI?this.enableModality(this.overlay):this.overlay&&(this.view==="date"?(this.overlay.style.width||(this.overlay.style.width=sl(this.overlay)+"px"),this.overlay.style.minWidth||(this.overlay.style.minWidth=sl(this.inputfieldViewChild?.nativeElement)+"px")):this.overlay.style.width||(this.overlay.style.width=sl(this.inputfieldViewChild?.nativeElement)+"px"),this.$appendTo()&&this.$appendTo()!=="self"?Fv(this.overlay,this.inputfieldViewChild?.nativeElement):Av(this.overlay,this.inputfieldViewChild?.nativeElement))}enableModality(i){!this.mask&&this.touchUI&&(this.mask=this.renderer.createElement("div"),this.renderer.setStyle(this.mask,"zIndex",String(parseInt(i.style.zIndex)-1)),vh(this.mask,"p-overlay-mask p-datepicker-mask p-datepicker-mask-scrollblocker p-overlay-mask p-overlay-mask-enter"),this.maskClickListener=this.renderer.listen(this.mask,"click",o=>{this.disableModality(),this.overlayVisible=!1}),this.renderer.appendChild(this.document.body,this.mask),jv())}disableModality(){this.mask&&(vh(this.mask,"p-overlay-mask-leave"),this.animationEndListener||(this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyMask.bind(this))))}destroyMask(){if(!this.mask)return;this.renderer.removeChild(this.document.body,this.mask);let i=this.document.body.children,n;for(let o=0;o<i.length;o++){let r=i[o];if(wn(r,"p-datepicker-mask-scrollblocker")){n=!0;break}}n||Wv(),this.unbindAnimationEndListener(),this.unbindMaskClickListener(),this.mask=null}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}unbindAnimationEndListener(){this.animationEndListener&&this.mask&&(this.animationEndListener(),this.animationEndListener=null)}getDateFormat(){return this.dateFormat||this.getTranslation("dateFormat")}getFirstDateOfWeek(){return this._firstDayOfWeek||this.getTranslation(xn.FIRST_DAY_OF_WEEK)}formatDate(i,n){if(!i)return"";let o,r=h=>{let m=o+1<n.length&&n.charAt(o+1)===h;return m&&o++,m},a=(h,m,f)=>{let b=""+m;if(r(h))for(;b.length<f;)b="0"+b;return b},s=(h,m,f,b)=>r(h)?b[m]:f[m],l="",c=!1;if(i)for(o=0;o<n.length;o++)if(c)n.charAt(o)==="'"&&!r("'")?c=!1:l+=n.charAt(o);else switch(n.charAt(o)){case"d":l+=a("d",i.getDate(),2);break;case"D":l+=s("D",i.getDay(),this.getTranslation(xn.DAY_NAMES_SHORT),this.getTranslation(xn.DAY_NAMES));break;case"o":l+=a("o",Math.round((new Date(i.getFullYear(),i.getMonth(),i.getDate()).getTime()-new Date(i.getFullYear(),0,0).getTime())/864e5),3);break;case"m":l+=a("m",i.getMonth()+1,2);break;case"M":l+=s("M",i.getMonth(),this.getTranslation(xn.MONTH_NAMES_SHORT),this.getTranslation(xn.MONTH_NAMES));break;case"y":l+=r("y")?i.getFullYear():(i.getFullYear()%100<10?"0":"")+i.getFullYear()%100;break;case"@":l+=i.getTime();break;case"!":l+=i.getTime()*1e4+this.ticksTo1970;break;case"'":r("'")?l+="'":c=!0;break;default:l+=n.charAt(o)}return l}formatTime(i){if(!i)return"";let n="",o=i.getHours(),r=i.getMinutes(),a=i.getSeconds();return this.hourFormat=="12"&&o>11&&o!=12&&(o-=12),this.hourFormat=="12"?n+=o===0?12:o<10?"0"+o:o:n+=o<10?"0"+o:o,n+=":",n+=r<10?"0"+r:r,this.showSeconds&&(n+=":",n+=a<10?"0"+a:a),this.hourFormat=="12"&&(n+=i.getHours()>11?" PM":" AM"),n}parseTime(i){let n=i.split(":"),o=this.showSeconds?3:2;if(n.length!==o)throw"Invalid time";let r=parseInt(n[0]),a=parseInt(n[1]),s=this.showSeconds?parseInt(n[2]):null;if(isNaN(r)||isNaN(a)||r>23||a>59||this.hourFormat=="12"&&r>12||this.showSeconds&&(isNaN(s)||s>59))throw"Invalid time";return this.hourFormat=="12"&&(r!==12&&this.pm?r+=12:!this.pm&&r===12&&(r-=12)),{hour:r,minute:a,second:s}}
vendor: 10,511 bytes, lines 468-480
468parseDate(i,n){if(n==null||i==null)throw"Invalid arguments";if(i=typeof i=="object"?i.toString():i+"",i==="")return null;let o,r,a,s=0,l=typeof this.shortYearCutoff!="string"?this.shortYearCutoff:new Date().getFullYear()%100+parseInt(this.shortYearCutoff,10),c=-1,h=-1,m=-1,f=-1,b=!1,_,S=F=>{let W=o+1<n.length&&n.charAt(o+1)===F;return W&&o++,W},M=F=>{let W=S(F),re=F==="@"?14:F==="!"?20:F==="y"&&W?4:F==="o"?3:2,Z=F==="y"?re:1,q=new RegExp("^\\d{"+Z+","+re+"}"),ce=i.substring(s).match(q);if(!ce)throw"Missing number at position "+s;return s+=ce[0].length,parseInt(ce[0],10)},D=(F,W,re)=>{let Z=-1,q=S(F)?re:W,ce=[];for(let _e=0;_e<q.length;_e++)ce.push([_e,q[_e]]);ce.sort((_e,Et)=>-(_e[1].length-Et[1].length));for(let _e=0;_e<ce.length;_e++){let Et=ce[_e][1];if(i.substr(s,Et.length).toLowerCase()===Et.toLowerCase()){Z=ce[_e][0],s+=Et.length;break}}if(Z!==-1)return Z+1;throw"Unknown name at position "+s},I=()=>{if(i.charAt(s)!==n.charAt(o))throw"Unexpected literal at position "+s;s++};for(this.view==="month"&&(m=1),o=0;o<n.length;o++)if(b)n.charAt(o)==="'"&&!S("'")?b=!1:I();else switch(n.charAt(o)){case"d":m=M("d");break;case"D":D("D",this.getTranslation(xn.DAY_NAMES_SHORT),this.getTranslation(xn.DAY_NAMES));break;case"o":f=M("o");break;case"m":h=M("m");break;case"M":h=D("M",this.getTranslation(xn.MONTH_NAMES_SHORT),this.getTranslation(xn.MONTH_NAMES));break;case"y":c=M("y");break;case"@":_=new Date(M("@")),c=_.getFullYear(),h=_.getMonth()+1,m=_.getDate();break;case"!":_=new Date((M("!")-this.ticksTo1970)/1e4),c=_.getFullYear(),h=_.getMonth()+1,m=_.getDate();break;case"'":S("'")?I():b=!0;break;default:I()}if(s<i.length&&(a=i.substr(s),!/^\s+/.test(a)))throw"Extra/unparsed characters found in date: "+a;if(c===-1?c=new Date().getFullYear():c<100&&(c+=new Date().getFullYear()-new Date().getFullYear()%100+(c<=l?0:-100)),f>-1){h=1,m=f;do{if(r=this.getDaysCountInMonth(c,h-1),m<=r)break;h++,m-=r}while(!0)}if(this.view==="year"&&(h=h===-1?1:h,m=m===-1?1:m),_=this.daylightSavingAdjust(new Date(c,h-1,m)),_.getFullYear()!==c||_.getMonth()+1!==h||_.getDate()!==m)throw"Invalid date";return _}daylightSavingAdjust(i){return i?(i.setHours(i.getHours()>12?i.getHours()+2:0),i):null}isValidDateForTimeConstraints(i){return this.keepInvalid?!0:(!this.minDate||i>=this.minDate)&&(!this.maxDate||i<=this.maxDate)}onTodayButtonClick(i){let n=new Date,o={day:n.getDate(),month:n.getMonth(),year:n.getFullYear(),otherMonth:n.getMonth()!==this.currentMonth||n.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.createMonths(n.getMonth(),n.getFullYear()),this.onDateSelect(i,o),this.onTodayClick.emit(n)}onClearButtonClick(i){this.updateModel(null),this.updateInputfield(),this.hideOverlay(),this.onClearClick.emit(i)}createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",bh(this.responsiveStyleElement,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.body,this.responsiveStyleElement));let i="";if(this.responsiveOptions){let n=[...this.responsiveOptions].filter(o=>!!(o.breakpoint&&o.numMonths)).sort((o,r)=>-1*o.breakpoint.localeCompare(r.breakpoint,void 0,{numeric:!0}));for(let o=0;o<n.length;o++){let{breakpoint:r,numMonths:a}=n[o],s=` 469 .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${a}) .p-datepicker-next { 470 display: inline-flex !important; 471 } 472 `;for(let l=a;l<this.numberOfMonths;l++)s+=` 473 .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${l+1}) { 474 display: none !important; 475 } 476 `;i+=` 477 @media screen and (max-width: ${r}) { 478 ${s} 479 } 480 `}}this.responsiveStyleElement.innerHTML=i,bh(this.responsiveStyleElement,"nonce",this.config?.csp()?.nonce)}}destroyResponsiveStyleElement(){this.responsiveStyleElement&&(this.responsiveStyleElement.remove(),this.responsiveStyleElement=null)}bindDocumentClickListener(){this.documentClickListener||this.zone.runOutsideAngular(()=>{let i=this.el?this.el.nativeElement.ownerDocument:this.document;this.documentClickListener=this.renderer.listen(i,"mousedown",n=>{this.isOutsideClicked(n)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(n),this.cd.markForCheck()})})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){!this.documentResizeListener&&!this.touchUI&&(this.documentResizeListener=this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new $v(this.el?.nativeElement,()=>{this.overlayVisible&&this.hideOverlay()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}isOutsideClicked(i){return!(this.el.nativeElement.isSameNode(i.target)||this.isNavIconClicked(i)||this.el.nativeElement.contains(i.target)||this.overlay&&this.overlay.contains(i.target))}isNavIconClicked(i){return wn(i.target,"p-datepicker-prev-button")||wn(i.target,"p-datepicker-prev-icon")||wn(i.target,"p-datepicker-next-button")||wn(i.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!Nv()&&this.hideOverlay()}onOverlayHide(){this.currentView=this.view,this.mask&&this.destroyMask(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}writeControlValue(i){if(this.value=i,this.value&&typeof this.value=="string")try{this.value=this.parseValueFromString(this.value)}catch{this.keepInvalid&&(this.value=i)}this.updateInputfield(),this.updateUI(),this.cd.markForCheck()}onDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.overlay&&this.autoZIndex&&ul.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}static \u0275fac=function(n){return new(n||e)(O(Ea),O(Vv))};static \u0275cmp=U({type:e,selectors:[["p-datePicker"],["p-datepicker"],["p-date-picker"]],contentQueries:function(n,o,r){if(n&1&&(pi(r,WE,4),pi(r,$E,4),pi(r,qE,4),pi(r,YE,4),pi(r,KE,4),pi(r,QE,4),pi(r,JE,4),pi(r,ZE,4),pi(r,XE,4),pi(r,eM,4),pi(r,tM,4),pi(r,iM,4),pi(r,nM,4),pi(r,Hv,4)),n&2){let a;Me(a=Te())&&(o.dateTemplate=a.first),Me(a=Te())&&(o.headerTemplate=a.first),Me(a=Te())&&(o.footerTemplate=a.first),Me(a=Te())&&(o.disabledDateTemplate=a.first),Me(a=Te())&&(o.decadeTemplate=a.first),Me(a=Te())&&(o.previousIconTemplate=a.first),Me(a=Te())&&(o.nextIconTemplate=a.first),Me(a=Te())&&(o.triggerIconTemplate=a.first),Me(a=Te())&&(o.clearIconTemplate=a.first),Me(a=Te())&&(o.decrementIconTemplate=a.first),Me(a=Te())&&(o.incrementIconTemplate=a.first),Me(a=Te())&&(o.inputIconTemplate=a.first),Me(a=Te())&&(o.buttonBarTemplate=a.first),Me(a=Te())&&(o.templates=a)}},viewQuery:function(n,o){if(n&1&&(Ue(oM,5),Ue(rM,5)),n&2){let r;Me(r=Te())&&(o.inputfieldViewChild=r.first),Me(r=Te())&&(o.content=r.first)}},hostVars:4,hostBindings:function(n,o){n&2&&(lh(o.sx("root")),pe(o.cn(o.cx("root"),o.styleClass)))},inputs:{iconDisplay:"iconDisplay",styleClass:"styleClass",inputStyle:"inputStyle",inputId:"inputId",inputStyleClass:"inputStyleClass",placeholder:"placeholder",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",iconAriaLabel:"iconAriaLabel",dateFormat:"dateFormat",multipleSeparator:"multipleSeparator",rangeSeparator:"rangeSeparator",inline:[2,"inline","inline",rt],showOtherMonths:[2,"showOtherMonths","showOtherMonths",rt],selectOtherMonths:[2,"selectOtherMonths","selectOtherMonths",rt],showIcon:[2,"showIcon","showIcon",rt],icon:"icon",readonlyInput:[2,"readonlyInput","readonlyInput",rt],shortYearCutoff:"shortYearCutoff",hourFormat:"hourFormat",timeOnly:[2,"timeOnly","timeOnly",rt],stepHour:[2,"stepHour","stepHour",Sr],stepMinute:[2,"stepMinute","stepMinute",Sr],stepSecond:[2,"stepSecond","stepSecond",Sr],showSeconds:[2,"showSeconds","showSeconds",rt],showOnFocus:[2,"showOnFocus","showOnFocus",rt],showWeek:[2,"showWeek","showWeek",rt],startWeekFromFirstDayOfYear:"startWeekFromFirstDayOfYear",showClear:[2,"showClear","showClear",rt],dataType:"dataType",selectionMode:"selectionMode",maxDateCount:[2,"maxDateCount","maxDateCount",Sr],showButtonBar:[2,"showButtonBar","showButtonBar",rt],todayButtonStyleClass:"todayButtonStyleClass",clearButtonStyleClass:"clearButtonStyleClass",autofocus:[2,"autofocus","autofocus",rt],autoZIndex:[2,"autoZIndex","autoZIndex",rt],baseZIndex:[2,"baseZIndex","baseZIndex",Sr],panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",keepInvalid:[2,"keepInvalid","keepInvalid",rt],hideOnDateTimeSelect:[2,"hideOnDateTimeSelect","hideOnDateTimeSelect",rt],touchUI:[2,"touchUI","touchUI",rt],timeSeparator:"timeSeparator",focusTrap:[2,"focusTrap","focusTrap",rt],showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",tabindex:[2,"tabindex","tabindex",Sr],minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabledDays:"disabledDays",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",view:"view",defaultDate:"defaultDate",appendTo:[1,"appendTo"]},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[St([lI,gC,{provide:mC,useExisting:e},{provide:Uv,useExisting:e}]),pv([dl]),qt],ngContentSelectors:sM,decls:2,vars:2,consts:[["inputfield",""],["contentWrapper",""],["icon",""],[3,"ngIf"],[3,"ngStyle","class","pBind","click",4,"ngIf"],["pInputText","","type","text","role","combobox","aria-autocomplete","none","aria-haspopup","dialog","autocomplete","off",3,"focus","keydown","click","blur","input","pSize","value","ngStyle","pAutoFocus","variant","fluid","invali
480d","pt"],[4,"ngIf"],["type","button","aria-haspopup","dialog","tabindex","0",3,"class","disabled","pBind","click",4,"ngIf"],["data-p-icon","times",3,"class","pBind","click",4,"ngIf"],[3,"class","pBind","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[3,"click","pBind"],[4,"ngTemplateOutlet"],["type","button","aria-haspopup","dialog","tabindex","0",3,"click","disabled","pBind"],[3,"ngClass","pBind",4,"ngIf"],[3,"ngClass","pBind"],["data-p-icon","calendar",3,"pBind",4,"ngIf"],["data-p-icon","calendar",3,"pBind"],[3,"pBind"],["data-p-icon","calendar",3,"class","pBind","click",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","calendar",3,"click","pBind"],[3,"click","ngStyle","pBind"],[3,"class","pBind",4,"ngIf"],[3,"class","pBind",4,"ngFor","ngForOf"],["rounded","","variant","text","severity","secondary","type","button",3,"keydown","onClick","styleClass","ngStyle","ariaLabel","pt"],["type","button","pRipple","",3,"class","pBind","click","keydown",4,"ngIf"],["rounded","","variant","text","severity","secondary",3,"keydown","onClick","styleClass","ngStyle","ariaLabel","pt"],["role","grid",3,"class","pBind",4,"ngIf"],["data-p-icon","chevron-left",4,"ngIf"],["data-p-icon","chevron-left"],["type","button","pRipple","",3,"click","keydown","pBind"],["data-p-icon","chevron-right",4,"ngIf"],["data-p-icon","chevron-right"],["role","grid",3,"pBind"],["scope","col",3,"class","pBind",4,"ngFor","ngForOf"],[3,"pBind",4,"ngFor","ngForOf"],["scope","col",3,"pBind"],["draggable","false","pRipple","",3,"click","keydown","ngClass","pBind"],["class","p-hidden-accessible","aria-live","polite",4,"ngIf"],["aria-live","polite",1,"p-hidden-accessible"],["pRipple","",3,"class","pBind","click","keydown",4,"ngFor","ngForOf"],["pRipple","",3,"click","keydown","pBind"],["rounded","","variant","text","severity","secondary",3,"keydown","keydown.enter","keydown.space","mousedown","mouseup","keyup.enter","keyup.space","mouseleave","styleClass","pt"],[1,"p-datepicker-separator",3,"pBind"],["data-p-icon","chevron-up",3,"pBind",4,"ngIf"],["data-p-icon","chevron-up",3,"pBind"],["data-p-icon","chevron-down",3,"pBind",4,"ngIf"],["data-p-icon","chevron-down",3,"pBind"],["text","","rounded","","severity","secondary",3,"keydown","onClick","keydown.enter","styleClass","pt"],["text","","rounded","","severity","secondary",3,"keydown","click","keydown.enter","styleClass","pt"],["size","small","severity","secondary","variant","text","size","small",3,"keydown","onClick","styleClass","label","ngClass","pt"]],template:function(n,o){n&1&&(en(aM),V(0,IM,5,27,"ng-template",3)(1,oI,9,20,"div",4)),n&2&&(v("ngIf",!o.inline),d(),v("ngIf",o.inline||o.overlayVisible))},dependencies:[ge,Ce,lo,Ni,Ta,kr,qc,Zv,lC,cC,dC,sC,Jv,aC,qv,eC,$c,Kv,dl],encapsulation:2,data:{animation:[jo("overlayAnimation",[co("visibleTouchUI",Pt({transform:"translate(-50%,-50%)",opacity:1})),fi("void => visible",[Pt({opacity:0,transform:"scaleY(0.8)"}),mi("{{showTransitionParams}}",Pt({opacity:1,transform:"*"}))]),fi("visible => void",[mi("{{hideTransitionParams}}",Pt({opacity:0}))]),fi("void => visibleTouchUI",[Pt({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),mi("{{showTransitionParams}}")]),fi("visibleTouchUI => void",[mi("{{hideTransitionParams}}",Pt({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0})}return e})(),vC=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=ie({type:e});static \u0275inj=te({imports:[Da,$c,$c]})}return e})();var yh=new ka("JWT_OPTIONS"),Tr=(()=>{class e{constructor(i=null){this.tokenGetter=i&&i.tokenGetter||function(){}}urlBase64Decode(i){let n=i.replace(/-/g,"+").replace(/_/g,"/");switch(n.length%4){case 0:break;case 2:{n+="==";break}case 3:{n+="=";break}default:throw new Error("Illegal base64url string!")}return this.b64DecodeUnicode(n)}b64decode(i){let n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="";if(i=String(i).replace(/=+$/,""),i.length%4===1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(let r=0,a,s,l=0;s=i.charAt(l++);~s&&(a=r%4?a*64+s:s,r++%4)?o+=String.fromCharCode(255&a>>(-2*r&6)):0)s=n.indexOf(s);return o}b64DecodeUnicode(i){return decodeURIComponent(Array.prototype.map.call(this.b64decode(i),n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join(""))}decodeToken(i=this.tokenGetter()){return i instanceof Promise?i.then(n=>this._decodeToken(n)):this._decodeToken(i)}_decodeToken(i){if(!i||i==="")return null;let n=i.split(".");if(n.length!==3)throw new Error("The inspected token doesn't appear to be a JWT. Check to make sure it has three parts and see https://jwt.io for more.");let o=this.urlBase64Decode(n[1]);if(!o)throw new Error("Cannot decode the token.");return JSON.parse(o)}getTokenExpirationDate(i=this.tokenGetter()){return i instanceof Promise?i.then(n=>this._getTokenExpirationDate(n)):this._getTokenExpirationDate(i)}_getTokenExpirationDate(i){let n;if(n=this.decodeToken(i),!n||!n.hasOwnProperty("exp"))return null;let o=new Date(0);
480return o.setUTCSeconds(n.exp),o}isTokenExpired(i=this.tokenGetter(),n){return i instanceof Promise?i.then(o=>this._isTokenExpired(o,n)):this._isTokenExpired(i,n)}_isTokenExpired(i,n){if(!i||i==="")return!0;let o=this.getTokenExpirationDate(i);return n=n||0,o===null?!1:!(o.valueOf()>new Date().valueOf()+n*1e3)}getAuthScheme(i,n){return typeof i=="function"?i(n):i}}return e.\u0275fac=function(i){return new(i||e)(Y(yh))},e.\u0275prov=ve({token:e,factory:e.\u0275fac}),e})(),CC=e=>e instanceof Promise?av(()=>e):Q(e),dI=(()=>{class e{constructor(i,n,o){this.jwtHelper=n,this.document=o,this.standardPorts=["80","443"],this.tokenGetter=i.tokenGetter,this.headerName=i.headerName||"Authorization",this.authScheme=i.authScheme||i.authScheme===""?i.authScheme:"Bearer ",this.allowedDomains=i.allowedDomains||[],this.disallowedRoutes=i.disallowedRoutes||[],this.throwNoTokenError=i.throwNoTokenError||!1,this.skipWhenExpired=i.skipWhenExpired}isAllowedDomain(i){let n=new URL(i.url,this.document.location.origin);if(n.host===this.document.location.host)return!0;let o=`${n.hostname}${n.port&&!this.standardPorts.includes(n.port)?":"+n.port:""}`;return this.allowedDomains.findIndex(r=>typeof r=="string"?r===o:r instanceof RegExp?r.test(o):!1)>-1}isDisallowedRoute(i){let n=new URL(i.url,this.document.location.origin);return this.disallowedRoutes.findIndex(o=>{if(typeof o=="string"){let r=new URL(o,this.document.location.origin);return r.hostname===n.hostname&&r.pathname===n.pathname}return o instanceof RegExp?o.test(i.url):!1})>-1}handleInterception(i,n,o){let r=this.jwtHelper.getAuthScheme(this.authScheme,n);if(!i&&this.throwNoTokenError)throw new Error("Could not get token from tokenGetter function.");let a=Q(!1);return this.skipWhenExpired&&(a=i?CC(this.jwtHelper.isTokenExpired(i)):Q(!0)),i?a.pipe(J(s=>s&&this.skipWhenExpired?n.clone():n.clone({setHeaders:{[this.headerName]:`${r}${i}`}})),_r(s=>o.handle(s))):o.handle(n)}intercept(i,n){if(!this.isAllowedDomain(i)||this.isDisallowedRoute(i))return n.handle(i);let o=this.tokenGetter(i);return CC(o).pipe(_r(r=>this.handleInterception(r,i,n)))}}return e.\u0275fac=function(i){return new(i||e)(Y(yh),Y(Tr),Y(ci))},e.\u0275prov=ve({token:e,factory:e.\u0275fac}),e})(),mce=(()=>{class e{constructor(i){if(i)throw new Error("JwtModule is already loaded. It should only be imported in your application's main module.")}static forRoot(i){return{ngModule:e,providers:[{provide:kv,useClass:dI,multi:!0},i.jwtOptionsProvider||{provide:yh,useValue:i.config},Tr]}}}return e.\u0275fac=function(i){return new(i||e)(Y(e,12))},e.\u0275mod=ie({type:e}),e.\u0275inj=te({}),e})();var Ir=(()=>{let t=class t{constructor(){this.document=xe(ci),this.platformId=xe(gt),this.request=xe(_v,{optional:!0}),this.documentIsAccessible=Ct(this.platformId)}static getCookieRegExp(n){let o=n.replace(/([[\]{}()|=;+?,.*^$\\])/gi,"\\$1");return new RegExp("(?:^"+o+"|;\\s*"+o+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(n){try{return decodeURIComponent(n)}catch{return n}}check(n){return n=encodeURIComponent(n),t.getCookieRegExp(n).test(this.documentIsAccessible?this.document.cookie:this.getRequestCookies())}get(n){if(this.check(n)){n=encodeURIComponent(n);let r=t.getCookieRegExp(n).exec(this.documentIsAccessible?this.document.cookie:this.getRequestCookies());return r?.[1]?t.safeDecodeURIComponent(r[1]):""}return""}getAll(){let n={},o=this.documentIsAccessible?this.document?.cookie:this.getRequestCookies();return o&&o!==""&&o.split(";").forEach(r=>{let[a,s]=r.split("=");n[t.safeDecodeURIComponent(a.replace(/^ /,""))]=t.safeDecodeURIComponent(s)}),n}set(n,o,r,a,s,l,c,h){if(!this.documentIsAccessible)return;if(typeof r=="number"||r instanceof Date||a||s||l||c){let b={expires:r,path:a,domain:s,secure:l,sameSite:c??"Lax",partitioned:h};this.set(n,o,b);return}let m=encodeURIComponent(n)+"="+encodeURIComponent(o)+";",f=r??{};if(f.expires)if(typeof f.expires=="number"){let b=new Date(new Date().getTime()+f.expires*1e3*60*60*24);m+="expires="+b.toUTCString()+";"}else m+="expires="+f.expires.toUTCString()+";";f.path&&(m+="path="+f.path+";"),f.domain&&(m+="domain="+f.domain+";"),f.secure===!1&&f.sameSite==="None"&&(f.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${n} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),f.secure&&(m+="secure;"),f.sameSite??="Lax",m+="sameSite="+f.sameSite+";",f.partitioned&&(m+="Partitioned;"),this.document.cookie=m}delete(n,o,r,a,s="Lax"){if(!this.documentIsAccessible)return;let l=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(n,"",{expires:l,path:o,domain:r,secure:a,sameSite:s})}deleteAll(n,o,r,a="Lax"){if(!this.documentIsAccessible)return;let s=this.getAll();for(let l in s)s.hasOwnProperty(l)&&this.delete(l,n,o,r,a)}
480getRequestCookies(){if(!this.request)return null;if(this.request.headers&&typeof this.request.headers.get=="function")return this.request.headers.get("cookie");let n=this.request;if(typeof n.get=="function")return n.get("cookie")||n.get("Cookie");let o=this.request.headers;return o&&typeof o=="object"?o.cookie||o.Cookie:null}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Nt=[];for(Kc=0;Kc<256;++Kc)Nt.push((Kc+256).toString(16).slice(1));var Kc;function bC(e,t=0){return(Nt[e[t+0]]+Nt[e[t+1]]+Nt[e[t+2]]+Nt[e[t+3]]+"-"+Nt[e[t+4]]+Nt[e[t+5]]+"-"+Nt[e[t+6]]+Nt[e[t+7]]+"-"+Nt[e[t+8]]+Nt[e[t+9]]+"-"+Nt[e[t+10]]+Nt[e[t+11]]+Nt[e[t+12]]+Nt[e[t+13]]+Nt[e[t+14]]+Nt[e[t+15]]).toLowerCase()}var Qc,hI=new Uint8Array(16);function wh(){if(!Qc&&(Qc=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Qc))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Qc(hI)}var gI=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),xh={randomUUID:gI};function mI(e,t,i){if(xh.randomUUID&&!t&&!e)return xh.randomUUID();e=e||{};var n=e.random||(e.rng||wh)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){i=i||0;for(var o=0;o<16;++o)t[i+o]=n[o];return t}return bC(n)}var Pa=mI;var Di="com.amazon.rum",_C="com.amazonaws.rum",Ra="".concat(Di,".http_event"),Jc="".concat(Di,".xray_trace_event"),yC="".concat(Di,".largest_contentful_paint_event"),wC="".concat(Di,".first_input_delay_event"),xC="".concat(Di,".cumulative_layout_shift_event"),SC="".concat(Di,".interaction_to_next_paint_event"),Dr="".concat(Di,".performance_navigation_event"),Zc="".concat(Di,".performance_resource_event"),kC="".concat(Di,".dom_event"),EC="".concat(Di,".js_error_event"),MC="".concat(Di,".page_view_event"),Xc="".concat(Di,".session_start_event"),Tce="".concat(Di,".time_to_interactive_event"),Ice="".concat(Di,".rrweb_event");var Pi=(function(){function e(t){this.enabled=!0,this.pluginId=e.generatePluginId(t)}return e.generatePluginId=function(t){return"".concat(e.idPrefix,".").concat(t)},e.prototype.load=function(t){var i;this.context=t,(i=this.onload)===null||i===void 0||i.call(this)},e.prototype.getPluginId=function(){return this.pluginId},e.idPrefix=_C,e})();var ed=function(e,t,i){if(i||arguments.length===2)for(var n=0,o=t.length,r;n<o;n++)(r||!(n in t))&&(r||(r=Array.prototype.slice.call(t,0,n)),r[n]=t[n]);return e.concat(r||Array.prototype.slice.call(t))},td="[aws-rum-web:unknown.unknown]",be=(function(){function e(){}return e.configure=function(t){e.debugEnabled=t},e.getCallerInfo=function(){var t,i;try{var n=new Error().stack;if(!n)return td;var o=n.split(` 481`);if(o.length<4)return td;var r=o[3];if(!r)return td;var a=r.match(/at (?:(.+?)\s+\()?/);if(a&&a.length>=2){var s=a[1].trim(),l=s.split(".");if(l.length>=2){var c=(t=l[l.length-2])!==null&&t!==void 0?t:"unknown",h=(i=l[l.length-1])!==null&&i!==void 0?i:"unknown";return"[aws-rum-web:".concat(c,".").concat(h,"]")}return"[aws-rum-web:".concat(s,"]")}}catch{}return td},e.info=function(t){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];if(e.debugEnabled){var o=this.getCallerInfo();console.info.apply(console,ed([o,t],i,!1))}},e.debug=function(t){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];if(e.debugEnabled){var o=this.getCallerInfo();console.debug.apply(console,ed([o,t],i,!1))}},e.warn=function(t){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];if(e.debugEnabled){var o=this.getCallerInfo();console.warn.apply(console,ed([o,t],i,!1))}},e.error=function(t){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];if(e.debugEnabled){var o=this.getCallerInfo();console.error.apply(console,ed([o,t],i,!1))}},e.debugEnabled=!1,e})();var TC=(function(){function e(t){this.context=t,this.plugins=new Map}return e.prototype.addPlugin=function(t){var i=t.getPluginId();if(this.hasPlugin(i))throw new Error('Plugin "'.concat(i,'" already defined in the PluginManager'));this.plugins.set(i,t),t.load(this.context),be.debug("Plugin loaded: ".concat(i))},e.prototype.updatePlugin=function(t,i){var n,o=this.getPlugin(t);(n=o?.update)===null||n===void 0||n.call(o,i)},e.prototype.enable=function(){this.plugins.forEach(function(t){return t.enable()})},e.prototype.disable=function(){this.plugins.forEach(function(t){return t.disable()})},e.prototype.flush=function(){this.plugins.forEach(function(t){var i;return(i=t.flush)===null||i===void 0?void 0:i.call(t)})},e.prototype.hasPlugin=function(t){return!!this.getPlugin(t)},e.prototype.record=function(t,i){var n=this.getPlugin(t);
481if(n?.record instanceof Function)n.record(i);else throw new Error("AWS RUM Client record: Invalid plugin ID")},e.prototype.getPlugin=function(t){var i;return(i=this.plugins.get(t))!==null&&i!==void 0?i:this.plugins.get(Pi.generatePluginId(t))},e})();var fI=(function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},e(t,i)};return function(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");e(t,i);function n(){this.constructor=t}t.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}})(),Pr=function(){return Pr=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Pr.apply(this,arguments)},Sh="dom-event",vI={interactionId:function(){return""},enableMutationObserver:!1,events:[]},IC=(function(e){fI(t,e);function t(i){var n=e.call(this,Sh)||this;return n.enabled=!1,n.eventListenerMap=new Map,n.config=Pr(Pr({},vI),i),n}return t.getElementInfo=function(i){var n={name:"UNKNOWN"};return i.target instanceof Node&&(n.name=i.target.nodeName),i.target instanceof Element&&i.target.id&&(n.id=i.target.id),n},t.prototype.enable=function(){var i=this;if(document.readyState!=="complete"){window.addEventListener("load",function(){return i.enable()});return}this.enabled||(this.addListeners(),this.config.enableMutationObserver&&this.observeDOMMutation(),this.enabled=!0)},t.prototype.disable=function(){this.enabled&&(this.removeListeners(),this.observer&&this.observer.disconnect(),this.enabled=!1)},t.prototype.update=function(i){var n=this;i.forEach(function(o){n.addEventHandler(o),n.config.events.push(o)})},t.prototype.onload=function(){this.enable()},t.prototype.removeListeners=function(){var i=this;this.config.events.forEach(function(n){return i.removeEventHandler(n)})},t.prototype.addListeners=function(){var i=this;this.config.events.forEach(function(n){return i.addEventHandler(n)})},t.prototype.getEventListener=function(i){var n=this;return function(o){var r,a=t.getElementInfo(o),s=n.config.interactionId(o),l=Pr(Pr(Pr({version:"1.1.0",event:o.type,element:a.name},a.id?{elementId:a.id}:{}),s?{interactionId:s}:{}),i?{cssLocator:i}:{});!((r=n.context)===null||r===void 0)&&r.record&&n.context.record(kC,l)}},t.prototype.addEventHandler=function(i){var n=i.event,o=this.getEventListener(i.cssLocator),r=[],a=this.eventListenerMap.has(i)?this.eventListenerMap.get(i):[];if(i.cssLocator){var s=document.querySelectorAll(i.cssLocator);s.forEach(function(c){r.push(c)})}else if(i.elementId){var l=document.getElementById(i.elementId);l&&r.push(l)}else i.element&&r.push(i.element);r.forEach(function(c){c.addEventListener(n,o),a.push({element:c,eventListener:o})}),this.eventListenerMap.set(i,a)},t.prototype.removeEventHandler=function(i){var n=this.eventListenerMap.get(i);n&&(n.forEach(function(o){var r=o.element,a=o.eventListener;r.removeEventListener(i.event,a)}),this.eventListenerMap.delete(i))},t.prototype.observeDOMMutation=function(){var i=this;this.observer=new MutationObserver(function(){i.removeListeners(),i.addListeners()}),this.observer.observe(document,{childList:!0,subtree:!0})},t})(Pi);var CI=function(e){var t=typeof e;return(t==="object"||t==="function")&&!!e},bI=function(e){var t={version:"1.0.0",type:"undefined",message:"undefined"};return e.type!==void 0&&(t.type=e.type),e.message!==void 0&&(t.message=e.message),e.filename!==void 0&&(t.filename=e.filename),e.lineno!==void 0&&(t.lineno=e.lineno),e.colno!==void 0&&(t.colno=e.colno),t},_I=function(e,t){e.type!=="unhandledrejection"&&(e.type=t.toString()),e.message=t.toString()},yI=function(e,t,i){t.name&&(e.type=t.name),t.message&&(e.message=t.message),t.fileName&&(e.filename=t.fileName),t.lineNumber&&(e.lineno=t.lineNumber),t.columnNumber&&(e.colno=t.columnNumber),i&&t.stack&&(e.stack=t.stack.length>i?t.stack.substring(0,i)+"...":t.stack)},kh=function(e){return e!==Object(e)&&e!==void 0&&e!==null},Fa=function(e,t){var i=bI(e),n=e.error;return CI(n)?yI(i,n,t):kh(n)&&_I(i,n),i};var wI=(function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},e(t,i)};return function(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");e(t,i);function n(){this.constructor=t}
481t.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}})(),id=function(){return id=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},id.apply(this,arguments)},Eh="js-error",xI={stackTraceLength:1e3,ignore:function(){return!1}},DC=(function(e){wI(t,e);function t(i){var n=e.call(this,Eh)||this;return n.eventHandler=function(o){n.config.ignore(o)||n.recordJsErrorEvent(o)},n.promiseRejectEventHandler=function(o){n.config.ignore(o)||n.recordJsErrorEvent({type:o.type,error:o.reason})},n.config=id(id({},xI),i),n}return t.prototype.enable=function(){this.enabled||(this.addEventHandler(),this.enabled=!0)},t.prototype.disable=function(){this.enabled&&(this.removeEventHandler(),this.enabled=!1)},t.prototype.record=function(i){i instanceof ErrorEvent?this.recordJsErrorEvent(i):this.recordJsErrorEvent({type:"error",error:i})},t.prototype.onload=function(){this.addEventHandler()},t.prototype.recordJsErrorEvent=function(i){var n;(n=this.context)===null||n===void 0||n.record(EC,Fa(i,this.config.stackTraceLength))},t.prototype.addEventHandler=function(){window.addEventListener("error",this.eventHandler),window.addEventListener("unhandledrejection",this.promiseRe
481jectEventHandler)},t.prototype.removeEventHandler=function(){window.removeEventListener("error",this.eventHandler),window.removeEventListener("unhandledrejection",this.promiseRejectEventHandler)},t})(Pi);var Mh=function(e,t,i,n,o){var r=e+"=";r+=t||"",o!==void 0?r+="; Expires=".concat(o.toUTCString()):n!==void 0&&(r+="; Expires=".concat(SI(n).toUTCString())),r+="; Domain=".concat(i.domain),r+="; Path=".concat(i.path),r+="; SameSite=".concat(i.sameSite),r+=i.secure?"; Secure":"",document.cookie=r},SI=function(e){return new Date(new Date().getTime()+e*1e3)};var Th=function(e){for(var t=document.cookie.split("; "),i=0,n=t;i<n.length;i++){var o=n[i],r=o.split("=");if(r[0]===e)return r[1]}return""};var nd,kI=new Uint8Array(16);function Ih(){if(!nd&&(nd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!nd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return nd(kI)}var zt=[];for(let e=0;e<256;++e)zt.push((e+256).toString(16).slice(1));function PC(e,t=0){return zt[e[t+0]]+zt[e[t+1]]+zt[e[t+2]]+zt[e[t+3]]+"-"+zt[e[t+4]]+zt[e[t+5]]+"-"+zt[e[t+6]]+zt[e[t+7]]+"-"+zt[e[t+8]]+zt[e[t+9]]+"-"+zt[e[t+10]]+zt[e[t+11]]+zt[e[t+12]]+zt[e[t+13]]+zt[e[t+14]]+zt[e[t+15]]}var EI=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Dh={randomUUID:EI};function MI(e,t,i){if(Dh.randomUUID&&!t&&!e)return Dh.randomUUID();e=e||{};let n=e.random||(e.rng||Ih)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){i=i||0;for(let o=0;o<16;++o)t[i+o]=n[o];return t}return PC(n)}var mo=MI;var AC=ih(RC());var Oa="cwr_c",Aa="cwr_i",Ph="cwr_s",Rh="cwr_u",FC=3e4;var OC="arw-module";var sd=function(){return sd=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},sd.apply(this,arguments)},rd="00000000-0000-0000-0000-000000000000",ad="unknown",TI="desktop",II="web";var LC=(function(){function e(t,i,n,o){this.appMonitorDetails=t,this.config=i,this.recordEvent=n,this.pageManager=o,this.sessionCookieName=this.config.cookieAttributes.unique?"".concat(Ph,"_").concat(this.appMonitorDetails.id):Ph,this.session={sessionId:rd,record:this.sample(),eventCount:0},this.initializeUser(),this.collectAttributes(),this.addSessionAttributes(this.config.sessionAttributes),this.getSessionFromCookie()}return e.prototype.isSampled=function(){return this.session.record},e.prototype.getSession=function(){return(this.session.sessionId===rd||new Date>=this.sessionExpiry)&&this.createSession(),this.session},e.prototype.getAttributes=function(){return this.attributes},e.prototype.addSessionAttributes=function(t){this.attributes=sd(sd({},this.attributes),t)},e.prototype.getUserId=function(){return this.useCookies()?this.userId:rd},e.prototype.incrementSessionEventCount=function(){this.session.eventCount++,this.renewSession()},e.prototype.isLimitExceeded=function(){return this.session.eventCount>=this.config.sessionEventLimit&&this.config.sessionEventLimit>0},e.prototype.canRecord=function(){return this.session.record&&!this.isLimitExceeded()},e.prototype.initializeUser=function(){var t="";this.userExpiry=new Date,this.userExpiry.setDate(this.userExpiry.getDate()+this.config.userIdRetentionDays),this.config.userIdRetentionDays<=0?this.userId="00000000-0000-0000-0000-000000000000":this.useCookies()?(t=this.getUserIdCookie(),this.userId=t||mo(),this.createOrRenewUserCookie(t,this.userExpiry)):this.userId=mo()},e.prototype.createOrRenewSessionCookie=function(t,i){btoa&&Mh(this.sessionCookieName,btoa(JSON.stringify(t)),this.config.cookieAttributes,void 0,i)},e.prototype.createOrRenewUserCookie=function(t,i){Mh(Rh,t,this.config.cookieAttributes,void 0,i)},e.prototype.getUserIdCookie=function(){return Th(Rh)},e.prototype.getSessionFromCookie=function(){if(this.useCookies()){var t=Th(this.sessionCookieName);if(t&&atob)try{this.session=JSON.parse(atob(t)),this.pageManager.resumeSession(this.session.page),be.info("Restored session: ".concat(this.session.sessionId))}catch(i){be.error("Failed to restore session",i)}}}
481,e.prototype.storeSessionAsCookie=function(){this.useCookies()&&this.config.userIdRetentionDays>0&&this.createOrRenewUserCookie(this.userId,this.userExpiry),this.useCookies()&&this.createOrRenewSessionCookie(this.session,this.sessionExpiry)},e.prototype.createSession=function(){this.session={sessionId:mo(),record:this.session.sessionId===rd?this.session.record:this.sample(),eventCount:0},this.session.page=this.pageManager.getPage(),this.sessionExpiry=new Date(new Date().getTime()+this.config.sessionLengthSeconds*1e3),this.storeSessionAsCookie(),be.info("Session start: ".concat(this.session.sessionId)),this.session.record||be.warn("Session is NOT sampled. Consider increasing sessionSampleRate to avoid data loss (currently ".concat(this.config.sessionSampleRate,")")),this.recordEvent(Xc,{version:"1.0.0"})},e.prototype.renewSession=function(){this.sessionExpiry=new Date(new Date().getTime()+this.config.sessionLengthSeconds*1e3),this.session.page=this.pageManager.getPage(),this.storeSessionAsCookie()},e.prototype.collectAttributes=function(){var t=new AC.UAParser(navigator.userAgent).getResult();this.attributes={browserLanguage:navigator.language,browserName:t.browser.name?t.browser.name:ad,browserVersion:t.browser.version?t.browser.version:ad,osName:t.os.name?t.os.name:ad,osVersion:t.os.version?t.os.version:ad,deviceType:t.device.type?t.device.type:TI,platformType:II,domain:window.location.hostname,"aws:releaseId":this.config.releaseId}},e.prototype.useCookies=function(){return navigator.cookieEnabled&&this.config.allowCookies},e.prototype.sample=function(){return Math.random()<this.config.sessionSampleRate},e})();var La=ih(VC());var RI=(function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},e(t,i)};return function(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");e(t,i);function n(){this.constructor=t}t.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}})(),Wo=(function(e){RI(t,e);function t(){var i=e!==null&&e.apply(this,arguments)||this;return i.enable=i.patch.bind(i,!0),i.disable=i.patch.bind(i,!1),i.enabled=!1,i}return t.prototype.patchAll=function(){for(var i=La.wrap.bind(La),n=0,o=this.patches;n<o.length;n++){var r=o[n];i(r.nodule,r.name,r.wrapper())}},t.prototype.unpatchAll=function(){for(var i=La.unwrap.bind(La),n=0,o=this.patches;n<o.length;n++){var r=o[n];i(r.nodule,r.name)}},t.prototype.patch=function(i){i===void 0&&(i=!0),this.enabled!==i&&(this.enabled=i,i?this.patchAll():this.unpatchAll())},t})(Pi);var FI=(function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},e(t,i)};return function(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");e(t,i);function n(){this.constructor=t}t.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}})(),HC=(function(e){FI(t,e);function t(i,n,o){var r=e.call(this,"virtual-page-load-timer")||this;return r.sendWrapper=function(){var a=r;return function(s){return function(){return a.recordXhr(this),this.addEventListener("loadend",a.endTracking),s.apply(this,arguments)}}},r.endTracking=function(a){var s=Date.now(),l=a.target;l.removeEventListener("loadend",r.endTracking),r.removeXhr(l,s)},r.fetch=function(a,s,l){return a.apply(s,l).catch(function(c){throw c}).finally(r.decrementFetchCounter)},r.fetchWrapper=function(){var a=r;return function(s){return function(l,c){return a.fetchCounter+=1,a.fetch(s,this,arguments)}}},r.decrementFetchCounter=function(){r.isPageLoaded||(r.latestEndTime=Date.now()),r.fetchCounter-=1},r.checkLoadStatus=function(){be.debug("VirtualPageLoadTimer: Checking load status - XHR: ".concat(r.ongoingRequests.size,", Fetch: ").concat(r.fetchCounter)),r.ongoingRequests.size===0&&r.fetchCounter===0&&(be.debug("Page load completed, recording navigation event"),clearInterval(r.periodicCheckerId),clearTimeout(r.timeoutCheckerId),r.domMutationObserver.disconnect(),r.recordRouteChangeNavigationEvent(r.pageManager.getPage()),r.periodicCheckerId=void 0,r.timeoutCheckerId=void 0,r.isPageLoaded=!0)},r.declareTimeout=function(){be.debug("Page load timed out"),clearInterval(r.periodicCheckerId),r.periodicCheckerId=void 0,r.timeoutCheckerId=void 0,r.domMutationObserver.disconnect(),r.isPageLoaded=!0},r.resetInterval=function(){r.latestEndTime=Date.now(),clearInterval(r.periodicCheckerId),r.periodicCheckerId=setInterval(r.checkLoadStatus,r.config.routeChangeComplete)},r.moveItemsFromBuffer=function(a){r.ongoingRequests.add(a)},r.updateLatestInteractionTime=function(a){r.latestInteractionTime=Date.now(),be.debug("Updated
481interaction time: ".concat(r.latestInteractionTime))},r.periodicCheckerId=void 0,r.timeoutCheckerId=void 0,r.domMutationObserver=new MutationObserver(r.resetInterval),r.ongoingRequests=new Set,r.requestBuffer=new Set,r.fetchCounter=0,r.isPageLoaded=!0,r.latestEndTime=0,r.latestInteractionTime=0,r.config=n,r.pageManager=i,r.record=o,r.enable(),document.addEventListener("mousedown",r.updateLatestInteractionTime),document.addEventListener("keydown",r.updateLatestInteractionTime),r}return Object.defineProperty(t.prototype,"patches",{get:function(){return[{nodule:XMLHttpRequest.prototype,name:"send",wrapper:this.sendWrapper},{nodule:window,name:"fetch",wrapper:this.fetchWrapper}]},enumerable:!1,configurable:!0}),t.prototype.startTiming=function(){this.latestEndTime=Date.now(),be.debug("Starting timing for virtual page load"),this.periodicCheckerId&&clearInterval(this.periodicCheckerId),this.timeoutCheckerId&&clearTimeout(this.timeoutCheckerId),this.domMutationObserver.disconnect(),this.periodicCheckerId=setInterval(this.checkLoadStatus,this.config.routeChangeComplete),this.timeoutCheckerId=setTimeout(this.declareTimeout,this.config.routeChangeTimeout),this.domMutationObserver.observe(document,{subtree:!0,childList:!0,attributes:!1,characterData:!1}),this.isPageLoaded=!1,this.requestBuffer.forEach(this.moveItemsFromBuffer),this.requestBuffer.clear(),be.debug("Moved ".concat(this.requestBuffer.size," requests from buffer to ongoing"))},t.prototype.recordXhr=function(i){var n=this.pageManager.getPage();n&&this.isPageLoaded===!1?(this.ongoingRequests.add(i),be.debug("Added XHR to ongoing requests (total: ".concat(this.ongoingRequests.size,")"))):(this.requestBuffer.add(i),be.debug("VirtualPageLoadTimer: Added XHR to buffer (total: ".concat(this.requestBuffer.size,")")))},t.prototype.removeXhr=function(i,n){var o=this.pageManager.getPage();o&&this.ongoingRequests.has(i)?(this.ongoingRequests.delete(i),this.latestEndTime=n):this.requestBuffer.has(i)&&this.requestBuffer.delete(i)},t.prototype.recordRouteChangeNavigationEvent=function(i){var n={version:"1.0.0",initiatorType:"route_change",navigationType:"navigate",startTime:i.start,duration:this.latestEndTime-i.start};this.record&&this.record(Dr,n)},t})(Wo);var ld=function(){return ld=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ld.apply(this,arguments)},GC=(function(){function e(t,i){this.TIMEOUT=1e3,this.config=t,this.record=i,this.page=void 0,this.resumed=!1,this.recordInteraction=!1,t.legacySPASupport&&(be.warn("VirtualPageLoadTiming (deprecated) is enabled and may result in innaccurate page load timing for Single Page Applications. Please use with caution after reviewing https://github.com/aws-observability/aws-rum-web/issues/723"),this.virtualPageLoadTimer=new HC(this,t,i))}return e.prototype.getPage=function(){return this.page},e.prototype.getAttributes=function(){return this.attributes},e.prototype.resumeSession=function(t){this.recordInteraction=!0,t&&(this.page=t,this.resumed=!0)},e.prototype.recordPageView=function(t){var i;if(typeof t=="string"?i=t:i=t.pageId,be.debug("recordPageView called with pageId: ".concat(i)),this.useCookies()&&(this.recordInteraction=!0),!this.page)this.createLandingPage(i),be.info("Landing page created: ".concat(i));else if(this.page.pageId!==i)this.createNextPage(this.page,i),be.debug("Navigation to new page: ".concat(i));else if(this.resumed){be.info("Resumed session for page: ".concat(i)),this.collectAttributes(this.page,typeof t=="object"?t:void 0);return}else{be.debug("No page change detected for: ".concat(i));return}this.collectAttributes(this.page,typeof t=="object"?t:void 0),this.recordPageViewEvent(this.page)},e.prototype.createNextPage=function(t,i){var n=Date.now();if(be.debug("Creating next page ".concat(i,", interaction: ").concat(t.interaction+1)),this.config.legacySPASupport&&this.virtualPageLoadTimer){var o=this.virtualPageLoadTimer.latestInteractionTime;!this.resumed&&n-o<=this.TIMEOUT?(n=o,this.virtualPageLoadTimer.startTiming(),be.debug("Started virtual page load timing for ".concat(i))):be.debug("Skipped virtual page load timing for ".concat(i," (resumed: ").concat(this.resumed,", timeDiff: ").concat(n-o,"ms)"))}this.timeOnParentPage=n-t.start,this.resumed=!1,this.page={pageId:i,parentPageId:t.pageId,interaction:t.interaction+1,referrer:document.referrer,referrerDomain:this.getDomainFromReferrer(),start:n}},e.prototype.createLandingPage=function(t){this.page={pageId:t,interaction:0,referrer:document.referrer,referrerDomain:this.getDomainFromReferrer(),start:Date.now()}},e.prototype.collectAttributes=function(t,i){var n;this.attributes={title:!((n=i?.pageAttributes)===null||n===void 0)&&n.title?i.pageAttributes.title:document.title,pageId:t.pageId},this.recordInteraction&&(this.attributes.interaction=t.interaction,t.parentPageId!==void 0&&(this.attributes.parentPageId=t.parentPageId)),i?.pageTags&&(this.attributes.pageTags=i.pageTags),i?.pageAttributes&&(this.attributes=ld(ld({},i.pageAttributes),this.attributes))},e.prototype.createPageViewEvent=function(t){var i={version:"1.0.0",pageId:t.pageId};return this.recordInteraction&&(i.interaction=t.interaction,i.pageInteractionId=t.pageId+"-"+t.interaction,t.parentPageId!==void 0&&(i.parentPageInteractionId=t.parentPageId+"-"+(t.interaction-1),i.timeOnParentPage=this.timeOnParentPage),i.referrer=document.referrer,i.referrerDomain=this.getDomainFromReferrer()),i},e.prototype.recordPageViewEvent=function(t){this.record(MC,this.createPageViewEvent(t))},e.prototype.useCookies=function(){return navigator.cookieEnabled&&this.config.allowCookies},e.prototype.getDomainFromReferrer=function(){try{return new URL(document.referrer).hostname}catch{return document.referrer==="localhost"?document.referrer:""}},e})();var Na=(function(e){return e.EVENT="event",e})(Na||{}),OI=(function(){function e(){this.subscribers=new Map}return e.prototype.subscribe=function(t,i){var n,o=(n=this.subscribers.get(t))!==null&&n!==void 0?n:[];o.length||this.subscribers.set(t,o),o.push(i)},e.prototype.unsubscribe=function(t,i){var n=this.subscribers.get(t);if(n){for(var o=0;o<n.length;o++)if(n[o]===i)return n.splice(o,1),!0}return!1},e.prototype.dispatch=function(t,i){var n=this.subscribers.get(t);if(n)for(var o=0,r=n;o<r.length;o++){var a=r[o];a(i)}},e})(),cd=OI;var fo=function(){return fo=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},fo.apply(this,arguments)},AI="2.1.0",UC=(function(){function e(t,i,n){n===void 0&&(n=new cd);var o=this;this.eventBus=n,this.events=[],this.candidates=new Map,this.droppedEvent=0,this.sessionLimitExceeded=0,this.recordPageView=function(r){o.isCurrentUrlAllowed()&&o.pageManager.recordPageView(r)},this.recordEvent=function(r,a){o.enabled&&o.isCurrentUrlAllowed()&&(r!==Xc&&o.sessionManager.getSession(),o.sessionManager.canRecord()?(o.sessionManager.incrementSessionEventCount(),o.addRecordToCache(r,a)):o.sessionLimitExceeded++)},this.recordCandidate=function(r,a){var s=o.sessionManager.getSession();if(!(!o.enabled||!o.isCurrentUrlAllowed()||!s.record)){var l=o.createEvent(r,a)[0];if(o.candidates.has(r)){o.candidates.set(r,l);return}o.candidates.size<o.config.candidatesCacheSize&&!o.sessionManager.isLimitExceeded()&&(o.candidates.set(r,l),o.sessionManager.incrementSessionEventCount())}}
481,this.getSession=function(){if(o.isCurrentUrlAllowed())return o.sessionManager.getSession()},this.addRecordToCache=function(r,a){if(o.enabled){if(o.events.length>=o.config.eventCacheSize){o.droppedEvent+=1;return}var s=o.createEvent(r,a),l=s[0],c=s[1];o.eventBus.dispatch(Na.EVENT,c),o.events.push(l)}},this.createEvent=function(r,a){var s=fo(fo(fo({},o.sessionManager.getAttributes()),o.pageManager.getAttributes()),{version:"1.0.0","aws:client":o.installationMethod,"aws:clientVersion":AI}),l={id:mo(),timestamp:new Date,type:r};return[fo(fo({},l),{details:JSON.stringify(a),metadata:JSON.stringify(s)}),fo(fo({},l),{details:a,metadata:s})]},this.appMonitorDetails=t,this.config=i,this.enabled=!0,this.pageManager=new GC(i,this.recordEvent),this.sessionManager=new LC(t,i,this.recordEvent,this.pageManager),this.installationMethod=i.client}return e.prototype.enable=function(){this.enabled=!0},e.prototype.disable=function(){this.enabled=!1},e.prototype.setPluginFlushHook=function(t){this.pluginFlushHook=t},e.prototype.isSessionSampled=function(){return this.sessionManager.isSampled()},e.prototype.hasEvents=function(){if(this.sessionLimitExceeded>0){var t=this.events.length+this.sessionLimitExceeded;this.sessionManager.isSampled()?be.warn("Dropped ".concat(this.sessionLimitExceeded," of ").concat(t," recently observed events (").concat((this.sessionLimitExceeded/t*100).toFixed(2),"%) because the session limit has exceeded. Consider increasing sessionEventLimit (currently ").concat(this.config.sessionEventLimit,") to ").concat(t," or more to avoid data loss.")):be.warn("Dropped ".concat(this.sessionLimitExceeded," of ").concat(t," recently observed events (").concat((this.sessionLimitExceeded/t*100).toFixed(2),"%) because current session is not sampled. Consider increasing sessionSampleRate (currently ").concat(this.config.sessionSampleRate,") to capture more user sessions.")),this.sessionLimitExceeded=0}return this.events.length!==0},e.prototype.hasCandidates=function(){return this.candidates.size!==0},e.prototype.getEventBatch=function(t){var i;if(t===void 0&&(t=!1),this.droppedEvent>0){var n=this.events.length+this.droppedEvent;be.warn("Dropped ".concat(this.droppedEvent," of ").concat(n," recently observed events (").concat((this.droppedEvent/n*100).toFixed(2),"%) due to insufficient in-memory queue. Increase eventCacheSize to ").concat(n," (currently ").concat(this.config.eventCacheSize,") to avoid data loss.")),this.droppedEvent=0}var o=[];if(t&&((i=this.pluginFlushHook)===null||i===void 0||i.call(this)),t&&this.hasCandidates())if(this.candidates.size<=this.config.batchLimit)o=Array.from(this.candidates.values()),this.candidates.clear();else for(var r=0,a=0,s=Array.from(this.candidates.keys());a<s.length;a++){var l=s[a];if(r++>=this.config.batchLimit)break;var c=this.candidates.get(l);c&&(o.push(c),this.candidates.delete(l))}return this.events.length&&(this.events.length<=this.config.batchLimit-o.length?(o.push.apply(o,this.events),this.events=[]):o.push.apply(o,this.events.splice(0,this.config.batchLimit-o.length))),o},e.prototype.getAppMonitorDetails=function(){return this.appMonitorDetails},e.prototype.getUserDetails=function(){return{userId:this.sessionManager.getUserId(),sessionId:this.sessionManager.getSession().sessionId}},e.prototype.addSessionAttributes=function(t){this.sessionManager.addSessionAttributes(t)},e.prototype.isCurrentUrlAllowed=function(){var t=document.location.toString(),i=this.config.pagesToExclude.some(function(o){return o.test(t)}),n=this.config.pagesToInclude.some(function(o){return o.test(t)});return n&&!i},e})();var jC={},Oh={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),jC[e]=t,Oh[t]=e}function WC(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let t=new Uint8Array(e.length/2);for(let i=0;i<e.length;i+=2){let n=e.slice(i,i+2).toLowerCase();if(n in Oh)t[i/2]=Oh[n];else throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return t}function Gi(e){let t="";for(let i=0;i<e.byteLength;i++)t+=jC[e[i]];return t}var Ah=e=>{if(typeof e=="function")return e;let t=Promise.resolve(e);return()=>t};var Sn=e=>
481encodeURIComponent(e).replace(/[!'()*]/g,LI),LI=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;var za=e=>new TextEncoder().encode(e);var $o=e=>typeof e=="string"?za(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e);var $C="X-Amz-Algorithm",qC="X-Amz-Credential",Lh="X-Amz-Date",YC="X-Amz-SignedHeaders",KC="X-Amz-Expires",Nh="X-Amz-Signature",zh="X-Amz-Security-Token";var Bh="authorization",Vh=Lh.toLowerCase(),NI="date",QC=[Bh,Vh,NI],JC=Nh.toLowerCase(),ml="x-amz-content-sha256",ZC=zh.toLowerCase();var XC={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},e1=/^proxy-/,t1=/^sec-/;var dd="AWS4-HMAC-SHA256";var i1="AWS4-HMAC-SHA256-PAYLOAD",n1="UNSIGNED-PAYLOAD",o1=50,Hh="aws4_request",r1=3600*24*7;var ud={},Gh=[],pd=(e,t,i)=>`${e}/${t}/${i}/${Hh}`,s1=(e,t,i,n,o)=>pt(null,null,function*(){let r=yield a1(e,t.secretAccessKey,t.accessKeyId),a=`${i}:${n}:${o}:${Gi(r)}:${t.sessionToken}`;if(a in ud)return ud[a];for(Gh.push(a);Gh.length>o1;)delete ud[Gh.shift()];let s=`AWS4${t.secretAccessKey}`;for(let l of[i,n,o,Hh])s=yield a1(e,s,l);return ud[a]=s});var a1=(e,t,i)=>{let n=new e(t);return n.update($o(i)),n.digest()};var hd=({headers:e},t,i)=>{let n={};for(let o of Object.keys(e).sort()){if(e[o]==null)continue;let r=o.toLowerCase();(r in XC||t?.has(r)||e1.test(r)||t1.test(r))&&(!i||i&&!i.has(r))||(n[r]=e[o].trim().replace(/\s+/g," "))}return n};var Uh=({query:e={}})=>{let t=[],i={};for(let n of Object.keys(e)){if(n.toLowerCase()===JC)continue;let o=Sn(n);t.push(o);let r=e[n];typeof r=="string"?i[o]=`${o}=${Sn(r)}`:Array.isArray(r)&&(i[o]=r.slice(0).reduce((a,s)=>a.concat([`${o}=${Sn(s)}`]),[]).sort().join("&"))}return t.sort().map(n=>i[n]).filter(n=>n).join("&")};var l1=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";var fl=(n,o)=>pt(null,[n,o],function*({headers:e,body:t},i){for(let r of Object.keys(e))if(r.toLowerCase()===ml)return e[r];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||l1(t)){let r=new i;return r.update($o(t)),Gi(yield r.digest())}return n1});var gd=class{format(t){let i=[];for(let r of Object.keys(t)){let a=za(r);i.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(t[r]))}let n=new Uint8Array(i.reduce((r,a)=>r+a.byteLength,0)),o=0;for(let r of i)n.set(r,o),o+=r.byteLength;return n}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":let i=new DataView(new ArrayBuffer(3));return i.setUint8(0,3),i.setInt16(1,t.value,!1),new Uint8Array(i.buffer);case"integer":let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,t.value,!1),new Uint8Array(n.buffer);case"long":let o=new Uint8Array(9);return o[0]=5,o.set(t.value.bytes,1),o;case"binary":let r=new DataView(new ArrayBuffer(3+t.value.byteLength));r.setUint8(0,6),r.setUint16(1,t.value.byteLength,!1);let a=new Uint8Array(r.buffer);return a.set(t.value,3),a;case"string":let s=za(t.value),l=new DataView(new ArrayBuffer(3+s.byteLength));l.setUint8(0,7),l.setUint16(1,s.byteLength,!1);let c=new Uint8Array(l.buffer);return c.set(s,3),c;case"timestamp":let h=new Uint8Array(9);return h[0]=8,h.set(jh.fromNumber(t.value.valueOf()).bytes,1),h;case"uuid":if(!zI.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);let m=new Uint8Array(17);return m[0]=9,m.set(WC(t.value.replace(/\-/g,"")),1),m}}};var zI=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,jh=class e{constructor(t){if(this.bytes=t,t.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let i=new Uint8Array(8);for(let n=7,o=Math.abs(Math.round(t));n>-1&&o>0;
481n--,o/=256)i[n]=o;return t<0&&c1(i),new e(i)}valueOf(){let t=this.bytes.slice(0),i=t[0]&128;return i&&c1(t),parseInt(Gi(t),16)*(i?-1:1)}toString(){return String(this.valueOf())}};function c1(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}var d1=(e,t)=>{e=e.toLowerCase();for(let i of Object.keys(t))if(e===i.toLowerCase())return!0;return!1};var Ui=class e{constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static clone(t){let i=new e(ye(B({},t),{headers:B({},t.headers)}));return i.query&&(i.query=BI(i.query)),i}static isInstance(t){if(!t)return!1;let i=t;return"method"in i&&"protocol"in i&&"hostname"in i&&"path"in i&&typeof i.query=="object"&&typeof i.headers=="object"}clone(){return e.clone(this)}};function BI(e){return Object.keys(e).reduce((t,i)=>{let n=e[i];return ye(B({},t),{[i]:Array.isArray(n)?[...n]:n})},{})}var Ln=class{constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;let i=t;return typeof i.statusCode=="number"&&typeof i.headers=="object"}};var Wh=(e,t={})=>{let{headers:i,query:n={}}=Ui.clone(e);for(let o of Object.keys(i)){let r=o.toLowerCase();(r.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(r)||t.hoistableHeaders?.has(r))&&(n[o]=i[o],delete i[o])}return ye(B({},e),{headers:i,query:n})};var md=e=>{e=Ui.clone(e);for(let t of Object.keys(e.headers))QC.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e};var u1=e=>VI(e).toISOString().replace(/\.\d{3}Z$/,"Z"),VI=e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e;var vd=class{constructor({applyChecksum:t,credentials:i,region:n,service:o,sha256:r,uriEscapePath:a=!0}){this.headerFormatter=new gd,this.service=o,this.sha256=r,this.uriEscapePath=a,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=Ah(n),this.credentialProvider=Ah(i)}presign(n){return pt(this,arguments,function*(t,i={}
481){let{signingDate:o=new Date,expiresIn:r=3600,unsignableHeaders:a,unhoistableHeaders:s,signableHeaders:l,hoistableHeaders:c,signingRegion:h,signingService:m}=i,f=yield this.credentialProvider();this.validateResolvedCredentials(f);let b=h??(yield this.regionProvider()),{longDate:_,shortDate:S}=fd(o);if(r>r1)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let M=pd(S,b,m??this.service),D=Wh(md(t),{unhoistableHeaders:s,hoistableHeaders:c});f.sessionToken&&(D.query[zh]=f.sessionToken),D.query[$C]=dd,D.query[qC]=`${f.accessKeyId}/${M}`,D.query[Lh]=_,D.query[KC]=r.toString(10);let I=hd(D,a,l);return D.query[YC]=p1(I),D.query[Nh]=yield this.getSignature(_,M,this.getSigningKey(f,b,S,m),this.createCanonicalRequest(D,I,yield fl(t,this.sha256))),D})}sign(t,i){return pt(this,null,function*(){return typeof t=="string"?this.signString(t,i):t.headers&&t.payload?this.signEvent(t,i):t.message?this.signMessage(t,i):this.signRequest(t,i)})}signEvent(s,l){return pt(this,arguments,function*({headers:t,payload:i},{signingDate:n=new Date,priorSignature:o,signingRegion:r,signingService:a}){let c=r??(yield this.regionProvider()),{shortDate:h,longDate:m}=fd(n),f=pd(h,c,a??this.service),b=yield fl({headers:{},body:i},this.sha256),_=new this.sha256;_.update(t);let S=Gi(yield _.digest()),M=[i1,m,f,o,S,b].join(` 482`);return this.signString(M,{signingDate:n,signingRegion:c,signingService:a})})}signMessage(r,a){return pt(this,arguments,function*(t,{signingDate:i=new Date,signingRegion:n,signingService:o}){return this.signEvent({headers:this.headerFormatter.format(t.message.headers),payload:t.message.body},{signingDate:i,signingRegion:n,signingService:o,priorSignature:t.priorSignature}).then(l=>({message:t.message,signature:l}))})}signString(r){return pt(this,arguments,function*(t,{signingDate:i=new Date,signingRegion:n,signingService:o}={}){let a=yield this.credentialProvider();this.validateResolvedCredentials(a);let s=n??(yield this.regionProvider()),{shortDate:l}=fd(i),c=new this.sha256(yield this.getSigningKey(a,s,l,o));return c.update($o(t)),Gi(yield c.digest())})}signRequest(s){return pt(this,arguments,function*(t,{signingDate:i=new Date,signableHeaders:n,unsignableHeaders:o,signingRegion:r,signingService:a}={}){let l=yield this.credentialProvider();this.validateResolvedCredentials(l);let c=r??(yield this.regionProvider()),h=md(t),{longDate:m,shortDate:f}=fd(i),b=pd(f,c,a??this.service);h.headers[Vh]=m,l.sessionToken&&(h.headers[ZC]=l.sessionToken);let _=yield fl(h,this.sha256);!d1(ml,h.headers)&&this.applyChecksum&&(h.headers[ml]=_);let S=hd(h,o,n),M=yield this.getSignature(m,b,this.getSigningKey(l,c,f,a),this.createCanonicalRequest(h,S,_));return h.headers[Bh]=`${dd} Credential=${l.accessKeyId}/${b}, SignedHeaders=${p1(S)}, Signature=${M}`,h})}createCanonicalRequest(t,i,n){let o=Object.keys(i).sort();return`${t.method} 483${this.getCanonicalPath(t)} 484${Uh(t)} 485${o.map(r=>`${r}:${i[r]}`).join(` 486`)} 487 488${o.join(";")} 489${n}`}createStringToSign(t,i,n){return pt(this,null,function*(){let o=new this.sha256;o.update($o(n));let r=yield o.digest();return`${dd} 490${t} 491${i} 492${Gi(r)}`})}getCanonicalPath({path:t}){if(this.uriEscapePath){let i=[];for(let r of t.split("/"))r?.length!==0&&r!=="."&&(r===".."?i.pop():i.push(r));let n=`${t?.startsWith("/")?"/":""}${i.join("/")}${i.length>0&&t?.endsWith("/")?"/":""}`;return Sn(n).replace(/%2F/g,"/")}return t}getSignature(t,i,n,o){return pt(this,null,function*(){let r=yield this.createStringToSign(t,i,o),a=new this.sha256(yield n);return a.update($o(r)),Gi(yield a.digest())})}getSigningKey(t,i,n,o){return s1(this.sha256,t,n,i,o||this.service)}validateResolvedCredentials(t){if(typeof t!="object"||typeof t.accessKeyId!="string"||typeof t.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}},fd=e=>{let t=u1(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}},p1=e=>Object.keys(e).sort().join(";");var eg=ih(D1());var F1=function(e,t,i,n){function o(r){return r instanceof i?r:new i(function(a){a(r)})}
492return new(i||(i=Promise))(function(r,a){function s(h){try{c(n.next(h))}catch(m){a(m)}}function l(h){try{c(n.throw(h))}catch(m){a(m)}}function c(h){h.done?r(h.value):o(h.value).then(s,l)}c((n=n.apply(e,t||[])).next())})},O1=function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(h){return l([c,h])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,o&&(r=c[0]&2?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,o=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(r=i.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){i.label=c[1];break}if(c[0]===6&&i.label<r[1]){i.label=r[1],r=c;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(c);break}r[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(h){c=[6,h],o=0}finally{n=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},P1=2048,R1=.2,wD=function(){return typeof CompressionStream<"u"},xD=function(e){return F1(void 0,void 0,void 0,function(){var t,i;return O1(this,function(n){switch(n.label){case 0:return t=new Blob([e]).stream().pipeThrough(new CompressionStream("gzip")),i=Uint8Array.bind,[4,new Response(t).arrayBuffer()];case 1:return[2,new(i.apply(Uint8Array,[void 0,n.sent()]))]}})})},A1=function(e){return F1(void 0,void 0,void 0,function(){var t,i,n;return O1(this,function(o){switch(o.label){case 0:return t=e.length,be.debug("compressIfBeneficial called, payload size: ".concat(t,"B")),wD()?t<P1?(be.debug("Payload size ".concat(t,"B below threshold ").concat(P1,"B, skipping compression")),[2,{body:e,compressed:!1}]):[4,xD(e)]:(be.debug("CompressionStream not supported, skipping compression"),[2,{body:e,compressed:!1}]);case 1:return i=o.sent(),n=1-i.length/t,n>=R1?(be.debug("Compressed ".concat(t,"B -> ").concat(i.length,"B (").concat((n*100).toFixed(1),"% reduction)")),[2,{body:i,compressed:!0}]):(be.debug("Compression ratio ".concat((n*100).toFixed(1),"% below threshold ").concat(R1*100,"%, skipping")),[2,{body:e,compressed:!1}])}})})};var vo=function(){return vo=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},vo.apply(this,arguments)},Ed=function(e,t,i,n){function o(r){return r instanceof i?r:new i(function(a){a(r)})}return new(i||(i=Promise))(function(r,a){function s(h){try{c(n.next(h))}catch(m){a(m)}}function l(h){try{c(n.throw(h))}catch(m){a(m)}}function c(h){h.done?r(h.value):o(h.value).then(s,l)}c((n=n.apply(e,t||[])).next())})},Md=function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(h){return l([c,h])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,o&&(r=c[0]&2?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,o=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(r=i.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){i.label=c[1];break}if(c[0]===6&&i.label<r[1]){i.label=r[1],r=c;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(c);break}r[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(h){c=[6,h],o=0}finally{n=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},SD="rum",kD="POST",ED="application/json",MD="text/plain;
492charset=UTF-8",TD=64e3,ID={expiresIn:60},N1=(function(){function e(t){var i=this;this.sendFetch=function(n){return Ed(i,void 0,void 0,function(){var o,r,a,s,l,c,h,m,f,b,_;return Md(this,function(S){switch(S.label){case 0:return o=JSON.stringify(L1(n)),r=(_=(b=this.config.compressionStrategy)===null||b===void 0?void 0:b.enabled)!==null&&_!==void 0?_:!1,r?[4,A1(o)]:[3,2];case 1:return c=S.sent(),[3,3];case 2:c={body:o,compressed:!1},S.label=3;case 3:return a=c,s=a.body,l=a.compressed,[4,this.getHttpRequestOptions(n,s,ED,l)];case 4:return h=S.sent(),m=new Ui(h),this.awsSigV4?[4,this.awsSigV4.sign(m)]:[3,6];case 5:m=S.sent(),S.label=6;case 6:return f=this.config.fetchRequestHandler.handle(m),[2,f]}})})},this.sendBeacon=function(n){return Ed(i,void 0,void 0,function(){var o,r,a,s;return Md(this,function(l){switch(l.label){case 0:if(o=JSON.stringify(L1(n)),o.length>TD)throw new Error("Payload too large for sendBeacon");return[4,this.getHttpRequestOptions(n,o,MD,!1)];case 1:return r=l.sent(),a=new Ui(r),this.awsSigV4?[4,this.awsSigV4.presign(a,ID)]:[3,3];case 2:a=l.sent(),l.label=3;case 3:return s=this.config.beaconRequestHandler.handle(a),[2,s]}})})},this.getHttpRequestOptions=function(n,o,r,a){return Ed(i,void 0,void 0,function(){var s,l,c,h,m,f,b,_;return Md(this,function(S){switch(S.label){case 0:return s=this.config.endpoint.pathname.replace(/\/$/,""),l=vo({"content-type":r,host:this.config.endpoint.host},this.config.headers),a&&(l["Content-Encoding"]="gzip"),c={method:kD,protocol:this.config.endpoint.protocol,port:Number(this.config.endpoint.port)||void 0,headers:l,hostname:this.config.endpoint.hostname,path:"".concat(s,"/appmonitors/").concat(n.AppMonitorDetails.id),body:o},this.awsSigV4?(h=[vo({},c)],b={},m=[vo({},c.headers)],_={},f="X-Amz-Content-Sha256",[4,PD(o)]):[3,2];case 1:return[2,vo.apply(void 0,h.concat([(b.headers=vo.apply(void 0,m.concat([(_[f]=S.sent(),_)])),b)]))];case 2:return[2,c]}})})},this.config=t,t.credentials&&(this.awsSigV4=new vd({applyChecksum:!0,credentials:t.credentials,region:t.region,service:SD,uriEscapePath:!0,sha256:eg.Sha256}))}return e})();var L1=function(e){var t=[];e.RumEvents.forEach(function(n){return t.push(DD(n))});var i={BatchId:e.BatchId,AppMonitorDetails:e.AppMonitorDetails,UserDetails:e.UserDetails,RumEvents:t};return e.Alias&&(i=vo(vo({},i),{Alias:e.Alias})),i},DD=function(e){return{id:e.id,timestamp:Math.round(e.timestamp.getTime()/1e3),type:e.type,metadata:e.metadata,details:e.details}},PD=function(e){return Ed(void 0,void 0,void 0,function(){var t,i;return Md(this,function(n){switch(n.label){case 0:return t=new eg.Sha256,t.update(e),i=Gi,[4,t.digest()];case 1:return[2,i.apply(void 0,[n.sent()]).toLowerCase()]}})})};var Cl=e=>encodeURIComponent(e).replace(/[!'()*]/g,RD),RD=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;function Td(e){let t=[];for(let i of Object.keys(e).sort()){let n=e[i];if(i=Cl(i),Array.isArray(n))for(let o=0,r=n.length;o<r;o++)t.push(`${i}=${Cl(n[o])}`);else{let o=i;(n||typeof n=="string")&&(o+=`=${Cl(n)}`),t.push(o)}}return t.join("&")}var z1=(function(){function e(){}return e.prototype.handle=function(t){var i=this.sendBeacon(t);return new Promise(function(n,o){i?n({response:new Ln({statusCode:200})}):o()})},e.prototype.updateHttpClientConfig=function(t,i){},e.prototype.httpHandlerConfigs=function(){return{}},e.prototype.sendBeacon=function(t){var i=t.path;if(t.query){var n=Td(t.query);n&&(i+="?".concat(n))}var o=t.port,r="".concat(t.protocol,"//").concat(t.hostname).concat(o?":".concat(o):"").concat(i);return navigator.sendBeacon(r,t.body)},e})();var B1=function(e){return e===void 0&&(e=0),new Promise(function(t,i){e&&setTimeout(function(){var n=new Error("Request did not complete within ".concat(e," ms"));n.name="TimeoutError",i(n)},e)})};var V1=(function(){function e(t){var i=t===void 0?{}:t,n=i.fetchFunction,o=i.requestTimeout;this.requestTimeout=o,this.fetchFunction=n}return e.prototype.destroy=function(){},e.prototype.handle=function(t,i){var n=i===void 0?{}:i,o=n.abortSignal,r=this.requestTimeout;if(o?.aborted){var a=new Error("Request aborted");return a.name="AbortError",Promise.reject(a)}var s=t.path;if(t.query){var l=Td(t.query);l&&(s+="?".concat(l))}var c=t.port,h=t.method,m="".concat(t.protocol,"//").concat(t.hostname).concat(c?"
492:".concat(c):"").concat(s),f=h==="GET"||h==="HEAD"?void 0:t.body,b={body:f,headers:new Headers(t.headers),method:h};typeof AbortController<"u"&&(b.signal=o);var _=new Request(m,b),S=[this.fetchFunction.apply(window,[_]).then(function(M){for(var D=M.headers,I={},F=0,W=D.entries();F<W.length;F++){var re=W[F];I[re[0]]=re[1]}var Z=M.body!==void 0;return Z?{response:new Ln({headers:I,statusCode:M.status,body:M.body})}:M.blob().then(function(q){return{response:new Ln({headers:I,statusCode:M.status,body:q})}})}),B1(r)];return o&&S.push(new Promise(function(M,D){o.onabort=function(){var I=new Error("Request aborted");I.name="AbortError",D(I)}})),Promise.race(S)},e.prototype.updateHttpClientConfig=function(t,i){},e.prototype.httpHandlerConfigs=function(){return{}},e})();var Id=function(e){if(crypto)return crypto.getRandomValues(e);if(msCrypto)return msCrypto.getRandomValues(e);throw new Error("No crypto library found.")};var H1=[];for(bl=0;bl<256;bl++)H1[bl]=(bl+256).toString(16).substr(1);var bl,_l="X-Amzn-Trace-Id",yl="traceparent",FD=2,OD=32,AD=16,LD=4,Dd=function(e,t){return Array.isArray(t)?t.some(function(i){return i.test(e)}):t},Pd={logicalServiceName:"rum.aws.amazon.com",urlsToInclude:[/.*/],urlsToExclude:[/cognito\-identity\.([^\.]*\.)?amazonaws\.com/,/sts\.([^\.]*\.)?amazonaws\.com/],stackTraceLength:200,recordAllRequests:!1,addXRayTraceIdHeader:!1},G1=function(e){return 200<=e&&e<300},Rd=function(e){return Math.floor(e/100)===4},Ba=function(e){return Math.floor(e/100)===5},Va=function(e){return e===429},Fd=function(e,t){var i=t.urlsToInclude.some(function(o){return o.test(e)}),n=t.urlsToExclude.some(function(o){return o.test(e)});return i&&!n},qo=function(){return Date.now()/1e3},U1=function(e,t,i){var n={request:{}};return n.request.method=t?.method?t.method:"GET",n.request.traced=i,n.request.url=wl(e),n},Od=function(e,t,i,n){var o={version:"1.0.0",name:e,origin:"AWS::RUM::AppMonitor",id:q1(),start_time:t,trace_id:i?BD():zD(),end_time:void 0,subsegments:[],in_progress:!1};return n&&(o.http=n),o},Ad=function(e,t,i){var n={id:q1(),name:e,start_time:t,end_time:void 0,in_progress:!1,namespace:e.endsWith("amazonaws.com")?"aws":"remote"};return i&&(n.http=i),n},Ld=function(e){try{return e.hostname?e.hostname:e.url?new URL(e.url).hostname:new URL(e.toString()).hostname}catch{return window.location.hostname}},j1=function(e,t,i,n){e.headers||(e.headers={}),n?e.headers[yl]=zd(t,i):e.headers[_l]=Nd(t,i)},W1=function(e,t,i,n){n?e.set(yl,zd(t,i)):e.set(_l,Nd(t,i))},Nd=function(e,t){return"Root="+e+";Parent="+t+";Sampled=1"},zd=function(e,t){return"00-"+e+"-"+t+"-01"},ND=function(e){return e?.length===LD&&e[0].length===FD&&e[1].length===OD&&e[2].length===AD&&(e[3]==="00"||e[3]==="01")},$1=function(e,t){var i,n,o={};if(e)if(t){var r=(i=e.get(yl))===null||i===void 0?void 0:i.split("-");r&&ND(r)&&(o.traceId=r[1],o.segmentId=r[2])}else{var r=(n=e.get(_l))===null||n===void 0?void 0:n.split(";");r?.length===3&&(o.traceId=r[0].split("Root=")[1],o.segmentId=r[1].split("Parent=")[1])}return o},wl=function(e){return e.url?e.url:e.toString()},zD=function(){return"1-".concat(VD(),"-").concat(HD())},BD=function(){var e=new Uint8Array(16);return Id(e),"".concat(tg(e))},q1=function(){var e=new Uint8Array(8);return Id(e),tg(e)},VD=function(){return Math.floor(Date.now()/1e3).toString(16)},HD=function(){var e=new Uint8Array(12);return Id(e),tg(e)},tg=function(e){for(var t="",i=0;i<e.length;i++)t+=H1[e[i]];return t};var Y1=function(e,t,i,n){function o(r){return r instanceof i?r:new i(function(a){a(r)})}return new(i||(i=Promise))(function(r,a){function s(h){try{c(n.next(h))}catch(m){a(m)}}function l(h){try{c(n.throw(h))}catch(m){a(m)}}function c(h){h.done?r(h.value):o(h.value).then(s,l)}c((n=n.apply(e,t||[])).next())})},K1=function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(h){return l([c,h])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,o&&(r=c[0]&2?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,o=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(r=i.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){i.label=c[1];break}if(c[0]===6&&i.label<r[1]){i.label=r[1],r=c;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(c);break}r[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(h){c=[6,h],o=0}finally{n=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Q1=(function(){function e(t,i,n){n===void 0&&(n=function(o){return 2e3*Math.pow(2,o-1)}),this.handler=t,this.retries=i,this.backoff=n}return e.prototype.handle=function(t){return Y1(this,void 0,void 0,function(){var i,n,o;return K1(this,function(r){switch(r.label){case 0:i=this.retries,r.label=1;case 1:r.label=2;case 2:return r.trys.push([2,4,,6]),[4,this.handler.handle(t)];case 3:if(n=r.sent(),G1(n.response.statusCode))return[2,n];throw n.response.statusCode;case 4:if(o=r.sent(),typeof o=="number"&&!Va(o)&&!Ba(o))throw new Error("".concat(o));if(i<=0)throw o;return i--,[4,this.sleep(this.backoff(this.retries-i))];case 5:return r.sent(),[3,6];case 6:return[3,1];case 7:return[2]}})})},e.prototype.sleep=function(t){return Y1(this,void 0,void 0,function(){return K1(this,function(i){return[2,new Promise(function(n){return setTimeout(n,t)})]})})},e.prototype.updateHttpClientConfig=function(t,i){},e.prototype.httpHandlerConfigs=function(){return{}},e})();function J1(e){let t=[];for(let i of Object.keys(e).sort()){let n=e[i];if(i=Sn(i),Array.isArray(n))for(let o=0,r=n.length;o<r;o++)t.push(`${i}=${Sn(n[o])}`);else{let o=i;(n||typeof n=="string")&&(o+=`=${Sn(n)}
492`),t.push(o)}}return t.join("&")}function ig(e,t){return new Request(e,t)}function Z1(e=0){return new Promise((t,i)=>{e&&setTimeout(()=>{let n=new Error(`Request did not complete within ${e} ms`);n.name="TimeoutError",i(n)},e)})}var ng={supported:void 0},Ha=class e{static create(t){return typeof t?.handle=="function"?t:new e(t)}constructor(t){typeof t=="function"?this.configProvider=t().then(i=>i||{}):(this.config=t??{},this.configProvider=Promise.resolve(this.config)),ng.supported===void 0&&(ng.supported=typeof Request<"u"&&"keepalive"in ig("https://[::1]"))}destroy(){}handle(n){return pt(this,arguments,function*(t,{abortSignal:i}={}){this.config||(this.config=yield this.configProvider);let o=this.config.requestTimeout,r=this.config.keepAlive===!0,a=this.config.credentials;if(i?.aborted){let I=new Error("Request aborted");return I.name="AbortError",Promise.reject(I)}let s=t.path,l=J1(t.query||{});l&&(s+=`?${l}`),t.fragment&&(s+=`#${t.fragment}`);let c="";if(t.username!=null||t.password!=null){let I=t.username??"",F=t.password??"";c=`${I}:${F}@`}let{port:h,method:m}=t,f=`${t.protocol}//${c}${t.hostname}${h?`:${h}`:""}${s}`,b=m==="GET"||m==="HEAD"?void 0:t.body,_={body:b,headers:new Headers(t.headers),method:m,credentials:a};this.config?.cache&&(_.cache=this.config.cache),b&&(_.duplex="half"),typeof AbortController<"u"&&(_.signal=i),ng.supported&&(_.keepalive=r),typeof this.config.requestInit=="function"&&Object.assign(_,this.config.requestInit(t));let S=()=>{},M=ig(f,_),D=[fetch(M).then(I=>{let F=I.headers,W={};for(let Z of F.entries())W[Z[0]]=Z[1];return I.body!=null?{response:new Ln({headers:W,reason:I.statusText,statusCode:I.status,body:I.body})}:I.blob().then(Z=>({response:new Ln({headers:W,reason:I.statusText,statusCode:I.status,body:Z})}))}),Z1(o)];return i&&D.push(new Promise((I,F)=>{let W=()=>{let re=new Error("Request aborted");re.name="AbortError",F(re)};if(typeof i.addEventListener=="function"){let re=i;re.addEventListener("abort",W,{once:!0}),S=()=>re.removeEventListener("abort",W)}else i.onabort=W})),Promise.race(D).finally(S)})}updateHttpClientConfig(t,i){this.config=void 0,this.configProvider=this.configProvider.then(n=>(n[t]=i,n))}httpHandlerConfigs(){return this.config??{}}};var Rr={},Ga=new Array(64);for(let e=0,t=65,i=90;e+t<=i;e++){let n=String.fromCharCode(e+t);Rr[n]=e,Ga[e]=n}for(let e=0,t=97,i=122;e+t<=i;e++){let n=String.fromCharCode(e+t),o=e+26;Rr[n]=o,Ga[o]=n}for(let e=0;e<10;e++){Rr[e.toString(10)]=e+52;let t=e.toString(10),i=e+52;Rr[t]=i,Ga[i]=t}Rr["+"]=62;Ga[62]="+";Rr["/"]=63;Ga[63]="/";var X1=function(e,t,i,n){function o(r){return r instanceof i?r:new i(function(a){a(r)})}return new(i||(i=Promise))(function(r,a){function s(h){try{c(n.next(h))}catch(m){a(m)}}function l(h){try{c(n.throw(h))}catch(m){a(m)}}function c(h){h.done?r(h.value):o(h.value).then(s,l)}c((n=n.apply(e,t||[])).next())})},eb=function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(h){return l([c,h])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,o&&(r=c[0]&2?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,o=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(r=i.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){i.label=c[1];break}if(c[0]===6&&i.label<r[1]){i.label=r[1],r=c;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(c);break}r[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(h){c=[6,h],o=0}finally{n=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Bd=function(e){return X1(void 0,void 0,void 0,function(){var t;return eb(this,function(i){switch(i.label){case 0:return[4,e.body.getReader().read()];case 1:return t=i.sent().value,[2,JSON.parse(String.fromCharCode.apply(null,t))]}})})},tb=function(e){return X1(void 0,void 0,void 0,function(){var t;return eb(this,function(i){switch(i.label){case 0:return[4,e.body.getReader().read()];case 1:return t=i.sent().value,[2,String.fromCharCode.apply(null,t)]}})})};var Vd=function(){return Vd=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Vd.apply(this,arguments)},jD=function(e,t,i,n){function o(r){return r instanceof i?r:new i(function(a){a(r)})}
492return new(i||(i=Promise))(function(r,a){function s(h){try{c(n.next(h))}catch(m){a(m)}}function l(h){try{c(n.throw(h))}catch(m){a(m)}}function c(h){h.done?r(h.value):o(h.value).then(s,l)}c((n=n.apply(e,t||[])).next())})},WD=function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(h){return l([c,h])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,o&&(r=c[0]&2?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,o=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(r=i.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){i.label=c[1];break}if(c[0]===6&&i.label<r[1]){i.label=r[1],r=c;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(c);break}r[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(h){c=[6,h],o=0}finally{n=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},$D="POST",qD="application/x-www-form-urlencoded",YD="https:",KD="AssumeRoleWithWebIdentity",QD="2011-06-15",ib=(function(){function e(t){var i=this;this.assumeRoleWithWebIdentity=function(n){return jD(i,void 0,void 0,function(){var o,r,a,s,l,c;return WD(this,function(h){switch(h.label){case 0:return h.trys.push([0,3,,4]),o=Vd(Vd({},n),{Action:KD,Version:QD}),r=new URLSearchParams(Object.entries(o)).toString(),a=new Ui({method:$D,headers:{"content-type":qD,host:this.hostname},protocol:YD,hostname:this.hostname,body:r}),[4,this.fetchRequestHandler.handle(a)];case 1:return s=h.sent().response,[4,tb(s)];case 2:return l=h.sent(),[2,{accessKeyId:l.split("<AccessKeyId>")[1].split("</AccessKeyId>")[0],secretAccessKey:l.split("<SecretAccessKey>")[1].split("</SecretAccessKey>")[0],sessionToken:l.split("<SessionToken>")[1].split("</SessionToken>")[0],expiration:new Date(l.split("<Expiration>")[1].split("</Expiration>")[0])}];case 3:throw c=h.sent(),new Error("CWR: Failed to retrieve credentials from STS: ".concat(c));case 4:return[2]}})})},this.hostname="sts.".concat(t.region,".amazonaws.com"),this.fetchRequestHandler=t.fetchRequestHandler}return e})();var og=function(e,t,i,n){function o(r){return r instanceof i?r:new i(function(a){a(r)})}return new(i||(i=Promise))(function(r,a){function s(h){try{c(n.next(h))}catch(m){a(m)}}function l(h){try{c(n.throw(h))}catch(m){a(m)}}function c(h){h.done?r(h.value):o(h.value).then(s,l)}c((n=n.apply(e,t||[])).next())})},rg=function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(h){return l([c,h])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,o&&(r=c[0]&2?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,o=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(r=i.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){i.label=c[1];break}if(c[0]===6&&i.label<r[1]){i.label=r[1],r=c;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(c);break}r[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(h){c=[6,h],o=0}finally{n=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},JD="POST",ZD="application/x-amz-json-1.1",XD="https:",eP="AWSCognitoIdentityService.GetId",tP="AWSCognitoIdentityService.GetOpenIdToken",iP="AWSCognitoIdentityService.GetCredentialsForIdentity",nb=(function(){function e(t){var i=this,n;this.getId=function(o){return og(i,void 0,void 0,function(){var r,a,s,l,c,h,m;return rg(this,function(f){switch(f.label){case 0:r=null;try{r=JSON.parse(localStorage.getItem(this.identityStorageKey))}catch(b){!((m=this.config)===null||m===void 0)&&m.debug&&be.error("Failed to parse stored identity:",b)}if(r&&r.IdentityId)return[2,Promise.resolve(r)];f.label=1;case 1:return f.trys.push([1,4,,5]),a=JSON.stringify(o),s=this.getHttpRequest(eP,a),c=Bd,[4,this.fetchRequestHandler.handle(s)];case 2:return[4,c.apply(void 0,[f.sent().response])];case 3:l=f.sent();try{localStorage.setItem(this.identityStorageKey,JSON.stringify({IdentityId:l.IdentityId}))}catch(b){be.error("Failed to store identity:",b)}return[2,l];case 4:throw h=f.sent(),new Error("CWR: Failed to retrieve Cognito identity: ".concat(h));case 5:return[2]}})})},this.getOpenIdToken=function(o){return og(i,void 0,void 0,function(){var r,a,s,l,c;return rg(this,function(h){switch(h.label){case 0:return h.trys.push([0,3,,4]),r=J
492SON.stringify(o),a=this.getHttpRequest(tP,r),[4,this.fetchRequestHandler.handle(a)];case 1:return s=h.sent().response,l=this.validateOpenIdTokenResponse,[4,Bd(s)];case 2:return[2,l.apply(this,[h.sent()])];case 3:throw c=h.sent(),localStorage.removeItem(this.identityStorageKey),new Error("CWR: Failed to retrieve Cognito OpenId token: ".concat(c));case 4:return[2]}})})},this.getCredentialsForIdentity=function(o){return og(i,void 0,void 0,function(){var r,a,s,l,c,h,m,f,b,_;return rg(this,function(S){switch(S.label){case 0:return S.trys.push([0,3,,4]),r=JSON.stringify({IdentityId:o}),a=this.getHttpRequest(iP,r),[4,this.fetchRequestHandler.handle(a)];case 1:return s=S.sent().response,b=this.validateCredenentialsResponse,[4,Bd(s)];case 2:return l=b.apply(this,[S.sent()]),c=l.AccessKeyId,h=l.Expiration,m=l.SecretKey,f=l.SessionToken,[2,{accessKeyId:c,secretAccessKey:m,sessionToken:f,expiration:new Date(h*1e3)}];case 3:throw _=S.sent(),localStorage.removeItem(this.identityStorageKey),new Error("CWR: Failed to retrieve credentials for Cognito identity: ".concat(_));case 4:return[2]}})})},this.validateOpenIdTokenResponse=function(o){if("IdentityId"in o&&"Token"in o)return o;throw o&&"__type"in o&&"message"in o?new Error("".concat(o.__type,": ").concat(o.message)):new Error("Unknown OpenIdToken response")},this.validateCredenentialsResponse=function(o){if("IdentityId"in o&&"Credentials"in o)return o.Credentials;throw o&&"__type"in o&&"message"in o?new Error("".concat(o.__type,": ").concat(o.message)):new Error("Unknown Credentials response")},this.getHttpRequest=function(o,r){return new Ui({method:JD,headers:{"content-type":ZD,"x-amz-target":o},protocol:XD,hostname:i.hostname,body:r})},this.hostname="cognito-identity.".concat(t.region,".amazonaws.com"),this.fetchRequestHandler=t.fetchRequestHandler,this.config=t.clientConfig,this.identityStorageKey=!((n=t.clientConfig)===null||n===void 0)&&n.cookieAttributes.unique?"".concat(Aa,"_").concat(t.applicationId):Aa}return e})();var Hd=function(){return Hd=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Hd.apply(this,arguments)},ag=function(e,t,i,n){function o(r){return r instanceof i?r:new i(function(a){a(r)})}return new(i||(i=Promise))(function(r,a){function s(h){try{c(n.next(h))}catch(m){a(m)}}function l(h){try{c(n.throw(h))}catch(m){a(m)}}function c(h){h.done?r(h.value):o(h.value).then(s,l)}c((n=n.apply(e,t||[])).next())})},sg=function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(h){return l([c,h])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,o&&(r=c[0]&2?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,o=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(r=i.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){i.label=c[1];break}if(c[0]===6&&i.label<r[1]){i.label=r[1],r=c;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(c);break}r[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(h){c=[6,h],o=0}finally{n=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Gd=(function(){function e(t,i){var n=this;this.ChainAnonymousCredentialsProvider=function(){return ag(n,void 0,void 0,function(){return sg(this,function(r){return[2,this.AnonymousCredentialsProvider().catch(this.AnonymousStorageCredentialsProvider).catch(this.AnonymousCognitoCredentialsProvider)]})})},this.AnonymousCredentialsProvider=function(){return ag(n,void 0,void 0,function(){var r=this;return sg(this,function(a){return[2,new Promise(function(s,l){if(r.renewCredentials())return l();s(r.credentials)})]})})},this.AnonymousStorageCredentialsProvider=function(){return ag(n,void 0,void 0,function(){var r=this;return sg(this,function(a){return[2,new Promise(function(s,l){var c;try{c=JSON.parse(localStorage.getItem(r.credentialStorageKey))}catch{return l()}if(r.credentials=Hd(Hd({},c),{expiration:new Date(c.expiration)}),r.renewCredentials())return l();s(r.credentials)})]})})};var o=t.identityPoolId.split(":")[0];this.config=t,this.cognitoIdentityClient=new nb({fetchRequestHandler:new Ha,region:o,clientConfig:t,applicationId:i}),this.credentialStorageKey=this.config.cookieAttributes.unique?"".concat(Oa,"_").concat(i):Oa}return e.prototype.renewCredentials=function(){if(!this.credentials||!this.credentials.expiration)return!0;var t=new Date(this.credentials.expiration.getTime()-FC);return new Date>t},e})();var nP=(function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},e(t,i)};return function(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");e(t,i);function n(){this.constructor=t}
492t.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}})(),oP=function(e,t,i,n){function o(r){return r instanceof i?r:new i(function(a){a(r)})}return new(i||(i=Promise))(function(r,a){function s(h){try{c(n.next(h))}catch(m){a(m)}}function l(h){try{c(n.throw(h))}catch(m){a(m)}}function c(h){h.done?r(h.value):o(h.value).then(s,l)}c((n=n.apply(e,t||[])).next())})},rP=function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(h){return l([c,h])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,o&&(r=c[0]&2?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,o=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(r=i.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){i.label=c[1];break}if(c[0]===6&&i.label<r[1]){i.label=r[1],r=c;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(c);break}r[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(h){c=[6,h],o=0}finally{n=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},ob=(function(e){nP(t,e);function t(i,n){var o=e.call(this,i,n)||this;o.AnonymousCognitoCredentialsProvider=function(){return oP(o,void 0,void 0,function(){var a,s,l,c,h;return rP(this,function(m){switch(m.label){case 0:a=1,m.label=1;case 1:m.label=2;case 2:return m.trys.push([2,6,,7]),[4,this.cognitoIdentityClient.getId({IdentityPoolId:this.config.identityPoolId})];case 3:return s=m.sent(),[4,this.cognitoIdentityClient.getOpenIdToken(s)];case 4:return l=m.sent(),[4,this.stsClient.assumeRoleWithWebIdentity({RoleArn:this.config.guestRoleArn,RoleSessionName:"
492cwr",WebIdentityToken:l.Token})];case 5:c=m.sent(),this.credentials=c;try{localStorage.setItem(this.credentialStorageKey,JSON.stringify(c))}catch{}return be.debug("AWS credentials fetched successfully"),[2,c];case 6:if(h=m.sent(),a)a--,be.warn("AWS credential fetch failed, retrying");else throw be.error("AWS credential fetch failed:",h),h;return[3,7];case 7:return[3,1];case 8:return[2]}})})};var r=i.identityPoolId.split(":")[0];return o.stsClient=new ib({fetchRequestHandler:new Ha,region:r}),o}return t})(Gd);var aP=(function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},e(t,i)};return function(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");e(t,i);function n(){this.constructor=t}t.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}})(),sP=function(e,t,i,n){function o(r){return r instanceof i?r:new i(function(a){a(r)})}return new(i||(i=Promise))(function(r,a){function s(h){try{c(n.next(h))}catch(m){a(m)}}function l(h){try{c(n.throw(h))}catch(m){a(m)}}function c(h){h.done?r(h.value):o(h.value).then(s,l)}c((n=n.apply(e,t||[])).next())})},lP=function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(h){return l([c,h])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,o&&(r=c[0]&2?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,o=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(r=i.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){i.label=c[1];break}if(c[0]===6&&i.label<r[1]){i.label=r[1],r=c;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(c);break}r[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(h){c=[6,h],o=0}finally{n=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},rb=(function(e){aP(t,e);function t(i,n){var o=e.call(this,i,n)||this;return o.AnonymousCognitoCredentialsProvider=function(){return sP(o,void 0,void 0,function(){var r,a,s,l;return lP(this,function(c){switch(c.label){case 0:r=1,c.label=1;case 1:c.label=2;case 2:return c.trys.push([2,5,,6]),[4,this.cognitoIdentityClient.getId({IdentityPoolId:this.config.identityPoolId})];case 3:return a=c.sent(),[4,this.cognitoIdentityClient.getCredentialsForIdentity(a.IdentityId)];case 4:s=c.sent(),this.credentials=s;try{localStorage.setItem(this.credentialStorageKey,JSON.stringify(s))}catch{}return be.debug("AWS credentials fetched successfully"),[2,s];case 5:if(l=c.sent(),r)r--,be.warn("AWS credential fetch failed, retrying");else throw be.error("AWS credential fetch failed:",l),l;return[3,6];case 6:return[3,1];case 7:return[2]}})})},o}return t})(Gd);var Ud=function(e,t,i,n){function o(r){return r instanceof i?r:new i(function(a){a(r)})}return new(i||(i=Promise))(function(r,a){function s(h){try{c(n.next(h))}catch(m){a(m)}}function l(h){try{c(n.throw(h))}catch(m){a(m)}}function c(h){h.done?r(h.value):o(h.value).then(s,l)}c((n=n.apply(e,t||[])).next())})},jd=function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(h){return l([c,h])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,o&&(r=c[0]&2?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,o=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(r=i.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){i.label=c[1];break}if(c[0]===6&&i.label<r[1]){i.label=r[1],r=c;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(c);break}r[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(h){c=[6,h],o=0}finally{n=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},ab="CWR: Cannot dispatch; no AWS credentials.",sb=(function(){function e(t,i,n,o,r){var a=this;this.disableCodes=["403","404"],this.shouldPurgeCredentials=!0,this.dispatchFetch=function(){return Ud(a,void 0,void 0,function(){var s;return jd(this,function(l){return this.doRequest()?(s=this.createRequest(),be.info("Dispatching ".concat(s.RumEvents.length," events via fetch")),[2,this.rum.sendFetch(s).catch(this.handleReject)]):[2]})})},this.dispatchBeacon=function(){return Ud(a,void 0,void 0,function(){var s,l=this;return jd(this,function(c){return this.doRequest()?(s=this.createRequest(),be.info("Dispatching ".concat(s.RumEvents.length," events via beacon")),[2,this.rum.sendBeacon(s).catch(function(){return l.rum.sendFetch(s)})]):[2]})})},this.dispatchFetchFailSilent=function(){return Ud(a,void 0,void 0,function(){return jd(this,function(s){return[2,this.dispatchFetch().catch(function(l){be.error("Dispatch fetch failed silently:",l)})]})})},this.dispatchBeaconFailSilent=function(){return Ud(a,void 0,void 0,function(){return jd(this,function(s){return[2,this.dispatchBeacon().catch(function(l){be.error("Dispatch beacon failed silently:",l)})]})})},this.flushSync=function(){var s;if(document.visibilityState==="hidden"&&a.doRequest(!0)){var l=a.rum.sendBeacon,c=a.rum.sendFetch;a.config.useBeacon||(s=[c,l],l=s[0],c=s[1]);var h=a.createRequest(!0);be.debug("Flushing ".concat(h.RumEvents.length," events on page hide")),l(h).catch(function(){return c(h)}).catch(function(m){be.error("Page hide flush failed:",m)})}},this.handleReject=function(s){throw s instanceof Error&&(s.message==="403"&&a.config.signing&&a.shouldPurgeCredentials?(a.shouldPurgeCredentials=!1,a.forceRebuildClient()):a.disableCodes.includes(s.message)&&(be.error("Dispatch failed with status code:",s.message),a.disable())),s},this.defaultClientBuilder=function(s,l,c,h){return new N1({fetchRequestHandler:new Q1(new V1({fetchFunction:a.config.fetchFunction}),a.config.retries),beaconRequestHandler:new z1,endpoint:s,region:l,credentials:c,headers:a.headers,compressionStrategy:h})},this.applicationId=t,this.region=i,this.endpoint=n,this.eventCache=o,this.enabled=!0,this.buildClient=r.clientBuilder||this.defaultClientBuilder,this.config=r,this.headers=r.headers,this.startDispatchTimer(),r.signing?this.rum={sendFetch:function(){return Promise.reject(new Error(ab))},sendBeacon:function(){return Promise.reject(new Error(ab))}}:this.rum=this.buildClient(this.endpoint,this.region,void 0,this.config.compressionStrategy),this.credentialStorageKey=this.config.cookieAttributes.unique?"".concat(Oa,"_").concat(t):Oa,this.identityStorageKey=this.config.cookieAttributes.unique?"".concat(Aa,"_").concat(t):Aa}return e.prototype.enable=function(){this.enabled=!0,this.startDispatchTimer()},e.prototype.disable=function(){this.stopDispatchTimer(),this.enabled=!1,be.warn("Dispatch disabled")},e.prototype.setAwsCredentials=function(t){this.credentialProvider=t,this.rum=this.buildClient(this.endpoint,this.region,t,this.config.compressionStrategy),typeof t=="function"&&t()},e.prototype.setCognitoCredentials=function(t,i){t&&i?this.setAwsCredentials(new ob(this.config,this.applicationId).ChainAnonymousCredentialsProvider):this.setAwsCredentials(new rb(this.config,this.applicationId).ChainAnonymousCredentialsProvider)},e.prototype.startDispatchTimer=function(){document.addEventListener("visibilitychange",this.flushSync),document.addEventListener("pagehide",this.flushSync),!(this.config.dispatchInterval<=0||this.dispatchTimerId)&&(this.dispatchTimerId=window.setInterval(this.dispatchFetchFailSilent,this.config.dispatchInterval))},e.prototype.stopDispatchTimer=function(){document.removeEventListener("visibilitychange",this.flushSync),document.removeEventListener("pagehide",this.flushSync),this.dispatchTimerId&&(window.clearInterval(this.dispatchTimerId),this.dispatchTimerId=void 0)},e.prototype.doRequest=function(t){return t===void 0&&(t=!1),this.enabled?t&&this.eventCache.hasCandidates()?!0:this.eventCache.hasEvents():!1},e.prototype.createRequest=function(t){return t===void 0&&(t=!1),{BatchId:mo(),AppMonitorDetails:this.eventCache.getAppMonitorDetails(),UserDetails:this.eventCache.getUserDetails(),RumEvents:this.eventCache.getEventBatch(t),Alias:this.config.alias}},e.prototype.forceRebuildClient=function(){be.warn("Removing credentials from local storage"),localStorage.removeItem(this.credentialStorageKey),this.config.identityPoolId?(be.info("Rebuilding client with fresh cognito credentials"),localStorage.removeItem(this.identityStorageKey),this.setCognitoCredentials(this.config.identityPoolId,this.config.guestRoleArn)):this.credentialProvider&&(be.info("Rebuilding client with most recently passed provider"),this.setAwsCredentials(this.credentialProvider))},e})();var yt=(function(e){return e.OTHER="other",e.STYLESHEET="stylesheet",e.DOCUMENT="document",e.SCRIPT="script",e.IMAGE="image",e.FONT="font",e})(yt||{}),Yo=(function(e){return e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.FRAME="frame",e.SCRIPT="script",e.CSS="css",e})(Yo||{}),lg=function(e){return[e.startTime,e.duration].join("#")},cP=[{name:yt.STYLESHEET,list:["css","less"]},{name:yt.DOCUMENT,list:["htm","html","ts","doc","docx","pdf","xls","xlsx"]},{name:yt.SCRIPT,list:["js"]},{name:yt.IMAGE,list:["ai","bmp","gif","ico","jpeg","jpg","png","ps","psd","svg","tif","tiff"]},{name:yt.FONT,list:["fnt","fon","otf","ttf","woff"]}],cg=function(e,t){var i=yt.OTHER;if(e){var n=e.substring(e.lastIndexOf("/")+1),o=n.substring(n.lastIndexOf(".")+1).split(/[?#]/)[0];cP.forEach(function(r){r.list.indexOf(o)>-1&&(i=r.name)})}if(t&&i===yt.OTHER)switch(t){case Yo.IMAGE:case Yo.IMG:case Yo.INPUT:i=yt.IMAGE;break;case Yo.IFRAME:case Yo.FRAME:i=yt.DOCUMENT;break;
492case Yo.SCRIPT:i=yt.SCRIPT;break;case Yo.CSS:i=yt.STYLESHEET;break}return i};var lb=function(){return PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")};var dP=/\/appmonitors\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/,cb=function(e,t){try{return new URL(e).hostname===t&&dP.test(e)}catch{return!1}};var uP=function(e){return e.entryType==="resource"&&(!/^https?:/.test(e.name)||/^(fetch|xmlhttprequest)$/.test(e.initiatorType))},Ua={eventLimit:10,ignore:uP,recordAllTypes:[yt.DOCUMENT,yt.SCRIPT,yt.STYLESHEET,yt.FONT],sampleTypes:[yt.IMAGE,yt.OTHER],reportAllLCP:!1,reportAllCLS:!1,reportAllINP:!1};var pP=(function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},e(t,i)};return function(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");e(t,i);function n(){this.constructor=t}t.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}})(),Wd=function(){return Wd=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Wd.apply(this,arguments)},hP="navigation",ja="navigation",dg="load",db=(function(e){pP(t,e);function t(i){var n=e.call(this,hP)||this;return n.eventListener=function(){if(performance.getEntriesByType(ja).length===0)n.performanceNavigationEventHandlerTimingLevel1();else{var o=new PerformanceObserver(function(r){r.getEntries().filter(function(a){return a.entryType===ja}).filter(function(a){return!n.config.ignore(a)}).forEach(function(a){n.performanceNavigationEventHandlerTimingLevel2(a)})});o.observe({entryTypes:[ja]})}},n.performanceNavigationEventHandlerTimingLevel1=function(){var o=function(){var r,a=performance.timing,s=a.navigationStart,l={version:"1.0.0",initiatorType:"navigation",startTime:0,unloadEventStart:a.unloadEventStart>0?a.unloadEventStart-s:0,promptForUnload:a.unloadEventEnd-a.unloadEventStart,redirectStart:a.redirectStart>0?a.redirectStart-s:0,redirectTime:a.redirectEnd-a.redirectStart,fetchStart:a.fetchStart>0?a.fetchStart-s:0,domainLookupStart:a.domainLookupStart>0?a.domainLookupStart-s:0,dns:a.domainLookupEnd-a.domainLookupStart,connectStart:a.connectStart>0?a.connectStart-s:0,connect:a.connectEnd-a.connectStart,secureConnectionStart:a.secureConnectionStart>0?a.secureConnectionStart-s:0,tlsTime:a.secureConnectionStart>0?a.connectEnd-a.secureConnectionStart:0,requestStart:a.requestStart>0?a.requestStart-s:0,timeToFirstByte:a.responseStart-a.requestStart,responseStart:a.responseStart>0?a.responseStart-s:0,responseTime:a.responseStart>0?a.responseEnd-a.responseStart:0,domInteractive:a.domInteractive>0?a.domInteractive-s:0,domContentLoadedEventStart:a.domContentLoadedEventStart>0?a.domContentLoadedEventStart-s:0,domContentLoaded:a.domContentLoadedEventEnd-a.domContentLoadedEventStart,domComplete:a.domComplete>0?a.domComplete-s:0,domProcessingTime:a.loadEventStart-a.responseEnd,loadEventStart:a.loadEventStart>0?a.loadEventStart-s:0,loadEventTime:a.loadEventEnd-a.loadEventStart,duration:a.loadEventEnd-a.navigationStart,navigationTimingLevel:1};!((r=n.context)===null||r===void 0)&&r.record&&n.context.record(Dr,l)};setTimeout(o,0)},n.performanceNavigationEventHandlerTimingLevel2=function(o){var r,a={version:"1.0.0",initiatorType:o.initiatorType,navigationType:o.type,startTime:o.startTime,unloadEventStart:o.unloadEventStart,promptForUnload:o.unloadEventEnd-o.unloadEventStart,redirectCount:o.redirectCount,redirectStart:o.redirectStart,redirectTime:o.redirectEnd-o.redirectStart,workerStart:o.workerStart,workerTime:o.workerStart>0?o.fetchStart-o.workerStart:0,fetchStart:o.fetchStart,domainLookupStart:o.domainLookupStart,dns:o.domainLookupEnd-o.domainLookupStart,nextHopProtocol:o.nextHopProtocol,connectStart:o.connectStart,connect:o.connectEnd-o.connectStart,secureConnectionStart:o.secureConnectionStart,tlsTime:o.secureConnectionStart>0?o.connectEnd-o.secureConnectionStart:0,requestStart:o.requestStart,timeToFirstByte:o.responseStart-o.requestStart,responseStart:o.responseStart,responseTime:o.responseStart>0?o.responseEnd-o.responseStart:0,domInteractive:o.domInteractive,domContentLoadedEventStart:o.domContentLoadedEventStart,domContentLoaded:o.domContentLoadedEventEnd-o.domContentLoadedEventStart,domComplete:o.domComplete,domProcessingTime:o.loadEventStart-o.responseEnd,loadEventStart:o.loadEventStart,loadEventTime:o.loadEventEnd-o.loadEventStart,duration:o.duration,headerSize:o.transferSize>0?o.transferSize-o.encodedBodySize:0,transferSize:o.transferSize,compressionRatio:o.encodedBodySize>0?o.decodedBodySize/o.encodedBodySize:0,navigationTimingLevel:2};!((r=n.context)===null||r===void 0)&&r.record&&n.context.record(Dr,a)},n.config=Wd(Wd({},Ua),i),n}return t.prototype.enable=function(){this.enabled||(this.enabled=!0,window.addEventListener(dg,this.eventListener))},t.prototype.disable=function(){this.enabled&&(this.enabled=!1,this.eventListener&&window.removeEventListener(dg,this.eventListener))},t.prototype.hasTheWindowLoadEventFired=function(){if(window.performance&&window.performance.getEntriesByType(ja).length){var i=window.performance.getEntriesByType(ja)[0];return!!i.loadEventEnd}return!1},t.prototype.onload=function(){var i=this;this.enabled&&(this.hasTheWindowLoadEventFired()?window.performance.getEntriesByType(ja).filter(function(n){return!i.config.ignore(n)}
492).forEach(function(n){return i.performanceNavigationEventHandlerTimingLevel2(n)}):window.addEventListener(dg,this.eventListener))},t})(Pi);var gP=(function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},e(t,i)};return function(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");e(t,i);function n(){this.constructor=t}t.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}})(),$d=function(){return $d=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},$d.apply(this,arguments)},mP="resource",ug="resource",ub=(function(e){gP(t,e);function t(i){var n=e.call(this,mP)||this;return n.performanceEntryHandler=function(o){n.recordPerformanceEntries(o.getEntries())},n.recordPerformanceEntries=function(o){o.forEach(function(r){if(!(r.entryType!==ug||n.config.ignore(r))){var a=r,s=a.name,l=a.initiatorType,c=cg(s,l);n.config.recordAllTypes.includes(c)?n.recordResourceEvent(r):n.config.sampleTypes.includes(c)&&n.eventCount<n.config.eventLimit&&(n.recordResourceEvent(r),n.eventCount++)}})},n.recordResourceEvent=function(o){var r,a=o.name,s=o.startTime,l=o.initiatorType,c=o.duration,h=o.transferSize;if(!cb(a,n.context.config.endpointUrl.hostname)&&!((r=n.context)===null||r===void 0)&&r.record){var m={version:"1.0.0",initiatorType:l,startTime:s,duration:c,fileType:cg(a,l),transferSize:h};n.context.config.recordResourceUrl&&(m.targetUrl=a),n.context.record(Zc,m)}},n.config=$d($d({},Ua),i),n.eventCount=0,n.resourceObserver=new PerformanceObserver(n.performanceEntryHandler),n}return t.prototype.enable=function(){this.enabled||(this.enabled=!0,this.resourceObserver.observe({type:ug,buffered:!0}))},t.prototype.disable=function(){this.enabled&&(this.enabled=!1,this.resourceObserver.disconnect())},t.prototype.onload=function(){this.resourceObserver.observe({type:ug,buffered:!0})},t})(Pi);var gg,pb,Qd=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},vg=function(e){if(document.readyState==="loading")return"loading";var t=Qd();if(t){if(e<t.domInteractive)return"loading";if(t.domContentLoadedEventStart===0||e<t.domContentLoadedEventStart)return"dom-interactive";if(t.domComplete===0||e<t.domComplete)return"dom-content-loaded"}return"complete"},fP=function(e){var t=e.nodeName;return e.nodeType===1?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},Jd=function(e,t){var i="";try{for(;e&&e.nodeType!==9;){var n=e,o=n.id?"#"+n.id:fP(n)+(n.classList&&n.classList.value&&n.classList.value.trim()&&n.classList.value.trim().length?"."+n.classList.value.trim().replace(/\s+/g,"."):"");if(i.length+o.length>(t||100)-1)return i||o;if(i=i?o+">"+i:o,n.id)break;e=n.parentNode}}catch{}return i},yb=-1,vP=function(){return yb},Ya=function(e){addEventListener("pageshow",function(t){t.persisted&&(yb=t.timeStamp,e(t))},!0)},Cg=function(){var e=Qd();return e&&e.activationStart||0},zn=function(e,t){var i=Qd(),n="navigate";return vP()>=0?n="back-forward-cache":i&&(document.prerendering||Cg()>0?n="prerender":document.wasDiscarded?n="restore":i.type&&(n=i.type.replace(/_/g,"-"))),{name:e,value:t===void 0?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},Fr=function(e,t,i){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver(function(o){Promise.resolve().then(function(){t(o.getEntries())})});return n.observe(Object.assign({type:e,buffered:!0},i||{})),n}}catch{}},Bn=function(e,t,i,n){var o,r;return function(a){t.value>=0&&(a||n)&&((r=t.value-(o||0))||o===void 0)&&(o=t.value,t.delta=r,t.rating=(function(s,l){return s>l[1]?"poor":s>l[0]?"needs-improvement":"good"})(t.value,i),e(t))}},bg=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},El=function(e){document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&e()})},Zd=function(e){var t=!1;return function(){t||(e(),t=!0)}},Wa=-1,hb=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},Yd=function(e){document.visibilityState==="hidden"&&Wa>-1&&(Wa=e.type==="visibilitychange"?e.timeStamp:0,CP())},gb=function(){addEventListener("visibilitychange",Yd,!0),addEventListener("prerenderingchange",Yd,!0)},CP=function(){removeEventListener("visibilitychange",Yd,!0),removeEventListener("prerenderingchange",Yd,!0)},_g=function(){return Wa<0&&(Wa=hb(),gb(),Ya(function(){setTimeout(function(){Wa=hb(),gb()},0)})),{get firstHiddenTime(){return Wa}}},Xd=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},mb=[1800,3e3],bP=function(e,t){t=t||{},Xd(function(){var i,n=_g(),o=zn("FCP"),r=Fr("paint",function(a){a.forEach(function(s){s.name==="first-contentful-paint"&&(r.disconnect(),s.startTime<n.firstHiddenTime&&(o.value=Math.max(s.startTime-Cg(),0),o.entries.push(s),i(!0)))})});r&&(i=Bn(e,o,mb,t.reportAllChanges),Ya(function(a){o=zn("FCP"),i=Bn(e,o,mb,t.reportAllChanges),bg(function(){o.value=performance.now()-a.timeStamp,i(!0)})}))})},fb=[.1,.25],wb=function(e,t){(function(i,n){n=n||{},bP(Zd(function(){var o,r=zn("CLS",0),a=0,s=[],l=function(h){h.forEach(function(m){if(!m.hadRecentInput){var f=s[0],b=s[s.length-1];a&&m.startTime-b.startTime<1e3&&m.startTime-f.startTime<5e3?(a+=m.value,s.push(m)):(a=m.value,s=[m])}}),a>r.value&&(r.value=a,r.entries=s,o())},c=Fr("layout-shift",l);c&&(o=Bn(i,r,fb,n.reportAllChanges),El(function(){l(c.takeRecords()),o(!0)}),Ya(function(){a=0,r=zn("CLS",0),o=Bn(i,r,fb,n.reportAllChanges),bg(function(){return o()})}),setTimeout(o,0))}))})(function(i){var n=(function(o){var r,a={};
492if(o.entries.length){var s=o.entries.reduce(function(c,h){return c&&c.value>h.value?c:h});if(s&&s.sources&&s.sources.length){var l=(r=s.sources).find(function(c){return c.node&&c.node.nodeType===1})||r[0];l&&(a={largestShiftTarget:Jd(l.node),largestShiftTime:s.startTime,largestShiftValue:s.value,largestShiftSource:l,largestShiftEntry:s,loadState:vg(s.startTime)})}}return Object.assign(o,{attribution:a})})(i);e(n)},t)};var xb=0,pg=1/0,qd=0,_P=function(e){e.forEach(function(t){t.interactionId&&(pg=Math.min(pg,t.interactionId),qd=Math.max(qd,t.interactionId),xb=qd?(qd-pg)/7+1:0)})},Sb=function(){return gg?xb:performance.interactionCount||0},yP=function(){"interactionCount"in performance||gg||(gg=Fr("event",_P,{type:"event",buffered:!0,durationThreshold:0}))},kn=[],Sl=new Map,kb=0,wP=function(){var e=Math.min(kn.length-1,Math.floor((Sb()-kb)/50));return kn[e]},Eb=[],xP=function(e){if(Eb.forEach(function(o){return o(e)}),e.interactionId||e.entryType==="first-input"){var t=kn[kn.length-1],i=Sl.get(e.interactionId);if(i||kn.length<10||e.duration>t.latency){if(i)e.duration>i.latency?(i.entries=[e],i.latency=e.duration):e.duration===i.latency&&e.startTime===i.entries[0].startTime&&i.entries.push(e);else{var n={id:e.interactionId,latency:e.duration,entries:[e]};Sl.set(n.id,n),kn.push(n)}kn.sort(function(o,r){return r.latency-o.latency}),kn.length>10&&kn.splice(10).forEach(function(o){return Sl.delete(o.id)})}}},yg=function(e){var t=self.requestIdleCallback||self.setTimeout,i=-1;return e=Zd(e),document.visibilityState==="hidden"?e():(i=t(e),El(e)),i},vb=[200,500],SP=function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},Xd(function(){var i;yP();var n,o=zn("INP"),r=function(s){yg(function(){s.forEach(xP);var l=wP();l&&l.latency!==o.value&&(o.value=l.latency,o.entries=l.entries,n())})},a=Fr("event",r,{durationThreshold:(i=t.durationThreshold)!==null&&i!==void 0?i:40});n=Bn(e,o,vb,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),El(function(){r(a.takeRecords()),n(!0)}),Ya(function(){kb=Sb(),kn.length=0,Sl.clear(),o=zn("INP"),n=Bn(e,o,vb,t.reportAllChanges)}))}))},$a=[],Ko=[],mg=0,wg=new WeakMap,qa=new Map,fg=-1,kP=function(e){$a=$a.concat(e),Mb()},Mb=function(){fg<0&&(fg=yg(EP))},EP=function(){qa.size>10&&qa.forEach(function(a,s){Sl.has(s)||qa.delete(s)});var e=kn.map(function(a){return wg.get(a.entries[0])}),t=Ko.length-50;Ko=Ko.filter(function(a,s){return s>=t||e.includes(a)});for(var i=new Set,n=0;n<Ko.length;n++){var o=Ko[n];Ib(o.startTime,o.processingEnd).forEach(function(a){i.add(a)})}var r=$a.length-1-50;$a=$a.filter(function(a,s){return a.startTime>mg&&s>r||i.has(a)}),fg=-1};Eb.push(function(e){e.interactionId&&e.target&&!qa.has(e.interactionId)&&qa.set(e.interactionId,e.target)},function(e){var t,i=e.startTime+e.duration;mg=Math.max(mg,e.processingEnd);for(var n=Ko.length-1;n>=0;n--){var o=Ko[n];if(Math.abs(i-o.renderTime)<=8){(t=o).startTime=Math.min(e.startTime,t.startTime),t.processingStart=Math.min(e.processingStart,t.processingStart),t.processingEnd=Math.max(e.processingEnd,t.processingEnd),t.entries.push(e);break}}t||(t={startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,renderTime:i,entries:[e]},Ko.push(t)),(e.interactionId||e.entryType==="first-input")&&wg.set(e,t),Mb()});var Qo,kl,Tb,Kd,Ib=function(e,t){for(var i,n=[],o=0;i=$a[o];o++)if(!(i.startTime+i.duration<e)){if(i.startTime>t)break;n.push(i)}return n},Db=function(e,t){pb||(pb=Fr("long-animation-frame",kP)),SP(function(i){var n=(function(o){var r=o.entries[0],a=wg.get(r),s=r.processingStart,l=a.processingEnd,c=a.entries.sort(function(M,D){return M.processingStart-D.processingStart}),h=Ib(r.startTime,l),m=o.entries.find(function(M){return M.target}),f=m&&m.target||qa.get(r.interactionId),b=[r.startTime+r.duration,l].concat(h.map(function(M){return M.startTime+M.duration})),_=Math.max.apply(Math,b),S={interactionTarget:Jd(f),interactionTargetElement:f,interactionType:r.name.startsWith("key")?"keyboard":"pointer",interactionTime:r.startTime,nextPaintTime:_,processedEventEntries:c,longAnimationFrameEntries:h,inputDelay:s-r.startTime,processingDuration:l-s,presentationDelay:Math.max(_-l,0),loadState:vg(r.startTime)};return Object.assign(o,{attribution:S})})(i);e(n)},t)},Cb=[2500,4e3],hg={},Pb=function(e,t){(function(i,n){n=n||{},Xd(function(){var o,r=_g(),a=zn("LCP"),s=function(h){n.reportAllChanges||(h=h.slice(-1)),h.forEach(function(m){m.startTime<r.firstHiddenTime&&(a.value=Math.max(m.startTime-Cg(),0),a.entries=[m],o())})},l=Fr("largest-contentful-paint",s);if(l){o=Bn(i,a,Cb,n.reportAllChanges);var c=Zd(function(){hg[a.id]||(s(l.takeRecords()),l.disconnect(),hg[a.id]=!0,o(!0))});["keydown","click"].forEach(function(h){addEventListener(h,function(){return yg(c)},{once:!0,capture:!0})}),El(c),Ya(function(h){a=zn("LCP"),o=Bn(i,a,Cb,n.reportAllChanges),bg(function(){a.value=performance.now()-h.timeStamp,hg[a.id]=!0,o(!0)})})}})})(function(i){var n=(function(o){var r={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:o.value};
492if(o.entries.length){var a=Qd();if(a){var s=a.activationStart||0,l=o.entries[o.entries.length-1],c=l.url&&performance.getEntriesByType("resource").filter(function(_){return _.name===l.url})[0],h=Math.max(0,a.responseStart-s),m=Math.max(h,c?(c.requestStart||c.startTime)-s:0),f=Math.max(m,c?c.responseEnd-s:0),b=Math.max(f,l.startTime-s);r={element:Jd(l.element),timeToFirstByte:h,resourceLoadDelay:m-h,resourceLoadDuration:f-m,elementRenderDelay:b-f,navigationEntry:a,lcpEntry:l},l.url&&(r.url=l.url),c&&(r.lcpResourceEntry=c)}}return Object.assign(o,{attribution:r})})(i);e(n)},t)};var xl={passive:!0,capture:!0},MP=new Date,bb=function(e,t){Qo||(Qo=t,kl=e,Tb=new Date,Fb(removeEventListener),Rb())},Rb=function(){if(kl>=0&&kl<Tb-MP){var e={entryType:"first-input",name:Qo.type,target:Qo.target,cancelable:Qo.cancelable,startTime:Qo.timeStamp,processingStart:Qo.timeStamp+kl};Kd.forEach(function(t){t(e)}),Kd=[]}},TP=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;e.type=="pointerdown"?(function(i,n){var o=function(){bb(i,n),a()},r=function(){a()},a=function(){removeEventListener("pointerup",o,xl),removeEventListener("pointercancel",r,xl)};addEventListener("pointerup",o,xl),addEventListener("pointercancel",r,xl)})(t,e):bb(t,e)}},Fb=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,TP,xl)})},_b=[100,300],IP=function(e,t){t=t||{},Xd(function(){var i,n=_g(),o=zn("FID"),r=function(l){l.startTime<n.firstHiddenTime&&(o.value=l.processingStart-l.startTime,o.entries.push(l),i(!0))},a=function(l){l.forEach(r)},s=Fr("first-input",a);i=Bn(e,o,_b,t.reportAllChanges),s&&(El(Zd(function(){a(s.takeRecords()),s.disconnect()})),Ya(function(){var l;o=zn("FID"),i=Bn(e,o,_b,t.reportAllChanges),Kd=[],kl=-1,Qo=null,Fb(addEventListener),l=r,Kd.push(l),Rb()}))})},Ob=function(e,t){IP(function(i){var n=(function(o){var r=o.entries[0],a={eventTarget:Jd(r.target),eventType:r.name,eventTime:r.startTime,eventEntry:r,loadState:vg(r.startTime)};return Object.assign(o,{attribution:a})})(i);e(n)},t)};var DP=(function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},e(t,i)};return function(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");e(t,i);function n(){this.constructor=t}t.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}})(),eu=function(){return eu=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},eu.apply(this,arguments)},PP="web-vitals",Ab=(function(e){DP(t,e);function t(i){var n=e.call(this,PP)||this;return n.resourceEventIds=new Map,n.cacheLCPCandidates=lb(),n.handleEvent=function(o){switch(o.type){case Zc:var r=o.details;n.cacheLCPCandidates&&r.fileType===yt.IMAGE&&n.resourceEventIds.set(lg(o.details),o.id);break;case Dr:n.navigationEventId=o.id;break}},n.config=eu(eu({},Ua),i),n}return t.prototype.enable=function(){},t.prototype.disable=function(){},t.prototype.onload=function(){var i=this;this.context.eventBus.subscribe(Na.EVENT,this.handleEvent),Pb(function(n){return i.handleLCP(n)},{reportAllChanges:this.config.reportAllLCP}),Ob(function(n){return i.handleFID(n)}),wb(function(n){return i.handleCLS(n)},{reportAllChanges:!0}),Db(function(n){return i.handleINP(n)},{reportAllChanges:!0})},t.prototype.handleLCP=function(i){var n,o,r=i.attribution,a={element:r?.element,url:r?.url,timeToFirstByte:r?.t
492imeToFirstByte,resourceLoadDelay:r?.resourceLoadDelay,resourceLoadTime:r?.resourceLoadDuration,elementRenderDelay:r?.elementRenderDelay};if(r?.lcpResourceEntry){var s=lg(r?.lcpResourceEntry);a.lcpResourceEntry=this.resourceEventIds.get(s)}this.navigationEventId&&(a.navigationEntry=this.navigationEventId),(n=this.context)===null||n===void 0||n.record(yC,{version:"1.0.0",value:i.value,attribution:a}),(o=this.context)===null||o===void 0||o.eventBus.unsubscribe(Na.EVENT,this.handleEvent),this.resourceEventIds.clear(),this.navigationEventId=void 0},t.prototype.handleCLS=function(i){var n=i.attribution,o=this.context,r=o.record,a=o.recordCandidate;(this.config.reportAllCLS?r:a)(xC,{version:"1.0.0",value:i.value,attribution:{largestShiftTarget:n?.largestShiftTarget,largestShiftValue:n?.largestShiftValue,largestShiftTime:n?.largestShiftTime,loadState:n?.loadState}})},t.prototype.handleFID=function(i){var n,o=i.attribution;(n=this.context)===null||n===void 0||n.record(wC,{version:"1.0.0",value:i.value,attribution:{eventTarget:o?.eventTarget,eventType:o?.eventType,eventTime:o?.eventTime,loadState:o?.loadState}})},t.prototype.handleINP=function(i){var n=i.attribution,o=this.context,r=o.record,a=o.recordCandidate;(this.config.reportAllINP?r:a)(SC,{version:"1.0.0",value:i.value,attribution:{interactionTarget:n?.interactionTarget,interactionTime:n?.interactionTime,nextPaintTime:n?.nextPaintTime,interactionType:n?.interactionType,inputDelay:n?.inputDelay,processingDuration:n?.processingDuration,presentationDelay:n?.presentationDelay,loadState:n?.loadState}})},t})(Pi);var RP=(function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},e(t,i)};return function(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");e(t,i);function n(){this.constructor=t}t.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}})(),Lb=(function(e){RP(t,e);function t(i){var n=e.call(this,i)||this;return n.name="XMLHttpRequest error",n}return t})(Error);var FP=(function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},e(t,i)};return function(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");e(t,i);function n(){this.constructor=t}t.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}})(),tu=function(){return tu=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},tu.apply(this,arguments)},OP="xhr",Nb=(function(e){FP(t,e);function t(i){var n=e.call(this,OP)||this;return n.addXRayTraceIdHeader=function(o){return Dd(o,n.config.addXRayTraceIdHeader)},n.isTracingEnabled=function(){return n.context.config.enableXRay},n.isSessionRecorded=function(){var o;return((o=n.context.getSession())===null||o===void 0?void 0:o.record)||!1},n.handleXhrLoadEvent=function(o){var r=o.target,a=n.xhrMap.get(r);if(a){var s=qo();a.trace.end_time=s,a.trace.subsegments[0].end_time=s,a.trace.subsegments[0].http.response={status:r.status},Va(r.status)?(a.trace.subsegments[0].throttle=!0,a.trace.throttle=!0):Rd(r.status)?(a.trace.subsegments[0].error=!0,a.trace.error=!0):Ba(r.status)&&(a.trace.subsegments[0].fault=!0,a.trace.fault=!0);var l=r.getResponseHeader("Content-Length"),c=l?parseInt(l,10):NaN;isNaN(c)||(a.trace.subsegments[0].http.response.content_length=c),n.recordTraceEvent(a.trace),n.recordHttpEventWithResponse(a,r)}},n.handleXhrErrorEvent=function(o){var r=o.target,a=n.xhrMap.get(r),s="XMLHttpRequest error",l=r.statusText?r.status.toString()+": "+r.statusText:r.status.toString();if(a){var c=qo();a.trace.fault=!0,a.trace.end_time=c,a.trace.subsegments[0].end_time=c,a.trace.subsegments[0].fault=!0,a.trace.subsegments[0].cause={exceptions:[{type:s,message:l}]},n.recordTraceEvent(a.trace),n.recordHttpEventWithError(a,r,new Lb(l))}},n.handleXhrAbortEvent=function(o){var r=o.target,a=n.xhrMap.get(r);a&&n.handleXhrDetailsOnError(a,r,"XMLHttpRequest abort")},n.handleXhrTimeoutEvent=function(o){var r=o.target,a=n.xhrMap.get(r),s="XMLHttpRequest timeout";n.handleXhrDetailsOnError(a,r,s)},n.initializeTrace=function(o){var r=qo();o.trace=Od(n.config.logicalServiceName,r,n.context.config.enableW3CTraceId),o.trace.subsegments.push(Ad(Ld(o.url),r,{request:{method:o.method,url:o.url,traced:!0}}))},n.sendWrapper=function(){var o=n;return function(r){return function(){var a=o.xhrMap.get(this);return a&&(this.addEventListener("load",o.handleXhrLoadEvent),this.addEventListener("error",o.handleXhrErrorEvent),this.addEventListener("abort",o.handleXhrAbortEvent),this.addEventListener("timeout",o.handleXhrTimeoutEvent),o.initializeTrace(a),!o.isSyntheticsUA&&o.isTracingEnabled()&&o.addXRayTraceIdHeader(a.url)&&o.isSessionRecorded()&&(o.context.config.enableW3CTraceId?this.setRequestHeader(yl,zd(a.trace.trace_id,a.trace.subsegments[0].id)):this.setRequestHeader(_l,Nd(a.trace.trace_id,a.trace.subsegments[0].id)))),r.apply(this,arguments)}}},n.openWrapper=function(){var o=n;return function(r){return function(a,s,l){return Fd(s,o.config)&&o.xhrMap.set(this,{url:s,method:a,async:l}),r.apply(this,arguments)}}},n.config=tu(tu({},Pd),i),n.xhrMap=new Map,n.isSyntheticsUA=navigator.userAgent.includes("CloudWatchSynthetics"),n}return t.prototype.onload=function(){this.enable()},Object.defineProperty(t.prototype,"patches",{get:function(){return[{nodule:XMLHttpRequest.prototype,name:"send",wrapper:this.sendWrapper},{nodule:XMLHttpRequest.prototype,name:"open",wrapper:this.openWrapper}]}
492,enumerable:!1,configurable:!0}),t.prototype.handleXhrDetailsOnError=function(i,n,o){if(i){var r=qo();i.trace.end_time=r,i.trace.subsegments[0].end_time=r,i.trace.subsegments[0].error=!0,i.trace.subsegments[0].cause={exceptions:[{type:o}]},this.recordTraceEvent(i.trace),this.recordHttpEventWithError(i,n,o)}},t.prototype.statusOk=function(i){return i>=200&&i<300},t.prototype.recordHttpEventWithResponse=function(i,n){this.xhrMap.delete(n);var o={version:"1.0.0",request:{method:i.method,url:i.url},response:{status:n.status,statusText:n.statusText}};this.isTracingEnabled()&&(o.trace_id=i.trace.trace_id,o.segment_id=i.trace.subsegments[0].id),(this.config.recordAllRequests||!this.statusOk(n.status))&&this.context.record(Ra,o)},t.prototype.recordHttpEventWithError=function(i,n,o){this.xhrMap.delete(n);var r={version:"1.0.0",request:{method:i.method,url:i.url},error:Fa({type:"error",error:o},this.config.stackTraceLength)};this.isTracingEnabled()&&(r.trace_id=i.trace.trace_id,r.segment_id=i.trace.subsegments[0].id),this.context.record(Ra,r)},t.prototype.recordTraceEvent=function(i){!this.isSyntheticsUA&&this.isTracingEnabled()&&this.isSessionRecorded()&&this.context.record(Jc,i)},t})(Wo);var AP=(function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},e(t,i)};return function(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");e(t,i);function n(){this.constructor=t}t.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}})(),iu=function(){return iu=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},iu.apply(this,arguments)},LP="fetch",zb=(function(e){AP(t,e);function t(i){var n=e.call(this,LP)||this;return n.isTracingEnabled=function(){return n.context.config.enableXRay},n.isSessionRecorded=function(){var o;return((o=n.context.getSession())===null||o===void 0?void 0:o.record)||!1},n.beginTrace=function(o,r,a){var s=qo(),l=U1(o,r,!0),c=Od(n.config.logicalServiceName,s,n.context.config.enableW3CTraceId),h=Ad(Ld(o),s,l);return c.subsegments.push(h),n.isTraceIdHeaderEnabled(o)&&n.addXRayTraceIdHeader(o,r,a,c),c},n.addXRayTraceIdHeader=function(o,r,a,s){if(o.headers)return W1(o.headers,s.trace_id,s.subsegments[0].id,n.context.config.enableW3CTraceId);r||(r={},[].push.call(a,r)),j1(r,s.trace_id,s.subsegments[0].id,n.context.config.enableW3CTraceId)},n.endTrace=function(o,r,a){if(o){var s=qo();if(o.subsegments[0].end_time=s,o.end_time=s,r){o.subsegments[0].http.response={status:r.status},Va(r.status)?(o.subsegments[0].throttle=!0,o.throttle=!0):Rd(r.status)?(o.subsegments[0].error=!0,o.error=!0):Ba(r.status)&&(o.subsegments[0].fault=!0,o.fault=!0);var l=r.headers.get("Content-Length"),c=l?parseInt(l,10):NaN;isNaN(c)||(o.subsegments[0].http.response.content_length=c)}a&&(o.fault=!0,o.subsegments[0].fault=!0,a instanceof Object?n.appendErrorCauseFromObject(o.subsegments[0],a):kh(a)&&n.appendErrorCauseFromPrimitive(o.subsegments[0],a.toString())),n.context.record(Jc,o)}},n.createHttpEvent=function(o,r){var a=o;return{version:"1.0.0",request:{url:wl(o),method:r?.method?r.method:a.method?a.method:"GET"}}},n.recordHttpEventWithResponse=function(o,r){(n.config.recordAllRequests||!r.ok)&&(o.response={status:r.status,statusText:r.statusText},n.context.record(Ra,o))},n.recordHttpEventWithError=function(o,r){o.error=Fa({type:"error",error:r},n.config.stackTraceLength),n.context.record(Ra,o)},n.fetch=function(o,r,a,s,l){var c=n.createHttpEvent(s,l),h;if(!Fd(wl(s),n.config))return o.apply(r,a);var m=$1(s.headers,n.context.config.enableW3CTraceId);return m.traceId&&m.segmentId?(c.trace_id=m.traceId,c.segment_id=m.segmentId):n.isTracingEnabled()&&n.isSessionRecorded()&&(h=n.beginTrace(s,l,a),c.trace_id=h.trace_id,c.segment_id=h.subsegments[0].id),o.apply(r,a).then(function(f){return n.endTrace(h,f,void 0),n.recordHttpEventWithResponse(c,f),f}).catch(function(f){throw n.endTrace(h,void 0,f),n.recordHttpEventWithError(c,f),f})},n.fetchWrapper=function(){var o=n;return function(r){return function(a,s){return o.fetch(r,this,arguments,a,s)}}},n.config=iu(iu({},Pd),i),n}return Object.defineProperty(t.prototype,"patches",{get:function(){return[{nodule:window,name:"fetch",wrapper:this.fetchWrapper}]}
492,enumerable:!1,configurable:!0}),t.prototype.onload=function(){this.enable()},t.prototype.isTraceIdHeaderEnabled=function(i){var n=wl(i);return Dd(n,this.config.addXRayTraceIdHeader)},t.prototype.appendErrorCauseFromPrimitive=function(i,n){i.cause={exceptions:[{type:n}]}},t.prototype.appendErrorCauseFromObject=function(i,n){i.cause={exceptions:[{type:n.name,message:n.message}]}},t})(Wo);var NP=(function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},e(t,i)};return function(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");e(t,i);function n(){this.constructor=t}t.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}})(),zP="page-view",Bb=(function(e){NP(t,e);function t(){var i=e.call(this,zP)||this;return i.pushState=function(){var n=i;return function(o){return function(r,a,s){var l=o.apply(this,arguments);return n.recordPageView(),l}}},i.replaceState=function(){var n=i;return function(o){return function(r,a,s){var l=o.apply(this,arguments);return n.recordPageView(),l}}},i.popstateListener=function(n){i.recordPageView()},i.recordPageView=function(){i.context.recordPageView(i.createIdForCurrentPage())},i.enable(),i}return t.prototype.onload=function(){this.addListener(),this.recordPageView()},Object.defineProperty(t.prototype,"patches",{get:function(){return[{nodule:History.prototype,name:"pushState",wrapper:this.pushState},{nodule:History.prototype,name:"replaceState",wrapper:this.replaceState}]},enumerable:!1,configurable:!0}),t.prototype.addListener=function(){window.addEventListener("popstate",this.popstateListener)},t.prototype.createIdForCurrentPage=function(){var i=window.location.pathname,n=window.location.hash;switch(this.context.config.pageIdFormat){case Or.PathAndHash:return i&&n?i+n:i||n||"";case Or.Hash:return n||"";case Or.Path:default:return i||""}},t})(Wo);var Jo=function(){return Jo=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Jo.apply(this,arguments)},BP=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]]);return i},Ka=function(e,t,i){if(i||arguments.length===2)for(var n=0,o=t.length,r;n<o;n++)(r||!(n in t))&&(r||(r=Array.prototype.slice.call(t,0,n)),r[n]=t[n]);return e.concat(r||Array.prototype.slice.call(t))},Vb="us-west-2",xg="https://dataplane.rum.".concat(Vb,".amazonaws.com"),Qa=(function(e){return e.Errors="errors",e.Performance="performance",e.Interaction="interaction",e.Http="http",e})(Qa||{}),Or=(function(e){return e.Path="PATH",e.Hash="HASH",e.PathAndHash="PATH_AND_HASH",e})(Or||{}),VP=function(){return{unique:!1,domain:window.location.hostname,path:"/",sameSite:"Strict",secure:!0}},HP=function(e){return Jo({allowCookies:!1,batchLimit:100,client:OC,compressionStrategy:{enabled:!1},cookieAttributes:e,debug:!1,disableAutoPageView:!1,dispatchInterval:5*1e3,enableRumClient:!0,enableXRay:!1,endpoint:xg,endpointUrl:new URL(xg),eventCacheSize:1e3,eventPluginsToLoad:[],pageIdFormat:Or.Path,pagesToExclude:[],pagesToInclude:[/.*/],signing:!0,recordResourceUrl:!0,retries:2,routeChangeComplete:100,routeChangeTimeout:1e4,sessionAttributes:{},sessionEventLimit:200,sessionLengthSeconds:1800,sessionSampleRate:1,telemetries:[],useBeacon:!0,userIdRetentionDays:30,enableW3CTraceId:!1,legacySPASupport:!1},Hb)},Hb={candidatesCacheSize:10},Sg=(function(){function e(t,i,n,o){o===void 0&&(o={});var r=this,a=o.cookieAttributes,s=BP(o,["cookieAttributes"]);this.eventBus=new cd,typeof n>"u"&&(n="us-west-2");var l=Jo(Jo({},VP()),a);this.config=Jo(Jo(Jo({fetchFunction:fetch},HP(l)),s),Hb),this.config.endpoint=this.getDataPlaneEndpoint(n,s),this.config.endpointUrl=new URL(this.config.endpoint),be.configure(this.config.debug),be.debug("Configuration:",JSON.stringify({allowCookies:this.config.allowCookies,compressionStrategy:this.config.compressionStrategy,debug:this.config.debug,dispatchInterval:this.config.dispatchInterval,enableXRay:this.config.enableXRay,endpoint:this.config.endpoint,sessionSampleRate:this.config.sessionSampleRate,signing:this.config.signing},null,2)),this.eventCache=this.initEventCache(t,i),this.dispatchManager=this.initDispatch(n,t),this.pluginManager=this.initPluginManager(t,i),this.eventCache.setPluginFlushHook(function(){return r.pluginManager.flush()}),be.info("RUM client initialized for app: ".concat(t)),be.info("Telemetries enabled: ".concat(this.config.telemetries.join(", ")||"none")),this.config.enableRumClient?this.enable():this.disable()}return e.prototype.setAwsCredentials=function(t){this.dispatchManager.setAwsCredentials(t)},e.prototype.addSessionAttributes=function(t){this.eventCache.addSessionAttributes(t)},e.prototype.addPlugin=function(t){this.pluginManager.addPlugin(t)},e.prototype.dispatch=function(){this.dispatchManager.dispatchFetch()},e.prototype.dispatchBeacon=function(){this.dispatchManager.dispatchBeacon()},e.prototype.enable=function(){this.eventCache.enable(),this.pluginManager.enable(),this.dispatchManager.enable()},e.prototype.disable=function(){this.dispatchManager.disable(),this.pluginManager.disable(),this.eventCache.disable()},e.prototype.allowCookies=function(t){this.config.allowCookies=t},e.prototype.recordPageView=function(t){this.eventCache.recordPageView(t)},e.prototype.recordError=function(t){this.pluginManager.record(Eh,t)},e.prototype.registerDomEvents=function(t){this.pluginManager.updatePlugin(Sh,t)},e.prototype.recordEvent=function(t,i){this.eventCache.recordEvent(t,i)},e.prototype.initEventCache=function(t,i){return new UC({id:t,version:i},this.config,this.eventBus)},e.prototype.initDispatch=function(t,i){var n=new sb(i,t,this.config.endpointUrl,this.eventCache,this.config);return this.config.signing&&this.config.identityPoolId&&n.setCognitoCredentials(this.config.identityPoolId,this.config.guestRoleArn),n},e.prototype.initPluginManager=function(t,i){var n=this.constructBuiltinPlugins(),o=Ka(Ka([],n,!0),this.config.eventPluginsToLoad,!0),r={applicationId:t,applicationVersion:i,config:this.config,record:this.eventCache.recordEvent,recordCandidate:this.eventCache.recordCandidate,recordPageView:this.eventCache.recordPageView,getSession:this.eventCache.getSession,eventBus:this.eventBus},a=new TC(r);return this.config.disableAutoPageView||a.addPlugin(new Bb),o.forEach(function(s){a.addPlugin(s)}),a},e.prototype.constructBuiltinPlugins=function(){var t=[],i=this.telemetryFunctor();
492return this.config.telemetries.forEach(function(n){typeof n=="string"&&i[n.toLowerCase()]?t=Ka(Ka([],t,!0),i[n.toLowerCase()]({}),!0):Array.isArray(n)&&i[n[0].toLowerCase()]&&(t=Ka(Ka([],t,!0),i[n[0].toLowerCase()](n[1]),!0))}),t},e.prototype.getDataPlaneEndpoint=function(t,i){return i.endpoint?i.endpoint:xg.replace(Vb,t)},e.prototype.telemetryFunctor=function(){var t;return t={},t[Qa.Errors]=function(i){return[new DC(i)]},t[Qa.Performance]=function(i){return[new db(i),new ub(i),new Ab(i)]},t[Qa.Interaction]=function(i){return[new IC(i)]},t[Qa.Http]=function(i){return[new Nb(i),new zb(i)]},t},e})();var cs=class{constructor(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}setFrameworkOverrides(e){this.frameworkOverrides=e}getListeners(e,t,i){let n=t?this.allAsyncListeners:this.allSyncListeners,o=n.get(e);return!o&&i&&(o=new Set,n.set(e,o)),o}noRegisteredListenersExist(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0}addEventListener(e,t,i=!1){this.getListeners(e,i,!0).add(t)}removeEventListener(e,t,i=!1){let n=this.getListeners(e,i,!1);n&&(n.delete(t),n.size===0&&(i?this.allAsyncListeners:this.allSyncListeners).delete(e))}addGlobalListener(e,t=!1){(t?this.globalAsyncListeners:this.globalSyncListeners).add(e)}removeGlobalListener(e,t=!1){(t?this.globalAsyncListeners:this.globalSyncListeners).delete(e)}dispatchEvent(e){let t=e;this.dispatchToListeners(t,!0),this.dispatchToListeners(t,!1),this.firedEvents[t.type]=!0}dispatchEventOnce(e){this.firedEvents[e.type]||this.dispatchEvent(e)}dispatchToListeners(e,t){let i=e.type;if(t&&"event"in e){let s=e.event;s instanceof Event&&(e.eventPath=s.composedPath())}let n=(s,l)=>s.forEach(c=>{if(!l.has(c))return;let h=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming(()=>c(e)):()=>c(e);t?this.dispatchAsync(h):h()}),o=this.getListeners(i,t,!1)??new Set,r=new Set(o);r.size>0&&n(r,o),new Set(t?this.globalAsyncListeners:this.globalSyncListeners).forEach(s=>{let l=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming(()=>s(i,e)):()=>s(i,e);t?this.dispatchAsync(l):l()})}dispatchAsync(e){if(this.asyncFunctionsQueue.push(e),!this.scheduled){let t=()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)};this.frameworkOverrides?this.frameworkOverrides.wrapIncoming(t):t(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;let e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach(t=>t())}},v_=(e=>(e.CommunityCoreModule="@ag-grid-community/core",e.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",e.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",e.CsvExportModule="@ag-grid-community/csv-export",e.EnterpriseCoreModule="@ag-grid-enterprise/core",e.RowGroupingModule="@ag-grid-enterprise/row-grouping",e.ColumnsToolPanelModule="@ag-grid-enterprise/column-tool-panel",e.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",e.MenuModule="@ag-grid-enterprise/menu",e.SetFilterModule="@ag-grid-enterprise/set-filter",e.MultiFilterModule="@ag-grid-enterprise/multi-filter",e.StatusBarModule="@ag-grid-enterprise/status-bar",e.SideBarModule="@ag-grid-enterprise/side-bar",e.RangeSelectionModule="@ag-grid-enterprise/range-selection",e.MasterDetailModule="@ag-grid-enterprise/master-detail",e.RichSelectModule="@ag-grid-enterprise/rich-select",e.GridChartsModule="@ag-grid-enterprise/charts",e.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",e.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",e.ExcelExportModule="@ag-grid-enterprise/excel-export",e.ClipboardModule="@ag-grid-enterprise/clipboard",e.SparklinesModule="@ag-grid-enterprise/sparklines",e.AdvancedFilterModule="@ag-grid-enterprise/advanced-filter",e.AngularModule="@ag-grid-community/angular",e.ReactModule="@ag-grid-community/react",e.VueModule="@ag-grid-community/vue",e))(v_||{}),Gb={};function cm(e,t){Gb[t]||(e(),Gb[t]=!0)}function ln(e,...t){console.log("AG Grid: "+e,...t)}function $(e,...t){cm(()=>console.warn("AG Grid: "+e,...t),e+t?.join(""))}function Be(e,...t){cm(()=>console.error("AG Grid: "+e,...t),e+t?.join(""))}function dm(e){return!!(e&&e.constructor&&e.call&&e.apply)}function GP(e){UP(e,400)}var kg=[],Eg=!1;function Ub(e){kg.push(e),!Eg&&(Eg=!0,window.setTimeout(()=>{let t=kg.slice();kg.length=0,Eg=!1,t.forEach(i=>
492i())},0))}function UP(e,t=0){e.length>0&&window.setTimeout(()=>e.forEach(i=>i()),t)}function wi(e,t){let i;return function(...n){let o=this;window.clearTimeout(i),i=window.setTimeout(function(){e.apply(o,n)},t)}}function jb(e,t){let i=0;return function(...n){let o=this,r=new Date().getTime();r-i<t||(i=r,e.apply(o,n))}}function jP(e,t,i=100,n){let o=new Date().getTime(),r=null,a=!1,s=()=>{let l=new Date().getTime()-o>i;(e()||l)&&(t(),a=!0,r!=null&&(window.clearInterval(r),r=null),l&&n&&$(n))};s(),a||(r=window.setInterval(s,10))}function WP(...e){return t=>e.reduce((i,n)=>n(i),t)}function _o(e){return e==null||e===""?null:e}function K(e,t=!1){return e!=null&&(e!==""||t)}function Fe(e){return!K(e)}function $i(e){return e==null||e.length===0}function Gg(e){return e!=null&&typeof e.toString=="function"?e.toString():null}function Vr(e){if(e===void 0)return;if(e===null||e==="")return null;if(typeof e=="number")return isNaN(e)?void 0:e;let t=parseInt(e,10);return isNaN(t)?void 0:t}function Ug(e){if(e!==void 0)return e===null||e===""?!1:jg(e)}function jg(e){return typeof e=="boolean"?e:typeof e=="string"?e.toUpperCase()==="TRUE"||e=="":!1}function zl(e,t){let i=e?JSON.stringify(e):null,n=t?JSON.stringify(t):null;return i===n}function $P(e,t,i=!1){let n=e==null,o=t==null;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),n&&o)return 0;if(n)return-1;if(o)return 1;function r(a,s){return a>s?1:a<s?-1:0}if(typeof e!="string"||!i)return r(e,t);try{return e.localeCompare(t)}catch{return r(e,t)}}function du(e){if(e instanceof Set||e instanceof Map){let t=[];return e.forEach(i=>t.push(i)),t}return Object.values(e)}function C_(e,t){return e.get("rowModelType")===t}function at(e){return C_(e,"clientSide")}function ko(e){return C_(e,"serverSide")}function Bt(e,t){return e.get("domLayout")===t}function gu(e){return vu(e)!==void 0}function mu(e){return!e.get("suppressAsyncEvents")}function b_(e){return typeof e.get("getRowHeight")=="function"}function qP(e,t){return t?!e.get("enableStrictPivotColumnOrder"):e.get("maintainColumnOrder")}
492function nr(e,t,i=!1,n){if(n==null&&(n=e.environment.getDefaultRowHeight()),b_(e)){if(i)return{height:n,estimated:!0};let a={node:t,data:t.data},s=e.getCallback("getRowHeight")(a);if(Wg(s))return s===0&&$("The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead."),{height:Math.max(1,s),estimated:!1}}if(t.detail&&e.get("masterDetail"))return YP(e);let o=e.get("rowHeight");return{height:o&&Wg(o)?o:n,estimated:!1}}function YP(e){if(e.get("detailRowAutoHeight"))return{height:1,estimated:!1};let t=e.get("detailRowHeight");return Wg(t)?{height:t,estimated:!1}:{height:300,estimated:!1}}function Hr(e){let{environment:t}=e,i=e.get("rowHeight");if(!i||Fe(i))return t.getDefaultRowHeight();let n=t.refreshRowHeightVariable();return n!==-1?n:($("row height must be a number if not using standard row model"),t.getDefaultRowHeight())}function Wg(e){return!isNaN(e)&&typeof e=="number"&&isFinite(e)}function Bl(e,t,i){let n=t[e.getDomDataKey()];return n?n[i]:void 0}function Wr(e,t,i,n){let o=e.getDomDataKey(),r=t[o];Fe(r)&&(r={},t[o]=r),r[i]=n}function dt(e){let t=null,i=e.get("getDocument");return i&&K(i)?t=i():e.eGridDiv&&(t=e.eGridDiv.ownerDocument),t&&K(t)?t:document}function __(e){return dt(e).defaultView||window}function Vl(e){return e.eGridDiv.getRootNode()}function nt(e){return Vl(e).activeElement}function y_(e){let t=dt(e),i=nt(e);return i===null||i===t.body}function es(e){return e.get("ensureDomOrder")?!1:e.get("animateRows")}function Mu(e){return!(e.get("paginateChildRows")||e.get("groupHideOpenParents")||Bt(e,"print"))}function Hn(e){return!e.get("autoGroupColumnDef")?.comparator&&!e.get("treeData")}function $g(e){let t=e.get("groupAggFiltering");if(typeof t=="function")return e.getCallback("groupAggFiltering");if(t===!0)return()=>!0}function w_(e){let t=e.get("grandTotalRow");if(t)return t;if(e.get("groupIncludeTotalFooter"))return"bottom"}function x_(e){let t=e.get("groupTotalRow");if(typeof t=="function")return e.getCallback("groupTotalRow");if(t)return()=>t;let i=e.get("groupIncludeFooter");if(typeof i=="function"){let n=e.getCallback("groupIncludeFooter");return o=>n(o)?"bottom":void 0}return()=>i?"bottom":void 0}function S_(e){return e.exists("groupDisplayType")?e.get("groupDisplayType")==="multipleColumns":e.get("groupHideOpenParents")}function Tu(e,t){return t?!1:e.get("groupDisplayType")==="groupRows"}function ds(e){let t=e.getCallback("getRowId");return t===void 0?t:i=>{let n=t(i);return typeof n!="string"&&($("The getRowId callback must return a string. The ID ",n," is being cast to a string."),n=String(n)),n}}function ns(e){return e?.checkboxes??!0}function fu(e){return e?.mode==="multiRow"&&(e.headerCheckbox??!0)}function KP(e){return e?.hideDisabledCheckboxes??!1}function QP(e){return typeof e.get("rowSelection")!="string"}function JP(e){return e.get("cellSelection")!==void 0}function ZP(e){let t=e.get("cellSelection");return t!==void 0?typeof t!="boolean"?t?.suppressMultiRanges??!1:!1:e.get("suppressMultiRangeSelection")}function Un(e){let t=e.get("cellSelection");return t!==void 0?!!t:e.get("enableRangeSelection")}function XP(e){let t=e.get("cellSelection");return t!==void 0?typeof t!="boolean"?t.handle?.mode==="range":!1:e.get("enableRangeHandle")}function Wb(e){let t=e.get("cellSelection");return t!==void 0?typeof t!="boolean"?t.handle?.mode==="fill":!1:e.get("enableFillHandle")}function k_(e){let t=e.get("rowSelection")??"single";if(typeof t=="string"){let i=e.get("suppressRowClickSelection"),n=e.get("suppressRowDeselection");return i&&n?!1:i?"enableDeselection":n?"enableSelection":!0}return t.mode==="singleRow"||t.mode==="multiRow"?t.enableClickSelection??!1:!1}function eR(e){let t=k_(e);return t===!0||t==="enableSelection"}function $b(e){let t=k_(e);return t===!0||t==="enableDeselection"}function um(e){let t=e.get("rowSelection");return typeof t=="string"?e.get("isRowSelectable"):t?.isRowSelectable}function vu(e){let t=e.get("rowSelection");if(typeof t=="string")switch(t){case"multiple":return"multiRow";case"single":return"singleRow";default:return}return t?.mode}function pm(e){return vu(e)==="multiRow"}function tR(e){let t=e.get("rowSelection");return typeof t=="string"?e.get("rowMultiSelectWithClick"):t?.enableSelectionWithoutKeys??
492!1}function hm(e){let t=e.get("rowSelection");if(typeof t=="string"){let i=e.get("groupSelectsChildren"),n=e.get("groupSelectsFiltered");return i&&n?"filteredDescendants":i?"descendants":"self"}return t?.mode==="multiRow"?t.groupSelects:void 0}function $r(e){let t=hm(e);return t==="descendants"||t==="filteredDescendants"}function Mg(e){return e.isModuleRegistered("@ag-grid-enterprise/set-filter")&&!e.get("suppressSetFilterByDefault")}function Ae(e){if(!(!e||!e.length))return e[e.length-1]}function rr(e,t,i){return e==null&&t==null?!0:e!=null&&t!=null&&e.length===t.length&&e.every((n,o)=>i?i(n,t[o]):t[o]===n)}function iR(e){return e.sort((t,i)=>t-i)}function E_(e,t){let i=e.indexOf(t);i>=0&&(e[i]=e[e.length-1],e.pop())}function xi(e,t){let i=e.indexOf(t);i>=0&&e.splice(i,1)}function nR(e,t){for(let i=0;i<t.length;i++)E_(e,t[i])}function oR(e,t){for(let i=0;i<t.length;i++)xi(e,t[i])}function Cu(e,t,i){e.splice(i,0,t)}function M_(e,t,i){oR(e,t),t.slice().reverse().forEach(n=>Cu(e,n,i))}function Gr(e,t){return e.indexOf(t)>-1}function rR(e){return e?.flatMap(t=>t)??[]}function qb(e,t){t==null||e==null||t.forEach(i=>e.push(i))}var T_="__ag_Grid_Stop_Propagation",aR=["touchstart","touchend","touchmove","touchcancel","scroll"],Tg={};function rs(e){e[T_]=!0}function yo(e){return e[T_]===!0}var I_=(()=>{let e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return i=>{if(typeof Tg[i]=="boolean")return Tg[i];let n=document.createElement(e[i]||"div");return i="on"+i,Tg[i]=i in n}})();function qg(e,t,i){let n=t;for(;n;){let o=Bl(e,n,i);if(o)return o;n=n.parentElement}return null}function sR(e,t){return!t||!e?!1:cR(t).indexOf(e)>=0}function lR(e){let t=[],i=e.target;for(;i;)t.push(i),i=i.parentElement;return t}function cR(e){let t=e;return t.path?t.path:t.composedPath?t.composedPath():lR(t)}function dR(e,t,i,n){let r=Gr(aR,i)?{passive:!0}:void 0;e&&e.addEventListener&&e.addEventListener(t,i,n,r)}var H=class{constructor(){this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.propertyListenerId=0,this.lastChangeSetIdLookup={},this.isAlive=()=>!this.destroyed}preWireBeans(e){this.frameworkOverrides=e.frameworkOverrides,this.stubContext=e.context,this.eventService=e.eventService,this.gos=e.gos,this.localeService=e.localeService}getFrameworkOverrides(){return this.frameworkOverrides}destroy(){for(let e=0;e<this.destroyFunctions.length;e++)this.destroyFunctions[e]();this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchLocalEvent({type:"destroyed"})}addEventListener(e,t,i){this.localEventService||(this.localEventService=new cs),this.localEventService.addEventListener(e,t,i)}removeEventListener(e,t,i){this.localEventService&&this.localEventService.removeEventListener(e,t,i)}dispatchLocalEvent(e){this.localEventService&&this.localEventService.dispatchEvent(e)}addManagedElementListeners(e,t){return this._setupListeners(e,t)}addManagedEventListeners(e){return this._setupListeners(this.eventService,e)}addManagedListeners(e,t){return this._setupListeners(e,t)}_setupListeners(e,t){let i=[];for(let n in t){let o=t[n];o&&i.push(this._setupListener(e,n,o))}return i}_setupListener(e,t,i){if(this.destroyed)return()=>null;e instanceof HTMLElement?dR(this.getFrameworkOverrides(),e,t,i):e.addEventListener(t,i);let n=()=>(e.removeEventListener(t,i),null);return this.destroyFunctions.push(n),()=>(n(),this.destroyFunctions=this.destroyFunctions.filter(o=>o!==n),null)}setupGridOptionListener(e,t){this.gos.addPropertyEventListener(e,t);let i=()=>(this.gos.removePropertyEventListener(e,t),null);return this.destroyFunctions.push(i),()=>(i(),this.destroyFunctions=this.destroyFunctions.filter(n=>n!==i),null)}addManagedPropertyListener(e,t){return this.destroyed?()=>null:this.setupGridOptionListener(e,t)}addManagedPropertyListeners(e,t){if(this.destroyed)return;let i=e.join("-")+this.propertyListenerId++,n=o=>{if(o.changeSet){if(o.changeSet&&o.changeSet.id===this.lastChangeSetIdLookup[i])return;this.lastChangeSetIdLookup[i]=o.changeSet.id}let r={type:"gridPropertyChanged",changeSet:o.changeSet,source:o.source};t(r)};e.forEach(o=>
492this.setupGridOptionListener(o,n))}addDestroyFunc(e){this.isAlive()?this.destroyFunctions.push(e):e()}createManagedBean(e,t){let i=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),i}createBean(e,t,i){return(t||this.stubContext).createBean(e,i)}destroyBean(e,t){return(t||this.stubContext).destroyBean(e)}destroyBeans(e,t){return(t||this.stubContext).destroyBeans(e)}};function _i(e){return e instanceof uu}var uu=class extends H{constructor(e,t,i,n){super(),this.isColumn=!1,this.expandable=!1,this.instanceId=R_(),this.expandableListenerRemoveCallback=null,this.colGroupDef=e,this.groupId=t,this.expanded=!!e&&!!e.openByDefault,this.padding=i,this.level=n}destroy(){this.expandableListenerRemoveCallback&&this.reset(null,void 0),super.destroy()}reset(e,t){this.colGroupDef=e,this.level=t,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0}getInstanceId(){return this.instanceId}setOriginalParent(e){this.originalParent=e}getOriginalParent(){return this.originalParent}getLevel(){return this.level}isVisible(){return this.children?this.children.some(e=>e.isVisible()):!1}isPadding(){return this.padding}setExpanded(e){this.expanded=e===void 0?!1:e,this.dispatchLocalEvent({type:"expandedChanged"})}isExpandable(){return this.expandable}isExpanded(){return this.expanded}getGroupId(){return this.groupId}getId(){return this.getGroupId()}setChildren(e){this.children=e}getChildren(){return this.children}getColGroupDef(){return this.colGroupDef}getLeafColumns(){let e=[];return this.addLeafColumns(e),e}addLeafColumns(e){this.children&&this.children.forEach(t=>{or(t)?e.push(t):_i(t)&&t.addLeafColumns(e)})}getColumnGroupShow(){let e=this.colGroupDef;if(e)return e.columnGroupShow}setupExpandable(){this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();let e=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach(t=>t.addEventListener("visibleChanged",e)),this.expandableListenerRemoveCallback=()=>{this.getLeafColumns().forEach(t=>t.removeEventListener("visibleChanged",e)),this.expandableListenerRemoveCallback=null}}setExpandable(){if(this.isPadding())return;let e=!1,t=!1,i=!1,n=this.findChildrenRemovingPadding();for(let r=0,a=n.length;r<a;r++){let s=n[r];if(!s.isVisible())continue;let l=s.getColumnGroupShow();l==="open"?(e=!0,i=!0):l==="closed"?(t=!0,i=!0):(e=!0,t=!0)}let o=e&&t&&i;this.expandable!==o&&(this.expandable=o,this.dispatchLocalEvent({type:"expandableChanged"}))}findChildrenRemovingPadding(){let e=[],t=i=>{i.forEach(n=>{_i(n)&&n.isPadding()?t(n.children):e.push(n)})};return t(this.children),e}onColumnVisibilityChanged(){this.setExpandable()}},D_="ag-Grid-ControlsColumn",uR=class extends H{constructor(){super(...arguments),this.beanName="controlsColService"}isControlsColEnabled(){let{gos:e}=this,t=e.get("rowSelection");if(!t||typeof t!="object")return!1;let i=ns(t),n=fu(t);return!!(i||n)}createControlsCols(){if(!this.isControlsColEnabled())return[];let{gos:e}=this,t=e.get("selectionColumnDef"),i=e.get("enableRtl"),n=ye(B({maxWidth:50,resizable:!1,suppressHeaderMenuButton:!0,sortable:!1,suppressMovable:!0,lockPosition:i?"right":"left",comparator(r,a,s,l){let c=s.isSelected(),h=l.isSelected();return c&&h?0:c?1:-1},editable:!1,suppressFillHandle:!0},t),{colId:`${D_}`}),o=new fm(n,null,n.colId,!1);return this.createBean(o),[o]}},Iu="ag-Grid-AutoColumn";function gm(e){let t=[],i=n=>{for(let o=0;o<n.length;o++){let r=n[o];or(r)?t.push(r):_i(r)&&i(r.getChildren())}};return i(e),t}function Co(e){return e.reduce((t,i)=>t+i.getActualWidth(),0)}function tr(e,t,i){let n={};if(!t)return;xo(null,t,r=>{n[r.getInstanceId()]=r}),i&&xo(null,i,r=>{n[r.getInstanceId()]=null});let o=Object.values(n).filter(r=>r!=null);e.destroyBeans(o)}function Yg(e){return e.getId().startsWith(Iu)}function as(e){return e.getColId().startsWith(D_)}function pu(e){let t=[];return e instanceof Array?e.some(n=>typeof n!="string")?$("if colDef.type is supplied an array it should be of type 'string[]'"):t=e:typeof e=="string"?t=e.split(","):$("colDef.type should be of type 'string' | 'string[]'"),t}var mm=class{constructor(e){this.frameworkOverrides=e,this.wrappedListeners=new Map,this.wrappedGlobalListeners=new Map}wrap(e,t){let{frameworkOverrides:i,wrappedListeners:n}=this,o=t;if(i.shouldWrapOutgoing){o=a=>{i.wrapOutgoing(()=>t(a))};let r=n.get(e);r||(r=new Map,n.set(e,r)),r.set(t,o)}return o}wrapGlobal(e){let{frameworkOverrides:t,wrappedGlobalListeners:i}=this,n=e;return t.shouldWrapOutgoing&&(n=(o,r)=>
492{t.wrapOutgoing(()=>e(o,r))},i.set(e,n)),n}unwrap(e,t){let{wrappedListeners:i}=this,n=i.get(e);if(n){let o=n.get(t);if(o)return n.delete(t),n.size===0&&i.delete(e),o}return t}unwrapGlobal(e){let{wrappedGlobalListeners:t}=this,i=t.get(e);return i?(t.delete(e),i):e}},Du=new Set(["__proto__","constructor","prototype"]);function sn(e,t){if(e!=null){if(Array.isArray(e)){for(let i=0;i<e.length;i++)t(i.toString(),e[i]);return}for(let[i,n]of Object.entries(e))Du.has(i)||t(i,n)}}function P_(e){let t={},i=Object.keys(e);for(let n=0;n<i.length;n++){if(Du.has(i[n]))continue;let o=i[n],r=e[o];t[o]=r}return t}function Kg(e,t){if(!e)return;let i=e,n={};return Object.keys(i).forEach(o=>{if(t&&t.indexOf(o)>=0||Du.has(o))return;let r=i[o];Qg(r)&&r.constructor===Object?n[o]=Kg(r):n[o]=r}),n}function qr(e){if(!e)return[];let t=Object;if(typeof t.values=="function")return t.values(e);let i=[];for(let n in e)e.hasOwnProperty(n)&&e.propertyIsEnumerable(n)&&i.push(e[n]);return i}function yi(e,t,i=!0,n=!1){K(t)&&sn(t,(o,r)=>{if(Du.has(o))return;let a=e[o];a!==r&&(n&&a==null&&r!=null&&typeof r=="object"&&r.constructor===Object&&(a={},e[o]=a),Qg(r)&&Qg(a)&&!Array.isArray(a)?yi(a,r,i,n):(i||r!==void 0)&&(e[o]=r))})}function Fl(e,t,i){if(!t||!e)return;if(!i)return e[t];let n=t.split("."),o=e;for(let r=0;r<n.length;r++){if(o==null)return;o=o[n[r]]}return o}function Qg(e){return typeof e=="object"&&e!==null}var pR={resizable:!0,sortable:!0},hR=0;function R_(){return hR++}function or(e){return e instanceof fm}var fm=class extends H{constructor(e,t,i,n){super(),this.isColumn=!0,this.instanceId=R_(),this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.columnEventService=new cs,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=e,this.userProvidedColDef=t,this.colId=i,this.primary=n,this.setState(e)}wireBeans(e){this.columnHoverService=e.columnHoverService}getInstanceId(){return this.instanceId}setState(e){e.sort!==void 0?(e.sort==="asc"||e.sort==="desc")&&(this.sort=e.sort):(e.initialSort==="asc"||e.initialSort==="desc")&&(this.sort=e.initialSort);let t=e.sortIndex,i=e.initialSortIndex;t!==void 0?t!==null&&(this.sortIndex=t):i!==null&&(this.sortIndex=i);let n=e.hide,o=e.initialHide;n!==void 0?this.visible=!n:this.visible=!o,e.pinned!==void 0?this.setPinned(e.pinned):this.setPinned(e.initialPinned);let r=e.flex,a=e.initialFlex;r!==void 0?this.flex=r:a!==void 0&&(this.flex=a)}setColDef(e,t,i){this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),this.columnEventService.dispatchEvent(this.createColumnEvent("colDefChanged",i))}getUserProvidedColDef(){return this.userProvidedColDef}setParent(e){this.parent=e}getParent(){return this.parent}setOriginalParent(e){this.originalParent=e}getOriginalParent(){return this.originalParent}postConstruct(){this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.initTooltip()}initDotNotation(){let e=this.gos.get("suppressFieldDotNotation");this.fieldContainsDots=K(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!e,this.tooltipFieldContainsDots=K(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!e}initMinAndMaxWidths(){let e=this.colDef;this.minWidth=e.minWidth??this.gos.environment.getDefaultColumnMinWidth(),this.maxWidth=e.maxWidth??Number.MAX_SAFE_INTEGER}initTooltip(){this.tooltipEnabled=K(this.colDef.tooltipField)||K(this.colDef.tooltipValueGetter)||K(this.colDef.tooltipComponent)}resetActualWidth(e){let t=this.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)}calculateColInitialWidth(e){let t,i=Vr(e.width),n=Vr(e.initialWidth);return i!=null?t=i:n!=null?t=n:t=200,Math.max(Math.min(t,this.maxWidth),this.minWidth)}isEmptyGroup(){return!1}isRowGroupDisplayed(e){if(Fe(this.colDef)||Fe(this.colDef.showRowGroup))return!1;let t=this.colDef.showRowGroup===!0,i=this.colDef.showRowGroup===e;return t||i}isPrimary(){return this.primary}isFilterAllowed(){return!!this.colDef.filter}isFieldContainsDots(){return this.fieldContainsDots}isTooltipEnabled(){return this.tooltipEnabled}isTooltipFieldContainsDots(){return this.tooltipFieldContainsDots}getHighlighted(){return this.highlighted}addEventListener(e,t){this.frameworkOverrides.shouldWrapOutgoing&&!this.frameworkEventListenerService&&(this.columnEventService.setFrameworkOverrides(this.frameworkOverrides),this.frameworkEventListenerService=new mm(this.frameworkOverrides));let i=this.frameworkEventListenerService?.wrap(e,t)??t;this.columnEventService.addEventListener(e,i)}removeEventListener(e,t){let i=this.frameworkEventListenerService?.unwrap(e,t)??t;this.columnEventService.removeEventListener(e,i)}createColumnFunctionCallbackParams(e){return this.gos.addGridCommonParams({node:e,data:e.data,column:this,colDef:this.colDef})}isSuppressNavigable(e){if(typeof this.colDef.suppressNavigable=="boolean")return this.colDef.suppressNavigable;if(typeof this.colDef.suppressNavigable=="function"){let t=this.createColumnFunctionCallbackParams(e),i=this.colDef.suppressNavigable;return i(t)}return!1}isCellEditable(e){if(e.group){if(this.gos.get("treeData")){if(!e.data&&!this.gos.get("enableGroupEdit"))return!1}else if(!this.gos.get("enableGroupEdit"))return!1}return this.isColumnFunc(e,this.colDef.editable)}isSuppressFillHandle(){return!!this.colDef.suppressFillHandle}isAutoHeight(){return!!this.colDef.autoHeight}isAutoHeaderHeight(){return!!this.colDef.autoHeaderHeight}isRowDrag(e){return this.isColumnFunc(e,this.colDef.rowDrag)}isDndSource(e){return this.isColumnFunc(e,this.colDef.dndSource)}isCellCheckboxSelection(e){let t=this.gos.get("rowSelection");if(t&&typeof t!="string"){let i=as(this)&&ns(t);return this.isColumnFunc(e,i)}else return this.isColumnFunc(e,this.colDef.checkboxSelection)}isSuppressPaste(e){return this.isColumnFunc(e,this.colDef?this.colDef.suppressPaste:null)}isResizable(){return!!this.getColDefValue("resizable")}getColDefValue(e){return this.colDef[e]??pR[e]}isColumnFunc(e,t){if(typeof t=="boolean")return t;if(typeof t=="function"){let i=this.createColumnFunctionCallbackParams(e);return t(i)}return!1}setHighlighted(e){this.highlighted!==e&&(this.highlighted=e,this.columnEventService.dispatchEvent(this.createColumnEvent("headerHighlightChanged","uiColumnMoved")))}setMoving(e,t){this.moving=e,this.columnEventService.dispatchEvent(this.createColumnEvent("movingChanged",t))}createColumnEvent(e,t){return this.gos.addGridCommonParams({type:e,column:this,columns:[this],source:t})}isMoving(){return this.moving}getSort(){return this.sort}setSort(e,t){this.sort!==e&&(this.sort=e,this.columnEventService.dispatchEvent(this.createColumnEvent("sortChanged",t))),this.dispatchStateUpdatedEvent("sort")}isSortable(){return!!this.getColDefValue("sortable")}isSortAscending(){return this.sort==="asc"}isSortDescending(){return this.sort==="desc"}isSortNone(){return Fe(this.sort)}isSorting(){return K(this.sort)}getSortIndex(){return this.sortIndex}setSortIndex(e){this.sortIndex=e,this.dispatchStateUpdatedEvent("sortIndex")}setMenuVisible(e,t){this.menuVisible!==e&&(this.menuVisible=e,this.columnEventService.dispatchEvent(this.createColumnEvent("menuVisibleChanged",t)))}isMenuVisible(){return this.menuVisible}setAggFunc(e){this.aggFunc=e,this.dispatchStateUpdatedEvent("aggFunc")}getAggFunc(){return this.aggFunc}getLeft(){return this.left}getOldLeft(){return this.oldLeft}getRight(){return this.left+this.actualWidth}setLeft(e,t){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.columnEventService.dispatchEvent(this.createColumnEvent("leftChanged",t)))}isFilterActive(){return this.filterActive}setFilterActive(e,t,i){this.filterActive!==e&&(this.filterActive=e,this.columnEventService.dispatchEvent(this.createColumnEvent("filterActiveChanged",t)));let n=this.createColumnEvent("filterChanged",t);i&&yi(n,i),this.columnEventService.dispatchEvent(n)}isHovered(){return this.columnHoverService.isHovered(this)}setPinned(e){e===!0||e==="left"?this.pinned="left":e==="right"?this.pinned="right":this.pinned=null,this.dispatchStateUpdatedEvent("pinned")}setFirstRightPinned(e,t){this.firstRightPinned!==e&&(this.firstRightPinned=e,this.columnEventService.dispatchEvent(this.createColumnEvent("firstRightPinnedChanged",t)))}setLastLeftPinned(e,t){this.lastLeftPinned!==e&&(this.lastLeftPinned=e,this.columnEventService.dispatchEvent(this.createColumnEvent("lastLeftPinnedChanged",t)))}isFirstRightPinned(){return this.firstRightPinned}isLastLeftPinned(){return this.lastLeftPinned}isPinned(){return this.pinned==="left"||this.pinned==="right"}isPinnedLeft(){return this.pinned==="left"}isPinnedRight(){return this.pinned==="right"}getPinned(){return this.pinned}setVisible(e,t){let i=e===!0;this.visible!==i&&(this.visible=i,this.columnEventService.dispatchEvent(this.createColumnEvent("visibleChanged",t))),this.dispatchStateUpdatedEvent("hide")}isVisible(){return this.visible}
492isSpanHeaderHeight(){return!this.getColDef().suppressSpanHeaderHeight}getColumnGroupPaddingInfo(){let e=this.getParent();if(!e||!e.isPadding())return{numberOfParents:0,isSpanningTotal:!1};let t=e.getPaddingLevel()+1,i=!0;for(;e;){if(!e.isPadding()){i=!1;break}e=e.getParent()}return{numberOfParents:t,isSpanningTotal:i}}getColDef(){return this.colDef}getDefinition(){return this.colDef}getColumnGroupShow(){return this.colDef.columnGroupShow}getColId(){return this.colId}getId(){return this.colId}getUniqueId(){return this.colId}getActualWidth(){return this.actualWidth}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){let t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}createBaseColDefParams(e){return this.gos.addGridCommonParams({node:e,data:e.data,colDef:this.colDef,column:this})}getColSpan(e){if(Fe(this.colDef.colSpan))return 1;let t=this.createBaseColDefParams(e),i=this.colDef.colSpan(t);return Math.max(i,1)}getRowSpan(e){if(Fe(this.colDef.rowSpan))return 1;let t=this.createBaseColDefParams(e),i=this.colDef.rowSpan(t);return Math.max(i,1)}setActualWidth(e,t,i=!1){e=Math.max(e,this.minWidth),e=Math.min(e,this.maxWidth),this.actualWidth!==e&&(this.actualWidth=e,this.flex&&t!=="flex"&&t!=="gridInitializing"&&(this.flex=null),i||this.fireColumnWidthChangedEvent(t)),this.dispatchStateUpdatedEvent("width")}fireColumnWidthChangedEvent(e){this.columnEventService.dispatchEvent(this.createColumnEvent("widthChanged",e))}isGreaterThanMax(e){return e>this.maxWidth}getMinWidth(){return this.minWidth}getMaxWidth(){return this.maxWidth}getFlex(){return this.flex||0}setFlex(e){this.flex!==e&&(this.flex=e),this.dispatchStateUpdatedEvent("flex")}setMinimum(e){this.setActualWidth(this.minWidth,e)}setRowGroupActive(e,t){this.rowGroupActive!==e&&(this.rowGroupActive=e,this.columnEventService.dispatchEvent(this.createColumnEvent("columnRowGroupChanged",t))),this.dispatchStateUpdatedEvent("rowGroup")}isRowGroupActive(){return this.rowGroupActive}setPivotActive(e,t){this.pivotActive!==e&&(this.pivotActive=e,this.columnEventService.dispatchEvent(this.createColumnEvent("columnPivotChanged",t))),this.dispatchStateUpdatedEvent("pivot")}isPivotActive(){return this.pivotActive}isAnyFunctionActive(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()}isAnyFunctionAllowed(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()}setValueActive(e,t){this.aggregationActive!==e&&(this.aggregationActive=e,this.columnEventService.dispatchEvent(this.createColumnEvent("columnValueChanged",t)))}isValueActive(){return this.aggregationActive}isAllowPivot(){return this.colDef.enablePivot===!0}isAllowValue(){return this.colDef.enableValue===!0}isAllowRowGroup(){return this.colDef.enableRowGroup===!0}dispatchStateUpdatedEvent(e){this.columnEventService.dispatchEvent({type:"columnStateUpdated",key:e})}},gR={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}},mR=class{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;t<e.length;t++)this.existingKeys[e[t]]=!0}getUniqueKey(e,t){e=Gg(e);let i=0;for(;;){let n;if(e?(n=e,i!==0&&(n+="_"+i)):t?(n=t,i!==0&&(n+="_"+i)):n=i,!this.existingKeys[n])return this.existingKeys[n]=!0,String(n);i++}}},fR=class extends H{constructor(){super(...arguments),this.beanName="columnFactory"}wireBeans(e){this.dataTypeService=e.dataTypeService}createColumnTree(e,t,i,n){let o=new mR,{existingCols:r,existingGroups:a,existingColKeys:s}=this.extractExistingTreeData(i);o.addExistingKeys(s);let l=this.recursivelyCreateColumns(e,0,t,r,o,a,n),c=this.findMaxDept(l,0),h=this.balanceColumnTree(l,0,c,o);return xo(null,h,(f,b)=>{_i(f)&&f.setupExpandable(),f.setOriginalParent(b)}),{columnTree:h,treeDept:c}}extractExistingTreeData(e){let t=[],i=[],n=[];return e&&xo(null,e,o=>{if(_i(o)){let r=o;i.push(r)}else{let r=o;n.push(r.getId()),t.push(r)}}),{existingCols:t,existingGroups:i,existingColKeys:n}}balanceTreeForAutoCols(e,t){let i=[],n=this.findDepth(t);return e.forEach(o=>{let r=o;for(let a=n-1;a>=0;a--){let s=new uu(null,`FAKE_PATH_${o.getId()}}_${a}`,!0,a);this.createBean(s),s.setChildren([r]),r.setOriginalParent(s),r=s}n===0&&o.setOriginalParent(null),i.push(r)}),[i,n]}findDepth(e){let t=0,i=e;for(;i&&i[0]&&_i(i[0]);)t++,i=i[0].getChildren();return t}balanceColumnTree(e,t,i,n){let o=[];for(let r=0;r<e.length;r++){let a=e[r];if(_i(a)){let s=a,l=this.balanceColumnTree(s.getChildren(),t+1,i,n);s.setChildren(l),o.push(s)}else{let s,l;for(let c=i-1;c>=t;c--){let h=n.getUniqueKey(null,null),m=this.createMergedColGroupDef(null),f=new uu(m,h,!0,t);this.createBean(f),l&&l.setChildren([f]),l=f,s||(s=l)}if(s&&l)if(o.push(s),e.some(h=>_i(h))){l.setChildren([a]);continue}else{l.setChildren(e);break}o.push(a)}}return o}findMaxDept(e,t){let i=t;for(let n=0;n<e.length;n++){let o=e[n];if(_i(o)){let r=o,a=this.findMaxDept(r.getChildren(),t+1);i<a&&(i=a)}}return i}recursivelyCreateColumns(e,t,i,n,o,r,a){if(!e)return[];let s=new Array(e.length);for(let l=0;l<s.length;l++){let c=e[l];this.isColumnGroup(c)?s[l]=this.createColumnGroup(i,c,t,n,o,r,a):s[l]=this.createColumn(i,c,n,o,a)}return s}createColumnGroup(e,t,i,n,o,r,a){let s=this.createMergedColGroupDef(t),l=o.getUniqueKey(s.groupId||null,null),c=new uu(s,l,!1,i);this.createBean(c);let h=this.findExistingGroup(t,r);h&&r.splice(h.idx,1);let m=h?.group;m&&c.setExpanded(m.isExpanded());let f=this.recursivelyCreateColumns(s.children,i+1,e,n,o,r,a);return c.setChildren(f),c}createMergedColGroupDef(e){let t={};return Object.assign(t,this.gos.get("defaultColGroupDef")),Object.assign(t,e),t}createColumn(e,t,i,n,o){let r=this.findExistingColumn(t,i);r&&i?.splice(r.idx,1);let a=r?.column;if(a){let s=this.addColumnDefaultAndTypes(t,a.getColId());a.setColDef(s,t,o),this.applyColumnState(a,s,o)}else{let s=n.getUniqueKey(t.colId,t.field),l=this.addColumnDefaultAndTypes(t,s);a=new fm(l,t,s,e),this.createBean(a)}return this.dataTypeService?.addColumnListeners(a),a}applyColumnState(e,t,i){let n=Vr(t.flex);if(n!==void 0&&e.setFlex(n),e.getFlex()<=0){let s=Vr(t.width);if(s!=null)e.setActualWidth(s,i);else{let l=e.getActualWidth();e.setActualWidth(l,i)}}t.sort!==void 0&&(t.sort=="asc"||t.sort=="desc"?e.setSort(t.sort,i):e.setSort(void 0,i));let r=Vr(t.sortIndex);r!==void 0&&e.setSortIndex(r);let a=Ug(t.hide);a!==void 0&&e.setVisible(!a,i),t.pinned!==void 0&&e.setPinned(t.pinned)}findExistingColumn(e,t){if(t)for(let i=0;i<t.length;i++){let n=t[i].getUserProvidedColDef();if(!n)continue;if(e.colId!=null){if(t[i].getId()===e.colId)return{idx:i,column:t[i]};continue}if(e.field!=null){if(n.field===e.field)return{idx:i,column:t[i]};continue}if(n===e)return{idx:i,column:t[i]}}}findExistingGroup(e,t){if(e.groupId!=null)for(let n=0;n<t.length;n++){let o=t[n];if(o.getColGroupDef()&&o.getId()===e.groupId)return{idx:n,group:o}}}addColumnDefaultAndTypes(e,t){let i={},n=this.gos.get("defaultColDef");yi(i,n,!1,!0);let o=this.updateColDefAndGetColumnType(i,e,t);o&&this.assignColumnTypes(o,i),yi(i,e,!1,!0);let r=this.gos.get("autoGroupColumnDef"),a=Hn(this.gos);return e.rowGroup&&r&&a&&yi(i,{sort:r.sort,initialSort:r.initialSort},!1,!0),this.dataTypeService?.validateColDef(i),i}updateColDefAndGetColumnType(e,t,i){let n=this.dataTypeService?.updateColDefAndGetColumnType(e,t,i),o=t.type??n??e.type;return e.type=o,o?pu(o):void 0}assignColumnTypes(e,t){if(!e.length)return;let i=Object.assign({},gR),n=this.gos.get("columnTypes")||{};sn(n,(o,r)=>{o in i?$(`the column type '${o}' is a default column type and cannot be overridden.`):(r.type&&$("Column type definitions 'columnTypes' with a 'type' attribute are not supported because a column type cannot refer to another column type. Only column definitions 'columnDefs' can use the 'type' attribute to refer to a column type."),i[o]=r)}),e.forEach(o=>{let r=i[o.trim()];r?yi(t,r,!1,!0):$("colDef.type '"+o+"' does not correspond to defined gridOptions.columnTypes")})}isColumnGroup(e){return e.children!==void 0}};function xo(e,t,i){if(t)for(let n=0;n<t.length;n++){let o=t[n];_i(o)&&xo(o,o.getChildren(),i),i(o,e)}}var vR=class extends H{constructor(){super(...arguments),this.beanName="
492columnModel",this.pivotMode=!1,this.autoHeightActiveAtLeastOnce=!1,this.ready=!1,this.changeEventsDispatching=!1,this.shouldQueueResizeOperations=!1,this.resizeOperationQueue=[]}wireBeans(e){this.context=e.context,this.ctrlsService=e.ctrlsService,this.columnFactory=e.columnFactory,this.columnSizeService=e.columnSizeService,this.visibleColsService=e.visibleColsService,this.columnViewportService=e.columnViewportService,this.pivotResultColsService=e.pivotResultColsService,this.columnAnimationService=e.columnAnimationService,this.autoColService=e.autoColService,this.controlsColService=e.controlsColService,this.valueCache=e.valueCache,this.columnDefFactory=e.columnDefFactory,this.columnApplyStateService=e.columnApplyStateService,this.columnGroupStateService=e.columnGroupStateService,this.eventDispatcher=e.columnEventDispatcher,this.columnMoveService=e.columnMoveService,this.columnAutosizeService=e.columnAutosizeService,this.funcColsService=e.funcColsService,this.quickFilterService=e.quickFilterService,this.showRowGroupColsService=e.showRowGroupColsService,this.environment=e.environment}postConstruct(){let e=this.gos.get("pivotMode");this.isPivotSettingAllowed(e)&&(this.pivotMode=e),this.addManagedPropertyListeners(["groupDisplayType","treeData","treeDataDisplayType","groupHideOpenParents"],t=>this.refreshAll(Nr(t.source))),this.addManagedPropertyListener("rowSelection",t=>{this.onSelectionOptionsChanged(t.currentValue,t.previousValue,Nr(t.source))}),this.addManagedPropertyListener("autoGroupColumnDef",t=>this.onAutoGroupColumnDefChanged(Nr(t.source))),this.addManagedPropertyListeners(["defaultColDef","defaultColGroupDef","columnTypes","suppressFieldDotNotation"],t=>this.recreateColumnDefs(Nr(t.source))),this.addManagedPropertyListener("pivotMode",t=>this.setPivotMode(this.gos.get("pivotMode"),Nr(t.source))),this.addManagedEventListeners({firstDataRendered:()=>this.onFirstDataRendered()})}createColsFromColDefs(e){let t=this.colDefs?this.columnApplyStateService.compareColumnStatesAndDispatchEvents(e):void 0;this.valueCache.expire();let i=this.colDefCols?.list,n=this.colDefCols?.tree,o=this.columnFactory.createColumnTree(this.colDefs,!0,n,e);tr(this.context,this.colDefCols?.tree,o.columnTree);let r=o.columnTree,a=o.treeDept,s=gm(r),l={};s.forEach(c=>l[c.getId()]=c),this.colDefCols={tree:r,treeDepth:a,list:s,map:l},this.funcColsService.extractCols(e,i),this.ready=!0,this.refreshCols(!0),this.visibleColsService.refresh(e),this.columnViewportService.checkViewportColumns(),this.eventDispatcher.everythingChanged(e),t&&(this.changeEventsDispatching=!0,t(),this.changeEventsDispatching=!1),this.eventDispatcher.newColumnsLoaded(e),e==="gridInitializing"&&this.columnSizeService.applyAutosizeStrategy()}refreshCols(e){if(!this.colDefCols)return;let t=this.cols?.tree;this.saveColOrder(),this.selectCols(),this.createAutoCols(),this.addAutoCols(),this.createControlsCols(),this.addControlsCols();let i=qP(this.gos,this.showingPivotResult);(!e||i)&&this.restoreColOrder(),this.positionLockedCols(),this.showRowGroupColsService?.refresh(),this.quickFilterService?.refreshQuickFilterCols(),this.setColSpanActive(),this.setAutoHeightActive(),this.visibleColsService.clear(),this.columnViewportService.clear(),!rr(t,this.cols.tree)&&this.eventDispatcher.gridColumns()}selectCols(){let e=this.pivotResultColsService.getPivotResultCols();if(this.showingPivotResult=e!=null,e){let{map:t,list:i,tree:n,treeDepth:o}=e;this.cols={list:i.slice(),map:B({},t),tree:n.slice(),treeDepth:o},e.list.some(a=>this.cols?.map[a.getColId()]!==void 0)||(this.lastPivotOrder=null)}else{let{map:t,list:i,tree:n,treeDepth:o}=this.colDefCols;this.cols={list:i.slice(),map:B({},t),tree:n.slice(),treeDepth:o}}}getColsToShow(){let e=this.isPivotMode()&&!this.isShowingPivotResult(),t=this.funcColsService.getValueColumns(),i=this.controlsColService?.isControlsColEnabled();return this.cols.list.filter(o=>{let r=Yg(o);if(e){let a=t&&Gr(t,o);return r||a||i&&as(o)}else return r||o.isVisible()})}addAutoCols(){this.autoCols!=null&&(this.cols.list=this.autoCols.list.concat(this.cols.list),this.cols.tree=this.autoCols.tree.concat(this.cols.tree),Yb(this.cols))}createAutoCols(){let e=Tu(this.gos,this.pivotMode),t=this.pivotMode?this.gos.get("pivotSuppressAutoColumn"):this.isSuppressAutoCol(),i=this.funcColsService.getRowGroupColumns(),o=!(i.length>0||this.gos.get("treeData"))||t||e,r=()=>{this.autoCols&&(tr(this.context,this.autoCols.tree),this.autoCols=null)};if(o||!this.autoColService){r();return}let a=this.autoColService.createAutoCols(i)??[],s=Qb(a,this.autoCols?.list||null),l=this.cols.treeDepth,h=(this.autoCols?this.autoCols.treeDepth:-1)==l;if(s&&h)return;r();let[m,f]=this.columnFactory.balanceTreeForAutoCols(a,this.cols.tree);this.autoCols={list:a,tree:m,treeDepth:f,map:{}};let b=_=>{if(!_)return null;let S=_.filter(M=>
492!Yg(M));return[...a,...S]};this.lastOrder=b(this.lastOrder),this.lastPivotOrder=b(this.lastPivotOrder)}createControlsCols(){let e=()=>{tr(this.context,this.controlsCols?.tree),this.controlsCols=null};this.controlsColService||e();let t=this.cols.treeDepth,n=(this.controlsCols?.treeDepth??-1)==t,o=this.controlsColService?.createControlsCols()??[];if(Qb(o,this.controlsCols?.list??[])&&n)return;e();let[a,s]=this.columnFactory.balanceTreeForAutoCols(o,this.cols.tree);this.controlsCols={list:o,tree:a,treeDepth:s,map:{}};let l=c=>{if(!c)return null;let h=c.filter(m=>!as(m));return[...o,...h]};this.lastOrder=l(this.lastOrder),this.lastPivotOrder=l(this.lastPivotOrder)}addControlsCols(){this.controlsCols!=null&&(this.cols.list=this.controlsCols.list.concat(this.cols.list),this.cols.tree=this.controlsCols.tree.concat(this.cols.tree),Yb(this.cols))}refreshAll(e){this.isReady()&&(this.refreshCols(!1),this.visibleColsService.refresh(e))}setColsVisible(e,t=!1,i){this.columnApplyStateService.applyColumnState({state:e.map(n=>({colId:typeof n=="string"?n:n.getColId(),hide:!t}))},i)}setColsPinned(e,t,i){if(!this.cols||$i(e))return;if(Bt(this.gos,"print")){$("Changing the column pinning status is not allowed with domLayout='print'");return}this.columnAnimationService.start();let n;t===!0||t==="left"?n="left":t==="right"?n="right":n=null;let o=[];e.forEach(r=>{if(!r)return;let a=this.getCol(r);a&&a.getPinned()!==n&&(a.setPinned(n),o.push(a))}),o.length&&(this.visibleColsService.refresh(i),this.eventDispatcher.columnPinned(o,i)),this.columnAnimationService.finish()}setColumnGroupOpened(e,t,i){let n;_i(e)?n=e.getId():n=e||"",this.columnGroupStateService.setColumnGroupState([{groupId:n,open:t}],i)}getProvidedColGroup(e){let t=null;return xo(null,this.cols?.tree,i=>{_i(i)&&i.getId()===e&&(t=i)}),t}isColGroupLocked(e){let t=this.gos.get("groupLockGroupColumns");if(!e.isRowGroupActive()||t===0)return!1;if(t===-1)return!0;let n=this.funcColsService.getRowGroupColumns().findIndex(o=>o.getColId()===e.getColId());return t>n}isSuppressAutoCol(){return this.gos.get("groupDisplayType")==="custom"?!0:this.gos.get("treeDataDisplayType")==="custom"}setAutoHeightActive(){this.autoHeightActive=this.cols.list.some(e=>e.isVisible()&&e.isAutoHeight()),this.autoHeightActive&&(this.autoHeightActiveAtLeastOnce=!0,at(this.gos)||ko(this.gos)||$("autoHeight columns only work with Client Side Row Model and Server Side Row Model."))}restoreColOrder(){let e=this.showingPivotResult?this.lastPivotOrder:this.lastOrder;if(!e)return;let t=new Map(e.map((l,c)=>[l,c]));if(!this.cols.list.some(l=>t.has(l)))return;let n=new Map(this.cols.list.map(l=>[l,!0])),o=e.filter(l=>n.has(l)),r=new Map(o.map(l=>[l,!0])),a=this.cols.list.filter(l=>!r.has(l)),s=o.slice();a.forEach(l=>{let c=l.getOriginalParent();if(!c){s.push(l);return}let h=[];for(;!h.length&&c;)c.getLeafColumns().forEach(_=>{let S=s.indexOf(_)>=0,M=h.indexOf(_)<0;S&&M&&h.push(_)}),c=c.getOriginalParent();if(!h.length){s.push(l);return}let m=h.map(b=>s.indexOf(b)),f=Math.max(...m);Cu(s,l,f+1)}),this.cols.list=s}sortColsLikeKeys(e){if(this.cols==null)return;let t=[],i={};e.forEach(o=>{if(i[o])return;let r=this.cols.map[o];r&&(t.push(r),i[o]=!0)});let n=0;if(this.cols.list.forEach(o=>{let r=o.getColId();if(i[r]!=null)return;r.startsWith(Iu)?Cu(t,o,n++):t.push(o)}),t=this.columnMoveService.placeLockedColumns(t),!this.columnMoveService.doesMovePassMarryChildren(t)){$("Applying column order broke a group where columns should be married together. Applying new order has been discarded.");return}this.cols.list=t}sortColsLikeCols(e){!e||e.length<=1||e.filter(i=>this.cols.list.indexOf(i)<0).length>0||e.sort((i,n)=>{let o=this.cols.list.indexOf(i),r=this.cols.list.indexOf(n);return o-r})}resetColDefIntoCol(e,t){let i=e.getUserProvidedColDef();if(!i)return!1;let n=this.columnFactory.addColumnDefaultAndTypes(i,e.getColId());return e.setColDef(n,i,t),!0}queueResizeOperations(){this.shouldQueueResizeOperations=!0}isShouldQueueResizeOperations(){return this.shouldQueueResizeOperations}processResizeOperations(){this.shouldQueueResizeOperations=!1,this.resizeOperation
492Queue.forEach(e=>e()),this.resizeOperationQueue=[]}pushResizeOperation(e){this.resizeOperationQueue.push(e)}moveInCols(e,t,i){M_(this.cols?.list,e,t),this.visibleColsService.refresh(i)}positionLockedCols(){this.cols.list=this.columnMoveService.placeLockedColumns(this.cols.list)}saveColOrder(){this.showingPivotResult?this.lastPivotOrder=this.cols?.list:this.lastOrder=this.cols?.list}getColumnDefs(){if(!this.colDefCols)return;let e=this.colDefCols.list.slice();this.showingPivotResult?e.sort((n,o)=>this.lastOrder.indexOf(n)-this.lastOrder.indexOf(o)):this.lastOrder&&e.sort((n,o)=>this.cols.list.indexOf(n)-this.cols.list.indexOf(o));let t=this.funcColsService.getRowGroupColumns(),i=this.funcColsService.getPivotColumns();return this.columnDefFactory.buildColumnDefs(e,t,i)}isShowingPivotResult(){return this.showingPivotResult}isChangeEventsDispatching(){return this.changeEventsDispatching}isColSpanActive(){return this.colSpanActive}isProvidedColGroupsPresent(){return this.colDefCols?.treeDepth>0}setColSpanActive(){this.colSpanActive=this.cols.list.some(e=>e.getColDef().colSpan!=null)}isAutoRowHeightActive(){return this.autoHeightActive}wasAutoRowHeightEverActive(){return this.autoHeightActiveAtLeastOnce}getHeaderRowCount(){return this.cols?this.cols.treeDepth+1:-1}isReady(){return this.ready}isPivotMode(){return this.pivotMode}setPivotMode(e,t){e===this.pivotMode||!this.isPivotSettingAllowed(this.pivotMode)||(this.pivotMode=e,this.ready&&(this.refreshCols(!1),this.visibleColsService.refresh(t),this.eventDispatcher.pivotModeChanged()))}isPivotSettingAllowed(e){return e&&this.gos.get("treeData")?($("Pivot mode not available with treeData."),!1):!0}isPivotActive(){let e=this.funcColsService.getPivotColumns();return this.pivotMode&&!$i(e)}recreateColumnDefs(e){this.cols&&(this.autoCols&&this.autoColService.updateAutoCols(this.autoCols.list,e),this.createColsFromColDefs(e))}setColumnDefs(e,t){this.colDefs=e,this.createColsFromColDefs(t)}destroy(){tr(this.context,this.colDefCols?.tree),tr(this.context,this.autoCols?.tree),tr(this.context,this.controlsCols?.tree),super.destroy()}getColTree(){return this.cols.tree}getColDefColTree(){return this.colDefCols.tree}getColDefCols(){return this.colDefCols?.list?this.colDefCols.list:null}getCols(){return this.cols?.list??[]}getAllCols(){let t=this.pivotResultColsService.getPivotResultCols()?.list;return[this.colDefCols?.list??[],this.autoCols?.list??[],this.controlsCols?.list??[],t??[]].flat()}getColsForKeys(e){return e?e.map(t=>this.getCol(t)).filter(t=>t!=null):[]}getColDefCol(e){return this.colDefCols?.list?this.getColFromCollection(e,this.colDefCols):null}getCol(e){return e==null?null:this.getColFromCollection(e,this.cols)}getColFromCollection(e,t){if(t==null)return null;let{map:i,list:n}=t;if(typeof e=="string"&&i[e])return i[e];for(let o=0;o<n.length;o++)if(Kb(n[o],e))return n[o];return this.getAutoCol(e)}getAutoCol(e){return this.autoCols?.list.find(t=>Kb(t,e))??null}getAutoCols(){return this.autoCols?.list??null}setColHeaderHeight(e,t){e.setAutoHeaderHeight(t)&&(e.isColumn?this.eventDispatcher.headerHeight(e):this.eventDispatcher.groupHeaderHeight(e))}getGroupRowsHeight(){let e=[],t=this.ctrlsService.getHeaderRowContainerCtrls();for(let i of t){if(!i)continue;let n=i.getGroupRowCount()||0;for(let o=0;o<n;o++){let r=i.getGroupRowCtrlAtIndex(o),a=e[o];if(r){let s=this.getColumnGroupHeaderRowHeight(r);(a==null||s>a)&&(e[o]=s)}}}return e}getColumnGroupHeaderRowHeight(e){let t=this.isPivotMode()?this.getPivotGroupHeaderHeight():this.getGroupHeaderHeight(),i=0,n=e.getHeaderCtrls();for(let o of n){let r=o.getColumn();if(r.isAutoHeaderHeight()){let a=r.getAutoHeaderHeight();a!=null&&a>i&&(i=a)}}return Math.max(t,i)}getColumnHeaderRowHeight(){let e=this.isPivotMode()?this.getPivotHeaderHeight():this.getHeaderHeight(),i=this.visibleColsService.getAllCols().filter(n=>n.isAutoHeaderHeight()).map(n=>n.getAutoHeaderHeight()||0);return Math.max(e,...i)}getHeaderHeight(){return this.gos.get("headerHeight")??this.environment.getDefaultHeaderHeight()}getFloatingFiltersHeight(){return this.gos.get("floatingFiltersHeight")??this.getHeaderHeight()}getGroupHeaderHeight(){return this.gos.get("groupHeaderHeight")??this.getHeaderHeight()}getPivotHeaderHeight(){return this.gos.get("pivotHeaderHeight")??this.getHeaderHeight()}getPivotGroupHeaderHeight(){return this.gos.get("pivotGroupHeaderHeight")??this.getGroupHeaderHeight()}onFirstDataRendered(){let e=this.gos.get("autoSizeStrategy");if(e?.type!=="fitCellContents")return;let{colIds:t,skipHeader:i}=e;setTimeout(()=>{t?this.columnAutosizeService.autoSizeCols({colKeys:t,skipHeader:i,source:"autosizeColumns"}):this.columnAutosizeService.autoSizeAllColumns("autosizeColumns",i)})}onAutoGroupColumnDefChanged(e){this.autoCols&&this.autoColService.updateAutoCols(this.autoCols.list,e)}onSelectionOptionsChanged(e,t,i){let n=t&&typeof t!="string"?ns(t):void 0,o=e&&typeof e!="string"?ns(e):void 0,r=n!==o,a=t&&typeof t!="string"?fu(t):void 0,s=e&&typeof e!="string"?fu(e):void 0;(r||a!==s)&&this.refreshAll(i)}};function Nr(e){return e==="gridOptionsUpdated"?"gridOptionsChanged":e}function Yb(e){e.map={},e.list.forEach(t=>e.map[t.getId()]=t)}function Kb(e,t){let i=e===t,n=e.getColDef()===t,o=e.getColId()==t;return i||n||o}function Qb(e,t){return rr(e,t,(i,n)=>i.getColId()===n.getColId())}var CR=class extends H{constructor(){super(...arguments),this.beanName="
492columnAutosizeService",this.timesDelayed=0}wireBeans(e){this.columnModel=e.columnModel,this.visibleColsService=e.visibleColsService,this.animationFrameService=e.animationFrameService,this.autoWidthCalculator=e.autoWidthCalculator,this.eventDispatcher=e.columnEventDispatcher,this.ctrlsService=e.ctrlsService,this.renderStatusService=e.renderStatusService}autoSizeCols(e){if(this.columnModel.isShouldQueueResizeOperations()){this.columnModel.pushResizeOperation(()=>this.autoSizeCols(e));return}let{colKeys:t,skipHeader:i,skipHeaderGroups:n,stopAtGroup:o,source:r="api"}=e;if(this.animationFrameService.flushAllFrames(),this.timesDelayed<5&&this.renderStatusService&&!this.renderStatusService.areHeaderCellsRendered()){this.timesDelayed++,setTimeout(()=>this.autoSizeCols(e));return}this.timesDelayed=0;let a=[],s=-1,l=i??this.gos.get("skipHeaderOnAutoSize"),c=n??l;for(;s!==0;){s=0;let h=[];t.forEach(m=>{if(!m)return;let f=this.columnModel.getCol(m);if(!f||a.indexOf(f)>=0)return;let b=this.autoWidthCalculator.getPreferredWidthForColumn(f,l);if(b>0){let _=this.normaliseColumnWidth(f,b);f.setActualWidth(_,r),a.push(f),s++}h.push(f)}),h.length&&this.visibleColsService.refresh(r)}c||this.autoSizeColumnGroupsByColumns(t,r,o),this.eventDispatcher.columnResized(a,!0,"autosizeColumns")}autoSizeColumn(e,t,i){e&&this.autoSizeCols({colKeys:[e],skipHeader:i,skipHeaderGroups:!0,source:t})}autoSizeColumnGroupsByColumns(e,t,i){let n=new Set;this.columnModel.getColsForKeys(e).forEach(s=>{let l=s.getParent();for(;l&&l!=i;)l.isPadding()||n.add(l),l=l.getParent()});let r,a=[];for(let s of n){for(let l of this.ctrlsService.getHeaderRowContainerCtrls())if(r=l.getHeaderCtrlForColumn(s),r)break;r&&r.resizeLeafColumnsToFit(t)}return a}
492autoSizeAllColumns(e,t){if(this.columnModel.isShouldQueueResizeOperations()){this.columnModel.pushResizeOperation(()=>this.autoSizeAllColumns(e,t));return}let i=this.visibleColsService.getAllCols();this.autoSizeCols({colKeys:i,skipHeader:t,source:e})}normaliseColumnWidth(e,t){let i=e.getMinWidth();t<i&&(t=i);let n=e.getMaxWidth();return e.isGreaterThanMax(t)&&(t=n),t}},bR=class extends H{constructor(){super(...arguments),this.beanName="funcColsService",this.rowGroupCols=[],this.valueCols=[],this.pivotCols=[]}wireBeans(e){this.columnModel=e.columnModel,this.eventDispatcher=e.columnEventDispatcher,this.aggFuncService=e.aggFuncService,this.visibleColsService=e.visibleColsService}getModifyColumnsNoEventsCallbacks(){return{addGroupCol:e=>this.rowGroupCols.push(e),removeGroupCol:e=>xi(this.rowGroupCols,e),addPivotCol:e=>this.pivotCols.push(e),removePivotCol:e=>xi(this.pivotCols,e),addValueCol:e=>this.valueCols.push(e),removeValueCol:e=>xi(this.valueCols,e)}}getSourceColumnsForGroupColumn(e){let t=e.getColDef().showRowGroup;if(!t)return null;if(t===!0)return this.rowGroupCols.slice(0);let i=this.columnModel.getColDefCol(t);return i?[i]:null}sortRowGroupColumns(e){this.rowGroupCols.sort(e)}sortPivotColumns(e){this.pivotCols.sort(e)}getValueColumns(){return this.valueCols?this.valueCols:[]}getPivotColumns(){return this.pivotCols?this.pivotCols:[]}getRowGroupColumns(){return this.rowGroupCols?this.rowGroupCols:[]}isRowGroupEmpty(){return $i(this.rowGroupCols)}setColumnAggFunc(e,t,i){if(!e)return;let n=this.columnModel.getColDefCol(e);n&&(n.setAggFunc(t),this.eventDispatcher.columnChanged("columnValueChanged",[n],i))}setRowGroupColumns(e,t){this.setColList(e,this.rowGroupCols,"columnRowGroupChanged",!0,!0,(i,n)=>this.setRowGroupActive(i,n,t),t)}setRowGroupActive(e,t,i){e!==t.isRowGroupActive()&&(t.setRowGroupActive(e,i),e&&!this.gos.get("suppressRowGroupHidesColumns")&&this.columnModel.setColsVisible([t],!1,i),!e&&!this.gos.get("suppressMakeColumnVisibleAfterUnGroup")&&this.columnModel.setColsVisible([t],!0,i))}addRowGroupColumns(e,t){this.updateColList(e,this.rowGroupCols,!0,!0,i=>this.setRowGroupActive(!0,i,t),"columnRowGroupChanged",t)}removeRowGroupColumns(e,t){this.updateColList(e,this.rowGroupCols,!1,!0,i=>this.setRowGroupActive(!1,i,t),"columnRowGroupChanged",t)}addPivotColumns(e,t){this.updateColList(e,this.pivotCols,!0,!1,i=>i.setPivotActive(!0,t),"columnPivotChanged",t)}setPivotColumns(e,t){this.setColList(e,this.pivotCols,"columnPivotChanged",!0,!1,(i,n)=>{n.setPivotActive(i,t)},t)}removePivotColumns(e,t){this.updateColList(e,this.pivotCols,!1,!1,i=>i.setPivotActive(!1,t),"columnPivotChanged",t)}setValueColumns(e,t){this.setColList(e,this.valueCols,"columnValueChanged",!1,!1,(i,n)=>this.setValueActive(i,n,t),t)}setValueActive(e,t,i){if(e!==t.isValueActive()&&(t.setValueActive(e,i),e&&!t.getAggFunc()&&this.aggFuncService)){let n=this.aggFuncService.getDefaultAggFunc(t);t.setAggFunc(n)}}addValueColumns(e,t){this.updateColList(e,this.valueCols,!0,!1,i=>this.setValueActive(!0,i,t),"columnValueChanged",t)}removeValueColumns(e,t){this.updateColList(e,this.valueCols,!1,!1,i=>this.setValueActive(!1,i,t),"columnValueChanged",t)}moveRowGroupColumn(e,t,i){if(this.isRowGroupEmpty())return;let n=this.rowGroupCols[e],o=this.rowGroupCols.slice(e,t);this.rowGroupCols.splice(e,1),this.rowGroupCols.splice(t,0,n),this.eventDispatcher.rowGroupChanged(o,i)}setColList(e,t,i,n,o,r,a){if(!this.columnModel.getCols())return;let s=new Map;t.forEach((c,h)=>s.set(c,h)),t.length=0,K(e)&&e.forEach(c=>{let h=this.columnModel.getColDefCol(c);h&&t.push(h)}),t.forEach((c,h)=>{let m=s.get(c);if(m===void 0){s.set(c,0);return}n&&m!==h||s.delete(c)}),(this.columnModel.getColDefCols()||[]).forEach(c=>{let h=t.indexOf(c)>=0;r(h,c)}),o&&this.columnModel.refreshCols(!1),this.visibleColsService.refresh(a),this.eventDispatcher.columnChanged(i,[...s.keys()],a)}updateColList(e,t,i,n,o,r,a){if(!e||$i(e))return;let s=!1,l=new Set;e.forEach(c=>{if(!c)return;let h=this.columnModel.getColDefCol(c);if(h){if(l.add(h),i){if(t.indexOf(h)>=0)return;t.push(h)}else{let m=t.indexOf(h);if(m<0)return;for(let f=m+1;f<t.length;f++)l.add(t[f]);xi(t,h)}o(h),s=!0}}),s&&(n&&this.columnModel.refreshCols(!1),this.visibleColsService.refresh(a),this.eventDispatcher.genericColumnEvent(r,Array.from(l),a))}extractCols(e,t){this.extractRowGroupCols(e,t),this.extractPivotCols(e,t),this.extractValueCols(e,t)}extractValueCols(e,t){this.valueCols=this.extractColsCommon(t,this.valueCols,(i,n)=>i.setValueActive(n,e),()=>{},()=>{},i=>{let n=i.aggFunc;if(n===null||n==="")return null;if(n!==void 0)return!!n},i=>i.initialAggFunc!=null&&i.initialAggFunc!=""),this.valueCols.forEac
492h(i=>{let n=i.getColDef();n.aggFunc!=null&&n.aggFunc!=""?i.setAggFunc(n.aggFunc):i.getAggFunc()||i.setAggFunc(n.initialAggFunc)})}extractRowGroupCols(e,t){this.rowGroupCols=this.extractColsCommon(t,this.rowGroupCols,(i,n)=>i.setRowGroupActive(n,e),i=>i.rowGroupIndex,i=>i.initialRowGroupIndex,i=>i.rowGroup,i=>i.initialRowGroup)}extractPivotCols(e,t){this.pivotCols=this.extractColsCommon(t,this.pivotCols,(i,n)=>i.setPivotActive(n,e),i=>i.pivotIndex,i=>i.initialPivotIndex,i=>i.pivot,i=>i.initialPivot)}extractColsCommon(e=[],t=[],i,n,o,r,a){let s=[],l=[];(this.columnModel.getColDefCols()||[]).forEach(f=>{let b=e.indexOf(f)<0,_=f.getColDef(),S=Ug(r(_)),M=Ug(a(_)),D=Vr(n(_)),I=Vr(o(_)),F;S!==void 0?F=S:D!==void 0?D===null?F=!1:F=D>=0:b?M!==void 0?F=M:I!==void 0?F=I!=null&&I>=0:F=!1:F=t.indexOf(f)>=0,F&&((b?D!=null||I!=null:D!=null)?s.push(f):l.push(f))});let h=f=>{let b=n(f.getColDef()),_=o(f.getColDef());return b??_};s.sort((f,b)=>{let _=h(f),S=h(b);return _===S?0:_<S?-1:1});let m=[].concat(s);return t.forEach(f=>{l.indexOf(f)>=0&&m.push(f)}),l.forEach(f=>{m.indexOf(f)<0&&m.push(f)}),t.forEach(f=>{m.indexOf(f)<0&&i(f,!1)}),m.forEach(f=>{t.indexOf(f)<0&&i(f,!0)}),m}generateColumnStateForRowGroupAndPivotIndexes(e,t){let i={},n=(o,r,a,s,l,c)=>{let h=this.columnModel.getColDefCols();if(!r.length||!h)return[];let m=Object.keys(o),f=new Set(m),b=new Set(m),_=new Set(r.map(Z=>{let q=Z.getColId();return b.delete(q),q}).concat(m)),S=[],M={},D=0;for(let Z=0;Z<h.length;Z++){let q=h[Z].getColId();_.has(q)&&(S.push(q),M[q]=D++)}let I=1e3,F=!1,W=0,re=Z=>{let q=M[Z];for(let ce=W;ce<q;ce++){let _e=S[ce];b.has(_e)&&(o[_e][l]=I++,b.delete(_e))}W=q};r.forEach(Z=>{let q=Z.getColId();if(f.has(q))re(q),o[q][l]=I++;else{let ce=Z.getColDef();(ce[l]===null||ce[l]===void 0&&ce[c]==null)&&(F||(ce[a]||ce[a]===void 0&&ce[s]?re(q):(b.forEach(Mi=>{o[Mi][l]=I+M[Mi]}),I+=S.length,F=!0)),i[q]||(i[q]={colId:q}),i[q][l]=I++)}})};return n(e,this.rowGroupCols,"rowGroup","initialRowGroup","rowGroupIndex","initialRowGroupIndex"),n(t,this.pivotCols,"pivot","initialPivot","pivotIndex","initialPivotIndex"),Object.values(i)}},_R=class extends H{constructor(){super(...arguments),this.beanName="columnApplyStateService"}wireBeans(e){this.columnModel=e.columnModel,this.eventDispatcher=e.columnEventDispatcher,this.sortController=e.sortController,this.columnGetStateService=e.columnGetStateService,this.funcColsService=e.funcColsService,this.visibleColsService=e.visibleColsService,this.columnAnimationService=e.columnAnimationService,this.pivotResultColsService=e.pivotResultColsService}applyColumnState(e,t){let i=this.columnModel.getColDefCols()||[];if($i(i))return!1;if(e&&e.state&&!e.state.forEach)return $("applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state."),!1;let n=this.funcColsService.getModifyColumnsNoEventsCallbacks(),o=(s,l,c)=>{let h=this.compareColumnStatesAndDispatchEvents(t),m=l.slice(),f={},b={},_=[],S=[],M=0,D=this.funcColsService.getRowGroupColumns().slice(),I=this.funcColsService.getPivotColumns().slice();s.forEach(Z=>{let q=Z.colId||"";if(q.startsWith(Iu)){_.push(Z),S.push(Z);return}let _e=c(q);_e?(this.syncColumnWithStateItem(_e,Z,e.defaultState,f,b,!1,t,n),xi(m,_e)):(S.push(Z),M+=1)});let F=Z=>this.syncColumnWithStateItem(Z,null,e.defaultState,f,b,!1,t,n);m.forEach(F),this.funcColsService.sortRowGroupColumns(Jb.bind(this,f,D)),this.funcColsService.sortPivotColumns(Jb.bind(this,b,I)),this.columnModel.refreshCols(!1);let re=(this.columnModel.getAutoCols()||[]).slice();return _.forEach(Z=>{let q=this.columnModel.getAutoCol(Z.colId);xi(re,q),this.syncColumnWithStateItem(q,Z,e.defaultState,null,null,!0,t,n)}),re.forEach(F),this.orderLiveColsLikeState(e),this.visibleColsService.refresh(t),this.eventDispatcher.everythingChanged(t),h(),{unmatchedAndAutoStates:S,unmatchedCount:M}};this.columnAnimationService.start();let{unmatchedAndAutoStates:r,unmatchedCount:a}=o(e.state||[],i,s=>this.columnModel.getColDefCol(s));if(r.length>0||K(e.defaultState)){let l=this.pivotResultColsService.getPivotResultCols()?.list;
492a=o(r,l||[],c=>this.pivotResultColsService.getPivotResultCol(c)).unmatchedCount}return this.columnAnimationService.finish(),a===0}resetColumnState(e){let t=this.columnModel.getColDefCols();if($i(t))return;let i=this.columnModel.getColDefColTree(),n=gm(i),o=[],r=1e3,a=1e3,s=[],l=this.columnModel.getAutoCols();l&&(s=s.concat(l)),n&&(s=s.concat(n)),s.forEach(c=>{let h=this.getColumnStateFromColDef(c);Fe(h.rowGroupIndex)&&h.rowGroup&&(h.rowGroupIndex=r++),Fe(h.pivotIndex)&&h.pivot&&(h.pivotIndex=a++),o.push(h)}),this.applyColumnState({state:o,applyOrder:!0},e)}getColumnStateFromColDef(e){let t=(_,S)=>_??S??null,i=e.getColDef(),n=t(i.sort,i.initialSort),o=t(i.sortIndex,i.initialSortIndex),r=t(i.hide,i.initialHide),a=t(i.pinned,i.initialPinned),s=t(i.width,i.initialWidth),l=t(i.flex,i.initialFlex),c=t(i.rowGroupIndex,i.initialRowGroupIndex),h=t(i.rowGroup,i.initialRowGroup);c==null&&(h==null||h==!1)&&(c=null,h=null);let m=t(i.pivotIndex,i.initialPivotIndex),f=t(i.pivot,i.initialPivot);m==null&&(f==null||f==!1)&&(m=null,f=null);let b=t(i.aggFunc,i.initialAggFunc);return{colId:e.getColId(),sort:n,sortIndex:o,hide:r,pinned:a,width:s,flex:l,rowGroup:h,rowGroupIndex:c,pivot:f,pivotIndex:m,aggFunc:b}}syncColumnWithStateItem(e,t,i,n,o,r,a,s){if(!e)return;let l=(W,re)=>{let Z={value1:void 0,value2:void 0},q=!1;return t&&(t[W]!==void 0&&(Z.value1=t[W],q=!0),K(re)&&t[re]!==void 0&&(Z.value2=t[re],q=!0)),!q&&i&&(i[W]!==void 0&&(Z.value1=i[W]),K(re)&&i[re]!==void 0&&(Z.value2=i[re])),Z},c=l("hide").value1;c!==void 0&&e.setVisible(!c,a);let h=l("pinned").value1;h!==void 0&&e.setPinned(h);let m=e.getColDef().minWidth??this.gos.environment.getDefaultColumnMinWidth(),f=l("flex").value1;if(f!==void 0&&e.setFlex(f),f==null){let W=l("width").value1;W!=null&&m!=null&&W>=m&&e.setActualWidth(W,a)}let b=l("sort").value1;b!==void 0&&(b==="desc"||b==="asc"?e.setSort(b,a):e.setSort(void 0,a));let _=l("sortIndex").value1;if(_!==void 0&&e.setSortIndex(_),r||!e.isPrimary())return;let S=l("aggFunc").value1;S!==void 0&&(typeof S=="string"?(e.setAggFunc(S),e.isValueActive()||(e.setValueActive(!0,a),s.addValueCol(e))):(K(S)&&$("stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON."),e.isValueActive()&&(e.setValueActive(!1,a),s.removeValueCol(e))));let{value1:M,value2:D}=l("rowGroup","rowGroupIndex");(M!==void 0||D!==void 0)&&(typeof D=="number"||M?(e.isRowGroupActive()||(e.setRowGroupActive(!0,a),s.addGroupCol(e)),n&&typeof D=="number"&&(n[e.getId()]=D)):e.isRowGroupActive()&&(e.setRowGroupActive(!1,a),s.removeGroupCol(e)));let{value1:I,value2:F}=l("pivot","pivotIndex");(I!==void 0||F!==void 0)&&(typeof F=="number"||I?(e.isPivotActive()||(e.setPivotActive(!0,a),s.addPivotCol(e)),o&&typeof F=="number"&&(o[e.getId()]=F)):e.isPivotActive()&&(e.setPivotActive(!1,a),s.removePivotCol(e)))}orderLiveColsLikeState(e){if(!e.applyOrder||!e.state)return;let t=[];e.state.forEach(i=>{i.colId!=null&&t.push(i.colId)}),this.columnModel.sortColsLikeKeys(t)}compareColumnStatesAndDispatchEvents(e){let t={rowGroupColumns:this.funcColsService.getRowGroupColumns().slice(),pivotColumns:this.funcColsService.getPivotColumns().slice(),valueColumns:this.funcColsService.getValueColumns().slice()},i=this.columnGetStateService.getColumnState(),n={};return i.forEach(o=>{n[o.colId]=o}),()=>{let o=this.columnModel.getAllCols(),r=(S,M,D,I)=>{let F=M.map(I),W=D.map(I);if(rr(F,W))return;let Z=new Set(M);D.forEach(ce=>{Z.delete(ce)||Z.add(ce)});let q=[...Z];this.eventService.dispatchEvent({type:S,columns:q,column:q.length===1?q[0]:null,source:e})},a=S=>{let M=[];return o.forEach(D=>{let I=n[D.getColId()];I&&S(I,D)&&M.push(D)}),M},s=S=>S.getColId();
492r("columnRowGroupChanged",t.rowGroupColumns,this.funcColsService.getRowGroupColumns(),s),r("columnPivotChanged",t.pivotColumns,this.funcColsService.getPivotColumns(),s);let c=a((S,M)=>{let D=S.aggFunc!=null,I=D!=M.isValueActive(),F=D&&S.aggFunc!=M.getAggFunc();return I||F});c.length>0&&this.eventDispatcher.columnChanged("columnValueChanged",c,e);let h=(S,M)=>S.width!=M.getActualWidth();this.eventDispatcher.columnResized(a(h),!0,e);let m=(S,M)=>S.pinned!=M.getPinned();this.eventDispatcher.columnPinned(a(m),e);let f=(S,M)=>S.hide==M.isVisible();this.eventDispatcher.columnVisible(a(f),e);let _=a((S,M)=>S.sort!=M.getSort()||S.sortIndex!=M.getSortIndex());_.length>0&&this.sortController.dispatchSortChangedEvents(e,_),this.normaliseColumnMovedEventForColumnState(i,e)}}normaliseColumnMovedEventForColumnState(e,t){let i=this.columnGetStateService.getColumnState(),n={};i.forEach(l=>n[l.colId]=l);let o={};e.forEach(l=>{n[l.colId]&&(o[l.colId]=!0)});let r=e.filter(l=>o[l.colId]),a=i.filter(l=>o[l.colId]),s=[];a.forEach((l,c)=>{let h=r&&r[c];if(h&&h.colId!==l.colId){let m=this.columnModel.getCol(h.colId);m&&s.push(m)}}),s.length&&this.eventDispatcher.columnMoved({movedColumns:s,source:t,finished:!0})}},Jb=(e,t,i,n)=>{let o=e[i.getId()],r=e[n.getId()],a=o!=null,s=r!=null;if(a&&s)return o-r;if(a)return-1;if(s)return 1;let l=t.indexOf(i),c=t.indexOf(n),h=l>=0,m=c>=0;return h&&m?l-c:h?-1:1},yR=class extends H{constructor(){super(...arguments),this.beanName="columnMoveService"}wireBeans(e){this.columnModel=e.columnModel,this.columnAnimationService=e.columnAnimationService,this.eventDispatcher=e.columnEventDispatcher}moveColumnByIndex(e,t,i){let n=this.columnModel.getCols();if(!n)return;let o=n[e];this.moveColumns([o],t,i)}moveColumns(e,t,i,n=!0){let o=this.columnModel.getCols();if(!o)return;if(t>o.length-e.length){$("tried to insert columns in invalid location, toIndex = ",t),$("remember that you should not count the moving columns when calculating the new index");return}this.columnAnimationService.start();let r=this.columnModel.getColsForKeys(e);this.doesMovePassRules(r,t)&&(this.columnModel.moveInCols(r,t,i),this.eventDispatcher.columnMoved({movedColumns:r,source:i,toIndex:t,finished:n})),this.columnAnimationService.finish()}doesMovePassRules(e,t){let i=this.getProposedColumnOrder(e,t);return this.doesOrderPassRules(i)}doesOrderPassRules(e){return!(!this.doesMovePassMarryChildren(e)||!this.doesMovePassLockedPositions(e))}getProposedColumnOrder(e,t){let n=this.columnModel.getCols().slice();return M_(n,e,t),n}doesMovePassLockedPositions(e){let t=r=>r?r==="left"||r===!0?-1:1:0,i=this.gos.get("enableRtl"),n=i?1:-1,o=!0;return e.forEach(r=>{let a=t(r.getColDef().lockPosition);i?a>n&&(o=!1):a<n&&(o=!1),n=a}),o}doesMovePassMarryChildren(e){let t=!0,i=this.columnModel.getColTree();return xo(null,i,n=>{if(!_i(n))return;let o=n,r=o.getColGroupDef();if(!(r&&r.marryChildren))return;let s=[];o.getLeafColumns().forEach(f=>{let b=e.indexOf(f);s.push(b)});let l=Math.max.apply(Math,s),c=Math.min.apply(Math,s),h=l-c,m=o.getLeafColumns().length-1;h>m&&(t=!1)}),t}placeLockedColumns(e){let t=[],i=[],n=[];return e.forEach(r=>{let a=r.getColDef().lockPosition;a==="right"?n.push(r):a==="left"||a===!0?t.push(r):i.push(r)}),this.gos.get("enableRtl")?[...n,...i,...t]:[...t,...i,...n]}},wR=/[&<>"']/g,xR={"&":"&","<":"<",">":">",'"':""","'":"'"};function Gn(e,t){if(e==null)return null;let i=e.toString().toString();return t?i:i.replace(wR,n=>xR[n])}function SR(e){if(!e||e==null)return null;let t=/([a-z])([A-Z])/g,i=/([A-Z]+)([A-Z])([a-z])/g;return e.replace(t,"$1 $2").replace(i,"$1 $2$3").replace(/\./g," ").split(" ").map(o=>o.substring(0,1).toUpperCase()+(o.length>1?o.substring(1,o.length):"")).join(" ")}function kR(e){return e.replace(/[A-Z]/g,t=>`-${t.toLocaleLowerCase()}`)}var ER=class extends H{constructor(){super(...arguments),this.beanName="columnNameService"}wireBeans(e){this.expressionService=e.expressionService,this.funcColsService=e.funcColsService,this.columnModel=e.columnModel}getDisplayNameForColumn(e,t,i=!1){if(!e)return null;let n=this.getHeaderName(e.getColDef(),e,null,null,t);return i?this.wrapHeaderNameWithAggFunc(e,n):n}getDisplayNameForProvidedColumnGroup(e,t,i){let n=t?t.getColGroupDef():null;return n?this.getHeaderName(n,null,e,t,i):null}getDisplayNameForColumnGroup(e,t){return this.getDisplayNameForProvidedColumnGroup(e,e.getProvidedColumnGroup(),t)}getHeaderName(e,t,i,n,o){let r=e.headerValueGetter;if(r){let a=this.gos.addGridCommonParams({colDef:e,column:t,columnGroup:i,providedColumnGroup:n,location:o});
492return typeof r=="function"?r(a):typeof r=="string"?this.expressionService.evaluate(r,a):($("headerValueGetter must be a function or a string"),"")}else{if(e.headerName!=null)return e.headerName;if(e.field)return SR(e.field)}return""}wrapHeaderNameWithAggFunc(e,t){if(this.gos.get("suppressAggFuncInHeader"))return t;let i=e.getColDef().pivotValueColumn,n=K(i),o=null,r;if(n){let a=this.funcColsService.getValueColumns(),s=this.gos.get("removePivotHeaderRowWhenSingleValueColumn")&&a.length===1,l=e.getColDef().pivotTotalColumnIds!==void 0;if(s&&!l)return t;o=i?i.getAggFunc():null,r=!0}else{let a=e.isValueActive(),s=this.columnModel.isPivotMode()||!this.funcColsService.isRowGroupEmpty();a&&s?(o=e.getAggFunc(),r=!0):r=!1}if(r){let a=typeof o=="string"?o:"func";return`${this.localeService.getLocaleTextFunc()(a,a)}(${t})`}return t}},MR=class extends H{constructor(){super(...arguments),this.beanName="pivotResultColsService"}wireBeans(e){this.context=e.context,this.columnModel=e.columnModel,this.columnFactory=e.columnFactory,this.visibleColsService=e.visibleColsService}destroy(){tr(this.context,this.pivotResultCols?.tree),super.destroy()}isPivotResultColsPresent(){return this.pivotResultCols!=null}lookupPivotResultCol(e,t){if(this.pivotResultCols==null)return null;let i=this.columnModel.getColDefCol(t),n=null;return this.pivotResultCols.list.forEach(o=>{let r=o.getColDef().pivotKeys,a=o.getColDef().pivotValueColumn;rr(r,e)&&a===i&&(n=o)}),n}getPivotResultCols(){return this.pivotResultCols}getPivotResultCol(e){return this.pivotResultCols?this.columnModel.getColFromCollection(e,this.pivotResultCols):null}setPivotResultCols(e,t){if(this.columnModel.isReady()&&!(e==null&&this.pivotResultCols==null)){if(e){this.processPivotResultColDef(e);let i=this.columnFactory.createColumnTree(e,!1,this.pivotResultCols?.tree||this.previousPivotResultCols||void 0,t);tr(this.context,this.pivotResultCols?.tree,i.columnTree);let n=i.columnTree,o=i.treeDept,r=gm(n),a={};this.pivotResultCols={tree:n,treeDepth:o,list:r,map:a},this.pivotResultCols.list.forEach(l=>this.pivotResultCols.map[l.getId()]=l);let s=!!this.previousPivotResultCols;this.previousPivotResultCols=null,this.columnModel.refreshCols(!s)}else this.previousPivotResultCols=this.pivotResultCols?this.pivotResultCols.tree:null,this.pivotResultCols=null,this.columnModel.refreshCols(!1);this.visibleColsService.refresh(t)}}processPivotResultColDef(e){let t=this.gos.get("processPivotResultColDef"),i=this.gos.get("processPivotResultColGroupDef");if(!t&&!i)return;let n=o=>{o.forEach(r=>{if(K(r.children)){let s=r;i&&i(s),n(s.children)}else t&&t(r)})};e&&n(e)}},TR=class extends H{constructor(){super(...arguments),this.beanName="columnSizeService"}wireBeans(e){this.columnModel=e.columnModel,this.columnViewportService=e.columnViewportService,this.eventDispatcher=e.columnEventDispatcher,this.visibleColsService=e.visibleColsService,this.ctrlsService=e.ctrlsService}setColumnWidths(e,t,i,n){let o=[];e.forEach(r=>{let a=this.columnModel.getColDefCol(r.key)||this.columnModel.getCol(r.key);if(!a)return;if(o.push({width:r.newWidth,ratios:[1],columns:[a]}),this.gos.get("colResizeDefault")==="shift"&&(t=!t),t){let l=this.visibleColsService.getColAfter(a);if(!l)return;let c=a.getActualWidth()-r.newWidth,h=l.getActualWidth()+c;o.push({width:h,ratios:[1],columns:[l]})}}),o.length!==0&&this.resizeColumnSets({resizeSets:o,finished:i,source:n})}resizeColumnSets(e){let{resizeSets:t,finished:i,source:n}=e;if(!(!t||t.every(h=>this.checkMinAndMaxWidthsForSet(h)))){if(i){let h=t&&t.length>0?t[0].columns:null;this.eventDispatcher.columnResized(h,i,n)}return}let r=[],a=[];t.forEach(h=>{let{width:m,columns:f,ratios:b}=h,_={},S={};f.forEach(I=>a.push(I));let M=!0,D=0;for(;M;){if(D++,D>1e3){Be("infinite loop in resizeColumnSets");break}M=!1;let I=[],F=0,W=m;f.forEach((Z,q)=>{if(S[Z.getId()])W-=_[Z.getId()];else{I.push(Z);let _e=b[q];F+=_e}});let re=1/F;I.forEach((Z,q)=>{let ce=q===I.length-1,_e;ce?_e=W:(_e=Math.round(b[q]*m*re),W-=_e);let Et=Z.getMinWidth(),Mi=Z.getMaxWidth();_e<Et?(_e=Et,S[Z.getId()]=!0,M=!0):Mi>0&&_e>Mi&&(_e=Mi,S[Z.getId()]=!0,M=!0),_[Z.getId()]=_e})}f.forEach(I=>{let F=_[I.getId()];I.getActualWidth()!==F&&(I.setActualWidth(F,n),r.push(I))})});let s=r.length>0,l=[];s&&(l=this.refreshFlexedColumns({resizingCols:a,skipSetLeft:!0}),this.visibleColsService.setLeftValues(n),this.visibleColsService.updateBodyWidths(),this.columnViewportService.checkViewportColumns());let c=a.concat(l);(s||i)&&this.eventDispatcher.columnResized(c,i,n,l)}
492checkMinAndMaxWidthsForSet(e){let{columns:t,width:i}=e,n=0,o=0,r=!0;t.forEach(l=>{let c=l.getMinWidth();n+=c||0;let h=l.getMaxWidth();h>0?o+=h:r=!1});let a=i>=n,s=!r||i<=o;return a&&s}refreshFlexedColumns(e={}){let t=e.source?e.source:"flex";if(e.viewportWidth!=null&&(this.flexViewportWidth=e.viewportWidth),!this.flexViewportWidth)return[];let i=this.visibleColsService.getCenterCols(),n=-1;if(e.resizingCols){let f=new Set(e.resizingCols);for(let b=i.length-1;b>=0;b--)if(f.has(i[b])){n=b;break}}let o=0,r=[],a=0,s=0;for(let f=0;f<i.length;f++)i[f].getFlex()&&f>n?(r.push(i[f]),s+=i[f].getFlex(),a+=i[f].getMinWidth()):o+=i[f].getActualWidth();if(!r.length)return[];let l=[];o+a>this.flexViewportWidth&&(r.forEach(f=>f.setActualWidth(f.getMinWidth(),t)),l=r,r=[]);let c=[],h;e:for(;;){h=this.flexViewportWidth-o;let f=h/s;for(let b=0;b<r.length;b++){let _=r[b],S=f*_.getFlex(),M=0,D=_.getMinWidth(),I=_.getMaxWidth();if(S<D?M=D:S>I&&(M=I),M){_.setActualWidth(M,t),E_(r,_),s-=_.getFlex(),l.push(_),o+=_.getActualWidth();continue e}c[b]=Math.floor(S)}break}let m=h;return r.forEach((f,b)=>{let _=b<r.length-1?Math.min(c[b],m):Math.max(c[b],m);f.setActualWidth(_,t),l.push(f),m-=c[b]}),e.skipSetLeft||this.visibleColsService.setLeftValues(t),e.updateBodyWidths&&this.visibleColsService.updateBodyWidths(),e.fireResizedEvent&&this.eventDispatcher.columnResized(l,!0,t,r),r}sizeColumnsToFit(e,t="sizeColumnsToFit",i,n){if(this.columnModel.isShouldQueueResizeOperations()){this.columnModel.pushResizeOperation(()=>this.sizeColumnsToFit(e,t,i,n));return}let o={};n&&n?.columnLimits?.forEach(_=>{var S=_,{key:f}=S,b=Js(S,["key"]);o[typeof f=="string"?f:f.getColId()]=b});let r=this.visibleColsService.getAllCols(),a=e===Co(r);if(e<=0||!r.length||a)return;let s=[],l=[];r.forEach(f=>{f.getColDef().suppressSizeToFit===!0?l.push(f):s.push(f)});let c=s.slice(0),h=!1,m=f=>{xi(s,f),l.push(f)};for(s.forEach(f=>{f.resetActualWidth(t);let b=o?.[f.getId()],_=b?.minWidth??n?.defaultMinWidth,S=b?.maxWidth??n?.defaultMaxWidth,M=f.getActualWidth();typeof _=="number"&&M<_?f.setActualWidth(_,t,!0):typeof S=="number"&&M>S&&f.setActualWidth(S,t,!0)});!h;){h=!0;let f=e-Co(l);if(f<=0)s.forEach(b=>{let _=o?.[b.getId()]?.minWidth??n?.defaultMinWidth;if(typeof _=="number"){b.setActualWidth(_,t,!0);return}b.setMinimum(t)});else{let b=f/Co(s),_=f;for(let S=s.length-1;S>=0;S--){let M=s[S],D=o?.[M.getId()],I=D?.minWidth??n?.defaultMinWidth,F=D?.maxWidth??n?.defaultMaxWidth,W=M.getMinWidth(),re=M.getMaxWidth(),Z=typeof I=="number"&&I>W?I:W,q=typeof F=="number"&&F<re?F:re,ce=Math.round(M.getActualWidth()*b);ce<Z?(ce=Z,m(M),h=!1):ce>q?(ce=q,m(M),h=!1):S===0&&(ce=_),M.setActualWidth(ce,t,!0),_-=ce}}}c.forEach(f=>{f.fireColumnWidthChangedEvent(t)}),this.visibleColsService.setLeftValues(t),this.visibleColsService.updateBodyWidths(),!i&&this.eventDispatcher.columnResized(c,!0,t)}applyAutosizeStrategy(){let e=this.gos.get("autoSizeStrategy");if(!e)return;let{type:t}=e;setTimeout(()=>{if(t==="fitGridWidth"){let{columnLimits:i,defaultMinWidth:n,defaultMaxWidth:o}=e,r=i?.map(({colId:a,minWidth:s,maxWidth:l})=>({key:a,minWidth:s,maxWidth:l}));this.ctrlsService.getGridBodyCtrl().sizeColumnsToFit({defaultMinWidth:n,defaultMaxWidth:o,columnLimits:r})}else t==="fitProvidedWidth"&&this.sizeColumnsToFit(e.width,"sizeColumnsToFit")})}};function F_(e,t){return e+"_"+t}function wt(e){return e instanceof O_}var O_=class extends H{constructor(e,t,i,n){super(),this.isColumn=!1,this.displayedChildren=[],this.autoHeaderHeight=null,this.parent=null,this.groupId=t,this.partId=i,this.providedColumnGroup=e,this.pinned=n}reset(){this.parent=null,this.children=null,this.displayedChildren=null}getParent(){return this.parent}setParent(e){this.parent=e}getUniqueId(){return F_(this.groupId,this.partId)}isEmptyGroup(){return this.displayedChildren.length===0}isMoving(){let e=this.getProvidedColumnGroup().getLeafColumns();return!e||e.length===0?!1:e.every(t=>t.isMoving())}checkLeft(){if(this.displayedChildren.forEach(e=>{wt(e)&&e.checkLeft()}),this.displayedChildren.length>0)if(this.gos.get("enableRtl")){let t=Ae(this.displayedChildren).getLeft();this.setLeft(t)}else{let e=this.displayedChildren[0].getLeft();this.setLeft(e)}else this.setLeft(null)}getLeft(){return this.left}getOldLeft(){return this.oldLeft}setLeft(e){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.dispatchLocalEvent({type:"leftChanged"}))}getPinned(){return this.pinned}getGroupId(){return this.groupId}getPartId(){return this.partId}getActualWidth(){let e=0;
vendor: 4,171 bytes, line 492
492return this.displayedChildren&&this.displayedChildren.forEach(t=>{e+=t.getActualWidth()}),e}isResizable(){if(!this.displayedChildren)return!1;let e=!1;return this.displayedChildren.forEach(t=>{t.isResizable()&&(e=!0)}),e}getMinWidth(){let e=0;return this.displayedChildren.forEach(t=>{e+=t.getMinWidth()}),e}addChild(e){this.children||(this.children=[]),this.children.push(e)}getDisplayedChildren(){return this.displayedChildren}getLeafColumns(){let e=[];return this.addLeafColumns(e),e}getDisplayedLeafColumns(){let e=[];return this.addDisplayedLeafColumns(e),e}getDefinition(){return this.providedColumnGroup.getColGroupDef()}getColGroupDef(){return this.providedColumnGroup.getColGroupDef()}isPadding(){return this.providedColumnGroup.isPadding()}isExpandable(){return this.providedColumnGroup.isExpandable()}isExpanded(){return this.providedColumnGroup.isExpanded()}setExpanded(e){this.providedColumnGroup.setExpanded(e)}isAutoHeaderHeight(){return!!this.getColGroupDef()?.autoHeaderHeight}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){let t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}addDisplayedLeafColumns(e){this.displayedChildren.forEach(t=>{or(t)?e.push(t):wt(t)&&t.addDisplayedLeafColumns(e)})}addLeafColumns(e){this.children.forEach(t=>{or(t)?e.push(t):wt(t)&&t.addLeafColumns(e)})}getChildren(){return this.children}getColumnGroupShow(){return this.providedColumnGroup.getColumnGroupShow()}getProvidedColumnGroup(){return this.providedColumnGroup}getPaddingLevel(){let e=this.getParent();return!this.isPadding()||!e||!e.isPadding()?0:1+e.getPaddingLevel()}calculateDisplayedColumns(){this.displayedChildren=[];let e=this;for(;e!=null&&e.isPadding();)e=e.getParent();if(!(e?e.getProvidedColumnGroup().isExpandable():!1)){this.displayedChildren=this.children,this.dispatchLocalEvent({type:"displayedChildrenChanged"});return}this.children.forEach(i=>{if(wt(i)&&(!i.displayedChildren||!i.displayedChildren.length))return;switch(i.getColumnGroupShow()){case"open":e.getProvidedColumnGroup().isExpanded()&&this.displayedChildren.push(i);break;case"closed":e.getProvidedColumnGroup().isExpanded()||this.displayedChildren.push(i);break;default:this.displayedChildren.push(i);break}}),this.dispatchLocalEvent({type:"displayedChildrenChanged"})}},A_=class{constructor(){this.existingIds={}}getInstanceIdForKey(e){let t=this.existingIds[e],i;return typeof t!="number"?i=0:i=t+1,this.existingIds[e]=i,i}},IR=class extends H{constructor(){super(...arguments),this.beanName="visibleColsService",this.colsAndGroupsMap={},this.columnsLeft=[],this.columnsRight=[],this.columnsCenter=[],this.columns=[],this.bodyWidth=0,this.leftWidth=0,this.rightWidth=0,this.bodyWidthDirty=!0}wireBeans(e){this.columnModel=e.columnModel,this.columnSizeService=e.columnSizeService,this.columnViewportService=e.columnViewportService,this.eventDispatcher=e.columnEventDispatcher}refresh(e,t=!1){t||this.buildTrees(),this.updateOpenClosedVisibilityInColumnGroups(),this.columnsLeft=Ig(this.treeLeft),this.columnsCenter=Ig(this.treeCenter),this.columnsRight=Ig(this.treeRight),this.joinColsAriaOrder(),this.joinCols(),this.setLeftValues(e),this.autoHeightCols=this.columns.filter(i=>i.isAutoHeight()),this.columnSizeService.refreshFlexedColumns(),this.updateBodyWidths(),this.columnViewportService.checkViewportColumns(!1),this.setFirstRightAndLastLeftPinned(e),this.eventDispatcher.visibleCols(e)}updateBodyWidths(){let e=Co(this.columnsCenter),t=Co(this.columnsLeft),i=Co(this.columnsRight);this.bodyWidthDirty=this.bodyWidth!==e,(this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==i)&&(this.bodyWidth=e,this.leftWidth=t,this.rightWidth=i,this.eventService.dispatchEvent({type:"columnContainerWidthChanged"}),this.eventService.dispatchEvent({type:"displayedColumnsWidthChanged"}))}setLeftValues(e){this.setLeftValuesOfCols(e),this.setLeftValuesOfGroups()}setFirstRightAndLastLeftPinned(e){let t,i;this.gos.get("enableRtl")?(t=this.columnsLeft?this.columnsLeft[0]:null,i=this.columnsRight?Ae(this.columnsRight):null):(t=this.columnsLeft?Ae(this.columnsLeft):null,i=this.columnsRight?this.columnsRight[0]:null),this.columnModel.getCols().forEac
492h(n=>{n.setLastLeftPinned(n===t,e),n.setFirstRightPinned(n===i,e)})}buildTrees(){let e=this.columnModel.getColsToShow(),t=e.filter(r=>r.getPinned()=="left"),i=e.filter(r=>r.getPinned()=="right"),n=e.filter(r=>r.getPinned()!="left"&&r.getPinned()!="right"),o=new A_;this.treeLeft=this.createGroups({columns:t,idCreator:o,pinned:"left",oldDisplayedGroups:this.treeLeft}),this.treeRight=this.createGroups({columns:i,idCreator:o,pinned:"right",oldDisplayedGroups:this.treeRight}),this.treeCenter=this.createGroups({columns:n,idCreator:o,pinned:null,oldDisplayedGroups:this.treeCenter}),this.updateColsAndGroupsMap()}clear(){this.columnsLeft=[],this.columnsRight=[],this.columnsCenter=[],this.columns=[],this.ariaOrderColumns=[]}joinColsAriaOrder(){let e=this.columnModel.getCols(),t=[],i=[],n=[];for(let o of e){let r=o.getPinned();r?r===!0||r==="left"?t.push(o):n.push(o):i.push(o)}this.ariaOrderColumns=t.concat(i).concat(n)}getAriaColIndex(e){let t;return wt(e)?t=e.getLeafColumns()[0]:t=e,this.ariaOrderColumns.indexOf(t)+1}getAllAutoHeightCols(){return this.autoHeightCols}setLeftValuesOfGroups(){[this.treeLeft,this.treeRight,this.treeCenter].forEach(e=>{e.forEach(t=>{wt(t)&&t.checkLeft()})})}setLeftValuesOfCols(e){if(!this.columnModel.getColDefCols())return;let i=this.columnModel.getCols().slice(0),n=this.gos.get("enableRtl");[this.columnsLeft,this.columnsRight,this.columnsCenter].forEach(o=>{if(n){let r=Co(o);o.forEach(a=>{r-=a.getActualWidth(),a.setLeft(r,e)})}else{let r=0;o.forEach(a=>{a.setLeft(r,e),r+=a.getActualWidth()})}nR(i,o)}
492),i.forEach(o=>{o.setLeft(null,e)})}joinCols(){this.gos.get("enableRtl")?this.columns=this.columnsRight.concat(this.columnsCenter).concat(this.columnsLeft):this.columns=this.columnsLeft.concat(this.columnsCenter).concat(this.columnsRight)}getColsCenter(){return this.columnsCenter}getAllTrees(){return this.treeLeft&&this.treeRight&&this.treeCenter?this.treeLeft.concat(this.treeCenter).concat(this.treeRight):null}getTreeLeft(){return this.treeLeft}getTreeRight(){return this.treeRight}getTreeCenter(){return this.treeCenter}getAllCols(){return this.columns}isColDisplayed(e){return this.getAllCols().indexOf(e)>=0}getLeftColsForRow(e){return this.columnModel.isColSpanActive()?this.getColsForRow(e,this.columnsLeft):this.columnsLeft}getRightColsForRow(e){return this.columnModel.isColSpanActive()?this.getColsForRow(e,this.columnsRight):this.columnsRight}getColsForRow(e,t,i,n){let o=[],r=null;for(let a=0;a<t.length;a++){let s=t[a],l=t.length-a,c=Math.min(s.getColSpan(e),l),h=[s];if(c>1){let f=c-1;for(let b=1;b<=f;b++)h.push(t[a+b]);a+=f}let m;i?(m=!1,h.forEach(f=>{i(f)&&(m=!0)})):m=!0,m&&(o.length===0&&r&&(n&&n(s))&&o.push(r),o.push(s)),r=s}return o}getBodyContainerWidth(){return this.bodyWidth}getContainerWidth(e){switch(e){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}}getCenterCols(){return this.columnsCenter}getLeftCols(){return this.columnsLeft}getRightCols(){return this.columnsRight}getColBefore(e){let t=this.getAllCols(),i=t.indexOf(e);return i>0?t[i-1]:null}getGroupAtDirection(e,t){let i=e.getProvidedColumnGroup().getLevel()+e.getPaddingLevel(),n=e.getDisplayedLeafColumns(),o=t==="After"?Ae(n):n[0],r=`getCol${t}`;for(;;){let a=this[r](o);if(!a)return null;let s=this.getColGroupAtLevel(a,i);if(s!==e)return s}}getColGroupAtLevel(e,t){let i=e.getParent(),n,o;for(;n=i.getProvidedColumnGroup().getLevel(),o=i.getPaddingLevel(),!(n+o<=t);)i=i.getParent();return i}isPinningLeft(){return this.columnsLeft.length>0}isPinningRight(){return this.columnsRight.length>0}updateColsAndGroupsMap(){this.colsAndGroupsMap={};let e=t=>{this.colsAndGroupsMap[t.getUniqueId()]=t};zr(this.treeCenter,!1,e),zr(this.treeLeft,!1,e),zr(this.treeRight,!1,e)}isVisible(e){return this.colsAndGroupsMap[e.getUniqueId()]===e}updateOpenClosedVisibilityInColumnGroups(){let e=this.getAllTrees();zr(e,!1,t=>{wt(t)&&t.calculateDisplayedColumns()})}getFirstColumn(){let e=this.gos.get("enableRtl"),t=["getLeftCols","getCenterCols","getRightCols"];e&&t.reverse();for(let i=0;i<t.length;i++){let n=this[t[i]]();if(n.length)return e?Ae(n):n[0]}return null}getColumnGroup(e,t){if(!e)return null;if(wt(e))return e;let i=this.getAllTrees(),n=typeof t=="number",o=null;return zr(i,!1,r=>{if(wt(r)){let a=r,s;n?s=e===a.getGroupId()&&t===a.getPartId():s=e===a.getGroupId(),s&&(o=a)}}),o}getColAfter(e){let t=this.getAllCols(),i=t.indexOf(e);return i<t.length-1?t[i+1]:null}isBodyWidthDirty(){return this.bodyWidthDirty}setBodyWidthDirty(){this.bodyWidthDirty=!0}getColsLeftWidth(){return Co(this.columnsLeft)}getDisplayedColumnsRightWidth(){return Co(this.columnsRight)}isColAtEdge(e,t){let i=this.getAllCols();if(!i.length)return!1;let n=t==="first",o;if(wt(e)){let r=e.getDisplayedLeafColumns();if(!r.length)return!1;o=n?r[0]:Ae(r)}else o=e;return(n?i[0]:Ae(i))===o}createGroups(e){let{columns:t,idCreator:i,pinned:n,oldDisplayedGroups:o,isStandaloneStructure:r}=e,a=this.mapOldGroupsById(o),s=[],l=t;for(;l.length;){let c=l;l=[];let h=0,m=f=>{let b=h;h=f;let _=c[b],M=(wt(_)?_.getProvidedColumnGroup():_).getOriginalParent();if(M==null){for(let I=b;I<f;I++)s.push(c[I]);return}let D=this.createColGroup(M,i,a,n,r);for(let I=b;I<f;I++)D.addChild(c[I]);l.push(D)};for(let f=1;f<c.length;f++){let b=c[f],S=(wt(b)?b.getProvidedColumnGroup():b).getOriginalParent(),M=c[h],I=(wt(M)?M.getProvidedColumnGroup():M).getOriginalParent();S!==I&&m(f)}h<c.length&&m(c.length)}return r||this.setupParentsIntoCols(s,null),s}createColGroup(e,t,i,n,o){let r=e.getGroupId(),a=t.getInstanceIdForKey(r),s=F_(r,a),l=i[s];return l&&l.getProvidedColumnGroup()!==e&&(l=null),K(l)?l.reset():(l=new O_(e,r,a,n),o||this.createBean(l)),l}mapOldGroupsById(e){let t={},i=n=>
492{n.forEach(o=>{if(wt(o)){let r=o;t[o.getUniqueId()]=r,i(r.getChildren())}})};return e&&i(e),t}setupParentsIntoCols(e,t){e.forEach(i=>{if(i.setParent(t),wt(i)){let n=i;this.setupParentsIntoCols(n.getChildren(),n)}})}};function zr(e,t,i){if(e)for(let n=0;n<e.length;n++){let o=e[n];if(wt(o)){let r=t?o.getDisplayedChildren():o.getChildren();zr(r,t,i)}i(o)}}function Ig(e){let t=[];return zr(e,!0,i=>{or(i)&&t.push(i)}),t}var L_=["columnEverythingChanged","newColumnsLoaded","columnPivotModeChanged","pivotMaxColumnsExceeded","columnRowGroupChanged","expandOrCollapseAll","columnPivotChanged","gridColumnsChanged","columnValueChanged","columnMoved","columnVisible","columnPinned","columnGroupOpened","columnResized","displayedColumnsChanged","virtualColumnsChanged","columnHeaderMouseOver","columnHeaderMouseLeave","columnHeaderClicked","columnHeaderContextMenu","asyncTransactionsFlushed","rowGroupOpened","rowDataUpdated","pinnedRowDataChanged","rangeSelectionChanged","cellSelectionChanged","chartCreated","chartRangeSelectionChanged","chartOptionsChanged","chartDestroyed","toolPanelVisibleChanged","toolPanelSizeChanged","modelUpdated","cutStart","cutEnd","pasteStart","pasteEnd","fillStart","fillEnd","cellSelectionDeleteStart","cellSelectionDeleteEnd","rangeDeleteStart","rangeDeleteEnd","undoStarted","undoEnded","redoStarted","redoEnded","cellClicked","cellDoubleClicked","cellMouseDown","cellContextMenu","cellValueChanged","cellEditRequest","rowValueChanged","headerFocused","cellFocused","rowSelected","selectionChanged","tooltipShow","tooltipHide","cellKeyDown","cellMouseOver","cellMouseOut","filterChanged","filterModified","filterOpened","advancedFilterBuilderVisibleChanged","sortChanged","virtualRowRemoved","rowClicked","rowDoubleClicked","gridReady","gridPreDestroyed","gridSizeChanged","viewportChanged","firstDataRendered","dragStarted","dragStopped","dragCancelled","rowEditingStarted","rowEditingStopped","cellEditingStarted","cellEditingStopped","bodyScroll","bodyScrollEnd","paginationChanged","componentStateChanged","storeRefreshed","stateUpdated","columnMenuVisibleChanged","contextMenuVisibleChanged","rowDragEnter","rowDragMove","rowDragLeave","rowDragEnd","rowDragCancel"],DR=["scrollbarWidthChanged","keyShortcutChangedCellStart","keyShortcutChangedCellEnd","pinnedHeightChanged","cellFocusCleared","fullWidthRowFocused","checkboxChanged","heightScaleChanged","suppressMovableColumns","suppressMenuHide","suppressFieldDotNotation","columnPanelItemDragStart","columnPanelItemDragEnd","bodyHeightChanged","columnContainerWidthChanged","displayedColumnsWidthChanged","scrollVisibilityChanged","scrollGapChanged","columnHoverChanged","flashCells","paginationPixelOffsetChanged","displayedRowsChanged","leftPinnedWidthChanged","rightPinnedWidthChanged","rowContainerHeightChanged","headerHeightChanged","columnGroupHeaderHeightChanged","columnHeaderHeightChanged","gridStylesChanged","storeUpdated","filterDestroyed","rowDataUpdateStarted","rowCountReady","advancedFilterEnabledChanged","dataTypesInferred","fieldValueChanged","fieldPickerValueSelected","richSelectListRowSelected","sideBarUpdated","alignedGridScroll","alignedGridColumn","gridOptionsChanged","chartTitleEdit","recalculateRowBounds","stickyTopOffsetChanged","overlayExclusiveChanged"],PR=[...L_,...DR],RR={enableBrowserTooltips:!0,tooltipTrigger:!0,tooltipMouseTrack:!0,tooltipShowMode:!0,tooltipInteraction:!0,defaultColGroupDef:!0,suppressAutoSize:!0,skipHeaderOnAutoSize:!0,autoSizeStrategy:!0,components:!0,stopEditingWhenCellsLoseFocus:!0,undoRedoCellEditing:!0,undoRedoCellEditingLimit:!0,excelStyles:!0,cacheQuickFilter:!0,advancedFilterModel:!0,customChartThemes:!0,chartThemeOverrides:!0,chartToolPanelsDef:!0,loadingCellRendererSelector:!0,localeText:!0,keepDetailRows:!0,keepDetailRowsCount:!0,detailRowHeight:!0,detailRowAutoHeight:!0,tabIndex:!0,valueCache:!0,valueCacheNeverExpires:!0,enableCellExpressions:!0,suppressTouch:!0,suppressAsyncEvents:!0,suppressBrowserResizeObserver:!0,suppressPropertyNamesCheck:!0,debug:!0,dragAndDropImageComponent:!0,loadingOverlayComponent:!0,suppressLoadingOverlay:!0,noRowsOverlayComponent:!0,paginationPageSizeSelector:!0,paginateChildRows:!0,pivotPanelShow:!0,pivotSuppressAutoColumn:!0,suppressExpandablePivotGroups:!0,aggFuncs:!0,suppressAggFuncInHeader:!0,allowShowChangeAfterFilter:!0,ensureDomOrder:!0,enableRtl:!0,suppressColumnVirtualisation:!0,suppressMaxRenderedRowRestriction:!0,suppressRowVirtualisation:!0,rowDragText:!0,suppressGroupMaintainValueType:!0,groupLockGroupColumns:!0,rowGroupPanelSuppressSort:!0,suppressGroupRowsSticky:!0,rowModelType:!0,cacheOverflowSize:!0,infiniteInitialRowCount:!0,serverSideInitialRowCount:!0,suppressServerSideInfiniteScroll:!0,maxBlocksInCache:!0,maxConcurrentDatasourceRequests:!0,blockLoadDebounceMillis:!0,serverSideOnlyRefreshFilteredGroups:!0,serverSidePivotResultFieldSeparator:!0,viewportRowModelPageSize:!0,viewportRowModelBufferSize:!0,debounceVerticalScrollbar:!0,suppressAnimationFrame:!0,suppressPreventDefaultOnMouseWheel:!0,scrollbarWidth:!0,icons:!0,suppressRowTransform:!0,gridId:!0,enableGroupEdit:!0,initialState:!0,processUnpinnedColumns:!0,createChartContainer:!0,getLocaleText:!0,getRowId:!0,reactiveCustomComponents:!0,columnMenu:!0,suppressSetFilterByDefault:!0},ii=class{};ii.STRING_PROPERTIES=["overlayLoadingTemplate","overlayNoRowsTemplate","gridId","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","groupDisplayType","treeDataDisplayType","colResizeDefault","tooltipTrigger","serverSidePivotResultFieldSeparator","columnMenu","tooltipShowMode","grandTotalRow"];ii.OBJECT_PROPERTIES=["components","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","dragAndDropImageComponentParams","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","statusBar","sideBar","theme","chartThemeOverrides","customChartThemes","chartToolPanelsDef","dataTypeDefinitions","advancedFilterModel","advancedFilterParent","advancedFilterBuilderParams","initialState","autoSizeStrategy","cellSelection","selectionColumnDef"];ii.ARRAY_PROPERTIES=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass","paginationPageSizeSelector"];ii.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","headerHeight","groupHeaderHeight","groupLockGroupColumns","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","pivotDefaultExpanded","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","serverSideInitialRowCount","scrollbarWidth","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDelay","cellFadeDelay","cellFlashDuration","cellFadeDuration","tabIndex","pivotMaxGeneratedColumns"];ii.BOOLEAN_PROPERTIES=["suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellFocus","suppressHeaderFocus","suppressHorizontalScroll","groupSelectsChildren","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","groupIncludeTotalFooter","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","alwaysMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressColumnMoveAnimation","suppressMoveWhenColumnDragging","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","suppressAsyncEvents","allowContextMenuWithControlKey","suppressContextMenu","enableCellChangeFlash","suppressDragLeaveHidesColumns","suppressRowGroupHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","alwaysAggregateAtRootLevel","suppressFocusAfterRefresh","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragEntireRow","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupAllowUnbalanced","pagination","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","includeHiddenColumnsInQuickFilter","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","includeHiddenColumnsInAdvancedFilter","suppressMultiRangeSelection","enterNavigatesVerticallyAfterEdit","enterNavigatesVertically","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","enableCharts","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","tooltipInteraction","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","pivotSuppressAutoColumn","suppressExpandablePivotGroups","debounceVerticalScrollbar","detailRowAutoHeight","serverSideSortAllLevels","serverSideEnableClientSideSort","serverSideOnlyRefreshFilteredGroups","serverSideSortOnServer","serverSideFilterOnServer","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","groupMaintainOrder","columnHoverHighlight","readOnlyEdit","suppressRowVirtualisation","enableCellEditingOnBackspace","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges","suppressGroupRowsSticky","suppressCutToClipboard","suppressServerSideInfiniteScroll","rowGroupPanelSuppressSort","allowShowChangeAfterFilter","enableAdvancedFilter","masterDetail","treeData","suppressGroupMaintainValueType","reactiveCustomComponents","applyQuickFilterBeforePivotOrAgg","suppressServerSideFullWidthLoadingRow","suppressAdvancedFilterEval","loading","maintainColumnOrder","enableStrictPivotColumnOrder","suppressSetFilterByDefault"];ii.OTHER_PROPERTIES=["suppressStickyTotalRow","loadThemeGoogleFonts","rowSelection"];ii.FUNCTION_PROPERTIES=["doesExternalFilterPass","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","isRowSelectable","rowDragText","groupRowRenderer","dragAndDropImageComponent","fullWidthCellRenderer","loadingCellRenderer","loadingOverlayComponent","noRowsOverlayComponent","detailCellRenderer","quickFilterParser","quickFilterMatcher","getLocaleText","isExternalFilterPresent","getRowHeight","getRowClass","getRowStyle","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getGroupRowAgg","isFullWidthRow","
492sendToClipboard","focusGridInnerElement","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","isRowMaster","postSortRows","processHeaderForClipboard","processUnpinnedColumns","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideGroupLevelParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","initialGroupOrderComparator","groupIncludeFooter","loadingCellRendererSelector","getRowId","groupAggFiltering","chartMenuItems","groupTotalRow"];ii.ALL_PROPERTIES=[...ii.ARRAY_PROPERTIES,...ii.OBJECT_PROPERTIES,...ii.STRING_PROPERTIES,...ii.NUMBER_PROPERTIES,...ii.FUNCTION_PROPERTIES,...ii.BOOLEAN_PROPERTIES,...ii.OTHER_PROPERTIES];var Hl=ii,dn=class{static getCallbackForEvent(t){return!t||t.length<2?t:"on"+t[0].toUpperCase()+t.substring(1)}};dn.VUE_OMITTED_PROPERTY="AG-VUE-OMITTED-PROPERTY";dn.PUBLIC_EVENTS=L_;dn.EVENT_CALLBACKS=PR.map(e=>dn.getCallbackForEvent(e));dn.BOOLEAN_PROPERTIES=Hl.BOOLEAN_PROPERTIES;dn.ALL_PROPERTIES=Hl.ALL_PROPERTIES;dn.ALL_PROPERTIES_AND_CALLBACKS=[...dn.ALL_PROPERTIES,...dn.EVENT_CALLBACKS];dn.ALL_PROPERTIES_AND_CALLBACKS_SET=new Set(dn.ALL_PROPERTIES_AND_CALLBACKS);var Gl=dn;function N_(e,t){typeof e!="object"&&(e={});let i=B({},e);return Gl.ALL_PROPERTIES_AND_CALLBACKS.forEach(o=>{let r=t[o];typeof r<"u"&&r!==Gl.VUE_OMITTED_PROPERTY&&(i[o]=r)}),i}function z_(e,t){if(!e)return;let i={},n=!1;if(Object.keys(e).filter(a=>Gl.ALL_PROPERTIES_AND_CALLBACKS_SET.has(a)).forEach(a=>{i[a]=e[a],n=!0}),!n)return;let o={type:"gridOptionsChanged",options:i};t.dispatchEvent(o);let r={type:"componentStateChanged"};sn(i,(a,s)=>{r[a]=s}),t.dispatchEvent(r)}function $l(e,t,i){return i&&e.addDestroyFunc(()=>t.destroyBean(i)),i??e}var FR=class{constructor(e){this.cssClassStates={},this.getGui=e}addCssClass(e){let t=(e||"").split(" ");if(t.length>1){t.forEach(n=>this.addCssClass(n));return}if(this.cssClassStates[e]!==!0&&e.length){let n=this.getGui();n&&n.classList.add(e),this.cssClassStates[e]=!0}}removeCssClass(e){let t=(e||"").split(" ");if(t.length>1){t.forEach(n=>this.removeCssClass(n));return}if(this.cssClassStates[e]!==!1&&e.length){let n=this.getGui();n&&n.classList.remove(e),this.cssClassStates[e]=!1}}containsCssClass(e){let t=this.getGui();return t?t.classList.contains(e):!1}addOrRemoveCssClass(e,t){if(!e)return;if(e.indexOf(" ")>=0){let n=(e||"").split(" ");if(n.length>1){n.forEach(o=>this.addOrRemoveCssClass(o,t));return}}if(this.cssClassStates[e]!==t&&e.length){let n=this.getGui();n&&n.classList.toggle(e,t),this.cssClassStates[e]=t}}};function Eo(e,t,i){i==null||typeof i=="string"&&i==""?B_(e,t):Tn(e,t,i)}function Tn(e,t,i){e.setAttribute(V_(t),i.toString())}function B_(e,t){e.removeAttribute(V_(t))}function V_(e){return`aria-${e}`}function qi(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function OR(e){let t;return e==="asc"?t="ascending":e==="desc"?t="descending":e==="mixed"?t="other":t="none",t}function AR(e){return e.getAttribute("aria-label")}function ss(e,t){Eo(e,"label",t)}function Ul(e,t){Eo(e,"labelledby",t)}function H_(e,t){Eo(e,"live",t)}function LR(e,t){Eo(e,"atomic",t)}function NR(e,t){Eo(e,"relevant",t)}function zR(e,t){Eo(e,"disabled",t)}function G_(e,t){Eo(e,"hidden",t)}function bu(e,t){Tn(e,"expanded",t)}function BR(e,t){Tn(e,"setsize",t)}function VR(e,t){Tn(e,"posinset",t)}function HR(e,t){Tn(e,"multiselectable",t)}function GR(e,t){Tn(e,"rowcount",t)}function U_(e,t){Tn(e,"rowindex",t)}function UR(e,t){Tn(e,"colcount",t)}function j_(e,t){Tn(e,"colindex",t)}function jR(e,t){Tn(e,"colspan",t)}function WR(e,t){Tn(e,"sort",t)}function $R(e){B_(e,"sort")}function _u(e,t){Eo(e,"selected",t)}function qR(e,t){Eo(e,"controls",t.id),Ul(t,e.id)}function vm(e,t){return t===void 0?e("ariaIndeterminate","indeterminate"):t===!0?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}var YR="[tabindex], input, select, button, textarea, [href]",W_="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function Cm(e){let t=Element.prototype.matches||Element.prototype.msMatchesSelector,n=t.call(e,"input, select, button, textarea"),o=t.call(e,W_),r=Mn(e);return n&&!o&&r}function it(e,t,i={}){let{skipAriaHidden:n}=i;e.classList.toggle("ag-hidden",!t),n||G_(e,!t)}function KR(e,t,i={}){let{skipAriaHidden:n}=i;e.classList.toggle("ag-invisible",!t),n||G_(e,!t)}function jl(e,t){let i="disabled",n=t?o=>o.setAttribute(i,""):o=>o.removeAttribute(i);n(e),Z_(e.querySelectorAll("input"),o=>n(o))}function ts(e,t,i){let n=0;for(;e;){if(e.classList.contains(t))return!0;
492if(e=e.parentElement,typeof i=="number"){if(++n>i)break}else if(e===i)break}return!1}function Yr(e){let{height:t,width:i,borderTopWidth:n,borderRightWidth:o,borderBottomWidth:r,borderLeftWidth:a,paddingTop:s,paddingRight:l,paddingBottom:c,paddingLeft:h,marginTop:m,marginRight:f,marginBottom:b,marginLeft:_,boxSizing:S}=window.getComputedStyle(e);return{height:parseFloat(t||"0"),width:parseFloat(i||"0"),borderTopWidth:parseFloat(n||"0"),borderRightWidth:parseFloat(o||"0"),borderBottomWidth:parseFloat(r||"0"),borderLeftWidth:parseFloat(a||"0"),paddingTop:parseFloat(s||"0"),paddingRight:parseFloat(l||"0"),paddingBottom:parseFloat(c||"0"),paddingLeft:parseFloat(h||"0"),marginTop:parseFloat(m||"0"),marginRight:parseFloat(f||"0"),marginBottom:parseFloat(b||"0"),marginLeft:parseFloat(_||"0"),boxSizing:S}}function bm(e){let t=Yr(e);return t.boxSizing==="border-box"?t.height-t.paddingTop-t.paddingBottom:t.height}function ql(e){let t=Yr(e);return t.boxSizing==="border-box"?t.width-t.paddingLeft-t.paddingRight:t.width}function $_(e){let{height:t,marginBottom:i,marginTop:n}=Yr(e);return Math.floor(t+i+n)}function yu(e){let{width:t,marginLeft:i,marginRight:n}=Yr(e);return Math.floor(t+i+n)}function q_(e){let t=e.getBoundingClientRect(),{borderTopWidth:i,borderLeftWidth:n,borderRightWidth:o,borderBottomWidth:r}=Yr(e);return{top:t.top+(i||0),left:t.left+(n||0),right:t.right+(o||0),bottom:t.bottom+(r||0)}}function wu(e,t){let i=e.scrollLeft;return t&&(i=Math.abs(i)),i}function xu(e,t,i){i&&(t*=-1),e.scrollLeft=t}function ni(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function cn(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Y_(e){return!!e.offsetParent}function Mn(e){let t=e;return t.checkVisibility?t.checkVisibility({checkVisibilityCSS:!0}):!(!Y_(e)||window.getComputedStyle(e).visibility!=="visible")}function Wl(e){let t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function K_(e,t,i){i&&i.nextSibling===t||(e.firstChild?i?i.nextSibling?e.insertBefore(t,i.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t):e.appendChild(t))}function Q_(e,t){for(let i=0;i<t.length;i++){let n=t[i],o=e.children[i];o!==n&&e.insertBefore(n,o)}}function J_(e,t){if(t)for(let[i,n]of Object.entries(t)){if(!i||!i.length||n==null)continue;let o=kR(i),r=n.toString(),a=r.replace(/\s*!important/g,""),s=a.length!=r.length?"important":void 0;e.style.setProperty(o,a,s)}}function QR(e){return e.clientWidth<e.scrollWidth}function JR(e){return e.clientHeight<e.scrollHeight}function Su(e,t){t==="flex"?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):En(e,t)}function En(e,t){t=_m(t),e.style.width=t.toString(),e.style.maxWidth=t.toString(),e.style.minWidth=t.toString()}function Ol(e,t){t=_m(t),e.style.height=t.toString(),e.style.maxHeight=t.toString(),e.style.minHeight=t.toString()}function _m(e){return typeof e=="number"?`${e}px`:e}function ym(e){return e instanceof Node||e instanceof HTMLElement}function ZR(e){if(e==null)return[];let t=[];return Z_(e,i=>t.push(i)),t}function XR(e,t){if(e)for(let i=0;i<e.length;i++){let n=e[i];t(n.name,n.value)}}function un(e,t,i){i==null||i===""?e.removeAttribute(t):e.setAttribute(t,i.toString())}function Z_(e,t){if(e!=null)for(let i=0;i<e.length;i++)t(e[i])}var ls=class{constructor(e=0,t=1){this.nextValue=e,this.step=t}next(){let e=this.nextValue;return this.nextValue+=this.step,e}peek(){return this.nextValue}skip(e){this.nextValue+=e}},Dg,nu,Pg,Rg,Fg,Og,Jg,Zg,Ag;function So(){return Dg===void 0&&(Dg=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),Dg}function X_(){if(nu===void 0)if(So()){let e=navigator.userAgent.match(/version\/(\d+)/i);e&&(nu=e[1]!=null?parseFloat(e[1]):0)}else nu=0;return nu}function e5(){if(Pg===void 0){let e=window;Pg=!!e.chrome&&(!!e.chrome.webstore||!!e.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return Pg}function wm(){return Rg===void 0&&(Rg=/(firefox)/i.test(navigator.userAgent)),Rg}function ey(){return Fg===void 0&&(Fg=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),Fg}function ar(){return Og===void 0&&(Og=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),Og}function Xg(){return!So()||X_()>=15}function em(e){if(!e)return null;let t=e.tabIndex,i=e.getAttribute("tabIndex");return t===-1&&(i===null||i===""&&!wm())?null:t.toString()}function t5(){if(Ag!==void 0)return Ag;if(!document.body)return-1;let e=1e6,t=wm()?6e6:1e9,i=document.createElement("div");for(document.body.appendChild(i);;){let n=e*2;if(i.style.height=n+"px",n>t||i.clientHeight!==n)break;e=n}return document.body.removeChild(i),Ag=e,e}function i5(){return document.body?.clientWidth??(window.innerHeight||document.documentElement?.clientWidth||-1)}function n5(){return document.body?.clientHeight??(window.innerHeight||document.documentElement?.clientHeight||-1)}function o5(){return Zg==null&&ty(),Zg}function ty(){let e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);let i=t.offsetWidth-t.clientWidth;i===0&&t.clientWidth===0&&(i=null),t.parentNode&&t.parentNode.removeChild(t),i!=null&&(Zg=i,Jg=i===0)}function iy(){return Jg==null&&ty(),Jg}var r5=1e3,a5=1e3,Zb=100,s5=(()=>{let e=class Ar extends H{constructor(i,n,o,r){super(),this.parentComp=i,this.tooltipShowDelayOverride=n,this.tooltipHideDelayOverride=o,this.shouldDisplayTooltip=r,this.interactionEnabled=!1,this.isInteractingWithTooltip=!1,this.state=0,this.tooltipInstanceCount=0,this.tooltipMouseTrack=!1}wireBeans(i){this.popupService=i.popupService,this.userComponentFactory=i.userComponentFactory}postConstruct(){this.gos.get("tooltipInteraction")&&(this.interactionEnabled=!0),this.tooltipTrigger=this.getTooltipTrigger(),this.tooltipMouseTrack=this.gos.get("tooltipMouseTrack");let i=this.parentComp.getGui();this.tooltipTrigger===0&&this.addManagedListeners(i,{mouseenter:this.onMouseEnter.bind(this),mouseleave:this.onMouseLeave.bind(this)}),this.tooltipTrigger===1&&this.addManagedListeners(i,{focusin:this.onFocusIn.bind(this),focusout:this.onFocusOut.bind(this)}),this.addManagedListeners(i,{mousemove:this.onMouseMove.bind(this)}),this.interactionEnabled||this.addManagedListeners(i,{mousedown:this.onMouseDown.bind(this),keydown:this.onKeyDown.bind(this)})}getGridOptionsTooltipDelay(i){let n=this.gos.get(i);return n<0&&$(`${i} should not be lower than 0`),Math.max(200,n)}getTooltipDelay(i){return i==="show"?this.tooltipShowDelayOverride??this.getGridOptionsTooltipDelay("tooltipShowDelay"):this.tooltipHideDelayOverride??this.getGridOptionsTooltipDelay("tooltipHideDelay")}destroy(){this.setToDoNothing(),super.destroy()}getTooltipTrigger(){let i=this.gos.get("tooltipTrigger");return!i||i==="hover"?0:1}onMouseEnter(i){this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout()),!ar(
492)&&(Ar.isLocked?this.showTooltipTimeoutId=window.setTimeout(()=>{this.prepareToShowTooltip(i)},Zb):this.prepareToShowTooltip(i))}onMouseMove(i){this.lastMouseEvent&&(this.lastMouseEvent=i),this.tooltipMouseTrack&&this.state===2&&this.tooltipComp&&this.positionTooltip()}onMouseDown(){this.setToDoNothing()}onMouseLeave(){this.interactionEnabled?this.lockService():this.setToDoNothing()}onFocusIn(){this.prepareToShowTooltip()}onFocusOut(i){let n=i.relatedTarget,o=this.parentComp.getGui(),r=this.tooltipComp?.getGui();this.isInteractingWithTooltip||o.contains(n)||this.interactionEnabled&&r?.contains(n)||this.setToDoNothing()}onKeyDown(){this.isInteractingWithTooltip&&(this.isInteractingWithTooltip=!1),this.setToDoNothing()}prepareToShowTooltip(i){if(this.state!=0||Ar.isLocked)return;let n=0;i&&(n=this.isLastTooltipHiddenRecently()?200:this.getTooltipDelay("show")),this.lastMouseEvent=i||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),n),this.state=1}isLastTooltipHiddenRecently(){let i=new Date().getTime(),n=Ar.lastTooltipHideTime;return i-n<r5}setToDoNothing(i){!i&&this.state===2&&this.hideTooltip(),this.onBodyScrollEventCallback&&(this.onBodyScrollEventCallback(),this.onBodyScrollEventCallback=void 0),this.onColumnMovedEventCallback&&(this.onColumnMovedEventCallback(),this.onColumnMovedEventCallback=void 0),this.onDocumentKeyDownCallback&&(this.onDocumentKeyDownCallback(),this.onDocumentKeyDownCallback=void 0),this.clearTimeouts(),this.state=0,this.lastMouseEvent=null}showTooltip(){let i=B({},this.parentComp.getTooltipParams());if(!K(i.value)||this.shouldDisplayTooltip&&!this.shouldDisplayTooltip()){this.setToDoNothing();return}this.state=2,this.tooltipInstanceCount++;let n=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.userComponentFactory.getTooltipCompDetails(i).newAgStackInstance().then(n)}hideTooltip(i){!i&&this.isInteractingWithTooltip||(this.tooltipComp&&(this.destroyTooltipComp(),Ar.lastTooltipHideTime=new Date().getTime()),this.eventService.dispatchEvent({type:"tooltipHide",parentGui:this.parentComp.getGui()}),i&&(this.isInteractingWithTooltip=!1),this.setToDoNothing(!0))}newTooltipComponentCallback(i,n){if(this.state!==2||this.tooltipInstanceCount!==i){this.destroyBean(n);return}let r=n.getGui();this.tooltipComp=n,r.classList.contains("ag-tooltip")||r.classList.add("ag-tooltip-custom"),this.tooltipTrigger===0&&r.classList.add("ag-tooltip-animate"),this.interactionEnabled&&r.classList.add("ag-tooltip-interactive");let a=this.localeService.getLocaleTextFunc(),s=this.popupService.addPopup({eChild:r,ariaLabel:a("ariaLabelTooltip","Tooltip")});if(s&&(this.tooltipPopupDestroyFunc=s.hideFunc),this.positionTooltip(),this.tooltipTrigger===1){let l=()=>this.setToDoNothing();[this.onBodyScrollEventCallback,this.onColumnMovedEventCallback]=this.addManagedEventListeners({bodyScroll:l,columnMoved:l})}this.interactionEnabled&&([this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener]=this.addManagedElementListeners(r,{mouseenter:this.onTooltipMouseEnter.bind(this),mouseleave:this.onTooltipMouseLeave.bind(this)}),[this.onDocumentKeyDownCallback]=this.addManagedElementListeners(dt(this.gos),{keydown:l=>{r.contains(l?.target)||this.onKeyDown()}}),this.tooltipTrigger===1&&([this.tooltipFocusInListener,this.tooltipFocusOutListener]=this.addManagedElementListeners(r,{focusin:this.onTooltipFocusIn.bind(this),focusout:this.onTooltipFocusOut.bind(this)}))),this.eventService.dispatchEvent({type:"tooltipShow",tooltipGui:r,parentGui:this.parentComp.getGui()}),this.startHideTimeout()}onTooltipMouseEnter(){this.isInteractingWithTooltip=!0,this.unlockService()}onTooltipMouseLeave(){this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,this.lockService())}onTooltipFocusIn(){this.isInteractingWithTooltip=!0}isTooltipFocused(){let i=this.tooltipComp?.getGui(),n=nt(this.gos);return!!i&&i.contains(n)}onTooltipFocusOut(i){let n=this.parentComp.getGui();this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,n.contains(i.relatedTarget)?this.startHideTimeout():this.hideTooltip())}positionTooltip(){let i={type:"tooltip",ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack};this.lastMouseEvent?this.popupService.positionPopupUnderMouseEvent(ye(B({},i),{mouseEvent:this.lastMouseEvent})):this.popupService.positionPopupByComponent(ye(B({},i),{eventSource:this.parentComp.getGui(),position:"under",keepWithinBounds:!0,nudgeY:5}))}destroyTooltipComp(){this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");let i=this.tooltipPopupDestroyFunc,n=this.tooltipComp,o=this.tooltipTrigger===0?a5:0;window.setTimeout(()=>{i(),this.destroyBean(n)},o),this.clearTooltipListeners(),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0}clearTooltipListeners(){[this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener,this.tooltipFocusInListener,this.tooltipFocusOutListener].forEach(i=>
492{i&&i()}),this.tooltipMouseEnterListener=this.tooltipMouseLeaveListener=this.tooltipFocusInListener=this.tooltipFocusOutListener=null}lockService(){Ar.isLocked=!0,this.interactiveTooltipTimeoutId=window.setTimeout(()=>{this.unlockService(),this.setToDoNothing()},Zb)}unlockService(){Ar.isLocked=!1,this.clearInteractiveTimeout()}startHideTimeout(){this.clearHideTimeout(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.getTooltipDelay("hide"))}clearShowTimeout(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0)}clearHideTimeout(){this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)}clearInteractiveTimeout(){this.interactiveTooltipTimeoutId&&(window.clearTimeout(this.interactiveTooltipTimeoutId),this.interactiveTooltipTimeoutId=void 0)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout(),this.clearInteractiveTimeout()}};return e.isLocked=!1,e})(),l5=s5,us=class extends H{constructor(e,t){super(),this.ctrl=e,t&&(this.beans=t)}wireBeans(e){this.beans=e}postConstruct(){this.refreshToolTip()}setBrowserTooltip(e){let t="title",i=this.ctrl.getGui();i&&(e!=null&&e!=""?i.setAttribute(t,e):i.removeAttribute(t))}updateTooltipText(){this.tooltip=this.ctrl.getTooltipValue()}createTooltipFeatureIfNeeded(){if(this.tooltipManager!=null)return;let e={getTooltipParams:()=>this.getTooltipParams(),getGui:()=>this.ctrl.getGui()};this.tooltipManager=this.createBean(new l5(e,this.ctrl.getTooltipShowDelayOverride?.(),this.ctrl.getTooltipHideDelayOverride?.(),this.ctrl.shouldDisplayTooltip),this.beans.context)}refreshToolTip(){this.browserTooltips=this.beans.gos.get("enableBrowserTooltips"),this.updateTooltipText(),this.browserTooltips?(this.setBrowserTooltip(this.tooltip),this.tooltipManager&&(this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context))):(this.setBrowserTooltip(null),this.createTooltipFeatureIfNeeded())}getTooltipParams(){let e=this.ctrl,t=e.getColumn?.(),i=e.getColDef?.(),n=e.getRowNode?.();return{location:e.getLocation(),colDef:i,column:t,rowIndex:e.getRowIndex?.(),node:n,data:n?.data,value:this.getTooltipText(),valueFormatted:e.getValueFormatted?.(),hideTooltipCallback:()=>this.tooltipManager?.hideTooltip(!0)}}getTooltipText(){return this.tooltip}destroy(){this.tooltipManager&&(this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context)),super.destroy()}},c5=new ls,le=null,Le=class ny extends H{constructor(t,i){super(),this.suppressDataRefValidation=!1,this.displayed=!0,this.visible=!0,this.compId=c5.next(),this.cssClassManager=new FR(()=>this.eGui),this.componentSelectors=new Map((i??[]).map(n=>[n.selector,n])),t&&this.setTemplate(t)}preWireBeans(t){super.preWireBeans(t)}preConstruct(){this.usingBrowserTooltips=this.gos.get("enableBrowserTooltips"),this.wireTemplate(this.getGui())}wireTemplate(t,i){t&&this.gos&&(this.applyElementsToComponent(t),this.createChildComponentsFromTags(t,i))}getCompId(){return this.compId}getTooltipParams(){return{value:this.tooltipText,location:"UNKNOWN"}}setTooltip(t){let{newTooltipText:i,showDelayOverride:n,hideDelayOverride:o,location:r,shouldDisplayTooltip:a}=t||{};this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),this.tooltipText!==i&&(this.tooltipText=i);let s=()=>this.tooltipText;i!=null&&(this.tooltipFeature=this.createBean(new us({getTooltipValue:s,getGui:()=>this.getGui(),getLocation:()=>r??"UNKNOWN",getColDef:t?.getColDef,getColumn:t?.getColumn,getTooltipShowDelayOverride:n!=null?()=>n:void 0,getTooltipHideDelayOverride:o!=null?()=>o:void 0,shouldDisplayTooltip:a})))}getDataRefAttribute(t){return t.getAttribute?t.getAttribute("data-ref"):null}applyElementsToComponent(t,i,n,o=null){if(i===void 0&&(i=this.getDataRefAttribute(t)),i){let r=this[i];if(r===le)this[i]=o??t;else{let a=n&&n[i];!this.suppressDataRefValidation&&!a&&$(`Issue with data-ref: ${i} on ${this.constructor.name} with ${r}`)}}}createChildComponentsFromTags(t,i){ZR(t.childNodes).forEach(o=>{if(!(o instanceof HTMLElement))return;let r=this.createComponentFromElement(o,a=>
492{a.getGui()&&this.copyAttributesFromNode(o,a.getGui())},i);if(r){if(r.addItems&&o.children.length){this.createChildComponentsFromTags(o,i);let a=Array.prototype.slice.call(o.children);r.addItems(a)}this.swapComponentForNode(r,t,o)}else o.childNodes&&this.createChildComponentsFromTags(o,i)})}createComponentFromElement(t,i,n){let o=t.nodeName,r=this.getDataRefAttribute(t),a=o.indexOf("AG-")===0,s=a?this.componentSelectors.get(o):null,l=null;if(s){ny.elementGettingCreated=t;let c=n&&r?n[r]:void 0;l=new s.component(c),l.setParentComponent(this),this.createBean(l,null,i)}else a&&$(`Missing selector: ${o}`);return this.applyElementsToComponent(t,r,n,l),l}copyAttributesFromNode(t,i){XR(t.attributes,(n,o)=>i.setAttribute(n,o))}swapComponentForNode(t,i,n){let o=t.getGui();i.replaceChild(o,n),i.insertBefore(document.createComment(n.nodeName),o),this.addDestroyFunc(this.destroyBean.bind(this,t))}activateTabIndex(t){let i=this.gos.get("tabIndex");t||(t=[]),t.length||t.push(this.getGui()),t.forEach(n=>n.setAttribute("tabindex",i.toString()))}setTemplate(t,i,n){let o=Wl(t);this.setTemplateFromElement(o,i,n)}setTemplateFromElement(t,i,n,o=!1){if(this.eGui=t,this.suppressDataRefValidation=o,i)for(let r=0;r<i.length;r++){let a=i[r];this.componentSelectors.set(a.selector,a)}this.wireTemplate(t,n)}getGui(){return this.eGui}getFocusableElement(){return this.eGui}getAriaElement(){return this.getFocusableElement()}setParentComponent(t){this.parentComponent=t}getParentComponent(){return this.parentComponent}setGui(t){this.eGui=t}queryForHtmlElement(t){return this.eGui.querySelector(t)}getContainerAndElement(t,i){let n=i;return t==null?null:(n||(n=this.eGui),ym(t)?{element:t,parent:n}:{element:t.getGui(),parent:n})}prependChild(t,i){let{element:n,parent:o}=this.getContainerAndElement(t,i)||{};!n||!o||o.insertAdjacentElement("afterbegin",n)}appendChild(t,i){let{element:n,parent:o}=this.getContainerAndElement(t,i)||{};!n||!o||o.appendChild(n)}isDisplayed(){return this.displayed}setVisible(t,i={}){if(t!==this.visible){this.visible=t;let{skipAriaHidden:n}=i;KR(this.eGui,t,{skipAriaHidden:n})}}setDisplayed(t,i={}){if(t!==this.displayed){this.displayed=t;let{skipAriaHidden:n}=i;it(this.eGui,t,{skipAriaHidden:n});let o={type:"displayChanged",visible:this.displayed};this.dispatchLocalEvent(o)}}destroy(){this.parentComponent&&(this.parentComponent=void 0),this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),super.destroy()}addGuiEventListener(t,i,n){this.eGui.addEventListener(t,i,n),this.addDestroyFunc(()=>this.eGui.removeEventListener(t,i))}addCssClass(t){this.cssClassManager.addCssClass(t)}removeCssClass(t){this.cssClassManager.removeCssClass(t)}containsCssClass(t){return this.cssClassManager.containsCssClass(t)}addOrRemoveCssClass(t,i){this.cssClassManager.addOrRemoveCssClass(t,i)}},oy={columnGroupOpened:"expanded",columnGroupClosed:"contracted",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate",columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",groupContracted:"tree-closed",groupExpanded:"tree-open",setFilterGroupClosed:"tree-closed",setFilterGroupOpen:"tree-open",setFilterGroupIndeterminate:"tree-indeterminate",chart:"chart",close:"cross",cancel:"cancel",check:"tick",first:"first",previous:"previous",next:"next",last:"last",linked:"linked",unlinked:"unlinked",colorPicker:"color-picker",groupLoading:"loading",menu:"menu",menuAlt:"menu-alt",filter:"filter",columns:"columns",maximize:"maximize",minimize:"minimize",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",clipboardCut:"cut",clipboardPaste:"paste",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnDrag:"grip",rowDrag:"grip",save:"save",csvExport:"csv",excelExport:"excel",smallDown:"small-down",smallLeft:"small-left",smallRight:"small-right",smallUp:"small-up",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none",advancedFilterBuilder:"group",advancedFilterBuilderDrag:"grip",advancedFilterBuilderInvalid:"not-allowed",advancedFilterBuilderMoveUp:"up",advancedFilterBuilderMoveDown:"down",advancedFilterBuilderAdd:"plus",advancedFilterBuilderRemove:"minus",chartsMenuEdit:"chart",chartsMenuAdvancedSettings:"settings",chartsMenuAdd:"plus",checkboxChecked:"checkbox-checked",checkboxIndeterminate:"checkbox-indeterminate",checkboxUnchecked:"checkbox-unchecked",radioButtonOn:"radio-button-on",radioButtonOff:"radio-button-off"},d5=(()=>{let e=new Set(Object.values(oy));return e.add("eye"),e})();function u5(e,t,i){let n=Wi(e,t,i);if(n){let{className:r}=n;if(typeof r=="string"&&r.indexOf("ag-icon")>-1||typeof r=="object"&&r["ag-icon"])return n}let o=document.createElement("span");return o.appendChild(n),o}function Wi(e,t,i,n){let o=null,r=i&&i.getColDef().icons;
492if(r&&(o=r[e]),t&&!o){let a=t.get("icons");a&&(o=a[e])}if(o){let a;if(typeof o=="function")a=o();else if(typeof o=="string")a=o;else throw new Error("icon from grid options needs to be a string or a function");if(typeof a=="string")return Wl(a);if(ym(a))return a;$("iconRenderer should return back a string or a dom object")}else{let a=document.createElement("span"),s=oy[e]??(d5.has(e)?e:void 0);return s||(n?s=e:($(`Did not find icon ${e}`),s="")),a.setAttribute("class",`ag-icon ag-icon-${s}`),a.setAttribute("unselectable","on"),qi(a,"presentation"),a}}var p5=class extends Le{constructor(){super(...arguments),this.dragSource=null,this.eIcon=le,this.eLabel=le}postConstruct(){let e=t=>u5(t,this.gos,null);this.dropIconMap={pinned:e("columnMovePin"),hide:e("columnMoveHide"),move:e("columnMoveMove"),left:e("columnMoveLeft"),right:e("columnMoveRight"),group:e("columnMoveGroup"),aggregate:e("columnMoveValue"),pivot:e("columnMovePivot"),notAllowed:e("dropNotAllowed")}}init(e){this.dragSource=e.dragSource,this.setTemplate(`<div class="ag-dnd-ghost ag-unselectable"> 493 <span data-ref="eIcon" class="ag-dnd-ghost-icon ag-shake-left-to-right"></span> 494 <div data-ref="eLabel" class="ag-dnd-ghost-label"></div> 495 </div>`)}destroy(){this.dragSource=null,super.destroy()}setIcon(e,t=!1){ni(this.eIcon);let i=null;e||(e=this.dragSource?.getDefaultIconName?this.dragSource?.getDefaultIconName():"notAllowed"),i=this.dropIconMap[e],this.eIcon.classList.toggle("ag-shake-left-to-right",t),!(i===this.dropIconMap.hide&&this.gos.get("suppressDragLeaveHidesColumns"))&&i&&this.eIcon.appendChild(i)}setLabel(e){this.eLabel.textContent=Gn(e)}};function ry(e,t,i){if(i===0)return!1;let n=Math.abs(e.clientX-t.clientX),o=Math.abs(e.clientY-t.clientY);return Math.max(n,o)<=i}var ir=class{constructor(e,t=!1){this.DOUBLE_TAP_MILLIS=500,this.destroyFuncs=[],this.touching=!1,this.localEventService=new cs,this.eElement=e,this.preventMouseClick=t;let i=this.onTouchStart.bind(this),n=this.onTouchMove.bind(this),o=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",i,{passive:!0}),this.eElement.addEventListener("touchmove",n,{passive:!0}),this.eElement.addEventListener("touchend",o,{passive:!1}),this.destroyFuncs.push(()=>{this.eElement.removeEventListener("touchstart",i,{passive:!0}),this.eElement.removeEventListener("touchmove",n,{passive:!0}),this.eElement.removeEventListener("touchend",o,{passive:!1})})}getActiveTouch(e){for(let t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null}addEventListener(e,t){this.localEventService.addEventListener(e,t)}removeEventListener(e,t){this.localEventService.removeEventListener(e,t)}onTouchStart(e){if(this.touching)return;this.touchStart=e.touches[0],this.touching=!0,this.moved=!1;let t=this.touchStart;window.setTimeout(()=>{let i=this.touchStart===t;if(this.touching&&i&&!this.moved){this.moved=!0;let n={type:"longTap",touchStart:this.touchStart,touchEvent:e};this.localEventService.dispatchEvent(n)}},500)}onTouchMove(e){if(!this.touching)return;let t=this.getActiveTouch(e.touches);if(!t)return;!ry(t,this.touchStart,4)&&(this.moved=!0)}onTouchEnd(e){if(this.touching){if(!this.moved){let t={type:"tap",touchStart:this.touchStart};this.localEventService.dispatchEvent(t),this.checkForDoubleTap()}this.preventMouseClick&&e.cancelable&&e.preventDefault(),this.touching=!1}}checkForDoubleTap(){let e=new Date().getTime();if(this.lastTapTime&&this.lastTapTime>0)if(e-this.lastTapTime>this.DOUBLE_TAP_MILLIS){let i={type:"doubleTap",touchStart:this.touchStart};this.localEventService.dispatchEvent(i),this.lastTapTime=null}else this.lastTapTime=e;else this.lastTapTime=e}destroy(){this.destroyFuncs.forEach(e=>e())}};function Ml(e,t){return`<span data-ref="eSort${e}" class="ag-sort-indicator-icon ag-sort-${t} ag-hidden" aria-hidden="true"></span>`}var h5=`<span class="ag-sort-indicator-container"> 496 ${Ml("Order","order")} 497 ${Ml("Asc","ascending-icon")} 498 ${Ml("Desc","descending-icon")} 499 ${Ml("Mixed","mixed-icon")} 500 ${Ml("None","none-icon")} 501 </span>`,xm=class extends Le{constructor(e){super(),this.eSortOrder=le,this.eSortAsc=le,this.eSortDe
501sc=le,this.eSortMixed=le,this.eSortNone=le,e||this.setTemplate(h5)}wireBeans(e){this.sortController=e.sortController}attachCustomElements(e,t,i,n,o){this.eSortOrder=e,this.eSortAsc=t,this.eSortDesc=i,this.eSortMixed=n,this.eSortNone=o}setupSort(e,t=!1){if(this.column=e,this.suppressOrder=t,this.setupMultiSortIndicator(),!this.column.isSortable()&&!this.column.getColDef().showRowGroup)return;this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e);let i=this.updateIcons.bind(this),n=this.onSortChanged.bind(this);this.addManagedPropertyListener("unSortIcon",i),this.addManagedEventListeners({newColumnsLoaded:i,sortChanged:n,columnRowGroupChanged:n}),this.onSortChanged()}addInIcon(e,t,i){if(t==null)return;let n=Wi(e,this.gos,i);n&&t.appendChild(n)}onSortChanged(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()}updateIcons(){let e=this.sortController.getDisplaySortForColumn(this.column);if(this.eSortAsc){let t=e==="asc";it(this.eSortAsc,t,{skipAriaHidden:!0})}if(this.eSortDesc){let t=e==="desc";it(this.eSortDesc,t,{skipAriaHidden:!0})}if(this.eSortNone){let t=!this.column.getColDef().unSortIcon&&!this.gos.get("unSortIcon"),i=e==null;it(this.eSortNone,!t&&i,{skipAriaHidden:!0})}}setupMultiSortIndicator(){this.addInIcon("sortUnSort",this.eSortMixed,this.column);let e=this.column.getColDef().showRowGroup;Hn(this.gos)&&e&&(this.addManagedEventListeners({sortChanged:this.updateMultiSortIndicator.bind(this),columnRowGroupChanged:this.updateMultiSortIndicator.bind(this)}),this.updateMultiSortIndicator())}updateMultiSortIndicator(){if(this.eSortMixed){let e=this.sortController.getDisplaySortForColumn(this.column)==="mixed";it(this.eSortMixed,e,{skipAriaHidden:!0})}}updateSortOrder(){if(!this.eSortOrder)return;let e=this.sortController.getColumnsWithSortingOrdered(),t=this.sortController.getDisplaySortIndexForColumn(this.column)??-1,i=e.some(o=>this.sortController.getDisplaySortIndexForColumn(o)??!1),n=t>=0&&i;it(this.eSortOrder,n,{skipAriaHidden:!0}),t>=0?this.eSortOrder.textContent=(t+1).toString():ni(this.eSortOrder)}},g5={selector:"AG-SORT-INDICATOR",component:xm},m5=`<div class="ag-cell-label-container" role="presentation"> 502 <span data-ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span> 503 <span data-ref="eFilterButton" class="ag-header-icon ag-header-cell-filter-button" aria-hidden="true"></span> 504 <div data-ref="eLabel" class="ag-header-cell-label" role="presentation"> 505 <span data-ref="eText" class="ag-header-cell-text"></span> 506 <span data-ref="eFilter" class="ag-header-icon ag-header-label-icon ag-filter-icon" aria-hidden="true"></span> 507 <ag-sort-indicator data-ref="eSortIndicator"></ag-sort-indicator> 508 </div> 509 </div>`,tm=class extends Le{constructor(){super(...arguments),this.eFilter=le,this.eFilterButton=le,this.eSortIndicator=le,this.eMenu=le,this.eLabel=le,this.eText=le,this.eSortOrder=le,this.eSortAsc=le,this.eSortDesc=le,this.eSortMixed=le,this.eSortNone=le,this.lastMovingChanged=0}wireBeans(e){this.sortController=e.sortController,this.menuService=e.menuService,this.funcColsService=e.funcColsService}destroy(){super.destroy()}refresh(e){let t=this.params;return this.params=e,this.workOutTemplate()!=this.currentTemplate||this.workOutShowMenu()!=this.currentShowMenu||this.workOutSort()!=this.currentSort||this.shouldSuppressMenuHide()!=this.currentSuppressMenuHide||t.enableFilterButton!=e.enableFilterButton||t.enableFilterIcon!=e.enableFilterIcon?!1:(this.setDisplayName(e),!0)}workOutTemplate(){let e=this.params.template??m5;return e=e&&e.trim?e.trim():e,e}init(e){this.params=e,this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate,[g5]),this.setupTap(),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setupFilterButton(),this.setDisplayName(e)}setDisplayName(e){if(this.currentDisplayName!=e.displayName){this.currentDisplayName=e.displayName;let t=Gn(this.currentDisplayName,!0);this.eText&&(this.eText.textContent=t)}}addInIcon(e,t,i){if(t==null)return;let n=Wi(e,this.gos,i);n&&t.appendChild(n)}setupTap(){let{gos:e}=this;if(e.get("suppressTouch"))return;let t=new ir(this.getGui(),!0),i=this.shouldSuppressMenuHide(),n=i&&K(this.eMenu),o=n?new ir(this.eMenu,!0):t;if(this.params.enableMenu){let r=n?"tap":"longTap",a=s=>this.params.showColumnMenuAfterMouseClick(s.touchStart);this.addManagedListeners(o,{[r]:a})}if(this.params.enableSorting){let r=a=>{let s=a.touchStart.target;i&&(this.eMenu?.contains(s)||this.eFilterButton?.contains(s))||this.sortController.progressSort(this.params.column,!1,"uiColumnSorted")};this.addManagedListeners(t,{tap:r})}if(this.params.enableFilterButton){let r=new ir(this.eFilterButton,!0);this.addManagedListeners(r,{tap:()=>this.params.showFilter(this.eFilterButton)}),this.addDestroyFunc(()=>r.destroy())}this.addDestroyFunc(()=>t.destroy()),n&&this.addDestroyFunc(()=>o.destroy())}workOutShowMenu(){return this.params.enableMenu&&this.menuService.isHeaderMenuButtonEnabled()}shouldSuppressMenuHide(){return this.menuService.isHeaderMenuButtonAlwaysShowEnabled()}
509setMenu(){if(!this.eMenu)return;if(this.currentShowMenu=this.workOutShowMenu(),!this.currentShowMenu){cn(this.eMenu),this.eMenu=void 0;return}let e=this.menuService.isLegacyMenuEnabled();this.addInIcon(e?"menu":"menuAlt",this.eMenu,this.params.column),this.eMenu.classList.toggle("ag-header-menu-icon",!e),this.currentSuppressMenuHide=this.shouldSuppressMenuHide(),this.addManagedElementListeners(this.eMenu,{click:()=>this.params.showColumnMenu(this.eMenu)}),this.eMenu.classList.toggle("ag-header-menu-always-show",this.currentSuppressMenuHide)}onMenuKeyboardShortcut(e){let t=this.params.column,i=this.menuService.isLegacyMenuEnabled();if(e&&!i){if(this.menuService.isFilterMenuInHeaderEnabled(t))return this.params.showFilter(this.eFilterButton??this.eMenu??this.getGui()),!0}else if(this.params.enableMenu)return this.params.showColumnMenu(this.eMenu??this.eFilterButton??this.getGui()),!0;return!1}workOutSort(){return this.params.enableSorting}setupSort(){if(this.currentSort=this.params.enableSorting,this.eSortIndicator||(this.eSortIndicator=this.createBean(new xm(!0)),this.eSortIndicator.attachCustomElements(this.eSortOrder,this.eSortAsc,this.eSortDesc,this.eSortMixed,this.eSortNone)),this.eSortIndicator.setupSort(this.params.column),!this.currentSort)return;this.addManagedListeners(this.params.column,{movingChanged:()=>{this.lastMovingChanged=new Date().getTime()}}),this.eLabel&&this.addManagedElementListeners(this.eLabel,{click:t=>{let i=this.params.column.isMoving(),o=new Date().getTime()-this.lastMovingChanged<50;if(!(i||o)){let s=this.gos.get("multiSortKey")==="ctrl"?t.ctrlKey||t.metaKey:t.shiftKey;this.params.progressSort(s)}}});let e=()=>{let t=this.params.column.getSort();if(this.addOrRemoveCssClass("ag-header-cell-sorted-asc",t==="asc"),this.addOrRemoveCssClass("ag-header-cell-sorted-desc",t==="desc"),this.addOrRemoveCssClass("ag-header-cell-sorted-none",!t),this.params.column.getColDef().showRowGroup){let o=!this.funcColsService.getSourceColumnsForGroupColumn(this.params.column)?.every(r=>this.params.column.getSort()==r.getSort());this.addOrRemoveCssClass("ag-header-cell-sorted-mixed",o)}};this.addManagedEventListeners({sortChanged:e,columnRowGroupChanged:e})}setupFilterIcon(){this.eFilter&&this.configureFilter(this.params.enableFilterIcon,this.eFilter,this.onFilterChangedIcon.bind(this))}setupFilterButton(){if(!this.eFilterButton)return;this.configureFilter(this.params.enableFilterButton,this.eFilterButton,this.onFilterChangedButton.bind(this))?this.addManagedElementListeners(this.eFilterButton,{click:()=>this.params.showFilter(this.eFilterButton)}):this.eFilterButton=void 0}configureFilter(e,t,i){if(!e)return cn(t),!1;let n=this.params.column;return this.addInIcon("filter",t,n),this.addManagedListeners(n,{filterChanged:i}),i(),!0}onFilterChangedIcon(){let e=this.params.column.isFilterActive();it(this.eFilter,e,{skipAriaHidden:!0})}onFilterChangedButton(){let e=this.params.column.isFilterActive();this.eFilterButton.classList.toggle("ag-filter-active",e)}getAnchorElementForMenu(e){return e?this.eFilterButton??this.eMenu??this.getGui():this.eMenu??this.eFilterButton??this.getGui()}},f5=class extends Le{constructor(){super(`<div class="ag-header-group-cell-label" role="presentation"> 510 <span data-ref="agLabel" class="ag-header-group-text" role="presentation"></span> 511 <span data-ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span> 512 <span data-ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span> 513 </div>`),this.agOpened=le,this.agClosed=le,this.agLabel=le}wireBeans(e){this.columnModel=e.columnModel}destroy(){super.destroy()}init(e){this.params=e,this.checkWarnings(),this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()}checkWarnings(){this.params.template&&$("A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)")}setupExpandIcons(){this.addInIcon("columnGroupOpened",this.agOpened),this.addInIcon("columnGroupClosed",this.agClosed);let e=o=>{if(yo(o))return;let r=!this.params.columnGroup.isExpanded();this.columnModel.setColumnGroupOpened(this.params.columnGroup.getProvidedColumnGroup(),r,"uiColumnExpanded")};this.addTouchAndClickListeners(this.agClosed,e),this.addTouchAndClickListeners(this.agOpened,e);
513let t=o=>{rs(o)};this.addManagedElementListeners(this.agClosed,{dblclick:t}),this.addManagedElementListeners(this.agOpened,{dblclick:t}),this.addManagedElementListeners(this.getGui(),{dblclick:e}),this.updateIconVisibility();let i=this.params.columnGroup.getProvidedColumnGroup(),n=this.updateIconVisibility.bind(this);this.addManagedListeners(i,{expandedChanged:n,expandableChanged:n})}addTouchAndClickListeners(e,t){let i=new ir(e,!0);this.addManagedListeners(i,{tap:t}),this.addDestroyFunc(()=>i.destroy()),this.addManagedElementListeners(e,{click:t})}updateIconVisibility(){if(this.params.columnGroup.isExpandable()){let t=this.params.columnGroup.isExpanded();it(this.agOpened,t),it(this.agClosed,!t)}else it(this.agOpened,!1),it(this.agClosed,!1)}addInIcon(e,t){let i=Wi(e,this.gos,null);i&&t.appendChild(i)}addGroupExpandIcon(){if(!this.params.columnGroup.isExpandable()){it(this.agOpened,!1),it(this.agClosed,!1);return}}setupLabel(){let{displayName:e,columnGroup:t}=this.params;if(K(e)){let i=Gn(e,!0);this.agLabel.textContent=i}this.addOrRemoveCssClass("ag-sticky-label",!t.getColGroupDef()?.suppressStickyLabel)}},v5="\u2191",C5="\u2193",b5=class extends Le{constructor(){super(),this.refreshCount=0;let e=document.createElement("span"),t=document.createElement("span");t.setAttribute("class","ag-value-change-delta");let i=document.createElement("span");i.setAttribute("class","ag-value-change-value"),e.appendChild(t),e.appendChild(i),this.setTemplateFromElement(e)}wireBeans(e){this.filterManager=e.filterManager}init(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e,!0)}showDelta(e,t){let i=Math.abs(t),n=e.formatValue(i),o=K(n)?n:i,r=t>=0;r?this.eDelta.textContent=v5+o:this.eDelta.textContent=C5+o,this.eDelta.classList.toggle("ag-value-change-delta-up",r),this.eDelta.classList.toggle("ag-value-change-delta-down",!r)}setTimerToRemoveDelta(){this.refreshCount++;let e=this.refreshCount;this.getFrameworkOverrides().wrapIncoming(()=>{window.setTimeout(()=>{e===this.refreshCount&&this.hideDeltaValue()},2e3)})}hideDeltaValue(){this.eValue.classList.remove("ag-value-change-value-highlight"),ni(this.eDelta)}refresh(e,t=!1){let i=e.value;if(i===this.lastValue||(K(e.valueFormatted)?this.eValue.textContent=e.valueFormatted:K(e.value)?this.eValue.textContent=i:ni(this.eValue),this.filterManager?.isSuppressFlashingCellsBecauseFiltering()))return!1;if(typeof i=="number"&&typeof this.lastValue=="number"){let n=i-this.lastValue;this.showDelta(e,n)}return this.lastValue&&this.eValue.classList.add("ag-value-change-value-highlight"),t||this.setTimerToRemoveDelta(),this.lastValue=i,!0}},_5=class extends Le{constructor(){super(),this.refreshCount=0;let e=document.createElement("span"),t=document.createElement("span");t.setAttribute("class","ag-value-slide-current"),e.appendChild(t),this.setTemplateFromElement(e),this.eCurrent=this.queryForHtmlElement(".ag-value-slide-current")}wireBeans(e){this.filterManager=e.filterManager}init(e){this.refresh(e,!0)}addSlideAnimation(){this.refreshCount++;let e=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious);let t=document.createElement("span");t.setAttribute("class","ag-value-slide-previous ag-value-slide-out"),this.ePrevious=t,this.ePrevious.textContent=this.eCurrent.textContent,this.getGui().insertBefore(this.ePrevious,this.eCurrent),this.getFrameworkOverrides().wrapIncoming(()=>{window.setTimeout(()=>{e===this.refreshCount&&this.ePrevious.classList.add("ag-value-slide-out-end")},50),window.setTimeout(()=>{e===this.refreshCount&&(this.getGui().removeChild(this.ePrevious),this.ePrevious=null)},3e3)})}refresh(e,t=!1){let i=e.value;return Fe(i)&&(i=""),i===this.lastValue||this.filterManager?.isSuppressFlashingCellsBecauseFiltering()?!1:(t||this.addSlideAnimation(),this.lastValue=i,K(e.valueFormatted)?this.eCurrent.textContent=e.valueFormatted:K(e.value)?this.eCurrent.textContent=i:ni(this.eCurrent),!0)}},j=(()=>{let e=class{};return e.BACKSPACE="Backspace",e.TAB="Tab",e.ENTER="Enter",e.ESCAPE="Escape",e.SPACE=" ",e.LEFT="ArrowLeft",e.UP="ArrowUp",e.RIGHT="ArrowRight",e.DOWN="ArrowDown",e.DELETE="Delete",e.F2="F2",e.PAGE_UP="PageUp",e.PAGE_DOWN="PageDown",e.PAGE_HOME="Home",e.PAGE_END="End",e.A="KeyA",e.C="KeyC",e.D="KeyD",e.V="KeyV",e.X="KeyX",e.Y="KeyY",e.Z="KeyZ",e})(),y5=class extends Le{constructor(e,t,i){super(t,i),this.labelSeparator="",this.labelAlignment="left",this.disabled=!1,this.label="",this.config=e||{}}postConstruct(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");let{labelSeparator:e,label:t,labelWidth:i,labelAlignment:n,disabled:o}=this.config;o!=null&&this.setDisabled(o),e!=null&&this.setLabelSeparator(e),t!=null&&this.setLabel(t),i!=null&&this.setLabelWidth(i),this.setLabelAlignment(n||this.labelAlignment),this.refreshLabel()}refreshLabel(){ni(this.eLabel),typeof this.label=="string"?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),this.label===""?(it(this.eLabel,!1),qi(this.eLabel,"presentation")):(it(this.eLabel,!0),qi(this.eLabel,null))}setLabelSeparator(e){return this.labelSeparator===e?this:(this.labelSeparator=e,this.label!=null&&this.refreshLabel(),this)}getLabelId(){return this.eLabel.id=this.eLabel.id||`ag-${this.getCompId()}-label`,this.eLabel.id}getLabel(){return this.label}setLabel(e){return this.label===e?this:(this.label=e,this.refreshLabel(),this)}setLabelAlignment(e){let i=this.getGui().classList;return i.toggle("ag-label-align-left",e==="left"),i.toggle("ag-label-align-right",e==="right"),i.toggle("ag-label-align-top",e==="top"),this}setLabelEllipsis(e){return this.eLabel.classList.toggle("ag-label-ellipsis",e),this}setLabelWidth(e){return this.label==null?this:(Su(this.eLabel,e),this)}setDisabled(e){e=!!e;let t=this.getGui();return jl(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this}isDisabled(){return!!this.disabled}},ay=class extends y5{constructor(e,t,i,n){super(e,t,i),this.className=n}
vendor: 2,023 bytes, lines 513-519
513postConstruct(){super.postConstruct();let{width:e,value:t,onValueChange:i}=this.config;e!=null&&this.setWidth(e),t!=null&&this.setValue(t),i!=null&&this.onValueChange(i),this.className&&this.addCssClass(this.className),this.refreshAriaLabelledBy()}setLabel(e){return super.setLabel(e),this.refreshAriaLabelledBy(),this}refreshAriaLabelledBy(){let e=this.getAriaElement(),t=this.getLabelId(),i=this.getLabel();i==null||i==""||AR(e)!==null?Ul(e,""):Ul(e,t??"")}setAriaLabel(e){return ss(this.getAriaElement(),e),this.refreshAriaLabelledBy(),this}onValueChange(e){return this.addManagedListeners(this,{fieldValueChanged:()=>e(this.getValue())}),this}getWidth(){return this.getGui().clientWidth}setWidth(e){return En(this.getGui(),e),this}getPreviousValue(){return this.previousValue}getValue(){return this.value}setValue(e,t){return this.value===e?this:(this.previousValue=this.value,this.value=e,t||this.dispatchLocalEvent({type:"fieldValueChanged"}),this)}},Br=class extends ay{constructor(e,t,i="text",n="input"){super(e,e?.template??` 514 <div role="presentation"> 515 <div data-ref="eLabel" class="ag-input-field-label"></div> 516 <div data-ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation"> 517 <${n} data-ref="eInput" class="ag-input-field-input"></${n}> 518 </div> 519 </div>`,[],t),this.inputType=i,this.displayFieldTag=n,this.eLabel=le,this.eWrapper=le,this.eInput=le}postConstruct(){super.postConstruct(),this.setInputType(),this.eLabel.classList.add(`${this.className}-label`),this.eWrapper.classList.add(`${this.className}-input-wrapper`),this.eInput.classList.add(`${this.className}-input`),this.addCssClass("ag-input-field"),this.eInput.id=this.eInput.id||`ag-${this.getCompId()}-input`;let{inputName:e,inputWidth:t}=this.config;e!=null&&this.setInputName(e),t!=null&&this.setInputWidth(t),this.addInputListeners(),this.activateTabIndex([this.eInput])}addInputListeners(){this.addManagedElementListeners(this.eInput,{input
519:e=>this.setValue(e.target.value)})}setInputType(){this.displayFieldTag==="input"&&this.eInput.setAttribute("type",this.inputType)}getInputElement(){return this.eInput}setInputWidth(e){return Su(this.eWrapper,e),this}setInputName(e){return this.getInputElement().setAttribute("name",e),this}getFocusableElement(){return this.eInput}setMaxLength(e){let t=this.eInput;return t.maxLength=e,this}setInputPlaceholder(e){return un(this.eInput,"placeholder",e),this}setInputAriaLabel(e){return ss(this.eInput,e),this.refreshAriaLabelledBy(),this}setDisabled(e){return jl(this.eInput,e),super.setDisabled(e)}setAutoComplete(e){if(e===!0)un(this.eInput,"autocomplete",null);else{let t=typeof e=="string"?e:"off";un(this.eInput,"autocomplete",t)}return this}},Sm=class extends Br{constructor(e,t="ag-checkbox",i="checkbox"){super(e,t,i),this.labelAlignment="right",this.selected=!1,this.readOnly=!1,this.passive=!1}postConstruct(){super.postConstruct();let{readOnly:e,passive:t}=this.config;typeof e=="boolean"&&this.setReadOnly(e),typeof t=="boolean"&&this.setPassive(t)}addInputListeners(){this.addManagedElementListeners(this.eInput,{click:this.onCheckboxClick.bind(this)}),this.addManagedElementListeners(this.eLabel,{click:this.toggle.bind(this)})}getNextValue(){return this.selected===void 0?!0:!this.selected}setPassive(e){this.passive=e}isReadOnly(){return this.readOnly}setReadOnly(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e}setDisabled(e){return this.eWrapper.classList.toggle("ag-disabled",e),super.setDisabled(e)}toggle(){if(this.eInput.disabled)return;let e=this.isSelected(),t=this.getNextValue();this.passive?this.dispatchChange(t,e):this.setValue(t)}getValue(){return this.isSelected()}setValue(e,t){return this.refreshSelectedClass(e),this.setSelected(e,t),this}setName(e){let t=this.getInputElement();return t.name=e,this}isSelected(){return this.selected}setSelected(e,t){this.isSelected()!==e&&(this.previousValue=this.isSelected(),e=this.selected=typeof e=="boolean"?e:void 0,this.eInput.checked=e,this.eInput.indeterminate=e===void 0,t||this.dispatchChange(this.selected,this.previousValue))}dispatchChange(e,t,i){this.dispatchLocalEvent({type:"fieldValueChanged",selected:e,previousValue:t,event:i});let n=this.getInputElement();this.eventService.dispatchEvent({type:"checkboxChanged",id:n.id,name:n.name,selected:e,previousValue:t})}onCheckboxClick(e){if(this.passive||this.eInput.disabled)return;let t=this.isSelected(),i=this.selected=e.target.checked;this.refreshSelectedClass(i),this.dispatchChange(i,t,e)}refreshSelectedClass(e){this.eWrapper.classList.toggle("ag-checked",e===!0),this.eWrapper.classList.toggle("ag-indeterminate",e==null)}},km={selector:"AG-CHECKBOX",component:Sm},w5=class extends Le{constructor(){super(` 520 <div class="ag-cell-wrapper ag-checkbox-cell" role="presentation"> 521 <ag-checkbox role="presentation" data-ref="eCheckbox"></ag-checkbox> 522 </div>`,[km]),this.eCheckbox=le}init(e){this.refresh(e);let t=this.eCheckbox.getInputElement();t.setAttribute("tabindex","-1"),H_(t,"polite"),this.addManagedListeners(t,{click:i=>{if(rs(i),this.eCheckbox.isDisabled())return;let n=this.eCheckbox.getValue();this.onCheckboxChanged(n)},dblclick:i=>{rs(i)}}),this.addManagedElementListeners(this.params.eGridCell,{keydown:i=>{if(i.key===j.SPACE&&!this.eCheckbox.isDisabled()){this.params.eGridCell===nt(this.gos)&&this.eCheckbox.toggle();let n=this.eCheckbox.getValue();this.onCheckboxChanged(n),i.preventDefault()}}})}refresh(e){return this.params=e,this.updateCheckbox(e),!0}updateCheckbox(e){let t,i=!0;if(e.node.group&&e.column)if(typeof e.value=="boolean")t=e.value;else{let s=e.column.getColId();s.startsWith(Iu)?t=e.value==null||e.value===""?void 0:e.value==="true":e.node.aggData&&e.node.aggData[s]!==void 0?t=e.value??void 0:i=!1}else t=e.value??void 0;if(!i){this.eCheckbox.setDisplayed(!1);return}this.eCheckbox.setValue(t);let n=e.disabled!=null?e.disabled:!e.column?.isCellEditable(e.node);this.eCheckbox.setDisabled(n);let o=this.localeService.getLocaleTextFunc(),r=vm(o,t),a=n?r:`${o("ariaToggleCellValue","Press SPACE to toggle cell value")} (${r})`;this.eCheckbox.setInputAriaLabel(a)}
522onCheckboxChanged(e){let{column:t,node:i,value:n}=this.params;this.eventService.dispatchEvent({type:"cellEditingStarted",column:t,colDef:t?.getColDef(),data:i.data,node:i,rowIndex:i.rowIndex,rowPinned:i.rowPinned,value:n});let o=this.params.node.setDataValue(this.params.column,e,"edit");this.eventService.dispatchEvent({type:"cellEditingStopped",column:t,colDef:t?.getColDef(),data:i.data,node:i,rowIndex:i.rowIndex,rowPinned:i.rowPinned,value:n,oldValue:n,newValue:e,valueChanged:o}),o||this.updateCheckbox(this.params)}},x5=class extends Le{constructor(){super(`<div class="ag-loading"> 523 <span class="ag-loading-icon" data-ref="eLoadingIcon"></span> 524 <span class="ag-loading-text" data-ref="eLoadingText"></span> 525 </div>`),this.eLoadingIcon=le,this.eLoadingText=le}init(e){e.node.failedLoad?this.setupFailed():this.setupLoading()}setupFailed(){let e=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=e("loadingError","ERR")}setupLoading(){let e=Wi("groupLoading",this.gos,null);e&&this.eLoadingIcon.appendChild(e);let t=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=t("loadingOoo","Loading")}refresh(e){return!1}destroy(){super.destroy()}},S5=class extends Le{constructor(){super('<div class="ag-skeleton-container"></div>')}init(e){let t=`ag-cell-skeleton-renderer-${this.getCompId()}`;this.getGui().setAttribute("id",t),this.addDestroyFunc(()=>Ul(e.eParentOfValue)),Ul(e.eParentOfValue,t),e.node.failedLoad?this.setupFailed():this.setupLoading(e)}setupFailed(){let e=this.localeService.getLocaleTextFunc();this.getGui().innerText=e("loadingError","ERR");let t=e("ariaSkeletonCellLoadingFailed","Row failed to load");ss(this.getGui(),t)}setupLoading(e){let i=dt(this.gos).createElement("div");i.classList.add("ag-skeleton-effect");let n=e.node.rowIndex;if(n!=null){let a=75+25*(n%2===0?Math.sin(n):Math.cos(n));i.style.width=`${a}%`}this.getGui().appendChild(i);let r=this.localeService.getLocaleTextFunc()("ariaSkeletonCellLoading","Row data is loading");ss(this.getGui(),r)}refresh(e){return!1}destroy(){super.destroy()}},sy=class extends Le{constructor(){super()}destroy(){super.destroy()}},k5=class extends sy{init(){let e=_o(this.gos.get("overlayLoadingTemplate")?.trim());if(this.setTemplate(e??'<span aria-live="polite" aria-atomic="true" class="ag-overlay-loading-center"></span>'),!e){let t=this.localeService.getLocaleTextFunc();setTimeout(()=>{this.getGui().textContent=t("loadingOoo","Loading...")})}}},E5=class extends sy{init(){let e=_o(this.gos.get("overlayNoRowsTemplate")?.trim());if(this.setTemplate(e??'<span class="ag-overlay-no-rows-center"></span>'),!e){let t=this.localeService.getLocaleTextFunc();setTimeout(()=>{this.getGui().textContent=t("noRowsToShow","No Rows To Show")})}}},ps=class extends Le{isPopup(){return!0}setParentComponent(e){e.addCssClass("ag-has-popup"),super.setParentComponent(e)}destroy(){let e=this.parentComponent;e&&e.isAlive()&&e.getGui().classList.remove("ag-has-popup"),super.destroy()}},M5=class extends ps{constructor(){super('<div class="ag-tooltip"></div>')}init(e){let{value:t}=e;this.getGui().textContent=Gn(t,!0)}};function ly(e){let{inputValue:t,allSuggestions:i,hideIrrelevant:n,filterByPercentageOfBestMatch:o,addSequentialWeight:r}=e,a=i.map((c,h)=>({value:c,relevance:I5(t.toLowerCase(),c.toLocaleLowerCase(),r),idx:h}));if(a.sort((c,h)=>h.relevance-c.relevance),n&&(a=a.filter(c=>c.relevance!==0)),a.length>0&&o&&o>0){let h=a[0].relevance*o;a=a.filter(m=>h-m.relevance<0)}let s=[],l=[];for(let c of a)s.push(c.value),l.push(c.idx);return{values:s,indices:l}}function T5(e){let t=[],i=e.length;for(let n=1;n<=i;n++)for(let o=0;o<=i-n;o++){let r=o+n-1;t.push(e.slice(o,r+1))}return t}function I5(e,t,i=!1){let n=e.replace(/\s/g,""),o=t.replace(/\s/g,""),r=n.length,a=o.length,s=new Array(r+1).fill(null).map(()=>new Array(a+1).fill(0));for(let m=0;m<=r;m+=1)s[m][0]=m;for(let m=0;m<=a;m+=1)s[0][m]=m;for(let m=1;m<=r;m++)for(let f=1;f<=a;f++)n[m-1]===o[f-1]?s[m][f]=s[m-1][f-1]:s[m][f]=1+Math.min(s[m][f-1],Math.min(s[m-1][f],s[m-1][f-1]));let l=s[r][a],h=Math.max(r,a)-l;if(i){let m=T5(n);for(let f=0;f<m.length;f++){let b=m[f];o.indexOf(b)!==-1&&(h+=1,h*=b.length)}}return h}var D5=class extends H{constructor(){super(...arguments),this.beanName="userComponentRegistry",this.agGridDefaults={agDragAndDropImage:p5,agColumnHeader:tm,agColumnGroupHeader:f5,agSortIndicator:xm,agAnimateShowChangeCellRenderer:b5,agAnimateSlideCellRenderer:_5,agLoadingCellRenderer:x5,agSkeletonCellRenderer:S5,agCheckboxCellRenderer:w5,agLoadingOverlay:k5,agNoRowsOverlay:E5,agTooltipComponent:M5},this.agGridDefaultParams={},this.enterpriseAgDefaultCompsModule={agSetColumnFilter:"@ag-grid-enterprise/set-filter",agSetColumnFloatingFilter:"@ag-grid-enterprise/set-filter",agMultiColumnFilter:"@ag-grid-enterprise/multi-filter",agMultiColumnFloatingFilter:"@ag-grid-enterprise/multi-filter",agGroupColumnFilter:"@ag-grid-enterprise/row-grouping",agGroupColumnFloatingFilter:"@ag-grid-enterprise/row-grouping",agGroupCellRenderer:"@ag-grid-enterprise/row-grouping",agGroupRowRenderer:"@ag-grid-enterprise/row-grouping",agRichSelect:"@ag-grid-enterprise/rich-select",agRichSelectCellEditor:"@ag-grid-enterprise/rich-select",agDetailCellRenderer:"@ag-grid-enterprise/master-detail",agSparklineCellRenderer:"@ag-grid-enterprise/sparklines"},this.jsComps={}}postConstruct(){let e=this.gos.get("components");
525e!=null&&sn(e,(t,i)=>this.registerJsComponent(t,i))}registerDefaultComponent(e,t,i){this.agGridDefaults[e]=t,i&&(this.agGridDefaultParams[e]=i)}registerJsComponent(e,t){this.jsComps[e]=t}retrieve(e,t){let i=(s,l,c)=>({componentFromFramework:l,component:s,params:c}),n=this.getFrameworkOverrides().frameworkComponent(t,this.gos.get("components"));if(n!=null)return i(n,!0);let o=this.jsComps[t];if(o){let s=this.getFrameworkOverrides().isFrameworkComponent(o);return i(o,s)}let r=this.agGridDefaults[t];if(r)return i(r,!1,this.agGridDefaultParams[t]);let a=this.enterpriseAgDefaultCompsModule[t];return a?this.gos.assertModuleRegistered(a,`AG Grid '${e}' component: ${t}`):cm(()=>{this.warnAboutMissingComponent(e,t)},"MissingComp"+t),null}warnAboutMissingComponent(e,t){let i=[...Object.keys(this.agGridDefaults).filter(o=>!["agCellEditor","agGroupRowRenderer","agSortIndicator"].includes(o)),...Object.keys(this.jsComps)],n=ly({inputValue:t,allSuggestions:i,hideIrrelevant:!0,filterByPercentageOfBestMatch:.8}).values;$(`Could not find '${t}' component. It was configured as "${e}: '${t}'" but it wasn't found in the list of registered components.`),n.length>0&&$(` Did you mean: [${n.slice(0,3)}]?`),$(`If using a custom component check it has been registered as described in: ${this.getFrameworkOverrides().getDocLink("components/")}`)}},ji=class Pl{constructor(t){this.status=0,this.resolution=null,this.waiters=[],t(i=>this.onDone(i),i=>this.onReject(i))}static all(t){return t.length?new Pl(i=>{let n=t.length,o=new Array(n);t.forEach((r,a)=>{r.then(s=>{o[a]=s,n--,n===0&&i(o)})})}):Pl.resolve()}static resolve(t=null){return new Pl(i=>i(t))}then(t){return new Pl(i=>{this.status===1?i(t(this.resolution)):this.waiters.push(n=>i(t(n)))})}onDone(t){this.status=1,this.resolution=t,this.waiters.forEach(i=>i(t))}onReject(t){}},P5={propertyName:"dateComponent",cellRenderer:!1},R5={propertyName:"dragAndDropImageComponent",cellRenderer:!1},F5={propertyName:"headerComponent",cellRenderer:!1},O5={propertyName:"headerGroupComponent",cellRenderer:!1},Xb={propertyName:"cellRenderer",cellRenderer:!0},A5={propertyName:"cellRenderer",cellRenderer:!1},L5={propertyName:"loadingCellRenderer",cellRenderer:!0},N5={propertyName:"cellEditor",cellRenderer:!1},e_={propertyName:"innerRenderer",cellRenderer:!0},z5={propertyName:"loadingOverlayComponent",cellRenderer:!1},B5={propertyName:"noRowsOverlayComponent",cellRenderer:!1},V5={propertyName:"tooltipComponent",cellRenderer:!1},Em={propertyName:"filter",cellRenderer:!1},H5={propertyName:"floatingFilterComponent",cellRenderer:!1},G5={propertyName:"toolPanel",cellRenderer:!1},U5={propertyName:"statusPanel",cellRenderer:!1},j5={propertyName:"fullWidthCellRenderer",cellRenderer:!0},W5={propertyName:"loadingCellRenderer",cellRenderer:!0},$5={propertyName:"groupRowRenderer",cellRenderer:!0},q5={propertyName:"detailCellRenderer",cellRenderer:!0},Y5={propertyName:"menuItem",cellRenderer:!1},cy=class dy extends H{constructor(){super(...arguments),this.beanName="userComponentFactory"}wireBeans(t){this.agComponentUtils=t.agComponentUtils,this.componentMetadataProvider=t.componentMetadataProvider,this.userComponentRegistry=t.userComponentRegistry,this.frameworkComponentWrapper=t.frameworkComponentWrapper,this.gridOptions=t.gridOptions}getDragAndDropImageCompDetails(t){return this.getCompDetails(this.gridOptions,R5,"agDragAndDropImage",t,!0)}getHeaderCompDetails(t,i){return this.getCompDetails(t,F5,"agColumnHeader",i)}getHeaderGroupCompDetails(t){let i=t.columnGroup.getColGroupDef();return this.getCompDetails(i,O5,"agColumnGroupHeader",t)}getFullWidthCellRendererDetails(t){return this.getCompDetails(this.gridOptions,j5,null,t,!0)}getFullWidthLoadingCellRendererDetails(t){return this.getCompDetails(this.gridOptions,W5,"agLoadingCellRenderer",t,!0)}getFullWidthGroupCellRendererDetails(t){return this.getCompDetails(this.gridOptions,$5,"agGroupRowRenderer",t,!0)}getFullWidthDetailCellRendererDetails(t){return this.getCompDetails(this.gridOptions,q5,"agDetailCellRenderer",t,!0)}
525getInnerRendererDetails(t,i){return this.getCompDetails(t,e_,null,i)}getFullWidthGroupRowInnerCellRenderer(t,i){return this.getCompDetails(t,e_,null,i)}getCellRendererDetails(t,i){return this.getCompDetails(t,Xb,null,i)}getEditorRendererDetails(t,i){return this.getCompDetails(t,A5,null,i)}getLoadingCellRendererDetails(t,i){return this.getCompDetails(t,L5,"agSkeletonCellRenderer",i,!0)}getCellEditorDetails(t,i){return this.getCompDetails(t,N5,"agCellEditor",i,!0)}getFilterDetails(t,i,n){return this.getCompDetails(t,Em,n,i,!0)}getDateCompDetails(t){return this.getCompDetails(this.gridOptions,P5,"agDateInput",t,!0)}getLoadingOverlayCompDetails(t){return this.getCompDetails(this.gridOptions,z5,"agLoadingOverlay",t,!0)}getNoRowsOverlayCompDetails(t){return this.getCompDetails(this.gridOptions,B5,"agNoRowsOverlay",t,!0)}getTooltipCompDetails(t){return this.getCompDetails(t.colDef,V5,"agTooltipComponent",t,!0)}getSetFilterCellRendererDetails(t,i){return this.getCompDetails(t,Xb,null,i)}getFloatingFilterCompDetails(t,i,n){return this.getCompDetails(t,H5,n,i)}getToolPanelCompDetails(t,i){return this.getCompDetails(t,G5,null,i,!0)}getStatusPanelCompDetails(t,i){return this.getCompDetails(t,U5,null,i,!0)}getMenuItemCompDetails(t,i){return this.getCompDetails(t,Y5,"agMenuItem",i,!0)}getCompDetails(t,i,n,o,r=!1){let{propertyName:a,cellRenderer:s}=i,{compName:l,jsComp:c,fwComp:h,paramsFromSelector:m,popupFromSelector:f,popupPositionFromSelector:b}=dy.getCompKeys(this.frameworkOverrides,t,i,o),_,S=F=>{let W=this.userComponentRegistry.retrieve(a,F);W&&(c=W.componentFromFramework?void 0:W.component,h=W.componentFromFramework?W.component:void 0,_=W.params)};if(l!=null&&S(l),c==null&&h==null&&n!=null&&S(n),c&&s&&!this.agComponentUtils.doesImplementIComponent(c)&&(c=this.agComponentUtils.adaptFunction(a,c)),!c&&!h){r&&Be(`Could not find component ${l}, did you forget to configure this component?`);return}
525let M=this.mergeParamsWithApplicationProvidedParams(t,i,o,m,_),D=c==null,I=c||h;return{componentFromFramework:D,componentClass:I,params:M,type:i,popupFromSelector:f,popupPositionFromSelector:b,newAgStackInstance:()=>this.newAgStackInstance(I,D,M,i)}}static getCompKeys(t,i,n,o){let{propertyName:r}=n,a,s,l,c,h,m;if(i){let f=i,b=f[r+"Selector"],_=b?b(o):null,S=M=>{typeof M=="string"?a=M:M!=null&&M!==!0&&(t.isFrameworkComponent(M)?l=M:s=M)};_?(S(_.component),c=_.params,h=_.popup,m=_.popupPosition):S(f[r])}return{compName:a,jsComp:s,fwComp:l,paramsFromSelector:c,popupFromSelector:h,popupPositionFromSelector:m}}newAgStackInstance(t,i,n,o){let r=o.propertyName,a=!i,s;if(a)s=new t;else{let c=this.componentMetadataProvider.retrieve(r);s=this.frameworkComponentWrapper.wrap(t,c.mandatoryMethodList,c.optionalMethodList,o)}let l=this.initComponent(s,n);return l==null?ji.resolve(s):l.then(()=>s)}mergeParamsWithApplicationProvidedParams(t,i,n,o=null,r){let a=this.gos.getGridCommonParams();yi(a,n),r&&yi(a,r);let s=t,l=s&&s[i.propertyName+"Params"];if(typeof l=="function"){let c=l(n);yi(a,c)}else typeof l=="object"&&yi(a,l);return yi(a,o),a}initComponent(t,i){if(this.createBean(t),t.init!=null)return t.init(i)}};function Al(e){let t=e;return t!=null&&t.getFrameworkComponentInstance!=null?t.getFrameworkComponentInstance():e}var K5=(()=>{let e=class je{static register(i){je.__register(i,!0,void 0)}static registerModules(i){je.__registerModules(i,!0,void 0)}static __register(i,n,o){je.runVersionChecks(i),o!==void 0?(je.areGridScopedModules=!0,je.gridModulesMap[o]===void 0&&(je.gridModulesMap[o]={}),je.gridModulesMap[o][i.moduleName]=i):je.globalModulesMap[i.moduleName]=i,je.setModuleBased(n)}static __unRegisterGridModules(i){delete je.gridModulesMap[i]}static __registerModules(i,n,o){je.setModuleBased(n),i&&i.forEach(r=>je.__register(r,n,o))}static isValidModuleVersion(i){let[n,o]=i.version.split(".")||[],[r,a]=je.currentModuleVersion.split(".")||[];return n===r&&o===a}static runVersionChecks(i){je.currentModuleVersion||(je.currentModuleVersion=i.version);let n=o=>`You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${o} Please update all modules to the same version.`;if(i.version?je.isValidModuleVersion(i)||Be(n(`'${i.moduleName}' is version ${i.version} but the other modules are version ${je.currentModuleVersion}.`)):Be(n(`'${i.moduleName}' is incompatible.`)),i.validate){let o=i.validate();o.isValid||Be(`${o.message}`)}}static setModuleBased(i){je.moduleBased===void 0?je.moduleBased=i:je.moduleBased!==i&&(Be("AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community)
525- you can only use one or the other of these mechanisms."),Be("Please see https://www.ag-grid.com/javascript-grid/modules/ for more information."))}static __setIsBundled(){je.isBundled=!0}static __assertRegistered(i,n,o){if(this.__isRegistered(i,o))return!0;let r;if(je.isBundled)r=`AG Grid: unable to use ${n} as 'ag-grid-enterprise' has not been loaded. Check you are using the Enterprise bundle: 526 527 <script src="https://cdn.jsdelivr.net/npm/ag-grid-enterprise@AG_GRID_VERSION/dist/ag-grid-enterprise.min.js"><\/script> 528 529For more info see: https://ag-grid.com/javascript-data-grid/getting-started/#getting-started-with-ag-grid-enterprise`;else if(je.moduleBased||je.moduleBased===void 0){let a=Object.entries(v_).find(([s,l])=>l===i)?.[0];r=`AG Grid: unable to use ${n} as the ${a} is not registered${je.areGridScopedModules?` for gridId: ${o}`:""}. Check if you have registered the module: 530 531 import { ModuleRegistry } from '@ag-grid-community/core'; 532 import { ${a} } from '${i}'; 533 534 ModuleRegistry.registerModules([ ${a} ]); 535 536For more info see: https://www.ag-grid.com/javascript-grid/modules/`}else r=`AG Grid: unable to use ${n} as package 'ag-grid-enterprise' has not been imported. Check that you have imported the package: 537 538 import 'ag-grid-enterprise';`;return Be(r),!1}static __isRegistered(i,n){return!!je.globalModulesMap[i]||!!je.gridModulesMap[n]?.[i]}static __getRegisteredModules(i){return[...du(je.globalModulesMap),...du(je.gridModulesMap[i]||{})]}static __getGridRegisteredModules(i){return du(je.gridModulesMap[i]??{})||[]}static __isPackageBased(){return!je.moduleBased}};return e.globalModulesMap={},e.gridModulesMap={},e.areGridScopedModules=!1,e})(),bo=K5,Q5=class{constructor(e){this.beans={}
538,this.createdBeans=[],this.destroyed=!1,!(!e||!e.beanClasses)&&(this.beanDestroyComparator=e.beanDestroyComparator,this.init(e))}init(e){Object.entries(e.providedBeanInstances).forEach(([t,i])=>{this.beans[t]=i}),e.beanClasses.forEach(t=>{let i=new t;i.beanName?this.beans[i.beanName]=i:console.error(`Bean ${t.name} is missing beanName`),this.createdBeans.push(i)}),e.derivedBeans?.forEach(t=>{let{beanName:i,bean:n}=t(this);this.beans[i]=n,this.createdBeans.push(n)}),e.beanInitComparator&&this.createdBeans.sort(e.beanInitComparator),this.initBeans(this.createdBeans)}getBeanInstances(){return Object.values(this.beans)}createBean(e,t){if(!e)throw Error("Can't wire to bean since it is null");return this.initBeans([e],t),e}initBeans(e,t){e.forEach(i=>{i.preWireBeans?.(this.beans),i.wireBeans?.(this.beans)}),e.forEach(i=>i.preConstruct?.()),t&&e.forEach(t),e.forEach(i=>i.postConstruct?.())}getBeans(){return this.beans}getBean(e){return this.beans[e]}destroy(){if(this.destroyed)return;this.destroyed=!0;let e=this.getBeanInstances();this.beanDestroyComparator&&e.sort(this.beanDestroyComparator),this.destroyBeans(e),this.beans={},this.createdBeans=[]}destroyBean(e){e?.destroy?.()}destroyBeans(e){if(e)for(let t=0;t<e.length;t++)this.destroyBean(e[t]);return[]}isDestroyed(){return this.destroyed}},J5=class extends Q5{init(e){this.gridId=e.gridId,this.beans.context=this,super.init(e)}destroy(){super.destroy(),bo.__unRegisterGridModules(this.gridId)}getGridId(){return this.gridId}};var uy=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(uy||{});var Z5=class extends H{constructor(){super(...arguments),this.beanName="dragAndDropService",this.dragSourceAndParamsList=[],this.dropTargets=[]}wireBeans(e){this.ctrlsService=e.ctrlsService,this.dragService=e.dragService,this.mouseEventService=e.mouseEventService,this.environment=e.environment,this.userComponentFactory=e.userComponentFactory}addDragSource(e,t=!1){let i={eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),onDragCancel:this.onDragCancel.bind(this),includeTouch:t};this.dragSourceAndParamsList.push({params:i,dragSource:e}),this.dragService.addDragSource(i)}getDragAndDropImageComponent(){let{dragAndDropImageComp:e}=this;return!e||!e.comp?null:e.comp}removeDragSource(e){let t=this.dragSourceAndParamsList.find(i=>i.dragSource===e);t&&(this.dragService.removeDragSource(t.params),xi(this.dragSourceAndParamsList,t))}destroy(){this.dragSourceAndParamsList.forEach(e=>this.dragService.removeDragSource(e.params)),this.dragSourceAndParamsList.length=0,this.dropTargets.length=0,this.clearDragAndDropProperties(),super.destroy()}nudge(){this.dragging&&this.onDragging(this.eventLastTime,!0)}onDragStart(e,t){this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=this.dragSource.getDragItem(),this.dragSource.onDragStarted?.(),this.createDragAndDropImageComponent()}onDragStop(e){if(this.dragSource?.onDragStopped?.(),this.lastDropTarget?.onDragStop){let t=this.createDropTargetEvent(this.lastDropTarget,e,null,null,!1);this.lastDropTarget.onDragStop(t)}this.clearDragAndDropProperties()}onDragCancel(){this.dragSource?.onDragCancelled?.(),this.lastDropTarget?.onDragCancel&&this.lastDropTarget.onDragCancel(this.createDropTargetEvent(this.lastDropTarget,this.eventLastTime,null,null,!1)),this.clearDragAndDropProperties()}clearDragAndDropProperties(){this.eventLastTime=null,this.dragging=!1,this.lastDropTarget=void 0,this.dragItem=null,this.dragSource=null,this.removeDragAndDropImageComponent()}onDragging(e,t=!1){let i=this.getHorizontalDirection(e),n=this.getVerticalDirection(e);this.eventLastTime=e,this.positionDragAndDropImageComp(e);let o=this.dropTargets.filter(a=>this.isMouseOnDropTarget(e,a)),r=this.findCurrentDropTarget(e,o);if(r!==this.lastDropTarget){if(this.leaveLastTargetIfExists(e,i,n,t),this.lastDropTarget!==null&&r===null&&this.dragSource?.onGridExit?.(this.dragItem),this.lastDropTarget===null&&r!==null&&this.dragSource?.onGridEnter?.(this.dragItem),this.enterDragTargetIfExists(r,e,i,n,t),r&&this.dragAndDropImageComp){let{comp:a,promise:s}=this.dragAndDropImageComp;a?a.setIcon(r.getIconName?r.getIconName():null):s.then(l=>{l&&l.setIcon(r.getIconName?r.getIconName():null)})}this.lastDropTarget=r}else if(r&&r.onDragging){let a=this.createDropTargetEvent(r,e,i,n,t);r.onDragging(a)}}getAllContainersFromDropTarget(e){let t=e.getSecondaryContainers?e.getSecondaryContainers():null,i=[[e.getContainer()]];
538return t?i.concat(t):i}allContainersIntersect(e,t){for(let i of t){let{width:n,height:o,left:r,right:a,top:s,bottom:l}=i.getBoundingClientRect();if(n===0||o===0)return!1;let c=e.clientX>=r&&e.clientX<a,h=e.clientY>=s&&e.clientY<l;if(!c||!h)return!1}return!0}isMouseOnDropTarget(e,t){let i=this.getAllContainersFromDropTarget(t),n=!1;for(let a of i)if(this.allContainersIntersect(e,a)){n=!0;break}let{eElement:o,type:r}=this.dragSource;return t.targetContainsSource&&!t.getContainer().contains(o)?!1:n&&t.isInterestedIn(r,o)}findCurrentDropTarget(e,t){let i=t.length;if(i===0)return null;if(i===1)return t[0];let o=Vl(this.gos).elementsFromPoint(e.clientX,e.clientY);for(let r of o)for(let a of t)if(rR(this.getAllContainersFromDropTarget(a)).indexOf(r)!==-1)return a;return null}enterDragTargetIfExists(e,t,i,n,o){if(e&&e.onDragEnter){let r=this.createDropTargetEvent(e,t,i,n,o);e.onDragEnter(r)}}leaveLastTargetIfExists(e,t,i,n){if(!this.lastDropTarget)return;if(this.lastDropTarget.onDragLeave){let r=this.createDropTargetEvent(this.lastDropTarget,e,t,i,n);this.lastDropTarget.onDragLeave(r)}let o=this.getDragAndDropImageComponent();o&&o.setIcon(null)}addDropTarget(e){this.dropTargets.push(e)}removeDropTarget(e){this.dropTargets=this.dropTargets.filter(t=>t.getContainer()!==e.getContainer())}hasExternalDropZones(){return this.dropTargets.some(e=>e.external)}findExternalZone(e){return this.dropTargets.filter(i=>i.external).find(i=>i.getContainer()===e.getContainer())||null}isDropZoneWithinThisGrid(e){let i=this.ctrlsService.getGridBodyCtrl().getGui(),{dropZoneTarget:n}=e;return i.contains(n)}getHorizontalDirection(e){let t=this.eventLastTime&&this.eventLastTime.clientX,i=e.clientX;return t===i?null:t>i?0:1}getVerticalDirection(e){let t=this.eventLastTime&&this.eventLastTime.clientY,i=e.clientY;return t===i?null:t>i?0:1}createDropTargetEvent(e,t,i,n,o){let r=e.getContainer(),a=r.getBoundingClientRect(),{dragItem:s,dragSource:l}=this,c=t.clientX-a.left,h=t.clientY-a.top;return this.gos.addGridCommonParams({event:t,x:c,y:h,vDirection:n,hDirection:i,dragSource:l,fromNudge:o,dragItem:s,dropZoneTarget:r})}positionDragAndDropImageComp(e){let t=this.getDragAndDropImageComponent();if(!t)return;let i=t.getGui(),o=i.getBoundingClientRect().height,r=i5()-2,a=n5()-2;if(!i.offsetParent)return;let l=q_(i.offsetParent),{clientY:c,clientX:h}=e,m=c-l.top-o/2,f=h-l.left-10,b=dt(this.gos),_=b.defaultView||window,S=_.pageYOffset||b.documentElement.scrollTop,M=_.pageXOffset||b.documentElement.scrollLeft;r>0&&f+i.clientWidth>r+M&&(f=r+M-i.clientWidth),f<0&&(f=0),a>0&&m+i.clientHeight>a+S&&(m=a+S-i.clientHeight),m<0&&(m=0),i.style.left=`${f}px`,i.style.top=`${m}px`}removeDragAndDropImageComponent(){if(this.dragAndDropImageComp){let{comp:e}=this.dragAndDropImageComp;if(e){let t=e.getGui();this.dragAndDropImageParent&&this.dragAndDropImageParent.removeChild(t),this.destroyBean(e)}}this.dragAndDropImageComp=null}createDragAndDropImageComponent(){let{dragSource:e}=this;if(!e)return;let i=this.userComponentFactory.getDragAndDropImageCompDetails({dragSource:e}).newAgStackInstance();this.dragAndDropImageComp={promise:i},i.then(n=>{!n||!this.isAlive()||(this.processDragAndDropImageComponent(n),this.dragAndDropImageComp.comp=n)})}processDragAndDropImageComponent(e){let{dragSource:t,mouseEventService:i,environment:n}=this;if(!t)return;let o=e.getGui();o.style.setProperty("position","absolute"),o.style.setProperty("z-index","9999"),i.stampTopLevelGridCompWithGridInstance(o),n.applyThemeClasses(o),e.setIcon(null);let{dragItemName:r}=t;dm(r)&&(r=r()),e.setLabel(r||""),o.style.top="20px",o.style.left="20px";let a=dt(this.gos),s=null,l=null;try{s=a.fullscreenElement}catch{}finally{s||(s=Vl(this.gos));let c=s.querySelector("body");c?l=c:s instanceof ShadowRoot?l=s:s instanceof Document?l=s?.documentElement:l=s}this.dragAndDropImageParent=l,l?l.appendChild(o):$("Could not find document body, it is needed for drag and drop.")}},X5=class{constructor(e){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=e.scrollContainer,this.scrollHorizontally=e.scrollAxis.indexOf("x")!==-1,this.scrollVertically=e.scrollAxis.indexOf("y")!==-1,this.scrollByTick=e.scrollByTick!=null?e.scrollByTick:20,e.onScrollCallback&&(this.onScrollCallback=e.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=e.getVerticalPosition,this.setVerticalPosition=e.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=e.getHorizontalPosition,this.setHorizontalPosition=e.setHorizontalPosition),this.shouldSkipVerticalScroll=e.shouldSkipVerticalScroll||(()=>!1),this.shouldSkipHorizontalScroll=e.shouldSkipHorizontalScroll||(()=>!1)}check(e,t=!1){let i=t||this.shouldSkipVerticalScroll();if(i&&this.shouldSkipHorizontalScroll())return;let n=this.scrollContainer.getBoundingClientRect(),o=this.scrollByTick;this.tickLeft=e.clientX<n.left+o,this.tickRight=e.clientX>
538n.right-o,this.tickUp=e.clientY<n.top+o&&!i,this.tickDown=e.clientY>n.bottom-o&&!i,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}ensureTickingStarted(){this.tickingInterval===null&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)}doTick(){this.tickCount++;let e=this.tickCount>20?200:this.tickCount>10?80:40;if(this.scrollVertically){let t=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(t-e),this.tickDown&&this.setVerticalPosition(t+e)}if(this.scrollHorizontally){let t=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(t-e),this.tickRight&&this.setHorizontalPosition(t+e)}this.onScrollCallback&&this.onScrollCallback()}ensureCleared(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)}};var eF=class extends H{wireBeans(e){this.dragAndDropService=e.dragAndDropService,this.rowModel=e.rowModel,this.pageBoundsService=e.pageBoundsService,this.focusService=e.focusService,this.sortController=e.sortController,this.filterManager=e.filterManager,this.selectionService=e.selectionService,this.mouseEventService=e.mouseEventService,this.ctrlsService=e.ctrlsService,this.funcColsService=e.funcColsService,this.rangeService=e.rangeService}constructor(e){super(),this.eContainer=e}postConstruct(){at(this.gos)&&(this.clientSideRowModel=this.rowModel),this.ctrlsService.whenReady(this,e=>{let t=e.gridBodyCtrl;this.autoScrollService=new X5({scrollContainer:t.getBodyViewportElement(),scrollAxis:"y",getVerticalPosition:()=>t.getScrollFeature().getVScrollPosition().top,setVerticalPosition:i=>t.getScrollFeature().setVerticalScrollPosition(i),onScrollCallback:()=>{this.onDragging(this.lastDraggingEvent)}})})}getContainer(){return this.eContainer}isInterestedIn(e){return e===2}getIconName(){return this.gos.get("rowDragManaged")&&this.shouldPreventRowMove()?"notAllowed":"move"}shouldPreventRowMove(){return!!(this.funcColsService.getRowGroupColumns().length||this.filterManager?.isAnyFilterPresent()||this.sortController.isSortActive())}getRowNodes(e){if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];let t=e.dragItem.rowNode;if(this.gos.get("rowDragMultiRow")){let n=[...this.selectionService.getSelectedNodes()].sort((o,r)=>o.rowIndex==null||r.rowIndex==null?0:this.getRowIndexNumber(o)-this.getRowIndexNumber(r));if(n.indexOf(t)!==-1)return n}return[t]}onDragEnter(e){e.dragItem.rowNodes=this.getRowNodes(e),this.dispatchGridEvent("rowDragEnter",e),this.getRowNodes(e).forEach(t=>{t.setDragging(!0)}),this.onEnterOrDragging(e)}onDragging(e){this.onEnterOrDragging(e)}isFromThisGrid(e){let{dragSourceDomDataKey:t}=e.dragSource;return t===this.gos.getDomDataKey()}onEnterOrDragging(e){this.dispatchGridEvent("rowDragMove",e),this.lastDraggingEvent=e;let t=this.mouseEventService.getNormalisedPosition(e).y;this.gos.get("rowDragManaged")&&this.doManagedDrag(e,t),this.autoScrollService.check(e.event)}doManagedDrag(e,t){let i=this.isFromThisGrid(e),n=this.gos.get("rowDragManaged"),o=e.dragItem.rowNodes;n&&this.shouldPreventRowMove()||(this.gos.get("suppressMoveWhenRowDragging")||!i?this.dragAndDropService.isDropZoneWithinThisGrid(e)&&this.clientSideRowModel.highlightRowAtPixel(o[0],t):this.moveRows(o,t))}getRowIndexNumber(e){let t=e.getRowIndexString();return parseInt(Ae(t.split("-")),10)}moveRowAndClearHighlight(e){let t=this.clientSideRowModel.getLastHighlightedRowNode(),i=t&&t.highlighted===1,n=this.mouseEventService.getNormalisedPosition(e).y,o=e.dragItem.rowNodes,r=i?1:0;if(this.isFromThisGrid(e))o.forEach(a=>{a.rowTop<n&&(r-=1)}),this.moveRows(o,n,r);else{let a=ds(this.gos),s=this.clientSideRowModel.getRowIndexAtPixel(n)+1;this.clientSideRowModel.getHighlightPosition(n)===0&&s--,this.clientSideRowModel.updateRowData({add:o.filter(l=>!this.clientSideRowModel.getRowNode(a?.({data:l.data,level:0,rowPinned:l.rowPinned})??l.data.id)).map(l=>l.data),addIndex:s})}this.clearRowHighlight()}clearRowHighlight(){this.clientSideRowModel.highlightRowAtPixel(null)}moveRows(e,t,i=0){this.clientSideRowModel.ensureRowsAtPixel(e,t,i)&&(this.focusService.clearFocusedCell(),this.rangeService?.removeAllCellRanges())}addRowDropZone(e){if(!e.getContainer()){$("addRowDropZone - A container target needs to be provided");return}if(this.dragAndDropService.findExternalZone(e)){$("addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.");return}let t={getContainer:e.getContainer};e.fromGrid?t=e:(e.onDragEnter&&(t.onDragEnter=n=>{e.onDragEnter(this.draggingToRowDragEvent("rowDragEnter",n))}),e.onDragLeave&&(t.onDragLeave=n=>{e.onDragLeave(this.draggingToRowDragEvent("rowDragLeave",n))}),e.onDragging&&(t.onDragging=n=>{e.onDragging(this.draggingToRowDragEvent("rowDragMove",n))}),e.onDragStop&&(t.onDragStop=n=>{e.onDragStop(this.draggingToRowDragEvent("rowDragEnd",n))}
538),e.onDragCancel&&(t.onDragCancel=n=>{e.onDragCancel(this.draggingToRowDragEvent("rowDragCancel",n))}));let i=B({isInterestedIn:n=>n===2,getIconName:()=>"move",external:!0},t);this.dragAndDropService.addDropTarget(i),this.addDestroyFunc(()=>this.dragAndDropService.removeDropTarget(i))}getRowDropZone(e){let t=this.getContainer.bind(this),i=this.onDragEnter.bind(this),n=this.onDragLeave.bind(this),o=this.onDragging.bind(this),r=this.onDragStop.bind(this),a=this.onDragCancel.bind(this),s;return e?s={getContainer:t,onDragEnter:e.onDragEnter?l=>{i(l),e.onDragEnter(this.draggingToRowDragEvent("rowDragEnter",l))}:i,onDragLeave:e.onDragLeave?l=>{n(l),e.onDragLeave(this.draggingToRowDragEvent("rowDragLeave",l))}:n,onDragging:e.onDragging?l=>{o(l),e.onDragging(this.draggingToRowDragEvent("rowDragMove",l))}:o,onDragStop:e.onDragStop?l=>{r(l),e.onDragStop(this.draggingToRowDragEvent("rowDragEnd",l))}:r,onDragCancel:e.onDragCancel?l=>{a(l),e.onDragCancel(this.draggingToRowDragEvent("rowDragCancel",l))}:a,fromGrid:!0}:s={getContainer:t,onDragEnter:i,onDragLeave:n,onDragging:o,onDragStop:r,onDragCancel:a,fromGrid:!0},s}draggingToRowDragEvent(e,t){let i=this.mouseEventService.getNormalisedPosition(t).y,n=i>this.pageBoundsService.getCurrentPageHeight(),o=-1,r;n||(o=this.rowModel.getRowIndexAtPixel(i),r=this.rowModel.getRow(o));let a;switch(t.vDirection){case 1:a="down";break;case 0:a="up";break;default:a=null;break}return this.gos.addGridCommonParams({type:e,event:t.event,node:t.dragItem.rowNode,nodes:t.dragItem.rowNodes,overIndex:o,overNode:r,y:i,vDirection:a})}dispatchGridEvent(e,t){let i=this.draggingToRowDragEvent(e,t);this.eventService.dispatchEvent(i)}onDragLeave(e){this.dispatchGridEvent("rowDragLeave",e),this.stopDragging(e),this.gos.get("rowDragManaged")&&this.clearRowHighlight()}onDragStop(e){this.dispatchGridEvent("rowDragEnd",e),this.stopDragging(e),this.gos.get("rowDragManaged")&&(this.gos.get("suppressMoveWhenRowDragging")||!this.isFromThisGrid(e))&&this.dragAndDropService.isDropZoneWithinThisGrid(e)&&this.moveRowAndClearHighlight(e)}onDragCancel(e){this.dispatchGridEvent("rowDragCancel",e),this.stopDragging(e),this.gos.get("rowDragManaged")&&(this.gos.get("suppressMoveWhenRowDragging")||!this.isFromThisGrid(e))&&this.dragAndDropService.isDropZoneWithinThisGrid(e)&&this.clearRowHighlight()}stopDragging(e){this.autoScrollService.ensureCleared(),this.getRowNodes(e).forEach(t=>{t.setDragging(!1)})}},tF=class extends H{constructor(){super(...arguments),this.beanName="dragService",this.dragEndFunctions=[],this.dragSources=[]}wireBeans(e){this.mouseEventService=e.mouseEventService}destroy(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0,super.destroy()}removeListener(e){let t=e.dragSource.eElement,i=e.mouseDownListener;if(t.removeEventListener("mousedown",i),e.touchEnabled){let n=e.touchStartListener;t.removeEventListener("touchstart",n,{passive:!0})}}removeDragSource(e){let t=this.dragSources.find(i=>i.dragSource===e);t&&(this.removeListener(t),xi(this.dragSources,t))}isDragging(){return this.dragging}addDragSource(e){let t=this.onMouseDown.bind(this,e),{eElement:i,includeTouch:n,stopPropagationForTouch:o}=e;i.addEventListener("mousedown",t);let r=null,a=this.gos.get("suppressTouch");n&&!a&&(r=s=>{Cm(s.target)||(o&&s.stopPropagation(),this.onTouchStart(e,s))},i.addEventListener("touchstart",r,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:t,touchStartListener:r,touchEnabled:!!n})}getStartTarget(){return this.startTarget}onTouchStart(e,t){this.currentDragParams=e,this.dragging=!1;let i=t.touches[0];this.touchLastTime=i,this.touchStart=i;let n=l=>this.onTouchMove(l,e.eElement),o=l=>this.onTouchUp(l,e.eElement),r=l=>{l.cancelable&&l.preventDefault()},a=t.target,s=[{target:Vl(this.gos),type:"touchmove",listener:r,options:{passive:!1}},{target:a,type:"touchmove",listener:n,options:{passive:!0}},{target:a,type:"touchend",listener:o,options:{passive:!0}},{target:a,type:"touchcancel",listener:o,options:{passive:!0}}];this.addTemporaryEvents(s),e.dragStartPixels===0&&this.onCommonMove(i,this.touchStart,e.eElement)}onMouseDown(e,t){let i=t;if(e.skipMouseEvent&&e.skipMouseEvent(t)||i._alreadyProcessedByDragService||(i._alreadyProcessedByDragService=!0,t.button!==0))return;this.shouldPreventMouseEvent(t)&&t.preventDefault(),this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=t,this.startTarget=t.target;let n=c=>this.onMouseMove(c,e.eElement),o=c=>this.onMouseUp(c,e.eElement),r=c=>c.preventDefault(),a=c=>{c.key===j.ESCAPE&&this.cancelDrag(e.eElement)},s=Vl(this.gos),l=[{target:s,type:"mousemove",listener:n},{target:s,type:"mouseup",listener:o},{target:s,type:"contextmenu",listener:r},{target:s,type:"keydown",listener:a}];this.addTemporaryEvents(l),e.dragStartPixels===0&&this.onMouseMove(t,e.eElement)}addTemporaryEvents(e){e.forEach(t=>{let{target:i,type:n,listener:o,options:r}=t;i.addEventListener(n,o,r)}),this.dragEndFunctions.push(()=>{e.forEach(t=>{let{target:i,type:n,listener:o,options:r}=t;i.removeEventListener(n,o,r)})})}isEventNearStartEvent(e,t){let{dragStartPixels:i}=this.currentDragParams,n=K(i)?i:4;return ry(e,t,n)}getFirstActiveTouch(e){for(let t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null}onCommonMove(e,t,i){if(!this.dragging){if(this.isEventNearStartEvent(e,t))return;if(this.dragging=!0,this.eventService.dispatchEvent({type:"dragStarted",target:i}),this.currentDragParams.onDragStart(t),!this.currentDragParams){this.dragging=!1;return}this.currentDragParams.onDragging(t)}this.currentDragParams?.onDragging(e)}onTouchMove(e,t){let i=this.getFirstActiveTouch(e.touches);i&&this.onCommonMove(i,this.touchStart,t)}onMouseMove(e,t){So()&&dt(this.gos).getSelection()?.removeAllRanges(),this.shouldPreventMouseEvent(e)&&e.preventDefault(),this.onCommonMove(e,this.mouseStartEvent,t)}shouldPreventMouseEvent(e){let t=this.gos.get("enableCellTextSelection"),i=e.type==="mousemove";return t&&i&&e.cancelable&&this.mouseEventService.isEventFromThisGrid(e)&&!this.isOverFormFieldElement(e)}isOverFormFieldElement(e){return!!e.target?.tagName.toLocaleLowerCase()?.match("^a$|textarea|input|select|button")}onTouchUp(e,t){let i=this.getFirstActiveTouch(e.changedTouches);i||(i=this.touchLastTime),this.onUpCommon(i,t)}onMouseUp(e,t){this.onUpCommon(e,t)}
538onUpCommon(e,t){this.dragging&&(this.dragging=!1,this.currentDragParams.onDragStop(e),this.eventService.dispatchEvent({type:"dragStopped",target:t})),this.resetDragProperties()}cancelDrag(e){this.eventService.dispatchEvent({type:"dragCancelled",target:e}),this.currentDragParams?.onDragCancel?.(),this.resetDragProperties()}resetDragProperties(){this.mouseStartEvent=null,this.startTarget=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach(e=>e()),this.dragEndFunctions.length=0}},im=class extends Le{constructor(e,t,i,n,o,r){super(),this.cellValueFn=e,this.rowNode=t,this.column=i,this.customGui=n,this.dragStartPixels=o,this.suppressVisibilityChange=r,this.dragSource=null}wireBeans(e){this.beans=e}isCustomGui(){return this.customGui!=null}postConstruct(){if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate('<div class="ag-drag-handle ag-row-drag" aria-hidden="true"></div>'),this.getGui().appendChild(Wi("rowDrag",this.gos,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){let e=this.gos.get("rowDragManaged")?new nF(this,this.beans,this.rowNode,this.column):new iF(this,this.beans,this.rowNode,this.column);this.createManagedBean(e,this.beans.context)}}setDragElement(e,t){this.setTemplateFromElement(e,void 0,void 0,!0),this.addDragSource(t)}getSelectedNodes(){if(!this.gos.get("rowDragMultiRow"))return[this.rowNode];let t=this.beans.selectionService.getSelectedNodes();return t.indexOf(this.rowNode)!==-1?t:[this.rowNode]}checkCompatibility(){let e=this.gos.get("rowDragManaged");this.gos.get("treeData")&&e&&$("If using row drag with tree data, you cannot have rowDragManaged=true")}getDragItem(){return{rowNode:this.rowNode,rowNodes:this.getSelectedNodes(),columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()}}getRowDragText(e){if(e){let t=e.getColDef();if(t.rowDragText)return t.rowDragText}return this.gos.get("rowDragText")}addDragSource(e=4){this.dragSource&&this.removeDragSource();let t=this.getGui();this.gos.get("enableCellTextSelection")&&(this.removeMouseDownListener(),this.mouseDownListener=this.addManagedElementListeners(t,{mousedown:n=>{n?.preventDefault()}})[0]);let i=this.localeService.getLocaleTextFunc();this.dragSource={type:2,eElement:t,dragItemName:()=>{let n=this.getDragItem(),o=n.rowNodes?.length||1,r=this.getRowDragText(this.column);return r?r(n,o):o===1?this.cellValueFn():`${o} ${i("rowDragRows","rows")}`},getDragItem:()=>this.getDragItem(),dragStartPixels:e,dragSourceDomDataKey:this.gos.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)}destroy(){this.removeDragSource(),this.removeMouseDownListener(),super.destroy()}removeDragSource(){this.dragSource&&(this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null)}removeMouseDownListener(){this.mouseDownListener&&(this.mouseDownListener(),this.mouseDownListener=void 0)}},py=class extends H{constructor(e,t,i){super(),this.parent=e,this.rowNode=t,this.column=i}setDisplayedOrVisible(e){let t={skipAriaHidden:!0};if(e)this.parent.setDisplayed(!1,t);else{let i=!0,n=!1;this.column&&(i=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),n=dm(this.column.getColDef().rowDrag)),n?(this.parent.setDisplayed(!0,t),this.parent.setVisible(i,t)):(this.parent.setDisplayed(i,t),this.parent.setVisible(!0,t))}}},iF=class extends py{constructor(e,t,i,n){super(e,i,n),this.beans=t}postConstruct(){this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this));let e=this.workOutVisibility.bind(this);this.addManagedListeners(this.rowNode,{dataChanged:e,cellChanged:e}),this.addManagedListeners(this.beans.eventService,{newColumnsLoaded:e}),this.workOutVisibility()}onSuppressRowDrag(){this.workOutVisibility()}workOutVisibility(){let e=this.gos.get("suppressRowDrag");this.setDisplayedOrVisible(e)}},nF=class extends py{constructor(e,t,i,n){super(e,i,n),this.beans=t}postConstruct(){let e=this.workOutVisibility.bind(this);this.addManagedListeners(this.beans.eventService,{sortChanged:e,filterChanged:e,columnRowGroupChanged:e,newColumnsLoaded:e}),this.addManagedListeners(this.rowNode,{dataChanged:e,cellChanged:e}),this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()}onSuppressRowDrag(){this.workOutVisibility()}workOutVisibility(){let t=this.beans.ctrlsService.getGridBodyCtrl().getRowDragFeature
538(),i=t&&t.shouldPreventRowMove(),n=this.gos.get("suppressRowDrag"),o=this.beans.dragAndDropService.hasExternalDropZones(),r=i&&!o||n;this.setDisplayedOrVisible(r)}},oF=new Set(["localEventService","__objectId","sticky","__autoHeights","checkAutoHeightsDebounced"]),rF=(()=>{let e=class er{constructor(i){this.rowIndex=null,this.key=null,this.sourceRowIndex=-1,this.childrenMapped={},this.treeNode=null,this.treeNodeFlags=0,this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=er.OBJECT_ID_SEQUENCE++,this.__autoHeights={},this.alreadyRendered=!1,this.highlighted=null,this.hovered=!1,this.selected=!1,this.beans=i}setData(i){this.setDataCommon(i,!1)}updateData(i){this.setDataCommon(i,!0)}setDataCommon(i,n){let o=this.data;this.data=i,this.beans.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable(),this.resetQuickFilterAggregateText();let r=this.createDataChangedEvent(i,o,n);this.localEventService?.dispatchEvent(r)}updateDataOnDetailNode(){this.detailNode&&(this.detailNode.data=this.data)}createDataChangedEvent(i,n,o){return{type:"dataChanged",node:this,oldData:n,newData:i,update:o}}getRowIndexString(){return this.rowIndex==null?(Be("Could not find rowIndex, this means tasks are being executed on a rowNode that has been removed from the grid."),null):this.rowPinned==="top"?er.ID_PREFIX_TOP_PINNED+this.rowIndex:this.rowPinned==="bottom"?er.ID_PREFIX_BOTTOM_PINNED+this.rowIndex:this.rowIndex.toString()}createDaemonNode(){let i=new er(this.beans);return i.id=this.id,i.data=this.data,i.__daemon=!0,i.selected=this.selected,i.level=this.level,i}setDataAndId(i,n){let o=K(this.id)?this.createDaemonNode():null,r=this.data;this.data=i,this.updateDataOnDetailNode(),this.setId(n),this.checkRowSelectable(),this.beans.selectionService.syncInRowNode(this,o);let a=this.createDataChangedEvent(i,r,!1);this.localEventService?.dispatchEvent(a)}checkRowSelectable(){let i=um(this.beans.gos);this.setRowSelectable(i?i(this):!0)}setRowSelectable(i,n){if(this.selectable!==i){if(this.selectable=i,this.dispatchRowEvent("selectableChanged"),n)return;if($r(this.beans.gos)){let r=this.calculateSelectedFromChildren();this.setSelectedParams({newValue:r??!1,source:"selectableChanged"});return}this.isSelected()&&!this.selectable&&this.setSelectedParams({newValue:!1,source:"selectableChanged"})}}setId(i){let n=ds(this.beans.gos);if(n)if(this.data){let o=this.parent?.getRoute()??[];this.id=n({data:this.data,parentKeys:o.length>0?o:void 0,level:this.level,rowPinned:this.rowPinned}),this.id.startsWith(er.ID_PREFIX_ROW_GROUP)&&Be(`Row IDs cannot start with ${er.ID_PREFIX_ROW_GROUP}, this is a reserved prefix for AG Grid's row grouping feature.`)}else this.id=void 0;else this.id=i}setRowTop(i){this.oldRowTop=this.rowTop,this.rowTop!==i&&(this.rowTop=i,this.dispatchRowEvent("topChanged"),this.setDisplayed(i!==null))}clearRowTopAndRowIndex(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)}setHovered(i){this.hovered=i}isHovered(){return this.hovered}setMaster(i){this.master!==i&&(this.master&&!i&&(this.expanded=!1),this.master=i,this.dispatchRowEvent("masterChanged"))}setGroup(i){this.group!==i&&(this.group&&!i&&(this.expanded=!1),this.group=i,this.updateHasChildren(),this.checkRowSelectable(),this.dispatchRowEvent("groupChanged"))}setRowHeight(i,n=!1){this.rowHeight=i,this.rowHeightEstimated=n,this.dispatchRowEvent("heightChanged")}setRowAutoHeight(i,n){this.__autoHeights||(this.__autoHeights={}),this.__autoHeights[n.getId()]=i,i!=null&&(this.checkAutoHeightsDebounced==null&&(this.checkAutoHeightsDebounced=wi(this.checkAutoHeights.bind(this),1)),this.checkAutoHeightsDebounced())}checkAutoHeights(){let i=!1,n=!0,o=0,r=this.__autoHeights;if(r==null||(this.beans.visibleColsService.getAllAutoHeightCols().forEach(l=>{let c=r[l.getId()];if(c==null)if(this.beans.columnModel.isColSpanActive()){let h=[];switch(l.getPinned()){case"left":h=this.beans.visibleColsService.getLeftColsForRow(this);break;case"right":h=this.beans.visibleColsService.getRightColsForRow(this);break;case null:h=this.beans.columnViewportService.getColsWithinViewport(this);break}if(h.includes(l)){i=!0;return}c=-1}else{i=!0;return}else n=!1;c>o&&(o=c)}),i)||((n||o<10)&&(o=nr(this.beans.gos,this).height),o==this.rowHeight))return;this.setRowHeight(o),this.beans.rowModel.onRowHeightChangedDebounced?.()}setExpanded(i,n,o){if(this.expanded===i)return;this.expanded=i,this.dispatchRowEvent("expandedChanged");let r=ye(B({},this.createGlobalRowEvent("rowGroupOpened")),{expanded:i,event:n||null});this.beans.rowNodeEventThrottle.dispatchExpanded(r,o),this.beans.rowRenderer.refreshCells({rowNodes:[this]})}createGlobalRowEvent(i){return this.beans.gos.addGridCommonParams({type:i,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned})}
538setDataValue(i,n,o){let a=typeof i!="string"?i:this.beans.columnModel.getCol(i)??this.beans.columnModel.getColDefCol(i),s=this.beans.valueService.getValueForDisplay(a,this);if(this.beans.gos.get("readOnlyEdit"))return this.beans.eventService.dispatchEvent({type:"cellEditRequest",event:null,rowIndex:this.rowIndex,rowPinned:this.rowPinned,column:a,colDef:a.getColDef(),data:this.data,node:this,oldValue:s,newValue:n,value:n,source:o}),!1;let l=this.beans.valueService.setValue(this,a,n,o);return this.dispatchCellChangedEvent(a,n,s),this.checkRowSelectable(),l}setGroupValue(i,n){let o=this.beans.columnModel.getCol(i);Fe(this.groupData)&&(this.groupData={});let r=o.getColId(),a=this.groupData[r];a!==n&&(this.groupData[r]=n,this.dispatchCellChangedEvent(o,n,a))}setAggData(i){let n=this.aggData;if(this.aggData=i,this.localEventService){let o=r=>{let a=this.aggData?this.aggData[r]:void 0,s=n?n[r]:void 0;if(a===s)return;let l=this.beans.columnModel.getCol(r);l&&this.dispatchCellChangedEvent(l,a,s)};for(let r in n)o(r);for(let r in i)(!n||!(r in n))&&o(r)}}updateHasChildren(){let i=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;if(ko(this.beans.gos)){let o=this.beans.gos.get("treeData"),r=this.beans.gos.get("isServerSideGroup");i=!this.stub&&!this.footer&&(o?!!r&&r(this.data):!!this.group)}i!==this.__hasChildren&&(this.__hasChildren=!!i,this.dispatchRowEvent("hasChildrenChanged"))}hasChildren(){return this.__hasChildren==null&&this.updateHasChildren(),this.__hasChildren}dispatchCellChangedEvent(i,n,o){let r={type:"cellChanged",node:this,column:i,newValue:n,oldValue:o};this.localEventService?.dispatchEvent(r)}resetQuickFilterAggregateText(){this.quickFilterAggregateText=null}isExpandable(){return this.footer?!1:this.beans.columnModel.isPivotMode()?this.hasChildren()&&!this.leafGroup:this.hasChildren()||!!this.master}isSelected(){return this.footer?this.sibling.isSelected():this.selected}depthFirstSearch(i){this.childrenAfterGroup&&this.childrenAfterGroup.forEach(n=>n.depthFirstSearch(i)),i(this)}calculateSelectedFromChildren(){let i=!1,n=!1;if(!this.childrenAfterGroup?.length)return this.selectable?this.selected:null;for(let o=0;o<this.childrenAfterGroup.length;o++){let r=this.childrenAfterGroup[o],a=r.isSelected();if(!r.selectable){let s=r.calculateSelectedFromChildren();if(s===null)continue;a=s}switch(a){case!0:i=!0;break;case!1:n=!0;break;default:return}}if(!(i&&n))return i?!0:n?!1:this.selectable?this.selected:null}setSelectedInitialValue(i){this.selected=i}dispatchRowEvent(i){this.localEventService?.dispatchEvent({type:i,node:this})}selectThisNode(i,n,o="api"){let r=!this.selectable&&i,a=this.selected===i;if(r||a)return!1;this.selected=i,this.dispatchRowEvent("rowSelected");let s=this.sibling;return s&&s.footer&&s.localEventService&&s.dispatchRowEvent("rowSelected"),this.beans.eventService.dispatchEvent(ye(B({},this.createGlobalRowEvent("rowSelected")),{event:n||null,source:o})),!0}setSelected(i,n=!1,o="api"){if(typeof o=="boolean"){$("since version v30, rowNode.setSelected() property `suppressFinishActions` has been removed, please use `gridApi.setNodesSelected()` for bulk actions, and the event `source` property for ignoring events instead.");return}this.setSelectedParams({newValue:i,clearSelection:n,rangeSelect:!1,source:o})}setSelectedParams(i){return this.rowPinned?($("cannot select pinned rows"),0):this.id===void 0?($("cannot select node until id for node is known"),0):this.beans.selectionService.setNodesSelected(ye(B({},i),{nodes:[this.footer?this.sibling:this]}))}isRowPinned(){return!!this.rowPinned}addEventListener(i,n){this.localEventService||(this.localEventService=new cs),this.beans.frameworkOverrides.shouldWrapOutgoing&&!this.frameworkEventListenerService&&(this.localEventService.setFrameworkOverrides(this.beans.frameworkOverrides),this.frameworkEventListenerService=new mm(this.beans.frameworkOverrides));let o=this.frameworkEventListenerService?.wrap(i,n)??n;this.localEventService.addEventListener(i,o)}removeEventListener(i,n){if(!this.localEventService)return;let o=this.frameworkEventListenerService?.unwrap(i,n)??n;this.localEventService.removeEventListener(i,o),this.localEventService.n
vendor: 11,499 bytes, lines 538-547
538oRegisteredListenersExist()&&(this.localEventService=null)}onMouseEnter(){this.dispatchRowEvent("mouseEnter")}onMouseLeave(){this.dispatchRowEvent("mouseLeave")}isFullWidthCell(){if($("since version v32.2.0, rowNode.isFullWidthCell() has been deprecated. Instead check `rowNode.detail` followed by the user provided `isFullWidthRow` grid option."),this.detail)return!0;let i=this.beans.gos.getCallback("isFullWidthRow");return i?i({rowNode:this}):!1}getRoute(){if(this.level===-1)return[];if(this.key==null)return;let i=[],n=this;for(;n&&n.key!=null;)i.push(n.key),n=n.parent;return i.reverse()}createFooter(){if(this.sibling)return;let i=new er(this.beans);Object.keys(this).forEach(n=>{oF.has(n)||(i[n]=this[n])}),i.footer=!0,i.setRowTop(null),i.setRowIndex(null),i.oldRowTop=null,i.id="rowGroupFooter_"+this.id,i.sibling=this,this.sibling=i}destroyFooter(){this.sibling&&(this.sibling.setRowTop(null),this.sibling.setRowIndex(null),this.sibling=void 0)}setFirstChild(i){this.firstChild!==i&&(this.firstChild=i,this.dispatchRowEvent("firstChildChanged"))}setLastChild(i){this.lastChild!==i&&(this.lastChild=i,this.dispatchRowEvent("lastChildChanged"))}setChildIndex(i){this.childIndex!==i&&(this.childIndex=i,this.dispatchRowEvent("childIndexChanged"))}setDisplayed(i){this.displayed!==i&&(this.displayed=i,this.dispatchRowEvent("displayedChanged"))}setDragging(i){this.dragging!==i&&(this.dragging=i,this.dispatchRowEvent("draggingChanged"))}setHighlighted(i){this.highlighted!==i&&(this.highlighted=i,this.dispatchRowEvent("rowHighlightChanged"))}setAllChildrenCount(i){this.allChildrenCount!==i&&(this.allChildrenCount=i,this.dispatchRowEvent("allChildrenCountChanged"))}setRowIndex(i){this.rowIndex!==i&&(this.rowIndex=i,this.dispatchRowEvent("rowIndexChanged"))}setUiLevel(i){this.uiLevel!==i&&(this.uiLevel=i,this.dispatchRowEvent("uiLevelChanged"))}};return e.ID_PREFIX_ROW_GROUP="row-group-",e.ID_PREFIX_TOP_PINNED="t-",e.ID_PREFIX_BOTTOM_PINNED="b-",e.OBJECT_ID_SEQUENCE=0,e})(),wo=rF,aF=class extends H{constructor(){super(...arguments),this.beanName="filterManager",this.advancedFilterModelUpdateQueue=[]}wireBeans(e){this.columnModel=e.columnModel,this.dataTypeService=e.dataTypeService,this.quickFilterService=e.quickFilterService,this.advancedFilterService=e.advancedFilterService,this.columnFilterService=e.columnFilterService}postConstruct(){let e=this.refreshFiltersForAggregations.bind(this),t=this.updateAdvancedFilterColumns.bind(this);this.addManagedEventListeners({columnValueChanged:e,columnPivotChanged:e,columnPivotModeChanged:e,newColumnsLoaded:t,columnVisible:t,advancedFilterEnabledChanged:({enabled:i})=>this.onAdvancedFilterEnabledChanged(i),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)}),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.addManagedPropertyListeners(["isExternalFilterPresent","doesExternalFilterPass"],()=>{this.onFilterChanged({source:"api"})}),this.updateAggFiltering(),this.addManagedPropertyListener("groupAggFiltering",()=>{this.updateAggFiltering(),this.onFilterChanged()}),this.addManagedPropertyListener("advancedFilterModel",i=>this.setAdvancedFilterModel(i.currentValue)),this.quickFilterService&&this.addManagedListeners(this.quickFilterService,{quickFilterChanged:()=>this.onFilterChanged({source:"quickFilter"})})}isExternalFilterPresentCallback(){let e=this.gos.getCallback("isExternalFilterPresent");return typeof e=="function"?e({}):!1}doesExternalFilterPass(e){let t=this.gos.get("doesExternalFilterPass");return typeof t=="function"?t(e):!1}setFilterModel(e,t="api"){if(this.isAdvancedFilterEnabled()){this.warnAdvancedFilters();return}this.columnFilterService?.setFilterModel(e,t)}getFilterModel(){return this.columnFilterService?.getFilterModel()??{}}isColumnFilterPresent(){return!!this.columnFilterService?.isColumnFilterPresent()}isAggregateFilterPresent(){return!!this.columnFilterService?.isAggregateFilterPresent()}isExternalFilterPresent(){return this.externalFilterPresent}isChildFilterPresent(){return this.isColumnFilterPresent()||this.isQuickFilterPresent()||this.isExternalFilterPresent()||this.isAdvancedFilterPresent()}isAdvancedFilterPresent(){return this.isAdvancedFilterEnabled()&&this.advancedFilterService.isFilterPresent()}onAdvancedFilterEnabledChanged(e){e?this.columnFilterService?.disableColumnFilters()&&this.onFilterChanged({source:"advancedFilter"}):this.advancedFilterService?.isFilterPresent()&&(this.advancedFilterService.setModel(null),this.onFilterChanged({source:"advancedFilter"}))}isAdvancedFilterEnabled(){return!!this.advancedFilterService?.isEnabled()}isAdvancedFilterHeaderActive(){return this.isAdvancedFilterEnabled()&&this.advancedFilterService.isHeaderActive()}isAnyFilterPresent(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.isExternalFilterPresent()||this.isAdvancedFilterPresent()}resetQuickFilterCache(){this.quickFilterService?.resetQuickFilterCache()}refreshFiltersForAggregations(){$g(this.gos)&&this.onFilterChanged()}onFilterChanged(e={}){let{source:t,additionalEventAttributes:i,columns:n=[]}=e;this.externalFilterPresent=this.isExternalFilterPresentCallback(),(this.columnFilterService?this.columnFilterService.updateBeforeFilterChanged(e):ji.resolve()).then(()=>{let o={source:t,type:"filterChanged",columns:n};i&&yi(o,i),this.eventService.dispatchEvent(o),this.columnFilterService?.updateAfterFilterChanged()})}isSuppressFlashingCellsBecauseFiltering(){return!!this.columnFilterService?.isSuppressFlashingCellsBecauseFiltering()}isQuickFilterPresent(){return!!this.quickFilterService?.isQuickFilterPresent()}updateAggFiltering(){this.aggFiltering=!!$g(this.gos)}isAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&this.shouldApplyQuickFilterAfterAgg()}isNonAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&!this.shouldApplyQuickFilterAfterAgg()}shouldApplyQuickFilterAfterAgg(){return(this.aggFiltering||this.columnModel.isPivotMode())&&!this.gos.get("applyQuickFilterBeforePivotOrAgg")}doesRowPassOtherFilters(e,t){return this.doesRowPassFilter({rowNode:t,filterInstanceToSkip:e})}doesRowPassAggregateFilters(e){return!(this.isAggregateQuickFilterPresent()&&!this.quickFilterService.doesRowPassQuickFilter(e.rowNode)||this.isAggregateFilterPresent()&&!this.columnFilterService.doAggregateFiltersPass(e.rowNode,e.filterInstanceToSkip))}doesRowPassFilter(e){return!(this.isNonAggregateQuickFilterPresent()&&!this.quickFilterService.doesRowPassQuickFilter(e.rowNode)||this.isExternalFilterPresent()&&!this.doesExternalFilterPass(e.rowNode)||this.isColumnFilterPresent()&&!this.columnFilterService.doColumnFiltersPass(e.rowNode,e.filterInstanceToSkip)||this.isAdvancedFilterPresent()&&!this.advancedFilterService.doesFilterPass(e.rowNode))}isFilterActive(e){return!!this.columnFilterService?.isFilterActive(e)}getOrCreateFilterWrapper(e){return this.columnFilterService?.getOrCreateFilterWrapper(e)??null}getDefaultFloatingFilter(e){return this.columnFilterService.getDefaultFloatingFilter(e)}createFilterParams(e,t){return this.columnFilterService.createFilterParams(e,t)}isFilterAllowed(e){return this.isAdvancedFilterEnabled()?!1:!!this.columnFilterService?.isFilterAllowed(e)}getFloatingFilterCompDetails(e,t){return this.columnFilterService?.getFloatingFilterCompDetails(e,t)}getCurrentFloatingFilterParentModel(e){return this.columnFilterService?.getCurrentFloatingFilterParentModel(e)}destroyFilter(e,t="api"){this.columnFilterService?.destroyFilter(e,t)}areFilterCompsDifferent(e,t){return!!this.columnFilterService?.areFilterCompsDifferent(e,t)}getAdvancedFilterModel(){return this.isAdvancedFilterEnabled()?this.advancedFilterService.getModel():null}setAdvancedFilterModel(e){if(this.isAdvancedFilterEnabled()){if(this.dataTypeService?.isPendingInference()){this.advancedFilterModelUpdateQueue.push(e);return}this.advancedFilterService.setModel(e??null),this.onFilterChanged({source:"advancedFilter"})}}toggleAdvancedFilterBuilder(e,t){this.isAdvancedFilterEnabled()&&this.advancedFilterService.getCtrl().toggleFilterBuilder({source:t,force:e})}updateAdvancedFilterColumns(){this.isAdvancedFilterEnabled()&&this.advancedFilterService.updateValidity()&&this.onFilterChanged({source:"advancedFilter"})}hasFloatingFilters(){return this.isAdvancedFilterEnabled()?!1:!!this.columnFilterService?.hasFloatingFilters()}getFilterInstance(e,t){if(this.isAdvancedFilterEnabled()){this.warnAdvancedFilters();return}return this.columnFilterService?.getFilterInstance(e,t)}getColumnFilterInstance(e){return this.isAdvancedFilterEnabled()?(this.warnAdvancedFilters(),Promise.resolve(void 0)):this.columnFilterService?.getColumnFilterInstance(e)??Promise.resolve(void 0)}warnAdvancedFilters(){$("Column Filter API methods have been disabled as Advanced Filters are enabled.")}setupAdvancedFilterHeaderComp(e){this.advancedFilterService?.getCtrl().setupHeaderComp(e)}getHeaderRowCount(){return this.isAdvancedFilterHeaderActive()?1:0}getHeaderHeight(){return this.isAdvancedFilterHeaderActive()?this.advancedFilterService.getCtrl().getHeaderHeight():0}processFilterModelUpdateQueue(){this.advancedFilterModelUpdateQueue.forEach(e=>this.setAdvancedFilterModel(e)),this.advancedFilterModelUpdateQueue=[]}getColumnFilterModel(e){return this.columnFilterService?.getColumnFilterModel(e)}setColumnFilterModel(e,t){return this.isAdvancedFilterEnabled()?(this.warnAdvancedFilters(),Promise.resolve()):this.columnFilterService?.setColumnFilterModel(e,t)??Promise.resolve()}setColDefPropertiesForDataType(e,t,i){this.columnFilterService?.setColDefPropertiesForDataType(e,t,i)}},sF=class extends Le{constructor(e,t){super('<div class="ag-filter"></div>'),this.column=e,this.source=t,this.filterWrapper=null}wireBeans(e){this.filterManager=e.filterManager,this.columnModel=e.columnModel}postConstruct(){this.createFilter(!0),this.addManagedEventListeners({filterDestroyed:this.onFilterDestroyed.bind(this)})}hasFilter(){return!!this.filterWrapper}getFilter(){return this.filterWrapper?.filterPromise??null}afterInit(){return this.filterWrapper?.filterPromise?.then(()=>{})??ji.resolve()}afterGuiAttached(e){this.filterWrapper?.filterPromise?.then(t=>{t?.afterGuiAttached?.(e)})}afterGuiDetached(){this.filterWrapper?.filterPromise?.then(e=>{e?.afterGuiDetached?.()})}createFilter(e){let{column:t,source:i}=this;this.filterWrapper=this.filterManager?.getOrCreateFilterWrapper(t)??null,this.filterWrapper?.filterPromise&&this.filterWrapper.filterPromise.then(n=>{let o=n.getGui();K(o)||$(`getGui method from filter returned ${o}; it should be a DOM element.`),this.appendChild(o),e&&this.eventService.dispatchEvent({type:"filterOpened",column:t,source:i,eGui:this.getGui()})})}onFilterDestroyed(e){(e.source==="api"||e.source==="paramsUpdated")&&e.column.getId()===this.column.getId()&&this.columnModel.getColDefCol(this.column)&&(ni(this.getGui()),this.createFilter())}destroy(){this.filterWrapper=null,super.destroy()}},hy="ag-resizer-wrapper",Zo=(e,t)=>`<div data-ref="${e}Resizer" class="ag-resizer ag-resizer-${t}"></div>`,lF=`<div class="${hy}"> 539 ${Zo("eTopLeft","topLeft")} 540 ${Zo("eTop","top")} 541 ${Zo("eTopRight","topRight")} 542 ${Zo("eRight","right")} 543 ${Zo("eBottomRight","bottomRight")} 544 ${Zo("eBottom","bottom")} 545 ${Zo("eBottomLeft","bottomLeft")} 546 ${Zo("eLeft","left")} 547 </div>`,cF=class extends H{constructor(e,t){super(),this.element=e,this.dragStartPosition={x:0,y:0},this.position={x:0,y:0}
547,this.lastSize={width:-1,height:-1},this.positioned=!1,this.resizersAdded=!1,this.resizeListeners=[],this.boundaryEl=null,this.isResizing=!1,this.isMoving=!1,this.resizable={},this.movable=!1,this.currentResizer=null,this.config=Object.assign({},{popup:!1},t)}wireBeans(e){this.popupService=e.popupService,this.resizeObserverService=e.resizeObserverService,this.dragService=e.dragService}center(){let{clientHeight:e,clientWidth:t}=this.offsetParent,i=t/2-this.getWidth()/2,n=e/2-this.getHeight()/2;this.offsetElement(i,n)}initialisePosition(){if(this.positioned)return;let{centered:e,forcePopupParentAsOffsetParent:t,minWidth:i,width:n,minHeight:o,height:r,x:a,y:s}=this.config;this.offsetParent||this.setOffsetParent();let l=0,c=0,h=Mn(this.element);if(h){let m=this.findBoundaryElement(),f=window.getComputedStyle(m);if(f.minWidth!=null){let b=m.offsetWidth-this.element.offsetWidth;c=parseInt(f.minWidth,10)-b}if(f.minHeight!=null){let b=m.offsetHeight-this.element.offsetHeight;l=parseInt(f.minHeight,10)-b}}if(this.minHeight=o||l,this.minWidth=i||c,n&&this.setWidth(n),r&&this.setHeight(r),(!n||!r)&&this.refreshSize(),e)this.center();else if(a||s)this.offsetElement(a,s);else if(h&&t){let m=this.boundaryEl,f=!0;if(m||(m=this.findBoundaryElement(),f=!1),m){let b=parseFloat(m.style.top),_=parseFloat(m.style.left);f?this.offsetElement(isNaN(_)?0:_,isNaN(b)?0:b):this.setPosition(_,b)}}this.positioned=!!this.offsetParent}isPositioned(){return this.positioned}getPosition(){return this.position}setMovable(e,t){if(!this.config.popup||e===this.movable)return;this.movable=e;let i=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(i),this.moveElementDragListener=i):(this.dragService.removeDragSource(i),this.moveElementDragListener=void 0)}setResizable(e){if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),typeof e=="boolean"){if(e===!1)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}Object.keys(e).forEach(t=>{let n=!!e[t],o=this.getResizerElement(t),r={dragStartPixels:0,eElement:o,onDragStart:a=>this.onResizeStart(a,t),onDragging:this.onResize.bind(this),onDragStop:a=>this.onResizeEnd(a,t)};(n||!this.isAlive()&&!n)&&(n?(this.dragService.addDragSource(r),this.resizeListeners.push(r),o.style.pointerEvents="all"):o.style.pointerEvents="none",this.resizable[t]=n)})}removeSizeFromEl(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")}restoreLastSize(){this.element.style.flex="0 0 auto";let{height:e,width:t}=this.lastSize;t!==-1&&(this.element.style.width=`${t}px`),e!==-1&&(this.element.style.height=`${e}px`)}getHeight(){return this.element.offsetHeight}setHeight(e){let{popup:t}=this.config,i=this.element,n=!1;if(typeof e=="string"&&e.indexOf("%")!==-1)Ol(i,e),e=$_(i),n=!0;else if(e=Math.max(this.minHeight,e),this.positioned){let o=this.getAvailableHeight();o&&e>o&&(e=o)}this.getHeight()!==e&&(n?(i.style.maxHeight="unset",i.style.minHeight="unset"):t?Ol(i,e):(i.style.height=`${e}px`,i.style.flex="0 0 auto",this.lastSize.height=typeof e=="number"?e:parseFloat(e)))}getAvailableHeight(){let{popup:e,forcePopupParentAsOffsetParent:t}=this.config;this.positioned||this.initialisePosition();let{clientHeight:i}=this.offsetParent;if(!i)return null;let n=this.element.getBoundingClientRect(),o=this.offsetParent.getBoundingClientRect(),r=e?this.position.y:n.top,a=e?0:o.top,s=0;if(t){let c=this.element.parentElement;if(c){let{bottom:h}=c.getBoundingClientRect();s=h-n.bottom}}return i+a-r-s}getWidth(){return this.element.offsetWidth}setWidth(e){let t=this.element,{popup:i}=this.config,n=!1;if(typeof e=="string"&&e.indexOf("%")!==-1)En(t,e),e=yu(t),n=!0;else if(this.positioned){e=Math.max(this.minWidth,e);let{clientWidth:o}=this.offsetParent,r=i?this.position.x:this.element.getBoundingClientRect().left;o&&e+r>o&&(e=o-r)}this.getWidth()!==e&&(n?(t.style.maxWidth="unset",t.style.minWidth="unset"):this.config.popup?En(t,e):(t.style.width=`${e}px`,t.style.flex=" unset",this.lastSize.width=typeof e=="number"?e:parseFloat(e)))}offsetElement(e=0,t=0){let{forcePopupParentAsOffsetParent:i}=this.config,n=i?this.boundaryEl:this.element;n&&(this.popupService.positionPopup({ePopup:n,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:()=>({x:e,y:t})}),this.setPosition(parseFloat(n.style.left),parseFloat(n.style.top)))}constrainSizeToAvailableHeight(e){if(!this.config.forcePopupParentAsOffsetParent)return;let t=()=>{let i=this.getAvailableHeight();this.element.style.setProperty("max-height",`${i}px`)};e?this.resizeObserverSubscriber=this.resizeObserverService.observeResize(this.popupService.getPopupParent(),t):(this.element.style.removeProperty("max-height"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0))}setPosition(e,t){this.position.x=e,this.position.y=t}updateDragStartPosition(e,t){this.dragStartPosition={x:e,y:t}}calculateMouseMovement(e){let{e:t,isLeft:i,isTop:n,anywhereWithin:o,topBuffer:r}=e,a=t.clientX-this.dragStartPosition.x,s=t.clientY-this.dragStartPosition.y,l=this.shouldSkipX(t,!!i,!!o,a)?0:a,c=this.shouldSkipY(t,!!n,r,s)?0:s;return{movementX:l,movementY:c}}shouldSkipX(e,t,i,n){let o=this.element.getBoundingClientRect(),r=this.offsetParent.getBoundingClientRect(),a=this.boundaryEl.getBoundingClientRect(),s=this.config.popup?this.position.x:o.left,l=s<=0&&r.left>=e.clientX||r.right<=e.clientX&&r.right<=a.right;return l?!0:(t?l=n<0&&e.clientX>s+r.left||n>0&&e.clientX<s+r.left:i?l=n<0&&e.clientX>a.right||n>0&&e.clientX<s+r.left:l=n<0&&e.clientX>a.right||n>0&&e.clientX<a.right,l)}shouldSkipY(e,t,i=0,n){let o=this.element.getBoundingClientRect(),r=this.offsetParent.getBoundingClientRect(),a=this.boundaryEl.getBoundingClientRect(),s=this.config.popup?this.position.y:o.top,l=s<=0&&r.top>=e.clientY||r.bottom<=e.clientY&&r.bottom<=a.bottom;return l?!0:(t?l=n<0&&e.clientY>s+r.top+i||n>
5470&&e.clientY<s+r.top:l=n<0&&e.clientY>a.bottom||n>0&&e.clientY<a.bottom,l)}createResizeMap(){let e=this.element;this.resizerMap={topLeft:{element:e.querySelector("[data-ref=eTopLeftResizer]")},top:{element:e.querySelector("[data-ref=eTopResizer]")},topRight:{element:e.querySelector("[data-ref=eTopRightResizer]")},right:{element:e.querySelector("[data-ref=eRightResizer]")},bottomRight:{element:e.querySelector("[data-ref=eBottomRightResizer]")},bottom:{element:e.querySelector("[data-ref=eBottomResizer]")},bottomLeft:{element:e.querySelector("[data-ref=eBottomLeftResizer]")},left:{element:e.querySelector("[data-ref=eLeftResizer]")}}}addResizers(){if(this.resizersAdded)return;let e=this.element;if(!e)return;let i=new DOMParser().parseFromString(lF,"text/html").body;e.appendChild(i.firstChild),this.createResizeMap(),this.resizersAdded=!0}removeResizers(){this.resizerMap=void 0;let e=this.element.querySelector(`.${hy}`);e&&this.element.removeChild(e),this.resizersAdded=!1}getResizerElement(e){return this.resizerMap[e].element}onResizeStart(e,t){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!t.match(/top/i),isRight:!!t.match(/right/i),isBottom:!!t.match(/bottom/i),isLeft:!!t.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[t].element.classList.add("ag-active");let{popup:i,forcePopupParentAsOffsetParent:n}=this.config;!i&&!n&&this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)}getSiblings(){let t=this.element.parentElement;return t?Array.prototype.slice.call(t.children).filter(i=>!i.classList.contains("ag-hidden")):null}getMinSizeOfSiblings(){let e=this.getSiblings()||[],t=0,i=0;for(let n=0;n<e.length;n++){let o=e[n],r=!!o.style.flex&&o.style.flex!=="0 0 auto";if(o===this.element)continue;let a=this.minHeight||0,s=this.minWidth||0;if(r){let l=window.getComputedStyle(o);l.minHeight&&(a=parseInt(l.minHeight,10)),l.minWidth&&(s=parseInt(l.minWidth,10))}else a=o.offsetHeight,s=o.offsetWidth;t+=a,i+=s}return{height:t,width:i}}applySizeToSiblings(e){let t=null,i=this.getSiblings();if(i){for(let n=0;n<i.length;n++){let o=i[n];o!==t&&(e?o.style.height=`${o.offsetHeight}px`:o.style.width=`${o.offsetWidth}px`,o.style.flex="0 0 auto",o===this.element&&(t=i[n+1]))}t&&(t.style.removeProperty("height"),t.style.removeProperty("min-height"),t.style.removeProperty("max-height"),t.style.flex="1 1 auto")}}isResizable(){return Object.values(this.resizable).some(e=>e)}onResize(e){if(!this.isResizing||!this.currentResizer)return;let{popup:t,forcePopupParentAsOffsetParent:i}=this.config,{isTop:n,isRight:o,isBottom:r,isLeft:a}=this.currentResizer,s=o||a,l=r||n,{movementX:c,movementY:h}=this.calculateMouseMovement({e,isLeft:a,isTop:n}),m=this.position.x,f=this.position.y,b=0,_=0;if(s&&c){let S=a?-1:1,M=this.getWidth(),D=M+c*S,I=!1;a&&(b=M-D,(m+b<=0||D<=this.minWidth)&&(I=!0,b=0)),I||this.setWidth(D)}if(l&&h){let S=n?-1:1,M=this.getHeight(),D=M+h*S,I=!1;n?(_=M-D,(f+_<=0||D<=this.minHeight)&&(I=!0,_=0)):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&M<D&&this.getMinSizeOfSiblings().height+D>this.element.parentElement.offsetHeight&&(I=!0),I||this.setHeight(D)}this.updateDragStartPosition(e.clientX,e.clientY),((t||i)&&b||_)&&this.offsetElement(m+b,f+_)}onResizeEnd(e,t){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null,this.element.classList.remove("ag-resizing"),this.resizerMap[t].element.classList.remove("ag-active"),this.dispatchLocalEvent({type:"resize"})}refreshSize(){let e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))}onMoveStart(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(e.clientX,e.clientY)}onMove(e){if(!this.isMoving)return;let{x:t,y:i}=this.position,n;this.config.calculateTopBuffer&&(n=this.config.calculateTopBuffer());let{movementX:o,movementY:r}=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:n});this.offsetElement(t+o,i+r),this.updateDragStartPosition(e.clientX,e.clientY)}onMoveEnd(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")}setOffsetParent(){this.config.forcePopupParentAsOffsetParent?this.offsetParent=this.popupService.getPopupParent():this.offsetParent=this.element.offsetParent}findBoundaryElement(){let e=this.element;for(;e;){if(window.getComputedStyle(e).position!=="static")return e;e=e.parentElement}return this.element}clearResizeListeners(){for(;this.resizeListeners.length;){let e=this.resizeListeners.pop();this.dragService.removeDragSource(e)}}destroy(){super.destroy(),this.moveElementDragListener&&this.dragService.removeDragSource(this.moveElementDragListener),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()}},dF=(()=>{let e=class gy extends H{constructor(i,n={}){super(),this.eFocusableElement=i,this.callbacks=n,this.callbacks=B({shouldStopEventPropagation:()=>!1,onTabKeyDown:o=>{if(o.defaultPrevented)return;let r=this.focusService.findNextFocusableElement(this.eFocusableElement,!1,o.shiftKey);r&&(r.focus(),o.preventDefault())}},n)}wireBeans(i){this.focusService=i.focusService}postConstruct(){this.eFocusableElement.classList.add(gy.FOCUS_MANAGED_CLASS),this.addKeyDownListeners(this.eFocusableElement),this.callbacks.onFocusIn&&this.addManagedElementListeners(this.eFocusableElement,{focusin:this.callbacks.onFocusIn}),this.callbacks.onFocusOut&&this.addManagedElementListeners(this.eFocusableElement,{focusout:this.callbacks.onFocusOut})}addKeyDownListeners(i){this.addManagedElementListeners(i,{keydown:n=>{if(!(n.defaultPrevented||yo(n))){if(this.callbacks.shouldStopEventPropagation(n)){rs(n);return}n.key===j.TAB?this.callbacks.onTabKeyDown(n):this.callbacks.handleKeyDown&&this.callbacks.handleKeyDown(n)}}})}};return e.FOCUS_MANAGED_CLASS="ag-focus-managed",e})(),Kr=dF,my={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose one",equals:"Equals",notEqual:"Does not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"Between",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equal to",greaterThanOrEqual:"Greater than or equal to",contains:"Contains",notContains:"Does not contain",startsWith:"Begins with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",before:"Before",after:"After",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"};function Mm(e,t){return ku(e)?(e.debounceMs!=null&&$("debounceMs is ignored when apply button is present"),0):e.debounceMs!=null?e.debounceMs:t}function ku(e){return!!e.buttons&&e.buttons.indexOf("apply")>=0}var uF=class extends Le{constructor(e){super(),this.filterNameKey=e,this.applyActive=!1,this.hidePopup=null,this.debouncePending=!1,this.appliedModel=null,this.eFilterBody=le,this.buttonListeners=[]}wireBeans(e){this.rowModel=e.rowModel}postConstruct(){this.resetTemplate(),this.createManagedBean(new Kr(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=new cF(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}),this.createBean(this.positionableFeature)}handleKeyDown(e){}getFilterTitle(){return this.translate(this.filterNameKey)}isFilterActive(){return!!this.appliedModel}resetTemplate(e){let t=this.getGui();t&&t.removeEventListener("submit",this.onFormSubmit);let i=` 548 <form class="ag-filter-wrapper"> 549 <div class="ag-filter-body-wrapper ag-${this.getCssIdentifier()}-body-wrapper" data-ref="eFilterBody"> 550 ${this.createBodyTemplate()} 551 </div> 552 </form>`;this.setTemplate(i,this.getAgComponents(),e),t=this.getGui(),t&&t.addEventListener("submit",this.onFormSubmit)}isReadOnly(){return!!this.providedFilterParams.readOnly}init(e){this.setParams(e),this.resetUiToDefaults(!0).then(()=>{this.updateUiVisibility(),this.setupOnBtApplyDebounce()})}setParams(e){this.providedFilterParams=e,this.applyActive=ku(e),this.resetButtonsPanel(e)}updateParams(e){this.providedFilterParams=e,this.applyActive=ku(e),this.resetUiToActiveModel(this.getModel(),()=>{this.updateUiVisibility(),this.setupOnBtApplyDebounce()})}resetButtonsPanel(e,t){let{buttons:i,readOnly:n}=t??{},{buttons:o,readOnly:r}=e;if(n===r&&zl(i,o))return;let a=o&&o.length>0&&!this.isReadOnly();if(this.eButtonsPanel?(ni(this.eButtonsPanel),this.buttonListeners.forEac
552h(c=>c()),this.buttonListeners=[]):a&&(this.eButtonsPanel=document.createElement("div"),this.eButtonsPanel.classList.add("ag-filter-apply-panel")),!a){this.eButtonsPanel&&cn(this.eButtonsPanel);return}let s=document.createDocumentFragment(),l=c=>{let h,m;switch(c){case"apply":h=this.translate("applyFilter"),m=_=>this.onBtApply(!1,!1,_);break;case"clear":h=this.translate("clearFilter"),m=()=>this.onBtClear();break;case"reset":h=this.translate("resetFilter"),m=()=>this.onBtReset();break;case"cancel":h=this.translate("cancelFilter"),m=_=>{this.onBtCancel(_)};break;default:$("Unknown button type specified");return}let b=Wl(`<button 553 type="${c==="apply"?"submit":"button"}" 554 data-ref="${c}FilterButton" 555 class="ag-button ag-standard-button ag-filter-apply-panel-button" 556 >${h} 557 </button>`);this.buttonListeners.push(...this.addManagedElementListeners(b,{click:m})),s.append(b)};o.forEach(c=>l(c)),this.eButtonsPanel.append(s),this.getGui().appendChild(this.eButtonsPanel)}getDefaultDebounceMs(){return 0}setupOnBtApplyDebounce(){let e=Mm(this.providedFilterParams,this.getDefaultDebounceMs()),t=wi(this.checkApplyDebounce.bind(this),e);this.onBtApplyDebounce=()=>{this.debouncePending=!0,t()}}checkApplyDebounce(){this.debouncePending&&(this.debouncePending=!1,this.onBtApply())}getModel(){return this.appliedModel?this.appliedModel:null}setModel(e){return(e!=null?this.setModelIntoUi(e):this.resetUiToDefaults()).then(()=>{this.updateUiVisibility(),this.applyModel("api")})}onBtCancel(e){this.resetUiToActiveModel(this.getModel(),()=>{this.handleCancelEnd(e)})}handleCancelEnd(e){this.providedFilterParams.closeOnApply&&this.close(e)}resetUiToActiveModel(e,t){let i=()=>{this.onUiChanged(!1,"prevent"),t?.()};e!=null?this.setModelIntoUi(e).then(i):this.resetUiToDefaults().then(i)}onBtClear(){this.resetUiToDefaults().then(()=>this.onUiChanged())}onBtReset(){this.onBtClear(),this.onBtApply()}applyModel(e="api"){let t=this.getModelFromUi();if(!this.isModelValid(t))return!1;let i=this.appliedModel;return this.appliedModel=t,!this.areModelsEqual(i,t)}isModelValid(e){return!0}onFormSubmit(e){e.preventDefault()}onBtApply(e=!1,t=!1,i){i&&i.preventDefault(),this.applyModel(t?"rowDataUpdated":"ui")&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:t,source:"columnFilter"});let{closeOnApply:n}=this.providedFilterParams;n&&this.applyActive&&!e&&!t&&this.close(i)}onNewRowsLoaded(){}close(e){if(!this.hidePopup)return;let t=e,i=t&&t.key,n;(i==="Enter"||i==="Space")&&(n={keyboardEvent:t}),this.hidePopup(n),this.hidePopup=null}onUiChanged(e=!1,t){if(this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly()){let i=this.isModelValid(this.getModelFromUi()),n=this.queryForHtmlElement('[data-ref="applyFilterButton"]');n&&jl(n,!i)}e&&!t||t==="immediately"?this.onBtApply(e):(!this.applyActive&&!t||t==="debounce")&&this.onBtApplyDebounce()}afterGuiAttached(e){e&&(this.hidePopup=e.hidePopup),this.refreshFilterResizer(e?.container)}refreshFilterResizer(e){if(!this.positionableFeature||e==="toolPanel")return;let t=e==="floatingFilter"||e==="columnFilter",{positionableFeature:i,gos:n}=this;t?(i.restoreLastSize(),i.setResizable(n.get("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(this.positionableFeature.removeSizeFromEl(),this.positionableFeature.setResizable(!1)),this.positionableFeature.constrainSizeToAvailableHeight(!0)}afterGuiDetached(){this.checkApplyDebounce(),this.positionableFeature&&this.positionableFeature.constrainSizeToAvailableHeight(!1)}refresh(e){let t=this.providedFilterParams;return this.providedFilterParams=e,this.resetButtonsPanel(e,t),!0}destroy(){let e=this.getGui();e&&e.removeEventListener("submit",this.onFormSubmit),this.hidePopup=null,this.positionableFeature&&(this.positionableFeature=this.destroyBean(this.positionableFeature)),this.appliedModel=null,super.destroy()}translate(e){return this.localeService.getLocaleTextFunc()(e,my[e])}getCellValue(e){return this.providedFilterParams.getValue(e)}getPositionableElement(){return this.eFilterBody}},pF=class extends Sm{constructor(e){super(e,"ag-radio-button","radio")}isSelected(){return this.eInput.checked}toggle(){this.eInput.disabled||this.isSelected()||this.setValue(!0)}
557addInputListeners(){super.addInputListeners(),this.addManagedEventListeners({checkboxChanged:this.onChange.bind(this)})}onChange(e){e.selected&&e.name&&this.eInput.name&&this.eInput.name===e.name&&e.id&&this.eInput.id!==e.id&&this.setValue(!1,!0)}},hF=class extends Le{constructor(e="default",t=!1){super(`<div class="ag-list ag-${e}-list" role="listbox"></div>`),this.cssIdentifier=e,this.unFocusable=t,this.activeClass="ag-active-item",this.options=[],this.itemEls=[]}postConstruct(){let e=this.getGui();this.addManagedElementListeners(e,{mouseleave:()=>this.clearHighlighted()}),!this.unFocusable&&this.addManagedElementListeners(e,{keydown:this.handleKeyDown.bind(this)})}handleKeyDown(e){let t=e.key;switch(t){case j.ENTER:if(!this.highlightedEl)this.setValue(this.getValue());else{let i=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(i)}break;case j.DOWN:case j.UP:e.preventDefault(),this.navigate(t);break;case j.PAGE_DOWN:case j.PAGE_UP:case j.PAGE_HOME:case j.PAGE_END:e.preventDefault(),this.navigateToPage(t);break}}navigate(e){let t=e===j.DOWN,i;if(!this.highlightedEl)i=this.itemEls[t?0:this.itemEls.length-1];else{let o=this.itemEls.indexOf(this.highlightedEl)+(t?1:-1);o=Math.min(Math.max(o,0),this.itemEls.length-1),i=this.itemEls[o]}this.highlightItem(i)}navigateToPage(e){if(!this.highlightedEl||this.itemEls.length===0)return;let t=this.itemEls.indexOf(this.highlightedEl),i=this.options.length-1,n=this.itemEls[0].clientHeight,o=Math.floor(this.getGui().clientHeight/n),r=-1;e===j.PAGE_HOME?r=0:e===j.PAGE_END?r=i:e===j.PAGE_DOWN?r=Math.min(t+o,i):e===j.PAGE_UP&&(r=Math.max(t-o,0)),r!==-1&&this.highlightItem(this.itemEls[r])}addOptions(e){return e.forEach(t=>this.addOption(t)),this}addOption(e){let{value:t,text:i}=e,n=i||t;return this.options.push({value:t,text:n}),this.renderOption(t,n),this.updateIndices(),this}clearOptions(){this.options=[],this.reset(!0),this.itemEls.forEach(e=>{cn(e)}),this.itemEls=[]}updateIndices(){let e=this.getGui().querySelectorAll(".ag-list-item");e.forEach((t,i)=>{VR(t,i+1),BR(t,e.length)})}renderOption(e,t){let i=dt(this.gos),n=i.createElement("div");qi(n,"option"),n.classList.add("ag-list-item",`ag-${this.cssIdentifier}-list-item`);let o=i.createElement("span");n.appendChild(o),o.textContent=t,this.unFocusable||(n.tabIndex=-1),this.itemEls.push(n),this.addManagedListeners(n,{mouseover:()=>this.highlightItem(n),mousedown:r=>{r.preventDefault(),r.stopPropagation(),this.setValue(e)}}),this.createManagedBean(new us({getTooltipValue:()=>t,getGui:()=>n,getLocation:()=>"UNKNOWN",shouldDisplayTooltip:()=>o.scrollWidth>o.clientWidth})),this.getGui().appendChild(n)}setValue(e,t){if(this.value===e)return this.fireItemSelected(),this;if(e==null)return this.reset(t),this;let i=this.options.findIndex(n=>n.value===e);if(i!==-1){let n=this.options[i];this.value=n.value,this.displayValue=n.text,this.highlightItem(this.itemEls[i]),t||this.fireChangeEvent()}return this}setValueByIndex(e){return this.setValue(this.options[e].value)}getValue(){return this.value}getDisplayValue(){return this.displayValue}refreshHighlighted(){this.clearHighlighted();let e=this.options.findIndex(t=>t.value===this.value);e!==-1&&this.highlightItem(this.itemEls[e])}reset(e){this.value=null,this.displayValue=null,this.clearHighlighted(),e||this.fireChangeEvent()}highlightItem(e){if(!Mn(e))return;this.clearHighlighted(),this.highlightedEl=e,this.highlightedEl.classList.add(this.activeClass),_u(this.highlightedEl,!0);let t=this.getGui(),{scrollTop:i,clientHeight:n}=t,{offsetTop:o,offsetHeight:r}=e;(o+r>i+n||o<i)&&this.highlightedEl.scrollIntoView({block:"nearest"}),this.unFocusable||this.highlightedEl.focus()}clearHighlighted(){!this.highlightedEl||!Mn(this.highlightedEl)||(this.highlightedEl.classList.remove(this.activeClass),_u(this.highlightedEl,!1),this.highlightedEl=null)}fireChangeEvent(){this.dispatchLocalEvent({type:"fieldValueChanged"}),this.fireItemSelected()}fireItemSelected(){this.dispatchLocalEvent({type:"selectedItem"})}},gF=class extends ay{constructor(e){if(super(e,e?.template||` 558 <div class="ag-picker-field" role="presentation"> 559 <div data-ref="eLabel"></div> 560 <div data-ref="eWrapper" class="ag-wrapper ag-picker-field-wrapper ag-picker-collapsed"> 561 <div data-ref="eDisplayField" class="ag-picker-field-display"></div> 562 <div data-ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div> 563 </div> 564 </div>`,e?.agComponents||[],e?.className),this.isPickerDisplayed=!1,this.skipClick=!1,this.pickerGap=4,this.hideCurrentPicker=null,this.eLabel=le,this.eWrapper=le,this.eDisplayField=le,this.eIcon=le,this.ariaRole=e?.ariaRole,this.onPickerFocusIn=this.onPickerFocusIn.bind(this),this.onPickerFocusOut=this.onPickerFocusOut.bind(this),!e)return;let{pickerGap:t,maxPickerHeight:i,variableWidth:n,minPickerWidth:o,maxPickerWidth:r}=e;t!=null&&(this.pickerGap=t),this.variableWidth=!!n,i!=null&&this.setPickerMaxHeight(i),o!=null&&this.setPickerMinWidth(o),r!=null&&this.setPickerMaxWidth(r)}wireBeans(e){this.popupService=e.popupService}
564postConstruct(){super.postConstruct(),this.setupAria();let e=`ag-${this.getCompId()}-display`;this.eDisplayField.setAttribute("id",e);let t=this.getAriaElement();this.addManagedElementListeners(t,{keydown:this.onKeyDown.bind(this)}),this.addManagedElementListeners(this.eLabel,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)}),this.addManagedElementListeners(this.eWrapper,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)});let{pickerIcon:i,inputWidth:n}=this.config;if(i){let o=Wi(i,this.gos);o&&this.eIcon.appendChild(o)}n!=null&&this.setInputWidth(n)}setupAria(){let e=this.getAriaElement();e.setAttribute("tabindex",this.gos.get("tabIndex").toString()),bu(e,!1),this.ariaRole&&qi(e,this.ariaRole)}onLabelOrWrapperMouseDown(e){if(e){let t=this.getFocusableElement();if(t!==this.eWrapper&&e?.target===t)return;e.preventDefault(),this.getFocusableElement().focus()}if(this.skipClick){this.skipClick=!1;return}this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())}onKeyDown(e){switch(e.key){case j.UP:case j.DOWN:case j.ENTER:case j.SPACE:e.preventDefault(),this.onLabelOrWrapperMouseDown();break;case j.ESCAPE:this.isPickerDisplayed&&(e.preventDefault(),e.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker());break}}showPicker(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());let e=this.pickerComponent.getGui();e.addEventListener("focusin",this.onPickerFocusIn),e.addEventListener("focusout",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)}renderAndPositionPicker(){let e=this.pickerComponent.getGui();this.gos.get("suppressScrollWhenPopupsAreOpen")||([this.destroyMouseWheelFunc]=this.addManagedEventListeners({bodyScroll:()=>{this.hidePicker()}}));let t=this.localeService.getLocaleTextFunc(),{pickerAriaLabelKey:i,pickerAriaLabelValue:n,modalPicker:o=!0}=this.config,r={modal:o,eChild:e,closeOnEsc:!0,closedCallback:()=>{let f=y_(this.gos);this.beforeHidePicker(),f&&this.isAlive()&&this.getFocusableElement().focus()},ariaLabel:t(i,n),anchorToElement:this.eWrapper};e.style.position="absolute";let a=this.popupService.addPopup(r),{maxPickerHeight:s,minPickerWidth:l,maxPickerWidth:c,variableWidth:h}=this;h?(l&&(e.style.minWidth=l),e.style.width=_m(yu(this.eWrapper)),c&&(e.style.maxWidth=c)):Su(e,c??yu(this.eWrapper));let m=s??`${bm(this.popupService.getPopupParent())}px`;return e.style.setProperty("max-height",m),this.alignPickerToComponent(),a.hideFunc}alignPickerToComponent(){if(!this.pickerComponent)return;let{pickerType:e}=this.config,{pickerGap:t}=this,i=this.gos.get("enableRtl")?"right":"left";this.popupService.positionPopupByComponent({type:e,eventSource:this.eWrapper,ePopup:this.pickerComponent.getGui(),position:"under",alignSide:i,keepWithinBounds:!0,nudgeY:t})}beforeHidePicker(){this.destroyMouseWheelFunc&&(this.destroyMouseWheelFunc(),this.destroyMouseWheelFunc=void 0),this.toggleExpandedStyles(!1);let e=this.pickerComponent.getGui();e.removeEventListener("focusin",this.onPickerFocusIn),e.removeEventListener("focusout",this.onPickerFocusOut),this.isPickerDisplayed=!1,this.pickerComponent=void 0,this.hideCurrentPicker=null}toggleExpandedStyles(e){if(!this.isAlive())return;let t=this.getAriaElement();bu(t,e),this.eWrapper.classList.toggle("ag-picker-expanded",e),this.eWrapper.classList.toggle("ag-picker-collapsed",!e)}onPickerFocusIn(){this.togglePickerHasFocus(!0)}onPickerFocusOut(e){this.pickerComponent?.getGui().contains(e.relatedTarget)||this.togglePickerHasFocus(!1)}togglePickerHasFocus(e){this.pickerComponent&&this.eWrapper.classList.toggle("ag-picker-has-focus",e)}hidePicker(){this.hideCurrentPicker&&this.hideCurrentPicker()}setInputWidth(e){return Su(this.eWrapper,e),this}getFocusableElement(){return this.eWrapper}setPickerGap(e){return this.pickerGap=e,this}setPickerMinWidth(e){return typeof e=="number"&&(e=`${e}px`),this.minPickerWidth=e??void 0,this}setPickerMaxWidth(e){return typeof e=="number"&&(e=`${e}px`),this.maxPickerWidth=e??void 0,this}setPickerMaxHeight(e){return typeof e=="number"&&(e=`${e}px`),this.maxPickerHeight=e??void 0,this}destroy(){this.hidePicker(),super.destroy()}},Tm=class extends gF{constructor(e){super(B({pickerAriaLabelKey:"ariaLabelSelectField",pickerAriaLabelValue:"Select Field",pickerType:"ag-list",className:"ag-select",pickerIcon:"smallDown",ariaRole:"combobox"},e))}
vendor: 4,550 bytes, line 564
564postConstruct(){super.postConstruct(),this.createListComponent(),this.eWrapper.tabIndex=this.gos.get("tabIndex");let{options:e,value:t,placeholder:i}=this.config;e!=null&&this.addOptions(e),t!=null&&this.setValue(t,!0),i&&t==null&&(this.eDisplayField.textContent=i),this.addManagedElementListeners(this.eWrapper,{focusout:this.onWrapperFocusOut.bind(this)})}onWrapperFocusOut(e){this.eWrapper.contains(e.relatedTarget)||this.hidePicker()}createListComponent(){this.listComponent=this.createBean(new hF("select",!0)),this.listComponent.setParentComponent(this);let e=this.listComponent.getAriaElement(),t=`ag-select-list-${this.listComponent.getCompId()}`;e.setAttribute("id",t),qR(this.getAriaElement(),e),this.listComponent.addManagedListeners(this.listComponent,{selectedItem:()=>{this.hidePicker(),this.dispatchLocalEvent({type:"selectedItem"})}}),this.listComponent.addManagedListeners(this.listComponent,{fieldValueChanged:()=>{this.listComponent&&(this.setValue(this.listComponent.getValue(),!1,!0),this.hidePicker())}})}createPickerComponent(){return this.listComponent}onKeyDown(e){let{key:t}=e;switch(t===j.TAB&&this.hidePicker(),t){case j.ENTER:case j.UP:case j.DOWN:case j.PAGE_UP:case j.PAGE_DOWN:case j.PAGE_HOME:case j.PAGE_END:e.preventDefault(),this.isPickerDisplayed?this.listComponent?.handleKeyDown(e):super.onKeyDown(e);break;case j.ESCAPE:super.onKeyDown(e);break;case j.SPACE:this.isPickerDisplayed?e.preventDefault():super.onKeyDown(e);break}}showPicker(){this.listComponent&&(super.showPicker(),this.listComponent.refreshHighlighted())}addOptions(e){return e.forEach(t=>this.addOption(t)),this}addOption(e){return this.listComponent.addOption(e),this}clearOptions(){return this.listComponent?.clearOptions(),this}setValue(e,t,i){if(this.value===e||!this.listComponent)return this;if(i||this.listComponent.setValue(e,!0),this.listComponent.getValue()===this.getValue())return this;let o=this.listComponent.getDisplayValue();return o==null&&this.config.placeholder&&(o=this.config.placeholder),this.eDisplayField.textContent=o,this.setTooltip({newTooltipText:o??null,shouldDisplayTooltip:()=>this.eDisplayField.scrollWidth>this.eDisplayField.clientWidth}),super.setValue(e,t)}destroy(){this.listComponent&&(this.listComponent=this.destroyBean(this.listComponent)),super.destroy()}},mF={selector:"AG-SELECT",component:Tm},fy=class{constructor(){this.customFilterOptions={}}init(e,t){this.filterOptions=e.filterOptions||t,this.mapCustomOptions(),this.selectDefaultItem(e)}getFilterOptions(){return this.filterOptions}mapCustomOptions(){this.filterOptions&&this.filterOptions.forEach(e=>{if(typeof e=="string")return;let t=[["displayKey"],["displayName"],["predicate","test"]],i=n=>n.some(o=>e[o]!=null)?!0:($(`ignoring FilterOptionDef as it doesn't contain one of '${n}'`),!1);if(!t.every(i)){this.filterOptions=this.filterOptions.filter(n=>n===e)||[];return}this.customFilterOptions[e.displayKey]=e})}selectDefaultItem(e){if(e.defaultOption)this.defaultOption=e.defaultOption;else if(this.filterOptions.length>=1){let t=this.filterOptions[0];typeof t=="string"?this.defaultOption=t:t.displayKey?this.defaultOption=t.displayKey:$("invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}else $("no filter options for filter")}getDefaultOption(){return this.defaultOption}getCustomOption(e){return this.customFilterOptions[e]}},vy=class extends uF{constructor(){super(...arguments),this.eTypes=[],this.eJoinOperatorPanels=[],this.eJoinOperatorsAnd=[],this.eJoinOperatorsOr=[],this.eConditionBodies=[],this.listener=()=>this.onUiChanged(),this.lastUiCompletePosition=null,this.joinOperatorId=0}getNumberOfInputs(e){let t=this.optionsFactory.getCustomOption(e);if(t){let{numberOfInputs:n}=t;return n??1}return e&&["empty","notBlank","blank"].indexOf(e)>=0?0:e==="inRange"?2:1}onFloatingFilterChanged(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged(!0)}setTypeFromFloatingFilter(e){this.eTypes.forEach((t,i)=>{i===0?t.setValue(e,!0):t.setValue(this.optionsFactory.getDefaultOption(),!0)})}getModelFromUi(){let e=this.getUiCompleteConditions();return e.length===0?null:this.maxNumConditions>1&&e.length>1?{filterType:this.getFilterType(),operator:this.getJoinOperator(),conditions:e}:e[0]}getConditionTypes(){return this.eTypes.map(e=>e.getValue())}getConditionType(e){return this.eTypes[e].getValue()}getJoinOperator(){return this.eJoinOperatorsOr.length===0?this.defaultJoinOperator:this.eJoinOperatorsOr[0].getValue()===!0?"OR":"AND"}areModelsEqual(e,t){if(!e&&!t)return!0;
564if(!e&&t||e&&!t)return!1;let i=!e.operator,n=!t.operator;if(!i&&n||i&&!n)return!1;let r;if(i){let a=e,s=t;r=this.areSimpleModelsEqual(a,s)}else{let a=e,s=t;r=a.operator===s.operator&&rr(a.conditions,s.conditions,(l,c)=>this.areSimpleModelsEqual(l,c))}return r}shouldRefresh(e){let t=this.getModel(),i=t?t.conditions??[t]:null,n=e.filterOptions?.map(r=>typeof r=="string"?r:r.displayKey)??this.getDefaultFilterOptions();return!(!(!i||i.every(r=>n.find(a=>a===r.type)!==void 0))||typeof e.maxNumConditions=="number"&&i&&i.length>e.maxNumConditions)}refresh(e){return!this.shouldRefresh(e)||!super.refresh(e)?!1:(this.setParams(e),this.removeConditionsAndOperators(0),this.createOption(),this.setModel(this.getModel()),!0)}setModelIntoUi(e){if(e.operator){let i=e,n=i.conditions;n==null&&(n=[],$("Filter model is missing 'conditions'"));let o=this.validateAndUpdateConditions(n),r=this.getNumConditions();if(o<r)this.removeConditionsAndOperators(o);else if(o>r)for(let s=r;s<o;s++)this.createJoinOperatorPanel(),this.createOption();let a=i.operator==="OR";this.eJoinOperatorsAnd.forEach(s=>s.setValue(!a,!0)),this.eJoinOperatorsOr.forEach(s=>s.setValue(a,!0)),n.forEach((s,l)=>{this.eTypes[l].setValue(s.type,!0),this.setConditionIntoUi(s,l)})}else{let i=e;this.getNumConditions()>1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(i.type,!0),this.setConditionIntoUi(i,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.onUiChanged(),ji.resolve()}validateAndUpdateConditions(e){let t=e.length;return t>this.maxNumConditions&&(e.splice(this.maxNumConditions),$('Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.'),t=this.maxNumConditions),t}doesFilterPass(e){let t=this.getModel();if(t==null)return!0;let{operator:i}=t,n=[];if(i){let r=t;n.push(...r.conditions??[])}else n.push(t);return n[i&&i==="OR"?"some":"every"](r=>this.individualConditionPasses(e,r))}setParams(e){super.setParams(e),this.setNumConditions(e),this.defaultJoinOperator=this.getDefaultJoinOperator(e.defaultJoinOperator),this.filterPlaceholder=e.filterPlaceholder,this.optionsFactory=new fy,this.optionsFactory.init(e,this.getDefaultFilterOptions()),this.createFilterListOptions(),this.createOption(),this.createMissingConditionsAndOperators(),this.isReadOnly()&&this.eFilterBody.setAttribute("tabindex","-1")}setNumConditions(e){this.maxNumConditions=e.maxNumConditions??2,this.maxNumConditions<1&&($('"filterParams.maxNumConditions" must be greater than or equal to zero.'),this.maxNumConditions=1),this.numAlwaysVisibleConditions=e.numAlwaysVisibleConditions??1,this.numAlwaysVisibleConditions<1&&($('"filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.'),this.numAlwaysVisibleConditions=1),this.numAlwaysVisibleConditions>this.maxNumConditions&&($('"filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".'),this.numAlwaysVisibleConditions=this.maxNumConditions)}createOption(){let e=this.createManagedBean(new Tm);this.eTypes.push(e),e.addCssClass("ag-filter-select"),this.eFilterBody.appendChild(e.getGui());let t=this.createValueElement();this.eConditionBodies.push(t),this.eFilterBody.appendChild(t),this.putOptionsIntoDropdown(e),this.resetType(e);let i=this.getNumConditions()-1;this.forEachPositionInput(i,n=>this.resetInput(n)),this.addChangedListeners(e,i)}createJoinOperatorPanel(){let e=document.createElement("div");this.eJoinOperatorPanels.push(e),e.classList.add("ag-filter-condition");let t=this.createJoinOperator(this.eJoinOperatorsAnd,e,"and"),i=this.createJoinOperator(this.eJoinOperatorsOr,e,"or");this.eFilterBody.appendChild(e);let n=this.eJoinOperatorPanels.length-1,o=this.joinOperatorId++;this.resetJoinOperatorAnd(t,n,o),this.resetJoinOperatorOr(i,n,o),this.isReadOnly()||(t.onValueChange(this.listener),i.onValueChange(this.listener))}createJoinOperator(e,t,i){let n=this.createManagedBean(new pF);return e.push(n),n.addCssClass("ag-filter-condition-operator"),n.addCssClass(`ag-filter-condition-operator-${i}`),t.appendChild(n.getGui()),n}getDefaultJoinOperator(e){return e==="AND"||e==="OR"?e:"AND"}createFilterListOptions(){let e=this.optionsFactory.getFilterOptions();this.filterListOptions=e.map(t=>typeof t=="string"?this.createBoilerplateListOption(t):this.createCustomListOption(t))}putOptionsIntoDropdown(e){this.filterListOptions.forEach(t=>{e.addOption(t)}),e.setDisabled(this.filterListOptions.length<=1)}createBoilerplateListOption(e){return{value:e,text:this.translate(e)}}createCustomListOption(e){let{displayKey:t}=e,i=this.optionsFactory.getCustomOption(e.displayKey);return{value:t,text:i?this.localeService.getLocaleTextFunc()(i.displayKey,i.displayName):this.translate(t)}
564}createBodyTemplate(){return""}getAgComponents(){return[]}getCssIdentifier(){return"simple-filter"}updateUiVisibility(){let e=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,e)}updateNumConditions(){let e=-1,t=!0;for(let i=0;i<this.getNumConditions();i++)this.isConditionUiComplete(i)?e=i:t=!1;if(this.shouldAddNewConditionAtEnd(t))this.createJoinOperatorPanel(),this.createOption();else{let i=this.lastUiCompletePosition??this.getNumConditions()-2;if(e<i){this.removeConditionsAndOperators(i+1);let n=e+1,o=i-n;o>0&&this.removeConditionsAndOperators(n,o),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=e}updateConditionStatusesAndValues(e,t){this.eTypes.forEach((n,o)=>{let r=this.isConditionDisabled(o,e);n.setDisabled(r||this.filterListOptions.length<=1),o===1&&(jl(this.eJoinOperatorPanels[0],r),this.eJoinOperatorsAnd[0].setDisabled(r),this.eJoinOperatorsOr[0].setDisabled(r))}),this.eConditionBodies.forEach((n,o)=>{it(n,this.isConditionBodyVisible(o))});let i=(t??this.getJoinOperator())==="OR";this.eJoinOperatorsAnd.forEach(n=>{n.setValue(!i,!0)}),this.eJoinOperatorsOr.forEach(n=>{n.setValue(i,!0)}),this.forEachInput((n,o,r,a)=>{this.setElementDisplayed(n,o<a),this.setElementDisabled(n,this.isConditionDisabled(r,e))}),this.resetPlaceholder()}shouldAddNewConditionAtEnd(e){return e&&this.getNumConditions()<this.maxNumConditions&&!this.isReadOnly()}removeConditionsAndOperators(e,t){if(e>=this.getNumConditions())return;this.removeComponents(this.eTypes,e,t),this.removeElements(this.eConditionBodies,e,t),this.removeValueElements(e,t);let i=Math.max(e-1,0);this.removeElements(this.eJoinOperatorPanels,i,t),this.removeComponents(this.eJoinOperatorsAnd,i,t),this.removeComponents(this.eJoinOperatorsOr,i,t)}removeElements(e,t,i){this.removeItems(e,t,i).forEach(o=>cn(o))}removeComponents(e,t,i){this.removeItems(e,t,i).forEach(o=>{cn(o.getGui()),this.destroyBean(o)})}removeItems(e,t,i){return i==null?e.splice(t):e.splice(t,i)}afterGuiAttached(e){if(super.afterGuiAttached(e),this.resetPlaceholder(),!e?.suppressFocus)if(this.isReadOnly())this.eFilterBody.focus();else{let t=this.getInputs(0)[0];if(!t)return;t instanceof Br&&t.getInputElement().focus()}}afterGuiDetached(){super.afterGuiDetached();let e=this.getModel();this.resetUiToActiveModel(e);let t=-1,i=-1,n=!1,o=this.getJoinOperator();for(let a=this.getNumConditions()-1;a>=0;a--)if(this.isConditionUiComplete(a))t===-1&&(t=a,i=a);else{let s=a>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(a-1),l=a<t;(s||l)&&(this.removeConditionsAndOperators(a,1),n=!0,l&&i--)}let r=!1;this.getNumConditions()<this.numAlwaysVisibleConditions&&(this.createMissingConditionsAndOperators(),r=!0),this.shouldAddNewConditionAtEnd(i===this.getNumConditions()-1)&&(this.createJoinOperatorPanel(),this.createOption(),r=!0),r&&this.updateConditionStatusesAndValues(i,o),n&&this.updateJoinOperatorsDisabled(),this.lastUiCompletePosition=i}getPlaceholderText(e,t){let i=this.translate(e);if(dm(this.filterPlaceholder)){let n=this.filterPlaceholder,o=this.eTypes[t].getValue(),r=this.translate(o);i=n({filterOptionKey:o,filterOption:r,placeholder:i})}else typeof this.filterPlaceholder=="string"&&(i=this.filterPlaceholder);return i}resetPlaceholder(){let e=this.localeService.getLocaleTextFunc();this.forEachInput((t,i,n,o)=>{if(!(t instanceof Br))return;let r=i===0&&o>1?"inRangeStart":i===0?"filterOoo":"inRangeEnd",a=i===0&&o>1?e("ariaFilterFromValue","Filter from value"):i===0?e("ariaFilterValue","Filter Value"):e("ariaFilterToValue","Filter to Value");t.setInputPlaceholder(this.getPlaceholderText(r,n)),t.setInputAriaLabel(a)})}setElementValue(e,t,i){e instanceof Br&&e.setValue(t!=null?String(t):null,!0)}setElementDisplayed(e,t){e instanceof Le&&it(e.getGui(),t)}setElementDisabled(e,t){e instanceof Le&&jl(e.getGui(),t)}attachElementOnChange(e,t){e instanceof Br&&e.onValueChange(t)}forEachInput(e){this.getConditionTypes().forEach((t,i)=>{this.forEachPositionTypeInput(i,t,e)})}forEachPositionInput(e,t){let i=this.getConditionType(e);this.forEachPositionTypeInput(e,i,t)}forEachPositionTypeInput(e,t,i){let n=this.getNumberOfInputs(t),o=this.getInputs(e);for(let r=0;r<o.length;r++){let a=o[r];a!=null&&i(a,r,e,n)}}isConditionDisabled(e,t){return this.isReadOnly()?!0:e===0?!1:e>t+1}isConditionBodyVisible(e){let t=this.getConditionType(e);return this.getNumberOfInputs(t)>0}isConditionUiComplete(e){return!(e>
vendor: 4,295 bytes, line 564
564=this.getNumConditions()||this.getConditionType(e)==="empty"||this.getValues(e).some(i=>i==null))}getNumConditions(){return this.eTypes.length}getUiCompleteConditions(){let e=[];for(let t=0;t<this.getNumConditions();t++)this.isConditionUiComplete(t)&&e.push(this.createCondition(t));return e}createMissingConditionsAndOperators(){if(!this.isReadOnly())for(let e=this.getNumConditions();e<this.numAlwaysVisibleConditions;e++)this.createJoinOperatorPanel(),this.createOption()}resetUiToDefaults(e){return this.removeConditionsAndOperators(this.isReadOnly()?1:this.numAlwaysVisibleConditions),this.eTypes.forEach(t=>this.resetType(t)),this.eJoinOperatorsAnd.forEach((t,i)=>this.resetJoinOperatorAnd(t,i,this.joinOperatorId+i)),this.eJoinOperatorsOr.forEach((t,i)=>this.resetJoinOperatorOr(t,i,this.joinOperatorId+i)),this.joinOperatorId++,this.forEachInput(t=>this.resetInput(t)),this.resetPlaceholder(),this.createMissingConditionsAndOperators(),this.lastUiCompletePosition=null,e||this.onUiChanged(),ji.resolve()}resetType(e){let i=this.localeService.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator");e.setValue(this.optionsFactory.getDefaultOption(),!0).setAriaLabel(i).setDisabled(this.isReadOnly()||this.filterListOptions.length<=1)}resetJoinOperatorAnd(e,t,i){this.resetJoinOperator(e,t,this.isDefaultOperator("AND"),this.translate("andCondition"),i)}resetJoinOperatorOr(e,t,i){this.resetJoinOperator(e,t,this.isDefaultOperator("OR"),this.translate("orCondition"),i)}resetJoinOperator(e,t,i,n,o){this.updateJoinOperatorDisabled(e.setValue(i,!0).setName(`ag-simple-filter-and-or-${this.getCompId()}-${o}`).setLabel(n),t)}updateJoinOperatorsDisabled(){this.eJoinOperatorsAnd.forEach((e,t)=>this.updateJoinOperatorDisabled(e,t)),this.eJoinOperatorsOr.forEach((e,t)=>this.updateJoinOperatorDisabled(e,t))}updateJoinOperatorDisabled(e,t){e.setDisabled(this.isReadOnly()||t>0)}resetInput(e){this.setElementValue(e,null),this.setElementDisabled(e,this.isReadOnly())}setConditionIntoUi(e,t){let i=this.mapValuesFromModel(e);this.forEachInput((n,o,r)=>{r===t&&this.setElementValue(n,i[o]!=null?i[o]:null)})}setValueFromFloatingFilter(e){this.forEachInput((t,i,n)=>{this.setElementValue(t,i===0&&n===0?e:null,!0)})}isDefaultOperator(e){return e===this.defaultJoinOperator}addChangedListeners(e,t){this.isReadOnly()||(e.onValueChange(this.listener),this.forEachPositionInput(t,i=>{this.attachElementOnChange(i,this.listener)}))}individualConditionPasses(e,t){let i=this.getCellValue(e.node),n=this.mapValuesFromModel(t),o=this.optionsFactory.getCustomOption(t.type),r=this.evaluateCustomFilter(o,n,i);return r??(i==null?this.evaluateNullValue(t.type):this.evaluateNonNullValue(n,i,t,e))}evaluateCustomFilter(e,t,i){if(e==null)return;let{predicate:n}=e;if(n!=null&&!t.some(o=>o==null))return n(t,i)}isBlank(e){return e==null||typeof e=="string"&&e.trim().length===0}hasInvalidInputs(){return!1}},Cy=class extends vy{setParams(e){super.setParams(e),this.scalarFilterParams=e}evaluateNullValue(e){switch(e){case"equals":if(this.scalarFilterParams.includeBlanksInEquals)return!0;break;case"notEqual":if(this.scalarFilterParams.includeBlanksInNotEqual)return!0;break;case"greaterThan":case"greaterThanOrEqual":if(this.scalarFilterParams.includeBlanksInGreaterThan)return!0;break;case"lessThan":case"lessThanOrEqual":if(this.scalarFilterParams.includeBlanksInLessThan)return!0;break;case"inRange":if(this.scalarFilterParams.includeBlanksInRange)return!0;break;case"blank":return!0;case"notBlank":return!1}return!1}evaluateNonNullValue(e,t,i){let n=this.comparator(),o=e[0]!=null?n(e[0],t):0;switch(i.type){case"equals":return o===0;case"notEqual":return o!==0;case"greaterThan":return o>0;case"greaterThanOrEqual":return o>=0;case"lessThan":return o<0;case"lessThanOrEqual":return o<=0;case"inRange":{let r=n(e[1],t);return this.scalarFilterParams.inRangeInclusive?o>=0&&r<=0:o>0&&r<0}case"blank":return this.isBlank(t);case"notBlank":return!this.isBlank(t);default:return $('Unexpected type of filter "'+i.type+'", it looks like the filter was configured with incorrect Filter Options'),!0}}},fF=65,vF=67,CF=86,bF=68,_F=90,yF=89;function by(e){return e.altKey||e.ctrlKey||e.metaKey?!1:e.key?.length===1}function nm(e,t,i,n,o){let r=n?n.getColDef().suppressKeyboardEvent:void 0;if(!r)return!1;
564let a=e.addGridCommonParams({event:t,editing:o,column:n,node:i,data:i.data,colDef:n.getColDef()});return!!(r&&r(a))}function wF(e,t,i,n){let o=n.getDefinition(),r=o&&o.suppressHeaderKeyboardEvent;if(!K(r))return!1;let a=e.addGridCommonParams({colDef:o,column:n,headerRowIndex:i,event:t});return!!r(a)}function xF(e){let{keyCode:t}=e,i;switch(t){case fF:i=j.A;break;case vF:i=j.C;break;case CF:i=j.V;break;case bF:i=j.D;break;case _F:i=j.Z;break;case yF:i=j.Y;break;default:i=e.code}return i}function SF(e,t=!1){return e===j.DELETE?!0:!t&&e===j.BACKSPACE?ey():!1}var Qr=class extends Br{constructor(e,t="ag-text-field",i="text"){super(e,t,i)}postConstruct(){super.postConstruct(),this.config.allowedCharPattern&&this.preventDisallowedCharacters()}setValue(e,t){return this.eInput.value!==e&&(this.eInput.value=K(e)?e:""),super.setValue(e,t)}setStartValue(e){this.setValue(e,!0)}preventDisallowedCharacters(){let e=new RegExp(`[${this.config.allowedCharPattern}]`),t=i=>{by(i)&&i.key&&!e.test(i.key)&&i.preventDefault()};this.addManagedListeners(this.eInput,{keydown:t,paste:i=>{let n=i.clipboardData?.getData("text");n&&n.split("").some(o=>!e.test(o))&&i.preventDefault()}})}},Pu={selector:"AG-INPUT-TEXT-FIELD",component:Qr},Im=class extends Qr{constructor(e){super(e,"ag-number-field","number")}postConstruct(){super.postConstruct(),this.addManagedListeners(this.eInput,{blur:()=>{let o=parseFloat(this.eInput.value),r=isNaN(o)?"":this.normalizeValue(o.toString());this.value!==r&&this.setValue(r)},wheel:this.onWheel.bind(this)}),this.eInput.step="any";let{precision:e,min:t,max:i,step:n}=this.config;typeof e=="number"&&this.setPrecision(e),typeof t=="number"&&this.setMin(t),typeof i=="number"&&this.setMax(i),typeof n=="number"&&this.setStep(n)}onWheel(e){nt(this.gos)===this.eInput&&e.preventDefault()}normalizeValue(e){if(e==="")return"";this.precision!=null&&(e=this.adjustPrecision(e));let t=parseFloat(e);return this.min!=null&&t<this.min?e=this.min.toString():this.max!=null&&t>this.max&&(e=this.max.toString()),e}adjustPrecision(e,t){if(this.precision==null)return e;if(t){let n=parseFloat(e).toFixed(this.precision);return parseFloat(n).toString()}let i=String(e).split(".");if(i.length>1){if(i[1].length<=this.precision)return e;if(this.precision>0)return`${i[0]}.${i[1].slice(0,this.precision)}`}return i[0]}setMin(e){return this.min===e?this:(this.min=e,un(this.eInput,"min",e),this)}setMax(e){return this.max===e?this:(this.max=e,un(this.eInput,"max",e),this)}setPrecision(e){return this.precision=e,this}setStep(e){return this.step===e?this:(this.step=e,un(this.eInput,"step",e),this)}setValue(e,t){return this.setValueOrInputValue(i=>super.setValue(i,t),()=>this,e)}setStartValue(e){return this.setValueOrInputValue(t=>super.setValue(t,!0),t=>{this.eInput.value=t},e)}setValueOrInputValue(e,t,i){if(K(i)){let n=this.isScientificNotation(i);if(n&&this.eInput.validity.valid)return e(i);
564if(!n){i=this.adjustPrecision(i);let o=this.normalizeValue(i);n=i!=o}if(n)return t(i)}return e(i)}getValue(){if(!this.eInput.validity.valid)return;let e=this.eInput.value;return this.isScientificNotation(e)?this.adjustPrecision(e,!0):super.getValue()}isScientificNotation(e){return typeof e=="string"&&e.includes("e")}},kF={selector:"AG-INPUT-NUMBER-FIELD",component:Im},_y=["equals","notEqual","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual","inRange","blank","notBlank"],Dm=class{constructor(e,t,i){this.localeService=e,this.optionsFactory=t,this.valueFormatter=i}getModelAsString(e){if(!e)return null;let t=e.operator!=null,i=this.localeService.getLocaleTextFunc();if(t){let n=e,r=(n.conditions??[]).map(s=>this.getModelAsString(s)),a=n.operator==="AND"?"andCondition":"orCondition";return r.join(` ${i(a,my[a])} `)}else{if(e.type==="blank"||e.type==="notBlank")return i(e.type,e.type);{let n=e,o=this.optionsFactory.getCustomOption(n.type),{displayKey:r,displayName:a,numberOfInputs:s}=o||{};return r&&a&&s===0?(i(r,a),a):this.conditionToString(n,o)}}}updateParams(e){this.optionsFactory=e.optionsFactory}formatValue(e){return this.valueFormatter?this.valueFormatter(e??null)??"":String(e)}},yy=class extends Dm{conditionToString(e,t){let{numberOfInputs:i}=t||{};return e.type=="inRange"||i===2?`${this.formatValue(e.filter)}-${this.formatValue(e.filterTo)}`:e.filter!=null?this.formatValue(e.filter):`${e.type}`}};function om(e){let{allowedCharPattern:t}=e??{};return t??null}var EF=class extends Cy{constructor(){super("numberFilter"),this.eValuesFrom=[],this.eValuesTo=[]}refresh(e){return this.numberFilterParams.allowedCharPattern!==e.allowedCharPattern?!1:super.refresh(e)}mapValuesFromModel(e){let{filter:t,filterTo:i,type:n}=e||{};return[this.processValue(t),this.processValue(i)].slice(0,this.getNumberOfInputs(n))}getDefaultDebounceMs(){return 500}comparator(){return(e,t)=>e===t?0:e<t?1:-1}setParams(e){this.numberFilterParams=e,super.setParams(e),this.filterModelFormatter=new yy(this.localeService,this.optionsFactory,this.numberFilterParams.numberFormatter)}getDefaultFilterOptions(){return _y}setElementValue(e,t,i){let n=!i&&this.numberFilterParams.numberFormatter?this.numberFilterParams.numberFormatter(t??null):t;super.setElementValue(e,n)}createValueElement(){let e=om(this.numberFilterParams),t=document.createElement("div");return t.classList.add("ag-filter-body"),qi(t,"presentation"),this.createFromToElement(t,this.eValuesFrom,"from",e),this.createFromToElement(t,this.eValuesTo,"to",e),t}createFromToElement(e,t,i,n){let o=this.createManagedBean(n?new Qr({allowedCharPattern:n}):new Im);o.addCssClass(`ag-filter-${i}`),o.addCssClass("ag-filter-filter"),t.push(o),e.appendChild(o.getGui())}removeValueElements(e,t){this.removeComponents(this.eValuesFrom,e,t),this.removeComponents(this.eValuesTo,e,t)}getValues(e){let t=[];return this.forEachPositionInput(e,(i,n,o,r)=>{n<r&&t.push(this.processValue(this.stringToFloat(i.getValue())))}),t}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}getFilterType(){return"number"}processValue(e){return e==null||isNaN(e)?null:e}stringToFloat(e){if(typeof e=="number")return e;let t=_o(e);return t!=null&&t.trim()===""&&(t=null),this.numberFilterParams.numberParser?this.numberFilterParams.numberParser(t):t==null||t.trim()==="-"?null:parseFloat(t)}createCondition(e){let t=this.getConditionType(e),i={filterType:this.getFilterType(),type:t},n=this.getValues(e);return n.length>0&&(i.filter=n[0]),n.length>1&&(i.filterTo=n[1]),i}getInputs(e){return e>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]}getModelAsString(e){return this.filterModelFormatter.getModelAsString(e)??""}hasInvalidInputs(){let e=!1;return this.forEachInput(t=>{if(!t.getInputElement().validity.valid){e=!0;return}}),e}},wy=["contains","notContains","equals","notEqual","startsWith","endsWith","blank","notBlank"],xy=class extends Dm{conditionToString(e,t){let{numberOfInputs:i}=t||{};return e.type=="inRange"||i===2?`${e.filter}-${e.filterTo}`:e.filter!=null?`${e.filter}`:`${e.type}`}};function Sy(e){let t=e&&e.trim();return t===""?e:t}var MF=class extends vy{constructor(){super("textFilter"),this.defaultFormatter=e=>e,this.defaultLowercaseFormatter=e=>e==null?null:e.toString().toLowerCase(),this.defaultMatcher=({filterOption:e,value:t,filterText:i})=>{if(i==null)return!1;switch(e){case"contains":return t.indexOf(i)>=0;case"notContains":return t.indexOf(i)<0;case"equals":return t===i;case"notEqual":return t!=i;case"startsWith":return t.indexOf(i)===0;case"endsWith":{let n=t.lastIndexOf(i);return n>=0&&n===t.length-i.length}default:return!1}},this.eValuesFrom=[],this.eValuesTo=[]}getDefaultDebounceMs(){return 500}setParams(e){this.textFilterParams=e,super.setParams(e),this.matcher=this.getTextMatcher(),this.formatter=this.textFilterParams.textFormatter||(this.textFilterParams.caseSensitive?this.defaultFormatter:this.defaultLowercaseFormatter),this.filterModelFormatter=new xy(this.localeService,this.optionsFactory)}getTextMatcher(){let e=this.textFilterParams.textCustomComparator;return e?($("textCustomComparator is deprecated, use textMatcher instead."),({filterOption:t,value:i,filterText:n})=>e(t,i,n)):this.textFilterParams.textMatcher||this.defaultMatcher}createCondition(e){let t=this.getConditionType(e),i={filterType:this.getFilterType(),type:t},n=this.getValuesWithSideEffects(e,!0);return n.length>0&&(i.filter=n[0]),n.length>1&&(i.filterTo=n[1]),i}getFilterType(){return"text"}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}getInputs(e){return e>
vendor: 7,994 bytes, line 564
564=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]}getValues(e){return this.getValuesWithSideEffects(e,!1)}getValuesWithSideEffects(e,t){let i=[];return this.forEachPositionInput(e,(n,o,r,a)=>{if(o<a){let s=_o(n.getValue());t&&this.textFilterParams.trimInput&&(s=Sy(s)??null,n.setValue(s,!0)),i.push(s)}}),i}getDefaultFilterOptions(){return wy}createValueElement(){let e=document.createElement("div");return e.classList.add("ag-filter-body"),qi(e,"presentation"),this.createFromToElement(e,this.eValuesFrom,"from"),this.createFromToElement(e,this.eValuesTo,"to"),e}createFromToElement(e,t,i){let n=this.createManagedBean(new Qr);n.addCssClass(`ag-filter-${i}`),n.addCssClass("ag-filter-filter"),t.push(n),e.appendChild(n.getGui())}removeValueElements(e,t){this.removeComponents(this.eValuesFrom,e,t),this.removeComponents(this.eValuesTo,e,t)}mapValuesFromModel(e){let{filter:t,filterTo:i,type:n}=e||{};return[t||null,i||null].slice(0,this.getNumberOfInputs(n))}evaluateNullValue(e){return e?["notEqual","notContains","blank"].indexOf(e)>=0:!1}evaluateNonNullValue(e,t,i,n){let o=e.map(f=>this.formatter(f))||[],r=this.formatter(t),{api:a,colDef:s,column:l,context:c,textFormatter:h}=this.textFilterParams;if(i.type==="blank")return this.isBlank(t);if(i.type==="notBlank")return!this.isBlank(t);let m={api:a,colDef:s,column:l,context:c,node:n.node,data:n.data,filterOption:i.type,value:r,textFormatter:h};return o.some(f=>this.matcher(ye(B({},m),{filterText:f})))}getModelAsString(e){return this.filterModelFormatter.getModelAsString(e)??""}};function ky(e){if(typeof e=="number")return e;if(typeof e=="string"){let t=parseInt(e);return isNaN(t)?void 0:t}}function Vn(e,t=Number.MAX_VALUE){return i=>{let n=ky(i);if(!(n==null||n<e||n>t))return n}}function Ll(e,t){return e.toString().padStart(t,"0")}function TF(e,t){let i=[];for(let n=e;n<=t;n++)i.push(n);return i}function IF(e,t,i){return typeof e!="number"?"":e.toString().replace(".",i).replace(/(\d)(?=(\d{3})+(?!\d))/g,`$1${t}`)}function pn(e,t=!0,i="-"){if(!e)return null;let n=[e.getFullYear(),e.getMonth()+1,e.getDate()].map(o=>Ll(o,2)).join(i);return t&&(n+=" "+[e.getHours(),e.getMinutes(),e.getSeconds()].map(o=>Ll(o,2)).join(":")),n}var Lg=e=>{if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"};function Nl(e,t="YYYY-MM-DD"){let i=Ll(e.getFullYear(),4),n=["January","February","March","April","May","June","July","August","September","October","November","December"],o=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],r={YYYY:()=>i.slice(i.length-4,i.length),YY:()=>i.slice(i.length-2,i.length),Y:()=>`${e.getFullYear()}`,MMMM:()=>n[e.getMonth()],MMM:()=>n[e.getMonth()].slice(0,3),MM:()=>Ll(e.getMonth()+1,2),Mo:()=>`${e.getMonth()+1}${Lg(e.getMonth()+1)}`,M:()=>`${e.getMonth()+1}`,Do:()=>`${e.getDate()}${Lg(e.getDate())}`,DD:()=>Ll(e.getDate(),2),D:()=>`${e.getDate()}`,dddd:()=>o[e.getDay()],ddd:()=>o[e.getDay()].slice(0,3),dd:()=>o[e.getDay()].slice(0,2),do:()=>`${e.getDay()}${Lg(e.getDay())}`,d:()=>`${e.getDay()}`},a=new RegExp(Object.keys(r).join("|"),"g");return t.replace(a,s=>s in r?r[s]():s)}function Fi(e){if(!e)return null;let[t,i]=e.split(" ");if(!t)return null;let n=t.split("-").map(m=>parseInt(m,10));if(n.filter(m=>!isNaN(m)).length!==3)return null;let[o,r,a]=n,s=new Date(o,r-1,a);if(s.getFullYear()!==o||s.getMonth()!==r-1||s.getDate()!==a)return null;if(!i||i==="00:00:00")return s;let[l,c,h]=i.split(":").map(m=>parseInt(m,10));return l>=0&&l<24&&s.setHours(l),c>=0&&c<60&&s.setMinutes(c),h>=0&&h<60&&s.setSeconds(h),s}var Ey=class{constructor(e,t,i,n,o){this.alive=!0,this.context=e,this.eParent=n,t.getDateCompDetails(i).newAgStackInstance().then(s=>{if(!this.alive){e.destroyBean(s);return}this.dateComp=s,s&&(n.appendChild(s.getGui()),s.afterGuiAttached&&s.afterGuiAttached(),this.tempValue&&s.setDate(this.tempValue),this.disabled!=null&&this.setDateCompDisabled(this.disabled),o?.(this))})}destroy(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)}getDate(){return this.dateComp?this.dateComp.getDate():this.tempValue}setDate(e){this.dateComp?this.dateComp.setDate(e):this.tempValue=e}setDisabled(e){this.dateComp?this.setDateCompDisabled(e):this.disabled=e}setDisplayed(e){it(this.eParent,e)}setInputPlaceholder(e){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(e)}setInputAriaLabel(e){this.dateComp&&this.dateComp.setInputAriaLabel&&this.dateComp.setInputAriaLabel(e)}afterGuiAttached(e){this.dateComp&&typeof this.dateComp.afterGuiAttached=="function"&&this.dateComp.afterGuiAttached(e)}updateParams(e){let t=!1;this.dateComp?.refresh&&typeof this.dateComp.refresh=="function"&&this.dateComp.refresh(e)!==null&&(t=!0),!t&&this.dateComp?.onParamsUpdated&&typeof this.dateComp.onParamsUpdated=="function"&&this.dateComp.onParamsUpdated(e)!==null&&$("Custom date component method 'onParamsUpdated' is deprecated. Use 'refresh' instead.")}setDateCompDisabled(e){this.dateComp!=null&&this.dateComp.setDisabled!=null&&this.dateComp.setDisabled(e)}},My=["equals","notEqual","lessThan","greaterThan","inRange","blank","notBlank"],Ty=class extends Dm{constructor(e,t,i){super(t,i),this.dateFilterParams=e}conditionToString(e,t){let{type:i}=e,{numberOfInputs:n}=t||{},o=i=="inRange"||n===2,r=Fi(e.dateFrom),a=Fi(e.dateTo),s=this.dateFilterParams.inRangeFloatingFilterDateFormat;if(o){let l=r!==null?Nl(r,s):"null",c=a!==null?Nl(a,s):"null";return`${l}-${c}`}return r!=null?Nl(r,s):`${i}`}updateParams(e){super.updateParams(e),this.dateFilterParams=e.dateFilterParams}},t_=1e3,i_=1/0,DF=class extends Cy{constructor(){super("dateFilter"),this.eConditionPanelsFrom=[],this.eConditionPanelsTo=[],this.dateConditionFromComps=[],this.dateConditionToComps=[],this.minValidYear=t_,this.maxValidYear=i_,this.minValidDate=null,this.maxValidDate=null}wireBeans(e){super.wireBeans(e),this.context=e.context,this.userComponentFactory=e.userComponentFactory}afterGuiAttached(e){super.afterGuiAttached(e),this.dateConditionFromComps[0].afterGuiAttached(e)}mapValuesFromModel(e){let{dateFrom:t,dateTo:i,type:n}=e||{};return[t&&Fi(t)||null,i&&Fi(i)||null].slice(0,this.getNumberOfInputs(n))}comparator(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)}defaultComparator(e,t){let i=t;return t==null||i<e?-1:i>e?1:0}setParams(e){this.dateFilterParams=e,super.setParams(e);let t=(i,n)=>{if(e[i]!=null)if(isNaN(e[i]))$(`DateFilter ${i} is not a number`);else return e[i]==null?n:Number(e[i]);return n};this.minValidYear=t("minValidYear",t_),this.maxValidYear=t("maxValidYear",i_),this.minValidYear>this.maxValidYear&&$("DateFilter minValidYear should be <= maxValidYear"),e.minValidDate?this.minValidDate=e.minValidDate instanceof Date?e.minValidDate:Fi(e.minValidDate):this.minValidDate=null,e.maxValidDate?this.maxValidDate=e.maxValidDate instanceof Date?e.maxValidDate:Fi(e.maxValidDate):this.maxValidDate=null,this.minValidDate&&this.maxValidDate&&this.minValidDate>this.maxValidDate&&$("DateFilter minValidDate should be <= maxValidDate"),this.filterModelFormatter=new Ty(this.dateFilterParams,this.localeService,this.optionsFactory)}createDateCompWrapper(e){let t=new Ey(this.context,this.userComponentFactory,{onDateChanged:()=>this.onUiChanged(),filterParams:this.dateFilterParams},e);return this.addDestroyFunc(()=>t.destroy()),t}setElementValue(e,t){e.setDate(t)}setElementDisplayed(e,t){e.setDisplayed(t)}setElementDisabled(e,t){e.setDisabled(t)}getDefaultFilterOptions(){return My}createValueElement(){let t=dt(this.gos).createElement("div");return t.classList.add("ag-filter-body"),this.createFromToElement(t,this.eConditionPanelsFrom,this.dateConditionFromComps,"from"),this.createFromToElement(t,this.eConditionPanelsTo,this.dateConditionToComps,"to"),t}createFromToElement(e,t,i,n){let r=dt(this.gos).createElement("div");r.classList.add(`ag-filter-${n}`),r.classList.add(`ag-filter-date-${n}
564`),t.push(r),e.appendChild(r),i.push(this.createDateCompWrapper(r))}removeValueElements(e,t){this.removeDateComps(this.dateConditionFromComps,e,t),this.removeDateComps(this.dateConditionToComps,e,t),this.removeItems(this.eConditionPanelsFrom,e,t),this.removeItems(this.eConditionPanelsTo,e,t)}removeDateComps(e,t,i){this.removeItems(e,t,i).forEach(o=>o.destroy())}isValidDateValue(e){if(e===null)return!1;if(this.minValidDate){if(e<this.minValidDate)return!1}else if(e.getUTCFullYear()<this.minValidYear)return!1;if(this.maxValidDate){if(e>this.maxValidDate)return!1}else if(e.getUTCFullYear()>this.maxValidYear)return!1;return!0}isConditionUiComplete(e){if(!super.isConditionUiComplete(e))return!1;let t=!0;return this.forEachInput((i,n,o,r)=>{o!==e||!t||n>=r||(t=t&&this.isValidDateValue(i.getDate()))}),t}areSimpleModelsEqual(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type}getFilterType(){return"date"}createCondition(e){let t=this.getConditionType(e),i={},n=this.getValues(e);return n.length>0&&(i.dateFrom=pn(n[0])),n.length>1&&(i.dateTo=pn(n[1])),B({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:t},i)}resetPlaceholder(){let e=this.localeService.getLocaleTextFunc(),t=this.translate("dateFormatOoo"),i=e("ariaFilterValue","Filter Value");this.forEachInput(n=>{n.setInputPlaceholder(t),n.setInputAriaLabel(i)})}getInputs(e){return e>=this.dateConditionFromComps.length?[null,null]:[this.dateConditionFromComps[e],this.dateConditionToComps[e]]}getValues(e){let t=[];return this.forEachPositionInput(e,(i,n,o,r)=>{n<r&&t.push(i.getDate())}),t}translate(e){return e==="lessThan"?super.translate("before"):e==="greaterThan"?super.translate("after"):super.translate(e)}getModelAsString(e){return this.filterModelFormatter.getModelAsString(e)??""}},Pm=class extends H{constructor(e,t,i,n){super(),this.columnOrGroup=e,this.columnOrGroup=e,this.eCell=t,this.ariaEl=this.eCell.querySelector("[role=columnheader]")||this.eCell,this.colsSpanning=n,this.beans=i}setColsSpanning(e){this.colsSpanning=e,this.onLeftChanged()}getColumnOrGroup(){return this.beans.gos.get("enableRtl")&&this.colsSpanning?Ae(this.colsSpanning):this.columnOrGroup}postConstruct(){let e=this.onLeftChanged.bind(this);this.addManagedListeners(this.columnOrGroup,{leftChanged:e}),this.setLeftFirstTime(),this.addManagedEventListeners({displayedColumnsWidthChanged:e}),this.addManagedPropertyListener("domLayout",e)}setLeftFirstTime(){let e=this.beans.gos.get("suppressColumnMoveAnimation"),t=K(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&t&&!e?this.animateInLeft():this.onLeftChanged()}animateInLeft(){let e=this.getColumnOrGroup(),t=e.getLeft(),i=e.getOldLeft(),n=this.modifyLeftForPrintLayout(e,i),o=this.modifyLeftForPrintLayout(e,t);this.setLeft(n),this.actualLeft=o,this.beans.columnAnimationService.executeNextVMTurn(()=>{this.actualLeft===o&&this.setLeft(o)})}onLeftChanged(){let e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)}modifyLeftForPrintLayout(e,t){if(!Bt(this.beans.gos,"print")||e.getPinned()==="left")return t;let n=this.beans.visibleColsService.getColsLeftWidth();if(e.getPinned()==="right"){let o=this.beans.visibleColsService.getBodyContainerWidth();return n+o+t}return n+t}setLeft(e){if(K(e)&&(this.eCell.style.left=`${e}px`),wt(this.columnOrGroup)){let t=this.columnOrGroup.getLeafColumns();if(!t.length)return;t.length>1&&jR(this.ariaEl,t.length)}}},PF="ag-column-first",RF="ag-column-last";function Iy(e,t,i,n){return Fe(e)?[]:OF(e.headerClass,e,t,i,n)}function Dy(e,t,i){e.addOrRemoveCssClass(PF,i.isColAtEdge(t,"first")),e.addOrRemoveCssClass(RF,i.isColAtEdge(t,"last"))}function FF(e,t,i,n){return t.addGridCommonParams({colDef:e,column:i,columnGroup:n})}function OF(e,t,i,n,o){if(Fe(e))return[];let r;if(typeof e=="function"){let a=FF(t,i,n,o);r=e(a)}else r=e;return typeof r=="string"?[r]:Array.isArray(r)?[...r]:[]}var AF=0,LF=(()=>{let e=class Py extends H{constructor(i,n,o){super(),this.resizeToggleTimeout=0,this.resizeMultiplier=1,this.resizeFeature=null,this.lastFocusEvent=null,this.dragSource=null,this.columnGroupChild=i,this.parentRowCtrl=o,this.beans=n,this.instanceId=i.getUniqueId()+"-"+AF++}wireBeans(i){this.pinnedWidthService=i.pinnedWidthService,this.focusService=i.focusService,this.userComponentFactory=i.userComponentFactory,this.ctrlsService=i.ctrlsService,this.dragAndDropService=i.dragAndDropService,this.menuService=i.menuService}postConstruct(){let i=this.refreshTabIndex.bind(this);this.addManagedPropertyListeners(["suppressHeaderFocus"],i),this.addManagedEventListeners({overlayExclusiveChanged:i})}shouldStopEventPropagation(i){let{headerRowIndex:n,column:o}=this.focusService.getFocusedHeader();return wF(this.gos,i,n,o)}getWrapperHasFocus(){return nt(this.gos)===this.eGui}setGui(i,n){this.eGui=i,this.addDomData(n),n.addManagedListeners(this.beans.eventService,{displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this)}),n.addManagedElementListeners(this.eGui,{focus:this.onGuiFocus.bind(this)}),this.onDisplayedColumnsChanged(),this.refreshTabIndex()}onGuiFocus(){this.eventService.dispatchEvent({type:"headerFocused",column:this.column})}setupAutoHeight(i){let{wrapperElement:n,checkMeasuringCallback:o,compBean:r}=i,{animationFrameService:a,resizeObserverService:s,columnModel:l,gos:c}=this.beans,h=M=>
564{if(!this.isAlive()||!r.isAlive())return;let{paddingTop:D,paddingBottom:I,borderBottomWidth:F,borderTopWidth:W}=Yr(this.getGui()),re=D+I+F+W,q=n.offsetHeight+re;if(M<5){let ce=dt(c),_e=!ce||!ce.contains(n),Et=q==0;if(_e||Et){a.requestAnimationFrame(()=>h(M+1));return}}l.setColHeaderHeight(this.column,q)},m=!1,f,b=()=>{let M=this.column.isAutoHeaderHeight();M&&!m&&_(),!M&&m&&S()},_=()=>{m=!0,h(0),this.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!0),f=s.observeResize(n,()=>h(0))},S=()=>{m=!1,f&&f(),this.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!1),f=void 0};b(),r.addDestroyFunc(()=>S()),r.addManagedListeners(this.column,{widthChanged:()=>m&&h(0)}),r.addManagedEventListeners({sortChanged:()=>{m&&window.setTimeout(()=>h(0))}}),o&&o(b)}onDisplayedColumnsChanged(){let{comp:i,column:n,beans:o,eGui:r}=this;!i||!n||!r||(Dy(i,n,o.visibleColsService),j_(r,o.visibleColsService.getAriaColIndex(n)))}addResizeAndMoveKeyboardListeners(i){this.resizeFeature&&i.addManagedListeners(this.eGui,{keydown:this.onGuiKeyDown.bind(this),keyup:this.onGuiKeyUp.bind(this)})}refreshTabIndex(){let i=this.focusService.isHeaderFocusSuppressed();this.eGui&&un(this.eGui,"tabindex",i?null:"-1")}onGuiKeyDown(i){let n=nt(this.gos),o=i.key===j.LEFT||i.key===j.RIGHT;if(this.isResizing&&(i.preventDefault(),i.stopImmediatePropagation()),n!==this.eGui||!i.shiftKey&&!i.altKey||((this.isResizing||o)&&(i.preventDefault(),i.stopImmediatePropagation()),!o))return;let r=i.key===j.LEFT!==this.gos.get("enableRtl"),a=uy[r?"Left":"Right"];if(i.altKey){this.isResizing=!0,this.resizeMultiplier+=1;let s=this.getViewportAdjustedResizeDiff(i);this.resizeHeader(s,i.shiftKey),this.resizeFeature?.toggleColumnResizing(!0)}else this.moveHeader(a)}getViewportAdjustedResizeDiff(i){let n=this.getResizeDiff(i);if(this.column.getPinned()){let r=this.pinnedWidthService.getPinnedLeftWidth(),a=this.pinnedWidthService.getPinnedRightWidth(),s=ql(this.ctrlsService.getGridBodyCtrl().getBodyViewportElement())-50;if(r+a+n>s)if(s>r+a)n=s-r-a;else return 0}return n}getResizeDiff(i){let n=i.key===j.LEFT!==this.gos.get("enableRtl"),o=this.column.getPinned(),r=this.gos.get("enableRtl");return o&&r!==(o==="right")&&(n=!n),(n?-1:1)*this.resizeMultiplier}onGuiKeyUp(){this.isResizing&&(this.resizeToggleTimeout&&(window.clearTimeout(this.resizeToggleTimeout),this.resizeToggleTimeout=0),this.isResizing=!1,this.resizeMultiplier=1,this.resizeToggleTimeout=window.setTimeout(()=>{this.resizeFeature?.toggleColumnResizing(!1)},150))}handleKeyDown(i){let n=this.getWrapperHasFocus();switch(i.key){case j.PAGE_DOWN:case j.PAGE_UP:case j.PAGE_HOME:case j.PAGE_END:n&&i.preventDefault()}}addDomData(i){let n=Py.DOM_DATA_KEY_HEADER_CTRL;Wr(this.gos,this.eGui,n,this),i.addDestroyFunc(()=>Wr(this.gos,this.eGui,n,null))}getGui(){return this.eGui}focus(i){return this.eGui?(this.lastFocusEvent=i||null,this.eGui.focus(),!0):!1}getRowIndex(){return this.parentRowCtrl.getRowIndex()}getParentRowCtrl(){return this.parentRowCtrl}getPinned(){return this.parentRowCtrl.getPinned()}getColumnGroupChild(){return this.columnGroupChild}removeDragSource(){this.dragSource&&(this.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null)}handleContextMenuMouseEvent(i,n,o){let r=i??n;this.gos.get("preventDefaultOnContextMenu")&&r.preventDefault(),this.menuService.isHeaderContextMenuEnabled(o)&&this.menuService.showHeaderContextMenu(o,i,n),this.dispatchColumnMouseEvent("columnHeaderContextMenu",o)}dispatchColumnMouseEvent(i,n){this.eventService.dispatchEvent({type:i,column:n})}clearComponent(){this.removeDragSource(),this.resizeFeature=null,this.comp=null,this.eGui=null}destroy(){super.destroy(),this.column=null,this.lastFocusEvent=null,this.columnGroupChild=null,this.parentRowCtrl=null}};return e.DOM_DATA_KEY_HEADER_CTRL="headerCtrl",e})(),Ru=LF,Rm=class extends H{wireBeans(e){this.columnHoverService=e.columnHoverService}constructor(e,t){super(),this.columns=e,this.element=t}postConstruct(){this.gos.get("columnHoverHighlight")&&this.addMouseHoverListeners()}addMouseHoverListeners(){this.addManagedListeners(this.element,{mouseout:this.onMouseOut.bind(this),mouseover:this.onMouseOver.bind(this)})}onMouseOut(){this.columnHoverService.clearMouseOver()}onMouseOver(){this.columnHoverService.setMouseOver(this.columns)}},NF=class extends Ru{constructor(e,t,i){super(e,t,i),this.iconCreated=!1,this.column=e}setComp(e,t,i,n,o){this.comp=e,o=$l(this,this.beans.context,o),this.eButtonShowMainFilter=i,this.eFloatingFilterBody=n,this.setGui(t,o),this.setupActive(),this.setupWidth(o),this.setupLeft(o),this.setupHover(o),this.setupFocus(o),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(o),this.setupUi(),o.addManagedElementListeners(this.eButtonShowMainFilter,{click:this.showParentFilter.bind(this)}),this.setupFilterChangedListener(o),o.addManagedListeners(this.column,{colDefChanged:()=>this.onColDefChanged(o)}),o.addDestroyFunc(()=>{this.eButtonShowMainFilter=null,this.eFloatingFilterBody=null,this.userCompDetail
564s=null,this.clearComponent()})}resizeHeader(){}moveHeader(){}setupActive(){let e=this.column.getColDef(),t=!!e.filter,i=!!e.floatingFilter;this.active=t&&i}setupUi(){if(this.comp.setButtonWrapperDisplayed(!this.suppressFilterButton&&this.active),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton),!this.active||this.iconCreated)return;let e=Wi("filter",this.gos,this.column);e&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(e))}setupFocus(e){e.createManagedBean(new Kr(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))}setupAria(){let e=this.localeService.getLocaleTextFunc();ss(this.eButtonShowMainFilter,e("ariaFilterMenuOpen","Open Filter Menu"))}onTabKeyDown(e){if(nt(this.gos)===this.eGui)return;let n=this.focusService.findNextFocusableElement(this.eGui,null,e.shiftKey);if(n){this.beans.headerNavigationService.scrollToColumn(this.column),e.preventDefault(),n.focus();return}let o=this.findNextColumnWithFloatingFilter(e.shiftKey);o&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:o},event:e})&&e.preventDefault()}findNextColumnWithFloatingFilter(e){let t=this.beans.visibleColsService,i=this.column;do if(i=e?t.getColBefore(i):t.getColAfter(i),!i)break;while(!i.getColDef().filter||!i.getColDef().floatingFilter);return i}handleKeyDown(e){super.handleKeyDown(e);let t=this.getWrapperHasFocus();switch(e.key){case j.UP:case j.DOWN:t||e.preventDefault();case j.LEFT:case j.RIGHT:if(t)return;e.stopPropagation();case j.ENTER:t&&this.focusService.focusInto(this.eGui)&&e.preventDefault();break;case j.ESCAPE:t||this.eGui.focus()}}onFocusIn(e){if(this.eGui.contains(e.relatedTarget))return;let i=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),n=!!e.relatedTarget&&ts(e.relatedTarget,"ag-floating-filter");if(i&&n&&e.target===this.eGui){let r=this.lastFocusEvent,a=!!(r&&r.key===j.TAB);if(r&&a){let s=r.shiftKey;this.focusService.focusInto(this.eGui,s)}}let o=this.getRowIndex();this.beans.focusService.setFocusedHeader(o,this.column)}setupHover(e){e.createManagedBean(new Rm([this.column],this.eGui));let t=()=>{if(!this.gos.get("columnHoverHighlight"))return;let i=this.beans.columnHoverService.isHovered(this.column);this.comp.addOrRemoveCssClass("ag-column-hover",i)};e.addManagedEventListeners({columnHoverChanged:t}),t()}setupLeft(e){let t=new Pm(this.column,this.eGui,this.beans);e.createManagedBean(t)}setupFilterButton(){this.suppressFilterButton=!this.menuService.isFloatingFilterButtonEnabled(this.column),this.highlightFilterButtonWhenActive=!this.menuService.isLegacyMenuEnabled()}setupUserComp(){if(!this.active)return;let e=this.beans.filterManager?.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter());e&&this.setCompDetails(e)}setCompDetails(e){this.userCompDetails=e,this.comp.setCompDetails(e)}showParentFilter(){let e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.menuService.showFilterMenu({column:this.column,buttonElement:e,containerType:"floatingFilter",positionBy:"button"})}setupSyncWithFilter(e){if(!this.active)return;let{filterManager:t}=this.beans,i=n=>{if(n?.source==="filterDestroyed"&&!this.isAlive())return;let o=this.comp.getFloatingFilterComp();o&&o.then(r=>{if(r){let a=t?.getCurrentFloatingFilterParentModel(this.column),s=n?ye(B({},n),{columns:n.columns??[],source:n.source==="api"?"api":"columnFilter"}):null;r.onParentModelChanged(a,s)}})};[this.destroySyncListener]=e.addManagedListeners(this.column,{filterChanged:i}),t?.isFilterActive(this.column)&&i(null)}setupWidth(e){let t=()=>{let i=`${this.column.getActualWidth()}px`;this.comp.setWidth(i)};e.addManagedListeners(this.column,{widthChanged:t}),t()}setupFilterChangedListener(e){this.active&&([this.destroyFilterChangedListener]=e.addManagedListeners(this.column,{filterChanged:this.updateFilterButton.bind(this)}),this.updateFilterButton())}updateFilterButton(){if(!this.suppressFilterButton&&this.comp){let e=!!this.beans.filterManager?.is
564FilterAllowed(this.column);this.comp.setButtonWrapperDisplayed(e),this.highlightFilterButtonWhenActive&&e&&this.eButtonShowMainFilter.classList.toggle("ag-filter-active",this.column.isFilterActive())}}onColDefChanged(e){let t=this.active;this.setupActive();let i=!t&&this.active;t&&!this.active&&(this.destroySyncListener(),this.destroyFilterChangedListener());let n=this.active?this.beans.filterManager?.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter()):null,o=this.comp.getFloatingFilterComp();!o||!n?this.updateCompDetails(e,n,i):o.then(r=>{!r||this.beans.filterManager?.areFilterCompsDifferent(this.userCompDetails??null,n)?this.updateCompDetails(e,n,i):this.updateFloatingFilterParams(n)})}updateCompDetails(e,t,i){this.isAlive()&&(this.setCompDetails(t),this.setupFilterButton(),this.setupUi(),i&&(this.setupSyncWithFilter(e),this.setupFilterChangedListener(e)))}updateFloatingFilterParams(e){if(!e)return;let t=e.params;this.comp.getFloatingFilterComp()?.then(i=>{let n=!1;i?.refresh&&typeof i.refresh=="function"&&i.refresh(t)!==null&&(n=!0),!n&&i?.onParamsUpdated&&typeof i.onParamsUpdated=="function"&&i.onParamsUpdated(t)!==null&&$("Custom floating filter method 'onParamsUpdated' is deprecated. Use 'refresh' instead.")})}destroy(){super.destroy(),this.destroySyncListener=null,this.destroyFilterChangedListener=null}};var Se="32.3.9";function zF(e){return!!e.filterManager?.isColumnFilterPresent()||!!e.filterManager?.isAggregateFilterPresent()}function BF(e,t,i){return e.filterManager?.getFilterInstance(t,i)}function VF(e,t){return e.filterManager?.getColumnFilterInstance(t)??Promise.resolve(void 0)}function HF(e,t){let i=e.columnModel.getColDefCol(t);if(i)return e.filterManager?.destroyFilter(i,"api")}function GF(e,t){e.frameworkOverrides.wrapIncoming(()=>e.filterManager?.setFilterModel(t))}function UF(e){return e.filterManager?.getFilterModel()??{}}function jF(e,t){return e.filterManager?.getColumnFilterModel(t)??null}function WF(e,t,i){return e.filterManager?.setColumnFilterModel(t,i)??Promise.resolve()}function $F(e,t){let i=e.columnModel.getCol(t);if(!i){Be(`column '${t}' not found`);return}e.menuService.showFilterMenu({column:i,containerType:"columnFilter",positionBy:"auto"})}function qF(e,t,i){if(t==null)return null;let n=null,{compName:o,jsComp:r,fwComp:a}=cy.getCompKeys(e,t,Em);return o?n={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",group:"agGroupColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"}[o]:r==null&&a==null&&t.filter===!0&&(n=i()),n}var n_={january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December"},o_=["january","february","march","april","may","june","july","august","september","october","november","december"],YF=class extends H{constructor(){super(...arguments),this.beanName="columnFilterService",this.allColumnFilters=new Map,this.allColumnListeners=new Map,this.activeAggregateFilters=[],this.activeColumnFilters=[],this.processingFilterChange=!1,this.filterModelUpdateQueue=[],this.columnFilterModelUpdateQueue=[]}wireBeans(e){this.valueService=e.valueService,this.columnModel=e.columnModel,this.rowModel=e.rowModel,this.userComponentFactory=e.userComponentFactory,this.rowRenderer=e.rowRenderer,this.dataTypeService=e.dataTypeService,this.filterManager=e.filterManager}postConstruct(){this.addManagedEventListeners({gridColumnsChanged:this.onColumnsChanged.bind(this),rowDataUpdated:()=>this.onNewRowsLoaded("rowDataUpdated"),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)}),this.initialFilterModel=B({},this.gos.get("initialState")?.filter?.filterModel??{})}setFilterModel(e,t="api"){if(this.dataTypeService?.isPendingInference()){this.filterModelUpdateQueue.push({model:e,source:t});return}let i=[],n=this.getFilterModel(!0);if(e){let o=new Set(Object.keys(e));
564this.allColumnFilters.forEach((r,a)=>{let s=e[a];i.push(this.setModelOnFilterWrapper(r.filterPromise,s)),o.delete(a)}),o.forEach(r=>{let a=this.columnModel.getColDefCol(r)||this.columnModel.getCol(r);if(!a){$("setFilterModel() - no column found for colId: "+r);return}if(!a.isFilterAllowed()){$("setFilterModel() - unable to fully apply model, filtering disabled for colId: "+r);return}let s=this.getOrCreateFilterWrapper(a);if(!s){$("setFilterModel() - unable to fully apply model, unable to create filter for colId: "+r);return}i.push(this.setModelOnFilterWrapper(s.filterPromise,e[r]))})}else this.allColumnFilters.forEach(o=>{i.push(this.setModelOnFilterWrapper(o.filterPromise,null))});ji.all(i).then(()=>{let o=this.getFilterModel(!0),r=[];this.allColumnFilters.forEach((a,s)=>{let l=n?n[s]:null,c=o?o[s]:null;zl(l,c)||r.push(a.column)}),r.length>0&&this.filterManager?.onFilterChanged({columns:r,source:t})})}setModelOnFilterWrapper(e,t){return new ji(i=>{e.then(n=>{typeof n.setModel!="function"&&($("filter missing setModel method, which is needed for setFilterModel"),i()),(n.setModel(t)||ji.resolve()).then(()=>i())})})}getFilterModel(e){let t={},{allColumnFilters:i,initialFilterModel:n}=this;return i.forEach((o,r)=>{let a=this.getModelFromFilterWrapper(o);K(a)&&(t[r]=a)}),e||Object.entries(n).forEach(([o,r])=>{K(r)&&!i.has(o)&&this.columnModel.getCol(o)?.isFilterAllowed()&&(t[o]=r)}),t}getModelFromFilterWrapper(e){let{filter:t}=e;return t?typeof t.getModel!="function"?($("filter API missing getModel method, which is needed for getFilterModel"),null):t.getModel():this.getModelFromInitialState(e.column)}getModelFromInitialState(e){return this.initialFilterModel[e.getColId()]??null}isColumnFilterPresent(){return this.activeColumnFilters.length>0}isAggregateFilterPresent(){return!!this.activeAggregateFilters.length}disableColumnFilters(){return this.allColumnFilters.size?(this.allColumnFilters.forEach(e=>this.disposeFilterWrapper(e,"advancedFilterEnabled")),!0):!1}doAggregateFiltersPass(e,t){return this.doColumnFiltersPass(e,t,!0)}updateActiveFilters(){let e=r=>r?r.isFilterActive?r.isFilterActive():($("Filter is missing isFilterActive() method"),!1):!1,t=!!$g(this.gos),i=r=>{if(!r.isPrimary())return!0;let s=!this.columnModel.isPivotActive();return!r.isValueActive()||!s?!1:this.columnModel.isPivotMode()?!0:t},n=[],o=[];return this.forEachColumnFilter((r,a)=>{e(r)&&(i(a.column)?n.push(r):o.push(r))}).then(()=>{this.activeAggregateFilters=n,this.activeColumnFilters=o})}updateFilterFlagInColumns(e,t){return this.forEachColumnFilter((i,n)=>n.column.setFilterActive(i.isFilterActive(),e,t))}forEachColumnFilter(e){return ji.all(Array.from(this.allColumnFilters.values()).map(t=>t.filterPromise.then(i=>e(i,t))))}doColumnFiltersPass(e,t,i){let{data:n,aggData:o}=e,r=i?this.activeAggregateFilters:this.activeColumnFilters,a=i?o:n;for(let s=0;s<r.length;s++){let l=r[s];if(!(l==null||l===t)){if(typeof l.doesFilterPass!="function")throw new Error("Filter is missing method doesFilterPass");if(!l.doesFilterPass({node:e,data:a}))return!1}}return!0}callOnFilterChangedOutsideRenderCycle(e){let t=()=>this.filterManager?.onFilterChanged(e);this.rowRenderer.isRefreshInProgress()?setTimeout(t,0):t()}updateBeforeFilterChanged(e={}){let{filterInstance:t,additionalEventAttributes:i}=e;return this.updateDependentFilters(),this.updateActiveFilters().then(()=>this.updateFilterFlagInColumns("filterChanged",i).then(()=>{this.allColumnFilters.forEach(n=>{n.filterPromise&&n.filterPromise.then(o=>{o&&o!==t&&o.onAnyFilterChanged&&o.onAnyFilterChanged()})}),this.processingFilterChange=!0}))}updateAfterFilterChanged(){this.processingFilterChange=!1}isSuppressFlashingCellsBecauseFiltering(){return!(this.gos.get("allowShowChangeAfterFilter")??!1)&&this.processingFilterChange}onNewRowsLoaded(e){this.forEachColumnFilter(t=>{t.onNewRowsLoaded&&t.onNewRowsLoaded()}).then(()=>this.updateFilterFlagInColumns(e,{afterDataChange:!0})).then(()=>this.updateActiveFilters())}createValueGetter(e){return({node:t})=>this.valueService.getValue(e,t,!0)}createGetValue(e){return(t,i)=>{let n=i?this.columnModel.getCol(i):e;return n?this.valueService.getValue(n,t,!0):void 0}}isFilterActive(e){let{filter:t}=this.cachedFilter(e)??{};return t?t.isFilterActive():this.getModelFromInitialState(e)!=null}getOrCreateFilterWrapper(e){if(!e.isFilterAllowed())return null;let t=this.cachedFilter(e);return t||(t=this.createFilterWrapper(e),this.setColumnFilterWrapper(e,t)),t}cachedFilter(e){return this.allColumnFilters.get(e.getColId())}getDefaultFilter(e){let t;if(Mg(this.gos))t="agSetColumnFilter";else{let i=this.dataTypeService?.getBaseDataType(e);i==="number"?t="agNumberColumnFilter":i==="date"||i==="dateString"?t="agDateColumnFilter":t="agTextColumnFilter"}return t}getDefaultFloatingFilter(e){let t;if(Mg(this.gos))t="agSetColumnFloatingFilter";else{let i=this.dataTypeService?.getBaseDataType(e);i==="number"?t="agNumberColumnFloatingFilter":i==="date"||i==="dateString"?t="agDateColumnFloatingFilter":t="agTextColumnFloatingFilter"}return t}createFilterInstance(e,t){let i=this.getDefaultFilter(e),n=e.getColDef(),o,r=ye(B({},this.createFilterParams(e,n)),{filterModifiedCallback:()=>this.filterModifiedCallbackFactory(o,e)(),filterChangedCallback:s=>this.filterChangedCallbackFactory(o,e)(s),doesRowPassOtherFilter:s=>this.filterManager?this.filterManager.doesRowPassOtherFilters(o,s):!0}),a=this.userComponentFactory.getFilterDetails(n,r,i);return a?{filterPromise:()=>{let s=a.newAgStackInstance();return s?.then(l=>{o=l,t&&(t.filter=l)}),s}
564,compDetails:a}:{filterPromise:null,compDetails:null}}createFilterParams(e,t){return this.gos.addGridCommonParams({column:e,colDef:P_(t),rowModel:this.rowModel,filterChangedCallback:()=>{},filterModifiedCallback:()=>{},valueGetter:this.createValueGetter(e),getValue:this.createGetValue(e),doesRowPassOtherFilter:()=>!0})}createFilterWrapper(e){let t={column:e,filterPromise:null,compiledElement:null,compDetails:null},{filterPromise:i,compDetails:n}=this.createFilterInstance(e,t);return t.filterPromise=i?.()??null,t.compDetails=n,t}onColumnsChanged(){let e=[];this.allColumnFilters.forEach((i,n)=>{let o;i.column.isPrimary()?o=this.columnModel.getColDefCol(n):o=this.columnModel.getCol(n),!(o&&o===i.column)&&(e.push(i.column),this.disposeFilterWrapper(i,"columnChanged"),this.disposeColumnListener(n))});let t=e.every(i=>i.getColDef().filter==="agGroupColumnFilter");e.length>0&&!t?this.filterManager?.onFilterChanged({columns:e,source:"api"}):this.updateDependentFilters()}updateDependentFilters(){this.columnModel.getAutoCols()?.forEach(t=>{t.getColDef().filter==="agGroupColumnFilter"&&this.getOrCreateFilterWrapper(t)})}isFilterAllowed(e){if(!e.isFilterAllowed())return!1;let{filter:i}=this.allColumnFilters.get(e.getColId())??{};return i&&typeof i?.isFilterAllowed=="function"?i.isFilterAllowed():!0}getFloatingFilterCompDetails(e,t){let i=l=>{let c=this.getOrCreateFilterWrapper(e)?.filterPromise;c?.then(h=>{l(Al(h))})},n=e.getColDef(),o=ye(B({},this.createFilterParams(e,n)),{filterChangedCallback:()=>i(l=>this.filterChangedCallbackFactory(l,e)())}),r=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(n,Em,o),a=qF(this.frameworkOverrides,n,()=>this.getDefaultFloatingFilter(e));a==null&&(a="agReadOnlyFloatingFilter");let s={column:e,filterParams:r,currentParentModel:()=>this.getCurrentFloatingFilterParentModel(e),parentFilterInstance:i,showParentFilter:t,suppressFilterButton:!1};return this.userComponentFactory.getFloatingFilterCompDetails(n,s,a)}getCurrentFloatingFilterParentModel(e){return this.getModelFromFilterWrapper(this.cachedFilter(e)??{column:e})}destroyFilter(e,t="api"){let i=e.getColId(),n=this.allColumnFilters.get(i);this.disposeColumnListener(i),delete this.initialFilterModel[i],n&&(this.disposeFilterWrapper(n,t),this.filterManager?.onFilterChanged({columns:[e],source:"api"}))}disposeColumnListener(e){let t=this.allColumnListeners.get(e);t&&(this.allColumnListeners.delete(e),t())}disposeFilterWrapper(e,t){e.filterPromise.then(i=>{this.destroyBean(i),e.column.setFilterActive(!1,"filterDestroyed"),this.allColumnFilters.delete(e.column.getColId()),this.eventService.dispatchEvent({type:"filterDestroyed",source:t,column:e.column})})}filterModifiedCallbackFactory(e,t){return()=>{this.eventService.dispatchEvent({type:"filterModified",column:t,filterInstance:e})}}filterChangedCallbackFactory(e,t){return i=>{let n=i?.source??"columnFilter",o={filter:e,additionalEventAttributes:i,columns:[t],source:n};this.callOnFilterChangedOutsideRenderCycle(o)}}checkDestroyFilter(e){let t=this.allColumnFilters.get(e);if(!t)return;let i=t.column,{compDetails:n}=i.isFilterAllowed()?this.createFilterInstance(i):{compDetails:null};if(this.areFilterCompsDifferent(t.compDetails,n)){this.destroyFilter(i,"paramsUpdated");return}let o=i.getColDef().filterParams;if(!t.filterPromise){this.destroyFilter(i,"paramsUpdated");return}t.filterPromise.then(r=>{(r?.refresh?r.refresh(B(ye(B({},this.createFilterParams(i,i.getColDef())),{filterModifiedCallback:this.filterModifiedCallbackFactory(r,i),filterChangedCallback:this.filterChangedCallbackFactory(r,i),doesRowPassOtherFilter:s=>this.filterManager?this.filterManager.doesRowPassOtherFilters(r,s):!0}),o)):!0)===!1&&this.destroyFilter(i,"paramsUpdated")})}setColumnFilterWrapper(e,t){let i=e.getColId();this.allColumnFilters.set(i,t),this.allColumnListeners.set(i,this.addManagedListeners(e,{colDefChanged:()=>this.checkDestroyFilter(i)})[0])}areFilterCompsDifferent(e,t){if(!t||!e)return!0;let{componentClass:i}=e,{componentClass:n}=t;return!(i===n||i?.render&&n?.render&&i.render===n.render)}hasFloatingFilters(){return this.columnModel.getCols().some(t=>t.getColDef().floatingFilter)}getFilterInstance(e,t){t&&this.getFilterInstanceImpl(e).then(i=>{let n=Al(i);t(n)})}getColumnFilterInstance(e){return new Promise(t=>{this.getFilterInstanceImpl(e).then(i=>{t(Al(i))})})}getFilterInstanceImpl(e){let t=this.columnModel.getColDefCol(e);return t?this.getOrCreateFilterWrapper(t)?.filterPromise??ji.resolve(null):ji.resolve(void 0)}processFilterModelUpdateQueue(){this.filterModelUpdateQueue.forEach(({model:e,source:t})=>this.setFilterModel(e,t)),this.filterModelUpdateQueue=[],this.columnFilterModelUpdateQueue.forEach(({key:e,model:t,resolve:i})=>{this.setColumnFilterModel(e,t).then(()=>i())}),this.columnFilterModelUpdateQueue=[]}getColumnFilterModel(e){let t=this.getFilterWrapper(e);return t?this.getModelFromFilterWrapper(t):null}setColumnFilterModel(e,t){if(this.dataTypeService?.isPendingInference()){let r=()=>{},a=new Promise(s=>{r=s});return this.columnFilterModelUpdateQueue.push({key:e,model:t,resolve:r}),a}let i=this.columnModel.getColDefCol(e),n=i?this.getOrCreateFilterWrapper(i):null;return n?(r=>new Promise(a=>{r.then(s=>a(s))}))(this.setModelOnFilterWrapper(n.filterPromise,t)):Promise.resolve()}getFilterWrapper(e){let t=this.columnModel.getColDefCol(e);return t?this.cachedFilter(t)??null:null}setColDefPropertiesForDataType(e,t,i){let n=Mg(this.gos),o=this.localeService.getLocaleTextFunc(),r=a=>{let{filterParams:s}=e;e.filterParams=typeof s=="object"?B(B({},s),a):a};switch(t.baseDataType){case"number":{n&&r({comparator:(a,s)=>{let l=a==null?0:parseInt(a),c=s==null?0:parseInt(s);return l===c?0:l>c?1:-1}});break}case"boolean":{r(n?{valueFormatter:a=>K(a.value)?o(String(a.value),a.value?"True":"False"):o("blanks","(Blanks)")}:{maxNumConditions:1,debounceMs:0,filterOptions:["empty",{displayKey:"true",displayName:"True",predicate:(a,s)=>s,numberOfInputs:0}
564,{displayKey:"false",displayName:"False",predicate:(a,s)=>s===!1,numberOfInputs:0}]});break}case"date":{n&&r({valueFormatter:a=>{let s=i(a);return K(s)?s:o("blanks","(Blanks)")},treeList:!0,treeListFormatter:(a,s)=>{if(s===1&&a!=null){let l=o_[Number(a)-1];return o(l,n_[l])}return a??o("blanks","(Blanks)")}});break}case"dateString":{let a=t.dateParser;r(n?{valueFormatter:s=>{let l=i(s);return K(l)?l:o("blanks","(Blanks)")},treeList:!0,treeListPathGetter:s=>{let l=a(s??void 0);return l?[String(l.getFullYear()),String(l.getMonth()+1),String(l.getDate())]:null},treeListFormatter:(s,l)=>{if(l===1&&s!=null){let c=o_[Number(s)-1];return o(c,n_[c])}return s??o("blanks","(Blanks)")}}:{comparator:(s,l)=>{let c=a(l);return l==null||c<s?-1:c>s?1:0}});break}case"object":{n?r({valueFormatter:a=>{let s=i(a);return K(s)?s:o("blanks","(Blanks)")}}):e.filterValueGetter=a=>i({column:a.column,node:a.node,value:this.valueService.getValue(a.column,a.node)});break}}}destroy(){super.destroy(),this.allColumnFilters.forEach(e=>this.disposeFilterWrapper(e,"gridDestroyed")),this.allColumnListeners.clear()}};function KF(e){return!!e.filterManager?.isAnyFilterPresent()}function QF(e,t="api"){e.filterManager?.onFilterChanged({source:t})}var JF=class extends Le{constructor(){super(` 565 <div class="ag-floating-filter-input" role="presentation"> 566 <ag-input-text-field data-ref="eFloatingFilterText"></ag-input-text-field> 567 </div>`,[Pu]),this.eFloatingFilterText=le}wireBeans(e){this.columnNameService=e.columnNameService}destroy(){super.destroy()}init(e){this.params=e;let t=this.columnNameService.getDisplayNameForColumn(e.column,"header",!0),i=this.localeService.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(`${t} ${i("ariaFilterInput","Filter Input")}`)}onParentModelChanged(e){if(e==null){this.eFloatingFilterText.setValue("");return}this.params.parentFilterInstance(t=>{if(t.getModelAsString){let i=t.getModelAsString(e);this.eFloatingFilterText.setValue(i)}})}onParamsUpdated(e){this.refresh(e)}refresh(e){this.init(e)}},Ry=class extends Le{wireBeans(e){this.columnNameService=e.columnNameService}getDefaultDebounceMs(){return 0}destroy(){super.destroy()}isEventFromFloatingFilter(e){return e&&e.afterFloatingFilter}isEventFromDataChange(e){return e?.afterDataChange}getLastType(){return this.lastType}isReadOnly(){return this.readOnly}setLastTypeFromModel(e){if(!e){this.lastType=this.optionsFactory.getDefaultOption();return}let t=e.operator,i;t?i=e.conditions[0]:i=e,this.lastType=i.type}canWeEditAfterModelFromParentFilter(e){if(!e)return this.isTypeEditable(this.lastType);if(e.operator)return!1;let i=e;return this.isTypeEditable(i.type)}init(e){this.setSimpleParams(e,!1)}setSimpleParams(e,t=!0){this.optionsFactory=new fy,this.optionsFactory.init(e.filterParams,this.getDefaultFilterOptions()),t||(this.lastType=this.optionsFactory.getDefaultOption()),this.readOnly=!!e.filterParams.readOnly;let i=this.isTypeEditable(this.optionsFactory.getDefaultOption());this.setEditable(i)}onParamsUpdated(e){this.refresh(e)}refresh(e){this.setSimpleParams(e)}doesFilterHaveSingleInput(e){let t=this.optionsFactory.getCustomOption(e),{numberOfInputs:i}=t||{};return i==null||i==1}isTypeEditable(e){let t=["inRange","empty","blank","notBlank"];return!!e&&!this.isReadOnly()&&this.doesFilterHaveSingleInput(e)&&t.indexOf(e)<0}getAriaLabel(e){let t=this.columnNameService.getDisplayNameForColumn(e.column,"header",!0),i=this.localeService.getLocaleTextFunc();return`${t} ${i("ariaFilterInput","Filter Input")}`}},ZF=class extends Ry{constructor(){super(` 568 <div class="ag-floating-filter-input" role="presentation"> 569 <ag-input-text-field data-ref="eReadOnlyText"></ag-input-text-field> 570 <div data-ref="eDateWrapper" style="display: flex;"></div> 571 </div>`,[Pu]),this.eReadOnlyText=le,this.eDateWrapper=le}wireBeans(e){super.wireBeans(e),this.context=e.context,this.userComponentFactory=e.userComponentFactory}getDefaultFilterOptions(){return My}init(e){super.init(e),this.params=e,this.filterParams=e.filterParams,this.createDateComponent(),this.filterModelFormatter=new Ty(this.filterParams,this.localeService,this.optionsFactory);let t=this.localeService.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(t("ariaDateFilterInput","Date Filter Input"))}onParamsUpdated(e){this.refresh(e)}refresh(e){super.refresh(e),this.params=e,this.filterParams=e.filterParams,this.updateDateComponent(),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory,dateFilterParams:this.filterParams}),this.updateCompOnModelChange(e.currentParentModel())}updateCompOnModelChange(e){let t=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(e);if(this.setEditable(t),t){if(e){let i=e;this.dateComp.setDate(Fi(i.dateFrom))}else this.dateComp.setDate(null);this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(e)),this.dateComp.setDate(null)}setEditable(e){it(this.eDateWrapper,e),it(this.eReadOnlyText.getGui(),!e)}onParentModelChanged(e,t){this.isEventFromFloatingFilter(t)||this.isEventFromDataChange(t)||(super.setLastTypeFromModel(e),this.updateCompOnModelChange(e))}onDateChanged(){let e=this.dateComp.getDate(),t=pn(e);this.params.parentFilterInstance(i=>{if(i){let n=Fi(t);
vendor: 11,989 bytes, lines 571-576
571i.onFloatingFilterChanged(this.getLastType()||null,n)}})}getDateComponentParams(){let e=Mm(this.params.filterParams,this.getDefaultDebounceMs());return{onDateChanged:wi(this.onDateChanged.bind(this),e),filterParams:this.params.column.getColDef().filterParams}}createDateComponent(){this.dateComp=new Ey(this.context,this.userComponentFactory,this.getDateComponentParams(),this.eDateWrapper,e=>{e.setInputAriaLabel(this.getAriaLabel(this.params))}),this.addDestroyFunc(()=>this.dateComp.destroy())}updateDateComponent(){let e=this.gos.addGridCommonParams(this.getDateComponentParams());this.dateComp.updateParams(e)}getFilterModelFormatter(){return this.filterModelFormatter}},XF=class extends Le{constructor(){super(` 572 <div class="ag-filter-filter"> 573 <ag-input-text-field class="ag-date-filter" data-ref="eDateInput"></ag-input-text-field> 574 </div>`,[Pu]),this.eDateInput=le}destroy(){super.destroy()}init(e){this.params=e,this.setParams(e);let t=this.eDateInput.getInputElement();this.addManagedListeners(t,{mouseDown:()=>{this.eDateInput.isDisabled()||this.usingSafariDatePicker||t.focus()},input:i=>{i.target===nt(this.gos)&&(this.eDateInput.isDisabled()||this.params.onDateChanged())}})}setParams(e){let t=this.eDateInput.getInputElement(),i=this.shouldUseBrowserDatePicker(e);this.usingSafariDatePicker=i&&So(),t.type=i?"date":"text";let{minValidYear:n,maxValidYear:o,minValidDate:r,maxValidDate:a}=e.filterParams||{};if(r&&n&&$("DateFilter should not have both minValidDate and minValidYear parameters set at the same time! minValidYear will be ignored."),a&&o&&$("DateFilter should not have both maxValidDate and maxValidYear parameters set at the same time! maxValidYear will be ignored."),r&&a){let[s,l]=[r,a].map(c=>c instanceof Date?c:Fi(c));s&&l&&s.getTime()>l.getTime()&&$("DateFilter parameter minValidDate should always be lower than or equal to parameter maxValidDate.")}r?r instanceof Date?t.min=Nl(r):t.min=r:n&&(t.min=`${n}-01-01`),a?a instanceof Date?t.max=Nl(a):t.max=a:o&&(t.max=`${o}-12-31`)}onParamsUpdated(e){this.refresh(e)}refresh(e){this.params=e,this.setParams(e)}getDate(){return Fi(this.eDateInput.getValue())}setDate(e){this.eDateInput.setValue(pn(e,!1))}setInputPlaceholder(e){this.eDateInput.setInputPlaceholder(e)}setInputAriaLabel(e){this.eDateInput.setAriaLabel(e)}setDisabled(e){this.eDateInput.setDisabled(e)}afterGuiAttached(e){(!e||!e.suppressFocus)&&this.eDateInput.getInputElement().focus()}shouldUseBrowserDatePicker(e){return e.filterParams&&e.filterParams.browserDatePicker!=null?e.filterParams.browserDatePicker:e5()||wm()||So()&&X_()>=14.1}},Fy=class extends H{constructor(e){super(),this.params=e,this.eFloatingFilterTextInput=le,this.valueChangedListener=()=>{}}setupGui(e){this.eFloatingFilterTextInput=this.createManagedBean(new Qr(this.params?.config));let t=this.eFloatingFilterTextInput.getGui();e.appendChild(t);let i=n=>this.valueChangedListener(n);this.addManagedListeners(t,{input:i,keydown:i})}setEditable(e){this.eFloatingFilterTextInput.setDisabled(!e)}setAutoComplete(e){this.eFloatingFilterTextInput.setAutoComplete(e)}getValue(){return this.eFloatingFilterTextInput.getValue()}setValue(e,t){this.eFloatingFilterTextInput.setValue(e,t)}setValueChangedListener(e){this.valueChangedListener=e}setParams(e){this.setAriaLabel(e.ariaLabel),e.autoComplete!==void 0&&this.setAutoComplete(e.autoComplete)}setAriaLabel(e){this.eFloatingFilterTextInput.setInputAriaLabel(e)}},Oy=class extends Ry{constructor(){super(...arguments),this.eFloatingFilterInputContainer=le}postConstruct(){this.setTemplate(` 575 <div class="ag-floating-filter-input" role="presentation" data-ref="eFloatingFilterInputContainer"></div> 576 `)}getDefaultDebounceMs(){return 500}onParentModelChanged(e,t){this.isEventFromFloatingFilter(t)||this.isEventFromDataChange(t)||(this.setLastTypeFromModel(e),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)),this.floatingFilterInputService.setValue(this.getFilterModelFormatter().getModelAsString(e)))}init(e){this.setupFloatingFilterInputService(e),super.init(e),this.setTextInputParams(e)}setupFloatingFilterInputService(e){this.floatingFilterInputService=this.createFloatingFilterInputService(e),this.floatingFilterInputService.setupGui(this.eFloatingFilterInputContainer)}setTextInputParams(e){this.params=e;let t=e.browserAutoComplete??!1;if(this.floatingFilterInputService.setParams({ariaLabel:this.getAriaLabel(e),autoComplete:t}),this.applyActive=ku(this.params.filterParams),!this.isReadOnly()){let i=Mm(this.params.filterParams,this.getDefaultDebounceMs()),n=wi(this.syncUpWithParentFilter.bind(this),i);this.floatingFilterInputService.setValueChangedListener(n)}}onParamsUpdated(e){this.refresh(e)}refresh(e){super.refresh(e),this.setTextInputParams(e)}recreateFloatingFilterInputService(e){let t=this.floatingFilterInputService.getValue();ni(this.eFloatingFilterInputContainer),this.destroyBean(this.floatingFilterInputService),this.setupFloatingFilterInputService(e),this.floatingFilterInputService.setValue(t,!0)}syncUpWithParentFilter(e){let t=e.key===j.ENTER;if(this.applyActive&&!t)return;let i=this.floatingFilterInputService.getValue();this.params.filterParams.trimInput&&(i=Sy(i),this.floatingFilterInputService.setValue(i,!0)),this.params.parentFilterInstance(n=>{n&&n.onFloatingFilterChanged(this.getLastType()||null,i||null)})}setEditable(e){this.floatingFilterInputService.setEditable(e)}},e4=class extends H{constructor(){super(...arguments),this.valueChangedListener=()=>{},this.numberInputActive=!0}setupGui(e){this.eFloatingFilterNumberInput=this.createManagedBean(new Im),this.eFloatingFilterTextInput=this.createManagedBean(new Qr),this.eFloatingFilterTextInput.setDisabled(!0);let t=this.eFloatingFilterNumberInput.getGui(),i=this.eFloatingFilterTextInput.getGui();e.appendChild(t),e.appendChild(i),this.setupListeners(t,n=>this.valueChangedListener(n)),this.setupListeners(i,n=>this.valueChangedListener(n))}setEditable(e){this.numberInputActive=e,this.eFloatingFilterNumberInput.setDisplayed(this.numberInputActive),this.eFloatingFilterTextInput.setDisplayed(!this.numberInputActive)}setAutoComplete(e){this.eFloatingFilterNumberInput.setAutoComplete(e),this.eFloatingFilterTextInput.setAutoComplete(e)}getValue(){return this.getActiveInputElement().getValue()}setValue(e,t){this.getActiveInputElement().setValue(e,t)}getActiveInputElement(){return this.numberInputActive?this.eFloatingFilterNumberInput:this.eFloatingFilterTextInput}setValueChangedListener(e){this.valueChangedListener=e}setupListeners(e,t){this.addManagedListeners(e,{input:t,keydown:t})}setParams(e){this.setAriaLabel(e.ariaLabel),e.autoComplete!==void 0&&this.setAutoComplete(e.autoComplete)}setAriaLabel(e){this.eFloatingFilterNumberInput.setInputAriaLabel(e),this.eFloatingFilterTextInput.setInputAriaLabel(e)}},t4=class extends Oy{init(e){super.init(e),this.filterModelFormatter=new yy(this.localeService,this.optionsFactory,e.filterParams?.numberFormatter)}onParamsUpdated(e){this.refresh(e)}refresh(e){om(e.filterParams)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),super.refresh(e),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})}getDefaultFilterOptions(){return _y}getFilterModelFormatter(){return this.filterModelFormatter}createFloatingFilterInputService(e){return this.allowedCharPattern=om(e.filterParams),this.allowedCharPattern?this.createManagedBean(new Fy({config:{allowedCharPattern:this.allowedCharPattern}})):this.createManagedBean(new e4)}},i4=class extends Oy{init(e){super.init(e),this.filterModelFormatter=new xy(this.localeService,this.optionsFactory)}onParamsUpdated(e){this.refresh(e)}refresh(e){super.refresh(e),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})}getDefaultFilterOptions(){return wy}getFilterModelFormatter(){return this.filterModelFormatter}createFloatingFilterInputService(){return this.createManagedBean(new Fy)}};function n4(e){return!!e.filterManager?.isQuickFilterPresent()}function o4(e){return e.gos.get("quickFilterText")}function r4(e){e.filterManager?.resetQuickFilterCache()}var a4=class extends H{constructor(){super(...arguments),this.beanName="quickFilterService",this.quickFilter=null,this.quickFilterParts=null}wireBeans(e){this.valueService=e.valueService,this.columnModel=e.columnModel,this.rowModel=e.rowModel,this.pivotResultColsService=e.pivotResultColsService}postConstruct(){let e=this.resetQuickFilterCache.bind(this);this.addManagedEventListeners({columnPivotModeChanged:e,newColumnsLoaded:e,columnRowGroupChanged:e,columnVisible:()=>{this.gos.get("includeHiddenColumnsInQuickFilter")||this.resetQuickFilterCache()}}),this.addManagedPropertyListener("quickFilterText",t=>this.setQuickFilter(t.currentValue)),this.addManagedPropertyListeners(["includeHiddenColumnsInQuickFilter","applyQuickFilterBeforePivotOrAgg"],()=>this.onQuickFilterColumnConfigChanged()),this.quickFilter=this.parseQuickFilter(this.gos.get("quickFilterText")),this.parser=this.gos.get("quickFilterParser"),this.matcher=this.gos.get("quickFilterMatcher"),this.setQuickFilterParts(),this.addManagedPropertyListeners(["quickFilterMatcher","quickFilterParser"],()=>this.setQuickFilterParserAndMatcher())}refreshQuickFilterCols(){let e=this.columnModel.isPivotMode(),t=this.columnModel.getAutoCols(),i=this.columnModel.getColDefCols(),n=(e&&!this.gos.get("applyQuickFilterBeforePivotOrAgg")?this.pivotResultColsService.getPivotResultCols()?.list:i)??[];t&&(n=n.concat(t)),this.colsForQuickFilter=this.gos.get("includeHiddenColumnsInQuickFilter")?n:n.filter(o=>o.isVisible()||o.isRowGroupActive())}isQuickFilterPresent(){return this.quickFilter!==null}doesRowPassQuickFilter(e){let t=this.gos.get("cacheQuickFilter");return this.matcher?this.doesRowPassQuickFilterMatcher(t,e):this.quickFilterParts.every(i=>t?this.doesRowPassQuickFilterCache(e,i):this.doesRowPassQuickFilterNoCache(e,i))}resetQuickFilterCache(){this.rowModel.forEachNode(e=>e.quickFilterAggregateText=null)}setQuickFilterParts(){let{quickFilter:e,parser:t}=this;e?this.quickFilterParts=t?t(e):e.split(" "):this.quickFilterParts=null}parseQuickFilter(e){return K(e)?at(this.gos)?e.toUpperCase():($("Quick filtering only works with the Client-Side Row Model"),null):null}setQuickFilter(e){if(e!=null&&typeof e!="string"){$(`Grid option quickFilterText only supports string inputs, received: ${typeof e}`);return}let t=this.parseQuickFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setQuickFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}setQuickFilterParserAndMatcher(){let e=this.gos.get("quickFilterParser"),t=this.gos.get("quickFilterMatcher"),i=e!==this.parser||t!==this.matcher;this.parser=e,this.matcher=t,i&&(this.setQuickFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}onQuickFilterColumnConfigChanged(){this.refreshQuickFilterCols(),this.resetQuickFilterCache(),this.isQuickFilterPresent()&&this.dispatchLocalEvent({type:"quickFilterChanged"})}doesRowPassQuickFilterNoCache(e,t){return this.colsForQuickFilter.some(i=>{let n=this.getQuickFilterTextForColumn(i,e);return K(n)&&n.indexOf(t)>=0})}doesRowPassQuickFilterCache(e,t){return this.checkGenerateQuickFilterAggregateText(e),e.quickFilterAggregateText.indexOf(t)>=0}doesRowPassQuickFilterMatcher(e,t){let i;e?(this.checkGenerateQuickFilterAggregateText(t),i=t.quickFilterAggregateText):i=this.getQuickFilterAggregateText(t);let{quickFilterParts:n,matcher:o}=this;return o(n,i)}checkGenerateQuickFilterAggregateText(e){e.quickFilterAggregateText||(e.quickFilterAggregateText=this.getQuickFilterAggregateText(e))}getQuickFilterTextForColumn(e,t){let i=this.valueService.getValue(e,t,!0),n=e.getColDef();if(n.getQuickFilterText){let o=this.gos.addGridCommonParams({value:i,node:t,data:t.data,column:e,colDef:n});i=n.getQuickFilterText(o)}return K(i)?i.toString().toUpperCase():null}getQuickFilterAggregateText(e){let t=[];return this.colsForQuickFilter.forEach(i=>
vendor: 4,439 bytes, lines 576-585
576{let n=this.getQuickFilterTextForColumn(i,e);K(n)&&t.push(n)}),t.join(` 577`)}},Fm={version:Se,moduleName:"@ag-grid-community/filter-core",beans:[aF]},s4={version:Se,moduleName:"@ag-grid-community/filter-api",apiFunctions:{isAnyFilterPresent:KF,onFilterChanged:QF},dependantModules:[Fm]},Fu={version:Se,moduleName:"@ag-grid-community/column-filter",beans:[YF],dependantModules:[Fm]},l4={version:Se,moduleName:"@ag-grid-community/column-filter-api",apiFunctions:{isColumnFilterPresent:zF,getFilterInstance:BF,getColumnFilterInstance:VF,destroyFilter:HF,setFilterModel:GF,getFilterModel:UF,getColumnFilterModel:jF,setColumnFilterModel:WF,showColumnFilter:$F},dependantModules:[Fu,s4]},Om={version:Se,moduleName:"@ag-grid-community/floating-filter-core",controllers:[{name:"headerFilterCell",classImp:NF}],dependantModules:[Fu]},Ofe={version:Se,moduleName:"@ag-grid-community/floating-filter",dependantModules:[Om,Fu]},c4={version:Se,moduleName:"@ag-grid-community/read-only-floating-filter",userComponents:[{name:"agReadOnlyFloatingFilter",classImp:JF}],dependantModules:[Om]},d4={version:Se,moduleName:"@ag-grid-community/simple-filter",dependantModules:[Fu],userComponents:[{name:"agTextColumnFilter",classImp:MF},{name:"agNumberColumnFilter",classImp:EF},{name:"agDateColumnFilter",classImp:DF},{name:"agDateInput",classImp:XF}]},u4={version:Se,moduleName:"@ag-grid-community/simple-floating-filter",dependantModules:[d4,Om],userComponents:[{name:"agTextColumnFloatingFilter",classImp:i4},{name:"agNumberColumnFloatingFilter",classImp:t4},{name:"agDateColumnFloatingFilter",classImp:ZF}]},Ay={version:Se,moduleName:"@ag-grid-community/quick-filter-core",beans:[a4],dependantModules:[Fm]},p4={version:Se,moduleName:"@ag-grid-community/quick-filter-api",apiFunctions:{isQuickFilterPresent:n4,getQuickFilter:o4,resetQuickFilter:r4},dependantModules:[Ay]},h4={version:Se,moduleName:"@ag-grid-community/quick-filter",dependantModules:[Ay,p4]},g4={version:Se,moduleName:"@ag-grid-community/filter",dependantModules:[u4,c4,h4,l4]},Am=class extends Le{constructor(e,t){super(e),this.ctrl=t}getCtrl(){return this.ctrl}},m4=class extends Am{constructor(e){super(`<div class="ag-header-cell ag-floating-filter" role="gridcell"> 578 <div data-ref="eFloatingFilterBody" role="presentation"></div> 579 <div class="ag-floating-filter-button ag-hidden" data-ref="eButtonWrapper" role="presentation"> 580 <button type="button" class="ag-button ag-floating-filter-button-button" data-ref="eButtonShowMainFilter" tabindex="-1"></button> 581 </div> 582 </div>`,e),this.eFloatingFilterBody=le,this.eButtonWrapper=le,this.eButtonShowMainFilter=le}postConstruct(){let e=this.getGui(),t={addOrRemoveCssClass:(i,n)=>this.addOrRemoveCssClass(i,n),addOrRemoveBodyCssClass:(i,n)=>this.eFloatingFilterBody.classList.toggle(i,n),setButtonWrapperDisplayed:i=>it(this.eButtonWrapper,i),setCompDetails:i=>this.setCompDetails(i),getFloatingFilterComp:()=>this.compPromise,setWidth:i=>e.style.width=i,setMenuIcon:i=>this.eButtonShowMainFilter.appendChild(i)};this.ctrl.setComp(t,e,this.eButtonShowMainFilter,this.eFloatingFilterBody,void 0)}setCompDetails(e){if(!e){this.destroyFloatingFilterComp(),this.compPromise=null;return}this.compPromise=e.newAgStackInstance(),this.compPromise.then(t=>this.afterCompCreated(t))}destroy(){this.destroyFloatingFilterComp(),super.destroy()}destroyFloatingFilterComp(){this.floatingFilterComp&&(this.eFloatingFilterBody.removeChild(this.floatingFilterComp.getGui()),this.floatingFilterComp=this.destroyBean(this.floatingFilterComp))}afterCompCreated(e){if(e){if(!this.isAlive()){this.destroyBean(e);return}this.destroyFloatingFilterComp(),this.floatingFilterComp=e,this.eFloatingFilterBody.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached()}}},f4=class extends Am{constructor(e){super(`<div class="ag-header-cell" role="columnheader"> 583 <div data-ref="eResize" class="ag-header-cell-resize" role="presentation"></div> 584 <div data-ref="eHeaderCompWrapper" class="ag-header-cell-comp-wrapper" role="presentation"></div> 585 </div>`,e),this.eResize=le,this.eHeaderCompWrapper=le,this.headerCompVersion=0,this.column=e.getColumnGroupChild(),this.pinned=e.getPinned()}postConstruct(){let e=this.getGui();((o,r)=>{r!=null&&r!=""?e.setAttribute(o,r):e.removeAttribute(o)})("col-id",this.column.getColId());let i={setWidth:o=>e.style.width=o,addOrRemoveCssClass:(o,r)=>
585this.addOrRemoveCssClass(o,r),setAriaSort:o=>o?WR(e,o):$R(e),setUserCompDetails:o=>this.setUserCompDetails(o),getUserCompInstance:()=>this.headerComp};this.ctrl.setComp(i,this.getGui(),this.eResize,this.eHeaderCompWrapper,void 0);let n=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",n)}destroy(){this.destroyHeaderComp(),super.destroy()}destroyHeaderComp(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)}setUserCompDetails(e){this.headerCompVersion++;let t=this.headerCompVersion;e.newAgStackInstance().then(i=>this.afterCompCreated(t,i))}afterCompCreated(e,t){if(e!=this.headerCompVersion||!this.isAlive()){this.destroyBean(t);return}this.destroyHeaderComp(),this.headerComp=t,this.headerCompGui=t.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())}},v4=class extends Am{constructor(e){super(`<div class="ag-header-group-cell" role="columnheader"> 586 <div data-ref="eHeaderCompWrapper" class="ag-header-cell-comp-wrapper" role="presentation"></div> 587 <div data-ref="eResize" class="ag-header-cell-resize" role="presentation"></div> 588 </div>`,e),this.eResize=le,this.eHeaderCompWrapper=le}postConstruct(){let e=this.getGui(),t=(n,o)=>o!=null?e.setAttribute(n,o):e.removeAttribute(n);e.setAttribute("col-id",this.ctrl.getColId());let i={addOrRemoveCssClass:(n,o)=>this.addOrRemoveCssClass(n,o),setHeaderWrapperHidden:n=>{n?this.eHeaderCompWrapper.style.setProperty("display","none"):this.eHeaderCompWrapper.style.removeProperty("display")},setHeaderWrapperMaxHeight:n=>{n!=null?this.eHeaderCompWrapper.style.setProperty("max-height",`${n}px`):this.eHeaderCompWrapper.style.removeProperty("max-height"),this.eHeaderCompWrapper.classList.toggle("ag-header-cell-comp-wrapper-limited-height",n!=null)},setResizableDisplayed:n=>
588it(this.eResize,n),setWidth:n=>e.style.width=n,setAriaExpanded:n=>t("aria-expanded",n),setUserCompDetails:n=>this.setUserCompDetails(n),getUserCompInstance:()=>this.headerGroupComp};this.ctrl.setComp(i,e,this.eResize,this.eHeaderCompWrapper,void 0)}setUserCompDetails(e){e.newAgStackInstance().then(t=>this.afterHeaderCompCreated(t))}afterHeaderCompCreated(e){let t=()=>this.destroyBean(e);if(!this.isAlive()){t();return}let i=this.getGui(),n=e.getGui();this.eHeaderCompWrapper.appendChild(n),this.addDestroyFunc(t),this.headerGroupComp=e,this.ctrl.setDragSource(i)}addOrRemoveHeaderWrapperStyle(e,t){let{eHeaderCompWrapper:i}=this;t?i.style.setProperty(e,t):i.style.removeProperty(e)}};var C4=class extends Le{constructor(e){super(),this.headerComps={},this.ctrl=e,this.setTemplate(`<div class="${this.ctrl.getHeaderRowClass()}" role="row"></div>`)}postConstruct(){U_(this.getGui(),this.ctrl.getAriaRowIndex());let e={setHeight:t=>this.getGui().style.height=t,setTop:t=>this.getGui().style.top=t,setHeaderCtrls:(t,i)=>this.setHeaderCtrls(t,i),setWidth:t=>this.getGui().style.width=t};this.ctrl.setComp(e,void 0)}destroy(){this.setHeaderCtrls([],!1),super.destroy()}setHeaderCtrls(e,t){if(!this.isAlive())return;let i=this.headerComps;if(this.headerComps={},e.forEach(n=>{let o=n.instanceId,r=i[o];delete i[o],r==null&&(r=this.createHeaderComp(n),this.getGui().appendChild(r.getGui())),this.headerComps[o]=r}),sn(i,(n,o)=>{this.getGui().removeChild(o.getGui()),this.destroyBean(o)}),t){let n=qr(this.headerComps);n.sort((r,a)=>{let s=r.getCtrl().getColumnGroupChild().getLeft(),l=a.getCtrl().getColumnGroupChild().getLeft();return s-l});let o=n.map(r=>r.getGui());Q_(this.getGui(),o)}}createHeaderComp(e){let t;switch(this.ctrl.getType()){case"group":t=new v4(e);break;case"filter":t=new m4(e);break;default:t=new f4(e);break}return this.createBean(t),t.setParentComponent(this),t}};var b4=class extends H{constructor(){super(...arguments),this.beanName="headerNavigationService",this.currentHeaderRowWithoutSpan=-1}wireBeans(e){this.focusService=e.focusService,this.headerPositionUtils=e.headerPositionUtils,this.ctrlsService=e.ctrlsService,this.columnModel=e.columnModel,this.visibleColService=e.visibleColsService}postConstruct(){this.ctrlsService.whenReady(this,t=>{this.gridBodyCon=t.gridBodyCtrl});let e=dt(this.gos);this.addManagedElementListeners(e,{mousedown:()=>this.setCurrentHeaderRowWithoutSpan(-1)})}getHeaderRowCount(){return this.ctrlsService.getHeaderRowContainerCtrl()?.getRowCount()??0}getHeaderPositionForColumn(e,t){let i;if(typeof e=="string"?(i=this.columnModel.getCol(e),i||(i=this.visibleColService.getColumnGroup(e))):i=e,!i)return null;let o=this.ctrlsService.getHeaderRowContainerCtrl()?.getAllCtrls(),r=Ae(o||[]).getType()==="filter",a=this.getHeaderRowCount()-1,s=-1,l=i;for(;l;)s++,l=l.getParent();let c=s;return t&&r&&c===a-1&&c++,c===-1?null:{headerRowIndex:c,column:i}}navigateVertically(e,t,i){if(t||(t=this.focusService.getFocusedHeader()),!t)return!1;let{headerRowIndex:n}=t,o=t.column,r=this.getHeaderRowCount(),a=e===0,{headerRowIndex:s,column:l,headerRowIndexWithoutSpan:c}=a?this.headerPositionUtils.getColumnVisibleParent(o,n):this.headerPositionUtils.getColumnVisibleChild(o,n),h=!1;return s<0&&(s=0,l=o,h=!0),s>=r?(s=-1,this.setCurrentHeaderRowWithoutSpan(-1)):c!==void 0&&(this.currentHeaderRowWithoutSpan=c),!h&&!l?!1:this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:s,column:l},allowUserOverride:!0,event:i})}setCurrentHeaderRowWithoutSpan(e){this.currentHeaderRowWithoutSpan=e}navigateHorizontally(e,t=!1,i){let n=this.focusService.getFocusedHeader(),o=e===2,r=this.gos.get("enableRtl"),a,s;if(this.currentHeaderRowWithoutSpan!==-1?n.headerRowIndex=this.currentHeaderRowWithoutSpan:this.currentHeaderRowWithoutSpan=n.headerRowIndex,o!==r?(s="Before",a=this.headerPositionUtils.findHeader(n,s)):(s="After",a=this.headerPositionUtils.findHeader(n,s)),a||!t)return this.focusService.focusHeaderPosition({headerPosition:a,direction:s,fromTab:t,allowUserOverride:!0,event:i});if(t){let l=this.gos.getCallback("tabToNextHeader");if(l)return this.focusService.focusHeaderPositionFromUserFunc({userFunc:l,headerPosition:a,direction:s})}return this.focusNextHeaderRow(n,s,i)}focusNextHeaderRow(e,t,i){let n=e.headerRowIndex,o=null,r;if(t==="Before"?n>0&&(r=n-1,this.currentHeaderRowWithoutSpan-=1,o=this.headerPositionUtils.findColAtEdgeForHeaderRow(r,"end")):(r=n+1,this.currentHeaderRowWithoutSpan<this.getHeaderRowCount()?this.currentHeaderRowWithoutSpan+=1:this.setCurrentHeaderRowWithoutSpan(-1),o=this.headerPositionUtils.findColAtEdgeForHeaderRow(r,"start")),!o)return!1;let{column:a,headerRowIndex:s}=this.headerPositionUtils.getHeaderIndexToFocus(o.column,o?.headerRowIndex);return this.focusService.focusHeaderPosition({headerPosition:{column:a,headerRowIndex:s},direction:t,fromTab:!0,allowUserOverride:!0,event:i})}scrollToColumn(e,t="After"){if(e.getPinned())return;let i;if(wt(e)){let n=e.getDisplayedLeafColumns();i=t==="Before"?Ae(n):n[0]}else i=e;
588this.gridBodyCon.getScrollFeature().ensureColumnVisible(i)}},_4=class extends H{wireBeans(e){this.animationFrameService=e.animationFrameService,this.headerNavigationService=e.headerNavigationService,this.focusService=e.focusService,this.columnModel=e.columnModel,this.visibleColsService=e.visibleColsService,this.ctrlsService=e.ctrlsService,this.filterManager=e.filterManager,this.menuService=e.menuService}setComp(e,t,i){this.comp=e,this.eGui=t,this.createManagedBean(new Kr(i,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedEventListeners({columnPivotModeChanged:this.onPivotModeChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this)}),this.onPivotModeChanged(),this.setupHeaderHeight();let n=this.onHeaderContextMenu.bind(this);this.addManagedElementListeners(this.eGui,{contextmenu:n}),this.mockContextMenuForIPad(n),this.ctrlsService.register("gridHeaderCtrl",this)}setupHeaderHeight(){let e=this.setHeaderHeight.bind(this);e(),this.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],e),this.addManagedEventListeners({displayedColumnsChanged:e,columnHeaderHeightChanged:e,columnGroupHeaderHeightChanged:()=>this.animationFrameService.requestAnimationFrame(()=>e()),gridStylesChanged:e,advancedFilterEnabledChanged:e})}getHeaderHeight(){return this.headerHeight}setHeaderHeight(){let{columnModel:e}=this,t=0,i=this.columnModel.getGroupRowsHeight().reduce((r,a)=>r+a,0),n=this.columnModel.getColumnHeaderRowHeight();if(this.filterManager?.hasFloatingFilters()&&(t+=e.getFloatingFiltersHeight()),t+=i,t+=n,this.headerHeight===t)return;this.headerHeight=t;let o=`${t+1}px`;this.comp.setHeightAndMinHeight(o),this.eventService.dispatchEvent({type:"headerHeightChanged"})}onPivotModeChanged(){let e=this.columnModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",e),this.comp.addOrRemoveCssClass("ag-pivot-off",!e)}onDisplayedColumnsChanged(){let t=this.visibleColsService.getAllCols().some(i=>i.isSpanHeaderHeight());this.comp.addOrRemoveCssClass("ag-header-allow-overflow",t)}onTabKeyDown(e){let t=this.gos.get("enableRtl"),i=e.shiftKey,n=i!==t?2:3;(this.headerNavigationService.navigateHorizontally(n,!0,e)||!i&&this.focusService.focusOverlay(!1)||this.focusService.focusNextGridCoreContainer(i,!0))&&e.preventDefault()}handleKeyDown(e){let t=null;switch(e.key){case j.LEFT:t=2;case j.RIGHT:{K(t)||(t=3),this.headerNavigationService.navigateHorizontally(t,!1,e)&&e.preventDefault();break}case j.UP:t=0;case j.DOWN:{K(t)||(t=1),this.headerNavigationService.navigateVertically(t,null,e)&&e.preventDefault();break}default:return}}onFocusOut(e){let{relatedTarget:t}=e;!t&&this.eGui.contains(nt(this.gos))||this.eGui.contains(t)||this.focusService.clearFocusedHeader()}onHeaderContextMenu(e,t,i){if(!e&&!i||!this.menuService.isHeaderContextMenuEnabled())return;let{target:n}=e??t;(n===this.eGui||n===this.ctrlsService.getHeaderRowContainerCtrl()?.getViewportElement())&&this.menuService.showHeaderContextMenu(void 0,e,i)}mockContextMenuForIPad(e){if(!ar())return;let t=new ir(this.eGui),i=n=>{e(void 0,n.touchStart,n.touchEvent)};this.addManagedListeners(t,{longTap:i}),this.addDestroyFunc(()=>t.destroy())}},Lm=class extends H{constructor(e,t=!1){super(),this.callback=e,this.addSpacer=t}wireBeans(e){this.visibleColsService=e.visibleColsService,this.scrollVisibleService=e.scrollVisibleService}postConstruct(){let e=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",e),this.addManagedEventListeners({columnContainerWidthChanged:e,displayedColumnsChanged:e,leftPinnedWidthChanged:e}),this.addSpacer&&this.addManagedEventListeners({rightPinnedWidthChanged:e,scrollVisibilityChanged:e,scrollbarWidthChanged:e}),this.setWidth()}setWidth(){let e=Bt(this.gos,"print"),t=this.visibleColsService.getBodyContainerWidth(),i=this.visibleColsService.getColsLeftWidth(),n=this.visibleColsService.getDisplayedColumnsRightWidth(),o;e?o=t+i+n:(o=t,this.addSpacer&&(this.gos.get("enableRtl")?i:n)===0&&this.scrollVisibleService.isVerticalScrollShowing()&&(o+=this.scrollVisibleService.getScrollbarWidth())),this.callback(o)}},y4=class extends H{constructor(e){super(),this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=e}wireBeans(e){this.funcColsService=e.funcColsService}onDragEnter(e){if(this.clearColumnsList(),this.gos.get("functionsReadOnly"))return;let t=e.dragItem.columns;t&&t.forEach(i=>
588{i.isPrimary()&&(i.isAnyFunctionActive()||(i.isAllowValue()?this.columnsToAggregate.push(i):i.isAllowRowGroup()?this.columnsToGroup.push(i):i.isAllowPivot()&&this.columnsToPivot.push(i)))})}getIconName(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?"pinned":"move":null}onDragLeave(e){this.clearColumnsList()}clearColumnsList(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0}onDragging(e){}onDragStop(e){this.columnsToAggregate.length>0&&this.funcColsService.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.funcColsService.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.funcColsService.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")}onDragCancel(){this.clearColumnsList()}};function Ly(e){let{isFromHeader:t,fromLeft:i,xPosition:n,fromEnter:o,fakeEvent:r,pinned:a,gos:s,columnModel:l,columnMoveService:c,visibleColsService:h}=e,{allMovingColumns:m}=e;if(t){let re=[];m.forEach(Z=>{let q=null,ce=Z.getParent();for(;ce!=null&&ce.getDisplayedLeafColumns().length===1;)q=ce,ce=ce.getParent();q!=null?(!!q.getColGroupDef()?.marryChildren?q.getProvidedColumnGroup().getLeafColumns():q.getLeafColumns()).forEach(Mi=>{re.includes(Mi)||re.push(Mi)}):re.includes(Z)||re.push(Z)}),m=re}let f=m.slice();l.sortColsLikeCols(f);let b=k4({movingCols:f,draggingRight:i,xPosition:n,pinned:a,gos:s,columnModel:l,visibleColsService:h}),_=w4(f,l);if(b.length===0)return;let S=b[0],M=_!==null&&!o;if(t&&(M=_!==null),M&&!r&&(!i&&S>=_||i&&S<=_))return;let D=h.getAllCols(),I=[],F=null;for(let re=0;re<b.length;re++){let Z=b[re],q=c.getProposedColumnOrder(f,Z);if(!c.doesOrderPassRules(q))continue;let ce=q.filter(Et=>D.includes(Et));if(F===null)F=ce;else if(!rr(ce,F))break;let _e=x4(q);I.push({move:Z,fragCount:_e})}if(I.length===0)return;I.sort((re,Z)=>re.fragCount-Z.fragCount);let W=I[0].move;if(!(W>l.getCols().length-m.length))return{columns:m,toIndex:W}}function Nm(e){let{columns:t,toIndex:i}=Ly(e)||{},{finished:n,columnMoveService:o}=e;return!t||i==null?null:(o.moveColumns(t,i,"uiColumnMoved",n),n?null:{columns:t,toIndex:i})}function w4(e,t){let i=t.getCols(),n=iR(e.map(l=>i.indexOf(l))),o=n[0];return Ae(n)-o!==n.length-1?null:o}function x4(e){function t(n){let o=[],r=n.getOriginalParent();for(;r!=null;)o.push(r),r=r.getOriginalParent();return o}let i=0;for(let n=0;n<e.length-1;n++){let o=t(e[n]),r=t(e[n+1]);[o,r]=o.length>r.length?[o,r]:[r,o],o.forEach(a=>{r.indexOf(a)===-1&&i++})}return i}function S4(e,t){switch(t){case"left":return e.getLeftCols();case"right":return e.getRightCols();default:return e.getCenterCols()}}function k4(e){let{movingCols:t,draggingRight:i,xPosition:n,pinned:o,gos:r,columnModel:a,visibleColsService:s}=e;if(r.get("suppressMovableColumns")||t.some(F=>F.getColDef().suppressMovable))return[];let c=S4(s,o),h=a.getCols(),m=c.filter(F=>Gr(t,F)),f=c.filter(F=>!Gr(t,F)),b=h.filter(F=>!Gr(t,F)),_=0,S=n;if(i){let F=0;m.forEach(W=>F+=W.getActualWidth()),S-=F}if(S>0){for(let F=0;F<f.length;F++){let W=f[F];if(S-=W.getActualWidth(),S<0)break;_++}i&&_++}let M;if(_>0){let F=f[_-1];M=b.indexOf(F)+1}else M=b.indexOf(f[0]),M===-1&&(M=0);let D=[M],I=(F,W)=>F-W;if(i){let F=M+1,W=h.length-1;for(;F<=W;)D.push(F),F++;D.sort(I)}else{let F=M,W=h.length-1,re=h[F];for(;F<=W&&c.indexOf(re)<0;)F++,D.push(F),re=h[F];F=M-1;let Z=0;for(;F>=Z;)D.push(F),F--;D.sort(I).reverse()}return D}function Eu(e){let{pinned:t,fromKeyboard:i,gos:n,ctrlsService:o,useHeaderRow:r,skipScrollPadding:a}=e,s=o.getHeaderRowContainerCtrl(t)?.getViewportElement(),{x:l}=e;return s?(i&&(l-=s.getBoundingClientRect().left),n.get("enableRtl")&&(r&&(s=s.querySelector(".ag-header-row")),l=s.clientWidth-l),t==null&&!a&&(l+=o.get("center").getCenterViewportScrollLeft()),l):0}function is(e,t){for(let i of e)i.setMoving(t,"uiColumnMoved")}var r_=7,rm=100,ou=rm/2,E4=5,M4=100,T4=class extends H{constructor(e){super(),this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.pinned=e,this.isCenterContainer=!K(e)}wireBeans(e){this.columnModel=e.columnModel,this.visibleColsService=e.visibleColsService,this.columnMoveService=e.columnMoveService,this.dragAndDropService=e.dragAndDropService,this.ctrlsService=e.ctrlsService}postConstruct(){this.ctrlsService.whenReady(this,e=>{this.gridBodyCon=e.gridBodyCtrl})}getIconName(){let e=this.lastDraggingEvent?.dragItem.columns??[];for(let t of e){let i=t.getPinned();if(t.getColDef().lockPinned){if(i==this.pinned)return"move";continue}if(i===this.pinned||!this.pinned)return"move";if(!i&&this.pinned)return"pinned"}return"notAllowed"}onDragEnter(e){let t=e.dragItem.columns;if(e.dragSource.type===0)this.setColumnsVisible(t,!0,"uiColumnDragged");else{let n=e.dragItem.visibleState,o=(t||[]).filter(r=>n[r.getId()]);this.setColumnsVisible(o,!0,"uiColumnDragged")}this.gos.get("suppressMoveWhenColumnDragging")||this.attemptToPinColumns(t,this.pinned),this.onDragging(e,!0,!0)}onDragging(e=this.lastDraggingEvent,t=!1,i=!1,n=!1){let o=this.gos.get("suppressMoveWhenColumnDragging");if(n&&!o){this.finishColumnMoving();return}if(this.lastDraggingEvent=e,!e||!n&&Fe(e.hDirection))return;let{pinned:r,gos:a,ctrlsService:s}=this,l=Eu({x:e.x,pinned:r,gos:a,ctrlsService:s});t||this.checkCenterForScrolling(l),o?this.handleColumnDragWhileSuppressingMovement(e,t,i,l,n):this.handleColumnDragWhileAllowingMovement(e,t,i,l,n)}onDragLeave(){this.ensureIntervalCleared(),this.clearHighlighted(),this.lastMovedInfo=null}onDragStop(){this.onDragging(this.lastDraggingEvent,!1,!0,!0),this.ensureIntervalCleared(),this.lastMovedInfo=null}onDragCancel(){this.clearHighlighted(),this.ensureIntervalCleared(),this.lastMovedInfo=null}setColumnsVisible(e,t,i){if(!e)return;let n=e.filter(o=>!o.getColDef().lockVisible);this.columnModel.setColsVisible(n,t,i)}finishColumnMoving(){if(this.clearHighlighted(),!this.lastMovedInfo)return;let{columns:e,toIndex:t}=this.lastMovedInfo;this.columnMoveService.moveColumns(e,t,"uiColumnMoved",!0)}handleColumnDragWhileSuppressingMovement(e,t,i,n,o){let r=this.getAllMovingColumns(e,!0);if(o){let a=this.isAttemptingToPin(r);a&&this.attemptToPinColumns(r,void 0,!0);let{fromLeft:s,xPosition:l}=this.getNormalisedXPositionInfo(r,a)||{};if(s==null||l==null){this.finishColumnMoving();return}this.moveColumnsAfterHighlight({allMovingColumns:r,xPosition:l,fromEnter:t,fakeEvent:i,fromLeft:s})}else{if(!this.dragAndDropService.isDropZoneWithinThisGrid(e))return;this.highlightHoveredColumn(r,n)}}handleColumnDragWhileAllowingMovement(e,t,i,n,o){let r=this.getAllMovingColumns(e),a=this.normaliseDirection(e.hDirection)===1,s=e.dragSource.type===1,l=this.getMoveColumnParams({allMovingColumns:r,isFromHeader:s,xPosition:n,fromLeft:a,fromEnter:t,fakeEvent:i}),c=Nm(ye(B({},l),{finished:o}));c&&(this.lastMovedInfo=c)}getAllMovingColumns(e,t=!1){let i=e.dragSource.getDragItem(),n=null;t?(n=i.columnsInSplit,n||(n=i.columns)):n=i.columns;let o=r=>r.getColDef().lockPinned?r.getPinned()==this.pinned:!0;return n?n.filter(o):[]}getMoveColumnParams(e){let{allMovingColumns:t,isFromHeader:i,xPosition:n,fromLeft:o,fromEnter:r,fakeEvent:a}=e,{pinned:s,gos:l,columnModel:c,columnMoveService:h,visibleColsService:m}=this;return{allMovingColumns:t,isFromHeader:i,fromLeft:o,xPosition:n,pinned:s,fromEnter:r,fakeEvent:a,gos:l,columnModel:c,columnMoveService:h,visibleColsService:m}}findFirstAndLastMovingColumns(e){let t=e.length,i,n;for(let o=0;o<=t;o++){if(!i){let r=e[o];r.getLeft()!=null&&(i=r)}if(!n){let r=e[t-1-o];r.getLeft()!=null&&(n=r)}if(i&&n)break}return{firstMovingCol:i,lastMovingCol:n}}highlightHoveredColumn(e,t){let{gos:i,columnModel:n}=this,o=i.get("enableRtl"),r=n.getCols().filter(h=>h.isVisible()&&h.getPinned()===this.pinned),a=null,s=null,l=null;for(let h of r){if(s=h.getActualWidth(),a=this.getNormalisedColumnLeft(h,0,o),a!=null){let m=a+s;if(a<=t&&m>=t){l=h;break}}
588a=null,s=null}if(l)e.indexOf(l)!==-1&&(l=null);else{for(let h=r.length-1;h>=0;h--){let m=r[h],f=r[h].getParent();if(!f){l=m;break}let b=f?.getDisplayedLeafColumns();if(b.length){l=Ae(b);break}}if(!l)return;a=this.getNormalisedColumnLeft(l,0,o),s=l.getActualWidth()}if(this.lastHighlightedColumn?.column!==l&&this.clearHighlighted(),l==null||a==null||s==null)return;let c;t-a<s/2!==o?c=0:c=1,l.setHighlighted(c),this.lastHighlightedColumn={column:l,position:c}}getNormalisedXPositionInfo(e,t){let{gos:i,visibleColsService:n}=this,o=i.get("enableRtl"),{firstMovingCol:r,column:a,position:s}=this.getColumnMoveAndTargetInfo(e,t,o);if(!r||!a||s==null)return;let l=n.getAllCols(),c=l.indexOf(r),h=l.indexOf(a),m=s===0!==o,f=c<h||c===h&&!m,b=0;if(m?f&&(b-=1):f||(b+=1),h+b===c)return;let _=l[h+b];if(!_)return;let S=this.getNormalisedColumnLeft(_,20,o);return{fromLeft:f,xPosition:S}}getColumnMoveAndTargetInfo(e,t,i){let n=this.lastHighlightedColumn||{},{firstMovingCol:o,lastMovingCol:r}=this.findFirstAndLastMovingColumns(e);if(!o||!r||n.column||!t)return B({firstMovingCol:o},n);let s=this.getPinDirection()==="left";return{firstMovingCol:o,position:s?1:0,column:s!==i?o:r}}normaliseDirection(e){if(this.gos.get("enableRtl"))switch(e){case 0:return 1;case 1:return 0}return e}getNormalisedColumnLeft(e,t,i){let{gos:n,ctrlsService:o}=this,r=e.getLeft();if(r==null)return null;let a=e.getActualWidth();return Eu({x:i?r+a-t:r+t,pinned:e.getPinned(),useHeaderRow:i,skipScrollPadding:!0,gos:n,ctrlsService:o})}isAttemptingToPin(e){let t=this.needToMoveLeft||this.needToMoveRight,i=this.failedMoveAttempts>r_;return t&&i||e.some(n=>n.getPinned()!==this.pinned)}moveColumnsAfterHighlight(e){let{allMovingColumns:t,xPosition:i,fromEnter:n,fakeEvent:o,fromLeft:r}=e,a=this.getMoveColumnParams({allMovingColumns:t,isFromHeader:!0,xPosition:i,fromLeft:r,fromEnter:n,fakeEvent:o}),{columns:s,toIndex:l}=Ly(a)||{};s&&l!=null&&(this.lastMovedInfo={columns:s,toIndex:l}),this.finishColumnMoving()}clearHighlighted(){this.lastHighlightedColumn&&(this.lastHighlightedColumn.column.setHighlighted(null),this.lastHighlightedColumn=null)}checkCenterForScrolling(e){if(!this.isCenterContainer)return;let t=this.ctrlsService.get("center"),i=t.getCenterViewportScrollLeft(),n=i+t.getCenterWidth();this.gos.get("enableRtl")?(this.needToMoveRight=e<i+ou,this.needToMoveLeft=e>n-ou):(this.needToMoveLeft=e<i+ou,this.needToMoveRight=e>n-ou),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}ensureIntervalStarted(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),M4),this.dragAndDropService.getDragAndDropImageComponent()?.setIcon(this.needToMoveLeft?"left":"right",!0))}ensureIntervalCleared(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.failedMoveAttempts=0,this.dragAndDropService.getDragAndDropImageComponent()?.setIcon(this.getIconName()))}moveInterval(){let e;this.intervalCount++,e=10+this.intervalCount*E4,e>rm&&(e=rm);let t=null,i=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?t=i.scrollHorizontally(-e):this.needToMoveRight&&(t=i.scrollHorizontally(e)),t!==0)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{if(this.failedMoveAttempts++,this.failedMoveAttempts<=r_+1)return;if(this.dragAndDropService.getDragAndDropImageComponent()?.setIcon("pinned"),!this.gos.get("suppressMoveWhenColumnDragging")){let n=this.lastDraggingEvent?.dragItem.columns;this.attemptToPinColumns(n,void 0,!0)}}}getPinDirection(){if(this.needToMoveLeft||this.pinned==="left")return"left";if(this.needToMoveRight||this.pinned==="right")return"right"}attemptToPinColumns(e,t,i=!1){let n=(e||[]).filter(o=>!o.getColDef().lockPinned);return n.length?(i&&(t=this.getPinDirection()),this.columnModel.setColsPinned(n,t,"uiColumnDragged"),i&&this.dragAndDropService.nudge(),n.length):0}destroy(){super.destroy(),this.lastDraggingEvent=null,this.clearHighlighted(),this.lastMovedInfo=null}},I4=class extends H{wireBeans(e){this.dragAndDropService=e.dragAndDropService,this.columnModel=e.columnModel,this.ctrlsService=e.ctrlsService}constructor(e,t){super(),this.pinned=e,this.eContainer=t}postConstruct(){this.ctrlsService.whenReady(this,e=>{switch(this.pinned){case"left":this.eSecondaryContainers=[[e.gridBodyCtrl.getBodyViewportElement(),e.left.getContainerElement()],[e.bottomLeft.getContainerElement()],[e.topLeft.getContainerElement()]];break;case"right":this.eSecondaryContainers=[[e.gridBodyCtrl.getBodyViewportElement(),e.right.getContainerElement()],[e.bottomRight.getContainerElement()],[e.topRight.getContainerElement()]];break;default:this.eSecondaryContainers=[[e.gridBodyCtrl.getBodyViewportElement(),e.center.getViewportElement()],[e.bottomCenter.getViewportElement()],[e.topCenter.getViewportElement()]];break}}),this.moveColumnFeature=this.createManagedBean(new T4(this.pinned)),this.bodyDropPivotTarget=this.createManagedBean(new y4(this.pinned)),this.dragAndDropService.addDropTarget(this),this.addDestroyFunc(()=>this.dragAndDropService.removeDropTarget(this))}isInterestedIn(e){return e===1||e===0&&this.gos.get("allowDragFromColumnsToolPanel")}getSecondaryContainers(){return this.eSecondaryContainers}getContainer(){return this.eContainer}getIconName(){return this.currentDropListener.getIconName()}isDropColumnInPivotMode(e){return this.columnModel.isPivotMode()&&e.dragSource.type===0}onDragEnter(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)}onDragLeave(e){this.currentDropListener.onDragLeave(e)}onDragging(e){this.currentDropListener.onDragging(e)}onDragStop(e){this.currentDropListener.onDragStop(e)}onDragCancel(){this.currentDropListener.onDragCancel()}},D4=class extends H{wireBeans(e){this.horizontalResizeService=e.horizontalResizeService,this.pinnedWidthService=e.pinnedWidthService,this.ctrlsService=e.ctrlsService,this.columnSizeService=e.columnSizeService,this.columnAutosizeService=e.columnAutosizeService}constructor(e,t,i,n,o){super(),this.pinned=e,this.column=t,this.eResize=i,this.comp=n,this.ctrl=o}postConstruct(){let e=[],t,i,n=()=>
588{if(it(this.eResize,t),!t)return;let a=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(e.push(a),i){let s=this.gos.get("skipHeaderOnAutoSize"),l=()=>{this.columnAutosizeService.autoSizeColumn(this.column,"uiColumnResized",s)};this.eResize.addEventListener("dblclick",l);let c=new ir(this.eResize);c.addEventListener("doubleTap",l),e.push(()=>{this.eResize.removeEventListener("dblclick",l),c.removeEventListener("doubleTap",l),c.destroy()})}},o=()=>{e.forEach(a=>a()),e.length=0},r=()=>{let a=this.column.isResizable(),s=!this.gos.get("suppressAutoSize")&&!this.column.getColDef().suppressAutoSize;(a!==t||s!==i)&&(t=a,i=s,o(),n())};r(),this.addDestroyFunc(o),this.ctrl.setRefreshFunction("resize",r)}onResizing(e,t){let{column:i,lastResizeAmount:n,resizeStartWidth:o}=this,r=this.normaliseResizeAmount(t),a=o+r,s=[{key:i,newWidth:a}];if(this.column.getPinned()){let l=this.pinnedWidthService.getPinnedLeftWidth(),c=this.pinnedWidthService.getPinnedRightWidth(),h=ql(this.ctrlsService.getGridBodyCtrl().getBodyViewportElement())-50;if(l+c+(r-n)>h)return}this.lastResizeAmount=r,this.columnSizeService.setColumnWidths(s,this.resizeWithShiftKey,e,"uiColumnResized"),e&&this.toggleColumnResizing(!1)}onResizeStart(e){this.resizeStartWidth=this.column.getActualWidth(),this.lastResizeAmount=0,this.resizeWithShiftKey=e,this.toggleColumnResizing(!0)}toggleColumnResizing(e){this.comp.addOrRemoveCssClass("ag-column-resizing",e)}normaliseResizeAmount(e){let t=e,i=this.pinned!=="left",n=this.pinned==="right";return this.gos.get("enableRtl")?i&&(t*=-1):n&&(t*=-1),t}},P4=class extends H{constructor(e){super(),this.cbSelectAllVisible=!1,this.processingEventFromCheckbox=!1,this.column=e}wireBeans(e){this.rowModel=e.rowModel,this.selectionService=e.selectionService}onSpaceKeyDown(e){let t=this.cbSelectAll;t.isDisplayed()&&!t.getGui().contains(nt(this.gos))&&(e.preventDefault(),t.setValue(!t.getValue()))}getCheckboxGui(){return this.cbSelectAll.getGui()}setComp(e){this.headerCellCtrl=e,this.cbSelectAll=this.createManagedBean(new Sm),this.cbSelectAll.addCssClass("ag-header-select-all"),qi(this.cbSelectAll.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedEventListeners({newColumnsLoaded:this.onNewColumnsLoaded.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),selectionChanged:this.onSelectionChanged.bind(this),paginationChanged:this.onSelectionChanged.bind(this),modelUpdated:this.onModelChanged.bind(this)}),this.addManagedListeners(this.cbSelectAll,{fieldValueChanged:this.onCbSelectAll.bind(this)}),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()}onNewColumnsLoaded(){this.showOrHideSelectAll()}onDisplayedColumnsChanged(){this.isAlive()&&this.showOrHideSelectAll()}showOrHideSelectAll(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible),this.cbSelectAllVisible&&(this.checkRightRowModelType("selectAllCheckbox"),this.checkSelectionType("selectAllCheckbox"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()}onModelChanged(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()}onSelectionChanged(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()}updateStateOfCheckbox(){if(this.processingEventFromCheckbox)return;this.processingEventFromCheckbox=!0;let e=this.selectionService.getSelectAllState(this.isFilteredOnly(),this.isCurrentPageOnly());this.cbSelectAll.setValue(e);let t=this.selectionService.hasNodesToSelect(this.isFilteredOnly(),this.isCurrentPageOnly());this.cbSelectAll.setDisabled(!t),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}refreshSelectAllLabel(){let e=this.localeService.getLocaleTextFunc(),i=this.cbSelectAll.getValue()?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),n=e("ariaRowSelectAll","Press Space to toggle all rows selection");this.cbSelectAllVisible?this.headerCellCtrl.setAriaDescriptionProperty("selectAll",`${n} (${i}
588)`):this.headerCellCtrl.setAriaDescriptionProperty("selectAll",null),this.cbSelectAll.setInputAriaLabel(e("ariaHeaderSelection","Column with Header Selection")),this.headerCellCtrl.announceAriaDescription()}checkSelectionType(e){return pm(this.gos)?!0:($(`${e} is only available if using 'multiRow' selection mode.`),!1)}checkRightRowModelType(e){return at(this.gos)||ko(this.gos)?!0:($(`${e} is only available if using 'clientSide' or 'serverSide' rowModelType, you are using ${this.rowModel.getType()}.`),!1)}onCbSelectAll(){if(this.processingEventFromCheckbox||!this.cbSelectAllVisible)return;let e=this.cbSelectAll.getValue(),t=this.isFilteredOnly(),i=this.isCurrentPageOnly(),n="uiSelectAll";i?n="uiSelectAllCurrentPage":t&&(n="uiSelectAllFiltered");let o={source:n,justFiltered:t,justCurrentPage:i};e?this.selectionService.selectAllRowNodes(o):this.selectionService.deselectAllRowNodes(o)}isCheckboxSelection(){let e=this.gos.get("rowSelection"),t=typeof e=="object"&&fu(e)&&as(this.column),i=this.column.getColDef().headerCheckboxSelection,n=!1;return t?n=!0:typeof i=="function"?n=i(this.gos.addGridCommonParams({column:this.column,colDef:this.column.getColDef()})):n=!!i,n&&this.checkRightRowModelType(t?"headerCheckbox":"headerCheckboxSelection")&&this.checkSelectionType(t?"headerCheckbox":"headerCheckboxSelection")}isFilteredOnly(){let e=this.gos.get("rowSelection");return typeof e=="object"?e.mode==="multiRow"&&e.selectAll==="filtered":!!this.column.getColDef().headerCheckboxSelectionFilteredOnly}isCurrentPageOnly(){let e=this.gos.get("rowSelection");return typeof e=="object"?e.mode==="multiRow"&&e.selectAll==="currentPage":!!this.column.getColDef().headerCheckboxSelectionCurrentPageOnly}},R4=class extends Ru{constructor(e,t,i){super(e,t,i),this.refreshFunctions={},this.userHeaderClasses=new Set,this.ariaDescriptionProperties=new Map,this.column=e}setComp(e,t,i,n,o){this.comp=e,o=$l(this,this.beans.context,o),this.setGui(t,o),this.updateState(),this.setupWidth(o),this.setupMovingCss(o),this.setupMenuClass(o),this.setupSortableClass(o),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight({wrapperElement:n,checkMeasuringCallback:a=>this.setRefreshFunction("measuring",a),compBean:o}),this.addColumnHoverListener(o),this.setupFilterClass(o),this.setupClassesFromColDef(),this.setupTooltip(o),this.addActiveHeaderMouseListeners(o),this.setupSelectAll(o),this.setupUserComp(o),this.refreshAria(),this.resizeFeature=o.createManagedBean(new D4(this.getPinned(),this.column,i,e,this)),o.createManagedBean(new Rm([this.column],t)),o.createManagedBean(new Pm(this.column,t,this.beans)),o.createManagedBean(new Kr(t,{shouldStopEventPropagation:a=>this.shouldStopEventPropagation(a),onTabKeyDown:()=>null,handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addResizeAndMoveKeyboardListeners(o),o.addManagedPropertyListeners(["suppressMovableColumns","suppressMenuHide","suppressAggFuncInHeader"],()=>this.refresh(o)),o.addManagedListeners(this.column,{colDefChanged:()=>this.refresh(o)}),o.addManagedListeners(this.column,{headerHighlightChanged:this.onHeaderHighlightChanged.bind(this)});let r=()=>this.checkDisplayName(o);o.addManagedEventListeners({columnValueChanged:r,columnRowGroupChanged:r,columnPivotChanged:r,headerHeightChanged:this.onHeaderHeightChanged.bind(this)}),o.addDestroyFunc(()=>{this.refreshFunctions={},this.selectAllFeature=null,this.dragSourceElement=void 0,this.userCompDetails=null,this.userHeaderClasses.clear(),this.ariaDescriptionProperties.clear(),this.clearComponent()})}resizeHeader(e,t){if(!this.column.isResizable())return;let i=this.column.getActualWidth(),n=this.column.getMinWidth(),o=this.column.getMaxWidth(),r=Math.min(Math.max(i+e,n),o);this.beans.columnSizeService.setColumnWidths([{key:this.column,newWidth:r}],t,!0,"uiColumnResized")}moveHeader(e){let{eGui:t,beans:i,column:n,ctrlsService:o}=this,{gos:r,columnModel:a,columnMoveService:s,visibleColsService:l}=i,c=this.getPinned(),h=t.getBoundingClientRect().left,m=n.getActualWidth(),f=r.get("enableRtl"),_=Eu({x:e===0!==f?h-20:h+m+20,pinned:c,fromKeyboard:!0,gos:r,ctrlsService:o}),S=this.focusService.getFocusedHeader();Nm({allMovingColumns:[n],isFromHeader:!0,fromLeft:e===1,xPosition:_,pinned:c,fromEnter:!1,fakeEvent:!1,gos:r,columnModel:a,columnMoveService:s,visibleColsService:l,finished:!0}
588),o.getGridBodyCtrl().getScrollFeature().ensureColumnVisible(n,"auto"),(!this.isAlive()||this.beans.gos.get("ensureDomOrder"))&&S&&this.restoreFocus(S)}restoreFocus(e){this.focusService.focusHeaderPosition({headerPosition:ye(B({},e),{column:this.column})})}setupUserComp(e){let t=this.lookupUserCompDetails(e);this.setCompDetails(t)}setCompDetails(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)}lookupUserCompDetails(e){let t=this.createParams(e),i=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(i,t)}createParams(e){return this.gos.addGridCommonParams({column:this.column,displayName:this.displayName,enableSorting:this.column.isSortable(),enableMenu:this.menuEnabled,enableFilterButton:this.openFilterEnabled&&this.menuService.isHeaderFilterButtonEnabled(this.column),enableFilterIcon:!this.openFilterEnabled||this.menuService.isLegacyMenuEnabled(),showColumnMenu:i=>{this.menuService.showColumnMenu({column:this.column,buttonElement:i,positionBy:"button"})},showColumnMenuAfterMouseClick:i=>{this.menuService.showColumnMenu({column:this.column,mouseEvent:i,positionBy:"mouse"})},showFilter:i=>{this.menuService.showFilterMenu({column:this.column,buttonElement:i,containerType:"columnFilter",positionBy:"button"})},progressSort:i=>{this.beans.sortController.progressSort(this.column,!!i,"uiColumnSorted")},setSort:(i,n)=>{this.beans.sortController.setSortForColumn(this.column,i,!!n,"uiColumnSorted")},eGridHeader:this.getGui(),setTooltip:(i,n)=>{this.setupTooltip(e,i,n)}})}setupSelectAll(e){this.selectAllFeature=e.createManagedBean(new P4(this.column)),this.selectAllFeature.setComp(this)}getSelectAllGui(){return this.selectAllFeature.getCheckboxGui()}handleKeyDown(e){super.handleKeyDown(e),e.key===j.SPACE&&this.selectAllFeature.onSpaceKeyDown(e),e.key===j.ENTER&&this.onEnterKeyDown(e),e.key===j.DOWN&&e.altKey&&this.showMenuOnKeyPress(e,!1)}onEnterKeyDown(e){if(e.ctrlKey||e.metaKey)this.showMenuOnKeyPress(e,!0);else if(this.sortable){let t=e.shiftKey;this.beans.sortController.progressSort(this.column,t,"uiColumnSorted")}}showMenuOnKeyPress(e,t){let i=this.comp.getUserCompInstance();!i||!(i instanceof tm)||i.onMenuKeyboardShortcut(t)&&e.preventDefault()}onFocusIn(e){if(!this.getGui().contains(e.relatedTarget)){let t=this.getRowIndex();this.focusService.setFocusedHeader(t,this.column),this.announceAriaDescription()}this.focusService.isKeyboardMode()&&this.setActiveHeader(!0)}onFocusOut(e){this.getGui().contains(e.relatedTarget)||this.setActiveHeader(!1)}setupTooltip(e,t,i){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature));let n=this.gos.get("tooltipShowMode")==="whenTruncated",o=this.eGui,r=this.column.getColDef();!i&&n&&!r.headerComponent&&(i=()=>{let l=o.querySelector(".ag-header-cell-text");return l?l.scrollWidth>l.clientWidth:!0});let a={getColumn:()=>this.column,getColDef:()=>this.column.getColDef(),getGui:()=>o,getLocation:()=>"header",getTooltipValue:()=>t??this.column.getColDef().headerTooltip,shouldDisplayTooltip:i},s=e.createManagedBean(new us(a));this.setRefreshFunction("tooltip",()=>s.refreshToolTip())}setupClassesFromColDef(){let e=()=>{let t=this.column.getColDef(),i=Iy(t,this.gos,this.column,null),n=this.userHeaderClasses;this.userHeaderClasses=new Set(i),i.forEach(o=>{n.has(o)?n.delete(o):this.comp.addOrRemoveCssClass(o,!0)}),n.forEach(o=>this.comp.addOrRemoveCssClass(o,!1))};this.setRefreshFunction("headerClasses",e),e()}setDragSource(e){if(this.dragSourceElement=e,this.removeDragSource(),!e||!this.draggable)return;let{column:t,beans:i,displayName:n,dragAndDropService:o,gos:r}=this,{columnModel:a}=i,s=!this.gos.get("suppressDragLeaveHidesColumns"),l=this.dragSource={type:1,eElement:e,getDefaultIconName:()=>s?"hide":"notAllowed",getDragItem:()=>this.createDragItem(t),dragItemName:n,onDragStarted:()=>{s=!r.get("suppressDragLeaveHidesColumns"),is([t],!0)},onDragStopped:()=>is([t],!1),onDragCancelled:()=>is([t],!1),onGridEnter:c=>{if(s){let h=c?.columns?.filter(m=>!m.getColDef().lockVisible)||[];a.setColsVisible(h,!0,"uiColumnMoved")}},onGridExit:c=>{if(s){let h=c?.columns?.filter(m=>!m.getColDef().lockVisible)||[];a.setColsVisible(h,!1,"uiColumnMoved")}}};o.addDragSource(l,!0)}createDragItem(e){let t={};return t[e.getId()]=e.isVisible(),{columns:[e],visibleState:t}}updateState(){this.menuEnabled=this.menuService.isColumnMenuInHeaderEnabled(this.column),this.openFilterEnabled=this.menuService.isFilterMenuInHeaderEnabled(this.column),this.sortable=this.column.isSortable(),this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()}setRefreshFunction(e,t){this.refreshFunctions[e]=t}refresh(e){this.updateState(),this.refreshHeaderComp(e),this.refreshAria(),Ob
588ject.values(this.refreshFunctions).forEach(t=>t())}refreshHeaderComp(e){let t=this.lookupUserCompDetails(e);(this.comp.getUserCompInstance()!=null&&this.userCompDetails.componentClass==t.componentClass?this.attemptHeaderCompRefresh(t.params):!1)?this.setDragSource(this.dragSourceElement):this.setCompDetails(t)}attemptHeaderCompRefresh(e){let t=this.comp.getUserCompInstance();return!t||!t.refresh?!1:t.refresh(e)}calculateDisplayName(){return this.beans.columnNameService.getDisplayNameForColumn(this.column,"header",!0)}checkDisplayName(e){this.displayName!==this.calculateDisplayName()&&this.refresh(e)}workOutDraggable(){let e=this.column.getColDef();return!!(!this.gos.get("suppressMovableColumns")&&!e.suppressMovable&&!e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot}setupWidth(e){let t=()=>{let i=this.column.getActualWidth();this.comp.setWidth(`${i}px`)};e.addManagedListeners(this.column,{widthChanged:t}),t()}setupMovingCss(e){let t=()=>{this.comp.addOrRemoveCssClass("ag-header-cell-moving",this.column.isMoving())};e.addManagedListeners(this.column,{movingChanged:t}),t()}setupMenuClass(e){let t=()=>{this.comp.addOrRemoveCssClass("ag-column-menu-visible",this.column.isMenuVisible())};e.addManagedListeners(this.column,{menuVisibleChanged:t}),t()}setupSortableClass(e){let t=()=>{this.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!this.sortable)};t(),this.setRefreshFunction("updateSortable",t),e.addManagedEventListeners({sortChanged:this.refreshAriaSort.bind(this)})}setupFilterClass(e){let t=()=>{let i=this.column.isFilterActive();this.comp.addOrRemoveCssClass("ag-header-cell-filtered",i),this.refreshAria()};e.addManagedListeners(this.column,{filterActiveChanged:t}),t()}setupWrapTextClass(){let e=()=>{let t=!!this.column.getColDef().wrapHeaderText;this.comp.addOrRemoveCssClass("ag-header-cell-wrap-text",t)};e(),this.setRefreshFunction("wrapText",e)}onHeaderHighlightChanged(){let e=this.column.getHighlighted(),t=e===0,i=e===1;this.comp.addOrRemoveCssClass("ag-header-highlight-before",t),this.comp.addOrRemoveCssClass("ag-header-highlight-after",i)}onDisplayedColumnsChanged(){super.onDisplayedColumnsChanged(),this.isAlive()&&this.onHeaderHeightChanged()}onHeaderHeightChanged(){this.refreshSpanHeaderHeight()}refreshSpanHeaderHeight(){let{eGui:e,column:t,comp:i,beans:n}=this,o=this.beans.columnModel.getGroupRowsHeight(),r=o.reduce((m,f)=>m+=f,0)===0;if(i.addOrRemoveCssClass("ag-header-parent-hidden",r),!t.isSpanHeaderHeight()){e.style.removeProperty("top"),e.style.removeProperty("height"),i.addOrRemoveCssClass("ag-header-span-height",!1),i.addOrRemoveCssClass("ag-header-span-total",!1);return}let{numberOfParents:a,isSpanningTotal:s}=this.column.getColumnGroupPaddingInfo();i.addOrRemoveCssClass("ag-header-span-height",a>0);let{columnModel:l}=n,c=l.getColumnHeaderRowHeight();if(a===0){i.addOrRemoveCssClass("ag-header-span-total",!1),e.style.setProperty("top","0px"),e.style.setProperty("height",`${c}px`);return}i.addOrRemoveCssClass("ag-header-span-total",s);let h=0;for(let m=0;m<a;m++)h+=o[o.length-1-m];e.style.setProperty("top",`${-h}px`),e.style.setProperty("height",`${c+h}px`)}refreshAriaSort(){if(this.sortable){let e=this.localeService.getLocaleTextFunc(),t=this.beans.sortController.getDisplaySortForColumn(this.column)||null;this.comp.setAriaSort(OR(t)),this.setAriaDescriptionProperty("sort",e("ariaSortableColumn","Press ENTER to sort"))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)}refreshAriaMenu(){if(this.menuEnabled){let e=this.localeService.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",e("ariaMenuColumn","Press ALT DOWN to open column menu"))}else this.setAriaDescriptionProperty("menu",null)}refreshAriaFilterButton(){if(this.openFilterEnabled&&!this.menuService.isLegacyMenuEnabled()){let e=this.localeService.getLocaleTextFunc();this.setAriaDescriptionProperty("filterButton",e("ariaFilterColumn","Press CTRL ENTER to open filter"))}else this.setAriaDescriptionProperty("filterButton",null)}refreshAriaFiltered(){let e=this.localeService.getLocaleTextFunc();this.column.isFilterActive()?this.setAriaDescriptionProperty("filter",e("ariaColumnFiltered","Column Filtered")):this.setAriaDescriptionProperty("filter",null)}setAriaDescriptionProperty(e,t){t!=null?this.ariaDescriptionProperties.set(e,t):this.ariaDescriptionProperties.delete(e)}announceAriaDescription(){if(!this.eGui.contains(nt(this.beans.gos)))return;let e=Array.from(this.ariaDescriptionProperties.keys()).sort((t,i)=>t==="filter"?-1:i.charCodeAt(0)-t.charCodeAt(0)).map(t=>this.ariaDescriptionProperties.get(t)).join(". ");this.beans.ariaAnnouncementService.announceValue(e,"columnHeader")}refreshAria(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaFilterButton(),this.refreshAriaFiltered()}addColumnHoverListener(e){let t=()=>{if(!this.gos.get("columnHoverHighlight"))return;let i=this.beans.columnHoverService.isHovered(this.column);this.comp.addOrRemoveCssClass("ag-column-hover",i)};e.addManagedEventListeners({columnHoverChanged:t}),t()}getColId(){return this.column.getColId()}addActiveHeaderMouseListeners(e){let t=o=>this.handleMouseOverChange(o.type==="mouseenter"),i=()=>this.dispatchColumnMouseEvent("columnHeaderClicked",this.column),n=o=>this.handleContextMenuMouseEvent(o,void 0,this.column);e.addManagedListeners(this.getGui(),{mouseenter:t,mouseleave:t,click:i,contextmenu:n})}handleMouseOverChange(e){this.setActiveHeader(e),this.eventService.dispatchEvent({type:e?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column})}setActiveHeader(e){this.comp.addOrRemoveCssClass("ag-header-active",e)}getAnchorElementForMenu(e){let t=this.comp.getUserCompInstance();return t instanceof tm?t.getAnchorElementForMenu(e):this.getGui()}destroy(){super.destroy()}},F4=class extends H{wireBeans(e){this.horizontalResizeService=e.horizontalResizeService,this.autoWidthCalculator=e.autoWidthCalculator,this.visibleColsService=e.visibleColsService,this.columnSizeService=e.columnSizeService,this.columnAutosizeService=e.columnAutosizeService}constructor(e,t,i,n){super(),this.eResize=t,this.comp=e,this.pinned=i,this.columnGroup=n}postConstruct(){if(!this.columnGroup.isResizable()){this.comp.setResizableDisplayed(!1);return}let e=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(e),!this.gos.get("suppressAutoSize")){let t=this.gos.get("skipHeaderOnAutoSize");this.eResize.addEventListener("dblclick",()=>{let i=[];
588this.columnGroup.getDisplayedLeafColumns().forEach(o=>{o.getColDef().suppressAutoSize||i.push(o.getColId())}),i.length>0&&this.columnAutosizeService.autoSizeCols({colKeys:i,skipHeader:t,stopAtGroup:this.columnGroup,source:"uiColumnResized"}),this.resizeLeafColumnsToFit("uiColumnResized")})}}onResizeStart(e){let t=this.getInitialValues(e);this.storeLocalValues(t),this.toggleColumnResizing(!0)}onResizing(e,t,i="uiColumnResized"){let n=this.normaliseDragChange(t),o=this.resizeStartWidth+n;this.resizeColumnsFromLocalValues(o,i,e)}getInitialValues(e){let t=this.getColumnsToResize(),i=this.getInitialSizeOfColumns(t),n=this.getSizeRatiosOfColumns(t,i),o={columnsToResize:t,resizeStartWidth:i,resizeRatios:n},r=null;if(e&&(r=this.visibleColsService.getGroupAtDirection(this.columnGroup,"After")),r){let a=r.getDisplayedLeafColumns(),s=o.groupAfterColumns=a.filter(c=>c.isResizable()),l=o.groupAfterStartWidth=this.getInitialSizeOfColumns(s);o.groupAfterRatios=this.getSizeRatiosOfColumns(s,l)}else o.groupAfterColumns=void 0,o.groupAfterStartWidth=void 0,o.groupAfterRatios=void 0;return o}storeLocalValues(e){let{columnsToResize:t,resizeStartWidth:i,resizeRatios:n,groupAfterColumns:o,groupAfterStartWidth:r,groupAfterRatios:a}=e;this.resizeCols=t,this.resizeStartWidth=i,this.resizeRatios=n,this.resizeTakeFromCols=o,this.resizeTakeFromStartWidth=r,this.resizeTakeFromRatios=a}clearLocalValues(){this.resizeCols=void 0,this.resizeRatios=void 0,this.resizeTakeFromCols=void 0,this.resizeTakeFromRatios=void 0}resizeLeafColumnsToFit(e){let t=this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup),i=this.getInitialValues();t>i.resizeStartWidth&&this.resizeColumns(i,t,e,!0)}resizeColumnsFromLocalValues(e,t,i=!0){if(!this.resizeCols||!this.resizeRatios)return;let n={columnsToResize:this.resizeCols,resizeStartWidth:this.resizeStartWidth,resizeRatios:this.resizeRatios,groupAfterColumns:this.resizeTakeFromCols??void 0,groupAfterStartWidth:this.resizeTakeFromStartWidth??void 0,groupAfterRatios:this.resizeTakeFromRatios??void 0};this.resizeColumns(n,e,t,i)}resizeColumns(e,t,i,n=!0){let{columnsToResize:o,resizeStartWidth:r,resizeRatios:a,groupAfterColumns:s,groupAfterStartWidth:l,groupAfterRatios:c}=e,h=[];if(h.push({columns:o,ratios:a,width:t}),s){let m=t-r;h.push({columns:s,ratios:c,width:l-m})}this.columnSizeService.resizeColumnSets({resizeSets:h,finished:n,source:i}),n&&this.toggleColumnResizing(!1)}toggleColumnResizing(e){this.comp.addOrRemoveCssClass("ag-column-resizing",e)}getColumnsToResize(){return this.columnGroup.getDisplayedLeafColumns().filter(t=>t.isResizable())}getInitialSizeOfColumns(e){return e.reduce((t,i)=>t+i.getActualWidth(),0)}getSizeRatiosOfColumns(e,t){return e.map(i=>i.getActualWidth()/t)}normaliseDragChange(e){let t=e;return this.gos.get("enableRtl")?this.pinned!=="left"&&(t*=-1):this.pinned==="right"&&(t*=-1),t}destroy(){super.destroy(),this.clearLocalValues()}},O4=class extends H{constructor(e,t){super(),this.removeChildListenersFuncs=[],this.columnGroup=t,this.comp=e}postConstruct(){this.addListenersToChildrenColumns(),this.addManagedListeners(this.columnGroup,{displayedChildrenChanged:this.onDisplayedChildrenChanged.bind(this)}),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))}addListenersToChildrenColumns(){this.removeListenersOnChildrenColumns();let e=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach(t=>{t.addEventListener("widthChanged",e),t.addEventListener("visibleChanged",e),this.removeChildListenersFuncs.push(()=>{t.removeEventListener("widthChanged",e),t.removeEventListener("visibleChanged",e)})})}removeListenersOnChildrenColumns(){this.removeChildListenersFuncs.forEach(e=>e()),this.removeChildListenersFuncs=[]}onDisplayedChildrenChanged(){this.addListenersToChildrenColumns(),this.onWidthChanged()}onWidthChanged(){let e=this.columnGroup.getActualWidth();this.comp.setWidth(`${e}px`),this.comp.addOrRemoveCssClass("ag-hidden",e===0)}},A4=class extends Ru{constructor(e,t,i){super(e,t,i),this.onSuppressColMoveChange=()=>{if(!this.isAlive()||this.isSuppressMoving())this.removeDragSource();else if(!this.dragSource){let n=this.getGui();this.setDragSource(n)}},this.column=e}setComp(e,t,i,n,o){this.comp=e,o=$l(this,this.beans.context,o),this.setGui(t,o),this.displayName=this.beans.columnNameService.getDisplayNameForColumnGroup(this.column,"header"),this.addClasses(),this.setupMovingCss(o),this.setupExpandable(o),this.setupTooltip(o),this.setupAutoHeight({wrapperElement:n,compBean:o}),this.setupUserComp(o),this.addHeaderMouseListeners(o),this.addManagedPropertyListener("groupHeaderHeight",this.refreshMaxHeaderHeight.bind(this)),this.refreshMaxHeaderHeight();let r=this.getParentRowCtrl().getPinned(),a=this.column.getProvidedColumnGroup().getLeafColumns();o.createManagedBean(new Rm(a,t)),o.createManagedBean(new Pm(this.column,t,this.beans)),o.createManagedBean(new O4(e,this.column)),this.resizeFeature=o.createManagedBean(new F4(e,i,r,this.column)),o.createManagedBean(new Kr(t,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:()=>{},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)})),this.addHighlightListeners(o,a),o.addManagedPropertyListener("suppressMovableColumns",this.onSuppressColMoveChange),this.addResizeAndMoveKeyboardListeners(o),o.addDestroyFunc(()=>this.clearComponent())}refreshMaxHeaderHeight(){let{gos:e,comp:t}=this,i=e.get("groupHeaderHeight");i!=null?i===0?t.setHeaderWrapperHidden(!0):t.setHeaderWrapperMaxHeight(i):(t.setHeaderWrapperHidden(!1),t.setHeaderWrapperMaxHeight(null))}addHighlightListeners(e,t){if(this.beans.gos.get("suppressMoveWhenColumnDragging"))for(let i of t)e.addManagedListeners(i,{headerHighlightChanged:this.onLeafColumnHighlightChanged.bind(this,i)})}onLeafColumnHighlightChanged(e){let t=this.column.getDisplayedLeafColumns(),i=t[0]===e,n=Ae(t)===e;if(!i&&!n)return;let o=e.getHighlighted(),r=!!this.getParentRowCtrl().findHeaderCellCtrl(l=>l.getColumnGroupChild().isMoving()),a=!1,s=!1;if(r){let l=this.beans.gos.get("enableRtl"),c=o===1,h=o===0;i&&(l?s=c:a=h),n&&(l?a=h:s=c)}this.comp.addOrRemoveCssClass("ag-header-highlight-before",a),this.comp.addOrRemoveCssClass("ag-header-highlight-after",s)}getColumn(){return this.column}resizeHeader(e,t){if(!this.resizeFeature)return;let i=this.resizeFeature.getInitialValues(t);this.resizeFeature.resizeColumns(i,i.resizeStartWidth+e,"uiColumnResized",!0)}moveHeader(e){let{beans:t,eGui:i,column:n,ctrlsService:o}=this,{gos:r,columnModel:a,columnMoveService:s,visibleColsService:l}=t,c=r.get("enableRtl"),h=e===0,m=this.getPinned(),f=i.getBoundingClientRect(),b=f.left,_=f.width,S=Eu({x:h!==c?b-20:b+_+20,pinned:m,fromKeyboard:!0,gos:r,ctrlsService:o}),M=n.getGroupId(),D=this.focusService.getFocusedHeader();Nm({allMovingColumns:this.column.getLeafColumns(),isFromHeader:!0,fromLeft:e===1,xPosition:S,pinned:m,fromEnter:!1,fakeEvent:!1,gos:r,columnModel:a,columnMoveService:s,visibleColsService:l,finished:!0});let I=n.getDisplayedLeafColumns(),F=h?I[0]:Ae(I);
588this.ctrlsService.getGridBodyCtrl().getScrollFeature().ensureColumnVisible(F,"auto"),(!this.isAlive()||this.beans.gos.get("ensureDomOrder"))&&D&&this.restoreFocus(M,n,D)}restoreFocus(e,t,i){let n=t.getLeafColumns();if(!n.length)return;let o=n[0].getParent();if(!o)return;let r=this.findGroupWidthId(o,e);r&&this.focusService.focusHeaderPosition({headerPosition:ye(B({},i),{column:r})})}findGroupWidthId(e,t){for(;e;){if(e.getGroupId()===t)return e;e=e.getParent()}return null}resizeLeafColumnsToFit(e){this.resizeFeature&&this.resizeFeature.resizeLeafColumnsToFit(e)}setupUserComp(e){let t=this.gos.addGridCommonParams({displayName:this.displayName,columnGroup:this.column,setExpanded:n=>{this.beans.columnModel.setColumnGroupOpened(this.column.getProvidedColumnGroup(),n,"gridInitializing")},setTooltip:(n,o)=>{this.setupTooltip(e,n,o)}}),i=this.userComponentFactory.getHeaderGroupCompDetails(t);this.comp.setUserCompDetails(i)}addHeaderMouseListeners(e){let t=o=>this.handleMouseOverChange(o.type==="mouseenter"),i=()=>this.dispatchColumnMouseEvent("columnHeaderClicked",this.column.getProvidedColumnGroup()),n=o=>this.handleContextMenuMouseEvent(o,void 0,this.column.getProvidedColumnGroup());e.addManagedListeners(this.getGui(),{mouseenter:t,mouseleave:t,click:i,contextmenu:n})}handleMouseOverChange(e){this.eventService.dispatchEvent({type:e?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column.getProvidedColumnGroup()})}setupTooltip(e,t,i){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature));let n=this.column.getColGroupDef(),o=this.gos.get("tooltipShowMode")==="whenTruncated",r=this.eGui;!i&&o&&!n?.headerGroupComponent&&(i=()=>{let s=r.querySelector(".ag-header-group-text");return s?s.scrollWidth>s.clientWidth:!0});let a={getColumn:()=>this.column,getGui:()=>r,getLocation:()=>"headerGroup",getTooltipValue:()=>t??(n&&n.headerTooltip),shouldDisplayTooltip:i};n&&(a.getColDef=()=>n),e.createManagedBean(new us(a))}setupExpandable(e){let t=this.column.getProvidedColumnGroup();this.refreshExpanded();let i=this.refreshExpanded.bind(this);e.addManagedListeners(t,{expandedChanged:i,expandableChanged:i})}refreshExpanded(){let{column:e}=this;this.expandable=e.isExpandable();let t=e.isExpanded();this.expandable?this.comp.setAriaExpanded(t?"true":"false"):this.comp.setAriaExpanded(void 0)}getColId(){return this.column.getUniqueId()}addClasses(){let e=this.column.getColGroupDef(),t=Iy(e,this.gos,null,this.column);this.column.isPadding()?(t.push("ag-header-group-cell-no-group"),this.column.getLeafColumns().every(n=>n.isSpanHeaderHeight())&&t.push("ag-header-span-height")):(t.push("ag-header-group-cell-with-group"),e?.wrapHeaderText&&t.push("ag-header-cell-wrap-text")),t.forEach(i=>this.comp.addOrRemoveCssClass(i,!0))}setupMovingCss(e){let i=this.column.getProvidedColumnGroup().getLeafColumns(),n=()=>this.comp.addOrRemoveCssClass("ag-header-cell-moving",this.column.isMoving());i.forEach(o=>{e.addManagedListeners(o,{movingChanged:n})}),n()}onFocusIn(e){if(!this.eGui.contains(e.relatedTarget)){let t=this.getRowIndex();this.beans.focusService.setFocusedHeader(t,this.column)}}handleKeyDown(e){super.handleKeyDown(e);let t=this.getWrapperHasFocus();if(!(!this.expandable||!t)&&e.key===j.ENTER){let i=this.column,n=!i.isExpanded();this.beans.columnModel.setColumnGroupOpened(i.getProvidedColumnGroup(),n,"uiColumnExpanded")}}setDragSource(e){if(!this.isAlive()||this.isSuppressMoving()||(this.removeDragSource(),!e))return;let{beans:t,column:i,displayName:n,gos:o,dragAndDropService:r}=this,{columnModel:a}=t,s=i.getProvidedColumnGroup().getLeafColumns(),l=!o.get("suppressDragLeaveHidesColumns"),c=this.dragSource={type:1,eElement:e,getDefaultIconName:()=>l?"hide":"notAllowed",dragItemName:n,getDragItem:()=>this.getDragItemForGroup(i),onDragStarted:()=>{l=!o.get("suppressDragLeaveHidesColumns"),is(s,!0)},onDragStopped:()=>is(s,!1),onDragCancelled:()=>is(s,!1),onGridEnter:h=>
588{if(l){let{columns:m=[],visibleState:f}=h??{},b=m.filter(_=>!_.getColDef().lockVisible&&(!f||f[_.getColId()]));a.setColsVisible(b,!0,"uiColumnMoved")}},onGridExit:h=>{if(l){let m=h?.columns?.filter(f=>!f.getColDef().lockVisible)||[];a.setColsVisible(m,!1,"uiColumnMoved")}}};r.addDragSource(c,!0)}getDragItemForGroup(e){let t=e.getProvidedColumnGroup().getLeafColumns(),i={};t.forEach(a=>i[a.getId()]=a.isVisible());let n=[];this.beans.visibleColsService.getAllCols().forEach(a=>{t.indexOf(a)>=0&&(n.push(a),xi(t,a))}),t.forEach(a=>n.push(a));let o=[],r=e.getLeafColumns();for(let a of n)r.indexOf(a)!==-1&&o.push(a);return{columns:n,columnsInSplit:o,visibleState:i}}isSuppressMoving(){let e=!1;return this.column.getLeafColumns().forEach(i=>{(i.getColDef().suppressMovable||i.getColDef().lockPosition)&&(e=!0)}),e||this.gos.get("suppressMovableColumns")}destroy(){super.destroy()}},L4=0,Ng=class extends H{constructor(e,t,i){super(),this.instanceId=L4++,this.rowIndex=e,this.pinned=t,this.type=i;let n=i=="group"?"ag-header-row-column-group":i=="filter"?"ag-header-row-column-filter":"ag-header-row-column";this.headerRowClass=`ag-header-row ${n}`}wireBeans(e){this.beans=e}postConstruct(){this.isPrintLayout=Bt(this.gos,"print"),this.isEnsureDomOrder=this.gos.get("ensureDomOrder")}areCellsRendered(){return this.comp?this.getHeaderCellCtrls().every(e=>e.getGui()!=null):!1}setComp(e,t,i=!0){this.comp=e,t=$l(this,this.beans.context,t),i&&(this.onRowHeightChanged(),this.onVirtualColumnsChanged()),this.setWidth(),this.addEventListeners(t)}getHeaderRowClass(){return this.headerRowClass}getAriaRowIndex(){return this.rowIndex+1}addEventListeners(e){let t=this.onRowHeightChanged.bind(this);e.addManagedEventListeners({columnResized:this.onColumnResized.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),virtualColumnsChanged:i=>this.onVirtualColumnsChanged(i.afterScroll),columnGroupHeaderHeightChanged:t,columnHeaderHeightChanged:t,gridStylesChanged:t,advancedFilterEnabledChanged:t}),e.addManagedPropertyListener("domLayout",this.onDisplayedColumnsChanged.bind(this)),e.addManagedPropertyListener("ensureDomOrder",i=>this.isEnsureDomOrder=i.currentValue),e.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],t)}getHeaderCellCtrl(e){if(this.headerCellCtrls)return du(this.headerCellCtrls).find(t=>t.getColumnGroupChild()===e)}onDisplayedColumnsChanged(){this.isPrintLayout=Bt(this.gos,"print"),this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()}getType(){return this.type}onColumnResized(){this.setWidth()}setWidth(){let e=this.getWidthForRow();this.comp.setWidth(`${e}px`)}getWidthForRow(){let{visibleColsService:e}=this.beans;return this.isPrintLayout?this.pinned!=null?0:e.getContainerWidth("right")+e.getContainerWidth("left")+e.getContainerWidth(null):e.getContainerWidth(this.pinned)}onRowHeightChanged(){let{topOffset:e,rowHeight:t}=this.getTopAndHeight();this.comp.setTop(e+"px"),this.comp.setHeight(t+"px")}getTopAndHeight(){let{columnModel:e,filterManager:t}=this.beans,i=[],n=e.getGroupRowsHeight(),o=e.getColumnHeaderRowHeight();i.push(...n),i.push(o),t?.hasFloatingFilters()&&i.push(e.getFloatingFiltersHeight());let r=0;for(let s=0;s<this.rowIndex;s++)r+=i[s];let a=i[this.rowIndex];return{topOffset:r,rowHeight:a}}getPinned(){return this.pinned}getRowIndex(){return this.rowIndex}onVirtualColumnsChanged(e=!1){let t=this.getHeaderCtrls(),i=this.isEnsureDomOrder||this.isPrintLayout;this.comp.setHeaderCtrls(t,i,e)}getHeaderCtrls(){let e=this.headerCellCtrls;this.headerCellCtrls=new Map;let t=this.getColumnsInViewport();for(let n of t)this.recycleAndCreateHeaderCtrls(n,e);let i=n=>{let{focusService:o,visibleColsService:r}=this.beans;return o.isHeaderWrapperFocused(n)?r.isVisible(n.getColumnGroupChild()):!1};if(e)for(let[n,o]of e)i(o)?this.headerCellCtrls.set(n,o):this.destroyBean(o);return this.getHeaderCellCtrls()}getHeaderCellCtrls(){return Array.from(this.headerCellCtrls?.values()??[])}recycleAndCreateHeaderCtrls(e,t){if(!this.headerCellCtrls||e.isEmptyGroup())return;let i=e.getUniqueId(),n;if(t&&(n=t.get(i),t.delete(i)),n&&n.getColumnGroupChild()!=e&&(this.destroyBean(n),n=void 0),n==null)switch(this.type){case"filter":{n=this.createBean(this.beans.ctrlsFactory.getInstance("headerFilterCell",e,this.beans,this));break}case"group":n=this.createBean(new A4(e,this.beans,this));break;default:n=this.createBean(new R4(e,this.beans,this));break}this.headerCellCtrls.set(i,n)}getColumnsInViewport(){return this.isPrintLayout?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()}getColumnsInViewportPrintLayout(){if(this.pinned!=null)return[];let e=[],t=this.getActualDepth(),{columnViewportService:i}=this.beans;return["left",null,"right"].forEach(n=>{let o=i.getHeadersToRender(n,t);e=e.concat(o)}),e}getActualDepth(){return this.type=="filter"?this.rowIndex-1:this.rowIndex}getColumnsInViewportNormalLayout(){return this.beans.columnViewportService.getHeadersToRender(this.pinned,this.getActualDepth())}findHeaderCellCtrl(e){if(!this.headerCellCtrls)return;let t=this.getHeaderCellCtrls(),i;return typeof e=="function"?i=t.find(e):i=t.find(n=>n.getColumnGroupChild()==e),i}focusHeader(e,t){let i=this.findHeaderCellCtrl(e);return i?i.focus(t):!1}
588destroy(){this.headerCellCtrls?.forEach(e=>{this.destroyBean(e)}),this.headerCellCtrls=void 0,super.destroy()}},N4=class extends H{constructor(e){super(),this.hidden=!1,this.includeFloatingFilter=!1,this.groupsRowCtrls=[],this.pinned=e}wireBeans(e){this.ctrlsService=e.ctrlsService,this.scrollVisibleService=e.scrollVisibleService,this.pinnedWidthService=e.pinnedWidthService,this.columnModel=e.columnModel,this.focusService=e.focusService,this.filterManager=e.filterManager}setComp(e,t){this.comp=e,this.eViewport=t,this.setupCenterWidth(),this.setupPinnedWidth(),this.setupDragAndDrop(this.eViewport);let i=this.onDisplayedColumnsChanged.bind(this);this.addManagedEventListeners({gridColumnsChanged:this.onGridColumnsChanged.bind(this),displayedColumnsChanged:i,advancedFilterEnabledChanged:i});let n=`${typeof this.pinned=="string"?this.pinned:"center"}Header`;this.ctrlsService.register(n,this),this.columnModel.isReady()&&this.refresh()}getAllCtrls(){let e=[...this.groupsRowCtrls];return this.columnsRowCtrl&&e.push(this.columnsRowCtrl),this.filtersRowCtrl&&e.push(this.filtersRowCtrl),e}refresh(e=!1){let t=new ls,i=this.focusService.getFocusHeaderToUseAfterRefresh(),n=()=>{let s=this.columnModel.getHeaderRowCount()-1;this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls);for(let l=0;l<s;l++){let c=this.createBean(new Ng(t.next(),this.pinned,"group"));this.groupsRowCtrls.push(c)}},o=()=>{let s=t.next(),l=!this.hidden&&(this.columnsRowCtrl==null||!e||this.columnsRowCtrl.getRowIndex()!==s);(l||this.hidden)&&(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl)),l&&(this.columnsRowCtrl=this.createBean(new Ng(s,this.pinned,"column")))},r=()=>{this.includeFloatingFilter=!!this.filterManager?.hasFloatingFilters()&&!this.hidden;let s=()=>{this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)};if(!this.includeFloatingFilter){s();return}let l=t.next();if(this.filtersRowCtrl){let c=this.filtersRowCtrl.getRowIndex()!==l;(!e||c)&&s()}this.filtersRowCtrl||(this.filtersRowCtrl=this.createBean(new Ng(l,this.pinned,"filter")))};n(),o(),r();let a=this.getAllCtrls();this.comp.setCtrls(a),this.restoreFocusOnHeader(i)}getHeaderCtrlForColumn(e){if(or(e))return this.columnsRowCtrl?.getHeaderCellCtrl(e);if(this.groupsRowCtrls.length!==0)for(let t=0;t<this.groupsRowCtrls.length;t++){let i=this.groupsRowCtrls[t].getHeaderCellCtrl(e);if(i)return i}}getHtmlElementForColumnHeader(e){let t=this.getHeaderCtrlForColumn(e);return t?t.getGui():null}getRowType(e){let i=this.getAllCtrls()[e];return i?i.getType():void 0}focusHeader(e,t,i){let o=this.getAllCtrls()[e];return o?o.focusHeader(t,i):!1}getViewportElement(){return this.eViewport}getGroupRowCount(){return this.groupsRowCtrls.length}getGroupRowCtrlAtIndex(e){return this.groupsRowCtrls[e]}getRowCount(){return this.groupsRowCtrls.length+(this.columnsRowCtrl?1:0)+(this.filtersRowCtrl?1:0)}setHorizontalScroll(e){this.comp.setViewportScrollLeft(e)}onScrollCallback(e){this.addManagedElementListeners(this.getViewportElement(),{scroll:e})}destroy(){this.filtersRowCtrl&&(this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)),this.columnsRowCtrl&&(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl)),this.groupsRowCtrls&&this.groupsRowCtrls.length&&(this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls)),super.destroy()}setupDragAndDrop(e){let t=new I4(this.pinned,e);this.createManagedBean(t)}restoreFocusOnHeader(e){if(!e)return;let{column:t}=e;t.getPinned()==this.pinned&&this.focusService.focusHeaderPosition({headerPosition:e})}onGridColumnsChanged(){this.refresh(!0)}onDisplayedColumnsChanged(){let e=this.filterManager?.hasFloatingFilters()&&!this.hidden;this.includeFloatingFilter!==e&&this.refresh(!0)}setupCenterWidth(){this.pinned==null&&this.createManagedBean(new Lm(e=>this.comp.setCenterWidth(`${e}px`),!0))}setupPinnedWidth(){if(this.pinned==null)return;let e=this.pinned==="left",t=this.pinned==="right";this.hidden=!0;let i=()=>{let n=e?this.pinnedWidthService.getPinnedLeftWidth():this.pinnedWidthService.getPinnedRightWidth();if(n==null)return;let o=n==0,r=this.hidden!==o,a=this.gos.get("enableRtl"),s=this.scrollVisibleService.getScrollbarWidth(),c=this.scrollVisibleService.isVerticalScrollShowing()&&(a&&e||!a&&t)?n+s:n;this.comp.setPinnedContainerWidth(`${c}px`),this.comp.setDisplayed(!o),r&&(this.hidden=o,this.refresh())};this.addManagedEventListeners({leftPinnedWidthChanged:i,rightPinnedWidthChanged:i,scrollVisibilityChanged:i,scrollbarWidthChanged:i})}},z4='<div class="ag-pinned-left-header" role="rowgroup"></div>',B4='<div class="ag-pinned-right-header" role="rowgroup"></div>',V4=`<div class="ag-header-viewport" role="presentation"> 589 <div class="ag-header-container" data-ref="eCenterContainer" role="rowgroup"></div> 590 </div>`,zg=class extends Le{constructor(e){super(),this.eCenterContainer=le,this.headerRowComps={},this.rowCompsList=[],this.pinned=e}postConstruct(){this.selectAndSetTemplate();let e={setDisplayed:i=>
590this.setDisplayed(i),setCtrls:i=>this.setCtrls(i),setCenterWidth:i=>this.eCenterContainer.style.width=i,setViewportScrollLeft:i=>this.getGui().scrollLeft=i,setPinnedContainerWidth:i=>{let n=this.getGui();n.style.width=i,n.style.maxWidth=i,n.style.minWidth=i}};this.createManagedBean(new N4(this.pinned)).setComp(e,this.getGui())}selectAndSetTemplate(){let e=this.pinned=="left",t=this.pinned=="right",i=e?z4:t?B4:V4;this.setTemplate(i),this.eRowContainer=this.eCenterContainer!==le?this.eCenterContainer:this.getGui()}destroy(){this.setCtrls([]),super.destroy()}destroyRowComp(e){this.destroyBean(e),this.eRowContainer.removeChild(e.getGui())}setCtrls(e){let t=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[];let i,n=o=>{let r=o.getGui();r.parentElement!=this.eRowContainer&&this.eRowContainer.appendChild(r),i&&K_(this.eRowContainer,r,i),i=r};e.forEach(o=>{let r=o.instanceId,a=t[r];delete t[r];let s=a||this.createBean(new C4(o));this.headerRowComps[r]=s,this.rowCompsList.push(s),n(s)}),qr(t).forEach(o=>this.destroyRowComp(o))}},H4=class extends Le{constructor(){super('<div class="ag-header" role="presentation"/>')}postConstruct(){let e={addOrRemoveCssClass:(n,o)=>this.addOrRemoveCssClass(n,o),setHeightAndMinHeight:n=>{this.getGui().style.height=n,this.getGui().style.minHeight=n}};this.createManagedBean(new _4).setComp(e,this.getGui(),this.getFocusableElement());let i=n=>{this.createManagedBean(n),this.appendChild(n)};i(new zg("left")),i(new zg(null)),i(new zg("right"))}},G4={selector:"AG-HEADER-ROOT",component:H4};var zm=class extends H{constructor(e){super(),this.view=e}postConstruct(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()}updateLayoutClasses(){let e=this.getDomLayout(),t={autoHeight:e==="autoHeight",normal:e==="normal",print:e==="print"},i=t.autoHeight?"ag-layout-auto-height":t.print?"ag-layout-print":"ag-layout-normal";this.view.updateLayoutClasses(i,t)}getDomLayout(){let e=this.gos.get("domLayout")??"normal";return["normal","print","autoHeight"].indexOf(e)===-1?($(`${e} is not valid for DOM Layout, valid values are 'normal', 'autoHeight', 'print'.`),"normal"):e}},U4=class extends Le{constructor(){super(` 591 <div class="ag-overlay" role="presentation"> 592 <div class="ag-overlay-panel" role="presentation"> 593 <div class="ag-overlay-wrapper" data-ref="eOverlayWrapper" role="presentation"></div> 594 </div> 595 </div>`),this.eOverlayWrapper=le,this.activePromise=null,this.activeOverlay=null,this.updateListenerDestroyFunc=null,this.activeOverlayWrapperCssClass=null,this.elToFocusAfter=null}wireBeans(e){this.overlayService=e.overlayService,this.focusService=e.focusService,this.visibleColsService=e.visibleColsService}handleKeyDown(e){if(e.key!==j.TAB||e.defaultPrevented||yo(e)||this.focusService.findNextFocusableElement(this.eOverlayWrapper,!1,e.shiftKey))return;let i=!1;e.shiftKey?i=this.focusService.focusGridView(Ae(this.visibleColsService.getAllCols()),!0,!1):i=this.focusService.focusNextGridCoreContainer(!1),i&&e.preventDefault()}updateLayoutClasses(e,t){let i=this.eOverlayWrapper.classList;i.toggle("ag-layout-auto-height",t.autoHeight),i.toggle("ag-layout-normal",t.normal),i.toggle("ag-layout-print",t.print)}postConstruct(){this.createManagedBean(new zm(this)),this.setDisplayed(!1,{skipAriaHidden:!0}),this.overlayService.setOverlayWrapperComp(this),this.addManagedElementListeners(this.getFocusableElement(),{keydown:this.handleKeyDown.bind(this)})}setWrapperTypeClass(e){let t=this.eOverlayWrapper.classList;this.activeOverlayWrapperCssClass&&t.toggle(this.activeOverlayWrapperCssClass,!1),this.activeOverlayWrapperCssClass=e,t.toggle(e,!0)}showOverlay(e,t,i,n){if(this.setWrapperTypeClass(t),this.destroyActiveOverlay(),this.elToFocusAfter=null,this.activePromise=e,!!e){if(this.setDisplayed(!0,{skipAriaHidden:!0}),i&&this.focusService.isGridFocused()){let o=nt(this.gos);o&&!y_(this.gos)&&(this.elToFocusAfter=o)}e.then(o=>{if(this.activePromise!==e){this.activeOverlay!==o&&(this.destroyBean(o),o=null);return}if(this.activePromise=null,!o)return;if(this.activeOverlay!==o&&(this.eOverlayWrapper.appendChild(o.getGui()),this.activeOverlay=o,n)){let a=o;this.updateListenerDestroyFunc=this.addManagedPropertyListener(n,({currentValue:s})=>{a.refresh?.(this.gos.addGridCommonParams(B({},s??{})))})}let r=this.focusService;i&&r.isGridFocused()&&r.focusInto(this.eOverlayWrapper)})}}updateOverlayWrapperPaddingTop(e){this.eOverlayWrapper.style.setProperty("padding-top",`${e}px`)}destroyActiveOverlay(){this.activePromise=null;let e=this.activeOverlay;if(!e)return;let t=this.elToFocusAfter;this.activeOverlay=null,this.elToFocusAfter=null,t&&!this.focusService.isGridFocused()&&(t=null);let i=this.updateListenerDestroyFunc;i&&(i(),this.updateListenerDestroyFunc=null),this.destroyBean(e),ni(this.eOverlayWrapper),t?.focus?.({preventScroll:!0})}hideOverlay(){this.destroyActiveOverlay(),this.setDisplayed(!1,{skipAriaHidden:!0})}destroy(){this.elToFocusAfter=null,this.destroyActiveOverlay(),this.overlayService.setOverlayWrapperComp(void 0),super.destroy()}},j4={selector:"AG-OVERLAY-WRAPPER",component:U4},Ny=class extends Le{constructor(e,t){super(),this.direction=t,this.eViewport=le,this.eContainer=le,this.hideTimeout=null,this.setTemplate(e)}wireBeans(e){this.animationFrameService=e.animationFrameService}postConstruct(){this.addManagedEventListeners({scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this)}),this.onScrollVisibilityChanged(),this.addOrRemoveCssClass("ag-apple-scrollbar",ey()||ar())}initialiseInvisibleScrollbar(){this.invisibleScrollbar===void 0&&(this.invisibleScrollbar=iy(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles())
vendor: 9,627 bytes, lines 595-605
595)}addActiveListenerToggles(){let e=this.getGui(),t=()=>this.addOrRemoveCssClass("ag-scrollbar-active",!0),i=()=>this.addOrRemoveCssClass("ag-scrollbar-active",!1);this.addManagedListeners(e,{mouseenter:t,mousedown:t,touchstart:t,mouseleave:i,touchend:i})}onScrollVisibilityChanged(){this.invisibleScrollbar===void 0&&this.initialiseInvisibleScrollbar(),this.animationFrameService.requestAnimationFrame(()=>this.setScrollVisible())}hideAndShowInvisibleScrollAsNeeded(){this.addManagedEventListeners({bodyScroll:e=>{e.direction===this.direction&&(this.hideTimeout!==null&&(window.clearTimeout(this.hideTimeout),this.hideTimeout=null),this.addOrRemoveCssClass("ag-scrollbar-scrolling",!0))},bodyScrollEnd:()=>{this.hideTimeout=window.setTimeout(()=>{this.addOrRemoveCssClass("ag-scrollbar-scrolling",!1),this.hideTimeout=null},400)}})}attemptSettingScrollPosition(e){let t=this.getViewportElement();jP(()=>Mn(t),()=>this.setScrollPosition(e),100)}getViewportElement(){return this.eViewport}getContainer(){return this.eContainer}onScrollCallback(e){this.addManagedElementListeners(this.getViewportElement(),{scroll:e})}},W4=class extends Ny{constructor(){super(`<div class="ag-body-horizontal-scroll" aria-hidden="true"> 596 <div class="ag-horizontal-left-spacer" data-ref="eLeftSpacer"></div> 597 <div class="ag-body-horizontal-scroll-viewport" data-ref="eViewport"> 598 <div class="ag-body-horizontal-scroll-container" data-ref="eContainer"></div> 599 </div> 600 <div class="ag-horizontal-right-spacer" data-ref="eRightSpacer"></div> 601 </div>`,"horizontal"),this.eLeftSpacer=le,this.eRightSpacer=le}wireBeans(e){super.wireBeans(e),this.visibleColsService=e.visibleColsService,this.pinnedRowModel=e.pinnedRowModel,this.ctrlsService=e.ctrlsService,this.scrollVisibleService=e.scrollVisibleService}postConstruct(){super.postConstruct();let e=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:e,displayedColumnsWidthChanged:e,pinnedRowDataChanged:this.onPinnedRowDataChanged.bind(this)}),this.addManagedPropertyListener("domLayout",e),this.ctrlsService.register("fakeHScrollComp",this),this.createManagedBean(new Lm(t=>this.eContainer.style.width=`${t}px`)),this.addManagedPropertyListeners(["suppressHorizontalScroll"],this.onScrollVisibilityChanged.bind(this))}initialiseInvisibleScrollbar(){this.invisibleScrollbar===void 0&&(this.enableRtl=this.gos.get("enableRtl"),super.initialiseInvisibleScrollbar(),this.invisibleScrollbar&&this.refreshCompBottom())}onPinnedRowDataChanged(){this.refreshCompBottom()}refreshCompBottom(){if(!this.invisibleScrollbar)return;let e=this.pinnedRowModel.getPinnedBottomTotalHeight();this.getGui().style.bottom=`${e}px`}onScrollVisibilityChanged(){super.onScrollVisibilityChanged(),this.setFakeHScrollSpacerWidths()}setFakeHScrollSpacerWidths(){let e=this.scrollVisibleService.isVerticalScrollShowing(),t=this.visibleColsService.getDisplayedColumnsRightWidth(),i=!this.enableRtl&&e,n=this.scrollVisibleService.getScrollbarWidth();i&&(t+=n),En(this.eRightSpacer,t),this.eRightSpacer.classList.toggle("ag-scroller-corner",t<=n);let o=this.visibleColsService.getColsLeftWidth();this.enableRtl&&e&&(o+=n),En(this.eLeftSpacer,o),this.eLeftSpacer.classList.toggle("ag-scroller-corner",o<=n)}setScrollVisible(){let e=this.scrollVisibleService.isHorizontalScrollShowing(),t=this.invisibleScrollbar,i=this.gos.get("suppressHorizontalScroll"),n=e&&this.scrollVisibleService.getScrollbarWidth()||0,r=i?0:n===0&&t?16:n;this.addOrRemoveCssClass("ag-scrollbar-invisible",t),Ol(this.getGui(),r),Ol(this.eViewport,r),Ol(this.eContainer,r),this.setDisplayed(e,{skipAriaHidden:!0})}getScrollPosition(){return wu(this.getViewportElement(),this.enableRtl)}setScrollPosition(e){Mn(this.getViewportElement())||this.attemptSettingScrollPosition(e),xu(this.getViewportElement(),e,this.enableRtl)}},$4={selector:"AG-FAKE-HORIZONTAL-SCROLL",component:W4},zy=class extends H{wireBeans(e){this.maxDivHeightScaler=e.rowContainerHeightService}constructor(e,t){super(),this.eContainer=e,this.eViewport=t}postConstruct(){this.addManagedEventListeners({rowContainerHeightChanged:this.onHeightChanged.bind(this)})}onHeightChanged(){let e=this.maxDivHeightScaler.getUiContainerHeight(),t=e!=null?`${e}px`:"";this.eContainer.style.height=t,this.eViewport&&(this.eViewport.style.height=t)}},q4=class extends Ny{wireBeans(e){super.wireBeans(e),this.ctrlsService=e.ctrlsService,this.scrollVisibleService=e.scrollVisibleService}constructor(){super(`<div class="ag-body-vertical-scroll" aria-hidden="true"> 602 <div class="ag-body-vertical-scroll-viewport" data-ref="eViewport"> 603 <div class="ag-body-vertical-scroll-container" data-ref="eContainer"></div> 604 </div> 605 </div>`,"vertical")}postConstruct(){super.postConstruct(),this.createManagedBean(new zy(this.eContainer)),this.ctrlsService.register("fakeVScrollComp",this),this.addManagedEventListeners({rowContainerHeightChanged:this.onRowContainerHeightChanged.bind(this)})}setScrollVisible(){let e=this.scrollVisibleService.isVerticalScrollShowing(),t=this.invisibleScrollbar,i=e&&this.scrollVisibleService.getScrollbarWidth()||0,n=i===0&&t?16:i;this.addOrRemoveCssClass("ag-scrollbar-invisible",t),En(this.getGui(),n),En(this.eViewport,n),En(this.eContainer,n),this.setDisplayed(e,{skipAriaHidden:!0})}onRowContainerHeightChanged(){let{ctrlsService:e}=this,i=e.getGridBodyCtrl().getBodyViewportElement(),n=this.getScrollPosition(),o=i.scrollTop;n!=o&&this.setScrollPosition(o,!0)}getScrollPosition(){return this.getViewportElement().scrollTop}setScrollPosition(e,t){!t&&!Mn(this.getViewportElement())&&this.attemptSettingScrollPosition(e),this.getViewportElement().scrollTop=e}},Y4={selector:"AG-FAKE-VERTICAL-SCROLL",component:q4},am=(e=>(e.FakeHScrollbar="fakeHScrollComp",e.Header="centerHeader",e.PinnedTop="topCenter",e.PinnedBottom="bottomCenter",e.StickyTop="stickyTopCenter",e.StickyBottom="stickyBottomCenter",e))(am||{}),K4=class extends H{constructor(e){super(),this.lastScrollSource=[null,null],this.scrollLeft=-1,this.nextScrollTop=-1,this.scrollTop=-1,this.lastOffsetHeight=-1,this.lastScrollTop=-1,this.eBodyViewport=e,this.resetLastHScrollDebounced=wi(()=>this.lastScrollSource[1]=null,500),this.resetLastVScrollDebounced=wi(()=>this.lastScrollSource[0]=null,500)}wireBeans(e){this.ctrlsService=e.ctrlsService,this.animationFrameService=e.animationFrameService,this.paginationService=e.paginationService,this.pageBoundsService=e.pageBoundsService,this.rowModel=e.rowModel,this.heightScaler=e.rowContainerHeightService,this.rowRenderer=e.rowRenderer,this.columnModel=e.columnModel,this.visibleColsService=e.visibleColsService}postConstruct(){this.enableRtl=this.gos.get("enableRtl"),this.addManagedEventListeners({displayedColumnsWidthChanged:this.onDisplayedColumnsWidthChanged.bind(this)}),this.ctrlsService.whenReady(this,e=>{this.centerRowsCtrl=e.center,this.onDisplayedColumnsWidthChanged(),this.addScrollListener()})}addScrollListener(){this.addHorizontalScrollListeners(),this.addVerticalScrollListeners()}addHorizontalScrollListeners(){this.addManagedElementListeners(this.centerRowsCtrl.getViewportElement(),{scroll:this.onHScroll.bind(this,"Viewport")});for(let e of Object.values(am)){let t=this.ctrlsService.get(e);this.registerScrollPartner(t,this.onHScroll.bind(this,e))}}addVerticalScrollListeners(){let e=this.ctrlsService.get("fakeVScrollComp"),t=this.gos.get("debounceVerticalScrollbar"),i=t?wi(this.onVScroll.bind(this,"Viewport"),100):this.onVScroll.bind(this,"Viewport"),n=t?wi(this.onVScroll.bind(this,"fakeVScrollComp"),100):this.onVScroll.bind(this,"fakeVScrollComp");this.addManagedElementListeners(this.eBodyViewport,{scroll:i}),this.registerScrollPartner(e,n)}registerScrollPartner(e,t){e.onScrollCallback(t)}onDisplayedColumnsWidthChanged(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()}horizontallyScrollHeaderCenterAndFloatingCenter(e){this.centerRowsCtrl!=null&&(e===void 0&&(e=this.centerRowsCtrl.getCenterViewportScrollLeft()),this.setScrollLeftForAllContainersExceptCurrent(Math.abs(e)))}setScrollLeftForAllContainersExceptCurrent(e){for(let t of[...Object.values(am),"Viewport"]){if(this.lastScrollSource[1]===t)continue;let i=this.getViewportForSource(t);xu(i,e,this.enableRtl)}}getViewportForSource(e){return e==="Viewport"?this.centerRowsCtrl.getViewportElement():this.ctrlsService.get(e).getViewportElement()}isControllingScroll(e,t){return this.lastScrollSource[t]==null?(t===0?this.lastScrollSource[0]=e:this.lastScrollSource[1]=e,!0):this.lastScrollSource[t]===e}onHScroll(e){if(!this.isControllingScroll(e,1))return;let t=this.centerRowsCtrl.getViewportElement(),{scrollLeft:i}=t;if(this.shouldBlockScrollUpdate(1,i,!0))return;let n=wu(this.getViewportForSource(e),this.enableRtl);this.doHorizontalScroll(n),this.resetLastHScrollDebounced()}onVScroll(e){if(!this.isControllingScroll(e,0))return;let t;e==="Viewport"?t=this.eBodyViewport.scrollTop:t=this.ctrlsService.get("fakeVScrollComp").getScrollPosition(),!this.shouldBlockScrollUpdate(0,t,!0)&&(this.animationFrameService.setScrollTop(t),this.nextScrollTop=t,e==="Viewport"?this.ctrlsService.get("fakeVScrollComp").setScrollPosition(t):this.eBodyViewport.scrollTop=t,this.gos.get("suppressAnimationFrame")?this.scrollGridIfNeeded():this.animationFrameService.schedule(),this.resetLastVScrollDebounced())}doHorizontalScroll(e){let t=this.ctrlsService.get("fakeHScrollComp").getScrollPosition();this.scrollLeft===e&&e===t||(this.scrollLeft=e,this.fireScrollEvent(1),this.horizontallyScrollHeaderCenterAndFloating
605Center(e),this.centerRowsCtrl.onHorizontalViewportChanged(!0))}fireScrollEvent(e){let t={type:"bodyScroll",direction:e===1?"horizontal":"vertical",left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(t),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout(()=>{this.eventService.dispatchEvent(ye(B({},t),{type:"bodyScrollEnd"}))},100)}shouldBlockScrollUpdate(e,t,i=!1){return i&&!ar()?!1:e===0?this.shouldBlockVerticalScroll(t):this.shouldBlockHorizontalScroll(t)}shouldBlockVerticalScroll(e){let t=bm(this.eBodyViewport),{scrollHeight:i}=this.eBodyViewport;return e<0||e+t>i}shouldBlockHorizontalScroll(e){let t=this.centerRowsCtrl.getCenterWidth(),{scrollWidth:i}=this.centerRowsCtrl.getViewportElement();if(this.enableRtl){if(e>0)return!0}else if(e<0)return!0;return Math.abs(e)+t>i}redrawRowsAfterScroll(){this.fireScrollEvent(0)}checkScrollLeft(){this.scrollLeft!==this.centerRowsCtrl.getCenterViewportScrollLeft()&&this.onHScroll("Viewport")}scrollGridIfNeeded(){let e=this.scrollTop!=this.nextScrollTop;return e&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),e}setHorizontalScrollPosition(e,t=!1){let n=this.centerRowsCtrl.getViewportElement().scrollWidth-this.centerRowsCtrl.getCenterWidth();!t&&this.shouldBlockScrollUpdate(1,e)&&(this.enableRtl?e=e>0?0:n:e=Math.min(Math.max(e,0),n)),xu(this.centerRowsCtrl.getViewportElement(),Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)}setVerticalScrollPosition(e){this.eBodyViewport.scrollTop=e}getVScrollPosition(){return this.lastScrollTop=this.eBodyViewport.scrollTop,this.lastOffsetHeight=this.eBodyViewport.offsetHeight,{top:this.lastScrollTop,bottom:this.lastScrollTop+this.lastOffsetHeight}}getApproximateVScollPosition(){return this.lastScrollTop>=0&&this.lastOffsetHeight>=0?{top:this.scrollTop,bottom:this.scrollTop+this.lastOffsetHeight}:this.getVScrollPosition()}getHScrollPosition(){return this.centerRowsCtrl.getHScrollPosition()}isHorizontalScrollShowing(){return this.centerRowsCtrl.isHorizontalScrollShowing()}scrollHorizontally(e){let t=this.centerRowsCtrl.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(t+e),this.centerRowsCtrl.getViewportElement().scrollLeft-t}scrollToTop(){this.eBodyViewport.scrollTop=0}ensureNodeVisible(e,t=null){let i=this.rowModel.getRowCount(),n=-1;for(let o=0;o<i;o++){let r=this.rowModel.getRow(o);if(typeof e=="function"){if(r&&e(r)){n=o;break}}else if(e===r||e===r.data){n=o;break}}n>=0&&this.ensureIndexVisible(n,t)}ensureIndexVisible(e,t){if(Bt(this.gos,"print"))return;let i=this.rowModel.getRowCount();if(typeof e!="number"||e<0||e>=i){$("Invalid row index for ensureIndexVisible: "+e);return}let o=this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel");this.getFrameworkOverrides().wrapIncoming(()=>{o||this.paginationService?.goToPageWithIndex(e);let r=this.ctrlsService.getGridBodyCtrl(),a=r.getStickyTopHeight(),s=r.getStickyBottomHeight(),l=this.rowModel.getRow(e),c;do{let h=l.rowTop,m=l.rowHeight,f=this.pageBoundsService.getPixelOffset(),b=l.rowTop-f,_=b+l.rowHeight,S=this.getVScrollPosition(),M=this.heightScaler.getDivStretchOffset(),D=S.top+M,I=S.bottom+M,F=I-D,W=this.heightScaler.getScrollPositionForPixel(b),re=this.heightScaler.getScrollPositionForPixel(_-F),Z=Math.min((W+re)/2,b),q=D+a>b,ce=I-s<_,_e=null;t==="top"?_e=W:t==="bottom"?_e=re:t==="middle"?_e=Z:q?_e=W-a:ce&&(_e=re+s),_e!==null&&(this.setVerticalScrollPosition(_e),this.rowRenderer.redraw({afterScroll:!0})),c=h!==l.rowTop||m!==l.rowHeight}while(c);this.animationFrameService.flushAllFrames()})}ensureColumnVisible(e,t="auto"){let i=this.columnModel.getCol(e);if(!i||i.isPinned()||!this.visibleColsService.isColDisplayed(i))return;let n=this.getPositionedHorizontalScroll(i,t);this.getFrameworkOverrides().wrapIncoming(()=>{n!==null&&this.centerRowsCtrl.setCenterViewportScrollLeft(n),this.centerRowsCtrl.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()})}setScrollPosition(e,t){this.getFrameworkOverrides().wrapIncoming(()=>{this.centerRowsCtrl.setCenterViewportScrollLeft(t),this.setVerticalScrollPosition(e),this.rowRenderer.redraw({afterScroll:!0}),this.animationFrameService.flushAllFrames()})}
605getPositionedHorizontalScroll(e,t){let{columnBeforeStart:i,columnAfterEnd:n}=this.isColumnOutsideViewport(e),o=this.centerRowsCtrl.getCenterWidth()<e.getActualWidth(),r=this.centerRowsCtrl.getCenterWidth(),a=this.enableRtl,s=(a?i:n)||o,l=a?n:i;t!=="auto"&&(s=t==="start",l=t==="end");let c=t==="middle";if(s||l||c){let{colLeft:h,colMiddle:m,colRight:f}=this.getColumnBounds(e);return c?m-r/2:s?a?f:h:a?h-r:f-r}return null}isColumnOutsideViewport(e){let{start:t,end:i}=this.getViewportBounds(),{colLeft:n,colRight:o}=this.getColumnBounds(e),r=this.enableRtl,a=r?t>o:i<o,s=r?i<n:t>n;return{columnBeforeStart:a,columnAfterEnd:s}}getColumnBounds(e){let t=this.enableRtl,i=this.visibleColsService.getBodyContainerWidth(),n=e.getActualWidth(),o=e.getLeft(),r=t?-1:1,a=t?i-o:o,s=a+n*r,l=a+n/2*r;return{colLeft:a,colMiddle:l,colRight:s}}getViewportBounds(){let e=this.centerRowsCtrl.getCenterWidth(),t=this.centerRowsCtrl.getCenterViewportScrollLeft(),i=t,n=e+t;return{start:i,end:n,width:e}}},Q4=class extends H{wireBeans(e){this.animationFrameService=e.animationFrameService,this.ctrlsService=e.ctrlsService,this.pinnedWidthService=e.pinnedWidthService,this.columnModel=e.columnModel,this.visibleColsService=e.visibleColsService,this.columnSizeService=e.columnSizeService,this.scrollVisibleService=e.scrollVisibleService,this.columnViewportService=e.columnViewportService}constructor(e){super(),this.centerContainerCtrl=e}postConstruct(){this.ctrlsService.whenReady(this,e=>{this.gridBodyCtrl=e.gridBodyCtrl,this.listenForResize()}),this.addManagedEventListeners({scrollbarWidthChanged:this.onScrollbarWidthChanged.bind(this)}),this.addManagedPropertyListeners(["alwaysShowHorizontalScroll","alwaysShowVerticalScroll"],()=>{this.checkViewportAndScrolls()})}listenForResize(){let e=()=>{this.animationFrameService.requestAnimationFrame(()=>{this.onCenterViewportResized()})};this.centerContainerCtrl.registerViewportResizeListener(e),this.gridBodyCtrl.registerBodyViewportResizeListener(e)}onScrollbarWidthChanged(){this.checkViewportAndScrolls()}onCenterViewportResized(){if(this.scrollVisibleService.onCentreViewportResized(),this.centerContainerCtrl.isViewportInTheDOMTree()){this.keepPinnedColumnsNarrowerThanViewport(),this.checkViewportAndScrolls();let e=this.centerContainerCtrl.getCenterWidth();e!==this.centerWidth&&(this.centerWidth=e,this.columnSizeService.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0}keepPinnedColumnsNarrowerThanViewport(){let e=this.gridBodyCtrl.getBodyViewportElement(),t=ql(e);if(t<=50)return;let i=this.getPinnedColumnsOverflowingViewport(t-50),n=this.gos.getCallback("processUnpinnedColumns");i.length&&(n&&(i=n({columns:i,viewportWidth:t})),this.columnModel.setColsPinned(i,null,"viewportSizeFeature"))}getPinnedColumnsOverflowingViewport(e){let t=this.pinnedWidthService.getPinnedRightWidth(),i=this.pinnedWidthService.getPinnedLeftWidth(),n=t+i;if(n<e)return[];let o=[...this.visibleColsService.getLeftCols()],r=[...this.visibleColsService.getRightCols()],a=0,s=0,l=0,c=[],h=n-l-e;for(;(s<o.length||a<r.length)&&h>0;){if(a<r.length){let m=r[a++];h-=m.getActualWidth(),c.push(m)}if(s<o.length&&h>0){let m=o[s++];h-=m.getActualWidth(),c.push(m)}}return c}checkViewportAndScrolls(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.getScrollFeature().checkScrollLeft()}getBodyHeight(){return this.bodyHeight}checkBodyHeight(){let e=this.gridBodyCtrl.getBodyViewportElement(),t=bm(e);this.bodyHeight!==t&&(this.bodyHeight=t,this.eventService.dispatchEvent({type:"bodyHeightChanged"}))}updateScrollVisibleService(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)}updateScrollVisibleServiceImpl(){let e={horizontalScrollShowing:this.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleService.setScrollsVisible(e)}isHorizontalScrollShowing(){return this.centerContainerCtrl.isHorizontalScrollShowing()}onHorizontalViewportChanged(){let e=this.centerContainerCtrl.getCenterWidth(),t=this.centerContainerCtrl.getViewportScrollLeft();this.columnViewportService.setScrollPosition(e,t)}},J4=class extends H{wireBeans(e){this.dragService=e.dragService,this.rangeService=e.rangeService}constructor(e){super(),this.eContainer=e}postConstruct(){if(!this.rangeService)return;this.params={eElement:this.eContainer,onDragStart:this.rangeService.onDragStart.bind(this.rangeService),onDragStop:this.rangeService.onDragStop.bind(this.rangeService),onDragging:this.rangeService.onDragging.bind(this.rangeService)},this.addManagedPropertyListeners(["enableRangeSelection","cellSelection"],()=>
605{Un(this.gos)?this.enableFeature():this.disableFeature()}),this.addDestroyFunc(()=>this.disableFeature()),Un(this.gos)&&this.enableFeature()}enableFeature(){this.dragService.addDragSource(this.params)}disableFeature(){this.dragService.removeDragSource(this.params)}},Z4=class extends Le{constructor(){super(` 606 <div class="ag-selection-checkbox" role="presentation"> 607 <ag-checkbox role="presentation" data-ref="eCheckbox"></ag-checkbox> 608 </div>`,[km]),this.eCheckbox=le}postConstruct(){this.eCheckbox.setPassive(!0)}getCheckboxId(){return this.eCheckbox.getInputElement().id}onDataChanged(){this.onSelectionChanged()}onSelectableChanged(){this.showOrHideSelect()}onSelectionChanged(){let e=this.localeService.getLocaleTextFunc(),t=this.rowNode.isSelected(),i=vm(e,t),[n,o]=this.rowNode.selectable?["ariaRowToggleSelection","Press Space to toggle row selection"]:["ariaRowSelectionDisabled","Row Selection is disabled for this row"],r=e(n,o);this.eCheckbox.setValue(t,!0),this.eCheckbox.setInputAriaLabel(`${r} (${i})`)}onClicked(e,t,i){return this.rowNode.setSelectedParams({newValue:e,rangeSelect:i.shiftKey,groupSelectsFiltered:t,event:i,source:"checkboxSelected"})}init(e){if(this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListeners(this.eCheckbox.getInputElement(),{dblclick:n=>rs(n),click:n=>{rs(n);let o=hm(this.gos)==="filteredDescendants",r=this.eCheckbox.getValue();this.shouldHandleIndeterminateState(r,o)?this.onClicked(!0,o,n||{})===0&&this.onClicked(!1,o,n):r?this.onClicked(!1,o,n):this.onClicked(!0,o,n||{})}}),this.addManagedListeners(this.rowNode,{rowSelected:this.onSelectionChanged.bind(this),dataChanged:this.onDataChanged.bind(this),selectableChanged:this.onSelectableChanged.bind(this)}),um(this.gos)||typeof this.getIsVisible()=="function"){let n=this.showOrHideSelect.bind(this);this.addManagedEventListeners({displayedColumnsChanged:n}),this.addManagedListeners(this.rowNode,{dataChanged:n,cellChanged:n}),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")}shouldHandleIndeterminateState(e,t){return t&&(this.eCheckbox.getPreviousValue()===void 0||e===void 0)&&at(this.gos)}showOrHideSelect(){let e=this.rowNode.selectable,t=this.getIsVisible();if(e)if(typeof t=="function"){let o=this.overrides?.callbackParams;if(!this.column)e=t(ye(B({},o),{node:this.rowNode,data:this.rowNode.data}));else{let r=this.column.createColumnFunctionCallbackParams(this.rowNode);e=t(B(B({},o),r))}}else e=t??!1;let i=this.gos.get("rowSelection");if(i&&typeof i!="string"?!KP(i):this.column?.getColDef().showDisabledCheckboxes){this.eCheckbox.setDisabled(!e),this.setVisible(!0),this.setDisplayed(!0);return}if(this.overrides?.removeHidden){this.setDisplayed(e);return}this.setVisible(e)}getIsVisible(){if(this.overrides)return this.overrides.isVisible;let e=this.gos.get("rowSelection");return e&&typeof e!="string"?ns(e):this.column?.getColDef()?.checkboxSelection}},X4=class extends Le{constructor(e,t,i){super('<div class="ag-drag-handle ag-row-drag" draggable="true"></div>'),this.rowNode=e,this.column=t,this.eCell=i}postConstruct(){this.getGui().appendChild(Wi("rowDrag",this.gos,null)),this.addGuiEventListener("mousedown",t=>{t.stopPropagation()}),this.addDragSource(),this.checkVisibility()}addDragSource(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))}onDragStart(e){let t=this.column.getColDef().dndSourceOnRowDrag;e.dataTransfer.setDragImage(this.eCell,0,0);let i=()=>{try{let n=JSON.stringify(this.rowNode.data);e.dataTransfer.setData("application/json",n),e.dataTransfer.setData("text/plain",n)}catch{}};if(t){let n=this.gos.addGridCommonParams({rowNode:this.rowNode,dragEvent:e});t(n)}else i()}checkVisibility(){let e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)}}
608,eO=class extends H{constructor(e,t){super(),this.staticClasses=[],this.cellCtrl=e,this.beans=t,this.column=e.getColumn(),this.rowNode=e.getRowNode()}setComp(e){this.cellComp=e,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()}applyCellClassRules(){let e=this.column.getColDef(),{cellClassRules:t}=e,i=this.beans.gos.addGridCommonParams({value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,colDef:e,column:this.column,rowIndex:this.rowNode.rowIndex});this.beans.stylingService.processClassRules(t===this.cellClassRules?void 0:this.cellClassRules,t,i,n=>this.cellComp.addOrRemoveCssClass(n,!0),n=>this.cellComp.addOrRemoveCssClass(n,!1)),this.cellClassRules=t}applyUserStyles(){let e=this.column.getColDef();if(!e.cellStyle)return;let t;if(typeof e.cellStyle=="function"){let i=this.beans.gos.addGridCommonParams({column:this.column,value:this.cellCtrl.getValue(),colDef:e,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex}),n=e.cellStyle;t=n(i)}else t=e.cellStyle;t&&this.cellComp.setUserStyles(t)}applyClassesFromColDef(){let e=this.column.getColDef(),t=this.beans.gos.addGridCommonParams({value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,column:this.column,colDef:e,rowIndex:this.rowNode.rowIndex});this.staticClasses.length&&this.staticClasses.forEach(i=>this.cellComp.addOrRemoveCssClass(i,!1)),this.staticClasses=this.beans.stylingService.getStaticCellClasses(e,t),this.staticClasses.length&&this.staticClasses.forEach(i=>this.cellComp.addOrRemoveCssClass(i,!0))}destroy(){super.destroy()}},tO=class extends H{constructor(e,t,i,n,o){super(),this.cellCtrl=e,this.beans=t,this.rowNode=n,this.rowCtrl=o}setComp(e){this.eGui=e}onKeyDown(e){let t=e.key;switch(t){case j.ENTER:this.onEnterKeyDown(e);break;case j.F2:this.onF2KeyDown(e);break;case j.ESCAPE:this.onEscapeKeyDown(e);break;case j.TAB:this.onTabKeyDown(e);break;case j.BACKSPACE:case j.DELETE:this.onBackspaceOrDeleteKeyDown(t,e);break;case j.DOWN:case j.UP:case j.RIGHT:case j.LEFT:this.onNavigationKeyDown(e,t);break}}onNavigationKeyDown(e,t){this.cellCtrl.isEditing()||(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(e):this.beans.navigationService.navigateToNextCell(e,t,this.cellCtrl.getCellPosition(),!0),e.preventDefault())}onShiftRangeSelect(e){if(!this.beans.rangeService)return;let t=this.beans.rangeService.extendLatestRangeInDirection(e);t&&this.beans.navigationService.ensureCellVisible(t)}onTabKeyDown(e){this.beans.navigationService.onTabKeyDown(this.cellCtrl,e)}onBackspaceOrDeleteKeyDown(e,t){let{cellCtrl:i,beans:n,rowNode:o}=this,{gos:r,rangeService:a,eventService:s}=n;if(!i.isEditing()){if(s.dispatchEvent({type:"keyShortcutChangedCellStart"}),SF(e,r.get("enableCellEditingOnBackspace"))){if(a&&Un(r))a.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"});else if(i.isCellEditable()){let l=i.getColumn(),c=this.beans.valueService.getDeleteValue(l,o);o.setDataValue(l,c,"cellClear")}}else i.startRowOrCellEdit(e,t);s.dispatchEvent({type:"keyShortcutChangedCellEnd"})}}onEnterKeyDown(e){if(this.cellCtrl.isEditing()||this.rowCtrl.isEditing())this.cellCtrl.stopEditingAndFocus(!1,e.shiftKey);else if(this.beans.gos.get("enterNavigatesVertically")){let t=e.shiftKey?j.UP:j.DOWN;this.beans.navigationService.navigateToNextCell(null,t,this.cellCtrl.getCellPosition(),!1)}else this.cellCtrl.startRowOrCellEdit(j.ENTER,e),this.cellCtrl.isEditing()&&e.preventDefault()}onF2KeyDown(e){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(j.F2,e)}onEscapeKeyDown(e){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))}processCharacter(e){if(e.target!==this.eGui||this.cellCtrl.isEditing())return;let n=e.key;n===" "?this.onSpaceKeyDown(e):this.cellCtrl.startRowOrCellEdit(n,e)&&e.preventDefault()}onSpaceKeyDown(e){let{gos:t}=this.beans;if(!this.cellCtrl.isEditing()&&gu(t)){let i=this.rowNode.isSelected(),n=!i,o=hm(t)==="filteredDescendants",r=this.rowNode.setSelectedParams({newValue:n,rangeSelect:e.shiftKey,groupSelectsFiltered:o,event:e,source:"spaceKey"});i===void 0&&r===0&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:o,event:e,source:"spaceKey"})}e.preventDefault()}destroy(){super.destroy()}},iO=class extends H{constructor(e,t,i){super(),this.cellCtrl=e,this.beans=t,this.column=i}onMouseEvent(e,t){if(!yo(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":case"touchstart":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t);break}}onCellClicked(e){if(this.isDoubleClickOnIPad()){this.onCellDoubleClicked(e),e.preventDefault();return}let{eventService:t,rangeService:i,gos:n}=this.beans,o=e.ctrlKey||e.metaKey;i&&o&&i.getCellRangeCount(this.cellCtrl.getCellPosition())>1&&i.intersectLastRange(!0);let r=this.cellCtrl.createEvent(e,"cellClicked");t.dispatchEvent(r);let a=this.column.getColDef();a.onCellClicked&&window.setTimeout(()=>{this.beans.frameworkOverrides.wrapOutgoing(()=>{a.onCellClicked(r)})},0),(n.get("singleClickEdit")||a.singleClickEdit)&&!n.get("suppressClickEdit")&&!(e.shiftKey&&i?.getCellRanges().length!=0)&&this.cellCtrl.
608startRowOrCellEdit()}isDoubleClickOnIPad(){if(!ar()||I_("dblclick"))return!1;let e=new Date().getTime(),t=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,t}onCellDoubleClicked(e){let{column:t,beans:i,cellCtrl:n}=this,{eventService:o,frameworkOverrides:r,gos:a}=i,s=t.getColDef(),l=n.createEvent(e,"cellDoubleClicked");o.dispatchEvent(l),typeof s.onCellDoubleClicked=="function"&&window.setTimeout(()=>{r.wrapOutgoing(()=>{s.onCellDoubleClicked(l)})},0),!a.get("singleClickEdit")&&!a.get("suppressClickEdit")&&n.startRowOrCellEdit(null,e)}onMouseDown(e){let{ctrlKey:t,metaKey:i,shiftKey:n}=e,o=e.target,{cellCtrl:r,beans:a}=this,{eventService:s,rangeService:l,focusService:c,gos:h}=a;if(this.isRightClickInExistingRange(e))return;let m=l&&l.getCellRanges().length!=0;if(!n||!m){let b=h.get("enableCellTextSelection")&&e.defaultPrevented,_=(So()||b)&&!r.isEditing()&&!Cm(o);r.focusCell(_)}if(n&&m&&!c.isCellFocused(r.getCellPosition())){e.preventDefault();let f=c.getFocusedCell();if(f){let{column:b,rowIndex:_,rowPinned:S}=f,D=a.rowRenderer.getRowByPosition({rowIndex:_,rowPinned:S})?.getCellCtrl(b);D?.isEditing()&&D.stopEditing(),c.setFocusedCell({column:b,rowIndex:_,rowPinned:S,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}}if(!this.containsWidget(o)){if(l){let f=this.cellCtrl.getCellPosition();if(n)l.extendLatestRangeToCell(f);else{let b=t||i;l.setRangeToCell(f,b)}}s.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseDown"))}}isRightClickInExistingRange(e){let{rangeService:t}=this.beans;if(t){let i=t.isCellInAnyRange(this.cellCtrl.getCellPosition()),n=e.button===2||e.ctrlKey&&this.beans.gos.get("allowContextMenuWithControlKey");if(i&&n)return!0}return!1}containsWidget(e){return ts(e,"ag-selection-checkbox",3)}onMouseOut(e){this.mouseStayingInsideCell(e)||(this.beans.eventService.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOut")),this.beans.columnHoverService.clearMouseOver())}onMouseOver(e){this.mouseStayingInsideCell(e)||(this.beans.eventService.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOver")),this.beans.columnHoverService.setMouseOver([this.column]))}mouseStayingInsideCell(e){if(!e.target||!e.relatedTarget)return!1;let t=this.cellCtrl.getGui(),i=t.contains(e.target),n=t.contains(e.relatedTarget);return i&&n}destroy(){super.destroy()}},nO=class extends H{constructor(e,t){super(),this.cellCtrl=e,this.beans=t,this.column=e.getColumn(),this.rowNode=e.getRowNode()}setupRowSpan(){this.rowSpan=this.column.getRowSpan(this.rowNode),this.addManagedListeners(this.beans.eventService,{newColumnsLoaded:()=>this.onNewColumnsLoaded()})}setComp(e){this.eGui=e,this.setupColSpan(),this.setupRowSpan(),this.onLeftChanged(),this.onWidthChanged(),this.applyRowSpan()}onNewColumnsLoaded(){let e=this.column.getRowSpan(this.rowNode);this.rowSpan!==e&&(this.rowSpan=e,this.applyRowSpan(!0))}onDisplayColumnsChanged(){let e=this.getColSpanningList();rr(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())}setupColSpan(){this.column.getColDef().colSpan!=null&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListeners(this.beans.eventService,{displayedColumnsChanged:this.onDisplayColumnsChanged.bind(this),displayedColumnsWidthChanged:this.onWidthChanged.bind(this)}))}onWidthChanged(){if(!this.eGui)return;let e=this.getCellWidth();this.eGui.style.width=`${e}px`}getCellWidth(){return this.colsSpanning?this.colsSpanning.reduce((e,t)=>e+t.getActualWidth(),0):this.column.getActualWidth()}getColSpanningList(){let e=this.column.getColSpan(this.rowNode),t=[];if(e===1)t.push(this.column);else{let i=this.column,n=this.column.getPinned();for(let o=0;i&&o<e&&(t.push(i),i=this.beans.visibleColsService.getColAfter(i),!(!i||Fe(i)||n!==i.getPinned()));o++);}return t}onLeftChanged(){if(!this.eGui)return;let e=this.modifyLeftForPrintLayout(this.getCellLeft());this.eGui.style.left=e+"px"}getCellLeft(){let e;return this.beans.gos.get("enableRtl")&&this.colsSpanning?e=Ae(this.colsSpanning):e=this.column,e.getLeft()}modifyLeftForPrintLayout(e){if(!this.cellCtrl.isPrintLayout()||this.column.getPinned()==="left")return e;let t=this.beans.visibleColsService.getColsLeftWidth();if(this.column.getPinned()==="right"){let i=this.beans.visibleColsService.getBodyContainerWidth();return t+i+(e||0)}return t+(e||0)}applyRowSpan(e){if(this.rowSpan===1&&!e)return;let i=Hr(this.beans.gos)*this.rowSpan;this.eGui.style.height=`${i}px`,this.eGui.style.zIndex="1"}destroy(){super.destroy()}};var Tl="ag-cell-range-selected",oO="ag-cell-range-chart",rO="ag-cell-range-single-cell",aO="ag-cell-range-chart-category",sO="ag-cell-range-handle",lO="ag-cell-range-top",cO="ag-cell-range-right",dO="ag-cell-range-bottom",uO="ag-cell-range-left",pO=class{constructor(e,t){this.beans=e,this.rangeService=e.rangeService,this.selectionHandleFactory=e.selectionHandleFactory,this.cellCtrl=t}setComp(e,t){this.cellComp=e,this.eGui=t,this.onCellSelectionChanged()}onCellSelectionChanged(){this.cellComp&&(this.rangeCount=this.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()),this.hasChartRange=this.getHasChartRange(),this.cellComp.addOrRemoveCssClass(Tl,this.rangeCount!==0),this.cellComp.addOrRemoveCssClass(`${Tl}-1`,this.rangeCount===1),this.cellComp.addOrRemoveCssClass(`${Tl}-2`,this.rangeCount===2),this.cellComp.addOrRemoveCssClass(`${Tl}-3`,this.rangeCount===3),this.cellComp.addOrRemoveCssClass(`${Tl}-4`,this.rangeCount>=4),this.cellComp.addOrRemoveCssClass(oO,this.hasChartRange),_u(this.eGui,this.rangeCount>0?!0:void 0),this.cellComp.addOrRemoveCssClass(rO,this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle())}updateRangeBorders(){let e=this.getRangeBorders(),t=this.isSingleCell(),i=!t&&e.top,n=!t&&e.right,o=!t&&e.bottom,r=!t&&e.left;this.cellComp.addOrRemoveCssClass(lO,i),this.cellComp.addOrRemoveCssClass(cO,n),this.cellComp.addOrRemoveCssClass(dO,o),this.cellComp.addOrRemoveCssClass(uO,r)}isSingleCell(){let{rangeService:e}=this.beans;return this.rangeCount===1&&!!e&&!e.isMoreThanOneCell()}getHasChartRange(){let{rangeService:e}=this.beans;if(!this.rangeCount||!e)return!1;let t=e.getCellRanges();return t.length>0&&t.every(i=>Gr([1,0],i.type))}updateRangeBordersIfRangeCount(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())}getRangeBorders(){let e=this.beans.gos.get("enableRtl"),t=!1,i=!1,n=!1,o=!1,r=this.cellCtrl.getCellPosition().column,a=this.beans.visibleColsService,s,l;e?(s=a.getColAfter(r),l=a.getColBefore(r)):(s=a.getColBefore(r),l=a.getColAfter(r));let c=this.rangeService.getCellRanges().filter(h=>this.rangeService.isCellInSpecificRange(this.cellCtrl.getCellPosition(),h));s||(o=!0),l||(i=!0);for(let h=0;h<c.length&&!(t&&i&&n&&o);h++){let m=c[h],f=this.rangeService.getRangeStartRow(m),b=this.rangeService.getRangeEndRow(m);!t&&this.beans.rowPositionUtils.sameRow(f,this.cellCtrl.getCellPosition())&&(t=!0),!n&&this.beans.rowPositionUtils.sameRow(b,this.cellCtrl.getCellPosition())&&(n=!0),!o&&s&&m.columns.indexOf(s)<0&&(o=!0),!i&&l&&m.columns.indexOf(l)<0&&(i=!0)}return{top:t,right:i,bottom:n,left:o}}
608refreshHandle(){if(this.beans.context.isDestroyed())return;let e=this.shouldHaveSelectionHandle();this.selectionHandle&&!e&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),e&&this.addSelectionHandle(),this.cellComp.addOrRemoveCssClass(sO,!!this.selectionHandle)}shouldHaveSelectionHandle(){let e=this.beans.gos,t=this.rangeService.getCellRanges(),i=t.length;if(this.rangeCount<1||i<1)return!1;let n=Ae(t),o=this.cellCtrl.getCellPosition(),r=Wb(e)&&!this.cellCtrl.isSuppressFillHandle(),a=XP(e),s=i===1&&!this.cellCtrl.isEditing()&&(r||a);if(this.hasChartRange){let c=t[0].type===1&&this.rangeService.isCellInSpecificRange(o,t[0]);this.cellComp.addOrRemoveCssClass(aO,c),s=n.type===0}return s&&n.endRow!=null&&this.rangeService.isContiguousRange(n)&&this.rangeService.isBottomRightCell(n,o)}addSelectionHandle(){let e=Ae(this.rangeService.getCellRanges()).type,i=Wb(this.beans.gos)&&Fe(e)?0:1;this.selectionHandle&&this.selectionHandle.getType()!==i&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),this.selectionHandle||(this.selectionHandle=this.selectionHandleFactory.createSelectionHandle(i)),this.selectionHandle.refresh(this.cellCtrl)}destroy(){this.beans.context.destroyBean(this.selectionHandle)}},hO="ag-cell",gO="ag-cell-auto-height",mO="ag-cell-normal-height",fO="ag-cell-focus",vO="ag-cell-first-right-pinned",CO="ag-cell-last-left-pinned",bO="ag-cell-not-inline-editing",_O="ag-column-hover",yO="ag-cell-wrap-text",wO=0,xO=(()=>{let e=class sm extends H{constructor(i,n,o,r){super(),this.column=i,this.rowNode=n,this.beans=o,this.rowCtrl=r,this.cellRangeFeature=void 0,this.cellPositionFeature=void 0,this.cellCustomStyleFeature=void 0,this.tooltipFeature=void 0,this.cellMouseListenerFeature=void 0,this.cellKeyboardListenerFeature=void 0,this.suppressRefreshCell=!1,this.onCellCompAttachedFuncs=[],this.onCellEditorAttachedFuncs=[],this.instanceId=i.getId()+"-"+wO++,this.colIdSanitised=Gn(this.column.getId()),this.createCellPosition(),this.updateAndFormatValue(!1)}shouldRestoreFocus(){return this.beans.focusService.shouldRestoreFocus(this.cellPosition)}onFocusOut(){this.beans.focusService.clearRestoreFocus()}addFeatures(){this.cellPositionFeature=new nO(this,this.beans),this.cellCustomStyleFeature=new eO(this,this.beans),this.cellMouseListenerFeature=new iO(this,this.beans,this.column),this.cellKeyboardListenerFeature=new tO(this,this.beans,this.column,this.rowNode,this.rowCtrl),this.column.isTooltipEnabled()&&this.enableTooltipFeature(),this.beans.rangeService&&Un(this.beans.gos)&&(this.cellRangeFeature=new pO(this.beans,this))}removeFeatures(){let i=this.beans.context;this.cellPositionFeature=i.destroyBean(this.cellPositionFeature),this.cellCustomStyleFeature=i.destroyBean(this.cellCustomStyleFeature),this.cellMouseListenerFeature=i.destroyBean(this.cellMouseListenerFeature),this.cellKeyboardListenerFeature=i.destroyBean(this.cellKeyboardListenerFeature),this.cellRangeFeature=i.destroyBean(this.cellRangeFeature),this.disableTooltipFeature()}enableTooltipFeature(i,n){let o=()=>{let s=this.column.getColDef(),l=this.rowNode.data;if(s.tooltipField&&K(l))return Fl(l,s.tooltipField,this.column.isTooltipFieldContainsDots());let c=s.tooltipValueGetter;return c?c(this.beans.gos.addGridCommonParams({location:"cell",colDef:this.column.getColDef(),column:this.column,rowIndex:this.cellPosition.rowIndex,node:this.rowNode,data:this.rowNode.data,value:this.value,valueFormatted:this.valueFormatted})):null},r=this.beans.gos.get("tooltipShowMode")==="whenTruncated";!n&&r&&!this.isCellRenderer()&&(n=()=>{let s=this.getGui(),l=s.children.length===0?s:s.querySelector(".ag-cell-value");return l?l.scrollWidth>l.clientWidth:!0});let a={getColumn:()=>this.column,getColDef:()=>this.column.getColDef(),getRowIndex:()=>this.cellPosition.rowIndex,getRowNode:()=>this.rowNode,getGui:()=>this.getGui(),getLocation:()=>"cell",getTooltipValue:i!=null?()=>i:o,getValueFormatted:()=>this.valueFormatted,shouldDisplayTooltip:n};this.tooltipFeature=new us(a,this.beans)}disableTooltipFeature(){this.tooltipFeature=this.beans.context.destroyBean(this.tooltipFeature)}setComp(i,n,o,r,a,s){this.cellComp=i,this.eGui=n,this.printLayout=r,s??(s=this),this.addDomData(s),this.addFeatures(),s.addDestroyFunc(()=>this.removeFeatures()),this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.onCellFocused(this.focusEventToRestore),this.applyStaticCssClasse
608s(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),this.setupAutoHeight(o,s),this.refreshFirstAndLastStyles(),this.refreshAriaColIndex(),this.cellPositionFeature?.setComp(n),this.cellCustomStyleFeature?.setComp(i),this.tooltipFeature?.refreshToolTip(),this.cellKeyboardListenerFeature?.setComp(this.eGui),this.cellRangeFeature&&this.cellRangeFeature.setComp(i,n),a&&this.isCellEditable()?this.startEditing():this.showValue(),this.onCellCompAttachedFuncs.length&&(this.onCellCompAttachedFuncs.forEach(l=>l()),this.onCellCompAttachedFuncs=[])}setupAutoHeight(i,n){if(this.isAutoHeight=this.column.isAutoHeight(),!this.isAutoHeight||!i)return;let o=i.parentElement,r=nr(this.beans.gos,this.rowNode).height,a=c=>{if(this.editing||!this.isAlive()||!n.isAlive())return;let{paddingTop:h,paddingBottom:m,borderBottomWidth:f,borderTopWidth:b}=Yr(o),_=h+m+f+b,M=i.offsetHeight+_;if(c<5){let I=dt(this.beans.gos),F=!I||!I.contains(i),W=M==0;if(F||W){window.setTimeout(()=>a(c+1),0);return}}let D=Math.max(M,r);this.rowNode.setRowAutoHeight(D,this.column)},s=()=>a(0);s();let l=this.beans.resizeObserverService.observeResize(i,s);n.addDestroyFunc(()=>{l(),this.rowNode.setRowAutoHeight(void 0,this.column)})}getCellAriaRole(){return this.column.getColDef().cellAriaRole??"gridcell"}isCellRenderer(){let i=this.column.getColDef();return i.cellRenderer!=null||i.cellRendererSelector!=null}getValueToDisplay(){return this.valueFormatted??this.value}showValue(i=!1){let{beans:n,column:o,rowNode:r,cellRangeFeature:a,cellComp:s}=this,{userComponentFactory:l,animationFrameService:c}=n,h=this.getValueToDisplay(),m;if(r.stub&&r.groupData?.[this.column.getId()]==null){let b=this.createCellRendererParams();m=l.getLoadingCellRendererDetails(o.getColDef(),b)}else if(this.isCellRenderer()){let b=this.createCellRendererParams();m=l.getCellRendererDetails(o.getColDef(),b)}s.setRenderDetails(m,h,i),c.requestAnimationFrame(()=>a?.refreshHandle())}setupControlComps(){let i=this.column.getColDef();this.includeSelection=this.isIncludeControl(this.isCheckboxSelection(i)),this.includeRowDrag=this.isIncludeControl(i.rowDrag),this.includeDndSource=this.isIncludeControl(i.dndSource),this.cellComp.setIncludeSelection(this.includeSelection),this.cellComp.setIncludeDndSource(this.includeDndSource),this.cellComp.setIncludeRowDrag(this.includeRowDrag)}isForceWrapper(){return this.beans.gos.get("enableCellTextSelection")||this.column.isAutoHeight()}isIncludeControl(i){return this.rowNode.rowPinned!=null?!1:typeof i=="function"||i===!0}isCheckboxSelection(i){let{rowSelection:n}=this.beans.gridOptions;return i.checkboxSelection||as(this.column)&&n&&typeof n!="string"&&ns(n)}refreshShouldDestroy(){let i=this.column.getColDef(),n=this.includeSelection!=this.isIncludeControl(this.isCheckboxSelection(i)),o=this.includeRowDrag!=this.isIncludeControl(i.rowDrag),r=this.includeDndSource!=this.isIncludeControl(i.dndSource),a=this.isAutoHeight!=this.column.isAutoHeight();return n||o||r||a}startEditing(i=null,n=!1,o=null){let{editService:r}=this.beans;return!this.isCellEditable()||this.editing||!r?!0:this.cellComp?r.startEditing(this,i,n,o):(this.onCellCompAttachedFuncs.push(()=>{this.startEditing(i,n,o)}),!0)}setEditing(i,n){this.editCompDetails=n,this.editing!==i&&(this.editing=i)}stopRowOrCellEdit(i=!1){this.beans.gos.get("editType")==="fullRow"?this.rowCtrl.stopEditing(i):this.stopEditing(i)}onPopupEditorClosed(){this.editing&&this.stopEditingAndFocus()}stopEditing(i=!1){this.onCellEditorAttachedFuncs=[];let{editService:n}=this.beans;return!this.editing||!n?!1:n.stopEditing(this,i)}createCellRendererParams(){return this.beans.gos.addGridCommonParams({value:this.value,valueFormatted:this.valueFormatted,getValue:()=>this.beans.valueService.getValueForDisplay(this.column,this.rowNode),setValue:n=>this.beans.valueService.setValue(this.rowNode,this.column,n),formatValue:this.formatValue.bind(this),data:this.rowNode.data,node:this.rowNode,pinned:this.column.getPinned(),colDef:this.column.getColDef(),column:this.column,refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.cellComp.getParentOfValue(),registerRowDragger:(n,o,r,a)=>this.registerRowDragger(n,o,a),setTooltip:(n,o)=>{this.tooltipFeature&&this.disableTooltipFeature(),this.enableTooltipFeature(n,o),this.tooltipFeature?.refreshToolTip()}})}setFocusOutOnEditor(){this.editing&&this.beans.editService?.setFocusOutOnEditor(this)}setFocusInOnEditor(){this.editing&&this.beans.editService?.setFocusInOnEditor(this)}onCellChanged(i){i.column===this.column&&this.refreshCell({})}refreshOrDestroyCell(i){this.refreshShouldDestroy()?this.rowCtrl?.recreateCell(this):this.refreshCell(i)}refreshCell(i){if(this.suppressRefreshCell||this.editing)return;let n=this.column.getColDef(),o=i!=null&&!!i.newData,r=i!=null&&!!i.suppressFlash||!!n.suppressCellFlash,a=n.field==null&&n.valueGetter==null&&n.showRowGroup==null,s=i&&i.forceRefresh||a||o,l=!!this.cellComp,c=this.updateAndFormatValue(l),h=s||c;if(l){if(h){this.showValue(o);let m=this.beans.filterManager?.isSuppressFlashingCellsBecauseFiltering();!r&&!m&&(this.beans.gos.get("enableCellChangeFlash")||n.enableCellChangeFlash)&&this.flashCell(),this.cellCustomStyleFeature?.applyUserStyles(),this.cellCustomStyleFeature?.applyClassesFromColDef()}this.tooltipFeature?.refreshToolTip(),this.cellCustomStyleFeature?.applyCellClassRules()}}stopEditingAndFocus(i=!1,n=!1){this.beans.editService?.stopEditingAndFocus(this,i,n)}flashCell(i){let n=i?.flashDuration??i?.flashDelay,o=i?.fadeDuration??i?.fadeDelay;this.animateCell("data-changed",n,o)}animateCell(i,n,o){if(!this.cellComp)return;let{gos:r}=this.beans;if(n||(n=r.get("cellFlashDuration")),n===0)return;K(o)||(o=r.get("cellFadeDuration"));let a=`ag-cell-${i}`,s=`ag-cell-${i}-animation`;this.cellComp.addOrRemoveCssClass(a,!0),this.cellComp.addOrRemoveCssClass(s,!1),this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{this.isAlive()&&(this.cellComp.addOrRemoveCssClass(a,!1),this.cellComp.addOrRemoveCssClass(s,!0),this.eGui.style.transition=`background-color ${o}ms`,window.setTimeout(()=>{this.isAlive()&&(this.cellComp.addOrRemoveCssClass(s,!1),this.eGui.style.transition="")},o))},n)})}onFlashCells(i){if(!this.cellComp)return;let n=this.beans.cellPositionUtils.createId(this.getCellPosition());i.cells[n]&&this.animateCell("highlight")}isCellEditable(){return this.column.isCellEditable(this.rowNode)}isSuppressFillHandle(){return this.column.isSuppressFillHandle()}formatValue(i){return this.callValueFormatter(i)??i}callValueFormatter(i){return this.beans.valueService.formatValue(this.column,this.rowNode,i)}updateAndFormatValue(i){let n=this.value,o=this.valueFormatted;return this.value=this.beans.valueService.getValueForDisplay(this.column,this.rowNode),this.valueFormatted=this.callValueFormatter(this.value),i?!this.valuesAreEqual(n,this.value)||this.valueFormatted!=o:!0}valuesAreEqual(i,n){let o=this.column.getColDef();return o.equals?o.equals(i,n):i===n}getComp(){return this.cellComp}getValue(){return this.value}addDomData(i){let n=this.getGui();Wr(this.beans.gos,n,sm.DOM_DATA_KEY_CELL_CTRL,this),i.addDestroyFunc(()=>Wr(this.beans.gos,n,sm.DOM_DATA_KEY_CELL_CTRL,null))}createEvent(i,n){return this.beans.gos.addGridCommonParams({type:n,node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.column.getColDef(),rowPinned:this.rowNode.rowPinned,event:i,rowIndex:this.rowNode.rowIndex})}processCharacter(i){this.cellKeyboardListenerFeature?.processCharacter(i)}onKeyDown(i){this.cellKeyboardListenerFeature?.onKeyDown(i)}onMouseEvent(i,n){this.cellMouseListenerFeature?.onMouseEvent(i,n)}getGui(){return this.eGui}
608getColSpanningList(){return this.cellPositionFeature.getColSpanningList()}onLeftChanged(){this.cellComp&&this.cellPositionFeature?.onLeftChanged()}onDisplayedColumnsChanged(){this.eGui&&(this.refreshAriaColIndex(),this.refreshFirstAndLastStyles())}refreshFirstAndLastStyles(){let{cellComp:i,column:n,beans:o}=this;Dy(i,n,o.visibleColsService)}refreshAriaColIndex(){let i=this.beans.visibleColsService.getAriaColIndex(this.column);j_(this.getGui(),i)}isSuppressNavigable(){return this.column.isSuppressNavigable(this.rowNode)}onWidthChanged(){return this.cellPositionFeature?.onWidthChanged()}getColumn(){return this.column}getRowNode(){return this.rowNode}isPrintLayout(){return this.printLayout}getCellPosition(){return this.cellPosition}isEditing(){return this.editing}startRowOrCellEdit(i,n=null){return this.cellComp?this.beans.gos.get("editType")==="fullRow"?this.rowCtrl.startRowEditing(i,this):this.startEditing(i,!0,n):(this.onCellCompAttachedFuncs.push(()=>{this.startRowOrCellEdit(i,n)}),!0)}getRowCtrl(){return this.rowCtrl}getRowPosition(){return{rowIndex:this.cellPosition.rowIndex,rowPinned:this.cellPosition.rowPinned}}updateRangeBordersIfRangeCount(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.updateRangeBordersIfRangeCount()}onCellSelectionChanged(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.onCellSelectionChanged()}isRangeSelectionEnabled(){return this.cellRangeFeature!=null}focusCell(i=!1){this.beans.focusService.setFocusedCell({rowIndex:this.getCellPosition().rowIndex,column:this.column,rowPinned:this.rowNode.rowPinned,forceBrowserFocus:i})}onRowIndexChanged(){this.createCellPosition(),this.onCellFocused(),this.cellRangeFeature&&this.cellRangeFeature.onCellSelectionChanged()}onSuppressCellFocusChanged(i){this.eGui&&un(this.eGui,"tabindex",i?void 0:-1)}onFirstRightPinnedChanged(){if(!this.cellComp)return;let i=this.column.isFirstRightPinned();this.cellComp.addOrRemoveCssClass(vO,i)}onLastLeftPinnedChanged(){if(!this.cellComp)return;let i=this.column.isLastLeftPinned();this.cellComp.addOrRemoveCssClass(CO,i)}onCellFocused(i){if(this.beans.focusService.isCellFocusSuppressed())return;let n=this.beans.focusService.isCellFocused(this.cellPosition);if(!this.cellComp){n&&i?.forceBrowserFocus&&(this.focusEventToRestore=i);return}if(this.focusEventToRestore=void 0,this.cellComp.addOrRemoveCssClass(fO,n),n&&i&&i.forceBrowserFocus){let r=this.cellComp.getFocusableElement();if(this.editing){let a=this.beans.focusService.findFocusableElements(r,null,!0);a.length&&(r=a[0])}r.focus({preventScroll:!!i.preventScrollOnBrowserFocus})}let o=this.beans.gos.get("editType")==="fullRow";!n&&!o&&this.editing&&this.stopRowOrCellEdit(),n&&this.rowCtrl.announceDescription()}createCellPosition(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:_o(this.rowNode.rowPinned),column:this.column}}applyStaticCssClasses(){this.cellComp.addOrRemoveCssClass(hO,!0),this.cellComp.addOrRemoveCssClass(bO,!0);let i=this.column.isAutoHeight()==!0;this.cellComp.addOrRemoveCssClass(gO,i),this.cellComp.addOrRemoveCssClass(mO,!i)}onColumnHover(){if(!this.cellComp||!this.beans.gos.get("columnHoverHighlight"))return;let i=this.beans.columnHoverService.isHovered(this.column);this.cellComp.addOrRemoveCssClass(_O,i)}onColDefChanged(){if(!this.cellComp)return;this.column.isTooltipEnabled()?(this.disableTooltipFeature(),this.enableTooltipFeature()):this.disableTooltipFeature(),this.setWrapText(),this.editing?this.beans.editService?.handleColDefChanged(this):this.refreshOrDestroyCell({forceRefresh:!0,suppressFlash:!0})}setWrapText(){let i=this.column.getColDef().wrapText==!0;this.cellComp.addOrRemoveCssClass(yO,i)}dispatchCellContextMenuEvent(i){let n=this.column.getColDef(),o=this.createEvent(i,"cellContextMenu");this.beans.eventService.dispatchEvent(o),n.onCellContextMenu&&window.setTimeout(()=>{this.beans.frameworkOverrides.wrapOutgoing(()=>{n.onCellContextMenu(o)})},0)}getCellRenderer(){return this.cellComp?this.cellComp.getCellRenderer():null}getCellEditor(){return this.cellComp?this.cellComp.getCellEditor():null}destroy(){this.onCellCompAttachedFuncs=[],this.onCellEditorAttachedFuncs=[],super.destroy()}createSelectionCheckbox(){let i=new Z4;return this.beans.context.createBean(i),i.init({rowNode:this.rowNode,column:this.column}),i}createDndSource(){let i=new X4(this.rowNode,this.column,this.eGui);return this.beans.context.createBean(i),i}registerRowDragger(i,n,o){if(this.customRowDragComp){this.customRowDragComp.setDragElement(i,n);return}let r=this.createRowDragComp(i,n,o);r&&(this.customRowDragComp=r,this.addDestroyFunc(()=>{this.beans.context.destroyBean(r),this.customRowDragComp=null}))}createRowDragComp(i,n,o){let r=this.beans.gos.get("pagination"),a=this.beans.gos.get("rowDragManaged"),s=at(this.beans.gos);if(a){if(!s){$("managed row dragging is only allowed in the Client Side Row Model");return}if(r){$("managed row dragging is not possible when doing pagination");return}}let l=new im(()=>this.value,this.rowNode,this.column,i,n,o);return this.beans.context.createBean(l),l}setSuppressRefreshCell(i){this.suppressRefreshCell=i}
608getEditCompDetails(){return this.editCompDetails}onCellEditorAttached(i){this.onCellEditorAttachedFuncs.push(i)}cellEditorAttached(){this.onCellEditorAttachedFuncs.forEach(i=>i()),this.onCellEditorAttachedFuncs=[]}};return e.DOM_DATA_KEY_CELL_CTRL="cellCtrl",e})(),Ur=xO,SO=0,kO=(()=>{let e=class lm extends H{constructor(i,n,o,r,a){super(),this.allRowGuis=[],this.active=!0,this.centerCellCtrls={list:[],map:{}},this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}},this.slideInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.fadeInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.rowDragComps=[],this.lastMouseDownOnDragger=!1,this.emptyStyle={},this.updateColumnListsPending=!1,this.rowId=null,this.businessKeySanitised=null,this.beans=n,this.gos=n.gos,this.rowNode=i,this.paginationPage=n.paginationService?.getCurrentPage()??0,this.useAnimationFrameForCreate=r,this.printLayout=a,this.suppressRowTransform=this.gos.get("suppressRowTransform"),this.instanceId=i.id+"-"+SO++,this.rowId=Gn(i.id),this.initRowBusinessKey(),this.rowFocused=n.focusService.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.rowLevel=n.rowCssClassCalculator.calculateRowLevel(this.rowNode),this.setRowType(),this.setAnimateFlags(o),this.rowStyles=this.processStylesFromGridOptions(),this.addListeners()}initRowBusinessKey(){this.businessKeyForNodeFunc=this.gos.get("getBusinessKeyForNode"),this.updateRowBusinessKey()}updateRowBusinessKey(){if(typeof this.businessKeyForNodeFunc!="function")return;let i=this.businessKeyForNodeFunc(this.rowNode);this.businessKeySanitised=Gn(i)}getRowId(){return this.rowId}getRowStyles(){return this.rowStyles}isSticky(){return this.rowNode.sticky}updateGui(i,n){i==="left"?this.leftGui=n:i==="right"?this.rightGui=n:i==="fullWidth"?this.fullWidthGui=n:this.centerGui=n}setComp(i,n,o,r){r=$l(this,this.beans.context,r);let a={rowComp:i,element:n,containerType:o,compBean:r};this.allRowGuis.push(a),this.updateGui(o,a),this.initialiseRowComp(a),this.rowType!=="FullWidthLoading"&&!this.rowNode.rowPinned&&this.beans.rowRenderer.dispatchFirstDataRenderedEvent()}unsetComp(i){this.allRowGuis=this.allRowGuis.filter(n=>n.containerType!==i),this.updateGui(i,void 0)}isCacheable(){return this.rowType==="FullWidthDetail"&&this.gos.get("keepDetailRows")}setCached(i){let n=i?"none":"";this.allRowGuis.forEach(o=>o.element.style.display=n)}initialiseRowComp(i){let n=this.gos;this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.listenOnDomOrder(i),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights(),this.onRowHeightChanged(i),this.updateRowIndexes(i),this.setFocusedClasses(i),this.setStylesFromGridOptions(!1,i),gu(n)&&this.rowNode.selectable&&this.onRowSelected(i),this.updateColumnLists(!this.useAnimationFrameForCreate);let o=i.rowComp;this.getInitialRowClasses(i.containerType).forEach(a=>o.addOrRemoveCssClass(a,!0)),this.executeSlideAndFadeAnimations(i),this.rowNode.group&&bu(i.element,this.rowNode.expanded==!0),this.setRowCompRowId(o),this.setRowCompRowBusinessKey(o),Wr(n,i.element,lm.DOM_DATA_KEY_ROW_CTRL,this),i.compBean.addDestroyFunc(()=>Wr(n,i.element,lm.DOM_DATA_KEY_ROW_CTRL,null)),this.useAnimationFrameForCreate?this.beans.animationFrameService.createTask(this.addHoverFunctionality.bind(this,i),this.rowNode.rowIndex,"createTasksP2"):this.addHoverFunctionality(i),this.isFullWidth()&&this.setupFullWidth(i),n.get("rowDragEntireRow")&&this.addRowDraggerToRow(i),this.useAnimationFrameForCreate&&this.beans.animationFrameService.addDestroyTask(()=>{this.isAlive()&&i.rowComp.addOrRemoveCssClass("ag-after-created",!0)}),this.executeProcessRowPostCreateFunc()}setRowCompRowBusinessKey(i){this.businessKeySanitised!=null&&i.setRowBusinessKey(this.businessKeySanitised)}getBusinessKey(){return this.businessKeySanitised}setRowCompRowId(i){this.rowId=Gn(this.rowNode.id),this.rowId!=null&&i.setRowId(this.rowId)}executeSlideAndFadeAnimations(i){let{containerType:n}=i;this.slideInAnimation[n]&&(Ub(()=>{this.onTopChanged()}),this.slideInAnimation[n]=!1),this.fadeInAnimation[n]&&(Ub(()=>{i.rowComp.addOrRemoveCssClass("ag-opacity-zero",!1)}),this.fadeInAnimation[n]=!1)}addRowDraggerToRow(i){if(Un(this.gos)){$("Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `cellSelection: true`");return}let n=this.beans.localeService.getLocaleTextFunc(),o=new im(()=>`1 ${n("rowDragRow","row")}`,this.rowNode,void 0,i.element,void 0,!0),r=this.createBean(o,this.beans.context);this.rowDragComps.push(r),i.compBean.addDestroyFunc(()=>{this.rowDragComps=this.rowDragComps.filter(a=>a!==r),this.destroyBean(r,this.beans.context)})}setupFullWidth(i){let n=this.getPinnedForContainer(i.containerType);if(this.rowType=="FullWidthDetail"&&!this.gos.assertModuleRegistered("@ag-grid-enterprise/master-detail","cell renderer 'agDetailCellRenderer' (for master detail)"))return;
608let o=this.createFullWidthCompDetails(i.element,n);i.rowComp.showFullWidth(o)}isPrintLayout(){return this.printLayout}getFullWidthCellRenderers(){return this.gos.get("embedFullWidthRows")?this.allRowGuis.map(i=>i?.rowComp?.getFullWidthCellRenderer()):[this.fullWidthGui?.rowComp?.getFullWidthCellRenderer()]}getCellElement(i){let n=this.getCellCtrl(i);return n?n.getGui():null}executeProcessRowPostCreateFunc(){let i=this.gos.getCallback("processRowPostCreate");if(!i||!this.areAllContainersReady())return;let n={eRow:this.centerGui.element,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)};i(n)}areAllContainersReady(){let i=!!this.leftGui||!this.beans.visibleColsService.isPinningLeft(),n=!!this.centerGui,o=!!this.rightGui||!this.beans.visibleColsService.isPinningRight();return i&&n&&o}isNodeFullWidthCell(){if(this.rowNode.detail)return!0;let i=this.beans.gos.getCallback("isFullWidthRow");return i?i({rowNode:this.rowNode}):!1}setRowType(){let i=this.rowNode.stub&&!this.gos.get("suppressServerSideFullWidthLoadingRow")&&!this.gos.get("groupHideOpenParents"),n=this.isNodeFullWidthCell(),o=this.gos.get("masterDetail")&&this.rowNode.detail,r=this.beans.columnModel.isPivotMode(),s=!!this.rowNode.group&&!this.rowNode.footer&&Tu(this.gos,r);i?this.rowType="FullWidthLoading":o?this.rowType="FullWidthDetail":n?this.rowType="FullWidth":s?this.rowType="FullWidthGroup":this.rowType="Normal"}updateColumnLists(i=!1,n=!1){if(this.isFullWidth())return;if(i||this.gos.get("suppressAnimationFrame")||this.printLayout){this.updateColumnListsImpl(n);return}this.updateColumnListsPending||(this.beans.animationFrameService.createTask(()=>{this.active&&this.updateColumnListsImpl(!0)},this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0)}createCellCtrls(i,n,o=null){let r={list:[],map:{}},a=(l,c,h)=>{h!=null?r.list.splice(h,0,c):r.list.push(c),r.map[l]=c},s=[];for(let l of n){let c=l.getInstanceId(),h=i.map[c];h||(h=new Ur(l,this.rowNode,this.beans,this)),a(c,h)}for(let l of i.list){let c=l.getColumn().getInstanceId();if(r.map[c]!=null)continue;!this.isCellEligibleToBeRemoved(l,o)?s.push([c,l]):l.destroy()}if(s.length)for(let[l,c]of s){let h=r.list.findIndex(f=>f.getColumn().getLeft()>c.getColumn().getLeft()),m=h===-1?void 0:Math.max(h-1,0);a(l,c,m)}return r}updateColumnListsImpl(i){this.updateColumnListsPending=!1,this.createAllCellCtrls(),this.setCellCtrls(i)}setCellCtrls(i){this.allRowGuis.forEach(n=>{let o=this.getCellCtrlsForContainer(n.containerType);n.rowComp.setCellCtrls(o,i)})}getCellCtrlsForContainer(i){switch(i){case"left":return this.leftCellCtrls.list;case"right":return this.rightCellCtrls.list;case"fullWidth":return[];case"center":return this.centerCellCtrls.list}}createAllCellCtrls(){let i=this.beans.columnViewportService,n=this.beans.visibleColsService;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,n.getAllCols()),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{let o=i.getColsWithinViewport(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,o);let r=n.getLeftColsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,r,"left");let a=n.getRightColsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,a,"right")}}isCellEligibleToBeRemoved(i,n){if(i.getColumn().getPinned()!=n)return!0;let s=i.isEditing(),l=this.beans.focusService.isCellFocused(i.getCellPosition());if(s||l){let h=i.getColumn();return!(this.beans.visibleColsService.getAllCols().indexOf(h)>=0)}return!0}getDomOrder(){return this.gos.get("ensureDomOrder")||Bt(this.gos,"print")}listenOnDomOrder(i){let n=()=>{i.rowComp.setDomOrder(this.getDomOrder())};i.compBean.addManagedPropertyListeners(["domLayout","ensureDomOrder"],n)}setAnimateFlags(i){if(this.isSticky()||!i)return;let n=K(this.rowNode.oldRowTop),o=this.beans.visibleColsService.isPinningLeft(),r=this.beans.visibleColsService.isPinningRight();if(n){if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows")){this.slideInAnimation.fullWidth=!0;return}
vendor: 8,534 bytes, line 608
608this.slideInAnimation.center=!0,this.slideInAnimation.left=o,this.slideInAnimation.right=r}else{if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows")){this.fadeInAnimation.fullWidth=!0;return}this.fadeInAnimation.center=!0,this.fadeInAnimation.left=o,this.fadeInAnimation.right=r}}isEditing(){return this.editingRow}isFullWidth(){return this.rowType!=="Normal"}refreshFullWidth(){let i=(l,c)=>l?l.rowComp.refreshFullWidth(()=>this.createFullWidthCompDetails(l.element,c).params):!0,n=i(this.fullWidthGui,null),o=i(this.centerGui,null),r=i(this.leftGui,"left"),a=i(this.rightGui,"right");return n&&o&&r&&a}addListeners(){this.addManagedListeners(this.rowNode,{heightChanged:()=>this.onRowHeightChanged(),rowSelected:()=>this.onRowSelected(),rowIndexChanged:this.onRowIndexChanged.bind(this),topChanged:this.onTopChanged.bind(this),expandedChanged:this.updateExpandedCss.bind(this),hasChildrenChanged:this.updateExpandedCss.bind(this)}),this.rowNode.detail&&this.addManagedListeners(this.rowNode.parent,{dataChanged:this.onRowNodeDataChanged.bind(this)}),this.addManagedListeners(this.rowNode,{dataChanged:this.onRowNodeDataChanged.bind(this),cellChanged:this.postProcessCss.bind(this),rowHighlightChanged:this.onRowNodeHighlightChanged.bind(this),draggingChanged:this.postProcessRowDragging.bind(this),uiLevelChanged:this.onUiLevelChanged.bind(this)}),this.addManagedListeners(this.beans.eventService,{paginationPixelOffsetChanged:this.onPaginationPixelOffsetChanged.bind(this),heightScaleChanged:this.onTopChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),virtualColumnsChanged:this.onVirtualColumnsChanged.bind(this),cellFocused:this.onCellFocusChanged.bind(this),cellFocusCleared:this.onCellFocusChanged.bind(this),paginationChanged:this.onPaginationChanged.bind(this),modelUpdated:this.refreshFirstAndLastRowStyles.bind(this),columnMoved:()=>this.updateColumnLists()}),this.addDestroyFunc(()=>{this.rowDragComps=this.destroyBeans(this.rowDragComps,this.beans.context),this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature,this.beans.context))}),this.addManagedPropertyListeners(["rowStyle","getRowStyle","rowClass","getRowClass","rowClassRules"],this.postProcessCss.bind(this)),this.addManagedPropertyListener("rowDragEntireRow",()=>{if(this.gos.get("rowDragEntireRow")){this.allRowGuis.forEach(n=>{this.addRowDraggerToRow(n)});return}this.rowDragComps=this.destroyBeans(this.rowDragComps,this.beans.context)}),this.addListenersForCellComps()}addListenersForCellComps(){this.addManagedListeners(this.rowNode,{rowIndexChanged:()=>{this.getAllCellCtrls().forEach(i=>i.onRowIndexChanged())},cellChanged:i=>{this.getAllCellCtrls().forEach(n=>n.onCellChanged(i))}})}onRowNodeDataChanged(i){if(this.isFullWidth()!==!!this.isNodeFullWidthCell()){this.beans.rowRenderer.redrawRow(this.rowNode);return}if(this.isFullWidth()){this.refreshFullWidth()||this.beans.rowRenderer.redrawRow(this.rowNode);return}this.getAllCellCtrls().forEach(o=>o.refreshCell({suppressFlash:!i.update,newData:!i.update})),this.allRowGuis.forEach(o=>{this.setRowCompRowId(o.rowComp),this.updateRowBusinessKey(),this.setRowCompRowBusinessKey(o.rowComp)}),this.onRowSelected(),this.postProcessCss()}postProcessCss(){this.setStylesFromGridOptions(!0),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()}onRowNodeHighlightChanged(){let i=this.rowNode.highlighted;this.allRowGuis.forEach(n=>{let o=i===0,r=i===1;n.rowComp.addOrRemoveCssClass("ag-row-highlight-above",o),n.rowComp.addOrRemoveCssClass("ag-row-highlight-below",r)})}postProcessRowDragging(){let i=this.rowNode.dragging;this.allRowGuis.forEach(n=>n.rowComp.addOrRemoveCssClass("ag-row-dragging",i))}updateExpandedCss(){let i=this.rowNode.isExpandable(),n=this.rowNode.expanded==!0;this.allRowGuis.forEach(o=>{o.rowComp.addOrRemoveCssClass("ag-row-group",i),o.rowComp.addOrRemoveCssClass("ag-row-group-expanded",i&&n),o.rowComp.addOrRemoveCssClass("ag-row-group-contracted",i&&!n),bu(o.element,i&&n)})}onDisplayedColumnsChanged(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()}onVirtualColumnsChanged(){this.updateColumnLists(!1,!0)}getRowPosition(){return{rowPinned:_o(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}}findFullWidthRowGui(i){return this.allRowGuis.find(n=>n.element.contains(i))}onKeyboardNavigate(i){let n=this.findFullWidthRowGui(i.target);if(!((n?n.element:null)===i.target))return;let a=this.rowNode,s=this.beans.focusService.getFocusedCell(),l={rowIndex:a.rowIndex,rowPinned:a.rowPinned,column:s?.column??this.getColumnForFullWidth(n)};this.beans.navigationService.navigateToNextCell(i,i.key,l,!0),i.preventDefault()}onTabKeyDown(i){if(i.defaultPrevented||yo(i))return;let n=this.allRowGuis.find(c=>c.element.contains(i.target)),o=n?n.element:null,r=o===i.target,a=nt(this.gos),s=!1;o&&a&&(s=o.contains(a)&&a.classList.contains("ag-cell"));let l=null;!r&&!s&&(l=this.beans.focusService.findNextFocusableElement(o,!1,i.shiftKey)),(this.isFullWidth()&&r||!l)&&this.beans.navigationService.onTabKeyDown(this,i)}getFullWidthElement(){return this.fullWidthGui?this.fullWidthGui.element:null}getRowYPosition(){let i=this.allRowGuis.find(n=>Mn(n.element))?.element;return i?i.getBoundingClientRect().top:0}onSuppressCellFocusChanged(i){let n=this.isFullWidth()&&i?void 0:-1;this.allRowGuis.forEach(o=>{un(o.element,"tabindex",n)})}onFullWidthRowFocused(i){let n=this.rowNode,o=i?this.isFullWidth()&&i.rowIndex===n.rowIndex&&i.rowPinned==n.rowPinned:!1,r=this.fullWidthGui?this.fullWidthGui.element:this.centerGui?.element;r&&(r.classList.toggle("ag-full-width-focus",o),o&&i?.forceBrowserFocus&&r.focus({preventScroll:!0}))}recreateCell(i){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,i),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,i),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,i),i.destroy(),this.updateColumnLists()}removeCellCtrl(i,n){let o={list:[],map:{}};return i.list.forEach(r=>{r!==n&&(o.list.push(r),o.map[r.getColumn().getInstanceId()]=r)}),o}onMouseEvent(i,n){switch(i){case"dblclick":this.onRowDblClick(n);break;case"click":this.onRowClick(n);break;case"touchstart":case"mousedown":this.onRowMouseDown(n);break}}createRowEvent(i,n){return this.gos.addGridCommonParams({type:i,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,event:n})}createRowEventWithSource(i,n){let o=this.createRowEvent(i,n);return o.source=this,o}onRowDblClick(i){yo(i)||this.beans.eventService.dispatchEvent(this.createRowEventWithSource("rowDoubleClicked",i))}getColumnForFullWidth(i){let{visibleColsService:n}=this.beans;switch(i?.containerType){case"center":return n.getCenterCols()[0];case"left":return n.getLeftCols()[0];case"right":return n.getRightCols()[0];default:return n.getAllCols()[0]}}onRowMouseDown(i){if(this.lastMouseDownOnDragger=ts(i.target,"ag-row-drag",3),!this.isFullWidth())return;let n=this.rowNode;this.beans.rangeService&&this.beans.rangeService.removeAllCellRanges();let o=this.findFullWidthRowGui(i.target),r=o?.element,a=i.target,s=!0;r&&r.contains(a)&&Cm(a)&&(s=!1),this.beans.focusService.setFocusedCell({rowIndex:n.rowIndex,column:this.getColumnForFullWidth(o),rowPinned:n.rowPinned,forceBrowserFocus:s})}onRowClick(i){if(yo(i)||this.lastMouseDownOnDragger)return;let{gos:o}=this;this.beans.eventService.dispatchEvent(this.createRowEventWithSource("rowClicked",i));let r=i.ctrlKey||i.metaKey,a=i.shiftKey,s=this.rowNode.isSelected(),l=$r(o),c=$b(o),h=eR(o);if(l&&this.rowNode.group||this.isRowSelectionBlocked()||!h&&!s||!c&&s)return;let m=tR(o),f="rowClicked";if(s)m?this.rowNode.setSelectedParams({newValue:!1,event:i,source:f}):r?c&&this.rowNode.setSelectedParams({newValue:!1,event:i,source:f}):h&&this.rowNode.setSelectedParams({newValue:!0,clearSelection:!a,rangeSelect:a,event:i,source:f});else{let b=m?!1:!r;this.rowNode.setSelectedParams({newValue:!0,clearSelection:b,rangeSelect:a,event:i,source:f})}}isRowSelectionBlocked(){return!this.rowNode.selectable||!!this.rowNode.rowPinned||!gu(this.gos)}setupDetailRowAutoHeight(i){if(this.rowType!=="FullWidthDetail"||!this.gos.get("detailRowAutoHeight"))return;let n=()=>{let r=i.clientHeight;if(r!=null&&r>0){let a=()=>{this.rowNode.setRowHeight(r),(at(this.gos)||ko(this.gos))&&this.beans.rowModel.onRowHeightChanged()};window.setTimeout(a,0)}},o=this.beans.resizeObserverService.observeResize(i,n);this.addDestroyFunc(o),n()}
608createFullWidthCompDetails(i,n){let{gos:o,rowNode:r}=this,a=o.addGridCommonParams({fullWidth:!0,data:r.data,node:r,value:r.key,valueFormatted:r.key,eGridCell:i,eParentOfValue:i,pinned:n,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:(l,c,h,m)=>this.addFullWidthRowDragging(l,c,h,m),setTooltip:(l,c)=>this.refreshRowTooltip(l,c)}),s=this.beans.userComponentFactory;switch(this.rowType){case"FullWidthDetail":return s.getFullWidthDetailCellRendererDetails(a);case"FullWidthGroup":return s.getFullWidthGroupCellRendererDetails(a);case"FullWidthLoading":return s.getFullWidthLoadingCellRendererDetails(a);default:return s.getFullWidthCellRendererDetails(a)}}refreshRowTooltip(i,n){if(!this.fullWidthGui)return;let o={getGui:()=>this.fullWidthGui.element,getTooltipValue:()=>i,getLocation:()=>"fullWidthRow",shouldDisplayTooltip:n};this.tooltipFeature&&this.destroyBean(this.tooltipFeature,this.beans.context),this.tooltipFeature=this.createBean(new us(o,this.beans))}addFullWidthRowDragging(i,n,o="",r){if(!this.isFullWidth())return;let a=new im(()=>o,this.rowNode,void 0,i,n,r);this.createBean(a,this.beans.context),this.addDestroyFunc(()=>{this.destroyBean(a,this.beans.context)})}onUiLevelChanged(){let i=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=i){let n="ag-row-level-"+i,o="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach(r=>{r.rowComp.addOrRemoveCssClass(n,!0),r.rowComp.addOrRemoveCssClass(o,!1)})}this.rowLevel=i}isFirstRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBoundsService.getFirstRow()}isLastRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBoundsService.getLastRow()}refreshFirstAndLastRowStyles(){let i=this.isFirstRowOnPage(),n=this.isLastRowOnPage();this.firstRowOnPage!==i&&(this.firstRowOnPage=i,this.allRowGuis.forEach(o=>o.rowComp.addOrRemoveCssClass("ag-row-first",i))),this.lastRowOnPage!==n&&(this.lastRowOnPage=n,this.allRowGuis.forEach(o=>o.rowComp.addOrRemoveCssClass("ag-row-last",n)))}stopEditing(i=!1){this.stoppingRowEdit||this.beans.rowEditService?.stopEditing(this,i)}setInlineEditingCss(){let i=this.editingRow||this.getAllCellCtrls().some(n=>n.isEditing());this.allRowGuis.forEach(n=>{n.rowComp.addOrRemoveCssClass("ag-row-inline-editing",i),n.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!i)})}setEditingRow(i){this.editingRow=i}startRowEditing(i=null,n=null,o=null){return this.editingRow?!0:this.beans.rowEditService?.startEditing(this,i,n,o)??!0}getAllCellCtrls(){return this.leftCellCtrls.list.length===0&&this.rightCellCtrls.list.length===0?this.centerCellCtrls.list:[...this.centerCellCtrls.list,...this.leftCellCtrls.list,...this.rightCellCtrls.list]}postProcessClassesFromGridOptions(){let i=this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode);!i||!i.length||i.forEach(n=>{this.allRowGuis.forEach(o=>o.rowComp.addOrRemoveCssClass(n,!0))})}postProcessRowClassRules(){this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode,i=>{this.allRowGuis.forEach(n=>n.rowComp.addOrRemoveCssClass(i,!0))},i=>{this.allRowGuis.forEach(n=>n.rowComp.addOrRemoveCssClass(i,!1))})}setStylesFromGridOptions(i,n){i&&(this.rowStyles=this.processStylesFromGridOptions()),this.forEachGui(n,o=>o.rowComp.setUserStyles(this.rowStyles))}getPinnedForContainer(i){return i==="left"||i==="right"?i:null}getInitialRowClasses(i){let n=this.getPinnedForContainer(i),o={rowNode:this.rowNode,rowFocused:this.rowFocused,fadeRowIn:this.fadeInAnimation[i],rowIsEven:this.rowNode.rowIndex%2===0,rowLevel:this.rowLevel,fullWidthRow:this.isFullWidth(),firstRowOnPage:this.isFirstRowOnPage(),lastRowOnPage:this.isLastRowOnPage(),printLayout:this.printLayout,expandable:this.rowNode.isExpandable(),pinned:n};return this.beans.rowCssClassCalculator.getInitialRowClasses(o)}processStylesFromGridOptions(){let i=this.gos.get("rowStyle");if(i&&typeof i=="function"){$("rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead");return}let n=this.gos.getCallback("getRowStyle"),o;if(n){let r={data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex};o=n(r)}return o||i?Object.assign({},i,o):this.emptyStyle}onRowSelected(i){let n=!!this.rowNode.isSelected();this.forEachGui(i,o=>{o.rowComp.addOrRemoveCssClass("ag-row-selected",n),_u(o.element,n),o.element.contains(nt(this.gos))&&(o===this.centerGui||o===this.fullWidthGui)&&this.announceDescription()})}announceDescription(){if(this.isRowSelectionBlocked())return;let i=this.rowNode.isSelected();if(i&&!$b(this.gos))return;let o=this.beans.localeService.getLocaleTextFunc()(i?"ariaRowDeselect":"ariaRowSelect",`Press SPACE to ${i?"deselect":"select"} this row.`);this.beans.ariaAnnouncementService.announceValue(o,"rowSelection")}
608addHoverFunctionality(i){if(!this.active)return;let{element:n,compBean:o}=i,{rowNode:r,beans:a,gos:s}=this;o.addManagedListeners(n,{mouseenter:()=>r.onMouseEnter(),mouseleave:()=>r.onMouseLeave()}),o.addManagedListeners(r,{mouseEnter:()=>{!a.dragService.isDragging()&&!s.get("suppressRowHoverHighlight")&&(n.classList.add("ag-row-hover"),r.setHovered(!0))},mouseLeave:()=>{n.classList.remove("ag-row-hover"),r.setHovered(!1)}})}roundRowTopToBounds(i){let n=this.beans.ctrlsService.getGridBodyCtrl().getScrollFeature().getApproximateVScollPosition(),o=this.applyPaginationOffset(n.top,!0)-100,r=this.applyPaginationOffset(n.bottom,!0)+100;return Math.min(Math.max(o,i),r)}getFrameworkOverrides(){return this.beans.frameworkOverrides}forEachGui(i,n){i?n(i):this.allRowGuis.forEach(n)}onRowHeightChanged(i){if(this.rowNode.rowHeight==null)return;let n=this.rowNode.rowHeight,o=this.beans.environment.getDefaultRowHeight(),a=b_(this.gos)?nr(this.gos,this.rowNode).height:void 0,s=a?`${Math.min(o,a)-2}px`:void 0;this.forEachGui(i,l=>{l.element.style.height=`${n}px`,s&&l.element.style.setProperty("--ag-line-height",s)})}addEventListener(i,n){super.addEventListener(i,n)}removeEventListener(i,n){super.removeEventListener(i,n)}destroyFirstPass(i=!1){if(this.active=!1,!i&&es(this.gos)&&!this.isSticky())if(this.rowNode.rowTop!=null){let r=this.roundRowTopToBounds(this.rowNode.rowTop);this.setRowTop(r)}else this.allRowGuis.forEach(r=>r.rowComp.addOrRemoveCssClass("ag-opacity-zero",!0));this.rowNode.setHovered(!1);let n=this.createRowEvent("virtualRowRemoved");this.dispatchLocalEvent(n),this.beans.eventService.dispatchEvent(n),super.destroy()}destroySecondPass(){this.allRowGuis.length=0,this.stopEditing();let i=n=>(n.list.forEach(o=>o.destroy()),{list:[],map:{}});this.centerCellCtrls=i(this.centerCellCtrls),this.leftCellCtrls=i(this.leftCellCtrls),this.rightCellCtrls=i(this.rightCellCtrls)}setFocusedClasses(i){this.forEachGui(i,n=>{n.rowComp.addOrRemoveCssClass("ag-row-focus",this.rowFocused),n.rowComp.addOrRemoveCssClass("ag-row-no-focus",!this.rowFocused)})}onCellFocusChanged(){let i=this.beans.focusService.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);i!==this.rowFocused&&(this.rowFocused=i,this.setFocusedClasses()),!i&&this.editingRow&&this.stopEditing(!1)}onPaginationChanged(){let i=this.beans.paginationService?.getCurrentPage()??0;this.paginationPage!==i&&(this.paginationPage=i,this.onTopChanged()),this.refreshFirstAndLastRowStyles()}onTopChanged(){this.setRowTop(this.rowNode.rowTop)}onPaginationPixelOffsetChanged(){this.onTopChanged()}applyPaginationOffset(i,n=!1){if(this.rowNode.isRowPinned()||this.rowNode.sticky)return i;let o=this.beans.pageBoundsService.getPixelOffset();return i+o*(n?1:-1)}setRowTop(i){if(!this.printLayout&&K(i)){let n=this.applyPaginationOffset(i),a=`${this.rowNode.isRowPinned()||this.rowNode.sticky?n:this.beans.rowContainerHeightService.getRealPixelPosition(n)}px`;this.setRowTopStyle(a)}}getInitialRowTop(i){return this.suppressRowTransform?this.getInitialRowTopShared(i):void 0}getInitialTransform(i){return this.suppressRowTransform?void 0:`translateY(${this.getInitialRowTopShared(i)})`}getInitialRowTopShared(i){if(this.printLayout)return"";let n=this.rowNode,o;if(this.isSticky())o=n.stickyRowTop;else{let r=this.slideInAnimation[i]?this.roundRowTopToBounds(n.oldRowTop):n.rowTop,a=this.applyPaginationOffset(r);o=n.isRowPinned()?a:this.beans.rowContainerHeightService.getRealPixelPosition(a)}return o+"px"}setRowTopStyle(i){this.allRowGuis.forEach(n=>this.suppressRowTransform?n.rowComp.setTop(i):n.rowComp.setTransform(`translateY(${i})`))}getRowNode(){return this.rowNode}getCellCtrl(i){let n=null;return this.getAllCellCtrls().forEach(o=>{o.getColumn()==i&&(n=o)}),n!=null||this.getAllCellCtrls().forEach(o=>{o.getColSpanningList().indexOf(i)>=0&&(n=o)}),n}onRowIndexChanged(){this.rowNode.rowIndex!=null&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())}getRowIndex(){return this.rowNode.getRowIndexString()}updateRowIndexes(i){let n=this.rowNode.getRowIndexString();if(n===null)return;let o=this.beans.headerNavigationService.getHeaderRowCount()+(this.beans.filterManager?.getHeaderRowCount()??0),r=this.rowNode.rowIndex%2===0,a=o+this.rowNode.rowIndex+1;this.forEachGui(i,s=>{s.rowComp.setRowIndex(n),s.rowComp.addOrRemoveCssClass("ag-row-even",r),s.rowComp.addOrRemoveCssClass("ag-row-odd",!r),U_(s.element,a)})}setStoppingRowEdit(i){this.stoppingRowEdit=i}};return e.DOM_DATA_KEY_ROW_CTRL="renderedRow",e})(),jr=kO,EO=class extends H{wireBeans(e){this.mouseEventService=e.mouseEventService,this.valueService=e.valueService,this.menuService=e.menuService,this.ctrlsService=e.ctrlsService,this.navigationService=e.navigationService,this.focusService=e.focusService,this.undoRedoService=e.undoRedoService,this.visibleColsService=e.visibleColsService,this.rowModel=e.rowModel,this.pinnedRowModel=e.pinnedRowModel,this.rangeService=e.rangeService,this.clipboardService=e.clipboardService}constructor(e){super(),this.element=e}postConstruct(){this.addKeyboardListeners(),this.addMouseListeners(),this.mockContextMenuForIPad()}addKeyboardListeners(){let e="keydown",t=this.processKeyboardEvent.bind(this,e);this.addManagedElementListeners(this.element,{[e]:t})}addMouseListeners(){["dblclick","contextmenu","mouseover","mouseout","click",I_("touchstart")?"touchstart":"mousedown"].forEach(i=>
608{let n=this.processMouseEvent.bind(this,i);this.addManagedElementListeners(this.element,{[i]:n})})}processMouseEvent(e,t){if(!this.mouseEventService.isEventFromThisGrid(t)||yo(t))return;let i=this.getRowForEvent(t),n=this.mouseEventService.getRenderedCellForEvent(t);e==="contextmenu"?this.handleContextMenuMouseEvent(t,void 0,i,n):(n&&n.onMouseEvent(e,t),i&&i.onMouseEvent(e,t))}mockContextMenuForIPad(){if(!ar())return;let e=new ir(this.element),t=i=>{let n=this.getRowForEvent(i.touchEvent),o=this.mouseEventService.getRenderedCellForEvent(i.touchEvent);this.handleContextMenuMouseEvent(void 0,i.touchEvent,n,o)};this.addManagedListeners(e,{longTap:t}),this.addDestroyFunc(()=>e.destroy())}getRowForEvent(e){let t=e.target;for(;t;){let i=Bl(this.gos,t,jr.DOM_DATA_KEY_ROW_CTRL);if(i)return i;t=t.parentElement}return null}handleContextMenuMouseEvent(e,t,i,n){let o=i?i.getRowNode():null,r=n?n.getColumn():null,a=null;if(r){let c=e||t;n.dispatchCellContextMenuEvent(c??null),a=this.valueService.getValue(r,o)}let s=this.ctrlsService.getGridBodyCtrl(),l=n?n.getGui():s.getGridBodyElement();this.menuService.showContextMenu({mouseEvent:e,touchEvent:t,rowNode:o,column:r,value:a,anchorToElement:l})}getControlsForEventTarget(e){return{cellCtrl:qg(this.gos,e,Ur.DOM_DATA_KEY_CELL_CTRL),rowCtrl:qg(this.gos,e,jr.DOM_DATA_KEY_ROW_CTRL)}}processKeyboardEvent(e,t){let{cellCtrl:i,rowCtrl:n}=this.getControlsForEventTarget(t.target);t.defaultPrevented||(i?this.processCellKeyboardEvent(i,e,t):n&&n.isFullWidth()&&this.processFullWidthRowKeyboardEvent(n,e,t))}processCellKeyboardEvent(e,t,i){let n=e.getRowNode(),o=e.getColumn(),r=e.isEditing();!nm(this.gos,i,n,o,r)&&t==="keydown"&&(!r&&this.navigationService.handlePageScrollingKey(i)||e.onKeyDown(i),this.doGridOperations(i,e.isEditing()),by(i)&&e.processCharacter(i)),t==="keydown"&&this.eventService.dispatchEvent(e.createEvent(i,"cellKeyDown"))}processFullWidthRowKeyboardEvent(e,t,i){let n=e.getRowNode(),o=this.focusService.getFocusedCell(),r=o&&o.column;if(!nm(this.gos,i,n,r,!1)){let s=i.key;if(t==="keydown")switch(s){case j.PAGE_HOME:case j.PAGE_END:case j.PAGE_UP:case j.PAGE_DOWN:this.navigationService.handlePageScrollingKey(i,!0);break;case j.UP:case j.DOWN:e.onKeyboardNavigate(i);break;case j.TAB:e.onTabKeyDown(i);break;default:}}t==="keydown"&&this.eventService.dispatchEvent(e.createRowEvent("cellKeyDown",i))}doGridOperations(e,t){if(!e.ctrlKey&&!e.metaKey||t||!this.mouseEventService.isEventFromThisGrid(e))return;let i=xF(e);if(i===j.A)return this.onCtrlAndA(e);if(i===j.C)return this.onCtrlAndC(e);if(i===j.D)return this.onCtrlAndD(e);if(i===j.V)return this.onCtrlAndV(e);if(i===j.X)return this.onCtrlAndX(e);if(i===j.Y)return this.onCtrlAndY();if(i===j.Z)return this.onCtrlAndZ(e)}onCtrlAndA(e){let{pinnedRowModel:t,rowModel:i,rangeService:n}=this;if(n&&i.isRowsToRender()){let[o,r]=[t.isEmpty("top"),t.isEmpty("bottom")],a=o?null:"top",s,l;r?(s=null,l=i.getRowCount()-1):(s="bottom",l=t.getPinnedBottomRowCount()-1);let c=this.visibleColsService.getAllCols();if($i(c))return;n.setCellRange({rowStartIndex:0,rowStartPinned:a,rowEndIndex:l,rowEndPinned:s,columnStart:c[0],columnEnd:Ae(c)})}e.preventDefault()}onCtrlAndC(e){if(!this.clipboardService||this.gos.get("enableCellTextSelection"))return;let{cellCtrl:t,rowCtrl:i}=this.getControlsForEventTarget(e.target);t?.isEditing()||i?.isEditing()||(e.preventDefault(),this.clipboardService.copyToClipboard())}onCtrlAndX(e){if(!this.clipboardService||this.gos.get("enableCellTextSelection")||this.gos.get("suppressCutToClipboard"))return;let{cellCtrl:t,rowCtrl:i}=this.getControlsForEventTarget(e.target);t?.isEditing()||i?.isEditing()||(e.preventDefault(),this.clipboardService.cutToClipboard(void 0,"ui"))}onCtrlAndV(e){let{cellCtrl:t,rowCtrl:i}=this.getControlsForEventTarget(e.target);t?.isEditing()||i?.isEditing()||this.clipboardService&&!this.gos.get("suppressClipboardPaste")&&this.clipboardService.pasteFromClipboard()}onCtrlAndD(e){this.clipboardService&&!this.gos.get("suppressClipboardPaste")&&this.clipboardService.copyRangeDown(),e.preventDefault()}onCtrlAndZ(e){!this.gos.get("undoRedoCellEditing")||!this.undoRedoService||(e.preventDefault(),e.shiftKey?this.undoRedoService.redo("ui"):this.undoRedoService.undo("ui"))}onCtrlAndY(){this.undoRedoService?.redo("ui")}
vendor: 4,594 bytes, line 608
608},MO=class extends H{wireBeans(e){this.pinnedWidthService=e.pinnedWidthService}constructor(e){super(),this.element=e}postConstruct(){this.addManagedEventListeners({leftPinnedWidthChanged:this.onPinnedLeftWidthChanged.bind(this)})}onPinnedLeftWidthChanged(){let e=this.pinnedWidthService.getPinnedLeftWidth(),t=e>0;it(this.element,t),En(this.element,e)}getWidth(){return this.pinnedWidthService.getPinnedLeftWidth()}},TO=class extends H{wireBeans(e){this.pinnedWidthService=e.pinnedWidthService}constructor(e){super(),this.element=e}postConstruct(){this.addManagedEventListeners({rightPinnedWidthChanged:this.onPinnedRightWidthChanged.bind(this)})}onPinnedRightWidthChanged(){let e=this.pinnedWidthService.getPinnedRightWidth(),t=e>0;it(this.element,t),En(this.element,e)}getWidth(){return this.pinnedWidthService.getPinnedRightWidth()}},ru=e=>e.getTopRowCtrls(),au=e=>e.getStickyTopRowCtrls(),su=e=>e.getStickyBottomRowCtrls(),lu=e=>e.getBottomRowCtrls(),cu=e=>e.getCentreRowCtrls(),IO={center:{type:"center",container:"ag-center-cols-container",viewport:"ag-center-cols-viewport",getRowCtrls:cu},left:{type:"left",container:"ag-pinned-left-cols-container",pinnedType:"left",getRowCtrls:cu},right:{type:"right",container:"ag-pinned-right-cols-container",pinnedType:"right",getRowCtrls:cu},fullWidth:{type:"fullWidth",container:"ag-full-width-container",fullWidth:!0,getRowCtrls:cu},topCenter:{type:"center",container:"ag-floating-top-container",viewport:"ag-floating-top-viewport",getRowCtrls:ru},topLeft:{type:"left",container:"ag-pinned-left-floating-top",pinnedType:"left",getRowCtrls:ru},topRight:{type:"right",container:"ag-pinned-right-floating-top",pinnedType:"right",getRowCtrls:ru},topFullWidth:{type:"fullWidth",container:"ag-floating-top-full-width-container",fullWidth:!0,getRowCtrls:ru},stickyTopCenter:{type:"center",container:"ag-sticky-top-container",viewport:"ag-sticky-top-viewport",getRowCtrls:au},stickyTopLeft:{type:"left",container:"ag-pinned-left-sticky-top",pinnedType:"left",getRowCtrls:au},stickyTopRight:{type:"right",container:"ag-pinned-right-sticky-top",pinnedType:"right",getRowCtrls:au},stickyTopFullWidth:{type:"fullWidth",container:"ag-sticky-top-full-width-container",fullWidth:!0,getRowCtrls:au},stickyBottomCenter:{type:"center",container:"ag-sticky-bottom-container",viewport:"ag-sticky-bottom-viewport",getRowCtrls:su},stickyBottomLeft:{type:"left",container:"ag-pinned-left-sticky-bottom",pinnedType:"left",getRowCtrls:su},stickyBottomRight:{type:"right",container:"ag-pinned-right-sticky-bottom",pinnedType:"right",getRowCtrls:su},stickyBottomFullWidth:{type:"fullWidth",container:"ag-sticky-bottom-full-width-container",fullWidth:!0,getRowCtrls:su},bottomCenter:{type:"center",container:"ag-floating-bottom-container",viewport:"ag-floating-bottom-viewport",getRowCtrls:lu},bottomLeft:{type:"left",container:"ag-pinned-left-floating-bottom",pinnedType:"left",getRowCtrls:lu},bottomRight:{type:"right",container:"ag-pinned-right-floating-bottom",pinnedType:"right",getRowCtrls:lu},bottomFullWidth:{type:"fullWidth",container:"ag-floating-bottom-full-width-container",fullWidth:!0,getRowCtrls:lu}};function Xa(e){return IO[e]}var DO=["topCenter","topLeft","topRight"],PO=["bottomCenter","bottomLeft","bottomRight"],RO=["center","left","right"],FO=["center","left","right","fullWidth"],OO=["stickyTopCenter","stickyBottomCenter","center","topCenter","bottomCenter"],AO=["left","bottomLeft","topLeft","stickyTopLeft","stickyBottomLeft"],LO=["right","bottomRight","topRight","stickyTopRight","stickyBottomRight"],By=["stickyTopCenter","stickyTopLeft","stickyTopRight"],Vy=["stickyBottomCenter","stickyBottomLeft","stickyBottomRight"],NO=[...By,"stickyTopFullWidth",...Vy,"stickyBottomFullWidth"],zO=[...DO,...PO,...RO,...By,...Vy],BO=class extends H{constructor(e){super(),this.visible=!0,this.EMPTY_CTRLS=[],this.name=e,this.options=Xa(e)}wireBeans(e){this.dragService=e.dragService,this.ctrlsService=e.ctrlsService,this.columnViewportService=e.columnViewportService,this.resizeObserverService=e.resizeObserverService,this.rowRenderer=e.rowRenderer}postConstruct(){this.enableRtl=this.gos.get("enableRtl"),this.forContainers(["center"],()=>{this.viewportSizeFeature=this.createManagedBean(new Q4(this)),this.addManagedEventListeners({stickyTopOffsetChanged:this.onStickyTopOffsetChanged.bind(this)})})}onStickyTopOffsetChanged(e){this.comp.setOffsetTop(`${e.offset}px`)}registerWithCtrlsService(){this.options.fullWidth||this.ctrlsService.register(this.name,this)}forContainers(e,t){e.indexOf(this.name)>=0&&t()}getContainerElement(){return this.eContainer}
608getViewportSizeFeature(){return this.viewportSizeFeature}setComp(e,t,i){this.comp=e,this.eContainer=t,this.eViewport=i,this.createManagedBean(new EO(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder();let n=()=>this.onPinnedWidthChanged();this.forContainers(AO,()=>{this.pinnedWidthFeature=this.createManagedBean(new MO(this.eContainer)),this.addManagedEventListeners({leftPinnedWidthChanged:n})}),this.forContainers(LO,()=>{this.pinnedWidthFeature=this.createManagedBean(new TO(this.eContainer)),this.addManagedEventListeners({rightPinnedWidthChanged:n})}),this.forContainers(FO,()=>this.createManagedBean(new zy(this.eContainer,this.name==="center"?i:void 0))),this.forContainers(zO,()=>this.createManagedBean(new J4(this.eContainer))),this.forContainers(OO,()=>this.createManagedBean(new Lm(o=>this.comp.setContainerWidth(`${o}px`)))),this.visible=this.isContainerVisible(),this.addListeners(),this.registerWithCtrlsService()}onScrollCallback(e){this.addManagedElementListeners(this.getViewportElement(),{scroll:e})}addListeners(){this.addManagedEventListeners({displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),displayedColumnsWidthChanged:this.onDisplayedColumnsWidthChanged.bind(this),displayedRowsChanged:e=>this.onDisplayedRowsChanged(e.afterScroll)}),this.onDisplayedColumnsChanged(),this.onDisplayedColumnsWidthChanged(),this.onDisplayedRowsChanged()}listenOnDomOrder(){if(NO.indexOf(this.name)>=0){this.comp.setDomOrder(!0);return}let t=()=>{let i=this.gos.get("ensureDomOrder"),n=Bt(this.gos,"print");this.comp.setDomOrder(i||n)};this.addManagedPropertyListener("domLayout",t),t()}onDisplayedColumnsChanged(){this.forContainers(["center"],()=>this.onHorizontalViewportChanged())}onDisplayedColumnsWidthChanged(){this.forContainers(["center"],()=>this.onHorizontalViewportChanged())}addPreventScrollWhileDragging(){let e=t=>{this.dragService.isDragging()&&t.cancelable&&t.preventDefault()};this.eContainer.addEventListener("touchmove",e,{passive:!1}),this.addDestroyFunc(()=>this.eContainer.removeEventListener("touchmove",e))}onHorizontalViewportChanged(e=!1){let t=this.getCenterWidth(),i=this.getCenterViewportScrollLeft();this.columnViewportService.setScrollPosition(t,i,e)}hasHorizontalScrollGap(){return this.eContainer.clientWidth-this.eViewport.clientWidth<0}hasVerticalScrollGap(){return this.eContainer.clientHeight-this.eViewport.clientHeight<0}getCenterWidth(){return ql(this.eViewport)}getCenterViewportScrollLeft(){return wu(this.eViewport,this.enableRtl)}registerViewportResizeListener(e){let t=this.resizeObserverService.observeResize(this.eViewport,e);this.addDestroyFunc(()=>t())}isViewportInTheDOMTree(){return Y_(this.eViewport)}getViewportScrollLeft(){return wu(this.eViewport,this.enableRtl)}isHorizontalScrollShowing(){return this.gos.get("alwaysShowHorizontalScroll")||QR(this.eViewport)}getViewportElement(){return this.eViewport}setHorizontalScroll(e){this.comp.setHorizontalScroll(e)}getHScrollPosition(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}}setCenterViewportScrollLeft(e){xu(this.eViewport,e,this.enableRtl)}isContainerVisible(){return!(this.options.pinnedType!=null)||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0}onPinnedWidthChanged(){let e=this.isContainerVisible();this.visible!=e&&(this.visible=e,this.onDisplayedRowsChanged())}onDisplayedRowsChanged(e=!1){let t=this.options.getRowCtrls(this.rowRenderer);if(!this.visible||t.length===0){this.comp.setRowCtrls({rowCtrls:this.EMPTY_CTRLS});return}let i=Bt(this.gos,"print"),o=this.gos.get("embedFullWidthRows")||i,r=t.filter(a=>{let s=a.isFullWidth();return this.options.fullWidth?!o&&s:o||!s});this.comp.setRowCtrls({rowCtrls:r,useFlushSync:e})}},Hy="ag-force-vertical-scroll",VO="ag-selectable",HO="ag-column-moving",GO=class extends H{constructor(){super(...arguments),this.stickyTopHeight=0,this.stickyBottomHeight=0}wireBeans(e){this.animationFrameService=e.animationFrameService,this.rowContainerHeightService=e.rowContainerHeightService,this.ctrlsService=e.ctrlsService,this.columnModel=e.columnModel,this.columnSizeService=e.columnSizeService,this.scrollVisibleService=e.scrollVisibleService,this.menuService=e.menuService,this.headerNavigationService=e.headerNavigationService,this.dragAndDropService=e.dragAndDropService,this.pinnedRowModel=e.pinnedRowModel,this.rowRenderer=e.rowRenderer,this.popupService=e.popupService,this.mouseEventService=e.mouseEventService,this.rowModel=e.rowModel,this.filterManager=e.filterManager,this.environment=e.environment}
608getScrollFeature(){return this.bodyScrollFeature}getBodyViewportElement(){return this.eBodyViewport}setComp(e,t,i,n,o,r,a){this.comp=e,this.eGridBody=t,this.eBodyViewport=i,this.eTop=n,this.eBottom=o,this.eStickyTop=r,this.eStickyBottom=a,this.eCenterColsViewport=i.querySelector(`.${Xa("center").viewport}`),this.eFullWidthContainer=i.querySelector(`.${Xa("fullWidth").container}`),this.eStickyTopFullWidthContainer=r.querySelector(`.${Xa("stickyTopFullWidth").container}`),this.eStickyBottomFullWidthContainer=a.querySelector(`.${Xa("stickyBottomFullWidth").container}`),this.setCellTextSelection(this.gos.get("enableCellTextSelection")),this.addManagedPropertyListener("enableCellTextSelection",s=>this.setCellTextSelection(s.currentValue)),this.createManagedBean(new zm(this.comp)),this.bodyScrollFeature=this.createManagedBean(new K4(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([n,i,o,r,a]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.updateScrollingClasses(),this.filterManager?.setupAdvancedFilterHeaderComp(n),this.ctrlsService.register("gridBodyCtrl",this)}getComp(){return this.comp}addEventListeners(){let e=this.setFloatingHeights.bind(this);this.addManagedEventListeners({gridColumnsChanged:this.onGridColumnsChanged.bind(this),scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this),scrollGapChanged:this.onScrollGapChanged.bind(this),pinnedRowDataChanged:e,pinnedHeightChanged:e,headerHeightChanged:this.onHeaderHeightChanged.bind(this)})}addFocusListeners(e){e.forEach(t=>{this.addManagedElementListeners(t,{focusin:i=>{let{target:n}=i,o=ts(n,"ag-root",t);t.classList.toggle("ag-has-focus",!o)},focusout:i=>{let{target:n,relatedTarget:o}=i,r=t.contains(o),a=ts(o,"ag-root",t);ts(n,"ag-root",t)||(!r||a)&&t.classList.remove("ag-has-focus")}})})}setColumnMovingCss(e){this.comp.setColumnMovingCss(HO,e)}setCellTextSelection(e=!1){this.comp.setCellSelectableCss(VO,e)}onScrollVisibilityChanged(){let e=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(e),this.setStickyWidth(e),this.setStickyBottomOffsetBottom();let t=e&&this.scrollVisibleService.getScrollbarWidth()||0,i=iy()?16:0,n=`calc(100% + ${t+i}px)`;this.animationFrameService.requestAnimationFrame(()=>this.comp.setBodyViewportWidth(n)),this.updateScrollingClasses()}onScrollGapChanged(){this.updateScrollingClasses()}updateScrollingClasses(){this.eGridBody.classList.toggle("ag-body-vertical-content-no-gap",!this.scrollVisibleService.hasVerticalScrollGap()),this.eGridBody.classList.toggle("ag-body-horizontal-content-no-gap",!this.scrollVisibleService.hasHorizontalScrollGap())}onGridColumnsChanged(){let e=this.columnModel.getCols();this.comp.setColumnCount(e.length)}disableBrowserDragging(){this.addManagedElementListeners(this.eGridBody,{dragstart:e=>{if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}})}addStopEditingWhenGridLosesFocus(){if(!this.gos.get("stopEditingWhenCellsLoseFocus"))return;let e=i=>{let n=i.relatedTarget;if(em(n)===null){this.rowRenderer.stopEditing();return}let o=t.some(r=>r.contains(n))&&this.mouseEventService.isElementInThisGrid(n);if(!o){let r=this.popupService;o=r.getActivePopups().some(a=>a.contains(n))||r.isElementWithinCustomPopup(n)}o||this.rowRenderer.stopEditing()},t=[this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop,this.eStickyBottom];t.forEach(i=>this.addManagedElementListeners(i,{focusout:e}))}updateRowCount(){let e=this.headerNavigationService.getHeaderRowCount()+(this.filterManager?.getHeaderRowCount()??0),t=this.rowModel.isLastRowIndexKnown()?this.rowModel.getRowCount():-1,i=t===-1?-1:e+t;this.comp.setRowCount(i)}registerBodyViewportResizeListener(e){this.comp.registerBodyViewportResizeListener(e)}setVerticalScrollPaddingVisible(e){let t=e?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(t)}isVerticalScrollShowing(){let e=this.gos.get("alwaysShowVerticalScroll"),t=e?Hy:null,i=Bt(this.gos,"normal");return this.comp.setAlwaysVerticalScrollClass(t,e),e||i&&JR(this.eBodyViewport)}setupRowAnimationCssClass(){let e=this.environment.hasMeasuredSizes(),t=()=>{let i=e&&es(this.gos)&&!this.rowContainerHeightService.isStretching(),n=i?"ag-row-animation":"ag-row-no-animation";this.comp.setRowAnimationCssOnBodyViewport(n,i)};t(),this.addManagedEventListeners({heightScaleChanged:t}),this.addManagedPropertyListener("animateRows",t),this.addManagedEventListeners({gridStylesChanged:()=>{!e&&this.environment.hasMeasuredSizes()&&(e=!0,t())}})}getGridBodyElement(){return this.eGridBody}addBodyViewportListener(){let e=this.onBodyViewportContextMenu.bind(this);this.addManagedElementListeners(this.eBodyViewport,{contextmenu:e}),this.mockContextMenuForIPad(e),this.addManagedElementListeners(this.eBodyViewport,{wheel:this.onBodyViewportWheel.bind(this)}),this.addManagedElementListeners(this.eStickyTop,{wheel:this.onStickyWheel.bind(this)}),this.addManagedElementListeners(this.eStickyBottom,{wheel:this.onStickyWheel.bind(this)}),this.addFullWidthContainerWheelListener()}addFullWidthContainerWheelListener(){this.addManagedElementListeners(this.eFullWidthContainer,{wheel:e=>this.onFullWidthContainerWheel(e)})}onFullWidthContainerWheel(e){let{deltaX:t,deltaY:i,shiftKey:n}=e;(n||Math.abs(t)>Math.abs(i))&&this.mouseEventService.isEventFromThisGrid(e)&&this.scrollGridBodyToMatchEvent(e)}onStickyWheel(e){let{deltaX:t,deltaY:i,shiftKey:n}=e,o=n||Math.abs(t)>Math.abs(i),r=e.target;o?(this.eStickyTopFullWidthContainer.contains(r)||this.eStickyBottomFullWidthContainer.contains(r))&&this.scrollGridBodyToMatchEvent(e):(e.preventDefault(),this.scrollVertically(i))}scrollGridBodyToMatchEvent(e){let{deltaX:t,deltaY:i}
608=e;e.preventDefault(),this.eCenterColsViewport.scrollBy({left:t||i})}onBodyViewportContextMenu(e,t,i){if(!e&&!i)return;this.gos.get("preventDefaultOnContextMenu")&&(e||i).preventDefault();let{target:n}=e||t;(n===this.eBodyViewport||n===this.ctrlsService.get("center").getViewportElement())&&this.menuService.showContextMenu({mouseEvent:e,touchEvent:i,value:null,anchorToElement:this.eGridBody})}mockContextMenuForIPad(e){if(!ar())return;let t=new ir(this.eBodyViewport),i=n=>{e(void 0,n.touchStart,n.touchEvent)};this.addManagedListeners(t,{longTap:i}),this.addDestroyFunc(()=>t.destroy())}onBodyViewportWheel(e){this.gos.get("suppressScrollWhenPopupsAreOpen")&&this.popupService.hasAnchoredPopup()&&e.preventDefault()}getGui(){return this.eGridBody}scrollVertically(e){let t=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t}addRowDragListener(){this.rowDragFeature=this.createManagedBean(new eF(this.eBodyViewport)),this.dragAndDropService.addDropTarget(this.rowDragFeature),this.addDestroyFunc(()=>this.dragAndDropService.removeDropTarget(this.rowDragFeature))}getRowDragFeature(){return this.rowDragFeature}setFloatingHeights(){let{pinnedRowModel:e}=this,t=e.getPinnedTopTotalHeight(),i=e.getPinnedBottomTotalHeight();this.comp.setTopHeight(t),this.comp.setBottomHeight(i),this.comp.setTopDisplay(t?"inherit":"none"),this.comp.setBottomDisplay(i?"inherit":"none"),this.setStickyTopOffsetTop(),this.setStickyBottomOffsetBottom()}setStickyTopHeight(e=0){this.comp.setStickyTopHeight(`${e}px`),this.stickyTopHeight=e}getStickyTopHeight(){return this.stickyTopHeight}setStickyBottomHeight(e=0){this.comp.setStickyBottomHeight(`${e}px`),this.stickyBottomHeight=e}getStickyBottomHeight(){return this.stickyBottomHeight}setStickyWidth(e){if(!e)this.comp.setStickyTopWidth("100%"),this.comp.setStickyBottomWidth("100%");else{let t=this.scrollVisibleService.getScrollbarWidth();this.comp.setStickyTopWidth(`calc(100% - ${t}px)`),this.comp.setStickyBottomWidth(`calc(100% - ${t}px)`)}}onHeaderHeightChanged(){this.setStickyTopOffsetTop()}setStickyTopOffsetTop(){let t=this.ctrlsService.get("gridHeaderCtrl").getHeaderHeight()+(this.filterManager?.getHeaderHeight()??0),i=this.pinnedRowModel.getPinnedTopTotalHeight(),n=0;t>0&&(n+=t),i>0&&(n+=i),n>0&&(n+=1),this.comp.setStickyTopTop(`${n}px`)}setStickyBottomOffsetBottom(){let e=this.pinnedRowModel.getPinnedBottomTotalHeight(),i=this.scrollVisibleService.isHorizontalScrollShowing()&&this.scrollVisibleService.getScrollbarWidth()||0,n=e+i;this.comp.setStickyBottomBottom(`${n}px`)}sizeColumnsToFit(e,t){let n=this.isVerticalScrollShowing()?this.scrollVisibleService.getScrollbarWidth():0,r=ql(this.eGridBody)-n;if(r>0){this.columnSizeService.sizeColumnsToFit(r,"sizeColumnsToFit",!1,e);return}t===void 0?window.setTimeout(()=>{this.sizeColumnsToFit(e,100)},0):t===100?window.setTimeout(()=>{this.sizeColumnsToFit(e,500)},100):t===500?window.setTimeout(()=>{this.sizeColumnsToFit(e,-1)},500):$("tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")}addScrollEventListener(e){this.eBodyViewport.addEventListener("scroll",e,{passive:!0})}removeScrollEventListener(e){this.eBodyViewport.removeEventListener("scroll",e)}},UO=class extends Le{constructor(e,t,i,n,o){super(),this.rendererVersion=0,this.editorVersion=0,this.beans=e,this.column=t.getColumn(),this.rowNode=t.getRowNode(),this.rowCtrl=t.getRowCtrl(),this.eRow=n,this.cellCtrl=t;let r=document.createElement("div");r.setAttribute("comp-id",`${this.getCompId()}`),this.setTemplateFromElement(r);let a=this.getGui();this.forceWrapper=t.isForceWrapper(),this.refreshWrapper(!1),qi(a,t.getCellAriaRole()),a.setAttribute("col-id",t.colIdSanitised);let s={addOrRemoveCssClass:(l,c)=>this.addOrRemoveCssClass(l,c),setUserStyles:l=>J_(a,l),getFocusableElement:()=>this.getFocusableElement(),setIncludeSelection:l=>this.includeSelection=l,setIncludeRowDrag:l=>this.includeRowDrag=l,setIncludeDndSource:l=>this.includeDndSource=l,setRenderDetails:(l,c,h)=>this.setRenderDetails(l,c,h),setEditDetails:(l,c,h)=>this.setEditDetails(l,c,h),getCellEditor:()=>this.cellEditor||null,getCellRenderer:()=>this.cellRenderer||null,getParentOfValue:()=>this.getParentOfValue()};t.setComp(s,this.getGui(),this.eCellWrapper,i,o,void 0)}getParentOfValue(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()}setRenderDetails(e,t,i){if(this.cellEditor&&!this.cellEditorPopupWrapper)return;
608this.firstRender=this.firstRender==null;let o=this.refreshWrapper(!1);this.refreshEditStyles(!1),e?!(i||o)&&this.refreshCellRenderer(e)||(this.destroyRenderer(),this.createCellRendererInstance(e)):(this.destroyRenderer(),this.insertValueWithoutCellRenderer(t))}setEditDetails(e,t,i){e?this.createCellEditorInstance(e,t,i):this.destroyEditor()}removeControls(){this.checkboxSelectionComp=this.beans.context.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=this.beans.context.destroyBean(this.dndSourceComp),this.rowDraggingComp=this.beans.context.destroyBean(this.rowDraggingComp)}refreshWrapper(e){let t=this.includeRowDrag||this.includeDndSource||this.includeSelection,i=t||this.forceWrapper,n=i&&this.eCellWrapper==null;if(n){let c=document.createElement("div");c.setAttribute("role","presentation"),c.setAttribute("class","ag-cell-wrapper"),this.eCellWrapper=c,this.getGui().appendChild(this.eCellWrapper)}let o=!i&&this.eCellWrapper!=null;o&&(cn(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!i);let r=!e&&i,a=r&&this.eCellValue==null;if(a){let c=document.createElement("span");c.setAttribute("role","presentation"),c.setAttribute("class","ag-cell-value"),this.eCellValue=c,this.eCellWrapper.appendChild(this.eCellValue)}let s=!r&&this.eCellValue!=null;s&&(cn(this.eCellValue),this.eCellValue=void 0);let l=n||o||a||s;return l&&this.removeControls(),e||t&&this.addControls(),l}addControls(){this.includeRowDrag&&this.rowDraggingComp==null&&(this.rowDraggingComp=this.cellCtrl.createRowDragComp(),this.rowDraggingComp&&this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(),this.eCellValue)),this.includeDndSource&&this.dndSourceComp==null&&(this.dndSourceComp=this.cellCtrl.createDndSource(),this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(),this.eCellValue)),this.includeSelection&&this.checkboxSelectionComp==null&&(this.checkboxSelectionComp=this.cellCtrl.createSelectionCheckbox(),this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(),this.eCellValue))}createCellEditorInstance(e,t,i){let n=this.editorVersion,o=e.newAgStackInstance();if(o==null)return;let{params:r}=e;o.then(s=>this.afterCellEditorCreated(n,s,r,t,i)),Fe(this.cellEditor)&&r.cellStartedEdit&&this.cellCtrl.focusCell(!0)}insertValueWithoutCellRenderer(e){let t=this.getParentOfValue();ni(t);let i=e!=null?Gn(e,!0):null;i!=null&&(t.textContent=i)}destroyEditorAndRenderer(){this.destroyRenderer(),this.destroyEditor()}destroyRenderer(){let{context:e}=this.beans;this.cellRenderer=e.destroyBean(this.cellRenderer),cn(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++}destroyEditor(){let{context:e}=this.beans;this.hideEditorPopup&&this.hideEditorPopup(),this.hideEditorPopup=void 0,this.cellEditor=e.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=e.destroyBean(this.cellEditorPopupWrapper),cn(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++}refreshCellRenderer(e){if(this.cellRenderer==null||this.cellRenderer.refresh==null||this.cellRendererClass!==e.componentClass)return!1;let t=this.cellRenderer.refresh(e.params);return t===!0||t===void 0}createCellRendererInstance(e){let i=!this.beans.gos.get("suppressAnimationFrame"),n=this.rendererVersion,{componentClass:o}=e,r=()=>{if(this.rendererVersion!==n||!this.isAlive())return;let s=e.newAgStackInstance(),l=this.afterCellRendererCreated.bind(this,n,o);s&&s.then(l)};i&&this.firstRender?this.beans.animationFrameService.createTask(r,this.rowNode.rowIndex,"createTasksP2"):r()}getCtrl(){return this.cellCtrl}getRowCtrl(){return this.rowCtrl}getCellRenderer(){return this.cellRenderer}getCellEditor(){return this.cellEditor}afterCellRendererCreated(e,t,i){if(!this.isAlive()||e!==this.rendererVersion){this.beans.context.destroyBean(i);return}if(this.cellRenderer=i,this.cellRendererClass=t,this.cellRendererGui=this.cellRenderer.getGui(),this.cellRendererGui!=null){let o=this.getParentOfValue();ni(o),o.appendChild(this.cellRendererGui)}}afterCellEditorCreated(e,t,i,n,o){if(e!==this.editorVersion){this.beans.context.destroyBean(t);return}if(t.isCancelBeforeStart&&t.isCancelBeforeStart()){this.beans.context.destroyBean(t),this.cellCtrl.
608stopEditing(!0);return}if(!t.getGui){$(`cellEditor for column ${this.column.getId()} is missing getGui() method`),this.beans.context.destroyBean(t);return}this.cellEditor=t,this.cellEditorGui=t.getGui();let s=n||t.isPopup!==void 0&&t.isPopup();s?this.addPopupCellEditor(i,o):this.addInCellEditor(),this.refreshEditStyles(!0,s),t.afterGuiAttached&&t.afterGuiAttached(),this.cellCtrl.cellEditorAttached()}refreshEditStyles(e,t){this.addOrRemoveCssClass("ag-cell-inline-editing",e&&!t),this.addOrRemoveCssClass("ag-cell-popup-editing",e&&!!t),this.addOrRemoveCssClass("ag-cell-not-inline-editing",!e||!!t),this.rowCtrl?.setInlineEditingCss()}addInCellEditor(){let e=this.getGui();e.contains(nt(this.beans.gos))&&e.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui&&this.getParentOfValue().appendChild(this.cellEditorGui)}addPopupCellEditor(e,t){this.beans.gos.get("editType")==="fullRow"&&$("popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");let i=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(this.beans.editService.createPopupEditorWrapper(e));let n=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&n.appendChild(this.cellEditorGui);let o=this.beans.popupService,r=this.beans.gos.get("stopEditingWhenCellsLoseFocus"),a=t??i.getPopupPosition?.()??"over",s=this.beans.gos.get("enableRtl"),l={ePopup:n,column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),position:a,alignSide:s?"right":"left",keepWithinBounds:!0},c=o.positionPopupByComponent.bind(o,l),h=this.beans.localeService.getLocaleTextFunc(),m=o.addPopup({modal:r,eChild:n,closeOnEsc:!0,closedCallback:()=>{this.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:c,ariaLabel:h("ariaLabelCellEditor","Cell Editor")});m&&(this.hideEditorPopup=m.hideFunc)}detach(){this.eRow.removeChild(this.getGui())}destroy(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),super.destroy()}clearParentOfValue(){let e=this.getGui();e.contains(nt(this.beans.gos))&&Xg()&&e.focus({preventScroll:!0}),ni(this.getParentOfValue())}},jO=class extends Le{constructor(e,t,i){super(),this.cellComps={},this.beans=t,this.rowCtrl=e;let n=document.createElement("div");n.setAttribute("comp-id",`${this.getCompId()}`),this.setInitialStyle(n,i),this.setTemplateFromElement(n);let o=this.getGui(),r=o.style;this.domOrder=this.rowCtrl.getDomOrder(),qi(o,"row");let a={setDomOrder:s=>this.domOrder=s,setCellCtrls:s=>this.setCellCtrls(s),showFullWidth:s=>this.showFullWidth(s),getFullWidthCellRenderer:()=>this.fullWidthCellRenderer,addOrRemoveCssClass:(s,l)=>this.addOrRemoveCssClass(s,l),setUserStyles:s=>J_(o,s),setTop:s=>r.top=s,setTransform:s=>r.transform=s,setRowIndex:s=>o.setAttribute("row-index",s),setRowId:s=>o.setAttribute("row-id",s),setRowBusinessKey:s=>o.setAttribute("row-business-key",s),refreshFullWidth:s=>this.fullWidthCellRenderer?.refresh?.(s())??!1};e.setComp(a,this.getGui(),i,void 0),this.addDestroyFunc(()=>{e.unsetComp(i)})}setInitialStyle(e,t){let i=this.rowCtrl.getInitialTransform(t);if(i)e.style.setProperty("transform",i);else{let n=this.rowCtrl.getInitialRowTop(t);n&&e.style.setProperty("top",n)}}showFullWidth(e){let t=n=>{if(this.isAlive()){let o=n.getGui();this.getGui().appendChild(o),this.rowCtrl.setupDetailRowAutoHeight(o),this.setFullWidthRowComp(n)}else this.beans.context.destroyBean(n)},i=e.newAgStackInstance();i?.then(t)}setCellCtrls(e){let t=Object.assign({},this.cellComps);e.forEach(n=>{let o=n.instanceId;this.cellComps[o]==null?this.newCellComp(n):t[o]=null});let i=qr(t).filter(n=>n!=null);this.destroyCells(i),this.ensureDomOrder(e)}ensureDomOrder(e){if(!this.domOrder)return;let t=[];e.forEach(i=>{let n=this.cellComps[i.instanceId];n&&t.push(n.getGui())}),Q_(this.getGui(),t)}newCellComp(e){let t=new UO(this.beans,e,this.rowCtrl.isPrintLayout(),this.getGui(),this.rowCtrl.isEditing());this.cellComps[e.instanceId]=t,this.getGui().appendChild(t.getGui())}destroy(){super.destroy(),this.destroyAllCells()}destroyAllCells(){let e=qr(this.cellComps).filter(t=>t!=null);this.destroyCells(e)}setFullWidthRowComp(e){this.fullWidthCellRenderer&&Be("should not be setting fullWidthRowComponent twice"),this.fullWidthCellRenderer=e,this.addDestroyFunc(()=>{this.fullWidthCellRenderer=this.beans.context.destroyBean(this.fullWidthCellRenderer)})}destroyCells(e){e.forEach(t=>{if(!t)return;let i=t.getCtrl().instanceId;this.cellComps[i]===t&&(t.detach(),t.destroy(),this.cellComps[i]=null)})}};function WO(e){let t;return e.type==="center"?t=`<div class="${e.viewport}" data-ref="eViewport" role="presentation"> 609 <div class="${e.container}" data-ref="eContainer" role="rowgroup"></div> 610 </div>`:t=`<div class="${e.container}" data-ref="eContainer" role="rowgroup"></div>`,t}var $O=class extends Le{constructor(){super(),this.eViewport=le,this.eContainer=le,this.rowComps={},this.name=Le.elementGettingCreated.getAttribute("name"),this.options=Xa(this.name),this.setTemplate(WO(this.options))}wireBeans(e){this.beans=e}postConstruct(){let e={setHorizontalScroll:i=>
610this.eViewport.scrollLeft=i,setViewportHeight:i=>this.eViewport.style.height=i,setRowCtrls:({rowCtrls:i})=>this.setRowCtrls(i),setDomOrder:i=>{this.domOrder=i},setContainerWidth:i=>this.eContainer.style.width=i,setOffsetTop:i=>this.eContainer.style.transform=`translateY(${i})`};this.createManagedBean(new BO(this.name)).setComp(e,this.eContainer,this.eViewport)}destroy(){this.setRowCtrls([]),super.destroy(),this.lastPlacedElement=null}setRowCtrls(e){let{rowComps:t,beans:i,options:n}=this,o=B({},t);this.rowComps={},this.lastPlacedElement=null;let r=[];for(let a of e){let s=a.instanceId,l=o[s],c;if(l)c=l,delete o[s];else{if(!a.getRowNode().displayed)continue;c=new jO(a,i,n.type)}this.rowComps[s]=c,r.push([c,!l])}this.removeOldRows(Object.values(o)),this.addRowNodes(r)}addRowNodes(e){let{domOrder:t,eContainer:i}=this;for(let[n,o]of e){let r=n.getGui();t?this.ensureDomOrder(r):o&&i.appendChild(r)}}removeOldRows(e){let{eContainer:t}=this;for(let i of e)t.removeChild(i.getGui()),i.destroy()}ensureDomOrder(e){this.domOrder&&(K_(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)}},qO={selector:"AG-ROW-CONTAINER",component:$O};function Il(e){return e.map(t=>`<ag-row-container name="${t}"></ag-row-container>`).join("")}var YO=`<div class="ag-root ag-unselectable" role="treegrid"> 611 <ag-header-root></ag-header-root> 612 <div class="ag-floating-top" data-ref="eTop" role="presentation"> 613 ${Il(["topLeft","topCenter","topRight","topFullWidth"])} 614 </div> 615 <div class="ag-body" data-ref="eBody" role="presentation"> 616 <div class="ag-body-viewport" data-ref="eBodyViewport" role="presentation"> 617 ${Il(["left","center","right","fullWidth"])} 618 </div> 619 <ag-fake-vertical-scroll></ag-fake-vertical-scroll> 620 </div> 621 <div class="ag-sticky-top" data-ref="eStickyTop" role="presentation"> 622 ${Il(["stickyTopLeft","stickyTopCenter","stickyTopRight","stickyTopFullWidth"])} 623 </div> 624 <div class="ag-sticky-bottom" data-ref="eStickyBottom" role="presentation"> 625 ${Il(["stickyBottomLeft","stickyBottomCenter","stickyBottomRight","stickyBottomFullWidth"])} 626 </div> 627 <div class="ag-floating-bottom" data-ref="eBottom" role="presentation"> 628 ${Il(["bottomLeft","bottomCenter","bottomRight","bottomFullWidth"])} 629 </div> 630 <ag-fake-horizontal-scroll></ag-fake-horizontal-scroll> 631 <ag-overlay-wrapper></ag-overlay-wrapper> 632 </div>`,KO=class extends Le{constructor(){super(YO,[j4,$4,Y4,G4,qO]),this.eBodyViewport=le,this.eStickyTop=le,this.eStickyBottom=le,this.eTop=le,this.eBottom=le,this.eBody=le}wireBeans(e){this.resizeObserverService=e.resizeObserverService,this.rangeService=e.rangeService}postConstruct(){let e=(i,n)=>{let o=`${i}px`;n.style.minHeight=o,n.style.height=o},t={setRowAnimationCssOnBodyViewport:(i,n)=>this.setRowAnimationCssOnBodyViewport(i,n),setColumnCount:i=>UR(this.getGui(),i),setRowCount:i=>GR(this.getGui(),i),setTopHeight:i=>e(i,this.eTop),setBottomHeight:i=>e(i,this.eBottom),setTopDisplay:i=>this.eTop.style.display=i,setBottomDisplay:i=>this.eBottom.style.display=i,setStickyTopHeight:i=>this.eStickyTop.style.height=i,setStickyTopTop:i=>this.eStickyTop.style.top=i,setStickyTopWidth:i=>this.eStickyTop.style.width=i,setStickyBottomHeight:i=>{this.eStickyBottom.style.height=i,this.eStickyBottom.classList.toggle("ag-hidden",i==="0px")},setStickyBottomBottom:i=>this.eStickyBottom.style.bottom=i,setStickyBottomWidth:i=>this.eStickyBottom.style.width=i,setColumnMovingCss:(i,n)=>this.addOrRemoveCssClass(i,n),updateLayoutClasses:(i,n)=>{[this.eBodyViewport.classList,this.eBody.classList].forEach(r=>{r.toggle("ag-layout-auto-height",n.autoHeight),r.toggle("ag-layout-normal",n.normal),r.toggle("ag-layout-print",n.print)}),this.addOrRemoveCssClass("ag-layout-auto-height",n.autoHeight),this.addOrRemoveCssClass("ag-layout-normal",n.normal),this.addOrRemoveCssClass("ag-layout-print",n.print)},setAlwaysVerticalScrollClass:(i,n)=>this.eBodyViewport.classList.toggle(Hy,n),registerBodyViewportResizeListener:i=>{let n=this.resizeObserverService.observeResize(this.eBodyViewport,i);this.addDestroyFunc(()=>n())},setPinnedTopBottomOverflowY:i=>this.eTop.style.overflowY=this.eBottom.style.overflowY=i,setCellSelectableCss:(i,n)=>{[this.eTop,this.eBodyViewport,this.eBottom].forEach(o=>o.classList.toggle(i,n))},setBodyViewportWidth:i=>this.eBodyViewport.style.width=i};
632this.ctrl=this.createManagedBean(new GO),this.ctrl.setComp(t,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop,this.eStickyBottom),(this.rangeService&&Un(this.gos)||pm(this.gos))&&HR(this.getGui(),!0)}setRowAnimationCssOnBodyViewport(e,t){let i=this.eBodyViewport.classList;i.toggle("ag-row-animation",t),i.toggle("ag-row-no-animation",!t)}getFloatingTopBottom(){return[this.eTop,this.eBottom]}},QO={selector:"AG-GRID-BODY",component:KO},JO=class extends H{constructor(){super(...arguments),this.beanName="scrollVisibleService"}wireBeans(e){this.ctrlsService=e.ctrlsService,this.columnAnimationService=e.columnAnimationService}postConstruct(){this.getScrollbarWidth(),this.addManagedEventListeners({displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),displayedColumnsWidthChanged:this.onDisplayedColumnsWidthChanged.bind(this)})}onDisplayedColumnsChanged(){this.updateScrollVisible()}onDisplayedColumnsWidthChanged(){this.updateScrollVisible()}onCentreViewportResized(){this.updateScrollGap()}updateScrollVisible(){this.columnAnimationService.isActive()?this.columnAnimationService.executeLaterVMTurn(()=>{this.columnAnimationService.executeLaterVMTurn(()=>this.updateScrollVisibleImpl())}):this.updateScrollVisibleImpl()}updateScrollVisibleImpl(){let e=this.ctrlsService.get("center");if(!e||this.columnAnimationService.isActive())return;let t={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.isVerticalScrollShowing()};this.setScrollsVisible(t),this.updateScrollGap()}updateScrollGap(){let e=this.ctrlsService.get("center"),t=e.hasHorizontalScrollGap(),i=e.hasVerticalScrollGap();(this.horizontalScrollGap!==t||this.verticalScrollGap!==i)&&(this.horizontalScrollGap=t,this.verticalScrollGap=i,this.eventService.dispatchEvent({type:"scrollGapChanged"}))}setScrollsVisible(e){(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing)&&(this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing,this.eventService.dispatchEvent({type:"scrollVisibilityChanged"}))}isHorizontalScrollShowing(){return this.horizontalScrollShowing}isVerticalScrollShowing(){return this.verticalScrollShowing}hasHorizontalScrollGap(){return this.horizontalScrollGap}hasVerticalScrollGap(){return this.verticalScrollGap}getScrollbarWidth(){if(this.scrollbarWidth==null){let e=this.gos.get("scrollbarWidth"),i=typeof e=="number"&&e>=0?e:o5();i!=null&&(this.scrollbarWidth=i,this.eventService.dispatchEvent({type:"scrollbarWidthChanged"}))}return this.scrollbarWidth}},a_="__ag_grid_instance",Gy=class Uy extends H{constructor(){super(...arguments),this.beanName="mouseEventService",this.gridInstanceId=Uy.gridInstanceSequence.next()}wireBeans(t){this.ctrlsService=t.ctrlsService}stampTopLevelGridCompWithGridInstance(t){t[a_]=this.gridInstanceId}getRenderedCellForEvent(t){return qg(this.gos,t.target,Ur.DOM_DATA_KEY_CELL_CTRL)}isEventFromThisGrid(t){return this.isElementInThisGrid(t.target)}isElementInThisGrid(t){let i=t;for(;i;){let n=i[a_];if(K(n))return n===this.gridInstanceId;i=i.parentElement}return!1}getCellPositionForEvent(t){let i=this.getRenderedCellForEvent(t);return i?i.getCellPosition():null}getNormalisedPosition(t){let i=Bt(this.gos,"normal"),n=t,o,r;if(n.clientX!=null||n.clientY!=null?(o=n.clientX,r=n.clientY):(o=n.x,r=n.y),i){let a=this.ctrlsService.getGridBodyCtrl(),s=a.getScrollFeature().getVScrollPosition(),l=a.getScrollFeature().getHScrollPosition();o+=l.left,r+=s.top}return{x:o,y:r}}};Gy.gridInstanceSequence=new ls;var ZO=Gy,XO=class extends H{constructor(){super(),this.beanName="navigationService",this.onPageDown=jb(this.onPageDown,100),this.onPageUp=jb(this.onPageUp,100)}wireBeans(e){this.mouseEventService=e.mouseEventService,this.pageBoundsService=e.pageBoundsService,this.focusService=e.focusService,this.columnModel=e.columnModel,this.visibleColsService=e.visibleColsService,this.rowModel=e.rowModel,this.ctrlsService=e.ctrlsService,this.rowRenderer=e.rowRenderer,this.headerNavigationService=e.headerNavigationService,this.rowPositionUtils=e.rowPositionUtils,this.cellNavigationService=e.cellNavigationService,this.pinnedRowModel=e.pinnedRowModel,this.scrollVisibleService=e.scrollVisibleService,this.rangeService=e.rangeService}postConstruct(){this.ctrlsService.whenReady(this,e=>{this.gridBodyCon=e.gridBodyCtrl})}handlePageScrollingKey(e,t=!1){let i=e.key,n=e.altKey,o=e.ctrlKey||e.metaKey,r=!!this.rangeService&&e.shiftKey,a=this.mouseEventService.getCellPositionForEvent(e),s=!1;switch(i){case j.PAGE_HOME:case j.PAGE_END:!o&&!n&&(this.onHomeOrEndKey(i),s=!0);break;case j.LEFT:case j.RIGHT:case j.UP:case j.DOWN:if(!a)return!1;o&&!n&&!r&&(this.onCtrlUpDownLeftRight(i,a),s=!0);break;case j.PAGE_DOWN:case j.PAGE_UP:!o&&!n&&(s=this.handlePageUpDown(i,a,t));break}return s&&e.preventDefault(),s}handlePageUpDown(e,t,i){return i&&(t=this.focusService.getFocusedCell()),t?(e===j.PAGE_UP?this.onPageUp(t):this.onPageDown(t),!0):!1}navigateTo(e){let{scrollIndex:t,scrollType:i,scrollColumn:n,focusIndex:o,focusColumn:r}=e;
632K(n)&&!n.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(n),K(t)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(t,i),e.isAsync||this.gridBodyCon.getScrollFeature().ensureIndexVisible(o),this.focusService.setFocusedCell({rowIndex:o,column:r,rowPinned:null,forceBrowserFocus:!0}),this.rangeService?.setRangeToCell({rowIndex:o,rowPinned:null,column:r})}onPageDown(e){let i=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.getViewportHeight(),o=this.pageBoundsService.getPixelOffset(),r=i.top+n,a=this.rowModel.getRowIndexAtPixel(r+o);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,a):this.navigateToNextPage(e,a)}onPageUp(e){let i=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.pageBoundsService.getPixelOffset(),o=i.top,r=this.rowModel.getRowIndexAtPixel(o+n);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,r,!0):this.navigateToNextPage(e,r,!0)}navigateToNextPage(e,t,i=!1){let n=this.getViewportHeight(),o=this.pageBoundsService.getFirstRow(),r=this.pageBoundsService.getLastRow(),a=this.pageBoundsService.getPixelOffset(),s=this.rowModel.getRow(e.rowIndex),l=i?s?.rowHeight-n-a:n-a,c=s?.rowTop+l,h=this.rowModel.getRowIndexAtPixel(c+a);if(h===e.rowIndex){let f=i?-1:1;t=h=e.rowIndex+f}let m;i?(m="bottom",h<o&&(h=o),t<o&&(t=o)):(m="top",h>r&&(h=r),t>r&&(t=r)),this.isRowTallerThanView(h)&&(t=h,m="top"),this.navigateTo({scrollIndex:t,scrollType:m,scrollColumn:null,focusIndex:h,focusColumn:e.column})}navigateToNextPageWithAutoHeight(e,t,i=!1){this.navigateTo({scrollIndex:t,scrollType:i?"bottom":"top",scrollColumn:null,focusIndex:t,focusColumn:e.column}),setTimeout(()=>{let n=this.getNextFocusIndexForAutoHeight(e,i);this.navigateTo({scrollIndex:t,scrollType:i?"bottom":"top",scrollColumn:null,focusIndex:n,focusColumn:e.column,isAsync:!0})},50)}getNextFocusIndexForAutoHeight(e,t=!1){let i=t?-1:1,n=this.getViewportHeight(),o=this.pageBoundsService.getLastRow(),r=0,a=e.rowIndex;for(;a>=0&&a<=o;){let s=this.rowModel.getRow(a);if(s){let l=s.rowHeight??0;if(r+l>n)break;r+=l}a+=i}return Math.max(0,Math.min(a,o))}getViewportHeight(){let e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),t=this.scrollVisibleService.getScrollbarWidth(),i=e.bottom-e.top;return this.ctrlsService.get("center").isHorizontalScrollShowing()&&(i-=t),i}isRowTallerThanView(e){let t=this.rowModel.getRow(e);if(!t)return!1;let i=t.rowHeight;return typeof i!="number"?!1:i>this.getViewportHeight()}onCtrlUpDownLeftRight(e,t){let i=this.cellNavigationService.getNextCellToFocus(e,t,!0),{rowIndex:n}=i,o=i.column;this.navigateTo({scrollIndex:n,scrollType:null,scrollColumn:o,focusIndex:n,focusColumn:o})}onHomeOrEndKey(e){let t=e===j.PAGE_HOME,i=this.visibleColsService.getAllCols(),n=t?i[0]:Ae(i),o=t?this.pageBoundsService.getFirstRow():this.pageBoundsService.getLastRow();this.navigateTo({scrollIndex:o,scrollType:null,scrollColumn:n,focusIndex:o,focusColumn:n})}onTabKeyDown(e,t){let i=t.shiftKey,n=this.tabToNextCellCommon(e,i,t);if(n!==!1){n?t.preventDefault():n===null&&this.focusService.allowFocusForNextGridCoreContainer(i);return}if(i){let{rowIndex:o,rowPinned:r}=e.getRowPosition();(r?o===0:o===this.pageBoundsService.getFirstRow())&&(this.gos.get("headerHeight")===0||this.focusService.isHeaderFocusSuppressed()?this.focusService.focusNextGridCoreContainer(!0,!0):(t.preventDefault(),this.focusService.focusPreviousFromFirstCell(t)))}else e instanceof Ur&&e.focusCell(!0),(!i&&this.focusService.focusOverlay(!1)||this.focusService.focusNextGridCoreContainer(i))&&t.preventDefault()}tabToNextCell(e,t){let i=this.focusService.getFocusedCell();if(!i)return!1;let n=this.getCellByPosition(i);return!n&&(n=this.rowRenderer.getRowByPosition(i),!n||!n.isFullWidth())?!1:!!this.tabToNextCellCommon(n,e,t)}tabToNextCellCommon(e,t,i){let n=e.isEditing();if(!n&&e instanceof Ur){let a=e.getRowCtrl();a&&(n=a.isEditing())}let o;return n?this.gos.get("editType")==="fullRow"?o=this.moveToNextEditingRow(e,t,i):o=this.moveToNextEditingCell(e,t,i):o=this.moveToNext
632CellNotEditing(e,t),o===null?o:o||!!this.focusService.getFocusedHeader()}moveToNextEditingCell(e,t,i=null){let n=e.getCellPosition();e.getGui().focus(),e.stopEditing();let o=this.findNextCellToFocusOn(n,t,!0);return o===!1?null:o==null?!1:(o.startEditing(null,!0,i),o.focusCell(!1),!0)}moveToNextEditingRow(e,t,i=null){let n=e.getCellPosition(),o=this.findNextCellToFocusOn(n,t,!0);if(o===!1)return null;if(o==null)return!1;let r=o.getCellPosition(),a=this.isCellEditable(n),s=this.isCellEditable(r),l=r&&n.rowIndex===r.rowIndex&&n.rowPinned===r.rowPinned;return a&&e.setFocusOutOnEditor(),l||(e.getRowCtrl().stopEditing(),o.getRowCtrl().startRowEditing(void 0,void 0,i)),s?(o.setFocusInOnEditor(),o.focusCell()):o.focusCell(!0),!0}moveToNextCellNotEditing(e,t){let i=this.visibleColsService.getAllCols(),n;e instanceof jr?n=ye(B({},e.getRowPosition()),{column:t?i[0]:Ae(i)}):n=e.getCellPosition();let o=this.findNextCellToFocusOn(n,t,!1);if(o===!1)return null;if(o instanceof Ur)o.focusCell(!0);else if(o)return this.tryToFocusFullWidthRow(o.getRowPosition(),t);return K(o)}findNextCellToFocusOn(e,t,i){let n=e;for(;;){e!==n&&(e=n),t||(n=this.getLastCellOfColSpan(n)),n=this.cellNavigationService.getNextTabbedCell(n,t);let o=this.gos.getCallback("tabToNextCell");if(K(o)){let l=o({backwards:t,editing:i,previousCellPosition:e,nextCellPosition:n||null});if(l===!0||l===null)l===null&&$("Returning `null` from tabToNextCell is deprecated. Return `true` to stay on the current cell, or `false` to let the browser handle the tab behaviour."),n=e;else{if(l===!1)return!1;n={rowIndex:l.rowIndex,column:l.column,rowPinned:l.rowPinned}}}if(!n)return null;if(n.rowIndex<0){let s=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:s+n.rowIndex,column:n.column},fromCell:!0}),null}let r=this.gos.get("editType")==="fullRow";if(i&&!r&&!this.isCellEditable(n))continue;this.ensureCellVisible(n);let a=this.getCellByPosition(n);if(!a){let s=this.rowRenderer.getRowByPosition(n);if(!s||!s.isFullWidth()||i)continue;return s}if(!a.isSuppressNavigable())return this.rangeService?.setRangeToCell(n),a}}isCellEditable(e){let t=this.lookupRowNodeForCell(e);return t?e.column.isCellEditable(t):!1}getCellByPosition(e){let t=this.rowRenderer.getRowByPosition(e);return t?t.getCellCtrl(e.column):null}lookupRowNodeForCell(e){return e.rowPinned==="top"?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):e.rowPinned==="bottom"?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.rowModel.getRow(e.rowIndex)}navigateToNextCell(e,t,i,n){let o=i,r=!1;for(;o&&(o===i||!this.isValidNavigateCell(o));)this.gos.get("enableRtl")?t===j.LEFT&&(o=this.getLastCellOfColSpan(o)):t===j.RIGHT&&(o=this.getLastCellOfColSpan(o)),o=this.cellNavigationService.getNextCellToFocus(t,o),r=Fe(o);if(r&&e&&e.key===j.UP&&(o={rowIndex:-1,rowPinned:null,column:i.column}),n){let s=this.gos.getCallback("navigateToNextCell");if(K(s)){let c=s({key:t,previousCellPosition:i,nextCellPosition:o||null,event:e});K(c)?o={rowPinned:c.rowPinned,rowIndex:c.rowIndex,column:c.column}:o=null}}if(!o)return;if(o.rowIndex<0){let s=this.headerNavigationService.getHeaderRowCount();this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:s+o.rowIndex,column:i.column},event:e||void 0,fromCell:!0});return}let a=this.getNormalisedPosition(o);a?this.focusPosition(a):this.tryToFocusFullWidthRow(o)}getNormalisedPosition(e){this.ensureCellVisible(e);let t=this.getCellByPosition(e);return t?(e=t.getCellPosition(),this.ensureCellVisible(e),e):null}tryToFocusFullWidthRow(e,t){let i=this.visibleColsService.getAllCols(),n=this.rowRenderer.getRowByPosition(e);if(!n||!n.isFullWidth())return!1;let o=this.focusService.getFocusedCell(),r={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(t?Ae(i):i[0])};this.focusPosition(r);let a=t??(o!=null&&this.rowPositionUtils.before(r,o));return this.eventService.dispatchEvent({type:"fullWidthRowFocused",rowIndex:r.rowIndex,rowPinned:r.rowPinned,column:r.column,isFullWidthCell:!0,fromBelow:a}),!0}focusPosition(e){this.focusService.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0}),this.rangeService?.setRangeToCell(e)}isValidNavigateCell(e){return!!this.rowPositionUtils.getRowNode(e)}getLastCellOfColSpan(e){let t=this.getCellByPosition(e);if(!t)return e;
632let i=t.getColSpanningList();return i.length===1?e:{rowIndex:e.rowIndex,column:Ae(i),rowPinned:e.rowPinned}}ensureCellVisible(e){let t=Mu(this.gos),i=this.rowModel.getRow(e.rowIndex);!(t&&i?.sticky)&&Fe(e.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(e.column)}},eA=class extends H{constructor(){super(...arguments),this.beanName="horizontalResizeService"}wireBeans(e){this.dragService=e.dragService,this.ctrlsService=e.ctrlsService}addResizeBar(e){let t={dragStartPixels:e.dragStartPixels||0,eElement:e.eResizeBar,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this,e),onDragging:this.onDragging.bind(this,e),onDragCancel:this.onDragStop.bind(this,e),includeTouch:!0,stopPropagationForTouch:!0};return this.dragService.addDragSource(t),()=>this.dragService.removeDragSource(t)}onDragStart(e,t){this.dragStartX=t.clientX,this.setResizeIcons();let i=t instanceof MouseEvent&&t.shiftKey===!0;e.onResizeStart(i)}setResizeIcons(){let e=this.ctrlsService.get("gridCtrl");e.setResizeCursor(!0),e.disableUserSelect(!0)}onDragStop(e){e.onResizeEnd(this.resizeAmount),this.resetIcons()}resetIcons(){let e=this.ctrlsService.get("gridCtrl");e.setResizeCursor(!1),e.disableUserSelect(!1)}onDragging(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)}},tA=class extends H{constructor(){super(...arguments),this.beanName="filterMenuFactory"}wireBeans(e){this.popupService=e.popupService,this.focusService=e.focusService,this.ctrlsService=e.ctrlsService,this.menuService=e.menuService}hideActiveMenu(){this.hidePopup&&this.hidePopup()}showMenuAfterMouseEvent(e,t,i){this.showPopup(e,n=>{this.popupService.positionPopupUnderMouseEvent({column:e,type:i,mouseEvent:t,ePopup:n})},i,t.target,this.menuService.isLegacyMenuEnabled())}showMenuAfterButtonClick(e,t,i){let n=-1,o="left",r=this.menuService.isLegacyMenuEnabled();!r&&this.gos.get("enableRtl")&&(n=1,o="right");let a=r?void 0:4*n,s=r?void 0:4;this.showPopup(e,l=>{this.popupService.positionPopupByComponent({type:i,eventSource:t,ePopup:l,nudgeX:a,nudgeY:s,alignSide:o,keepWithinBounds:!0,position:"under",column:e})},i,t,r)}showPopup(e,t,i,n,o){let r=e?this.createBean(new sF(e,"COLUMN_MENU")):void 0;if(this.activeMenu=r,!r?.hasFilter()||!e)throw new Error("AG Grid - unable to show popup filter, filter instantiation failed");let a=document.createElement("div");qi(a,"presentation"),a.classList.add("ag-menu"),o||a.classList.add("ag-filter-menu"),[this.tabListener]=this.addManagedElementListeners(a,{keydown:_=>this.trapFocusWithin(_,a)}),a.appendChild(r?.getGui());let s,l=()=>r?.afterGuiDetached(),c=this.menuService.isColumnMenuAnchoringEnabled()?n??this.ctrlsService.getGridBodyCtrl().getGui():void 0,h=_=>{e.setMenuVisible(!1,"contextMenu");let S=_ instanceof KeyboardEvent;if(this.tabListener&&(this.tabListener=this.tabListener()),S&&n&&Mn(n)){let M=this.focusService.findTabbableParent(n);M&&M.focus()}l(),this.destroyBean(this.activeMenu),this.dispatchVisibleChangedEvent(!1,i,e)},m=this.localeService.getLocaleTextFunc(),f=o&&i!=="columnFilter"?m("ariaLabelColumnMenu","Column Menu"):m("ariaLabelColumnFilter","Column Filter"),b=this.popupService.addPopup({modal:!0,eChild:a,closeOnEsc:!0,closedCallback:h,positionCallback:()=>t(a),anchorToElement:c,ariaLabel:f});b&&(this.hidePopup=s=b.hideFunc),r.afterInit().then(()=>{t(a),r.afterGuiAttached({container:i,hidePopup:s})}),e.setMenuVisible(!0,"contextMenu"),this.dispatchVisibleChangedEvent(!0,i,e)}trapFocusWithin(e,t){e.key!==j.TAB||e.defaultPrevented||this.focusService.findNextFocusableElement(t,!1,e.shiftKey)||(e.preventDefault(),this.focusService.focusInto(t,e.shiftKey))}dispatchVisibleChangedEvent(e,t,i){this.eventService.dispatchEvent({type:"columnMenuVisibleChanged",visible:e,switchingTab:!1,key:t,column:i??null,columnGroup:null})}isMenuEnabled(e){return e.isFilterAllowed()&&(e.getColDef().menuTabs??["filterMenuTab"]).includes("filterMenuTab")}showMenuAfterContextMenuEvent(){}destroy(){this.destroyBean(this.activeMenu),super.destroy()}},iA=class extends H{constructor(){super(...arguments),this.beanName="resizeObserverService"}observeResize(e,t){let n=__(this.gos).ResizeObserver,o=n?new n(t):null;return o?.observe(e),()=>o?.disconnect()}},nA=class extends H{constructor(){super(...arguments),this.beanName="animationFrameService",this.createTasksP1={list:[],sorted:!1},this.createTasksP2={list:[],sorted:!1},this.destroyTasks=[],this.ticking=!1,this.scrollGoingDown=!0,this.lastPage=0,this.lastScrollTop=0,this.taskCount=0,this.cancelledTasks=new Set}wireBeans(e){this.ctrlsService=e.ctrlsService,this.paginationService=e.paginationService}setScrollTop(e){let t=this.gos.get("pagination");if(this.scrollGoingDown=e>=this.lastScrollTop,t&&e===0){let i=this.paginationService?.getCurrentPage()??0;i!==this.lastPage&&(this.lastPage=i,this.scrollGoingDown=!0)}this.lastScrollTop=e}postConstruct(){this.useAnimationFrame=!this.gos.get("suppressAnimationFrame")}isOn(){return this.useAnimationFrame}verifyAnimationFrameOn(e){this.useAnimationFrame===!1&&$(`AnimationFrameService.${e} called but animation frames are off`)}createTask(e,t,i){this.verifyAnimationFrameOn(i);let n={task:e,index:t,createOrder:++this.taskCount};this.addTaskToList(this[i],n),this.schedule()}cancelTask(e){this.cancelledTasks.add(e)}addTaskToList(e,t){e.list.push(t),e.sorted=!1}sortTaskList(e){if(e.sorted)return;let t=this.scrollGoingDown?1:-1;e.list.sort((i,n)=>i.index!==n.index?t*(n.index-i.index):n.createOrder-i.createOrder),e.sorted=!0}
632addDestroyTask(e){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(e),this.schedule()}executeFrame(e){this.verifyAnimationFrameOn("executeFrame");let t=this.createTasksP1,i=t.list,n=this.createTasksP2,o=n.list,r=this.destroyTasks,a=new Date().getTime(),s=new Date().getTime()-a,l=e<=0,c=this.ctrlsService.getGridBodyCtrl();for(;l||s<e;){if(!c.getScrollFeature().scrollGridIfNeeded()){let m;if(i.length)this.sortTaskList(t),m=i.pop().task;else if(o.length)this.sortTaskList(n),m=o.pop().task;else if(r.length)m=r.pop();else{this.cancelledTasks.clear();break}this.cancelledTasks.has(m)||m()}s=new Date().getTime()-a}i.length||o.length||r.length?this.requestFrame():this.stopTicking()}stopTicking(){this.ticking=!1}flushAllFrames(){this.useAnimationFrame&&this.executeFrame(-1)}schedule(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))}requestFrame(){let e=this.executeFrame.bind(this,60);this.requestAnimationFrame(e)}requestAnimationFrame(e){let t=__(this.gos);t.requestAnimationFrame?t.requestAnimationFrame(e):t.webkitRequestAnimationFrame?t.webkitRequestAnimationFrame(e):t.setTimeout(e,0)}isQueueEmpty(){return!this.ticking}debounce(e){let t=!1;return()=>{if(!this.isOn()){window.setTimeout(e,0);return}t||(t=!0,this.addDestroyTask(()=>{t=!1,e()}))}}};var oA=class extends H{constructor(){super(...arguments),this.beanName="expansionService"}wireBeans(e){this.rowModel=e.rowModel}postConstruct(){this.isClientSideRowModel=at(this.gos)}expandRows(e){if(!this.isClientSideRowModel)return;let t=new Set(e);this.rowModel.forEachNode(i=>{i.id&&t.has(i.id)&&(i.expanded=!0)}),this.onGroupExpandedOrCollapsed()}getExpandedRows(){let e=[];return this.rowModel.forEachNode(({expanded:t,id:i})=>{t&&i&&e.push(i)}),e}expandAll(e){this.isClientSideRowModel&&this.rowModel.expandOrCollapseAll(e)}setRowNodeExpanded(e,t,i,n){e&&(i&&e.parent&&e.parent.level!==-1&&this.setRowNodeExpanded(e.parent,t,i,n),e.setExpanded(t,void 0,n))}onGroupExpandedOrCollapsed(){this.isClientSideRowModel&&this.rowModel.refreshModel({step:"map"})}},rA=class extends H{constructor(){super(...arguments),this.beanName="menuService"}wireBeans(e){this.valueService=e.valueService,this.filterMenuFactory=e.filterMenuFactory,this.ctrlsService=e.ctrlsService,this.animationFrameService=e.animationFrameService,this.filterManager=e.filterManager,this.rowRenderer=e.rowRenderer,this.columnChooserFactory=e.columnChooserFactory,this.contextMenuFactory=e.contextMenuFactory,this.enterpriseMenuFactory=e.enterpriseMenuFactory}postConstruct(){this.activeMenuFactory=this.enterpriseMenuFactory??this.filterMenuFactory}showColumnMenu(e){this.showColumnMenuCommon(this.activeMenuFactory,e,"columnMenu")}showFilterMenu(e){let t=this.enterpriseMenuFactory&&this.isLegacyMenuEnabled()?this.enterpriseMenuFactory:this.filterMenuFactory;this.showColumnMenuCommon(t,e,e.containerType,!0)}showHeaderContextMenu(e,t,i){this.activeMenuFactory.showMenuAfterContextMenuEvent(e,t,i)}getContextMenuPosition(e,t){let i=this.getRowCtrl(e),n=this.getCellGui(i,t);if(!n)return i?{x:0,y:i.getRowYPosition()}:{x:0,y:0};let o=n.getBoundingClientRect();return{x:o.x+o.width/2,y:o.y+o.height/2}}showContextMenu(e){let t=e.rowNode,i=e.column,{anchorToElement:n,value:o}=e;t&&i&&o==null&&(o=this.valueService.getValueForDisplay(i,t)),n==null&&(n=this.getContextMenuAnchorElement(t,i)),this.contextMenuFactory?.onContextMenu(e.mouseEvent??null,e.touchEvent??null,t??null,i??null,o,n)}showColumnChooser(e){this.columnChooserFactory?.showColumnChooser(e)}hidePopupMenu(){this.contextMenuFactory?.hideActiveMenu(),this.activeMenuFactory.hideActiveMenu()}hideColumnChooser(){this.columnChooserFactory?.hideActiveColumnChooser()}isColumnMenuInHeaderEnabled(e){let{suppressMenu:t,suppressHeaderMenuButton:i}=e.getColDef();return!(i??t)&&this.activeMenuFactory.isMenuEnabled(e)&&(this.isLegacyMenuEnabled()||!!this.enterpriseMenuFactory)}isFilterMenuInHeaderEnabled(e){return!e.getColDef().suppressHeaderFilterButton&&!!this.filterManager?.isFilterAllowed(e)}isHeaderContextMenuEnabled(e){return!(e&&or(e)?e.getColDef():e?.getColGroupDef())?.suppressHeaderContextMenu&&this.getColumnMenuType()==="new"}isHeaderMenuButtonAlwaysShowEnabled(){return this.isSuppressMenuHide()}isHeaderMenuButtonEnabled(){let e=!this.isSuppressMenuHide();return!(ar()&&e)}isHeaderFilterButtonEnabled(e){return this.isFilterMenuInHeaderEnabled(e)&&!this.isLegacyMenuEnabled()&&!this.isFloatingFilterButtonDisplayed(e)}
632isFilterMenuItemEnabled(e){return!!this.filterManager?.isFilterAllowed(e)&&!this.isLegacyMenuEnabled()&&!this.isFilterMenuInHeaderEnabled(e)&&!this.isFloatingFilterButtonDisplayed(e)}isColumnMenuAnchoringEnabled(){return!this.isLegacyMenuEnabled()}areAdditionalColumnMenuItemsEnabled(){return this.getColumnMenuType()==="new"}isLegacyMenuEnabled(){return this.getColumnMenuType()==="legacy"}isFloatingFilterButtonEnabled(e){let t=e.getColDef(),i=t.floatingFilterComponentParams?.suppressFilterButton;return i!=null&&$("As of v31.1, 'colDef.floatingFilterComponentParams.suppressFilterButton' is deprecated. Use 'colDef.suppressFloatingFilterButton' instead."),t.suppressFloatingFilterButton==null?!i:!t.suppressFloatingFilterButton}getColumnMenuType(){return this.gos.get("columnMenu")}isFloatingFilterButtonDisplayed(e){return!!e.getColDef().floatingFilter&&this.isFloatingFilterButtonEnabled(e)}isSuppressMenuHide(){let e=this.gos.get("suppressMenuHide");return this.isLegacyMenuEnabled()?this.gos.exists("suppressMenuHide")?e:!1:e}showColumnMenuCommon(e,t,i,n){let{positionBy:o}=t,r=t.column;if(o==="button"){let{buttonElement:a}=t;e.showMenuAfterButtonClick(r,a,i,n)}else if(o==="mouse"){let{mouseEvent:a}=t;e.showMenuAfterMouseEvent(r,a,i,n)}else r&&(this.ctrlsService.getGridBodyCtrl().getScrollFeature().ensureColumnVisible(r,"auto"),this.animationFrameService.requestAnimationFrame(()=>{let a=this.ctrlsService.getHeaderRowContainerCtrl(r.getPinned())?.getHeaderCtrlForColumn(r);a&&e.showMenuAfterButtonClick(r,a.getAnchorElementForMenu(n),i,!0)}))}getRowCtrl(e){let{rowIndex:t,rowPinned:i}=e||{};if(t!=null)return this.rowRenderer.getRowByPosition({rowIndex:t,rowPinned:i})||void 0}getCellGui(e,t){return!e||!t?void 0:e.getCellCtrl(t)?.getGui()||void 0}getContextMenuAnchorElement(e,t){let i=this.ctrlsService.getGridBodyCtrl().getGridBodyElement(),n=this.getRowCtrl(e);if(!n)return i;let o=this.getCellGui(n,t);return o||(n.isFullWidth()?n.getFullWidthElement():i)}},aA=class extends Br{constructor(e){super(e,"ag-text-area",null,"textarea")}setValue(e,t){let i=super.setValue(e,t);return this.eInput.value=e,i}setCols(e){return this.eInput.cols=e,this}setRows(e){return this.eInput.rows=e,this}},sA={selector:"AG-INPUT-TEXT-AREA",component:aA},lA=class extends ps{constructor(){super(`<div class="ag-large-text"> 633 <ag-input-text-area data-ref="eTextArea" class="ag-large-text-input"></ag-input-text-area> 634 </div>`,[sA]),this.eTextArea=le}init(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.eTextArea.setMaxLength(e.maxLength||200).setCols(e.cols||60).setRows(e.rows||10),K(e.value,!0)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.activateTabIndex()}onKeyDown(e){let t=e.key;(t===j.LEFT||t===j.UP||t===j.RIGHT||t===j.DOWN||e.shiftKey&&t===j.ENTER)&&e.stopPropagation()}afterGuiAttached(){let e=this.localeService.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()}getValue(){let e=this.eTextArea.getValue();return!K(e)&&!K(this.params.value)?this.params.value:this.params.parseValue(e)}},cA=class extends ps{constructor(e){super('<div class="ag-popup-editor" tabindex="-1"/>'),this.params=e}postConstruct(){Wr(this.gos,this.getGui(),"popupEditorWrapper",!0),this.addKeyDownListener()}addKeyDownListener(){let e=this.getGui(),t=this.params,i=n=>{nm(this.gos,n,t.node,t.column,!0)||t.onKeyDown(n)};this.addManagedElementListeners(e,{keydown:i})}},dA=class extends ps{constructor(){super(`<div class="ag-cell-edit-wrapper"> 635 <ag-select class="ag-cell-editor" data-ref="eSelect"></ag-select> 636 </div>`,[mF]),this.eSelect=le,this.startedByEnter=!1}wireBeans(e){this.valueService=e.valueService}init(e){this.focusAfterAttached=e.cellStartedEdit;let{eSelect:t,valueService:i,gos:n}=this,{values:o,value:r,eventKey:a}=e;if(Fe(o)){$("no values found for select cellEditor");return}this.startedByEnter=a!=null?a===j.ENTER:!1;let s=!1;o.forEach(m=>{let f={value:m},b=i.formatValue(e.column,null,m),_=b!=null;f.text=_?b:m,t.addOption(f),s=s||r===m}),s?t.setValue(e.value,!0):e.values.length&&t.setValue(e.values[0],!0);let{valueListGap:l,valueListMaxWidth:c,valueListMaxHeight:h}=e;l!=null&&t.setPickerGap(l),h!=null&&t.setPickerMaxHeight(h),c!=null&&t.setPickerMaxWidth(c),n.get("editType")!=="fullRow"&&this.addManagedListeners(this.eSelect,{selectedItem:()=>e.stopEditing()})}afterGuiAttached(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&setTimeout(()=>{this.isAlive()&&this.eSelect.showPicker()})}focusIn(){this.eSelect.getFocusableElement().focus()}getValue(){return this.eSelect.getValue()}isPopup(){return!1}},Ou=class extends ps{constructor(e){super(` 637 <div class="ag-cell-edit-wrapper"> 638 ${e.getTemplate()} 639 </div>`,e.getAgComponents()),this.cellEditorInput=e,this.eInput=le}init(e){this.params=e;
vendor: 8,710 bytes, lines 639-642
639let{cellStartedEdit:t,eventKey:i,suppressPreventDefault:n}=e,o=this.eInput;this.cellEditorInput.init(o,e);let r,a=!0;t?(this.focusAfterAttached=!0,i===j.BACKSPACE||i===j.DELETE?r="":i&&i.length===1?n?a=!1:r=i:(r=this.cellEditorInput.getStartValue(),i!==j.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,r=this.cellEditorInput.getStartValue()),a&&r!=null&&o.setStartValue(r),this.addManagedElementListeners(o.getGui(),{keydown:s=>{let{key:l}=s;(l===j.PAGE_UP||l===j.PAGE_DOWN)&&s.preventDefault()}})}afterGuiAttached(){let e=this.localeService.getLocaleTextFunc(),t=this.eInput;if(t.setInputAriaLabel(e("ariaInputEditor","Input Editor")),!this.focusAfterAttached)return;So()||t.getFocusableElement().focus();let i=t.getInputElement();this.highlightAllOnFocus?i.select():this.cellEditorInput.setCaret?.()}focusIn(){let e=this.eInput,t=e.getFocusableElement(),i=e.getInputElement();t.focus(),i.select()}getValue(){return this.cellEditorInput.getValue()}isPopup(){return!1}},uA=class{getTemplate(){return'<ag-input-text-field class="ag-cell-editor" data-ref="eInput"></ag-input-text-field>'}getAgComponents(){return[Pu]}init(e,t){this.eInput=e,this.params=t,t.maxLength!=null&&e.setMaxLength(t.maxLength)}getValue(){let e=this.eInput.getValue();return!K(e)&&!K(this.params.value)?this.params.value:this.params.parseValue(e)}getStartValue(){return this.params.useFormatter||this.params.column.getColDef().refData?this.params.formatValue(this.params.value):this.params.value}setCaret(){let e=this.eInput.getValue(),t=K(e)&&e.length||0;t&&this.eInput.getInputElement().setSelectionRange(t,t)}},jy=class extends Ou{constructor(){super(new uA)}},pA=class{getTemplate(){return'<ag-input-number-field class="ag-cell-editor" data-ref="eInput"></ag-input-number-field>'}getAgComponents(){return[kF]}init(e,t){this.eInput=e,this.params=t,t.max!=null&&e.setMax(t.max),t.min!=null&&e.setMin(t.min),t.precision!=null&&e.setPrecision(t.precision),t.step!=null&&e.setStep(t.step);let i=e.getInputElement();t.preventStepping?e.addManagedElementListeners(i,{keydown:this.preventStepping}):t.showStepperButtons&&i.classList.add("ag-number-field-input-stepper")}preventStepping(e){(e.key===j.UP||e.key===j.DOWN)&&e.preventDefault()}getValue(){let e=this.eInput.getValue();if(!K(e)&&!K(this.params.value))return this.params.value;let t=this.params.parseValue(e);if(t==null)return t;if(typeof t=="string"){if(t==="")return null;t=Number(t)}return isNaN(t)?null:t}getStartValue(){return this.params.value}setCaret(){So()&&this.eInput.getInputElement().focus({preventScroll:!0})}},hA=class extends Ou{constructor(){super(new pA)}},gA=class extends Qr{constructor(e){super(e,"ag-date-field","date")}postConstruct(){super.postConstruct();let e=So();this.addManagedListeners(this.eInput,{wheel:this.onWheel.bind(this),mousedown:()=>{this.isDisabled()||e||this.eInput.focus()}}),this.eInput.step="any"}onWheel(e){nt(this.gos)===this.eInput&&e.preventDefault()}setMin(e){let t=e instanceof Date?pn(e??null,!1)??void 0:e;return this.min===t?this:(this.min=t,un(this.eInput,"min",t),this)}setMax(e){let t=e instanceof Date?pn(e??null,!1)??void 0:e;return this.max===t?this:(this.max=t,un(this.eInput,"max",t),this)}setStep(e){return this.step===e?this:(this.step=e,un(this.eInput,"step",e),this)}getDate(){if(this.eInput.validity.valid)return Fi(this.getValue())??void 0}setDate(e,t){this.setValue(pn(e??null,!1),t)}},Wy={selector:"AG-INPUT-DATE-FIELD",component:gA},mA=class{getTemplate(){return'<ag-input-date-field class="ag-cell-editor" data-ref="eInput"></ag-input-date-field>'}getAgComponents(){return[Wy]}init(e,t){this.eInput=e,this.params=t,t.min!=null&&e.setMin(t.min),t.max!=null&&e.setMax(t.max),t.step!=null&&e.setStep(t.step)}getValue(){let e=this.eInput.getDate();return!K(e)&&!K(this.params.value)?this.params.value:e??null}getStartValue(){let{value:e}=this.params;if(e instanceof Date)return pn(e,!1)}},fA=class extends Ou{constructor(){super(new mA)}},vA=class{constructor(e){this.getDataTypeService=e}getTemplate(){return'<ag-input-date-field class="ag-cell-editor" data-ref="eInput"></ag-input-date-field>'}getAgComponents(){return[Wy]}init(e,t){this.eInput=e,this.params=t,t.min!=null&&e.setMin(t.min),t.max!=null&&e.setMax(t.max),t.step!=null&&e.setStep(t.step)}getValue(){let e=this.formatDate(this.eInput.getDate());return!K(e)&&!K(this.params.value)?this.params.value:this.params.parseValue(e??"")}getStartValue(){return pn(this.parseDate(this.params.value??void 0)??null,!1)}parseDate(e){let t=this.getDataTypeService();return t?t.getDateParserFunction(this.params.column)(e):Fi(e)??void 0}formatDate(e){let t=this.getDataTypeService();return t?t.getDateFormatterFunction(this.params.column)(e):pn(e??null,!1)??void 0}},CA=class extends Ou{wireBeans(e){this.dataTypeService=e.dataTypeService}constructor(){super(new vA(()=>this.dataTypeService))}},bA=class extends ps{constructor(){super(` 640 <div class="ag-cell-wrapper ag-cell-edit-wrapper ag-checkbox-edit"> 641 <ag-checkbox role="presentation" data-ref="eCheckbox"></ag-checkbox> 642 </div>`,[km]),this.eCheckbox=le}init(e){this.params=e;let t=e.value??void 0;this.eCheckbox.setValue(t),this.eCheckbox.getInputElement().setAttribute("tabindex","-1"),this.setAriaLabel(t),this.addManagedListeners(this.eCheckbox,{fieldValueChanged:n=>this.setAriaLabel(n.selected)})}getValue(){return this.eCheckbox.getValue()}focusIn(){this.eCheckbox.getFocusableElement().focus()}afterGuiAttached(){this.params.cellStartedEdit&&this.focusIn()}isPopup(){return!1}setAriaLabel(e){let t=this.localeService.getLocaleTextFunc(),i=vm(t,e),n=t("ariaToggleCellValue","Press SPACE to toggle cell value");this.eCheckbox.setInputAriaLabel(`${n} (${i})`)}},Rl=class{constructor(e){this.cellValueChanges=e}},Bg=class extends Rl{constructor(e,t,i,n){super(e),this.initialRange=t,this.finalRange=i,this.ranges=n}},_A=10,s_=class{constructor(e){this.actionStack=[],this.maxStackSize=e||_A,this.actionStack=new Array(this.maxStackSize)}pop(){return this.actionStack.pop()}push(e){e.cellValueChanges&&e.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(e))}clear(){this.actionStack=[]}getCurrentStackSize(){return this.actionStack.length}},yA=class extends H{constructor(){super(...arguments),this.beanName="undoRedoService",this.cellValueChanges=[],this.activeCellEdit=null,this.activeRowEdit=null,this.isPasting=!1,this.isRangeInAction=!1,this.onCellValueChanged=e=>{let t={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned},i=this.activeCellEdit!==null&&this.cellPositionUtils.equals(this.activeCellEdit,t),n=this.activeRowEdit!==null&&this.rowPositionUtils.sameRow(this.activeRowEdit,t);if(!(i||n||this.isPasting||this.isRangeInAction))return;let{rowPinned:r,rowIndex:a,column:s,oldValue:l,value:c}=e,h={rowPinned:r,rowIndex:a,columnId:s.getColId(),newValue:c,oldValue:l};this.cellValueChanges.push(h)},this.clearStacks=()=>{this.undoStack.clear(),this.redoStack.clear()}}wireBeans(e){this.focusService=e.focusService,this.ctrlsService=e.ctrlsService,this.cellPositionUtils=e.cellPositionUtils,this.rowPositionUtils=e.rowPositionUtils,this.columnModel=e.columnModel,this.rangeService=e.rangeService}postConstruct(){if(!this.gos.get("undoRedoCellEditing"))return;let e=this.gos.get("undoRedoCellEditingLimit");if(e<=0)return;this.undoStack=new s_(e),this.redoStack=new s_(e),this.addListeners();let t=this.clearStacks.bind(this);this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this),modelUpdated:i=>{i.keepUndoRedoStack||this.clearStacks()},columnPivotModeChanged:t,newColumnsLoaded:t,columnGroupOpened:t,columnRowGroupChanged:t,columnMoved:t,columnPinned:t,columnVisible:t,rowDragEnd:t}),this.ctrlsService.whenReady(this,i=>{this.gridBodyCtrl=i.gridBodyCtrl})}getCurrentUndoStackSize(){return this.undoStack?this.undoStack.getCurrentStackSize():0}getCurrentRedoStackSize(){return this.redoStack?this.redoStack.getCurrentStackSize():0}undo(e){this.eventService.dispatchEvent({type:"undoStarted",source:e});let t=this.undoRedo(this.undoStack,this.redoStack,"initialRange","oldValue","undo");this.eventService.dispatchEvent({type:"undoEnded",source:e,operationPerformed:t})}redo(e){this.eventService.dispatchEvent({type:"redoStarted",source:e});let t=this.undoRedo(this.redoStack,this.undoStack,"finalRange","newValue","redo");this.eventService.dispatchEvent({type:"redoEnded",source:e,operationPerformed:t})}undoRedo(e,t,i,n,o){if(!e)return!1;let r=e.pop();return!r||!r.cellValueChanges?!1:(this.processAction(r,a=>a[n],o),r instanceof Bg?this.processRange(this.rangeService,r.ranges||[r[i]]):this.processCell(r.cellValueChanges),t.push(r),!0)}
642processAction(e,t,i){e.cellValueChanges.forEach(n=>{let{rowIndex:o,rowPinned:r,columnId:a}=n,s={rowIndex:o,rowPinned:r},l=this.rowPositionUtils.getRowNode(s);l.displayed&&l.setDataValue(a,t(n),i)})}processRange(e,t){let i;e.removeAllCellRanges(!0),t.forEach((n,o)=>{if(!n)return;let r=n.startRow,a=n.endRow;o===t.length-1&&(i={rowPinned:r.rowPinned,rowIndex:r.rowIndex,columnId:n.startColumn.getColId()},this.setLastFocusedCell(i));let s={rowStartIndex:r.rowIndex,rowStartPinned:r.rowPinned,rowEndIndex:a.rowIndex,rowEndPinned:a.rowPinned,columnStart:n.startColumn,columns:n.columns};e.addCellRange(s)})}processCell(e){let t=e[0],{rowIndex:i,rowPinned:n}=t,o={rowIndex:i,rowPinned:n},r=this.rowPositionUtils.getRowNode(o),a={rowPinned:t.rowPinned,rowIndex:r.rowIndex,columnId:t.columnId};this.setLastFocusedCell(a,this.rangeService)}setLastFocusedCell(e,t){let{rowIndex:i,columnId:n,rowPinned:o}=e,r=this.gridBodyCtrl.getScrollFeature(),a=this.columnModel.getCol(n);if(!a)return;r.ensureIndexVisible(i),r.ensureColumnVisible(a);let s={rowIndex:i,column:a,rowPinned:o};this.focusService.setFocusedCell(ye(B({},s),{forceBrowserFocus:!0})),t?.setRangeToCell(s)}addListeners(){this.addManagedEventListeners({rowEditingStarted:e=>{this.activeRowEdit={rowIndex:e.rowIndex,rowPinned:e.rowPinned}},rowEditingStopped:()=>{let e=new Rl(this.cellValueChanges);this.pushActionsToUndoStack(e),this.activeRowEdit=null},cellEditingStarted:e=>{this.activeCellEdit={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned}},cellEditingStopped:e=>{if(this.activeCellEdit=null,e.valueChanged&&!this.activeRowEdit&&!this.isPasting&&!this.isRangeInAction){let i=new Rl(this.cellValueChanges);this.pushActionsToUndoStack(i)}},pasteStart:()=>{this.isPasting=!0},pasteEnd:()=>{let e=new Rl(this.cellValueChanges);this.pushActionsToUndoStack(e),this.isPasting=!1},fillStart:()=>{this.isRangeInAction=!0},fillEnd:e=>{let t=new Bg(this.cellValueChanges,e.initialRange,e.finalRange);this.pushActionsToUndoStack(t),this.isRangeInAction=!1},keyShortcutChangedCellStart:()=>{this.isRangeInAction=!0},keyShortcutChangedCellEnd:()=>{let e;this.rangeService&&Un(this.gos)?e=new Bg(this.cellValueChanges,void 0,void 0,[...this.rangeService.getCellRanges()]):e=new Rl(this.cellValueChanges),this.pushActionsToUndoStack(e),this.isRangeInAction=!1}})}pushActionsToUndoStack(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()}};function wA(e){return e.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition()}function xA(e){return e.ctrlsService.getGridBodyCtrl().getScrollFeature().getHScrollPosition()}function $y(e,t,i="auto"){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsService.getGridBodyCtrl().getScrollFeature().ensureColumnVisible(t,i),"ensureVisible")}function qy(e,t,i){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsService.getGridBodyCtrl().getScrollFeature().ensureIndexVisible(t,i),"ensureVisible")}function SA(e,t,i=null){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsService.getGridBodyCtrl().getScrollFeature().ensureNodeVisible(t,i),"ensureVisible")}function kA(e){e.undoRedoService?.undo("api")}function EA(e){e.undoRedoService?.redo("api")}function MA(e,t={}){return e.rowRenderer.getCellEditorInstances(t).map(Al)}function TA(e){return e.rowRenderer.getEditingCells()}function IA(e,t=!1){e.rowRenderer.stopEditing(t)}function DA(e,t){let i=e.columnModel.getCol(t.colKey);if(!i){$(`no column found for ${t.colKey}`);return}let n={rowIndex:t.rowIndex,rowPinned:t.rowPinned||null,column:i};t.rowPinned==null&&qy(e,t.rowIndex),$y(e,t.colKey);let r=e.navigationService.getCellByPosition(n);if(!r)return;let{focusService:a,gos:s}=e,l=()=>{let h=nt(s),m=r.getGui();return h!==m&&!!m?.contains(h)},c=s.get("stopEditingWhenCellsLoseFocus")&&l();(c||!a.isCellFocused(n))&&a.setFocusedCell(ye(B({},n),{forceBrowserFocus:c,preventScrollOnBrowserFocus:!0})),r.startRowOrCellEdit(t.key)}function PA(e){return e.undoRedoService?.getCurrentUndoStackSize()??0}function RA(e){return e.undoRedoService?.getCurrentRedoStackSize()??0}var FA=class extends H{constructor(){super(...arguments),this.beanName="editService"}wireBeans(e){this.navigationService=e.navigationService,this.userComponentFactory=e.userComponentFactory,this.valueService=e.valueService}startEditing(e,t=null,i=!1,n=null){let o=this.createCellEditorParams(e,t,i),r=e.getColumn().getColDef(),a=this.userComponentFactory.getCellEditorDetails(r,o),s=a?.popupFromSelector!=null?a.popupFromSelector:!!r.cellEditorPopup,l=a?.popupPositionFromSelector!=null?a.popupPositionFromSelector:r.cellEditorPopupPosition;return e.setEditing(!0,a),e.getComp().setEditDetails(a,s,l,this.gos.get("reactiveCustomComponents")),this.eventService.dispatchEvent(e.createEvent(n,"cellEditingStarted")),!a?.params?.suppressPreventDefault}
642stopEditing(e,t){let i=e.getComp(),{newValue:n,newValueExists:o}=this.takeValueFromCellEditor(t,i),r=e.getRowNode(),a=e.getColumn(),s=this.valueService.getValueForDisplay(a,r),l=!1;return o&&(l=this.saveNewValue(e,s,n,r,a)),e.setEditing(!1,void 0),i.setEditDetails(),e.updateAndFormatValue(!1),e.refreshCell({forceRefresh:!0,suppressFlash:!0}),this.eventService.dispatchEvent(ye(B({},e.createEvent(null,"cellEditingStopped")),{oldValue:s,newValue:n,valueChanged:l})),l}handleColDefChanged(e){let t=e.getCellEditor();if(t?.refresh){let{eventKey:i,cellStartedEdit:n}=e.getEditCompDetails().params,o=this.createCellEditorParams(e,i,n),r=e.getColumn().getColDef(),a=this.userComponentFactory.getCellEditorDetails(r,o);t.refresh(a.params)}}setFocusOutOnEditor(e){let t=e.getComp().getCellEditor();t&&t.focusOut&&t.focusOut()}setFocusInOnEditor(e){let t=e.getComp(),i=t.getCellEditor();i?.focusIn?i.focusIn():(e.focusCell(!0),e.onCellEditorAttached(()=>t.getCellEditor()?.focusIn?.()))}stopEditingAndFocus(e,t=!1,i=!1){e.stopRowOrCellEdit(),e.focusCell(!0),t||this.navigateAfterEdit(i,e.getCellPosition())}createPopupEditorWrapper(e){return new cA(e)}takeValueFromCellEditor(e,t){let i={newValueExists:!1};if(e)return i;let n=t.getCellEditor();return!n||n.isCancelAfterEnd&&n.isCancelAfterEnd()?i:{newValue:n.getValue(),newValueExists:!0}}saveNewValue(e,t,i,n,o){if(i===t)return!1;e.setSuppressRefreshCell(!0);let r=n.setDataValue(o,i,"edit");return e.setSuppressRefreshCell(!1),r}createCellEditorParams(e,t,i){let n=e.getColumn(),o=e.getRowNode();return this.gos.addGridCommonParams({value:this.valueService.getValueForDisplay(n,o),eventKey:t,column:n,colDef:n.getColDef(),rowIndex:e.getCellPosition().rowIndex,node:o,data:o.data,cellStartedEdit:i,onKeyDown:e.onKeyDown.bind(e),stopEditing:e.stopEditingAndFocus.bind(e),eGridCell:e.getGui(),parseValue:r=>this.valueService.parseValue(n,o,r,e.getValue()),formatValue:e.formatValue.bind(e)})}navigateAfterEdit(e,t){if(this.gos.get("enterNavigatesVerticallyAfterEdit")){let n=e?j.UP:j.DOWN;this.navigationService.navigateToNextCell(null,n,t,!1)}}},OA=class extends H{constructor(){super(...arguments),this.beanName="rowEditService"}startEditing(e,t=null,i=null,n=null){let o=!0;return e.getAllCellCtrls().reduce((a,s)=>{let l=s===i;return l?o=s.startEditing(t,l,n):s.startEditing(null,l,n),a?!0:s.isEditing()},!1)&&this.setEditing(e,!0),o}stopEditing(e,t=!1){let i=e.getAllCellCtrls(),n=e.isEditing();e.setStoppingRowEdit(!0);let o=!1;for(let r of i){let a=r.stopEditing(t);n&&!t&&!o&&a&&(o=!0)}o&&this.eventService.dispatchEvent(e.createRowEvent("rowValueChanged")),n&&this.setEditing(e,!1),e.setStoppingRowEdit(!1)}setEditing(e,t){e.setEditingRow(t),e.forEachGui(void 0,n=>n.rowComp.addOrRemoveCssClass("ag-row-editing",t));let i=t?e.createRowEvent("rowEditingStarted"):e.createRowEvent("rowEditingStopped");this.eventService.dispatchEvent(i)}},Jr={version:Se,moduleName:"@ag-grid-community/edit-core",beans:[FA]},AA={version:Se,moduleName:"@ag-grid-community/edit-api",apiFunctions:{undoCellEditing:kA,redoCellEditing:EA,getCellEditorInstances:MA,getEditingCells:TA,stopEditing:IA,startEditingCell:DA,getCurrentUndoSize:PA,getCurrentRedoSize:RA},dependantModules:[Jr]},LA={version:Se,moduleName:"@ag-grid-community/undo-redo-edit",beans:[yA],dependantModules:[Jr]},NA={version:Se,moduleName:"@ag-grid-community/full-row-edit",beans:[OA],dependantModules:[Jr]},Yy={version:Se,moduleName:"@ag-grid-community/default-editor",userComponents:[{name:"agCellEditor",classImp:jy}],dependantModules:[Jr]},zA={version:Se,moduleName:"@ag-grid-community/data-type-editors",userComponents:[{name:"agTextCellEditor",classImp:jy},{name:"agNumberCellEditor",classImp:hA,params:{suppressPreventDefault:!0}},{name:"agDateCellEditor",classImp:fA},{name:"agDateStringCellEditor",classImp:CA},{name:"agCheckboxCellEditor",classImp:bA}],dependantModules:[Yy]},BA={version:Se,moduleName:"@ag-grid-community/select-editor",userComponents:[{name:"agSelectCellEditor",classImp:dA}],dependantModules:[Jr]},VA={version:Se,moduleName:"@ag-grid-community/large-text-editor",userComponents:[{name:"agLargeTextCellEditor",classImp:lA}],dependantModules:[Jr]},HA={version:Se,moduleName:"@ag-grid-community/all-editors",dependantModules:[Yy,zA,BA,VA]},GA={version:Se,moduleName:"@ag-grid-community/editing",dependantModules:[Jr,LA,NA,HA,AA]},UA=class extends H{constructor(){super(...arguments),this.beanName="autoWidthCalculator"}wireBeans(e){this.rowRenderer=e.rowRenderer,this.ctrlsService=e.ctrlsService}postConstruct(){this.ctrlsService.whenReady(this,e=>{this.centerRowContainerCtrl=e.center})}getPreferredWidthForColumn(e,t){let i=this.getHeaderCellForColumn(e);if(!i)return-1;let n=this.rowRenderer.getAllCellsForColumn(e);return t||n.push(i),this.addElementsToContainerAndGetWidth(n)}getPreferredWidthForColumnGroup(e){let t=this.getHeaderCellForColumn(e);return t?this.addElementsToContainerAndGetWidth([t]):-1}addElementsToContainerAndGetWidth(e){let t=document.createElement("form");t.style.position="fixed";let i=this.centerRowContainerCtrl.getContainerElement();e.forEach(r=>this.cloneItemIntoDummy(r,t)),i.appendChild(t);let n=t.offsetWidth;i.removeChild(t);let o=this.getAutoSizePadding();return n+o}getAutoSizePadding(){return this.gos.get("autoSizePadding")}getHeaderCellForColumn(e){let t=null;
642return this.ctrlsService.getHeaderRowContainerCtrls().forEach(i=>{let n=i.getHtmlElementForColumnHeader(e);n!=null&&(t=n)}),t}cloneItemIntoDummy(e,t){let i=e.cloneNode(!0);i.style.width="",i.style.position="static",i.style.left="";let n=document.createElement("div"),o=n.classList;["ag-header-cell","ag-header-group-cell"].some(s=>i.classList.contains(s))?(o.add("ag-header","ag-header-row"),n.style.position="static"):o.add("ag-row");let a=e.parentElement;for(;a;){if(["ag-header-row","ag-row"].some(l=>a.classList.contains(l))){for(let l=0;l<a.classList.length;l++){let c=a.classList[l];c!="ag-row-position-absolute"&&o.add(c)}break}a=a.parentElement}n.appendChild(i),t.appendChild(n)}},jA=class extends H{constructor(e,t){super(),this.createRowCon=e,this.destroyRowCtrls=t,this.stickyTopRowCtrls=[],this.stickyBottomRowCtrls=[],this.extraTopHeight=0,this.extraBottomHeight=0}wireBeans(e){this.rowModel=e.rowModel,this.rowRenderer=e.rowRenderer,this.ctrlsService=e.ctrlsService,this.pageBoundsService=e.pageBoundsService}postConstruct(){this.isClientSide=at(this.gos),this.ctrlsService.whenReady(this,e=>{this.gridBodyCtrl=e.gridBodyCtrl}),this.resetStickyContainers()}getStickyTopRowCtrls(){return this.stickyTopRowCtrls}getStickyBottomRowCtrls(){return this.stickyBottomRowCtrls}setOffsetTop(e){this.extraTopHeight!==e&&(this.extraTopHeight=e,this.eventService.dispatchEvent({type:"stickyTopOffsetChanged",offset:e}))}setOffsetBottom(e){this.extraBottomHeight!==e&&(this.extraBottomHeight=e)}resetOffsets(){this.setOffsetBottom(0),this.setOffsetTop(0)}getExtraTopHeight(){return this.extraTopHeight}getExtraBottomHeight(){return this.extraBottomHeight}getLastPixelOfGroup(e){return this.isClientSide?this.getClientSideLastPixelOfGroup(e):this.getServerSideLastPixelOfGroup(e)}getFirstPixelOfGroup(e){return e.footer?e.sibling.rowTop+e.sibling.rowHeight-1:e.hasChildren()?e.rowTop-1:0}getServerSideLastPixelOfGroup(e){if(this.isClientSide)throw new Error("This func should only be called in server side row model.");if(e.isExpandable()||e.footer){if(e.master)return e.detailNode.rowTop+e.detailNode.rowHeight;if(!e.sibling||Math.abs(e.sibling.rowIndex-e.rowIndex)===1){let i=e.childStore?.getStoreBounds();return e.footer&&(i=e.sibling.childStore?.getStoreBounds()),(i?.heightPx??0)+(i?.topPx??0)}return e.footer?e.rowTop+e.rowHeight:e.sibling.rowTop+e.sibling.rowHeight}return Number.MAX_SAFE_INTEGER}getClientSideLastPixelOfGroup(e){if(!this.isClientSide)throw new Error("This func should only be called in client side row model.");if(e.isExpandable()||e.footer){if(e.footer&&e.rowIndex===0)return Number.MAX_SAFE_INTEGER;if(!e.sibling||Math.abs(e.sibling.rowIndex-e.rowIndex)===1){let n=e.footer?e.sibling:e;for(;n.isExpandable()&&n.expanded;)if(n.master)n=n.detailNode;else if(n.childrenAfterSort){if(n.childrenAfterSort.length===0)break;n=Ae(n.childrenAfterSort)}return n.rowTop+n.rowHeight}return e.footer?e.rowTop+e.rowHeight:e.sibling.rowTop+e.sibling.rowHeight}return Number.MAX_SAFE_INTEGER}updateStickyRows(e){let t=e==="top",i=0;if(!this.canRowsBeSticky())return this.refreshNodesAndContainerHeight(e,new Set,i);let n=t?this.rowRenderer.getFirstVisibleVerticalPixel()-this.extraTopHeight:this.rowRenderer.getLastVisibleVerticalPixel()-this.extraTopHeight,o=new Set,r=c=>{if(o.add(c),t){let h=this.getLastPixelOfGroup(c),m=n+i+c.rowHeight;h<m?c.stickyRowTop=i+(h-m):c.stickyRowTop=i}else{let h=this.getFirstPixelOfGroup(c),m=n-(i+c.rowHeight);h>m?c.stickyRowTop=i-(h-m):c.stickyRowTop=i}i=0,o.forEach(h=>{let m=h.stickyRowTop+h.rowHeight;i<m&&(i=m)})},a=this.areFooterRowsStickySuppressed(),s=this.gos.get("suppressGroupRowsSticky"),l=c=>{if(!c.displayed)return!1;if(c.footer){if(a===!0||a==="grand"&&c.level===-1||a==="group"&&c.level>-1)return!1;let h=c.sibling.rowIndex?c.sibling.rowIndex+1===c.rowIndex:!1;return e==="bottom"&&h?!1:!o.has(c)}return c.isExpandable()?s===!0||e==="bottom"?!1:!o.has(c)&&c.expanded:!1};for(let c=0;c<100;c++){let h=n+i;t||(h=n-i);let m=this.rowModel.getRowIndexAtPixel(h),f=this.rowModel.getRow(m);if(f==null)break;let _=this.getStickyAncestors(f).find(M=>(t?M.rowIndex<m:M.rowIndex>m)&&l(M));if(_){r(_);continue}if((t?f.rowTop<h:f.rowTop+f.rowHeight>h)&&l(f)){r(f);continue}break}return t||o.forEach(c=>{c.stickyRowTop=i-(c.stickyRowTop+c.rowHeight)}),this.refreshNodesAndContainerHeight(e,o,i)}areFooterRowsStickySuppressed(){let e=this.gos.get("suppressStickyTotalRow");if(e===!0)return!0;let t=!!this.gos.get("groupIncludeFooter")||e==="group",i=!!this.gos.get("groupIncludeTotalFooter")||e==="grand";return t&&i?!0:i?"grand":t?"group":!1}canRowsBeSticky(){let e=Mu(this.gos),t=this.areFooterRowsStickySuppressed(),i=this.gos.get("suppressGroupRowsSticky");return e&&(!t||!i)}getStickyAncestors(e){let t=[],i=e.footer?e.sibling:e.parent;for(;i;)i.sibling&&t.push(i.sibling),t.push(i),i=i.parent;return t.reverse()}checkStickyRows(){let e=this.updateStickyRows("top"),t=this.updateStickyRows("bottom");return e||t}destroyStickyCtrls(){this.resetStickyContainers()}resetStickyContainers(){this.refreshNodesAndContainerHeight("top",new Set,0),this.refreshNodesAndContainerHeight("bottom",new Set,0)}refreshStickyNode(e){let t=new Set;if(this.stickyTopRowCtrls.some(i=>i.getRowNode()===e)){for(let i=0;i<this.stickyTopRowCtrls.length;i++){let n=this.stickyTopRowCtrls[i].getRowNode();n!==e&&t.add(n)}this.refreshNodesAndContainerHeight("top",t,this.topContainerHeight)&&this.checkStickyRows();return}for(let i=0;i<this.stickyBottomRowCtrls.length;i++){let n=this.stickyBottomRowCtrls[i].getRowNode();n!==e&&t.add(n)}this.refreshNodesAndContainerHeight("bottom",t,this.bottomContainerHeight)&&this.checkStickyRows()}refreshNodesAndContainerHeight(e,t,i){let n=e==="top",o=n?this.stickyTopRowCtrls:this.stickyBottomRowCtrls,r={},a=[];for(let f=0;f<o.length;f++){let b=o[f].getRowNode();if(!t.has(b)){r[b.id]=o[f],b.sticky=!1;continue}a.push(o[f])}let s=new Set;for(let f=0;f<a.length;f++)s.add(a[f].getRowNode());let l=[];t.forEach(f=>{s.has(f)||(f.sticky=!0,l.push(this.createRowCon(f,!1,!1)))});let c=!!l.length||a.length!==o.length;n?this.topContainerHeight!==i&&(this.topContainerHeight=i,this.gridBodyCtrl.setStickyTopHeight(i),c=!0):this.bottomContainerHeight!==i&&(this.bottomContainerHeight=i,this.gridBodyCtrl.setStickyBottomHeight(i),c=!0),this.destroyRowCtrls(r,!1);let h=[...a,...l];h.sort((f,b)=>b.getRowNode().rowIndex-f.getRowNode().rowIndex),n||h.reverse(),h.forEach(f=>f.setRowTop(f.getRowNode().stickyRowTop));let m=0;return n?(t.forEach(f=>{f.rowIndex<this.pageBoundsService.getFirstRow()&&(m+=f.rowHeight)}),m>this.topContainerHeight&&(m=this.topContainerHeight),this.setOffsetTop(m)):(t.forEach(f=>{f.rowIndex>this.pageBoundsService.getLastRow()&&(m+=f.rowHeight)}),m>this.bottomContainerHeight&&(m=this.bottomContainerHeight),this.setOffsetBottom(m)),c?(n?this.stickyTopRowCtrls=h:this.stickyBottomRowCtrls=h,!0):!1}ensureRowHeightsValid(){let e=!1,t=i=>{let n=i.getRowNode();if(n.rowHeightEstimated){let o=nr(this.gos,n);n.setRowHeight(o.height),e=!0}};
642return this.stickyTopRowCtrls.forEach(t),this.stickyBottomRowCtrls.forEach(t),e}},WA=class extends H{constructor(){super(...arguments),this.beanName="rowRenderer",this.destroyFuncsForColumnListeners=[],this.rowCtrlsByRowIndex={},this.zombieRowCtrls={},this.allRowCtrls=[],this.topRowCtrls=[],this.bottomRowCtrls=[],this.refreshInProgress=!1,this.dataFirstRenderedFired=!1,this.setupRangeSelectionListeners=()=>{let e=()=>{this.getAllCellCtrls().forEach(r=>r.onCellSelectionChanged())},t=()=>{this.getAllCellCtrls().forEach(r=>r.updateRangeBordersIfRangeCount())},i=()=>{this.eventService.addEventListener("cellSelectionChanged",e),this.eventService.addEventListener("columnMoved",t),this.eventService.addEventListener("columnPinned",t),this.eventService.addEventListener("columnVisible",t)},n=()=>{this.eventService.removeEventListener("cellSelectionChanged",e),this.eventService.removeEventListener("columnMoved",t),this.eventService.removeEventListener("columnPinned",t),this.eventService.removeEventListener("columnVisible",t)};this.addDestroyFunc(()=>n()),this.addManagedPropertyListeners(["enableRangeSelection","cellSelection"],()=>{Un(this.gos)?i():n()}),Un(this.gos)&&i()}}wireBeans(e){this.animationFrameService=e.animationFrameService,this.paginationService=e.paginationService,this.pageBoundsService=e.pageBoundsService,this.columnModel=e.columnModel,this.visibleColsService=e.visibleColsService,this.pinnedRowModel=e.pinnedRowModel,this.rowModel=e.rowModel,this.focusService=e.focusService,this.beans=e,this.rowContainerHeightService=e.rowContainerHeightService,this.ctrlsService=e.ctrlsService,this.environment=e.environment}postConstruct(){this.ctrlsService.whenReady(this,e=>{this.gridBodyCtrl=e.gridBodyCtrl,this.initialise()})}initialise(){this.addManagedEventListeners({paginationChanged:this.onPageLoaded.bind(this),pinnedRowDataChanged:this.onPinnedRowDataChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),bodyScroll:this.onBodyScroll.bind(this),bodyHeightChanged:this.redraw.bind(this,{})}),this.addManagedPropertyListeners(["domLayout","embedFullWidthRows"],()=>this.onDomLayoutChanged()),this.addManagedPropertyListeners(["suppressMaxRenderedRowRestriction","rowBuffer"],()=>this.redraw()),this.addManagedPropertyListener("suppressCellFocus",e=>this.onSuppressCellFocusChanged(e.currentValue)),this.addManagedPropertyListeners(["groupSuppressBlankHeader","getBusinessKeyForNode","fullWidthCellRenderer","fullWidthCellRendererParams","suppressStickyTotalRow","groupRowRenderer","groupRowRendererParams","loadingCellRenderer","loadingCellRendererParams","detailCellRenderer","detailCellRendererParams","enableRangeSelection","enableCellTextSelection","rowSelection"],()=>this.redrawRows()),Mu(this.gos)&&(at(this.gos)||ko(this.gos))&&(this.stickyRowFeature=this.createManagedBean(new jA(this.createRowCon.bind(this),this.destroyRowCtrls.bind(this)))),this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=Bt(this.gos,"print"),this.embedFullWidthRows=this.printLayout||this.gos.get("embedFullWidthRows"),this.redrawAfterModelUpdate()}initialiseCache(){if(this.gos.get("keepDetailRows")){let e=this.getKeepDetailRowsCount(),t=e??3;this.cachedRowCtrls=new $A(t)}}getKeepDetailRowsCount(){return this.gos.get("keepDetailRowsCount")}getStickyTopRowCtrls(){return this.stickyRowFeature?this.stickyRowFeature.getStickyTopRowCtrls():[]}getStickyBottomRowCtrls(){return this.stickyRowFeature?this.stickyRowFeature.getStickyBottomRowCtrls():[]}updateAllRowCtrls(){let e=qr(this.rowCtrlsByRowIndex),t=qr(this.zombieRowCtrls),i=this.cachedRowCtrls?this.cachedRowCtrls.getEntries():[];t.length>0||i.length>0?this.allRowCtrls=[...e,...t,...i]:this.allRowCtrls=e}onCellFocusChanged(e){this.getAllCellCtrls().forEach(t=>t.onCellFocused(e)),this.getFullWidthRowCtrls().forEach(t=>t.onFullWidthRowFocused(e))}onSuppressCellFocusChanged(e){this.getAllCellCtrls().forEach(t=>t.onSuppressCellFocusChanged(e)),this.getFullWidthRowCtrls().forEach(t=>t.onSuppressCellFocusChanged(e))}registerCellEventListeners(){this.addManagedEventListeners({cellFocused:e=>{this.onCellFocusChanged(e)},cellFocusCleared:()=>this.onCellFocusChanged(),flashCells:e=>
642{this.getAllCellCtrls().forEach(t=>t.onFlashCells(e))},columnHoverChanged:()=>{this.getAllCellCtrls().forEach(e=>e.onColumnHover())},displayedColumnsChanged:()=>{this.getAllCellCtrls().forEach(e=>e.onDisplayedColumnsChanged())},displayedColumnsWidthChanged:()=>{this.printLayout&&this.getAllCellCtrls().forEach(e=>e.onLeftChanged())}}),this.setupRangeSelectionListeners(),this.refreshListenersToColumnsForCellComps(),this.addManagedEventListeners({gridColumnsChanged:this.refreshListenersToColumnsForCellComps.bind(this)}),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))}removeGridColumnListeners(){this.destroyFuncsForColumnListeners.forEach(e=>e()),this.destroyFuncsForColumnListeners.length=0}refreshListenersToColumnsForCellComps(){this.removeGridColumnListeners(),this.columnModel.getCols().forEach(t=>{let i=l=>{this.getAllCellCtrls().forEach(c=>{c.getColumn()===t&&l(c)})},n=()=>{i(l=>l.onLeftChanged())},o=()=>{i(l=>l.onWidthChanged())},r=()=>{i(l=>l.onFirstRightPinnedChanged())},a=()=>{i(l=>l.onLastLeftPinnedChanged())},s=()=>{i(l=>l.onColDefChanged())};t.addEventListener("leftChanged",n),t.addEventListener("widthChanged",o),t.addEventListener("firstRightPinnedChanged",r),t.addEventListener("lastLeftPinnedChanged",a),t.addEventListener("colDefChanged",s),this.destroyFuncsForColumnListeners.push(()=>{t.removeEventListener("leftChanged",n),t.removeEventListener("widthChanged",o),t.removeEventListener("firstRightPinnedChanged",r),t.removeEventListener("lastLeftPinnedChanged",a),t.removeEventListener("colDefChanged",s)})})}onDomLayoutChanged(){let e=Bt(this.gos,"print"),t=e||this.gos.get("embedFullWidthRows"),i=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,i&&this.redrawAfterModelUpdate({domLayoutChanged:!0})}datasourceChanged(){this.firstRenderedRow=0,this.lastRenderedRow=-1;let e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)}onPageLoaded(e){let t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)}getAllCellsForColumn(e){let t=[];return this.getAllRowCtrls().forEach(i=>{let n=i.getCellElement(e);n&&t.push(n)}),t}refreshFloatingRowComps(){this.refreshFloatingRows(this.topRowCtrls,"top"),this.refreshFloatingRows(this.bottomRowCtrls,"bottom")}getTopRowCtrls(){return this.topRowCtrls}getCentreRowCtrls(){return this.allRowCtrls}getBottomRowCtrls(){return this.bottomRowCtrls}refreshFloatingRows(e,t){let{pinnedRowModel:i,beans:n,printLayout:o}=this,r=Object.fromEntries(e.map(s=>[s.getRowNode().id,s]));i.forEachPinnedRow(t,(s,l)=>{let c=e[l];c&&i.getPinnedRowById(c.getRowNode().id,t)===void 0&&(c.destroyFirstPass(),c.destroySecondPass()),s.id in r?(e[l]=r[s.id],delete r[s.id]):e[l]=new jr(s,n,!1,!1,o)});let a=t==="top"?i.getPinnedTopRowCount():i.getPinnedBottomRowCount();e.length=a}onPinnedRowDataChanged(){let e={recycleRows:!0};this.redrawAfterModelUpdate(e)}redrawRow(e,t=!1){if(e.sticky)this.stickyRowFeature.refreshStickyNode(e);else if(this.cachedRowCtrls?.has(e)){this.cachedRowCtrls.removeRow(e);return}else{let i=n=>{let o=n[e.rowIndex];o&&o.getRowNode()===e&&(o.destroyFirstPass(),o.destroySecondPass(),n[e.rowIndex]=this.createRowCon(e,!1,!1))};switch(e.rowPinned){case"top":i(this.topRowCtrls);break;case"bottom":i(this.bottomRowCtrls);break;default:i(this.rowCtrlsByRowIndex),this.updateAllRowCtrls()}}t||this.dispatchDisplayedRowsChanged(!1)}redrawRows(e){if(e!=null){e?.forEach(i=>this.redrawRow(i,!0)),this.dispatchDisplayedRowsChanged(!1);return}this.redrawAfterModelUpdate()}getCellToRestoreFocusToAfterRefresh(e){let t=e?.suppressKeepFocus?null:this.focusService.getFocusCellToUseAfterRefresh();if(t==null)return null;let i=nt(this.gos),n=Bl(this.gos,i,Ur.DOM_DATA_KEY_CELL_CTRL),o=Bl(this.gos,i,jr.DOM_DATA_KEY_ROW_CTRL);return n||o?t:null}redrawAfterModelUpdate(e={}){this.getLockOnRefresh();let t=this.getCellToRestoreFocusToAfterRefresh(e);this.updateContainerHeights(),this.scrollToTopIfNewData(e);let i=!e.domLayoutChanged&&!!e.recycleRows,n=e.animate&&es(this.gos),o=i?this.getRowsToRecycle():null;if(i||this.removeAllRowComps(),this.workOutFirstAndLastRowsToRender(),this.stickyRowFeature){this.stickyRowFeature.checkStickyRows();let r=this.stickyRowFeature.getExtraTopHeight()+this.stickyRowFeature.getExtraBottomHeight();r&&this.updateContainerHeights(r)}this.recycleRows(o,n),this.gridBodyCtrl.updateRowCount(),e.onlyBody||this.refreshFloatingRowComps(),this.dispatchDisplayedRowsChanged(),t!=null&&this.restoreFocusedCell(t),this.releaseLockOnRefresh()}scrollToTopIfNewData(e){let t=e.newData||e.newPage,i=this.gos.get("suppressScrollOnNewData");
642t&&!i&&(this.gridBodyCtrl.getScrollFeature().scrollToTop(),this.stickyRowFeature?.resetOffsets())}updateContainerHeights(e=0){if(this.printLayout){this.rowContainerHeightService.setModelHeight(null);return}let t=this.pageBoundsService.getCurrentPageHeight();t===0&&(t=1),this.rowContainerHeightService.setModelHeight(t+e)}getLockOnRefresh(){if(this.refreshInProgress)throw new Error("AG Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0). To see what part of your code that caused the refresh check this stacktrace.");this.refreshInProgress=!0,this.frameworkOverrides.getLockOnRefresh?.()}releaseLockOnRefresh(){this.refreshInProgress=!1,this.frameworkOverrides.releaseLockOnRefresh?.()}isRefreshInProgress(){return this.refreshInProgress}restoreFocusedCell(e){e&&this.focusService.restoreFocusedCell(e,()=>{this.onCellFocusChanged(this.gos.addGridCommonParams({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,type:"cellFocused"}))})}stopEditing(e=!1){this.getAllRowCtrls().forEach(t=>{t.stopEditing(e)})}getAllCellCtrls(){let e=[],t=this.getAllRowCtrls(),i=t.length;for(let n=0;n<i;n++){let o=t[n].getAllCellCtrls(),r=o.length;for(let a=0;a<r;a++)e.push(o[a])}return e}getAllRowCtrls(){let e=this.stickyRowFeature&&this.stickyRowFeature.getStickyTopRowCtrls()||[],t=this.stickyRowFeature&&this.stickyRowFeature.getStickyBottomRowCtrls()||[],i=[...this.topRowCtrls,...this.bottomRowCtrls,...e,...t];for(let n in this.rowCtrlsByRowIndex)i.push(this.rowCtrlsByRowIndex[n]);return i}addRenderedRowListener(e,t,i){let n=this.rowCtrlsByRowIndex[t];n&&n.addEventListener(e,i)}flashCells(e={}){this.getCellCtrls(e.rowNodes,e.columns).forEach(t=>t.flashCell(e))}refreshCells(e={}){let t={forceRefresh:e.force,newData:!1,suppressFlash:e.suppressFlash};for(let i of this.getCellCtrls(e.rowNodes,e.columns))i.refreshOrDestroyCell(t);this.refreshFullWidth(e.rowNodes)}refreshFullWidth(e){if(!e)return;let t=null;this.stickyRowFeature&&Xg()&&(t=this.getCellToRestoreFocusToAfterRefresh()||null);for(let i of this.getRowCtrls(e)){if(!i.isFullWidth())continue;i.refreshFullWidth()||this.redrawRow(i.getRowNode(),!0)}this.dispatchDisplayedRowsChanged(!1),t&&this.restoreFocusedCell(t)}getCellRendererInstances(e){let t=this.getCellCtrls(e.rowNodes,e.columns).map(o=>o.getCellRenderer()).filter(o=>o!=null);if(e.columns?.length)return t;let i=[],n=this.mapRowNodes(e.rowNodes);return this.getAllRowCtrls().forEach(o=>{if(n&&!this.isRowInMap(o.getRowNode(),n)||!o.isFullWidth())return;let r=o.getFullWidthCellRenderers();for(let a=0;a<r.length;a++){let s=r[a];s!=null&&i.push(s)}}),[...i,...t]}getCellEditorInstances(e){let t=[];return this.getCellCtrls(e.rowNodes,e.columns).forEach(i=>{let n=i.getCellEditor();n&&t.push(n)}),t}getEditingCells(){let e=[];return this.getAllCellCtrls().forEach(t=>{if(t.isEditing()){let i=t.getCellPosition();e.push(i)}}),e}mapRowNodes(e){if(!e)return;let t={top:{},bottom:{},normal:{}};return e.forEach(i=>{let n=i.id;switch(i.rowPinned){case"top":t.top[n]=i;break;case"bottom":t.bottom[n]=i;break;default:t.normal[n]=i;break}}),t}isRowInMap(e,t){let i=e.id;switch(e.rowPinned){case"top":return t.top[i]!=null;case"bottom":return t.bottom[i]!=null;default:return t.normal[i]!=null}}getRowCtrls(e){let t=this.mapRowNodes(e),i=this.getAllRowCtrls();return!e||!t?i:i.filter(n=>{let o=n.getRowNode();return this.isRowInMap(o,t)})}getCellCtrls(e,t){let i;K(t)&&(i={},t.forEach(o=>{let r=this.columnModel.getCol(o);K(r)&&(i[r.getId()]=!0)}));let n=[];return this.getRowCtrls(e).forEach(o=>{o.getAllCellCtrls().forEach(r=>{let a=r.getColumn().getId();i&&!i[a]||n.push(r)})}),n}destroy(){this.removeAllRowComps(!0),super.destroy()}removeAllRowComps(e=!1){let t=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(t,e),this.stickyRowFeature&&this.stickyRowFeature.destroyStickyCtrls()}getRowsToRecycle(){let e=[];sn(this.rowCtrlsByRowIndex,(i,n)=>{n.getRowNode().id==null&&e.push(i)}),this.removeRowCtrls(e);let t={};return sn(this.rowCtrlsByRowIndex,(i,n)=>{let o=n.getRowNode();t[o.id]=n}),this.rowCtrlsByRowIndex={},t}removeRowCtrls(e,t=!1){e.forEach(i=>
642{let n=this.rowCtrlsByRowIndex[i];n&&(n.destroyFirstPass(t),n.destroySecondPass()),delete this.rowCtrlsByRowIndex[i]})}onBodyScroll(e){e.direction==="vertical"&&this.redraw({afterScroll:!0})}redraw(e={}){let{afterScroll:t}=e,i;this.stickyRowFeature&&Xg()&&(i=this.getCellToRestoreFocusToAfterRefresh()||void 0);let n=this.firstRenderedRow,o=this.lastRenderedRow;this.workOutFirstAndLastRowsToRender();let r=!1;if(this.stickyRowFeature){r=this.stickyRowFeature.checkStickyRows();let s=this.stickyRowFeature.getExtraTopHeight()+this.stickyRowFeature.getExtraBottomHeight();s&&this.updateContainerHeights(s)}let a=this.firstRenderedRow!==n||this.lastRenderedRow!==o;if(!(t&&!r&&!a)&&(this.getLockOnRefresh(),this.recycleRows(null,!1,t),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(t&&!r),i!=null)){let s=this.getCellToRestoreFocusToAfterRefresh();i!=null&&s==null&&(this.animationFrameService.flushAllFrames(),this.restoreFocusedCell(i))}}removeRowCompsNotToDraw(e,t){let i={};e.forEach(r=>i[r]=!0);let o=Object.keys(this.rowCtrlsByRowIndex).filter(r=>!i[r]);this.removeRowCtrls(o,t)}calculateIndexesToDraw(e){let t=TF(this.firstRenderedRow,this.lastRenderedRow),i=(o,r)=>{let a=r.getRowNode().rowIndex;a!=null&&(a<this.firstRenderedRow||a>this.lastRenderedRow)&&this.doNotUnVirtualiseRow(r)&&t.push(a)};sn(this.rowCtrlsByRowIndex,i),sn(e,i),t.sort((o,r)=>o-r);let n=[];for(let o=0;o<t.length;o++){let r=t[o],a=this.rowModel.getRow(r);a&&!a.sticky&&n.push(r)}return n}recycleRows(e,t=!1,i=!1){let n=this.calculateIndexesToDraw(e);(this.printLayout||i)&&(t=!1),this.removeRowCompsNotToDraw(n,!t);let o=[];n.forEach(r=>{let a=this.createOrUpdateRowCtrl(r,e,t,i);K(a)&&o.push(a)}),e&&(i&&!this.gos.get("suppressAnimationFrame")&&!this.printLayout?this.beans.animationFrameService.addDestroyTask(()=>{this.destroyRowCtrls(e,t),this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged()}):this.destroyRowCtrls(e,t)),this.updateAllRowCtrls()}dispatchDisplayedRowsChanged(e=!1){this.eventService.dispatchEvent({type:"displayedRowsChanged",afterScroll:e})}onDisplayedColumnsChanged(){let e=this.visibleColsService.isPinningLeft(),t=this.visibleColsService.isPinningRight();(this.pinningLeft!==e||t!==this.pinningRight)&&(this.pinningLeft=e,this.pinningRight=t,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())}redrawFullWidthEmbeddedRows(){let e=[];this.getFullWidthRowCtrls().forEach(t=>{let i=t.getRowNode().rowIndex;e.push(i.toString())}),this.refreshFloatingRowComps(),this.removeRowCtrls(e),this.redraw({afterScroll:!0})}getFullWidthRowCtrls(e){let t=this.mapRowNodes(e);return this.getAllRowCtrls().filter(i=>{if(!i.isFullWidth())return!1;let n=i.getRowNode();return!(t!=null&&!this.isRowInMap(n,t))})}createOrUpdateRowCtrl(e,t,i,n){let o,r=this.rowCtrlsByRowIndex[e];if(r||(o=this.rowModel.getRow(e),K(o)&&K(t)&&t[o.id]&&o.alreadyRendered&&(r=t[o.id],t[o.id]=null)),!r)if(o||(o=this.rowModel.getRow(e)),K(o))r=this.createRowCon(o,i,n);else return;return o&&(o.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=r,r}destroyRowCtrls(e,t){let i=[];sn(e,(n,o)=>{if(o){if(this.cachedRowCtrls&&o.isCacheable()){this.cachedRowCtrls.addRow(o);return}if(o.destroyFirstPass(!t),t){let r=o.instanceId;this.zombieRowCtrls[r]=o,i.push(()=>{o.destroySecondPass(),delete this.zombieRowCtrls[r]})}else o.destroySecondPass()}}),t&&(i.push(()=>{this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged()}),GP(i))}getRowBuffer(){return this.gos.get("rowBuffer")}getRowBufferInPixels(){let e=this.getRowBuffer(),t=Hr(this.gos);return e*t}workOutFirstAndLastRowsToRender(){this.rowContainerHeightService.updateOffset();let e,t;if(!this.rowModel.isRowsToRender())e=0,t=-1;else if(this.printLayout)this.environment.refreshRowHeightVariable(),e=this.pageBoundsService.getFirstRow(),t=this.pageBoundsService.getLastRow();else{let s=this.getRowBufferInPixels(),l=this.ctrlsService.getGridBodyCtrl(),c=this.gos.get("suppressRowVirtualisation"),h=!1,m,f;do{let D=this.pageBoundsService.getPixelOffset(),{pageFirstPixel:I,pageLastPixel:F}=this.pageBoundsService.getCurrentPagePixelRange(),W=this.rowContainerHeightService.getDivStretchOffset(),re=l.getScrollFeature
642().getVScrollPosition(),Z=re.top,q=re.bottom;c?(m=I+W,f=F+W):(m=Math.max(Z+D-s,I)+W,f=Math.min(q+D+s,F)+W),this.firstVisibleVPixel=Math.max(Z+D,I)+W,this.lastVisibleVPixel=Math.min(q+D,F)+W,h=this.ensureAllRowsInRangeHaveHeightsCalculated(m,f)}while(h);let b=this.rowModel.getRowIndexAtPixel(m),_=this.rowModel.getRowIndexAtPixel(f),S=this.pageBoundsService.getFirstRow(),M=this.pageBoundsService.getLastRow();b<S&&(b=S),_>M&&(_=M),e=b,t=_}let i=Bt(this.gos,"normal"),n=this.gos.get("suppressMaxRenderedRowRestriction"),o=Math.max(this.getRowBuffer(),500);i&&!n&&t-e>o&&(t=e+o);let r=e!==this.firstRenderedRow,a=t!==this.lastRenderedRow;(r||a)&&(this.firstRenderedRow=e,this.lastRenderedRow=t,this.eventService.dispatchEvent({type:"viewportChanged",firstRow:e,lastRow:t}))}dispatchFirstDataRenderedEvent(){this.dataFirstRenderedFired||(this.dataFirstRenderedFired=!0,window.requestAnimationFrame(()=>{this.beans.eventService.dispatchEvent({type:"firstDataRendered",firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow})}))}ensureAllRowsInRangeHaveHeightsCalculated(e,t){let i=this.pinnedRowModel?.ensureRowHeightsValid(),n=this.stickyRowFeature?.ensureRowHeightsValid(),o=this.rowModel.ensureRowHeightsValid(e,t,this.pageBoundsService.getFirstRow(),this.pageBoundsService.getLastRow());return(o||n)&&this.eventService.dispatchEvent({type:"recalculateRowBounds"}),n||o||i?(this.updateContainerHeights(),!0):!1}getFirstVisibleVerticalPixel(){return this.firstVisibleVPixel}getLastVisibleVerticalPixel(){return this.lastVisibleVPixel}getFirstVirtualRenderedRow(){return this.firstRenderedRow}getLastVirtualRenderedRow(){return this.lastRenderedRow}doNotUnVirtualiseRow(e){let n=e.getRowNode(),o=this.focusService.isRowNodeFocused(n),r=e.isEditing(),a=n.detail;return o||r||a?!!this.isRowPresent(n):!1}isRowPresent(e){return this.rowModel.isRowPresent(e)?this.paginationService?this.paginationService.isRowPresent(e):!0:!1}createRowCon(e,t,i){let n=this.cachedRowCtrls?this.cachedRowCtrls.getRow(e):null;if(n)return n;let o=this.gos.get("suppressAnimationFrame"),r=i&&!o&&!this.printLayout;return new jr(e,this.beans,t,r,this.printLayout)}getRenderedNodes(){let e=this.rowCtrlsByRowIndex;return Object.values(e).map(t=>t.getRowNode())}getRowByPosition(e){let t,{rowIndex:i}=e;switch(e.rowPinned){case"top":t=this.topRowCtrls[i];break;case"bottom":t=this.bottomRowCtrls[i];break;default:t=this.rowCtrlsByRowIndex[i],t||(t=this.getStickyTopRowCtrls().find(n=>n.getRowNode().rowIndex===i)||null,t||(t=this.getStickyBottomRowCtrls().find(n=>n.getRowNode().rowIndex===i)||null));break}return t}isRangeInRenderedViewport(e,t){if(e==null||t==null)return!1;let n=e>this.lastRenderedRow;return!(t<this.firstRenderedRow)&&!n}},$A=class{constructor(e){this.entriesMap={},this.entriesList=[],this.maxCount=e}addRow(e){if(this.entriesMap[e.getRowNode().id]=e,this.entriesList.push(e),e.setCached(!0),this.entriesList.length>this.maxCount){let t=this.entriesList[0];t.destroyFirstPass(),t.destroySecondPass(),this.removeFromCache(t)}}getRow(e){if(e==null||e.id==null)return null;let t=this.entriesMap[e.id];return t?(this.removeFromCache(t),t.setCached(!1),t.getRowNode()!=e?null:t):null}has(e){return this.entriesMap[e.id]!=null}removeRow(e){let t=e.id,i=this.entriesMap[t];delete this.entriesMap[t],xi(this.entriesList,i)}removeFromCache(e){let t=e.getRowNode().id;delete this.entriesMap[t],xi(this.entriesList,e)}getEntries(){return this.entriesList}},qA=class extends H{constructor(){super(...arguments),this.beanName="pinnedRowModel",this.nextId=0,this.pinnedTopRows=new l_,this.pinnedBottomRows=new l_}wireBeans(e){this.beans=e}postConstruct(){this.setPinnedRowData(this.gos.get("pinnedTopRowData"),"top"),this.setPinnedRowData(this.gos.get("pinnedBottomRowData"),"bottom"),this.addManagedPropertyListener("pinnedTopRowData",e=>this.setPinnedRowData(e.currentValue,"top")),this.addManagedPropertyListener("pinnedBottomRowData",e=>this.setPinnedRowData(e.currentValue,"bottom")),this.addManagedEventListeners({gridStylesChanged:this.onGridStylesChanges.bind(this)})}isEmpty(e){return(e==="top"?this.pinnedTopRows:this.pinnedBottomRows).isEmpty()}isRowsToRender(e){return!this.isEmpty(e)}onGridStylesChanges(e){if(e.rowHeightChanged){let t=i=>{i.setRowHeight(i.rowHeight,!0)};this.pinnedBottomRows.forEach(t),this.pinnedTopRows.forEach(t)}}ensureRowHeightsValid(){let e=!1,t=0,i=n=>{if(n.rowHeightEstimated){let o=nr(this.gos,n);n.setRowTop(t),n.setRowHeight(o.height),t+=o.height,e=!0}};return this.pinnedBottomRows?.forEach(i),t=0,this.pinnedTopRows?.forEach(i),this.eventService.dispatchEvent({type:"pinnedHeightChanged"}),e}setPinnedRowData(e,t){this.updateNodesFromRowData(e,t),this.eventService.dispatchEvent({type:"pinnedRowDataChanged"})}updateNodesFromRowData(e,t){let i=t==="top"?this.pinnedTopRows:this.pinnedBottomRows;if(e===void 0){i.clear();return}let n=ds(this.gos),o=t==="top"?wo.ID_PREFIX_TOP_PINNED:wo.ID_PREFIX_BOTTOM_PINNED,r=i.getIds(),a=[],s=new Set,l=0,c=-1;for(let h of e){let m=n?.({data:h,level:0,rowPinned:t})??o+this.nextId++;
642if(s.has(m)){$("Duplicate ID",m,"found for pinned row with data",h,"When `getRowId` is defined, it must return unique IDs for all pinned rows. Use the `rowPinned` parameter.");continue}c++,s.add(m),a.push(m);let f=i.getById(m);if(f!==void 0)f.data!==h&&f.setData(h),l+=this.setRowTopAndRowIndex(f,l,c),r.delete(m);else{let b=new wo(this.beans);b.id=m,b.data=h,b.rowPinned=t,l+=this.setRowTopAndRowIndex(b,l,c),i.push(b)}}r.forEach(h=>{i.getById(h)?.clearRowTopAndRowIndex()}),i.removeAllById(r),i.setOrder(a)}setRowTopAndRowIndex(e,t,i){return e.setRowTop(t),e.setRowHeight(nr(this.gos,e).height),e.setRowIndex(i),e.rowHeight}getPinnedTopTotalHeight(){return this.getTotalHeight(this.pinnedTopRows)}getPinnedBottomTotalHeight(){return this.getTotalHeight(this.pinnedBottomRows)}getPinnedTopRowCount(){return this.pinnedTopRows.getSize()}getPinnedBottomRowCount(){return this.pinnedBottomRows.getSize()}getPinnedTopRow(e){return this.pinnedTopRows.getByIndex(e)}getPinnedBottomRow(e){return this.pinnedBottomRows.getByIndex(e)}getPinnedRowById(e,t){return t==="top"?this.pinnedTopRows.getById(e):this.pinnedBottomRows.getById(e)}forEachPinnedRow(e,t){return e==="top"?this.pinnedTopRows.forEach(t):this.pinnedBottomRows.forEach(t)}getTotalHeight(e){let t=e.getSize();if(t===0)return 0;let i=e.getByIndex(t-1);return i===void 0?0:i.rowTop+i.rowHeight}},l_=class{constructor(){this.cache={},this.ordering=[]}getById(e){return this.cache[e]}getByIndex(e){let t=this.ordering[e];return this.cache[t]}push(e){this.cache[e.id]=e,this.ordering.push(e.id)}removeAllById(e){for(let t of e)delete this.cache[t];this.ordering=this.ordering.filter(t=>!e.has(t))}setOrder(e){this.ordering=e}forEach(e){this.ordering.forEach((t,i)=>{let n=this.cache[t];n&&e(n,i)})}clear(){this.ordering.length=0,this.cache={}}isEmpty(){return this.ordering.length===0}getSize(){return this.ordering.length}getIds(){return new Set(this.ordering)}};var YA=class extends H{constructor(e){super(),this.state="needsLoading",this.version=0,this.id=e}getId(){return this.id}load(){this.state="loading",this.loadFromDatasource()}getVersion(){return this.version}setStateWaitingToLoad(){this.version++,this.state="needsLoading"}getState(){return this.state}pageLoadFailed(e){this.isRequestMostRecentAndLive(e)&&(this.state="failed",this.processServerFail()),this.dispatchLoadCompleted(!1)}success(e,t){this.successCommon(e,t)}pageLoaded(e,t,i){this.successCommon(e,{rowData:t,rowCount:i})}isRequestMostRecentAndLive(e){let t=e===this.version,i=this.isAlive();return t&&i}successCommon(e,t){this.dispatchLoadCompleted(),this.isRequestMostRecentAndLive(e)&&(this.state="loaded",this.processServerResult(t))}dispatchLoadCompleted(e=!0){let t={type:"loadComplete",success:e,block:this};this.dispatchLocalEvent(t)}},KA=class extends H{constructor(){super(...arguments),this.beanName="rowNodeBlockLoader",this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0}wireBeans(e){this.rowModel=e.rowModel}postConstruct(){this.maxConcurrentRequests=this.getMaxConcurrentDatasourceRequests();let e=this.gos.get("blockLoadDebounceMillis");e&&e>0&&(this.checkBlockToLoadDebounce=wi(this.performCheckBlocksToLoad.bind(this),e))}getMaxConcurrentDatasourceRequests(){let e=this.gos.get("maxConcurrentDatasourceRequests");if(e==null)return 2;if(!(e<=0))return e}addBlock(e){this.blocks.push(e),e.addEventListener("loadComplete",this.loadComplete.bind(this)),this.checkBlockToLoad()}removeBlock(e){xi(this.blocks,e)}destroy(){super.destroy(),this.active=!1}loadComplete(){this.activeBlockLoadsCount--,this.checkBlockToLoad(),this.dispatchLocalEvent({type:"blockLoaded"}),this.activeBlockLoadsCount==0&&this.dispatchLocalEvent({type:"blockLoaderFinished"})}checkBlockToLoad(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()}performCheckBlocksToLoad(){if(!this.active)return;if(this.printCacheStatus(),this.maxConcurrentRequests!=null&&this.activeBlockLoadsCount>=this.maxConcurrentRequests){this.gos.get("debug")&&ln("RowNodeBlockLoader - checkBlockToLoad: max loads exceeded");return}let e=this.getAvailableLoadingCount(),t=this.blocks.filter(i=>i.getState()==="needsLoading").slice(0,e);this.registerLoads(t.length),t.forEach(i=>
642i.load()),this.printCacheStatus()}getBlockState(){if(ko(this.gos))return this.rowModel.getBlockStates();let e={};return this.blocks.forEach(t=>{let{id:i,state:n}=t.getBlockStateJson();e[i]=n}),e}printCacheStatus(){this.gos.get("debug")&&ln(`RowNodeBlockLoader - printCacheStatus: activePageLoadsCount = ${this.activeBlockLoadsCount}, blocks = ${JSON.stringify(this.getBlockState())}`)}isLoading(){return this.activeBlockLoadsCount>0}registerLoads(e){this.activeBlockLoadsCount+=e}getAvailableLoadingCount(){return this.maxConcurrentRequests!==void 0?this.maxConcurrentRequests-this.activeBlockLoadsCount:void 0}},QA={version:Se,moduleName:"@ag-grid-community/row-node-block",beans:[KA]},JA=class{constructor(){this.root=null,this.end=null,this.cachedRange=[]}init(e){this.rowModel=e}reset(){this.root=null,this.end=null,this.cachedRange.length=0}setRoot(e){this.root=e,this.end=null,this.cachedRange.length=0}setEndRange(e){this.end=e,this.cachedRange.length=0}getRange(){if(this.cachedRange.length===0){let e=this.getRoot(),t=this.getEnd();if(e==null||t==null)return this.cachedRange;this.cachedRange=this.rowModel.getNodesInRangeForSelection(e,t)}return this.cachedRange}isInRange(e){return this.root===null?!1:this.getRange().some(t=>t.id===e.id)}getRoot(){return this.root&&this.root?.key===null&&(this.root=this.rowModel.getRowNode(this.root.id)??null),this.root}getEnd(){return this.end&&this.end?.key===null&&(this.end=this.rowModel.getRowNode(this.end.id)??null),this.end}truncate(e){let t=this.getRange();if(t.length===0)return{keep:[],discard:[]};let i=t[0].id===this.root.id,n=t.findIndex(o=>o.id===e.id);if(n>-1){let o=t.slice(0,n),r=t.slice(n+1);return this.setEndRange(e),i?{keep:o,discard:r}:{keep:r,discard:o}}else return{keep:t,discard:[]}}extend(e,t=!1){let i=this.getRoot();if(i==null){let o=this.getRange().slice();return t&&e.depthFirstSearch(r=>!r.group&&o.push(r)),o.push(e),this.setRoot(e),{keep:o,discard:[]}}if(this.rowModel.getNodesInRangeForSelection(i,e).find(o=>o.id===this.end?.id))return this.setEndRange(e),{keep:this.getRange(),discard:[]};{let o=this.getRange().slice();return this.setEndRange(e),{keep:this.getRange(),discard:o}}}},ZA=class extends H{constructor(){super(...arguments),this.beanName="stylingService"}wireBeans(e){this.expressionService=e.expressionService}processAllCellClasses(e,t,i,n){this.processClassRules(void 0,e.cellClassRules,t,i,n),this.processStaticCellClasses(e,t,i)}processClassRules(e,t,i,n,o){if(t==null&&e==null)return;let r={},a={},s=(l,c)=>{l.split(" ").forEach(h=>{h.trim()!=""&&c(h)})};if(t){let l=Object.keys(t);for(let c=0;c<l.length;c++){let h=l[c],m=t[h],f;typeof m=="string"?f=this.expressionService.evaluate(m,i):typeof m=="function"&&(f=m(i)),s(h,b=>{f?r[b]=!0:a[b]=!0})}}e&&o&&Object.keys(e).forEach(l=>s(l,c=>{r[c]||(a[c]=!0)})),o&&Object.keys(a).forEach(o),Object.keys(r).forEach(n)}getStaticCellClasses(e,t){let{cellClass:i}=e;if(!i)return[];let n;return typeof i=="function"?n=i(t):n=i,typeof n=="string"&&(n=[n]),n||[]}processStaticCellClasses(e,t,i){this.getStaticCellClasses(e,t).forEach(o=>{i(o)})}};var XA=class extends H{constructor(e){super(),this.skipTabGuardFocus=!1,this.forcingFocusOut=!1,this.allowFocus=!1;let{comp:t,eTopGuard:i,eBottomGuard:n,focusTrapActive:o,forceFocusOutWhenTabGuardsAreEmpty:r,isFocusableContainer:a,focusInnerElement:s,onFocusIn:l,onFocusOut:c,shouldStopEventPropagation:h,onTabKeyDown:m,handleKeyDown:f,eFocusableElement:b}=e;this.comp=t,this.eTopGuard=i,this.eBottomGuard=n,this.providedFocusInnerElement=s,this.eFocusableElement=b,this.focusTrapActive=!!o,this.forceFocusOutWhenTabGuardsAreEmpty=!!r,this.isFocusableContainer=!!a,this.providedFocusIn=l,this.providedFocusOut=c,this.providedShouldStopEventPropagation=h,this.providedOnTabKeyDown=m,this.providedHandleKeyDown=f}wireBeans(e){this.focusService=e.focusService}postConstruct(){this.createManagedBean(new Kr(this.eFocusableElement,{shouldStopEventPropagation:()=>this.shouldStopEventPropagation(),onTabKeyDown:e=>this.onTabKeyDown(e),handleKeyDown:e=>this.handleKeyDown(e),onFocusIn:e=>this.onFocusIn(e),onFocusOut:e=>this.onFocusOut(e)})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEac
642h(e=>this.addManagedElementListeners(e,{focus:this.onFocus.bind(this)}))}handleKeyDown(e){this.providedHandleKeyDown&&this.providedHandleKeyDown(e)}tabGuardsAreActive(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")}shouldStopEventPropagation(){return this.providedShouldStopEventPropagation?this.providedShouldStopEventPropagation():!1}activateTabGuards(){if(this.forcingFocusOut)return;let e=this.gos.get("tabIndex");this.comp.setTabIndex(e.toString())}deactivateTabGuards(){this.comp.setTabIndex()}onFocus(e){if(this.isFocusableContainer&&!this.eFocusableElement.contains(e.relatedTarget)&&!this.allowFocus){this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard);return}if(this.skipTabGuardFocus){this.skipTabGuardFocus=!1;return}if(this.forceFocusOutWhenTabGuardsAreEmpty&&this.focusService.findFocusableElements(this.eFocusableElement,".ag-tab-guard").length===0){this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard);return}if(this.isFocusableContainer&&this.eFocusableElement.contains(e.relatedTarget))return;let t=e.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(t):this.focusInnerElement(t)}findNextElementOutsideAndFocus(e){let t=dt(this.gos),i=this.focusService.findFocusableElements(t.body,null,!0),n=i.indexOf(e?this.eTopGuard:this.eBottomGuard);if(n===-1)return;let o,r;e?(o=0,r=n):(o=n+1,r=i.length);let a=i.slice(o,r),s=this.gos.get("tabIndex");a.sort((l,c)=>{let h=parseInt(l.getAttribute("tabindex")||"0"),m=parseInt(c.getAttribute("tabindex")||"0");return m===s?1:h===s?-1:h===0?1:m===0?-1:h-m}),a[e?a.length-1:0]?.focus()}onFocusIn(e){this.focusTrapActive||this.forcingFocusOut||(this.providedFocusIn&&this.providedFocusIn(e),this.isFocusableContainer||this.deactivateTabGuards())}onFocusOut(e){this.focusTrapActive||(this.providedFocusOut&&this.providedFocusOut(e),this.eFocusableElement.contains(e.relatedTarget)||this.activateTabGuards())}onTabKeyDown(e){if(this.providedOnTabKeyDown){this.providedOnTabKeyDown(e);return}if(this.focusTrapActive||e.defaultPrevented)return;let t=this.tabGuardsAreActive();t&&this.deactivateTabGuards();let i=this.getNextFocusableElement(e.shiftKey);t&&setTimeout(()=>this.activateTabGuards(),0),i&&(i.focus(),e.preventDefault())}focusInnerElement(e=!1){let t=this.focusService.findFocusableElements(this.eFocusableElement);this.tabGuardsAreActive()&&(t.splice(0,1),t.splice(t.length-1,1)),t.length&&t[e?t.length-1:0].focus({preventScroll:!0})}getNextFocusableElement(e){return this.focusService.findNextFocusableElement(this.eFocusableElement,!1,e)}forceFocusOutOfContainer(e=!1){if(this.forcingFocusOut)return;let t=e?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,this.forcingFocusOut=!0,t.focus(),window.setTimeout(()=>{this.forcingFocusOut=!1,this.activateTabGuards()})}isTabGuard(e,t){return e===this.eTopGuard&&!t||e===this.eBottomGuard&&(t??!0)}setAllowFocus(e){this.allowFocus=e}},e6=class extends H{constructor(e){super(),this.comp=e}initialiseTabGuard(e){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.comp.getFocusableElement();let{eTopGuard:t,eBottomGuard:i,eFocusableElement:n}=this,o=[t,i],r={setTabIndex:S=>{o.forEach(M=>S!=null?M.setAttribute("tabindex",S):M.removeAttribute("tabindex"))}};this.addTabGuards(t,i);let{focusTrapActive:a=!1,onFocusIn:s,onFocusOut:l,focusInnerElement:c,handleKeyDown:h,onTabKeyDown:m,shouldStopEventPropagation:f,forceFocusOutWhenTabGuardsAreEmpty:b,isFocusableContainer:_}=e;this.tabGuardCtrl=this.createManagedBean(new XA({comp:r,focusTrapActive:a,eTopGuard:t,eBottomGuard:i,eFocusableElement:n,onFocusIn:s,onFocusOut:l,focusInnerElement:c,handleKeyDown:h,onTabKeyDown:m,shouldStopEventPropagation:f,forceFocusOutWhenTabGuardsAreEmpty:b,isFocusableContainer:_}))}getTabGuardCtrl(){return this.tabGuardCtrl}createTabGuard(e){let t=dt(this.gos).createElement("div"),i=e==="top"?"ag-tab-guard-top":"ag-tab-guard-bottom";return t.classList.add("ag-tab-guard",i),qi(t,"presentation"),t}addTabGuards(e,t){this.eFocusableElement.insertAdjacentElement("afterbegin",e),this.eFocusableElement.insertAdjacentElement("beforeend",t)}removeAllChildrenExceptTabGuards(){let e=[this.eTopGuard,this.eBottomGuard];ni(this.comp.getFocusableElement()),this.addTabGuards(...e)}
642forceFocusOutOfContainer(e=!1){this.tabGuardCtrl.forceFocusOutOfContainer(e)}appendChild(e,t,i){ym(t)||(t=t.getGui());let{eBottomGuard:n}=this;n?n.insertAdjacentElement("beforebegin",t):e(t,i)}},Ky=class extends Le{initialiseTabGuard(e){this.tabGuardFeature=this.createManagedBean(new e6(this)),this.tabGuardFeature.initialiseTabGuard(e)}forceFocusOutOfContainer(e=!1){this.tabGuardFeature.forceFocusOutOfContainer(e)}appendChild(e,t){this.tabGuardFeature.appendChild(super.appendChild.bind(this),e,t)}},t6=0,i6=200,n6=class extends H{constructor(){super(...arguments),this.beanName="popupService",this.popupList=[]}wireBeans(e){this.ctrlsService=e.ctrlsService,this.resizeObserverService=e.resizeObserverService,this.environment=e.environment}postConstruct(){this.ctrlsService.whenReady(this,e=>{this.gridCtrl=e.gridCtrl}),this.addManagedEventListeners({gridStylesChanged:this.handleThemeChange.bind(this)})}getPopupParent(){let e=this.gos.get("popupParent");return e||this.gridCtrl.getGui()}positionPopupForMenu(e){let{eventSource:t,ePopup:i}=e,n=this.getPopupIndex(i);if(n!==-1){let b=this.popupList[n];b.alignedToElement=t}let o=t.getBoundingClientRect(),r=this.getParentRect(),a=this.keepXYWithinBounds(i,o.top-r.top,0),s=i.clientWidth>0?i.clientWidth:200;i.style.minWidth=`${s}px`;let c=r.right-r.left-s,h;this.gos.get("enableRtl")?(h=f(),h<0&&(h=m(),this.setAlignedStyles(i,"left")),h>c&&(h=0,this.setAlignedStyles(i,"right"))):(h=m(),h>c&&(h=f(),this.setAlignedStyles(i,"right")),h<0&&(h=0,this.setAlignedStyles(i,"left"))),i.style.left=`${h}px`,i.style.top=`${a}px`;function m(){return o.right-r.left-2}function f(){return o.left-r.left-s}}positionPopupUnderMouseEvent(e){let{ePopup:t,nudgeX:i,nudgeY:n,skipObserver:o}=e;this.positionPopup({ePopup:t,nudgeX:i,nudgeY:n,keepWithinBounds:!0,skipObserver:o,updatePosition:()=>this.calculatePointerAlign(e.mouseEvent),postProcessCallback:()=>this.callPostProcessPopup(e.type,e.ePopup,null,e.mouseEvent,e.column,e.rowNode)})}calculatePointerAlign(e){let t=this.getParentRect();return{x:e.clientX-t.left,y:e.clientY-t.top}}positionPopupByComponent(e){let{ePopup:t,nudgeX:i,nudgeY:n,keepWithinBounds:o,eventSource:r,alignSide:a="left",position:s="over",column:l,rowNode:c,type:h}=e,m=r.getBoundingClientRect(),f=this.getParentRect(),b=this.getPopupIndex(t);if(b!==-1){let S=this.popupList[b];S.alignedToElement=r}let _=()=>{let S=m.left-f.left;a==="right"&&(S-=t.offsetWidth-m.width);let M;return s==="over"?(M=m.top-f.top,this.setAlignedStyles(t,"over")):(this.setAlignedStyles(t,"under"),this.shouldRenderUnderOrAbove(t,m,f,e.nudgeY||0)==="under"?M=m.top-f.top+m.height:M=m.top-t.offsetHeight-(n||0)*2-f.top),{x:S,y:M}};this.positionPopup({ePopup:t,nudgeX:i,nudgeY:n,keepWithinBounds:o,updatePosition:_,postProcessCallback:()=>this.callPostProcessPopup(h,t,r,null,l,c)})}shouldRenderUnderOrAbove(e,t,i,n){let o=i.bottom-t.bottom,r=t.top-i.top,a=e.offsetHeight+n;return o>a?"under":r>a||r>o?"above":"under"}setAlignedStyles(e,t){let i=this.getPopupIndex(e);if(i===-1)return;let n=this.popupList[i],{alignedToElement:o}=n;!o||(["right","left","over","above","under"].forEach(a=>{o.classList.remove(`ag-has-popup-positioned-${a}`),e.classList.remove(`ag-popup-positioned-${a}`)}),!t)||(o.classList.add(`ag-has-popup-positioned-${t}`),e.classList.add(`ag-popup-positioned-${t}`))}callPostProcessPopup(e,t,i,n,o,r){let a=this.gos.getCallback("postProcessPopup");a&&a({column:o,rowNode:r,ePopup:t,type:e,eventSource:i,mouseEvent:n})}positionPopup(e){let{ePopup:t,keepWithinBounds:i,nudgeX:n,nudgeY:o,skipObserver:r,updatePosition:a}=e,s={width:0,height:0},l=(c=!1)=>{let{x:h,y:m}=a();c&&t.clientWidth===s.width&&t.clientHeight===s.height||(s.width=t.clientWidth,s.height=t.clientHeight,n&&(h+=n),o&&(m+=o),i&&(h=this.keepXYWithinBounds(t,h,1),m=this.keepXYWithinBounds(t,m,0)),t.style.left=`${h}px`,t.style.top=`${m}px`,e.postProcessCallback&&e.postProcessCallback())};if(l(),!r){let c=this.resizeObserverService.observeResize(t,()=>l(!0));setTimeout(()=>c(),i6)}}getActivePopups(){return this.popupList.map(e=>e.element)}getPopupList(){return this.popupList}getParentRect(){let e=dt(this.gos),t=this.getPopupParent();return t===e.body?t=e.documentElement:getComputedStyle(t).position==="static"&&(t=t.offsetParent),q_(t)}keepXYWithinBounds(e,t,i){let n=i===0,o=n?"clientHeight":"clientWidth",r=n?"top":"left",a=n?"height":"width",s=n?"scrollTop":"scrollLeft",l=dt(this.gos),c=l.documentElement,h=this.getPopupParent(),m=e.getBoundingClientRect(),f=h.getBoundingClientRect(),b=l.documentElement.getBoundingClientRect(),_=h===l.body,S=Math.ceil(m[a]),D=_?(n?$_:yu)(c)+c[s]:h[o];_&&(D-=Math.abs(b[r]-f[r]));let I=D-S;return Math.min(Math.max(t,0),Math.abs(I))}addPopup(e){let t=dt(this.gos),{eChild:i,ariaLabel:n,alwaysOnTop:o,positionCallback:r,anchorToElement:a}=e;if(!t)return $("could not find the document, document is empty"),{hideFunc:()=>{}};let s=this.getPopupIndex(i);if(s!==-1)return{hideFunc:this.popupList[s].hideFunc};this.initialisePopupPosition(i);let l=this.createPopupWrapper(i,n,!!o),c=this.addEventListenersToPopup(ye(B({},e),{wrapperEl:l}));return r&&r(),this.addPopupToPopupList(i,l,c,a),{hideFunc:c}}initialisePopupPosition(e){let i=this.getPopupParent().getBoundingClientRect();K(e.style.top)||(e.style.top=`${i.top*-1}px`),K(e.style.left)||(e.style.left=`${i.left*-1}px`)}createPopupWrapper(e,t,i){let n=this.getPopupParent(),o=document.createElement("div");return this.environment.applyThemeClasses(o),o.classList.add("ag-popup"),e.classList.add(this.gos.get("enableRtl")?"ag-rtl":"ag-ltr","ag-popup-child"),e.hasAttribute("role")||qi(e,"dialog"),ss(e,t),o.appendChild(e),n.appendChild(o),i?this.setAlwaysOnTop(e,!0):this.bringPopupToFront(e),o}handleThemeChange(e){if(e.themeChanged)for(let t of this.popupList)this.environment.applyThemeClasses(t.wrapper)}addEventListenersToPopup(e){let t=dt(this.gos),i=this.getPopupParent(),{wrapperEl:n,eChild:o,closedCallback:r,afterGuiAttached:a,closeOnEsc:s,modal:l}=e,c=!1,h=_=>{if(!n.contains(nt(this.gos)))return;_.key===j.ESCAPE&&!yo(_)&&b({keyboardEvent:_})},m=_=>b({mouseEvent:_}),f=_=>b({touchEvent:_}),b=(_={})=>{let{mouseEvent:S,touchEvent:M,keyboardEvent:D,forceHide:I}=_;!I&&(this.isEventFromCurrentPopup({mouseEvent:S,touchEvent:M},o)||c)||(c=!0,i.removeChild(n),t.removeEventListener("keydown",h),t.removeEventListener("mousedown",m),t.removeEventListener("touchstart",f),t.removeEventListener("contextmenu",m),this.eventService.removeEventListener("dragStarted",m),r&&r(S||M||D),this.removePopupFromPopupList(o))};return a&&a({hidePopup:b}),window.setTimeout(()=>{s&&t.addEventListener("keydown",h),l&&(t.addEventListener("mousedown",m),this.eventService.addEventListener("dragStarted",m),t.addEventListener("touchstart",f),t.addEventListener("contextmenu",m))},0),b}addPopupToPopupList(e,t,i,n){this.popupList.push({element:e,wrapper:t,hideFunc:i,instanceId:t6++,isAnchored:!!n}),n&&this.setPopupPositionRelatedToElement(e,n)}getPopupIndex(e){return this.popupList.findIndex(t=>t.element===e)}setPopupPositionRelatedToElement(e,t){let i=this.getPopupIndex(e);if(i===-1)return;let n=this.popupList[i];if(n.stopAnchoringPromise&&n.stopAnchoringPromise.then(r=>r&&r()),n.stopAnchoringPromise=void 0,n.isAnchored=!1,!t)return;let o=this.keepPopupPositionedRelativeTo({element:t,ePopup:e,hidePopup:n.hideFunc});return n.stopAnchoringPromise=o,n.isAnchored=!0,o}removePopupFromPopupList(e){this.setAlignedStyles(e,null),this.setPopupPositionRelatedToElement(e,null),this.popupList=this.popupList.filter(t=>t.element!==e)}keepPopupPositionedRelativeTo(e){let t=this.getPopupParent(),i=t.getBoundingClientRect(),{element:n,ePopup:o}=e,r=n.getBoundingClientRect(),a=m=>parseInt(m.substring(0,m.length-1),10),s=(m,f)=>{let b=i[m]-r[m],_=a(o.style[m]);return{initialDiff:b,lastDiff:b,initial:_,last:_,direction:f}},l=s("top",0),c=s("left",1),h=this.getFrameworkOverrides();return new ji(m=>{h.wrapIncoming(()=>{h.setInterval(()=>{let f=t.getBoundingClientRect(),b=n.getBoundingClientRect();if(b.top==0&&b.left==0&&b.height==0&&b.width==0){e.hidePopup();return}let S=(M,D)=>{let I=a(o.style[D]);M.last!==I&&(M.initial=I,M.last=I);let F=f[D]-b[D];if(F!=M.lastDiff){let W=this.keepXYWithinBounds(o,M.initial+M.initialDiff-F,M.direction);o.style[D]=`${W}px`,M.last=W}M.lastDiff=F};S(l,"top"),S(c,"left")},200).then(f=>{m(()=>{f!=null&&window.clearInterval(f)})})},"popupPositioning")})}hasAnchoredPopup(){return this.popupList.some(e=>e.isAnchored)}isEventFromCurrentPopup(e,t){let{mouseEvent:i,touchEvent:n}=e,o=i||n;if(!o)return!1;let r=this.getPopupIndex(t);if(r===-1)return!1;for(let a=r;a<this.popupList.length;a++){let s=this.popupList[a];if(sR(s.element,o))return!0}return this.isElementWithinCustomPopup(o.target)}isElementWithinCustomPopup(e){let t=dt(this.gos);for(;e&&e!==t.body;){if(e.classList.contains("ag-custom-component-popup")||e.parentElement===null)return!0;e=e.parentElement}return!1}getWrapper(e){for(;!e.classList.contains("ag-popup")&&e.parentElement;)e=e.parentElement;return e.classList.contains("ag-popup")?e:null}setAlwaysOnTop(e,t){let i=this.getWrapper(e);i&&(i.classList.toggle("ag-always-on-top",!!t),t&&this.bringPopupToFront(i))}bringPopupToFront(e){let t=this.getPopupParent(),i=Array.prototype.slice.call(t.querySelectorAll(".ag-popup")),n=i.length,o=this.getWrapper(e);if(!o||n<=1||!t.contains(e))return;let r=[],a=[];for(let f of i)f!==o&&(f.classList.contains("ag-always-on-top")?a.push(f):r.push(f));let s=[],l=a.length,m=o.classList.contains("ag-always-on-top")||!l?[...r,...a,o]:[...r,o,...a];for(let f=0;f<=n;f++){let b=m[f];if(i[f]===m[f]||b===o)continue;b.querySelectorAll("div").forEach(S=>{S.scrollTop!==0&&s.push([S,S.scrollTop])}),f===0?t.insertAdjacentElement("afterbegin",b):m[f-1].insertAdjacentElement("afterend",b)}for(;s.length;){let f=s.pop();f[0].scrollTop=f[1]}}},o6=["touchstart","touchend","touchmove","touchcancel"],Bm=class{constructor(e="javascript"){this.frameworkName=e,this.renderingEngine="vanilla",this.wrapIncoming=t=>t(),this.wrapOutgoing=t=>t()}setInterval(e,t){return new ji(i=>{i(window.setInterval(e,t))})}addEventListener(e,t,i,n){let o=Gr(o6,t);e.addEventListener(t,i,{capture:!!n,passive:o})}get shouldWrapOutgoing(){return!1}frameworkComponent(e){return null}isFrameworkComponent(e){return!1}getDocLink(e){return`https://www.ag-grid.com/${this.frameworkName==="solid"?"react":this.frameworkName}-data-grid${e?`/${e}`:""}`}},r6=class extends H{constructor(){super(...arguments),this.beanName="
642cellNavigationService"}wireBeans(e){this.visibleColsService=e.visibleColsService,this.rowModel=e.rowModel,this.rowRenderer=e.rowRenderer,this.pinnedRowModel=e.pinnedRowModel,this.paginationService=e.paginationService,this.pageBoundsService=e.pageBoundsService}getNextCellToFocus(e,t,i=!1){return i?this.getNextCellToFocusWithCtrlPressed(e,t):this.getNextCellToFocusWithoutCtrlPressed(e,t)}getNextCellToFocusWithCtrlPressed(e,t){let i=e===j.UP,n=e===j.DOWN,o=e===j.LEFT,r,a;if(i||n)a=i?this.pageBoundsService.getFirstRow():this.pageBoundsService.getLastRow(),r=t.column;else{let s=this.visibleColsService.getAllCols(),l=this.gos.get("enableRtl");a=t.rowIndex,r=o!==l?s[0]:Ae(s)}return{rowIndex:a,rowPinned:null,column:r}}getNextCellToFocusWithoutCtrlPressed(e,t){let i=t,n=!1;for(;!n;){switch(e){case j.UP:i=this.getCellAbove(i);break;case j.DOWN:i=this.getCellBelow(i);break;case j.RIGHT:this.gos.get("enableRtl")?i=this.getCellToLeft(i):i=this.getCellToRight(i);break;case j.LEFT:this.gos.get("enableRtl")?i=this.getCellToRight(i):i=this.getCellToLeft(i);break;default:i=null,$("unknown key for navigation ",e);break}i?n=this.isCellGoodToFocusOn(i):n=!0}return i}isCellGoodToFocusOn(e){let t=e.column,i;switch(e.rowPinned){case"top":i=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case"bottom":i=this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);break;default:i=this.rowModel.getRow(e.rowIndex);break}return i?!t.isSuppressNavigable(i):!1}getCellToLeft(e){if(!e)return null;let t=this.visibleColsService.getColBefore(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null}getCellToRight(e){if(!e)return null;let t=this.visibleColsService.getColAfter(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null}getRowBelow(e){let t=e.rowIndex,i=e.rowPinned,n=!1;if(this.isLastRowInContainer(e))switch(i){case"bottom":return null;case"top":return this.rowModel.isRowsToRender()?{rowIndex:this.pageBoundsService.getFirstRow(),rowPinned:null}:this.pinnedRowModel.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null;default:return this.pinnedRowModel.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null}else i&&(n=!0);let o=this.rowModel.getRow(e.rowIndex),r=n?void 0:this.getNextStickyPosition(o);return r||{rowIndex:t+1,rowPinned:i}}getNextStickyPosition(e,t){if(!Mu(this.gos)||!e||!e.sticky)return;let i=this.rowRenderer.getStickyTopRowCtrls().some(s=>s.getRowNode().rowIndex===e.rowIndex),n=[];i?n=[...this.rowRenderer.getStickyTopRowCtrls()].sort((s,l)=>s.getRowNode().rowIndex-l.getRowNode().rowIndex):n=[...this.rowRenderer.getStickyBottomRowCtrls()].sort((s,l)=>l.getRowNode().rowIndex-s.getRowNode().rowIndex);let o=t?-1:1,r=n.findIndex(s=>s.getRowNode().rowIndex===e.rowIndex),a=n[r+o];if(a)return{rowIndex:a.getRowNode().rowIndex,rowPinned:null}}getCellBelow(e){if(!e)return null;let t=this.getRowBelow(e);return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null}isLastRowInContainer(e){let t=e.rowPinned,i=e.rowIndex;return t==="top"?this.pinnedRowModel.getPinnedTopRowCount()-1<=i:t==="bottom"?this.pinnedRowModel.getPinnedBottomRowCount()-1<=i:this.pageBoundsService.getLastRow()<=i}getRowAbove(e){let t=e.rowIndex,i=e.rowPinned,n=i?t===0:t===this.pageBoundsService.getFirstRow(),o=!1;if(n)return i==="top"?null:i?this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender("top")?this.getLastFloatingTopRow():null:this.pinnedRowModel.isRowsToRender("top")?this.getLastFloatingTopRow():null;i&&(o=!0);let r=this.rowModel.getRow(e.rowIndex),a=o?void 0:this.getNextStickyPosition(r,!0);return a||{rowIndex:t-1,rowPinned:i}}getCellAbove(e){if(!e)return null;let t=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null}getLastBodyCell(){return{rowIndex:this.pageBoundsService.getLastRow(),rowPinned:null}}getLastFloatingTopRow(){return{rowIndex:this.pinnedRowModel.getPinnedTopRowCount()-1,rowPinned:"top"}}getNextTabbedCell(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)}getNextTabbedCellForwards(e){let t=this.visibleColsService.getAllCols(),i=e.rowIndex,n=e.rowPinned,o=this.visibleColsService.getColAfter(e.column);if(!o){o=t[0];let r=this.getRowBelow(e);if(Fe(r)||!r.rowPinned&&!(this.paginationService?.isRowInPage(r)??!0))return null;i=r?r.rowIndex:null,n=r?r.rowPinned:null}return{rowIndex:i,column:o,rowPinned:n}}getNextTabbedCellBackwards(e){let t=this.visibleColsService.getAllCols(),i=e.rowIndex,n=e.rowPinned,o=this.visibleColsService.getColBefore(e.column);if(!o){o=Ae(t);let r=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});if(Fe(r)||!r.rowPinned&&!(this.paginationService?.isRowInPage(r)??!0))return null;i=r?r.rowIndex:null,n=r?r.rowPinned:null}return{rowIndex:i,column:o,rowPinned:n}}},Ci=(e,t)=>{for(let i in t)t[i]=e;return t},c_=B(B(B(B(B(B(B(B(B(B(B(B(B(B(B({},Ci("@ag-grid-community/core",{dispatchEvent:0,destroy:0,getGridId:0,getGridOption:0,isDestroyed:0,setGridOption:0,updateGridOptions:0,getState:0,setNodesSelected:0,selectAll:0,deselectAll:0,selectAllFiltered:0,deselectAllFiltered:0,selectAllOnCurrentPage:0,deselectAllOnCurrentPage:0,getSelectedNodes:0,getSelectedRows:0,redrawRows:0,setRowNodeExpanded:0,getRowNode:0,addRenderedRowListener:0,getRenderedNodes:0,forEachNode:0,getFirstDisplayedRow:0,getFirstDisplayedRowIndex:0,getLastDisplayedRow:0,getLastDisplayedRowIndex:0,getDisplayedRowAtIndex:0,getDisplayedRowCount:0,getModel:0,getVerticalPixelRange:0,getHorizontalPixelRange:0,ensureColumnVisible:0,ensureIndexVisible:0,ensureNodeVisible:0,getFocusedCell:0,clearFocusedCell:0,setFocusedCell:0,tabToNextCell:0,tabToPreviousCell:0,setFocusedHeader:0,addEventListener:0,addGlobalListener:0,removeEventListener:0,removeGlobalListener:0,expireValueCache:0,getValue:0,getCellValue:0,showColumnMenuAfterButtonClick:0,showColumnMenuAfterMouseClick:0,showColumnMenu:0,hidePopupMenu:0,onSortChanged:0,getPinnedTopRowCount:0,getPinnedBottomRowCount:0,getPinnedTopRow:0,getPinnedBottomRow:0,showLoadingOverlay:0,showNoRowsOverlay:0,hideOverlay:0,setGridAriaProperty:0,refreshCells:0,flashCells:0,refreshHeader:0,isAnimationFrameQueueEmpty:0,flushAllAnimationFrames:0,get
642SizesForCurrentTheme:0,getCellRendererInstances:0,addRowDropZone:0,removeRowDropZone:0,getRowDropZoneParams:0,getColumnDef:0,getColumnDefs:0,sizeColumnsToFit:0,setColumnGroupOpened:0,getColumnGroup:0,getProvidedColumnGroup:0,getDisplayNameForColumn:0,getDisplayNameForColumnGroup:0,getColumn:0,getColumns:0,applyColumnState:0,getColumnState:0,resetColumnState:0,getColumnGroupState:0,setColumnGroupState:0,resetColumnGroupState:0,isPinning:0,isPinningLeft:0,isPinningRight:0,getDisplayedColAfter:0,getDisplayedColBefore:0,setColumnVisible:0,setColumnsVisible:0,setColumnPinned:0,setColumnsPinned:0,getAllGridColumns:0,getDisplayedLeftColumns:0,getDisplayedCenterColumns:0,getDisplayedRightColumns:0,getAllDisplayedColumns:0,getAllDisplayedVirtualColumns:0,moveColumn:0,moveColumnByIndex:0,moveColumns:0,setColumnWidth:0,setColumnWidths:0,getLeftDisplayedColumnGroups:0,getCenterDisplayedColumnGroups:0,getRightDisplayedColumnGroups:0,getAllDisplayedColumnGroups:0,autoSizeColumn:0,autoSizeColumns:0,autoSizeAllColumns:0,undoCellEditing:0,redoCellEditing:0,getCellEditorInstances:0,getEditingCells:0,stopEditing:0,startEditingCell:0,getCurrentUndoSize:0,getCurrentRedoSize:0,isAnyFilterPresent:0,onFilterChanged:0,isColumnFilterPresent:0,getFilterInstance:0,getColumnFilterInstance:0,destroyFilter:0,setFilterModel:0,getFilterModel:0,getColumnFilterModel:0,setColumnFilterModel:0,showColumnFilter:0,isQuickFilterPresent:0,getQuickFilter:0,resetQuickFilter:0,paginationIsLastPageFound:0,paginationGetPageSize:0,paginationGetCurrentPage:0,paginationGetTotalPages:0,paginationGetRowCount:0,paginationGoToNextPage:0,paginationGoToPreviousPage:0,paginationGoToFirstPage:0,paginationGoToLastPage:0,paginationGoToPage:0,expandAll:0,collapseAll:0,onRowHeightChanged:0,setRowCount:0,getCacheBlockState:0,isLastRowIndexKnown:0})),Ci("@ag-grid-community/client-side-row-model",{onGroupExpandedOrCollapsed:0,refreshClientSideRowModel:0,isRowDataEmpty:0,forEachLeafNode:0,forEachNodeAfterFilter:0,forEachNodeAfterFilterAndSort:0,resetRowHeights:0,applyTransaction:0,applyTransactionAsync:0,flushAsyncTransactions:0,getBestCostNodeSelection:0})),Ci("@ag-grid-community/csv-export",{getDataAsCsv:0,exportDataAsCsv:0})),Ci("@ag-grid-community/infinite-row-model",{refreshInfiniteCache:0,purgeInfiniteCache:0,getInfiniteRowCount:0})),Ci("@ag-grid-enterprise/advanced-filter",{getAdvancedFilterModel:0,setAdvancedFilterModel:0,showAdvancedFilterBuilder:0,hideAdvancedFilterBuilder:0})),Ci("@ag-grid-enterprise/charts",{getChartModels:0,getChartRef:0,getChartImageDataURL:0,downloadChart:0,openChartToolPanel:0,closeChartToolPanel:0,createRangeChart:0,createPivotChart:0,createCrossFilterChart:0,updateChart:0,restoreChart:0})),Ci("@ag-grid-enterprise/clipboard",{copyToClipboard:0,cutToClipboard:0,copySelectedRowsToClipboard:0,copySelectedRangeToClipboard:0,copySelectedRangeDown:0,pasteFromClipboard:0})),Ci("@ag-grid-enterprise/excel-export",{getDataAsExcel:0,exportDataAsExcel:0,getSheetDataForExcel:0,getMultipleSheetsAsExcel:0,exportMultipleSheetsAsExcel:0})),Ci("@ag-grid-enterprise/master-detail",{addDetailGridInfo:0,removeDetailGridInfo:0,getDetailGridInfo:0,forEachDetailGridInfo:0})),Ci("@ag-grid-enterprise/menu",{showContextMenu:0,showColumnChooser:0,hideColumnChooser:0})),Ci("@ag-grid-enterprise/range-selection",{getCellRanges:0,addCellRange:0,clearRangeSelection:0,clearCellSelection:0})),Ci("@ag-grid-enterprise/row-grouping",{addAggFunc:0,addAggFuncs:0,clearAggFuncs:0,setColumnAggFunc:0,isPivotMode:0,getPivotResultColumn:0,setValueColumns:0,getValueColumns:0,removeValueColumn:0,removeValueColumns:0,addValueColumn:0,addValueColumns:0,setRowGroupColumns:0,removeRowGroupColumn:0,removeRowGroupColumns:0,addRowGroupColumn:0,addRowGroupColumns:0,getRowGroupColumns:0,moveRowGroupColumn:0,setPivotColumns:0,removePivotColumn:0,removePivotColumns:0,addPivotColumn:0,addPivotColumns:0,getPivotColumns:0,setPivotResultColumns:0,getPivotResultColumns:0})),Ci("@ag-grid-enterprise/server-side-row-model",{getServerSideSelectionState:0,setServerSideSelectionState:0,applyServerSideTransaction:0,applyServerSideTransactionAsync:0,applyServerSideRowData:0,retryServerSideLoads:0,flushServerSideAsyncTransactions:0,refreshServerSide:0,getServerSideGroupLevelState:0})),Ci("@ag-grid-enterprise/side-bar",{isSideBarVisible:0,setSideBarVisible:0,setSideBarPosition:0,openToolPanel:0,closeToolPanel:0,getOpenedToolPanel:0,refreshToolPanel:0,isToolPanelShowing:0,getToolPanelInstance:0,getSideBar:0})),Ci("@ag-grid-enterprise/status-bar",{getStatusPanel:0})),Vg={isDestroyed:()=>!0,destroy(){},preConstruct(){},postConstruct(){},preWireBeans(){},wireBeans(){}},a6=(e,t)=>e.eventService.dispatchEvent(t),Qy=class{};Reflect.defineProperty(Qy,"name",{value:"GridApi"});
642var s6=class extends H{constructor(){super(),this.beanName="apiFunctionService",this.api=new Qy,this.fns=ye(B({},Vg),{dispatchEvent:a6}),this.beans=null,this.preDestroyLink="";let{api:e}=this;for(let t in c_)e[t]=this.makeApi(t)[t]}wireBeans(e){this.beans=e}postConstruct(){this.preDestroyLink=this.frameworkOverrides.getDocLink("grid-lifecycle/#grid-pre-destroyed")}addFunction(e,t){let{fns:i,beans:n}=this;i!==Vg&&(i[e]=n?.validationService?.validateApiFunction(e,t)??t)}makeApi(e){return{[e]:(...t)=>{let{beans:i,fns:{[e]:n}}=this;return n?n(i,...t):this.apiNotFound(e)}}}apiNotFound(e){let{beans:t,gos:i,preDestroyLink:n}=this;if(!t)$(`Grid API function ${e}() cannot be called as the grid has been destroyed. 643Either clear local references to the grid api, when it is destroyed, or check gridApi.isDestroyed() to avoid calling methods against a destroyed grid. 644To run logic when the grid is about to be destroyed use the gridPreDestroy event. See: ${n}`);else{let o=c_[e];i.assertModuleRegistered(o,`api.${e}`)&&$(`API function '${e}' not registered to module '${o}'`)}}destroy(){super.destroy(),this.fns=Vg,this.beans=null}};function l6(e){return{beanName:"gridApi",bean:e.getBean("apiFunctionService").api}}var c6=class extends H{constructor(){super(...arguments),this.beanName="columnDefFactory"}buildColumnDefs(e,t,i){let n=[],o={};return e.forEach(r=>{let a=this.createDefFromColumn(r,t,i),s=!0,l=a,c=r.getOriginalParent(),h=null;for(;c;){let m=null;if(c.isPadding()){c=c.getOriginalParent();continue}let f=o[c.getGroupId()];if(f){f.children.push(l),s=!1;break}if(m=this.createDefFromGroup(c),m&&(m.children=[l],o[m.groupId]=m,l=m,c=c.getOriginalParent()),c!=null&&h===c){s=!1;break}h=c}s&&n.push(l)}),n}createDefFromGroup(e){let t=Kg(e.getColGroupDef(),["children"]);return t&&(t.groupId=e.getGroupId()),t}createDefFromColumn(e,t,i){let n=Kg(e.getColDef());return n.colId=e.getColId(),n.width=e.getActualWidth(),n.rowGroup=e.isRowGroupActive(),n.rowGroupIndex=e.isRowGroupActive()?t.indexOf(e):null,n.pivot=e.isPivotActive(),n.pivotIndex=e.isPivotActive()?i.indexOf(e):null,n.aggFunc=e.isValueActive()?e.getAggFunc():null,n.hide=e.isVisible()?void 0:!0,n.pinned=e.isPinned()?e.getPinned():null,n.sort=e.getSort()?e.getSort():null,n.sortIndex=e.getSortIndex()!=null?e.getSortIndex():null,n}},d6=class extends H{constructor(){super(...arguments),this.beanName="columnEventDispatcher"}visibleCols(e){this.eventService.dispatchEvent({type:"displayedColumnsChanged",source:e})}gridColumns(){this.eventService.dispatchEvent({type:"gridColumnsChanged"})}headerHeight(e){this.eventService.dispatchEvent({type:"columnHeaderHeightChanged",column:e,columns:[e],source:"autosizeColumnHeaderHeight"})}groupHeaderHeight(e){this.eventService.dispatchEvent({type:"columnGroupHeaderHeightChanged",columnGroup:e,source:"autosizeColumnGroupHeaderHeight"})}groupOpened(e){this.eventService.dispatchEvent({type:"columnGroupOpened",columnGroup:e.length===1?e[0]:void 0,columnGroups:e})}rowGroupChanged(e,t){this.eventService.dispatchEvent({type:"columnRowGroupChanged",columns:e,column:e.length===1?e[0]:null,source:t})}genericColumnEvent(e,t,i){this.eventService.dispatchEvent({type:e,columns:t,column:t.length===1?t[0]:null,source:i})}pivotModeChanged(){this.eventService.dispatchEvent({type:"columnPivotModeChanged"})}virtualColumnsChanged(e){this.eventService.dispatchEvent({type:"virtualColumnsChanged",afterScroll:e})}newColumnsLoaded(e){this.eventService.dispatchEvent({type:"newColumnsLoaded",source:e})}everythingChanged(e){this.eventService.dispatchEvent({type:"columnEverythingChanged",source:e})}columnMoved(e){let{movedColumns:t,source:i,toIndex:n,finished:o}=e;this.eventService.dispatchEvent({type:"columnMoved",columns:t,column:t&&t.length===1?t[0]:null,toIndex:n,finished:o,source:i})}columnPinned(e,t){if(!e.length)return;let i=e.length===1?e[0]:null,n=this.getCommonValue(e,o=>o.getPinned());this.eventService.dispatchEvent({type:"columnPinned",pinned:n??null,columns:e,column:i,source:t})}columnVisible(e,t){if(!e.length)return;let i=e.length===1?e[0]:null,n=this.getCommonValue(e,o=>o.isVisible());this.eventService.dispatchEvent({type:"columnVisible",visible:n,columns:e,column:i,source:t})}getCommonValue(e,t){if(!e||e.length==0)return;let i=t(e[0]);for(let n=1;n<e.length;
644n++)if(i!==t(e[n]))return;return i}columnChanged(e,t,i){this.eventService.dispatchEvent({type:e,columns:t,column:t&&t.length==1?t[0]:null,source:i})}columnResized(e,t,i,n=null){e&&e.length&&this.eventService.dispatchEvent({type:"columnResized",columns:e,column:e.length===1?e[0]:null,flexColumns:n,finished:t,source:i})}},u6=class extends H{constructor(){super(...arguments),this.beanName="columnGetStateService"}wireBeans(e){this.columnModel=e.columnModel,this.funcColsService=e.funcColsService}getColumnState(){let e=this.columnModel.getColDefCols();if(Fe(e)||!this.columnModel.isAlive())return[];let i=this.columnModel.getAllCols().map(n=>this.createStateItemFromColumn(n));return this.orderColumnStateList(i),i}createStateItemFromColumn(e){let t=this.funcColsService.getRowGroupColumns(),i=this.funcColsService.getPivotColumns(),n=e.isRowGroupActive()?t.indexOf(e):null,o=e.isPivotActive()?i.indexOf(e):null,r=e.isValueActive()?e.getAggFunc():null,a=e.getSort()!=null?e.getSort():null,s=e.getSortIndex()!=null?e.getSortIndex():null,l=e.getFlex()!=null&&e.getFlex()>0?e.getFlex():null;return{colId:e.getColId(),width:e.getActualWidth(),hide:!e.isVisible(),pinned:e.getPinned(),sort:a,sortIndex:s,aggFunc:r,rowGroup:e.isRowGroupActive(),rowGroupIndex:n,pivot:e.isPivotActive(),pivotIndex:o,flex:l}}orderColumnStateList(e){let t=this.columnModel.getCols(),i=new Map(t.map((n,o)=>[n.getColId(),o]));e.sort((n,o)=>{let r=i.has(n.colId)?i.get(n.colId):-1,a=i.has(o.colId)?i.get(o.colId):-1;return r-a})}},p6=class extends H{constructor(){super(...arguments),this.beanName="columnGroupStateService"}wireBeans(e){this.columnModel=e.columnModel,this.columnAnimationService=e.columnAnimationService,this.eventDispatcher=e.columnEventDispatcher,this.visibleColsService=e.visibleColsService}getColumnGroupState(){let e=[],t=this.columnModel.getColTree();return xo(null,t,i=>{_i(i)&&e.push({groupId:i.getGroupId(),open:i.isExpanded()})}),e}resetColumnGroupState(e){let t=this.columnModel.getColDefColTree();if(!t)return;let i=[];xo(null,t,n=>{if(_i(n)){let o=n.getColGroupDef(),r={groupId:n.getGroupId(),open:o?o.openByDefault:void 0};i.push(r)}}),this.setColumnGroupState(i,e)}setColumnGroupState(e,t){if(!this.columnModel.getColTree())return;this.columnAnimationService.start();let n=[];e.forEach(o=>{let r=o.groupId,a=o.open,s=this.columnModel.getProvidedColGroup(r);s&&s.isExpanded()!==a&&(s.setExpanded(a),n.push(s))}),this.visibleColsService.refresh(t,!0),n.length&&this.eventDispatcher.groupOpened(n),this.columnAnimationService.finish()}},h6=class extends H{constructor(){super(...arguments),this.beanName="columnViewportService",this.colsWithinViewport=[],this.headerColsWithinViewport=[],this.colsWithinViewportHash="",this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={}}wireBeans(e){this.visibleColsService=e.visibleColsService,this.columnModel=e.columnModel,this.eventDispatcher=e.columnEventDispatcher}postConstruct(){this.suppressColumnVirtualisation=this.gos.get("suppressColumnVirtualisation")}setScrollPosition(e,t,i=!1){let n=this.visibleColsService.isBodyWidthDirty();if(!(e===this.scrollWidth&&t===this.scrollPosition&&!n)){if(this.scrollWidth=e,this.scrollPosition=t,this.visibleColsService.setBodyWidthDirty(),this.gos.get("enableRtl")){let r=this.visibleColsService.getBodyContainerWidth();this.viewportLeft=r-this.scrollPosition-this.scrollWidth,this.viewportRight=r-this.scrollPosition}else this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition;this.columnModel.isReady()&&this.checkViewportColumns(i)}}getHeadersToRender(e,t){let i;switch(e){case"left":i=this.rowsOfHeadersToRenderLeft[t];break;case"right":i=this.rowsOfHeadersToRenderRight[t];break;default:i=this.rowsOfHeadersToRenderCenter[t];break}return i||[]}extractViewportColumns(){let e=this.visibleColsService.getCenterCols();this.isColumnVirtualisationSuppressed()?(this.colsWithinViewport=e,this.headerColsWithinViewport=e):(this.colsWithinViewport=e.filter(this.isColumnInRowViewport.bind(this)),this.headerColsWithinViewport=e.filter(this.isColumnInHeaderViewport.bind(this)))}isColumnVirtualisationSuppressed(){return this.suppressColumnVirtualisation||this.viewportRight===0}clear(){this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={},this.colsWithinViewportHash=""}isColumnInHeaderViewport(e){return e.isAutoHeaderHeight()||this.isAnyParentAutoHeaderHeight(e)?!0:this.isColumnInRowViewport(e)}isAnyParentAutoHeaderHeight(e){for(;e;){if(e.isAutoHeaderHeight())return!0;e=e.getParent()}return!1}isColumnInRowViewport(e){if(e.isAutoHeight())return!0;let t=e.getLeft()||0,i=t+e.getActualWidth(),n=this.viewportLeft-200,o=this.viewportRight+200,r=t<n&&i<n,a=t>o&&i>o;return!r&&!a}getViewportColumns(){let e=this.visibleColsService.getLeftCols(),t=this.visibleColsService.getRightCols();return this.colsWithinViewport.concat(e).concat(t)}getColsWithinViewport(e){if(!this.columnModel.isColSpanActive())return this.colsWithinViewport;let t=o=>{let r=o.getLeft();return K(r)&&r>this.viewportLeft},i=this.isColumnVirtualisationSuppressed()?void 0:this.isColumnInRowViewport.bind(this),n=this.visibleColsService.getColsCenter();return this.visibleColsService.getColsForRow(e,n,i,t)}checkViewportColumns(e=!1){this.extractViewport()&&this.eventDispatcher.virtualColumnsChanged(e)}calculateHeaderRows(){this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={};let e={},t=this.visibleColsService.getLeftCols(),i=this.visibleColsService.getRightCols();
644this.headerColsWithinViewport.concat(t).concat(i).forEach(r=>e[r.getId()]=!0);let o=(r,a,s)=>{let l=!1;for(let c=0;c<r.length;c++){let h=r[c],m=!1;if(or(h))m=e[h.getId()]===!0;else{let b=h.getDisplayedChildren();b&&(m=o(b,a,s+1))}m&&(l=!0,a[s]||(a[s]=[]),a[s].push(h))}return l};o(this.visibleColsService.getTreeLeft(),this.rowsOfHeadersToRenderLeft,0),o(this.visibleColsService.getTreeRight(),this.rowsOfHeadersToRenderRight,0),o(this.visibleColsService.getTreeCenter(),this.rowsOfHeadersToRenderCenter,0)}extractViewport(){let e=n=>`${n.getId()}-${n.getPinned()||"normal"}`;this.extractViewportColumns();let t=this.getViewportColumns().map(e).join("#"),i=this.colsWithinViewportHash!==t;return i&&(this.colsWithinViewportHash=t,this.calculateHeaderRows()),i}},g6=class extends H{constructor(){super(...arguments),this.beanName="agComponentUtils"}wireBeans(e){this.componentMetadataProvider=e.componentMetadataProvider}adaptFunction(e,t){let i=this.componentMetadataProvider.retrieve(e);return i&&i.functionAdapter?i.functionAdapter(t):null}adaptCellRendererFunction(e){class t{refresh(){return!1}getGui(){return this.eGui}init(n){let o=e(n),r=typeof o;if(r==="string"||r==="number"||r==="boolean"){this.eGui=Wl("<span>"+o+"</span>");return}if(o==null){this.eGui=Wl("<span></span>");return}this.eGui=o}}return t}doesImplementIComponent(e){return e?e.prototype&&"getGui"in e.prototype:!1}},m6=class extends H{constructor(){super(...arguments),this.beanName="componentMetadataProvider"}wireBeans(e){this.agComponentUtils=e.agComponentUtils}postConstruct(){this.componentMetaData={dateComponent:{mandatoryMethodList:["getDate","setDate"],optionalMethodList:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled","onParamsUpdated","refresh"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},dragAndDropImageComponent:{mandatoryMethodList:["setIcon","setLabel"],optionalMethodList:[]},headerComponent:{mandatoryMethodList:[],optionalMethodList:["refresh"]},headerGroupComponent:{mandatoryMethodList:[],optionalMethodList:[]},loadingCellRenderer:{mandatoryMethodList:[],optionalMethodList:[],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},loadingOverlayComponent:{mandatoryMethodList:[],optionalMethodList:["refresh"]},noRowsOverlayComponent:{mandatoryMethodList:[],optionalMethodList:["refresh"]},floatingFilterComponent:{mandatoryMethodList:["onParentModelChanged"],optionalMethodList:["afterGuiAttached","onParamsUpdated","refresh"]},cellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},cellEditor:{mandatoryMethodList:["getValue"],optionalMethodList:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached","refresh"]},innerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},fullWidthCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},filter:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged","refresh"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["refresh"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","getState"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]},menuItem:{mandatoryMethodList:[],optionalMethodList:["setActive","select","setExpanded","configureDefaults"]}}}retrieve(e){return this.componentMetaData[e]}},f6=["rowPositionUtils","cellPositionUtils","headerPositionUtils","paginationAutoPageSizeService","apiFunctionService","gridApi","userComponentRegistry","agComponentUtils","componentMetadataProvider","resizeObserverService","userComponentFactory","rowContainerHeightService","horizontalResizeService","localeService","validationService","pinnedRowModel","dragService","visibleColsService","eventService","gos","popupService","selectionService","columnFilterService","quickFilterService","filterManager","columnModel","headerNavigationService","pageBoundsService","paginationService","pageBoundsListener","rowRenderer","expressionService","columnFactory","alignedGridsService","navigationService","valueCache","valueService","loggerFactory","autoWidthCalculator","filterMenuFactory","dragAndDropService","focusService","mouseEventService","environment","cellNavigationService","stylingService","scrollVisibleService","sortController","columnHoverService","columnAnimationService","selectableService","autoColService","controlsColService","changeDetectionService","animationFrameService","undoRedoService","columnDefFactory","rowCssClassCalculator","rowNodeBlockLoader","rowNodeSorter","ctrlsService","pinnedWidthService","rowNodeEventThrottle","ctrlsFactory","dataTypeService","syncService","overlayService","stateService","expansionService","apiEventService","ariaAnnouncementService","menuService","columnApplyStateService","columnEventDispatcher","columnMoveService","columnAutosizeService","columnGetStateService","columnGroupStateService","columnSizeService","funcColsService","columnNameService","columnViewportService","pivotResultColsService","showRowGroupColsService"],d_=Object.fromEntries(f6.map((e,t)=>[e,t]));function v6(e,t){let i=(e.beanName?d_[e.beanName]:void 0)??Number.MAX_SAFE_INTEGER,n=(t.beanName?d_[t.beanName]:void 0)??Number.MAX_SAFE_INTEGER;return i-n}function C6(e,t){return e?.beanName==="gridDestroyService"?-1:0}var b6=class extends H{constructor(){super(...arguments),this.beanName="
644ctrlsFactory",this.registry={}}register(e){this.registry[e.name]=e.classImp}getInstance(e,...t){let i=this.registry[e];if(i!=null)return new i(...t)}},_6=class extends H{constructor(){super(...arguments),this.beanName="ctrlsService",this.params={gridCtrl:void 0,gridBodyCtrl:void 0,center:void 0,left:void 0,right:void 0,bottomCenter:void 0,bottomLeft:void 0,bottomRight:void 0,topCenter:void 0,topLeft:void 0,topRight:void 0,stickyTopCenter:void 0,stickyTopLeft:void 0,stickyTopRight:void 0,stickyBottomCenter:void 0,stickyBottomLeft:void 0,stickyBottomRight:void 0,fakeHScrollComp:void 0,fakeVScrollComp:void 0,gridHeaderCtrl:void 0,centerHeader:void 0,leftHeader:void 0,rightHeader:void 0},this.ready=!1,this.readyCallbacks=[],this.runReadyCallbacksAsync=!1}wireBeans(e){this.runReadyCallbacksAsync=e.frameworkOverrides.runWhenReadyAsync?.()??!1}postConstruct(){this.addEventListener("ready",()=>{this.updateReady(),this.ready&&(this.readyCallbacks.forEach(e=>e(this.params)),this.readyCallbacks.length=0)},this.runReadyCallbacksAsync)}updateReady(){this.ready=Object.values(this.params).every(e=>e?.isAlive()??!1)}whenReady(e,t){this.ready?t(this.params):this.readyCallbacks.push(t),e.addDestroyFunc(()=>{let i=this.readyCallbacks.indexOf(t);i>=0&&this.readyCallbacks.splice(i,1)})}register(e,t){this.params[e]=t,this.updateReady(),this.ready&&this.dispatchLocalEvent({type:"ready"}),t.addDestroyFunc(()=>{this.updateReady()})}get(e){return this.params[e]}getGridBodyCtrl(){return this.params.gridBodyCtrl}getHeaderRowContainerCtrls(){let{leftHeader:e,centerHeader:t,rightHeader:i}=this.params;return[e,i,t]}getHeaderRowContainerCtrl(e){let t=this.params;switch(e){case"left":return t.leftHeader;case"right":return t.rightHeader;default:return t.centerHeader}}},y6=class extends H{constructor(){super(...arguments),this.beanName="cellPositionUtils"}createId(e){let{rowIndex:t,rowPinned:i,column:n}=e;return this.createIdFromValues({rowIndex:t,column:n,rowPinned:i})}createIdFromValues(e){let{rowIndex:t,rowPinned:i,column:n}=e;return`${t}.${i??"null"}.${n.getId()}`}equals(e,t){let i=e.column===t.column,n=e.rowPinned===t.rowPinned,o=e.rowIndex===t.rowIndex;return i&&n&&o}},w6=class extends H{constructor(){super(...arguments),this.beanName="rowNodeEventThrottle",this.events=[]}wireBeans(e){this.animationFrameService=e.animationFrameService,this.rowModel=e.rowModel}postConstruct(){at(this.gos)&&(this.clientSideRowModel=this.rowModel)}dispatchExpanded(e,t){if(this.clientSideRowModel==null){this.eventService.dispatchEvent(e);return}this.events.push(e);let i=()=>{this.clientSideRowModel&&this.clientSideRowModel.onRowGroupOpened(),this.events.forEach(n=>this.eventService.dispatchEvent(n)),this.events=[]};t?i():(this.dispatchExpandedDebounced==null&&(this.dispatchExpandedDebounced=this.animationFrameService.debounce(i)),this.dispatchExpandedDebounced())}},x6=class extends H{constructor(){super(...arguments),this.beanName="rowPositionUtils"}wireBeans(e){this.rowModel=e.rowModel,this.pinnedRowModel=e.pinnedRowModel,this.pageBoundsService=e.pageBoundsService}getFirstRow(){let e=0,t;return this.pinnedRowModel.getPinnedTopRowCount()?t="top":this.rowModel.getRowCount()?(t=null,e=this.pageBoundsService.getFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(t="bottom"),t===void 0?null:{rowIndex:e,rowPinned:t}}getLastRow(){let e,t=null,i=this.pinnedRowModel.getPinnedBottomRowCount(),n=this.pinnedRowModel.getPinnedTopRowCount();return i?(t="bottom",e=i-1):this.rowModel.getRowCount()?(t=null,e=this.pageBoundsService.getLastRow()):n&&(t="top",e=n-1),e===void 0?null:{rowIndex:e,rowPinned:t}}getRowNode(e){switch(e.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRow(e.rowIndex);case"bottom":return this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);default:return this.rowModel.getRow(e.rowIndex)}}sameRow(e,t){return!e&&!t?!0:e&&!t||!e&&t?!1:e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned}before(e,t){switch(e.rowPinned){case"top":if(t.rowPinned!=="top")return!0;break;case"bottom":if(t.rowPinned!=="bottom")return!1;break;default:if(K(t.rowPinned))return t.rowPinned!=="top";break}return e.rowIndex<t.rowIndex}},u_={cssName:"--ag-row-height",changeKey:"rowHeightChanged",defaultValue:42}
644,p_={cssName:"--ag-header-height",changeKey:"headerHeightChanged",defaultValue:48},h_={cssName:"--ag-list-item-height",changeKey:"listItemHeightChanged",defaultValue:24},S6=class extends H{constructor(){super(...arguments),this.beanName="environment",this.sizeEls=new Map,this.lastKnownValues=new Map,this.ancestorThemeClasses=[],this.sizesMeasured=!1,this.gridTheme=null}wireBeans(e){this.resizeObserverService=e.resizeObserverService,this.eGridDiv=e.eGridDiv}postConstruct(){this.addManagedPropertyListener("theme",()=>this.handleThemeGridOptionChange()),this.handleThemeGridOptionChange(),this.addDestroyFunc(()=>this.stopUsingTheme()),this.addManagedPropertyListener("rowHeight",()=>this.refreshRowHeightVariable()),this.ancestorThemeClasses=this.readAncestorThemeClasses(),this.setUpThemeClassObservers(),this.getSizeEl(u_),this.getSizeEl(p_),this.getSizeEl(h_)}getDefaultRowHeight(){return this.getCSSVariablePixelValue(u_)}getDefaultHeaderHeight(){return this.getCSSVariablePixelValue(p_)}getDefaultColumnMinWidth(){return Math.min(36,this.getDefaultRowHeight())}getDefaultListItemHeight(){return this.getCSSVariablePixelValue(h_)}hasMeasuredSizes(){return this.sizesMeasured}getGridThemeClass(){return this.gridTheme?.getCssClass()||null}getThemeClasses(){return this.gridTheme?[this.gridTheme.getCssClass()]:this.ancestorThemeClasses}applyThemeClasses(e){let t=this.getThemeClasses();for(let i of Array.from(e.classList))i.startsWith("ag-theme-")&&!t.includes(i)&&e.classList.remove(i);e.classList.add(...t)}refreshRowHeightVariable(){let e=this.eGridDiv.style.getPropertyValue("--ag-line-height").trim(),t=this.gos.get("rowHeight");if(t==null||isNaN(t)||!isFinite(t))return e!==null&&this.eGridDiv.style.setProperty("--ag-line-height",null),-1;let i=`${t}px`;return e!=i?(this.eGridDiv.style.setProperty("--ag-line-height",i),t):e!=""?parseFloat(e):-1}getCSSVariablePixelValue(e){let t=this.lastKnownValues.get(e);if(t!=null)return t;let i=this.measureSizeEl(e);return i==="detached"||i==="no-styles"?e.defaultValue:(this.lastKnownValues.set(e,i),i)}measureSizeEl(e){let t=this.getSizeEl(e);if(t.offsetParent==null)return"detached";let i=t.offsetWidth;return i===g_?"no-styles":(this.sizesMeasured=!0,i)}getSizeEl(e){let t=this.sizeEls.get(e);if(t)return t;let i=this.eMeasurementContainer;i||(i=this.eMeasurementContainer=document.createElement("div"),i.className="ag-measurement-container",this.gos.get("theme")&&this.applyThemeClasses(i),this.eGridDiv.appendChild(i)),t=document.createElement("div"),t.style.width=`var(${e.cssName}, ${g_}px)`,i.appendChild(t),this.sizeEls.set(e,t);let n=this.measureSizeEl(e);n==="no-styles"&&$(`no value for ${e.cssName}. This usually means that the grid has been initialised before styles have been loaded. The default value of ${e.defaultValue} will be used and updated when styles load.`);let o=this.resizeObserverService.observeResize(t,()=>{let r=this.measureSizeEl(e);r==="detached"||r==="no-styles"||(this.lastKnownValues.set(e,r),r!==n&&(n=r,this.fireGridStylesChangedEvent(e.changeKey)))});return this.addDestroyFunc(()=>o()),t}fireGridStylesChangedEvent(e){this.eventService.dispatchEvent({type:"gridStylesChanged",[e]:!0})}setUpThemeClassObservers(){let e=new MutationObserver(()=>{let i=this.readAncestorThemeClasses();k6(i,this.ancestorThemeClasses)||(this.ancestorThemeClasses=i,this.fireGridStylesChangedEvent("themeChanged"))}),t=this.eGridDiv;for(;t;)e.observe(t||this.eGridDiv,{attributes:!0,attributeFilter:["class"]}),t=t.parentElement;this.addDestroyFunc(()=>e.disconnect())}readAncestorThemeClasses(){let e=this.eGridDiv,t=[];for(;e;){let i=Array.from(e.classList).filter(n=>n.startsWith("ag-theme-"));for(let n of i)t.includes(n)||t.unshift(n);e=e.parentElement}return Object.freeze(t)}handleThemeGridOptionChange(){let{gos:e,eMeasurementContainer:t,gridTheme:i}=this,n=e.get("theme")||null;n!==i&&(i?.stopUse(),this.gridTheme=n,n?.startUse({loadThemeGoogleFonts:e.get("loadThemeGoogleFonts"),container:this.eGridDiv}),t&&this.applyThemeClasses(t),this.fireGridStylesChangedEvent("themeChanged"))}stopUsingTheme(){this.gridTheme?.stopUse(),this.gridTheme=null}},k6=(e,t)=>e.length===t.length&&e.findIndex((i,n)=>e[n]!==t[n])===-1,g_=15538,E6=class extends H{constructor(){super(...arguments),this.beanName="eventService",this.globalEventService=new cs}wireBeans(e){this.globalEventListener=e.globalEventListener,this.globalSyncEventListener=e.globalSyncEventListener}postConstruct(){if(this.globalEventListener){let e=mu(this.gos);this.addGlobalListener(this.globalEventListener,e)}this.globalSyncEventListener&&this.addGlobalListener(this.globalSyncEventListener,!1)}addEventListener(e,t,i){this.globalEventService.addEventListener(e,t,i)}removeEventListener(e,t,i){this.globalEventService.removeEventListener(e,t,i)}addGlobalListener(e,t=!1){this.globalEventService.addGlobalListener(e,t)}removeGlobalListener(e,t=!1){this.globalEventService.removeGlobalListener(e,t)}
644dispatchLocalEvent(){}dispatchEvent(e){this.globalEventService.dispatchEvent(this.gos.addGridCommonParams(e))}dispatchEventOnce(e){this.globalEventService.dispatchEventOnce(this.gos.addGridCommonParams(e))}},M6=(()=>{let e=class an extends H{constructor(){super(...arguments),this.beanName="focusService"}wireBeans(i){this.eGridDiv=i.eGridDiv,this.columnModel=i.columnModel,this.visibleColsService=i.visibleColsService,this.headerNavigationService=i.headerNavigationService,this.headerPositionUtils=i.headerPositionUtils,this.rowRenderer=i.rowRenderer,this.rowPositionUtils=i.rowPositionUtils,this.cellPositionUtils=i.cellPositionUtils,this.navigationService=i.navigationService,this.ctrlsService=i.ctrlsService,this.filterManager=i.filterManager,this.rangeService=i.rangeService,this.advancedFilterService=i.advancedFilterService,this.overlayService=i.overlayService}static addKeyboardModeEvents(i){this.instanceCount>0||(i.addEventListener("keydown",an.toggleKeyboardMode),i.addEventListener("mousedown",an.toggleKeyboardMode))}static removeKeyboardModeEvents(i){this.instanceCount>0||(i.removeEventListener("keydown",an.toggleKeyboardMode),i.removeEventListener("mousedown",an.toggleKeyboardMode))}static toggleKeyboardMode(i){let n=an.keyboardModeActive,o=i.type==="keydown";o&&(i.ctrlKey||i.metaKey||i.altKey)||n!==o&&(an.keyboardModeActive=o)}postConstruct(){let i=this.clearFocusedCell.bind(this);this.addManagedEventListeners({columnPivotModeChanged:i,newColumnsLoaded:this.onColumnEverythingChanged.bind(this),columnGroupOpened:i,columnRowGroupChanged:i}),this.registerKeyboardFocusEvents(),this.ctrlsService.whenReady(this,n=>{this.gridCtrl=n.gridCtrl})}registerKeyboardFocusEvents(){let i=dt(this.gos);an.addKeyboardModeEvents(i),an.instanceCount++,this.addDestroyFunc(()=>{an.instanceCount--,an.removeKeyboardModeEvents(i)})}onColumnEverythingChanged(){if(!this.focusedCellPosition)return;let i=this.focusedCellPosition.column,n=this.columnModel.getCol(i.getId());i!==n&&this.clearFocusedCell()}isKeyboardMode(){return an.keyboardModeActive}getFocusCellToUseAfterRefresh(){return this.gos.get("suppressFocusAfterRefresh")||!this.focusedCellPosition||this.isDomDataMissingInHierarchy(nt(this.gos),jr.DOM_DATA_KEY_ROW_CTRL)?null:this.focusedCellPosition}getFocusHeaderToUseAfterRefresh(){return this.gos.get("suppressFocusAfterRefresh")||!this.focusedHeaderPosition||this.isDomDataMissingInHierarchy(nt(this.gos),Ru.DOM_DATA_KEY_HEADER_CTRL)?null:this.focusedHeaderPosition}isDomDataMissingInHierarchy(i,n){let o=i;for(;o;){if(Bl(this.gos,o,n))return!1;o=o.parentNode}return!0}getFocusedCell(){return this.focusedCellPosition}shouldRestoreFocus(i){return this.isCellRestoreFocused(i)?(setTimeout(()=>{this.restoredFocusedCellPosition=null},0),!0):!1}clearRestoreFocus(){this.restoredFocusedCellPosition=null,this.awaitRestoreFocusedCell=!1}restoreFocusedCell(i,n){this.awaitRestoreFocusedCell=!0,setTimeout(()=>{this.awaitRestoreFocusedCell&&(this.setRestoreFocusedCell(i),n())})}isCellRestoreFocused(i){return this.restoredFocusedCellPosition==null?!1:this.cellPositionUtils.equals(i,this.restoredFocusedCellPosition)}setRestoreFocusedCell(i){this.getFrameworkOverrides().renderingEngine==="react"&&(this.restoredFocusedCellPosition=i)}getFocusEventParams(i){let{rowIndex:n,rowPinned:o,column:r}=i,a={rowIndex:n,rowPinned:o,column:r,isFullWidthCell:!1},s=this.rowRenderer.getRowByPosition({rowIndex:n,rowPinned:o});return s&&(a.isFullWidthCell=s.isFullWidth()),a}clearFocusedCell(){if(this.restoredFocusedCellPosition=null,this.focusedCellPosition==null)return;let i=this.getFocusEventParams(this.focusedCellPosition);this.focusedCellPosition=null,this.eventService.dispatchEvent(B({type:"cellFocusCleared"},i))}setFocusedCell(i){let{column:n,rowIndex:o,rowPinned:r,forceBrowserFocus:a=!1,preventScrollOnBrowserFocus:s=!1}=i,l=this.columnModel.getCol(n);if(!l){this.focusedCellPosition=null;return}this.focusedCellPosition={rowIndex:o,rowPinned:_o(r),column:l},this.eventService.dispatchEvent(ye(B({type:"cellFocused"},this.getFocusEventParams(this.focusedCellPosition)),{forceBrowserFocus:a,preventScrollOnBrowserFocus:s}))}isCellFocused(i){return this.focusedCellPosition==null?!1:this.cellPositionUtils.equals(i,this.focusedCellPosition)}isRowNodeFocused(i){return this.isRowFocused(i.rowIndex,i.rowPinned)}
644isHeaderWrapperFocused(i){if(this.focusedHeaderPosition==null)return!1;let n=i.getColumnGroupChild(),o=i.getRowIndex(),r=i.getPinned(),{column:a,headerRowIndex:s}=this.focusedHeaderPosition;return n===a&&o===s&&r==a.getPinned()}clearFocusedHeader(){this.focusedHeaderPosition=null}getFocusedHeader(){return this.focusedHeaderPosition}setFocusedHeader(i,n){this.focusedHeaderPosition={headerRowIndex:i,column:n}}isHeaderFocusSuppressed(){return this.gos.get("suppressHeaderFocus")||this.overlayService.isExclusive()}isCellFocusSuppressed(){return this.gos.get("suppressCellFocus")||this.overlayService.isExclusive()}focusHeaderPosition(i){if(this.isHeaderFocusSuppressed())return!1;let{direction:n,fromTab:o,allowUserOverride:r,event:a,fromCell:s,rowWithoutSpanValue:l}=i,{headerPosition:c}=i;if(s&&this.filterManager?.isAdvancedFilterHeaderActive())return this.focusAdvancedFilter(c);if(r){let h=this.getFocusedHeader(),m=this.headerNavigationService.getHeaderRowCount();if(o){let f=this.gos.getCallback("tabToNextHeader");f&&(c=this.getHeaderPositionFromUserFunc({userFunc:f,direction:n,currentPosition:h,headerPosition:c,headerRowCount:m}))}else{let f=this.gos.getCallback("navigateToNextHeader");if(f&&a){let b={key:a.key,previousHeaderPosition:h,nextHeaderPosition:c,headerRowCount:m,event:a};c=f(b)}}}return c?this.focusProvidedHeaderPosition({headerPosition:c,direction:n,event:a,fromCell:s,rowWithoutSpanValue:l}):!1}focusHeaderPositionFromUserFunc(i){if(this.isHeaderFocusSuppressed())return!1;let{userFunc:n,headerPosition:o,direction:r,event:a}=i,s=this.getFocusedHeader(),l=this.headerNavigationService.getHeaderRowCount(),c=this.getHeaderPositionFromUserFunc({userFunc:n,direction:r,currentPosition:s,headerPosition:o,headerRowCount:l});return!!c&&this.focusProvidedHeaderPosition({headerPosition:c,direction:r,event:a})}getHeaderPositionFromUserFunc(i){let{userFunc:n,direction:o,currentPosition:r,headerPosition:a,headerRowCount:s}=i,c=n({backwards:o==="Before",previousHeaderPosition:r,nextHeaderPosition:a,headerRowCount:s});return c===!0||c===null?(c===null&&$("Since v31.3 Returning `null` from tabToNextHeader is deprecated. Return `true` to stay on the current header, or `false` to let the browser handle the tab behaviour."),r):c===!1?null:c}focusProvidedHeaderPosition(i){let{headerPosition:n,direction:o,fromCell:r,rowWithoutSpanValue:a,event:s}=i,{column:l,headerRowIndex:c}=n;if(c===-1)return this.filterManager?.isAdvancedFilterHeaderActive()?this.focusAdvancedFilter(n):this.focusGridView(l);this.headerNavigationService.scrollToColumn(l,o);let m=this.ctrlsService.getHeaderRowContainerCtrl(l.getPinned())?.focusHeader(n.headerRowIndex,l,s)||!1;return m&&(a!=null||r)&&this.headerNavigationService.setCurrentHeaderRowWithoutSpan(a??-1),m}focusFirstHeader(){if(this.overlayService.isExclusive()&&this.focusOverlay())return!0;let i=this.visibleColsService.getAllCols()[0];if(!i)return!1;i.getParent()&&(i=this.visibleColsService.getColGroupAtLevel(i,0));let n=this.headerPositionUtils.getHeaderIndexToFocus(i,0);return this.focusHeaderPosition({headerPosition:n,rowWithoutSpanValue:0})}focusLastHeader(i){if(this.overlayService.isExclusive()&&this.focusOverlay(!0))return!0;let n=this.headerNavigationService.getHeaderRowCount()-1,o=Ae(this.visibleColsService.getAllCols());return this.focusHeaderPosition({headerPosition:{headerRowIndex:n,column:o},rowWithoutSpanValue:-1,event:i})}focusPreviousFromFirstCell(i){return this.filterManager?.isAdvancedFilterHeaderActive()?this.focusAdvancedFilter(null):this.focusLastHeader(i)}isAnyCellFocused(){return!!this.focusedCellPosition}isRowFocused(i,n){return this.focusedCellPosition==null?!1:this.focusedCellPosition.rowIndex===i&&this.focusedCellPosition.rowPinned===_o(n)}findFocusableElements(i,n,o=!1){let r=YR,a=W_;n&&(a+=", "+n),o&&(a+=', [tabindex="-1"]');let s=Array.prototype.slice.apply(i.querySelectorAll(r)).filter(h=>Mn(h)),l=Array.prototype.slice.apply(i.querySelectorAll(a));return l.length?((h,m)=>h.filter(f=>m.indexOf(f)===-1))(s,l):s}focusInto(i,n=!1,o=!1){let r=this.findFocusableElements(i,null,o),a=n?Ae(r):r[0];return a?(a.focus({preventScroll:!0}),!0):!1}findFocusableElementBeforeTabGuard(i,n){if(!n)return null;let o=this.findFocusableElements(i),r=o.indexOf(n);if(r===-1)return null;let a=-1;for(let s=r-1;s>=0;s--)if(o[s].classList.contains("ag-tab-guard-top")){a=s;break}return a<=0?null:o[a-1]}findNextFocusableElement(i=this.eGridDiv,n,o){let r=this.findFocusableElements(i,n?':not([tabindex="-1"])':null),a=nt(this.gos),s;n?s=r.findIndex(c=>c.contains(a)):s=r.indexOf(a);let l=s+(o?-1:1);return l<0||l>=r.length?null:r[l]}
644isTargetUnderManagedComponent(i,n){if(!n)return!1;let o=i.querySelectorAll(`.${Kr.FOCUS_MANAGED_CLASS}`);if(!o.length)return!1;for(let r=0;r<o.length;r++)if(o[r].contains(n))return!0;return!1}findTabbableParent(i,n=5){let o=0;for(;i&&em(i)===null&&++o<=n;)i=i.parentElement;return em(i)===null?null:i}focusOverlay(i){let n=this.overlayService.isVisible()&&this.overlayService.getOverlayWrapper()?.getGui();return!!n&&this.focusInto(n,i)}focusGridViewFailed(i,n){return n&&this.focusOverlay(i)||i&&this.focusLastHeader()}focusGridView(i,n=!1,o=!0){if(this.overlayService.isExclusive())return o&&this.focusOverlay(n);if(this.isCellFocusSuppressed())return n&&!this.isHeaderFocusSuppressed()?this.focusLastHeader():o&&this.focusOverlay(n)?!0:this.focusNextGridCoreContainer(!1);let r=n?this.rowPositionUtils.getLastRow():this.rowPositionUtils.getFirstRow();if(r){let{rowIndex:a,rowPinned:s}=r;if(i??(i=this.getFocusedHeader()?.column),i&&a!==void 0&&a!==null)return this.navigationService.ensureCellVisible({rowIndex:a,column:i,rowPinned:s}),n&&this.rowRenderer.getRowByPosition(r)?.isFullWidth()&&this.navigationService.tryToFocusFullWidthRow(r,n)||(this.setFocusedCell({rowIndex:a,column:i,rowPinned:_o(s),forceBrowserFocus:!0}),this.rangeService?.setRangeToCell({rowIndex:a,rowPinned:s,column:i})),!0}return!!(o&&this.focusOverlay(n)||n&&this.focusLastHeader())}isGridFocused(){let i=nt(this.gos);return!!i&&this.eGridDiv.contains(i)}focusNextGridCoreContainer(i,n=!1){return!n&&this.gridCtrl.focusNextInnerContainer(i)?!0:((n||!i&&!this.gridCtrl.isDetailGrid())&&this.gridCtrl.forceFocusOutOfContainer(i),!1)}focusAdvancedFilter(i){return this.advancedFilterFocusColumn=i?.column,this.advancedFilterService?.getCtrl().focusHeaderComp()??!1}focusNextFromAdvancedFilter(i,n){let o=(n?void 0:this.advancedFilterFocusColumn)??this.visibleColsService.getAllCols()?.[0];return i?this.focusHeaderPosition({headerPosition:{column:o,headerRowIndex:this.headerNavigationService.getHeaderRowCount()-1}}):this.focusGridView(o)}clearAdvancedFilterColumn(){this.advancedFilterFocusColumn=void 0}addFocusableContainer(i){this.gridCtrl.addFocusableContainer(i)}removeFocusableContainer(i){this.gridCtrl.removeFocusableContainer(i)}focusGridInnerElement(i){return this.gridCtrl.focusInnerElement(i)}allowFocusForNextGridCoreContainer(i){this.gridCtrl.allowFocusForNextCoreContainer(i)}};return e.keyboardModeActive=!1,e.instanceCount=0,e})(),T6=M6,I6=class extends H{constructor(){super(...arguments),this.beanName="pinnedWidthService"}wireBeans(e){this.visibleColsService=e.visibleColsService}postConstruct(){let e=this.checkContainerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:e,displayedColumnsWidthChanged:e}),this.addManagedPropertyListener("domLayout",e)}checkContainerWidths(){let e=Bt(this.gos,"print"),t=e?0:this.visibleColsService.getColsLeftWidth(),i=e?0:this.visibleColsService.getDisplayedColumnsRightWidth();t!=this.leftWidth&&(this.leftWidth=t,this.eventService.dispatchEvent({type:"leftPinnedWidthChanged"})),i!=this.rightWidth&&(this.rightWidth=i,this.eventService.dispatchEvent({type:"rightPinnedWidthChanged"}))}getPinnedRightWidth(){return this.rightWidth}getPinnedLeftWidth(){return this.leftWidth}},D6=class extends H{constructor(){super(...arguments),this.additionalFocusableContainers=new Set}wireBeans(e){this.beans=e,this.focusService=e.focusService,this.visibleColsService=e.visibleColsService}setComp(e,t,i){this.view=e,this.eGridHostDiv=t,this.eGui=i,this.eGui.setAttribute("grid-id",this.beans.context.getGridId());let{dragAndDropService:n,mouseEventService:o,ctrlsService:r,resizeObserverService:a}=this.beans,s={getContainer:()=>this.eGui,isInterestedIn:c=>c===1||c===0,getIconName:()=>"notAllowed"};n.addDropTarget(s),this.addDestroyFunc(()=>n.removeDropTarget(s)),o.stampTopLevelGridCompWithGridInstance(t),this.createManagedBean(new zm(this.view)),this.view.setRtlClass(this.gos.get("enableRtl")?"ag-rtl":"ag-ltr"),this.updateGridThemeClass(),this.addManagedEventListeners({gridStylesChanged:this.handleThemeChange.bind(this)});let l=a.observeResize(this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc(()=>l()),r.register("gridCtrl",this)}isDetailGrid(){return this.focusService.findTabbableParent(this.getGui())?.getAttribute("row-id")?.startsWith("detail")||!1}getOptionalSelectors(){let e=this.beans;return{paginationSelector:e.paginationService?.getPaginationSelector(),gridHeaderDropZonesSelector:e.columnDropZonesService?.getDropZoneSelector(),sideBarSelector:e.sideBarService?.getSideBarSelector(),statusBarSelector:e.statusBarService?.getStatusPanelSelector(),watermarkSelector:e.licenseManager?.getWatermarkSelector()}}onGridSizeChanged(){this.eventService.dispatchEvent({type:"gridSizeChanged",clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight})}destroyGridUi(){this.view.destroyGridUi()}getGui(){return this.eGui}setResizeCursor(e){this.view.setCursor(e?"ew-resize":null)}disableUserSelect(e){this.view.setUserSelect(e?"none":null)}focusNextInnerContainer(e){let t=this.getFocusableContainers(),{indexWithFocus:i,nextIndex:n}=this.getNextFocusableIndex(t,e);if(n<0||n>=t.length)return!1;if(n===0){if(i>0){let o=this.visibleColsService.getAllCols(),r=Ae(o);if(this.focusService.focusGridView(r,!0))return!0}return!1}return this.focusContainer(t[n],e)}focusInnerElement(e){let t=this.gos.getCallback("focusGridInnerElement");
644if(t&&t({fromBottom:!!e}))return!0;let i=this.getFocusableContainers(),n=this.visibleColsService.getAllCols();if(e){if(i.length>1)return this.focusContainer(Ae(i),!0);let o=Ae(n);if(this.focusService.focusGridView(o,!0))return!0}if(this.gos.get("headerHeight")===0||this.focusService.isHeaderFocusSuppressed()){if(this.focusService.focusGridView(n[0]))return!0;for(let o=1;o<i.length;o++)if(this.focusService.focusInto(i[o].getGui()))return!0;return!1}return this.focusService.focusFirstHeader()}forceFocusOutOfContainer(e=!1){this.view.forceFocusOutOfContainer(e)}addFocusableContainer(e){this.additionalFocusableContainers.add(e)}removeFocusableContainer(e){this.additionalFocusableContainers.delete(e)}allowFocusForNextCoreContainer(e){let t=this.view.getFocusableContainers(),{nextIndex:i,indexWithFocus:n}=this.getNextFocusableIndex(t,e);if(n===-1||i<0||i>=t.length)return;let o=t[i];o.setAllowFocus?.(!0),setTimeout(()=>{o.setAllowFocus?.(!1)})}getNextFocusableIndex(e,t){let i=nt(this.gos),n=e.findIndex(r=>r.getGui().contains(i)),o=n+(t?-1:1);return{indexWithFocus:n,nextIndex:o}}focusContainer(e,t){e.setAllowFocus?.(!0);let i=this.focusService.focusInto(e.getGui(),t);return e.setAllowFocus?.(!1),i}getFocusableContainers(){return[...this.view.getFocusableContainers(),...this.additionalFocusableContainers]}updateGridThemeClass(){let e=this.beans.environment.getGridThemeClass();e&&this.view.setGridThemeClass(e)}handleThemeChange(e){e.themeChanged&&this.updateGridThemeClass()}destroy(){this.additionalFocusableContainers.clear(),super.destroy()}},P6=class extends Ky{constructor(e){super(),this.gridBody=le,this.sideBar=le,this.pagination=le,this.rootWrapperBody=le,this.eGridDiv=e}postConstruct(){let e={destroyGridUi:()=>this.destroyBean(this),setRtlClass:r=>this.addCssClass(r),setGridThemeClass:r=>this.addCssClass(r),forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:r=>{this.getGui().style.userSelect=r??"",this.getGui().style.webkitUserSelect=r??""},setCursor:r=>{this.getGui().style.cursor=r??""}},t=this.createManagedBean(new D6),i=t.getOptionalSelectors(),n=this.createTemplate(i),o=[QO,...Object.values(i).filter(r=>!!r)];this.setTemplate(n,o),t.setComp(e,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:r=>t.focusInnerElement(r),forceFocusOutWhenTabGuardsAreEmpty:!0})}insertGridIntoDom(){let e=this.getGui();this.eGridDiv.appendChild(e),this.addDestroyFunc(()=>{this.eGridDiv.removeChild(e),this.gos.get("debug")&&ln("Grid removed from DOM")})}updateLayoutClasses(e,t){let i=this.rootWrapperBody.classList;i.toggle("ag-layout-auto-height",t.autoHeight),i.toggle("ag-layout-normal",t.normal),i.toggle("ag-layout-print",t.print),this.addOrRemoveCssClass("ag-layout-auto-height",t.autoHeight),this.addOrRemoveCssClass("ag-layout-normal",t.normal),this.addOrRemoveCssClass("ag-layout-print",t.print)}createTemplate(e){let t=e.gridHeaderDropZonesSelector?"<ag-grid-header-drop-zones></ag-grid-header-drop-zones>":"",i=e.sideBarSelector?'<ag-side-bar data-ref="sideBar"></ag-side-bar>':"",n=e.statusBarSelector?"<ag-status-bar></ag-status-bar>":"",o=e.watermarkSelector?"<ag-watermark></ag-watermark>":"",r=e.paginationSelector?'<ag-pagination data-ref="pagination"></ag-pagination>':"";return`<div class="ag-root-wrapper" role="presentation"> 645 ${t} 646 <div class="ag-root-wrapper-body" data-ref="rootWrapperBody" role="presentation"> 647 <ag-grid-body data-ref="gridBody"></ag-grid-body> 648 ${i} 649 </div> 650 ${n} 651 ${r} 652 ${o} 653 </div>`}getFocusableElement(){return this.rootWrapperBody}forceFocusOutOfContainer(e=!1){if(!e&&this.pagination?.isDisplayed()){this.pagination.forceFocusOutOfContainer(e);return}super.forceFocusOutOfContainer(e)}getFocusableContainers(){let e=[this.gridBody];
653return[this.sideBar,this.pagination].forEach(t=>{t&&e.push(t)}),e.filter(t=>Mn(t.getGui()))}},R6=class extends H{constructor(){super(...arguments),this.beanName="alignedGridsService",this.consuming=!1}wireBeans(e){this.columnModel=e.columnModel,this.columnSizeService=e.columnSizeService,this.ctrlsService=e.ctrlsService,this.columnApplyStateService=e.columnApplyStateService}getAlignedGridApis(){let e=this.gos.get("alignedGrids")??[],t=typeof e=="function";typeof e=="function"&&(e=e());let i=()=>`See ${this.getFrameworkOverrides().getDocLink("aligned-grids")}`;return e.map(o=>{if(!o){Be("alignedGrids contains an undefined option."),t||Be(`You may want to configure via a callback to avoid setup race conditions: 654 "alignedGrids: () => [linkedGrid]"`),Be(i());return}if(this.isGridApi(o))return o;let r=o;return"current"in r?r.current?.api:(r.api||Be(`alignedGrids - No api found on the linked grid. If you are passing gridOptions to alignedGrids since v31 this is no longer valid. ${i()}`),r.api)}).filter(o=>!!o&&!o.isDestroyed())}isGridApi(e){return!!e&&!!e.dispatchEvent}postConstruct(){let e=this.fireColumnEvent.bind(this);this.addManagedEventListeners({columnMoved:e,columnVisible:e,columnPinned:e,columnGroupOpened:e,columnResized:e,bodyScroll:this.fireScrollEvent.bind(this),alignedGridColumn:({event:t})=>this.onColumnEvent(t),alignedGridScroll:({event:t})=>this.onScrollEvent(t)})}fireEvent(e){this.consuming||this.getAlignedGridApis().forEach(t=>{t.isDestroyed()||t.dispatchEvent(e)})}onEvent(e){this.consuming=!0,e(),this.consuming=!1}fireColumnEvent(e){this.fireEvent({type:"alignedGridColumn",event:e})}fireScrollEvent(e){e.direction==="horizontal"&&this.fireEvent({type:"alignedGridScroll",event:e})}onScrollEvent(e){this.onEvent(()=>{this.ctrlsService.getGridBodyCtrl().getScrollFeature().setHorizontalScrollPosition(e.left,!0)})}extractDataFromEvent(e,t){let i=[];return e.columns?e.columns.forEach(n=>{i.push(t(n))}):e.column&&i.push(t(e.column)),i}getMasterColumns(e){return this.extractDataFromEvent(e,t=>t)}getColumnIds(e){return this.extractDataFromEvent(e,t=>t.getColId())}onColumnEvent(e){this.onEvent(()=>{switch(e.type){case"columnMoved":case"columnVisible":case"columnPinned":case"columnResized":{this.processColumnEvent(e);break}case"columnGroupOpened":{this.processGroupOpenedEvent(e);break}case"columnPivotChanged":$("pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.");break}})}processGroupOpenedEvent(e){let{columnModel:t}=this;e.columnGroups.forEach(i=>{let n=null;i&&(n=t.getProvidedColGroup(i.getGroupId())),!(i&&!n)&&t.setColumnGroupOpened(n,i.isExpanded(),"alignedGridChanged")})}processColumnEvent(e){let t=e.column,i=null;if(t&&(i=this.columnModel.getColDefCol(t.getColId())),t&&!i)return;let n=this.getMasterColumns(e),{columnApplyStateService:o,columnSizeService:r,ctrlsService:a}=this;switch(e.type){case"columnMoved":{let h=e.api.getColumnState().map(m=>({colId:m.colId}));o.applyColumnState({state:h,applyOrder:!0},"alignedGridChanged")}break;case"columnVisible":{let h=e.api.getColumnState().map(m=>({colId:m.colId,hide:m.hide}));o.applyColumnState({state:h},"alignedGridChanged")}break;case"columnPinned":{let h=e.api.getColumnState().map(m=>({colId:m.colId,pinned:m.pinned}));o.applyColumnState({state:h},"alignedGridChanged")}break;case"columnResized":{let c=e,h={};n.forEach(m=>{h[m.getId()]={key:m.getColId(),newWidth:m.getActualWidth()}}),c.flexColumns?.forEach(m=>{h[m.getId()]&&delete h[m.getId()]}),r.setColumnWidths(Object.values(h),!1,c.finished,"alignedGridChanged");break}}let l=a.getGridBodyCtrl().isVerticalScrollShowing();this.getAlignedGridApis().forEach(c=>{c.setGridOption("alwaysShowVerticalScroll",l)})}},F6={version:Se,moduleName:"@ag-grid-community/aligned-grid",beans:[R6]};function O6(e,t){let i=e.columnModel.getColDefCol(t);return i?i.getColDef():null}function A6(e){return e.columnModel.getColumnDefs()}function L6(e,t){typeof t=="number"?e.columnSizeService.sizeColumnsToFit(t,"api"):e.ctrlsService.getGridBodyCtrl().sizeColumnsToFit(t)}function N6(e,t,i){e.columnModel.setColumnGroupOpened(t,i,"api")}function z6(e,t,i){return e.visibleColsService.getColumnGroup(t,i)}function B6(e,t){return e.columnModel.getProvidedColGroup(t)}function V6(e,t,i){return e.columnNameService.getDisplayNameForColumn(t,i)||""}function H6(e,t,i){return e.columnNameService.getDisplayNameForColumnGroup(t,i)||""}function G6(e,t){return e.columnModel.getColDefCol(t)}function U6(e){return e.columnModel.getColDefCols()}function j6(e,t){return e.columnApplyStateService.applyColumnState(t,"api")}function W6(e){return e.columnGetStateService.getColumnState()}function $6(e){e.columnApplyStateService.resetColumnState("api")}function q6(e){return e.columnGroupStateService.getColumnGroupState()}function Y6(e,t){e.columnGroupStateService.setColumnGroupState(t,"api")}function K6(e){e.columnGroupStateService.resetColumnGroupState("api")}function Q6(e){return e.visibleColsService.isPinningLeft()||e.visibleColsService.isPinningRight()}function J6(e){return e.visibleColsService.isPinningLeft()}function Z6(e){return e.visibleColsService.isPinningRight()}function X6(e,t){return e.visibleColsService.getColAfter(t)}function eL(e,t){return e.visibleColsService.getColBefore(t)}function tL(e,t,i){e.columnModel.setColsVisible([t],i,"api")}function iL(e,t,i){e.columnModel.setColsVisible(t,i,"api")}function nL(e,t,i){e.columnModel.setColsPinned([t],i,"api")}function oL(e,t,i){e.columnModel.setColsPinned(t,i,"api")}function rL(e){return e.columnModel.getCols()}function aL(e){return e.visibleColsService.getLeftCols()}function sL(e){return e.visibleColsService.getCenterCols()}function lL(e){return e.visibleColsService.getRightCols()}function cL(e){return e.visibleColsService.getAllCols()}function dL(e){return e.columnViewportService.getViewportColumns()}function uL(e,t,i){e.columnMoveService.moveColumns([t],i,"api")}function pL(e,t,i){e.columnMoveService.moveColumnByIndex(t,i,"api")}function hL(e,t,i){e.columnMoveService.moveColumns(t,i,"api")}function gL(e,t,i,n=!0,o="api"){e.columnSizeService.setColumnWidths([{key:t,newWidth:i}],!1,n,o)}function mL(e,t,i=!0,n="api"){e.columnSizeService.setColumnWidths(t,!1,i,n)}function fL(e){return e.visibleColsService.getTreeLeft()}function vL(e){return e.visibleColsService.getTreeCenter()}function CL(e){return e.visibleColsService.getTreeRight()}function bL(e){return e.visibleColsService.getAllTrees()}function _L(e,t,i){return e.columnAutosizeService.autoSizeCols({colKeys:[t],skipHeader:i,source:"api"})}function yL(e,t,i){e.columnAutosizeService.autoSizeCols({colKeys:t,skipHeader:i,source:"api"})}function wL(e,t){e.columnAutosizeService.autoSizeAllColumns("api",t)}var xL=class extends H{constructor(){super(...arguments),this.beanName="dataTypeService",this.dataTypeDefinitions={},this.isWaitingForRowData=!1,this.isColumnTypeOverrideInDataTypeDefinitions=!1,this.columnStateUpdatesPendingInference={},this.columnStateUpdateListenerDestroyFuncs=[]}wireBeans(e){this.rowModel=e.rowModel,this.columnModel=e.columnModel,this.funcColsService=e.funcColsService,this.valueService=e.valueService,this.columnApplyStateService=e.columnApplyStateService,this.filterManager=e.filterManager}postConstruct(){this.groupHideOpenParents=this.gos.get("groupHideOpenParents"),this.addManagedPropertyListener("groupHideOpenParents",()=>{this.groupHideOpenParents=this.gos.get("groupHideOpenParents")}),this.processDataTypeDefinitions(),this.addManagedPropertyListener("dataTypeDefinitions",e=>{this.processDataTypeDefinitions(),this.columnModel.recreateColumnDefs(Nr(e.source))})}processDataTypeDefinitions(){let e=this.getDefaultDataTypes();this.dataTypeDefinitions={},this.formatValueFuncs={};let t=n=>o=>{let{column:r,node:a,value:s}=o,l=r.getColDef().valueFormatter;return l===n.groupSafeValueFormatter&&(l=n.valueFormatter),this.valueService.formatValue(r,a,s,l)};Object.entries(e).forEach(([n,o])=>{let r=ye(B({},o),{groupSafeValueFormatter:this.createGroupSafeValueFormatter(o)});this.dataTypeDefinitions[n]=r,this.formatValueFuncs[n]=t(r)});let i=this.gos.get("dataTypeDefinitions")??{};this.dataTypeMatchers={}
654,Object.entries(i).forEach(([n,o])=>{let r=this.processDataTypeDefinition(o,i,[n],e);r&&(this.dataTypeDefinitions[n]=r,o.dataTypeMatcher&&(this.dataTypeMatchers[n]=o.dataTypeMatcher),this.formatValueFuncs[n]=t(r))}),this.checkObjectValueHandlers(e),["dateString","text","number","boolean","date"].forEach(n=>{let o=this.dataTypeMatchers[n];o&&delete this.dataTypeMatchers[n],this.dataTypeMatchers[n]=o??e[n].dataTypeMatcher})}mergeDataTypeDefinitions(e,t){let i=B(B({},e),t);return e.columnTypes&&t.columnTypes&&t.appendColumnTypes&&(i.columnTypes=[...pu(e.columnTypes),...pu(t.columnTypes)]),i}processDataTypeDefinition(e,t,i,n){let o,r=e.extendsDataType;if(e.columnTypes&&(this.isColumnTypeOverrideInDataTypeDefinitions=!0),e.extendsDataType===e.baseDataType){let a=n[r],s=t[r];if(a&&s&&(a=s),!this.validateDataTypeDefinition(e,a,r))return;o=this.mergeDataTypeDefinitions(a,e)}else{if(i.includes(r)){$('Data type definition hierarchies (via the "extendsDataType" property) cannot contain circular references.');return}let a=t[r];if(!this.validateDataTypeDefinition(e,a,r))return;let s=this.processDataTypeDefinition(a,t,[...i,r],n);if(!s)return;o=this.mergeDataTypeDefinitions(s,e)}return ye(B({},o),{groupSafeValueFormatter:this.createGroupSafeValueFormatter(o)})}validateDataTypeDefinition(e,t,i){return t?t.baseDataType!==e.baseDataType?($('The "baseDataType" property of a data type definition must match that of its parent.'),!1):!0:($(`The data type definition ${i} does not exist.`),!1)}createGroupSafeValueFormatter(e){if(e.valueFormatter)return t=>{if(t.node?.group){let i=(t.colDef.pivotValueColumn??t.column).getAggFunc();if(i){if(i==="first"||i==="last")return e.valueFormatter(t);if(e.baseDataType==="number"&&i!=="count"){if(typeof t.value=="number")return e.valueFormatter(t);if(typeof t.value=="object"){if(!t.value)return;if("toNumber"in t.value)return e.valueFormatter(ye(B({},t),{value:t.value.toNumber()}));if("value"in t.value)return e.valueFormatter(ye(B({},t),{value:t.value.value}))}}return}if((this.gos.get("suppressGroupMaintainValueType")||this.gos.get("groupDisplayType")==="groupRows")&&!this.gos.get("treeData"))return}else if(this.groupHideOpenParents&&t.column.isRowGroupActive()&&typeof t.value=="string"&&!e.dataTypeMatcher?.(t.value))return;return e.valueFormatter(t)}}updateColDefAndGetColumnType(e,t,i){let{cellDataType:n}=t,{field:o}=t;if(n===void 0&&(n=e.cellDataType),(n==null||n===!0)&&(n=this.canInferCellDataType(e,t)?this.inferCellDataType(o,i):!1),!n){e.cellDataType=!1;return}let r=this.dataTypeDefinitions[n];if(!r){$(`Missing data type definition - "${n}"`);return}return e.cellDataType=n,r.groupSafeValueFormatter&&(e.valueFormatter=r.groupSafeValueFormatter),r.valueParser&&(e.valueParser=r.valueParser),r.suppressDefaultProperties||this.setColDefPropertiesForBaseDataType(e,n,r,i),r.columnTypes}addColumnListeners(e){if(!this.isWaitingForRowData)return;let t=this.columnStateUpdatesPendingInference[e.getColId()];if(!t)return;let i=n=>{t.add(n.key)};e.addEventListener("columnStateUpdated",i),this.columnStateUpdateListenerDestroyFuncs.push(()=>e.removeEventListener("columnStateUpdated",i))}canInferCellDataType(e,t){if(!at(this.gos))return!1;let i={cellRenderer:!0,valueGetter:!0,valueParser:!0,refData:!0}
654;if(this.doColDefPropsPreventInference(t,i))return!1;let n=t.type===null?e.type:t.type;if(n){let o=this.gos.get("columnTypes")??{};if(pu(n).some(a=>{let s=o[a.trim()];return s&&this.doColDefPropsPreventInference(s,i)}))return!1}return!this.doColDefPropsPreventInference(e,i)}doColDefPropsPreventInference(e,t){return[["cellRenderer","agSparklineCellRenderer"],["valueGetter",void 0],["valueParser",void 0],["refData",void 0]].some(([i,n])=>this.doesColDefPropPreventInference(e,t,i,n))}doesColDefPropPreventInference(e,t,i,n){if(!t[i])return!1;let o=e[i];return o===null?(t[i]=!1,!1):n===void 0?!!o:o===n}inferCellDataType(e,t){if(!e)return;let i,n=this.getInitialData();if(n){let r=e.indexOf(".")>=0&&!this.gos.get("suppressFieldDotNotation");i=Fl(n,e,r)}else this.initWaitForRowData(t);if(i==null)return;let[o]=Object.entries(this.dataTypeMatchers).find(([r,a])=>a(i))??["object"];return o}getInitialData(){let e=this.gos.get("rowData");if(e?.length)return e[0];if(this.initialData)return this.initialData;{let t=this.rowModel.getRootNode().allLeafChildren;if(t?.length)return t[0].data}return null}initWaitForRowData(e){if(this.columnStateUpdatesPendingInference[e]=new Set,this.isWaitingForRowData)return;this.isWaitingForRowData=!0;let t=this.isColumnTypeOverrideInDataTypeDefinitions;t&&this.columnModel.queueResizeOperations();let[i]=this.addManagedEventListeners({rowDataUpdateStarted:n=>{let{firstRowData:o}=n;o&&(i?.(),this.isWaitingForRowData=!1,this.processColumnsPendingInference(o,t),this.columnStateUpdatesPendingInference={},t&&this.columnModel.processResizeOperations(),this.eventService.dispatchEvent({type:"dataTypesInferred"}))}})}isPendingInference(){return this.isWaitingForRowData}processColumnsPendingInference(e,t){this.initialData=e;let i=[];this.destroyColumnStateUpdateListeners();let n={},o={};Object.entries(this.columnStateUpdatesPendingInference).forEach(([r,a])=>{let s=this.columnModel.getCol(r);if(!s)return;let l=s.getColDef();if(!this.columnModel.resetColDefIntoCol(s,"cellDataTypeInferred"))return;let c=s.getColDef();if(t&&c.type&&c.type!==l.type){let h=this.getUpdatedColumnState(s,a);h.rowGroup&&h.rowGroupIndex==null&&(n[r]=h),h.pivot&&h.pivotIndex==null&&(o[r]=h),i.push(h)}}),t&&i.push(...this.funcColsService.generateColumnStateForRowGroupAndPivotIndexes(n,o)),i.length&&this.columnApplyStateService.applyColumnState({state:i},"cellDataTypeInferred"),this.initialData=null}getUpdatedColumnState(e,t){let i=this.columnApplyStateService.getColumnStateFromColDef(e);return t.forEach(n=>{delete i[n],n==="rowGroup"?delete i.rowGroupIndex:n==="pivot"&&delete i.pivotIndex}),i}checkObjectValueHandlers(e){let t=this.dataTypeDefinitions.object,i=e.object;this.hasObjectValueParser=t.valueParser!==i.valueParser,this.hasObjectValueFormatter=t.valueFormatter!==i.valueFormatter}getDateStringTypeDefinition(e){return e?this.getDataTypeDefinition(e)??this.dataTypeDefinitions.dateString:this.dataTypeDefinitions.dateString}getDateParserFunction(e){return this.getDateStringTypeDefinition(e).dateParser}getDateFormatterFunction(e){return this.getDateStringTypeDefinition(e).dateFormatter}getDataTypeDefinition(e){let t=e.getColDef();if(t.cellDataType)return this.dataTypeDefinitions[t.cellDataType]}getBaseDataType(e){return this.getDataTypeDefinition(e)?.baseDataType}checkType(e,t){if(t==null)return!0;let i=this.getDataTypeDefinition(e)?.dataTypeMatcher;return i?i(t):!0}validateColDef(e){let t=i=>$(`Cell data type is "object" but no Value ${i} has been provided. Please either provide an object data type definition with a Value ${i}, or set "colDef.value${i}"`);e.cellDataType==="object"&&(e.valueFormatter===this.dataTypeDefinitions.object.groupSafeValueFormatter&&!this.hasObjectValueFormatter&&t("Formatter"),e.editable&&e.valueParser===this.dataTypeDefinitions.object.valueParser&&!this.hasObjectValueParser&&t("Parser"))}getFormatValue(e){return this.formatValueFuncs[e]}setColDefPropertiesForBaseDataType(e,t,i,n){let o=this.formatValueFuncs[t];switch(i.baseDataType){case"number":{e.cellEditor="agNumberCellEditor";break}case"boolean":{e.cellEditor="agCheckboxCellEditor",e.cellRenderer="agCheckboxCellRenderer",e.suppressKeyboardEvent=r=>!!r.colDef.editable&&r.event.key===j.SPACE;break}case"date":{e.cellEditor="agDateCellEditor",e.keyCreator=o;break}case"dateString":{e.cellEditor="agDateStringCellEditor",e.keyCreator=o;break}case"object":{e.cellEditorParams={useFormatter:!0},e.comparator=(r,a)=>{let s=this.columnModel.getColDefCol(n),l=s?.getColDef();if(!s||!l)return 0;let c=r==null?"":o({column:s,node:null,value:r}),h=a==null?"":o({column:s,node:null,value:a});return c===h?0:c>h?1:-1},e.keyCreator=o;break}}this.filterManager?.setColDefPropertiesForDataType(e,i,o)}getDefaultDataTypes(){let e=i=>!!i.match("^\\d{4}-\\d{2}-\\d{2}$"),t=this.localeService.getLocaleTextFunc();return{number:{baseDataType:"number",valueParser:i=>i.newValue?.trim?.()===""?null:Number(i.newValue),valueFormatter:i=>i.value==null?"":typeof i.value!="number"||isNaN(i.value)?t("invalidNumber","Invalid Number"):String(i.value),dataTypeMatcher:i=>typeof i=="number"},text:{baseDataType:"text",valueParser:i=>i.newValue===""?null:Gg(i.newValue),dataTypeMatcher:i=>typeof i=="string"},boolean:{baseDataType:"boolean",valueParser:i=>i.newValue==null?i.newValue:i.newValue?.trim?.()===""?null:String(i.newValue).toLowerCase()==="true",valueFormatter:i=>i.value==null?"":String(i.value),dataTypeMatcher:i=>typeof i=="boolean"},date:{baseDataType:"date",valueParser:i=>Fi(i.newValue==null?null:String(i.newValue)),valueFormatter:i=>i.value==null?"":!(i.value instanceof Date)||isNaN(i.value.getTime())?t("invalidDate","Invalid Date"):pn(i.value,!1)??"",dataTypeMatcher:i=>i instanceof Date},dateString:{baseDataType:"dateString",dateParser:i=>Fi(i)??void 0,dateFormatter:i=>pn(i??null,!1)??void 0,valueParser:i=>e(String(i.newValue))?i.newValue:null,valueFormatter:i=>e(String(i.value))?i.value:"",dataTypeMatcher:i=>typeof i=="string"&&e(i)},object:{baseDataType:"object",valueParser:()=>null,valueFormatter:i=>Gg(i.value)??""}}}destroyColumnStateUpdateListeners(){this.columnStateUpdateListenerDestroyFuncs.forEach(e
vendor: 13,886 bytes, line 654
654=>e()),this.columnStateUpdateListenerDestroyFuncs=[]}destroy(){this.dataTypeDefinitions={},this.dataTypeMatchers={},this.formatValueFuncs={},this.columnStateUpdatesPendingInference={},this.destroyColumnStateUpdateListeners(),super.destroy()}},SL={version:Se,moduleName:"@ag-grid-community/data-type",beans:[xL]},kL={version:Se,moduleName:"@ag-grid-community/column-api",apiFunctions:{getColumnDef:O6,getColumnDefs:A6,sizeColumnsToFit:L6,setColumnGroupOpened:N6,getColumnGroup:z6,getProvidedColumnGroup:B6,getDisplayNameForColumn:V6,getDisplayNameForColumnGroup:H6,getColumn:G6,getColumns:U6,applyColumnState:j6,getColumnState:W6,resetColumnState:$6,getColumnGroupState:q6,setColumnGroupState:Y6,resetColumnGroupState:K6,isPinning:Q6,isPinningLeft:J6,isPinningRight:Z6,getDisplayedColAfter:X6,getDisplayedColBefore:eL,setColumnVisible:tL,setColumnsVisible:iL,setColumnPinned:nL,setColumnsPinned:oL,getAllGridColumns:rL,getDisplayedLeftColumns:aL,getDisplayedCenterColumns:sL,getDisplayedRightColumns:lL,getAllDisplayedColumns:cL,getAllDisplayedVirtualColumns:dL,moveColumn:uL,moveColumnByIndex:pL,moveColumns:hL,setColumnWidth:gL,setColumnWidths:mL,getLeftDisplayedColumnGroups:fL,getCenterDisplayedColumnGroups:vL,getRightDisplayedColumnGroups:CL,getAllDisplayedColumnGroups:bL,autoSizeColumn:_L,autoSizeColumns:yL,autoSizeAllColumns:wL}};function EL(e,t){e.ctrlsService.getGridBodyCtrl().getRowDragFeature().addRowDropZone(t)}function ML(e,t){let i=e.dragAndDropService.findExternalZone(t);i&&e.dragAndDropService.removeDropTarget(i)}function TL(e,t){return e.ctrlsService.getGridBodyCtrl().getRowDragFeature().getRowDropZone(t)}var IL={version:Se,moduleName:"@ag-grid-community/drag-api",apiFunctions:{addRowDropZone:EL,removeRowDropZone:ML,getRowDropZoneParams:TL}};function DL(e){return e.pinnedRowModel.getPinnedTopRowCount()}function PL(e){return e.pinnedRowModel.getPinnedBottomRowCount()}function RL(e,t){return e.pinnedRowModel.getPinnedTopRow(t)}function FL(e,t){return e.pinnedRowModel.getPinnedBottomRow(t)}var OL={version:Se,moduleName:"@ag-grid-community/pinned-row-api",apiFunctions:{getPinnedTopRowCount:DL,getPinnedBottomRowCount:PL,getPinnedTopRow:RL,getPinnedBottomRow:FL}};function AL(e){e.overlayService.showLoadingOverlay()}function LL(e){e.overlayService.showNoRowsOverlay()}function NL(e){e.overlayService.hideOverlay()}var zL={version:Se,moduleName:"@ag-grid-community/overlay-api",apiFunctions:{showLoadingOverlay:AL,showNoRowsOverlay:LL,hideOverlay:NL}};function BL(e,t,i){if(!t)return;let n=e.ctrlsService.getGridBodyCtrl().getGui(),o=`aria-${t}`;i===null?n.removeAttribute(o):n.setAttribute(o,i)}function VL(e,t={}){e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.refreshCells(t))}function HL(e,t={}){let i=n=>$(`Since v31.1 api.flashCells parameter '${n}Delay' is deprecated. Please use '${n}Duration' instead.`);K(t.fadeDelay)&&i("fade"),K(t.flashDelay)&&i("flash"),e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.flashCells(t))}function GL(e){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsService.getHeaderRowContainerCtrls().forEach(t=>t.refresh()))}function UL(e){return e.animationFrameService.isQueueEmpty()}function jL(e){e.animationFrameService.flushAllFrames()}function WL(e){return{rowHeight:Hr(e.gos),headerHeight:e.columnModel.getHeaderHeight()}}function $L(e,t={}){return e.rowRenderer.getCellRendererInstances(t).map(Al)}var qL={version:Se,moduleName:"@ag-grid-community/render-api",apiFunctions:{setGridAriaProperty:BL,refreshCells:VL,flashCells:HL,refreshHeader:GL,isAnimationFrameQueueEmpty:UL,flushAllAnimationFrames:jL,getSizesForCurrentTheme:WL,getCellRendererInstances:$L}};function YL(e){e.valueCache.expire()}function KL(e,t,i){return Jy(e,{colKey:t,rowNode:i})}function Jy(e,t){let{colKey:i,rowNode:n,useFormatter:o}=t,r=e.columnModel.getColDefCol(i)??e.columnModel.getCol(i);if(Fe(r))return null;let a=e.valueService.getValueForDisplay(r,n);return o?e.valueService.formatValue(r,n,a)??Gn(a,!0):a}function QL(e){return e.context.getGridId()}function JL(e){e.gridDestroyService.destroy()}function ZL(e){return e.gridDestroyService.isDestroyCalled()}function XL(e,t){return e.gos.get(t)}function eN(e,t,i){Zy(e,{[t]:i})}function Zy(e,t){e.gos.updateGridOptions({options:t})}function tN(e,t,i){e.apiEventService.addEventListener(t,i)}function iN(e,t,i){e.apiEventService.removeEventListener(t,i)}function nN(e,t){e.apiEventService.addGlobalListener(t)}function oN(e,t){e.apiEventService.removeGlobalListener(t)}function rN(e){return e.focusService.getFocusedCell()}function aN(e){return e.focusService.clearFocusedCell()}function sN(e,t,i,n){e.focusService.setFocusedCell({rowIndex:t,column:i,rowPinned:n,forceBrowserFocus:!0})}function lN(e,t){return e.navigationService.tabToNextCell(!1,t)}function cN(e,t){return e.navigationService.tabToNextCell(!0,t)}function dN(e,t,i=!1){let n=e.headerNavigationService.getHeaderPositionForColumn(t,i);n&&e.focusService.focusHeaderPosition({headerPosition:n})}function uN(e,t,i){let n=e.columnModel.getCol(t);e.menuService.showColumnMenu({column:n,buttonElement:i,positionBy:"button"})}function pN(e,t,i){let n=e.columnModel.getCol(t);if(n||(n=e.columnModel.getColDefCol(t)),!n){Be(`column '${t}' not found`);return}e.menuService.showColumnMenu({column:n,mouseEvent:i,positionBy:"mouse"})}function hN(e,t){let i=e.columnModel.getCol(t);if(!i){Be(`column '${t}' not found`);return}e.menuService.showColumnMenu({column:i,positionBy:"auto"})}function gN(e){e.menuService.hidePopupMenu()}function mN(e,t={}){let i=t?t.rowNodes:void 0;e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.redrawRows(i))}function fN(e,t,i,n,o){e.expansionService.setRowNodeExpanded(t,i,n,o)}function vN(e,t){return e.rowModel.getRowNode(t)}function CN(e,t,i,n){e.rowRenderer.addRenderedRowListener(t,i,n)}function bN(e){return e.rowRenderer.getRenderedNodes()}function _N(e,t,i){e.rowModel.forEachNode(t,i)}function yN(e){return Xy(e)}function Xy(e){return e.rowRenderer.getFirstVirtualRenderedRow()}function wN(e){return ew(e)}function ew(e){return e.rowRenderer.getLastVirtualRenderedRow()}function xN(e,t){return e.rowModel.getRow(t)}function SN(e){return e.rowModel.getRowCount()}function kN(e){return e.rowModel}function EN(e,t){if(!t.nodes.every(s=>s.rowPinned?($("cannot select pinned rows"),!1):s.id===void 0?($("cannot select node until id for node is known"),!1):!0))return;let{nodes:n,source:o,newValue:r}=t,a=n;e.selectionService.setNodesSelected({nodes:a,source:o??"api",newValue:r})}function MN(e,t="apiSelectAll"){e.selectionService.selectAllRowNodes({source:t})}function TN(e,t="apiSelectAll"){e.selectionService.deselectAllRowNodes({source:t})}function IN(e,t="apiSelectAllFiltered"){e.selectionService.selectAllRowNodes({source:t,justFiltered:!0})}function DN(e,t="apiSelectAllFiltered"){e.selectionService.deselectAllRowNodes({source:t,justFiltered:!0})}function PN(e,t="apiSelectAllCurrentPage"){e.selectionService.selectAllRowNodes({source:t,justCurrentPage:!0})}function RN(e,t="apiSelectAllCurrentPage"){e.selectionService.deselectAllRowNodes({source:t,justCurrentPage:!0})}function FN(e){return e.selectionService.getSelectedNodes()}function ON(e){return e.selectionService.getSelectedRows()}function AN(e){e.sortController.onSortChanged("api")}var LN={version:Se,moduleName:"@ag-grid-community/core-api",apiFunctions:{getGridId:QL,destroy:JL,isDestroyed:ZL,getGridOption:XL,setGridOption:eN,updateGridOptions:Zy}},NN={version:Se,moduleName:"@ag-grid-community/row-selection-api",apiFunctions:{setNodesSelected:EN,selectAll:MN,deselectAll:TN,selectAllFiltered:IN,deselectAllFiltered:DN,selectAllOnCurrentPage:PN,deselectAllOnCurrentPage:RN,getSelectedNodes:FN,getSelectedRows:ON}},zN={version:Se,moduleName:"@ag-grid-community/row-api",apiFunctions:{redrawRows:mN,setRowNodeExpanded:fN,getRowNode:vN,addRenderedRowListener:CN,getRenderedNodes:bN,forEachNode:_N,getFirstDisplayedRow:yN,getFirstDisplayedRowIndex:Xy,getLastDisplayedRow:wN,getLastDisplayedRowIndex:ew,getDisplayedRowAtIndex:xN,getDisplayedRowCount:SN,getModel:kN}},BN={version:Se,moduleName:"@ag-grid-community/scroll-api",apiFunctions:{getVerticalPixelRange:wA,getHorizontalPixelRange:xA,ensureColumnVisible:$y,ensureIndexVisible:qy,ensureNodeVisible:SA}},VN={version:Se,moduleName:"@ag-grid-community/keyboard-navigation-api",apiFunctions:{getFocusedCell:rN,clearFocusedCell:aN,setFocusedCell:sN,setFocusedHeader:dN,tabToNextCell:lN,tabToPreviousCell:cN}},HN={version:Se,moduleName:"@ag-grid-community/event-api",apiFunctions:{addEventListener:tN,addGlobalListener:nN,removeEventListener:iN,removeGlobalListener:oN}},GN={version:Se,moduleName:"@ag-grid-community/cell-api",apiFunctions:{expireValueCache:YL,getValue:KL,getCellValue:Jy}},UN={version:Se,moduleName:"@ag-grid-community/menu-api",apiFunctions:{showColumnMenuAfterButtonClick:uN,showColumnMenuAfterMouseClick:pN,showColumnMenu:hN,hidePopupMenu:gN}},jN={version:Se,moduleName:"@ag-grid-community/sort-api",apiFunctions:{onSortChanged:AN}},WN={version:Se,moduleName:"@ag-grid-community/api",dependantModules:[LN,OL,NN,kL,zN,IL,BN,zL,VN,HN,qL,GN,UN,jN]};function $N(e){return e.stateService?.getState()??{}}function qN(e){switch(e=B({},e),e.version||(e.version="32.1.0"),e.version){case"32.1.0":e=YN(e)}return e}function YN(e){return e.cellSelection=KN(e,"rangeSelection"),e}function KN(e,t){if(e&&typeof e=="object")return e[t]}var QN=class extends H{constructor(){super(...arguments),this.beanName="stateService",this.suppressEvents=!0,this.queuedUpdateSources=new Set,this.dispatchStateUpdateEventDebounced=wi(()=>this.dispatchQueuedStateUpdateEvents(),0),this.onRowGroupOpenedDebounced=wi(()=>this.updateCachedState("rowGroupExpansion",this.getRowGroupExpansionState()),0),this.onRowSelectedDebounced=wi(()=>{this.staleStateKeys.delete("rowSelection"),this.updateCachedState("rowSelection",this.getRowSelectionState())},0),this.staleStateKeys=new Set}wireBeans(e){this.filterManager=e.filterManager,this.ctrlsService=e.ctrlsService,this.pivotResultColsService=e.pivotResultColsService,this.focusService=e.focusService,this.columnModel=e.columnModel,this.visibleColsService=e.visibleColsService,this.columnGroupStateService=e.columnGroupStateService,this.columnGetStateService=e.columnGetStateService,this.paginationService=e.paginationService,this.selectionService=e.selectionService,this.expansionService=e.expansionService,this.columnAnimationService=e.columnAnimationService,this.columnApplyStateService=e.columnApplyStateService,this.sideBarService=e.sideBarService,this.rangeService=e.rangeService}postConstruct(){this.isClientSideRowModel=at(this.gos),this.cachedState=this.getInitialState(),this.setCachedStateValue("version",Se),this.ctrlsService.whenReady(this,()=>this.suppressEventsAndDispatchInitEvent(()=>this.setupStateOnGridReady()));let[e,t,i]=this.addManagedEventListeners({newColumnsLoaded:({source:n})=>{n==="gridInitializing"&&(e(),this.suppressEventsAndDispatchInitEvent(()=>this.setupStateOnColumnsInitialised()))},rowCountReady:()=>{t?.(),this.suppressEventsAndDispatchInitEvent(()=>this.setupStateOnRowCountReady())},firstDataRendered:()=>{i?.(),this.suppressEventsAndDispatchInitEvent(()=>this.setupStateOnFirstDataRendered())}})}getInitialState(){return qN(this.gos.get("initialState")??{})}getState(){return this.staleStateKeys.size&&this.refreshStaleState(),this.cachedState}setupStateOnGridReady(){this.updateCachedState("sideBar",this.getSideBarState());let e=()=>this.updateCachedState("sideBar",this.getSideBarState());this.addManagedEventListeners({toolPanelVisibleChanged:e,sideBarUpdated:e})}setupStateOnColumnsInitialised(){let e=this.getInitialState();this.setColumnState(e),this.setColumnGroupState(e),this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","pivot","rowGroup","sort"]),this.updateCachedState("columnGroup",this.getColumnGroupState());let t=i=>()=>this.updateColumnState([i]);this.addManagedEventListeners({columnValueChanged:t("aggregation"),columnMoved:t("columnOrder"),columnPinned:t("columnPinning"),columnResized:t("columnSizing"),columnVisible:t("columnVisibility"),columnPivotChanged:t("pivot"),columnPivotModeChanged:t("pivot"),columnRowGroupChanged:t("rowGroup"),sortChanged:t("sort"),newColumnsLoaded:()=>this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","rowGroup","sort"]),columnGroupOpened:()=>this.updateCachedState("columnGroup",this.getColumnGroupState())})}setupStateOnRowCountReady(){let{filter:e,rowGroupExpansion:t,rowSelection:i,pagination:n}=this.getInitialState(),o=this.gos.get("advancedFilterModel");(e||o)&&this.setFilterState(e,o),t&&this.setRowGroupExpansionState(t),i&&this.setRowSelectionState(i),n&&this.setPaginationState(n),this.updateCachedState("filter",this.getFilterState()),this.updateCachedState("rowGroupExpansion",this.getRowGroupExpansionState()),this.updateCachedState("rowSelection",this.getRowSelectionState()),this.updateCachedState("pagination",this.getPaginationState());let r=()=>this.updateCachedState("rowGroupExpansion",this.getRowGroupExpansionState());this.addManagedEventListeners({filterChanged:()=>this.updateCachedState("filter",this.getFilterState()),rowGroupOpened:()=>this.onRowGroupOpenedDebounced(),expandOrCollapseAll:r,columnRowGroupChanged:r,rowDataUpdated:()=>{this.gos.get("groupDefaultExpanded")!==0&&setTimeout(()=>{r()})},selectionChanged:()=>{this.staleStateKeys.add("rowSelection"),this.onRowSelectedDebounced()},paginationChanged:a=>{(a.newPage||a.newPageSize)&&this.updateCachedState("pagination",this.getPaginationState())}})}setupStateOnFirstDataRendered(){let{scroll:e,cellSelection:t,focusedCell:i,columnOrder:n}=this.getInitialState();i&&this.setFocusedCellState(i),t&&this.setCellSelectionState(t),e&&this.setScrollState(e),this.setColumnPivotState(!!n?.orderedColIds),this.updateCachedState("sideBar",this.get
654SideBarState()),this.updateCachedState("focusedCell",this.getFocusedCellState());let o=this.getRangeSelectionState();this.updateCachedState("rangeSelection",o),this.updateCachedState("cellSelection",o),this.updateCachedState("scroll",this.getScrollState()),this.addManagedEventListeners({cellFocused:()=>this.updateCachedState("focusedCell",this.getFocusedCellState()),cellSelectionChanged:r=>{if(r.finished){let a=this.getRangeSelectionState();this.updateCachedState("rangeSelection",a),this.updateCachedState("cellSelection",a)}},bodyScrollEnd:()=>this.updateCachedState("scroll",this.getScrollState())})}getColumnState(){let e=this.columnModel.isPivotMode(),t=[],i=[],n=[],o=[],r=[],a=[],s=[],l=[],c=[],h=0,m=this.columnGetStateService.getColumnState();for(let f=0;f<m.length;f++){let{colId:b,sort:_,sortIndex:S,rowGroup:M,rowGroupIndex:D,aggFunc:I,pivot:F,pivotIndex:W,pinned:re,hide:Z,width:q,flex:ce}=m[f];c.push(b),_&&(t[S??h++]={colId:b,sort:_}),M&&(i[D??0]=b),typeof I=="string"&&n.push({colId:b,aggFunc:I}),F&&(o[W??0]=b),re&&(re==="right"?a:r).push(b),Z&&s.push(b),(ce||q)&&l.push({colId:b,flex:ce??void 0,width:q})}return{sort:t.length?{sortModel:t}:void 0,rowGroup:i.length?{groupColIds:i}:void 0,aggregation:n.length?{aggregationModel:n}:void 0,pivot:o.length||e?{pivotMode:e,pivotColIds:o}:void 0,columnPinning:r.length||a.length?{leftColIds:r,rightColIds:a}:void 0,columnVisibility:s.length?{hiddenColIds:s}:void 0,columnSizing:l.length?{columnSizingModel:l}:void 0,columnOrder:c.length?{orderedColIds:c}:void 0}}setColumnState(e){let{sort:t,rowGroup:i,aggregation:n,pivot:o,columnPinning:r,columnVisibility:a,columnSizing:s,columnOrder:l,partialColumnState:c}=e,h={},m=M=>{let D=h[M];return D||(D={colId:M},h[M]=D,D)},f=c?{}:{sort:null,sortIndex:null,rowGroup:null,rowGroupIndex:null,aggFunc:null,pivot:null,pivotIndex:null,pinned:null,hide:null,flex:null};t&&(t.sortModel.forEach(({colId:M,sort:D},I)=>{let F=m(M);F.sort=D,F.sortIndex=I}),f.sort=null,f.sortIndex=null),i&&(i.groupColIds.forEach((M,D)=>{let I=m(M);I.rowGroup=!0,I.rowGroupIndex=D}),f.rowGroup=null,f.rowGroupIndex=null),n&&(n.aggregationModel.forEach(({colId:M,aggFunc:D})=>{m(M).aggFunc=D}),f.aggFunc=null),o&&(o.pivotColIds.forEach((M,D)=>{let I=m(M);I.pivot=!0,I.pivotIndex=D}),this.gos.updateGridOptions({options:{pivotMode:o.pivotMode},source:"gridInitializing"}),f.pivot=null,f.pivotIndex=null),r&&(r.leftColIds.forEach(M=>{m(M).pinned="left"}),r.rightColIds.forEach(M=>{m(M).pinned="right"}),f.pinned=null),a&&(a.hiddenColIds.forEach(M=>{m(M).hide=!0}),f.hide=null),s&&(s.columnSizingModel.forEach(({colId:M,flex:D,width:I})=>{let F=m(M);F.flex=D??null,F.width=I}),f.flex=null);let b=l?.orderedColIds,_=!!b?.length,S=_?b.map(M=>m(M)):Object.values(h);S.length&&(this.columnStates=S,this.columnApplyStateService.applyColumnState({state:S,applyOrder:_,defaultState:f},"gridInitializing"))}setColumnPivotState(e){let t=this.columnStates;this.columnStates=void 0;let i=this.columnGroupStates;if(this.columnGroupStates=void 0,!!this.pivotResultColsService.isPivotResultColsPresent()){if(t){let n=[];for(let o of t)this.pivotResultColsService.getPivotResultCol(o.colId)&&n.push(o);this.columnApplyStateService.applyColumnState({state:n,applyOrder:e},"gridInitializing")}i&&this.columnGroupStateService.setColumnGroupState(i,"gridInitializing")}}getColumnGroupState(){let e=this.columnGroupStateService.getColumnGroupState(),t=[];return e.forEach(({groupId:i,open:n})=>{n&&t.push(i)}),t.length?{openColumnGroupIds:t}:void 0}setColumnGroupState(e){if(!Object.prototype.hasOwnProperty.call(e,"columnGroup"))return;let t=new Set(e.columnGroup?.openColumnGroupIds),n=this.columnGroupStateService.getColumnGroupState().map(({groupId:o})=>{let r=t.has(o);return r&&t.delete(o),{groupId:o,open:r}});t.forEach(o=>{n.push({groupId:o,open:!0})}),n.length&&(this.columnGroupStates=n),this.columnGroupStateService.setColumnGroupState(n,"gridInitializing")}getFilterState(){let e=this.filterManager?.getFilterModel();e&&Object.keys(e).length===0&&(e=void 0);let t=this.filterManager?.getAdvancedFilterModel()??void 0;return e||t?{filterModel:e,advancedFilterModel:t}:void 0}setFilterState(e,t){let{filterModel:i,advancedFilterModel:n}=e??{advancedFilterModel:t};i&&this.filterManager?.setFilterModel(i,"columnFilter"),n&&this.filterManager?.setAdvancedFilterModel(n)}getRangeSelectionState(){let e=this.rangeService?.getCellRanges().map(t=>{let{id:i,type:n,startRow:o,endRow:r,columns:a,startColumn:s}=t;
654return{id:i,type:n,startRow:o,endRow:r,colIds:a.map(l=>l.getColId()),startColId:s.getColId()}});return e?.length?{cellRanges:e}:void 0}setCellSelectionState(e){let{gos:t,rangeService:i,columnModel:n,visibleColsService:o}=this;if(!Un(t)||!i)return;let r=[];if(e.cellRanges.forEach(a=>{let s=[];if(a.colIds.forEach(c=>{let h=n.getCol(c);h&&s.push(h)}),!s.length)return;let l=n.getCol(a.startColId);if(!l){let c=o.getAllCols(),h=new Set(s);l=c.find(m=>h.has(m))}r.push(ye(B({},a),{columns:s,startColumn:l}))}),JP(t)&&ZP(t)&&r.length>1)return $("cannot add multiple ranges when `cellSelection.suppressMultiRanges = true`");i.setCellRanges(r)}getScrollState(){if(!this.isClientSideRowModel)return;let e=this.ctrlsService.getGridBodyCtrl()?.getScrollFeature(),{left:t}=e?.getHScrollPosition()??{left:0},{top:i}=e?.getVScrollPosition()??{top:0};return i||t?{top:i,left:t}:void 0}setScrollState(e){if(!this.isClientSideRowModel)return;let{top:t,left:i}=e;this.ctrlsService.getGridBodyCtrl()?.getScrollFeature().setScrollPosition(t,i)}getSideBarState(){return this.sideBarService?.getSideBarComp()?.getState()}getFocusedCellState(){if(!this.isClientSideRowModel)return;let e=this.focusService.getFocusedCell();if(e){let{column:t,rowIndex:i,rowPinned:n}=e;return{colId:t.getColId(),rowIndex:i,rowPinned:n}}}setFocusedCellState(e){if(!this.isClientSideRowModel)return;let{colId:t,rowIndex:i,rowPinned:n}=e;this.focusService.setFocusedCell({column:this.columnModel.getCol(t),rowIndex:i,rowPinned:n,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}getPaginationState(){if(!this.paginationService)return;let e=this.paginationService.getCurrentPage(),t=this.gos.get("paginationAutoPageSize")?void 0:this.paginationService.getPageSize();if(!(!e&&!t))return{page:e,pageSize:t}}setPaginationState(e){this.paginationService&&(e.pageSize&&!this.gos.get("paginationAutoPageSize")&&this.paginationService.setPageSize(e.pageSize,"initialState"),typeof e.page=="number"&&this.paginationService.setPage(e.page))}getRowSelectionState(){let e=this.selectionService.getSelectionState();return!e||!Array.isArray(e)&&(e.selectAll===!1||e.selectAllChildren===!1)&&!e?.toggledNodes?.length?void 0:e}setRowSelectionState(e){this.selectionService.setSelectionState(e,"gridInitializing")}getRowGroupExpansionState(){let e=this.expansionService.getExpandedRows();return e.length?{expandedRowGroupIds:e}:void 0}setRowGroupExpansionState(e){this.expansionService.expandRows(e.expandedRowGroupIds)}updateColumnState(e){let t=this.getColumnState(),i=!1;Object.entries(t).forEach(([n,o])=>{zl(o,this.cachedState[n])||(i=!0)}),this.cachedState=B(B({},this.cachedState),t),i&&this.dispatchStateUpdateEvent(e)}updateCachedState(e,t){let i=this.cachedState[e];this.setCachedStateValue(e,t),zl(t,i)||this.dispatchStateUpdateEvent([e])}setCachedStateValue(e,t){this.cachedState=ye(B({},this.cachedState),{[e]:t})}refreshStaleState(){this.staleStateKeys.forEach(e=>{switch(e){case"rowSelection":this.setCachedStateValue(e,this.getRowSelectionState());break}}),this.staleStateKeys.clear()}dispatchStateUpdateEvent(e){this.suppressEvents||(e.forEach(t=>this.queuedUpdateSources.add(t)),this.dispatchStateUpdateEventDebounced())}dispatchQueuedStateUpdateEvents(){let e=Array.from(this.queuedUpdateSources);this.queuedUpdateSources.clear(),this.eventService.dispatchEvent({type:"stateUpdated",sources:e,state:this.cachedState})}suppressEventsAndDispatchInitEvent(e){this.suppressEvents=!0,this.columnAnimationService.setSuppressAnimation(!0),e(),setTimeout(()=>{this.suppressEvents=!1,this.queuedUpdateSources.clear(),this.isAlive()&&(this.columnAnimationService.setSuppressAnimation(!1),this.dispatchStateUpdateEvent(["gridInitializing"]))})}},tw={version:Se,moduleName:"@ag-grid-community/state-core",beans:[QN]},JN={version:Se,moduleName:"@ag-grid-community/state-api",apiFunctions:{getState:$N},dependantModules:[tw]},ZN={version:Se,moduleName:"@ag-grid-community/state",dependantModules:[tw,JN]};function XN(e){return e.rowModel.isLastRowIndexKnown()}function e7(e){return e.paginationService?.getPageSize()??100}function t7(e){return e.paginationService?.getCurrentPage()??0}function i7(e){return e.paginationService?.getTotalPages()??1}function n7(e){return e.paginationService?e.paginationService.getMasterRowCount():e.rowModel.getRowCount()}function o7(e){e.paginationService?.goToNextPage()}function r7(e){e.paginationService?.goToPreviousPage()}function a7(e){e.paginationService?.goToFirstPage()}function s7(e){e.paginationService?.goToLastPage()}function l7(e,t){e.paginationService?.goToPage(t)}var c7=class extends H{constructor(){super(...arguments),this.beanName="paginationAutoPageSizeService"}wireBeans(e){this.ctrlsService=e.ctrlsService,this.paginationService=e.paginationService}postConstruct(){this.ctrlsService.whenReady(this,e=>{this.centerRowsCtrl=e.center;let t=this.checkPageSize.bind(this);this.addManagedEventListeners({bodyHeightChanged:t,scrollVisibilityChanged:t}),this.addManagedPropertyListener("paginationAutoPageSize",this.onPaginationAutoSizeChanged.bind(this)),this.checkPageSize()})}notActive(){return!this.gos.get("paginationAutoPageSize")||this.centerRowsCtrl==null}onPaginationAutoSizeChanged(){this.notActive()?this.paginationService.unsetAutoCalculatedPageSize():this.checkPageSize()}checkPageSize(){if(this.notActive())return;
654let e=this.centerRowsCtrl.getViewportSizeFeature().getBodyHeight();if(e>0){let t=()=>{let i=Math.max(Hr(this.gos),1),n=Math.floor(e/i);this.paginationService.setPageSize(n,"autoCalculated")};this.isBodyRendered?wi(()=>t(),50)():(t(),this.isBodyRendered=!0)}else this.isBodyRendered=!1}};function d7(e,t,i){e.addManagedElementListeners(t,{keydown:n=>{if(!n.defaultPrevented&&n.key===j.TAB){let o=n.shiftKey;i.findNextFocusableElement(t,!1,o)||i.focusNextGridCoreContainer(o)&&n.preventDefault()}}})}var Dl="paginationPageSizeSelector",u7=class extends Le{constructor(){super('<span class="ag-paging-page-size"></span>'),this.hasEmptyOption=!1,this.handlePageSizeItemSelected=()=>{if(!this.selectPageSizeComp)return;let e=this.selectPageSizeComp.getValue();if(!e)return;let t=Number(e);isNaN(t)||t<1||t===this.paginationService.getPageSize()||(this.paginationService.setPageSize(t,"pageSizeSelector"),this.hasEmptyOption&&this.toggleSelectDisplay(!0),this.selectPageSizeComp.getFocusableElement().focus())}}wireBeans(e){this.paginationService=e.paginationService}postConstruct(){this.addManagedPropertyListener(Dl,()=>{this.onPageSizeSelectorValuesChange()}),this.addManagedEventListeners({paginationChanged:e=>this.handlePaginationChanged(e)})}handlePaginationChanged(e){if(!this.selectPageSizeComp||!e?.newPageSize)return;let t=this.paginationService.getPageSize();this.getPageSizeSelectorValues().includes(t)?this.selectPageSizeComp.setValue(t.toString()):this.hasEmptyOption?this.selectPageSizeComp.setValue(""):this.toggleSelectDisplay(!0)}toggleSelectDisplay(e){this.selectPageSizeComp&&!e&&this.reset(),e&&(this.reloadPageSizesSelector(),this.selectPageSizeComp)}reset(){ni(this.getGui()),this.selectPageSizeComp&&(this.selectPageSizeComp=this.destroyBean(this.selectPageSizeComp))}onPageSizeSelectorValuesChange(){this.selectPageSizeComp&&this.shouldShowPageSizeSelector()&&this.reloadPageSizesSelector()}shouldShowPageSizeSelector(){return this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel")&&!this.gos.get("paginationAutoPageSize")&&this.gos.get(Dl)!==!1}reloadPageSizesSelector(){let e=this.getPageSizeSelectorValues(),t=this.paginationService.getPageSize(),i=!t||!e.includes(t);if(i){let o=this.gos.exists("paginationPageSize"),r=this.gos.get(Dl)!==!0;$(`'paginationPageSize=${t}'${o?"":" (default value)"}, but ${t} is not included in${r?"":" the default"} paginationPageSizeSelector=[${e.join(", ")}].`),r||$(`Either set '${Dl}' to an array that includes ${t} or to 'false' to disable the page size selector.`),e.unshift("")}let n=String(i?"":t);this.selectPageSizeComp?(rr(this.pageSizeOptions,e)||(this.selectPageSizeComp.clearOptions().addOptions(this.createPageSizeSelectOptions(e)),this.pageSizeOptions=e),this.selectPageSizeComp.setValue(n,!0)):this.createPageSizeSelectorComp(e,n),this.hasEmptyOption=i}createPageSizeSelectOptions(e){return e.map(t=>({value:String(t)}))}createPageSizeSelectorComp(e,t){let i=this.localeService.getLocaleTextFunc(),n=i("pageSizeSelectorLabel","Page Size:"),o=i("ariaPageSizeSelectorLabel","Page Size");this.selectPageSizeComp=this.createManagedBean(new Tm).addOptions(this.createPageSizeSelectOptions(e)).setValue(t).setAriaLabel(o).setLabel(n).onValueChange(()=>this.handlePageSizeItemSelected()),this.appendChild(this.selectPageSizeComp)}getPageSizeSelectorValues(){let e=[20,50,100],t=this.gos.get(Dl);return!Array.isArray(t)||$i(t)?e:[...t].sort((i,n)=>i-n)}destroy(){this.toggleSelectDisplay(!1),super.destroy()}},p7={selector:"AG-PAGE-SIZE-SELECTOR",component:u7},h7=class extends Ky{constructor(){super(),this.btFirst=le,this.btPrevious=le,this.btNext=le,this.btLast=le,this.lbRecordCount=le,this.lbFirstRowOnPage=le,this.lbLastRowOnPage=le,this.lbCurrent=le,this.lbTotal=le,this.pageSizeComp=le,this.previousAndFirstButtonsDisabled=!1,this.nextButtonDisabled=!1,this.lastButtonDisabled=!1,this.areListenersSetup=!1,this.allowFocusInnerElement=!1}wireBeans(e){this.rowModel=e.rowModel,this.paginationService=e.paginationService,this.focusService=e.focusService,this.ariaAnnouncementService=e.ariaAnnouncementService}postConstruct(){let e=this.gos.get("enableRtl");this.setTemplate(this.getTemplate(),[p7]);let{btFirst:t,btPrevious:i,btNext:n,btLast:o}=this;
654this.activateTabIndex([t,i,n,o]),t.insertAdjacentElement("afterbegin",Wi(e?"last":"first",this.gos)),i.insertAdjacentElement("afterbegin",Wi(e?"next":"previous",this.gos)),n.insertAdjacentElement("afterbegin",Wi(e?"previous":"next",this.gos)),o.insertAdjacentElement("afterbegin",Wi(e?"first":"last",this.gos)),this.addManagedPropertyListener("pagination",this.onPaginationChanged.bind(this)),this.addManagedPropertyListener("suppressPaginationPanel",this.onPaginationChanged.bind(this)),this.addManagedPropertyListeners(["paginationPageSizeSelector","paginationAutoPageSize","suppressPaginationPanel"],()=>this.onPageSizeRelatedOptionsChange()),this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector()),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:r=>{this.allowFocusInnerElement?this.tabGuardFeature.getTabGuardCtrl().focusInnerElement(r):this.focusService.focusGridInnerElement(r)},forceFocusOutWhenTabGuardsAreEmpty:!0}),this.onPaginationChanged()}setAllowFocus(e){this.allowFocusInnerElement=e}onPaginationChanged(){let t=this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel");this.setDisplayed(t),t&&(this.setupListeners(),this.enableOrDisableButtons(),this.updateLabels(),this.onPageSizeRelatedOptionsChange())}onPageSizeRelatedOptionsChange(){this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector())}setupListeners(){this.areListenersSetup||(this.addManagedEventListeners({paginationChanged:this.onPaginationChanged.bind(this)}),[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}].forEach(e=>{let{el:t,fn:i}=e;this.addManagedListeners(t,{click:i,keydown:n=>{(n.key===j.ENTER||n.key===j.SPACE)&&(n.preventDefault(),i())}})}),d7(this,this.getGui(),this.focusService),this.areListenersSetup=!0)}onBtFirst(){this.previousAndFirstButtonsDisabled||this.paginationService.goToFirstPage()}formatNumber(e){let t=this.gos.getCallback("paginationNumberFormatter");if(t)return t({value:e});let i=this.localeService.getLocaleTextFunc(),n=i("thousandSeparator",","),o=i("decimalSeparator",".");return IF(e,n,o)}getTemplate(){let e=this.localeService.getLocaleTextFunc(),t=e("page","Page"),i=e("to","to"),n=e("of","of"),o=e("firstPage","First Page"),r=e("previousPage","Previous Page"),a=e("nextPage","Next Page"),s=e("lastPage","Last Page"),l=this.getCompId();return`<div class="ag-paging-panel ag-unselectable" id="ag-${l}"> 655 <ag-page-size-selector data-ref="pageSizeComp"></ag-page-size-selector> 656 <span class="ag-paging-row-summary-panel"> 657 <span id="ag-${l}-first-row" data-ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span> 658 <span id="ag-${l}-to">${i}</span> 659 <span id="ag-${l}-last-row" data-ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span> 660 <span id="ag-${l}-of">${n}</span> 661 <span id="ag-${l}-row-count" data-ref="lbRecordCount" class="ag-paging-row-summary-panel-number"></span> 662 </span> 663 <span class="ag-paging-page-summary-panel" role="presentation"> 664 <div data-ref="btFirst" class="ag-button ag-paging-button" role="button" aria-label="${o}"></div> 665 <div data-ref="btPrevious" class="ag-button ag-paging-button" role="button" aria-label="${r}"></div> 666 <span class="ag-paging-description"> 667 <span id="ag-${l}-start-page">${t}</span> 668 <span id="ag-${l}-start-page-number" data-ref="lbCurrent" class="ag-paging-number"></span> 669 <span id="ag-${l}-of-page">${n}</span> 670 <span id="ag-${l}-of-page-number" data-ref="lbTotal" class="ag-paging-number"></span> 671 </span> 672 <div data-ref="btNext" class="ag-button ag-paging-button" role="button" aria-label="${a}"></div> 673 <div data-ref="btLast" class="ag-button ag-paging-button" role="button" aria-label="${s}"></div> 674 </span> 675 </div>`}onBtNext(){this.nextButtonDisabled||this.paginationService.goToNextPage()}onBtPrevious(){this.previousAndFirstButtonsDisabled||this.paginationService.goToPreviousPage()}onBtLast(){this.lastButtonDisabled||this.paginationService.goToLastPage()}enableOrDisableButtons(){let e=this.paginationService.getCurrentPage(),t=this.rowModel.isLastRowIndexKnown(),i=this.paginationService.getTotalPages();this.previousAndFirstButtonsDisabled=e===0,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);let n=this.isZeroPagesToDisplay(),o=e===i-1;this.nextButtonDisabled=o||n,this.lastButtonDisabled=!t||n||e===i-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)}toggleButtonDisabled(e,t){zR(e,t),e.classList.toggle("ag-disabled",t)}isZeroPagesToDisplay(){let e=this.rowModel.isLastRowIndexKnown(),t=this.paginationService.getTotalPages();return e&&t===0}updateLabels(){let e=this.rowModel.isLastRowIndexKnown(),t=this.paginationService.getTotalPages(),i=this.paginationService.getMasterRowCount(),n=e?i:null;if(n===1){let I=this.rowModel.getRow(0);if(I&&I.group&&!(I.groupData||I.aggData)){this.setTotalLabelsToZero();return}}let o=this.paginationService.getCurrentPage(),r=this.paginationService.getPageSize(),a,s;this.isZeroPagesToDisplay()?a=s=0:(a=r*o+1,s=a+r-1,e&&s>n&&(s=n));let l=a+r-1,c=!e&&i<l,h=this.formatNumber(a);this.lbFirstRowOnPage.textContent=h;let m,f=this.localeService.getLocaleTextFunc();c?m=f("pageLastRowUnknown","?"):m=this.formatNumber(s),this.lbLastRowOnPage.textContent=m;let _=t>0?o+1:0,S=this.formatNumber(_);this.lbCurrent.textContent=S;let M,D;if(e)M=this.formatNumber(t),D=this.formatNumber(n);else{let I=f("more","more");M=I,D=I}this.lbTotal.textContent=M,this.lbRecordCount.textContent=D,this.announceAriaStatus(h,m,D,S,M)}announceAriaStatus(e,t,i,n,o){let r=this.localeService.getLocaleTextFunc(),a=r("page","Page"),s=r("to","to"),l=r("of","of"),c=`${e} ${s} ${t} ${l} ${i}`,h=`${a} ${n} ${l} ${o}`;c!==this.ariaRowStatus&&(this.ariaRowStatus=c,this.ariaAnnouncementService.announceValue(c,"paginationRow")),h!==this.ariaPageStatus&&(this.ariaPageStatus=h,this.ariaAnnouncementService.announceValue(h,"paginationPage"))}setTotalLabelsToZero(){let e=this.formatNumber(0);this.lbFirstRowOnPage.textContent=e,this.lbCurrent.textContent=e,this.lbLastRowOnPage.textContent=e,this.lbTotal.textContent=e,this.lbRecordCount.textContent=e,this.announceAriaStatus(e,e,e,e,e)}},g7={selector:"AG-PAGINATION",component:h7},m7=class extends H{constructor(){super(...arguments),this.beanName="paginationService",this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDis
vendor: 4,445 bytes, line 675
675playedRowIndex=0,this.masterRowCount=0}wireBeans(e){this.rowModel=e.rowModel,this.pageBoundsService=e.pageBoundsService}postConstruct(){this.active=this.gos.get("pagination"),this.pageSizeFromGridOptions=this.gos.get("paginationPageSize"),this.paginateChildRows=this.isPaginateChildRows(),this.addManagedPropertyListener("pagination",this.onPaginationGridOptionChanged.bind(this)),this.addManagedPropertyListener("paginationPageSize",this.onPageSizeGridOptionChanged.bind(this))}getPaginationSelector(){return g7}isPaginateChildRows(){return this.gos.get("groupRemoveSingleChildren")||this.gos.get("groupRemoveLowestSingleChildren")?!0:this.gos.get("paginateChildRows")}onPaginationGridOptionChanged(){this.active=this.gos.get("pagination"),this.calculatePages(),this.dispatchPaginationChangedEvent({keepRenderedRows:!0})}onPageSizeGridOptionChanged(){this.setPageSize(this.gos.get("paginationPageSize"),"gridOptions")}goToPage(e){!this.active||this.currentPage===e||typeof this.currentPage!="number"||(this.currentPage=e,this.calculatePages(),this.dispatchPaginationChangedEvent({newPage:!0}))}isRowPresent(e){return e.rowIndex>=this.topDisplayedRowIndex&&e.rowIndex<=this.bottomDisplayedRowIndex}getPageForIndex(e){return Math.floor(e/this.pageSize)}goToPageWithIndex(e){if(!this.active)return;let t=this.getPageForIndex(e);this.goToPage(t)}isRowInPage(e){return this.active?this.getPageForIndex(e.rowIndex)===this.currentPage:!0}getCurrentPage(){return this.currentPage}goToNextPage(){this.goToPage(this.currentPage+1)}goToPreviousPage(){this.goToPage(this.currentPage-1)}goToFirstPage(){this.goToPage(0)}goToLastPage(){let e=this.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)}getPageSize(){return this.pageSize}getTotalPages(){return this.totalPages}setPage(e){this.currentPage=e}get pageSize(){return K(this.pageSizeAutoCalculated)&&this.gos.get("paginationAutoPageSize")?this.pageSizeAutoCalculated:K(this.pageSizeFromPageSizeSelector)?this.pageSizeFromPageSizeSelector:K(this.pageSizeFromInitialState)?this.pageSizeFromInitialState:K(this.pageSizeFromGridOptions)?this.pageSizeFromGridOptions:this.defaultPageSize}calculatePages(){this.active?this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly():this.calculatedPagesNotActive(),this.pageBoundsService.calculateBounds(this.topDisplayedRowIndex,this.bottomDisplayedRowIndex)}unsetAutoCalculatedPageSize(){if(this.pageSizeAutoCalculated===void 0)return;let e=this.pageSizeAutoCalculated;this.pageSizeAutoCalculated=void 0,this.pageSize!==e&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0}))}setPageSize(e,t){let i=this.pageSize;switch(t){case"autoCalculated":this.pageSizeAutoCalculated=e;break;case"pageSizeSelector":this.pageSizeFromPageSizeSelector=e,this.currentPage!==0&&this.goToFirstPage();break;case"initialState":this.pageSizeFromInitialState=e;break;case"gridOptions":this.pageSizeFromGridOptions=e,this.pageSizeFromInitialState=void 0,this.pageSizeFromPageSizeSelector=void 0,this.currentPage!==0&&this.goToFirstPage();break}i!==this.pageSize&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0,keepRenderedRows:!0}))}setZeroRows(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0}adjustCurrentPageIfInvalid(){this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!isFinite(this.currentPage)||isNaN(this.currentPage)||this.currentPage<0)&&(this.currentPage=0)}calculatePagesMasterRowsOnly(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),this.masterRowCount<=0){this.setZeroRows();return}let e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.adjustCurrentPageIfInvalid();let t=this.pageSize*this.currentPage,i=this.pageSize*(this.currentPage+1)-1;if(i>e&&(i=e),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(t),i===e)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{let n=this.rowModel.getTopLevelRowDisplayedIndex(i+1);this.bottomDisplayedRowIndex=n-1}}getMasterRowCount(){return this.masterRowCount}calculatePagesAllRows(){if(this.masterRowCount=this.rowModel.getRowCount(),this.masterRowCount===0){this.setZeroRows();return}let e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.adjustCurrentPageIfInvalid(),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDis
675playedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>e&&(this.bottomDisplayedRowIndex=e)}calculatedPagesNotActive(){this.setPageSize(void 0,"autoCalculated"),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1}dispatchPaginationChangedEvent(e){let{keepRenderedRows:t=!1,newPage:i=!1,newPageSize:n=!1}=e;this.eventService.dispatchEvent({type:"paginationChanged",animate:!1,newData:!1,newPage:i,newPageSize:n,keepRenderedRows:t})}},iw={version:Se,moduleName:"@ag-grid-community/pagination-core",beans:[m7,c7]},f7={version:Se,moduleName:"@ag-grid-community/pagination-api",dependantModules:[iw],apiFunctions:{paginationIsLastPageFound:XN,paginationGetPageSize:e7,paginationGetCurrentPage:t7,paginationGetTotalPages:i7,paginationGetRowCount:n7,paginationGoToNextPage:o7,paginationGoToPreviousPage:r7,paginationGoToFirstPage:a7,paginationGoToLastPage:s7,paginationGoToPage:l7}},v7={version:Se,moduleName:"@ag-grid-community/pagination",dependantModules:[iw,f7]},Ri="clientSide",bi="serverSide",Ja="infinite",C7={onGroupExpandedOrCollapsed:[Ri],refreshClientSideRowModel:[Ri],isRowDataEmpty:[Ri],forEachLeafNode:[Ri],forEachNodeAfterFilter:[Ri],forEachNodeAfterFilterAndSort:[Ri],resetRowHeights:[Ri],applyTransaction:[Ri],applyTransactionAsync:[Ri],flushAsyncTransactions:[Ri],getBestCostNodeSelection:[Ri],getServerSideSelectionState:[bi],setServerSideSelectionState:[bi],applyServerSideTransaction:[bi],applyServerSideTransactionAsync:[bi],applyServerSideRowData:[bi],retryServerSideLoads:[bi],flushServerSideAsyncTransactions:[bi],refreshServerSide:[bi],getServerSideGroupLevelState:[bi],refreshInfiniteCache:[Ja],purgeInfiniteCache:[Ja],getInfiniteRowCount:[Ja],isLastRowIndexKnown:[Ja,bi],expandAll:[Ri,bi],collapseAll:[Ri,bi],onRowHeightChanged:[Ri,bi],setRowCount:[Ja,bi],getCacheBlockState:[Ja,bi]},b7={getValue:{version:"v31.3",new:"getCellValue"},getFirstDisplayedRow:{version:"v31.1",new:"getFirstDisplayedRowIndex"},getLastDisplayedRow:{version:"v31.1",new:"getLastDisplayedRowIndex"},getModel:{version:"v31.1",message:"Please use the appropriate grid API methods instead."},setColumnVisible:{version:"v31.1",old:"setColumnVisible(key,visible)",new:"setColumnsVisible([key],visible)"},setColumnPinned:{version:"v31.1",old:"setColumnPinned(key,pinned)",new:"setColumnsPinned([key],pinned)"},moveColumn:{version:"v31.1",old:"moveColumn(key, toIndex)",new:"moveColumns([key], toIndex)"},setColumnWidth:{version:"v31.1",old:"setColumnWidth(col, width)",new:"setColumnWidths([{key: col, newWidth: width}])"},autoSizeColumn:{version:"v31.1",old:"autoSizeColumn(key, skipHeader)",new:"autoSizeColumns([key], skipHeader)"},addAggFunc:{version:"v31.1",old:"addAggFunc(key, func)",new:"addAggFuncs({ key: func })"},removeValueColumn:{version:"v31.1",old:"removeValueColumn(colKey)",new:"removeValueColumns([colKey])"},addValueColumn:{version:"v31.1",old:"addValueColumn(colKey)",new:"addValueColumns([colKey])"},removeRowGroupColumn:{version:"v31.1",old:"removeRowGroupColumn(colKey)",new:"removeRowGroupColumns([colKey])"},addRowGroupColumn:{version:"v31.1",old:"addRowGroupColumn(colKey)",new:"addRowGroupColumns([colKey])"},removePivotColumn:{version:"v31.1",old:"removePivotColumn(colKey)",new:"removePivotColumns([colKey])"},addPivotColumn:{version:"v31.1",old:"addPivotColumn(colKey)",new:"addPivotColumns([colKey])"},showColumnMenuAfterButtonClick:{version:"v31.1",message:"Use 'IHeaderParams.showColumnMenu' within a header component, or 'api.showColumnMenu' elsewhere."},showColumnMenuAfterMouseClick:{version:"v31.1",message:"Use 'IHeaderParams.showColumnMenuAfterMouseClick' within a header component, or 'api.showColumnMenu' elsewhere."},getFilterInstance:{version:"v31.1",message:"'getFilterInstance' is deprecated. To get/set individual filter models, use 'getColumnFilterModel' or 'setColumnFilterModel' instead. To get hold of the filter instance, use 'getColumnFilterInstance' which returns the instance asynchronously."},showLoadingOverlay:{version:"v32",message:'`showLoadingOverlay` is deprecated. Use the grid option "loading"=true instead or setGridOption("loading", true).'},clearRangeSelection:{version:"v32.2",message:"Use `clearCellSelection` instead."},getInfiniteRowCount:{version:"v32.2",old:"getInfiniteRowCount()",new:"getDisplayedRowCount()"}};function _7(e,t,i){let n=b7[e];if(n){let{version:r,new:a,old:s,message:l}=n,c=s??e;return(...h)=>{let m=a?`Please use ${a} instead. `:"";return $(`Since ${r} api.${c} is deprecated. ${m}${l??""}`),t.apply(t,h)}}let o=C7[e];return o?(...r)=>{let a=i.rowModel.getType();if(!o.includes(a)){Be(`api.${e} can only be called when gridOptions.rowModelType is ${o.join(" or ")}`);return}return t.apply(t,r)}:t}var y7={columnsMenuParams:{version:"31.1",message:"Use `columnChooserParams` instead."},suppressMenu:{version:"31.1",message:"Use `suppressHeaderMenuButton` instead."},suppressCellFlash:{version:"31.2",message:"Use `enableCellChangeFlash={false}` in the ColDef"},checkboxSelection:{version:"32.2",message:"Use `rowSelection.checkboxes` in `GridOptions` instead."},headerCheckboxSelection:{version:"32.2",message:"Use `rowSelection.headerCheckbox = true` in `GridOptions` instead."},headerCheckboxSelectionFilteredOnly:{version:"32.2",message:'Use `rowSelection.selectAll = "filtered"` in `GridOptions` instead.'},headerCheckboxSelectionCurrentPageOnly:{version:"32.2",message:'Use `rowSelection.selectAll = "currentPage"` in `GridOptions` instead.'},showDisabledCheckboxes:{version:"32.2",message:"Use `rowSelection.hideDisabledCheckboxes = true` in `GridOptions` instead."}},Xo=(e,t)=>{let i=t.rowModelType??"clientSide";return i==="clientSide"||i==="serverSide"?{module:"@ag-grid-enterprise/row-grouping"}:null},w7={enableRowGroup:Xo,rowGroup:Xo,rowGroupIndex:Xo,enablePivot:Xo,enableValue:Xo,pivot:Xo,pivotIndex:Xo,aggFunc:Xo,cellEditor:e=>e.cellEditor==="agRichSelect"||e.cellEditor==="agRichSelectCellEditor"?{module:"@ag-grid-enterprise/rich-select"}:null,menuTabs:e=>{let t=["columnsMenuTab","generalMenuTab"];return e.menuTabs?.some(i=>t.includes(i))?{module:"@ag-grid-enterprise/menu"}:null},columnsMenuParams:{module:["@ag-grid-enterprise/menu","@ag-grid-enterprise/column-tool-panel"]},columnChooserParams:{module:["@ag-grid-enterprise/menu","@ag-grid-enterprise/column-tool-panel"]},headerCheckboxSelection:{supportedRowModels:["clientSide","serverSide"],validate:(e,{rowSelection:t})=>t==="multiple"?null:"headerCheckboxSelection is only supported with rowSelection=multiple"},headerCheckboxSelectionFilteredOnly:{supportedRowModels:["clientSide"],validate:(e,{rowSelection:t})=>t==="multiple"?null:"headerCheckboxSelectionFilteredOnly is only supported with rowSelection=multiple"},headerCheckboxSelectionCurrentPageOnly:{supportedRowModels:["clientSide"],validate:(e,{rowSelection:t})=>t==="multiple"?null:"headerCheckboxSelectionCurrentPageOnly is only supported with rowSelection=multiple"},children:()=>Za},x7={headerName:void 0,columnGroupShow:void 0,headerClass:void 0,toolPanelClass:void 0,headerValueGetter:void 0,pivotKeys:void 0,groupId:void 0,colId:void 0,sort:void 0,initialSort:void 0,field:void 0,type:void 0,cellDataType:void 0,tooltipComponent:void 0,tooltipField:void 0,headerTooltip:void 0,cellClass:void 0,showRowGroup:void 0,filter:void 0,initialAggFunc:void 0,defaultAggFunc:void 0,aggFunc:void 0,pinned:void 0,initialPinned:void 0,chartDataType:void 0,cellAriaRole:void 0,cellEditorPopupPosition:void 0,headerGroupComponent:void 0,headerGroupComponentParams:void 0,cellStyle:void 0,cellRenderer:void 0,cellRendererParams:void 0,cellEditor:void 0,cellEditorParams:void 0,filterParams:void 0,pivotValueColumn:void 0,headerComponent:void 0,headerComponentParams:void 0,floatingFilterComponent:void 0,floatingFilterComponentParams:void 0,tooltipComponentParams:void 0,refData:void 0,columnsMenuParams:void 0,columnChooserParams:void 0,children:void 0,sortingOrder:void 0,allowedAggFuncs:void 0,menuTabs:void 0,pivotTotalColumnIds:void 0,cellClassRules:void 0,icons:void 0,sortIndex:void 0,initialSortIndex:void 0,flex:void 0,initialFlex:void 0,width:void 0,initialWidth:void 0,minWidth:void 0,maxWidth:void 0,rowGroupIndex:void 0,initialRowGroupIndex:void 0,pivotIndex:void 0,initialPivotIndex:void 0,suppressCellFlash:void 0,suppressColumnsToolPanel:void 0,suppressFiltersToolPanel:void 0,openByDefault:void 0,marryChildren:void 0,suppressStickyLabel:void 0,hide:void 0,initialHide:void 0,rowGroup:void 0,initialRowGroup:void 0,pivot:void 0,initialPivot:void 0,checkboxSelection:void 0,showDisabledCheckboxes:void 0,headerCheckboxSelection:void 0,headerCheckboxSelectionFilteredOnly:void 0,headerCheckboxSelectionCurrentPageOnly:void 0,suppressMenu:void 0,suppressHeaderMenuButton:void 0,suppressMovable:void 0,lockPosition:void 0,lockVisible:void 0,lockPinned:void 0,unSortIcon:void 0,suppressSizeToFit:void 0,suppressAutoSize:void 0,enableRowGroup:void 0,enablePivot:void 0,enableValue:void 0,editable:void 0,suppressPaste:void 0,suppressNavigable:void 0,enableCellChangeFlash:void 0,rowDrag:void 0,dndSource:void 0,autoHeight:void 0,wrapText:void 0,sortable:void 0,resizable:void 0,singleClickEdit:void 0,floatingFilter:void 0,cellEditorPopup:void 0,suppressFillHandle:void 0,wrapHeaderText:void 0,autoHeaderHeight:void 0,dndSourceOnRowDrag:void 0,valueGetter:void 0,valueSetter:void 0,filterValueGetter:void 0,keyCreator:void 0,valueFormatter:void 0,valueParser:void 0,comparator:void 0,equals:void 0,pivotComparator:void 0,suppressKeyboardEvent:void 0,suppressHeaderKeyboardEvent:void 0,colSpan:void 0,rowSpan:void 0,getQuickFilterText:void 0,onCellValueChanged:void 0,onCellClicked:void 0,onCellDoubleClicked:void 0,onCellContextMenu:void 0,rowDragText:void 0,tooltipValueGetter:void 0,cellRendererSelector:void 0,cellEditorSelector:void 0,suppressS
675panHeaderHeight:void 0,useValueFormatterForExport:void 0,useValueParserForImport:void 0,mainMenuItems:void 0,contextMenuItems:void 0,suppressFloatingFilterButton:void 0,suppressHeaderFilterButton:void 0,suppressHeaderContextMenu:void 0,loadingCellRenderer:void 0,loadingCellRendererParams:void 0,loadingCellRendererSelector:void 0,context:void 0},S7=Object.keys(x7),Za={objectName:"colDef",allProperties:S7,docsUrl:"column-properties/",deprecations:y7,validations:w7},k7=()=>({advancedFilterModel:{version:"31",message:"Use `initialState.filter.advancedFilterModel` instead."},suppressAsyncEvents:{version:"31",message:"Events should be handled asynchronously."},cellFadeDelay:{version:"31.1",renamed:"cellFadeDuration"},cellFlashDelay:{version:"31.1",renamed:"cellFlashDuration"},suppressServerSideInfiniteScroll:{version:"31.1"},serverSideSortOnServer:{version:"31.1"},serverSideFilterOnServer:{version:"31.1"},enableCellChangeFlash:{version:"31.2",message:"Use `enableCellChangeFlash` in the `ColDef` or `defaultColDef` for all columns."},groupIncludeFooter:{version:"31.3",message:"Use `groupTotalRow` instead."},groupIncludeTotalFooter:{version:"31.3",message:"Use `grandTotalRow` instead."},suppressLoadingOverlay:{version:"32",message:"Use `loading`=false instead."},enableFillHandle:{version:"32.2",message:"Use `cellSelection.handle` instead."},enableRangeHandle:{version:"32.2",message:"Use `cellSelection.handle` instead."},enableRangeSelection:{version:"32.2",message:"Use `cellSelection = true` instead."},suppressMultiRangeSelection:{version:"32.2",message:"Use `cellSelection.suppressMultiRanges` instead."},suppressClearOnFillReduction:{version:"32.2",message:"Use `cellSelection.handle.suppressClearOnFillReduction` instead."},fillHandleDirection:{version:"32.2",message:"Use `cellSelection.handle.direction` instead."},fillOperation:{version:"32.2",message:"Use `cellSelection.handle.setFillValue` instead."},suppressRowClickSelection:{version:"32.2",message:"Use `rowSelection.enableClickSelection` instead."},suppressRowDeselection:{version:"32.2",message:"Use `rowSelection.enableClickSelection` instead."},rowMultiSelectWithClick:{version:"32.2",message:"Use `rowSelection.enableSelectionWithoutKeys` instead."},groupSelectsChildren:{version:"32.2",message:'Use `rowSelection.groupSelects = "descendants"` instead.'},groupSelectsFiltered:{version:"32.2",message:'Use `rowSelection.groupSelects = "filteredDescendants"` instead.'},isRowSelectable:{version:"32.2",message:"Use `selectionOptions.isRowSelectable` instead."},suppressCopySingleCellRanges:{version:"32.2",message:"Use `rowSelection.copySelectedRows` instead."},suppressCopyRowsToClipboard:{version:"32.2",message:"Use `rowSelection.copySelectedRows` instead."},onRangeSelectionChanged:{version:"32.2",message:"Use `onCellSelectionChanged` instead."},onRangeDeleteStart:{version:"32.2",message:"Use `onCellSelectionDeleteStart` instead."},onRangeDeleteEnd:{version:"32.2",message:"Use `onCellSelectionDeleteEnd` instead."},suppressBrowserResizeObserver:{version:"32.2",message:"The grid always uses the browser's ResizeObserver, this grid option has no effect."},onColumnEverythingChanged:{version:"32.2",message:"Either use `onDisplayedColumnsChanged` which is fired at the same time, or use one of the more specific column events."}}),E7={suppressContextMenu:!1,preventDefaultOnContextMenu:!1,allowContextMenuWithControlKey:!1,suppressMenuHide:!0,enableBrowserTooltips:!1,tooltipTrigger:"hover",tooltipShowDelay:2e3,tooltipHideDelay:1e4,tooltipMouseTrack:!1,tooltipShowMode:"standard",tooltipInteraction:!1,copyHeadersToClipboard:!1,copyGroupHeadersToClipboard:!1,clipboardDelimiter:" ",suppressCopyRowsToClipboard:!1,suppressCopySingleCellRanges:!1,suppressLastEmptyLineOnPaste:!1,suppressClipboardPaste:!1,suppressClipboardApi:!1,suppressCutToClipboard:!1,maintainColumnOrder:!1,enableStrictPivotColumnOrder:!1,suppressFieldDotNotation:!1,allowDragFromColumnsToolPanel:!1,suppressMovableColumns:!1,suppressColumnMoveAnimation:!1,suppressMoveWhenColumnDragging:!1,suppressDragLeaveHidesColumns:!1,suppressRowGroupHidesColumns:!1,suppressAutoSize:!1,autoSizePadding:20,skipHeaderOnAutoSize:!1,singleClickEdit:!1,suppressClickEdit:!1,readOnlyEdit:!1,stopEditingWhenCellsLoseFocus:!1,enterNavigatesVertically:!1,enterNavigatesVerticallyAfterEdit:!1,enableCellEditingOnBackspace:!1,undoRedoCellEditing:!1,undoRedoCellEditingLimit:10,suppressCsvExport:!1,suppressExcelExport:!1,cacheQuickFilter:!1,includeHiddenColumnsInQuickFilter:!1,excludeChildrenWhenTreeDataFiltering:!1,enableAdvancedFilter:!1,includeHiddenColumnsInAdvancedFilter:!1,enableCharts:!1,masterDetail:!1,keepDetailRows:!1,keepDetailRowsCount:10,detailRowAutoHeight:!1,tabIndex:0,rowBuffer:10,valueCache:!1,valueCacheNeverExpires:!1,enableCellExpressions:!1,suppressTouch:!1,suppressFocusAfterRefresh:!1,suppressAsyncEvents:!1,suppressBrowserResizeObserver:!1,suppressPropertyNamesCheck:!1,suppressChangeDetection:!1,debug:!1,suppressLoadingOverlay:!1,suppressNoRowsOverlay:!1,pagination:!1,paginationPageSize:100,paginationPageSizeSelector:!0,paginationAutoPageSize:!1,paginateChildRows:!1,suppressPaginationPanel:!1,pivotMode:!1,pivotPanelShow:"never",pivotDefaultExpanded:0,pivotSuppressAutoColumn:!1,suppressExpandablePivotGroups:!1,functionsReadOnly:!1,suppressAggFuncInHeader:!1,alwaysAggregateAtRootLevel:!1,aggregateOnlyChangedColumns:!1,suppressAggFilteredOnly:!1,removePivotHeaderRowWhenSingleValueColumn:!1,animateRows:!0,enableCellChangeFlash:!1,cellFlashDelay:500,cellFlashDuration:500,cellFadeDelay:1e3,cellFadeDuration:1e3,allowShowChangeAfterFilter:!1,domLayout:"normal",ensureDomOrder:!1,enableRtl:!1,suppressColumnVirtualisation:!1,suppressMaxRenderedRowRestriction:!1,suppressRowVirtualisation:!1,rowDragManaged:!1,suppressRowDrag:!1,suppressMoveWhenRowDragging:!1,rowDragEntireRow:!1,rowDragMultiRow:!1,embedFullWidthRows:!1,groupDisplayType:"singleColumn",groupDefaultExpanded:0,groupMaintainOrder:!1,groupSelectsChildren:!1,groupIncludeTotalFooter:!1,groupSuppressBlankHeader:!1,groupSelectsFiltered:!1,showOpenedGroup:!1,groupRemoveSingleChildren:!1,groupRemoveLowestSingleChildren:!1,groupHideOpenParents:!1,groupAllowUnbalanced:!1,rowGroupPanelShow:"never",suppressMakeColumnVisibleAfterUnGroup:!1,treeData:!1,rowGroupPanelSuppressSort:!1,suppressGroupRowsSticky:!1,rowModelType:"clientSide",asyncTransactionWaitMillis:50,suppressModelUpdateAfterUpdateTransaction:!1,cacheOverflowSize:1,infiniteInitialRowCount:1,serverSideInitialRowCount:1,suppressServerSideInfiniteScroll:!1,cacheBlockSize:100,maxBlocksInCache:-1,maxConcurrentDatasourceRequests:2,blockLoadDebounceMillis:0,purgeClosedRowNodes:!1,serverSideSortAllLevels:!1,serverSideOnlyRefreshFilteredGroups:!1,serverSideSortOnServer:!1,serverSideFilterOnServer:!1,serverSidePivotResultFieldSeparator:"_",viewportRowModelPageSize:5,viewportRowModelBufferSize:5,alwaysShowHorizontalScroll:!1,alwaysShowVerticalScroll:!1,debounceVerticalScrollbar:!1,suppressHorizontalScroll:!1,suppressScrollOnNewData:!1,suppressScrollWhenPopupsAreOpen:!1,suppressAnimationFrame:!1,suppressMiddleClickScrolls:!1,suppressPreventDefaultOnMouseWheel:!1,rowMultiSelectWithClick:!1,suppressRowDeselection:!1,suppressRowClickSelection:!1,suppressCellFocus:!1,suppressHeaderFocus:!1,suppressMultiRangeSelection:!1,enableCellTextSelection:!1,enableRangeSelection:!1,enableRangeHandle:!1,enableFillHandle:!1,fillHandleDirection:"xy",suppressClearOnFillReduction:!1,accentedSort:!1,unSortIcon:!1,suppressMultiSort:!1,alwaysMultiSort:!1,suppressMaintainUnsortedOrder:!1,suppressRowHoverHighlight:!1,suppressRowTransform:!1,columnHoverHighlight:!1,deltaSort:!1,enableGroupEdit:!1,suppressGroupMaintainValueType:!1,groupLockGroupColumns:0,serverSideEnableClientSideSort:!1,suppressServerSideFullWidthLoadingRow:!1,pivotMaxGeneratedColumns:-1,columnMenu:"new",reactiveCustomComponents:!0,suppressSetFilterByDefault:!1},M7=()=>({sideBar:{module:"@ag-grid-enterprise/side-bar"},statusBar:{module:"@ag-grid-enterprise/status-bar"},enableCharts:{module:"@ag-grid-enterprise/charts"},getMainMenuItems:{module:"@ag-grid-enterprise/menu"},getContextMenuItems:{module:"@ag-grid-enterprise/menu"},allowContextMenuWithControlKey:{module:"@ag-grid-enterprise/menu"},enableAdvancedFilter:{module:"@ag-grid-enterprise/advanced-filter"},treeData:{supportedRowModels:["clientSide","serverSide"],module:"@ag-grid-enterprise/row-grouping",validate:e=>{let t=e.rowModelType??"clientSide";switch(t){case"clientSide":{let i=`treeData requires 'getDataPath' in the ${t} row model.`;return e.getDataPath?null:i}case"serverSide":{let i=`treeData requires 'isServerSideGroup' and 'getServerSideGroupKey' in the ${t} row model.`;return e.isServerSideGroup&&e.getServerSideGroupKey?null:i}}return null}},masterDetail:{module:"@ag-grid-enterprise/master-detail"},enableRangeSelection:{module:"@ag-grid-enterprise/range-selection"},enableRangeHandle:{dependencies:{enableRangeSelection:[!0]}},enableFillHandle:{dependencies:{enableRangeSelection:[!0]}},groupDefaultExpanded:{supportedRowModels:["clientSide"]},groupIncludeFooter:{supportedRowModels:["clientSide","serverSide"],validate:e=>{switch(e.rowModelType??"clientSide"){case"clientSide":return null;case"serverSide":return e.suppressServerSideInfiniteScroll?"groupIncludeFooter is not supported alongside suppressServerSideInfiniteScroll":null}return null}},groupHideOpenParents:{supportedRowModels:["clientSide","serverSide"],dependencies:{groupTotalRow:[void 0,"bottom"]}},groupIncludeTotalFooter:{supportedRowModels:["clientSide"]}
675,groupRemoveSingleChildren:{dependencies:{groupHideOpenParents:[void 0,!1],groupRemoveLowestSingleChildren:[void 0,!1]}},groupRemoveLowestSingleChildren:{dependencies:{groupHideOpenParents:[void 0,!1],groupRemoveSingleChildren:[void 0,!1]}},groupSelectsChildren:{dependencies:{rowSelection:["multiple"]}},viewportDatasource:{supportedRowModels:["viewport"],module:"@ag-grid-enterprise/viewport-row-model"},serverSideDatasource:{supportedRowModels:["serverSide"],module:"@ag-grid-enterprise/server-side-row-model"},cacheBlockSize:{supportedRowModels:["serverSide","infinite"]},datasource:{supportedRowModels:["infinite"],module:"@ag-grid-community/infinite-row-model"},rowData:{supportedRowModels:["clientSide"],module:"@ag-grid-community/client-side-row-model"},paginationPageSizeSelector:{validate:e=>{let t=e.paginationPageSizeSelector;return typeof t=="boolean"||t==null||t.length?null:`'paginationPageSizeSelector' cannot be an empty array. 676 If you want to hide the page size selector, set paginationPageSizeSelector to false.`}},rowSelection:{validate({rowSelection:e}){return e&&typeof e=="string"?'As of version 32.2.1, using `rowSelection` with the values "single" or "multiple" has been deprecated. Use the object value instead.':e&&typeof e!="object"?"Expected `RowSelectionOptions` object for the `rowSelection` property.":null}},cellSelection:{module:"@ag-grid-enterprise/range-selection"},columnDefs:()=>Za,defaultColDef:()=>Za,defaultColGroupDef:()=>Za,autoGroupColumnDef:()=>Za,selectionColumnDef:()=>Za}),T7=()=>({objectName:"gridOptions",allProperties:[...Hl.ALL_PROPERTIES,...Gl.EVENT_CALLBACKS],propertyExceptions:["api"],docsUrl:"grid-options/",deprecations:k7(),validations:M7()}),I7=class extends H{constructor(){super(...arguments),this.beanName="validationService"}wireBeans(e){this.beans=e,this.gridOptions=e.gridOptions}postConstruct(){this.processGridOptions(this.gridOptions)}processGridOptions(e){this.processOptions(e,T7())}validateApiFunction(e,t){return _7(e,t,this.beans)}processOptions(e,t){let{validations:i,deprecations:n,allProperties:o,propertyExceptions:r,objectName:a,docsUrl:s}=t;o&&this.gridOptions.suppressPropertyNamesCheck!==!0&&this.checkProperties(e,[...r??[],...Object.keys(n)],o,a,s);let l=new Set;Object.keys(e).forEach(h=>{let m=n[h];if(m)if("renamed"in m){let{renamed:F,version:W}=m;l.add(`As of v${W}, ${String(h)} is deprecated. Please use ${String(F)} instead.`),e[F]=e[h]}else{let{message:F,version:W}=m;l.add(`As of v${W}, ${String(h)} is deprecated. ${F??""}`)}let f=e[h];if(f==null||f===!1)return;let b=i[h],_;if(b)if(typeof b=="function"){let F=b(e,this.gridOptions);if(!F)return;if("objectName"in F){let W=e[h];if(Array.isArray(W)){W.forEach(re=>{this.processOptions(re,F)});return}this.processOptions(e[h],F);return}_=F}else _=b;else return;let{module:S,dependencies:M,validate:D,supportedRowModels:I}=_;if(I){let F=this.gridOptions.rowModelType??"clientSide";if(!I.includes(F)){l.add(`${String(h)} is not supported with the '${F}' row model.`);return}}if(S){let F=Array.isArray(S)?S:[S],W=!0;if(F.forEach(re=>{this.gos.assertModuleRegistered(re,String(h))||(W=!1,l.add(`${String(h)} is only available when ${re} is loaded.`))}),!W)return}if(M){let F=this.checkForRequiredDependencies(h,M,e);if(F){l.add(F);return}}if(D){let F=D(e,this.gridOptions);if(F){l.add(F);return}}}),l.size>0&&l.forEach(h=>{$(h)})}checkForRequiredDependencies(e,t,i){let o=Object.entries(t).find(([s,l])=>{let c=i[s];return!l.includes(c)});if(!o)return null;let[r,a]=o;return a.length>1?`'${String(e)}' requires '${r}' to be one of [${a.join(", ")}].`:`'${String(e)}' requires '${r}' to be ${a[0]}.`}checkProperties(e,t,i,n,o){let r=["__ob__","__v_skip","__metadata__"],a=D7(Object.getOwnPropertyNames(e),[...r,...t,...i],i);if(sn(a,(s,l)=>{let c=`invalid ${n} property '${s}' did you mean any of these: ${l.slice(0,8).join(", ")}.`;i.includes("context")&&(c+=` 677If you are trying to annotate ${n} with application data, use the '${n}.context' property instead.`),$(c)}),Object.keys(a).length>0&&o){let s=this.getFrameworkOverrides().getDocLink(o);$(`to see all the valid ${n} properties please check: ${s}`)}}};function D7(e,t,i){let n={},o=e.filter(r=>!t.some(a=>a===r));return o.length>0&&o.forEach(r=>n[r]=ly({inputValue:r,allSuggestions:i}).values),n}var P7={version:Se,moduleName:"@ag-grid-community/core"},R7={version:Se,moduleName:"@ag-grid-community/core-validations",beans:[I7]},nw={version:Se,moduleName:"@ag-grid-community/core-community-features",dependantModules:[P7,R7,GA,g4,ZN,SL,F6,v7,WN]},F7=class extends H{constructor(){super(...arguments),this.beanName="gridDestroyService",this.destroyCalled=!1}wireBeans(e){this.beans=e}destroy(){this.destroyCalled||(this.eventService.dispatchEvent({type:"gridPreDestroyed",state:this.beans.stateService?.getState()??{}}),this.destroyCalled=!0,this.beans.ctrlsService.get("gridCtrl")?.destroyGridUi(),this.beans.context.destroy(),super.destroy())}isDestroyCalled(){return this.destroyCalled}},hu=new Set(["gridPreDestroyed","fillStart","pasteStart"]),O7=e=>e==="checkboxSelected"||e==="rowClicked"||e==="spaceKey"||e==="uiSelectAll"||e==="uiSelectAllCurrentPage"||e==="uiSelectAllFiltered",A7=new Map([...Hl.BOOLEAN_PROPERTIES.map(e=>[e,jg]),...Hl.NUMBER_PROPERTIES.map(e=>[e,ky]),["groupAggFiltering",e=>typeof e=="function"?e:jg(e)],["pageSize",Vn(1)],["autoSizePadding",Vn(0)],["keepDetailRowsCount",Vn(1)],["rowBuffer",Vn(0)],["infiniteInitialRowCount",Vn(1)],["cacheOverflowSize",Vn(1)],["cacheBlockSize",Vn(1)],["serverSideInitialRowCount",Vn(1)],["viewportRowModelPageSize",Vn(1)],["viewportRowModelBufferSize",Vn(0)]]);function ow(e,t){let i=A7.get(e);return i?i(t):t}function L7(e){let t={};return Object.entries(e).forEach(([i,n])=>{let o=ow(i,n);t[i]=o}),t}var N7=(()=>{let e=class rw extends H{constructor(){super(...arguments),this.beanName="gos",this.gridReadyFired=!1,this.queueEvents=[],this.domDataKey="__AG_"+Math.random().toString(),this.propertyEventService=new cs,this.globalEventHandlerFactory=i=>(n,o)=>
677{if(!this.isAlive())return;let r=hu.has(n);if(r&&!i||!r&&i)return;let a=(s,l)=>{let c=this.gridOptions[Gl.getCallbackForEvent(s)];typeof c=="function"&&this.frameworkOverrides.wrapOutgoing(()=>c(l))};if(this.gridReadyFired)a(n,o);else if(n==="gridReady"){a(n,o),this.gridReadyFired=!0;for(let s of this.queueEvents)a(s.eventName,s.event);this.queueEvents=[]}else this.queueEvents.push({eventName:n,event:o})}}wireBeans(i){this.gridOptions=i.gridOptions,this.eGridDiv=i.eGridDiv,this.validationService=i.validationService,this.environment=i.environment,this.api=i.gridApi,this.gridId=i.context.getGridId()}get gridOptionsContext(){return this.gridOptions.context}postConstruct(){let i=!this.get("suppressAsyncEvents");this.eventService.addGlobalListener(this.globalEventHandlerFactory().bind(this),i),this.eventService.addGlobalListener(this.globalEventHandlerFactory(!0).bind(this),!1),this.propertyEventService.setFrameworkOverrides(this.frameworkOverrides),this.addManagedEventListeners({gridOptionsChanged:({options:n})=>{this.updateGridOptions({options:n,force:!0,source:"gridOptionsUpdated"})}})}destroy(){super.destroy(),this.queueEvents=[]}get(i){return this.gridOptions[i]??E7[i]}getCallback(i){return this.mergeGridCommonParams(this.gridOptions[i])}exists(i){return K(this.gridOptions[i])}mergeGridCommonParams(i){return i&&(o=>{let r=o;return r.api=this.api,r.context=this.gridOptionsContext,i(r)})}updateGridOptions({options:i,force:n,source:o="api"}){let r={id:rw.changeSetId++,properties:[]},a=[];Object.entries(i).forEach(([s,l])=>{o==="api"&&RR[s]&&$(`${s} is an initial property and cannot be updated.`);let c=ow(s,l),h=n||typeof c=="object"&&o==="api",m=this.gridOptions[s];if(h||m!==c){this.gridOptions[s]=c;let f={type:s,currentValue:c,previousValue:m,changeSet:r,source:o};a.push(f)}}),this.validationService?.processGridOptions(this.gridOptions),r.properties=a.map(s=>s.type),a.forEach(s=>{this.gridOptions.debug&&ln(`Updated property ${s.type} from`,s.previousValue," to ",s.currentValue),this.propertyEventService.dispatchEvent(s)})}addPropertyEventListener(i,n){this.propertyEventService.addEventListener(i,n)}removePropertyEventListener(i,n){this.propertyEventService.removeEventListener(i,n)}getDomDataKey(){return this.domDataKey}getGridCommonParams(){return{api:this.api,context:this.gridOptionsContext}}addGridCommonParams(i){let n=i;return n.api=this.api,n.context=this.gridOptionsContext,n}assertModuleRegistered(i,n){return bo.__assertRegistered(i,n,this.gridId)}isModuleRegistered(i){return bo.__isRegistered(i,this.gridId)}};return e.changeSetId=0,e})(),z7=N7,B7=class extends H{constructor(){super(...arguments),this.beanName="headerPositionUtils"}wireBeans(e){this.visibleColsService=e.visibleColsService,this.ctrlsService=e.ctrlsService}findHeader(e,t){let i,n;if(wt(e.column)?i=this.visibleColsService.getGroupAtDirection(e.column,t):(n=`getCol${t}`,i=this.visibleColsService[n](e.column)),!i)return;let{headerRowIndex:o}=e;if(this.getHeaderRowType(o)!=="filter"){let s=[i];for(;i.getParent();)i=i.getParent(),s.push(i);i=s[s.length-1-o]}let{column:r,headerRowIndex:a}=this.getHeaderIndexToFocus(i,o);return{column:r,headerRowIndex:a}}getHeaderIndexToFocus(e,t){let i;if(wt(e)&&this.isAnyChildSpanningHeaderHeight(e)&&e.isPadding()){let n=e;i=n.getLeafColumns()[0];let o=i;for(;o!==n;)t++,o=o.getParent()}return{column:i||e,headerRowIndex:t}}isAnyChildSpanningHeaderHeight(e){return e?e.getLeafColumns().some(t=>t.isSpanHeaderHeight()):!1}getColumnVisibleParent(e,t){let i=this.getHeaderRowType(t),n=i==="filter",o=i==="column",r=n?e:e.getParent(),a=t-1,s=a;if(o&&this.isAnyChildSpanningHeaderHeight(e.getParent())){for(;r&&r.isPadding();)r=r.getParent(),a--;s=a,a<0&&(r=e,a=t,s=void 0)}return{column:r,headerRowIndex:a,headerRowIndexWithoutSpan:s}}getColumnVisibleChild(e,t,i="After"){let n=this.getHeaderRowType(t),o=e,r=t+1,a=r;if(n==="group"){let s=e.getDisplayedLeafColumns(),l=i==="After"?s[0]:Ae(s),c=[],h=l;for(;h.getParent()!==e;)h=h.getParent(),c.push(h);if(o=l,l.isSpanHeaderHeight())for(let m=c.length-1;m>=0;m--){let f=c[m];if(!f.isPadding()){o=f;break}r++}else o=Ae(c),o||(o=l)}return{column:o,headerRowIndex:r,headerRowIndexWithoutSpan:a}}getHeaderRowType(e){let t=this.ctrlsService.getHeaderRowContainerCtrl();if(t)return t.getRowType(e)}findColAtEdgeForHeaderRow(e,t){let i=this.visibleColsService.getAllCols(),n=i[t==="start"?0:i.length-1];if(!n)return;let r=this.ctrlsService.getHeaderRowContainerCtrl(n.getPinned())?.getRowType(e);if(r=="group"){let a=this.visibleColsService.getColGroupAtLevel(n,e);return{headerRowIndex:e,column:a}}return{headerRowIndex:r==null?-1:e,column:n}}},V7=class extends H{constructor(){super(...arguments),this.beanName="localeService"}getLocaleTextFunc(){let e=this.gos.getCallback("getLocaleText");if(e)return(i,n,o)=>e({key:i,defaultValue:n,variableValues:o});let t=this.gos.get("localeText");return(i,n,o)=>{let r=t&&t[i];if(r&&o&&o.length){let a=0;for(;!(a>=o.length||r.indexOf("${variable}")===-1);)r=r.replace("${variable}",o[a++])}return r??n}}},H7=class extends H{constructor(){super(...arguments),this.beanName="apiEventService",this.syncEventListeners=new Map,this.asyncEventListeners=new Map,this.syncGlobalEventListeners=new Set,this.globalEventListenerPairs=new Map}postConstruct(){this.frameworkEventWrappingService=new mm(this.getFrameworkOverrides())}addEventListener(e,t){let i=this.frameworkEventWrappingService.wrap(e,t),n=mu(this.gos)&&!hu.has(e),o=n?this.asyncEventListeners:this.syncEventListeners;o.has(e)||o.set(e,new Set),o.get(e).add(i),this.eventService.addEventListener(e,i,n)}removeEventListener(e,t){let i=this.frameworkEventWrappingService.unwrap(e,t),o=!!this.asyncEventListeners.get(e)?.delete(i);o||this.syncEventListeners.get(e)?.delete(i),this.eventService.removeEventListener(e,i,o)}addGlobalListener(e){let t=this.frameworkEventWrappingService.wrapGlobal(e);if(mu(this.gos)){let n=(r,a)=>{hu.has(r)&&t(r,a)},o=(r,a)=>{hu.has(r)||t(r,a)};this.globalEventListenerPairs.set(e,{syncListener:n,asyncListener:o}),this.eventService.addGlobalListener(n,!1),this.eventService.addGlobalListener(o,!0)}else this.syncGlobalEventListeners.add(t),this.eventService.addGlobalListener(t,!1)}removeGlobalListener(e){let t=this.frameworkEventWrappingService.unwrapGlobal(e);if(this.globalEventListenerPairs.has(t)){let{syncListener:n,asyncListener:o}=this.globalEventListenerPairs.get(t);this.eventService.removeGlobalListener(n,!1),this.eventService.removeGlobalListener(o,!0),this.globalEventListenerPairs.delete(e)}else this.syncGlobalEventListeners.delete(t),this.eventService.removeGlobalListener(t,!1)}destroyEventListeners(e,t){e.forEach((i,n)=>
vendor: 5,033 bytes, line 677
677{i.forEach(o=>this.eventService.removeEventListener(n,o,t)),i.clear()}),e.clear()}destroyGlobalListeners(e,t){e.forEach(i=>this.eventService.removeGlobalListener(i,t)),e.clear()}destroy(){super.destroy(),this.destroyEventListeners(this.syncEventListeners,!1),this.destroyEventListeners(this.asyncEventListeners,!0),this.destroyGlobalListeners(this.syncGlobalEventListeners,!1),this.globalEventListenerPairs.forEach(({syncListener:e,asyncListener:t})=>{this.eventService.removeGlobalListener(e,!1),this.eventService.removeGlobalListener(t,!0)}),this.globalEventListenerPairs.clear()}},G7=class extends H{constructor(){super(...arguments),this.beanName="pageBoundsListener"}wireBeans(e){this.rowModel=e.rowModel,this.paginationService=e.paginationService,this.pageBoundsService=e.pageBoundsService}postConstruct(){this.addManagedEventListeners({modelUpdated:this.onModelUpdated.bind(this),recalculateRowBounds:this.calculatePages.bind(this)}),this.onModelUpdated()}onModelUpdated(e){this.calculatePages(),this.eventService.dispatchEvent({type:"paginationChanged",animate:e?.animate??!1,newData:e?.newData??!1,newPage:e?.newPage??!1,newPageSize:e?.newPageSize??!1,keepRenderedRows:e?.keepRenderedRows??!1})}calculatePages(){this.paginationService?this.paginationService.calculatePages():this.pageBoundsService.calculateBounds(0,this.rowModel.getRowCount()-1)}},U7=class extends H{constructor(){super(...arguments),this.beanName="pageBoundsService",this.pixelOffset=0}wireBeans(e){this.rowModel=e.rowModel}getFirstRow(){return this.topRowBounds?this.topRowBounds.rowIndex:-1}getLastRow(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1}getCurrentPageHeight(){return Fe(this.topRowBounds)||Fe(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)}getCurrentPagePixelRange(){let e=this.topRowBounds?this.topRowBounds.rowTop:0,t=this.bottomRowBounds?this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight:0;return{pageFirstPixel:e,pageLastPixel:t}}calculateBounds(e,t){this.topRowBounds=this.rowModel.getRowBounds(e),this.topRowBounds&&(this.topRowBounds.rowIndex=e),this.bottomRowBounds=this.rowModel.getRowBounds(t),this.bottomRowBounds&&(this.bottomRowBounds.rowIndex=t),this.calculatePixelOffset()}getPixelOffset(){return this.pixelOffset}calculatePixelOffset(){let e=K(this.topRowBounds)?this.topRowBounds.rowTop:0;this.pixelOffset!==e&&(this.pixelOffset=e,this.eventService.dispatchEvent({type:"paginationPixelOffsetChanged"}))}},j7=class extends H{constructor(){super(),this.beanName="ariaAnnouncementService",this.descriptionContainer=null,this.pendingAnnouncements=new Map,this.updateAnnouncement=wi(this.updateAnnouncement.bind(this),200)}wireBeans(e){this.eGridDiv=e.eGridDiv}postConstruct(){let e=dt(this.gos),t=this.descriptionContainer=e.createElement("div");t.classList.add("ag-aria-description-container"),H_(t,"polite"),NR(t,"additions text"),LR(t,!0),this.eGridDiv.appendChild(t)}announceValue(e,t){this.pendingAnnouncements.set(t,e),this.updateAnnouncement()}updateAnnouncement(){if(!this.descriptionContainer)return;let e=Array.from(this.pendingAnnouncements.values()).join(". ");this.pendingAnnouncements.clear(),this.descriptionContainer.textContent="",setTimeout(()=>{this.isAlive()&&this.descriptionContainer&&(this.descriptionContainer.textContent=e)},50)}destroy(){super.destroy();let{descriptionContainer:e}=this;e&&(ni(e),e.parentElement&&e.parentElement.removeChild(e)),this.descriptionContainer=null,this.eGridDiv=null,this.pendingAnnouncements.clear()}},W7=class extends H{constructor(){super(...arguments),this.beanName="columnAnimationService",this.executeNextFuncs=[],this.executeLaterFuncs=[],this.active=!1,this.activeNext=!1,this.suppressAnimation=!1,this.animationThreadCount=0}wireBeans(e){this.ctrlsService=e.ctrlsService}postConstruct(){this.ctrlsService.whenReady(this,e=>this.gridBodyCtrl=e.gridBodyCtrl)}isActive(){return this.active&&!this.suppressAnimation}setSuppressAnimation(e){this.suppressAnimation=e}start(){this.active||this.gos.get("suppressColumnMoveAnimation")||this.gos.get("enableRtl")||(this.ensureAnimationCssClassPresent(),this.active=!0,this.activeNext=!0)}finish(){this.active&&this.flush(()=>this.activeNext=!1,()=>this.active=!1)}executeNextVMTurn(e){this.activeNext?this.executeNextFuncs.push(e):e()}executeLaterVMTurn(e){this.active?this.executeLaterFuncs.push(e):e()}ensureAnimationCssClassPresent(){this.animationThreadCount++;let e=this.animationThreadCount;this.gridBodyCtrl.setColumnMovingCss(!0),this.executeLaterFuncs.push(()=>{this.animationThreadCount===e&&this.gridBodyCtrl.setColumnMovingCss(!1)})}flush(e,t){if(this.executeNextFuncs.length===0&&this.executeLaterFuncs.length===0){e(),t();return}let i=n=>{for(;n.length;){let o=n.pop();o&&o()}};this.getFrameworkOverrides().wrapIncoming(()=>{window.setTimeout(()=>{e(),i(this.executeNextFuncs)},0),window.setTimeout(()=>{t(),i(this.executeLaterFuncs)},200)})}},$7=class extends H{constructor(){super(...arguments),this.beanName="
677columnHoverService"}setMouseOver(e){this.updateState(e)}clearMouseOver(){this.updateState(null)}isHovered(e){return!!this.selectedColumns&&this.selectedColumns.indexOf(e)>=0}updateState(e){this.selectedColumns=e,this.eventService.dispatchEvent({type:"columnHoverChanged"})}},q7=class extends H{constructor(){super(...arguments),this.beanName="overlayService",this.state=0,this.showInitialOverlay=!0,this.wrapperPadding=0}wireBeans(e){this.userComponentFactory=e.userComponentFactory,this.rowModel=e.rowModel,this.columnModel=e.columnModel,this.ctrlsService=e.ctrlsService}postConstruct(){this.isClientSide=at(this.gos);let e=()=>this.updateOverlayVisibility();this.addManagedEventListeners({newColumnsLoaded:e,rowDataUpdated:e,gridSizeChanged:this.onGridSizeChanged.bind(this),rowCountReady:()=>{this.showInitialOverlay=!1,this.updateOverlayVisibility()}}),this.addManagedPropertyListener("loading",e)}setOverlayWrapperComp(e){this.overlayWrapperComp=e,this.updateOverlayVisibility()}isVisible(){return this.state!==0&&!!this.overlayWrapperComp}isExclusive(){return this.state===1&&!!this.overlayWrapperComp}getOverlayWrapper(){return this.overlayWrapperComp}showLoadingOverlay(){this.showInitialOverlay=!1;let e=this.gos.get("loading");!e&&(e!==void 0||this.gos.get("suppressLoadingOverlay"))||this.doShowLoadingOverlay()}showNoRowsOverlay(){this.showInitialOverlay=!1,!(this.gos.get("loading")||this.gos.get("suppressNoRowsOverlay"))&&this.doShowNoRowsOverlay()}hideOverlay(){if(this.showInitialOverlay=!1,this.gos.get("loading")){$("Since v32, `api.hideOverlay()` does not hide the loading overlay when `loading=true`. Set `loading=false` instead.");return}this.doHideOverlay()}updateOverlayVisibility(){if(!this.overlayWrapperComp){this.state=0;return}let e=this.gos.get("loading");this.showInitialOverlay&&e===void 0&&!this.gos.get("suppressLoadingOverlay")&&(e=!this.gos.get("columnDefs")||!this.columnModel.isReady()||!this.gos.get("rowData")&&this.isClientSide),e?this.state!==1&&this.doShowLoadingOverlay():(this.showInitialOverlay=!1,this.rowModel.isEmpty()&&!this.gos.get("suppressNoRowsOverlay")&&this.isClientSide?this.state!==2&&this.doShowNoRowsOverlay():this.state!==0&&this.doHideOverlay())}doShowLoadingOverlay(){this.overlayWrapperComp&&(this.state=1,this.showOverlay(this.userComponentFactory.getLoadingOverlayCompDetails({}),"ag-overlay-loading-wrapper","loadingOverlayComponentParams"),this.updateExclusive())}doShowNoRowsOverlay(){this.overlayWrapperComp&&(this.state=2,this.showOverlay(this.userComponentFactory.getNoRowsOverlayCompDetails({}),"ag-overlay-no-rows-wrapper","noRowsOverlayComponentParams"),this.updateExclusive())}doHideOverlay(){this.overlayWrapperComp&&(this.state=0,this.overlayWrapperComp.hideOverlay(),this.updateExclusive())}showOverlay(e,t,i){let n=e.newAgStackInstance();this.overlayWrapperComp?.showOverlay(n,t,this.isExclusive(),i),this.refreshWrapperPadding()}updateExclusive(){let e=this.exclusive;this.exclusive=this.isExclusive(),this.exclusive!==e&&this.eventService.dispatchEvent({type:"overlayExclusiveChanged"})}onGridSizeChanged(){this.refreshWrapperPadding()}refreshWrapperPadding(){if(!this.overlayWrapperComp)return;let e=0;this.state===2?e=this.ctrlsService.get("gridHeaderCtrl")?.getHeaderHeight()||0:this.wrapperPadding!==0&&(e=0),this.wrapperPadding!==e&&(this.wrapperPadding=e,this.overlayWrapperComp.updateOverlayWrapperPaddingTop(e))}},Y7=class extends H{constructor(){super(...arguments),this.beanName="rowCssClassCalculator"}wireBeans(e){this.stylingService=e.stylingService}getInitialRowClasses(e){let t=[];return K(e.extraCssClass)&&t.push(e.extraCssClass),t.push("ag-row"),t.push(e.rowFocused?"ag-row-focus":"ag-row-no-focus"),e.fadeRowIn&&t.push("ag-opacity-zero"),t.push(e.rowIsEven?"ag-row-even":"ag-row-odd"),e.rowNode.isRowPinned()&&t.push("ag-row-pinned"),e.rowNode.isSelected()&&t.push("ag-row-selected"),e.rowNode.footer&&t.push("ag-row-footer"),t.push("ag-row-level-"+e.rowLevel),e.rowNode.stub&&t.push("ag-row-loading"),e.fullWidthRow&&t.push("ag-full-width-row"),e.expandable&&(t.push("ag-row-group"),t.push(e.rowNode.expanded?"ag-row-group-expanded":"ag-row-group-contracted")),e.rowNode.dragging&&t.push("ag-row-dragging"),qb(t,this.processClassesFromGridOptions(e.rowNode)),qb(t,this.preProcessRowClassRules(e.rowNode)),t.push(e.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),e.firstRowOnPage&&t.push("ag-row-first"),e.lastRowOnPage&&t.push("ag-row-last"),e.fullWidthRow&&(e.pinned==="left"&&t.push("ag-cell-last-left-pinned"),e.pinned==="right"&&t.push("ag-cell-first-right-pinned")),t}processClassesFromGridOptions(e){let t=[],i=r=>{typeof r=="string"?t.push(r):Array.isArray(r)&&r.forEach(a=>t.push(a))},n=this.gos.get("rowClass");if(n){if(typeof n=="function")return $("rowClass should not be a function, please use getRowClass instead"),[];i(n)}let o=this.gos.getCallback("getRowClass");if(o){let r={data:e.data,node:e,rowIndex:e.rowIndex},a=o(r);i(a)}return t}preProcessRowClassRules(e){let t=[];return this.processRowClassRules(e,i=>{t.push(i)},()=>{}),t}processRowClassRules(e,t,i){let n=this.gos.addGridCommonParams({data:e.data,node:e,rowIndex:e.rowIndex});this.stylingService.processClassRules(void 0,this.gos.get("rowClassRules"),n,t,i)}calculateRowLevel(e){return e.group?e.level:e.parent?e.parent.level+1:0}},K7=class extends H{constructor(){super(...arguments),this.beanName="rowContainerHeightService",this.scrollY=0,this.uiBodyHeight=0}wireBeans(e){this.ctrlsService=e.ctrlsService}postConstruct(){this.addManagedEventListeners({bodyHeightChanged:this.updateOffset.bind(this)}),this.maxDivHeight=t5(),this.gos.get("debug")&&ln("RowContainerHeightService - maxDivHeight = "+this.maxDivHeight)}isStretching(){return this.stretching}getDivStretchOffset(){return this.divStretchOffset}updateOffset(){if(!this.stretching)return;
677let t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition().top,i=this.getUiBodyHeight();(t!==this.scrollY||i!==this.uiBodyHeight)&&(this.scrollY=t,this.uiBodyHeight=i,this.calculateOffset())}calculateOffset(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;let e=this.scrollY/this.maxScrollY,t=e*this.pixelsToShave;this.gos.get("debug")&&ln(`RowContainerHeightService - Div Stretch Offset = ${t} (${this.pixelsToShave} * ${e})`),this.setDivStretchOffset(t)}setUiContainerHeight(e){e!==this.uiContainerHeight&&(this.uiContainerHeight=e,this.eventService.dispatchEvent({type:"rowContainerHeightChanged"}))}clearOffset(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)}setDivStretchOffset(e){let t=typeof e=="number"?Math.floor(e):null;this.divStretchOffset!==t&&(this.divStretchOffset=t,this.eventService.dispatchEvent({type:"heightScaleChanged"}))}setModelHeight(e){this.modelHeight=e,this.stretching=e!=null&&this.maxDivHeight>0&&e>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()}getUiContainerHeight(){return this.uiContainerHeight}getRealPixelPosition(e){return e-this.divStretchOffset}getUiBodyHeight(){let t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition();return t.bottom-t.top}getScrollPositionForPixel(e){if(this.pixelsToShave<=0)return e;let t=this.modelHeight-this.getUiBodyHeight(),i=e/t;return this.maxScrollY*i}},Q7=class extends H{constructor(){super(...arguments),this.beanName="rowNodeSorter"}wireBeans(e){this.valueService=e.valueService,this.columnModel=e.columnModel,this.showRowGroupColsService=e.showRowGroupColsService}postConstruct(){this.isAccentedSort=this.gos.get("accentedSort"),this.primaryColumnsSortGroups=Hn(this.gos),this.addManagedPropertyListener("accentedSort",e=>this.isAccentedSort=e.currentValue),this.addManagedPropertyListener("autoGroupColumnDef",()=>this.primaryColumnsSortGroups=Hn(this.gos))}doFullSort(e,t){let i=(o,r)=>({currentPos:r,rowNode:o}),n=e.map(i);return n.sort(this.compareRowNodes.bind(this,t)),n.map(o=>o.rowNode)}compareRowNodes(e,t,i){let n=t.rowNode,o=i.rowNode;for(let r=0,a=e.length;r<a;r++){let s=e[r],l=s.sort==="desc",c=this.getValue(n,s.column),h=this.getValue(o,s.column),m,f=this.getComparator(s,n);if(f?m=f(c,h,n,o,l):m=$P(c,h,this.isAccentedSort),!isNaN(m)&&m!==0)return s.sort==="asc"?m:m*-1}return t.currentPos-i.currentPos}getComparator(e,t){let i=e.column,n=i.getColDef().comparator;if(n!=null)return n;if(!i.getColDef().showRowGroup)return;let o=!t.group&&i.getColDef().field;if(!o)return;let r=this.columnModel.getColDefCol(o);if(r)return r.getColDef().comparator}getValue(e,t){if(!this.primaryColumnsSortGroups)return this.valueService.getValue(t,e,!1,!1);if(e.rowGroupColumn===t){if(Tu(this.gos,this.columnModel.isPivotActive())){let r=e.allLeafChildren?.[0];return r?this.valueService.getValue(t,r,!1,!1):void 0}let o=this.showRowGroupColsService?.getShowRowGroupCol(t.getId());return o?e.groupData?.[o.getId()]:void 0}if(!(e.group&&t.getColDef().showRowGroup))return this.valueService.getValue(t,e,!1,!1)}},Au=class{constructor(e,t){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=e,this.pathRoot={rowNode:t,children:null},this.mapToItems[t.id]=this.pathRoot}setInactive(){this.active=!1}isActive(){return this.active}depthFirstSearchChangedPath(e,t){if(e.children)for(let i=0;i<e.children.length;i++)this.depthFirstSearchChangedPath(e.children[i],t);t(e.rowNode)}depthFirstSearchEverything(e,t,i){if(e.childrenAfterGroup)for(let n=0;n<e.childrenAfterGroup.length;n++){let o=e.childrenAfterGroup[n];o.childrenAfterGroup?this.depthFirstSearchEverything(e.childrenAfterGroup[n],t,i):i&&t(o)}t(e)}forEachChangedNodeDepthFirst(e,t=!1,i=!1){this.active&&!i?this.depthFirstSearchChangedPath(this.pathRoot,e):this.depthFirstSearchEverything(this.pathRoot.rowNode,e,t)}executeFromRootNode(e){e(this.pathRoot.rowNode)}createPathItems(e){let t=e,i=0;for(;!this.mapToItems[t.id];){let n={rowNode:t,children:null};this.mapToItems[t.id]=n,i++,t=t.parent}return i}populateColumnsMap(e,t){if(!this.keepingColumns||!t)return;let i=e;for(;i;)this.nodeIdsToColumns[i.id]||(this.nodeIdsToColumns[i.id]={}),t.forEach(n=>this.nodeIdsToColumns[i.id][n.getId()]=!0),i=i.parent}linkPathItems(e,t){let i=e;for(let n=0;n<t;n++){let o=this.mapToItems[i.id],r=this.mapToItems[i.parent.id];r.children||(r.children=[]),r.children.push(o),i=i.parent}}addParentNode(e,t){if(!e||e.isRowPinned())return;let i=this.createPathItems(e);this.linkPathItems(e,i),this.populateColumnsMap(e,t)}canSkip(e){return this.active&&!this.mapToItems[e.id]}getValueColumnsForNode(e,t){if(!this.keepingColumns)return t;let i=this.nodeIdsToColumns[e.id];return t.filter(o=>i[o.getId()])}getNotValueColumnsForNode(e,t){if(!this.keepingColumns)return null;let i=this.nodeIdsToColumns[e.id];return t.filter(o=>!i[o.getId()])}},aw=class extends H{constructor(){super(...arguments),this.beanName="selectionService",this.selectedNodes=new Map,this.selectionCtx=new JA,this.rowSelectionMode=void 0}wireBeans(e){this.rowModel=e.rowModel,this.pageBoundsService=e.pageBoundsService}postConstruct(){let{gos:e,rowModel:t,onRowSelected:i}=this;this.selectionCtx.init(t),this.rowSelectionMode=vu(e),this.groupSelectsChildren=$r(e),this.addManagedPropertyListeners(["groupSelectsChildren","rowSelection"],()=>{let n=$r(e),o=vu(e);(n!==this.groupSelectsChildren||o!==this.rowSelectionMode)&&(this.groupSelectsChildren=n,this.rowSelectionMode=o,this.deselectAllRowNodes({source:"api"}))}),this.addManagedEventListeners({rowSelected:i.bind(this)})}destroy(){super.destroy(),this.resetNodes(),this.selectionCtx.reset()}isMultiSelect(){return this.rowSelectionMode==="multiRow"}overrideSelectionValue(e,t){if(!O7(t))return e;let i=this.selectionCtx.getRoot();return i?i.isSelected()??!1:!0}setNodesSelected(e){let{newValue:t,clearSelection:i,suppressFinishActions:n,rangeSelect:o,nodes:r,event:a,source:s}=e;if(r.length===0)return 0;if(r.length>1&&!this.isMultiSelect())return $("cannot multi select unless selection mode is 'multiRow'"),0;let l=this.groupSelectsChildren&&e.groupSelectsFiltered===!0,c=r.map(m=>m.footer?m.sibling:m);if(o){if(c.length>1)return $("cannot range select while selecting multiple rows"),0;let m=c[0],f=this.overrideSelectionValue(t,s);if(this.isMultiSelect()){if(this.selectionCtx.isInRange(m)){let b=this.selectionCtx.truncate(m);return f&&this.selectRange(b.discard,!1,s),this.selectRange(b.keep,f,s)}else if(this.selectionCtx.getRoot()!==m){let S=this.selectionCtx.extend(m,this.groupSelectsChildren);return f&&this.selectRange(S.discard,!1,s),this.selectRange(S.keep,f,s)}}}n||this.selectionCtx.setRoot(c[0]);let h=0;for(let m=0;m<c.length;m++){let f=c[m];l&&f.group||f.selectThisNode(t,a,s)&&h++,this.groupSelectsChildren&&f.childrenAfterGroup?.length&&(h+=this.selectChildren(f,t,l,s))}return n||(t&&(i||!this.isMultiSelect())&&(h+=this.clearOtherNodes(c[0],s)),h>0&&(this.updateGroupsFromChildrenSelections(s),this.dispatchSelectionChanged(s))),h}selectRange(e,t,i){let n=0;return e.forEach(o=>{if(o.group&&this.groupSelectsChildren)return;o.selectThisNode(t,void 0,i)&&n++}),n>0&&(this.updateGroupsFromChildrenSelections(i),this.dispatchSelectionChanged(i)),n}selectChildren(e,t,i,n){let o=i?e.childrenAfterAggFilter:e.childrenAfterGroup;return Fe(o)?0:this.setNodesSelected({newValue:t,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:i,source:n,nodes:o})}getSelectedNodes(){let e=[];
677return this.selectedNodes.forEach(t=>{t&&e.push(t)}),e}getSelectedRows(){let e=[];return this.selectedNodes.forEach(t=>{t&&t.data&&e.push(t.data)}),e}getSelectionCount(){return this.selectedNodes.size}filterFromSelection(e){let t=new Map;this.selectedNodes.forEach((i,n)=>{i&&e(i)&&t.set(n,i)}),this.selectedNodes=t}updateGroupsFromChildrenSelections(e,t){if(!this.groupSelectsChildren||!at(this.gos))return!1;let n=this.rowModel.getRootNode();t||(t=new Au(!0,n),t.setInactive());let o=!1;return t.forEachChangedNodeDepthFirst(r=>{if(r!==n){let a=r.calculateSelectedFromChildren();o=r.selectThisNode(a===null?!1:a,void 0,e)||o}}),o}clearOtherNodes(e,t){let i=new Map,n=0;return this.selectedNodes.forEach(o=>{if(o&&o.id!==e.id){let r=this.selectedNodes.get(o.id);n+=r.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:t}),this.groupSelectsChildren&&o.parent&&i.set(o.parent.id,o.parent)}}),i.forEach(o=>{let r=o.calculateSelectedFromChildren();o.selectThisNode(r===null?!1:r,void 0,t)}),n}onRowSelected(e){let t=e.node;this.groupSelectsChildren&&t.group||(t.isSelected()?this.selectedNodes.set(t.id,t):this.selectedNodes.delete(t.id))}syncInRowNode(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)}syncInOldRowNode(e,t){if(K(t)&&e.id!==t.id&&t){let n=t.id;this.selectedNodes.get(n)==e&&this.selectedNodes.set(t.id,t)}}syncInNewRowNode(e){this.selectedNodes.has(e.id)?(e.setSelectedInitialValue(!0),this.selectedNodes.set(e.id,e)):e.setSelectedInitialValue(!1)}reset(e){let t=this.getSelectionCount();this.resetNodes(),t&&this.dispatchSelectionChanged(e)}resetNodes(){this.selectedNodes?.clear()}getBestCostNodeSelection(){if(!at(this.gos))return;let t=this.rowModel.getTopLevelNodes();if(t===null)return;let i=[];function n(o){for(let r=0,a=o.length;r<a;r++){let s=o[r];if(s.isSelected())i.push(s);else{let l=s;l.group&&l.children&&n(l.children)}}}return n(t),i}isEmpty(){let e=0;return this.selectedNodes.forEach(t=>{t&&e++}),e===0}deselectAllRowNodes(e){let t=a=>a.selectThisNode(!1,void 0,n),i=at(this.gos),{source:n,justFiltered:o,justCurrentPage:r}=e;if(r||o){if(!i){Be("selecting just filtered only works when gridOptions.rowModelType='clientSide'");return}this.getNodesToSelect(o,r).forEach(t)}else this.selectedNodes.forEach(a=>{a&&t(a)}),this.reset(n);this.selectionCtx.reset(),i&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(n),this.dispatchSelectionChanged(n)}getSelectedCounts(e,t){let i=0,n=0,o=r=>{this.groupSelectsChildren&&r.group||(r.isSelected()?i++:r.selectable&&n++)};return this.getNodesToSelect(e,t).forEach(o),{selectedCount:i,notSelectedCount:n}}getSelectAllState(e,t){let{selectedCount:i,notSelectedCount:n}=this.getSelectedCounts(e,t);return i===0&&n===0?!1:i>0&&n>0?null:i>0}hasNodesToSelect(e=!1,t=!1){return this.getNodesToSelect(e,t).filter(i=>i.selectable).length>0}getNodesToSelect(e=!1,t=!1){this.validateSelectAllType();let i=[];if(t)return this.forEachNodeOnPage(o=>{if(!o.group){i.push(o);return}if(!o.expanded){let r=a=>{i.push(a),a.childrenAfterFilter?.length&&a.childrenAfterFilter.forEach(r)};r(o);return}this.groupSelectsChildren||i.push(o)}),i;let n=this.rowModel;return e?(n.forEachNodeAfterFilter(o=>{i.push(o)}),i):(n.forEachNode(o=>{i.push(o)}),i)}forEachNodeOnPage(e){let t=this.pageBoundsService.getFirstRow(),i=this.pageBoundsService.getLastRow();for(let n=t;n<=i;n++){let o=this.rowModel.getRow(n);o&&e(o)}}selectAllRowNodes(e){if(QP(this.gos)&&!pm(this.gos))return $("cannot multi select unless selection mode is 'multiRow'");this.validateSelectAllType();let{source:t,justFiltered:i,justCurrentPage:n}=e,o=this.getNodesToSelect(i,n);o.forEach(r=>r.selectThisNode(!0,void 0,t)),this.selectionCtx.setRoot(o[0]??null),this.selectionCtx.setEndRange(Ae(o)??null),at(this.gos)&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(t),this.dispatchSelectionChanged(t)}getSelectionState(){let e=[];return this.selectedNodes.forEach(t=>{t?.id&&e.push(t.id)}),e.length?e:null}setSelectionState(e,t){if(!Array.isArray(e))return Be("Invalid selection state. When using client-side row model, the state must conform to `string[]`.");let i=new Set(e),n=[];this.rowModel.forEachNode(o=>{i.has(o.id)&&n.push(o)}),this.setNodesSelected({newValue:!0,nodes:n,source:t})}dispatchSelectionChanged(e){this.eventService.dispatchEvent({type:"selectionChanged",source:e})}
677validateSelectAllType(){if(!at(this.gos))throw new Error(`selectAll only available when rowModelType='clientSide', ie not ${this.rowModel.getType()}`)}},J7=class extends H{constructor(){super(...arguments),this.beanName="selectableService"}wireBeans(e){this.rowModel=e.rowModel,this.selectionService=e.selectionService}postConstruct(){this.addManagedPropertyListeners(["isRowSelectable","rowSelection"],()=>this.updateSelectable())}updateSelectableAfterGrouping(){this.updateSelectable(!0)}updateSelectable(e=!1){let{gos:t}=this,i=gu(t),n=um(t);if(!i||!n)return;let o=$r(t),r=at(t)&&o,a=[],s=l=>{if(e&&!l.group)return;if(r&&l.group){let h=l.childrenAfterGroup.some(m=>m.selectable===!0);l.setRowSelectable(h,!0);return}let c=n?.(l)??!0;l.setRowSelectable(c,!0),!c&&l.isSelected()&&a.push(l)};if(r){let l=this.rowModel;new Au(!1,l.getRootNode()).forEachChangedNodeDepthFirst(s,!0,!0)}else this.rowModel.forEachNode(s);a.length&&this.selectionService.setNodesSelected({nodes:a,newValue:!1,source:"selectableChanged"}),r&&this.selectionService instanceof aw&&this.selectionService.updateGroupsFromChildrenSelections("selectableChanged")}},m_=["asc","desc",null],Z7=class extends H{constructor(){super(...arguments),this.beanName="sortController"}wireBeans(e){this.columnModel=e.columnModel,this.funcColsService=e.funcColsService,this.showRowGroupColsService=e.showRowGroupColsService}progressSort(e,t,i){let n=this.getNextSortDirection(e);this.setSortForColumn(e,n,t,i)}setSortForColumn(e,t,i,n){t!=="asc"&&t!=="desc"&&(t=null);let o=Hn(this.gos),r=[e];if(o&&e.getColDef().showRowGroup){let c=this.funcColsService.getSourceColumnsForGroupColumn(e)?.filter(h=>h.isSortable());c&&(r=[e,...c])}r.forEach(l=>l.setSort(t,n));let a=(i||this.gos.get("alwaysMultiSort"))&&!this.gos.get("suppressMultiSort"),s=[];if(!a){let l=this.clearSortBarTheseColumns(r,n);s.push(...l)}this.updateSortIndex(e),s.push(...r),this.dispatchSortChangedEvents(n,s)}updateSortIndex(e){let t=Hn(this.gos),i=this.showRowGroupColsService?.getShowRowGroupCol(e.getId()),n=t&&i||e,o=this.getColumnsWithSortingOrdered();this.columnModel.getAllCols().forEach(s=>s.setSortIndex(null));let r=o.filter(s=>t&&s.getColDef().showRowGroup?!1:s!==n);(n.getSort()?[...r,n]:r).forEach((s,l)=>{s.setSortIndex(l)})}onSortChanged(e,t){this.dispatchSortChangedEvents(e,t)}isSortActive(){let t=this.columnModel.getAllCols().filter(i=>!!i.getSort());return t&&t.length>0}dispatchSortChangedEvents(e,t){let i={type:"sortChanged",source:e};t&&(i.columns=t),this.eventService.dispatchEvent(i)}clearSortBarTheseColumns(e,t){let i=[];return this.columnModel.getAllCols().forEach(n=>{e.includes(n)||(n.getSort()&&i.push(n),n.setSort(void 0,t))}),i}getNextSortDirection(e){let t;if(e.getColDef().sortingOrder?t=e.getColDef().sortingOrder:this.gos.get("sortingOrder")?t=this.gos.get("sortingOrder"):t=m_,!Array.isArray(t)||t.length<=0)return $(`sortingOrder must be an array with at least one element, currently it's ${t}`),null;let i=t.indexOf(e.getSort()),n=i<0,o=i==t.length-1,r;return n||o?r=t[0]:r=t[i+1],m_.indexOf(r)<0?($("invalid sort type ",r),null):r}getIndexedSortMap(){let e=this.columnModel.getAllCols().filter(r=>!!r.getSort());if(this.columnModel.isPivotMode()){let r=Hn(this.gos);e=e.filter(a=>{let s=!!a.getAggFunc(),l=!a.isPrimary(),c=r?this.showRowGroupColsService?.getShowRowGroupCol(a.getId()):a.getColDef().showRowGroup;return s||l||c})}let t=this.funcColsService.getRowGroupColumns().filter(r=>!!r.getSort()),i={};e.forEach((r,a)=>i[r.getId()]=a),e.sort((r,a)=>{let s=r.getSortIndex(),l=a.getSortIndex();if(s!=null&&l!=null)return s-l;if(s==null&&l==null){let c=i[r.getId()],h=i[a.getId()];return c>h?1:-1}else return l==null?-1:1});let n=Hn(this.gos)&&!!t.length;n&&(e=[...new Set(e.map(r=>this.showRowGroupColsService?.getShowRowGroupCol(r.getId())??r))]);let o=new Map;return e.forEach((r,a)=>o.set(r,a)),n&&t.forEach(r=>{let a=this.showRowGroupColsService.getShowRowGroupCol(r.getId());o.set(r,o.get(a))}),o}getColumnsWithSortingOrdered(){return[...this.getIndexedSortMap().entries()].sort(([e,t],[i,n])=>t-n).map(([e])=>e)}getSortModel(){return this.getColumnsWithSortingOrdered().filter(e=>e.getSort()).map(e=>({sort:e.getSort(),colId:e.getId()}))}getSortOptions(){return this.getColumnsWithSortingOrdered().filter(e=>e.getSort()).map(e=>({sort:e.getSort(),column:e}))}canColumnDisplayMixedSort(e){let t=Hn(this.gos),i=!!e.getColDef().showRowGroup;return t&&i}getDisplaySortForColumn(e){let t=this.funcColsService.getSourceColumnsForGroupColumn(e);if(!this.canColumnDisplayMixedSort(e)||!t?.length)return e.getSort();let n=e.getColDef().field!=null||!!e.getColDef().valueGetter?[e,...t]:t,o=n[0].getSort();return n.every(a=>a.getSort()==o)?o:"mixed"}getDisplaySortIndexForColumn(e){return this.getIndexedSortMap().get(e)}},X7=class extends H{constructor(){super(...arguments),this.beanName="syncService",this.waitingForColumns=!1}wireBeans(e){this.ctrlsService=e.ctrlsService,this.columnModel=e.columnModel,this.rowModel=e.rowModel}postConstruct(){this.addManagedPropertyListener("columnDefs",e=>this.setColumnDefs(e))}start(){this.ctrlsService.whenReady(this,()=>{let e=this.gos.get("columnDefs");e?this.setColumnsAndData(e):this.waitingForColumns=!0,this.gridReady()})}setColumnsAndData(e){this.columnModel.setColumnDefs(e??[],"gridInitializing"),this.rowModel.start()}gridReady(){this.eventService.dispatchEvent({type:"gridReady"});let e=this.gos.isModuleRegistered("@ag-grid-enterprise/core");this.gos.get("debug")&&ln(`initialised successfully, enterprise = ${e}`)}setColumnDefs(e){let t=this.gos.get("columnDefs");if(t){if(this.waitingForColumns){this.waitingForColumns=!1,this.setColumnsAndData(t);return}this.columnModel.setColumnDefs(t,Nr(e.source))}}},e8="paste",t8=class extends H{constructor(){super(...arguments),this.beanName="
677changeDetectionService"}wireBeans(e){this.rowModel=e.rowModel,this.rowRenderer=e.rowRenderer}postConstruct(){at(this.gos)&&(this.clientSideRowModel=this.rowModel),this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this)})}onCellValueChanged(e){e.source!==e8&&this.doChangeDetection(e.node,e.column)}doChangeDetection(e,t){if(this.gos.get("suppressChangeDetection"))return;let i=[e];if(this.clientSideRowModel&&!e.isRowPinned()){let n=this.gos.get("aggregateOnlyChangedColumns"),o=new Au(n,this.clientSideRowModel.getRootNode());o.addParentNode(e.parent,[t]),this.clientSideRowModel.doAggregate(o),o.forEachChangedNodeDepthFirst(r=>{i.push(r)})}this.rowRenderer.refreshCells({rowNodes:i})}},i8=class extends H{constructor(){super(...arguments),this.beanName="expressionService",this.expressionToFunctionCache={}}evaluate(e,t){if(typeof e=="string")return this.evaluateExpression(e,t);Be("value should be either a string or a function",e)}evaluateExpression(e,t){try{return this.createExpressionFunction(e)(t.value,t.context,t.oldValue,t.newValue,t.value,t.node,t.data,t.colDef,t.rowIndex,t.api,t.getValue,t.column,t.columnGroup)}catch(i){return ln("Processing of the expression failed"),ln("Expression = ",e),ln("Params = ",t),ln("Exception = ",i),null}}createExpressionFunction(e){if(this.expressionToFunctionCache[e])return this.expressionToFunctionCache[e];let t=this.createFunctionBody(e),i=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, getValue, column, columnGroup",t);return this.expressionToFunctionCache[e]=i,i}createFunctionBody(e){return e.indexOf("return")>=0?e:"return "+e+";"}},n8=class extends H{constructor(){super(...arguments),this.beanName="valueCache",this.cacheVersion=0}postConstruct(){this.active=this.gos.get("valueCache"),this.neverExpires=this.gos.get("valueCacheNeverExpires")}onDataChanged(){this.neverExpires||this.expire()}expire(){this.cacheVersion++}setValue(e,t,i){this.active&&(e.__cacheVersion!==this.cacheVersion&&(e.__cacheVersion=this.cacheVersion,e.__cacheData={}),e.__cacheData[t]=i)}getValue(e,t){if(!(!this.active||e.__cacheVersion!==this.cacheVersion))return e.__cacheData[t]}},o8=class extends H{constructor(){super(...arguments),this.beanName="valueService",this.initialised=!1,this.isSsrm=!1}wireBeans(e){this.expressionService=e.expressionService,this.columnModel=e.columnModel,this.valueCache=e.valueCache,this.dataTypeService=e.dataTypeService}postConstruct(){this.initialised||this.init()}init(){this.isSsrm=ko(this.gos),this.cellExpressions=this.gos.get("enableCellExpressions"),this.isTreeData=this.gos.get("treeData"),this.initialised=!0;let e=i=>this.callColumnCellValueChangedHandler(i),t=mu(this.gos);this.eventService.addEventListener("cellValueChanged",e,t),this.addDestroyFunc(()=>this.eventService.removeEventListener("cellValueChanged",e,t)),this.addManagedPropertyListener("treeData",i=>this.isTreeData=i.currentValue)}getValueForDisplay(e,t){let i=t.leafGroup&&this.columnModel.isPivotMode(),n=t.group&&t.expanded&&!t.footer&&!i,o=this.gos.get("groupSuppressBlankHeader");if(!n||o)return this.getValue(e,t);let r=!1,a=this.gos.get("groupTotalRow")??this.gos.get("groupIncludeFooter");typeof a!="function"?r=!!a:r=!!(this.gos.getCallback("groupTotalRow")??this.gos.getCallback("groupIncludeFooter"))({node:this});let s=n&&r;return this.getValue(e,t,!1,s)}getValue(e,t,i=!1,n=!1){if(this.initialised||this.init(),!t)return;let o=e.getColDef(),r=o.field,a=e.getColId(),s=t.data,l,c=t.groupData&&t.groupData[a]!==void 0,h=!n&&t.aggData&&t.aggData[a]!==void 0,m=this.isSsrm&&n&&!!e.getColDef().aggFunc,f=this.isSsrm&&t.footer&&t.field&&(e.getColDef().showRowGroup===!0||e.getColDef().showRowGroup===t.field);if(i&&o.filterValueGetter?l=this.executeFilterValueGetter(o.filterValueGetter,s,e,t):this.isTreeData&&h?l=t.aggData[a]:this.isTreeData&&o.valueGetter?l=this.executeValueGetter(o.valueGetter,s,e,t):this.isTreeData&&r&&s?l=Fl(s,r,e.isFieldContainsDots()):c?l=t.groupData[a]:h?l=t.aggData[a]:o.valueGetter?l=this.executeValueGetter(o.valueGetter,s,e,t):f?l=Fl(s,t.field,e.isFieldContainsDots()):r&&s&&!m&&(l=Fl(s,r,e.isFieldContainsDots())),this.cellExpressions&&typeof l=="string"&&l.indexOf("=")===0){let b=l.substring(1);
677l=this.executeValueGetter(b,s,e,t)}if(l==null){let b=this.getOpenedGroup(t,e);if(b!=null)return b}return l}parseValue(e,t,i,n){let o=e.getColDef(),r=o.valueParser;if(K(r)){let a=this.gos.addGridCommonParams({node:t,data:t?.data,oldValue:n,newValue:i,colDef:o,column:e});return typeof r=="function"?r(a):this.expressionService.evaluate(r,a)}return i}getDeleteValue(e,t){return K(e.getColDef().valueParser)?this.parseValue(e,t,"",this.getValueForDisplay(e,t))??null:null}formatValue(e,t,i,n,o=!0){let r=null,a,s=e.getColDef();if(n?a=n:o&&(a=s.valueFormatter),a){let l=this.gos.addGridCommonParams({value:i,node:t,data:t?t.data:null,colDef:s,column:e});typeof a=="function"?r=a(l):r=this.expressionService.evaluate(a,l)}else if(s.refData)return s.refData[i]||"";return r==null&&Array.isArray(i)&&(r=i.join(", ")),r}getOpenedGroup(e,t){if(!this.gos.get("showOpenedGroup")||!t.getColDef().showRowGroup)return;let n=t.getColDef().showRowGroup,o=e.parent;for(;o!=null;){if(o.rowGroupColumn&&(n===!0||n===o.rowGroupColumn.getColId()))return o.key;o=o.parent}}setValue(e,t,i,n){let o=this.columnModel.getColDefCol(t);if(!e||!o)return!1;Fe(e.data)&&(e.data={});let{field:r,valueSetter:a}=o.getColDef();if(Fe(r)&&Fe(a))return $("you need either field or valueSetter set on colDef for editing to work"),!1;if(this.dataTypeService&&!this.dataTypeService.checkType(o,i))return $("Data type of the new value does not match the cell data type of the column"),!1;let s=this.gos.addGridCommonParams({node:e,data:e.data,oldValue:this.getValue(o,e),newValue:i,colDef:o.getColDef(),column:o});s.newValue=i;let l;if(K(a)?typeof a=="function"?l=a(s):l=this.expressionService.evaluate(a,s):l=this.setValueUsingField(e.data,r,i,o.isFieldContainsDots()),l===void 0&&(l=!0),!l)return!1;e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged();let c=this.getValue(o,e);return this.eventService.dispatchEvent({type:"cellValueChanged",event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:s.column,colDef:s.colDef,data:e.data,node:e,oldValue:s.oldValue,newValue:c,value:c,source:n}),!0}callColumnCellValueChangedHandler(e){let t=e.colDef.onCellValueChanged;typeof t=="function"&&this.getFrameworkOverrides().wrapOutgoing(()=>{t({node:e.node,data:e.data,oldValue:e.oldValue,newValue:e.newValue,colDef:e.colDef,column:e.column,api:e.api,context:e.context})})}setValueUsingField(e,t,i,n){if(!t)return!1;let o=!1;if(!n)o=e[t]===i,o||(e[t]=i);else{let r=t.split("."),a=e;for(;r.length>0&&a;){let s=r.shift();r.length===0?(o=a[s]===i,o||(a[s]=i)):a=a[s]}}return!o}executeFilterValueGetter(e,t,i,n){let o=this.gos.addGridCommonParams({data:t,node:n,column:i,colDef:i.getColDef(),getValue:this.getValueCallback.bind(this,n)});return typeof e=="function"?e(o):this.expressionService.evaluate(e,o)}executeValueGetter(e,t,i,n){let o=i.getColId(),r=this.valueCache.getValue(n,o);if(r!==void 0)return r;let a=this.gos.addGridCommonParams({data:t,node:n,column:i,colDef:i.getColDef(),getValue:this.getValueCallback.bind(this,n)}),s;return typeof e=="function"?s=e(a):s=this.expressionService.evaluate(e,a),this.valueCache.setValue(n,o,s),s}getValueCallback(e,t){let i=this.columnModel.getColDefCol(t);return i?this.getValue(i,e):null}getKeyForNode(e,t){let i=this.getValue(e,t),n=e.getColDef().keyCreator,o=i;if(n){let r=this.gos.addGridCommonParams({value:i,colDef:e.getColDef(),column:e,node:t,data:t.data});o=n(r)}return typeof o=="string"||o==null||(o=String(o),o==="[object Object]"&&$("a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (se AG Grid docs) or b) to toString() on the object to return a key")),o}},r8=(()=>{let e=class Lr{static applyGlobalGridOptions(i){if(!Lr.gridOptions)return i;let n={};return yi(n,Lr.gridOptions,!0,!0),Lr.mergeStrategy==="deep"?yi(n,i,!0,!0):n=B(B({},n),i),Lr.gridOptions.context&&(n.context=Lr.gridOptions.context),i.context&&(Lr.mergeStrategy==="deep"&&n.context&&yi(i.context,n.context,!0,!0),n.context=i.context),n}};return e.gridOptions=void 0,e.mergeStrategy="shallow",e})(),a8=r8;function sw(e,t,i){if(!t)return Be("No gridOptions provided to createGrid"),{};let n=new l8().create(e,t,o=>{let r=new P6(e);o.createBean(r)},void 0,i);if(!Object.isFrozen(t)&&!i?.frameworkOverrides){let o="https://ag-grid.com/javascript-data-grid/grid-interface/#grid-api";
677Object.defineProperty(t,"api",{get:()=>{Be(`gridOptions.api is no longer supported. See ${o}.`)},configurable:!0})}return n}var s8=1,l8=class{create(e,t,i,n,o){let r=a8.applyGlobalGridOptions(t),a=L7(r),s=a.gridId??String(s8++),l=this.getRegisteredModules(o,s),c=this.createBeansList(a.rowModelType,l,s),h=this.createProvidedBeans(e,a,o);if(!c){Be("Failed to create grid.");return}let m={providedBeanInstances:h,beanClasses:c,gridId:s,beanInitComparator:v6,beanDestroyComparator:C6,derivedBeans:[l6]},f=new J5(m);return this.registerModuleUserComponents(f,l),this.registerControllers(f,l),this.registerModuleApiFunctions(f,l),i(f),f.getBean("syncService").start(),n&&n(f),f.getBean("gridApi")}registerControllers(e,t){let i=e.getBean("ctrlsFactory");t.forEach(n=>{n.controllers&&n.controllers.forEach(o=>i.register(o))})}getRegisteredModules(e,t){let i=e?e.modules:null,n=bo.__getRegisteredModules(t),o=[],r={},a=(s,l,c)=>{(m=>{r[m.moduleName]||(r[m.moduleName]=!0,o.push(m),bo.__register(m,s,c))})(l),l.dependantModules&&l.dependantModules.forEach(m=>a(s,m,c))};return a(!!i?.length||!bo.__isPackageBased(),nw,void 0),i&&i.forEach(s=>a(!0,s,t)),n&&n.forEach(s=>a(!bo.__isPackageBased(),s,void 0)),o}registerModuleUserComponents(e,t){let i=this.extractModuleEntity(t,o=>o.userComponents?o.userComponents:[]),n=e.getBean("userComponentRegistry");i.forEach(({name:o,classImp:r,params:a})=>{n.registerDefaultComponent(o,r,a)})}registerModuleApiFunctions(e,t){let i=e.getBean("apiFunctionService");t.forEach(n=>{let o=n.apiFunctions;o&&Object.keys(o).forEach(a=>{i?.addFunction(a,o[a])})})}createProvidedBeans(e,t,i){let n=i?i.frameworkOverrides:null;Fe(n)&&(n=new Bm);let o={gridOptions:t,eGridDiv:e,globalEventListener:i?i.globalEventListener:null,globalSyncEventListener:i?i.globalSyncEventListener:null,frameworkOverrides:n};return i&&i.providedBeanInstances&&Object.assign(o,i.providedBeanInstances),o}createBeansList(e="clientSide",t,i){let n=t.filter(l=>!l.rowModel||l.rowModel===e),o={clientSide:"@ag-grid-community/client-side-row-model",infinite:"@ag-grid-community/infinite-row-model",serverSide:"@ag-grid-enterprise/server-side-row-model",viewport:"@ag-grid-enterprise/viewport-row-model"};if(!o[e]){Be("Could not find row model for rowModelType = ",e);return}if(!bo.__assertRegistered(o[e],`rowModelType = '${e}'`,i))return;let r=[x6,y6,B7,F7,s6,D5,g6,m6,iA,cy,K7,eA,V7,qA,tF,IR,E6,z7,n6,aw,vR,b4,U7,G7,WA,i8,fR,XO,n8,o8,UA,tA,Z5,T6,ZO,S6,r6,ZA,JO,Z7,$7,W7,J7,t8,nA,c6,Y7,Q7,_6,I6,w6,b6,X7,q7,oA,H7,j7,rA,_R,d6,yR,CR,u6,p6,TR,bR,ER,h6,MR,uR],a=this.extractModuleEntity(n,l=>l.beans?l.beans:[]);r.push(...a);let s=[];return r.forEach(l=>{s.indexOf(l)<0&&s.push(l)}),s}extractModuleEntity(e,t){return[].concat(...e.map(t))}},lw=class extends H{constructor(){super(...arguments),this.beanName="rowModelHelperService"}wireBeans(e){this.rowModel=e.rowModel}postConstruct(){let e=this.rowModel;switch(e.getType()){case"clientSide":this.clientSideRowModel=e;break;case"infinite":this.infiniteRowModel=e;break;case"serverSide":this.serverSideRowModel=e;break}}getClientSideRowModel(){return this.clientSideRowModel}getInfiniteRowModel(){return this.infiniteRowModel}getServerSideRowModel(){return this.serverSideRowModel}};function c8(e){e.expansionService.expandAll(!0)}function d8(e){e.expansionService.expandAll(!1)}function u8(e){let t=e.rowModelHelperService?.getClientSideRowModel(),i=e.rowModelHelperService?.getServerSideRowModel();t?t.onRowHeightChanged():i&&i.onRowHeightChanged()}function p8(e,t,i){let n=e.rowModelHelperService?.getServerSideRowModel();if(n){if(e.funcColsService.isRowGroupEmpty()){n.setRowCount(t,i);return}Be("setRowCount cannot be used while using row grouping.");return}let o=e.rowModelHelperService?.getInfiniteRowModel();if(o){o.setRowCount(t,i);return}}function h8(e){return e.rowNodeBlockLoader?.getBlockState()??{}}function g8(e){return e.rowModel.isLastRowIndexKnown()}var m8={version:Se,moduleName:"@ag-grid-community/csrm-ssrm-shared-api",apiFunctions:{expandAll:c8,collapseAll:d8,onRowHeightChanged:u8}},f8={version:Se,moduleName:"@ag-grid-community/ssrm-infinite-shared-api",apiFunctions:{setRowCount:p8,getCacheBlockState:h8,isLastRowIndexKnown:g8}},cw=class{wrap(e,t,i=[],n){let o=this.createWrapper(e,n);return t.forEach(r=>{this.createMethod(o,r,!0)}
677),i.forEach(r=>{this.createMethod(o,r,!1)}),o}createMethod(e,t,i){e.addMethod(t,this.createMethodProxy(e,t,i))}createMethodProxy(e,t,i){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(i&&$("Framework component is missing the method "+t+"()"),null)}}};var hs=typeof global>"u"?{}:global;hs.HTMLElement=typeof HTMLElement>"u"?{}:HTMLElement;hs.HTMLButtonElement=typeof HTMLButtonElement>"u"?{}:HTMLButtonElement;hs.HTMLSelectElement=typeof HTMLSelectElement>"u"?{}:HTMLSelectElement;hs.HTMLInputElement=typeof HTMLInputElement>"u"?{}:HTMLInputElement;hs.Node=typeof Node>"u"?{}:Node;hs.MouseEvent=typeof MouseEvent>"u"?{}:MouseEvent;var v8="ROOT_NODE_ID",Hg=0,C8=class{constructor(e,t,i,n,o,r){this.nextId=0,this.rowCountReady=!1,this.allNodesMap={},this.rootNode=e,this.gos=t,this.eventService=i,this.funcColsService=n,this.beans=r,this.selectionService=o,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=v8,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterAggFilter=[],this.rootNode.childrenAfterFilter=[]}getCopyOfNodesMap(){return P_(this.allNodesMap)}getRowNode(e){return this.allNodesMap[e]}setRowData(e){if(typeof e=="string"){$("rowData must be an array.");return}this.rowCountReady=!0,this.dispatchRowDataUpdateStartedEvent(e);let t=this.rootNode,i=this.rootNode.sibling;t.childrenAfterFilter=null,t.childrenAfterGroup=null,t.childrenAfterAggFilter=null,t.childrenAfterSort=null,t.childrenMapped=null,t.updateHasChildren(),this.nextId=0,this.allNodesMap={},e?t.allLeafChildren=e.map((n,o)=>this.createNode(n,this.rootNode,Hg,o)):(t.allLeafChildren=[],t.childrenAfterGroup=[]),i&&(i.childrenAfterFilter=t.childrenAfterFilter,i.childrenAfterGroup=t.childrenAfterGroup,i.childrenAfterAggFilter=t.childrenAfterAggFilter,i.childrenAfterSort=t.childrenAfterSort,i.childrenMapped=t.childrenMapped,i.allLeafChildren=t.allLeafChildren)}updateRowData(e){this.rowCountReady=!0,this.dispatchRowDataUpdateStartedEvent(e.add);let t={rowNodeTransaction:{remove:[],update:[],add:[]},rowsInserted:!1},i=[];return this.executeRemove(e,t,i),this.executeUpdate(e,t,i),this.executeAdd(e,t),this.updateSelection(i,"rowDataChanged"),t}updateRowOrderFromRowData(e){let t=this.rootNode.allLeafChildren,i=t?.length??0,n=new Map,o=-1,r=-1;for(let a=0;a<i;++a){let s=t[a],l=s.data;l!==e[a]&&(r<0&&(o=a),r=a,n.set(l,s))}if(o<0)return!1;for(let a=o;a<=r;++a){let s=n.get(e[a]);s!==void 0&&(t[a]=s,s.sourceRowIndex=a)}return!0}isRowCountReady(){return this.rowCountReady}dispatchRowDataUpdateStartedEvent(e){this.eventService.dispatchEvent({type:"rowDataUpdateStarted",firstRowData:e?.length?e[0]:null})}updateSelection(e,t){let i=e.length>0;i&&this.selectionService.setNodesSelected({newValue:!1,nodes:e,suppressFinishActions:!0,source:t}),this.selectionService.updateGroupsFromChildrenSelections(t),i&&this.eventService.dispatchEvent({type:"selectionChanged",source:t})}executeAdd(e,t){let i=e.add;if($i(i))return;let n=this.rootNode.allLeafChildren,o=n.length;if(typeof e.addIndex=="number"&&(o=this.sanitizeAddIndex(e.addIndex),o>0&&this.gos.get("treeData"))){for(let l=0;l<n.length;l++)if(n[l]?.rowIndex==o-1){o=l+1;break}}let r=i.map((s,l)=>this.createNode(s,this.rootNode,Hg,o+l));if(o<n.length){let s=n.slice(0,o),l=n.slice(o,n.length),c=s.length+r.length;for(let h=0,m=l.length;h<m;++h)l[h].sourceRowIndex=c+h;this.rootNode.allLeafChildren=[...s,...r,...l],t.rowsInserted=!0}else this.rootNode.allLeafChildren=n.concat(r);let a=this.rootNode.sibling;a&&(a.allLeafChildren=n),t.rowNodeTransaction.add=r}sanitizeAddIndex(e){let t=this.rootNode.allLeafChildren?.length??0;return e<0||e>=t||Number.isNaN(e)?t:Math.ceil(e)}executeRemove(e,{rowNodeTransaction:t},i){let{remove:n}=e;if($i(n))return;let o={};n.forEach(a=>{let s=this.lookupRowNode(a);s&&(s.isSelected()&&i.push(s),s.clearRowTopAndRowIndex(),o[s.id]=!0,delete this.allNodesMap[s.id],t.remove.push(s))}),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren?.filter(a=>!o[a.id])??null,this.rootNode.allLeafChildren?.forEach((a,s)=>{a.sourceRowIndex=s});let r=this.rootNode.sibling;r&&(r.allLeafChildren=this.rootNode.allLeafChildren)}executeUpdate(e,{rowNodeTransaction:t},i){let{update:n}=e;
677$i(n)||n.forEach(o=>{let r=this.lookupRowNode(o);r&&(r.updateData(o),!r.selectable&&r.isSelected()&&i.push(r),this.setMasterForRow(r,o,Hg,!1),t.update.push(r))})}lookupRowNode(e){let t=ds(this.gos),i;if(t){let n=t({data:e,level:0});if(i=this.allNodesMap[n],!i)return Be(`could not find row id=${n}, data item was not found for this id`),null}else if(i=this.rootNode.allLeafChildren?.find(n=>n.data===e),!i)return Be("could not find data item as object was not found",e),Be("Consider using getRowId to help the Grid find matching row data"),null;return i||null}createNode(e,t,i,n){let o=new wo(this.beans);return o.sourceRowIndex=n,o.group=!1,this.setMasterForRow(o,e,i,!0),t&&(o.parent=t),o.level=i,o.setDataAndId(e,this.nextId.toString()),this.allNodesMap[o.id]&&$(`duplicate node id '${o.id}' detected from getRowId callback, this could cause issues in your grid.`),this.allNodesMap[o.id]=o,this.nextId++,o}setMasterForRow(e,t,i,n){if(this.gos.get("treeData"))e.setMaster(!1),n&&(e.expanded=!1);else{if(this.gos.get("masterDetail")){let a=this.gos.get("isRowMaster");a?e.setMaster(a(t)):e.setMaster(!0)}else e.setMaster(!1);if(n){let a=this.funcColsService.getRowGroupColumns(),s=a?a.length:0,l=i+s;e.expanded=e.master?this.isExpanded(l):!1}}}isExpanded(e){let t=this.gos.get("groupDefaultExpanded");return t===-1?!0:e<t}},b8=class extends H{constructor(){super(...arguments),this.beanName="rowModel",this.onRowHeightChanged_debounced=wi(this.onRowHeightChanged.bind(this),100),this.rowsToDisplay=[],this.hasStarted=!1,this.shouldSkipSettingDataOnStart=!1,this.isRefreshingModel=!1,this.rowCountReady=!1}wireBeans(e){this.beans=e,this.columnModel=e.columnModel,this.funcColsService=e.funcColsService,this.selectionService=e.selectionService,this.valueCache=e.valueCache,this.environment=e.environment,this.filterStage=e.filterStage,this.sortStage=e.sortStage,this.flattenStage=e.flattenStage,this.groupStage=e.groupStage,this.aggregationStage=e.aggregationStage,this.pivotStage=e.pivotStage,this.filterAggregatesStage=e.filterAggregatesStage}postConstruct(){let e=this.refreshModel.bind(this,{step:"group"}),t=!this.gos.get("suppressAnimationFrame"),i=this.refreshModel.bind(this,{step:"group",afterColumnsChanged:!0,keepRenderedRows:!0,animate:t});this.addManagedEventListeners({newColumnsLoaded:i,columnRowGroupChanged:e,columnValueChanged:this.onValueChanged.bind(this),columnPivotChanged:this.refreshModel.bind(this,{step:"pivot"}),filterChanged:this.onFilterChanged.bind(this),sortChanged:this.onSortChanged.bind(this),columnPivotModeChanged:e,gridStylesChanged:this.onGridStylesChanges.bind(this),gridReady:this.onGridReady.bind(this)}),this.addPropertyListeners(),this.rootNode=new wo(this.beans),this.nodeManager=new C8(this.rootNode,this.gos,this.eventService,this.funcColsService,this.selectionService,this.beans)}addPropertyListeners(){let e=new Set(["treeData","masterDetail"]),t=new Set(["groupDefaultExpanded","groupAllowUnbalanced","initialGroupOrderComparator","groupHideOpenParents","groupDisplayType"]),i=new Set(["excludeChildrenWhenTreeDataFiltering"]),n=new Set(["removePivotHeaderRowWhenSingleValueColumn","pivotRowTotals","pivotColumnGroupTotals","suppressExpandablePivotGroups"]),o=new Set(["getGroupRowAgg","alwaysAggregateAtRootLevel","groupIncludeTotalFooter","suppressAggFilteredOnly","grandTotalRow"]),r=new Set(["postSortRows","groupDisplayType","accentedSort"]),a=new Set([]),s=new Set(["groupRemoveSingleChildren","groupRemoveLowestSingleChildren","groupIncludeFooter","groupTotalRow"]),l=[...e,...t,...i,...n,...n,...o,...r,...a,...s];this.addManagedPropertyListeners(l,c=>{let h=c.changeSet?.properties;if(!h)return;let m=f=>h.some(b=>f.has(b));if(m(e)){this.setRowData(this.rootNode.allLeafChildren.map(f=>f.data));return}if(m(t)){this.refreshModel({step:"group"});return}if(m(i)){this.refreshModel({step:"filter"});return}if(m(n)){this.refreshModel({step:"pivot"});return}if(m(o)){this.refreshModel({step:"aggregate"});return}if(m(r)){this.refreshModel({step:"sort"});return}if(m(a)){this.refreshModel({step:"filter_aggregates"});return}m(s)&&this.refreshModel({step:"map"})}),this.addManagedPropertyListener("rowHeight",()=>this.resetRowHeights())}start(){this.hasStarted=!0,this.shouldSkipSettingDataOnStart?this.dispatchUpdateEventsAndRefresh():this.setInitialData()}setInitialData(){let e=this.gos.get("rowData");e&&(this.shouldSkipSettingDataOnStart=!0,this.setRowData(e))}ensureRowHeightsValid(e,t,i,n){let o,r=!1;do{o=!1;let a=this.getRowIndexAtPixel(e),s=this.getRowIndexAtPixel(t),l=Math.max(a,i),c=Math.min(s,n);for(let h=l;h<=c;h++){let m=this.getRow(h);if(m.rowHeightEstimated){let f=nr(this.gos,m);m.setRowHeight(f.height),o=!0,r=!0}}o&&this.setRowTopAndRowIndex()}while(o);return r}setRowTopAndRowIndex(){let e=this.environment.getDefaultRowHeight(),t=0,i=new Set,n=Bt(this.gos,"normal");for(let o=0;o<this.rowsToDisplay.length;o++){let r=this.rowsToDisplay[o];if(r.id!=null&&i.add(r.id),r.rowHeight==null){let a=nr(this.gos,r,n,e);
677r.setRowHeight(a.height,a.estimated)}r.setRowTop(t),r.setRowIndex(o),t+=r.rowHeight}return i}clearRowTopAndRowIndex(e,t){let i=e.isActive(),n=r=>{r&&r.id!=null&&!t.has(r.id)&&r.clearRowTopAndRowIndex()},o=r=>{if(n(r),n(r.detailNode),n(r.sibling),r.hasChildren()&&r.childrenAfterGroup){let a=r.level==-1;i&&!a&&!r.expanded||r.childrenAfterGroup.forEach(o)}};o(this.rootNode)}ensureRowsAtPixel(e,t,i=0){let n=this.getRowIndexAtPixel(t),o=this.getRow(n),r=!this.gos.get("suppressAnimationFrame");if(o===e[0])return!1;let a=this.rootNode.allLeafChildren;return e.forEach(s=>{xi(a,s)}),e.forEach((s,l)=>{Cu(a,s,Math.max(n+i,0)+l)}),e.forEach((s,l)=>{s.sourceRowIndex=l}),this.refreshModel({step:"group",keepRenderedRows:!0,keepEditingRows:!0,animate:r,rowNodesOrderChanged:!0}),!0}highlightRowAtPixel(e,t){let i=t!=null?this.getRowIndexAtPixel(t):null,n=i!=null?this.getRow(i):null;if(!n||!e||t==null){this.clearHighlightedRow();return}let o=this.getHighlightPosition(t,n),r=this.isHighlightingCurrentPosition(e,n,o),a=this.lastHighlightedRow!=null&&this.lastHighlightedRow!==n;(r||a)&&(this.clearHighlightedRow(),r)||(n.setHighlighted(o),this.lastHighlightedRow=n)}getHighlightPosition(e,t){if(!t){let o=this.getRowIndexAtPixel(e);if(t=this.getRow(o||0),!t)return 1}let{rowTop:i,rowHeight:n}=t;return e-i<n/2?0:1}getLastHighlightedRowNode(){return this.lastHighlightedRow}isHighlightingCurrentPosition(e,t,i){if(e===t)return!0;let n=i===0?-1:1;return this.getRow(t.rowIndex+n)===e}clearHighlightedRow(){this.lastHighlightedRow&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null)}isLastRowIndexKnown(){return!0}getRowCount(){return this.rowsToDisplay?this.rowsToDisplay.length:0}getTopLevelRowCount(){if(this.rowsToDisplay.length===0)return 0;if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return 1;let t=this.rootNode.childrenAfterAggFilter,i=this.rootNode.sibling?1:0;return(t?t.length:0)+i}getTopLevelRowDisplayedIndex(e){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return e;let i=e;if(this.rowsToDisplay[0].footer){if(e===0)return 0;i-=1}let n=this.rowsToDisplay[this.rowsToDisplay.length-1],o=i>=this.rootNode.childrenAfterSort.length;if(n.footer&&o)return n.rowIndex;let r=this.rootNode.childrenAfterSort[i];if(this.gos.get("groupHideOpenParents"))for(;r.expanded&&r.childrenAfterSort&&r.childrenAfterSort.length>0;)r=r.childrenAfterSort[0];return r.rowIndex}getRowBounds(e){if(Fe(this.rowsToDisplay))return null;let t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null}onRowGroupOpened(){let e=es(this.gos);this.refreshModel({step:"map",keepRenderedRows:!0,animate:e})}onFilterChanged(e){if(e.afterDataChange)return;let t=es(this.gos),n=e.columns.length===0||e.columns.some(o=>o.isPrimary())?"filter":"filter_aggregates";this.refreshModel({step:n,keepRenderedRows:!0,animate:t})}onSortChanged(){let e=es(this.gos);this.refreshModel({step:"sort",keepRenderedRows:!0,animate:e,keepEditingRows:!0})}getType(){return"clientSide"}onValueChanged(){this.columnModel.isPivotActive()?this.refreshModel({step:"pivot"}):this.refreshModel({step:"aggregate"})}createChangePath(e){let t=$i(e),i=new Au(!1,this.rootNode);return t&&i.setInactive(),i}isSuppressModelUpdateAfterUpdateTransaction(e){if(!this.gos.get("suppressModelUpdateAfterUpdateTransaction")||e.rowNodeTransactions==null)return!1;let t=e.rowNodeTransactions.filter(n=>n.add!=null&&n.add.length>0||n.remove!=null&&n.remove.length>0);return t==null||t.length==0}buildRefreshModelParams(e){let t="group",i={everything:"group",group:"group",filter:"filter",map:"map",aggregate:"aggregate",filter_aggregates:"filter_aggregates",sort:"sort",pivot:"pivot",nothing:"nothing"};if(K(e)&&(t=i[e]),Fe(t)){Be(`invalid step ${e}, available steps are ${Object.keys(i).join(", ")}`);return}let n=!this.gos.get("suppressAnimationFrame");return{step:t,keepRenderedRows:!0,keepEditingRows:!0,animate:n}}refreshModel(e){if(!this.hasStarted||this.isRefreshingModel||this.columnModel.isChangeEventsDispatching())return;let t=typeof e=="object"&&"step"in e?e:this.buildRefreshModelParams(e);if(!t||this.isSuppressModelUpdateAfterUpdateTransaction(t))return;let i=this.createChangePath(t.rowNodeTransactions);switch(this.isRefreshingModel=!0,t.step){case"group":this.doRowGrouping(t.rowNodeTransactions,i,!!t.rowNodesOrderChanged,!!t.afterColumnsChanged);case"filter":this.doFilter(i);case"pivot":this.doPivot(i);case"aggregate":this.doAggregate(i);case"filter_aggregates":this.doFilterAggregates(i);case"sort":this.doSort(t.rowNodeTransactions,i);case"map":this.doRowsToDisplay()}let n=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(i,n),this.isRefreshingModel=!1,this.eventService.dispatchEvent({type:"modelUpdated",animate:t.animate,keepRenderedRows:t.keepRenderedRows,newD
677ata:t.newData,newPage:!1,keepUndoRedoStack:t.keepUndoRedoStack})}isEmpty(){let e=Fe(this.rootNode.allLeafChildren)||this.rootNode.allLeafChildren.length===0;return Fe(this.rootNode)||e||!this.columnModel.isReady()}isRowsToRender(){return K(this.rowsToDisplay)&&this.rowsToDisplay.length>0}getNodesInRangeForSelection(e,t){let i=!1,n=!1,o=[],r=$r(this.gos);return this.forEachNodeAfterFilterAndSort(a=>{if(n)return;if(i&&(a===t||a===e)&&(n=!0,a.group&&r)){o.push(...a.allLeafChildren);return}if(!i){if(a!==t&&a!==e)return;i=!0}if(!a.group||!r){o.push(a);return}}),o}setDatasource(e){Be("should never call setDatasource on clientSideRowController")}getTopLevelNodes(){return this.rootNode?this.rootNode.childrenAfterGroup:null}getRootNode(){return this.rootNode}getRow(e){return this.rowsToDisplay[e]}isRowPresent(e){return this.rowsToDisplay.indexOf(e)>=0}getRowIndexAtPixel(e){if(this.isEmpty()||this.rowsToDisplay.length===0)return-1;let t=0,i=this.rowsToDisplay.length-1;if(e<=0)return 0;if(Ae(this.rowsToDisplay).rowTop<=e)return this.rowsToDisplay.length-1;let o=-1,r=-1;for(;;){let a=Math.floor((t+i)/2),s=this.rowsToDisplay[a];if(this.isRowInPixel(s,e)||(s.rowTop<e?t=a+1:s.rowTop>e&&(i=a-1),o===t&&r===i))return a;o=t,r=i}}isRowInPixel(e,t){let i=e.rowTop,n=e.rowTop+e.rowHeight;return i<=t&&n>t}forEachLeafNode(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach((t,i)=>e(t,i))}forEachNode(e,t=!1){this.recursivelyWalkNodesAndCallback({nodes:[...this.rootNode.childrenAfterGroup||[]],callback:e,recursionType:0,index:0,includeFooterNodes:t})}forEachNodeAfterFilter(e,t=!1){this.recursivelyWalkNodesAndCallback({nodes:[...this.rootNode.childrenAfterAggFilter||[]],callback:e,recursionType:1,index:0,includeFooterNodes:t})}forEachNodeAfterFilterAndSort(e,t=!1){this.recursivelyWalkNodesAndCallback({nodes:[...this.rootNode.childrenAfterSort||[]],callback:e,recursionType:2,index:0,includeFooterNodes:t})}forEachPivotNode(e,t=!1){this.recursivelyWalkNodesAndCallback({nodes:[this.rootNode],callback:e,recursionType:3,index:0,includeFooterNodes:t})}recursivelyWalkNodesAndCallback(e){let{nodes:t,callback:i,recursionType:n,includeFooterNodes:o}=e,{index:r}=e,a=s=>{let l=t[0]?.parent;if(!l)return;let c=o&&w_(this.gos),h=x_(this.gos),m=o&&h({node:l});if(l===this.rootNode){c===s&&(l.createFooter(),i(l.sibling,r++));return}m===s&&(l.createFooter(),i(l.sibling,r++))};a("top");for(let s=0;s<t.length;s++){let l=t[s];if(i(l,r++),l.hasChildren()&&!l.footer){let c=null;switch(n){case 0:c=l.childrenAfterGroup;break;case 1:c=l.childrenAfterAggFilter;break;case 2:c=l.childrenAfterSort;break;case 3:c=l.leafGroup?null:l.childrenAfterSort;break}c&&(r=this.recursivelyWalkNodesAndCallback({nodes:[...c],callback:i,recursionType:n,index:r,includeFooterNodes:o}))}}return a("bottom"),r}doAggregate(e){this.aggregationStage?.execute({rowNode:this.rootNode,changedPath:e})}doFilterAggregates(e){this.filterAggregatesStage?this.filterAggregatesStage.execute({rowNode:this.rootNode,changedPath:e}):this.rootNode.childrenAfterAggFilter=this.rootNode.childrenAfterFilter}expandOrCollapseAll(e){let t=this.gos.get("treeData"),i=this.columnModel.isPivotActive(),n=o=>{o&&o.forEach(r=>{let a=()=>{r.expanded=e,n(r.childrenAfterGroup)};if(t){K(r.childrenAfterGroup)&&a();return}if(i){!r.leafGroup&&a();return}r.group&&a()})};this.rootNode&&n(this.rootNode.childrenAfterGroup),this.refreshModel({step:"map"}),this.eventService.dispatchEvent({type:"expandOrCollapseAll",source:e?"expandAll":"collapseAll"})}doSort(e,t){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:t})}doRowGrouping(e,t,i,n){if(this.groupStage)e?this.groupStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,rowNodesOrderChanged:i,changedPath:t}):this.groupStage.execute({rowNode:this.rootNode,changedPath:t,afterColumnsChanged:n}),$r(this.gos)&&this.selectionService.updateGroupsFromChildrenSelections("rowGroupChanged",t)&&this.eventService.dispatchEvent({type:"selectionChanged",source:"rowGroupChanged"});else{let o=this.rootNode,r=o.sibling;o.childrenAfterGroup=o.allLeafChildren,r&&(r.childrenAfterGroup=o.childrenAfterGroup),this.rootNode.updateHasChildren()}this.nodeManager.isRowCountReady()&&(this.rowCountReady=!0,this.eventService.dispatchEventOnce({type:"rowCountReady"}))}doFilter(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})}doPivot(e){this.pivotStage?.execute({rowNode:this.rootNode,changedPath:e})}getNodeManager(){return this.nodeManager}getRowNode(e){if(typeof e=="string"&&e.indexOf(wo.ID_PREFIX_ROW_GROUP)==0){let i;return this.forEachNode(n=>{n.id===e&&(i=n)}),i}return this.nodeManager.getRowNode(e)}setRowData(e){this.selectionService.reset("rowDataChanged"),this.nodeManager.setRowData(e),this.hasStarted&&this.dispatchUpdateEventsAndRefresh()}dispatchUpdateEventsAndRefresh(){this.eventService.dispatchEvent({type:"rowDataUpdated"}),this.refreshModel({step:"group",newData:!0})}batchUpdateRowData(e,t){if(this.applyAsyncTransactionsTimeout==null){this.rowDataTransactionBatch=[];let i=this.gos.get("asyncTransactionWaitMillis");this.applyAsyncTransactionsTimeout=window.setTimeout(()=>{this.isAlive()&&this.executeBatchUpdateRowData()},i)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:t})}flushAsyncTransactions(){this.applyAsyncTransactionsTimeout!=null&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())}executeBatchUpdateRowData(){this.valueCache.onDataChanged();let e=[],t=[],i=!1;this.rowDataTransactionBatch?.forEach(n=>{let{rowNodeTransaction:o,rowsInserted:r}=this.nodeManager.updateRowData(n.rowDataTransaction);r&&(i=!0),t.push(o),n.callback&&e.push(n.callback.bind(null,o))}),this.commonUpdateRowData(t,i),e.length>0&&window.setTimeout(()=>{e.forEach(n=>n())},0),t.length>0&&this.eventService.dispatchEvent({type:"asyncTransactionsFlushed",results:t}),this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0}updateRowData(e){this.valueCache.onDataChanged();let{rowNodeTransaction:t,rowsInserted:i}=this.nodeManager.updateRowData(e);return this.commonUpdateRowData([t],i),t}afterImmutableDataChange(e,t){this.commonUpdateRowData([e],t)}commonUpdateRowData(e,t){if(!this.hasStarted)return;let i=!this.gos.get("suppressAnimationFrame");this.eventService.dispatchEvent({type:"rowDataUpdated"}),this.refreshModel({step:"group",rowNodeTransactions:e,rowNodesOrderChanged:t,keepRenderedRows:!0,keepEditingRows:!0,animate:i})}doRowsToDisplay(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})}onRowHeightChanged(){this.refreshModel({step:"map",keepRenderedRows:!0,keepEditingRows:!0,keepUndoRedoStack:!0})}onRowHeightChangedDebounced(){this.onRowHeightChanged_debounced()}resetRowHeights(){let e=this.resetRowHeightsForAllRowNodes();this.rootNode.setRowHeight(this.rootNode.rowHeight,!0),this.rootNode.sibling&&this.rootNode.sibling.setRowHeight(this.rootNode.sibling.rowHeight,!0),e&&this.onRowHeightChanged()}resetRowHeightsForAllRowNodes(){let e=!1;return this.forEachNode(t=>{t.setRowHeight(t.rowHeight,!0);let i=t.detailNode;i&&i.setRowHeight(i.rowHeight,!0),t.sibling&&t.sibling.setRowHeight(t.sibling.rowHeight,!0),e=!0}),e}onGridStylesChanges(e){if(e.rowHeightChanged){if(this.columnModel.isAutoRowHeightActive())return;this.resetRowHeights()}}onGridReady(){this.hasStarted||this.setInitialData()}isRowDataLoaded(){return this.rowCountReady}destroy(){super.destroy(),this.clearHighlightedRow()}};function _8(e){e.expansionService.onGroupExpandedOrCollapsed()}function y8(e,t){e.rowModelHelperService?.getClientSideRowModel()?.refreshModel(t)}function w8(e){return e.rowModelHelperService?.getClientSideRowModel()?.isEmpty()??!0}function x8(e,t){e.rowModelHelperService?.getClientSideRowModel()?.forEachLeafNode(t)}function S8(e,t){e.rowModelHelperService?.getClientSideRowModel()?.forEachNodeAfterFilter(t)}function k8(e,t){e.rowModelHelperService?.getClientSideRowModel()?.forEachNodeAfterFilterAndSort(t)}function E8(e){if(e.columnModel.isAutoRowHeightActive()){$("calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.");return}e.rowModelHelperService?.getClientSideRowModel()?.resetRowHeights()}function M8(e,t){return e.frameworkOverrides.wrapIncoming(()=>e.rowModelHelperService?.getClientSideRowModel()?.updateRowData(t))}function T8(e,t,i){e.frameworkOverrides.wrapIncoming(()=>e.rowModelHelperService?.getClientSideRowModel()?.batchUpdateRowData(t,i))}function I8(e){e.frameworkOverrides.wrapIncoming(()=>e.rowModelHelperService?.getClientSideRowModel()?.flushAsyncTransactions())}
677function D8(e){return e.selectionService.getBestCostNodeSelection()}var P8=class extends H{constructor(){super(...arguments),this.beanName="filterStage"}wireBeans(e){this.filterManager=e.filterManager}execute(e){let{changedPath:t}=e;this.filter(t)}filter(e){let t=!!this.filterManager?.isChildFilterPresent();this.filterNodes(t,e)}filterNodes(e,t){let i=(n,o)=>{n.hasChildren()&&e&&!o?n.childrenAfterFilter=n.childrenAfterGroup.filter(r=>{let a=r.childrenAfterFilter&&r.childrenAfterFilter.length>0,s=r.data&&this.filterManager.doesRowPassFilter({rowNode:r});return a||s}):n.childrenAfterFilter=n.childrenAfterGroup,n.sibling&&(n.sibling.childrenAfterFilter=n.childrenAfterFilter)};if(this.doingTreeDataFiltering()){let n=(r,a)=>{if(r.childrenAfterGroup)for(let s=0;s<r.childrenAfterGroup.length;s++){let l=r.childrenAfterGroup[s],c=a||this.filterManager.doesRowPassFilter({rowNode:l});l.childrenAfterGroup?n(r.childrenAfterGroup[s],c):i(l,c)}i(r,a)},o=r=>n(r,!1);t.executeFromRootNode(o)}else{let n=o=>i(o,!1);t.forEachChangedNodeDepthFirst(n,!0)}}doingTreeDataFiltering(){return this.gos.get("treeData")&&!this.gos.get("excludeChildrenWhenTreeDataFiltering")}},R8=class extends H{constructor(){super(...arguments),this.beanName="flattenStage"}wireBeans(e){this.beans=e,this.columnModel=e.columnModel}execute(e){let t=e.rowNode,i=[],n=this.columnModel.isPivotMode(),o=n&&t.leafGroup,r=o?[t]:t.childrenAfterSort,a=this.getFlattenDetails();this.recursivelyAddToRowsToDisplay(a,r,i,n,0);let s=i.length>0;if(!o&&s&&a.grandTotalRow){t.createFooter();let c=a.grandTotalRow==="top";this.addRowNodeToRowsToDisplay(a,t.sibling,i,0,c)}return i}getFlattenDetails(){let e=this.gos.get("groupRemoveSingleChildren");return{groupRemoveLowestSingleChildren:!e&&this.gos.get("groupRemoveLowestSingleChildren"),groupRemoveSingleChildren:e,isGroupMultiAutoColumn:S_(this.gos),hideOpenParents:this.gos.get("groupHideOpenParents"),grandTotalRow:w_(this.gos),groupTotalRow:x_(this.gos)}}recursivelyAddToRowsToDisplay(e,t,i,n,o){if(!$i(t))for(let r=0;r<t.length;r++){let a=t[r],s=a.hasChildren(),l=n&&!s,c=e.groupRemoveSingleChildren&&s&&a.childrenAfterGroup.length===1,h=e.groupRemoveLowestSingleChildren&&s&&a.leafGroup&&a.childrenAfterGroup.length===1,m=n&&a.leafGroup,f=e.hideOpenParents&&a.expanded&&!a.master&&!m;if(!l&&!f&&!c&&!h&&this.addRowNodeToRowsToDisplay(e,a,i,o),!(n&&a.leafGroup)){if(s){let _=c||h;if(a.expanded||_){let S=e.groupTotalRow({node:a});S||a.destroyFooter();let M=_?o:o+1;S==="top"&&(a.createFooter(),this.addRowNodeToRowsToDisplay(e,a.sibling,i,M)),this.recursivelyAddToRowsToDisplay(e,a.childrenAfterSort,i,n,M),S==="bottom"&&(a.createFooter(),this.addRowNodeToRowsToDisplay(e,a.sibling,i,M))}}else if(a.master&&a.expanded){let _=this.createDetailNode(a);this.addRowNodeToRowsToDisplay(e,_,i,o)}}}}addRowNodeToRowsToDisplay(e,t,i,n,o){o?i.unshift(t):i.push(t),t.setUiLevel(e.isGroupMultiAutoColumn?0:n)}createDetailNode(e){if(K(e.detailNode))return e.detailNode;let t=new wo(this.beans);return t.detail=!0,t.selectable=!1,t.parent=e,K(e.id)&&(t.id="detail_"+e.id),t.data=e.data,t.level=e.level+1,e.detailNode=t,t}},F8=class extends H{constructor(){super(...arguments),this.beanName="immutableService"}wireBeans(e){this.rowModel=e.rowModel,this.selectionService=e.selectionService}postConstruct(){at(this.gos)&&(this.clientSideRowModel=this.rowModel,this.addManagedPropertyListener("rowData",()=>this.onRowDataUpdated()))}isActive(){let e=this.gos.exists("getRowId");return this.gos.get("resetRowDataOnUpdate")?!1:e}setRowData(e){let t=this.createTransactionForRowData(e);if(!t)return;let i=this.clientSideRowModel.getNodeManager(),{rowNodeTransaction:n,rowsInserted:o}=i.updateRowData(t),r=!1;this.gos.get("suppressMaintainUnsortedOrder")||(r=i.updateRowOrderFromRowData(e)),this.clientSideRowModel.afterImmutableDataChange(n,r||o)}createTransactionForRowData(e){if(!at(this.gos))return Be("ImmutableService only works with ClientSideRowModel"),null;let t=ds(this.gos);if(t==null)return Be("ImmutableService requires getRowId() callback to be implemented, your row data needs IDs!"),null;let i=this.clientSideRowModel.getNodeManager().getCopyOfNodesMap(),n=[],o=[],r=[];return K(e)&&e.forEach(a=>{let s=t({data:a,level:0}),l=i[s];l?(l.data!==a&&o.push(a),i[s]=void 0):r.push(a)}),sn(i,(a,s)=>{s&&n.push(s.data)}),{remove:n,update:o,add:r}}onRowDataUpdated(){let e=this.gos.get("rowData");e&&(this.isActive()?this.setRowData(e):(this.selectionService.reset("rowDataChanged"),this.clientSideRowModel.setRowData(e)))}},O8=class extends H{constructor(){super(...arguments),this.beanName="sortService"}wireBeans(e){this.columnModel=e.columnModel,this.funcColsService=e.funcColsService,this.rowNodeSorter=e.rowNodeSorter,this.showRowGroupColsService=e.showRowGroupColsService}sort(e,t,i,n,o,r){let a=this.gos.get("groupMaintainOrder"),s=this.columnModel.getCols().some(f=>f.isRowGroupActive()),l={};i&&n&&(l=this.calculateDirtyNodes(n));let c=this.columnModel.isPivotMode(),h=this.gos.getCallback("postSortRows"),m=f=>{this.pullDownGroupDataForHideOpenParents(f.childrenAfterAggFilter,!0);let b=c&&f.leafGroup;if(a&&s&&!f.leafGroup&&!r){let M=this.funcColsService.getRowGroupColumns()?.[f.level+1]?.getSort()===null,D=f.childrenAfterAggFilter.slice(0);if(f.childrenAfterSort&&!M){let I={};f.childrenAfterSort.forEach((F,W)=>{I[F.id]=W}),D.sort((F,W)=>(I[F.id]??0)-(I[W.id]??0))}f.childrenAfterSort=D}else!t||b?f.childrenAfterSort=f.childrenAfterAggFilter.slice(0):i?f.childrenAfterSort=this.doDeltaSort(f,l,o,e):f.childrenAfterSort=this.rowNodeSorter.doFullSort(f.childrenAfterAggFilter,e);if(f.sibling&&(f.sibling.childrenAfterSort=f.childrenAfterSort),this.updateChildIndexes(f),h){let S={nodes:f.childrenAfterSort};h(S)}};o&&o.forEachChangedNodeDepthFirst(m),this.updateGroupDataForHideOpenParents(o)}calculateDirtyNodes(e){let t={},i=n=>
677{n&&n.forEach(o=>t[o.id]=!0)};return e&&e.forEach(n=>{i(n.add),i(n.update),i(n.remove)}),t}doDeltaSort(e,t,i,n){let o=e.childrenAfterAggFilter,r=e.childrenAfterSort;if(!r)return this.rowNodeSorter.doFullSort(o,n);let a={},s=[];o.forEach(m=>{t[m.id]||!i.canSkip(m)?s.push(m):a[m.id]=!0});let l=r.filter(m=>a[m.id]),c=(m,f)=>({currentPos:f,rowNode:m}),h=s.map(c).sort((m,f)=>this.rowNodeSorter.compareRowNodes(n,m,f));return this.mergeSortedArrays(n,h,l.map(c)).map(({rowNode:m})=>m)}mergeSortedArrays(e,t,i){let n=[],o=0,r=0;for(;o<t.length&&r<i.length;)this.rowNodeSorter.compareRowNodes(e,t[o],i[r])<0?n.push(t[o++]):n.push(i[r++]);for(;o<t.length;)n.push(t[o++]);for(;r<i.length;)n.push(i[r++]);return n}updateChildIndexes(e){if(Fe(e.childrenAfterSort))return;let t=e.childrenAfterSort;for(let i=0;i<t.length;i++){let n=t[i],o=i===0,r=i===e.childrenAfterSort.length-1;n.setFirstChild(o),n.setLastChild(r),n.setChildIndex(i)}}updateGroupDataForHideOpenParents(e){if(!this.gos.get("groupHideOpenParents"))return;if(this.gos.get("treeData"))return $("The property hideOpenParents dose not work with Tree Data. This is because Tree Data has values at the group level, it doesn't make sense to hide them."),!1;let t=i=>{this.pullDownGroupDataForHideOpenParents(i.childrenAfterSort,!1),i.childrenAfterSort.forEach(n=>{n.hasChildren()&&t(n)})};e&&e.executeFromRootNode(i=>t(i))}pullDownGroupDataForHideOpenParents(e,t){!this.gos.get("groupHideOpenParents")||Fe(e)||e.forEach(i=>{(this.showRowGroupColsService?.getShowRowGroupCols()??[]).forEach(o=>{let r=o.getColDef().showRowGroup;if(typeof r!="string"){Be("groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup");return}let a=r,s=this.columnModel.getColDefCol(a);if(s!==i.rowGroupColumn)if(t)i.setGroupValue(o.getId(),void 0);else{let c=this.getFirstChildOfFirstChild(i,s);c&&i.setGroupValue(o.getId(),c.key)}})})}getFirstChildOfFirstChild(e,t){let i=e;for(;i;){let n=i.parent;if(n&&i.firstChild){if(n.rowGroupColumn===t)return n}else return null;i=n}return null}},A8=class extends H{constructor(){super(...arguments),this.beanName="sortStage"}wireBeans(e){this.sortService=e.sortService,this.sortController=e.sortController}execute(e){let t=this.sortController.getSortOptions(),i=K(t)&&t.length>0,n=i&&K(e.rowNodeTransactions)&&this.gos.get("deltaSort"),o=t.some(r=>Hn(this.gos)?r.column.isPrimary()&&r.column.isRowGroupActive():!!r.column.getColDef().showRowGroup);this.sortService.sort(t,i,n,e.rowNodeTransactions,e.changedPath,o)}},Vm="32.3.9",dw={version:Vm,moduleName:"@ag-grid-community/client-side-row-model-core",rowModel:"clientSide",beans:[b8,P8,A8,R8,O8,F8]},L8={version:Vm,moduleName:"@ag-grid-community/client-side-row-model-api",beans:[lw],apiFunctions:{onGroupExpandedOrCollapsed:_8,refreshClientSideRowModel:y8,isRowDataEmpty:w8,forEachLeafNode:x8,forEachNodeAfterFilter:S8,forEachNodeAfterFilterAndSort:k8,resetRowHeights:E8,applyTransaction:M8,applyTransactionAsync:T8,flushAsyncTransactions:I8,getBestCostNodeSelection:D8},dependantModules:[dw,m8]},N8={version:Vm,moduleName:"@ag-grid-community/client-side-row-model",dependantModules:[dw,L8]},z8=class extends H{setBeans(e){this.beans=e}getFileName(e){let t=this.getDefaultFileExtension();return(e==null||!e.length)&&(e=this.getDefaultFileName()),e.indexOf(".")===-1?`${e}.${t}`:e}getData(e){let t=this.createSerializingSession(e);return this.beans.gridSerializer.serialize(t,e)}getDefaultFileName(){return`export.${this.getDefaultFileExtension()}`}},B8=class{constructor(e){this.groupColumns=[];let{columnModel:t,funcColsService:i,columnNameService:n,valueService:o,gos:r,processCellCallback:a,processHeaderCallback:s,processGroupHeaderCallback:l,processRowGroupCallback:c}=e;this.columnModel=t,this.funcColsService=i,this.columnNameService=n,this.valueService=o,this.gos=r,this.processCellCallback=a,this.processHeaderCallback=s,this.processGroupHeaderCallback=l,this.processRowGroupCallback=c}prepare(e){this.groupColumns=e.filter(t=>!!t.getColDef().showRowGroup)}extractHeaderValue(e){return this.getHeaderName(this.processHeaderCallback,e)??""}extractRowCellValue(e,t,i,n,o){let a=(!this.gos.get("groupHideOpenParents")||o.footer)&&this.shouldRenderGroupSummaryCell(o,e,t)?this.createValueForGroupNode(e,o):this.valueService.getValue(e,o);return this.processCell({accumulatedRowIndex:i,rowNode:o,column:e,value:a,processCellCallback:this.processCellCallback,type:n})}shouldRenderGroupSummaryCell(e,t,i){if(!(e&&e.group))return!1;if(this.groupColumns.indexOf(t)!==-1){let a=e.groupData?.[t.getId()],s=this.gos.get("suppressGroupMaintainValueType");if(s&&a!=null||!s&&a!==void 0||ko(this.gos)&&e.group)return!0;
677if(e.footer&&e.level===-1){let l=t.getColDef();return l==null||l.showRowGroup===!0||l.showRowGroup===this.funcColsService.getRowGroupColumns()[0].getId()}}let r=Tu(this.gos,this.columnModel.isPivotMode());return i===0&&r}getHeaderName(e,t){return e?e(this.gos.addGridCommonParams({column:t})):this.columnNameService.getDisplayNameForColumn(t,"csv",!0)}createValueForGroupNode(e,t){if(this.processRowGroupCallback)return this.processRowGroupCallback(this.gos.addGridCommonParams({column:e,node:t}));let i=this.gos.get("treeData"),n=this.gos.get("suppressGroupMaintainValueType"),o=l=>{if(i||n)return l.key;let c=l.groupData?.[e.getId()];return!c||!l.rowGroupColumn||l.rowGroupColumn.getColDef().useValueFormatterForExport===!1?c:this.valueService.formatValue(l.rowGroupColumn,l,c)??c},r=t.footer,a=[o(t)];if(!S_(this.gos))for(;t.parent;)t=t.parent,a.push(o(t));let s=a.reverse().join(" -> ");return r?`Total ${s}`:s}processCell(e){let{accumulatedRowIndex:t,rowNode:i,column:n,value:o,processCellCallback:r,type:a}=e;return r?{value:r(this.gos.addGridCommonParams({accumulatedRowIndex:t,column:n,node:i,value:o,type:a,parseValue:s=>this.valueService.parseValue(n,i,s,this.valueService.getValue(n,i)),formatValue:s=>this.valueService.formatValue(n,i,s)??s}))??""}:n.getColDef().useValueFormatterForExport!==!1?{value:o??"",valueFormatted:this.valueService.formatValue(n,i,o)}:{value:o??""}}},V8=class{static download(e,t){let i=document.defaultView||window;if(!i){$("There is no `window` associated with the current `document`");return}let n=document.createElement("a"),o=i.URL.createObjectURL(t);n.setAttribute("href",o),n.setAttribute("download",e),n.style.display="none",document.body.appendChild(n),n.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:i})),document.body.removeChild(n),i.setTimeout(()=>{i.URL.revokeObjectURL(o)},0)}},f_=`\r 678`,H8=class extends B8{constructor(e){super(e),this.isFirstLine=!0,this.result="";let{suppressQuotes:t,columnSeparator:i}=e;this.suppressQuotes=t,this.columnSeparator=i}addCustomContent(e){e&&(typeof e=="string"?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,f_),this.result+=e):e.forEach(t=>{this.beginNewLine(),t.forEach((i,n)=>{n!==0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(i.data.value||""),i.mergeAcross&&this.appendEmptyCells(i.mergeAcross)})}))}onNewHeaderGroupingRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}}onNewHeaderGroupingRowColumn(e,t,i,n){i!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(t),this.appendEmptyCells(n)}appendEmptyCells(e){for(let t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")}onNewHeaderRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}}onNewHeaderRowColumn(e,t){t!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))}onNewBodyRow(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}}onNewBodyRowColumn(e,t,i){t!=0&&(this.result+=this.columnSeparator);let n=this.extractRowCellValue(e,t,t,"csv",i);this.result+=this.putInQuotes(n.valueFormatted??n.value)}putInQuotes(e){if(this.suppressQuotes)return e;if(e==null)return'""';let t;return typeof e=="string"?t=e:typeof e.toString=="function"?t=e.toString():($("unknown value type during csv conversion"),t=""),'"'+t.replace(/"/g,'""')+'"'}parse(){return this.result}beginNewLine(){this.isFirstLine||(this.result+=f_),this.isFirstLine=!1}},G8=class extends z8{constructor(){super(...arguments),this.beanName="csvCreator"}wireBeans(e){this.columnModel=e.columnModel,this.columnNameService=e.columnNameService,this.funcColsService=e.funcColsService,this.valueService=e.valueService,this.gridSerializer=e.gridSerializer}postConstruct(){this.setBeans({gridSerializer:this.gridSerializer,gos:this.gos})}getMergedParams(e){let t=this.gos.get("defaultCsvExportParams");return Object.assign({},t,e)}export(e){if(this.isExportSuppressed()){$("Export cancelled. Export is not allowed as per your configuration.");return}let t=this.getMergedParams(e),i=this.getData(t),n=new Blob(["\uFEFF",i],{t
678ype:"text/plain"}),o=typeof t.fileName=="function"?t.fileName(this.gos.getGridCommonParams()):t.fileName;V8.download(this.getFileName(o),n)}exportDataAsCsv(e){this.export(e)}getDataAsCsv(e,t=!1){let i=t?Object.assign({},e):this.getMergedParams(e);return this.getData(i)}getDefaultFileExtension(){return"csv"}createSerializingSession(e){let{columnModel:t,columnNameService:i,funcColsService:n,valueService:o,gos:r}=this,{processCellCallback:a,processHeaderCallback:s,processGroupHeaderCallback:l,processRowGroupCallback:c,suppressQuotes:h,columnSeparator:m}=e;return new H8({columnModel:t,columnNameService:i,funcColsService:n,valueService:o,gos:r,processCellCallback:a||void 0,processHeaderCallback:s||void 0,processGroupHeaderCallback:l||void 0,processRowGroupCallback:c||void 0,suppressQuotes:h||!1,columnSeparator:m||","})}isExportSuppressed(){return this.gos.get("suppressCsvExport")}};function U8(e,t){return e.csvCreator?.getDataAsCsv(t)}function j8(e,t){e.csvCreator?.exportDataAsCsv(t)}var W8=class extends H{constructor(){super(...arguments),this.beanName="gridSerializer"}wireBeans(e){this.visibleColsService=e.visibleColsService,this.columnModel=e.columnModel,this.columnNameService=e.columnNameService,this.rowModel=e.rowModel,this.pinnedRowModel=e.pinnedRowModel,this.selectionService=e.selectionService,this.rowNodeSorter=e.rowNodeSorter,this.sortController=e.sortController}serialize(e,t={}){let{allColumns:i,columnKeys:n,skipRowGroups:o}=t,r=this.getColumnsToExport(i,o,n);return WP(this.prepareSession(r),this.prependContent(t),this.exportColumnGroups(t,r),this.exportHeaders(t,r),this.processPinnedTopRows(t,r),this.processRows(t,r),this.processPinnedBottomRows(t,r),this.appendContent(t))(e).parse()}processRow(e,t,i,n){let o=t.shouldRowBeSkipped||(()=>!1),r=this.gos.get("groupRemoveSingleChildren"),a=this.gos.get("groupRemoveLowestSingleChildren"),l=t.rowPositions!=null||!!t.onlySelected,c=this.gos.get("groupHideOpenParents")&&!l,h=this.columnModel.isPivotMode()?n.leafGroup:!n.group,m=!!n.footer,f=a&&n.leafGroup,b=n.allChildrenCount===1&&n.childrenAfterGroup?.length===1&&(r||f);if(!h&&!m&&(t.skipRowGroups||b||c)||t.onlySelected&&!n.isSelected()||t.skipPinnedTop&&n.rowPinned==="top"||t.skipPinnedBottom&&n.rowPinned==="bottom"||n.level===-1&&!h&&!m||o(this.gos.addGridCommonParams({node:n})))return;let M=e.onNewBodyRow(n);if(i.forEach((D,I)=>{M.onColumn(D,I,n)}),t.getCustomContentBelowRow){let D=t.getCustomContentBelowRow(this.gos.addGridCommonParams({node:n}));D&&e.addCustomContent(D)}}appendContent(e){return t=>{let i=e.appendContent;return i&&t.addCustomContent(i),t}}prependContent(e){return t=>{let i=e.prependContent;return i&&t.addCustomContent(i),t}}prepareSession(e){return t=>(t.prepare(e),t)}exportColumnGroups(e,t){return i=>{if(!e.skipColumnGroupHeaders){let n=new A_,o=this.visibleColsService.createGroups({columns:t,idCreator:n,pinned:null,isStandaloneStructure:!0});this.recursivelyAddHeaderGroups(o,i,e.processGroupHeaderCallback)}return i}}exportHeaders(e,t){return i=>{if(!e.skipColumnHeaders){let n=i.onNewHeaderRow();t.forEach((o,r)=>{n.onColumn(o,r,void 0)})}return i}}processPinnedTopRows(e,t){return i=>{let n=this.processRow.bind(this,i,e,t);return e.rowPositions?e.rowPositions.filter(o=>o.rowPinned==="top").sort((o,r)=>o.rowIndex-r.rowIndex).map(o=>this.pinnedRowModel.getPinnedTopRow(o.rowIndex)).forEach(n):this.pinnedRowModel.forEachPinnedRow("top",n),i}}processRows(e,t){return i=>{let n=this.rowModel,o=at(this.gos),r=ko(this.gos),a=!o&&e.onlySelected,s=this.processRow.bind(this,i,e,t),{exportedRows:l="filteredAndSorted"}=e;if(e.rowPositions)e.rowPositions.filter(c=>c.rowPinned==null).sort((c,h)=>c.rowIndex-h.rowIndex).map(c=>n.getRow(c.rowIndex)).forEach(s);else if(this.columnModel.isPivotMode())o?n.forEachPivotNode(s,!0):r?n.forEachNodeAfterFilterAndSort(s,!0):n.forEachNode(s);else if(e.onlySelectedAllPages||a){let c=this.selectionService.getSelectedNodes();this.replicateSortedOrder(c),c.forEach(s)}else l==="all"?n.forEachNode(s):o||r?n.forEachNodeAfterFilterAndSort(s,!0):n.forEachNode(s);return i}}replicateSortedOrder(e){let t=this.sortController.getSortOptions(),i=(n,o)=>n.rowIndex!=null&&o.rowIndex!=null?n.rowIndex-o.rowIndex:n.level===o.level?n.parent?.id===o.parent?.id?this.rowNodeSorter.compareRowNodes(t,{rowNode:n,currentPos:n.rowIndex??-1},{rowNode:o,currentPos:o.rowIndex??-1}):i(n.parent,o.parent):n.level>o.level?i(n.parent,o):i(n,o.parent);e.sort(i)}processPinnedBottomRows(e,t){return i=>{let n=this.processRow.bind(this,i,e,t);return e.rowPositions?e.rowPositions.filter(o=>o.rowPinned==="bottom").sort((o,r)=>o.rowIndex-r.rowIndex).map(o=>
678this.pinnedRowModel.getPinnedBottomRow(o.rowIndex)).forEach(n):this.pinnedRowModel.forEachPinnedRow("bottom",n),i}}getColumnsToExport(e=!1,t=!1,i){let n=this.columnModel.isPivotMode();if(i&&i.length)return this.columnModel.getColsForKeys(i);let o=this.gos.get("treeData"),r=[];return e&&!n?r=this.columnModel.getCols():r=this.visibleColsService.getAllCols(),t&&!o&&(r=r.filter(a=>!Yg(a)&&!as(a))),r}recursivelyAddHeaderGroups(e,t,i){let n=[];e.forEach(o=>{let r=o;r.getChildren&&r.getChildren().forEach(a=>n.push(a))}),e.length>0&&wt(e[0])&&this.doAddHeaderHeader(t,e,i),n&&n.length>0&&this.recursivelyAddHeaderGroups(n,t,i)}doAddHeaderHeader(e,t,i){let n=e.onNewHeaderGroupingRow(),o=0;t.forEach(r=>{let a=r,s;i?s=i(this.gos.addGridCommonParams({columnGroup:a})):s=this.columnNameService.getDisplayNameForColumnGroup(a,"header");let l=a.getLeafColumns().reduce((c,h,m,f)=>{let b=Ae(c);return h.getColumnGroupShow()==="open"?(!b||b[1]!=null)&&(b=[m],c.push(b)):b&&b[1]==null&&(b[1]=m-1),m===f.length-1&&b&&b[1]==null&&(b[1]=m),c},[]);n.onColumn(a,s||"",o++,a.getLeafColumns().length-1,l)})}},Hm="32.3.9",uw={version:Hm,moduleName:"@ag-grid-community/csv-export-core",beans:[G8,W8]},$8={version:Hm,moduleName:"@ag-grid-community/csv-export-api",apiFunctions:{getDataAsCsv:U8,exportDataAsCsv:j8},dependantModules:[uw]},q8={version:Hm,moduleName:"@ag-grid-community/csv-export",dependantModules:[uw,$8]};var Afe=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);var Y8=class extends YA{wireBeans(e){this.beans=e}constructor(e,t,i){super(e),this.parentCache=t,this.params=i,this.startRow=e*i.blockSize,this.endRow=this.startRow+i.blockSize}postConstruct(){this.createRowNodes()}getBlockStateJson(){return{id:""+this.getId(),state:{blockNumber:this.getId(),startRow:this.getStartRow(),endRow:this.getEndRow(),pageStatus:this.getState()}}}setDataAndId(e,t,i){K(t)?e.setDataAndId(t,i.toString()):e.setDataAndId(void 0,void 0)}loadFromDatasource(){let e=this.createLoadParams();if(Fe(this.params.datasource.getRows)){$("datasource is missing getRows method");return}window.setTimeout(()=>{this.params.datasource.getRows(e)},0)}processServerFail(){}createLoadParams(){return{startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this,this.getVersion()),sortModel:this.params.sortModel,filterModel:this.params.filterModel,context:this.gos.getGridCommonParams().context}}
678forEachNode(e,t,i){this.rowNodes.forEach((n,o)=>{this.startRow+o<i&&e(n,t.next())})}getLastAccessed(){return this.lastAccessed}getRow(e,t=!1){t||(this.lastAccessed=this.params.lastAccessedSequence.next());let i=e-this.startRow;return this.rowNodes[i]}getStartRow(){return this.startRow}getEndRow(){return this.endRow}createRowNodes(){this.rowNodes=[];for(let e=0;e<this.params.blockSize;e++){let t=this.startRow+e,i=new wo(this.beans);i.setRowHeight(this.params.rowHeight),i.uiLevel=0,i.setRowIndex(t),i.setRowTop(this.params.rowHeight*t),this.rowNodes.push(i)}}processServerResult(e){this.rowNodes.forEach((i,n)=>{let o=e.rowData?e.rowData[n]:void 0;!i.id&&i.alreadyRendered&&o&&(this.rowNodes[n]=new wo(this.beans),this.rowNodes[n].setRowIndex(i.rowIndex),this.rowNodes[n].setRowTop(i.rowTop),this.rowNodes[n].setRowHeight(i.rowHeight),i.clearRowTopAndRowIndex()),this.setDataAndId(this.rowNodes[n],o,this.startRow+n)});let t=e.rowCount!=null&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,t)}destroy(){this.rowNodes.forEach(e=>{e.clearRowTopAndRowIndex()}),super.destroy()}},K8=2,Q8=class extends H{constructor(e){super(),this.lastRowIndexKnown=!1,this.blocks={},this.blockCount=0,this.rowCount=e.initialRowCount,this.params=e}wireBeans(e){this.rowRenderer=e.rowRenderer,this.focusService=e.focusService}getRow(e,t=!1){let i=Math.floor(e/this.params.blockSize),n=this.blocks[i];if(!n){if(t)return;n=this.createBlock(i)}return n.getRow(e)}createBlock(e){let t=this.createBean(new Y8(e,this,this.params));return this.blocks[t.getId()]=t,this.blockCount++,this.purgeBlocksIfNeeded(t),this.params.rowNodeBlockLoader.addBlock(t),t}refreshCache(){if(this.blockCount==0){this.purgeCache();return}this.getBlocksInOrder().forEach(t=>t.setStateWaitingToLoad()),this.params.rowNodeBlockLoader.checkBlockToLoad()}destroy(){this.getBlocksInOrder().forEach(e=>this.destroyBlock(e)),super.destroy()}getRowCount(){return this.rowCount}isLastRowIndexKnown(){return this.lastRowIndexKnown}pageLoaded(e,t){this.isAlive()&&(this.gos.get("debug")&&ln(`InfiniteCache - onPageLoaded: page = ${e.getId()}, lastRow = ${t}`),this.checkRowCount(e,t),this.onCacheUpdated())}purgeBlocksIfNeeded(e){let t=this.getBlocksInOrder().filter(a=>a!=e),i=(a,s)=>s.getLastAccessed()-a.getLastAccessed();t.sort(i);let n=this.params.maxBlocksInCache>0,o=n?this.params.maxBlocksInCache-1:null,r=K8-1;t.forEach((a,s)=>{let l=a.getState()==="needsLoading"&&s>=r,c=n?s>=o:!1;if(l||c){if(this.isBlockCurrentlyDisplayed(a)||this.isBlockFocused(a))return;this.removeBlockFromCache(a)}})}isBlockFocused(e){let t=this.focusService.getFocusCellToUseAfterRefresh();if(!t||t.rowPinned!=null)return!1;let i=e.getStartRow(),n=e.getEndRow();return t.rowIndex>=i&&t.rowIndex<n}isBlockCurrentlyDisplayed(e){let t=e.getStartRow(),i=e.getEndRow()-1;return this.rowRenderer.isRangeInRenderedViewport(t,i)}removeBlockFromCache(e){e&&this.destroyBlock(e)}checkRowCount(e,t){if(typeof t=="number"&&t>=0)this.rowCount=t,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){let n=(e.getId()+1)*this.params.blockSize+this.params.overflowSize;this.rowCount<n&&(this.rowCount=n)}}setRowCount(e,t){this.rowCount=e,K(t)&&(this.lastRowIndexKnown=t),this.lastRowIndexKnown||this.rowCount%this.params.blockSize===0&&this.rowCount++,this.onCacheUpdated()}forEachNodeDeep(e){let t=new ls;this.getBlocksInOrder().forEach(i=>i.forEachNode(e,t,this.rowCount))}getBlocksInOrder(){let e=(i,n)=>i.getId()-n.getId();return qr(this.blocks).sort(e)}destroyBlock(e){delete this.blocks[e.getId()],this.destroyBean(e),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(e)}onCacheUpdated(){this.isAlive()&&(this.destroyAllBlocksPastVirtualRowCount(),this.eventService.dispatchEvent({type:"storeUpdated"}))}destroyAllBlocksPastVirtualRowCount(){let e=[];this.getBlocksInOrder().forEach(t=>{t.getId()*this.params.blockSize>=this.rowCount&&e.push(t)}),e.length>0&&e.forEach(t=>this.destroyBlock(t))}purgeCache(){this.getBlocksInOrder().forEach(e=>this.removeBlockFromCache(e)),this.lastRowIndexKnown=!1,this.rowCount===0&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()}getRowNodesInRange(e,t){let i=[],n=-1,o=!1,r=new ls,a=!1;
678return this.getBlocksInOrder().forEach(l=>{if(!a){if(o&&n+1!==l.getId()){a=!0;return}n=l.getId(),l.forEachNode(c=>{let h=c===e||c===t;(o||h)&&i.push(c),h&&(o=!o)},r,this.rowCount)}}),a||o?[]:i}},J8=class extends H{constructor(){super(...arguments),this.beanName="rowModel"}wireBeans(e){this.filterManager=e.filterManager,this.sortController=e.sortController,this.selectionService=e.selectionService,this.rowRenderer=e.rowRenderer,this.rowNodeBlockLoader=e.rowNodeBlockLoader}getRowBounds(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}}ensureRowHeightsValid(){return!1}postConstruct(){this.gos.get("rowModelType")==="infinite"&&(this.rowHeight=Hr(this.gos),this.addEventListeners(),this.addDestroyFunc(()=>this.destroyCache()),this.verifyProps())}verifyProps(){this.gos.exists("initialGroupOrderComparator")&&$("initialGroupOrderComparator cannot be used with Infinite Row Model as sorting is done on the server side")}start(){this.setDatasource(this.gos.get("datasource"))}destroy(){this.destroyDatasource(),super.destroy()}destroyDatasource(){this.datasource&&(this.destroyBean(this.datasource),this.rowRenderer.datasourceChanged(),this.datasource=null)}addEventListeners(){this.addManagedEventListeners({filterChanged:this.onFilterChanged.bind(this),sortChanged:this.onSortChanged.bind(this),newColumnsLoaded:this.onColumnEverything.bind(this),storeUpdated:this.onCacheUpdated.bind(this)}),this.addManagedPropertyListener("datasource",()=>this.setDatasource(this.gos.get("datasource"))),this.addManagedPropertyListener("cacheBlockSize",()=>this.resetCache()),this.addManagedPropertyListener("rowHeight",()=>{this.rowHeight=Hr(this.gos),this.cacheParams.rowHeight=this.rowHeight,this.updateRowHeights()})}onFilterChanged(){this.reset()}onSortChanged(){this.reset()}onColumnEverything(){let e;this.cacheParams?e=this.isSortModelDifferent():e=!0,e&&this.reset()}isSortModelDifferent(){return!zl(this.cacheParams.sortModel,this.sortController.getSortModel())}getType(){return"infinite"}setDatasource(e){this.destroyDatasource(),this.datasource=e,e&&this.reset()}isEmpty(){return!this.infiniteCache}isRowsToRender(){return!!this.infiniteCache}getNodesInRangeForSelection(e,t){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,t):[]}reset(){if(!this.datasource)return;ds(this.gos)!=null||this.selectionService.reset("rowDataChanged"),this.resetCache()}dispatchModelUpdatedEvent(){this.eventService.dispatchEvent({type:"modelUpdated",newPage:!1,newPageSize:!1,newData:!1,keepRenderedRows:!0,animate:!1})}resetCache(){this.destroyCache(),this.cacheParams={datasource:this.datasource,filterModel:this.filterManager?.getFilterModel()??{},sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,initialRowCount:this.gos.get("infiniteInitialRowCount"),maxBlocksInCache:this.gos.get("maxBlocksInCache"),rowHeight:Hr(this.gos),overflowSize:this.gos.get("cacheOverflowSize"),blockSize:this.gos.get("cacheBlockSize"),lastAccessedSequence:new ls},this.infiniteCache=this.createBean(new Q8(this.cacheParams)),this.eventService.dispatchEventOnce({type:"rowCountReady"}),this.dispatchModelUpdatedEvent()}updateRowHeights(){this.forEachNode(e=>{e.setRowHeight(this.rowHeight),e.setRowTop(this.rowHeight*e.rowIndex)}),this.dispatchModelUpdatedEvent()}destroyCache(){this.infiniteCache&&(this.infiniteCache=this.destroyBean(this.infiniteCache))}onCacheUpdated(){this.dispatchModelUpdatedEvent()}getRow(e){if(this.infiniteCache&&!(e>=this.infiniteCache.getRowCount()))return this.infiniteCache.getRow(e)}getRowNode(e){let t;return this.forEachNode(i=>{i.id===e&&(t=i)}),t}forEachNode(e){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(e)}getTopLevelRowCount(){return this.getRowCount()}getTopLevelRowDisplayedIndex(e){return e}getRowIndexAtPixel(e){if(this.rowHeight!==0){let t=Math.floor(e/this.rowHeight),i=this.getRowCount()-1;return t>i?i:t}return 0}getRowCount(){return this.infiniteCache?this.infiniteCache.getRowCount():0}isRowPresent(e){return!!this.getRowNode(e.id)}refreshCache(){this.infiniteCache&&this.infiniteCache.refreshCache()}purgeCache(){this.infiniteCache&&this.infiniteCache.purgeCache()}isLastRowIndexKnown(){return this.infiniteCache?this.infiniteCache.isLastRowIndexKnown():!1}setRowCount(e,t){this.infiniteCache&&this.infiniteCache.setRowCount(e,t)}};function Z8(e){e.rowModelHelperService?.getInfiniteRowModel()?.refreshCache()}function X8(e){e.rowModelHelperService?.getInfiniteRowModel()?.purgeCache()}function ez(e){return e.rowModelHelperService?.getInfiniteRowModel()?.getRowCount()}var Gm="32.3.9",pw={version:Gm,moduleName:"@ag-grid-community/infinite-row-model-core",rowModel:"infinite",beans:[J8],dependantModules:[QA]},tz={version:Gm,moduleName:"@ag-grid-community/infinite-row-model-api",beans:[lw],apiFunctions:{refreshInfiniteCache:Z8,purgeInfiniteCache:X8,getInfiniteRowCount:ez},dependantModules:[pw,f8]},iz={version:Gm,moduleName:"@ag-grid-community/infinite-row-model",dependantModules:[pw,tz]};var nz=e=>{let t=new Map;return i=>{let n=i;return t.has(n)||t.set(n,e(i)),t.get(n)}},Lfe=nz(e=>{if(/Color$/.test(e))return"color";if(/Scale?$/.test(e))return"scale";if(e==="spacing"||/(Padding|Spacing|Size|Width|Height|Radius|Indent|Start|End|Top|Bottom|Horizontal|Vertical)$/.test(e))return"length";if(/Border$/.test(e))return"border";if(/BorderStyle$/.test(e))return"borderStyle";if(/Shadow$/.test(e))return"shadow";if(/Image$/.test(e))return"image";if(/Family$/.test(e))return"fontFamily";if(/Weight$/.test(e))return"fontWeight";if(/Duration$/.test(e))return"duration";if(/ColorScheme$/.test(e))return"colorScheme";throw new Error(`"${e}" is not a valid theme parameter.`)});var Nfe=typeof window!="object"||!window||typeof document!="object"||window.document!==document;bo.__registerModules([nw,N8,iz,q8],!1,void 0);var hw=(()=>{let t=class t extends cw{setViewContainerRef(n,o){this.viewContainerRef
678=n,this.angularFrameworkOverrides=o}createWrapper(n){let o=this.angularFrameworkOverrides,r=this;class a extends Um{init(c){o.runInsideAngular(()=>{super.init(c),this._componentRef.changeDetectorRef.detectChanges()})}createComponent(){return o.runInsideAngular(()=>r.createComponent(n))}hasMethod(c){return s.getFrameworkComponentInstance()[c]!=null}callMethod(c,h){let m=this.getFrameworkComponentInstance();return o.runInsideAngular(()=>s.getFrameworkComponentInstance()[c].apply(m,h))}addMethod(c,h){s[c]=h}}let s=new a;return s}createComponent(n){return this.viewContainerRef.createComponent(n)}};t.\u0275fac=(()=>{let n;return function(r){return(n||(n=Tt(t)))(r||t)}})(),t.\u0275prov=ve({token:t,factory:t.\u0275fac});let e=t;return e})(),Um=class{init(t){this._params=t,this._componentRef=this.createComponent(),this._agAwareComponent=this._componentRef.instance,this._frameworkComponentInstance=this._componentRef.instance,this._eGui=this._componentRef.location.nativeElement,cn(this._eGui),this._agAwareComponent.agInit(this._params)}getGui(){return this._eGui}getRootElement(){return this._eGui.firstChild}destroy(){this._frameworkComponentInstance&&typeof this._frameworkComponentInstance.destroy=="function"&&this._frameworkComponentInstance.destroy(),this._componentRef&&this._componentRef.destroy()}getFrameworkComponentInstance(){return this._frameworkComponentInstance}},gw=(()=>{let t=class t extends Bm{constructor(n){super("angular"),this._ngZone=n,this.isRunningWithinTestZone=!1,this.wrapIncoming=(o,r)=>this.runOutside(o,r),this.wrapOutgoing=o=>this.runInsideAngular(o),this.isRunningWithinTestZone=window?.AG_GRID_UNDER_TEST??!!window?.Zone?.AsyncTestZoneSpec,this._ngZone?this.isRunningWithinTestZone?this.runOutside=(o,r)=>r==="resize-observer"||r==="popupPositioning"?this._ngZone.runOutsideAngular(o):o():this.runOutside=o=>this._ngZone.runOutsideAngular(o):this.runOutside=o=>o()}get shouldWrapOutgoing(){return this._ngZone&&Ea.isInAngularZone()}isFrameworkComponent(n){if(!n)return!1;let o=n.prototype;return o&&"agInit"in o}runInsideAngular(n){return this._ngZone?this._ngZone.run(n):n()}runOutsideAngular(n,o){return this.runOutside(n,o)}};t.\u0275fac=function(o){return new(o||t)(Y(Ea))},t.\u0275prov=ve({token:t,factory:t.\u0275fac});let e=t;return e})(),Lu=(()=>{let t=class t{constructor(n,o,r,a){this.viewContainerRef=o,this.angularFrameworkOverrides=r,this.frameworkComponentWrapper=a,this._initialised=!1,this._destroyed=!1,this._holdEvents=!0,this._fullyReady=new Promise(s=>{this._resolveFullyReady=s}),this.statusBar=void 0,this.sideBar=void 0,this.suppressContextMenu=void 0,this.preventDefaultOnContextMenu=void 0,this.allowContextMenuWithControlKey=void 0,this.columnMenu=void 0,this.suppressMenuHide=void 0,this.enableBrowserTooltips=void 0,this.tooltipTrigger=void 0,this.tooltipShowDelay=void 0,this.tooltipHideDelay=void 0,this.tooltipMouseTrack=void 0,this.tooltipShowMode=void 0,this.tooltipInteraction=void 0,this.popupParent=void 0,this.copyHeadersToClipboard=void 0,this.copyGroupHeadersToClipboard=void 0,this.clipboardDelimiter=void 0,this.suppressCopyRowsToClipboard=void 0,this.suppressCopySingleCellRanges=void 0,this.suppressLastEmptyLineOnPaste=void 0,this.suppressClipboardPaste=void 0,this.suppressClipboardApi=void 0,this.suppressCutToClipboard=void 0,this.columnDefs=void 0,this.defaultColDef=void 0,this.defaultColGroupDef=void 0,this.columnTypes=void 0,this.dataTypeDefinitions=void 0,this.maintainColumnOrder=void 0,this.enableStrictPivotColumnOrder=void 0,this.suppressFieldDotNotation=void 0,this.headerHeight=void 0,this.groupHeaderHeight=void 0,this.floatingFiltersHeight=void 0,this.pivotHeaderHeight=void 0,this.pivotGroupHeaderHeight=void 0,this.allowDragFromColumnsToolPanel=void 0,this.suppressMovableColumns=void 0,this.suppressColumnMoveAnimation=void 0,this.suppressMoveWhenColumnDragging=void 0,this.suppressDragLeaveHidesColumns=void 0,this.suppressRowGroupHidesColumns=void 0,this.colResizeDefault=void 0,this.suppressAutoSize=void 0,this.autoSizePadding=void 0,this.skipHeaderOnAutoSize=void 0,this.autoSizeStrategy=void 0,this.components=void 0,this.editType=void 0,this.singleClickEdit=void 0,this.suppressClickEdit=void 0,this.readOnlyEdit=void 0,this.stopEditingWhenCellsLoseFocus=void 0,this.enterNavigatesVertically=void 0,this.enterNavigatesVerticallyAfterEdit=void 0,this.enableCellEditingOnBackspace=void 0,this.undoRedoCellEditing=void 0,this.undoRedoCellEditingLimit=void 0,this.defaultCsvExportParams=void 0,this.suppressCsvExport=void 0,this.defaultExcelExportParams=void 0,this.suppressExcelExport=void 0,this.excelStyles=void 0,this.quickFilterText=void 0,this.cacheQuickFilter=void 0,this.includeHiddenColumnsInQuickFilter=void 0,this.quickFilterParser=void 0,this.quickFilterMatcher=void 0,this.applyQuickFilterBeforePivotOrAgg=void 0,this.excludeChildrenWhenTreeDataFiltering=void 0,this.enableAdvancedFilter=void 0,this.advancedFilterModel=void 0,this.includeHiddenColumnsInAdvancedFilter=void 0,this.advancedFilterParent=void 0,this.advancedFilterBuilderParams=void 0,this.suppressAdvancedFilterEval=void 0,this.suppressSetFilterByDefault=void 0,this.enableCharts=void 0,this.chartThemes=void 0,this.customChartThemes=void 0,this.chartThemeOverrides=void 0,this.chartToolPanelsDef=void 0,this.chartMenuItems=void 0,this.loadingCellRenderer=void 0,this.loadingCellRendererParams=void 0,this.loadingCellRendererSelector=void 0,this.localeText=void 0,this.masterDetail=void 0,this.keepDetailRows=void 0,this.keepDetailRowsCount=void 0,this.detailCellRenderer=void 0,this.detailCellRendererParams=void 0,this.detailRowHeight=void 0,this.detailRowAutoHeight=void 0,this.context=void 0,this.dragAndDropImageComponent=void 0,this.dragAndDropImageComponentParams=void 0,this.alignedGrids=void 0,this.tabIndex=void 0,this.rowBuffer=void 0,this.valueCache=void 0,this.valueCacheNeverExpires=void 0,this.enableCellExpressions=void 0,this.suppressTouch=void 0,this.suppressFocusAfterRefresh=void 0,this.suppressAsyncEvents=void 0,this.suppressBrowserResizeObserver=void 0,this.suppressPropertyNamesCheck=void 0,this.suppressChangeDetection=void 0,this.debug=void 0,this.loading=void 0,this.overlayLoadingTemplate=void 0,this.loadingOverlayComponent=void 0,this.loadingOverlayComponentParams=void 0,this.suppressLoadingOverlay=void 0,this.overlayNoRowsTemplate=void 0,this.noRowsOverlayComponent=void 0,this.noRowsOverlayComponentParams=void 0,this.suppressNoRowsOverlay=void 0,this.pagination=void 0,this.paginationPageSize=void 0,this.paginationPageSizeSelector=void 0,this.paginationAutoPageSize=void 0,this.paginateChildRows=void 0,this.suppressPaginationPanel=void 0,this.pivotMode=void 0,this.pivotPanelShow=void 0,this.pivotMaxGeneratedColumns=void 0,this.pivotDefaultExpanded=void 0,this.pivotColumnGroupTotals=void 0,this.pivotRowTotals=void 0,this.pivotSuppressAutoColumn=void 0,this.suppressExpandablePivotGroups=void 0,this.functionsReadOnly=void 0,this.aggFuncs=void 0,this.suppressAggFuncInHeader=void 0,this.alwaysAggregateAtRootLevel=void 0,this.aggregateOnlyChangedColumns=void 0,this.suppressAggFilteredOnly=void 0,this.removePivotHeaderRowWhenSingleValueColumn=void 0,this.animateRows=void 0,this.enableCellChangeFlash=void 0,this.cellFlashDuration=void 0,this.cellFlashDelay=void 0,this.cellFadeDuration=void 0,this.cellFadeDelay=void 0,this.allowShowChangeAfterFilter=void 0,this.domLayout=void 0,this.ensureDomOrder=void 0,this.enableRtl=void 0,this.suppressColumnVirtualisation=void 0,this.suppressMaxRenderedRowRestriction=void 0,this.suppressRowVirtualisation=void 0,this.rowDragManaged=void 0,this.suppressRowDrag=void 0,this.suppressMoveWhenRowDragging=void 0,this.rowDragEntireRow=void 0,this.rowDragMultiRow=void 0,this.rowDragText=void 0,this.fullWidthCellRenderer=void 0,this.fullWidthCellRendererParams=void 0,this.embedFullWidthRows=void 0,this.suppressGroupMaintainValueType=void 0,this.groupDisplayType=void 0,this.groupDefaultExpanded=void 0,this.autoGroupColumnDef=void 0,this.groupMaintainOrder=void 0,this.groupSelectsChildren=void 0,this.groupLockGroupColumns=void 0,this.groupAggFiltering=void 0,this.groupIncludeFooter=void 0,this.groupIncludeTotalFooter=void 0,this.groupTotalRow=void 0,this.grandTotalRow=void 0,this.suppressStickyTotalRow=void 0,this.groupSuppressBlankHeader=void 0,this.groupSelectsFiltered=void 0,this.showOpenedGroup=void 0,this.groupRemoveSingleChildren=void 0,this.groupRemoveLowestSingleChildren=void 0,this.groupHideOpenParents=void 0,this.groupAllowUnbalanced=void 0,this.rowGroupPanelShow=void 0,this.groupRowRenderer=void 0,this.groupRowRendererParams=void 0,this.suppressMakeColumnVisibleAfterUnGroup=void 0,this.treeData=void 0,this.rowGroupPanelSuppressSort=void 0,this.suppressGroupRowsSticky=void 0,this.pinnedTopRowData=void 0,this.pinnedBottomRowData=void 0,this.rowModelType=void 0,this.rowData=void 0,this.asyncTransactionWaitMillis=void 0,this.suppressModelUpdateAfterUpdateTransaction=void 0,this.datasource=void 0,this.cacheOverflowSize=void 0,this.infiniteInitialRowCount=void 0,this.serverSideInitialRowCount=void 0,this.suppressServerSideInfiniteScroll=void 0,this.suppressServerSideFullWidthLoadingRow=void 0,this.cacheBlockSize=void 0,this.maxBlocksInCache=void 0,this.maxConcurrentDatasourceRequests=void 0,this.blockLoadDebounceMillis=void 0,this.purgeClosedRowNodes=void 0,this.serverSideDatasource=void 0,this.serverSideSortAllLevels=void 0,this.serverSideEnableClientSideSort=void 0,this.serverSideOnlyRefreshFilteredGroups=void 0,this.serverSideSortOnServer=void 0,this.serverSideFilterOnServer=void 0,this.serverSidePivotResultFieldSeparator=void 0,this.viewportDatasource=void 0,this.viewportRowModelPageSize=void 0,this.viewportRowModelBufferSize=void 0,this.alwaysShowHorizontalScroll=void 0,this.alwaysShowVerticalScroll=void 0,this.debounceVerticalScrollbar=void 0,this.suppressHorizontalScroll=void 0,this.suppressScrollOnNewData=void 0,this.suppressScrollWhenPopupsAreOpen=void 0,this.suppressAnimationFrame=void 0,this.suppressMiddleClickScrolls=void 0,this.suppressPreventDefaultOnMouseWheel=void 0,this.scrollbarWidth=void 0,this.rowSelection=void 0,this.cellSelection=void 0,this.rowMultiSelectWithClick=void 0,this.suppressRowDeselection=void 0,this.suppressRowClickSelection=void 0,this.suppressCellFocus=void 0,this.suppressHeaderFocus=void 0,this.selectionColumnDef=void 0,this.suppressMultiRangeSelection=void 0,this.enableCellTextSelection=void 0,this.enableRangeSelection=void 0,this.enableRangeHandle=void 0,this.enableFillHandle=void 0,this.fillHandleDirection=void 0,this.suppressClearOnFillReduction=void 0,this.sortingOrder=void 0,this.accentedSort=void 0,this.unSortIcon=void 0,this.suppressMultiSort=void 0,this.alwaysMultiSort=void 0,this.multiSortKey=void 0,this.suppressMaintainUnsortedOrder=void 0,this.icons=void 0,this.rowHeight=void 0,this.rowStyle=void 0,this.rowClass=void 0,this.rowClassRules=void 0,this.suppressRowHoverHighlight=void 0,this.suppressRowTransform=void 0,this.columnHoverHighlight=void 0,this.gridId=void 0,this.deltaSort=void 0,this.treeDataDisplayType=void 0,this.enableGroupEdit=void 0,this.initialState=void 0,this.theme=void 0,this.loadThemeGoogleFonts=void 0,this.getContextMenuItems=void 0,this.getMainMenuItems=void 0,this.postProcessPopup=void 0,this.processUnpinnedColumns=void 0,this.processCellForClipboard=void 0,this.processHeaderForClipboard=void 0,this.processGroupHeaderForClipboard=void 0,this.processCellFromClipboard=void 0,this.sendToClipboard=void 0,this.processDataFromClipboard=void 0,this.isExternalFilterPresent=void 0,this.doesExternalFilterPass=void 0,this.getChartToolbarItems=void 0,this.createChartContainer=void 0,this.focusGridInnerElement=void 0,this.navigateToNextHeader=void 0,this.tabToNextHeader=void 0,this.navigateToNextCell=void 0,this.tabToNextCell=void 0,this.getLocaleText=void 0,this.getDocument=void 0,this.paginationNumberFormatter=void 0,this.getGroupRowAgg
678=void 0,this.isGroupOpenByDefault=void 0,this.initialGroupOrderComparator=void 0,this.processPivotResultColDef=void 0,this.processPivotResultColGroupDef=void 0,this.getDataPath=void 0,this.getChildCount=void 0,this.getServerSideGroupLevelParams=void 0,this.isServerSideGroupOpenByDefault=void 0,this.isApplyServerSideTransaction=void 0,this.isServerSideGroup=void 0,this.getServerSideGroupKey=void 0,this.getBusinessKeyForNode=void 0,this.getRowId=void 0,this.resetRowDataOnUpdate=void 0,this.processRowPostCreate=void 0,this.isRowSelectable=void 0,this.isRowMaster=void 0,this.fillOperation=void 0,this.postSortRows=void 0,this.getRowStyle=void 0,this.getRowClass=void 0,this.getRowHeight=void 0,this.isFullWidthRow=void 0,this.toolPanelVisibleChanged=new L,this.toolPanelSizeChanged=new L,this.columnMenuVisibleChanged=new L,this.contextMenuVisibleChanged=new L,this.cutStart=new L,this.cutEnd=new L,this.pasteStart=new L,this.pasteEnd=new L,this.columnVisible=new L,this.columnPinned=new L,this.columnResized=new L,this.columnMoved=new L,this.columnValueChanged=new L,this.columnPivotModeChanged=new L,this.columnPivotChanged=new L,this.columnGroupOpened=new L,this.newColumnsLoaded=new L,this.gridColumnsChanged=new L,this.displayedColumnsChanged=new L,this.virtualColumnsChanged=new L,this.columnEverythingChanged=new L,this.columnHeaderMouseOver=new L,this.columnHeaderMouseLeave=new L,this.columnHeaderClicked=new L,this.columnHeaderContextMenu=new L,this.componentStateChanged=new L,this.cellValueChanged=new L,this.cellEditRequest=new L,this.rowValueChanged=new L,this.cellEditingStarted=new L,this.cellEditingStopped=new L,this.rowEditingStarted=new L,this.rowEditingStopped=new L,this.undoStarted=new L,this.undoEnded=new L,this.redoStarted=new L,this.redoEnded=new L,this.cellSelectionDeleteStart=new L,this.cellSelectionDeleteEnd=new L,this.rangeDeleteStart=new L,this.rangeDeleteEnd=new L,this.fillStart=new L,this.fillEnd=new L,this.filterOpened=new L,this.filterChanged=new L,this.filterModified=new L,this.advancedFilterBuilderVisibleChanged=new L,this.chartCreated=new L,this.chartRangeSelectionChanged=new L,this.chartOptionsChanged=new L,this.chartDestroyed=new L,this.cellKeyDown=new L,this.gridReady=new L,this.firstDataRendered=new L,this.gridSizeChanged=new L,this.modelUpdated=new L,this.virtualRowRemoved=new L,this.viewportChanged=new L,this.bodyScroll=new L,this.bodyScrollEnd=new L,this.dragStarted=new L,this.dragStopped=new L,this.dragCancelled=new L,this.stateUpdated=new L,this.paginationChanged=new L,this.rowDragEnter=new L,this.rowDragMove=new L,this.rowDragLeave=new L,this.rowDragEnd=new L,this.rowDragCancel=new L,this.columnRowGroupChanged=new L,this.rowGroupOpened=new L,this.expandOrCollapseAll=new L,this.pivotMaxColumnsExceeded=new L,this.pinnedRowDataChanged=new L,this.rowDataUpdated=new L,this.asyncTransactionsFlushed=new L,this.storeRefreshed=new L,this.headerFocused=new L,this.cellClicked=new L,this.cellDoubleClicked=new L,this.cellFocused=new L,this.cellMouseOver=new L,this.cellMouseOut=new L,this.cellMouseDown=new L,this.rowClicked=new L,this.rowDoubleClicked=new L,this.rowSelected=new L,this.selectionChanged=new L,this.cellContextMenu=new L,this.rangeSelectionChanged=new L,this.cellSelectionChanged=new L,this.tooltipShow=new L,this.tooltipHide=new L,this.sortChanged=new L,this._nativeElement=n.nativeElement,this._fullyReady.then(()=>{this._holdEvents=!1})}ngAfterViewInit(){this.angularFrameworkOverrides.runOutsideAngular(()=>{this.frameworkComponentWrapper.setViewContainerRef(this.viewContainerRef,this.angularFrameworkOverrides);let n=N_(this.gridOptions,this);this.gridParams={globalEventListener:this.globalEventListener.bind(this),frameworkOverrides:this.angularFrameworkOverrides,providedBeanInstances:{frameworkComponentWrapper:this.frameworkComponentWrapper},modules:this.modules||[]};let o=sw(this._nativeElement,n,this.gridParams);o&&(this.api=o),this._initialised=!0,this._resolveFullyReady()})}ngOnChanges(n){this._initialised&&this.angularFrameworkOverrides.runOutsideAngular(()=>{let o={};Object.entries(n).forEach(([r,a])=>{o[r]=a.currentValue}),z_(o,this.api)})}ngOnDestroy(){this._initialised&&(this._destroyed=!0,this.api?.destroy())}isEmitterUsed(n){let r=this[n],a=r?.observed??r?.observers?.length>0,s=`on${n.charAt(0).toUpperCase()}${n.substring(1)}`,l=!!this.gridOptions&&!!this.gridOptions[s];return a||l}globalEventListener(n,o){if(this._destroyed)return;let r=this[n];if(r&&this.isEmitterUsed(n)){let a=()=>this.angularFrameworkOverrides.runInsideAngular(()=>r.emit(o));this._holdEvents?this._fullyReady.then(()=>a()):a()}}};t.\u0275fac=function(o){return new(o||t)(O($t),O(Ma),O(gw),O(hw))},t.\u0275cmp=U({type:t,selectors:[["ag-grid-angular"]],inputs:{gridOptions:"gridOptions",modules:"modules",statusBar:"statusBar",sideBar:"sideBar",suppressContextMenu:"suppressContextMenu",preventDefaultOnContextMenu:"preventDefaultOnContextMenu",allowContextMenuWithControlKey:"allowContextMenuWithControlKey",columnMenu:"columnMenu",suppressMenuHide:"suppressMenuHide",enableBrowserTooltips:"enableBrowserTooltips",tooltipTrigger:"tooltipTrigger",tooltipShowDelay:"tooltipShowDelay",tooltipHideDelay:"tooltipHideDelay",tooltipMouseTrack:"tooltipMouseTrack",tooltipShowMode:"tooltipShowMode",tooltipInteraction:"tooltipInteraction",popupParent:"popupParent",copyHeadersToClipboard:"copyHeadersToClipboard",copyGroupHeadersToClipboard:"copyGroupHeadersToClipboard",clipboardDelimiter:"clipboardDelimiter",suppressCopyRowsToClipboard:"suppressCopyRowsToClipboard",suppressCopySingleCellRanges:"suppressCopySingleCellRanges",suppressLastEmptyLineOnPaste:"suppressLastEmptyLineOnPaste",suppressClipboardPaste:"suppressClipboardPaste",suppressClipboardApi:"suppressClipboardApi",suppressCutToClipboard:"suppressCutToClipboard",columnDefs:"c
678olumnDefs",defaultColDef:"defaultColDef",defaultColGroupDef:"defaultColGroupDef",columnTypes:"columnTypes",dataTypeDefinitions:"dataTypeDefinitions",maintainColumnOrder:"maintainColumnOrder",enableStrictPivotColumnOrder:"enableStrictPivotColumnOrder",suppressFieldDotNotation:"suppressFieldDotNotation",headerHeight:"headerHeight",groupHeaderHeight:"groupHeaderHeight",floatingFiltersHeight:"floatingFiltersHeight",pivotHeaderHeight:"pivotHeaderHeight",pivotGroupHeaderHeight:"pivotGroupHeaderHeight",allowDragFromColumnsToolPanel:"allowDragFromColumnsToolPanel",suppressMovableColumns:"suppressMovableColumns",suppressColumnMoveAnimation:"suppressColumnMoveAnimation",suppressMoveWhenColumnDragging:"suppressMoveWhenColumnDragging",suppressDragLeaveHidesColumns:"suppressDragLeaveHidesColumns",suppressRowGroupHidesColumns:"suppressRowGroupHidesColumns",colResizeDefault:"colResizeDefault",suppressAutoSize:"suppressAutoSize",autoSizePadding:"autoSizePadding",skipHeaderOnAutoSize:"skipHeaderOnAutoSize",autoSizeStrategy:"autoSizeStrategy",components:"components",editType:"editType",singleClickEdit:"singleClickEdit",suppressClickEdit:"suppressClickEdit",readOnlyEdit:"readOnlyEdit",stopEditingWhenCellsLoseFocus:"stopEditingWhenCellsLoseFocus",enterNavigatesVertically:"enterNavigatesVertically",enterNavigatesVerticallyAfterEdit:"enterNavigatesVerticallyAfterEdit",enableCellEditingOnBackspace:"enableCellEditingOnBackspace",undoRedoCellEditing:"undoRedoCellEditing",undoRedoCellEditingLimit:"undoRedoCellEditingLimit",defaultCsvExportParams:"defaultCsvExportParams",suppressCsvExport:"suppressCsvExport",defaultExcelExportParams:"defaultExcelExportParams",suppressExcelExport:"suppressExcelExport",excelStyles:"excelStyles",quickFilterText:"quickFilterText",cacheQuickFilter:"cacheQuickFilter",includeHiddenColumnsInQuickFilter:"includeHiddenColumnsInQuickFilter",quickFilterParser:"quickFilterParser",quickFilterMatcher:"quickFilterMatcher",applyQuickFilterBeforePivotOrAgg:"applyQuickFilterBeforePivotOrAgg",excludeChildrenWhenTreeDataFiltering:"excludeChildrenWhenTreeDataFiltering",enableAdvancedFilter:"enableAdvancedFilter",advancedFilterModel:"advancedFilterModel",includeHiddenColumnsInAdvancedFilter:"includeHiddenColumnsInAdvancedFilter",advancedFilterParent:"advancedFilterParent",advancedFilterBuilderParams:"advancedFilterBuilderParams",suppressAdvancedFilterEval:"suppressAdvancedFilterEval",suppressSetFilterByDefault:"suppressSetFilterByDefault",enableCharts:"enableCharts",chartThemes:"chartThemes",customChartThemes:"customChartThemes",chartThemeOverrides:"chartThemeOverrides",chartToolPanelsDef:"chartToolPanelsDef",chartMenuItems:"chartMenuItems",loadingCellRenderer:"loadingCellRenderer",loadingCellRendererParams:"loadingCellRendererParams",loadingCellRendererSelector:"loadingCellRendererSelector",localeText:"localeText",masterDetail:"masterDetail",keepDetailRows:"keepDetailRows",keepDetailRowsCount:"keepDetailRowsCount",detailCellRenderer:"detailCellRenderer",detailCellRendererParams:"detailCellRendererParams",detailRowHeight:"detailRowHeight",detailRowAutoHeight:"detailRowAutoHeight",context:"context",dragAndDropImageComponent:"dragAndDropImageComponent",dragAndDropImageComponentParams:"dragAndDropImageComponentParams",alignedGrids:"alignedGrids",tabIndex:"tabIndex",rowBuffer:"rowBuffer",valueCache:"valueCache",valueCacheNeverExpires:"valueCacheNeverExpires",enableCellExpressions:"enableCellExpressions",suppressTouch:"suppressTouch",suppressFocusAfterRefresh:"suppressFocusAfterRefresh",suppressAsyncEvents:"suppressAsyncEvents",suppressBrowserResizeObserver:"suppressBrowserResizeObserver",suppressPropertyNamesCheck:"suppressPropertyNamesCheck",suppressChangeDetection:"suppressChangeDetection",debug:"debug",loading:"loading",overlayLoadingTemplate:"overlayLoadingTemplate",loadingOverlayComponent:"loadingOverlayComponent",loadingOverlayComponentParams:"loadingOverlayComponentParams",suppressLoadingOverlay:"suppressLoadingOverlay",overlayNoRowsTemplate:"overlayNoRowsTemplate",noRowsOverlayComponent:"noRowsOverlayComponent",noRowsOverlayComponentParams:"noRowsOverlayComponentParams",suppressNoRowsOverlay:"suppressNoRowsOverlay",pagination:"pagination",paginationPageSize:"paginationPageSize",paginationPageSizeSelector:"paginationPageSizeSelector",paginationAutoPageSize:"paginationAutoPageSize",paginateChildRows:"paginateChildRows",suppressPaginationPanel:"suppressPaginationPanel",pivotMode:"pivotMode",pivotPanelShow:"pivotPanelShow",pivotMaxGeneratedColumns:"pivotMaxGeneratedColumns",pivotDefaultExpanded:"pivotDefaultExpanded",pivotColumnGroupTotals:"pivotColumnGroupTotals",pivotRowTotals:"pivotRowTotals",pivotSuppressAutoColumn:"pivotSuppressAutoColumn",suppressExpandablePivotGroups:"suppressExpandablePivotGroups",functionsReadOnly:"functionsReadOnly",aggFuncs:"aggFuncs",suppressAggFuncInHeader:"suppressAggFuncInHeader",alwaysAggregateAtRootLevel:"alwaysAggregateAtRootLevel",aggregateOnlyChangedColumns:"aggregateOnlyChangedColumns",suppressAggFilteredOnly:"suppressAggFilteredOnly",removePivotHeaderRowWhenSingleValueColumn:"removePivotHeaderRowWhenSingleValueColumn",animateRows:"animateRows",enableCellChangeFlash:"enableCellChangeFlash",cellFlashDuration:"cellFlashDuration",cellFlashDelay:"cellFlashDelay",cellFadeDuration:"cellFadeDuration",cellFadeDelay:"cellFadeDelay",allowShowChangeAfterFilter:"allowShowChangeAfterFilter",domLayout:"domLayout",ensureDomOrder:"ensureDomOrder",enableRtl:"enableRtl",suppressColumnVirtualisation:"suppressColumnVirtualisation",suppressMaxRenderedRowRestriction:"suppressMaxRenderedRowRestriction",suppressRowVirtualisation:"suppressRowVirtualisation",rowDragManaged:"rowDragManaged",suppressRowDrag:"suppressRowDrag",suppressMoveWhenRowDragging:"suppressMoveWhenRowDragging",rowDragEntireRow:"rowDragEntireRow",rowDragMultiRow:"rowDragMultiRow",rowDragText:"rowDragText",fullWidthCellRenderer:"fullWidthCellRenderer",fullWidthCellRendererParams:"fullWidthCellRendererParams",embedFullWidthRows:"embedFullWidthRows",suppressGroupMaintainValueType:"suppressGroupMaintainValueType",groupDisplayType:"groupDisplayType",groupDefaultExpanded:"groupDefaultExpanded",autoGroupColumnDef:"autoGroupColumnDef",groupMaintainOrder:"groupMaintainOrder",groupSelectsChildren:"groupSelectsChildren",groupLockGroupColumns:"groupLockGroupColumns",groupAggFiltering:"groupAggFiltering",groupIncludeFooter:"groupIncludeFooter",groupIncludeTotalFooter:"groupIncludeTotalFooter",groupTotalRow:"groupTotalRow",grandTotalRow:"grandTotalRow",suppressStickyTotalRow:"suppressStickyTotalRow",groupSuppressBlankHeader:"groupSuppressBlankHeader",groupSelectsFiltered:"groupSelectsFiltered",showOpenedGroup:"showOpenedGroup",groupRemoveSingleChildren:"groupRemoveSingleChildren",groupRemoveLowestSingleChildren:"groupRemoveLowestSingleChildren",groupHideOpenParents:"groupHideOpenParents",groupAllowUnbalanced:"groupAllowUnbalanced",rowGroupPanelShow:"rowGroupPanelShow",groupRowRenderer:"groupRowRenderer",groupRowRendererParams:"groupRowRendererParams",suppressMakeColumnVisibleAfterUnGroup:"suppressMakeColumnVisibleAfterUnGroup",treeData:"treeData",rowGroupPanelSuppressSort:"rowGroupPanelSuppressSort",suppressGroupRowsSticky:"suppressGroupRowsSticky",pinnedTopRowData:"pinnedTopRowData",pinnedBottomRowData:"pinnedBottomRowData",rowModelType:"rowModelType",rowData:"rowData",asyncTransactionWaitMillis:"asyncTransactionWaitMillis",suppressModelUpdateAfterUpdateTransaction:"suppressModelUpdateAfterUpdateTransaction",datasource:"datasource",cac
678heOverflowSize:"cacheOverflowSize",infiniteInitialRowCount:"infiniteInitialRowCount",serverSideInitialRowCount:"serverSideInitialRowCount",suppressServerSideInfiniteScroll:"suppressServerSideInfiniteScroll",suppressServerSideFullWidthLoadingRow:"suppressServerSideFullWidthLoadingRow",cacheBlockSize:"cacheBlockSize",maxBlocksInCache:"maxBlocksInCache",maxConcurrentDatasourceRequests:"maxConcurrentDatasourceRequests",blockLoadDebounceMillis:"blockLoadDebounceMillis",purgeClosedRowNodes:"purgeClosedRowNodes",serverSideDatasource:"serverSideDatasource",serverSideSortAllLevels:"serverSideSortAllLevels",serverSideEnableClientSideSort:"serverSideEnableClientSideSort",serverSideOnlyRefreshFilteredGroups:"serverSideOnlyRefreshFilteredGroups",serverSideSortOnServer:"serverSideSortOnServer",serverSideFilterOnServer:"serverSideFilterOnServer",serverSidePivotResultFieldSeparator:"serverSidePivotResultFieldSeparator",viewportDatasource:"viewportDatasource",viewportRowModelPageSize:"viewportRowModelPageSize",viewportRowModelBufferSize:"viewportRowModelBufferSize",alwaysShowHorizontalScroll:"alwaysShowHorizontalScroll",alwaysShowVerticalScroll:"alwaysShowVerticalScroll",debounceVerticalScrollbar:"debounceVerticalScrollbar",suppressHorizontalScroll:"suppressHorizontalScroll",suppressScrollOnNewData:"suppressScrollOnNewData",suppressScrollWhenPopupsAreOpen:"suppressScrollWhenPopupsAreOpen",suppressAnimationFrame:"suppressAnimationFrame",suppressMiddleClickScrolls:"suppressMiddleClickScrolls",suppressPreventDefaultOnMouseWheel:"suppressPreventDefaultOnMouseWheel",scrollbarWidth:"scrollbarWidth",rowSelection:"rowSelection",cellSelection:"cellSelection",rowMultiSelectWithClick:"rowMultiSelectWithClick",suppressRowDeselection:"suppressRowDeselection",suppressRowClickSelection:"suppressRowClickSelection",suppressCellFocus:"suppressCellFocus",suppressHeaderFocus:"suppressHeaderFocus",selectionColumnDef:"selectionColumnDef",suppressMultiRangeSelection:"suppressMultiRangeSelection",enableCellTextSelection:"enableCellTextSelection",enableRangeSelection:"enableRangeSelection",enableRangeHandle:"enableRangeHandle",enableFillHandle:"enableFillHandle",fillHandleDirection:"fillHandleDirection",suppressClearOnFillReduction:"suppressClearOnFillReduction",sortingOrder:"sortingOrder",accentedSort:"accentedSort",unSortIcon:"unSortIcon",suppressMultiSort:"suppressMultiSort",alwaysMultiSort:"alwaysMultiSort",multiSortKey:"multiSortKey",suppressMaintainUnsortedOrder:"suppressMaintainUnsortedOrder",icons:"icons",rowHeight:"rowHeight",rowStyle:"rowStyle",rowClass:"rowClass",rowClassRules:"rowClassRules",suppressRowHoverHighlight:"suppressRowHoverHighlight",suppressRowTransform:"suppressRowTransform",columnHoverHighlight:"columnHoverHighlight",gridId:"gridId",deltaSort:"deltaSort",treeDataDisplayType:"treeDataDisplayType",enableGroupEdit:"enableGroupEdit",initialState:"initialState",theme:"theme",loadThemeGoogleFonts:"loadThemeGoogleFonts",getContextMenuItems:"getContextMenuItems",getMainMenuItems:"getMainMenuItems",postProcessPopup:"postProcessPopup",processUnpinnedColumns:"processUnpinnedColumns",processCellForClipboard:"processCellForClipboard",processHeaderForClipboard:"processHeaderForClipboard",processGroupHeaderForClipboard:"processGroupHeaderForClipboard",processCellFromClipboard:"processCellFromClipboard",sendToClipboard:"sendToClipboard",processDataFromClipboard:"processDataFromClipboard",isExternalFilterPresent:"isExternalFilterPresent",doesExternalFilterPass:"doesExternalFilterPass",getChartToolbarItems:"getChartToolbarItems",createChartContainer:"createChartContainer",focusGridInnerElement:"focusGridInnerElement",navigateToNextHeader:"navigateToNextHeader",tabToNextHeader:"tabToNextHeader",navigateToNextCell:"navigateToNextCell",tabToNextCell:"tabToNextCell",getLocaleText:"getLocaleText",getDocument:"getDocument",paginationNumberFormatter:"paginationNumberFormatter",getGroupRowAgg:"getGroupRowAgg",isGroupOpenByDefault:"isGroupOpenByDefault",initialGroupOrderComparator:"initialGroupOrderComparator",processPivotResultColDef:"processPivotResultColDef",processPivotResultColGroupDef:"processPivotResultColGroupDef",getDataPath:"getDataPath",getChildCount:"getChildCount",getServerSideGroupLevelParams:"getServerSideGroupLevelParams",isServerSideGroupOpenByDefault:"isServerSideGroupOpenByDefault",isApplyServerSideTransaction:"isApplyServerSideTransaction",isServerSideGroup:"isServerSideGroup",getServerSideGroupKey:"getServerSideGroupKey",getBusinessKeyForNode:"getBusinessKeyForNode",getRowId:"getRowId",resetRowDataOnUpdate:"resetRowDataOnUpdate",processRowPostCreate:"processRowPostCreate",isRowSelectable:"isRowSelectable",isRowMaster:"isRowMaster",fillOperation:"fillOperation",postSortRows:"postSortRows",getRowStyle:"getRowStyle",getRowClass:"getRowClass",getRowHeight:"getRowHeight",isFullWidthRow:"isFullWidthRow"},outputs:{toolPanelVisibleChanged:"toolPanelVisibleChanged",toolPanelSizeChanged:"toolPanelSizeChanged",columnMenuVisibleChanged:"columnMenuVisibleChanged",contextMenuVisibleChanged:"contextMenuVisibleChanged",cutStart:"cutStart",cutEnd:"cutEnd",pasteStart:"pasteStart",pasteEnd:"pasteEnd",columnVisible:"columnVisible",columnPinned:"columnPinned",columnResized:"columnResized",columnMoved:"columnMoved",columnValueChanged:"columnValueChanged",columnPivotModeChanged:"columnPivotModeChanged",columnPivotChanged:"columnPivotChanged",columnGroupOpened:"columnGroupOpened",newColumnsLoaded:"newColumnsLoaded",gridColumnsChanged:"gridColumnsChanged",displayedColumnsChanged:"displayedColumnsChanged",virtualColumnsChanged:"virtualColumnsChanged",columnEverythingChanged:"columnEverythingChanged",columnHeaderMouseOver:"columnHeaderMouseOver",columnHeaderMouseLeave:"columnHeaderMouseLeave",columnHeaderClicked:"columnHeaderClicked",columnHeaderContextMenu:"columnHeaderContextMenu",componentStateChanged:"componentStateChanged",cellValueChanged:"cellV
678alueChanged",cellEditRequest:"cellEditRequest",rowValueChanged:"rowValueChanged",cellEditingStarted:"cellEditingStarted",cellEditingStopped:"cellEditingStopped",rowEditingStarted:"rowEditingStarted",rowEditingStopped:"rowEditingStopped",undoStarted:"undoStarted",undoEnded:"undoEnded",redoStarted:"redoStarted",redoEnded:"redoEnded",cellSelectionDeleteStart:"cellSelectionDeleteStart",cellSelectionDeleteEnd:"cellSelectionDeleteEnd",rangeDeleteStart:"rangeDeleteStart",rangeDeleteEnd:"rangeDeleteEnd",fillStart:"fillStart",fillEnd:"fillEnd",filterOpened:"filterOpened",filterChanged:"filterChanged",filterModified:"filterModified",advancedFilterBuilderVisibleChanged:"advancedFilterBuilderVisibleChanged",chartCreated:"chartCreated",chartRangeSelectionChanged:"chartRangeSelectionChanged",chartOptionsChanged:"chartOptionsChanged",chartDestroyed:"chartDestroyed",cellKeyDown:"cellKeyDown",gridReady:"gridReady",firstDataRendered:"firstDataRendered",gridSizeChanged:"gridSizeChanged",modelUpdated:"modelUpdated",virtualRowRemoved:"virtualRowRemoved",viewportChanged:"viewportChanged",bodyScroll:"bodyScroll",bodyScrollEnd:"bodyScrollEnd",dragStarted:"dragStarted",dragStopped:"dragStopped",dragCancelled:"dragCancelled",stateUpdated:"stateUpdated",paginationChanged:"paginationChanged",rowDragEnter:"rowDragEnter",rowDragMove:"rowDragMove",rowDragLeave:"rowDragLeave",rowDragEnd:"rowDragEnd",rowDragCancel:"rowDragCancel",columnRowGroupChanged:"columnRowGroupChanged",rowGroupOpened:"rowGroupOpened",expandOrCollapseAll:"expandOrCollapseAll",pivotMaxColumnsExceeded:"pivotMaxColumnsExceeded",pinnedRowDataChanged:"pinnedRowDataChanged",rowDataUpdated:"rowDataUpdated",asyncTransactionsFlushed:"asyncTransactionsFlushed",storeRefreshed:"storeRefreshed",headerFocused:"headerFocused",cellClicked:"cellClicked",cellDoubleClicked:"cellDoubleClicked",cellFocused:"cellFocused",cellMouseOver:"cellMouseOver",cellMouseOut:"cellMouseOut",cellMouseDown:"cellMouseDown",rowClicked:"rowClicked",rowDoubleClicked:"rowDoubleClicked",rowSelected:"rowSelected",selectionChanged:"selectionChanged",cellContextMenu:"cellContextMenu",rangeSelectionChanged:"rangeSelectionChanged",cellSelectionChanged:"cellSelectionChanged",tooltipShow:"tooltipShow",tooltipHide:"tooltipHide",sortChanged:"sortChanged"},features:[St([gw,hw]),Ye],decls:0,vars:0,template:function(o,r){},encapsulation:2});let e=t;return e})(),mw=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({});let e=t;return e})();var fw=e=>typeof e>"u"||e===null,rz=e=>e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`),az=e=>{let t={};return Object.keys(e).forEach(i=>{e[i]&&(t[i]=e[i])}),t},Nu=e=>{let t=az(e);return Object.entries(t).map(([i,n])=>`${rz(i)}:${n}`).join(";")},gs=class extends Error{constructor(t){super(t),this.name=this.constructor.name}},jm=()=>{let e=Date.now().toString(36),t=Math.random().toString(36).substring(2,7);return`${e}${t}`},vw=(e,t,i)=>Math.min(Math.max(e,t),i);function oi(e){this.content=e}oi.prototype={constructor:oi,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,i){var n=i&&i!=e?this.remove(i):this,o=n.find(e),r=n.content.slice();return o==-1?r.push(i||e,t):(r[o+1]=t,i&&(r[o]=i)),new oi(r)},remove:function(e){var t=this.find(e);if(t==-1)return this;var i=this.content.slice();return i.splice(t,2),new oi(i)},addToStart:function(e,t){return new oi([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var i=this.remove(e).content.slice();return i.push(e,t),new oi(i)},addBefore:function(e,t,i){var n=this.remove(t),o=n.content.slice(),r=n.find(e);return o.splice(r==-1?o.length:r,0,t,i),new oi(o)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=oi.from(e),e.size?new oi(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=oi.from(e),e.size?new oi(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=oi.from(e);for(var i=0;i<e.content.length;i+=2)t=t.remove(e.content[i]);return t},toObject:function(){var e={};return this.forEach(function(t,i){e[t]=i}),e},get size(){return this.content.length>>1}};oi.from=function(e){if(e instanceof oi)return e;var t=[];if(e)for(var i in e)t.push(i,e[i]);return new oi(t)};var Wm=oi;function Mw(e,t,i){for(let n=0;;n++){if(n==e.childCount||n==t.childCount)return e.childCount==t.childCount?null:i;let o=e.child(n),r=t.child(n);if(o==r){i+=o.nodeSize;continue}if(!o.sameMarkup(r))return i;if(o.isText&&o.text!=r.text){for(let a=0;o.text[a]==r.text[a];a++)i++;return i}if(o.content.size||r.content.size){let a=Mw(o.content,r.content,i+1);if(a!=null)return a}i+=o.nodeSize}}function Tw(e,t,i,n){for(let o=e.childCount,r=t.childCount;;){if(o==0||r==0)return o==r?null:{a:i,b:n};let a=e.child(--o),s=t.child(--r),l=a.nodeSize;if(a==s){i-=l,n-=l;continue}if(!a.sameMarkup(s))return{a:i,b:n};if(a.isText&&a.text!=s.text){let c=0,h=Math.min(a.text.length,s.text.length);for(;c<h&&a.text[a.text.length-c-1]==s.text[s.text.length-c-1];)c++,i--,n--;return{a:i,b:n}}if(a.content.size||s.content.size){let c=Tw(a.content,s.content,i-1,n-1);if(c)return c}i-=l,n-=l}}var oe=class e{constructor(t,i){if(this.content=t,this.size=i||0,i==null)for(let n=0;n<t.length;n++)this.size+=t[n].nodeSize}nodesBetween(t,i,n,o=0,r){for(let a=0,s=0;s<i;a++){let l=this.content[a],c=s+l.nodeSize;if(c>t&&n(l,o+s,r||null,a)!==!1&&l.content.size){let h=s+1;l.nodesBetween(Math.max(0,t-h),Math.min(l.content.size,i-h),n,o+h)}s=c}}descendants(t){this.nodesBetween(0,this.size,t)}
vendor: 4,167 bytes, line 678
678textBetween(t,i,n,o){let r="",a=!0;return this.nodesBetween(t,i,(s,l)=>{let c=s.isText?s.text.slice(Math.max(t,l)-l,i-l):s.isLeaf?o?typeof o=="function"?o(s):o:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&c||s.isTextblock)&&n&&(a?a=!1:r+=n),r+=c},0),r}append(t){if(!t.size)return this;if(!this.size)return t;let i=this.lastChild,n=t.firstChild,o=this.content.slice(),r=0;for(i.isText&&i.sameMarkup(n)&&(o[o.length-1]=i.withText(i.text+n.text),r=1);r<t.content.length;r++)o.push(t.content[r]);return new e(o,this.size+t.size)}cut(t,i=this.size){if(t==0&&i==this.size)return this;let n=[],o=0;if(i>t)for(let r=0,a=0;a<i;r++){let s=this.content[r],l=a+s.nodeSize;l>t&&((a<t||l>i)&&(s.isText?s=s.cut(Math.max(0,t-a),Math.min(s.text.length,i-a)):s=s.cut(Math.max(0,t-a-1),Math.min(s.content.size,i-a-1))),n.push(s),o+=s.nodeSize),a=l}return new e(n,o)}cutByIndex(t,i){return t==i?e.empty:t==0&&i==this.content.length?this:new e(this.content.slice(t,i))}replaceChild(t,i){let n=this.content[t];if(n==i)return this;let o=this.content.slice(),r=this.size+i.nodeSize-n.nodeSize;return o[t]=i,new e(o,r)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let i=0;i<this.content.length;i++)if(!this.content[i].eq(t.content[i]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(t){let i=this.content[t];if(!i)throw new RangeError("Index "+t+" out of range for "+this);return i}maybeChild(t){return this.content[t]||null}forEach(t){for(let i=0,n=0;i<this.content.length;i++){let o=this.content[i];t(o,n,i),n+=o.nodeSize}}findDiffStart(t,i=0){return Mw(this,t,i)}findDiffEnd(t,i=this.size,n=t.size){return Tw(this,t,i,n)}findIndex(t){if(t==0)return zu(0,t);if(t==this.size)return zu(this.content.length,t);if(t>this.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let i=0,n=0;;i++){let o=this.child(i),r=n+o.nodeSize;if(r>=t)return r==t?zu(i+1,r):zu(i,n);n=r}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,i){if(!i)return e.empty;if(!Array.isArray(i))throw new RangeError("Invalid input for Fragment.fromJSON");return new e(i.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let i,n=0;for(let o=0;o<t.length;o++){let r=t[o];n+=r.nodeSize,o&&r.isText&&t[o-1].sameMarkup(r)?(i||(i=t.slice(0,o)),i[i.length-1]=r.withText(i[i.length-1].text+r.text)):i&&i.push(r)}return new e(i||t,n)}static from(t){if(!t)return e.empty;if(t instanceof e)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new e([t],t.nodeSize);throw new RangeError("Can not convert "+t+" to a Fragment"+(t.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}};oe.empty=new oe([],0);var $m={index:0,offset:0};function zu(e,t){return $m.index=e,$m.offset=t,$m}function Vu(e,t){if(e===t)return!0;if(!(e&&typeof e=="object")||!(t&&typeof t=="object"))return!1;let i=Array.isArray(e);if(Array.isArray(t)!=i)return!1;if(i){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!Vu(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!Vu(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}var Ke=(()=>{class e{constructor(i,n){this.type=i,this.attrs=n}addToSet(i){let n,o=!1;for(let r=0;r<i.length;r++){let a=i[r];if(this.eq(a))return i;if(this.type.excludes(a.type))n||(n=i.slice(0,r));else{if(a.type.excludes(this.type))return i;!o&&a.type.rank>this.type.rank&&(n||(n=i.slice(0,r)),n.push(this),o=!0),n&&n.push(a)}}return n||(n=i.slice()),o||n.push(this),n}removeFromSet(i){for(let n=0;n<i.length;n++)if(this.eq(i[n]))return i.slice(0,n).concat(i.slice(n+1));return i}isInSet(i){for(let n=0;n<i.length;n++)if(this.eq(i[n]))return!0;return!1}eq(i){return this==i||this.type==i.type&&Vu(this.attrs,i.attrs)}
vendor: 6,395 bytes, line 678
678toJSON(){let i={type:this.type.name};for(let n in this.attrs){i.attrs=this.attrs;break}return i}static fromJSON(i,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let o=i.marks[n.type];if(!o)throw new RangeError(`There is no mark type ${n.type} in this schema`);let r=o.create(n.attrs);return o.checkAttrs(r.attrs),r}static sameSet(i,n){if(i==n)return!0;if(i.length!=n.length)return!1;for(let o=0;o<i.length;o++)if(!i[o].eq(n[o]))return!1;return!0}static setFrom(i){if(!i||Array.isArray(i)&&i.length==0)return e.none;if(i instanceof e)return[i];let n=i.slice();return n.sort((o,r)=>o.type.rank-r.type.rank),n}}return e.none=[],e})(),ea=class extends Error{},me=class e{constructor(t,i,n){this.content=t,this.openStart=i,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,i){let n=Dw(this.content,t+this.openStart,i);return n&&new e(n,this.openStart,this.openEnd)}removeBetween(t,i){return new e(Iw(this.content,t+this.openStart,i+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,i){if(!i)return e.empty;let n=i.openStart||0,o=i.openEnd||0;if(typeof n!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new e(oe.fromJSON(t,i.content),n,o)}static maxOpen(t,i=!0){let n=0,o=0;for(let r=t.firstChild;r&&!r.isLeaf&&(i||!r.type.spec.isolating);r=r.firstChild)n++;for(let r=t.lastChild;r&&!r.isLeaf&&(i||!r.type.spec.isolating);r=r.lastChild)o++;return new e(t,n,o)}};me.empty=new me(oe.empty,0,0);function Iw(e,t,i){let{index:n,offset:o}=e.findIndex(t),r=e.maybeChild(n),{index:a,offset:s}=e.findIndex(i);if(o==t||r.isText){if(s!=i&&!e.child(a).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(i))}if(n!=a)throw new RangeError("Removing non-flat range");return e.replaceChild(n,r.copy(Iw(r.content,t-o-1,i-o-1)))}function Dw(e,t,i,n){let{index:o,offset:r}=e.findIndex(t),a=e.maybeChild(o);if(r==t||a.isText)return n&&!n.canReplace(o,o,i)?null:e.cut(0,t).append(i).append(e.cut(t));let s=Dw(a.content,t-r-1,i,a);return s&&e.replaceChild(o,a.copy(s))}function sz(e,t,i){if(i.openStart>e.depth)throw new ea("Inserted content deeper than insertion position");if(e.depth-i.openStart!=t.depth-i.openEnd)throw new ea("Inconsistent open depths");return Pw(e,t,i,0)}function Pw(e,t,i,n){let o=e.index(n),r=e.node(n);if(o==t.index(n)&&n<e.depth-i.openStart){let a=Pw(e,t,i,n+1);return r.copy(r.content.replaceChild(o,a))}else if(i.content.size)if(!i.openStart&&!i.openEnd&&e.depth==n&&t.depth==n){let a=e.parent,s=a.content;return Xr(a,s.cut(0,e.parentOffset).append(i.content).append(s.cut(t.parentOffset)))}else{let{start:a,end:s}=lz(i,e);return Xr(r,Fw(e,a,s,t,n))}else return Xr(r,Hu(e,t,n))}function Rw(e,t){if(!t.type.compatibleContent(e.type))throw new ea("Cannot join "+t.type.name+" onto "+e.type.name)}function Ym(e,t,i){let n=e.node(i);return Rw(n,t.node(i)),n}function Zr(e,t){let i=t.length-1;i>=0&&e.isText&&e.sameMarkup(t[i])?t[i]=e.withText(t[i].text+e.text):t.push(e)}function Yl(e,t,i,n){let o=(t||e).node(i),r=0,a=t?t.index(i):o.childCount;e&&(r=e.index(i),e.depth>i?r++:e.textOffset&&(Zr(e.nodeAfter,n),r++));for(let s=r;s<a;s++)Zr(o.child(s),n);t&&t.depth==i&&t.textOffset&&Zr(t.nodeBefore,n)}function Xr(e,t){return e.type.checkContent(t),e.copy(t)}function Fw(e,t,i,n,o){let r=e.depth>o&&Ym(e,t,o+1),a=n.depth>o&&Ym(i,n,o+1),s=[];return Yl(null,e,o,s),r&&a&&t.index(o)==i.index(o)?(Rw(r,a),Zr(Xr(r,Fw(e,t,i,n,o+1)),s)):(r&&Zr(Xr(r,Hu(e,t,o+1)),s),Yl(t,i,o,s),a&&Zr(Xr(a,Hu(i,n,o+1)),s)),Yl(n,null,o,s),new oe(s)}function Hu(e,t,i){let n=[];if(Yl(null,e,i,n),e.depth>i){let o=Ym(e,t,i+1);Zr(Xr(o,Hu(e,t,i+1)),n)}return Yl(t,null,i,n),new oe(n)}function lz(e,t){let i=t.depth-e.openStart,o=t.node(i).copy(e.content);for(let r=i-1;r>=0;r--)o=t.node(r).copy(oe.from(o));return{start:o.resolveNoCache(e.openStart+i),end:o.resolveNoCache(o.content.size-e.openEnd-i)}}var Gu=class e{constructor(t,i,n){this.pos=t,this.path=i,this.parentOffset=n,this.depth=i.length/3-1}resolveDepth(t){return t==null?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[this.resolveDepth(t)*3]}index(t){return this.path[this.resolveDepth(t)*3+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)}start(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,i=this.index(this.depth);if(i==t.childCount)return null;let n=this.pos-this.path[this.path.length-1],o=t.child(i);return n?t.child(i).cut(n):o}get nodeBefore(){let t=this.index(this.depth),i=this.pos-this.path[this.path.length-1];return i?this.parent.child(t).cut(0,i):t==0?null:this.parent.child(t-1)}posAtIndex(t,i){i=this.resolveDepth(i);let n=this.path[i*3],o=i==0?0:this.path[i*3-1]+1;for(let r=0;r<t;r++)o+=n.child(r).nodeSize;return o}marks(){let t=this.parent,i=this.index();if(t.content.size==0)return Ke.none;if(this.textOffset)return t.child(i).marks;let n=t.maybeChild(i-1),o=t.maybeChild(i);if(!n){let s=n;n=o,o=s}let r=n.marks;for(var a=0;a<r.length;a++)r[a].type.spec.inclusive===!1&&(!o||!r[a].isInSet(o.marks))&&(r=r[a--].removeFromSet(r));return r}marksAcross(t){let i=this.parent.maybeChild(this.index());if(!i||!i.isInline)return null;let n=i.marks,o=t.parent.maybeChild(t.index());for(var r=0;r<n.length;r++)n[r].type.spec.inclusive===!1&&(!o||!n[r].isInSet(o.marks))&&(n=n[r--].removeFromSet(n));return n}sharedDepth(t){for(let i=this.depth;i>0;i--)if(this.start(i)<=t&&this.end(i)>=t)return i;return 0}
vendor: 8,277 bytes, line 678
678blockRange(t=this,i){if(t.pos<this.pos)return t.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==t.pos?1:0);n>=0;n--)if(t.pos<=this.end(n)&&(!i||i(this.node(n))))return new ta(this,t,n);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos<this.pos?t:this}toString(){let t="";for(let i=1;i<=this.depth;i++)t+=(t?"/":"")+this.node(i).type.name+"_"+this.index(i-1);return t+":"+this.parentOffset}static resolve(t,i){if(!(i>=0&&i<=t.content.size))throw new RangeError("Position "+i+" out of range");let n=[],o=0,r=i;for(let a=t;;){let{index:s,offset:l}=a.content.findIndex(r),c=r-l;if(n.push(a,s,o+l),!c||(a=a.child(s),a.isText))break;r=c-1,o+=l+1}return new e(i,n,r)}static resolveCached(t,i){let n=Cw.get(t);if(n)for(let r=0;r<n.elts.length;r++){let a=n.elts[r];if(a.pos==i)return a}else Cw.set(t,n=new Km);let o=n.elts[n.i]=e.resolve(t,i);return n.i=(n.i+1)%cz,o}},Km=class{constructor(){this.elts=[],this.i=0}},cz=12,Cw=new WeakMap,ta=class{constructor(t,i,n){this.$from=t,this.$to=i,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}},dz=Object.create(null),jn=class e{constructor(t,i,n,o=Ke.none){this.type=t,this.attrs=i,this.marks=o,this.content=n||oe.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(t){return this.content.child(t)}maybeChild(t){return this.content.maybeChild(t)}forEach(t){this.content.forEach(t)}nodesBetween(t,i,n,o=0){this.content.nodesBetween(t,i,n,o,this)}descendants(t){this.nodesBetween(0,this.content.size,t)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(t,i,n,o){return this.content.textBetween(t,i,n,o)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(t){return this==t||this.sameMarkup(t)&&this.content.eq(t.content)}sameMarkup(t){return this.hasMarkup(t.type,t.attrs,t.marks)}hasMarkup(t,i,n){return this.type==t&&Vu(this.attrs,i||t.defaultAttrs||dz)&&Ke.sameSet(this.marks,n||Ke.none)}copy(t=null){return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}cut(t,i=this.content.size){return t==0&&i==this.content.size?this:this.copy(this.content.cut(t,i))}slice(t,i=this.content.size,n=!1){if(t==i)return me.empty;let o=this.resolve(t),r=this.resolve(i),a=n?0:o.sharedDepth(i),s=o.start(a),c=o.node(a).content.cut(o.pos-s,r.pos-s);return new me(c,o.depth-a,r.depth-a)}replace(t,i,n){return sz(this.resolve(t),this.resolve(i),n)}nodeAt(t){for(let i=this;;){let{index:n,offset:o}=i.content.findIndex(t);if(i=i.maybeChild(n),!i)return null;if(o==t||i.isText)return i;t-=o+1}}childAfter(t){let{index:i,offset:n}=this.content.findIndex(t);return{node:this.content.maybeChild(i),index:i,offset:n}}childBefore(t){if(t==0)return{node:null,index:0,offset:0};let{index:i,offset:n}=this.content.findIndex(t);if(n<t)return{node:this.content.child(i),index:i,offset:n};let o=this.content.child(i-1);return{node:o,index:i-1,offset:n-o.nodeSize}}resolve(t){return Gu.resolveCached(this,t)}resolveNoCache(t){return Gu.resolve(this,t)}rangeHasMark(t,i,n){let o=!1;return i>t&&this.nodesBetween(t,i,r=>(n.isInSet(r.marks)&&(o=!0),!o)),o}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),Ow(this.marks,t)}contentMatchAt(t){let i=this.type.contentMatch.matchFragment(this.content,0,t);if(!i)throw new Error("Called contentMatchAt on a node with invalid content");return i}canReplace(t,i,n=oe.empty,o=0,r=n.childCount){let a=this.contentMatchAt(t).matchFragment(n,o,r),s=a&&a.matchFragment(this.content,i);if(!s||!s.validEnd)return!1;for(let l=o;l<r;l++)if(!this.type.allowsMarks(n.child(l).marks))return!1;return!0}canReplaceWith(t,i,n,o){if(o&&!this.type.allowsMarks(o))return!1;let r=this.contentMatchAt(t).matchType(n),a=r&&r.matchFragment(this.content,i);return a?a.validEnd:!1}canAppend(t){return t.content.size?this.canReplace(this.childCount,this.childCount,t.content):this.type.compatibleContent(t.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let t=Ke.none;for(let i=0;i<this.marks.length;i++){let n=this.marks[i];n.type.checkAttrs(n.attrs),t=n.addToSet(t)}if(!Ke.sameSet(t,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(i=>i.type.name)}`);this.content.forEach(i=>i.check())}toJSON(){let t={type:this.type.name};for(let i in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(i=>i.toJSON())),t}static fromJSON(t,i){if(!i)throw new RangeError("Invalid input for Node.fromJSON");let n;if(i.marks){if(!Array.isArray(i.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=i.marks.map(t.markFromJSON)}if(i.type=="text"){if(typeof i.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(i.text,n)}let o=oe.fromJSON(t,i.content),r=t.nodeType(i.type).create(i.attrs,o,n);return r.type.checkAttrs(r.attrs),r}};jn.prototype.text=void 0;var Qm=class e extends jn{constructor(t,i,n,o){if(super(t,i,null,o),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Ow(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,i){return this.text.slice(t,i)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(t=0,i=this.text.length){return t==0&&i==this.text.length?this:this.withText(this.text.slice(t,i))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}};function Ow(e,t){for(let i=e.length-1;i>=0;i--)t=e[i].type.name+"("+t+")";return t}var ia=class e{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,i){let n=new Jm(t,i);if(n.next==null)return e.empty;let o=Aw(n);n.next&&n.err("Unexpected trailing text");let r=vz(fz(o));return Cz(r,n),r}matchType(t){for(let i=0;i<this.next.length;i++)if(this.next[i].type==t)return this.next[i].next;return null}matchFragment(t,i=0,n=t.childCount){let o=this;for(let r=i;o&&r<n;r++)o=o.matchType(t.child(r).type);return o}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let t=0;t<this.next.length;t++){let{type:i}=this.next[t];if(!(i.isText||i.hasRequiredAttrs()))return i}return null}compatible(t){for(let i=0;i<this.next.length;i++)for(let n=0;n<t.next.length;n++)if(this.next[i].type==t.next[n].type)return!0;return!1}fillBefore(t,i=!1,n=0){let o=[this];function r(a,s){let l=a.matchFragment(t,n);if(l&&(!i||l.validEnd))return oe.from(s.map(c=>c.createAndFill()));for(let c=0;c<a.next.length;c++){let{type:h,next:m}=a.next[c];if(!(h.isText||h.hasRequiredAttrs())&&o.indexOf(m)==-1){o.push(m);let f=r(m,s.concat(h));if(f)return f}}return null}return r(this,[])}findWrapping(t){for(let n=0;n<this.wrapCache.length;n+=2)if(this.wrapCache[n]==t)return this.wrapCache[n+1];let i=this.computeWrapping(t);return this.wrapCache.push(t,i),i}computeWrapping(t){let i=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let o=n.shift(),r=o.match;if(r.matchType(t)){let a=[];for(let s=o;s.type;s=s.via)a.push(s.type);return a.reverse()}for(let a=0;a<r.next.length;a++){let{type:s,next:l}=r.next[a];
vendor: 7,654 bytes, lines 678-679
678!s.isLeaf&&!s.hasRequiredAttrs()&&!(s.name in i)&&(!o.type||l.validEnd)&&(n.push({match:s.contentMatch,type:s,via:o}),i[s.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(t){if(t>=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function i(n){t.push(n);for(let o=0;o<n.next.length;o++)t.indexOf(n.next[o].next)==-1&&i(n.next[o].next)}return i(this),t.map((n,o)=>{let r=o+(n.validEnd?"*":" ")+" ";for(let a=0;a<n.next.length;a++)r+=(a?", ":"")+n.next[a].type.name+"->"+t.indexOf(n.next[a].next);return r}).join(` 679`)}};ia.empty=new ia(!0);var Jm=class{constructor(t,i){this.string=t,this.nodeTypes=i,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}};function Aw(e){let t=[];do t.push(uz(e));while(e.eat("|"));return t.length==1?t[0]:{type:"choice",exprs:t}}function uz(e){let t=[];do t.push(pz(e));while(e.next&&e.next!=")"&&e.next!="|");return t.length==1?t[0]:{type:"seq",exprs:t}}function pz(e){let t=mz(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=hz(e,t);else break;return t}function bw(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function hz(e,t){let i=bw(e),n=i;return e.eat(",")&&(e.next!="}"?n=bw(e):n=-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:i,max:n,expr:t}}function gz(e,t){let i=e.nodeTypes,n=i[t];if(n)return[n];let o=[];for(let r in i){let a=i[r];a.isInGroup(t)&&o.push(a)}return o.length==0&&e.err("No node type or group '"+t+"' found"),o}function mz(e){if(e.eat("(")){let t=Aw(e);return e.eat(")")||e.err("Missing closing paren"),t}else if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=gz(e,e.next).map(i=>(e.inline==null?e.inline=i.isInline:e.inline!=i.isInline&&e.err("Mixing inline and block content"),{type:"name",value:i}));return e.pos++,t.length==1?t[0]:{type:"choice",exprs:t}}}function fz(e){let t=[[]];return o(r(e,0),i()),t;function i(){return t.push([])-1}function n(a,s,l){let c={term:l,to:s};return t[a].push(c),c}function o(a,s){a.forEach(l=>l.to=s)}function r(a,s){if(a.type=="choice")return a.exprs.reduce((l,c)=>l.concat(r(c,s)),[]);if(a.type=="seq")for(let l=0;;l++){let c=r(a.exprs[l],s);if(l==a.exprs.length-1)return c;o(c,s=i())}else if(a.type=="star"){let l=i();return n(s,l),o(r(a.expr,l),l),[n(l)]}else if(a.type=="plus"){let l=i();return o(r(a.expr,s),l),o(r(a.expr,l),l),[n(l)]}else{if(a.type=="opt")return[n(s)].concat(r(a.expr,s));if(a.type=="range"){let l=s;for(let c=0;c<a.min;c++){let h=i();o(r(a.expr,l),h),l=h}if(a.max==-1)o(r(a.expr,l),l);else for(let c=a.min;c<a.max;c++){let h=i();n(l,h),o(r(a.expr,l),h),l=h}return[n(l)]}else{if(a.type=="name")return[n(s,void 0,a.value)];throw new Error("Unknown expr type")}}}}function Lw(e,t){return t-e}function _w(e,t){let i=[];return n(t),i.sort(Lw);function n(o){let r=e[o];if(r.length==1&&!r[0].term)return n(r[0].to);i.push(o);for(let a=0;a<r.length;a++){let{term:s,to:l}=r[a];!s&&i.indexOf(l)==-1&&n(l)}}}function vz(e){let t=Object.create(null);return i(_w(e,0));function i(n){let o=[];n.forEach(a=>{e[a].forEach(({term:s,to:l})=>{if(!s)return;let c;for(let h=0;h<o.length;h++)o[h][0]==s&&(c=o[h][1]);_w(e,l).forEach(h=>{c||o.push([s,c=[]]),c.indexOf(h)==-1&&c.push(h)})})});let r=t[n.join(",")]=new ia(n.indexOf(e.length-1)>-1);for(let a=0;a<o.length;a++){let s=o[a][1].sort(Lw);r.next.push({type:o[a][0],next:t[s.join(",")]||i(s)})}return r}}function Cz(e,t){for(let i=0,n=[e];i<n.length;i++){let o=n[i],r=!o.validEnd,a=[];for(let s=0;s<o.next.length;s++){let{type:l,next:c}=o.next[s];a.push(l.name),r&&!(l.isText||l.hasRequiredAttrs())&&(r=!1),n.indexOf(c)==-1&&n.push(c)}r&&t.err("Only non-generatable nodes ("+a.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function Nw(e){let t=Object.create(null);for(let i in e){let n=e[i];if(!n.hasDefault)return null;t[i]=n.default}return t}function zw(e,t){let i=Object.create(null);for(let n in e){let o=t&&t[n];if(o===void 0){let r=e[n];if(r.hasDefault)o=r.default;else throw new RangeError("No value supplied for attribute "+n)}i[n]=o}return i}function Bw(e,t,i,n){for(let o in t)if(!(o in e))throw new RangeError(`Unsupported attribute ${o} for ${i} of type ${o}`);for(let o in e){let r=e[o];r.validate&&r.validate(t[o])}}function Vw(e,t){let i=Object.create(null);if(t)for(let n in t)i[n]=new Zm(e,n,t[n]);return i}var Uu=class e{constructor(t,i,n){this.name=t,this.schema=i,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=Vw(t,n.attrs),this.defaultAttrs=Nw(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||t=="text"),this.isText=t=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==ia.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(t){return this.groups.indexOf(t)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let t in this.attrs)if(this.attrs[t].isRequired)return!0;return!1}compatibleContent(t){return this==t||this.contentMatch.compatible(t.contentMatch)}computeAttrs(t){return!t&&this.defaultAttrs?this.defaultAttrs:zw(this.attrs,t)}create(t=null,i,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new jn(this,this.computeAttrs(t),oe.from(i),Ke.setFrom(n))}createChecked(t=null,i,n){return i=oe.from(i),this.checkContent(i),new jn(this,this.computeAttrs(t),i,Ke.setFrom(n))}createAndFill(t=null,i,n){if(t=this.computeAttrs(t),i=oe.from(i),i.size){let a=this.contentMatch.fillBefore(i);if(!a)return null;i=a.append(i)}let o=this.contentMatch.matchFragment(i),r=o&&o.fillBefore(oe.empty,!0);return r?new jn(this,t,i.append(r),Ke.setFrom(n)):null}validContent(t){let i=this.contentMatch.matchFragment(t);if(!i||!i.validEnd)return!1;for(let n=0;n<t.childCount;n++)if(!this.allowsMarks(t.child(n).marks))return!1;return!0}checkContent(t){if(!this.validContent(t))throw new RangeError(`Invalid content for node ${this.name}: ${t.toString().slice(0,50)}`)}checkAttrs(t){Bw(this.attrs,t,"node",this.name)}allowsMarkType(t){return this.markSet==null||this.markSet.indexOf(t)>-1}allowsMarks(t){if(this.markSet==null)return!0;for(let i=0;i<t.length;i++)if(!this.allowsMarkType(t[i].type))return!1;return!0}allowedMarks(t){if(this.markSet==null)return t;let i;for(let n=0;n<t.length;n++)this.allowsMarkType(t[n].type)?i&&i.push(t[n]):i||(i=t.slice(0,n));return i?i.length?i:Ke.none:t}static compile(t,i){let n=Object.create(null);t.forEach((r,a)=>n[r]=new e(r,i,a));let o=i.spec.topNode||"doc";if(!n[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let r in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}};function bz(e,t,i){let n=i.split("|");return o=>{let r=o===null?"null":typeof o;if(n.indexOf(r)<0)throw new RangeError(`Expected value of type ${n} for attribute ${t} on type ${e}, got ${r}`)}}var Zm=class{constructor(t,i,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,"default"),this.default=n.default,this.validate=typeof n.validate=="string"?bz(t,
vendor: 9,102 bytes, lines 679-681
679i,n.validate):n.validate}get isRequired(){return!this.hasDefault}},Ql=class e{constructor(t,i,n,o){this.name=t,this.rank=i,this.schema=n,this.spec=o,this.attrs=Vw(t,o.attrs),this.excluded=null;let r=Nw(this.attrs);this.instance=r?new Ke(this,r):null}create(t=null){return!t&&this.instance?this.instance:new Ke(this,zw(this.attrs,t))}static compile(t,i){let n=Object.create(null),o=0;return t.forEach((r,a)=>n[r]=new e(r,o++,i,a)),n}removeFromSet(t){for(var i=0;i<t.length;i++)t[i].type==this&&(t=t.slice(0,i).concat(t.slice(i+1)),i--);return t}isInSet(t){for(let i=0;i<t.length;i++)if(t[i].type==this)return t[i]}checkAttrs(t){Bw(this.attrs,t,"mark",this.name)}excludes(t){return this.excluded.indexOf(t)>-1}},ju=class{constructor(t){this.linebreakReplacement=null,this.cached=Object.create(null);let i=this.spec={};for(let o in t)i[o]=t[o];i.nodes=Wm.from(t.nodes),i.marks=Wm.from(t.marks||{}),this.nodes=Uu.compile(this.spec.nodes,this),this.marks=Ql.compile(this.spec.marks,this);let n=Object.create(null);for(let o in this.nodes){if(o in this.marks)throw new RangeError(o+" can not be both a node and a mark");let r=this.nodes[o],a=r.spec.content||"",s=r.spec.marks;if(r.contentMatch=n[a]||(n[a]=ia.parse(a,this.nodes)),r.inlineContent=r.contentMatch.inlineContent,r.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!r.isInline||!r.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=r}r.markSet=s=="_"?null:s?yw(this,s.split(" ")):s==""||!r.inlineContent?[]:null}for(let o in this.marks){let r=this.marks[o],a=r.spec.excludes;r.excluded=a==null?[r]:a==""?[]:yw(this,a.split(" "))}this.nodeFromJSON=o=>jn.fromJSON(this,o),this.markFromJSON=o=>Ke.fromJSON(this,o),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,i=null,n,o){if(typeof t=="string")t=this.nodeType(t);else if(t instanceof Uu){if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}else throw new RangeError("Invalid node type: "+t);return t.createChecked(i,n,o)}text(t,i){let n=this.nodes.text;return new Qm(n,n.defaultAttrs,t,Ke.setFrom(i))}mark(t,i){return typeof t=="string"&&(t=this.marks[t]),t.create(i)}nodeType(t){let i=this.nodes[t];if(!i)throw new RangeError("Unknown node type: "+t);return i}};function yw(e,t){let i=[];for(let n=0;n<t.length;n++){let o=t[n],r=e.marks[o],a=r;if(r)i.push(r);else for(let s in e.marks){let l=e.marks[s];(o=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(o)>-1)&&i.push(a=l)}if(!a)throw new SyntaxError("Unknown mark type: '"+t[n]+"'")}return i}function _z(e){return e.tag!=null}function yz(e){return e.style!=null}var sr=class e{constructor(t,i){this.schema=t,this.rules=i,this.tags=[],this.styles=[];let n=this.matchedStyles=[];i.forEach(o=>{if(_z(o))this.tags.push(o);else if(yz(o)){let r=/[^=]*/.exec(o.style)[0];n.indexOf(r)<0&&n.push(r),this.styles.push(o)}}),this.normalizeLists=!this.tags.some(o=>{if(!/^(ul|ol)\b/.test(o.tag)||!o.node)return!1;let r=t.nodes[o.node];return r.contentMatch.matchType(r)})}parse(t,i={}){let n=new Wu(this,i,!1);return n.addAll(t,Ke.none,i.from,i.to),n.finish()}parseSlice(t,i={}){let n=new Wu(this,i,!0);return n.addAll(t,Ke.none,i.from,i.to),me.maxOpen(n.finish())}matchTag(t,i,n){for(let o=n?this.tags.indexOf(n)+1:0;o<this.tags.length;o++){let r=this.tags[o];if(Sz(t,r.tag)&&(r.namespace===void 0||t.namespaceURI==r.namespace)&&(!r.context||i.matchesContext(r.context))){if(r.getAttrs){let a=r.getAttrs(t);if(a===!1)continue;r.attrs=a||void 0}return r}}}matchStyle(t,i,n,o){for(let r=o?this.styles.indexOf(o)+1:0;r<this.styles.length;r++){let a=this.styles[r],s=a.style;if(!(s.indexOf(t)!=0||a.context&&!n.matchesContext(a.context)||s.length>t.length&&(s.charCodeAt(t.length)!=61||s.slice(t.length+1)!=i))){if(a.getAttrs){let l=a.getAttrs(i);if(l===!1)continue;a.attrs=l||void 0}return a}}}static schemaRules(t){let i=[];function n(o){let r=o.priority==null?50:o.priority,a=0;for(;a<i.length;a++){let s=i[a];if((s.priority==null?50:s.priority)<r)break}i.splice(a,0,o)}for(let o in t.marks){let r=t.marks[o].spec.parseDOM;r&&r.forEach(a=>{n(a=xw(a)),a.mark||a.ignore||a.clearMark||(a.mark=o)})}for(let o in t.nodes){let r=t.nodes[o].spec.parseDOM;r&&r.forEach(a=>{n(a=xw(a)),a.node||a.ignore||a.mark||(a.node=o)})}return i}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new e(t,e.schemaRules(t)))}},Hw={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},wz={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Gw={ol:!0,ul:!0},Jl=1,Xm=2,Kl=4;function ww(e,t,i){return t!=null?(t?Jl:0)|(t==="full"?Xm:0):e&&e.whitespace=="pre"?Jl|Xm:i&~Kl}var ms=class{constructor(t,i,n,o,r,a){this.type=t,this.attrs=i,this.marks=n,this.solid=o,this.options=a,this.content=[],this.activeMarks=Ke.none,this.match=r||(a&Kl?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let i=this.type.contentMatch.fillBefore(oe.from(t));if(i)this.match=this.type.contentMatch.matchFragment(i);else{let n=this.type.contentMatch,o;return(o=n.findWrapping(t.type))?(this.match=n,o):null}}return this.match.findWrapping(t.type)}finish(t){if(!(this.options&Jl)){let n=this.content[this.content.length-1],o;if(n&&n.isText&&(o=/[ \t\r\n\u000c]+$/.exec(n.text))){let r=n;n.text.length==o[0].length?this.content.pop():this.content[this.content.length-1]=r.withText(r.text.slice(0,r.text.length-o[0].length))}}let i=oe.from(this.content);return!t&&this.match&&(i=i.append(this.match.fillBefore(oe.empty,!0))),this.type?this.type.create(this.attrs,i,this.marks):i}inlineContext(t){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:t.parentNode&&!Hw.hasOwnProperty(t.parentNode.nodeName.toLowerCase())}},Wu=class{constructor(t,i,n){this.parser=t,this.options=i,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let o=i.topNode,r,a=ww(null,i.preserveWhitespace,0)|(n?Kl:0);o?r=new ms(o.type,o.attrs,Ke.none,!0,i.topMatch||o.type.contentMatch,a):n?r=new ms(null,null,Ke.none,!0,null,a):r=new ms(t.schema.topNodeType,null,Ke.none,!0,null,a),this.nodes=[r],this.find=i.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(t,i){t.nodeType==3?this.addTextNode(t,i):t.nodeType==1&&this.addElement(t,i)}addTextNode(t,i){let n=t.nodeValue,o=this.top,r=o.options&Xm?"full":this.localPreserveWS||(o.options&Jl)>0,{schema:a}=this.parser;if(r==="full"||o.inlineContext(t)||/[^ \t\r\n\u000c]/.test(n)){if(r)if(r==="full")n=n.replace(/\r\n?/g,` 680`);else if(a.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(a.linebreakReplacement.create())){let s=n.split(/\r?\n|\r/);for(let l=0;l<s.length;l++)l&&this.insertNode(a.linebreakReplacement.create(),i,!0),s[l]&&this.insertNode(a.text(s[l]),i,!/\S/.test(s[l]));n=""}else n=n.replace(/\r?\n|\r/g," ");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let s=o.content[o.content.length-1],l=t.previousSibling;(!s||l&&l.nodeName=="BR"||s.isText&&/[ \t\r\n\u000c]$/.test(s.text))&&(n=n.slice(1))}n&&this.insertNode(a.text(n),i,!/\S/.test(n)),this.findInText(t)}else this.findInside(t)}addElement(t,i,n){let o=this.localPreserveWS,r=this.top;(t.tagName=="PRE"||/pre/.test(t.style&&t.style.whiteSpace))&&(this.localPreserveWS=!0);let a=t.nodeName.toLowerCase(),s;Gw.hasOwnProperty(a)&&this.parser.normalizeLists&&xz(t);let l=this.options.ruleFromNode&&this.options.ruleFromNode(t)||(s=this.parser.matchTag(t,this,n));e:if(l?l.ignore:wz.hasOwnProperty(a))this.findInside(t),this.ignoreFallback(t,i);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(t=l.skip);let c,h=this.needsBlock;if(Hw.hasOwnProperty(a))r.content.length&&r.content[0].isInline&&this.open&&(this.open--,r=this.top),c=!0,r.type||(this.needsBlock=!0);else if(!t.firstChild){this.leafFallback(t,i);break e}let m=l&&l.skip?i:this.readStyles(t,i);m&&this.addAll(t,m),c&&this.sync(r),this.needsBlock=h}else{let c=this.readStyles(t,i);c&&this.addElementByRule(t,l,c,l.consuming===!1?s:void 0)}this.localPreserveWS=o}leafFallback(t,i){t.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode(` 681`),i)}ignoreFallback(t,i){t.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),i,!0)}readStyles(t,i){let n=t.style;if(n&&n.length)for(let o=0;o<this.parser.matchedStyles.length;o++){let r=this.parser.matchedStyles[o],a=n.getPropertyValue(r);if(a)for(let s=void 0;;){let l=this.parser.matchStyle(r,a,this,s);if(!l)break;if(l.ignore)return null;if(l.clearMark?i=i.filter(c=>!l.clearMark(c)):i=i.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)s=l;else break}}return i}addElementByRule(t,i,n,o){let r,a;
vendor: 4,119 bytes, line 681
681if(i.node)if(a=this.parser.schema.nodes[i.node],a.isLeaf)this.insertNode(a.create(i.attrs),n,t.nodeName=="BR")||this.leafFallback(t,n);else{let l=this.enter(a,i.attrs||null,n,i.preserveWhitespace);l&&(r=!0,n=l)}else{let l=this.parser.schema.marks[i.mark];n=n.concat(l.create(i.attrs))}let s=this.top;if(a&&a.isLeaf)this.findInside(t);else if(o)this.addElement(t,n,o);else if(i.getContent)this.findInside(t),i.getContent(t,this.parser.schema).forEach(l=>this.insertNode(l,n,!1));else{let l=t;typeof i.contentElement=="string"?l=t.querySelector(i.contentElement):typeof i.contentElement=="function"?l=i.contentElement(t):i.contentElement&&(l=i.contentElement),this.findAround(t,l,!0),this.addAll(l,n),this.findAround(t,l,!1)}r&&this.sync(s)&&this.open--}addAll(t,i,n,o){let r=n||0;for(let a=n?t.childNodes[n]:t.firstChild,s=o==null?null:t.childNodes[o];a!=s;a=a.nextSibling,++r)this.findAtPoint(t,r),this.addDOM(a,i);this.findAtPoint(t,r)}findPlace(t,i,n){let o,r;for(let a=this.open,s=0;a>=0;a--){let l=this.nodes[a],c=l.findWrapping(t);if(c&&(!o||o.length>c.length+s)&&(o=c,r=l,!c.length))break;if(l.solid){if(n)break;s+=2}}if(!o)return null;this.sync(r);for(let a=0;a<o.length;a++)i=this.enterInner(o[a],null,i,!1);return i}insertNode(t,i,n){if(t.isInline&&this.needsBlock&&!this.top.type){let r=this.textblockFromContext();r&&(i=this.enterInner(r,null,i))}let o=this.findPlace(t,i,n);if(o){this.closeExtra();let r=this.top;r.match&&(r.match=r.match.matchType(t.type));let a=Ke.none;for(let s of o.concat(t.marks))(r.type?r.type.allowsMarkType(s.type):Sw(s.type,t.type))&&(a=s.addToSet(a));return r.content.push(t.mark(a)),!0}return!1}enter(t,i,n,o){let r=this.findPlace(t.create(i),n,!1);return r&&(r=this.enterInner(t,i,n,!0,o)),r}enterInner(t,i,n,o=!1,r){this.closeExtra();let a=this.top;a.match=a.match&&a.match.matchType(t);let s=ww(t,r,a.options);a.options&Kl&&a.content.length==0&&(s|=Kl);let l=Ke.none;return n=n.filter(c=>(a.type?a.type.allowsMarkType(c.type):Sw(c.type,t))?(l=c.addToSet(l),!1):!0),this.nodes.push(new ms(t,i,l,o,null,s)),this.open++,n}closeExtra(t=!1){let i=this.nodes.length-1;if(i>this.open){for(;i>this.open;i--)this.nodes[i-1].content.push(this.nodes[i].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(t){for(let i=this.open;i>=0;i--){if(this.nodes[i]==t)return this.open=i,!0;this.localPreserveWS&&(this.nodes[i].options|=Jl)}return!1}get currentPos(){this.closeExtra();let t=0;for(let i=this.open;i>=0;i--){let n=this.nodes[i].content;for(let o=n.length-1;o>=0;o--)t+=n[o].nodeSize;i&&t++}return t}findAtPoint(t,i){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==t&&this.find[n].offset==i&&(this.find[n].pos=this.currentPos)}findInside(t){if(this.find)for(let i=0;i<this.find.length;i++)this.find[i].pos==null&&t.nodeType==1&&t.contains(this.find[i].node)&&(this.find[i].pos=this.currentPos)}findAround(t,i,n){if(t!=i&&this.find)for(let o=0;o<this.find.length;o++)this.find[o].pos==null&&t.nodeType==1&&t.contains(this.find[o].node)&&i.compareDocumentPosition(this.find[o].node)&(n?2:4)&&(this.find[o].pos=this.currentPos)}findInText(t){if(this.find)for(let i=0;i<this.find.length;i++)this.find[i].node==t&&(this.find[i].pos=this.currentPos-(t.nodeValue.length-this.find[i].offset))}matchesContext(t){if(t.indexOf("|")>-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let i=t.split("/"),n=this.options.context,o=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),r=-(n?n.depth+1:0)+(o?0:1),a=(s,l)=>{for(;s>=0;s--){let c=i[s];if(c==""){if(s==i.length-1||s==0)continue;for(;l>=r;l--)if(a(s-1,l))return!0;return!1}else{let h=l>0||l==0&&o?this.nodes[l].type:n&&l>=r?n.node(l-r).type:null;if(!h||h.name!=c&&!h.isInGroup(c))return!1;l--}}return!0};return a(i.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let i=t.depth;i>=0;i--){let n=t.node(i).contentMatchAt(t.indexAfter(i)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let i in this.parser.schema.nodes){let n=this.parser.schema.nodes[i];
vendor: 4,378 bytes, line 681
681if(n.isTextblock&&n.defaultAttrs)return n}}};function xz(e){for(let t=e.firstChild,i=null;t;t=t.nextSibling){let n=t.nodeType==1?t.nodeName.toLowerCase():null;n&&Gw.hasOwnProperty(n)&&i?(i.appendChild(t),t=i):n=="li"?i=t:n&&(i=null)}}function Sz(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function xw(e){let t={};for(let i in e)t[i]=e[i];return t}function Sw(e,t){let i=t.schema.nodes;for(let n in i){let o=i[n];if(!o.allowsMarkType(e))continue;let r=[],a=s=>{r.push(s);for(let l=0;l<s.edgeCount;l++){let{type:c,next:h}=s.edge(l);if(c==t||r.indexOf(h)<0&&a(h))return!0}};if(a(o.contentMatch))return!0}}var Mo=class e{constructor(t,i){this.nodes=t,this.marks=i}serializeFragment(t,i={},n){n||(n=qm(i).createDocumentFragment());let o=n,r=[];return t.forEach(a=>{if(r.length||a.marks.length){let s=0,l=0;for(;s<r.length&&l<a.marks.length;){let c=a.marks[l];if(!this.marks[c.type.name]){l++;continue}if(!c.eq(r[s][0])||c.type.spec.spanning===!1)break;s++,l++}for(;s<r.length;)o=r.pop()[1];for(;l<a.marks.length;){let c=a.marks[l++],h=this.serializeMark(c,a.isInline,i);h&&(r.push([c,o]),o.appendChild(h.dom),o=h.contentDOM||h.dom)}}o.appendChild(this.serializeNodeInner(a,i))}),n}serializeNodeInner(t,i){let{dom:n,contentDOM:o}=Bu(qm(i),this.nodes[t.type.name](t),null,t.attrs);if(o){if(t.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(t.content,i,o)}return n}serializeNode(t,i={}){let n=this.serializeNodeInner(t,i);for(let o=t.marks.length-1;o>=0;o--){let r=this.serializeMark(t.marks[o],t.isInline,i);r&&((r.contentDOM||r.dom).appendChild(n),n=r.dom)}return n}serializeMark(t,i,n={}){let o=this.marks[t.type.name];return o&&Bu(qm(n),o(t,i),null,t.attrs)}static renderSpec(t,i,n=null,o){return Bu(t,i,n,o)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new e(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let i=kw(t.nodes);return i.text||(i.text=n=>n.text),i}static marksFromSchema(t){return kw(t.marks)}};function kw(e){let t={};for(let i in e){let n=e[i].spec.toDOM;n&&(t[i]=n)}return t}function qm(e){return e.document||window.document}var Ew=new WeakMap;function kz(e){let t=Ew.get(e);return t===void 0&&Ew.set(e,t=Ez(e)),t}function Ez(e){let t=null;function i(n){if(n&&typeof n=="object")if(Array.isArray(n))if(typeof n[0]=="string")t||(t=[]),t.push(n);else for(let o=0;o<n.length;o++)i(n[o]);else for(let o in n)i(n[o])}return i(e),t}function Bu(e,t,i,n){if(typeof t=="string")return{dom:e.createTextNode(t)};if(t.nodeType!=null)return{dom:t};if(t.dom&&t.dom.nodeType!=null)return t;let o=t[0],r;if(typeof o!="string")throw new RangeError("Invalid array passed to renderSpec");if(n&&(r=kz(n))&&r.indexOf(t)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let a=o.indexOf(" ");a>0&&(i=o.slice(0,a),o=o.slice(a+1));let s,l=i?e.createElementNS(i,o):e.createElement(o),c=t[1],h=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){h=2;for(let m in c)if(c[m]!=null){let f=m.indexOf(" ");f>0?l.setAttributeNS(m.slice(0,f),m.slice(f+1),c[m]):m=="style"&&l.style?l.style.cssText=c[m]:l.setAttribute(m,c[m])}}for(let m=h;m<t.length;m++){let f=t[m];if(f===0){if(m<t.length-1||m>h)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:b,contentDOM:_}=Bu(e,f,i,n);if(l.appendChild(b),_){if(s)throw new RangeError("Multiple content holes");s=_}}}return{dom:l,contentDOM:s}}var Ww=65535,$w=Math.pow(2,16);function Mz(e,t){return e+t*$w}function Uw(e){return e&Ww}function Tz(e){return(e-(e&Ww))/$w}var qw=1,Yw=2,$u=4,Kw=8,ec=class{constructor(t,i,n){this.pos=t,this.delInfo=i,this.recover=n}get deleted(){return(this.delInfo&Kw)>0}get deletedBefore(){return(this.delInfo&(qw|$u))>0}get deletedAfter(){return(this.delInfo&(Yw|$u))>0}get deletedAcross(){return(this.delInfo&$u)>0}},To=class e{constructor(t,i=!1){if(this.ranges=t,this.inverted=i,!t.length&&e.empty)return e.empty}recover(t){let i=0,n=Uw(t);if(!this.inverted)for(let o=0;o<n;o++)i+=this.ranges[o*3+2]-this.ranges[o*3+1];return this.ranges[n*3]+i+Tz(t)}mapResult(t,i=1){return this._map(t,i,!1)}map(t,i=1){return this._map(t,i,!0)}_map(t,i,n){let o=0,r=this.inverted?2:1,a=this.inverted?1:2;
vendor: 4,394 bytes, line 681
681for(let s=0;s<this.ranges.length;s+=3){let l=this.ranges[s]-(this.inverted?o:0);if(l>t)break;let c=this.ranges[s+r],h=this.ranges[s+a],m=l+c;if(t<=m){let f=c?t==l?-1:t==m?1:i:i,b=l+o+(f<0?0:h);if(n)return b;let _=t==(i<0?l:m)?null:Mz(s/3,t-l),S=t==l?Yw:t==m?qw:$u;return(i<0?t!=l:t!=m)&&(S|=Kw),new ec(b,S,_)}o+=h-c}return n?t+o:new ec(t+o,0,null)}touches(t,i){let n=0,o=Uw(i),r=this.inverted?2:1,a=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let l=this.ranges[s]-(this.inverted?n:0);if(l>t)break;let c=this.ranges[s+r],h=l+c;if(t<=h&&s==o*3)return!0;n+=this.ranges[s+a]-c}return!1}forEach(t){let i=this.inverted?2:1,n=this.inverted?1:2;for(let o=0,r=0;o<this.ranges.length;o+=3){let a=this.ranges[o],s=a-(this.inverted?r:0),l=a+(this.inverted?0:r),c=this.ranges[o+i],h=this.ranges[o+n];t(s,s+c,l,l+h),r+=h-c}}invert(){return new e(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(t){return t==0?e.empty:new e(t<0?[0,-t,0]:[0,0,t])}};To.empty=new To([]);var tc=class e{constructor(t,i,n=0,o=t?t.length:0){this.mirror=i,this.from=n,this.to=o,this._maps=t||[],this.ownData=!(t||i)}get maps(){return this._maps}slice(t=0,i=this.maps.length){return new e(this._maps,this.mirror,t,i)}appendMap(t,i){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(t),i!=null&&this.setMirror(this._maps.length-1,i)}appendMapping(t){for(let i=0,n=this._maps.length;i<t._maps.length;i++){let o=t.getMirror(i);this.appendMap(t._maps[i],o!=null&&o<i?n+o:void 0)}}getMirror(t){if(this.mirror){for(let i=0;i<this.mirror.length;i++)if(this.mirror[i]==t)return this.mirror[i+(i%2?-1:1)]}}setMirror(t,i){this.mirror||(this.mirror=[]),this.mirror.push(t,i)}appendMappingInverted(t){for(let i=t.maps.length-1,n=this._maps.length+t._maps.length;i>=0;i--){let o=t.getMirror(i);this.appendMap(t._maps[i].invert(),o!=null&&o>i?n-o-1:void 0)}}invert(){let t=new e;return t.appendMappingInverted(this),t}map(t,i=1){if(this.mirror)return this._map(t,i,!0);for(let n=this.from;n<this.to;n++)t=this._maps[n].map(t,i);return t}mapResult(t,i=1){return this._map(t,i,!1)}_map(t,i,n){let o=0;for(let r=this.from;r<this.to;r++){let a=this._maps[r],s=a.mapResult(t,i);if(s.recover!=null){let l=this.getMirror(r);if(l!=null&&l>r&&l<this.to){r=l,t=this._maps[l].recover(s.recover);continue}}o|=s.delInfo,t=s.pos}return n?t:new ec(t,o,null)}},ef=Object.create(null),Ft=class{getMap(){return To.empty}merge(t){return null}static fromJSON(t,i){if(!i||!i.stepType)throw new RangeError("Invalid input for Step.fromJSON");let n=ef[i.stepType];if(!n)throw new RangeError(`No step type ${i.stepType} defined`);return n.fromJSON(t,i)}static jsonID(t,i){if(t in ef)throw new RangeError("Duplicate use of step JSON ID "+t);return ef[t]=i,i.prototype.jsonID=t,i}},Vt=class e{constructor(t,i){this.doc=t,this.failed=i}static ok(t){return new e(t,null)}static fail(t){return new e(null,t)}static fromReplace(t,i,n,o){try{return e.ok(t.replace(i,n,o))}catch(r){if(r instanceof ea)return e.fail(r.message);throw r}}};function af(e,t,i){let n=[];for(let o=0;o<e.childCount;o++){let r=e.child(o);r.content.size&&(r=r.copy(af(r.content,t,r))),r.isInline&&(r=t(r,i,o)),n.push(r)}return oe.fromArray(n)}var ic=class e extends Ft{constructor(t,i,n){super(),this.from=t,this.to=i,this.mark=n}apply(t){let i=t.slice(this.from,this.to),n=t.resolve(this.from),o=n.node(n.sharedDepth(this.to)),r=new me(af(i.content,(a,s)=>!a.isAtom||!s.type.allowsMarkType(this.mark.type)?a:a.mark(this.mark.addToSet(a.marks)),o),i.openStart,i.openEnd);return Vt.fromReplace(t,this.from,this.to,r)}invert(){return new na(this.from,this.to,this.mark)}map(t){let i=t.mapResult(this.from,1),n=t.mapResult(this.to,-1);return i.deleted&&n.deleted||i.pos>=n.pos?null:new e(i.pos,n.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,i){if(typeof i.from!="number"||typeof i.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new e(i.from,i.to,t.markFromJSON(i.mark))}};Ft.jsonID("addMark",ic);var na=class e extends Ft{constructor(t,i,n){super(),this.from=t,this.to=i,this.mark=n}
vendor: 8,422 bytes, line 681
681apply(t){let i=t.slice(this.from,this.to),n=new me(af(i.content,o=>o.mark(this.mark.removeFromSet(o.marks)),t),i.openStart,i.openEnd);return Vt.fromReplace(t,this.from,this.to,n)}invert(){return new ic(this.from,this.to,this.mark)}map(t){let i=t.mapResult(this.from,1),n=t.mapResult(this.to,-1);return i.deleted&&n.deleted||i.pos>=n.pos?null:new e(i.pos,n.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,i){if(typeof i.from!="number"||typeof i.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new e(i.from,i.to,t.markFromJSON(i.mark))}};Ft.jsonID("removeMark",na);var nc=class e extends Ft{constructor(t,i){super(),this.pos=t,this.mark=i}apply(t){let i=t.nodeAt(this.pos);if(!i)return Vt.fail("No node at mark step's position");let n=i.type.create(i.attrs,null,this.mark.addToSet(i.marks));return Vt.fromReplace(t,this.pos,this.pos+1,new me(oe.from(n),0,i.isLeaf?0:1))}invert(t){let i=t.nodeAt(this.pos);if(i){let n=this.mark.addToSet(i.marks);if(n.length==i.marks.length){for(let o=0;o<i.marks.length;o++)if(!i.marks[o].isInSet(n))return new e(this.pos,i.marks[o]);return new e(this.pos,this.mark)}}return new fs(this.pos,this.mark)}map(t){let i=t.mapResult(this.pos,1);return i.deletedAfter?null:new e(i.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,i){if(typeof i.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new e(i.pos,t.markFromJSON(i.mark))}};Ft.jsonID("addNodeMark",nc);var fs=class e extends Ft{constructor(t,i){super(),this.pos=t,this.mark=i}apply(t){let i=t.nodeAt(this.pos);if(!i)return Vt.fail("No node at mark step's position");let n=i.type.create(i.attrs,null,this.mark.removeFromSet(i.marks));return Vt.fromReplace(t,this.pos,this.pos+1,new me(oe.from(n),0,i.isLeaf?0:1))}invert(t){let i=t.nodeAt(this.pos);return!i||!this.mark.isInSet(i.marks)?this:new nc(this.pos,this.mark)}map(t){let i=t.mapResult(this.pos,1);return i.deletedAfter?null:new e(i.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,i){if(typeof i.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new e(i.pos,t.markFromJSON(i.mark))}};Ft.jsonID("removeNodeMark",fs);var Yi=class e extends Ft{constructor(t,i,n,o=!1){super(),this.from=t,this.to=i,this.slice=n,this.structure=o}apply(t){return this.structure&&of(t,this.from,this.to)?Vt.fail("Structure replace would overwrite content"):Vt.fromReplace(t,this.from,this.to,this.slice)}getMap(){return new To([this.from,this.to-this.from,this.slice.size])}invert(t){return new e(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let i=t.mapResult(this.from,1),n=t.mapResult(this.to,-1);return i.deletedAcross&&n.deletedAcross?null:new e(i.pos,Math.max(i.pos,n.pos),this.slice,this.structure)}merge(t){if(!(t instanceof e)||t.structure||this.structure)return null;if(this.from+this.slice.size==t.from&&!this.slice.openEnd&&!t.slice.openStart){let i=this.slice.size+t.slice.size==0?me.empty:new me(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new e(this.from,this.to+(t.to-t.from),i,this.structure)}else if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let i=this.slice.size+t.slice.size==0?me.empty:new me(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new e(t.from,this.to,i,this.structure)}else return null}toJSON(){let t={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,i){if(typeof i.from!="number"||typeof i.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new e(i.from,i.to,me.fromJSON(t,i.slice),!!i.structure)}};Ft.jsonID("replace",Yi);var Ot=class e extends Ft{constructor(t,i,n,o,r,a,s=!1){super(),this.from=t,this.to=i,this.gapFrom=n,this.gapTo=o,this.slice=r,this.insert=a,this.structure=s}apply(t){if(this.structure&&(of(t,this.from,this.gapFrom)||of(t,this.gapTo,this.to)))return Vt.fail("Structure gap-replace would overwrite content");let i=t.slice(this.gapFrom,this.gapTo);if(i.openStart||i.openEnd)return Vt.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,i.content);return n?Vt.fromReplace(t,this.from,this.to,n):Vt.fail("Content does not fit in gap")}getMap(){return new To([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let i=this.gapTo-this.gapFrom;return new e(this.from,this.from+this.slice.size+i,this.from+this.insert,this.from+this.insert+i,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let i=t.mapResult(this.from,1),n=t.mapResult(this.to,-1),o=this.from==this.gapFrom?i.pos:t.map(this.gapFrom,-1),r=this.to==this.gapTo?n.pos:t.map(this.gapTo,1);return i.deletedAcross&&n.deletedAcross||o<i.pos||r>n.pos?null:new e(i.pos,n.pos,o,r,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,i){if(typeof i.from!="number"||typeof i.to!="number"||typeof i.gapFrom!="number"||typeof i.gapTo!="number"||typeof i.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new e(i.from,i.to,i.gapFrom,i.gapTo,me.fromJSON(t,i.slice),i.insert,!!i.structure)}};Ft.jsonID("replaceAround",Ot);function of(e,t,i){let n=e.resolve(t),o=i-t,r=n.depth;for(;o>0&&r>0&&n.indexAfter(r)==n.node(r).childCount;)r--,o--;if(o>0){let a=n.node(r).maybeChild(n.indexAfter(r));for(;o>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,o--}}return!1}function Iz(e,t,i,n){let o=[],r=[],a,s;e.doc.nodesBetween(t,i,(l,c,h)=>{if(!l.isInline)return;let m=l.marks;if(!n.isInSet(m)&&h.type.allowsMarkType(n.type)){let f=Math.max(c,t),b=Math.min(c+l.nodeSize,i),_=n.addToSet(m);for(let S=0;S<m.length;S++)m[S].isInSet(_)||(a&&a.to==f&&a.mark.eq(m[S])?a.to=b:o.push(a=new na(f,b,m[S])));s&&s.to==f?s.to=b:r.push(s=new ic(f,b,n))}}),o.forEach(l=>e.step(l)),r.forEach(l=>e.step(l))}function Dz(e,t,i,n){let o=[],r=0;e.doc.nodesBetween(t,i,(a,s)=>{if(!a.isInline)return;r++;let l=null;if(n instanceof Ql){let c=a.marks,h;for(;h=n.isInSet(c);)(l||(l=[])).push(h),c=h.removeFromSet(c)}else n?n.isInSet(a.marks)&&(l=[n]):l=a.marks;if(l&&l.length){let c=Math.min(s+a.nodeSize,i);for(let h=0;h<l.length;h++){let m=l[h],f;for(let b=0;b<o.length;b++){let _=o[b];_.step==r-1&&m.eq(o[b].style)&&(f=_)}f?(f.to=c,f.step=r):o.push({style:m,from:Math.max(s,t),to:c,step:r})}}}),o.forEach(a=>e.step(new na(a.from,a.to,a.style)))}function sf(e,t,i,n=i.contentMatch,o=!0){let r=e.doc.nodeAt(t),a=[],s=t+1;for(let l=0;l<r.childCount;l++){let c=r.child(l),h=s+c.nodeSize,m=n.matchType(c.type);if(!m)a.push(new Yi(s,h,me.empty));else{n=m;for(let f=0;f<c.marks.length;f++)i.allowsMarkType(c.marks[f].type)||e.step(new na(s,h,c.marks[f]));if(o&&c.isText&&i.whitespace!="pre"){let f,b=/\r?\n|\r/g,_;for(;f=b.exec(c.text);)_||(_=new me(oe.from(i.schema.text(" ",i.allowedMarks(c.marks))),0,0)),a.push(new Yi(s+f.index,s+f.index+f[0].length,_))}}s=h}if(!n.validEnd){let l=n.fillBefore(oe.empty,!0);e.replace(s,s,new me(l,0,0))}for(let l=a.length-1;l>=0;l--)e.step(a[l])}function Pz(e,t,i){return(t==0||e.canReplace(t,e.childCount))&&(i==e.childCount||e.canReplace(0,i))}function oa(e){let i=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth,o=0,r=0;;--n){let a=e.$from.node(n),s=e.$from.index(n)+o,l=e.$to.indexAfter(n)-r;if(n<e.depth&&a.canReplace(s,l,i))return n;if(n==0||a.type.spec.isolating||!Pz(a,s,l))break;s&&(o=1),l<a.childCount&&(r=1)}return null}function Rz(e,t,i){let{$from:n,$to:o,depth:r}=t,a=n.before(r+1),s=o.after(r+1),l=a,c=s,h=oe.empty,m=0;for(let _=r,S=!1;_>i;_--)S||n.index(_)>0?(S=!0,h=oe.from(n.node(_).copy(h)),m++):l--;let f=oe.empty,b=0;for(let _=r,S=!1;_>i;_--)S||o.after(_+1)<o.end(_)?(S=!0,f=oe.from(o.node(_).copy(f)),b++):c++;
vendor: 4,773 bytes, lines 681-682
681e.step(new Ot(l,c,a,s,new me(h.append(f),m,b),h.size-m,!0))}function Cs(e,t,i=null,n=e){let o=Fz(e,t),r=o&&Oz(n,t);return r?o.map(jw).concat({type:t,attrs:i}).concat(r.map(jw)):null}function jw(e){return{type:e,attrs:null}}function Fz(e,t){let{parent:i,startIndex:n,endIndex:o}=e,r=i.contentMatchAt(n).findWrapping(t);if(!r)return null;let a=r.length?r[0]:t;return i.canReplaceWith(n,o,a)?r:null}function Oz(e,t){let{parent:i,startIndex:n,endIndex:o}=e,r=i.child(n),a=t.contentMatch.findWrapping(r.type);if(!a)return null;let l=(a.length?a[a.length-1]:t).contentMatch;for(let c=n;l&&c<o;c++)l=l.matchType(i.child(c).type);return!l||!l.validEnd?null:a}function Az(e,t,i){let n=oe.empty;for(let a=i.length-1;a>=0;a--){if(n.size){let s=i[a].type.contentMatch.matchFragment(n);if(!s||!s.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}n=oe.from(i[a].type.create(i[a].attrs,n))}let o=t.start,r=t.end;e.step(new Ot(o,r,o,r,new me(n,0,0),i.length,!0))}function Lz(e,t,i,n,o){if(!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let r=e.steps.length;e.doc.nodesBetween(t,i,(a,s)=>{let l=typeof o=="function"?o(a):o;if(a.isTextblock&&!a.hasMarkup(n,l)&&Nz(e.doc,e.mapping.slice(r).map(s),n)){let c=null;if(n.schema.linebreakReplacement){let b=n.whitespace=="pre",_=!!n.contentMatch.matchType(n.schema.linebreakReplacement);b&&!_?c=!1:!b&&_&&(c=!0)}c===!1&&Jw(e,a,s,r),sf(e,e.mapping.slice(r).map(s,1),n,void 0,c===null);let h=e.mapping.slice(r),m=h.map(s,1),f=h.map(s+a.nodeSize,1);return e.step(new Ot(m,f,m+1,f-1,new me(oe.from(n.create(l,null,a.marks)),0,0),1,!0)),c===!0&&Qw(e,a,s,r),!1}})}function Qw(e,t,i,n){t.forEach((o,r)=>{if(o.isText){let a,s=/\r?\n|\r/g;for(;a=s.exec(o.text);){let l=e.mapping.slice(n).map(i+1+r+a.index);e.replaceWith(l,l+1,t.type.schema.linebreakReplacement.create())}}})}function Jw(e,t,i,n){t.forEach((o,r)=>{if(o.type==o.type.schema.linebreakReplacement){let a=e.mapping.slice(n).map(i+1+r);e.replaceWith(a,a+1,t.type.schema.text(` 682`))}})}function Nz(e,t,i){let n=e.resolve(t),o=n.index();return n.parent.canReplaceWith(o,o+1,i)}function zz(e,t,i,n,o){let r=e.doc.nodeAt(t);if(!r)throw new RangeError("No node at given position");i||(i=r.type);let a=i.create(n,null,o||r.marks);if(r.isLeaf)return e.replaceWith(t,t+r.nodeSize,a);if(!i.validContent(r.content))throw new RangeError("Invalid content for node type "+i.name);e.step(new Ot(t,t+r.nodeSize,t+1,t+r.nodeSize-1,new me(oe.from(a),0,0),1,!0))}function lr(e,t,i=1,n){let o=e.resolve(t),r=o.depth-i,a=n&&n[n.length-1]||o.parent;if(r<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!a.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let c=o.depth-1,h=i-2;c>r;c--,h--){let m=o.node(c),f=o.index(c);if(m.type.spec.isolating)return!1;let b=m.content.cutByIndex(f,m.childCount),_=n&&n[h+1];_&&(b=b.replaceChild(0,_.type.create(_.attrs)));let S=n&&n[h]||m;if(!m.canReplace(f+1,m.childCount)||!S.type.validContent(b))return!1}let s=o.indexAfter(r),l=n&&n[0];return o.node(r).canReplaceWith(s,s,l?l.type:o.node(r+1).type)}function Bz(e,t,i=1,n){let o=e.doc.resolve(t),r=oe.empty,a=oe.empty;for(let s=o.depth,l=o.depth-i,c=i-1;s>l;s--,c--){r=oe.from(o.node(s).copy(r));let h=n&&n[c];a=oe.from(h?h.type.create(h.attrs,a):o.node(s).copy(a))}e.step(new Yi(t,t,new me(r.append(a),i,i),!0))}function ra(e,t){let i=e.resolve(t),n=i.index();return Hz(i.nodeBefore,i.nodeAfter)&&i.parent.canReplace(n,n+1)}function Vz(e,t){t.content.size||e.type.compatibleContent(t.type);let i=e.contentMatchAt(e.childCount),{linebreakReplacement:n}=e.type.schema;for(let o=0;o<t.childCount;o++){let r=t.child(o),a=r.type==n?e.type.schema.nodes.text:r.type;if(i=i.matchType(a),!i||!e.type.allowsMarks(r.marks))return!1}return i.validEnd}function Hz(e,t){return!!(e&&t&&!e.isLeaf&&Vz(e,t))}function Gz(e,t,i){let n=null,{linebreakReplacement:o}=e.doc.type.schema,r=e.doc.resolve(t-i),a=r.node().type;if(o&&a.inlineContent){let h=a.whitespace=="pre",m=!!a.contentMatch.matchType(o);h&&!m?n=!1:!h&&m&&(n=!0)}let s=e.steps.length;if(n===!1){let h=e.doc.resolve(t+i);Jw(e,h.node(),h.before(),s)}a.inlineContent&&sf(e,t+i-1,a,r.node().contentMatchAt(r.index()),n==null);let l=e.mapping.slice(s),c=l.map(t-i);if(e.step(new Yi(c,l.map(t+i,-1),me.empty,!0)),n===!0){let h=e.doc.resolve(c);Qw(e,h.node(),h.before(),e.steps.length)}return e}function Uz(e,t,i){let n=e.resolve(t);if(n.parent.canReplaceWith(n.index(),n.index(),i))return t;if(n.parentOffset==0)for(let o=n.depth-1;o>=0;o--){let r=n.index(o);if(n.node(o).canReplaceWith(r,r,i))return n.before(o+1);if(r>0)return null}if(n.parentOffset==n.parent.content.size)for(let o=n.depth-1;o>=0;
vendor: 14,349 bytes, line 682
682o--){let r=n.indexAfter(o);if(n.node(o).canReplaceWith(r,r,i))return n.after(o+1);if(r<n.node(o).childCount)return null}return null}function Zw(e,t,i){let n=e.resolve(t);if(!i.content.size)return t;let o=i.content;for(let r=0;r<i.openStart;r++)o=o.firstChild.content;for(let r=1;r<=(i.openStart==0&&i.size?2:1);r++)for(let a=n.depth;a>=0;a--){let s=a==n.depth?0:n.pos<=(n.start(a+1)+n.end(a+1))/2?-1:1,l=n.index(a)+(s>0?1:0),c=n.node(a),h=!1;if(r==1)h=c.canReplace(l,l,o);else{let m=c.contentMatchAt(l).findWrapping(o.firstChild.type);h=m&&c.canReplaceWith(l,l,m[0])}if(h)return s==0?n.pos:s<0?n.before(a+1):n.after(a+1)}return null}function Qu(e,t,i=t,n=me.empty){if(t==i&&!n.size)return null;let o=e.resolve(t),r=e.resolve(i);return Xw(o,r,n)?new Yi(t,i,n):new rf(o,r,n).fit()}function Xw(e,t,i){return!i.openStart&&!i.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),i.content)}var rf=class{constructor(t,i,n){this.$from=t,this.$to=i,this.unplaced=n,this.frontier=[],this.placed=oe.empty;for(let o=0;o<=t.depth;o++){let r=t.node(o);this.frontier.push({type:r.type,match:r.contentMatchAt(t.indexAfter(o))})}for(let o=t.depth;o>0;o--)this.placed=oe.from(t.node(o).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),i=this.placed.size-this.depth-this.$from.depth,n=this.$from,o=this.close(t<0?this.$to:n.doc.resolve(t));if(!o)return null;let r=this.placed,a=n.depth,s=o.depth;for(;a&&s&&r.childCount==1;)r=r.firstChild.content,a--,s--;let l=new me(r,a,s);return t>-1?new Ot(n.pos,t,this.$to.pos,this.$to.end(),l,i):l.size||n.pos!=this.$to.pos?new Yi(n.pos,o.pos,l):null}findFittable(){let t=this.unplaced.openStart;for(let i=this.unplaced.content,n=0,o=this.unplaced.openEnd;n<t;n++){let r=i.firstChild;if(i.childCount>1&&(o=0),r.type.spec.isolating&&o<=n){t=n;break}i=r.content}for(let i=1;i<=2;i++)for(let n=i==1?t:this.unplaced.openStart;n>=0;n--){let o,r=null;n?(r=tf(this.unplaced.content,n-1).firstChild,o=r.content):o=this.unplaced.content;let a=o.firstChild;for(let s=this.depth;s>=0;s--){let{type:l,match:c}=this.frontier[s],h,m=null;if(i==1&&(a?c.matchType(a.type)||(m=c.fillBefore(oe.from(a),!1)):r&&l.compatibleContent(r.type)))return{sliceDepth:n,frontierDepth:s,parent:r,inject:m};if(i==2&&a&&(h=c.findWrapping(a.type)))return{sliceDepth:n,frontierDepth:s,parent:r,wrap:h};if(r&&c.matchType(r.type))break}}}openMore(){let{content:t,openStart:i,openEnd:n}=this.unplaced,o=tf(t,i);return!o.childCount||o.firstChild.isLeaf?!1:(this.unplaced=new me(t,i+1,Math.max(n,o.size+i>=t.size-n?i+1:0)),!0)}dropNode(){let{content:t,openStart:i,openEnd:n}=this.unplaced,o=tf(t,i);if(o.childCount<=1&&i>0){let r=t.size-i<=i+o.size;this.unplaced=new me(Zl(t,i-1,1),i-1,r?i-1:n)}else this.unplaced=new me(Zl(t,i,1),i,n)}placeNodes({sliceDepth:t,frontierDepth:i,parent:n,inject:o,wrap:r}){for(;this.depth>i;)this.closeFrontierNode();if(r)for(let S=0;S<r.length;S++)this.openFrontierNode(r[S]);let a=this.unplaced,s=n?n.content:a.content,l=a.openStart-t,c=0,h=[],{match:m,type:f}=this.frontier[i];if(o){for(let S=0;S<o.childCount;S++)h.push(o.child(S));m=m.matchFragment(o)}let b=s.size+t-(a.content.size-a.openEnd);for(;c<s.childCount;){let S=s.child(c),M=m.matchType(S.type);if(!M)break;c++,(c>1||l==0||S.content.size)&&(m=M,h.push(ex(S.mark(f.allowedMarks(S.marks)),c==1?l:0,c==s.childCount?b:-1)))}let _=c==s.childCount;_||(b=-1),this.placed=Xl(this.placed,i,oe.from(h)),this.frontier[i].match=m,_&&b<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let S=0,M=s;S<b;S++){let D=M.lastChild;this.frontier.push({type:D.type,match:D.contentMatchAt(D.childCount)}),M=D.content}this.unplaced=_?t==0?me.empty:new me(Zl(a.content,t-1,1),t-1,b<0?a.openEnd:t-1):new me(Zl(a.content,t,c),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let t=this.frontier[this.depth],i;if(!t.type.isTextblock||!nf(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(i=this.findCloseLevel(this.$to))&&i.depth==this.depth)return-1;let{depth:n}=this.$to,o=this.$to.after(n);for(;n>1&&o==this.$to.end(--n);)++o;return o}findCloseLevel(t){e:for(let i=Math.min(this.depth,t.depth);i>=0;i--){let{match:n,type:o}=this.frontier[i],r=i<t.depth&&t.end(i+1)==t.pos+(t.depth-(i+1)),a=nf(t,i,o,n,r);if(a){for(let s=i-1;s>=0;s--){let{match:l,type:c}=this.frontier[s],h=nf(t,s,c,l,!0);if(!h||h.childCount)continue e}return{depth:i,fit:a,move:r?t.doc.resolve(t.after(i+1)):t}}}}close(t){let i=this.findCloseLevel(t);if(!i)return null;for(;this.depth>i.depth;)this.closeFrontierNode();i.fit.childCount&&(this.placed=Xl(this.placed,i.depth,i.fit)),t=i.move;for(let n=i.depth+1;n<=t.depth;n++){let o=t.node(n),r=o.type.contentMatch.fillBefore(o.content,!0,t.index(n));this.openFrontierNode(o.type,o.attrs,r)}return t}openFrontierNode(t,i=null,n){let o=this.frontier[this.depth];o.match=o.match.matchType(t),this.placed=Xl(this.placed,this.depth,oe.from(t.create(i,n))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let i=this.frontier.pop().match.fillBefore(oe.empty,!0);i.childCount&&(this.placed=Xl(this.placed,this.frontier.length,i))}};function Zl(e,t,i){return t==0?e.cutByIndex(i,e.childCount):e.replaceChild(0,e.firstChild.copy(Zl(e.firstChild.content,t-1,i)))}function Xl(e,t,i){return t==0?e.append(i):e.replaceChild(e.childCount-1,e.lastChild.copy(Xl(e.lastChild.content,t-1,i)))}function tf(e,t){for(let i=0;i<t;i++)e=e.firstChild.content;return e}function ex(e,t,i){if(t<=0)return e;let n=e.content;return t>1&&(n=n.replaceChild(0,ex(n.firstChild,t-1,n.childCount==1?i-1:0))),t>0&&(n=e.type.contentMatch.fillBefore(n).append(n),i<=0&&(n=n.append(e.type.contentMatch.matchFragment(n).fillBefore(oe.empty,!0)))),e.copy(n)}function nf(e,t,i,n,o){let r=e.node(t),a=o?e.indexAfter(t):e.index(t);if(a==r.childCount&&!i.compatibleContent(r.type))return null;let s=n.fillBefore(r.content,!0,a);return s&&!jz(i,r.content,a)?s:null}function jz(e,t,i){for(let n=i;n<t.childCount;n++)if(!e.allowsMarks(t.child(n).marks))return!0;return!1}function Wz(e){return e.spec.defining||e.spec.definingForContent}function $z(e,t,i,n){if(!n.size)return e.deleteRange(t,i);let o=e.doc.resolve(t),r=e.doc.resolve(i);if(Xw(o,r,n))return e.step(new Yi(t,i,n));let a=ix(o,r);a[a.length-1]==0&&a.pop();let s=-(o.depth+1);a.unshift(s);for(let f=o.depth,b=o.pos-1;f>0;f--,b--){let _=o.node(f).type.spec;if(_.defining||_.definingAsContext||_.isolating)break;a.indexOf(f)>-1?s=f:o.before(f)==b&&a.splice(1,0,-f)}let l=a.indexOf(s),c=[],h=n.openStart;for(let f=n.content,b=0;;b++){let _=f.firstChild;if(c.push(_),b==n.openStart)break;f=_.content}for(let f=h-1;f>=0;f--){let b=c[f],_=Wz(b.type);if(_&&!b.sameMarkup(o.node(Math.abs(s)-1)))h=f;else if(_||!b.type.isTextblock)break}for(let f=n.openStart;f>=0;f--){let b=(f+h+1)%(n.openStart+1),_=c[b];if(_)for(let S=0;S<a.length;S++){let M=a[(S+l)%a.length],D=!0;M<0&&(D=!1,M=-M);let I=o.node(M-1),F=o.index(M-1);if(I.canReplaceWith(F,F,_.type,_.marks))return e.replace(o.before(M),D?r.after(M):i,new me(tx(n.content,0,n.openStart,b),b,n.openEnd))}}let m=e.steps.length;for(let f=a.length-1;f>=0&&(e.replace(t,i,n),!(e.steps.length>m));f--){let b=a[f];b<0||(t=o.before(b),i=r.after(b))}}function tx(e,t,i,n,o){if(t<i){let r=e.firstChild;e=e.replaceChild(0,r.copy(tx(r.content,t+1,i,n,r)))}if(t>n){let r=o.contentMatchAt(0),a=r.fillBefore(e).append(e);e=a.append(r.matchFragment(a).fillBefore(oe.empty,!0))}return e}function qz(e,t,i,n){if(!n.isInline&&t==i&&e.doc.resolve(t).parent.content.size){let o=Uz(e.doc,t,n.type);o!=null&&(t=i=o)}e.replaceRange(t,i,new me(oe.from(n),0,0))}function Yz(e,t,i){let n=e.doc.resolve(t),o=e.doc.resolve(i),r=ix(n,o);for(let a=0;a<r.length;a++){let s=r[a],l=a==r.length-1;if(l&&s==0||n.node(s).type.contentMatch.validEnd)return e.delete(n.start(s),o.end(s));if(s>0&&(l||n.node(s-1).canReplace(n.index(s-1),o.indexAfter(s-1))))return e.delete(n.before(s),o.after(s))}for(let a=1;a<=n.depth&&a<=o.depth;a++)if(t-n.start(a)==n.depth-a&&i>n.end(a)&&o.end(a)-i!=o.depth-a&&n.start(a-1)==o.start(a-1)&&n.node(a-1).canReplace(n.index(a-1),o.index(a-1)))return e.delete(n.before(a),i);e.delete(t,i)}function ix(e,t){let i=[],n=Math.min(e.depth,t.depth);for(let o=n;o>=0;o--){let r=e.start(o);if(r<e.pos-(e.depth-o)||t.end(o)>t.pos+(t.depth-o)||e.node(o).type.spec.isolating||t.node(o).type.spec.isolating)break;(r==t.start(o)||o==e.depth&&o==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&o&&t.start(o-1)==r-1)&&i.push(o)}return i}var qu=class e extends Ft{constructor(t,i,n){super(),this.pos=t,this.attr=i,this.value=n}apply(t){let i=t.nodeAt(this.pos);if(!i)return Vt.fail("No node at attribute step's position");let n=Object.create(null);for(let r in i.attrs)n[r]=i.attrs[r];n[this.attr]=this.value;let o=i.type.create(n,null,i.marks);return Vt.fromReplace(t,this.pos,this.pos+1,new me(oe.from(o),0,i.isLeaf?0:1))}getMap(){return To.empty}invert(t){return new e(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let i=t.mapResult(this.pos,1);return i.deletedAfter?null:new e(i.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,i){if(typeof i.pos!="number"||typeof i.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new e(i.pos,i.attr,i.value)}};Ft.jsonID("attr",qu);var Yu=class e extends Ft{constructor(t,i){super(),this.attr=t,this.value=i}apply(t){let i=Object.create(null);for(let o in t.attrs)i[o]=t.attrs[o];i[this.attr]=this.value;let n=t.type.create(i,t.content,t.marks);return Vt.ok(n)}getMap(){return To.empty}invert(t){return new e(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,i){if(typeof i.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new e(i.attr,i.value)}};Ft.jsonID("docAttr",Yu);var vs=class extends Error{};vs=function e(t){let i=Error.call(this,t);return i.__proto__=e.prototype,i};vs.prototype=Object.create(Error.prototype);vs.prototype.constructor=vs;vs.prototype.name="TransformError";var Ku=class{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new tc}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let i=this.maybeStep(t);if(i.failed)throw new vs(i.failed);return this}maybeStep(t){let i=t.apply(this.doc);return i.failed||this.addStep(t,i.doc),i}get docChanged(){return this.steps.length>0}changedRange(){let t=1e9,i=-1e9;for(let n=0;n<this.mapping.maps.length;n++){let o=this.mapping.maps[n];n&&(t=o.map(t,1),i=o.map(i,-1)),o.forEach((r,a,s,l)=>{t=Math.min(t,s),i=Math.max(i,l)})}return t==1e9?null:{from:t,to:i}}addStep(t,i){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=i}replace(t,i=t,n=me.empty){let o=Qu(this.doc,t,i,n);return o&&this.step(o),this}replaceWith(t,i,n){return this.replace(t,i,new me(oe.from(n),0,0))}delete(t,i){return this.replace(t,i,me.empty)}insert(t,i){return this.replaceWith(t,t,i)}replaceRange(t,i,n){return $z(this,t,i,n),this}replaceRangeWith(t,i,n){return qz(this,t,i,n),this}deleteRange(t,i){return Yz(this,t,i),this}lift(t,i){return Rz(this,t,i),this}join(t,i=1){return Gz(this,t,i),this}wrap(t,i){return Az(this,t,i),this}setBlockType(t,i=t,n,o=null){return Lz(this,t,i,n,o),this}setNodeMarkup(t,i,n=null,o){return zz(this,t,i,n,o),this}setNodeAttribute(t,i,n){return this.step(new qu(t,i,n)),this}setDocAttribute(t,i){return this.step(new Yu(t,i)),this}addNodeMark(t,i){return this.step(new nc(t,i)),this}removeNodeMark(t,i){let n=this.doc.nodeAt(t);if(!n)throw new RangeError("No node at position "+t);if(i instanceof Ke)i.isInSet(n.marks)&&this.step(new fs(t,i));else{let o=n.marks,r,a=[];for(;r=i.isInSet(o);)a.push(new fs(t,r)),o=r.removeFromSet(o);for(let s=a.length-1;s>=0;s--)this.step(a[s])}return this}split(t,i=1,n){return Bz(this,t,i,n),this}addMark(t,i,n){return Iz(this,t,i,n),this}removeMark(t,i,n){return Dz(this,t,i,n),this}clearIncompatible(t,i,n){return sf(this,t,i,n),this}};var lf=Object.create(null),Oe=class{constructor(t,i,n){this.$anchor=t,this.$head=i,this.ranges=n||[new _s(t.min(i),t.max(i))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let i=0;i<t.length;i++)if(t[i].$from.pos!=t[i].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(t,i=me.empty){let n=i.content.lastChild,o=null;for(let s=0;s<i.openEnd;s++)o=n,n=n.lastChild;let r=t.steps.length,a=this.ranges;for(let s=0;s<a.length;s++){let{$from:l,$to:c}=a[s],h=t.mapping.slice(r);t.replaceRange(h.map(l.pos),h.map(c.pos),s?me.empty:i),s==0&&rx(t,r,(n?n.isInline:o&&o.isTextblock)?-1:1)}}replaceWith(t,i){let n=t.steps.length,o=this.ranges;for(let r=0;r<o.length;r++){let{$from:a,$to:s}=o[r],l=t.mapping.slice(n),c=l.map(a.pos),h=l.map(s.pos);r?t.deleteRange(c,h):(t.replaceRangeWith(c,h,i),rx(t,n,i.isInline?-1:1))}}static findFrom(t,i,n=!1){let o=t.parent.inlineContent?new qe(t):bs(t.node(0),t.parent,t.pos,t.index(),i,n);if(o)return o;for(let r=t.depth-1;r>=0;r--){let a=i<0?bs(t.node(0),t.node(r),t.before(r+1),t.index(r),i,n):bs(t.node(0),t.node(r),t.after(r+1),t.index(r)+1,i,n);if(a)return a}return null}static near(t,i=1){return this.findFrom(t,i)||this.findFrom(t,-i)||new Ki(t.node(0))}static atStart(t){return bs(t,t,0,0,1)||new Ki(t)}static atEnd(t){return bs(t,t,t.content.size,t.childCount,-1)||new Ki(t)}static fromJSON(t,i){if(!i||!i.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=lf[i.type];if(!n)throw new RangeError(`No selection type ${i.type} defined`);return n.fromJSON(t,i)}static jsonID(t,i){if(t in lf)throw new RangeError("Duplicate use of selection JSON ID "+t);return lf[t]=i,i.prototype.jsonID=t,i}getBookmark(){return qe.between(this.$anchor,this.$head).getBookmark()}};Oe.prototype.visible=!0;var _s=class{constructor(t,i){this.$from=t,this.$to=i}},nx=!1;function ox(e){!nx&&!e.parent.inlineContent&&(nx=!0,console.warn("TextSelection endpoint not pointing into a
682node with inline content ("+e.parent.type.name+")"))}var qe=class e extends Oe{constructor(t,i=t){ox(t),ox(i),super(t,i)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,i){let n=t.resolve(i.map(this.head));if(!n.parent.inlineContent)return Oe.near(n);let o=t.resolve(i.map(this.anchor));return new e(o.parent.inlineContent?o:n,n)}replace(t,i=me.empty){if(super.replace(t,i),i==me.empty){let n=this.$from.marksAcross(this.$to);n&&t.ensureMarks(n)}}eq(t){return t instanceof e&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new Zu(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,i){if(typeof i.anchor!="number"||typeof i.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new e(t.resolve(i.anchor),t.resolve(i.head))}static create(t,i,n=i){let o=t.resolve(i);return new this(o,n==i?o:t.resolve(n))}static between(t,i,n){let o=t.pos-i.pos;if((!n||o)&&(n=o>=0?1:-1),!i.parent.inlineContent){let r=Oe.findFrom(i,n,!0)||Oe.findFrom(i,-n,!0);if(r)i=r.$head;else return Oe.near(i,n)}return t.parent.inlineContent||(o==0?t=i:(t=(Oe.findFrom(t,-n,!0)||Oe.findFrom(t,n,!0)).$anchor,t.pos<i.pos!=o<0&&(t=i))),new e(t,i)}};Oe.jsonID("text",qe);var Zu=class e{constructor(t,i){this.anchor=t,this.head=i}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(t){return qe.between(t.resolve(this.anchor),t.resolve(this.head))}},ke=class e extends Oe{constructor(t){let i=t.nodeAfter,n=t.node(0).resolve(t.pos+i.nodeSize);super(t,n),this.node=i}map(t,i){let{deleted:n,pos:o}=i.mapResult(this.anchor),r=t.resolve(o);return n?Oe.near(r):new e(r)}content(){return new me(oe.from(this.node),0,0)}eq(t){return t instanceof e&&t.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new df(this.anchor)}static fromJSON(t,i){if(typeof i.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new e(t.resolve(i.anchor))}static create(t,i){return new e(t.resolve(i))}static isSelectable(t){return!t.isText&&t.type.spec.selectable!==!1}};ke.prototype.visible=!1;Oe.jsonID("node",ke);var df=class e{constructor(t){this.anchor=t}map(t){let{deleted:i,pos:n}=t.mapResult(this.anchor);return i?new Zu(n,n):new e(n)}resolve(t){let i=t.resolve(this.anchor),n=i.nodeAfter;return n&&ke.isSelectable(n)?new ke(i):Oe.near(i)}},Ki=class e extends Oe{constructor(t){super(t.resolve(0),t.resolve(t.content.size))}replace(t,i=me.empty){if(i==me.empty){t.delete(0,t.doc.content.size);let n=Oe.atStart(t.doc);n.eq(t.selection)||t.setSelection(n)}else super.replace(t,i)}toJSON(){return{type:"all"}}static fromJSON(t){return new e(t)}map(t){return new e(t)}eq(t){return t instanceof e}getBookmark(){return Kz}};Oe.jsonID("all",Ki);var Kz={map(){return this},resolve(e){return new Ki(e)}};function bs(e,t,i,n,o,r=!1){if(t.inlineContent)return qe.create(e,i);for(let a=n-(o>0?0:1);o>0?a<t.childCount:a>=0;a+=o){let s=t.child(a);if(s.isAtom){if(!r&&ke.isSelectable(s))return ke.create(e,i-(o<0?s.nodeSize:0))}else{let l=bs(e,s,i+o,o<0?s.childCount:0,o,r);if(l)return l}i+=s.nodeSize*o}return null}function rx(e,t,i){let n=e.steps.length-1;if(n<t)return;let o=e.steps[n];if(!(o instanceof Yi||o instanceof Ot))return;let r=e.mapping.maps[n],a;r.forEach((s,l,c,h)=>{a==null&&(a=h)}),e.setSelection(Oe.near(e.doc.resolve(a),i))}var ax=1,Ju=2,sx=4,uf=class extends Ku{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(t){if(t.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=t,this.curSelectionFor=this.steps.length,this.updated=(this.updated|ax)&~Ju,this.storedMarks=null,this}get selectionSet(){return(this.updated&ax)>0}setStoredMarks(t){return this.storedMarks=t,this.updated|=Ju,this}ensureMarks(t){return Ke.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&Ju)>0}addStep(t,i){super.addStep(t,i),this.updated=this.updated&~Ju,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,i=!0){let n=this.selection;return i&&(t=t.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||Ke.none))),n.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,i,n){let o=this.doc.type.schema;if(i==null)return t?this.replaceSelectionWith(o.text(t),!0):this.deleteSelection();{if(n==null&&(n=i),!t)return this.deleteRange(i,n);let r=this.storedMarks;if(!r){let a=this.doc.resolve(i);r=n==i?a.marks():a.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(i,n,o.text(t,r)),!this.selection.empty&&this.selection.to==i+t.length&&this.setSelection(Oe.near(this.selection.$to)),this}}setMeta(t,i){return this.meta[typeof t=="string"?t:t.key]=i,this}getMeta(t){return this.meta[typeof t=="string"?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=sx,this}get scrolledIntoView(){return(this.updated&sx)>0}};function lx(e,t){return!t||!e?e:e.bind(t)}var aa=class{constructor(t,i,n){this.name=t,this.init=lx(i.init,n),this.apply=lx(i.apply,n)}},Qz=[new aa("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new aa("selection",{init(e,t){return e.selection||Oe.atStart(t.doc)},apply(e){return e.selection}}),new aa("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,i,n){return n.selection.$cursor?e.storedMarks:null}}),new aa("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})],oc=class{constructor(t,i){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=Qz.slice(),i&&i.forEac
vendor: 4,207 bytes, line 682
682h(n=>{if(this.pluginsByKey[n.key])throw new RangeError("Adding different instances of a keyed plugin ("+n.key+")");this.plugins.push(n),this.pluginsByKey[n.key]=n,n.spec.state&&this.fields.push(new aa(n.key,n.spec.state,n))})}},Xu=class e{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,i=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=i){let o=this.config.plugins[n];if(o.spec.filterTransaction&&!o.spec.filterTransaction.call(o,t,this))return!1}return!0}applyTransaction(t){if(!this.filterTransaction(t))return{state:this,transactions:[]};let i=[t],n=this.applyInner(t),o=null;for(;;){let r=!1;for(let a=0;a<this.config.plugins.length;a++){let s=this.config.plugins[a];if(s.spec.appendTransaction){let l=o?o[a].n:0,c=o?o[a].state:this,h=l<i.length&&s.spec.appendTransaction.call(s,l?i.slice(l):i,c,n);if(h&&n.filterTransaction(h,a)){if(h.setMeta("appendedTransaction",t),!o){o=[];for(let m=0;m<this.config.plugins.length;m++)o.push(m<a?{state:n,n:i.length}:{state:this,n:0})}i.push(h),n=n.applyInner(h),r=!0}o&&(o[a]={state:n,n:i.length})}}if(!r)return{state:n,transactions:i}}}applyInner(t){if(!t.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let i=new e(this.config),n=this.config.fields;for(let o=0;o<n.length;o++){let r=n[o];i[r.name]=r.apply(t,this[r.name],this,i)}return i}get tr(){return new uf(this)}static create(t){let i=new oc(t.doc?t.doc.type.schema:t.schema,t.plugins),n=new e(i);for(let o=0;o<i.fields.length;o++)n[i.fields[o].name]=i.fields[o].init(t,n);return n}reconfigure(t){let i=new oc(this.schema,t.plugins),n=i.fields,o=new e(i);for(let r=0;r<n.length;r++){let a=n[r].name;o[a]=this.hasOwnProperty(a)?this[a]:n[r].init(t,o)}return o}toJSON(t){let i={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(i.storedMarks=this.storedMarks.map(n=>n.toJSON())),t&&typeof t=="object")for(let n in t){if(n=="doc"||n=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let o=t[n],r=o.spec.state;r&&r.toJSON&&(i[n]=r.toJSON.call(o,this[o.key]))}return i}static fromJSON(t,i,n){if(!i)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let o=new oc(t.schema,t.plugins),r=new e(o);return o.fields.forEach(a=>{if(a.name=="doc")r.doc=jn.fromJSON(t.schema,i.doc);else if(a.name=="selection")r.selection=Oe.fromJSON(r.doc,i.selection);else if(a.name=="storedMarks")i.storedMarks&&(r.storedMarks=i.storedMarks.map(t.schema.markFromJSON));else{if(n)for(let s in n){let l=n[s],c=l.spec.state;if(l.key==a.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(i,s)){r[a.name]=c.fromJSON.call(l,t,i[s],r);return}}r[a.name]=a.init(t,r)}}),r}};function cx(e,t,i){for(let n in e){let o=e[n];o instanceof Function?o=o.bind(t):n=="handleDOMEvents"&&(o=cx(o,t,{})),i[n]=o}return i}var ri=class{constructor(t){this.spec=t,this.props={},t.props&&cx(t.props,this,this.props),this.key=t.key?t.key.key:dx("plugin")}getState(t){return t[this.key]}},cf=Object.create(null);function dx(e){return e in cf?e+"$"+ ++cf[e]:(cf[e]=0,e+"$")}var Qi=class{constructor(t="key"){this.key=dx(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}};var Ht=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},ks=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t},vf=null,Do=function(e,t,i){let n=vf||(vf=document.createRange());return n.setEnd(e,i??e.nodeValue.length),n.setStart(e,t||0),n},Jz=function(){vf=null},ha=function(e,t,i,n){return i&&(ux(e,t,i,n,-1)||ux(e,t,i,n,1))},Zz=/^(img|br|input|textarea|hr)$/i;function ux(e,t,i,n,o){for(var r;;){if(e==i&&t==n)return!0;if(t==(o<0?0:gn(e))){let a=e.parentNode;if(!a||a.nodeType!=1||pc(e)||Zz.test(e.nodeName)||e.contentEditable=="false")return!1;t=Ht(e)+(o<0?0:1),e=a}else if(e.nodeType==1){let a=e.childNodes[t+(o<0?-1:0)];if(a.nodeType==1&&a.contentEditable=="false")if(!((r=a.pmViewDesc)===null||r===void 0)&&r.ignoreForSelection)t+=o;else return!1;else e=a,t=o<0?gn(e):0}else return!1}}
vendor: 4,396 bytes, line 682
682function gn(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function Xz(e,t){for(;;){if(e.nodeType==3&&t)return e;if(e.nodeType==1&&t>0){if(e.contentEditable=="false")return null;e=e.childNodes[t-1],t=gn(e)}else if(e.parentNode&&!pc(e))t=Ht(e),e=e.parentNode;else return null}}function eB(e,t){for(;;){if(e.nodeType==3&&t<e.nodeValue.length)return e;if(e.nodeType==1&&t<e.childNodes.length){if(e.contentEditable=="false")return null;e=e.childNodes[t],t=0}else if(e.parentNode&&!pc(e))t=Ht(e)+1,e=e.parentNode;else return null}}function tB(e,t,i){for(let n=t==0,o=t==gn(e);n||o;){if(e==i)return!0;let r=Ht(e);if(e=e.parentNode,!e)return!1;n=n&&r==0,o=o&&r==gn(e)}}function pc(e){let t;for(let i=e;i&&!(t=i.pmViewDesc);i=i.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}var dp=function(e){return e.focusNode&&ha(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function sa(e,t){let i=document.createEvent("Event");return i.initEvent("keydown",!0,!0),i.keyCode=e,i.key=i.code=t,i}function iB(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function nB(e,t,i){if(e.caretPositionFromPoint)try{let n=e.caretPositionFromPoint(t,i);if(n)return{node:n.offsetNode,offset:Math.min(gn(n.offsetNode),n.offset)}}catch{}if(e.caretRangeFromPoint){let n=e.caretRangeFromPoint(t,i);if(n)return{node:n.startContainer,offset:Math.min(gn(n.startContainer),n.startOffset)}}}var Wn=typeof navigator<"u"?navigator:null,px=typeof document<"u"?document:null,gr=Wn&&Wn.userAgent||"",Cf=/Edge\/(\d+)/.exec(gr),jx=/MSIE \d/.exec(gr),bf=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(gr),Oi=!!(jx||bf||Cf),pr=jx?document.documentMode:bf?+bf[1]:Cf?+Cf[1]:0,mn=!Oi&&/gecko\/(\d+)/i.test(gr);mn&&+(/Firefox\/(\d+)/.exec(gr)||[0,0])[1];var _f=!Oi&&/Chrome\/(\d+)/.exec(gr),Gt=!!_f,Wx=_f?+_f[1]:0,si=!Oi&&!!Wn&&/Apple Computer/.test(Wn.vendor),Es=si&&(/Mobile\/\w+/.test(gr)||!!Wn&&Wn.maxTouchPoints>2),hn=Es||(Wn?/Mac/.test(Wn.platform):!1),$x=Wn?/Win/.test(Wn.platform):!1,Po=/Android \d/.test(gr),hc=!!px&&"webkitFontSmoothing"in px.documentElement.style,oB=hc?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function rB(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function Io(e,t){return typeof e=="number"?e:e[t]}function aB(e){let t=e.getBoundingClientRect(),i=t.width/e.offsetWidth||1,n=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*i,top:t.top,bottom:t.top+e.clientHeight*n}}function hx(e,t,i){let n=e.someProp("scrollThreshold")||0,o=e.someProp("scrollMargin")||5,r=e.dom.ownerDocument;for(let a=i||e.dom;a;){if(a.nodeType!=1){a=ks(a);continue}let s=a,l=s==r.body,c=l?rB(r):aB(s),h=0,m=0;if(t.top<c.top+Io(n,"top")?m=-(c.top-t.top+Io(o,"top")):t.bottom>c.bottom-Io(n,"bottom")&&(m=t.bottom-t.top>c.bottom-c.top?t.top+Io(o,"top")-c.top:t.bottom-c.bottom+Io(o,"bottom")),t.left<c.left+Io(n,"left")?h=-(c.left-t.left+Io(o,"left")):t.right>c.right-Io(n,"right")&&(h=t.right-c.right+Io(o,"right")),h||m)if(l)r.defaultView.scrollBy(h,m);else{let b=s.scrollLeft,_=s.scrollTop;m&&(s.scrollTop+=m),h&&(s.scrollLeft+=h);let S=s.scrollLeft-b,M=s.scrollTop-_;t={left:t.left-S,top:t.top-M,right:t.right-S,bottom:t.bottom-M}}let f=l?"fixed":getComputedStyle(a).position;if(/^(fixed|sticky)$/.test(f))break;a=f=="absolute"?a.offsetParent:ks(a)}}function sB(e){let t=e.dom.getBoundingClientRect(),i=Math.max(0,t.top),n,o;for(let r=(t.left+t.right)/2,a=i+1;a<Math.min(innerHeight,t.bottom);a+=5){let s=e.root.elementFromPoint(r,a);if(!s||s==e.dom||!e.dom.contains(s))continue;let l=s.getBoundingClientRect();if(l.top>=i-20){n=s,o=l.top;break}}return{refDOM:n,refTop:o,stack:qx(e.dom)}}function qx(e){let t=[],i=e.ownerDocument;for(let n=e;n&&(t.push({dom:n,top:n.scrollTop,left:n.scrollLeft}),e!=i);n=ks(n));return t}function lB({refDOM:e,refTop:t,stack:i}){let n=e?e.getBoundingClientRect().top:0;Yx(i,n==0?0:n-t)}function Yx(e,t){for(let i=0;i<e.length;i++){let{dom:n,top:o,left:r}=e[i];n.scrollTop!=o+t&&(n.scrollTop=o+t),n.scrollLeft!=r&&(n.scrollLeft=r)}}var ys=null;function cB(e){if(e.setActive)return e.setActive();if(ys)return e.focus(ys);let t=qx(e);e.focus(ys==null?{get preventScroll(){return ys={preventScroll:!0},!0}}:void 0),ys||(ys=!1,Yx(t,0))}
vendor: 4,755 bytes, line 682
682function Kx(e,t){let i,n=2e8,o,r=0,a=t.top,s=t.top,l,c;for(let h=e.firstChild,m=0;h;h=h.nextSibling,m++){let f;if(h.nodeType==1)f=h.getClientRects();else if(h.nodeType==3)f=Do(h).getClientRects();else continue;for(let b=0;b<f.length;b++){let _=f[b];if(_.top<=a&&_.bottom>=s){a=Math.max(_.bottom,a),s=Math.min(_.top,s);let S=_.left>t.left?_.left-t.left:_.right<t.left?t.left-_.right:0;if(S<n){i=h,n=S,o=S&&i.nodeType==3?{left:_.right<t.left?_.right:_.left,top:t.top}:t,h.nodeType==1&&S&&(r=m+(t.left>=(_.left+_.right)/2?1:0));continue}}else _.top>t.top&&!l&&_.left<=t.left&&_.right>=t.left&&(l=h,c={left:Math.max(_.left,Math.min(_.right,t.left)),top:_.top});!i&&(t.left>=_.right&&t.top>=_.top||t.left>=_.left&&t.top>=_.bottom)&&(r=m+1)}}return!i&&l&&(i=l,o=c,n=0),i&&i.nodeType==3?dB(i,o):!i||n&&i.nodeType==1?{node:e,offset:r}:Kx(i,o)}function dB(e,t){let i=e.nodeValue.length,n=document.createRange(),o;for(let r=0;r<i;r++){n.setEnd(e,r+1),n.setStart(e,r);let a=cr(n,1);if(a.top!=a.bottom&&Af(t,a)){o={node:e,offset:r+(t.left>=(a.left+a.right)/2?1:0)};break}}return n.detach(),o||{node:e,offset:0}}function Af(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function uB(e,t){let i=e.parentNode;return i&&/^li$/i.test(i.nodeName)&&t.left<e.getBoundingClientRect().left?i:e}function pB(e,t,i){let{node:n,offset:o}=Kx(t,i),r=-1;if(n.nodeType==1&&!n.firstChild){let a=n.getBoundingClientRect();r=a.left!=a.right&&i.left>(a.left+a.right)/2?1:-1}return e.docView.posFromDOM(n,o,r)}function hB(e,t,i,n){let o=-1;for(let r=t,a=!1;r!=e.dom;){let s=e.docView.nearestDesc(r,!0),l;if(!s)return null;if(s.dom.nodeType==1&&(s.node.isBlock&&s.parent||!s.contentDOM)&&((l=s.dom.getBoundingClientRect()).width||l.height)&&(s.node.isBlock&&s.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(s.dom.nodeName)&&(!a&&l.left>n.left||l.top>n.top?o=s.posBefore:(!a&&l.right<n.left||l.bottom<n.top)&&(o=s.posAfter),a=!0),!s.contentDOM&&o<0&&!s.node.isText))return(s.node.isBlock?n.top<(l.top+l.bottom)/2:n.left<(l.left+l.right)/2)?s.posBefore:s.posAfter;r=s.dom.parentNode}return o>-1?o:e.docView.posFromDOM(t,i,-1)}function Qx(e,t,i){let n=e.childNodes.length;if(n&&i.top<i.bottom)for(let o=Math.max(0,Math.min(n-1,Math.floor(n*(t.top-i.top)/(i.bottom-i.top))-2)),r=o;;){let a=e.childNodes[r];if(a.nodeType==1){let s=a.getClientRects();for(let l=0;l<s.length;l++){let c=s[l];if(Af(t,c))return Qx(a,t,c)}}if((r=(r+1)%n)==o)break}return e}function gB(e,t){let i=e.dom.ownerDocument,n,o=0,r=nB(i,t.left,t.top);r&&({node:n,offset:o}=r);let a=(e.root.elementFromPoint?e.root:i).elementFromPoint(t.left,t.top),s;if(!a||!e.dom.contains(a.nodeType!=1?a.parentNode:a)){let c=e.dom.getBoundingClientRect();if(!Af(t,c)||(a=Qx(e.dom,t,c),!a))return null}if(si)for(let c=a;n&&c;c=ks(c))c.draggable&&(n=void 0);if(a=uB(a,t),n){if(mn&&n.nodeType==1&&(o=Math.min(o,n.childNodes.length),o<n.childNodes.length)){let h=n.childNodes[o],m;h.nodeName=="IMG"&&(m=h.getBoundingClientRect()).right<=t.left&&m.bottom>t.top&&o++}let c;hc&&o&&n.nodeType==1&&(c=n.childNodes[o-1]).nodeType==1&&c.contentEditable=="false"&&c.getBoundingClientRect().top>=t.top&&o--,n==e.dom&&o==n.childNodes.length-1&&n.lastChild.nodeType==1&&t.top>n.lastChild.getBoundingClientRect().bottom?s=e.state.doc.content.size:(o==0||n.nodeType!=1||n.childNodes[o-1].nodeName!="BR")&&(s=hB(e,n,o,t))}s==null&&(s=pB(e,a,t));let l=e.docView.nearestDesc(a,!0);return{pos:s,inside:l?l.posAtStart-l.border:-1}}function gx(e){return e.top<e.bottom||e.left<e.right}function cr(e,t){let i=e.getClientRects();if(i.length){let n=i[t<0?0:i.length-1];if(gx(n))return n}return Array.prototype.find.call(i,gx)||e.getBoundingClientRect()}var mB=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Jx(e,t,i){let{node:n,offset:o,atom:r}=e.docView.domFromPos(t,i<0?-1:1),a=hc||mn;if(n.nodeType==3)if(a&&(mB.test(n.nodeValue)||(i<0?!o:o==n.nodeValue.length))){let l=cr(Do(n,o,o),i);if(mn&&o&&/\s/.test(n.nodeValue[o-1])&&o<n.nodeValue.length){let c=cr(Do(n,o-1,o-1),-1);if(c.top==l.top){let h=cr(Do(n,o,o+1),-1);if(h.top!=l.top)return rc(h,h.left<c.left)}}return l}else{let l=o,c=o,h=i<0?1:-1;return i<0&&!o?(c++,h=-1):i>=0&&o==n.nodeValue.length?(l--,h=1):i<0?l--:c++,rc(cr(Do(n,l,c),h),h<0)}if(!e.state.doc.resolve(t-(r||0)).parent.inlineContent){if(r==null&&o&&(i<0||o==gn(n))){let l=n.childNodes[o-1];if(l.nodeType==1)return pf(l.getBoundingClientRect(),!1)}if(r==null&&o<gn(n)){let l=n.childNodes[o];if(l.nodeType==1)return pf(l.getBoundingClientRect(),!0)}return pf(n.getBoundingClientRect(),i>=0)}if(r==null&&o&&(i<0||o==gn(n))){let l=n.childNodes[o-1],c=l.nodeType==3?Do(l,gn(l)-(a?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(c)return rc(cr(c,1),!1)}if(r==null&&o<gn(n)){let l=n.childNodes[o];for(;
vendor: 4,186 bytes, line 682
682l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let c=l?l.nodeType==3?Do(l,0,a?0:1):l.nodeType==1?l:null:null;if(c)return rc(cr(c,-1),!0)}return rc(cr(n.nodeType==3?Do(n):n,-i),i>=0)}function rc(e,t){if(e.width==0)return e;let i=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:i,right:i}}function pf(e,t){if(e.height==0)return e;let i=t?e.top:e.bottom;return{top:i,bottom:i,left:e.left,right:e.right}}function Zx(e,t,i){let n=e.state,o=e.root.activeElement;n!=t&&e.updateState(t),o!=e.dom&&e.focus();try{return i()}finally{n!=t&&e.updateState(n),o!=e.dom&&o&&o.focus()}}function fB(e,t,i){let n=t.selection,o=i=="up"?n.$from:n.$to;return Zx(e,t,()=>{let{node:r}=e.docView.domFromPos(o.pos,i=="up"?-1:1);for(;;){let s=e.docView.nearestDesc(r,!0);if(!s)break;if(s.node.isBlock){r=s.contentDOM||s.dom;break}r=s.dom.parentNode}let a=Jx(e,o.pos,1);for(let s=r.firstChild;s;s=s.nextSibling){let l;if(s.nodeType==1)l=s.getClientRects();else if(s.nodeType==3)l=Do(s,0,s.nodeValue.length).getClientRects();else continue;for(let c=0;c<l.length;c++){let h=l[c];if(h.bottom>h.top+1&&(i=="up"?a.top-h.top>(h.bottom-a.top)*2:h.bottom-a.bottom>(a.bottom-h.top)*2))return!1}}return!0})}var vB=/[\u0590-\u08ac]/;function CB(e,t,i){let{$head:n}=t.selection;if(!n.parent.isTextblock)return!1;let o=n.parentOffset,r=!o,a=o==n.parent.content.size,s=e.domSelection();return s?!vB.test(n.parent.textContent)||!s.modify?i=="left"||i=="backward"?r:a:Zx(e,t,()=>{let{focusNode:l,focusOffset:c,anchorNode:h,anchorOffset:m}=e.domSelectionRange(),f=s.caretBidiLevel;s.modify("move",i,"character");let b=n.depth?e.docView.domAfterPos(n.before()):e.dom,{focusNode:_,focusOffset:S}=e.domSelectionRange(),M=_&&!b.contains(_.nodeType==1?_:_.parentNode)||l==_&&c==S;try{s.collapse(h,m),l&&(l!=h||c!=m)&&s.extend&&s.extend(l,c)}catch{}return f!=null&&(s.caretBidiLevel=f),M}):n.pos==n.start()||n.pos==n.end()}var mx=null,fx=null,vx=!1;function bB(e,t,i){return mx==t&&fx==i?vx:(mx=t,fx=i,vx=i=="up"||i=="down"?fB(e,t,i):CB(e,t,i))}var fn=0,Cx=1,la=2,$n=3,ga=class{constructor(t,i,n,o){this.parent=t,this.children=i,this.dom=n,this.contentDOM=o,this.dirty=fn,n.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,i,n){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let i=0;i<this.children.length;i++)t+=this.children[i].size;return t}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let t=0;t<this.children.length;t++)this.children[t].destroy()}posBeforeChild(t){for(let i=0,n=this.posAtStart;;i++){let o=this.children[i];if(o==t)return n;n+=o.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(t,i,n){if(this.contentDOM&&this.contentDOM.contains(t.nodeType==1?t:t.parentNode))if(n<0){let r,a;if(t==this.contentDOM)r=t.childNodes[i-1];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;r=t.previousSibling}for(;r&&!((a=r.pmViewDesc)&&a.parent==this);)r=r.previousSibling;return r?this.posBeforeChild(a)+a.size:this.posAtStart}else{let r,a;if(t==this.contentDOM)r=t.childNodes[i];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;r=t.nextSibling}for(;r&&!((a=r.pmViewDesc)&&a.parent==this);)r=r.nextSibling;return r?this.posBeforeChild(a):this.posAtEnd}let o;if(t==this.dom&&this.contentDOM)o=i>Ht(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))o=t.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(i==0)for(let r=t;;r=r.parentNode){if(r==this.dom){o=!1;break}if(r.previousSibling)break}if(o==null&&i==t.childNodes.length)for(let r=t;;r=r.parentNode){if(r==this.dom){o=!0;break}if(r.nextSibling)break}}return o??n>0?this.posAtEnd:this.posAtStart}nearestDesc(t,i=!1){for(let n=!0,o=t;o;o=o.parentNode){let r=this.getDesc(o),a;if(r&&(!i||r.node))if(n&&(a=r.nodeDOM)&&!(a.nodeType==1?a.contains(t.nodeType==1?t:t.parentNode):a==t))n=!1;else return r}}
vendor: 5,494 bytes, lines 682-683
682getDesc(t){let i=t.pmViewDesc;for(let n=i;n;n=n.parent)if(n==this)return i}posFromDOM(t,i,n){for(let o=t;o;o=o.parentNode){let r=this.getDesc(o);if(r)return r.localPosFromDOM(t,i,n)}return-1}descAt(t){for(let i=0,n=0;i<this.children.length;i++){let o=this.children[i],r=n+o.size;if(n==t&&r!=n){for(;!o.border&&o.children.length;)for(let a=0;a<o.children.length;a++){let s=o.children[a];if(s.size){o=s;break}}return o}if(t<r)return o.descAt(t-n-o.border);n=r}}domFromPos(t,i){if(!this.contentDOM)return{node:this.dom,offset:0,atom:t+1};let n=0,o=0;for(let r=0;n<this.children.length;n++){let a=this.children[n],s=r+a.size;if(s>t||a instanceof ip){o=t-r;break}r=s}if(o)return this.children[n].domFromPos(o-this.children[n].border,i);for(let r;n&&!(r=this.children[n-1]).size&&r instanceof ep&&r.side>=0;n--);if(i<=0){let r,a=!0;for(;r=n?this.children[n-1]:null,!(!r||r.dom.parentNode==this.contentDOM);n--,a=!1);return r&&i&&a&&!r.border&&!r.domAtom?r.domFromPos(r.size,i):{node:this.contentDOM,offset:r?Ht(r.dom)+1:0}}else{let r,a=!0;for(;r=n<this.children.length?this.children[n]:null,!(!r||r.dom.parentNode==this.contentDOM);n++,a=!1);return r&&a&&!r.border&&!r.domAtom?r.domFromPos(0,i):{node:this.contentDOM,offset:r?Ht(r.dom):this.contentDOM.childNodes.length}}}parseRange(t,i,n=0){if(this.children.length==0)return{node:this.contentDOM,from:t,to:i,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let o=-1,r=-1;for(let a=n,s=0;;s++){let l=this.children[s],c=a+l.size;if(o==-1&&t<=c){let h=a+l.border;if(t>=h&&i<=c-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(t,i,h);t=a;for(let m=s;m>0;m--){let f=this.children[m-1];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(1)){o=Ht(f.dom)+1;break}t-=f.size}o==-1&&(o=0)}if(o>-1&&(c>i||s==this.children.length-1)){i=c;for(let h=s+1;h<this.children.length;h++){let m=this.children[h];if(m.size&&m.dom.parentNode==this.contentDOM&&!m.emptyChildAt(-1)){r=Ht(m.dom);break}i+=m.size}r==-1&&(r=this.contentDOM.childNodes.length);break}a=c}return{node:this.contentDOM,from:t,to:i,fromOffset:o,toOffset:r}}emptyChildAt(t){if(this.border||!this.contentDOM||!this.children.length)return!1;let i=this.children[t<0?0:this.children.length-1];return i.size==0||i.emptyChildAt(t)}domAfterPos(t){let{node:i,offset:n}=this.domFromPos(t,0);if(i.nodeType!=1||n==i.childNodes.length)throw new RangeError("No node after pos "+t);return i.childNodes[n]}setSelection(t,i,n,o=!1){let r=Math.min(t,i),a=Math.max(t,i);for(let b=0,_=0;b<this.children.length;b++){let S=this.children[b],M=_+S.size;if(r>_&&a<M)return S.setSelection(t-_-S.border,i-_-S.border,n,o);_=M}let s=this.domFromPos(t,t?-1:1),l=i==t?s:this.domFromPos(i,i?-1:1),c=n.root.getSelection(),h=n.domSelectionRange(),m=!1;if((mn||si)&&t==i){let{node:b,offset:_}=s;if(b.nodeType==3){if(m=!!(_&&b.nodeValue[_-1]==` 683`),m&&_==b.nodeValue.length)for(let S=b,M;S;S=S.parentNode){if(M=S.nextSibling){M.nodeName=="BR"&&(s=l={node:M.parentNode,offset:Ht(M)+1});break}let D=S.pmViewDesc;if(D&&D.node&&D.node.isBlock)break}}else{let S=b.childNodes[_-1];m=S&&(S.nodeName=="BR"||S.contentEditable=="false")}}if(mn&&h.focusNode&&h.focusNode!=l.node&&h.focusNode.nodeType==1){let b=h.focusNode.childNodes[h.focusOffset];b&&b.contentEditable=="false"&&(o=!0)}if(!(o||m&&si)&&ha(s.node,s.offset,h.anchorNode,h.anchorOffset)&&ha(l.node,l.offset,h.focusNode,h.focusOffset))return;let f=!1;if((c.extend||t==i)&&!(m&&mn)){c.collapse(s.node,s.offset);try{t!=i&&c.extend(l.node,l.offset),f=!0}catch{}}if(!f){if(t>i){let _=s;s=l,l=_}let b=document.createRange();b.setEnd(l.node,l.offset),b.setStart(s.node,s.offset),c.removeAllRanges(),c.addRange(b)}}ignoreMutation(t){return!this.contentDOM&&t.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,i){for(let n=0,o=0;o<this.children.length;o++){let r=this.children[o],a=n+r.size;if(n==a?t<=a&&i>=n:t<a&&i>n){let s=n+r.border,l=a-r.border;if(t>=s&&i<=l){this.dirty=t==n||i==a?la:Cx,t==s&&i==l&&(r.contentLost||r.dom.parentNode!=this.contentDOM)?r.dirty=$n:r.markDirty(t-s,i-s);return}else r.dirty=r.dom==r.contentDOM&&r.dom.parentNode==this.contentDOM&&!r.children.length?la:$n}n=a}this.dirty=la}markParentsDirty(){let t=1;for(let i=this.parent;i;i=i.parent,t++){let n=t==1?la:Cx;i.dirty<n&&(i.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(t){return!1}},ep=class extends ga{constructor(t,i,n,o){let r,a=i.type.toDOM;if(typeof a=="function"&&(a=a(n,()=>{if(!r)return o;if(r.parent)return r.parent.posBeforeChild(r)})),!i.type.spec.raw){if(a.nodeType!=1){let s=document.createElement("span");s.appendChild(a),a=s}a.contentEditable="false",a.classList.add("ProseMirror-widget")}super(t,[],a,null),this.widget=i,this.widget=i,r=this}matchesWidget(t){return this.dirty==fn&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let i=this.widget.spec.stopEvent;return i?i(t):!1}ignoreMutation(t){return t.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}},yf=class extends ga{constructor(t,i,n,o){super(t,[],i,null),this.textDOM=n,this.text=o}get size(){return this.text.length}localPosFromDOM(t,i){return t!=this.textDOM?this.posAtStart+(i?this.size:0):this.posAtStart+i}
vendor: 10,952 bytes, line 683
683domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return t.type==="characterData"&&t.target.nodeValue==t.oldValue}},Ms=class e extends ga{constructor(t,i,n,o,r){super(t,[],n,o),this.mark=i,this.spec=r}static create(t,i,n,o){let r=o.nodeViews[i.type.name],a=r&&r(i,o,n);return(!a||!a.dom)&&(a=Mo.renderSpec(document,i.type.spec.toDOM(i,n),null,i.attrs)),new e(t,i,a.dom,a.contentDOM||a.dom,a)}parseRule(){return this.dirty&$n||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(t){return this.dirty!=$n&&this.mark.eq(t)}markDirty(t,i){if(super.markDirty(t,i),this.dirty!=fn){let n=this.parent;for(;!n.node;)n=n.parent;n.dirty<this.dirty&&(n.dirty=this.dirty),this.dirty=fn}}slice(t,i,n){let o=e.create(this.parent,this.mark,!0,n),r=this.children,a=this.size;i<a&&(r=kf(r,i,a,n)),t>0&&(r=kf(r,0,t,n));for(let s=0;s<r.length;s++)r[s].parent=o;return o.children=r,o}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}},hr=class e extends ga{constructor(t,i,n,o,r,a,s,l,c){super(t,[],r,a),this.node=i,this.outerDeco=n,this.innerDeco=o,this.nodeDOM=s}static create(t,i,n,o,r,a){let s=r.nodeViews[i.type.name],l,c=s&&s(i,r,()=>{if(!l)return a;if(l.parent)return l.parent.posBeforeChild(l)},n,o),h=c&&c.dom,m=c&&c.contentDOM;if(i.isText){if(!h)h=document.createTextNode(i.text);else if(h.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else h||({dom:h,contentDOM:m}=Mo.renderSpec(document,i.type.spec.toDOM(i),null,i.attrs));!m&&!i.isText&&h.nodeName!="BR"&&(h.hasAttribute("contenteditable")||(h.contentEditable="false"),i.type.spec.draggable&&(h.draggable=!0));let f=h;return h=t2(h,n,i),c?l=new wf(t,i,n,o,h,m||null,f,c,r,a+1):i.isText?new tp(t,i,n,o,h,f,r):new e(t,i,n,o,h,m||null,f,r,a+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(t.preserveWhitespace="full"),!this.contentDOM)t.getContent=()=>this.node.content;else if(!this.contentLost)t.contentElement=this.contentDOM;else{for(let i=this.children.length-1;i>=0;i--){let n=this.children[i];if(this.dom.contains(n.dom.parentNode)){t.contentElement=n.dom.parentNode;break}}t.contentElement||(t.getContent=()=>oe.empty)}return t}matchesNode(t,i,n){return this.dirty==fn&&t.eq(this.node)&&np(i,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,i){let n=this.node.inlineContent,o=i,r=t.composing?this.localCompositionInfo(t,i):null,a=r&&r.pos>-1?r:null,s=r&&r.pos<0,l=new Sf(this,a&&a.node,t);xB(this.node,this.innerDeco,(c,h,m)=>{c.spec.marks?l.syncToMarks(c.spec.marks,n,t,h):c.type.side>=0&&!m&&l.syncToMarks(h==this.node.childCount?Ke.none:this.node.child(h).marks,n,t,h),l.placeWidget(c,t,o)},(c,h,m,f)=>{l.syncToMarks(c.marks,n,t,f);let b;l.findNodeMatch(c,h,m,f)||s&&t.state.selection.from>o&&t.state.selection.to<o+c.nodeSize&&(b=l.findIndexWithChild(r.node))>-1&&l.updateNodeAt(c,h,m,b,t)||l.updateNextNode(c,h,m,t,f,o)||l.addNode(c,h,m,t,o),o+=c.nodeSize}),l.syncToMarks([],n,t,0),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==la)&&(a&&this.protectLocalComposition(t,a),Xx(this.contentDOM,this.children,t),Es&&SB(this.dom))}localCompositionInfo(t,i){let{from:n,to:o}=t.state.selection;if(!(t.state.selection instanceof qe)||n<i||o>i+this.node.content.size)return null;let r=t.input.compositionNode;if(!r||!this.dom.contains(r.parentNode))return null;if(this.node.inlineContent){let a=r.nodeValue,s=kB(this.node.content,a,n-i,o-i);return s<0?null:{node:r,pos:s,text:a}}else return{node:r,pos:-1,text:""}}protectLocalComposition(t,{node:i,pos:n,text:o}){if(this.getDesc(i))return;let r=i;for(;r.parentNode!=this.contentDOM;r=r.parentNode){for(;r.previousSibling;)r.parentNode.removeChild(r.previousSibling);for(;r.nextSibling;)r.parentNode.removeChild(r.nextSibling);r.pmViewDesc&&(r.pmViewDesc=void 0)}let a=new yf(this,r,i,o);t.input.compositionNodes.push(a),this.children=kf(this.children,n,n+o.length,t,a)}update(t,i,n,o){return this.dirty==$n||!t.sameMarkup(this.node)?!1:(this.updateInner(t,i,n,o),!0)}updateInner(t,i,n,o){this.updateOuterDeco(i),this.node=t,this.innerDeco=n,this.contentDOM&&this.updateChildren(o,this.posAtStart),this.dirty=fn}updateOuterDeco(t){if(np(t,this.outerDeco))return;let i=this.nodeDOM.nodeType!=1,n=this.dom;this.dom=e2(this.dom,this.nodeDOM,xf(this.outerDeco,this.node,i),xf(t,this.node,i)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}};function bx(e,t,i,n,o){t2(n,t,e);let r=new hr(void 0,e,t,i,n,n,n,o,0);return r.contentDOM&&r.updateChildren(o,0),r}var tp=class e extends hr{constructor(t,i,n,o,r,a,s){super(t,i,n,o,r,null,a,s,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,i,n,o){return this.dirty==$n||this.dirty!=fn&&!this.inParent()||!t.sameMarkup(this.node)?!1:(this.updateOuterDeco(i),(this.dirty!=fn||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,o.trackWrites==this.nodeDOM&&(o.trackWrites=null)),this.node=t,this.dirty=fn,!0)}inParent(){let t=this.parent.contentDOM;for(let i=this.nodeDOM;i;i=i.parentNode)if(i==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,i,n){return t==this.nodeDOM?this.posAtStart+Math.min(i,this.node.text.length):super.localPosFromDOM(t,i,n)}ignoreMutation(t){return t.type!="characterData"&&t.type!="selection"}slice(t,i,n){let o=this.node.cut(t,i),r=document.createTextNode(o.text);return new e(this.parent,o,this.outerDeco,this.innerDeco,r,r,n)}markDirty(t,i){super.markDirty(t,i),this.dom!=this.nodeDOM&&(t==0||i==this.nodeDOM.nodeValue.length)&&(this.dirty=$n)}get domAtom(){return!1}isText(t){return this.node.text==t}},ip=class extends ga{parseRule(){return{ignore:!0}}matchesHack(t){return this.dirty==fn&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}},wf=class extends hr{constructor(t,i,n,o,r,a,s,l,c,h){super(t,i,n,o,r,a,s,c,h),this.spec=l}update(t,i,n,o){if(this.dirty==$n)return!1;if(this.spec.update&&(this.node.type==t.type||this.spec.multiType)){let r=this.spec.update(t,i,n);return r&&this.updateInner(t,i,n,o),r}else return!this.contentDOM&&!t.isLeaf?!1:super.update(t,i,n,o)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,i,n,o){this.spec.setSelection?this.spec.setSelection(t,i,n.root):super.setSelection(t,i,n,o)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return this.spec.stopEvent?this.spec.stopEvent(t):!1}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}};function Xx(e,t,i){let n=e.firstChild,o=!1;for(let r=0;r<t.length;r++){let a=t[r],s=a.dom;if(s.parentNode==e){for(;s!=n;)n=_x(n),o=!0;n=n.nextSibling}else o=!0,e.insertBefore(s,n);if(a instanceof Ms){let l=n?n.previousSibling:e.lastChild;Xx(a.contentDOM,a.children,i),n=l?l.nextSibling:e.firstChild}}for(;n;)n=_x(n),o=!0;o&&i.trackWrites==e&&(i.trackWrites=null)}var ac=function(e){e&&(this.nodeName=e)};ac.prototype=Object.create(null);var ca=[new ac];function xf(e,t,i){if(e.length==0)return ca;let n=i?ca[0]:new ac,o=[n];for(let r=0;r<e.length;r++){let a=e[r].type.attrs;if(a){a.nodeName&&o.push(n=new ac(a.nodeName));for(let s in a){let l=a[s];l!=null&&(i&&o.length==1&&o.push(n=new ac(t.isInline?"span":"div")),s=="class"?n.class=(n.class?n.class+" ":"")+l:s=="style"?n.style=(n.style?n.style+";":"")+l:s!="nodeName"&&(n[s]=l))}}}return o}function e2(e,t,i,n){if(i==ca&&n==ca)return t;let o=t;for(let r=0;r<n.length;r++){let a=n[r],s=i[r];if(r){let l;s&&s.nodeName==a.nodeName&&o!=e&&(l=o.parentNode)&&l.nodeName.toLowerCase()==a.nodeName||(l=document.createElement(a.nodeName),l.pmIsDeco=!0,l.appendChild(o),s=ca[0]),o=l}_B(o,s||ca[0],a)}return o}function _B(e,t,i){for(let n in t)n!="class"&&n!="style"&&n!="nodeName"&&!(n in i)&&e.removeAttribute(n);for(let n in i)n!="class"&&n!="style"&&n!="nodeName"&&i[n]!=t[n]&&e.setAttribute(n,i[n]);if(t.class!=i.class){let n=t.class?t.class.split(" ").filter(Boolean):[],o=i.class?i.class.split(" ").filter(Boolean):[];for(let r=0;r<n.length;r++)o.indexOf(n[r])==-1&&e.classList.remove(n[r]);for(let r=0;r<o.length;r++)n.indexOf(o[r])==-1&&e.classList.add(o[r]);e.classList.length==0&&e.removeAttribute("class")}if(t.style!=i.style){if(t.style){let n=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,o;for(;o=n.exec(t.style);)e.style.removeProperty(o[1])}i.style&&(e.style.cssText+=i.style)}}function t2(e,t,i){return e2(e,e,ca,xf(t,i,e.nodeType!=1))}function np(e,t){if(e.length!=t.length)return!1;for(let i=0;i<e.length;i++)if(!e[i].type.eq(t[i].type))return!1;return!0}function _x(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}var Sf=class{constructor(t,i,n){this.lock=i,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=t,this.preMatch=yB(t.node.content,t)}destroyBetween(t,i){if(t!=i){for(let n=t;n<i;n++)this.top.children[n].destroy();this.top.children.splice(t,i-t),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(t,i,n,o){let r=0,a=this.stack.length>>1,s=Math.min(a,t.length);for(;r<s&&(r==a-1?this.top:this.stack[r+1<<1]).matchesMark(t[r])&&t[r].type.spec.spanning!==!1;)r++;for(;r<a;)this.destroyRest(),this.top.dirty=fn,this.index=this.stack.pop(),this.top=this.stack.pop(),a--;for(;a<t.length;){this.stack.push(this.top,this.index+1);let l=-1,c=this.top.children.length;o<this.preMatch.index&&(c=Math.min(this.index+3,c));for(let h=this.index;h<c;h++){let m=this.top.children[h];if(m.matchesMark(t[a])&&!this.isLocked(m.dom)){l=h;break}}if(l>-1)l>this.index&&(this.changed=!0,this.destroyBetween(this.index,l)),this.top=this.top.children[this.index];else{let h=Ms.create(this.top,t[a],i,n);this.top.children.splice(this.index,0,h),this.top=h,this.changed=!0}this.index=0,a++}}findNodeMatch(t,i,n,o){let r=-1,a;if(o>=this.preMatch.index&&(a=this.preMatch.matches[o-this.preMatch.index]).parent==this.top&&a.matchesNode(t,i,n))r=this.top.children.indexOf(a,this.index);else for(let s=this.index,l=Math.min(this.top.children.length,s+5
vendor: 12,939 bytes, line 683
683);s<l;s++){let c=this.top.children[s];if(c.matchesNode(t,i,n)&&!this.preMatch.matched.has(c)){r=s;break}}return r<0?!1:(this.destroyBetween(this.index,r),this.index++,!0)}updateNodeAt(t,i,n,o,r){let a=this.top.children[o];return a.dirty==$n&&a.dom==a.contentDOM&&(a.dirty=la),a.update(t,i,n,r)?(this.destroyBetween(this.index,o),this.index++,!0):!1}findIndexWithChild(t){for(;;){let i=t.parentNode;if(!i)return-1;if(i==this.top.contentDOM){let n=t.pmViewDesc;if(n){for(let o=this.index;o<this.top.children.length;o++)if(this.top.children[o]==n)return o}return-1}t=i}}updateNextNode(t,i,n,o,r,a){for(let s=this.index;s<this.top.children.length;s++){let l=this.top.children[s];if(l instanceof hr){let c=this.preMatch.matched.get(l);if(c!=null&&c!=r)return!1;let h=l.dom,m,f=this.isLocked(h)&&!(t.isText&&l.node&&l.node.isText&&l.nodeDOM.nodeValue==t.text&&l.dirty!=$n&&np(i,l.outerDeco));if(!f&&l.update(t,i,n,o))return this.destroyBetween(this.index,s),l.dom!=h&&(this.changed=!0),this.index++,!0;if(!f&&(m=this.recreateWrapper(l,t,i,n,o,a)))return this.destroyBetween(this.index,s),this.top.children[this.index]=m,m.contentDOM&&(m.dirty=la,m.updateChildren(o,a+1),m.dirty=fn),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(t,i,n,o,r,a){if(t.dirty||i.isAtom||!t.children.length||!t.node.content.eq(i.content)||!np(n,t.outerDeco)||!o.eq(t.innerDeco))return null;let s=hr.create(this.top,i,n,o,r,a);if(s.contentDOM){s.children=t.children,t.children=[];for(let l of s.children)l.parent=s}return t.destroy(),s}addNode(t,i,n,o,r){let a=hr.create(this.top,t,i,n,o,r);a.contentDOM&&a.updateChildren(o,r+1),this.top.children.splice(this.index++,0,a),this.changed=!0}placeWidget(t,i,n){let o=this.index<this.top.children.length?this.top.children[this.index]:null;if(o&&o.matchesWidget(t)&&(t==o.widget||!o.widget.type.toDOM.parentNode))this.index++;else{let r=new ep(this.top,t,i,n);this.top.children.splice(this.index++,0,r),this.changed=!0}}addTextblockHacks(){let t=this.top.children[this.index-1],i=this.top;for(;t instanceof Ms;)i=t,t=i.children[i.children.length-1];(!t||!(t instanceof tp)||/\n$/.test(t.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(t.node.text))&&((si||Gt)&&t&&t.dom.contentEditable=="false"&&this.addHackNode("IMG",i),this.addHackNode("BR",this.top))}addHackNode(t,i){if(i==this.top&&this.index<i.children.length&&i.children[this.index].matchesHack(t))this.index++;else{let n=document.createElement(t);t=="IMG"&&(n.className="ProseMirror-separator",n.alt=""),t=="BR"&&(n.className="ProseMirror-trailingBreak");let o=new ip(this.top,[],n,null);i!=this.top?i.children.push(o):i.children.splice(this.index++,0,o),this.changed=!0}}isLocked(t){return this.lock&&(t==this.lock||t.nodeType==1&&t.contains(this.lock.parentNode))}};function yB(e,t){let i=t,n=i.children.length,o=e.childCount,r=new Map,a=[];e:for(;o>0;){let s;for(;;)if(n){let c=i.children[n-1];if(c instanceof Ms)i=c,n=c.children.length;else{s=c,n--;break}}else{if(i==t)break e;n=i.parent.children.indexOf(i),i=i.parent}let l=s.node;if(l){if(l!=e.child(o-1))break;--o,r.set(s,o),a.push(s)}}return{index:o,matched:r,matches:a.reverse()}}function wB(e,t){return e.type.side-t.type.side}function xB(e,t,i,n){let o=t.locals(e),r=0;if(o.length==0){for(let c=0;c<e.childCount;c++){let h=e.child(c);n(h,o,t.forChild(r,h),c),r+=h.nodeSize}return}let a=0,s=[],l=null;for(let c=0;;){let h,m;for(;a<o.length&&o[a].to==r;){let M=o[a++];M.widget&&(h?(m||(m=[h])).push(M):h=M)}if(h)if(m){m.sort(wB);for(let M=0;M<m.length;M++)i(m[M],c,!!l)}else i(h,c,!!l);let f,b;if(l)b=-1,f=l,l=null;else if(c<e.childCount)b=c,f=e.child(c++);else break;for(let M=0;M<s.length;M++)s[M].to<=r&&s.splice(M--,1);for(;a<o.length&&o[a].from<=r&&o[a].to>r;)s.push(o[a++]);let _=r+f.nodeSize;if(f.isText){let M=_;a<o.length&&o[a].from<M&&(M=o[a].from);for(let D=0;D<s.length;D++)s[D].to<M&&(M=s[D].to);M<_&&(l=f.cut(M-r),f=f.cut(0,M-r),_=M,b=-1)}else for(;a<o.length&&o[a].to<_;)a++;let S=f.isInline&&!f.isLeaf?s.filter(M=>!M.inline):s.slice();n(f,S,t.forChild(r,f),b),r=_}}function SB(e){if(e.nodeName=="UL"||e.nodeName=="OL"){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}function kB(e,t,i,n){for(let o=0,r=0;o<e.childCount&&r<=n;){let a=e.child(o++),s=r;if(r+=a.nodeSize,!a.isText)continue;let l=a.text;for(;o<e.childCount;){let c=e.child(o++);if(r+=c.nodeSize,!c.isText)break;l+=c.text}if(r>=i){if(r>=n&&l.slice(n-t.length-s,n-s)==t)return n-t.length;let c=s<n?l.lastIndexOf(t,n-s-1):-1;if(c>=0&&c+t.length+s>=i)return s+c;if(i==n&&l.length>=n+t.length-s&&l.slice(n-s,n-s+t.length)==t)return n}}return-1}function kf(e,t,i,n,o){let r=[];for(let a=0,s=0;a<e.length;a++){let l=e[a],c=s,h=s+=l.size;c>=i||h<=t?r.push(l):(c<t&&r.push(l.slice(0,t-c,n)),o&&(r.push(o),o=void 0),h>i&&r.push(l.slice(i-c,l.size,n)))}return r}function Lf(e,t=null){let i=e.domSelectionRange(),n=e.state.doc;if(!i.focusNode)return null;let o=e.docView.nearestDesc(i.focusNode),r=o&&o.size==0,a=e.docView.posFromDOM(i.focusNode,i.focusOffset,1);if(a<0)return null;let s=n.resolve(a),l,c;if(dp(i)){for(l=a;o&&!o.node;)o=o.parent;let m=o.node;if(o&&m.isAtom&&ke.isSelectable(m)&&o.parent&&!(m.isInline&&tB(i.focusNode,i.focusOffset,o.dom))){let f=o.posBefore;c=new ke(a==f?s:n.resolve(f))}}else{if(i instanceof e.dom.ownerDocument.defaultView.Selection&&i.rangeCount>1){let m=a,f=a;for(let b=0;b<i.rangeCount;b++){let _=i.getRangeAt(b);m=Math.min(m,e.docView.posFromDOM(_.startContainer,_.startOffset,1)),f=Math.max(f,e.docView.posFromDOM(_.endContainer,_.endOffset,-1))}if(m<0)return null;[l,a]=f==e.state.selection.anchor?[f,m]:[m,f],s=n.resolve(a)}else l=e.docView.posFromDOM(i.anchorNode,i.anchorOffset,1);if(l<0)return null}let h=n.resolve(l);if(!c){let m=t=="pointer"||e.state.selection.head<s.pos&&!r?1:-1;c=Nf(e,h,s,m)}return c}function i2(e){return e.editable?e.hasFocus():o2(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function Ro(e,t=!1){let i=e.state.selection;if(n2(e,i),!!i2(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&Gt){let n=e.domSelectionRange(),o=e.domObserver.currentSelection;if(n.anchorNode&&o.anchorNode&&ha(n.anchorNode,n.anchorOffset,o.anchorNode,o.anchorOffset)){e.input.mouseDown.delayedSelectionSync=!0,e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)MB(e);else{let{anchor:n,head:o}=i,r,a;yx&&!(i instanceof qe)&&(i.$from.parent.inlineContent||(r=wx(e,i.from)),!i.empty&&!i.$from.parent.inlineContent&&(a=wx(e,i.to))),e.docView.setSelection(n,o,e,t),yx&&(r&&xx(r),a&&xx(a)),i.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&EB(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}var yx=si||Gt&&Wx<63;function wx(e,t){let{node:i,offset:n}=e.docView.domFromPos(t,0),o=n<i.childNodes.length?i.childNodes[n]:null,r=n?i.childNodes[n-1]:null;if(si&&o&&o.contentEditable=="false")return hf(o);if((!o||o.contentEditable=="false")&&(!r||r.contentEditable=="false")){if(o)return hf(o);if(r)return hf(r)}}function hf(e){return e.contentEditable="true",si&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function xx(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function EB(e){let t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.input.hideSelectionGuard);let i=e.domSelectionRange(),n=i.anchorNode,o=i.anchorOffset;t.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{(i.anchorNode!=n||i.anchorOffset!=o)&&(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!i2(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function MB(e){let t=e.domSelection();if(!t)return;let i=e.cursorWrapper.dom,n=i.nodeName=="IMG";n?t.collapse(i.parentNode,Ht(i)+1):t.collapse(i,0),!n&&!e.state.selection.visible&&Oi&&pr<=11&&(i.disabled=!0,i.disabled=!1)}function n2(e,t){if(t instanceof ke){let i=e.docView.descAt(t.from);i!=e.lastSelectedViewDesc&&(Sx(e),i&&i.selectNode(),e.lastSelectedViewDesc=i)}else Sx(e)}function Sx(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function Nf(e,t,i,n){return e.someProp("createSelectionBetween",o=>o(e,t,i))||qe.between(t,i,n)}function kx(e){return e.editable&&!e.hasFocus()?!1:o2(e)}function o2(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function TB(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),i=e.domSelectionRange();return ha(t.node,t.offset,i.anchorNode,i.anchorOffset)}function Ef(e,t){let{$anchor:i,$head:n}=e.selection,o=t>0?i.max(n):i.min(n),r=o.parent.inlineContent?o.depth?e.doc.resolve(t>0?o.after():o.before()):null:o;return r&&Oe.findFrom(r,t)}function dr(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Ex(e,t,i){let n=e.state.selection;if(n instanceof qe)if(i.indexOf("s")>-1){let{$head:o}=n,r=o.textOffset?null:t<0?o.nodeBefore:o.nodeAfter;if(!r||r.isText||!r.isLeaf)return!1;let a=e.state.doc.resolve(o.pos+r.nodeSize*(t<0?-1:1));return dr(e,new qe(n.$anchor,a))}else if(n.empty){if(e.endOfTextblock(t>0?"forward":"backward")){let o=Ef(e.state,t);return o&&o instanceof ke?dr(e,o):!1}else if(!(hn&&i.indexOf("m")>-1)){let o=n.$head,r=o.textOffset?null:t<0?o.nodeBefore:o.nodeAfter,a;if(!r||r.isText)return!1;let s=t<0?o.pos-r.nodeSize:o.pos;return r.isAtom||(a=e.docView.descAt(s))&&!a.contentDOM?ke.isSelectable(r)?dr(e,new ke(t<0?e.state.doc.resolve(o.pos-r.nodeSize):o)):hc?dr(e,new qe(e.state.doc.resolve(t<0?s:s+r.nodeSize))):!1:!1}}else return!1;else{if(n instanceof ke&&n.node.isInline)return dr(e,new qe(t>0?n.$to:n.$from));{let o=Ef(e.state,t);return o?dr(e,o):!1}}}function op(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function sc(e,t){let i=e.pmViewDesc;return i&&i.size==0&&(t<0||e.nextSibling||e.nodeName!="BR")}function ws(e,t){return t<0?IB(e):DB(e)}function IB(e){let t=e.domSelectionRange(),i=t.focusNode,n=t.focusOffset;if(!i)return;let o,r,a=!1;for(mn&&i.nodeType==1&&n<op(i)&&sc(i.childNodes[n],-1)&&(a=!0);;)if(n>0){if(i.nodeType!=1)break;{let s=i.childNodes[n-1];if(sc(s,-1))o=i,r=--n;else if(s.nodeType==3)i=s,n=i.nodeValue.length;else break}}else{if(r2(i))break;{let s=i.previousSibling;for(;s&&sc(s,-1);)o=i.parentNode,r=Ht(s),s=s.previousSibling;if(s)i=s,n=op(i);else{if(i=i.parentNode,i==e.dom)break;n=0}}}a?Mf(e,i,n):o&&Mf(e,o,r)}function DB(e){let t=e.domSelectionRange(),i=t.focusNode,n=t.focusOffset;if(!i)return;let o=op(i),r,a;for(;;)if(n<o){if(i.nodeType!=1)break;let s=i.childNodes[n];if(sc(s,1))r=i,a=++n;else break}else{if(r2(i))break;{let s=i.nextSibling;for(;s&&sc(s,1);)r=s.parentNode,a=Ht(s)+1,s=s.nextSibling;if(s)i=s,n=0,o=op(i);else{if(i=i.parentNode,i==e.dom)break;n=o=0}}}r&&Mf(e,r,a)}function r2(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function PB(e,t){for(;e&&t==e.childNodes.length&&!pc(e);)t=Ht(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let i=e.childNodes[t];if(i.nodeType==3)return i;if(i.nodeType==1&&i.contentEditable=="false")break;e=i,t=0}}function RB(e,t){for(;e&&!t&&!pc(e);)t=Ht(e),e=e.parentNode;for(;e&&t;){let i=e.childNodes[t-1];if(i.nodeType==3)return i;if(i.nodeType==1&&i.contentEditable=="false")break;e=i,t=e.childNodes.length}}function Mf(e,t,i){if(t.nodeType!=3){let r,a;(a=PB(t,i))?(t=a,i=0):(r=RB(t,i))&&(t=r,i=r.nodeValue.length)}let n=e.domSelection();if(!n)return;if(dp(n)){let r=document.createRange();r.setEnd(t,i),r.setStart(t,i),n.removeAllRanges(),n.addRange(r)}else n.extend&&n.extend(t,i);e.domObserver.setCurSelection();let{state:o}=e;setTimeout(()=>{e.state==o&&Ro(e)},50)}function Mx(e,t){let i=e.state.doc.resolve(t);if(!(Gt||$x)&&i.parent.inlineContent){let o=e.coordsAtPos(t);if(t>i.start()){let r=e.coordsAtPos(t-1),a=(r.top+r.bottom)/2;if(a>o.top&&a<o.bottom&&Math.abs(r.left-o.left)>1)return r.left<o.left?"ltr":"rtl"}if(t<i.end()){let r=e.coordsAtPos(t+1),a=(r.top+r.bottom)/2;if(a>o.top&&a<o.bottom&&Math.abs(r.left-o.left)>1)return r.left>o.left?"ltr":"rtl"}}return getComputedStyle(e.dom).direction=="rtl"?"rtl":"ltr"}function Tx(e,t,i){let n=e.state.selection;if(n instanceof qe&&!n.empty||i.indexOf("s")>-1||hn&&i.indexOf("m")>-1)return!1;let{$from:o,$to:r}=n;if(!o.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let a=Ef(e.state,t);if(a&&a instanceof ke)return dr(e,a)}if(!o.parent.inlineContent){let a=t<0?o:r,s=n instanceof Ki?Oe.near(a,t):Oe.findFrom(a,t);return s?dr(e,s):!1}return!1}function Ix(e,t){if(!(e.state.selection instanceof qe))return!0;let{$head:i,$anchor:n,empty:o}=e.state.selection;if(!i.sameParent(n))return!0;
vendor: 4,801 bytes, lines 683-686
683if(!o)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let r=!i.textOffset&&(t<0?i.nodeBefore:i.nodeAfter);if(r&&!r.isText){let a=e.state.tr;return t<0?a.delete(i.pos-r.nodeSize,i.pos):a.delete(i.pos,i.pos+r.nodeSize),e.dispatch(a),!0}return!1}function Dx(e,t,i){e.domObserver.stop(),t.contentEditable=i,e.domObserver.start()}function FB(e){if(!si||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:i}=e.domSelectionRange();if(t&&t.nodeType==1&&i==0&&t.firstChild&&t.firstChild.contentEditable=="false"){let n=t.firstChild;Dx(e,n,"true"),setTimeout(()=>Dx(e,n,"false"),20)}return!1}function OB(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function AB(e,t){let i=t.keyCode,n=OB(t);if(i==8||hn&&i==72&&n=="c")return Ix(e,-1)||ws(e,-1);if(i==46&&!t.shiftKey||hn&&i==68&&n=="c")return Ix(e,1)||ws(e,1);if(i==13||i==27)return!0;if(i==37||hn&&i==66&&n=="c"){let o=i==37?Mx(e,e.state.selection.from)=="ltr"?-1:1:-1;return Ex(e,o,n)||ws(e,o)}else if(i==39||hn&&i==70&&n=="c"){let o=i==39?Mx(e,e.state.selection.from)=="ltr"?1:-1:1;return Ex(e,o,n)||ws(e,o)}else{if(i==38||hn&&i==80&&n=="c")return Tx(e,-1,n)||ws(e,-1);if(i==40||hn&&i==78&&n=="c")return FB(e)||Tx(e,1,n)||ws(e,1);if(n==(hn?"m":"c")&&(i==66||i==73||i==89||i==90))return!0}return!1}function zf(e,t){e.someProp("transformCopied",b=>{t=b(t,e)});let i=[],{content:n,openStart:o,openEnd:r}=t;for(;o>1&&r>1&&n.childCount==1&&n.firstChild.childCount==1;){o--,r--;let b=n.firstChild;i.push(b.type.name,b.attrs!=b.type.defaultAttrs?b.attrs:null),n=b.content}let a=e.someProp("clipboardSerializer")||Mo.fromSchema(e.state.schema),s=u2(),l=s.createElement("div");l.appendChild(a.serializeFragment(n,{document:s}));let c=l.firstChild,h,m=0;for(;c&&c.nodeType==1&&(h=d2[c.nodeName.toLowerCase()]);){for(let b=h.length-1;b>=0;b--){let _=s.createElement(h[b]);for(;l.firstChild;)_.appendChild(l.firstChild);l.appendChild(_),m++}c=l.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${o} ${r}${m?` -${m}`:""} ${JSON.stringify(i)}`);let f=e.someProp("clipboardTextSerializer",b=>b(t,e))||t.content.textBetween(0,t.content.size,` 684 685`);return{dom:l,text:f,slice:t}}function a2(e,t,i,n,o){let r=o.parent.type.spec.code,a,s;if(!i&&!t)return null;let l=!!t&&(n||r||!i);if(l){if(e.someProp("transformPastedText",f=>{t=f(t,r||n,e)}),r)return s=new me(oe.from(e.state.schema.text(t.replace(/\r\n?/g,` 686`))),0,0),e.someProp("transformPasted",f=>{s=f(s,e,!0)}),s;let m=e.someProp("clipboardTextParser",f=>f(t,o,n,e));if(m)s=m;else{let f=o.marks(),{schema:b}=e.state,_=Mo.fromSchema(b);a=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(S=>{let M=a.appendChild(document.createElement("p"));S&&M.appendChild(_.serializeNode(b.text(S,f)))})}}else e.someProp("transformPastedHTML",m=>{i=m(i,e)}),a=BB(i),hc&&VB(a);let c=a&&a.querySelector("[data-pm-slice]"),h=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(h&&h[3])for(let m=+h[3];m>0;m--){let f=a.firstChild;for(;f&&f.nodeType!=1;)f=f.nextSibling;if(!f)break;a=f}if(s||(s=(e.someProp("clipboardParser")||e.someProp("domParser")||sr.fromSchema(e.state.schema)).parseSlice(a,{preserveWhitespace:!!(l||h),context:o,ruleFromNode(f){return f.nodeName=="BR"&&!f.nextSibling&&f.parentNode&&!LB.test(f.parentNode.nodeName)?{ignore:!0}:null}})),h)s=HB(Px(s,+h[1],+h[2]),h[4]);else if(s=me.maxOpen(NB(s.content,o),!0),s.openStart||s.openEnd){let m=0,f=0;for(let b=s.content.firstChild;m<s.openStart&&!b.type.spec.isolating;m++,b=b.firstChild);for(let b=s.content.lastChild;f<s.openEnd&&!b.type.spec.isolating;f++,b=b.lastChild);s=Px(s,m,f)}return e.someProp("transformPasted",m=>{s=m(s,e,l)}),s}var LB=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function NB(e,t){if(e.childCount<2)return e;for(let i=t.depth;i>=0;i--){let o=t.node(i).contentMatchAt(t.index(i)),r,a=[];if(e.forEach(s=>{if(!a)return;let l=o.findWrapping(s.type),c;if(!l)return a=null;if(c=a.length&&r.length&&l2(l,r,s,a[a.length-1],0))a[a.length-1]=c;else{a.length&&(a[a.length-1]=c2(a[a.length-1],r.length));let h=s2(s,l);a.push(h),o=o.matchType(h.type),r=l}}),a)return oe.from(a)}return e}function s2(e,t,i=0){for(let n=t.length-1;n>=i;n--)e=t[n].create(null,oe.from(e));return e}function l2(e,t,i,n,o){if(o<e.length&&o<t.length&&e[o]==t[o]){let r=l2(e,t,i,n.lastChild,o+1);if(r)return n.copy(n.content.replaceChild(n.childCount-1,r));if(n.contentMatchAt(n.childCount).matchType(o==e.length-1?i.type:e[o+1]))return n.copy(n.content.append(oe.from(s2(i,e,o+1))))}}function c2(e,t){if(t==0)return e;let i=e.content.replaceChild(e.childCount-1,c2(e.lastChild,t-1)),n=e.contentMatchAt(e.childCount).fillBefore(oe.empty,!0);return e.copy(i.append(n))}
vendor: 10,782 bytes, line 686
686function Tf(e,t,i,n,o,r){let a=t<0?e.firstChild:e.lastChild,s=a.content;return e.childCount>1&&(r=0),o<n-1&&(s=Tf(s,t,i,n,o+1,r)),o>=i&&(s=t<0?a.contentMatchAt(0).fillBefore(s,r<=o).append(s):s.append(a.contentMatchAt(a.childCount).fillBefore(oe.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(s))}function Px(e,t,i){return t<e.openStart&&(e=new me(Tf(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),i<e.openEnd&&(e=new me(Tf(e.content,1,i,e.openEnd,0,0),e.openStart,i)),e}var d2={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]},Rx=null;function u2(){return Rx||(Rx=document.implementation.createHTMLDocument("title"))}var gf=null;function zB(e){let t=window.trustedTypes;return t?(gf||(gf=t.defaultPolicy||t.createPolicy("ProseMirrorClipboard",{createHTML:i=>i})),gf.createHTML(e)):e}function BB(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let i=u2().createElement("div"),n=/<([a-z][^>\s]+)/i.exec(e),o;if((o=n&&d2[n[1].toLowerCase()])&&(e=o.map(r=>"<"+r+">").join("")+e+o.map(r=>"</"+r+">").reverse().join("")),i.innerHTML=zB(e),o)for(let r=0;r<o.length;r++)i=i.querySelector(o[r])||i;return i}function VB(e){let t=e.querySelectorAll(Gt?"span:not([class]):not([style])":"span.Apple-converted-space");for(let i=0;i<t.length;i++){let n=t[i];n.childNodes.length==1&&n.textContent=="\xA0"&&n.parentNode&&n.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),n)}}function HB(e,t){if(!e.size)return e;let i=e.content.firstChild.type.schema,n;try{n=JSON.parse(t)}catch{return e}let{content:o,openStart:r,openEnd:a}=e;for(let s=n.length-2;s>=0;s-=2){let l=i.nodes[n[s]];if(!l||l.hasRequiredAttrs())break;o=oe.from(l.create(n[s+1],o)),r++,a++}return new me(o,r,a)}var ki={},Ei={},GB={touchstart:!0,touchmove:!0},If=class{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}};function UB(e){for(let t in ki){let i=ki[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=n=>{WB(e,n)&&!Bf(e,n)&&(e.editable||!(n.type in Ei))&&i(e,n)},GB[t]?{passive:!0}:void 0)}si&&e.dom.addEventListener("input",()=>null),Df(e)}function ur(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function jB(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function Df(e){e.someProp("handleDOMEvents",t=>{for(let i in t)e.input.eventHandlers[i]||e.dom.addEventListener(i,e.input.eventHandlers[i]=n=>Bf(e,n))})}function Bf(e,t){return e.someProp("handleDOMEvents",i=>{let n=i[t.type];return n?n(e,t)||t.defaultPrevented:!1})}function WB(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let i=t.target;i!=e.dom;i=i.parentNode)if(!i||i.nodeType==11||i.pmViewDesc&&i.pmViewDesc.stopEvent(t))return!1;return!0}function $B(e,t){!Bf(e,t)&&ki[t.type]&&(e.editable||!(t.type in Ei))&&ki[t.type](e,t)}Ei.keydown=(e,t)=>{let i=t;if(e.input.shiftKey=i.keyCode==16||i.shiftKey,!h2(e,i)&&(e.input.lastKeyCode=i.keyCode,e.input.lastKeyCodeTime=Date.now(),!(Po&&Gt&&i.keyCode==13)))if(i.keyCode!=229&&e.domObserver.forceFlush(),Es&&i.keyCode==13&&!i.ctrlKey&&!i.altKey&&!i.metaKey){let n=Date.now();e.input.lastIOSEnter=n,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==n&&(e.someProp("handleKeyDown",o=>o(e,sa(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",n=>n(e,i))||AB(e,i)?i.preventDefault():ur(e,"key")};Ei.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)};Ei.keypress=(e,t)=>{let i=t;if(h2(e,i)||!i.charCode||i.ctrlKey&&!i.altKey||hn&&i.metaKey)return;if(e.someProp("handleKeyPress",o=>o(e,i))){i.preventDefault();return}let n=e.state.selection;if(!(n instanceof qe)||!n.$from.sameParent(n.$to)){let o=String.fromCharCode(i.charCode),r=()=>e.state.tr.insertText(o).scrollIntoView();!/[\r\n]/.test(o)&&!e.someProp("handleTextInput",a=>a(e,n.$from.pos,n.$to.pos,o,r))&&e.dispatch(r()),i.preventDefault()}};function up(e){return{left:e.clientX,top:e.clientY}}function qB(e,t){let i=t.x-e.clientX,n=t.y-e.clientY;return i*i+n*n<100}function Vf(e,t,i,n,o){if(n==-1)return!1;let r=e.state.doc.resolve(n);for(let a=r.depth+1;a>0;a--)if(e.someProp(t,s=>a>r.depth?s(e,i,r.nodeAfter,r.before(a),o,!0):s(e,i,r.node(a),r.before(a),o,!1)))return!0;return!1}function Ss(e,t,i){if(e.focused||e.focus(),e.state.selection.eq(t))return;let n=e.state.tr.setSelection(t);i=="pointer"&&n.setMeta("pointer",!0),e.dispatch(n)}function YB(e,t){if(t==-1)return!1;let i=e.state.doc.resolve(t),n=i.nodeAfter;return n&&n.isAtom&&ke.isSelectable(n)?(Ss(e,new ke(i),"pointer"),!0):!1}function KB(e,t){if(t==-1)return!1;let i=e.state.selection,n,o;i instanceof ke&&(n=i.node);let r=e.state.doc.resolve(t);for(let a=r.depth+1;a>0;a--){let s=a>r.depth?r.nodeAfter:r.node(a);if(ke.isSelectable(s)){n&&i.$from.depth>0&&a>=i.$from.depth&&r.before(i.$from.depth+1)==i.$from.pos?o=r.before(i.$from.depth):o=r.before(a);break}}return o!=null?(Ss(e,ke.create(e.state.doc,o),"pointer"),!0):!1}function QB(e,t,i,n,o){return Vf(e,"handleClickOn",t,i,n)||e.someProp("handleClick",r=>r(e,t,n))||(o?KB(e,i):YB(e,i))}function JB(e,t,i,n){return Vf(e,"handleDoubleClickOn",t,i,n)||e.someProp("handleDoubleClick",o=>o(e,t,n))}function ZB(e,t,i,n){return Vf(e,"handleTripleClickOn",t,i,n)||e.someProp("handleTripleClick",o=>o(e,t,n))||XB(e,i,n)}function XB(e,t,i){if(i.button!=0)return!1;let n=e.state.doc;if(t==-1)return n.inlineContent?(Ss(e,qe.create(n,0,n.content.size),"pointer"),!0):!1;let o=n.resolve(t);for(let r=o.depth+1;r>0;r--){let a=r>o.depth?o.nodeAfter:o.node(r),s=o.before(r);if(a.inlineContent)Ss(e,qe.create(n,s+1,s+1+a.content.size),"pointer");else if(ke.isSelectable(a))Ss(e,ke.create(n,s),"pointer");else continue;return!0}}function Hf(e){return rp(e)}var p2=hn?"metaKey":"ctrlKey";ki.mousedown=(e,t)=>{let i=t;e.input.shiftKey=i.shiftKey;let n=Hf(e),o=Date.now(),r="singleClick";o-e.input.lastClick.time<500&&qB(i,e.input.lastClick)&&!i[p2]&&e.input.lastClick.button==i.button&&(e.input.lastClick.type=="singleClick"?r="doubleClick":e.input.lastClick.type=="doubleClick"&&(r="tripleClick")),e.input.lastClick={time:o,x:i.clientX,y:i.clientY,type:r,button:i.button};let a=e.posAtCoords(up(i));a&&(r=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new Pf(e,a,i,!!n)):(r=="doubleClick"?JB:ZB)(e,a.pos,a.inside,i)?i.preventDefault():ur(e,"pointer"))};var Pf=class{constructor(t,i,n,o){this.view=t,this.pos=i,this.event=n,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!n[p2],this.allowDefault=n.shiftKey;let r,a;if(i.inside>-1)r=t.state.doc.nodeAt(i.inside),a=i.inside;else{let h=t.state.doc.resolve(i.pos);r=h.parent,a=h.depth?h.before():0}let s=o?null:n.target,l=s?t.docView.nearestDesc(s,!0):null;this.target=l&&l.nodeDOM.nodeType==1?l.nodeDOM:null;let{selection:c}=t.state;(n.button==0&&r.type.spec.draggable&&r.type.spec.selectable!==!1||c instanceof ke&&c.from<=a&&c.to>a)&&(this.mightDrag={node:r,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&mn&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),ur(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Ro(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let i=this.pos;this.view.state.doc!=this.startDoc&&(i=this.view.posAtCoords(up(t))),this.updateAllowDefault(t),this.allowDefault||!i?ur(this.view,"pointer"):QB(this.view,i.pos,i.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||si&&this.mightDrag&&!this.mightDrag.node.isAtom||Gt&&!this.view.state.selection.visible&&Math.min(Math.abs(i.pos-this.view.state.selection.from),Math.abs(i.pos-this.view.state.selection.to))<=2)?(Ss(this.view,Oe.near(this.view.state.doc.resolve(i.pos)),"pointer"),t.preventDefault()):ur(this.view,"pointer")}move(t){this.updateAllowDefault(t),ur(this.view,"pointer"),t.buttons==0&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}};ki.touchstart=e=>{e.input.lastTouch=Date.now(),Hf(e),ur(e,"pointer")};ki.touchmove=e=>{e.input.lastTouch=Date.now(),ur(e,"pointer")};ki.contextmenu=e=>Hf(e);function h2(e,t){return e.composing?!0:si&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}var eV=Po?5e3:-1;Ei.compositionstart=Ei.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,i=t.selection.$to;if(t.selection instanceof qe&&(t.storedMarks||!i.textOffset&&i.parentOffset&&i.nodeBefore.marks.some(n=>n.type.spec.inclusive===!1)||Gt&&$x&&tV(e)))e.markCursor=e.state.storedMarks||i.marks(),rp(e,!0),e.markCursor=null;else if(rp(e,!t.selection.empty),mn&&t.selection.empty&&i.parentOffset&&!i.textOffset&&i.nodeBefore.marks.length){let n=e.domSelectionRange();for(let o=n.focusNode,r=n.focusOffset;o&&o.nodeType==1&&r!=0;){let a=r<0?o.lastChild:o.childNodes[r-1];if(!a)break;if(a.nodeType==3){let s=e.domSelection();s&&s.collapse(a,a.nodeValue.length);break}else o=a,r=-1}}e.input.composing=!0}g2(e,eV)};function tV(e){let{focusNode:t,focusOffset:i}=e.domSelectionRange();if(!t||t.nodeType!=1||i>=t.childNodes.length)return!1;let n=t.childNodes[i];
vendor: 5,565 bytes, line 686
686return n.nodeType==1&&n.contentEditable=="false"}Ei.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.badSafariComposition?e.domObserver.forceFlush():e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,g2(e,20))};function g2(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>rp(e),t))}function m2(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=nV());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function iV(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let i=Xz(t.focusNode,t.focusOffset),n=eB(t.focusNode,t.focusOffset);if(i&&n&&i!=n){let o=n.pmViewDesc,r=e.domObserver.lastChangedTextNode;if(i==r||n==r)return r;if(!o||!o.isText(n.nodeValue))return n;if(e.input.compositionNode==n){let a=i.pmViewDesc;if(!(!a||!a.isText(i.nodeValue)))return n}}return i||n}function nV(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function rp(e,t=!1){if(!(Po&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),m2(e),t||e.docView&&e.docView.dirty){let i=Lf(e),n=e.state.selection;return i&&!i.eq(n)?e.dispatch(e.state.tr.setSelection(i)):(e.markCursor||t)&&!n.$from.node(n.$from.sharedDepth(n.to)).inlineContent?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}function oV(e,t){if(!e.dom.parentNode)return;let i=e.dom.parentNode.appendChild(document.createElement("div"));i.appendChild(t),i.style.cssText="position: fixed; left: -10000px; top: 10px";let n=getSelection(),o=document.createRange();o.selectNodeContents(t),e.dom.blur(),n.removeAllRanges(),n.addRange(o),setTimeout(()=>{i.parentNode&&i.parentNode.removeChild(i),e.focus()},50)}var lc=Oi&&pr<15||Es&&oB<604;ki.copy=Ei.cut=(e,t)=>{let i=t,n=e.state.selection,o=i.type=="cut";if(n.empty)return;let r=lc?null:i.clipboardData,a=n.content(),{dom:s,text:l}=zf(e,a);r?(i.preventDefault(),r.clearData(),r.setData("text/html",s.innerHTML),r.setData("text/plain",l)):oV(e,s),o&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function rV(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function aV(e,t){if(!e.dom.parentNode)return;let i=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,n=e.dom.parentNode.appendChild(document.createElement(i?"textarea":"div"));i||(n.contentEditable="true"),n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus();let o=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),n.parentNode&&n.parentNode.removeChild(n),i?cc(e,n.value,null,o,t):cc(e,n.textContent,n.innerHTML,o,t)},50)}function cc(e,t,i,n,o){let r=a2(e,t,i,n,e.state.selection.$from);if(e.someProp("handlePaste",l=>l(e,o,r||me.empty)))return!0;if(!r)return!1;let a=rV(r),s=a?e.state.tr.replaceSelectionWith(a,n):e.state.tr.replaceSelection(r);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function f2(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let i=e.getData("text/uri-list");return i?i.replace(/\r?\n/g," "):""}Ei.paste=(e,t)=>{let i=t;if(e.composing&&!Po)return;let n=lc?null:i.clipboardData,o=e.input.shiftKey&&e.input.lastKeyCode!=45;n&&cc(e,f2(n),n.getData("text/html"),o,i)?i.preventDefault():aV(e,i)};var ap=class{constructor(t,i,n){this.slice=t,this.move=i,this.node=n}},sV=hn?"altKey":"ctrlKey";function v2(e,t){let i=e.someProp("dragCopies",n=>!n(t));return i??!t[sV]}ki.dragstart=(e,t)=>{let i=t,n=e.input.mouseDown;if(n&&n.done(),!i.dataTransfer)return;let o=e.state.selection,r=o.empty?null:e.posAtCoords(up(i)),a;if(!(r&&r.pos>=o.from&&r.pos<=(o instanceof ke?o.to-1:o.to))){if(n&&n.mightDrag)a=ke.create(e.state.doc,n.mightDrag.pos);else if(i.target&&i.target.nodeType==1){let m=e.docView.nearestDesc(i.target,!0);m&&m.node.type.spec.draggable&&m!=e.docView&&(a=ke.create(e.state.doc,m.posBefore))}}let s=(a||e.state.selection).content(),{dom:l,text:c,slice:h}=zf(e,s);(!i.dataTransfer.files.length||!Gt||Wx>120)&&i.dataTransfer.clearData(),i.dataTransfer.setData(lc?"Text":"text/html",l.innerHTML),i.dataTransfer.effectAllowed="copyMove",lc||i.dataTransfer.setData("text/plain",c),e.dragging=new ap(h,v2(e,i),a)};ki.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)};Ei.dragover=Ei.dragenter=(e,t)=>t.preventDefault();Ei.drop=(e,t)=>{try{lV(e,t,e.dragging)}finally{e.dragging=null}};function lV(e,t,i){if(!t.dataTransfer)return;let n=e.posAtCoords(up(t));if(!n)return;let o=e.state.doc.resolve(n.pos),r=i&&i.slice;r?e.someProp("transformPasted",b=>{r=b(r,e,!1)}):r=a2(e,f2(t.dataTransfer),lc?null:t.dataTransfer.getData("text/html"),!1,o);let a=!!(i&&v2(e,t));if(e.someProp("handleDrop",b=>b(e,t,r||me.empty,a))){t.preventDefault();return}if(!r)return;t.preventDefault();let s=r?Zw(e.state.doc,o.pos,r):o.pos;s==null&&(s=o.pos);let l=e.state.tr;if(a){let{node:b}=i;b?b.replace(l):l.deleteSelection()}let c=l.mapping.map(s),h=r.openStart==0&&r.openEnd==0&&r.content.childCount==1,m=l.doc;if(h?l.replaceRangeWith(c,c,r.content.firstChild):l.replaceRange(c,c,r),l.doc.eq(m))return;let f=l.doc.resolve(c);if(h&&ke.isSelectable(r.content.firstChild)&&f.nodeAfter&&f.nodeAfter.sameMarkup(r.content.firstChild))l.setSelection(new ke(f));else{let b=l.mapping.map(s);
vendor: 4,335 bytes, line 686
686l.mapping.maps[l.mapping.maps.length-1].forEach((_,S,M,D)=>b=D),l.setSelection(Nf(e,f,l.doc.resolve(b)))}e.focus(),e.dispatch(l.setMeta("uiEvent","drop"))}ki.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&Ro(e)},20))};ki.blur=(e,t)=>{let i=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),i.relatedTarget&&e.dom.contains(i.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)};ki.beforeinput=(e,t)=>{if(Gt&&Po&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:n}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=n||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",r=>r(e,sa(8,"Backspace")))))return;let{$cursor:o}=e.state.selection;o&&o.pos>0&&e.dispatch(e.state.tr.delete(o.pos-1,o.pos).scrollIntoView())},50)}};for(let e in Ei)ki[e]=Ei[e];function dc(e,t){if(e==t)return!0;for(let i in e)if(e[i]!==t[i])return!1;for(let i in t)if(!(i in e))return!1;return!0}var sp=class e{constructor(t,i){this.toDOM=t,this.spec=i||ua,this.side=this.spec.side||0}map(t,i,n,o){let{pos:r,deleted:a}=t.mapResult(i.from+o,this.side<0?-1:1);return a?null:new qn(r-n,r-n,this)}valid(){return!0}eq(t){return this==t||t instanceof e&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&dc(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}},da=class e{constructor(t,i){this.attrs=t,this.spec=i||ua}map(t,i,n,o){let r=t.map(i.from+o,this.spec.inclusiveStart?-1:1)-n,a=t.map(i.to+o,this.spec.inclusiveEnd?1:-1)-n;return r>=a?null:new qn(r,a,this)}valid(t,i){return i.from<i.to}eq(t){return this==t||t instanceof e&&dc(this.attrs,t.attrs)&&dc(this.spec,t.spec)}static is(t){return t.type instanceof e}destroy(){}},Rf=class e{constructor(t,i){this.attrs=t,this.spec=i||ua}map(t,i,n,o){let r=t.mapResult(i.from+o,1);if(r.deleted)return null;let a=t.mapResult(i.to+o,-1);return a.deleted||a.pos<=r.pos?null:new qn(r.pos-n,a.pos-n,this)}valid(t,i){let{index:n,offset:o}=t.content.findIndex(i.from),r;return o==i.from&&!(r=t.child(n)).isText&&o+r.nodeSize==i.to}eq(t){return this==t||t instanceof e&&dc(this.attrs,t.attrs)&&dc(this.spec,t.spec)}destroy(){}},qn=class e{constructor(t,i,n){this.from=t,this.to=i,this.type=n}copy(t,i){return new e(t,i,this.type)}eq(t,i=0){return this.type.eq(t.type)&&this.from+i==t.from&&this.to+i==t.to}map(t,i,n){return this.type.map(t,this,i,n)}static widget(t,i,n){return new e(t,t,new sp(i,n))}static inline(t,i,n,o){return new e(t,i,new da(n,o))}static node(t,i,n,o){return new e(t,i,new Rf(n,o))}get spec(){return this.type.spec}get inline(){return this.type instanceof da}get widget(){return this.type instanceof sp}},xs=[],ua={},Si=class e{constructor(t,i){this.local=t.length?t:xs,this.children=i.length?i:xs}static create(t,i){return i.length?cp(i,t,0,ua):ai}find(t,i,n){let o=[];return this.findInner(t??0,i??1e9,o,0,n),o}findInner(t,i,n,o,r){for(let a=0;a<this.local.length;a++){let s=this.local[a];s.from<=i&&s.to>=t&&(!r||r(s.spec))&&n.push(s.copy(s.from+o,s.to+o))}for(let a=0;a<this.children.length;a+=3)if(this.children[a]<i&&this.children[a+1]>t){let s=this.children[a]+1;this.children[a+2].findInner(t-s,i-s,n,o+s,r)}}map(t,i,n){return this==ai||t.maps.length==0?this:this.mapInner(t,i,0,0,n||ua)}mapInner(t,i,n,o,r){let a;for(let s=0;s<this.local.length;s++){let l=this.local[s].map(t,n,o);l&&l.type.valid(i,l)?(a||(a=[])).push(l):r.onRemove&&r.onRemove(this.local[s].spec)}return this.children.length?cV(this.children,a||[],t,i,n,o,r):a?new e(a.sort(pa),xs):ai}add(t,i){return i.length?this==ai?e.create(t,i):this.addInner(t,i,0):this}addInner(t,i,n){let o,r=0;t.forEach((s,l)=>{let c=l+n,h;if(h=b2(i,s,c)){for(o||(o=this.children.slice());r<o.length&&o[r]<l;)r+=3;o[r]==l?o[r+2]=o[r+2].addInner(s,h,c+1):o.splice(r,0,l,l+s.nodeSize,cp(h,s,c+1,ua)),r+=3}});let a=C2(r?_2(i):i,-n);for(let s=0;s<a.length;s++)a[s].type.valid(t,a[s])||a.splice(s--,1);return new e(a.length?this.local.concat(a).sort(pa):this.local,o||this.children)}remove(t){return t.length==0||this==ai?this:this.removeInner(t,0)}removeInner(t,i){let n=this.children,o=this.local;for(let r=0;r<n.length;
vendor: 2,579 bytes, line 686
686r+=3){let a,s=n[r]+i,l=n[r+1]+i;for(let h=0,m;h<t.length;h++)(m=t[h])&&m.from>s&&m.to<l&&(t[h]=null,(a||(a=[])).push(m));if(!a)continue;n==this.children&&(n=this.children.slice());let c=n[r+2].removeInner(a,s+1);c!=ai?n[r+2]=c:(n.splice(r,3),r-=3)}if(o.length){for(let r=0,a;r<t.length;r++)if(a=t[r])for(let s=0;s<o.length;s++)o[s].eq(a,i)&&(o==this.local&&(o=this.local.slice()),o.splice(s--,1))}return n==this.children&&o==this.local?this:o.length||n.length?new e(o,n):ai}forChild(t,i){if(this==ai)return this;if(i.isLeaf)return e.empty;let n,o;for(let s=0;s<this.children.length;s+=3)if(this.children[s]>=t){this.children[s]==t&&(n=this.children[s+2]);break}let r=t+1,a=r+i.content.size;for(let s=0;s<this.local.length;s++){let l=this.local[s];if(l.from<a&&l.to>r&&l.type instanceof da){let c=Math.max(r,l.from)-r,h=Math.min(a,l.to)-r;c<h&&(o||(o=[])).push(l.copy(c,h))}}if(o){let s=new e(o.sort(pa),xs);return n?new lp([s,n]):s}return n||ai}eq(t){if(this==t)return!0;if(!(t instanceof e)||this.local.length!=t.local.length||this.children.length!=t.children.length)return!1;for(let i=0;i<this.local.length;i++)if(!this.local[i].eq(t.local[i]))return!1;for(let i=0;i<this.children.length;i+=3)if(this.children[i]!=t.children[i]||this.children[i+1]!=t.children[i+1]||!this.children[i+2].eq(t.children[i+2]))return!1;return!0}locals(t){return Gf(this.localsInner(t))}localsInner(t){if(this==ai)return xs;if(t.inlineContent||!this.local.some(da.is))return this.local;let i=[];for(let n=0;n<this.local.length;n++)this.local[n].type instanceof da||i.push(this.local[n]);return i}forEachSet(t){t(this)}};Si.empty=new Si([],[]);Si.removeOverlap=Gf;var ai=Si.empty,lp=class e{constructor(t){this.members=t}map(t,i){let n=this.members.map(o=>o.map(t,i,ua));return e.from(n)}forChild(t,i){if(i.isLeaf)return Si.empty;let n=[];for(let o=0;o<this.members.length;o++){let r=this.members[o].forChild(t,i);r!=ai&&(r instanceof e?n=n.concat(r.members):n.push(r))}return e.from(n)}eq(t){if(!(t instanceof e)||t.members.length!=this.members.length)return!1;for(let i=0;i<this.members.length;i++)if(!this.members[i].eq(t.members[i]))return!1;return!0}locals(t){let i,n=!0;for(let o=0;o<this.members.length;o++){let r=this.members[o].localsInner(t);if(r.length)if(!i)i=r;else{n&&(i=i.slice(),n=!1);for(let a=0;a<r.length;a++)i.push(r[a])}}return i?Gf(n?i:i.sort(pa)):xs}static from(t){switch(t.length){case 0:return ai;case 1:return t[0];default:return new e(t.every(i=>i instanceof Si)?t:t.reduce((i,n)=>i.concat(n instanceof Si?n:n.members),[]))}}forEachSet(t){for(let i=0;i<this.members.length;
vendor: 12,913 bytes, line 686
686i++)this.members[i].forEachSet(t)}};function cV(e,t,i,n,o,r,a){let s=e.slice();for(let c=0,h=r;c<i.maps.length;c++){let m=0;i.maps[c].forEach((f,b,_,S)=>{let M=S-_-(b-f);for(let D=0;D<s.length;D+=3){let I=s[D+1];if(I<0||f>I+h-m)continue;let F=s[D]+h-m;b>=F?s[D+1]=f<=F?-2:-1:f>=h&&M&&(s[D]+=M,s[D+1]+=M)}m+=M}),h=i.maps[c].map(h,-1)}let l=!1;for(let c=0;c<s.length;c+=3)if(s[c+1]<0){if(s[c+1]==-2){l=!0,s[c+1]=-1;continue}let h=i.map(e[c]+r),m=h-o;if(m<0||m>=n.content.size){l=!0;continue}let f=i.map(e[c+1]+r,-1),b=f-o,{index:_,offset:S}=n.content.findIndex(m),M=n.maybeChild(_);if(M&&S==m&&S+M.nodeSize==b){let D=s[c+2].mapInner(i,M,h+1,e[c]+r+1,a);D!=ai?(s[c]=m,s[c+1]=b,s[c+2]=D):(s[c+1]=-2,l=!0)}else l=!0}if(l){let c=dV(s,e,t,i,o,r,a),h=cp(c,n,0,a);t=h.local;for(let m=0;m<s.length;m+=3)s[m+1]<0&&(s.splice(m,3),m-=3);for(let m=0,f=0;m<h.children.length;m+=3){let b=h.children[m];for(;f<s.length&&s[f]<b;)f+=3;s.splice(f,0,h.children[m],h.children[m+1],h.children[m+2])}}return new Si(t.sort(pa),s)}function C2(e,t){if(!t||!e.length)return e;let i=[];for(let n=0;n<e.length;n++){let o=e[n];i.push(new qn(o.from+t,o.to+t,o.type))}return i}function dV(e,t,i,n,o,r,a){function s(l,c){for(let h=0;h<l.local.length;h++){let m=l.local[h].map(n,o,c);m?i.push(m):a.onRemove&&a.onRemove(l.local[h].spec)}for(let h=0;h<l.children.length;h+=3)s(l.children[h+2],l.children[h]+c+1)}for(let l=0;l<e.length;l+=3)e[l+1]==-1&&s(e[l+2],t[l]+r+1);return i}function b2(e,t,i){if(t.isLeaf)return null;let n=i+t.nodeSize,o=null;for(let r=0,a;r<e.length;r++)(a=e[r])&&a.from>i&&a.to<n&&((o||(o=[])).push(a),e[r]=null);return o}function _2(e){let t=[];for(let i=0;i<e.length;i++)e[i]!=null&&t.push(e[i]);return t}function cp(e,t,i,n){let o=[],r=!1;t.forEach((s,l)=>{let c=b2(e,s,l+i);if(c){r=!0;let h=cp(c,s,i+l+1,n);h!=ai&&o.push(l,l+s.nodeSize,h)}});let a=C2(r?_2(e):e,-i).sort(pa);for(let s=0;s<a.length;s++)a[s].type.valid(t,a[s])||(n.onRemove&&n.onRemove(a[s].spec),a.splice(s--,1));return a.length||o.length?new Si(a,o):ai}function pa(e,t){return e.from-t.from||e.to-t.to}function Gf(e){let t=e;for(let i=0;i<t.length-1;i++){let n=t[i];if(n.from!=n.to)for(let o=i+1;o<t.length;o++){let r=t[o];if(r.from==n.from){r.to!=n.to&&(t==e&&(t=e.slice()),t[o]=r.copy(r.from,n.to),Fx(t,o+1,r.copy(n.to,r.to)));continue}else{r.from<n.to&&(t==e&&(t=e.slice()),t[i]=n.copy(n.from,r.from),Fx(t,o,n.copy(r.from,n.to)));break}}}return t}function Fx(e,t,i){for(;t<e.length&&pa(i,e[t])>0;)t++;e.splice(t,0,i)}function mf(e){let t=[];return e.someProp("decorations",i=>{let n=i(e.state);n&&n!=ai&&t.push(n)}),e.cursorWrapper&&t.push(Si.create(e.state.doc,[e.cursorWrapper.deco])),lp.from(t)}var uV={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},pV=Oi&&pr<=11,Ff=class{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}},Of=class{constructor(t,i){this.view=t,this.handleDOMChange=i,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new Ff,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(n=>{for(let o=0;o<n.length;o++)this.queue.push(n[o]);Oi&&pr<=11&&n.some(o=>o.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():si&&t.composing&&n.some(o=>o.type=="childList"&&o.target.nodeName=="TR")?(t.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),pV&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,uV)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let i=0;i<t.length;i++)this.queue.push(t[i]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(kx(this.view)){if(this.suppressingSelectionUpdates)return Ro(this.view);if(Oi&&pr<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&ha(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let i=new Set,n;for(let r=t.focusNode;r;r=ks(r))i.add(r);for(let r=t.anchorNode;r;r=ks(r))if(i.has(r)){n=r;break}let o=n&&this.view.docView.nearestDesc(n);if(o&&o.ignoreMutation({type:"selection",target:n.nodeType==3?n.parentNode:n}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let i=this.pendingRecords();i.length&&(this.queue=[]);let n=t.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&kx(t)&&!this.ignoreSelectionChange(n),r=-1,a=-1,s=!1,l=[];if(t.editable)for(let h=0;h<i.length;h++){let m=this.registerMutation(i[h],l);m&&(r=r<0?m.from:Math.min(m.from,r),a=a<0?m.to:Math.max(m.to,a),m.typeOver&&(s=!0))}if(l.some(h=>h.nodeName=="BR")&&(t.input.lastKeyCode==8||t.input.lastKeyCode==46)){for(let h of l)if(h.nodeName=="BR"&&h.parentNode){let m=h.nextSibling;m&&m.nodeType==1&&m.contentEditable=="false"&&h.parentNode.removeChild(h)}}else if(mn&&l.length){let h=l.filter(m=>m.nodeName=="BR");if(h.length==2){let[m,f]=h;m.parentNode&&m.parentNode.parentNode==f.parentNode?f.remove():m.remove()}else{let{focusNode:m}=this.currentSelection;for(let f of h){let b=f.parentNode;b&&b.nodeName=="LI"&&(!m||mV(t,m)!=b)&&f.remove()}}}let c=null;r<0&&o&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)<Date.now()-300&&dp(n)&&(c=Lf(t))&&c.eq(Oe.near(t.state.doc.resolve(0),1))?(t.input.lastFocus=0,Ro(t),this.currentSelection.set(n),t.scrollToSelection()):(r>-1||o)&&(r>-1&&(t.docView.markDirty(r,a),hV(t)),t.input.badSafariComposition&&(t.input.badSafariComposition=!1,fV(t,l)),this.handleDOMChange(r,a,s,l),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(n)||Ro(t),this.currentSelection.set(n))}registerMutation(t,i){if(i.indexOf(t.target)>-1)return null;let n=this.view.docView.nearestDesc(t.target);if(t.type=="attributes"&&(n==this.view.docView||t.attributeName=="contenteditable"||t.attributeName=="style"&&!t.oldValue&&!t.target.getAttribute("style"))||!n||n.ignoreMutation(t))return null;if(t.type=="childList"){for(let h=0;h<t.addedNodes.length;h++){let m=t.addedNodes[h];i.push(m),m.nodeType==3&&(this.lastChangedTextNode=m)}if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(t.target))return{from:n.posBefore,to:n.posAfter};let o=t.previousSibling,r=t.nextSibling;if(Oi&&pr<=11&&t.addedNodes.length)for(let h=0;h<t.addedNodes.length;h++){let{previousSibling:m,nextSibling:f}=t.addedNodes[h];(!m||Array.prototype.indexOf.call(t.addedNodes,m)<0)&&(o=m),(!f||Array.prototype.indexOf.call(t.addedNodes,f)<0)&&(r=f)}let a=o&&o.parentNode==t.target?Ht(o)+1:0,s=n.localPosFromDOM(t.target,a,-1),l=r&&r.parentNode==t.target?Ht(r):t.target.childNodes.length,c=n.localPosFromDOM(t.target,l,1);return{from:s,to:c}}else return t.type=="attributes"?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:(this.lastChangedTextNode=t.target,{from:n.posAtStart,to:n.posAtEnd,typeOver:t.target.nodeValue==t.oldValue})}},Ox=new WeakMap,Ax=!1;function hV(e){if(!Ox.has(e)&&(Ox.set(e,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace)!==-1)){if(e.requiresGeckoHackNode=mn,Ax)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),Ax=!0}}function Lx(e,t){let i=t.startContainer,n=t.startOffset,o=t.endContainer,r=t.endOffset,a=e.domAtPos(e.state.selection.anchor);return ha(a.node,a.offset,o,r)&&([i,n,o,r]=[o,r,i,n]),{anchorNode:i,anchorOffset:n,focusNode:o,focusOffset:r}}function gV(e,t){if(t.getComposedRanges){let o=t.getComposedRanges(e.root)[0];if(o)return Lx(e,o)}let i;function n(o){o.preventDefault(),o.stopImmediatePropagation(),i=o.getTargetRanges()[0]}return e.dom.addEventListener("beforeinput",n,!0),document.execCommand("indent"),e.dom.removeEventListener("beforeinput",n,!0),i?Lx(e,i):null}function mV(e,t){for(let i=t.parentNode;i&&i!=e.dom;i=i.parentNode){let n=e.docView.nearestDesc(i,!0);if(n&&n.node.isBlock)return i}return null}function fV(e,t){var i;let{focusNode:n,focusOffset:o}=e.domSelectionRange();for(let r of t)if(((i=r.parentNode)===null||i===void 0?void 0:i.nodeName)=="TR"){let a=r.nextSibling;for(;a&&a.nodeName!="TD"&&a.nodeName!="TH";)a=a.nextSibling;if(a){let s=a;for(;;){let l=s.firstChild;if(!l||l.nodeType!=1||l.contentEditable=="false"||/^(BR|IMG)$/.test(l.nodeName))break;s=l}s.insertBefore(r,s.firstChild),n==r&&e.domSelection().collapse(r,o)}else r.parentNode.removeChild(r)}}function vV(e,t,i){let{node:n,fromOffset:o,toOffset:r,from:a,to:s}=e.docView.parseRange(t,i),l=e.domSelectionRange(),c,h=l.anchorNode;if(h&&e.dom.contains(h.nodeType==1?h:h.parentNode)&&(c=[{node:h,offset:l.anchorOffset}],dp(l)||c.push({node:l.focusNode,offset:l.focusOffset})),Gt&&e.input.lastKeyCode===8)for(let M=r;M>o;M--){let D=n.childNodes[M-1],I=D.pmViewDesc;if(D.nodeName=="BR"&&!I){r=M;break}if(!I||I.size)break}let m=e.state.doc,f=e.someProp("domParser")||sr.fromSchema(e.state.schema),b=m.resolve(a),_=null,S=f.parse(n,{topNode:b.parent,topMatch:b.parent.contentMatchAt(b.index()),topOpen:!0,from:o,to:r,preserveWhitespace:b.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:CV,context:b});if(c&&c[0].pos!=null){let M=c[0].pos,D=c[1]&&c[1].pos;D==null&&(D=M),_={anchor:M+a,head:D+a}}return{doc:S,sel:_,from:a,to:s}}function CV(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(si&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let i=document.createElement("div");return i.appendChild(document.createElement("li")),{skip:i}}else if(e.parentNode.lastChild==e||si&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName=="IMG"&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}var bV=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function _V(e,t,i,n,o){let r=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let q=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,ce=Lf(e,q);if(ce&&!e.state.selection.eq(ce)){if(Gt&&Po&&e.input.lastKeyCode===13&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp("handleKeyDown",Et=>Et(e,sa(13,"Enter"))))return;let _e=e.state.tr.setSelection(ce);q=="pointer"?_e.setMeta("pointer",!0):q=="key"&&_e.scrollIntoView(),r&&_e.setMeta("composition",r),e.dispatch(_e)}return}let a=e.state.doc.resolve(t),s=a.sharedDepth(i);t=a.before(s+1),i=e.state.doc.resolve(i).after(s+1);let l=e.state.selection,c=vV(e,t,i),h=e.state.doc,m=h.slice(c.from,c.to),f,b;e.input.lastKeyCode===8&&Date.now()-100<e.input.lastKeyCodeTime?(f=e.state.selection.to,b="end"):(f=e.state.selection.from,b="start"),e.input.lastKeyCode=null;let _=xV(m.content,c.doc.content,c.from,f,b);if(_&&e.input.domChangeCount++,(Es&&e.input.lastIOSEnter>Date.now()-225||Po)&&o.some(q=>q.nodeType==1&&!bV.test(q.nodeName))&&(!_||_.endA>=_.endB)&&e.someProp("handleKeyDown",q=>q(e,sa(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!_)if(n&&l instanceof qe&&!l.empty&&l.$head.sameParent(l.$anchor)&&!e.composing&&!(c.sel&&c.sel.anchor!=c.sel.head)
vendor: 8,668 bytes, line 686
686)_={start:l.from,endA:l.to,endB:l.to};else{if(c.sel){let q=Nx(e,e.state.doc,c.sel);if(q&&!q.eq(e.state.selection)){let ce=e.state.tr.setSelection(q);r&&ce.setMeta("composition",r),e.dispatch(ce)}}return}e.state.selection.from<e.state.selection.to&&_.start==_.endB&&e.state.selection instanceof qe&&(_.start>e.state.selection.from&&_.start<=e.state.selection.from+2&&e.state.selection.from>=c.from?_.start=e.state.selection.from:_.endA<e.state.selection.to&&_.endA>=e.state.selection.to-2&&e.state.selection.to<=c.to&&(_.endB+=e.state.selection.to-_.endA,_.endA=e.state.selection.to)),Oi&&pr<=11&&_.endB==_.start+1&&_.endA==_.start&&_.start>c.from&&c.doc.textBetween(_.start-c.from-1,_.start-c.from+1)==" \xA0"&&(_.start--,_.endA--,_.endB--);let S=c.doc.resolveNoCache(_.start-c.from),M=c.doc.resolveNoCache(_.endB-c.from),D=h.resolve(_.start),I=S.sameParent(M)&&S.parent.inlineContent&&D.end()>=_.endA;if((Es&&e.input.lastIOSEnter>Date.now()-225&&(!I||o.some(q=>q.nodeName=="DIV"||q.nodeName=="P"))||!I&&S.pos<c.doc.content.size&&(!S.sameParent(M)||!S.parent.inlineContent)&&S.pos<M.pos&&!/\S/.test(c.doc.textBetween(S.pos,M.pos,"","")))&&e.someProp("handleKeyDown",q=>q(e,sa(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>_.start&&wV(h,_.start,_.endA,S,M)&&e.someProp("handleKeyDown",q=>q(e,sa(8,"Backspace")))){Po&&Gt&&e.domObserver.suppressSelectionUpdates();return}Gt&&_.endB==_.start&&(e.input.lastChromeDelete=Date.now()),Po&&!I&&S.start()!=M.start()&&M.parentOffset==0&&S.depth==M.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==_.endA&&(_.endB-=2,M=c.doc.resolveNoCache(_.endB-c.from),setTimeout(()=>{e.someProp("handleKeyDown",function(q){return q(e,sa(13,"Enter"))})},20));let F=_.start,W=_.endA,re=q=>{let ce=q||e.state.tr.replace(F,W,c.doc.slice(_.start-c.from,_.endB-c.from));if(c.sel){let _e=Nx(e,ce.doc,c.sel);_e&&!(Gt&&e.composing&&_e.empty&&(_.start!=_.endB||e.input.lastChromeDelete<Date.now()-100)&&(_e.head==F||_e.head==ce.mapping.map(W)-1)||Oi&&_e.empty&&_e.head==F)&&ce.setSelection(_e)}return r&&ce.setMeta("composition",r),ce.scrollIntoView()},Z;if(I)if(S.pos==M.pos){Oi&&pr<=11&&S.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>Ro(e),20));let q=re(e.state.tr.delete(F,W)),ce=h.resolve(_.start).marksAcross(h.resolve(_.endA));ce&&q.ensureMarks(ce),e.dispatch(q)}else if(_.endA==_.endB&&(Z=yV(S.parent.content.cut(S.parentOffset,M.parentOffset),D.parent.content.cut(D.parentOffset,_.endA-D.start())))){let q=re(e.state.tr);Z.type=="add"?q.addMark(F,W,Z.mark):q.removeMark(F,W,Z.mark),e.dispatch(q)}else if(S.parent.child(S.index()).isText&&S.index()==M.index()-(M.textOffset?0:1)){let q=S.parent.textBetween(S.parentOffset,M.parentOffset),ce=()=>re(e.state.tr.insertText(q,F,W));e.someProp("handleTextInput",_e=>_e(e,F,W,q,ce))||e.dispatch(ce())}else e.dispatch(re());else e.dispatch(re())}function Nx(e,t,i){return Math.max(i.anchor,i.head)>t.content.size?null:Nf(e,t.resolve(i.anchor),t.resolve(i.head))}function yV(e,t){let i=e.firstChild.marks,n=t.firstChild.marks,o=i,r=n,a,s,l;for(let h=0;h<n.length;h++)o=n[h].removeFromSet(o);for(let h=0;h<i.length;h++)r=i[h].removeFromSet(r);if(o.length==1&&r.length==0)s=o[0],a="add",l=h=>h.mark(s.addToSet(h.marks));else if(o.length==0&&r.length==1)s=r[0],a="remove",l=h=>h.mark(s.removeFromSet(h.marks));else return null;let c=[];for(let h=0;h<t.childCount;h++)c.push(l(t.child(h)));if(oe.from(c).eq(e))return{mark:s,type:a}}function wV(e,t,i,n,o){if(i-t<=o.pos-n.pos||ff(n,!0,!1)<o.pos)return!1;let r=e.resolve(t);if(!n.parent.isTextblock){let s=r.nodeAfter;return s!=null&&i==t+s.nodeSize}if(r.parentOffset<r.parent.content.size||!r.parent.isTextblock)return!1;let a=e.resolve(ff(r,!0,!0));return!a.parent.isTextblock||a.pos>i||ff(a,!0,!1)<i?!1:n.parent.content.cut(n.parentOffset).eq(a.parent.content)}function ff(e,t,i){let n=e.depth,o=t?e.end():e.pos;for(;n>0&&(t||e.indexAfter(n)==e.node(n).childCount);)n--,o++,t=!1;if(i){let r=e.node(n).maybeChild(e.indexAfter(n));for(;r&&!r.isLeaf;)r=r.firstChild,o++}return o}function xV(e,t,i,n,o){let r=e.findDiffStart(t,i);if(r==null)return null;let{a,b:s}=e.findDiffEnd(t,i+e.size,i+t.size);if(o=="end"){let l=Math.max(0,r-Math.min(a,s));n-=a+l-r}if(a<r&&e.size<t.size){let l=n<=r&&n>=a?r-n:0;r-=l,r&&r<t.size&&zx(t.textBetween(r-1,r+1))&&(r+=l?1:-1),s=r+(s-a),a=r}else if(s<r){let l=n<=r&&n>=s?r-n:0;r-=l,r&&r<e.size&&zx(e.textBetween(r-1,r+1))&&(r+=l?1:-1),a=r+(a-s),s=r}return{start:r,endA:a,endB:s}}function zx(e){if(e.length!=2)return!1;let t=e.charCodeAt(0),i=e.charCodeAt(1);return t>=56320&&t<=57343&&i>=55296&&i<=56319}var uc=class{constructor(t,i){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new If,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=i,this.state=i.state,this.directPlugins=i.plugins||[],this.directPlugins.forEach(Ux),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):typeof t=="function"?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=Hx(this),Vx(this),this.nodeViews=Gx(this),this.docView=bx(this.state.doc,Bx(this),mf(this),this.dom,this),this.domObserver=new Of(this,(n,o,r,a)=>_V(this,n,o,r,a)),this.domObserver.start(),UB(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let i in t)this._props[i]=t[i];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&Df(this);let i=this._props;this._props=t,t.plugins&&(t.plugins.forEach(Ux),this.directPlugins=t.plugins),this.updateStateInner(t.state,i)}setProps(t){let i={};for(let n in this._props)i[n]=this._props[n];i.state=this.state;for(let n in t)i[n]=t[n];this.update(i)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,i){var n;let o=this.state,r=!1,a=!1;t.storedMarks&&this.composing&&(m2(this),a=!0),this.state=t;let s=o.plugins!=t.plugins||this._props.plugins!=i.plugins;if(s||this._props.plugins!=i.plugins||this._props.nodeViews!=i.nodeViews){let b=Gx(this);kV(b,this.nodeViews)&&(this.nodeViews=b,r=!0)}(s||i.handleDOMEvents!=this._props.handleDOMEvents)&&Df(this),this.editable=Hx(this),Vx(this);let l=mf(this),c=Bx(this),h=o.plugins!=t.plugins&&!o.doc.eq(t.doc)?"reset":t.scrollToSelection>o.scrollToSelection?"to selection":"preserve",m=r||!this.docView.matchesNode(t.doc,c,l);(m||!t.selection.eq(o.selection))&&(a=!0);let f=h=="preserve"&&a&&this.dom.style.overflowAnchor==null&&sB(this);if(a){this.domObserver.stop();let b=m&&(Oi||Gt)&&!this.composing&&!o.selection.empty&&!t.selection.empty&&SV(o.selection,t.selection);if(m){let _=Gt?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=iV(this)),(r||!this.docView.update(t.doc,c,l,this))&&(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=bx(t.doc,c,l,this.dom,this)),_&&(!this.trackWrites||!this.dom.contains(this.trackWrites))&&(b=!0)}b||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&TB(this))?Ro(this,b):(n2(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(o),!((n=this.dragging)===null||n===void 0)&&n.node&&!o.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,o),h=="reset"?this.dom.scrollTop=0:h=="to selection"?this.scrollToSelection():f&&lB(f)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!(!t||!this.dom.contains(t.nodeType==1?t:t.parentNode))){if(!this.someProp("handleScrollToSelection",i=>i(this)))if(this.state.selection instanceof ke){let i=this.docView.domAfterPos(this.state.selection.from);i.nodeType==1&&hx(this,i.getBoundingClientRect(),t)}else hx(this,this.coordsAtPos(this.state.selection.head,1),t)}}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(!t||t.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let i=0;i<this.directPlugins.length;i++){let n=this.directPlugins[i];n.spec.view&&this.pluginViews.push(n.spec.view(this))}for(let i=0;i<this.state.plugins.length;i++){let n=this.state.plugins[i];n.spec.view&&this.pluginViews.push(n.spec.view(this))}}else for(let i=0;i<this.pluginViews.length;i++){let n=this.pluginViews[i];n.update&&n.update(this,t)}}updateDraggedNode(t,i){let n=t.node,o=-1;if(this.state.doc.nodeAt(n.from)==n.node)o=n.from;
686else{let r=n.from+(this.state.doc.content.size-i.doc.content.size);(r>0&&this.state.doc.nodeAt(r))==n.node&&(o=r)}this.dragging=new ap(t.slice,t.move,o<0?void 0:ke.create(this.state.doc,o))}someProp(t,i){let n=this._props&&this._props[t],o;if(n!=null&&(o=i?i(n):n))return o;for(let a=0;a<this.directPlugins.length;a++){let s=this.directPlugins[a].props[t];if(s!=null&&(o=i?i(s):s))return o}let r=this.state.plugins;if(r)for(let a=0;a<r.length;a++){let s=r[a].props[t];if(s!=null&&(o=i?i(s):s))return o}}hasFocus(){if(Oi){let t=this.root.activeElement;if(t==this.dom)return!0;if(!t||!this.dom.contains(t))return!1;for(;t&&this.dom!=t&&this.dom.contains(t);){if(t.contentEditable=="false")return!1;t=t.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&cB(this.dom),Ro(this),this.domObserver.start()}get root(){let t=this._root;if(t==null){for(let i=this.dom.parentNode;i;i=i.parentNode)if(i.nodeType==9||i.nodeType==11&&i.host)return i.getSelection||(Object.getPrototypeOf(i).getSelection=()=>i.ownerDocument.getSelection()),this._root=i}return t||document}updateRoot(){this._root=null}posAtCoords(t){return gB(this,t)}coordsAtPos(t,i=1){return Jx(this,t,i)}domAtPos(t,i=0){return this.docView.domFromPos(t,i)}nodeDOM(t){let i=this.docView.descAt(t);return i?i.nodeDOM:null}posAtDOM(t,i,n=-1){let o=this.docView.posFromDOM(t,i,n);if(o==null)throw new RangeError("DOM position not inside the editor");return o}endOfTextblock(t,i){return bB(this,i||this.state,t)}pasteHTML(t,i){return cc(this,"",t,!1,i||new ClipboardEvent("paste"))}pasteText(t,i){return cc(this,t,null,!0,i||new ClipboardEvent("paste"))}serializeForClipboard(t){return zf(this,t)}destroy(){this.docView&&(jB(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],mf(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,Jz())}get isDestroyed(){return this.docView==null}dispatchEvent(t){return $B(this,t)}domSelectionRange(){let t=this.domSelection();return t?si&&this.root.nodeType===11&&iB(this.dom.ownerDocument)==this.dom&&gV(this,t)||t:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}};uc.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))};function Bx(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",i=>{if(typeof i=="function"&&(i=i(e.state)),i)for(let n in i)n=="class"?t.class+=" "+i[n]:n=="style"?t.style=(t.style?t.style+";":"")+i[n]:!t[n]&&n!="contenteditable"&&n!="nodeName"&&(t[n]=String(i[n]))}),t.translate||(t.translate="no"),[qn.node(0,e.state.doc.content.size,t)]}function Vx(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:qn.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function Hx(e){return!e.someProp("editable",t=>t(e.state)===!1)}function SV(e,t){let i=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(i)!=t.$anchor.start(i)}function Gx(e){let t=Object.create(null);function i(n){for(let o in n)Object.prototype.hasOwnProperty.call(t,o)||(t[o]=n[o])}return e.someProp("nodeViews",i),e.someProp("markViews",i),t}function kV(e,t){let i=0,n=0;for(let o in e){if(e[o]!=t[o])return!0;i++}for(let o in t)n++;return i!=n}function Ux(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var EV=["ol",0],MV=["ul",0],TV=["li",0],y2={attrs:{order:{default:1,validate:"number"}},parseDOM:[{tag:"ol",getAttrs(e){return{order:e.hasAttribute("start")?+e.getAttribute("start"):1}}}],toDOM(e){return e.attrs.order==1?EV:["ol",{start:e.attrs.order},0]}},w2={parseDOM:[{tag:"ul"}],toDOM(){return MV}},x2={parseDOM:[{tag:"li"}],toDOM(){return TV},defining:!0};function S2(e,t=null){return function(i,n){let{$from:o,$to:r}=i.selection,a=o.blockRange(r);if(!a)return!1;let s=n?i.tr:null;return IV(s,a,e,t)?(n&&n(s.scrollIntoView()),!0):!1}}function IV(e,t,i,n=null){let o=!1,r=t,a=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(i)&&t.startIndex==0){if(t.$from.index(t.depth-1)==0)return!1;let l=a.resolve(t.start-2);r=new ta(l,l,t.depth),t.endIndex<t.parent.childCount&&(t=new ta(t.$from,a.resolve(t.$to.end(t.depth)),t.depth)),o=!0}let s=Cs(r,i,n,t);return s?(e&&DV(e,t,s,o,i),!0):!1}function DV(e,t,i,n,o){let r=oe.empty;for(let h=i.length-1;h>=0;h--)r=oe.from(i[h].type.create(i[h].attrs,r));e.step(new Ot(t.start-(n?2:0),t.end,t.start,t.end,new me(r,0,0),i.length,!0));let a=0;for(let h=0;h<i.length;h++)i[h].type==o&&(a=h+1);let s=i.length-a,l=t.start+i.length-(n?2:0),c=t.parent;for(let h=t.startIndex,m=t.endIndex,f=!0;h<m;
686h++,f=!1)!f&&lr(e.doc,l,s)&&(e.split(l,s),l+=2*s),l+=c.child(h).nodeSize;return e}function k2(e,t){return function(i,n){let{$from:o,$to:r,node:a}=i.selection;if(a&&a.isBlock||o.depth<2||!o.sameParent(r))return!1;let s=o.node(-1);if(s.type!=e)return!1;if(o.parent.content.size==0&&o.node(-1).childCount==o.indexAfter(-1)){if(o.depth==3||o.node(-3).type!=e||o.index(-2)!=o.node(-2).childCount-1)return!1;if(n){let m=oe.empty,f=o.index(-1)?1:o.index(-2)?2:3;for(let D=o.depth-f;D>=o.depth-3;D--)m=oe.from(o.node(D).copy(m));let b=o.indexAfter(-1)<o.node(-2).childCount?1:o.indexAfter(-2)<o.node(-3).childCount?2:3;m=m.append(oe.from(e.createAndFill()));let _=o.before(o.depth-(f-1)),S=i.tr.replace(_,o.after(-b),new me(m,4-f,0)),M=-1;S.doc.nodesBetween(_,S.doc.content.size,(D,I)=>{if(M>-1)return!1;D.isTextblock&&D.content.size==0&&(M=I+1)}),M>-1&&S.setSelection(Oe.near(S.doc.resolve(M))),n(S.scrollIntoView())}return!0}let l=r.pos==o.end()?s.contentMatchAt(0).defaultType:null,c=i.tr.delete(o.pos,r.pos),h=l?[t?{type:e,attrs:t}:null,{type:l}]:void 0;return lr(c.doc,o.pos,2,h)?(n&&n(c.split(o.pos,2,h).scrollIntoView()),!0):!1}}function Uf(e){return function(t,i){let{$from:n,$to:o}=t.selection,r=n.blockRange(o,a=>a.childCount>0&&a.firstChild.type==e);return r?i?n.node(r.depth-1).type==e?PV(t,i,e,r):RV(t,i,r):!0:!1}}function PV(e,t,i,n){let o=e.tr,r=n.end,a=n.$to.end(n.depth);r<a&&(o.step(new Ot(r-1,a,r,a,new me(oe.from(i.create(null,n.parent.copy())),1,0),1,!0)),n=new ta(o.doc.resolve(n.$from.pos),o.doc.resolve(a),n.depth));let s=oa(n);if(s==null)return!1;o.lift(n,s);let l=o.doc.resolve(o.mapping.map(r,-1)-1);return ra(o.doc,l.pos)&&l.nodeBefore.type==l.nodeAfter.type&&o.join(l.pos),t(o.scrollIntoView()),!0}function RV(e,t,i){let n=e.tr,o=i.parent;for(let b=i.end,_=i.endIndex-1,S=i.startIndex;_>S;_--)b-=o.child(_).nodeSize,n.delete(b-1,b+1);let r=n.doc.resolve(i.start),a=r.nodeAfter;if(n.mapping.map(i.end)!=i.start+r.nodeAfter.nodeSize)return!1;let s=i.startIndex==0,l=i.endIndex==o.childCount,c=r.node(-1),h=r.index(-1);if(!c.canReplace(h+(s?0:1),h+1,a.content.append(l?oe.empty:oe.from(o))))return!1;let m=r.pos,f=m+a.nodeSize;return n.step(new Ot(m-(s?1:0),f+(l?1:0),m+1,f-1,new me((s?oe.empty:oe.from(o.copy(oe.empty))).append(l?oe.empty:oe.from(o.copy(oe.empty))),s?0:1,l?0:1),s?0:1)),t(n.scrollIntoView()),!0}function jf(e){return function(t,i){let{$from:n,$to:o}=t.selection,r=n.blockRange(o,c=>c.childCount>0&&c.firstChild.type==e);if(!r)return!1;let a=r.startIndex;if(a==0)return!1;let s=r.parent,l=s.child(a-1);if(l.type!=e)return!1;if(i){let c=l.lastChild&&l.lastChild.type==s.type,h=oe.from(c?e.create():null),m=new me(oe.from(e.create(null,oe.from(s.type.create(null,h)))),c?3:1,0),f=r.start,b=r.end;i(t.tr.step(new Ot(f-(c?3:1),b,f,b,m,1,!0)).scrollIntoView())}return!0}}var OV={attrs:{href:{},title:{default:null},target:{default:"_blank"}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs(e){return{href:e.getAttribute("href"),title:e.getAttribute("title"),target:e.getAttribute("target")}}}],toDOM(e){let{href:t,title:i,target:n}=e.attrs;return["a",{href:t,title:i,target:n},0]}},AV={parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"}],toDOM(){return["em",0]}},LV={parseDOM:[{tag:"strong"},{tag:"b",getAttrs:e=>e.style.fontWeight!=="normal"&&null},{style:"font-weight",getAttrs:e=>/^(?:bold(?:er)?|[5-9]\d{2,})$/.test(e)&&null}],toDOM(){return["strong",0]}},NV={parseDOM:[{tag:"code"}],toDOM(){return["code",0]}},zV={parseDOM:[{tag:"u"},{style:"text-decoration=underline",consuming:!1}],toDOM(){return["u",0]}},BV={parseDOM:[{tag:"s"},{tag:"strike"},{style:"text-decoration=line-through"}],toDOM(){return["s",0]}},VV={attrs:{color:{default:null}},parseDOM:[{style:"color",getAttrs:e=>({color:e})}],toDOM(e){let{color:t}=e.attrs;return["span",{style:`color:${t};`},0]}},HV={attrs:{backgroundColor:{default:null}},parseDOM:[{style:"background-color",getAttrs:e=>({backgroundColor:e})}],toDOM(e){let{backgroundColor:t}=e.attrs;return["span",{style:`background-color:${t};`},0]}},GV={attrs:{},parseDOM:[{tag:"sup"},{style:"vertical-align=super"}],toDOM(){return["sup",0]}},UV={attrs:{},parseDOM:[{tag:"sub"},{style:"vertical-align=sub"}],toDOM(){return["sub",0]}},jV={link:OV,em:AV,strong:LV,code:NV,u:zV,s:BV,text_color:VV,text_background_color:HV,sup:GV,sub:UV},WV={content:"block+"},$V={group:"inline"},qV={content:"inline*",group:"block",attrs:{align:{default:null},indent:{default:null}},parseDOM:[{tag:"p",getAttrs(e){let{textAlign:t}=e.style,i=e.getAttribute("align")||t||null,n=e.getAttribute("data-indent")||null;return{align:i,indent:parseInt(n,10)||null}}}],toDOM(e){let{align:t,indent:i}=e.attrs,n={textAlign:t!=="left"?t:null,marginLeft:i!==null?`${i*40}px`:null};return["p",{style:Nu(n)||null,"data-indent":i??null},0]}},YV={content:"block+",group:"block",defining:!0,attrs:{indent:{default:null}},parseDOM:[{tag:"blockquote",getAttrs(e){let t=e.getAttribute("data-indent")||null;return{indent:parseInt(t,10)||null}}}],toDOM(e){let{indent:t}=e.attrs,i={marginLeft:t!==null?`${t*40}
686px`:null};return["blockquote",{style:Nu(i)||null,"data-indent":t??null},0]}},KV={group:"block",parseDOM:[{tag:"hr"}],toDOM(){return["hr"]}},QV={attrs:{level:{default:1},align:{default:null},indent:{default:null}},content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",getAttrs(e){let{textAlign:t}=e.style,i=e.getAttribute("align")||t||null,n=e.getAttribute("data-indent")||null;return{level:1,align:i,indent:parseInt(n,10)||null}}},{tag:"h2",getAttrs(e){let{textAlign:t}=e.style,i=e.getAttribute("align")||t||null,n=e.getAttribute("data-indent")||null;return{level:2,align:i,indent:parseInt(n,10)||null}}},{tag:"h3",getAttrs(e){let{textAlign:t}=e.style,i=e.getAttribute("align")||t||null,n=e.getAttribute("data-indent")||null;return{level:3,align:i,indent:parseInt(n,10)||null}}},{tag:"h4",getAttrs(e){let{textAlign:t}=e.style,i=e.getAttribute("align")||t||null,n=e.getAttribute("data-indent")||null;return{level:4,align:i,indent:parseInt(n,10)||null}}},{tag:"h5",getAttrs(e){let{textAlign:t}=e.style,i=e.getAttribute("align")||t||null,n=e.getAttribute("data-indent")||null;return{level:5,align:i,indent:parseInt(n,10)||null}}},{tag:"h6",getAttrs(e){let{textAlign:t}=e.style,i=e.getAttribute("align")||t||null,n=e.getAttribute("data-indent")||null;return{level:6,align:i,indent:parseInt(n,10)||null}}}],toDOM(e){let{level:t,align:i,indent:n}=e.attrs,o={textAlign:i!=="left"?i:null,marginLeft:n!==null?`${n*40}px`:null},a={style:Nu(o)||null,"data-indent":n??null};return[`h${t}`,a,0]}},JV={content:"text*",marks:"",group:"block",code:!0,defining:!0,parseDOM:[{tag:"pre",preserveWhitespace:"full"}],toDOM(){return["pre",["code",0]]}},ZV={inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM(){return["br"]}},XV={inline:!0,attrs:{src:{},alt:{default:null},title:{default:null},width:{default:null}},group:"inline",draggable:!0,parseDOM:[{tag:"img[src]",getAttrs(e){return{src:e.getAttribute("src"),title:e.getAttribute("title"),alt:e.getAttribute("alt"),width:e.getAttribute("width")}}}],toDOM(e){let{src:t,alt:i,title:n,width:o}=e.attrs;return["img",{src:t,alt:i,title:n,width:o}]}},e9=ye(B({},x2),{content:"paragraph block*"}),t9=ye(B({},y2),{content:"list_item+",group:"block"}),i9=ye(B({},w2),{content:"list_item+",group:"block"}),n9={doc:WV,text:$V,paragraph:qV,blockquote:YV,horizontal_rule:KV,heading:QV,hard_break:ZV,code_block:JV,image:XV,list_item:e9,ordered_list:t9,bullet_list:i9},gc=new ju({marks:jV,nodes:n9});var M2=(e,t)=>e.selection.empty?!1:(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function o9(e,t){let{$cursor:i}=e.selection;return!i||(t?!t.endOfTextblock("backward",e):i.parentOffset>0)?null:i}var r9=(e,t,i)=>{let n=o9(e,i);if(!n)return!1;let o=T2(n);if(!o){let a=n.blockRange(),s=a&&oa(a);return s==null?!1:(t&&t(e.tr.lift(a,s).scrollIntoView()),!0)}let r=o.nodeBefore;if(P2(e,o,t,-1))return!0;if(n.parent.content.size==0&&(Ts(r,"end")||ke.isSelectable(r)))for(let a=n.depth;;a--){let s=Qu(e.doc,n.before(a),n.after(a),me.empty);if(s&&s.slice.size<s.to-s.from){if(t){let l=e.tr.step(s);l.setSelection(Ts(r,"end")?Oe.findFrom(l.doc.resolve(l.mapping.map(o.pos,-1)),-1):ke.create(l.doc,o.pos-r.nodeSize)),t(l.scrollIntoView())}return!0}if(a==1||n.node(a-1).childCount>1)break}return r.isAtom&&o.depth==n.depth-1?(t&&t(e.tr.delete(o.pos-r.nodeSize,o.pos).scrollIntoView()),!0):!1};function Ts(e,t,i=!1){for(let n=e;n;n=t=="start"?n.firstChild:n.lastChild){if(n.isTextblock)return!0;if(i&&n.childCount!=1)return!1}return!1}var a9=(e,t,i)=>{let{$head:n,empty:o}=e.selection,r=n;if(!o)return!1;if(n.parent.isTextblock){if(i?!i.endOfTextblock("backward",e):n.parentOffset>0)return!1;r=T2(n)}let a=r&&r.nodeBefore;return!a||!ke.isSelectable(a)?!1:(t&&t(e.tr.setSelection(ke.create(e.doc,r.pos-a.nodeSize)).scrollIntoView()),!0)};function T2(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function s9(e,t){let{$cursor:i}=e.selection;return!i||(t?!t.endOfTextblock("forward",e):i.parentOffset<i.parent.content.size)?null:i}var l9=(e,t,i)=>{let n=s9(e,i);if(!n)return!1;let o=I2(n);if(!o)return!1;let r=o.nodeAfter;if(P2(e,o,t,1))return!0;
vendor: 4,626 bytes, lines 686-687
686if(n.parent.content.size==0&&(Ts(r,"start")||ke.isSelectable(r))){let a=Qu(e.doc,n.before(),n.after(),me.empty);if(a&&a.slice.size<a.to-a.from){if(t){let s=e.tr.step(a);s.setSelection(Ts(r,"start")?Oe.findFrom(s.doc.resolve(s.mapping.map(o.pos)),1):ke.create(s.doc,s.mapping.map(o.pos))),t(s.scrollIntoView())}return!0}}return r.isAtom&&o.depth==n.depth-1?(t&&t(e.tr.delete(o.pos,o.pos+r.nodeSize).scrollIntoView()),!0):!1},c9=(e,t,i)=>{let{$head:n,empty:o}=e.selection,r=n;if(!o)return!1;if(n.parent.isTextblock){if(i?!i.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)return!1;r=I2(n)}let a=r&&r.nodeAfter;return!a||!ke.isSelectable(a)?!1:(t&&t(e.tr.setSelection(ke.create(e.doc,r.pos)).scrollIntoView()),!0)};function I2(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let i=e.node(t);if(e.index(t)+1<i.childCount)return e.doc.resolve(e.after(t+1));if(i.type.spec.isolating)break}return null}var D2=(e,t)=>{let{$from:i,$to:n}=e.selection,o=i.blockRange(n),r=o&&oa(o);return r==null?!1:(t&&t(e.tr.lift(o,r).scrollIntoView()),!0)},$f=(e,t)=>{let{$head:i,$anchor:n}=e.selection;return!i.parent.type.spec.code||!i.sameParent(n)?!1:(t&&t(e.tr.insertText(` 687`).scrollIntoView()),!0)};function qf(e){for(let t=0;t<e.edgeCount;t++){let{type:i}=e.edge(t);if(i.isTextblock&&!i.hasRequiredAttrs())return i}return null}var Yf=(e,t)=>{let{$head:i,$anchor:n}=e.selection;if(!i.parent.type.spec.code||!i.sameParent(n))return!1;let o=i.node(-1),r=i.indexAfter(-1),a=qf(o.contentMatchAt(r));if(!a||!o.canReplaceWith(r,r,a))return!1;if(t){let s=i.after(),l=e.tr.replaceWith(s,s,a.createAndFill());l.setSelection(Oe.near(l.doc.resolve(s),1)),t(l.scrollIntoView())}return!0},Kf=(e,t)=>{let i=e.selection,{$from:n,$to:o}=i;if(i instanceof Ki||n.parent.inlineContent||o.parent.inlineContent)return!1;let r=qf(o.parent.contentMatchAt(o.indexAfter()));if(!r||!r.isTextblock)return!1;if(t){let a=(!n.parentOffset&&o.index()<o.parent.childCount?n:o).pos,s=e.tr.insert(a,r.createAndFill());s.setSelection(qe.create(s.doc,a+1)),t(s.scrollIntoView())}return!0},Qf=(e,t)=>{let{$cursor:i}=e.selection;if(!i||i.parent.content.size)return!1;if(i.depth>1&&i.after()!=i.end(-1)){let r=i.before();if(lr(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}let n=i.blockRange(),o=n&&oa(n);return o==null?!1:(t&&t(e.tr.lift(n,o).scrollIntoView()),!0)};function d9(e){return(t,i)=>{let{$from:n,$to:o}=t.selection;if(t.selection instanceof ke&&t.selection.node.isBlock)return!n.parentOffset||!lr(t.doc,n.pos)?!1:(i&&i(t.tr.split(n.pos).scrollIntoView()),!0);if(!n.depth)return!1;let r=[],a,s,l=!1,c=!1;for(let b=n.depth;;b--)if(n.node(b).isBlock){l=n.end(b)==n.pos+(n.depth-b),c=n.start(b)==n.pos-(n.depth-b),s=qf(n.node(b-1).contentMatchAt(n.indexAfter(b-1)));let S=e&&e(o.parent,l,n);r.unshift(S||(l&&s?{type:s}:null)),a=b;break}else{if(b==1)return!1;r.unshift(null)}let h=t.tr;(t.selection instanceof qe||t.selection instanceof Ki)&&h.deleteSelection();let m=h.mapping.map(n.pos),f=lr(h.doc,m,r.length,r);if(f||(r[0]=s?{type:s}:null,f=lr(h.doc,m,r.length,r)),!f)return!1;if(h.split(m,r.length,r),!l&&c&&n.node(a).type!=s){let b=h.mapping.map(n.before(a)),_=h.doc.resolve(b);s&&n.node(a-1).canReplaceWith(_.index(),_.index()+1,s)&&h.setNodeMarkup(h.mapping.map(n.before(a)),s)}return i&&i(h.scrollIntoView()),!0}}var Jf=d9();var u9=(e,t)=>(t&&t(e.tr.setSelection(new Ki(e.doc))),!0);function p9(e,t,i){let n=t.nodeBefore,o=t.nodeAfter,r=t.index();return!n||!o||!n.type.compatibleContent(o.type)?!1:!n.content.size&&t.parent.canReplace(r-1,r)?(i&&i(e.tr.delete(t.pos-n.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(r,r+1)||!(o.isTextblock||ra(e.doc,t.pos))?!1:(i&&i(e.tr.join(t.pos).scrollIntoView()),!0)}function P2(e,t,i,n){let o=t.nodeBefore,r=t.nodeAfter,a,s,l=o.type.spec.isolating||r.type.spec.isolating;if(!l&&p9(e,t,i))return!0;let c=!l&&t.parent.canReplace(t.index(),t.index()+1);if(c&&(a=(s=o.contentMatchAt(o.childCount)).findWrapping(r.type))&&s.matchType(a[0]||r.type).validEnd){if(i){let b=t.pos+r.nodeSize,_=oe.empty;for(let D=a.length-1;D>=0;D--)_=oe.from(a[D].create(null,_));_=oe.from(o.copy(_));let S=e.tr.step(new Ot(t.pos-1,b,t.pos,b,new me(_,1,0),a.length,!0)),M=S.doc.resolve(b+2*a.length);M.nodeAfter&&M.nodeAfter.type==o.type&&ra(S.doc,M.pos)&&S.join(M.pos),i(S.scrollIntoView())}return!0}let h=r.type.spec.isolating||n>0&&l?null:Oe.findFrom(t,1),m=h&&h.$from.blockRange(h.$to),f=m&&oa(m);if(f!=null&&f>=t.depth)return i&&i(e.tr.lift(m,f).scrollIntoView()),!0;if(c&&Ts(r,"start",!0)&&Ts(o,"end")){let b=o,_=[];for(;_.push(b),!b.isTextblock;)b=b.lastChild;let S=r,M=1;for(;!S.isTextblock;
687S=S.firstChild)M++;if(b.canReplace(b.childCount,b.childCount,S.content)){if(i){let D=oe.empty;for(let F=_.length-1;F>=0;F--)D=oe.from(_[F].copy(D));let I=e.tr.step(new Ot(t.pos-_.length,t.pos+r.nodeSize,t.pos+M,t.pos+r.nodeSize-M,new me(D,_.length,0),0,!0));i(I.scrollIntoView())}return!0}}return!1}function R2(e){return function(t,i){let n=t.selection,o=e<0?n.$from:n.$to,r=o.depth;for(;o.node(r).isInline;){if(!r)return!1;r--}return o.node(r).isTextblock?(i&&i(t.tr.setSelection(qe.create(t.doc,e<0?o.start(r):o.end(r)))),!0):!1}}var h9=R2(-1),g9=R2(1);function F2(e,t=null){return function(i,n){let{$from:o,$to:r}=i.selection,a=o.blockRange(r),s=a&&Cs(a,e,t);return s?(n&&n(i.tr.wrap(a,s).scrollIntoView()),!0):!1}}function pp(e,t=null){return function(i,n){let o=!1;for(let r=0;r<i.selection.ranges.length&&!o;r++){let{$from:{pos:a},$to:{pos:s}}=i.selection.ranges[r];i.doc.nodesBetween(a,s,(l,c)=>{if(o)return!1;if(!(!l.isTextblock||l.hasMarkup(e,t)))if(l.type==e)o=!0;else{let h=i.doc.resolve(c),m=h.index();o=h.parent.canReplaceWith(m,m+1,e)}})}if(!o)return!1;if(n){let r=i.tr;for(let a=0;a<i.selection.ranges.length;a++){let{$from:{pos:s},$to:{pos:l}}=i.selection.ranges[a];r.setBlockType(s,l,e,t)}n(r.scrollIntoView())}return!0}}function m9(e,t,i,n){for(let o=0;o<t.length;o++){let{$from:r,$to:a}=t[o],s=r.depth==0?e.inlineContent&&e.type.allowsMarkType(i):!1;if(e.nodesBetween(r.pos,a.pos,(l,c)=>{if(s||!n&&l.isAtom&&l.isInline&&c>=r.pos&&c+l.nodeSize<=a.pos)return!1;s=l.inlineContent&&l.type.allowsMarkType(i)}),s)return!0}return!1}function f9(e){let t=[];for(let i=0;i<e.length;i++){let{$from:n,$to:o}=e[i];n.doc.nodesBetween(n.pos,o.pos,(r,a)=>{if(r.isAtom&&r.content.size&&r.isInline&&a>=n.pos&&a+r.nodeSize<=o.pos)return a+1>n.pos&&t.push(new _s(n,n.doc.resolve(a+1))),n=n.doc.resolve(a+1+r.content.size),!1}),n.pos<o.pos&&t.push(new _s(n,o))}return t}function ma(e,t=null,i){let n=(i&&i.removeWhenPresent)!==!1,o=(i&&i.enterInlineAtoms)!==!1,r=!(i&&i.includeWhitespace);return function(a,s){let{empty:l,$cursor:c,ranges:h}=a.selection;if(l&&!c||!m9(a.doc,h,e,o))return!1;if(s)if(c)e.isInSet(a.storedMarks||c.marks())?s(a.tr.removeStoredMark(e)):s(a.tr.addStoredMark(e.create(t)));else{let m,f=a.tr;o||(h=f9(h)),n?m=!h.some(b=>a.doc.rangeHasMark(b.$from.pos,b.$to.pos,e)):m=!h.every(b=>{let _=!1;return f.doc.nodesBetween(b.$from.pos,b.$to.pos,(S,M,D)=>{if(_)return!1;_=!e.isInSet(S.marks)&&!!D&&D.type.allowsMarkType(e)&&!(S.isText&&/^\s*$/.test(S.textBetween(Math.max(0,b.$from.pos-M),Math.min(S.nodeSize,b.$to.pos-M))))}),!_});for(let b=0;b<h.length;b++){let{$from:_,$to:S}=h[b];if(!m)f.removeMark(_.pos,S.pos,e);else{let M=_.pos,D=S.pos,I=_.nodeAfter,F=S.nodeBefore,W=r&&I&&I.isText?/^\s*/.exec(I.text)[0].length:0,re=r&&F&&F.isText?/\s*$/.exec(F.text)[0].length:0;M+W<D&&(M+=W,D-=re),f.addMark(M,D,e.create(t))}}s(f.scrollIntoView())}return!0}}function Is(...e){return function(t,i,n){for(let o=0;o<e.length;o++)if(e[o](t,i,n))return!0;return!1}}var Wf=Is(M2,r9,a9),E2=Is(M2,l9,c9),Fo={Enter:Is($f,Kf,Qf,Jf),"Mod-Enter":Yf,Backspace:Wf,"Mod-Backspace":Wf,"Shift-Backspace":Wf,Delete:E2,"Mod-Delete":E2,"Mod-a":u9},O2={"Ctrl-h":Fo.Backspace,"Alt-Backspace":Fo["Mod-Backspace"],"Ctrl-d":Fo.Delete,"Ctrl-Alt-Backspace":Fo["Mod-Delete"],"Alt-Delete":Fo["Mod-Delete"],"Alt-d":Fo["Mod-Delete"],"Ctrl-a":h9,"Ctrl-e":g9};for(let e in Fo)O2[e]=Fo[e];var v9=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform?os.platform()=="darwin":!1,A2=v9?O2:Fo;var vn=class{constructor(t,i,n={}){this.match=t,this.match=t,this.handler=typeof i=="string"?C9(i):i,this.undoable=n.undoable!==!1,this.inCode=n.inCode||!1,this.inCodeMark=n.inCodeMark!==!1}};function C9(e){return function(t,i,n,o){let r=e;if(i[1]){let a=i[0].lastIndexOf(i[1]);r+=i[0].slice(a+i[1].length),n+=a;let s=n-o;s>0&&(r=i[0].slice(a-s,a)+r,n=o)}return t.tr.insertText(r,n,o)}}var b9=500;function N2({rules:e}){let t=new ri({state:{init(){return null},apply(i,n){let o=i.getMeta(this);return o||(i.selectionSet||i.docChanged?null:n)}},props:{handleTextInput(i,n,o,r){return L2(i,n,o,r,e,t)},handleDOMEvents:{compositionend:i=>{setTimeout(()=>{let{$cursor:n}=i.state.selection;n&&L2(i,n.pos,n.pos,"",e,t)})}}},isInputRules:!0});return t}function L2(e,t,i,n,o,r){if(e.composing)return!1;let a=e.state,s=a.doc.resolve(t),l=s.parent.textBetween(Math.max(0,s.parentOffset-b9),s.parentOffset,null,"\uFFFC")+n;for(let c=0;c<o.length;c++){let h=o[c];if(!h.inCodeMark&&s.marks().some(_=>_.type.spec.code))continue;if(s.parent.type.spec.code){if(!h.inCode)continue}else if(h.inCode==="only")continue;let m=h.match.exec(l);if(!m||m[0].length<n.length)continue;let f=t-(m[0].length-n.length);if(!h.inCodeMark){let _=!1;if(a.doc.nodesBetween(f,s.pos,S=>{S.isInline&&S.marks.some(M=>M.type.spec.code)&&(_=!0)}),_)continue}let b=h.handler(a,m,f,i);if(b)return h.undoable&&b.setMeta(r,{transform:b,from:t,to:i,text:n}),e.dispatch(b),!0}return!1}var z2=new vn(/--$/,"\u2014",{inCodeMark:!1}),B2=new vn(/\.\.\.$/,"\u2026",{inCodeMark:!1}),_9=new vn(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"\u201C",{inCodeMark:!1}),y9=new vn(/"$/,"\u201D",{inCodeMark:!1}),w9=new vn(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"\u2018",{inCodeMark:!1}),x9=new vn(/'$/,"\u2019",{inCodeMark:!1}),V2=[_9,y9,w9,x9];function hp(e,t,i=null,n){return new vn(e,(o,r,a,s)=>{let l=i instanceof Function?i(r):i,c=o.tr.delete(a,s),h=c.doc.resolve(a),m=h.blockRange(),f=m&&Cs(m,t,l);if(!f)return null;c.wrap(m,f);let b=c.doc.resolve(a-1).nodeBefore;return b&&b.type==t&&ra(c.doc,a-1)&&(!n||n(r,b))&&c.join(a-1),c})}function Zf(e,t,i=null){return new vn(e,(n,o,r,a)=>{let s=n.doc.resolve(r),l=i instanceof Function?i(o):i;return s.node(-1).canReplaceWith(s.index(-1),s.indexAfter(-1),t)?n.tr.delete(r,a).setBlockType(r,r,t,l):null})}var gp=(e,t)=>{let{from:i,$from:n,to:o,empty:r}=e.selection;return r?!!t.isInSet(e.storedMarks||n.marks()):e.doc.rangeHasMark(i,o,t)},S9=(e,t)=>{for(let i=t.depth;i>0;i-=1)if(t.node(i).type===e)return t.node(i).type;return null},Xf=(e,t,i={})=>{let{selection:n}=e,{$from:o,to:r}=n,a=S9(t,o);return!Object.entries(i).length||!a?!!a:r<=o.end()&&o.parent.hasMarkup(t,i)},H2=e=>{let t=[],{selection:i,storedMarks:n}=e,{from:o,to:r,empty:a,$from:s}=i;return a?t=n||s.marks():e.doc.nodesBetween(o,r,l=>{t=[...t,...l.marks]}),t},e0=e=>{let t=[],{selection:{from:i,to:n}}=e;return e.doc.nodesBetween(i,n,o=>{t.push(o)}),t},t0=(e,t,i)=>{for(let n of t){let{$from:o,$to:r}=n,a=o.depth===0?e.type.allowsMarkType(i):!1;if(e.nodesBetween(o.pos,r.pos,s=>a?!1:(a=s.inlineContent&&s.type.allowsMarkType(i),!0)),a)return!0}return!1},i0=(e,t,i)=>new vn(e,(n,o,r,a)=>{let{tr:s}=n,l=r,c=a,[h,,m]=o,f=h.search(/\S/);if(m){let b=r+h.indexOf(m),_=b+m.length;_<a&&s.delete(_,a),b>r&&s.delete(r+f,b),c=r+m.length+f}return s.addMark(l,c,t.create(i)),s.removeStoredMark(t),s}),G2=(e,t)=>{let{$from:i}=e.selection;for(let n=i.depth;n>=0;n-=1){let o=i.index(n);if(i.node(n).canReplaceWith(o,o,t))return!0}return!1};var U2=()=>(e,t)=>{let{doc:i,selection:n,tr:o,schema:r}=e,{$head:{pos:a},from:s,to:l}=n,c=r.marks.link;if(s===l){let h=i.resolve(a),m=a-h.textOffset,f=m+h.parent.child(h.index()).nodeSize;o.removeMark(m,f,c)}else o.removeMark(s,l,c);return o.docChanged?(t?.(o),!0):!1},n0=(e,t={})=>(i,n)=>
687{let{tr:o,selection:r}=i,{empty:a,ranges:s,$from:l,$to:c}=r;if(a&&r instanceof qe){let{$cursor:h}=r;if(!h||!t0(i.doc,s,e)||(o.addStoredMark(e.create(t)),!o.storedMarksSet))return!1;n?.(o)}else{if(o.addMark(l.pos,c.pos,e.create(t)),!o.docChanged)return!1;n?.(o.scrollIntoView())}return!0},j2=e=>(t,i)=>{let{tr:n,selection:o,storedMarks:r,doc:a}=t,{empty:s,ranges:l}=o;if(s&&o instanceof qe){let{$cursor:c}=o;if(!c||!t0(t.doc,l,e))return!1;if(e.isInSet(r||c.marks()))return n.removeStoredMark(e),i?.(n),!0}else{for(let c of l){let{$from:h,$to:m}=c;a.rangeHasMark(h.pos,m.pos,e)&&n.removeMark(h.pos,m.pos,e)}if(!n.docChanged)return!1;i?.(n.scrollIntoView())}return!1};var mp=200,Ut=function(){};Ut.prototype.append=function(t){return t.length?(t=Ut.from(t),!this.length&&t||t.length<mp&&this.leafAppend(t)||this.length<mp&&t.leafPrepend(this)||this.appendInner(t)):this};Ut.prototype.prepend=function(t){return t.length?Ut.from(t).append(this):this};Ut.prototype.appendInner=function(t){return new k9(this,t)};Ut.prototype.slice=function(t,i){return t===void 0&&(t=0),i===void 0&&(i=this.length),t>=i?Ut.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,i))};Ut.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)};Ut.prototype.forEach=function(t,i,n){i===void 0&&(i=0),n===void 0&&(n=this.length),i<=n?this.forEachInner(t,i,n,0):this.forEachInvertedInner(t,i,n,0)};Ut.prototype.map=function(t,i,n){i===void 0&&(i=0),n===void 0&&(n=this.length);var o=[];return this.forEach(function(r,a){return o.push(t(r,a))},i,n),o};Ut.from=function(t){return t instanceof Ut?t:t&&t.length?new W2(t):Ut.empty};var W2=(function(e){function t(n){e.call(this),this.values=n}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var i={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(o,r){return o==0&&r==this.length?this:new t(this.values.slice(o,r))},t.prototype.getInner=function(o){return this.values[o]},t.prototype.forEachInner=function(o,r,a,s){for(var l=r;l<a;l++)if(o(this.values[l],s+l)===!1)return!1},t.prototype.forEachInvertedInner=function(o,r,a,s){for(var l=r-1;l>=a;l--)if(o(this.values[l],s+l)===!1)return!1},t.prototype.leafAppend=function(o){if(this.length+o.length<=mp)return new t(this.values.concat(o.flatten()))},t.prototype.leafPrepend=function(o){if(this.length+o.length<=mp)return new t(o.flatten().concat(this.values))},i.length.get=function(){return this.values.length},i.depth.get=function(){return 0},Object.defineProperties(t.prototype,i),t})(Ut);Ut.empty=new W2([]);var k9=(function(e){function t(i,n){e.call(this),this.left=i,this.right=n,this.length=i.length+n.length,this.depth=Math.max(i.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(n){return n<this.left.length?this.left.get(n):this.right.get(n-this.left.length)},t.prototype.forEachInner=function(n,o,r,a){var s=this.left.length;if(o<s&&this.left.forEachInner(n,o,Math.min(r,s),a)===!1||r>s&&this.right.forEachInner(n,Math.max(o-s,0),Math.min(this.length,r)-s,a+s)===!1)return!1},t.prototype.forEachInvertedInner=function(n,o,r,a){var s=this.left.length;if(o>s&&this.right.forEachInvertedInner(n,o-s,Math.max(r,s)-s,a+s)===!1||r<s&&this.left.forEachInvertedInner(n,Math.min(o,s),r,a)===!1)return!1},t.prototype.sliceInner=function(n,o){if(n==0&&o==this.length)return this;var r=this.left.length;return o<=r?this.left.slice(n,o):n>=r?this.right.slice(n-r,o-r):this.left.slice(n,r).append(this.right.slice(0,o-r))},t.prototype.leafAppend=function(n){var o=this.right.leafAppend(n);if(o)return new t(this.left,o)},t.prototype.leafPrepend=function(n){var o=this.left.leafPrepend(n);if(o)return new t(o,this.right)},t.prototype.appendInner=function(n){return this.left.depth>=Math.max(this.right.depth,n.depth)+1?new t(this.left,new t(this.right,n)):new t(this,n)},t})(Ut),o0=Ut;var E9=500,va=class e{constructor(t,i){this.items=t,this.eventCount=i}popEvent(t,i){if(this.eventCount==0)return null;let n=this.items.length;for(;;n--)if(this.items.get(n-1).selection){--n;break}let o,r;i&&(o=this.remapping(n,this.items.length),r=o.maps.length);let a=t.tr,s,l,c=[],h=[];
vendor: 4,127 bytes, line 687
687return this.items.forEach((m,f)=>{if(!m.step){o||(o=this.remapping(n,f+1),r=o.maps.length),r--,h.push(m);return}if(o){h.push(new Yn(m.map));let b=m.step.map(o.slice(r)),_;b&&a.maybeStep(b).doc&&(_=a.mapping.maps[a.mapping.maps.length-1],c.push(new Yn(_,void 0,void 0,c.length+h.length))),r--,_&&o.appendMap(_,r)}else a.maybeStep(m.step);if(m.selection)return s=o?m.selection.map(o.slice(r)):m.selection,l=new e(this.items.slice(0,n).append(h.reverse().concat(c)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:a,selection:s}}addTransform(t,i,n,o){let r=[],a=this.eventCount,s=this.items,l=!o&&s.length?s.get(s.length-1):null;for(let h=0;h<t.steps.length;h++){let m=t.steps[h].invert(t.docs[h]),f=new Yn(t.mapping.maps[h],m,i),b;(b=l&&l.merge(f))&&(f=b,h?r.pop():s=s.slice(0,s.length-1)),r.push(f),i&&(a++,i=void 0),o||(l=f)}let c=a-n.depth;return c>T9&&(s=M9(s,c),a-=c),new e(s.append(r),a)}remapping(t,i){let n=new tc;return this.items.forEach((o,r)=>{let a=o.mirrorOffset!=null&&r-o.mirrorOffset>=t?n.maps.length-o.mirrorOffset:void 0;n.appendMap(o.map,a)},t,i),n}addMaps(t){return this.eventCount==0?this:new e(this.items.append(t.map(i=>new Yn(i))),this.eventCount)}rebased(t,i){if(!this.eventCount)return this;let n=[],o=Math.max(0,this.items.length-i),r=t.mapping,a=t.steps.length,s=this.eventCount;this.items.forEach(f=>{f.selection&&s--},o);let l=i;this.items.forEach(f=>{let b=r.getMirror(--l);if(b==null)return;a=Math.min(a,b);let _=r.maps[b];if(f.step){let S=t.steps[b].invert(t.docs[b]),M=f.selection&&f.selection.map(r.slice(l+1,b));M&&s++,n.push(new Yn(_,S,M))}else n.push(new Yn(_))},o);let c=[];for(let f=i;f<a;f++)c.push(new Yn(r.maps[f]));let h=this.items.slice(0,o).append(c).append(n),m=new e(h,s);return m.emptyItemCount()>E9&&(m=m.compress(this.items.length-n.length)),m}emptyItemCount(){let t=0;return this.items.forEach(i=>{i.step||t++}),t}compress(t=this.items.length){let i=this.remapping(0,t),n=i.maps.length,o=[],r=0;return this.items.forEach((a,s)=>{if(s>=t)o.push(a),a.selection&&r++;else if(a.step){let l=a.step.map(i.slice(n)),c=l&&l.getMap();if(n--,c&&i.appendMap(c,n),l){let h=a.selection&&a.selection.map(i.slice(n));h&&r++;let m=new Yn(c.invert(),l,h),f,b=o.length-1;(f=o.length&&o[b].merge(m))?o[b]=f:o.push(m)}}else a.map&&n--},this.items.length,0),new e(o0.from(o.reverse()),r)}};va.empty=new va(o0.empty,0);function M9(e,t){let i;return e.forEach((n,o)=>{if(n.selection&&t--==0)return i=o,!1}),e.slice(i)}var Yn=class e{constructor(t,i,n,o){this.map=t,this.step=i,this.selection=n,this.mirrorOffset=o}merge(t){if(this.step&&t.step&&!t.selection){let i=t.step.merge(this.step);if(i)return new e(i.getMap().invert(),i,this.selection)}}},Kn=class{constructor(t,i,n,o,r){this.done=t,this.undone=i,this.prevRanges=n,this.prevTime=o,this.prevComposition=r}},T9=20;function I9(e,t,i,n){let o=i.getMeta(fa),r;if(o)return o.historyState;i.getMeta(R9)&&(e=new Kn(e.done,e.undone,null,0,-1));let a=i.getMeta("appendedTransaction");if(i.steps.length==0)return e;if(a&&a.getMeta(fa))return a.getMeta(fa).redo?new Kn(e.done.addTransform(i,void 0,n,fp(t)),e.undone,$2(i.mapping.maps),e.prevTime,e.prevComposition):new Kn(e.done,e.undone.addTransform(i,void 0,n,fp(t)),null,e.prevTime,e.prevComposition);if(i.getMeta("addToHistory")!==!1&&!(a&&a.getMeta("addToHistory")===!1)){let s=i.getMeta("composition"),l=e.prevTime==0||!a&&e.prevComposition!=s&&(e.prevTime<(i.time||0)-n.newGroupDelay||!D9(i,e.prevRanges)),c=a?r0(e.prevRanges,i.mapping):$2(i.mapping.maps);return new Kn(e.done.addTransform(i,l?t.selection.getBookmark():void 0,n,fp(t)),va.empty,c,i.time,s??e.prevComposition)}else return(r=i.getMeta("rebased"))?new Kn(e.done.rebased(i,r),e.undone.rebased(i,r),r0(e.prevRanges,i.mapping),e.prevTime,e.prevComposition):new Kn(e.done.addMaps(i.mapping.maps),e.undone.addMaps(i.mapping.maps),r0(e.prevRanges,i.mapping),e.prevTime,e.prevComposition)}function D9(e,t){if(!t)return!1;if(!e.docChanged)return!0;let i=!1;return e.mapping.maps[0].forEach((n,o)=>{for(let r=0;r<t.length;r+=2)n<=t[r+1]&&o>=t[r]&&(i=!0)}),i}function $2(e){let t=[];for(let i=e.length-1;i>=0&&t.length==0;
687i--)e[i].forEach((n,o,r,a)=>t.push(r,a));return t}function r0(e,t){if(!e)return null;let i=[];for(let n=0;n<e.length;n+=2){let o=t.map(e[n],1),r=t.map(e[n+1],-1);o<=r&&i.push(o,r)}return i}function P9(e,t,i){let n=fp(t),o=fa.get(t).spec.config,r=(i?e.undone:e.done).popEvent(t,n);if(!r)return null;let a=r.selection.resolve(r.transform.doc),s=(i?e.done:e.undone).addTransform(r.transform,t.selection.getBookmark(),o,n),l=new Kn(i?s:r.remaining,i?r.remaining:s,null,0,-1);return r.transform.setSelection(a).setMeta(fa,{redo:i,historyState:l})}var a0=!1,q2=null;function fp(e){let t=e.plugins;if(q2!=t){a0=!1,q2=t;for(let i=0;i<t.length;i++)if(t[i].spec.historyPreserveItems){a0=!0;break}}return a0}var fa=new Qi("history"),R9=new Qi("closeHistory");function Y2(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new ri({key:fa,state:{init(){return new Kn(va.empty,va.empty,null,0,-1)},apply(t,i,n){return I9(i,n,t,e)}},config:e,props:{handleDOMEvents:{beforeinput(t,i){let n=i.inputType,o=n=="historyUndo"?Cp:n=="historyRedo"?mc:null;return!o||!t.editable?!1:(i.preventDefault(),o(t.state,t.dispatch))}}}})}function vp(e,t){return(i,n)=>{let o=fa.getState(i);if(!o||(e?o.undone:o.done).eventCount==0)return!1;if(n){let r=P9(o,i,e);r&&n(t?r.scrollIntoView():r)}return!0}}var Cp=vp(!1,!0),mc=vp(!0,!0),c_e=vp(!1,!1),d_e=vp(!0,!1);var Oo={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},_p={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},F9=typeof navigator<"u"&&/Mac/.test(navigator.platform),O9=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(kt=0;kt<10;kt++)Oo[48+kt]=Oo[96+kt]=String(kt);var kt;for(kt=1;kt<=24;kt++)Oo[kt+111]="F"+kt;var kt;for(kt=65;kt<=90;kt++)Oo[kt]=String.fromCharCode(kt+32),_p[kt]=String.fromCharCode(kt);var kt;for(bp in Oo)_p.hasOwnProperty(bp)||(_p[bp]=Oo[bp]);var bp;function K2(e){var t=F9&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||O9&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",i=!t&&e.key||(e.shiftKey?_p:Oo)[e.keyCode]||e.key||"Unidentified";return i=="Esc"&&(i="Escape"),i=="Del"&&(i="Delete"),i=="Left"&&(i="ArrowLeft"),i=="Up"&&(i="ArrowUp"),i=="Right"&&(i="ArrowRight"),i=="Down"&&(i="ArrowDown"),i}var A9=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),L9=typeof navigator<"u"&&/Win/.test(navigator.platform);function N9(e){let t=e.split(/-(?!$)/),i=t[t.length-1];i=="Space"&&(i=" ");let n,o,r,a;for(let s=0;s<t.length-1;s++){let l=t[s];if(/^(cmd|meta|m)$/i.test(l))a=!0;else if(/^a(lt)?$/i.test(l))n=!0;else if(/^(c|ctrl|control)$/i.test(l))o=!0;else if(/^s(hift)?$/i.test(l))r=!0;else if(/^mod$/i.test(l))A9?a=!0:o=!0;else throw new Error("Unrecognized modifier name: "+l)}return n&&(i="Alt-"+i),o&&(i="Ctrl-"+i),a&&(i="Meta-"+i),r&&(i="Shift-"+i),i}function z9(e){let t=Object.create(null);for(let i in e)t[N9(i)]=e[i];return t}function s0(e,t,i=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),i&&t.shiftKey&&(e="Shift-"+e),e}function fc(e){return new ri({props:{handleKeyDown:B9(e)}})}function B9(e){let t=z9(e);return function(i,n){let o=K2(n),r,a=t[s0(o,n)];if(a&&a(i.state,i.dispatch,i))return!0;if(o.length==1&&o!=" "){if(n.shiftKey){let s=t[s0(o,n,!1)];if(s&&s(i.state,i.dispatch,i))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(L9&&n.ctrlKey&&n.altKey)&&(r=Oo[n.keyCode])&&r!=o){let s=t[s0(r,n)];if(s&&s(i.state,i.dispatch,i))return!0}}return!1}}var G9=["imgEl"],U9=e=>({"NgxEditor__Resizer--Active":e});function j9(e,t){if(e&1){let i=P();p(0,"span",4)(1,"span",5),T("mousedown",function(o){k(i);let r=g();return E(r.startResizing(o,"left"))}),u(),p(2,"span",6),T("mousedown",function(o){k(i);let r=g();return E(r.startResizing(o,"right"))}),u(),p(3,"span",7),T("mousedown",function(o){k(i);let r=g();return E(r.startResizing(o,"left"))}),u(),p(4,"span",8),T("mousedown",function(o){k(i);let r=g();return E(r.startResizing(o,"right"))}),u()()}}var W9=["ngxEditor"],$9=["*"];function q9(e,t){if(e&1&&(p(0,"div",12),C(1),N(2,"async"),u()),e&2){let i=g(2);d(),A(" ",G(2,1,(i.href.errors==null?null:i.href.errors.pattern)&&i.getLabel("enterValidUrl"))," ")}}function Y9(e,t){if(e&1&&(p(0,"div",12),C(1),u()),e&2){let i=g(2);d(),A(" ",(i.text.errors==null?null:i.text.errors.required)&&"This is required"," ")}}function K9(e,t){if(e&1&&(p(0,"div",4)(1,"div",5)(2,"label"),x(3,"input",13),C(4),N(5,"async"),u()()()),e&2){let i=g(2);d(4),A(" ",G(5,1,i.getLabel("openInNewTab"))," ")}}function Q9(e,t){if(e&1){let i=P();p(0,"div",2)(1,"form",3),T("ngSubmit",function(o){k(i);let r=g();return E(r.insertLink(o))}),p(2,"div",4)(3,"div",5)(4,"label",6),C(5),N(6,"async"),u(),x(7,"input",7),V(8,q9,3,3,"div",8),u()(),p(9,"div",4)(10,"div",5)(11,"label",6),C(12),N(13,"async"),u(),x(14,"input",9),V(15,Y9,2,1,"div",8),u()(),V(16,K9,6,3,"div",10),p(17,"button",11),C(18),N(19,"async"),u()()()}if(e&2){let i=g();d(),v("formGroup",i.form),d(3),v("htmlFor",i.getId("link-popup-url")),d(),R(G(6,12,i.getLabel("url"))),d(2),v("id",i.getId("link-popup-url")),d(),v("ngIf",i.href.touched&&i.href.invalid),d(3),v("htmlFor",i.getId("link-popup-label")),d(),R(G(13,14,i.getLabel("text"))),d(2),v("id",i.getId("link-popup-label")),d(),v("ngIf",i.text.touched&&i.text.invali
687d),d(),v("ngIf",i.options.showOpenInNewTab),d(),v("disabled",!i.form.valid),d(),R(G(19,16,i.getLabel("insert")))}}var J9=(e,t)=>({"NgxEditor__Dropdown--Active":e,"NgxEditor--Disabled":t});function Z9(e,t){if(e&1){let i=P();p(0,"button",4),N(1,"async"),T("mousedown",function(o){let r=k(i).$implicit,a=g(2);return E(a.onDropdownItemMouseClick(o,r))})("keydown.enter",function(o){let r=k(i).$implicit,a=g(2);return E(a.onDropdownItemKeydown(o,r))})("keydown.space",function(o){let r=k(i).$implicit,a=g(2);return E(a.onDropdownItemKeydown(o,r))}),C(2),N(3,"async"),u()}if(e&2){let i=t.$implicit,n=g(2);v("ngClass",Re(8,J9,i===n.activeItem,n.disabledItems.includes(i)))("ariaLabel",G(1,4,n.getName(i))),Ve("aria-selected",i===n.activeItem),d(2),A(" ",G(3,6,n.getName(i))," ")}}function X9(e,t){if(e&1&&(p(0,"div",2),V(1,Z9,4,11,"button",3),u()),e&2){let i=g();d(),v("ngForOf",i.items)("ngForTrackBy",i.trackByIndex)}}function eH(e,t){if(e&1&&(p(0,"div",12),C(1),N(2,"async"),u()),e&2){let i=g(2);d(),A(" ",G(2,1,(i.src.errors==null?null:i.src.errors.pattern)&&i.getLabel("enterValidUrl"))," ")}}function tH(e,t){if(e&1){let i=P();p(0,"div",2)(1,"form",3),T("ngSubmit",function(o){k(i);let r=g();return E(r.insertLink(o))}),p(2,"div",4)(3,"div",5)(4,"label",6),C(5),N(6,"async"),u(),x(7,"input",7),V(8,eH,3,3,"div",8),u()(),p(9,"div",4)(10,"div",5)(11,"label",6),C(12),N(13,"async"),u(),x(14,"input",9),u()(),p(15,"div",4)(16,"div",5)(17,"label",6),C(18),N(19,"async"),u(),x(20,"input",10),u()(),p(21,"button",11),C(22),N(23,"async"),u()()()}if(e&2){let i=g();d(),v("formGroup",i.form),d(3),v("htmlFor",i.getId("image-popup-url")),d(),R(G(6,13,i.getLabel("url"))),d(2),v("id",i.getId("image-popup-url")),d(),v("ngIf",i.src.touched&&i.src.invalid),d(3),v("htmlFor",i.getId("image-popup-label")),d(),R(G(13,15,i.getLabel("altText"))),d(2),v("id",i.getId("image-popup-label")),d(3),v("htmlFor",i.getId("image-popup-title")),d(),R(G(19,17,i.getLabel("title"))),d(2),v("id",i.getId("image-popup-title")),d(),v("disabled",!i.form.valid||!i.form.dirty),d(),R(G(23,19,i.getLabel("insert")))}}var iH=(e,t)=>({backgroundColor:e,color:t}),nH=e=>({"NgxEditor__Color--Active":e});function oH(e,t){if(e&1){let i=P();p(0,"button",7),T("mousedown",function(o){let r=k(i).$implicit,a=g(3);return E(a.onColorSelectMouseClick(o,r))})("keydown.enter",function(){let o=k(i).$implicit,r=g(3);return E(r.onColorSelectKeydown(o))})("keydown.space",function(){let o=k(i).$implicit,r=g(3);return E(r.onColorSelectKeydown(o))}),u()}if(e&2){let i=t.$implicit,n=g(3);v("ngStyle",Re(3,iH,i,n.getContrastYIQ(i)))("title",i)("ngClass",z(6,nH,n.activeColors.includes(i)))}}function rH(e,t){if(e&1&&(p(0,"div",5),V(1,oH,1,8,"button",6),u()),e&2){let i=t.$implicit,n=g(2);d(),v("ngForOf",i)("ngForTrackBy",n.trackByIndex)}}function aH(e,t){if(e&1){let i=P();p(0,"div",2),V(1,rH,2,2,"div",3),p(2,"button",4),T("mousedown",function(o){k(i);let r=g();return E(r.onRemoveMouseClick(o))})("keydown.enter",function(){k(i);let o=g();return E(o.onRemoveKeydown())})("keydown.space",function(){k(i);let o=g();return E(o.onRemoveKeydown())}),C(3),N(4,"async"),u()()}if(e&2){let i=g();d(),v("ngForOf",i.presets)("ngForTrackBy",i.trackByIndex),d(),v("disabled",!i.isActive),d(),A(" ",G(4,4,i.getLabel("remove"))," ")}}var sH=(e,t)=>({"NgxEditor--Disabled":e,"NgxEditor__MenuBar--Reverse":t});function lH(e,t){if(e&1&&x(0,"ngx-toggle-command",7),e&2){let i=g().$implicit,n=g(2);pe(n.iconContainerClass),v("toolbarItem",i)}}function cH(e,t){if(e&1&&x(0,"ngx-insert-command",7),e&2){let i=g().$implicit,n=g(2);pe(n.iconContainerClass),v("toolbarItem",i)}}
687function dH(e,t){if(e&1&&(mt(0),x(1,"ngx-link",8),ft()),e&2){let i=g().$implicit,n=g(2);d(),pe(n.iconContainerClass),v("options",n.getLinkOptions(i))}}function uH(e,t){if(e&1&&x(0,"ngx-image"),e&2){let i=g(3);pe(i.iconContainerClass)}}function pH(e,t){if(e&1&&x(0,"ngx-dropdown",10),e&2){let i=t.$implicit,n=g(4);pe(n.dropdownContainerClass),v("group",i.key)("items",i.value)}}function hH(e,t){if(e&1&&(mt(0),V(1,pH,1,4,"ngx-dropdown",9),N(2,"keyvalue"),ft()),e&2){let i=g().$implicit,n=g(2);d(),v("ngForOf",G(2,2,n.getDropdownItems(i)))("ngForTrackBy",n.trackByIndex)}}function gH(e,t){if(e&1&&x(0,"ngx-color-picker",11),e&2){let i=g(3);pe(i.iconContainerClass),v("presets",i.presets)}}function mH(e,t){if(e&1&&x(0,"ngx-color-picker",12),e&2){let i=g(3);pe(i.iconContainerClass),v("presets",i.presets)}}function fH(e,t){if(e&1&&x(0,"div"),e&2){let i=g(3);pe(i.seperatorClass)}}function vH(e,t){if(e&1&&(mt(0),V(1,lH,1,3,"ngx-toggle-command",3)(2,cH,1,3,"ngx-insert-command",3)(3,dH,2,3,"ng-container",2)(4,uH,1,2,"ngx-image",4)(5,hH,3,4,"ng-container",2)(6,gH,1,3,"ngx-color-picker",5)(7,mH,1,3,"ngx-color-picker",6)(8,fH,1,2,"div",4),ft()),e&2){let i=t.$implicit,n=t.last,o=g().last,r=g();d(),v("ngIf",r.toggleCommands.includes(i)),d(),v("ngIf",r.insertCommands.includes(i)),d(),v("ngIf",r.isLinkItem(i)),d(),v("ngIf",i==="image"),d(),v("ngIf",r.isDropDown(i)),d(),v("ngIf",i==="text_color"),d(),v("ngIf",i==="background_color"),d(),v("ngIf",n&&!o)}}function CH(e,t){if(e&1&&(mt(0),V(1,vH,9,8,"ng-container",1),ft()),e&2){let i=t.$implicit,n=g();d(),v("ngForOf",i)("ngForTrackBy",n.trackByIndex)}}function bH(e,t){if(e&1&&(mt(0),Ti(1,13),ft()),e&2){let i=g();d(),v("ngTemplateOutlet",i.customMenuRef)}}var _H=(e=!0)=>new ri({key:new Qi("editable"),state:{init(){return e},apply(t,i){return t.getMeta("UPDATE_EDITABLE")??i}},props:{editable(t){return this.getState(t)},attributes(t){return this.getState(t)?null:{class:"NgxEditor__Content--Disabled"}}}}),yH="NgxEditor__Placeholder",wH=e=>new ri({key:new Qi("placeholder"),state:{init(){return e??""},apply(t,i){return t.getMeta("UPDATE_PLACEHOLDER")??i}},props:{decorations(t){let{doc:i}=t,{textContent:n,childCount:o}=i,r=this.getState(t);if(!r||o>1)return Si.empty;let a=[],s=(l,c)=>{if(l.type.isBlock&&l.childCount===0&&n.length===0){let h=c,m=c+l.nodeSize,f=qn.node(h,m,{class:yH,"data-placeholder":r,"data-align":l.attrs.align??null});a.push(f)}return!1};return i.descendants(s),Si.create(i,a)}}}),xH=(e={})=>new ri({key:new Qi("attributes"),props:{attributes:e}}),SH=e=>new ri({key:new Qi("focus"),props:{handleDOMEvents:{focus:()=>(e(),!1)}}}),kH=e=>new ri({key:new Qi("blur"),props:{handleDOMEvents:{blur:()=>(e(),!1)}}}),EH=(()=>{let t=class t{constructor(){this.alt="",this.title="",this.outerWidth="",this.selected=!1,this.imageResize=new L}startResizing(n,o){n.preventDefault(),this.resizeImage(n,o)}resizeImage(n,o){let r=n.pageX,a=this.imgEl.nativeElement.clientWidth,s=o==="left",{width:l}=window.getComputedStyle(this.view.dom),c=parseInt(l,10),h=f=>{let _=f.pageX-r,S=s?a-_:a+_;S>c||S<20||(this.outerWidth=`${S}px`)},m=f=>{f.preventDefault(),document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",m),this.imageResize.emit()};document.addEventListener("mousemove",h),document.addEventListener("mouseup",m)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["ngx-image-view"]],viewQuery:function(o,r){if(o&1&&Ue(G9,7),o&2){let a;Me(a=Te())&&(r.imgEl=a.first)}},inputs:{src:"src",alt:"alt",title:"title",outerWidth:"outerWidth",selected:"selected",view:"view"},outputs:{imageResize:"imageResize"},standalone:!1,decls:4,vars:9,consts:[["imgEl",""],[1,"NgxEditor__ImageWrapper",3,"ngClass"],["class","NgxEditor__ResizeHandle",4,"ngIf"],[3,"src","alt","title"],[1,"NgxEditor__ResizeHandle"],[1,"NgxEditor__ResizeHandle--TL",3,"mousedown"],[1,"NgxEditor__ResizeHandle--TR",3,"mousedown"],[1,"NgxEditor__ResizeHandle--BL",3,"mousedown"],[1,"NgxEditor__ResizeHandle--BR",3,"mousedown"]],template:function(o,r){o&1&&(p(0,"span",1),V(1,j9,5,0,"span",2),x(2,"img",3,0),u()),o&2&&(xt("width",r.outerWidth),v("ngClass",z(7,U9,r.selected)),d(),v("ngIf",r.selected),d(),v("src",r.src,ae)("alt",r.alt)("title",r.title))},dependencies:[Ce,Ni],styles:["*[_ngcontent-%COMP%], *[_ngcontent-%COMP%]:before, *[_ngcontent-%COMP%]:after{box-sizing:border-box}img[_ngcontent-%COMP%]{width:100%;height:100%}.NgxEditor__ImageWrapper[_ngcontent-%COMP%]{position:relative;display:inline-block;line-height:0;padding:2px}.NgxEditor__ImageWrapper.NgxEditor__Resizer--Active[_ngcontent-%COMP%]{padding:1px;border:1px solid #1a73e8}.NgxEditor__ImageWrapper[_ngcontent-%COMP%] .NgxEditor__ResizeHandle[_ngcontent-%COMP%]{position:absolute;height:100%;width:100%}.NgxEditor__ImageWrapper[_ngcontent-%COMP%] .NgxEditor__ResizeHandle[_ngcontent-%COMP%] .NgxEditor__ResizeHandle--TL[_ngcontent-%COMP%], .NgxEditor__ImageWrapper[_ngcontent-%COMP%] .NgxEditor__ResizeHandle[_ngcontent-%COMP%] .NgxEditor__ResizeHandle--BL[_ngcontent-%COMP%], .NgxEditor__ImageWrapper[_ngcontent-%COMP%] .NgxEditor__ResizeHandle[_ngcontent-%COMP%] .NgxEditor__ResizeHandle--TR[_ngcontent-%COMP%], .NgxEditor__ImageWrapper[_ngcontent-%COMP%] .NgxEditor__ResizeHandle[_ngcontent-%COMP%] .NgxEditor__ResizeHandle--BR[_ngcontent-%COMP%]{position:absolute;width:7px;height:7px;background-color:#1a73e8;border:1px solid white}.NgxEditor__ImageWrapper[_ngcontent-%COMP%] .NgxEditor__ResizeHandle[_ngcontent-%COMP%] .NgxEditor__ResizeHandle--BR[_ngcontent-%COMP%]{bottom:-5px;right:-5px;cursor:se-resize}.NgxEditor__ImageWrapper[_ngcontent-%COMP%] .NgxEditor__ResizeHandle[_ngcontent-%COMP%] .NgxEditor__ResizeHandle--TR[_ngcontent-%COMP%]{top:-5px;right:-5px;cursor:ne-resize}.NgxEditor__ImageWrapper[_ngcontent-%COMP%] .NgxEditor__ResizeHandle[_ngcontent-%COMP%] .NgxEditor__ResizeHandle--TL[_ngcontent-%COMP%]{top:-5px;left:-5px;cursor:nw-resize}.NgxEditor__ImageWrapper[_ngcontent-%COMP%] .NgxEditor__ResizeHandle[_ngcontent-%COMP%] .NgxEditor__ResizeHandle--BL[_ngcontent-%COMP%]{bottom:-5px;left:-5px;cursor:sw-resize}"]});let e=t;return e})(),l0=class{constructor(t,i,n,o){this.updating=!1,this.handleResize=()=>{if(this.updating)return;let{state:r,dispatch:a}=this.view,{tr:s}=r,l=s.setNodeMarkup(this.getPos(),void 0,ye(B({},this.node.attrs),{width:this.imageComponentRef.instance.outerWidth})),c=l.doc.resolve(this.getPos()),h=new ke(c);l.setSelection(h),a(l)},this.applicationRef=o.get(Vc),this.imageComponentRef=bv(EH,{environmentInjector:this.applicationRef.injector}),this.applicationRef.attachView(this.imageComponentRef.hostView),this.setNodeAttributes(t.attrs),this.imageComponentRef.instance.view=i,this.dom=this.imageComponentRef.location.nativeElement,this.view=i,this.node=t,this.getPos=n,this.resizeSubscription=this.imageComponentRef.instance.imageResize.subscribe(()=>{this.handleResize()})}computeChanges(t,i){return JSON.stringify(t)===JSON.stringify(i)}setNodeAttributes(t){this.imageComponentRef.instance.src=t.src,this.imageComponentRef.instance.alt=t.alt,this.imageComponentRef.instance.title=t.title,this.imageComponentRef.instance.outerWidth=t.width}update(t){return t.type!==this.node.type?!1:(this.node=t,this.computeChanges(this.node.attrs,t.attrs)&&(this.updating=!0,this.setNodeAttributes(t.attrs),this.updating=!1),!0)}ignoreMutation(){return!0}selectNode(){this.imageComponentRef.instance.selected=!0}deselectNode(){this.imageComponentRef.instance.selected=!1}destroy(){this.resizeSubscription.unsubscribe(),this.applicationRef.detachView(this.imageComponentRef.hostView)}},MH=e=>
687new ri({key:new Qi("image-resize"),props:{nodeViews:{image:(t,i,n)=>new l0(t,i,n,e)}}}),TH=/(?:https?:\/\/)?[\w-]+(?:\.[\w-]+)+\.?(?:\d+)?(?:\/\S*)?$/,rS=e=>{let t=[];return e.forEach(i=>{if(i.isText){let n=i.text,o=0,r=TH.exec(n);if(r){let a=r.index,s=a+r[0].length,{link:l}=i.type.schema.marks;a>0&&t.push(i.cut(o,a));let c=n.slice(a,s);t.push(i.cut(a,s).mark(l.create({href:c}).addToSet(i.marks))),o=s}o<n.length&&t.push(i.cut(o))}else t.push(i.copy(rS(i.content)))}),oe.fromArray(t)},IH=()=>new ri({key:new Qi("linkify"),props:{transformPasted:e=>new me(rS(e.content),e.openStart,e.openEnd)}}),aS=e=>typeof e=="string",DH=()=>window.trustedTypes,sS=e=>DH()?.isHTML(e)??!1,lS=e=>aS(e)||sS(e),cS={type:"doc",content:[{type:"paragraph"}]},kp=(e,t)=>{let i=t??gc,n=i.nodeFromJSON(e),o=Mo.fromSchema(i).serializeFragment(n.content),r=document.createElement("div");return r.appendChild(o),r.innerHTML},PH=(e,t,i)=>{let n=t??gc,o=document.createElement("div");return o.innerHTML=e,sr.fromSchema(n).parse(o,i).toJSON()},Q2=(e,t,i)=>{if(!e)return t.nodeFromJSON(cS);if(!lS(e))return t.nodeFromJSON(e);let n=PH(e,t,i);return t.nodeFromJSON(n)},dS=(()=>{let t=class t{constructor(n,o,r){this.renderer=n,this.injector=o,this.elementRef=r,this.placeholder="Type Here...",this.focusOut=new L,this.focusIn=new L,this.unsubscribe=new Xi,this.onChange=()=>{},this.onTouched=()=>{}}writeValue(n){!this.outputFormat&&lS(n)&&(this.outputFormat="html"),this.editor.setContent(n??cS)}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}setDisabledState(n){this.setMeta("UPDATE_EDITABLE",!n),this.renderer.setProperty(this.elementRef.nativeElement,"disabled",n)}handleChange(n){if(this.outputFormat==="html"){let o=kp(n,this.editor.schema);this.onChange(o);return}this.onChange(n)}setMeta(n,o){let{dispatch:r,state:{tr:a}}=this.editor.view;r(a.setMeta(n,o))}setPlaceholder(n){this.setMeta("UPDATE_PLACEHOLDER",n)}registerPlugins(){this.editor.registerPlugin(_H()),this.editor.registerPlugin(wH(this.placeholder)),this.editor.registerPlugin(xH({class:"NgxEditor__Content"})),this.editor.registerPlugin(SH(()=>{this.focusIn.emit()})),this.editor.registerPlugin(kH(()=>{this.focusOut.emit(),this.onTouched()})),this.editor.features.resizeImage&&this.editor.registerPlugin(MH(this.injector)),this.editor.features.linkOnPaste&&this.editor.registerPlugin(IH())}ngOnInit(){if(!this.editor)throw new gs("Required editor instance for initializing editor component");this.registerPlugins(),this.renderer.appendChild(this.ngxEditor.nativeElement,this.editor.view.dom),this.editor.valueChanges.pipe(ro(this.unsubscribe)).subscribe(n=>{this.handleChange(n)})}ngOnChanges(n){n.placeholder&&!n.placeholder.isFirstChange()&&this.setPlaceholder(n.placeholder.currentValue)}ngOnDestroy(){this.unsubscribe.next(),this.unsubscribe.complete()}};t.\u0275fac=function(o){return new(o||t)(O(Rn),O(Bc),O($t))},t.\u0275cmp=U({type:t,selectors:[["ngx-editor"]],viewQuery:function(o,r){if(o&1&&Ue(W9,7),o&2){let a;Me(a=Te())&&(r.ngxEditor=a.first)}},inputs:{editor:"editor",outputFormat:"outputFormat",placeholder:"placeholder"},outputs:{focusOut:"focusOut",focusIn:"focusIn"},standalone:!1,features:[St([{provide:Zt,useExisting:Wt(()=>t),multi:!0}]),Ye],ngContentSelectors:$9,decls:3,vars:0,consts:[["ngxEditor",""],[1,"NgxEditor"]],template:function(o,r){o&1&&(en(),p(0,"div",1,0),ui(2),u())},styles:[`:root{--ngx-editor-border-radius: 4px;--ngx-editor-background-color: #fff;--ngx-editor-text-color: #000;--ngx-editor-placeholder-color: #6c757d;--ngx-editor-border-color: rgba(0, 0, 0, .2);--ngx-editor-wrapper-border-color: rgba(0, 0, 0, .2);--ngx-editor-menubar-bg-color: #fff;--ngx-editor-menubar-padding: 3px;--ngx-editor-menubar-height: 30px;--ngx-editor-blockquote-color: #ddd;--ngx-editor-blockquote-border-width: 3px;--ngx-editor-icon-size: 30px;--ngx-editor-popup-bg-color: #fff;--ngx-editor-popup-border-radius: 4px;--ngx-editor-popup-shadow: rgba(60, 64, 67, .15) 0px 2px 6px 2px;--ngx-editor-menu-item-border-radius: 2px;--ngx-editor-menu-item-active-color: #1a73e8;--ngx-editor-menu-item-hover-bg-color: #f1f1f1;--ngx-editor-menu-item-active-bg-color: #e8f0fe;--ngx-editor-seperator-color: #ccc;--ngx-editor-bubble-bg-color: #000;--ngx-editor-bubble-text-color: #fff;--ngx-editor-bubble-item-hover-color: #636262;--ngx-editor-bubble-seperator-color: #fff;--ngx-editor-focus-ring-color: #5e9ed6;--ngx-editor-error-color: red;--ngx-editor-click-pointer: default}.NgxEditor{background:var(--ngx-editor-background-color);color:var(--ngx-editor-text-color);background-clip:padding-box;border-radius:var(--ngx-editor-border-radius);border:1px solid var(--ngx-editor-border-color);position:relative}.NgxEditor--Disabled{opacity:.5!important;pointer-events:none!important}.NgxEditor__Placeholder:before{color:var(--ngx-editor-placeholder-color);opacity:1;-webkit-user-select:none;user-select:none;position:absolute;cursor:text;content:attr(data-placeholder)}.NgxEditor__Placeholder[data-align=right]:before{position:relative}.NgxEditor__Content{padding:8px;white-space:pre-wrap;outline:none;font-variant-ligatures:none;font-feature-settings:"liga" 0}.NgxEditor__Content p{margin:0 0 10px}.NgxEditor__Content blockquote{padding-left:16px;border-left:var(--ngx-editor-blockquote-border-width) solid var(--ngx-editor-blockquote-color);margin-left:0;margin-right:0}.NgxEditor__Content--Disabled{-webkit-user-select:none;user-select:none;pointer-events:none}.NgxEditor__Wrapper{border:1px solid var(--ngx-editor-wrapper-border-color);border-radius:var(--ngx-editor-border-radius)}.NgxEditor__Wrapper .NgxEditor__MenuBar{border-top-left-radius:var(--ngx-editor-border-radius);border-top-right-radius:var(--ngx-editor-border-radius);border-bottom:1px solid var(--ngx-editor-border-color)}.NgxEditor__Wrapper .NgxEditor{border-top-left-radius:0;border-top-right-radius:0;border:none}.NgxEditor__MenuBar{display:flex;flex-wrap:wrap;padding:var(--ngx-editor-menubar-padding);background-color:var(--ngx-editor-menubar-bg-color);gap:.25rem .1rem}.NgxEditor__MenuBar button:not(:disabled),.NgxEditor__MenuBar [role=button]:not
687(:disabled){cursor:var(--ngx-editor-click-pointer, default)}.NgxEditor__MenuItem{display:flex;align-items:center;justify-content:center;position:relative;flex-shrink:0}.NgxEditor__MenuItem.NgxEditor__MenuItem--IconContainer{display:flex;align-items:center;justify-content:center}.NgxEditor__MenuItem .NgxEditor__MenuItem--Icon{all:unset;appearance:none;height:var(--ngx-editor-icon-size);width:var(--ngx-editor-icon-size);transition:.2s ease-in-out;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--ngx-editor-menu-item-border-radius)}.NgxEditor__MenuItem .NgxEditor__MenuItem--Icon+.NgxEditor__MenuItem--Icon{margin-left:2px}.NgxEditor__MenuItem .NgxEditor__MenuItem--Icon:focus-visible{outline:1px solid var(--ngx-editor-focus-ring-color)}.NgxEditor__MenuItem .NgxEditor__MenuItem--Icon:hover{background-color:var(--ngx-editor-menu-item-hover-bg-color)}.NgxEditor__MenuItem.NgxEditor__MenuItem--Text{padding:0 5px}.NgxEditor__MenuItem.NgxEditor__MenuItem--Active,.NgxEditor__MenuItem .NgxEditor__MenuItem--Active{background-color:var(--ngx-editor-menu-item-active-bg-color);color:var(--ngx-editor-menu-item-active-color)}.NgxEditor__Dropdown{min-width:64px;position:relative;display:flex;align-items:center;flex-shrink:0}.NgxEditor__Dropdown:hover{background-color:var(--ngx-editor-menu-item-hover-bg-color)}.NgxEditor__Dropdown .NgxEditor__Dropdown--Text{all:unset;appearance:none;display:flex;align-items:center;justify-content:center;padding:0 5px;height:100%;width:100%}.NgxEditor__Dropdown .NgxEditor__Dropdown--Text:focus-visible{outline:1px solid var(--ngx-editor-focus-ring-color)}.NgxEditor__Dropdown .NgxEditor__Dropdown--Text:after{display:inline-block;content:"";margin-left:24px;vertical-align:4px;border-top:4px solid;border-right:4px solid transparent;border-bottom:0;border-left:4px solid transparent}.NgxEditor__Dropdown .NgxEditor__Dropdown--DropdownMenu{position:absolute;left:0;box-shadow:var(--ngx-editor-popup-shadow);border-radius:var(--ngx-editor-popup-border-radius);background-color:var(--ngx-editor-popup-bg-color);z-index:10;width:100%;top:calc(var(--ngx-editor-menubar-height) + 2px);display:flex;flex-direction:column}.NgxEditor__Dropdown .NgxEditor__Dropdown--Item{all:unset;appearance:none;padding:8px;white-space:nowrap;color:inherit}.NgxEditor__Dropdown .NgxEditor__Dropdown--Item:focus-visible{outline:1px solid var(--ngx-editor-focus-ring-color)}.NgxEditor__Dropdown .NgxEditor__Dropdown--Item:hover{background-color:var(--ngx-editor-menu-item-hover-bg-color)}.NgxEditor__Dropdown .NgxEditor__Dropdown--Selected,.NgxEditor__Dropdown .NgxEditor__Dropdown--Open{color:var(--ngx-editor-menu-item-active-color);background-color:var(--ngx-editor-menu-item-active-bg-color)}.NgxEditor__Dropdown .NgxEditor__Dropdown--Active{background-color:var(--ngx-editor-menu-item-active-bg-color)}.NgxEditor__Dropdown .NgxEditor__Dropdown--Active:hover{background-color:var(--ngx-editor-menu-item-hover-bg-color)}.NgxEditor__MenuBar--Reverse .NgxEditor__Dropdown--DropdownMenu{top:unset;bottom:calc(var(--ngx-editor-menubar-height) + 2px)}.NgxEditor__MenuBar--Reverse .NgxEditor__Dropdown--Text:after{transform:rotate(180deg)}.NgxEditor__MenuBar--Reverse .NgxEditor__Popup{top:unset;bottom:calc(var(--ngx-editor-menubar-height) + 2px)}.NgxEditor__Popup{position:absolute;top:calc(var(--ngx-editor-menubar-height) + 2px);box-shadow:var(--ngx-editor-popup-shadow);border-radius:var(--ngx-editor-popup-border-radius);background-color:var(--ngx-editor-popup-bg-color);z-index:10;min-width:192px;padding:8px}.NgxEditor__Popup .NgxEditor__Popup--FormGroup{margin-bottom:8px}.NgxEditor__Popup .NgxEditor__Popup--FormGroup label{margin-bottom:3px}.NgxEditor__Popup .NgxEditor__Popup--FormGroup input[type=text],.NgxEditor__Popup .NgxEditor__Popup--FormGroup input[type=url]{padding:2px 4px}.NgxEditor__Popup .NgxEditor__Popup--Col{display:flex;flex-direction:column;position:relative}.NgxEditor__Popup .NgxEditor__Popup--Label{font-size:85%}.NgxEditor__Seperator{border-left:1px solid var(--ngx-editor-seperator-color);margin:0 5px}.NgxEditor__HelpText{font-size:80%}.NgxEditor__HelpText.NgxEditor__HelpText--Error{color:var(--ngx-editor-error-color)} 688`],encapsulation:2});let e=t;return e})(),mr=(()=>{let t=class t{constructor(){this.customMenuRefChange=new Xi}setCustomMenuRef(n){this.customMenuRefChange.next(n)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Qn=class{constructor(t){this.name=t}apply(){return(t,i)=>{let{schema:n}=t,o=n.marks[this.name];return o?n0(o)(t,i):!1}}toggle(){return(t,i)=>{let{schema:n}=t,o=n.marks[this.name];return o?ma(o)(t,i):!1}}isActive(t){let{schema:i}=t,n=i.marks[this.name];return n?gp(t,n):!1}canExecute(t){return this.toggle()(t)}}
688,c0=class{toggle(){return(t,i)=>{let{schema:n}=t,o=n.nodes.blockquote;return o?this.isActive(t)?D2(t,i):F2(o)(t,i):!1}}isActive(t){let{schema:i}=t,n=i.nodes.blockquote;return n?Xf(t,n):!1}canExecute(t){return this.toggle()(t)}},d0=class{insert(){return(t,i)=>{let{schema:n,tr:o}=t,r=n.nodes.horizontal_rule;return r?(i(o.replaceSelectionWith(r.create()).scrollIntoView()),!0):!1}}canExecute(t){return G2(t,t.schema.nodes.horizontal_rule)}},Ps=class{constructor(t=!1){this.isBulletList=!1,this.isBulletList=t}getType(t){return this.isBulletList?t.nodes.bullet_list:t.nodes.ordered_list}toggle(){return(t,i)=>{let{schema:n}=t,o=this.getType(n);return o?this.isActive(t)?Uf(n.nodes.list_item)(t,i):S2(o)(t,i):!1}}isActive(t){let{schema:i}=t,n=this.getType(i);return n?Xf(t,n):!1}canExecute(t){return this.toggle()(t)}},Ao=class{constructor(t){this.level=t}apply(){return(t,i)=>{let{schema:n}=t,o=n.nodes.heading;return o?pp(o)(t,i):!1}}toggle(){return(t,i)=>{let{schema:n,selection:o,doc:r}=t,a=n.nodes.heading;if(!a)return!1;let s=o.$from.before(1),c=r.nodeAt(s)?.attrs??{};return this.isActive(t)?pp(n.nodes.paragraph,c)(t,i):pp(a,ye(B({},c),{level:this.level}))(t,i)}}isActive(t){let{schema:i}=t,n=e0(t),o=i.nodes.heading;if(!o)return!1;let r=[o,i.nodes.text,i.nodes.blockquote];return!!n.filter(l=>r.includes(l.type)).find(l=>l.attrs.level===this.level)}canExecute(t){return this.toggle()(t)}},Ca=class{constructor(t){this.align=t}toggle(){return(t,i)=>{let{doc:n,selection:o,tr:r,schema:a}=t,{from:s,to:l}=o,c=!1;return n.nodesBetween(s,l,(h,m)=>{let f=h.type;if([a.nodes.paragraph,a.nodes.heading].includes(f)){c=!0;let b=h.attrs.align===this.align?null:this.align;r.setNodeMarkup(m,f,ye(B({},h.attrs),{align:b}))}return!0}),c?(r.docChanged&&i?.(r),!0):!1}}isActive(t){return!!e0(t).find(o=>o.attrs.align===this.align)}canExecute(t){return this.toggle()(t)}},RH={strict:!0},u0=class{update(t){return(i,n)=>{let{schema:o,selection:r}=i,a=o.marks.link;return!a||r.empty?!1:ma(a,t)(i,n)}}insert(t,i){return(n,o)=>{let{schema:r,tr:a}=n;if(!r.marks.link)return!1;let l={href:i.href,title:i.title??t,target:i.target??"_blank"},c=r.text(t,[r.marks.link.create(l)]);return a.replaceSelectionWith(c,!1).scrollIntoView(),a.docChanged?(o?.(a),!0):!1}}isActive(t,i=RH){if(i.strict)return!0;let{schema:n}=t,o=n.marks.link;return o?gp(t,o):!1}remove(t,i){return U2()(t,i)}canExecute(t){let i={href:""};return this.insert("Exec",i)(t)||this.update(i)(t)}},uS=class{insert(t,i){return(n,o)=>{let{schema:r,tr:a,selection:s}=n,l=r.nodes.image;if(!l)return!1;let c=B({width:null,src:t},i);!c.width&&s instanceof ke&&s.node.type===l&&(c.width=s.node.attrs.width),a.replaceSelectionWith(l.createAndFill(c));let h=a.doc.resolve(a.selection.anchor-a.selection.$anchor.nodeBefore.nodeSize);return a.setSelection(new ke(h)).scrollIntoView(),a.docChanged?(o?.(a),!0):!1}}isActive(t){let{selection:i}=t;return i instanceof ke?i.node.type.name==="image":!1}},Ds=class{constructor(t,i="color"){this.name=t,this.attrName=i}apply(t){return(i,n)=>{let{schema:o,selection:r,doc:a}=i,s=o.marks[this.name];if(!s)return!1;let{from:l,to:c,empty:h}=r;if(!h&&l+1===c){let m=a.nodeAt(l);if(m?.isAtom&&!m.isText&&m.isLeaf)return!1}return n0(s,t)(i,n)}}isActive(t){let{schema:i}=t,n=i.marks[this.name];return n?gp(t,n):!1}getActiveColors(t){if(!this.isActive(t))return[];let{schema:i}=t;return H2(t).filter(r=>r.type===i.marks[this.name]).map(r=>r.attrs[this.attrName]).filter(Boolean)}remove(){return(t,i)=>{let{schema:n}=t,o=n.marks[this.name];return o?j2(o)(t,i):!1}}canExecute(t){let i=this.name==="text_color"?{color:""}:{backgroundColor:""};return this.apply(i)(t)}},FH=["link"],p0=class{insert(){return(t,i)=>{let{tr:n}=t,{ranges:o,empty:r}=n.selection;return r||(Object.entries(t.schema.marks).forEach(([a,s])=>{FH.includes(a)||o.forEach(l=>{n.removeMark(l.$from.pos,l.$to.pos,s)})}),i(n)),!0}}canExecute(){return!0}},OH=["paragraph","heading","blockquote"],J2=0,Z2=10,AH=(e,t,i)=>{let n=e.doc.nodeAt(t);if(!n)return!1;let o=n.attrs.indent??0,r=vw(o+(i==="increase"?1:-1),J2,Z2);if(r===o||r<J2||r>Z2)return!1;let a=ye(B({},n.attrs),{indent:r});return e.setNodeMarkup(t,n.type,a),!0},Rs=class{constructor(t){this.method="increase",this.method=t}insert(){return(t,i)=>{let{tr:n,doc:o}=t,{from:r,to:a}=n.selection,s=!1;return o.nodesBetween(r,a,(l,c)=>{let h=l.type;
688return OH.includes(h.name)?(s=AH(n,c,this.method),!1):!l.type.name.includes("list")}),s?(n.docChanged&&i?.(n),!0):!1}}canExecute(t){return this.insert()(t)}},wp=class{constructor(t){this.mode="undo",this.mode=t}insert(){return(t,i)=>this.mode==="undo"?Cp(t,i):mc(t,i)}canExecute(t){return this.insert()(t)}},LH=new Qn("strong"),NH=new Qn("em"),zH=new Qn("code"),BH=new Qn("u"),VH=new Qn("s"),HH=new c0,GH=new d0,UH=new p0,jH=new Ps(!0),WH=new Ps(!1),$H=new Ao(1),qH=new Ao(2),YH=new Ao(3),KH=new Ao(4),QH=new Ao(5),JH=new Ao(6),ZH=new Ca("left"),XH=new Ca("center"),eG=new Ca("right"),tG=new Ca("justify"),iG=new u0,nG=new uS,oG=new Ds("text_color","color"),rG=new Ds("text_background_color","backgroundColor"),aG=new Rs("increase"),sG=new Rs("decrease"),lG=new Qn("sup"),cG=new Qn("sub"),dG=new wp("undo"),uG=new wp("redo"),xp={bold:LH,italic:NH,code:zH,underline:BH,strike:VH,blockquote:HH,bullet_list:jH,ordered_list:WH,h1:$H,h2:qH,h3:YH,h4:KH,h5:QH,h6:JH,align_left:ZH,align_center:XH,align_right:eG,align_justify:tG,superscript:lG,subscript:cG},X2={horizontal_rule:GH,format_clear:UH,indent:aG,outdent:sG,undo:dG,redo:uG},vc=iG,eS=nG,pG=oG,hG=rG,h0={bold:"Bold",italic:"Italic",code:"Code",underline:"Underline",strike:"Strike",blockquote:"Blockquote",bullet_list:"Bullet List",ordered_list:"Ordered List",heading:"Heading",h1:"Header 1",h2:"Header 2",h3:"Header 3",h4:"Header 4",h5:"Header 5",h6:"Header 6",align_left:"Left Align",align_center:"Center Align",align_right:"Right Align",align_justify:"Justify",text_color:"Text Color",background_color:"Background Color",horizontal_rule:"Horizontal rule",format_clear:"Clear Formatting",insertLink:"Insert Link",removeLink:"Remove Link",insertImage:"Insert Image",indent:"Increase Indent",outdent:"Decrease Indent",superscript:"Superscript",subscript:"Subscript",undo:"Undo",redo:"Redo",url:"URL",text:"Text",openInNewTab:"Open in new tab",insert:"Insert",altText:"Alt Text",title:"Title",remove:"Remove",enterValidUrl:"Please enter a valid URL"},g0=class{constructor(t={}){this.locals=h0,this.get=i=>{let n=this.locals[i];return n?Nc(n)?n:Q(n):Q("")},this.locals=B(B({},h0),t)}},gG=` 689 <path d="M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3v-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5z" /> 690`,mG=` 691 <path d="M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z" /> 692`,fG=` 693<path d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"/> 694`,vG=` 695<path d="M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z"/> 696`,CG=` 697<path d="M6.85,7.08C6.85,4.37,9.45,3,12.24,3c1.64,0,3,0.49,3.9,1.28c0.77,0.65,1.46,1.73,1.46,3.24h-3.01 c0-0.31-0.05-0.59-0.15-0.85c-0.29-0.86-1.2-1.28-2.25-1.28c-1.86,0-2.34,1.02-2.34,1.7c0,0.48,0.25,0.88,0.74,1.21 C10.97,8.55,11.36,8.78,12,9H7.39C7.18,8.66,6.85,8.11,6.85,7.08z M21,12v-2H3v2h9.62c1.15,0.45,1.96,0.75,1.96,1.97 c0,1-0.81,1.67-2.28,1.67c-1.54,0-2.93-0.54-2.93-2.51H6.4c0,0.55,0.08,1.13,0.24,1.58c0.81,2.29,3.29,3.3,5.67,3.3 c2.27,0,5.3-0.89,5.3-4.05c0-0.3-0.01-1.16-0.48-1.94H21V12z"/> 698`,bG=` 699<path d="M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z"/> 700`,_G=` 701<path d="M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5zm0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5zM7 19h14v-2H7v2zm0-6h14v-2H7v2zm0-8v2h14V5H7z"/> 702`,yG=` 703<path d="M0 0h24v24H0z" fill="none"/><path d="M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z"/> 704`,wG=` 705<path d="M0 0h24v24H0z" fill="none"/><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/> 706`,xG=` 707<path d="M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5zm-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3 2 4.27z"/> 708`,SG=` 709<path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/> 710`,kG=` 711<path d="M15 15H3v2h12v-2zm0-8H3v2h12V7zM3 13h18v-2H3v2zm0 8h18v-2H3v2zM3 3v2h18V3H3z"/> 712`,EG=` 713<path d="M7 15v2h10v-2H7zm-4 6h18v-2H3v2zm0-8h18v-2H3v2zm4-6v2h10V7H7zM3 3v2h18V3H3z"/> 714`,MG=` 715<path d="M3 21h18v-2H3v2zm6-4h12v-2H9v2zm-6-4h18v-2H3v2zm6-4h12V7H9v2zM3 3v2h18V3H3z"/> 716`,TG=` 717<path d="M3 21h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18V7H3v2zm0-6v2h18V3H3z"/> 718`,IG=` 719<path d="M2,20h20v4H2V20z M5.49,17h2.42l1.27-3.58h5.65L16.09,17h2.42L13.25,3h-2.5L5.49,17z M9.91,11.39l2.03-5.79h0.12l2.03,5.79 H9.91z"/> 720`,DG=` 721<path d="M16.56,8.94L7.62,0L6.21,1.41l2.38,2.38L3.44,8.94c-0.59,0.59-0.59,1.54,0,2.12l5.5,5.5C9.23,16.85,9.62,17,10,17 s0.77-0.15,1.06-0.44l5.5-5.5C17.15,10.48,17.15,9.53,16.56,8.94z M5.21,10L10,5.21L14.79,10H5.21z M19,11.5c0,0-2,2.17-2,3.5 c0,1.1,0.9,2,2,2s2-0.9,2-2C21,13.67,19,11.5,19,11.5z M2,20h20v4H2V20z"/> 722`,PG=` 723 <g> 724 <rect fill="none" fill-rule="evenodd" height="24" width="24"/> 725 <rect fill-rule="evenodd" height="2" width="16" x="4" y="11"/> 726 </g> 727`,RG=` 728<path d="M0 0h24v24H0z" fill="none"/><path d="M3.27 5L2 6.27l6.97 6.97L6.5 19h3l1.57-3.66L16.73 21 18 19.73 3.55 5.27 3.27 5zM6 5v.18L8.82 8h2.4l-.72 1.68 2.1 2.1L14.21 8H20V5H6z"/> 729`,FG='<path d="M0 0h24v24H0V0z" fill="none"/><path d="M3 21h18v-2H3v2zM3 8v8l4-4-4-4zm8 9h10v-2H11v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z"/>',OG='<path d="M0 0h24v24H0V0z" fill="none"/><path d="M11 17h10v-2H11v2zm-8-5l4 4V8l-4 4zm0 9h18v-2H3v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z"/>',AG='<g><rect fill="none" height="20" width="20"/>
729<path d="M17,6l-1,0v1h2v1l-3,0V6c0-0.55,0.45-1,1-1l1,0l0-1h-2V3l2,0c0.55,0,1,0.45,1,1v1C18,5.55,17.55,6,17,6z M5.63,16h1.9 l2.43-3.87h0.08L12.47,16h1.9l-3.32-5.2l3.1-4.8h-1.91l-2.19,3.56H9.96L7.75,6h-1.9l3.09,4.8L5.63,16z"/></g>',LG='<g><rect fill="none" height="20" width="20"/><path d="M17,15l-1,0v1h2v1h-3v-2c0-0.55,0.45-1,1-1l1,0l0-1h-2v-1l2,0c0.55,0,1,0.45,1,1v1C18,14.55,17.55,15,17,15z M5.63,14h1.9 l2.43-3.87h0.08L12.47,14h1.9l-3.32-5.2l3.1-4.8h-1.91l-2.19,3.56H9.96L7.75,4h-1.9l3.09,4.8L5.63,14z"/></g>',NG='<path d="M0 0h24v24H0V0z" fill="none"/><path d="M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/>',zG='<path d="M0 0h24v24H0V0z" fill="none"/><path d="M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/>',BG=20,VG=20,HG="currentColor",pS={bold:gG,italic:mG,code:fG,underline:vG,strike:CG,ordered_list:bG,bullet_list:_G,blockquote:yG,link:wG,unlink:xG,image:SG,align_left:kG,align_center:EG,align_right:MG,align_justify:TG,text_color:IG,color_fill:DG,horizontal_rule:PG,format_clear:RG,indent:FG,outdent:OG,superscript:AG,subscript:LG,undo:NG,redo:zG,path:"<path></path>"},m0=class{static get(t,i=HG){let n=pS[t];return n&&(n.includes("<path")||n.includes("<g"))?` 730 <svg 731 xmlns="http://www.w3.org/2000/svg"
732 viewBox="0 0 24 24" 733 fill=${i} 734 height=${BG} 735 width=${VG} 736 > 737 ${n} 738 </svg> 739 `:n}},f0=(()=>{let t=class t{constructor(){this.locals={},this.icons={}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),ba=(()=>{let t=class t{constructor(n){this.config=n}get locals(){return new g0(this.config.locals)}getIcon(n){return this.config.icons[n]?this.config.icons[n]:m0.get(n)}};t.\u0275fac=function(o){return new(o||t)(Y(f0,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),tS=e=>({locals:e.locals??{},icons:e.icons??{}}),Fs=(()=>{let t=class t{constructor(n){this.sanitizer=n}transform(n){return sS(n)?n:this.sanitizer.bypassSecurityTrustHtml(n)}};t.\u0275fac=function(o){return new(o||t)(O(yn,16))},t.\u0275pipe=et({name:"sanitizeHtml",type:t,pure:!0,standalone:!1});let e=t;return e})(),GG=(()=>{let t=class t{get name(){return this.toolbarItem}constructor(n,o){this.ngxeService=n,this.menuService=o,this.isActive=!1,this.disabled=!1,this.update=r=>{let{state:a}=r,s=xp[this.name];this.isActive=s.isActive(a),this.disabled=!s.canExecute(a)}}toggle(){let{state:n,dispatch:o}=this.editorView;xp[this.name].toggle()(n,o)}onMouseClick(n){n.preventDefault(),n.button===0&&this.toggle()}onKeydown(){this.toggle()}getTitle(n){return this.ngxeService.locals.get(n)}ngOnInit(){this.html=this.ngxeService.getIcon(this.name),this.editorView=this.menuService.editor.view,this.updateSubscription=this.menuService.editor.update.subscribe(n=>{this.update(n)})}ngOnDestroy(){this.updateSubscription.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)(O(ba),O(mr))},t.\u0275cmp=U({type:t,selectors:[["ngx-toggle-command"]],inputs:{toolbarItem:"toolbarItem"},standalone:!1,decls:4,vars:14,consts:[["type","button",1,"NgxEditor__MenuItem--Icon",3,"mousedown","keydown.enter","keydown.space","disabled","innerHTML","title","ariaLabel"]],template:function(o,r){o&1&&(p(0,"button",0),N(1,"sanitizeHtml"),N(2,"async"),N(3,"async"),T("mousedown",function(s){return r.onMouseClick(s)})("keydown.enter",function(){return r.onKeydown()})("keydown.space",function(){return r.onKeydown()}),u()),o&2&&(Pe("NgxEditor__MenuItem--Active",r.isActive)("NgxEditor--Disabled",r.disabled),v("disabled",r.disabled)("innerHTML",G(1,8,r.html),ue)("title",G(2,10,r.getTitle(r.name)))("ariaLabel",G(3,12,r.getTitle(r.name))))},dependencies:[zi,Fs],encapsulation:2});let e=t;return e})(),UG=(()=>{let t=class t{get name(){return this.toolbarItem}constructor(n,o){this.ngxeService=n,this.menuService=o,this.disabled=!1,this.update=r=>{let{state:a}=r,s=X2[this.name];this.disabled=!s.canExecute(a)}}onMouseClick(n){n.preventDefault(),n.button===0&&this.insert()}onKeydown(){this.insert()}insert(){let{state:n,dispatch:o}=this.editorView;X2[this.name].insert()(n,o)}getTitle(n){return this.ngxeService.locals.get(n)}ngOnInit(){this.html=this.ngxeService.getIcon(this.name),this.editorView=this.menuService.editor.view,this.updateSubscription=this.menuService.editor.update.subscribe(n=>{this.update(n)})}ngOnDestroy(){this.updateSubscription.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)(O(ba),O(mr))},t.\u0275cmp=U({type:t,selectors:[["ngx-insert-command"]],inputs:{toolbarItem:"toolbarItem"},standalone:!1,decls:4,vars:12,consts:[[1,"NgxEditor__MenuItem--Icon",3,"mousedown","keydown.enter","keydown.space","disabled","innerHTML","title","ariaLabel"]],template:function(o,r){o&1&&(p(0,"button",0),N(1,"sanitizeHtml"),N(2,"async"),N(3,"async"),T("mousedown",function(s){return r.onMouseClick(s)})("keydown.enter",function(){return r.onKeydown()})("keydown.space",function(){return r.onKeydown()}),u()),o&2&&(Pe("NgxEditor--Disabled",r.disabled),v("disabled",r.disabled)("innerHTML",G(1,6,r.html),ue)("title",G(2,8,r.getTitle(r.name)))("ariaLabel",G(3,10,r.getTitle(r.name))))},dependencies:[zi,Fs],encapsulation:2});let e=t;return e})(),iS={showOpenInNewTab:!0},jG=(()=>{let t=class t{constructor(n,o,r){this.el=n,this.ngxeService=o,this.menuService=r,this.options=iS,this.showPopup=!1,this.isActive=!1,this.canExecute=!0,this.componentId=jm(),this.setText=()=>{let{state:{selection:a,doc:s}}=this.editorView,{empty:l,from:c,to:h}=a,m=l?"":s.textBetween(c,h);m&&(this.text.patchValue(m),this.text.disable())},this.update=a=>{let{state:s}=a;this.isActive=vc.isActive(s,{strict:!1}),this.canExecute=vc.canExecute(s)}}get icon(){return this.ngxeService.getIcon(this.isActive?"unlink":"link")}get title(){return this.ngxeService.locals.get(this.isActive?"removeLink":"insertLink")}get href(){return this.form.get("href")}get text(){return this.form.get("text")}onDocumentClick(n){!this.el.nativeElement.contains(n.target)&&this.showPopup&&this.hidePopup()}getId(n){return`${n}-${this.componentId}`}getLabel(n){return this.ngxeService.locals.get(n)}hidePopup(){this.showPopup=!1,this.form.reset({href:"",text:"",openInNewTab:!0}),this.text.enable()}togglePopup(){let{state:n,dispatch:o}=this.editorView;if(this.isActive){vc.remove(n,o);return}this.showPopup=!this.showPopup,this.showPopup&&this.setText()}onTogglePopupMouseClick(n){n.button===0&&this.togglePopup()}onTogglePopupKeydown(){this.togglePopup()}insertLink(n){n.preventDefault();let{text:o,href:r,openInNewTab:a}=this.form.getRawValue(),{dispatch:s,state:l}=this.editorView,{selection:c}=l,h;this.options.showOpenInNewTab&&(h=a?"_blank":"_self");let m={title:r,href:r,target:h};c.empty?(vc.insert(o,m)(l,s),this.editorView.focus()):vc.update(m)(l,s),this.hidePopup()}ngOnInit(){this.editorView=this.menuService.editor.view,this.form=new Er({href:new Xt("",[fe.required,fe.pattern(this.menuService.editor.linkValidationPattern)]),text:new Xt("",[fe.required]),openInNewTab:new Xt(!0)}),this.updateSubscription=this.menuService.editor.update.subscribe(n=>{this.update(n)})}ngOnDestroy(){this.updateSubscription.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)(O($t),O(ba),O(mr))},t.\u0275cmp=U({type:t,selectors:[["ngx-link"]],hostBindings:function(o,r){o&1&&T("mousedown",function(s){return r.onDocumentClick(s)},wr)},inputs:{options:[2,"options","options",n=>B(B({},iS),n)]},standalone:!1,decls:5,vars:16,consts:[["type","button","aria-haspopup","dialog",1,"NgxEditor__MenuItem--Icon",3,"mousedown","keydown.enter","keydown.space","disabled","innerHTML","title","ariaLabel","ariaExpanded"],["class","NgxEditor__Popup",4,"ngIf"],[1,"NgxEditor__Popup"],[1,"NgxEditor__Popup--Form",3,"ngSubmit","formGroup"],[1,"NgxEditor__Popup--FormGroup"],[1,"NgxEditor__Popup--Col"],[1,"NgxEditor__Popup--Label",3,"htmlFor"],["type","href","formControlName","href","autocomplete","off",3,"id"],["class","NgxEditor__HelpText NgxEditor__HelpText--Error",4,"ngIf"],["type","text","formControlName","text","autocomplete","off",3,"id"],["class","NgxEditor__Popup--FormGroup",4,"ngIf"],["type","submit",3,"disabled"],[1,"NgxEditor__HelpText","NgxEditor__HelpText--Error"],["type","checkbox","formControlName","openInNewTab"]],template:function(o,r){o&1&&(p(0,"button",0),N(1,"sanitizeHtml"),N(2,"async"),N(3,"async"),T("mousedown",function(s){return r.onTogglePopupMouseClick(s)})("keydown.enter",function(){return r.onTogglePopupKeydown()})("keydown.space",function(){return r.onTogglePopupKeydown()}),u(),V(4,Q9,20,18,"div",1)),o&2&&(Pe("NgxEditor__MenuItem--Active",r.isActive||r.showPopup)("NgxEditor--Disabled",!r.canExecute),v("disabled",!r.canExecute)("innerHTML",G(1,10,r.icon),ue)("title",G(2,12,r.title))("ariaLabel",G(3,14,r.title))("ariaExpanded",r.showPopup),d(4),v("ngIf",r.showPopup))},dependencies:[Ni,ho,Bi,Iv,Qe,ct,_t,ti,zi,Fs],encapsulation:2});let e=t;return e})(),WG=(()=>{let t=class t{constructor(n,o,r){this.ngxeService=n,this.menuService=o,this.el=r,this.isDropdownOpen=!1,this.disabledItems=[],this.update=a=>{let{state:s}=a;this.disabledItems=[];let l=[];
739this.items.forEach(c=>{let h=xp[c];h.isActive(s)&&l.push(c),h.canExecute(s)||this.disabledItems.push(c)}),l.length===1?[this.activeItem]=l:this.activeItem=null}}get isSelected(){return!!(this.activeItem||this.isDropdownOpen)}get isDropdownDisabled(){return this.disabledItems.length===this.items.length}onDocumentClick(n){!this.el.nativeElement.contains(n)&&this.isDropdownOpen&&(this.isDropdownOpen=!1)}getName(n){return this.ngxeService.locals.get(n)}getIsDropdownActive(n){return this.activeItem===n}toggleDropdown(){this.isDropdownOpen=!this.isDropdownOpen}onToggleDropdownMouseClick(n){n.preventDefault(),n.button===0&&this.toggleDropdown()}onToggleDropdownKeydown(){this.toggleDropdown()}trackByIndex(n){return n}selectItem(n){let o=xp[n],{state:r,dispatch:a}=this.editorView;o.toggle()(r,a),this.isDropdownOpen=!1}onDropdownItemMouseClick(n,o){n.preventDefault(),n.button===0&&this.selectItem(o)}onDropdownItemKeydown(n,o){n.preventDefault(),this.selectItem(o)}ngOnInit(){this.editorView=this.menuService.editor.view,this.updateSubscription=this.menuService.editor.update.subscribe(n=>{this.update(n)})}ngOnDestroy(){this.updateSubscription.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)(O(ba),O(mr),O($t))},t.\u0275cmp=U({type:t,selectors:[["ngx-dropdown"]],hostBindings:function(o,r){o&1&&T("mousedown",function(s){return r.onDocumentClick(s.target)},wr)},inputs:{group:"group",items:"items"},standalone:!1,decls:5,vars:13,consts:[["type","button","aria-haspopup","listbox",1,"NgxEditor__Dropdown--Text",3,"mousedown","keydown.enter","keydown.space","disabled","ariaLabel","ariaExpanded"],["class","NgxEditor__Dropdown--DropdownMenu","role","listbox",4,"ngIf"],["role","listbox",1,"NgxEditor__Dropdown--DropdownMenu"],["type","button","class","NgxEditor__Dropdown--Item","role","option",3,"ngClass","ariaLabel","mousedown","keydown.enter","keydown.space",4,"ngFor","ngForOf","ngForTrackBy"],["type","button","role","option",1,"NgxEditor__Dropdown--Item",3,"mousedown","keydown.enter","keydown.space","ngClass","ariaLabel"]],template:function(o,r){o&1&&(p(0,"button",0),N(1,"async"),T("mousedown",function(s){return r.onToggleDropdownMouseClick(s)})("keydown.enter",function(){return r.onToggleDropdownKeydown()})("keydown.space",function(){return r.onToggleDropdownKeydown()}),C(2),N(3,"async"),u(),V(4,X9,2,2,"div",1)),o&2&&(Pe("NgxEditor__Dropdown--Selected",r.isSelected)("NgxEditor--Disabled",r.isDropdownDisabled),v("disabled",r.isDropdownDisabled)("ariaLabel",G(1,9,r.getName(r.activeItem||r.group)))("ariaExpanded",r.isDropdownOpen),d(2),A(" ",G(3,11,r.getName(r.activeItem||r.group)),` 740`),d(2),v("ngIf",r.isDropdownOpen))},dependencies:[Ce,lo,Ni,zi],encapsulation:2});let e=t;return e})(),$G=(()=>{let t=class t{constructor(n,o,r){this.el=n,this.ngxeService=o,this.menuService=r,this.showPopup=!1,this.isActive=!1,this.componentId=jm(),this.form=new Er({src:new Xt("",[fe.required,fe.pattern(`(https?://)?([\\da-z.-]+)\\.([a-z.]{2,6})[/\\w .-]*/??([^# 741\r]*)?#?([^ 742\r]*)`)]),alt:new Xt(""),title:new Xt("")}),this.update=a=>{let{state:s}=a;this.isActive=eS.isActive(s)}}get icon(){return this.ngxeService.getIcon("image")}get src(){return this.form.get("src")}onDocumentClick(n){!this.el.nativeElement.contains(n.target)&&this.showPopup&&this.hideForm()}getId(n){return`${n}-${this.componentId}`}getLabel(n){return this.ngxeService.locals.get(n)}hideForm(){this.showPopup=!1,this.form.reset({src:"",alt:"",title:""})}togglePopup(){this.showPopup=!this.showPopup,this.showPopup&&this.fillForm()}onTogglePopupMouseClick(n){n.button===0&&this.togglePopup()}onTogglePopupKeydown(){this.togglePopup()}fillForm(){let{state:n}=this.editorView,{selection:o}=n;if(o instanceof ke&&this.isActive){let{src:r,alt:a="",title:s=""}=o.node.attrs;this.form.setValue({src:r,alt:a,title:s})}}insertLink(n){n.preventDefault();let{src:o,alt:r,title:a}=this.form.getRawValue(),{dispatch:s,state:l}=this.editorView,c={alt:r,title:a};eS.insert(o,c)(l,s),this.editorView.focus(),this.hideForm()}ngOnInit(){this.editorView=this.menuService.editor.view,this.updateSubscription=this.menuService.editor.update.subscribe(n=>{this.update(n)})}ngOnDestroy(){this.updateSubscription.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)(O($t),O(ba),O(mr))},t.\u0275cmp=U({type:t,selectors:[["ngx-image"]],hostBindings:function(o,r){o&1&&T("mousedown",function(s){return r.onDocumentClick(s)},wr)},standalone:!1,decls:5,vars:13,consts:[["type","button","aria-haspopup","dialog",1,"NgxEditor__MenuItem--Icon",3,"mousedown","keydown.enter","keydown.space","innerHTML","title","ariaLabel","ariaExpanded"],["class","NgxEditor__Popup",4,"ngIf"],[1,"NgxEditor__Popup"],[1,"NgxEditor__Popup--Form",3,"ngSubmit","formGroup"],[1,"NgxEditor__Popup--FormGroup"],[1,"NgxEditor__Popup--Col"],[1,"NgxEditor__Popup--Label",3,"htmlFor"],["type","href","formControlName","src","autocomplete","off",3,"id"],["class","NgxEditor__HelpText NgxEditor__HelpText--Error",4,"ngIf"],["type","text","formControlName","alt","autocomplete","off",3,"id"],["type","text","formControlName","title","autocomplete","off",3,"id"],["type","submit",3,"disabled"],[1,"NgxEditor__HelpText","NgxEditor__HelpText--Error"]],template:function(o,r){o&1&&(p(0,"button",0),N(1,"sanitizeHtml"),N(2,"async"),N(3,"async"),T("mousedown",function(s){return r.onTogglePopupMouseClick(s)})("keydown.enter",function(){return r.onTogglePopupKeydown()})("keydown.space",function(){return r.onTogglePopupKeydown()}),u(),V(4,tH,24,21,"div",1)),o&2&&(Pe("NgxEditor__MenuItem--Active",r.isActive||r.showPopup),v("innerHTML",G(1,7,r.icon),ue)("title",G(2,9,r.getLabel("insertImage")))("ariaLabel",G(3,11,r.getLabel("insertImage")))("ariaExpanded",r.showPopup),d(4),v("ngIf",r.showPopup))},dependencies:[Ni,ho,Bi,Qe,ct,_t,ti,zi,Fs],encapsulation:2});let e=t;return e})(),qG=(()=>{let t=class t{constructor(n,o,r){this.el=n,this.menuService=o,this.ngxeService=r,this.showPopup=!1,this.isActive=!1,this.activeColors=[],this.canExecute=!0,this.update=a=>{let{state:s}=a;this.canExecute=this.command.canExecute(s),this.isActive=this.command.isActive(s),this.activeColors=[],this.isActive&&(this.activeColors=this.command.getActiveColors(s))}}
742get title(){return this.getLabel(this.type==="text_color"?"text_color":"background_color")}get icon(){return this.ngxeService.getIcon(this.type==="text_color"?"text_color":"color_fill")}get command(){return this.type==="text_color"?pG:hG}getContrastYIQ(n){let o=n.replace("#",""),r=parseInt(o.substring(0,2),16),a=parseInt(o.substring(2,4),16),s=parseInt(o.substring(4,6),16);return(r*299+a*587+s*114)/1e3>=128?"black":"white"}onDocumentClick(n){!this.el.nativeElement.contains(n.target)&&this.showPopup&&this.hidePopup()}hidePopup(){this.showPopup=!1}togglePopup(){this.showPopup=!this.showPopup}onTogglePopupMouseClick(n){n.preventDefault(),n.button===0&&this.togglePopup()}onTogglePopupKeydown(){this.togglePopup()}remove(){let{state:n,dispatch:o}=this.editorView;this.command.remove()(n,o),this.hidePopup()}onRemoveMouseClick(n){n.preventDefault(),n.button===0&&(n.preventDefault(),this.remove())}onRemoveKeydown(){this.remove()}trackByIndex(n){return n}selectColor(n){let{state:o,dispatch:r}=this.editorView;if(this.type==="text_color"){let a={color:n};this.command.apply(a)(o,r)}else{let a={backgroundColor:n};this.command.apply(a)(o,r)}this.editorView.hasFocus()||this.editorView.focus(),this.hidePopup()}onColorSelectMouseClick(n,o){n.preventDefault(),n.button===0&&this.selectColor(o)}onColorSelectKeydown(n){this.selectColor(n)}getLabel(n){return this.ngxeService.locals.get(n)}ngOnInit(){this.editorView=this.menuService.editor.view,this.updateSubscription=this.menuService.editor.update.subscribe(n=>{this.update(n)})}ngOnDestroy(){this.updateSubscription.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)(O($t),O(mr),O(ba))},t.\u0275cmp=U({type:t,selectors:[["ngx-color-picker"]],hostBindings:function(o,r){o&1&&T("mousedown",function(s){return r.onDocumentClick(s)},wr)},inputs:{presets:"presets",type:"type"},standalone:!1,decls:5,vars:15,consts:[["type","button",1,"NgxEditor__MenuItem--Icon",3,"mousedown","keydown.enter","keydown.space","disabled","innerHTML","title","ariaLabel"],["class","NgxEditor__Popup",4,"ngIf"],[1,"NgxEditor__Popup"],["class","NgxEditor__ColorContainer",4,"ngFor","ngForOf","ngForTrackBy"],[1,"NgxEditor__MenuItem--Button",3,"mousedown","keydown.enter","keydown.space","disabled"],[1,"NgxEditor__ColorContainer"],["class","NgxEditor__Color",3,"ngStyle","title","ngClass","mousedown","keydown.enter","keydown.space",4,"ngFor","ngForOf","ngForTrackBy"],[1,"NgxEditor__Color",3,"mousedown","keydown.enter","keydown.space","ngStyle","title","ngClass"]],template:function(o,r){o&1&&(p(0,"button",0),N(1,"sanitizeHtml"),N(2,"async"),N(3,"async"),T("mousedown",function(s){return r.onTogglePopupMouseClick(s)})("keydown.enter",function(){return r.onTogglePopupKeydown()})("keydown.space",function(){return r.onTogglePopupKeydown()}),u(),V(4,aH,5,6,"div",1)),o&2&&(Pe("NgxEditor__MenuItem--Active",r.isActive||r.showPopup)("NgxEditor--Disabled",!r.canExecute),v("disabled",!r.canExecute)("innerHTML",G(1,9,r.icon),ue)("title",G(2,11,r.title))("ariaLabel",G(3,13,r.title)),d(4),v("ngIf",r.showPopup))},dependencies:[Ce,lo,Ni,kr,zi,Fs],styles:['@charset "UTF-8";.NgxEditor__Popup[_ngcontent-%COMP%]{width:230px}.NgxEditor__ColorContainer[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.NgxEditor__ColorContainer[_ngcontent-%COMP%] + .NgxEditor__ColorContainer[_ngcontent-%COMP%]{margin-top:5px}.NgxEditor__Color[_ngcontent-%COMP%]{border:none;outline:none;border-radius:6px;width:24px;height:24px;flex-shrink:0}.NgxEditor__Color[_ngcontent-%COMP%]:focus-visible{outline:1px solid var(--ngx-editor-focus-ring-color);outline-offset:1px}.NgxEditor__Color--Active[_ngcontent-%COMP%]:after{content:"\\2714";font-size:90%}.NgxEditor__MenuItem--Button[_ngcontent-%COMP%]{margin-top:5px}']});let e=t;return e})();var YG=[["bold","italic"],[{heading:["h1","h2","h3","h4","h5","h6"]}],["link","image"],["text_color","background_color"]];var KG=["#b60205","#d93f0b","#fbca04","#0e8a16","#006b75","#1d76db","#0052cc","#5319e7","#e99695","#f9d0c4","#fef2c0","#c2e0c6","#bfdadc","#c5def5","#bfd4f2","#d4c5f9"],hS=(()=>{let t=class t{constructor(n){this.menuService=n,this.toolbar=YG,this.colorPresets=KG,this.disabled=!1,this.customMenuRef=null,this.dropdownPlacement="bottom",this.toggleCommands=["bold","italic","underline","strike","code","blockquote","ordered_list","bullet_list","align_left","align_center","align_right","align_justify","superscript","subscript"],this.insertCommands=["horizontal_rule","format_clear","indent","outdent","undo","redo"],this.iconContainerClass=["NgxEditor__MenuItem","NgxEditor__MenuItem--IconContainer"],this.dropdownContainerClass=["NgxEditor__Dropdown"],this.seperatorClass=["NgxEditor__Seperator"]}get presets(){let o=[];
742return this.colorPresets.forEach((r,a)=>{let s=Math.floor(a/8);o[s]||o.push([]),o[s].push(r)}),o}trackByIndex(n){return n}isDropDown(n){return!!n?.heading}getDropdownItems(n){return n}isLinkItem(n){return n==="link"?!0:typeof n=="object"&&typeof n?.link=="object"}isLinkWithOptions(n){return typeof n=="object"&&typeof n?.link=="object"}getLinkOptions(n){return n?.link}ngOnInit(){if(!this.editor)throw new gs("Required editor instance to initialize menu component");this.menuService.editor=this.editor}};t.\u0275fac=function(o){return new(o||t)(O(mr))},t.\u0275cmp=U({type:t,selectors:[["ngx-editor-menu"]],inputs:{toolbar:"toolbar",colorPresets:"colorPresets",disabled:"disabled",editor:"editor",customMenuRef:"customMenuRef",dropdownPlacement:"dropdownPlacement"},standalone:!1,features:[St([mr])],decls:3,vars:7,consts:[[1,"NgxEditor__MenuBar",3,"ngClass"],[4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],[3,"toolbarItem","class",4,"ngIf"],[3,"class",4,"ngIf"],["type","text_color",3,"class","presets",4,"ngIf"],["type","background_color",3,"class","presets",4,"ngIf"],[3,"toolbarItem"],[3,"options"],[3,"class","group","items",4,"ngFor","ngForOf","ngForTrackBy"],[3,"group","items"],["type","text_color",3,"presets"],["type","background_color",3,"presets"],[3,"ngTemplateOutlet"]],template:function(o,r){o&1&&(p(0,"div",0),V(1,CH,2,2,"ng-container",1)(2,bH,2,1,"ng-container",2),u()),o&2&&(v("ngClass",Re(4,sH,r.disabled,r.dropdownPlacement==="top")),d(),v("ngForOf",r.toolbar)("ngForTrackBy",r.trackByIndex),d(),v("ngIf",r.customMenuRef))},dependencies:[Ce,lo,Ni,Ta,GG,UG,jG,WG,$G,qG,Gc],encapsulation:2});let e=t;return e})();var QG=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({providers:[Fs],imports:[ge,Vi]});let e=t;return e})(),yp=new ka("NgxEditorConfig"),nS={locals:h0,icons:pS},gS=(()=>{let t=class t{static forRoot(n=nS){return{ngModule:t,providers:[{provide:yp,useValue:n},{provide:f0,useFactory:tS,deps:[yp]}]}}static forChild(n=nS){return{ngModule:t,providers:[{provide:yp,useValue:n},{provide:f0,useFactory:tS,deps:[yp]},ba]}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,QG]});let e=t;return e})();var Ai=(e,t=!1)=>(i,n)=>{let o=new Qn(e);return t?o.toggle()(i,n):o.apply()(i,n)},v0=class{constructor(t){if(this.applyTrx=i=>{this.state=this.state.apply(i??this.tr),this.tr=this.state.tr,this.tr.setMeta("APPLIED_TRX",!0)},this.dispatch=i=>{this.applyTrx(i)},!t)throw new gs("Required view to initialize commands.");this.view=t,this.state=t.state,this.tr=this.view.state.tr}exec(){if(!this.tr.getMeta("APPLIED_TRX"))return!1;let t=!this.view.state.doc.eq(this.state.doc);this.view.updateState(this.state);let i=this.tr.setMeta("FORCE_EMIT",t);return this.view.dispatch(i),!0}focus(t="end"){let i=t==="start"?Oe.atStart(this.state.doc):Oe.atEnd(this.state.doc);return this.tr.setSelection(i),this.applyTrx(),this.view.focus(),this}scrollIntoView(){return this.tr.scrollIntoView(),this.applyTrx(),this}insertText(t){return this.tr.insertText(t),this.applyTrx(),this}insertNewLine(){return Is(...[$f,Kf,Qf,Jf])(this.state,this.dispatch),this}applyMark(t){return Ai(t,!1)(this.state,this.dispatch),this}toggleMark(t){return Ai(t,!0)(this.state,this.dispatch),this}bold(){return Ai("strong")(this.state,this.dispatch),this}toggleBold(){return Ai("strong",!0)(this.state,this.dispatch),this}
742italics(){return Ai("em")(this.state,this.dispatch),this}toggleItalics(){return Ai("em",!0)(this.state,this.dispatch),this}underline(){return Ai("u")(this.state,this.dispatch),this}toggleUnderline(){return Ai("u",!0)(this.state,this.dispatch),this}strike(){return Ai("s")(this.state,this.dispatch),this}toggleStrike(){return Ai("s",!0)(this.state,this.dispatch),this}code(){return Ai("code")(this.state,this.dispatch),this}toggleCode(){return Ai("code",!0)(this.state,this.dispatch),this}superscript(){return Ai("sup")(this.state,this.dispatch),this}subscript(){return Ai("sub")(this.state,this.dispatch),this}toggleOrderedList(){return new Ps(!1).toggle()(this.state,this.dispatch),this}toggleBulletList(){return new Ps(!0).toggle()(this.state,this.dispatch),this}toggleHeading(t){return new Ao(t).toggle()(this.state,this.dispatch),this}insertLink(t,i){return new u0().insert(t,i)(this.state,this.dispatch),this}updateLink(t){return new u0().update(t)(this.state,this.dispatch),this}insertImage(t,i={}){return new uS().insert(t,i)(this.state,this.dispatch),this}textColor(t){return new Ds("text_color").apply({color:t})(this.state,this.dispatch),this}backgroundColor(t){return new Ds("text_background_color").apply({backgroundColor:t})(this.state,this.dispatch),this}removeTextColor(){return new Ds("text_color").remove()(this.state,this.dispatch),this}removeBackgroundColor(){return new Ds("text_background_color").remove()(this.state,this.dispatch),this}align(t){return new Ca(t).toggle()(this.state,this.dispatch),this}insertHTML(t){let{selection:i,schema:n,tr:o}=this.state,{from:r,to:a}=i,s=document.createElement("div");s.innerHTML=aS(t)?t.trim():t;let l=sr.fromSchema(n).parseSlice(s),c=o.replaceRange(r,a,l);return this.applyTrx(c),this}indent(){return new Rs("increase").insert()(this.state,this.dispatch),this}outdent(){return new Rs("decrease").insert()(this.state,this.dispatch),this}},JG=typeof navigator<"u"?/Mac/.test(navigator.platform):!1,ZG=e=>hp(/^\s*>\s$/,e),XG=e=>hp(/^(?:\d+)\.\s$/,e,t=>({order:Number(t[1])}),(t,i)=>i.childCount+i.attrs.order===Number(t[1])),eU=e=>hp(/^\s*(?:[-+*])\s$/,e),tU=e=>Zf(/^```$/,e),iU=(e,t)=>Zf(new RegExp(`^(#{1,${t}})\\s$`),e,i=>({level:i[1].length})),nU=e=>i0(/(?:^|\s)(?:(\*\*|__)(?:([^*_]+))(\*\*|__))$/,e),oU=e=>i0(/(?:^|\s)(?:(\*|_)(?:([^*_]+))(\*|_))$/,e),rU=e=>{let t=V2.concat(B2,z2);return t.push(nU(e.marks.strong)),t.push(oU(e.marks.em)),t.push(ZG(e.nodes.blockquote)),t.push(XG(e.nodes.ordered_list)),t.push(eU(e.nodes.bullet_list)),t.push(tU(e.nodes.code_block)),t.push(iU(e.nodes.heading,6)),N2({rules:t})},aU=(e,t)=>{let i={};i["Mod-z"]=Cp,JG?i["Shift-Mod-z"]=mc:i["Mod-y"]=mc;let n=[fc({"Mod-b":ma(e.marks.strong),"Mod-i":ma(e.marks.em),"Mod-u":ma(e.marks.u),"Mod-`":ma(e.marks.code)}),fc({Enter:k2(e.nodes.list_item),"Shift-Enter":Is(Yf,(o,r)=>{let{tr:a}=o,s=e.nodes.hard_break;return r(a.replaceSelectionWith(s.create()).scrollIntoView()),!0}),"Mod-[":Uf(e.nodes.list_item),"Mod-]":jf(e.nodes.list_item),Tab:jf(e.nodes.list_item)}),fc(A2)];return t.history&&n.push(fc(i)),n},sU=(e,t)=>{let i=[];return t.keyboardShortcuts&&i.push(...aU(e,{history:t.history})),t.history&&i.push(Y2()),t.inputRules&&i.push(rU(e)),i},mS={linkOnPaste:!0,resizeImage:!0},oS={content:null,history:!0,keyboardShortcuts:!0,inputRules:!0,schema:gc,plugins:[],nodeViews:{},attributes:{},features:mS,handleScrollToSelection:null,linkValidationPattern:`(https?://)?([\\da-z.-]+)\\.([a-z.]{2,6})[/\\w .-]*/??([^# 743\r]*)?#?([^ 744\r]*)|(mailto:.*[@].*)`},Sp=class{constructor(t=oS){this.valueChangesSubject=new Xi,this.updateSubject=new Xi,this.options=B(B({},oS),t),this.createEditor()}get valueChanges(){return this.valueChangesSubject.asObservable()}get update(){return this.updateSubject.asObservable()}get schema(){return this.options.schema||gc}get linkValidationPattern(){return this.options.linkValidationPattern}get commands(){return new v0(this.view)}get features(){return B(B({},mS),this.options.features)}handleTransactions(t){let i=this.view.state.apply(t);if(this.view.updateState(i),this.updateSubject.next(this.view),!t.docChanged&&!t.getMeta("FORCE_EMIT"))return;let n=i.doc.toJSON();this.valueChangesSubject.next(n)}createEditor(){let{options:t,schema:i}=this,{content:n=null,nodeViews:o}=t,{history:r=!0,keyboardShortcuts:a=!0,inputRules:s=!0}=t,l=Q2(n,i,t.parseOptions),c=t.plugins??[],h=t.attributes??{},m=sU(i,{history:r,keyboardShortcuts:a,inputRules:s});this.view=new uc(null,{state:Xu.create({doc:l,schema:i,plugins:[...m,...c]}),nodeViews:o,dispatchTransaction:this.handleTransactions.bind(this),attributes:h,handleScrollToSelection:t.handleScrollToSelection})}setContent(t){if(fw(t))return;let{state:i}=this.view,{tr:n,doc:o}=i,r=Q2(t,this.schema,this.options.parseOptions);n.replaceWith(0,i.doc.content.size,r),!o.eq(n.doc)&&n.docChanged&&this.view.dispatch(n)}registerPlugin(t){let{state:i}=this.view,n=[...i.plugins,t],o=i.reconfigure({plugins:n});this.view.updateState(o)}destroy(){this.view.destroy()}};var dU=[[["","header",""]],[["","body",""]]],uU=["[header]","[body]"],S0=(e,t)=>({"icon-arrow-up":e,"icon-arrow-down":t});function pU(e,t){e&1&&(p(0,"span",6),C(1,"More"),u())}function hU(e,t){e&1&&(p(0,"span",6),C(1,"Less"),u())}function gU(e,t){if(e&1&&(p(0,"div",2),y(1,pU,2,0,"span",6)(2,hU,2,0,"span",6),x(3,"span",7),u()),e&2){let i=g();d(),w(i.isOpen?2:1),d(2),v("ngClass",Re(2,S0,i.isOpen,!i.isOpen))}}function mU(e,t){if(e&1&&(p(0,"h4",3),C(1),u()),e&2){let i=g();d(),R(i.title)}}function fU(e,t){if(e&1&&(p(0,"span",3)(1,"strong"),C(2),u()()),e&2){let i=g();d(2),R(i.minorTitle)}}function vU(e,t){if(e&1&&x(0,"span",4),e&2){let i=g();v("ngClass",Re(1,S0,i.isOpen,!i.isOpen))}}var Ge=e=>[e],CU=(e,t)=>["fab-button__copy",e,t],bU=(e,t,i)=>[e,t,i];function _U(e,t){e&1&&Ti(0)}function yU(e,t){if(e&1){let i=P();p(0,"button",4),T("click",function(){k(i);let o=g();return E(o.buttonClick())}),V(1,_U,1,0,"ng-container",5),u()}if(e&2){let i=g(),n=de(4);pe(vt("fab-button fab-button--",i.button.type)),v("ngClass",z(7,Ge,!i.enabled||i.button.disabled?"fab-button--"+i.button.type+"--disabled":"")),Ve("aria-label",i.button.aria)("aria-disabled",!i.enabled||i.button.disabled),d(),v("ngTemplateOutlet",n)}}function wU(e,t){e&1&&Ti(0)}function xU(e,t){if(e&1){let i=P();p(0,"a",6),T("click",function(){k(i);let o=g();return E(o.buttonClick())}),V(1,wU,1,0,"ng-container",5),u()}if(e&2){let i=g(),n=de(4);pe(vt("fab-button fab-button--",i.button.type)),v("target",ne(i.button.action.openInNewTab?"_blank":"_self"))("ngClass",z(10,Ge,!i.enabled||i.button.disabled?"fab-button--"+i.button.type+"--disabled":""))("routerLink",i.button.action.link&&i.enabled&&!i.button.disabled?
744i.button.action.link:null),Ve("aria-label",i.button.aria)("aria-disabled",!i.enabled||i.button.disabled),d(),v("ngTemplateOutlet",n)}}function SU(e,t){e&1&&Ti(0)}function kU(e,t){if(e&1){let i=P();p(0,"a",7),T("click",function(){k(i);let o=g();return E(o.buttonClick())}),V(1,SU,1,0,"ng-container",5),u()}if(e&2){let i=g(),n=de(4);pe(vt("fab-button fab-button--",i.button.type)),v("target",ne(i.button.action.openInNewTab?"_blank":"_self"))("ngClass",z(10,Ge,!i.enabled||i.button.disabled?"fab-button--"+i.button.type+"--disabled":"")),Ve("href",i.button.action.link&&i.enabled&&!i.button.disabled?i.button.action.link:null,ae)("aria-label",i.button.aria)("aria-disabled",!i.enabled||i.button.disabled),d(),v("ngTemplateOutlet",n)}}function EU(e,t){if(e&1&&x(0,"i"),e&2){let i=g(2);pe(hi(2,bU,"icon-"+i.button.glyph.icon,i.button.glyph.glyphAnimation==="spin"?"spin":"","fab-button__copy__icon__position-"+(i.button.glyph.glyphPosition?i.button.glyph.glyphPosition:"")))}}function MU(e,t){if(e&1&&(p(0,"span",9),C(1),u()),e&2){let i=g(2);d(),R(i.button.text)}}function TU(e,t){if(e&1&&(p(0,"span"),y(1,EU,1,6,"i",8),y(2,MU,2,1,"span",9),u()),e&2){let i=g();pe(Re(4,CU,"fab-button__copy--"+(i.button.glyph!=null&&i.button.glyph.glyphPosition?i.button.glyph.glyphPosition:""),"fab-button__copy__type-"+(i.button.type==="text"||i.button.type.includes("icon")?i.button.type:""))),d(),w(i.button.glyph?1:-1),d(),w(i.button.text?2:-1)}}var IU=(e,t)=>({row:e,"results-card__info-row":t}),NS=e=>({"card__footer__content--image results-card__footer__content--image":e}),DU=e=>({row:e,"results-card__info-row":"content.hideImage"});function PU(e,t){e&1&&(p(0,"span",13),C(1,"Sponsored"),u())}function RU(e,t){if(e&1&&(p(0,"div")(1,"span",12),C(2),u(),y(3,PU,2,0,"span",13),u()),e&2){let i=g(2);d(2),R(i.sectionContent.tag),d(),w(i.content.partnerOrganisation?3:-1)}}function FU(e,t){if(e&1){let i=P();p(0,"img",16),T("error",function(o){k(i);let r=g(3);return E(r.setDefaultPic(o))}),u()}if(e&2){let i=g(3);v("src",ne(i.sectionContent.image==null?null:i.sectionContent.image.url),ae)("alt",ne(i.sectionContent.image==null?null:i.sectionContent.image.alt))}}function OU(e,t){if(e&1&&(p(0,"div",15),C(1),u()),e&2){let i=g(3);d(),A(" ",i.authorInitials," ")}}function AU(e,t){if(e&1&&(p(0,"a",9),y(1,FU,1,4,"img",14),y(2,OU,2,1,"div",15),p(3,"h6"),C(4),N(5,"truncate"),u()()),e&2){let i=g(2);v("href",ne(i.content.authorLink),ae),d(),w(i.showAuthorImage?1:-1),d(),w(i.showAuthorImage?-1:2),d(2),R(He(5,5,i.sectionContent.footerTextTop,30))}}function LU(e,t){if(e&1&&x(0,"div",18),e&2){let i=g(3);xt("background-image","url("+(i.content.mainImage==null?null:i.content.mainImage.url)+")")}}function NU(e,t){if(e&1&&(p(0,"div",11),y(1,LU,1,2,"div",17),u()),e&2){let i=g(2);d(),w(i.content.mainImage?1:-1)}}function zU(e,t){if(e&1&&(p(0,"a",0)(1,"div",2)(2,"div",3)(3,"div",4),y(4,RU,4,2,"div"),p(5,"div",5)(6,"h4"),C(7),u(),x(8,"div",6),N(9,"htmlStripper"),u(),p(10,"div",7)(11,"div",8),y(12,AU,6,8,"a",9),p(13,"p",10),C(14),N(15,"date"),u()()()()(),y(16,NU,2,1,"div",11),u()()),e&2){let i=g();v("href",ne(i.content.link),ae),d(),v("ngClass",Re(15,IU,!i.content.hideImage,i.content.hideImage)),d(3),w(i.content.hideType?-1:4),d(3),R(i.content.title),d(),v("innerHTML",G(9,10,i.content.summary),ue),d(3),v("ngClass",z(18,NS,i.sectionContent.image.url)),d(),w(i.content.author?12:-1),d(2),A(" ",i.sectionContent.footerTextBottom?He(15,12,i.sectionContent.footerTextBottom,"d MMMM yyyy"):"Date unknown"," "),d(2),w(i.content.hideImage?-1:16)}}function BU(e,t){e&1&&(p(0,"span",13),C(1,"Sponsored"),u())}function VU(e,t){if(e&1){let i=P();p(0,"img",16),T("error",function(o){k(i);let r=g(2);return E(r.setDefaultPic(o))}),u()}if(e&2){let i=g(2);v("src",ne(i.sectionContent.image==null?null:i.sectionContent.image.url),ae)("alt",ne(i.sectionContent.image==null?null:i.sectionContent.image.alt))}}function HU(e,t){if(e&1&&(p(0,"div",15),C(1),u()),e&2){let i=g(2);d(),A(" ",i.authorInitials," ")}}function GU(e,t){if(e&1&&x(0,"div",18),e&2){let i=g(3);xt("background-image","url("+(i.content.mainImage==null?null:i.content.mainImage.url)+")")}}
744function UU(e,t){if(e&1&&(p(0,"div",11),y(1,GU,1,2,"div",17),u()),e&2){let i=g(2);d(),w(i.content.mainImage?1:-1)}}function jU(e,t){if(e&1&&(p(0,"a",19)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div")(5,"span",12),C(6),u(),y(7,BU,2,0,"span",13),u(),p(8,"div",5)(9,"h4"),C(10),u(),x(11,"div",6),N(12,"htmlStripper"),u(),p(13,"div",7)(14,"div",8)(15,"a",20),y(16,VU,1,4,"img",14),y(17,HU,2,1,"div",15),p(18,"h6"),C(19),N(20,"truncate"),u()(),p(21,"p",10),C(22),N(23,"date"),u()()()()(),y(24,UU,2,1,"div",11),u()()),e&2){let i=g();pe(Go("card results-card card--",i.sectionContent.type," results-card--",i.sectionContent.type)),v("routerLink",z(25,Ge,"/"+i.content.link)),d(),v("ngClass",z(27,DU,!i.content.hideImage)),d(5),R(i.sectionContent.tag),d(),w(i.content.partnerOrganisation?7:-1),d(3),R(i.content.title),d(),v("innerHTML",G(12,17,i.content.summary),ue),d(3),v("ngClass",z(29,NS,i.sectionContent.image)),d(),v("routerLink",z(31,Ge,"/"+i.content.authorLink)),d(),w(i.showAuthorImage?16:-1),d(),w(i.showAuthorImage?-1:17),d(2),R(He(20,19,i.sectionContent.footerTextTop,30)),d(3),A(" ",i.sectionContent.footerTextBottom?He(23,22,i.sectionContent.footerTextBottom,"mediumDate"):"Date unknown"," "),d(2),w(i.content.hideImage?-1:24)}}var zS=e=>({"card__footer__content--image secondary-card__footer__content--image":e});function WU(e,t){e&1&&(p(0,"span",14),C(1,"Sponsored"),u())}function $U(e,t){if(e&1&&(p(0,"div",12)(1,"span",13),C(2),u(),y(3,WU,2,0,"span",14),u()),e&2){let i=g(2);xt("background-image","url("+(i.content.mainImage==null?null:i.content.mainImage.url)+")"),d(2),R(i.sectionContent.tag),d(),w(i.content.partnerOrganisation?3:-1)}}function qU(e,t){if(e&1){let i=P();p(0,"img",15),T("error",function(o){k(i);let r=g(2);return E(r.setDefaultPic(o))}),u()}if(e&2){let i=g(2);v("src",ne(i.sectionContent.image.url),ae)("alt",ne(i.sectionContent.image.alt))}}function YU(e,t){if(e&1&&(p(0,"div",10),C(1),u()),e&2){let i=g(2);d(),A(" ",i.authorInitials," ")}}function KU(e,t){if(e&1&&(p(0,"a",2),y(1,$U,4,4,"div",3),p(2,"div",4)(3,"h4"),C(4),u(),x(5,"div",5),N(6,"htmlStripper"),u(),p(7,"div",6)(8,"div",7)(9,"a",8),y(10,qU,1,4,"img",9),y(11,YU,2,1,"div",10),p(12,"h6"),C(13),N(14,"truncate"),u()(),p(15,"p",11),C(16),N(17,"date"),u()()()()),e&2){let i=g();pe(Go("card secondary-card card--",i.sectionContent.type," secondary-card--",i.sectionContent.type)),v("href",ne(i.content.link),ae),d(),w(i.content.mainImage?1:-1),d(3),R(i.content.title),d(),v("innerHTML",G(6,16,i.content.summary),ue),d(3),v("ngClass",z(24,zS,i.sectionContent.image)),d(),v("href",ne(i.content.authorLink),ae),d(),w(i.showAuthorImage?10:-1),d(),w(i.showAuthorImage?-1:11),d(2),R(He(14,18,i.sectionContent.footerTextTop,30)),d(3),A(" ",i.sectionContent.footerTextBottom?He(17,21,i.sectionContent.footerTextBottom,"mediumDate"):"Date unknown"," ")}}function QU(e,t){e&1&&(p(0,"span",14),C(1,"Sponsored"),u())}function JU(e,t){if(e&1&&(p(0,"div",12)(1,"span",13),C(2),u(),y(3,QU,2,0,"span",14),u()),e&2){let i=g(2);xt("background-image","url("+(i.content.mainImage==null?null:i.content.mainImage.url)+")"),d(2),R(i.sectionContent.tag),d(),w(i.content.partnerOrganisation?3:-1)}}function ZU(e,t){if(e&1){let i=P();p(0,"img",15),T("error",function(o){k(i);let r=g(2);return E(r.setDefaultPic(o))}),u()}if(e&2){let i=g(2);v("src",ne(i.sectionContent.image.url),ae)("alt",ne(i.sectionContent.image.alt))}}function XU(e,t){if(e&1&&(p(0,"div",10),C(1),u()),e&2){let i=g(2);d(),A(" ",i.authorInitials," ")}}function ej(e,t){if(e&1&&(p(0,"a",16),y(1,JU,4,4,"div",3),p(2,"div",4)(3,"h4"),C(4),u(),x(5,"div",5),N(6,"htmlStripper"),u(),p(7,"div",6)(8,"div",7)(9,"a",17),y(10,ZU,1,4,"img",9),y(11,XU,2,1,"div",10),p(12,"h6"),C(13),N(14,"truncate"),u()(),p(15,"p",11),C(16),N(17,"date"),u()()()()),e&2){let i=g();pe(Go("card secondary-card card--",i.sectionContent.type," secondary-card--",i.sectionContent.type)),v("routerLink",z(22,Ge,"/"+i.content.link)),d(),w(i.content.mainImage?1:-1),d(3),R(i.content.title),d(),v("innerHTML",G(6,14,i.content.summary),ue),d(3),v("ngClass",z(24,zS,i.sectionContent.image)),d(),v("routerLink",z(26,Ge,"/"+i.content.authorLink)),d(),w(i.showAuthorImage?10:-1),d(),w(i.showAuthorImage?-1:11),d(2),R(He(14,16,i.sectionContent.footerTextTop,30)),d(3),A(" ",i.sectionContent.footerTextBottom?He(17,19,i.sectionContent.footerTextBottom,"mediumDate"):"Date unknown"," ")}}var tj=["p"];function ij(e,t){if(e&1){let i=P();p(0,"a",8),T("keyup.enter",function(o){k(i);let r=g(3),a=de(1);return r.navigate(o,a.getCurrent()-1),E(a.previous())})("click",function(o){k(i);let r=g(3),a=de(1);return r.navigate(o,a.getCurrent()-1),E(a.previous())}),x(1,"i",9),u()}if(e&2){let i=g(3),n=de(1);v("href",i.getUrl(n.getCurrent()-1),ae),Ve("aria-label",i.previousLabel+" "+i.screenReaderPageLabel)}}function nj(e,t){e&1&&(p(0,"span"),x(1,"i",9),u())}function oj(e,t){if(e&1&&(p(0,"li",6),y(1,ij,2,2,"a",7),y(2,nj,2,0,"span"),u()),e&2){g(2);let i=de(1);Pe("disabled",i.isFirstPage()),d(),w(1<i.getCurrent()?1:-1),d(),w(i.isFirstPage()?2:-1)}}function rj(e,t){if(e&1){let i=P();p(0,"a",8),T("keyup.enter",function(o){k(i);let r=g().$implicit,a=g(2),s=de(1);return a.navigate(o,r.value),E(s.setCurrent(r.value))})("click",function(o){k(i);let r=g().$implicit,a=g(2),s=de(1);return a.navigate(o,r.value),E(s.setCurrent(r.value))}),p(1,"span",10),C(2),u(),p(3,"span"),C(4),u()()}if(e&2){let i=g().$implicit,n=g(2);v("href",n.getUrl(i.value),ae),d(2),A("",n.screenReaderPageLabel," "),d(2),R(i.label)}}function aj(e,t){if(e&1&&(p(0,"span",10),C(1),u(),p(2,"span"),C(3),u()),e&2){let i=g().$implicit,n=g(2);d(),A("",n.screenReaderCurrentLabel," "),d(2),R(i.label)}}function sj(e,t){if(e&1&&(p(0,"li"),y(1,rj,5,3,"a",7),y(2,aj,4,2),u()),e&2){let i=t.$implicit;g(2);let n=de(1);Pe("current",n.getCurrent()===i.value),d(),w(n.getCurrent()!==i.value?1:-1),d(),w(n.getCurrent()===i.value?2:-1)}}function lj(e,t){if(e&1){let i=P();p(0,"a",8),T("keyup.enter",function(o){k(i);let r=g(3),a=de(1);return r.navigate(o,a.getCurrent()+1),E(a.next())})("click",function(o){k(i);let r=g(3),a=de(1);return r.navigate(o,a.getCurrent()+1),E(a.next())}),x(1,"i",12),u()}if(e&2){let i=g(3),n=de(1);v("href",i.getUrl(n.getCurrent()+1),ae),Ve("aria-label",i.nextLabel+" "+i.screenReaderPageLabel)}}function cj(e,t){e&1&&(p(0,"span"),x(1,"i",12),u())}function dj(e,t){if(e&1&&(p(0,"li",11),y(1,lj,2,2,"a",7),y(2,cj,2,0,"span"),u()),e&2){g(2);let i=de(1);Pe("disabled",i.isLastPage()),d(),w(i.isLastPage()?-1:1),d(),w(i.isLastPage()?2:-1)}}
744function uj(e,t){if(e&1&&(p(0,"ul",2),y(1,oj,3,4,"li",3),X(2,sj,3,4,"li",4,se),y(4,dj,3,4,"li",5),u()),e&2){let i=g(),n=de(1);Ve("aria-label",i.screenReaderPaginationLabel),d(),w(i.directionLinks?1:-1),d(),ee(n.pages),d(2),w(i.directionLinks?4:-1)}}var BS=e=>({disabled:e}),wc=(e,t)=>({"form__field-valid":e,"form__field-invalid":t}),pj=e=>({selected:e}),Ap=(e,t)=>({"icon icon-success":e,"icon icon-error":t});function hj(e,t){if(e&1&&(p(0,"div",2)(1,"label"),x(2,"span",12),u()()),e&2){let i=g();d(2),v("innerHTML",i.content.label,ue)}}function gj(e,t){if(e&1&&(p(0,"p"),C(1),u()),e&2){let i=g();d(),R(i.fixedContent??(i.formControl.value==null?null:i.formControl.value.label)??i.placeholder)}}function mj(e,t){if(e&1&&(p(0,"p"),C(1),u()),e&2){let i=g();d(),R(i.fixedContent??i.selectedString??i.placeholder)}}function fj(e,t){if(e&1){let i=P();p(0,"li",15),T("keydown.enter",function(){let o=k(i).$implicit,r=g(2);return E(r.makeSelection(o))})("click",function(){let o=k(i).$implicit,r=g(2);return E(r.makeSelection(o))}),C(1),u()}if(e&2){let i=t.$implicit,n=t.$index,o=g(2);pe(vt("dropdown__item dropdown__item--option ",o.group)),v("value",ne(n))("ngClass",z(7,pj,o.options[n].selected)),d(),A(" ",i.label," ")}}function vj(e,t){if(e&1){let i=P();p(0,"div",13),T("blur",function(o){k(i);let r=g();return E(r.closeDropdown(r.group,o))}),p(1,"ul"),X(2,fj,2,9,"li",14,se),u()()}if(e&2){let i=g();d(2),ee(i.options)}}function Cj(e,t){if(e&1&&(p(0,"div",9)(1,"div",16),x(2,"i",3),u()()),e&2){let i=g();d(2),v("ngClass",Re(1,Ap,i.formControl&&i.formControl.valid&&(i.formControl.dirty||i.formControl.touched)&&i.optionSelected||!i.formControl&&i.optionSelected,i.formControl&&i.formControl.invalid&&i.formControl.touched&&!i.focus&&i.showError))}}function bj(e,t){if(e&1&&(p(0,"div",11)(1,"strong"),C(2),u()()),e&2){let i=g();d(2),R(i.content.validationMessage)}}function _j(e,t){if(e&1&&(p(0,"div")(1,"div",1)(2,"div",17)(3,"p",18),C(4),u()()()()),e&2){let i=g();d(4),R(i.content.toolTip)}}var yj=e=>({"author-page-content":e}),k0=e=>({"no-social-links":e}),wj=e=>({"no-author-name":e});function xj(e,t){if(e&1){let i=P();p(0,"img",11),T("error",function(o){k(i);let r=g(2);return E(r.setDefaultPic(o))}),u()}if(e&2){let i=g(2);v("src",ne(i.content.image==null?null:i.content.image.url),ae)("alt",ne(i.content.image==null?null:i.content.image.alt))}}function Sj(e,t){if(e&1&&(p(0,"div",9),C(1),u()),e&2){let i=g(2);d(),A(" ",i.authorInitials," ")}}function kj(e,t){if(e&1&&(p(0,"a",2),y(1,xj,1,4,"img",8),y(2,Sj,2,1,"div",9),p(3,"h6",10),C(4),N(5,"truncate"),u()()),e&2){let i=g();v("href",ne(i.content.authorLink),ae),d(),w(i.showAuthorImage?1:-1),d(),w(i.showAuthorImage?-1:2),d(),v("ngClass",z(9,k0,!i.socialLinks)),d(),R(He(5,6,i.content.name,30))}}function Ej(e,t){if(e&1){let i=P();p(0,"img",11),T("error",function(o){k(i);let r=g(2);return E(r.setDefaultPic(o))}),u()}if(e&2){let i=g(2);v("src",ne(i.content.image==null?null:i.content.image.url),ae)("alt",ne(i.content.image==null?null:i.content.image.alt))}}function Mj(e,t){if(e&1&&(p(0,"div",9),C(1),u()),e&2){let i=g(2);d(),A(" ",i.authorInitials," ")}}function Tj(e,t){if(e&1&&(p(0,"a",3),y(1,Ej,1,4,"img",8),y(2,Mj,2,1,"div",9),p(3,"h6",10),C(4),N(5,"truncate"),u()()),e&2){let i=g();v("routerLink",z(8,Ge,"/"+i.content.authorLink)),d(),w(i.showAuthorImage?1:-1),d(),w(i.showAuthorImage?-1:2),d(),v("ngClass",z(10,k0,!i.socialLinks)),d(),R(He(5,5,i.content.name,30))}}function Ij(e,t){if(e&1){let i=P();p(0,"img",11),T("error",function(o){k(i);let r=g(2);return E(r.setDefaultPic(o))}),u()}if(e&2){let i=g(2);v("src",ne(i.content.image==null?null:i.content.image.url),ae)("alt",ne(i.content.image==null?null:i.content.image.alt))}}function Dj(e,t){if(e&1&&(p(0,"div",9),C(1),u()),e&2){let i=g(2);d(),A(" ",i.authorInitials," ")}}function Pj(e,t){if(e&1&&(p(0,"div",4),y(1,Ij,1,4,"img",8),y(2,Dj,2,1,"div",9),u()),e&2){let i=g();d(),w(i.showAuthorImage?1:-1),d(),w(i.showAuthorImage?-1:2)}}function Rj(e,t){if(e&1&&x(0,"i"),e&2){let i=g().$implicit;pe(vt("icon icon-",i.icon))}}function Fj(e,t){if(e&1&&(p(0,"a",6),y(1,Rj,1,3,"i",12),u()),e&2){let i=t.$implicit;v("href",ne(i.link==null?null:i.link.uri),ae),d(),w(i.link&&(i.link==null?null:i.link.uri)!==""?1:-1)}}var VS=e=>
744({"card__footer__content--image horizontal-card__footer__content--image":e});function Oj(e,t){if(e&1&&x(0,"div",18),e&2){let i=g(2);xt("background-image","url("+(i.content.mainImage==null?null:i.content.mainImage.url)+")")}}function Aj(e,t){e&1&&(p(0,"span",9),C(1,"Sponsored"),u())}function Lj(e,t){if(e&1){let i=P();p(0,"img",19),T("error",function(o){k(i);let r=g(2);return E(r.setDefaultPic(o))}),u()}if(e&2){let i=g(2);v("src",ne(i.sectionContent.image.url),ae)("alt",ne(i.sectionContent.image.alt))}}function Nj(e,t){if(e&1&&(p(0,"div",16),C(1),u()),e&2){let i=g(2);d(),A(" ",i.authorInitials," ")}}function zj(e,t){if(e&1&&(p(0,"div")(1,"div",2)(2,"div",3)(3,"div",4)(4,"a",5),y(5,Oj,1,2,"div",6),u()(),p(6,"div",4)(7,"div",7)(8,"div")(9,"span",8),C(10),u(),y(11,Aj,2,0,"span",9),u(),p(12,"div",10)(13,"a",5)(14,"h4"),C(15),u(),x(16,"div",11),N(17,"htmlStripper"),u()(),p(18,"div",12)(19,"div",13)(20,"a",14),y(21,Lj,1,4,"img",15),y(22,Nj,2,1,"div",16),p(23,"h6"),C(24),N(25,"truncate"),u()(),p(26,"p",17),C(27),N(28,"date"),u()()()()()()()()),e&2){let i=g();pe(Go("card horizontal-card card--",i.sectionContent.type," horizontal-card--",i.sectionContent.type)),d(4),v("href",ne(i.content.link),ae),d(),w(i.content.mainImage?5:-1),d(5),R(i.sectionContent.tag),d(),w(i.content.partnerOrganisation?11:-1),d(2),v("href",ne(i.content.link),ae),d(2),R(i.content.title),d(),v("innerHTML",G(17,20,i.content.summary),ue),d(3),v("ngClass",z(28,VS,i.sectionContent.image)),d(),v("href",ne(i.content.authorLink),ae),d(),w(i.showAuthorImage?21:-1),d(),w(i.showAuthorImage?-1:22),d(2),R(He(25,22,i.sectionContent.footerTextTop,30)),d(3),A(" ",i.sectionContent.footerTextBottom?He(28,25,i.sectionContent.footerTextBottom,"mediumDate"):"Date unknown"," ")}}function Bj(e,t){if(e&1&&x(0,"div",18),e&2){let i=g(2);xt("background-image","url("+(i.content.mainImage==null?null:i.content.mainImage.url)+")")}}function Vj(e,t){e&1&&(p(0,"span",9),C(1,"Sponsored"),u())}function Hj(e,t){if(e&1){let i=P();p(0,"img",19),T("error",function(o){k(i);let r=g(2);return E(r.setDefaultPic(o))}),u()}if(e&2){let i=g(2);v("src",ne(i.sectionContent.image.url),ae)("alt",ne(i.sectionContent.image.alt))}}function Gj(e,t){if(e&1&&(p(0,"div",16),C(1),u()),e&2){let i=g(2);d(),A(" ",i.authorInitials," ")}}function Uj(e,t){if(e&1&&(p(0,"a",20)(1,"div",2)(2,"div",3)(3,"div",4),y(4,Bj,1,2,"div",6),u(),p(5,"div",4)(6,"div",7)(7,"div")(8,"span",8),C(9),u(),y(10,Vj,2,0,"span",9),u(),p(11,"div",10)(12,"h4"),C(13),u(),x(14,"div",11),N(15,"htmlStripper"),u(),p(16,"div",12)(17,"div",13)(18,"a",21),y(19,Hj,1,4,"img",15),y(20,Gj,2,1,"div",16),p(21,"h6"),C(22),N(23,"truncate"),u()(),p(24,"p",17),C(25),N(26,"date"),u()()()()()()()()),e&2){let i=g();pe(Go("card horizontal-card card--",i.sectionContent.type," horizontal-card--",i.sectionContent.type)),v("routerLink",z(24,Ge,"/"+i.content.link)),d(4),w(i.content.mainImage?4:-1),d(5),R(i.sectionContent.tag),d(),w(i.content.partnerOrganisation?10:-1),d(3),R(i.content.title),d(),v("innerHTML",G(15,16,i.content.summary),ue),d(3),v("ngClass",z(26,VS,i.sectionContent.image)),d(),v("routerLink",z(28,Ge,"/"+i.content.authorLink)),d(),w(i.showAuthorImage?19:-1),d(),w(i.showAuthorImage?-1:20),d(2),R(He(23,18,i.sectionContent.footerTextTop,30)),d(3),A(" ",i.sectionContent.footerTextBottom?He(26,21,i.sectionContent.footerTextBottom,"mediumDate"):"Date unknown"," ")}}function jj(e,t){if(e&1&&(p(0,"span",14),C(1),u()),e&2){let i=g(2);d(),R(i.label)}}function Wj(e,t){e&1&&(p(0,"span",15),C(1,"Sponsored"),u())}function $j(e,t){if(e&1&&(x(0,"h4",16),N(1,"keepSomeHtml")),e&2){let i=g(2);v("innerHTML",G(1,1,i.content.extract.title),ue)}}function qj(e,t){if(e&1&&(p(0,"h4"),C(1),u()),e&2){let i=g(2);d(),R(i.content.title)}}function Yj(e,t){if(e&1&&(x(0,"div",17),N(1,"keepSomeHtml"),N(2,"ellipsisPrepend")),e&2){let i=g(2);v("innerHTML",G(2,3,G(1,1,i.content.extract.summary)),ue)}}function Kj(e,t){if(e&1&&(x(0,"div",17),N(1,"keepSomeHtml")),e&2){let i=g(2);v("innerHTML",G(1,1,i.content.summary),ue)}}function Qj(e,t){if(e&1&&(p(0,"a",5)(1,"div",6)(2,"div",7)(3,"div",8)(4,"div"),V(5,jj,2,1,"span",9)(6,Wj,2,0,"span",10),u(),p(7,"div",11),V(8,$j,2,3,"h4",12)(9,qj,2,1,"ng-template",null,0,ze)(11,Yj,3,5,"div",13)(12,Kj,2,3,"ng-template",null,1,ze),u()()()()()),e&2){let i=de(10),n=de(13),o=g();v("href",ne(o.content.link),ae),d(5),v("ngIf",o.label),d(),v("ngIf",o.content.partnerOrganisation),d(2),v("ngIf",o.content.extract.t
744itle)("ngIfElse",i),d(3),v("ngIf",o.content.extract.summary)("ngIfElse",n)}}function Jj(e,t){e&1&&(p(0,"span",15),C(1,"Sponsored"),u())}function Zj(e,t){if(e&1&&(x(0,"h4",16),N(1,"keepSomeHtml")),e&2){let i=g(2);v("innerHTML",G(1,1,i.content.extract.title),ue)}}function Xj(e,t){if(e&1&&(p(0,"h4"),C(1),u()),e&2){let i=g(2);d(),R(i.content.title)}}function eW(e,t){if(e&1&&(x(0,"div",17),N(1,"keepSomeHtml"),N(2,"ellipsisPrepend")),e&2){let i=g(2);v("innerHTML",G(2,3,G(1,1,i.content.extract.summary)),ue)}}function tW(e,t){if(e&1&&(x(0,"div",17),N(1,"keepSomeHtml")),e&2){let i=g(2);v("innerHTML",G(1,1,i.content.summary),ue)}}function iW(e,t){if(e&1&&(p(0,"a",18)(1,"div",6)(2,"div",7)(3,"div",8)(4,"div")(5,"span",14),C(6),u(),V(7,Jj,2,0,"span",10),u(),p(8,"div",11),V(9,Zj,2,3,"h4",12)(10,Xj,2,1,"ng-template",null,0,ze)(12,eW,3,5,"div",13)(13,tW,2,3,"ng-template",null,2,ze),u()()()()()),e&2){let i=de(11),n=de(14),o=g();v("routerLink",z(7,Ge,"/"+o.content.link)),d(6),R(o.label?o.label:o.content.contentType),d(),v("ngIf",o.content.partnerOrganisation),d(2),v("ngIf",o.content.extract.title)("ngIfElse",i),d(3),v("ngIf",o.content.extract.summary)("ngIfElse",n)}}var HS=e=>({"card__footer__content--image text-card__footer__content--image":e});function nW(e,t){e&1&&(p(0,"span",4),C(1,"Sponsored"),u())}function oW(e,t){if(e&1){let i=P();p(0,"img",13),T("error",function(o){k(i);let r=g(2);return E(r.setDefaultPic(o))}),u()}if(e&2){let i=g(2);v("src",ne(i.sectionContent.image==null?null:i.sectionContent.image.url),ae)("alt",ne(i.sectionContent.image==null?null:i.sectionContent.image.alt))}}function rW(e,t){if(e&1&&(p(0,"div",11),C(1),u()),e&2){let i=g(2);d(),A(" ",i.authorInitials," ")}}function aW(e,t){if(e&1&&(p(0,"a",2)(1,"div")(2,"span",3),C(3),u(),y(4,nW,2,0,"span",4),u(),p(5,"div",5)(6,"h4"),C(7),u(),x(8,"div",6),N(9,"htmlStripper"),u(),p(10,"div",7)(11,"div",8)(12,"a",9),y(13,oW,1,4,"img",10),y(14,rW,2,1,"div",11),p(15,"h6"),C(16),N(17,"truncate"),u()(),p(18,"p",12),C(19),N(20,"date"),u()()()()),e&2){let i=g();pe(Go("card text-card card--",i.sectionContent.type," text-card--",i.sectionContent.type)),v("href",ne(i.content.link),ae),d(3),R(i.sectionContent.tag),d(),w(i.content.partnerOrganisation?4:-1),d(3),R(i.content.title),d(),v("innerHTML",G(9,17,i.content.summary),ue),d(3),v("ngClass",z(25,HS,i.sectionContent.image)),d(),v("href",ne(i.content.authorLink),ae),d(),w(i.showAuthorImage?13:-1),d(),w(i.showAuthorImage?-1:14),d(2),R(He(17,19,i.sectionContent.footerTextTop,30)),d(3),A(" ",i.sectionContent.footerTextBottom?He(20,22,i.sectionContent.footerTextBottom,"mediumDate"):"Date unknown"," ")}}function sW(e,t){e&1&&(p(0,"span",4),C(1,"Sponsored"),u())}function lW(e,t){if(e&1){let i=P();p(0,"img",13),T("error",function(o){k(i);let r=g(2);return E(r.setDefaultPic(o))}),u()}if(e&2){let i=g(2);v("src",ne(i.sectionContent.image==null?null:i.sectionContent.image.url),ae)("alt",ne(i.sectionContent.image==null?null:i.sectionContent.image.alt))}}function cW(e,t){if(e&1&&(p(0,"div",11),C(1),u()),e&2){let i=g(2);d(),A(" ",i.authorInitials," ")}}function dW(e,t){if(e&1&&(p(0,"a",14)(1,"div")(2,"span",3),C(3),u(),y(4,sW,2,0,"span",4),u(),p(5,"div",5)(6,"h4"),C(7),u(),x(8,"div",6),N(9,"htmlStripper"),u(),p(10,"div",7)(11,"div",8)(12,"a",15),y(13,lW,1,4,"img",10),y(14,cW,2,1,"div",11),p(15,"h6"),C(16),N(17,"truncate"),u()(),p(18,"p",12),C(19),N(20,"date"),u()()()()),e&2){let i=g();pe(Go("card text-card card--",i.sectionContent.type," text-card--",i.sectionContent.type)),v("routerLink",z(23,Ge,"/"+i.content.link)),d(3),R(i.sectionContent.tag),d(),w(i.content.partnerOrganisation?4:-1),d(3),R(i.content.title),d(),v("innerHTML",G(9,15,i.content.summary),ue),d(3),v("ngClass",z(25,HS,i.sectionContent.image)),d(),v("routerLink",z(27,Ge,"/"+i.content.authorLink)),d(),w(i.showAuthorImage?13:-1),d(),w(i.showAuthorImage?-1:14),d(2),R(He(17,17,i.sectionContent.footerTextTop,30)),d(3),A(" ",i.sectionContent.footerTextBottom?He(20,20,i.sectionContent.footerTextBottom,"mediumDate"):"Date unknown"," ")}}var uW=(e,t)=>({"icon icon-error":e,"icon icon-success":t});function pW(e,t){if(e&1&&(p(0,"label",3)(1,"span",10),C(2),u()()),e&2){let i=g();v("for",ne(i.content.id)),d(2),R(i.content.label)}}function hW(e,t){if(e&1&&(p(0,"div"),C(1),u()),e&2){let i=g(2);d(),A(" ",i.validationResult.validationMessage," ")}}function gW(e,t){if(e&1&&(p(0,"div"),C(1),u()),e&2){let i=g(2);d(),A(" ",i.validationResult.blankMessage," ")}}function mW(e,t){if(e&1&&(p(0,"div")(1,"div",11),y(2,hW,2,1,"div"),y(3,gW,2,1,"div"),u()()),e&2){let i=g();d(2),w(!i.validInput&&i.dirtyInput&&!i.focusedInput&&!i.pristineInput?2:-1),d(),w(!i.dirtyInput&&!i.focusedInput&&!i.pristineInput&&i.requiredInput?3:-1)}}function fW(e,t){if(e&1&&(p(0,"div")(1,"div",1)(2,"div",2)(3,"p",12),C(4),u()()()()),e&2){let i=g();d(4),R(i.content.toolTip)}}var vW=(e,t,i,n)=>({"col-md-8":e,"col-sm-10":t,"col-xs-10":i,"col-xs-12":n}),CW=(e,t,i)=>({"icon icon-success":e,"icon icon-error":t,"icon icon-loop2 spin":i}),Cc=(e,t,i)=>({"icon-success":e,"icon-error":t,default:i});function bW(e,t){if(e&1&&(p(0,"label",4),x(1,"span",11),u()),e&2){let i=g();v("for",i.content.id),d(),v("innerHTML",i.content.label,ue)}}function _W(e,t){if(e&1&&(p(0,"div",8)(1,"div",12),x(2,"i",6),u(
744)()),e&2){let i=g();d(2),v("ngClass",hi(1,CW,i.value&&i.formControl.valid,i.showError||i.value&&i.formControl.invalid&&!i.formControl.pending&&i.formControl.dirty&&(i.content.showErrorInFocus||!i.focus)||i.formControl.invalid&&!i.formControl.pending&&i.formControl.touched&&i.requiredInput&&(i.content.showErrorInFocus||!i.focus),i.formControl.pending))}}function yW(e,t){if(e&1&&(p(0,"div"),C(1),u()),e&2){let i=g(3);d(),A(" ",i.formControl.errors.formControlValidationErrors.value," ")}}function wW(e,t){if(e&1&&(p(0,"div"),C(1),u()),e&2){let i=g(3);d(),A(" ",i.validationResult.blankMessage," ")}}function xW(e,t){if(e&1&&(p(0,"div"),y(1,yW,2,1,"div"),y(2,wW,2,1,"div"),u()),e&2){let i=g(2);d(),w(i.value&&i.formControl.dirty&&(i.formControl.errors!=null&&i.formControl.errors.formControlValidationErrors)&&(i.formControl.errors==null||i.formControl.errors.formControlValidationErrors==null?null:i.formControl.errors.formControlValidationErrors.value)!=""&&(i.content.showErrorInFocus||!i.focus)?1:-1),d(),w(!i.value&&(i.content.showErrorInFocus||!i.focus)&&i.requiredInput&&(i.validationResult!=null&&i.validationResult.blankMessage)?2:-1)}}function SW(e,t){if(e&1){let i=P();p(0,"a",14),T("click",function(){k(i);let o=g(3);return E(o.showPassword())}),C(1,"Show"),u()}}function kW(e,t){if(e&1){let i=P();p(0,"a",14),T("click",function(){k(i);let o=g(3);return E(o.hidePassword())}),C(1,"Hide"),u()}}function EW(e,t){if(e&1&&(p(0,"div"),y(1,SW,2,0,"a"),y(2,kW,2,0,"a"),u()),e&2){let i=g(2);d(),w(i.inputType==="password"?1:-1),d(),w(i.inputType==="text"?2:-1)}}function MW(e,t){if(e&1&&(p(0,"div",9)(1,"div",13),y(2,xW,3,2,"div"),y(3,EW,3,2,"div"),u()()),e&2){let i=g();d(),v("ngClass",i.formControl.invalid&&(i.formControl.dirty||i.formControl.touched)?"space-between":""),d(),w(i.formControl.invalid&&(i.formControl.dirty||i.formControl.touched)?2:-1),d(),w(i.content.codeType==="PasswordChoice"||i.content.codeType==="Password"||i.content.validationMessage==="Enter your password"?3:-1)}}function TW(e,t){if(e&1&&(p(0,"div",10)(1,"div",3)(2,"p"),C(3,"Your new password must include:"),u()(),x(4,"div"),p(5,"div",15),x(6,"i",16),p(7,"p",17),C(8,"8 or more characters"),u()(),p(9,"div",15),x(10,"i",16),p(11,"p",17),C(12,"Any of these @ ~ ! & * ; ? . #"),u()(),p(13,"div",15),x(14,"i",16),p(15,"p",17),C(16,"At least one lower case letter"),u()(),p(17,"div",15),x(18,"i",16),p(19,"p",17),C(20,"At least one upper case letter"),u()(),p(21,"div",15),x(22,"i",16),p(23,"p",17),C(24,"At least one number"),u()()()),e&2){let i=g();d(5),v("ngClass",i.validationResult.passwordErrors.minlength?"text-success":"text-danger"),d(),v("ngClass",hi(10,Cc,i.validationResult.passwordErrors.minlength,!i.validationResult.passwordErrors.minlength,!i.value)),d(3),v("ngClass",i.validationResult.passwordErrors.hasSpecialCharacters?"text-success":"text-danger"),d(),v("ngClass",hi(14,Cc,i.validationResult.passwordErrors.hasSpecialCharacters,!i.validationResult.passwordErrors.hasSpecialCharacters,!i.value)),d(3),v("ngClass",i.validationResult.passwordErrors.hasSmallCase?"text-success":"text-danger"),d(),v("ngClass",hi(18,Cc,i.validationResult.passwordErrors.hasSmallCase,!i.validationResult.passwordErrors.hasSmallCase,!i.value)),d(3),v("ngClass",i.validationResult.passwordErrors.hasCapitalCase?"text-success":"text-danger"),d(),v("ngClass",hi(22,Cc,i.validationResult.passwordErrors.hasCapitalCase,!i.validationResult.passwordErrors.hasCapitalCase,!i.value)),d(3),v("ngClass",i.validationResult.passwordErrors.hasNumber?"text-success":"text-danger"),d(),v("ngClass",hi(26,Cc,i.validationResult.passwordErrors.hasNumber,!i.validationResult.passwordErrors.hasNumber,!i.value))}}function IW(e,t){if(e&1&&(p(0,"div")(1,"div",2)(2,"div",18)(3,"p",19),C(4),u()()()()),e&2){let i=g();d(4),R(i.content.toolTip)}}var DW=(e,t,i)=>({reversed:e,gray:t,invalid:i}
744),PW=e=>({checkbox__disabled:e});function RW(e,t){if(e&1&&(p(0,"label",3),x(1,"span",11),u()),e&2){let i=g(2);v("for",ne(i.content.id)),d(),v("innerHTML",i.content.label,ue)}}function FW(e,t){if(e&1&&(p(0,"div"),C(1),u()),e&2){let i=g(3);d(),A(" ",i.control.errors.controlValidationErrors.value," ")}}function OW(e,t){if(e&1&&(p(0,"div"),C(1),u()),e&2){let i=g(3);d(),A(" ",i.content.validationBlankMessage," ")}}function AW(e,t){if(e&1&&(p(0,"div"),y(1,FW,2,1,"div"),y(2,OW,2,1,"div"),u()),e&2){let i=g(2);d(),w(i.control.value&&i.control.dirty&&(i.control.errors!=null&&i.control.errors.controlValidationErrors)&&(i.control.errors==null||i.control.errors.controlValidationErrors==null?null:i.control.errors.controlValidationErrors.value)!==""&&(i.content.showErrorInFocus||!i.focus)?1:-1),d(),w(!i.control.value&&!i.focus&&(i.control.errors!=null&&i.control.errors.required)?2:-1)}}function LW(e,t){if(e&1){let i=P();p(0,"div",0)(1,"div",1)(2,"div",2),y(3,RW,2,3,"label",3),u()(),p(4,"div",4)(5,"div",5)(6,"textarea",6),N(7,"formControl"),T("focus",function(){k(i);let o=g();return E(o.inputFocus())})("blur",function(){k(i);let o=g();return E(o.inputBlur())}),C(8," "),u()(),p(9,"div",7)(10,"div",8),x(11,"i",9),u()()(),p(12,"div",10)(13,"div",5),y(14,AW,3,2,"div"),u()()()}if(e&2){let i=g();d(3),w(i.content.label?3:-1),d(3),v("name",ne(i.content.id))("id",ne(i.content.id))("placeholder",ne(i.content.placeholder))("maxlength",ne(i.content.maxLen))("rows",ne(i.content.textarea.rows))("cols",ne(i.content.textarea.cols))("ngClass",Re(19,wc,!i.content.hideValidation&&i.control.value&&i.control.valid,!i.content.hideValidation&&(i.showError||i.control.value&&i.control.invalid&&!i.control.pending&&i.control.dirty&&(i.content.showErrorInFocus||!i.focus)||i.control.invalid&&!i.control.pending&&i.control.touched&&i.content.required&&(i.content.showErrorInFocus||!i.focus))))("formControl",G(7,17,i.control)),d(5),v("ngClass",Re(22,Ap,i.control.value&&i.control.valid,i.showError||i.control.value&&i.control.invalid&&!i.control.pending&&i.control.dirty&&(i.content.showErrorInFocus||!i.focus)||i.control.invalid&&!i.control.pending&&i.control.touched&&i.content.required&&(i.content.showErrorInFocus||!i.focus))),d(3),w(i.showError||i.control.invalid&&(i.control.dirty||i.control.touched)?14:-1)}}var Mt=e=>({invalid:e}),Lp=e=>({content__error:e});function NW(e,t){if(e&1&&(p(0,"p",2),C(1),u()),e&2){let i=g();v("ngClass",z(2,Lp,i.showError)),d(),A(" ",i.content.toolTip," ")}}function zW(e,t){if(e&1&&x(0,"label",4),e&2){let i=g();v("for",i.content.id)("innerHTML",i.content.label,ue)}}function BW(e,t){if(e&1&&(p(0,"label",5),C(1),u()),e&2){let i=g();v("ngClass",z(3,Lp,i.showError))("for",i.content.id),d(),R(i.content.checkedText)}}function VW(e,t){if(e&1&&(p(0,"label",5),C(1),u()),e&2){let i=g();v("ngClass",z(3,Lp,i.showError))("for",i.content.id),d(),R(i.content.toolTip)}}function HW(e,t){e&1&&(p(0,"div",6),x(1,"i",8),u())}function GW(e,t){if(e&1&&(p(0,"div",7),C(1),u()),e&2){let i=g();d(),A(" ",i.content.validationMessage," ")}}var UW=["closeBtn"],jW=[[["",8,"modal__cta"]],[["",8,"modal__content"]]],WW=[".modal__cta",".modal__content"];function $W(e,t){if(e&1){let i=P();p(0,"div")(1,"div",3)(2,"a",4,0),T("click",function(){k(i);let o=g();return E(o.closeModal())})("keydown.Enter",function(){k(i);let o=g();return E(o.closeModal())}),u(),ui(4,1),u(),p(5,"div",5),T("click",function(){k(i);let o=g();return E(o.closeModal())}),u()()}if(e&2){let i=g();d(),Pe("active",i.isModalOpened),d(4),Pe("active",i.isModalOpened)}}var qW=(e,t)=>({"notification--full-width":e,"notification--left-align":t});function YW(e,t){if(e&1){let i=P();p(0,"div",2)(1,"a",9),T("click",function(){k(i);let o=g(2);return E(o.closeNotification())}),x(2,"i",10),u()()}}function KW(e,t){if(e&1){let i=P();p(0,"div",3)(1,"a",9),T("click",function(){k(i);let o=g(2);return E(o.toggleNotification())}),x(2,"i",1),u()()}if(e&2){let i=g(2);d(2),v("ngClass",Re(1,S0,i.isMessageOpen,!i.isMessageOpen))}}function QW(e,t){if(e&1&&x(0,"i"),e&2){let i=g(2);pe(vt("icon-",i.notification.glyph))}}function JW(e,t){if(e&1&&(p(0,"div",1),y(1,YW,3,0,"div",2),y(2,KW,3,4,"div",3),p(3,"div",4)(4,"div",5)(5,"span"),y(6,QW,1,3,"i",6),u(
744),x(7,"span",7),N(8,"notificationMessagePipe"),u(),p(9,"div",8),x(10,"span",7),N(11,"notificationMessagePipe"),u()()()),e&2){let i=g();pe(vt("notification notification--",i.notification.type)),Pe("active",i.isNotificationOpen)("open",i.isMessageOpen),v("ngClass",Re(17,qW,i.notification.fullWidth,i.notification.leftAlign)),d(),w(i.notification.closeNotification?1:-1),d(),w(i.notification.toggleNotification?2:-1),d(4),w(i.notification.glyph?6:-1),d(),v("innerHTML",G(8,13,i.notification.message),ue),d(3),v("innerHTML",G(11,15,i.notification.messageDetail),ue)}}function ZW(e,t){if(e&1&&(p(0,"li",14)(1,"span",15),C(2),u()()),e&2){let i=t.$implicit;d(2),R(i.service)}}function XW(e,t){if(e&1){let i=P();p(0,"fab-accordion",11),T("onToggle",function(o){k(i);let r=g();return E(r.onToogleAccordion(o))}),p(1,"div",12),C(2),u(),p(3,"div",13)(4,"ul"),X(5,ZW,3,1,"li",14,se),u()()()}if(e&2){let i=t.$implicit;v("iconArrowLeft",!1),d(2),A(" ",i.key," "),d(3),ee(i.value)}}function e$(e,t){if(e&1&&(p(0,"span",18),x(1,"i",25),C(2),N(3,"formatAddress"),u()),e&2){let i=g().$implicit;d(2),A(" ",G(3,1,i.address)," ")}}function t$(e,t){if(e&1&&C(0),e&2){let i=g(2).$implicit;A(" ",i.address.addressLocality," ")}}function i$(e,t){e&1&&C(0),e&2&&A(" ",", "," ")}function n$(e,t){if(e&1&&C(0),e&2){let i=g(2).$implicit;A(" ",i.address.addressRegion," ")}}function o$(e,t){if(e&1&&(p(0,"span",18),x(1,"i",25),y(2,t$,1,1),y(3,i$,1,1),y(4,n$,1,1),u()),e&2){let i=g().$implicit;d(2),w(i.address.addressLocality?2:-1),d(),w(i.address.addressLocality&&i.address.addressRegion?3:-1),d(),w(i.address.addressRegion?4:-1)}}function r$(e,t){if(e&1&&(p(0,"strong",19),C(1),u()),e&2){let i=g().$implicit;d(),A("",i.address.distance," miles")}}function a$(e,t){if(e&1&&(p(0,"a",20),x(1,"i",26),C(2),u()),e&2){let i=g().$implicit;v("href",vt("tel:",i.employmentPhoneNumber),ae),d(2),A(" ",i.employmentPhoneNumber)}}function s$(e,t){if(e&1&&(p(0,"a",21),x(1,"i",27),C(2),N(3,"prettyUrl"),u()),e&2){let i=g().$implicit,n=g();v("href",ne(i.website),ae)("href",n.sanitizeUrl(i.website),ae),d(2),A(" ",G(3,4,i.website))}}function l$(e,t){e&1&&(p(0,"div",23)(1,"strong"),C(2," AAT AML supervised"),u(),x(3,"i",28),u()),e&2&&(d(3),v("tooltip","AAT is the supervisory authority for this business under the Money Laundering Regulations in force.")("positionInput","right"))}function c$(e,t){e&1&&(p(0,"div",23)(1,"strong"),C(2,"Not AAT AML supervised"),u(),x(3,"i",28),u()),e&2&&(d(3),v("tooltip","AAT is not the supervisory authority for this business under the Money Laundering Regulations in force.")("positionInput","right"))}function d$(e,t){if(e&1&&x(0,"fab-button",24),e&2){let i=g().$implicit,n=g();v("button",n.getButton(i))}}function u$(e,t){if(e&1&&(p(0,"div",10)(1,"div",16)(2,"span",17)(3,"strong"),C(4),u()(),y(5,e$,4,3,"span",18),y(6,o$,5,3,"span",18),y(7,r$,2,1,"strong",19),y(8,a$,3,3,"a",20),y(9,s$,4,6,"a",21),u(),p(10,"div",22),y(11,l$,4,2,"div",23)(12,c$,4,2,"div",23),y(13,d$,1,1,"fab-button",24),u()()),e&2){let i=t.$implicit;d(4),R(i.organisationName),d(),w(i.mipAddress==="Full"?5:-1),d(),w(i.mipAddress==="Partial"?6:-1),d(),w(i.address.distance?7:-1),d(),w(i.employmentPhoneNumber&&i.mipAddress==="Full"?8:-1),d(),w(i.website&&i.mipAddress==="Full"?9:-1),d(2),w(i.licensedDetails&&i.licensedDetails.licensedDetail&&i.licensedDetails.licensedDetail.length>0&&(i.licensedDetails==null||i.licensedDetails.licensedDetail[0].professionalIndemnityInsurance==null||i.licensedDetails.licensedDetail[0].professionalIndemnityInsurance.moneyLaundering==null?null:i.licensedDetails.licensedDetail[0].professionalIndemnityInsurance.moneyLaundering.supervisoryAuthority)==="AAT"?11:12),d(2),w(i.mipEmailAddress&&i.mipAddress==="Full"?13:-1)}}var p$=(e,t)=>({"has-result":e,"awarded-via-synoptic":t});function h$(e,t){if(e&1&&x(0,"span",6),e&2){let i=g().$implicit;v("innerHTML",i.content,ue)}}function g$(e,t){if(e&1&&(p(0,"div",7)(1,"span"),C(2,"Grade"),u(),p(3,"strong"),C(4),u()()),e&2){let i=g().$implicit;d(4),R(i.grade)}}function m$(e,t){if(e&1&&(p(0,"div",8)(1,"span"),C(2,"Percentage"),u(),p(3,"strong"),C(4),u()()),e&2){let i=g().$implicit;d(4),R(i.percentage)}}function f$(e,t){if(e&1&&(p(0,"div",9),C(1),u()),e&2){let i=g().$implicit;d(),A(" ",i.otherText," ")}}function v$(e,t){if(e&1&&x(0,"fab-aat-icon",10),e&2){let i=g().$implicit;v("content",i.icon)}}function C$(e,t){e&1&&(p(0,"div",11),C(1," Unit awarded once synoptic assessment is achieved "),u())}function b$(e,t){if(e&1&&(p(0,"div",3)(1,"div",4)(2,"strong",5),C(3),u(),y(4,h$,1,1,"span",6),u(),y(5,g$,5,1,"div",7),y(6,m$,5,1,"div",8),y(7,f$,2,1,"div",9),y(8,v$,1,1,"fab-aat-icon",10),u(),y(9,C$,2,0,"div",11)),e&2){let i=t.$implicit;v("ngClass",Re(8,p$,(i.icon==null?null:i.icon.iconName)==="restricted.svg"||(i.icon==null?null:i.icon.iconName)==="tick.svg",i.awardedViaSynoptic)),d(3),R(i.name),d(),w(i.content?4:-1),d(),w(i.grade!==void 0?5:-1),d(),w(i.percentage!==void 0?6:-1),d(),w(i.otherText?7:-1),d(),w(i.icon?8:-1),d(),w(i.awardedViaSynoptic&&(i.icon==null?null:i.icon.iconName)!=="tick.svg"?9:-1)}}var _$=(e,t,i)=>({"loader--small":e,"loader--medium":t,"loader--large":i}),y$=["input"],xc=["*"],w$=e=>({focus:e});function x$(e,t){if(e&1){let i=P();p(0,"span",2),C(1),p(2,"button",5),T("click",function(){let o=k(i).$index,r=g();return E(r.onDelete(o))}),C(3,"\u2716"),u()()}if(e&2){let i=t.$implicit;d(),A(" ",i.name," ")}}function S$(e,t){e&1&&(p(0,"div",4),ui(1),u())}function k$(e,t){if(e&1&&(p(0,"div",4),x(1,"div",6),u()),e&2){let i=g();d(),v("innerHtml",i.config.errorMessage,ue)}}function E$(e,t){e&1&&(p(0,"div",4)(1,"div",7),x(2,"fab-loader"),u()())}var M$=(e,t)=>
744({"fab-autocomplete__form-control--valid":e,"fab-autocomplete__form-control--invalid":t});function T$(e,t){if(e&1&&(p(0,"div",1)(1,"div",17)(2,"label",18),x(3,"span",19),u()()()),e&2){let i=g();d(3),v("innerHTML",i.content.label,ue)}}function I$(e,t){if(e&1&&(p(0,"option",21),C(1),u()),e&2){let i=t.$implicit,n=t.$index;v("selected",n==0)("ngValue",i),d(),A(" ",i.title," ")}}function D$(e,t){if(e&1){let i=P();p(0,"select",20),Jt("ngModelChange",function(o){k(i);let r=g();return Qt(r.search.context,o)||(r.search.context=o),E(o)}),X(1,I$,2,3,"option",21,se),u()}if(e&2){let i=g();Kt("ngModel",i.search.context),d(),ee(i.searchContext)}}function P$(e,t){e&1&&x(0,"i",9)}function R$(e,t){e&1&&x(0,"i",10)}function F$(e,t){e&1&&(p(0,"section",11),ui(1),u())}function O$(e,t){if(e&1&&(p(0,"section",12)(1,"header",22),C(2,"YOUR RESULTS"),u(),x(3,"div",23),u()),e&2){let i=g();d(3),v("innerHtml",i.errorMessage,ue)}}function A$(e,t){if(e&1&&(p(0,"div"),C(1),u()),e&2){let i=g();d(),A(" ",i.blankValidationMessage," ")}}function L$(e,t){if(e&1&&(p(0,"div"),x(1,"div",23),u()),e&2){let i=g();d(),v("innerHtml",i.errorMessage,ue)}}function N$(e,t){if(e&1&&(p(0,"div",1)(1,"div",17)(2,"p",24),C(3),u()()()),e&2){let i=g();d(3),R(i.content.toolTip)}}var E0=e=>({"suggestion--label":e});function z$(e,t){if(e&1&&(p(0,"div",2)(1,"label"),C(2),u()()),e&2){let i=g();d(2),R(i.label)}}function B$(e,t){if(e&1&&(p(0,"option",10),C(1),u()),e&2){let i=t.$implicit,n=t.$index;v("selected",n==0)("ngValue",i),d(),A(" ",i.title," ")}}function V$(e,t){if(e&1){let i=P();p(0,"select",9),Jt("ngModelChange",function(o){k(i);let r=g();return Qt(r.search.context,o)||(r.search.context=o),E(o)}),X(1,B$,2,3,"option",10,se),u()}if(e&2){let i=g();Kt("ngModel",i.search.context),d(),ee(i.searchContext)}}function H$(e,t){if(e&1&&(p(0,"section",7),ui(1),u()),e&2){let i=g();v("ngClass",z(1,E0,i.label))}}function G$(e,t){if(e&1&&(p(0,"section",8)(1,"header",11),C(2,"YOUR RESULTS"),u(),x(3,"div",12),u()),e&2){let i=g();d(3),v("innerHtml",i.errorMessage,ue)}}var U$=(e,t)=>({"autocomplete-multiselect":e,"fab-autocomplete__inner":t}),j$=(e,t,i)=>({"autocomplete-multiselect__input":e,"fab-autocomplete__form-control--valid":t,"fab-autocomplete__form-control--invalid":i});function W$(e,t){if(e&1&&(p(0,"div",1)(1,"label"),C(2),u()()),e&2){let i=g();d(2),R(i.content.label)}}function $$(e,t){if(e&1&&(p(0,"option",10),C(1),u()),e&2){let i=t.$implicit,n=t.$index;v("selected",n==0)("ngValue",i),d(),A(" ",i.title," ")}}function q$(e,t){if(e&1){let i=P();p(0,"select",9),Jt("ngModelChange",function(o){k(i);let r=g();return Qt(r.search.context,o)||(r.search.context=o),E(o)}),X(1,$$,2,3,"option",10,se),u()}if(e&2){let i=g();Kt("ngModel",i.search.context),d(),ee(i.searchContext)}}function Y$(e,t){if(e&1){let i=P();p(0,"span",11),C(1),p(2,"button",12),T("click",function(){let o=k(i).$index,r=g(2);return E(r.onDelete(o))}),C(3,"\u2716"),u()()}if(e&2){let i=t.$implicit;d(),A(" ",i.label," ")}}function K$(e,t){if(e&1&&X(0,Y$,4,1,"span",11,se),e&2){let i=g();ee(i.values)}}function Q$(e,t){if(e&1){let i=P();p(0,"button",13),T("click",function(o){k(i);let r=g();return E(r.serviceSubmit(o))}),u()}}function J$(e,t){if(e&1&&(p(0,"section",6),ui(1),u()),e&2){let i=g();v("ngClass",z(1,E0,i.content.label))}}function Z$(e,t){if(e&1&&(p(0,"section",6),x(1,"fab-loader"),u()),e&2){let i=g();v("ngClass",z(1,E0,i.content.label))}}function X$(e,t){if(e&1&&(p(0,"section",7),x(1,"div",14),u()),e&2){let i=g();d(),v("innerHtml",i.content.errorMessage,ue)}}var GS=e=>({"button-tab--active":e});function eq(e,t){if(e&1&&(p(0,"a",0),C(1),u()),e&2){let i=g();v("href",ne(i.button.link),ae)("ngClass",z(4,GS,i.button.active)),d(),A(" ",i.button.label," ")}}function tq(e,t){if(e&1&&(p(0,"a",1),C(1),u()),e&2){let i=g();v("ngClass",z(3,GS,i.button.active))("routerLink",z(5,Ge,"/"+i.button.link)),d(),A(" ",i.button.label," ")}}function iq(e,t){if(e&1&&(p(0,"div",0),x(1,"iframe",1),u()),e&2){let i=g();d(),v("src",i.iframeSrc(),ah)}}var M0=e=>({active:e});var nq=["dropDownInput"],oq=e=>({dropdown__full:e}),rq=e=>({"form__labelcontainer-bold":e}),aq=e=>({"dropdown__item--selected":e}),sq=(e,t)=>({"dropdown__item--selected":e,"dropdown__item--disabled":t});function lq(e,t){if(e&1&&(p(0,"label")(1,"span",14),C(2),u()()),e&2){let i=g(2);d(),v("ngClass",z(2,rq,i.content==null?null:i.content.emboldenLabel)),d(),R(i.content.label)}}function cq(e,t){if(e&1&&(p(0,"div",3)(1,"div",13),y(2,lq,3,4,"label"),u()()),e&2){let i=g();d(2),w(i.content.label?2:-1)}}function dq(e,t){if(e&1){let i=P();p(0,"li",19),T("keydown.enter",function(){k(i);let o=g(2);return E(o.selectOrUnselectAllValues())})("click",function(){k(i);let o=g(2);return E(o.selectOrUnselectAllValues())}),p(1,"div",20),x(2,"i",21),u(),p(3,"p"),C(4),u()()}if(e&2){let i=g(2);v("ngClass",z(2,aq,i.allSelected)),d(4),R(i.content.allSelected)}}function uq(e,t){if(e&1){let i=P();p(0,"li",22),T("keydown.enter",function(){let o=k(i),r=o.$implicit,a=o.$index,s=g(2);return E(r.selected?s.removeValue(r,a):s.addValue(r,a))})("click",function(){let o=k(i),r=o.$implicit,a=o.$index,s=g(2);return E(r.selected?s.removeValue(r,a):s.addValue(r,a))}),p(1,"div",20),x(2,"i",21),u(),p(3,"p"),C(4),u()()}if(e&2){let i=t.$implicit,n=g(2);v("ngClass",Re(2,sq,i.selected,n.preventFurtherChanges&&!n.selectedString.includes(i.label))),d(4),R(i.label)}}function pq(e,t){if(e&1){let i=P();p(0,"div",9)(1,"div",15),T("click",function(){k(i);let o=g();return E(o.closeOptions())}),x(2,"i",16),u(),p(3,"ul"),y(4,dq,5,4,"li",17),X(5,uq,5,5,"li",18,se),u()()}if(e&2){let i=g();d(4),w(i.disallowAll?-1:4),d(),ee(i.options)}}function hq(e,t){if(e&1&&(p(0,"div",11),x(1,"i",23),u()),e&2){let i=g();d(),v("ngClass",Re(1,Ap,i.dropdownSelectChanges,i.content.required&&i.dropdownSelectChanges===0))}}function gq(e,t){if(e&1&&(p(0,"div",12)(1,"div",24)(2,"strong"),C(3),u()()()),e&2){let i=g();d(3),R(i.content.validationMessage)}}var mq=e=>({"centre-picker--none":e}),fq=e=>({"mt-15":e});function vq(e,t){e&1&&x(0,"fab-loader")}function Cq(e,t){if(e&1){let i=P();p(0,"a",15),T("click",function(){k(i);let o=g(4);return E(o.toggle())})("keydown.Enter",function(){k(i);let o=g(4);return E(o.toggle())}),C(1),u()}if(e&2){let i=g(4);d(),R(i.isOpen==!0?"Hide details":"View details / Change centre")}}function bq(e,t){if(e&1){let i=P();p(0,"a",15),T("click",function(){k(i);let o=g(4);return E(o.toggle())})("keydown.Enter",function(){k(i);let o=g(4);return E(o.toggle())}),C(1),u()}if(e&2){let i=g(4);d(),R(i.isOpen==!0?"Hide details":"View details")}}function _q(e,t){if(e&1&&(p(0,"div",8)(1,"div",13),y(2,Cq,2,1,"a",14)(3,bq,2,1,"a",14),u()()),e&2){let i=g(3);d(2),w(i.centre.length>1?2:3)}}function yq(e,t){if(e&1&&(p(0,"div",11)(1,"h4"),C(2," Centre name: "),p(3,"strong"),C(4),u()(),p(5,"h4"),C(6),u()()),e&2){let i=g(3);
744d(4),R(i.selectedItem.name),d(2),A("Centre code: ",i.selectedItem.trainingprovidercode)}}function wq(e,t){if(e&1&&(p(0,"div",12),x(1,"fab-button",16),u()),e&2){let i=g(3);d(),v("button",i.changeCentre)}}function xq(e,t){if(e&1&&(p(0,"div",3)(1,"div",6)(2,"div",7)(3,"h3"),C(4,"Your centre details"),u()(),y(5,_q,4,1,"div",8),u(),p(6,"div",9)(7,"div",10),y(8,yq,7,2,"div",11),y(9,wq,2,1,"div",12),u()()()),e&2){let i=g(2);d(5),w(i.isStaff?-1:5),d(3),w(i.selectedItem.name?8:-1),d(),w(i.isStaff?9:-1)}}function Sq(e,t){if(e&1&&(p(0,"div"),C(1),u()),e&2){let i=g(4);d(),A(" ",i.centre[0].name," ")}}function kq(e,t){if(e&1&&(p(0,"option",25),C(1),u()),e&2){let i=t.$implicit,n=g(5);v("ngValue",i)("selected",i.name===n.selectedItem.name),d(),A(" ",i==null?null:i.name," ")}}function Eq(e,t){if(e&1){let i=P();p(0,"div")(1,"select",23),Jt("ngModelChange",function(o){k(i);let r=g(4);return Qt(r.selectedItem,o)||(r.selectedItem=o),E(o)}),T("ngModelChange",function(o){k(i);let r=g(4);return E(r.chooseCentre(o))}),p(2,"option",24),C(3,"Change centre"),u(),X(4,kq,2,3,"option",25,se),u()()}if(e&2){let i=g(4);d(),v("compareWith",i.compareFn),Kt("ngModel",i.selectedItem),d(3),ee(i.centre)}}function Mq(e,t){if(e&1&&(p(0,"div",10),y(1,Sq,2,1,"div"),y(2,Eq,6,2,"div"),u()),e&2){let i=g(3);d(),w(i.centre.length==1?1:-1),d(),w(i.centre.length>1?2:-1)}}function Tq(e,t){e&1&&(p(0,"div")(1,"strong",27),C(2,"Location"),u()())}function Iq(e,t){if(e&1&&(p(0,"span"),C(1),u()),e&2){let i=g(4);d(),A(" ",i.selectedItem.postalAddress.streetAddressLine1," ")}}function Dq(e,t){if(e&1&&(p(0,"span"),C(1),u()),e&2){let i=g(4);d(),A(" ",i.selectedItem.postalAddress.streetAddressLine2)}}function Pq(e,t){if(e&1&&(p(0,"span"),C(1),u()),e&2){let i=g(4);d(),A(" ",i.selectedItem.postalAddress.addressLocality," ")}}function Rq(e,t){if(e&1&&(p(0,"span"),C(1),u()),e&2){let i=g(4);d(),A(" ",i.selectedItem.postalAddress.postalCode," ")}}function Fq(e,t){if(e&1&&(p(0,"span"),C(1),u()),e&2){let i=g(4);d(),A(" ",i.selectedItem.postalAddress.addressCountry," ")}}function Oq(e,t){if(e&1&&(p(0,"div",19)(1,"div",26),y(2,Tq,3,0,"div"),p(3,"address"),y(4,Iq,2,1,"span"),y(5,Dq,2,1,"span"),y(6,Pq,2,1,"span"),y(7,Rq,2,1,"span"),y(8,Fq,2,1,"span"),u()()()),e&2){let i=g(3);d(2),w(i.selectedItem.postalAddress?2:-1),d(2),w(i.selectedItem.postalAddress.streetAddressLine1?4:-1),d(),w(i.selectedItem.postalAddress.streetAddressLine2?5:-1),d(),w(i.selectedItem.postalAddress.addressLocality?6:-1),d(),w(i.selectedItem.postalAddress.postalCode?7:-1),d(),w(i.selectedItem.postalAddress.addressCountry?8:-1)}}function Aq(e,t){if(e&1&&(p(0,"div")(1,"strong",28),C(2,"Phone"),u(),p(3,"a",29),C(4),u()()),e&2){let i=g(4);d(3),v("href","tel:"+i.selectedItem.tpContact.telephoneNumber,ae),d(),R(i.selectedItem.tpContact.telephoneNumber)}}function Lq(e,t){if(e&1&&(p(0,"div")(1,"strong",28),C(2,"Website"),u(),p(3,"a",29),C(4),u()()),e&2){let i=g(4);d(3),v("href",i.selectedItem.tpContact.website,ae),d(),R(i.selectedItem.tpContact.website)}}function Nq(e,t){if(e&1&&(p(0,"div",21)(1,"strong",27),C(2,"Main contact"),u(),y(3,Aq,5,2,"div"),y(4,Lq,5,2,"div"),u()),e&2){let i=g(3);d(3),w(i.selectedItem.tpContact.telephoneNumber?3:-1),d(),w(i.selectedItem.tpContact.website?4:-1)}}function zq(e,t){if(e&1&&(p(0,"div",22)(1,"strong",27),C(2,"Role at centre"),u(),p(3,"div"),C(4),u()()),e&2){let i=g(3);d(4),R(i.selectedItem.role)}}function Bq(e,t){if(e&1&&(p(0,"div",4)(1,"div",17),y(2,Mq,3,2,"div",10),u(),p(3,"div",18),y(4,Oq,9,6,"div",19),p(5,"div",20),y(6,Nq,5,2,"div",21),y(7,zq,5,1,"div",22),u()()()),e&2){let i=g(2);d(2),w(i.allowCentreChange?2:-1),d(2),w(i.selectedItem.name?4:-1),d(2),w(i.selectedItem.tpContact?6:-1),d(),w(i.selectedItem.role?7:-1)}}function Vq(e,t){if(e&1){let i=P();p(0,"li",32),T("click",function(){let o=k(i).$implicit,r=g(3);return E(r.selectCentre(o.id))}),p(1,"span"),C(2),u()()}if(e&2){let i=t.$implicit;d(2),R(i.label)}}function Hq(e,t){if(e&1){let i=P();p(0,"div",5)(1,"div",30)(2,"input",31),T("keyup",function(o){k(i);let r=g(2);return E(r.onSearchUpdate(o))}),u(),p(3,"ul"),X(4,Vq,3,1,"li",null,se),u()()()}if(e&2){let i=g(2);d(2),v("placeholder",i.placeHolderText),d(2),ee(i.centreResults)}}function Gq(e,t){if(e&1&&(p(0,"div",1),y(1,xq,10,3,"div",3),y(2,Bq,8,4,"div",4),y(3,Hq,6,1,"div",5),u()),e&2){let i=g();d(),w(i.selectedItem?1:-1),d(),w(!i.isStaff&&i.isOpen?2:-1),d(),w(i.isStaff&&!i.selectedItem?3:-1)}}function Uq(e,t){if(e&1){let i=P();p(0,"div",33)(1,"fab-dropdown",35),T("outputReturnSelectedOptions",function(o){k(i);let r=g(2);return E(r.getSelectedCentres(o))}),u(),x(2,"fab-button",36),u()}if(e&2){let i=g(2);d(),v("content",i.multiDropdownContent),d(),v("button",i.confirmCentres)("enabled",i.confirmCentresEnabled)}}function jq(e,t){if(e&1&&(p(0,"tr")(1,"td"),C(2),u(),p(3,"td"),C(4),u()()),e&2){let i=t.$implicit;d(2),R(i.name),d(2),R(i.trainingprovidercode)}}function Wq(e,t){if(e&1&&(p(0,"div",34)(1,"table")(2,"tr")(3,"th"),C(4,"Centre name"),u(),p(5,"th"),C(6,"Centre c
744ode"),u()(),X(7,jq,5,2,"tr",null,se),u()()),e&2){let i=g(2);v("ngClass",z(1,fq,i.allowCentreChange)),d(7),ee(i.centresToDisplay)}}function $q(e,t){if(e&1&&(p(0,"div",1),y(1,Uq,3,3,"div",33),y(2,Wq,9,3,"div",34),u()),e&2){let i=g();d(),w(i.allowCentreChange?1:-1),d(),w(i.centresToDisplay&&i.centresToDisplay.length?2:-1)}}function qq(e,t){if(e&1){let i=P();C(0," Select one centre / "),p(1,"a",32),T("click",function(){k(i);let o=g(2);return E(o.changeMode("multi"))}),C(2,"select multiple centres"),u()}}function Yq(e,t){if(e&1){let i=P();p(0,"a",32),T("click",function(){k(i);let o=g(2);return E(o.changeMode("single"))}),C(1,"Select one centre"),u(),C(2," / select multiple centres ")}}function Kq(e,t){if(e&1&&(p(0,"div",2),y(1,qq,3,0)(2,Yq,3,0),u()),e&2){let i=g();d(),w(i.isMultiSelectActive?2:1)}}var Qq=["modal"],Jq=["coBrowser"];function Zq(e,t){e&1&&(p(0,"div",4)(1,"p"),C(2,"Generate co-browsing code"),u()())}function Xq(e,t){if(e&1){let i=P();p(0,"div",5)(1,"h3",6),C(2,"Generate help code for co-browsing"),u(),p(3,"p",6),C(4," Co-browsing technology allows customers and AAT customer support advisors to navigate and interact with the same web page on the AAT website simultaneously. The tool enables advisors to offer assistance and guide customers through tasks remotely by sharing a browser session. Advisors can observe your screen during a phone or live chat session and, if necessary, take control of the cursor to demonstrate tasks while you observe. "),u(),p(5,"p",6),C(6," Please ensure you're connected with an advisor via phone or live chat to utilise our co-browsing service. Click the "),p(7,"b"),C(8," Generate co-browsing "),u(),C(9," box below if you\u2019re currently speaking with an advisor through phone or live chat to continue with our co-browsing service. "),u(),p(10,"p",6),C(11," If you require screen sharing assistance and have not yet contacted an advisor, please reach out to us via the provided phone numbers or start a live chat by clicking the "),p(12,"b"),C(13," Get help "),u(),C(14,"box below, to ensure we can properly assist you. "),u(),p(15,"div",7)(16,"fab-journey-card",8),T("click",function(){k(i);let o=g();return E(o.nextStep())}),u(),x(17,"fab-journey-card",9),u()()}if(e&2){let i=g();d(16),v("content",i.journeyGetAgentCode),d(),v("content",i.journeyHelpCard)}}function eY(e,t){if(e&1){let i=P();p(0,"div",5)(1,"h3",6),C(2,"Generate help code for co-browsing"),u(),p(3,"div",10)(4,"p"),C(5," Three co-browsing modes are available to best suit your needs and preferences. Please read the details carefully and select the option that aligns with your requirements. "),u(),p(6,"fab-radio",11),T("selectEvent",function(o){k(i);let r=g();return E(r.setControl(o))}),u(),p(7,"fab-radio",11),T("selectEvent",function(o){k(i);let r=g();return E(r.setControl(o))}),u(),p(8,"fab-radio",11),T("selectEvent",function(o){k(i);let r=g();return E(r.setControl(o))}),u(),p(9,"p"),C(10," Customer data security and privacy are paramount to us. During co-browsing sessions, our advisors can only view the AAT website, and sensitive information, such as password fields, is automatically masked to ensure your privacy and protection. "),u(),p(11,"fab-input-checkbox",12),Jt("isCheckedChange",function(o){k(i);let r=g();return Qt(r.declarationAgreement,o)||(r.declarationAgreement=o),E(o)}),u(),p(12,"div",13),x(13,"fab-button",14)(14,"fab-button",15),u()()()}if(e&2){let i=g();d(6),v("content",i.fullControl),d(),v("content",i.partialControl),d(),v("content",i.noControl),d(3),Kt("isChecked",i.declarationAgreement),v("content",i.cardCheckBox),d(2),v("button",i.goBack),d(),v("button",i.next)("enabled",i.browsingMode!==void 0&&i.declarationAgreement)}}function tY(e,t){e&1&&(p(0,"div",5)(1,"p",16),C(2,"Please reload your browser to change your cobrowsing settings."),u()())}function iY(e,t){if(e&1&&(p(0,"a",4)(1,"div",6)(2,"p"),C(3),u()()()),e&2){let i=g().$implicit;v("href",i.link,ae),d(3),R(i.label)}}function nY(e,t){if(e&1&&(p(0,"a",5)(1,"div",6)(2,"p"),C(3),u()()()),e&2){let i=g().$implicit;v("routerLink",z(2,Ge,"/"+i.link)),d(3),R(i.label)}}function oY(e,t){if(e&1){let i=P();p(0,"div",3),T("click",function(o){let r=k(i).$implicit,a=g(2);return E(a.itemClicked(o,r))}),y(1,iY,4,2,"a",4),y(2,nY,4,4,"a",5),u()}if(e&2){let i=g(2);d(),w(i.useRouterLink?-1:1),d(),w(i.useRouterLink?2:-1)}}function rY(e,t){if(e&1&&(p(0,"div",0)(1,"div",1),X(2,oY,3,2,"div",2,se),u()()),e&2){let i=g();d(2),ee(i.content)}}var aY=["dropdownCategorized"],US=e=>({"dropdown-categorized__item--selected":e});function sY(e,t){if(e&1&&(p(0,"div",2)(1,"label"),C(2),u()()),e&2){let i=g();d(2),R(i.content.label)}}function lY(e,t){if(e&1){let i=P();p(0,"li",15),T("click",function(){k(i);let o=g(),r=o.$implicit,a=o.$index,s=g(2);return E(s.selectCategoryItems(r,a))}),p(1,"div",16),x(2,"i",17),u(),p(3,"span"),C(4),u()()}if(e&2){let i=g().$implicit;v("ngClass",z(2,US,i.allSelected)),d(4),R(i.selectAllText)}}function cY(e,t){if(e&1){let i=P();p(0,"li",15),T("click",function(){let o=k(i).$implicit,r=g().$implicit,a=g(2);return E(a.onItemClick(o,r.title))}),p(1,"div",16),x(2,"i",17),u(),p(3,"span"),C(4),u()()}if(e&2){let i=t.$implicit;v("ngClass",z(2,US,i.selected)),d(4),R(i.label)}}function dY(e,t){if(e&1&&(p(0,"div")(1,"strong"),C(2),u(),p(3,"ul",13),y(4,lY,5,4,"li",14),X(5,cY,5,4,"li",14,se),u()()),e&2){let i=t.$implicit,n=g(2);pe(vt("col-xs-12 col-md-",n.columns)),d(2),R(i.title),d(2),w(i.selectAllText&&i.options.length>1?4:-1),d(),ee(i.options)}}function uY(e,t){if(e&1){let i=P();p(0,"div",12)(1,"div")(2,"a",18),T("click",function(){k(i);let o=g(2);return E(o.clearAll())}),C(3,"Clear selection"),x(4,"i",19),u()(),x(5,"fab-button",20),u()}if(e&2){let i=g(2);d(5),v("button",i.applyButton)}}function pY(e,t){if(e&1){let i=P();p(0,"div",7)(1,"div",8),T("click",function(){k(i);let o=g();return E(o.close())}),x(2,"i",9),u(),p(3,"div",10),X(4,dY,7,5,"div",11,se),u(),y(6,uY,6,1,"div",12),u()}if(e&2){let i=g();v("@onOff",void 0),d(4),ee(i.content.options),d(2),w(i.content.hideButtons?-1:6)}}var T0=e=>({label:e});function hY(e,t){e&1&&(p(0,"span",25),x(1,"i",26),C(2," You've opted in"),u())}function gY(e,t){e&1&&(p(0,"span",25),x(1,"i",27),C(2," You've opted out"),u())}function mY(e,t){if(e&1&&(p(0,"div",28)(1,"span"),C(2),u()()),e&2){let i=g(3).index,n=g();d(2),R(n.form.controls.commsPreferences.controls[i].value.description)}}function fY(e,t){if(e&1){let i=P();p(0,"div",20)(1,"p",21),C(2),u(),V(3,hY,3,0,"span",22)(4,gY,3,0,"ng-template",null,1,ze),p(6,"span",23),T("click",function(){k(i);let o=g(2).index,r=g();return E(r.editField(o))}),C(7," Edit "),u(),V(8,mY,3,1,"div",24),u()}if(e&2){let i=de(5),n=g(2).index,o=g();d(2),A(" ",o.form.controls.commsPreferences.controls[n].value.preferenceName," "),d(),v("ngIf",o.form.controls.commsPreferences.controls[n].value.optedIn==="Yes")("ngIfElse",i),d(5),v("ngIf",o.form.controls.commsPreferences.controls[n].value.description!=="")}}function vY(e,t){if(e&1&&(p(0,"div",37)(1,"span"),C(2),u()()),e&2){let i=g(3).index,n=g();d(2),R(n.form.controls.commsPreferences.controls[i].value.description)}}function CY(e,t){if(e&1&&(p(0,"div"),x(1,"fab-radio",38),u()),e&2){let i=t.$implicit,n=g(3).index,o=g();d(),v("content",i)("checkedVal",o.form.controls.commsPreferences.controls[n].value.optedIn===i.label)("formControl",o.form.controls.commsPreferences.controls[n].controls.optedIn)}}function bY(e,t){if(e&1&&(p(0,"div"),x(1,"fab-dropdown-simple",43),u()),e&2){let i=g().index,n=g(4).index,o=g();d(),v("content",o.questionContent[n][i])("formControl",o.form.controls.commsPreferences.controls[n].controls.questions.controls[i].controls.questionAnswer)}}function _Y(e,t){if(e&1){let i=P();p(0,"div")(1,"fab-dropdown",44),T("outputReturnSelectedOptions",function(o){k(i);let r=g().index,a=g(4).index,s=g();return E(s.selectOptions(o,a,r))}),u()()}if(e&2){let i=g().index,n=g(4).index,o=g();d(),v("content",o.questionContent[n][i])}}function yY(e,t){if(e&1){let i=P();p(0,"li",49),T("mousedown",function(){let o=k(i).index;g(2);let r=de(3);return E(r.selectSuggestion(o))}),p(1,"span"),C(2),u()()}if(e&2){let i=t.$implicit;d(2),R(i.name)}}function wY(e,t){if(e&1&&(p(0,"div"),V(1,yY,3,1,"li",48),u()),e&2){let i=g(2).index,n=g(4).index,o=g();d(),v("ngForOf",o.questionContent[n][i])}}function xY(e,t){if(e&1){let i=P();p(0,"li",49),T("mousedown",function(){let o=k(i).index;g(2);let r=de(3);return E(r.selectSuggestion(o))}),x(1,"span",50),N(2,"textHighlight"),u()}if(e&2){let i=t.$implicit,n=t.index;g(2);let o=de(3);d(),Pe("selected",o.currentIndex==n),v("innerHTML",He(2,3,i.label,o.search.term),ue)}}function SY(e,t){if(e&1&&V(0,xY,3,6,"li",48),e&2){g();let i=de(3);v("ngForOf",i.results)}}function kY(e,t){if(e&1&&(p(0,"div")(1,"div")(2,"fab-autocomplete-validation",45,2)(4,"header",46),C(5,"YOUR RESULTS"),u(),p(6,"ul"),V(7,wY,2,1,"div",47)(8,SY,1,1,"ng-template",null,3,ze),u()()()()),e&2){let i=de(3),n=de(9),o=g().index,r=g(4).index,a=g();d(2),v("showError",a.typeSearchInterface.showError)("formControl",a.form.controls.commsPreferences.controls[r].controls.questions.controls[o].controls.questionAnswer)("errorMessage",a.typeSearchInterface.errorMessage)("dataList",a.questionContent[r][o]
744)("dataListPrefillItem",z(9,T0,a.form.controls.commsPreferences.controls[r].controls.questions.controls[o].controls.questionAnswer.value))("content",a.typeSearchInterface.content)("alwaysShowSuggestions",!0),d(5),v("ngIf",!i.results)("ngIfElse",n)}}function EY(e,t){if(e&1&&(p(0,"div",40)(1,"div",15)(2,"p"),C(3),u(),p(4,"div",41),V(5,bY,2,2,"div",42)(6,_Y,2,1,"div",42)(7,kY,10,11,"div",42),u()()()),e&2){let i=t.$implicit,n=t.index;d(),v("formGroupName",n),d(2),A(" ",i.controls.questionName.value," "),d(),v("ngSwitch",i.controls["subQuestionType.value"]),d(),v("ngSwitchCase","Drop Down List"),d(),v("ngSwitchCase","Checkbox List"),d(),v("ngSwitchCase","Radio Button List")}}function MY(e,t){if(e&1&&(p(0,"div"),V(1,EY,8,6,"div",39),u()),e&2){let i,n=g(3).index,o=g();d(),v("ngForOf",(i=o.questionForm(n))==null?null:i.controls)}}function TY(e,t){if(e&1){let i=P();p(0,"div",29)(1,"div")(2,"p",30)(3,"strong"),C(4),u()(),V(5,vY,3,1,"div",31),p(6,"div")(7,"p",32),C(8),u(),V(9,CY,2,3,"div",33)(10,MY,2,1,"div",16),p(11,"div",34)(12,"div")(13,"a",35),T("click",function(){k(i);let o=g(2).index,r=g();return E(r.cancelEditingPermission(o))}),C(14,"Cancel"),u()(),x(15,"fab-button",36),u()()()()}if(e&2){let i=g(2).index,n=g();d(4),R(n.form.controls.commsPreferences.controls[i].value.preferenceName),d(),v("ngIf",n.form.controls.commsPreferences.controls[i].value.description!==""),d(3),A(" Would you like to opt in to ",n.form.controls.commsPreferences.controls[i].value.preferenceName,"? "),d(),v("ngForOf",n.communicationPreferenceInterface),d(),v("ngIf",n.form.controls.commsPreferences.controls[i].value.optedIn==="Yes"&&n.form.controls.commsPreferences.controls[i].value.questions),d(5),v("enabled",n.commsUpdateEnabled)("button",n.getUpdateButton(i))}}function IY(e,t){if(e&1&&(p(0,"div")(1,"div",17)(2,"div",18),V(3,fY,9,4,"div",19)(4,TY,16,7,"ng-template",null,0,ze),u()()()),e&2){let i=de(5),n=g().index,o=g();d(3),v("ngIf",o.currentField!==n)("ngIfElse",i)}}function DY(e,t){if(e&1&&(p(0,"div",14)(1,"div",15),V(2,IY,6,2,"div",16),u()()),e&2){let i=t.index,n=g();d(),v("formGroupName",i),d(),v("ngIf",n.form.controls.commsPreferences.controls[i].value.description.includes("email"))}}function PY(e,t){e&1&&(p(0,"span",25),x(1,"i",26),C(2," You've opted in"),u())}function RY(e,t){e&1&&(p(0,"span",25),x(1,"i",27),C(2," You've opted out"),u())}function FY(e,t){if(e&1&&(p(0,"div",53)(1,"span"),C(2),u()()),e&2){let i=g(3).index,n=g(2);d(2),R(n.form.controls.commsPreferences.controls[i].value.description)}}function OY(e,t){if(e&1){let i=P();p(0,"div",20)(1,"p",21),C(2),u(),V(3,PY,3,0,"span",22)(4,RY,3,0,"ng-template",null,1,ze),p(6,"span",23),T("click",function(){k(i);let o=g(2).index,r=g(2);return E(r.editField(o))}),C(7," Edit "),u(),V(8,FY,3,1,"div",52),u()}if(e&2){let i=de(5),n=g(2).index,o=g(2);d(2),A(" ",o.form.controls.commsPreferences.controls[n].value.preferenceName," "),d(),v("ngIf",o.form.controls.commsPreferences.controls[n].value.optedIn==="Yes")("ngIfElse",i),d(5),v("ngIf",o.form.controls.commsPreferences.controls[n].value.description!=="")}}function AY(e,t){if(e&1&&(p(0,"div",56)(1,"span"),C(2),u()()),e&2){let i=g(3).index,n=g(2);d(2),R(n.form.controls.commsPreferences.controls[i].value.description)}}function LY(e,t){if(e&1&&(p(0,"div"),x(1,"fab-radio",38),u()),e&2){let i=t.$implicit,n=g(3).index,o=g(2);d(),v("content",i)("checkedVal",o.form.controls.commsPreferences.controls[n].value.optedIn===i.label)("formControl",o.form.controls.commsPreferences.controls[n].controls.optedIn)}}function NY(e,t){if(e&1&&(p(0,"div"),x(1,"fab-dropdown-simple",43),u()),e&2){let i=g().index,n=g(4).index,o=g(2);d(),v("content",o.questionContent[n][i])("formControl",o.form.controls.commsPreferences.controls[n].controls.questions.controls[i].controls.questionAnswer)}}function zY(e,t){if(e&1){let i=P();p(0,"div")(1,"fab-dropdown",44),T("outputReturnSelectedOptions",function(o){k(i);let r=g().index,a=g(4).index,s=g(2);return E(s.selectOptions(o,a,r))}),u()()}if(e&2){let i=g().index,n=g(4).index,o=g(2);d(),v("content",o.questionContent[n][i])}}function BY(e,t){if(e&1){let i=P();p(0,"li",49),T("mousedown",function(){let o=k(i).index;g(2);let r=de(3);return E(r.selectSuggestion(o))}),p(1,"span"),C(2),u()()}if(e&2){let i=t.$implicit;d(2),R(i.name)}}function VY(e,t){if(e&1&&(p(0,"div"),V(1,BY,3,1,"li",48),u()),e&2){let i=g(2).index,n=g(4).index,o=g(2);d(),v("ngForOf",o.questionContent[n][i])}}function HY(e,t){if(e&1){let i=P();p(0,"li",49),T("mousedown",function(){let o=k(i).index;g(2);let r=de(3);return E(r.selectSuggestion(o))}),x(1,"span",50),N(2,"textHighlight"),u()}if(e&2){let i=t.$implicit,n=t.index;g(2);let o=de(3);d(),Pe("selected",o.currentIndex==n),v("innerHTML",He(2,3,i.label,o.search.term),ue)}}function GY(e,t){if(e&1&&V(0,HY,3,6,"li",48),e&2){g();let i=de(3);v("ngForOf",i.results)}}function UY(e,t){if(e&1&&(p(0,"div")(1,"div")(2,"fab-autocomplete-validation",45,2)(4,"header",46),C(5,"YOUR RESULTS"),u(),p(6,"ul"),V(7,VY,2,1,"div",47)(8,GY,1,1,"ng-template",null,3,ze),u()()()()),e&2){let i=de(3),n=de(9),o=g().index,r=g(4).index,a=g(2);d(2),v("showError",a.typeSearchInterface.showError)("formControl",a.form.controls.commsPreferences.controls[r].controls.questions.controls[o].controls.questionAnswer)("errorMessage",a.typeSearchInterface.errorMessage)("dataList",a.questionContent[r][o]
744)("dataListPrefillItem",z(9,T0,a.form.controls.commsPreferences.controls[r].controls.questions.controls[o].controls.questionAnswer.value))("content",a.typeSearchInterface.content)("alwaysShowSuggestions",!0),d(5),v("ngIf",!i.results)("ngIfElse",n)}}function jY(e,t){if(e&1&&(p(0,"div",40)(1,"div",15)(2,"p"),C(3),u(),p(4,"div",41),V(5,NY,2,2,"div",42)(6,zY,2,1,"div",42)(7,UY,10,11,"div",42),u()()()),e&2){let i=t.$implicit,n=t.index;d(),v("formGroupName",n),d(2),A(" ",i.controls.questionName.value," "),d(),v("ngSwitch",i.controls.subQuestionType.value),d(),v("ngSwitchCase","Drop Down List"),d(),v("ngSwitchCase","Checkbox List"),d(),v("ngSwitchCase","Radio Button List")}}function WY(e,t){if(e&1&&(p(0,"div",57),V(1,jY,8,6,"div",39),u()),e&2){let i,n=g(3).index,o=g(2);d(),v("ngForOf",(i=o.questionForm(n))==null?null:i.controls)}}function $Y(e,t){if(e&1){let i=P();p(0,"div",29)(1,"div")(2,"p",30)(3,"strong"),C(4),u()(),p(5,"div"),V(6,AY,3,1,"div",54)(7,LY,2,3,"div",33)(8,WY,2,1,"div",55),p(9,"div",34)(10,"div")(11,"a",35),T("click",function(){k(i);let o=g(2).index,r=g(2);return E(r.cancelEditingPermission(o))}),C(12,"Cancel"),u()(),x(13,"fab-button",36),u()()()()}if(e&2){let i=g(2).index,n=g(2);d(4),R(n.form.controls.commsPreferences.controls[i].value.preferenceName),d(2),v("ngIf",n.form.controls.commsPreferences.controls[i].value.description!==""),d(),v("ngForOf",n.communicationPreferenceInterface),d(),v("ngIf",n.form.controls.commsPreferences.controls[i].value.optedIn==="Yes"&&n.form.controls.commsPreferences.controls[i].value.questions),d(5),v("enabled",n.commsUpdateEnabled)("button",n.getUpdateButton(i))}}function qY(e,t){if(e&1&&(p(0,"div")(1,"div",17)(2,"div",18),V(3,OY,9,4,"div",19)(4,$Y,14,6,"ng-template",null,0,ze),u()()()),e&2){let i=de(5),n=g().index,o=g(2);d(3),v("ngIf",o.currentField!==n)("ngIfElse",i)}}function YY(e,t){if(e&1&&(p(0,"div",14)(1,"div",15),V(2,qY,6,2,"div",16),u()()),e&2){let i=t.index,n=g(2);d(),v("formGroupName",i),d(),v("ngIf",n.form.controls.commsPreferences.controls[i].value.description.includes("tailored"))}}function KY(e,t){if(e&1&&(p(0,"div",5)(1,"div",6)(2,"div",51)(3,"p",8)(4,"strong"),C(5,"Make your communications more relevant"),u()()(),p(6,"div",10),V(7,YY,3,2,"div",11),u()()()),e&2){let i=g();d(6),v("formGroup",i.form),d(),v("ngForOf",i.preferenceForm==null?null:i.preferenceForm.controls)}}function QY(e,t){e&1&&(p(0,"span",25),x(1,"i",26),C(2," You've opted in"),u())}function JY(e,t){e&1&&(p(0,"span",25),x(1,"i",27),C(2," You've opted out"),u())}function ZY(e,t){if(e&1){let i=P();p(0,"div",20)(1,"p",21),C(2),u(),V(3,QY,3,0,"span",22)(4,JY,3,0,"ng-template",null,1,ze),p(6,"span",23),T("click",function(){k(i);let o=g(2).index,r=g(2);return E(r.editField(o))}),C(7," Edit "),u()()}if(e&2){let i=de(5),n=g(2).index,o=g(2);d(2),A(" ",o.form.controls.commsPreferences.controls[n].value.preferenceName," "),d(),v("ngIf",o.form.controls.commsPreferences.controls[n].value.optedIn==="Yes")("ngIfElse",i)}}function XY(e,t){if(e&1&&(p(0,"div"),x(1,"fab-radio",38),u()),e&2){let i=t.$implicit,n=g(3).index,o=g(2);d(),v("content",i)("checkedVal",o.form.controls.commsPreferences.controls[n].value.optedIn===i.label)("formControl",o.form.controls.commsPreferences.controls[n].controls.optedIn)}}function eK(e,t){if(e&1&&(p(0,"div"),x(1,"fab-dropdown-simple",43),u()),e&2){let i=g().index,n=g(4).index,o=g(2);d(),v("content",o.questionContent[n][i])("formControl",o.form.controls.commsPreferences.controls[n].controls.questions.controls[i].controls.questionAnswer)}}function tK(e,t){if(e&1){let i=P();p(0,"div")(1,"fab-dropdown",44),T("outputReturnSelectedOptions",function(o){k(i);let r=g().index,a=g(4).index,s=g(2);return E(s.selectOptions(o,a,r))}),u()()}if(e&2){let i=g().index,n=g(4).index,o=g(2);d(),v("content",o.questionContent[n][i])}}function iK(e,t){if(e&1){let i=P();p(0,"li",49),T("mousedown",function(){let o=k(i).index;g(2);let r=de(3);return E(r.selectSuggestion(o))}),p(1,"span"),C(2),u()()}if(e&2){let i=t.$implicit;d(2),R(i.name)}}function nK(e,t){if(e&1&&(p(0,"div"),V(1,iK,3,1,"li",48),u()),e&2){let i=g(2).index,n=g(4).index,o=g(2);d(),v("ngForOf",o.questionContent[n][i])}}function oK(e,t){if(e&1){let i=P();p(0,"li",49),T("mousedown",function(){let o=k(i).index;g(2);let r=de(3);return E(r.selectSuggestion(o))}),x(1,"span",50),N(2,"textHighlight"),u()}if(e&2){let i=t.$implicit,n=t.index;g(2);let o=de(3);d(),Pe("selected",o.currentIndex==n),v("innerHTML",He(2,3,i.label,o.search.term),ue)}}function rK(e,t){if(e&1&&V(0,oK,3,6,"li",48),e&2){g();let i=de(3);v("ngForOf",i.results)}}function aK(e,t){if(e&1&&(p(0,"div")(1,"div")(2,"fab-autocomplete-validation",45,2)(4,"header",46),C(5,"YOUR RESULTS"),u(),p(6,"ul"),V(7,nK,2,1,"div",47)(8,rK,1,1,"ng-template",null,3,ze),u()()()()),e&2){let i=de(3),n=de(9),o=g().index,r=g(4).index,a=g(2);d(2),v("showError",a.typeSearchInterface.showError)("formControl",a.form.controls.commsPreferences.controls[r].controls.questions.controls[o].controls.questionAnswer)("errorMessage",a.typeSearchInterface.errorMessage)("dataList",a.questionContent[r][o]
744)("dataListPrefillItem",z(9,T0,a.form.controls.commsPreferences.controls[r].controls.questions.controls[o].controls.questionAnswer.value))("content",a.typeSearchInterface.content)("alwaysShowSuggestions",!0),d(5),v("ngIf",!i.results)("ngIfElse",n)}}function sK(e,t){if(e&1&&(p(0,"div",40)(1,"div",15)(2,"p"),C(3),u(),p(4,"div",41),V(5,eK,2,2,"div",42)(6,tK,2,1,"div",42)(7,aK,10,11,"div",42),u()()()),e&2){let i=t.$implicit,n=t.index;d(),v("formGroupName",n),d(2),A(" ",i.controls.questionName.value," "),d(),v("ngSwitch",i.controls.subQuestionType.value),d(),v("ngSwitchCase","Drop Down List"),d(),v("ngSwitchCase","Check box List"),d(),v("ngSwitchCase","Radio Button List")}}function lK(e,t){if(e&1&&(p(0,"div"),V(1,sK,8,6,"div",39),u()),e&2){let i,n=g(3).index,o=g(2);d(),v("ngForOf",(i=o.questionForm(n))==null?null:i.controls)}}function cK(e,t){if(e&1){let i=P();p(0,"div",29)(1,"div")(2,"p",30)(3,"strong"),C(4),u()(),p(5,"div")(6,"div",56),C(7),u(),V(8,XY,2,3,"div",33)(9,lK,2,1,"div",16),p(10,"div",34)(11,"div")(12,"a",35),T("click",function(){k(i);let o=g(2).index,r=g(2);return E(r.cancelEditingPermission(o))}),C(13,"Cancel"),u()(),x(14,"fab-button",36),u()()()()}if(e&2){let i=g(2).index,n=g(2);d(4),R(n.form.controls.commsPreferences.controls[i].value.preferenceName),d(3),A(" Would you like to opt in to ",n.form.controls.commsPreferences.controls[i].value.preferenceName,"? "),d(),v("ngForOf",n.communicationPreferenceInterface),d(),v("ngIf",n.form.controls.commsPreferences.controls[i].value.optedIn==="Yes"&&n.form.controls.commsPreferences.controls[i].value.questions),d(5),v("enabled",n.commsUpdateEnabled)("button",n.getUpdateButton(i))}}function dK(e,t){if(e&1&&(p(0,"div")(1,"div",17)(2,"div",18),V(3,ZY,8,3,"div",19)(4,cK,15,6,"ng-template",null,0,ze),u()()()),e&2){let i=de(5),n=g().index,o=g(2);d(3),v("ngIf",o.currentField!==n)("ngIfElse",i)}}function uK(e,t){if(e&1&&(p(0,"div",14)(1,"div",15),V(2,dK,6,2,"div",16),u()()),e&2){let i=t.index,n=g(2);d(),v("formGroupName",i),d(),v("ngIf",n.form.controls.commsPreferences.controls[i].value.preferenceName.includes("magazine"))}}function pK(e,t){if(e&1&&(p(0,"div",58)(1,"div",6)(2,"div",51)(3,"p",8)(4,"strong"),C(5,"AAT magazines"),u()()(),p(6,"div",10),V(7,uK,3,2,"div",11),u()()()),e&2){let i=g();d(6),v("formGroup",i.form),d(),v("ngForOf",i.preferenceForm==null?null:i.preferenceForm.controls)}}var hK=["FabAC"],gK=["StateSelector"];function mK(e,t){if(e&1){let i=P();p(0,"li",9),T("mousedown",function(){let o=k(i).$index;g();let r=de(4);return E(r.selectSuggestion(o))}),x(1,"span",10),N(2,"textHighlight"),u()}if(e&2){let i=t.$implicit,n=t.$index;g();let o=de(4);d(),Pe("selected",o.currentIndex==n),v("innerHTML",He(2,3,i.label,o.search.term),ue)}}function fK(e,t){if(e&1&&x(0,"fab-button",15),e&2){let i=g(2);v("button",i.manualEntry)}}function vK(e,t){if(e&1&&(p(0,"div",8)(1,"div",11),x(2,"fab-input-text-2",12),N(3,"formControl"),p(4,"div",13),x(5,"fab-button",14),u()(),y(6,fK,1,1,"fab-button",15),u()),e&2){let i=g();d(2),v("content",i.postcodeInterface)("formControl",G(3,5,i.formgroup.controls.postcode)),d(3),v("button",i.findAddress)("enabled",i.formgroup.controls.postcode.valid),d(),w(i.isManualEntryLink?6:-1)}}function CK(e,t){if(e&1){let i=P();p(0,"div")(1,"fab-dropdown-simple",16),N(2,"formControl"),T("outputReturnSelectedOptions",function(o){k(i);let r=g();return E(r.getSelectedOptions(o))}),u()()}if(e&2){let i=g();d(),v("content",i.dropdownCategoriesContent)("formControl",G(2,2,i.formgroup.controls.dropDownAddressControl))}}function bK(e,t){if(e&1&&(p(0,"div",4),x(1,"fab-input-text-2",20),N(2,"formControl"),u()),e&2){let i=g(2);d(),v("content",i.county)("formControl",G(2,2,i.formgroup.controls.county))}}function _K(e,t){if(e&1&&(x(0,"fab-input-text-2",21),N(1,"formControl")),e&2){let i=g(3);v("content",i.state)("formControl",G(1,2,i.formgroup.controls.state))}}function yK(e,t){if(e&1){let i=P();p(0,"li",9),T("mousedown",function(){let o=k(i).$index;g();let r=de(1);return E(r.selectSuggestion(o))}),x(1,"span",10),N(2,"textHighlight"),u()}if(e&2){let i=t.$implicit,n=t.$index;g();let o=de(1);d(),Pe("selected",o.currentIndex==n),v("innerHTML",He(2,3,i.label,o.search.term),ue)}}function wK(e,t){if(e&1&&(p(0,"fab-autocomplete-validation",22,1),N(2,"formControl"),p(3,"header",6),C(4,"YOUR RESULTS"),u(),p(5,"ul"),X(6,yK,3,6,"li",7,se),u()()),e&2){let i=de(1),n=g(3);v("errorMessage",n.stateErrorMessage)("formControl",G(2,4,n.formgroup.controls.state))("service",n.typeaheadStateService)("content",n.autocompleteStateValidationInterface),d(6),ee(i.results)}}function xK(e,t){if(e&1&&(p(0,"div",4),y(1,_K,2,4,"fab-input-text-2",21),y(2,wK,8,6,"fab-autocomplete-validation",22),u()),e&2){let i=g(2);d(),w(i.isUS?-1:1),d(),w(i.isUS?2:-1)}}function SK(e,t){e&1&&(p(0,"p",24)(1,"strong"),C(2,"The postcode field is limited to 20 characters. Please enter only your postcode; do not include your full address. Add the rest of your address in the fields above."),u()())}function kK(e,t){if(e&1&&(p(0,"div",4),x(1,"fab-input-text-2",23),N(2,"formControl"),y(3,SK,3,0,"p",24),u()),e&2){let i=g(2);d(),v("content",i.postcodeInterface)("formControl",G(2,3,i.formgroup.controls.postcode)),d(2),w(!(i.formgroup.controls.postcode==null||i.formgroup.controls.postcode.errors==null)&&i.formgroup.controls.postcode.errors.maxlength?3:-1)}}function EK(e,t){if(e&1&&(p(0,"div",4),x(1,"fab-button",15),u()),e&2){let i=g(2);d(),v("button",i.lookupEntry)}}function MK(e,t){if(e&1){let i=P();p(0,"div",3)(1,"div",4),x(2,"fab-input-text-2",17),N(3,"formControl"),u(),p(4,"div",4),x(5,"fab-input-text-2",18),N(6,"formControl"),u(),p(7,"div",4)(8,"fab-input-text-2",19),N(9,"formControl"),T("keydown",function(o){k(i);let r=g();return E(r.londonCheck(o))}),u()(),y(10,bK,3,4,"div",4),y(11,xK,3,2,"div",4),y(12,kK,4,5,"div",4),y(13,EK,2,1,"div",4),u()}if(e&2){let i=g();d(2),v("content",i.address1)("formControl",G(3,10,i.formgroup.controls.address1)),d(3),v("content",i.address2)("formControl",G(6,12,i.formgroup.controls.address2)),d(3),v("content",i.town)("formControl",G(9,14,i.formgroup.controls.town)),d(2),w(!i.isLondon&&!i.isUS?10:-1),d(),w(i.isOutsideUk?11:-1),d(),w(i.isManualEntry||i.isOutsideUk?12:-1),d(),w(i.isManualEntry&&!i.isOutsideUk?13:-1)}}var TK=["suggestions"],IK=e=>({"validation-error":e}),DK=(e,t)=>
744({"icon icon-error ":e,"icon icon-success":t}),PK=()=>({standalone:!0});function RK(e,t){if(e&1&&(p(0,"label",3)(1,"strong"),C(2),u()()),e&2){let i=g();d(2),R(i.content.label)}}function FK(e,t){if(e&1&&x(0,"i",9),e&2){let i=g();v("ngClass",Re(1,DK,i.formGroup.get("daytimeNumber").invalid,i.formGroup.get("daytimeNumber").valid))}}function OK(e,t){if(e&1){let i=P();p(0,"button",15),T("click",function(){let o=k(i).$implicit,r=g(3);return E(r.onItemSelected(o))})("mouseenter",function(){let o=k(i).$index,r=g(3);return E(r.mouseEnter(o))})("mouseleave",function(){k(i);let o=g(3);return E(o.mouseLeave())}),x(1,"span"),C(2),u()}if(e&2){let i=t.$implicit,n=t.$index,o=g(3);Pe("active",n===o.index),d(),pe(vt("fi fi-",i.internationalDiallingISOCode.toLowerCase())),d(),Yt("",i.name," (",i.internationalDiallingCode,") ")}}function AK(e,t){if(e&1&&(p(0,"div",13,0),X(2,OK,3,7,"button",14,se),u()),e&2){let i=g(2);d(2),ee(i.filteredItems)}}function LK(e,t){if(e&1){let i=P();p(0,"div",10)(1,"div",11)(2,"input",12),Jt("ngModelChange",function(o){k(i);let r=g();return Qt(r.searchText,o)||(r.searchText=o),E(o)}),T("keyup",function(){k(i);let o=g();return E(o.filterItems())})("keydown",function(o){k(i);let r=g();return E(r.onKeyDown(o))})("focus",function(){k(i);let o=g();return E(o.onInputFocus())}),u(),y(3,AK,4,0,"div",13),u()()}if(e&2){let i=g();v("@onOff",void 0),d(2),Kt("ngModel",i.searchText),v("ngModelOptions",On(4,PK)),d(),w(i.filteredItems.length>0&&i.showSuggestions?3:-1)}}function NK(e,t){e&1&&(p(0,"p",16)(1,"strong"),C(2,"Please enter your phone number"),u()())}function zK(e,t){e&1&&(p(0,"p",16)(1,"strong"),C(2,"Please enter a valid phone number"),u()())}function BK(e,t){if(e&1&&(p(0,"div"),y(1,NK,3,0,"p",16),y(2,zK,3,0,"p",16),u()),e&2){let i=g();v("@onOff",void 0),d(),w(i.formGroup.get("daytimeNumber").errors.required?1:-1),d(),w(i.formGroup.get("daytimeNumber").errors.pattern?2:-1)}}var As=e=>({hidden:e});function VK(e,t){if(e&1){let i=P();p(0,"div")(1,"div",4)(2,"p")(3,"strong"),C(4,"Email"),u()(),p(5,"span",12),C(6),u(),p(7,"span",13),T("click",function(){k(i);let o=g();return E(o.editField("email"))}),C(8,"Edit"),u()(),p(9,"div",14)(10,"span"),C(11,"We'll send all emails to this address and you'll use it to log in. Don't forget to confirm which emails you'd like to receive from us by updating your email preferences below."),u()()()}if(e&2){let i=g();d(6),A(" ",i.contact.email)}}function HK(e,t){if(e&1){let i=P();p(0,"div",11)(1,"div")(2,"a",19),T("click",function(){k(i);let o=g(2);return E(o.cancelEditing("email"))}),C(3,"Cancel"),u()(),x(4,"fab-button",20),u()}if(e&2){let i=g(2);d(4),v("button",i.emailButton)("enabled",i.form.get("email").valid&&i.form.get("emailConfirmation").valid)}}function GK(e,t){if(e&1&&(p(0,"div",3)(1,"div")(2,"p",7)(3,"strong"),C(4,"Update your email address"),u()(),p(5,"p",8),C(6,"Your current email address is:"),u(),p(7,"p"),C(8),u(),p(9,"p",9),C(10," Please ensure it's valid as we'll send all emails to this address. Don't forget to confirm which emails you'd like to receive from us by updating your email preferences below. "),u(),p(11,"p",9),C(12,` Once you've saved your updated email address by clicking the "Confirm my details" button at the bottom of the page, a verification email will be sent to this email address. If it doesn't arrive within a few minutes, check your spam folder. `),u(),p(13,"div",15),x(14,"fab-input-text-2",16),N(15,"formControl"),u(),p(16,"div",17),x(17,"fab-input-text-2",18),N(18,"formControl"),u(),y(19,HK,5,2,"div",11),u()()),e&2){let i=g();d(8),R(i.contact.email),d(6),v("content",i.emailInterface)("formControl",G(15,8,i.form.controls.email))("required",!0),d(3),v("content",i.confirmEmailInterface)("formControl",G(18,10,i.form.controls.emailConfirmation))("required",!0),d(2),w(i.isAmendingDetails?-1:19)}}function UK(e,t){if(e&1&&(p(0,"span"),C(1),u()),e&2){let i=g(3);d(),A("+",i.contact.internationalDiallingCode.internationalDiallingCode)}}function jK(e,t){if(e&1&&(p(0,"div"),y(1,UK,2,1,"span"),C(2),u()),e&2){let i=g(2);
744d(),w(i.contact.internationalDiallingCode!=null&&i.contact.internationalDiallingCode.internationalDiallingCode?1:-1),d(),A(" ",i.contact.telephone.daytimeNumber," ")}}function WK(e,t){if(e&1){let i=P();p(0,"div")(1,"div",4)(2,"p",7)(3,"strong"),C(4,"Phone number"),u()(),p(5,"div"),y(6,jK,3,2,"div"),u(),p(7,"span",13),T("click",function(){k(i);let o=g();return E(o.editField("telephone"))}),C(8,"Edit"),u()(),p(9,"div",14)(10,"span"),C(11,"We may use your phone number to send you text messages to tell you about important post, such as certificates. We may also call you about any queries you send us and/or to check you're happy with our services. Don't forget to confirm if you'd like to receive optional phone calls or text messages from us by updating your communication preferences."),u()()()}if(e&2){let i=g();d(6),w(i.contact.telephone&&i.contact.telephone.daytimeNumber?6:-1)}}function $K(e,t){if(e&1&&(p(0,"div")(1,"p",8),C(2,"Your current phone number is:"),u(),p(3,"p"),C(4),u()()),e&2){let i=g(2);d(4),A(" +",(i.contact.internationalDiallingCode==null?null:i.contact.internationalDiallingCode.internationalDiallingCode)+(i.contact.telephone==null?null:i.contact.telephone.daytimeNumber)," ")}}function qK(e,t){e&1&&(p(0,"p",23),C(1," Please confirm your phone number and dial code are correct "),u())}function YK(e,t){if(e&1){let i=P();p(0,"div",11)(1,"div")(2,"a",19),T("click",function(){k(i);let o=g(2);return E(o.cancelEditing("telephone"))}),C(3,"Cancel"),u()(),x(4,"fab-button",20),u()}if(e&2){let i=g(2);d(4),v("button",i.telephoneButton)("enabled",i.form.get("telephone").valid)}}function KK(e,t){if(e&1&&(p(0,"div",3)(1,"div")(2,"p",7)(3,"strong"),C(4,"Update your phone number"),u()(),y(5,$K,5,1,"div"),p(6,"p",9),C(7," This will be used if we need to call you with important information about your account. Don't forget to confirm if you'd like to receive optional phone calls or text messages from us by updating your communication preferences. "),u(),p(8,"div",21),x(9,"fab-international-phone-input",22),N(10,"formGroup"),u(),y(11,qK,2,0,"p",23),y(12,YK,5,2,"div",11),u()()),e&2){let i=g();d(5),w(i.contact.telephone&&(i.contact.telephone!=null&&i.contact.telephone.daytimeNumber)&&(i.contact.internationalDiallingCode!=null&&i.contact.internationalDiallingCode.internationalDiallingCode)?5:-1),d(4),v("formGroup",G(10,5,i.form.get("telephone")))("content",i.itiContent),d(2),w(i.confirmNumber?11:-1),d(),w(i.isAmendingDetails?-1:12)}}function QK(e,t){if(e&1){let i=P();p(0,"div",4)(1,"p")(2,"strong"),C(3,"Address"),u()(),p(4,"div")(5,"div"),C(6),u(),p(7,"div"),C(8),u(),p(9,"div"),C(10),u(),p(11,"div"),C(12),u(),p(13,"div"),C(14),u(),p(15,"div"),C(16),N(17,"countryName"),u()(),p(18,"span",13),T("click",function(){k(i);let o=g();return E(o.editField("address"))}),C(19,"Edit"),u()()}if(e&2){let i=g();d(6),A(" ",i.contactAddress.A0_streetAddressLine1," "),d(2),A(" ",i.contactAddress.A1_streetAddressLine2," "),d(2),R(i.contactAddress.A2_addressLocality),d(2),R(i.contactAddress.A3_addressRegion),d(2),R(i.contactAddress.A4_postalCode),d(2),A(" ",G(17,6,i.contactAddress.A5_addressCountry)," ")}}function JK(e,t){if(e&1){let i=P();p(0,"div",11)(1,"div")(2,"a",19),T("click",function(){k(i);let o=g();return E(o.cancelEditing("address"))}),C(3,"Cancel"),u()(),x(4,"fab-button",20),u()}if(e&2){let i=g();d(4),v("button",i.addressButton)("enabled",i.form.get("address")&&i.form.get("address").valid)}}var Ji=e=>({"selection-content":e}),Jn=e=>({"icon icon-error":e});function ZK(e,t){e&1&&(p(0,"span",15),x(1,"i",16),C(2," You've opted in"),u())}function XK(e,t){e&1&&(p(0,"span",15),x(1,"i",17),C(2," You've opted out"),u())}function eQ(e,t){if(e&1){let i=P();p(0,"div")(1,"div",11)(2,"p")(3,"strong"),C(4,"Phone calls"),u()(),V(5,ZK,3,0,"span",12)(6,XK,3,0,"ng-template",null,4,ze),p(8,"span",13),T("click",function(){k(i);let o=g();return E(o.editField("phoneCalls"))}),C(9," Edit "),u()(),p(10,"div",14)(11,"span"),C(12,"We'll call you about any queries you send us and may also call to check you're happy with our services."),u()()()}if(e&2){let i=de(7),n=g();
744d(5),v("ngIf",n.contact.contactPreference.phoneCalls==="Allow")("ngIfElse",i)}}function tQ(e,t){if(e&1&&(p(0,"div"),x(1,"fab-radio",27),N(2,"formControl"),u()),e&2){let i=t.$implicit,n=g(2);d(),v("content",i)("checkedVal",n.form.get("phoneCalls").value===i.value)("formControl",G(2,4,n.form.controls.phoneCalls))("required",!0)}}function iQ(e,t){e&1&&(p(0,"div",28),C(1," Please select an option "),u())}function nQ(e,t){if(e&1){let i=P();p(0,"div",29)(1,"div")(2,"a",30),T("click",function(){k(i);let o=g(2);return E(o.cancelEditing("phoneCalls"))}),C(3,"Cancel"),u()(),x(4,"fab-button",31),u()}if(e&2){let i=g(2);d(4),v("button",i.phoneCallsButton)("enabled",i.form.get("phoneCalls").valid)}}function oQ(e,t){if(e&1&&(p(0,"div",18)(1,"div")(2,"p",19)(3,"strong"),C(4,"Phone calls"),u()(),p(5,"div",20)(6,"span"),C(7,"Can we call you about any queries you send us and call to check you're happy with our services?"),u()(),p(8,"div")(9,"div",21)(10,"div",21),V(11,tQ,3,6,"div",22),u(),p(12,"div",23),x(13,"i",24),u()(),V(14,iQ,2,0,"div",25)(15,nQ,5,2,"div",26),u()()()),e&2){let i=g();d(9),v("ngClass",z(6,Ji,!i.form.value.phoneCalls&&i.invalidSections.includes("contactPreferencesForm"))),d(),v("ngClass",z(8,Mt,!i.form.value.phoneCalls&&i.invalidSections.includes("contactPreferencesForm"))),d(),v("ngForOf",i.phoneContactInterface),d(2),v("ngClass",z(10,Jn,!i.form.value.phoneCalls&&i.invalidSections.includes("contactPreferencesForm"))),d(),v("ngIf",!i.form.value.phoneCalls&&i.invalidSections.includes("contactPreferencesForm")),d(),v("ngIf",!i.isAmendingDetails)}}function rQ(e,t){e&1&&(p(0,"span",15),x(1,"i",16),C(2," You've opted in"),u())}function aQ(e,t){e&1&&(p(0,"span",15),x(1,"i",17),C(2," You've opted out"),u())}function sQ(e,t){if(e&1){let i=P();p(0,"div")(1,"div",11)(2,"p")(3,"strong"),C(4,"Text messages"),u()(),V(5,rQ,3,0,"span",12)(6,aQ,3,0,"ng-template",null,4,ze),p(8,"span",13),T("click",function(){k(i);let o=g();return E(o.editField("textMessage"))}),C(9," Edit "),u()(),p(10,"div",14)(11,"span"),C(12,"We'll send you text messages to tell you about important post, such as certificates."),u()()()}if(e&2){let i=de(7),n=g();d(5),v("ngIf",n.contact.contactPreference.textMessage==="Allow")("ngIfElse",i)}}function lQ(e,t){if(e&1&&(p(0,"div"),x(1,"fab-radio",27),N(2,"formControl"),u()),e&2){let i=t.$implicit,n=g(2);d(),v("content",i)("checkedVal",n.form.get("textMessage").value===i.value)("formControl",G(2,4,n.form.controls.textMessage))("required",!0)}}function cQ(e,t){e&1&&(p(0,"div",28),C(1," Please select an option "),u())}function dQ(e,t){if(e&1){let i=P();p(0,"div",29)(1,"div")(2,"a",30),T("click",function(){k(i);let o=g(2);return E(o.cancelEditing("textMessage"))}),C(3,"Cancel"),u()(),x(4,"fab-button",31),u()}if(e&2){let i=g(2);d(4),v("button",i.textButton)("enabled",i.form.get("textMessage").valid)}}function uQ(e,t){if(e&1&&(p(0,"div",18)(1,"div")(2,"p",19)(3,"strong"),C(4,"Text messages"),u()(),p(5,"div",20)(6,"span"),C(7,"Can we send you text messages to tell you about important post, such as certificates?"),u()(),p(8,"div")(9,"div",21)(10,"div",21),V(11,lQ,3,6,"div",22),u(),p(12,"div",23),x(13,"i",24),u()(),V(14,cQ,2,0,"div",25)(15,dQ,5,2,"div",26),u()()()),e&2){let i=g();d(9),v("ngClass",z(6,Ji,!i.form.value.textMessage&&i.invalidSections.includes("contactPreferencesForm"))),d(),v("ngClass",z(8,Mt,!i.form.value.textMessage&&i.invalidSections.includes("contactPreferencesForm"))),d(),v("ngForOf",i.textContactInterface),d(2),v("ngClass",z(10,Jn,!i.form.value.textMessage&&i.invalidSections.includes("contactPreferencesForm"))),d(),v("ngIf",!i.form.value.textMessage&&i.invalidSections.includes("contactPreferencesForm")),d(),v("ngIf",!i.isAmendingDetails)}}function pQ(e,t){e&1&&(p(0,"span",15),x(1,"i",16),C(2," You've opted in"),u())}function hQ(e,t){e&1&&(p(0,"span",15),x(1,"i",17),C(2," You've opted out"),u())}function gQ(e,t){if(e&1){let i=P();p(0,"div")(1,"div",11)(2,"p")(3,"strong"),C(4,"Marketing information by post"),u()(),V(5,pQ,3,0,"span",12)(6,hQ,3,0,"ng-template",null,4,ze),p(8,"span",13),T("click",function(){k(i);let o=g();return E(o.editField("mailing"))}),C(9," Edit "),u()(),p(10,"div",14)(11,"span"),C(12,"We'll send you occasional marketing information by post about events, resources or news we think you'll find useful to tell you about important updates. "),u()()()}if(e&2){let i=de(7),n=g();d(5),v("ngIf",n.contact.contactPreference.mailing==="Allow")("ngIfElse",i)}}function mQ(e,t){if(e&1&&(p(0,"div"),x(1,"fab-radio",27),N(2,"formControl"),u()),e&2){let i=t.$implicit,n=g(2);d(),v("content",i)("checkedVal",n.form.get("mailing").value===i.value)("formControl",G(2,4,n.form.controls.mailing))("required",!0)}}function fQ(e,t){e&1&&(p(0,"div",28),C(1," Please select an option "),u())}function vQ(e,t){if(e&1){let i=P();p(0,"div",29)(1,"div")(2,"a",30),T("click",function(){k(i);let o=g(2);return E(o.cancelEditing("mailing"))}),C(3,"Cancel"),u()(),x(4,"fab-button",31),u()}if(e&2){let i=g(2);d(4),v("button",i.mailingButton)("enabled",i.form.get("mailing").valid)}}function CQ(e,t){if(e&1&&(p(0,"div",18)(1,"div")(2,"p",19)(3,"strong"),C(4,"Marketing information by post"),u()(),p(5,"div",20)(6,"span"),C(7,"Can we send you occasional marketing information by post about events, resources or news we think you'll find useful to tell you about important updates? "),u()(),p(8,"div")(9,"div",21)(10,"div",21),V(11,mQ,3,6,"div",22),u(),p(12,"div",23),x(13,"i",24),u()(),V(14,fQ,2,0,"div",25)(15,vQ,5,2,"div",26),u()()()),e&2){let i=g();d(9),v("ngClass",z(6,Ji,!i.form.value.mailing&&i.invalidSections.includes("contactPreferencesForm"))),d(),v("ngClass",z(8,Mt,!i.form.value.mailing&&i.invalidSections.includes("contactPreferencesForm"))),d(),v("ngForOf",i.mailingContactInterface),d(2),v("ngClass",z(10,Jn,!i.form.value.mailing&&i.invalidSections.includes("contactPreferencesForm"))),d(),v("ngIf",!i.form.value.mailing&&i.invalidSections.includes("contactPreferencesForm")),d(),v("ngIf",!i.isAmendingDetails)}}function bQ(e,t){e&1&&(p(0,"span",15),x(1,"i",16),C(2," You've opted in"),u())}function _Q(e,t){e&1&&(p(0,"span",15),x(1,"i",17),C(2," You've opted out"),u())}function yQ(e,t){if(e&1){let i=P();p(0,"div")(1,"div",11)(2,"p")(3,"strong"),C(4,"Third party information by post"),u()(),V(5,bQ,3,0,"span",12)(6,_Q,3,0,"ng-template",null,4,ze),p(8,"span",13),T("click",function(){k(i);let o=g();return E(o.editField("shareWith3rdParty"))}),C(9," Edit "),u()(),p(10,"div",14)(11,"span"),C(12,"Your name and postal address will be shared with trusted third parties, so they can provide you with opportunities that may interest you."),u()()()}if(e&2){let i=de(7),n=g();d(5),v("ngIf",!n.contact.shareWith3rdParty)("ngIfElse",i)}}function wQ(e,t){if(e&1&&(p(0,"div"),x(1,"fab-radio",27),N(2,"formControl"),u()),e&2){let i=t.$implicit,n=g(2);d(),v("content",i)("checkedVal",n.form.get("shareWith3rdParty").value===i.value)("formControl",G(2,4,n.form.controls.shareWith3rdParty))("required",!0)}}function xQ(e,t){e&1&&(p(0,"div",28),C(1," Please select an option "),u())}function SQ(e,t){if(e&1){let i=P();p(0,"div",29)(1,"div")(2,"a",30),T("click",function(){k(i);let o=g(2);return E(o.cancelEditing("shareWith3rdParty"))}),C(3,"Cancel"),u()(),x(4,"fab-button",31),u()}if(e&2){let i=g(2);d(4),v("button",i.shareButton)("enabled",i.form.get("shareWith3rdParty").valid)}}function kQ(e,t){if(e&1&&(p(0,"div",18)(1,"div")(2,"p",19)(3,"strong"),C(4,"Third party information by post"),u()(),p(5,"div",20)(6,"span"),C(7,"Can we share your name and postal address with trusted third parties, so they can provide you with opportunities that may interest you?"),u()(),p(8,"div")(9,"div",21),V(10,wQ,3,6,"div",22),u(),p(11,"div",23),x(12,"i",24),u(),V(13,xQ,2,0,"div",25)(14,SQ,5,2,"div",26),u()()()),e&2){let i=g();d(9),v("ngClass",z(5,Mt,!i.form.value.shareWith3rdParty&&i.invalidSections.includes("contactPreferencesForm"))),d(),v("ngForOf",i.thirdPartyContactInterface),d(2),v("ngClass",z(7,Jn,!i.form.value.shareWith3rdParty&&i.invalidSections.includes("contactPreferencesForm"))),d(),v("ngIf",!i.form.value.shareWith3rdParty&&i.invalidSections.includes("contactPreferencesForm")),d(),v("ngIf",!i.isAmendingDetails)}}function EQ(e,t){if(e&1&&(p(0,"div",17),x(1,"i",18),p(2,"span"),C(3),u()()),e&2){let i=t.$implicit;d(3),A(" ",i.service," ")}}function MQ(e,t){if(e&1&&(p(0,"div",16)(1,"p"),C(2),u(),p(3,"div"),X(4,EQ,4,1,"div",17,se),u()()),e&2){let i=g().$implicit;d(2),Yt("",i.name!=="Other"?"Tier ":"","",i.name),d(2),ee(i.services)}}function TQ(e,t){if(e&1&&(p(0,"div"),y(1,MQ,6,2,"div",16),u()),e&2){let i=t.$implicit;d(),w(i.services.length>0?1:-1)}}function IQ(e,t){if(e&1){let i=P();p(0,"div",21)(1,"p")(2,"strong"),C(3,"Registered business name"),u()(),p(4,"span",24),C(5),u(),p(6,"span",26),T("click",function(){k(i);let o=g().$index,r=g();return E(r.editField(o,"organisationName"))}
744),C(7," Edit"),u()()}if(e&2){let i=g().$index,n=g();d(5),A(" ",n.form.controls.employments.controls[i].controls.organisationName.value)}}function DQ(e,t){if(e&1){let i=P();p(0,"div",22)(1,"div")(2,"p",29)(3,"strong"),C(4,"Update your business name"),u()(),p(5,"p",30),C(6," Your current registered business name is "),p(7,"strong"),C(8),u()(),p(9,"p"),C(10,"Please enter your updated business name"),u(),p(11,"p",31),C(12,"This must be the registered business name."),u(),p(13,"div",27)(14,"div",27),x(15,"fab-input-text-2",37),u()(),p(16,"div",32)(17,"div")(18,"a",33),T("click",function(){k(i);let o=g().$index,r=g();return E(r.cancelEditing(o,"organisationName"))}),C(19,"Cancel"),u()(),x(20,"fab-button",34),u()()()}if(e&2){let i=g().$index,n=g();d(8),R(n.formattedRecords[i].organisationName),d(5),v("ngClass",z(7,Ji,!n.employmentForm.value.organisationName&&n.invalidSections.includes("licenceDetailsForm"))),d(),v("ngClass",z(9,Mt,!n.employmentForm.value.organisationName&&n.invalidSections.includes("licenceDetailsForm"))),d(),v("content",n.organisationNameInterface)("formControl",n.form.controls.employments.controls[i].controls.organisationName),d(5),v("button",n.getUpdateButton(i,"organisationName"))("enabled",n.form.controls.employments.controls[i].controls.organisationName.value&&n.form.controls.employments.controls[i].controls.organisationName.valid)}}function PQ(e,t){if(e&1&&(p(0,"div"),C(1),u()),e&2){let i=g().$index,n=g();d(),A(" ",n.form.controls.employments.controls[i].controls.address.value.county," ")}}function RQ(e,t){if(e&1&&(p(0,"div"),C(1),N(2,"countryName"),u()),e&2){let i=g().$index,n=g();d(),A(" ",G(2,1,n.form.controls.employments.controls[i].controls.address.value.country.id)," ")}}function FQ(e,t){if(e&1&&(p(0,"div"),C(1),N(2,"countryName"),u()),e&2){let i=g().$index,n=g();d(),A(" ",G(2,1,n.formattedRecords[i].address.addressCountry)," ")}}function OQ(e,t){if(e&1){let i=P();p(0,"div",23)(1,"p")(2,"strong"),C(3,"Business email address"),u()(),p(4,"span",24),C(5),u(),p(6,"span",26),T("click",function(){k(i);let o=g().$index,r=g();return E(r.editField(o,"businessEmail"))}),C(7,"Edit"),u()()}if(e&2){let i=g().$index,n=g();d(5),A(" ",n.form.controls.employments.controls[i].controls.businessEmail.value)}}function AQ(e,t){if(e&1){let i=P();p(0,"div",22)(1,"div")(2,"p",29)(3,"strong"),C(4,"Update your business email address"),u()(),p(5,"p",30),C(6," Your current business email address is "),p(7,"strong"),C(8),u()(),p(9,"div",27)(10,"div",27),x(11,"fab-input-text-2",38),u()(),p(12,"div",32)(13,"div")(14,"a",33),T("click",function(){k(i);let o=g().$index,r=g();return E(r.cancelEditing(o,"businessEmail"))}),C(15,"Cancel"),u()(),x(16,"fab-button",34),u()()()}if(e&2){let i=g().$index,n=g();d(8),R(n.formattedRecords[i].businessEmail),d(),v("ngClass",z(8,Ji,!n.employmentForm.value.businessEmail&&n.invalidSections.includes("licenceDetailsForm"))),d(),v("ngClass",z(10,Mt,!n.employmentForm.value.businessEmail&&n.invalidSections.includes("licenceDetailsForm"))),d(),v("content",n.emailInterface)("formControl",n.form.controls.employments.controls[i].controls.businessEmail)("required",!0),d(5),v("button",n.getUpdateButton(i,"businessEmail"))("enabled",n.form.controls.employments.controls[i].controls.businessEmail.value!==""&&n.form.controls.employments.controls[i].controls.businessEmail.valid)}}function LQ(e,t){if(e&1){let i=P();p(0,"div",23)(1,"p")(2,"strong"),C(3,"Business website"),u()(),p(4,"span",24),C(5),u(),p(6,"span",26),T("click",function(){k(i);let o=g().$index,r=g();return E(r.editField(o,"website"))}),C(7,"Edit"),u()()}if(e&2){let i=g().$index,n=g();d(5),A(" ",n.form.controls.employments.controls[i].controls.website.value===""?"Not provided":n.form.controls.employments.controls[i].controls.website.value)}}function NQ(e,t){if(e&1){let i=P();p(0,"div",22)(1,"div")(2,"p",29)(3,"strong"),C(4,"Update your business website"),u()(),p(5,"p",30),C(6," Your current business website is "),p(7,"strong"),C(8),u()(),p(9,"div",27)(10,"div",27),x(11,"fab-input-text-2",39),p(12,"div")(13,"p",31),C(14," Use http or https in your website address like "),p(15,"strong"),C(16,"https://www.example.com"),u(),C(17," rather than "),p(18,"strong"),C(19,"www.example.com"),u()()()()(),p(20,"div",32)(21,"div")(22,"a",33),T("click",function(){k(i);let o=g().$index,r=g();return E(r.cancelEditing(o,"website"))}),C(23,"Cancel"),u()(),x(24,"fab-button",34),u()()()}if(e&2){let i=g().$index,n=g();d(8),R(n.formattedRecords[i].website),d(),v("ngClass",z(7,Ji,!n.employmentForm.value.website&&n.invalidSections.includes("licenceDetailsForm"))),d(),v("ngClass",z(9,Mt,!n.employmentForm.value.website&&n.invalidSections.includes("licenceDetailsForm"))),d(),v("content",n.websiteInterface)("formControl",n.form.controls.employments.controls[i].controls.website),d(13),v("button",n.getUpd
744ateButton(i,"website"))("enabled",n.form.controls.employments.controls[i].controls.website.value&&n.form.controls.employments.controls[i].controls.website.valid||n.form.controls.employments.controls[i].controls.website.value==="")}}function zQ(e,t){if(e&1){let i=P();p(0,"div",23)(1,"p")(2,"strong"),C(3,"Main employment"),u()(),p(4,"span",24),C(5),u(),p(6,"span",26),T("click",function(){k(i);let o=g().$index,r=g();return E(r.editField(o,"mainEmployment"))}),C(7,"Edit"),u()()}if(e&2){let i=g().$index,n=g();d(5),A(" ",n.form.controls.employments.controls[i].controls.mainEmployment.value===!0?"This is your main employment":"This is not your main employment")}}function BQ(e,t){if(e&1){let i=P();p(0,"div",22)(1,"div")(2,"p",29)(3,"strong"),C(4,"Is this business your main employment?"),u()(),p(5,"div",27)(6,"div",27),x(7,"fab-radio",40)(8,"fab-radio",40),u()(),p(9,"div",32)(10,"div")(11,"a",33),T("click",function(){k(i);let o=g().$index,r=g();return E(r.cancelEditing(o,"mainEmployment"))}),C(12,"Cancel"),u()(),x(13,"fab-button",34),u()()()}if(e&2){let i=g().$index,n=g();d(5),v("ngClass",z(10,Ji,!n.employmentForm.value.mainEmployment&&n.invalidSections.includes("licenceDetailsForm"))),d(),v("ngClass",z(12,Mt,!n.employmentForm.value.mainEmployment&&n.invalidSections.includes("licenceDetailsForm"))),d(),v("content",n.mainEmploymentRadioInterface[0])("checkedVal",n.form.controls.employments.controls[i].value.mainEmployment===!0)("formControl",n.form.controls.employments.controls[i].controls.mainEmployment),d(),v("content",n.mainEmploymentRadioInterface[1])("checkedVal",n.form.controls.employments.controls[i].value.mainEmployment===!1)("formControl",n.form.controls.employments.controls[i].controls.mainEmployment),d(5),v("button",n.getUpdateButton(i,"mainEmployment"))("enabled",n.form.controls.employments.controls[i].controls.mainEmployment.value!==null&&n.form.controls.employments.controls[i].controls.mainEmployment.valid)}}function VQ(e,t){if(e&1&&(p(0,"div"),x(1,"fab-notification",41),u()),e&2){let i=g(2);d(),v("isNotificationOpen",i.notificationInterface.isOpened)("notification",i.notificationInterface)}}function HQ(e,t){if(e&1){let i=P();p(0,"div",15)(1,"fab-accordion",19)(2,"div",20)(3,"div",11)(4,"div",3),y(5,IQ,8,1,"div",21)(6,DQ,21,11,"div",22),p(7,"div",23)(8,"p")(9,"strong"),C(10,"Type of business"),u()(),p(11,"span",24),C(12),u(),x(13,"span",24),u(),p(14,"div",25)(15,"p")(16,"strong"),C(17,"Business address"),u()(),p(18,"div")(19,"div"),C(20),u(),p(21,"div"),C(22),u(),p(23,"div"),C(24),u(),p(25,"div"),C(26),u(),y(27,PQ,2,1,"div"),p(28,"div"),C(29),N(30,"uppercase"),u(),y(31,RQ,3,3,"div"),u(),p(32,"span",26),T("click",function(){let o=k(i).$index,r=g();return E(r.editField(o,"address"))}),C(33,"Edit"),u()(),p(34,"div",27)(35,"div",28)(36,"div")(37,"p",29)(38,"strong"),C(39,"Update your business address"),u()(),p(40,"p",30),C(41,"Your current business address is:"),u(),p(42,"div")(43,"div"),C(44),u(),p(45,"div"),C(46),u(),p(47,"div"),C(48),u(),p(49,"div"),C(50),u(),p(51,"div"),C(52),u(),p(53,"div"),C(54),N(55,"uppercase"),u(),y(56,FQ,3,3,"div"),u(),p(57,"p",30),C(58,"Your updated business address is:"),u(),p(59,"p",31),C(60," This must be the registered business address. You can only update your business address if your business type, shares and parties haven't changed. If any of these have changed, you'll need to complete the "),p(61,"a",13),C(62,"AAT licensed member business details form (PDF)"),u(),C(63,". "),u(),p(64,"div"),x(65,"fab-postcode-lookup"),u(),p(66,"div",32)(67,"div")(68,"a",33),T("click",function(){let o=k(i).$index,r=g();return E(r.cancelEditing(o,"address"))}),C(69,"Cancel"),u()(),x(70,"fab-button",34),u()()()(),y(71,OQ,8,1,"div",23)(72,AQ,17,12,"div",22),y(73,LQ,8,1,"div",23)(74,NQ,25,11,"div",22),y(75,zQ,8,1,"div",23)(76,BQ,14,14,"div",22),u(),p(77,"div",32),x(78,"div"),p(79,"div",35),x(80,"fab-button",34),u()(),p(81,"div",36),y(82,VQ,2,2,"div"),u()()()()()}if(e&2){let i=t.$index,n=g();d(),v("title",n.formattedRecords[i].organisationName)("iconArrowLeft",!1),d(),v("formGroupName",i),d(3),w(n.form.controls.employments.controls[i].controls.organisationName.disabled?5:6),d(7),A(" ",n.form.controls.employments.controls[i].controls.type.value),d(2),v("ngClass",z(35,As,n.form.controls.employments.controls[i].controls.address.enabled)),d(6),R(n.form.controls.employments.controls[i].controls.address.value.address1),d(2),R(n.form.controls.employments.controls[i].controls.address.value.address2),d(2),R(n.form.controls.employments.controls[i].controls.address.value.address3),d(2),R(n.form.controls.employments.controls[i].controls.address.value.town),d(),w(n.form.controls.employments.controls[i].controls.address.value.town&&n.form.controls.employments.controls[i].controls.address.value.town.toLowerCase()!=="london"?27:-1),d(2),A(" ",G(30,31,n.form.controls.employments.controls[i].controls.address.value.postcode)," "),d(2),w(n.form.controls.employments.controls[i].controls.address.value.country?31:-1),d(3),v("ngClass",z(37,As,n.form.controls.employments.controls[i].controls.address.disabled)),d(10),R(n.formattedRecords[i].address.streetAddressLine1),d(2),R(n.formattedRecords[i].address.streetAddressLine2),d(2),R(n.formattedRecords[i].address.streetAddressLine3),d(2),R(n.formattedRecords[i].address.addressLocality),d(2),R(n.formattedRecords[i].address.addressRegion),d(2),R(G(55,33,n.formattedRecords[i].address.postalCode)),d(2),w(n.formattedRecords[i].address.addressCountry?56:-1),d(5),v("href",ne(n.updateBusinessDetail
744sFormPath),ae),d(9),v("button",n.getUpdateButton(i,"address"))("enabled",n.form.controls.employments.controls[i].controls.address.value.postcode&&n.form.controls.employments.controls[i].controls.address.valid),d(),w(n.form.controls.employments.controls[i].controls.businessEmail.disabled?71:72),d(2),w(n.form.controls.employments.controls[i].controls.website.disabled?73:74),d(2),w(n.form.controls.employments.controls[i].controls.mainEmployment.disabled?75:76),d(5),v("button",n.getUpdateButton(i,"confirmation"))("enabled",!n.form.controls.employments.controls[i].invalid&&!n.currentlyEditing),d(2),w(n.notificationInterface?82:-1)}}function GQ(e,t){if(e&1){let i=P();p(0,"div",4)(1,"p")(2,"strong"),C(3,"Password"),u()(),p(4,"span",7)(5,"strong"),C(6,"\u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022"),u()(),p(7,"span",8),T("click",function(){k(i);let o=g();return E(o.edit(!0))}),C(8," Edit "),u()()}}function UQ(e,t){if(e&1){let i=P();p(0,"div",5)(1,"p")(2,"strong"),C(3,"Update your password"),u()(),p(4,"div")(5,"p"),C(6,"Please enter your current password"),u(),p(7,"div",9),x(8,"fab-input-text-2",10),N(9,"formControl"),u(),p(10,"p"),C(11,"Choose a new password"),u(),p(12,"div",9),x(13,"fab-input-text-2",11),N(14,"formControl"),u(),p(15,"div",9),x(16,"fab-input-text-2",12),N(17,"formControl"),u(),p(18,"div",13)(19,"div")(20,"a",14),T("click",function(){k(i);let o=g();return E(o.edit(!1))}),C(21,"Cancel"),u()(),x(22,"fab-button",15),u()()()}if(e&2){let i=g();d(8),v("content",i.currentPasswordInterface)("formControl",G(9,8,i.form.controls.currentPassword)),d(5),v("content",i.passwordInputOneInterface)("formControl",G(14,10,i.form.controls.passwordInputOne)),d(3),v("content",i.passwordInputTwoInterface)("formControl",G(17,12,i.form.controls.passwordInputTwo)),d(6),v("enabled",i.enabled)("button",i.updatePasswordButton)}}function jQ(e,t){if(e&1&&(p(0,"div",6),x(1,"fab-notification",16),u()),e&2){let i=g();d(),v("isNotificationOpen",i.passwordChangeSuccess.isOpened)("notification",i.passwordChangeSuccess)}}function WQ(e,t){if(e&1&&(p(0,"div",6),x(1,"fab-notification",16),u()),e&2){let i=g();d(),v("isNotificationOpen",i.passwordChangeError.isOpened)("notification",i.passwordChangeError)}}var $Q=e=>({error:e}),qQ=(e,t)=>({uploaded:e,error:t});function YQ(e,t){if(e&1){let i=P();p(0,"div",8)(1,"div",11)(2,"p")(3,"strong"),C(4),u()(),p(5,"p"),C(6),u()(),p(7,"div",12)(8,"div",13)(9,"p")(10,"strong"),C(11),u()()(),p(12,"div",14),T("click",function(){let o=k(i).$implicit,r=g();return E(r.removeFile(o.id))}),x(13,"i",15),u()()()}if(e&2){let i=t.$implicit;v("ngClass",Re(4,qQ,i.uploaded,i.err)),d(4),R(i.name),d(2),A("",i.size,"kb"),d(5),R(i.err?i.err:i.uploaded?"Upload complete":"Uploading")}}function KQ(e,t){if(e&1&&(p(0,"p")(1,"small"),C(2),u()()),e&2){let i=g();d(2),R(i.errorMessage)}}function QQ(e,t){if(e&1&&(p(0,"p")(1,"small"),C(2),u()()),e&2){let i=g();d(2),R(i.missingContentMessage)}}function JQ(e,t){if(e&1&&(p(0,"div",5)(1,"p")(2,"strong"),C(3,"AAT designatory letters"),u()(),p(4,"span",6),C(5),u()()),e&2){let i=g();d(5),R(i.contact.name.aatSuffix)}}function ZQ(e,t){if(e&1){let i=P();p(0,"div",5)(1,"p")(2,"strong"),C(3,"Title"),u()(),p(4,"span",6),C(5),u(),p(6,"span",30),T("click",function(){k(i);let o=g();return E(o.editField("title"))}),C(7," Edit"),u()()}if(e&2){let i=g();d(5),R(i.contact.name.honorificPrefix)}}function XQ(e,t){if(e&1&&(p(0,"p",13),C(1),u()),e&2){let i=g(2);d(),A(" Your current title is ",i.contact.name.honorificPrefix," ")}}function eJ(e,t){if(e&1){let i=P();p(0,"div",27)(1,"div")(2,"a",33),T("click",function(){k(i);let o=g(2);return E(o.cancelEditing("title"))}),C(3,"Cancel"),u()(),x(4,"fab-button",34),u()}if(e&2){let i=g(2);d(4),v("button",i.titleUpdateButton)("enabled",i.form.get("title").valid)}}function tJ(e,t){if(e&1&&(p(0,"div",8)(1,"div")(2,"p",31)(3,"strong"),C(4,"Update your title"),u()(),y(5,XQ,2,1,"p",13),p(6,"div",14)(7,"div",14),x(8,"fab-dropdown-simple",32),N(9,"formControl"),u(),p(10,"div",24),x(11,"i",25),u()(),y(12,eJ,5,2,"div",27),u()()),e&2){let i=g();d(5),w(i.contact.name.honorificPrefix?5:-1),d(),v("ngClass",z(9,Ji,!i.form.value.title&&i.invalidSections.includes("personalDetailsForm"))),d(),v("ngClass",z(11,Mt,!i.form.value.title&&i.invalidSections.includes("personalDetailsForm"))),d(),v("content",i.titleInterface)("formControl",G(9,7,i.form.controls.title)),d(3),v("ngClass",z(13,Jn,!i.form.value.title&&i.invalidSections.includes("personalDetailsForm"))),d(),w(i.isAmendingDetails?-1:12)}}function iJ(e,t){e&1&&(p(0,"span",10),C(1," Pending change awaiting verification "),u())}function nJ(e,t){e&1&&(p(0,"span",10),C(1," As you've recently updated your name, you won't be able to make another update until we've processed this and emailed you. "),u())}function oJ(e,t){if(e&1){let i=P();p(0,"span",30),T("click",function(){k(i);let o=g();return E(o.editField("givenName"))}),C(1,"Edit"),u()}}function rJ(e,t){if(e&1&&(p(0,"li"),x(1,"i",35),p(2,"span",36),C(3),u()()),e&2){let i=t.$implicit;d(3),R(i)}}function aJ(e,t){if(e&1){let i=P();p(0,"div",27)(1,"div")(2,"a",33),T("click",function(){k(i);let o=g();return E(o.cancelEditing("givenName"))}),C(3,"Cancel"),u()(),x(4,"fab-button",34),u()}if(e&2){let i=g();d(4),v("button",i.nameUpdateButton)("enabled",i.form.get("givenName").valid&&i.form.get("givenName").valid&&!!i.form.controls.nameUpload.value&&i.form.controls.nameUpload.value.length)}}function sJ(e,t){e&1&&(p(0,"span",10),C(1," Pending change awaiting verification "),u())}function lJ(e,t){e&1&&(p(0,"span",10),C(1," As you've recently updated your date of birth, you won't be able to make another update until we've processed this and emailed you. "),u())}function cJ(e,t){if(e&1){let i=P();p(0,"span",30),T("click",function(){k(i);let o=g();return E(o.editField("birthDate"))}),C(1,"Edit"),u()}}function dJ(e,t){if(e&1&&(p(0,"li"),x(1,"i",35),p(2,"span",36),C(3),u()()),e&2){let i=t.$implicit;d(3),R(i)}}function uJ(e,t){if(e&1){let i=P();p(0,"div",27)(1,"div")(2,"a",33),T("click",function(){k(i);let o=g();return E(o.cancelEditing("birthDate"))}),C(3,"Cancel"),u()(),x(4,"fab-button",34),u()}if(e&2){let i=g();d(4),v("button",i.dobUpdateButton)("enabled",i.form.get("birthDate").valid&&!!i.form.controls.dobUpload.value&&i.form.controls.dobUpload.value.length)}}var pJ="[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}";function hJ(e,t){if(e&1){let i=P();p(0,"div",6)(1,"p")(2,"strong"),C(3,"Gender"),u()(),p(4,"span",8),C(5),u(),p(6,"span",9),T("click",function(){k(i);let o=g();return E(o.editField("gender"))}
744),C(7," Edit "),u()()}if(e&2){let i=g();d(5),A(" ",i.contact.genderSelfDescribed?i.contact.genderSelfDescribed:i.contact.gender)}}function gJ(e,t){if(e&1&&(p(0,"div"),x(1,"fab-radio",18),N(2,"formControl"),u()),e&2){let i=t.$implicit,n=t.$index,o=g(2);d(),v("content",i)("formControl",G(2,4,o.form.controls.gender))("lastInput",n===o.genderInterface.length-1)("required",!0)}}function mJ(e,t){if(e&1){let i=P();p(0,"div",12)(1,"fab-input-text",19),N(2,"formControl"),T("update",function(o){k(i);let r=g(2);return E(r.checkForProfanity(o,"genderSelfDescribed"))}),u()()}if(e&2){let i=g(2);d(),v("content",i.genderData.inputInterface)("formControl",G(2,3,i.form.controls.genderSelfDescribed))("hasError",i.form.get("genderSelfDescribed").errors)}}function fJ(e,t){e&1&&(p(0,"div",15),C(1,` Please complete all fields. If you'd prefer not to share your information, please select "Prefer not to say". `),u())}function vJ(e,t){if(e&1&&(p(0,"div",16),x(1,"fab-checkbox-confirm",20),u()),e&2){let i=g(2);v("ngClass",z(2,Mt,i.form.get("genderConfirmed").value!=="true")),d(),v("content",i.getConfirmContent("genderConfirmation"))}}function CJ(e,t){e&1&&(p(0,"div",15),C(1,` Please tick the box to confirm or select "prefer not to say" if you don't want to provide this information. `),u())}function bJ(e,t){if(e&1){let i=P();p(0,"div",17)(1,"div")(2,"a",21),T("click",function(){k(i);let o=g(2);return E(o.cancelEditing("gender"))}),C(3,"Cancel"),u()(),x(4,"fab-button",22),u()}if(e&2){let i=g(2);d(4),v("button",i.genderButton)("enabled",i.checkValid("gender"))}}function _J(e,t){if(e&1&&(p(0,"div",7)(1,"div")(2,"p",10)(3,"strong"),C(4),u()(),p(5,"div",11)(6,"div",11),X(7,gJ,3,6,"div",null,se),y(9,mJ,3,5,"div",12),u(),p(10,"div",13),x(11,"i",14),u()(),y(12,fJ,2,0,"div",15),y(13,vJ,2,4,"div",16),y(14,CJ,2,0,"div",15),y(15,bJ,5,2,"div",17),u()()),e&2){let i=g();d(4),R(i.genderData.radioQuestion),d(),v("ngClass",z(9,Ji,!i.form.value.gender&&i.invalidSections.includes("specialCategoryForm"))),d(),v("ngClass",z(11,Mt,!i.form.value.gender&&i.invalidSections.includes("specialCategoryForm"))),d(),ee(i.genderInterface),d(2),w(i.genderDescriptionActive()?9:-1),d(2),v("ngClass",z(13,Jn,!i.form.value.gender&&i.invalidSections.includes("specialCategoryForm"))),d(),w(!i.form.value.gender&&i.invalidSections.includes("specialCategoryForm")?12:-1),d(),w(i.confirmActive("gender")?13:-1),d(),w(i.form.get("genderConfirmed").value!=="true"&&i.confirmActive("gender")?14:-1),d(),w(i.isAmendingDetails?-1:15)}}function yJ(e,t){if(e&1){let i=P();p(0,"div",6)(1,"p")(2,"strong"),C(3,"Ethnic background"),u()(),p(4,"span",8),C(5),u(),p(6,"span",9),T("click",function(){k(i);let o=g();return E(o.editField("ethnicity"))}),C(7," Edit "),u()()}if(e&2){let i=g();d(5),A(" ",i.contact.ethnicitySelfDescribed?i.contact.ethnicitySelfDescribed:i.contact.ethnicBackground)}}function wJ(e,t){if(e&1&&(p(0,"div",12),x(1,"fab-dropdown-simple",24),N(2,"formControl"),u()),e&2){let i=g(2);d(),v("required",!0)("content",i.ethnicityDropdownInterface)("formControl",G(2,3,i.form.controls.ethnicity))}}function xJ(e,t){if(e&1){let i=P();p(0,"div",12)(1,"fab-input-text",25),N(2,"formControl"),T("update",function(o){k(i);let r=g(2);return E(r.checkForProfanity(o,"ethnicitySelfDescribed"))}),u()()}if(e&2){let i=g(2);d(),v("content",i.ethnicityData.inputInterface)("formControl",G(2,3,i.form.controls.ethnicitySelfDescribed))("hasError",i.form.get("ethnicitySelfDescribed").errors)}}function SJ(e,t){e&1&&(p(0,"div",15),C(1,` Please complete all fields. If you'd prefer not to share your information, please select "Prefer not to say". `),u())}function kJ(e,t){if(e&1&&(p(0,"div",16),x(1,"fab-checkbox-confirm",26),u()),e&2){let i=g(2);v("ngClass",z(2,Mt,i.form.get("ethnicityConfirmed").value!=="true")),d(),v("content",i.getConfirmContent("ethnicityConfirmation"))}}function EJ(e,t){e&1&&(p(0,"div",15),C(1,` Please tick the box to confirm or select "prefer not to say" if you don't want to provide this information. `),u())}function MJ(e,t){if(e&1){let i=P();p(0,"div",17)(1,"div")(2,"a",21),T("click",function(){k(i);let o=g(2);return E(o.cancelEditing("ethnicity"))}),C(3,"Cancel"),u()(),x(4,"fab-button",22),u()}if(e&2){let i=g(2);d(4),v("button",i.ethnicityButton)("enabled",i.checkValid("ethnicity"))}}function TJ(e,t){if(e&1&&(p(0,"div",7)(1,"div")(2,"p",10)(3,"strong"),C(4),u()(),p(5,"div",11)(6,"div",11),x(7,"fab-radio",23),N(8,"formControl"),x(9,"fab-radio",18),N(10,"formControl"),y(11,wJ,3,5,"div",12),x(12,"fab-radio",18),N(13,"formControl"),y(14,xJ,3,5,"div",12),u(),p(15,"div",13),x(16,"i",14),u()(),y(17,SJ,2,0,"div",15),y(18,kJ,2,4,"div",16),y(19,EJ,2,0,"div",15),y(20,MJ,5,2,"div",17),u(
744)()),e&2){let i=g();d(4),R(i.ethnicityData.radioQuestion),d(),v("ngClass",z(27,Ji,!i.form.value.ethnicity&&i.invalidSections.includes("specialCategoryForm"))),d(),v("ngClass",z(29,Mt,!i.form.value.ethnicity&&i.invalidSections.includes("specialCategoryForm"))),d(),v("content",i.ethnicityInterface[0])("formControl",G(8,21,i.form.controls.ethnicity))("required",!0),d(2),v("content",i.ethnicityInterface[1])("formControl",G(10,23,i.form.controls.ethnicity))("lastInput",i.checkDropDownActive())("required",!0),d(2),w(i.checkDropDownActive()?11:-1),d(),v("content",i.ethnicityInterface[2])("formControl",G(13,25,i.form.controls.ethnicity))("lastInput",i.ethnicTypeInput())("required",!0),d(2),w(i.ethnicTypeInput()?14:-1),d(2),v("ngClass",z(31,Jn,!i.form.value.ethnicity&&i.invalidSections.includes("specialCategoryForm"))),d(),w(!i.form.value.ethnicity&&i.invalidSections.includes("specialCategoryForm")?17:-1),d(),w(i.confirmActive("ethnicity")?18:-1),d(),w(i.form.get("ethnicityConfirmed").value!=="true"&&i.confirmActive("ethnicity")?19:-1),d(),w(i.isAmendingDetails?-1:20)}}function IJ(e,t){if(e&1){let i=P();p(0,"div",6)(1,"p")(2,"strong"),C(3,"Do you consider yourself as having learning difficulties or a disability?"),u()(),p(4,"span",8),C(5),u(),p(6,"span",9),T("click",function(){k(i);let o=g();return E(o.editField("learningDifficultiesAndDisabilities"))}),C(7," Edit "),u()()}if(e&2){let i=g();d(5),A(" ",i.form.get("learningDifficultiesAndDisabilities").value)}}function DJ(e,t){if(e&1&&(p(0,"div"),x(1,"fab-radio",18),N(2,"formControl"),u()),e&2){let i=t.$implicit,n=t.$index,o=g(2);d(),v("content",i)("formControl",G(2,4,o.form.controls.learningDifficultiesAndDisabilities))("lastInput",n===o.learningInterface.length-1)("required",!0)}}function PJ(e,t){e&1&&(p(0,"div",15),C(1,` Please complete all fields. If you'd prefer not to share your information, please select "Prefer not to say". `),u())}function RJ(e,t){if(e&1&&x(0,"fab-checkbox-confirm",27),e&2){let i=g(3);v("content",i.getConfirmContent("learningDifficultyConfirmation"))}}function FJ(e,t){if(e&1&&(p(0,"div",16),y(1,RJ,1,1,"fab-checkbox-confirm",27),u()),e&2){let i=g(2);v("ngClass",z(2,Mt,i.form.get("learningDifficultiesConfirmed").value!=="true")),d(),w(i.confirmActive("learningDifficultiesAndDisabilities")?1:-1)}}function OJ(e,t){e&1&&(p(0,"div",15),C(1,` Please tick the box to confirm or select "prefer not to say" if you don't want to provide this information. `),u())}function AJ(e,t){if(e&1){let i=P();p(0,"div",17)(1,"div")(2,"a",21),T("click",function(){k(i);let o=g(2);return E(o.cancelEditing("learningDifficultiesAndDisabilities"))}),C(3,"Cancel"),u()(),x(4,"fab-button",22),u()}if(e&2){let i=g(2);d(4),v("button",i.learningButton)("enabled",i.checkValid("learningDifficultiesAndDisabilities"))}}function LJ(e,t){if(e&1&&(p(0,"div",7)(1,"div")(2,"p",10)(3,"strong"),C(4),u()(),p(5,"div",11)(6,"div",11),X(7,DJ,3,6,"div",null,se),u(),p(9,"div",13),x(10,"i",14),u()(),y(11,PJ,2,0,"div",15),y(12,FJ,2,4,"div",16),y(13,OJ,2,0,"div",15),y(14,AJ,5,2,"div",17),u()()),e&2){let i=g();d(4),R(i.learningData.radioQuestion),d(),v("ngClass",z(8,Ji,!i.form.value.learningDifficultiesAndDisabilities&&i.invalidSections.includes("specialCategoryForm"))),d(),v("ngClass",z(10,Mt,!i.form.value.learningDifficultiesAndDisabilities&&i.invalidSections.includes("specialCategoryForm"))),d(),ee(i.learningInterface),d(3),v("ngClass",z(12,Jn,!i.form.value.learningDifficultiesAndDisabilities&&i.invalidSections.includes("specialCategoryForm"))),d(),w(!i.form.value.learningDifficultiesAndDisabilities&&i.invalidSections.includes("specialCategoryForm")?11:-1),d(),w(i.confirmActive("learningDifficultiesAndDisabilities")?12:-1),d(),w(i.form.get("learningDifficultiesConfirmed").value!=="true"&&i.confirmActive("learningDifficultiesAndDisabilities")?13:-1),d(),w(i.isAmendingDetails?-1:14)}}var Np=e=>({"remove-border":e});function NJ(e,t){e&1&&(p(0,"p"),C(1,` If you want to withdraw your consent or if you're no longer with this employer, you can stop sharing your results by clicking "Edit" and then selecting "No, don't share my results". `),u())}function zJ(e,t){if(e&1){let i=P();p(0,"div",7)(1,"p")(2,"strong"),C(3),u()(),p(4,"span",9),C(5),u(),p(6,"span",10),T("click",function(){k(i);let o=g().$index,r=g(2);return E(r.editField(o))}),C(7," Edit "),u()()}if(e&2){let i=g().$index,n=g(2);v("ngClass",z(3,Np,i!==0)),d(3),R(n.form.controls.employments.controls[i].value.organisationName),d(2),A(" ",n.form.controls.employments.controls[i].value.permissionToShare===!0?"You are sharing your results":"You are not sharing your results")}}function BJ(e,t){if(e&1&&x(0,"fab-radio",11),e&2){let i=t.$implicit,n=g(2).$index,o=g(2);v("content",i)("formControl",o.form.controls.employments.controls[n].controls.permissionToShare)}}function VJ(e,t){e&1&&(p(0,"p"),C(1,` By selecting "No, don't share my results", you'll no longer be associated with this employer in our records. `),u())}function HJ(e,t){if(e&1){let i=P();p(0,"div",8)(1,"p")(2,"strong"),C(3),u()(),p(4,"p"),C(5,"Can we share your assessment results with your employer, if they ask?"),u(),p(6,"div"),X(7,BJ,1,2,"fab-radio",11,se),u(),y(9,VJ,2,0,"p"),p(10,"div",12)(11,"div")(12,"a",13),T("click",function(){k(i);let o=g().$index,r=g(2);return E(r.cancelEditingPermission(o))}),C(13,"Cancel"),u()(),x(14,"fab-button",14),N(15,"typeof"),u()()}if(e&2){let i=g().$index,n=g(2);v("ngClass",z(7,Np,i!==0)),d(3),R(n.form.controls.employments.controls[i].value.organisationName),d(4),ee(n.studentEmploymentSelectionInterface),d(2),w(n.form.controls.employments.controls[i].controls.permissionToShare.value===n.declineString?9:-1),d(5),v("enabled",G(15,5,n.form.controls.employments.controls[i].controls.permissionToShare.value)==="string")("button",n.getButton("removePerm",i))}}function GJ(e,t){if(e&1&&(p(0,"div",5)(1,"div",6)(2,"div",2)(3,"div",3),y(4,zJ,8,5,"div",7)(5,HJ,16,9,"div",8),u()()()()),e&2){let i=t.$index,n=g(2);d(),v("formGroupName",i),d(3),w(n.currentField!==i?4:5)}}function UJ(e,t){if(e&1&&(p(0,"div"),X(1,GJ,6,2,"div",5,se),u()),e&2){let i=g();d(),ee(i.employmentForm==null?null:i.employmentForm.controls)}}function jJ(e,t){e&1&&x(0,"div")}function WJ(e,t){if(e&1){let i=P();p(0,"li",21),T("mousedown",function(){let o=k(i).$index;g();let r=de(4);return E(r.selectSuggestion(o))}),x(1,"span",22),N(2,"textHighlight"),u()}if(e&2){let i=t.$implicit,n=t.$index;g();let o=de(4);d(),Pe("selected",o.currentIndex==n),v("innerHTML",He(2,3,i.label,o.search.term),ue)}}function $J(e,t){if(e&1){let i=P();p(0,"div",17)(1,"p"),C(2,"Please confirm you are happy to share your results with your employer."),u(),p(3,"fab-checkbox-confirm",23),T("agreeEvent",function(o){k(i);let r=g(3);return E(r.agreeEvent(o))}),u()()}if(e&2){let i=g(3);d(3),v("content",i.confirmSharing)("showError",i.showConsentError)}}function qJ(e,t){if(e&1){let i=P();p(0,"div")(1,"div")(2,"div",17)(3,"fab-autocomplete-validation",18,0),N(5,"formControl"),p(6,"header",19),C(7,"YOUR RESULTS"),u(),p(8,"ul"),X(9,WJ,3,6,"li",20,se),u()()(),y(11,$J,4,2,"div",17),p(12,"div",12)(13,"div")(14,"a",13),T("click",function(){k(i);let o=g(2);return E(o.cancelAddingEmployer())}),C(15,"Cancel"),u()(),x(16,"fab-button",14),u()()()}if(e&2){let i=de(4),n=g(2);d(3),v("showError",n.autoCompleteInput.showError)("formControl",G(5,8,n.form.get("org")))("errorMessage",n.autoCompleteInput.errorMessage)("dataList",n.employerList)("content",n.autoCompleteInput.content),d(6),ee(i.results),d(2),w(n.form.value.org&&n.form.value.org.label?11:-1),d(5),v("enabled",n.showConsentError!=null&&!n.showConsentError)("button",n.getButton("addPerm"))}}function YJ(e,t){if(e&1){let i=P();p(0,"div",2)(1,"div",3)(2,"div",4)(3,"span"),C(4,"Would you like to share your results with your employer?"),u(),p(5,"div",15)(6,"fab-checkbox-confirm",16),T("agreeEvent",function(o){k(i);let r=g();return E(r.activateSearch(o))}),u()(),y(7,jJ,1,0,"div")(8,qJ,17,10,"div"),u()()()}if(e&2){let i=g();d(6),v("content",i.confirmEmployed)("updateChecked",i.resolveCheckBox()),d(),w(i.searchingForEmployer?8:7)}}var jS=()=>[null,""];function KJ(e,t){if(e&1&&(p(0,"span",14),C(1),u()),e&2){let i=g(2);d(),A(" ",i.displayUlnInput?"Awaiting verification":"Verified"," ")}}function QJ(e,t){e&1&&(p(0,"span",15),C(1,"Verification failed - please submit again"),u())}function JJ(e,t){if(e&1){let i=P();p(0,"span",17),T("click",function(){k(i);let o=g(2);return E(o.editUln())}),C(1," Edit "),u()}}function ZJ(e,t){if(e&1&&(p(0,"div",4)(1,"p",12)(2,"strong"),C(3,"Unique Learning Number (ULN)"),u()(),p(4,"span",13),C(5),x(6,"br"),y(7,KJ,2,1,"span",14),y(8,QJ,2,0,"span",15),u(),y(9,JJ,2,0,"span",16),u()),e&2){let i=g();d(5),A(" ",i.contact.uln?i.form.get("uln").value:"Not provided"," "),d(2),w(i.contact.uln&&!i.UlnVerificationFailed?7:-1),d(),w(i.UlnVerificationFailed?8:-1),d(),w(i.displayUlnInput?9:-1)}}function XJ(e,t){if(e&1){let i=P();p(0,"div",5)(1,"p",12)(2,"strong"),C(3,"Do you have a Unique Learner Number (ULN)?"),u()(),p(4,"p"),C(5," A Unique Learner Number (ULN) is a reference number that matches a learner to their Personal Learning Record (PLR) in England, Wales and Northern Ireland. Anyone over the age of 13 who is involved in publicly funded education or training has one of these numbers. "),u(),p(6,"p",18),C(7," This is a 10 digit number provided by your training provider or college. If you don't have one yet, leave this blank and continue. "),u(),p(8,"div")(9,"div",19),x(10,"fab-input-text-2",20),N(11,"formControl"),u()(),p(12,"div",21)(13,"div")(14,"a",22),T("click",function(){k(i);let o=g();return E(o.cancelEditingUln())}),C(15,"Cancel"),u()(),x(16,"fab-button",23),u()()}if(e&2){let i=g();d(10),v("content",i.ulnInput)("formControl",G(11,4,i.form.get("uln"))),d(6),v("button",i.getUpd
744ateButton("uln"))("enabled",i.form.get("uln").valid&&!On(6,jS).includes(i.form.get("uln").value))}}function eZ(e,t){if(e&1){let i=P();p(0,"div",4)(1,"p",12)(2,"strong"),C(3,"Scottish Candidate Number (SCN)"),u()(),p(4,"span",13),C(5),u(),p(6,"span",17),T("click",function(){k(i);let o=g();return E(o.editScn())}),C(7," Edit "),u()()}if(e&2){let i=g();d(5),A(" ",i.contact.scn?i.form.get("scn").value:"Not provided"," ")}}function tZ(e,t){if(e&1){let i=P();p(0,"div",5)(1,"p",12)(2,"strong"),C(3,"Do you have a Scottish Candidate Number (SCN)?"),u()(),p(4,"p"),C(5," The Scottish Candidate Number (SCN), formerly known as the SCOTVEC number, is allocated to pupils at school and in FE colleges who undertake Scottish Qualifications Authority (formerly SCOTVEC or SEB Scottish Examination Board) courses. "),u(),p(6,"p",18),C(7," This is a nine digit number provided by your training provider or college and can start with a zero. If you don't have one yet, leave this blank and continue. "),u(),p(8,"div")(9,"div",19),x(10,"fab-input-text-2",20),N(11,"formControl"),u()(),p(12,"div",21)(13,"div")(14,"a",22),T("click",function(){k(i);let o=g();return E(o.cancelEditingScn())}),C(15,"Cancel"),u()(),x(16,"fab-button",23),u()()}if(e&2){let i=g();d(10),v("content",i.scnInput)("formControl",G(11,4,i.form.get("scn"))),d(6),v("button",i.getUpdateButton("scn"))("enabled",i.form.get("scn").valid&&!On(6,jS).includes(i.form.get("scn").value))}}function iZ(e,t){if(e&1){let i=P();p(0,"div",26)(1,"p"),C(2),u(),p(3,"span",13),C(4),u(),p(5,"span",17),T("click",function(){k(i);let o=g().$index,r=g();return E(r.editField(o))}),C(6," Edit "),u()()}if(e&2){let i=g().$index,n=g();v("ngClass",z(3,Np,i!==0)),d(2),R(n.form.controls.qualifications.controls[i].controls.qualificationName.value),d(2),A(" ",n.form.controls.qualifications.controls[i].controls.tpDetails.value)}}function nZ(e,t){if(e&1&&(p(0,"div",28)(1,"p",34),C(2,"Your current training provider is"),u(),p(3,"p")(4,"strong"),C(5),u()(),p(6,"p"),C(7,"If you'd like to make changes to how you're currently studying, please update this below."),u(),p(8,"p",28),C(9,"Have you changed your college or training provider?"),u()()),e&2){let i=g(2).$index,n=g();d(5),A(" ",n.editableProgrammeRegistrations[i].tpName," ")}}function oZ(e,t){e&1&&(p(0,"p"),C(1," You're not currently registered with a training provider. "),u())}function rZ(e,t){e&1&&(p(0,"p"),C(1," You're currently self-studying. "),u())}function aZ(e,t){if(e&1&&(p(0,"div",28),y(1,oZ,2,0,"p"),y(2,rZ,2,0,"p"),p(3,"p"),C(4,"If you'd like to make changes to how you're currently studying, please update this below."),u(),p(5,"p",28),C(6,"Are you studying with a college or training provider?"),u()()),e&2){let i=g(2).$index,n=g();d(),w(n.editableProgrammeRegistrations[i].tpId==="c24729f5-4e4d-e211-acc8-005056b14c6a"?1:-1),d(),w(n.editableProgrammeRegistrations[i].tpId==="2aa138d7-8900-e511-a653-005056b14c6a"?2:-1)}}function sZ(e,t){if(e&1){let i=P();p(0,"fab-radio",35),T("click",function(){let o=k(i).$implicit,r=g(2).$index,a=g();return E(a.handleTpSelection(o.label,r))}),u()}if(e&2){let i=t.$implicit;v("content",i)}}function lZ(e,t){if(e&1){let i=P();p(0,"li",39),T("mousedown",function(){let o=k(i).$index;g();let r=de(2);return E(r.selectSuggestion(o))}),x(1,"span",40),N(2,"textHighlight"),u()}if(e&2){let i=t.$implicit,n=t.$index;g();let o=de(2);d(),Pe("selected",o.currentIndex==n),v("innerHTML",He(2,3,i.label,o.search.term),ue)}}function cZ(e,t){if(e&1&&(p(0,"div")(1,"fab-autocomplete-validation",36,0)(3,"header",37),C(4,"YOUR RESULTS"),u(),p(5,"ul"),X(6,lZ,3,6,"li",38,se),u()()()),e&2){let i=de(2),n=g(3);d(),v("showError",n.autoCompleteInput.showError)("formControl",n.form.controls.qualifications.controls[n.currentField].controls.tpDetails)("errorMessage",n.autoCompleteInput.errorMessage)("dataList",n.tpsToSelect[n.currentField].trainingProviders)("dataListPrefillItem",n.form.controls.qualifications.controls[n.currentField].controls.tpDetails.value)("content",n.autoCompleteInput.content),d(5),ee(i.results)}}function dZ(e,t){if(e&1){let i=P();p(0,"div",27)(1,"p",12)(2,"strong"),C(3),u()(),y(4,nZ,10,1,"div",28)(5,aZ,7,2,"div",28),p(6,"div",29),X(7,sZ,1,1,"fab-radio",30,se),u(),y(9,cZ,8,6,"div"),p(10,"div",31)(11,"p",32),C(12," If your college or training provider doesn't appear in the list, you'll need to contact them before you continue. If you'd like to find a training provider to study with, please use our "),p(13,"a",9),C(14,"Find a training provider"),u(),C(15," service. "),u()(),p(16,"div",21)(17,"div")(18,"a",22),T("click",function(){k(i);let o=g().$index,r=g();return E(r.cancelEditingTp(o))}),C(19,"Cancel"),u()(),x(20,"fab-button",33),u()()}if(e&2){let i=g().$index,n=g();v("ngClass",z(6,Np,i!==0)),d(3),R(n.form.controls.qualifications.controls[i].controls.qualificationName.value),d(),w(n.notAttachedCodes.includes(n.editableProgrammeRegistrations[i].tpId)?5:4),d(3),ee(n.tpChangeOptions),d(2),w(n.tpSearch===i?9:-1),d(11),v("enabled",!!n.form.controls.qualifications.controls[i].controls.tpDetail
744s.value)("button",n.getUpdateButton("qualifications",i))}}function uZ(e,t){if(e&1&&(p(0,"div",11)(1,"div",24)(2,"div",25)(3,"div",3),y(4,iZ,7,5,"div",26)(5,dZ,21,8,"div",27),u()()()()),e&2){let i=t.$index,n=g();d(),v("formGroupName",i),d(3),w(n.currentField!==i?4:5)}}function pZ(e,t){e&1&&(p(0,"span"),C(1,"s"),u())}function hZ(e,t){if(e&1&&(p(0,"div",4)(1,"p"),C(2),u(),p(3,"span")(4,"span"),C(5),N(6,"date"),u(),p(7,"span"),C(8," - "),u(),p(9,"span"),C(10),N(11,"date"),u()(),p(12,"span"),C(13),y(14,pZ,2,0,"span"),C(15," remaining"),u()()),e&2){let i=t.$implicit;d(2),R(i.membershipTypeName),d(3),A(" ",He(6,5,i.startDate,"dd/MM/yyyy")," "),d(5),A(" ",He(11,8,i.endDate,"dd/MM/yyyy")," "),d(3),A("",i.remaining," month"),d(),w((i==null?null:i.remaining)>1?14:-1)}}var gZ=e=>({float:e});function mZ(e,t){e&1&&x(0,"fab-loader")}function fZ(e,t){if(e&1&&x(0,"div",2),e&2){let i=g(2);v("innerHTML",i.content.introCopy,ue)}}function vZ(e,t){if(e&1){let i=P();p(0,"h3",4),C(1,"Personal details"),u(),p(2,"app-personal-details",5),T("updatedTitleData",function(o){k(i);let r=g(2);return E(r.contactPersonalChange(o))})("updatedProtectedData",function(o){k(i);let r=g(2);return E(r.contactHoldingChange(o))}),u()}if(e&2){let i=g(2);d(2),v("contactDetails",i.contact)("student",i.isStudent)("member",i.isMember)("invalidSections",i.invalidSectionsList)("pendingChanges",i.holdingItemsReturned)}}function CZ(e,t){if(e&1){let i=P();p(0,"h3",6),C(1,"Contact details"),u(),p(2,"app-contact-details",7),T("updatedData",function(o){k(i);let r=g(2);return E(r.contactObjectChange(o))}),u()}if(e&2){let i=g(2);d(2),v("contactDetails",i.contact)("invalidSections",i.invalidSectionsList)("confirmNumber",i.confirmNumberMessage)}}function bZ(e,t){if(e&1&&(p(0,"h3",8),C(1,"Security"),u(),x(2,"app-password-block",9)),e&2){let i=g(2);d(2),v("contactDetails",i.contact)}}function _Z(e,t){if(e&1&&(p(0,"h3",8),C(1,"Your subscriptions"),u(),x(2,"app-subscription-block",10)),e&2){let i=g(2);d(2),v("subscriptionsInput",i.formattedSubscriptions)}}function yZ(e,t){if(e&1){let i=P();p(0,"h3",11),C(1,"Help us improve"),u(),p(2,"app-special-category",12),T("updatedSpecialData",function(o){k(i);let r=g(2);return E(r.contactSpecialChange(o))})("getFormStatus",function(){k(i);let o=g(2);return E(o.checkAllFormStatus())}),u()}if(e&2){let i=g(2);d(2),v("contactDetails",i.contact)("student",i.isStudent)("member",i.isMember)("invalidSections",i.invalidSectionsList)}}function wZ(e,t){if(e&1){let i=P();p(0,"h3",13),C(1,"Communication preferences"),u(),p(2,"app-contact-preferences",14),T("updatedContactPreference",function(o){k(i);let r=g(2);return E(r.contactPrefChange(o))}),u()}if(e&2){let i=g(2);d(2),v("contactDetails",i.contact)("invalidSections",i.invalidSectionsList)}}function xZ(e,t){if(e&1){let i=P();p(0,"div",3)(1,"app-comms-preference-block",15),T("commsPrefsUpdate",function(o){k(i);let r=g(2);return E(r.commsPrefsUpdated(o))}),u()()}if(e&2){let i=g(2);d(),v("formattedCommsPrefs",i.commsPrefs)("contactDetails",i.contact)("updatedMultiChoice",i.commsQuestionsResponse)}}function SZ(e,t){if(e&1){let i=P();p(0,"div",3)(1,"h3",16),C(2,"Currently studying"),u(),p(3,"app-studying-block",17),T("tpUpdated",function(o){k(i);let r=g(2);return E(r.tpDetailsChanged(o))})("ulnUpdate",function(o){k(i);let r=g(2);return E(r.ulnDetailsChanged(o))}),u()()}if(e&2){let i=g(2);d(3),v("programmeRegistrations",i.formattedProgrammeRegistrations)("contactDetails",i.contact)}}function kZ(e,t){if(e&1){let i=P();p(0,"div",3)(1,"h3",18),C(2,"Sharing my results"),u(),p(3,"app-student-employment-block",19),T("addEmploymentWithPerms",function(o){k(i);let r=g(2);return E(r.addedEmployment(o))})("updatedEmployment",function(o){k(i);let r=g(2);return E(r.updateEmployment(o))}),u()()}if(e&2){let i=g(2);d(3),v("employment",i.employmentRecords)}}function EZ(e,t){if(e&1&&(p(0,"div",3)(1,"h3",20),C(2,"My licensed business details"),u(),x(3,"app-licence-block",21),u()),e&2){let i=g(2);d(3),v("employment",i.employmentRecords)("mipDetails",i.licenceRecords)("invalidSections",i.invalidSectionsList)("contactDetails",i.contact)}}function MZ(e,t){if(e&1&&(y(0,fZ,1,1,"div",2),y(1,vZ,3,5),y(2,CZ,3,3),y(3,bZ,3,1),y(4,_Z,3,1),y(5,yZ,3,4),y(6,wZ,3,2),y(7,xZ,2,3,"div",3),y(8,SZ,4,2,"div",3),y(9,kZ,4,1,"div",3),y(10,EZ,4,4,"div",3)),e&2){let i=g();w(i.content.introCopy?0:-1),d(),w(i.shouldShow("personal-details")?1:-1),d(),w(i.shouldShow("contact-details")?2:-1),d(),w(!i.isScud&&i.shouldShow("password-block")?3:-1),d(),w(!i.isScud&&i.hasSubscriptions&&i.shouldShow("subscription-block")?4:-1),d(),w(i.shouldShow("special-category")?5:-1),d(),w(!i.isScud&&i.shouldShow("contact-preferences")?6:-1),d(),w(i.commsPrefs&&i.c
744ommsPrefs.length>0&&!i.isScud&&i.shouldShow("comms-preference-block")?7:-1),d(),w(i.allProgrammesLoaded&&i.shouldShow("studying-block")?8:-1),d(),w(i.isStudent&&!i.isScud&&i.shouldShow("student-employment-block")?9:-1),d(),w(i.isLicensed&&!i.isScud&&!i.isLoading&&i.shouldShow("license-block")?10:-1)}}function TZ(e,t){if(e&1&&(p(0,"div",22),x(1,"fab-notification",26),u()),e&2){let i=g(2);d(),v("isNotificationOpen",i.notificationInterface.isOpened)("notification",i.notificationInterface)}}function IZ(e,t){if(e&1&&x(0,"fab-button",24),e&2){let i=g(2);v("button",i.goBackButton)}}function DZ(e,t){if(e&1&&(p(0,"div",1),y(1,TZ,2,2,"div",22),p(2,"div",23)(3,"div"),y(4,IZ,1,1,"fab-button",24),u(),p(5,"div",25),x(6,"fab-button",24),u()()()),e&2){let i=g();v("ngClass",z(4,gZ,i.content.floatingConfirmButton)),d(),w(i.notificationInterface?1:-1),d(3),w(i.showBackButton?4:-1),d(2),v("button",i.submitButton)}}function PZ(e,t){if(e&1&&x(0,"i",1),e&2){let i=g();v("ngClass","icon-"+i.item.icon)}}function RZ(e,t){if(e&1&&x(0,"img",2),e&2){let i=g();v("src",i.getIconSource(),ae)}}function FZ(e,t){if(e&1&&x(0,"fab-icon-links-item",1),e&2){let i=t.$implicit;v("item",i)}}var OZ='[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2} .icon-links{display:flex;flex-direction:row} .icon-links a.icon-links__link{background-color:#fff;border:2px solid #000000;box-sizing:border-box;border-radius:50%;position:relative;height:40px;width:40px;margin:5px;display:inline-block;text-decoration:none;transition:all .3s ease-in-out} .icon-links a.icon-links__link i{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:20px;color:#000} .icon-links a.icon-links__link span{text-align:left;font-family:Open Sans,Arial,Helvetica,"sans-serif";position:absolute;top:-7px;left:50%;background-color:#2f2f2f;padding:5px;transform:translate(-50%,-100%);display:none;font-size:14px;color:#fff;width:max-content;max-width:150px} .icon-links a.icon-links__link span:after{content:"";width:5px;height:5px;position:absolute;bottom:-3px;left:50%;background-color:#2f2f2f;transform-origin:center center;transform:rotate(45deg) translate(-33%)} .icon-links a.icon-links__link:hover{box-shadow:0 5px 5px #00000040} .icon-links a.icon-links__link:hover span{display:block} .icon-links--vertical{flex-direction:column;text-align:right} .icon-links--vertical a.icon-links__link span{top:50%;left:-7px;transform:translate(-100%,-50%)} .icon-links--vertical a.icon-links__link span:after{inset:50% -1px auto auto;transform:rotate(45deg) translate(0) translateY(-33%)}',AZ=()=>({"background-size":"cover"}),LZ=(e,t,i)=>({"standard-hero--expanded":e,"standard-hero--details":t,"standard-hero--v2":i}),NZ=(e,t)=>({"standard-hero__copy--light":e,"standard-hero--v2":t}),zZ=e=>({"space-bar":e}),BZ=e=>({light:e});function VZ(e,t){if(e&1&&(p(0,"div",1),x(1,"i",13),u()),e&2){let i=g();d(),v("tooltip",i.content.gdprIdentifier)("positionInput","left")}}function HZ(e,t){if(e&1&&(p(0,"a",3),C(1),u()),e&2){let i=g();v("href",ne(i.content.toplineLink),ae),d(),R(i.content.topline)}}function GZ(e,t){if(e&1&&(p(0,"a",4),C(1),u()),e&2){let i=g();v("routerLink",z(2,Ge,"/"+i.content.toplineLink)),d(),R(i.content.topline)}}function UZ(e,t){if(e&1&&x(0,"h1",5),e&2){let i=g();v("innerHTML",i.content.title,ue)}}function jZ(e,t){if(e&1&&x(0,"div",6),e&2){let i=g();v("innerHTML",i.content.subTitle,ue)("ngClass",z(2,BZ,i.content.colourWay==="light"))}}function WZ(e,t){if(e&1&&x(0,"p",5),e&2){let i=g();v("innerHTML",i.content.content,ue)}}function $Z(e,t){if(e&1&&(p(0,"a",14)(1,"p",16),C(2),N(3,"truncate"),u()()),e&2){let i=g(2);v("href",ne(i.content.authorlink),ae),d(2),A(" ",He(3,3,i.content.authorline,30)," ")}}function qZ(e,t){if(e&1&&(p(0,"a",15)(1,"p",16),C(2),N(3,"truncate"),u()()),e&2){let i=g(2);v("routerLink",z(5,Ge,"/"+i.content.authorlink)),d(2),A(" ",He(3,2,i.content.authorline,30)," ")}}function YZ(e,t){if(e&1&&(p(0,"div",7)(1,"p"),C(2,"By \xA0"),u(),y(3,$Z,4,6,"a",14),y(4,qZ,4,7,"a",15),u()),e&2){let i=g();d(3),w(i.content.useRouterLink?-1:3),d(),w(i.content.useRouterLink?4:-1)}}function KZ(e,t){if(e&1&&x(0,"fab-icon-links",17),e&2){let i=g(2);v("content",i.iconLinks)}}function QZ(e,t){if(e&1&&(p(0,"div",8),y(1,KZ,1,1,"fab-icon-links",17),u()),e&2){let i=g();d(),w(i.content.isContentArticle?1:-1)}}function JZ(e,t){if(e&1&&(p(0,"div",9)(1,"b"),C(2,"Brought to you by \xA0"),u(),p(3,"a",18),x(4,"img",19),u()()),e&2){let i=g();d(3),v("href",ne(i.content.sponsorshipDetails==null?null:i.content.sponsorshipDetails.link),ae),d(),v("src",ne(i.content.sponsorshipDetails==null?null:i.content.sponsorshipDetails.image),ae)}}function ZZ(e,t){if(e&1&&x(0,"fab-button",11),e&2){let i=g();v("button",i.content.cta)}}function XZ(e,t){if(e&1&&(p(0,"div",12)(1,"p"),C(2),u()()),e&2){let i=g();d(2),R(i.content.attribution)}}var eX=()=>["/"],tX=()=>["Cobrowsing",!0];function iX(e,t){if(e&1&&(p(0,"a",6),x(1,"img",19),u()),e&2){let i=g();d(),v("src",ne(i.content.logo),ae)}}function nX(e,t){if(e&1&&(p(0,"a",7),x(1,"img",19),u()),e&2){let i=g();v("routerLink",On(3,eX)),d(),v("src",ne(i.content.logo),ae)}}function oX(e,t){if(e&1&&(p(0,"a",22),C(1),u()),e&2){let i=t.$implicit;pe(i.icon),v("href",ne(i.link),ae),d(),R(i.linkText)}}function rX(e,t){if(e&1){let i=P();p(0,"a",23),T("click",function(){k(i),g(3);let o=de(1);return E(o.openModal())}),C(1,"Generate help code"),u()}}function aX(e,t){if(e&1&&(p(0,"div",4),X(1,oX,2,5,"a",20,se),V(3,rX,2,0,"a",21),u()),e&2){let i=g().$implicit;d(),ee(i.links),d(2),v("featureFlag",On(1,tX))}}function sX(e,t){if(e&1&&(p(0,"a",25),C(1),u()),e&2){let i=t.$implicit;pe(i.icon),v("routerLink",z(4,Ge,"/"+i.link)),d(),R(i.linkText)}}function lX(e,t){if(e&1&&(p(0,"div",4),X(1,sX,2,6,"a",24,se),u()),e&2){let i=g().$implicit;d(),ee(i.links)}}function cX(e,t){if(e&1&&(p(0,"div",10)(1,"h6")(2,"strong"),C(3),u()(),y(4,aX,4,2,"div",4),y(5,lX,3,0,"div",4),u()),e&2){let i=t.$implicit,n=g();d(3),R(i.title),d(),w(n.content.useRouterLink?-1:4),d(),w(n.content.useRouterLink?5:-1)}}function dX(e,t){if(e&1&&(p(0,"a",26),x(1,"i"),p(2,"span"),C(3),u()()),e&2){let i=t.$implicit;v("href",ne(i.link),ae),d(),pe(vt("icon icon-",i.icon)),d(2),R(i.linkText)}}function uX(e,t){if(e&1&&(p(0,"div",4),X(1,dX,4,6,"a",26,se),u()),e&2){let i=g().$implicit;d(),ee(i.links)}}function pX(e,t){if(e&1&&(p(0,"a",25),x(1,"i"),p(2,"span"),C(3),u()()),e&2){let i=t.$implicit;v("routerLink",z(5,Ge,"/"+i.link)),d(),pe(vt("icon icon-",i.icon)),d(2),R(i.linkText)}}function hX(e,t){if(e&1&&(p(0,"div",4),X(1,pX,4,7,"a",25,se),u()),e&2){let i=g().$implicit;d(),ee(i.links)}}function gX(e,t){if(e&1&&(p(0,"div",12)(1,"h6")(2,"strong"),C(3),u()(),y(4,uX,3,0,"div",4),y(5,hX,3,0,"div",4),u()),e&2){let i=t.$implicit,n=g();d(3),R(i.title),d(),w(n.content.useRouterLink?-1:4),d(),w(n.content.useRouterLink?5:-1)}}function mX(e,t){if(e&1&&(x(0,"fab-button",14),N(1,"formatContentToButton")),e&2){let i=g();v("button",G(1,1,i.content))}}function fX(e,t){if(e&1&&(p(0,"a",22),C(1),u()),e&2){let i=t.$implicit;v("href",ne(i.link),ae),d(),R(i.linkText)}}function vX(e,t){if(e&1&&(p(0,"div",17),X(1,fX,2,3,"a",22,se),u()),e&2){let i=g();d(),ee(i.content.bottomLinks)}}function CX(e,t){if(e&1&&(p(0,"a",25),C(1),u()),e&2){let i=t.$implicit;v("routerLink",z(2,Ge,"/"+i.link)),d(),R(i.linkText)}}function bX(e,t){if(e&1&&(p(0,"div",17),X(1,CX,2,4,"a",25,se),u()),e&2){let i=g();d(),ee(i.content.bottomLinks)}}function _X(e,t){if(e&1&&(p(0,"p"),C(1),u()),e&2){let i=t.$implicit;d(),A(" ",i," ")}}function yX(e,t){if(e&1&&(p(0,"span",4),X(1,_X,2,1,"p",null,se),u()),e&2){let i=g().$implicit;d(),ee(i.data)}}function wX(e,t){if(e&1&&(p(0,"p",4),C(1),u()),e&2){let i=g().$implicit;d(),A(" ",i.data," ")}}function xX(e,t){if(e&1&&(p(0,"div",2)(1,"p",3)(2,"strong"),C(3),u()(),y(4,yX,3,0,"span",4),N(5,"isArray"),y(6,wX,2,1,"p",4),N(7,"isArray"),u()),e&2){let i=t.$implicit;d(3),A(" ",i.displayHeader," "),d(),w(G(5,3,i.data)?4:-1),d(2),w(G(7,5,i.data)?-1:6)}}function SX(e,t){if(e&1&&(p(0,"a",11),C(1),u()),e&2){let i=g().$implicit;v("href",ne(i.link),ae)("openInNewTab",!!i.openInNewTab),d(),R(i.title)}}function kX(e,t){if(e&1&&(p(0,"a",12),C(1),u()),e&2){let i=g().$implicit;v("routerLink",z(3,Ge,"/"+i.link))("openInNewTab",!!i.openInNewTab),d(),R(i.title)}}function EX(e,t){if(e&1&&(p(0,"div"),y(1,SX,2,4,"a",11),y(2,kX,2,5,"a",12),u()),e&2){let i=t.$implicit;d(),w(i.useRouterLink?-1:1),d(),w(i.useRouterLink?2:-1)}}function MX(e,t){if(e&1){let i=P();p(0,"div")(1,"a",10),T("click",function(){let o=k(i).$implicit,r=g(2);return E(r.changeGroup(o))}),C(2),N(3,"groupName"),u()()}if(e&2){let i=t.$implicit;d(2),A("Switch to ",G(3,1,i))}}function TX(e,t){if(e&1){let i=P();p(0,"div",0)(1,"div",1),T("click",function(){k(i);let o=g();return E(o.togglePane())}),C(2),u(),p(3,"div",2),T("click",function(){k(i);let o=g();return E(o.closePane())})("click",function(){k(i);let o=g();return E(o.closeDropdown())}
744),u(),p(4,"div",3),T("click",function(){k(i);let o=g();return E(o.toggleDropdown())}),p(5,"div",4),C(6),u(),p(7,"div",5)(8,"div",6),C(9),u(),p(10,"div",7),C(11),u()(),x(12,"i",8),p(13,"div",9),X(14,EX,3,2,"div",null,se),X(16,MX,4,3,"div",null,se),x(18,"hr"),p(19,"a",10),T("click",function(){k(i);let o=g();return E(o.logout())}),C(20,"Sign out"),u()()()()}if(e&2){let i=g();d(2),A(" ",i.initials," "),d(),Pe("logged-in__show",i.paneIsActive||i.dropdownIsActive),d(),Pe("logged-in__show",i.paneIsActive),d(2),A(" ",i.initials," "),d(3),Yt("",i.cognitoDetails.given_name," ",i.cognitoDetails.family_name),d(2),A(" ",i.cognitoDetails["custom:member_id"]," "),d(2),Pe("logged-in__show",i.dropdownIsActive),d(),ee(i.content.menuItems),d(2),ee(i.groupMenuItems)}}function IX(e,t){if(e&1){let i=P();p(0,"li",9),T("mousedown",function(){let o=k(i).$index;g();let r=de(3);return E(r.selectSuggestion(o))}),x(1,"span",10),N(2,"textHighlight"),u()}if(e&2){let i=t.$implicit,n=t.$index;g();let o=de(3);d(),Pe("selected",o.currentIndex==n),v("innerHTML",He(2,3,i.label,o.search.term),ue)}}function DX(e,t){if(e&1){let i=P();p(0,"div",1)(1,"div",2)(2,"fab-autocomplete",3,0)(4,"header",4),C(5,"Suggestions"),u(),p(6,"ul"),X(7,IX,3,6,"li",5,se),u()()(),p(9,"div",6)(10,"a",7),T("click",function(){k(i);let o=g();return E(o.showSearch())}),x(11,"fab-aat-icon",8),u()()()}if(e&2){let i=de(3),n=g();d(),Pe("open",n.isOpen),d(),v("service",n.headerSearchService),d(5),ee(i.results),d(2),Pe("hide",n.isOpen),d(2),v("content",n.searchIcon)("size",n.iconSize)}}var I0=(e,t)=>t.url;function PX(e,t){if(e&1&&(p(0,"a",6),C(1),u()),e&2){let i=g().$implicit;v("href",i.url,ae)("openInNewTab",!!i.openInNewTab),d(),R(i.label)}}function RX(e,t){if(e&1&&(p(0,"a",7),C(1),u()),e&2){let i=g().$implicit;v("routerLink",i.url),d(),R(i.label)}}function FX(e,t){if(e&1&&(p(0,"li",2),y(1,PX,2,3,"a",6),y(2,RX,2,2,"a",7),u()),e&2){let i=t.$implicit;d(),w(i.type==="href"?1:-1),d(),w(i.type==="routerLink"?2:-1)}}var OX=e=>({"border-right":e});function AX(e,t){if(e&1&&x(0,"fab-aat-icon",6),e&2){let i=g(2);v("content",i.chevron)("size",i.iconSize)}}function LX(e,t){if(e&1){let i=P();p(0,"a",4),N(1,"async"),T("mouseenter",function(){let o=k(i).$implicit,r=g();return E(r.setLastSubHoveredHeader(o))}),C(2),p(3,"span",5),y(4,AX,1,2,"fab-aat-icon",6),u()()}if(e&2){let i=t.$implicit,n=g();v("href",i.path,ae)("openInNewTab",!!i.openInNewTab)("ngClass",z(7,M0,G(1,5,n.subHeader$)===i)),d(2),A(" ",i.title," "),d(2),w(i.links?4:-1)}}function NX(e,t){if(e&1){let i=P();p(0,"a",4),N(1,"async"),T("mouseenter",function(){let o=k(i).$implicit,r=g();return E(r.setSubSubHeader(o))}),C(2),u()}if(e&2){let i=t.$implicit,n=g();v("href",i.path,ae)("openInNewTab",!!i.openInNewTab)("ngClass",z(6,M0,G(1,4,n.activeSubSubHeader$)===i)),d(2),A(" ",i.title," ")}}function zX(e,t){if(e&1){let i=P();p(0,"div",4),T("mouseenter",function(){let o=k(i).$implicit,r=g();return E(r.setLastHoveredHeader(o))})("mouseleave",function(){k(i);let o=g();return E(o.unsetLastHoveredHeader())}),p(1,"a",5),N(2,"async"),C(3),u()()}if(e&2){let i=t.$implicit,n=g();d(),v("href",i.path,ae)("openInNewTab",!!i.openInNewTab)("ngClass",z(6,M0,G(2,4,n.activeHeader$)===i)),d(2),A(" ",i.title," ")}}function BX(e,t){if(e&1&&(p(0,"div",7)(1,"h4"),C(2),N(3,"async"),u(),p(4,"a",10),C(5),u()()),e&2){let i,n=t,o=g(2);d(2),R((i=G(3,4,o.activeHeader$))==null?null:i.title),d(2),v("href",n.path,ae)("openInNewTab",!!n.openInNewTab),d(),R(n.customLinkText??"Find out more")}}function VX(e,t){if(e&1&&(p(0,"div",9),x(1,"img",11),p(2,"h4"),C(3),N(4,"async"),u(),x(5,"p",12),N(6,"async"),u()),e&2){let i=g(2);d(),v("src",t,ae),d(2),A(" ",G(4,3,i.imgTitle$)," "),d(2),v("innerHTML",G(6,5,i.imgDescription$),ue)}}function HX(e,t){if(e&1&&(p(0,"div",3)(1,"div",6),y(2,BX,6,6,"div",7),N(3,"async"),x(4,"app-header-desktop-dropdown",8),N(5,"async"),y(6,VX,7,7,"div",9),N(7,"async"),u()()),e&2){let i,n,o,r=g();d(2),w((i=G(3,3,r.activeHeader$))?2:-1,i),d(2),v("headerData",(n=G(5,5,r.activeHeader$))==null?null:n.links),d(2),w((o=G(7,7,r.imgSrc$))?6:-1,o)}}function GX(e,t){if(e&1&&x(0,"fab-aat-icon",6),e&2){let i=g().$implicit,n=g(3);v("content",n.chevron)("size",n.iconSize)("@rotatedState",n.chevronState.subHeader[i.title]??"default")}}function UX(e,t){if(e&1){let i=P();p(0,"div",3)(1,"a",10),T("click",function(o){return k(i),E(o.stopPropagation())}),C(2),u()()}if(e&2){let i=t.$implicit;d(),v("href",i.path,ae)("openInNewTab",!!i.openInNewTab),d(),A(" ",i.title," ")}}function jX(e,t){if(e&1&&(p(0,"div",11),X(1,UX,3,3,"div",3,se),N(3,"async"),N(4,"orderBy"),u()),e&2){let i=g(4);d(),ee(xr(4,2,G(3,0,i.activeSubHeaderLinks$),"weight",!1))}}function WX(e,t){if(e&1){let i=P();p(0,"div",9),T("click",function(o){let r=k(i).$implicit,a=g(3);return a.subHeaderClicked(r),o.stopPropagation(),E(a.rotate("subHeader",r.title))}),p(1,"div",3)(2,"a",10),T("click",function(o){return k(i),E(o.stopPropagation())}),C(3),u(),p(4,"span",5),y(5,GX,1,3,"fab-aat-icon",6),u()(),y(6,jX,5,6,"div",11),N(7,"async"),u()}if(e&2){let i=t.$implicit,n=g(3);d(2),v("href",i.path,ae)("openInNewTab",!!i.openInNewTab),d(),A(" ",i.title," "),d(2),w(i.links?5:-1),d(),w(G(7,5,n.activeSubHeader$)===i?6:-1)}}function $X(e,t){if(e&1&&(p(0,"div",7),X(1,WX,8,7,"div",8,se),N(3,"async"),N(4,"orderBy"),u()),e&2){let i=g(2);d(),ee(xr(4,2,G(3,0,i.activeHeaderLinks$),"weight",!1))}}function qX(e,t){if(e&1){let i=P();p(0,"div",2),T("click",function(o){let r=k(i).$implicit,a=g();return a.headerClicked(r),a.rotate("header",r.title),E(o.stopPropagation())}),p(1,"div",3)(2,"a",4),T("click",function(o){return k(i),E(o.stopPropagation())}),C(3),u(),p(4,"span",5),x(5,"fab-aat-icon",6),u()(),y(6,$X,5,6,"div",7),N(7,"async"),u()}if(e&2){let i=t.$implicit,n=g();d(2),v("href",i.path,ae)("openInNewTab",!!i.openInNewTab),d(),A(" ",i.title," "),d(2),v("content",n.chevron)("size",n.iconSize)("@rotatedState",n.chevronState.header[i.title]??"default"),d(),w(G(7,7,n.activeHeader$)===i?6:-1)}}var YX=["header"],KX=e=>({header__container__ready:e}),QX=e=>({"header-mobile__container__ready":e}),JX=e=>({"hamburger-active":e});function ZX(e,t){if(e&1){let i=P();p(0,"a",14,1),T("click",function(){k(i);let o=g(3);return E(o.navigateHome())}),x(2,"img",15),u()}if(e&2){let i=g(3);d(2),v("src",i.logoUrl,ae)}}function XX(e,t){if(e&1){let i=P();p(0,"div",16)(1,"fab-site-search",17),T("isOpenChange",function(o){k(i);let r=g(3);return E(r.searchOpenChange(o))}),u()()}if(e&2){let i=g(2).let,n=g();Pe("no-auth",!i),d(),v("content",n.searchContent)}}function eee(e,t){if(e&1&&(p(0,"div",18),x(1,"fab-basket-icon",19),u()),e&2){let i=g(2).let;Pe("no-auth",!i),d(),v("count",t)}}function tee(e,t){if(e&1&&(p(0,"div",11),x(1,"fab-button",20)(2,"fab-button",21),u()),e&2){let i=g(3);d(),v("button",i.registerButton),d(),v("button",i.loginButton)}}function iee(e,t){if(e&1){let i=P();p(0,"div",12)(1,"fab-logged-in-user",22),T("rightPaneChange",function(o){k(i);let r=g(3);return E(r.rightPaneIsActive(o))}),u()()}if(e&2){let i=g(3);d(),v("content",i.loggedInUserData)}}function nee(e,t){e&1&&(p(0,"div",13),x(1,"app-header-desktop",null,2),u())}function oee(e,t){if(e&1){let i=P();p(0,"div",7),T("mouseleave",function(){k(i);let o=g(2);return E(o.hideHeader())}),y(1,ZX,3,1,"a",8),y(2,XX,2,3,"div",9),y(3,eee,2,3,"div",10),N(4,"async"),y(5,tee,3,2,"div",11),y(6,iee,2,1,"div",12),y(7,nee,3,0,"div",13),u()}if(e&2){let i,n=g().let,o=g();
744v("ngClass",z(9,KX,o.isClient)),d(),w(n?-1:1),d(),w(o.hideSearch()?-1:2),d(),w((i=G(4,7,o.enableBasket&&o.basketCountChanged$))?3:-1,i),d(2),w(n?-1:5),d(),w(n&&o.isClient?6:-1),d(),w(n?-1:7)}}function ree(e,t){if(e&1){let i=P();p(0,"a",14),T("click",function(){k(i);let o=g(3);return E(o.navigateHome())}),x(1,"img",30),u()}if(e&2){let i=g(3);d(),v("src",i.logoUrl,ae)}}function aee(e,t){if(e&1){let i=P();p(0,"fab-site-search",31),T("isOpenChange",function(o){k(i);let r=g(3);return E(r.searchOpenChange(o))}),u()}if(e&2){let i=g(3);v("content",i.searchContent)("isOpen",!1)}}function see(e,t){e&1&&(p(0,"div",26),x(1,"fab-basket-icon",19),u()),e&2&&(d(),v("count",t))}function lee(e,t){if(e&1){let i=P();p(0,"fab-logged-in-user",32),T("rightPaneChange",function(o){k(i);let r=g(3);return E(r.rightPaneIsActive(o))}),u()}if(e&2){let i=g(3);v("content",i.loggedInUserData)}}function cee(e,t){if(e&1){let i=P();p(0,"div",33),T("click",function(){k(i);let o=g(3);return E(o.toggleMobileHeader())}),p(1,"label",34),N(2,"async"),x(3,"span")(4,"span")(5,"span"),u()()}if(e&2){let i=g(3);d(),v("ngClass",z(3,JX,G(2,1,i.menuOpen$)))}}function dee(e,t){if(e&1&&(p(0,"div",29),N(1,"async"),x(2,"app-header-mobile",35),p(3,"div",36),x(4,"fab-button",37)(5,"fab-button",38),u()()),e&2){let i=g(3);v("hidden",G(1,3,i.menuOpen$)===!1),d(4),v("button",i.registerButton),d(),v("button",i.loginButton)}}function uee(e,t){if(e&1&&(p(0,"div",6)(1,"div",23),y(2,ree,2,1,"a",8),p(3,"div",24),y(4,aee,1,2,"fab-site-search",25),y(5,see,2,1,"div",26),N(6,"async"),y(7,lee,1,1,"fab-logged-in-user",27),y(8,cee,6,5,"div",28),u()(),y(9,dee,6,5,"div",29),u()),e&2){let i,n=g().let,o=g();v("ngClass",z(9,QX,o.isClient)),d(2),w(n?-1:2),d(2),w(o.hideSearch()?-1:4),d(),w((i=G(6,7,o.enableBasket&&o.basketCountChanged$))?5:-1,i),d(2),w(n&&o.isClient?7:-1),d(),w(n?-1:8),d(),w(!n&&o.isClient?9:-1)}}function pee(e,t){e&1&&x(0,"fab-quick-links-bar")}function hee(e,t){if(e&1&&(p(0,"nav",4,0),y(2,oee,8,11,"div",5),y(3,uee,10,11,"div",6),y(4,pee,1,0,"fab-quick-links-bar"),N(5,"async"),u()),e&2){let i=t.let,n=g();d(2),w(n.showLargeHeader&&n.isClient?2:-1),d(),w(!n.showLargeHeader&&n.isClient?3:-1),d(),w(!i&&!G(5,3,n.menuOpen$)?4:-1)}}var gee=e=>({"background-image":e}),mee=e=>({"fab-image-slider__slide-panel__darken":e});function fee(e,t){if(e&1){let i=P();p(0,"div",5),T("click",function(){k(i);let o=g();return E(o.goToPrevious())}),C(1," \u2770 "),u(),p(2,"div",6),T("click",function(){k(i);let o=g();return E(o.goToNext())}),C(3," \u2771 "),u()}if(e&2){let i=g();v("ngClass",i.slideConfig.colourWay==="dark"?"fab-image-slider__leftArrow--dark":"fab-image-slider__leftArrow--light"),d(2),v("ngClass",i.slideConfig.colourWay==="dark"?"fab-image-slider__rightArrow--dark":"fab-image-slider__rightArrow--light")}}function vee(e,t){if(e&1&&(p(0,"a",2)(1,"h3",7),C(2),u()()),e&2){let i=g();v("href",ne(i.slideConfig.slides[i.currentIndex].linkUrl),ae),d(),v("ngClass",i.slideConfig.colourWay==="dark"?"fab-image-slider__slide-panel__link--dark":"fab-image-slider__slide-panel__link--light"),d(),A(" ",i.slideConfig.slides[i.currentIndex].linkText," ")}}function Cee(e,t){if(e&1&&x(0,"h2",1),e&2){let i=g();v("innerHTML",i.title,ue)}}function bee(e,t){if(e&1&&x(0,"a",4),e&2){let i=g().$implicit;v("href",i.url,ae)("innerHTML",i.title,ue)}}function _ee(e,t){if(e&1&&x(0,"a",5),e&2){let i=g().$implicit;v("routerLink",z(2,Ge,"/"+i.url))("innerHTML",i.title,ue)}}function yee(e,t){if(e&1&&(p(0,"div",3),y(1,bee,1,2,"a",4),y(2,_ee,1,4,"a",5),u()),e&2){let i=g();d(),w(i.useRouterLink?-1:1),d(),w(i.useRouterLink?2:-1)}}function wee(e,t){if(e&1&&(p(0,"label",3),C(1),u()),e&2){let i=g();d(),R(i.content.label)}}function xee(e,t){if(e&1){let i=P();p(0,"input",9,0),T("keyup",function(o){k(i);let r=g();return E(r.locationSuggestions(o))})("blur",function(){k(i);let o=g();return E(o.onBlur())})("focus",function(){k(i);let o=g();return E(o.onFocus())}),u()}if(e&2){let i=g();v("placeholder",i.content.placeholder)}}function See(e,t){if(e&1){let i=P();p(0,"li",12),T("mousedown",function(){let o=k(i).$implicit,r=g(3);return E(r.selectSuggestion(o))}),p(1,"span"),C(2),u()()}if(e&2){let i=t.$implicit,n=t.$index,o=g(3);Pe("selected",o.currentSuggestionIndex===n),d(2),R(i.description)}}function kee(e,t){if(e&1&&(p(0,"ul"),X(1,See,3,3,"li",11,se),u()),e&2){let i=g(2);d(),ee(i.suggestions)}}function Eee(e,t){if(e&1&&(p(0,"div",5)(1,"strong",10),C(2,"Suggestions"),u(),y(3,kee,3,0,"ul"),u()),e&2){let i=g();d(3),w(i.suggestions&&i.suggestions.length>0&&i.focus?3:-1)}}function Mee(e,t){if(e&1&&(p(0,"p",7),C(1),u()),e&2){let i=g();d(),A(" ",i.form.get("location").getError("selectedLocation")," ")}}function Tee(e,t){e&1&&(p(0,"p",7),C(1," Enter a location "),u())}function Iee(e,t){if(e&1&&(p(0,"p",7),C(1),u()),e&2){let i=g();d(),A(" ",i.UFO.message.global.invalid_alphanumeric," ")}}function Dee(e,t){if(e&1){let i=P();p(0,"div",8)(1,"fab-dropdown-simple",13),T("outputReturnSelectedOptions",function(o){k(i);let r=g();return E(r.selectDistance(o))}),u()()}if(e&2){let i=g();d(),v("content",i.distanceDropdown)("selectContent",i.distanceSelected)}}var zp=(e,t)=>({"logged-in-nav__item__label--nest-open":e,"logged-in-nav__item__label--nest-closed":t});function Pee(e,t){if(e&1){let i=P();p(0,"a",0)(1,"span"),C(2),u(),p(3,"fab-aat-icon",3),T("click",function(o){k(i);let r=g();return E(r.branch.items.length?r.toggleBranches(o,r.branch):null)}),u()()}if(e&2){let i=g();v("href",ne(i.branch.link),ae)("ngClass",Re(6,zp,i.branch.items.length&&i.branchOpe
744n==i.branch,i.branch.items.length&&i.branchOpen!=i.branch))("openInNewTab",!!i.branch.openInNewTab),d(2),A(" ",i.branch.label," "),d(),v("content",i.arrowIcon)}}function Ree(e,t){if(e&1){let i=P();p(0,"a",1)(1,"span"),C(2),u(),p(3,"fab-aat-icon",3),T("click",function(o){k(i);let r=g();return E(r.branch.items.length?r.toggleBranches(o,r.branch):null)}),u()()}if(e&2){let i=g();v("ngClass",Re(5,zp,i.branch.items.length&&i.branchOpen==i.branch,i.branch.items.length&&i.branchOpen!=i.branch))("routerLink",z(8,Ge,"/"+i.branch.link))("openInNewTab",!!i.branch.openInNewTab),d(2),A(" ",i.branch.label," "),d(),v("content",i.arrowIcon)}}function Fee(e,t){if(e&1&&(p(0,"a",4)(1,"span"),C(2),u()()),e&2){let i=g().$implicit;v("href",ne(i.link),ae)("openInNewTab",!!i.openInNewTab),d(2),A(" ",i.label," ")}}function Oee(e,t){if(e&1&&(C(0," /** * @TODO * - MAYBE open in new tab */ "),p(1,"a",5)(2,"span"),C(3),u()()),e&2){let i=g().$implicit;d(),v("routerLink",z(3,Ge,"/"+i.link))("openInNewTab",!!i.openInNewTab),d(2),A(" ",i.label," ")}}function Aee(e,t){if(e&1&&(p(0,"div"),y(1,Fee,3,4,"a",4),y(2,Oee,4,5),u()),e&2){let i=t.$implicit;d(),w(i.useRouterLink?-1:1),d(),w(i.useRouterLink?2:-1)}}function Lee(e,t){if(e&1&&(p(0,"div",2),X(1,Aee,3,2,"div",null,se),u()),e&2){let i=g();d(),ee(i.branch.items)}}var WS=e=>({"logged-in-nav__item__icon--selected":e});function Nee(e,t){if(e&1){let i=P();p(0,"a",6),T("click",function(o){k(i);let r=g();return E(r.tree.items!=null&&r.tree.items.length?r.toggleTrees(o,r.tree):null)}),x(1,"fab-aat-icon",7),u()}if(e&2){let i=g();v("ngClass",z(4,WS,i.treeOpen==i.tree))("routerLink",z(6,Ge,"/"+i.tree.link))("openInNewTab",!!i.tree.openInNewTab),d(),v("content",i.iconData)}}function zee(e,t){if(e&1){let i=P();p(0,"a",8),T("click",function(o){k(i);let r=g();return E(r.tree.items!=null&&r.tree.items.length?r.toggleTrees(o,r.tree):null)}),x(1,"fab-aat-icon",7),u()}if(e&2){let i=g();v("ngClass",z(4,WS,i.treeOpen==i.tree))("href",i.tree.link,ae)("openInNewTab",!!i.tree.openInNewTab),d(),v("content",i.iconData)}}function Bee(e,t){if(e&1){let i=P();p(0,"a",9)(1,"span"),C(2),u(),p(3,"fab-aat-icon",11),T("click",function(o){k(i);let r=g(2);return E(r.tree.items!=null&&r.tree.items.length?r.toggleTrees(o,r.tree):null)}),u()()}if(e&2){let i=g(2);v("ngClass",Re(5,zp,i.tree.items&&i.tree.items.length&&i.treeOpen==i.tree,i.tree.items&&i.tree.items.length&&i.treeOpen!=i.tree))("routerLink",z(8,Ge,"/"+i.tree.link))("openInNewTab",!!i.tree.openInNewTab),d(2),R(i.tree.label),d(),v("content",i.arrowIcon)}}function Vee(e,t){if(e&1){let i=P();p(0,"a",10)(1,"span"),C(2),u(),p(3,"fab-aat-icon",11),T("click",function(o){k(i);let r=g(2);return E(r.tree.items!=null&&r.tree.items.length?r.toggleTrees(o,r.tree):null)}),u()()}if(e&2){let i=g(2);v("ngClass",Re(5,zp,i.tree.items&&i.tree.items.length&&i.treeOpen==i.tree,i.tree.items&&i.tree.items.length&&i.treeOpen!=i.tree))("href",i.tree.link,ae)("openInNewTab",!!i.tree.openInNewTab),d(2),R(i.tree.label),d(),v("content",i.arrowIcon)}}function Hee(e,t){if(e&1&&y(0,Bee,4,10,"a",9)(1,Vee,4,8,"a",10),e&2){let i=g();w(i.tree.useRouterLink?0:1)}}function Gee(e,t){if(e&1&&x(0,"fab-logged-in-nav-sub-list",12),e&2){let i=t.$implicit;v("branch",i)}}function Uee(e,t){if(e&1&&(p(0,"div",5),X(1,Gee,1,1,"fab-logged-in-nav-sub-list",12,fv),u()),e&2){let i=g();d(),ee(i.tree.items)}}var jee=(e,t)=>({"left-nav-main":e,"left-nav-main--opened":t}),Wee=e=>({"nav-control--closed":e}),$ee=e=>({"logged-in-nav--nav-closed":e}),qee=e=>({"logged-in-nav__item logged-in-nav__item--link":!0,"logged-in-nav__item--active":e});function Yee(e,t){if(e&1){let i=P();p(0,"div",14),T("click",function(){k(i);let o=g();return E(o.toggleNav())}),p(1,"label",15),x(2,"span")(3,"span")(4,"span"),u()()}}function Kee(e,t){if(e&1&&(p(0,"div",16)(1,"span"),C(2),u()()),e&2){let i=g();xt("left",i.tooltip.left,"px")("top",i.tooltip.top,"px"),d(2),A(" ",i.tooltip.title," ")}}function Qee(e,t){if(e&1&&(p(0,"a",7),x(1,"img",17),u()),e&2){let i=g();v("href",ne(i.content==null?null:i.content.homeLink),ae),d(),v("src",ne(i.content==null?null:i.content.homeLogo),ae)}}
744function Jee(e,t){if(e&1&&(p(0,"a",8),x(1,"img",17),u()),e&2){let i=g();v("routerLink",z(3,Ge,"/"+(i.content==null?null:i.content.homeLink))),d(),v("src",ne(i.content==null?null:i.content.homeLogo),ae)}}function Zee(e,t){if(e&1){let i=P();p(0,"fab-logged-in-nav-link",18),T("mouseenter",function(o){let r=k(i).$implicit,a=g();return E(a.outputSetHoveredSection(o,r.section,r.label))})("mouseleave",function(){k(i);let o=g();return E(o.outputUnsetHoveredSection())})("outputNavClosed",function(){k(i);let o=g();return E(o.outputNavClosed())}),u()}if(e&2){let i=t.$implicit,n=g();v("ngClass",z(4,qee,i.section==n.currentSection||i.section==n.hoveredSection))("tree",i)("navClosed",n.navClosed)("openInNewTab",!!i.openInNewTab)}}function Xee(e,t){if(e&1&&(p(0,"div",13)(1,"a",19),x(2,"i",20),u(),p(3,"div",21)(4,"a",22),C(5),u()()()),e&2){let i=g();d(),v("href",ne(i.content==null?null:i.content.externalLink),ae),d(3),v("href",ne(i.content==null?null:i.content.externalLink),ae),d(),R(i.content==null?null:i.content.externalLabel)}}function ete(e,t){if(e&1&&(p(0,"div",13)(1,"a",23),x(2,"i",20),u(),p(3,"div",21)(4,"a",24),C(5),u()()()),e&2){let i=g();d(),v("routerLink",z(3,Ge,"/"+(i.content==null?null:i.content.externalLink))),d(3),v("routerLink",z(5,Ge,"/"+(i.content==null?null:i.content.externalLink))),d(),R(i.content==null?null:i.content.externalLabel)}}var tte='[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.chevron[_ngcontent-%COMP%]{width:50px;height:40px;position:fixed;z-index:2000;justify-content:center;display:flex}.nav-control[_ngcontent-%COMP%]{width:26px;height:61px;top:0;left:234px;position:fixed;z-index:2000;transition:all .3s ease-in-out;cursor:pointer}.nav-control[_ngcontent-%COMP%]:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotate(45deg);transform-origin:center center;width:8px;height:8px;border:2px solid #fff;border-top:none;border-right:none;transition:all .3s ease-in-out}.nav-control--closed[_ngcontent-%COMP%]{left:75px}.nav-control--closed[_ngcontent-%COMP%]:before{border-color:#000;transform:translate(-50%,-50%) rotate(225deg)}.nav-tooltip[_ngcontent-%COMP%]{position:fixed;top:0;transform:translateY(-50%);padding:10px;display:inline-block;background-color:#000;border-radius:1px;z-index:9999}.nav-tooltip[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative;color:#fff;font-size:14px;line-height:1em;padding:0;margin:0;height:14px;display:block}.nav-tooltip[_ngcontent-%COMP%]:before{content:"";position:absolute;top:50%;left:0;transform-origin:center center;transform:translate(-3px,-50%) rotate(45deg);width:7px;height:7px;background-color:#000}.left-nav-hamburger[_ngcontent-%COMP%]{display:block;position:fixed;width:50px;height:50px;cursor:pointer;line-height:49px;color:#000;margin-left:10px;font-size:2em;z-index:1001}@media (min-width: 992px){.left-nav-hamburger[_ngcontent-%COMP%]{display:none}}.left-nav-main[_ngcontent-%COMP%]{display:none}@media (min-width: 992px){.left-nav-main[_ngcontent-%COMP%]{display:block;transition:all .3s ease-in-out}}.left-nav-main--opened[_ngcontent-%COMP%]{display:block;transition:all .3s ease-in-out} .logged-in-nav{overflow:visible;position:fixed;left:0;top:0;bottom:0;z-index:1001} .logged-in-nav__outer-container{height:100vh;overflow:auto;scrollbar-base-color:#31373e;scrollbar-face-color:#31373e;scrollbar-3dlight-color:#31373e;scrollbar-highlight-color:#31373e;scrollbar-track-color:#31373e;scrollbar-arrow-color:#31373e;scrollbar-shadow-color:#31373e;scrollbar-color:#31373e #31373e;scrollbar-width:none} .logged-in-nav__outer-container::-webkit-scrollbar{background-color:#31373e} .logged-in-nav__outer-container::-webkit-scrollbar-thumb{background-color:#31373e} .logged-in-nav__outer-container::-webkit-scrollbar-track{background-color:#31373e} .logged-in-nav__container{width:260px;background-color:#31373e;display:flex;flex-direction:column;position:relative} .logged-in-nav__container--main{min-height:calc(100vh - 60px);padding-top:60px;padding-bottom:50px} .logged-in-nav__container--top, .logged-in-nav__container--bottom{position:absolute;height:60px;left:0;z-index:9999} .logged-in-nav__container--top{top:0} .logged-in-nav__container--bottom{bottom:0} .logged-in-nav__container:before{content:"";width:68px;position:absolute;top:0;bottom:0;left:0;background-color:#1a2129;z-index:0} .logged-in-nav a{color:#fff;text-decoration:none;display:block;font-weight:100;box-sizing:content-box} .logged-in-nav__item{display:flex;z-index:1;overflow:visible} .logged-in-nav__item__icon{padding-top:16px;padding-left:11px;padding-right:21px;overflow:visible;background-color:#1a2129;text-decoration:none;width:35px;position:relative} .logged-in-nav__item__icona{background-color:#1a2129} .logged-in-nav__item__icon i{color:#fffc;font-size:24px;position:relative;transition:all .2s ease-in-out} .logged-in-nav__item__icon--logo{width:65px;margin-top:-10px;margin-left:-10px;padding-right:0} .logged-in-nav__item__label{color:#fff;width:100%} .logged-in-nav__item__label--link{color:#fff;font-weight:100} .logged-in-nav__item__label fab-aat-icon{display:none;position:absolute;top:50%;right:10px;transform:translateY(-50%) rotate(90deg);height:18px;width:18px} .logged-in-nav__item__label--nest-open fab-aat-icon{transform:translateY(-50%) rotate(-90deg)} .logged-in-nav__item__label a{opacity:.8;padding:14px 10px;position:relative} .logged-in-nav__item__label a:hover{opacity:1} .logged-in-nav__item__branch, .logged-in-nav__item__twig{padding-left:10px} .logged-in-nav__item__branch a:hover, .logged-in-nav__item__twig a:hover{background-color:#ffffff1a} .logged-in-nav__item--active .logged-in-nav__item__icon i{color:#fff} .logged-in-nav__item--active .logged-in-nav__item__icon i:after{height:48px} .logged-in-nav__item--bottom{position:absolute;bottom:0;left:0;width:100%;background-color:#31373e} .logged-in-nav__item--bottom a{padding-left:21px} .logged-in-nav a.logged-in-nav__item__label--nest-open, .logged-in-nav a.logged-in-nav__item__label--nest-closed{padding-right:40px} .logged-in-nav a.logged-in-nav__item__label--nest-open fab-aat-icon, .logged-in-nav a.logged-in-nav__item__label--nest-closed fab-aat-icon{display:block} .logged-in-nav--nav-closed .logged-in-nav__container{width:68px} .logged-in-nav--nav-closed .logged-in-nav__item__label{display:none}a.logged-in-nav__item__icon[_ngcontent-%COMP%]{background-color:#1a2129}.hamburger[_ngcontent-%COMP%]{position:fixed;order:3;margin-right:10px!important;display:flex;align-items:center;justify-content:center;padding:12px 10px 8px;flex-direction:column;z-index:1231}.hamburger[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:28px;height:0px;border-top:2px solid #000;margin-bottom:.25rem}.hamburger[_ngcontent-%COMP%]:after{content:"menu";text-transform:capitalize;font-size:11px;font-weight:500;line-height:12px;margin-top:4px}.hamburger-active[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{transition:all ease .3s}.hamburger-active[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child{transform:rotate(45deg);top:4px;position:relative;width:22px}.hamburger-active[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2){display:none}.hamburger-active[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){transform:rotate(-45deg);top:-1px;position:relative;width:22px}',ite=(e,t)=>
744t.organisationId;function nte(e,t){if(e&1){let i=P();p(0,"div",1)(1,"fab-dropdown",3),T("outputReturnSelectedOptions",function(o){k(i);let r=g();return E(r.getSelectedOrgs(o))}),u(),x(2,"fab-button",4),u()}if(e&2){let i=g();d(),v("content",i.multiDropdownContent),d(),v("button",i.confirmOrgs)("enabled",i.confirmOrgsEnabled)}}function ote(e,t){e&1&&(p(0,"th"),C(1,"Employer name"),u(),p(2,"th"),C(3,"Employer ID"),u())}function rte(e,t){e&1&&(p(0,"th"),C(1,"Centre name"),u(),p(2,"th"),C(3,"Centre code"),u())}function ate(e,t){if(e&1&&(p(0,"tr")(1,"td"),C(2),u(),p(3,"td"),C(4),u()()),e&2){let i=t.$implicit,n=g(2);d(2),R(i.name),d(2),R(n.type===n.OrganisationPickerType.Employer?i.accountNumber:i.trainingprovidercode)}}function ste(e,t){if(e&1&&(p(0,"div",2)(1,"table")(2,"tr"),y(3,ote,4,0)(4,rte,4,0),u(),X(5,ate,5,2,"tr",null,ite),u()()),e&2){let i=g();d(3),w(i.type===i.OrganisationPickerType.Employer?3:4),d(2),ee(i.selectedOrgs)}}function lte(e,t){e&1&&(p(0,"h3"),C(1,"Your employer details"),u())}function cte(e,t){e&1&&(p(0,"h3"),C(1,"Your centre details"),u())}function dte(e,t){if(e&1&&(p(0,"h4"),C(1," Employer name: "),p(2,"strong"),C(3),u()(),p(4,"h4"),C(5),u()),e&2){let i=g(2);d(3),R(i.selectedItem.name),d(2),A("Employer ID: ",i.selectedItem.accountNumber)}}function ute(e,t){if(e&1&&(p(0,"h4"),C(1," Centre name: "),p(2,"strong"),C(3),u()(),p(4,"h4"),C(5),u()),e&2){let i=g(2);d(3),R(i.selectedItem.name),d(2),A("Centre code: ",i.selectedItem.trainingprovidercode)}}function pte(e,t){if(e&1&&(p(0,"div",9),y(1,dte,6,2)(2,ute,6,2),u()),e&2){let i=g();d(),w(i.type===i.OrganisationPickerType.Employer?1:2)}}function hte(e,t){if(e&1&&(p(0,"div"),C(1),u()),e&2){let i=g(3);d(),A(" ",i.selectedItem.name," ")}}function gte(e,t){if(e&1){let i=P();p(0,"fab-dropdown-simple",18),T("outputReturnSelectedOptions",function(o){k(i);let r=g(3);return E(r.chooseOrg(o))}),u()}if(e&2){let i=g(3);v("content",i.orgDropdown)}}function mte(e,t){if(e&1&&(p(0,"div",8),y(1,hte,2,1,"div")(2,gte,1,1,"fab-dropdown-simple",17),u()),e&2){let i=g(2);d(),w(i.orgCount===1?1:i.orgCount>1?2:-1)}}function fte(e,t){if(e&1&&(p(0,"span"),C(1),u()),e&2){let i=g(4);d(),A(" ",i.selectedItem.postalAddress.streetAddressLine1," ")}}function vte(e,t){if(e&1&&(p(0,"span"),C(1),u()),e&2){let i=g(4);d(),A(" ",i.selectedItem.postalAddress.streetAddressLine2)}}function Cte(e,t){if(e&1&&(p(0,"span"),C(1),u()),e&2){let i=g(4);d(),A(" ",i.selectedItem.postalAddress.addressLocality," ")}}function bte(e,t){if(e&1&&(p(0,"span"),C(1),u()),e&2){let i=g(4);d(),A(" ",i.selectedItem.postalAddress.postalCode," ")}}function _te(e,t){if(e&1&&(p(0,"span"),C(1),u()),e&2){let i=g(4);d(),A(" ",i.selectedItem.postalAddress.addressCountry," ")}}function yte(e,t){if(e&1&&(p(0,"div")(1,"strong",20),C(2,"Location"),u()(),p(3,"address"),y(4,fte,2,1,"span"),y(5,vte,2,1,"span"),y(6,Cte,2,1,"span"),y(7,bte,2,1,"span"),y(8,_te,2,1,"span"),u()),e&2){let i=g(3);d(4),w(i.selectedItem.postalAddress.streetAddressLine1?4:-1),d(),w(i.selectedItem.postalAddress.streetAddressLine2?5:-1),d(),w(i.selectedItem.postalAddress.addressLocality?6:-1),d(),w(i.selectedItem.postalAddress.postalCode?7:-1),d(),w(i.selectedItem.postalAddress.addressCountry?8:-1)}}function wte(e,t){if(e&1&&(p(0,"div",13)(1,"div",19),y(2,yte,9,5),u()()),e&2){let i=g(2);d(2),w(i.selectedItem.postalAddress?2:-1)}}function xte(e,t){if(e&1&&(p(0,"div")(1,"strong",21),C(2,"Phone"),u(),p(3,"a",22),C(4),u()()),e&2){let i=g(3);d(3),v("href","tel:"+i.selectedItem.tpContact.telephoneNumber,ae),d(),R(i.selectedItem.tpContact.telephoneNumber)}}function Ste(e,t){if(e&1&&(p(0,"div")(1,"strong",21),C(2,"Website"),u(),p(3,"a",22),C(4),u()()),e&2){let i=g(3);d(3),v("href",i.selectedItem.tpContact.website,ae),d(),R(i.selectedItem.tpContact.website)}}function kte(e,t){if(e&1&&(p(0,"div",15)(1,"strong",20),C(2,"Main contact"),u(),y(3,xte,5,2,"div"),y(4,Ste,5,2,"div"),u()),e&2){let i=g(2);d(3),w(i.selectedItem.tpContact.telephoneNumber?3:-1),d(),w(i.selectedItem.tpContact.website?4:-1)}}function Ete(e,t){e&1&&(p(0,"strong",20),C(1,"Role at employer "),u())}function Mte(e,t){e&1&&(p(0,"strong",20),C(1,"Role at centre "),u())}function Tte(e,t){if(e&1&&(p(0,"div",16),y(1,Ete,2,0,"strong",20)(2,Mte,2,0,"strong",20),p(3,"div"),C(4),u()()),e&2){let i=g(2);d(),w(i.type===i.OrganisationPickerType.Employer?1:2),d(3),R(i.selectedItem.role)}}function Ite(e,t){if(e&1&&(p(0,"div",10)(1,"div",11),y(2,mte,3,1,"div",8),u(),p(3,"div",12),y(4,wte,3,1,"div",13),p(5,"div",14),y(6,kte,5,2,"div",15),y(7,Tte,5,2,"div",16),u()()()),e&2){let i=g();d(2),w(i.allowOrgChange?2:-1),d(2),w(i.selectedItem?4:-1),d(2),w(i.selectedItem.tpContact?6:-1),d(),w(i.selectedItem.role?7:-1)}}function Dte(e,t){if(e&1&&(p(0,"div",2),x(1,"fab-button",5),u()),e&2){let i=g();d(),v("button",i.changeTypeButton)}}function Pte(e,t){e&1&&(p(0,"h3"),C(1,"Your employer details"),u())}function Rte(e,t){e&1&&(p(0,"h3"),C(1,"Your centre details"),u())}function Fte(e,t){if(e&1&&(p(0,"h4"),C(1," Employer name: "),p(2,"strong"),C(3),u()(),p(4,"h4"),C(5),u()),e&2){let i=g(3);d(3),R(i.selectedItem.name),d(2),A("Employer ID: ",i.selectedItem.accountNumber)}}function Ote(e,t){if(e&1&&(p(0,"h4"),C(1," Centre name: "),p(2,"strong"),C(3),u()(),p(4,"h4"),C(5),u()),e&2){let i=g(3);
744d(3),R(i.selectedItem.name),d(2),A("Centre code: ",i.selectedItem.trainingprovidercode)}}function Ate(e,t){if(e&1&&(p(0,"div",10),y(1,Fte,6,2)(2,Ote,6,2),u()),e&2){let i=g(2);d(),w(i.type===i.OrganisationPickerType.Employer?1:2)}}function Lte(e,t){if(e&1&&(p(0,"div",3)(1,"div",6)(2,"div",7),y(3,Pte,2,0,"h3")(4,Rte,2,0,"h3"),u()(),p(5,"div",8)(6,"div",9),y(7,Ate,3,1,"div",10),p(8,"div",11),x(9,"fab-button",5),u()()()()),e&2){let i=g();d(3),w(i.type===i.OrganisationPickerType.Employer?3:4),d(4),w(i.selectedItem.name?7:-1),d(2),v("button",i.changeOrg)}}function Nte(e,t){if(e&1){let i=P();p(0,"li",16),T("mousedown",function(){let o=k(i).$index;g();let r=de(3);return E(r.selectSuggestion(o))}),p(1,"span"),C(2),u()()}if(e&2){let i=t.$implicit,n=t.$index;g();let o=de(3);d(),Pe("selected",o.currentIndex==n),d(),R(i.label)}}function zte(e,t){if(e&1){let i=P();p(0,"div",4)(1,"div",12)(2,"fab-autocomplete2",13,0),T("ngModelChange",function(o){k(i);let r=g();return E(r.selectOrganisation(o))}),p(4,"strong",14),C(5,"Suggestions"),u(),p(6,"ul"),X(7,Nte,3,3,"li",15,se),u()()()()}if(e&2){let i=de(3),n=g();d(2),v("content",n.autoCompleteContent)("service",n.organisationPickerService.staffSearchService(n.type))("ngModel",n.defaultOrg),d(5),ee(i.results)}}function Bte(e,t){e&1&&x(0,"fab-loader")}function Vte(e,t){if(e&1){let i=P();p(0,"fab-organisation-picker-staff",4),T("selectedOrgsChange",function(o){k(i);let r=g(2);return E(r.onSelectionChange(o))}),u()}if(e&2){let i=g(2);v("type",i.type)("defaultOrg",i.availableOrgs[0])("allowStaffChangeType",i.staffCanChangeType)}}function Hte(e,t){if(e&1){let i=P();p(0,"fab-organisation-picker-multiselect",5),Jt("selectedOrgsChange",function(o){k(i);let r=g(2);return Qt(r.selectedOrgs,o)||(r.selectedOrgs=o),E(o)}),T("selectedOrgsChange",function(o){k(i);let r=g(2);return E(r.onSelectionChange(o))}),u()}if(e&2){let i=g(2);v("type",i.type)("availableOrgs",i.availableOrgs),Kt("selectedOrgs",i.selectedOrgs),v("allowOrgChange",i.allowOrgChange)}}function Gte(e,t){if(e&1){let i=P();p(0,"fab-organisation-picker-single",5),Jt("selectedOrgsChange",function(o){k(i);let r=g(2);return Qt(r.selectedOrgs,o)||(r.selectedOrgs=o),E(o)}),T("selectedOrgsChange",function(o){k(i);let r=g(2);return E(r.onSelectionChange(o))}),u()}if(e&2){let i=g(2);v("type",i.type)("availableOrgs",i.availableOrgs),Kt("selectedOrgs",i.selectedOrgs),v("allowOrgChange",i.allowOrgChange)}}function Ute(e,t){if(e&1&&y(0,Vte,1,3,"fab-organisation-picker-staff",2)(1,Hte,1,4,"fab-organisation-picker-multiselect",3)(2,Gte,1,4,"fab-organisation-picker-single",3),e&2){let i=g();w(i.organisationPickerService.isStaff()?0:i.isMultiSelectActive&&i.canSelectMultiple?1:2)}}function jte(e,t){if(e&1&&C(0),e&2){let i=g();A(" You are not currently connected to any ",i.getOrgWording(!0),". ")}}function Wte(e,t){if(e&1){let i=P();C(0),p(1,"a",6),T("click",function(){k(i);let o=g(2);return E(o.changeMode("multi"))}),C(2),u()}if(e&2){let i=g(2);A(" Select one ",i.getOrgWording()," / "),d(2),A("select multiple ",i.getOrgWording(!0))}}function $te(e,t){if(e&1){let i=P();p(0,"a",6),T("click",function(){k(i);let o=g(2);return E(o.changeMode("single"))}),C(1),u(),C(2)}if(e&2){let i=g(2);d(),A("Select one ",i.getOrgWording()),d(),A(" / select multiple ",i.getOrgWording(!0)," ")}}function qte(e,t){if(e&1&&(p(0,"div",1),y(1,Wte,3,2)(2,$te,3,2),u()),e&2){let i=g();d(),w(i.isMultiSelectActive?2:1)}}var Yte=(e,t,i)=>({invalid:e,"col-xs-12":t,"col-xs-11":i}),Kte=(e,t,i,n)=>({"payment-postcode-lookup_hidden":e,invalid:t,"col-xs-12":i,"col-xs-11":n});function Qte(e,t){e&1&&(p(0,"div",2)(1,"p"),C(2,"Please select the billing address for your payment card"),u()())}function Jte(e,t){if(e&1){let i=P();p(0,"div",3)(1,"label",6)(2,"input",7),T("change",function(){k(i);let o=g();return E(o.updateAddress("address"))}),u(),C(3),x(4,"span",8),u()()}if(e&2){let i=g();d(2),v("value",i.contact.address)("checked",i.addressType==="address"),d(),Yt(" ",i.contact==null||i.contact.address==null?null:i.contact.address.streetAddressLine1,", ",i.contact==null||i.contact.address==null?null:i.contact.address.postalCode," ")}}function Zte(e,t){if(e&1){let i=P();p(0,"div",3)(1,"label",6)(2,"input",9),T("change",function(){k(i);let o=g();return E(o.updateAddress("billingAddress"))}),u(),C(3),x(4,"span",8),u()()}if(e&2){let i=g();d(2),v("checked",i.addressType==="billingAddress")("value",i.contact.billingAddress),d(),Yt(" ",i.contact==null||i.contact.billingAddress==null?null:i.contact.billingAddress.streetAddressLine1,", ",i.contact==null||i.contact.billingAddress==null?null:i.contact.billingAddress.postalCode," ")}}function Xte(e,t){if(e&1){let i=P();p(0,"div",3)(1,"label",6)(2,"input",10),T("change",function(){k(i);let o=g();return E(o.updateAddress("other"))}),u(),C(3," Use a different address "),x(4,"span",8),u()()}if(e&2){let i=g();d(2),v("checked",i.addressType==="other")}}function eie(e,t){e&1&&(p(0,"div",4),x(1,"i",11),u())}function tie(e,t){e&1&&(p(0,"div",5),C(1,"Select a billing address"),u())}function iie(e,t){e&1&&(p(0,"div",4),x(1,"i",11),u())}function nie(e,t){e&1&&(p(0,"div",5),C(1,"Please enter a billing address"),u())}function oie(e,t){if(e&1&&(p(0,"div",1)(1,"b"),C(2),u()()),e&2){let i=g();d(2),R(i.content.label)}}function rie(e,t){if(e&1&&x(0,"img",3),e&2){let i=g().$implicit;v("src",vt("/assets/images/registration/",i.name,".svg"),ae)}}function aie(e,t){if(e&1&&(p(0,"div")(1,"div",8),C(2," Select this option if your college, training provider or employer has given you a payment code "),u(),x(3,"fab-input-text-2",9),N(4,"formControl"),p(5,"div",10),C(6,"Format: F3F-4C9-694"),u()()),e&2){let i=g(3);d(3),v("content",i.paymentCodeInputInterface)("formControl",G(4,2,i.form.controls.paymentCode))}}function sie(e,t){e&1&&(p(0,"div")(1,"div",11),x(2,"i",12),p(3,"strong"),C(4,"You can only use a payment code when purchasing one product in your basket. Please edit your basket to continue or pay by card instead."),u()()())}function lie(e,t){if(e&1&&(p(0,"div",7),y(1,aie,7,4,"div"),y(2,sie,5,0,"div"),u()),e&2){let i=g(2);d(),w(i.basketCount===1&&i.form.controls.paymentCode?1:-1),d(),w(i.basketCount>1?2:-1)}}function cie(e,t){if(e&1){let i=P();p(0,"div",2),y(1,rie,1,2,"img",3),p(2,"label",4),C(3),p(4,"input",5),T("click",function(){let o=k(i).$implicit,r=g();return E(r.onPaymentTypeChange(o.name))}),u(),x(5,"span",6),u(),y(6,lie,3,2,"div",7),u()}if(e&2){let i=t.$implicit,n=g();d(),w(i.image?1:-1),d(2),A("",i.label," "),d(),v("value",i.name),d(2),w(n.form.value.paymentType==="code"&&i.name==="code"?6:-1)}}function die(e,t){if(e&1){let i=P();p(0,"fab-radio",14),T("selectEvent",function(o){k(i);let r=g();return E(r.setInstalmentRadioOptionValue(o))}),u()}if(e&2){let i=t.$implicit;v("content",i)}}function uie(e,t){if(e&1&&x(0,"fab-billing-address",10,0),e&2){let i=g();v("form",i.debitCardForm)("contact",i.contact)}}function pie(e,t){if(e&1){let i=P();p(0,"div")(1,"fab-direct-debit",1),T("backButtonClick",function(){k(i);let o=g();return E(o.onBackButtonClick.next())})("formSubmit",function(o){k(i);let r=g();return E(r.nextStep(o))}),u()()}if(e&2){let i=g();d(),v("contact",i.contact)("debitCardForm",i.debitCardForm)}}function hie(e,t){if(e&1&&x(0,"fab-billing-address",12),e&2){let i=g(3);v("form",i.paymentForm)("contact",i.contact)}}function gie(e,t){if(e&1){let i=P();p(0,"fab-payment-options",11),T("paymentTypeChange",function(o){k(i);let r=g(2);return E(r.onPaymentTypeChange(o))}),u(),y(1,hie,1,2,"fab-billing-address",12),p(2,"div",13)(3,"p",14),C(4," For security, we use Opayo to process card payments. We don't store any debit or credit card information. By providing your payment details, you're agreeing to them handling your details for the sole purposes of processing your payment, for this purchase. For more details, read the "),p(5,"a",15),C(6,"privacy policy"),u(),C(7,". "),u(),p(8,"p",14),C(9," Not all fees are refundable. For more details, please read the "),p(10,"a",16),C(11,"Refund policy (PDF)"),u(),C(12,". "),u()(),p(13,"div"),x(14,"fab-notification",17),u()}if(e&2){let i=g(2);v("content",i.paymentOptions)("form",i.paymentForm),d(),w(i.paymentForm.value.paymentType!=="code"&&i.contact?1:-1),d(13),v("notification",i.notificationPaymentCode)("isNotificationOpen",i.showPaymentCodeError)}}function mie(e,t){e&1&&(p(0,"p"),C(1," You are not required to pay any fees for this transaction. Your total amount is \xA30.00. Click 'Next' to continue with your registration. "),u())}function fie(e,t){if(e&1){let i=P();p(0,"div",0)(1,"div",2),x(2,"br")(3,"br"),p(4,"div",3),y(5,gie,15,5)(6,mie,2,0,"p"),p(7,"div",4)(8,"div",5)(9,"a",6),T("click",function(){k(i);let o=g();return E(o.onBackButtonClick.next())}),C(10,"Go back"),u()(),p(11,"div"),x(12,"fab-button",7),u()(),p(13,"div",8)(14,"h3")(15,"strong"),C(16," Need help? "),u()(),p(17,"p",9),C(18,"Speak to one of our advisors for help with your payment."),u(),p(19,"p",9),C(20,"Call "),p(21,"a",10),C(22,"+44 (0)20 3735 2468"),u()(),p(23,"p",9),C(24,"Our lines are open Monday to Frid
744ay 09.00 to 17.00 (UK time)."),u()()()()()}if(e&2){let i=g();v("formGroup",i.paymentForm),d(5),w(i.paymentOptions.required?5:6),d(7),v("button",i.formSubmitButton)("enabled",i.paymentForm.valid||!i.paymentOptions.required)}}function vie(e,t){if(e&1&&(p(0,"span"),C(1),u()),e&2){let i=g(2);d(),R(i.postalAddress.addressRegion)}}function Cie(e,t){if(e&1&&(p(0,"span"),C(1),u()),e&2){let i=g(2);d(),Yt(" ",i.postalAddress.addressRegion?",":""," ",i.country," ")}}function bie(e,t){if(e&1&&(p(0,"div",1),y(1,vie,2,1,"span"),y(2,Cie,2,2,"span"),u()),e&2){let i=g();d(),w(i.postalAddress.addressRegion?1:-1),d(),w(i.postalAddress.addressCountry&&i.displayCountry&&i.country?2:-1)}}function _ie(e,t){if(e&1&&(p(0,"span",2),C(1),u()),e&2){let i=g(2);d(),R(i.postalAddress.streetAddressLine2)}}function yie(e,t){if(e&1&&(p(0,"span",2),C(1),u()),e&2){let i=g(2);d(),R(i.postalAddress.streetAddressLine3)}}function wie(e,t){if(e&1&&(p(0,"span",3),C(1),u()),e&2){let i=g(2);d(),R(i.postalAddress.addressLocality)}}function xie(e,t){if(e&1&&(p(0,"span",4),C(1),u()),e&2){let i=g(2);d(),R(i.postalAddress.addressRegion)}}function Sie(e,t){if(e&1&&(p(0,"span",5),C(1),u()),e&2){let i=g(2);d(),R(i.postalAddress.postalCode)}}function kie(e,t){if(e&1&&(p(0,"span",6),C(1),u()),e&2){let i=g(2);d(),R(i.country)}}function Eie(e,t){if(e&1&&(p(0,"div")(1,"span",2),C(2),u(),y(3,_ie,2,1,"span",2),y(4,yie,2,1,"span",2),y(5,wie,2,1,"span",3),y(6,xie,2,1,"span",4),y(7,Sie,2,1,"span",5),y(8,kie,2,1,"span",6),u()),e&2){let i=g();d(2),R(i.postalAddress.streetAddressLine1),d(),w(i.postalAddress.streetAddressLine2?3:-1),d(),w(i.postalAddress.streetAddressLine3?4:-1),d(),w(i.postalAddress.addressLocality?5:-1),d(),w(i.postalAddress.addressRegion?6:-1),d(),w(i.postalAddress.postalCode?7:-1),d(),w(i.postalAddress.addressCountry&&i.displayCountry&&i.country?8:-1)}}var Mie=(e,t,i)=>({"progress-indicator__none":e,"progress-indicator__selected":t,"progress-indicator__done":i});function Tie(e,t){if(e&1&&(p(0,"p",1),C(1),u()),e&2){let i=g();d(),A(" ",i.getCustomTitle()," ")}}function Iie(e,t){if(e&1&&(p(0,"p",1),C(1),p(2,"b"),C(3),u()()),e&2){let i=g();d(),Yt(" Step ",i.config.currentStep," of ",i.config.maxSteps,": "),d(2),R(i.config.stepTitle)}}function Die(e,t){if(e&1){let i=P();p(0,"span",5),T("click",function(){let o=k(i).$implicit,r=g();return E(r.onClick(o))}),u()}if(e&2){let i=t.$implicit,n=g();v("ngClass",hi(1,Mie,i>n.config.currentStep,n.config.highlightCurrentStep&&i===n.config.currentStep,!n.config.highlightCurrentStep&&i===n.config.currentStep||i<n.config.currentStep))}}function Pie(e,t){if(e&1&&x(0,"fab-label",1),e&2){let i=t.$implicit;v("content",i)}}function Rie(e,t){e&1&&C(0," \xA0|\xA0 ")}function Fie(e,t){if(e&1){let i=P();p(0,"fab-dropdown-simple",3),T("outputReturnSelectedOptions",function(o){k(i);let r=g(2);return E(r.onDropdownChange(o))}),u()}if(e&2){let i=g(2);v("content",i.dropdownContent)("fixedContent","Change qualification")("selectContent",i.selectedDropdownItem)}}function Oie(e,t){if(e&1&&(p(0,"div",0)(1,"h1"),C(2),u(),X(3,Pie,1,1,"fab-label",1,se),y(5,Rie,1,0),y(6,Fie,1,3,"fab-dropdown-simple",2),u()),e&2){let i=g();d(2),R(i.selectedQualification.name),d(),ee(i.selectedQualification.labels),d(2),w(i.dropdownContent.options&&i.dropdownContent.options.length>1&&i.selectedQualification.labels&&i.selectedQualification.labels.length>0?5:-1),d(),w(i.dropdownContent.options&&i.dropdownContent.options.length>1?6:-1)}}var D0=(e,t)=>t.id;function Aie(e,t){if(e&1&&(p(0,"p",9),C(1),u()),e&2){let i=g().$implicit;d(),R(i.sublabel)}}function Lie(e,t){if(e&1&&(p(0,"p",9),C(1),u()),e&2){let i=g().$implicit;d(),R(i.tooltip)}}function Nie(e,t){if(e&1){let i=P();p(0,"label",4),C(1),p(2,"input",10),T("click",function(){let o=k(i).$implicit,r=g(5);return E(r.selectLevel2(o))}),u(),x(3,"span",6),u()}if(e&2){let i=t.$implicit,n=t.$index,o=g(5);d(),A(" ",i.label," "),d(),v("value",n)("checked",(o.level2==null?null:o.level2.id)===i.id)}}function zie(e,t){if(e&1&&(p(0,"div",7),X(1,Nie,4,3,"label",4,D0),u()),e&2){let i=g().$implicit;d(),ee(i.children)}}function Bie(e,t){if(e&1){let i=P();p(0,"div")(1,"label",4),C(2),p(3,"input",8),T("click",function(){let o=k(i).$implicit,r=g(3);return E(r.selectLevel1(o))}),u(),x(4,"span",6),u(),y(5,Aie,2,1,"p",9),y(6,Lie,2,1,"p",9),y(7,zie,3,0,"div",7),u()}if(e&2){let i=t.$implicit,n=t.$index,o=g(3);d(2),A(" ",i.label," "),d(),v("value",n)("checked",(o.level1==null?null:o.level1.id)===i.id),d(2),w(i.sublabel?5:-1),d(),w(i.tooltip?6:-1),d(),w((o.level1==null?null:o.level1.id)===i.id&&(i.children!=null&&i.children.length)?7:-1)}}function Vie(e,t){if(e&1&&(p(0,"div",7),X(1,Bie,8,6,"div",null,D0),u()),e&2){let i=g().$implicit;d(),ee(i.children)}}function Hie(e,t){if(e&1){let i=P();p(0,"div")(1,"label",4),C(2),p(3,"input",5),T("click",function(){let o=k(i).$implicit,r=g();return E(r.selectLevel0(o))}),u(),x(4,"span",6),u(),y(5,Vie,3,0,"div",7),u()}if(e&2){let i=t.$implicit,n=t.$index,o=g();d(2),A(" ",i.label," "),d(),v("value",n)("checked",(o.level0==null?null:o.level0.id)===i.id),d(2),w((o.level0==null?null:o.level0.id)===i.id&&(i.children!=null&&i.children.length)?5:-1)}}function Gie(e,t){if(e&1&&(p(0,"a",6)(1,"span"),C(2),u(),x(3,"fab-aat-icon",8),u()),e&2){let i=g().$implicit,n=g();v("href",i.url,ae),d(2),R(i.label),d(),v("content",n.icon.content)("size",n.icon.size)}}function Uie(e,t){if(e&1&&(p(0,"a",7)(1,"span"),C(2),u(),x(3,"fab-aat-icon",8),u()),e&2){let i=g().$implicit,n=g();v("routerLink",i.url),d(2),R(i.label),d(),v("content",n.icon.content)("size",n.icon.size)}}function jie(e,t){if(e&1&&(p(0,"li",5),y(1,Gie,4,4,"a",6),y(2,Uie,4,4,"a",7),u()),e&2){let i=t.$implicit;d(),w(i.type==="href"?1:-1),d(),w(i.type==="routerLink"?2:-1)}}function Wie(e,t){if(e&1&&(p(0,"a",5)(1,"h4")(2,"strong"),C(3),u()()()),e&2){let i=g();xt("background-image",i.links.linkOne.image&&i.links.linkOne.image.length?"url("+i.links.linkOne.image+")":""),v("href",ne(i.links.linkOne.link),ae)("target",ne(i.links.linkOne.target?"_blank":"_self")),d(3),R(i.links.linkOne.text)}}function $ie(e,t){if(e&1&&(p(0,"a",6)(1,"h4")(2,"strong"),C(3),u()()()),e&2){let i=g();xt("background-image",i.links.linkOne.image&&i.links.linkOne.image.length?"url("+i.links.linkOne.image+")":""),v("routerLink",z(4,Ge,"/"+i.links.linkOne.link)),d(3),R(i.links.linkOne.text)}}function qie(e,t){if(e&1&&(p(0,"a",7)(1,"h4"),x(2,"i"),p(3,"strong"),C(4),u()()()),e&2){let i=g(2);v("href",ne(i.links.linkTwo.link),ae)("target",ne(i.links.linkTwo.target?"_blank":"_self")),d(2),pe(vt("icon icon-",i.links.linkTwo.icon)),d(2),Yt("",i.links.linkTwo.icon?i.bookMarkCount+" ":"","",i.links.linkTwo.text)}}function Yie(e,t){if(e&1&&(p(0,"a",8)(1,"h4"),x(2,"i"),p(3,"strong"),C(4),u()()()),e&2){let i=g(2);v("routerLink",z(6,Ge,"/"+i.links.linkTwo.link)),d(2),pe(vt("icon icon-",i.links.linkTwo.icon)),d(2),Yt("",i.links.linkTwo.icon?i.bookMarkCount+" ":"","",i.links.linkTwo.text)}}function Kie(e,t){if(e&1&&(y(0,qie,5,9,"a",7),y(1,Yie,5,8,"a",8)),e&2){let i=g();w(i.links.linkTwo.useRouterLink?-1:0),d(),w(i.links.linkTwo.useRouterLink?1:-1)}}function Qie(e,t){if(e&1&&(p(0,"a",7)(1,"h4")(2,"strong"),C(3),u()()()),e&2){let i=g(2);v("href",ne(i.links.linkTwo.link),ae)("target",ne(i.links.linkTwo.target?"_blank":"_self")),d(3),R(i.links.linkTwo.text)}}function Jie(e,t){if(e&1&&(p(0,"a",8)(1,"h4")(2,"strong"),C(3),u()()()),e&2){let i=g(2);v("routerLink",z(2,Ge,"/"+i.links.linkTwo.link)),d(3),R(i.links.linkTwo.text)}}function Zie(e,t){if(e&1&&(y(0,Qie,4,5,"a",7),y(1,Jie,4,4,"a",8)),e&2){let i=g();w(i.links.linkTwo.useRouterLink?-1:0),d(),w(i.links.linkTwo.useRouterLink?1:-1)}}function Xie(e,t){if(e&1&&(p(0,"a",9)(1,"h4")(2,"strong"),C(3),u()()()),e&2){let i=g();xt("background-image",i.links.linkThree.image&&i.links.linkThree.image.length?"url("+i.links.linkThree.image+")":""),v("href",ne(i.links.linkThree.link),ae)("target",ne(i.links.linkThree.target?"_blank":"_self")),d(3),R(i.links.linkThree.text)}}function ene(e,t){if(e&1&&(p(0,"a",10)(1,"h4")(2,"strong"),C(3),u()()()),e&2){let i=g();xt("background-image",i.links.linkThree.image&&i.links.linkThree.image.length?"url("+i.links.linkThree.image+")":""),v("routerLink",z(4,Ge,"/"+i.links.linkThree.link)),d(3),R(i.links.linkThree.text)}}function tne(e,t){if(e&1&&(p(0,"a",7)(1,"span"),C(2),u(),x(3,"fab-aat-icon",9),u()),e&2){let i=g().$implicit,n=g(2);v("href",i.url,ae),d(2),R(i.label),d(),v("content",n.icon.content)("size",n.icon.size)}}function ine(e,t){if(e&1&&(p(0,"a",8)(1,"span"),C(2),u(),x(3,"fab-aat-icon",9),u()),e&2){let i=g().$implicit,n=g(2);v("routerLink",i.url),d(2),R(i.label),d(),v("content",n.icon.content)("size",n.icon.size)}}function nne(e,t){if(e&1&&(p(0,"li",6),y(1,tne,4,4,"a",7),y(2,ine,4,4,"a",8),u()),e&2){let i=t.$implicit;d(),w(i.type==="href"?1:-1),d(),w(i.type==="routerLink"?2:-1)}}function one(e,t){if(e&1&&(p(0,"ul",5),mv("ql-accordion-collapse"),gv("ql-accordion-expand"),X(1,nne,3,2,"li",6,I0),u()),e&2){let i=g();
744v("hidden",!i.open),d(),ee(i.links)}}var rne=(e,t)=>({"icon-arrow-down":e,"icon-arrow-up":t}),ane=(e,t)=>({label:e,id:t}),sne=(e,t,i)=>({id:e,value:t,label:i});function lne(e,t){if(e&1){let i=P();p(0,"div",4),T("click",function(){k(i);let o=g();return E(o.closeOverlay())}),x(1,"i",5),u()}}function cne(e,t){if(e&1&&(p(0,"div",8),x(1,"i",10),u()),e&2){let i=g().$implicit;d(),v("tooltip",i.tooltip)("positionInput",i.tooltipPosition)}}function dne(e,t){e&1&&x(0,"div")}function une(e,t){if(e&1){let i=P();p(0,"div",11)(1,"div",12)(2,"fab-input-checkbox",13),T("onChange",function(o){let r=k(i).$index,a=g(2).$index,s=g();return E(s.applyFilter(o,a,r))}),u()()()}if(e&2){let i=t.$implicit,n=t.$index,o=g(2),r=o.$implicit,a=o.$index,s=g();v("ngClass",z(3,As,r.accordionClosed)),d(2),v("content",Re(5,ane,s.generateLabel(a,n),i.id))("isChecked",i.prechecked)}}function pne(e,t){if(e&1&&(p(0,"div"),X(1,une,3,8,"div",11,se),u()),e&2){let i=g().$implicit;d(),ee(i.options)}}function hne(e,t){if(e&1){let i=P();p(0,"div",11)(1,"div",14)(2,"fab-radio",15),T("selectEvent",function(o){let r=k(i).$index,a=g(2).$index,s=g();return E(s.applyFilter(o,a,r))}),u()()()}if(e&2){let i=t.$implicit,n=t.$index,o=g(2),r=o.$implicit,a=o.$index,s=g();v("ngClass",z(3,As,r.accordionClosed)),d(2),v("content",hi(5,sne,i.id,i.filterString,s.generateLabel(a,n)))("checkedVal",i.prechecked)}}function gne(e,t){if(e&1&&(p(0,"div"),X(1,hne,3,9,"div",11,se),u()),e&2){let i=g().$implicit;d(),ee(i.options)}}function mne(e,t){if(e&1){let i=P();p(0,"div"),x(1,"hr"),p(2,"div",6),T("click",function(){let o=k(i).$index,r=g();return E(r.accordionInteraction(o))}),p(3,"div",7)(4,"p")(5,"strong"),C(6),u()()(),y(7,cne,2,2,"div",8)(8,dne,1,0,"div"),x(9,"i",9),u(),p(10,"div"),y(11,pne,3,0,"div"),y(12,gne,3,0,"div"),u()()}if(e&2){let i=t.$implicit;d(6),A(" ",i.accordionTitle," "),d(),w(i.tooltip?7:8),d(2),v("ngClass",Re(6,rne,i.accordionClosed,!i.accordionClosed)),d(),v("@closeOpenAccordion",!!i.accordionClosed),d(),w(!i.config||i.config==="checkbox"?11:-1),d(),w(i.config==="radio"?12:-1)}}function fne(e,t){if(e&1&&(p(0,"div",3),x(1,"fab-button",16),u()),e&2){let i=g();d(),v("button",i.mobileFilterButton)}}function vne(e,t){if(e&1&&(p(0,"div",0),x(1,"iframe",1),u()),e&2){let i=g();d(),v("src",i.iframeSrc(),ah)}}function Cne(e,t){if(e&1){let i=P();p(0,"div",14),T("click",function(){k(i);let o=g();return E(o.open())}),p(1,"span",15),C(2,"Show order summary"),u(),p(3,"span",16),x(4,"i",17),u(),p(5,"span",18),C(6),u()()}if(e&2){let i=g();d(6),R(i.headerText)}}function bne(e,t){if(e&1){let i=P();p(0,"div",14),T("click",function(){k(i);let o=g();return E(o.close())}),p(1,"span",15),C(2,"Hide order summary"),u(),p(3,"span",16),x(4,"i",19),u()()}}function _ne(e,t){if(e&1&&(p(0,"div",5),C(1),N(2,"toFixed"),u()),e&2){let i=g();d(),A("\xA3",G(2,1,i.subTotal))}}function yne(e,t){if(e&1&&(p(0,"div",9),x(1,"fab-button",20),u()),e&2){let i=g();d(),v("button",i.editBasket)}}function wne(e,t){if(e&1&&(p(0,"div",10)(1,"div",21),C(2),u()()),e&2){let i=g();d(2),R(i.subheadingText)}}function xne(e,t){if(e&1&&(p(0,"span"),C(1),u()),e&2){let i=g().$implicit;d(),A("(",i.qualificationStandardName,")")}}function Sne(e,t){if(e&1&&(p(0,"div")(1,"div")(2,"div",6)(3,"div",22)(4,"h4")(5,"strong"),C(6),y(7,xne,2,1,"span"),u(),p(8,"div",23),C(9),u()()(),p(10,"div",24),C(11),N(12,"toFixed"),u()(),p(13,"div",25)(14,"div",22),x(15,"p",26),u(),x(16,"div",27),u()(),x(17,"hr",28),u()),e&2){let i=t.$implicit,n=g();d(2),v("className",n.stackValues?"stack-values":"row"),d(),Pe("stack-values__space",n.stackValues),d(3),A(" ",i.name," "),d(),w(i.qualificationStandardName?7:-1),d(2),R(i.scottishQualificationLevel),d(2),A("\xA3",G(12,8,i.price)),d(4),v("innerHTML",i.basketText,ue)}}function kne(e,t){if(e&1&&(p(0,"div",11)(1,"div",29)(2,"b"),C(3,"Subtotal"),u()(),p(4,"div",24)(5,"b"),C(6),N(7,"toFixed"),u()()()),e&2){let i=g();v("className",i.stackValues?"stack-values":"row"),d(6),A("\xA3",G(7,2,i.subTotal))}}function Ene(e,t){if(e&1&&(p(0,"div",12)(1,"div",29),C(2),u(),p(3,"div",24),C(4),N(5,"toFixed"),u()()),e&2){let i=t.$implicit,n=g();v("className",n.stackValues?"stack-values":"row"),d(2),R(i.name),d(2),A("\xA3",G(5,3,i.amount))}}function Mne(e,t){if(e&1&&(p(0,"div",12)(1,"div",29),C(2),u(),p(3,"div",30),C(4),N(5,"toFixed"),u()()),e&2){let i=t.$implicit,n=g();v("className",n.stackValues?"stack-values":"row"),d(2),R(i.name),d(2),A("-\xA3",G(5,3,i.amount))}}function Tne(e,t){if(e&1&&(p(0,"div",13)(1,"div",22)(2,"p",31)(3,"strong"),C(4,"Total"),u()()(),p(5,"div",32)(6,"p",33)(7,"strong"),C(8),N(9,"toFixed"),u()()()()),e&2){let i=g();v("className",i.stackValues?"stack-values":"row"),d(8),A("\xA3",G(9,2,i.total))}}var Ine=e=>({"tab-nav__list--titled col-md-9":e});function Dne(e,t){if(e&1&&(p(0,"div",2)(1,"h5"),C(2),u()()),e&2){let i=g();d(2),A(" ",i.content.title," ")}}function Pne(e,t){if(e&1&&(p(0,"div",4),x(1,"fab-button-tab",5),u()),e&2){let i=t.$implicit;d(),v("button",i)}}function Rne(e,t){if(e&1&&x(0,"fab-button",1),e&2){let i=g();v("button",i.params.buttonConfig)}}function Fne(e,t){if(e&1&&x(0,"fab-loader",2),e&2){let i=g();v("size",i.LoaderSize.SMALL)}}function One(e,t){if(e&1){let i=P();p(0,"fab-input-checkbox",1),Jt("isCheckedChange",function(o){k(i);let r=g();return Qt(r.params.value,o)||(r.params.value=o),E(o)}),T("onChange",function(o){k(i);let r=g();return E(r.onChange(o))}),u()}if(e&2){let i=g();Kt("isChecked",i.params.value),v("content",i.checkboxContent)}}function Ane(e,t){if(e&1){let i=P();p(0,"a",2),T("click",function(){k(i);let o=g(2);return E(o.onClick())}
744),u()}if(e&2){let i=g(2);v("innerHtml",i.params.customHtml,ue)("ngClass",z(2,BS,i.params.isDisabled))}}function Lne(e,t){if(e&1&&x(0,"fab-button",1),e&2){let i=g(2);v("button",i.params.buttonConfig)}}function Nne(e,t){if(e&1&&y(0,Ane,1,4,"a",0)(1,Lne,1,1,"fab-button",1),e&2){let i=g();w(i.params.customHtml?0:1)}}var zne=["tabs"],Bne=e=>({"tabs-block--reverse-order":e}),$S=e=>({"tabs-block__tabs--arrow-hidden":e}),Vne=e=>({"tab-selected":e});function Hne(e,t){if(e&1){let i=P();p(0,"div",4)(1,"i",6),T("click",function(){k(i);let o=g(2);return E(o.scrollTabs("left"))})("keydown.Enter",function(){k(i);let o=g(2);return E(o.scrollTabs("left"))}),u()()}if(e&2){let i=g(2);v("ngClass",z(1,$S,i.hideLeftArrow))}}function Gne(e,t){if(e&1){let i=P();p(0,"div",7),T("click",function(){let o=k(i).$index,r=g(2);return E(r.tabClick(o))})("keydown.Enter",function(){let o=k(i).$index,r=g(2);return E(r.tabClick(o))}),u()}if(e&2){let i=t.$implicit,n=t.$index,o=g(2);v("innerHTML",i.name,ue)("ngClass",z(2,Vne,o.index===n))}}function Une(e,t){if(e&1){let i=P();p(0,"div",4)(1,"i",8),T("click",function(){k(i);let o=g(2);return E(o.scrollTabs("right"))})("keydown.Enter",function(){k(i);let o=g(2);return E(o.scrollTabs("right"))}),u()()}if(e&2){let i=g(2);v("ngClass",z(1,$S,i.hideRightArrow))}}function jne(e,t){if(e&1&&(p(0,"div",14),x(1,"i",15),u()),e&2){let i=g(2).$implicit;d(),v("tooltip",i.toolTip)("positionInput","left")}}function Wne(e,t){if(e&1&&(p(0,"div",9)(1,"div",10)(2,"h4"),x(3,"strong",11),u(),x(4,"div",11),u(),p(5,"div",12),x(6,"div",13),y(7,jne,2,2,"div",14),u()()),e&2){let i=g().$implicit;d(3),v("innerHTML",i.heading,ue),d(),v("innerHTML",i.content,ue),d(2),xt("background-image","url("+i.background+")"),d(),w(i.toolTip?7:-1)}}function $ne(e,t){if(e&1&&(p(0,"div"),y(1,Wne,8,5,"div",9),u()),e&2){let i,n=t.$index,o=g(3);d(),w((i=o.index)===n?1:-1)}}function qne(e,t){if(e&1&&(p(0,"div"),X(1,$ne,2,1,"div",null,se),u()),e&2){let i=g(2);d(),ee(i.content.tabData)}}function Yne(e,t){if(e&1){let i=P();p(0,"div",1),x(1,"div",2),p(2,"div",3,0),T("scroll",function(){k(i);let o=g();return E(o.onScroll())}),y(4,Hne,2,3,"div",4),X(5,Gne,1,4,"div",5,se),y(7,Une,2,3,"div",4),u(),y(8,qne,3,0,"div"),u()}if(e&2){let i=g();v("ngClass",z(7,Bne,i.content.imagePosition==="right")),d(),v("innerHTML",i.content.title,ue),d(),v("id",vt("tabs-",i.id)),d(2),w(i.isScrollable?4:-1),d(),ee(i.content.tabData),d(2),w(i.isScrollable?7:-1),d(),w(i.content.hideContent?-1:8)}}function Kne(e,t){if(e&1&&x(0,"div",1),e&2){let i=g().$implicit;v("innerHtml",i.cardHeading,ue)}}function Qne(e,t){if(e&1&&x(0,"div",2),e&2){let i=g().$implicit;v("innerHtml",i.description,ue)}}function Jne(e,t){if(e&1&&(y(0,Kne,1,1,"div",1),y(1,Qne,1,1,"div",2),x(2,"fab-assessment-card",3)),e&2){let i=t.$implicit;w(i.cardHeading?0:-1),d(),w(i.description?1:-1),d(),v("content",i)}}function Zne(e,t){if(e&1&&x(0,"div",2),e&2){let i=g();v("innerHTML",i.content.title1,ue)}}function Xne(e,t){if(e&1&&x(0,"div",2),e&2){let i=g();v("innerHTML",i.content.text1,ue)}}function eoe(e,t){if(e&1&&x(0,"div",2),e&2){let i=g();v("innerHTML",i.content.title2,ue)}}function toe(e,t){if(e&1&&x(0,"div",2),e&2){let i=g();v("innerHTML",i.content.contact,ue)}}function ioe(e,t){if(e&1&&x(0,"div",2),e&2){let i=g();v("innerHTML",i.content.text2,ue)}}var noe=e=>({"character-limit__over":e});function ooe(e,t){if(e&1&&(p(0,"div",0),x(1,"ngx-editor-menu",2)(2,"ngx-editor",3),u()),e&2){let i=g();d(),v("editor",i.editor)("toolbar",i.toolbar),d(),v("editor",i.editor)("placeholder",i.config.placeholder)}}function roe(e,t){if(e&1&&(p(0,"div",1)(1,"span",4),C(2),u()()),e&2){let i=g();d(),v("ngClass",z(3,noe,i.remainingCharacters<0)),d(),Yt("",i.remainingCharacters," character",i.remainingCharacters===1?"":"s"," remaining")}}var aoe=(e,t,i,n,o,r)=>({"user-logged-in":e,"nav-opened":t,"nav-collapsed":i,"no-left-nav":n,"show-left-nav":o,"right-pane-opened":r});function soe(e,t){if(e&1){let i=P();p(0,"fab-logged-in-nav",8),T("navIsOpened",function(o){k(i);let r=g();return E(r.onNavIsOpened(o))}),u()}if(e&2){let i=g();v("content",i.khLeftNavData)}}function loe(e,t){if(e&1&&x(0,"fab-header",2),e&2){let i=g();v("fab-gtm",i.layoutSetup.layoutProperties.GTM_ID)}}function coe(e,t){if(e&1&&x(0,"fab-notification",7),e&2){let i=t.$implicit;v("isNotificationOpen",!0)("notification",i)}}function doe(e,t){if(e&1&&x(0,"fab-footer",1),e&2){let i=g();v("content",i.footerContent)}}var uoe=e=>({"payment-codes--hidden":e});function poe(e,t){e&1&&x(0,"fab-loader")}function hoe(e,t){if(e&1){let i=P();p(0,"fab-organisation-picker",10),T("orgChange",function(o){k(i);let r=g();return E(r.changeOrganisation(o))}),u()}if(e&2){let i=g();v("staffCanChangeType",!1)("type",i.OrganisationPickerType.Employer)("allowOrgChange",!0)}}function goe(e,t){if(e&1){let i=P();p(0,"fab-organisation-picker",10),T("orgChange",function(o){k(i);let r=g();return E(r.changeOrganisation(o))}),u()}if(e&2){let i=g();v("staffCanChangeType",!1)("type",i.OrganisationPickerType.TrainingProvider)("allowOrgChange",!0)}}function moe(e,t){e&1&&x(0,"fab-loader")}function foe(e,t){e&1&&x(0,"router-outlet")}function voe(e,t){if(e&1&&(p(0,"div",9)(1,"h3"),C(2,"Sorry, you can't currently access this service"),u(),p(3,"p"),C(4),p(5,"a",11),C(6,"contact us"),u(),C(7,". "),u()()),e&2){let i=g();d(4),Yt(" This may be because you don't have the correct role at your selected ",i.paymentCodesService.dynamicWording("centre","employer"),". You could try selecting a different ",i.paymentCodesService.dynamicWording("centre","employer")," from the drop-down (if applicable). If you think you should have access, please ")}}var Coe=["results"],boe=["table"],_oe=e=>({"disable-paginate-last":e});function yoe(e,t){if(e&1){let i=P();p(0,"div",4)(1,"p"),C(2," You must acknowledge and accept that users and their employing organisation are responsible for any data downloaded or copied from the system, including for the security of that data in accordance with "),p(3,"a",5),C(4," AAT's terms and conditions "),u(),C(5," and the contractual agreements between AAT and your employing organisation. "),u(),p(6,"fab-input-checkbox",6),T("onChange",function(){k(i);let o=g();return E(o.confirmCsvDownloadCheck())}),Jt("isCheckedChange",function(o){k(i);let r=g();return Qt(r.confirmCsvButtonEnabled,o)||(r.confirmCsvButtonEnabled=o),E(o)}
744),u(),x(7,"br")(8,"fab-button",7),u()}if(e&2){let i=g();d(6),v("content",i.confirmCsvCheckBox),Kt("isChecked",i.confirmCsvButtonEnabled),d(2),v("enabled",i.confirmCsvButtonEnabled)("button",i.confirmDownloadButton)}}function woe(e,t){e&1&&(p(0,"div",13),C(1," Sorry, there was a problem saving one or more of your allocations. Please try again or refresh the page if the issue persists. "),u())}function xoe(e,t){if(e&1){let i=P();p(0,"div",8)(1,"h4")(2,"strong"),C(3),u()(),x(4,"fab-button",7),u(),p(5,"p",9),x(6,"i",10),p(7,"span"),C(8,"If you make any changes to the Allocated column, please ensure you click \u201CSave allocation changes\u201D, otherwise your changes won't be saved."),u()(),p(9,"fab-table",11,1),T("cellValueChanged",function(o){k(i);let r=g();return E(r.onCellValueChanged(o))}),u(),p(11,"div",12),x(12,"fab-button",7),u(),y(13,woe,2,0,"div",13)}if(e&2){let i=g();d(3),R(i.heading),d(),v("enabled",!0)("button",i.downloadButton),d(5),v("columnDefs",i.columnDefs)("defaultColDef",i.defaultColDef)("rowData",i.rowData)("gridOptions",i.gridOptions)("ngClass",z(11,_oe,i.disableGoToLastPage)),d(3),v("enabled",!!i.modifiedRows.length)("button",i.saveAllocationsButton),d(),w(i.showAllocationError?13:-1)}}function Soe(e,t){e&1&&x(0,"fab-loader")}function koe(e,t){if(e&1){let i=P();p(0,"li",24),T("mousedown",function(){let o=k(i).$index;g();let r=de(32);return E(r.selectSuggestion(o))}),x(1,"span",25),N(2,"textHighlight"),x(3,"span",25),N(4,"textHighlight"),u()}if(e&2){let i=t.$implicit,n=t.$index;g();let o=de(32);Pe("selected",o.currentSuggestionIndex===n),d(),v("innerHTML",He(2,4,i.name,o.inputValue),ue),d(2),v("innerHTML",He(4,7,i.memberId,o.inputValue),ue)}}function Eoe(e,t){if(e&1){let i=P();p(0,"div",26)(1,"div",27)(2,"p-button",28),T("click",function(o){let r=k(i).clearCallback;return E(r(o))}),u()(),p(3,"div",29)(4,"p-button",30),T("click",function(){k(i);let o=g();return E(o.onPresetRangeSelection("days",0))}),u()(),p(5,"div",31)(6,"p-button",32),T("click",function(){k(i);let o=g();return E(o.onPresetRangeSelection("days",7))}),u(),p(7,"p-button",33),T("click",function(){k(i);let o=g();return E(o.onPresetRangeSelection("days",30))}),u()(),p(8,"div",31)(9,"p-button",34),T("click",function(){k(i);let o=g();return E(o.onPresetRangeSelection("thisMonth"))}),u(),p(10,"p-button",35),T("click",function(){k(i);let o=g();return E(o.onPresetRangeSelection("lastMonth"))}),u()()()}}function Moe(e,t){if(e&1){let i=P();p(0,"div",20)(1,"div",11)(2,"label"),C(3,"Filter by qualification"),u(),p(4,"fab-dropdown",16),T("outputReturnSelectedOptions",function(o){k(i);let r=g();return E(r.onQualsChange(o))}),u(),p(5,"div",14),C(6,"You can select multiple qualifications"),u()()()}if(e&2){let i=g();d(4),v("content",i.qualsFilterDropdown)}}function Toe(e,t){if(e&1){let i=P();p(0,"div",21),x(1,"fab-button",36),p(2,"div")(3,"a",5),T("click",function(){k(i);let o=g();return E(o.onResetClick())}),C(4,"Reset filters"),x(5,"i",37),u()()()}if(e&2){let i=g();d(),v("button",i.applyFiltersButton)}}var qS=()=>["../","view"],Ioe=e=>({batchNo:e});function Doe(e,t){if(e&1&&(p(0,"div",13),x(1,"app-results",14)(2,"hr"),u()),e&2){let i=t.$implicit,n=t.$index,o=g(2);d(),v("heading","Batch "+(o.createdCodes.length-n))("initialData",i.Items)("filters",z(4,Ioe,i.batchNo))("columnsToDisplay",o.columnOptions)}}function Poe(e,t){if(e&1){let i=P();p(0,"section",9)(1,"h4"),C(2,"Your created codes"),u(),p(3,"div",10)(4,"p"),C(5,"Your codes have been created successfully. Your options:"),u(),p(6,"ul")(7,"li"),C(8," Email a payment code to your students on this service by clicking on the envelope icon. It will then automatically be marked as allocated. "),u(),p(9,"li"),C(10," Export payment codes and manually distribute them. If you manually distribute them, please mark and save your allocation changes on this service so that you can keep accurate records. "),u(),p(11,"li"),C(12," Please note that once your payment codes are created, they'll be in a \u201CPending\u201D status. It takes a few minutes for them to become \u201CReady to use\u201D. In this Create payment codes page, the codes will always be displayed as \u201CPending\u201D - please check the "),p(13,"a",11),C(14,"View existing payment codes page"),u(),C(15," to see if your co
744des are ready to use. "),u()(),p(16,"a",12),T("click",function(){k(i);let o=g();return E(o.findOutMore())}),C(17,"Find out more about how to use, create and share payment codes."),u()(),x(18,"br"),X(19,Doe,3,6,"div",13,se),u()}if(e&2){let i=g();d(13),v("routerLink",On(1,qS)),d(6),ee(i.createdCodes)}}var Roe=()=>["../","create"],vr=(()=>{let t=class t{constructor(n,o){this.platformId=n,this.ssrCookieService=o,this._cache=new Map,this.isBrowser=Ct(this.platformId),this.loadCacheFromLocalStorage()}loadCacheFromLocalStorage(){if(!this.isBrowser)return;let n=localStorage.getItem("cache");if(n)try{let o=JSON.parse(n);Object.keys(o).forEach(r=>{let a=o[r];this._cache.set(r,a)})}catch(o){console.error("Error parsing cache from localStorage",o)}}saveCacheToLocalStorage(){if(!this.isBrowser)return;let n={};this._cache.forEach((o,r)=>{n[r]=o});try{localStorage.setItem("cache",JSON.stringify(n))}catch(o){console.error("Error saving cache to localStorage",o)}}get(n){let o=this._cache.get(n);if(o){if(o.expiry&&Date.now()>o.expiry){this._cache.delete(n),this.saveC
744acheToLocalStorage();return}return o.value}}set(n,o,r=300,a=!0){if(r>0){let s=Date.now()+r*1e3;this._cache.set(n,{expiry:s,value:o,clearOnLogout:a})}else this._cache.set(n,{value:o,clearOnLogout:a});return this.saveCacheToLocalStorage(),o}cacheObservable(n,o,r,a){let s=this.get(n);return s?Q(s):o.pipe(ao(l=>{this.set(n,l,r,a)}))}clear(n=!1){n?this._cache.clear():this._cache.forEach((o,r)=>{o.clearOnLogout&&this._cache.delete(r)}),this.saveCacheToLocalStorage()}invalidate(n){typeof n=="string"?this._cache.delete(n):typeof n=="function"&&this._cache.forEach((o,r)=>{n(r,o)&&this._cache.delete(r)}),this.saveCacheToLocalStorage()}getCookieFromCache(n){return this.ssrCookieService.get(n)}isCookieInCache(n){return this.ssrCookieService.check(n)}setCookieInCache(n,o){this.isBrowser&&(this.isCookieInCache(n)&&(console.log(`${n} cookie in cache - deleting`),this.ssrCookieService.delete(n)),window.location.hostname==="localhost"?this.ssrCookieService.set(n,o,{expires:0,path:"/",domain:"localhost",secure:!1,sameSite:"Lax"}):this.ssrCookieService.set(n,o,{expires:0,path:"/"}))}};t.\u0275fac=function(o){return new(o||t)(Y(gt),Y(Ir))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),st=(()=>{let t=class t{constructor(n,o,r,a){this.authConfig=n,this.document=o,this.cacheService=a,this.isPasswordReset=!1,this.userResetPassRequired=!1,this.authenticationChanged=new Ze(!1),this.authenticationChanged$=this.authenticationChanged.asObservable(),this.authenticationErrored=new Xi,this.authenticationErrored$=this.authenticationErrored.asObservable(),this.userLoggedOut=new no,this.userLoggedOut$=this.userLoggedOut.asObservable(),this.otherDashboardGroupsAnnounced=new no,this.otherDashboardGroupsAnnounced$=this.otherDashboardGroupsAnnounced.asObservable(),this.newDashboardGroupSet=new no,this.newDashboardGroupSet$=this.newDashboardGroupSet.asObservable(),this.logoutObs=new Xi,this.logoutInitiated$=this.logoutObs.asObservable(),this.http=xe(lt),this.jwtHelper=xe(Tr),this.ssrCookieService=xe(Ir),this.isRefreshing=new Ze(!1),this.requiresMfaSetup=()=>{let s=this.jwtHelper.decodeToken(this.ssrCookieService.get("id_token"));return!!(s?.["cognito:groups"]?.some(l=>this.authConfig.mfaGroups&&this.authConfig.mfaGroups.includes(l))&&!s.PreferredMfaSetting)},this.loggedIn()}login(n,o,r,a=!0){let s={username:n,password:o,clientId:this.authConfig.clientIdKey};return r&&r!=""&&(r.split(":")[0]==="user"?s.verification_code=r.split(":")[1]:s.email_confirmation_code=r.split(":")[1]),this.http.post(this.authConfig.apiBaseUrl+"/auth/authenticate",JSON.stringify(s)).pipe(J(l=>l.ChallengeName?l:(this.storeResponse(l,a),this.authenticationChanged.next(!0),this.jwtHelper.decodeToken(l.IdToken))),he(l=>(this.authenticationChanged.next(!1),this.authenticationErrored.next(l),this.handleError(l))))}refresh(){return this.http.post(this.authConfig.apiBaseUrl+"/auth/refresh",JSON.stringify({token:this.ssrCookieService.get("refresh_token")??"",clientId:this.authConfig.clientIdKey})).pipe(J(n=>(this.storeResponse(n,!1),this.authenticationChanged.next(!0),!0)),he(n=>(this.deleteAuthTokens(),this.authenticationChanged.next(!1),this.authenticationErrored.next(n),this.handleError(n))))}forgotPasswordSendEmail(n){return this.userEmail=n,this.http.post(this.authConfig.apiBaseUrl+"/auth/forgot-password",{clientId:this.authConfig.clientIdKey,username:n})}verifyCodeSendEmail(n,o){return this.http.post(this.authConfig.apiBaseUrl+"/auth/send-verification-code",{clientId:this.authConfig.clientIdKey,username:n,password:o})}confirmationCodeSendEmail(n){return this.http.post(this.authConfig.apiBaseUrl+"/auth/send-confirmation-code",{clientId:this.authConfig.clientIdKey,username:n})}setDashboardGroup(n){this.newDashboardGroupSet.next(n),localStorage.setItem("dashboard-scope",n),this.announceNewAlternativeDashboardGroups(n)}clearDashboardGroup(){localStorage.setItem("dashboard-scope","")}getDashboardGroup(){return localStorage.getItem("dashboard-scope")}announceNewAlternativeDashboardGroups(n){let o=this.availableDashboardGroups.filter(r=>r!==n);this.otherDashboardGroupsAnnounced.next(o)}resetPassword(n,o,r){return this.http.post(this.authConfig.apiBaseUrl+"/auth/reset-password",{clientId:this.authConfig.clientIdKey,username:r,code:n,password:o})}changePassword(n,o,r){return this.http.post(this.authConfig.apiBaseUrl+"/auth/change-password",{clientId:this.authConfig.clientIdKey,username:o,password:n,old_password:r}).pipe(J(a=>
744(this.storeResponse(a),this.authenticationChanged.next(!0),a)),he(a=>(this.authenticationChanged.next(!1),this.authenticationErrored.next(a),this.handleError(a))))}changePasswordLoggedIn(n,o){return this.http.post(this.authConfig.apiBaseUrl+"/auth/user-change-password",{accessToken:this.ssrCookieService.get("access_token"),previousPassword:n,proposedPassword:o}).pipe(J(r=>r),he(r=>Q(r)))}storeResponse(n,o=!0){let r=n,a=new Date;a.setMinutes(a.getMinutes()+59);let s=new Date;s.setDate(s.getDate()+29),this.ssrCookieService.set("access_token",r.AccessToken,{expires:a,path:"/",domain:this.configureDomain()}),this.ssrCookieService.set("id_token",r.IdToken,{expires:a,path:"/",domain:this.configureDomain()}),o&&r.RefreshToken&&this.ssrCookieService.set("refresh_token",r.RefreshToken,{expires:s,path:"/",domain:this.configureDomain()})}handleError(n){return this.authenticationChanged.next(!1),jt(n)}logout(){return this.getCurrentUser().pipe(ot(1),ht(n=>this.http.post(this.authConfig.apiBaseUrl+"/auth/logout",{access_token:this.ssrCookieService.get("access_token"),clientId:this.authConfig.clientIdKey,username:n["cognito:username"]}).pipe(Zs(()=>{sessionStorage.clear(),this.deleteAuthTokens(),this.cacheService.clear(),this.authenticationChanged.next(!1),this.userLoggedOut.next(!0)}))))}deleteAuthTokens(){["access_token","id_token","refresh_token"].forEach(o=>{this.ssrCookieService.delete(o,"/"),this.ssrCookieService.delete(o,"/",this.configureDomain())})}broadcastLogoutInitiated(n){this.logoutObs.next(n)}isLoggedIn(){return this.authenticationChanged.getValue()}loggedIn(){let n=this.ssrCookieService.get("access_token");!n||n==="undefined"||n==="null"?this.authenticationChanged.next(!1):this.jwtHelper.isTokenExpired(n)?this.authenticationChanged.next(!1):this.authenticationChanged.next(!0)}getCurrentUser(){return this.getToken("id_token").pipe(J(n=>{let o=this.jwtHelper.decodeToken(n);if(!o)throw new Error("Invalid ID token");return o}))}getUserAccessToken(){return this.getToken("access_token")}getToken(n){let o=this.ssrCookieService.get(n);return o?Q(o):this.isRefreshing.getValue()===!0?this.isRefreshing.asObservable().pipe(dv(r=>r===!0),ot(1),J(()=>this.ssrCookieService.get(n))):this.ssrCookieService.get("refresh_token")?(this.isRefreshing.next(!0),this.refresh().pipe(J(()=>(this.isRefreshing.next(!1),this.ssrCookieService.get(n))),he(()=>(this.isRefreshing.next(!1),jt(()=>new Error("No token")))))):jt(()=>new Error("No token"))}isAllowed(n,o){return this.getCurrentUser().pipe(J(r=>{let a=r[o];return!!(a?.length&&this.doesUserAttributeExist(a,n))}))}doesUserAttributeExist(n,o){return o.some(r=>n.indexOf(r)>-1)}configureDomain(){return this.document.location.hostname.includes("aat.org.uk")?this.authConfig.cookieDomain:""}verifySignUp(n,o){let r={contactId:n,verificationCode:o,clientId:this.authConfig.clientIdKey};return this.http.post(this.authConfig.apiBaseUrl+"/auth/verify",JSON.stringify(r))}associateSoftwareToken(){return this.http.post(this.authConfig.apiBaseUrl+"/auth/associate-software-token",JSON.stringify({accessToken:this.ssrCookieService.get("access_token")}))}verifySoftwareToken(n){let o={code:n,accessToken:this.ssrCookieService.get("access_token")};return this.http.post(this.authConfig.apiBaseUrl+"/auth/verify-software-token",JSON.stringify(o)).pipe(J(r=>r),he(r=>{let a=r;return a.error.message="invalid code",this.authenticationErrored.next(a),this.handleError(r)}))}respondToAuthChallenge(n,o){let r={code:n,clientId:this.authConfig.clientIdKey,contactId:o.ChallengeParameters.USER_ID_FOR_SRP,challengeName:o.ChallengeName,session:o.Session};return this.http.post(this.authConfig.apiBaseUrl+"/auth/respond-auth-challenge",JSON.stringify(r)).pipe(J(a=>(this.storeResponse(a),this.authenticationChanged.next(!0),a)),he(a=>(this.authenticationChanged.next(!1),this.authenticationErrored.next(a),this.handleError(a))))}};t.\u0275fac=function(o){return new(o||t)(Y("AuthConfig"),Y(ci),Y(gt),Y(vr))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),qye=(()=>{let t=class t{static forRoot(n,o){return{ngModule:t,providers:[{provide:"AuthConfig",useValue:n},{provide:"AuthGuardConfig",useValue:o},st]}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({providers:[Uc(jc())]});let e=t;return e})(),Yye=(()=>{let t=class t{constructor(n,o){this.authService=n,this._config=o,this.isRefreshing=new Ze(!1),this._authPaths=["auth/refresh","/auth/authenticate"],this._captchaPaths=["/licensed-member/email","/training-provider/lead-enquiry-email","/document-generation/pdf/centre-compare"],this.isRefreshing.next(!1)}intercept(n,o){return!this._config.interceptorPaths.some(r=>n.url.includes(r))||this._authPaths.some(r=>n.url.includes(r))||this._captchaPaths.some(r=>n.url.includes(r))?o.handle(n):this.authService.getUserAccessToken().pipe(ht(r=>(n=n.clone({headers:n.headers.set("Authorization",r)}
744),o.handle(n))),he(r=>o.handle(n)))}};t.\u0275fac=function(o){return new(o||t)(Y(st),Y("AuthConfig"))},t.\u0275prov=ve({token:t,factory:t.\u0275fac});let e=t;return e})(),li=(function(e){return e.WHITE="#ffffff",e.GREY="#dce6f0",e.GREEN="#00ab4e",e.BLACK="#000000",e})(li||{}),_a=(function(e){return e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e.XLARGE="xlarge",e.xxLARGE="xxlarge",e})(_a||{}),fS=class{constructor(){this.image=null,this.website=null}};var Kye={title:"Amenities",options:[{label:"Disabled access",filterString:"Disabled access",id:"Disabled access"},{label:"Free parking",filterString:"Free parking",id:"Free parking"},{label:"Accessible by public transport",filterString:"Accessible by public transport",id:"Accessible by public transport"},{label:"Free WiFi",filterString:"Free WiFi",id:"Free WiFi"},{label:"Cafeteria",filterString:"Cafeteria",id:"Cafeteria"}]};var Qye={categories:[{title:"Classroom delivery format",options:[{label:"Evening classes available",filterString:"eveningClasses",id:"eveningClasses"},{label:"Weekend classes available",filterString:"weekendClasses",id:"weekendClasses"},{label:"Intensive fast-track",filterString:"intensiveFastTrack",id:"intensiveFastTrack"}]},{title:"Assessment time options",options:[{id:"morningAssessments",label:"Morning assessments available",filterString:"morningAssessments"},{id:"afternoonAssessments",label:"Afternoon assessments available",filterString:"afternoonAssessments"},{id:"eveningAssessments",label:"Evening assessments available",filterString:"eveningAssessments"},{id:"weekendAssessments",label:"Weekend assessments available",filterString:"weekendAssessments"}]},{title:"Payment options",options:[{label:"Payment plan",filterString:"paymentPlan",id:"paymentPlan"},{label:"Funding support",filterString:"fundingAvailable",id:"fundingAvailable"}]},{title:"Apprenticeship schemes",options:[{label:"Apprenticeship scheme available",filterString:"apprenticeshipScheme",id:"apprenticeshipScheme"}]},{title:"Course availability for students aged under 19",options:[{label:"Courses open to those under 16",filterString:"under16",id:"under16"},{label:"Courses open to those under 19",filterString:"under19",id:"under19"}]},{title:"Individual units",options:[{label:"Individual units available",filterString:"individualModules",id:"individualModules"}]},{title:"Remote invigilation (RI)",options:[{label:"Remote invigilation scheduling",filterString:"RIAvailable",id:"remoteInvigilation"}]}]},vS=class{constructor(){this.contactName=null,this.email=null,this.telephoneNumber=null,this.website=null}},CS=class{constructor(){this.courseCRMId="",this.name="",this.isCurrentlyOffered=!1,this.description="",this.typeName="",this.type="",this.minPrice=null,this.maxPrice=null,this.startDate="",this.endDate=""}},Jye={categories:[{title:"Learning Support",options:[{label:"Telephone support",filterString:"telephoneSupport",id:"telephoneSupport"},{label:"Email support",filterString:"emailSupport",id:"emailSupport"},{label:"Instant messaging support",filterString:"chatSupport",id:"chatSupport"},{label:"No support (self-study option)",filterString:"noSupport",id:"noSupport"}]},{title:"Study options",options:[{label:"Online live tutorials",filterString:"virtualLiveClassroom",id:"virtualLiveClassroom"},{label:"Online on-demand tutorials",filterString:"virtualOnDemandClassroom",id:"virtualOnDemandClassroom"},{label:"Online learning portal",filterString:"interactiveOnlineLearningPortal",id:"interactiveOnlineLearningPortal"},{label:"Printed course books and/or materials",filterString:"physicalMaterials",id:"physicalMaterials"}]},{title:"Payment options",options:[{label:"Payment plan",filterString:"paymentPlan",id:"paymentPlan"},{label:"Subscription model",filterString:"subscriptionPayment",id:"subscriptionPayment"},{label:"Funding support",filterString:"fundingAvailable",id:"fundingAvailable"}]},{title:"Apprenticeship schemes",options:[{label:"Apprenticeship scheme available",filterString:"apprenticeshipScheme",id:"apprenticeshipScheme"}]},{title:"Course availability for students aged under 19",options:[{label:"Courses open to those under 16",filterString:"under16",id:"under16"},{label:"Courses open to those under 19",filterString:"under19",id:"under19"}]},{title:"Individual units",options:[{label:"Individual units available",filterString:"individualModules",id:"individualModules"}]},{title:"Remote invigilation (RI)",options:[{label:"Remote invigilation scheduling",filterString:"RIAvailable",id:"remoteInvigilation"}]}]},Zye={categories:[{title:"Assessment time options",options:[{id:"morningAssessments",label:"Morning assessments available",filterString:"morningAssessments"},{id:"eveningAssessments",label:"Evening assessments available",filterString:"eveningAssessments"}
744,{id:"afternoonAssessments",label:"Afternoon assessments available",filterString:"afternoonAssessments"},{id:"weekendAssessments",label:"Weekend assessments available",filterString:"weekendAssessments"}]},{title:"Remote invigilation (RI)",options:[{label:"Remote invigilation scheduling",filterString:"RIAvailable",id:"remoteInvigilation"}]}]};var bS=class{constructor(){this.qualificationId="",this.name="",this.isCurrentlyOffered=!1,this.isPartTime=!1,this.partTimeTeachingHoursPerWeek=0,this.isFullTime=!1,this.fullTimeTeachingHoursPerWeek=0,this.enrolmentDate=null,this.isEnrollingNow=!1,this.description="",this.duration="",this.minPrice=null,this.maxPrice=null}},C0=class{},_S=class{constructor(){this.caption=null,this.contentSize=null,this.contentUrl=null,this.fileFormat=null,this.fileId=null}};var yS=class{constructor(){this.caption=null,this.contentSize=null,this.contentUrl=null,this.fileId=null}},Foe="dd-MMMM-yyyy";var b0=[{name:"United Kingdom (UK)",internationalDiallingISOCode:"GB",internationalDiallingCode:"44",telephoneRegex:/^(?:0?[1-6]{1}\d{6}$)|^(?:0?[1-6]{1}\d{7}$)|^(?:0?[1-6]{1}\d{8}$)|^(?:0?[1-6]{1}\d{9}$)|^(?:0?[8-9]{1}\d{6}$)|^(?:0?[8-9]{1}\d{7}$)|^(?:0?[8-9]{1}\d{8}$)|^(?:0?[8-9]{1}\d{9}$)|^(?:0?[7]\d{9}$)/},{name:"Afghanistan",internationalDiallingISOCode:"AF",internationalDiallingCode:"93",telephoneRegex:"/^(\\+93|0)?\\d{7,10}$/"},{name:"Albania",internationalDiallingISOCode:"AL",internationalDiallingCode:"355",telephoneRegex:"/^(\\+355|0)?\\d{6,9}$/"},{name:"Algeria",internationalDiallingISOCode:"DZ",internationalDiallingCode:"213",telephoneRegex:"/^(\\+213|0)?\\d{9,10}$/"},{name:"American Samoa",internationalDiallingISOCode:"AS",internationalDiallingCode:"1-684",telephoneRegex:"/^(\\+1-684)?\\d{7}$/"},{name:"Andorra",internationalDiallingISOCode:"AD",internationalDiallingCode:"376",telephoneRegex:"/^(\\+376)?\\d{6}$/"},{name:"Angola",internationalDiallingISOCode:"AO",internationalDiallingCode:"244",telephoneRegex:"/^(\\+244)?[29]\\d{8}$/"},{name:"Anguilla",internationalDiallingISOCode:"AI",internationalDiallingCode:"1-264",telephoneRegex:"/^(\\+1-264)?\\d{7}$/"},{name:"Antigua and Barbuda",internationalDiallingISOCode:"AG",internationalDiallingCode:"1-268",telephoneRegex:"/^(\\+1-268)?\\d{7}$/"},{name:"Argentina",internationalDiallingISOCode:"AR",internationalDiallingCode:"54",telephoneRegex:"/^(\\+54|0)?\\d{10}$/"},{name:"Armenia",internationalDiallingISOCode:"AM",internationalDiallingCode:"374",telephoneRegex:"/^(\\+374)?(10|55|77)\\d{6}$/"},{name:"Aruba",internationalDiallingISOCode:"AW",internationalDiallingCode:"297",telephoneRegex:"/^(\\+297)?\\d{7}$/"},{name:"Australia",internationalDiallingISOCode:"AU",internationalDiallingCode:"61",telephoneRegex:"/^(\\+61|0)[23789]\\d{8}$/"},{name:"Austria",internationalDiallingISOCode:"AT",internationalDiallingCode:"43",telephoneRegex:"/^(\\+43|0)\\d{4,13}$/"},{name:"Azerbaijan",internationalDiallingISOCode:"AZ",internationalDiallingCode:"994",telephoneRegex:"/^(\\+994|0)([1-9]\\d{7}|7[0124569]\\d{6})$/"},{name:"Bahamas",internationalDiallingISOCode:"BS",internationalDiallingCode:"1-242",telephoneRegex:"/^(\\+1-242)?\\d{7}$/"},{name:"Bahrain",internationalDiallingISOCode:"BH",internationalDiallingCode:"973",telephoneRegex:"/^(\\+973)?\\d{8}$/"},{name:"Bangladesh",internationalDiallingISOCode:"BD",internationalDiallingCode:"880",telephoneRegex:"/^(\\+880|0)\\d{9,10}$/"},{name:"Barbados",internationalDiallingISOCode:"BB",internationalDiallingCode:"1-246",telephoneRegex:"/^(\\+1-246)?\\d{7}$/"},{name:"Belarus",internationalDiallingISOCode:"BY",internationalDiallingCode:"375",telephoneRegex:"/^(\\+375)?(17|29|33|44)\\d{7}$/"},{name:"Belgium",internationalDiallingISOCode:"BE",internationalDiallingCode:"32",telephoneRegex:"/^(\\+32|0)\\d{8,9}$/"},{name:"Belize",internationalDiallingISOCode:"BZ",internationalDiallingCode:"501",telephoneRegex:"/^(\\+501)?\\d{7}$/"},{name:"Benin",internationalDiallingISOCode:"BJ",internationalDiallingCode:"229",telephoneRegex:"/^(\\+229)?\\d{8}$/"},{name:"Bermuda",internationalDiallingISOCode:"BM",internationalDiallingCode:"1-441",telephoneRegex:"/^(\\+1-441)?\\d{7}$/"},{name:"Bhutan",internationalDiallingISOCode:"BT",internationalDiallingCode:"975",telephoneRegex:"/^(\\+975)?\\d{7}$/"},{name:"Bolivia",internationalDiallingISOCode:"BO",internationalDiallingCode:"591",telephoneRegex:"/^(\\+591|0)?\\d{7,8}$/"},{name:"Bosnia and Herzegovina",internationalDiallingISOCode:"BA",internationalDiallingCode:"387",telephoneRegex:"/^(\\+387|0)\\d{8}$/"},{name:"Botswana",internationalDiallingISOCode:"BW",internationalDiallingCode:"267",telephoneRegex:"/^(\\+267)?\\d{7}$/"},{name:"Brazil",internationalDiallingISOCode:"BR",internationalDiallingCode:"55",telephoneRegex:"/^(\\+55|0)?(\\d{2})(\\d{4,5})(\\d{4})$/"},{name:"British Indian Ocean Territory",internationalDiallingISOCode:"IO",internationalDiallingCode:"246",telephoneRegex:"/^(\\+246)?\\d{3,7}$/"},{name:"Brunei Darussalam",internationalDiallingISOCode:"BN",internationalDiallingCode:"673",telephoneRegex:"/^(\\+673|0)?(2|3|7|8)\\d{7}$/"},{name:"Bulgaria",internationalDiallingISOCode:"BG",internationalDiallingCode:"359",telephoneRegex:"/^(\\+359|0)?(2|3|4|5|6|7|8)\\d{6,8}$/"},{name:"Burkina Faso",internationalDiallingISOCode:"BF",internationalDiallingCode:"226",telephoneRegex:"/^(\\+226)?\\d{8}$/"},{name:"Burundi",internationalDiallingISOCode:"BI",internationalDiallingCode:"257",telephoneRegex:"/^(\\+257)?\\d{7}$/"},{name:"Cambodia",internationalDiallingISOCode:"KH",internationalDiallingCode:"855",telephoneRegex:"/^(\\+855|0)?(1|2|3|5|6|7|8|9)\\d{7,8}$/"},{name:"Cameroon",internationalDiallingISOCode:"CM",internationalDiallingCode:"237",telephoneRegex:"/^(\\+237)?[2368]\\d{7,8}$/"},{name:"Canada",internationalDiallingISOCode:"CA",internationalDiallingCode:"1",telephoneRegex:"/^(\\+1)?(204|226|236|249|250|289|306|343|365|387|403|416|418|431|437|438|450|506|514|519|548|579|581|587|604|613|639|647|672|705|709|742|778|780|782|807|819|825|867|873|902|905)[0-9]{7}$/"},{name:"Cape Verde",internationalDiallingISOCode:"CV",internationalDiallingCode:"238",telephoneRegex:"/^(\\+238)?\\d{7}$/"},{name:"Cayman Islands",internationalDiallingISOCode:"KY",internationalDiallingCode:"1-345",telephoneRegex:"/^(\\+1-345)?\\d{6}$/"},{name:"Central African Republic",internationalDiallingISOCode:"CF",internationalDiallingCode:"236",telephoneRegex:"/^(\\+236
744)?\\d{7}$/"},{name:"Chad",internationalDiallingISOCode:"TD",internationalDiallingCode:"235",telephoneRegex:"/^(\\+235)?\\d{7}$/"},{name:"Chile",internationalDiallingISOCode:"CL",internationalDiallingCode:"56",telephoneRegex:"/^(\\+56|0)?(2|3|4|5|6|7|8|9)(\\d{7}|\\d{8})$/"},{name:"China",internationalDiallingISOCode:"CN",internationalDiallingCode:"86",telephoneRegex:"/^(\\+86)?(\\d{3,4}-?)?\\d{7,8}$/"},{name:"Christmas Island",internationalDiallingISOCode:"CX",internationalDiallingCode:"61",telephoneRegex:"/^(\\+61|0)8\\d{8}$/"},{name:"Cocos (Keeling) Islands",internationalDiallingISOCode:"CC",internationalDiallingCode:"61",telephoneRegex:"/^(\\+61|0)8\\d{8}$/"},{name:"Colombia",internationalDiallingISOCode:"CO",internationalDiallingCode:"57",telephoneRegex:"/^(\\+57|0)?(1|2|3|4|5|6|7|8|9)\\d{6,10}$/"},{name:"Comoros",internationalDiallingISOCode:"KM",internationalDiallingCode:"269",telephoneRegex:"/^(\\+269)?\\d{7}$/"},{name:"Congo",internationalDiallingISOCode:"CG",internationalDiallingCode:"242",telephoneRegex:"/^(\\+242)?\\d{5,9}$/"},{name:"Cook Islands",internationalDiallingISOCode:"CK",internationalDiallingCode:"682",telephoneRegex:"/^(\\+682)?\\d{5}$/"},{name:"Costa Rica",internationalDiallingISOCode:"CR",internationalDiallingCode:"506",telephoneRegex:"/^(\\+506|506)?[2-8]\\d{3}\\-\\d{4}$/"},{name:"Croatia",internationalDiallingISOCode:"HR",internationalDiallingCode:"385",telephoneRegex:"/^(\\+385|0)?(1|2|3|4|5|6|7|8|9)(\\d{6,8}|\\d{10})$/"},{name:"Cuba",internationalDiallingISOCode:"CU",internationalDiallingCode:"53",telephoneRegex:"/^(\\+53)?(\\d{7}|\\d{8})$/"},{name:"Cura\xE7ao",internationalDiallingISOCode:"CW",internationalDiallingCode:"599-9",telephoneRegex:"/^(\\+599-9)?\\d{7}$/"},{name:"Cyprus",internationalDiallingISOCode:"CY",internationalDiallingCode:"357",telephoneRegex:"/^(\\+357|0)?\\d{8}$/"},{name:"Czech Republic",internationalDiallingISOCode:"CZ",internationalDiallingCode:"420",telephoneRegex:"/^(\\+420|0)?\\d{9}$/"},{name:"Democratic Republic of the Congo",internationalDiallingISOCode:"CD",internationalDiallingCode:"243",telephoneRegex:"/^(\\+243|0)?\\d{9}$/"},{name:"Denmark",internationalDiallingISOCode:"DK",internationalDiallingCode:"45",telephoneRegex:"/^(\\+45|0)?\\d{8}$/"},{name:"Djibouti",internationalDiallingISOCode:"DJ",internationalDiallingCode:"253",telephoneRegex:"/^(\\+253)?\\d{6}$/"},{name:"Dominica",internationalDiallingISOCode:"DM",internationalDiallingCode:"1-767",telephoneRegex:"/^(\\+1-767)?\\d{6}$/"},{name:"Dominican Republic",internationalDiallingISOCode:"DO",internationalDiallingCode:"1-809, +1-829, +1-849",telephoneRegex:"/^(\\+1-809|\\+1-829|\\+1-849)?\\d{7}$/"},{name:"Ecuador",internationalDiallingISOCode:"EC",internationalDiallingCode:"593",telephoneRegex:"/^(\\+593|0)?(2|3|4|5|6|7|8|9)\\d{6,8}$/"},{name:"Egypt",internationalDiallingISOCode:"EG",internationalDiallingCode:"20",telephoneRegex:"/^(\\+20|0)?1\\d{9}$/"},{name:"El Salvador",internationalDiallingISOCode:"SV",internationalDiallingCode:"503",telephoneRegex:"/^(\\+503|503)?[2-9]\\d{3}\\-\\d{4}$/"},{name:"Equatorial Guinea",internationalDiallingISOCode:"GQ",internationalDiallingCode:"240",telephoneRegex:"/^(\\+240)?\\d{6,7}$/"},{name:"Eritrea",internationalDiallingISOCode:"ER",internationalDiallingCode:"291",telephoneRegex:"/^(\\+291|0)?1\\d{6}$/"},{name:"Estonia",internationalDiallingISOCode:"EE",internationalDiallingCode:"372",telephoneRegex:"/^(\\+372)?\\d{7,8}$/"},{name:"Eswatini",internationalDiallingISOCode:"SZ",internationalDiallingCode:"268",telephoneRegex:"/^(\\+268)?\\d{7}$/"},{name:"Ethiopia",internationalDiallingISOCode:"ET",internationalDiallingCode:"251",telephoneRegex:"/^(\\+251|0)?[1-59]\\d{8}$/"},{name:"Falkland Islands",internationalDiallingISOCode:"FK",internationalDiallingCode:"500",telephoneRegex:"/^(\\+500)?\\d{4}$/"},{name:"Faroe Islands",internationalDiallingISOCode:"FO",internationalDiallingCode:"298",telephoneRegex:"/^(\\+298)?\\d{6}$/"},{name:"Fiji",internationalDiallingISOCode:"FJ",internationalDiallingCode:"679",telephoneRegex:"/^(\\+679)?\\d{7}$/"},{name:"Finland",internationalDiallingISOCode:"FI",internationalDiallingCode:"358",telephoneRegex:"/^(\\+358|0)?(4|5|6|8|9)\\d{4,10}$/"},{name:"France",internationalDiallingISOCode:"FR",internationalDiallingCode:"33",telephoneRegex:"/^(\\+33|0)?[1-9](\\d{2}){4}$/"},{name:"French Guiana",internationalDiallingISOCode:"GF",internationalDiallingCode:"594",telephoneRegex:"/^(\\+594|0)594\\d{6}$/"},{name:"French Polynesia",internationalDiallingISOCode:"PF",internationalDiallingCode:"689",telephoneRegex:"/^(\\+689)?\\d{6}$/"},{name:"Gabon",internationalDiallingISOCode:"GA",internationalDiallingCode:"241",telephoneRegex:"/^(\\+241)?\\d{4,7}$/"}
744,{name:"Gambia",internationalDiallingISOCode:"GM",internationalDiallingCode:"220",telephoneRegex:"/^(\\+220|00220)?(7|8)[1-9]\\d{5}$/"},{name:"Georgia",internationalDiallingISOCode:"GE",internationalDiallingCode:"995",telephoneRegex:"/^(\\+995)?\\d{8,9}$/"},{name:"Germany",internationalDiallingISOCode:"DE",internationalDiallingCode:"49",telephoneRegex:"/^(\\+49|0)\\d{3,14}$/"},{name:"Ghana",internationalDiallingISOCode:"GH",internationalDiallingCode:"233",telephoneRegex:"/^(\\+233|0)?[235][036789]\\d{7}$/"},{name:"Gibraltar",internationalDiallingISOCode:"GI",internationalDiallingCode:"350",telephoneRegex:"/^(\\+350)?\\d{5,7}$/"},{name:"Greece",internationalDiallingISOCode:"GR",internationalDiallingCode:"30",telephoneRegex:"/^(\\+30|0)?(2\\d{8}|[69]\\d{7})$/"},{name:"Greenland",internationalDiallingISOCode:"GL",internationalDiallingCode:"299",telephoneRegex:"/^(\\+299)?\\d{6}$/"},{name:"Grenada",internationalDiallingISOCode:"GD",internationalDiallingCode:"1473",telephoneRegex:"/^(\\+1473)?(4[45789]|5[56]|7[58])\\d{6}$/"},{name:"Guadeloupe",internationalDiallingISOCode:"GP",internationalDiallingCode:"590",telephoneRegex:"/^(\\+590|0)690\\d{6}$/"},{name:"Guam",internationalDiallingISOCode:"GU",internationalDiallingCode:"1671",telephoneRegex:"/^(\\+1671)?(671)?(3[12]|7[0-2])\\d{6}$/"},{name:"Guatemala",internationalDiallingISOCode:"GT",internationalDiallingCode:"502",telephoneRegex:"/^(\\+502)?[2467]\\d{7}$/"},{name:"Guernsey",internationalDiallingISOCode:"GG",internationalDiallingCode:"44",telephoneRegex:"/^(\\+44|0)1481\\d{6}$/"},{name:"Guinea",internationalDiallingISOCode:"GN",internationalDiallingCode:"224",telephoneRegex:"/^(\\+224)?\\d{8,9}$/"},{name:"Guinea-Bissau",internationalDiallingISOCode:"GW",internationalDiallingCode:"245",telephoneRegex:"/^(\\+245)?[23589]\\d{6}$/"},{name:"Guyana",internationalDiallingISOCode:"GY",internationalDiallingCode:"592",telephoneRegex:"/^(\\+592)?(22[0123]|2[3567]\\d|4[0-79]\\d|5\\d{2}|6[23578]\\d|7[0-46-9]\\d|9[0-8]\\d{2})\\d{4}$/"},{name:"Haiti",internationalDiallingISOCode:"HT",internationalDiallingCode:"509",telephoneRegex:"/^(\\+509)?[29]\\d{7}$/"},{name:"Honduras",internationalDiallingISOCode:"HN",internationalDiallingCode:"504",telephoneRegex:"/^(\\+504)?[89]\\d{7}$/"},{name:"Hong Kong",internationalDiallingISOCode:"HK",internationalDiallingCode:"852",telephoneRegex:"/^(\\+852)?[569]\\d{3}\\d{4}$/"},{name:"Hungary",internationalDiallingISOCode:"HU",internationalDiallingCode:"36",telephoneRegex:"/^(\\+36)(20|30|31|70)\\d{7}$/"},{name:"Iceland",internationalDiallingISOCode:"IS",internationalDiallingCode:"354",telephoneRegex:"/^(\\+354)?(6\\d{3}|7[1-9]\\d{1})\\d{4}$/"},{name:"India",internationalDiallingISOCode:"IN",internationalDiallingCode:"91",telephoneRegex:"/^(\\+91|0)?[6789]\\d{9}$/"},{name:"Indonesia",internationalDiallingISOCode:"ID",internationalDiallingCode:"62",telephoneRegex:"/^(\\+62|0)8\\d{8,10}$/"},{name:"Iran",internationalDiallingISOCode:"IR",internationalDiallingCode:"98",telephoneRegex:"/^(\\+98|0)?9\\d{9}$/"},{name:"Iraq",internationalDiallingISOCode:"IQ",internationalDiallingCode:"964",telephoneRegex:"/^(\\+964|0)?7[0-9]\\d{8}$/"},{name:"Ireland",internationalDiallingISOCode:"IE",internationalDiallingCode:"353",telephoneRegex:"/^(\\+353|0)?[1-9]\\d{7,9}$/"},{name:"Isle of Man",internationalDiallingISOCode:"IM",internationalDiallingCode:"44",telephoneRegex:"/^\\+44\\s?(1624|7524)\\s?\\d{6}$/"},{name:"Israel",internationalDiallingISOCode:"IL",internationalDiallingCode:"972",telephoneRegex:"/^\\+972(2|3|4|8|9)[\\d]{7}$/"},{name:"Italy",internationalDiallingISOCode:"IT",internationalDiallingCode:"39",telephoneRegex:"/^\\+39\\s?06\\s?\\d{8,9}$/"},{name:"Jamaica",internationalDiallingISOCode:"JM",internationalDiallingCode:"1",telephoneRegex:"/^\\+1\\s?(876|658)\\d{7}$/"},{name:"Japan",internationalDiallingISOCode:"JP",internationalDiallingCode:"81",telephoneRegex:"/^\\+81\\s?\\d{1,4}-?\\d{1,4}-?\\d{4}$/"},{name:"Jersey",internationalDiallingISOCode:"JE",internationalDiallingCode:"44",telephoneRegex:"/^\\+44\\s?1534\\s?\\d{6}$/"},{name:"Jordan",internationalDiallingISOCode:"JO",internationalDiallingCode:"962",telephoneRegex:"/^\\+962\\s?(7|8)\\d{7}$/"},{name:"Kazakhstan",internationalDiallingISOCode:"KZ",internationalDiallingCode:"7",telephoneRegex:"/^\\+7\\s?\\d{3}\\s?\\d{3}-?\\d{2}-?\\d{2}$/"},{name:"Kenya",internationalDiallingISOCode:"KE",internationalDiallingCode:"254",telephoneRegex:"/^\\+254\\s?\\d{1,2}\\s?\\d{3}\\s?\\d{4}$/"},{name:"Kiribati",internationalDiallingISOCode:"KI",internationalDiallingCode:"686",telephoneRegex:"/^\\+686\\s?\\d{5}$/"},{name:"Kuwait",internationalDiallingISOCode:"KW",internationalDiallingCode:"965",telephoneRegex:"/^\\+965\\s?\\d{8}$/"},{name:"Kyrgyzstan",internationalDiallingISOCode:"KG",internationalDiallingCode:"996",telephoneRegex:"/^(\\d{9})$/"},{name:"Laos",internationalDiallingISOCode:"LA",internationalDiallingCode:"856",telephoneRegex:"/^(20\\d{7,8}|\\d{8,9})$/"},{name:"Latvia",internationalDiallingISOCode:"LV",internationalDiallingCode:"371",telephoneRegex:"/^(\\d{8})$/"},{name:"Lebanon",internationalDiallingISOCode:"LB",internationalDiallingCode:"961",telephoneRegex:"/^(\\d{7,8})$/"},{name:"Lesotho",internationalDiallingISOCode:"LS",internationalDiallingCode:"266",telephoneRegex:"/^(\\d{8})$/"}
744,{name:"Liberia",internationalDiallingISOCode:"LR",internationalDiallingCode:"231",telephoneRegex:"/^(\\d{5,6})$/"},{name:"Libya",internationalDiallingISOCode:"LY",internationalDiallingCode:"218",telephoneRegex:"/^(\\d{8,9})$/"},{name:"Liechtenstein",internationalDiallingISOCode:"LI",internationalDiallingCode:"423",telephoneRegex:"/^(\\d{7})$/"},{name:"Lithuania",internationalDiallingISOCode:"LT",internationalDiallingCode:"370",telephoneRegex:"/^(\\d{8,9})$/"},{name:"Luxembourg",internationalDiallingISOCode:"LU",internationalDiallingCode:"352",telephoneRegex:"/^(\\d{4,13})$/"},{name:"Macao",internationalDiallingISOCode:"MO",internationalDiallingCode:"853",telephoneRegex:"/^(6\\d{7})$/"},{name:"Madagascar",internationalDiallingISOCode:"MG",internationalDiallingCode:"261",telephoneRegex:"/^(2\\d{8}|3\\d{7})$/"},{name:"Malawi",internationalDiallingISOCode:"MW",internationalDiallingCode:"265",telephoneRegex:"/^(\\d{7,9})$/"},{name:"Malaysia",internationalDiallingISOCode:"MY",internationalDiallingCode:"60",telephoneRegex:"/^(\\d{7,9}|1\\d{8,9})$/"},{name:"Maldives",internationalDiallingISOCode:"MV",internationalDiallingCode:"960",telephoneRegex:"^[67]\\d{6}$"},{name:"Mali",internationalDiallingISOCode:"ML",internationalDiallingCode:"223",telephoneRegex:"^\\d{8}$"},{name:"Malta",internationalDiallingISOCode:"MT",internationalDiallingCode:"356",telephoneRegex:"^(?:(?:(?:\\+|00)356)?[79]\\d{7}|[346]\\d{5})$"},{name:"Marshall Islands",internationalDiallingISOCode:"MH",internationalDiallingCode:"692",telephoneRegex:"^\\d{7}$"},{name:"Martinique",internationalDiallingISOCode:"MQ",internationalDiallingCode:"596",telephoneRegex:"^0\\d{9}$"},{name:"Mauritania",internationalDiallingISOCode:"MR",internationalDiallingCode:"222",telephoneRegex:"^\\d{8}$"},{name:"Mauritius",internationalDiallingISOCode:"MU",internationalDiallingCode:"230",telephoneRegex:"^[25-7]\\d{7}$"},{name:"Mayotte",internationalDiallingISOCode:"YT",internationalDiallingCode:"262",telephoneRegex:"^\\d{9}$"},{name:"Mexico",internationalDiallingISOCode:"MX",internationalDiallingCode:"52",telephoneRegex:"^\\d{10}$"},{name:"Micronesia (Federated States of)",internationalDiallingISOCode:"FM",internationalDiallingCode:"691",telephoneRegex:"^\\d{7}$"},{name:"Moldova (Republic of)",internationalDiallingISOCode:"MD",internationalDiallingCode:"373",telephoneRegex:"^(?:2[23]|[689]\\d)\\d{6}$"},{name:"Monaco",internationalDiallingISOCode:"MC",internationalDiallingCode:"377",telephoneRegex:"^6\\d{7}$"},{name:"Mongolia",internationalDiallingISOCode:"MN",internationalDiallingCode:"976",telephoneRegex:"^\\d{8}$"},{name:"Montenegro",internationalDiallingISOCode:"ME",internationalDiallingCode:"382",telephoneRegex:"^6[679]\\d{6}$"},{name:"Montserrat",internationalDiallingISOCode:"MS",internationalDiallingCode:"1-664",telephoneRegex:"^\\(?(\\d{3})\\)?[- ]?(\\d{4})$"},{name:"Morocco",internationalDiallingISOCode:"MA",internationalDiallingCode:"212",telephoneRegex:"^\\(?(\\d{3})\\)?[- ]?(\\d{2})[- ]?(\\d{2})[- ]?(\\d{2})$"},{name:"Mozambique",internationalDiallingISOCode:"MZ",internationalDiallingCode:"258",telephoneRegex:"^\\(?(\\d{2})\\)?[- ]?(\\d{7,8})$"},{name:"Myanmar",internationalDiallingISOCode:"MM",internationalDiallingCode:"95",telephoneRegex:"^\\(?(\\d{1,3})\\)?[- ]?(\\d{3})[- ]?(\\d{3,4})$"},{name:"Namibia",internationalDiallingISOCode:"NA",internationalDiallingCode:"264",telephoneRegex:"^\\(?(\\d{2})\\)?[- ]?(\\d{4})[- ]?(\\d{4})$"},{name:"Nauru",internationalDiallingISOCode:"NR",internationalDiallingCode:"674",telephoneRegex:"^\\(?(\\d{2})\\)?[- ]?(\\d{3})[- ]?(\\d{4})$"},{name:"Nepal",internationalDiallingISOCode:"NP",internationalDiallingCode:"977",telephoneRegex:"^\\(?(\\d{1,2})\\)?[- ]?(\\d{7,8})$"},{name:"Netherlands",internationalDiallingISOCode:"NL",internationalDiallingCode:"31",telephoneRegex:"^\\(?(\\d{2})\\)?[- ]?(\\d{3})[- ]?(\\d{4})$"},{name:"New Caledonia",internationalDiallingISOCode:"NC",internationalDiallingCode:"687",telephoneRegex:"^\\(?(\\d{1,2})\\)?[- ]?(\\d{2})[- ]?(\\d{2})$"},{name:"New Zealand",internationalDiallingISOCode:"NZ",internationalDiallingCode:"64",telephoneRegex:"^\\(?(\\d{1,2})\\)?[- ]?(\\d{3})[- ]?(\\d{4})$"},{name:"Nicaragua",internationalDiallingISOCode:"NI",internationalDiallingCode:"505",telephoneRegex:"^[2-9]\\d{7}$"},{name:"Niger",internationalDiallingISOCode:"NE",internationalDiallingCode:"227",telephoneRegex:"^[2-7]\\d{6}$"}
744,{name:"Nigeria",internationalDiallingISOCode:"NG",internationalDiallingCode:"234",telephoneRegex:"^[1-9]\\d{9}$"},{name:"Niue",internationalDiallingISOCode:"NU",internationalDiallingCode:"683",telephoneRegex:"^[1-9]\\d{3}$"},{name:"Norfolk Island",internationalDiallingISOCode:"NF",internationalDiallingCode:"672",telephoneRegex:"^[1-9]\\d{3}$"},{name:"North Korea",internationalDiallingISOCode:"KP",internationalDiallingCode:"850",telephoneRegex:"^[1-9]\\d{7,9}$"},{name:"North Macedonia",internationalDiallingISOCode:"MK",internationalDiallingCode:"389",telephoneRegex:"^[2-59]\\d{7}$"},{name:"Northern Mariana Islands",internationalDiallingISOCode:"MP",internationalDiallingCode:"1-670",telephoneRegex:"^1(670|671)[2-9]\\d{6}$"},{name:"Norway",internationalDiallingISOCode:"NO",internationalDiallingCode:"47",telephoneRegex:"^\\d{8}$"},{name:"Norway",internationalDiallingISOCode:"NO",internationalDiallingCode:"47",telephoneRegex:"^\\+47[\\d]{8}$"},{name:"Oman",internationalDiallingISOCode:"OM",internationalDiallingCode:"968",telephoneRegex:"^\\+968[\\d]{7}$"},{name:"Pakistan",internationalDiallingISOCode:"PK",internationalDiallingCode:"92",telephoneRegex:"^\\+92[\\d]{9}$"},{name:"Palau",internationalDiallingISOCode:"PW",internationalDiallingCode:"680",telephoneRegex:"^\\+680[\\d]{7}$"},{name:"Panama",internationalDiallingISOCode:"PA",internationalDiallingCode:"507",telephoneRegex:"^\\+507[\\d]{7}$"},{name:"Papua New Guinea",internationalDiallingISOCode:"PG",internationalDiallingCode:"675",telephoneRegex:"^\\+675[\\d]{7,8}$"},{name:"Paraguay",internationalDiallingISOCode:"PY",internationalDiallingCode:"595",telephoneRegex:"^\\+595[\\d]{8}$"},{name:"Peru",internationalDiallingISOCode:"PE",internationalDiallingCode:"51",telephoneRegex:"^\\+51[\\d]{8,9}$"},{name:"Philippines",internationalDiallingISOCode:"PH",internationalDiallingCode:"63",telephoneRegex:"^\\+63[\\d]{10}$"},{name:"Poland",internationalDiallingISOCode:"PL",internationalDiallingCode:"48",telephoneRegex:"^\\+48[\\d]{9}$"},{name:"Portugal",internationalDiallingISOCode:"PT",internationalDiallingCode:"351",telephoneRegex:"^\\+351[\\d]{9}$"},{name:"Qatar",internationalDiallingISOCode:"QA",internationalDiallingCode:"974",telephoneRegex:"^\\+974[\\d]{7}$"},{name:"Romania",internationalDiallingISOCode:"RO",internationalDiallingCode:"40",telephoneRegex:"^\\+40[\\d]{9}$"},{name:"Russia",internationalDiallingISOCode:"RU",internationalDiallingCode:"7",telephoneRegex:"^\\+7[\\d]{10}$"},{name:"Rwanda",internationalDiallingISOCode:"RW",internationalDiallingCode:"250",telephoneRegex:"\\+250\\d{8}$"},{name:"Saint Barthelemy",internationalDiallingISOCode:"BL",internationalDiallingCode:"590",telephoneRegex:"\\+590\\s?(590|690)\\s?\\d{4}$"},{name:"Saint Helena, Ascension and Tristan da Cunha",internationalDiallingISOCode:"SH",internationalDiallingCode:"290",telephoneRegex:"\\+290\\d{4}$"},{name:"Saint Kitts and Nevis",internationalDiallingISOCode:"KN",internationalDiallingCode:"1-869",telephoneRegex:"\\+1-869\\d{7}$"},{name:"Saint Lucia",internationalDiallingISOCode:"LC",internationalDiallingCode:"1-758",telephoneRegex:"\\+1-758\\d{7}$"},{name:"Saint Martin (French part)",internationalDiallingISOCode:"MF",internationalDiallingCode:"590",telephoneRegex:"\\+590\\s?(590|690)\\s?\\d{4}$"},{name:"Saint Pierre and Miquelon",internationalDiallingISOCode:"PM",internationalDiallingCode:"508",telephoneRegex:"\\+508\\d{6}$"},{name:"Saint Vincent and the Grenadines",internationalDiallingISOCode:"VC",internationalDiallingCode:"1-784",telephoneRegex:"\\+1-784\\d{7}$"},{name:"Samoa",internationalDiallingISOCode:"WS",internationalDiallingCode:"685",telephoneRegex:"\\+685\\d{7}$"},{name:"San Marino",internationalDiallingISOCode:"SM",internationalDiallingCode:"378",telephoneRegex:"\\+378\\d{5,6}$"},{name:"Sao Tome and Principe",internationalDiallingISOCode:"ST",internationalDiallingCode:"239",telephoneRegex:"\\+239\\d{4}$"},{name:"Saudi Arabia",internationalDiallingISOCode:"SA",internationalDiallingCode:"966",telephoneRegex:"\\+966\\d{9}$"},{name:"Senegal",internationalDiallingISOCode:"SN",internationalDiallingCode:"221",telephoneRegex:"^(\\+221)\\d{8}$"},{name:"Serbia",internationalDiallingISOCode:"RS",internationalDiallingCode:"381",telephoneRegex:"^(\\+381)\\d{5,9}$"},{name:"Seychelles",internationalDiallingISOCode:"SC",internationalDiallingCode:"248",telephoneRegex:"^(\\+248)\\d{6}$"},{name:"Sierra Leone",internationalDiallingISOCode:"SL",internationalDiallingCode:"232",telephoneRegex:"^(\\+232)\\d{8}$"},{name:"Singapore",internationalDiallingISOCode:"SG",internationalDiallingCode:"65",telephoneRegex:"^(\\+65)\\d{8}$"},{name:"Slovakia",internationalDiallingISOCode:"SK",internationalDiallingCode:"421",telephoneRegex:"^(\\+421)\\d{9}$"},{name:"Slovenia",internationalDiallingISOCode:"SI",internationalDiallingCode:"386",telephoneRegex:"^(\\+386)\\d{7}$"}
744,{name:"Solomon Islands",internationalDiallingISOCode:"SB",internationalDiallingCode:"677",telephoneRegex:"^(\\+677)\\d{5}$"},{name:"Somalia",internationalDiallingISOCode:"SO",internationalDiallingCode:"252",telephoneRegex:"^(\\+252)\\d{7,8}$"},{name:"South Africa",internationalDiallingISOCode:"ZA",internationalDiallingCode:"27",telephoneRegex:"^(\\+27)\\d{9}$"},{name:"South Georgia and the South Sandwich Islands",internationalDiallingISOCode:"GS",internationalDiallingCode:"500",telephoneRegex:"^(\\+500)\\d{4}$"},{name:"South Sudan",internationalDiallingISOCode:"SS",internationalDiallingCode:"211",telephoneRegex:"^(\\+211)\\d{9}$"},{name:"Spain",internationalDiallingISOCode:"ES",internationalDiallingCode:"34",telephoneRegex:"^(\\+34)\\d{9}$"},{name:"Sri Lanka",internationalDiallingISOCode:"LK",internationalDiallingCode:"94",telephoneRegex:"^(?:0|94|\\+94)?(\\d{9})$"},{name:"Sudan",internationalDiallingISOCode:"SD",internationalDiallingCode:"249",telephoneRegex:"^(?:0|249|\\+249)?(\\d{9})$"},{name:"Suriname",internationalDiallingISOCode:"SR",internationalDiallingCode:"597",telephoneRegex:"^(?:0|597|\\+597)?(\\d{7})$"},{name:"Sweden",internationalDiallingISOCode:"SE",internationalDiallingCode:"46",telephoneRegex:"^(?:0|46|\\+46)?(\\d{9,10})$"},{name:"Switzerland",internationalDiallingISOCode:"CH",internationalDiallingCode:"41",telephoneRegex:"^(?:0|41|\\+41)?(\\d{9})$"},{name:"Syria",internationalDiallingISOCode:"SY",internationalDiallingCode:"963",telephoneRegex:"^(?:0|963|\\+963)?(\\d{9})$"},{name:"Taiwan",internationalDiallingISOCode:"TW",internationalDiallingCode:"886",telephoneRegex:"^(?:0|886|\\+886)?(\\d{8,10})$"},{name:"Tajikistan",internationalDiallingISOCode:"TJ",internationalDiallingCode:"992",telephoneRegex:"^(?:0|992|\\+992)?(\\d{9})$"},{name:"Tanzania",internationalDiallingISOCode:"TZ",internationalDiallingCode:"255",telephoneRegex:"^(?:0|255|\\+255)?(\\d{9})$"},{name:"Thailand",internationalDiallingISOCode:"TH",internationalDiallingCode:"66",telephoneRegex:"^(?:0|66|\\+66)?(\\d{8,9})$"},{name:"Timor-Leste",internationalDiallingISOCode:"TL",internationalDiallingCode:"670",telephoneRegex:"^(?:0|670|\\+670)?(\\d{7})$"},{name:"Togo",internationalDiallingISOCode:"TG",internationalDiallingCode:"228",telephoneRegex:"^(?:0|228|\\+228)?(\\d{8})$"},{name:"Tokelau",internationalDiallingISOCode:"TK",internationalDiallingCode:"690",telephoneRegex:"^\\d{5}$"},{name:"Tonga",internationalDiallingISOCode:"TO",internationalDiallingCode:"676",telephoneRegex:"^\\d{5}$"},{name:"Trinidad and Tobago",internationalDiallingISOCode:"TT",internationalDiallingCode:"1-868",telephoneRegex:"^\\d{7}$"},{name:"Tunisia",internationalDiallingISOCode:"TN",internationalDiallingCode:"216",telephoneRegex:"^\\d{8}$"},{name:"Turkey",internationalDiallingISOCode:"TR",internationalDiallingCode:"90",telephoneRegex:"^\\d{10}$"},{name:"Turkmenistan",internationalDiallingISOCode:"TM",internationalDiallingCode:"993",telephoneRegex:"^\\d{8}$"},{name:"Turks and Caicos Islands",internationalDiallingISOCode:"TC",internationalDiallingCode:"1-649",telephoneRegex:"^\\d{7}$"},{name:"Tuvalu",internationalDiallingISOCode:"TV",internationalDiallingCode:"688",telephoneRegex:"^\\d{5}$"},{name:"Uganda",internationalDiallingISOCode:"UG",internationalDiallingCode:"256",telephoneRegex:"^\\d{9}$"},{name:"Ukraine",internationalDiallingISOCode:"UA",internationalDiallingCode:"380",telephoneRegex:"^\\d{9}$"},{name:"United Arab Emirates",internationalDiallingISOCode:"AE",internationalDiallingCode:"971",telephoneRegex:"^\\d{9}$"},{name:"United Kingdom",internationalDiallingISOCode:"GB",internationalDiallingCode:"44",telephoneRegex:"^(?:\\d{10}|\\d{11}|\\d{12})$"},{name:"United States",internationalDiallingISOCode:"US",internationalDiallingCode:"1",telephoneRegex:"^(?:\\d{10}|\\d{11})$"},{name:"Uruguay",internationalDiallingISOCode:"UY",internationalDiallingCode:"598",telephoneRegex:"^\\d{8}$"},{name:"Uruguay",internationalDiallingISOCode:"UY",internationalDiallingCode:"598",telephoneRegex:"^\\d{8}$"},{name:"Uzbekistan",internationalDiallingISOCode:"UZ",internationalDiallingCode:"998",telephoneRegex:"^\\d{9}$"},{name:"Vanuatu",internationalDiallingISOCode:"VU",internationalDiallingCode:"678",telephoneRegex:"^\\d{7}$"},{name:"Vatican City",internationalDiallingISOCode:"VA",internationalDiallingCode:"379",telephoneRegex:"^\\d{10}$"},{name:"Venezuela",internationalDiallingISOCode:"VE",internationalDiallingCode:"58",telephoneRegex:"^\\d{7,10}$"},{name:"Vietnam",internationalDiallingISOCode:"VN",internationalDiallingCode:"84",telephoneRegex:"^\\d{8,10}$"},{name:"Wallis and Futuna",internationalDiallingISOCode:"WF",internationalDiallingCode:"681",telephoneRegex:"^\\d{6}$"},{name:"Western Sahara",internationalDiallingISOCode:"EH",internationalDiallingCode:"212",telephoneRegex:"^\\d{8}$"},{name:"Yemen",internationalDiallingISOCode:"YE",internationalDiallingCode:"967",telephoneRegex:"^\\d{7,9}$"},{name:"Zambia",internationalDiallingISOCode:"ZM",internationalDiallingCode:"260",telephoneRegex:"^\\d{9}$"},{name:"Zimbabwe",internationalDiallingISOCode:"ZW",internationalDiallingCode:"263",telephoneRegex:"^\\d{5,9}$"}],Ooe=[{value:1,label:"White"},{value:2,label:"White and Black Caribbean"},{value:3,label:"White and Black African"},{value:4,label:"White and Asian"},{value:5,label:"Mixed other"},{value:6,label:"Black Caribbean"},{value:7,label:"Black African"},{value:8,label:"Black other"},{value:9,label:"Pakistani"},{value:10,label:"Bangladesh"},{value:11,label:"Indian"},{value:12,label:"Chinese"},{value:13,label:"Asian other"},{value:14,label:"Other ethnic group"}],wS=class{constructor(){this.image=null,this.website=null,this.partnershipDescription=null}},P0=[{id:"GBR",name:"United Kingdom"},{id:"GBR",name:"United Kingdom (UK)"},{id:"ABW",name:"Aruba"},{id:"AFG",name:"Afghanistan"},{id:"AGO",name:"Angola"},{id:"AIA",name:"Anguilla"},{id:"ALA",name:"Aland Islands"},{id:"ALB",name:"Albania"},{id:"AND",name:"Andorra"},{id:"ANT",name:"Netherlands Antilles"},{id:"ARE",name:"United Arab Emirates"},{id:"ARG",name:"Argentina"},{id:"ARM",name:"Armenia"},{id:"ASM",name:"American Samoa"},{id:"ATA",name:"Antarctica"},{id:"ATF",name:"French Southern Territories"},{id:"ATG",name:"Antigua and Barbuda"},{id:"AUS",name:"Australia"},{id:"AUT",name:"Austria"},{id:"AZE",name:"Azerbaijan"},{id:"BDI",name:"Burundi"},{id:"BEL",name:"Belgium"},{id:"BEN",name:"Benin"},{id:"BFA",name:"Burkina Faso"},{id:"BGD",name:"Bangladesh"},{id:"BGR",name:"Bulgaria"},{id:"BHR",name:"Bahrain"},{id:"BHS",name:"Bahamas"},{id:"BIH",name:"Bosnia and Herzegovina"},{id:"BLM",name:"Saint-Barth\xE9lemy"},{id:"BLR",name:"Belarus"},{id:"BLZ",name:"Belize"},{id:"BMU",name:"Bermuda"},{id:"BOL",name:"Bolivia"},{id:"BRA",name:"Brazil"},{id:"BRB",name:"Barbados"},{id:"BRN",name:"Brunei Darussalam"},{id:"BTN",name:"Bhutan"},{id:"BVT",name:"Bouvet Island"},{id:"BWA",name:"Botswana"},{id:"CAF",name:"Central African Republic"},{id:"CAN",name:"Canada"},{id:"CCK",name:"Cocos (Keeling) Islands"}
744,{id:"CHE",name:"Switzerland"},{id:"CHL",name:"Chile"},{id:"CHN",name:"China"},{id:"CIV",name:"C\xF4te d'Ivoire"},{id:"CMR",name:"Cameroon"},{id:"COD",name:"Congo, (Kinshasa)"},{id:"COG",name:"Congo (Brazzaville)"},{id:"COK",name:"Cook Islands"},{id:"COL",name:"Colombia"},{id:"COM",name:"Comoros"},{id:"CPV",name:"Cape Verde"},{id:"CRI",name:"Costa Rica"},{id:"CUB",name:"Cuba"},{id:"CXR",name:"Christmas Island"},{id:"CYM",name:"Cayman Islands"},{id:"CYP",name:"Cyprus"},{id:"CZE",name:"Czech Republic"},{id:"DEU",name:"Germany"},{id:"DJI",name:"Djibouti"},{id:"DMA",name:"Dominica"},{id:"DNK",name:"Denmark"},{id:"DOM",name:"Dominican Republic"},{id:"DZA",name:"Algeria"},{id:"ECU",name:"Ecuador"},{id:"EGY",name:"Egypt"},{id:"ERI",name:"Eritrea"},{id:"ESH",name:"Western Sahara"},{id:"ESP",name:"Spain"},{id:"EST",name:"Estonia"},{id:"ETH",name:"Ethiopia"},{id:"FIN",name:"Finland"},{id:"FJI",name:"Fiji"},{id:"FLK",name:"Falkland Islands (Malvinas)"},{id:"FRA",name:"France"},{id:"FRO",name:"Faroe Islands"},{id:"FSM",name:"Micronesia, Federated States of"},{id:"GAB",name:"Gabon"},{id:"GEO",name:"Georgia"},{id:"GGY",name:"Guernsey"},{id:"GHA",name:"Ghana"},{id:"GIB",name:"Gibraltar"},{id:"GIN",name:"Guinea"},{id:"GLP",name:"Guadeloupe"},{id:"GMB",name:"Gambia"},{id:"GNB",name:"Guinea-Bissau"},{id:"GNQ",name:"Equatorial Guinea"},{id:"GRC",name:"Greece"},{id:"GRD",name:"Grenada"},{id:"GRL",name:"Greenland"},{id:"GTM",name:"Guatemala"},{id:"GUF",name:"French Guiana"},{id:"GUM",name:"Guam"},{id:"GUY",name:"Guyana"},{id:"HKG",name:"Hong Kong, SAR China"},{id:"HMD",name:"Heard and Mcdonald Islands"},{id:"HND",name:"Honduras"},{id:"HRV",name:"Croatia"},{id:"HTI",name:"Haiti"},{id:"HUN",name:"Hungary"},{id:"IDN",name:"Indonesia"},{id:"IMN",name:"Isle of Man"},{id:"IND",name:"India"},{id:"IOT",name:"British Indian Ocean Territory"},{id:"IRL",name:"Ireland"},{id:"IRN",name:"Iran, Islamic Republic of"},{id:"IRQ",name:"Iraq"},{id:"ISL",name:"Iceland"},{id:"ISR",name:"Israel"},{id:"ITA",name:"Italy"},{id:"JAM",name:"Jamaica"},{id:"JEY",name:"Jersey"},{id:"JOR",name:"Jordan"},{id:"JPN",name:"Japan"},{id:"KAZ",name:"Kazakhstan"},{id:"KEN",name:"Kenya"},{id:"KGZ",name:"Kyrgyzstan"},{id:"KHM",name:"Cambodia"},{id:"KIR",name:"Kiribati"},{id:"KNA",name:"Saint Kitts and Nevis"},{id:"KOR",name:"Korea (South)"},{id:"KWT",name:"Kuwait"},{id:"LAO",name:"Lao PDR"},{id:"LBN",name:"Lebanon"},{id:"LBR",name:"Liberia"},{id:"LBY",name:"Libya"},{id:"LCA",name:"Saint Lucia"},{id:"LIE",name:"Liechtenstein"},{id:"LKA",name:"Sri Lanka"},{id:"LSO",name:"Lesotho"},{id:"LTU",name:"Lithuania"},{id:"LUX",name:"Luxembourg"},{id:"LVA",name:"Latvia"},{id:"MAC",name:"Macao, SAR China"},{id:"MAF",name:"Saint-Martin (French part)"},{id:"MAR",name:"Morocco"},{id:"MCO",name:"Monaco"},{id:"MDA",name:"Moldova"},{id:"MDG",name:"Madagascar"},{id:"MDV",name:"Maldives"},{id:"MEX",name:"Mexico"},{id:"MHL",name:"Marshall Islands"},{id:"MKD",name:"Macedonia, Republic of"},{id:"MLI",name:"Mali"},{id:"MLT",name:"Malta"},{id:"MMR",name:"Myanmar"},{id:"MNE",name:"Montenegro"},{id:"MNG",name:"Mongolia"},{id:"MNP",name:"Northern Mariana Islands"},{id:"MOZ",name:"Mozambique"},{id:"MRT",name:"Mauritania"},{id:"MSR",name:"Montserrat"},{id:"MTQ",name:"Martinique"},{id:"MUS",name:"Mauritius"},{id:"MWI",name:"Malawi"},{id:"MYS",name:"Malaysia"},{id:"MYT",name:"Mayotte"},{id:"NAM",name:"Namibia"},{id:"NCL",name:"New Caledonia"},{id:"NER",name:"Niger"},{id:"NFK",name:"Norfolk Island"},{id:"NGA",name:"Nigeria"},{id:"NIC",name:"Nicaragua"},{id:"NIU",name:"Niue"},{id:"NLD",name:"Netherlands"},{id:"NOR",name:"Norway"},{id:"NPL",name:"Nepal"},{id:"NRU",name:"Nauru"},{id:"NZL",name:"New Zealand"},{id:"OMN",name:"Oman"},{id:"PAK",name:"Pakistan"},{id:"PAN",name:"Panama"},{id:"PCN",name:"Pitcairn"},{id:"PER",name:"Peru"},{id:"PHL",name:"Philippines"},{id:"PLW",name:"Palau"},{id:"PNG",name:"Papua New Guinea"},{id:"POL",name:"Poland"},{id:"PRI",name:"Puerto Rico"},{id:"PRK",name:"Korea (North)"},{id:"PRT",name:"Portugal"},{id:"PRY",name:"Paraguay"},{id:"PSE",name:"Palestinian Territory"},{id:"PYF",name:"French Polynesia"},{id:"QAT",name:"Qatar"},{id:"REU",name:"R\xE9union"},{id:"ROU",name:"Romania"},{id:"RUS",name:"Russian Federation"},{id:"RWA",name:"Rwanda"},{id:"SAU",name:"Saudi Arabia"}
744,{id:"SDN",name:"Sudan"},{id:"SEN",name:"Senegal"},{id:"SGP",name:"Singapore"},{id:"SGS",name:"South Georgia and the South Sandwich Islands"},{id:"SHN",name:"Saint Helena"},{id:"SJM",name:"Svalbard and Jan Mayen Islands"},{id:"SLB",name:"Solomon Islands"},{id:"SLE",name:"Sierra Leone"},{id:"SLV",name:"El Salvador"},{id:"SMR",name:"San Marino"},{id:"SOM",name:"Somalia"},{id:"SPM",name:"Saint Pierre and Miquelon"},{id:"SRB",name:"Serbia"},{id:"SSD",name:"South Sudan"},{id:"STP",name:"Sao Tome and Principe"},{id:"SUR",name:"Suriname"},{id:"SVK",name:"Slovakia"},{id:"SVN",name:"Slovenia"},{id:"SWE",name:"Sweden"},{id:"SWZ",name:"Swaziland"},{id:"SYC",name:"Seychelles"},{id:"SYR",name:"Syrian Arab Republic (Syria)"},{id:"TCA",name:"Turks and Caicos Islands"},{id:"TCD",name:"Chad"},{id:"TGO",name:"Togo"},{id:"THA",name:"Thailand"},{id:"TJK",name:"Tajikistan"},{id:"TKL",name:"Tokelau"},{id:"TKM",name:"Turkmenistan"},{id:"TLS",name:"Timor-Leste"},{id:"TON",name:"Tonga"},{id:"TTO",name:"Trinidad and Tobago"},{id:"TUN",name:"Tunisia"},{id:"TUR",name:"Turkey"},{id:"TUV",name:"Tuvalu"},{id:"TWN",name:"Taiwan, Republic of China"},{id:"TZA",name:"Tanzania, United Republic of"},{id:"UGA",name:"Uganda"},{id:"UKR",name:"Ukraine"},{id:"UMI",name:"US Minor Outlying Islands"},{id:"URY",name:"Uruguay"},{id:"USA",name:"United States of America"},{id:"UZB",name:"Uzbekistan"},{id:"VAT",name:"Holy See (Vatican City State)"},{id:"VCT",name:"Saint Vincent and Grenadines"},{id:"VEN",name:"Venezuela (Bolivarian Republic)"}
744,{id:"VGB",name:"British Virgin Islands"},{id:"VIR",name:"Virgin Islands, US"},{id:"VNM",name:"Viet Nam"},{id:"VUT",name:"Vanuatu"},{id:"WLF",name:"Wallis and Futuna Islands"},{id:"WSM",name:"Samoa"},{id:"YEM",name:"Yemen"},{id:"ZAF",name:"South Africa"},{id:"ZMB",name:"Zambia"},{id:"ZWE",name:"Zimbabwe"},{id:"GBR",name:"United Kingdom (Britain)"},{id:"GBR",name:"United Kingdom (England)"},{id:"GBR",name:"United Kingdom (Great Britain)"},{id:"GBR",name:"United Kingdom (Scotland)"},{id:"GBR",name:"United Kingdom (Wales)"},{id:"GBR",name:"United Kingdom (Northern Ireland)"},{id:"USA",name:"United States of America (USA)"},{id:"NLD",name:"Netherlands (Holland)"}],Aoe=[{iso3:"AFG",iso2:"AF"},{iso3:"ALA",iso2:"AX"},{iso3:"ALB",iso2:"AL"},{iso3:"DZA",iso2:"DZ"},{iso3:"ASM",iso2:"AS"},{iso3:"AND",iso2:"AD"},{iso3:"AGO",iso2:"AO"},{iso3:"AIA",iso2:"AI"},{iso3:"ATA",iso2:"AQ"},{iso3:"ATG",iso2:"AG"},{iso3:"ARG",iso2:"AR"},{iso3:"ARM",iso2:"AM"},{iso3:"ABW",iso2:"AW"},{iso3:"AUS",iso2:"AU"},{iso3:"AUT",iso2:"AT"},{iso3:"AZE",iso2:"AZ"},{iso3:"BHS",iso2:"BS"},{iso3:"BHR",iso2:"BH"},{iso3:"BGD",iso2:"BD"},{iso3:"BRB",iso2:"BB"},{iso3:"BLR",iso2:"BY"},{iso3:"BEL",iso2:"BE"},{iso3:"BLZ",iso2:"BZ"},{iso3:"BEN",iso2:"BJ"},{iso3:"BMU",iso2:"BM"},{iso3:"BTN",iso2:"BT"},{iso3:"BOL",iso2:"BO"},{iso3:"BIH",iso2:"BA"},{iso3:"BWA",iso2:"BW"},{iso3:"BVT",iso2:"BV"},{iso3:"BRA",iso2:"BR"},{iso3:"VGB",iso2:"VG"},{iso3:"IOT",iso2:"IO"},{iso3:"BRN",iso2:"BN"},{iso3:"BGR",iso2:"BG"},{iso3:"BFA",iso2:"BF"},{iso3:"BDI",iso2:"BI"},{iso3:"KHM",iso2:"KH"},{iso3:"CMR",iso2:"CM"},{iso3:"CAN",iso2:"CA"},{iso3:"CPV",iso2:"CV"},{iso3:"CYM",iso2:"KY"},{iso3:"CAF",iso2:"CF"},{iso3:"TCD",iso2:"TD"},{iso3:"CHL",iso2:"CL"},{iso3:"CHN",iso2:"CN"},{iso3:"HKG",iso2:"HK"},{iso3:"MAC",iso2:"MO"},{iso3:"CXR",iso2:"CX"},{iso3:"CCK",iso2:"CC"},{iso3:"COL",iso2:"CO"},{iso3:"COM",iso2:"KM"},{iso3:"COG",iso2:"CG"},{iso3:"COD",iso2:"CD"},{iso3:"COK",iso2:"CK"},{iso3:"CRI",iso2:"CR"},{iso3:"CIV",iso2:"CI"},{iso3:"HRV",iso2:"HR"},{iso3:"CUB",iso2:"CU"},{iso3:"CYP",iso2:"CY"},{iso3:"CZE",iso2:"CZ"},{iso3:"DNK",iso2:"DK"},{iso3:"DJI",iso2:"DJ"},{iso3:"DMA",iso2:"DM"},{iso3:"DOM",iso2:"DO"},{iso3:"ECU",iso2:"EC"},{iso3:"EGY",iso2:"EG"},{iso3:"SLV",iso2:"SV"},{iso3:"GNQ",iso2:"GQ"},{iso3:"ERI",iso2:"ER"},{iso3:"EST",iso2:"EE"},{iso3:"ETH",iso2:"ET"},{iso3:"FLK",iso2:"FK"},{iso3:"FRO",iso2:"FO"},{iso3:"FJI",iso2:"FJ"},{iso3:"FIN",iso2:"FI"},{iso3:"FRA",iso2:"FR"},{iso3:"GUF",iso2:"GF"},{iso3:"PYF",iso2:"PF"},{iso3:"ATF",iso2:"TF"},{iso3:"GAB",iso2:"GA"},{iso3:"GMB",iso2:"GM"},{iso3:"GEO",iso2:"GE"},{iso3:"DEU",iso2:"DE"},{iso3:"GHA",iso2:"GH"},{iso3:"GIB",iso2:"GI"},{iso3:"GRC",iso2:"GR"},{iso3:"GRL",iso2:"GL"},{iso3:"GRD",iso2:"GD"},{iso3:"GLP",iso2:"GP"},{iso3:"GUM",iso2:"GU"},{iso3:"GTM",iso2:"GT"},{iso3:"GGY",iso2:"GG"},{iso3:"GIN",iso2:"GN"},{iso3:"GNB",iso2:"GW"},{iso3:"GUY",iso2:"GY"},{iso3:"HTI",iso2:"HT"},{iso3:"HMD",iso2:"HM"},{iso3:"VAT",iso2:"VA"},{iso3:"HND",iso2:"HN"},{iso3:"HUN",iso2:"HU"},{iso3:"ISL",iso2:"IS"},{iso3:"IND",iso2:"IN"},{iso3:"IDN",iso2:"ID"},{iso3:"IRN",iso2:"IR"},{iso3:"IRQ",iso2:"IQ"},{iso3:"IRL",iso2:"IE"},{iso3:"IMN",iso2:"IM"},{iso3:"ISR",iso2:"IL"},{iso3:"ITA",iso2:"IT"},{iso3:"JAM",iso2:"JM"},{iso3:"JPN",iso2:"JP"},{iso3:"JEY",iso2:"JE"},{iso3:"JOR",iso2:"JO"},{iso3:"KAZ",iso2:"KZ"},{iso3:"KEN",iso2:"KE"},{iso3:"KIR",iso2:"KI"},{iso3:"PRK",iso2:"KP"},{iso3:"KOR",iso2:"KR"},{iso3:"KWT",iso2:"KW"},{iso3:"KGZ",iso2:"KG"},{iso3:"LAO",iso2:"LA"},{iso3:"LVA",iso2:"LV"},{iso3:"LBN",iso2:"LB"},{iso3:"LSO",iso2:"LS"},{iso3:"LBR",iso2:"LR"},{iso3:"LBY",iso2:"LY"},{iso3:"LIE",iso2:"LI"},{iso3:"LTU",iso2:"LT"},{iso3:"LUX",iso2:"LU"},{iso3:"MKD",iso2:"MK"},{iso3:"MDG",iso2:"MG"},{iso3:"MWI",iso2:"MW"},{iso3:"MYS",iso2:"MY"},{iso3:"MDV",iso2:"MV"},{iso3:"MLI",iso2:"ML"},{iso3:"MLT",iso2:"MT"},{iso3:"MHL",iso2:"MH"},{iso3:"MTQ",iso2:"MQ"},{iso3:"MRT",iso2:"MR"},{iso3:"MUS",iso2:"MU"},{iso3:"MYT",iso2:"YT"},{iso3:"MEX",iso2:"MX"},{iso3:"FSM",iso2:"FM"},{iso3:"MDA",iso2:"MD"},{iso3:"MCO",iso2:"MC"},{iso3:"MNG",iso2:"MN"},{iso3:"MNE",iso2:"ME"},{iso3:"MSR",iso2:"MS"},{iso3:"MAR",iso2:"MA"},{iso3:"MOZ",iso2:"MZ"},{iso3:"MMR",iso2:"MM"},{iso3:"NAM",iso2:"NA"},{iso3:"NRU",iso2:"NR"},{iso3:"NPL",iso2:"NP"},{iso3:"NLD",iso2:"NL"},{iso3:"ANT",iso2:"AN"},{iso3:"NCL",iso2:"NC"},{iso3:"NZL",iso2:"NZ"},{iso3:"NIC",iso2:"NI"},{iso3:"NER",iso2:"NE"},{iso3:"NGA",iso2:"NG"},{iso3:"NIU",iso2:"NU"},{iso3:"NFK",iso2:"NF"},{iso3:"MNP",iso2:"MP"},{iso3:"NOR",iso2:"NO"},{iso3:"OMN",iso2:"OM"},{iso3:"PAK",iso2:"PK"},{iso3:"PLW",iso2:"PW"},{iso3:"PSE",iso2:"PS"},{iso3:"PAN",iso2:"PA"},{iso3:"PNG",iso2:"PG"},{iso3:"PRY",iso2:"PY"},{iso3:"PER",iso2:"PE"},{iso3:"PHL",iso2:"PH"},{iso3:"PCN",iso2:"PN"},{iso3:"POL",iso2:"PL"},{iso3:"PRT",iso2:"PT"},{iso3:"PRI",iso2:"PR"},{iso3:"QAT",iso2:"QA"},{iso3:"REU",iso2:"RE"},{iso3:"ROU",iso2:"RO"},{iso3:"RUS",iso2:"RU"},{iso3:"RWA",iso2:"RW"},{iso3:"BLM",iso2:"BL"},{iso3:"SHN",iso2:"SH"},{iso3:"KNA",iso2:"KN"},{iso3:"LCA",iso2:"LC"},{iso3:"MAF",iso2:"MF"},{iso3:"SPM",iso2:"PM"},{iso3:"VCT",iso2:"VC"},{iso3:"WSM",iso2:"WS"},{iso3:"SMR",iso2:"SM"},{iso3:"STP",iso2:"ST"},{iso3:"SAU",iso2:"SA"},{iso3:"SEN",iso2:"SN"},{iso3:"SRB",iso2:"RS"},{iso3:"SYC",iso2:"SC"},{iso3:"SLE",iso2:"SL"},{iso3:"SGP",iso2:"SG"},{iso3:"SVK",iso2:"SK"},{iso3:"SVN",iso2:"SI"},{iso3:"SLB",iso2:"SB"},{iso3:"SOM",iso2:"SO"},{iso3:"ZAF",iso2:"ZA"},{iso3:"SGS",iso2:"GS"},{iso3:"SSD",iso2:"SS"},{iso3:"ESP",iso2:"ES"},{iso3:"LKA",iso2:"LK"},{iso3:"SDN",iso2:"SD"},{iso3:"SUR",iso2:"SR"},{iso3:"SJM",iso2:"SJ"},{iso3:"SWZ",iso2:"SZ"},{iso3:"SWE",iso2:"SE"},{iso3:"CHE",iso2:"CH"},{iso3:"SYR",iso2:"SY"},{iso3:"TWN",iso2:"TW"},{iso3:"TJK",iso2:"TJ"},{iso3:"TZA",iso2:"TZ"},{iso3:"THA",iso2:"TH"},{iso3:"TLS",iso2:"TL"},{iso3:"TGO",iso2:"TG"},{iso3:"TKL",iso2:"TK"},{iso3:"TON",iso2:"TO"},{iso3:"TTO",iso2:"TT"},{iso3:"TUN",iso2:"TN"},{iso3:"TUR",iso2:"TR"},{iso3:"TKM",iso2:"TM"},{iso3:"TCA",iso2:"TC"},{iso3:"TUV",iso2:"TV"},{iso3:"UGA",iso2:"UG"},{iso3:"UKR",iso2:"UA"},{iso3:"ARE",iso2:"AE"},{iso3:"GBR",iso2:"GB"},{iso3:"USA",iso2:"US"}
744,{iso3:"UMI",iso2:"UM"},{iso3:"URY",iso2:"UY"},{iso3:"UZB",iso2:"UZ"},{iso3:"VUT",iso2:"VU"},{iso3:"VEN",iso2:"VE"},{iso3:"VNM",iso2:"VN"},{iso3:"VIR",iso2:"VI"},{iso3:"WLF",iso2:"WF"},{iso3:"ESH",iso2:"EH"},{iso3:"YEM",iso2:"YE"},{iso3:"ZMB",iso2:"ZM"},{iso3:"ZWE",iso2:"ZW"}];var Loe="/assets/icons/aat-icons",Zi=(function(e){return e.achievement="achievement.svg",e.arrow="arrow.svg",e.audio="audio.svg",e.basket="basket.svg",e.building="building.svg",e.calendar="calendar.svg",e.cart="cart.svg",e.circle="circle.svg",e.clock="clock.svg",e.compare="compare.svg",e.computer="computer.svg",e.cross="cross.svg",e.delivery="delivery.svg",e.document="document.svg",e.email="email.svg",e.finance="finance.svg",e.flag="flag.svg",e.global="global.svg",e.globe_arrows="globe-arrows.svg",e.growth="growth.svg",e.heart="heart.svg",e.info="info.svg",e.laptop_tick="laptop-tick.svg",e.location="location.svg",e.padlock="padlock.svg",e.person="person.svg",e.phone="phone.svg",e.play="play.svg",e.plus="plus.svg",e.restricted="restricted.svg",e.search="search.svg",e.small_business="small-business.svg",e.star="star.svg",e.tick="tick.svg",e.trash="trash.svg",e.wifi="wifi.svg",e})(Zi||{}),fr=(function(e){return e.TIKTOK="tiktok",e.ENVELOPE_OPEN_TEXT_SOLID="envelope-open-text-solid",e.AAT_COMMENT="aat-comment",e.AAT_DISCUSSION_FORUMS="aat-discussion-forums",e.ARROW_ACTION="arrow-action",e.ARROW_DOUBLE_LEFT="arrow-double-left",e.ARROW_DOUBLE_RIGHT="arrow-double-right",e.CALL="call",e.COPY_URL="copy-url",e.DOWNLOAD="download",e.FACEBOOK="facebook",e.FILTERS="filters",e.GOOGLE_PLUS="google-plus",e.HOME="home",e.INSTAGRAM="instagram",e.KNOWLEDGE_HUB="knowledge-hub",e.LINK="link",e.LINKEDIN="linkedin",e.LIST="list",e.MEDIUM="medium",e.MENU_HAMBURGER="menu-hamburger",e.MENU_SECONDARY="menu-secondary",e.MESSENGER="messenger",e.MINUS_LARGE="minus-large",e.MY_CAREER="my-career",e.MY_MEMBERSHIP="my-membership",e.NEWS_EVENTS="news-events",e.PINTREST="pintrest",e.PRINT="print",e.PROFESSIONAL_ZONE="professional-zone",e.STATUS="status",e.SUPPORT_RESOURCES="support-resources",e.THUMBS_DOWN="thumbs-down",e.THUMBS_UP="thumbs-up",e.TILE="tile",e.TRAINING_ASSESSMENT="training-assessment",e.TUMBLR="tumblr",e.TWITTER="twitter",e.VISIBILITY_HIDE="visibility-hide",e.VISIBILITY_SHOW="visibility-show",e.VK="vk",e.WARNING="warning",e.WEIBO="weibo",e.WHATSAPP="whatsapp",e.YOUTUBE="youtube",e.LOOP2="loop2",e.COMPUTER="computer",e.ACHIEVEMENT="achievement",e.AUDIO="audio",e.BUILDING="building",e.CIRCLE="circle",e.COMPARE="compare",e.LAPTOP_TICK="laptop-tick",e.DOCUMENT="document",e.FINANCE="finance",e.GLOBAL="global",e.WEBSITE="website",e.GROWTH="growth",e.HEART="heart",e.FLAG="flag",e.PADLOCK="padlock",e.PERSON="person",e.PHONE="phone",e.GLOBE_ARROWS="globe-arrows",e.TRASH="trash",e.WIFI="wifi",e.SEARCH="search",e.PLAY_LARGE="play-large",e.FAVOURITE="favourite",e.STAR="star",e.INFO="info",e.CHECKMARK="checkmark",e.SUCCESS="success",e.CROSS="cross",e.CROSS_SMALL="cross-small",e.ARROW_UP="arrow-up",e.ARROW_DOWN="arrow-down",e.ARROW_LEFT="arrow-left",e.ARROW_RIGHT="arrow-right",e.PLUS="plus",e.PLUS_LARGE="plus-large",e.ERROR="error",e.RESTRICTED="restricted",e.MINUS="minus",e.CLOCK="clock",e.CALENDAR="calendar",e.EMAIL="email",e.CART="cart",e.BASKET="basket",e.LOCATION="location",e})(fr||{}),_0=(function(e){return e.SelfStudyOrg="2aa138d7-8900-e511-a653-005056b14c6a",e.UnattachedOrg="c24729f5-4e4d-e211-acc8-005056b14c6a",e})(_0||{}),Noe="/assets/images/shared/",Sc=(function(e){return e.aatLogo="aat_logo.svg",e.aatLogoInverted="aat_logo_inverted.svg",e.aatLogoMono="aat_logo_mono_rbg.svg",e.aatLogoFull="aat_logo_full.svg",e.aatLogoFullMono="aat_logo_rev_rgb.svg",e})(Sc||{}),YS=(function(e){return e.VRC001="VRC001",e.EXACT_MATCH="VRC001",e.EXACT_LINKED_MATCH="VRC002",e.POSSIBLE_MATCH="VRC003",e.POSSIBLE_LINKED_MATCH="VRC004",e})(YS||{}),zoe=(function(e){return e.DateOfBirth="dateOfBirth",e.Name="name",e.OrganisationName="organisationName",e.Address="address",e.BusinessEmail="businessEmail",e.Website="website",e})(zoe||{}),Boe=(function(e){return e.Pending="Pending",e.Approved="Approved",e})(Boe||{}),Voe=(function(e){return e.Contact="Contact",e.Organisation="Organisation",e})(Voe||{});var Hoe=[{value:1,label:"Mr"},{value:2,label:"Ms"},{value:3,label:"Miss"},{value:4,label:"Mrs"},{value:5,label:"Mx"}];var kc=(()=>{let t=class t{constructor(n,o){this.config=n,this._doc=o,this.baseUrl=this._doc.location.protocol+"//"+this._doc.location.host}getUrl(n){return this.baseUrl+this.getPathByEnumType(n)}getPathByEnumType(n){if(this.checkIfObjIsInEnum(n,Sc))return Noe+n.objName;if(this.checkIfObjIsInEnum(n,Zi)){let o=li.GREEN;return n.color&&(o=n.color),`${Loe}/${n.objName}`}return"/"}checkIfObjIsInEnum(n,o){return Object.values(o).includes(n.objName)}};t.\u0275fac=function(o){return new(o||t)(Y("fabricServicesConfig"),Y(ci))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Zn=(()=>{let t=class t{constructor(n){this.s3GetterService=n,this.size=_a.MEDIUM}ngOnInit(){this._colour=this.content.colour,this._icon=this.content?.iconName?.includes(".svg")?this.content.iconName:Zi[this.content.iconName],this.setIconUrl()}setColour(n){this._colour=n,this.setIconUrl()}setIconUrl(){this.iconUrl=this.s3GetterService.getUrl({objName:this._icon,color:this._colour}),this._path=`url("${this.iconUrl}")`,this._backgroundColour=this._colour}};t.\u0275fac=function(o){return new(o||t)(O(kc))},t.\u0275cmp=U({type:t,selectors:[["fab-aat-icon"]],hostVars:4,hostBindings:function(o,r){o&2&&xt("-webkit-mask-image",r._path)("background-color",r._backgroundColour)},inputs:{content:"content",size:"size"},standalone:!1,decls:0,vars:0,template:function(o,r){},styles:["[_nghost-%COMP%]{display:inline-block;height:100%;width:100%;-webkit-mask-size:contain;-webkit-mask-position:center;-webkit-mask-repeat:no-repeat}"]});let e=t;return e})(),Cr=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge]});let e=t;return e})(),Goe=typeof window<"u",Xn=(()=>{let t=class t{constructor(){}push(n){Goe&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push&&window.dataLayer.push(n))}trigger(n,o){this.push(B({event:n},o))}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),R0=(()=>{let t=class t{constructor(n,o){this._gtmService=o,this.show=!1,this.state="default",this.isOpen=!1,this.hostTitle=null,this.onToggle=new L,this.openAccordionLeft=!1,Ct(n)&&(this.show=!0)}toggle(){this.isOpen=!this.isOpen,this.rotateChevron(),this.onToggle.emit(this.isOpen),this._gtmService.trigger("accordion_clicked",{accordionText:this.title||this.minorTitle,accordionCollapse:!this.isOpen})}rotateChevron(){this.state=this.state==="default"?"rotated":"default"}};t.\u0275fac=function(o){return new(o||t)(O(gt),O(Xn))},t.\u0275cmp=U({type:t,selectors:[["fab-accordion"]],hostVars:1,hostBindings:function(o,r){o&2&&Ve("title",r.hostTitle)},inputs:{title:"title",minorTitle:"minorTitle",iconArrowLeft:"iconArrowLeft",isOpen:"isOpen"},outputs:{onToggle:"onToggle"},standalone:!1,ngContentSelectors:uU,decls:9,vars:6,consts:[[1,"accordion"],["tabindex","0",1,"accordion__header",3,"click","keydown.Enter"],[1,"accordion__show-less-more"],[1,"accordion__title"],[1,"icon","accordion__icon",3,"ngClass"],[1,"accordion__content"],[1,"accordion__show-less-more--text"],[1,"icon","accordion__icon","left",3,"ngClass"]],template:function(o,r){o&1&&(en(dU),p(0,"section",0)(1,"header",1),T("click",function(){return r.toggle(
744)})("keydown.Enter",function(){return r.toggle()}),y(2,gU,4,5,"div",2),ui(3,0,[1,""]),y(4,mU,2,1,"h4",3),y(5,fU,3,1,"span",3),y(6,vU,1,4,"span",4),u(),p(7,"div",5),ui(8,1),u()()),o&2&&(Pe("open",r.isOpen),d(2),w(r.iconArrowLeft?2:-1),d(2),w(r.title?4:-1),d(),w(r.minorTitle?5:-1),d(),w(r.iconArrowLeft?-1:6))},dependencies:[Ce],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.accordion__header__right{justify-content:space-between}.accordion{margin-bottom:-1px;border:1px solid #c3c3c3;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px}.accordion header{display:flex;cursor:pointer;padding:1em 2em 1em 1em;position:relative;align-items:center}.accordion__title{display:inline-block;max-width:90%;font-weight:500;font-family:acumin-pro-wide,Arial;color:#00ab4e;transition:ease-in-out .2s}.accordion__title:hover,.accordion__title:focus{color:#0a5c50;transition:ease-in-out .2s}.accordion__show-less-more{font-size:14px;color:#00ab4e;margin-right:10px;display:flex}.accordion__show-less-more--text{display:block;min-width:35px;margin-right:5px}.accordion__icon{font-size:22px;color:#00ab4e;position:absolute;right:.7em;padding:0}.accordion__icon.left{padding:0}.accordion__header-injection{margin-left:10px}.accordion__content p{line-height:1.5em}.accordion__content{color:#000;height:0;overflow:hidden;padding:0 1em;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.accordion.open .accordion__content{height:auto;padding:0 1em 1em;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out} 745`],encapsulation:2,data:{animation:[jo("rotatedState",[co("default",Pt({transform:"rotate(0)"})),co("rotated",Pt({transform:"rotate(-180deg)"})),fi("rotated => default",mi("200ms ease-out")),fi("default => rotated",mi("200ms ease-in"))])]}});let e=t;return e})(),F0=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge]});let e=t;return e})(),KS=(()=>{let t=class t{constructor(n,o){this.http=n,this.config=o}createHeaders(){return{headers:new bt({"Content-Type":"application/json"})}}get(){let o=`${this.config.environment.API_URL}/content/taxonomy?vid=product_selector&from=0&size=100`;return this.http.get(o,this.createHeaders()).pipe(J(r=>(r&&r.hits&&r.hits.length&&r.hits.sort((a,s)=>a.weight-s.weight),r)))}getProducts(n){let o=n.hits,r={},a={};for(let l of o)if(typeof l.fullParent=="object"&&l.fullParent[0].tid&&(typeof a[l.fullParent[0].tid]>"u"&&(a[l.fullParent[0].tid]=[]),a[l.fullParent[0].tid].push({name:l.name,target:l.productSelectTargetUrl})),l.fullProduct&&l.fullProduct[0]&&l.fullProduct[0].productType&&l.fullProduct[0].productType!=="Membership"){let c={memberFeeUk:0,memberAdmissionFee:0,aatFeesUk:0,total:0},h="";if(l.fullProduct[0].productDetails&&l.fullProduct[0].productDetails[0]){let f=l.fullProduct[0].productDetails[0];c.memberFeeUk=f.memberFeeUk!==""?parseInt(f.memberFeeUk,10):0,c.memberAdmissionFee=f.memberAdmissionFee!==""?parseInt(f.memberAdmissionFee,10):0,c.aatFeesUk=f.aatFeesUk!==""?parseInt(f.aatFeesUk,10):0,c.total=c.memberFeeUk+c.memberAdmissionFee+c.aatFeesUk,h=f.scottishQualLevel||""}let m={name:l.name,targetUrl:l.productSelectTargetUrl,price:c.aatFeesUk?c.aatFeesUk:c.memberFeeUk,durationCopy:"",points:[],productId:l.productUuid?l.productUuid.toLowerCase():"",alreadyRegistered:!1,hidePrices:!1,programmeComponentId:l.programmeComponentId?l.programmeComponentId.toLowerCase():"",topLevelComponentId:l.topLevelComponentId?l.topLevelComponentId.toLowerCase():"",scottishQualificationLevel:h};l.fullProduct[0].productSelectorDetails&&l.fullProduct[0].productSelectorDetails[0]&&l.fullProduct[0].productSelectorDetails[0].basketText&&(m.durationCopy=l.fullProduct[0].productSelectorDetails[0].productPageAccess,m.basketText=l.fullProduct[0].productSelectorDetails[0].basketText),r[l.tid]=m}let s=Object.keys(a);for(let l of s)r[l]&&(r[l].points=a[l]);return r}};t.\u0275fac=function(o){return new(o||t)(Y(lt),Y("fabricServicesConfig"))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Bp=(()=>{let t=class t{getHash(n){return Pa(n)}parsePrices(n){return n.map(o=>ye(B({},o),{price:parseFloat(`${o.price}`.replace("\xA3",""))}))}removeBasketFromLocalStorage(n){localStorage.removeItem("basket"+this.getHash(n))}constructor(n,o){this.productListService=n,this._platformId=o,this.basketCount=new Ze(null),this.basketCountChanged$=this.basketCount.asObservable(),this.totalPrice=new Ze(null),this.totalPriceChanged$=this.totalPrice.asObservable(),this.basket=[],this.loadBasket()}addToBasket(n){for(let o=0;o<this.basket.length;o++)if(this.basket[o].programmeComponentId===n.programmeComponentId)return;this.basket.push(n),this.saveBasket(),this.basketCount.next(this.basket.length)}removeFromBasket(n){for(let o=0;o<this.basket.length;o++)if(this.basket[o].programmeComponentId===n.programmeComponentId){this.basket.splice(o,1);break}this.saveBasket(),this.basketCount.next(this.basket.length)}loadBasket(){if(Ct(this._platformId)){let n=JSON.parse(sessionStorage.getItem("basket")||"null");n&&(this.basket=this.parsePrices(n),this.basketCount.next(this.basket.length))}}saveBasket(){sessionStorage.setItem("basket",JSON.stringify(this.basket))}saveToLocalStorage(n){localStorage.setItem("basket"+this.getHash(n),JSON.stringify(this.basket))}loadFromLocalStorage(n,o,r){let a=JSON.parse(localStorage.getItem("basket"+this.getHash(n))||"null");return a&&(this.basket=this.parsePrices(a)),o&&this.saveBasket(),r&&this.removeBasketFromLocalStorage(n),this.basket}getBasket(){return this.basket}getBasketCount(){return this.basket.length}getBasketTotalPrice(){let n=0;return this.basket.forEach(o=>{n+=parseFloat(o.price)}),n}deleteBasket(){this.basket=[],sessionStorage.removeItem("basket"),this.saveBasket(),this.basketCount.next(this.basket.length)}setTotalPrice(n){this.totalPrice.next(n)}restoreBasketFromApi(n,o){if(!n){o&&o();return}this.productListService.get().subscribe(r=>{let a=this.productListService.getProducts(r);
745n.forEach(s=>{let l,c=Object.keys(a);for(let h=0;h<c.length;h++)if(a[c[h]].topLevelComponentId===s){l=a[c[h]],this.addToBasket(l);break}}),o&&o()},r=>{o&&o()})}};t.\u0275fac=function(o){return new(o||t)(Y(KS),Y(gt))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Ep={get:"/api/bookmark/get",post:"/api/bookmark/create",delete:"/api/bookmark/delete"},xS="bookmark",SS=!1,Uoe=(()=>{let t=class t{constructor(n){this.http=n,this.destroy$=new Xi}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.unsubscribe()}isContentBookmarked(n){return new Promise((o,r)=>{this.getAll().then(a=>{for(let s in a){let l=a[s];if(l.link&&n===l.link)return o(l.id)}o("")})})}getAll(){return new Promise((n,o)=>{SS?this.getFromCache()?n(this.getFromCache()):this.updateCacheFromApi().then(r=>{n(r)}):this.getFromApi().then(r=>{n(r)})})}create(n,o){return new Promise((r,a)=>{let s=new FormData;s.append("link",n),s.append("term_id",""),s.append("title",o),this.http.post(Ep.post,s).pipe(ro(this.destroy$)).subscribe(l=>{SS&&this.updateCacheFromApi(),r(l)})})}delete(n){return new Promise((o,r)=>{this.http.delete(Ep.delete+"/"+n).pipe(ro(this.destroy$)).subscribe(a=>{this.updateCache(a),o(a)})})}getFromCache(){return JSON.parse(localStorage.getItem(xS))}updateCacheFromApi(){return new Promise((n,o)=>{this.http.get(Ep.get).pipe(ro(this.destroy$)).subscribe(r=>{this.updateCache(r),n(r)},r=>{console.log(r),n({})})})}getFromApi(){return new Promise((n,o)=>{this.http.get(Ep.get).pipe(ro(this.destroy$)).subscribe(r=>{n(r)},r=>{console.error("Failed to get bookmarks",r),n({})})})}updateCache(n){localStorage.setItem(xS,JSON.stringify(n))}};t.\u0275fac=function(o){return new(o||t)(Y(lt))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),y0=class{constructor(t){this.accountNumber=t.accountNumber,this.name=t.name,this.organisationId=t.organisationId,this.financialStop=t.financialStop,this.currentL3SanctionsOrAbove=t.currentL3SanctionsOrAbove,this.isTP=!!(t.qualifications||t.courses),this.approvals=t.approvals||null,this.isEav=t.isEav||!1,this.postalAddress=t.postalAddress||null,this.tpContact=t.tpContact||null,this.role=t.role,this.trainingprovidercode=t.trainingprovidercode||null}},w0=class{constructor(t){this.label=t.name,this.id=t.organisationId,this.data=t}},QS=(()=>{let t=class t{constructor(n,o,r,a){this.http=n,this.jwt=o,this.config=r,this.ssrCookieService=a,this.centreSource=new no,this.centre$=this.centreSource.asObservable(),this.selectedItem=new Ze({id:null,label:"",data:null}),this.currentSelectedItem$=this.selectedItem.asObservable(),this.options={headers:{"Content-Type":"application/json",Authorization:this.ssrCookieService.get("access_token")}}}getContact(){return this.jwt.decodeToken(this.ssrCookieService.get("id_token"))}getCentreList(){let n=this.getContact();return n["cognito:groups"].includes("admin")||n["cognito:groups"].includes("staff")?this.http.get(this.config.environment.API_URL+"/training-provider",this.options):this.http.get(this.config.environment.API_URL+"/contact-relationship/"+n["custom:contact_id"],this.options).pipe(_r(o=>{if(typeof o=="object"&&o.hasOwnProperty("connections")){let r=o.connections.filter(a=>a.connectionType==="organisation").reduce((a,s)=>a.indexOf(s.connectionReferenceId)>-1?a:a.concat(s.connectionReferenceId),[]);return this.options.params={organisationIds:r.join(","),size:r.length,nonPublished:!0,isFinancialStop:!0,isCurrentL3SanctionsOrAbove:!0},this.http.get(this.config.environment.API_URL+"/training-provider",this.options).pipe(J(a=>{let s=[],l={};o.connections.forEach(c=>{!l[c.connectionReferenceId]&&c.role?l[c.connectionReferenceId]=c.role:c.role&&(l[c.connectionReferenceId]+=", "+c.role)}),o.connections.forEach(c=>{c.role=l[c.connectionReferenceId]});for(let c=0;c<a.data.length;c++)o.connections.find(h=>{if(h.connectionReferenceId===a.data[c].organisationId)return s.push(Object.assign(h,a.data[c]))});return s.map(c=>new y0(c))}))}return Q(null)}),he(this.handleError))}centreChange(n){this.centreSource.next(n)}isAutocomplete(){let n=["staff","admin"],o=this.getContact();for(let r of n)if(o["cognito:groups"].indexOf(r)!==-1)return!0;return!1}getIsStaff(){return this.getContact()["cognito:groups"].indexOf("staff")!==-1}search(n){return this.options.params={searchText:n,output:"summary"},this.http.get(this.config.environment.API_URL+"/training-provider",this.options).pipe(J(o=>o.data.map(r=>new w0(r))),he(this.handleError))}getCentre(n){return this.http.get(this.config.environment.API_URL+"/training-provider/"+n,this.options).pipe(J(o=>o),he(this.handleError))}onSubmit(n){this.selectedItem.next(n)}handleError(n){let o;return o=n.message?n.message:n.toString(),jt(o)}};t.\u0275fac=function(o){return new(o||t)(Y(lt),Y(Tr),Y("fabricServicesConfig"),Y(Ir))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),ya=(()=>{let t=class t{constructor(n){this.config=n,this.isBrowser=Ct(xe(gt)),this.http=xe(lt),this._DomSanitizer=xe(yn),this._gtmService=xe(Xn),this._cacheService=xe(vr),this._headers={headers:new bt({"Content-Type":"application/json"})},this.disciplinaryOutcomeSocialMediaImageUri=this.config.environment.DISCIPLINARY_OUTCOME_SOCIAL_MEDIA_IMAGE_URI}cmsGet(n){let r=`${this.config.environment.API_URL}/content/node?pathAlias=${n}&status=1&loadRef=1`;return this.http.get(r,this._headers)}cmsGetMultipleContent(n){let o=this.config.environment.API_URL,r=[];for(let a=0;a<n.length;a++){let s=`${o}/content/node?pathAlias=${n[a]}&status=1&loadRef=1`,l=this.http.get(s,this._headers).pipe(he(c=>Q(c)));r.push(l)}return oo(r)}cmsGetMultiple(n,o,r,a,s){let c=`${this.config.environment.API_URL}
745/content/node?contentType=${n}&size=${o}&sortOrder=${r}&sortField=${a}${s?`&taxonomyTerm=${s}`:""}`;return this.http.get(c,this._headers)}handleImageLocation(n,o){let a=["original","large","medium","small","thumbnail"].includes(o)?o:"medium";n&&n.length&&n.substring(0,9)==="public://"&&(n=n.substring(9));let s=n&&n.length?n.split("/"):[],l=this.config.environment.STAGE==="local"?this.config.environment.BASE_URL:"";return o==="original"?l+=`/cms-assets-public/${s[s.length-2]}/${s[s.length-1]}`:l+=`/cms-resized-assets-public/${a}/cms-assets-public/${s[s.length-2]}/${s[s.length-1]}`,encodeURI(l).replaceAll("'","%27").replaceAll("(","%28").replaceAll(")","%29")}cmsGetView(n,o,r,a,s="created",l="desc"){return pt(this,null,function*(){return yield this.cmsGetViewSync(n,o,r,a,s,l).toPromise()})}cmsGetViewSync(n,o,r,a,s="created",l="desc"){n==="news_content_type"&&(s="date");let c=this.config.environment.API_URL,h=a?`/content/related-by-taxonomy?query=${a}&taxonomyTerm=${a}&`:"/content/node?",m=`contentType=${n}&from=${o}&size=${r}&loadRef=1&sortField=${s}&sortOrder=${l}`,f=`${c}${h}${m}`;return this.http.get(f,this._headers)}cmsGetContentFeed(n){let r=`${this.config.environment.API_URL}/content/node/content-feed`;return this.http.post(r,n,this._headers)}cmsGetMenu(n){let o=this.config.environment.API_URL;return this._cacheService.cacheObservable(`cms-menu-${n}`,this.http.get(`${o}/content/menu/${n}`,this._headers))}buildJourneyCardPush(n){let a=n,{type:o}=a,r=Js(a,["type"]);return{type:o,configuration:r}}buildContentFeed(n){let a=n,{type:o}=a,r=Js(a,["type"]);return r.pageLinks=r.pageLinks.map(s=>({label:s.text,link:s.realUrl||s.url})),{type:o,configuration:r}}buildContentFilter(n){return{type:"content_filter",intro:n.intro,options:n.options}}buildBasicPush(n){let o={};if(typeof n.basicPushContent<"u"&&n.basicPushContent.length===2){let r=n.basicPushContent[0];typeof r.image=="string"&&(r.image=this.handleImageLocation(r.image,"small"));let a=n.basicPushContent[1];typeof a.image=="string"&&(a.image=this.handleImageLocation(a.image,"small")),o={type:"basic-push",configuration:[r,a]}}return o}buildCtaPush(n){let o=n.data;return o.firstLink.callback=()=>{this.pushGA("cta",o.firstLink.link,o.firstLink.text)},{type:"cta-push",configuration:o}}buildStandardHero(n){let o=n[0].content,r={background:this.handleImageLocation(n[0].content.background,"original"),title:o.title,content:o.content,colourWay:o.colourWay,expanded:!1,align:n[0].content.align,gdprIdentifier:n[0].content.gdprIdentifier};return o.button&&(r.button=ye(B({disabled:!1,type:"regular",size:"medium",fullWidth:!1},o.button),{link:o.button.realUrl||o.button.link})),r}buildStandardPush(n){let o=n.standardPushContent;return o.image=this.handleImageLocation(o.image,"small"),{type:"standard-push",configuration:o}}buildVideoBlock(n){if(!n.content)return null;let o=n.content,r={titleBlock:o.titleBlock,videoId:o.videoId,primaryText:o.primaryContent,secondaryText:o.secondaryContent,primaryButton:void 0,secondaryButton:void 0};if(o.primaryContentButtonText!==""){let s={text:o.primaryContentButtonText,disabled:!1,type:"regular",size:"medium",glyph:"",theme:"light",fullWidth:!1,link:o.primaryContentLink,openInNewTab:o.openInNewTab};r.primaryButton=s,r.primaryButton.callback=()=>{this.pushGA("cta",a.primaryButton.link,a.primaryButton.text)}}let a=r;return{type:"video-block",configuration:a}}buildTable(n){return{type:"fab-table-block",configuration:{tableConfig:{width:null,alignCenter:null},columnDefs:n.content.columnDefs,defaultColDef:{},rowData:n.content.rowData}}}tabsBlock(n){if(typeof n.tabsContent<"u"&&typeof(n.tabsContent.tabData!=="undefined"))for(let r in n.tabsContent.tabData){let a=this.handleImageLocation(n.tabsContent.tabData[r].background,"medium");n.tabsContent.tabData[r].background=a}return{type:"fab-tabs-block",configuration:n.tabsContent}}text(n){return n.fabTextContent=n.fabTextContent||"",{type:"fab-text",configuration:this._DomSanitizer.bypassSecurityTrustHtml(n.fabTextContent.replace(/data-list-style="([-a-z]+)"/g,'class="list-style-$1"'))}}cookiePolicy(){return{type:"one-trust-policy",configuration:this._DomSanitizer.bypassSecurityTrustHtml(`<section class="auto-cookies"> 746 <!-- OneTrust Cookies List start --> 747 <div id="ot-sdk-cookie-policy"></div> 748 <!-- OneTrust Cookies List end --> 749 <!-- OneTrust Cookies Settings button start --> 750 <button id="ot-sdk-btn" class="ot-sdk-show-settings">Cookie Settings</button> 751 <!-- OneTrust Cookies Settings button end --> 752 </section>`)}}buildPrimaryPush(n){let o=n.primaryPushContent;return o.image=this.handleImageLocation(o.image,"medium"),o.button.link=o.button.realUrl||o.button.link,o.button.callback=()=>{this.pushGA("cta",o.button.link,o.button.text)},{type:"fab-primary-push",configuration:o}}
752button(n){return typeof n.link=="string"&&n.link.substring(0,9)==="internal:"&&(n.link=n.link.substring(9)),{type:"button",configuration:{text:n.title,action:{type:"link",link:n.link,useRouterLink:!1,openInNewTab:!!n.openInNewTab},gtmData:{event:"customClick",clickType:"cta",clickPath:n.link,clickText:n.title.replace(/(<([^>]+)>)/gi,"").toLowerCase().trim()},type:"primary",aria:n.title}}}bullets(n){let o=[];n.items.forEach(s=>{s.content=s.content.replace(/(<p[^>]+?>|<p>|<\/p>)/gim,""),o.push({content:s})});let r=null;return(n.items.length===3||n.items.length===6)&&(r=3),{type:"bullets",configuration:{border:!1,alignment:n.alignment,title:n.title,items:n.items,columns:r||null}}}image(n){if(!n.imageContent)return;let o=this.handleImageLocation(n.imageContent.uri,"large");return{type:"image",configuration:{src:this._DomSanitizer.bypassSecurityTrustUrl(o),alt:typeof n.imageContent.alt<"u"?n.imageContent.alt:"",copyright:"",targetUrl:typeof n.imageContent.targetUrl<"u"?n.imageContent.targetUrl:"",openInNewTab:typeof n.imageContent.openInNewTab<"u"?n.imageContent.openInNewTab:!1,toolTip:typeof n.imageContent.toolTip<"u"?n.imageContent.toolTip:"",overrideWidth:typeof n.imageContent.overrideWidth<"u"?n.imageContent.overrideWidth:""}}}buildQuoteBlock(n){let o=n.quoteContent;return o.background=this.handleImageLocation(n.quoteContent.background,"original"),{type:"fab-quote-block",configuration:o}}buildComparisonStats(n){return{type:"fab-comparison-stats",configuration:n.content}}buildHeroWithJourney(n){let o={title:n.title,subtitle:n.subtitle,link:n.link,body:n.body},r={type:"fab-journey-card",configuration:o};return o}video(n){let o={videoId:""};return typeof n.videoId<"u"&&(o.videoId=n.videoId),{type:"fab-video",configuration:o}}soundcloud(n){return{type:"fab-soundcloud",configuration:{link:n.link}}}buildHubspotForm(n){return n?{type:"hubspot-form",configuration:JSON.parse(n)}:{}}pushGA(n,o,r){this._gtmService.push({event:"customClick",clickType:n,clickPath:o||"",clickText:r.replace(/(<([^>]+)>)/gi,"").toLowerCase().trim()})}buildView(n){return{type:"view",configuration:n.viewData,preloaded:n.preloaded}}generateProductPage(n,o){let r=Array.from(n.productPageBody),a=n.productDetails[0];a&&(a=a.level);let s=n.durationFePlainText?null:o([r.shift()]),{productDetails:l}=n;return[{type:"fab-qualification-hero",data:{title:n.title,subtitle:l.length?l[0].scottishQualLevel:null,summary:n.summary,level:a,displayType:n.productType,groupName:l.length?l[0].qualGroupName:null}},{type:"fab-product-hero",data:n,child:s}].concat(r)}generatePolicyPage(n){let o=this.isBrowser?this.generateTableOfContents(n.policyBody||[],n.showH3TitlesInToc||!1):[];return n?.onThisPageSection&&Number(n.onThisPageSection)===1||(n.tableOfContents=o,n.policyBody.unshift({type:"fab-table-of-contents",tableOfContents:o})),n.policyBody}generateTableOfContents(n,o){let r=[];for(let a=0;a<n.length;a++){let s=n[a];if(s.type==="fab-text"){let c=new DOMParser().parseFromString('<div id="working-toc-wrapper">'+s.fabTextContent+"</div>","text/html"),h=o?"h2, h3":"h2",m=c.querySelectorAll(h);for(let f=0;f<m.length;f++){let b="heading_toc_link_"+(r.length+101);m[f].className=b,r.push({label:m[f].dataset.altHeading||m[f].innerText,link:b,type:m[f].tagName})}s.fabTextContent=c.querySelector("#working-toc-wrapper").innerHTML}}return r}generateDisciplinaryOutcomePage(n){let o={disciplinaryOutcomeType:n.disciplinaryOutcomeType?n.disciplinaryOutcomeType[0].name:void 0,title:n.personTitle?n.personTitle[0].name:void 0,firstName:n.memberFirstName,lastName:n.memberLastName,designatoryLetters:n.memberDesignatoryLetters?n.memberDesignatoryLetters[0].name:void 0,membershipNumber:n.membershipNumber,disciplinaryDate:n.disciplinaryDate,disciplinaryMisconduct:n.disciplinaryMisconduct,disciplinaryFinding:n.disciplinaryFinding,disciplinaryOrder:n.disciplinaryOrder,disciplinaryConsent:n.disciplinaryConsent};return n.seoTitle=`Disciplinary outcome: ${o.firstName} ${o.lastName}`,n.summary="This is an order of AAT outlining one or more breaches of the Code of Professional Ethics and the sanction imposed.",n.socialMediaImage={uri:this.disciplinaryOutcomeSocialMediaImageUri,type:"image",alt:"A pile of paper-filled folders on a desk"},[{type:"disciplinary-outcome",configuration:o}]}generateConsultationResponsePage(n){return[{type:"consultation-response",configuration:B({},n)}]}_buildComparisonCalculator(n){return{type:"comparison-calculator",data:n}}setupSocialShareButtons(n){let o={twitter:!1,facebook:!1,linkedin:!1}
752,r={title:"",url:""};return(n.contentType==="news_content_type"||n.contentType==="consultation_response")&&(o.twitter=!0,o.facebook=!0,o.linkedin=!0,r.title=n.contentType==="news_content_type"?"Love this story from @YourAAT!":n.title,r.url=this.config.environment.BASE_URL),{smo:o,smb:r}}constructSpotlights(n){let o=[];if(typeof n<"u")for(let r of n)o.push(r);return o}constructContactBlock(n){if(typeof n[0]!==void 0){let o=n[0],r=o.footerContact.replace(/(<p[^>]+?>|<p>|<\/p>)/,"");r=r.replace(/\r?\n|\r/,"");let a=o.footerText2.replace(/(<p[^>]+?>|<p>|<\/p>)/,"");return a=a.replace(/\r?\n|\r/,""),{title1:`<h2><strong>${o.title}</strong><br>${o.footerText1}</h2>`,title2:`<h4>${o.footerTitle2}</h4>`,contact:`<h4>${r}</h4>`,text2:`<p class="minor">${a}</p>`}}}getNotifications(n,o){let r=`${this.config.environment.API_URL}/content/notifications/${n}`;return this._cacheService.cacheObservable(`${n}-notifications`,this.http.get(r,this._headers).pipe(ot(1),J(a=>a.map(s=>B(B({fullWidth:!0,leftAlign:!0,isOpened:!0},o),s))),he(a=>(a?.status!==404&&console.error(a),Q(null)))))}};t.\u0275fac=function(o){return new(o||t)(Y("fabricServicesConfig"))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),joe=new RegExp(/<[^>]*>?/gm),Ip=class extends String{constructor(t){super(t.replace(joe,""))}};function kS(e=""){return new Ip(e)}var No=(()=>{let t=class t{constructor(n){this.config=n,this.cognitoUserInformation=so(null),this.contactId=It(()=>this.cognitoUserInformation()?.["custom:contact_id"]),this.contactId$=tC(this.contactId),this.contactGroups=It(()=>this.cognitoUserInformation()?.["cognito:groups"]),this.contactMembershipTypes=It(()=>this.cognitoUserInformation()?.["custom:membership_type"]),this.contactConnections=It(()=>JSON.parse(this.cognitoUserInformation()?.["custom:connection_type"])),this.contactGivenName=It(()=>this.cognitoUserInformation()?.given_name),this.contactLastName=It(()=>this.cognitoUserInformation()?.family_name),this.contactEmail=It(()=>this.cognitoUserInformation()?.email),this.contactPreferredMFASetting=It(()=>this.cognitoUserInformation()?.PreferredMfaSetting),this.selectedItem=new Ze({id:null,label:"",data:null}),this.currentSelectedItem=this.selectedItem.asObservable(),this.http=xe(lt),this._authService=xe(st),this._cacheService=xe(vr),this.checkAndUpdateHubspot=o=>{let r={headers:new bt({"Content-Type":"application/json"})};return this.http.post(`${this.config.environment.API_URL}/hubspot/known-to-hubspot`,JSON.stringify(o),r).pipe(J(a=>a),he(a=>jt(a)))},this.createHeaders=()=>({headers:new bt({"Content-Type":"application/json"})}),this.primeNgContactSearch={},this._authService.authenticationChanged$.pipe(ht(o=>o?this._authService.getCurrentUser():Q(o))).subscribe({next:o=>{this.cognitoUserInformation.set(o)},error:()=>{this.cognitoUserInformation.set(null)}})}search(n){return n===""||n.length<3?Q([[]]):this.http.get(this.config.environment.API_URL+"/contact/search/"+n,this.createHeaders()).pipe(J(o=>{let r=[];if(o instanceof Array)for(let a of o){let s={id:a.contactId,label:a.name.givenName+" "+a.name.familyName,data:a};r.push(s)}else{let a={id:o.contactId,label:o.name.givenName+" "+o.name.familyName,data:o};r.push(a)}return r}))}onSubmit(n){this.selectedItem.next(n)}getContactByMemberId(n){return this.http.get(this.config.environment.API_URL+"/contact/member/"+n,this.createHeaders()).pipe(J(o=>o))}getContact(n){return n===this.contactId()||!this.contactId()?this._cacheService.cacheObservable("contact",this.http.get(this.config.environment.API_URL+"/contact/"+n)):this.http.get(this.config.environment.API_URL+"/contact/"+n)}update(n){let o=Object.assign({},n);return o.address=Object.assign({},this.formatAddress(o.address)),this._cacheService.clear(),this.http.patch(this.config.environment.API_URL+"/contact/"+n.contactId,JSON.stringify(o),this.createHeaders()).pipe(J(r=>r),he(r=>(console.log(r),Q(r))))}patchContact(n,o,r=null){return this._cacheService.clear(),this.http.patch(this.config.environment.API_URL+"/contact/"+n,JSON.stringify(o),this.createHeaders())}createAccount(n,o=null,r=null){let a=Object.assign({},n.contact),s=this.config.environment.CLIENT_ID_KEY;a.address=Object.assign({},this.formatAddress(a.address));let l={contact:a,credentials:n.credentials,clientId:s},c={headers:new bt({"Content-Type":"application/json"})};return o&&(c={headers:new bt({"Content-Type":"application/json",Authorization:o})}),this.http.post(this.config.environment.API_URL+"/contact/create-account",JSON.stringify(l),this.createHeaders()).pipe(J(h=>h),he(h=>jt(h)))}toTitleCase(n){return n.toLowerCase().split(" ").map(o=>o.charAt(0).toUpperCase()+o.slice(1)).join(" ")}checkAvailability(n,o=null){let r={email:n},a={headers:new bt({"Content-Type":"application/json"})};return this.http.post(this.config.environment.API_URL+"/contact/check-availability",JSON.stringify(r),a).pipe(J(s=>s),he(s=>jt(s)))}formatAddress(n,o=!1){let r={addressRegion:"",streetAddressLine1:"",streetAddressLine2:"",streetAddressLine3:"",addressLocality:"",postalCode:"",addressCountry:""};for(let a in n)n[a]!==null&&n[a]!=""&&(a==="address1"?r.streetAddressLine1=n[a]&&this.toTitleCase(n[a]):a==="address2"?r.streetAddressLine2=n[a]&&this.toTitleCase(n[a]):a==="town"?r.addressLocality=n[a]&&this.toTitleCase(n[a]):a==="county"?r.addressRegion=n[a]&&this.toTitleCase(n[a]):a==="state"?r.addressRegion=typeof n[a]=="string"?n[a]:n[a][o?"id":"label"]:a==="country"||a==="countryItem"||a==="addressCountry"?r.addressCountry=typeof n[a]=="string"?n[a]:n[a].id||n[a]:a==="postcode"||a==="postalCode"?r.postalCode=n[a]&&n[a].toUpperCase():r[a]=n[a]&&this.toTitleCase(n[a]));return r}getContactRelationship(n){return n===this.contactId()||!this.contactId()?this._cacheService.cacheObservable("contactRelationship",this.http.get(this.config.environment.API_URL+"/contact-relationship/"+n)).pipe(J(o=>o),he(o=>o.status===404?Q({}):o)):this.http.get(this.config.environment.API_URL+"/contact-relationship/"+n).pipe(J(o=>o),he(o=>o.status===404?Q({}):o))}};t.\u0275fac=function(o){return new(o||t)(Y("fabricServicesConfig"))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Xye=(()=>{let t=class t{constructor(){this.authService=xe(st),this._contactService=xe(No)}resolve(n,o){return this.authService.getCurrentUser().pipe(ht(r=>{let a=r["custom:contact_id"];return this._contactService.getContactRelationship(a).pipe(he(()=>Q({})))}))}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),O0=(()=>{let t=class t{constructor(n,o){this.cmsContentService=n,this.s3GetterService=o,this.footerContent={logo:this.s3GetterService.getUrl({objName:Sc.aatLogoFullMono}),address:"The Association of Accounting Technicians.<br>30 Churchill Place, London E14 5RE</br>Registered charity no.1050724.<br>A company limited by guarantee (No. 1518983).",copyright:"",social:[],communityCategories:[],linkCategories:[],push:{title:"",desc:"",button:{useRouterLink:!1,text:"",link:"",disabled:!1,type:"regular",size:"small",glyph:"",fullWidth:!0,theme:"light"}},bottomLinks:[]}}getFooterContent(){return this.retrieved||this.generateFooterContent(),this.footerContent}generateFooterContent(){this.cmsContentService.cmsGetMenu("footer-v2").subscribe(n=>{this.retrieved=!0;let o=n.hits[0];if(o.links.filter(a=>a.description==="social")){let a=o.links.filter(s=>s.description==="social")[0];a&&a.links&&a.links.forEach(s=>{this.footerContent.social.push({icon:s.title,link:s.path,openInNewTab:!!s.openInNewTab})})}if(o.links.filter(a=>a.description==="about-aat")){let a=o.links.filter(s=>s.description==="about-aat")[0];if(a){let s={title:a.title,links:this.generateSimpleLinks(a.links)};this.footerContent.linkCategories.push(s)}}if(o.links.filter(a=>a.title==="Communities")){let a=o.links.filter(s=>s.title==="Communities")[0];if(a){let s={title:a.title,links:this.generateSimpleLinks(a.links)};this.footerContent.communityCategories.push(s)}}if(o.links.filter(a=>a.description==="hygiene")){let a=o.links.filter(s=>s.description==="hygiene")[0];this.footerContent.bottomLinks=this.generateSimpleLinks(a.links)}if(o.links.filter(a=>a.title==="Find an accountant")){let a=o.links.filter(s=>s.title==="Find an accountant")[0];a&&(this.footerContent.push.title=a.title,this.footerContent.push.desc=a.description,this.footerContent.push.button.link=a.links[0].path,this.footerContent.push.button.text=a.links[0].title)}let r=new Date().getFullYear();this.footerContent.copyright=`Copyright \xA9 ${r}. All rights reserved.`})}generateSimpleLinks(n){let o=[];return n.sort((r,a)=>
752r.weight-a.weight),n&&n.forEach(r=>{o.push({linkText:r.title,link:r.path,icon:r.description?r.description:void 0,openInNewTab:!!r.openInNewTab})}),o}};t.\u0275fac=function(o){return new(o||t)(Y(ya),Y(kc))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var we={message:{mandatory:{text:"Enter information",option:"Select an option",select:"Select an option",atleastone:"Select at least one option"},global:{required_select:"Select an option",invalid_alpha:"Enter letters only",required_alpha:"Enter text",required_custom_alpha:"Enter your %label",invalid_custom_alpha:"Enter letters only",invalid_alphanumeric:"Invalid character used",required_alphanumeric:"Enter text",invalid_alphatext:"Invalid character used",required_custom_alphaText:"Enter your %label",invalid_email:"Please enter a valid email address",required_email:"Enter your email address",invalid_number:"Enter a valid number",required_number:"Enter a number",invalid_small_number:"Enter a valid number",required_small_number:"Enter a number",invalid_postcode:"Enter a valid UK postcode",required_postcode:"Enter a full postcode",invalid_telephone:"Enter a valid phone number",required_telephone:"Enter your phone number",invalid_website:"Enter a valid URL",required_website:"Enter URL",invalid_url_stub:"Enter a valid URL",required_url_stub:"Enter URL",invalid_scn:"Enter at least 9 characters",required_scn:"Enter a SCN",invalid_uln:"Enter at least 10 chracters",required_uln:"Enter a valid number",invalid_text:"Enter text only",required_text:"Enter text",invalid_date:"Enter a valid date (dd/mm/yyyy)",required_date:"Enter a date",required_training_provider_name:"Enter training provider name",invalid_training_provider_name:"Enter text",required_company_name:"Enter company name",invalid_company_name:"Enter letters only",required_contact_name:"Enter contact name",invalid_contact_name:"Enter letters only",required_first_name:"Enter your first name",invalid_first_name:"Enter letters only",required_full_name:"Enter full name",invalid_full_name:"Enter letters only",required_job_title:"Enter job title",invalid_job_title:"Enter text",required_last_name:"Enter your last name",invalid_last_name:"Enter letters only",invalid_birthdate_format:"Enter your date of birth in this format DD/MM/YYYY",invalid_birthdate:"Enter a valid date of birth",required_birthdate:"Enter your date of birth",invalid_future_date:"Enter a date in the future",invalid_county:"Enter valid county",required_county:"Enter a county",invalid_maxlength:"[requiredLength] characters max",invalid_minlength:"This should be atleast 3 characters long.",invalid_daterange:"Enter a date within the range",required_daterange:"Enter a daterange",invalid_futureDate:"Enter a date in the future",required_futureDate:"",invalid_payment_code:"This payment code is invalid, check the code and try again.",required_payment_code:"Enter a payment code",invalid_earliest_time:"Select earliest time",invalid_latest_early:"Sorry, You can't put the latest time before the earliest time",invalid_latest_time:"Select latest time",invalid_weekday:"Select day",invalid_year:"Please select a year",required_AATPassword:"Enter password",required_password:"Enter password",required_create_password:"Create a password",invalid_video:"Enter a valid URL",required_video:"Enter URL",invalid_sortcode:"Enter a valid sort code",required_sortcode:"Enter your sort code",invalid_account_number:"Enter a valid account number",required_account_number:"Enter your account number",invalid_paymentcode:"This payment code could not be found. Please ensure you've entered it in the correct format.",required_paymentcode:"Enter your payment code"},payment:{payment_code_unavailable:"Payment code is invalid, expired or has already been used. Contact your training provider or pay via credit/debit card.",payment_code_does_not_exist:"This payment code @payment_code does not exist for your training provider."},email:{email_mismatch:"Email address does not match",email_not_valid:"Enter a valid email address",email_crm_mismatch:"The details you have entered do n
752ot match our records. Please contact us to set up your account on +44 (0)20 3735 2468 ",email_exists:"This email address is already registered on our system. !link, or supply a new email address. The email address you supply should not be a shared inbox.",email_pending:"This email address registration is pending and will be processed shortly",email_exists_db:"This email address already exists in our database",email_pri_sec_match:"The primary and secondary email addresses should not be the same"},password:{password_not_valid:"Your password doesn't meet the password requirements",password_mismatch:"Passwords do not match"},membership:{blank_membership_id:"Enter AAT membership number",invalid_membership_id:"Enter a valid number"},terms:{terms_and_conditions:"You must read the terms and conditions and tick the confirmation box before you can continue",tick_to_confirm:"Tick to confirm"}},pattern:{Alpha:/^[a-zA-ZA-Zà áâäãåÄ
ÄÄÄèéêëÄįìÃîïÅÅòóôöõøùúûüųūÿýżźñçÄšžÃÃÃÃÃÃ
ÄÄÄÄÄÃÃÃÃÃÃÃÃÄ®ÅÅÃÃÃÃÃÃÃÃÃÃŲŪŸÃŻŹÃÃÃÅÃÄŠŽâð '\s-&]+$/,AlphaNumeric:`^[a-zA-Z0-9\xA3$%&*!\\"'()_=+:;@#/,\\.\\?\u20AC\xA5\u20B9\xE7\xE6\u0153\xE1\xE9\xED\xF3\xFA\xE0\xE8\xEC\xF2\xF9\xE4\xEB\xEF\xF6\xFC\xFF\xE2\xEA\xEE\xF4\xFB\xE5ei\xF8u\xDF\xC7\xC6\u0152\xC1\xC9\xCD\xD3\xDA\xC0\xC8\xCC\xD2\xD9\xC4\xCB\xCF\xD6\xDC\u0178\xC2\xCA\xCE\xD4\xDB\xC5EI\xD8US -]+$`,AATPhoneNumber:"^\\+?\\(?([0-9]{1,3})\\)?[\\-. ]?(\\d{2,4})[\\-. ]?(\\d{2,4})[\\-. ]?(\\d{2,4})$",NonAlphaNumeric:"\\W|_",AATGBPostcode:"^[Gg][Ii][Rr] 0[Aa]{2}|^((([A-Za-z][0-9]{1,2})|(([A-Za-z][A-Ha-hJ-Yj-y][0-9]{1,2})|(([A-Za-z][0-9][A-Za-z])|([A-Za-z][A-Ha-hJ-Yj-y][0-9]?[A-Za-z])))) {0,1}[0-9][A-Za-z]{2})$",AlphaText:`^[a-zA-Z0-9\xA3$%&*!\\"'()\\[\\]_=+:;@#,\u2013\u2019\u2018\\.\\?\u20AC\xA5\u20B9\xE7\xE6\u0153\xE1\xE9\xED\xF3\xFA\xE0\xE8\xEC\xF2\xF9\xE4\xEB\xEF\xF6\xFC\xFF\xE2\xEA\xEE\xF4\xFB\xE5ei\xF8u\xDF\xC7\xC6\u0152\xC1\xC9\xCD\xD3\xDA\xC0\xC8\xCC\xD2\xD9\xC4\xCB\xCF\xD6\xDC\u0178\xC2\xCA\xCE\xD4\xDB\xC5EI\xD8US\\&\\r\\n\\/' -]+$`,AATPassword:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[\^$*.[\]{}()?\-"!@#%&/\\,><':;|_~`])[A-Za-z\d\^$*.[\]{}()?\-"!@#%&/\\,><':;|_~`]{8,}$/,hasNumber:"[0-9]",hasCapitalCase:"[A-Z]",hasSmallCase:"[a-z]",hasSpecialCharacters:/.*[@~!\-&*;?.#].*/,numberOnly:"^[0-9]+$",decimalNumber:"^[0-9.]+$",ULN:"^[1-9]{1}\\d{9}$",SCN:"^\\d{9}$",email:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,small_number:"\\b([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\b",website:"(http|https)\\:\\/\\/(?!www\\.)?[A-Za-z0-9-]+\\.([A-Za-z0-9-]{2,})+(\\.[A-Za-z0-9-]{2,10})?(?![A-Za-z0-9-]{2,10})\\b([-a-zA-Z0-9@:%_\\+.~#?&//=]*)",url_stub:"^[a-zA-Z0-9-_]+",training_provider_name:`[a-zA-Z\xA3$%&\\*!\\"'()_=+:;@#/,\\.\\?\u20AC\xA5\u20B9\xE7\xE6\u0153\xE1\xE9\xED\xF3\xFA\xE0\xE8\xEC\xF2\xF9\xE4\xEB\xEF\xF6\xFC\xFF\xE2\xEA\xEE\xF4\xFB\xE5ei\xF8u\xDF\xC7\xC6\u0152\xC1\xC9\xCD\xD3\xDA\xC0\xC8\xCC\xD2\xD9\xC4\xCB\xCF\xD6\xDC\u0178\xC2\xCA\xCE\xD4\xDB\xC5EI\xD8US -]+`,company_name:`[a-zA-Z\xA3$%&\\*!\\"'()_=+:;@#/,\\.\\?\u20AC\xA5\u20B9\xE7\xE6\u0153\xE1\xE9\xED\xF3\xFA\xE0\xE8\xEC\xF2\xF9\xE4\xEB\xEF\xF6\xFC\xFF\xE2\xEA\xEE\xF4\xFB\xE5ei\xF8u\xDF\xC7\xC6\u0152\xC1\xC9\xCD\xD3\xDA\xC0\xC8\xCC\xD2\xD9\xC4\xCB\xCF\xD6\xDC\u0178\xC2\xCA\xCE\xD4\xDB\xC5EI\xD8US -]+`,contact_name:`[a-zA-Z\xA3$%&\\*!\\"'()_=+:;@#/,\\.\\?\u20AC\xA5\u20B9\xE7\xE6\u0153\xE1\xE9\xED\xF3\xFA\xE0\xE8\xEC\xF2\xF9\xE4\xEB\xEF\xF6\xFC\xFF\xE2\xEA\xEE\xF4\xFB\xE5ei\xF8u\xDF\xC7\xC6\u0152\xC1\xC9\xCD\xD3\xDA\xC0\xC8\xCC\xD2\xD9\xC4\xCB\xCF\xD6\xDC\u0178\xC2\xCA\xCE\xD4\xDB\xC5EI\xD8US -]+`,first_name:`[a-zA-Z\xA3$%&\\*!\\"'()_=+:;@#/,\\.\\?\u20AC\xA5\u20B9\xE7\xE6\u0153\xE1\xE9\xED\xF3\xFA\xE0\xE8\xEC\xF2\xF9\xE4\xEB\xEF\xF6\xFC\xFF\xE2\xEA\xEE\xF4\xFB\xE5ei\xF8u\xDF\xC7\xC6\u0152\xC1\xC9\xCD\xD3\xDA\xC0\xC8\xCC\xD2\xD9\xC4\xCB\xCF\xD6\xDC\u0178\xC2\xCA\xCE\xD4\xDB\xC5EI\xD8US -]+`,full_name:`[a-zA-Z\xA3$%&\\*!\\"'()_=+:;@#/,\\.\\?\u20AC\xA5\u20B9\xE7\xE6\u0153\xE1\xE9\xED\xF3\xFA\xE0\xE8\xEC\xF2\xF9\xE4\xEB\xEF\xF6\xFC\xFF\xE2\xEA\xEE\xF4\xFB\xE5ei\xF8u\xDF\xC7\xC6\u0152\xC1\xC9\xCD\xD3\xDA\xC0\xC8\xCC\xD2\xD9\xC4\xCB\xCF\xD6\xDC\u0178\xC2\xCA\xCE\xD4\xDB\xC5EI\xD8US -]+`,job_title:`[a-zA-Z\xA3$%&\\*!\\"'()_=+:;@#/,\\.\\?\u20AC\xA5\u20B9\xE7\xE6\u0153\xE1\xE9\xED\xF3\xFA\xE0\xE8\xEC\xF2\xF9\xE4\xEB\xEF\xF6\xFC\xFF\xE2\xEA\xEE\xF4\xFB\xE5ei\xF8u\xDF\xC7\xC6\u0152\xC1\xC9\xCD\xD3\xDA\xC0\xC8\xCC\xD2\xD9\xC4\xCB\xCF\xD6\xDC\u0178\xC2\xCA\xCE\xD4\xDB\xC5EI\xD8US -]+`,last_name:`[a-zA-Z\xA3$%&\\*!\\"'()_=+:;@#/,\\.\\?\u20AC\xA5\u20B9\xE7\xE6\u0153\xE1\xE9\xED\xF3\xFA\xE0\xE8\xEC\xF2\xF9\xE4\xEB\xEF\xF6\xFC\xFF\xE2\xEA\xEE\xF4\xFB\xE5ei\xF8u\xDF\xC7\xC6\u0152\xC1\xC9\xCD\xD3\xDA\xC0\xC8\xCC\xD2\xD9\xC4\xCB\xCF\xD6\xDC\u0178\xC2\xCA\xCE\xD4\xDB\xC5EI\xD8US -]+`,date_ddmmyyyy:/^\d{1,2}\/\d{1,2}\/\d{4}$/,sort_code:/^(?!(?:0{6}|00-00-00))(?:\d{6}|\d\d-\d\d-\d\d)$/,account_number:/^[0-9]{8}$/,payment_code:/^(AAT-)?([A-Z0-9]{3}-){2}[A-Z0-9]{3}$/,date_valid:/^(((0[1-9]|[12][0-9]|3[01])([/])(0[13578]|10|12)([/])(19(\d{2})|20(\d{2})))|(([0][1-9]|[12][0-9]|30)([/])(0[469]|11)([/])(19(\d{2})|20(\d{2})))|((0[1-9]|1[0-9]|2[0-8])([/])(02)([/])(19(\d{2})|20(\d{2})))|((29)(\.|-|\/)(02)([/])([02468][048]00))|((29)([/])(02)([/])([13579][26]00))|((29)([/])(02)([/])([0-9][0-9][0][48]))|((29)([/])(02)([/])([0-9][0-9][2468][048]))|((29)([/])(02)([/])([0-9][0-9][13579][26])))$/,video:"^(?:https?:\\/\\/)?(?:www\\.)?(?:youtu\\.be\\/|y
752outube\\.com\\/(?:embed\\/|v\\/|watch\\?v=|watch\\?.+&v=))((?:\\w|-){11})(?:&list=(\\S+))?$|https:\\/\\/(player.vimeo\\.com\\/video\\/([\\d]+)(\\&\\S+)?.*?|vimeo\\.com\\/([\\d]+)(\\&\\S+)?)"},profanity:"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJiYWR3b3JkcyI6eyJsaXN0IjpbImFidXNlIiwiYWJ1c2luZyIsImFuYWwiLCJhbnVzIiwiYW5hbGJlYWRzIiwiYXJzZSIsImFyc2Vob2xlIiwiYXNzIiwiYXNzZnVjayIsImFzc2hvbGUiLCJiYXN0YXJkIiwiYmRzbSIsImJpdGNoIiwiYmlzZXh1YWwiLCJiaiIsImJsb3dqb2IiLCJidXR0cGx1ZyIsImNhbm5hYmlzIiwiY2FuYWJpcyIsImNob2tlIiwiY2hva2luZyIsImNsaXQiLCJjbGl0b3JpcyIsImNvY2FpbmUiLCJjb2NrIiwiY3VjIiwiY3VtIiwiY3VudCIsImRpY2siLCJkaWNraGVhZCIsImRpY2ttdW5jaGVyIiwiZGlja3N1Y2tlciIsImRpbGRvIiwiZmFnZ290IiwiZmFubnkiLCJmYW5ueW1vbnN0ZXIiLCJmYW5ueW11bmNoZXIiLCJmaW5nZXJpbmciLCJmZWxjaCIsImZlbHRjaCIsImZlbGxhdGlvIiwiZmlzdCIsImZpc3RpbmciLCJmdWNrIiwiZnVja2VkIiwiZnVja2luZyIsImZ1Y2t0b24iLCJmdWNrdG9ubmUiLCJmw7xocmVyIiwiZnVocmVyIiwiZ2F5IiwiZ29ic2hpdGUiLCJoZXRlcm9zZXh1YWwiLCJobyIsImhvZSIsImhvbW8iLCJob21vc2V4dWFsIiwiaGl0bGVyIiwiaG9sb2NhdXN0Iiwia2lkZHkiLCJraWRkeWZpZGRsZXIiLCJraWxsIiwia2lsbGluZyIsIm1hcmlqdWFuYSIsIm1hc29jaGlzbSIsIm1hc29jaGlzdCIsIm11cmRlciIsIm11cmRlcmluZyIsIm5hemkiLCJuZW9uYXppIiwibmlnZ2EiLCJuaWdnZXIiLCJub2IiLCJub2JoZWFkIiwibm9ic3Vja2VyIiwicGVkbyIsInBhZWRvIiwicGVkb3BoaWxlIiwicGFlZG9waGlsZSIsInBlbmlzIiwicG9ybiIsInB1c3N5IiwicHVzc3ltb25zdGVyIiwicHVzc3ltdW5jaGVyIiwicHJpY2siLCJyYXBlIiwicmFwaW5nIiwicmFwaXN0IiwicnVnbXVuY2hlciIsInNhZGlzbSIsInNhZGlzdCIsInNhZG9tYXNvY2hpc20iLCJzZXgiLCJzZXh0Iiwic2V4dGluZyIsInNoaXQiLCJzaGl0ZSIsInNoaXRob3VzZSIsInNoaXR0aW5nIiwic2x1dCIsInN0YWIiLCJzdGFiYmluZyIsInN1Y2siLCJzd2FzdGljYSIsInN3YXN0aWNhcyIsInN3YXN0aWthIiwidGl0cyIsInRpdHN1Y2tlciIsInRpdHR5IiwidGl0dHlmaWRsZXIiLCJ0d2F0IiwidHdhdG11bmNoZXIiLCJ2YWdpbmEiLCJ3YW5rIiwid2Fua2VyIiwid2VlZCIsIndob3JlIiwid3Jpc3QiLCI0Y2tpbmciXX19.w-2qPHyYCtgvQXgzbU7KRfixc2p8Ts4hh5u52hLq0qc"},x0={defaults:we},Ls=(()=>{let t=class t{validateAlphaType(n,o,r){let a=new RegExp(we.pattern.Alpha),s=we.message.global.invalid_custom_alpha,l;return r?l=r:l=we.message.global.required_custom_alpha.replace("%label",o),{valid:a.test(n),validationMessage:s,blankMessage:l}}validateAlphaTextType(n,o){let r=new RegExp(we.pattern.AlphaText),a=we.message.global.invalid_alphatext,s=we.message.global.required_custom_alphaText.replace("%label",o);return{valid:r.test(n),validationMessage:a,blankMessage:s}}validateAlphaNumericType(n){let o=new RegExp(we.pattern.AlphaNumeric),r=we.message.global.invalid_alphanumeric,a=we.message.global.required_alphanumeric;return{valid:o.test(n),validationMessage:r,blankMessage:a}}validateNumberType(n,o){let r=new RegExp(o?we.pattern.decimalNumber:we.pattern.numberOnly),a=we.message.global.invalid_number,s=we.message.global.required_number;return{valid:r.test(n),validationMessage:a,blankMessage:s}}validatePhoneNumber(n){let o=new RegExp(we.pattern.AATPhoneNumber),r=we.message.global.invalid_telephone,a=we.message.global.required_telephone;return{valid:o.test(n),validationMessage:r,blankMessage:a}}validateEmail(n){let o=new RegExp(we.pattern.email),r=we.message.global.invalid_email,a=we.message.global.required_email;return{valid:o.test(n),validationMessage:r,blankMessage:a}}validateWebsite(n){let o=new RegExp(we.pattern.website),r=we.message.global.invalid_website,a=we.message.global.required_website;return{valid:o.test(n),validationMessage:r,blankMessage:a}}validateEmailsMatch(n,o){let r=we.message.email.email_mismatch;return{valid:n===o,validationMessage:r}}validatePostcode(n){let o=new RegExp(we.pattern.AATGBPostcode),r=we.message.global.invalid_postcode,a=we.message.global.required_postcode;return{valid:o.test(n),validationMessage:r,blankMessage:a}}validatePasswordChoice(n){let o=new RegExp(we.pattern.hasSmallCase),r=new RegExp(we.pattern.hasNumber),a=new RegExp(we.pattern.hasCapitalCase),s=new RegExp(we.pattern.hasSpecialCharacters),c={minlength:n.length>=8,hasSmallCase:o.test(n),hasCapitalCase:a.test(n),hasNumber:r.test(n),hasSpecialCharacters:s.test(n)},h=we.message.password.password_not_valid,m=we.message.global.required_create_password;return{valid:c.minlength&&o.test(n)&&r.test(n)&&a.test(n)&&s.test(n),validationMessage:h,blankMessage:m,passwordErrors:c}}validatePassword(n){let o=new RegExp(we.pattern.AATPassword),r=we.message.password.password_not_valid,a=we.message.global.required_password;return{valid:o.test(n),validationMessage:r,blankMessage:a}}validatePasswordsMatch(n,o){let r=we.message.password.password_mismatch;return{valid:n===o,validationMessage:r}}validateDateBirth(n){let o=new RegExp(we.pattern.date_ddmmyyyy),r=we.message.global.required_birthdate,a=we.message.global.invalid_birthdate_format,s=new RegExp(we.pattern.date_valid);return o.test(n)&&!s.test(n)&&(a=we.message.global.invalid_birthdate),{valid:o.test(n)&&s.test(n),validationMessage:a,blankMessage:r}}validateFutureDate(n){let o=this.validateDateBirth(n),r=we.message.global.required_birthdate,a=we.message.global.invalid_future_date;return o.valid?{valid:(l=>{let c=l.split("/").reverse();return new Date(c[0],parseInt(c[1])-1,c[2])>=new Date})(n),validationMessage:a}
752:{valid:o.valid,validationMessage:a,blankMessage:r}}validateSortCode(n){let o=new RegExp(we.pattern.sort_code),r=we.message.global.invalid_sortcode,a=we.message.global.required_sortcode;return{valid:o.test(n),validationMessage:r,blankMessage:a}}validateAccountNumber(n){let o=new RegExp(we.pattern.account_number),r=we.message.global.invalid_account_number,a=we.message.global.required_account_number;return{valid:o.test(n),validationMessage:r,blankMessage:a}}validatePaymentCode(n){let o=new RegExp(we.pattern.payment_code),r=we.message.global.invalid_paymentcode,a=we.message.global.required_paymentcode;return{valid:o.test(n),validationMessage:r,blankMessage:a}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Vp=(()=>{let t=class t{constructor(n){this.defaultLayoutConfig=n,this.layoutProperties=this.defaultLayoutConfig}setLayoutConfig(n){this.layoutProperties=B(B({},this.layoutProperties),n)}};t.\u0275fac=function(o){return new(o||t)(Y("FullLayoutConfig"))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),A0=(()=>{let t=class t{constructor(n,o){this.cmsContentService=n,this.s3GetterService=o,this.khLeftNavData={homeLogo:this.s3GetterService.getUrl({objName:Sc.aatLogo}),homeLink:"/myaat/dashboards",externalIcon:"link",externalLabel:"aat.org.uk",externalLink:"https://www.aat.org.uk",items:[]}}getLoggedInNavContent(){return this.cmsContentService.cmsGetMenu("logged-in-nav").pipe(J(n=>{if(n.totalHits>0){let o=n.hits[0];o&&this.khLeftNavData.items.length===0&&(o.links.sort(this.compareElementsWeight),this.khLeftNavData.items=o.links.map(r=>({section:r.title,icon:r.iconName,label:r.title,link:r.path,openInNewTab:r.openInNewTab,items:r.hasChildren?this.generateSubLinks(r.links):[]})))}return this.khLeftNavData}))}compareElementsWeight(n,o){return parseInt(n.weight)<parseInt(o.weight)?-1:parseInt(n.weight)>parseInt(o.weight)?1:0}generateSubLinks(n){return n.map(o=>({section:o.title,icon:o.description,label:o.title,link:o.path,openInNewTab:o.openInNewTab??!1,items:o.hasChildren?this.generateSubLinks(o.links):[]}))}};t.\u0275fac=function(o){return new(o||t)(Y(ya),Y(kc))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),JS=(()=>{let t=class t{constructor(){this.notificationClosed=new no(null),this.notificationClosed$=this.notificationClosed.asObservable()}closeNotification(n){this.notificationClosed.next(n)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),ZS={name:"Aberdeen",countries:["Scotland"]},XS={name:"St Albans",countries:["England"]},e3={name:"Birmingham",countries:["England"]},t3={name:"Bath",countries:["England"]},i3={name:"Blackburn",countries:["England"]},n3={name:"Bradford",countries:["England"]},o3={name:"Bournemouth",countries:["England"]},r3={name:"Bolton",countries:["England"]},a3={name:"Brighton",countries:["England"]},s3={name:"Bromley",countries:["England"]},l3={name:"Bristol",countries:["England"]},c3={name:"Belfast",countries:["Northern Ireland"]},d3={name:"Carlisle",countries:["England"]},u3={name:"Cambridge",countries:["England"]},p3={name:"Cardiff",countries:["Wales"]},h3={name:"Chester",countries:["England","Wales"]},g3={name:"Chelmsford",countries:["England"]},m3={name:"Colchester",countries:["England"]},f3={name:"Croydon",countries:["England"]},v3={name:"Canterbury",countries:["England"]},C3={name:"Coventry",countries:["England"]},b3={name:"Crewe",countries:["England"]},_3={name:"Dartford",countries:["England"]},y3={name:"Dundee",countries:["Scotland"]},w3={name:"Derby",countries:["England"]},x3={name:"Dumfries",countries:["Scotland"]},S3={name:"Durham",countries:["England"]},k3={name:"Darlington",countries:["England"]},E3={name:"Doncaster",countries:["England"]},M3={name:"Dorchester",countries:["England"]},T3={name:"Dudley",countries:["England"]},I3={name:"East London",countries:["England"]},D3={name:"East Central London",countries:["England"]},P3={name:"Edinburgh",countries:["Scotland"]},R3={name:"Enfield",countries:["England"]},F3={name:"Exeter",countries:["England"]},O3={name:"Falkirk",countries:["Scotland"]},A3={name:"Blackpool",countries:["England"]},L3={name:"Glasgow",countries:["Scotland"]},N3={name:"Gloucester",countries:["England"]},z3={name:"Guildford",countries:["England"]},B3={name:"Harrow",countries:["England"]},V3={name:"Huddersfield",countries:["England"]},H3={name:"Harrogate",countries:["England"]},G3={name:"Hemel Hempstead",countries:["England"]},U3={name:"Hereford",countries:["England","Wales"]},j3={name:"Hebrides",countries:["Scotland"]},W3={name:"Hull",countries:["England"]},$3={name:"Halifax",countries:["England"]},q3={name:"Ilford",countries:["England"]},Y3={name:"Ipswich",countries:["England"]},K3={name:"Inverness",countries:["Scotland"]},Q3={name:"Kilmarnock",countries:["Scotland"]},J3={name:"Kingston upon Thames",countries:["England"]},Z3={name:"Kirkwall",countries:["Scotland"]},X3={name:"Kirkcaldy",countries:["Scotland"]},ek={name:"Liverpool",countries:["England"]},tk={name:"Lancaster",countries:["England"]},ik={name:"Llandrindod Wells",countries:["Wales","England"]},nk={name:"Leicester",countries:["England"]},ok={name:"Llandudno",countries:["Wales"]}
752,rk={name:"Lincoln",countries:["England"]},ak={name:"Leeds",countries:["England"]},sk={name:"Luton",countries:["England"]},lk={name:"Manchester",countries:["England"]},ck={name:"Medway",countries:["England"]},dk={name:"Milton Keynes",countries:["England"]},uk={name:"Motherwell",countries:["Scotland"]},pk={name:"North London",countries:["England"]},hk={name:"Newcastle upon Tyne",countries:["England"]},gk={name:"Nottingham",countries:["England"]},mk={name:"Northampton",countries:["England"]},fk={name:"Newport",countries:["Wales","England"]},vk={name:"Norwich",countries:["England"]},Ck={name:"North West London",countries:["England"]},bk={name:"Oldham",countries:["England"]},_k={name:"Oxford",countries:["England"]},yk={name:"Paisley",countries:["Scotland"]},wk={name:"Peterborough",countries:["England"]},xk={name:"Perth",countries:["Scotland"]},Sk={name:"Plymouth",countries:["England"]},kk={name:"Portsmouth",countries:["England"]},Ek={name:"Preston",countries:["England"]},Mk={name:"Reading",countries:["England"]},Tk={name:"Redhill",countries:["England"]},Ik={name:"Romford",countries:["England"]},Dk={name:"Sheffield",countries:["England"]},Pk={name:"Swansea",countries:["Wales"]},Rk={name:"South East London",countries:["England"]},Fk={name:"Stevenage",countries:["England"]},Ok={name:"Stockport",countries:["England"]},Ak={name:"Slough",countries:["England"]},Lk={name:"Sutton",countries:["England"]},Nk={name:"Swindon",countries:["England"]},zk={name:"Southampton",countries:["England"]},Bk={name:"Salisbury",countries:["England"]},Vk={name:"Sunderland",countries:["England"]},Hk={name:"Southend-on-Sea",countries:["England"]},Gk={name:"Stoke-on-Trent",countries:["England"]},Uk={name:"South West London",countries:["England"]},jk={name:"Shrewsbury",countries:["England","Wales"]},Wk={name:"Taunton",countries:["England"]},$k={name:"Galashiels",countries:["Scotland"]},qk={name:"Telford",countries:["England"]},Yk={name:"Tunbridge Wells",countries:["England"]},Kk={name:"Torquay",countries:["England"]},Qk={name:"Truro",countries:["England"]},Jk={name:"Teesside",countries:["England"]},Zk={name:"Twickenham",countries:["England"]},Xk={name:"Southall",countries:["England"]},eE={name:"West London",countries:["England"]},tE={name:"Warrington",countries:["England"]},iE={name:"West Central London",countries:["England"]},nE={name:"Watford",countries:["England"]},oE={name:"Wakefield",countries:["England"]},rE={name:"Wigan",countries:["England"]},aE={name:"Worcester",countries:["England"]},sE={name:"Walsall",countries:["England"]},lE={name:"Wolverhampton",countries:["England"]},cE={name:"York",countries:["England"]},dE={name:"Lerwick",countries:["Scotland"]},Woe={AB:ZS,AL:XS,B:e3,BA:t3,BB:i3,BD:n3,BH:o3,BL:r3,BN:a3,BR:s3,BS:l3,BT:c3,CA:d3,CB:u3,CF:p3,CH:h3,CM:g3,CO:m3,CR:f3,CT:v3,CV:C3,CW:b3,DA:_3,DD:y3,DE:w3,DG:x3,DH:S3,DL:k3,DN:E3,DT:M3,DY:T3,E:I3,EC:D3,EH:P3,EN:R3,EX:F3,FK:O3,FY:A3,G:L3,GL:N3,GU:z3,HA:B3,HD:V3,HG:H3,HP:G3,HR:U3,HS:j3,HU:W3,HX:$3,IG:q3,IP:Y3,IV:K3,KA:Q3,KT:J3,KW:Z3,KY:X3,L:ek,LA:tk,LD:ik,LE:nk,LL:ok,LN:rk,LS:ak,LU:sk,M:lk,ME:ck,MK:dk,ML:uk,N:pk,NE:hk,NG:gk,NN:mk,NP:fk,NR:vk,NW:Ck,OL:bk,OX:_k,PA:yk,PE:wk,PH:xk,PL:Sk,PO:kk,PR:Ek,RG:Mk,RH:Tk,RM:Ik,S:Dk,SA:Pk,SE:Rk,SG:Fk,SK:Ok,SL:Ak,SM:Lk,SN:Nk,SO:zk,SP:Bk,SR:Vk,SS:Hk,ST:Gk,SW:Uk,SY:jk,TA:Wk,TD:$k,TF:qk,TN:Yk,TQ:Kk,TR:Qk,TS:Jk,TW:Zk,UB:Xk,W:eE,WA:tE,WC:iE,WD:nE,WF:oE,WN:rE,WR:aE,WS:sE,WV:lE,YO:cE,ZE:dE},$oe=Object.freeze({__proto__:null,AB:ZS,AL:XS,B:e3,BA:t3,BB:i3,BD:n3,BH:o3,BL:r3,BN:a3,BR:s3,BS:l3,BT:c3,CA:d3,CB:u3,CF:p3,CH:h3,CM:g3,CO:m3,CR:f3,CT:v3,CV:C3,CW:b3,DA:_3,DD:y3,DE:w3,DG:x3,DH:S3,DL:k3,DN:E3,DT:M3,DY:T3,E:I3,EC:D3,EH:P3,EN:R3,EX:F3,FK:O3,FY:A3,G:L3,GL:N3,GU:z3,HA:B3,HD:V3,HG:H3,HP:G3,HR:U3,HS:j3,HU:W3,HX:$3,IG:q3,IP:Y3,IV:K3,KA:Q3,KT:J3,KW:Z3,KY:X3,L:ek,LA:tk,LD:ik,LE:nk,LL:ok,LN:rk,LS:ak,LU:sk,M:lk,ME:ck,MK:dk,ML:uk,N:pk,NE:hk,NG:gk,NN:mk,NP:fk,NR:vk,NW:Ck,OL:bk,OX:_k,PA:yk,PE:wk,PH:xk,PL:Sk,PO:kk,PR:Ek,RG:Mk,RH:Tk,RM:Ik,S:Dk,SA:Pk,SE:Rk,SG:Fk,SK:Ok,SL:Ak,SM:Lk,SN:Nk,SO:zk,SP:Bk,SR:Vk,SS:Hk,ST:Gk,SW:Uk,SY:jk,TA:Wk,TD:$k,TF:qk,TN:Yk,TQ:Kk,TR:Qk,TS:Jk,TW:Zk,UB:Xk,W:eE,WA:tE,WC:iE,WD:nE,WF:oE,WN:rE,WR:aE,WS:sE,WV:lE,YO:cE,ZE:dE,default:Woe}),L0=(()=>{let t=class t{constructor(n,o){this.http=n,this.config=o}search(n){return this.http.get(this.config.environment.API_URL+"/location/pca-find/"+n,this.createHeaders()).pipe(he(this.handleError))}
752getPostcode(n){let o=encodeURI(this.config.environment.API_URL+"/location/pca-retrieve/"+n);return this.http.get(o,this.createHeaders()).pipe(he(this.handleError))}createHeaders(){return{headers:new bt({"Content-Type":"application/json"})}}handleError(n){let o=n.message?n.message:n.toString();return jt(o)}isPostcodeCountry(n,o){if(!n)return!1;let r=n.toUpperCase().substring(0,2).replace(/[^a-zA-Z]/g,""),a=$oe[r];return a?a.countries.includes(o):!1}};t.\u0275fac=function(o){return new(o||t)(Y(lt),Y("fabricServicesConfig"))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),uE=(()=>{let t=class t{constructor(n,o,r,a){this.httpClient=n,this.contactService=o,this.basketService=r,this.config=a,this.registrationData={registrationId:null,contactId:null,basket:null,contact:null,employerOrganisationId:null,employerName:null,hasEmployer:null,shareWithEmployer:null,programmeRegistration:null,paymentCode:null,paymentMethod:null},this.redirectPath={destinationPath:this.config.environment.BASE_URL+"/registration/confirmation",failedPaymentPath:this.config.environment.BASE_URL+"/registration/student/payment",errorPath:this.config.environment.BASE_URL+"/registration/student/error",paymentAddress:null}}setRegistrationIds(n,o=null){this.registrationData.contactId=n,this.registrationData.registrationId=o}updateRegistration(n){let o=this.registrationData.programmeRegistration?.map(r=>r.qualificationId).indexOf(n.qualificationId)??-1;if(o>-1){let r=B({},this.registrationData.programmeRegistration[o]);this.registrationData.programmeRegistration[o]=B(B({},r),n)}else this.registrationData.programmeRegistration?.push(n);this.putRegistration()?.subscribe(()=>{})}setRegistrationData(n,o=!0){o&&n.basket!=null&&(this.registrationData.basket=n.basket),n.contact!=null&&(this.registrationData.contact=n.contact),n.programmeRegistration!=null&&(this.registrationData.programmeRegistration=n.programmeRegistration),n.shareWithEmployer!=null&&(this.registrationData.shareWithEmployer=n.shareWithEmployer),n.employer!=null&&(this.registrationData.employerOrganisationId=n.employer),n.employerOrganisationId!=null&&(this.registrationData.employerOrganisationId=n.employerOrganisationId),n.employerName!=null&&(this.registrationData.employerName=n.employerName),n.hasEmployer!=null&&(this.registrationData.hasEmployer=n.hasEmployer),n.paymentCode!=null&&(this.registrationData.paymentCode=n.paymentCode),n.paymentMethod!=null&&(this.registrationData.paymentMethod=n.paymentMethod)}setBasketData(n){this.registrationData.basket=n.map(o=>o.topLevelComponentId)}setPaymentData(n){localStorage.setItem("paymentMethod",n.paymentType),n.paymentType==="card"&&(this.registrationData.paymentCode=null,this.registrationData.paymentMethod=n.paymentType,this.redirectPath.paymentAddress=n.paymentAddress),n.paymentType==="code"&&(this.registrationData.paymentCode=n.paymentCode,this.registrationData.paymentMethod=n.paymentType)}setContactData(n){this.registrationData.contact=Object.assign(this.registrationData.contact||{},n)}setProgrammeRegistration(n,o){this.registrationData.programmeRegistration=o.map((r,a)=>{let s=n["basketItem"+a];return{trainingProviderOrganisationId:s.radio1==="Yes"?s.radio1YesInput1.id:s.radio1,qualificationId:r.topLevelComponentId,startingLevel:s.startingLevel&&s.startingLevel.value||(r.topLevelComponentId==="2a174f81-a055-e511-80c2-00155d220a0c"?"2c174f81-a055-e511-80c2-00155d220a0c":r.programmeComponentId),epaRegisteredOn:s.epaRegisteredOn}})}setEmployerId(n){this.registrationData.shareWithEmployer=n}setEmployer(n,o,r){this.registrationData.employerOrganisationId=n,this.registrationData.employerName=o,this.registrationData.hasEmployer=r}getRegistrationData(){return this.registrationData}dropUnwantedPropertiesAndReturnData(){let n=Object.assign({},this.registrationData);return n.contact&&n.contact.uln==null&&delete n.contact.uln,n.contact&&n.contact.scn==null&&delete n.contact.scn,n&&n.contact&&!Object.keys(n.contact).length&&delete n.contact,n}getRegIdFromContact(n){return this.httpClient.get(this.config.environment.API_URL+"/registration/contact/"+n)}getRegId(){if(!this.getRegId$){let n=this.contactService.contactId()??null,o=r=>a=>{this.regId=a,this.setRegistrationIds(n,a),sessionStorage.setItem("registrationId",a),r.next(a),r.complete()};this.getRegId$=new Lc(r=>{let a=o(r);if(sessionStorage.getItem("registrationId")&&sessionStorage.getItem("registrationId")!=="null")return a(sessionStorage.getItem("registrationId"));if(this.regId)return a(this.regId);let s=this.getRegistrationData();if(s&&s.registrationId)return a(s.registrationId);if(n)this.getRegIdFromContact(n).subscribe(l=>a(l.registrationId),l=>{this.setRegistrationIds(n),this.setBasketData(this.basketService.getBasket()),this.register().subscribe(c=>
752(sessionStorage.setItem("registrationId",c.registrationId),this.setRegistrationIds(n,c.registrationId),a(c.registrationId)),c=>r.error(c))});else return a(null)}).pipe(lv())}return this.getRegId$}register(){return this.httpClient.post(this.config.environment.API_URL+"/registration/",this.dropUnwantedPropertiesAndReturnData())}getRegistration(n=null){return n||this.registrationData.registrationId?this.httpClient.get(`${this.config.environment.API_URL}/registration/${n||this.registrationData.registrationId}`):Q(void 0)}putRegistration(){if(this.registrationData.registrationId)return this.httpClient.put(this.config.environment.API_URL+"/registration/"+this.registrationData.registrationId,this.dropUnwantedPropertiesAndReturnData())}postRegistration(){return this.httpClient.post(this.config.environment.API_URL+"/registration/"+this.registrationData.registrationId+"/transaction",this.redirectPath)}delRegistration(n){return this.httpClient.delete(this.config.environment.API_URL+"/registration/"+n)}verifyPaymentCode(n,o){return this.httpClient.post(this.config.environment.API_URL+"/payment-code/verify",{paymentCode:n,organisationId:o})}};t.\u0275fac=function(o){return new(o||t)(Y(lt),Y(No),Y(Bp),Y("fabricServicesConfig"))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),N0=(()=>{let t=class t{constructor(){this.selectedItem=new Ze({id:null,label:"",data:null}),this.currentSelectedItem=this.selectedItem.asObservable()}search(n){return Q(this._search(n))}_search(n){if(n==="err")throw new Error("testing error handler");n=n.toLowerCase();let o=P0.filter(a=>a.name.toLowerCase().indexOf(n)!==-1),r=[];return o.forEach((a,s)=>{let l={id:a.id,label:a.name,data:a.id};r.push(l)}),r}onSubmit(n){this.selectedItem.next(n)}getSelectedItem(){return this.selectedItem}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),z0=(()=>{let t=class t{constructor(n,o){this.http=n,this.config=o,this.isStaff=!1,this.isAdmin=!1}getRequestOptions(){return{headers:new bt({"Content-Type":"application/json"})}}getTrainingProvider(n){if(!n){let o=JSON.parse(sessionStorage.getItem("centre"));if(!o)return jt("A centre has not been chosen");n=o.organisationId}return this.trainingProvider&&this.trainingProvider.organisationId===n?Q(this.trainingProvider):this.http.get(this.config.environment.API_URL+"/training-provider/"+n,this.getRequestOptions()).pipe(J(o=>{let r=o;if(r.draftVersion){let a=["amenities","eavContact","media","metaDescription","intPartnerships","qualifications","metaKeywords","tpDescription","logo","courses","assessments","openDays","heading1","heading2","tpContact","awards","heading2","pathAlias"];for(let s of a)r.draftVersion[s]&&(r[s]=r.draftVersion[s])}return r}),he(this.handleObservableError))}getTrainingProviders(n){let o=this.getRequestOptions();return n&&(o.params=n),this.http.get(this.config.environment.API_URL+"/training-provider",o).pipe(he(this.handleObservableError))}getTrainingProviderNames(n){let o=this.getRequestOptions();return this.http.post(`${this.config.environment.API_URL}/organisation/filter`,{organisationIds:n},o).pipe(J(r=>r?.map(a=>({name:a.name,organisationId:a.organisationId}))),he(this.handleObservableError))}isPremium(n,o){return o==="eav"?!1:this.getSubscriptionByType(n,"Training Provider").level==="Premium"}isAdvantage(n,o){let r;return o==="eav"&&(r="External Assessment Venue"),o==="tp"&&(r="Training Provider"),this.getSubscriptionByType(n,r).level==="Advantage"}getSubscriptionByType(n,o){return n.subscriptions.filter(a=>a.type===o)[0]}save(n){return this.http.patch(this.config.environment.API_URL+"/training-provider/"+n.organisationId,JSON.stringify(n),this.getRequestOptions())}getCentreByPath(n){return this.http.get(`${this.config.environment.API_URL}/training-provider/path/${n}`).pipe(J(o=>o),he(o=>Q(o)))}handleObservableError(n){let o=n;return typeof n=="string"?Promise.reject(o):Promise.reject('The service is currently unavailable. Please try again later. If the problem persists contact us at <a href="mailto:[email protected]">[email protected]</a> or call <strong>
752+44 (0)20 3735 2443</strong>.')}createAnalyticsEvent(n,o){return this.http.post(`${this.config.environment.API_URL}/training-provider/reporting/create-event`,JSON.stringify({organisationId:n,eventType:o}),this.getRequestOptions())}centreReportingSearch(n,o,r,a=!1){return this.http.post(`${this.config.environment.API_URL}/training-provider/reporting/centre-search/${n}`,JSON.stringify({dateFrom:o,dateTo:r,includePreviousPeriod:a}),this.getRequestOptions())}};t.\u0275fac=function(o){return new(o||t)(Y(lt),Y("fabricServicesConfig"))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),B0=(()=>{let t=class t{constructor(n,o,r){this.http=n,this.config=o,this.ssrCookieService=r}createHeaders(n=!1){let o={Authorization:this.ssrCookieService.get("access_token")};return n&&(o["Content-Type"]="application/json"),{headers:new bt(o)}}upload(n){return this.http.post(this.config.environment.API_URL+"/attachment",n,this.createHeaders()).pipe(J(o=>o))}uploadToSharePoint(n){return this.http.post(this.config.environment.API_URL+"/attachment/upload",n,this.createHeaders()).pipe(J(o=>o))}deleteFromSharePoint(n){return this.http.delete(this.config.environment.API_URL+"/attachment/deleteupload/"+n,this.createHeaders(!0)).pipe(J(o=>o),he(o=>this.handleError(o)))}delete(n){return this.http.delete(this.config.environment.API_URL+"/attachment/"+n,this.createHeaders(!0)).pipe(J(o=>o))}handleError(n){return jt(()=>n.status?`${n.status} - ${n.statusText}`:"Server Error")}};t.\u0275fac=function(o){return new(o||t)(Y(lt),Y("fabricServicesConfig"),Y(Ir))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),V0=(()=>{let t=class t{constructor(n){this.ssrCookieService=n}createHeaders(n=null){let o={headers:new bt({"Content-Type":"application/json"})};return n&&o.headers.set("Authorization",n),o.headers}handleError(n){return jt(()=>n.status?`${n.status} - ${n.statusText}`:"Server Error")}};t.\u0275fac=function(o){return new(o||t)(Y(Ir))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),eo=(()=>{let t=class t{constructor(n){this.fb=n,this._form=new Er({}),this.reset()}get form(){return this._form}addToForm(n,o){this.form.addControl(n,o)}reset(){this._form=this.fb.group({})}};t.\u0275fac=function(o){return new(o||t)(Y(nn))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),zs=(()=>{let t=class t{constructor(n,o,r,a){this.http=n,this.cacheService=o,this._platformId=r,this.config=a,this._headers={headers:new bt({"Content-Type":"application/json"})},this._isBrowser=Ct(this._platformId)}getConfiguration(){return this.cacheService.cacheObservable("configuration",this.http.get(this.config.environment.API_URL+"/configuration/latest/frontend",this._headers),1800,!1)}enableOrDisableCrmServices(n){return this.http.post(`${this.config.environment.API_URL}/configuration/downtime-management`,JSON.stringify({disableServices:n}))}getFeature(n){return this._isBrowser?this.getConfiguration().pipe(J(o=>o[n])):Q(void 0)}isFeatureEnabled(n){return this._isBrowser?this.getConfiguration().pipe(J(o=>o[n]?.enabled)):Q(void 0)}};t.\u0275fac=function(o){return new(o||t)(Y(lt),Y(vr),Y(gt),Y("fabricServicesConfig"))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),pE=(()=>{let t=class t{get httpOptions(){return{headers:new bt({"Content-Type":"application/json"})}}constructor(n){this.config=n,this.qualsTreeUrl="qualification/tree/by",this.http=xe(lt)}getQualsTreeData(n){return this.http.post(`${this.config.environment.API_URL}/${this.qualsTreeUrl}/level`,n,this.httpOptions).pipe(cv(1),he(o=>o.status===404?(console.log("Not found: No data"),jt(o)):Q([])))}getResits(n,o){return this.http.get(`${this.config.environment.API_URL}/qualification/resit/${n}/${o}`,this.httpOptions).pipe(J(r=>{for(let a of r)if(a.scheduledassessmentdate){let s=a.scheduledassessmentdate.split("/");a.scheduledassessmentdate=new Date(+s[2],s[1]-1,+s[0])}return r}),he(this.errorHandler))}getQualsTreeDataBy(n,o){return this.http.post(`${this.config.environment.API_URL}/${this.qualsTreeUrl}/${n}`,o,this.httpOptions).pipe(he(this.errorHandler))}getProgrammesByOrganizationId(n,o){return this.http.get(this.config.environment.API_URL+`/qualification/tp-qualifications/${n}/${o||""}`,this.httpOptions)}getProgrammesByIndex(n,o){return this.http.get(this.config.environment.API_URL+"/qualification/by/"+n+"/"+o,this.httpOptions).pipe(J(r=>r))}readMultipleById(n){return this.http.post(this.config.environment.API_URL+"/qualification/readMultipleById/",JSON.stringify(n),this.httpOptions).pipe(J(o=>o))}readMultipleQualsById(n){return this.http.post(`${this.config.environment.API_URL}/qualification/readMultipleById`,n,this.httpOptions).pipe(J(o=>o))}errorHandler(n){let o="";return n.error instanceof ErrorEvent?o=`An Error occurred: ${n.error.message}`:o=`Server returned code: ${n.status}, error message: ${n.message}`,console.error(o),jt(o)}};t.\u0275fac=function(o){return new(o||t)(Y("fabricServicesConfig"))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),qoe=(()=>{let t=class t{constructor(n){this.config=n,this.apiPrefix="application",this.http=xe(lt),this.createHeaders=()=>({headers:new bt({"Content-Type":"application/json"})})}getMembershipApplications(n){return this.http.get(`${this.config.environment.API_URL}/${this.apiPrefix}/?customerId=${n}`,this.createHeaders()).pipe(J(o=>o))}};t.\u0275fac=function(o){return new(o||t)(Y("fabricServicesConfig"))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),ewe=(()=>{let t=class t{static forRoot(n){return{ngModule:t,providers:[{provide:"fabricServicesConfig",useValue:n},Bp,Uoe,QS,O0,Ls,Xn,Vp,A0,JS,L0,uE,N0,KS,pE,z0,No,B0,kc,V0,eo,zs,vr,qoe]}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({providers:[Uc(jc())]});let e=t;return e})(),Yoe="C0002";function Koe(e){let t=e.split("?")[0].split("#")[0],i=[[/^\/myaat\/login\/p
752assword-reset\/.+/,"/myaat/login/password-reset"],[/^\/myaat\/login\/password-change\/.+/,"/myaat/login/password-change"],[/^\/myaat\/login\/[^/]+$/,"/myaat/login"],[/^\/search\/.+/,"/search"],[/^\/training-providers\/[^/]+(\/[^/]+)?$/,"/training-providers/detail"],[/^\/assessment-venues\/[^/]+(\/[^/]+)?$/,"/assessment-venues/detail"],[/^\/knowledge-hub\/content\/[^/]+\/[^/]+/,"/knowledge-hub/content"],[/^\/knowledge-hub\/categories\/.+/,"/knowledge-hub/categories"],[/^\/knowledge-hub\/resources\/.+/,"/knowledge-hub/resources"],[/^\/knowledge-hub\/author\/.+/,"/knowledge-hub/author"],[/^\/my-qualifications\/statement-of-achievement\/soa-details(\/.*)?$/,"/my-qualifications/statement-of-achievement/soa-details"]];for(let[n,o]of i)if(n.test(t))return o;return t}var ES=(()=>{let t=class t{constructor(n){this.config=n,this.rum=null}init(n,o){if(window.location.hostname==="localhost"){console.log("[RUM] Running on localhost, RUM will NOT be initialised");return}if(this.rum||!n.appMonitorId)return;let r={sessionSampleRate:.1,identityPoolId:n.identityPoolId,endpoint:"https://dataplane.rum.eu-west-1.amazonaws.com",telemetries:["performance","errors",["http",{addXRayTraceIdHeader:!0}]],allowCookies:o,enableXRay:!0,debug:this.config.environment.STAGE!=="production",sessionEventLimit:500};try{this.rum=new Sg(n.appMonitorId,"1.0.0","eu-west-1",r),console.warn("[RUM] Initialised with cookies",o)}catch(a){console.warn("[RUM] Failed to initialise:",a)}}recordPageView(n){this.rum?.recordPageView({pageId:n})}updateCookieConsent(n){this.rum?.allowCookies(n),console.warn("[RUM] Updated cookie consent:",n)}static hasAnalyticsConsent(n){return n.split(",").map(o=>o.trim()).includes(Yoe)}};t.\u0275fac=function(o){return new(o||t)(Y("fabricServicesConfig"))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Qoe=(()=>{let t=class t{constructor(n){this.document=n}updateHeaderTagLinks(n){this.updateCanonicalLink(n),this.updateOGUrl(n)}updateCanonicalLink(n){let o=this.document.head.querySelector("link[rel='canonical']")||this.document.head.appendChild(this.document.createElement("link"));o.rel="canonical",o.href=n}updateOGUrl(n){let o=this.document.head.querySelector("meta[name='og:url']")||this.document.head.appendChild(this.document.createElement("meta"));o.content=n,o.name="og:url"}};t.\u0275fac=function(o){return new(o||t)(Y(ci))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var twe=(()=>{let t=class t{constructor(n,o,r,a,s,l,c){this.router=n,this.route=o,this.title=r,this.meta=a,this.cmsContentService=s,this.headerTagService=l,this.config=c,this.router.events.pipe(zc(h=>h instanceof Ia),J(()=>{let h=this.route.snapshot;for(;h.firstChild;)h=h.firstChild;return h})).subscribe(h=>{this.routeSnapshot=h;let m=this._getCmsContentFromSnapshot(),f=this.getCanonicalUrl(),b=this.getSeoTitleFromContent(),_=m?.pageType,S=this.formatSeoTitle(b,_);if(this.setPageTitle(S),f!==null&&this.headerTagService.updateHeaderTagLinks(f),m){let M=!!m.excludeFromGoogleIndex,D=kS(m.summary),I=this._buildImageData(m),F={canonicalUrl:f,seoTitle:S,summary:D,imageData:I,excludeFromIndex:M},W=this.generateMetaData(F);this.addMetaTags(W)}})}generateMetaData({canonicalUrl:n,seoTitle:o,summary:r,imageData:a,excludeFromIndex:s=!1}){let l;r instanceof Ip?l=r:(console.warn(` 753 Drupal tags have not been removed from cms content "summary" field. 754 Make sure CMS content is sanitized before rendering calling MetaDataService.generateMetaData or other rending of CMS content. 755 `),l=kS(r));let c=`${l}`;n=n||this.getCanonicalUrl();let h=[{name:"format-detection",content:"telephone=no"},{property:"og:site_name",content:"AAT"},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:site",content:"@YourAAT"},{name:"twitter:creator",content:"@YourAAT"},{name:"twitter:title",content:o},{name:"twitter:description",content:c},{name:"og:title",content:o},{name:"og:type",content:"article"},{name:"title",property:"og:title",content:o},{name:"description",property:"og:description",content:c},{name:"og.description",content:c},{name:"whatsapp:title",content:o},{name:"whatsapp:description",content:c}];if(n&&h.push({name:"og:url",content:n}),s&&h.push({name:"robots",content:"noindex, nofollow"}),a){let m=this.cmsContentService.handleImageLocation(a.uri,"medium"),f=this.cmsContentService.handleImageLocation(a.uri,"small"),b=this.cmsContentService.handleImageLocation(a.uri,"thumbnail"),_=a.alt,S=a.type,M=[{name:"name",property:"og:image",content:m},{name:"image",property:"og:image",content:b},{name:"image",property:"og:image:type",content:S},{name:"image",property:"og:image:alt",content:_},{name:"image",property:"og:image:secure_url",itemprop:"image",content:m}
755,{name:"image",property:"og:image:width",content:"1200"},{name:"image",property:"og:image:height",content:"630"},{name:"image",property:"og:image:secure_url",itemprop:"image",content:b},{name:"image",property:"og:image:width",content:"150"},{name:"image",property:"og:image:height",content:"80"},{name:"image",property:"og:image:secure_url",itemprop:"image",content:f},{name:"twitter:image",content:m},{name:"image",property:"og:image:width",content:"600"},{name:"image",property:"og:image:height",content:"300"},{name:"image",property:"og:image:secure_url",itemprop:"image",content:b},{name:"image",property:"og:image:width",content:"300"},{name:"image",property:"og:image:height",content:"200"},{name:"image",property:"og:locale",content:"en_GB"},{name:"whatsapp:image",content:b},{name:"thumbnail",content:b}];h=h.concat(M)}return h}addMetaTags(n){this.meta.addTags(n)}setPageTitle(n){this.title.setTitle(n)}_buildImageData(n){return n.pageType==="news_content_type"&&n.mainImage?{uri:n.mainImage.uri,alt:n.mainImage.alt,type:"image"}:n.socialMediaImage?{type:n.socialMediaImage.type,uri:n.socialMediaImage.imageContent.uri,alt:n.socialMediaImage.imageContent.alt}:null}getSeoTitleFromContent(){let n=this._getCmsContentFromSnapshot();return n?.seoTitle||n?.metaTags?.title||""}formatSeoTitle(n,o){let r="| AAT",a="news";return n?n==="AAT"?n:o&&o==="news_content_type"?`${n} ${r} ${a}`:`${n} ${r}`:"AAT"}_getCanonicalUrlFromRouteData(){let o=this._getCmsContentFromSnapshot()?.metaTags?.canonicalUrl;return typeof o=="string"?o:null}_buildCanonicalUrlFromPath(n,o){let r=n.map(a=>a.url.map(s=>s.toString()).join("/")).filter(a=>a).join("/");return`${o}/${r}`}_getCmsContentFromSnapshot(){return this.routeSnapshot?.data?.cmsContent?.hits?.[0]}getCanonicalUrl(){let n=this._getCanonicalUrlFromRouteData();return n||this._buildCanonicalUrlFromPath(this.routeSnapshot.pathFromRoot,this.config.environment.BASE_URL)}};t.\u0275fac=function(o){return new(o||t)(Y(gi),Y(Uo),Y(Mv),Y(Ev),Y(ya),Y(Qoe),Y("fabricServicesConfig"))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Joe="/mip-service-configuration",Zoe=(()=>{let t=class t{constructor(n,o,r){this.http=n,this.hs=o,this.config=r}getAll(){return this.mipServices?Q(this.mipServices):this.http.get(this.config.environment.API_URL+Joe,{headers:this.hs.createHeaders()}).pipe(J(n=>n),he(n=>this.hs.handleError(n)))}groupByCategoryName(n){let o={};return n.forEach(r=>{let a=r.serviceArea;o[a]||(o[a]=[]),o[a].push(r)}),o}};t.\u0275fac=function(o){return new(o||t)(Y(lt),Y(V0),Y("fabricServicesConfig"))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Xoe=(()=>{let t=class t{constructor(n,o,r,a){this.httpClient=n,this.authService=o,this.cacheService=r,this.config=a,this.sessionKey="closed_notifications",this._headers={headers:new bt({"Content-Type":"application/json"})},this.sessionClosedNotifications=this.cacheService.get(this.sessionKey)||[]}closeNotification(n,o){return this._convertToHash(o).pipe(ht(r=>{switch(n){case"persistent":return this.authService.getCurrentUser().pipe(ot(1),ht(a=>this.httpClient.post(this.config.environment.API_URL+"/banner-notifications-preferences/",{contactId:a["custom:contact_id"],data:r},this._headers)),J(a=>{this.cacheService.invalidate(s=>s.endsWith("-notifications")),console.log("Notification preference stored",a)}));case"session":this.sessionClosedNotifications.push(r),this.cacheService.set(this.sessionKey,this.sessionClosedNotifications,0);break}}))}checkIfClosed(n){try{return this.sessionClosedNotifications?.length?this._convertToHash(n).pipe(J(o=>this.sessionClosedNotifications.includes(o))):Q(!1)}catch(o){return console.error(o),Q(!1)}}_convertToHash(n){let r=new TextEncoder().encode(n.message);return ov(crypto.subtle.digest("SHA-256",r)).pipe(J(a=>Array.from(new Uint8Array(a)).map(c=>c.toString(16).padStart(2,"0")).join("")))}};t.\u0275fac=function(o){return new(o||t)(Y(lt),Y(st),Y(vr),Y("fabricServicesConfig"))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),ere=(()=>{let t=class t{constructor(n,o){this.httpClient=n,this.config=o,this.selectedItem=new Ze({id:null,label:"",data:null}),this.currentSelectedItem=this.selectedItem.asObservable(),this.createHeaders=()=>({headers:new bt({"Content-Type":"application/json"})})}search(n,o,r=!1){if(n===""||n.length<3)return Q([]);let a=`name=${encodeURIComponent(n)}&accreditedEmployersOnly=${r}`;return o&&(a+=`type=${o}`),this.httpClient.get(`${this.config.environment.API_URL}/organisation/search/name-autocomplete?${a}`,this.createHeaders()).pipe(J(s=>s.map(c=>({id:c.organisationId,label:c.name,data:c}))),he(()=>Q([])))}onSubmit(n){this.selectedItem.next(n)}getOrganisation(n){return this.httpClient.get(`${this.config.environment.API_URL}/organisation/${n}`,this.createHeaders()).pipe(J(o=>o),he(o=>Q(o)))}getOrganisations(n){return this.httpClient.post(`${this.config.environment.API_URL}/organisation/filter`,{organisationIds:n},this.createHeaders()).pipe(J(o=>o),he(o=>Q(o)))}getOrganisationFromElastic(n){return this.httpClient.get(`${this.config.environment.API_URL}/organisation/?accountNumber=${n}`,this.createHeaders()).pipe(J(o=>o),he(o=>Q(o)))}};t.\u0275fac=function(o){return new(o||t)(Y(lt),Y("fabricServicesConfig"))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var tre=(()=>{let t=class t{constructor(n,o){this.http=n,this.config=o,this.serviceRoot="unit-progress",this.headers={headers:new bt({"Content-Type":"application/json"})}}search(n){switch(this.serviceRoot){case"payment-code":return this.http.post(this.config.environment.API_URL+`/${this.serviceRoot}/search-contacts/${this.organisationId}`,{query:n},this.headers);case"unit-progress":case"unit-result":return this.http.get(this.config.environment.API_URL+`/${this.serviceRoot}/search-contacts/${this.organisationId}/?query=${n}`,this.headers);default:return this.http.post(this.config.environment.API_URL+`/${this.serviceRoot}/search-contacts`,{trainingProviderIds:this.organisationIds?.length?this.organisationIds:[this.organisationId],query:n},this.headers)}}};t.\u0275fac=function(o){return new(o||t)(Y(lt),Y("fabricServicesConfig"))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),ire=(()=>{let t=class t{constructor(n){this.elRef=n}onClick(){this.elRef.nativeElement.blur()}};t.\u0275fac=function(o){return new(o||t)(O($t))},t.\u0275dir=di({type:t,selectors:[["","fab-blur",""]],hostBindings:function(o,r){o&1&&T("click",function(){return r.onClick()})}});let e=t;return e})(),Ee=(()=>{let t=class t{constructor(){this.enabled=!0,this._gtmService=xe(Xn)}ngOnInit(){if(this.button||console.error("Please ensure you provide button configuration"),this.button.text&&this.button.glyph&&!this.button.glyph.glyphPosition&&(this.button.glyph.glyphPosition="left"),!this.button.gtmData){let n={event:"button_click",buttonLabel:this.button.text};this.button.action.type==="link"&&(n.buttonDestination=this.button.action.link),this.button.gtmData=n}}buttonClick(){!this.enabled||this.button.disabled||(this.button.gtmData&&this._captureGTMData(),this.button.action.type==="callback"&&this.button.action.callback())}_captureGTMData(){this._gtmService.push(this.button.gtmData)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-button"]],inputs:{button:"button",enabled:"enabled"},decls:5,vars:1,consts:[["commonButtonContent",""],["fab-blur","",3,"class","ngClass"],["fab-blur","",3,"class","ngClass","routerLink","target"],["fab-blur","",3,"class","ngClass","target"],["fab-blur","",3,"click","ngClass"],[4,"ngTemplateOutlet"],["fab-blur","",3,"click","ngClass","routerLink","target"],["fab-blur","",3,"click","ngClass","target"],[3,"class"],[1,"fab-button__copy__text"]],template:function(o,r){o&1&&(y(0,yU,2,9,"button",1)(1,xU,2,12,"a",2)(2,kU,2,12,"a",3),V(3,TU,3,7,"ng-template",null,0,ze)),o&2&&w(r.button.action.type==="callback"?0:r.button.action.useRouterLink?1:2)},dependencies:[At,tt,ge,Ce,Ta,ire],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.fab-button[_ngcontent-%COMP%]{display:inline-block;transition:all .2s ease-in-out;font-weight:600;padding:0}.fab-button--primary[_ngcontent-%COMP%]{text-decoration:none;text-align:center;color:#000;cursor:pointer;border-radius:4px;border:2px solid transparent;background-color:#008048;color:#fff}.fab-button--primary[_ngcontent-%COMP%]:hover{background-color:#0a5c50;color:#fff;text-decoration:none}.fab-button--primary[_ngcontent-%COMP%]:hover .fab-button__copy__text[_ngcontent-%COMP%]{text-decoration:underline;filter:none}.fab-button--primary[_ngcontent-%COMP%]:focus{background-color:#0a5c50;color:#fff;outline:medium solid #145fc8;outline-offset:4px;text-decoration:none}.fab-button--primary[_ngcontent-%COMP%]:focus .fab-button__copy__text[_ngcontent-%COMP%]{text-decoration:underline}.fab-button--primary--disabled[_ngcontent-%COMP%]{background-color:#bfbfbf;color:#fff;cursor:default;pointer-events:none}.fab-button--primary[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:24px}.fab-button--secondary[_ngcontent-%COMP%]{text-decoration:none;text-align:center;color:#000;cursor:pointer;border-radius:4px;border:2px solid #bfbfbf;background-color:#fff}.fab-button--secondary[_ngcontent-%COMP%]:hover{border-color:#000;color:#000;text-decoration:none}.fab-button--secondary[_ngcontent-%COMP%]:hover .fab-button__copy__text[_ngcontent-%COMP%]{text-decoration:underline;filter:none}.fab-button--secondary[_ngcontent-%COMP%]:focus{border-color:#000;color:#000;outline:medium solid #145fc8;outline-offset:4px;text-decoration:none}.fab-button--secondary[_ngcontent-%COMP%]:focus .fab-button__copy__text[_ngcontent-%COMP%]{text-decoration:underline}.fab-button--secondary--disabled[_ngcontent-%COMP%]{border-color:#bfbfbf;color:#bfbfbf;cursor:default;pointer-events:none}.fab-button--secondary--full[_ngcontent-%COMP%]{width:100%;justify-content:center}.fab-button--secondary[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:24px}.fab-button--text[_ngcontent-%COMP%]{background:none;border:none;font-weight:600;color:#008048;text-decoration:none}.fab-button--text[_ngcontent-%COMP%]:hover{color:#0a5c50;text-decoration:underline;text-decoration:none}.fab-button--text[_ngcontent-%COMP%]:hover .fab-button__copy__text[_ngcontent-%COMP%]{text-decoration:underline;filter:none}.fab-button--text[_ngcontent-%COMP%]:focus{color:#0a5c50;text-decoration:underline;outline:medium solid #145fc8;outline-offset:4px;text-decoration:none}.fab-button--text[_ngcontent-%COMP%]:focus .fab-button__copy__text[_ngcontent-%COMP%]{text-decoration:underline}.fab-button--text--disabled[_ngcontent-%COMP%]{color:#bfbfbf;cursor:default;pointer-events:none}.fab-button--text[_ngcontent-%COMP%] .fab-button__copy[_ngcontent-%COMP%]{position:inherit}.fab-button--text[_ngcontent-%COMP%] .fab-button__copy__type-text[_ngcontent-%COMP%]{padding:0}.fab-button--text[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:24px}.fab-button--icon-square[_ngcontent-%COMP%]{border-radius:4px;text-decoration:none;text-align:center;align-items:center;justify-content:center;color:#fff;cursor:pointer;font-size:24px;border:2px solid transparent;background-color:#008048}.fab-button--icon-square[_ngcontent-%COMP%]:hover{background-color:#0a5c50;color:#fff;text-decoration:none}.fab-button--icon-square[_ngcontent-%COMP%]:hover .fab-button__copy__text[_ngcontent-%COMP%]{text-decoration:underline;filter:none}.fab-button--icon-square[_ngcontent-%COMP%]:focus{background-color:#0a5c50;color:#fff;outline:medium solid #145fc8;outline-offset:4px;text-decoration:none}.fab-button--icon-square[_ngcontent-%COMP%]:focus .fab-button__copy__text[_ngcontent-%COMP%]{text-decoration:underline}.fab-button--icon-square--disabled[_ngcontent-%COMP%]{background-color:#bfbfbf;color:#fff;cursor:default;pointer-events:none}
755.fab-button--icon-circle[_ngcontent-%COMP%]{border-radius:50%;text-decoration:none;text-align:center;align-items:center;justify-content:center;color:#fff;cursor:pointer;font-size:24px;border:2px solid transparent;background-color:#008048}.fab-button--icon-circle[_ngcontent-%COMP%]:hover{background-color:#0a5c50;color:#fff;text-decoration:none}.fab-button--icon-circle[_ngcontent-%COMP%]:hover .fab-button__copy__text[_ngcontent-%COMP%]{text-decoration:underline;filter:none}.fab-button--icon-circle[_ngcontent-%COMP%]:focus{background-color:#0a5c50;color:#fff;outline:medium solid #145fc8;outline-offset:4px;text-decoration:none}.fab-button--icon-circle[_ngcontent-%COMP%]:focus .fab-button__copy__text[_ngcontent-%COMP%]{text-decoration:underline}.fab-button--icon-circle--disabled[_ngcontent-%COMP%]{background-color:#bfbfbf;color:#fff;cursor:default;pointer-events:none}.fab-button__copy[_ngcontent-%COMP%]{position:relative;display:flex;justify-content:space-evenly;align-items:center;padding:10px 14px;min-height:24px}.fab-button__copy__type-icon-square[_ngcontent-%COMP%], .fab-button__copy__type-icon-circle[_ngcontent-%COMP%]{width:22px;height:22px;padding:12px}.fab-button__copy__type-text[_ngcontent-%COMP%]{height:auto}.fab-button__copy--left[_ngcontent-%COMP%]{flex-direction:row}.fab-button__copy--right[_ngcontent-%COMP%]{flex-direction:row-reverse}.fab-button__copy__icon__position-[_ngcontent-%COMP%], .fab-button__copy__icon__position-left[_ngcontent-%COMP%]{margin-right:12px}.fab-button__copy__icon__position-right[_ngcontent-%COMP%]{margin-left:12px}.fab-button[_ngcontent-%COMP%] .spin[_ngcontent-%COMP%]{top:5%;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-ms-transform-origin:50% 50%;-webkit-animation:spin 1.5s linear infinite;-moz-animation:spin 1.5s linear infinite;-o-animation:spin 1.5s linear infinite;animation:spin 1.5s linear infinite}"]});let e=t;return e})();var Hp=(()=>{let t=class t{transform(n){return new DOMParser().parseFromString(n,"text/html").body.textContent||""}};t.\u0275fac=function(o){return new(o||t)},t.\u0275pipe=et({name:"htmlStripper",type:t,pure:!0,standalone:!1});let e=t;return e})(),iwe=(()=>{let t=class t{constructor(){this.sectionContent={tag:"",image:{url:"",alt:""},type:"",footerTextTop:"",footerTextBottom:""},this.showAuthorImage=!0}ngOnInit(){this.setFooterContent()}setFooterContent(){let n=this.content.technicalResourceType&&this.content.technicalResourceType.length&&this.content.technicalResourceType[0].name&&this.content.technicalResourceType[0].name!==""?this.content.technicalResourceType[0].name.toLowerCase().replace(/ /g,"-"):"article";this.content.course&&this.content.course.level.length>0?this.sectionContent={tag:"Level "+this.content.course.level,image:{url:this.content.image?this.content.image.url:null,alt:this.content.image?this.content.image.alt:null},type:n,footerTextTop:this.content.course.duration,footerTextBottom:this.content.course.cost}:this.sectionContent={tag:this.content.technicalResourceType&&this.content.technicalResourceType.length&&this.content.technicalResourceType[0].name&&this.content.technicalResourceType[0].name!==""?this.content.technicalResourceType[0].name:"Article",image:{url:this.content.author&&this.content.author[0]&&this.content.author[0].image?this.content.author[0].image.url:null,alt:this.content.author&&this.content.author[0]&&this.content.author[0].image?this.content.author[0].image.alt:""},type:n,footerTextTop:this.content.author&&this.content.author[0]?this.content.author[0].title:"Author Unknown",footerTextBottom:this.content.date?this.content.date:null}}setDefaultPic(n){if(n.type==="error"){this.authorInitials="";let o=this.sectionContent.footerTextTop.split(" ");o.length>0&&(o.length==1?this.authorInitials=o[0].charAt(0):this.authorInitials=o[0].charAt(0)+o[1].charAt(0)),this.showAuthorImage=!1}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-results-card"]],inputs:{content:"content"},standalone:!1,decls:2,vars:2,consts:[[1,"card","results-card",3,"href"],[3,"routerLink","class"],[3,"ngClass"],[1,"col-xs-8","col-sm-7"],[1,"results-card__container"],[1,"results-card__content"],[1,"results-card__content--summary",3,"innerHTML"],[1,"card__footer","results-card__footer","results-card__footer"],[1,"card__footer__c
755ontent","results-card__footer__content",3,"ngClass"],[1,"results-card__author-link",3,"href"],[1,"small"],[1,"col-xs-4","col-sm-5"],[1,"card__tag","horizontal-card__tag"],[1,"card__tag","card__tag--sponsor"],[3,"src","alt"],[1,"results-card__footer--avatar"],[3,"error","src","alt"],[1,"results-card__image",3,"backgroundImage"],[1,"results-card__image"],[3,"routerLink"],[1,"results-card__author-link",3,"routerLink"]],template:function(o,r){o&1&&(y(0,zU,17,20,"a",0),y(1,jU,25,33,"a",1)),o&2&&(w(r.content.useRouterLink?-1:0),d(),w(r.content.useRouterLink?1:-1))},dependencies:[Ce,tt,tn,Mr,Hp],styles:['[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.results-card[_ngcontent-%COMP%]{width:100%;margin:6px auto;transition:all .3s ease-in-out}.results-card__info-row[_ngcontent-%COMP%]{border:1px solid #dce6f0;border-radius:5px;padding:5px 10px}.results-card__info-row[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 5px 10px #0003;text-decoration:none}.results-card__container[_ngcontent-%COMP%]{position:relative;margin-right:10px;display:flex;flex-direction:column;height:100%}.results-card__image[_ngcontent-%COMP%]{padding-bottom:68.25%;background-repeat:no-repeat;background-position:center;background-size:cover}@media (min-width: 992px){.results-card__image[_ngcontent-%COMP%]{padding-bottom:56.25%}}.results-card__content[_ngcontent-%COMP%]{padding:10px 0}.results-card__content[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .results-card__content[_ngcontent-%COMP%] .results-card__footer--avatar[_ngcontent-%COMP%]{font-family:acumin-pro-wide,Arial;transition:all .3s ease-in-out}.results-card__content--summary[_ngcontent-%COMP%]{font-weight:400;color:#000;min-height:50px}.results-card__footer[_ngcontent-%COMP%]{margin-top:auto}.results-card__footer__content[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-family:acumin-pro-wide,Arial;overflow:hidden;margin-right:10px;max-width:300px}.results-card__footer__content--image[_ngcontent-%COMP%]{padding-left:50px}.results-card__footer__content--image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block}.results-card__footer--avatar[_ngcontent-%COMP%]{display:block;border-radius:50%;top:50%;left:0;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:39px;height:39px;line-height:40px;background-color:#f9f9f9;font-family:Open Sans,Arial,Helvetica,"sans-serif";font-weight:600;text-align:center;position:absolute}@media (min-width: 992px){.results-card__footer--avatar[_ngcontent-%COMP%]{font-size:20px}}.results-card[_ngcontent-%COMP%]:focus, .results-card[_ngcontent-%COMP%]:hover{text-decoration:none}@media (min-width: 992px){.results-card[_ngcontent-%COMP%]{max-width:758px}.results-card__container[_ngcontent-%COMP%]{margin:0 auto;padding-top:0}.results-card__content[_ngcontent-%COMP%]{padding:10px 10px 10px 0}}@media (min-width: 1200px){.results-card[_ngcontent-%COMP%]{margin:10px auto;max-width:900px;border-radius:3px}.results-card__container[_ngcontent-%COMP%]{margin-top:0}}']});let e=t;return e})(),nwe=(()=>{let t=class t{constructor(n){this.cmsContentService=n,this.sectionContent={tag:"",image:{url:"",alt:""},type:"",footerTextTop:"",footerTextBottom:""},this.showAuthorImage=!0}ngOnInit(){this.updateImages(),this.setFooterContent()}updateImages(){this.content.image?.uri&&(this.content.image.url=this.cmsContentService.handleImageLocation(this.content.image.uri,"small")),this.content.mainImage?.uri&&(this.content.mainImage.url=this.cmsContentService.handleImageLocation(this.content.mainImage.uri,"small")),this.content.author?.[0]?.image&&(this.content.author[0].image.url=this.cmsContentService.handleImageLocation(this.content.author[0].image.uri,"small"))}setFooterContent(){let n=this.content.technicalResourceType&&this.content.technicalResourceType.length&&this.content.technicalResourceType[0].name&&this.content.technicalResourceType[0].name!==""?this.content.technicalResourceType[0].name.toLowerCase().replace(/ /g,"-"):"article";this.content.course&&this.content.course.level.length>0?this.sectionContent={tag:"Level "+this.content.course.level,image:{url:this.content.image?.url??null,alt:this.content.image?.alt??null},type:n,footerTextTop:this.content.course.duration,footerTextBottom:this.content.course.cost}:this.sectionContent={tag:this.content.technicalResourceType&&this.content.technicalResourceType.length&&this.content.technicalResourceType[0].name&&this.content.technicalResourceType[0].name!==""?this.content.technicalResourceType[0].name:"Article",image:{url:this.content.author&&this.content.author[0]&&this.content.author[0].image?this.content.author[0].image.url:null,alt:this.content.author&&this.content.author[0]&&this.content.author[0].image?this.content.author[0].image.alt:""},type:n,footerTextTop:this.content.author&&this.content.author[0]?this.content.author[0].title:"Author Unknown",footerTextBottom:this.content.date?this.content.date:null}}setDefaultPic(n){if(n.type==="error"){this.authorInitials="";let o=this.sectionContent.footerTextTop.split(" ");o.length>0&&(o.length==1?this.authorInitials=o[0].charAt(0):this.authorInitials=o[0].charAt(0)+o[1].charAt(0)),this.showAuthorImage=!1}}};t.\u0275fac=function(o){return new(o||t)(O(ya))},t.\u0275cmp=U({type:t,selectors:[["fab-secondary-card"]],inputs:{content:"content"},standalone:!1,decls:2,vars:2,consts:[[3,"href","class"],[3,"routerLink","class"],[3,"href"],[1,"secondary-card__image",3,"backgroundImage"],[1,"secondary-card__content"],[1,"secondary-card__content--summary",3,"innerHTML"],[1,"card__footer","secondary-card__footer","secondary-card__footer","fixed-bottom"],[1,"card__footer__c
755ontent","secondary-card__footer__content",3,"ngClass"],[1,"secondary-card__author-link",3,"href"],[3,"src","alt"],[1,"secondary-card__footer--avatar"],[1,"small"],[1,"secondary-card__image"],[1,"card__tag","horizontal-card__tag"],[1,"card__tag","card__tag--sponsor"],[3,"error","src","alt"],[3,"routerLink"],[1,"secondary-card__author-link",3,"routerLink"]],template:function(o,r){o&1&&(y(0,KU,18,26,"a",0),y(1,ej,18,28,"a",1)),o&2&&(w(r.content.useRouterLink?-1:0),d(),w(r.content.useRouterLink?1:-1))},dependencies:[Ce,tt,tn,Mr,Hp],styles:['[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.secondary-card[_ngcontent-%COMP%]{border-bottom:2px solid rgb(229.5,229.5,229.5);margin:6px;transition:all .3s ease-in-out;height:100%;display:flex;flex-direction:column}.secondary-card__image[_ngcontent-%COMP%]{position:relative;display:flex;align-items:flex-end;height:188px;background-repeat:no-repeat;background-position:center;background-size:cover}.secondary-card__image[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding:6px 4px;margin-bottom:4px;margin-left:4px;margin-right:0}.secondary-card__tag[_ngcontent-%COMP%]{margin:0 4px 0 0}@media (min-width: 992px){.secondary-card__tag[_ngcontent-%COMP%]{margin:0 4px}}.secondary-card__content[_ngcontent-%COMP%]{padding:4px 0}.secondary-card__content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none;margin:10px 0 5px}.secondary-card__content[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .secondary-card__content[_ngcontent-%COMP%] .secondary-card__footer--avatar[_ngcontent-%COMP%]{font-family:acumin-pro-wide,Arial}.secondary-card__content--summary[_ngcontent-%COMP%]{font-weight:400;color:#000}.secondary-card__footer[_ngcontent-%COMP%]{padding-bottom:10px;padding-top:10px;margin-top:auto}.secondary-card__footer__content[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-family:acumin-pro-wide,Arial;overflow:hidden;margin-right:10px}.secondary-card__footer__content--image[_ngcontent-%COMP%]{padding-left:50px}.secondary-card__footer__content--image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block}.secondary-card__footer--avatar[_ngcontent-%COMP%]{display:block;border-radius:50%;top:50%;left:0;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:39px;height:39px;line-height:40px;background-color:#f9f9f9;font-family:Open Sans,Arial,Helvetica,"sans-serif";font-weight:600;text-align:center;position:absolute}@media (min-width: 992px){.secondary-card__footer--avatar[_ngcontent-%COMP%]{font-size:20px}}.secondary-card[_ngcontent-%COMP%]:focus, .secondary-card[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 5px 10px #0003;text-decoration:none}@media (min-width: 992px){.secondary-card[_ngcontent-%COMP%]{border:1px solid rgb(229.5,229.5,229.5);min-width:145px;max-width:280px;margin:0 5px;min-height:300px}.secondary-card__content[_ngcontent-%COMP%], .secondary-card__footer[_ngcontent-%COMP%]{padding:10px}}@media (min-width: 1200px){.secondary-card[_ngcontent-%COMP%]{margin:10px;border-radius:3px 3px 0 0;min-width:230px;max-width:350px;min-height:330px}.secondary-card__content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:block}.secondary-card__footer[_ngcontent-%COMP%]{margin-top:auto}.secondary-card__footer__content--image[_ngcontent-%COMP%]{padding-left:50px}.secondary-card__footer__content--image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block}}']});let e=t;return e})();var _c=class{constructor(){this.change=new L,this.instances={},this.DEFAULT_ID="DEFAULT_PAGINATION_ID"}defaultId(){return this.DEFAULT_ID}register(t){t.id||(t.id=this.DEFAULT_ID),this.instances[t.id]?this.updateInstance(t)&&this.change.emit(t.id):(this.instances[t.id]=t,this.change.emit(t.id))}updateInstance(t){let i=!1;for(let n in this.instances[t.id])t[n]!==this.instances[t.id][n]&&(this.instances[t.id][n]=t[n],i=!0);return i}getCurrentPage(t){if(this.instances[t])return this.instances[t].currentPage}setCurrentPage(t,i){if(this.instances[t]){let n=this.instances[t],o=Math.ceil(n.totalItems/n.itemsPerPage);i<=o&&1<=i&&(this.instances[t].currentPage=i,this.change.emit(t))}}setTotalItems(t,i){this.instances[t]&&0<=i&&(this.instances[t].totalItems=i,this.change.emit(t))}setItemsPerPage(t,i){this.instances[t]&&(this.instances[t].itemsPerPage=i,this.change.emit(t))}getInstance(t=this.DEFAULT_ID){return this.instances[t]?this.clone(this.instances[t]):{}}clone(t){let i={};for(let n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);return i}},nre=(()=>{let t=class t{constructor(n,o){this.service=n,this.changeDetectorRef=o,this.maxSize=7,this.pageChange=new L,this.pages=[],this.changeSub=this.service.change.subscribe(r=>{this.id===r&&(this.updatePageLinks(),this.changeDetectorRef.markForCheck(),this.changeDetectorRef.detectChanges())})}ngOnInit(){this.id===void 0&&(this.id=this.service.defaultId()),this.updatePageLinks()}ngOnChanges(n){this.updatePageLinks()}ngOnDestroy(){this.changeSub.unsubscribe()}previous(){this.checkValidId(),this.setCurrent(this.getCurrent()-1)}next(){this.checkValidId(),this.setCurrent(this.getCurrent()+1)}isFirstPage(){return this.getCurrent()===1}isLastPage(){return this.getLastPage()===this.getCurrent()}setCurrent(n){this.pageChange.emit(n)}
755getCurrent(){return this.service.getCurrentPage(this.id)}getLastPage(){let n=this.service.getInstance(this.id);return n.totalItems<1?1:Math.ceil(n.totalItems/n.itemsPerPage)}checkValidId(){this.service.getInstance(this.id).id||console.warn(`PaginationControlsDirective: the specified id "${this.id}" does not match any registered PaginationInstance`)}updatePageLinks(){let n=this.service.getInstance(this.id),o=this.outOfBoundCorrection(n);o!==n.currentPage?setTimeout(()=>{this.setCurrent(o),this.pages=this.createPageArray(n.currentPage,n.itemsPerPage,n.totalItems,this.maxSize)}):this.pages=this.createPageArray(n.currentPage,n.itemsPerPage,n.totalItems,this.maxSize)}outOfBoundCorrection(n){let o=Math.ceil(n.totalItems/n.itemsPerPage);return o<n.currentPage&&0<o?o:n.currentPage<1?1:n.currentPage}createPageArray(n,o,r,a){a=+a;let s=[],l=Math.ceil(r/o),c=Math.ceil(a/2),h=n<=c,m=l-c<n,f=!h&&!m,b=a<l,_=1;for(;_<=l&&_<=a;){let S,M=this.calculatePageNumber(_,n,a,l),D=_===2&&(f||m),I=_===a-1&&(f||h);b&&(D||I)?S="...":S=M,s.push({label:S,value:M}),_++}return s}calculatePageNumber(n,o,r,a){let s=Math.ceil(r/2);return n===r?a:n===1?n:r<a?a-s<o?a-r+n:s<o?o-s+n:n:n}};t.\u0275fac=function(o){return new(o||t)(O(_c),O(Ii))},t.\u0275dir=di({type:t,selectors:[["pagination-template"],["","pagination-template",""]],inputs:{id:"id",maxSize:"maxSize"},outputs:{pageChange:"pageChange"},exportAs:["paginationApi"],standalone:!1,features:[Ye]});let e=t;return e})(),owe=(()=>{let t=class t{constructor(n,o,r){this.router=n,this.route=o,this.locationStrategy=r,this.maxSize=7,this.previousLabel="",this.nextLabel="",this.screenReaderPaginationLabel="Pagination",this.screenReaderPageLabel="page",this.screenReaderCurrentLabel="You're on page",this.pageChange=new L,this._directionLinks=!0,this._autoHide=!1,this.suppressScroll=!1}ngAfterViewInit(){this.goToQueryPage(),this.locationStrategy.onPopState(n=>{this.goToQueryPage()})}get directionLinks(){return this._directionLinks}set directionLinks(n){this._directionLinks=!!n&&n!=="false"}get autoHide(){return this._autoHide}set autoHide(n){this._autoHide=!!n&&n!=="false"}onPageChange(n){this.pageChange.emit({pageNumber:n,scroll:!this.suppressScroll})}getUrl(n){return this.router.url.split("?")[0]+"?page="+n}navigate(n,o){n.preventDefault(),this.locationStrategy.pushState(null,"",this.getUrl(o),"")}goToQueryPage(){this.paginationApi&&Number.isInteger(+this.route.snapshot.queryParams.page)&&(this.suppressScroll=!0,this.paginationApi.setCurrent(+this.route.snapshot.queryParams.page),this.suppressScroll=!1)}};t.\u0275fac=function(o){return new(o||t)(O(gi),O(Uo),O(yv))},t.\u0275cmp=U({type:t,selectors:[["fab-pagination-controls"]],viewQuery:function(o,r){if(o&1&&Ue(tj,5),o&2){let a;Me(a=Te())&&(r.paginationApi=a.first)}},inputs:{id:"id",maxSize:"maxSize",directionLinks:"directionLinks",autoHide:"autoHide",previousLabel:"previousLabel",nextLabel:"nextLabel",screenReaderPaginationLabel:"screenReaderPaginationLabel",screenReaderPageLabel:"screenReaderPageLabel",screenReaderCurrentLabel:"screenReaderCurrentLabel"},outputs:{pageChange:"pageChange"},standalone:!1,decls:3,vars:3,consts:[["p","paginationApi"],[3,"pageChange","id","maxSize"],["role","navigation",1,"ngx-pagination"],[1,"pagination-previous",3,"disabled"],[3,"current"],[1,"pagination-next",3,"disabled"],[1,"pagination-previous"],["tabindex","0",3,"href"],["tabindex","0",3,"keyup.enter","click","href"],[1,"icon-arrow-left"],[1,"show-for-sr"],[1,"pagination-next"],[1,"icon-arrow-right"]],template:function(o,r){if(o&1){let a=P();p(0,"pagination-template",1,0),T("pageChange",function(l){return k(a),E(r.onPageChange(l))}),y(2,uj,5,3,"ul",2),u()}if(o&2){let a=de(1);v("id",r.id)("maxSize",r.maxSize),d(2),w(r.autoHide&&a.pages.length<=1?-1:2)}},dependencies:[nre],styles:[`@charset "UTF-8";:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.ngx-pagination{margin-left:0;font-size:16px;margin-bottom:1rem}@media (min-width: 1200px){.ngx-pagination{font-size:18px}}.ngx-pagination:before,.ngx-pagination:after{content:" ";display:table}.ngx-pagination:after{clear:both}.ngx-pagination li{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;margin-right:.0625rem;border-radius:0}.ngx-pagination li{display:inline-block;vertical-align:bottom}.ngx-pagination li:not(.pagination-previous):not(.pagination-next) a{border-bottom:2px solid transparent;padding:10px 4px 11px 0;margin:0 18px 0 4px;outline:none}.ngx-pagination li:not(.pagination-previous):not(.pagination-next) a:hover,.ngx-pagination li:not(.pagination-previous):not(.pagination-next) a:focus{color:#0a5c50;text-decoration:none;border-bottom:2px solid #0a5c50}@media (min-width: 992px){.ngx-pagination li:not(.pagination-previous):not(.pagination-next) a{padding:8px 4px 8px 0}}.ngx-pagination .pagination-previous{margin-right:20px}
755.ngx-pagination .pagination-previous a,.ngx-pagination .pagination-next a{padding:6px 6px 3px;min-height:31px;min-width:28px;margin:0;line-height:24px;outline:none}@media (min-width: 992px){.ngx-pagination .pagination-previous a,.ngx-pagination .pagination-next a{border:1px solid #c8c8c8;padding:3px 0 0 6px;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;border-radius:50%}}@media (min-width: 1200px){.ngx-pagination .pagination-previous a,.ngx-pagination .pagination-next a{padding:6px 6px 3px}}.ngx-pagination .pagination-previous a:hover,.ngx-pagination .pagination-previous a:focus,.ngx-pagination .pagination-next a:hover,.ngx-pagination .pagination-next a:focus{text-decoration:none}.ngx-pagination .pagination-previous a:hover i,.ngx-pagination .pagination-previous a:focus i,.ngx-pagination .pagination-next a:hover i,.ngx-pagination .pagination-next a:focus i{color:#0a5c50}.ngx-pagination .pagination-previous i,.ngx-pagination .pagination-next i{font-size:21px;vertical-align:middle}@media (min-width: 1200px){.ngx-pagination .pagination-previous i,.ngx-pagination .pagination-next i{font-size:28px}}.ngx-pagination a,.ngx-pagination button{color:#0a0a0a;display:block;border-radius:0}.ngx-pagination .current{color:#00ab4e;font-weight:600;cursor:default;margin-right:9px}.ngx-pagination .current span{font-weight:600;border-bottom:2px solid #00ab4e;padding:8px 3px 8px 0;margin:0 10px 0 3px;display:block}.ngx-pagination span{font-weight:300}.ngx-pagination .disabled{opacity:.25;cursor:default}.ngx-pagination .disabled span{padding:6px 6px 3px;min-height:31px;min-width:28px;margin:0;font-weight:600;line-height:24px;display:block}@media (min-width: 992px){.ngx-pagination .disabled span{border:1px solid #c8c8c8;padding:3px 0 0 6px;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;border-radius:50%}}@media (min-width: 1200px){.ngx-pagination .disabled span{padding:6px 6px 3px}}.ngx-pagination .disabled span i:hover{color:#00ab4e}.ngx-pagination .disabled:hover{background:transparent}.ngx-pagination .ellipsis:after{content:"\\2026";padding:.1875rem .625rem;color:#0a0a0a}.ngx-pagination a,.ngx-pagination button{cursor:pointer}.icon-arrow-right,.icon-arrow-left{color:#00ab4e}.icon-arrow-left:hover,.icon-arrow-left:focus{color:#0a5c50}.ngx-pagination .pagination-previous a:before,.ngx-pagination .pagination-previous.disabled:before{color:#00ab4e;display:inline-block;margin-right:.5rem}.ngx-pagination .pagination-next a:after,.ngx-pagination .pagination-next.disabled:after{color:#00ab4e;display:inline-block;margin-top:.5rem}.ngx-pagination .pagination-next a:hover i,.ngx-pagination .pagination-next a:focus i{color:#0a5c50}.ngx-pagination .show-for-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)} 756`],encapsulation:2,changeDetection:0});let e=t;return e})(),wa=(()=>{let t=class t{constructor(){this.hoverIndex=-1,this.value=null,this.touched=!1,this.dirty=!1,this.focus=!1,this.optionSelected=!1,this.outputReturnSelectedOptions=new L,this.onChange=n=>{},this.onTouched=()=>{}}ngOnInit(){this.placeholder=this.content.placeholder,this.group=this.content.group,this.formControl||(this.selectedString=this.fixedContent?this.fixedContent:this.content.placeholder),this.options=this.setSelectedOptions(this.content.options),this.optionsLength=this.content.options.length,(this.selectContent||this.formControl?.value)&&(this.makeSelection(this.selectContent||this.formControl.value),this.toggleOptionsShown())}closeDropdown(n,o){if(!o.relatedTarget||!o.relatedTarget.classList.contains(n)){this.focus=!1,this.optionsShown=!1;return}}keyPicker(n){if(typeof n.key>"u")return null;if(n.target.classList.contains("dropdown__input"))switch(n.key){case"Tab":this.optionsShown=!1;break;case"ArrowDown":case"Down":n.preventDefault(),n.stopPropagation(),this.traverse("down");break;case"ArrowUp":case"Up":this.traverse("up"),n.preventDefault();break;case"Enter":case" ":case"Spacebar":n.preventDefault(),this.makeSelection(this.options[this.hoverIndex]);break}}reset(){this.makeSelection(null),this.selectedString=this.fixedContent?this.fixedContent:this.content.placeholder,this.toggleOptionsShown()}traverse(n){this.optionsShown=!0,n==="down"&&(this.optionsLength===this.hoverIndex?this.hoverIndex=0:this.hoverIndex++),n==="up"&&(this.hoverIndex<=0?this.hoverIndex=this.optionsLength:this.hoverIndex--);for(let o of this.options)o.value!==this.hoverIndex&&(o.selected=!1);for(let o of this.options)o.selected=!1;this.options[this.hoverIndex].selected=!0}toggleOptionsShown(){this.focus=!0,this.touched=!0,this.optionsShown=!this.optionsShown,this.formControl&&this.formControl.markAsTouched({onlySelf:!0})}setSelectedOptions(n){for(let o of n)o.selected=!1;return typeof this.placeholder<"u"&&(n=[{value:0,label:this.placeholder,selected:!1}].concat(n)),n}ngOnChanges(n){this.options=this.setSelectedOptions(this.content.options),this.optionsLength=this.content.options.length}makeSelection(n){for(let o of this.options)o.selected=!1;if(!n||n.value===0){this.toggleOptionsShown(),this.fixedContent||(this.selectedString=this.content.placeholder),this.writeValue(""),this.outputReturnSelectedOptions.emit([]),this.optionSelected=!1;return}n.selected=!0,this.hoverIndex=this.options.indexOf(n),this.dirty=!0,this.optionSelected=!0,this.writeValue(n),this.fixedContent||(this.selectedString=n.label),this.toggleOptionsShown(),this.returnSelectedOptions()}writeValue(n){let o=this.content.options.find(r=>r===n||r.label===n);o&&!this.fixedContent&&(o.selected=!0,this.selectedString=o.label),this.onChange(n)}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}returnSelectedOptions(){let n=[];return this.options.forEach((o,r)=>
756{o.selected&&n.push(this.options[r])}),this.outputReturnSelectedOptions.emit(n),n}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-dropdown-simple"]],inputs:{content:"content",formControl:"formControl",selectContent:"selectContent",fixedContent:"fixedContent",showError:"showError"},outputs:{outputReturnSelectedOptions:"outputReturnSelectedOptions"},standalone:!1,features:[St([{provide:Zt,useExisting:Wt(()=>t),multi:!0}]),Ye],decls:16,vars:17,consts:[[1,"dropdown-simple"],[1,"row"],[1,"col-xs-12"],[3,"ngClass"],[1,"form-fieldcontainer","row"],[1,"dropdown","col-11","pl-0",3,"keydown.escape","ngClass"],["tabindex","0",3,"click","keydown","blur","ngClass"],[1,"icon","icon-arrow-down"],[1,"dropdown__options"],[1,"col-md-4","col-xs-2"],[1,"row","form__feedbackcontainer"],[1,"form_error"],[1,"form__labelcontainer",3,"innerHTML"],[1,"dropdown__options",3,"blur"],["tabindex","0",3,"ngClass","class","value"],["tabindex","0",3,"keydown.enter","click","ngClass","value"],[1,"form__icon"],[1,"col-md-8","col-sm-10","col-xs-10"],[1,"form__tooltip"]],template:function(o,r){o&1&&(p(0,"div",0)(1,"div",1),y(2,hj,3,1,"div",2),u(),p(3,"div",1)(4,"div",3)(5,"div",4)(6,"div",5),T("keydown.escape",function(){return r.optionsShown=!1}),p(7,"div",6),T("click",function(){return r.toggleOptionsShown()})("keydown",function(s){return r.keyPicker(s)})("blur",function(s){return r.closeDropdown(r.group,s)}),y(8,gj,2,1,"p")(9,mj,2,1,"p"),x(10,"i",7),u(),y(11,vj,4,0,"div",8),u()()(),y(12,Cj,3,4,"div",9),p(13,"div",10),y(14,bj,3,1,"div",11),u()(),y(15,_j,5,1,"div"),u()),o&2&&(d(2),w(r.content.label?2:-1),d(2),v("ngClass",r.content.disableIcons?"disabled-icons":"col-md-8 col-sm-10 col-xs-10"),d(2),v("ngClass",z(12,BS,r.formControl==null?null:r.formControl.disabled)),d(),pe(vt("dropdown__input ",r.group)),v("ngClass",Re(14,wc,r.formControl&&r.formControl.valid&&(r.dirty||r.formControl.touched)&&r.optionSelected||!r.formControl&&r.optionSelected,r.showError&&r.formControl&&r.formControl.invalid&&(r.dirty||r.formControl.touched)&&!r.focus)),d(),w(r.formControl?8:9),d(3),w(r.optionsShown?11:-1),d(),w(r.content.disableIcons?-1:12),d(2),w(r.content.validationMessage&&r.formControl&&r.formControl.invalid&&(r.dirty||r.formControl.touched)&&!r.focus?14:-1),d(),w(r.content.toolTip?15:-1))},dependencies:[Ce],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.dropdown-simple .dropdown{width:100%;
756min-width:200px;position:relative;padding:0}.dropdown-simple .dropdown li{font-weight:300}.dropdown-simple .dropdown__options{max-height:350px;overflow:auto}.dropdown-simple .dropdown__input,.dropdown-simple .dropdown__options{border:2px solid rgb(229.5,229.5,229.5);min-height:20px;background-color:#fff}.dropdown-simple .dropdown__input{cursor:pointer;position:relative;padding:7px 10px;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px}.dropdown-simple .dropdown__input p{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:0;padding:0 20px 0 0}.dropdown-simple .dropdown__input i{position:absolute;top:50%;right:10px;transform:translateY(-50%);font-size:14px}.dropdown-simple .dropdown__input:focus,.dropdown-simple .dropdown__input:active{outline:none;border-radius:3px;border:4px solid #fac05c}.dropdown-simple .dropdown__options{border:1px solid rgb(238.425,238.425,238.425);border-bottom-width:2px;padding:15px 0;position:absolute;z-index:9;background:#fff;width:100%;box-sizing:border-box}.dropdown-simple .dropdown__options--title{display:block;padding:0 30px 15px}.dropdown-simple .dropdown__options li{cursor:pointer;padding:15px 30px;transition:all .5s ease;color:#000;margin:0}.dropdown-simple .dropdown__options li:hover,.dropdown-simple .dropdown__options li.selected{background:#eee}.dropdown-simple .dropdown.disabled{cursor:not-allowed}.dropdown-simple .dropdown.disabled .dropdown__input{background-color:#f9f9f9;pointer-events:none;opacity:.6}.dropdown-simple .icon-success{color:#008048}.dropdown-simple .icon-error{color:#e22b25}.dropdown-simple p.form__tooltip{margin-top:0;font-size:.9em}.dropdown-simple .form__labelcontainer{display:block;width:100%;padding-bottom:.2em}.dropdown-simple .form__labelcontainer span{font-size:14px}@media (min-width: 992px){.dropdown-simple .form__labelcontainer span{font-size:11px}}.dropdown-simple .form__field-valid{border-radius:3px;background-color:#fff;border:solid 4px #008048}.dropdown-simple .form__field-valid:focus{outline:none;border-radius:3px;border:solid #fac05c;background-color:#fff;-moz-box-shadow:inset 0 0 0 4px #008048;-webkit-box-shadow:inset 0 0 0 4px #008048;box-shadow:inset 0 0 0 4px #008048}.dropdown-simple .form__field-invalid{border-radius:3px;background-color:#fff;border:solid #e22b25}.dropdown-simple .form__field-invalid:focus{-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.dropdown-simple .form__icon{padding-top:5px;padding-left:15px}.dropdown-simple .form__icon .icon-success{color:#008048}.dropdown-simple .form__icon .icon-error{color:#e22b25}@media (min-width: 1200px){.dropdown-simple .form__icon{padding-top:10px}}.dropdown-simple .form_error{color:#e22b25}.dropdown-simple .hidden,.dropdown-simple.hidden{display:none}.dropdown-simple .disabled-icons{width:100%} 757`],encapsulation:2});let e=t;return e})(),ore=Number.MAX_SAFE_INTEGER,rwe=(()=>{let t=class t{constructor(n){this.service=n,this.state={}}transform(n,o){if(o instanceof Array&&(o=o[0]),!(n instanceof Array)){let m=o.id||this.service.defaultId;return this.state[m]?this.state[m].slice:n}let r=o.totalItems&&o.totalItems!==n.length,a=this.createInstance(n,o),s=a.id,l,c,h=a.itemsPerPage;if(this.service.register(a),!r&&n instanceof Array){if(h=+h||ore,l=(a.currentPage-1)*h,c=l+h,this.stateIsIdentical(s,n,l,c))return this.state[s].slice;{let f=n.slice(l,c);return this.saveState(s,n,f,l,c),this.service.change.emit(s),f}}return this.saveState(s,n,n,l,c),n}createInstance(n,o){let r=o;return this.checkConfig(r),{id:r.id||this.service.defaultId(),itemsPerPage:+r.itemsPerPage||0,currentPage:+r.currentPage||1,totalItems:+r.totalItems||n.length}}checkConfig(n){let r=["itemsPerPage","currentPage"].filter(a=>!(a in n));if(0<r.length)throw new Error(`PaginatePipe: Argument is missing the following required properties: ${r.join(", ")}`)}saveState(n,o,r,a,s){this.state[n]={collection:o,size:o.length,slice:r,start:a,end:s}}stateIsIdentical(n,o,r,a){let s=this.state[n];return!s||!(s.size===o.length&&s.start===r&&s.end===a)?!1:s.slice.every((c,h)=>c===o[r+h])}};t.\u0275fac=function(o){return new(o||t)(O(_c,16))},t.\u0275pipe=et({name:"paginate",type:t,pure:!1,standalone:!1});let e=t;return e})();var Bs=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge]});let e=t;return e})(),awe=(()=>{let t=class t{constructor(){this.showAuthorImage=!0,this.socialLinks=!1}ngOnInit(){this.content.image?this.content.image.length>1&&(this.content.image={url:this.content.image[this.content.image.length-1].url,alt:this.content.image[this.content.image.length-1].alt}):this.content.image={url:null,alt:""};for(let n of this.content.socialLinks)n.link!=null&&n.link!=""&&(this.socialLinks=!0)}setDefaultPic(n){if(n.type==="error"){this.authorInitials="";let o=this.content.name.split(" ");o.length>0&&(o.length==1?this.authorInitials=o[0].charAt(0):this.authorInitials=o[0].charAt(0)+o[1].charAt(0)),this.showAuthorImage=!1}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-author-card"]],inputs:{content:"content"},standalone:!1,decls:9,vars:13,consts:[[1,"card","author-card",3,"ngClass"],[1,"author-card__profile",3,"ngClass"],[1,"author-card__profile--author-link",3,"href"],[1,"author-card__profile--author-link",3,"routerLink"],[1,"author-card__profile--author-link"],[1,"author-card__icon-list","dont-print",3,"ngClass"],["target","_blank",3,"href"],[1,"author-card__bio",3,"innerHTML"],[3,"src","alt"],[1,"author-card__profile--avatar"],[3,"ngClass"],[3,"error","src","alt"],[3,"class"]],template:function(o,r){o&1&&(p(0,"div",0)(1,"div",1),y(2,kj,6,11,"a",2),y(3,Tj,6,12,"a",3),y(4,Pj,3,2,"div",4),p(5,"div",5),X(6,Fj,2,3,"a",6,se),u()(),x(8,"div",7),u()),o&2&&(v("ngClass",z(7,yj,r.content.type==="author-page-content")),d(),v("ngClass",z(9,k0,!r.socialLinks)),d(),w(!r.content.useRouterLink&&r.content.type!=="author-page-content"?2:-1),d(),w(r.content.useRouterLink&&r.content.type!=="author-page-content"?3:-1),d(),w(r.content.type==="author-page-content"?4:-1),d(),v("ngClass",z(11,wj,r.content.type==="author-page-content")),d(),ee(r.content.socialLinks),d(2),v("innerHTML",r.content.body,ue))},dependencies:[Ce,tt,Mr],styles:['[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.author-card[_ngcontent-%COMP%]{display:inline-block;max-width:290px;border:1px solid rgb(229.5,229.5,229.5);border-left:none;padding:10px 10px 15px 15px;position:relative;border-radius:3px}.author-card[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .author-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 5px;font-family:Open Sans,Arial,Helvetica,"sans-serif"}.author-card[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{color:#00ab4e;font-weight:500}.author-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{color:#000}.author-card__profile[_ngcontent-%COMP%]{position:relative;min-height:50px;padding-left:50px;padding-bottom:30px;margin-bottom:10px}.author-card__profile[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .author-card__profile[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:5px;overflow:hidden;margin-right:5px;font-weight:400}.author-card__profile[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{padding-top:30px}@media (min-width: 992px){.author-card__profile[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{padding-top:0}}.author-card__profile[_ngcontent-%COMP%] h6.no-social-links[_ngcontent-%COMP%]{padding-top:30px}.author-card__profile[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:50%;position:absolute;top:0;left:0}
757.author-card__profile--avatar[_ngcontent-%COMP%]{display:block;border-radius:50%;top:50%;left:0;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:40px;height:40px;line-height:40px;background-color:#f9f9f9;font-family:Open Sans,Arial,Helvetica,"sans-serif";font-weight:600;text-align:center;position:absolute}@media (min-width: 992px){.author-card__profile--avatar[_ngcontent-%COMP%]{font-size:30px;line-height:65px;width:68px;height:68px}}.author-card__profile.no-social-links[_ngcontent-%COMP%]{margin-bottom:0}.author-card__bio[_ngcontent-%COMP%]{text-align:justify;overflow:hidden;font-weight:400}.author-card__icon-list[_ngcontent-%COMP%]{position:absolute;bottom:-15px;left:0;white-space:nowrap;padding-bottom:10px;padding-top:5px}.author-card__icon-list[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}.author-card__icon-list[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:20px;color:#000;margin-right:8px}.author-card__icon-list.no-author-name[_ngcontent-%COMP%]{bottom:-10px}.author-card[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;bottom:0;left:0;width:4px;background-color:#00ab4e;border-radius:3px 0 0 3px}@media (min-width: 992px){.author-card[_ngcontent-%COMP%]{max-width:758px;padding:15px 15px 15px 19px}.author-card__profile[_ngcontent-%COMP%]{position:relative;min-height:68px;padding-left:78px;padding-bottom:10px;margin-bottom:0}.author-card__profile[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{margin-bottom:0}.author-card__profile[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:68px;height:68px}.author-card__icon-list[_ngcontent-%COMP%]{position:relative;bottom:-10px}}@media (min-width: 1200px){.author-card__bio[_ngcontent-%COMP%]{text-align:-webkit-auto}}.author-card.author-page-content[_ngcontent-%COMP%]{border:none;border-left:none;padding-left:0}.author-card.author-page-content[_ngcontent-%COMP%]:before{display:none}.author-card.author-page-content[_ngcontent-%COMP%] .author-card__profile[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding-top:5px}']});let e=t;return e})(),swe=(()=>{let t=class t{constructor(){this.sectionContent={tag:"",image:{url:"",alt:""},type:"",footerTextTop:"",footerTextBottom:""},this.showAuthorImage=!0}ngOnInit(){this.setFooterContent()}setFooterContent(){let n=this.content.technicalResourceType&&this.content.technicalResourceType.length&&this.content.technicalResourceType[0].name&&this.content.technicalResourceType[0].name!==""?this.content.technicalResourceType[0].name.toLowerCase().replace(/ /g,"-"):"article";this.content.course&&this.content.course.level.length>0?this.sectionContent={tag:"Level "+this.content.course.level,image:{url:this.content.image?this.content.image.url:null,alt:this.content.image?this.content.image.alt:null},type:n,footerTextTop:this.content.course.duration,footerTextBottom:this.content.course.cost}:this.sectionContent={tag:this.content.technicalResourceType&&this.content.technicalResourceType.length&&this.content.technicalResourceType[0].name&&this.content.technicalResourceType[0].name!==""?this.content.technicalResourceType[0].name:"Article",image:{url:this.content.author&&this.content.author[0]&&this.content.author[0].image?this.content.author[0].image.url:null,alt:this.content.author&&this.content.author[0]&&this.content.author[0].image?this.content.author[0].image.alt:""},type:n,footerTextTop:this.content.author&&this.content.author[0]?this.content.author[0].title:"Author Unknown",footerTextBottom:this.content.date?this.content.date:null}}setDefaultPic(n){if(n.type==="error"){this.authorInitials="";let o=this.sectionContent.footerTextTop.split(" ");o.length>0&&(o.length==1?this.authorInitials=o[0].charAt(0):this.authorInitials=o[0].charAt(0)+o[1].charAt(0)),this.showAuthorImage=!1}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-horizontal-card"]],inputs:{content:"content"},standalone:!1,decls:2,vars:2,consts:[[3,"class"],[3,"routerLink","class"],[1,"container"],[1,"row"],[1,"col-xs-12","col-sm-6"],[3,"href"],[1,"horizontal-card__image",3,"backgroundImage"],[1,"horizontal-card__container"],[1,"card__tag","horizontal-card__tag"],[1,"card__tag","card__tag--sponsor"],[1,"horizontal-card__content"],[1,"horizontal-card__content--summary",3,"innerHTML"],[1,"card__footer","horizontal-card__footer","horizontal-card__footer"],[1,"card__footer__c
757ontent","horizontal-card__footer__content",3,"ngClass"],[1,"horizontal-card__author-link",3,"href"],[3,"src","alt"],[1,"horizontal-card__footer--avatar"],[1,"small"],[1,"horizontal-card__image"],[3,"error","src","alt"],[3,"routerLink"],[1,"horizontal-card__author-link",3,"routerLink"]],template:function(o,r){o&1&&(y(0,zj,29,30,"div",0),y(1,Uj,27,30,"a",1)),o&2&&(w(r.content.useRouterLink?-1:0),d(),w(r.content.useRouterLink?1:-1))},dependencies:[Ce,tt,tn,Mr,Hp],styles:['[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.horizontal-card[_ngcontent-%COMP%]{max-width:1060px;border-bottom:2px solid rgb(229.5,229.5,229.5);margin:6px;transition:all .3s ease-in-out;display:flex;flex-direction:column}.horizontal-card__container[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;width:100%}.horizontal-card__image[_ngcontent-%COMP%]{position:relative;display:block;background-size:cover;background-position:center;height:160px}.horizontal-card__content[_ngcontent-%COMP%]{padding:4px 0}.horizontal-card__content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:10px 0 5px}.horizontal-card__content[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .horizontal-card__content[_ngcontent-%COMP%] .horizontal-card__footer--avatar[_ngcontent-%COMP%]{font-family:acumin-pro-wide,Arial}.horizontal-card__content--summary[_ngcontent-%COMP%]{font-weight:400;color:#000}.horizontal-card__tag[_ngcontent-%COMP%]{position:absolute;top:-4px;left:4px;transform:translateY(-100%)}.horizontal-card__footer[_ngcontent-%COMP%]{padding-bottom:10px;padding-top:10px;margin-top:auto}.horizontal-card__footer__content[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-family:acumin-pro-wide,Arial;overflow:hidden;margin-right:10px}.horizontal-card__footer__content--image[_ngcontent-%COMP%]{padding-left:50px}.horizontal-card__footer__content--image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block}.horizontal-card__footer--avatar[_ngcontent-%COMP%]{display:block;border-radius:50%;top:50%;left:0;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:39px;height:39px;line-height:40px;background-color:#f9f9f9;font-family:Open Sans,Arial,Helvetica,"sans-serif";font-weight:600;text-align:center;position:absolute}@media (min-width: 992px){.horizontal-card__footer--avatar[_ngcontent-%COMP%]{font-size:20px}}.horizontal-card[_ngcontent-%COMP%]:focus, .horizontal-card[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 5px 10px #0003;text-decoration:none}@media (min-width: 992px){.horizontal-card[_ngcontent-%COMP%]{max-width:1060px;border:1px solid rgb(229.5,229.5,229.5)}.horizontal-card__image[_ngcontent-%COMP%]{margin-right:10px;height:100%;min-height:290px;width:100%}.horizontal-card__container[_ngcontent-%COMP%]{margin:20px 20px 20px 10px;height:calc(100% - 40px);padding-top:0;width:100%}.horizontal-card__tag[_ngcontent-%COMP%]{position:relative;transform:none;top:0;left:0}.horizontal-card__content[_ngcontent-%COMP%]{padding:10px 10px 10px 0}.horizontal-card__footer[_ngcontent-%COMP%]{padding:10px;bottom:0;left:0}}@media (min-width: 1200px){.horizontal-card[_ngcontent-%COMP%]{margin:10px;border-radius:3px;max-width:1018px}.horizontal-card__image[_ngcontent-%COMP%]{position:relative}.horizontal-card__image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:0 3px 3px 0}.horizontal-card__image[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{bottom:10px;left:10px}}.container[_ngcontent-%COMP%]{width:100%}']});let e=t;return e})(),rre=(()=>{let t=class t{transform(n){if(n instanceof Array)return n.forEach((o,r)=>{r===0&&!o.charAt(0).match(/[a-z]/i)&&(n[r]="..."+o)}),n}};t.\u0275fac=function(o){return new(o||t)},t.\u0275pipe=et({name:"ellipsisPrepend",type:t,pure:!0,standalone:!1});let e=t;return e})(),are=(()=>{let t=class t{transform(n){if(n&&n.length){let o=[];return n instanceof Array?(n.forEach(r=>{r&&r.length?o.push(r.replace(/<(?!\/?b>|\/?strong>)[^>]+>/g,"")):o.push("")}),o):n&&n.length?n.replace(/<(?!\/?b>|\/?strong>)[^>]+>/g,""):""}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275pipe=et({name:"keepSomeHtml",type:t,pure:!0,standalone:!1});let e=t;return e})(),lwe=(()=>{let t=class t{constructor(){this.label=""}ngOnInit(){this.setLabel()}setLabel(){let n=[{name:"application/msword",label:"Word"},{name:"application/pdf",label:"PDF"},{name:"application/rtf",label:"Word"},{name:"application/vnd.ms-excel",label:"Excel"},{name:"application/vnd.ms-powerpoint",label:"Powerpoint"},{name:"application/vnd.oasis.opendocument.spreadsheet",label:"Excel"},{name:"application/vnd.oasis.opendocument.text",label:"Word"},{name:"application/vnd.openxmlformats-officedocument.presentationml.presentation",label:"Powerpoint"},{name:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",label:"Excel"},{name:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",label:"Word"},{name:"audio/mpeg",label:"Audio"},{name:"audio/ogg",label:"Audio"},{name:"text/csv",label:"Excel"},{name:"text/plain",label:"Word"},{name:"application/x-shockwave-flash",label:"Video"},{name:"video/x-flv",label:"Video"},{name:"video/mpeg",label:"Video"},{name:"video/quicktime",label:"Video"}];if(this.content.mimeType){let o=n.find(r=>r.name===this.content.mimeType);o&&(this.label=o.label)}else this.content.friendlyType&&(this.label=this.content.friendlyType)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-standard-card"]],inputs:{content:"content"},standalone:!1,decls:2,vars:2,consts:[["fallbackTitle",""],["fallbackSummary",""],["summaryFallback",""],["class","card standard-card",3,"href",4,"ngIf"],["class","card standard-card",3,"routerLink",4,"ngIf"],[1,"card","standard-card",3,"href"],[1,"row"],[1,"col-xs-12"],[1,"standard-card__container"],["class","card__tag standard-card__tag",4,"ngIf"],["class","card__tag card__tag--sponsor",4,"ngIf"],[1,"standard-card__content"],[3,"innerHTML",4,"ngIf","ngIfElse"],["class","standard-card__content--summary",3,"innerHTML",4,"ngIf","ngIfElse"],[1,"card__tag","standard-card__tag"],[1,"card__tag","card__tag--sponsor"],[3,"innerHTML"],[1,"standard-card__content--summary",3,"innerHTML"],[1,"card","standard-card",3,"routerLink"]],template:function(o,r){o&1&&V(0,Qj,14,8,"a",3)(1,iW,15,9,"a",4),o&2&&(v("ngIf",!r.content.useRouterLink),d(),v("ngIf",r.content.useRouterLink))},dependencies:[Ni,tt,rre,are],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.standard-card[_ngcontent-%COMP%]{width:100%;margin:6px auto;transition:all .3s ease-in-out}.standard-card__container[_ngcontent-%COMP%]{position:relative;margin-right:10px;display:flex;flex-direction:column;height:100%}.standard-card__tag[_ngcontent-%COMP%]{background:#a0aef0;color:#000}.standard-card__content[_ngcontent-%COMP%]{padding:10px 0}
757.standard-card__content[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-family:acumin-pro-wide,Arial;transition:all .3s ease-in-out}.standard-card__content--summary[_ngcontent-%COMP%]{font-weight:400;color:#000;min-height:50px}.standard-card[_ngcontent-%COMP%]:focus, .standard-card[_ngcontent-%COMP%]:hover{text-decoration:none}@media (min-width: 992px){.standard-card[_ngcontent-%COMP%]{max-width:758px}.standard-card__container[_ngcontent-%COMP%]{margin:0 auto;padding-top:0}.standard-card__content[_ngcontent-%COMP%]{padding:10px 10px 10px 0}}@media (min-width: 1200px){.standard-card[_ngcontent-%COMP%]{margin:10px auto;max-width:900px;border-radius:3px}.standard-card__container[_ngcontent-%COMP%]{margin-top:0}}"]});let e=t;return e})(),cwe=(()=>{let t=class t{constructor(){this.sectionContent={tag:"",image:{url:"",alt:""},type:"",footerTextTop:"",footerTextBottom:""},this.showAuthorImage=!0}ngOnInit(){this.setFooterContent()}setFooterContent(){let n=this.content.technicalResourceType&&this.content.technicalResourceType.length&&this.content.technicalResourceType[0].name&&this.content.technicalResourceType[0].name!==""?this.content.technicalResourceType[0].name.toLowerCase().replace(/ /g,"-"):"article";this.content.course&&this.content.course.level.length>0?this.sectionContent={tag:"Level "+this.content.course.level,image:{url:this.content.image?this.content.image.url:null,alt:this.content.image?this.content.image.alt:null},type:n,footerTextTop:this.content.course.duration,footerTextBottom:this.content.course.cost}:this.sectionContent={tag:this.content.technicalResourceType&&this.content.technicalResourceType.length&&this.content.technicalResourceType[0].name&&this.content.technicalResourceType[0].name!==""?this.content.technicalResourceType[0].name:"Article",image:{url:this.content.author&&this.content.author[0]&&this.content.author[0].image?this.content.author[0].image.url:null,alt:this.content.author&&this.content.author[0]&&this.content.author[0].image?this.content.author[0].image.alt:""},type:n,footerTextTop:this.content.author&&this.content.author[0]?this.content.author[0].title:"Author Unknown",footerTextBottom:this.content.date?this.content.date:null}}setDefaultPic(n){if(n.type==="error"){this.authorInitials="";let o=this.sectionContent.footerTextTop.split(" ");o.length>0&&(o.length===1?this.authorInitials=o[0].charAt(0):this.authorInitials=o[0].charAt(0)+o[1].charAt(0)),this.showAuthorImage=!1}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-text-card"]],inputs:{content:"content"},standalone:!1,decls:2,vars:2,consts:[[3,"href","class"],[3,"routerLink","class"],[3,"href"],[1,"card__tag","text-card__tag"],[1,"card__tag","card__tag--sponsor"],[1,"text-card__content"],[1,"text-card__content--summary",3,"innerHTML"],[1,"card__footer","text-card__footer","text-card__footer"],[1,"card__footer__content","text-card__footer__content",3,"ngClass"],[1,"text-card__author-link",3,"href"],[3,"src","alt"],[1,"text-card__footer--avatar"],[1,"small"],[3,"error","src","alt"],[3,"routerLink"],[1,"text-card__author-link",3,"routerLink"]],template:function(o,r){o&1&&(y(0,aW,21,27,"a",0),y(1,dW,21,29,"a",1)),o&2&&(w(r.content.useRouterLink?-1:0),d(),w(r.content.useRouterLink?1:-1))},dependencies:[Ce,tt,tn,Mr,Hp],styles:['[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.text-card[_ngcontent-%COMP%]{border-bottom:2px solid rgb(229.5,229.5,229.5);margin:6px;transition:all .3s ease-in-out;height:100%;display:flex;flex-direction:column}.text-card__content[_ngcontent-%COMP%]{padding:10px 0 0}.text-card__content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:10px 0 5px}.text-card__content[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .text-card__content[_ngcontent-%COMP%] .text-card__footer--avatar[_ngcontent-%COMP%]{font-family:acumin-pro-wide,Arial}.text-card__content--summary[_ngcontent-%COMP%]{font-weight:400;color:#000}.text-card__footer[_ngcontent-%COMP%]{padding-bottom:10px;padding-top:10px;margin-top:auto}
757.text-card__footer__content[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-family:acumin-pro-wide,Arial;overflow:hidden;margin-right:10px}.text-card__footer__content--image[_ngcontent-%COMP%]{padding-left:50px}.text-card__footer__content--image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block}.text-card__footer--avatar[_ngcontent-%COMP%]{display:block;border-radius:50%;top:50%;left:0;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:39px;height:39px;line-height:40px;background-color:#f9f9f9;font-family:Open Sans,Arial,Helvetica,"sans-serif";font-weight:600;text-align:center;position:absolute}@media (min-width: 992px){.text-card__footer--avatar[_ngcontent-%COMP%]{font-size:20px}}.text-card[_ngcontent-%COMP%]:focus, .text-card[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 5px 10px #0003;text-decoration:none}@media (min-width: 992px){.text-card[_ngcontent-%COMP%]{border:1px solid rgb(229.5,229.5,229.5);padding:10px;height:90%}.text-card__footer[_ngcontent-%COMP%]{padding:10px 0 0}}@media (min-width: 1200px){.text-card[_ngcontent-%COMP%]{margin:10px;border-radius:3px}.text-card__image[_ngcontent-%COMP%]{position:relative}.text-card__image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:0 3px 3px 0}.text-card__image[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{bottom:10px;left:10px}.text-card__footer[_ngcontent-%COMP%]{margin-top:auto}}']});let e=t;return e})(),Vs=(()=>{let t=class t{transform(n,o,r="strong"){if(!o||!n)return n;let a=30;if(n.length>a+a+o.length){let l=n.toLowerCase().indexOf(o),c=l-a<0?"":"...",h=l+o.length+a<n.length?"...":"";n=c+n.substring(l-a,l+o.length+a)+h}let s=new RegExp("("+o+")","gi");return n.replace(s,"<"+r+">"+o+"</"+r+">")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275pipe=et({name:"textHighlight",type:t,pure:!0,standalone:!1});let e=t;return e})(),Hs=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({});let e=t;return e})(),hE=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({});let e=t;return e})(),sre=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({});let e=t;return e})(),lre=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({});let e=t;return e})(),gE=(()=>{let t=class t{transform(n,o){return n==="trainingprovider"?"training provider":n}};t.\u0275fac=function(o){return new(o||t)},t.\u0275pipe=et({name:"groupName",type:t,pure:!0,standalone:!1});let e=t;return e})(),cre=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({providers:[gE]});let e=t;return e})(),yc=(()=>{let t=class t{transform(n,o){let r=n&&n.value?n.value:n,a=P0.find(s=>s.id===r);return a?a.name:null}};t.\u0275fac=function(o){return new(o||t)},t.\u0275pipe=et({name:"countryName",type:t,pure:!0,standalone:!1});let e=t;return e})(),dre=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({providers:[yc]});let e=t;return e})(),ure=(()=>{let t=class t{transform(n,o){return n.replace(n,"*".repeat(n.length-o)+n.slice(-o))}};t.\u0275fac=function(o){return new(o||t)},t.\u0275pipe=et({name:"textToStars",type:t,pure:!0,standalone:!1});let e=t;return e})(),dwe=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({providers:[ure]});let e=t;return e})(),uwe=(()=>{let t=class t{transform(n){return Nc(n)?n.pipe(J(o=>({loading:o.loading,value:o.loading?o.value:o})),he(o=>Q({loading:!1,error:o}))):n}};t.\u0275fac=function(o){return new(o||t)},t.\u0275pipe=et({name:"withLoading",type:t,pure:!0,standalone:!1});let e=t;return e})(),pwe=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({});let e=t;return e})(),mE=(()=>{let t=class t{transform(n){return typeof n}};t.\u0275fac=function(o){return new(o||t)},t.\u0275pipe=et({name:"typeof",type:t,pure:!0,standalone:!1});let e=t;return e})(),pre=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({providers:[mE]});let e=t;return e})(),fE=(()=>{let t=class t{transform(n){return n.toLowerCase().replace(/(?:^|[\s-/])\w/g,function(o){return o.toUpperCase()})}};t.\u0275fac=function(o){return new(o||t)},t.\u0275pipe=et({name:"titleCaseWithHyphen",type:t,pure:!0,standalone:!1});let e=t;return e})(),hre=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({providers:[fE]});let e=t;return e})(),vE=(()=>{let t=class t{transform(n,o){if(n)return n.replace(/(^\w+:|^)\/\//,"")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275pipe=et({name:"prettyUrl",type:t,pure:!0,standalone:!1});let e=t;return e})(),gre=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({providers:[vE]});let e=t;return e})();var H0=["","one ","two ","three ","four ","five ","six ","seven ","eight ","nine ","ten ","eleven ","twelve ","thirteen ","fourteen ","fifteen ","sixteen ","seventeen ","eighteen ","nineteen "],mre=["","","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"],fre=e=>H0[e],vre=e=>{let t=Math.floor(e/10),i=e%10;return mre[t]+(i>0?" "+H0[i]:"")},Cre=e=>{if(e===0)return"";let t="",i=Math.floor(e/100),n=e%100;return i>0&&(t+=H0[i]+"hundred "),n>0&&(i>0&&(t+="and "),n>=20?t+=vre(n):t+=fre(n)),t.trim()};function hwe(e){let t=Number(e);if(isNaN(t))return"";if(t===0)return"zero";
757let i=["","thousand","million","billion","trillion"],n=t.toString(),o=[];for(let a=n.length;a>0;a-=3){let s=Math.max(0,a-3);o.unshift(Number(n.substring(s,a)))}let r="";for(let a=0;a<o.length;a++){if(o[a]===0)continue;let s=o.length-1-a,l=Cre(o[a]);l&&(r+=l+" ",s>0&&(r+=i[s]+" "))}return r.trim()}var bn=(()=>{let t=class t{transform(n){return n}};t.\u0275fac=function(o){return new(o||t)},t.\u0275pipe=et({name:"formControl",type:t,pure:!0});let e=t;return e})(),bre=(()=>{let t=class t{transform(n){return n}};t.\u0275fac=function(o){return new(o||t)},t.\u0275pipe=et({name:"formGroup",type:t,pure:!0});let e=t;return e})(),_re=(()=>{let t=class t{constructor(n){this.inputTextValidatorService=n,this.value="",this.hasError=!1,this.update=new L,this.inputText="",this.inputType="text",this.pristineInput=!0,this.focusedInput=!1,this.requiredInput=!1,this.dirtyInput=!1,this.validInput=!1,this.onChange=o=>{},this.onTouched=()=>{}}ngOnInit(){this.value&&(this.inputText=this.value),typeof this.content.label<"u"&&!this.content.required&&(this.content.label+=" (optional)"),this.requiredInput=this.content.required,this.content.codeType==="Email"&&(this.inputType="email"),(this.content.codeType==="Password"||this.content.codeType==="PasswordChoice")&&(this.inputType="password")}inputChange(n){this.inputText=n.target.value,this.pristineInput=!1,this.dirtyInput=!0,this.inputText===""&&(this.dirtyInput=!1,this.validInput=!1),this.writeValue(n.target.value)}inputFocus(n){typeof n.target<"u"&&typeof n.target.name<"u"&&(this.focusedInput=!0,this.pristineInput=!1),this.writeValue(n.target.value)}inputBlur(n){this.inputText=n.target.value,this.focusedInput=!(typeof n.target<"u"&&typeof n.target.name<"u"),this.writeValue(n.target.value),this.inputText!==""&&(this.dirtyInput=!0,this.pristineInput=!1)}writeValue(n){if(this.value=n,!this.pristineInput){switch(this.content.codeType){case"Alpha":this.validationResult=this.inputTextValidatorService.validateAlphaType(n,this.content.label.toLowerCase());break;case"AlphaNumeric":this.validationResult=this.inputTextValidatorService.validateAlphaNumericType(n),this.validationResult.blankMessage=this.content.id==="company"?"Enter the name of your company":this.validationResult.blankMessage;break;case"AlphaText":this.validationResult=this.inputTextValidatorService.validateAlphaTextType(n,this.content.label.toLowerCase());break;case"Email":this.validationResult=this.inputTextValidatorService.validateEmail(n);break;case"Telephone":this.validationResult=this.inputTextValidatorService.validatePhoneNumber(n);break;case"Number":this.validationResult=this.inputTextValidatorService.validateNumberType(n,!1);break;case"Decimal":this.validationResult=this.inputTextValidatorService.validateNumberType(n,!0);break;case"Postcode":this.validationResult=this.inputTextValidatorService.validatePostcode(n);break;case"Password":this.validationResult={valid:!0};break;case"PasswordChoice":this.validationResult=this.inputTextValidatorService.validatePasswordChoice(n);break;case"DateText":this.validationResult=this.inputTextValidatorService.validateDateBirth(n);break}this.validInput=this.validationResult.valid,this.validInput?(this.onChange(n),this.update&&this.update.emit(this.inputText)):this.onChange(null)}}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}};t.\u0275fac=function(o){return new(o||t)(O(Ls))},t.\u0275cmp=U({type:t,selectors:[["fab-input-text"]],inputs:{content:"content",value:"value",hasError:"hasError"},outputs:{update:"update"},standalone:!1,features:[St([{provide:Zt,useExisting:Wt(()=>t),multi:!0},Ls])],decls:13,vars:21,consts:[[1,"form-input-text"],[1,"row"],[1,"col-md-8","col-sm-10","col-xs-10"],[3,"for"],[1,"row","form-fieldcontainer"],[1,""],[1,"form-control",3,"focus","blur","keyup","change","ngClass","name","id","type","value","placeholder"],[1,"col-md-1","col-xs-2"],[1,"form__icon"],[3,"ngClass"],[1,"form__labelcontainer"],[1,"row","form__feedbackcontainer"],[1,"form__tooltip"]],template:function(o,r){o&1&&(p(0,"div",0)(1,"div",1)(2,"div",2),y(3,pW,3,3,"label",3),u()(),p(4,"div",4)(5,"div",2)(6,"div",5)(7,"input",6),T("focus",function(s){return r.inputFocus(s)})("blur",function(s){return r.inputBlur(s)})("keyup",function(s){return r.inputChange(s)})("change",function(s){return r.inputChange(s)}),u()()(),p(8,"div",7)(9,"div",8),x(10,"i",9),u()()(),y(11,mW,4,2,"div"),y(12,fW,5,1,"div"),u()),o&2&&(d(3),w(r.content.label?3:-1),d(4),v("name",ne(r.content.id))("id",ne(r.content.id))("type",ne(r.inputType))("placeholder",ne(r.content.placeholder))("ngClass",Re(15,wc,r.validInput&&r.dirtyInput&&!r.pristineInput,r.hasError||r.dirtyInput&&!r.validInput&&!r.focusedInput||!r.dirtyInput&&!r.focusedInput&&!r.pristineInput&&r.requiredInput))("value",r.value),Ve("maxlength",r.content.maxLen),d(3),v("ngClass",Re(18,uW,r.hasError||r.dirtyInput&&!r.validInput&&!r.focusedInput&&!r.pristineInput||!r.dirtyInput&&!r.focusedInput&&!r.pristineInput&&r.requiredInput,r.dirtyInput&&r.validInput&&!r.focusedInput&&!r.pristineInput&&!r.hasError)),d(),w(!r.focusedInput&&!r.validInput&&(r.validationResult!=null&&r.validationResult.validationMessage&&(r.validationResult==null?null:r.validationResult.validationMessage)!==""||r.validationResult!=null&&r.validationResult.blankMessage&&(r.validationResult==null?null:r.validationResult.blankMessage)!=="")?11:-1),d(),w(r.content.toolTip?12:-1))},dependencies:[Ce],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.hidden{display:none}input:focus{outline:none}input.form-control{box-sizing:border-box;display:inline-block;width:100%;font-size:16px;padding:6px;border:2px solid rgb(229.5,229.5,229.5)}input.form-control:focus{outline:none;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;border:solid #fac05c}input.form-control.form__field-valid{border-radius:3px;background-color:#fff;border:solid 4px #008048}input.form-control.form__field-valid:focus{outline:none;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;border:solid #fac05c;background-color:#fff;-moz-box-shadow:inset 0 0 0 4px #008048;-webkit-box-shadow:inset 0 0 0 4px #008048;box-shadow:inset 0 0 0 4px #008048}input.form-control.form__field-invalid{-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;background-color:#fff;border:solid #e22b25}input.form-control.form__field-invalid:focus{-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.form__feedbackcontainer div{margin-bottom:.5em;margin-top:.7em;font-size:.8em;font-weight:600;color:#e22b25}p.form__tooltip{margin:0;font-size:.9em}.form__labelcontainer{display:block;width:100%;padding-bottom:.2em}.form__labelcontainer span{font-size:14px}@media (min-width: 992px){.form__labelcontainer span{font-size:11px}}.icon-success{color:#008048}.icon-error{color:#e22b25}.form__icon{padding-left:15px;padding-top:8px} 758`],encapsulation:2});let e=t;return e})(),yre=(()=>{let t=class t{get regex(){return new RegExp(`[${this.charsToRemove??""}]`,"g")}constructor(){this.el=xe($t),this.renderer=xe(Rn)}onInput(){if(!this.charsToRemove)return;let n=this.el.nativeElement,o=n.value,r=o.replace(this.regex,"");o!==r&&(this.renderer.setProperty(n,"value",r),this.emitInputEvent(n))}onPaste(n){if(!this.charsToRemove)return;n.preventDefault();let a=(n.clipboardData?.getData("text/plain")??"").replace(this.regex,""),s=this.el.nativeElement,l=s.selectionStart,c=s.selectionEnd;if(l!==null&&c!==null){let h=s.value,m=[h.slice(0,l),a,h.slice(c)].join("").slice(0,s.maxLength);this.renderer.setProperty(s,"value",m),this.setSelectionRange(s,l,a.length),this.emitInputEvent(s)}}setSelectionRange(n,o,r){let a=o+r;this.renderer.selectRootElement(n).setSelectionRange(a,a)}emitInputEvent(n){let o=new Event("input",{bubbles:!0});n.dispatchEvent(o)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=di({type:t,selectors:[["","removeCharacters",""]],hostBindings:function(o,r){o&1&&T("input",function(s){return r.onInput(s)})("paste",function(s){return r.onPaste(s)})},inputs:{charsToRemove:[0,"removeCharacters","charsToRemove"]}});let e=t;return e})(),to=(()=>{let t=class t{constructor(n){this.inputTextValidatorService=n,this.inputType="text",this.requiredInput=!1,this.value="",this.focus=!1,this.onChange=o=>{},this.onTouched=()=>{}}ngOnInit(){this.requiredInput=this.content.required,this.content.codeType==="Email"&&(this.inputType="email"),(this.content.codeType==="Password"||this.content.codeType==="PasswordChoice"||this.content.validationMessage==="Enter your password")&&(this.inputType="password"),this.content.codeType==="Number"&&(this.inputType="number"),this.updatedValidators()}onModelChange(n){this.updatedValidators()}updatedValidators(){switch(this.content.codeType){case"Alpha":this.requiredInput?this.formControl.addValidators([this.AlphaValidator(),fe.required]):this.formControl.addValidators([this.AlphaValidator()]);break;case"AlphaNumeric":this.requiredInput?this.formControl.addValidators([this.AlphaNumericValidator(),fe.required]):this.formControl.addValidators([this.AlphaNumericValidator()]);break;case"AlphaText":this.requiredInput?this.formControl.addValidators([this.AlphaTextValidator(),fe.required]):this.formControl.addValidators([this.AlphaTextValidator()]);break;case"Email":this.requiredInput?this.formControl.addValidators([this.EmailValidator(),fe.required]):this.formControl.addValidators([this.EmailValidator()]);break;case"Website":this.requiredInput?this.formControl.addValidators([this.WebsiteValidator(),fe.required]):this.formControl.addValidators([this.WebsiteValidator()]);break;case"Telephone":this.requiredInput?this.formControl.addValidators([this.PhoneNumberValidator(),fe.required]):this.formControl.addValidators([this.PhoneNumberValidator()]);break;case"Number":case"Numeric":this.requiredInput?this.formControl.addValidators([this.NumberValidator(),fe.required]):this.formControl.addValidators([this.NumberValidator()]);break;case"Decimal":this.requiredInput?this.formControl.addValidators([this.NumberValidator(!0),fe.required]):this.formControl.addValidators([this.NumberValidator(!0)]);break;case"Postcode":this.requiredInput?this.formControl.addValidators([this.PostCodeValidator(),fe.required]):this.formControl.addValidators([this.PostCodeValidator()]);break;case"Password":this.requiredInput?this.formControl.addValidators([this.PassWordValidator(),fe.required]):this.formControl.addValidators([this.PassWordValidator()]);break;case"PasswordChoice":this.requiredInput?this.formControl.addValidators([this.PasswordChoiceValidator(),fe.required]):this.formControl.addValidators([this.PasswordChoiceValidator()]);break;case"DateBirthText":this.requiredInput?this.formControl.addValidators([this.DateBirthTextValidator(),fe.required]):this.formControl.addValidators([this.DateBirthTextValidator()]);break;case"FutureDateText":this.requiredInput?this.formControl.addValidators([this.FutureDateTextValidator(),fe.required]):this.formControl.addValidators([this.FutureDateTextValidator()]);break;case"SortCode":this.requiredInput?this.formControl.addValidators([this.SortCodeTextValidator(),fe.required]):this.formControl.addValidators([this.SortCodeTextValidator()]);break;case"AccountNumber":this.requiredInput?this.formControl.addValidators([this.AccountNumberTextValidator(),fe.required]):this.formControl.addValidators([this.AccountNumberTextValidator()]);break;case"PaymentCode":this.requiredInput?this.formControl.addValidators([this.PaymentCodeTextValidator(),fe.required]):this.formControl.addValidators([this.PaymentCodeTextValidator()]);break;case"NoValidation":this.validationResult={valid:!0,blankMessage:this.content.validationMessage},this.requiredInput&&this.formControl.addValidators([fe.required]);break}}writeValue(n){this.value=n}pushChanges(n){this.onChange(n.value)}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}showPassword(){this.inputType="text"}hidePassword(){this.inputType="password"}inputFocus(n,o){this.focus=!0}inputBlur(n,o){this.formControl.markAsTouched({onlySelf:!0}),this.focus=!1,this.checkSortCode()}checkSortCode(){this.formControl.valid&&typeof this.formControl.value=="string"&&!this.formControl.value.includes("-")&&this.content.codeType==="SortCode"&&(this.value=this.formControl.value.substring(0,2)+"-"+this.formControl.value.substring(2,4)+"-"+this.formControl.value.substring(4,6))}onPaste(n){this.content.confirmationField&&n.preventDefault()}AlphaValidator(){return n=>(this.validationResult=this.inputTextValidatorService.validateAlphaType(n.value,this.content.label.toLowerCase().replace(/<\/?[^>]+(>|$)/g,"")),this.validationResult.blankMessage=this.content.validationBlankMessage?this.content.validationBlankMessage:this.validationResult.blankMessage,!n.value||n.value==""||this.validationResult.valid?null:{formControlValidationErrors:{value:this.content.validationMessage||this.validationResult.validationMessage}})}NumberValidator(n=!1){return o=>(this.validationResult=this.inputTextValidatorService.validateNumberType(o.value,n),o.value!==void 0&&o.value!==null&&o.value!==""&&((this.content.min!==void 0&&Number(o.value)<this.content.min||this.content.max!==void 0&&Number(o.value)>this.content.max)&&(this.validationResult.validationMessage=this.content.validationMessage,this.validationResult.valid=!1),this.content.minLen!==void 0&&this.content.maxLen!==void 0&&((o.value.length<this.content.minLen||o.value.length>this.content.maxLen)&&(this.validationResult.validationMessage=this.content.validationMessage,this.validationResult.valid=!1),this.content.maxLen&&
758(this.value=this.value&&this.value.slice?this.value.slice(0,this.content.maxLen):""))),this.validationResult.blankMessage=this.content.validationBlankMessage?this.content.validationBlankMessage:this.validationResult.blankMessage,o.value===void 0||o.value===null||o.value===""||this.validationResult.valid?null:{formControlValidationErrors:{value:this.content.validationMessage||this.validationResult.validationMessage}})}AlphaNumericValidator(){return n=>(this.validationResult=this.inputTextValidatorService.validateAlphaNumericType(n.value),this.content.validationBlankMessage?this.validationResult.blankMessage=this.content.validationBlankMessage:this.validationResult.blankMessage=this.content.id==="company"?"Enter the name of your company":this.validationResult.blankMessage,n.value===""&&(this.validationResult.valid=!1),!n.value||n.value==""||this.validationResult.valid?null:{formControlValidationErrors:{value:this.validationResult.validationMessage}})}AlphaTextValidator(){return n=>(this.validationResult=this.inputTextValidatorService.validateAlphaTextType(n.value,this.content.label.toLowerCase().replace(/<\/?[^>]+(>|$)/g,"")),this.validationResult.blankMessage=this.content.validationBlankMessage?this.content.validationBlankMessage:this.validationResult.blankMessage,!n.value||n.value==""||this.validationResult.valid?null:{formControlValidationErrors:{value:this.content.validationMessage||this.validationResult.validationMessage}})}EmailValidator(){return n=>(this.validationResult=this.inputTextValidatorService.validateEmail(n.value),!n.value||n.value==""||this.validationResult.valid?null:{formControlValidationErrors:{value:this.content.validationMessage??this.validationResult.validationMessage,requiredValue:this.content.validationBlankMessage??this.validationResult.blankMessage}})}WebsiteValidator(){return n=>(this.validationResult=this.inputTextValidatorService.validateWebsite(n.value),!n.value||n.value==""||this.validationResult.valid?null:{formControlValidationErrors:{value:this.validationResult.validationMessage,requiredValue:this.validationResult.blankMessage}})}PhoneNumberValidator(){return n=>(this.validationResult=this.inputTextValidatorService.validatePhoneNumber(n.value),!n.value||n.value==""||this.validationResult.valid?null:{formControlValidationErrors:{value:this.validationResult.validationMessage}})}PostCodeValidator(){return n=>(this.validationResult=this.inputTextValidatorService.validatePostcode(n.value),!n.value||n.value==""||this.validationResult.valid?null:{formControlValidationErrors:{value:this.validationResult.validationMessage}})}PasswordChoiceValidator(){return n=>(this.validationResult=this.inputTextValidatorService.validatePasswordChoice(n.value),!n.value||n.value==""||this.validationResult.valid?null:{formControlValidationErrors:{value:this.validationResult.validationMessage,passwordErrors:this.validationResult.passwordErrors}})}PassWordValidator(){return n=>(this.validationResult=this.inputTextValidatorService.validatePassword(n.value),!n.value||n.value==""||this.validationResult.valid?null:{formControlValidationErrors:{value:this.validationResult.validationMessage}})}DateBirthTextValidator(){return n=>(this.validationResult=this.inputTextValidatorService.validateDateBirth(n.value),this.validationResult.blankMessage=this.content.validationBlankMessage?this.content.validationBlankMessage:this.validationResult.blankMessage,!n.value||n.value==""||this.validationResult.valid?null:{formControlValidationErrors:{value:this.validationResult.validationMessage}})}FutureDateTextValidator(){return n=>(this.validationResult=this.inputTextValidatorService.validateFutureDate(n.value),this.validationResult.blankMessage=this.content.validationBlankMessage?this.content.validationBlankMessage:this.validationResult.blankMessage,!n.value||n.value==""||this.validationResult.valid?null:{formControlValidationErrors:{value:this.validationResult.validationMessage}})}SortCodeTextValidator(){return n=>(this.validationResult=this.inputTextValidatorService.validateSortCode(n.value),!n.value||n.value==""||this.validationResult.valid?null:{formControlValidationErrors:{value:this.validationResult.validationMessage}})}AccountNumberTextValidator(){return n=>(this.validationResult=this.inputTextValidatorService.validateAccountNumber(n.value),!n.value||n.value==""||this.validationResult.valid?null:{formControlValidationErrors:{value:this.validationResult.validationMessage}})}PaymentCodeTextValidator(){return n=>(this.validationResult=this.inputTextValidatorService.validatePaymentCode(n.value),!n.value||n.value==""||this.validationResult.valid?null:{formControlValidationErrors:{value:this.validationResult.validationMessage}})}};t.\u0275fac=function(o){return new(o||t)(O(Ls))},t.\u0275cmp=U({type:t,selectors:[["fab-input-text-2"]],inputs:{content:"content",formControl:"formControl",showError:"showError",disableIcons:"disableIcons"},standalone:!1,features:[St([{provide:Zt,useExisting:Wt(()=>t),multi:!0},Ls])],decls:12,vars:27,consts:[["input","ngModel"],[1,"form-input-text-2"],[1,"row"],[1,"col-xs-12"],[3,"for"],[1,"row","form-fieldcontainer"],[3,"ngClass"],[1,"form-control",3,"ngModelChange","input","focus","blur","paste","autocomplete","ngClass","name","id","type","placeholder","ngModel","maxlength","disabled","min","max","removeCharacters"],[1,"col-md-4","col-sm-2","col-xs-2"],[1,"row","form__feedbackcontainer"],[1,"row","pass-choice-validators"],[1,"form__labelcontainer",3,"innerHTML"],[1,"form__icon"],[1,"col-md-8","col-sm-10","col-xs-10","form__feedbackcontainer--show-password",3,"ngClass"],[3,"click"],[1,"col-xs-12",3,"ngClass"],[1,"icon",3,"ngClass"],[1,"pass-choice-validators__tooltip"],[1,"col-md-8","col-sm-10","col-xs-10"],[1,"form__tooltip"]],template:function(o,r){if(o&1){let a=P();p(0,"div",1)(1,"div",2)(2,"div",3),y(3,bW,2,2,"label",4),u()(),p(4,"div",5)(5,"div",6)(6,"input",7,0),Jt("ngModelChange",function(l){return k(a),Qt(r.value,l)||(r.value=l),E(l)}),T("ngModelChange",function(l){return k(a),E(r.onModelChange(l))})("input",function(l){return k(a),E(r.pushChanges(l.target))})("focus",function(l){return k(a),E(r.inputFocus(l,r.content.id))})("blur",function(l){return k(a),E(r.inputBlur(l,r.content.id))})("paste",function(l){return k(a),E(r.onPaste(l))}),u()(),y(8,_W,3,5,"div",8),u(),y(9,MW,4,3,"div",9),y(10,TW,25,30,"div",10),y(11,IW,5,1,"div"),u()}o&2&&(d(3),w(r.content.label?3:-1),d(2),v("ngClass",dh(19,vW,!r.content.hideValidation&&!r.disableIcons,!r.content.hideValidation&&!r.disableIcons,!r.content.hideValidation&&!r.disableIcons,r.content.hideValidation||r.disableIcons)),d(),v("autocomplete",ne(r.content.autocomplete))("ngClass",Re(24,wc,!r.content.hideValidation&&r.value&&r.formControl.valid,!r.content.hideValidation&&(r.showError||r.value&&r.formControl.invalid&&!r.formControl.pending&&r.formControl.dirty&&(r.content.showErrorInFocus||!r.focus)||r.formControl.invalid&&!r.formControl.pending&&r.formControl.touched&&r.requiredInput&&(r.content.showErrorInFocus||!r.focus))))("name",r.content.id)("id",r.content.id)("type",r.inputType)("placeholder",r.content.placeholder??""),Kt("ngModel",r.value),v("maxlength",r.content.maxLen??"")("disabled",r.formControl.disabled)("min",r.content.min??"")("max",r.content.max??"")("removeCharacters",r.content.disallowedCharacters),d(2),w(!r.content.hideValidation&&!r.disableIcons?8:-1),d(),w(r.content.hideValidation?-1:9),d(),w(!r.content.hideValidation&&r.content.codeType==="PasswordChoice"?10:-1),d(),w(r.content.toolTip?11:-1))},dependencies:[Ce,Bi,Qe,fh,po,yre],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.form-input-text-2 .hidden{display:none}
758.form-input-text-2 input:focus{outline:none}.form-input-text-2 input:disabled{cursor:not-allowed;opacity:.6}.form-input-text-2 input.form-control{box-sizing:border-box;display:inline-block;width:100%;font-size:16px;padding:6px;border:2px solid rgb(229.5,229.5,229.5);border-radius:3px;margin:2px}.form-input-text-2 input.form-control:focus{outline:none;border-radius:3px;border:solid #fac05c;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;margin:1px}.form-input-text-2 input.form-control.form__field-valid{border-radius:3px;background-color:#fff;border:solid 4px #008048;margin:0}.form-input-text-2 input.form-control.form__field-valid:focus{outline:none;border-radius:3px;border:solid #fac05c;background-color:#fff;-moz-box-shadow:inset 0 0 0 4px #008048;-webkit-box-shadow:inset 0 0 0 4px #008048;box-shadow:inset 0 0 0 4px #008048}.form-input-text-2 input.form-control.form__field-invalid{border-radius:3px;background-color:#fff;border:solid #e22b25;margin:1px}.form-input-text-2 input.form-control.form__field-invalid:focus{-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.form-input-text-2 .form__feedbackcontainer div{margin-bottom:0;margin-top:0;font-weight:600;font-size:11px;color:#e22b25}@media (min-width: 992px){.form-input-text-2 .form__feedbackcontainer div{font-size:14px}}.form-input-text-2 .form__feedbackcontainer--show-password{display:flex;flex-flow:row;justify-content:flex-end}.form-input-text-2 .form__feedbackcontainer--show-password.space-between{justify-content:space-between}.form-input-text-2 .form__feedbackcontainer--show-password a{color:#008048;font-size:1.25em}.form-input-text-2 .form__feedbackcontainer--show-password a:hover{color:#0a5c50}.form-input-text-2 p.form__tooltip{margin:0;font-size:.9em}.form-input-text-2 .form__labelcontainer{display:block;width:100%;padding-bottom:.2em}.form-input-text-2 .form__labelcontainer span{font-size:11px}@media (min-width: 992px){.form-input-text-2 .form__labelcontainer span{font-size:14px}}.form-input-text-2 .pass-choice-validators{margin-bottom:15px}.form-input-text-2 .pass-choice-validators div{display:flex}.form-input-text-2 .pass-choice-validators i{font-size:14px;display:block;padding-top:5px}.form-input-text-2 .pass-choice-validators__tooltip{margin-top:0;margin-left:5px;margin-bottom:5px}.form-input-text-2 .form__icon{padding-left:15px;padding-top:8px}.form-input-text-2 .form__icon i{display:inline-block;width:20px;font-size:20px;padding:0}.form-input-text-2 .form__icon i.icon-success{color:#008048}.form-input-text-2 .form__icon i.icon-error{color:#e22b25}.form-input-text-2 .form__icon i.icon-error.default{color:#c3c3c3}.form-input-text-2 .form__icon i.icon-loop2{font-size:18px}.form-input-text-2 .form__icon i.spin{-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-ms-transform-origin:50% 50%;-webkit-animation:spin 1.5s linear infinite;-moz-animation:spin 1.5s linear infinite;-o-animation:spin 1.5s linear infinite;animation:spin 1.5s linear infinite}.form-input-text-2 label{margin-bottom:0} 759`],encapsulation:2});let e=t;return e})(),Gp=(()=>{let t=class t{constructor(){this.isCheckedChange=new L,this.onChange=new L,this._onChange=n=>{},this.onTouched=()=>{}}registerOnChange(n){this._onChange=n}registerOnTouched(n){this.onTouched=n}writeValue(n){this._onChange(n)}ngOnInit(){}toggleCheckbox(){this.isChecked=!this.isChecked,this.onChange.emit(this.isChecked),this.isCheckedChange.emit(this.isChecked)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-input-checkbox"]],inputs:{content:"content",isChecked:"isChecked"},outputs:{isCheckedChange:"isCheckedChange",onChange:"onChange"},standalone:!1,features:[St([{provide:Zt,useExisting:Wt(()=>t),multi:!0}])],decls:3,vars:14,consts:[[1,"checkbox",3,"ngClass"],["type","checkbox","value","true",1,"checkbox__input",3,"change","name","id","ngClass","checked","disabled"],[3,"for","innerHTML"]],template:function(o,r){o&1&&(p(0,"div",0)(1,"input",1),T("change",function(){return r.toggleCheckbox()}),u(),x(2,"label",2),u()),o&2&&(v("ngClass",hi(8,DW,r.content.checkboxPosition==="right",r.content.style==="gray",r.content.invali
759d)),d(),v("name",r.content.id)("id",r.content.id)("ngClass",z(12,PW,r.content.disabled))("checked",r.isChecked)("disabled",r.content.disabled),d(),v("for",r.content.id)("innerHTML",r.content.label,ue))},dependencies:[Ce],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.checkbox__input{position:absolute;opacity:0;z-index:999;zoom:.01}.checkbox__input+label{position:relative;cursor:pointer;font-weight:500;display:inline-block;padding:0 0 0 30px}.checkbox__input+label:before{content:"";position:absolute;display:inline-block;width:20px;height:20px;border:2px solid rgb(229.5,229.5,229.5);background:#fff;cursor:pointer;left:0;top:calc(50% - 12px);border-radius:4px;box-sizing:content-box}.checkbox__input:focus+label:before{box-shadow:0 0 #0000001f;border-color:#fac05c}.checkbox__input:checked+label:before{background:#00ab4e;border:2px solid #00ab4e}.checkbox__input:disabled+label{color:#dfdfdf;cursor:default}.checkbox__input:disabled+label:before{cursor:default;background:#dfdfdf;border:2px solid #dfdfdf}.checkbox__input:checked+label:after{content:"";position:absolute;left:8px;top:calc(50% - 13px);width:8px;height:15px;box-shadow:3px 3px #fff;transform:rotate(45deg)}.checkbox.reversed .checkbox__input+label{padding-left:0;padding-right:30px}.checkbox.reversed .checkbox__input+label:before{right:0;left:auto}.checkbox.reversed .checkbox__input:checked+label:after{right:8px;left:auto}.checkbox.gray .checkbox__input:checked+label:before{background:#777;border:2px solid #777}.checkbox.invalid .checkbox__input+label{color:#e22b25}.checkbox.invalid .checkbox__input+label:before{border-color:#e22b25} 760`],encapsulation:2});let e=t;return e})(),gwe=(()=>{let t=class t{constructor(){this.control=new Xt(""),this.focus=!1}ngOnInit(){this._updateValidators()}inputFocus(){this.focus=!0}inputBlur(){this.control.markAsTouched({onlySelf:!0}),this.focus=!1}_updateValidators(){this.content.required&&this.control.addValidators(fe.required)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-textarea"]],inputs:{control:"control",content:"content",showError:"showError"},standalone:!1,decls:1,vars:1,consts:[[1,"form-input-text-2"],[1,"row"],[1,"col-md-12","col-sm-12","col-xs-12"],[3,"for"],[1,"row","form-fieldcontainer"],[1,"col-md-8","col-sm-10","col-xs-10"],["type","text","autocomplete","off",1,"form-control",3,"focus","blur","ngClass","name","id","placeholder","maxlength","rows","cols","formControl"],[1,"col-md-4","col-sm-2","col-xs-2"],[1,"form__icon"],[3,"ngClass"],[1,"row","form__feedbackcontainer"],[1,"form__labelcontainer",3,"innerHTML"]],template:function(o,r){o&1&&y(0,LW,15,25,"div",0),o&2&&w(r.content&&r.content.textarea&&r.control?0:-1)},dependencies:[Ce,Bi,Qe,fh,ei,bn],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.hidden[_ngcontent-%COMP%]{display:none}.form__labelcontainer[_ngcontent-%COMP%]{display:block;width:100%;padding-bottom:.2em}.form__labelcontainer[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:11px}@media (min-width: 992px){.form__labelcontainer[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px}}.form__feedbackcontainer[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin-bottom:0;margin-top:0;color:#e22b25}textarea[_ngcontent-%COMP%]:focus{outline:none}textarea.form-control[_ngcontent-%COMP%]{box-sizing:border-box;display:inline-block;width:100%;max-width:100%;font-size:16px;padding:6px;border:2px solid rgb(229.5,229.5,229.5);border-radius:3px;margin:2px}textarea.form-control[_ngcontent-%COMP%]:focus{outline:none;border-radius:3px;border:solid #fac05c;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;margin:1px}textarea.form-control.form__field-valid[_ngcontent-%COMP%]{border-radius:3px;background-color:#fff;border:solid 2px #008048;margin:0}textarea.form-control.form__field-valid[_ngcontent-%COMP%]:focus{outline:none;border-radius:3px;border:solid #fac05c;background-color:#fff;-moz-box-shadow:inset 0 0 0 4px #008048;-webkit-box-shadow:inset 0 0 0 4px #008048;box-shadow:inset 0 0 0 4px #008048}textarea.form-control.form__field-invalid[_ngcontent-%COMP%]{border-radius:3px;background-color:#fff;border:solid #e22b25;margin:1px}textarea.form-control.form__field-invalid[_ngcontent-%COMP%]:focus{-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.icon-success[_ngcontent-%COMP%]{color:#008048;font-size:20px}.icon-error.default[_ngcontent-%COMP%]{color:#c3c3c3}.icon-error[_ngcontent-%COMP%]{color:#e22b25;font-size:20px}.form__icon[_ngcontent-%COMP%]{padding-left:15px;padding-top:8px}.form__icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:inline-block;width:20px}"]});let e=t;return e})(),zo=(()=>{let t=class t{constructor(n){this.controlContainer=n,this.selectEvent=ne
760w L,this.last=!1,this.checked=!1,this.onChange=o=>{},this.onTouched=()=>{}}ngOnInit(){this.details=this.content,this.lastInput&&(this.last=this.lastInput),this.checked=this.checkedVal}ngOnChanges(){this.last=this.lastInput,this.checked=this.checkedVal}select(n){this.value=n.value,this.writeValue(this.value),this.selectEvent.emit(n)}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}writeValue(n){this.onChange(n)}};t.\u0275fac=function(o){return new(o||t)(O(Dv,13))},t.\u0275cmp=U({type:t,selectors:[["fab-radio"]],inputs:{content:"content",lastInput:"lastInput",checkedVal:"checkedVal",formControl:"formControl"},outputs:{selectEvent:"selectEvent"},standalone:!1,features:[St([{provide:Zt,useExisting:Wt(()=>t),multi:!0}]),Ye],decls:6,vars:6,consts:[[1,"fab-radio",3,"ngClass"],[1,"radio-label"],[1,"radio-group"],["type","radio",1,"radio",3,"click","value","checked","name","id"],[1,"selected"],[1,"titled",3,"innerHTML"]],template:function(o,r){o&1&&(p(0,"div",0)(1,"label",1)(2,"div",2)(3,"input",3),T("click",function(){return r.select(r.details)}),u(),x(4,"span",4)(5,"span",5),u()()()),o&2&&(v("ngClass",r.last?"input__end":"input"),d(3),v("value",r.details.label)("checked",r.checked)("name",r.details.id)("id",r.details.id),d(2),v("innerHTML",r.details.label,ue))},dependencies:[Ce],styles:['[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.fab-radio.input[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative;margin:5% 0 15px;padding:5px}@media (min-width: 768px){.fab-radio.input[_ngcontent-%COMP%]{margin:2% 0;padding:0}}.fab-radio.input__end[_ngcontent-%COMP%]{margin:0;position:relative}.fab-radio[_ngcontent-%COMP%] .titled[_ngcontent-%COMP%]{position:relative;cursor:pointer;line-height:28px;margin-left:.5rem}.fab-radio[_ngcontent-%COMP%] .radio[_ngcontent-%COMP%]{position:relative;opacity:0;width:0;cursor:pointer;margin-bottom:10px}.fab-radio[_ngcontent-%COMP%] .radio[_ngcontent-%COMP%]:focus + .selected[_ngcontent-%COMP%]:before{-webkit-box-shadow:0 0 0 4px #ffd432;-moz-box-shadow:0 0 0 4px #ffd432;box-shadow:0 0 0 4px #ffd432}.fab-radio[_ngcontent-%COMP%] .radio[_ngcontent-%COMP%]:checked ~ .selected[_ngcontent-%COMP%]{background-color:#00ab4e;border:2px solid #00ab4e}.fab-radio[_ngcontent-%COMP%] .radio[_ngcontent-%COMP%]:checked ~ .selected[_ngcontent-%COMP%]:after, .fab-radio[_ngcontent-%COMP%] .radio[_ngcontent-%COMP%]:checked ~ .selected[_ngcontent-%COMP%]:before{display:block}.fab-radio[_ngcontent-%COMP%] .radio-label[_ngcontent-%COMP%]{display:flex;flex-direction:row}.fab-radio[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin-right:15px}.fab-radio[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%]{position:relative;display:flex;flex-shrink:0;height:24px;width:24px;border:solid #e6e5e5 2px;background-color:#fff;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;border-radius:50%;cursor:pointer}.fab-radio[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%]:after{content:"";position:absolute;display:none;left:2px;top:2px;width:16px;height:16px;border:solid #fff 2px;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;border-radius:50%}']});let e=t;return e})(),G0=(()=>{let t=class t{constructor(){this.agreeEvent=new L,this.onChange=n=>{},this.onTouched=()=>{}}ngOnInit(){this.value=this.preChecked}ngOnChanges(){this.updateChecked!==void 0&&(this.value=this.updateChecked)}select(){this.value=!this.value,this.writeValue(this.value?this.value.toString():""),this.agreeEvent.emit(this.value)}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}writeValue(n){this.onChange(n)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-checkbox-confirm"]],inputs:{content:"content",showError:"showError",preChecked:"preChecked",updateChecked:"updateChecked",value:"value"},outputs:{agreeEvent:"agreeEvent"},standalone:!1,features:[St([{provide:Zt,useExisting:Wt(()=>t),multi:!0}]),Ye],decls:9,vars:18,consts:[[1,"fab-checkbox-confirm"],[3,"ngClass"],[1,"content","tooltip",3,"ngClass"],["type","checkbox",1,"confirm__checkbox",3,"click","ngClass","name","id","value","checked"],[3,"for","innerHTML"],[3,"ngClass","for"],[1,"form_icon"],[1,"errorMessage"],[1,"icon","icon-error"]],template:function(o,r){o&1&&(p(0,"div",0)(1,"div",1),y(2,NW,2,4,"p",2),p(3,"input",3),T("click",function(){return r.select()}),u(),y(4,zW,1,2,"label",4),y(5,BW,2,5,"label",5),y(6,VW,2,5,"label",5),u(),y(7,HW,2,0,"div",6),y(8,GW,2,1,"div",7),u()),o&2&&(d(),v("ngClass",z(14,Mt,r.showError)),d(),w(r.content.label?2:-1),d(),v("name",ne(r.content.id))("id",ne(r.content.id))("ngClass",z(16,Lp,r.showError))("value",r.value)("checked",r.value),d(),w(r.content.label?4:-1),d(),w(r.content.label?5:-1),d(),w(r.content.label?-1:6),d(),w(r.showError?7:-1),d(),w(r.content.validationMessage&&r.showError?8:-1))},dependencies:[Ce],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.fab-checkbox-confirm .confirm__checkbox{position:absolute;opacity:0;z-index:-999;zoom:1.75;min-width:25px;min-height:25px}.fab-checkbox-confirm .confirm__checkbox+label{position:relative;cursor:pointer;padding:0;font-weight:500}.fab-checkbox-confirm .confirm__checkbox+label:before{content:"";margin-right:10px;display:inline-block;vertical-align:text-top;width:20px;height:20px;background:#fff;border:2px solid rgb(229.5,229.5,229.5);margin-left:0;margin-top:-2px;cursor:pointer}.fab-checkbox-confirm .confirm__checkbox:focus+label:before{box-shadow:0 0 #0000001f}.fab-checkbox-confirm .confirm__checkbox:checked+label:before{background:#00ab4e;border:2px solid #00ab4e;margin-left:0;margin-top:-2px}.fab-checkbox-confirm .confirm__checkbox:disabled+label:before{box-shadow:none;background:#dfdfdf}.fab-checkbox-confirm .confirm__checkbox:checked+label:after{content:"";position:absolute;
760left:5px;top:7px;background:#fff;width:2px;height:2px;box-shadow:2px 0 #fff,4px 0 #fff,4px -2px #fff,4px -4px #fff,4px -6px #fff,4px -8px #fff;transform:rotate(45deg)}.fab-checkbox-confirm .invalid{border-radius:3px;background-color:#fff;border:solid #e22b25;padding:5px;display:inline-block;width:100%;max-width:calc(100% - 41px)}.fab-checkbox-confirm .invalid:focus{-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.fab-checkbox-confirm .errorMessage{color:#e22b25;font-weight:700;font-size:14px}.fab-checkbox-confirm .icon{font-size:20px}.fab-checkbox-confirm .icon-error{color:#e22b25}.fab-checkbox-confirm .form_icon{display:inline-block;padding-top:8px;padding-left:5px}@media (min-width: 1200px){.fab-checkbox-confirm .form_icon{padding-top:10px}}.fab-checkbox-confirm .content{margin:10px auto}.fab-checkbox-confirm .content__error{margin:10px} 761`],encapsulation:2});let e=t;return e})(),wre=(()=>{let t=class t{set featureFlag([n,o=!0]){n&&(this._featureFlag=n,this._isEnabled=o,this.updateView())}constructor(n,o,r){this.templateRef=n,this.viewContainer=o,this.featureFlagService=r,this.isHidden=!0}ngOnInit(){this.updateView()}ngOnDestroy(){this.featureFlagSubscription&&this.featureFlagSubscription.unsubscribe()}updateView(){if(!this._featureFlag)return this.viewContainer.clear();this.featureFlagSubscription&&this.featureFlagSubscription.unsubscribe(),this.featureFlagSubscription=this.featureFlagService.isFeatureEnabled(this._featureFlag).subscribe(n=>{this._isEnabled===n?this.isHidden&&(this.viewContainer.createEmbeddedView(this.templateRef),this.isHidden=!1):(this.viewContainer.clear(),this.isHidden=!0)})}};t.\u0275fac=function(o){return new(o||t)(O(sh),O(Ma),O(zs))},t.\u0275dir=di({type:t,selectors:[["","featureFlag",""]],inputs:{featureFlag:"featureFlag"}});let e=t;return e})(),br=(()=>{let t=class t{constructor(n){this.routerLink=n,this.target=null,this.rel=null}set openInNewTab(n){this.target=n?"_blank":null,this.rel=n?"noopener noreferrer":null,this.routerLink&&(this.routerLink.target=n?"_blank":void 0)}};t.\u0275fac=function(o){return new(o||t)(O(tt,8))},t.\u0275dir=di({type:t,selectors:[["","openInNewTab",""]],hostVars:2,hostBindings:function(o,r){o&2&&Ve("target",r.target)("rel",r.rel)},inputs:{openInNewTab:"openInNewTab"}});let e=t;return e})(),Bo=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,Yc,hE,At,Rt,Vi]});let e=t;return e})(),Dp=(()=>{let t=class t{constructor(n){this.renderer=n,this.isModalOpenedChange=new L,this.modalClose=new L}openModal(){this.isModalOpened=!0,this.pullFocus(),this.setBackgroundUnscrollable()}ngOnChanges(n){n.isModalOpened.firstChange||(n.isModalOpened&&n.isModalOpened.currentValue?this.openModal():this.closeModal())}pullFocus(){setTimeout(()=>{this.previousFocusedElement=document.activeElement,this.closeBtn.nativeElement.focus()},0)}setBackgroundUnscrollable(){document?.body&&this.renderer.setStyle(document.body,"overflow-y","hidden")}setBackgroundScrollable(){document?.body&&this.renderer.setStyle(document.body,"overflow-y","auto")}closeModal(){this.isModalOpened=!1,this.isModalOpenedChange.emit(this.isModalOpened),this.modalClose.emit(!0),this.previousFocusedElement.focus(),this.setBackgroundScrollable()}};t.\u0275fac=function(o){return new(o||t)(O(Rn))},t.\u0275cmp=U({type:t,selectors:[["fab-modal"]],viewQuery:function(o,r){if(o&1&&Ue(UW,5),o&2){let a;Me(a=Te())&&(r.closeBtn=a.first)}},inputs:{isModalOpened:"isModalOpened"},outputs:{isModalOpenedChange:"isModalOpenedChange",modalClose:"modalClose"},standalone:!1,features:[Ye],ngContentSelectors:WW,decls:4,vars:1,consts:[["closeBtn",""],[1,"fab-modal"],[1,"fab-modal__link",3,"click"],[1,"fab-modal__container"],["tabindex","0",1,"fab-modal__container--close-icon",3,"click","keydown.Enter"],[1,"fab-modal__overlay",3,"click"]],template:function(o,r){o&1&&(en(jW),p(0,"span",1)(1,"a",2),T("click",function(){return r.openModal()}),ui(2),u(),y(3,$W,6,4,"div"),u()),o&2&&(d(3),w(r.isModalOpened?3:-1))},styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.fab-modal__overlay{z-index:2000;position:fixed;top:0;left:0;content:"";background:#0000004d;width:100%;height:100%}.fab-modal__overlay.active{display:block}.fab-modal__container{display:none;background:#fff;position:fixed;top:calc(50% + 31px);left:50%;transform:translate(-50%) translateY(-50%);z-index:2001;width:98%}@media (min-width: 992px){.fab-modal__container{width:auto;min-width:780px}}.fab-modal__container.active{display:block}.fab-modal__container--close-icon{height:60px;cursor:pointer;display:block;position:absolute;top:0;right:0;width:60px}.fab-modal__container--close-icon:before{transform:translate(50%,-50%) rotate(45deg);-ms-transform:translate(50%,-50%) rotate(45deg);-webkit-transform:translate(50%,-50%) rotate(45deg)}.fab-modal__container--close-icon:after{transform:translate(50%,-50%) rotate(315deg);-ms-transform:translate(50%,-50%) rotate(315deg);-webkit-transform:translate(50%,-50%) rotate(315deg)}.fab-modal__container--close-icon:before,.fab-modal__container--close-icon:after{background-color:#999;display:block;width:20px;height:2px;content:"";position:absolute;top:50%;right:50%} 762`],encapsulation:2});let e=t;return e})(),Up=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,Rt,At]});let e=t;return e})(),xre=(()=>{let t=class t{constructor(n){this.sanitizer=n}transform(n){return this.sanitizer.bypassSecurityTrustHtml(n)}};t.\u0275fac=function(o){return new(o||t)(O(yn,16))},t.\u0275pipe=et({name:"notificationMessagePipe",type:t,pure:!0,standalone:!1});let e=t;return e})(),Gs=(()=>{let t=class t{constructor(n,o){this.notificationService=n,this.notificationPreferencesService=o,this.isMessageOpen=!1,this.disabled=!1}ngOnInit(){this.notification&&typeof this.notification.closeNotification!="boolean"&&this.checkIfClosed()}checkIfClosed(){this.disabled=!0,this.notificationPreferencesService.checkIfClosed(this.notification).subscribe(n=>this.disabled=n)}closeNotification(){this.notification.closeNotification&&typeof this.notification.closeNotification!="boolean"&&this.notificationPreferencesService.closeNotification(this.notification.closeNotification,this.notification).subscribe(),this.isNotificationOpen=!1,this.notification.isOpened=!1,this.notificationService.closeNotification(this.notification)}toggleNotification(){this.isMessageOpen=!this.isMessageOpen}};t.\u0275fac=function(o){return new(o||t)(O(JS),O(Xoe))},t.\u0275cmp=U({type:t,selectors:[["fab-notification"]],inputs:{notification:"notification",isNotificationOpen:"isNotificationOpen"},standalone:!1,decls:1,vars:1,consts:[[3,"class","active","open","ngClass"],[3,"ngClass"],[1,"n
762otification__close"],[1,"notification__toggle"],[1,"notification__content"],[1,"notification__message"],[3,"class"],[3,"innerHTML"],[1,"notification__details"],[3,"click"],[1,"icon-cross"]],template:function(o,r){o&1&&y(0,JW,12,20,"div",0),o&2&&w(r.isNotificationOpen&&!r.disabled?0:-1)},dependencies:[Ce,xre],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.notification{padding:13px 20px 12px;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;color:#000;font-weight:400;font-size:14px;line-height:1.5;display:inline-block;width:100%;max-width:757px;position:relative;text-align:left}.notification a,.notification a:hover{color:inherit;text-decoration:underline}.notification--status,.notification--status-warning{background:#a0ebd7}.notification--success,.notification--success-warning{background:#008048}.notification--error,.notification--error-warning{background:#e22b25}.notification--success,.notification--success-warning,.notification--error,.notification--error-warning,.notification--success h1,.notification--success h2,.n
762otification--success h3,.notification--success h4,.notification--success h5,.notification--success h6,.notification--success .h1,.notification--success .h2,.notification--success .h3,.notification--success .h4,.notification--success .h5,.notification--success .h6,.notification--success p,.notification--success div,.notification--success span,.notification--success-warning h1,.notification--success-warning h2,.notification--success-warning h3,.notification--success-warning h4,.notification--success-warning h5,.notification--success-warning h6,.notification--success-warning .h1,.notification--success-warning .h2,.notification--success-warning .h3,.notification--success-warning .h4,.notification--success-warning .h5,.notification--success-warning .h6,.notification--success-warning p,.notification--success-warning div,.notification--success-warning span,.notification--error h1,.notification--error h2,.notification--error h3,.notification--error h4,.notification--error h5,.notification--error h6,.notification--error .h1,.notification--error .h2,.notification--error .h3,.notification--error .h4,.notification--error .h5,.notification--error .h6,.notification--error p,.notification--error div,.notification--error span,.notification--error-warning h1,.notification--error-warning h2,.notification--error-warning h3,.notification--error-warning h4,.notification--error-warning h5,.notification--error-warning h6,.notification--error-warning .h1,.notification--error-warning .h2,.notification--error-warning .h3,.notification--error-warning .h4,.notification--error-warning .h5,.notification--error-warning .h6,.notification--error-warning p,.notification--error-warning div,.notification--error-warning span{color:#fff}.notification--warning{background:#fac05c}.notification--ghost{background:#f8f8f8;border:2px solid #e6e8eb}.notification__content{padding-right:20px}.notification__content i{padding-right:10px}.notification__message{display:table}.notification__message>span{display:table-cell}.notification__message>span p{color:inherit}.notification__message>span p:first-of-type{margin-top:0}.notification__message>span p:last-of-type{margin-bottom:0}.notification__close{position:absolute;right:17px;top:10px}.notification__close a{color:inherit;text-decoration:none}.notification__close a:hover,.notification__close a:focus{text-decoration:none}.notification__toggle{position:absolute;right:17px;top:10px}.notification__toggle a{color:inherit;text-decoration:none}.notification__toggle a:hover,.notification__toggle a:focus{text-decoration:none}.notification__details{height:0;overflow:hidden;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.notification.open .notification__details{height:auto;padding:7px 0;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.notification--full-width{width:100%;max-width:100%;display:block;text-align:center;padding:13px 20px 9px}.notification--full-width .notification__content{display:inline-block;text-align:left}.notification--left-align{display:flex;justify-content:flex-start;padding-left:20px}@media (min-width: 1200px){.notification--left-align{padding-left:56px}}.notification--status .notification__content,.notification--success .notification__content,.notification--error .notification__content{max-width:960px} 763`],encapsulation:2});let e=t;return e})(),Ec=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge]});let e=t;return e})(),Lo=(function(e){return e.ABOVE="above",e.BELOW="below",e.LEFT="left",e.RIGHT="right",e.FOLLOW="follow",e.DEFAULT="right",e})(Lo||{}),Sre=(()=>{let t=class t{constructor(){this.position=Lo.DEFAULT,this.tooltip="",this.left=0,this.top=0,this.visible=!1}ngOnInit(){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-tooltip"]],standalone:!1,decls:2,vars:12,consts:[[1,"tooltip",3,"ngClass"],[1,"tooltip__inner",3,"innerHTML"]],template:function(o,r){o&1&&(p(0,"div",0),x(1,"div",1),u()),o&2&&(xt("left",r.left+"px")("top",r.top+"px")("background-color",r.backgroundColor),Pe("tooltip--visible",r.visible),v("ngClass",z(10,Ge,"tooltip--"+r.position)),d(),v("innerHTML",r.tooltip,ue))},dependencies:[Ce],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.tooltip{display:flex;flex-direction:column;position:fixed;background-color:#f9f9f9;border-radius:4px;color:#000;padding:3px 6px;font-size:13px;opacity:0;min-height:30px;max-width:270px;z-index:999;justify-content:center;border:1px solid #dfe1e5;box-shadow:10px 8px 16px #1a1a1a14}.tooltip:before{content:"";width:0;height:0;position:absolute}.tooltip--visible{opacity:1;transition:opacity .3s}.tooltip--below{transform:translate(-50%);margin-top:15px}.tooltip--below:before{content:"";width:0;height:0;border-left:10px solid transparent;border-right:10px solid transparent;border-bottom:10px solid #dfe1e5;position:absolute;
763left:calc(50% - 10px);top:-10px}.tooltip--above{transform:translate(-50%,calc(-105% - 12px))}.tooltip--above:before{content:"";width:0;height:0;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid #dfe1e5;position:absolute;left:calc(50% - 10px);bottom:-10px}.tooltip--left{transform:translate(calc(-105% - 5px),-50%)}.tooltip--left:before{content:"";width:0;height:0;border-left:10px solid #dfe1e5;border-bottom:10px solid transparent;border-top:10px solid transparent;position:absolute;right:-10px;top:calc(50% - 10px)}.tooltip--right{transform:translateY(-50%);margin-left:15px}.tooltip--right:before{content:"";width:0;height:0;border-right:10px solid #dfe1e5;border-bottom:10px solid transparent;border-top:10px solid transparent;position:absolute;left:-10px;top:calc(50% - 10px)}.tooltip--follow{margin-left:20px}.tooltip--follow:before{display:none}.tooltip__inner{width:max-content;max-width:250px} 764`],encapsulation:2});let e=t;return e})(),jp=(()=>{let t=class t{constructor(n,o,r){this.elementRef=n,this.appRef=o,this.viewContainerRef=r,this.showDelay=0,this.hideDelay=0,this.visible=!0,this.disableAutomaticallyCreatingTooltip=!1,this.backgroundColor="f9f9f9",this.componentRef=null}onMouseEnter(){this.visible&&this.initializeTooltip()}onMouseLeave(){this.setHideTooltipTimeout()}onMouseMove(n){this.componentRef!==null&&this.position===Lo.FOLLOW&&(this.componentRef.instance.left=n.clientX,this.componentRef.instance.top=n.clientY,this.componentRef.instance.tooltip=this.tooltip)}onTouchStart(n){this.visible&&(window.clearTimeout(this.touchTimeout),this.touchTimeout=window.setTimeout(this.initializeTooltip.bind(this),10))}onTouchEnd(){window.clearTimeout(this.touchTimeout),this.setHideTooltipTimeout()}ngOnInit(){this.positionInput!==void 0?this.position=this.positionInput:this.position=Lo.DEFAULT}initializeTooltip(){this.componentRef===null&&(window.clearInterval(this.hideDelay),this.componentRef=this.viewContainerRef.createComponent(Sre),this.setTooltipComponentProperties(),this.showTimeout=window.setTimeout(this.showTooltip.bind(this),this.showDelay))}setTooltipComponentProperties(){if(this.componentRef!==null){this.componentRef.instance.tooltip=this.tooltip,this.componentRef.instance.position=this.position,this.componentRef.instance.backgroundColor=this.backgroundColor;let{left:n,right:o,top:r,bottom:a}=this.elementRef.nativeElement.getBoundingClientRect();switch(this.position){case Lo.BELOW:{this.componentRef.instance.left=Math.round((o-n)/2+n),this.componentRef.instance.top=Math.round(a);break}case Lo.ABOVE:{this.componentRef.instance.left=Math.round((o-n)/2+n),this.componentRef.instance.top=Math.round(r);break}case Lo.RIGHT:{this.componentRef.instance.left=Math.round(o),this.componentRef.instance.top=Math.round(r+(a-r)/2);break}case Lo.LEFT:{this.componentRef.instance.left=Math.round(n),this.componentRef.instance.top=Math.round(r+(a-r)/2);break}case Lo.FOLLOW:{this.startPosition?.x&&this.startPosition.y&&(this.componentRef.instance.left=this.startPosition?.x,this.componentRef.instance.top=this.startPosition?.y);break}default:break}}}showTooltip(){this.componentRef!==null&&(this.componentRef.instance.visible=!0)}setHideTooltipTimeout(){this.hideTimeout=window.setTimeout(this.destroy.bind(this),this.hideDelay)}ngOnChanges(n){n.visible&&(this.visible=n.visible.currentValue,n.visible.currentValue===!0?this.initializeTooltip():this.setHideTooltipTimeout()),this.positionInput!==void 0&&(this.position=this.positionInput)}ngOnDestroy(){this.destroy()}destroy(){this.componentRef!==null&&(window.clearInterval(this.showTimeout),window.clearInterval(this.hideDelay),this.appRef.detachView(this.componentRef.hostView),this.componentRef.destroy(),this.componentRef=null)}};t.\u0275fac=function(o){return new(o||t)(O($t),O(Vc),O(Ma))},t.\u0275dir=di({type:t,selectors:[["","tooltip",""]],hostBindings:function(o,r){o&1&&T("mouseenter",function(){return r.onMouseEnter()})("mouseleave",function(){return r.onMouseLeave()})("mousemove",function(s){return r.onMouseMove(s)})("touchstart",function(s){return r.onTouchStart(s)})("touchend",function(){return r.onTouchEnd()})},inputs:{tooltip:"tooltip",positionInput:"positionInput",showDelay:"showDelay",hideDelay:"hideDelay",visible:"visible",startPosition:"startPosition",disableAutomaticallyCreatingTooltip:"disableAutomaticallyCreatingTooltip",backgroundColor:"backgroundColor"},standalone:!1,features:[Ye]});let e=t;return e})(),Us=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge]});let e=t;return e})(),kre=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-journey-card"]],inputs:{content:"content"}
764,standalone:!1,decls:6,vars:3,consts:[[1,"journey-card"],[1,"journey-card__content"],[3,"innerHtml"],[1,"icon","icon-arrow-action","journey-card__icon"]],template:function(o,r){o&1&&(p(0,"a",0)(1,"div",1),x(2,"h4",2),p(3,"p"),C(4),u()(),x(5,"i",3),u()),o&2&&(Ve("href",r.content.link?r.content.link:null,ae),d(2),v("innerHtml",r.content.title,ue),d(2),R(r.content.body))},styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.journey-card[_ngcontent-%COMP%]{background-color:#fff;border:1px solid rgb(229.5,229.5,229.5);-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;transition:all .3s ease-in-out;height:100%;display:flex;flex-direction:column;padding:13px 10px;box-sizing:border-box;position:relative;margin-bottom:10px;font-size:14px}@media (min-width: 992px){.journey-card[_ngcontent-%COMP%]{font-size:16px;padding:13px 20px 10px;max-width:350px;margin-right:14px}}@media (min-width: 1200px){.journey-card[_ngcontent-%COMP%]{font-size:18px}}.journey-card__content[_ngcontent-%COMP%]{width:90%}.journey-card__content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:11px}@media (min-width: 1200px){.journey-card__content[_ngcontent-%COMP%]{width:100%}.journey-card__content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px}}.journey-card__icon[_ngcontent-%COMP%]{position:absolute;right:10px;font-size:20px;top:calc(50% - 8px)}@media (min-width: 1200px){.journey-card__icon[_ngcontent-%COMP%]{bottom:10px;height:auto;top:auto;right:20px;font-size:24px;display:none}}.journey-card[_ngcontent-%COMP%]:focus, .journey-card[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 5px 10px #0003;text-decoration:none}@media (min-width: 1200px){.journey-card[_ngcontent-%COMP%]:focus .icon[_ngcontent-%COMP%], .journey-card[_ngcontent-%COMP%]:hover .icon[_ngcontent-%COMP%]{display:block}}"]});let e=t;return e})(),Ere=(()=>{let t=class t{transform(n){if(!n)return"";let o="";return n.streetAddressLine1&&(o+=`${n.streetAddressLine1}, `),n.streetAddressLine2&&(o+=`${n.streetAddressLine2}, `),n.streetAddressLine3&&(o+=`${n.streetAddressLine3}, `),n.addressLocality&&(o+=`${n.addressLocality}, `),n.addressRegion&&(o+=`${n.addressRegion}, `),n.postalCode&&(o+=`${n.postalCode}, `),o=o.trim().slice(0,-1),o}};t.\u0275fac=function(o){return new(o||t)},t.\u0275pipe=et({name:"formatAddress",type:t,pure:!0,standalone:!1});let e=t;return e})(),mwe=(()=>{let t=class t{constructor(n,o){this.mipService=n,this.sanitizer=o,this.buttonActionEvent=new L,this.onToogleAccordionEvent=new L}ngOnInit(){this.content.mipServices&&(this.mipServices=this.mipService.groupByCategoryName(this.content.mipServices))}sanitizeUrl(n){return n.startsWith("http://")||n.startsWith("https://")?this.sanitizer.bypassSecurityTrustUrl(n):this.sanitizer.bypassSecurityTrustUrl("https://"+n)}getButton(n){return{text:"Send message",type:"primary",aria:"Send message",action:{type:"callback",callback:()=>this.buttonActionEvent.emit({employment:n,name:`${this.content.givenName} ${this.content.familyName}`})}}}onToogleAccordion(n){this.onToogleAccordionEvent.emit({open:n,name:`${this.content.givenName} ${this.content.familyName}`,employment:this.content.employment})}};t.\u0275fac=function(o){return new(o||t)(O(Zoe),O(yn))},t.\u0275cmp=U({type:t,selectors:[["fab-result-card-directory"]],inputs:{content:"content"},outputs:{buttonActionEvent:"buttonActionEvent",onToogleAccordionEvent:"onToogleAccordionEvent"},standalone:!1,decls:23,vars:8,consts:[[1,"result-card-directory",3,"id"],[1,"row"],[1,"result-card-directory__name"],[1,"result-card-directory__licenceNumber"],[1,"col-xs-12","col-md-4"],[1,"result-card-directory__content-licenses"],[1,"result-card-directory__licenses-title"],[1,"result-card-directory__licenses"],[3,"iconArrowLeft"],[1,"col-xs-12","col-md-8"],[1,"result-card-directory__content-employment"],[3,"onToggle","iconArrowLeft"],["header",""],["body",""],[1,"result-card-directory__license"],[1,"result-card-directory__license--name"],[1,"result-card-directory__content-employment--info"],[1,"result-card-directory__company"],[1,"result-card-directory__address"],[1,"result-card-directory__distance"],[3,"href"],["target","_blank",1,"result-card-directory__website",3,"href"],[1,"result-card-directory__controls"],[1,"result-card-directory__controls--supervisory-authority"],[3,"button"],[1,"icon","icon-location"],[1,"icon","icon-call"],[1,"icon","icon-website"],[1,"icon","icon-info",3,"tooltip","positionInput"]],template:function(o,r){o&1&&(p(0,"div",0)(1,"div",1)(2,"h4",2)(3,"strong"),C(4),u()()(),p(5,"div",1)(6,"h5",3),C(7," Licence Number: "),p(8,"strong"),C(9),u()()(),p(10,"div",1)(11,"div",4)(12,"div",5)(13,"span",6)(14,"strong"),C(15,"Licensed in:"),u()(),p(16,"ul",7),X(17,XW,7,2,"fab-accordion",8,se),N(19,"keyvalue"),u()()(),p(20,"div",9),X(21,u$,14,8,"div",10,se),u()()()),o&2&&(v("id",ne(r.content.contactId)),d(4),ch("",r.content.givenName," ",r.content.familyName," ",r.content.aatSuffix),d(5),A(" ",r.content.licenseNumber," "),d(8),ee(G(19,6,r.mipServices)),d(4),ee(r.content.employment))},dependencies:[R0,jp,Ee,Gc,vE,Ere],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.result-card-directory{background:#fff;border:1px solid rgb(229.5,229.5,229.5);padding:20px 20px 10px;font-size:14px}.result-card-directory__content-licenses{padding-bottom:18px}@media (min-width: 1200px){.result-card-directory__content-licenses{padding-bottom:0;padding-right:35px}}.result-card-directory__content-employment{padding-bottom:10px}.result-card-directory__content-employment:not(:first-child){border-top:1px solid rgb(229.5,229.5,229.5);padding-top:25px;margin-top:10px;padding-bottom:20px}@media (min-width: 1200px){.result-card-directory__content-employment{display:flex;justify-content:space-between}}@media (min-width: 1200px){.result-card-directory__content-employment--info{width:50%}}.result-card-directory__licenceNumber{margin-bottom:15px}@media (min-width: 1200px){.result-card-directory__licenceNumber{margin-bottom:25px}}.result-card-directory__company,.result-card-directory__address,.result-card-directory__website,.result-card-directory__email,.result-card-directory__distance,.result-card-directory__licenses-title{display:block;margin-bottom:10px}.result-card-directory__email,.result-card-directory__website{word-break:break-word;margin-bottom:3px;display:flex}.result-card-directory__email i,.result-card-directory__website i{margin-top:5px;margin-right:5px}.result-card-directory__address{margin-bottom:7px}.result-card-directory__distance{margin-top:10px}.result-card-directory__license-titles{margin:0 0 5px}.result-card-directory__licenses{list-style-position:outside;margin-bottom:2%}.result-card-directory__licenses .accordion{border-color:#e6e6e6}.result-card-directory__license{margin:0 0 5px 10px;padding:5px 0;list-style-type:disc;color:#00ab4e}.result-card-directory__license--name{color:#000}@media (min-width: 1200px){.result-card-directory__controls{display:flex;align-items:end;justify-content:space-between;flex-direction:column}}.result-card-directory__controls--supervisory-authority{margin-bottom:40px;position:relative}.result-card-directory__controls--supervisory-authority i{display:inline-block;margin-left:5px;color:#00ab4e} 765`],encapsulation:2,changeDetection:0});let e=t;return e})(),Mre=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,Yc,hE,At,sre,lre,Up,Bo,Ec,F0,Us,gre,Ee]});let e=t;return e})(),fwe=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({providers:[_c],imports:[ge]});let e=t;return e})();var Tre=(()=>{let t=class t{constructor(){}
765ngOnInit(){this.content.units.forEach(n=>{n.icon={colour:n.icon===Zi.tick?li.GREEN:li.BLACK,iconName:n.icon}})}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-assessment-card"]],inputs:{content:"content"},standalone:!1,decls:6,vars:1,consts:[[1,"assessment-card"],[1,"assessment-card--heading"],[1,"assessment-card--body"],[1,"assessment-card__unit",3,"ngClass"],[1,"assessment-card__unit--info"],[1,"title"],[3,"innerHTML"],[1,"assessment-card__unit--grade"],[1,"assessment-card__unit--percentage"],[1,"assessment-card__unit--other"],[3,"content"],[1,"assessment-card--synoptic-text"]],template:function(o,r){o&1&&(p(0,"div",0)(1,"div",1),C(2),u(),p(3,"div",2),X(4,b$,10,11,null,null,se),u()()),o&2&&(d(2),A(" ",r.content.name," "),d(2),ee(r.content.units))},dependencies:[Ce,Zn],styles:['[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.assessment-card[_ngcontent-%COMP%]{position:relative}.assessment-card[_ngcontent-%COMP%] i.icon[_ngcontent-%COMP%]{font-size:25px}.assessment-card[_ngcontent-%COMP%] i.icon.icon-success[_ngcontent-%COMP%]{color:#00ab4e}.assessment-card[_ngcontent-%COMP%] i.icon.icon-error[_ngcontent-%COMP%]{color:#31373e}.assessment-card[_ngcontent-%COMP%] i.icon.icon-circle[_ngcontent-%COMP%]{position:relative;display:flex;height:25px;width:25px}.assessment-card[_ngcontent-%COMP%] i.icon.icon-circle[_ngcontent-%COMP%]:before{content:"";position:absolute;height:25px;width:25px;top:0;left:0;border:1px solid #31373e;border-radius:50%}.assessment-card--heading[_ngcontent-%COMP%]{box-sizing:border-box;border-top-left-radius:5px;border-top-right-radius:5px;background-color:#31373e;color:#fff;padding:15px;font-weight:500}.assessment-card--body[_ngcontent-%COMP%]{border:1px solid rgb(229.5,229.5,229.5);background-color:#eee;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.assessment-card--synoptic-text[_ngcontent-%COMP%]{margin:-10px 15px 15px;font-size:12px;text-align:center}.assessment-card__unit[_ngcontent-%COMP%]{position:relative;border:1px solid rgb(229.5,229.5,229.5);background-color:#f9f9f9;border-radius:5px;margin:15px;padding:10px 15px;display:flex;font-size:14px;flex-direction:column;align-items:baseline}.assessment-card__unit--info[_ngcontent-%COMP%]{flex-grow:1;margin-right:30px}.assessment-card__unit--info[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:block}.assessment-card__unit--percentage[_ngcontent-%COMP%], .assessment-card__unit--grade[_ngcontent-%COMP%]{font-size:12px;margin-right:55px;margin-top:10px}.assessment-card__unit--percentage[_ngcontent-%COMP%] strong[_ngcontent-%COMP%], .assessment-card__unit--grade[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:block;font-size:20px}.assessment-card__unit--grade[_ngcontent-%COMP%]{margin-right:30px;min-width:100px}.assessment-card__unit--other[_ngcontent-%COMP%]{margin-right:55px}.assessment-card__unit--icon[_ngcontent-%COMP%]{position:absolute;top:calc(50% - 12.5px);right:15px;font-size:25px}.assessment-card__unit--icon.has-result[_ngcontent-%COMP%]{color:#00ab4e}.assessment-card__unit[_ngcontent-%COMP%]:not(:first-of-type).awarded-via-synoptic{margin-top:30px}.assessment-card__unit[_ngcontent-%COMP%]:not(:first-of-type).awarded-via-synoptic:before{content:"";position:absolute;height:30px;width:calc(100% - 55px);border-left:2px dashed #31373e;border-right:2px dashed #31373e;top:-30px;left:27.5px}@media (min-width: 992px){.assessment-card__unit[_ngcontent-%COMP%]{flex-direction:row;align-items:center}.assessment-card__unit--percentage[_ngcontent-%COMP%], .assessment-card__unit--grade[_ngcontent-%COMP%]{margin-top:0;text-align:center}}']});let e=t;return e})(),Ire=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,Cr]});let e=t;return e})(),Pp=(function(e){return e.SMALL="5px",e.MEDIUM="30px",e.LARGE="80px",e})(Pp||{}),Vo=(()=>{let t=class t{constructor(){this.LoaderSize=Pp,this.size=Pp.LARGE}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-loader"]],inputs:{size:"size"},standalone:!1,decls:2,vars:5,consts:[[1,"loading"],[3,"ngClass"]],template:function(o,r){o&1&&(p(0,"div",0),x(1,"div",1),u()),o&2&&(d(),v("ngClass",hi(1,_$,r.size===r.LoaderSize.SMALL,r.size===r.LoaderSize.MEDIUM,r.size===r.LoaderSize.LARGE)
765))},dependencies:[Ce],styles:[".loader--large[_ngcontent-%COMP%], .loader--medium[_ngcontent-%COMP%]{border:16px solid #f3f3f3;border-top:16px solid #00ab4e;border-radius:50%;width:80px;height:80px;margin:30px auto;animation:_ngcontent-%COMP%_spin 2s linear infinite}.loader--small[_ngcontent-%COMP%]{border:16px solid #f3f3f3;border-top:16px solid #00ab4e;border-radius:50%;width:0px;height:0px;animation:_ngcontent-%COMP%_spin 2s linear infinite}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]});let e=t;return e})(),Dre=(()=>{let t=class t{constructor(n){this.cdRef=n,this.onChange=new L,this.querySubject=new Xi,this.values=[],this.inputValue="",this.width="100%",this.showError=!1,this.isFocused=!1,this.showSuggestions=!0,this.minTermLength=3,this.placeholderText="",this.isLoading=!1}ngOnInit(){this.testService(),this.config.showSuggestions!==void 0&&(this.showSuggestions=this.config.showSuggestions),this.config.minTermLength!==void 0&&(this.minTermLength=this.config.minTermLength),this.config.placeholderText!==void 0&&(this.placeholderText=this.config.placeholderText),this.querySubject.pipe(Ho(600),ao(n=>{n&&(this.isLoading=!0)}),ht(n=>(this.showError=!1,n?this.config.service.search(n).pipe(Zs(()=>{this.isLoading=!1}),he(o=>Q([]))):Q([])))).subscribe(n=>{n||(this.suggestions=[]);let o=this.values.map(r=>r.contactId);this.suggestions=n.filter(r=>!o.includes(r.contactId)),this.showError=!!this.inputValue&&this.inputValue.length>=this.minTermLength&&this.suggestions.length<1})}ngAfterViewInit(){this.updateWidth(),this.cdRef.detectChanges()}ngOnChanges(n){n.config&&(this.values=[],this.inputValue="",this.suggestions=[],this.showSuggestions=!0,this.minTermLength=3,this.placeholderText="",n.config.showSuggestions!==void 0&&(this.showSuggestions=n.config.showSuggestions),n.config.minTermLength!==void 0&&(this.minTermLength=n.config.minTermLength),n.config.placeholderText!==void 0&&(this.placeholderText=n.config.placeholderText),this.updateWidth())}updateWidth(){this.inputElement&&(this.width="",setTimeout(()=>{let n=this.inputElement.nativeElement.getBoundingClientRect().left,o=this.inputElement.nativeElement.parentElement.getBoundingClientRect().left,r=n-o-8;r===0?this.width="100%":this.width=`calc(100% - ${r}px)`},100))}onInput(n){this.inputValue=n.target.value}onDelete(n){this.values.splice(n,1),this.updateWidth(),this.onChange.next(this.values)}onKeyUp(n){switch(n.key){case"ArrowUp":this.currentSuggestionIndex===0&&(this.inputValue=this.lastSearchTerm,this.currentSuggestionIndex--),this.currentSuggestionIndex>0&&this.suggestions.length>0&&(this.currentSuggestionIndex--,this.inputValue=this.suggestions[this.currentSuggestionIndex].name);return;case"ArrowDown":this.currentSuggestionIndex<this.suggestions.length-1&&this.suggestions.length>0&&(this.currentSuggestionIndex++,this.inputValue=this.suggestions[this.currentSuggestionIndex].name);return;case"Enter":this.currentSuggestionIndex>=0&&this.selectSuggestion(this.currentSuggestionIndex);return;case"Escape":this.querySubject.next(null);return;default:this.inputValue.length>=this.minTermLength?(this.lastSearchTerm=this.inputValue,this.querySubject.next(this.inputValue),this.currentSuggestionIndex=-1):this.querySubject.next(null);return}}selectSuggestion(n){this.suggestions[n]&&(this.values.push(this.suggestions[n]),this.inputValue="",this.suggestions=[],this.updateWidth(),setTimeout(()=>{this.inputElement.nativeElement.focus()},100),this.onChange.next(this.values))}testService(){typeof this.config.service.search!="function"&&console.error("MISSING FUNCTION: Custom Autocomplete service is missing 'search()' method.")}onBlur(){this.showSuggestions=!1,this.isFocused=!1}onFocus(){this.showSuggestions=!0,this.isFocused=!0}};t.\u0275fac=function(o){return new(o||t)(O(Ii))},t.\u0275cmp=U({type:t,selectors:[["fab-autocomplete-multiselect"]],viewQuery:function(o,r){if(o&1&&Ue(y$,5),o&2){let a;Me(a=Te())&&(r.inputElement=a.first)}},inputs:{config:"config"},outputs:{onChange:"onChange"},standalone:!1,features:[Ye],ngContentSelectors:xc,decls:8,vars:10,consts:[["input",""],[1,"autocomplete-multiselect",3,"ngClass"],[1,"autocomplete-multiselect__selection"],["type","text",1,"autocomplete-multiselect__input",3,"input","keyup","blur","focus","value","placeholder"],[1,"suggestions"],["type","button",3,"click"],[1,"suggestions__message",3,"innerHtml"],[1,"suggestions__loader"]],template:function(o,r){if(o&1){let a=P();en(),p(0,"div",1),X(1,x$,4,1,"span",2,se),p(3,"input",3,0),T("input",function(l){return k(a),E(r.onInput(l))})("keyup",function(l){return k(a),E(r.onKeyUp(l))})("blur",function(){return k(a),E(r.onBlur())})("focus",function(){return k(a),E(r.onFocus())}
765),u(),y(5,S$,2,0,"div",4),y(6,k$,2,1,"div",4),y(7,E$,3,0,"div",4),u()}o&2&&(v("ngClass",z(8,w$,r.isFocused)),d(),ee(r.values),d(2),xt("width",r.width),v("value",r.inputValue)("placeholder",r.placeholderText),d(2),w(r.showSuggestions&&(r.suggestions!=null&&r.suggestions.length)?5:-1),d(),w(r.config.showError&&r.showSuggestions&&r.showError?6:-1),d(),w(r.isLoading?7:-1))},dependencies:[Ce,Vo],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.autocomplete-multiselect{position:relative;box-sizing:border-box;display:inline-block;width:100%;font-size:16px;padding:0 6px;border:2px solid rgb(229.5,229.5,229.5);background:#fff;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px}.autocomplete-multiselect.focus{border-color:#fac05c}.autocomplete-multiselect__selection{display:inline-flex;margin:4px 5px 4px 0;background:#00ab4e;color:#fff;padding:3px;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;height:20px;font-size:14px}.autocomplete-multiselect__selection button{display:inline-block;background:transparent;border:none;margin-left:3px}.autocomplete-multiselect__input{border:none;font-size:16px;padding:0;height:32px;min-width:100px;background:transparent;width:auto}.autocomplete-multiselect__input:focus,.autocomplete-multiselect__input:active{outline:none}.autocomplete-multiselect .suggestions{position:absolute;top:100%;left:0;z-index:2;width:100%;padding:0 5px;background:#fff;box-sizing:border-box;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;box-shadow:0 6px 16px #0000000d;border:solid 2px rgb(229.5,229.5,229.5)}.autocomplete-multiselect .suggestions__message{padding:10px 0 10px 5px;color:#e22b25;font-size:11px}@media (min-width: 1200px){.autocomplete-multiselect .suggestions__message{font-size:14px}}.autocomplete-multiselect .suggestions--label{top:77px}.autocomplete-multiselect .suggestions__header{margin-top:1em;color:#8d8d8d;font-size:12;line-height:1.5;padding:10px 0 10px 5px}.autocomplete-multiselect .suggestions__option{display:flex;justify-content:space-between;cursor:pointer;white-space:pre}.autocomplete-multiselect .suggestions__option span{border-radius:3px;display:flex;padding:5px}.autocomplete-multiselect .suggestions__option.selected{background-color:#e6e6e6!important;font-family:Open Sans,Arial,Helvetica,"sans-serif";font-size:16px;font-weight:600;line-height:1.5;text-align:left}.autocomplete-multiselect .suggestions__option:hover{background-color:#f2f2f2}.autocomplete-multiselect .suggestions__loader .loader{border:8px solid #f3f3f3;border-top:8px solid #00ab4e;width:30px;height:30px;margin:15px auto} 766`],encapsulation:2});let e=t;return e})(),xa=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge]});let e=t;return e})(),Pre=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,xa]});let e=t;return e})(),Wp=(()=>{let t=class t{constructor(){this.currentIndex=-1,this.focus=!1,this.pristineInput=!0,this.focusedInput=!1,this.requiredInput=!1,this.dirtyInput=!1,this.placeHolderText="",this.querySubject=new Xi,this.hasBeenFocused=!1,this.showAllSuggestions=!1,this.treatAsDropDown=!1,this.isLoading=!1,this.termLength=2,this.showSuggestions=!0,this.results=[],this.search={context:void 0,term:void 0},this.onChange=n=>{},this.onTouched=()=>{}}ngOnInit(){if(this.service&&(this.testService(),this.content.preselectFromSearchService&&this.service.search("").pipe(ot(1)).subscribe(n=>this.results=n)),typeof this.content.label<"u"&&!this.content.required&&(this.content.label+=" (optional)"),this.content.required&&(this.requiredInput=!0),this.placeHolderText=this.content.placeholder,this.dataListPrefillItem!=null){let n=-1;this.results=this.dataList.map((o,r)=>{let a={id:o.organisationId,label:o.name,data:o.organisationId};return a.label===this.dataListPrefillItem.label&&(n=r),a}),this.selectSuggestion(n,!1)}this.alwaysShowSuggestions&&(this.treatAsDropDown=this.alwaysShowSuggestions),this.blankValidationMessage=this.content.validationBlankMessage?this.content.validationBlankMessage:"Enter your "+this.content.label.toLowerCase().replace(/<\/?[^>]+(>
766|$)/g,""),this.querySubject.pipe(Ho(100),ht(n=>(this.showError=!1,this.isLoading=!0,n?this.service.search(n).pipe(he(o=>Q([]))):Q([])))).subscribe(n=>{this.isLoading=!1,n===void 0||n.length===0?(this.showSuggestions=!1,this.results=[],this.errorStatus=!0):(this.errorStatus=!1,this.results=n,this.showSuggestions=!0)}),this.formControl.value&&this.writeValue(this.formControl.value)}ngOnChanges(n){n?.dataListPrefillItem?.currentValue?.label&&n.dataListPrefillItem.currentValue.id&&(this.search={id:n.dataListPrefillItem.currentValue.id,term:n.dataListPrefillItem.currentValue.label}),n.dataList?.currentValue&&(this.dataList=n.dataList.currentValue)}termChange(n){if(this.pristineInput=!1,this.dirtyInput=!0,this.formControl.markAsDirty(),this.charCount=n.target.value.length,this.charCount<this.termLength){this.results=null,this.selectSuggestion(-1);return}if(this.selection&&n.target.value!==this.selection.label&&(this.selection=null,this.selectSuggestion(-1)),n.type==="keyup")switch(n.key){case"ArrowUp":case"Up":this.currentIndex===0&&(this.search.term=this.tempTerm,this.currentIndex--),this.currentIndex>0&&this.results.length>0&&(this.currentIndex--,this.search.term=this.results[this.currentIndex].label);return;case"ArrowDown":case"Down":this.currentIndex<this.results.length-1&&this.results.length>0&&(this.currentIndex++,this.search.term=this.results[this.currentIndex].label);return;case"Enter":case"Spacebar":this.currentIndex!==t.NO_VALUE_SELECTED&&this.selectSuggestion(this.currentIndex,!1);return;case"Escape":this.removeSuggestions(n);return;default:this.doSearch(n.target.value),this.currentIndex=-1;return}}removeSuggestions(n){this.toggleFocus(!1),typeof this.search.id<"u"&&this.selection!=null&&n.target.value!==this.selection.label&&(this.selection=null,this.onChange("")),(this.selection===""||this.selection==null)&&(this.placeHolderText=this.content.placeholder),(this.results===null||this.results.length===0)&&this.errorStatus&&this.showError&&this.currentIndex===-1&&(this.errorStatus=!1),this.onTouched(),this.results=[]}selectSuggestion(n,o=!1){this.writeValue(this.results?.[n]),n>=0&&(this.search.term=this.results[n].label,this.search.id=this.results[n].id),this.results=[]}doSearch(n){if(this.search.term=n,this.tempTerm=n,this.service)this.querySubject.next(n);else if(this.dataList){n=n.toLowerCase();let o=this.dataList.filter(a=>a.name.toLowerCase().indexOf(n)!==-1),r=[];o.forEach((a,s)=>{let l={id:a.organisationId,label:a.name,data:a.organisationId};r.push(l)}),r===void 0||r.length===0?(this.showSuggestions=!1,this.results=[],this.showError=this.showError,this.errorStatus=!0):(this.errorStatus=!1,this.results=r,this.showSuggestions=!0)}}toggleFocus(n){n===!0&&(this.hasBeenFocused=!0,this.alwaysShowSuggestions&&(this.showAllSuggestions=this.alwaysShowSuggestions,this.doSearch(""))),this.hasBeenFocused&&(this.focusedInput=!this.focusedInput),this.pristineInput=!1,this.alwaysShowSuggestions||(this.results=null),this.focusedInput&&(this.placeHolderText=""),n||(this.showAllSuggestions=!1)}testService(){typeof this.service.search!="function"&&console.error("MISSING FUNCTION: Custom Autocomplete service is missing 'search()' method.")}writeValue(n){this.selection=n,this.onChange(n)}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}};t.NO_VALUE_SELECTED=-1,t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-autocomplete-validation"]],inputs:{service:"service",dataList:"dataList",dataListPrefillItem:"dataListPrefillItem",termLength:"termLength",showSuggestions:"showSuggestions",content:"content",formControl:"formControl",showError:"showError",errorMessage:"errorMessage",alwaysShowSuggestions:"alwaysShowSuggestions",searchContext:"searchContext"},outputs:{results:"results",search:"search"},standalone:!1,features:[St([{provide:Zt,useExisting:Wt(()=>t),multi:!0},Ls]),Ye],ngContentSelectors:xc,decls:21,vars:21,consts:[[1,"autocomplete-validation"],[1,"row"],[1,"row","form-fieldcontainer"],[1,"col-md-8","col-sm-10","col-xs-10"],[1,""],[1,"fab-autocomplete"],[1,"fab-autocomplete__form"],["name","context",1,"fab-autocomplete__context",3,"ngModel"],["id","fab-autocomplete-validation","type","text","autocomplete","off","name","fab-autocomplete",1,"fab-autocomplete__form-control",3,"keyup","focus","blur","change","ngModelChange","ngClass","value","placeholder","ngModel","disabled"],[1,"icon","icon-loop2","spin"],[1,"icon","icon-arrow-down","positioned"],[1,"suggestion"],[1,"suggestion","suggestion--error"],[1,"col-md-1","col-xs-2"],[1,"form__icon"],[3,"ngClass"],[1,"row","form__feedbackcontainer"],[1,"col-md-10","col-sm-10","col-xs-10"],["for","fab-autocomplete-validation"],[1,"form__labelcontainer",3,"innerHTML"],["name","context",1,"fab-autocomplete__context",3,"ngModelChange","ngModel"],[3,"selected","ngValue"],[1,"suggestion__header"],[1,"suggestion__message",3,"innerHtml"],[1,"form__tooltip"]],template:function(o,r){o&1&&(en(),p(0,"div",0),y(1,T$,4,1,"div",1),p(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"form",6),y(7,D$,3,1,"select",7),p(8,"div")(9,"input",8),T("keyup",function(s){return r.termChange(s)})("focus",function(){return r.toggleFocus(!0)})("blur",function(s){return r.removeSuggestions(s)})("change",function(s){return r.termChange(s)}),Jt("ngModelChange",function(s){return Qt(r.search.term,s)||(r.search.term=s),s}),u(),y(10,P$,1,0,"i",9),y(11,R$,1,0,"i",10),u()(),y(12,F$,2,0,"section",11),y(13,O$,4,1,"section",12),u()()(),p(14,"div",13)(15,"div",14),x(16,"i",15),u()()(),p(17,"div",16),y(18,A$,2,1,"div"),y(19,L$,2,1,"div"),u(),y(20,N$,4,1,"div",1),u()),o&2&&(d(),w(r.content.label?1:-1),d(6),w(r.searchContext?7:-1),d(2),v("ngClass",Re(15,M$,r.selection!=null&&r.selection!=""&&!r.formControl.disabled,!r.focusedInput&&r.formControl.touched&&r.requiredInput&&(r.selection==null||r.selection==="")||r.formControl&&r.formControl.invalid&&r.formControl.dirty&&r.formControl.touched))("value",r.search.term)("placeholder",r.placeHolderText),Kt("ngModel",r.search.term),v("disabled",r.formControl.disabled),d(),w(r.isLoading?10:-1),d(),w(!r.isLoading&&r.treatAsDropDown?11:-1),d(),w(r.showAllSuggestions||r.results!=null&&r.results.length?12:-1),d(),w(r.charCount>=2&&!(r.results!=null&&r.results.length)&&r.showError&&r.errorStatus?13:-1),d(3),v("ngClass",Re(18,Ap,r.selection!=null&&r.selection!=""&&!r.formControl.disabled,r.formControl&&!r.focusedInput&&r.formControl.touched&&r.requiredInput&&(r.selection==null||r.selection==="")||r.formControl&&r.formControl.invalid&&r.formControl.dirty&&r.formControl.touched&&!r.focusedInput)),d(2),w(!r.focusedInput&&(r.search.term==null||r.search.term==="")&&r.formControl&&r.formControl.touched&&r.content.required?18:-1),d(),w(!r.focusedInput&&r.search.term&&r.formControl&&r.formControl.invalid&&r.formControl.dirty&&r.formControl.touched&&r.errorMessage?19:-1),d(),w(r.content.toolTip?20:-1))},dependencies:[Ce,ho,ol,rl,Bi,nl,Qe,ct,po,gh],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.autocomplete-validation .fab-autocomplete{position:relative;font-family:Open Sans,Arial,Helvetica,"sans-serif";font-size:16px;line-height:1.5;text-align:left;display:-ms-flex;width:100%}.autocomplete-validation .fab-autocomplete__input-container{overflow:hidden}.autocomplete-validation .fab-autocomplete__form{box-sizing:border-box;display:-ms-flex;width:100%}.autocomplete-validation .fab-autocomplete__form-control{box-sizing:border-box;display:inline-block;width:100%;font-size:16px;padding:6px;border:2px solid rgb(229.5,229.5,229.5);-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;border-radius:5px}.autocomplete-validation .fab-autocomplete__form-control:focus{outline:none;border:solid #fac05c}.autocomplete-validation .fab-autocomplete__form-control--valid{-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;background-color:#fff;border:solid 4px #008048}.autocomplete-validation .fab-autocomplete__form-control--valid:focus{outline:none;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;border:solid #fac05c;background-color:#fff;-moz-box-shadow:inset 0 0 0 4px #008048;-webkit-box-shadow:inset 0 0 0 4px #008048;box-shadow:inset 0 0 0 4px #008048}.autocomplete-validation .fab-autocomplete__form-control--invalid{-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;background-color:#fff;border:solid #e22b25}.autocomplete-validation .fab-autocomplete__form-control--invalid:focus{-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.autocomplete-validation .fab-autocomplete__context{background-color:#e22b25;float:left}.autocomplete-validation .fab-autocomplete__context:focus{z-index:1}.autocomplete-validation .fab-autocomplete .suggestion{position:absolute;padding:5px;margin:5px 0;z-index:2}.autocomplete-validation .fab-autocomplete .suggestion__message{padding:10px 0 10px 5px;color:#e22b25;font-size:11px}@media (min-width: 1200px){.autocomplete-validation .fab-autocomplete .suggestion__message{font-size:14px}}.autocomplete-validation .fab-autocomplete .suggestion{top:50px;background:#fff;width:100%;box-sizing:border-box;border-radius:3px;box-shadow:0 6px 16px #0000000d;border:solid 2px rgb(229.5,229.5,229.5);clear:both}.autocomplete-validation .fab-autocomplete .suggestion__header{color:#8d8d8d;font-size:12;line-height:1.5;padding:10px 0 10px 5px}.autocomplete-validation .fab-autocomplete .suggestion__option{dis
766play:block;cursor:pointer}.autocomplete-validation .fab-autocomplete .suggestion__option span,.autocomplete-validation .fab-autocomplete .suggestion__option a{border-radius:3px;display:block}.autocomplete-validation .fab-autocomplete .suggestion__option .selected{background-color:#e6e6e6!important;font-family:Open Sans,Arial,Helvetica,"sans-serif";font-size:16px;font-weight:600;line-height:1.5;text-align:left}.autocomplete-validation .fab-autocomplete .suggestion__option:hover span,.autocomplete-validation .fab-autocomplete .suggestion__option:hover a{background-color:#f2f2f2}.autocomplete-validation .fab-autocomplete i.positioned:before{position:relative;bottom:30px;left:88%}@media (min-width: 768px){.autocomplete-validation .fab-autocomplete i.positioned:before{left:94%}}.autocomplete-validation .fab-autocomplete i.spin{position:absolute;top:calc(50% - 8px);left:88%;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-ms-transform-origin:50% 50%;-webkit-animation:spin 1.5s linear infinite;-moz-animation:spin 1.5s linear infinite;-o-animation:spin 1.5s linear infinite;animation:spin 1.5s linear infinite}@media (min-width: 768px){.autocomplete-validation .fab-autocomplete i.spin{left:94%}}.autocomplete-validation .form__labelcontainer{display:block;width:100%;padding-bottom:.2em}.autocomplete-validation .form__labelcontainer span{font-size:14px}@media (min-width: 992px){.autocomplete-validation .form__labelcontainer span{font-size:11px}}.autocomplete-validation .form__feedbackcontainer div{margin-bottom:0;margin-top:0;font-weight:600;font-size:11px;color:#e22b25}@media (min-width: 992px){.autocomplete-validation .form__feedbackcontainer div{font-size:14px}}.autocomplete-validation p.form__tooltip{margin-top:0;font-size:.9em}.autocomplete-validation .icon-success{color:#008048}.autocomplete-validation .icon-error{color:#e22b25}.autocomplete-validation .form__icon{padding-left:15px;padding-top:8px}.autocomplete-validation input[disabled]{cursor:not-allowed!important;opacity:.6} 767`],encapsulation:2});let e=t;return e})(),CE=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,Rt]});let e=t;return e})(),Rre=(()=>{let t=class t{constructor(){this.termLength=3,this.placeHolderText="",this.results=[],this.search={context:null,term:null,data:null,id:null},this.currentIndex=-1,this.onChange=n=>{},this.onTouched=()=>{}}ngOnInit(){this.testService(),typeof this.searchFromUrl=="string"&&this.searchFromUrl.length&&(this.search.term=this.searchFromUrl),this.searchContext&&(this.search.context=this.searchContext[0])}ngOnChanges(n){}termChange(n){if(this.charCount=n.target.value.length,n.target.value.length<this.termLength){this.results=null;return}switch(n.key){case"ArrowUp":this.currentIndex===0&&(this.search.term=this.tempTerm,this.currentIndex--),this.currentIndex>0&&this.results.length>0&&(this.currentIndex--,this.search.term=this.results[this.currentIndex].label);return;case"ArrowDown":this.currentIndex<this.results.length-1&&this.results.length>0&&(this.currentIndex++,this.search.term=this.results[this.currentIndex].label);return;case"Enter":this.currentIndex&&this.currentIndex>0?this.selectSuggestion(this.currentIndex,!1):this.writeValue(this.search.term),this.results=[],this.service.onSubmit(this.search);return;case"Escape":this.removeSuggestions();return;default:this.doSearch(n.target.value),this.currentIndex=-1;return}}removeSuggestions(n=null){this.onTouched(),(!this.results||this.results.length===0)&&this.errorStatus&&this.showError&&this.currentIndex===-1&&(this.errorStatus=!1,this.search.term=""),this.results=[]}selectSuggestion(n,o=!1){n>=0&&this.results&&this.results[n]&&(this.writeValue(this.results[n]),this.search.term=this.results[n].label,this.search.id=this.results[n].id,this.search.data=this.results[n].data),this.results=[],o||this.service.onSubmit(this.search)}doSearch(n){this.search.term=n,this.tempTerm=n,this.service.search(n).subscribe(o=>{o===void 0||o.length===0?(this.showSuggestions=!1,this.results=[],this.showError=this.showError,this.errorStatus=!0):(this.results=o,this.showSuggestions=!0)})}serviceSubmit(n){n.preventDefault(),this.service.onSubmit(this.search)}testService(){typeof this.service.search!="function"&&console.error("MISSING FUNCTION: Custom Autocomplete service is missing 'search()' method."),typeof this.service.onSubmit!="function"&&console.error("MISSING FUNCTION: Custom Autocomplete service is missing 'onSubmit()' method.")}writeValue(n){this.onChange(n)}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-autocomplete"]],inputs:{service:"service",searchFromUrl:"searchFromUrl",termLength:"termLength",showSuggestions:"showSuggestions",placeHolderText:"placeHolderText",label:"label",showError:"showError",errorMessage:"errorMessage",searchContext:"searchContext"},outputs:{results:"results",search:"search"},standalone:!1,features:[St([{provide:Zt,useExisting:Wt(()=>t),multi:!0}]),Ye],ngContentSelectors:xc,decls:9,vars:7,consts:[[1,"fab-autocomplete"],[1,"fab-autocomplete__form"],[1,"fab-autocomplete__label"],[1,"fab-autocomplete__inner"],["name","context",1,"fab-autocomplete__context",3,"ngModel"],["type","text","autocomplete","off","name","fab-autocomplete",1,"fab-autocomplete__field",3,"keyup","paste","blur","ngModelChange","value","placeholder","ngModel"],["type","button",1,"fab-autocomplete__submit","icon-search",3,"click"],[1,"suggestion",3,"ngClass"],[1,"suggestion","suggestion--error"],["name","context",1,"fab-autocomplete__context",3,"ngModelChange","ngModel"],[3,"selected","ngValue"],[1,"suggestion__header"],[1,"suggestion__message",3,"innerHtml"]],template:function(o,r){o&1&&(en(),p(0,"div",0)(1,"form",1),y(2,z$,3,1,"div",2),p(3,"div",3),y(4,V$,3,1,"select",4),p(5,"input",5),T("keyup",function(s){return r.termChange(s)})("paste",function(s){return r.termChange(s)})("blur",function(){return r.removeSuggestions("blur")}),Jt("ngModelChange",function(s){return Qt(r.search.term,s)||(r.search.term=s),s}),u(),p(6,"button",6),T("click",function(s){return r.serviceSubmit(s)}),u()()(),y(7,H$,2,3,"section",7),y(8,G$,4,1,"section",8),u()),o&2&&(d(2),w(r.label?2:-1),d(2),w(r.searchContext?4:-1),d(),v("value",r.searchFromUrl??r.search.term)("placeholder",r.placeHolderText),Kt("ngModel",r.search.term),d(2),w(r.results!=null&&r.results.length?7:-1),d(),w(r.charCount>=3&&!(r.results!=null&&r.results.length)&&r.showError&&r.errorStatus?8:-1))},dependencies:[Ce,ho,ol,rl,Bi,nl,Qe,ct,po,gh],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.fab-autocomplete{font-size:14px;position:relative}.fab-autocomplete__inner{font-family:Open Sans,Arial,Helvetica,"sans-serif";font-size:16px;line-height:1.5;text-align:left;border-radius:3px;border:solid 2px rgb(229.5,229.5,229.5);display:flex;width:100%;box-sizing:border-box;background:#fff}.fab-autocomplete__label{display:flex;width:100%;margin-bottom:5px}.fab-autocomplete__input-container{overflow:hidden}.fab-autocomplete__form{position:relative}.fab-autocomplete__context{float:left;border:0;border-right:solid 2px rgb(229.5,229.5,229.5);border-radius:none}.fab-autocomplete__context:focus{z-index:1}.fab-autocomplete__field{padding:10px;box-sizing:border-box;height:48px;display:inline-block;width:100%;border:0}.fab-autocomplete__field:focus{outline:none;border:solid #fac05c}.fab-autocomplete__submit{display:inline-block;right:0;top:0;background:none;border:0;font-size:22;padding:0 15px}.fab-autocomplete .suggestion{left:0;position:absolute;padding:5px;margin:5px 0;z-index:2}.fab-autocomplete .suggestion__message{padding:10px 0 10px 5px;color:#e22b25;font-size:11px}@media (min-width: 1200px){.fab-autocomplete .suggestion__message{font-size:14px}}.fab-autocomplete .suggestion{top:52px;background:#fff;width:100%;box-sizing:border-box;border-radius:3px;box-shadow:0 6px 16px #0000000d;border:solid 2px rgb(229.5,229.5,229.5);clear:both}.fab-autocomplete .suggestion--label{top:77px}.fab-autocomplete .suggestion__header{color:#8d8d8d;font-size:12;line-height:1.5;padding:10px 0 10px 5px}
767.fab-autocomplete .suggestion__option{display:block;cursor:pointer;text-align:left}.fab-autocomplete .suggestion__option span,.fab-autocomplete .suggestion__option a{border-radius:3px;display:block;padding:5px}.fab-autocomplete .suggestion__option .selected{background-color:#e6e6e6!important;font-family:Open Sans,Arial,Helvetica,"sans-serif";font-size:16px;font-weight:600;line-height:1.5}.fab-autocomplete .suggestion__option:hover span,.fab-autocomplete .suggestion__option:hover a{background-color:#f2f2f2} 768`],encapsulation:2});let e=t;return e})(),U0=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,Rt]});let e=t;return e})(),Fre=(()=>{let t=class t{get invalid(){return this.control?this.control.invalid:!1}get touched(){return this.control?this.control.touched:!1}get value(){return this.control.value?typeof this.control.value=="string"||typeof this.control.value=="number"?this.control.value:this.control.value.label:this.control.value}set value(n){this.control.valueAccessor.writeValue(n)}constructor(n){this.control=n,this.multiSelectOutput=new L,this.term=new L,this.values=[],this.results=[],this.search={context:null,term:null,data:null,id:null},this.currentIndex=-1,this.searchText$=new no,this.isLoading=!1,this.onChange=o=>{},this.onTouched=()=>{},this.control&&(this.control.valueAccessor=this),this.searchText$.pipe(Ho(500),ao(()=>{this.isLoading=!0}),ht(o=>this.service.search(o).pipe(he(r=>(console.log("Error:",r),Q([])))))).subscribe({next:o=>{this.isLoading=!1,o===void 0||o.length===0?(this.results=[],this.errorStatus=!0):this.results=o},error:o=>{this.isLoading=!1,console.log(o),this.results=[]}})}ngOnInit(){typeof this.content.initialSearchTerm=="string"&&this.content.initialSearchTerm.length&&(this.search.term=this.content.initialSearchTerm),this.searchContext&&(this.search.context=this.searchContext[0])}termChange(n){let o=n?.target;if(this.errorStatus=!1,!o?.value){this.results=[];return}if(o?.value&&(this.charCount=o.value.length,this.value=o.value,this.term.emit(this.value),o.value.length<this.content.termLength)){this.results=[];return}if(n instanceof KeyboardEvent)switch(n.key){case"ArrowUp":this.currentIndex===0&&this.currentIndex--,this.currentIndex>0&&this.results.length>0&&(this.currentIndex--,this.search.term=this.results[this.currentIndex].label);return;case"ArrowDown":this.currentIndex<this.results.length-1&&this.results.length>0&&(this.currentIndex++,this.search.term=this.results[this.currentIndex].label);return;case"Enter":this.currentIndex=this.currentIndex>0?this.currentIndex:0,this.selectSuggestion(this.currentIndex,!1);return;case"Spacebar":this.currentIndex!==-1&&this.selectSuggestion(this.currentIndex,!1);return;case"Escape":this.removeSuggestions();return;default:this.doSearch(o.value),this.currentIndex=-1;return}}removeSuggestions(){this.onTouched(),(this.results===void 0||this.results&&this.results.length===0)&&this.errorStatus&&this.content.showError&&this.currentIndex===-1&&(this.errorStatus=!1,this.search.term=""),this.results=[]}selectSuggestion(n,o=!1){this.content.multiSelect&&this.results.length<1||(this.value=this.results[n],this.content.multiSelect&&(this.values.push(this.results[n]),this.value="",this.multiSelectOutput.emit(this.values)),n>=0&&this.results[n]&&(this.search.term=this.results[n].label,this.search.id=this.results[n].id,this.search.data=this.results[n].data),this.results=[])}doSearch(n){this.search.term=n,this.searchText$.next(n)}getData(n=""){this.service.search(n).pipe()}serviceSubmit(n){n.preventDefault(),this.service.onSubmit(this.value)}onDelete(n){let o=this.values;o.splice(n,1),this.values=o,this.multiSelectOutput.emit(this.values)}unselectAllValues(){this.values=[]}writeValue(n){this.onChange(n)}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}};t.\u0275fac=function(o){return new(o||t)(O(Pv))},t.\u0275cmp=U({type:t,selectors:[["fab-autocomplete2"]],inputs:{content:"content",service:"service",searchContext:"searchContext"},outputs:{multiSelectOutput:"multiSelectOutput",term:"term"},standalone:!1,ngContentSelectors:xc,decls:12,vars:19,consts:[[1,"fab-autocomplete"],[1,"fab-autocomplete__label"],[3,"ngClass"],["name","context",1,"fab-autocomplete__context",3,"ngModel"],["type","text","autocomplete","off","name","fab-autocomplete",1,"fab-autocomplete__field",3,"keyup","paste","blur","ngModelChange","placeholder","ngModel","ngClass"],["type","button",1,"fab-autocomplete__submit","icon-search"],[1,"fab-autocomplete__suggestions",3,"ngClass"],[1,"fab-autocomplete__suggestions"],[1,"fab-autocomplete__tooltip"],["name","context",1,"fab-autocomplete__context",3,"ngModelChange","ngModel"],[3,"selected","ngValue"],[1,"autocomplete-multiselect__selection"],["type","button",3,"click"],["type","button",1,"fab-autocomplete__submit","icon-search",3,"click"],[1,"fab-autocomplete__suggestions__message",3,"innerHtml"]],template:function(o,r){o&1&&(en(),p(0,"div",0),y(1,W$,3,1,"div",1),p(2,"div",2),y(3,q$,3,1,"select",3),y(4,K$,2,0),p(5,"input",4),T("keyup",function(s){return r.termChange(s)})("paste",function(s){return r.termChange(s)})("blur",function(){return r.onTouched(),r.removeSuggestions()}),Jt("ngModelChange",function(s){return Qt(r.value,s)||(r.value=s),s}),u(),y(6,Q$,1,0,"button",5),u(),y(7,J$,2,3,"section",6),y(8,Z$,2,3,"section",6),y(9,X$,2,1,"section",7),p(10,"p",8),C(11),u()()),o&2&&(d(),w(r.content.label?1:-1),d(),v("ngClass",Re(12,U$,r.content.multiSelect,!r.content.multiSelect)),d(),w(r.searchContext?3:-1),d(),w(r.content.multiSelect?4:-1),d(),v("placeholder",r.content.placeHolder),Kt("ngModel",r.value),v("ngClass",hi(15,j$,r.content.multiSelect,r.content.enableValidation&&!r.invali
768d,r.content.enableValidation&&r.invalid&&r.touched)),d(),w(r.content.hideSearchButton?-1:6),d(),w(r.results!=null&&r.results.length&&!r.isLoading?7:-1),d(),w(r.isLoading?8:-1),d(),w(r.charCount>=r.content.termLength&&!(r.results!=null&&r.results.length)&&r.content.showError&&r.errorStatus?9:-1),d(2),R(r.content.tooltip))},dependencies:[Ce,ol,rl,Bi,nl,Qe,po,Vo],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.fab-autocomplete{position:relative}.fab-autocomplete__label{display:flex;width:100%;margin-bottom:5px;font-weight:700}.fab-autocomplete__input-container{overflow:hidden}.fab-autocomplete__form{box-sizing:border-box;display:-ms-flex;width:100%}.fab-autocomplete__form-control{box-sizing:border-box;display:inline-block;width:100%;font-size:16px;padding:6px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;border-radius:5px}.fab-autocomplete__form-control--valid{-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;background-color:#fff;border:solid 3px #008048}.fab-autocomplete__form-control--invalid{-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;background-color:#fff;border:solid 3px #e22b25}.fab-autocomplete__context{float:left;border:0;border-right:solid 2px rgb(229.5,229.5,229.5);border-radius:none}.fab-autocomplete__context:focus{z-index:1}.fab-autocomplete__field{padding:15px;display:inline-block;width:100%;box-sizing:border-box}.fab-autocomplete__field:focus{outline:none;border:1px solid #fac05c}.fab-autocomplete__submit{display:inline-block;right:0;top:0;background:none;border:0;font-size:22;padding:0 15px}.fab-autocomplete__suggestions{border:1px solid rgb(238.425,238.425,238.425);border-bottom-width:2px;padding:15px 0;position:absolute;z-index:9;background:#fff;width:100%;box-sizing:border-box}.fab-autocomplete__suggestions--title{display:block;padding:0 30px 15px}.fab-autocomplete__suggestions li{cursor:pointer;padding:15px 30px;transition:all .5s ease;color:#000;margin:0}.fab-autocomplete__suggestions li:hover,.fab-autocomplete__suggestions li.selected{background:#eee}.fab-autocomplete__suggestions__message{padding:15px 30px;color:#e22b25}.fab-autocomplete__tooltip{margin-top:0;font-size:.9em}.autocomplete-multiselect{display:flex;flex-wrap:wrap;box-sizing:border-box;width:100%;font-size:16px;padding:0 6px;border:2px solid rgb(229.5,229.5,229.5);background:#fff;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px}.autocomplete-multiselect:focus,.autocomplete-multiselect:focus-within,.autocomplete-multiselect:active{border:solid 2px #fac05c}.autocomplete-multiselect__selection{display:inline-flex;margin:4px 5px 4px 0;background:#00ab4e;color:#fff;padding:3px;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;height:20px;font-size:14px}.autocomplete-multiselect__selection button{display:inline-block;background:transparent;border:none;margin-left:3px}.autocomplete-multiselect__input{border:none;font-size:16px;padding:0;height:32px;min-width:100px;flex-grow:100;overflow:visible;background:transparent;width:auto}.autocomplete-multiselect__input:focus,.autocomplete-multiselect__input:active{outline:none;border:none}.autocomplete-multiselect .suggestions{position:absolute;top:100%;left:0;z-index:2;width:100%;padding:5px;background:#fff;box-sizing:border-box;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;box-shadow:0 6px 16px #0000000d;border:solid 2px rgb(229.5,229.5,229.5)}.autocomplete-multiselect .suggestions__message{padding:10px 0 10px 5px;color:#e22b25;font-size:11px}@media (min-width: 1200px){.autocomplete-multiselect .suggestions__message{font-size:14px}}.autocomplete-multiselect .suggestions--label{top:77px}.autocomplete-multiselect .suggestions__header{margin-top:1em;color:#8d8d8d;font-size:12;line-height:1.5;padding:10px 0 10px 10px}.autocomplete-multiselect .suggestions__option{display:flex;justify-content:space-between;cursor:pointer;white-space:pre}.autocomplete-multiselect .suggestions__option span{border-radius:3px;display:flex;padding:5px}.autocomplete-multiselect .suggestions__option.selected{background-color:#e6e6e6!important;font-family:Open Sans,Arial,Helvetica,"sans-serif";font-size:16px;font-weight:700;line-height:1.5;text-align:left}.autocomplete-multiselect .suggestions__option:hover{background-color:#f2f2f2}.autocomplete-multiselect .suggestions__loader .loader{border:8px solid #f3f3f3;border-top:8px solid #00ab4e;width:30px;height:30px;margin:15px auto} 769`],encapsulation:2});let e=t;return e})(),Ore=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,Rt,Vi,xa]});let e=t;return e})(),Are=(()=>{let t=class t{constructor(){this.cartIcon={colour:li.GREEN,iconName:Zi.cart}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-basket-icon"]],inputs:{count:"count"},standalone:!1,decls:4,vars:2,consts:[["href","/registration/basket",1,"fab-basket-container"],[3,"content"],[1,"fab-basket-container--count"]],template:function(o,r){o&1&&(p(0,"a",0),x(1,"fab-aat-icon",1),p(2,"span",2),C(3),u()()),o&2&&(d(),v("content",r.cartIcon),d(2),R(r.count))},dependencies:[Zn],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.fab-basket-container[_ngcontent-%COMP%]{width:30px;height:30px;cursor:pointer;display:block}@media (min-width: 992px){.fab-basket-container[_ngcontent-%COMP%]{width:40px;height:30px}}.fab-basket-container--count[_ngcontent-%COMP%]{bottom:40px;left:20px;width:15px;height:15px;font-size:10px;display:inline-block;position:relative;border-radius:50%;text-align:center;color:#00ab4e;border:thin solid #00ab4e;background:#fff}@media (min-width: 992px){.fab-basket-container--count[_ngcontent-%COMP%]{bottom:50px;left:30px;width:20px;height:20px;font-size:12px;vertical-align:super}}"]}
769);let e=t;return e})(),Lre=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[Cr,ge]});let e=t;return e})();var vwe=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,Cr]});let e=t;return e})(),Nre=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-button-tab"]],inputs:{button:"button"},standalone:!1,decls:2,vars:2,consts:[[1,"button-tab",3,"ngClass","href"],[1,"button-tab",3,"ngClass","routerLink"]],template:function(o,r){o&1&&(y(0,eq,2,6,"a",0),y(1,tq,2,7,"a",1)),o&2&&(w(r.button.useRouterLink?-1:0),d(),w(r.button.useRouterLink?1:-1))},dependencies:[Ce,tt],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.button-tab[_ngcontent-%COMP%]{font-weight:400;font-size:14px;color:#000;position:relative;padding:23px 15px;display:inline-block;text-decoration:none}.button-tab--active[_ngcontent-%COMP%], .button-tab[_ngcontent-%COMP%]:hover{text-decoration:none;color:#00ab4e}.button-tab--active[_ngcontent-%COMP%]:after, .button-tab[_ngcontent-%COMP%]:hover:after{width:48px}.button-tab--active[_ngcontent-%COMP%]{font-weight:600}@media (min-width: 992px){.button-tab[_ngcontent-%COMP%]{font-size:16px}.button-tab[_ngcontent-%COMP%]:after{height:3px}}"]});let e=t;return e})(),zre=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,At]});let e=t;return e})(),Bre=(()=>{let t=class t{constructor(n){this.sanitizer=n,this.sanitizer=n}checkVideoIdValid(){let n=this.getVideoId();return n&&n.length>0}getVideoId(){return this.config.videoId}iframeSrc(){let n=this.getVideoId(),o=RegExp(/[0-9a-zA-Z-_]{11}/,"g"),r=RegExp(/[0-9]{9,12}/,"g"),a=RegExp(/(http|www)+/,"g"),s;return a.test(n)?s=n:r.test(n)?s=`https://player.vimeo.com/video/${n}?portrait=0`:o.test(n)&&(s=`https://www.youtube.com/embed/${n}?rel=0&showinfo=0`),this.config.autoplay&&(s+="&autoplay=1"),this.sanitizer.bypassSecurityTrustResourceUrl(s)}};t.\u0275fac=function(o){return new(o||t)(O(yn))},t.\u0275cmp=U({type:t,selectors:[["fab-video"]],inputs:{config:"config"},standalone:!1,decls:1,vars:1,consts:[[1,"video","dont-print"],["frameborder","0","allow","autoplay; encrypted-media","allowfullscreen","","referrerpolicy","strict-origin-when-cross-origin",3,"src"]],template:function(o,r){o&1&&y(0,iq,2,1,"div",0),o&2&&w(r.checkVideoIdValid()?0:-1)},styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.video{position:relative;padding-bottom:56.25%;padding-top:30px;height:0;overflow:hidden}.video iframe,.video object,.video embed{position:absolute;top:0;left:0;width:100%;height:100%} 770`],encapsulation:2,changeDetection:0});let e=t;return e})();var Vre=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge]});let e=t;return e})();var $p=(()=>{let t=class t{constructor(){this.outputReturnSelectedOptions=new L,this.focus=!1,this.dropdownSelectChanges=null,this.options=[],this.selectedCount=0}ngOnInit(){this.initControl()}ngOnChanges(n){this.initControl()}initControl(){this.optionsShown=!1,this.validationDisabled=this.content.validationDisabled,this.options=this.content.options,this.optionsLength=this.content.options.length,this.selectedCount=this.content.options.filter(n=>n.selected).length,this.selectedString=this.selectedCount?this.createPlaceholderString():this.content.placeholder,this.allSelected=!1,typeof this.content.label<"u"&&!this.content.required&&!this.content.label.includes("optional")&&(this.content.label+=" (optional)"),this.content.maximumSelectionAmount&&(this.maximumSelectionAmount=this.content.maximumSelectionAmount,this.checkMaximumHit()),this.content.disallowAll&&(this.disallowAll=this.content.disallowAll)}toggleOptionsShown(){this.optionsShown=!this.optionsShown}lostFocus(){this.timeoutObject=setTimeout(()=>{this.optionsShown=!1},250)}addValue(n,o){this.dropDownInputEl.nativeElement.focus(),clearTimeout(this.timeoutObject),this.selectedCount++,this.selectChanges(this.selectedCount),this.selectedCount===this.optionsLength&&this.selectOnlyAll(),this.options[o].selected=!0,this.selectedString=this.createPlaceholderString(),this.returnSelectedOptions(),this.checkMaximumHit()}removeValue(n,o){this.dropDownInputEl.nativeElement.focus(),clearTimeout(this.timeoutObject),this.selectedCount--,this.selectChanges(this.selectedCount),this.options[o].selected=!1,this.unselectOnlyAll(),this.selectedCount?this.selectedString=this.createPlaceholderString():this.selectedString=this.content.placeholder,this.returnSelectedOptions(),this.checkMaximumHit()}createPlaceholderString(){let n=[];for(let o of this.options)o.selected&&n.push(o.label);return n.join(", ")}selectOnlyAll(){this.allSelected=!0}unselectOnlyAll(){this.allSelected=!1}selectOrUnselectAllValues(n){this.allSelected=n!==void 0?n:!this.allSelected,this.options.forEach(o=>{o.selected=this.allSelected}),this.allSelected?(this.selectedCount=this.optionsLength,this.selectedString=this.createPlaceholderString()):this.allSelected||(this.selectedCount=0,this.selectedString=this.content.placeholder),this.selectChanges(this.selectedCount),this.returnSelectedOptions(),this.checkMaximumHit()}selectChanges(n=null){this.dropdownSelectChanges=n}returnSelectedOptions(){let n=[];this.allSelected?this.content.options.forEach((o,r)=>
770{n.push(this.options[r])}):this.options.forEach((o,r)=>{o.selected&&n.push(this.options[r])}),this.outputReturnSelectedOptions.emit(n)}checkMaximumHit(){this.maximumSelectionAmount&&this.selectedCount<this.maximumSelectionAmount?this.preventFurtherChanges=!1:this.maximumSelectionAmount&&this.selectedCount>=this.maximumSelectionAmount&&(this.preventFurtherChanges=!0)}closeOptions(){this.optionsShown=!1}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-dropdown"]],viewQuery:function(o,r){if(o&1&&Ue(nq,7),o&2){let a;Me(a=Te())&&(r.dropDownInputEl=a.first)}},inputs:{content:"content",formControl:"formControl"},outputs:{outputReturnSelectedOptions:"outputReturnSelectedOptions"},standalone:!1,features:[Ye],decls:16,vars:12,consts:[["dropDownInput",""],[1,"fab-dropdown","row"],[1,"dropdown-simple","col-md-8","col-sm-10","col-xs-10",3,"keydown.escape","ngClass"],[1,"row"],[1,"dropdown__control"],[1,"form-fieldcontainer","row"],[1,"dropdown","col-11","pl-0"],["tabindex","0",1,"dropdown__input",3,"click","keydown.enter","blur","ngClass"],[1,"icon","icon-arrow-down"],[1,"dropdown__options"],[1,"col-md-4","col-xs-2"],[1,"col-1","px-0","form-icon-padded"],[1,"row","form__feedbackcontainer"],[1,"dropdown__label"],[1,"form__labelcontainer",3,"ngClass"],[1,"form-icon-padded",3,"click"],[1,"icon","icon-arrow-up"],["tabindex","0",1,"dropdown__item","dropdown__item--all",3,"ngClass"],["tabindex","0",1,"dropdown__item","dropdown__item--option",3,"ngClass"],["tabindex","0",1,"dropdown__item","dropdown__item--all",3,"keydown.enter","click","ngClass"],[1,"dropdown__item__tickbox"],[1,"icon","icon-checkmark"],["tabindex","0",1,"dropdown__item","dropdown__item--option",3,"keydown.enter","click","ngClass"],[3,"ngClass"],[1,"form_error"]],template:function(o,r){if(o&1){let a=P();p(0,"div",1)(1,"div",2),T("keydown.escape",function(){return k(a),E(r.optionsShown=!1)}),y(2,cq,3,1,"div",3),p(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7,0),T("click",function(){return k(a),E(r.toggleOptionsShown())})("keydown.enter",function(){return k(a),E(r.toggleOptionsShown())})("blur",function(){return k(a),E(r.lostFocus())}),p(9,"p"),C(10),u(),x(11,"i",8),u(),y(12,pq,7,1,"div",9),u()()()()(),p(13,"div",10),y(14,hq,2,4,"div",11),y(15,gq,4,1,"div",12),u()()}o&2&&(d(),v("ngClass",z(7,oq,r.validationDisabled)),d(),w(r.content.label?2:-1),d(5),v("ngClass",Re(9,wc,r.dropdownSelectChanges&&!r.validationDisabled,r.content.required&&r.dropdownSelectChanges===0&&r.validationDisabled)),d(3),R(r.selectedString),d(2),w(r.optionsShown?12:-1),d(2),w(r.validationDisabled?-1:14),d(),w(r.content.required&&r.dropdownSelectChanges===0?15:-1))},dependencies:[Ce],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.fab-dropdown[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%]{width:100%;position:relative}.fab-dropdown[_ngcontent-%COMP%] .dropdown__control[_ngcontent-%COMP%], .fab-dropdown[_ngcontent-%COMP%] .dropdown__label[_ngcontent-%COMP%]{width:100%}.fab-dropdown[_ngcontent-%COMP%] .dropdown__input[_ngcontent-%COMP%], .fab-dropdown[_ngcontent-%COMP%] .dropdown__options[_ngcontent-%COMP%]{border:2px solid rgb(229.5,229.5,229.5);min-height:20px}.fab-dropdown[_ngcontent-%COMP%] .dropdown__options[_ngcontent-%COMP%]{max-height:500px;overflow:auto}.fab-dropdown[_ngcontent-%COMP%] .dropdown__input[_ngcontent-%COMP%]{cursor:pointer;position:relative;padding:7px 10px;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px}.fab-dropdown[_ngcontent-%COMP%] .dropdown__input[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:0;padding:0 20px 0 0;font-weight:400}.fab-dropdown[_ngcontent-%COMP%] .dropdown__input[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{position:absolute;top:50%;right:10px;transform:translateY(-50%);font-size:20px}.fab-dropdown[_ngcontent-%COMP%] .dropdown__input[_ngcontent-%COMP%]:focus, .fab-dropdown[_ngcontent-%COMP%] .dropdown__input[_ngcontent-%COMP%]:active{outline:none;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;border:4px solid #fac05c}.fab-dropdown[_ngcontent-%COMP%] .dropdown__options[_ngcontent-%COMP%]{z-index:2;position:absolute;bottom:0;transform:translateY(100%);box-shadow:0 30px 30px #0000001a;background-color:#fff;padding:6px}.fab-dropdown[_ngcontent-%COMP%] .dropdown__item[_ngcontent-%COMP%]{cursor:pointer;padding:10px 10px 10px 40px;position:relative}.fab-dropdown[_ngcontent-%COMP%] .dropdown__item[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:inline-block;padding:0;margin:0;font-weight:400}.fab-dropdown[_ngcontent-%COMP%] .dropdown__item__tickbox[_ngcontent-%COMP%]{position:absolute;top:10px;left:4px;display:inline-block;margin-right:10px;height:20px;width:20px;border:2px solid rgb(229.5,229.5,229.5);-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;background-color:#0000001a;box-sizing:border-box}.fab-dropdown[_ngcontent-%COMP%] .dropdown__item__tickbox[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:10px;color:#fff;display:none}.fab-dropdown[_ngcontent-%COMP%] .dropdown__item[_ngcontent-%COMP%]:focus, .fab-dropdown[_ngcontent-%COMP%] .dropdown__item[_ngcontent-%COMP%]:hover{background-color:#f8f8f8;outline:none}.fab-dropdown[_ngcontent-%COMP%] .dropdown__item--selected[_ngcontent-%COMP%] .dropdown__item__tickbox[_ngcontent-%COMP%]{border:none;background-color:#00ab4e}.fab-dropdown[_ngcontent-%COMP%] .dropdown__item--selected[_ngcontent-%COMP%] .dropdown__item__tickbox[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:block}.fab-dropdown[_ngcontent-%COMP%] .dropdown__item--disabled[_ngcontent-%COMP%]{cursor:default;pointer-events:none}.fab-dropdown[_ngcontent-%COMP%] .dropdown__item--disabled[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#c3c3c3}.fab-dropdown[_ngcontent-%COMP%] .dropdown__full[_ngcontent-%COMP%]{min-width:100%}.fab-dropdown[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%] .icon-arrow-up[_ngcontent-%COMP%]{float:right}.fab-dropdown[_ngcontent-%COMP%] .icon-success[_ngcontent-%COMP%]{color:#008048}.fab-dropdown[_ngcontent-%COMP%] .icon-error[_ngcontent-%COMP%]{color:#e22b25}.fab-dropdown[_ngcontent-%COMP%] .form__field-valid[_ngcontent-%COMP%]{border-radius:3px;background-color:#fff;border:solid 4px #008048}.fab-dropdown[_ngcontent-%COMP%] .form__field-invalid[_ngcontent-%COMP%]{border-radius:3px;background-color:#fff;border:solid #e22b25}.fab-dropdown[_ngcontent-%COMP%] .form__field-invalid[_ngcontent-%COMP%]:focus{-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.fab-dropdown[_ngcontent-%COMP%] .form_error[_ngcontent-%COMP%]{color:#e22b25;margin-bottom:.5em;margin-top:.7em;font-size:.8em;font-weight:700}.fab-dropdown[_ngcontent-%COMP%] .form-icon-padded[_ngcontent-%COMP%]{padding:10px 0 0 15px}.fab-dropdown[_ngcontent-%COMP%] .form__labelcontainer-bold[_ngcontent-%COMP%]{font-weight:700}"]});let e=t;return e})(),Cwe=(()=>{let t=class t{initDropdown(){this.multiDropdownContent.options=this.centre}constructor(n,o,r,a){this.centrePickerService=n,this.cacheService=o,this.authService=r,this.allowCentreChange=!0,this.change=new L,this.hasMultiEmitted=!1,this.centre=[],this.selectedItem=!1,this.isLoadingCentre=!1,this.placeHolderText="Cho
770ose a centre...",this.centresList={},this.isMultiSelectActive=!1,this.centreResults=[],this.isOpen=!1,this.confirmCentresEnabled=!1,this.isBrowser=!1,this.multiDropdownContent={placeholder:"Select multiple centres",allSelected:"Select all centres",validationDisabled:!0,options:[]},this.changeCentre={text:"Change Centre",type:"primary",action:{type:"callback",callback:()=>this.clearSelectedCentre()},aria:"Change Centre"},this.confirmCentres={text:"Confirm",type:"primary",action:{type:"callback",callback:()=>this.applySelectedCentres()},aria:"Confirm"},Ct(a)&&(this.isBrowser=!0),this.authService.getCurrentUser().pipe(ot(1)).subscribe({next:s=>{let l=s,c=l["cognito:groups"];this.memberId=l["custom:member_id"],this.isStaff=c.includes("staff")||c.includes("admin");let h=this.cacheService.getCookieFromCache("CentreDetails"),m=null,f=null;if(h.length>0){let b=JSON.parse(h);typeof b.UUID<"u"&&(m=b.UUID)}this.centrePickerService.getCentreList().subscribe(b=>{b.data&&(b=b.data),b.forEach(S=>{let M={label:S.name,name:S.name,value:S.accountNumber};this.centre.push(M),this.centresList[S.accountNumber]=S,m&&m===S.organisationId&&(f=S)});let _=sessionStorage.getItem("centre");f?(this.selectedItem=f,sessionStorage.setItem("centre",JSON.stringify(this.selectedItem)),this.chooseCentre(this.selectedItem,!1,_===JSON.stringify(this.selectedItem))):(this.selectedItem=b[0],sessionStorage.setItem("centre",JSON.stringify(this.selectedItem)),this.setCentreCookieDetails(this.selectedItem),this.chooseCentre(this.selectedItem,!1,_===JSON.stringify(this.selectedItem))),this.initDropdown()})}})}ngOnChanges(n){n&&n.allowCentreChange&&!n.allowCentreChange.isFirstChange()&&this.isMultiSelectActive&&!this.hasMultiEmitted&&this.changeMode("single")}compareFn(n,o){return!n||!o?!1:n.name===o.name}setCentreCookieDetails(n){let o={};o.memberId=this.memberId,o.UUID=n.organisationId;let r=JSON.stringify(o);this.cacheService.setCookieInCache("CentreDetails",r)}chooseCentre(n,o=!1,r=!1){if(o)this.selectedItem=n;else{let a=n.value;this.selectedItem=this.centresList[a]?this.centresList[a]:this.selectedItem}this.selectedItem&&(this.selectedItem.financialStop||this.selectedItem.currentL3SanctionsOrAbove)?this.errorMessage='This centre does not currently have access to this service. If you think it should have access, please <a href="/about/help-and-support" title="Contact us">contact us</a>.':this.errorMessage=null,sessionStorage.setItem("centre",JSON.stringify(this.selectedItem)),r||(this.centrePickerService.centreChange(this.selectedItem),this.setCentreCookieDetails(this.selectedItem)),this.change.emit(this.selectedItem)}clearSelectedCentre(){this.selectedItem=!1,sessionStorage.removeItem("centre"),this.change.emit(null)}toggle(){this.isOpen=!this.isOpen}onSearchUpdate(n){let{value:o}=n.target;if(n.key==="Enter"&&this.centreResults.length&&this.selectCentre(this.centreResults[0].id),o.length<2){this.centreResults=[];return}this.centrePickerService.search(o).subscribe(r=>{this.centreResults=r})}selectCentre(n){this.centrePickerService.getCentre(n).subscribe(o=>{this.chooseCentre(o,!0)})}changeMode(n){switch(n){case"single":this.isMultiSelectActive=!1,this.hasMultiEmitted&&this.change.emit(this.selectedItem);break;case"multi":this.isMultiSelectActive=!0,this.selectedCentres=void 0,this.centresToDisplay=void 0,this.confirmCentresEnabled=!1,this.multiDropdownContent.options.forEach(o=>{o.selected=!1}),this.hasMultiEmitted=!1;break}}getSelectedCentres(n){this.selectedCentres=n.map(o=>this.centresList[o.value]),this.confirmCentresEnabled=this.selectedCentres.length>1}applySelectedCentres(){this.confirmCentresEnabled&&(this.change.emit(this.selectedCentres),this.hasMultiEmitted=!0,this.centresToDisplay=this.selectedCentres)}canSelectMultiple(){return!(!this.centresList||Object.keys(this.centresList).length===1||!this.multiCentreConfig||!this.multiCentreConfig.enabled||this.multiCentreConfig.roles&&Object.values(this.centresList).some(n=>!n.role||!this.multiCentreConfig.roles.some(o=>n.role.split(", ").includes(o))))}};t.\u0275fac=function(o){return new(o||t)(O(QS),O(vr),O(st),O(gt))},t.\u0275cmp=U({type:t,selectors:[["fab-centre-picker"]],inputs:{userGroup:"userGroup",allowCentreChange:"allowCentreChange",multiCentreConfig:"multiCentreConfig"},outputs:{change:"change"},standalone:!1,features:[Ye],decls:5,vars:7,consts:[[1,"centre-picker",3,"ngClass"],[1,"centre-picker__inner"],[1,"centre-picker__mode-select"],[1,"centre-picker__head"],[1,"centre-picker__body"],[1,"form-group"],[1,"row"],[1,"col-xs-7","col-md-6"],[1,"col-xs-5","col-md-6"],[1,"row","centre-picker__centre"],[1,"col-xs-12","col-md-6"],[1,"centre-picker__name"],[1,"centre-picker__button"],[1,"centre-picker__toggle"],["tabindex","0"],["tabindex","0",3,"click","keydown.Enter"],[3,"button"],[1,"row","centre-picker__location"],[1,"row","centre-picker__details"],[1,"col-md-3"],[1,"col-md-9"],[1,"centre-picker__contact"],[1,"centre-picker__role"],["id","centre-picker","name","centre-picker",1,"form-control",3,"ngModelChange","compareWith","ngModel"],["value","changeCentre","selected",""],[3,"ngValue","selected"],[1,"centre-picker__address"],[1,"centre-picker__label-title"],[1,"centre-picker__label"],[3,"href"],[1,"form-addon","admin-select"],["type","text","autocomplete","off",1,"fab-autocomplete__field","form-control",3,"keyup","placeholder"],[3,"click"],[1,"centre-picker__select-multiple"],[1,"centre-picker__selected-centres",3,"ngClass"],[3,"outputReturnSelectedOptions","content"],[3,"button","enabled"]],template:function(o,r){o&1&&(p(0,"div",0),y(1,vq,1,0,"fab-loader"),y(2,Gq,4,3,"div",1),y(3,$q,3,2,"div",1),u(),y(4,Kq,3,1,"div",2)),o&2&&(v("ngClass",z(5,mq,!r.selectedItem)),d(),w(r.isLoadingCentre?1:-1),d(),w(!r.isLoadingCentre&&!r.isMultiSelectActive?2:-1),d(),w(!r.isLoadingCentre&&r.isMultiSelectActive&&r.canSelectMultiple()?3:-1),d(),w(r.allowCentreChange&&!r.isStaff&&r.canSelectMultiple()?4:-1))},dependencies:[Ce,ol,rl,nl,Qe,po,$p,Vo,Ee],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.centre-picker{padding:14px 10px 19px;background:#fff;border:1px solid rgb(229.5,229.5,229.5);-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px}.centre-picker--none{padding:0;border:none}.centre-picker h3{margin-bottom:15px}.centre-picker h2{padding-bottom:6px}.centre-picker a{word-break:break-word}.centre-picker__label{padding-right:6px}.centre-picker__contact{padding-bottom:16px}.centre-picker__button{padding-top:16px}.centre-picker__button a{margin:0}.centre-picker__address{padding-bottom:16px;padding-right:10px}.centre-picker__address address{font-style:normal}
770.centre-picker__address address span{display:block}.centre-picker__toggle{text-align:right;color:#00ab4e}.centre-picker__location{padding-top:19px;padding-bottom:16px}.centre-picker__mode-select{margin-top:20px}.centre-picker__select-multiple{display:flex;justify-content:space-between}.centre-picker__select-multiple fab-dropdown{display:block;flex-grow:1;max-width:calc(100% - 124px)}.centre-picker__select-multiple fab-dropdown .dropdown__input{background-color:#fff;border-color:#fff}.centre-picker__select-multiple fab-button{display:block}@media (max-width: 400px){.centre-picker__select-multiple{flex-wrap:wrap}.centre-picker__select-multiple fab-dropdown{max-width:100%}.centre-picker__select-multiple fab-button{margin-top:10px}}.centre-picker__selected-centres.mt-15{margin-top:15px}.centre-picker__selected-centres td{padding-top:5px}.centre-picker__selected-centres td:first-of-type{padding-right:15px}.admin-select{position:relative}.admin-select input{display:block;width:100%;box-sizing:border-box;height:calc(1.5em + .75rem + 2px);padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;background-color:#fff;background-clip:padding-box;border:1px solid rgb(229.5,229.5,229.5);border-radius:.25rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;outline:none;position:relative}.admin-select input:focus{border-color:#00ab4e;z-index:9999}.admin-select ul{display:none;position:absolute;top:calc(100% - 3px);left:0;background:#fff;z-index:999;right:0;border:1px solid rgb(229.5,229.5,229.5);max-height:300px;overflow:auto;border-radius:0 0 .25rem .25rem}.admin-select input:focus+ul,.admin-select ul:hover{display:block}.admin-select li{margin:0;padding:10px;cursor:pointer}.admin-select li:first-child{background-color:#e6e6e6}.admin-select ul:hover li:first-child:not(:hover){background:#fff}.admin-select ul:hover li:hover{background-color:#e6e6e6} 771`],encapsulation:2});let e=t;return e})(),Mc=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge]});let e=t;return e})(),bwe=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,Rt,U0,Hs,Mc,xa,Ee]});let e=t;return e})(),bc=(function(e){return e[e.START=0]="START",e[e.END=1]="END",e})(bc||{}),Hre=(()=>{let t=class t{constructor(n,o){this._renderer=n,this._document=o,this.isBrowser=Ct(xe(gt)),this.disableOpenModalButton=!1,this.step=bc.START,this.steps=bc,this.fullControl={label:"<b>Full-control:</b> Advisors have full control of your browser session within the AAT website, including synchronized navigation and the ability to highlight and co-fill a form on the web page.",id:"cobrowsing-control-mode",value:"full-control"},this.partialControl={label:"<b>Partial-control:</b> Advisors can highlight and control the browser navigation within the AAT website, but do not have the permission to fill any forms on the co-browsed page.",id:"cobrowsing-control-mode",value:"partial-control"},this.noControl={label:"<b>No-control:</b> This is a view-only mode. Advisors can observe your navigation, highlight, and offer guidance within the AAT website.",id:"cobrowsing-control-mode",value:"no-control"},this.journeyHelpCard={title:"Get help",body:"I need some support and want to contact AAT.",link:"/about/help-and-support"},this.goBack={text:"Go back",type:"primary",action:{type:"callback",callback:()=>this.step=bc.START},aria:"Go back"},this.next={text:"Next",type:"primary",action:{type:"callback",callback:()=>this.generateCode()},aria:"Next"},this.journeyGetAgentCode={title:"Generate co-browsing code",body:"I\u2019m speaking with a customer support advisor and I need to generate a co-browsing code to share my screen.",link:null},this.cardCheckBox={id:"declaration-checkbox",label:"Please tick the box to generate and share the code with the advisor for co-browsing to initiate."},this.declarationAgreement=!1}ngOnInit(){this.isBrowser&&sessionStorage.getItem("cobrowsing")&&(this.browsingMode=sessionStorage.getItem("cobrowsing"),this.generateCode())}nextStep(){this.step=bc.END}setControl(n){this.browsingMode=n.value}openModal(){this.helpModal.openModal()}generateCode(){console.log("adding script");let n=this._renderer.createElement("script");n.onload=()=>this.openPopup(),n.src="https://cb.8x8.com/license631869b0d2a73e004df634b6/dist/primary-bundle.js",this._renderer.setAttribute(n,"data-8x8-co-browsing","631869b0d2a73e004df634b6"),this._renderer.setAttribute(n,"data-8x8-co-browsing-mode",this.browsingMode),this._renderer.appendChild(this._document.head,n),this.helpModal?.closeModal(),sessionStorage.setItem("cobrowsing",this.browsingMode),this.scriptExists=n}openPopup(){window.coBrowsingInstance.showPopup(),window.scrollTo(0,0)}};t.\u0275fac=function(o){return new(o||t)(O(Rn),O(ci))},t.\u0275cmp=U({type:t,selectors:[["fab-cobrowsing"]],viewQuery:function(o,r){if(o&1&&(Ue(Qq,5),Ue(Jq,5)),o&2){let a;Me(a=Te())&&(r.helpModal=a.first),Me(a=Te())&&(r.coBrowser=a.first)}},inputs:{disableOpenModalButton:"disableOpenModalButton"},standalone:!1,decls:9,vars:4,consts:[["coBrowser",""],["modal",""],[1,"co-browser"],[1,"lms-get-help-modal"],[1,"modal__cta"],[1,"modal__content"],[1,"modal__content--text"],[1,"modal__content--cards"],[1,"modal__content--cards--card",3,"click","content"],[1,"modal__content--cards--card",3,"content"],[1,"modal__content--end"],[1,"radio",3,"selectEvent","content"],[1,"checkbox-card__checkbox",3,"isCheckedChange","isChecked","content"],[1,"action-buttons"],[3,"button"],[3,"button","enabled"],[1,"modal__content--exists"]],template:function(o,r){o&1&&(p(0,"div",2),x(1,"div",null,0),u(
771),p(3,"fab-modal",3,1),y(5,Zq,3,0,"div",4),y(6,Xq,18,2,"div",5),y(7,eY,15,8,"div",5),y(8,tY,3,0,"div",5),u()),o&2&&(d(5),w(r.disableOpenModalButton===!1?5:-1),d(),w(r.step===r.steps.START?6:-1),d(),w(r.step===r.steps.END&&!r.scriptExists?7:-1),d(),w(r.scriptExists?8:-1))},dependencies:[Dp,kre,Gp,zo,Ee],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.lms-get-help-modal[_ngcontent-%COMP%]{position:absolute;top:0;z-index:1001}.lms-get-help-modal[_ngcontent-%COMP%] .modal__content[_ngcontent-%COMP%]{flex-direction:column;padding-bottom:2rem;padding-top:2rem;display:flex}.lms-get-help-modal[_ngcontent-%COMP%] .modal__content--text[_ngcontent-%COMP%]{padding-left:2rem;padding-right:2rem}.lms-get-help-modal[_ngcontent-%COMP%] .modal__content--cards[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-evenly}.lms-get-help-modal[_ngcontent-%COMP%] .modal__content--cards--card[_ngcontent-%COMP%]{width:40%}.lms-get-help-modal[_ngcontent-%COMP%] .modal__content--end[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-left:2rem;margin-right:2rem}.lms-get-help-modal[_ngcontent-%COMP%] .modal__content--end[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{margin-top:20px;display:flex;flex-direction:row;justify-content:space-between}.lms-get-help-modal[_ngcontent-%COMP%] .modal__content--exists[_ngcontent-%COMP%]{margin-left:20px;margin-right:20px}.lms-get-help-modal[_ngcontent-%COMP%] .modal__cta[_ngcontent-%COMP%]{position:fixed;bottom:0;right:0;color:#000;width:185px;text-align:center;background-color:#dce6f0;border-radius:2px 2px 0 0}.lms-get-help-modal[_ngcontent-%COMP%] .modal__cta[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:9px}.generate-code[_ngcontent-%COMP%]{display:flex;align-items:center}"]});let e=t;return e})(),Gre=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,Up,Mre,Bo,Ee]});let e=t;return e})();var _we=(()=>{let t=class t{constructor(){this.gtmService=xe(Xn)}itemClicked(n,o){this.callback?this.callback(n,o):this.gtmService.push({event:"click_button",element_type:"cta",element_text:o.label.toLowerCase()})}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-on-page-nav"]],inputs:{content:"content",callback:"callback",useRouterLink:"useRouterLink"},standalone:!1,decls:1,vars:1,consts:[[1,"on-page-nav"],[1,"row"],[1,"col-xs-12","col-sm-6","col-md-4","row","middle-xs"],[1,"col-xs-12","col-sm-6","col-md-4","row","middle-xs",3,"click"],[1,"on-page-nav__item",3,"href"],[1,"on-page-nav__item",3,"routerLink"],[1,"row","middle-xs"]],template:function(o,r){o&1&&y(0,rY,4,0,"div",0),o&2&&w(r.content&&(r.content!=null&&r.content.length)?0:-1)},dependencies:[tt],styles:['[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.on-page-nav[_ngcontent-%COMP%]{max-width:600px;margin:10px auto}.on-page-nav__item[_ngcontent-%COMP%]{display:block;position:relative;min-height:60px;padding:10px 40px 10px 10px;border:1px solid rgb(229.5,229.5,229.5);border-radius:3px;background-color:#fff;text-decoration:none;margin:10px;transition:all .3s ease-in-out;height:calc(100% - 40px);width:100%;text-align:left;color:#000;font-family:Open Sans,Arial,Helvetica,"sans-serif"}.on-page-nav__item[_ngcontent-%COMP%] > .row[_ngcontent-%COMP%]{height:100%}.on-page-nav__item[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-weight:600;font-family:Open Sans,Arial,Helvetica,"sans-serif";font-size:12px;color:#00ab4e}.on-page-nav__item[_ngcontent-%COMP%] .title-row[_ngcontent-%COMP%]{margin-bottom:.5rem;margin-top:1rem}.on-page-nav__item[_ngcontent-%COMP%]:after{content:"";position:absolute;top:50%;right:15px;transform:translate(10px,-50%) rotate(45deg);transform-origin:center center;width:7px;height:7px;background-color:transparent;border:2px solid;border-left:none;border-bottom:none;opacity:0;transition:all .3s ease-in-out;color:#00ab4e}.on-page-nav__item[_ngcontent-%COMP%]:focus, .on-page-nav__item[_ngcontent-%COMP%]:hover{box-shadow:0 5px 10px #0000001a;text-decoration:none}.on-page-nav__item[_ngcontent-%COMP%]:focus:after, .on-page-nav__item[_ngcontent-%COMP%]:hover:after{opacity:1;transform:translateY(-50%) rotate(45deg)}@media (min-width: 992px){.on-page-nav[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:16px}}@media (min-width: 1200px){.on-page-nav[_ngcontent-%COMP%]{max-width:1040px}.on-page-nav[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:18px}}']});let e=t;return e})();var ywe=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,At]});let e=t;return e})();var wwe=(()=>{let t=class t{constructor(n,o){this.gtmService=n,this.platformId=o,this.onSubmit=new L,this.onChange=new L}ngAfterViewInit(){if(typeof hbspt>"u"||!Ct(this.platformId))return;Ct(this.platformId)&&(this.pageUrl=window.location.href,window.jQuery=window.jQuery||
771(()=>({change:()=>{},trigger:()=>{}})));let{portalId:n,formId:o,formMapping:r}=this;r=ye(B({},r),{current_form_url:"hs_current_form_url"});let a=()=>{if(setTimeout(s,100),this.onChange){let l=document.querySelectorAll("form.hs-form input, form.hs-form textarea, form.hs-form select"),c=Array.from(l).reduce((h,m)=>(h[m.name]=m.value,h),{});this.onChange.emit(c)}},s=()=>{let l=document.querySelectorAll("form.hs-form h1"),c=document.querySelectorAll(` 772 form.hs-form .hs-form-field label:not(.altered-element), 773 form.hs-form .hs-form-checkbox > label:not(.altered-element), 774 form.hs-form .hs-form-booleancheckbox-display:not(.altered-element) 775 `),h=document.querySelectorAll(` 776 form.hs-form input:not(.altered-element), 777 form.hs-form textarea:not(.altered-element) 778 `),m=document.querySelectorAll("form.hs-form ul[role=checkbox]"),f=document.querySelectorAll("form.hs-form input[type=checkbox]:not(.altered-element)"),b=document.querySelectorAll("form.hs-form .hs-form-field label .hs-form-required:not(.altered-element)"),_=document.querySelectorAll("form.hs-form .hs-fieldtype-select .input:not(.altered-element)"),S=document.querySelectorAll("form.hs-form .hs-richtext + .hs-form-field:not(.altered-element)");Array.from(l).forEach(I=>{I.outerHTML=`<h2>${I.innerHTML}</h2>`}),Array.from(c).filter(I=>!I.nextElementSibling||I.nextElementSibling.nextElementSibling&&!I.nextElementSibling.nextElementSibling.querySelectorAll(".multi-container").length).filter(I=>!Array.from(I.querySelectorAll(".hs-form-required")).length).forEach(I=>{I.querySelector("span")&&(I.querySelector("span").innerHTML=`${I.querySelector("span").innerHTML} (optional)`,I.classList.add("altered-element"))}),Array.from(b).forEach(I=>{I.innerHTML="",I.classList.add("altered-element")}),Array.from(_).forEach(I=>{I.classList.add("altered-element"),I.addEventListener("change",a)}),Array.from(h).forEach(I=>{I.classList.add("form-control"),I.classList.add("altered-element"),I.addEventListener("change",a)});let M=I=>{let F=I.checked,W=I.parentElement;W&&(F?W.classList.add("hs-checkbox-checked"):W.classList.remove("hs-checkbox-checked"))},D=I=>{I.forEach(F=>{let W=F.checked,re=F.parentElement;re&&(W?re.classList.add("hs-checkbox-checked"):re.classList.remove("hs-checkbox-checked"))})};Array.from(f).forEach(I=>{M(I),I.addEventListener("change",F=>{M(F.currentTarget),a()}),I.classList.add("altered-element")}),Array.from(m).forEach(I=>{let F=I.querySelectorAll("input[type=radio]");D(F)}),Array.from(S).forEach(I=>{let F=I.previousSibling;I.parentElement.appendChild(F),I.classList.add("altered-element")}),r&&Object.keys(r).length&&setTimeout(()=>{Object.entries(r).map(([I,F])=>[document.querySelector(`input[name="${I}"]`),document.getElementById(F)]).filter(([I,F])=>I&&F).forEach(([I,F])=>{let W=re=>({target:Z})=>{re.setAttribute("value",Z.value)};I.setAttribute("value",F.getAttribute("value")||F.value),F.addEventListener("change",W(I))})},100)};hbspt.forms.create({region:"eu1",portalId:Number(n),formId:o,target:"#hubspotForm",cssClass:"hubspot-form",errorClass:"form-control form__field-invalid",submitButtonClass:"button-primary",onFormReady:s,onFormSubmitted:(l,c)=>{this.onSubmit&&(this.onSubmit.emit(),this.gtmService.push({event:"hubspotFormSubmit",formId:o,user:{email:c.submissionValues?.email,phone:c.submissionValues?.phone,firstName:c.submissionValues?.firstname,lastName:c.submissionValues?.lastname}}))}})}};t.\u0275fac=function(o){return new(o||t)(O(Xn),O(gt))},t.\u0275cmp=U({type:t,selectors:[["fab-hubspot-form"]],inputs:{formId:"formId",portalId:"portalId",formMapping:"formMapping"},outputs:{onSubmit:"onSubmit",onChange:"onChange"},standalone:!1,decls:2,vars:2,consts:[["id","hubspotForm"],["type","hidden","id","hs_current_form_url","name","hs_current_form_url",3,"value"]],template:function(o,r){o&1&&x(0,"div",0)(1,"input",1),o&2&&(d(),v("value",ne(r.pageUrl)))},styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.hs-form .form__field-invalid{border-radius:3px;background-color:#fff;border:solid #e22b25}.hs-form .hs-form-field{margin-top:1.4em}.hs-form .hs-input{box-sizing:border-box;display:inline-block;font-size:16px;padding:6px;border:2px solid #dfe1e5;outline:0;border-radius:3px}.hs-form .hs-input:focus{border-color:#ffd432}.hs-form .hs-input:not([type=submit]){width:100%}.hs-form .hs-form-field label{display:block;padding-bottom:3px;margin:0}.hs-form .hs-form-field label span{color:#31373e;cursor:default;display:inline;font-family:Open Sans,Arial,Helvetica,"sans-serif";font-size:inherit;font-weight:400}.hs-form .hs-error-msgs li{margin:0}.hs-form .hs-error-msgs li label{font-weight:600;font-size:11px;color:#e22b25}@media screen and (min-width: 992px){.hs-form .hs-error-msgs li label{font-size:14px}}.hs-form .hs-form-booleancheckbox input,.hs-form .hs-form-checkbox input{display:none}.hs-form .hs-form-booleancheckbox label,.hs-form .hs-form-checkbox label{position:relative}.hs-form .hs-form-booleancheckbox label span,.hs-form .hs-form-checkbox label span{margin-left:0}.hs-form .hs-form-booleancheckbox label:before,.hs-form .hs-form-checkbox label:before{content:"";margin-right:10px;display:inline-block;vertical-align:text-top;width:20px;height:20px;background:#fff;border:2px solid #e6e6e6;margin-left:0;margin-top:1px}.hs-form .hs-form-booleancheckbox label:not(.hs-checkbox-checked):hover:before,.hs-form .hs-form-checkbox label:not(.hs-checkbox-checked):hover:before{border-color:#ffd432}.hs-form .hs-form-booleancheckbox .hs-checkbox-checked:before,.hs-form .hs-form-checkbox .hs-checkbox-checked:before{background:#00ab4e;border:2px solid #00ab4e}.hs-form .hs-form-booleancheckbox .hs-checkbox-checked:after,.hs-form .hs-form-checkbox .hs-checkbox-checked:after{content:"";position:absolute;
778left:5px;top:11px;background:#fff;width:2px;height:2px;box-shadow:2px 0 #fff,4px 0 #fff,4px -2px #fff,4px -4px #fff,4px -6px #fff,4px -8px #fff;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.hs-form .button-primary{text-decoration:none;text-align:center;color:#000;cursor:pointer;border-radius:4px;border:2px solid transparent;background-color:#008048;color:#fff;display:inline-block;transition:all .2s ease-in-out;font-weight:600;padding:10px 14px;margin-top:1.4em}.hs-form .button-primary:hover{text-decoration:underline;background:#0a5c50}.hs-form .button-primary:focus{outline:medium solid #145fc8;outline-offset:4px;text-decoration:underline;background:#0a5c50}.hs-form .hs-fieldtype-select .input{position:relative}.hs-form .hs-fieldtype-select .input select{background:#fff;cursor:pointer;position:relative;padding:7px 10px;border:2px solid #e6e6e6;white-space:nowrap;text-overflow:ellipsis;-webkit-appearance:none;width:100%;outline:0;border-radius:3px}.hs-form .hs-fieldtype-select .input select:focus{border-color:#ffd432}.hs-form .hs-fieldtype-select .input:after{content:"\\e906";font-family:icomoon;position:absolute;top:12px;right:12px;pointer-events:none}.hs-form .hs-form-field+.hs-richtext{padding:10px 0 0}.hs-form .legal-consent-container ul,.hs-form .legal-consent-container li{list-style:none;list-style-type:none;padding:0} 779`],encapsulation:2});let e=t;return e})();var xwe=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge]});let e=t;return e})();var Swe=(()=>{let t=class t{constructor(){this.agreeToDDGuaranteeError=!1,this.agreeToAccountHolderError=!1,this.accountHolder=new L,this.DDGuarantee=new L,this.agreeToAccountHolder={id:"confirmation-account-holder",required:!0,codeType:"checkbox",toolTip:"I confirm that I am the account holder and I am authorised to set up Direct Debit payments on this account.",validationMessage:"Please confirm you\u2019re the account holder"},this.agreeToDDGuarantee={id:"confirmation-dd-guarantee",required:!0,codeType:"checkbox",toolTip:"I confirm that I have read and understood the Direct Debit Guarantee.",validationMessage:"Please confirm you have read the Direct Debit Guarantee"},this.agreeToAccountHolderValue=!1,this.agreeToDDGuaranteeValue=!1}ngOnInit(){this.formControlAgreeToAccountHolder.setValue(this.agreeToAccountHolderValue),this.formControlAgreeToDDGuarantee.setValue(this.agreeToDDGuaranteeValue)}agreeEventAccountHolder(n){this.agreeToAccountHolderValue=n,this.formControlAgreeToAccountHolder&&this.formControlAgreeToAccountHolder.setValue(this.agreeToAccountHolderValue),this.accountHolder.emit(this.agreeToAccountHolderValue)}agreeEventDDDeclaration(n){this.agreeToDDGuaranteeValue=n,this.formControlAgreeToDDGuarantee&&this.formControlAgreeToDDGuarantee.setValue(this.agreeToDDGuaranteeValue),this.DDGuarantee.emit(this.agreeToDDGuaranteeValue)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-direct-debit-declaration"]],inputs:{formControlAgreeToAccountHolder:"formControlAgreeToAccountHolder",formControlAgreeToDDGuarantee:"formControlAgreeToDDGuarantee",agreeToDDGuaranteeError:"agreeToDDGuaranteeError",agreeToAccountHolderError:"agreeToAccountHolderError"},outputs:{accountHolder:"accountHolder",DDGuarantee:"DDGuarantee"},standalone:!1,features:[St([{provide:Zt,useExisting:Wt(()=>t),multi:!0}])],decls:21,vars:4,consts:[["id","guarantee_confirmation",1,"fab-direct-debit-declaration--header"],[1,"fab-direct-debit-declaration--dd-logo"],[1,"fab-direct-debit-declaration--element","bullet-list"],[1,"fab-direct-debit-declaration--element__copy"],[1,"fab-direct-debit-declaration--element__confirm",3,"agreeEvent","content","showError"]],template:function(o,r){o&1&&(p(0,"div",0)(1,"h2")(2,"strong"),C(3,"Read and confirm The Direct Debit Guarantee"),u()()(),x(4,"div",1),p(5,"div",2)(6,"ul",3)(7,"li"),C(8," This Guarantee is offered by all banks and building societies that accept instructions to pay Direct Debits. "),u(),p(9,"li"),C(10," If there are any changes to the amount, date or frequency of your Direct Debit GC re AAT will notify you in three working days in advance of your account being debited or as otherwise agreed. If you request GC re AAT to collect a payment, confirmation of the amount and date will be given to you at the time of the request. "),u(),p(11,"li"),C(12," If an error is made in the payment of your Direct Debit, by GC re AAT or your bank or building society, you are entitled to a full and immediate refund of the amount paid from your bank or building society. "),u(),p(13,"li"),C(14,"If you receive a refund you are not entitled to, you must pay it back when GC re AAT asks you to."),u(),p(15,"li"),C(16," You can cancel a Direct Debit at any time by simply contacting your bank or building society. Written confirmation may be required. Please also notify AAT. "),u()(),x(17,"br"),p(18,"fab-checkbox-confirm",4),T("agreeEvent",function(s){return r.agreeEventDDDeclaration(s)}),u(),x(19,"br"),p(20,"fab-checkbox-confirm",4),T("agreeEvent",function(s){return r.agreeEventAccountHolder(s)}),u()()),o&2&&(d(18),v("content",r.agreeToDDGuarantee)("showError",r.agreeToDDGuaranteeError),d(2),v("content",r.agreeToAccountHolder)("showError",r.agreeToAccountHolderError))},dependencies:[G0],styles:[".fab-direct-debit-declaration--dd-logo[_ngcontent-%COMP%]{background-image:url(/payments/images/direct_debit.gif);padding:20px;background-repeat:no-repeat;background-size:contain;margin-left:15px}"],changeDetection:0});let e=t;return e})(),kwe=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,Rt,Bo]});let e=t;return e})();var Ure=(()=>{let t=class t{constructor(){this.outputReturnSelectedOptions=new L,this.applyEvent=new L,this.grid=12,this.applyButton={text:"Apply",action:{type:"callback",callback:this.apply.bind(this)},type:"primary",aria:"Apply"}}ngOnInit(){this.init()}ngOnChanges(n){n.content&&!n.content.firstChange&&this.reset()}reset(){this.init()}init(){this.selectedString=this.createPlaceholderString(),this.columns=this.grid/this.content.options.length,this.content.options.forEach(n=>{this.checkIfAllSelected(n.title)})}toggleOptionsShown(){this.optionsShown=!this.optionsShown,this.optionsShown?this.dropdownCategorizedEl.nativeElement.focus():this.dropdownCategorizedEl.nativeElement.blur()}checkIfAllSelected(n){this.content.options.forEach(o=>{if(o.title===n){let r=o.options.filter(a=>a.selected===!1);o.allSelected=r.length===0}})}onItemClick(n,o){n.selected=!n.selected,this.checkIfAllSelected(o),this.selectedString=this.createPlaceholderString(),this.returnSelectedOptions()}selectCategoryItems(n,o){this.content.options[o].options.map(r=>r.selected=!n.allSelected),n.allSelected=!n.allSelected,this.selectedString=this.createPlaceholderString(),this.returnSelectedOptions()}returnSelectedOptions(){let n=[];this.content.options.forEach(o=>{o.options.forEach(r=>{r.selected===!0&&n.push(r.value.toString())})}),this.outputReturnSelectedOptions.emit(n)}createPlaceholderString(){let n=[];return this.content.options.forEach(o=>{o.options.forEach(r=>{r.selected===!0&&n.push(r.label)})}),n.length!==0?n.join(", "):this.content.placeholder}clearAll(){this.content.options.forEach(n=>
779{n.allSelected=!1,n.options.forEach(o=>{o.selected===!0&&(o.selected=!1)})}),this.selectedString=this.content.placeholder,this.returnSelectedOptions()}apply(){this.applyEvent.emit("apply"),this.optionsShown=!1}lostFocus(n){n.currentTarget.contains(n.relatedTarget)||(this.optionsShown=!1)}close(){this.optionsShown=!1}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-dropdown-categorized"]],viewQuery:function(o,r){if(o&1&&Ue(aY,7),o&2){let a;Me(a=Te())&&(r.dropdownCategorizedEl=a.first)}},inputs:{content:"content"},outputs:{outputReturnSelectedOptions:"outputReturnSelectedOptions",applyEvent:"applyEvent"},standalone:!1,features:[Ye],decls:8,vars:3,consts:[["dropdownCategorized",""],[1,"dropdown-categorized",3,"keydown.escape"],[1,"dropdown-categorized__label"],["tabindex","0",3,"blur"],[1,"dropdown-categorized__input",3,"click","keydown.Enter"],[3,"innerHtml"],[1,"icon","icon-arrow-down"],[1,"dropdown-categorized__options"],[1,"dropdown-categorized__close",3,"click"],[1,"icon","icon-cross"],[1,"row"],[3,"class"],[1,"row","dropdown-categorized__buttons"],[1,"dropdown-categorized__category"],[1,"dropdown-categorized__item",3,"ngClass"],[1,"dropdown-categorized__item",3,"click","ngClass"],[1,"dropdown-categorized__item__tickbox"],[1,"icon","icon-checkmark"],[3,"click"],[1,"icon","icon-cross-small"],[3,"button"]],template:function(o,r){if(o&1){let a=P();p(0,"div",1),T("keydown.escape",function(){return k(a),E(r.optionsShown=!1)}),y(1,sY,3,1,"div",2),p(2,"div",3,0),T("blur",function(l){return k(a),E(r.lostFocus(l))}),p(4,"div",4),T("click",function(){return k(a),E(r.toggleOptionsShown())})("keydown.Enter",function(){return k(a),E(r.toggleOptionsShown())}),x(5,"p",5)(6,"i",6),u(),y(7,pY,7,2,"div",7),u()()}o&2&&(d(),w(r.content.label?1:-1),d(4),v("innerHtml",r.selectedString,ue),d(2),w(r.optionsShown?7:-1))},dependencies:[Ce,Ee],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.dropdown-categorized{position:relative}.dropdown-categorized__label{margin-bottom:5px;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-ms-flex-wrap:wrap;width:100%;font-weight:700}.dropdown-categorized__input{cursor:pointer;position:relative;padding:7px 10px;border:2px solid rgb(229.5,229.5,229.5);-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px}.dropdown-categorized__input:focus{outline:none;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;border:solid #fac05c}.dropdown-categorized__input p{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:0;padding:0 20px 0 0;font-weight:400;line-height:24px}.dropdown-categorized__input i{position:absolute;top:50%;right:10px;transform:translateY(-50%)}.dropdown-categorized__close{text-align:right}.dropdown-categorized__close i{cursor:pointer}.dropdown-categorized__options{z-index:2;position:absolute;left:0;right:0;border:1px solid rgb(229.5,229.5,229.5);-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;bottom:25px;transform:translateY(calc(100% + 28px));background-color:#fff;padding:20px 15px}.dropdown-categorized__options ul{margin-right:20px}.dropdown-categorized__item{position:relative;cursor:pointer;padding:10px 10px 10px 40px;margin:7px 0}.dropdown-categorized__item span{display:inline-block;padding:0;margin:0;font-weight:400}.dropdown-categorized__item__tickbox{position:absolute;top:10px;left:4px;display:inline-block;margin-right:10px;height:20px;width:20px;border:2px solid rgb(229.5,229.5,229.5);-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;background-color:#fff;box-sizing:border-box}.dropdown-categorized__item__tickbox i{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:10px;color:#fff;display:none}.dropdown-categorized__item:focus,.dropdown-categorized__item:hover{background-color:#f8f8f8;outline:none}.dropdown-categorized__item--selected .dropdown-categorized__item__tickbox{border:none;background-color:#00ab4e}.dropdown-categorized__item--selected .dropdown-categorized__item__tickbox i{display:block}.dropdown-categorized__cta{width:100%}.dropdown-categorized__cta div{margin-right:10px}.dropdown-categorized__buttons{display:flex;justify-content:space-between;margin-top:10px}.dropdown-categorized__buttons fab-button{margin-right:20px} 780`],encapsulation:2,data:{animation:[jo("onOff",[fi(":enter",[Pt({opacity:0}
780),mi(400)]),fi(":leave",[mi(100,Pt({opacity:0}))])])]}});let e=t;return e})(),jre=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,Ee]});let e=t;return e})(),Wre={id:"email",label:"<strong>Please enter your updated email address </strong>",required:!0,codeType:"Email"},$re={id:"email",label:"<strong>Please enter your updated business email address</strong>",required:!0,codeType:"Email"},qre={id:"website",label:"<strong>Please enter your updated business website</strong>",required:!1,codeType:"Website"},Rp={required:!0,placeholder:"Please choose",options:Hoe,group:"titles",label:"<strong>Please select your new title</strong>",validationMessage:"Select from options"},MS={required:!0,placeholder:"Please choose",options:Ooe,group:"ethnicBackgrounds",label:"<strong>Ethnic background</strong>",validationMessage:"Select your ethnic background from the list"},TS={id:"",label:"",toolTip:"I consent to AAT processing this data for the purposes described.",checkedText:"Yes I'm happy to provide these details"},Yre=[{label:"Prefer not to say",id:"gender",value:"Prefer not to say"},{label:"Male",id:"gender",value:"Male"},{label:"Female",id:"gender",value:"Female"},{label:"Prefer to self-describe",id:"gender",value:"Prefer to self-describe"}],IS=[{label:"Prefer not to say",id:"ethnicity",value:"Prefer not to say"},{label:"Choose an ethnic background",id:"ethnicity",value:"Choose an ethnic background"},{label:"Prefer to self-describe",id:"ethnicity",value:"Prefer to self-describe"}],Kre=[{label:"Yes",id:"thirdParty",value:!1},{label:"No",id:"thirdParty",value:!0}],Qre=[{label:"Yes",id:"post",value:"Allow"},{label:"No",id:"post",value:"Do Not Allow"}],Jre=[{label:"Yes",id:"text",value:"Allow"},{label:"No",id:"text",value:"Do Not Allow"}],Zre=[{label:"Yes",id:"phone",value:"Allow"},{label:"No",id:"phone",value:"Do Not Allow"}],Xre=[{label:"Yes",id:"commsPrefsRadio",value:"Yes"},{label:"No",id:"commsPrefsRadio",value:"No"}],eae=[{label:"Yes, you can share my results",id:"employedByAccreditedEmployer",value:"Yes, you can share my results"},{label:"No, don't share my results",id:"employedByAccreditedEmployer",value:"No, don't share my results"}],tae=[{label:"Prefer not to say",id:"learningDifficultiesAndDisabilities",value:"Prefer not to say"},{label:"No",id:"learningDifficultiesAndDisabilities",value:"No"},{label:"Yes",id:"learningDifficultiesAndDisabilities",value:"Yes"}],iae=[{label:"Yes",id:"mainEmployment",value:"Yes"},{label:"No",id:"mainEmployment",value:"No"}],nae={id:"givenName",label:"<strong>Your first name</strong> Required",required:!0,codeType:"Alpha",validationBlankMessage:"Enter First Name"},oae={id:"additionalName",label:"<strong>Your middle name</strong> Optional",required:!1,codeType:"Alpha"},rae={id:"familyName",label:"<strong>Your last name</strong> Required",required:!0,codeType:"Alpha",validationBlankMessage:"Enter Last Name"},aae={id:"name",formControlName:"nameUpload",source:"profile",extraPayload:{applicationType:"PROFILE",holdingAreaId:null}},sae={id:"dob",formControlName:"dobUpload",source:"profile",extraPayload:{applicationType:"PROFILE",holdingAreaId:null}},lae={tooltip:"Your file can be up to 4MB in size, in the following formats: jpg, jpeg, gif, png, rtf, txt, tex, doc, docx, xls, xlsx, pdf, ppt, pptx, odt, ods, odp, wpd or wps.",error:"You have either reached your limit of one file to upload, one of them exceeds 4MB file size, you've uploaded a file in the incorrect format, or you'll need to remove full stops from the file name."},cae={id:"phoneNumber",label:"<strong>Enter your phone number</strong>",required:!0,codeType:"Telephone"},bE={id:"birthdate",label:"<strong>Your date of birth</strong>",required:!0,codeType:"DateBirthText",toolTip:"Format: 30/03/1994"},dae={id:"emailConfirmation",label:"<strong>Confirm new email address</strong>",required:!0,codeType:"Email",confirmationField:!0,autocomplete:"new-password"};var Cn={text:"Update",action:{type:"callback",callback:()=>{}},type:"primary",aria:"Update"},uae={id:"scn",label:"<strong>Enter your SCN</strong>
780 (optional)",required:!1,codeType:"Number",minLen:9,maxLen:9,validationMessage:"Please enter nine numbers"},pae={id:"uln",label:"<strong>Enter your ULN</strong> (optional)",required:!1,codeType:"Number",minLen:10,maxLen:10,validationMessage:"Please enter 10 numbers"},hae={showError:!0,errorMessage:"If your college or training provider doesn't appear in the list, you'll need to contact them before you continue.",validationBlankMessage:"Enter your training provider's name",content:{label:"<strong>College or training provider's name</strong>",required:!0,placeholder:""}},gae={showError:!0,errorMessage:"Your employer is not a member of the AAT Employer Scheme or has not requested to receive results.",content:{label:"<strong>Find your employer</strong>",required:!0,placeholder:"",validationBlankMessage:"Enter your employer"}},mae={id:"confirmSharing",label:"I'm happy to share my results with my employer",toolTip:"By consenting, you allow your employer to view your results for all current and future qualifications unless you withdraw your consent.",validationMessage:"Please confirm you are happy to share your results"},fae={id:"confirmEmployed",label:"Yes, I'd like to share my results with my employer",toolTip:"",validationMessage:"Please confirm you are happy to share your results"},vae={id:"currentPassword",label:"<strong>Password</strong>",required:!0,codeType:"Password"},Cae={id:"passwordInputOne",label:"<strong>Password</strong>",required:!0,codeType:"PasswordChoice"},bae={id:"passwordInputTwo",label:"<strong>Confirm password</strong>",required:!0,codeType:"Password"},_ae={text:"Update password",action:{type:"callback",callback:()=>{}},type:"primary",aria:"Update password"},yae={showError:!0,errorMessage:"There are no matching results. Try amending your search.",validationBlankMessage:"Please search for an option",content:{label:"",required:!0,placeholder:""}},wae=["birth certificate","deed poll","divorce decree absolute","driving licence photo card","gender recognition certificate","marriage certificate","national ID card","passport"],xae=["birth certificate","deed poll","divorce decree absolute","driving licence photo card","gender recognition certificate","marriage certificate","national ID card","passport"],DS=[{name:"1",services:[]},{name:"2",services:[]},{name:"3",services:[]},{name:"4",services:[]},{name:"Other",services:[]}],Sae=[{label:"Yes",id:"tpSelection",value:"Yes"},{label:"No, I'm self-studying",id:"tpSelection",value:"No, I'm self-studying"},{label:"I intend to, but don't know yet",id:"tpSelection",value:"I intend to, but don't know yet"}],kae={id:"organisationName",label:"<strong>Your business name</strong>",required:!0,codeType:"AlphaText",validationMessage:"Enter Registered business name",validationBlankMessage:"Enter Registered business name"},Eae={type:"success",message:"Thanks for updating your details. Your changes will be confirmed within 24 hours. If you're updating your name or date of birth, or making licensed member updates to your business name or type, we'll review your request within five working days and email you if further evidence is required.",glyph:"success",isOpened:!0,fullWidth:!0},Mae={type:"success",message:`Thanks for updating your business details. The changes you've made to your business on this service will be confirmed within 24 hours. For any other business changes, please refer to the "Guidance on updating your business details" above.`,glyph:"success",isOpened:!0,fullWidth:!0},_E={type:"error",message:'There has been an issue with your request. Please try saving your details again by clicking "Confirm my details"',glyph:"error",isOpened:!0,fullWidth:!0},Tae={type:"warning",message:"Please ensure you fill in all mandatory fields",glyph:"warning",isOpened:!0,fullWidth:!0},Iae={type:"success",message:"Your password has been updated",glyph:"success",isOpened:!0,fullWidth:!0},Dae={type:"error",message:"There has been an issue with your request.",glyph:"error",isOpened:!0,fullWidth:!0};var Pae={type:"warning",message:"The new name you've provided is the same as the previous name. Please make sure you've entered your new n
780ame.",glyph:"warning",isOpened:!1,fullWidth:!0},j0=(()=>{let t=class t{constructor(n){this.gtmService=n,this._configured=!1}configure(n){this._funnelName=n.funnelName,this._stepName=n.stepName,this._configured=!0}onFieldUpdated(n){this._configured&&this.gtmService.push({event:"update_details",funnel_name:this._funnelName,funnel_step_name:`${this._stepName} - "${n}" updated`})}};t.\u0275fac=function(o){return new(o||t)(Y(Xn))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Rae=(()=>{let t=class t{constructor(n,o,r,a){this.sharedFormService=n,this.fb=o,this.changeDetector=r,this.analyticsService=a,this.commsPrefsUpdate=new L,this.subscriptions=[],this.communicationPreferenceInterface=Xre,this.typeSearchInterface=yae}ngOnInit(){this.formattedCommsPrefs.length&&this.formattedCommsPrefs.length>0&&(this.formattedCommsPrefs.forEach(n=>{n.configuration.name.includes("magazine")&&(this.hasMagazine=!0),n.configuration.description&&n.configuration.description.includes("tailored")&&(this.canTailor=!0)}),this.initContent(),this.prepareQuestionAnswers())}ngOnDestroy(){this.subscriptions.forEach(n=>{n.unsubscribe()})}ngAfterViewInit(){this.changeDetector.detectChanges()}ngOnChanges(n){n.updatedMultiChoice&&n.updatedMultiChoice.currentValue&&n.updatedMultiChoice.currentValue.forEach(o=>{if(o.questionAnswers)for(let r=0;r<this.communicationPreferenceOptions.controls.length;r++){let a=this.communicationPreferenceOptions.controls[r];if(a.value.communicationPreferenceSelectionId===o.communicationPreferenceSelectionId){o.questionAnswers.forEach(s=>{let l=a.value.questions.findIndex(c=>c.questionId===s.questionId);a.controls.questions.controls[l].patchValue({answerId:s.answerId})});break}}})}initContent(){this.masterForm=this.sharedFormService.form,this.sharedFormService.addToForm("commsPrefForm",this.fb.group({commsPreferences:this.fb.array([this.setUpEachCommsPref(0)])})),this.form=this.masterForm.get("commsPrefForm"),this.communicationPreferenceOptions=this.form.get("commsPreferences");for(let n=1;n<this.formattedCommsPrefs.length;n++)this.communicationPreferenceOptions.push(this.setUpEachCommsPref(n));this.subscribeFormControls()}subscribeFormControls(){this.subscriptions.push(this.form.valueChanges.subscribe(n=>n))}setUpEachCommsPref(n){return this.formattedCommsPrefs[n].configuration.questions&&this.formattedCommsPrefs[n].configuration.questions.length>0?this.fb.group({preferenceName:this.formattedCommsPrefs[n].configuration.name,optedIn:this.formattedCommsPrefs[n].contactSelection.preferenceSelected||"",questions:this.setUpCommsPrefQuestions(this.formattedCommsPrefs[n].configuration.questions,n),communicationPreferencesConfigurationId:this.formattedCommsPrefs[n].configuration.communicationPreferencesConfigurationId,communicationPreferenceSelectionId:this.formattedCommsPrefs[n].contactSelection.communicationPreferenceSelectionId||"",description:this.formattedCommsPrefs[n].configuration.description||""}):this.fb.group({preferenceName:this.formattedCommsPrefs[n].configuration.name,optedIn:this.formattedCommsPrefs[n].contactSelection.preferenceSelected||"",communicationPreferencesConfigurationId:this.formattedCommsPrefs[n].configuration.communicationPreferencesConfigurationId,communicationPreferenceSelectionId:this.formattedCommsPrefs[n].contactSelection.communicationPreferenceSelectionId||"",description:this.formattedCommsPrefs[n].configuration.description||""})}setUpCommsPrefQuestions(n,o){let r=this.fb.array([]);return n.forEach(a=>{r.push(this.fb.group({questionName:a.questionTitle,questionAnswer:this.getQuestionAnswer(o,a.questionId),questionType:a.questionType,subQuestionType:a.subQuestionType,questionId:a.questionId,answerId:this.getQuestionAnswerId(o,a.questionId)}))}),r}getQuestionAnswer(n,o){return this.formattedCommsPrefs[n].contactSelection.questionAnswers&&this.formattedCommsPrefs[n].contactSelection.questionAnswers.filter(r=>r.questionId===o).length?this.formattedCommsPrefs[n].contactSelection.questionAnswers.filter(r=>r.questionId===o)[0].questionAnswer:""}getQuestionAnswerId(n,o){return this.formattedCommsPrefs[n].contactSelection.questionAnswers&&this.formattedCommsPrefs[n].contactSelection.questionAnswers.filter(r=>r.questionId===o).length?this.formattedCommsPrefs[n].contactSelection.questionAnswers.filter(r=>r.questionId===o)[0].answerId:null}editField(n){this.currentField=n,this.subscriptions.push(this.communicationPreferenceOptions.controls[n].valueChanges.subscribe(()=>{this.ensureValidity(n)}))}ensureValidity(n){setTimeout(()=>{if(this.communicationPreferenceOptions.value[n].optedIn==="No")this.commsUpdateEnabled=!0;else if(this.communicationPreferenceOptions.value[n].optedIn==="Yes"&&!this.hasQuestions(n))this.commsUpdateEnabled=!0;else for(let o=0;o<this.communicationPreferenceOptions.controls[n].controls.questions.controls.length;o++){let r=this.communicationPreferenceOptions.controls[n].controls.questions.controls[o],a=this.questionContent[n][o].options.map(s=>s.label);
780if(r.invalid||r.controls.questionAnswer.value===void 0||r.controls.questionAnswer.value===""||r.controls.questionAnswer.value==="N/A"&&!a.includes("N/A")){this.commsUpdateEnabled=!1;break}else this.commsUpdateEnabled=!0}})}cancelEditingPermission(n){let o=null;this.formattedCommsPrefs[n].contactSelection.preferenceSelected&&(o=this.formattedCommsPrefs[n].contactSelection.preferenceSelected),this.communicationPreferenceOptions.controls[n].controls.optedIn.patchValue(o),this.hasQuestions(n)&&this.communicationPreferenceOptions.controls[n].controls.questions.controls.forEach((r,a)=>{this.formattedCommsPrefs[n].contactSelection.questionAnswers!==void 0&&this.formattedCommsPrefs[n].contactSelection.questionAnswers[a]&&this.formattedCommsPrefs[n].contactSelection.questionAnswers[a].questionAnswer?r.controls.questionAnswer.patchValue(this.formattedCommsPrefs[n].contactSelection.questionAnswers[a].questionAnswer):r.controls.questionAnswer.patchValue("")}),this.communicationPreferenceOptions.controls[n].markAsPristine(),this.currentField=null}prepareQuestionAnswers(){let n=[];this.formattedCommsPrefs.forEach((o,r)=>{let a=[];o.configuration.questions&&o.configuration.questions.length>0?o.configuration.questions.forEach(s=>{let l=s.questionOptions.split("|");if(s.subQuestionType==="Drop Down List"){let c=[];l.forEach((m,f)=>{c.push({value:f+1,label:m})});let h={placeholder:"Please Select",group:s.questionId,options:c};a.push(h)}else if(s.subQuestionType==="Checkbox List"){let c=[];l.forEach((m,f)=>{let b={label:m,value:s.subQuestionType,id:f+1,selected:this.getQuestionAnswer(r,s.questionId).includes(m)};c.push(b)});let h={placeholder:"Please select...",allSelected:"All",options:c,validationDisabled:!1};s.questionTitle.includes("select up to")&&(s.questionTitle.replace(/ /g,"").split("").forEach(f=>{isNaN(parseInt(f))||(h.maximumSelectionAmount=parseInt(f))}),h.disallowAll=!0),a.push(h)}else if(s.subQuestionType==="Radio Button List"){this.typeSearchInterface.content.placeholder=this.getQuestionAnswer(r,s.questionId);let c=[];l.forEach((h,m)=>{let f={organisationId:m+1,name:h};c.push(f)}),a.push(c)}}):a.push({}),n.push(a)}),this.questionContent=n}selectOptions(n,o,r){let a="";n.forEach((l,c)=>{n.length>0&&(a+=l.label,n.length>1&&c<n.length-1&&(a+="|"))}),this.preferenceForm.controls[o].controls.questions.controls[r].controls.questionAnswer.patchValue(a)}getUpdateButton(n){let o={action:{type:"callback",callback:()=>this.finishEditing(n)}};return B(B({},Cn),o)}finishEditing(n){this.hasQuestions(n)&&this.communicationPreferenceOptions.controls[n].controls.questions.controls.forEach(o=>{o.value.questionAnswer&&o.value.questionAnswer.label&&o.controls.questionAnswer.patchValue(o.value.questionAnswer.label)}),this.analyticsService.onFieldUpdated(this.form.controls.commsPreferences.controls[n].value.preferenceName),this.commsPrefsUpdate.emit(this.formatCommsPrefsObject()),this.currentField=null,this.masterForm.markAsDirty()}hasQuestions(n){return this.communicationPreferenceOptions.controls[n].controls.questions&&this.communicationPreferenceOptions.controls[n].controls.questions.controls.length}formatCommsPrefsObject(){let n={process:[]};return this.communicationPreferenceOptions.controls.forEach(o=>{let r={preferenceSelected:o.value.optedIn,contactId:this.contactDetails.contactId,contactCrmId:this.contactDetails.contactCRMId,communicationPreferenceId:o.value.communicationPreferencesConfigurationId,questionAnswers:null,preferenceStatus:"Available"};o.value.communicationPreferenceSelectionId&&(r.communicationPreferenceSelectionId=o.value.communicationPreferenceSelectionId),o.value.questions&&o.value.questions.length>0&&(r.questionAnswers=[],o.value.questions.forEach(a=>{if(a.questionAnswer!==""){let s={questionTitle:a.questionName,questionAnswer:o.value.optedIn==="Yes"?a.questionAnswer:"N/A",questionId:a.questionId};a.answerId!==null&&(s.answerId=a.answerId),r.questionAnswers.push(s)}}),r.questionAnswers.length===0&&(r.questionAnswers=null)),n.process.push(r)}),n}get preferenceForm(){return this.form.controls.commsPreferences}questionForm(n){return this.form.controls.commsPreferences.controls[n].controls.questions}};t.\u0275fac=function(o){return new(o||t)(O(eo),O(Wc),O(Ii),O(j0))},t.\u0275cmp=U({type:t,selectors:[["app-comms-preference-block"]],inputs:{contactDetails:"contactDetails",formattedCommsPrefs:"formattedCommsPrefs",updatedMultiChoice:"updatedMultiChoice"},outputs:{commsPrefsUpdate:"commsPrefsUpdate"},standalone:!1,features:[Ye],decls:14,vars:4,consts:[["updatingPermission",""],["notAllowed",""],["FabAC",""],["search",""],[1,"personal-details-form"],[1,"personal-details-form__container"],[1,"personal-details-form__box","no-padding","heading"],[1,"personal-details-form__detail-table--row","hide"],[1,"category__description"],[1,"edit","padded","tooltip","category","border-bottom"],[3,"formGroup"],["formArrayName","commsPreferences",4,"ngFor","ngForOf"],["class","personal-details-form__container",4,"ngIf"],["class","personal-details-form__container--final",4,"ngIf"],["formArrayName","commsPreferences"],[3,"formGroupName"],[4,"ngIf"],[1,"personal-details-form__box","no-padding","borderless"],[1,"personal-details-form__detail-table"],["class","personal-details-form__detail-table--row new-style border-bottom",4,"ngIf","ngIfElse"],[1,"personal-details-form__detail-table--row","new-style","border-bottom"],[1,"comms-selection"],["class","wb-all comms-selection--opted",4,"ngIf","ngIfElse"],[1,"personal-details-form__detail-table--edit",3,"click"],["class","edit padded--full tooltip category__description",4,"ngIf"],[1,"wb-all","comms-selection--opted"],[1,"icon","icon-success"],[1,"icon","icon-cross"],[1,"edit","padded--full","tooltip","category__description"],[1,"personal-details-form__detail-table--row","edit","new-style"],[1,"personal-details-form__detail-table--heading"],["class","edit padded--full tooltip",4,"ngIf"],[1,"edit"],[4,"ngFor","ngForOf"],[1,"personal-details-form__controls"],[1,"personal-details-form__cancel-btn",3,"click"],[3,"enabled","button"],[1,"edit","padded--full","tooltip"],[3,"content","checkedVal","formControl"],["formArrayName","questions",4,"ngFor","ngForOf"],["formArrayName","questions"],[3,"ngSwitch"],[4,"ngSwitchCase"],["formControlName","questionAnswer",3,"content","formControl"],[3,"outputReturnSelectedOptions","content"],["id","questionSelector","formControlName","questionAnswer",3,"showError","formControl","errorMessage","dataList","dataListPrefillItem","content","alwaysShowSuggestions"],[1,"suggestion__header"],[4,"ngIf","ngIfElse"],["class","suggestion__option",3,"mousedown",4,"ngFor","ngForOf"],[1,"suggestion__option",3,"mousedown"],[3,"innerHTML"],[1,"personal-details-form__detail-table--row","hide","border-bottom--heading"],["class","edit padded tooltip category__description",4,"ngIf"],[1,"edit","padded","tooltip","category__description"],["class","edit padded--full",4,"ngIf"],["class","question-block",4,"ngIf"],[1,"edit","padded--full"],[1,"question-block"],[1,"personal-details-form__container--final"]],template:function(o,r){o&1&&(p(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7)(4,"p",8)(5,"strong"),C(6,"Email preferences"),u()()(),p(7,"div",9)(8,"span"),C(9,"Choose the emails you'd like to receive. If you opt out of the options below, you'll still receive important service messages relating to your account."),u()(),p(10,"div",10),V(11,DY,3,2,"div",11),u()()(),V(12,KY,8,2,"div",12)(13,pK,8,2,"div",13),u()),o&2&&(d(10),v("formGroup",r.form),d(),v("ngForOf",r.preferenceForm==null?null:r.preferenceForm.controls),d(),v("ngIf",r.canTailor),d(),v("ngIf",r.hasMagazine))},dependencies:[lo,Ni,xv,Sv,Qe,ct,ei,_t,ti,tl,il,zo,wa,$p,Wp,Ee,Vs],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.edit-details-form .attached-list{position:relative}.edit-details-form .category{border-bottom:1px solid rgb(229.5,229.5,229.5)}.edit-details-form .category__description{grid-column:1/4;padding:0}.edit-details-form .padded{padding:20px}.edit-details-form .padded--full{padding:20px 0}.edit-details-form .personal-details-form__container{margin-bottom:3%}.edit-details-form .personal-details-form__container--final{margin-bottom:0}.edit-details-form .personal-details-form__detail-table--heading{margin:0;font-size:20px}.edit-details-form .question-block{max-width:280px}@media (min-width: 768px){.edit-details-form .question-block{max-width:675p
780x}}.edit-details-form .comms-selection{grid-column:1/4;font-weight:600}@media (min-width: 768px){.edit-details-form .comms-selection{grid-column:1/1;font-weight:inherit}}.edit-details-form .comms-selection--opted{display:flex;align-items:center;grid-column:1/4;font-size:14px}@media (min-width: 768px){.edit-details-form .comms-selection--opted{grid-column:2/2;font-size:18px}}.edit-details-form .comms-selection--opted i{margin-right:10px}.edit-details-form .comms-selection--opted .icon-cross{color:#e22b25} 781`],encapsulation:2});let e=t;return e})(),Fae=[{name:"Alabama",id:"AL"},{name:"Alaska",id:"AK"},{name:"Arizona",id:"AZ"},{name:"Arkansas",id:"AR"},{name:"California",id:"CA"},{name:"Colorado",id:"CO"},{name:"Connecticut",id:"CT"},{name:"Delaware",id:"DE"},{name:"Florida",id:"FL"},{name:"Georgia",id:"GA"},{name:"Hawaii",id:"HI"},{name:"Idaho",id:"ID"},{name:"Illinois",id:"IL"},{name:"Indiana",id:"IN"},{name:"Iowa",id:"IA"},{name:"Kansas",id:"KS"},{name:"Kentucky",id:"KY"},{name:"Louisiana",id:"LA"},{name:"Maine",id:"ME"},{name:"Maryland",id:"MD"},{name:"Massachusetts",id:"MA"},{name:"Michigan",id:"MI"},{name:"Minnesota",id:"MN"},{name:"Mississippi",id:"MS"},{name:"Missouri",id:"MO"},{name:"Montana",id:"MT"},{name:"Nebraska",id:"NE"},{name:"Nevada",id:"NV"},{name:"New Hampshire",id:"NH"},{name:"New Jersey",id:"NJ"},{name:"New Mexico",id:"NM"},{name:"New York",id:"NY"},{name:"North Carolina",id:"NC"},{name:"North Dakota",id:"ND"},{name:"Ohio",id:"OH"},{name:"Oklahoma",id:"OK"},{name:"Oregon",id:"OR"},{name:"Pennsylvania",id:"PA"},{name:"Rhode Island",id:"RI"},{name:"South Carolina",id:"SC"},{name:"South Dakota",id:"SD"},{name:"Tennessee",id:"TN"},{name:"Texas",id:"TX"},{name:"Utah",id:"UT"},{name:"Vermont",id:"VT"},{name:"Virginia",id:"VA"},{name:"Washington",id:"WA"},{name:"West Virginia",id:"WV"},{name:"Wisconsin",id:"WI"},{name:"Wyoming",id:"WY"}],Oae=(()=>{let t=class t{constructor(){this.selectedItem=new Ze({id:null,label:"",data:null}),this.currentSelectedItem=this.selectedItem.asObservable()}search(n){return Q(this._search(n))}_search(n){if(n==="err")throw new Error("testing error handler");n=n.toLowerCase();let o=Fae.filter(a=>a.name.toLowerCase().indexOf(n)!==-1),r=[];return o.forEach((a,s)=>{let l={id:a.id,label:a.name,data:a.id};r.push(l)}),r}onSubmit(n){this.selectedItem.next(n)}getSelectedItem(){return this.selectedItem}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Ns=(()=>{let t=class t{constructor(n,o,r,a){this.postcodeService=n,this.typeaheadService=o,this.typeaheadStateService=r,this.formbuilder=a,this.isDropdownActive=!1,this.isActive=!1,this.isLondon=!1,this.isOutsideUk=!1,this.isUS=!1,this.isManualEntry=!1,this.isManualEntryLink=!1,this.isLookup=!1,this.counter=0,this.postcodeInterface={id:"postcode",label:"<strong>Postcode</strong>",required:!0,codeType:"Postcode"},this.address1={id:"address1",label:"<strong>First line of address</strong>",required:!0,codeType:"AlphaText"},this.address2={id:"address2",label:"<strong>Second line of address</strong> (optional)",required:!1,codeType:"AlphaText"},this.town={id:"town",label:"<strong>Town/City</strong>",required:!0,codeType:"AlphaText"},this.state={id:"state",label:"<strong>Province or State</strong> (optional)",required:!1,codeType:"Alpha"},this.county={id:"county",label:"<strong>County</strong>",required:!0,codeType:"Alpha"},this.zipcode={id:"zipcode",label:"<strong>Postcode/Zip code</strong> (optional)",required:!0,codeType:"AlphaText"},this.manualEntry={action:{type:"callback",callback:this.enterAddressManually.bind(this)},text:"or enter address manually",aria:"or enter address manually",type:"text"},this.lookupEntry={action:{type:"callback",callback:this.lookupAddress.bind(this)},text:"Want to search by postcode?",aria:"Want to search by postcode?",type:"text"},this.autocompleteValidationInterface={label:"<strong>Country</strong>",required:!0,placeholder:"",toolTip:"Example: United Kingdom"},this.autocompleteStateValidationInterface={label:"<strong>State</strong>",required:!0,placeholder:""},this.findAddress={text:"Find address",action:{type:"callback",callback:this.searchPostcode.bind(this)},type:"primary",aria:"Find address"},this.countryErrorMessage="Start typing your country's name then select from the list displayed",this.stateErrorMessage="Start typing your state's n
781ame then select from the list displayed",this.createForm()}ngOnInit(){this.countryChanged()}countryChanged(){this.formgroup.get("country").valueChanges.pipe(oh()).subscribe(n=>{n&&(n.id!=="GBR"&&(this.resetFields(),this.isActive=!0,this.isOutsideUk=!0,this.formgroup.removeControl("postcode"),this.postcodeInterface.codeType="AlphaText",this.postcodeInterface.required=n.id==="USA",this.postcodeInterface.validationMessage="The postcode field is limited to 20 characters. Please enter only your postcode; do not include your full address. Add the rest of your address in the fields above.",this.formgroup.addControl("postcode",new uo("",fe.maxLength(20))),this.formgroup.removeControl("county"),this.formgroup.addControl("county",new uo("")),this.isDropdownActive=!1,this.isLondon=!1,this.isLookup=!1,this.isUS=!1,this.county.required=!1,this.county.label="<strong>County</strong> (optional)"),n.id==="USA"?(this.isUS=!0,this.formgroup.controls.state.setValidators([fe.required]),this.formgroup.removeControl("county"),this.postcodeInterface.label="<strong>Postcode/Zip code</strong>"):this.postcodeInterface.label="<strong>Postcode/Zip code</strong> (optional)",n.id==="GBR"&&(this.formgroup.controls.state.clearValidators(),this.resetCountyField("",!0),this.resetFormControl("postcode","Postcode"),this.isOutsideUk=!1,this.isLookup=!0,this.isActive=!1,this.isUS=!1,this.isManualEntryLink=!1))})}createForm(){this.formgroup=this.formbuilder.group({postcode:["",[fe.required,fe.maxLength(20)]],address1:["",fe.required],address2:[""],town:["",fe.required],county:["",fe.required],country:["",fe.required],countryItem:[""],state:[""],zipcode:[""]})}searchPostcode(){this.formgroup.get("address1").patchValue("",{emitEvent:!1}),this.formgroup.get("address2").patchValue("",{emitEvent:!1}),this.formgroup.get("town").patchValue("",{emitEvent:!1}),this.formgroup.get("county").patchValue("",{emitEvent:!1}),this.formgroup.get("state").patchValue("",{emitEvent:!1}),this.formgroup.get("zipcode").patchValue("",{emitEvent:!1}),this.formgroup.addControl("dropDownAddressControl",new uo("",fe.required));let n=this.formgroup.controls.postcode.value;this.postcodeService.search(n).subscribe(o=>{let r=[];o.forEach(s=>{let l={label:s.Text,value:s.Id,selected:!1};r.push(l)});let a={placeholder:"Select your address...",group:"addresses",options:r,validationMessage:"Please select your address from the list"};this.dropdownCategoriesContent=a,this.isDropdownActive=!0,this.isManualEntryLink=!0,this.isActive=!1},o=>{this.isActive=!1,this.isDropdownActive=!1,this.isManualEntryLink=!0})}getSelectedOptions(n){let o=n[0].value;this.postcodeService.getPostcode(o).subscribe(r=>{r.Items&&(r=r.Items);let a=[];r.forEach(s=>{let l={line1:s.Line1,line2:s.Line2,city:s.City,county:s.Province};a.push(l)}),a[0].city==="London"?(this.isLondon=!0,this.formgroup.controls.county.setValue("")):(this.isLondon=!1,this.resetCountyField("",!0)),this.formgroup.removeControl("dropDownAddressControl"),this.formgroup.controls.address1.setValue(a[0].line1),this.formgroup.controls.address1.markAsTouched(),this.formgroup.controls.address2.setValue(a[0].line2),this.formgroup.controls.town.setValue(a[0].city),this.formgroup.controls.town.markAsTouched(),this.isLondon||(this.formgroup.controls.county.setValue(a[0].county),this.formgroup.controls.county.markAsTouched()),this.isDropdownActive=!1,this.isActive=!0})}enterAddressManually(){this.resetFormControl("postcode","Postcode"),this.formgroup.controls.dropDownAddressControl&&this.formgroup.removeControl("dropDownAddressControl"),this.isDropdownActive=!1,this.isLookup=!1,this.isLondon=!1,this.isActive=!0,this.isManualEntry=!0,this.resetFields()}lookupAddress(){this.resetFormControl("postcode","Postcode"),this.isLookup=!0,this.isActive=!1,this.isDropdownActive=!1,this.isManualEntry=!1,this.isManualEntryLink=!1}resetFields(){this.formgroup.get("address1").patchValue("",{emitEvent:!1}),this.formgroup.get("address2").patchValue("",{emitEvent:!1}),this.formgroup.get("town").patchValue("",{emitEvent:!1}),this.isUS||this.formgroup.get("county").patchValue("",{emitEvent:!1}),this.formgroup.get("postcode").patchValue("",{emitEvent:!1}),this.formgroup.get("state").patchValue("",{emitEvent:!1}),this.formgroup.get("zipcode").patchValue("",{emitEvent:!1}),this.formgroup.markAsUntouched(),this.formgroup.markAsPristine()}resetFormControl(n,o){this.formgroup.removeControl(n),this.postcodeInterface.codeType=o,this.postcodeInterface.required=!0,this.postcodeInterface.label="<strong>Postcode</strong>",this.formgroup.addControl(n,new uo("",fe.required)),n==="postcode"&&this.formgroup.controls.postcode.addValidators(fe.maxLength(20))}resetCountyField(n="",o=!1){this.formgroup.removeControl("county"),this.county.codeType="Alpha",this.county.required=o,this.county.label="<strong>County</strong>",this.formgroup.addControl("county",new uo(n))}londonCheck(n){this.formgroup.get("country").value.id==="GBR"&&(n.key?.toLowerCase()==="n"&&this.formgroup.get("town").value.toLowerCase()==="londo"||n.key==="Tab"&&this.formgroup.get("town").value.toLowerCase()==="london")?(this.county.required=!1,this.formgroup.controls.county.clearValidators(),this.formgroup.controls.county.setValue(""),this.formgroup.controls.county.updateV
781alueAndValidity(),this.isLondon=!0):this.formgroup.get("country").value.id==="GBR"&&(this.isLondon=!1,this.county.required=!0,this.formgroup.controls.county.setValidators(fe.required),this.formgroup.controls.county.updateValueAndValidity())}};t.\u0275fac=function(o){return new(o||t)(O(L0),O(N0),O(Oae),O(Wc))},t.\u0275cmp=U({type:t,selectors:[["fab-postcode-lookup"]],viewQuery:function(o,r){if(o&1&&(Ue(hK,5),Ue(gK,5)),o&2){let a;Me(a=Te())&&(r.autocompleteValidationComponent=a),Me(a=Te())&&(r.autocompleteStateValidationComponent=a)}},standalone:!1,decls:14,vars:10,consts:[["FabAC",""],["StateSelector",""],[1,"postcode-lookup",3,"formGroup"],[1,"row"],[1,"col-md-12","col-sm-12","col-xs-12","margin-bottom"],["id","countryItem","formControlName","countryItem",3,"errorMessage","formControl","service","content"],[1,"suggestion__header"],[1,"suggestion__option"],[1,"postcode-lookup__container"],[1,"suggestion__option",3,"mousedown"],[3,"innerHTML"],[1,"postcode-lookup__search"],["formControlName","postcode",1,"postcode-lookup__search--input",3,"content","formControl"],[1,"postcode-lookup__search__button"],[3,"button","enabled"],[3,"button"],[3,"outputReturnSelectedOptions","content","formControl"],["formControlName","address1",3,"content","formControl"],["formControlName","address2",3,"content","formControl"],["formControlName","town",3,"keydown","content","formControl"],["formControlName","county",3,"content","formControl"],["formControlName","state",3,"content","formControl"],["id","state","formControlName","state",3,"errorMessage","formControl","service","content"],["formControlName","postcode",3,"content","formControl"],[1,"col-md-9","col-sm-9","col-xs-12","postcode-lookup__length-validation"]],template:function(o,r){if(o&1&&(p(0,"div",2)(1,"div",3)(2,"div",4)(3,"fab-autocomplete-validation",5,0),N(5,"formControl"),p(6,"header",6),C(7,"YOUR RESULTS"),u(),p(8,"ul"),X(9,mK,3,6,"li",7,se),u()()()(),y(11,vK,7,7,"div",8),y(12,CK,3,4,"div"),y(13,MK,14,16,"div",3),u()),o&2){let a=de(4);v("formGroup",r.formgroup),d(3),v("errorMessage",r.countryErrorMessage)("formControl",G(5,8,r.formgroup.controls.country))("service",r.typeaheadService)("content",r.autocompleteValidationInterface),d(6),ee(a.results),d(2),w(r.isLookup?11:-1),d(),w(r.isDropdownActive&&r.formgroup.controls.postcode.valid?12:-1),d(),w(r.isActive?13:-1)}},dependencies:[wa,Ee,to,Qe,ct,ei,_t,ti,Wp,Vs,bn],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.postcode-lookup .margin-bottom{margin-bottom:15px}@media only screen and (min-width: 608px) and (max-width: 767px){.postcode-lookup .custom-max-width{max-width:122px}}@media (min-width: 768px){.postcode-lookup .custom-max-width{max-width:155px}}@media (min-width: 992px){.postcode-lookup .custom-max-width{max-width:175px}}@media (min-width: 1200px){.postcode-lookup .custom-max-width{margin-top:2px}}.postcode-lookup fab-button{display:block}@media (min-width: 992px){.postcode-lookup fab-button{margin-top:13px}}.postcode-lookup fab-button .button-text{font-size:14px;display:inline-block}.postcode-lookup__container{display:flex;flex-direction:column;margin-bottom:20px}@media (min-width: 992px){.postcode-lookup__search{display:flex;flex-direction:row;max-width:66.6666666667%;min-width:unset;flex-basis:66.6666666667%;justify-content:space-between}}.postcode-lookup__search{min-width:100%}.postcode-lookup__search__button{text-wrap:nowrap;max-width:83.3333333333%;margin-top:25px}.postcode-lookup__search--input{min-width:125px}.postcode-lookup__length-validation{color:#e22b25;margin-top:1rem} 782`],encapsulation:2});let e=t;return e})(),Aae=(()=>{let t=class t{constructor(n){this.formGroup=new Er({}),this.searchText="",this.countries=[],this.filteredItems=[],this.showSuggestions=!1,this.showInput=!1,this.hover=!1,this.index=0,this.countries=b0,this.filteredItems=b0,this.elementRef=n}ngOnInit(){document.addEventListener("click",this.onDocumentClick.bind(this));let n=this.content.preSelectedCountry.toUpperCase()||"GB";this.onItemSelected(this.countries.find(o=>o.internationalDiallingISOCode===n))}ngOnDestroy(){document.removeEventListener("click",this.onDocumentClick.bind(this))}onDocumentClick(n){n.stopPropagation(),this.elementRef.nativeElement.contains(n.target)||(this.showSuggestions=!1)}onItemSelected(n){this.itemSelected=n,this.filteredItems=[],this.showInput=!1,this.searchText="",this.formGroup.get("internationalDiallingCode").patchValue(n.internationalDiallingCode),this.formGroup.get("internationalDiallingISOCode").patchValue(n.internationalDiallingISOCode),this.formGroup.get("daytimeNumber").setValidators([fe.required,this.customPhoneValidator(n)]),this.formGroup.get("daytimeNumber").updateV
782alueAndValidity()}customPhoneValidator(n){return o=>{let r=o.value?.replaceAll(" ","");if(!r)return null;let a=n.internationalDiallingISOCode==="GB"?n.telephoneRegex:/^(?:[0-9]â?){6,14}[0-9]$/;return new RegExp(a).test(r)?null:{invalidNumber:!0}}}filterItems(n=!1){if(!this.searchText)this.filteredItems=this.countries,this.itemSelected&&n&&setTimeout(()=>{console.log(this.filteredItems.indexOf(this.itemSelected)),this.scrollSuggestions(this.filteredItems.indexOf(this.itemSelected))});else{let o=this.searchText.toLowerCase();this.filteredItems=this.countries.filter(r=>r.name.toLowerCase().includes(o))}}onKeyDown(n){switch(n.keyCode){case 40:this.index<this.filteredItems.length-1&&(this.index++,this.scrollSuggestions(1));break;case 38:n.preventDefault(),this.index>-1&&(this.index--,this.scrollSuggestions(-1));break;case 13:n.preventDefault(),this.index>-1&&this.onItemSelected(this.filteredItems[this.index]);break;case 27:this.filteredItems=[],this.showSuggestions=!1;break;default:this.showSuggestions=!0;break}}onToogleInput(){this.showSuggestions=!1,this.showInput=!this.showInput}onInputFocus(){this.showSuggestions=!0,this.filterItems(!0)}mouseEnter(n){this.index=n}mouseLeave(){this.index=0}scrollSuggestions(n){let o=this.suggestions.nativeElement;o.scrollTop+=n*43}};t.\u0275fac=function(o){return new(o||t)(O($t))},t.\u0275cmp=U({type:t,selectors:[["fab-international-phone-input"]],viewQuery:function(o,r){if(o&1&&Ue(TK,5),o&2){let a;Me(a=Te())&&(r.suggestions=a.first)}},inputs:{formGroup:"formGroup",content:"content"},standalone:!1,decls:14,vars:12,consts:[["suggestions",""],[1,"ipi-component"],[3,"formGroup"],["for","phone",1,"ipi-component__label"],[1,"ipi-component__flex"],[1,"ipi-component__control",3,"ngClass"],["type","button",1,"ipi-component__button",3,"click"],[1,"icon","icon-arrow-down"],["id","phone","type","text","formControlName","daytimeNumber","placeholder","121 234 5678","maxLength","15",1,"ipi-component__input",3,"keyup"],[3,"ngClass"],[1,"ipi-component__autocomplete"],[1,"ipi-component__autocomplete--box"],["type","text","placeholder","Search country",1,"ipi-component__search",3,"ngModelChange","keyup","keydown","focus","ngModel","ngModelOptions"],[1,"ipi-component__suggestions"],[1,"ipi-component__suggestion",3,"active"],[1,"ipi-component__suggestion",3,"click","mouseenter","mouseleave"],[1,"ipi-component__error-message"]],template:function(o,r){o&1&&(p(0,"div",1)(1,"form",2),y(2,RK,3,1,"label",3),p(3,"div",4)(4,"div",5)(5,"button",6),T("click",function(){return r.onToogleInput()}),x(6,"span"),p(7,"span"),C(8),u(),x(9,"i",7),u(),p(10,"input",8),T("keyup",function(){return r.filterItems()}),u()(),y(11,FK,1,4,"i",9),u(),y(12,LK,4,5,"div",10),y(13,BK,3,3,"div"),u()()),o&2&&(d(),v("formGroup",r.formGroup),d(),w(r.content.label?2:-1),d(2),v("ngClass",z(10,IK,r.formGroup.get("daytimeNumber").touched&&r.formGroup.get("daytimeNumber").invalid)),d(2),pe(vt("fi fi-",r.itemSelected.internationalDiallingISOCode.toLowerCase())),d(2),A("+",r.itemSelected.internationalDiallingCode),d(3),w(r.formGroup.get("daytimeNumber").touched||r.formGroup.get("daytimeNumber").valid?11:-1),d(),w(r.showInput?12:-1),d(),w(r.formGroup.get("daytimeNumber").touched&&r.formGroup.get("daytimeNumber").errors?13:-1))},dependencies:[Ce,ho,Bi,Qe,ct,po,_t,ti],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.ipi-component[_ngcontent-%COMP%]{width:fit-content}.ipi-component__flex[_ngcontent-%COMP%]{display:flex;position:relative;margin:5px 0}.ipi-component__flex[_ngcontent-%COMP%] .icon-error[_ngcontent-%COMP%], .ipi-component__flex[_ngcontent-%COMP%] .icon-success[_ngcontent-%COMP%]{position:absolute;right:-25px;top:12px}.ipi-component__flex[_ngcontent-%COMP%] .icon-error[_ngcontent-%COMP%]{color:#e22b25}.ipi-component__flex[_ngcontent-%COMP%] .icon-success[_ngcontent-%COMP%]{color:#00ab4e}.ipi-component__control[_ngcontent-%COMP%]{box-sizing:border-box;border:2px solid rgb(229.5,229.5,229.5);border-radius:3px;width:92%;display:flex}.ipi-component__control.validation-error[_ngcontent-%COMP%]{border-color:#e22b25}.ipi-component__input[_ngcontent-%COMP%]{border:none;padding:10px;outline:none;background:none}.ipi-component__button[_ngcontent-%COMP%]{position:relative;background-color:inherit;border:1px rgb(229.5,229.5,229.5);border-style:none solid none none;padding:10px 25px 10px 5px;min-width:fit-content}.ipi-component__button[_ngcontent-%COMP%] .icon-arrow-down[_ngcontent-%COMP%]{position:absolute;top:15px;font-size:14px}.ipi-component__button[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-right:5px}.ipi-component__autocomplete[_ngcontent-%COMP%]{width:auto}.ipi-component__autocomplete--box[_ngcontent-%COMP%]{position:relative}.ipi-component__search[_ngcontent-%COMP%]{margin-top:2px;background-color:inherit;border:2px rgb(229.5,229.5,229.5);border-style:solid;padding:10px 25px 10px 5px;width:100%}.ipi-component__suggestions[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;max-height:215px;position:absolute;overflow:auto;background-color:#f9f9f9;z-index:1}.ipi-component__suggestion[_ngcontent-%COMP%]{border:2px #e6e6e6;border-style:solid;border-top:none;text-align:left;background-color:inherit;padding:10px}.ipi-component__suggestion[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-right:5px}.ipi-component__suggestion[_ngcontent-%COMP%]:hover, .ipi-component__suggestion.active[_ngcontent-%COMP%]{background-color:#e6e6e6}.ipi-component__error-message[_ngcontent-%COMP%]{color:#e22b25;margin-top:0;font-size:14px}"],data:{animation:[jo("onOff",[fi(":enter",[Pt({opacity:0,transform:"translateY(-10%)"}),mi(400)]),fi(":leave",[mi(400,Pt({opacity:0,transform:"translateY(-10%)"}))])])]}});let e=t;return e})(),Lae=(()=>{let t=class t{constructor(n,o,r,a,s,l,c){this.contactService=n,this.fb=o,this.changeDetector=r,this.countryPipe=a,this.titlePipe=s,this.upperPipe=l,this.sharedFormService=c,this.updatedData=new L,this.isAmendingDetails=!1,this.subscriptions=[],this.emailButton=this.getUpdateButton("email"),this.telephoneButton=this.getUpdateButton("telephone"),this.addressButton=this.getUpdateButton("address"),this.emailInterface=Wre,this.phoneNumberInterface=cae,this.dateInterface=bE,this.confirmEmailInterface=dae,this.titleInterface=Rp,this.itiContent={preSelectedCountry:"",label:"Please enter your updated phone number"},this.getIsoKeyName=h=>b0.find(m=>m.internationalDiallingISOCode===h),this.checkConfirmationValidator=(h,m,f)=>{h.value!==m.value?m.errors||m.setErrors({formControlValidationErrors:{value:`The ${f.toLowerCase()} doesn't match`}}):(m.setErrors(null),m.updateValueAndValidity({onlySelf:!0}))},this.formatContact=(h=!0)=>
782({name:{givenName:this.contact.name.givenName,familyName:this.contact.name.familyName,honorificPrefix:this.contact.name.honorificPrefix},email:this.form.value.email||this.contact.email,telephone:{daytimeNumber:this.form.controls.telephone.value.daytimeNumber||this.contact.telephone?.daytimeNumber},internationalDiallingCode:{internationalDiallingCode:this.form.controls.telephone.value.internationalDiallingCode||this.contact.internationalDiallingCode?.internationalDiallingCode,internationalDiallingISOCode:this.form.controls.telephone.value.internationalDiallingISOCode||this.contact.internationalDiallingCode?.internationalDiallingISOCode},address:h&&this.form.get("address").value||this.contact.address,memberId:this.contact.memberId,contactId:this.contact.contactId})}ngOnInit(){this.initContent()}ngOnDestroy(){this.subscriptions.forEach(n=>n.unsubscribe())}ngAfterViewInit(){this.setPostCodeLookUpAddress(),this.findInvalidControls(),setTimeout(()=>{for(let n in this.form.controls)this.form.controls[n].markAsTouched({onlySelf:!1}),n==="telephone"&&this.form.controls[n].get("daytimeNumber").markAsTouched({onlySelf:!0}),this.form.controls[n].valid&&((!this.contact.telephone||!this.contact.internationalDiallingCode)&&n==="telephone"?this.confirmNumber=!0:(this.form.controls[n].disable(),this.form.controls[n].markAsUntouched({onlySelf:!1})))}),this.changeDetector.detectChanges()}editField(n){for(let o in this.form.controls)this.form.controls[o].valid&&(o==="telephone"&&(!this.contact.telephone||!this.contact.telephone.dialCode)?this.form.controls[o].enable():this.form.controls[o].disable());this.form.controls[n].enable(),n==="email"&&this.form.controls.emailConfirmation.enable(),this.form.controls[n].markAsTouched({onlySelf:!1}),this.confirmNumber=!1}cancelEditing(n){if(n==="telephone"&&(!this.contact.telephone||!this.contact.internationalDiallingCode)){this.attemptedCancel=!0,this.phoneValidation();return}let o=this.contact[n];n==="telephone"&&o&&(this.attemptedCancel=!1,o=this.provideTelephone()),this.form.controls[n].patchValue(o,{emitEvent:!1}),n==="address"&&this.setPostCodeLookUpAddress(),this.form.controls[n].disable(),this.form.controls[n].markAsPristine({onlySelf:!0}),this.form.controls[n].markAsUntouched({onlySelf:!1}),n==="email"&&(this.form.controls.emailConfirmation.disable(),this.form.controls.emailConfirmation.patchValue("",{emitEvent:!1}),this.form.controls.emailConfirmation.markAsPristine({onlySelf:!0}),this.form.controls.emailConfirmation.markAsUntouched({onlySelf:!1}))}getUpdateButton(n){let o={action:{type:"callback",callback:()=>this.finishEditing(n)}};return B(B({},Cn),o)}initContent(){this.contact=this.contactDetails,this.masterForm=this.sharedFormService.form,this.contactAddress=this.formatAddressDisplayed(this.contact.address),this.sharedFormService.addToForm("contactDetailsForm",this.fb.group({email:[{value:this.contact.email||"",disabled:!1}],emailConfirmation:[{value:"",disabled:!0}],telephone:this.fb.group({daytimeNumber:[this.contact.telephone?.daytimeNumber||"",fe.required],internationalDiallingCode:[this.contact.internationalDiallingCode?.internationalDiallingCode||"",[fe.required]],internationalDiallingISOCode:[this.contact.internationalDiallingCode?.internationalDiallingISOCode?.toUpperCase()||"",fe.required]})})),this.itiContent.preSelectedCountry=this.contact.internationalDiallingCode?.internationalDiallingISOCode||this.getIsoKeyName(Aoe.find(n=>n.iso3===this.contact.address.addressCountry).iso2).internationalDiallingISOCode,this.form=this.masterForm.get("contactDetailsForm"),this.subscribeFormControls()}finishEditing(n){if(this.form.controls[n].invalid){this.findInvalidControls();return}this.contact=this.formatContact(n==="address"),this.contact.address.country&&this.contact.address.country.id&&(this.contact.address.countryItem.id=this.contact.address.country.id),this.contactAddress=this.formatAddressDisplayed(this.contact.address),this.form.controls[n].disable(),n==="email"&&this.form.controls.emailConfirmation.disable(),this.attemptedCancel=!1,this.updatedData.emit(this.contact),this.form.controls[n].markAsUntouched(),this.confirmNumber=!1}setPostCodeLookUpAddress(){if(this.postcodeLookupComponent&&(this.postcodeInstance=this.postcodeLookupComponent.toArray()[0],this.postcodeInstance.formgroup.setParent(this.form),this.form.addControl("address",this.postcodeInstance.formgroup),this.contact.address)){if(this.contact.address.addressCountry){this.form.get("address").get("countryItem").patchValue({id:this.contact.address.addressCountry});let n=this.postcodeLookupComponent.toArray()[0].autocompleteValidationComponent.toArray()[0];n.selection={id:this.contact.address.addressCountry,label:this.countryPipe.transform(this.contact.address.addressCountry),data:this.contact.address.addressCountry},n.search={context:null,term:this.countryPipe.transform(this.contact.address.addressCountry)},n.search.id=this.contact.address.addressCountry,this.postcodeInstance.countryChanged()}if(this.contact.address.postalCode&&this.contact.address.streetAddressLine1)switch(this.contact.address.addressCountry==="GBR"&&this.postcodeInstance.enterAddressManually(),this.contact.address.addressCountry){case"GBR":this.form.get("address").patchValue({postcode:this.contact.address.postalCode,address1:this.contact.address.streetAddressLine1,address2:this.contact.address.streetAddressLine2,town:this.contact.address.addressLocality,county:this.contact.address.addressLocality.toLowerCase()==="london"?"L
782ondon":this.contact.address.addressRegion});break;case"USA":this.form.get("address").patchValue({zipcode:this.contact.address.postalCode,postcode:this.contact.address.postalCode,address1:this.contact.address.streetAddressLine1,address2:this.contact.address.streetAddressLine2,town:this.contact.address.addressLocality,state:this.contact.address.addressRegion});break;default:this.form.get("address").patchValue({postcode:this.contact.address.postalCode||"",address1:this.contact.address.streetAddressLine1||"",address2:this.contact.address.streetAddressLine2||"",town:this.contact.address.addressLocality||"",county:this.contact.address.addressRegion||""})}else this.contact.address.postalCode?this.form.get("address").get("postcode").patchValue(this.contact.address.postalCode):!["GBR","USA"].includes(this.contact.address.addressCountry)&&!this.contact.address.postalCode&&this.form.get("address").patchValue({address1:this.contact.address.streetAddressLine1||"",address2:this.contact.address.streetAddressLine2||"",town:this.contact.address.addressLocality||"",county:this.contact.address.addressRegion||""})}}subscribeFormControls(){this.subscriptions.push(this.form.valueChanges.subscribe(n=>{this.checkConfirmationValidator(this.form.controls.email,this.form.controls.emailConfirmation,"Email address"),this.phoneValidation()})),this.subscriptions.push(this.form.controls.email.valueChanges.subscribe(n=>{this.form.controls.email.status==="VALID"&&this.form.controls.email.value!==this.contact.email&&this.contactService.checkAvailability(this.form.controls.email.value).subscribe(o=>{},o=>{this.form.controls.email.setErrors({formControlValidationErrors:{value:"This email address is already registered with us, please log in"}})})}))}phoneValidation(){switch(!0){case((!this.contact.telephone||!this.contact.telephone.dialCode)&&(this.invalidSections.includes("contactDetailsForm")||this.attemptedCancel)):this.phoneValidationMessage="Please confirm your phone number";break;default:this.phoneValid=!0,this.phoneValidationMessage=""}}findInvalidControls(){let n=this.form.controls,o=this.postcodeInstance.formgroup.controls;for(let r in n)n[r].invalid&&n[r].errors&&n[r].errors.required;for(let r in o)o[r].invalid&&o[r].errors&&o[r].errors.required&&(o[r].markAsTouched({onlySelf:!0}),o[r].markAsDirty({onlySelf:!0})),r==="postcode"&&o[r].valid&&!this.postcodeInstance.isActive&&(this.postcodeInstance.searchPostcode(),this.postcodeInstance.formgroup.controls.dropDownAddressControl.setErrors({formControlValidationErrors:{value:"Select your address or click or enter address manually"}}),this.postcodeInstance.formgroup.controls.dropDownAddressControl.markAsTouched({onlySelf:!0}))}formatAddressDisplayed(n){return{A0_streetAddressLine1:this.titlePipe.transform(n.streetAddressLine1)||this.titlePipe.transform(n.address1)||null,A1_streetAddressLine2:this.titlePipe.transform(n.streetAddressLine2)||this.titlePipe.transform(n.address2)||null,A2_addressLocality:this.titlePipe.transform(n.addressLocality)||this.titlePipe.transform(n.town)||null,A3_addressRegion:(n.addressLocality&&n.addressLocality.toLowerCase()!=="london"||n.town&&n.town.toLowerCase()!=="london")&&(this.titlePipe.transform(n.addressRegion)||this.titlePipe.transform(n.county)||this.titlePipe.transform(n.state?.label)||this.titlePipe.transform(n.state))||null,A4_postalCode:this.upperPipe.transform(n.postalCode)||this.upperPipe.transform(n.postcode)||null,A5_addressCountry:n.addressCountry||n.country?.id||n.country||null}}provideTelephone(){if(this.contact.telephone){if(this.contact.telephone.daytimeNumber)return this.contact.internationalDiallingCode&&this.contact.internationalDiallingCode.internationalDiallingCode?{countryCode:this.contact.internationalDiallingCode.internationalDiallingISOCode.toUpperCase(),dialCode:this.contact.internationalDiallingCode.internationalDiallingCode,e164Number:`${this.contact.internationalDiallingCode.internationalDiallingCode}${this.contact.telephone.daytimeNumber}`.replace(/\s/g,""),daytimeNumber:this.contact.telephone.daytimeNumber.charAt(0)==="0"?this.contact.telephone.daytimeNumber:`0${this.contact.telephone.daytimeNumber}`,number:this.contact.telephone.daytimeNumber.charAt(0)==="0"?this.contact.telephone.daytimeNumber.replace("0",""):this.contact.telephone.daytimeNumber}:this.contact.telephone.daytimeNumber;if(this.contact.telephone.eveningNumber)return this.contact.telephone.eveningNumber}else return null}};t.\u0275fac=function(o){return new(o||t)(O(No),O(nn),O(Ii),O(yc),O(Hc),O(el),O(eo))},t.\u0275cmp=U({type:t,selectors:[["app-contact-details"]],viewQuery:function(o,r){if(o&1&&Ue(Ns,5),o&2){let a;Me(a=Te())&&(r.postcodeLookupComponent=a)}},inputs:{invalidSections:"invalidSections",contactDetails:"contactDetails",confirmNumber:"confirmNumber"},outputs:{updatedData:"updatedData"},standalone:!1,decls:41,vars:19,consts:[[1,"personal-details-form"],[3,"formGroup"],[1,"personal-details-form__box","no-padding"],[1,"personal-details-form__detail-table--row","edit"],[1,"personal-details-form__detail-table--row"],[1,"edit","padded","tooltip",3,"ngClass"],[1,"personal-details-form__detail-table--row","edit",3,"ngClass"],[1,"personal-details-form__detail-table--heading"],[1,"personal-details-form__detail-table--message"],[1,"personal-details-form__detail-table--message","tooltip"],[1,"personal-details-form__detail-table__postcode"],[1,"personal-details-form__controls"],[1,"wb-all"],[1,"personal-details-form__detail-table--edit",3,"click"],[1,"edit","padded","tooltip"],[1,"padded-full"],["formControlName","email",3,"content","formControl","required"],[1,".padded-full"],["formControlName","emailConfirmation",3,"content","formControl","required"],[1,"personal-details-form__cancel-btn",3,"click"],[3,"button","enabled"],[1,"ph
782one-lookup"],[3,"formGroup","content"],[1,"error-message"]],template:function(o,r){o&1&&(p(0,"div",0)(1,"div")(2,"div",1)(3,"div",2),y(4,VK,12,1,"div")(5,GK,20,12,"div",3),y(6,WK,12,1,"div")(7,KK,13,7,"div",3),y(8,QK,20,8,"div",4),p(9,"div",5)(10,"span"),C(11,"We'll use your address to send important information such as renewal notifications or certificates. Don't forget to confirm if you'd like to receive marketing information in the post from us by updating your communication preferences."),u()(),p(12,"div",6)(13,"div")(14,"p",7)(15,"strong"),C(16,"Update your address"),u()(),p(17,"p",8),C(18,"Your current address is:"),u(),p(19,"div")(20,"div"),C(21),u(),p(22,"div"),C(23),u(),p(24,"div"),C(25),u(),p(26,"div"),C(27),u(),p(28,"div"),C(29),u(),p(30,"div"),C(31),N(32,"countryName"),u()(),p(33,"p",9),C(34," Don't forget to confirm if you'd like to receive marketing information in the post from us by updating your communication preferences. "),u(),p(35,"p")(36,"strong"),C(37,"Please enter your updated address"),u()(),p(38,"div",10),x(39,"fab-postcode-lookup"),u(),y(40,JK,5,2,"div",11),u()()()()()()),o&2&&(d(2),v("formGroup",r.form),d(2),w(r.form.get("email").disabled?4:5),d(2),w(r.form.get("telephone").disabled?6:7),d(2),w(r.form.get("address")&&r.form.get("address").disabled?8:-1),d(),v("ngClass",z(15,As,!r.form.get("address")||r.form.get("address")&&r.form.get("address").enabled)),d(3),v("ngClass",z(17,As,!r.form.get("address")||r.form.get("address")&&r.form.get("address").disabled)),d(9),A(" ",r.contactAddress.A0_streetAddressLine1," "),d(2),A(" ",r.contactAddress.A1_streetAddressLine2," "),d(2),R(r.contactAddress.A2_addressLocality),d(2),R(r.contactAddress.A3_addressRegion),d(2),R(r.contactAddress.A4_postalCode),d(2),A(" ",G(32,13,r.contactAddress.A5_addressCountry)," "),d(9),w(r.isAmendingDetails?-1:40))},dependencies:[Ce,Qe,ct,al,ei,_t,ti,to,Ns,Aae,Ee,yc,bn,bre],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.edit-details-form .phone-lookup{margin-top:30px;display:flex}.edit-details-form .bordered{margin-top:15px} 783`],encapsulation:2});let e=t;return e})(),Nae=(()=>{let t=class t{constructor(n,o,r,a){this.fb=n,this.changeDetector=o,this.sharedFormService=r,this.analyticsService=a,this.updatedContactPreference=new L,this.isAmendingDetails=!1,this.subscriptions=[],this.phoneCallsButton=this.getUpdateButton("phoneCalls"),this.textButton=this.getUpdateButton("textMessage"),this.mailingButton=this.getUpdateButton("mailing"),this.shareButton=this.getUpdateButton("shareWith3rdParty"),this.thirdPartyContactInterface=Kre,this.mailingContactInterface=Qre,this.textContactInterface=Jre,this.phoneContactInterface=Zre}ngOnInit(){this.contact=this.contactDetails,this._initContent()}ngOnDestroy(){this.subscriptions.forEach(n=>n.unsubscribe())}ngAfterViewInit(){this._findInvalidControls();for(let n in this.form.controls)this.form.controls[n].valid&&this.form.controls[n].disable();this.changeDetector.detectChanges()}editField(n){this.form.get(n);for(let o in this.form.controls)this.form.controls[o].disable();this.form.controls[n].enable()}cancelEditing(n){let o=this.contact.contactPreference[n];this.form.controls[n].invalid||(n==="shareWith3rdParty"&&(o=this.contact[n]),this.form.controls[n].patchValue(o,{emitEvent:!1}),this.form.controls[n].disable())}getUpdateButton(n){let o={action:{type:"callback",callback:()=>this._finishEditing(n)}};return B(B({},Cn),o)}_initContent(){this.masterForm=this.sharedFormService.form,this.sharedFormService.addToForm("contactPreferencesForm",this.fb.group({phoneCalls:[{value:this.contact.contactPreference.phoneCalls,disabled:!1},fe.required],textMessage:[{value:this.contact.contactPreference.textMessage,disabled:!1},fe.required],mailing:[{value:this.contact.contactPreference.mailing,disabled:!1},fe.required],shareWith3rdParty:[{value:this.contact.shareWith3rdParty,disabled:!1},fe.required]})),this.form=this.masterForm.get("contactPreferencesForm"),this._subscribeFormControls()}_finishEditing(n){this.form.controls[n].invalid||(this.updatedContactPreference.emit(this._formatResponse(n)),this.form.controls[n].disable(),this.masterForm.markAsDirty())}_subscribeFormControls(){this.subscriptions.push(this.form.valueChanges.subscribe(n=>n))}
783_findInvalidControls(){let n=this.form.controls;for(let o in n)n[o].invalid&&n[o].errors&&n[o].errors.required&&n[o].markAsTouched({onlySelf:!0})}_formatResponse(n){return this.form.controls[n].value===void 0&&this.form.patchValue({[n]:this.contact[n]||this.contact.contactPreference[n]||""},{emitEvent:!1}),{phoneCalls:this.form.get("phoneCalls").value||this.contact.contactPreference.phoneCalls||"",textMessage:this.form.get("textMessage").value||this.contact.contactPreference.textMessage||"",mailing:this.form.get("mailing").value,shareWith3rdParty:!this.form.get("shareWith3rdParty").value}}};t.\u0275fac=function(o){return new(o||t)(O(nn),O(Ii),O(eo),O(j0))},t.\u0275cmp=U({type:t,selectors:[["app-contact-preferences"]],inputs:{invalidSections:"invalidSections",contactDetails:"contactDetails"},outputs:{updatedContactPreference:"updatedContactPreference"},standalone:!1,decls:23,vars:9,consts:[["editPhone",""],["editText",""],["editPost",""],["editThird",""],["notAllowed",""],[1,"personal-details-form"],[3,"formGroup"],[1,"personal-details-form__box","no-padding"],[1,"personal-details-form__detail-table"],[1,"personal-details-form__detail-table--full-width"],[4,"ngIf","ngIfElse"],[1,"personal-details-form__detail-table--row"],["class","wb-all personal-details-form--opted",4,"ngIf","ngIfElse"],[1,"personal-details-form__detail-table--edit",3,"click"],[1,"edit","padded","tooltip"],[1,"wb-all","personal-details-form--opted"],[1,"icon","icon-success"],[1,"icon","icon-cross"],[1,"personal-details-form__detail-table--row","edit"],[1,"personal-details-form__detail-table--heading"],[1,"edit","padded-full","tooltip"],[3,"ngClass"],[4,"ngFor","ngForOf"],[1,"select_icon"],[1,"align-middle",3,"ngClass"],["class","error-message",4,"ngIf"],["class","personal-details-form__controls",4,"ngIf"],[3,"content","checkedVal","formControl","required"],[1,"error-message"],[1,"personal-details-form__controls"],[1,"personal-details-form__cancel-btn",3,"click"],[3,"button","enabled"]],template:function(o,r){if(o&1&&(p(0,"div",5)(1,"div")(2,"div",6)(3,"div",7)(4,"div",8)(5,"div",9)(6,"span"),C(7,"We'd like to share updates, news and advice with you to help you get the most from us. Take a look at the options below and let us know which communications you would like to receive. "),x(8,"br")(9,"br"),C(10," You can update your communication preferences at any time. If you opt out of all the options below, you'll still receive important service messages relating to your account. "),u()(),V(11,eQ,13,2,"div",10)(12,oQ,16,12,"ng-template",null,0,ze)(14,sQ,13,2,"div",10)(15,uQ,16,12,"ng-template",null,1,ze)(17,gQ,13,2,"div",10)(18,CQ,16,12,"ng-template",null,2,ze)(20,yQ,13,2,"div",10)(21,kQ,15,9,"ng-template",null,3,ze),u()()()()()),o&2){let a=de(13),s=de(16),l=de(19),c=de(22);d(2),v("formGroup",r.form),d(9),v("ngIf",r.form.get("phoneCalls").disabled)("ngIfElse",a),d(3),v("ngIf",r.form.get("textMessage").disabled)("ngIfElse",s),d(3),v("ngIf",r.form.get("mailing").disabled)("ngIfElse",l),d(3),v("ngIf",r.form.get("shareWith3rdParty").disabled)("ngIfElse",c)}},dependencies:[Ce,lo,Ni,Qe,ct,al,ei,_t,zo,Ee,bn],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.personal-details-form__detail-table--heading[_ngcontent-%COMP%]{margin:0;font-size:20px}.personal-details-form--opted[_ngcontent-%COMP%]{display:flex;align-items:center}.personal-details-form--opted[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:10px}"]});let e=t;return e})(),qp=(()=>{let t=class t{constructor(n,o,r){this.config=n,this.httpClient=o,this.authService=r}prepareHeaders(){return new bt({"Content-Type":"application/json"})}getAllContactProgrammeRegistrations(n){return this.httpClient.get(this.config.environment.API_URL+"/programme-registration/?contactId="+n,{headers:this.prepareHeaders()}).pipe(J(o=>o),he(o=>o.status===404?Q([]):Q(o)))}getProgrammeComponentNames(n){return this.httpClient.get(`${this.config.environment.API_URL}/qualification/${n}`,{headers:this.prepareHeaders()}).pipe(J(o=>o),he(o=>Q(o)))}getAvailableTrainingProviders(n){let o="/training-provider?aggregateByQual=true&size=1000&isCurrentlyOffered=false&nonPublished=true&isCurrentL3SanctionsOrAbove=false&isFinancial
783Stop=false&qualifications=",r=n.toString(),a=o+r;return this.httpClient.get(`${this.config.environment.API_URL}${a}`,{headers:this.prepareHeaders()}).pipe(J(s=>s),he(s=>Q(s)))}getLevelOfProgramme(n){return this.httpClient.get(`${this.config.environment.API_URL}/qualification/tree/${n}`,{headers:this.prepareHeaders()}).pipe(J(o=>o),he(o=>o.status===404?Q({}):Q(o)))}getEmploymentRecords(n){return this.httpClient.get(`${this.config.environment.API_URL}/employment/by-contact/${n}`,{headers:this.prepareHeaders()}).pipe(J(o=>o),he(o=>o.status===404?Q([]):Q(o)))}updateEmploymentRecord(n){return this.httpClient.post(`${this.config.environment.API_URL}/employment/${n.employmentId}`,JSON.stringify(n),{headers:this.prepareHeaders()}).pipe(J(o=>o),he(o=>Q(o)))}createEmployment(n){return this.httpClient.post(`${this.config.environment.API_URL}/employment`,JSON.stringify(n),{headers:this.prepareHeaders()}).pipe(J(o=>o),he(o=>Q(o)))}getEmployers(){return this.httpClient.get(`${this.config.environment.API_URL}/organisation?studentRegAEOnline=true`,{headers:this.prepareHeaders()}).pipe(J(n=>n),he(n=>n.status===404?Q([]):Q(n)))}getCommsPreferences(n){return this.httpClient.get(`${this.config.environment.API_URL}/contact-communication-preferences/configurations?contactId=${n}`,{headers:this.prepareHeaders()}).pipe(J(o=>o),he(o=>o.status===404?Q([]):Q(o)))}updateCommsPreferences(n){return this.httpClient.post(`${this.config.environment.API_URL}/contact-communication-preferences/process`,JSON.stringify(n),{headers:this.prepareHeaders()}).pipe(J(o=>o),he(o=>Q(o)))}getLicenceDetails(n){return this.httpClient.get(`${this.config.environment.API_URL}/licensed-member/${n}`,{headers:this.prepareHeaders()}).pipe(J(o=>o),he(o=>o.status===404?Q({}):Q(o)))}sendToHoldingArea(n){return this.httpClient.post(`${this.config.environment.API_URL}/holding-area/process`,JSON.stringify(n),{headers:this.prepareHeaders()}).pipe(J(o=>o),he(o=>Q(o)))}getHoldingAreaItems(n){return this.httpClient.get(`${this.config.environment.API_URL}/holding-area?contactId=${n}`,{headers:this.prepareHeaders()}).pipe(J(o=>o),he(o=>o.status===404?Q([]):Q(o)))}updateTrainingProviders(n){return this.httpClient.post(`${this.config.environment.API_URL}/programme-registration/removeStudent`,JSON.stringify(n),{headers:this.prepareHeaders()}).pipe(J(o=>o),he(o=>Q(o)))}updateEmployment(n){return this.httpClient.put(`${this.config.environment.API_URL}/holding-area/employmentUpdate`,JSON.stringify(n),{headers:this.prepareHeaders()}).pipe(J(o=>o),he(o=>Q(o)))}};t.\u0275fac=function(o){return new(o||t)(Y("fabricServicesConfig"),Y(lt),Y(st))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),zae=(()=>{let t=class t{constructor(n,o,r,a,s){this.fb=n,this.cdr=o,this.countryPipe=r,this.formDataService=a,this.sharedFormService=s,this.updateBusinessDetailsFormPath="/files/aat-licensed-member-business-details-form.pdf",this.postcodeInstance=[],this.holdingAreaItemList=[],this.mainEmploymentChange=!1,this.updateButton=Cn,this.licenceTiers=DS,this.organisationNameInterface=kae,this.emailInterface=$re,this.websiteInterface=qre,this.mainEmploymentRadioInterface=iae,this.serviceAccordionTitle="Guidance on updating the services you're offering",this.subscriptions=[]}ngOnInit(){this.formattedRecords=this.employment?.Items?.filter(n=>(!n.endDate||new Date(n.endDate).getTime()>=new Date().getTime())&&n.selfEmployed),this.formatServices(),this.initContent()}ngAfterViewInit(){for(let n=0;n<this.formattedRecords.length;n++)this.setPostCodeLookUpAddress(n);this.cdr.detectChanges(),setTimeout(()=>{this.employments.controls.forEach(n=>{for(let o in n.controls)n.controls[o].invalid?this.currentlyEditing=!0:n.controls[o].disable()})})}ngOnDestroy(){this.subscriptions.forEach(n=>{n.unsubscribe()})}formatServices(){let n=DS.map(o=>B({},o));this.mipDetails?.mipServices&&(this.mipDetails.mipServices.forEach(o=>{o.serviceStatus==="Approved"&&n.forEach(r=>{r.name==o.tier&&r.services.push(o)})}),this.licenceServices=n)}initContent(){this.masterForm=this.sharedFormService.form,this.form=this.fb.group({employments:this.fb.array([this.setUpEachEmploymentRecord(0)])}),this.employments=this.form.get("employments");for(let n=1;n<this.formattedRecords.length;n++)this.employments.push(this.setUpEachEmploymentRecord(n));this.subscribeFormControls()}setUpEachEmploymentRecord(n){return this.fb.group({address:[{value:this.formattedRecords[n].address,disabled:!1}
783],businessEmail:[{value:this.formattedRecords[n].businessEmail||"",disabled:!1},fe.required],website:[{value:this.formattedRecords[n].website||"",disabled:!1}],mainEmployment:[{value:this.formattedRecords[n].mainEmployment,disabled:!1}],organisation:[{value:this.formattedRecords[n].organisation,disabled:!0}],organisationName:[{value:this.formattedRecords[n].organisationName,disabled:!0}],employmentId:[{value:this.formattedRecords[n].employmentId,disabled:!0}],employmentCRMId:[{value:this.formattedRecords[n].employmentCRMId,disabled:!0}],type:[{value:this.formattedRecords[n].licensedDetails?this.formattedRecords[n].licensedDetails.licensedDetail[0].professionalIndemnityInsurance.business.type:"",disabled:!0}]})}subscribeFormControls(){this.subscriptions.push(this.form.valueChanges.subscribe(n=>n))}finishEditing(n,o){o!=="mainEmployment"?(this.holdingAreaItemList.some(a=>a.fieldName===o)&&(this.holdingAreaItemList=this.holdingAreaItemList.filter(a=>a.fieldName!==o)),this.holdingAreaItemList.push(this.formatHoldingItem(n,o))):(this.employments.controls[n].controls[o].patchValue(["Yes",!0].includes(this.employments.controls[n].controls[o].value)),this.mainEmploymentChange=!0),this.employments.controls[n].controls[o].disable(),this.masterForm.markAsDirty(),this.currentlyEditing=!1}formatHoldingItem(n,o){return{newValue:o==="address"?this.formatAddress(n):this.employments.controls[n].controls[o].value,originalValue:this.formattedRecords[n][o]||"",fieldName:o,status:"Pending"}}formatAddress(n){return{addressCountry:this.employments.controls[n].controls.address.value.country.id,addressLocality:this.employments.controls[n].controls.address.value.town,addressRegion:this.employments.controls[n].controls.address.value.county,postalCode:this.employments.controls[n].controls.address.value.postcode,streetAddressLine1:this.employments.controls[n].controls.address.value.address1,streetAddressLine2:this.employments.controls[n].controls.address.value.address2||""}}confirmBusinessDetails(n){this.updateButton=ye(B({},this.updateButton),{text:"Updating...",glyph:{icon:fr.LOOP2,glyphAnimation:"spin"}});let o=[],r=[];if(this.holdingAreaItemList.length&&this.holdingAreaItemList.length>0){let a=new Date,s={process:[{name:`${this.formattedRecords[n].organisationName} - ${a.toLocaleDateString("en-GB")}`,entityType:"Organisation",contactId:this.contactDetails.contactId,contactCrmId:this.contactDetails.contactCRMId,organisationId:this.formattedRecords[n].organisation,holdingAreaItems:this.holdingAreaItemList,attachments:null}]};o.push(this.formDataService.sendToHoldingArea(s))}if(this.mainEmploymentChange===!0){let a={contactId:this.contactDetails.contactId,process:[{employmentCRMId:this.employments.controls[n].controls.employmentCRMId.value,employmentId:this.employments.controls[n].controls.employmentId.value,mainEmployment:this.employments.controls[n].controls.mainEmployment.value}]};this.formattedRecords[n].mainEmployment=this.employments.controls[n].controls.mainEmployment.value,o.push(this.formDataService.updateEmployment(a))}this.subscriptions.push(oo(o).subscribe(a=>{a&&(a.forEach(s=>{s.error&&r.push(s)}),r.length>0?this.notificationInterface=_E:(this.notificationInterface=Mae,this.holdingAreaItemList=[])),this.updateButton=Cn}))}setPostCodeLookUpAddress(n){if(this.postcodeLookupComponent){if(this.postcodeInstance.push(this.postcodeLookupComponent.toArray()[n]),this.postcodeInstance[n].formgroup.setParent(this.employments.controls[n]),this.employments.controls[n].removeControl("address"),this.employments.controls[n].addControl("address",this.postcodeInstance[n].formgroup),this.formattedRecords[n].address){if(this.formattedRecords[n].address.addressCountry){this.employments.controls[n].controls.address.patchValue({countryItem:{id:this.formattedRecords[n].address.addressCountry}});let o=this.postcodeLookupComponent.toArray()[0].autocompleteValidationComponent.toArray()[0];o.selection={id:this.formattedRecords[n].address.addressCountry,label:this.countryPipe.transform(this.formattedRecords[n].address.addressCountry),data:this.formattedRecords[n].address.addressCountry},o.search={context:null,term:this.countryPipe.transform(this.formattedRecords[n].address.addressCountry)},o.search.id=this.formattedRecords[n].address.addressCountry,this.postcodeInstance[n].countryChanged()}this.formattedRecords[n].address.postalCode&&this.formattedRecords[n].address.streetAddressLine1?(this.postcodeInstance[n].enterAddressManually(),setTimeout(()=>{this.employments.controls[n].controls.address.patchValue({postcode:this.formattedRecords[n].address.postalCode,address1:this.formattedRecords[n].address.streetAddressLine1,address2:this.formattedRecords[n].address.streetAddressLine2,address3:this.formattedRecords[n].address.streetAddressLine3,town:this.formattedRecords[n].address.addressLocality,county:this.formattedRecords[n].address.addressRegion})})):this.formattedRecords[n].address.postalCode&&this.employments.controls[n].controls.address.patchValue({postcode:this.formattedRecords[n].address.postalCode})}this.employments.controls[n].controls.address.enable()}}
783editField(n,o){this.employments.controls.forEach(r=>{r.disable({emitEvent:!1})}),this.employments.controls[n].controls[o].enable(),this.currentlyEditing=!0}cancelEditing(n,o){o!=="address"?this.employments.controls[n].controls[o].patchValue(this.formattedRecords[n][o]):this.setPostCodeLookUpAddress(n),this.holdingAreaItemList=this.holdingAreaItemList.filter(r=>r.fieldName!==o),this.employments.controls[n].controls[o].disable(),this.currentlyEditing=!1}getUpdateButton(n,o){let r={action:{type:"callback",callback:null}};return o==="confirmation"?(r.action.callback=()=>this.confirmBusinessDetails(n),B(ye(B({},this.updateButton),{text:"Confirm my business details"}),r)):(r.action.callback=()=>this.finishEditing(n,o),B(B({},this.updateButton),r))}get employmentForm(){return this.form.controls.employments}};t.\u0275fac=function(o){return new(o||t)(O(nn),O(Ii),O(yc),O(qp),O(eo))},t.\u0275cmp=U({type:t,selectors:[["app-licence-block"]],viewQuery:function(o,r){if(o&1&&Ue(Ns,5),o&2){let a;Me(a=Te())&&(r.postcodeLookupComponent=a)}},inputs:{employment:"employment",mipDetails:"mipDetails",contactDetails:"contactDetails",invalidSections:"invalidSections"},standalone:!1,decls:80,vars:9,consts:[[3,"formGroup"],[1,"separated"],[1,"personal-details-form__box","no-padding","heading"],[1,"personal-details-form__detail-table"],[1,"personal-details-form__detail-table--full-width"],[3,"minorTitle","iconArrowLeft"],["body",""],["href","/system/files/assets/AAT-application-add-licence-services.pdf","target","_blank"],["href","/membership/licensed-membership-be-your-own-boss/licences-and-services","target","_blank"],["href","https://aat.jotform.com/231504227771957","target","_blank"],["href","mailto:[email protected]"],[1,"personal-details-form__box","no-padding"],[1,"personal-details-form__detail-table--row","hide"],["target","_blank",3,"href"],["href","/membership/licensed-membership-be-your-own-boss/licence-eligibility-exemptions","target","_blank"],["formArrayName","employments"],[1,"personal-details-form__detail-table--row"],[1,"listed"],[1,"icon","icon-success","icon-service"],[3,"title","iconArrowLeft"],["body","",3,"formGroupName"],[1,"personal-details-form__detail-table--row","new-style"],[1,"personal-details-form__detail-table--row","edit"],[1,"personal-details-form__detail-table--row","new-style","remove-border"],[1,"wb-all"],[1,"personal-details-form__detail-table--row","new-style","remove-border",3,"ngClass"],[1,"personal-details-form__detail-table--edit",3,"click"],[3,"ngClass"],[1,"personal-details-form__detail-table--row","edit","remove-border"],[1,"personal-details-form__detail-table--heading"],[1,"personal-details-form__detail-table--message"],[1,"tooltip"],[1,"personal-details-form__controls"],[1,"personal-details-form__cancel-btn",3,"click"],[3,"button","enabled"],[1,"confirm-button"],[1,"padded"],["formControlName","organisationName",3,"content","formControl"],["formControlName","businessEmail",3,"content","formControl","required"],["formControlName","website",3,"content","formControl"],[3,"content","checkedVal","formControl"],[3,"isNotificationOpen","notification"]],template:function(o,r){o&1&&(p(0,"div")(1,"div",0)(2,"div",1)(3,"div")(4,"div",2)(5,"div",3)(6,"div",4)(7,"span")(8,"strong"),C(9,"What approved services am I licensed to offer?"),u()(),p(10,"div")(11,"p"),C(12," You can find guidance on how to update the services you're offering and view the services you're currently offering below. "),u()()()()(),p(13,"fab-accordion",5)(14,"div",6)(15,"p"),C(16," If you'd like to add services you're planning to offer, please download the "),p(17,"a",7),C(18,"Application to add licence services (PDF)"),u(),C(19," form and follow the instructions on the form. By adding services, you may need to change your licence type to Licensed Accountant. You can check this on the "),p(20,"a",8),C(21,"AAT licences and services"),u(),C(22," page. If your licence type needs to change, you'll need to complete the "),p(23,"a",9),C(24,"Licence conversion application form"),u(),C(25," instead and pay the fee. "),u(),p(26,"p"),C(27," If you'd like to remove services you're currently offering, please email "),p(28,"a",10),C(29,"[email protected]"),u(),C(30,". "),u()()()(),p(31,"div",11)(32,"div",12)(33,"p")(34,"strong"),C(35,"Tier"),u()(),p(36,"p")(37,"strong"),C(38,"Services"),u()()(),X(39,TQ,2,1,"div",null,se),u()(),p(41,"div")(42,"div",2)(43,"div",3)(44,"div",4)(45,"span")(46,"strong"),C(47,"My business details"),u()(),p(48,"div")(49,"p"),C(50," You can find guidance on how to update your business details and your registered business details below. "),u()()()()()(),p(51,"fab-accordion",5)(52,"div",6)(53,"p"),C(54,` You can update your registered business name, address, email address, and website below. This must be only done if this is the same business otherwise you need to add a new business. Changing these details will amend them for everyone associated to the business. Once you've made these updates, click on the "Confirm my business details" button to save your changes. `),u(),p(55,"p"),C(56," If you want to update any other details such as business type or business ownership, you need to add a new business and request to have your previous business removed. Please download the "),p(57,"a",13),C(58,"AAT licensed member business details form (PDF)"),u(),C(59," and follow the instructions on the form. For business ownership, this includes changes to any partners, directors, or shareholders for your business. "),u(),p(60,"p"),C(61," If you'd like to add an entirely new business, please download the "),p(62,"a",13),C(63,"AAT licensed member business details form (PDF)"),u(),C(64," and follow the instructions on the form. "),u(),p(65,"p"),C(66," If your business is no longer trading, you're no longer at the business, or your business is no longer registered in the UK, Channel Islands or Isle of Man, please email "),p(67,"a",10),C(68,"[email protected]"),u(),C(69," with your membership number, the business details and the change of circumstances. Please note that it can take up to three weeks for this to be updated. "),u(),p(70,"p"),C(71," If you're not sure if you still need a licence, please "),p(72,"a",14),C(73,"check your licence eligibility"),u(),C(74,". If you no longer meet the licensing requirements, please email "),p(75,"a",10),C(76,"[email protected]"),u(),C(77," with your membership number, the business name and address, and the change of circumstances. Please note that it can take up to three weeks for this to be updated. "),u()()(),X(78,HQ,83,39,"div",15,se),u()()),o&2&&(d(),v("formGroup",r.form),d(12),v("minorTitle",r.serviceAccordionTitle)("iconArrowLeft",!1),d(26),ee(r.licenceServices),d(12),v("minorTitle","Guidance on updating your business details")("iconArrowLeft",!1),d(6),v("href",ne(r.updateBusinessDetail
783sFormPath),ae),d(5),v("href",ne(r.updateBusinessDetailsFormPath),ae),d(16),ee(r.employmentForm==null?null:r.employmentForm.controls))},dependencies:[Ce,Qe,ct,al,ei,_t,ti,tl,il,to,zo,Gs,Ns,R0,Ee,el,yc],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.edit-details-form .listed{display:flex;align-items:center;padding:5px}.edit-details-form .icon-service{padding-right:10px}.edit-details-form .icon-success{color:#00ab4e}.edit-details-form .confirm-button{margin-right:10px}.edit-details-form .padded{padding:20px}.edit-details-form .separated{margin-bottom:30px;border-bottom:thin solid rgb(229.5,229.5,229.5)}.edit-details-form .heading{border-bottom:0;font-size:20px}.edit-details-form .resize{font-size:18px}.edit-details-form .hidden{display:none}.edit-details-form fab-accordion .accordion{margin-bottom:-1px;border:thin solid rgb(229.5,229.5,229.5);border-radius:0;width:100%;background-color:#fff} 784`],encapsulation:2});let e=t;return e})(),Bae=e=>{let t=e.get("passwordInputOne"),i=e.get("passwordInputTwo");return t&&i&&t.value!==i.value?{passwordsDoNotMatch:!0}:null},Vae=(()=>{let t=class t{constructor(n,o,r){this.changeDetector=n,this.fb=o,this.authService=r,this.form=new Rv({}),this.updating=!1,this.enabled=!1,this.currentPasswordInterface=vae,this.passwordInputOneInterface=Cae,this.passwordInputTwoInterface=bae,this.updatePasswordButton=this.getUpdateButton(),this.passwordChangeSuccess=Iae,this.passwordChangeError=Dae,this.subscriptions=[]}ngOnInit(){this.contact=this.contactDetails,this.initContent()}ngAfterViewInit(){this.changeDetector.detectChanges(),this.subscriptions.push(this.form.valueChanges.subscribe(()=>{this.checkConfirmationValidator(this.form.controls.passwordInputOne,this.form.controls.passwordInputTwo,"Passwords"),this.enabled=!this.form.invalid}))}ngOnDestroy(){this.subscriptions.forEach(n=>n.unsubscribe())}initContent(){this.form=this.fb.group({currentPassword:new uo(""),passwordInputOne:new uo(""),passwordInputTwo:new uo("")},{validators:[fe.required,Bae]})}checkConfirmationValidator(n,o,r){n.value!==o.value?o.errors||o.setErrors({formControlValidationErrors:{value:"Your "+r.toLowerCase()+" do not match"}}):(o.setErrors(null),o.updateValueAndValidity({onlySelf:!0}),this.enabled=!0)}edit(n){this.updating=n,n===!1&&this.form.patchValue({currentPassword:"",passwordInputOne:"",passwordInputTwo:""})}getUpdateButton(){return ye(B({},_ae),{action:{type:"callback",callback:this.passwordChanged.bind(this)}})}passwordChanged(){let n=this.form.get("passwordInputTwo").value,o=this.form.get("currentPassword").value;this.postChange(o,n)}postChange(n,o){this.updatePasswordButton.text="Updating...",this.updatePasswordButton.glyph={icon:fr.LOOP2,glyphAnimation:"spin"},this.subscriptions.push(this.authService.changePasswordLoggedIn(n,o).subscribe({next:r=>{this.updatePasswordButton=this.getUpdateButton(),r.err||r.error?(this.isSuccess=!1,this.isError=!0):(this.isError=!1,this.isSuccess=!0,this.updating=!1,this.form.patchValue({currentPassword:"",passwordInputOne:"",passwordInputTwo:""}))},error:r=>{this.updatePasswordButton=this.getUpdateButton(),this.isSuccess=!1,this.isError=!0}}))}};t.\u0275fac=function(o){return new(o||t)(O(Ii),O(Wc),O(st))},t.\u0275cmp=U({type:t,selectors:[["app-password-block"]],inputs:{contactDetails:"contactDetails"},standalone:!1,decls:9,vars:4,consts:[[1,"personal-details-form"],[3,"formGroup"],[1,"personal-details-form__box","no-padding"],[1,"personal-details-form__detail-table"],[1,"personal-details-form__detail-table--row"],[1,"personal-details-form__detail-table--row","edit"],[1,"edit","padded","tooltip"],[1,"wb-all"],[1,"personal-details-form__detail-table--edit",3,"click"],[1,"form__fieldgroup"],["formControlName","currentPassword",3,"content","formControl"],["formControlName","passwordInputOne",3,"content","formControl"],["formControlName","passwordInputTwo",3,"content","formControl"],[1,"personal-details-form__controls"],[1,"personal-details-form__cancel-btn",3,"click"],[3,"enabled","button"],[3,"isNotificationOpen","notification"]],template:function(o,r){o&1&&(p(0,"div",0)(1,"div")(2,"div",1)(3,"div",2)(4,"div",3),y(5,GQ,9,0,"div",4)(6,UQ,23,14,"div",5),y(7,jQ,2,2,"div",6),y(8,WQ,2,2,"div",6),u()()()()()),o&2&&(d(2),v("formGroup",r.form),d(3),w(r.updating?6:5),d(2),w(r.isSuccess?7:-1),d(),w(r.isError?8:-1))},dependencies:[Qe,ct,ei,_t,ti,to,Gs,Ee,bn],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}"]});let e=t;return e})(),Hae=(()=>{let t=class t{constructor(n,o){this.sanitizer=n,this.elRef=o,this.files=new L,this.isHovered=new Xi,this.isHovered.pipe(oh(),Ho(10)).subscribe(r=>{r?this.elRef.nativeElement.classList.add("dragOver"):this.elRef.nativeElement.classList.remove("dragOver")})}onDragOver(n){return n.preventDefault(),n.stopPropagation(),this.isHovered.next(!0),!1}onDragLeave(n){return n.preventDefault(),n.stopPropagation(),this.isHovered.next(!1),!1}onDrop(n){this.isHovered.next(!1)}};t.\u0275fac=function(o){return new(o||t)(O(yn),O($t))},t.\u0275dir=di({type:t,selectors:[["","appDrag",""]],hostBindings:function(o,r){o&1&&T("dragover",function(s){return r.onDragOver(s)})("dragleave",function(s){return r.onDragLeave(s)})("drop",function(s){return r.onDrop(s)})},outputs:{files:"files"},standalone:!1});let e=t;return e})(),Gae=(()=>{let t=class t{constructor(n,o,r){this.authService=n,this.fileUploader=o,this.config=r,this.files=[],this.missingContentMessage="Files are required to continue",this.maxFileSize=8,this.maxFiles=5,this.errorMessage="You have either reached your limit of one file to upload, one of them exceeds 4MB f
784ile size, you've uploaded a file in the incorrect format, or you'll need to remove full stops from the file name.",this.tooltipMessage="",this.uploadedFiles=new L,this.uploadToSharePoint=!1,this.hasFileErrors=()=>this.files&&this.files.reduce((a,s)=>!!s.err||a,!1),this.onChange=a=>{},this.onTouched=()=>{},this.removeFile=a=>{this.files=this.files.filter(l=>l.id===a?(l.attachment&&l.attachment.attachmentId&&(this.uploadToSharePoint?this.fileUploader.deleteFromSharePoint(l.attachment.attachmentId).subscribe({next:c=>{},error:c=>{console.error("Delete from SharePoint error: ",c)}}):this.fileUploader.delete(l.attachment.attachmentId).subscribe({next:c=>{},error:c=>{console.error("Delete error: ",c)}})),!1):!0),this.uploadedFiles.emit(this.files);let s=[];for(let l=this.files.length-1;l<this.maxFiles;l++)!this.files[l]?.uploaded&&this.files[l]?.err==="Too many files"&&(delete this.files[l].err,s.push(this.uploadObject(this.files[l])));oo(s).subscribe({next:()=>{this.uploadedFiles.emit(this.files)},error:()=>{console.error("upload to sharepoint error")}})},this.fileEvent=this.fileEvent.bind(this),this.allowedExtensions=this.allowedExtensions||["image/jpeg","image/gif","image/png","application/rtf","text/plain","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/pdf","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.presentation","application/vnd.wordperfect","application/vnd.ms-works, application/x-msworks-wp","application/x-iwork-pages-sffpages"]}ngOnInit(){this.tooltipMessage=`You can upload up to five files, or up to ${this.maxFileSize}MB, in the following formats: jpg, jpeg, gif, png, rtf, txt, doc, docx, xls, xlsx, pdf, ppt, pptx, odt, ods, odp, wpd or wps.`}writeValue(n){this.onChange(n)}pushChanges(n){this.onChange(n)}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}fileEvent(n){this.files=this.files?[...this.files]:[];let o=l=>this.files.reduce((c,h)=>h.name===l.name&&h.size===l.size?!1:c,!0),r=l=>l.size<=this.maxFileSize*1e3,a=l=>this.allowedExtensions.includes(l.file.type)||this.allowedExtensions.includes("."+l.name.split(".").pop()||"NONE"),s=[];Array.from(n.target.files).forEach(l=>{let c={name:l.name,size:parseFloat((l.size/1024).toFixed(2)),file:l,id:`${Pa()}`,uploaded:!1};a(c)?r(c)?this.getAllValidFiles().length>=this.maxFiles&&(c.err="Too many files"):c.err="File is too large":c.err="File type not allowed",o(c)&&(this.files.push(c),c.err||s.push(this.uploadObject(c)))}),oo(s).subscribe({next:()=>{this.uploadedFiles.emit(this.files)},error:l=>{console.error(l)}}),this.fileSize=this.files.reduce((l,c)=>l+c.size,0),this.files.forEach(l=>{this.writeValue(l.name)}),n.target.value=null}updateFile(n,o={}){this.files=this.files.map(r=>n.id===r.id?Object.assign(r,o):r)}getAllValidFiles(){return this.files.filter(n=>!n.err)}uploadObject(n){return this.authService.getCurrentUser().pipe(ot(1),_r(o=>{let r=o["custom:contact_id"]||null;n.name.split(".").pop()==="tex"&&n.file.type===""&&(n.file=new File([n.file],n.file.name,{type:"application/x-tex"}));let a=new FormData;return a.append("file",n.file),a.append("contactId",r),a.append("source",this.content.source),this.content.extraPayload&&this.ammendXtraPayload(a,this.content.extraPayload),this.uploadToSharePoint?this.fileUploader.uploadToSharePoint(a).pipe(ao(s=>{this.updateFile(n,{attachment:{attachmentId:s.attachmentId},uploaded:!0,sfa:""})}),he(s=>`failed to upload to sharepoint, error: ${s}`)):(a.append("bucket",this.config.environment.ATTACHMENT_BUCKET),this.fileUploader.upload(a).pipe(ao(s=>{this.updateFile(n,{attachment:s.attachment,uploaded:!0})}),he(s=>`failed to upload to S3, error: ${s}`)))}),he(()=>"failed to retrieve contact token"))}ammendXtraPayload(n,o){for(let r in o)n.append(r,o[r])}getFriendlyError(n){switch(n){case"Issue with filename.":return"Issue with filename";default:return"Upload failed"}}};t.\u0275fac=function(o){return new(o||t)(O(st),O(B0),O("fabricServicesConfig"))},t.\u0275cmp=U({type:t,selectors:[["fab-file-picker"]],inputs:{content:"content",formControl:"formControl",allowedExtensions:"allowedExtensions",files:"files",missingContentError:"missingContentError",missingContentMessage:"missingContentMessage",maxFileSize:"maxFileSize",maxFiles:"maxFiles",errorMessage:"errorMessage",tooltipMessage:"tooltipMessage",uploadToSharePoint:"uploadToSharePoint"},outputs:{uploadedFiles:"uploadedFiles"},standalone:!1,features:[St([{provide:Zt,useExisting:Wt(()=>t),multi:!0}])],decls:19,vars:9,consts:[[1,"file-picker-component"],["appDrag","",1,"file-picker-component__wrapper",3,"ngClass"],[1,"form-group"],[1,"file-picker-component__control"],["type","file","multiple","",1,"file-picker-component__input",3,"change","id","accept"],[3,"for"],[1,"brand-green"],[1,"icon-plus"],[1,"file-picker-component__file-name",3,"ngClass"],[1,"file-picker-component__errors"],[1,"file-picker-component__tooltip"],[1,"file-picker-component__file-desc"],[1,"file-picker-component__status-container"],[1,"file-picker-component__file-status"],[1,"file-picker-component__file-name-remove",3,"click"],[1,"icon-cross"]],template:function(o,r){o&1&&(p(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"input",4),T("change",function(s){return r.fileEvent(s)}),u(),p(5,"label",5)(6,"span",6),x(7,"i",7),u(),C(8," Drag and drop files or "),p(9,"strong",6),C(10,"browse"),u()()(),X(11,YQ,14,7,"div",8,se),p(13,"div",9),y(14,KQ,3,1,"p"),y(15,QQ,3,1,"p"),u()()(),p(16,"div",10)(17,"p"),C(18),u()()()),o&2&&(d(),v("ngClass",z(7,$Q,r.missingContentError)),d(3),v("id",r.content.id)("accept",r.allowedExtensions),d(),v("for",r.content.id),d(6),ee(r.files),d(3),w(r.hasFileErrors()?14:-1),d(),w(r.missingContentError?15:-1),d(3),R(r.tooltipMessage))},dependencies:[Ce,Hae],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.file-picker-component__wrapper{padding:20px;border:rgb(229.5,229.5,229.5) 2px;border-style:dashed;border-radius:2px;position:relative}.file-picker-component__wrapper.error{border-color:#e22b25}.file-picker-component__wrapper.dragOver{border-style:solid;border-color:#00ab4e}.file-picker-component__wrapper.dragOver input{z-index:999;pointer-events:all}.file-picker-component__control{text-align:center}.file-picker-component__control *{pointer-events:none}.file-picker-component__control strong{pointer-events:all}.file-picker-component__control label{margin:10px 0}.file-picker-component__file-name{margin-top:15px;border-radius:5px;padding:10px;font-size:14px;z-index:1;position:relative;background-color:#c3c3c3;overflow-wrap:break-word}@media (min-width: 768px){.file-picker-component__file-name{display:flex}}.file-picker-component__file-name.uploaded{background-color:#a0aef0}.file-picker-component__file-name.error{background-color:#e22b25}.file-picker-component__file-name.error p{color:#fff}.file-picker-component__file-name .file-picker-component__status-container{display:flex;justify-content:space-between;align-items:center}.file-picker-component__file-name .file-picker-component__file-desc{flex-grow:1}.file-picker-component__file-name .file-picker-component__file-status{padding-top:10px}@media (min-width: 768px){.file-picker-component__file-name .file-picker-component__file-status{padding:0 10px}.file-picker-component__file-name .file-picker-component__file-status p{text-align:right}}.file-picker-component__file-name p{margin:0}.file-picker-component__errors p{margin-bottom:0;color:#e22b25}.file-picker-component__errors small{float:none}.file-picker-component__file-name-remove{font-size:16px;color:#000}.file-picker-component input{display:block;position:absolute;inset:0;width:100%;opacity:0}
784.file-picker-component__tooltip{font-size:14px}.brand-green{color:#00ab4e;cursor:pointer} 785`],encapsulation:2});let e=t;return e})(),Uae=(()=>{let t=class t{constructor(n,o,r,a,s){this.fb=n,this.changeDetector=o,this.sharedFormService=r,this.datePipe=a,this.titlePipe=s,this.updatedTitleData=new L,this.updatedProtectedData=new L,this.isAmendingDetails=!1,this.awaitingDobVerification=!1,this.awaitingNameVerification=!1,this.newDobChange=!1,this.newNameChange=!1,this.holdingAreaItems=[],this.subscriptions=[],this.titleUpdateButton=this.getUpdateButton("title"),this.nameUpdateButton=this.getUpdateButton("givenName"),this.dobUpdateButton=this.getUpdateButton("birthDate"),this.givenNameInterface=nae,this.familyNameInterface=rae,this.additionalNameInterface=oae,this.nameUploadInterface=aae,this.dobUploadInterface=sae,this.dateInterface=bE,this.titleInterface=Rp,this.nameChangeNotificationInterface=Pae,this.allowedNameProof=wae,this.allowedDobProof=xae,this.uploadMessages=lae,this.checkConfirmationValidator=l=>{l.value===""?l.setErrors({empty:!0}):(l.setErrors(null),l.updateValueAndValidity({onlySelf:!0}))}}ngOnInit(){this.contact=this.contactDetails,this.masterForm=this.sharedFormService.form,this.initContent(),this.checkValidationStatus(),this.nameUploadInterface.extraPayload.holdingAreaId=this.form.get("holdingAreaId").value,this.dobUploadInterface.extraPayload.holdingAreaId=this.form.get("holdingAreaId").value}ngOnDestroy(){this.subscriptions.forEach(n=>n.unsubscribe())}ngAfterViewInit(){!this.student&&!this.member&&(this.form.controls.birthDate.clearValidators(),this.form.controls.birthDate.updateValueAndValidity());for(let n in this.form.controls)this.form.controls[n].valid&&(this.form.controls[n].disable(),this.form.controls[n].markAsUntouched());this.changeDetector.detectChanges()}editField(n){for(let o in this.form.controls)this.form.controls[o].disable(),this.form.controls[o].markAsUntouched();this.form.controls[n].enable(),n==="givenName"&&(this.form.controls.additionalName.enable(),this.form.controls.familyName.enable(),this.form.controls.nameUpload.enable(),this.form.controls.nameUpload.setValidators(fe.required),this.form.controls.nameUpload.markAsTouched({onlySelf:!1})),n==="birthDate"&&(this.form.controls.dobUpload.enable(),this.form.controls.dobUpload.setValidators(fe.required),this.form.controls.dobUpload.markAsTouched({onlySelf:!1}))}cancelEditing(n){let o=this.contact[n];n==="givenName"&&(o=this.contact.name,this.form.controls[n].patchValue(this.titlePipe.transform(o.givenName),{emitEvent:!1}),this.form.controls.familyName.patchValue(this.titlePipe.transform(o.familyName),{emitEvent:!1}),o.additionalName&&this.form.controls.additionalName.patchValue(this.titlePipe.transform(o.additionalName),{emitEvent:!1}),this.form.controls.nameUpload.patchValue(null,{emitEvent:!1}),this.form.controls.additionalName.disable(),this.form.controls.familyName.disable(),this.form.controls.nameUpload.disable(),this.form.controls.nameUpload.markAsUntouched({onlySelf:!0})),n==="title"&&this.form.controls[n].patchValue(this._getTitleValue(this.contact.name.honorificPrefix),{emitEvent:!1}),n==="birthDate"&&(o=this.datePipe.transform(o,"dd/MM/yyyy","UTC"),this.form.controls[n].patchValue(o,{emitEvent:!1}),this.form.controls.dobUpload.patchValue(null,{emitEvent:!1}),this.form.controls.dobUpload.disable(),this.form.controls.dobUpload.markAsUntouched({onlySelf:!0})),this.form.controls[n].disable(),this.form.controls[n].markAsPristine()}getUpdateButton(n){let o={action:{type:"callback",callback:()=>this.finishEditing(n)}};return B(B({},Cn),o)}captureUploadedFiles(n,o){if(o==="name"){let r=[];n.forEach(a=>{a.uploaded&&r.push(a.attachment.attachmentId)}),this.form.get("nameUpload").patchValue(r)}else{let r=[];n.forEach(a=>{a.uploaded&&r.push(a.attachment.attachmentId)}),this.form.get("dobUpload").patchValue(r)}}initContent(){this.contact=this.contactDetails,this.sharedFormService.addToForm("personalDetailsForm",this.fb.group({title:[this._getTitleValue(this.contact.name.honorificPrefix),fe.required],givenName:[{value:this.contact.name.givenName?this.titlePipe.transform(this.contact.name.givenName):null,disabled:!1},fe.required],familyName:[{value:this.contact.name.familyName?this.titlePipe.transform(this.contact.name.familyName):null,disabled:!1},fe.required],additionalName:[{value:this.contact.name.additionalName?this.titlePipe.transform(this.contact.name.additionalName):"",disabled:!0}],nameUpload:[{value:null,disabled:!0}],birthDate:[{value:this.datePipe.transform(this.contact.birthDate,"dd/MM/yyyy","UTC")||null,disabled:!1},fe.required],dobUpload:[{value:null,disabled:!0}],holdingAreaId:[{value:Pa(),disabled:!0}]})),this.form=this.masterForm.get("personalDetailsForm");for(let n in this.form.controls)this.form.controls[n].markAsTouched();this.subscribeFormControls()}checkValidationStatus(){this.pendingChanges&&this.pendingChanges.length>
7850&&this.pendingChanges.forEach(n=>{n.entityType==="Contact"&&n.holdingAreaItems?.forEach(o=>{o.status==="Pending"&&(o.fieldName==="name"&&(this.awaitingNameVerification=!0),o.fieldName==="dateOfBirth"&&(this.awaitingDobVerification=!0))})})}finishEditing(n){if(this.nameChangeNotificationInterface.isOpened=!1,!this.form.controls[n].invalid&&!(n==="title"&&!this.form.controls[n].value.label)){if(n==="title")this.updatedTitleData.emit(this.form.get(n).value.label),this.form.controls[n].markAsUntouched();else{if(n==="birthDate"&&(this.form.get(n).patchValue(this.assignDate(this.form.get(n).value)),this.newDobChange=!0,this.form.controls.dobUpload.markAsUntouched(),this.form.controls[n].markAsUntouched()),n==="givenName"){if(!this.checkNameIsChanged())return;let o=["givenName","familyName","additionalName"];o.forEach(r=>{this.form.get(r).patchValue(this.titlePipe.transform(this.form.get(r).value))}),this.newNameChange=!0,o.forEach(r=>{this.form.controls[r].markAsUntouched()}),this.form.controls.nameUpload.markAsUntouched()}this.buildHoldingAreaItems(n)}this.form.controls[n].disable(),this.masterForm.markAsDirty()}}checkNameIsChanged(){let n=this.form.value,o=!0;return this.contact.name?.givenName?.toLowerCase()===n.givenName?.toLowerCase()&&this.contact.name?.familyName?.toLowerCase()===n.familyName?.toLowerCase()&&(this.contact.name?.additionalName?.toLowerCase()===n.additionalName?.toLowerCase()||!this.contact.name?.additionalName&&n.additionalName==="")&&(o=!1,this.nameChangeNotificationInterface.isOpened=!0),o}subscribeFormControls(){this.subscriptions.push(this.form.valueChanges.subscribe(()=>{this.checkConfirmationValidator(this.form.controls.title),this.form.controls.birthDate.valid&&this.form.controls.birthDate.value&&(this.checkFutureDate()||this.form.controls.birthDate.setErrors({formControlValidationErrors:{value:"Enter a valid date"}}))}))}checkFutureDate(){let n=this.form.controls.birthDate.value.split("/");return new Date(+n[2],n[1]-1,+n[0])<new Date}buildHoldingAreaItems(n){let o=!1;n==="givenName"?o=this.holdingAreaItems.some(s=>s.fieldName==="name"):n==="birthDate"&&(o=this.holdingAreaItems.some(s=>s.fieldName==="dateOfBirth")),o&&(n==="givenName"?this.holdingAreaItems=this.holdingAreaItems.filter(s=>s.fieldName!=="name"):this.holdingAreaItems=this.holdingAreaItems.filter(s=>s.fieldName!=="dateOfBirth")),this.holdingAreaItems.push(this.formatHoldingItem(n));let r=new Date,a={process:[{name:`${this.contact.name?.givenName} ${this.contact.name?.familyName} - ${r.toLocaleDateString("en-GB")}`,entityType:"Contact",contactId:this.contact.contactId,contactCrmId:this.contact.contactCRMId,organisationId:null,holdingAreaItems:this.holdingAreaItems,attachments:this.getAttachments()}]};this.updatedProtectedData.emit(a)}formatHoldingItem(n){return n==="birthDate"?{newValue:this.transformToISO(this.form.get(n).value),originalValue:this.contact[n]||null,fieldName:"dateOfBirth",status:"Pending"}:{newValue:{givenName:this.form.get("givenName").value||null,familyName:this.form.get("familyName").value||null,additionalName:this.form.get("additionalName").value||null},originalValue:{additionalName:this.contact.name.additionalName||null,familyName:this.contact.name.familyName||null,givenName:this.contact.name.givenName||null},fieldName:"name",status:"Pending"}}getAttachments(){let n=[];return this.form.get("dobUpload").value!==null&&this.form.get("dobUpload").value.forEach(o=>{n.push(o)}),this.form.get("nameUpload").value!==null&&this.form.get("nameUpload").value.forEach(o=>{n.push(o)}),n.length>0?n:null}assignDate(n){let o=n.split("/");return this.datePipe.transform(o[2]+"-"+o[1]+"-"+o[0]+"T00:00:00.000Z","dd/MM/yyyy")}transformToISO(n){let o=n.split("/");return o[2]+"-"+o[1]+"-"+o[0]+"T00:00:00.000Z"}_getTitleValue(n){if(n)return Rp.options.find(o=>o.label===n)}};t.\u0275fac=function(o){return new(o||t)(O(nn),O(Ii),O(eo),O(tn),O(fE))},t.\u0275cmp=U({type:t,selectors:[["app-personal-details"]],inputs:{invalidSections:"invalidSections",contactDetails:"contactDetails",submitButtonText:"submitButtonText",pendingChanges:"pendingChanges",student:"student",member:"member"},outputs:{updatedTitleData:"updatedTitleData",updatedProtectedData:"updatedProtectedData"},standalone:!1,decls:138,vars:80,consts:[["editDob",""],[1,"personal-details-form"],[3,"formGroup"],[1,"personal-details-form__box","no-padding"],[1,"personal-details-form__detail-table"],[1,"personal-details-form__detail-table--row"],[1,"wb-all"],[1,"edit","padded","tooltip"],[1,"personal-details-form__detail-table--row","edit"],[3,"hidden"],[1,"tooltip"],[1,"personal-details-form__detail-table--edit"],[1,"personal-details-form__detail-table--heading"],[1,"personal-details-form__detail-table--message"],[3,"ngClass"],[1,"personal-details-form__detail-table--input"],["formControlName","givenName",3,"content","formControl"],["formControlName","additionalName",3,"content","formControl"],["formControlName","familyName",3,"content","formControl"],[1,"edit","padded-full"],["href","mailto:[email protected]"],["href","/policies/privacy","target","_blank"],["formControlName","nameUpload",3,"uploadedFiles","content","formControl","uploadToSharePoint","maxFiles","maxFileSize","errorMessage","tooltipMessage"],["href","mailto:[email protected]","target","_blank"],[1,"select_icon"],[1,"align-middle",3,"ngClass"],[3,"isNotificationOpen","notification"],[1,"personal-details-form__controls"],["formControlName","birthDate",3,"content","formControl"],["formControlName","dobUpload",3,"uploadedFiles","content","formControl","uploadToSharePoint","maxFiles","maxFileSize","errorMessage","tooltipMessage"],[1,"personal-details-form__detail-table--edit",3,"click"],[1,"personal-details-form__detail-table--heading","padded-full"],["formControlName","title",3,"content","formControl"],[1,"personal-details-form__cancel-btn",3,"click"],[3,"button","enabled"],[1,"icon","icon-success"],[1,"padded"]],template:function(o,r){if(o&1){let a=P();p(0,"div",1)(1,"div")(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"p")(7,"strong"),C(8,"AAT number"),u()(),p(9,"span",6),C(10),u()(),p(11,"p",7),C(12,"Your AAT number is your unique AAT reference number."),u(),y(13,JQ,6,1,"div",5),y(14,ZQ,8,1,"div",5)(15,tJ,13,15,"div",8),p(16,"div",9)(17,"div",5)(18,"p")(19,"strong"),C(20,"Name"),u()(),p(21,"span"),C(22),x(23,"br"),y(24,iJ,2,0,"span",10),y(25,nJ,2,0,"span",10),u(),y(26,oJ,2,0,"span",11),u()(),p(27,"div",9)(28,"div",8)(29,"div")(30,"p",12)(31,"strong"),C(32,"Update your name"),u()(),p(33,"p",13),C(34),u(),p(35,"p"),C(36,"To update your name, please enter it below and follow the guidance."),u(),p(37,"p"),C(38," Your name "),p(39,"strong"),C(40,"must be your current legal name"),u(),C(41," as shown on your identity documentation. Abbreviated names must not be used. If you take any AAT assessments, you'll be required to present your identity document (ID) and your name must match what AAT holds. This name will be used on your assessments and/or certificates. "),u(),p(42,"div",14)(43,"div",14)(44,"div",15),x(45,"fab-input-text-2",16),N(46,"formControl"),u(),p(47,"div",15),x(48,"fab-input-text-2",17),N(49,"formControl"),u(),p(50,"div",15),x(51,"fab-input-text-2",18),N(52,"formControl"),u(),p(53,"div",19)(54,"p"),C(55,"To amend your name, please upload one of the following:"),u(),p(56,"ul"),X(57,rJ,4,1,"li",null,se),u(),p(59,"p"),C(60," This document is required so we can asse
785ss your eligibility for your name change. It will be held for a maximum of 30 days and then permanently deleted. "),x(61,"br")(62,"br"),C(63," Once your name change request is accepted, your updated name will be used on all correspondence from us. "),x(64,"br")(65,"br"),C(66," Name changes don't automatically generate new certificates. Your qualification certificates need to remain in the name that you studied under. However, you can request replacement membership and licence certificates by emailing us at "),p(67,"a",20),C(68,"[email protected]"),u(),C(69,". Please note that replacement certificates may incur a fee. "),x(70,"br")(71,"br"),C(72," We'll review your request to update your name within five working days and email you if further evidence is required. Our "),p(73,"a",21),C(74,"Fair processing notice"),u(),C(75," provides information on how we use your data. "),u()(),p(76,"fab-file-picker",22),N(77,"formControl"),T("uploadedFiles",function(l){return k(a),E(r.captureUploadedFiles(l,"name"))}),u(),p(78,"p"),C(79," If you're unable to upload your evidence, please contact "),p(80,"a",23),C(81,"[email protected]"),u(),C(82," for further guidance and support. "),u()(),p(83,"div",24),x(84,"i",25),u()(),x(85,"fab-notification",26),y(86,aJ,5,2,"div",27),u()()(),p(87,"div",9)(88,"div",5)(89,"p")(90,"strong"),C(91,"Date of birth"),u()(),p(92,"span"),C(93),x(94,"br"),y(95,sJ,2,0,"span",10),y(96,lJ,2,0,"span",10),u(),y(97,cJ,2,0,"span",11),u()(),p(98,"div",9,0)(100,"div",8)(101,"div")(102,"p",12)(103,"strong"),C(104,"Update your date of birth"),u()(),p(105,"p",13),C(106),N(107,"date"),u(),p(108,"p"),C(109,"To update your date of birth, please enter it below and follow the guidance."),u(),p(110,"div",14)(111,"div",14),x(112,"fab-input-text-2",28),N(113,"formControl"),p(114,"div",19)(115,"p"),C(116,"To update your date of birth, please upload one of the following:"),u(),p(117,"ul"),X(118,dJ,4,1,"li",null,se),u(),p(120,"p"),C(121," This document is required to act as evidence of your date of birth. It will be held for a maximum of 30 days and then permanently deleted. "),x(122,"br")(123,"br"),C(124," We'll review your request to update your date of birth within five working days and email you if further evidence is required. Our "),p(125,"a",21),C(126,"Fair processing notice"),u(),C(127," provides information on how we use your data. "),u()(),p(128,"fab-file-picker",29),N(129,"formControl"),T("uploadedFiles",function(l){return k(a),E(r.captureUploadedFiles(l,"birthDate"))}),u(),p(130,"p"),C(131," If you're unable to upload your evidence, please contact "),p(132,"a",23),C(133,"[email protected]"),u(),C(134," for further guidance and support. "),u()(),p(135,"div",24),x(136,"i",25),u()(),y(137,uJ,5,2,"div",27),u()()()()()()()()}o&2&&(d(2),v("formGroup",r.form),d(8),A(" ",r.contact.memberId),d(3),w(r.contact.name.aatSuffix?13:-1),d(),w(r.form.get("title").disabled?14:15),d(2),v("hidden",!r.form.get("givenName").disabled),d(6),Yt(" ",r.form.get("givenName").value," ",r.form.get("familyName").value," "),d(2),w(r.newNameChange?24:-1),d(),w(r.awaitingNameVerification?25:-1),d(),w(r.awaitingNameVerification?-1:26),d(),v("hidden",r.form.get("givenName").disabled),d(7),ch(" Your current name is ",r.contact.name.givenName," ",r.contact.name.additionalName," ",r.contact.name.familyName," "),d(8),v("ngClass",z(68,Ji,r.invalidSections.includes("personalDetailsForm")&&r.form.get("nameUpload").touched)),d(),v("ngClass",z(70,Mt,r.invalidSections.includes("personalDetailsForm")&&r.form.get("nameUpload").touched)),d(2),v("content",r.givenNameInterface)("formControl",G(46,53,r.form.controls.givenName)),d(3),v("content",r.additionalNameInterface)("formControl",G(49,55,r.form.controls.additionalName)),d(3),v("content",r.familyNameInterface)("formControl",G(52,57,r.form.controls.familyName)),d(6),ee(r.allowedNameProof),d(19),v("content",r.nameUploadInterface)("formControl",G(77,59,r.form.controls.nameUpload))("uploadToSharePoint",!0)("maxFiles",1)("maxFileSize",4)("errorMessage",r.uploadMessages.error)("tooltipMessage",r.uploadMessages.tooltip),d(8),v("ngClass",z(72,Jn,r.invalidSections.includes("personalDetailsForm")&&r.form.get("nameUpload").touched)),d(),v("isNotificationOpen",r.nameChangeNotificationInterface.isOpened)("notification",r.nameChangeNotificationInterface),d(),w(r.isAmendingDetails?-1:86),d(),v("hidden",!r.form.get("birthDate").disabled),d(6),A(" ",r.form.get("birthDate").value," "),d(2),w(r.newDobChange?95:-1),d(),w(r.awaitingDobVerification?96:-1),d(),w(r.awaitingDobVerification?-1:97),d(),v("hidden",r.form.get("birthDate").disabled),d(8),A(" Your current date of birth is ",He(107,61,r.contact.birthDate,"dd/MM/yyyy")," "),d(4),v("ngClass",z(74,Ji,r.invalidSections.includes("personalDetailsForm")&&r.form.get("dobUpload").touched)),d(),v("ngClass",z(76,Mt,r.invalidSections.includes("personalDetailsForm")&&r.form.get("dobUpload").touched)),d(),v("content",r.dateInterface)("formControl",G(113,64,r.form.controls.birthDate)),d(6),ee(r.allowedDobProof),d(10),v("content",r.dobUploadInterface)("formControl",G(129,66,r.form.controls.dobUpload))("uploadToSharePoint",!0)("maxFiles",1)("maxFileSize",4)("errorMessage",r.uploadMessages.error)("tooltipMessage",r.uploadMessages.tooltip),d(8),v("ngClass",z(78,Jn,r.invalidSections.includes("personalDetailsForm")&&r.form.get("dobUpload").touched)),d(),w(r.isAmendingDetails?-1:137))},dependencies:[Ce,Qe,ct,ei,_t,ti,to,wa,Gs,Gae,Ee,tn,bn],styles:[pJ]});let e=t;return e})(),Mp=(function(e){return e.PREFER_NOT_TO_SAY="Prefer not to say",e.CHOOSE_BACKGROUND="Choose an ethnic background",e.SELF_DESCRIBE="Prefer to self-describe",e})(Mp||{}),Tp=(function(e){return e.PREFER_NOT_TO_SAY="Prefer not to say",e.NO="No",e.YES="Yes",e})(Tp||{}),jae=(()=>{let t=class t{constructor(n,o,r,a){this.fb=n,this.changeDetector=o,this.sharedFormService=r,this.jwt=a,this.updatedSpecialData=new L,this.isAmendingDetails=!1,this.ethnicityTypeActive=!1,this.ethnicityOptions=[Mp.PREFER_NOT_TO_SAY,Mp.CHOOSE_BACKGROUND,Mp.SELF_DESCRIBE],this.learningOptions=[Tp.PREFER_NOT_TO_SAY,Tp.NO,Tp.YES],this.formLoaded=!1,this.subscriptions=[],this.genderButton=this.getUpdateButton("gender"),this.ethnicityButton=this.getUpdateButton("ethnicity"),this.learningButton=this.getUpdateButton("learningDifficultiesAndDisabilities"),this.titleInterface=Rp,this.ethnicityDropdownInterface=MS,this.genderInterface=Yre,this.ethnicityInterface=IS,this.learningInterface=tae,this.specialCategoryConfirmation=TS,this.ethnicityData={inputInterface:{id:"input2",label:"Please enter your ethnic background",required:!this.ethnicityTypeActive,codeType:"Alpha",validationBlankMessage:"Enter a description",validationMessage:"Enter letters only"},radioQuestion:"How do you identify your ethnic background?",radioOptions:this.ethnicityOptions,required:!0},this.genderData={radioQuestion:"How do you identify your gender?",required:!0,inputInterface:{id:"input1",label:"Please enter your gender",value:"",required:!0,codeType:"Alpha",validationBlankMessage:"Enter a description",validationMessage:"Enter letters only"}},this.learningData={radioQuestion:"Do you consider yourself as having learning difficulties or a disability?",radioOptions:this.learningOptions,required:!0}}ngOnInit(){this.contact=this.contactDetails,this.profanityList=this.jwt.decodeToken(x0.defaults.profanity).badwords.list,this.initContent()}ngOnDestroy(){this.subscriptions.forEach(n=>n.unsubscribe())}
785ngAfterViewInit(){this.findInvalidControls();for(let n in this.form.controls)this.form.controls[n].valid&&this.form.controls[n].disable();this.changeDetector.detectChanges()}ngOnChanges(){this.genderDescriptionActive()}editField(n){this.form.controls[n].patchValue("");for(let o in this.form.controls)this.form.controls[o].valid&&this.form.controls[o].disable();this.form.controls[n].enable()}checkForProfanity(n,o){this.checkForProfanityMatcher(n)?this.form.get(o).setErrors({profanity:!0}):this.form.get(o).setErrors(null)}checkForProfanityMatcher(n){let o=n.split(" "),r=!1;return o.forEach(a=>{this.profanityList.includes(a)&&(r=!0)}),r}cancelEditing(n){let o=this.contact[n];n==="ethnicity"&&(this.contact.ethnicitySelfDescribed?(o=this.ethnicityOptions[2],this.form.controls.ethnicitySelfDescribed.patchValue(this.contact.ethnicitySelfDescribed,{emitEvent:!1}),this.ethnicityTypeActive=!0):o=this.contact.ethnicBackground),n==="gender"&&this.contact.genderSelfDescribed&&this.form.get("genderSelfDescribed").value===null&&this.form.controls[n].setErrors({touched:!0}),n==="learningDifficultiesAndDisabilities"&&(o=this.formatLearningDifficulty(o)),this.form.controls[n].patchValue(o,{emitEvent:!1}),!this.form.controls[n].invalid&&this.form.controls[n].disable()}getUpdateButton(n){let o={action:{type:"callback",callback:()=>this.finishEditing(n)}};return B(B({},Cn),o)}getConfirmContent(n){return ye(B({},TS),{id:n})}initContent(){this.contact=this.contactDetails,!this.student&&!this.member&&["gender","ethnicBackground","learningDifficultiesAndDisabilities"].forEach(o=>{this.contact[o]||(this.contact[o]="Prefer not to say")}),this.masterForm=this.sharedFormService.form,this.sharedFormService.addToForm("specialCategoryForm",this.fb.group({gender:[{value:this.contact.genderSelfDescribed?this.genderInterface[3].label:this.contact.gender||"",disabled:!1}],ethnicity:[{value:this.contact.ethnicitySelfDescribed?this.ethnicityOptions[2]:this.contact.ethnicBackground||"",disabled:!1}],learningDifficultiesAndDisabilities:[{value:this.contact.learningDifficultiesAndDisabilities?this.formatLearningDifficulty(this.contact.learningDifficultiesAndDisabilities):"",disabled:!1}],genderSelfDescribed:[{value:this.contact.genderSelfDescribed||"",disabled:!0}],genderConfirmed:[{value:!1,disabled:!0}],ethnicitySelfDescribed:[{value:this.contact.ethnicitySelfDescribed||"",disabled:!0}],ethnicityConfirmed:[{value:!1,disabled:!0}],learningDifficultiesConfirmed:[{value:!1,disabled:!0}]})),this.form=this.masterForm.get("specialCategoryForm"),this.subscribeFormControls(),this.formLoaded=!0}finishEditing(n){this.form.controls[n].invalid||(this.updatedSpecialData.emit(this.formatSpecialDetails(n)),this.form.controls[n].disable(),this.form.patchValue({genderConfirmed:{value:!1},ethnicityConfirmed:{value:!1},learningDifficultiesConfirmed:{value:!1}}),this.masterForm.markAsDirty())}subscribeFormControls(){this.subscriptions.push(this.form.valueChanges.subscribe(n=>n))}formatSpecialDetails(n){let o={ethnicBackground:this.form.get("ethnicity").value!==void 0&&this.form.get("ethnicity").value.label!==void 0?this.form.get("ethnicity").value.label:this.form.get("ethnicity").value||this.contact.ethnicity,gender:this.form.get("gender").value===this.genderInterface[3].label?"Self-described":this.form.get("gender").value||this.contact.gender,learningDifficultiesAndDisabilities:this.form.get("learningDifficultiesAndDisabilities").value?this.formatLearningDifficulty(this.form.get("learningDifficultiesAndDisabilities").value):this.contact.learningDifficultiesAndDisabilities,genderSelfDescribed:this.form.get("genderSelfDescribed").value||this.contact.genderSelfDescribed||null,ethnicitySelfDescribed:this.form.get("ethnicitySelfDescribed").value||this.contact.ethnicitySelfDescribed||null};return this.form.get("ethnicity").value===this.ethnicityOptions[2]&&delete o.ethnicBackground,this.form.get("ethnicity").value!==this.ethnicityOptions[2]&&delete o.ethnicitySelfDescribed,this.form.get("gender").value!==this.genderInterface[3].label&&this.form.get("gender").value!=="Self-described"&&delete o.gender
785SelfDescribed,o}formatLearningDifficulty(n){switch(n){case"Prefer not to say":return"Prefer not to say";case"No":return"I do not consider that I have a learning difficulty/disability";case"Yes":return"I consider that I have a learning difficulty/disability";case"I do not wish to supply this information":return"Prefer not to say";case"I do not consider that I have a learning difficulty/disability":return"No";case"I consider that I have a learning difficulty/disability":return"Yes";default:return""}}findInvalidControls(){let n=this.form.controls;for(let o in n)n[o].invalid&&n[o].errors&&n[o].errors.required&&n[o].markAsTouched({onlySelf:!0})}checkDropDownActive(){return!!(this.form.get("ethnicity").value===IS[1].label||MS.options.includes(this.form.get("ethnicity").value))}ethnicTypeInput(){return this.form.get("ethnicity").value==="Prefer to self-describe"}genderDescriptionActive(){if(this.formLoaded)return this.form.get("gender").value!==void 0&&this.form.get("gender").value[0]!==void 0&&this.form.get("gender").value[0].value==="Prefer to self-describe"||this.form.controls.gender.value==="Prefer to self-describe"||this.form.controls.gender.value==="Self-described"}confirmActive(n){return!["","Prefer not to say"].includes(this.form.get(n).value)}checkValid(n){if(this.form.controls[n].valid)if(this.form.get(n).value!=="Prefer not to say")switch(n){case"gender":return this.form.get("genderConfirmed").value!=="true"?!1:["Self-described","Prefer to self-describe"].includes(this.form.controls[n].value)?![null,""].includes(this.form.get("genderSelfDescribed").value)&&!this.form.get("genderSelfDescribed").errors:!0;case"ethnicity":return this.form.get("ethnicityConfirmed").value!=="true"?!1:this.form.controls[n].value==="Prefer to self-describe"?![null,""].includes(this.form.get("ethnicitySelfDescribed").value)&&!this.form.get("ethnicitySelfDescribed").errors:this.form.controls[n].value!=="Choose an ethnic background";case"learningDifficultiesAndDisabilities":return this.form.get("learningDifficultiesConfirmed").value==="true"}else return!0;else return!1}};t.\u0275fac=function(o){return new(o||t)(O(nn),O(Ii),O(eo),O(Tr))},t.\u0275cmp=U({type:t,selectors:[["app-special-category"]],inputs:{contactDetails:"contactDetails",submitButtonText:"submitButtonText",invalidSections:"invalidSections",student:"student",member:"member"},outputs:{updatedSpecialData:"updatedSpecialData"},standalone:!1,features:[Ye],decls:23,vars:4,consts:[[1,"personal-details-form"],[3,"formGroup"],[1,"personal-details-form__box","no-padding"],[1,"personal-details-form__detail-table"],[1,"personal-details-form__detail-table--full-width"],["href","/policies/privacy","target","_blank"],[1,"personal-details-form__detail-table--row"],[1,"personal-details-form__detail-table--row","edit"],[1,"wb-all"],[1,"personal-details-form__detail-table--edit",3,"click"],[1,"personal-details-form__detail-table--heading"],[3,"ngClass"],[1,"input__typed"],[1,"select_icon"],[1,"align-middle",3,"ngClass"],[1,"error-message"],[1,"confirmed",3,"ngClass"],[1,"personal-details-form__controls"],[3,"content","formControl","lastInput","required"],["formControlName","genderSelfDescribed","required","true",1,"typing",3,"update","content","formControl","hasError"],["formControlName","genderConfirmed",3,"content"],[1,"personal-details-form__cancel-btn",3,"click"],[3,"button","enabled"],[3,"content","formControl","required"],["formControlName","ethnicity",3,"required","content","formControl"],["formControlName","ethnicitySelfDescribed",3,"update","content","formControl","hasError"],["formControlName","ethnicityConfirmed",3,"content"],["formControlName","learningDifficultiesConfirmed",3,"content"]],template:function(o,r){o&1&&(p(0,"div",0)(1,"div")(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"span"),C(7,"We want to open up access to finance careers for everyone. By sharing your information with us, you'll help us to understand the diversity of our customers and ensure accountancy, as a profession, and AAT; are inclusive and open to all. "),x(8,"br")(9,"br"),C(10," The information you provide is confidential and will be processed in line with our "),p(11,"a",5),C(12,"privacy policy"),u(),C(13," to produce aggregated and anonymous statistical reports - these reports will not allow anyone to be identified from them. "),x(14,"br")(15,"br"),C(16,` Sharing your information is optional. If you'd prefer not to disclose this, please select "Prefer not to say". `),u()(),y(17,hJ,8,1,"div",6)(18,_J,16,15,"div",7),y(19,yJ,8,1,"div",6)(20,TJ,21,33,"div",7),y(21,IJ,8,1,"div",6)(22,LJ,15,14,"div",7),u()()()()()),o&2&&(d(2),v("formGroup",r.form),d(15),w(r.form.get("gender").disabled?17:18),d(2),w(r.form.get("ethnicity").disabled?19:20),d(2),w(r.form.get("learningDifficultiesAndDisabilities").disabled?21:22))},dependencies:[Ce,Qe,ct,al,ei,_t,ti,_re,zo,G0,wa,Ee,bn],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.edit-details-form .input{position:relative;margin:7% 0}@media (min-width: 768px){.edit-details-form .input{margin:3% 0}}.edit-details-form .input__typed{padding:10%;margin:0 12px;border-left:3px solid #00ab4e}@media (min-width: 768px){.edit-details-form .input__typed{padding:3%}}.edit-details-form .input__typed .row{justify-content:flex-start}.edit-details-form .confirmed{margin-top:10%}@media (min-width: 768px){.edit-details-form .confirmed{margin-top:5%}} 786`],encapsulation:2});let e=t;return e})(),Wae=(()=>{let t=class t{constructor(n,o,r,a){this.fb=n,this.changeDetector=o,this.formDataService=r,this.sharedFormService=a,this.updatedEmployment=new L,this.addEmploymentWithPerms=new L,this.searchingForEmployer=!1,this.currentField=null,this.employerList=[],this.sharingPermission=!1,this.showConsentError=null,this.searchEnabled=!1,this.declineString="No, don't share my results",this.autoCompleteInput=gae,this.confirmSharing=mae,this.confirmEmployed=fae,this.studentEmploymentSelectionInterface=eae,this.hasConsent=!1,this.subscriptions=[]}ngOnInit(){this.employment?.Items?.length&&(this.formattedRecords=this.employment.Items.filter(n=>(!n.endDate||new Date(n.endDate).getTime()>=new Date().getTime())&&!n.selfEmployed)),this.subscriptions.push(this.formDataService.getEmployers().subscribe(n=>{this.employerList=n.hits})),this.initContent()}ngAfterViewInit(){this.changeDetector.detectChanges()}ngOnDestroy(){this.subscriptions.forEach(n=>n.unsubscribe())}setUpEachEmploymentRecord(n){return this.fb.group({permissionToShare:[{value:this.formattedRecords[n].permissionToShare,disabled:!0},fe.required],organisation:[{value:this.formattedRecords[n].organisation,disabled:!0}],organisationName:[{value:this.formattedRecords[n].organisationName,disabled:!0}],employmentId:[{value:this.formattedRecords[n].employmentId,disabled:!0}],employmentCRMId:[{value:this.formattedRecords[n].employmentCRMId,disabled:!0}]})}initContent(){if(this.masterForm=this.sharedFormService.form,this.formattedRecords&&this.formattedRecords.length>0){this.sharedFormService.addToForm("employmentDetailsForm",this.fb.group({employments:this.fb.array([this.setUpEachEmploymentRecord(0)]),org:[{value:"",disabled:!1}],permissionToShare:[{value:"",disabled:!1}]})),this.form=this.masterForm.get("employmentDetailsForm"),this.employments=this.form.get("employments");for(let n=1;n<this.formattedRecords.length;n++)this.employments.push(this.setUpEachEmploymentRecord(n))}else this.sharedFormService.addToForm("employmentDetailsForm",this.fb.group({org:[{value:null,disabled:!1}],permissionToShare:[{value:null,disabled:!1}],employments:this.fb.array([])})),this.form=this.masterForm.get("employmentDetailsForm"),this.employments=this.form.get("employments")}removeSharing(n){this.employments.controls[n].controls.permissionToShare.patchValue(this.employments.controls[n].controls.permissionToShare.value.includes("Yes"));let o={employmentCRMId:this.employments.controls[n].controls.employmentCRMId.value,employmentId:this.employments.controls[n].controls.employmentId.value,permissionToShare:this.employments.controls[n].controls.permissionToShare.value};this.updatedEmployment.emit(o),o.permissionToShare||(this.formattedRecords.splice(n,1),this.employments.removeAt(n)),this.currentField=null}addEmployment(){let n={organisation:this.form.get("org").value.id,permissionToShare:this.form.get("permissionToShare").value==="true",organisationName:this.form.get("org").value.label};!this.formattedRecords||!this.formattedRecords.length||this.formattedRecords.length===0?(this.formattedRecords=[],this.formattedRecords.push(n),this.employments.push(this.setUpEachEmploymentRecord(0))):(this.formattedRecords.push(n),this.employments.push(this.setUpEachEmploymentRecord(this.formattedRecords.findIndex(o=>o.organisation===this.form.get("org").value.id)))),this.searchingForEmployer=!1,this.form.get("org").patchValue({value:"",disabled:!0}),this.form.get("permissionToShare").patchValue({value:"",disabled:!0}),this.addEmploymentWithPerms.emit(n),this.resolveCheckBox(),this.masterForm.markAsDirty()}getButton(n,o){let r={action:{type:"callback",callback:null}};return n==="removePerm"?(r.action.callback=()=>this.removeSharing(o),B(B({},Cn),r)):(r.action.callback=()=>this.addEmployment(),B(B({},Cn),r))}editField(n){this.currentField=n,this.restoredValue=this.employments.controls[n]?.value}cancelEditingPermission(n){this.currentField=null,this.employments.controls[n]?.patchValue(this.restoredValue),this.employments.controls[n]?.markAsPristine()}cancelAddingEmployer(){this.searchingForEmployer=!1,this.showConsentError=null,this.form.patchValue({org:"",permissionToShare:""}),this.form.markAsPristine()}agreeEvent(n){this.hasConsent=n,this.showConsentError=!this.hasConsent}resolveCheckBox(){return!!this.searchingForEmployer}enableSearch(n){this.searchEnabled=n}activateSearch(n){this.searchingForEmployer=n}
786get employmentForm(){return this.form.controls.employments}};t.\u0275fac=function(o){return new(o||t)(O(nn),O(Ii),O(qp),O(eo))},t.\u0275cmp=U({type:t,selectors:[["app-student-employment-block"]],inputs:{employment:"employment"},outputs:{updatedEmployment:"updatedEmployment",addEmploymentWithPerms:"addEmploymentWithPerms"},standalone:!1,decls:11,vars:4,consts:[["FabAC",""],[3,"formGroup"],[1,"personal-details-form__box","no-padding"],[1,"personal-details-form__detail-table"],[1,"personal-details-form__detail-table--full-width"],["formArrayName","employments"],[3,"formGroupName"],[1,"personal-details-form__detail-table--row","new-style",3,"ngClass"],[1,"personal-details-form__detail-table--row","edit","new-style",3,"ngClass"],[1,"wb-all"],[1,"personal-details-form__detail-table--edit",3,"click"],["formControlName","permissionToShare",3,"content","formControl"],[1,"personal-details-form__controls"],[1,"personal-details-form__cancel-btn",3,"click"],[3,"enabled","button"],[1,"personal-details-form__confirmation"],[3,"agreeEvent","content","updateChecked"],[1,"confirmation-block"],["id","employer","formControlName","org",3,"showError","formControl","errorMessage","dataList","content"],[1,"suggestion__header"],[1,"suggestion__option"],[1,"suggestion__option",3,"mousedown"],[3,"innerHTML"],["formControlName","permissionToShare",3,"agreeEvent","content","showError"]],template:function(o,r){o&1&&(p(0,"div")(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"span"),C(6,"If you're employed by an AAT Employer Scheme organisation, you'll have the option to share your qualification progress and results with them. This applies to all current and future qualifications. You can update your permissions to share your results with your employer at any time. "),x(7,"br"),y(8,NJ,2,0,"p"),u()()()(),y(9,UJ,3,0,"div"),y(10,YJ,9,3,"div",2),u()()),o&2&&(d(),v("formGroup",r.form),d(7),w(r.formattedRecords&&r.formattedRecords.length>0?8:-1),d(),w(r.formattedRecords&&r.formattedRecords.length>0?9:-1),d(),w(!r.formattedRecords||r.formattedRecords.length===0?10:-1))},dependencies:[Ce,Qe,ct,ei,_t,ti,tl,il,zo,G0,Wp,Ee,Vs,mE,bn],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.edit-details-form .personal-details-form{margin-bottom:10%}.edit-details-form .personal-details-form__controls{display:flex;justify-content:space-between;align-items:center;width:auto;margin:20px 0}.edit-details-form .personal-details-form__controls--submit{justify-content:center;margin:0}@media (min-width: 768px){.edit-details-form .personal-details-form__controls--submit{justify-content:flex-end}}.edit-details-form .personal-details-form__controls--stand-alone{display:flex;justify-content:flex-end;align-items:center;width:auto}.edit-details-form .personal-details-form__confirmation{margin-bottom:20px} 787`],encapsulation:2});let e=t;return e})(),$ae=(()=>{let t=class t{constructor(n,o,r,a){this.fb=n,this.changeDetector=o,this.formService=r,this.sharedFormService=a,this.tpUpdated=new L,this.ulnUpdate=new L,this.tpUpdates=[],this.currentField=null,this.tpsToSelect=[],this.updatingUln=!1,this.updatingScn=!1,this.enableTpUpdate=!1,this.notAttachedCodes=[_0.SelfStudyOrg,_0.UnattachedOrg],this.subscriptions=[],this.ulnInput=pae,this.scnInput=uae,this.autoCompleteInput=hae,this.tpChangeOptions=Sae}ngOnInit(){this.editableProgrammeRegistrations=this.programmeRegistrations,this.contact=this.contactDetails,this.displayUln(this.contact),this.initContent()}ngAfterViewInit(){this.changeDetector.detectChanges()}ngOnDestroy(){this.subscriptions.forEach(n=>n.unsubscribe())}editField(n){this.qualifications.controls.forEach((o,r)=>{o.value.changed||(o.patchValue({tpDetails:this.editableProgrammeRegistrations[r].tpName}),o.markAsPristine())}),this.tpSearch=null,this.qualifications.controls[n].patchValue({tpDetails:null}),this.currentField=n}displayUln(n){n.ulnValidated?this.displayUlnInput=!1:n.ulnValidatedStatus?Object.values(YS).some(o=>n.ulnValidatedStatus.includes(o))?this.displayUlnInput=!1:(this.displayUlnInput=!0,this.UlnVerificationFailed=!0):this.displayUlnInput
787=!0}setUpEachProgrammeForEdit(n){return this.fb.group({qualificationName:[{value:this.editableProgrammeRegistrations[n].programmeName,disabled:!0}],qualificationId:[{value:this.editableProgrammeRegistrations[n].id,disabled:!0}],tpDetails:[{value:this.editableProgrammeRegistrations[n].tpName,disabled:!1},fe.required],currentTp:[{value:this.editableProgrammeRegistrations[n].tpId,disabled:!0}]})}cancelEditingTp(n){this.qualifications.controls[n].patchValue({tpDetails:this.editableProgrammeRegistrations[n].tpName}),this.qualifications.controls[n].markAsPristine(),this.currentField=null}cancelEditingUln(){this.form.patchValue({uln:this.contact.uln||null}),this.updatingUln=!1}cancelEditingScn(){this.form.patchValue({scn:this.contact.scn||null}),this.updatingScn=!1}getUpdateButton(n,o){let r={action:{type:"callback",callback:null}};switch(n){case"qualifications":return r.action.callback=()=>this.finishEditingQual(o),B(B({},Cn),r);case"uln":return r.action.callback=()=>this.finishEditingUln(),B(B({},Cn),r);case"scn":return r.action.callback=()=>this.finishEditingScn(),B(B({},Cn),r)}}finishEditingQual(n){this.qualifications.controls[n].invalid||(this.tpUpdated.emit(this.formatTpChange(n)),this.qualifications.controls[n].patchValue({tpDetails:this.editableProgrammeRegistrations[n].tpName}),this.qualifications.controls[n].patchValue({tpId:this.editableProgrammeRegistrations[n].tpId}),this.qualifications.controls[n].patchValue({changed:!0}),this.currentField=null,this.masterForm.markAsDirty())}finishEditingUln(){this.ulnUpdate.emit(this.formatUln()),this.form.patchValue({uln:this.contact.uln}),this.updatingUln=!1,this.UlnVerificationFailed=!1,this.masterForm.markAsDirty()}finishEditingScn(){this.ulnUpdate.emit(this.formatUln()),this.form.patchValue({scn:this.contact.scn}),this.updatingScn=!1,this.masterForm.markAsDirty()}formatUln(){return this.contact.uln=this.form.get("uln").value||null,this.contact.scn=this.form.get("scn").value||null,this.contact}editUln(){this.form.get("uln").setValidators(fe.pattern(x0.defaults.pattern.ULN)),this.updatingUln=!0}editScn(){this.form.get("scn").setValidators(fe.pattern(x0.defaults.pattern.SCN)),this.updatingScn=!0}formatTpChange(n){return this.editableProgrammeRegistrations[n].tpName=this.qualifications.controls[n].value.tpDetails.label,this.editableProgrammeRegistrations[n].currentTp=this.editableProgrammeRegistrations[n].tpId,this.editableProgrammeRegistrations[n].tpId=this.qualifications.controls[n].value.tpDetails.id,this.editableProgrammeRegistrations[n].currentTp!==this.editableProgrammeRegistrations[n].tpId&&this.tpUpdates.push({trainingProviderId:this.editableProgrammeRegistrations[n].currentTp,programRegistrationIds:[this.editableProgrammeRegistrations[n].programmeRegId],tpToChangeToId:this.editableProgrammeRegistrations[n].tpId}),this.tpUpdates}initContent(){this.masterForm=this.sharedFormService.form,this.sharedFormService.addToForm("tpDetailsForm",this.fb.group({qualifications:this.fb.array([this.setUpEachProgrammeForEdit(0)]),uln:[this.contact.uln||null],scn:[this.contact.scn||null]})),this.form=this.masterForm.get("tpDetailsForm"),this.qualifications=this.form.get("qualifications");let n=this.editableProgrammeRegistrations.map(r=>r.currentLevel),o={};n.forEach(r=>{o[r]=this.formService.getAvailableTrainingProviders(r)}),this.getSelectableTrainingProviders(o);for(let r=1;r<this.editableProgrammeRegistrations.length;r++)this.qualifications.push(this.setUpEachProgrammeForEdit(r))}getSelectableTrainingProviders(n){this.subscriptions.push(oo(n).subscribe(o=>{for(let r in o)this.tpsToSelect.push({qualificationId:r,trainingProviders:o[r].data[0].trainingProviders.map(a=>({organisationId:a.id,name:a.name}))})}))}handleTpSelection(n,o){n==="Yes"?this.tpSearch=o:n==="No, I'm self-studying"?(this.tpSearch=null,this.qualifications.controls[o].patchValue({tpDetails:{label:"Self-studying",id:"2aa138d7-8900-e511-a653-005056b14c6a"}})):(this.tpSearch=null,this.qualifications.controls[o].patchValue({tpDetails:{label:"Not currently registered with a training provider",id:"c24729f5-4e4d-e211-acc8-005056b14c6a"}}))}};t.\u0275fac=function(o){return new(o||t)(O(nn),O(Ii),O(qp),O(eo))},t.\u0275cmp=U({type:t,selectors:[["app-studying-block"]],inputs:{programmeRegistrations:"programmeRegistrations",contactDetails:"contactDetails"},outputs:{tpUpdated:"tpUpdated",ulnUpdate:"ulnUpdate"},standalone:!1,decls:27,vars:3,consts:[["FabAC",""],[3,"formGroup"],[1,"personal-details-form__box","no-padding","uln"],[1,"personal-details-form__detail-table"],[1,"personal-details-form__detail-table--row","remove-border"],[1,"personal-details-form__detail-table","padded"],[1,"personal-details-form__box","no-padding","heading"],[1,"personal-details-form__detail-table--row--full-width","top"],[1,"edit","padded","tooltip"],["href","/training-providers/search","target","_blank"],[1,"personal-details-form__detail-table--row","hide"],["formArrayName","qualifications"],[1,"personal-details-form__detail-table--heading"],[1,"wb-all"],[1,"wb-all","tooltip"],[1,"wb-all","tooltip","error"],[1,"personal-details-form__detail-table--edit"],[1,"personal-details-form__detail-table--edit",3,"click"],[1,"edit","padded-full","tooltip"],[1,"personal-details-form__uln-input"],[3,"content","formControl"],[1,"personal-details-form__controls"],[1,"personal-details-form__cancel-btn",3,"click"],[3,"button","enabled"],[3,"formGroupName"],[1,"personal-details-form__box","no-padding"],[1,"personal-details-form__detail-table--row",3,"ngClass"],[1,"personal-details-form__detail-table--row","edit",3,"ngClass"],[1,"embed"],[1,"embed__answers"],[3,"content"],[1,"edit","padded-full"],[1,"tooltip"],[3,"enabled","button"],[1,"personal-details-form__detail-table--message"],[3,"click","content"],["id","tpSelector",3,"showError","formControl","errorMessage","dataList","dataListPrefillItem","content"],[1,"suggestion__header"],[1,"suggestion__option"],[1,"suggestion__option",3,"mousedown"],[3,"innerHTML"]],template:function(o,r){o&1&&(p(0,"div")(1,"div",1)(2,"div",2)(3,"div",3),y(4,ZJ,10,4,"div",4)(5,XJ,17,7,"div",5),u()(),p(6,"div",2)(7,"div",3),y(8,eZ,8,1,"div",4)(9,tZ,17,7,"div",5),u()(),p(10,"div",6)(11,"div",7)(12,"p",8),C(13," Here's how y
787ou're currently studying. If you're not currently registered with a training provider, or you're self-studying and would like to find a training provider to study with, please use our "),p(14,"a",9),C(15,"Find a training provider"),u(),C(16," service. "),u()(),p(17,"div",10)(18,"p")(19,"strong"),C(20,"Qualification"),u()(),p(21,"p")(22,"strong"),C(23,"Training Provider"),u()()()(),p(24,"div"),X(25,uZ,6,2,"div",11,se),u()()()),o&2&&(d(),v("formGroup",r.form),d(3),w(r.updatingUln?5:4),d(4),w(r.updatingScn?9:8),d(17),ee(r.form.get("qualifications").controls))},dependencies:[Ce,Qe,ct,ei,_t,tl,il,to,zo,Wp,Ee,Vs,bn],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.edit-details-form[_ngcontent-%COMP%] .uln[_ngcontent-%COMP%]{margin-bottom:30px}.edit-details-form[_ngcontent-%COMP%] .padded[_ngcontent-%COMP%]{padding:20px}.edit-details-form[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-top:thin solid rgb(229.5,229.5,229.5)}.edit-details-form[_ngcontent-%COMP%] .embed[_ngcontent-%COMP%]{padding-bottom:0;margin-bottom:0}.edit-details-form[_ngcontent-%COMP%] .embed__answers[_ngcontent-%COMP%]{padding-top:0}"]});let e=t;return e})(),qae=(()=>{let t=class t{constructor(){}ngOnInit(){if(this.subscriptionsInput){this.subscriptions=this.subscriptionsInput;for(let n=0;n<this.subscriptions.length;n++)this.subscriptions[n].remaining=this.monthDifference(this.subscriptions[n].endDate)}}monthDifference(n){let o=new Date,r=new Date(n);return r.getMonth()-o.getMonth()+12*(r.getFullYear()-o.getFullYear())+1}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["app-subscription-block"]],inputs:{subscriptionsInput:"subscriptionsInput"},standalone:!1,decls:16,vars:0,consts:[[1,"personal-details-form"],[1,"personal-details-form__box","no-padding"],[1,"personal-details-form__detail-table"],[1,"personal-details-form__detail-table--row","hide"],[1,"personal-details-form__detail-table--row"]],template:function(o,r){o&1&&(p(0,"div",0)(1,"div")(2,"div",1)(3,"div",2)(4,"div",3)(5,"p")(6,"strong"),C(7,"Subscription"),u()(),p(8,"p")(9,"strong"),C(10,"Dates active"),u()(),p(11,"p")(12,"strong"),C(13,"Time until renewal"),u()()(),X(14,hZ,16,11,"div",4,se),u()()()()),o&2&&(d(14),ee(r.subscriptions))},dependencies:[tn],encapsulation:2});let e=t;return e})(),Yae=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({providers:[B0],imports:[ge]});let e=t;return e})(),yE=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({providers:[L0,N0],imports:[ge,Bs,Ee,Bo,Vi,Rt,CE,Hs]});let e=t;return e})(),Kae=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,Rt,Vi]});let e=t;return e})(),Ewe=(()=>{let t=class t{constructor(n,o,r,a,s,l){this.contactService=n,this.authService=o,this.formDataService=r,this.tpService=a,this.sharedFormService=s,this.analyticsService=l,this.confirm=new L,this.onBack=new L,this.showBackButton=!1,this.isLoading=!0,this.isScud=!1,this.allowAccess=!1,this.isStudent=!1,this.isMember=!1,this.isLicensed=!1,this.hasSubscriptions=!1,this.formattedProgrammeRegistrations=[],this.allProgrammesLoaded=!1,this.today=new Date,this.invalidSectionsList=[],this.masterFormValid=!1,this.updateTrainingProviderAPI=!1,this.updateEmploymentAPI=!1,this.createEmploymentAPI=!1,this.updateCommunicationsAPI=!1,this.updateHoldingAPI=!1,this.goBackButton={text:"Go back",action:{type:"callback",callback:this.previousStep.bind(this)},aria:"Go back",type:"text"},this.submitButton={text:"Confirm my details",action:{type:"callback",callback:()=>this.updateContact()},type:"primary",aria:"Confirm my details"},this.subscriptions=[]}ngOnInit(){this.authService.getCurrentUser().pipe(ot(1)).subscribe({next:n=>{this.isStudent=n["cognito:groups"].includes("student"),this.isMember=n["cognito:groups"].includes("member"),this.isLicensed=this.checkIfLicensed(n),this.prepareAllData(n["custom:contact_id"]),this.sharedFormService.reset(),this.form=this.sharedFormService.form,this.sharedFormService.reset(),this.form=this.sharedFormService.form,this.content.analyticsConfig&&this.analyticsService.configure(this.content.analyticsConfig)}})}ngOnDestroy(){this.subscriptions.forEach(n=>n.unsubscribe())}shouldShow(n){return!this.content.sections||this.content.sections.includes(n)}checkIfLicensed(n){return n["custom:membership_type"]!==void 0&&n["cognito:groups"].includes("member")?n["custom:membership_type"].includes("licensed"):!1}prepareAllData(n){let o={contact:this.contactService.getContact(n),relationship:this.contactService.getContactRelationship(n),commsPrefs:this.formDataService.getCommsPreferences(n),holdingArea:this.formDataService.getHoldingAreaItems(n)};(this.isLicensed||this.isStudent)&&(o.employments=this.formDataService.getEmploymentRecords(n)),this.isLicensed&&(o.licence=this.formDataService.getLicenceDetails(n)),this.getData(o)}getData(n){this.subscriptions.push(oo(n).subscribe({next:o=>{this.contact=o.contact,o.relationship.error||(this.contactRelationship=o.relationship
787),o.holdingArea.error||(this.holdingItemsReturned=o.holdingArea),o.commsPrefs.error||(this.commsPrefsReturned=o.commsPrefs),o.employments&&!o.employments.error&&(this.employmentRecords=o.employments),o.licence&&!o.licence.error&&(this.licenceRecords=o.licence)},complete:()=>{this.contactRelationship.programmeRegistrations!==void 0&&this.contactRelationship.programmeRegistrations.length>0&&this.formatProgrammes(),this.contactRelationship.subscriptions!==void 0&&this.contactRelationship.subscriptions.length>0&&this.formatSubscriptions(),Array.isArray(this.commsPrefsReturned)&&this.commsPrefsReturned.length>0&&this.formatCommsPrefs(),this.isLoading=!1},error:o=>o}))}formatCommsPrefs(){this.commsPrefs=this.commsPrefsReturned.filter(n=>n.contactSelection.preferenceStatus==="Available")}formatProgrammes(){let n=this.contactRelationship.programmeRegistrations.filter(o=>new Date(o.endDate).getTime()>=this.today.getTime()||!o.endDate);n.forEach(o=>{let r={id:o.qualificationId,currentLevel:o.currentLevel,endDate:o.endDate||null,tpId:o.trainingProviderOrganisationId,programmeRegId:o.programmeRegistrationId,programmeName:"",onlineDisplaySequence:null,tpName:""},a={componentName:this.formDataService.getProgrammeComponentNames(o.qualificationId)};if(r.currentLevel==="b4f43eb4-aa35-e211-b22e-005056b14bc0"&&(a.level=this.formDataService.getLevelOfProgramme(r.id)),o.trainingProviderOrganisationId==="2aa138d7-8900-e511-a653-005056b14c6a")r.tpName="Self-studying";else if(o.trainingProviderOrganisationId==="c24729f5-4e4d-e211-acc8-005056b14c6a")r.tpName="Not currently registered with a training provider";else{let s=[];s.push(o.trainingProviderOrganisationId),a.tpName=this.tpService.getTrainingProviderNames(s)}this.subscriptions.push(oo(a).subscribe(s=>{r.programmeName=s.componentName.apprenticeshipQualification?s.componentName.name:s.componentName.shortName,r.onlineDisplaySequence=s.componentName.onlineDisplaySequence,s.tpName&&(r.tpName=s.tpName[0].name),s.level&&!s.level.error&&(r.currentLevel=Object.keys(s.level.children)[0]),this.formattedProgrammeRegistrations.push(r),this.formattedProgrammeRegistrations.length===n.length&&(this.allProgrammesLoaded=!0)}))})}formatSubscriptions(){let n=this.contactRelationship.subscriptions.filter(o=>o.status==="Active"||o.status==="Due");if(n.length&&n.length>0){let o=n.sort((a,s)=>new Date(s.endDate).getTime()-new Date(a.endDate).getTime()),r=[];o.forEach(a=>{r.some(s=>s.membershipTypeName===a.membershipTypeName)||r.push(a)}),this.formattedSubscriptions=r,this.hasSubscriptions=!0}}contactPersonalChange(n){this.contact.name.honorificPrefix=n}contactHoldingChange(n){this.updateHoldingAPI=!0,this.holdingAreaUpdateObject=n}contactObjectChange(n){this.contact.email=n.email.toLowerCase(),this.contact.address=n.address,this.contact.telephone=n.telephone,this.contact.internationalDiallingCode=n.internationalDiallingCode}contactPrefChange(n){Object.entries(n).forEach(r=>{let a=`${r[0]}LastUpdated`;if(r[0]==="shareWith3rdParty")this.contact.shareWith3rdParty=!r[1];else if(this.contact.contactPreference&&this.contact.contactPreference[r[0]]!==r[1]){let s=new Date;this.contact.contactPreference[r[0]]=r[1],this.contact.contactPreference[a]=s.toISOString()}})}tpDetailsChanged(n){this.updateTrainingProviderAPI=!0,this.updatedTps=n}updateEmployment(n){if(this.updatedEmployments&&this.updatedEmployments.contactId){let o=this.updatedEmployments.process.findIndex(r=>r.employmentId===n.employmentId);o!==-1&&this.updatedEmployments.process.splice(o,1),this.updatedEmployments.process.push(n)}else this.updatedEmployments={contactId:this.contact.contactId,process:[]},this.updatedEmployments.process.push(n);this.updateEmploymentAPI=!0}addedEmployment(n){this.newEmployments=[],this.createEmploymentAPI=!0,n.contact=this.contact.contactId,delete n.organisationName,this.newEmployments.push(n)}contactSpecialChange(n){let o=!1,r=!1;Object.entries(n).forEach(s=>{s[0]==="genderSelfDescribed"&&(o=!0),s[0]==="ethnicitySelfDescribed"&&(r=!0,this.contact.ethnicBackground="Other ethnic group"),this.contact[s[0]]=s[1]}),this.contact.genderSelfDescribed&&!o&&delete this.contact.genderSelfDescribed,this.contact.ethnicitySelfDescribed&&!r&&delete this.contact.ethnicitySelfDescribed}ulnDetailsChanged(n){this.contact.uln=n.uln,this.contact.scn=n.scn}commsPrefsUpdated(n){this.updateCommunicationsAPI=!0,this.commsPrefUpdateObject=n}formatContact(){let n={name:{givenName:this.contact.name.givenName,fam
787ilyName:this.contact.name.familyName,honorificPrefix:this.contact.name.honorificPrefix},email:this.contact.email,telephone:{daytimeNumber:this.contact.telephone.daytimeNumber},address:this.contact.address,memberId:this.contact.memberId,contactId:this.contact.contactId,gender:this.contact.gender,learningDifficultiesAndDisabilities:this.contact.learningDifficultiesAndDisabilities,contactPreference:{phoneCalls:this.contact.contactPreference?.phoneCalls,phoneCallsLastUpdated:this.contact.contactPreference?.phoneCallsLastUpdated,textMessage:this.contact.contactPreference?.textMessage,textMessageLastUpdated:this.contact.contactPreference?.textMessageLastUpdated,mailing:this.contact.contactPreference?.mailing,mailingLastUpdated:this.contact.contactPreference?.mailingLastUpdated},shareWith3rdParty:this.contact.shareWith3rdParty,internationalDiallingCode:{internationalDiallingISOCode:this.contact.internationalDiallingCode?.internationalDiallingISOCode,internationalDiallingCode:this.contact.internationalDiallingCode?.internationalDiallingCode}};if(this.contact.directDebit){let o=a=>{a in r||(r[a]=null,n.directDebit=r)},r=Object.assign({},this.contact.directDebit);o("accountNumber"),o("sortCode")}return this.contact.uln&&(n.uln=this.contact.uln),this.contact.scn&&(n.scn=this.contact.scn),this.contact.genderSelfDescribed&&(n.genderSelfDescribed=this.contact.genderSelfDescribed),this.contact.ethnicitySelfDescribed&&(n.ethnicitySelfDescribed=this.contact.ethnicitySelfDescribed),this.contact.ethnicBackground&&(n.ethnicBackground=this.contact.ethnicBackground),this.content.isScud&&(n.lastConfirmed=this.today.toISOString()),n}updateContact(){this.checkAllFormStatus(),this.masterFormValid?(this.submitButton.text="Updating...",this.submitButton.glyph={icon:fr.LOOP2,glyphAnimation:"spin"},this.form.markAsPristine(),this.updateAllData()):(this.scrollToInvalidSection(this.invalidSectionsList[0]),setTimeout(()=>{this.notificationInterface=Tae},10))}checkAllFormStatus(){this.invalidSectionsList=[];let n=this.form.status==="VALID"||this.form.status==="DISABLED";for(let o in this.form.controls)["personalDetailsForm","contactDetailsForm"].includes(o)&&this.form.controls[o].touched&&(n=!1,this.invalidSectionsList.push(o),o==="contactDetailsForm"&&this.invalidSectionsList.includes(o)&&(this.confirmNumberMessage=!0)),this.form.controls[o].invalid&&(this.invalidSectionsList.push(o),n=!1),o==="specialCategoryForm"&&(!this.contact.gender||!this.contact.learningDifficultiesAndDisabilities||!this.contact.ethnicBackground&&!this.contact.ethnicitySelfDescribed)&&(this.invalidSectionsList.push(o),n=!1);this.masterFormValid=n}scrollToInvalidSection(n){let o=document.getElementById(n);o&&setTimeout(()=>{o.scrollIntoView({behavior:"smooth"})})}updateAllData(){let n=[];this.responseErrors=[],n.push(this.contactService.update(this.formatContact())),this.updateTrainingProviderAPI&&this.updatedTps.forEach(o=>{n.push(this.formDataService.updateTrainingProviders(o))}),this.updateEmploymentAPI&&n.push(this.formDataService.updateEmployment(this.updatedEmployments)),this.createEmploymentAPI&&this.newEmployments.forEach(o=>{n.push(this.formDataService.createEmployment(o))}),this.updateCommunicationsAPI&&n.push(this.formDataService.updateCommsPreferences(this.commsPrefUpdateObject)),this.updateHoldingAPI&&n.push(this.formDataService.sendToHoldingArea(this.holdingAreaUpdateObject)),this.sendData(n).then(()=>{this.confirm.next(this.responseErrors.length<1)}).catch(o=>o)}sendData(n){return new Promise((o,r)=>{this.subscriptions.push(oo(n).subscribe({next:a=>{a.forEach(s=>{if(Array.isArray(s)&&s[0]&&s[0].communicationPreferenceSelectionId){let l=[];s.forEach(c=>{l.push(c)}),this.commsQuestionsResponse=l}s.error&&this.responseErrors.push(s)}),this.responseErrors.length>0?this.notificationInterface=_E:this.notificationInterface=Eae,this.submitButton.text="Confirm my details",this.submitButton.glyph=null},error:a=>{r(a)},complete:()=>{this.updateTrainingProviderAPI=!1,this.updateEmploymentAPI=!1,this.createEmploymentAPI=!1,this.updateCommunicationsAPI=!1,this.updateHoldingAPI=!1,o(!0)}}))})}previousStep(){this.onBack.next(!0)}};
787t.\u0275fac=function(o){return new(o||t)(O(No),O(st),O(qp),O(z0),O(eo),O(j0))},t.\u0275cmp=U({type:t,selectors:[["fab-edit-details-form"]],inputs:{showBackButton:"showBackButton",content:"content"},outputs:{confirm:"confirm",onBack:"onBack"},standalone:!1,decls:4,vars:2,consts:[[1,"edit-details-form"],[3,"ngClass"],[1,"info-container","context",3,"innerHTML"],[1,"loaded-after"],["id","personalDetailsForm",1,"subheading"],[1,"info-container",3,"updatedTitleData","updatedProtectedData","contactDetails","student","member","invalidSections","pendingChanges"],["id","contactDetailsForm",1,"subheading"],[1,"info-container",3,"updatedData","contactDetails","invalidSections","confirmNumber"],[1,"subheading"],[1,"info-container",3,"contactDetails"],[1,"info-container",3,"subscriptionsInput"],["id","specialCategoryForm",1,"subheading"],[1,"info-container",3,"updatedSpecialData","getFormStatus","contactDetails","student","member","invalidSections"],["id","contactPreferencesForm",1,"subheading"],[1,"info-container",3,"updatedContactPreference","contactDetails","invalidSections"],["id","commsPrefForm",1,"info-container-separated",3,"commsPrefsUpdate","formattedCommsPrefs","contactDetails","updatedMultiChoice"],["id","tpDeatailsForm",1,"subheading"],[1,"info-container-separated",3,"tpUpdated","ulnUpdate","programmeRegistrations","contactDetails"],["id","studentEmploymentDetailsForm",1,"subheading"],[1,"info-container",3,"addEmploymentWithPerms","updatedEmployment","employment"],["id","licenceDetailsForm",1,"subheading"],[1,"info-container-separated",3,"employment","mipDetails","invalidSections","contactDetails"],[1,"float__notification"],[1,"row__end"],[3,"button"],[1,"submit"],[3,"isNotificationOpen","notification"]],template:function(o,r){o&1&&(p(0,"div",0),y(1,mZ,1,0,"fab-loader")(2,MZ,11,11),y(3,DZ,7,6,"div",1),u()),o&2&&(d(),w(r.isLoading?1:2),d(2),w(r.isLoading?-1:3))},dependencies:[Ce,Gs,Vo,Ee,Rae,Lae,Nae,zae,Vae,Uae,jae,Wae,$ae,qae],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.edit-details-form .row{display:flex;justify-content:flex-start}.edit-details-form .row__end{display:flex;justify-content:space-between;align-items:center}.edit-details-form .subheading{margin-bottom:3%}.edit-details-form .context{padding:20px;border:thin solid rgb(229.5,229.5,229.5)}.edit-details-form .padded{padding:20px}.edit-details-form .float{position:sticky;bottom:0;padding-bottom:13px;background-color:#f9f9f9;border-radius:4px;z-index:1}.edit-details-form .float__notification{margin-bottom:15px}.edit-details-form fab-notification{width:100%}.edit-details-form .personal-details-form__controls{display:flex;justify-content:space-between;align-items:center;width:100%;margin:20px 0}.edit-details-form .personal-details-form__controls--submit{justify-content:center;margin:0}@media (min-width: 768px){.edit-details-form .personal-details-form__controls--submit{justify-content:flex-end}}.edit-details-form .personal-details-form__box{width:100%;background-color:#fff}.edit-details-form .personal-details-form__box{padding:0 10px}.edit-details-form .personal-details-form__box.no-padding{padding:0}.edit-details-form .personal-details-form__box.heading{border-bottom:0;font-size:20px}.edit-details-form .personal-details-form__box{border-style:solid;border-width:thin;border-color:#e6e6e6;border-top:none}.edit-details-form .personal-details-form__box--header{padding:20px 15px}.edit-details-form .personal-details-form__box--detail-noline{display:flex;padding:10px 20px;border-top:none;border-top-style:none;border-color:#e6e6e6;font-weight:600}.edit-details-form .personal-details-form__box--detail-noline p,.edit-details-form .personal-details-form__box--detail-noline h4{flex:1}.edit-details-form .personal-details-form__box--detail-noline span,.edit-details-form .personal-details-form__box--detail-noline div{flex:2}.edit-details-form .personal-details-form__box--detail-header{display:flex;padding:10px 20px;border-top:none;border-top-style:none;border-color:#e6e6e6;font-weight:600}.edit-details-form .personal-details-form__box--detail-header p,.edit-details-form .personal-details-form__box--detail-header h4{flex:1}.edit-details-form .personal-details-form__box--detail-header span,.edit-details-form .personal-details-form__box--detail-header div{flex:2}.edit-details-form .personal-details-form__box--edit-row,.edit-details-form .personal-details-form__box--confirm-delete-row{padding:20px;margin:0}.edit-details-form .personal-details-form__box--confirm-delete-row .confirm__wrapper{background-color:#fff;border-style:none}.edit-details-form .personal-details-form__box--notification{margin:0 15px 20px}@media (min-width: 768px){.edit-details-form .personal-details-form__box--notification{margin:0 0 20px}}.edit-details-form .personal-details-form__box--notification .notification--status a{color:#fff}.edit-details-form .personal-details-form__box--element{padding:20px 15px}.edit-details-form .personal-details-form__box--element li{list-style:initial;margin-left:20px}.edit-details-form .personal-details-form__box--element.no-padding-top{padding-top:0}.edit-details-form .personal-details-form__box--element.select{padding:5px 15px}.edit-details-form .personal-details-form__box--element .form_icon{padding-top:8px}@media (min-width: 1200px){.edit-details-form .personal-details-form__box--element .form_icon{padding-top:10px}}.edit-details-form .personal-details-form__box--element .form_icon{padding-left:5px!important}.edit-details-form .personal-details-form__box--buttons{padding:20px 0;display:flex;justify-content:space-between}.edit-details-form .personal-details-form__box--buttons-existing-dd{padding:30px 15px}@media (min-width: 768px){.edit-details-form .personal-details-form__box--buttons-existing-dd{padding:30px 0;display:flex;flex-direction:row-reverse;justify-content:space-between}}.edit-details-form .personal-details-form__detail-table--row{position:relative;border-top:thin;border-top-style:solid;border-color:#e6e6e6;display:grid;grid-template-columns:1fr;padding:0}.edit-details-form .personal-details-form__detail-table--row .wb-all{word-break:break-word}.edit-details-form .personal-details-form__detail-table--row .d-sm{display:none}@media (min-width: 768px){.edit-details-form .personal-details-form__detail-table--row{grid-template-columns:1fr 1fr .6fr}.edit-details-form .personal-details-form__detail-table--row-info{position:absolute;top:104px;transform:translateY(-50%);left:0;right:0}.edit-details-form .personal-details-form__detail-table--row.help-text{padding-bottom:100px}.edit-details-form .personal-details-form__detail-table--row .d-sm{display:inline}.edit-details-form .personal-details-form__detail-table--row--edit{text-align:end}}.edit-details-form .personal-details-form__detail-table--row.edit{grid-template-columns:1fr;white-space:inherit}.edit-details-form .personal-details-form__detail-table--row.edit.hidden{display:none}.edit-details-form .personal-details-form__detail-table--row>p,.edit-details-form .personal-details-form__detail-table--row>h4,.edit-details-form .personal-details-form__detail-table--row>span,.edit-details-form .personal-details-form__detail-table--row>div{padding:10px 10px 10px 15px}@media (min-width: 768px){.edit-details-form .personal-details-form__detail-table--row>p,.edit-details-form .personal-details-form__detail-table--row>h4,.edit-details-form .personal-details-form__detail-table--row>span,.edit-details-form .personal-details-form__detail-table--row>div{padding:20px}.edit-details-form .personal-details-form__detail-table--row>p.personal-details-form__detail-table--edit,.edit-details-form .personal-details-form__detail-table--row>h4.personal-details-form__detail-table--edit,.edit-details-form .personal-details-form__detail-table--row>span.personal-details-form__detail-table--edit,.edit-details-form .personal-details-form__detail-table--row>div.personal-details-form__detail-table--edit{padding-right:25px}}.edit-details-form .personal-details-form__detail-table--row>p{margin:0;font-size:20px}.edit-details-form .personal-details-form__detail-table--full-width{padding:15px;border-top:thin solid rgb(229.5,229.5,229.5)}@media (min-width: 768px){.edit-details-form .personal-details-form__detail-table--full-width{padding:20px}}.edit-details-form .personal-details-form__detail-table--heading{margin:0;font-size:20px}.edit-details-form .personal-details-form__detail-table--message{margin:1em 0}.edit-details-form .personal-details-form__detail-table--edit{font-weight:600;color:#00ab4e;cursor:pointer}.edit-details-form .personal-details-form__detail-table--input{padding-bottom:20px}@media (min-width: 992px){.edit-details-form .personal-details-form__detail-table__postcode{max-width:70%}}@media (min-width: 1200px){.edit-details-form .personal-details-form__detail-table__postcode{max-width:65%}}.edit-details-form .personal-details-form--opted .icon-cross{color:#e22b25}
787.edit-details-form .personal-details-form .invalid{border-radius:3px;background-color:#fff;border:solid #e22b25;padding:20px 12px;display:inline-block;width:70%}.edit-details-form .personal-details-form .invalid:focus{-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.edit-details-form .personal-details-form .valid{border-radius:3px;background-color:#fff;border:solid #008048;padding:0 20px 12px;display:inline-block;width:70%}.edit-details-form .personal-details-form .valid:focus{-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.edit-details-form .personal-details-form .error-message{margin-top:10px;color:#e22b25;font-weight:600;font-size:14px}.edit-details-form .personal-details-form .icon{font-size:20px}.edit-details-form .personal-details-form .icon-success{color:#00ab4e}.edit-details-form .personal-details-form .icon-error{color:#e22b25}.edit-details-form .personal-details-form .select_icon{padding-left:20px;display:flex;align-items:center}.edit-details-form .personal-details-form .selection-content{display:flex}.edit-details-form .personal-details-form .padded-full{padding:20px 0}.edit-details-form .info-container{margin-bottom:5%;background-color:#fff;display:block}.edit-details-form .info-container-separated{margin-bottom:5%;display:block}.edit-details-form .borderless{border:0}.edit-details-form .border-bottom{border:0;border-bottom:thin solid rgb(229.5,229.5,229.5)}.edit-details-form .border-bottom--heading{border-bottom:thin solid rgb(229.5,229.5,229.5);border-top:thin solid rgb(229.5,229.5,229.5)}.edit-details-form .tooltip{font-size:12px}@media (min-width: 768px){.edit-details-form .tooltip{font-size:14px}} 788`],encapsulation:2});let e=t;return e})(),Qae=(()=>{let t=class t{constructor(n){Ct(n)&&(this.isBrowser=!0)}ngOnInit(){}run(n){return this[n]()}print(){this.isBrowser&&window.print()}getIconSource(){return`/assets/fonts/icons/aat-icons/${this.item.icon}.svg`}};t.\u0275fac=function(o){return new(o||t)(O(gt))},t.\u0275cmp=U({type:t,selectors:[["fab-icon-links-item"]],inputs:{item:"item"},standalone:!1,decls:5,vars:4,consts:[[1,"icon-links__link",3,"click"],[1,"icon",3,"ngClass"],[1,"icon",3,"src"]],template:function(o,r){o&1&&(p(0,"a",0),T("click",function(){return r.run(r.item.action)}),y(1,PZ,1,1,"i",1),y(2,RZ,1,1,"img",2),p(3,"span"),C(4),u()()),o&2&&(Ve("href",r.item.link?r.item.link:null,ae),d(),w(r.item.useAatIcon?-1:1),d(),w(r.item.useAatIcon?2:-1),d(2),R(r.item.label))},dependencies:[Ce],styles:['[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2} .icon-links{display:flex;flex-direction:row} .icon-links a.icon-links__link{background-color:#fff;border:2px solid #000000;box-sizing:border-box;border-radius:50%;position:relative;height:40px;width:40px;margin:5px;display:inline-block;text-decoration:none;transition:all .3s ease-in-out} .icon-links a.icon-links__link i{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:20px;color:#000} .icon-links a.icon-links__link span{text-align:left;font-family:Open Sans,Arial,Helvetica,"sans-serif";position:absolute;top:-7px;left:50%;background-color:#2f2f2f;padding:5px;transform:translate(-50%,-100%);display:none;font-size:14px;color:#fff;width:max-content;max-width:150px} .icon-links a.icon-links__link span:after{content:"";width:5px;height:5px;position:absolute;bottom:-3px;left:50%;background-color:#2f2f2f;transform-origin:center center;transform:rotate(45deg) translate(-33%)} .icon-links a.icon-links__link:hover{box-shadow:0 5px 5px #00000040} .icon-links a.icon-links__link:hover span{display:block} .icon-links--vertical{flex-direction:column;text-align:right} .icon-links--vertical a.icon-links__link span{top:50%;left:-7px;transform:translate(-100%,-50%)} .icon-links--vertical a.icon-links__link span:after{inset:50% -1px auto auto;transform:rotate(45deg) translate(0) translateY(-33%)}']});let e=t;return e})(),Jae=(()=>{let t=class t{constructor(){}ngOnInit(){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-icon-links"]],inputs:{content:"content"},standalone:!1,decls:3,vars:1,consts:[[1,"icon-links","dont-print",3,"ngClass"],[3,"item"]],template:function(o,r){o&1&&(p(0,"div",0),X(1,FZ,1,1,"fab-icon-links-item",1,se),u()),o&2&&(v("ngClass",r.content.vertical?"icon-links--vertical":"icon-links--horizontal"),d(),ee(r.content.items))},dependencies:[Ce,Qae],styles:[OZ]});let e=t;return e})(),Zae=(()=>{let t=class t{constructor(n,o){this.sanitizer=n,this.colOffset=2,this.hoverToolTip=!1,this.clickToolTip=!1,this.iconLinks={vertical:!1,items:[{label:"Print",icon:"print",action:"print"}]},Ct(o)&&(this.isBrowser=!0)}set content(n){this._content=n}get content(){return this._content}getSanitizer(n){return this.sanitizer.bypassSecurityTrustStyle(`url(${this._content.background})`)}hoverInfoIcon(n){this.hoverToolTip=!this.hoverToolTip}clickInfoIcon(n){this.clickToolTip=!this.clickToolTip}ngOnInit(){this.content.button&&(this.content.cta={text:this.content.button.text??this.content.button.linkCta,aria:this.content.button.text??this.content.button.linkCta,action:{type:"link",link:this.content.button.link,useRouterLink:!1,openInNewTab:this.content.button.openInNewTab},type:"primary"})}};t.\u0275fac=function(o){return new(o||t)(O(yn),O(gt))},t.\u0275cmp=U({type:t,selectors:[["fab-standard-hero"]],inputs:{colOffset:"colOffset",content:"content"},standalone:!1,ngContentSelectors:xc,decls:15,vars:33,consts:[[3,"ngStyle","ngClass"],[1,"standard-hero--tool-tip"],[3,"ngClass"],[1,"standard-hero__topline","dont-print",3,"href"],[1,"standard-hero__topline","dont-print",3,"routerLink"],[3,"innerHTML"],[1,"standard-hero__content--subtitle",3,"innerHTML","ngClass"],[1,"standard-hero__author-container"],[1,"standard-hero__button-container"],[1,"standard-hero__sponsor-container"],[1,"button-primary-container",3,"ngClass"],[1,"standard-hero--cta-button",3,"button"],[1,"standard-hero__attribution","standard-hero__copy--light"],[1,"icon","icon-info",3,"tooltip","positionInput"],[1,"standard-hero__author-link",3,"href"],[1,"standard-hero__author-link",3,"routerLink"],[1,"standard-hero__author-name"],[3,"content"],["target","_blank",3,"href"],["alt","",1,"standard-hero__sponsor-container--image",3,"src"]],template:function(o,r){o&1&&(en(),p(0,"div",0),y(1,VZ,2,2,"div",1),p(2,"div",2),y(3,HZ,2,3,"a",3),y(4,GZ,2,4,"a",4),y(5,UZ,1,1,"h1",5),y(6,jZ,1,4,"div",6),y(7,WZ,1,1,"p",5),y(8,YZ,5,2,"div",7),y(9,QZ,2,1,"div",8),y(10,JZ,5,4,"div",9),ui(11),p(12,"div",10),y(13,ZZ,1,1,"fab-button",11),u()(),y(14,XZ,3,1,"div",12),u()),o&2&&(pe(vt("standard-hero row standard-hero--theme-",r.content.theme)),xt("background-image",r.content.background?r.getSanitizer(r.content.background):"none"),v("ngStyle",On(23,AZ))("ngClass",hi(24,LZ,r.content.expanded,r.content.isContentDetail,r.content.attribution)),d(),w(r.content.gdprIdentifier?1:-1),d(),pe(vt("standard-hero__content standard-hero__content--",r.content.align," col-lg-6 col-lg-offset-3 col-md-8 col-md-offset-2 col-xs-10 col-xs-offset-1")),v("ngClass",Re(28,NZ,r.content.colourWay==="light",r.content.attribution)),d(),w(r.content.useRouterLink?-1:3),d(),w(r.content.useRouterLink?4:-1),d(),w(r.content.title?5:-1),d(),w(r.content.subTitle?6:-1),d(),w(r.content.content?7:-1),d(),w(r.content.authorline?8:-1),d(),w(r.content.isContentDetail?9:-1),d(),w(r.content.sponsorshipDetails!=null&&r.content.sponsorshipDetails.image?10:-1),d(2),v("ngClass",z(31,zZ,!r.content.content)),d(),w(r.content.cta?13:-1),d(),w(r.content.attribution?14:-1))},dependencies:[Ce,kr,Jae,tt,Ee,jp,Mr],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.standard-hero{position:relative;margin-bottom:20px;background-color:#f9f9f9}
788.standard-hero--details{background-color:#fff}.standard-hero--tool-tip{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-ms-flex-wrap:wrap;position:relative;top:0;right:0;opacity:.9;justify-content:flex-end;position:absolute;width:100%}.standard-hero .bubble{position:relative;background-color:#000;border-radius:4px;top:10px;right:25px;left:auto;width:auto;max-width:calc(100% - 90px);padding:5px 10px;color:#fff;font-size:14px}.standard-hero .bubble p{margin:5px 10px;color:#fff}@media (min-width: 992px){.standard-hero .bubble{top:10px;left:auto;right:26px}}.standard-hero .bubble:after{content:"";position:absolute;border-style:solid;border-width:5px 0 5px 12px;border-color:transparent #000000;display:block;width:0;z-index:1;right:-12px;top:9px;-webkit-transform:rotate(360deg);transform:rotate(360deg)}@media (min-width: 992px){.standard-hero .bubble:after{left:auto;top:12px}}.standard-hero .icon-info{position:relative;font-size:20px;left:auto;right:10px;top:12px;border:1px solid #fff;background-color:#fff;border-radius:50%;height:100%}@media (min-width: 992px){.standard-hero .icon-info{top:10px;font-size:30px}}.standard-hero__gdpr-info{width:100%;text-align:right;padding-right:5px}.standard-hero__topline{font-size:14px;text-decoration:none}@media (min-width: 992px){.standard-hero__topline{font-size:16px}}.standard-hero__sponsor-container{display:flex;justify-content:center;align-items:center}.standard-hero__sponsor-container--image{height:50px}.standard-hero__author-container{display:flex;justify-content:center}.standard-hero__button-container fab-icon-links{position:absolute;right:0;transform:translateY(-2px)}.standard-hero__author-link{text-decoration:none;overflow:hidden;margin-left:5px;font-weight:400}.standard-hero__author-name{color:#00ab4e}.standard-hero.row{max-width:100vw}.standard-hero h1{font-family:acumin-pro-wide,Arial;color:#000}.standard-hero--theme-green{background:#00ab4e}.standard-hero--theme-green h1,.standard-hero--theme-green p,.standard-hero--theme-green b,.standard-hero--theme-green .standard-hero__content--subtitle{color:#fff}.standard-hero--theme-white{background:#fff}.standard-hero--theme-white h1,.standard-hero--theme-white p,.standard-hero--theme-white b,.standard-hero--theme-white .standard-hero__content--subtitle{color:#000}.standard-hero--expanded{padding-bottom:100px;margin-bottom:-100px}.standard-hero__content{text-align:center;margin-top:80px;margin-bottom:100px}.standard-hero__content p{font-weight:400}@media only screen and (max-width: 576px){.standard-hero__content p{font-size:14px}}@media only screen and (min-width: 768px) and (max-width: 992px){.standard-hero__content p{font-size:16px}}@media only screen and (min-width: 992px){.standard-hero__content p{font-size:18px;font-weight:600}}.standard-hero__content--left{text-align:left}.standard-hero__content--right{text-align:right}.standard-hero__content--subtitle.light{color:#fff}.standard-hero__content--subtitle div{font-size:34.174px;margin-bottom:20px;font-weight:100}@media (min-width: 992px){.standard-hero__content--subtitle div{font-size:39.056x}}@media (min-width: 1200px){.standard-hero__content--subtitle div{font-size:56.826px}}.standard-hero__content.standard-hero--v2{text-align:center;margin-top:80px;margin-bottom:0}@media (min-width: 992px){.standard-hero__content.standard-hero--v2{margin-top:110px}}.standard-hero .standard-hero__copy--light h1,.standard-hero .standard-hero__copy--light p{color:#fff}.standard-hero .standard-hero__attribution{text-align:center;width:100%;padding-right:0}.standard-hero .standard-hero__attribution p{margin-top:0}@media (min-width: 992px){.standard-hero .standard-hero__attribution{text-align:right;width:100%;padding-right:1em}.standard-hero .standard-hero__attribution p{font-size:12px;font-weight:600}} 789`],encapsulation:2});let e=t;return e})(),Xae=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge]});let e=t;return e})(),wE=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,Xae,Yc,At,Ee,Us]});let e=t;return e})(),Mwe=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({providers:[Hc,tn,el],imports:[ge,Rt,Vi,Bo,Bs,Mc,CE,Hs,hre,dre,Ec,pre,Yae,yE,F0,Kae,xa,wE,Ee]});let e=t;return e})(),ese=(function(e){return e.CommsPreferences="comms-preference-block",e.ContactDetails="contact-details",e.ContactPreferences="contact-preferences",e.
789LicenseBlock="license-block",e.PasswordBlock="password-block",e.PersonalDetails="personal-details",e.SpecialCategory="special-category",e.StudentEmploymentBlock="student-employment-block",e.StudyingBlock="studying-block",e.SubscriptionBlock="subscription-block",e})(ese||{}),tse=(()=>{let t=class t{set content(n){this._content=n}get content(){return this._content}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-footer"]],inputs:{content:"content"},standalone:!1,decls:29,vars:14,consts:[["cobrowsingModal",""],[3,"disableOpenModalButton"],[1,"footer","dont-print"],[1,"footer__container"],[1,"row"],[1,"footer__info","col-xs-12","col-sm-6","col-md-offset-1","col-md-4"],["href","/","alt","homepage"],["alt","homepage",3,"routerLink"],[1,"footer__address",3,"innerHtml"],[1,"footer__links","col-xs-12","col-sm-3","col-md-2","row"],[1,"footer__links__category","col-xs-12","col-sm-10"],[1,"footer__links","footer__links--community","col-xs-12","col-sm-3","col-md-2","row"],[1,"footer__links__category","col-xs-12","col-sm-12"],[1,"footer__push","col-xs-12","col-sm-offset-6","col-md-offset-0","col-sm-6","col-md-3"],[3,"button"],[1,"be-ix-link-block"],[1,"footer__bottom","col-xs-12","col-md-offset-1","col-md-11","row"],[1,"footer__bottom__links","col-xs-12","col-sm-6","col-md-8","row"],[1,"footer__bottom__links","col-xs-12","col-sm-6","col-md-4"],["alt","",3,"src"],[3,"href","class"],[3,"click",4,"featureFlag"],[3,"href"],[3,"click"],[3,"routerLink","class"],[3,"routerLink"],["target","_blank",3,"href"]],template:function(o,r){o&1&&(x(0,"fab-cobrowsing",1,0),p(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),y(6,iX,2,2,"a",6),y(7,nX,2,4,"a",7),x(8,"p",8),u(),p(9,"div",9),X(10,cX,6,3,"div",10,se),N(12,"slice"),u(),p(13,"div",11),X(14,gX,6,3,"div",12,se),u(),p(16,"div",13)(17,"h6")(18,"strong"),C(19),u()(),p(20,"p"),C(21),u(),y(22,mX,2,3,"fab-button",14),u(),x(23,"div",15),p(24,"div",16),y(25,vX,3,0,"div",17),y(26,bX,3,0,"div",17),p(27,"p",18),C(28),u()()()()()),o&2&&(v("disableOpenModalButton",!0),d(6),w(r.content.logo&&!r.content.useRouterLink?6:-1),d(),w(r.content.logo&&r.content.useRouterLink?7:-1),d(),v("innerHtml",r.content.address,ue),d(2),ee(xr(12,10,r.content.linkCategories,0,2)),d(4),ee(r.content.communityCategories),d(5),R(r.content.push.title),d(2),R(r.content.push.desc),d(),w(r.content.push.button!=null&&r.content.push.button.text?22:-1),d(3),w(r.content.useRouterLink?-1:25),d(),w(r.content.useRouterLink?26:-1),d(2),R(r.content.copyright))},dependencies:()=>[Ee,tt,Hre,wre,ph,ise],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.footer{text-align:center;background-color:#31373e;padding:30px 15px;margin-top:30px}.footer h6,.footer p,.footer a{color:#fff;font-size:14px}.footer p{opacity:.7;font-size:12px}.footer a{font-size:14px;text-decoration:none;margin-bottom:3px}.footer a:hover,.footer a:focus{text-decoration:underline;color:#fff;-moz-transition:initial;-o-transition:initial;-webkit-transition:initial;transition:initial}.footer i{font-size:24px;margin-right:5px}.footer img{margin-left:auto;margin-right:auto;width:220px}.footer__container{margin-left:auto;margin-right:auto;max-width:1280px;text-align:left}.footer__info{text-align:center}.footer__address{margin:14px 10px 14px 0}@media (max-width: 607px){.footer__address{margin:20px 0 0}}.footer__links{margin-top:30px}@media (max-width: 607px){.footer__links__category .row{justify-content:space-around}.footer__links__category .row a{display:none}.footer__links__category .row a:nth-child(-n+2){display:block}.footer__links__category .row a:last-child{display:block}}@media (max-width: 607px){.footer__links--community .row a{display:block;flex-grow:1;flex-basis:auto;flex-shrink:0;padding-right:0rem;padding-left:0rem;box-sizing:border-box;max-width:100%;font-size:12px}}.footer__links--community a{display:table;float:left;width:100%}@media (max-width: 607px){.footer__links--community a{width:50%}}.footer__links--community a:first-child{margin-top:0}.footer__links--community a:hover,.footer__links--community a:focus{text-decoration:none}.footer__links--community a:hover span,.footer__links--community a:focus span{text-decoration:underline}.footer__links--community i{display:table-cell;padding:0 10px 0 0;width:10%;font-size:22px}
789.footer__links--community span{display:table-cell;vertical-align:middle;font-weight:300;width:90%;padding-right:10px}@media (max-width: 607px){.footer__links h6,.footer__links p{display:none}}.footer__links a,.footer__bottom a{padding:5px;font-weight:100}.footer__push{text-align:center;margin-top:14px}@media (min-width: 1200px){.footer__push{margin-top:0}}.footer__push p{font-size:14px}.footer__push a{margin:10px 0 30px}.footer__bottom{border-top:1px solid rgba(255,255,255,.7);padding-top:15px}.footer__bottom a,.footer__bottom p{font-size:12px;color:#f9f9f9;opacity:.7;text-align:center}.footer__bottom a{display:inline-block}.footer__bottom__links{justify-content:space-around}@media (min-width: 668px){.footer{text-align:left;padding:40px 36px}.footer h6,.footer p{font-size:14px}.footer h6{margin-bottom:10px}.footer__info{text-align:left}.footer__social{justify-content:space-between;max-width:260px}.footer__social a{padding-right:15px}.footer img{margin-left:-12px}.footer__links{margin-bottom:30px}.footer__links__category{justify-content:left;padding-right:16px}.footer__links__category .row a,.footer__links h6,.footer__links p,.footer__links a{display:block}.footer__links a{padding:0 15px 3px 0;width:100%;line-height:1.5em}.footer__push{text-align:left;margin-top:30px}.footer__push h6,.footer__push p{display:block}.footer__bottom a,.footer__bottom p{font-size:12px;margin:0}.footer__bottom a{text-align:left}.footer__bottom p{text-align:right}.footer__bottom a{padding:0 15px 5px 0}.footer__bottom__links{justify-content:left}}@media (min-width: 1200px){.footer{padding:40px 36px}.footer a{font-size:14px}.footer__social{max-width:300px}.footer__social a{margin-right:30px}.footer__social a i{font-size:20px}.footer__links{margin-bottom:40px}.footer__bottom a,.footer__bottom p{font-size:14px;margin:0}} 790`],encapsulation:2});let e=t;return e})(),ise=(()=>{let t=class t{transform(n){return{text:n.push.button.text,aria:n.push.button.text,action:{type:"link",link:n.push.button.link,useRouterLink:!1},type:"primary"}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275pipe=et({name:"formatContentToButton",type:t,pure:!0,standalone:!1});let e=t;return e})(),nse=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,Ee,At,Gre]});let e=t;return e})(),xE=(()=>{let t=class t{transform(n){return Array.isArray(n)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275pipe=et({name:"isArray",type:t,pure:!0,standalone:!1});let e=t;return e})(),Twe=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-form-summary"]],inputs:{content:"content"},standalone:!1,decls:6,vars:1,consts:[[1,"fab-form-summary"],[1,"fab-form-summary__header"],[1,"fab-form-summary__content"],[1,"fab-form-summary__content--header"],[1,"fab-form-summary__content--data"]],template:function(o,r){o&1&&(p(0,"div",0)(1,"h2",1)(2,"strong"),C(3),u()(),X(4,xX,8,7,"div",2,se),u()),o&2&&(d(3),A(" ",r.content.header," "),d(),ee(r.content.displayMapping))},dependencies:[xE],styles:[".fab-form-summary__header[_ngcontent-%COMP%]{border-style:solid;border-width:thin;border-color:#e6e6e6;padding:20px}.fab-form-summary__content[_ngcontent-%COMP%]{display:flex;flex-direction:row;border-style:solid;border-width:thin;border-color:#e6e6e6}.fab-form-summary__content--header[_ngcontent-%COMP%], .fab-form-summary__content--data[_ngcontent-%COMP%]{width:50%;padding:20px;margin:0}"]});let e=t;return e})(),Iwe=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({providers:[xE],imports:[ge,Rt]});let e=t;return e})();var Dwe=(()=>{let t=class t{static withConfig(n){return{ngModule:t,providers:[{provide:"baseApi",useValue:n}]}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({providers:[Uc(jc())],imports:[ge,At]});let e=t;return e})(),js=(()=>{let t=class t{constructor(n){this.cmsContentService=n,this.headerContent$=new Ze(void 0),this.currentImageSrc$=new Ze(void 0),this.currentImageDescription$=new Ze(void 0),this.currentImageTitle$=new Ze(void 0),this.activeHeader$=new Ze(void 0),this.activeSubHeader$=new Ze(void 0),this.activeSubSubHeader$=new Ze(void 0),this.activeTitle$=new Ze(void 0),this.menuOpen$=new Ze(!1),this.rightPaneOpened$=new Ze(!1)}setImage(n,o,r){this.currentImageSrc$.next(n?this.cmsContentService.handleImageLocation(n,"small"):void 0),this.currentImageDescription$.next(r),this.currentImageTitle$.next(o)}setHeaderActive(n,o){o&&this.menuOpen$.next(!!n),this.setSubHeaderActive(void 0),this.setTitle(n?.title),this.activeHeader$.next(n)}setSubHeaderActive(n){let o=this.getHeaderMetadataOrOverride(n);this.setImage(o?.image,o?.title,o?.summary),this.setSubSubHeaderActive(void 0,!1),this.activeSubHeader$.next(n)}setSubSubHeaderActive(n,o=!0){if(o){let r=this.getHeaderMetadataOrOverride(n);
790this.setImage(r?.image,r?.title,r?.summary)}this.activeSubSubHeader$.next(n)}setTitle(n){this.activeTitle$.next(n)}setMenuOpen(n){this.menuOpen$.next(n)}setRightPaneOpened(n){this.rightPaneOpened$.next(n)}getHeaderMetadataOrOverride(n){if(!n)return null;let o=n.manualImage?n.manualImage:n.image,r=n.title,a=n.manualSummary?n.manualSummary:n.summary;return{image:o,title:r,summary:a}}};t.\u0275fac=function(o){return new(o||t)(Y(ya))},t.\u0275prov=ve({token:t,factory:t.\u0275fac});let e=t;return e})(),ose=(()=>{let t=class t{constructor(){this.router=xe(gi),this.route=iC(this.router.events.pipe(zc(n=>n instanceof Ia),uv(null),J(()=>this.getDeepestSnapshot(this.router.routerState.snapshot.root))),{initialValue:this.getDeepestSnapshot(this.router.routerState.snapshot.root)})}getDeepestSnapshot(n){for(;n.firstChild;)n=n.firstChild;return n}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),rse=(()=>{let t=class t{set content(n){this._content=n}get content(){return this._content}get dropdown(){return this.dropdownIsActive}set dropdown(n){this.dropdownIsActive=n}get pane(){return this.paneIsActive}set pane(n){this.paneIsActive=n,this.rightPaneChange.emit(this.paneIsActive)}constructor(n,o,r){this.authService=n,this.renderer=o,this.router=r,this.isUserAuth=!1,this.initials="",this.dropdownIsActive=!1,this.paneIsActive=!1,this.rightPaneChange=new L,this.groupMenuItems=[],n.authenticationChanged$.subscribe(a=>{this.isUserAuth=a,this.isUserAuth?n.getCurrentUser().pipe(ot(1)).subscribe(s=>{this.cognitoDetails=s,this.isCognitoUser(this.cognitoDetails)?this.initials=this.cognitoDetails.given_name.charAt(0)+this.cognitoDetails.family_name.charAt(0):(this.cognitoDetails=new C0,this.initials="")}):this.pane=!1}),n.otherDashboardGroupsAnnounced$.subscribe(a=>{this.groupMenuItems=[];for(let s of a)this.groupMenuItems.push(s)})}changeGroup(n){this.authService.setDashboardGroup(n)}isCognitoUser(n){return"family_name"in n}ngOnInit(){this.authService.loggedIn()}logout(){["/my-account/edit-details","/centre-services/payment-code/view","/centre-services/payment-code/create","/employers/payment-code/view","/employers/payment-code/create"].includes(this.router.url)?this.authService.broadcastLogoutInitiated(!0):this.authService.logout().subscribe()}togglePane(){this.pane?this.closePane():this.openPane()}openPane(){this.pane=!0}closePane(){this.pane=!1}toggleDropdown(){this.dropdown=!this.dropdown}closeDropdown(){this.dropdown=!1}};t.\u0275fac=function(o){return new(o||t)(O(st),O(Rn),O(gi))},t.\u0275cmp=U({type:t,selectors:[["fab-logged-in-user"]],inputs:{content:"content"},outputs:{rightPaneChange:"rightPaneChange"},standalone:!1,decls:1,vars:1,consts:[[1,"logged-in"],[1,"logged-in__avatar-mobile",3,"click"],[1,"logged-in__overlay",3,"click"],[1,"logged-in__pane",3,"click"],[1,"logged-in__avatar"],[1,"logged-in__user-details"],[1,"logged-in__name-details"],["title","Member ID",1,"logged-in__membership"],[1,"icon-menu-secondary"],[1,"logged-in__menu"],[3,"click"],[3,"href","openInNewTab"],[3,"routerLink","openInNewTab"]],template:function(o,r){o&1&&y(0,TX,21,11,"div",0),o&2&&w(r.isUserAuth&&r.cognitoDetails?0:-1)},dependencies:[tt,br,gE],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.logged-in__overlay{content:"";display:none;position:fixed;top:0;right:260px;height:100%;width:100%;z-index:2000;background:#0000004d}@media (min-width: 992px){.logged-in__overlay{background:transparent;right:0}}.logged-in{color:#000;cursor:pointer;position:relative;z-index:1;display:flex;justify-content:flex-end}.logged-in i{display:none}@media (min-width: 992px){.logged-in i{display:block;position:absolute;width:30px;height:20px;right:0;top:16px;font-size:20px}}@media (min-width: 1200px){.logged-in i{display:block;position:absolute;width:30px;height:20px;right:0;top:21px;font-size:20px}}.logged-in hr{display:block;height:1px;border:0;border-top:1px solid rgb(229.5,229.5,229.5);margin:14px 0;padding:0}.logged-in__menu{z-index:2001;text-align:left;font-size:16px}.logged-in__menu a{color:#000;padding:12px 16px;text-decoration:none;display:block}.logged-in__menu a:hover{background-color:#f1f1f1}@media (min-width: 992px){.logged-in__menu{display:none;background:#fff;border:solid 2px rgb(229.5,229.5,229.5);border-radius:2%;width:264px;position:absolute;right:0}}.logged-in__pane{display:none;position:fixed;top:0;right:0;width:260px;height:30px;padding-top:30px}@media (min-width: 992px){.logged-in__pane{top:5px;background:transparent;position:relative;display:block;width:auto}}@media (min-width: 1200px){.logged-in__pane{top:0}}.logged-in__avatar{margin:40px auto 8px;border-radius:50%;width:90px;height:90px;line-height:90px;background-color:#f9f9f9;font-family:Open Sans,Arial,Helvetica,"sans-serif";font-weight:600;text-align:center}@media (min-width: 992px){.logged-in__avatar{width:40px;height:40px;line-height:40px;position:absolute;top:2px;left:5px;margin:0}}@media (min-width: 1200px){.logged-in__avatar{width:48px;height:48px;line-height:48px;position:absolute;top:7px;left:5px;margin:0}}.logged-in__avatar-mobile{margin:5px 10px;border-radius:50%;width:30px;height:30px;line-height:30px;font-size:10.5px;background-color:#f9f9f9;font-family:Open Sans,Arial,Helvetica,"sans-serif";font-weight:600;text-align:center}@media (min-width: 992px){.logged-in__avatar-mobile{display:none}}.logged-in__user-details{margin:16px 10px}@media (min-width: 992px){.logged-in__user-details{margin:0;padding:8px 32px 0 58px}}@media (min-width: 1200px){.logged-in__user-details{margin:0;padding:15px 32px 0 58px}}.logged-in__name-details{height:20px;font-family:Open Sans,Arial,Helvetica,"sans-serif";font-size:16px;font-weight:600;line-height:1.12;text-align:center;color:#000;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@media (min-width: 992px){.logged-in__name-details{text-align:left;margin-top:-30px}}.logged-in__membership{height:18px;font-family:Open Sans,Arial,Helvetica,"sans-serif";font-size:12px;text-align:center}@media (min-width: 992px){.logged-in__membership{text-align:left}}.logged-in__show{display:block} 791`],encapsulation:2});let e=t;return e})(),ase=(()=>{let t=class t{constructor(n,o,r){this.http=n,this.router=o,this.config=r,this.baseUrl="/content/global-search?keyword=",this.perPage=20,this.onSubmitSearch=new Ze(null)}search(n){return this.http.get(this.config.environment.API_URL+this.baseUrl+n+"&size=5&from=0&loadRef=0",this.createHeaders()).pipe(J(o=>o.results.map(r=>({label:r.title,id:r.link,data:r}))),he(this.handleError))}onSubmit(n){n?.term===null&&(n.term=""),this.onSubmitSearch.next(n),n.term=n.term.replace(/[()]/g,o=>
791"%"+o.charCodeAt(0).toString(16)),window.location.href=encodeURI(`${this.config.environment.BASE_URL}/search/${n.term}`)}onSubmitKeyWordSearch(n,o,r){this.onSubmitSearch.next(r),this.perPage=n;let a=0;a=(o-1)*this.perPage,r&&(this.termSearched=r);let s=encodeURI(this.config.environment.API_URL+this.baseUrl+this.termSearched+"&size="+this.perPage+"&from="+a+"&loadRef=0");return this.http.get(s,this.createHeaders())}createHeaders(){return{headers:new bt({"Content-Type":"application/json"})}}handleError(n){let o=n.message?n.message:n.toString();return jt(o)}};t.\u0275fac=function(o){return new(o||t)(Y(lt),Y(gi),Y("fabricServicesConfig"))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),sse=(()=>{let t=class t{constructor(n,o,r,a){this.headerSearchService=n,this.location=o,this.renderer=a,this.isOpen=!0,this.searchIcon={colour:li.BLACK,iconName:Zi.search},this.iconSize=_a.MEDIUM,this.isOpenChange=new L,this.isBrowser=Ct(r)}showSearch(){this.isOpenChange.emit(!0),this.renderer.removeClass(document.body,"search-closed"),this.renderer.addClass(document.body,"search-open"),this.isOpen=!0,document.querySelectorAll(".site-search input")[0].focus()}close(){this.isOpenChange.emit(!1),this.isOpen=!1,setTimeout(()=>{this.isOpen===!1&&this.renderer.addClass(document.body,"search-closed")},300)}};t.\u0275fac=function(o){return new(o||t)(O(ase),O(wv),O(gt),O(Rn))},t.\u0275cmp=U({type:t,selectors:[["fab-site-search"]],inputs:{isOpen:"isOpen",content:"content"},outputs:{isOpenChange:"isOpenChange"},standalone:!1,decls:1,vars:1,consts:[["FabAC",""],[1,"site-search"],[1,"search__container"],["placeHolderText","Find qualifications, news, study materials...",3,"service"],[1,"suggestion__header"],[1,"suggestion__option"],[1,"search__container--btns"],[3,"click"],[1,"search-icon","icon",3,"content","size"],[1,"suggestion__option",3,"mousedown"],[3,"innerHTML"]],template:function(o,r){o&1&&y(0,DX,12,7,"div",1),o&2&&w(r.location.path().includes("/search")?-1:0)},dependencies:[Zn,Rre,Vs],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}body.search-open .header__navbar-navigation li:nth-child(1){-webkit-animation:fadeOut .1s ease-out forwards;animation:fadeOut .1s ease-out forwards}body.search-open .header__navbar-navigation li:nth-child(2){-webkit-animation:fadeOut .15s ease-out forwards;animation:fadeOut .15s ease-out forwards}body.search-open .header__navbar-navigation li:nth-child(3){-webkit-animation:fadeOut .2s ease-out forwards;animation:fadeOut .2s ease-out forwards}body.search-open .header__navbar-navigation li:nth-child(4){-webkit-animation:fadeOut .25s ease-out forwards;animation:fadeOut .25s ease-out forwards}body.search-open .header__navbar-navigation li:nth-child(5){-webkit-animation:fadeOut .3s ease-out forwards;animation:fadeOut .3s ease-out forwards}body.search-open .header__navbar-navigation li:nth-child(6){-webkit-animation:fadeOut .35s ease-out forwards;animation:fadeOut .35s ease-out forwards}body.search-open.search-closed .header__navbar-navigation li:nth-child(6){-webkit-animation:fadeIn .1s ease-in forwards;animation:fadeIn .1s ease-in forwards}body.search-open.search-closed .header__navbar-navigation li:nth-child(5){-webkit-animation:fadeIn .2s ease-in forwards;animation:fadeIn .2s ease-in forwards}body.search-open.search-closed .header__navbar-navigation li:nth-child(4){-webkit-animation:fadeIn .3s ease-in forwards;animation:fadeIn .3s ease-in forwards}body.search-open.search-closed .header__navbar-navigation li:nth-child(3){-webkit-animation:fadeIn .4s ease-in forwards;animation:fadeIn .4s ease-in forwards}body.search-open.search-closed .header__navbar-navigation li:nth-child(2){-webkit-animation:fadeIn .5s ease-in forwards;animation:fadeIn .5s ease-in forwards}body.search-open.search-closed .header__navbar-navigation li:nth-child(1){-webkit-animation:fadeIn .6s ease-in forwards;animation:fadeIn .6s ease-in forwards}.site-search{display:flex;justify-content:flex-end}.search__container{opacity:0;width:10px;-moz-transform:scale(1);-o-transform:scale(1);-webkit-transform:scale(1);transform:scale(1)}@media (min-width: 992px){.search__container{right:0;top:0;line-height:48px}.search__container a{top:11px}}.search__container{transition:all 1.3s ease}@media (min-width: 992px){.search__container{margin-top:0}}.search__container--btns{width:32px;transition-delay:1.3s;transition-property:opacity;transition-property:visibility;opacity:1}.search__container--btns.hide{visibility:hidden;transition:all .5s ease;width:0;opacity:0}
791.search__container.open{visibility:visible;opacity:1;width:100%;-moz-transform:scale(1);-o-transform:scale(1);-webkit-transform:scale(1);transform:scale(1)}@media (min-width: 992px){.search__container.open{width:290px}}@media (min-width: 1200px){.search__container.open{width:645px}} 792`],encapsulation:2});let e=t;return e})(),lse=(()=>{let t=class t{constructor(n){this.config=n,this.baseUrl="",this.links=[{type:"href",url:"https://store.aat.org.uk/",label:"AAT Store",openInNewTab:!0},{type:"href",url:"https://jobs.aat.org.uk/",label:"Careers Hub",openInNewTab:!0},{type:"href",url:`${this.baseUrl}/training-providers/search`,label:"Find a training provider"},{type:"href",url:`${this.baseUrl}/assessment-venues/search`,label:"Find an assessment venue"},{type:"href",url:`${this.baseUrl}/find-an-accountant-or-bookkeeper`,label:"Find an accountant or bookkeeper"},{type:"href",url:`${this.baseUrl}/qualifications-and-courses/fees-funding`,label:"Fees and funding"}],this.baseUrl=n.environment.BASE_URL}};t.\u0275fac=function(o){return new(o||t)(O("fabricServicesConfig"))},t.\u0275cmp=U({type:t,selectors:[["fab-quick-links-bar"]],decls:11,vars:0,consts:[["aria-label","Quick links",1,"quick-links"],[1,"quick-links__list"],[1,"quick-links__list-item-wrapper"],[1,"quick-links__title","quick-links__item"],[1,"quick-links__hint"],["src","/assets/icons/misc/arrow-left-short.svg","alt","Swipe left",1,"quick-links__hint__icon"],[1,"quick-links__item",3,"href","openInNewTab"],[1,"quick-links__item",3,"routerLink"]],template:function(o,r){o&1&&(p(0,"nav",0)(1,"ul",1)(2,"li",2)(3,"h5",3),C(4,"Quick Links"),u()(),X(5,FX,3,2,"li",2,I0),u(),p(7,"div",4),x(8,"img",5),p(9,"span"),C(10," swipe for more "),u()()()),o&2&&(d(5),ee(r.links))},dependencies:[tt,br],styles:['[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}@font-face{font-family:icomoon;src:url(/assets/icons/icomoon/icomoon.eot) format("embedded-opentype"),url(/assets/icons/icomoon/icomoon.ttf) format("truetype"),url(/assets/icons/icomoon/icomoon.woff) format("woff"),url(/assets/icons/icomoon/icomoon.svg) format("svg");font-weight:400;font-style:normal;font-display:block}[class^=icon-][_ngcontent-%COMP%], [class*=" icon-"][_ngcontent-%COMP%]{font-family:icomoon!important;speak:never;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-tiktok[_ngcontent-%COMP%]:before{content:"\\e943"}.icon-envelope-open-text-solid[_ngcontent-%COMP%]:before{content:"\\e93f"}.icon-aat-comment[_ngcontent-%COMP%]:before{content:"\\e901"}.icon-aat-discussion-forums[_ngcontent-%COMP%]:before{content:"\\e902"}.icon-arrow-action[_ngcontent-%COMP%]:before{content:"\\e903"}.icon-arrow-double-left[_ngcontent-%COMP%]:before{content:"\\e904"}.icon-arrow-double-right[_ngcontent-%COMP%]:before{content:"\\e905"}.icon-call[_ngcontent-%COMP%]:before{content:"\\e90b"}.icon-copy-url[_ngcontent-%COMP%]:before{content:"\\e90c"}.icon-download[_ngcontent-%COMP%]:before{content:"\\e90f"}.icon-facebook[_ngcontent-%COMP%]:before{content:"\\e912"}.icon-filters[_ngcontent-%COMP%]:before{content:"\\e914"}.icon-google-plus[_ngcontent-%COMP%]:before{content:"\\e915"}.icon-home[_ngcontent-%COMP%]:before{content:"\\e916"}.icon-instagram[_ngcontent-%COMP%]:before{content:"\\e918"}.icon-knowledge-hub[_ngcontent-%COMP%]:before{content:"\\e919"}.icon-link[_ngcontent-%COMP%]:before{content:"\\e91a"}.icon-linkedin[_ngcontent-%COMP%]:before{content:"\\e91b"}.icon-list[_ngcontent-%COMP%]:before{content:"\\e91c"}
792.icon-medium[_ngcontent-%COMP%]:before{content:"\\e91e"}.icon-menu-hamburger[_ngcontent-%COMP%]:before{content:"\\e91f"}.icon-menu-secondary[_ngcontent-%COMP%]:before{content:"\\e920"}.icon-messenger[_ngcontent-%COMP%]:before{content:"\\e921"}.icon-minus-large[_ngcontent-%COMP%]:before{content:"\\e922"}.icon-my-career[_ngcontent-%COMP%]:before{content:"\\e924"}.icon-my-membership[_ngcontent-%COMP%]:before{content:"\\e925"}.icon-news-events[_ngcontent-%COMP%]:before{content:"\\e926"}.icon-pintrest[_ngcontent-%COMP%]:before{content:"\\e927"}.icon-print[_ngcontent-%COMP%]:before{content:"\\e92b"}.icon-professional-zone[_ngcontent-%COMP%]:before{content:"\\e92c"}.icon-status[_ngcontent-%COMP%]:before{content:"\\e92e"}.icon-support-resources[_ngcontent-%COMP%]:before{content:"\\e930"}.icon-thumbs-down[_ngcontent-%COMP%]:before{content:"\\e931"}.icon-thumbs-up[_ngcontent-%COMP%]:before{content:"\\e932"}.icon-tile[_ngcontent-%COMP%]:before{content:"\\e933"}.icon-training-assessment[_ngcontent-%COMP%]:before{content:"\\e934"}.icon-tumblr[_ngcontent-%COMP%]:before{content:"\\e935"}.icon-twitter[_ngcontent-%COMP%]:before{content:"\\e936"}.icon-visibility-hide[_ngcontent-%COMP%]:before{content:"\\e937"}.icon-visibility-show[_ngcontent-%COMP%]:before{content:"\\e938"}.icon-vk[_ngcontent-%COMP%]:before{content:"\\e939"}.icon-warning[_ngcontent-%COMP%]:before{content:"\\e93a"}.icon-weibo[_ngcontent-%COMP%]:before{content:"\\e93c"}.icon-whatsapp[_ngcontent-%COMP%]:before{content:"\\e93d"}.icon-youtube[_ngcontent-%COMP%]:before{content:"\\e93e"}.icon-x[_ngcontent-%COMP%]:before{content:"\\e952"}.icon-loop2[_ngcontent-%COMP%]:before{content:"\\ea2e"}.icon-computer[_ngcontent-%COMP%]:before{content:"\\e900"}.icon-achievement[_ngcontent-%COMP%]:before{content:"\\e951"}.icon-audio[_ngcontent-%COMP%]:before{content:"\\e950"}.icon-building[_ngcontent-%COMP%]:before{content:"\\e94f"}.icon-circle[_ngcontent-%COMP%]:before{content:"\\e92a"}.icon-compare[_ngcontent-%COMP%]:before{content:"\\e923"}.icon-laptop-tick[_ngcontent-%COMP%]:before{content:"\\e92f"}.icon-document[_ngcontent-%COMP%]:before{content:"\\e93b"}.icon-finance[_ngcontent-%COMP%]:before{content:"\\e94d"}.icon-global[_ngcontent-%COMP%]:before{content:"\\e941"}.icon-website[_ngcontent-%COMP%]:before{content:"\\e941"}.icon-growth[_ngcontent-%COMP%]:before{content:"\\e942"}.icon-heart[_ngcontent-%COMP%]:before{content:"\\e944"}.icon-flag[_ngcontent-%COMP%]:before{content:"\\e945"}.icon-padlock[_ngcontent-%COMP%]:before{content:"\\e946"}.icon-person[_ngcontent-%COMP%]:before{content:"\\e947"}.icon-phone[_ngcontent-%COMP%]:before{content:"\\e948"}.icon-globe-arrows[_ngcontent-%COMP%]:before{content:"\\e949"}.icon-trash[_ngcontent-%COMP%]:before{content:"\\e94a"}.icon-wifi[_ngcontent-%COMP%]:before{content:"\\e94b"}.icon-search[_ngcontent-%COMP%]:before{content:"\\e92d"}.icon-play-large[_ngcontent-%COMP%]:before{content:"\\e928"}.icon-favourite[_ngcontent-%COMP%]:before{content:"\\e913"}.icon-star[_ngcontent-%COMP%]:before{content:"\\e913"}.icon-info[_ngcontent-%COMP%]:before{content:"\\e917"}.icon-checkmark[_ngcontent-%COMP%]:before{content:"\\ea10"}.icon-success[_ngcontent-%COMP%]:before{content:"\\ea10"}.icon-cross[_ngcontent-%COMP%]:before{content:"\\e90e"}.icon-cross-small[_ngcontent-%COMP%]:before{content:"\\e90d"}.icon-arrow-up[_ngcontent-%COMP%]:before{content:"\\e909"}.icon-arrow-down[_ngcontent-%COMP%]:before{content:"\\e906"}.icon-arrow-left[_ngcontent-%COMP%]:before{content:"\\e907"}.icon-arrow-right[_ngcontent-%COMP%]:before{content:"\\e908"}.icon-plus[_ngcontent-%COMP%]:before{content:"\\e929"}.icon-plus-large[_ngcontent-%COMP%]:before{content:"\\e929"}.icon-error[_ngcontent-%COMP%]:before{content:"\\e911"}.icon-restricted[_ngcontent-%COMP%]:before{content:"\\e911"}.icon-minus[_ngcontent-%COMP%]:before{content:"\\e911"}.icon-clock[_ngcontent-%COMP%]:before{content:"\\e94e"}.icon-calendar[_ngcontent-%COMP%]:before{content:"\\e90a"}.icon-email[_ngcontent-%COMP%]:before{content:"\\e910"}.icon-cart[_ngcontent-%COMP%]:before{content:"\\e940"}.icon-basket[_ngcontent-%COMP%]:before{content:"\\e94c"}.icon-location[_ngcontent-%COMP%]:before{content:"\\e91d"}.quick-links[_ngcontent-%COMP%]{position:relative;font-family:Inter,"system-ui",-apple-system,"sans-serif";--padding: 7px 5px 11px;background-color:#0a5c50;padding:var(--padding)}.quick-links__list[_ngcontent-%COMP%]{overflow-x:auto;display:flex;flex-direction:row;-webkit-overflow-scrolling:touch;scrollbar-width:none;column-gap:24px}.quick-links__list-item-wrapper[_ngcontent-%COMP%]{margin:0;flex:0 1 max-content}.quick-links__list-item-wrapper[_ngcontent-%COMP%]:has(.quick-links__title){display:none}.quick-links__item[_ngcontent-%COMP%]{display:inline-block;padding:var(--padding);border-radius:6px;color:#fff;text-decoration:none;font-weight:400;font-size:14px;line-height:14px;white-space:nowrap;transition:none}.quick-links__item[_ngcontent-%COMP%]:not(.quick-links__title):hover{text-decoration:underline}.quick-links__title[_ngcontent-%COMP%]{font-family:Open Sans,Arial,Helvetica,"sans-serif";font-size:14px;font-weight:600;text-transform:uppercase;white-space:nowrap}.quick-links__title[_ngcontent-%COMP%]:hover{background-color:none}.quick-links[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.quick-links__hint[_ngcontent-%COMP%]{display:flex;align-items:center;gap:7px;position:absolute;right:10.5px;bottom:5px;font-size:11px;
792font-family:acumin-pro-wide,Arial;font-weight:lighter;color:#94ec94}.quick-links__hint__icon[_ngcontent-%COMP%]{padding-top:3px;width:11px;height:11px}@media (min-width: 992px){.quick-links[_ngcontent-%COMP%]{--padding: 7px 5px}.quick-links__list[_ngcontent-%COMP%]{column-gap:0;justify-content:space-between}.quick-links__hint[_ngcontent-%COMP%]{display:none}}@media (min-width: 1200px){.quick-links__list[_ngcontent-%COMP%]{column-gap:16px;justify-content:flex-start}.quick-links__list-item-wrapper[_ngcontent-%COMP%]:has(.quick-links__title){display:inline-block}}']});let e=t;return e})(),SE=(()=>{let t=class t{constructor(n){this.cmsContentService=n}getHeaderContent(){return this.cmsContentService.cmsGetMenu("prospects-meganav").pipe(J(n=>n.hits[0].links))}};t.\u0275fac=function(o){return new(o||t)(Y(ya))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),cse=(()=>{let t=class t{constructor(n){this.headerService=n,this.subHeader$=this.headerService.activeSubHeader$,this.subHeaderLinks$=this.headerService.activeSubHeader$.pipe(J(o=>o?.links)),this.activeSubSubHeader$=this.headerService.activeSubSubHeader$,this.chevron={colour:li.GREEN,iconName:Zi.arrow},this.iconSize=_a.SMALL}setLastSubHoveredHeader(n){this.unsetLastHoveredHeader(),this.activeSubHeaderSubscription$=new Ze(n).pipe(Ho(300)).subscribe(o=>{this.headerService.setSubHeaderActive(o)})}setSubSubHeader(n){this.headerService.setSubSubHeaderActive(n)}unsetLastHoveredHeader(){this.activeSubHeaderSubscription$?.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)(O(js))},t.\u0275cmp=U({type:t,selectors:[["app-header-desktop-dropdown"]],inputs:{headerData:"headerData"},standalone:!1,decls:9,vars:7,consts:[[1,"header-desktop-dropdown"],[1,"header-desktop-dropdown__entries","border-right",3,"mouseleave"],[1,"header-desktop-dropdown__links",3,"href","openInNewTab","ngClass"],[1,"header-desktop-dropdown__entries",3,"ngClass"],[1,"header-desktop-dropdown__links",3,"mouseenter","href","openInNewTab","ngClass"],[1,"header-desktop-dropdown__links__icon"],[3,"content","size"]],template:function(o,r){if(o&1&&(p(0,"div",0)(1,"div",1),T("mouseleave",function(){return r.unsetLastHoveredHeader()}),X(2,LX,5,9,"a",2,se),u(),p(4,"div",3),N(5,"async"),X(6,NX,3,8,"a",2,se),N(8,"async"),u()()),o&2){let a;d(2),ee(r.headerData),d(2),v("ngClass",z(5,OX,((a=G(5,1,r.subHeader$))==null||a.links==null?null:a.links.length)>0)),d(2),ee(G(8,3,r.subHeaderLinks$))}},dependencies:[Ce,Zn,br,zi],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.header-desktop-dropdown[_ngcontent-%COMP%]{transition:all .3s ease-in-out;white-space:normal;display:flex;flex-direction:row;height:100%}.header-desktop-dropdown__entries[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:20vw;overflow-y:auto}.header-desktop-dropdown__links[_ngcontent-%COMP%]{margin:5px 0}.header-desktop-dropdown__links__icon[_ngcontent-%COMP%]{height:20px;width:20px}.header-desktop-dropdown[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#000;font-weight:100;padding:5px 10px;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.header-desktop-dropdown[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{background:#f8f8f8;padding-left:13px;padding-right:5px;border-left:3px solid #01ab4e;transition:all .1s ease-in-out}.header-desktop-dropdown[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}.border-right[_ngcontent-%COMP%]{border-right:2px solid lightgrey}"]});let e=t;return e})(),kE=(()=>{let t=class t{transform(n,o,r){return n&&o&&(r?n.sort((a,s)=>a[o]<s[o]?-1:a[o]>s[o]?1:0):n.sort((a,s)=>a[o]<s[o]?1:a[o]>s[o]?-1:0)),n}};t.\u0275fac=function(o){return new(o||t)},t.\u0275pipe=et({name:"orderBy",type:t,pure:!0,standalone:!1});let e=t;return e})(),dse=(()=>{let t=class t{constructor(n,o){this.headerService=n,this.headerContentService=o,this.getHeaderContent$=this.headerContentService.getHeaderContent(),this.imgSrc$=this.headerService.currentImageSrc$,this.imgTitle$=this.headerService.currentImageTitle$,this.imgDescription$=this.headerService.currentImageDescription$,this.menuOpen$=this.headerService.menuOpen$,this.activeHeader$=this.headerService.activeHeader$,this.activeTitle$=this.headerService.activeTitle$}setLastHoveredHeader(n){this.activeHeaderSubscription$=new Ze(n).pipe(Ho(300)).subscribe(o=>{this.setHeader(o)})}setHeader(n){n?.title&&this.headerService.setTitle(n?.title),this.headerService.setHeaderActive(n,!0)}unsetLastHoveredHeader(){this.activeHeaderSubscription$?.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)(O(js),O(SE))},t.\u0275cmp=U({type:t,selectors:[["app-header-desktop"]],standalone:!1,decls:8,vars:9,consts:[[1,"header-desktop"],[1,"header-desktop__container"],[1,"header-desktop__options"],[1,"header-desktop__dropdown"],[1,"header-desktop__options",3,"mouseenter","mouseleave"],[1,"header-desktop__links",3,"href","openInNewTab","ngClass"],[1,"header-desktop__dropdown2"],[1,"header-desktop__subheader"],[3,"headerData"],[1,"header-desktop__image-container"],[3,"href","openInNewTab"],[1,"header-desktop__image-container--img",3,"src"],[3,"innerHTML"]],template:function(o,r){o&1&&(p(0,"div",0)(1,"div",1),X(2,zX,4,8,"div",2,se),N(4,"async"),N(5,"orderBy"),u(),y(6,HX,8,9,"div",3),N(7,"async"),u()),o&2&&(d(2),ee(xr(5,3,G(4,1,r.getHeaderContent$),"weight",!1)),d(4),w(G(7,7,r.menuOpen$)?6:-1))},dependencies:[Ce,br,cse,zi,kE],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.header-desktop[_ngcontent-%COMP%]{flex-direction:column}.header-desktop__container[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;white-space:nowrap}.header-desktop__dropdown[_ngcontent-%COMP%]{width:0}.header-desktop__dropdown2[_ngcontent-%COMP%]{top:0;display:flex;flex-direction:row;background-color:#fff;margin-top:25px;position:relative;float:left;height:70vh;left:0;overflow-x:hidden;transition:all 2s ease-in-out}.header-desktop__subheader[_ngcontent-%COMP%]{width:21vw;white-space:normal;margin-left:4vw;border-right:2px solid lightgrey}.header-desktop__options[_ngcontent-%COMP%]{margin:0 10px;min-height:48px}.header-desktop__options[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;color:#000}.header-desktop__options[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{color:#008048;font-weight:600;transition:all .2s ease-in-out;border-bottom:4px solid #008048;text-decoration:none}.header-desktop__image-container[_ngcontent-%COMP%]{position:fixed;margin-left:70vw;height:100%;width:20vw;white-space:normal}.header-desktop__image-container--img[_ngcontent-%COMP%]{width:20vw}.header-desktop__links[_ngcontent-%COMP%]{height:100%;display:flex;margin-top:5px;margin-bottom:5px;align-items:center}"]});let e=t;return e})(),use=(()=>{let t=class t{rotate(n,o){this.chevronState[n][o]=this.chevronState[n][o]==="rotated"?"default":"rotated"}constructor(n,o,r){this.headerService=n,this.layoutSetupService=o,this.headerContentService=r,this.getHeaderContent$=this.headerContentService.getHeaderContent(),this.menuOpen$=this.headerService.menuOpen$,this.activeHeader$=this.headerService.activeHeader$,this.activeHeaderLinks$=this.activeHeader$.pipe(J(a=>a?.links)),this.activeSubHeader$=this.headerService.activeSubHeader$,this.activeSubHeaderLinks$=this.headerService.activeSubHeader$.pipe(J(a=>a?.links)),this.chevronState={header:{},subHeader:{}},this.chevron={colour:li.GREEN,iconName:Zi.arrow},this.iconSize=_a.SMALL}headerClicked(n){this.activeHeader$.pipe(ot(1)).subscribe(o=>{let r=n===o?void 0:n;this.headerService.setHeaderActive(r,!1)})}subHeaderClicked(n){this.activeSubHeader$.pipe(ot(1)).subscribe(o=>{let r=n===o?void 0:n;this.headerService.setSubHeaderActive(r)})}};t.\u0275fac=function(o){return new(o||t)(O(js),O(Vp),O(SE))},t.\u0275cmp=U({type:t,selectors:[["app-header-mobile"]],standalone:!1,decls:5,vars:6,consts:[[1,"header-mobile__container"],[1,"header-mobile__options","lightest-grey"],[1,"header-mobile__options","lightest-grey",3,"click"],[1,"header-mobile--container__link"],[1,"",3,"click","href","openInNewTab"],[1,"header-mobile--container__link__icon"],[3,"content","size"],[1,"header-mobile--container","lighter-grey"],[1,"header-mobile__options"],[1,"header-mobile__options",3,"click"],[3,"click","href","openInNewTab"],[1,"header-mobile--container","light-grey"]],template:function(o,r){o&1&&(p(0,"div",0),X(1,qX,8,9,"div",1,se),N(3,"async"),N(4,"orderBy"),u()),o&2&&(d(),ee(xr(4,2,G(3,0,r.getHeaderContent$),"weight",!1))
792)},dependencies:[Zn,br,zi,kE],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.header-mobile--container[_ngcontent-%COMP%]{margin-left:15px;display:flex;flex-direction:column}.header-mobile--container__link[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;margin-right:5vw;margin-left:5vw;padding-top:10px;padding-bottom:10px;width:95%;align-items:center;min-height:35px}.header-mobile--container__link__icon[_ngcontent-%COMP%]{height:20px;width:20px}.light-grey[_ngcontent-%COMP%]{width:70vw;margin-left:5vw;padding-right:5vw;background-color:#e6e6e6}.lighter-grey[_ngcontent-%COMP%]{width:80vw;margin-left:5vw;padding-right:5vw;background-color:#f9f9f9}.lightest-grey[_ngcontent-%COMP%]{width:90vw;background-color:#fff}"],data:{animation:[jo("rotatedState",[co("default",Pt({transform:"rotate(0)"})),co("rotated",Pt({transform:"rotate(90deg)"})),fi("rotated => default",mi("200ms ease-out")),fi("default => rotated",mi("200ms ease-in"))])]}});let e=t;return e})(),pse=(()=>{let t=class t{constructor(n,o){this._context={let:null},n.createEmbeddedView(o,this._context)}set let(n){this._context.let=n}};t.\u0275fac=function(o){return new(o||t)(O(Ma),O(sh))},t.\u0275dir=di({type:t,selectors:[["","let",""]],inputs:{let:"let"},standalone:!1});let e=t;return e})(),hse=(()=>{let t=class t{onResize(){this.showLargeHeader=window.innerWidth>=1200}clickout(n){!this.showLargeHeader&&!this.header?.nativeElement.contains(n.target)&&this.headerService.setHeaderActive(void 0,!0)}ngOnDestroy(){this.clickout=()=>{},this.onResize=()=>{}}constructor(n,o,r,a,s,l,c){this.headerService=n,this.authService=o,this.s3GetterService=r,this.basketService=a,this.routeContext=s,this._document=l,this._platformId=c,this.header=null,this.menuOpen$=this.headerService.menuOpen$,this.isUserAuth$=this.authService.authenticationChanged$,this.logoUrl=this.s3GetterService.getUrl({objName:Sc.aatLogo}),this.searchContent={siteBaseUrl:""},this.enableBasket=!0,this.registerButton={text:"Register",action:{type:"link",link:"/registration/register-with-aat",useRouterLink:!1},type:"secondary",aria:"Register"},this.loginButton={text:"Login",action:{type:"link",link:"/myaat/login",useRouterLink:!1},type:"primary",aria:"Login"},this.loggedInUserData={menuItems:[{title:"Profile and account",link:"/myaat/dashboards"},{title:"Edit my details",link:"/my-account/edit-details"},{title:"Pay outstanding fees",link:"/my-account/pay-fees"},{title:"My payment history",link:"/my-account/payment-history"}]},this.showLargeHeader=!0,this.showMobileHeader=!1,this.isClient=!1,this.basketCountChanged$=this.basketService.basketCountChanged$,this.hideSearch=It(()=>{let{data:h}=this.routeContext.route();return!!h?.hideSearch})}ngAfterViewInit(){Ct(this._platformId)&&(this.showLargeHeader=window.innerWidth>=1200,this.isClient=!0)}toggleMobileHeader(){this.menuOpen$.pipe(ot(1)).subscribe(n=>{this.headerService.setMenuOpen(!n)})}hideHeader(){this.headerService.setHeaderActive(void 0,!0)}rightPaneIsActive(n){this.headerService.setRightPaneOpened(n)}searchOpenChange(n){this.enableBasket=!n,this.hideHeader()}navigateHome(){this._document.location.href="/"}};t.\u0275fac=function(o){return new(o||t)(O(js),O(st),O(kc),O(Bp),O(ose),O(ci),O(gt))},t.\u0275cmp=U({type:t,selectors:[["fab-header"]],viewQuery:function(o,r){if(o&1&&Ue(YX,5),o&2){let a;Me(a=Te())&&(r.header=a.first)}},hostBindings:function(o,r){o&1&&T("resize",function(){return r.onResize()},yr)("click",function(s){return r.clickout(s)},wr)},standalone:!1,decls:2,vars:3,consts:[["header",""],["logo",""],["desktop",""],["class","header",4,"let"],[1,"header"],[1,"header__container",3,"ngClass"],[1,"header-mobile__container",3,"ngClass"],[1,"header__container",3,"mouseleave","ngClass"],["title","AAT Home",1,"logo"],[1,"header__search",3,"no-auth"],[1,"header__basket-container","basket-container",3,"no-auth"],[1,"header__auth-btns"],[1,"header__logged-in"],[1,"header__header__logged-out"],["title","AAT Home",1,"logo",3,"click"],["alt","AAT Home","title","AAT Home",1,"header__logo",3,"src"],[1,"header__search"],[3,"isOpenChange","content"],[1,"header__basket-container","basket-container"],[3,"count"],[1,"header__buttons--register",3,"button"],[1,"header__buttons--login",3,"button"],[1,"logged-in-user",3,"rightPaneChange","content"],[1,"header-mobile__header-items"],[1,"header-mobile__search_and_hamburger"],[1,"header-mobile__search",3,"content","isOpen"],[1,"basket-container"],[1,"header-mobile__logged-in-user",3,"content"],[1,"header-mobile__toggle"],[1,"header-mobile__container-open",3,"hidden"],["alt","AAT Home","title","AAT Home",1,"header-mobile__logo",3,"src"],[1,"header-mobile__search",3,"isOpenChange","content","isOpen"],[1,"header-mobile__logged-in-user",3,"rightPaneChange","content"],[1,"header-mobile__toggle",3,"click"],[1,"hamburger",3,"ngClass"],[1,"header-mobile__component"],[1,"header-mobile__buttons"],[1,"header-mobile__buttons--register",3,"button"],[1,"header-mobile__buttons--login",3,"button"]],template:function(o,r){o&1&&(V(0,hee,6,5,"nav",3),N(1,"async")),o&2&&v("let",G(1,1,r.isUserAuth$))},dependencies:[Ce,rse,sse,Are,Ee,lse,dse,use,pse,zi],styles:['[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.header[_ngcontent-%COMP%]{max-height:180px}.header__container[_ngcontent-%COMP%]{display:grid;align-items:start;grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(1,1fr);grid-column-gap:0px;grid-row-gap:0px;background-color:#fff;padding-top:6px;padding-bottom:6px;border-bottom:2px solid #bfbfbf;visibility:hidden}.header__container__ready[_ngcontent-%COMP%]{visibility:visible}.header__buttons[_ngcontent-%COMP%]{height:50px;margin:2px 15px 2px 2px}.header__buttons--register[_ngcontent-%COMP%], .header__buttons--login[_ngcontent-%COMP%]{margin-left:10px}.header__dropdown[_ngcontent-%COMP%]{display:flex;flex-direction:column}.header__auth-btns[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;width:max-content;justify-self:end;margin-right:18px;grid-area:1/6/1/7}.header__header__logged-out[_ngcontent-%COMP%]{grid-area:2/1/2/7}.header__logo[_ngcontent-%COMP%]{grid-area:1/1/1/2;width:80px}.header__basket-container[_ngcontent-%COMP%]{margin-left:auto;grid-area:1/6/1/6}.header__basket-container.no-auth[_ngcontent-%COMP%]{grid-area:1/5/1/5}.header__basket-container[_ngcontent-%COMP%]{width:80px}.header__search[_ngcontent-%COMP%]{grid-area:1/4/1/6;max-height:48px}.header__search.no-auth[_ngcontent-%COMP%]{grid-area:1/4/1/5}.header__logged-in[_ngcontent-%COMP%]{grid-area:1/7/1/7;width:100%}.header__logged-in__logo[_ngcontent-%COMP%]{height:56px;width:80px}.header-mobile[_ngcontent-%COMP%]{width:100%}.header-mobile__logo[_ngcontent-%COMP%]{max-width:80px;height:56px}.header-mobile__container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;background-color:#fff;max-height:100vh;min-height:46px;padding-bottom:3px;border-bottom:2px solid #bfbfbf}.header-mobile__search_and_hamburger[_ngcontent-%COMP%]{display:flex;justify-content:end;flex-grow:1}.header-mobile__search_and_hamburger[_ngcontent-%COMP%] fab-site-search[_ngcontent-%COMP%]{width:70%}.header-mobile__header-items[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}
792.header-mobile__component[_ngcontent-%COMP%]{overflow:auto;max-height:75vh;display:flex}.header-mobile__buttons[_ngcontent-%COMP%]{margin:15px;row-gap:15px;column-gap:15px;background-color:#fff}@media (min-width: 576px){.header-mobile__buttons[_ngcontent-%COMP%]{flex-direction:row}}.header-mobile__buttons--register[_ngcontent-%COMP%], .header-mobile__buttons--login[_ngcontent-%COMP%]{margin:15px;width:90%}.header-mobile__toggle[_ngcontent-%COMP%]{height:56px;display:flex;flex-direction:column;float:right}.header-mobile__toggle[_ngcontent-%COMP%] fab-aat-icon[_ngcontent-%COMP%]{width:44px;height:44px}.header-mobile__menu-text[_ngcontent-%COMP%]{margin:-8px 0 0}label.hamburger[_ngcontent-%COMP%]{display:flex;cursor:pointer;margin-left:10px;font-size:2em;line-height:45px}@media (min-width: 992px){label.hamburger[_ngcontent-%COMP%]{margin-left:20px;line-height:55px}}@media (min-width: 1200px){label.hamburger[_ngcontent-%COMP%]{display:none}}.hamburger[_ngcontent-%COMP%]{order:3;margin-right:10px!important;display:flex;align-items:center;justify-content:center;padding:12px 10px 8px;flex-direction:column;z-index:99}.hamburger[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:28px;height:0px;border-top:2px solid #000;margin-bottom:.25rem}.hamburger[_ngcontent-%COMP%]:after{content:"menu";text-transform:capitalize;font-size:11px;font-weight:500;line-height:12px;margin-top:4px}.hamburger-active[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{transition:all ease .3s}.hamburger-active[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child{transform:rotate(45deg);top:4px;position:relative;width:22px}.hamburger-active[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2){display:none}.hamburger-active[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){transform:rotate(-45deg);top:-1px;position:relative;width:22px}.basket-container[_ngcontent-%COMP%]{height:fit-content;align-self:center;width:50px}.basket-container--right[_ngcontent-%COMP%]{display:flex;align-items:center}']});let e=t;return e})(),EE=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,At,cre]});let e=t;return e})(),ME=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,Rt,Vi,At,Cr,U0,Hs]});let e=t;return e})(),gse=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({providers:[js],imports:[ge,At,Cr,EE,ME,Lre,Ee]});let e=t;return e})(),Pwe=(()=>{let t=class t{constructor(){this.currentIndex=0,this._interval=5e3}ngOnInit(){this.slideConfig.slideInterval&&(this._interval=this.slideConfig.slideInterval),this._subscribeToInterval()}ngOnDestroy(){this._unsubscribeFromInterval()}goToPrevious(){let o=this.currentIndex===0?this.slideConfig.slides.length-1:this.currentIndex-1;this._resetInterval(),this.currentIndex=o}goToNext(){let o=this.currentIndex===this.slideConfig.slides.length-1?0:this.currentIndex+1;this._resetInterval(),this.currentIndex=o}getCurrentSlideUrl(){return`url('${this.slideConfig.slides[this.currentIndex].url}')`}_subscribeToInterval(){this._intervalSubscription=sv(this._interval).subscribe({next:()=>{this.goToNext()}})}_unsubscribeFromInterval(){this._intervalSubscription&&this._intervalSubscription.unsubscribe(),this._intervalSubscription=null}_resetInterval(){this._unsubscribeFromInterval(),this._subscribeToInterval()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-image-slider"]],inputs:{slideConfig:"slideConfig"},decls:7,vars:10,consts:[[1,"fab-image-slider"],[1,"fab-image-slider__slide-panel",3,"ngStyle","ngClass"],[3,"href"],[1,"fab-image-slider__countContainer"],[1,"fab-image-slider__count"],[1,"fab-image-slider__leftArrow",3,"click","ngClass"],[1,"fab-image-slider__rightArrow",3,"click","ngClass"],[1,"fab-image-slider__slide-panel__link",3,"ngClass"]],template:function(o,r){o&1&&(p(0,"div",0),y(1,fee,4,2),p(2,"div",1),y(3,vee,3,4,"a",2),u(),p(4,"div",3)(5,"p",4),C(6),u()()()),o&2&&(d(),w(r.slideConfig.displayNavigationArrows?1:-1),d(),v("ngStyle",z(6,gee,r.getCurrentSlideUrl()))("ngClass",z(8,mee,r.slideConfig.slides[r.currentIndex].linkUrl)),d(),w(r.slideConfig.slides[r.currentIndex].linkUrl?3:-1),d(3),Yt("",r.currentIndex+1," of ",r.slideConfig.slides.length))},dependencies:[ge,Ce,kr],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.fab-image-slider[_ngcontent-%COMP%]{position:relative;height:100%;display:flex;flex-direction:column}.fab-image-slider__slide-panel[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:3px 3px 0 0;background-size:cover;background-position:center;display:flex;align-items:center;justify-content:flex-start}.fab-image-slider__slide-panel__darken[_ngcontent-%COMP%]{background-color:#00000034;background-blend-mode:darken}.fab-image-slider__slide-panel[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .fab-image-slider__slide-panel__link[_ngcontent-%COMP%]{transition:ease-in .3s;margin-left:5%}.fab-image-slider__slide-panel[_ngcontent-%COMP%] h3--light[_ngcontent-%COMP%], .fab-image-slider__slide-panel__link--light[_ngcontent-%COMP%]{color:#fff}.fab-image-slider__slide-panel[_ngcontent-%COMP%] h3--dark[_ngcontent-%COMP%], .fab-image-slider__slide-panel__link--dark[_ngcontent-%COMP%]{color:#00ab4e}.fab-image-slider__rightArrow[_ngcontent-%COMP%]{position:absolute;top:45%;transform:translateY(-50%);right:32px;font-size:45px;z-index:1;cursor:pointer}.fab-image-slider__rightArrow--light[_ngcontent-%COMP%]{color:#fff}.fab-image-slider__rightArrow--dark[_ngcontent-%COMP%]{color:#000}.fab-image-slider__leftArrow[_ngcontent-%COMP%]{position:absolute;top:45%;transform:translateY(-50%);left:20px;font-size:45px;z-index:1;cursor:pointer}.fab-image-slider__leftArrow--light[_ngcontent-%COMP%]{color:#fff}.fab-image-slider__leftArrow--dark[_ngcontent-%COMP%]{color:#000}.fab-image-slider__countContainer[_ngcontent-%COMP%]{display:flex;justify-content:center;background:#000}.fab-image-slider__count[_ngcontent-%COMP%]{margin:5px;cursor:pointer;color:#fff}"]});let e=t;return e})(),PS="introVideo",Rwe=(()=>{let t=class t{constructor(){}ngOnInit(){this.hasSeenIntroVideo()||(this.introVideoModal.openModal(),localStorage.setItem(PS,JSON.stringify(!0)))}hasSeenIntroVideo(){return JSON.parse(localStorage.getItem(PS))}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-intro-video"]],viewQuery:function(o,r){if(o&1&&Ue(Dp,7),o&2){let a;Me(a=Te())&&(r.introVideoModal=a.first)}},inputs:{config:"config"},standalone:!1,decls:10,vars:4,consts:[[1,"intro-video"],[1,"modal__cta"],[3,"button"],[1,"modal__content"],[3,"config"]],template:function(o,r){o&1&&(p(0,"div",0)(1,"span"),C(2),u(),p(3,"fab-modal")(4,"span",1),x(5,"fab-button",2),u(),p(6,"div",3)(7,"h2"),C(8),u(),x(9,"fab-video",4),u()()()),o&2&&(d(2),R(r.config.barText),d(3),v("button",r.config.button),d(3),R(r.config.modalText),d(),v("config",r.config.video))},dependencies:[Ee,Bre,Dp],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.intro-video{background:#a0ebd7;text-align:center;padding:7px 15px;color:#000}.intro-video .modal__cta{margin:0 1rem}.intro-video .modal__content{padding:0 20px 20px;text-align:center}.intro-video .modal__content h2{margin-bottom:15px} 793`],encapsulation:2});let e=t;return e})(),Fwe=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,Ee,Vre,Up]});let e=t;return e})();var mse=(()=>{let t=class t{constructor(){}ngOnInit(){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-label"]],inputs:{content:"content"},standalone:!1,decls:2,vars:1,consts:[[1,"label"]],template:function(o,r){o&1&&(p(0,"span",0),C(1),u()),o&2&&(d(),R(r.content))},styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.label[_ngcontent-%COMP%]{display:inline;font-size:12px;font-weight:600;padding:2px 8px;border:1px solid #000000;border-radius:5px}"]});let e=t;return e})(),fse=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge]});let e=t;return e})(),Owe=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-link-group"]],inputs:{linkList:"linkList",title:"title",useRouterLink:"useRouterLink"},standalone:!1,decls:5,vars:1,consts:[[1,"fab-link-group"],[3,"innerHTML"],[1,"fab-link-group__button-container"],[1,"fab-link-group__button"],[3,"href","innerHTML"],[3,"routerLink","innerHTML"]],template:function(o,r){o&1&&(p(0,"section",0),y(1,Cee,1,1,"h2",1),p(2,"div",2),X(3,yee,3,2,"div",3,se),u()()),o&2&&(d(),w(r.title?1:-1),d(2),ee(r.linkList))},dependencies:[tt],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.fab-link-group__button-container{display:flex;flex-flow:wrap;margin:15px 0 0 -10px}.fab-link-group__button{padding-bottom:20px;padding-left:10px}.fab-link-group__button a{display:block;background:#f9f9f9;padding:3px 10px;color:#000;text-decoration:none} 794`],encapsulation:2});let e=t;return e})(),Awe=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,At]});let e=t;return e})(),TE=(()=>{let t=class t{constructor(n,o,r){this.http=n,this.config=o,this.hs=r}loadSuggestions(n){return this.http.get(`${this.config.environment.API_URL}/location/google-place/${n}`,{headers:this.hs.createHeaders()}).pipe(J(o=>o),he(this.hs.handleError))}currentFormattedLocation(n){return new RegExp(/[a-zA-Z]/).test(n)?n:"your current location"}};t.\u0275fac=function(o){return new(o||t)(Y(lt),Y("fabricServicesConfig"),Y(V0))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Lwe=(()=>{let t=class t{constructor(n,o){this._searchApiClientService=n,this.fb=o,this.showDistance=!0,this.locationChange=new L,this.maxDistanceChange=new L,this.UFO=we,this.THRESHOLD=3,this.form=this.fb.group({location:this.fb.nonNullable.control(""),maxDistance:this.fb.control({value:null,disabled:!0})}),this.suggestions=[],this.selected=!1,this.focus=!1,this.geoLocationEnabled=!1,this.isLocation=!0,this.distanceDropdown={placeholder:"Please select a radius...",options:[],group:"distances",label:"Distance (optional)",required:!1}}ngOnInit(){this.distanceDropdown.options=this.content.distances,this.content.location&&(this.form.patchValue({location:this.content.location},{emitEvent:!1}),this.selected=!0),this.content.maxDistance&&this.setDistanceFromValue(this.content.maxDistance)}reset(){this.form.reset(),this.selected=!1,this.distanceSelected=void 0}onFocus(){this.focus=!0,this.form.get("location").setErrors(null)}onBlur(){this.focus=!1,this.suggestions=[],!this.selected&&this.form.get("location")&&this.form.get("location").value&&this.form.get("location").value.length>0&&this.form.get("location")?.setErrors({selectedLocation:"Enter a valid location"})}locationSuggestions(n){let o=n.target;switch(n.key){case"ArrowUp":this.currentSuggestionIndex>0&&this.suggestions.length>0&&this.currentSuggestionIndex--;break;case"ArrowDown":this.currentSuggestionIndex<this.suggestions.length-1&&this.suggestions.length>0&&this.currentSuggestionIndex++;break;case"Enter":this.selectSuggestion(this.suggestions[this.currentSuggestionIndex]);break;case"Escape":this.suggestions=[];break;default:if(this.selected=!1,this.locationChange.emit(""),this.maxDistanceChange.emit(0),o.value.length<this.THRESHOLD||this.form.getError("location"))break;this.geoLocationError="",this._searchApiClientService.loadSuggestions(o.value).subscribe({next:r=>{this.suggestions=r||[],this.currentSuggestionIndex=0,r||(this.geoLocationError="Enter a valid location")},error:r=>{this.geoLocationError="Enter a valid location"}});break}}selectSuggestion(n){this.selected=!0,this.form.patchValue({location:n.description}),this.locationChange.emit(n.description),this.setDistanceFromValue(this.content.defaultDistance),this.onBlur()}selectDistance(n){n.length&&(this.form.patchValue({maxDistance:n[0].value}),this.maxDistanceChange.emit(n[0].value))}setDistanceFromValue(n){this.form.patchValue({maxDistance:n},{emitEvent:!1}),this.distanceSelected=this.content.distances.find(o=>o.value==n)}};t.\u0275fac=function(o){return new(o||t)(O(TE),O(nn))},t.\u0275cmp=U({type:t,selectors:[["fab-location-search-bar"]],inputs:{showDistance:"showDistance",content:"content"},outputs:{locationChange:"locationChange",maxDistanceChange:"maxDistanceChange"},standalone:!1,decls:10,vars:8,consts:[["searchTerm",""],[1,"fab-location-search-bar"],[3,"formGroup"],["for","fab-location-search-bar--id",1,"fab-location-search-bar__label"],["id","fab-location-search-bar--id","formControlName","location","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","fal
794se",1,"fab-location-search-bar__field",3,"placeholder"],[1,"fab-location-search-bar__suggestions"],[1,"fab-location-search-bar__errors"],[1,"fab-location-search-bar__error"],[1,"fab-location-search-bar__distance"],["id","fab-location-search-bar--id","formControlName","location","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"fab-location-search-bar__field",3,"keyup","blur","focus","placeholder"],[1,"fab-location-search-bar__suggestions--title"],[3,"selected"],[3,"mousedown"],[3,"outputReturnSelectedOptions","content","selectContent"]],template:function(o,r){if(o&1&&(p(0,"div",1)(1,"form",2),y(2,wee,2,1,"label",3),y(3,xee,2,1,"input",4),y(4,Eee,4,1,"div",5),p(5,"div",6),y(6,Mee,2,1,"p",7),y(7,Tee,2,0,"p",7),y(8,Iee,2,1,"p",7),u(),y(9,Dee,2,2,"div",8),u()()),o&2){let a;d(),v("formGroup",r.form),d(),w(r.content.label?2:-1),d(),w(r.isLocation?3:-1),d(),w(((a=r.form.get("location").value)==null?null:a.length)>=r.THRESHOLD&&r.suggestions&&r.suggestions.length?4:-1),d(2),w(r.form.get("location").getError("selectedLocation")?6:-1),d(),w(!r.form.get("location").pristine&&r.form.get("location").getError("required")?7:-1),d(),w(!r.form.get("location").pristine&&r.form.get("location").getError("pattern")?8:-1),d(),w(r.showDistance&&r.selected?9:-1)}},dependencies:[ho,Bi,Qe,ct,_t,ti,wa],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.fab-location-search-bar[_ngcontent-%COMP%]{position:relative;width:auto}.fab-location-search-bar__field[_ngcontent-%COMP%]{width:100%;border:1px solid rgb(238.425,238.425,238.425);padding:15px;box-sizing:border-box}.fab-location-search-bar__field[_ngcontent-%COMP%]:focus{outline:none;border:1px solid #fac05c;box-shadow:none}.fab-location-search-bar__label[_ngcontent-%COMP%]{font-weight:700}.fab-location-search-bar__distance[_ngcontent-%COMP%]{margin-top:25px}.fab-location-search-bar__error[_ngcontent-%COMP%]{color:#e22b25}.fab-location-search-bar__suggestions[_ngcontent-%COMP%]{border:1px solid rgb(238.425,238.425,238.425);border-bottom-width:2px;padding:15px 0;position:absolute;z-index:9;background:#fff;width:100%;box-sizing:border-box}.fab-location-search-bar__suggestions--title[_ngcontent-%COMP%]{display:block;padding:0 30px 15px}.fab-location-search-bar__suggestions[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{cursor:pointer;padding:15px 30px;transition:all .5s ease;color:#000;margin:0}.fab-location-search-bar__suggestions[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover, .fab-location-search-bar__suggestions[_ngcontent-%COMP%] li.selected[_ngcontent-%COMP%]{background:#eee}"]});let e=t;return e})(),Nwe=(()=>{let t=class t{static forRoot(){return{ngModule:t,providers:[TE]}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,Vi,Bs]});let e=t;return e})();var zwe=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,Bs]});let e=t;return e})();var vse=(()=>{let t=class t{constructor(){this.arrowIcon={colour:li.WHITE,iconName:Zi.arrow}}ngOnInit(){}ngOnChanges(){}closeBranches(){this.branchOpen={}}openBranch(n){this.branchOpen=n}toggleBranches(n,o){n.preventDefault(),o===this.branchOpen?this.closeBranches():this.openBranch(o)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-logged-in-nav-sub-list"]],inputs:{branch:"branch"},standalone:!1,features:[Ye],decls:4,vars:3,consts:[[1,"logged-in-nav__item__twig--link",3,"ngClass","href","openInNewTab"],[1,"logged-in-nav__item__twig--link",3,"ngClass","routerLink","openInNewTab"],[1,"logged-in-nav__item__twig"],[3,"click","content"],[1,"logged-in-nav__item__twig__item",3,"href","openInNewTab"],[1,"logged-in-nav__item__twig__item",3,"routerLink","openInNewTab"]],template:function(o,r){o&1&&(p(0,"div"),y(1,Pee,4,9,"a",0),y(2,Ree,4,10,"a",1),y(3,Lee,3,0,"div",2),u()),o&2&&(d(),w(r.branch.useRouterLink?-1:1),d(),w(r.branch.useRouterLink?2:-1),d(),w(r.branch&&r.branch.items&&r.branch.items.length>
7940&&r.branchOpen==r.branch?3:-1))},dependencies:[Ce,tt,Zn,br],styles:['[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.chevron[_ngcontent-%COMP%]{width:50px;height:40px;position:fixed;z-index:2000;justify-content:center;display:flex}.nav-control[_ngcontent-%COMP%]{width:26px;height:61px;top:0;left:234px;position:fixed;z-index:2000;transition:all .3s ease-in-out;cursor:pointer}.nav-control[_ngcontent-%COMP%]:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotate(45deg);transform-origin:center center;width:8px;height:8px;border:2px solid #fff;border-top:none;border-right:none;transition:all .3s ease-in-out}.nav-control--closed[_ngcontent-%COMP%]{left:75px}.nav-control--closed[_ngcontent-%COMP%]:before{border-color:#000;transform:translate(-50%,-50%) rotate(225deg)}.nav-tooltip[_ngcontent-%COMP%]{position:fixed;top:0;transform:translateY(-50%);padding:10px;display:inline-block;background-color:#000;border-radius:1px;z-index:9999}.nav-tooltip[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative;color:#fff;font-size:14px;line-height:1em;padding:0;margin:0;height:14px;display:block}.nav-tooltip[_ngcontent-%COMP%]:before{content:"";position:absolute;top:50%;left:0;transform-origin:center center;transform:translate(-3px,-50%) rotate(45deg);width:7px;height:7px;background-color:#000}.left-nav-hamburger[_ngcontent-%COMP%]{display:block;position:fixed;width:50px;height:50px;cursor:pointer;line-height:49px;color:#000;margin-left:10px;font-size:2em;z-index:1001}@media (min-width: 992px){.left-nav-hamburger[_ngcontent-%COMP%]{display:none}}.left-nav-main[_ngcontent-%COMP%]{display:none}@media (min-width: 992px){.left-nav-main[_ngcontent-%COMP%]{display:block;transition:all .3s ease-in-out}}.left-nav-main--opened[_ngcontent-%COMP%]{display:block;transition:all .3s ease-in-out} .logged-in-nav{overflow:visible;position:fixed;left:0;top:0;bottom:0;z-index:1001} .logged-in-nav__outer-container{height:100vh;overflow:auto;scrollbar-base-color:#31373e;scrollbar-face-color:#31373e;scrollbar-3dlight-color:#31373e;scrollbar-highlight-color:#31373e;scrollbar-track-color:#31373e;scrollbar-arrow-color:#31373e;scrollbar-shadow-color:#31373e;scrollbar-color:#31373e #31373e;scrollbar-width:none} .logged-in-nav__outer-container::-webkit-scrollbar{background-color:#31373e} .logged-in-nav__outer-container::-webkit-scrollbar-thumb{background-color:#31373e} .logged-in-nav__outer-container::-webkit-scrollbar-track{background-color:#31373e} .logged-in-nav__container{width:260px;background-color:#31373e;display:flex;flex-direction:column;position:relative} .logged-in-nav__container--main{min-height:calc(100vh - 60px);padding-top:60px;padding-bottom:50px} .logged-in-nav__container--top, .logged-in-nav__container--bottom{position:absolute;height:60px;left:0;z-index:9999} .logged-in-nav__container--top{top:0} .logged-in-nav__container--bottom{bottom:0} .logged-in-nav__container:before{content:"";width:68px;position:absolute;top:0;bottom:0;left:0;background-color:#1a2129;z-index:0} .logged-in-nav a{color:#fff;text-decoration:none;display:block;font-weight:100;box-sizing:content-box} .logged-in-nav__item{display:flex;z-index:1;overflow:visible} .logged-in-nav__item__icon{padding-top:16px;padding-left:11px;padding-right:21px;overflow:visible;background-color:#1a2129;text-decoration:none;width:35px;position:relative} .logged-in-nav__item__icona{background-color:#1a2129} .logged-in-nav__item__icon i{color:#fffc;font-size:24px;position:relative;transition:all .2s ease-in-out} .logged-in-nav__item__icon--logo{width:65px;margin-top:-10px;margin-left:-10px;padding-right:0} .logged-in-nav__item__label{color:#fff;width:100%} .logged-in-nav__item__label--link{color:#fff;font-weight:100} .logged-in-nav__item__label fab-aat-icon{display:none;position:absolute;top:50%;right:10px;transform:translateY(-50%) rotate(90deg);height:18px;width:18px} .logged-in-nav__item__label--nest-open fab-aat-icon{transform:translateY(-50%) rotate(-90deg)} .logged-in-nav__item__label a{opacity:.8;padding:14px 10px;position:relative} .logged-in-nav__item__label a:hover{opacity:1} .logged-in-nav__item__branch, .logged-in-nav__item__twig{padding-left:10px} .logged-in-nav__item__branch a:hover, .logged-in-nav__item__twig a:hover{background-color:#ffffff1a} .logged-in-nav__item--active .logged-in-nav__item__icon i{color:#fff} .logged-in-nav__item--active .logged-in-nav__item__icon i:after{height:48px} .logged-in-nav__item--bottom{position:absolute;bottom:0;left:0;width:100%;background-color:#31373e} .logged-in-nav__item--bottom a{padding-left:21px} .logged-in-nav a.logged-in-nav__item__label--nest-open, .logged-in-nav a.logged-in-nav__item__label--nest-closed{padding-right:40px} .logged-in-nav a.logged-in-nav__item__label--nest-open fab-aat-icon, .logged-in-nav a.logged-in-nav__item__label--nest-closed fab-aat-icon{display:block} .logged-in-nav--nav-closed .logged-in-nav__container{width:68px} .logged-in-nav--nav-closed .logged-in-nav__item__label{display:none}a.logged-in-nav__item__icon[_ngcontent-%COMP%]{background-color:#1a2129}.hamburger[_ngcontent-%COMP%]{position:fixed;order:3;margin-right:10px!important;display:flex;align-items:center;justify-content:center;padding:12px 10px 8px;flex-direction:column;z-index:1231}.hamburger[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:28px;height:0px;border-top:2px solid #000;margin-bottom:.25rem}.hamburger[_ngcontent-%COMP%]:after{content:"menu";text-transform:capitalize;font-size:11px;font-weight:500;line-height:12px;margin-top:4px}.hamburger-active[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{transition:all ease .3s}.hamburger-active[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child{transform:rotate(45deg);top:4px;position:relative;width:22px}.hamburger-active[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2){display:none}.hamburger-active[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){transform:rotate(-45deg);top:-1px;position:relative;width:22px}']});let e=t;return e})(),Cse=(()=>{let t=class t{constructor(){this.outputNavClosed=new L,this.isHovered=!1,this.arrowIcon={colour:li.WHITE,iconName:Zi.arrow},this.treeOpen={}}ngOnInit(){this.iconData={colour:li.GREY,iconName:this.tree.icon}}ngOnChanges(n){n.navClosed&&n.navClosed.previousValue===!1&&this.closeTrees()}closeTrees(){this.treeOpen={}}
794openTree(n){this.outputNavClosed.emit(!1),this.treeOpen=n}toggleTrees(n,o){n.preventDefault(),o===this.treeOpen?this.closeTrees():this.openTree(o)}setIconColour(){let n=this.isHovered?li.WHITE:li.GREY;this.icon.setColour(n)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-logged-in-nav-link"]],viewQuery:function(o,r){if(o&1&&Ue(Zn,5),o&2){let a;Me(a=Te())&&(r.icon=a.first)}},inputs:{tree:"tree",navClosed:"navClosed",openInNewTab:"openInNewTab"},outputs:{outputNavClosed:"outputNavClosed"},standalone:!1,features:[Ye],decls:7,vars:3,consts:[[1,"logged-in-nav__container",3,"mouseenter","mouseleave"],[1,"logged-in-nav__item__icon",3,"ngClass","routerLink","openInNewTab"],[1,"logged-in-nav__item__icon",3,"ngClass","href","openInNewTab"],[1,"logged-in-nav__item__label"],[1,"logged-in-nav__item__tree"],[1,"logged-in-nav__item__branch"],[1,"logged-in-nav__item__icon",3,"click","ngClass","routerLink","openInNewTab"],[3,"content"],[1,"logged-in-nav__item__icon",3,"click","ngClass","href","openInNewTab"],[1,"logged-in-nav__item__label--link",3,"ngClass","routerLink","openInNewTab"],[1,"logged-in-nav__item__label--link",3,"ngClass","href","openInNewTab"],[3,"click","content"],[1,"logged-in-nav__item__branch--link",3,"branch"]],template:function(o,r){o&1&&(p(0,"div",0),T("mouseenter",function(){return r.isHovered=!0,r.setIconColour()})("mouseleave",function(){return r.isHovered=!1,r.setIconColour()}),y(1,Nee,2,8,"a",1)(2,zee,2,6,"a",2),p(3,"div",3)(4,"div",4),y(5,Hee,2,1),y(6,Uee,3,0,"div",5),u()()()),o&2&&(d(),w(r.tree.useRouterLink?1:2),d(4),w(r.navClosed?-1:5),d(),w((r.tree.items==null?null:r.tree.items.length)>0&&r.treeOpen==r.tree?6:-1))},dependencies:[Ce,tt,Zn,br,vse],styles:['[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.logged-in-nav__container[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin:5px 0;min-height:50px}.logged-in-nav__container[_ngcontent-%COMP%]:after{content:"";position:absolute;transition:opacity .2s ease-in-out;top:0;bottom:0;width:4px;background-color:#00ab4e;opacity:0}.logged-in-nav__container[_ngcontent-%COMP%]:hover:after{opacity:1}.logged-in-nav__item__icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:0;width:90px}.logged-in-nav__item__icon[_ngcontent-%COMP%] fab-aat-icon[_ngcontent-%COMP%]{width:35px;height:35px}.logged-in-nav__item__label--link[_ngcontent-%COMP%]{color:#fff;font-weight:100}']});let e=t;return e})(),bse=(()=>{let t=class t{constructor(n){this.platformId=n,this.chevron={colour:li.GREEN,iconName:Zi.arrow},this.navIsOpened=new L,this.currentSection="home",this.hoveredSection="",this.tooltip=!1}onResize(){this.checkScreenSize(),this.setNavStatus(this.screensizeSetNav())}ngOnInit(){this.checkScreenSize(),this.setNavStatus(this.screensizeSetNav())}setNavStatus(n){this.navClosed=n,this.navIsOpened.emit(!this.navClosed)}checkScreenSize(){Ct(this.platformId)&&(this.screenWidth=window.innerWidth,this.isDevice=this.screenWidth<992)}screensizeSetNav(){return this.isDevice||this.navClosed}toggleNav(){this.setNavStatus(!this.navClosed)}outputSetHoveredSection(n,o,r){this.setTooltip(n,r),this.hoveredSection=o}outputUnsetHoveredSection(){this.setTooltip(event,!1),this.hoveredSection=""}outputNavClosed(){this.setNavStatus(!1)}setTooltip(n,o){if(this.tooltip={},o){let r=n.target;r&&(this.tooltip={title:o,left:r.offsetLeft+r.offsetWidth+10,top:r.offsetTop+r.offsetHeight/2})}}};t.\u0275fac=function(o){return new(o||t)(O(gt))},t.\u0275cmp=U({type:t,selectors:[["fab-logged-in-nav"]],hostBindings:function(o,r){o&1&&T("resize",function(){return r.onResize()},yr)},inputs:{content:"content"},outputs:{navIsOpened:"navIsOpened"},standalone:!1,decls:16,vars:16,consts:[[1,"dont-print"],[1,"dont-print",3,"ngClass"],[1,"nav-control",3,"click","ngClass"],[1,"nav-tooltip","dont-print",3,"left","top"],[1,"logged-in-nav","dont-print",3,"ngClass"],[1,"logged-in-nav__container","logged-in-nav__container--top","dont-print"],[1,"logged-in-nav__item","logged-in-nav__item--logo","dont-print"],[1,"logged-in-nav__item__icon","logged-in-nav__item__icon--logo",3,"href"],[1,"logged-in-nav__item__icon","logged-in-nav__item__icon--logo",3,"routerLink"],[1,"logged-in-nav__outer-container"],[1,"logged-in-nav__container","logged-in-nav__container--main"],[1,"logged-in-nav__item","logged-in-nav__item--link",3,"ngClass","tree","navClosed","openInNewTab"],[1,"logged-in-nav__container","logged-in-nav__container--bottom"],[1,"logged-in-nav__item","logged-in-nav__item--bottom"],[1,"dont-print",3,"click"],[1,"hamburger"],[1,"nav-tooltip","dont-print"],["alt","",3,"src"],[1,"logged-in-nav__item","logged-in-nav__item--link",3,"mouseenter","mouseleave","outputN
794avClosed","ngClass","tree","navClosed","openInNewTab"],[1,"logged-in-nav__item__icon",3,"href"],[1,"icon","icon-link"],[1,"logged-in-nav__item__label"],[3,"href"],[1,"logged-in-nav__item__icon",3,"routerLink"],[3,"routerLink"]],template:function(o,r){o&1&&(y(0,Yee,5,0,"div",0),p(1,"div",1)(2,"div",2),T("click",function(){return r.toggleNav()}),u(),y(3,Kee,3,5,"div",3),p(4,"div",4)(5,"div",5)(6,"div",6),y(7,Qee,2,4,"a",7),y(8,Jee,2,5,"a",8),u()(),p(9,"div",9)(10,"div",10),X(11,Zee,1,6,"fab-logged-in-nav-link",11,se),u()(),p(13,"div",12),y(14,Xee,6,5,"div",13),y(15,ete,6,7,"div",13),u()()()),o&2&&(w(r.navClosed&&r.isDevice?0:-1),d(),v("ngClass",Re(9,jee,r.navClosed,!r.navClosed)),d(),v("ngClass",z(12,Wee,r.navClosed)),d(),w(r.tooltip.title&&r.navClosed?3:-1),d(),v("ngClass",z(14,$ee,r.navClosed)),d(3),w(r.content.useRouterLink?-1:7),d(),w(r.content.useRouterLink?8:-1),d(3),ee(r.content==null?null:r.content.items),d(3),w(r.content.useRouterLink?-1:14),d(),w(r.content.useRouterLink?15:-1))},dependencies:[Ce,tt,br,Cse],styles:[tte]});let e=t;return e})(),_se=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,At,Cr]});let e=t;return e})(),ut=(function(e){return e[e.TrainingProvider=0]="TrainingProvider",e[e.Employer=1]="Employer",e})(ut||{}),Os=class{constructor(t){this.accountNumber=t.accountNumber,this.name=t.name,this.organisationId=t.organisationId,this.financialStop=t.financialStop,this.trainingprovidercode=t.trainingprovidercode||null,this.currentL3SanctionsOrAbove=t.currentL3SanctionsOrAbove||!1,this.isTP=!!(t.qualifications||t.courses),this.approvals=t.approvals||null,this.isEav=t.isEav||!1,this.postalAddress=t.postalAddress||null,this.tpContact=t.tpContact||null,this.role=t.role}},IE=(()=>{let t=class t{constructor(){this.memberId=so(""),this.isStaff=so(!1),this.authService=xe(st),this.cacheService=xe(vr),this.contactService=xe(No),this.organisationService=xe(ere),this.trainingProviderService=xe(z0),this.availableOrgs=new Ze(void 0),this.options={headers:{"Content-Type":"application/json"}}}getAvailableOrgs(n){return this.availableOrgs.value?.length?this.availableOrgs.asObservable():(this.getAvailableOrgs$||(this.getAvailableOrgs$=this.authService.getCurrentUser().pipe(ht(o=>{let r=o["cognito:groups"].includes("staff")||o["cognito:groups"].includes("admin");return this.memberId.set(o["custom:member_id"]),this.isStaff.set(r),r?this.trainingProviderService.getTrainingProviders().pipe(J(a=>a.data?.map(s=>new Os(s))??[]),ao(a=>this.availableOrgs.next(a))):this.contactService.getContactRelationship(o["custom:contact_id"]).pipe(ht(a=>{if(!a?.connections)return Q([]);let s=this.getUsersTrainingProviders(a);return n===ut.Employer&&(s=this.getUsersEmployers(a)),s.pipe(ao(l=>{this.availableOrgs.next(l)}))}),he(this.handleError))}))),this.getAvailableOrgs$)}search(n,o){if(o===ut.TrainingProvider){let r=ye(B({},this.options),{params:{searchText:n,output:"summary"}});return this.trainingProviderService.getTrainingProviders(r.params).pipe(J(a=>a.data.map(s=>({label:s.name,id:s.organisationId,data:s}))),he(this.handleError))}else return this.organisationService.search(n,void 0,!0).pipe(ot(1),J(r=>(r.forEach(a=>a.label+=` (${a.data.accountNumber})`),r)),he(this.handleError))}getOrganisation(n){return this.organisationService.getOrganisation(n).pipe(he(this.handleError))}cacheSelection(n,o){this.cacheService.set(`selected${n===ut.Employer?"Employer":"Centre"}`,o.organisationId,0)}getInitialSelection(n,o){let r,a=this.cacheService.getCookieFromCache("CentreDetails");return a.length?r=JSON.parse(a).UUID:r=this.cacheService.get(`selected${n===ut.Employer?"Employer":"Centre"}`),[o.find(l=>r===l.organisationId)??o?.[0]]}staffSearchService(n){return{search:o=>this.search(o,n)}}getUsersTrainingProviders(n){let o=Array.from(new Set(n.connections?.filter(r=>r.connectionType==="organisation").map(r=>r.connectionReferenceId)));return o.length===0?Q([]):this.trainingProviderService.getTrainingProviders({organisationIds:o.join(","),size:o.length,nonPublished:!0,isFinancialStop:!0,isCurrentL3SanctionsOrAbove:!0}).pipe(J(r=>r?.data?r?.data?.map(a=>new Os(ye(B({},a),{role:n.connections?.filter(s=>s.connectionReferenceId===a.organisationId)?.map(s=>s.role)?.sort()?.join(", ")}))):[]))}getUsersEmployers(n){let o=Array.from(new Set(n.connections?.filter(r=>r.connectionType==="organisation"&&r.role?.toLowerCase()?.includes("employer")).map(r=>r.connectionReferenceId)));return o.length===0?Q([]):this.organisationService.getOrganisations(o).pipe(J(r=>r.map(a=>new Os(ye(B({},a),{isEav:a.assessmentVenue,postalAddress:a.address,role:n.connections?.filter(s=>s.connectionReferenceId===a.organisationId)?.map(s=>s.role)?.sort()?.join(", ")})))))}handleError(n){let o;return o=n.message?n.message:n.toString(),jt(o)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),yse=(()=>{let t=class t{constructor(){this.allowOrgChange=!0,this.availableOrgs=[],this.selectedOrgs=[],this.selectedOrgsChange=new L,this.OrganisationPickerType=ut,this.confirmOrgsEnabled=!1,this.confirmOrgs={text:"Confirm",type:"primary",aria:"Confirm",action:{type:"callback",callback:()=>this.applySelectedOrgs()}},this.multiDropdownContent={placeholder:"Select multiple",allSelected:"Select all",validationDisabled:!0,options:[]}}ngOnInit(){switch(this.type){case ut.Employer:this.multiDropdownContent.placeholder="Select multiple employers",this.multiDropdownContent.allSelected="Select all employers";break;case ut.TrainingProvider:this.multiDropdownContent.placeholder="Select multiple centres",this.multiDropdownContent.allSelected="Select all centres";break}this.multiDropdownContent.options=this.availableOrgs.map(n=>({label:n.name,value:n.organisationId}))}getSelectedOrgs(n){this.confirmOrgsEnabled=n.length>1}applySelectedOrgs(){if(!this.confirmOrgsEnabled)return;let n=this.multiDropdownContent.options.filter(o=>o.selected).map(o=>o.value);this.selectedOrgs=this.availableOrgs.filter(o=>n.includes(o.organisationId)),this.selectedOrgsChange.emit(this.selectedOrgs)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-organisation-picker-multiselect"]],inputs:{type:"type",allowOrgChange:"allowOrgChange",availableOrgs:"availableOrgs",selectedOrgs:"selectedOrgs"},outputs:{selectedOrgsChange:"selectedOrgsChange"},decls:3,vars:2,consts:[[1,"fab-organisation-picker-multiselect"],[1,"organisation-picker__select-multiple"],[1,"organisation-picker__selected-orgs"],[3,"outputReturnSelectedOptions","content"],[3,"button","enabled"]],template:function(o,r){o&1&&(p(0,"div",0),y(1,nte,3,3,"div",1),y(2,ste,7,1,"div",2),u()),o&2&&(d(),w(r.allowOrgChange?1:-1),d(),w(r.selectedOrgs.length?2:-1))},dependencies:[Mc,$p,Ee],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.fab-organisation-picker-multiselect .organisation-picker__select-multiple{display:flex;justify-content:space-between}.fab-organisation-picker-multiselect .organisation-picker__select-multiple fab-dropdown{display:block;flex-grow:1;max-width:calc(100% - 124px)}.fab-organisation-picker-multiselect .organisation-picker__select-multiple fab-dropdown .dropdown__input{background-color:#fff;border-color:#fff}.fab-organisation-picker-multiselect .organisation-picker__select-multiple fab-button{display:block}@media (max-width: 400px){.fab-organisation-picker-multiselect .organisation-picker__select-multiple{flex-wrap:wrap}.fab-organisation-picker-multiselect .organisation-picker__select-multiple fab-dropdown{max-width:100%}.fab-organisation-picker-multiselect .organisation-picker__select-multiple fab-button{margin-top:10px}}.fab-organisation-picker-multiselect .organisation-picker__selected-orgs{margin-top:15px}.fab-organisation-picker-multiselect .organisation-picker__selected-orgs td{padding-top:5px}.fab-organisation-picker-multiselect .organisation-picker__selected-orgs td:first-of-type{padding-right:15px} 795`],encapsulation:2});let e=t;return e})(),wse=(()=>{let t=class t{constructor(){this.allowOrgChange=!0,this.availableOrgs=[],this.selectedOrgs=[],this.selectedOrgsChange=new L,this.OrganisationPickerType=ut,this.isOpen=!1,this.orgCount=0,this.orgDropdown={placeholder:"Change organisation",options:[],group:"org-list",required:!1}}get selectedItem(){return this.selectedOrgs?.[0]}ngOnInit(){switch(this.type){case ut.Employer:this.orgDropdown.placeholder="Change employer";break;case ut.TrainingProvider:this.orgDropdown.placeholder="Change centre";break}this.orgCount=this.availableOrgs.length??0,this.orgDropdown.options=this.availableOrgs.map(n=>({label:n.name,value:n.organisationId}))}toggle(){this.isOpen=!this.isOpen}chooseOrg(n){let o=n.map(r=>r.value);this.selectedOrgs=this.availableOrgs.filter(r=>o.includes(r.organisationId)),this.selectedOrgsChange.emit(this.selectedOrgs)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-organisation-picker-single"]],inputs:{type:"type",allowOrgChange:"allowOrgChange",availableOrgs:"availableOrgs",selectedOrgs:"selectedOrgs"},outputs:{selectedOrgsChange:"selectedOrgsChange"},decls:14,vars:4,consts:[[1,"fab-organisation-picker-single"],[1,"organisation-picker__head"],[1,"row"],[1,"col-xs-7","col-md-6"],[1,"col-xs-5","col-md-6"],[1,"organisation-picker__toggle"],["tabindex","0",3,"click","keydown.Enter"],[1,"row","organisation-picker__org"],[1,"col-xs-12","col-md-6"],[1,"organisation-picker__name"],[1,"organisation-picker__body"],[1,"row","organisation-picker__location"],[1,"row","organisation-picker__details"],[1,"col-md-3"],[1,"col-md-9"],[1,"organisation-picker__contact"],[1,"organisation-picker__role"],[3,"content"],[3,"outputReturnSelectedOptions","content"],[1,"organisation-picker__address"],[1,"organisation-picker__label-title"],[1,"organisation-picker__label"],[3,"href"]],template:function(o,r){o&1&&(p(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),y(4,lte,2,0,"h3")(5,cte,2,0,"h3"),u(),p(6,"div",4)(7,"div",5)(8,"a",6),T("click",function(){return r.toggle(
795)})("keydown.Enter",function(){return r.toggle()}),C(9),u()()()(),p(10,"div",7)(11,"div",8),y(12,pte,3,1,"div",9),u()()(),y(13,Ite,8,4,"div",10),u()),o&2&&(d(4),w(r.type===r.OrganisationPickerType.Employer?4:5),d(5),R(r.isOpen==!0?"Hide details":"View details / Change "+(r.type===r.OrganisationPickerType.Employer?"employer":"centre")),d(3),w(r.selectedItem?12:-1),d(),w(r.isOpen?13:-1))},dependencies:[Rt,Bs,wa],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.fab-organisation-picker-single[_ngcontent-%COMP%] .organisation-picker__label[_ngcontent-%COMP%]{padding-right:6px}.fab-organisation-picker-single[_ngcontent-%COMP%] .organisation-picker__contact[_ngcontent-%COMP%]{padding-bottom:16px}.fab-organisation-picker-single[_ngcontent-%COMP%] .organisation-picker__address[_ngcontent-%COMP%]{padding-bottom:16px;padding-right:10px}.fab-organisation-picker-single[_ngcontent-%COMP%] .organisation-picker__address[_ngcontent-%COMP%] address[_ngcontent-%COMP%]{font-style:normal}.fab-organisation-picker-single[_ngcontent-%COMP%] .organisation-picker__address[_ngcontent-%COMP%] address[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block}.fab-organisation-picker-single[_ngcontent-%COMP%] .organisation-picker__toggle[_ngcontent-%COMP%]{text-align:right;color:#00ab4e}.fab-organisation-picker-single[_ngcontent-%COMP%] .organisation-picker__location[_ngcontent-%COMP%]{padding-top:19px;padding-bottom:16px}"]});let e=t;return e})(),xse=(()=>{let t=class t{constructor(){this.allowStaffChangeType=!0,this.selectedOrgsChange=new L,this.organisationPickerService=xe(IE),this.OrganisationPickerType=ut,this.orgResults=[],this.changeOrg={text:"Change organisation",type:"primary",aria:"Change organisation",action:{type:"callback",callback:()=>this.clearSelectedOrg()}},this.changeTypeButton={text:null,type:"text",aria:null,action:{type:"callback",callback:()=>{this._switchSearchType()}}},this.autoCompleteContent={termLength:3,placeHolder:"",hideSearchButton:!0}}ngOnInit(){this.selectedItem=this.defaultOrg,this._setTpOrEmployer()}clearSelectedOrg(){this.selectedItem=void 0}selectOrganisation(n){if(n?.data?.organisationId){let o=new Os(n.data);this.selectedItem=o,this.selectedOrgsChange.emit([o])}}_setTpOrEmployer(){switch(this.type){case ut.Employer:this.autoCompleteContent.placeHolder="Choose an employer...",this.changeOrg.text="Change employer",this.changeTypeButton.text="Switch to training provider search",this.changeTypeButton.aria="Switch to training provider search";break;case ut.TrainingProvider:this.autoCompleteContent.placeHolder="Choose a centre...",this.changeOrg.text="Change centre",this.changeTypeButton.text="Switch to employer search",this.changeTypeButton.aria="Switch to employer search";break}}_switchSearchType(){this.selectedItem=void 0,this.type===ut.Employer?this.type=ut.TrainingProvider:this.type=ut.Employer,this._setTpOrEmployer()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-organisation-picker-staff"]],inputs:{type:"type",defaultOrg:"defaultOrg",allowStaffChangeType:"allowStaffChangeType"},outputs:{selectedOrgsChange:"selectedOrgsChange"},decls:4,vars:3,consts:[["FabAC",""],[1,"fab-organisation-picker-staff"],[1,"fab-organisation-picker-staff__change-type"],[1,"fab-organisation-picker-staff__head"],[1,"fab-organisation-picker-staff__search","form-group"],[3,"button"],[1,"row"],[1,"col-xs-7","col-md-6"],[1,"row","organisation-picker__org"],[1,"col-xs-12","col-md-6"],[1,"organisation-picker__name"],[1,"organisation-picker__button"],[1,"form-addon","admin-select"],[3,"ngModelChange","content","service","ngModel"],[1,"fab-autocomplete__suggestions--title"],[1,"suggestion__option"],[1,"suggestion__option",3,"mousedown"]],template:function(o,r){o&1&&(p(0,"div",1),y(1,Dte,2,1,"div",2),y(2,Lte,10,3,"div",3),y(3,zte,9,3,"div",4),u()),o&2&&(d(),w(r.allowStaffChangeType?1:-1),d(),w(r.selectedItem?2:-1),d(),w(r.selectedItem?-1:3))},dependencies:[Ee,Ore,Fre,Rt,Qe,po,Vi],styles:[".fab-organisation-picker-staff__change-type[_ngcontent-%COMP%]{margin-bottom:1em}.fab-organisation-picker-staff[_ngcontent-%COMP%] .admin-select[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{background-color:#fff;max-height:300px;overflow:auto;z-index:999}.fab-organisation-picker-staff[_ngcontent-%COMP%] .organisation-picker__button[_ngcontent-%COMP%]{padding-top:16px}.fab-organisation-picker-staff[_ngcontent-%COMP%] .organisation-picker__button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin:0}"]});let e=t;return e})(),DE=(()=>{let t=class t{constructor(){this.type=ut.TrainingProvider,this.allowOrgChange=!0,this.staffCanChangeType=!0,this.orgChange=new L,this.OrganisationPickerType=ut,this.organisationPickerService=xe(IE),this.isMultiSelectActive=!1,this.canSelectMultiple=!1,this.isLoading=!0,this.availableOrgs=[],this.selectedOrgs=[]}ngOnInit(){this.organisationPickerService.getAvailableOrgs(this.type).subscribe(n=>{this.isLoading=!1,this.availableOrgs=n,this.selectedOrgs=this.organisationPickerService.getInitialSelection(this.type,n),this.orgChange.next(this.selectedOrgs),this.multiOrgConfig?.enabled&&this.multiOrgConfig?.roles&&n?.length>0&&!n?.some(o=>!o.role||!this.multiOrgConfig.roles.some(r=>o.role?.split(", ").includes(r)))&&(this.canSelectMultiple=!0)})}ngOnChanges(n){n&&n.allowOrgChange&&!n.allowOrgChange.isFirstChange()&&this.isMultiSelectActive&&this.selectedOrgs.length<=1&&this.changeMode("single")}changeMode(n){switch(n){case"single":this.isMultiSelectActive=!1,this.selectedOrgs.length>1&&(this.selectedOrgs=[this.selectedOrgs?.[0]],this.orgChange.emit(this.selectedOrgs));break;case"multi":this.isMultiSelectActive=!0;break}}getOrgWording(n=!1,o=!0){let r="";switch(this.type){case ut.Employer:r="Employer";break;case ut.TrainingProvider:r="Centre";break}return n&&(r+="s"),o?r.toLowerCase():r}onSelectionChange(n){this.organisationPickerService.cacheSelection(this.type,n?.[0]),this.orgChange.next(n)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-organisation-picker"]],inputs:{type:"type",allowOrgChange:"allowOrgChange",multiOrgConfig:"multiOrgConfig",staffCanChangeType:"staffCanChangeType"},outputs:{orgChange:"orgChange"},features:[Ye],decls:5,vars:2,consts:[[1,"organisation-picker"],[1,"organisation-picker__mode-select"],[3,"type","defaultOrg","allowStaffChangeType"],[3,"type","availableOrgs","selectedOrgs","allowOrgChange"],[3,"selectedOrgsChange","type","defaultOrg","allowStaffChangeType"],[3,"selectedOrgsChange","type","availableOrgs","selectedOrgs","allowOrgChange"],[3,"click"]],template:function(o,r){o&1&&(p(0,"div",0),y(1,Bte,1,0,"fab-loader")(2,Ute,3,1)(3,jte,1,1),u(),y(4,qte,3,1,"div",1)),o&2&&(d(),w(r.isLoading?1:r.availableOrgs?2:3),d(3),w(r.allowOrgChange&&!r.organisationPickerService.isStaff()&&r.canSelectMultiple?4:-1))},dependencies:[U0,Hs,Mc,xa,Vo,yse,wse,xse],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.organisation-picker{padding:14px 10px 19px;background:#fff;border:1px solid rgb(229.5,229.5,229.5);-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px}.organisation-picker h3{margin-bottom:15px!important}.organisation-picker a{word-break:break-word}.organisation-picker__mode-select{margin-top:20px} 796`],encapsulation:2});let e=t;return e})(),Fp=(()=>{let t=class t{constructor(){this.addressTypeError=!1,this.addressError=!1}ngAfterViewInit(){!this.contact?.address&&!this.contact?.billingAddress&&this.updateAddress("other")}updateAddress(n){this.addressType=n,this.addressTypeError=!1,n==="other"?(this.form.addControl("updatedAddress",this.postcodeLookupComponent.formgroup),this.postcodeLookupComponent.formgroup.setParent(this.form),this.form.controls.address.removeValidators(fe.required),this.form.controls.address.updateV
796alueAndValidity()):(this.form.removeControl("updatedAddress"),this.form.controls.address.setValidators(fe.required),this.form.controls.address.updateValueAndValidity())}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-billing-address"]],viewQuery:function(o,r){if(o&1&&Ue(Ns,7),o&2){let a;Me(a=Te())&&(r.postcodeLookupComponent=a.first)}},inputs:{contact:"contact",form:"form"},standalone:!1,decls:18,vars:20,consts:[[1,"payment-postcode-lookup__container","row",3,"formGroup"],[1,"col-xs-11","payment-address-section",3,"ngClass"],[1,"payment-postcode-lookup__title"],[1,"payment-postcode-lookup"],[1,"col-xs-1","form_icon"],[1,"errorMessage"],[1,"radioi__container"],["type","radio","formControlName","address",1,"radioi__radio",3,"change","value","checked"],[1,"radioi__selected"],["type","radio","formControlName","address",1,"radioi__radio",3,"change","checked","value"],["type","radio","value","other",1,"radioi__radio",3,"change","checked"],[1,"align-middle","icon","icon-error"]],template:function(o,r){o&1&&(p(0,"div",0)(1,"b"),C(2,"Billing address"),u(),p(3,"div",1),y(4,Qte,3,0,"div",2),y(5,Jte,5,4,"div",3),y(6,Zte,5,4,"div",3),y(7,Xte,5,1,"div",3),u(),y(8,eie,2,0,"div",4),y(9,tie,2,0,"div",5),p(10,"div",1)(11,"div",2)(12,"b"),C(13,"Add a billing address"),u()(),p(14,"div",3),x(15,"fab-postcode-lookup"),u()(),y(16,iie,2,0,"div",4),y(17,nie,2,0,"div",5),u()),o&2&&(v("formGroup",r.form),d(3),v("ngClass",hi(11,Yte,r.addressTypeError,!r.addressTypeError,r.addressTypeError)),d(),w(r.contact!=null&&r.contact.address||r.contact!=null&&r.contact.billingAddress?4:-1),d(),w(!(r.contact==null||r.contact.address==null)&&r.contact.address.streetAddressLine1?5:-1),d(),w(!(r.contact==null||r.contact.billingAddress==null)&&r.contact.billingAddress.streetAddressLine1&&(!(!(r.contact==null||r.contact.address==null)&&r.contact.address.streetAddressLine1)||(r.contact==null||r.contact.address==null?null:r.contact.address.streetAddressLine1)!==(r.contact==null||r.contact.billingAddress==null?null:r.contact.billingAddress.streetAddressLine1))?6:-1),d(),w(r.contact!=null&&r.contact.address||r.contact!=null&&r.contact.billingAddress?7:-1),d(),w(r.addressTypeError?8:-1),d(),w(r.addressTypeError?9:-1),d(),v("ngClass",dh(15,Kte,r.addressType!=="other",r.addressError,!r.addressError,r.addressError)),d(6),w(r.addressError?16:-1),d(),w(r.addressError?17:-1))},dependencies:[Ns,Ce,Bi,mh,Qe,ct,_t,ti],styles:['[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.payment-postcode-lookup[_ngcontent-%COMP%]{background-color:#fff;border:1px solid rgb(229.5,229.5,229.5);-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;padding:1rem .5rem;margin:0 0 10px}.payment-postcode-lookup[_ngcontent-%COMP%] .button-primary--size-medium[_ngcontent-%COMP%]{font-size:small;margin-top:31px}.payment-postcode-lookup[_ngcontent-%COMP%] .button-text--default[_ngcontent-%COMP%]{margin-top:10px}.payment-postcode-lookup.checkbox[_ngcontent-%COMP%]{padding:5px}.payment-postcode-lookup.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin:0}.payment-postcode-lookup__container[_ngcontent-%COMP%]{margin-top:-10px;margin-bottom:20px}.payment-postcode-lookup__title[_ngcontent-%COMP%]{font-size:small;padding-bottom:.5rem}.payment-postcode-lookup__description[_ngcontent-%COMP%]{font-size:small;padding-bottom:10px}.payment-postcode-lookup_hidden[_ngcontent-%COMP%]{display:none!important}.payment-postcode-lookup[_ngcontent-%COMP%] fab-postcode-lookup[_ngcontent-%COMP%] .margin-bottom[_ngcontent-%COMP%]{margin-bottom:15px}.payment-postcode-lookup[_ngcontent-%COMP%] fab-postcode-lookup[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;margin-bottom:.5rem}.payment-postcode-lookup[_ngcontent-%COMP%] .radioi[_ngcontent-%COMP%]{margin:30px 0;font-size:14px}.payment-postcode-lookup[_ngcontent-%COMP%] .radioi[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:400;font-size:14px;padding-bottom:5px}.payment-postcode-lookup[_ngcontent-%COMP%] .radioi__wrapper[_ngcontent-%COMP%]{border:1px solid rgb(229.5,229.5,229.5);-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;padding:15px 10px 5px;margin:10px 0}.payment-postcode-lookup[_ngcontent-%COMP%] .radioi__subwrapper[_ngcontent-%COMP%]{padding:0 10px 15px}.payment-postcode-lookup[_ngcontent-%COMP%] .radioi__container[_ngcontent-%COMP%]{display:block;position:relative;padding-left:40px;cursor:pointer;font-size:.8rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.payment-postcode-lookup[_ngcontent-%COMP%] .radioi__radio[_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer}.payment-postcode-lookup[_ngcontent-%COMP%] .radioi__radio[_ngcontent-%COMP%]:checked ~ .radioi__selected[_ngcontent-%COMP%]{background-color:#00ab4e}.payment-postcode-lookup[_ngcontent-%COMP%] .radioi__radio[_ngcontent-%COMP%]:checked ~ .radioi__selected[_ngcontent-%COMP%]:after, .payment-postcode-lookup[_ngcontent-%COMP%] .radioi__radio[_ngcontent-%COMP%]:checked ~ .radioi__selected[_ngcontent-%COMP%]:before{display:block}.payment-postcode-lookup[_ngcontent-%COMP%] .radioi__selected[_ngcontent-%COMP%]{position:absolute;top:-2px;left:0;height:20px;width:20px;border:solid #4a4a4a 2px;background-color:#fff;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;border-radius:50%}.payment-postcode-lookup[_ngcontent-%COMP%] .radioi__selected[_ngcontent-%COMP%]:after{content:"";position:absolute;display:none;left:2px;top:2px;width:12px;height:12px;border:solid white 2px;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;border-radius:50%}.payment-postcode-lookup[_ngcontent-%COMP%] .radioi__selected[_ngcontent-%COMP%]:before{content:"";position:absolute;display:none;top:-2px;left:-2px;width:20px;height:20px;border-radius:50%;background:transparent;outline:3px solid transparent;outline-offset:3px;-webkit-box-shadow:0 0 0 4px #ffd432;-moz-box-shadow:0 0 0 4px #ffd432;box-shadow:0 0 0 4px #ffd432}']});let e=t;return e})(),Sse=(()=>{let t=class t{constructor(n,o){this.basketService=n,this.registrationService=o,this.paymentTypeChange=new L,this.paymentCodeInputInterface={id:"paymentCode",label:"<strong>Enter your payment code</strong>",required:!0,codeType:"PaymentCode",validationBlankMessage:"Enter your payment code",maxLen:15,showErrorInFocus:!0},this.basketCount=this.basketService.getBasketCount()}ngOnInit(){this.options=this.content&&this.content.options,this.form.value.paymentType!=="code"&&this.onPaymentTypeChange("")}onPaymentTypeChange(n){n==="code"?(this.form.addControl("paymentCode",new Xt("",[fe.required],[this._verifyPaymentCode()])),this.form.controls.address.removeValidators(fe.required),this.form.controls.address.updateV
796alueAndValidity(),this.form.removeControl("updatedAddress"),this.form.controls.paymentCode.valueChanges.subscribe(o=>{this._enforcePaymentCodeFormat(o)})):(this.form.removeControl("paymentCode"),this.form.controls.address.setValidators(fe.required),this.form.controls.address.updateValueAndValidity()),this.paymentTypeChange.emit(n)}_enforcePaymentCodeFormat(n){if(n.length===12&&n.endsWith("-"))return;let o=n.toUpperCase().replace(/[^A-Z0-9]/g,""),r="";for(let a=0;a<o.length;a++)r+=o[a],a>0&&(a+1)%3===0&&(a<8||a!==o.length-1)&&(r+="-");this._lastPaymentCodeValue&&this._lastPaymentCodeValue.endsWith("-")&&r.endsWith("-")&&n.length+1===this._lastPaymentCodeValue.length&&(r=r.slice(0,r.length-(r.length>8?3:2))),this._lastPaymentCodeValue=r,setTimeout(()=>{this.form.controls.paymentCode.setValue(r,{emitEvent:!1})},0)}_verifyPaymentCode(){return n=>{if(!this.registrationService.registrationData?.programmeRegistration||!this.registrationService.registrationData.programmeRegistration[0].trainingProviderOrganisationId)return Q({formControlValidationErrors:{value:"You must be registering through a training provider to use a payment code"}});let o=[];return this.registrationService.registrationData.programmeRegistration[0].trainingProviderOrganisationId&&o.push(this.registrationService.registrationData.programmeRegistration[0].trainingProviderOrganisationId),this.registrationService.registrationData.employerOrganisationId&&o.push(this.registrationService.registrationData.employerOrganisationId),this.registrationService.verifyPaymentCode(n.value,o).pipe(J(()=>null),he(r=>Q({formControlValidationErrors:{value:r.error?.message??"Payment code could not be verified"}})))}}};t.\u0275fac=function(o){return new(o||t)(O(Bp),O(uE))},t.\u0275cmp=U({type:t,selectors:[["fab-payment-options"]],inputs:{content:"content",form:"form"},outputs:{paymentTypeChange:"paymentTypeChange"},standalone:!1,decls:5,vars:5,consts:[[1,"radioi",3,"formGroup","ngClass"],[1,"pb-2"],[1,"radioi__wrapper"],[1,"payment-image",3,"src"],[1,"radioi__container"],["type","radio","formControlName","paymentType",1,"radioi__radio",3,"click","value"],[1,"radioi__selected"],[1,"mt-3","radioi__subwrapper"],[1,"my-3","small-text"],[3,"content","formControl"],[1,"small-text"],[1,"error"],[1,"icon-warning"]],template:function(o,r){o&1&&(p(0,"div")(1,"div",0),y(2,oie,3,1,"div",1),X(3,cie,7,4,"div",2,se),u()()),o&2&&(d(),v("formGroup",r.form)("ngClass",z(3,Mt,!r.form.valid&&!r.form.value.paymentType)),d(),w(r.content!=null&&r.content.label?2:-1),d(),ee(r.options))},dependencies:[Ce,Bi,mh,Qe,ct,ei,_t,ti,to,bn],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.payment-image{float:right;height:30px}.radioi{margin:30px 0;font-size:14px}.radioi label{font-weight:400;font-size:14px;padding-bottom:5px}.radioi__wrapper{border:1px solid #dce6f0;padding:15px 10px 5px;margin:10px 0;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px}.radioi__subwrapper{padding:0 10px 15px}.radioi__container{display:block;position:relative;padding-left:40px;margin-bottom:8px;
796cursor:pointer;font-size:1rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.radioi__radio{position:absolute;opacity:0;cursor:pointer}.radioi__radio:checked~.radioi__selected{background-color:#00ab4e}.radioi__radio:checked~.radioi__selected:after,.radioi__radio:checked~.radioi__selected:before{display:block}.radioi__selected{position:absolute;top:-2px;left:0;height:20px;width:20px;border:solid #4a4a4a 2px;background-color:#fff;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;border-radius:50%}.radioi__selected:after{content:"";position:absolute;display:none;left:2px;top:2px;width:12px;height:12px;border:solid white 2px;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;border-radius:50%}.radioi__selected:before{content:"";position:absolute;display:none;top:0;left:0;width:20px;height:20px;border-radius:50%;background:transparent;outline:3px solid transparent;outline-offset:3px;-webkit-box-shadow:0 0 0 4px #ffd432;-moz-box-shadow:0 0 0 4px #ffd432;box-shadow:0 0 0 4px #ffd432}.error{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-ms-flex-wrap:wrap;align-items:baseline}.error i{padding:0 10px 0 0} 797`],encapsulation:2});let e=t;return e})(),kse=(()=>{let t=class t{constructor(n){this.contactService=n,this.backButtonClick=new L,this.formSubmit=new L,this.nameInput={label:"Account holder's full name",id:"debit-card-name",toolTip:"Name as it appears on your bank account",required:!0,codeType:"NoValidation"},this.sortCodeInput={id:"debit-card-sort-code",label:"Sort code",required:!0,codeType:"SortCode",validationMessage:"Enter your sort code",toolTip:"Please provide your six digit sort code"},this.accountNumber={id:"debit-card-account-number",label:"Account number",required:!0,codeType:"AccountNumber",validationMessage:"Enter a valid account number",validationBlankMessage:"Enter your account number",toolTip:"Please provide your eight digit account number"},this.instalmentOptions=[{id:"instalments",label:"One instalment",value:"1 Instalment"},{id:"instalments",label:"Two instalments",value:"2 Instalments"},{id:"instalments",label:"Three instalments",value:"3 Instalments"},{id:"instalments",label:"Four instalments",value:"4 Instalments"}],this.formSubmitButton={text:"Next",action:{type:"callback",callback:()=>{this.billingAddressComponent.addressType==="other"&&this.debitCardForm.controls.address.setValue(this.contactService.formatAddress(this.debitCardForm.value.updatedAddress)),this.formSubmit.next(this.debitCardForm)}},type:"primary",aria:"Next"},this.goBackButton={text:"Go back",action:{type:"callback",callback:()=>this.backButtonClick.next()},aria:"Go back",type:"text"}}setInstalmentRadioOptionValue(n){this.debitCardForm.controls.instalments.setValue(n)}};t.\u0275fac=function(o){return new(o||t)(O(No))},t.\u0275cmp=U({type:t,selectors:[["fab-direct-debit"]],viewQuery:function(o,r){if(o&1&&Ue(Fp,5),o&2){let a;Me(a=Te())&&(r.billingAddressComponent=a.first)}},inputs:{contact:"contact",debitCardForm:"debitCardForm"},outputs:{backButtonClick:"backButtonClick",formSubmit:"formSubmit"},standalone:!1,decls:26,vars:11,consts:[["address",""],[1,"fab-direct-debit",3,"formGroup"],[1,"fab-direct-debit--copy"],["target","_blank","href","https://www.aat.org.uk/prod/s3fs-public/assets/direct-debit-guarantee.PNG"],["target","_blank","href","/policies/refunds"],[1,"fab-direct-debit--information"],[1,"fab-direct-debit--information__input","account-holder",3,"content","formControl"],[1,"fab-direct-debit--information__input",3,"content","formControl"],[1,"fab-direct-debit--instalments"],[3,"content"],[3,"form","contact"],[1,"fab-direct-debit--actions"],[3,"button"],[3,"enabled","button"],[3,"selectEvent","content"]],template:function(o,r){o&1&&(p(0,"div",1)(1,"div",2)(2,"p"),C(3," You\u2019ll need to set up your Direct Debit. For more information about Direct Debit payments, please read the "),p(4,"a",3),C(5,"Direct Debit Guarantee"),u(),C(6,". "),u(),p(7,"p"),C(8," Please note that not all fees are refundable. For more details, please read "),p(9,"a",4),C(10,"AAT's refund policy"),u(),C(11,". "),u()(),p(12,"div",5),x(13,"fab-input-text-2",6)(14,"fab-input-text-2",7)(15,"fab-input-text-2",7),u(),p(16,"div",8)(17,"p")(18,"strong"),C(19,"You can pay in instalments - please select your preferred option:"),u()(),X(20,die,1,1,"fab-radio",9,se),u(),y(22,uie,2,2,"fab-billing-address",10),p(23,"div",11),x(24,"fab-button",12)(25,"fab-button",13),u()()),o&2&&(v("formGroup",r.debitCardForm),d(13),v("content",r.n
797ameInput)("formControl",r.debitCardForm.controls.name),d(),v("content",r.sortCodeInput)("formControl",r.debitCardForm.controls.sortCode),d(),v("content",r.accountNumber)("formControl",r.debitCardForm.controls.accountNumber),d(5),ee(r.instalmentOptions),d(2),w(r.contact?22:-1),d(2),v("button",r.goBackButton),d(),v("enabled",r.debitCardForm.valid)("button",r.formSubmitButton))},dependencies:[Ee,Qe,ct,ei,_t,to,zo,Fp],styles:[".fab-direct-debit--information[_ngcontent-%COMP%]{margin-bottom:25px;margin-top:25px}.fab-direct-debit--information__input[_ngcontent-%COMP%]{display:flex;margin-bottom:10px}.fab-direct-debit--information[_ngcontent-%COMP%] .account-holder[_ngcontent-%COMP%] .form-fieldcontainer[_ngcontent-%COMP%]{width:100%;max-width:440px}.fab-direct-debit--information[_ngcontent-%COMP%] .account-holder[_ngcontent-%COMP%] .form-input-text-2{width:100%;max-width:440px}.fab-direct-debit--instalments[_ngcontent-%COMP%]{margin-bottom:40px}.fab-direct-debit--actions[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}"]});let e=t;return e})(),Bwe=(()=>{let t=class t{constructor(n,o,r,a){this.router=n,this.fb=o,this.authService=r,this.contactService=a,this.paymentOptions={label:"Please select a payment option",name:"payment",required:!0,options:[{label:"Card",name:"card",image:!0}]},this.allowDDPayments=!1,this.onBackButtonClick=new L,this.onFormSubmit=new L,this.apiError=new L,this.submitted=!1,this.debitCardForm=new Er({name:new Xt("",{nonNullable:!0,validators:[fe.required]}),sortCode:new Xt("",{nonNullable:!0,validators:[fe.required]}),accountNumber:new Xt("",{nonNullable:!0,validators:[fe.required]}),instalments:new Xt("",{nonNullable:!0,validators:[fe.required]}),address:new Xt("",[fe.required])}),this.formSubmitButton={text:"Next",action:{type:"callback",callback:this.formSubmit.bind(this)},type:"primary",aria:"Next"},this.inputInterface={id:"email",label:"Email address",required:!0,codeType:"AlphaText"},this.notificationMsie={type:"warning",message:"If you're using Internet Explorer then some functionality or features may not work as expected. Before continuing please make sure your internet browser is up-to-date - we recommend using the recent version of an Edge, Safari, Chrome or Firefox browser.",glyph:"warning",fullWidth:!0},this.notificationPaymentCode={type:"error",message:"Your payment code has not been accepted. Please check it matches the format F3F-4C9-694 and resubmit it. It must be in capitals, include dashes and have the same number of characters. If it is still not accepted, contact your training provider.",glyph:"error",fullWidth:!0},this.msie=!1,this.showNotification=!1,this.errorNotification={type:"error",message:"Your payment was unsuccessful. Try with a different card.",fullWidth:!0,glyph:"error",closeNotification:!1},this.paymentForm=this.fb.group({paymentType:["card",fe.required],address:["",fe.required]}),this.paymentForm.valueChanges.subscribe(s=>{s.paymentCode||(this.showPaymentCodeError=!1)})}ngOnInit(){this.authService.getCurrentUser().pipe(ot(1)).subscribe({next:n=>{this.contactService.getContact(n["custom:contact_id"]).subscribe(o=>{this.contact=o,o.address&&(o.address.addressCountry==="USA"||!o.address.streetAddressLine1)&&delete o.address,o.billingAddress&&(o.billingAddress.addressCountry==="USA"||!o.billingAddress.streetAddressLine1)&&delete o.billingAddress,!o.address&&!o.billingAddress&&this.billingAddressComponent?.updateAddress("other")})}})}ngOnChanges(n){n.showPaymentCodeError&&n.showPaymentCodeError.previousValue===!1&&this.animateButton(null,null)}onPaymentTypeChange(n){}formSubmit(){this.showPaymentCodeError=!1;let n;this.allowDDPayments||(n={paymentType:this.paymentForm.value.paymentType,address:this.billingAddressComponent?.addressType==="other"?this.contactService.formatAddress(this.paymentForm.value.updatedAddress):this.paymentForm.value.address,paymentCode:this.paymentForm.value.paymentCode||null,contact:this.contact}),this.paymentForm.markAllAsTouched();let o;this.allowDDPayments&&(o=ye(B({paymentType:"debit"},this.debitCardForm.value),{contact:this.contact})),this.debitCardForm.markAllAsTouched();let r=this.allowDDPayments?o:n;this.animateButton(fr.LOOP2,"spin"),this.onFormSubmit.next(r)}animateButton(n,o){this.formSubmitButton.glyph={icon:n,glyphAnimation:o}}redirectToPath(n){window.location.href=n}nextStep(n){this.formSubmit()}};t.\u0275fac=function(o){return new(o||t)(O(gi),O(nn),O(st),O(No))},t.\u0275cmp=U({type:t,selectors:[["fab-payment-page"]],viewQuery:function(o,r){if(o&1&&Ue(Fp,5),o&2){let a;Me(a=Te())&&(r.billingAddressComponent=a.first)}},inputs:{paymentConfig:"paymentConfig",showPaymentCodeError:"showPaymentCodeError",paymentOptions:"paymentOptions",allowDDPayments:"allowDDPayments",existingDDDetails:"existingDDDetails"},outputs:{onBackButtonClick:"onBackButtonClick",onFormSubmit:"onFormSubmit",apiError:"apiError"},standalone:!1,features:[Ye],decls:2,vars:2,consts:[[1,"payment-page",3,"formGroup"],[3,"backButtonClick","formSubmit","contact","debitC
797ardForm"],[1,"payment-page__container"],[1,"payment-page__row"],[1,"row","pt-3","payment-page__controls"],[1,"payment-page__controls--back"],[1,"payment-page__controls--back-btn",3,"click"],[3,"button","enabled"],[1,"payment-page__need-help-container"],[1,"small-text"],["href","tel:+442037352468"],[3,"paymentTypeChange","content","form"],[3,"form","contact"],[1,"mt-4"],[1,"small"],["href","/policies/privacy","target","_blank"],["href","/policies/refunds","target","_blank"],[3,"notification","isNotificationOpen"]],template:function(o,r){o&1&&(y(0,pie,2,2,"div"),y(1,fie,25,4,"div",0)),o&2&&(w(r.allowDDPayments?0:-1),d(),w(r.allowDDPayments?-1:1))},dependencies:[Ee,ct,_t,Gs,Sse,kse,Fp],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.payment-page .logged-in-nav a{width:auto}.payment-page .payment-table__container{margin-top:20px;display:flex;justify-content:flex-start;align-items:flex-start;height:100%}.payment-page .payment-table__container .payment-table{width:100%}.payment-page .payment-table__container .payment-table__column--right{text-align:right}.payment-page .payment-table__container .payment-table p{margin:0;font-size:14px}.payment-page .payment-table__container .payment-table tr td{padding:20px 0}.payment-page .payment-table__container .payment-table tr td.no-padding{padding:0}.payment-page .payment-table__container .payment-table tr.border-bottom{border-bottom:1px solid rgb(229.5,229.5,229.5)}.payment-page .payment-table__container .payment-table tr{margin-bottom:10px}.payment-page .payment-table__container .payment-table tfoot{font-size:1.3rem}.payment-page .payment-table__container .payment-table tfoot tr td{padding:20px 0}.payment-page fab-dropdown-simple .row .dropdown{min-width:auto}.payment-page .container-fluid{padding-left:0;padding-right:0}.payment-page__payment-method-box{display:flex;justify-content:space-between;align-items:center;background-color:#fff;border:1px solid rgb(229.5,229.5,229.5);-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;padding:1rem .5rem;margin:.5rem 0}.payment-page__row{width:100%}.payment-page .aat__ul{padding-left:1em!important}.payment-page .aat__li{list-style:none!important;margin:1em .4em!important}.payment-page fab-notification a{color:#000}.payment-page p{font-weight:400}.payment-page__controls{display:flex;width:100%;justify-content:space-between;align-items:center;margin-top:35px;border-bottom:1px solid rgb(229.5,229.5,229.5);-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;padding-bottom:25px}.payment-page__controls fab-button a{margin-top:0}.payment-page__need-help-container{padding-top:15px}.payment-page__container{display:flex;flex-direction:column-reverse}@media (min-width: 1200px){.payment-page__container{flex-direction:row}}.payment-page__container .notification{margin:25px 0}.payment-page__login-link{margin-bottom:3em}.payment-page__personal-details-title{margin-top:3em;margin-bottom:1em}.payment-page__subtitle{margin-bottom:0}.payment-page__form--input{min-height:82px;margin-bottom:.7em}.payment-page__form--input.max-width-200 .form-fieldcontainer{max-width:200px}.payment-page__form--input.max-width-400 .form-fieldcontainer{max-width:400px}.payment-page__form--input.flex-column{display:flex}.payment-page__form--input.flex-column>div{min-width:175px}.payment-page__form--input.flex-column .icon-calendar{font-size:2em;margin:25px 20px}.payment-page__form--input.address{margin-bottom:20px}.payment-page__form--input.address .address_input{margin-bottom:15px;max-height:90px}.payment-page__form--input.double-input,.payment-page__form--input.radio{margin-bottom:30px}.payment-page__form--input.radio input:after{color:#0ff}.payment-page span.italic{font-style:italic}.payment-page .hidden{display:none}.payment-page button.btn{color:#fff;font-size:1rem}.payment-page .invalid{-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;background-color:#fff;border:solid #e22b25}.payment-page .errorMessage{color:#e22b25;font-weight:600;font-size:14px;margin:-30px 0 30px}.payment-page .icon{padding-left:10px}.payment-page .icon.icon-error{color:#e22b25}.payment-page .form_icon{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-ms-flex-wrap:wrap;align-items:center}.payment-page .payment-address-section{margin-bottom:30px}.payment-page .radioi{margin:30px 0;font-size:14px}.payment-page .radioi label{font-weight:400;font-size:14px;padding-bottom:5px}.payment-page .radioi__wrapper{border:1px solid rgb(229.5,229.5,229.5);-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;padding:15px 10px 5px;margin:10px 0}.payment-page .radioi__subwrapper{padding:0 10px 15px}.payment-page .radioi__container{display:block;position:relative;padding-left:40px;cursor:pointer;font-size:.8rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.payment-page .radioi__radio{position:absolute;opacity:0;cursor:pointer}.payment-page .radioi__radio:checked~.radioi__selected{background-color:#00ab4e}.payment-page .radioi__radio:checked~.radioi__selected:after,.payment-page .radioi__radio:checked~.radioi__selected:before{display:block}.payment-page .radioi__selected{position:absolute;top:-2px;left:0;height:20px;width:20px;border:solid #4a4a4a 2px;background-color:#fff;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;border-radius:50%}.payment-page .radioi__selected:after{content:"";position:absolute;display:none;left:2px;top:2px;width:12px;height:12px;border:solid white 2px;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;border-radius:50%}.payment-page .radioi__selected:before{content:"";position:absolute;display:none;top:-2px;left:-2px;width:20px;height:20px;border-radius:50%;background:transparent;outline:3px solid transparent;outline-offset:3px;-webkit-box-shadow:0 0 0 4px #ffd432;-moz-box-shadow:0 0 0 4px #ffd432;box-shadow:0 0 0 4px #ffd432}.payment-page .confirm__wrapper{background:#f9f9f9;padding:5px;font-size:14px}.payment-page .confirm__wrapper label{margin-bottom:0}.payment-page .confirm__checkbox{position:absolute;opacity:0;z-index:999;zoom:1.75}.payment-page .confirm__checkbox+label{position:relative;cursor:pointer;padding:0;font-weight:500;font-size:14px}.payment-page .confirm__checkbox+label:before{content:"";margin-right:10px;display:inline-block;vertical-align:text-top;width:20px;height:20px;background:#fff;border:2px solid rgb(229.5,229.5,229.5);margin-left:0;margin-top:-2px}.payment-page .confirm__checkbox:focus+label:before{box-shadow:0 0 #0000001f}.payment-page .confirm__checkbox:checked+label:before{background:#00ab4e;border:2px solid #00ab4e;margin-left:0;margin-top:-2px}.payment-page .confirm__checkbox:disabled+label:before{box-shadow:none;background:#dfdfdf}.payment-page .confirm__checkbox:checked+label:after{content:"";position:absolute;
797left:5px;top:9px;background:#fff;width:2px;height:2px;box-shadow:2px 0 #fff,4px 0 #fff,4px -2px #fff,4px -4px #fff,4px -6px #fff,4px -8px #fff;transform:rotate(45deg)} 798`],encapsulation:2});let e=t;return e})(),Vwe=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[Ee,yE,ge,Rt,Vi,Bo,Ec]});let e=t;return e})(),Hwe=(()=>{let t=class t{constructor(){this._displayCountry=!1,this._oneline=!1}set postalAddress(n){this._postalAddress=n,this.getCountry(n.addressCountry)}get postalAddress(){return this._postalAddress}set displayCountry(n){this._displayCountry=n}get displayCountry(){return this._displayCountry}set oneline(n){this._oneline=n}get oneline(){return this._oneline}getCountry(n){this.country=P0.find(o=>o.id===n)?.name}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-postal-address"]],inputs:{postalAddress:"postalAddress",displayCountry:"displayCountry",oneline:"oneline"},standalone:!1,decls:3,vars:2,consts:[[1,"postal-address"],[1,"postal-address__oneline"],[1,"postal-address__street-line"],[1,"postal-address__locality"],[1,"postal-address__region"],[1,"postal-address__postal-code"],[1,"postal-address__country"]],template:function(o,r){o&1&&(p(0,"div",0),y(1,bie,3,2,"div",1),y(2,Eie,9,7,"div"),u()),o&2&&(d(),w(r.oneline?1:-1),d(),w(r.oneline?-1:2))},styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.postal-address__oneline[_ngcontent-%COMP%]{font-weight:600}.postal-address__street-line[_ngcontent-%COMP%], .postal-address__locality[_ngcontent-%COMP%], .postal-address__region[_ngcontent-%COMP%], .postal-address__postal-code[_ngcontent-%COMP%]{display:block;width:100%}"]});let e=t;return e})(),Gwe=(()=>{let t=class t{static forRoot(){return{ngModule:t,providers:[]}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge]});let e=t;return e})();var Uwe=(()=>{let t=class t{constructor(n){this.router=n,this.onStepClick=new L}ngOnInit(){this.updateStepsCount()}onClick(n){this.onStepClick.emit(n)}ngOnChanges(n){this.updateStepsCount()}getCustomTitle(){return this.config.customTitle.replace("{{currentStep}}",this.config.currentStep.toString()).replace("{{maxSteps}}",this.config.maxSteps.toString())}updateStepsCount(){this.stepsCount=Array(this.config.maxSteps).fill(0).map((n,o)=>o+1)}};t.\u0275fac=function(o){return new(o||t)(O(gi))},t.\u0275cmp=U({type:t,selectors:[["fab-progress-indicator"]],inputs:{config:"config"},outputs:{onStepClick:"onStepClick"},standalone:!1,features:[Ye],decls:7,vars:2,consts:[[1,"progress-indicator"],[1,"small",2,"margin-bottom","-6px"],[1,"progress-indicator__wrapper"],[1,"progress-indicator__container"],[3,"ngClass"],[3,"click","ngClass"]],template:function(o,r){o&1&&(p(0,"div",0),y(1,Tie,2,1,"p",1),y(2,Iie,4,3,"p",1),p(3,"div",2)(4,"div",3),X(5,Die,1,5,"span",4,se),u()()()),o&2&&(d(),w(r.config.customTitle?1:-1),d(),w(r.config.customTitle?-1:2),d(3),ee(r.stepsCount))},dependencies:[Ce],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.progress-indicator__wrapper[_ngcontent-%COMP%]{display:block}.progress-indicator__container[_ngcontent-%COMP%]{text-align:left;padding-bottom:2px;max-width:100%;display:flex;flex-wrap:wrap}.progress-indicator__container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:3px;padding-left:35px;margin-right:5px;background-color:#dce6f0;min-height:4px;margin-top:16px}.progress-indicator__selected[_ngcontent-%COMP%]{background-color:#4a4a4a!important}.progress-indicator__done[_ngcontent-%COMP%]{background-color:#00ab4e!important;cursor:pointer}"]});let e=t;return e})();var jwe=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge]});let e=t;return e})();var Wwe=(()=>{let t=class t{constructor(n){this.gtmService=n,this.onQualificationChanged=new L,this.dropdownContent={placeholder:"Change qualification",options:void 0,group:"quals"},this.firstLoad=!0}ngOnInit(){this.init()}ngOnChanges(n){n.content&&!n.content.firstChange&&this.init()}init(){if(this.content&&this.content.qualifications&&this.content.qualifications.length>0){let n=this.content.qualifications.map(o=>({label:o.name+(o.qualificationStandard?" ("+o.qualificationStandard+")":""),value:o.id}));this.selectedDropdownItem=n[0],this.selectedQualification=this.content.qualifications[0],this.dropdownContent.options=n,this.onQualificationChanged.emit(this.selectedQualification)}}onDropdownChange(n){if(n.length>0){if(this.selectedQualification=this.content.qualifications.find(o=>o.id===n[0].value),this.onQualificationChanged.emit(this.selectedQualification),!this.firstLoad){let o={event:"click_dropdown",element_type:"dropdown",element_text:n[0].label.toLowerCase()};this.gtmService.push(o)}this.firstLoad=!1}}};t.\u0275fac=function(o){return new(o||t)(O(Xn))},t.\u0275cmp=U({type:t,selectors:[["fab-qualification-picker-header"]],inputs:{content:"content"},outputs:{onQualificationChanged:"onQualificationChanged"},standalone:!1,features:[Ye],decls:1,vars:1,consts:[[1,"qualificaion-picker"],[3,"content"],["formControlName","QualDropdown",3,"content","fixedContent","selectContent"],["formControlName","QualDropdown",3,"outputReturnSelectedOptions","content","fixedContent","selectContent"]],template:function(o,r){o&1&&y(0,Oie,7,3,"div",0),o&2&&w(r.selectedQualification?0:-1)}
798,dependencies:[mse,wa],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.qualificaion-picker{text-align:left}.qualificaion-picker h1{font-family:acumin-pro-wide,Arial;color:#000;font-weight:600;margin-bottom:calc(15px - .6rem)}.qualificaion-picker fab-label:not(:first-of-type){margin-left:10px}.qualificaion-picker fab-dropdown-simple{display:inline-block;margin-top:.6rem}.qualificaion-picker fab-dropdown-simple div{display:inline-block}.qualificaion-picker fab-dropdown-simple .dropdown{display:flex;align-items:center}.qualificaion-picker fab-dropdown-simple .dropdown__input{padding:0 10px 0 0;border:none;background-color:transparent}.qualificaion-picker fab-dropdown-simple .dropdown__input>P,.qualificaion-picker fab-dropdown-simple .dropdown__input>i{color:#00ab4e;font-weight:600}.qualificaion-picker fab-dropdown-simple .dropdown__options{z-index:110;max-height:none;min-width:280px;top:35px}@media (min-width: 768px){.qualificaion-picker fab-dropdown-simple .dropdown__options{min-width:350px}}.qualificaion-picker fab-dropdown-simple .form__icon{display:none} 799`],encapsulation:2});let e=t;return e})(),$we=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,fse,Bs]});let e=t;return e})(),qwe=(()=>{let t=class t{constructor(){this.title="Select a qualification",this.nodes=[],this.selected=new L,this.featureFlagService=xe(zs),this.displayNodes=[],this.level0=null,this.level1=null,this.level2=null}ngOnInit(){this.displayNodes=[...this.nodes],this.preselectedId&&this.preselect()}ngOnChanges(n){n.nodes&&(this.displayNodes=[...this.nodes],this.featureFlagService.isFeatureEnabled("L4PAT").subscribe(o=>{o&&this.applyL4PATTransform()}),this.featureFlagService.isFeatureEnabled("L4PATB").subscribe(o=>{o&&this.applyL4PATBTransform()}),this.resetSelection())}selectLevel0(n){this.level0=n,this.level1=null,this.level2=null,n.children?.length===1&&this.selectLevel1(n.children[0])}selectLevel1(n){this.level1=n,this.level2=null,n.children?.length?n.children.length===1&&this.selectLevel2(n.children[0]):this.selected.emit(n.value)}selectLevel2(n){this.level2=n,this.selected.emit(n.value)}resetSelection(){this.level0=null,this.level1=null,this.level2=null}preselect(){for(let n of this.displayNodes)for(let o of n.children??[]){if(!o.children?.length&&o.id===this.preselectedId){this.level0=n,this.level1=o;return}for(let r of o.children??[])if(r.id===this.preselectedId){this.level0=n,this.level1=o,this.level2=r;return}}}flattenStandardAndMapSubheadings(n,o,r={}){let a=this.displayNodes.find(c=>c.id===n);if(!a?.children)return;let s=a.children.findIndex(c=>c.label===o),l=a.children[s]?.children??[];a.children=[...l,...a.children.filter((c,h)=>h!==s)];for(let c of a.children)r[c.id]&&(c.tooltip=r[c.id])}applyL4PATTransform(){this.flattenStandardAndMapSubheadings("Accounting qualifications","2022",{"b0457078-ba34-eb11-8116-00505693c1d6":"Q2022 - Registration closes 31 August 2026","d47818d9-c6a2-f011-81de-00155d0a7e45":"L4PAT - New version opens for registration 1 September 2026"})}applyL4PATBTransform(){this.flattenStandardAndMapSubheadings("Level 4","2022",{level4UnitCost:"Q2022 - Registration closes 31 August 2026",level4PATUnitCost:"L4PAT - New version opens for registration 1 September 2026"})}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-qualification-picker"]],inputs:{title:"title",nodes:"nodes",preselectedId:"preselectedId"},outputs:{selected:"selected"},standalone:!1,features:[Ye],decls:9,vars:1,consts:[[1,"qualification-picker"],[1,"row"],[1,"col-sm-12"],[1,"choose-type"],[1,"choose-type__container"],["type","radio","name","level0",1,"choose-type__radio",3,"click","value","checked"],[1,"choose-type__selected"],[1,"choose-type__confirm"],["type","radio","name","level1",1,"choose-type__radio",3,"click","value","checked"],[1,"choose-type__qual-extra-info"],["type","radio","name","level2",1,"choose-type__radio",3,"click","value","checked"]],template:function(o,r){o&1&&(p(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h4")(5,"strong"),C(6),u()(),X(7,Hie,6,4,"div",null,D0),u()()()()),o&2&&(d(6),R(r.title),d(),ee(r.displayNodes))},styles:['[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.qualification-picker[_ngcontent-%COMP%]{margin-top:3vh;margin-left:1rem}.qualification-picker[_ngcontent-%COMP%] .choose-type[_ngcontent-%COMP%]{background:#fff;font-size:14px}.qualification-picker[_ngcontent-%COMP%] .choose-type__notification[_ngcontent-%COMP%]{max-width:600px;width:100%;padding-bottom:3%}.qualification-picker[_ngcontent-%COMP%] .choose-type[_ngcontent-%COMP%] h4[_ng
799content-%COMP%]{margin-bottom:30px}.qualification-picker[_ngcontent-%COMP%] .choose-type[_ngcontent-%COMP%] .filter-title[_ngcontent-%COMP%]{font-size:14px}@media (min-width: 992px){.qualification-picker[_ngcontent-%COMP%] .choose-type[_ngcontent-%COMP%] .filter-title[_ngcontent-%COMP%]{font-size:18px}}.qualification-picker[_ngcontent-%COMP%] .choose-type[_ngcontent-%COMP%] .filter-title[_ngcontent-%COMP%] .col-sm-12[_ngcontent-%COMP%]{background:#fff}.qualification-picker[_ngcontent-%COMP%] .choose-type[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:400;background:#fff}.qualification-picker[_ngcontent-%COMP%] .choose-type__container[_ngcontent-%COMP%]{display:block;position:relative;padding-left:35px;margin-bottom:13px;cursor:pointer;font-size:1rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.qualification-picker[_ngcontent-%COMP%] .choose-type__scottish-name[_ngcontent-%COMP%]{margin-top:.5rem}.qualification-picker[_ngcontent-%COMP%] .choose-type__radio[_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer}.qualification-picker[_ngcontent-%COMP%] .choose-type__radio[_ngcontent-%COMP%]:focus + .choose-type__selected[_ngcontent-%COMP%]:before{-webkit-box-shadow:0 0 0 4px #ffd432;-moz-box-shadow:0 0 0 4px #ffd432;box-shadow:0 0 0 4px #ffd432}.qualification-picker[_ngcontent-%COMP%] .choose-type__radio[_ngcontent-%COMP%]:checked ~ .choose-type__selected[_ngcontent-%COMP%]{background-color:#00ab4e;border:2px solid #00ab4e}.qualification-picker[_ngcontent-%COMP%] .choose-type__radio[_ngcontent-%COMP%]:checked ~ .choose-type__selected[_ngcontent-%COMP%]:after, .qualification-picker[_ngcontent-%COMP%] .choose-type__radio[_ngcontent-%COMP%]:checked ~ .choose-type__selected[_ngcontent-%COMP%]:before{display:block}.qualification-picker[_ngcontent-%COMP%] .choose-type__qual-extra-info[_ngcontent-%COMP%]{font-size:12px;margin-top:-10px;margin-bottom:10px;margin-left:2.5rem;color:#31373e}.qualification-picker[_ngcontent-%COMP%] .choose-type__selected[_ngcontent-%COMP%]{box-sizing:content-box;position:absolute;top:0;left:0;height:20px;width:20px;border:solid #000000 2px;background-color:#fff;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;border-radius:50%}@media (min-width: 1200px){.qualification-picker[_ngcontent-%COMP%] .choose-type__selected[_ngcontent-%COMP%]{top:4px}}.qualification-picker[_ngcontent-%COMP%] .choose-type__selected[_ngcontent-%COMP%]:after{content:"";position:absolute;display:none;left:2px;top:2px;width:12px;height:12px;border:solid white 2px;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;border-radius:50%;box-sizing:unset}.qualification-picker[_ngcontent-%COMP%] .choose-type__selected[_ngcontent-%COMP%]:before{content:"";position:absolute;display:none;top:0;left:0;width:20px;height:20px;border-radius:50%;background:transparent;outline:3px solid transparent;outline-offset:3px;box-sizing:unset}.qualification-picker[_ngcontent-%COMP%] .choose-type__confirm[_ngcontent-%COMP%]{border-left:4px solid #00ab4e;margin:-8px 0 10px 8px;padding:20px 10px 0 35px}@media (min-width: 1200px){.qualification-picker[_ngcontent-%COMP%] .choose-type__confirm[_ngcontent-%COMP%]{font-size:14px}}']});let e=t;return e})(),Ywe=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,Rt,Ec,Us]});let e=t;return e})(),Ese={"Accounting qualifications":1,"Bookkeeping qualifications":2,"Business Skills":3,"Diploma in Accounting and Business":4,Apprenticeships:5,"AAT Advanced Award in GCC Value Added Tax":6},Mse={Access:1,2022:2,2016:3,2013:4,"2013 (New Zealand)":5,2012:6,2010:7};function RS(e){return(t,i)=>(e[t]??1/0)-(e[i]??1/0)}function FS(e,t){return e.onlineDisplaySequence!==t.onlineDisplaySequence?e.onlineDisplaySequence-t.onlineDisplaySequence:e.name<t.name?-1:e.name>t.name?1:0}function Kwe(e){let t={};for(let i of e){let n=i.qualificationGroupName;if(!n)continue;t[n]||(t[n]={_direct:{}});let o=i.qualificationStandardName;o?(t[n][o]||(t[n][o]=[]),t[n][o].push(i)):t[n]._direct[i.name]=i}return Object.keys(t).sort(RS(Ese)).map(i=>{let n=t[i],o=Object.keys(n).filter(s=>s!=="_direct").sort(RS(Mse)),r=Object.values(n._direct).sort(FS),a=[...o.map(s=>
799({id:s,label:s,children:n[s].sort(FS).map(l=>OS(l))})),...r.map(s=>OS(s))];return{id:i,label:i,children:a}})}function OS(e){return{id:e.programmeComponentId,label:e.name.replace("AAT ",""),sublabel:e.scottishName?`${e.scottishName.replace("AAT ","")}`:void 0,value:e}}function Qwe(e){let t={};for(let n of e){let o=n.qualificationLevel?.includes("Apprenticeship")?n.qualificationLevel:`Level ${n.qualificationLevel}`;t[o]||(t[o]={standards:{},direct:[]}),n.standard?(t[o].standards[n.standard]||(t[o].standards[n.standard]=[]),t[o].standards[n.standard].push(n)):t[o].direct.push(n)}let i=n=>({id:n.keycode,label:n.title,sublabel:n.parentQualificationTitle?n.parentQualificationTitle:void 0,value:n});return Object.keys(t).sort((n,o)=>{let r=parseInt(n.replace(/\D/g,""),10),a=parseInt(o.replace(/\D/g,""),10);return r-a}).map(n=>({id:n,label:n,children:[...Object.keys(t[n].standards).map(o=>({id:`${n}__${o}`,label:o,children:t[n].standards[o].sort((r,a)=>r.order-a.order).map(i)})),...t[n].direct.sort((o,r)=>o.order-r.order).map(i)]}))}var Jwe=(()=>{let t=class t{constructor(){this.links=[],this.icon={content:{colour:li.BLACK,iconName:Zi.arrow},size:_a.SMALL}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-quick-links-panel"]],inputs:{links:"links"},decls:10,vars:0,consts:[["aria-label","Quick links",1,"ql-panel"],[1,"ql-panel__header"],[1,"ql-panel__heading"],[1,"ql-panel__subheading"],[1,"ql-panel__list"],[1,"ql-panel__list__item"],[1,"ql-panel__link",3,"href"],[1,"ql-panel__link",3,"routerLink"],[1,"ql-panel__link__icon",3,"content","size"]],template:function(o,r){o&1&&(p(0,"nav",0)(1,"div",1)(2,"h2",2)(3,"strong"),C(4," Quick Links "),u()(),p(5,"h3",3),C(6," Get what you need faster "),u()(),p(7,"ul",4),X(8,jie,3,2,"li",5,I0),u()()),o&2&&(d(8),ee(r.links))},dependencies:[tt,Cr,Zn],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.ql-panel[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;color:var(--aat-slate);border:2.5px solid #008048;border-radius:5px}.ql-panel__header[_ngcontent-%COMP%]{background-color:#fff;padding:12px 10.5px;border-bottom:.5px solid #000000;border-radius:2.5px 2.5px 0 0}.ql-panel__heading[_ngcontent-%COMP%]{font-size:14px;margin-bottom:1em;font-weight:semi-bold}.ql-panel__subheading[_ngcontent-%COMP%]{font-size:12px}.ql-panel__list[_ngcontent-%COMP%]{background-color:#fff;border-bottom-left-radius:2.5px;border-bottom-right-radius:2.5px}.ql-panel__list__item[_ngcontent-%COMP%]{margin:0}.ql-panel__link[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:baseline;padding:12px 10.5px;width:100%;font-weight:400;font-size:14px;color:#000}.ql-panel__link__icon[_ngcontent-%COMP%]{width:10px;height:10px}.ql-panel__link[_ngcontent-%COMP%]:hover{text-decoration:none;color:#008048;transition:none;background-color:#f2f2f2}"]});let e=t;return e})(),Zwe=(()=>{let t=class t{constructor(){this.bookMarkCount=0}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-spotlight-links"]],inputs:{links:"links",userRole:"userRole",bookMarkCount:"bookMarkCount"},decls:7,vars:6,consts:[[1,"spotlight-links"],["id","myAatLinkOne",3,"href","backgroundImage","target"],["id","myAatLinkOne",3,"routerLink","backgroundImage"],["id","myAatLinkThree",3,"href","backgroundImage","target"],["id","myAatLinkThree",3,"routerLink","backgroundImage"],["id","myAatLinkOne",3,"href","target"],["id","myAatLinkOne",3,"routerLink"],["id","myAatLinkTwo",3,"href","target"],["id","myAatLinkTwo",3,"routerLink"],["id","myAatLinkThree",3,"href","target"],["id","myAatLinkThree",3,"routerLink"]],template:function(o,r){o&1&&(p(0,"div",0),y(1,Wie,4,7,"a",1),y(2,$ie,4,6,"a",2),y(3,Kie,2,2),y(4,Zie,2,2),y(5,Xie,4,7,"a",3),y(6,ene,4,6,"a",4),u()),o&2&&(d(),w(r.links.linkOne.useRouterLink?-1:1),d(),w(r.links.linkOne.useRouterLink?2:-1),d(),w(r.userRole!=="guest"?3:-1),d(),w(r.userRole==="guest"?4:-1),d(),w(r.links.linkThree.useRouterLink?-1:5),d(),w(r.links.linkThree.useRouterLink?6:-1))},dependencies:[tt],styles:['[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.spotlight-links[_ngcontent-%COMP%]{box-sizing:border-box;display:flex;flex-wrap:wrap;justify-content:space-between;vertical-align:bottom;row-gap:15px}.spotlight-links[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .spotlight-links[_ngcontent-%COMP%] h4[_ng
799content-%COMP%]{font-weight:600}.spotlight-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;position:relative;flex-direction:column;padding:15px 10px;border-radius:3px;background-size:cover;background-position:center;justify-content:center;box-sizing:border-box;width:100%;min-height:105px;text-align:center}.spotlight-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .spotlight-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:inline-block}.spotlight-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:16px;color:#000}.spotlight-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:nth-child(1), .spotlight-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:nth-child(3){background-color:#00ab4e;color:#fff}.spotlight-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:nth-child(1) h4[_ngcontent-%COMP%], .spotlight-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:nth-child(3) h4[_ngcontent-%COMP%]{position:relative;color:#fff;z-index:1}.spotlight-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:nth-child(2){background-color:#fff;border:1px solid #dce6f0;color:#000}.spotlight-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:nth-child(2) h4[_ngcontent-%COMP%]{color:#000}.spotlight-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:nth-child(3)[style^="background-image:"]{min-height:165px}.spotlight-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:nth-child(3):after{content:"";position:absolute;bottom:0;left:0;width:100%;height:50px}@media (min-width: 992px){.spotlight-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:30%;min-height:50px}}']});let e=t;return e})(),Xwe=(()=>{let t=class t{constructor(){this.links=[],this.open=!1,this.icon={content:{colour:li.BLACK,iconName:Zi.arrow},size:_a.SMALL}}toggle(){this.open=!this.open}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-quick-links-accordion"]],inputs:{links:"links"},decls:8,vars:8,consts:[["aria-label","Quick links",1,"ql-panel"],[1,"ql-panel__header"],["type","button","aria-controls","quicklinks-panel","id","open-panel-btn",1,"ql-panel__btn",3,"click","aria-expanded"],[1,"ql-panel__btn-text"],[1,"ql-panel__header__btn-icon",3,"content","size"],["id","panel","role","region","aria-labelledby","open-panel-btn",1,"ql-panel__list",3,"hidden"],[1,"ql-panel__list__item"],[1,"ql-panel__link",3,"href"],[1,"ql-panel__link",3,"routerLink"],[1,"ql-panel__link__icon",3,"content","size"]],template:function(o,r){o&1&&(p(0,"nav",0)(1,"div",1)(2,"button",2),T("click",function(){return r.toggle()}),p(3,"h2",3)(4,"strong"),C(5," Quick Links "),u()(),x(6,"fab-aat-icon",4),u()(),y(7,one,3,1,"ul",5),u()),o&2&&(d(),Pe("open",r.open),d(),hv("aria-expanded",r.open),d(4),Pe("rotate",r.open),v("content",r.icon.content)("size",r.icon.size),d(),w(r.open?7:-1))},dependencies:[tt,Cr,Zn],styles:['[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.ql-panel[_ngcontent-%COMP%]{--transition-timing: .22s;width:100%;display:flex;flex-direction:column;color:var(--aat-slate);border:1.5px solid #008048;border-radius:3px}.ql-panel__header[_ngcontent-%COMP%]{position:relative;background-color:#f2f2f2;padding:12px 10.5px;color:#000;font-weight:semi-bold}.ql-panel__header__btn-icon[_ngcontent-%COMP%]{width:10px;height:10px;transition:transform var(--transition-timing) ease-in-out}.ql-panel__header__btn-icon.rotate[_ngcontent-%COMP%]{transform:rotate(90deg)}.ql-panel__header.open[_ngcontent-%COMP%]{border-bottom:.5px solid #000000}.ql-panel__btn[_ngcontent-%COMP%]{padding:0;border:none;appearance:initial;background-color:inherit;display:flex;justify-content:space-between;align-items:baseline;width:100%}.ql-panel__btn[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.ql-panel__btn-text[_ngcontent-%COMP%]{font-size:14px}.ql-panel__list[_ngcontent-%COMP%]{background-color:#fff;overflow:hidden}.ql-panel__list__item[_ngcontent-%COMP%]{margin:0}.ql-panel__link[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:baseline;padding:12px 10.5px;width:100%;font-weight:400;font-size:14px;color:#000;line-height:18px;height:40px}.ql-panel__link__icon[_ngcontent-%COMP%]{width:10px;height:10px}.ql-panel__link[_ngcontent-%COMP%]:hover{text-decoration:none;background-color:#f9f9f9;color:#008048}.ql-panel[_ngcontent-%COMP%] .ql-accordion-expand[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_qlAccordionExpand var(--transition-timing) ease-out both}.ql-panel[_ngcontent-%COMP%] .ql-accordion-collapse[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_qlAccordionCollapse var(--transition-timing) ease-in both}@keyframes _ngcontent-%COMP%_qlAccordionExpand{0%{max-height:0}to{max-height:320px}}@keyframes _ngcontent-%COMP%_qlAccordionCollapse{0%{max-height:320px}to{max-height:0}}']});let e=t;return e})();var exe=(()=>{let t=class t{get content(){return this._content}set content(n){let o=n.textColor?n.textColor:"white";this._content=n,this.button={text:n.linkText,action:{type:"link",link:n.link,openInNewTab:n.newTab,useRouterLink:!1},type:"secondary",aria:`${n.linkText}`}}constructor(){}ngOnInit(){this._textColor=this._content.textColor?this.content.textColor:"white"}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-rhc-promo"]],inputs:{content:"content"},standalone:!1,decls:8,vars:12,consts:[[1,"rhc-promo"],["alt","",3,"src"],[3,"innerHTML"],[1,"fs-14"],[3,"button"]],template:function(o,r){o&1&&(p(0,"div",0),x(1,"img",1),p(2,"h4"),C(3),u(),x(4,"p",2),p(5,"p",3),C(6),u(),x(7,"fab-button",4),u()),o&2&&(xt("background-image",r.content.backgroundImage?"url("+r.content.backgroundImage+")":"none")("background-color",r.content.backgroundColor)("color",r._textColor),d(),v("src",ne(r.content.logo),ae),d(2),R(r.content.title),d(),v("innerHTML",r.content.content,ue),d(2),R(r.content.subContent),d(),v("button",r.button))},dependencies:[Ee],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.rhc-promo{text-align:center;padding:30px 15px 40px;background-size:contain;background-repeat:no-repeat;background-position:center}.rhc-promo img{max-width:60px;margin:0 auto 20px}.rhc-promo h4{margin-bottom:20px;color:inherit}.rhc-promo p{margin-bottom:30px;color:inherit}@media (min-width: 992px){.rhc-promo{padding:30px 10px 20px}.rhc-promo img,.rhc-promo h4{margin-bottom:10px}.rhc-promo p{margin-bottom:20px}}@media (min-width: 1200px){.rhc-promo{padding:30px 20px 20px}}.rhc-promo .fs-14{font-size:14px} 800`],encapsulation:2});let e=t;return e})(),txe=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,Ee]});let e=t;return e})(),ixe=(()=>{let t=class t{constructor(){this.selection=new L,this.overlayClosed=new L,this.mobileFilterButton={text:"Show results",type:"primary",action:{type:"callback",callback:()=>this.closeOverlay()},aria:"Show results"}}
800ngOnInit(){this.closedByDefault&&this.content.categories.forEach(n=>{n.accordionClosed=!0}),this.content.categories.forEach(n=>{n.accordionClosed===void 0&&(n.accordionClosed=!1)})}accordionInteraction(n){this.content.categories[n].accordionClosed=!this.content.categories[n].accordionClosed}generateLabel(n,o){return`${this.content.categories[n].options[o].label}${this.content.categories[n].options[o].total?` (${this.content.categories[n].options[o].total})`:""}`}applyFilter(n,o,r){let a;typeof n!="boolean"?a=!!n.value:a=n;let s={id:this.content.categories[o].options[r].id,selected:a,category:this.content.categories[o].accordionTitle,label:this.content.categories[o].options[r].label,filter:this.content.categories[o].options[r].filterString||this.content.categories[o].options[r].filterNumber};this.selection.emit(s)}closeOverlay(){this.overlayClosed.emit(!1)}removeSpaces(n){return n.replace(/\s*/g,"")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-side-filter"]],inputs:{content:"content",closedByDefault:"closedByDefault",isMobile:"isMobile",openOverlay:"openOverlay"},outputs:{selection:"selection",overlayClosed:"overlayClosed"},standalone:!1,decls:9,vars:9,consts:[[1,"filter-body"],[1,"filter-body__title"],[1,"filter-body__overlay--show_close"],[1,"filter-body__confirm"],[1,"filter-body__overlay--show_close",3,"click"],[1,"icon","icon-cross"],[1,"filter-body__header",3,"click"],[1,"filter-body__header--title"],[1,"filter-body__header--tooltip"],[1,"icon","filter-body__header--icon",3,"ngClass"],[1,"icon","icon-info",3,"tooltip","positionInput"],[3,"ngClass"],[1,"filter-body__checkbox"],[3,"onChange","content","isChecked"],[1,"filter-body__radio"],[3,"selectEvent","content","checkedVal"],[3,"button"]],template:function(o,r){o&1&&(p(0,"div",0)(1,"div",1)(2,"h5")(3,"strong"),C(4),u()(),y(5,lne,2,0,"div",2),u(),X(6,mne,13,9,"div",null,se),y(8,fne,2,1,"div",3),u()),o&2&&(Pe("filter-body__overlay",r.isMobile)("filter-body__overlay--show",r.isMobile&&r.openOverlay),d(),Pe("filter-body__title--overlay",r.isMobile),d(3),A(" ",r.content.heading," "),d(),w(r.isMobile?5:-1),d(),ee(r.content.categories),d(2),w(r.isMobile?8:-1))},dependencies:[Ce,jp,Gp,zo,Ee],styles:['[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.filter-body[_ngcontent-%COMP%]{width:auto;padding:15px 15px 0 0;overflow-y:auto;max-height:80vh}.filter-body__overlay[_ngcontent-%COMP%]{content:"";display:none;position:fixed;padding:10px;top:10%;right:2%;height:90vh;width:90vw;z-index:2000;background:#fff;border:2px solid #dfe1e5;box-shadow:0 20px 20px 20px #1a1a1a33}.filter-body__overlay--show[_ngcontent-%COMP%]{display:block}.filter-body__overlay--show_close[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;z-index:0}@media (min-width: 992px){.filter-body[_ngcontent-%COMP%]{width:100%;max-width:280px;visibility:visible;position:relative}}.filter-body__header[_ngcontent-%COMP%]{display:flex;align-items:center}.filter-body__header--title[_ngcontent-%COMP%]{padding-right:5px}@media (min-width: 992px){.filter-body__header--title[_ngcontent-%COMP%]{flex-grow:1}}.filter-body__header--title[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.75em}.filter-body__header--tooltip[_ngcontent-%COMP%]{display:flex;align-items:center;height:100%;color:#00ab4e;margin:0 15px;flex-grow:1;justify-content:start}@media (min-width: 992px){.filter-body__header--tooltip[_ngcontent-%COMP%]{justify-content:center;flex-grow:inherit}}.filter-body__header--icon[_ngcontent-%COMP%]{justify-self:flex-end;align-self:center}.filter-body__title[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.filter-body__title--overlay[_ngcontent-%COMP%]{position:sticky;top:-20px;z-index:2001;background:#fff;padding:20px 0}.filter-body__confirm[_ngcontent-%COMP%]{padding:15px}.filter-body__checkbox[_ngcontent-%COMP%]{min-height:15px;padding-bottom:10px;font-size:.75em}.filter-body__radio[_ngcontent-%COMP%]{padding-bottom:3px;font-size:.75em}.filter-body[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-top:1px rgb(229.5,229.5,229.5) solid}.hidden[_ngcontent-%COMP%]{display:none}'],data:{animation:[jo("closeOpenAccordion",[co("true",Pt({height:"0px"})),co("false",Pt({height:"*"})),fi("false <=> true",mi(50))])]}});let e=t;return e})(),nxe=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,Us,Bo,Ee]});let e=t;return e})(),oxe=(()=>{let t=class t{constructor(){this.isLoading=!1,this._overlay=null,this._resizeObserver=null,this._host=xe($t),this._renderer=xe(Rn)}ngOnChanges(n){"isLoading"in n&&(this.isLoading?this._showSkeleton():this._hideSkeleton())}_showSkeleton(){let n=this._host.nativeElement;if(n.tagName.toLowerCase()==="img")this._wrapImage(n);else{let o=getComputedStyle(n);o.display==="inline"&&this._renderer.setStyle(n,"display","inline-block"),o.position==="static"&&this._renderer.setStyle(n,"position","relative"),this._renderer.setStyle(n,"color","transparent"),this._renderer.setStyle(n,"visibility","hidden"),this._createOverlay(n,o),this._observeResize(n)}}_createOverlay(n,o){this._overlay||(this._overlay=this._renderer.createElement("div"),this._renderer.setStyle(this._overlay,"position","absolute"),this._renderer.setStyle(this._overlay,"inset","0"),this._renderer.setStyle(this._overlay,"borderRadius",o.borderRadius||"4px"),this._renderer.setStyle(this._overlay,"backgroundSize","200% 100%"),this._renderer.setStyle(this._overlay,"animation","skeleton-shimmer 1.2s infinite"),this._renderer.setStyle(this._overlay,"visibility","visible"),this._renderer.setStyle(this._overlay,"backgroundImage",`linear-gradient( 801 90deg, 802 var(--aat-ui-grey-25) 0%, 803 var(--aat-ui-grey-05) 50%, 804 var(--aat-ui-grey-25) 100% 805 )`),this._renderer.appendChild(n,this._overlay))}_wrapImage(n){let o=n.width||n.clientWidth,r=n.height||n.clientHeight,a=this._renderer.createElement("div");this._renderer.setStyle(a,"position","relative"),this._renderer.setStyle(a,"display","inline-block"),this._renderer.setStyle(a,"width",`${o}px`),this._renderer.setStyle(a,"height",`${r}px`);let s=n.parentNode;if(!s)return;this._renderer.insertBefore(s,a,n),this._renderer.removeChild(s,n),this._renderer.appendChild(a,n),this._renderer.setStyle(n,"visibility","hidden");let l=getComputedStyle(n);this._createOverlay(a,l),this._observeResize(a),this._host.nativeElement.__skeletonWrapper=a}_observeResize(n){this._resizeObserver||(this._resizeObserver=new ResizeObserver(()=>{if(this._overlay){let o=getComputedStyle(n);this._renderer.setStyle(this._overlay,"borderRadius",o.borderRadius||"4px")}}),this._resizeObserver.observe(n))}
805_hideSkeleton(){let n=this._host.nativeElement,o=n.__skeletonWrapper;if(o){let r=o.parentNode,a=o.querySelector("img");r&&a&&(this._overlay&&(this._renderer.removeChild(o,this._overlay),this._overlay=null),this._renderer.setStyle(a,"visibility",null),this._renderer.insertBefore(r,a,o),this._renderer.removeChild(r,o)),n.__skeletonWrapper=null;return}this._overlay&&(this._renderer.removeChild(n,this._overlay),this._overlay=null),this._renderer.removeStyle(n,"color"),this._renderer.removeStyle(n,"visibility"),this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}ngOnDestroy(){this._resizeObserver?.disconnect()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=di({type:t,selectors:[["","fabSkeleton",""]],inputs:{isLoading:[0,"fabSkeleton","isLoading"]},features:[Ye]});let e=t;return e})();var rxe=(()=>{let t=class t{constructor(n){this.sanitizer=n,this.sanitizer=n}checkAudioLinkExists(){return this.config.link||console.error("Could not find link for audio "+this.config.link),this.config.link}iframeSrc(){return this.sanitizer.bypassSecurityTrustResourceUrl(`https://w.soundcloud.com/player/?url=${this.config.link}&color=%2361cc99&auto_play=false&hide_related=true&show_comments=false&show_user=true&show_reposts=false&show_teaser=false`)}};t.\u0275fac=function(o){return new(o||t)(O(yn))},t.\u0275cmp=U({type:t,selectors:[["fab-soundcloud"]],inputs:{config:"config"},standalone:!1,decls:1,vars:1,consts:[[1,"soundcloud","dont-print"],["width","100%","height","166","scrolling","no","frameborder","no","allow","autoplay",3,"src"]],template:function(o,r){o&1&&y(0,vne,2,1,"div",0),o&2&&w(r.checkAudioLinkExists()?0:-1)},styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2} 806`],encapsulation:2,changeDetection:0});let e=t;return e})(),axe=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge]});let e=t;return e})();var sxe=(()=>{let t=class t{constructor(n){this.config=n,this.showHeader=!1,this.editBasket={action:{type:"callback",callback:this.basket.bind(this)},text:"Edit basket",aria:"Edit basket",type:"text"},this.env=n.environment}onResize(n){n.target.innerWidth>992&&this.close()}ngOnInit(){this.total||(this.total=this.subTotal,this.fees&&(this.total+=this.fees?.reduce((n,o)=>n+o.amount,0)))}open(){this.showHeader=!0}close(){this.showHeader=!1}basket(){window.scrollTo(0,0)}};t.\u0275fac=function(o){return new(o||t)(O("fabricServicesConfig"))},t.\u0275cmp=U({type:t,selectors:[["fab-summary"]],hostBindings:function(o,r){o&1&&T("resize",function(s){return r.onResize(s)},yr)},inputs:{basketItems:"basketItems",showHeader:"showHeader",headerText:"headerText",subheadingText:"subheadingText",subTotal:"subTotal",total:"total",discounts:"discounts",fees:"fees",returnLink:"returnLink",stackValues:"stackValues"},standalone:!1,decls:21,vars:9,consts:[[1,"summary__wrapper",3,"className"],[1,"summary__basketm"],[1,"icon","icon-cart"],[1,"summary__basketw"],[1,"summary__header"],[1,"summary__amt"],[3,"className"],[1,"row"],[1,"col-xs-7"],[1,"col-xs-5","summary__edit-basket"],[1,"col-xs-12"],[1,"basket__total",2,"padding-top","10px",3,"className"],[2,"padding-top","10px",3,"className"],[2,"padding-top","20px",3,"className"],[1,"summary__header",3,"click"],[1,"summary__txtm"],[1,"summary__icon"],[1,"icon","icon-arrow-down"],[1,"summary__txtw"],[1,"icon","icon-arrow-up"],[3,"button"],[1,"summary__subheading"],[1,"col-xs-10"],[1,"basket__scottish_level"],[1,"col-xs-2","small",2,"text-align","right"],[1,"row",2,"padding-top","10px"],[1,"small",3,"innerHTML"],[1,"col-xs-2",2,"text-align","right"],[1,"separator"],[1,"col-xs-10","small"],[1,"discount","col-xs-2","small",2,"text-align","right"],[1,"basket__total"],[1,"col-xs-2"],[1,"basket__total",2,"text-align","right"]],template:function(o,r){o&1&&(p(0,"div",0)(1,"div",1),x(2,"i",2),u(),p(3,"div",3),x(4,"i",2),u(),y(5,Cne,7,1,"div",4),y(6,bne,5,0,"div",4),y(7,_ne,3,3,"div",5),u(),p(8,"div",6)(9,"div",7),x(10,"div",8),y(11,yne,2,1,"div",9),y(12,wne,3,1,"div",10),u(),X(13,Sne,18,10,"div",null,se),y(15,kne,8,4,"div",11),X(16,Ene,6,5,"div",12,se),X(18,Mne,6,5,"div",12,se),y(20,Tne,10,4,"div",13),u()),o&2&&(v("className",r.showHeader?"summary__wrapper summary__wrapper-open":"summary__wrapper summary__wrapper-close"),d(5),w(r.showHeader?-1:5),d(),w(r.showHeader?6:-1),d(),w(r.subTotal?7:-1),d(),v("className",r.showHeader?"detail__wrapper-open":"detail__wrapper"),d(3),w(r.returnLink?11:-1),d(),w(r.subheadingText?12:-1),d(),ee(r.basketItems),d(2),w(r.subTotal?15:-1),d(),ee(r.fees),d(2),ee(r.discounts),d(2),w(r.total?20:-1))},dependencies:()=>[Ee,Tse],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}a:not([href]):not([tabindex]){color:#00ab4e}a:not([href]):not([tabindex]):hover,a:not([href]):not([tabindex]):focus{color:#0a5c50}.basket__total{padding-bottom:15px}.separator{margin:10px 0 15px;border-color:#dce6f0}.summary .basket__scottish_level{font-size:.8em}.summary__icon{font-size:1.3em;position:relative;top:3px}.summary__wrapper{display:flex;align-items:center;background:#f9f9f9;padding:15px;border:1px solid rgb(229.5,229.5,229.5);color:#00ab4e;font-weight:600;pointer-events:all;cursor:pointer}@media (min-width: 992px){.summary__wrapper{pointer-events:none}}.summary__header{padding-left:25px;display:flex;align-items:center;justify-content:space-between;width:100%}.summary__subheading{font-weight:400;color:#000;font-size:14px;margin-bottom:15px}.summary__edit-basket{text-align:right;padding:35px 0 25px}.summary__edit-basket fab-button .button-text{font-size:11px}@media (min-width: 1200px){.summary__edit-basket fab-button .button-text{font-size:14px}}.summary__txtw{display:none}.summary__txtm{position:relative}.summary__amt{float:right;margin-top:-20px;color:#000}.summary__basketm{float:left;padding-top:1px}.summary__basketm i{font-size:16px;color:#00ab4e}.summary__basketw{display:none}@media (min-width: 992px){.summary__wrapper{background:#f8f8f8;padding:15px;border:1px solid #dce6f0;font-weight:600;margin-top:10px}.summary__wrapper-open{margin-top:15px}.summary__txtm{display:none}.summary__txtw{position:relative;display:block;color:#000;font-size:14px}.summary__amt,.summary__icon{display:none}.summary__basketw{float:left;padding-top:1px;color:#000;display:block}.summary__basketw i{font-size:16px}.summary__basketm{display:none}}.detail__wrapper .edit-basket-link{margin:20px 0;display:block}.detail__wrapper ul{margin:-20px 0 0}.detail__wrapper ul li{list-style:disc!important;margin:1em}.detail__wrapper{display:none}.detail__wrapper-open{border-bottom:2px solid #dce6f0;border-top:0px;margin-bottom:30px;padding-top:15px;padding-left:15px;padding-right:15px;background:#f8f8f8}.detail__wrapper-open .edit-basket-link{margin:20px 0;display:block}.detail__wrapper-open ul li{list-style:disc!important;margin:1em}@media (min-width: 992px){.detail__wrapper{padding:15px;border:1px solid #dce6f0;border-top:0;margin-right:0;background:#f8f8f8;display:block}}.stack-values{display:flex}@media (min-width: 992px){.stack-values{flex-direction:column}.stack-values__space{margin-bottom:10px}}.discount{white-space:nowrap} 807`],encapsulation:2});let e=t;return e})(),Tse=(()=>{let t=class t{transform(n){return n.toFixed(2)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275pipe=et({name:"toFixed",type:t,pure:!0,standalone:!1});let e=t;return e})(),lxe=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,Ee]});let e=t;return e})(),cxe=(()=>{let t=class t{constructor(){}ngOnInit(){this.hasTitle=this.content.title&&this.content.title.length>0}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-tab-nav"]],inputs:{content:"content"},standalone:!1,decls:8,vars:4,consts:[[1,"tab-nav"],[1,"row"],[1,"tab-nav__title","col-xs-12","col-md-3"],[1,"tab-nav__list","col-xs-12",3,"ngClass"],[1,"col-xs-6","col-md-3"],[3,"button"]],template:function(o,r){o&1&&(p(0,"div",0)(1,"div",1),y(2,Dne,3,1,"div",2),p(3,"div",3)(4,"div")(5,"div",1),X(6,Pne,2,1,"div",4,se),u()()()()()),o&2&&(d(2),w(r.hasTitle?2:-1),d(),v("ngClass",z(2,Ine,r.hasTitle)),d(3),ee(r.content.items))},dependencies:[Ce,Nre],styles:['[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.tab-nav__title[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-family:acumin-pro-wide,Ar
807ial}.tab-nav__title[_ngcontent-%COMP%]{padding:23px 15px}.tab-nav__list[_ngcontent-%COMP%]{text-align:center;border:1px solid rgb(229.5,229.5,229.5);border-left:none;border-right:none}.tab-nav__list--titled[_ngcontent-%COMP%]{position:relative}.tab-nav__list--titled[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;bottom:0;left:0;width:20px;background-image:-o-linear-gradient(90deg,white,rgba(255,255,255,0));background-image:-moz-linear-gradient(90deg,white,rgba(255,255,255,0));background-image:-webkit-linear-gradient(90deg,white,rgba(255,255,255,0));background-image:linear-gradient(90deg,#fff,#fff0);z-index:1;display:none}.tab-nav__list[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{position:relative}@media (min-width: 1200px){.tab-nav[_ngcontent-%COMP%]{border:1px solid rgb(229.5,229.5,229.5);border-left:none;border-right:none}.tab-nav__title[_ngcontent-%COMP%]{text-align:left}.tab-nav__title[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{padding-left:15%}.tab-nav__list[_ngcontent-%COMP%]{border:none}.tab-nav__list--titled[_ngcontent-%COMP%]{position:relative}.tab-nav__list--titled[_ngcontent-%COMP%]:before{display:block}}']});let e=t;return e})(),dxe=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,zre]});let e=t;return e})();var Ise=(()=>{let t=class t{constructor(){this.noRowsCopy="No Rows To Show",this.cellValueChanged=new L}ngOnInit(){this.noRowsTemplate=`<span>${this.noRowsCopy}</span>`}onFirstDataRendered(n){n.api.setGridOption("domLayout","autoHeight"),this.autosizeColumns&&n.api.autoSizeAllColumns()}onCellValueChanged(n){this.cellValueChanged.next(n)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-table"]],viewQuery:function(o,r){if(o&1&&Ue(Lu,5),o&2){let a;Me(a=Te())&&(r.agGrid=a.first)}},inputs:{columnDefs:"columnDefs",defaultColDef:"defaultColDef",rowData:"rowData",gridOptions:"gridOptions",autosizeColumns:"autosizeColumns",datasource:"datasource",noRowsCopy:"noRowsCopy"},outputs:{cellValueChanged:"cellValueChanged"},standalone:!1,decls:3,vars:5,consts:[["agGrid",""],[1,"grid-wrapper"],["domLayout","autoHeight",1,"ag-theme-alpine",3,"cellValueChanged","firstDataRendered","columnDefs","defaultColDef","rowData","gridOptions","overlayNoRowsTemplate"]],template:function(o,r){if(o&1){let a=P();p(0,"div",1)(1,"ag-grid-angular",2,0),T("cellValueChanged",function(l){return k(a),E(r.onCellValueChanged(l))})("firstDataRendered",function(l){return k(a),E(r.onFirstDataRendered(l))}),u()()}o&2&&(d(),v("columnDefs",r.columnDefs)("defaultColDef",r.defaultColDef)("rowData",r.rowData)("gridOptions",r.gridOptions)("overlayNoRowsTemplate",r.noRowsTemplate))},dependencies:[Lu],styles:[`body{--ag-legacy-styles-loaded: "true"}.ag-icon{font-family:var(--ag-icon-font-family);font-weight:var(--ag-icon-font-weight);color:var(--ag-icon-font-color);font-size:var(--ag-icon-size);line-height:var(--ag-icon-size);font-style:normal;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:var(--ag-icon-size);height:var(--ag-icon-size);position:relative}.ag-icon:before{content:"";font-family:inherit}.ag-icon:after{background:transparent var(--ag-icon-image, none) center/contain no-repeat;display:var(--ag-icon-image-display);opacity:var(--ag-icon-image-opacity, .9);position:absolute;inset:0;content:""}.ag-icon-aggregation{font-family:var(--ag-icon-font-family-aggregation, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-aggregation, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-aggregation, var(--ag-icon-font-color))}.ag-icon-aggregation:before{content:var(--ag-icon-font-code-aggregation, "\\f101");display:var(--ag-icon-font-display-aggregation, var(--ag-icon-font-display))}.ag-icon-aggregation:after{background-image:var(--ag-icon-image-aggregation, var(--ag-icon-image));display:var(--ag-icon-image-display-aggregation, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-aggregation, var(--ag-icon-image-opacity, .9))}.ag-icon-arrows{font-family:var(--ag-icon-font-family-arrows, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-arrows, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-arrows, var(--ag-icon-font-color))}.ag-icon-arrows:before{content:var(--ag-icon-font-code-arrows, "\\f102");display:var(--ag-icon-font-display-arrows, var(--ag-icon-font-display))}.ag-icon-arrows:after{background-image:var(--ag-icon-image-arrows, var(--ag-icon-image));display:var(--ag-icon-image-display-arrows, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-arrows, var(--ag-icon-image-opacity, .9))}.ag-icon-asc{font-family:var(--ag-icon-font-family-asc, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-asc, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-asc, var(--ag-icon-font-color))}.ag-icon-asc:before{content:var(--ag-icon-font-code-asc, "\\f103");display:var(--ag-icon-font-display-asc, var(--ag-icon-font-display))}.ag-icon-asc:after{background-image:var(--ag-icon-image-asc, var(--ag-icon-image));display:var(--ag-icon-image-display-asc, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-asc, var(--ag-icon-image-opacity, .9))}.ag-icon-cancel{font-family:var(--ag-icon-font-family-cancel, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-cancel, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-cancel, var(--ag-icon-font-color))}.ag-icon-cancel:before{content:var(--ag-icon-font-code-cancel, "\\f104");display:var(--ag-icon-font-display-cancel, var(--ag-icon-font-display))}.ag-icon-cancel:after{background-image:var(--ag-icon-image-cancel, var(--ag-icon-image));display:var(--ag-icon-image-display-cancel, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-cancel, var(--ag-icon-image-opacity, .9))}.ag-icon-chart{font-family:var(--ag-icon-font-family-chart, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-chart, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-chart, var(--ag-icon-font-color))}.ag-icon-chart:before{content:var(--ag-icon-font-code-chart, "\\f105");display:var(--ag-icon-font-display-chart, var(--ag-icon-font-display))}.ag-icon-chart:after{background-image:var(--ag-icon-image-chart, var(--ag-icon-image));display:var(--ag-icon-image-display-chart, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-chart, var(--ag-icon-image-opacity, .9))}.ag-icon-checkbox-checked{font-family:var(--ag-icon-font-family-checkbox-checked, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-checkbox-checked, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-checkbox-checked, var(--ag-icon-font-color))}.ag-icon-checkbox-checked:before{content:var(--ag-icon-font-code-checkbox-checked, "\\f106");display:var(--ag-icon-font-display-checkbox-checked, var(--ag-icon-font-display))}.ag-icon-checkbox-checked:after{background-image:var(--ag-icon-image-checkbox-checked, var(--ag-icon-image));display:var(--ag-icon-image-display-checkbox-checked, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-checkbox-checked, var(--ag-icon-image-opacity, .9))}.ag-icon-checkbox-indeterminate{font-family:var(--ag-icon-font-family-checkbox-indeterminate, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-checkbox-indeterminate, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-checkbox-indeterminate, var(--ag-icon-font-color))}.ag-icon-checkbox-indeterminate:before{content:var(--ag-icon-font-code-checkbox-indeterminate, "\\f107");display:var(--ag-icon-font-display-checkbox-indeterminate, var(--ag-icon-font-display))}.ag-icon-checkbox-indeterminate:after{background-image:var(--ag-icon-image-checkbox-indeterminate, var(--ag-icon-image));display:var(--ag-icon-image-display-checkbox-indeterminate, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-checkbox-indeterminate, var(--ag-icon-image-opacity, .9))}.ag-icon-checkbox-unchecked{font-family:var(--ag-icon-font-family-checkbox-unchecked, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-checkbox-unchecked, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-checkbox-unchecked, var(--ag-icon-font-color))}.ag-icon-checkbox-unchecked:before{content:var(--ag-icon-font-code-checkbox-unchecked, "\\f108");display:var(--ag-icon-font-display-checkbox-unchecked, var(--ag-icon-font-display))}.ag-icon-checkbox-unchecked:after{background-image:var(--ag-icon-image-checkbox-unchecked, var(--ag-icon-image));display:var(--ag-icon-image-display-checkbox-unchecked, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-checkbox-unchecked, var(--ag-icon-image-opacity, .9))}.ag-icon-color-picker{font-family:var(--ag-icon-font-family-color-picker, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-color-picker, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-color-picker, var(--ag-icon-font-color))}.ag-icon-color-picker:before{content:var(--ag-icon-font-code-color-picker, "\\f109");display:var(--ag-icon-font-display-color-picker, var(--ag-icon-font-display))}.ag-icon-color-picker:after{background-image:var(--ag-icon-image-color-picker, var(--ag-icon-image));display:var(--ag-icon-image-display-color-picker, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-color-picker, var(--ag-icon-image-opacity, .9))}.ag-icon-columns{font-family:var(--ag-icon-font-family-columns, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-columns, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-columns, var(--ag-icon-font-color))}.ag-icon-columns:before{content:var(--ag-icon-font-code-columns, "\\f10a");display:var(--ag-icon-font-display-columns, var(--ag-icon-font-display))}.ag-icon-columns:after{background-image:var(--ag-icon-image-columns, var(--ag-icon-image));display:var(--ag-icon-image-display-columns, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-columns, var(--ag-icon-image-opacity, .9))}.ag-icon-contracted{font-family:var(--ag-icon-font-family-contracted, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-contracted, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-contracted, var(--ag-icon-font-color))}.ag-icon-contracted:before{content:var(--ag-icon-font-code-contracted, "\\f10b");display:var(--ag-icon-font-display-contracted, var(--ag-icon-font-display))}.ag-icon-contracted:after{background-image:var(--ag-icon-image-contracted, var(--ag-icon-image));display:var(--ag-icon-image-display-contracted, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-contracted, var(--ag-icon-image-opacity, .9))}.ag-icon-copy{font-family:var(--ag-icon-font-family-copy, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-copy, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-copy, var(--ag-icon-font-color))}.ag-icon-copy:before{content:var(--ag-icon-font-code-copy, "\\f10c");display:var(--ag-icon-font-display-copy, var(--ag-icon-font-display))}.ag-icon-copy:after{background-image:var(--ag-icon-image-copy, var(--ag-icon-image));display:var(--ag-icon-image-display-copy, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-copy, var(--ag-icon-image-opacity, .9))}.ag-icon-cross{font-family:var(--ag-icon-font-family-cross, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-cross, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-cross, var(--ag-icon-font-color))}.ag-icon-cross:before{content:var(--ag-icon-font-code-cross, "\\f10d");display:var(--ag-icon-font-display-cross, var(--ag-icon-font-display))}.ag-icon-cross:after{background-image:var(--ag-icon-image-cross, var(--ag-icon-image));display:var(--ag-icon-image-display-cross, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-cross, var(--ag-icon-image-opacity, .9))}.ag-icon-csv{font-family:var(--ag-icon-font-family-csv, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-csv, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-csv, var(--ag-icon-font-color))}.ag-icon-csv:before{content:var(--ag-icon-font-code-csv, "\\f10e");display:var(--ag-icon-font-display-csv, var(--ag-icon-font-display))}.ag-icon-csv:after{background-image:var(--ag-icon-image-csv, var(--ag-icon-image));display:var(--ag-icon-image-display-csv, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-csv, var(--ag-icon-image-opacity, .9))}.ag-icon-cut{font-family:var(--ag-icon-font-family-cut, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-cut, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-cut, var(--ag-icon-font-color))}.ag-icon-cut:before{content:var(--ag-icon-font-code-cut, "\\f10f");display:var(--ag-icon-font-display-cut, var(--ag-icon-font-display))}.ag-icon-cut:after{background-image:var(--ag-icon-image-cut, var(--ag-icon-image));display:var(--ag-icon-image-display-cut, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-cut, var(--ag-icon-image-opacity, .9))}.ag-icon-desc{font-family:var(--ag-icon-font-family-desc, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-desc, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-desc, var(--ag-icon-font-color))}.ag-icon-desc:before{content:var(--ag-icon-font-code-desc, "\\f110");display:var(--ag-icon-font-display-desc, var(--ag-icon-font-display))}.ag-icon-desc:after{background-image:var(--ag-icon-image-desc, var(--ag-icon-image));display:var(--ag-icon-image-display-desc, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-desc, var(--ag-icon-image-opacity, .9))}.ag-icon-excel{font-family:var(--ag-icon-font-family-excel, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-excel, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-excel, var(--ag-icon-font-color))}.ag-icon-excel:before{content:var(--ag-icon-font-code-excel, "\\f111");display:var(--ag-icon-font-display-excel, var(--ag-icon-font-display))}.ag-icon-excel:after{background-image:var(--ag-icon-image-excel, var(--ag-icon-image));display:var(--ag-icon-image-display-excel, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-excel, var(--ag-icon-image-opacity, .9))}.ag-icon-expanded{font-family:var(--ag-icon-font-family-expanded, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-expanded, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-expanded, var(--ag-icon-font-color))}.ag-icon-expanded:before{content:var(--ag-icon-font-code-expanded, "\\f112");display:var(--ag-icon-font-display-expanded, var(--ag-icon-font-display))}.ag-icon-expanded:after{background-image:var(--ag-icon-image-expanded, var(--ag-icon-image));display:var(--ag-icon-image-display-expanded, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-expanded, var(--ag-icon-image-opacity, .9))}.ag-icon-eye-slash{font-family:var(--ag-icon-font-family-eye-slash, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-eye-slash, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-eye-slash, var(--ag-icon-font-color))}.ag-icon-eye-slash:before{content:var(--ag-icon-font-code-eye-slash, "\\f113");display:var(--ag-icon-font-display-eye-slash, var(--ag-icon-font-display))}.ag-icon-eye-slash:after{background-image:var(--ag-icon-image-eye-slash, var(--ag-icon-image));display:var(--ag-icon-image-display-eye-slash, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-eye-slash, var(--ag-icon-image-opacity, .9))}.ag-icon-eye{font-family:var(--ag-icon-font-family-eye, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-eye, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-eye, var(--ag-icon-font-color))}.ag-icon-eye:before{content:var(--ag-icon-font-code-eye, "\\f114");display:var(--ag-icon-font-display-eye, var(--ag-icon-font-display))}.ag-icon-eye:after{background-image:var(--ag-icon-image-eye, var(--ag-icon-image));display:var(--ag-icon-image-display-eye, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-eye, var(--ag-icon-image-opacity, .9))}.ag-icon-filter{font-family:var(--ag-icon-font-family-filter, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-filter, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-filter, var(--ag-icon-fo
807nt-color))}.ag-icon-filter:before{content:var(--ag-icon-font-code-filter, "\\f115");display:var(--ag-icon-font-display-filter, var(--ag-icon-font-display))}.ag-icon-filter:after{background-image:var(--ag-icon-image-filter, var(--ag-icon-image));display:var(--ag-icon-image-display-filter, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-filter, var(--ag-icon-image-opacity, .9))}.ag-icon-first{font-family:var(--ag-icon-font-family-first, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-first, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-first, var(--ag-icon-font-color))}.ag-icon-first:before{content:var(--ag-icon-font-code-first, "\\f116");display:var(--ag-icon-font-display-first, var(--ag-icon-font-display))}.ag-icon-first:after{background-image:var(--ag-icon-image-first, var(--ag-icon-image));display:var(--ag-icon-image-display-first, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-first, var(--ag-icon-image-opacity, .9))}.ag-icon-grip{font-family:var(--ag-icon-font-family-grip, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-grip, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-grip, var(--ag-icon-font-color))}.ag-icon-grip:before{content:var(--ag-icon-font-code-grip, "\\f117");display:var(--ag-icon-font-display-grip, var(--ag-icon-font-display))}.ag-icon-grip:after{background-image:var(--ag-icon-image-grip, var(--ag-icon-image));display:var(--ag-icon-image-display-grip, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-grip, var(--ag-icon-image-opacity, .9))}.ag-icon-group{font-family:var(--ag-icon-font-family-group, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-group, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-group, var(--ag-icon-font-color))}.ag-icon-group:before{content:var(--ag-icon-font-code-group, "\\f118");display:var(--ag-icon-font-display-group, var(--ag-icon-font-display))}.ag-icon-group:after{background-image:var(--ag-icon-image-group, var(--ag-icon-image));display:var(--ag-icon-image-display-group, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-group, var(--ag-icon-image-opacity, .9))}.ag-icon-last{font-family:var(--ag-icon-font-family-last, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-last, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-last, var(--ag-icon-font-color))}.ag-icon-last:before{content:var(--ag-icon-font-code-last, "\\f119");display:var(--ag-icon-font-display-last, var(--ag-icon-font-display))}.ag-icon-last:after{background-image:var(--ag-icon-image-last, var(--ag-icon-image));display:var(--ag-icon-image-display-last, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-last, var(--ag-icon-image-opacity, .9))}.ag-icon-left{font-family:var(--ag-icon-font-family-left, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-left, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-left, var(--ag-icon-font-color))}.ag-icon-left:before{content:var(--ag-icon-font-code-left, "\\f11a");display:var(--ag-icon-font-display-left, var(--ag-icon-font-display))}.ag-icon-left:after{background-image:var(--ag-icon-image-left, var(--ag-icon-image));display:var(--ag-icon-image-display-left, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-left, var(--ag-icon-image-opacity, .9))}.ag-icon-linked{font-family:var(--ag-icon-font-family-linked, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-linked, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-linked, var(--ag-icon-font-color))}.ag-icon-linked:before{content:var(--ag-icon-font-code-linked, "\\f11b");display:var(--ag-icon-font-display-linked, var(--ag-icon-font-display))}.ag-icon-linked:after{background-image:var(--ag-icon-image-linked, var(--ag-icon-image));display:var(--ag-icon-image-display-linked, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-linked, var(--ag-icon-image-opacity, .9))}.ag-icon-loading{font-family:var(--ag-icon-font-family-loading, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-loading, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-loading, var(--ag-icon-font-color))}.ag-icon-loading:before{content:var(--ag-icon-font-code-loading, "\\f11c");display:var(--ag-icon-font-display-loading, var(--ag-icon-font-display))}.ag-icon-loading:after{background-image:var(--ag-icon-image-loading, var(--ag-icon-image));display:var(--ag-icon-image-display-loading, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-loading, var(--ag-icon-image-opacity, .9))}.ag-icon-maximize{font-family:var(--ag-icon-font-family-maximize, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-maximize, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-maximize, var(--ag-icon-font-color))}.ag-icon-maximize:before{content:var(--ag-icon-font-code-maximize, "\\f11d");display:var(--ag-icon-font-display-maximize, var(--ag-icon-font-display))}.ag-icon-maximize:after{background-image:var(--ag-icon-image-maximize, var(--ag-icon-image));display:var(--ag-icon-image-display-maximize, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-maximize, var(--ag-icon-image-opacity, .9))}.ag-icon-menu{font-family:var(--ag-icon-font-family-menu, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-menu, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-menu, var(--ag-icon-font-color))}.ag-icon-menu:before{content:var(--ag-icon-font-code-menu, "\\f11e");display:var(--ag-icon-font-display-menu, var(--ag-icon-font-display))}.ag-icon-menu:after{background-image:var(--ag-icon-image-menu, var(--ag-icon-image));display:var(--ag-icon-image-display-menu, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-menu, var(--ag-icon-image-opacity, .9))}.ag-icon-minimize{font-family:var(--ag-icon-font-family-minimize, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-minimize, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-minimize, var(--ag-icon-font-color))}.ag-icon-minimize:before{content:var(--ag-icon-font-code-minimize, "\\f11f");display:var(--ag-icon-font-display-minimize, var(--ag-icon-font-display))}.ag-icon-minimize:after{background-image:var(--ag-icon-image-minimize, var(--ag-icon-image));display:var(--ag-icon-image-display-minimize, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-minimize, var(--ag-icon-image-opacity, .9))}.ag-icon-next{font-family:var(--ag-icon-font-family-next, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-next, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-next, var(--ag-icon-font-color))}.ag-icon-next:before{content:var(--ag-icon-font-code-next, "\\f120");display:var(--ag-icon-font-display-next, var(--ag-icon-font-display))}.ag-icon-next:after{background-image:var(--ag-icon-image-next, var(--ag-icon-image));display:var(--ag-icon-image-display-next, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-next, var(--ag-icon-image-opacity, .9))}.ag-icon-none{font-family:var(--ag-icon-font-family-none, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-none, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-none, var(--ag-icon-font-color))}.ag-icon-none:before{content:var(--ag-icon-font-code-none, "\\f121");display:var(--ag-icon-font-display-none, var(--ag-icon-font-display))}.ag-icon-none:after{background-image:var(--ag-icon-image-none, var(--ag-icon-image));display:var(--ag-icon-image-display-none, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-none, var(--ag-icon-image-opacity, .9))}.ag-icon-not-allowed{font-family:var(--ag-icon-font-family-not-allowed, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-not-allowed, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-not-allowed, var(--ag-icon-font-color))}.ag-icon-not-allowed:before{content:var(--ag-icon-font-code-not-allowed, "\\f122");display:var(--ag-icon-font-display-not-allowed, var(--ag-icon-font-display))}.ag-icon-not-allowed:after{background-image:var(--ag-icon-image-not-allowed, var(--ag-icon-image));display:var(--ag-icon-image-display-not-allowed, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-not-allowed, var(--ag-icon-image-opacity, .9))}.ag-icon-paste{font-family:var(--ag-icon-font-family-paste, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-paste, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-paste, var(--ag-icon-font-color))}.ag-icon-paste:before{content:var(--ag-icon-font-code-paste, "\\f123");display:var(--ag-icon-font-display-paste, var(--ag-icon-font-display))}.ag-icon-paste:after{background-image:var(--ag-icon-image-paste, var(--ag-icon-image));display:var(--ag-icon-image-display-paste, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-paste, var(--ag-icon-image-opacity, .9))}.ag-icon-pin{font-family:var(--ag-icon-font-family-pin, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-pin, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-pin, var(--ag-icon-font-color))}.ag-icon-pin:before{content:var(--ag-icon-font-code-pin, "\\f124");display:var(--ag-icon-font-display-pin, var(--ag-icon-font-display))}.ag-icon-pin:after{background-image:var(--ag-icon-image-pin, var(--ag-icon-image));display:var(--ag-icon-image-display-pin, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-pin, var(--ag-icon-image-opacity, .9))}.ag-icon-pivot{font-family:var(--ag-icon-font-family-pivot, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-pivot, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-pivot, var(--ag-icon-font-color))}.ag-icon-pivot:before{content:var(--ag-icon-font-code-pivot, "\\f125");display:var(--ag-icon-font-display-pivot, var(--ag-icon-font-display))}.ag-icon-pivot:after{background-image:var(--ag-icon-image-pivot, var(--ag-icon-image));display:var(--ag-icon-image-display-pivot, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-pivot, var(--ag-icon-image-opacity, .9))}.ag-icon-previous{font-family:var(--ag-icon-font-family-previous, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-previous, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-previous, var(--ag-icon-font-color))}.ag-icon-previous:before{content:var(--ag-icon-font-code-previous, "\\f126");display:var(--ag-icon-font-display-previous, var(--ag-icon-font-display))}.ag-icon-previous:after{background-image:var(--ag-icon-image-previous, var(--ag-icon-image));display:var(--ag-icon-image-display-previous, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-previous, var(--ag-icon-image-opacity, .9))}.ag-icon-radio-button-off{font-family:var(--ag-icon-font-family-radio-button-off, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-radio-button-off, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-radio-button-off, var(--ag-icon-font-color))}.ag-icon-radio-button-off:before{content:var(--ag-icon-font-code-radio-button-off, "\\f127");display:var(--ag-icon-font-display-radio-button-off, var(--ag-icon-font-display))}.ag-icon-radio-button-off:after{background-image:var(--ag-icon-image-radio-button-off, var(--ag-icon-image));display:var(--ag-icon-image-display-radio-button-off, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-radio-button-off, var(--ag-icon-image-opacity, .9))}.ag-icon-radio-button-on{font-family:var(--ag-icon-font-family-radio-button-on, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-radio-button-on, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-radio-button-on, var(--ag-icon-font-color))}.ag-icon-radio-button-on:before{content:var(--ag-icon-font-code-radio-button-on, "\\f128");display:var(--ag-icon-font-display-radio-button-on, var(--ag-icon-font-display))}.ag-icon-radio-button-on:after{background-image:var(--ag-icon-image-radio-button-on, var(--ag-icon-image));display:var(--ag-icon-image-display-radio-button-on, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-radio-button-on, var(--ag-icon-image-opacity, .9))}.ag-icon-right{font-family:var(--ag-icon-font-family-right, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-right, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-right, var(--ag-icon-font-color))}.ag-icon-right:before{content:var(--ag-icon-font-code-right, "\\f129");display:var(--ag-icon-font-display-right, var(--ag-icon-font-display))}.ag-icon-right:after{background-image:var(--ag-icon-image-right, var(--ag-icon-image));display:var(--ag-icon-image-display-right, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-right, var(--ag-icon-image-opacity, .9))}.ag-icon-save{font-family:var(--ag-icon-font-family-save, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-save, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-save, var(--ag-icon-font-color))}.ag-icon-save:before{content:var(--ag-icon-font-code-save, "\\f12a");display:var(--ag-icon-font-display-save, var(--ag-icon-font-display))}.ag-icon-save:after{background-image:var(--ag-icon-image-save, var(--ag-icon-image));display:var(--ag-icon-image-display-save, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-save, var(--ag-icon-image-opacity, .9))}.ag-icon-small-down{font-family:var(--ag-icon-font-family-small-down, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-small-down, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-small-down, var(--ag-icon-font-color))}.ag-icon-small-down:before{content:var(--ag-icon-font-code-small-down, "\\f12b");display:var(--ag-icon-font-display-small-down, var(--ag-icon-font-display))}.ag-icon-small-down:after{background-image:var(--ag-icon-image-small-down, var(--ag-icon-image));display:var(--ag-icon-image-display-small-down, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-small-down, var(--ag-icon-image-opacity, .9))}.ag-icon-small-left{font-family:var(--ag-icon-font-family-small-left, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-small-left, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-small-left, var(--ag-icon-font-color))}.ag-icon-small-left:before{content:var(--ag-icon-font-code-small-left, "\\f12c");display:var(--ag-icon-font-display-small-left, var(--ag-icon-font-display))}.ag-icon-small-left:after{background-image:var(--ag-icon-image-small-left, var(--ag-icon-image));display:var(--ag-icon-image-display-small-left, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-small-left, var(--ag-icon-image-opacity, .9))}.ag-icon-small-right{font-family:var(--ag-icon-font-family-small-right, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-small-right, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-small-right, var(--ag-icon-font-color))}.ag-icon-small-right:before{content:var(--ag-icon-font-code-small-right, "\\f12d");display:var(--ag-icon-font-display-small-right, var(--ag-icon-font-display))}.ag-icon-small-right:after{background-image:var(--ag-icon-image-small-right, var(--ag-icon-image));display:var(--ag-icon-image-display-small-right, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-small-right, var(--ag-icon-image-opacity, .9))}.ag-icon-small-up{font-family:var(--ag-icon-font-family-small-up, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-small-up, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-small-up, var(--ag-icon-font-color))}.ag-icon-small-up:before{content:var(--ag-icon-font-code-small-up, "\\f12e");display:var(--ag-icon-font-display-small-up, var(--ag-icon-font-display))}.ag-icon-small-up:after{background-image:var(--ag-icon-image-small-up, var(--ag-icon-image));display:var(--ag-icon-image-display-small-up, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-small-up, var(--ag-icon-image-opacity, .9))}.ag-icon-tick{font-family:var(--ag-icon-font-family-tick, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-tick, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-tick, var(--ag-icon-font-color))}.ag-icon-tick:before{content:var(--ag-icon-font-code-tick, "\\f12f");display:var(--ag-icon-font-displ
807ay-tick, var(--ag-icon-font-display))}.ag-icon-tick:after{background-image:var(--ag-icon-image-tick, var(--ag-icon-image));display:var(--ag-icon-image-display-tick, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-tick, var(--ag-icon-image-opacity, .9))}.ag-icon-tree-closed{font-family:var(--ag-icon-font-family-tree-closed, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-tree-closed, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-tree-closed, var(--ag-icon-font-color))}.ag-icon-tree-closed:before{content:var(--ag-icon-font-code-tree-closed, "\\f130");display:var(--ag-icon-font-display-tree-closed, var(--ag-icon-font-display))}.ag-icon-tree-closed:after{background-image:var(--ag-icon-image-tree-closed, var(--ag-icon-image));display:var(--ag-icon-image-display-tree-closed, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-tree-closed, var(--ag-icon-image-opacity, .9))}.ag-icon-tree-indeterminate{font-family:var(--ag-icon-font-family-tree-indeterminate, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-tree-indeterminate, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-tree-indeterminate, var(--ag-icon-font-color))}.ag-icon-tree-indeterminate:before{content:var(--ag-icon-font-code-tree-indeterminate, "\\f131");display:var(--ag-icon-font-display-tree-indeterminate, var(--ag-icon-font-display))}.ag-icon-tree-indeterminate:after{background-image:var(--ag-icon-image-tree-indeterminate, var(--ag-icon-image));display:var(--ag-icon-image-display-tree-indeterminate, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-tree-indeterminate, var(--ag-icon-image-opacity, .9))}.ag-icon-tree-open{font-family:var(--ag-icon-font-family-tree-open, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-tree-open, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-tree-open, var(--ag-icon-font-color))}.ag-icon-tree-open:before{content:var(--ag-icon-font-code-tree-open, "\\f132");display:var(--ag-icon-font-display-tree-open, var(--ag-icon-font-display))}.ag-icon-tree-open:after{background-image:var(--ag-icon-image-tree-open, var(--ag-icon-image));display:var(--ag-icon-image-display-tree-open, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-tree-open, var(--ag-icon-image-opacity, .9))}.ag-icon-unlinked{font-family:var(--ag-icon-font-family-unlinked, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-unlinked, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-unlinked, var(--ag-icon-font-color))}.ag-icon-unlinked:before{content:var(--ag-icon-font-code-unlinked, "\\f133");display:var(--ag-icon-font-display-unlinked, var(--ag-icon-font-display))}.ag-icon-unlinked:after{background-image:var(--ag-icon-image-unlinked, var(--ag-icon-image));display:var(--ag-icon-image-display-unlinked, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-unlinked, var(--ag-icon-image-opacity, .9))}.ag-icon-up{font-family:var(--ag-icon-font-family-up, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-up, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-up, var(--ag-icon-font-color))}.ag-icon-up:before{content:var(--ag-icon-font-code-up, "\\f134");display:var(--ag-icon-font-display-up, var(--ag-icon-font-display))}.ag-icon-up:after{background-image:var(--ag-icon-image-up, var(--ag-icon-image));display:var(--ag-icon-image-display-up, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-up, var(--ag-icon-image-opacity, .9))}.ag-icon-down{font-family:var(--ag-icon-font-family-down, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-down, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-down, var(--ag-icon-font-color))}.ag-icon-down:before{content:var(--ag-icon-font-code-down, "\\f135");display:var(--ag-icon-font-display-down, var(--ag-icon-font-display))}.ag-icon-down:after{background-image:var(--ag-icon-image-down, var(--ag-icon-image));display:var(--ag-icon-image-display-down, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-down, var(--ag-icon-image-opacity, .9))}.ag-icon-plus{font-family:var(--ag-icon-font-family-plus, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-plus, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-plus, var(--ag-icon-font-color))}.ag-icon-plus:before{content:var(--ag-icon-font-code-plus, "\\f136");display:var(--ag-icon-font-display-plus, var(--ag-icon-font-display))}.ag-icon-plus:after{background-image:var(--ag-icon-image-plus, var(--ag-icon-image));display:var(--ag-icon-image-display-plus, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-plus, var(--ag-icon-image-opacity, .9))}.ag-icon-minus{font-family:var(--ag-icon-font-family-minus, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-minus, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-minus, var(--ag-icon-font-color))}.ag-icon-minus:before{content:var(--ag-icon-font-code-minus, "\\f137");display:var(--ag-icon-font-display-minus, var(--ag-icon-font-display))}.ag-icon-minus:after{background-image:var(--ag-icon-image-minus, var(--ag-icon-image));display:var(--ag-icon-image-display-minus, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-minus, var(--ag-icon-image-opacity, .9))}.ag-icon-menu-alt{font-family:var(--ag-icon-font-family-menu-alt, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-menu-alt, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-menu-alt, var(--ag-icon-font-color))}.ag-icon-menu-alt:before{content:var(--ag-icon-font-code-menu-alt, "\\f138");display:var(--ag-icon-font-display-menu-alt, var(--ag-icon-font-display))}.ag-icon-menu-alt:after{background-image:var(--ag-icon-image-menu-alt, var(--ag-icon-image));display:var(--ag-icon-image-display-menu-alt, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-menu-alt, var(--ag-icon-image-opacity, .9))}.ag-icon-settings{font-family:var(--ag-icon-font-family-settings, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-settings, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-settings, var(--ag-icon-font-color))}.ag-icon-settings:before{content:var(--ag-icon-font-code-settings, "\\f139");display:var(--ag-icon-font-display-settings, var(--ag-icon-font-display))}.ag-icon-settings:after{background-image:var(--ag-icon-image-settings, var(--ag-icon-image));display:var(--ag-icon-image-display-settings, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-settings, var(--ag-icon-image-opacity, .9))}.ag-icon-row-drag:before{content:var(--ag-icon-font-code-grip)}.ag-left-arrow:before{content:var(--ag-icon-font-code-left)}.ag-right-arrow:before{content:var(--ag-icon-font-code-right)}[class*=ag-theme-]{--ag-foreground-color: #000;--ag-data-color: var(--ag-foreground-color);--ag-secondary-foreground-color: var(--ag-foreground-color);--ag-header-foreground-color: var(--ag-secondary-foreground-color);--ag-disabled-foreground-color: rgba(0, 0, 0, .5);--ag-background-color: #fff;--ag-header-background-color: transparent;--ag-tooltip-background-color: transparent;--ag-subheader-background-color: transparent;--ag-subheader-toolbar-background-color: transparent;--ag-control-panel-background-color: transparent;--ag-side-button-selected-background-color: var(--ag-control-panel-background-color);--ag-selected-row-background-color: #bbb;--ag-odd-row-background-color: var(--ag-background-color);--ag-modal-overlay-background-color: rgba(255, 255, 255, .66);--ag-menu-background-color: var(--ag-background-color);--ag-menu-border-color: var(--ag-border-color);--ag-panel-background-color: var(--ag-background-color);--ag-panel-border-color: var(--ag-border-color);--ag-row-hover-color: transparent;--ag-column-hover-color: transparent;--ag-range-selection-border-color: var(--ag-foreground-color);--ag-range-selection-border-style: solid;--ag-range-selection-background-color: rgba(0, 0, 0, .2);--ag-range-selection-background-color-2: var(--ag-range-selection-background-color);--ag-range-selection-background-color-3: var(--ag-range-selection-background-color);--ag-range-selection-background-color-4: var(--ag-range-selection-background-color);--ag-range-selection-highlight-color: var(--ag-range-selection-border-color);--ag-selected-tab-underline-color: var(--ag-range-selection-border-color);--ag-selected-tab-underline-width: 0;--ag-selected-tab-underline-transition-speed: 0s;--ag-range-selection-chart-category-background-color: rgba(0, 255, 132, .1);--ag-range-selection-chart-background-color: rgba(0, 88, 255, .1);--ag-header-cell-hover-background-color: transparent;--ag-header-cell-moving-background-color: var(--ag-background-color);--ag-value-change-value-highlight-background-color: rgba(22, 160, 133, .5);--ag-value-change-delta-up-color: #43a047;--ag-value-change-delta-down-color: #e53935;--ag-row-loading-skeleton-effect-color: rgba(66, 66, 66, .2);--ag-chip-background-color: transparent;--ag-chip-border-color: var(--ag-chip-background-color);--ag-borders: solid 1px;--ag-border-color: rgba(0, 0, 0, .25);--ag-borders-critical: var(--ag-borders);--ag-borders-secondary: var(--ag-borders);--ag-secondary-border-color: var(--ag-border-color);--ag-row-border-style: solid;--ag-row-border-width: 1px;--ag-cell-horizontal-border: solid transparent;--ag-borders-input: var(--ag-borders-secondary);--ag-input-border-color: var(--ag-secondary-border-color);--ag-borders-input-invalid: solid 2px;--ag-input-border-color-invalid: var(--ag-invalid-color);--ag-borders-side-button: var(--ag-borders);--ag-border-radius: 0px;--ag-wrapper-border-radius: var(--ag-border-radius);--ag-row-border-color: var(--ag-secondary-border-color);--ag-header-column-separator-display: none;--ag-header-column-separator-height: 100%;--ag-header-column-separator-width: 1px;--ag-header-column-separator-color: var(--ag-secondary-border-color);--ag-header-column-resize-handle-display: none;--ag-header-column-resize-handle-height: 50%;--ag-header-column-resize-handle-width: 1px;--ag-header-column-resize-handle-color: var(--ag-secondary-border-color);--ag-invalid-color: red;--ag-input-disabled-border-color: var(--ag-input-border-color);--ag-input-disabled-background-color: transparent;--ag-checkbox-background-color: transparent;--ag-checkbox-border-radius: var(--ag-border-radius);--ag-checkbox-checked-color: var(--ag-foreground-color);--ag-checkbox-unchecked-color: var(--ag-foreground-color);--ag-checkbox-indeterminate-color: var(--ag-checkbox-unchecked-color);--ag-toggle-button-off-border-color: var(--ag-checkbox-unchecked-color);--ag-toggle-button-off-background-color: var(--ag-checkbox-unchecked-color);--ag-toggle-button-on-border-color: var(--ag-checkbox-checked-color);--ag-toggle-button-on-background-color: var(--ag-checkbox-checked-color);--ag-toggle-button-switch-background-color: var(--ag-background-color);--ag-toggle-button-switch-border-color: var(--ag-toggle-button-off-border-color);--ag-toggle-button-border-width: 1px;--ag-toggle-button-height: var(--ag-icon-size);--ag-toggle-button-width: calc(var(--ag-toggle-button-height) * 2);
807--ag-input-focus-box-shadow: none;--ag-input-focus-border-color: none;--ag-minichart-selected-chart-color: var(--ag-checkbox-checked-color);--ag-minichart-selected-page-color: var(--ag-checkbox-checked-color);--ag-grid-size: 4px;--ag-icon-size: 12px;--ag-icon-font-weight: normal;--ag-icon-font-color: var(--ag-foreground-color);--ag-icon-image-display: block;--ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 1.5);--ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 1.5);--ag-widget-horizontal-spacing: calc(var(--ag-grid-size) * 2);--ag-widget-vertical-spacing: var(--ag-grid-size);--ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);--ag-cell-widget-spacing: var(--ag-cell-horizontal-padding);--ag-row-height: calc(var(--ag-grid-size) * 6 + 1px);--ag-header-height: var(--ag-row-height);--ag-list-item-height: calc(var(--ag-grid-size) * 5);--ag-column-select-indent-size: calc(var(--ag-grid-size) + var(--ag-icon-size));--ag-set-filter-indent-size: calc(var(--ag-grid-size) + var(--ag-icon-size));--ag-advanced-filter-builder-indent-size: calc(var(--ag-grid-size) * 2 + var(--ag-icon-size));--ag-row-group-indent-size: calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size));--ag-filter-tool-panel-group-indent: 16px;--ag-tab-min-width: 220px;--ag-chart-menu-panel-width: var(--ag-tab-min-width);--ag-menu-min-width: 181px;--ag-side-bar-panel-width: 200px;--ag-font-family: "Helvetica Neue", sans-serif;--ag-font-size: 14px;--ag-card-radius: var(--ag-border-radius);--ag-card-shadow: none;--ag-popup-shadow: 5px 5px 10px rgba(0, 0, 0, .3);--ag-advanced-filter-join-pill-color: #f08e8d;--ag-advanced-filter-column-pill-color: #a6e194;--ag-advanced-filter-option-pill-color: #f3c08b;--ag-advanced-filter-value-pill-color: #85c0e4}.ag-root-wrapper,.ag-sticky-top,.ag-sticky-bottom,.ag-dnd-ghost{background-color:var(--ag-background-color)}.ag-sticky-bottom{border-top:var(--ag-row-border-style) var(--ag-row-border-color) var(--ag-row-border-width)}.ag-root-wrapper,.ag-popup{--ag-indentation-level: 0}[class*=ag-theme-]{-webkit-font-smoothing:antialiased;font-family:var(--ag-font-family);font-size:var(--ag-font-size);line-height:normal;color:var(--ag-foreground-color)}ag-grid,ag-grid-angular,ag-grid-ng2,ag-grid-polymer,ag-grid-aurelia{display:block}.ag-aria-description-container{z-index:9999;border:0px;clip:rect(1px,1px,1px,1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap}.ag-hidden{display:none!important}.ag-invisible{visibility:hidden!important}.ag-drag-handle{cursor:grab}.ag-column-drop-wrapper{display:flex}.ag-column-drop-horizontal-half-width{display:inline-block;width:50%!important}.ag-unselectable{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ag-selectable{-moz-user-select:text;-webkit-user-select:text;-ms-user-select:text;user-select:text}.ag-tab{position:relative}.ag-tab-guard{position:absolute;width:0;height:0;display:block}.ag-virtual-list-viewport .ag-tab-guard{position:sticky}.ag-tab-guard-top{top:1px}.ag-tab-guard-bottom{bottom:1px}.ag-select-agg-func-popup{position:absolute}.ag-input-wrapper,.ag-picker-field-wrapper{display:flex;flex:1 1 auto;align-items:center;line-height:normal;position:relative}.ag-shake-left-to-right{animation-direction:alternate;animation-duration:.2s;animation-iteration-count:infinite;animation-name:ag-shake-left-to-right}@keyframes ag-shake-left-to-right{0%{padding-left:6px;padding-right:2px}to{padding-left:2px;padding-right:6px}}.ag-root-wrapper{cursor:default;position:relative;display:flex;flex-direction:column;overflow:hidden;white-space:normal}.ag-root-wrapper.ag-layout-normal{height:100%}.ag-watermark{position:absolute;bottom:20px;right:25px;opacity:.7;transition:opacity 1s ease-out 3s;color:#9b9b9b}.ag-watermark:before{content:"";background-image:url(
vendor: 6,474 bytes, line 807
807data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjA5IiBoZWlnaHQ9IjM2IiB2aWV3Qm94PSIwIDAgMjA5IDM2IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNMTkyLjk5MyAyMy42NTgyVjE1LjcxMTdIMTc5LjQ1MkwxNzEuNTA1IDIzLjY1ODJIMTkyLjk5M1oiIGZpbGw9IiM5QjlCOUIiLz4KPHBhdGggZD0iTTIwOC4yNSAzLjk1MDgxSDE5MS4yNzZMMTgzLjI2NiAxMS44OTczSDIwOC4yNVYzLjk1MDgxWiIgZmlsbD0iIzlCOUI5QiIvPgo8cGF0aCBkPSJNMTYzLjYyMiAzMS42MDQ4TDE2Ny42OTEgMjcuNTM2MUgxODEuNDIzVjM1LjQ4MjdIMTYzLjYyMlYzMS42MDQ4WiIgZmlsbD0iIzlCOUI5QiIvPgo8cGF0aCBkPSJNMTY2LjYxIDE5Ljc4MDNIMTc1LjM4M0wxODMuMzkzIDExLjgzMzdIMTY2LjYxVjE5Ljc4MDNaIiBmaWxsPSIjOUI5QjlCIi8+CjxwYXRoIGQ9Ik0xNTcuMDExIDMxLjYwNDdIMTYzLjYyMkwxNzEuNTA1IDIzLjY1ODJIMTU3LjAxMVYzMS42MDQ3WiIgZmlsbD0iIzlCOUI5QiIvPgo8cGF0aCBkPSJNMTkxLjI3NiAzLjk1MDgxTDE4Ny4yMDggOC4wMTk0MUgxNjEuMjdWMC4wNzI4NzZIMTkxLjI3NlYzLjk1MDgxWiIgZmlsbD0iIzlCOUI5QiIvPgo8cGF0aCBkPSJNMjAuODM5MSAzMC4yMDYxSDguMzc4OTJMNi4yMTc0NSAzNS41NDYySDAuNzUwMjQ0TDEyLjI1NjggOC41OTE1NUgxNy4wMjQ3TDI4LjUzMTMgMzUuNTQ2MkgyMy4wMDA1TDIwLjgzOTEgMzAuMjA2MVpNMTkuMTIyNyAyNS45NDY4TDE0LjYwOSAxNC45NDg4TDEwLjA5NTQgMjUuOTQ2OEgxOS4xMjI3WiIgZmlsbD0iIzlCOUI5QiIvPgo8cGF0aCBkPSJNMTA0LjQzNyAxOC41MDg5QzEwNi4wMjYgMTYuMTU2NyAxMTAuMDMxIDE1LjkwMjQgMTExLjY4NCAxNS45MDI0VjIwLjQ3OTZDMTA5LjY1IDIwLjQ3OTYgMTA3LjYxNSAyMC41NDMyIDEwNi40MDcgMjEuNDMzMkMxMDUuMiAyMi4zMjMyIDEwNC41NjQgMjMuNTMxMSAxMDQuNTY0IDI0Ljk5MzJWMzUuNTQ2Mkg5OS42MDUxVjE1LjkwMjRIMTA0LjM3M0wxMDQuNDM3IDE4LjUwODlaIiBmaWxsPSIjOUI5QjlCIi8+CjxwYXRoIGQ9Ik0xMTkuMzc2IDE1LjkwMjRIMTE0LjQxOFYzNS41NDYySDExOS4zNzZWMTUuOTAyNFoiIGZpbGw9IiM5QjlCOUIiLz4KPHBhdGggZD0iTTExOS4zNzYgNy4xMjkzOUgxMTQuNDE4VjEyLjk3OEgxMTkuMzc2VjcuMTI5MzlaIiBmaWxsPSIjOUI5QjlCIi8+CjxwYXRoIGQ9Ik0xNDMuOTc5IDcuMTI5MzlWMzUuNTQ2MkgxMzkuMjExTDEzOS4wODQgMzIuNTU4M0MxMzguMzg0IDMzLjU3NTUgMTM3LjQ5NCAzNC40MDE5IDEzNi40MTQgMzUuMDM3NkMxMzUuMzMzIDM1LjYwOTggMTMzLjk5OCAzNS45Mjc2IDEzMi40NzIgMzUuOTI3NkMxMzEuMTM3IDM1LjkyNzYgMTI5Ljg2NiAzNS42NzMzIDEyOC43ODUgMzUuMjI4M0MxMjcuNjQxIDM0LjcxOTcgMTI2LjYyMyAzNC4wODQgMTI1Ljc5NyAzMy4xOTRDMTI0Ljk3MSAzMi4zMDQgMTI0LjI3MSAzMS4yMjMzIDEyMy44MjYgMzAuMDE1NEMxMjMuMzE4IDI4LjgwNzUgMTIzLjEyNyAyNy40MDkgMTIzLjEyNyAyNS44ODMyQzEyMy4xMjcgMjQuMzU3NSAxMjMuMzgxIDIyLjk1ODkgMTIzLjgyNiAyMS42ODc0QzEyNC4zMzUgMjAuNDE2IDEyNC45NzEgMTkuMzM1MyAxMjUuNzk3IDE4LjQ0NTNDMTI2LjYyMyAxNy41NTUyIDEyNy42NDEgMTYuODU2IDEyOC43ODUgMTYuMzQ3NEMxMjkuOTI5IDE1LjgzODggMTMxLjEzNyAxNS41ODQ1IDEzMi40NzIgMTUuNTg0NUMxMzMuOTk4IDE1LjU4NDUgMTM1LjI2OSAxNS44Mzg4IDEzNi4zNSAxNi40MTA5QzEzNy40MzEgMTYuOTgzMSAxMzguMzIxIDE3Ljc0NTkgMTM5LjAyIDE4LjgyNjdWNy4xOTI5NUgxNDMuOTc5VjcuMTI5MzlaTTEzMy41NTMgMzEuNjY4M0MxMzUuMjA2IDMxLjY2ODMgMTM2LjQ3NyAzMS4wOTYyIDEzNy40OTQgMzAuMDE1NEMxMzguNTExIDI4LjkzNDcgMTM5LjAyIDI3LjQ3MjUgMTM5LjAyIDI1LjY5MjVDMTM5LjAyIDIzLjkxMjUgMTM4LjUxMSAyMi41MTM5IDEzNy40OTQgMjEuMzY5NkMxMzYuNDc3IDIwLjI4ODggMTM1LjIwNiAxOS43MTY3IDEzMy41NTMgMTkuNzE2N0MxMzEuOTYzIDE5LjcxNjcgMTMwLjYyOCAyMC4yODg4IDEyOS42NzUgMjEuMzY5NkMxMjguNjU4IDIyLjQ1MDMgMTI4LjE0OSAyMy45MTI1IDEyOC4xNDkgMjUuNjkyNUMxMjguMTQ5IDI3LjQ3MjUgMTI4LjY1OCAyOC44NzExIDEyOS42NzUgMjkuOTUxOEMxMzAuNjkyIDMxLjA5NjEgMTMxLjk2MyAzMS42NjgzIDEzMy41NTMgMzEuNjY4M1oiIGZpbGw9IiM5QjlCOUIiLz4KPHBhdGggZD0iTTU3LjIwMjQgMjAuMzUyNUg0NC45MzNWMjQuNjExOEg1MS45MjU5QzUxLjczNTIgMjYuNzczMyA1MC45MDg4IDI4LjQyNjEgNDkuNTEwMiAyOS43NjExQzQ4LjExMTYgMzEuMDMyNiA0Ni4zMzE1IDMxLjY2ODMgNDQuMDQyOSAzMS42NjgzQzQyLjc3MTUgMzEuNjY4MyA0MS41NjM2IDMxLjQxNCA0MC41NDY1IDMwLjk2OUMzOS40NjU3IDMwLjUyNCAzOC41NzU3IDI5Ljg4ODMgMzcuODEyOSAyOC45OTgzQzM3LjA1IDI4LjE3MTggMzYuNDc3OCAyNy4xNTQ3IDM2LjAzMjggMjUuOTQ2OEMzNS41ODc4IDI0LjczODkgMzUuMzk3MSAyMy40Njc1IDM1LjM5NzEgMjIuMDA1M0MzNS4zOTcxIDIwLjU0MzIgMzUuNTg3OCAxOS4yNzE3IDM2LjAzMjggMTguMDYzOEMzNi40MTQzIDE2Ljg1NiAzNy4wNSAxNS45MDI0IDM3LjgxMjkgMTUuMDEyNEMzOC41NzU3IDE0LjE4NTkgMzkuNDY1NyAxMy41NTAyIDQwLjU0NjUgMTMuMDQxNkM0MS42MjcyIDEyLjU5NjYgNDIuNzcxNSAxMi4zNDIzIDQ0LjEwNjUgMTIuMzQyM0M0Ni43NzY2IDEyLjM0MjMgNDguODEwOSAxMi45NzggNTAuMjA5NSAxNC4yNDk1TDUzLjUxNTIgMTAuOTQzOEM1MS4wMzU5IDkuMDM2NTkgNDcuODU3MyA4LjAxOTQxIDQ0LjEwNjUgOC4wMTk0MUM0Mi4wMDg2IDguMDE5NDEgNDAuMTAxNSA4LjMzNzI5IDM4LjM4NSA5LjAzNjU5QzM2LjY2ODYgOS43MzU4OCAzNS4yMDY0IDEwLjYyNTkgMzMuOTk4NSAxMS44MzM3QzMyLjc5MDYgMTMuMDQxNiAzMS44MzcxIDE0LjUwMzggMzEuMjAxNCAxNi4yMjAzQzMwLjU2NTYgMTcuOTM2NyAzMC4yNDc4IDE5Ljg0MzggMzAuMjQ3OCAyMS44NzgyQzMwLjI0NzggMjMuOTEyNSAzMC41NjU2IDI1LjgxOTcgMzEuMjY0OSAyNy41MzYxQzMxLjk2NDIgMjkuMjUyNiAzMi44NTQyIDMwLjcxNDcgMzQuMDYyMSAzMS45MjI2QzM1LjI3IDMzLjEzMDUgMzYuNzMyMSAzNC4wODQxIDM4LjQ0ODYgMzQuNzE5OEM0MC4xNjUgMzUuNDE5MSA0Mi4wNzIyIDM1LjczNyA0NC4xMDY1IDM1LjczN0M0Ni4xNDA4IDM1LjczNyA0Ny45ODQ0IDM1LjQxOTEgNDkuNjM3MyAzNC43MTk4QzUxLjI5MDIgMzQuMDIwNSA1Mi42ODg4IDMzLjEzMDUgNTMuODMzMSAzMS45MjI2QzU0Ljk3NzQgMzAuNzE0NyA1NS44Njc0IDI5LjI1MjYgNTYuNTAzMSAyNy41MzYxQzU3LjEzODggMjUuODE5NyA1Ny40NTY3IDIzLjkxMjUgNTcuNDU2NyAyMS44NzgyVjIxLjA1MTdDNTcuMjY2IDIwLjkyNDYgNTcuMjAyNCAyMC42MDY3IDU3LjIwMjQgMjAuMzUyNVoiIGZpbGw9IiM5QjlCOUIiLz4KPHBhdGggZD0iTTk1Ljk4MTUgMjAuMzUyNUg4My43MTIxVjI0LjYxMThIOTAuNzA1QzkwLjUxNDMgMjYuNzczMyA4OS42ODc5IDI4LjQyNjEgODguMjg5MyAyOS43NjExQzg2Ljg5MDcgMzEuMDMyNiA4NS4xMTA2IDMxLjY2ODMgODIuODIyIDMxLjY2ODNDODEuNTUwNiAzMS42NjgzIDgwLjM0MjcgMzEuNDE0IDc5LjMyNTYgMzAuOTY5Qzc4LjI0NDggMzAuNTI0IDc3LjM1NDggMjkuODg4MyA3Ni41OTIgMjguOTk4M0M3NS44MjkxIDI4LjE3MTggNzUuMjU3IDI3LjE1NDcgNzQuODExOSAyNS45NDY4Qzc0LjM2NjkgMjQuNzM4OSA3NC4xNzYyIDIzLjQ2NzUgNzQuMTc2MiAyMi4wMDUzQzc0LjE3NjIgMjAuNTQzMiA3NC4zNjY5IDE5LjI3MTcgNzQuODExOSAxOC4wNjM4Qzc1LjE5MzQgMTYuODU2IDc1LjgyOTEgMTUuOTAyNCA3Ni41OTIgMTUuMDEyNEM3Ny4zNTQ4IDE0LjE4NTkgNzguMjQ0OCAxMy41NTAyIDc5LjMyNTYgMTMuMDQxNkM4MC40MDYzIDEyLjU5NjYgODEuNTUwNiAxMi4zNDIzIDgyLjg4NTYgMTIuMzQyM0M4NS41NTU3IDEyLjM0MjMgODcuNTkgMTIuOTc4IDg4Ljk4ODYgMTQuMjQ5NUw5Mi4yOTQzIDEwLjk0MzhDODkuODE1IDkuMDM2NTkgODYuNjM2NCA4LjAxOTQxIDgyLjg4NTYgOC4wMTk0MUM4MC43ODc4IDguMDE5NDEgNzguODgwNiA4LjMzNzI5IDc3LjE2NDEgOS4wMzY1OUM3NS40NDc3IDkuNzM1ODggNzMuOTg1NSAxMC42MjU5IDcyLjc3NzYgMTEuODMzN0M3MS41Njk4IDEzLjA0MTYgNzAuNjE2MiAxNC41MDM4IDY5Ljk4MDUgMTYuMjIwM0M2OS4zNDQ3IDE3LjkzNjcgNjkuMDI2OSAxOS44NDM4IDY5LjAyNjkgMjEuODc4MkM2OS4wMjY5IDIzLjkxMjUgNjkuMzQ0NyAyNS44MTk3IDcwLjA0NCAyNy41MzYxQzcwLjc0MzMgMjkuMjUyNiA3MS42MzM0IDMwLjcxNDcgNzIuODQxMiAzMS45MjI2Qzc0LjA0OTEgMzMuMTMwNSA3NS41MTEyIDM0LjA4NDEgNzcuMjI3NyAzNC43MTk4Qzc4Ljk0NDEgMzUuNDE5MSA4MC44NTEzIDM1LjczNyA4Mi44ODU2IDM1LjczN0M4NC45MiAzNS43MzcgODYuNzYzNiAzNS40MTkxIDg4LjQxNjQgMzQuNzE5OEM5MC4wNjkzIDM0LjAyMDUgOTEuNDY3OSAzMy4xMzA1IDkyLjYxMjIgMzEuOTIyNkM5My43NTY1IDMwLjcxNDcgOTQuNjQ2NSAyOS4yNTI2IDk1LjI4MjIgMjcuNTM2MUM5NS45MTggMjUuODE5NyA5Ni4yMzU4IDIzLjkxMjUgOTYuMjM1OCAyMS44NzgyVjIxLjA1MTdDOTYuMDQ1MSAyMC45MjQ2IDk1Ljk4MTUgMjAuNjA2NyA5NS45ODE1IDIwLjM1MjVaIiBmaWxsPSIjOUI5QjlCIi8+Cjwvc3ZnPgo=
807);background-repeat:no-repeat;background-size:170px 40px;display:block;height:40px;width:170px}.ag-watermark-text{opacity:.5;font-weight:700;font-family:Impact,sans-serif;font-size:19px;padding-left:.7rem}.ag-root-wrapper-body{display:flex;flex-direction:row}.ag-root-wrapper-body.ag-layout-normal{flex:1 1 auto;height:0;min-height:0}.ag-root{position:relative;display:flex;flex-direction:column}.ag-root.ag-layout-normal,.ag-root.ag-layout-auto-height{overflow:hidden;flex:1 1 auto;width:0}.ag-root.ag-layout-normal{height:100%}.ag-header-viewport,.ag-floating-top-viewport,.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-body-horizontal-scroll-viewport,.ag-body-vertical-scroll-viewport,.ag-virtual-list-viewport,.ag-sticky-top-viewport,.ag-sticky-bottom-viewport{position:relative;height:100%;min-width:0px;overflow:hidden;flex:1 1 auto}.ag-body-viewport,.ag-center-cols-viewport,.ag-header-viewport,.ag-floating-top-viewport,.ag-floating-bottom-viewport,.ag-sticky-top-viewport,.ag-sticky-bottom-viewport{overflow-x:auto;-ms-overflow-style:none!important;scrollbar-width:none!important}.ag-body-viewport::-webkit-scrollbar,.ag-center-cols-viewport::-webkit-scrollbar,.ag-header-viewport::-webkit-scrollbar,.ag-floating-top-viewport::-webkit-scrollbar,.ag-floating-bottom-viewport::-webkit-scrollbar,.ag-sticky-top-viewport::-webkit-scrollbar,.ag-sticky-bottom-viewport::-webkit-scrollbar{display:none!important}.ag-body-viewport{display:flex;overflow-x:hidden}.ag-body-viewport.ag-layout-normal{overflow-y:auto;-webkit-overflow-scrolling:touch}.ag-sticky-top-container,.ag-sticky-bottom-container{min-height:1px}.ag-center-cols-viewport{min-height:100%;width:100%}.ag-body-horizontal-scroll-viewport{overflow-x:scroll}.ag-body-vertical-scroll-viewport{overflow-y:scroll}.ag-virtual-list-viewport{overflow:auto;width:100%}.ag-header-container,.ag-floating-top-container,.ag-body-container,.ag-pinned-right-cols-container,.ag-center-cols-container,.ag-pinned-left-cols-container,.ag-floating-bottom-container,.ag-body-horizontal-scroll-container,.ag-body-vertical-scroll-container,.ag-full-width-container,.ag-floating-bottom-full-width-container,.ag-virtual-list-container,.ag-sticky-top-container,.ag-sticky-bottom-container{position:relative}.ag-header-container,.ag-floating-top-container,.ag-floating-bottom-container,.ag-sticky-top-container,.ag-sticky-bottom-container{height:100%;white-space:nowrap}.ag-center-cols-container,.ag-pinned-right-cols-container{display:block}.ag-body-horizontal-scroll-container{height:100%}.ag-body-vertical-scroll-container{width:100%}.ag-full-width-container,.ag-floating-top-full-width-container,.ag-floating-bottom-full-width-container,.ag-sticky-top-full-width-container,.ag-sticky-bottom-full-width-container{position:absolute;top:0;pointer-events:none}.ag-ltr .ag-full-width-container,.ag-ltr .ag-floating-top-full-width-container,.ag-ltr .ag-floating-bottom-full-width-container,.ag-ltr .ag-sticky-top-full-width-container,.ag-ltr .ag-sticky-bottom-full-width-container{left:0}.ag-rtl .ag-full-width-container,.ag-rtl .ag-floating-top-full-width-container,.ag-rtl .ag-floating-bottom-full-width-container,.ag-rtl .ag-sticky-top-full-width-container,.ag-rtl .ag-sticky-bottom-full-width-container{right:0}.ag-full-width-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container{display:inline-block;overflow:hidden;height:100%;width:100%}.ag-virtual-list-container{overflow:hidden}.ag-body{position:relative;display:flex;flex:1 1 auto;flex-direction:row!important;min-height:0}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{min-height:0;min-width:0;display:flex;position:relative}.ag-body-horizontal-scroll.ag-scrollbar-invisible,.ag-body-vertical-scroll.ag-scrollbar-invisible{position:absolute;bottom:0}.ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-apple-scrollbar,.ag-body-vertical-scroll.ag-scrollbar-invisible.ag-apple-scrollbar{opacity:0;transition:opacity .4s;visibility:hidden}.ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-scrolling,.ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-active,.ag-body-vertical-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-scrolling,.ag-body-vertical-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-active{visibility:visible;opacity:1}.ag-body-horizontal-scroll{width:100%}.ag-body-horizontal-scroll.ag-scrollbar-invisible{left:0;right:0}.ag-body-vertical-scroll{height:100%}.ag-body-vertical-scroll.ag-scrollbar-invisible{top:0;z-index:10}.ag-ltr .ag-body-vertical-scroll.ag-scrollbar-invisible{right:0}.ag-rtl .ag-body-vertical-scroll.ag-scrollbar-invisible{left:0}.ag-force-vertical-scroll{overflow-y:scroll!important}.ag-horizontal-left-spacer,.ag-horizontal-right-spacer{height:100%;min-width:0;overflow-x:scroll}.ag-horizontal-left-spacer.ag-scroller-corner,.ag-horizontal-right-spacer.ag-scroller-corner{overflow-x:hidden}.ag-header,.ag-pinned-left-header,.ag-pinned-right-header{display:inline-block;overflow:hidden;position:relative}.ag-header-cell-sortable .ag-header-cell-label{cursor:pointer}.ag-header{display:flex;width:100%;white-space:nowrap}.ag-pinned-left-header,.ag-pinned-right-header{height:100%}.ag-header-row{position:absolute}.ag-header-row:not(.ag-header-row-column-group){overflow:hidden}.ag-header.ag-header-allow-overflow .ag-header-row{overflow:visible}.ag-header-cell{display:inline-flex;align-items:center;position:absolute;height:100%;overflow:hidden}.ag-header-cell.ag-header-active .ag-header-cell-menu-button,.ag-header-cell-filter-button{opacity:1}.ag-header-cell-menu-button:not(.ag-header-menu-always-show){transition:opacity .2s;opacity:0}
807.ag-header-group-cell-label,.ag-header-cell-label{display:flex;flex:1 1 auto;align-self:stretch;align-items:center;overflow:hidden}.ag-header-cell-label{text-overflow:ellipsis}.ag-header-group-cell-label.ag-sticky-label{position:sticky;flex:none;max-width:100%;overflow:visible}.ag-header-group-text{overflow:hidden;text-overflow:ellipsis}.ag-header-cell-text{overflow:hidden;text-overflow:ellipsis;word-break:break-word}.ag-header-group-cell .ag-header-cell-comp-wrapper{display:flex}.ag-header-cell:not(.ag-header-cell-auto-height) .ag-header-cell-comp-wrapper{height:100%;display:flex;align-items:center}.ag-header-cell-comp-wrapper{width:100%}.ag-header-cell-wrap-text .ag-header-cell-comp-wrapper{white-space:normal}.ag-header-cell-comp-wrapper-limited-height>div{overflow:hidden}.ag-right-aligned-header .ag-header-cell-label{flex-direction:row-reverse}.ag-header-cell-resize{position:absolute;z-index:2;height:100%;width:8px;top:0;cursor:ew-resize}.ag-ltr .ag-header-cell-resize{right:-3px}.ag-rtl .ag-header-cell-resize{left:-3px}.ag-pinned-left-header .ag-header-cell-resize{right:-3px}.ag-pinned-right-header .ag-header-cell-resize{left:-3px}.ag-header-select-all{display:flex}.ag-header-cell-menu-button,.ag-header-cell-filter-button,.ag-side-button-button,.ag-panel-title-bar-button,.ag-floating-filter-button-button{cursor:pointer}.ag-column-moving .ag-cell,.ag-column-moving .ag-header-cell{transition:left .2s}.ag-column-moving .ag-header-group-cell{transition:left .2s,width .2s}.ag-column-panel{display:flex;flex-direction:column;overflow:hidden;flex:1 1 auto}.ag-column-select{position:relative;display:flex;flex-direction:column;overflow:hidden;flex:3 1 0px}.ag-column-select-header{position:relative;display:flex;flex:none}.ag-column-select-header-icon{position:relative}.ag-column-select-header-filter-wrapper{flex:1 1 auto}.ag-column-select-header-filter{width:100%}.ag-column-select-list{flex:1 1 0px;overflow:hidden}.ag-column-drop{position:relative;display:inline-flex;align-items:center;overflow:auto;width:100%}.ag-column-drop-list{display:flex;align-items:center}.ag-column-drop-cell{position:relative;display:flex;align-items:center}.ag-column-drop-cell-text{overflow:hidden;flex:1 1 auto;text-overflow:ellipsis;white-space:nowrap}.ag-column-drop-vertical{display:flex;flex-direction:column;overflow:hidden;align-items:stretch;flex:1 1 0px}.ag-column-drop-vertical-title-bar{display:flex;align-items:center;flex:none}.ag-column-drop-vertical-list{position:relative;align-items:stretch;flex-grow:1;flex-direction:column;overflow-x:auto}.ag-column-drop-vertical-list>*{flex:none}.ag-column-drop-empty .ag-column-drop-vertical-list{overflow:hidden}.ag-column-drop-vertical-empty-message{display:block}.ag-column-drop.ag-column-drop-horizontal{white-space:nowrap;overflow:hidden}.ag-column-drop-cell-button{cursor:pointer}.ag-filter-toolpanel{flex:1 1 0px;min-width:0}.ag-filter-toolpanel-header{position:relative}.ag-filter-toolpanel-header,.ag-filter-toolpanel-search{display:flex;align-items:center}.ag-filter-toolpanel-header>*,.ag-filter-toolpanel-search>*{display:flex;align-items:center}.ag-filter-apply-panel{display:flex;justify-content:flex-end;overflow:hidden}.ag-row-animation .ag-row{transition:transform .4s,top .4s,opacity .2s}.ag-row-animation .ag-row.ag-after-created{transition:transform .4s,top .4s,height .4s,opacity .2s}.ag-row-no-animation .ag-row{transition:none}.ag-row{white-space:nowrap;width:100%}.ag-row-loading{display:flex;align-items:center}.ag-row-position-absolute{position:absolute}.ag-row-position-relative{position:relative}.ag-full-width-row{overflow:hidden;pointer-events:all}.ag-row-inline-editing{z-index:1}.ag-row-dragging{z-index:2}.ag-stub-cell{display:flex;align-items:center}.ag-cell{display:inline-block;position:absolute;white-space:nowrap;height:100%}.ag-cell-value{flex:1 1 auto}.ag-cell-value,.ag-group-value{overflow:hidden;text-overflow:ellipsis}.ag-cell-wrap-text{white-space:normal;word-break:break-word}.ag-cell-wrapper{display:flex;align-items:center}.ag-cell-wrapper.ag-row-group{align-items:flex-start}.ag-sparkline-wrapper{position:absolute;height:100%;width:100%;left:0;top:0}.ag-full-width-row .ag-cell-wrapper.ag-row-group{height:100%;align-items:center}.ag-cell-inline-editing{z-index:1}.ag-cell-inline-editing .ag-cell-wrapper,.ag-cell-inline-editing .ag-cell-edit-wrapper,.ag-cell-inline-editing .ag-cell-editor,.ag-cell-inline-editing .ag-cell-editor .ag-wrapper,.ag-cell-inline-editing .ag-cell-editor input{height:100%;width:100%;line-height:normal}.ag-cell .ag-icon{display:inline-block;vertical-align:middle}.ag-set-filter-item{display:flex;align-items:center;height:100%}.ag-set-filter-item-checkbox{display:flex;width:100%;height:100%}.ag-set-filter-group-icons{display:block}.ag-set-filter-group-icons>*{cursor:pointer}.ag-filter-body-wrapper{display:flex;flex-direction:column}.ag-filter-filter{flex:1 1 0px}
807.ag-filter-condition{display:flex;justify-content:center}.ag-floating-filter-body{position:relative;display:flex;flex:1 1 auto;height:100%}.ag-floating-filter-full-body{display:flex;flex:1 1 auto;height:100%;width:100%;align-items:center;overflow:hidden}.ag-floating-filter-full-body>div{flex:1 1 auto}.ag-floating-filter-input{align-items:center;display:flex;width:100%}.ag-floating-filter-input>*{flex:1 1 auto}.ag-floating-filter-button{display:flex;flex:none}.ag-set-floating-filter-input input[disabled]{pointer-events:none}.ag-dnd-ghost{display:inline-flex;align-items:center;cursor:move;white-space:nowrap}.ag-overlay{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:2}.ag-overlay-panel{display:flex;height:100%;width:100%}.ag-overlay-wrapper{display:flex;flex:none;width:100%;height:100%;align-items:center;justify-content:center;text-align:center}.ag-overlay-loading-wrapper{pointer-events:all}.ag-popup-child{z-index:5;top:0}.ag-popup-editor{position:absolute;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ag-large-text-input{display:block}.ag-virtual-list-item{position:absolute;width:100%}.ag-floating-top{overflow:hidden;white-space:nowrap;width:100%;position:relative;display:flex}.ag-pinned-left-floating-top,.ag-pinned-right-floating-top{display:inline-block;overflow:hidden;position:relative;min-width:0px}.ag-floating-bottom{overflow:hidden;white-space:nowrap;width:100%;position:relative;display:flex}.ag-pinned-left-floating-bottom,.ag-pinned-right-floating-bottom{display:inline-block;overflow:hidden;position:relative;min-width:0px}.ag-sticky-top,.ag-sticky-bottom{position:absolute;display:flex;width:100%;overflow:hidden;height:0px}.ag-sticky-bottom{box-sizing:content-box!important}.ag-pinned-left-sticky-top,.ag-pinned-right-sticky-top{position:relative;height:100%;overflow:hidden}.ag-sticky-top-full-width-container,.ag-sticky-bottom-full-width-container{overflow:hidden;width:100%;height:100%}.ag-dialog,.ag-panel{display:flex;flex-direction:column;position:relative;overflow:hidden}.ag-panel-title-bar{display:flex;flex:none;align-items:center;cursor:default}.ag-panel-title-bar-title{flex:1 1 auto}.ag-panel-title-bar-buttons{display:flex}.ag-panel-title-bar-button{cursor:pointer}.ag-panel-content-wrapper{display:flex;flex:1 1 auto;position:relative;overflow:hidden}.ag-dialog{position:absolute}.ag-resizer{position:absolute;pointer-events:none;z-index:1;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ag-resizer.ag-resizer-topLeft{top:0;left:0;height:5px;width:5px;cursor:nwse-resize}.ag-resizer.ag-resizer-top{top:0;left:5px;right:5px;height:5px;cursor:ns-resize}.ag-resizer.ag-resizer-topRight{top:0;right:0;height:5px;width:5px;cursor:nesw-resize}.ag-resizer.ag-resizer-right{top:5px;right:0;bottom:5px;width:5px;cursor:ew-resize}.ag-resizer.ag-resizer-bottomRight{bottom:0;right:0;height:5px;width:5px;cursor:nwse-resize}.ag-resizer.ag-resizer-bottom{bottom:0;left:5px;right:5px;height:5px;cursor:ns-resize}.ag-resizer.ag-resizer-bottomLeft{bottom:0;left:0;height:5px;width:5px;cursor:nesw-resize}.ag-resizer.ag-resizer-left{left:0;top:5px;bottom:5px;width:5px;cursor:ew-resize}.ag-tooltip,.ag-tooltip-custom{position:absolute;z-index:99999}.ag-tooltip:not(.ag-tooltip-interactive),.ag-tooltip-custom:not(.ag-tooltip-interactive){pointer-events:none}.ag-value-slide-out{margin-right:5px;opacity:1;transition:opacity 3s,margin-right 3s;transition-timing-function:linear}.ag-value-slide-out-end{margin-right:10px;opacity:0}.ag-opacity-zero{opacity:0!important}.ag-menu{max-height:100%;overflow-y:auto;position:absolute;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ag-menu-column-select-wrapper{height:265px;overflow:auto}.ag-menu-column-select-wrapper .ag-column-select{height:100%}.ag-dialog .ag-panel-content-wrapper .ag-column-select{-webkit-user-select:none;user-select:none}.ag-menu-list{display:table;width:100%}.ag-menu-option,.ag-menu-separator{display:table-row}.ag-menu-option-part,.ag-menu-separator-part{display:table-cell;vertical-align:middle}.ag-menu-option-text{white-space:nowrap}.ag-menu-option-custom{display:contents}.ag-compact-menu-option{width:100%;display:flex;flex-wrap:nowrap}.ag-compact-menu-option-text{white-space:nowrap;flex:1 1 auto}.ag-pill-container{display:flex;gap:.25rem;flex-wrap:nowrap}.ag-pill{display:flex;white-space:nowrap;padding:0 .25rem;align-items:center}.ag-pill .ag-pill-button{border:none;padding:0}.ag-rich-select{cursor:default;outline:none;height:100%}.ag-rich-select-value{display:flex;align-items:center;height:100%}.ag-rich-select-value .ag-picker-field-display{overflow:hidden;text-overflow:ellipsis}.ag-rich-select-value .ag-picker-field-display.ag-display-as-placeholder{opacity:.5}.ag-rich-select-list{position:relative}.ag-rich-select-list .ag-loading-text{min-height:2rem}.ag-rich-select-row{display:flex;flex:1 1 auto;align-items:center;white-space:nowrap;overflow:hidden;height:100%}.ag-rich-select-field-input{flex:1 1 auto}.ag-rich-select-field-input .ag-input-field-input{padding:0!important;border:none!important;box-shadow:none!important;text-overflow:ellipsis}.ag-rich-select-field-input .ag-input-field-input::placeholder{opacity:.8}.ag-autocomplete{align-items:center;display:flex}.ag-autocomplete>*{flex:1 1 auto}.ag-autocomplete-list-popup{position:absolute;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ag-autocomplete-list{position:relative}.ag-autocomplete-virtual-list-item{display:flex}.ag-autocomplete-row{display:flex;flex:1 1 auto;align-items:center;overflow:hidden}.ag-autocomplete-row-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ag-paging-panel{align-items:center;display:flex;justify-content:flex-end}.ag-paging-page-summary-panel{display:flex;align-items:center}.ag-paging-button{position:relative}.ag-disabled .ag-paging-page-summary-panel{pointer-events:none}.ag-tool-panel-wrapper{display:flex;overflow-y:auto;overflow-x:hidden;cursor:default;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ag-column-select-column,.ag-column-select-column-group,.ag-select-agg-func-item{position:relative;align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;height:100%}.ag-column-select-column>*,.ag-column-select-column-group>*,.ag-select-agg-func-item>*{flex:none}.ag-select-agg-func-item,.ag-column-select-column-label{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-column-select-checkbox{display:flex}.ag-tool-panel-horizontal-resize{cursor:ew-resize;height:100%;position:absolute;top:0;width:5px;z-index:1}.ag-ltr .ag-side-bar-left .ag-tool-panel-horizontal-resize{right:-3px}.ag-rtl .ag-side-bar-left .ag-tool-panel-horizontal-resize,.ag-ltr .ag-side-bar-right .ag-tool-panel-horizontal-resize{left:-3px}.ag-rtl .ag-side-bar-right .ag-tool-panel-horizontal-resize{right:-3px}.ag-details-row{width:100%}.ag-details-row-fixed-height{height:100%}.ag-details-grid{width:100%}.ag-details-grid-fixed-height{height:100%}.ag-header-group-cell{display:flex;align-items:center;height:100%;position:absolute}.ag-header-group-cell-no-group.ag-header-span-height{display:none}.ag-cell-label-container{display:flex;justify-content:space-between;flex-direction:row-reverse;align-items:center;height:100%;width:100%}.ag-header-group-cell-label,.ag-cell-label-container{padding:5px 0}.ag-right-aligned-header .ag-cell-label-container{flex-direction:row}.ag-right-aligned-header .ag-header-cell-text{text-align:end}.ag-side-bar{display:flex;flex-direction:row-reverse}.ag-side-bar-left{order:-1;flex-direction:row}.ag-side-button-button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;flex-wrap:nowrap;white-space:nowrap;outline:none;cursor:pointer}.ag-side-button-label{writing-mode:vertical-lr}.ag-status-bar{display:flex;justify-content:space-between;overflow:hidden}.ag-status-panel{display:inline-flex}.ag-status-name-value{white-space:nowrap}.ag-status-bar-left,.ag-status-bar-center,.ag-status-bar-right{display:inline-flex}.ag-icon{display:block;speak:none}.ag-group{position:relative;width:100%}.ag-group-title-bar{display:flex;align-items:center}.ag-group-title{display:inline;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ag-group-title-bar .ag-group-title{cursor:default}.ag-group-toolbar{display:flex;align-items:center}.ag-group-container{display:flex}.ag-disabled .ag-group-container{pointer-events:none}.ag-group-container-horizontal{flex-direction:row;flex-wrap:wrap}.ag-group-container-vertical{flex-direction:column}.ag-column-group-icons{display:block}.ag-column-group-icons>*{cursor:pointer}.ag-group-item-alignment-stretch .ag-group-item{align-items:stretch}.ag-group-item-alignment-start .ag-group-item{align-items:flex-start}.ag-group-item-alignment-end .ag-group-item{align-items:flex-end}.ag-toggle-button-icon{transition:right .3s;position:absolute;top:-1px}.ag-input-field,.ag-select{display:flex;flex-direction:row;align-items:center}.ag-input-field-input{flex:1 1 auto}.ag-floating-filter-input .ag-input-field-input[type=date]{width:1px}.ag-range-field,.ag-angle-select{display:flex;align-items:center}.ag-angle-select-wrapper{display:flex}.ag-angle-select-parent-circle{display:block;position:relative}.ag-angle-select-child-circle{position:absolute}
807.ag-slider-wrapper{display:flex}.ag-slider-wrapper .ag-input-field,.ag-picker-field-display{flex:1 1 auto}.ag-picker-field{display:flex;align-items:center}.ag-picker-field-icon{display:flex;border:0;padding:0;margin:0;cursor:pointer}.ag-picker-field-wrapper{overflow:hidden}.ag-label-align-right .ag-label{order:1}.ag-label-align-right>*{flex:none}.ag-label-align-top{flex-direction:column;align-items:flex-start}.ag-label-align-top>*{align-self:stretch}.ag-label-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.ag-color-panel{width:100%;display:flex;flex-direction:column;text-align:center}.ag-spectrum-color{flex:1 1 auto;position:relative;overflow:visible;cursor:default}.ag-spectrum-fill{position:absolute;inset:0}.ag-spectrum-val{cursor:pointer}.ag-spectrum-dragger{position:absolute;pointer-events:none;cursor:pointer}.ag-spectrum-hue,.ag-spectrum-alpha{cursor:default}.ag-spectrum-hue-background{background:linear-gradient(to left,red 3%,#ff0 17%,#0f0 33%,#0ff,#00f 67%,#f0f 83%,red);width:100%;height:100%}.ag-spectrum-alpha{--ag-spectrum-alpha-background-checked: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><rect x="0" y="0" width="4" height="4" fill="%23fff"/><path d="M0 0H2V4H4V2H0Z" fill="%23b2b2b2"/></svg>')}.ag-spectrum-alpha-background{background:linear-gradient(to right,var(--ag-internal-spectrum-alpha-color-from),var(--ag-internal-spectrum-alpha-color-to)),var(--ag-spectrum-alpha-background-checked) top left/4px 4px;width:100%;height:100%}.ag-spectrum-tool{cursor:pointer;position:relative}.ag-spectrum-slider{position:absolute;pointer-events:none}.ag-spectrum-alpha .ag-spectrum-slider{background:linear-gradient(to bottom,var(--ag-internal-spectrum-alpha-color),var(--ag-internal-spectrum-alpha-color)) #fff}.ag-recent-colors{display:flex}.ag-recent-color{cursor:pointer}.ag-pill-select{display:flex;flex-direction:column}.ag-pill-select .ag-column-drop{flex:unset}.ag-ltr{direction:ltr}.ag-ltr .ag-body,.ag-ltr .ag-floating-top,.ag-ltr .ag-floating-bottom,.ag-ltr .ag-header,.ag-ltr .ag-sticky-top,.ag-ltr .ag-sticky-bottom,.ag-ltr .ag-body-viewport,.ag-ltr .ag-body-horizontal-scroll{flex-direction:row}.ag-rtl{direction:rtl}.ag-rtl .ag-body,.ag-rtl .ag-floating-top,.ag-rtl .ag-floating-bottom,.ag-rtl .ag-header,.ag-rtl .ag-sticky-top,.ag-rtl .ag-sticky-bottom,.ag-rtl .ag-body-viewport,.ag-rtl .ag-body-horizontal-scroll{flex-direction:row-reverse}.ag-rtl .ag-icon-contracted,.ag-rtl .ag-icon-expanded,.ag-rtl .ag-icon-tree-closed{display:block;transform:rotate(180deg)}.ag-body .ag-body-viewport{-webkit-overflow-scrolling:touch}.ag-measurement-container{width:0;overflow:hidden;visibility:hidden}.ag-measurement-container div{position:absolute}.ag-layout-print.ag-body{display:block;height:unset}.ag-layout-print.ag-root-wrapper{display:inline-block}.ag-layout-print .ag-body-vertical-scroll,.ag-layout-print .ag-body-horizontal-scroll{display:none}.ag-layout-print.ag-force-vertical-scroll{overflow-y:visible!important}@media print{.ag-root-wrapper.ag-layout-print{display:table}.ag-root-wrapper.ag-layout-print .ag-root-wrapper-body,.ag-root-wrapper.ag-layout-print .ag-root,.ag-root-wrapper.ag-layout-print .ag-body-viewport,.ag-root-wrapper.ag-layout-print .ag-center-cols-container,.ag-root-wrapper.ag-layout-print .ag-center-cols-viewport,.ag-root-wrapper.ag-layout-print .ag-body-horizontal-scroll-viewport,.ag-root-wrapper.ag-layout-print .ag-virtual-list-viewport{height:auto!important;overflow:hidden!important;display:block!important}.ag-root-wrapper.ag-layout-print .ag-row,.ag-root-wrapper.ag-layout-print .ag-cell{break-inside:avoid}}[class^=ag-],[class^=ag-]:focus,[class^=ag-]:after,[class^=ag-]:before{box-sizing:border-box;outline:none}[class^=ag-]::-ms-clear{display:none}.ag-checkbox .ag-input-wrapper,.ag-radio-button .ag-input-wrapper{overflow:visible}.ag-range-field .ag-input-wrapper{height:100%}.ag-toggle-button{flex:none;width:unset;min-width:unset}.ag-button{border-radius:0;color:var(--ag-foreground-color)}.ag-button:hover{background-color:transparent}.ag-ltr .ag-label-align-right .ag-label{margin-left:var(--ag-grid-size)}.ag-rtl .ag-label-align-right .ag-label{margin-right:var(--ag-grid-size)}input[class^=ag-]{margin:0;background-color:var(--ag-background-color)}textarea[class^=ag-],select[class^=ag-]{background-color:var(--ag-background-color)}input[class^=ag-]:not([type]),input[class^=ag-][type=text],input[class^=ag-][type=number],input[class^=ag-][type=tel],input[class^=ag-][type=date],input[class^=ag-][type=datetime-local],textarea[class^=ag-]{font-size:inherit;line-height:inherit;color:inherit;font-family:inherit;border:var(--ag-borders-input) var(--ag-input-border-color)}input[class^=ag-]:not([type]):disabled,input[class^=ag-][type=text]:disabled,input[class^=ag-][type=number]:disabled,input[class^=ag-][type=tel]:disabled,input[class^=ag-][type=date]:disabled,input[class^=ag-][type=datetime-local]:disabled,textarea[class^=ag-]:disabled{color:var(--ag-disabled-foreground-color);background-color:var(--ag-input-disabled-background-color);border-color:var(--ag-input-disabled-border-color)}input[class^=ag-]:not([type]):focus,input[class^=ag-][type=text]:focus,input[class^=ag-][type=number]:focus,input[class^=ag-][type=tel]:focus,input[class^=ag-][type=date]:focus,input[class^=ag-][type=datetime-local]:focus,textarea[class^=ag-]:focus{outline:none;
807box-shadow:var(--ag-input-focus-box-shadow);border-color:var(--ag-input-focus-border-color)}input[class^=ag-]:not([type]):invalid,input[class^=ag-][type=text]:invalid,input[class^=ag-][type=number]:invalid,input[class^=ag-][type=tel]:invalid,input[class^=ag-][type=date]:invalid,input[class^=ag-][type=datetime-local]:invalid,textarea[class^=ag-]:invalid{border:var(--ag-borders-input-invalid) var(--ag-input-border-color-invalid)}input[class^=ag-][type=number]:not(.ag-number-field-input-stepper){-moz-appearance:textfield}input[class^=ag-][type=number]:not(.ag-number-field-input-stepper)::-webkit-outer-spin-button,input[class^=ag-][type=number]:not(.ag-number-field-input-stepper)::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[class^=ag-][type=range]{padding:0}input[class^=ag-][type=button]:focus,button[class^=ag-]:focus{box-shadow:var(--ag-input-focus-box-shadow)}.ag-drag-handle{color:var(--ag-secondary-foreground-color)}.ag-list-item,.ag-virtual-list-item{height:var(--ag-list-item-height)}.ag-virtual-list-item:focus-visible{outline:none}.ag-virtual-list-item:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-select-list{background-color:var(--ag-background-color);overflow-y:auto;overflow-x:hidden;border-radius:var(--ag-border-radius);border:var(--ag-borders) var(--ag-border-color)}.ag-list-item{display:flex;align-items:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ag-list-item.ag-active-item{background-color:var(--ag-row-hover-color)}.ag-select-list-item{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.ag-ltr .ag-select-list-item{padding-left:calc(var(--ag-cell-horizontal-padding) / 2)}.ag-rtl .ag-select-list-item{padding-right:calc(var(--ag-cell-horizontal-padding) / 2)}.ag-select-list-item span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.ag-row-drag,.ag-selection-checkbox,.ag-group-expanded,.ag-group-contracted{color:var(--ag-secondary-foreground-color)}.ag-ltr .ag-row-drag,.ag-ltr .ag-selection-checkbox,.ag-ltr .ag-group-expanded,.ag-ltr .ag-group-contracted{margin-right:var(--ag-cell-widget-spacing)}.ag-rtl .ag-row-drag,.ag-rtl .ag-selection-checkbox,.ag-rtl .ag-group-expanded,.ag-rtl .ag-group-contracted{margin-left:var(--ag-cell-widget-spacing)}.ag-cell-wrapper>*:not(.ag-cell-value):not(.ag-group-value){--ag-internal-calculated-line-height: var( --ag-line-height, calc(var(--ag-row-height) - var(--ag-row-border-width)) );--ag-internal-padded-row-height: calc(var(--ag-row-height) - var(--ag-row-border-width));height:min(var(--ag-internal-calculated-line-height),var(--ag-internal-padded-row-height));display:flex;align-items:center;flex:none}.ag-group-expanded,.ag-group-contracted{cursor:pointer}.ag-group-title-bar-icon{cursor:pointer;flex:none;color:var(--ag-secondary-foreground-color)}.ag-ltr .ag-group-child-count{margin-left:2px}.ag-rtl .ag-group-child-count{margin-right:2px}.ag-group-title-bar{background-color:var(--ag-subheader-background-color);padding:var(--ag-grid-size)}.ag-group-toolbar{padding:var(--ag-grid-size);background-color:var(--ag-subheader-toolbar-background-color)}.ag-disabled-group-title-bar,.ag-disabled-group-container{opacity:.5}.group-item{margin:calc(var(--ag-grid-size) * .5) 0}.ag-label{white-space:nowrap}.ag-ltr .ag-label{margin-right:var(--ag-grid-size)}.ag-rtl .ag-label{margin-left:var(--ag-grid-size)}.ag-label-align-top .ag-label{margin-bottom:calc(var(--ag-grid-size) * .5)}.ag-angle-select[disabled]{color:var(--ag-disabled-foreground-color);pointer-events:none}.ag-angle-select[disabled] .ag-angle-select-field{opacity:.4}.ag-ltr .ag-slider-field,.ag-ltr .ag-angle-select-field{margin-right:calc(var(--ag-grid-size) * 2)}.ag-rtl .ag-slider-field,.ag-rtl .ag-angle-select-field{margin-left:calc(var(--ag-grid-size) * 2)}.ag-angle-select-parent-circle{width:24px;height:24px;border-radius:12px;border:solid 1px;border-color:var(--ag-border-color);background-color:var(--ag-background-color)}.ag-angle-select-child-circle{top:4px;left:12px;width:6px;height:6px;margin-left:-3px;margin-top:-4px;border-radius:3px;background-color:var(--ag-secondary-foreground-color)}.ag-picker-field-wrapper{border:var(--ag-borders);border-color:var(--ag-border-color);border-radius:5px;background-color:var(--ag-background-color)}.ag-picker-field-wrapper:disabled{color:var(--ag-disabled-foreground-color);background-color:var(--ag-input-disabled-background-color);border-color:var(--ag-input-disabled-border-color)}.ag-picker-field-wrapper.ag-picker-has-focus,.ag-picker-field-wrapper:focus-within{outline:none;
807box-shadow:var(--ag-input-focus-box-shadow);border-color:var(--ag-input-focus-border-color)}.ag-picker-field-button{background-color:var(--ag-background-color);color:var(--ag-secondary-foreground-color)}.ag-dialog.ag-color-dialog{border-radius:5px}.ag-color-picker .ag-picker-field-wrapper{padding-left:var(--ag-grid-size);padding-right:var(--ag-grid-size)}.ag-color-picker .ag-picker-field-display{display:flex;flex-direction:row;align-items:center;min-height:var(--ag-list-item-height)}.ag-ltr .ag-color-picker-color,.ag-ltr .ag-color-picker-value{margin-right:var(--ag-grid-size)}.ag-rtl .ag-color-picker-color,.ag-rtl .ag-color-picker-value{margin-left:var(--ag-grid-size)}.ag-color-panel{padding:var(--ag-grid-size)}.ag-spectrum-color{background-color:red;border-radius:2px}.ag-spectrum-tools{padding:10px}.ag-spectrum-sat{background-image:linear-gradient(to right,#fff,#cc9a8100)}.ag-spectrum-val{background-image:linear-gradient(to top,#000,#cc9a8100)}.ag-spectrum-dragger{border-radius:12px;height:12px;width:12px;border:2px solid white;background:#000;box-shadow:0 0 2px #0000003d}.ag-spectrum-hue-background,.ag-spectrum-alpha-background{border-radius:2px}.ag-spectrum-tool{margin-bottom:10px;height:11px;border-radius:2px}.ag-spectrum-slider{margin-top:-12px;width:13px;height:13px;border-radius:13px;border:2px solid white;box-shadow:0 1px 4px #0000005e}.ag-recent-colors{margin-top:10px}.ag-recent-color{margin:0 3px}.ag-recent-color:first-child{margin-left:0}.ag-recent-color:last-child{margin-right:0}.ag-spectrum-color:focus-visible:not(:disabled):not([readonly]),.ag-spectrum-slider:focus-visible:not(:disabled):not([readonly]),.ag-recent-color:focus-visible:not(:disabled):not([readonly]){box-shadow:var(--ag-input-focus-box-shadow)}.ag-ltr .ag-color-input input[class^=ag-][type=text].ag-input-field-input{padding-left:calc(var(--ag-icon-size) + var(--ag-grid-size) * 2)}.ag-rtl .ag-color-input input[class^=ag-][type=text].ag-input-field-input{padding-right:calc(var(--ag-icon-size) + var(--ag-grid-size) * 2)}.ag-color-input .ag-color-input-color{position:absolute}.ag-ltr .ag-color-input .ag-color-input-color{margin-left:var(--ag-grid-size)}.ag-rtl .ag-color-input .ag-color-input-color{margin-right:var(--ag-grid-size)}.ag-color-picker-color,.ag-color-input-color{width:var(--ag-icon-size);height:var(--ag-icon-size);border:var(--ag-borders-secondary) var(--ag-secondary-border-color);border-radius:2px}.ag-dnd-ghost{border:var(--ag-borders) var(--ag-border-color);background:var(--ag-background-color);border-radius:var(--ag-card-radius);box-shadow:var(--ag-card-shadow);padding:var(--ag-grid-size);overflow:hidden;text-overflow:ellipsis;border:var(--ag-borders-secondary) var(--ag-secondary-border-color);color:var(--ag-secondary-foreground-color);height:var(--ag-header-height);line-height:var(--ag-header-height);margin:0;padding:0 calc(var(--ag-grid-size) * 2);transform:translateY(calc(var(--ag-grid-size) * 2))}.ag-dnd-ghost-icon{margin-right:var(--ag-grid-size);color:var(--ag-foreground-color)}.ag-popup-child:not(.ag-tooltip-custom){box-shadow:var(--ag-popup-shadow)}.ag-select .ag-picker-field-wrapper{min-height:var(--ag-list-item-height);cursor:default}.ag-ltr .ag-select .ag-picker-field-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding) / 2)}.ag-rtl .ag-select .ag-picker-field-wrapper{padding-right:calc(var(--ag-cell-horizontal-padding) / 2)}.ag-ltr .ag-select .ag-picker-field-wrapper{padding-right:var(--ag-grid-size)}.ag-rtl .ag-select .ag-picker-field-wrapper{padding-left:var(--ag-grid-size)}.ag-select.ag-disabled .ag-picker-field-wrapper:focus{box-shadow:none}.ag-select:not(.ag-cell-editor,.ag-label-align-top){min-height:var(--ag-list-item-height)}.ag-select .ag-picker-field-display{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ag-select .ag-picker-field-icon{display:flex;align-items:center}.ag-select.ag-disabled{opacity:.5}.ag-rich-select-value,.ag-rich-select-list{background-color:var(--ag-background-color)}.ag-rich-select-list{width:100%;height:auto;border-radius:var(--ag-border-radius);border:var(--ag-borders) var(--ag-border-color)}.ag-rich-select-list .ag-loading-text{padding:var(--ag-widget-vertical-spacing) var(--ag-widget-horizontal-spacing)}.ag-rich-select-value{border-bottom:var(--ag-borders-secondary) var(--ag-secondary-border-color);padding-top:0;padding-bottom:0}.ag-ltr .ag-rich-select-value{padding-left:calc(var(--ag-cell-horizontal-padding) / 2)}.ag-rtl .ag-rich-select-value{padding-right:calc(var(--ag-cell-horizontal-padding) / 2)}.ag-ltr .ag-rich-select-value{padding-right:var(--ag-grid-size)}.ag-rtl .ag-rich-select-value{padding-left:var(--ag-grid-size)}.ag-ltr .ag-rich-select-field-input{left:calc(var(--ag-cell-horizontal-padding))}.ag-rtl .ag-rich-select-field-input{right:calc(var(--ag-cell-horizontal-padding))}.ag-popup-editor .ag-rich-select-value{height:var(--ag-row-height);
807min-width:200px}.ag-rich-select-virtual-list-item{cursor:default;height:var(--ag-list-item-height)}.ag-rich-select-virtual-list-item:focus-visible:after{content:none}.ag-ltr .ag-rich-select-row{padding-left:calc(var(--ag-cell-horizontal-padding) / 2)}.ag-rtl .ag-rich-select-row{padding-right:calc(var(--ag-cell-horizontal-padding) / 2)}.ag-rich-select-row-selected{background-color:var(--ag-selected-row-background-color)}.ag-rich-select-row:hover,.ag-rich-select-row-highlighted{background-image:linear-gradient(var(--ag-row-hover-color),var(--ag-row-hover-color))}.ag-rich-select-row-text-highlight{font-weight:700}.ag-autocomplete{width:100%}.ag-autocomplete-list{width:100%;min-width:200px;height:calc(var(--ag-row-height) * 6.5)}.ag-autocomplete-virtual-list-item{cursor:default;height:var(--ag-list-item-height)}.ag-autocomplete-virtual-list-item:focus-visible:after{content:none}.ag-autocomplete-virtual-list-item:hover{background-color:var(--ag-row-hover-color)}.ag-autocomplete-row-label{margin:0px var(--ag-widget-container-horizontal-padding)}.ag-autocomplete-row-selected{background-color:var(--ag-selected-row-background-color)}.ag-pill{border:1px solid var(--ag-chip-border-color);border-radius:var(--ag-border-radius);background-color:var(--ag-chip-background-color)}.ag-ltr .ag-pill .ag-pill-button{margin-left:var(--ag-grid-size)}.ag-rtl .ag-pill .ag-pill-button{margin-right:var(--ag-grid-size)}.ag-pill:focus-visible{border-color:var(--ag-input-focus-border-color)}.ag-pill .ag-pill-button:hover{cursor:pointer}.ag-dragging-range-handle .ag-dialog,.ag-dragging-fill-handle .ag-dialog{opacity:.7;pointer-events:none}.ag-dialog{border-radius:var(--ag-border-radius);border:var(--ag-borders) var(--ag-border-color);box-shadow:var(--ag-popup-shadow)}.ag-panel{background-color:var(--ag-panel-background-color);border-color:var(--ag-panel-border-color)}.ag-panel-title-bar{color:var(--ag-header-foreground-color);height:var(--ag-header-height);padding:var(--ag-grid-size) var(--ag-cell-horizontal-padding);border-bottom:var(--ag-borders) var(--ag-border-color)}.ag-ltr .ag-panel-title-bar-button{margin-left:var(--ag-grid-size)}.ag-rtl .ag-panel-title-bar-button{margin-right:var(--ag-grid-size)}.ag-tooltip{background-color:var(--ag-tooltip-background-color);color:var(--ag-foreground-color);padding:var(--ag-grid-size);border:var(--ag-borders) var(--ag-border-color);border-radius:var(--ag-card-radius);white-space:normal}.ag-tooltip.ag-tooltip-animate,.ag-tooltip-custom.ag-tooltip-animate{transition:opacity 1s}.ag-tooltip.ag-tooltip-animate.ag-tooltip-hiding,.ag-tooltip-custom.ag-tooltip-animate.ag-tooltip-hiding{opacity:0}.ag-ltr .ag-column-select-column,.ag-ltr .ag-column-select-column-group{padding-left:calc(var(--ag-indentation-level) * var(--ag-column-select-indent-size))}.ag-rtl .ag-column-select-column,.ag-rtl .ag-column-select-column-group{padding-right:calc(var(--ag-indentation-level) * var(--ag-column-select-indent-size))}.ag-column-select-header-icon{cursor:pointer}.ag-column-select-header-icon:focus-visible{outline:none}.ag-column-select-header-icon:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:0;left:0;display:block;width:calc(100% + -0px);height:calc(100% + -0px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-ltr .ag-column-group-icons:not(:last-child),.ag-ltr .ag-column-select-header-icon:not(:last-child),.ag-ltr .ag-column-select-header-checkbox:not(:last-child),.ag-ltr .ag-column-select-header-filter-wrapper:not(:last-child),.ag-ltr .ag-column-select-checkbox:not(:last-child),.ag-ltr .ag-column-select-column-drag-handle:not(:last-child),.ag-ltr .ag-column-select-column-group-drag-handle:not(:last-child),.ag-ltr .ag-column-select-column-label:not(:last-child){margin-right:var(--ag-widget-horizontal-spacing)}.ag-rtl .ag-column-group-icons:not(:last-child),.ag-rtl .ag-column-select-header-icon:not(:last-child),.ag-rtl .ag-column-select-header-checkbox:not(:last-child),.ag-rtl .ag-column-select-header-filter-wrapper:not(:last-child),.ag-rtl .ag-column-select-checkbox:not(:last-child),.ag-rtl .ag-column-select-column-drag-handle:not(:last-child),.ag-rtl .ag-column-select-column-group-drag-handle:not(:last-child),.ag-rtl .ag-column-select-column-label:not(:last-child){margin-left:var(--ag-widget-horizontal-spacing)}.ag-column-select-virtual-list-item:focus-visible{outline:none}.ag-column-select-virtual-list-item:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:1px;left:1px;display:block;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-column-select-column-group:not(:last-child),.ag-column-select-column:not(:last-child){margin-bottom:var(--ag-widget-vertical-spacing)}.ag-column-select-column-readonly,.ag-column-select-column-group-readonly{color:var(--ag-disabled-foreground-color);pointer-events:none}.ag-ltr .ag-column-select-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-grid-size) * 2)}.ag-rtl .ag-column-select-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-grid-size) * 2)}.ag-column-select-virtual-list-viewport{padding:calc(var(--ag-widget-container-vertical-padding) * .5) 0px}.ag-column-select-virtual-list-item{padding:0 var(--ag-widget-container-horizontal-padding)}.ag-checkbox-edit{padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding)}.ag-pill-select .ag-column-drop{border-bottom:0;min-height:unset}.ag-pill-select .ag-column-drop-list{padding:0}.ag-pill-select .ag-select{padding-top:var(--ag-grid-size)}.ag-pill-select .ag-picker-field-wrapper{background-color:transparent;border:0}.ag-pill-select .ag-picker-field-display{cursor:pointer}.ag-rtl{text-align:right}.ag-root-wrapper{border-radius:var(--ag-wrapper-border-radius);border:var(--ag-borders) var(--ag-border-color)}.ag-row>.ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * var(--ag-indentation-level))}.ag-cell-wrapper.ag-row-group,.ag-cell-wrapper.ag-row-group-leaf-indent,.ag-cell-wrapper.ag-pivot-leaf-group{padding-left:calc(var(--ag-indentation-level) * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-group-leaf-indent{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-group-leaf-indent{margin-right:var(--ag-row-group-indent-size)}.ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-value-change-delta{padding-right:2px}.ag-value-change-delta-up{color:var(--ag-value-change-delta-up-color)}.ag-value-change-delta-down{color:var(--ag-value-change-delta-down-color)}.ag-value-change-value{background-color:transparent;border-radius:1px;padding-left:1px;padding-right:1px;transition:background-color 1s}.ag-value-change-value-highlight{background-color:var(--ag-value-change-value-highlight-background-color);transition:background-color .1s}.ag-cell-data-changed{background-color:var(--ag-value-change-value-highlight-background-color)!important}.ag-cell-data-changed-animation{background-color:transparent}.ag-cell-highlight{background-color:var(--ag-range-selection-highlight-color)!important}.ag-row{height:var(--ag-row-height);background-color:var(--ag-background-color);color:var(--ag-data-color);border-bottom:var(--ag-row-border-style) var(--ag-row-border-color) var(--ag-row-border-width)}.ag-row-highlight-above:after,.ag-row-highlight-below:after{content:"";position:absolute;width:calc(100% - 1px);height:1px;background-color:var(--ag-range-selection-border-color);left:1px}.ag-row-highlight-above:after{top:0}.ag-row-highlight-below:after{bottom:0}.ag-row-odd{background-color:var(--ag-odd-row-background-color)}.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible) .ag-horizontal-left-spacer:not(.ag-scroller-corner){border-right:var(--ag-borders-critical) var(--ag-border-color)}.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible) .ag-horizontal-right-spacer:not(.ag-scroller-corner){border-left:var(--ag-borders-critical) var(--ag-border-color)}.ag-row-selected:before{content:"";background-color:var(--ag-selected-row-background-color);display:block;position:absolute;inset:0}.ag-row-hover:not(.ag-full-width-row):before,.ag-row-hover.ag-full-width-row.ag-row-group:before{content:"";background-color:var(--ag-row-hover-color);display:block;position:absolute;inset:0;pointer-events:none}.ag-row-hover.ag-full-width-row.ag-row-group>*{position:relative}.ag-row-hover.ag-row-selected:before{background-color:var(--ag-row-hover-color);background-image:linear-gradient(var(--ag-selected-row-background-color),var(--ag-selected-row-background-color))}.ag-column-hover{background-color:var(--ag-column-hover-color)}.ag-ltr .ag-right-aligned-cell{text-align:right}.ag-rtl .ag-right-aligned-cell{text-align:left}.ag-ltr .ag-right-aligned-cell .ag-cell-value,.ag-ltr .ag-right-aligned-cell .ag-group-value{margin-left:auto}.ag-rtl .ag-right-aligned-cell .ag-cell-value,.ag-rtl .ag-right-aligned-cell .ag-group-value{margin-right:auto}.ag-ltr .ag-right-aligned-cell .ag-skeleton-effect{margin-left:auto}.ag-rtl .ag-right-aligned-cell .ag-skeleton-effect{margin-right:auto}.ag-cell,.ag-full-width-row .ag-cell-wrapper.ag-row-group{--ag-internal-calculated-line-height: var( --ag-line-height, calc(var(--ag-row-height) - var(--ag-row-border-width)) );
807--ag-internal-padded-row-height: calc(var(--ag-row-height) - var(--ag-row-border-width));border:1px solid transparent;line-height:min(var(--ag-internal-calculated-line-height),var(--ag-internal-padded-row-height));padding-left:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size) * var(--ag-indentation-level));padding-right:calc(var(--ag-cell-horizontal-padding) - 1px);-webkit-font-smoothing:subpixel-antialiased}.ag-row>.ag-cell-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}.ag-row-dragging{cursor:move;opacity:.5}.ag-cell-inline-editing{border:1px solid var(--ag-border-color);border-radius:var(--ag-card-radius);box-shadow:var(--ag-card-shadow);padding:0;background-color:var(--ag-control-panel-background-color)}.ag-popup-editor .ag-large-text,.ag-autocomplete-list-popup{border:var(--ag-borders) var(--ag-border-color);background:var(--ag-background-color);border-radius:var(--ag-card-radius);box-shadow:var(--ag-card-shadow);padding:var(--ag-grid-size);background-color:var(--ag-control-panel-background-color);padding:0}.ag-large-text-input{height:auto;padding:var(--ag-cell-horizontal-padding)}.ag-rtl .ag-large-text-input textarea{resize:none}.ag-details-row{padding:calc(var(--ag-grid-size) * 5);background-color:var(--ag-background-color)}.ag-layout-auto-height .ag-center-cols-viewport,.ag-layout-auto-height .ag-center-cols-container,.ag-layout-print .ag-center-cols-viewport,.ag-layout-print .ag-center-cols-container{min-height:50px}.ag-overlay-loading-wrapper{background-color:var(--ag-modal-overlay-background-color)}.ag-overlay-loading-center{border:var(--ag-borders) var(--ag-border-color);background:var(--ag-background-color);border-radius:var(--ag-card-radius);box-shadow:var(--ag-card-shadow);padding:var(--ag-grid-size)}.ag-skeleton-container{width:100%;height:100%;align-content:center}.ag-skeleton-effect{background-color:var(--ag-row-loading-skeleton-effect-color);width:100%;height:1em;border-radius:.25rem;animation:ag-skeleton-loading 1.5s ease-in-out .5s infinite}@keyframes ag-skeleton-loading{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.ag-loading{display:flex;height:100%;align-items:center}.ag-ltr .ag-loading{padding-left:var(--ag-cell-horizontal-padding)}.ag-rtl .ag-loading{padding-right:var(--ag-cell-horizontal-padding)}.ag-ltr .ag-loading-icon{padding-right:var(--ag-cell-widget-spacing)}.ag-rtl .ag-loading-icon{padding-left:var(--ag-cell-widget-spacing)}.ag-icon-loading{animation-name:spin;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ag-floating-top{border-bottom:var(--ag-borders-critical) var(--ag-border-color)}.ag-floating-bottom{border-top:var(--ag-borders-critical) var(--ag-border-color)}.ag-ltr .ag-cell{border-right:var(--ag-cell-horizontal-border)}.ag-rtl .ag-cell{border-left:var(--ag-cell-horizontal-border)}.ag-ltr .ag-cell{border-right-width:1px}.ag-rtl .ag-cell{border-left-width:1px}.ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left):not(.ag-cell-range-single-cell){border-left:var(--ag-borders-critical) var(--ag-border-color)}.ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right):not(.ag-cell-range-single-cell){border-right:var(--ag-borders-critical) var(--ag-border-color)}.ag-cell-range-selected:not(.ag-cell-focus),.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing){background-color:var(--ag-range-selection-background-color)}.ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart,.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing).ag-cell-range-chart{background-color:var(--ag-range-selection-chart-background-color)!important}.ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart.ag-cell-range-chart-category,.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing).ag-cell-range-chart.ag-cell-range-chart-category{background-color:var(--ag-range-selection-chart-category-background-color)!important}.ag-cell-range-selected-1:not(.ag-cell-focus),.ag-root:not(.ag-context-menu-open) .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-1:not(.ag-cell-inline-editing){background-color:var(--ag-range-selection-background-color)}.ag-cell-range-selected-2:not(.ag-cell-focus),.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-2{background-color:var(--ag-range-selection-background-color-2)}.ag-cell-range-selected-3:not(.ag-cell-focus),.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-3{background-color:var(--ag-range-selection-background-color-3)}.ag-cell-range-selected-4:not(.ag-cell-focus),.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-4{background-color:var(--ag-range-selection-background-color-4)}.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-top{border-top-color:var(--ag-range-selection-border-color);border-top-style:var(--ag-range-selection-border-style)}.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-right{border-right-color:var(--ag-range-selection-border-color);border-right-style:var(--ag-range-selection-border-style)}.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-bottom{border-bottom-color:var(--ag-range-selection-border-color);border-bottom-style:var(--ag-range-selection-border-style)}.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-left{border-left-color:var(--ag-range-selection-border-color);border-left-style:var(--ag-range-selection-border-style)}.ag-ltr .ag-cell-focus:not(.ag-cell-range-selected):focus-within,.ag-ltr .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),.ag-ltr .ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group,.ag-ltr .ag-cell-range-single-cell,.ag-ltr .ag-cell-range-single-cell.ag-cell-range-handle,.ag-rtl .ag-cell-focus:not(.ag-cell-range-selected):focus-within,.ag-rtl .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),.ag-rtl .ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group,.ag-rtl .ag-cell-range-single-cell,.ag-rtl .ag-cell-range-single-cell.ag-cell-range-handle{border:1px solid;border-color:var(--ag-range-selection-border-color);border-style:var(--ag-range-selection-border-style);outline:initial}.ag-cell.ag-selection-fill-top,.ag-cell.ag-selection-fill-top.ag-cell-range-selected{border-top:1px dashed;border-top-color:var(--ag-range-selection-border-color)}.ag-ltr .ag-cell.ag-selection-fill-right,.ag-ltr .ag-cell.ag-selection-fill-right.ag-cell-range-selected{border-right:1px dashed var(--ag-range-selection-border-color)!important}.ag-rtl .ag-cell.ag-selection-fill-right,.ag-rtl .ag-cell.ag-selection-fill-right.ag-cell-range-selected{border-left:1px dashed var(--ag-range-selection-border-color)!important}.ag-cell.ag-selection-fill-bottom,.ag-cell.ag-selection-fill-bottom.ag-cell-range-selected{border-bottom:1px dashed;border-bottom-color:var(--ag-range-selection-border-color)}.ag-ltr .ag-cell.ag-selection-fill-left,.ag-ltr .ag-cell.ag-selection-fill-left.ag-cell-range-selected{border-left:1px dashed var(--ag-range-selection-border-color)!important}.ag-rtl .ag-cell.ag-selection-fill-left,.ag-rtl .ag-cell.ag-selection-fill-left.ag-cell-range-selected{border-right:1px dashed var(--ag-range-selection-border-color)!important}.ag-fill-handle,.ag-range-handle{position:absolute;width:6px;height:6px;bottom:-1px;background-color:var(--ag-range-selection-border-color)}.ag-ltr .ag-fill-handle,.ag-ltr .ag-range-handle{right:-1px}.ag-rtl .ag-fill-handle,.ag-rtl .ag-range-handle{left:-1px}.ag-fill-handle{cursor:cell}.ag-range-handle{cursor:nwse-resize}.ag-cell-inline-editing{border-color:var(--ag-input-focus-border-color)!important}.ag-menu{border:var(--ag-borders) var(--ag-border-color);background:var(--ag-background-color);border-radius:var(--ag-card-radius);box-shadow:var(--ag-card-shadow);padding:var(--ag-grid-size);background-color:var(--ag-menu-background-color);border-color:var(--ag-menu-border-color);padding:0}.ag-menu.ag-tabs{min-width:var(--ag-tab-min-width)}.ag-menu-list{cursor:default;padding:var(--ag-grid-size) 0}.ag-menu-separator{height:calc(var(--ag-grid-size) * 2 + 1px)}.ag-menu-separator-part:after{content:"";display:block;border-top:var(--ag-borders-critical) var(--ag-border-color)}.ag-menu-option-active,.ag-compact-menu-option-active{background-color:var(--ag-row-hover-color)}.ag-menu-option-part,.ag-compact-menu-option-part{line-height:var(--ag-icon-size);padding:calc(var(--ag-grid-size) + 2px) 0}.ag-menu-option-disabled,.ag-compact-menu-option-disabled{opacity:.5}.ag-menu-option-icon,.ag-compact-menu-option-icon{width:var(--ag-icon-size)}.ag-ltr .ag-menu-option-icon,.ag-ltr .ag-compact-menu-option-icon{padding-left:calc(var(--ag-grid-size) * 2)}.ag-rtl .ag-menu-option-icon,.ag-rtl .ag-compact-menu-option-icon{padding-right:calc(var(--ag-grid-size) * 2)}.ag-menu-option-text,.ag-compact-menu-option-text{padding-left:calc(var(--ag-grid-size) * 2);padding-right:calc(var(--ag-grid-size) * 2)}.ag-ltr .ag-menu-option-shortcut,.ag-ltr .ag-compact-menu-option-shortcut{padding-right:var(--ag-grid-size)}.ag-rtl .ag-menu-option-shortcut,.ag-rtl .ag-compact-menu-option-shortcut{padding-left:var(--ag-grid-size)}.ag-ltr .ag-menu-option-popup-pointer,.ag-ltr .ag-compact-menu-option-popup-pointer{padding-right:var(--ag-grid-size)}.ag-rtl .ag-menu-option-popup-pointer,.ag-rtl .ag-compact-menu-option-popup-pointer{padding-left:var(--ag-grid-size)}.ag-tabs-header,.ag-tabs-header-wrapper{display:flex}.ag-tabs-header-wrapper .ag-tabs-header{flex:1}.ag-tabs-close-button-wrapper{border:0;border-right:var(--ag-borders) var(--ag-border-color);padding:var(--ag-grid-size)}.ag-tabs-close-button{border:0;background-color:unset;cursor:pointer;padding:0}.ag-tab{border-bottom:var(--ag-selected-tab-underline-width) solid transparent;transition:border-bottom var(--ag-selected-tab-underline-transition-speed);display:flex;flex:none;align-items:center;justify-content:center;cursor:pointer}.ag-tab:focus-visible{outline:none}.ag-tab:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-tab-selected{border-bottom-color:var(--ag-selected-tab-underline-color)}.ag-menu-header{color:var(--ag-secondary-foreground-color)}.ag-filter-separator{border-top:var(--ag-borders-critical) var(--ag-border-color)}.ag-filter-select .ag-picker-field-wrapper{width:0}.ag-filter-condition-operator{height:17px}.ag-ltr .ag-filter-condition-operator-or{margin-left:calc(var(--ag-grid-size) * 2)}.ag-rtl .ag-filter-condition-operator-or{margin-right:calc(var(--ag-grid-size) * 2)}.ag-set-filter-select-all{padding-top:var(--ag-widget-container-vertical-padding)}.ag-set-filter-list,.ag-filter-no-matches{height:calc(var(--ag-list-item-height) * 6)}.ag-set-filter-tree-list{height:calc(var(--ag-list-item-height) * 10)}.ag-set-filter-filter{margin-top:var(--ag-widget-container-vertical-padding);margin-left:var(--ag-widget-container-horizontal-padding);margin-right:var(--ag-widget-container-horizontal-padding)}.ag-filter-to{margin-top:var(--ag-widget-vertical-spacing)}.ag-mini-filter{margin:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-set-filter{--ag-indentation-level: 0}.ag-ltr .ag-set-filter-item{padding-left:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level) * var(--ag-set-filter-indent-size))}.ag-rtl .ag-set-filter-item{padding-right:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level) * var(--ag-set-filter-indent-size))}.ag-ltr .ag-set-filter-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}.ag-rtl .ag-set-filter-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}.ag-ltr .ag-set-filter-group-icons{margin-right:var(--ag-widget-container-horizontal-padding)}.ag-rtl .ag-set-filter-group-icons{margin-left:var(--ag-widget-container-horizontal-padding)}
807.ag-filter-menu .ag-set-filter-list{min-width:200px}.ag-filter-virtual-list-item:focus-visible{outline:none}.ag-filter-virtual-list-item:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:1px;left:1px;display:block;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-filter-apply-panel{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);border-top:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-filter-apply-panel-button{line-height:1.5}.ag-ltr .ag-filter-apply-panel-button{margin-left:calc(var(--ag-grid-size) * 2)}.ag-rtl .ag-filter-apply-panel-button{margin-right:calc(var(--ag-grid-size) * 2)}.ag-simple-filter-body-wrapper{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);padding-bottom:calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));overflow-y:auto;min-height:calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing))}.ag-simple-filter-body-wrapper>*{margin-bottom:var(--ag-widget-vertical-spacing)}.ag-simple-filter-body-wrapper .ag-resizer-wrapper{margin:0}.ag-menu:not(.ag-tabs) .ag-filter .ag-filter-body-wrapper,.ag-menu:not(.ag-tabs) .ag-filter>*:not(.ag-filter-wrapper){min-width:calc(var(--ag-menu-min-width) - 2px)}.ag-filter-no-matches{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-multi-filter-menu-item{margin:var(--ag-grid-size) 0}.ag-multi-filter-group-title-bar{padding:calc(var(--ag-grid-size) * 2) var(--ag-grid-size);background-color:transparent}.ag-group-filter-field-select-wrapper{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);padding-bottom:calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing))}.ag-group-filter-field-select-wrapper>*{margin-bottom:var(--ag-widget-vertical-spacing)}.ag-multi-filter-group-title-bar:focus-visible{outline:none}.ag-multi-filter-group-title-bar:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-side-bar{position:relative}.ag-tool-panel-wrapper{width:var(--ag-side-bar-panel-width);background-color:var(--ag-control-panel-background-color)}.ag-side-buttons{padding-top:calc(var(--ag-grid-size) * 4);width:calc(var(--ag-icon-size) + 4px);position:relative;overflow:hidden}button.ag-side-button-button{color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;background:transparent;padding:calc(var(--ag-grid-size) * 2) 0 calc(var(--ag-grid-size) * 2) 0;width:100%;margin:0;min-height:calc(var(--ag-grid-size) * 18);background-position-y:center;background-position-x:center;background-repeat:no-repeat;border:none;border-top:var(--ag-borders-side-button) var(--ag-border-color);border-bottom:var(--ag-borders-side-button) var(--ag-border-color)}button.ag-side-button-button:focus{box-shadow:none}.ag-side-button-button:focus-visible{outline:none}.ag-side-button-button:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-selected button.ag-side-button-button{background-color:var(--ag-side-button-selected-background-color)}.ag-side-button-icon-wrapper{margin-bottom:3px}.ag-ltr .ag-side-bar-left,.ag-rtl .ag-side-bar-right{border-right:var(--ag-borders) var(--ag-border-color)}.ag-ltr .ag-side-bar-left .ag-tool-panel-wrapper,.ag-rtl .ag-side-bar-right .ag-tool-panel-wrapper{border-left:var(--ag-borders) var(--ag-border-color)}.ag-ltr .ag-side-bar-left .ag-side-button-button,.ag-rtl .ag-side-bar-right .ag-side-button-button{border-right:var(--ag-selected-tab-underline-width) solid transparent;transition:border-right var(--ag-selected-tab-underline-transition-speed)}.ag-ltr .ag-side-bar-left .ag-selected .ag-side-button-button,.ag-rtl .ag-side-bar-right .ag-selected .ag-side-button-button{border-right-color:var(--ag-selected-tab-underline-color)}.ag-rtl .ag-side-bar-left,.ag-ltr .ag-side-bar-right{border-left:var(--ag-borders) var(--ag-border-color)}.ag-rtl .ag-side-bar-left .ag-tool-panel-wrapper,.ag-ltr .ag-side-bar-right .ag-tool-panel-wrapper{border-right:var(--ag-borders) var(--ag-border-color)}.ag-rtl .ag-side-bar-left .ag-side-button-button,.ag-ltr .ag-side-bar-right .ag-side-button-button{border-left:var(--ag-selected-tab-underline-width) solid transparent;transition:border-left var(--ag-selected-tab-underline-transition-speed)}.ag-rtl .ag-side-bar-left .ag-selected .ag-side-button-button,.ag-ltr .ag-side-bar-right .ag-selected .ag-side-button-button{border-left-color:var(--ag-selected-tab-underline-color)}.ag-filter-toolpanel-header{height:calc(var(--ag-grid-size) * 6)}.ag-filter-toolpanel-header,.ag-filter-toolpanel-search{padding:0 var(--ag-grid-size)}.ag-filter-toolpanel-header:focus-visible{outline:none}.ag-filter-toolpanel-header:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-filter-toolpanel-group:not(.ag-has-filter)>.ag-group-title-bar .ag-filter-toolpanel-group-instance-header-icon{display:none}.ag-filter-toolpanel-group-level-0-header{height:calc(var(--ag-grid-size) * 8)}.ag-filter-toolpanel-group-item{margin-top:calc(var(--ag-grid-size) * .5);margin-bottom:calc(var(--ag-grid-size) * .5)}.ag-filter-toolpanel-search{height:var(--ag-header-height)}.ag-filter-toolpanel-search-input{flex-grow:1;height:calc(var(--ag-grid-size) * 4)}.ag-ltr .ag-filter-toolpanel-search-input{margin-right:var(--ag-grid-size)}.ag-rtl .ag-filter-toolpanel-search-input{margin-left:var(--ag-grid-size)}.ag-filter-toolpanel-group-level-0{border-top:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-ltr .ag-filter-toolpanel-expand,.ag-ltr .ag-filter-toolpanel-group-title-bar-icon{margin-right:var(--ag-grid-size)}.ag-rtl .ag-filter-toolpanel-expand,.ag-rtl .ag-filter-toolpanel-group-title-bar-icon{margin-left:var(--ag-grid-size)}.ag-filter-toolpanel-group-title-bar{background-color:transparent}.ag-ltr .ag-filter-toolpanel-header{padding-left:calc(var(--ag-filter-tool-panel-group-indent) * var(--ag-indentation-level, 0) + var(--ag-grid-size))}.ag-rtl .ag-filter-toolpanel-header{padding-right:calc(var(--ag-filter-tool-panel-group-indent) * var(--ag-indentation-level, 0) + var(--ag-grid-size))}.ag-filter-toolpanel-instance-filter{border-bottom:var(--ag-borders) var(--ag-border-color);border-top:var(--ag-borders) var(--ag-border-color);margin-top:var(--ag-grid-size)}.ag-ltr .ag-filter-toolpanel-group-instance-header-icon,.ag-ltr .ag-filter-toolpanel-instance-header-icon{margin-left:var(--ag-grid-size)}.ag-rtl .ag-filter-toolpanel-group-instance-header-icon,.ag-rtl .ag-filter-toolpanel-instance-header-icon{margin-right:var(--ag-grid-size)}.ag-set-filter-group-icons{color:var(--ag-secondary-foreground-color)}.ag-pivot-mode-panel{min-height:var(--ag-header-height);height:var(--ag-header-height);display:flex}.ag-pivot-mode-select{display:flex;align-items:center}.ag-ltr .ag-pivot-mode-select{margin-left:var(--ag-widget-container-horizontal-padding)}.ag-rtl .ag-pivot-mode-select{margin-right:var(--ag-widget-container-horizontal-padding)}.ag-column-select-header:focus-visible{outline:none}.ag-column-select-header:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-column-select-header{height:var(--ag-header-height);align-items:center;padding:0 var(--ag-widget-container-horizontal-padding);border-bottom:var(--ag-borders-secondary) var(--ag-secondary-border-color)}
807.ag-column-panel-column-select{border-bottom:var(--ag-borders-secondary) var(--ag-secondary-border-color);border-top:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-column-group-icons,.ag-column-select-header-icon{color:var(--ag-secondary-foreground-color)}.ag-column-select-list .ag-list-item-hovered:after{content:"";position:absolute;left:0;right:0;height:1px}.ag-column-select-list .ag-item-highlight-top:after{top:0}.ag-column-select-list .ag-item-highlight-bottom:after{bottom:0}.ag-header,.ag-advanced-filter-header{background-color:var(--ag-header-background-color);border-bottom:var(--ag-borders-critical) var(--ag-border-color)}.ag-header-row{color:var(--ag-header-foreground-color);height:var(--ag-header-height)}.ag-pinned-right-header{border-left:var(--ag-borders-critical) var(--ag-border-color)}.ag-pinned-left-header{border-right:var(--ag-borders-critical) var(--ag-border-color)}.ag-ltr .ag-header-cell:not(.ag-right-aligned-header) .ag-header-label-icon,.ag-ltr .ag-header-cell:not(.ag-right-aligned-header) .ag-header-menu-icon{margin-left:var(--ag-grid-size)}.ag-rtl .ag-header-cell:not(.ag-right-aligned-header) .ag-header-label-icon,.ag-rtl .ag-header-cell:not(.ag-right-aligned-header) .ag-header-menu-icon{margin-right:var(--ag-grid-size)}.ag-ltr .ag-header-cell.ag-right-aligned-header .ag-header-label-icon,.ag-ltr .ag-header-cell.ag-right-aligned-header .ag-header-menu-icon{margin-right:var(--ag-grid-size)}.ag-rtl .ag-header-cell.ag-right-aligned-header .ag-header-label-icon,.ag-rtl .ag-header-cell.ag-right-aligned-header .ag-header-menu-icon{margin-left:var(--ag-grid-size)}.ag-header-cell,.ag-header-group-cell{padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding)}.ag-header-cell.ag-header-cell-moving,.ag-header-group-cell.ag-header-cell-moving{background-color:var(--ag-header-cell-moving-background-color)}.ag-ltr .ag-header-group-cell-label.ag-sticky-label{left:var(--ag-cell-horizontal-padding)}.ag-rtl .ag-header-group-cell-label.ag-sticky-label{right:var(--ag-cell-horizontal-padding)}.ag-header-cell:focus-visible{outline:none}.ag-header-cell:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-header-group-cell:focus-visible{outline:none}.ag-header-group-cell:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-advanced-filter-header-cell:focus-visible{outline:none}.ag-advanced-filter-header-cell:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-header-icon{color:var(--ag-secondary-foreground-color)}.ag-header-expand-icon{cursor:pointer}.ag-ltr .ag-header-expand-icon{margin-left:4px}.ag-rtl .ag-header-expand-icon{margin-right:4px}.ag-header-row:not(:first-child) .ag-header-cell:not(.ag-header-span-height.ag-header-span-total,.ag-header-parent-hidden),.ag-header-row:not(:first-child) .ag-header-group-cell.ag-header-group-cell-with-group{border-top:var(--ag-borders-critical) var(--ag-border-color)}.ag-header-group-cell:not(.ag-column-resizing)+.ag-header-group-cell:not(.ag-column-hover):not(.ag-header-cell-moving):hover,.ag-header-group-cell:not(.ag-column-resizing)+.ag-header-group-cell:not(.ag-column-hover).ag-column-resizing,.ag-header-cell:not(.ag-column-resizing)+.ag-header-cell:not(.ag-column-hover):not(.ag-header-cell-moving):hover,.ag-header-cell:not(.ag-column-resizing)+.ag-header-cell:not(.ag-column-hover).ag-column-resizing,.ag-header-group-cell:first-of-type:not(.ag-header-cell-moving):hover,.ag-header-group-cell:first-of-type.ag-column-resizing,.ag-header-cell:not(.ag-column-hover):first-of-type:not(.ag-header-cell-moving):hover,.ag-header-cell:not(.ag-column-hover):first-of-type.ag-column-resizing{background-color:var(--ag-header-cell-hover-background-color)}.ag-header-cell:before,.ag-header-group-cell:not(.ag-header-span-height.ag-header-group-cell-no-group):before{content:"";position:absolute;z-index:1;display:var(--ag-header-column-separator-display);width:var(--ag-header-column-separator-width);height:var(--ag-header-column-separator-height);top:calc(50% - var(--ag-header-column-separator-height) * .5);background-color:var(--ag-header-column-separator-color)}.ag-ltr .ag-header-cell:before,.ag-ltr .ag-header-group-cell:not(.ag-header-span-height.ag-header-group-cell-no-group):before{right:0}.ag-rtl .ag-header-cell:before,.ag-rtl .ag-header-group-cell:not(.ag-header-span-height.ag-header-group-cell-no-group):before{left:0}.ag-header-highlight-before:after,.ag-header-highlight-after:after{content:"";position:absolute;height:100%;width:1px}.ag-header-highlight-before:after{left:0}.ag-header-highlight-after:after{right:0}.ag-pinned-left-header .ag-header-highlight-after:after{right:1px}.ag-header-cell-resize{display:flex;align-items:center}.ag-header-cell-resize:after{content:"";position:absolute;z-index:1;display:var(--ag-header-column-resize-handle-display);width:var(--ag-header-column-resize-handle-width);height:var(--ag-header-column-resize-handle-height);top:calc(50% - var(--ag-header-column-resize-handle-height) * .5);background-color:var(--ag-header-column-resize-handle-color)}.ag-header-cell.ag-header-span-height .ag-header-cell-resize:after{height:calc(100% - var(--ag-grid-size) * 4);top:calc(var(--ag-grid-size) * 2)}.ag-ltr .ag-header-viewport .ag-header-cell-resize:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}.ag-rtl .ag-header-viewport .ag-header-cell-resize:after{right:calc(50% - var(--ag-header-column-resize-handle-width))}.ag-pinned-left-header .ag-header-cell-resize:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}.ag-pinned-right-header .ag-header-cell-resize:after{left:50%}.ag-ltr .ag-header-select-all{margin-right:var(--ag-cell-horizontal-padding)}.ag-rtl .ag-header-select-all{margin-left:var(--ag-cell-horizontal-padding)}.ag-ltr .ag-floating-filter-button{margin-left:var(--ag-cell-widget-spacing)}.ag-rtl .ag-floating-filter-button{margin-right:var(--ag-cell-widget-spacing)}.ag-floating-filter-button-button{color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;appearance:none;background:transparent;border:none;height:var(--ag-icon-size);padding:0;width:var(--ag-icon-size)}.ag-filter-loading{background-color:var(--ag-control-panel-background-color);height:100%;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;width:100%;z-index:1}.ag-paging-panel{border-top:1px solid;border-top-color:var(--ag-border-color);color:var(--ag-secondary-foreground-color);height:var(--ag-header-height)}.ag-paging-panel>*{margin:0 var(--ag-cell-horizontal-padding)}.ag-paging-panel>.ag-paging-page-size .ag-wrapper{min-width:calc(var(--ag-grid-size) * 10)}
807.ag-paging-button{cursor:pointer}.ag-paging-button.ag-disabled{cursor:default;color:var(--ag-disabled-foreground-color)}.ag-paging-button:focus-visible{outline:none}.ag-paging-button:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:0;left:0;display:block;width:calc(100% + -0px);height:calc(100% + -0px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-paging-button,.ag-paging-description{margin:0 var(--ag-grid-size)}.ag-status-bar{border-top:var(--ag-borders) var(--ag-border-color);color:var(--ag-disabled-foreground-color);padding-right:calc(var(--ag-grid-size) * 4);padding-left:calc(var(--ag-grid-size) * 4);line-height:1.5}.ag-status-name-value-value{color:var(--ag-foreground-color)}.ag-status-bar-center{text-align:center}.ag-status-name-value{margin-left:var(--ag-grid-size);margin-right:var(--ag-grid-size);padding-top:calc(var(--ag-grid-size) * 2);padding-bottom:calc(var(--ag-grid-size) * 2)}.ag-column-drop-cell{background:var(--ag-chip-background-color);border-radius:calc(var(--ag-grid-size) * 4);height:calc(var(--ag-grid-size) * 4);padding:0 calc(var(--ag-grid-size) * .5);border:1px solid var(--ag-chip-border-color)}.ag-column-drop-cell:focus-visible{outline:none}.ag-column-drop-cell:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:2px;left:2px;display:block;width:calc(100% - 4px);height:calc(100% - 4px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-column-drop-cell-text{margin:0 var(--ag-grid-size)}.ag-column-drop-cell-button{min-width:calc(var(--ag-grid-size) * 4);margin:0 calc(var(--ag-grid-size) * .5);color:var(--ag-secondary-foreground-color)}.ag-column-drop-cell-drag-handle{margin-left:calc(var(--ag-grid-size) * 2)}.ag-column-drop-cell-ghost{opacity:.5}.ag-column-drop-horizontal{background-color:var(--ag-header-background-color);color:var(--ag-secondary-foreground-color);height:var(--ag-header-height);border-bottom:var(--ag-borders) var(--ag-border-color)}.ag-ltr .ag-column-drop-horizontal{padding-left:var(--ag-cell-horizontal-padding)}.ag-rtl .ag-column-drop-horizontal{padding-right:var(--ag-cell-horizontal-padding)}.ag-ltr .ag-column-drop-horizontal-half-width:not(:last-child){border-right:var(--ag-borders) var(--ag-border-color)}.ag-rtl .ag-column-drop-horizontal-half-width:not(:last-child){border-left:var(--ag-borders) var(--ag-border-color)}.ag-column-drop-horizontal-cell-separator{margin:0 var(--ag-grid-size);color:var(--ag-secondary-foreground-color)}.ag-column-drop-horizontal-empty-message{color:var(--ag-disabled-foreground-color)}.ag-ltr .ag-column-drop-horizontal-icon{margin-right:var(--ag-cell-horizontal-padding)}.ag-rtl .ag-column-drop-horizontal-icon{margin-left:var(--ag-cell-horizontal-padding)}.ag-column-drop-vertical-list{padding-bottom:var(--ag-grid-size);padding-right:var(--ag-grid-size);padding-left:var(--ag-grid-size)}.ag-column-drop-vertical-cell{margin-top:var(--ag-grid-size)}.ag-column-drop-vertical{min-height:50px;border-bottom:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-column-drop-vertical.ag-last-column-drop{border-bottom:none}.ag-column-drop-vertical-icon{margin-left:var(--ag-grid-size);margin-right:var(--ag-grid-size)}.ag-column-drop-vertical-empty-message{position:absolute;inset:0;overflow:hidden;color:var(--ag-disabled-foreground-color);margin-top:var(--ag-grid-size)}.ag-select-agg-func-popup{border:var(--ag-borders) var(--ag-border-color);border-radius:var(--ag-card-radius);box-shadow:var(--ag-card-shadow);padding:var(--ag-grid-size);background:var(--ag-background-color);height:calc(var(--ag-grid-size) * 5 * 3.5);padding:0}.ag-select-agg-func-virtual-list-item{cursor:default}.ag-ltr .ag-select-agg-func-virtual-list-item{padding-left:calc(var(--ag-grid-size) * 2)}.ag-rtl .ag-select-agg-func-virtual-list-item{padding-right:calc(var(--ag-grid-size) * 2)}.ag-select-agg-func-virtual-list-item:hover{background-color:var(--ag-selected-row-background-color)}.ag-select-agg-func-virtual-list-item:focus-visible{outline:none}.ag-select-agg-func-virtual-list-item:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:1px;left:1px;display:block;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-sort-indicator-container{display:flex}.ag-ltr .ag-sort-indicator-icon{padding-left:var(--ag-grid-size)}.ag-rtl .ag-sort-indicator-icon{padding-right:var(--ag-grid-size)}.ag-chart{position:relative;display:flex;width:100%;height:100%}.ag-chart-components-wrapper{position:relative;display:flex;flex:1 1 auto}.ag-chart-canvas-wrapper{position:relative;flex:1 1 auto}.ag-chart-menu{position:absolute;top:16px;display:flex;flex-direction:column}.ag-ltr .ag-chart-menu{right:20px}
807.ag-rtl .ag-chart-menu{left:20px}.ag-chart-docked-container{position:relative;min-width:var(--ag-chart-menu-panel-width)}.ag-chart-menu-hidden~.ag-chart-docked-container{display:none}.ag-chart-tabbed-menu{width:100%;height:100%;display:flex;flex-direction:column;overflow:hidden}.ag-chart-tabbed-menu-header{flex:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.ag-chart-tabbed-menu-body{display:flex;flex:1 1 auto;align-items:stretch;overflow:hidden}.ag-chart-tab{width:100%;overflow:hidden;overflow-y:auto}.ag-chart-settings{overflow-x:hidden}.ag-chart-settings-wrapper{position:relative;flex-direction:column;width:100%;height:100%;display:flex;overflow:hidden}.ag-chart-settings-nav-bar{display:flex;align-items:center;width:100%;height:30px;padding:0 10px;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ag-chart-settings-card-selector{display:flex;align-items:center;justify-content:space-around;flex:1 1 auto;height:100%;padding:0 10px}.ag-chart-settings-card-item{cursor:pointer;width:10px;height:10px;background-color:#000;position:relative}.ag-chart-settings-card-item.ag-not-selected{opacity:.2}.ag-chart-settings-card-item:before{content:" ";display:block;position:absolute;background-color:transparent;left:50%;top:50%;margin-left:-10px;margin-top:-10px;width:20px;height:20px}.ag-chart-settings-prev,.ag-chart-settings-next{position:relative;flex:none}.ag-chart-settings-prev:focus-within,.ag-chart-settings-next:focus-within{box-shadow:var(--ag-input-focus-box-shadow);border-radius:1px}.ag-chart-settings-prev-button,.ag-chart-settings-next-button{position:absolute;top:0;left:0;width:100%;height:100%;cursor:pointer;opacity:0}.ag-chart-settings-mini-charts-container{position:relative;flex:1 1 auto;overflow-x:hidden;overflow-y:auto}.ag-chart-settings-mini-wrapper{position:absolute;top:0;left:0;display:flex;flex-direction:column;width:100%;min-height:100%;overflow:hidden}.ag-chart-settings-mini-wrapper.ag-animating{transition:left .3s;transition-timing-function:ease-in-out}.ag-chart-mini-thumbnail{cursor:pointer}.ag-chart-mini-thumbnail-canvas{display:block}.ag-chart-data-wrapper,.ag-chart-format-wrapper,.ag-chart-advanced-settings-wrapper{display:flex;flex-direction:column;position:relative;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;padding-bottom:16px}.ag-chart-data-wrapper,.ag-chart-advanced-settings-wrapper{height:100%;overflow-y:auto}.ag-chart-advanced-settings{background-color:var(--ag-control-panel-background-color)}.ag-chart-advanced-settings-wrapper,.ag-chart-advanced-settings{width:100%}.ag-chart-advanced-settings-wrapper{padding-bottom:0}.ag-chart-data-section,.ag-chart-format-section,.ag-chart-advanced-settings-section{display:flex;margin:0}.ag-chart-advanced-settings-section{padding-top:var(--ag-grid-size);padding-bottom:var(--ag-grid-size)}.ag-chart-advanced-settings-section:not(:last-child){border-bottom:1px solid var(--ag-secondary-border-color)}.ag-chart-empty-text{display:flex;top:0;width:100%;height:100%;align-items:center;justify-content:center;background-color:var(--ag-background-color)}.ag-chart .ag-chart-menu{display:none}.ag-chart-menu-hidden:hover .ag-chart-menu{display:block}.ag-chart .ag-chart-menu-wrapper .ag-chart-menu{display:flex;flex-direction:row;top:8px;gap:20px;width:auto}.ag-ltr .ag-chart .ag-chart-menu-wrapper .ag-chart-menu{right:calc(var(--ag-cell-horizontal-padding) + var(--ag-grid-size) - 4px);justify-content:right}.ag-rtl .ag-chart .ag-chart-menu-wrapper .ag-chart-menu{left:calc(var(--ag-cell-horizontal-padding) + var(--ag-grid-size) - 4px);justify-content:left}.ag-charts-font-size-color{display:flex;align-self:stretch;justify-content:space-between}.ag-charts-data-group-item{position:relative}.ag-charts-data-group-item:not(:last-child){margin-bottom:var(--ag-grid-size)}.ag-chart-menu{border-radius:var(--ag-card-radius);background:var(--ag-background-color)}.ag-chart-menu-icon{opacity:.5;margin:2px 0;cursor:pointer;border-radius:var(--ag-card-radius);color:var(--ag-secondary-foreground-color)}.ag-chart-menu-icon:hover{opacity:1}.ag-chart-menu-toolbar-button{border:0;background-color:unset;padding:0 2px;border-radius:1px}.ag-chart-mini-thumbnail{border:1px solid var(--ag-secondary-border-color);border-radius:5px}.ag-chart-mini-thumbnail.ag-selected{border-color:var(--ag-minichart-selected-chart-color);border-width:2px}.ag-chart-mini-thumbnail:focus-visible{outline:none;border-color:var(--ag-minichart-selected-chart-color);
807box-shadow:var(--ag-input-focus-box-shadow)}.ag-chart-settings-card-item{background:var(--ag-foreground-color);width:8px;height:8px;border-radius:4px}.ag-chart-settings-card-item.ag-selected{background-color:var(--ag-minichart-selected-page-color)}.ag-chart-data-column-drag-handle{margin-left:var(--ag-grid-size)}.ag-charts-settings-group-title-bar,.ag-charts-data-group-title-bar,.ag-charts-format-top-level-group-title-bar{border-top:var(--ag-borders-secondary) var(--ag-secondary-border-color);position:relative}.ag-charts-advanced-settings-top-level-group-title-bar{position:relative;background-color:unset}.ag-charts-data-group-title-bar:focus-visible{outline:none}.ag-charts-data-group-title-bar:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-charts-format-top-level-group-title-bar:focus-visible{outline:none}.ag-charts-format-top-level-group-title-bar:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-charts-data-group-title-bar .ag-charts-data-group-title,.ag-charts-format-top-level-group-title-bar .ag-charts-format-top-level-group-title{cursor:pointer}.ag-charts-data-group-container{padding:calc(var(--ag-widget-container-vertical-padding) * .5) var(--ag-widget-container-horizontal-padding)}.ag-charts-data-group-container .ag-charts-data-group-item:not(.ag-charts-format-sub-level-group):not(.ag-pill-select):not(.ag-select){height:var(--ag-list-item-height)}.ag-charts-data-group-container .ag-charts-data-group-item.ag-picker-field{margin-top:var(--ag-grid-size)}.ag-charts-data-group-container .ag-list-item-hovered:after{content:"";position:absolute;left:0;right:0;height:1px}.ag-charts-data-group-container .ag-item-highlight-top:after{top:0}.ag-charts-data-group-container .ag-item-highlight-bottom:after{bottom:0}.ag-charts-format-top-level-group-container,.ag-charts-advanced-settings-top-level-group-container{padding:var(--ag-grid-size)}.ag-ltr .ag-charts-format-top-level-group-container,.ag-ltr .ag-charts-advanced-settings-top-level-group-container{margin-left:calc(var(--ag-grid-size) * 2)}.ag-rtl .ag-charts-format-top-level-group-container,.ag-rtl .ag-charts-advanced-settings-top-level-group-container{margin-right:calc(var(--ag-grid-size) * 2)}.ag-charts-format-top-level-group-item,.ag-charts-advanced-settings-top-level-group-item{margin:var(--ag-grid-size) 0}.ag-charts-format-sub-level-group-container{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);padding-bottom:calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing))}.ag-charts-format-sub-level-group-container>*{margin-bottom:var(--ag-widget-vertical-spacing)}.ag-charts-format-sub-level-no-header-group-container>*{margin-bottom:var(--ag-widget-vertical-spacing)}.ag-charts-format-sub-level-group-container .ag-charts-format-sub-level-group-item.ag-font-panel-no-header{margin:0}.ag-charts-settings-group-container{padding:var(--ag-grid-size);row-gap:8px;display:grid;grid-template-columns:60px 1fr 60px 1fr 60px}.ag-charts-settings-group-container .ag-chart-mini-thumbnail:nth-child(3n+1){grid-column:1}.ag-charts-settings-group-container .ag-chart-mini-thumbnail:nth-child(3n+2){grid-column:3}.ag-charts-settings-group-container .ag-chart-mini-thumbnail:nth-child(3n+3){grid-column:5}.ag-chart-menu-panel{background-color:var(--ag-control-panel-background-color)}.ag-ltr .ag-chart-menu-panel{border-left:solid 1px var(--ag-border-color)}.ag-rtl .ag-chart-menu-panel{border-right:solid 1px var(--ag-border-color)}.ag-charts-theme-default{--ag-charts-align: none !important;--ag-charts-justify: none !important}.ag-charts-wrapper .ag-charts-proxy-legend-toolbar button:focus{box-shadow:none}.ag-charts-wrapper .ag-charts-proxy-legend-toolbar button:focus-visible{box-shadow:var(--ag-input-focus-box-sha
807dow)}.ag-date-time-list-page-title-bar{display:flex}.ag-date-time-list-page-title{flex-grow:1;text-align:center}.ag-date-time-list-page-column-labels-row,.ag-date-time-list-page-entries-row{display:flex}.ag-date-time-list-page-column-label,.ag-date-time-list-page-entry{flex-basis:0;flex-grow:1}.ag-date-time-list-page-entry{cursor:pointer;text-align:center}.ag-date-time-list-page-column-label{text-align:center}.ag-advanced-filter-header{position:relative;display:flex;align-items:center;padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding)}.ag-advanced-filter{display:flex;align-items:center;width:100%}.ag-advanced-filter-apply-button,.ag-advanced-filter-builder-button{line-height:normal;white-space:nowrap}.ag-ltr .ag-advanced-filter-apply-button,.ag-ltr .ag-advanced-filter-builder-button{margin-left:calc(var(--ag-grid-size) * 2)}.ag-rtl .ag-advanced-filter-apply-button,.ag-rtl .ag-advanced-filter-builder-button{margin-right:calc(var(--ag-grid-size) * 2)}.ag-advanced-filter-builder-button{display:flex;align-items:center;border:0;background-color:unset;color:var(--ag-foreground-color);font-size:var(--ag-font-size);font-weight:600}.ag-advanced-filter-builder-button:hover:not(:disabled){background-color:var(--ag-row-hover-color)}.ag-advanced-filter-builder-button:not(:disabled){cursor:pointer}.ag-advanced-filter-builder-button-label{margin-left:var(--ag-grid-size)}.ag-advanced-filter-builder{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:100%;background-color:var(--ag-control-panel-background-color);display:flex;flex-direction:column}.ag-advanced-filter-builder-list{flex:1;overflow:auto}.ag-advanced-filter-builder-list .ag-list-item-hovered:after{content:"";position:absolute;left:0;right:0;height:1px}.ag-advanced-filter-builder-list .ag-item-highlight-top:after{top:0}.ag-advanced-filter-builder-list .ag-item-highlight-bottom:after{bottom:0}.ag-advanced-filter-builder-button-panel{display:flex;justify-content:flex-end;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);border-top:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-advanced-filter-builder .ag-advanced-filter-builder-button-panel .ag-advanced-filter-builder-apply-button,.ag-advanced-filter-builder .ag-advanced-filter-builder-button-panel .ag-advanced-filter-builder-cancel-button{margin-left:calc(var(--ag-grid-size) * 2)}.ag-advanced-filter-builder-item-wrapper{display:flex;flex:1 1 auto;align-items:center;justify-content:space-between;overflow:hidden;padding-left:calc(var(--ag-icon-size) / 2);padding-right:var(--ag-icon-size)}.ag-virtual-list-viewport .ag-advanced-filter-builder-item-wrapper .ag-tab-guard{position:absolute}.ag-advanced-filter-builder-item-tree-lines>*{width:var(--ag-advanced-filter-builder-indent-size)}.ag-advanced-filter-builder-item-tree-lines .ag-advanced-filter-builder-item-tree-line-root{width:var(--ag-icon-size)}.ag-advanced-filter-builder-item-tree-lines .ag-advanced-filter-builder-item-tree-line-root:before{top:50%;height:50%}.ag-advanced-filter-builder-item-tree-line-horizontal,.ag-advanced-filter-builder-item-tree-line-vertical,.ag-advanced-filter-builder-item-tree-line-vertical-top,.ag-advanced-filter-builder-item-tree-line-vertical-bottom{position:relative;height:100%;display:flex;align-items:center}.ag-advanced-filter-builder-item-tree-line-horizontal:before,.ag-advanced-filter-builder-item-tree-line-horizontal:after,.ag-advanced-filter-builder-item-tree-line-vertical:before,.ag-advanced-filter-builder-item-tree-line-vertical:after,.ag-advanced-filter-builder-item-tree-line-vertical-top:before,.ag-advanced-filter-builder-item-tree-line-vertical-top:after,.ag-advanced-filter-builder-item-tree-line-vertical-bottom:before,.ag-advanced-filter-builder-item-tree-line-vertical-bottom:after{content:"";position:absolute;height:100%}.ag-advanced-filter-builder-item-tree-line-horizontal:after{height:50%;width:calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size));top:0;left:calc(var(--ag-icon-size) / 2);border-bottom:1px solid;border-color:var(--ag-border-color)}
807.ag-advanced-filter-builder-item-tree-line-vertical:before{width:calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size) / 2);top:0;left:calc(var(--ag-icon-size) / 2);border-left:1px solid;border-color:var(--ag-border-color)}.ag-advanced-filter-builder-item-tree-line-vertical-top:before{height:50%;width:calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size) / 2);top:0;left:calc(var(--ag-icon-size) / 2);border-left:1px solid;border-color:var(--ag-border-color)}.ag-advanced-filter-builder-item-tree-line-vertical-bottom:before{height:calc((100% - 1.5 * var(--ag-icon-size)) / 2);width:calc(var(--ag-icon-size) / 2);top:calc((100% + 1.5 * var(--ag-icon-size)) / 2);left:calc(var(--ag-icon-size) / 2);border-left:1px solid;border-color:var(--ag-border-color)}.ag-advanced-filter-builder-item-condition{padding-top:var(--ag-grid-size);padding-bottom:var(--ag-grid-size)}.ag-advanced-filter-builder-item,.ag-advanced-filter-builder-item-condition,.ag-advanced-filter-builder-pill-wrapper,.ag-advanced-filter-builder-pill,.ag-advanced-filter-builder-item-buttons,.ag-advanced-filter-builder-item-tree-lines{display:flex;align-items:center;height:100%}.ag-advanced-filter-builder-pill-wrapper{margin:0px var(--ag-grid-size)}.ag-advanced-filter-builder-pill{position:relative;border-radius:var(--ag-border-radius);padding:var(--ag-grid-size) calc(var(--ag-grid-size) * 2);min-height:calc(100% - var(--ag-grid-size) * 3);min-width:calc(var(--ag-grid-size) * 2)}.ag-advanced-filter-builder-pill .ag-picker-field-display{margin-right:var(--ag-grid-size)}.ag-advanced-filter-builder-pill .ag-advanced-filter-builder-value-number{font-family:monospace;font-weight:700}.ag-advanced-filter-builder-pill .ag-advanced-filter-builder-value-empty{color:var(--ag-disabled-foreground-color)}.ag-advanced-filter-builder-pill:focus-visible{outline:none}.ag-advanced-filter-builder-pill:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:-4px;left:-4px;display:block;width:calc(100% + 8px);height:calc(100% + 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-advanced-filter-builder-item-button:focus-visible{outline:none}.ag-advanced-filter-builder-item-button:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:-4px;left:-4px;display:block;width:calc(100% + 8px);height:calc(100% + 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-advanced-filter-builder-pill-display{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.ag-advanced-filter-builder-join-pill{color:var(--ag-foreground-color);background-color:var(--ag-advanced-filter-join-pill-color);cursor:pointer}.ag-advanced-filter-builder-column-pill{color:var(--ag-foreground-color);background-color:var(--ag-advanced-filter-column-pill-color);cursor:pointer}.ag-advanced-filter-builder-option-pill{color:var(--ag-foreground-color);background-color:var(--ag-advanced-filter-option-pill-color);cursor:pointer}.ag-advanced-filter-builder-value-pill{color:var(--ag-foreground-color);background-color:var(--ag-advanced-filter-value-pill-color);cursor:text;max-width:140px}.ag-advanced-filter-builder-value-pill .ag-advanced-filter-builder-pill-display{display:block}.ag-advanced-filter-builder-item-buttons>*{margin:0 calc(var(--ag-grid-size) * .5)}.ag-advanced-filter-builder-item-button{position:relative;cursor:pointer;color:var(--ag-secondary-foreground-color);opacity:50%}.ag-advanced-filter-builder-item-button-disabled{color:var(--ag-disabled-foreground-color);cursor:default}.ag-advanced-filter-builder-virtual-list-container{top:var(--ag-grid-size)}.ag-advanced-filter-builder-virtual-list-item{display:flex;cursor:default;height:var(--ag-list-item-height)}.ag-advanced-filter-builder-virtual-list-item:hover{background-color:var(--ag-row-hover-color)}.ag-advanced-filter-builder-virtual-list-item:hover .ag-advanced-filter-builder-item-button{opacity:100%}.ag-advanced-filter-builder-virtual-list-item-highlight .ag-advanced-filter-builder-item-button:focus-visible,.ag-advanced-filter-builder
807-validation .ag-advanced-filter-builder-invalid{opacity:100%}.ag-advanced-filter-builder-invalid{margin:0 var(--ag-grid-size);color:var(--ag-invalid-color);cursor:default}.ag-input-field-input{width:100%;min-width:0}.ag-checkbox-input-wrapper{font-family:var(--ag-icon-font-family);font-weight:var(--ag-icon-font-weight);color:var(--ag-icon-font-color);font-size:var(--ag-icon-size);line-height:var(--ag-icon-size);font-style:normal;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:var(--ag-icon-size);height:var(--ag-icon-size);background-color:var(--ag-checkbox-background-color);border-radius:var(--ag-checkbox-border-radius);display:inline-block;vertical-align:middle;flex:none}.ag-checkbox-input-wrapper input{-webkit-appearance:none;opacity:0;width:100%;height:100%}.ag-checkbox-input-wrapper:focus-within,.ag-checkbox-input-wrapper:active{outline:none;box-shadow:var(--ag-input-focus-box-shadow)}.ag-checkbox-input-wrapper.ag-disabled{opacity:.5}.ag-checkbox-input-wrapper:after{content:var(--ag-icon-font-code-checkbox-unchecked, "\\f108");font-family:inherit;color:var(--ag-checkbox-unchecked-color);display:var(--ag-icon-font-display-checkbox-unchecked, var(--ag-icon-font-display));position:absolute;top:0;left:0;pointer-events:none}.ag-checkbox-input-wrapper.ag-checked:after{content:var(--ag-icon-font-code-checkbox-checked, "\\f106");color:var(--ag-checkbox-checked-color);display:var(--ag-icon-font-display-checkbox-checked, var(--ag-icon-font-display));position:absolute;top:0;left:0;pointer-events:none}.ag-checkbox-input-wrapper.ag-indeterminate:after{content:var(--ag-icon-font-code-checkbox-indeterminate, "\\f107");color:var(--ag-checkbox-indeterminate-color);display:var(--ag-icon-font-display-checkbox-indeterminate, var(--ag-icon-font-display));position:absolute;top:0;left:0;pointer-events:none}.ag-checkbox-input-wrapper:before{content:"";background:transparent center/contain no-repeat;position:absolute;inset:0;background-image:var(--ag-icon-image-checkbox-unchecked, var(--ag-icon-image));display:var(--ag-icon-image-display-checkbox-unchecked, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-checkbox-unchecked, var(--ag-icon-image-opacity, .9))}.ag-checkbox-input-wrapper.ag-checked:before{background-image:var(--ag-icon-image-checkbox-checked, var(--ag-icon-image));display:var(--ag-icon-image-display-checkbox-checked, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-checkbox-checked, var(--ag-icon-image-opacity, .9))}.ag-checkbox-input-wrapper.ag-indeterminate:before{background-image:var(--ag-icon-image-checkbox-indeterminate, var(--ag-icon-image));display:var(--ag-icon-image-display-checkbox-indeterminate, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-checkbox-indeterminate, var(--ag-icon-image-opacity, .9))}.ag-toggle-button-input-wrapper{box-sizing:border-box;width:var(--ag-toggle-button-width);min-width:var(--ag-toggle-button-width);max-width:var(--ag-toggle-button-width);height:var(--ag-toggle-button-height);background-color:var(--ag-toggle-button-off-background-color);border-radius:calc(var(--ag-toggle-button-height) * .5);position:relative;flex:none;border:var(--ag-toggle-button-border-width) solid;border-color:var(--ag-toggle-button-off-border-color)}.ag-toggle-button-input-wrapper input{opacity:0;height:100%;width:100%}.ag-toggle-button-input-wrapper:focus-within{outline:none;box-shadow:var(--ag-input-focus-box-shadow)}.ag-toggle-button-input-wrapper.ag-disabled{opacity:.5}.ag-toggle-button-input-wrapper.ag-checked{background-color:var(--ag-toggle-button-on-background-color);border-color:var(--ag-toggle-button-on-border-color)}.ag-toggle-button-input-wrapper:before{content:" ";position:absolute;top:calc(0px - var(--ag-toggle-button-border-width));left:calc(0px - var(--ag-toggle-button-border-width));display:block;box-sizing:border-box;height:var(--ag-toggle-button-height);width:var(--ag-toggle-button-height);background-color:var(--ag-toggle-button-switch-background-color);border-radius:100%;transition:left .1s;border:var(--ag-toggle-button-border-width) solid;border-color:var(--ag-toggle-button-switch-border-color)}.ag-toggle-button-input-wrapper.ag-checked:before{left:calc(100% - var(--ag-toggle-button-height) + var(--ag-toggle-button-border-width));border-color:var(--ag-toggle-button-on-border-color)}.ag-radio-button-input-wrapper{font-family:var(--ag-icon-font-family);font-weight:var(--ag-icon-font-weight);color:var(--ag-icon-font-color);font-size:var(--ag-icon-size);line-height:var(--ag-icon-size);font-style:normal;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:var(--ag-icon-size);height:var(--ag-icon-size);background-color:var(--ag-checkbox-background-color);border-radius:var(--ag-checkbox-border-radius);
807display:inline-block;vertical-align:middle;flex:none;border-radius:var(--ag-icon-size)}.ag-radio-button-input-wrapper input{-webkit-appearance:none;opacity:0;width:100%;height:100%}.ag-radio-button-input-wrapper:focus-within,.ag-radio-button-input-wrapper:active{outline:none;box-shadow:var(--ag-input-focus-box-shadow)}.ag-radio-button-input-wrapper.ag-disabled{opacity:.5}.ag-radio-button-input-wrapper:after{content:var(--ag-icon-font-code-radio-button-off, "\\f127");color:var(--ag-checkbox-unchecked-color);display:var(--ag-icon-font-display-radio-button-off, var(--ag-icon-font-display));position:absolute;top:0;left:0;pointer-events:none}.ag-radio-button-input-wrapper.ag-checked:after{content:var(--ag-icon-font-code-radio-button-on, "\\f128");color:var(--ag-checkbox-checked-color);display:var(--ag-icon-font-display-radio-button-on, var(--ag-icon-font-display));position:absolute;top:0;left:0;pointer-events:none}.ag-radio-button-input-wrapper:before{content:"";background:transparent center/contain no-repeat;position:absolute;inset:0;background-image:var(--ag-icon-image-radio-button-off, var(--ag-icon-image));display:var(--ag-icon-image-display-radio-button-off, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-radio-button-off, var(--ag-icon-image-opacity, .9))}.ag-radio-button-input-wrapper.ag-checked:before{background-image:var(--ag-icon-image-radio-button-on, var(--ag-icon-image));display:var(--ag-icon-image-display-radio-button-on, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-radio-button-on, var(--ag-icon-image-opacity, .9))}input[class^=ag-][type=range]{-webkit-appearance:none;width:100%;height:100%;background:none;overflow:visible}input[class^=ag-][type=range]::-webkit-slider-runnable-track{margin:0;padding:0;width:100%;height:3px;background-color:var(--ag-border-color);border-radius:var(--ag-border-radius);border-radius:var(--ag-checkbox-border-radius)}input[class^=ag-][type=range]::-moz-range-track{margin:0;padding:0;width:100%;height:3px;background-color:var(--ag-border-color);border-radius:var(--ag-border-radius);border-radius:var(--ag-checkbox-border-radius)}input[class^=ag-][type=range]::-ms-track{margin:0;padding:0;width:100%;height:3px;background-color:var(--ag-border-color);border-radius:var(--ag-border-radius);border-radius:var(--ag-checkbox-border-radius);color:transparent;width:calc(100% - 2px)}input[class^=ag-][type=range]::-webkit-slider-thumb{margin:0;padding:0;-webkit-appearance:none;width:var(--ag-icon-size);height:var(--ag-icon-size);background-color:var(--ag-background-color);border:1px solid;border-color:var(--ag-checkbox-unchecked-color);border-radius:var(--ag-icon-size);transform:translateY(calc(var(--ag-icon-size) * -.5 + 1.5px))}input[class^=ag-][type=range]::-ms-thumb{margin:0;padding:0;-webkit-appearance:none;width:var(--ag-icon-size);height:var(--ag-icon-size);background-color:var(--ag-background-color);border:1px solid;border-color:var(--ag-checkbox-unchecked-color);border-radius:var(--ag-icon-size)}input[class^=ag-][type=range]::-moz-ag-range-thumb{margin:0;padding:0;-webkit-appearance:none;width:var(--ag-icon-size);height:var(--ag-icon-size);background-color:var(--ag-background-color);border:1px solid;border-color:var(--ag-checkbox-unchecked-color);border-radius:var(--ag-icon-size)}input[class^=ag-][type=range]:focus{outline:none}input[class^=ag-][type=range]:focus::-webkit-slider-thumb{box-shadow:var(--ag-input-focus-box-shadow);border-color:var(--ag-checkbox-checked-color)}input[class^=ag-][type=range]:focus::-ms-thumb{box-shadow:var(--ag-input-focus-box-shadow);border-color:var(--ag-checkbox-checked-color)}input[class^=ag-][type=range]:focus::-moz-ag-range-thumb{box-shadow:var(--ag-input-focus-box-shadow);border-color:var(--ag-checkbox-checked-color)}input[class^=ag-][type=range]:active::-webkit-slider-runnable-track{background-color:var(--ag-input-focus-border-color)}input[class^=ag-][type=range]:active::-moz-ag-range-track{background-color:var(--ag-input-focus-border-color)}input[class^=ag-][type=range]:active::-ms-track{background-color:var(--ag-input-focus-border-color)}input[class^=ag-][type=range]:disabled{opacity:.5}@font-face{font-family:agGridAlpine;src:url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABMUAAsAAAAAKMwAABLCAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIlWBmAAi34KqmyjKwE2AiQDgkALgSIABCAFhEYHhUEbnyMzg/aatGqziOpJNvu/JGhLhnjjdVVKiQVRRpQIMYb+arBrcnXzpDWxiZ/03+6d7uYA0kgNGvfxjeHHsZxySFI0efhYa+/v7iGeriQ0iXmiiXjIROjWyEwnREJiiNL8r7ned9lNjoj/UviIZqqAwagvZXWN7vQH2uY/PCuxGixE3Zco9c7GTcI4jGiM5Ixl6zZYJOu4deqq/4JF6qJ74B9A4MjcdjWnBf6vzeoX1p0qiEwH0j3ielqTJCVtAmTUucAVrqMqJHm7J9HDZROQwmB/an6zL7XMHhb7kozZWv+
807/7xgEJkGCJ4SvEGy5v2EaHaSESvAJKgL+b+1f7X9BlMATAqHj4/Ts7Pz/9965+zA0mU+02dBmQ5sfphJYIEX8Xjanfa8cAFStrQKWdRW+vpqEqbN1cToVOJ6CtsfmMoLfUD/X9o81JEiwSx5ix9/Y/D1YFRZgNHb89HY+AigxopP6BiQ4BLYXmusgA7t/bICvlWN7o7wQXGc5eKRfcJ1eti2g4qav/kYgjmNd0tLkOJ2Z/s9UagziUjLg4EUfjozhKEJQaXQSBRvG1xhMyJishB+RIifj9w6SMEZ1KBbXsdcUQmxLtN9Y2RPEjbehOT882Zbg6JXTtclU1IKAeRSMqKLcjrgNk40wT889wmXtgNBtcVthsjULZ4tB2WK6N7J190VFqlzEbaj5YYFjdj8VOa0t8WaELTaNWbZ2zJ36dM0BpxvCVJZlmP07Ku01wgZhT+xoxJdg3JpQhms8MU4R0KC64anv+rx2E9QmUFl/ortRSm2LPVbXu/6mNu5MGHAN4b2DK64KlaiuEGXqwIjTcKY+GVvvXXv07MWrT/8ARxGnhMUgqnrxK5p1WI/vEslM7FNW4qVzW4pQxmZGfTcfLa5FzMYh1DDHeHmEBYawVuhveThz4/Z2dCZM6QPZepCtu0Awgr9fxzGZfEA7NUeBnvZPglAHxmEeGS0TuaKyQz0dlSU+5CaqdHjGJPZMGbqSalOhn8ZkfcgmGZmvf+NtZ3kuxJoanXfBFT1apf/pNpfg7r5/jDDbG8TMmArFxZdY2RunTLjo7A1bhEgOKxy/44qp4TPcaX8TBaqr5I03XL2wOnWsmcJR+qYaVC4sUcTEa3fttqtEtmJTFzkEkKOHEg0IW2xbu847njOcPMS1HEguk4O4evv+401DJCAhp+5PaGo1rgT+qPli3jGfRZOPcxsxeZA4fApUAxlI8uONUTX04VdDPKlrg/1DGRcJ1vfKR7+/mgs1Hnnj81f8qLjXwfcQzmm4Aq0wK9YeoM575jiqJZvSu0mGAXtHYlg7unCQIJhMGY7Vxc3Dy8cvICgkLCIabTAhKSXtT4BZOXkFRSVlFVU1dQ1NLW0dXT19A0MlI2MTSMjUzNwViAL3M3lQqcZ+K0F0pgsVlj2jUW27//+7xP6ErY9y4JcBemZdmAFqntggsMAagUXWDyyxbmCZDQErrAVYZRPAGmsC1lkvsMHagC3WB2yzHmCHDQO7rAPYY+3APhsFDlkzcMS6gGPWCpywEeCUjQNnrBM4ZwPABRsDLkdPgi8AvREIIQhCMIQQCKEQwiCEQ4iAEAkhCkI0hBgIsRDiIMRDSICQCCEJQjKEFAipENIgpEPIgJAJIQtCNoQcCLkQ8iDkQyiAUAihCEIxhBIIpRDKIJRDqIBQCaEKQjWEGgi1EOog1LM3nQboL40QmiA0m0QKvha7bbRCebRBaIfQAWjE1KT6Mbe4oaAEFD15V8c1Npu8CiuJ+AgmZ+ibQWlcWmSAxALcWmEZSyAXGzLeJkSCSHP7vut0TVNSh01dwfysllW0nFagpJbIKHpGxmNm9hthJGqxHh2r9a1LpXoZteJbRCtpSsJSTEsukVAcjaubhmElaof2qUe+BlVN1Giq1mAaAZwEyNjKPVCn9M/ombCZRJqctqcDmwMD6YIbHZTN5WLZAkbni25GeSMT81p3zBduRVryQiIyK7q2F9KY/XxW7heJar+AV/4A237mtCB4kYk89YiCOQFcIhL20uGLC5C//SXJRK8vo5pgx6uNrmAl9nqbrUmU8rR0zekKrHF/ZrbTLBjbkj1RfwZ8jD6jIGTXaC+ppjqxRFrkNJGP9hy7FDGeHl4FhagGY/X+NWKIFlCDQdymq8aSUjqFqWvzkiu8bbxidd5BC5FI3fF2jDbWGGyHuZOQtm5/x4kTONSe2rVrHwpWnb9Nov1nwZZwm7XrFA63gb0no9N9tm+PtjL/zA0c+m27WJbiO3duJdFGFKiPWcdOnQvOn15mzcmdkfJv2xWeAFu3msOOmlv/ywgmtudQ7OBWH57bsiXY22Zxy0oiunOJu23/6avmojw/8UbZj+OwUkFBDKcnL4LlKINqlUTcrvDGGf/szej2+eDcraXhh5YpEnwqsZbt+05dyXoFKq+nwn92ShXNCF6yaHCcROsbmMjVyCpwAIykbGupvSPhMYsX7aOP4HADCurdUp6yJYUFrFqsL8zM7IV47ry5hRjHlQq3cper7EY8sVz1JEovtIkocwPG87er0DaWVUVFTeGaqMp0HFOhdHeVMhkVV0tzq8tXBfsy//f1KNCUo9RSBsUQa7goUOYSCQuMCJP3Zbl1eg901ANJ1JRAwAFWOYEiMGh9B6P5mSBGbmFdFGynyI2W4PF7ElIWwub1lx8hNmUO1YOBRJcelh+8wWAXdQFOYZnMheiyn3mxR0fGUhmEAcuc0OnNoWUCwy9APEPC6JLB3qh3kZxqcakMAz8X5/svbeB0nmCM8gVMTMCsHehWTxx6nn2v4oSV+aW7ZfBDrePhfZfDN33xNOiUOjI9Wu+fCE8FpxclVQIGIiWe206+Due/uv6F2Dfh9JzjOWfkmZE3plNza8PBsWdmDuV0/pIj2R1mA3029clIJ3d6wO7BvYW5lWx1PN6He1fL5X6/NO6J46m/dV+rVPr/2rK/Wp3xZ1dSKYvrnwdUl/rm3o/ThqFSdj1Ba/Tqqdhcb67xvOzTGc/HnB6w3B9EEI8HEiTC8ENfShDpAdJ/36fp3UfwVDATzzCQDf0hai8P8iAP1iG7MWwHe49R29iVpyW9Jvtm//FoVsNrHYxLzl1zj65MQXIJUXDHTCplOz0lt6XklEpsrSs6PLMb6BSjDSNiDdgbT82/rqLjG1PMyGr2IobBMyLY+X4EAyY1FNd7H4onDuKwRiWMHcCARyf3nsBnvo5KE1xM9KRgXZq0hw+FgIGlhoMR4oeQzvBT8Dn66H9YSWzWsLV9s7jHRfgE/EbI/8Ej2I93AzqCDlA9AK8XIc7u5PFcBFOLkAMDS9PTM9JhLmbk04cZURi0w2qd7hf+66VugwSKgGdMv7JAkMfj5QkKnobP8+fxCgRPHXzPW9Q/37AIkv38NMC12IJgEeQP4ifR2kq0EcCfpzP1CB70OLWDwR7ww/Gmm9rbS6VnTq9ZI5UFe9OZQQ1B3ukO03qi/5bXB+aH18eWL1cXFenpRYSf8ZmdOX1ma8SmTTNeK5xpEAc0Z/zNDGBd/alkK3erypElW5WytjZwbAoWVH/+gx9HCEzk8AgdaGJcPKJKuUADupgGNFpHE9PBedUXxBdgmJuRGR2dKetggTA4nAwcEfAGX5aXttT3xW6n+Jf7h/qX+fPke2vc5J1XXf9vbZ9CuW4cEGl9l1K//Kb5TPdBO+vy0J/LYu1pJ1sQW8cwP6rJUouO8Ga2leNOlteBUq/0dOduyyXbLJ2d7B3cLc+PUM1mWHZWNLwxt0mjWi53/MJbCSF2Tx2oKv02+2UWlSLZEw+qhUnWumgHh9WnqYvDZgQeYJBOgWDfYdYqMTVw4gw51S2w2pfrxLoUYmy6jKqEzebc7sO8W6mXh6IiGWxFKEtRln4KVtmHhyrYaGRhe26Tf7YX2+mU4QwUoWw/9+WJLucWczXnuPs13MX7EYp/m7xNhgMG5WFjfnJSewnFh4FjMzKGtkvD3L7BMxntY6pm1IxxwKxsaN/CMrHMpdfwk8ZWo8xtJNKa1PbD86kznOycuOndaR3cSQbGVl5WVGgg+ZUTvO++r47jqoukWKwIyE/TxDR1uskZgbyYnOOXyNIcVnUaaGKbOlzlImGitKTA+GJMSqhzZEFRLy8hOYG+fimXmcBgxDO5pkb5bexUo6AYZ4vFUhE9yymyUKBtBiBO4uEPv+XJmZWmgiLnyPjrip65yps6NTGb8zyI4WYOucqFEzWBqfHwSSm4Bt6OItctPkBmdBu2NRm9W6u/W3znLnzlHDls3FCbwPlhfASHOb0+gZIqjMAOqPgDsVDnDCKsDIooUQHKJzEWptpNYETVo8QPFQtuacUEmOqHGXb71sLHHTli235ZDtXjl063vvdgfVcWhZXDdJcddK1cK8zn8/MawweElsPRd7jQ1zNkuKx1za4W4gLD9MxX5gEXCUcy2ffr1zJhoDJdWWY4R8LZmZjNabLmXvN8MuyroYrDbrStLeMBhRIVRaE8MBqy/fTKvF/oPrCuCZWoklBi8rNRJaC78aN5225GCoBjavCGP+/x1wv48Mz9Y3fy5FzmBH27rG6nemh5dpCEmZjIlARlC8vpKwYHXejlEltICf1KQei46i3X/yT9ObmVBjSNTAk0EG8ziT6JBl9+zrsEDU4sJ3BIIubMMXYRyaadUeuqigpmrwtHPW67uyfufhofX15ioO/kI5Kfrurv//9/8tnMUbN2EF80mtxGqqmzc0uxg1GTzfz+pnlmj286fhoaglDb9Q2xDEasEeJmx4j8hQa2B8R5BTt+CfnvDd4Ze7Opxu++XbSxorK9P3btt1xI4ngqTk5uCGDExwUqmyeT5iuEk4s+chzm3jDhuccbqbo7D8FofaIH/c5JbNGHvE4MO9il6qTE/mh3vW3C2aqew6oGcXcPbP60YUXV6//8adz8urIcvwzfqVN9M/xyLoZPeurU+4lz/C565DcsHl+bw8vkcDJ5OXfF9fyZnBzeXcfqMPwutjE6unEyOVOT+X8u5kc+jZ4xUeuXsvKJUAvPdIOnmFvGNmyb4B3KQuGZ2lLqemDsRLRBliB5lnsm8Ti6Spdv36KjRUIPj6goIKOUeUr4tHlcZtT8VqqGEycmUYwZL1Z9UYQWhgvnzK8JWJOTmmosru7rXSCuiBROt9PwvhU9rFB44o15uQkJWi17334wH3JVYwu1Gd7cvBDT8tnEsljHw4eG0DaKtfuJw3C/f5mMzPX7wbsMnxaIVr7vW6OIb8Djd+9D9+3B4xoUcdo+ZzQgLglliur21l6/uv3Y/t3DEY1f0+sUEaBIwvEHKEDV86+/PX/hvdTfI8H/fqEb8m4cgE20TZ1+lAcpS6tpR0rACZbtRdvoIL3IEWc22wH0G6lD3qJHLUPupbURVMZxp6VZQd1qGPjt791g2KxXZdkyeqdw1T/kYxszbYM3jeNchQ3ulriPeY5Y12m2mjIbFdIFzhZvIlqZh5Eg1TAA0dPwvg+C0AqvZmsQ27zdGORuyWvX6jzLUXOUVJC/L7O75APlycErPsjuSM39f5PI/wGg5sSf93y0cf9U14K0beNCvem/gM1t/pdv/YhgcZT0X4L81ycKtSDt2zC32xwwPgjgI0h12mmkkIA0tAQ1Jwkgc7cOEkrnAUwFAmOYBjpMB+zhRsOnE6hTSwakJABBvd4dkyAJO0B+dNaCAp0PMxUsN0GDzm8ZBh7Kb0ZgeDQva7gn9uYmJE/wG1wJiu2boG/zHzj7SM1ld+F2ek9AwErANP2iyaO7ErGN5YjNY6R1QiHEJ
807nH8Ai3dIJKup1OLz7jTEVcU5wnzjBtB4hHwG5xeuSJQWGCrkP4PjpDhhxaRxqXOhWDiSVCRBwgEjUZvoUazkXNFiLYa2WMRcvWYqhCEQCDeVfL2vgCNTWeI4SXXpmR3VtR0dCpyLiujaovvj5+KtUgji1wURGEURfHfW2t7xN78uHdWCaIkK6qmG6ZlO67nB2EUJ2mWF2VVN23XD+M0L+u2H+d1P+/3c+PWnXsPHj159uLVm3cfPv3w06+1E4djcEp8pIkajrO8rrae6CANodanYjnsMOjvPs5bVgvm3PY5ngwIMHpSAsduswsJRXd1h8ht8qbuvHEFC1Le1k3CSguYSnda1Hpizut6j+v6lcpk1jV8WTubnUkq9YJmC35oc1B5WOf1E1shw7y1Lc5SufGpPvWxpMrXEQTTyiQU5XykG6GV8eQ2MeYe/RIqTCqbJZWWI6WcS0VNsEMtrQohzsDUKYUjhPVUVKcao2ymgdHHkg85oe8mtn0RidRGaw9spajmcoNUOUbYzvdjUWvijHRRJNoBOwxt3qwSgzTM8xwLA7Sk2rIvHxPQZnnqEqjSVXLtxxs3a2EV10pDp0j97k5eVRwGhBeRmUwLBt96c+0fKpKFkbVcKwAA);font-weight:400;font-style:normal}.ag-theme-alpine,.ag-theme-alpine-dark,.ag-theme-alpine-auto-dark{--ag-alpine-active-color: #2196f3;--ag-selected-row-background-color: rgba(33, 150, 243, .3);--ag-row-hover-color: rgba(33, 150, 243, .1);--ag-column-hover-color: rgba(33, 150, 243, .1);--ag-input-focus-border-color: rgba(33, 150, 243, .4);--ag-range-selection-background-color: rgba(33, 150, 243, .2);--ag-range-selection-background-color-2: rgba(33, 150, 243, .36);--ag-range-selection-background-color-3: rgba(33, 150, 243, .49);--ag-range-selection-background-color-4: rgba(33, 150, 243, .59);--ag-background-color: #fff;--ag-foreground-color: #181d1f;--ag-border-color: #babfc7;--ag-secondary-border-color: #dde2eb;--ag-header-background-color: #f8f8f8;--ag-tooltip-background-color: #f8f8f8;--ag-odd-row-background-color: #fcfcfc;--ag-control-panel-background-color: #f8f8f8;--ag-subheader-background-color: #fff;--ag-invalid-color: #e02525;--ag-checkbox-unchecked-color: #999;--ag-advanced-filter-join-pill-color: #f08e8d;--ag-advanced-filter-column-pill-color: #a6e194;--ag-advanced-filter-option-pill-color: #f3c08b;--ag-advanced-filter-value-pill-color: #85c0e4;--ag-checkbox-background-color: var(--ag-background-color);--ag-checkbox-checked-color: var(--ag-alpine-active-color);--ag-range-selection-border-color: var(--ag-alpine-active-color);--ag-secondary-foreground-color: var(--ag-foreground-color);--ag-input-border-color: var(--ag-border-color);--ag-input-border-color-invalid: var(--ag-invalid-color);--ag-input-focus-box-shadow: 0 0 2px .1rem var(--ag-input-focus-border-color);--ag-panel-background-color: var(--ag-header-background-color);--ag-menu-background-color: var(--ag-header-background-color);--ag-disabled-foreground-color: rgba(24, 29, 31, .5);--ag-chip-background-color: rgba(24, 29, 31, .07);--ag-input-disabled-border-color: rgba(186, 191, 199, .3);--ag-input-disabled-background-color: rgba(186, 191, 199, .15);--ag-borders: solid 1px;--ag-border-radius: 3px;--ag-borders-side-button: none;--ag-side-button-selected-background-color: transparent;--ag-header-column-resize-handle-display: block;--ag-header-column-resize-handle-width: 2px;--ag-header-column-resize-handle-height: 30%;--ag-grid-size: 6px;--ag-icon-size: 16px;--ag-row-height: calc(var(--ag-grid-size) * 7);--ag-header-height: calc(var(--ag-grid-size) * 8);--ag-list-item-height: calc(var(--ag-grid-size) * 4);--ag-column-select-indent-size: var(--ag-icon-size);--ag-set-filter-indent-size: var(--ag-icon-size);--ag-advanced-filter-builder-indent-size: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);--ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);--ag-cell-widget-spacing: calc(var(--ag-grid-size) * 2);--ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 2);--ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 2);--ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1.5);--ag-toggle-button-height: 18px;--ag-toggle-button-width: 28px;--ag-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;--ag-font-size: 13px;--ag-icon-font-family: agGridAlpine;--ag-selected-tab-underline-color: var(--ag-alpine-active-color);--ag-selected-tab-underline-width: 2px;--ag-selected-tab-underline-transition-speed: .3s;--ag-tab-min-width: 240px;--ag-card-shadow: 0 1px 4px 1px rgba(186, 191, 199, .4);--ag-popup-shadow: var(--ag-card-shadow);--ag-side-bar-panel-width: 250px}.ag-theme-alpine-dark{--ag-background-color: #181d1f;--ag-foreground-color: #fff;--ag-border-color: #68686e;--ag-secondary-border-color: rgba(88, 86, 82, .5);--ag-modal-overlay-background-color: rgba(24, 29, 31, .66);--ag-header-background-color: #222628;--ag-tooltip-background-color: #222628;--ag-odd-row-background-color: #222628;--ag-control-panel-background-color: #222628;--ag-subheader-background-color: #000;--ag-input-disabled-background-color: #282c2f;
807--ag-input-focus-box-shadow: 0 0 2px .5px rgba(255, 255, 255, .5), 0 0 4px 3px var(--ag-input-focus-border-color);--ag-card-shadow: 0 1px 20px 1px black;--ag-disabled-foreground-color: rgba(255, 255, 255, .5);--ag-chip-background-color: rgba(255, 255, 255, .07);--ag-input-disabled-border-color: rgba(104, 104, 110, .3);--ag-input-disabled-background-color: rgba(104, 104, 110, .07);--ag-advanced-filter-join-pill-color: #7a3a37;--ag-advanced-filter-column-pill-color: #355f2d;--ag-advanced-filter-option-pill-color: #5a3168;--ag-advanced-filter-value-pill-color: #374c86;--ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, .4);color-scheme:dark}@media (prefers-color-scheme: dark){.ag-theme-alpine-auto-dark{--ag-background-color: #181d1f;--ag-foreground-color: #fff;--ag-border-color: #68686e;--ag-secondary-border-color: rgba(88, 86, 82, .5);--ag-modal-overlay-background-color: rgba(24, 29, 31, .66);--ag-header-background-color: #222628;--ag-tooltip-background-color: #222628;--ag-odd-row-background-color: #222628;--ag-control-panel-background-color: #222628;--ag-subheader-background-color: #000;--ag-input-disabled-background-color: #282c2f;--ag-input-focus-box-shadow: 0 0 2px .5px rgba(255, 255, 255, .5), 0 0 4px 3px var(--ag-input-focus-border-color);--ag-card-shadow: 0 1px 20px 1px black;--ag-disabled-foreground-color: rgba(255, 255, 255, .5);--ag-chip-background-color: rgba(255, 255, 255, .07);--ag-input-disabled-border-color: rgba(104, 104, 110, .3);--ag-input-disabled-background-color: rgba(104, 104, 110, .07);--ag-advanced-filter-join-pill-color: #7a3a37;--ag-advanced-filter-column-pill-color: #355f2d;--ag-advanced-filter-option-pill-color: #5a3168;--ag-advanced-filter-value-pill-color: #374c86;--ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, .4);color-scheme:dark}}.ag-theme-alpine .ag-filter-toolpanel-header,.ag-theme-alpine .ag-filter-toolpanel-search,.ag-theme-alpine .ag-status-bar,.ag-theme-alpine .ag-header-row,.ag-theme-alpine .ag-panel-title-bar-title,.ag-theme-alpine .ag-multi-filter-group-title-bar,.ag-theme-alpine-dark .ag-filter-toolpanel-header,.ag-theme-alpine-dark .ag-filter-toolpanel-search,.ag-theme-alpine-dark .ag-status-bar,.ag-theme-alpine-dark .ag-header-row,.ag-theme-alpine-dark .ag-panel-title-bar-title,.ag-theme-alpine-dark .ag-multi-filter-group-title-bar,.ag-theme-alpine-auto-dark .ag-filter-toolpanel-header,.ag-theme-alpine-auto-dark .ag-filter-toolpanel-search,.ag-theme-alpine-auto-dark .ag-status-bar,.ag-theme-alpine-auto-dark .ag-header-row,.ag-theme-alpine-auto-dark .ag-panel-title-bar-title,.ag-theme-alpine-auto-dark .ag-multi-filter-group-title-bar{font-weight:700;color:var(--ag-header-foreground-color)}.ag-theme-alpine .ag-row,.ag-theme-alpine-dark .ag-row,.ag-theme-alpine-auto-dark .ag-row{font-size:calc(var(--ag-font-size) + 1px)}.ag-theme-alpine input[class^=ag-]:not([type]),.ag-theme-alpine input[class^=ag-][type=text],.ag-theme-alpine input[class^=ag-][type=number],.ag-theme-alpine input[class^=ag-][type=tel],.ag-theme-alpine input[class^=ag-][type=date],.ag-theme-alpine input[class^=ag-][type=datetime-local],.ag-theme-alpine textarea[class^=ag-],.ag-theme-alpine-dark input[class^=ag-]:not([type]),.ag-theme-alpine-dark input[class^=ag-][type=text],.ag-theme-alpine-dark input[class^=ag-][type=number],.ag-theme-alpine-dark input[class^=ag-][type=tel],.ag-theme-alpine-dark input[class^=ag-][type=date],.ag-theme-alpine-dark input[class^=ag-][type=datetime-local],.ag-theme-alpine-dark textarea[class^=ag-],.ag-theme-alpine-auto-dark input[class^=ag-]:not([type]),.ag-theme-alpine-auto-dark input[class^=ag-][type=text],.ag-theme-alpine-auto-dark input[class^=ag-][type=number],.ag-theme-alpine-auto-dark input[class^=ag-][type=tel],.ag-theme-alpine-auto-dark input[class^=ag-][type=date],.ag-theme-alpine-auto-dark input[class^=ag-][type=datetime-local],.ag-theme-alpine-auto-dark textarea[class^=ag-]{min-height:calc(var(--ag-grid-size) * 4);border-radius:var(--ag-border-radius)}.ag-theme-alpine .ag-ltr input[class^=ag-]:not([type]),.ag-theme-alpine .ag-ltr input[class^=ag-][type=text],.ag-theme-alpine .ag-ltr input[class^=ag-][type=number],.ag-theme-alpine .ag-ltr input[class^=ag-][type=tel],.ag-theme-alpine .ag-ltr input[class^=ag-][type=date],.ag-theme-alpine .ag-ltr input[class^=ag-][type=datetime-local],.ag-theme-alpine .ag-ltr textarea[class^=ag-],.ag-theme-alpine-dark .ag-ltr input[class^=ag-]:not([type]),.ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=text],.ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=number],.ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=tel],.ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=date],.ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=datetime-local],.ag-theme-alpine-dark .ag-ltr textarea[class^=ag-],.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-]:not([type]),.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=text],.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=number],.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=tel],.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=date],.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=datetime-local],.ag-theme-alpine-auto-dark .ag-ltr textarea[class^=ag-]{padding-left:var(--ag-grid-size)}.ag-theme-alpine .ag-rtl input[class^=ag-]:not([type]),.ag-theme-alpine .ag-rtl input[class^=ag-][type=text],.ag-theme-alpine .ag-rtl input[class^=ag-][type=number],.ag-theme-alpine .ag-rtl input[class^=ag-][type=tel],.ag-theme-alpine .ag-rtl input[class^=ag-][type=date],.ag-theme-alpine .ag-rtl input[class^=ag-][type=datetime-local],.ag-theme-alpine .ag-rtl textarea[class^=ag-],.ag-theme-alpine-dark .ag-rtl input[class^=ag-]:not([type]),.ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=text],.ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=number],.ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=tel],.ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=date],.ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=datetime-local],.ag-theme-alpine-dark .ag-rtl textarea[class^=ag-],.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-]:not([type]),.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=text],.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=number],.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=tel],.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=date],.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=datetime-local],.ag-theme-alpine-auto-dark .ag-rtl textarea[class^=ag-]{padding-right:var(--ag-grid-size)}.ag-theme-alpine .ag-tab,.ag-theme-alpine-dark .ag-tab,.ag-theme-alpine-auto-dark .ag-tab{padding:calc(var(--ag-grid-size) * 1.5);transition:color .4s;flex:1 1 auto}.ag-theme-alpine .ag-tab-selected,.ag-theme-alpine-dark .ag-tab-selected,.ag-theme-alpine-auto-dark .ag-tab-selected{color:var(--ag-alpine-active-color)}.ag-theme-alpine .ag-menu,.ag-theme-alpine-dark .ag-menu,.ag-theme-alpine-auto-dark .ag-menu,.ag-theme-alpine .ag-panel-content-wrapper .ag-column-select,.ag-theme-alpine-dark .ag-panel-content-wrapper .ag-column-select,.ag-theme-alpine-auto-dark .ag-panel-content-wrapper .ag-column-select{background-color:var(--ag-control-panel-background-color)}.ag-theme-alpine .ag-menu-header,.ag-theme-alpine-dark .ag-menu-header,.ag-theme-alpine-auto-dark .ag-menu-header{background-color:var(--ag-control-panel-background-color);padding-top:1px}.ag-theme-alpine .ag-tabs-header,.ag-theme-alpine-dark .ag-tabs-header,.ag-theme-alpine-auto-dark .ag-tabs-header{border-bottom:var(--ag-borders) var(--ag-border-color)}.ag-theme-alpine .ag-charts-settings-group-title-bar,.ag-theme-alpine .ag-charts-data-group-title-bar,.ag-theme-alpine .ag-charts-format-top-level-group-title-bar,.ag-theme-alpine .ag-charts-advanced-settings-top-level-group-title-bar,.ag-theme-alpine-dark .ag-charts-settings-group-title-bar,.ag-theme-alpine-dark .ag-charts-data-group-title-bar,.ag-theme-alpine-dark .ag-charts-format-top-level-group-title-bar,.ag-theme-alpine-dark .ag-charts-advanced-settings-top-level-group-title-bar,.ag-theme-alpine-auto-dark .ag-charts-settings-group-title-bar,.ag-theme-alpine-auto-dark .ag-charts-data-group-title-bar,.ag-theme-alpine-auto-dark .ag-charts-format-top-level-group-title-bar,.ag-theme-alpine-auto-dark .ag-charts-advanced-settings-top-level-group-title-bar{padding:var(--ag-grid-size) calc(var(--ag-grid-size) * 2);line-height:calc(var(--ag-icon-size) + var(--ag-grid-size) - 2px)}.ag-theme-alpine .ag-chart-mini-thumbnail,.ag-theme-alpine-dark .ag-chart-mini-thumbnail,.ag-theme-alpine-auto-dark .ag-chart-mini-thumbnail{background-color:var(--ag-background-color)}.ag-theme-alpine .ag-chart-settings-nav-bar,.ag-theme-alpine-dark .ag-chart-settings-nav-bar,.ag-theme-alpine-auto-dark .ag-chart-settings-nav-bar{border-top:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-theme-alpine .ag-ltr .ag-group-title-bar-icon,.ag-theme-alpine-dark .ag-ltr .ag-group-title-bar-icon,.ag-theme-alpine-auto-dark .ag-ltr .ag-group-title-bar-icon{margin-right:var(--ag-grid-size)}.ag-theme-alpine .ag-rtl .ag-group-title-bar-icon,.ag-theme-alpine-dark .ag-rtl .ag-group-title-bar-icon,.ag-theme-alpine-auto-dark .ag-rtl .ag-group-title-bar-icon{margin-left:var(--ag-grid-size)}.ag-theme-alpine .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine .ag-charts-advanced-settings-top-level-group-toolbar,.ag-theme-alpine-dark .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-dark .ag-charts-advanced-settings-top-level-group-toolbar,.ag-theme-alpine-auto-dark .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-auto-dark .ag-charts-advanced-settings-top-level-group-toolbar{margin-top:var(--ag-grid-size)}.ag-theme-alpine .ag-ltr .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine .ag-ltr .ag-charts-advanced-settings-top-level-group-toolbar,.ag-theme-alpine-dark .ag-ltr .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-dark .ag-ltr .ag-charts-advanced-settings-top-level-group-toolbar,.ag-theme-alpine-auto-dark .ag-ltr .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-auto-dark .ag-ltr .ag-charts-advanced-settings-top-level-group-toolbar{padding-left:calc(var(--ag-icon-size) * .5 + var(--ag-grid-size) * 2)}.ag-theme-alpine .ag-rtl .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine .ag-rtl .ag-charts-advanced-settings-top-level-group-toolbar,.ag-theme-alpine-dark .ag-rtl .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-dark .ag-rtl .ag-charts-advanced-settings-top-level-group-toolbar,.ag-theme-alpine-auto-dark .ag-rtl .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-auto-dark .ag-rtl .ag-charts-advanced-settings-top-level-group-toolbar{padding-right:calc(var(--ag-icon-size) * .5 + var(--ag-grid-size) * 2)}.ag-theme-alpine .ag-charts-format-sub-level-group,.ag-theme-alpine-dark .ag-charts-format-sub-level-group,.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group{border-left:dashed 1px;border-left-color:var(--ag-border-color);padding-left:var(--ag-grid-size);margin-bottom:calc(var(--ag-grid-size) * 2)}.ag-theme-alpine .ag-charts-format-sub-level-group-title-bar,.ag-theme-alpine-dark .ag-charts-format-sub-level-group-title-bar,.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-title-bar{padding-top:0;padding-bottom:0;background:none;font-weight:700}.ag-theme-alpine .ag-charts-format-sub-level-group-container,.ag-theme-alpine-dark .ag-charts-format-sub-level-group-container,.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-container{padding-bottom:0}.ag-theme-alpine .ag-charts-format-sub-level-group-item:last-child,.ag-theme-alpine-dark .ag-charts-format-sub-level-group-item:last-child,.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-item:last-child{margin-bottom:0}.ag-theme-alpine.ag-dnd-ghost,.ag-theme-alpine-dark.ag-dnd-ghost,.ag-theme-alpine-auto-dark.ag-dnd-ghost{font-size:calc(var(--ag-font-size) - 1px);font-weight:700}.ag-theme-alpine .ag-side-buttons,.ag-theme-alpine-dark .ag-side-buttons,.ag-theme-alpine-auto-dark .ag-side-buttons{width:calc(var(--ag-grid-size) * 5)}.ag-theme-alpine .ag-standard-button,.ag-theme-alpine-dark .ag-standard-button,.ag-theme-alpine-auto-dark .ag-standard-button{font-family:inherit;appearance:none;-webkit-appearance:none;border-radius:var(--ag-border-radius);border:1px solid;border-color:var(--ag-alpine-active-color);color:var(--ag-alpine-active-color);background-color:var(--ag-background-color);font-weight:600;padding:var(--ag-grid-size) calc(var(--ag-grid-size) * 2)}.ag-theme-alpine .ag-standard-button:hover,.ag-theme-alpine-dark .ag-standard-button:hover,.ag-theme-alpine-auto-dark .ag-standard-button:hover{border-color:var(--ag-alpine-active-color);background-color:var(--ag-row-hover-color)}.ag-theme-alpine .ag-standard-button:active,.ag-theme-alpine-dark .ag-standard-button:active,.ag-theme-alpine-auto-dark .ag-standard-button:active{border-color:var(--ag-alpine-active-color);background-color:var(--ag-alpine-active-color);color:var(--ag-background-color)}.ag-theme-alpine .ag-standard-button:disabled,.ag-theme-alpine-dark .ag-standard-button:disabled,.ag-theme-alpine-auto-dark .ag-standard-button:disabled{color:var(--ag-disabled-foreground-color);background-color:var(--ag-input-disabled-background-color);border-color:var(--ag-input-disabled-border-color)}.ag-theme-alpine .ag-column-drop-vertical,.ag-theme-alpine-dark .ag-column-drop-vertical,.ag-theme-alpine-auto-dark .ag-column-drop-vertical{min-height:75px}.ag-theme-alpine .ag-column-drop-vertical-title-bar,.ag-theme-alpine-dark .ag-column-drop-vertical-title-bar,.ag-theme-alpine-auto-dark .ag-column-drop-vertical-title-bar{padding:calc(var(--ag-grid-size) * 2);padding-bottom:0}.ag-theme-alpine .ag-column-drop-vertical-empty-message,.ag-theme-alpine-dark .ag-column-drop-vertical-empty-message,.ag-theme-alpine-auto-dark .ag-column-drop-vertical-empty-message{display:flex;align-items:center;border:dashed 1px;border-color:var(--ag-border-color);margin:calc(var(--ag-grid-size) * 2);padding:calc(var(--ag-grid-size) * 2)}.ag-theme-alpine .ag-column-drop-empty-message,.ag-theme-alpine-dark .ag-column-drop-empty-message,.ag-theme-alpine-auto-dark .ag-column-drop-empty-message{color:var(--ag-foreground-color);opacity:.75}.ag-theme-alpine .ag-pill-select .ag-column-drop,.ag-theme-alpine-dark .ag-pill-select .ag-column-drop,.ag-theme-alpine-auto-dark .ag-pill-select .ag-column-drop{min-height:unset}.ag-theme-alpine .ag-status-bar,.ag-theme-alpine-dark .ag-status-bar,.ag-theme-alpine-auto-dark .ag-status-bar{font-weight:400}.ag-theme-alpine .ag-status-name-value-value,.ag-theme-alpine-dark .ag-status-name-value-value,.ag-theme-alpine-auto-dark .ag-status-name-value-value,.ag-theme-alpine .ag-paging-number,.ag-theme-alpine .ag-paging-row-summary-panel-number,.ag-theme-alpine-dark .ag-paging-number,.ag-theme-alpine-dark .ag-paging-row-summary-panel-number,.ag-theme-alpine-auto-dark .ag-paging-number,.ag-theme-alpine-auto-dark .ag-paging-row-summary-panel-number{font-weight:700}.ag-theme-alpine .ag-column-drop-cell-button,.ag-theme-alpine-dark .ag-column-drop-cell-button,.ag-theme-alpine-auto-dark .ag-column-drop-cell-button{opacity:.5}.ag-theme-alpine .ag-column-drop-cell-button:hover,.ag-theme-alpine-dark .ag-column-drop-cell-button:hover,.ag-theme-alpine-auto-dark .ag-column-drop-cell-button:hover{opacity:.75}.ag-theme-alpine .ag-column-select-column-readonly.ag-icon-grip,.ag-theme-alpine .ag-column-select-column-readonly .ag-icon-grip,.ag-theme-alpine-dark .ag-column-select-column-readonly.ag-icon-grip,.ag-theme-alpine-dark .ag-column-select-column-readonly .ag-icon-grip,.ag-theme-alpine-auto-dark .ag-column-select-column-readonly.ag-icon-grip,.ag-theme-alpine-auto-dark .ag-column-select-column-readonly .ag-icon-grip{opacity:.35}.ag-theme-alpine .ag-header-cell-menu-button:hover,.ag-theme-alpine .ag-header-cell-filter-button:hover,.ag-theme-alpine .ag-side-button-button:hover,.ag-theme-alpine .ag-tab:hover,.ag-theme-alpine .ag-panel-title-bar-button:hover,.ag-theme-alpine .ag-header-expand-icon:hover,.ag-theme-alpine .ag-column-group-icons:hover,.ag-theme-alpine .ag-set-filter-group-icons:hover,.ag-theme-alpine .ag-group-expanded .ag-icon:hover,.ag-theme-alpine .ag-group-contracted .ag-icon:hover,.ag-theme-alpine .ag-chart-settings-prev:hover,.ag-theme-alpine .ag-chart-
807settings-next:hover,.ag-theme-alpine .ag-group-title-bar-icon:hover,.ag-theme-alpine .ag-column-select-header-icon:hover,.ag-theme-alpine .ag-floating-filter-button-button:hover,.ag-theme-alpine .ag-filter-toolpanel-expand:hover,.ag-theme-alpine .ag-chart-menu-icon:hover,.ag-theme-alpine-dark .ag-header-cell-menu-button:hover,.ag-theme-alpine-dark .ag-header-cell-filter-button:hover,.ag-theme-alpine-dark .ag-side-button-button:hover,.ag-theme-alpine-dark .ag-tab:hover,.ag-theme-alpine-dark .ag-panel-title-bar-button:hover,.ag-theme-alpine-dark .ag-header-expand-icon:hover,.ag-theme-alpine-dark .ag-column-group-icons:hover,.ag-theme-alpine-dark .ag-set-filter-group-icons:hover,.ag-theme-alpine-dark .ag-group-expanded .ag-icon:hover,.ag-theme-alpine-dark .ag-group-contracted .ag-icon:hover,.ag-theme-alpine-dark .ag-chart-settings-prev:hover,.ag-theme-alpine-dark .ag-chart-settings-next:hover,.ag-theme-alpine-dark .ag-group-title-bar-icon:hover,.ag-theme-alpine-dark .ag-column-select-header-icon:hover,.ag-theme-alpine-dark .ag-floating-filter-button-button:hover,.ag-theme-alpine-dark .ag-filter-toolpanel-expand:hover,.ag-theme-alpine-dark .ag-chart-menu-icon:hover,.ag-theme-alpine-auto-dark .ag-header-cell-menu-button:hover,.ag-theme-alpine-auto-dark .ag-header-cell-filter-button:hover,.ag-theme-alpine-auto-dark .ag-side-button-button:hover,.ag-theme-alpine-auto-dark .ag-tab:hover,.ag-theme-alpine-auto-dark .ag-panel-title-bar-button:hover,.ag-theme-alpine-auto-dark .ag-header-expand-icon:hover,.ag-theme-alpine-auto-dark .ag-column-group-icons:hover,.ag-theme-alpine-auto-dark .ag-set-filter-group-icons:hover,.ag-theme-alpine-auto-dark .ag-group-expanded .ag-icon:hover,.ag-theme-alpine-auto-dark .ag-group-contracted .ag-icon:hover,.ag-theme-alpine-auto-dark .ag-chart-settings-prev:hover,.ag-theme-alpine-auto-dark .ag-chart-settings-next:hover,.ag-theme-alpine-auto-dark .ag-group-title-bar-icon:hover,.ag-theme-alpine-auto-dark .ag-column-select-header-icon:hover,.ag-theme-alpine-auto-dark .ag-floating-filter-button-button:hover,.ag-theme-alpine-auto-dark .ag-filter-toolpanel-expand:hover,.ag-theme-alpine-auto-dark .ag-chart-menu-icon:hover{color:var(--ag-alpine-active-color)}.ag-theme-alpine .ag-header-cell-menu-button:hover .ag-icon,.ag-theme-alpine .ag-header-cell-filter-button:hover .ag-icon,.ag-theme-alpine .ag-side-button-button:hover .ag-icon,.ag-theme-alpine .ag-panel-title-bar-button:hover .ag-icon,.ag-theme-alpine .ag-floating-filter-button-button:hover .ag-icon,.ag-theme-alpine-dark .ag-header-cell-menu-button:hover .ag-icon,.ag-theme-alpine-dark .ag-header-cell-filter-button:hover .ag-icon,.ag-theme-alpine-dark .ag-side-button-button:hover .ag-icon,.ag-theme-alpine-dark .ag-panel-title-bar-button:hover .ag-icon,.ag-theme-alpine-dark .ag-floating-filter-button-button:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-header-cell-menu-button:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-header-cell-filter-button:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-side-button-button:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-panel-title-bar-button:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-floating-filter-button-button:hover .ag-icon{color:inherit}.ag-theme-alpine .ag-filter-active .ag-icon-filter,.ag-theme-alpine-dark .ag-filter-active .ag-icon-filter,.ag-theme-alpine-auto-dark .ag-filter-active .ag-icon-filter{color:var(--ag-alpine-active-color)}.ag-theme-alpine .ag-chart-settings-card-item.ag-not-selected:hover,.ag-theme-alpine-dark .ag-chart-settings-card-item.ag-not-selected:hover,.ag-theme-alpine-auto-dark .ag-chart-settings-card-item.ag-not-selected:hover{opacity:.35}.ag-theme-alpine .ag-ltr .ag-panel-title-bar-button,.ag-theme-alpine-dark .ag-ltr .ag-panel-title-bar-button,.ag-theme-alpine-auto-dark .ag-ltr .ag-panel-title-bar-button{margin-left:calc(var(--ag-grid-size) * 2);margin-right:var(--ag-grid-size)}.ag-theme-alpine .ag-rtl .ag-panel-title-bar-button,.ag-theme-alpine-dark .ag-rtl .ag-panel-title-bar-button,.ag-theme-alpine-auto-dark .ag-rtl .ag-panel-title-bar-button{margin-right:calc(var(--ag-grid-size) * 2);margin-left:var(--ag-grid-size)}.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-container,.ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-group-container,.ag-theme-alpine-auto-dark .ag-ltr .ag-filter-toolpanel-group-container{padding-left:var(--ag-grid-size)}.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-container,.ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-group-container,.ag-theme-alpine-auto-dark .ag-rtl .ag-filter-toolpanel-group-container{padding-right:var(--ag-grid-size)}.ag-theme-alpine .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-dark .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-auto-dark .ag-filter-toolpanel-instance-filter{border:none;background-color:var(--ag-control-panel-background-color)}.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-auto-dark .ag-ltr .ag-filter-toolpanel-instance-filter{border-left:dashed 1px;border-left-color:var(--ag-border-color);margin-left:calc(var(--ag-icon-size) * .5)}.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-auto-dark .ag-rtl .ag-filter-toolpanel-instance-filter{border-right:dashed 1px;border-right-color:var(--ag-border-color);margin-right:calc(var(--ag-icon-size) * .5)}.ag-theme-alpine .ag-set-filter-list,.ag-theme-alpine-dark .ag-set-filter-list,.ag-theme-alpine-auto-dark .ag-set-filter-list{padding-top:calc(var(--ag-grid-size) * .5);padding-bottom:calc(var(--ag-grid-size) * .5)}.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-viewport,.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-container,.ag-theme-alpine .ag-layout-print .ag-center-cols-viewport,.ag-theme-alpine .ag-layout-print .ag-center-cols-container,.ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-viewport,.ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-container,.ag-theme-alpine-dark .ag-layout-print .ag-center-cols-viewport,.ag-theme-alpine-dark .ag-layout-print .ag-center-cols-container,.ag-theme-alpine-auto-dark .ag-layout-auto-height .ag-center-cols-viewport,.ag-theme-alpine-auto-dark .ag-layout-auto-height .ag-center-cols-container,.ag-theme-alpine-auto-dark .ag-layout-print .ag-center-cols-viewport,.ag-theme-alpine-auto-dark .ag-layout-print .ag-center-cols-container{min-height:150px}.ag-theme-alpine .ag-date-time-list-page-entry-is-current,.ag-theme-alpine-dark .ag-date-time-list-page-entry-is-current,.ag-theme-alpine-auto-dark .ag-date-time-list-page-entry-is-current{background-color:var(--ag-alpine-active-color)}
807.ag-theme-alpine .ag-advanced-filter-builder-button,.ag-theme-alpine-dark .ag-advanced-filter-builder-button,.ag-theme-alpine-auto-dark .ag-advanced-filter-builder-button{padding:var(--ag-grid-size);font-weight:600}.ag-theme-alpine .ag-list-item-hovered:after,.ag-theme-alpine-dark .ag-list-item-hovered:after,.ag-theme-alpine-auto-dark .ag-list-item-hovered:after{background-color:var(--ag-alpine-active-color)}.ag-theme-alpine .ag-pill .ag-pill-button:hover,.ag-theme-alpine-dark .ag-pill .ag-pill-button:hover,.ag-theme-alpine-auto-dark .ag-pill .ag-pill-button:hover{color:var(--ag-alpine-active-color)}.ag-theme-alpine .ag-header-highlight-before:after,.ag-theme-alpine .ag-header-highlight-after:after,.ag-theme-alpine-dark .ag-header-highlight-before:after,.ag-theme-alpine-dark .ag-header-highlight-after:after,.ag-theme-alpine-auto-dark .ag-header-highlight-before:after,.ag-theme-alpine-auto-dark .ag-header-highlight-after:after{background-color:var(--ag-alpine-active-color)}:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.ag-theme-alpine .ag-root-wrapper{border:0}.ag-theme-alpine .ag-header{border-top:1px solid #c3c3c3}.ag-theme-alpine .ag-row{border:none 1px #dce6f0}.grid-wrapper .ag-theme-alpine .ag-row-selected{background-color:#a0ebd766!important}.ag-center-cols-clipper,.ag-center-cols-container{min-height:75px!important} 808`],encapsulation:2});let e=t;return e})(),uxe=(()=>{let t=class t{constructor(){this.LoaderSize=Pp}agInit(n){this.params=n}refresh(n){return this.params=n,!1}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-button-cell"]],standalone:!1,decls:3,vars:1,consts:[[1,"table-button-cell"],[1,"table-button",3,"button"],[1,"table-loader",3,"size"]],template:function(o,r){o&1&&(p(0,"div",0),y(1,Rne,1,1,"fab-button",1)(2,Fne,1,1,"fab-loader",2),u()),o&2&&(d(),w(r.params.loading?2:1))},dependencies:[Vo,Ee],styles:[".table-button-cell[_ngcontent-%COMP%]{display:flex;width:100%;height:100%;justify-content:center}.table-button-cell[_ngcontent-%COMP%] .table-button[_ngcontent-%COMP%] a{font-size:14px!important}.table-button-cell[_ngcontent-%COMP%] .table-loader[_ngcontent-%COMP%]{justify-self:center;align-self:center}"]});let e=t;return e})(),Dse=(()=>{let t=class t{constructor(n){this._cdr=n}agInit(n){this.checkboxContent={id:Pa(),disabled:!!n.isDisabled,style:n.isDisabled?"gray":void 0},this.params=n,this._cdr.detectChanges()}refresh(n){return this.params=n,!1}onChange(n){this.params.editValue&&this.params.column?this.params.node.setDataValue(this.params.column,n):this.params.node.setSelected(n)}};t.\u0275fac=function(o){return new(o||t)(O(Ii))},t.\u0275cmp=U({type:t,selectors:[["checkbox-renderer"]],standalone:!1,decls:1,vars:1,consts:[["type","checkbox",1,"checkbox-renderer__checkbox",3,"isChecked","content"],["type","checkbox",1,"checkbox-renderer__checkbox",3,"isCheckedChange","onChange","isChecked","content"]],template:function(o,r){o&1&&y(0,One,1,2,"fab-input-checkbox",0),o&2&&w(r.params&&r.params.value!==void 0?0:-1)},dependencies:[Gp],styles:[`.checkbox-renderer__checkbox{text-align:center} 809`,`.checkbox-renderer__checkbox label{height:40px;padding-left:24px} 810`],encapsulation:2});let e=t;return e})(),Pse=(()=>{let t=class t{agInit(n){console.log("button",n),n.buttonConfig&&n.buttonConfig.action.callback&&(n.buttonConfig.action.callback=n.buttonConfig.action.callback.bind(this,n.data)),this.params=n}onClick(){this.params.isDisabled||this.params.onClick(this.params)}refresh(n){return!1}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["button-renderer"]],standalone:!1,decls:1,vars:1,consts:[[1,"button-renderer__custom-html",3,"innerHtml","ngClass"],[3,"button"],[1,"button-renderer__custom-html",3,"click","innerHtml","ngClass"]],template:function(o,r){o&1&&y(0,Nne,2,1),o&2&&w(r.params&&r.params.data!==void 0?0:-1)},dependencies:[Ce,Ee],encapsulation:2});let e=t;return e})();var Rse=(()=>{let t=class t{agInit(n){this.params=n}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-table-loading"]],standalone:!1,decls:2,vars:0,consts:[[1,"table-loader"]],template:function(o,r){o&1&&(p(0,"div",0),x(1,"fab-loader"),u())},dependencies:[Vo],styles:[".table-loader[_ngcontent-%COMP%]{margin-top:10px}"]});let e=t;return e})(),Fse=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,Bo,mw,xa,Us,Ee]});let e=t;return e})(),Ose=(()=>{let t=class t{constructor(n){this._platformId=n,this.index=0,this.indexChange=new L,this.changeActiveTab=new L,this.hoverToolTip=!1,this.clickToolTip=!1,Ct(this._platformId)&&this.responsive(window.innerWidth),this.getRandomId()}ngOnInit(){setTimeout(()=>{this.tabsElem&&(this.isScrollable=this.tabsElem.nativeElement.scrollWidth>this.tabsElem.nativeElement.clientWidth,this.centreOnSelected())},0)}ngOnChanges(n){!n?.index?.firstChange&&n?.index?.currentValue&&this.tabClick(n.index.currentValue,!1)}onResize(n){this.responsive(n.target.innerWidth),this.isScrollable=this.tabsElem.nativeElement.scrollWidth>this.tabsElem.nativeElement.clientWidth}scrollTabs(n){n==="left"?this.scrollTo(this.tabsElem.nativeElement.scrollLeft-this.tabsElem.nativeElement.clientWidth):this.scrollTo(this.tabsElem.nativeElement.scrollLeft+this.tabsElem.nativeElement.clientWidth)}onScroll(){this.updateArrows()}hoverInfoIcon(n){this.hoverToolTip=!this.hoverToolTip}clickInfoIcon(n){this.clickToolTip=!this.clickToolTip}tabClick(n,o=!0){this.index=n,this.indexChange.emit(n),o&&this.changeActiveTab.emit(this.content.tabData[n].path),this.centreOnSelected()}responsive(n){this.isMobile=n<600,this.isTablet=n<993&&n>=600}getRandomId(){this.id=Math.floor(Math.random()*1e4+1)}updateArrows(){this.hideLeftArrow=!1,this.hideRightArrow=!1;let n=100*this.tabsElem.nativeElement.scrollLeft/(this.tabsElem.nativeElement.scrollWidth-this.tabsElem.nativeElement.clientWidth);n===0?this.hideLeftArrow=!0:n===100&&(this.hideRightArrow=!0)}scrollTo(n){if(this.tabsElem.nativeElement.scrollLeft>n)for(let o=this.tabsElem.nativeElement.scrollLeft||0;o>=n;o-=1)setTimeout(()=>{this.tabsElem.nativeElement.scrollLeft=o},100);else for(let o=this.tabsElem.nativeElement.scrollLeft||0;o<=n;o+=1)setTimeout(()=>{this.tabsElem.nativeElement.scrollLeft=o},100)}centreOnSelected(){setTimeout(()=>{let n=this.tabsElem.nativeElement.querySelector(".tab-selected");this.scrollTo(n.offsetLeft+(n.clientWidth-this.tabsElem.nativeElement.clientWidth)/2)},0)}};t.\u0275fac=function(o){return new(o||t)(O(gt))},t.\u0275cmp=U({type:t,selectors:[["fab-tabs-block"]],viewQuery:function(o,r){if(o&1&&Ue(zne,5),o&2){let a;Me(a=Te())&&(r.tabsElem=a.first)}},hostBindings:function(o,r){o&1&&T("resize",function(s){return r.onResize(s)},yr)},inputs:{content:"content",index:"index"},outputs:{indexChange:"indexChange",changeActiveTab:"changeActiveTab"},standalone:!1,features:[Ye],decls:1,vars:1,consts:[["tabs",""],[1,"tabs-block",3,"ngClass"],[1,"tabs-block__title",3,"innerHTML"],[1,"tabs-block__tabs",3,"scroll","id"],[1,"tabs-block__tabs--arrow",3,"ngClass"],["tabindex","0",1,"tabs-block__tabs--tab",3,"innerHTML","ngClass"],["tabindex","0",1,"icon","icon-arrow-left",3,"click","keydown.Enter"],["tabindex","0",1,"tabs-block__tabs--tab",3,"click","keydown.Enter","innerHTML","ngClass"],["tabindex","0",1,"icon","icon-arrow-right",3,"click","keydown.Enter"],[1,"tabs-block__tabs-content"],[1,"tabs-block__tabs-content--tab-text"],[3,"innerHTML"],[1,"tabs-block__tabs-content--tab-image--container"],[1,"tabs-block__tabs-content--tab-image"],[1,"image-tool-tip"],[1,"icon","icon-info",3,"tooltip","positionInput"]],template:function(o,r){o&1&&y(0,Yne,9,9,"div",1),o&2&&w(r.content&&r.content.tabData?0:-1)},dependencies:[Ce,jp],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.tabs-block{margin:15px 0}@media (min-width: 992px){.tabs-block{margin:30px 0}}.tabs-block .tab-selected{font-weight:600;color:#00ab4e;border-bottom:4px solid #00ab4e}.tabs-block__title{font-size:22px;margin-bottom:20px;white-space:pre-wrap;
810font-family:acumin-pro-wide,Arial}@media (min-width: 992px){.tabs-block__title{font-size:25px;margin-bottom:30px}}@media (min-width: 1200px){.tabs-block__title{font-size:32px}}.tabs-block__tabs{border-bottom:1px solid #dce6f0;display:flex;flex-direction:row;z-index:100;position:relative;font-size:11px;-ms-overflow-style:none;overflow:auto}@media (min-width: 992px){.tabs-block__tabs{justify-content:flex-start;font-size:11px}}@media (min-width: 1200px){.tabs-block__tabs{border-top:1px solid #dce6f0;justify-content:flex-start;font-size:14px}}.tabs-block__tabs--tab{padding:10px 15px;text-align:center;cursor:pointer;white-space:nowrap}@media (min-width: 1200px){.tabs-block__tabs--tab{padding:20px 15px}}.tabs-block__tabs--arrow{color:#00ab4e;font-size:28px;position:sticky;top:0;z-index:120;width:30px;line-height:100%;display:flex;justify-content:center;align-items:center}.tabs-block__tabs--arrow-hidden{visibility:hidden}.tabs-block__tabs--arrow i{z-index:1;cursor:pointer}.tabs-block__tabs--arrow:after{content:"";position:absolute;inset:0;pointer-events:none}.tabs-block__tabs--arrow:first-of-type{left:0}.tabs-block__tabs--arrow:first-of-type:after{right:-20px;background:linear-gradient(90deg,#fff 0% 40%,#fff0)}.tabs-block__tabs--arrow:last-of-type{right:0}.tabs-block__tabs--arrow:last-of-type:after{left:-20px;background:linear-gradient(90deg,#fff0,#fff 60% 100%)}.tabs-block__tabs-content{display:flex;flex-direction:column-reverse;flex-wrap:wrap;font-size:14px}@media (min-width: 992px){.tabs-block__tabs-content{flex-direction:row;margin:30px 15px;font-size:16px}}@media (min-width: 1200px){.tabs-block__tabs-content{flex-direction:row;margin:40px 15px;font-size:18px}}.tabs-block__tabs-content--tab-text{width:100%}.tabs-block__tabs-content--tab-text .tab-content{font-size:11px;padding-top:15px}@media (min-width: 992px){.tabs-block__tabs-content--tab-text{width:calc(50% - 15px);padding-right:15px}.tabs-block__tabs-content--tab-text .tab-content{font-size:11px;padding-right:15px}}@media (min-width: 1200px){.tabs-block__tabs-content--tab-text{width:calc(50% - 15px);padding-right:15px}.tabs-block__tabs-content--tab-text .tab-content{font-size:14px;padding-right:15px}}.tabs-block__tabs-content--tab-image{box-sizing:border-box;order:2;background-size:contain;background-repeat:no-repeat;width:100%;height:0;margin-top:10px;margin-bottom:10px;padding-top:50%}@media (min-width: 992px){.tabs-block__tabs-content--tab-image{margin-top:0;margin-bottom:0;padding-top:25%;height:100%}}@media (min-width: 1200px){.tabs-block__tabs-content--tab-image{margin-top:0;margin-bottom:0;padding-top:25%;height:100%}}.tabs-block__tabs-content--tab-image--container{width:100%;position:relative;height:280px}@media (min-width: 992px){.tabs-block__tabs-content--tab-image--container{width:50%}}.tabs-block__tabs-content--tab-image--container .image-tool-tip{position:absolute;top:10px;right:10px}@media (min-width: 992px){.tabs-block__tabs-content--tab-image--container .image-tool-tip{top:0;right:0}}.tabs-block .bubble{position:relative;padding:0;background-color:#000;border-radius:4px;top:10px;width:auto;max-width:calc(100% - 90px);right:30px;min-height:34px;font-size:14px;display:table}.tabs-block .bubble p{margin:5px 10px;color:#fff}@media (min-width: 992px){.tabs-block .bubble{top:15px;font-size:18px}}.tabs-block .bubble:after{content:"";position:absolute;border-style:solid;border-width:5px 0 5px 12px;border-color:transparent #000000;display:block;width:0;z-index:1;right:-12px;top:12px}.tabs-block .icon-info{position:relative;color:#31373e;font-size:20px;right:15px;top:15px;background-color:#fff;border:1px solid #fff;border-radius:50%;height:20px}@media (min-width: 992px){.tabs-block .icon-info{font-size:30px;height:30px}}.tabs-block--reverse-order{-moz-box-orient:horizontal;-webkit-box-orient:horizontal;-ms-box-orient:horizontal;-webkit-flex-direction:row-reverse;flex-direction:row-reverse}@media (min-width: 992px){.tabs-block--reverse-order .tabs-block__image{max-width:534px;width:50%;margin-right:0}}.tabs-block--reverse-order .tabs-block__image--tool-tip{-moz-box-orient:horizontal;-webkit-box-orient:horizontal;-ms-box-orient:horizontal;-webkit-flex-direction:row;flex-direction:row;justify-content:flex-end}@media (min-width: 992px){.tabs-block--reverse-order .tabs-block__content{max-width:534px;width:calc(50% - 20px);margin-right:20px}}.tabs-block--reverse-order .bubble{right:30px;left:auto}@media (min-width: 992px){.tabs-block--reverse-order .bubble{top:10px;right:25px;left:auto}}.tabs-block--reverse-order .bubble:after{left:auto;right:-12px;transform:rotate(360deg)}.tabs-block--reverse-order .icon-info{right:10px;left:auto} 811`],encapsulation:2});let e=t;return e})(),Ase=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,Us]});let e=t;return e})(),pxe=(()=>{let t=class t{constructor(){}ngOnInit(){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-timeline"]],inputs:{content:"content"},standalone:!1,decls:3,vars:0,consts:[[1,"timeline"],[1,"timeline--card-heading",3,"innerHtml"],[3,"innerHtml"],[3,"content"]],template:function(o,r){o&1&&(p(0,"div",0),X(1,Jne,3,3,null,null,se),u()),o&2&&(d(),ee(r.content))},dependencies:[Tre],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.timeline--card-heading{border-top:2px solid rgb(238.425,238.425,238.425);padding-top:15px;margin-top:30px;margin-left:20px;text-align:center}.timeline--card-heading h5{font-size:.92em}@media (min-width: 992px){.timeline--card-heading{position:relative}.timeline--card-heading:before{content:"";position:absolute;border-left:2px dashed #31373e;left:-31px;top:-19px;height:calc(100% + 29px)}}.timeline fab-assessment-card{display:block;position:relative}.timeline fab-assessment-card:not(:first-of-type){margin-top:30px}.timeline fab-assessment-card:not(:last-of-type) .assessment-card.joined:after{content:"";position:absolute;height:30px;left:calc(50% - 1px);border-left:2px dashed #31373e;top:100%}@media (min-width: 992px){.timeline fab-assessment-card:not(:only-of-type){margin-left:20px}.timeline fab-assessment-card:not(:only-of-type):after{content:"";position:absolute;display:block;top:calc(50% - 6px);padding:5px;left:-36px;height:12px;width:12px;border-radius:50%;background-color:#31373e;border:1px solid #31373e;box-shadow:inset 0 0 0 2px #fff;box-sizing:border-box}.timeline fab-assessment-card:not(:only-of-type):before{content:"";position:absolute;border-left:2px dashed #31373e;left:-31px;top:-15px;height:calc(100% + 25px)}.timeline fab-assessment-card:not(:only-of-type):first-of-type:before{top:calc(50% - 5px);height:calc(50% + 15px)}.timeline fab-assessment-card:not(:only-of-type):last-of-type:before{bottom:50%;height:calc(50% + 15px);top:auto}} 812`],encapsulation:2});let e=t;return e})(),hxe=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,Ire]});let e=t;return e})(),Lse=(()=>{let t=class t{constructor(n,o){this.gtmService=n,this.isBrowser=Ct(o)}ngAfterViewInit(){this.gtmId&&this.isBrowser&&(this.loadScript("https://www.googletagmanager.com/gtm.js?id="+this.gtmId+"&l=dataLayer"),this.triggerGtmStart())}loadScript(n,o=()=>{}){if(this.isBrowser){let r=document.getElementsByTagName("script")[0],a=document.createElement("script");a.type="text/javascript",a.src=n,a.onload=o,a.defer=!0,r.parentNode.insertBefore(a,r)}}triggerGtmStart(){this.gtmService.push({"gtm.start":new Date().getTime(),event:"gtm.js"})}};t.\u0275fac=function(o){return new(o||t)(O(Xn),O(gt))},t.\u0275dir=di({type:t,selectors:[["","fab-gtm",""]],inputs:{gtmId:[0,"fab-gtm","gtmId"]},standalone:!1,features:[St([])]});let e=t;return e})(),Nse=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({providers:[Xn],imports:[ge]});let e=t;return e})(),gxe=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["app-two-blocks"]],inputs:{content:"content"},standalone:!1,decls:8,vars:5,consts:[[1,"two-blocks-component"],[1,"two-blocks-component__block","block-one"],[3,"innerHTML"],[1,"two-blocks-component__block","block-two"]
812],template:function(o,r){o&1&&(p(0,"div",0)(1,"div",1),y(2,Zne,1,1,"div",2),y(3,Xne,1,1,"div",2),u(),p(4,"div",3),y(5,eoe,1,1,"div",2),y(6,toe,1,1,"div",2),y(7,ioe,1,1,"div",2),u()()),o&2&&(d(2),w(r.content.title1?2:-1),d(),w(r.content.text1?3:-1),d(2),w(r.content.title2?5:-1),d(),w(r.content.contact?6:-1),d(),w(r.content.text2?7:-1))},styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.two-blocks-component{overflow:hidden;width:100%;margin-left:auto;margin-right:auto}.two-blocks-component__block{box-sizing:border-box;padding:1em 2em;float:none;width:100%}.two-blocks-component__block p{font-size:1.5em;line-height:1.2em}.two-blocks-component__block p.bold{font-weight:600}.two-blocks-component__block p.minor{font-size:1em}.two-blocks-component__block h4{font-size:18px;color:#fff;line-height:1.5}.two-blocks-component__block.block-one{color:#000;background-color:#f8f8f8;width:95%;font-size:1.2em;padding-bottom:4em}.two-blocks-component__block.block-one h1{line-height:1.2;font-size:34px}.two-blocks-component__block.block-one h2{line-height:1.2;font-size:30px}.two-blocks-component__block.block-two{color:#fff;background-color:#00ab4e;padding-bottom:45px;padding-top:30px;min-height:250px}.two-blocks-component__block.block-two h4 a,.two-blocks-component__block.block-two h4 a:hover{color:#fff}.two-blocks-component__block.block-two p{color:#fff;line-height:1.5}@media (min-width: 992px){.two-blocks-component{display:flex}.two-blocks-component__block{align-self:flex-end;float:left}.two-blocks-component__block p{line-height:1.5em}.two-blocks-component__block h4{font-size:20px}.two-blocks-component__block.block-one{min-height:340px;width:60%;margin-right:-10%;padding:50px 11%}.two-blocks-component__block.block-one h1{font-size:39px}.two-blocks-component__block.block-one h2{font-size:34px}.two-blocks-component__block.block-two{min-height:270px;width:50%;margin-top:3%;padding-bottom:20px;padding-top:30px}}@media (min-width: 1200px){.two-blocks-component__block h4{font-size:24px}.two-blocks-component__block.block-one{padding-left:13%}.two-blocks-component__block.block-one h1{font-size:57px}.two-blocks-component__block.block-one h2{font-size:39px}.two-blocks-component__block.block-two{padding-bottom:60px;padding-top:30px}} 813`],encapsulation:2});let e=t;return e})(),mxe=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge]});let e=t;return e})();var AS=()=>{},fxe=(()=>{let t=class t{constructor(){this.toolbar=[["bold","italic","underline"],["ordered_list","bullet_list"]],this.subscriptions=[],this.onTouchedCallback=AS,this.onChangeCallback=AS}ngOnInit(){this.editor=new Sp({content:this.config.content,history:!0}),this.config.toolbar&&(this.toolbar=this.config.toolbar),this.characterLimit&&(this.remainingCharacters=this.characterLimit),this.subscriptions.push(this.editor.valueChanges.subscribe(n=>{this.value=kp(n),this.remainingCharacters=this.getRemainingCharacters(kp(n))}))}ngOnDestroy(){this.subscriptions.forEach(n=>n.unsubscribe()),this.editor?.destroy()}get value(){return this.innerValue}set value(n){n!==this.innerValue&&(this.innerValue=n,this.onChangeCallback(n),this.onTouchedCallback())}writeValue(n){n!==this.innerValue&&(this.innerValue=n,this.editor&&this.editor.setContent(n))}registerOnChange(n){this.onChangeCallback=n}registerOnTouched(n){this.onTouchedCallback=n}getRemainingCharacters(n){if(this.characterLimit){let o=n.replace(/(<([^>]+)>)/gi,"");return this.characterLimit-o.length}else return}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["fab-wysiwyg-editor"]],inputs:{config:"config",characterLimit:"characterLimit"},standalone:!1,features:[St([{provide:Zt,useExisting:Wt(()=>t),multi:!0}])],decls:2,vars:2,consts:[[1,"NgxEditor_Wrapper"],[1,"character-limit"],[3,"editor","toolbar"],[3,"editor","placeholder"],[3,"ngClass"]],template:function(o,r){o&1&&(y(0,ooe,3,4,"div",0),y(1,roe,3,5,"div",1)),o&2&&(w(r.editor?0:-1),d(),w(r.characterLimit&&r.remainingCharacters!==void 0?1:-1))},dependencies:[Ce,dS,hS],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.NgxEditor_Wrapper{border:2px solid rgb(229.5,229.5,229.5);border-radius:3px;margin-top:5px}.NgxEditor_Wrapper ngx-editor .NgxEditor{border:none;border-top:2px solid rgb(229.5,229.5,229.5);border-radius:0}.NgxEditor_Wrapper ngx-editor .NgxEditor .NgxEditor__Content{min-height:100px}.NgxEditor_Wrapper ngx-editor .NgxEditor .NgxEditor__Content ul li{list-style:unset;position:relative;
813left:15px}.NgxEditor_Wrapper ngx-editor .NgxEditor .NgxEditor__Content ol li{list-style:auto;position:relative;left:15px}.character-limit{display:flex;justify-content:flex-end}.character-limit__over{color:#e22b25} 814`],encapsulation:2});let e=t;return e})(),vxe=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[ge,gS]});let e=t;return e})();var Cxe=(()=>{let t=class t{constructor(n,o,r){this.auth=n,this.document=o,this.isBrowser=!1,this.checkForceMFA=a=>{this.auth.requiresMfaSetup()&&(this.document.location.href="/myaat/login/mfa?destination="+encodeURIComponent(a))},Ct(r)&&(this.isBrowser=!0)}canActivate(n,o){let r=o.url;return this.auth.getCurrentUser().pipe(ot(1),J(a=>(this.checkForceMFA(r),!0)),he(a=>(this.navigateToLogin(r),Q(!1))))}navigateToLogin(n){this.isBrowser&&this.document.location.href.indexOf("myaat/logout")===-1&&(this.document.location.href="/myaat/login?destination="+encodeURIComponent(n))}};t.\u0275fac=function(o){return new(o||t)(Y(st),Y(ci),Y(gt))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),bxe=(()=>{let t=class t{constructor(n,o){this.auth=n,this.document=o}canActivate(n,o){return this.auth.getCurrentUser().pipe(ot(1),ht(r=>{if(!n.data.hasOwnProperty("groups"))return Q(!1);let a=n.data.groups;return this.isAllowed(a,r)?Q(!0):(this.document.location.href="/error/403",Q(!1))}))}isAllowed(n,o){let r=o["cognito:groups"];return!(!r||!r.length||!this.isGroupAllowed(r,n))}isGroupAllowed(n,o){return!!o.filter(r=>n.indexOf(r)>-1).length}};t.\u0275fac=function(o){return new(o||t)(Y(st),Y(ci))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var _xe=(()=>{let t=class t{constructor(n,o){this.auth=n,this.document=o,this.adminGroups=["admin","staff"]}canActivate(n,o){return this.auth.getCurrentUser().pipe(ot(1),ht(r=>{if(!n.data.hasOwnProperty("roles"))return Q(!1);let a=n.data.roles;return this.isAllowed(a,r)?Q(!0):(this.document.location.href="/error/403",Q(!1))}))}isAllowed(n,o){let r=o["custom:connection_type"],a=o["cognito:groups"];return this.isAdmin(a)?!0:!(!r||!r.length||!this.isRoleAllowed(r,n))}isRoleAllowed(n,o){return!!o.filter(r=>n.indexOf(r)>-1).length}isAdmin(n){return!!this.adminGroups.filter(o=>n.indexOf(o)>-1).length}};t.\u0275fac=function(o){return new(o||t)(Y(st),Y(ci))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),zse=(()=>{let t=class t{constructor(n,o,r){this.auth=n,this.router=o,this.featureFlagService=r,this.redirectUrl="",this.declarationPath=""}priorityDeclarationGuard(n){return this.redirectUrl=n,this.auth.getCurrentUser().pipe(ot(1),ht(o=>this.membershipRenewalCheck(o).pipe(ht(r=>r?this.scudCheck(o).pipe(J(a=>a?!0:(this.router.navigateByUrl(this.declarationPath),!1))):(this.router.navigateByUrl(this.declarationPath),Q(!1))))),he(o=>Q(!0)))}scudCheck(n){if(n&&n["cognito:groups"].includes("student")&&!n["cognito:groups"].includes("member")&&(!n["custom:membership_type"]||n["custom:is_lapsed"]===!0&&n["custom:membership_type"].includes("student"))&&n["custom:last_confirmed"]){let o=new Date,r=new Date(n["custom:last_confirmed"]);return Math.floor((o.getTime()-r.getTime())/(1e3*3600*24))>180&&this.redirectUrl!=="/my-account/confirm-details"?this.featureFlagService.isFeatureEnabled("ConfirmDetails").pipe(J(s=>s!==!1?(window.sessionStorage.setItem("redirect",this.redirectUrl),this.declarationPath="/my-account/confirm-details",!1):!0)):Q(!0)}return Q(!0)}membershipRenewalCheck(n){if(n&&n["custom:restricted_access"]){if(this.auth.requiresMfaSetup())return Q(!0);let o=window.sessionStorage.getItem("applicationCompleted");if(n["custom:restricted_access"]==="licence_renewal"&&o!=="LAD")return this.featureFlagService.isFeatureEnabled("LicenceRenewal").pipe(J(r=>r!==!1?(this.declarationPath="/registration/licence-renewal",!1):!0),he(()=>(this.declarationPath="/registration/licence-renewal",Q(!1))));if(n["custom:restricted_access"]==="membership_renewal"&&o!=="MembershipRenewal")return this.featureFlagService.isFeatureEnabled("MembershipRenewal").pipe(J(r=>r!==!1?(this.declarationPath="/registration/membership-renewal",!1):!0),he(()=>(this.declarationPath="/registration/membership-renewal",Q(!1))))}return Q(!0)}};t.\u0275fac=function(o){return new(o||t)(Y(st),Y(gi),Y(zs))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),yxe=(()=>{let t=class t{constructor(n){this.declarationGuardService=n,this.pathExceptions=["","/","/error/404","/my-account/confirm-details","/myaat/login","/myaat/logout","/registration/licence-renewal","/registration/licence-renewal/confirmation","/registration/membership-renewal","/registration/membership-renewal/confirmation"]}canActivateChild(n,o){return this.pathExceptions.includes(o.url.split("?")[0])?Q(!0):this.declarationGuardService.priorityDeclarationGuard(o.url)}};t.\u0275fac=function(o){return new(o||t)(Y(zse))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var wxe=(()=>{let t=class t{canDeactivate(n){return n.canDeactivate()?!0:window.confirm("WARNING: You have unsaved changes. Press Cancel to go back and save these changes, or OK to lose these changes.")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),xxe=(e,t)=>{let i=xe(ci),n=e.data.featureFlag,o=xe(st);return xe(zs).getFeature(n).pipe(ht(r=>!r||r.enabled?Q(!0):o.getCurrentUser().pipe(ot(1),ht(a=>{let s=["admin","staff","third-party-partner"];return a["cognito:groups"].some(c=>s.includes(c))?(alert("This service is currently disabled for all non AAT staff or trusted third-party users"),Q(!0)):(r.redirectTo&&t.url!==r.redirectTo&&(i.location.href=r.redirectTo??"/myaat/dashboards"),Q(!1))}),he(()=>(i.location.href=r.redirectTo??"/myaat/dashboards",Q(!1))))),he(r=>(console.error("Error reading configuration:",r),Q(!0))))},Sxe=(()=>{let t=class t{constructor(n,o){this.router=n,this.featureFlagService=o}canActivate(n,o){return pt(this,null,function*(){if(!(yield rv(this.featureFlagService.isFeatureEnabled("L4PATB"))))return!0;try{let a=this.getCentre();return!(a.financialStop||a.currentL3SanctionsOrAbove)}catch(a){return console.error("Error fetching training provider for financial/sanction stop check",a),!0}})}getCentre(){let n=sessionStorage.getItem("centre");
814if(!n)throw new Error("No centre information found in session storage");return JSON.parse(n)}};t.\u0275fac=function(o){return new(o||t)(Y(gi),Y(zs))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),kxe=(()=>{let t=class t{constructor(n,o,r,a,s,l,c,h,m,f){this.document=n,this.footerContentService=o,this.authService=r,this.cdRef=a,this.headerService=s,this.cmsContentService=l,this.router=c,this.route=h,this.platformId=m,this.config=f,this.layoutSetup=xe(Vp),this.loggedInNavContentService=xe(A0),this.rumService=xe(ES),this.isUserAuth=!1,this.khLeftNavData=this.loggedInNavContentService.khLeftNavData,this.navOpened=!1,this.rightPaneOpened$=this.headerService.rightPaneOpened$,this.header={showLeftNav:this.layoutSetup.layoutProperties.showLeftNav,showBreadcrumbs:!1,userLinks:{loginLink:{label:"Log in",link:"/myaat/login"},registerLink:{label:"Register",link:"/registration/register-with-aat"}}},this.loggedInUserData={menuItems:[{title:"Profile and account",link:"/myaat/aabddhorss"},{title:"Edit my details",link:"/my-account/edit-details"},{title:"Pay outstanding fees",link:"/my-account/pay-fees"},{title:"My payment history",link:"/my-account/payment-history"}]},this.router.events.pipe(zc(b=>b instanceof Ia),J(()=>this.route.snapshot),J(b=>{for(;b.firstChild;)b=b.firstChild;return b})).subscribe(b=>{this.rumService.recordPageView(Koe(this.router.url)),this.notifications=void 0,b.data.notificationLocation&&this.cmsContentService.getNotifications(b.data.notificationLocation).subscribe({next:_=>{this.notifications=_},error:_=>{_.status!==404&&console.error(_)}})})}ngOnInit(){this.setupHeader(),this.authService.authenticationChanged$.subscribe(n=>{this.isUserAuth=n,this.layoutSetup.layoutProperties.showLeftNav&&this.isUserAuth?this.loggedInNavContentService.getLoggedInNavContent().subscribe({next:o=>{this._configureTags(),this.khLeftNavData=o},error:o=>{this._configureTags(),console.log(o)}}):this._configureTags()}),this.authService.userLoggedOut$.subscribe(n=>{n&&(this.document.location.href=this.layoutSetup.layoutProperties.logoutRedirect)}),this.footerContent=this.footerContentService.getFooterContent(),this.searchContent={siteBaseUrl:this.layoutSetup.layoutProperties.siteBaseUrl}}onNavIsOpened(n){this.navOpened=n&&this.isUserAuth}setupHeader(){this.layoutSetup.layoutProperties.headerLinks=this.layoutSetup.layoutProperties.headerLinks?this.layoutSetup.layoutProperties.headerLinks:this.setUpLinks()}setUpLinks(){return[{link:"/career-in-finance",label:"Career in finance",active:!1,isRouterLink:!1},{link:"/qualifications-and-courses",label:"Qualifications and courses",active:!1,isRouterLink:!1},{link:"/apprenticeships",label:"Apprenticeships",active:!1,isRouterLink:!1},{link:"/membership",label:"Membership",active:!1,isRouterLink:!1},{link:"/businesses-employers",label:"Businesses and employers",active:!1,isRouterLink:!1},{link:"/about",label:"About AAT",active:!1,isRouterLink:!1}]}ngAfterViewChecked(){this.cdRef.detectChanges()}_configureTags(){if(Ct(this.platformId)){let n=this.document.createElement("script");n.type="text/javascript",n.src=this.layoutSetup.layoutProperties.abTasty,n.async=!0,this.document.head.insertBefore(n,this.document.head.firstChild);let o=this.document.createElement("script");o.src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",o.type="text/javascript",o.charset="UTF-8",o.setAttribute("data-domain-script",this.layoutSetup.layoutProperties.oneTrust),window.__onRumConsent=s=>{let l=ES.hasAnalyticsConsent(s);this.rumService.rum?this.rumService.updateCookieConsent(l):this.rumService.init(this.layoutSetup.layoutProperties.rum,l)};let r=this.document.createElement("script");r.type="text/javascript",r.text='function OptanonWrapper() { if (window.__onRumConsent) { window.__onRumConsent(window.OnetrustActiveGroups || ""); } }',this.document.head.appendChild(o),this.document.head.appendChild(r);let a=this.document.createElement("script");a.src=`//js-eu1.hs-scripts.com/${this.layoutSetup.layoutProperties.hsId}.js`,a.type="text/javascript",a.defer=!0,a.async=!0,a.id="hs-script-loader",this.document.head.appendChild(a)}}};t.\u0275fac=function(o){return new(o||t)(O(ci),O(O0),O(st),O(Ii),O(js),O(ya),O(gi),O(Uo),O(gt),O("fabricServicesConfig"))},t.\u0275cmp=U({type:t,selectors:[["app-full-layout"]],standalone:!1,decls:12,vars:13,consts:[[1,"layout-wrapper",3,"ngClass"],[3,"content"],[1,"header2",3,"fab-gtm"],[1,"main-panel"],[1,"main-content"],[1,"content-wrapper"],[1,"container-fluid"],[3,"isNotificationOpen","notification"],[3,"navIsOpened","content"]],template:function(o,r){o&1&&(p(0,"div",0),N(1,"async"),y(2,
814soe,1,1,"fab-logged-in-nav",1),y(3,loe,1,1,"fab-header",2),p(4,"div",3)(5,"div",4)(6,"div",5)(7,"div",6),X(8,coe,1,2,"fab-notification",7,se),x(10,"router-outlet"),u()(),y(11,doe,1,1,"fab-footer",1),u()()()),o&2&&(v("ngClass",vv(6,aoe,r.isUserAuth,r.navOpened,!r.navOpened,!r.layoutSetup.layoutProperties.showLeftNav,r.layoutSetup.layoutProperties.showLeftNav,G(1,4,r.rightPaneOpened$))),d(2),w(r.layoutSetup.layoutProperties.showLeftNav&&r.isUserAuth?2:-1),d(),w(r.layoutSetup.layoutProperties.showHeader?3:-1),d(5),ee(r.notifications),d(3),w(r.layoutSetup.layoutProperties.showFooter?11:-1))},dependencies:[hse,tse,bse,hh,Ce,Lse,Gs,zi],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.layout-wrapper{display:flex;flex-direction:column;max-width:100%}.layout-wrapper .cookie-banner-margin{background-color:#31373e;padding-bottom:164px}@media (min-width: 992px){.layout-wrapper .cookie-banner-margin{padding-bottom:153px}}@media (min-width: 1200px){.layout-wrapper .cookie-banner-margin{padding-bottom:135px}}.layout-wrapper.right-pane-opened{margin-left:-260px;margin-right:260px}@media (min-width: 992px){.layout-wrapper.right-pane-opened{margin-left:0;margin-right:0}}.layout-wrapper.nav-opened.show-left-nav.user-logged-in .main-panel .main-content{padding-left:0}@media (min-width: 992px){.layout-wrapper.nav-opened.show-left-nav.user-logged-in .main-panel .main-content{padding-left:260px}}.layout-wrapper.nav-collapsed.show-left-nav.user-logged-in .main-panel .main-content{padding-left:0}@media (min-width: 992px){.layout-wrapper.nav-collapsed.show-left-nav.user-logged-in .main-panel .main-content{padding-left:68px}}.main-panel div .footer{border-top:1px solid #e7e7e7}.container-fluid{padding-left:0;padding-right:0}.header2,.header2 *{box-sizing:content-box}.header2{width:100%;z-index:1000;background-color:#fff;position:sticky;max-height:180px;max-width:100vw;top:0} 815`],encapsulation:2});let e=t;return e})(),Exe=(()=>{let t=class t{static forRoot(n){return{ngModule:t,providers:[O0,A0,Vp,{provide:"FullLayoutConfig",useValue:n}]}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({imports:[gse,ME,nse,_se,EE,At,ge,Nse,Ec]});let e=t;return e})(),In=(function(e){return e[e.TrainingProvider=0]="TrainingProvider",e[e.Employer=1]="Employer",e})(In||{}),Tc=(()=>{let t=class t{get type(){return this._type}constructor(n,o,r,a){this.authService=n,this.http=o,this.contactService=r,this.config=a,this._type=In.TrainingProvider,this._changeOrg=new Ze(null),this.changeOrg$=this._changeOrg.asObservable(),this.roles=[],this.allowedQuals=[],this.adminRoles=["admin","staff"],this.httpOptions={headers:new bt({"Content-Type":"application/json"})},this.isAdmin=()=>this.contactService.contactGroups()?.some(s=>this.adminRoles.includes(s))}setOrganisation(n,o,r){this.organisation=n,this.roles=o,this.allowedQuals=r,this._changeOrg.next(n)}filter(n){return this.http.post(this.config.environment.API_URL+"/payment-code/filter/"+this.organisation.organisationId,B({organisationId:this.organisation.organisationId},n),this.httpOptions).pipe(J(o=>(o&&o.Items&&(o.Items=o.Items.map(r=>ye(B({},r),{allocated:r.allocated||!1}))),o)))}create(n){return this.authService.getCurrentUser().pipe(ot(1),ht(o=>this.http.post(this.config.environment.API_URL+"/payment-code/batch/"+this.organisation.organisationId,B({organisationId:this.organisation.organisationId,requestedBy:o["custom:contact_id"],employer:this._type===In.Employer},n),this.httpOptions).pipe(J(r=>(r&&r.Items&&(r.Items=r.Items.map(a=>B({allocated:!1},a))),r)))))}allocate(n){return this.authService.getCurrentUser().pipe(ot(1),ht(o=>this.http.patch(this.config.environment.API_URL+"/payment-code/allocate/"+this.organisation.organisationId,n.map(r=>B({requestedBy:o["custom:contact_id"]},r)),this.httpOptions)))}getCsv(n){let o={headers:{"Content-Type":"text/csv",Accept:"text/csv"},observe:"response",responseType:"blob"};return this.http.post(`${this.config.environment.API_URL}/document-generation/csv/paymentcodes/${this.organisation.organisationId}`,JSON.stringify(B({organisationId:this.organisation.organisationId,type:this._type===In.Employer?"employer":"training provider"},n)),o)}setType(n){this._type=n}dynamicWording(n,o){return this._type===In.Employer?o:n}};t.\u0275fac=function(o){return new(o||t)(Y(st),Y(lt),Y(No),Y("fabricServicesConfig"))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Bse=(()=>{let t=class t{constructor(n,o,r,a,s){this.paymentCodesService=n,this.route=o,this.router=r,this.programmeComponentService=a,this.authService=s,this.OrganisationPickerType=ut,this.PaymentCodeType=In,this.allowedRoles={[In.TrainingProvider]:["TP Main Contact","Exams Officer","Tutor"],[In.Employer]:["Employer Payment Code Contact"]},this.isLoadingOrgPicker=!0,this.hasAccess=!1,this.isAdmin=!1,this.tabIndex=0,this._subscriptions=[],this.standardHeroData={title:"Payment c
815odes",expanded:!1,toplineLink:void 0,authorline:void 0,sponsorshipDetails:void 0,isContentDetail:!1,isContentArticle:!1,align:"left"},this.tabsBlock={title:"",imagePosition:"right",hideContent:!0,tabData:[{name:"Unset",path:"view"}]}}ngOnInit(){this._subscriptions.push(this.route.data.subscribe(o=>{this.type=o.paymentCodeType,this.paymentCodesService.setType(this.type)}));let n=this.route.routeConfig?.children?.filter(o=>!!o.data?.title&&!!o.data?.tabTitle)??[];this.tabsBlock.tabData=n.map(o=>({name:o.data?.tabTitle,path:o.path})),this.tabsBlock&&(this._subscriptions.push(this.router.events.subscribe(o=>{if(o instanceof Ia||o instanceof Tv&&o.routerEvent instanceof Ia&&this.route.snapshot.firstChild){let r=this.route.snapshot.firstChild;r&&this.tabsBlock.tabData&&(this.tabIndex=this.tabsBlock.tabData.findIndex(a=>a.path===r.url[0].path),this._currentTabPath=r.routeConfig?.path,this._checkAccess(),this.standardHeroData.title=r.data.title,this.standardHeroData.content=r.data.content)}})),this._subscriptions.push(this.authService.logoutInitiated$.subscribe(()=>{this.hasAccess||this.authService.logout().subscribe()})))}ngOnDestroy(){this._subscriptions.forEach(n=>n.unsubscribe())}changeOrganisation(n){if(!n.length)return;let o=n[0],r=o.role?o.role.split(", "):[],a=this.programmeComponentService.getProgrammesByOrganizationId(o.organisationId);this.type===In.Employer&&(a=this.programmeComponentService.getProgrammesByIndex("componentTypeName","Level")),a.subscribe({next:s=>{(!s||!Array.isArray(s))&&(s=[]),this.paymentCodesService.setOrganisation(o,r,s)},error:s=>{this.paymentCodesService.setOrganisation(o,r,[])}}).add(()=>{this._checkAccess(),this.isLoadingOrgPicker=!1})}changeActiveTab(n){this.router.navigate([`${n}`],{relativeTo:this.route}).then(o=>{o===!1&&setTimeout(()=>{let r=this.route.snapshot.firstChild;r&&this.tabsBlock.tabData&&(this.tabIndex=this.tabsBlock.tabData.findIndex(a=>a.path===r.url[0].path))},0)})}_checkAccess(){let n=this.paymentCodesService.organisation&&!this.paymentCodesService.organisation.currentL3SanctionsOrAbove&&!this.paymentCodesService.organisation.financialStop,o=this.type===In.Employer||this.paymentCodesService.allowedQuals.length>0,r=this.paymentCodesService.isAdmin()&&this._currentTabPath!=="create"||this.paymentCodesService.roles.some(a=>this.allowedRoles[this.type].includes(a));this.hasAccess=n&&o&&r}};t.\u0275fac=function(o){return new(o||t)(O(Tc),O(Uo),O(gi),O(pE),O(st))},t.\u0275cmp=U({type:t,selectors:[["fab-payment-codes"]],standalone:!1,decls:14,vars:9,consts:[[1,"payment-codes"],[3,"content"],[1,"payment-codes__org-picker",3,"ngClass"],[3,"staffCanChangeType","type","allowOrgChange"],[1,"container-fluid"],[1,"row"],[1,"col-lg-6","col-lg-offset-3","col-md-8","col-md-offset-2","col-xs-12"],[1,"payment-codes__container"],[3,"changeActiveTab","indexChange","content","index"],[1,"view-page"],[3,"orgChange","staffCanChangeType","type","allowOrgChange"],["href","/about/help-and-support/answers-for-training-providers"]],template:function(o,r){if(o&1&&(p(0,"div",0)(1,"fab-standard-hero",1),y(2,poe,1,0,"fab-loader"),p(3,"div",2),y(4,hoe,1,3,"fab-organisation-picker",3)(5,goe,1,3,"fab-organisation-picker",3),u()(),p(6,"div",4)(7,"div",5)(8,"div",6)(9,"div",7)(10,"fab-tabs-block",8),T("changeActiveTab",function(s){return r.changeActiveTab(s)}),Jt("indexChange",function(s){return Qt(r.tabIndex,s)||(r.tabIndex=s),s}),u(),y(11,moe,1,0,"fab-loader")(12,foe,1,0,"router-outlet")(13,voe,8,2,"div",9),u()()()()()),o&2){let a;d(),v("content",r.standardHeroData),d(),w(r.isLoadingOrgPicker?2:-1),d(),v("ngClass",z(7,uoe,r.isLoadingOrgPicker)),d(),w((a=r.type)===r.PaymentCodeType.Employer?4:a===r.PaymentCodeType.TrainingProvider?5:-1),d(6),v("content",r.tabsBlock),Kt("index",r.tabIndex),d(),w(r.isLoadingOrgPicker?11:r.hasAccess?12:13)}},dependencies:[Ce,hh,Zae,Ose,Vo,DE],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.payment-codes--hidden{display:none!important}.payment-codes__org-picker .organisation-picker{margin-top:30px;border:1px solid rgb(34.425,34.425,34.425);background-color:inherit;position:relative;z-index:200}.payment-codes__org-picker .admin-select input{background-color:#fff;border:none}.payment-codes__org-picker .admin-select li:first-child,.payment-codes__org-picker .admin-select ul:hover li:hover{background-color:#f9f9f9}.payment-codes .standard-hero{background-color:#e6e6e6}.payment-codes__container{background-color:#fff;border-style:solid;border-width:thin;border-color:#e6e6e6;border-radius:2px;margin:10px;padding:0 10px 10px}@media (min-width: 992px){.payment-codes__container{margin:20px;padding:0 25px 25px}}@media (min-width: 1200px){.payment-codes__container{margin:10px}}.payment-codes .container-fluid{padding-left:0;padding-right:0}.payment-codes .tabs-block__tabs{border-top:0;border-bottom:0;font-size:.8em;font-weight:600;color:#00ab4e;margin:-10px 0 20px}.payment-codes .tabs-block__tabs--tab{padding:10px;margin-right:30px}.payment-codes .tabs-block__tabs .tab-selected{color:#0a5c50;border-bottom:4px solid #0a5c50}.main-panel{background-color:#f9f9f9;max-height:initial;height:initial} 816`],encapsulation:2});let e=t;return e})(),Op=(()=>{let t=class t{constructor(n,o){this.paymentCodesService=n,this._datePipe=o,this.sortChanged=new L,this.modalOpen=!1,this.confirmCsvButtonEnabled=!1,this.rowData=[],this.isLoading=!0,this.showAllocationError=!1,this.modifiedRows=[],this.disableGoToLastPage=!0,this.downloadButton={text:"Download results (CSV)",action:{type:"callback",callback:()=>{this.modalOpen=!0}},type:"primary",aria:"Download results (CSV)"},this.confirmDownloadButton={text:"Download CSV",action:{type:"callback",callback:()=>{this.modalOpen=!1,this.confirmCsvButtonEnabled=!1,this.downloadAll()}},type:"primary",aria:"Download CSV"}
816,this.confirmCsvCheckBox={id:"confirm-csv",label:"I acknowledge and accept these terms"},this.saveAllocationsButton={text:"Save allocation changes",action:{type:"callback",callback:this._saveAllocationChanges.bind(this)},type:"primary",aria:"Save allocation changes"},this.columnDefs=[{field:"allocated",headerName:"Allocated",resizable:!1,editable:!0,width:100,minWidth:100,maxWidth:100,cellRenderer:Dse,cellRendererParams:r=>({isDisabled:["Used","Used Sent To CRM"].includes(r.data?.status),editValue:!0})},{field:"paymentCode",headerName:"Payment code",minWidth:125,width:130},{field:"startDate",headerName:"Date created",sort:"desc",sortable:!0,minWidth:120,valueFormatter:r=>this._datePipe.transform(r.value,"dd MMM yyyy")??""},{field:"poNumber",headerName:"PO number",minWidth:60},{field:"status",headerName:"Status",minWidth:116,valueFormatter:r=>{if(r.value)switch(r.value){case"Active":return"Ready to use";case"Awaiting Activation":return"Pending";case"Used Sent To CRM":return"Used";default:return r.value}}},{field:"dateUsed",headerName:"Date used",minWidth:120,sortable:!0,valueFormatter:r=>this._datePipe.transform(r.value,"dd MMM yyyy")??""},{headerName:"Student name",field:"studentName",minWidth:150,valueFormatter:r=>{if(r.value){let a=`${r.value?.givenName} ${r.value?.familyName}`;return r.data?.memberId&&(a+=` (${r.data.memberId})`),a}return""}},{field:"qualificationName",headerName:"Qualification",minWidth:150},{field:"",headerName:"Email",minWidth:70,width:70,resizable:!1,cellRenderer:Pse,cellRendererParams:r=>({customHtml:'<i class="icon-email" title="Email payment code"></i>',onClick:a=>{a.node.setDataValue("allocated",!0),window.location.href=this._generateMailLink(a)},isDisabled:["Used","Used Sent To CRM"].includes(r.data?.status)})}],this.defaultColDef={resizable:!0,sortable:!1,suppressMovable:!0,wrapHeaderText:!0},this.gridOptions={pagination:!0,paginationPageSize:10,paginationPageSizeSelector:[10,20,50,100],cacheBlockSize:50,loadingOverlayComponent:Rse,overlayNoRowsTemplate:"<p>Sorry, there are no results to show. Please try amending or clearing the filters you've applied and/or check the search terms you've input.</p>",sortingOrder:["asc","desc"],enableCellTextSelection:!0,suppressRowDeselection:!0,unSortIcon:!0,onSortChanged:r=>{this.sortChanged.emit(r)}}}ngOnInit(){this.columnsToDisplay?.length&&(this.columnDefs=this.columnDefs.filter(n=>this.columnsToDisplay.includes(n.headerName)))}ngAfterViewInit(){this.elementObserver()}ngOnChanges(n){this.isLoading=!0,setTimeout(()=>{this.init()},0)}elementObserver(){new ResizeObserver(()=>{this.table?.agGrid.api.sizeColumnsToFit()}).observe(this.resultsElement.nativeElement)}init(){this._lastEvaluatedKeys={},this.downloadButton.text=this.downloadButtonText,this.initialData?(this.gridOptions.rowModelType="clientSide",this.rowData=this.initialData):(this.gridOptions.rowModelType="infinite",this.gridOptions.datasource={rowCount:void 0,getRows:this.getRows.bind(this)}),this.isLoading=!1}getRows(n){this.table.agGrid.api.showLoadingOverlay(),this.filters.sortField=n.sortModel[0].colId,this.filters.sortOrder=n.sortModel[0].sort;let o=this.filters.sortField+this.filters.sortOrder;this.filters.sortField==="dateUsed"&&(this.filters.status=["used"]);let r=ye(B({},this.filters),{size:50,LastEvaluatedKey:this._lastEvaluatedKeys[o+n.startRow]}),a=performance.now();this.paymentCodesService.filter(r).subscribe({next:s=>{if(dataLayer.push({event:"payment_code_view_load_time",timeInMs:Math.round(performance.now()-a)}),s&&s.Items){let l=s.TotalCount;s.LastEvaluatedKey?(this._lastEvaluatedKeys[o+n.endRow]=s.LastEvaluatedKey,this.disableGoToLastPage=!0):(l=n.startRow+s.Items.length,this.disableGoToLastPage=!1),n.successCallback(s.Items,l),this.table.agGrid.api.hideOverlay()}else n.failCallback(),this.table.agGrid.api.showNoRowsOverlay()},error:s=>{dataLayer.push({event:"payment_code_view_load_time",timeInMs:Math.round(performance.now()-a)}),n.failCallback(),this.table.agGrid.api.showNoRowsOverlay()}})}closeDialog(){this.modalOpen=!1,this.confirmCsvButtonEnabled=!1}confirmCsvDownloadCheck(){this.confirmCsvButtonEnabled=!0}downloadAll(){this.downloadButton.text="Downloading...",this.downloadButton.glyph={icon:fr.LOOP2,glyphAnimation:"spin"},this.paymentCodesService.getCsv(this.filters).pipe(Zs(()=>{this.downloadButton.glyph=null,this.downloadButton.text=this.downloadButtonText}),ot(1)).subscribe({next:n=>{let o=`AAT payment codes ${this.paymentCodesService.organisation.name} ${this._datePipe.transform(new Date,Foe)}.csv`,r=window.URL.createObjectURL(n.body),a=document.createElement("a");a.href=r,a.download=o,a.click()},error:n=>{console.error(n)}}).add(()=>{this.downloadButton.text=this.downloadButtonText,this.downloadButton.glyph=null}),dataLayer.push({event:"payment_code_csv_export"})}onCellValueChanged(n){let o=this.modifiedRows.findIndex(r=>r.paymentCodeId===n.data.paymentCodeId);o>-1?this.modifiedRows.splice(o,1):this.modifiedRows.push({paymentCodeId:n.data.paymentCodeId,allocated:n.newValue})}_saveAllocationChanges(){if(!this.modifiedRows.length)return;this.saveAllocationsButton.text="Saving changes...",this.saveAllocationsButton.glyph={icon:fr.LOOP2,glyphAnimation:"spin"},this.showAllocationError=!1;let n=()=>{this.showAllocationError=!0};this.paymentCodesService.allocate(this.modifiedRows).subscribe({next:o=>{Array.isArray(o)&&o.length===this.modifiedRows.length?this.modifiedRows=[]:n()},error:n}).add(()=>{this.saveAllocationsButton.text="Save allocation changes",this.saveAllocationsButton.glyph=null}),dataLayer.push({event:"payment_code_save_allocation"})}_generateMailLink(n){dataLayer.push({event:"payment_code_email"});let o="Your AAT payment code",r="%0D%0A%0D%0A",a="%0D%0A",s="%20%20%20%20%E2%80%A2",l="%20%20",c=encodeURIComponent(this.paymentCodesService.organisation.name),h=e
816ncodeURIComponent(this.paymentCodesService.organisation.accountNumber),m=n.data?.finishDate?this._datePipe.transform(n.data.finishDate,"dd/MM/yyyy"):"Not available",f=`Hello,${r}Please find your payment code details below to pay for your qualification.${r}`,b=`${s}${l}Payment code: ${n.data?.paymentCode}${a}${s}${l}${this.paymentCodesService.dynamicWording("Training provider","Employer")}: ${c}${a}${this.paymentCodesService.dynamicWording("",`${s}${l}Employer ID: ${h}${a}`)}${s}${l}Expiry date: ${m}${r}`,_=`Please read below for guidance on using your payment code.${r}`,S=`${s}${l}Payment codes are used to pay to register for AAT qualifications.${a}${s}${l}To use your code, select "Payment code" at the payment step of your registration.${a}${s}${l}The payment code must be inserted in the same format as above - note that they are case sensitive.${a}${s}${l}The payment code must match the name of the ${this.paymentCodesService.dynamicWording("college or training provider","employer")} who provided your code.${a}${s}${l}A payment code can only be used once.${a}${s}${l}If you're registering for more than one qualification, you'll need a payment code for each qualification and will need to complete a separate registration for each one.`,M=f+b+_+S;return`mailto:?subject=${o}&body=${M}`}};t.\u0275fac=function(o){return new(o||t)(O(Tc),O(tn))},t.\u0275cmp=U({type:t,selectors:[["app-results"]],viewQuery:function(o,r){if(o&1&&(Ue(Coe,5),Ue(boe,5)),o&2){let a;Me(a=Te())&&(r.resultsElement=a.first),Me(a=Te())&&(r.table=a.first)}},inputs:{heading:"heading",downloadButtonText:"downloadButtonText",initialData:"initialData",filters:"filters",columnsToDisplay:"columnsToDisplay"},outputs:{sortChanged:"sortChanged"},standalone:!1,features:[Ye],decls:6,vars:3,consts:[["results",""],["table",""],[1,"results"],[3,"modalClose","isModalOpened"],[1,"modal__content"],["href","/policies/terms-conditions-aat-systems-training-providers","target","_blank"],[3,"onChange","isCheckedChange","content","isChecked"],[3,"enabled","button"],[1,"results__title"],[1,"results__help-text"],[1,"icon","icon-warning"],[3,"cellValueChanged","columnDefs","defaultColDef","rowData","gridOptions","ngClass"],[1,"results__allocation-button"],[1,"results__allocation-button--error"]],template:function(o,r){if(o&1){let a=P();p(0,"div",2,0)(2,"fab-modal",3),T("modalClose",function(){return k(a),E(r.closeDialog())}),y(3,yoe,9,4,"div",4),u(),y(4,xoe,14,13)(5,Soe,1,0,"fab-loader"),u()}o&2&&(d(2),v("isModalOpened",r.modalOpen),d(),w(r.modalOpen?3:-1),d(),w(r.isLoading?5:4))},dependencies:[Ce,Vo,Gp,Ee,Ise,Dp],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.results .modal-open .modal{display:block}.results .modal__content{padding:20px;overflow:auto;max-height:calc(100vh - 200px)}.results__title{display:flex;width:100%;justify-content:space-between;flex-wrap:wrap;margin-bottom:10px}.results__allocation-button{text-align:end;margin-top:5px}.results__allocation-button--error{color:#e22b25;text-align:center;font-size:14px;margin-top:10px}.results__help-text{display:flex;align-items:center}.results__help-text i{margin-right:15px;color:#fac05c}.results fab-table .button-renderer__custom-html{text-decoration:none;font-size:24px}.results fab-table .button-renderer__custom-html.disabled{color:#dfdfdf;cursor:default}.results fab-table checkbox-renderer input:disabled~label{opacity:.5}.results fab-table.disable-paginate-last .ag-paging-button:last-of-type{color:#181d1f80;pointer-events:none} 817`],encapsulation:2});let e=t;return e})(),Vse={id:"poNumber",label:"Filter by PO number",required:!1,codeType:"NoValidation",hideValidation:!0},LS={placeholder:"Select",hideButtons:!0,options:[{title:"Status",options:[{label:"Ready to use",value:"active"},{label:"Pending",value:"awaiting activation"},{label:"Used",value:"used"}]},{title:"Allocated",options:[{label:"Allocated",value:"allocated"},{label:"Not allocated",value:"not allocated"}]}]},Hse={placeholder:"Select",allSelected:"Select all qualifications",validationDisabled:!0,options:[]},Gse={text:"Apply filters",type:"primary",aria:"Apply filters",action:{type:"callback",callback:()=>{}}},Use=(()=>{let t=class t{constructor(n,o,r,a,s){this.paymentCodesService=n,this.router=o,this.activatedRoute=r,this.contactSearchService=a,this.authService=s,this.filtersApplied=!1,this.poNumberInputControl=new Xt,this.appliedFilters={},this.selectedFilters={},this.hasUnsavedChanges=!1,this.poNumberInput=Vse,this.statusFilterDropdown=JSON.parse(JSON.stringify(LS)),this.qualsFilterDropdown=Hse,this.applyFiltersButton=Gse,this._preventDoubleConfirmation=!1,this.todayDate=new Date,this.paymentCodesService.type===In.Employer?this.contactSearchService.serviceRoot="payment-code":this.contactSearchService.serviceRoot="programme-registration",this.studentPickerConfig={service:this.contactSearchService,errorMessage:`We can't find any results for this student at your ${n.dynamicWording("centre","employer")}. Please double check you've entered the correct ${n.dynamicWording("name or ID","name")}.`,showError:!0},this.applyFiltersButton.action.callback=this.applyFilters.bind(this)}ngOnInit(){this.paymentCodesService.changeOrg$.subscribe(n=>{this.contactSearchService.organisationId=n.organisationId,this.qualsFilterDropdown.options=this.paymentCodesService.allowedQuals.filter(o=>!["2016","Access"].includes(o.qualificationStandardName)&&!o.apprenticeshipQualification&&o.localCode!=="L2FDAB1").map(o=>({label:`${o.name}${o.qualificationStandardName?` (${o.qualificationStandardName})`:""}`,value:o.topLevelComponentId})),this.resetFilters()}),this._logoutSubscription=this.authService.logoutInitiated$.subscribe(n=>{n&&this.canDeactivate()&&(this._preventDoubleConfirmation=!0,this.authService.logout().subscribe())})}ngOnDestroy(){this._logoutSubscription?.unsubscribe()}canDeactivate(){return this.resultsComponent?.modifiedRows.length&&!this._preventDoubleConfirmation?window.confirm("WARNING: You have unsaved changes. Press Cancel to go back and save these changes, or OK to lose these changes."):!0}onPresetRangeSelection(n,o){let r=new Date;switch(n){case"days":r.setDate(this.todayDate.getDate()-(o>0?o-1:o)),r.setUTCHours(0,0,0,0),this.dateChanged([r,this.todayDate]);break;case"thisMonth":let a=new Date(r.getFullYear(),r.getMonth(),1);this.dateChanged([a,this.todayDate]);break;case"lastMonth":let s=new Date(r.getFullYear(),r.getMonth()-1,1),l=new Date(r.getFullYear(),r.getMonth(),0);this.dateChanged([s,l]);break}this._datePicker&&(this._datePicker.overlayVisible=!1)}dateChanged(n){if(!n?.[0])return;this.dateSelection=n;let o=new Date(this.dateSelection[0]);o.setUTCHours(0,0,0,0);let r=this.dateSelection[1]?new Date(this.dateSelection[1]):new Date(this.dateSelection[0]);r.setUTCHours(23,59,59,999),this.selectedFilters.startDate={from:o.toISOString(),to:r.toISOString()},this.filtersApplied=!0}applyFilters(){this.appliedFilters=B({},this.selectedFilters),dataLayer.push({event:"payment_code_filters_applied",studentNameOrNumber:!!this.appliedFilters.usedBy?.length,poNumber:!!this.appliedFilters.poNumber,paymentCodeStatus:this.appliedFilters.status||"not selected",allocationStatus:this.appliedFilters.allocated!==void 0?this.appliedFilters.allocated?"allocated":"not allocated":"not selected",createDate:!!this.appliedFilters.startDate,qualification:this.appliedFilters.qualificationIds?.length?this.appliedFilters.qualificationIds.map(n=>this.qualsFilterDropdown.options.find(o=>o.value===n)?.label):"not selected"})}onResetClick(){this.resetFilters(),dataLayer.push({event:"payment_code_filter_reset"})}resetFilters(){this.appliedFilters={},this.selectedFilters={},this.filtersApplied=!1,this.studentPickerConfig=Object.assign({},this.studentPickerConfig),this.poNumberInputControl.setValue(void 0),this.statusFilterDropdown=JSON.parse(JSON.stringify(LS)),this.dateSelection=null,this.qualsFilterDropdown.options.forEach(n=>
817{n.selected=!1}),this.qualsFilterDropdown=Object.assign({},this.qualsFilterDropdown)}onStudentPickerChange(n){this.selectedFilters.usedBy=n.map(o=>o.contactId),this.filtersApplied=!0}onPoNumberChange(){this.selectedFilters.poNumber=this.poNumberInputControl.value,this.filtersApplied=!0}onQualsChange(n){this.selectedFilters.qualificationIds=n.map(o=>o.value),this.filtersApplied=!0}getSelectedStatusOptions(n){this.selectedFilters.status=n.filter(a=>!a.includes("allocated"));let o=n.some(a=>a==="allocated"),r=n.some(a=>a==="not allocated");this.selectedFilters.allocated=o&&r||!o&&!r?void 0:!!o,this.filtersApplied=!0}onSortChanged(n){let o=n.columns?.[0]?.getColId();o==="dateUsed"&&(this.statusFilterDropdown.options[0].options.forEach((r,a)=>r.selected=a===2),this.statusFilterDropdown=B({},this.statusFilterDropdown),this.getSelectedStatusOptions(["used"])),dataLayer.push({event:"payment_code_sort",sortType:o})}findOutMore(){dataLayer.push({event:"payment_code_find_out_more_click"}),this.router.navigate(["../guidance"],{relativeTo:this.activatedRoute})}};t.\u0275fac=function(o){return new(o||t)(O(Tc),O(gi),O(Uo),O(tre),O(st))},t.\u0275cmp=U({type:t,selectors:[["app-view"]],viewQuery:function(o,r){if(o&1&&(Ue(Op,5),Ue(Da,5)),o&2){let a;Me(a=Te())&&(r.resultsComponent=a.first),Me(a=Te())&&(r._datePicker=a.first)}},hostBindings:function(o,r){o&1&&T("beforeunload",function(){return r.canDeactivate()},yr)},standalone:!1,decls:64,vars:19,consts:[["studentPicker",""],["datePicker",""],["buttonbar",""],[1,"view-page"],[1,"view-page__intro"],[3,"click"],["href","/policies/terms-conditions-aat-systems","target","_blank"],[1,"view-page__filters"],[1,"view-page__filters--heading"],[1,"row"],[1,"col-sm-6","col-xs-12"],[1,"view-page__filters--filter-box"],[3,"onChange","config"],[1,"suggestions__option",3,"selected"],[1,"view-page__filters--filter-box-text"],[3,"keyup","content","formControl"],[3,"outputReturnSelectedOptions","content"],[1,"mt-5","sm:px-[10px]","w-full","sm:w-1/2"],["for","date_range_selection",1,"text-sm"],["placeholder","dd/mm/yyyy","size","small","dateFormat","dd/mm/yy","inputId","date_range_selection","data-auto","dateRangeSelection","selectionMode","range","fluid","",1,"mt-1",3,"ngModelChange","ngModel","showIcon","showOnFocus","showButtonBar","maxDate"],[1,"col-xs-12"],[1,"view-page__filters--apply-reset"],[1,"view-page__results"],["heading","Your results","downloadButtonText","Export payment codes (CSV)",3,"sortChanged","filters"],[1,"suggestions__option",3,"mousedown"],[3,"innerHTML"],[1,"flex","flex-col","gap-2","w-full"],[1,"flex","justify-end"],["size","small","label","Clear dates","severity","danger","variant","outlined",1,"w-3/7",3,"click"],[1,"flex","justify-end","w-full"],["size","small","label","Today","data-auto","todayButton",1,"w-3/7",3,"click"],[1,"flex","justify-between","w-full"],["size","small","label","Last 7 days","data-auto","last7daysButton",1,"w-3/7",3,"click"],["size","small","label","Last 30 days","data-auto","last30daysButton",1,"w-3/7",3,"click"],["size","small","label","This month","data-auto","thisMonthButton",1,"w-3/7",3,"click"],["size","small","label","Last month","data-auto","lastMonthButton",1,"w-3/7",3,"click"],[3,"button"],[1,"icon","icon-cross-small"]],template:function(o,r){if(o&1){let a=P();p(0,"div",3)(1,"section",4)(2,"p"),C(3,"On this page you can:"),u(),p(4,"ul")(5,"li"),C(6),u(),p(7,"li"),C(8,"Filter and sort the results."),u(),p(9,"li"),C(10,"Email \u201CReady to use\u201D payment codes to students."),u(),p(11,"li"),C(12,"Mark payment codes that have been manually allocated (sent) to a student."),u(),p(13,"li"),C(14,"Export payment codes as a CSV file."),u()(),p(15,"p")(16,"a",5),T("click",function(){return k(a),E(r.findOutMore())}),C(17,"Find out more about how to use, create and share payment codes."),u()(),p(18,"p"),C(19," Use of this service is subject to "),p(20,"a",6),C(21,"AAT's terms and conditions."),u()()(),p(22,"section",7)(23,"h4",8)(24,"strong"),C(25,"Your search filters"),u()(),p(26,"div",9)(27,"div",10)(28,"div",11)(29,"label"),C(30,"Filter by student name or AAT ID number"),u(),p(31,"fab-autocomplete-multiselect",12,0),T("onChange",function(l){return k(a),E(r.onStudentPickerChange(l))}),p(33,"ul"),X(34,koe,5,10,"li",13,se),N(36,"slice"),u()(),p(37,"div",14),C(38,"You can select multiple students"),u()()(),p(39,"div",10)(40,"div",11)(41,"fab-input-text-2",15),N(42,"formControl"),T("keyup",function(){return k(a),E(r.onPoNumberChange())}),u(),p(43,"div",14),C(44,"Please enter a PO number"),u()()(),p(45,"div",10)(46,"div",11)(47,"label"),C(48,"Filter by status and/or allocation"),u(),p(49,"fab-dropdown-categorized",16),T("outputReturnSelectedOptions",function(l){return k(a),E(r.getSelectedStatusOptions(l))}),u(),p(50,"div",14),C(51,"You can select multiple statuses"),u()()(),p(52,"div",17)(53,"label",18),C(54,"Filter by date range"),u(),p(55,"p-datepicker",19,1),T("ngModelChange",function(l){return k(a),E(r.dateChanged(l))}),V(57,Eoe,11,0,"ng-template",null,2,ze),u()(),y(59,Moe,7,1,"div",20),u(
817),p(60,"div",9),y(61,Toe,6,1,"div",21),u()(),p(62,"section",22)(63,"app-results",23),T("sortChanged",function(l){return k(a),E(r.onSortChanged(l))}),u()()()}if(o&2){let a=de(32);d(6),A(" View existing payment codes that have been created by your ",r.paymentCodesService.dynamicWording("centre","employer"),". "),d(25),v("config",r.studentPickerConfig),d(3),ee(xr(36,13,a.suggestions,0,10)),d(7),v("content",r.poNumberInput)("formControl",G(42,17,r.poNumberInputControl)),d(8),v("content",r.statusFilterDropdown),d(6),v("ngModel",r.dateSelection)("showIcon",!0)("showOnFocus",!0)("showButtonBar",!0)("maxDate",r.todayDate),d(4),w(r.qualsFilterDropdown.options.length>0?59:-1),d(2),w(r.filtersApplied?61:-1),d(2),v("filters",r.appliedFilters)}},dependencies:[Qe,po,ei,Dre,to,Ee,$p,Ure,Da,qc,Op,ph,Vs,bn],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.view-page__intro ul{margin-left:20px}.view-page__intro ul li{list-style:disc}.view-page__filters,.view-page__results{margin-top:50px}.view-page__filters--filter-box{margin-top:20px}.view-page__filters--filter-box label{font-size:14px;margin-bottom:.5em;display:inline-block}.view-page__filters--filter-box-text{font-size:11px}.view-page__filters--filter-box fab-input-checkbox{margin-bottom:10px}.view-page__filters--filter-box fab-input-text-2 input{border-color:#e6e6e6;margin:-3px 0 0;height:36px}.view-page__filters--filter-box fab-input-text-2 input:focus{margin:-3px 0 0}.view-page__filters--filter-box fab-dropdown .dropdown-simple{flex-basis:100%;max-width:100%}.view-page__filters--filter-box fab-dropdown .dropdown-simple~.col-md-4{display:none}.view-page__filters--apply-reset{margin:30px 0;color:#00ab4e;display:flex}.view-page__filters--apply-reset div{margin-top:10px;margin-left:25px}@media (min-width: 38em){.view-page__filters .col-xs-12{padding:0 10px}.view-page__filters>.row{margin:0 -10px}}.view-page__filters fab-input-text-2 .col-xs-12{padding:0} 818`],encapsulation:2});let e=t;return e})(),jse=(()=>{let t=class t{constructor(n,o,r,a,s){this.router=n,this.activatedRoute=o,this.formBuilder=r,this.paymentCodesService=a,this.authService=s,this.createdCodes=[],this.canSubmit=!0,this._preventDoubleConfirmation=!1,this.qtyInput={id:"qty",label:"How many payment codes would you like to create?",validationBlankMessage:"Enter the number of codes you want to create",validationMessage:"Enter the number of codes you want to create",required:!0,codeType:"Number",min:1,max:100},this.poNumberInput={id:"poNumber",label:"Enter your purchase order (PO) number",validationBlankMessage:"Enter your PO number",validationMessage:"Enter your PO number",required:!0,codeType:"AlphaNumeric",maxLen:50},this.submitButton={text:"Create codes",action:{type:"callback",callback:this.submit.bind(this)},type:"primary",aria:"Create codes"},this.columnOptions=["Allocated","Payment code","Date created","PO number","Status","Email"],this.canDeactivate=()=>this.resultsComponents?.some(l=>!!l.modifiedRows.length)&&!this._preventDoubleConfirmation?window.confirm("WARNING: You have unsaved changes. Press Cancel to go back and save these changes, or OK to lose these changes."):!0,this.form=this.formBuilder.group({paymentCodeCreateAmount:[""],paymentOrderNo:[""]})}ngOnInit(){this.paymentCodesService.changeOrg$.subscribe(n=>{this.createdCodes=[],this.form.reset()}),this._logoutSubscription=this.authService.logoutInitiated$.subscribe(n=>{n&&this.canDeactivate()&&(this._preventDoubleConfirmation=!0,this.authService.logout().subscribe())})}ngOnDestroy(){this._logoutSubscription?.unsubscribe()}submit(){if(!this.form.valid||!this.canSubmit)return;this.submitButton.text="Creating codes",this.submitButton.glyph={icon:fr.LOOP2,glyphAnimation:"spin"},this.canSubmit=!1;let n=ye(B({},this.form.value),{paymentCodeCreateAmount:parseInt(this.form.value.paymentCodeCreateAmount)}),o=performance.now();this.paymentCodesService.create(n).subscribe({next:r=>{dataLayer.push({event:"payment_code_create_load_time",timeInMs:Math.round(performance.now()-o)}),this.createdCodes.unshift(r),this.form.reset(),this.scroll("createdCodes")},error:r=>{console.error(r),this.errorMessage="Sorry there has been a problem with your request. Please try again."}}).add(()=>{this.submitButton.text="Create codes",this.submitButton.glyph=null,this.canSubmit=!0}),dataLayer.push({event:"payment_code_create",amountCreated:n.paymentCodeCreateAmou
818nt})}findOutMore(){dataLayer.push({event:"payment_code_find_out_more_click"}),this.router.navigate(["../guidance"],{relativeTo:this.activatedRoute})}scroll(n){setTimeout(()=>{let o=document.getElementById(n);if(!o)return;let r=o.offsetTop-63;window.scrollTo({top:r,behavior:"smooth"})},0)}};t.\u0275fac=function(o){return new(o||t)(O(gi),O(Uo),O(nn),O(Tc),O(st))},t.\u0275cmp=U({type:t,selectors:[["app-create"]],viewQuery:function(o,r){if(o&1&&Ue(Op,5),o&2){let a;Me(a=Te())&&(r.resultsComponents=a)}},hostBindings:function(o,r){o&1&&T("beforeunload",function(){return r.canDeactivate()},yr)},standalone:!1,decls:20,vars:13,consts:[[1,"create-page"],[1,"create-page__form"],[3,"ngSubmit","keydown.enter","formGroup"],[1,"create-page__form-field"],[3,"content","formControl"],[1,"create-page__form-field--text"],[1,"create-page__form--button-row"],[1,"create-page__form--error"],["type","submit",3,"enabled","button"],["id","createdCodes",1,"create-page__codes"],[1,"create-page__codes--options"],[3,"routerLink"],[3,"click"],[1,"create-page__codes--batch"],["downloadButtonText","Export payment codes batch (CSV)",3,"heading","initialData","filters","columnsToDisplay"]],template:function(o,r){o&1&&(p(0,"div",0)(1,"section",1)(2,"p"),C(3,"Create new payment codes to give to your students."),u(),p(4,"form",2),T("ngSubmit",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),p(5,"div",3),x(6,"fab-input-text-2",4),N(7,"formControl"),p(8,"div",5),C(9," Maximum of 100 codes can be created per PO number. The same PO number can be used for each batch of 100 codes. "),u()(),p(10,"div",3),x(11,"fab-input-text-2",4),N(12,"formControl"),p(13,"div",5),C(14,"Maximum of 50 characters"),u()(),p(15,"div",6)(16,"div",7),C(17),u(),x(18,"fab-button",8),u()()(),y(19,Poe,21,2,"section",9),u()),o&2&&(d(4),v("formGroup",r.form),d(2),v("content",r.qtyInput)("formControl",G(7,9,r.form.controls.paymentCodeCreateAmount)),d(5),v("content",r.poNumberInput)("formControl",G(12,11,r.form.controls.paymentOrderNo)),d(6),R(r.errorMessage),d(),v("enabled",r.form.valid&&r.canSubmit)("button",r.submitButton),d(),w(r.createdCodes&&r.createdCodes.length>0?19:-1))},dependencies:[tt,ho,Qe,ct,ei,_t,to,Ee,Op,bn],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.create-page__form-field[_ngcontent-%COMP%]{margin-bottom:20px}.create-page__form-field--text[_ngcontent-%COMP%]{font-size:11px}.create-page__form-field[_ngcontent-%COMP%] fab-input-text-2[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border-color:#e6e6e6;margin:-3px 0 0;height:36px}.create-page__form-field[_ngcontent-%COMP%] fab-input-text-2[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{margin:-3px 0 0}.create-page__form--button-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.create-page__form--button-row[_ngcontent-%COMP%] fab-button[_ngcontent-%COMP%]{flex-shrink:0}.create-page__form--error[_ngcontent-%COMP%]{color:#e22b25}.create-page__codes[_ngcontent-%COMP%]{margin-top:20px}.create-page__codes--batch[_ngcontent-%COMP%]{margin-bottom:30px}.create-page__codes--batch[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{margin-top:30px}.create-page__codes--batch[_ngcontent-%COMP%]:last-of-type hr[_ngcontent-%COMP%]{display:none}.create-page__codes--options[_ngcontent-%COMP%]{margin-bottom:30px}.create-page__codes--options[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-left:20px}.create-page__codes--options[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:disc}"]});let e=t;return e})(),Wse=(()=>{let t=class t{constructor(){this.paymentCodesService=xe(Tc)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["app-guidance"]],standalone:!1,decls:70,vars:6,consts:[[1,"guidance-page"],[1,"guidance-page__accordions"],["title","Payment codes explained",3,"isOpen"],["body",""],["title","How to create payment codes"],[3,"routerLink"],["title","How to share payment codes with students"],["title","How students use payment codes"]],template:function(o,r){o&1&&(p(0,"div",0)(1,"section",1)(2,"fab-accordion",2)(3,"div",3)(4,"ul")(5,"li"),C(6,"Payment c
818odes can be used to register for AAT qualifications."),u(),p(7,"li"),C(8,"Payment codes are for single use only i.e. one code per student per qualification."),u(),p(9,"li"),C(10,"Payment codes are case sensitive."),u(),p(11,"li"),C(12,` We'll only invoice you once a payment code has been used. You won't be invoiced for any "Ready to use" codes. `),u(),p(13,"li"),C(14,' "Ready to use" payment codes expire six months after their created date - if not used. Once a code expires, it can no longer be used and will no longer be displayed on this service. '),u(),p(15,"li"),C(16,` "Used" payment codes are displayed for 12 months from their created date. After the 12 months, they're no longer displayed. `),u()()()()(),p(17,"section",1)(18,"fab-accordion",4)(19,"div",3)(20,"ul")(21,"li"),C(22," In the "),p(23,"a",5),C(24,"Create payment codes page"),u(),C(25,", you can create new codes. You can also navigate to this page via the tab at the top of the page. "),u(),p(26,"li"),C(27,"To create payment codes, you'll need a purchase order (PO) number."),u(),p(28,"li"),C(29,"You can create a maximum of 100 payment codes per batch."),u(),p(30,"li"),C(31,"One PO number is needed to create a batch. You can use the same PO number for multiple batches."),u(),p(32,"li"),C(33," You'll need to specify how many payment codes you'd like in a batch and this batch will have the same PO number. "),u(),p(34,"li"),C(35," You can create a number of batches and each batch will have its own PO number (unless you use the same PO number for multiple batches). "),u(),p(36,"li"),C(37,` Please note that once your payment codes are created, they'll be in a "Pending\u201D status. It takes a few minutes for them to become "Ready to use\u201D. In the Create payment codes page, the codes will always be displayed as "Pending\u201D - please check the `),p(38,"a",5),C(39,"View existing payment codes page"),u(),C(40," to see if your codes are ready to use. "),u()()()()(),p(41,"section",1)(42,"fab-accordion",6)(43,"div",3)(44,"ul")(45,"li"),C(46,'A payment code with "Ready to use" status is valid for use and can be shared with a student.'),u(),p(47,"li"),C(48,' If a payment code status is "Pending", it can still be shared with a student. However, please note that the status needs to be "Ready to use" for it to be valid for use. '),u(),p(49,"li"),C(50," You can email the payment code directly to a student by clicking on the envelope icon in the results table. Once you've sent the email, the code will be automatically marked as allocated. "),u(),p(51,"li"),C(52," If you share a code with a student another way i.e. "),p(53,"strong"),C(54,"not"),u(),C(55,` using the clicking on the envelope icon function, you can still mark it as allocated in the Allocated column on the service. Please ensure you click "Save allocation changes", otherwise your changes won't be saved. `),u()()()()(),p(56,"section",1)(57,"fab-accordion",7)(58,"div",3)(59,"ul")(60,"li"),C(61,'Students can use a "Ready to use" payment code to pay to register for AAT qualifications.'),u(),p(62,"li"),C(63,' Students can still receive a payment code with a "Pending\u201D status. However, please note that the status needs to be "Ready to use\u201D for it to be valid for use. '),u(),p(64,"li"),C(65,' Students will need to select "Payment code\u201D at the payment step of the registration service. The code must be inserted in the correct format. '),u(),p(66,"li"),C(67),u(),p(68,"li"),C(69," If a student needs to register on multiple qualifications via a payment code, they'll need to register for each qualification separately and provide a unique payment code for each registration. "),u()()()()()()),o&2&&(d(2),v("isOpen",!0),d(21),v("routerLink",On(4,Roe)),d(15),v("routerLink",On(5,qS)),d(29),A(" The payment code must match the name of the ",r.paymentCodesService.dynamicWording("centre","employer")," that the student inputs on registration. "))},dependencies:[tt,R0],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.guidance-page__accordions{margin:20px}.guidance-page__accordions fab-accordion ul{margin:15px}.guidance-page__accordions fab-accordion li{list-style:disc} 819`],encapsulation:2});let e=t;return e})(),$se=[{path:"",component:Bse,children:[{path:"",redirectTo:"view",pathMatch:"full"},{path:"view",component:Use,canDeactivate:[e=>e?.canDeactivate()],data:{title:"View existing payment codes",tabTitle:"View existing payment codes",notificationLocation:"payment_codes_service"}},{path:"create",component:jse,canDeactivate:[e=>e?.canDeactivate()],data:{title:"Create payment codes",tabTitle:"Create new payment codes",notificationLocation:"payment_codes_service"}}
819,{path:"guidance",component:Wse,data:{title:"Payment code guidance",tabTitle:"Payment code guidance",notificationLocation:"payment_codes_service"}}]}],Mxe=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ie({type:t}),t.\u0275inj=te({providers:[tn],imports:[ge,At.forChild($se),Rt,Vi,wE,Ase,xa,Pre,Hs,Bo,Ee,Mc,Fse,F0,Up,jre,DE,vC,Xv]});let e=t;return e})();export{Tr as a,mce as b,Ir as c,Pa as d,nle as e,Yc as f,oC as g,rC as h,sC as i,lC as j,cC as k,uC as l,ul as m,Da as n,vC as o,vr as p,st as q,qye as r,Yye as s,li as t,_a as u,fS as v,Kye as w,Qye as x,vS as y,CS as z,Jye as A,Zye as B,bS as C,_S as D,yS as E,Foe as F,b0 as G,wS as H,P0 as I,Aoe as J,Zi as K,fr as L,Sc as M,zoe as N,Boe as O,Voe as P,Hoe as Q,kc as R,Zn as S,Cr as T,Xn as U,R0 as V,F0 as W,KS as X,Bp as Y,Uoe as Z,QS as _,ya as $,No as aa,Xye as ba,we as ca,x0 as da,Vp as ea,JS as fa,L0 as ga,uE as ha,N0 as ia,z0 as ja,V0 as ka,zs as la,pE as ma,qoe as na,ewe as oa,twe as pa,ere as qa,tre as ra,Ee as sa,iwe as ta,nwe as ua,owe as va,wa,rwe as xa,Bs as ya,awe as za,swe as Aa,lwe as Ba,cwe as Ca,Vs as Da,Hs as Ea,gE as Fa,cre as Ga,yc as Ha,dre as Ia,ure as Ja,dwe as Ka,uwe as La,pwe as Ma,hwe as Na,_re as Oa,to as Pa,Gp as Qa,gwe as Ra,zo as Sa,G0 as Ta,Bo as Ua,Dp as Va,Up as Wa,Gs as Xa,Ec as Ya,Lo as Za,jp as _a,Us as $a,mwe as ab,Mre as bb,fwe as cb,Tre as db,Ire as eb,Pp as fb,Vo as gb,Dre as hb,xa as ib,Pre as jb,Wp as kb,CE as lb,Rre as mb,U0 as nb,Fre as ob,Ore as pb,vwe as qb,Bre as rb,Vre as sb,$p as tb,Cwe as ub,Mc as vb,bwe as wb,_we as xb,ywe as yb,wwe as zb,xwe as Ab,Swe as Bb,kwe as Cb,Ure as Db,jre as Eb,Ns as Fb,Aae as Gb,Gae as Hb,Yae as Ib,yE as Jb,Kae as Kb,Ewe as Lb,Zae as Mb,wE as Nb,Mwe as Ob,ese as Pb,nse as Qb,Twe as Rb,Iwe as Sb,Dwe as Tb,Pwe as Ub,Rwe as Vb,Fwe as Wb,Owe as Xb,Awe as Yb,Lwe as Zb,Nwe as _b,zwe as $b,_se as ac,ut as bc,DE as cc,Bwe as dc,Vwe as ec,Hwe as fc,Gwe as gc,Uwe as hc,jwe as ic,Wwe as jc,$we as kc,qwe as lc,Ywe as mc,Kwe as nc,Qwe as oc,Jwe as pc,Zwe as qc,Xwe as rc,exe as sc,txe as tc,ixe as uc,nxe as vc,oxe as wc,rxe as xc,axe as yc,sxe as zc,lxe as Ac,cxe as Bc,dxe as Cc,Ise as Dc,uxe as Ec,Dse as Fc,Rse as Gc,Fse as Hc,Ose as Ic,Ase as Jc,pxe as Kc,hxe as Lc,Nse as Mc,gxe as Nc,mxe as Oc,fxe as Pc,vxe as Qc,Cxe as Rc,bxe as Sc,_xe as Tc,yxe as Uc,wxe as Vc,xxe as Wc,Sxe as Xc,kxe as Yc,Exe as Zc,In as _c,Mxe as $c};
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.