{"version":3,"file":"Lp_General.webpacked.js","mappings":";;;;;;;;;;;AAAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,QAAQ,IAA0C;AAClD;AACA,QAAQ,iCAAO,EAAE,oCAAE,OAAO;AAAA;AAAA;AAAA,kGAAC;AAC3B,MAAM,KAAK,EAQR;AACH,CAAC;;AAED;;AAEA;AACA;AACA;;AAEA,qHAAqH;;AAErH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,qBAAqB;AACrB;;AAEA,2CAA2C;;AAE3C;;AAEA;AACA;;AAEA;;AAEA;AACA,4BAA4B;;AAE5B;AACA;;AAEA;AACA,oDAAoD;;AAEpD;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA,UAAU;;AAEV;AACA;;AAEA,UAAU;;AAEV;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;;AAGA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;;AAEhB;;AAEA,sCAAsC;;AAEtC;AACA;AACA,gDAAgD,uBAAuB;AACvE,cAAc;AACd;AACA,8CAA8C,QAAQ,UAAU,WAAW,SAAS,aAAa,aAAa;AAC9G;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,qCAAqC;;AAErC;AACA,yBAAyB;;AAEzB;AACA,kBAAkB;;AAElB;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,cAAc;;AAEd;AACA,+DAA+D,kBAAkB,IAAI;AACrF;;AAEA;AACA;AACA;AACA,uCAAuC;;AAEvC;AACA;;AAEA,kBAAkB;;AAElB;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA,iCAAiC,sBAAsB;AACvD,yCAAyC,0BAA0B;AACnE,oCAAoC,sBAAsB;AAC1D;;AAEA,CAAC;;;;;;;;;;;;;;;ACtZD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;;;;;;;;;;ACpKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,gBAAgB;AAChD;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA,6CAA6C;AAC7C;AACA,CAAC;;;;;;;;;;;ACpFD,CAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA,sFAAsF;AACtF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sFAAsF;AACtF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sFAAsF;AACtF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sFAAsF;AACtF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,kBAAkB,+BAA+B;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,+BAA+B;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA,sFAAsF;AACtF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA,sFAAsF;AACtF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sFAAsF;AACtF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;;;;;;;;;;;;;;;;AC5QO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,CAAC;;;;;;;;;;;;;;;;ACXM;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,OAAO;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,OAAO;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AC5Ea;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACTA,CAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,wBAAwB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,6CAA6C;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,MAAM;AACN,8IAA8I;AAC9I;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,kBAAkB,sDAAsD;AACxE;AACA;AACA,EAAE;AACF;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ,IAAI;AACJ,4IAA4I;AAC5I;AACA;AACA,IAAI;AACJ;AACA,EAAE;AACF;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ,IAAI;AACJ;AACA,IAAI;AACJ;AACA,EAAE;AACF,wCAAwC;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF,6BAA6B;AAC7B,+BAA+B;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mEAAmE,6BAA6B;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ,IAAI;AACJ,yEAAyE,oBAAoB,IAAI,EAAE;AACnG;AACA;AACA;AACA;AACA;AACA;AACA,qEAAqE,6BAA6B,IAAI;AACtG;AACA;AACA;AACA,EAAE;AACF;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6DAA6D;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;AC9TA,CAAc;AACd;AACA;AACA,uBAAuB,KAAK,GAAG,IAAI;AACnC;AACA;AACA;AACA,gBAAgB,KAAK,GAAG,IAAI,YAAY,4CAA4C;AACpF;;;;;;;;;;;ACRa;AACb;AACA,yCAAyC,QAAQ;AACjD;AACA,UAAU,QAAQ;AAClB,uBAAuB,SAAS;AAChC;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,SAAS;AACvB;AACA;AACA,cAAc,SAAS;AACvB;AACA,UAAU,QAAQ;AAClB;AACA;AACA;AACA;AACA,KAAK;AACL,UAAU,QAAQ;AAClB;AACA;AACA;AACA,UAAU,QAAQ;AAClB;AACA;;;;;;;;;;;;;;;;AC7BO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,0BAA0B;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;ACvB0C;AACM;AACQ;AACjD;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,iEAAiB;AACnD;AACA,yGAAyG,iCAAiC;AAC1I;AACA;AACA;AACA;AACA,wCAAwC,kBAAkB;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,mDAAU;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,yDAAa;AAC7C;AACA;AACA;AACA;AACA,gCAAgC,mDAAU;AAC1C,6BAA6B;AAC7B;AACA;AACA;AACA;AACA,iIAAiI,oBAAoB;AACrJ;AACA;AACA;AACA,oCAAoC,mDAAU;AAC9C;AACA;AACA;AACA;AACA;AACA,wCAAwC,mDAAU;AAClD;AACA;AACA,yBAAyB;AACzB;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACrFA,CAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,mBAAmB;AACnB;AACA,MAAM;AACN;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC;AACA;AACA;;;;;;;;;;;;;;;;ACrD0C;AACnC;AACP;AACA;AACA;AACA;AACA;AACA,mDAAmD,UAAU;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,mDAAU;AAClB;AACA;AACA;AACA;AACA;AACA,gBAAgB,mDAAU;AAC1B;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AC/EA,CAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,cAAc;AAC7C;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,UAAU;AAC1C;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,IAAI;AACJ,IAAI;AACJ;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yEAAyE;AACzE;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,yCAAyC;AACzC;AACA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,KAAK;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;AACJ;AACA;AACA,IAAI;AACJ;AACA,GAAG;AACH,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,mBAAmB,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,GAAG;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;ACtb+C;AACb;AAC3B;AACP;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,2CAAM;AAC3B;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA,uBAAuB,wDAAgB;AACvC;AACA;AACA,KAAK;AACL;AACA;;;;;;;;;;;;;;;ACtEgD;AACD;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6DAA6D,wDAAgB;AAC7E;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,yDAAa;AACrB;AACA;AACA,uBAAuB,wDAAgB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,yDAAa;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,6DAA6D,MAAM;AACnE,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,kBAAkB;AACpD;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;ACzHO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,WAAW,EAAE,EAAE;AACxD;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,QAAQ;AACtC;AACA;AACA;AACA;AACA,wBAAwB,oBAAoB;AAC5C,gCAAgC,iBAAiB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,oBAAoB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C,wBAAwB,uBAAuB,oBAAoB,kCAAkC,cAAc,wBAAwB,wBAAwB;AAClN;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,SAAS;AACT;AACA;AACA,0BAA0B,QAAQ;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,4BAA4B;AAChE;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,yCAAyC;AACzC;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACO;AACP;AACO;AACP;AACO;AACP;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;AC5P4D;AACZ;AACzC;AACP;AACA;AACA;AACA;AACA,qCAAqC,uBAAuB;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,qEAAmB;AACzD;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,qEAAmB;AACzD;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,yDAAa;AAC7B;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;ACtGuC;AAChC;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,uBAAuB;AACtD,mCAAmC,uBAAuB;AAC1D,8EAA8E,cAAc,oEAAoE,sBAAsB;AACtL,uEAAuE;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,4CAAe,gBAAgB,sBAAsB;AACrE,mCAAmC,uBAAuB,UAAU,uBAAuB;AAC3F;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;AC7EO;AACP;AACA;AACA,+DAA+D,IAAI,cAAc,IAAI;AACrF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AChCA,CAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD;AAClD;AACA,uCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,EAAE;AACF;;;;;;;;;;;;;;;;;AChDkD;AACF;AACzC;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA,qBAAqB;AACrB;AACA,mCAAmC,+DAAmB;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,yDAAa;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,yDAAa;AACzC;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA,gDAAgD,UAAU;AAC1D,mDAAmD,MAAM,UAAU,aAAa;AAChF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,CAAC;;;;;;;;;;;;AC5HD,CAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD;AACrD;AACA,KAAK,kDAAkD;AACvD;AACA,KAAK,OAAO;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,IAAI;AACJ;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD;AACrD;AACA,KAAK,kDAAkD;AACvD;AACA,KAAK,OAAO;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,IAAI;AACJ;AACA;AACA,EAAE;AACF,CAAC;AACD;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD,IAAI;AACvD;AACA;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA;AACA;AACA,kBAAkB,0EAA0E;AAC5F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA,+CAA+C;AAC/C,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH,GAAG;AACH;AACA;AACA;;;;;;;;;;;;;;;ACvIO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,EAAE;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,KAAK,IAAI;AACnC;AACA;AACA,KAAK;AACL;;;;;;;;;;;;;;;;;AC5BO;AACP;AACA;AACA,2EAA2E,MAAM,gBAAgB,KAAK;AACtG;AACA,iDAAiD,KAAK;AACtD;AACA;AACA;AACA,yBAAyB,GAAG,uBAAuB,sDAAsD,EAAE,0CAA0C;AACrJ,qBAAqB,KAAK;AAC1B,mBAAmB,KAAK;AACxB;AACA;AACA;AACA;AACA,kDAAkD,OAAO,wBAAwB,GAAG,IAAI,+BAA+B,UAAU,SAAS,8BAA8B,aAAa;AACrL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,oBAAoB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,oBAAoB;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,qBAAqB;AACrE;AACA;AACA;AACA;AACA;AACA,4BAA4B,oBAAoB;AAChD;AACA,sBAAsB,eAAe,EAAE,EAAE;AACzC;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AC9FA;AACa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;UCfA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;UENA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA","sources":["webpack:///./css/Components/Collapsable.css?1d97","webpack:///./css/Components/ListViewWithFlexbox.css?f45f","webpack:///./css/PleaseWait.css?1081","webpack:///./css/checkbox.css?82a3","webpack:///./css/dialog.css?0d5d","webpack:///./css/foca.css?af28","webpack:///./css/landingpage.css?9407","webpack:///./css/overlay.css?e494","webpack:///./css/sidebar.css?4ba3","webpack:///./css/site.css?01fc","webpack:///./css/swal2.css?d27f","webpack:///./node_modules/pdfobject/pdfobject.js","webpack:///./ts/ErrorReporter.ts","webpack:///./ts/Validation/ConditionalRequiredAttribute.validation.js","webpack:///./ts/Validation/validators.js","webpack:///./ts/animation.ts","webpack:///./ts/base64.ts","webpack:///./ts/browserDetector.ts","webpack:///./ts/controlExtensions.js","webpack:///./ts/cookie.js","webpack:///./ts/dialog.ts","webpack:///./ts/fileSizeValidator.ts","webpack:///./ts/fileUpload.ts","webpack:///./ts/form.js","webpack:///./ts/formUtils.ts","webpack:///./ts/general.js","webpack:///./ts/generalTS.ts","webpack:///./ts/javascriptSearch.ts","webpack:///./ts/notificationManager.ts","webpack:///./ts/outsidePublic.ts","webpack:///./ts/overlay.ts","webpack:///./ts/pleaseWait.ts","webpack:///./ts/prices.js","webpack:///./ts/selectize.ts","webpack:///./ts/sidebar.js","webpack:///./ts/stringExtensions.ts","webpack:///./ts/swalEx.ts","webpack:///./ts/wizard.js","webpack:///webpack/bootstrap","webpack:///webpack/runtime/compat get default export","webpack:///webpack/runtime/define property getters","webpack:///webpack/runtime/hasOwnProperty shorthand","webpack:///webpack/runtime/make namespace object","webpack:///webpack/before-startup","webpack:///webpack/startup","webpack:///webpack/after-startup"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","/**\n * PDFObject v2.3.1\n * https://github.com/pipwerks/PDFObject\n * @license\n * Copyright (c) 2008-2025 Philip Hutchison\n * MIT-style license: http://pipwerks.mit-license.org/\n * UMD module pattern from https://github.com/umdjs/umd/blob/master/templates/returnExports.js\n */\n\n(function (root, factory) {\n if (typeof define === \"function\" && define.amd) {\n // AMD. Register as an anonymous module.\n define([], factory);\n } else if (typeof module === \"object\" && module.exports) {\n // Node. Does not work with strict CommonJS, but\n // only CommonJS-like environments that support module.exports,\n // like Node.\n module.exports = factory();\n } else {\n // Browser globals (root is window)\n root.PDFObject = factory();\n }\n}(this, function () {\n\n \"use strict\";\n\n //PDFObject is designed for client-side (browsers), not server-side (node)\n //Will choke on undefined navigator and window vars when run on server\n //Return boolean false and exit function when running server-side\n\n if(typeof window === \"undefined\" || window.navigator === undefined || window.navigator.userAgent === undefined){ return false; }\n\n let pdfobjectversion = \"2.3.1\";\n let win = window;\n let nav = win.navigator;\n let ua = nav.userAgent;\n let suppressConsole = false;\n\n //Fallback validation when navigator.pdfViewerEnabled is not supported\n let isModernBrowser = function (){\n\n /*\n userAgent sniffing is not the ideal path, but most browsers revoked the ability to check navigator.mimeTypes\n for security purposes. As of 2023, browsers have begun implementing navigator.pdfViewerEnabled, but older versions\n do not have navigator.pdfViewerEnabled or the ability to check navigator.mimeTypes. We're left with basic browser\n sniffing and assumptions of PDF support based on browser vendor.\n */\n\n //Chromium has provided native PDF support since 2011.\n //Most modern browsers use Chromium under the hood: Google Chrome, Microsoft Edge, Opera, Brave, Vivaldi, Arc, and more.\n //Chromium uses the PDFium rendering engine, which is based on Foxit's PDF rendering engine.\n //Note that MS Edge opts to use a different PDF rendering engine. As of 2024, Edge uses a version of Adobe's Reader\n let isChromium = (win.chrome !== undefined);\n\n //Safari on macOS has provided native PDF support since 2009.\n //This code snippet also detects the DuckDuckGo browser, which uses Safari/Webkit under the hood.\n let isSafari = (win.safari !== undefined || (nav.vendor !== undefined && /Apple/.test(nav.vendor) && /Safari/.test(ua)));\n\n //Firefox has provided PDF support via PDFJS since 2013.\n let isFirefox = (win.Mozilla !== undefined || /irefox/.test(ua));\n\n return isChromium || isSafari || isFirefox;\n\n };\n\n /*\n Special handling for Internet Explorer 11.\n Check for ActiveX support, then whether \"AcroPDF.PDF\" or \"PDF.PdfCtrl\" are valid.\n IE11 uses ActiveX for Adobe Reader and other PDF plugins, but window.ActiveXObject will evaluate to false.\n (\"ActiveXObject\" in window) evaluates to true.\n MS Edge does not support ActiveX so this test will evaluate false for MS Edge.\n */\n let validateAX = function (type){\n var ax = null;\n try {\n ax = new ActiveXObject(type);\n } catch (e) {\n //ensure ax remains null when ActiveXObject attempt fails\n ax = null;\n }\n return !!ax; //convert resulting object to boolean\n };\n\n let hasActiveXPDFPlugin = function (){ return (\"ActiveXObject\" in win) && (validateAX(\"AcroPDF.PDF\") || validateAX(\"PDF.PdfCtrl\")) };\n\n let checkSupport = function (){\n\n //Safari on iPadOS doesn't report as 'mobile' when requesting desktop site, yet still fails to embed PDFs\n let isSafariIOSDesktopMode = (nav.platform !== undefined && nav.platform === \"MacIntel\" && nav.maxTouchPoints !== undefined && nav.maxTouchPoints > 1);\n\n let isMobileDevice = (isSafariIOSDesktopMode || /Mobi|Tablet|Android|iPad|iPhone/.test(ua));\n\n //As of June 2023, no mobile browsers properly support inline PDFs. If mobile, just say no.\n if(isMobileDevice){ return false; }\n\n //Modern browsers began supporting navigator.pdfViewerEnabled in late 2022 and early 2023.\n let supportsPDFVE = (typeof nav.pdfViewerEnabled === \"boolean\");\n\n //If browser supports nav.pdfViewerEnabled and is explicitly saying PDFs are NOT supported (e.g. PDFJS disabled by user in Firefox), respect it.\n if(supportsPDFVE && !nav.pdfViewerEnabled){ return false; }\n\n return (supportsPDFVE && nav.pdfViewerEnabled) || isModernBrowser() || hasActiveXPDFPlugin();\n\n };\n\n //Determines whether PDF support is available\n let supportsPDFs = checkSupport();\n\n //Create a fragment identifier for using PDF Open parameters when embedding PDF\n let buildURLFragmentString = function(pdfParams){\n\n let string = \"\";\n let prop;\n let paramArray = [];\n let fdf = \"\";\n\n //The comment, viewrect, and highlight parameters require page to be set first.\n\n //Check to ensure page is used if comment, viewrect, or highlight are specified\n if(pdfParams.comment || pdfParams.viewrect || pdfParams.highlight){\n\n if(!pdfParams.page){\n\n //If page is not set, use the first page\n pdfParams.page = 1;\n\n //Inform user that page needs to be set properly\n embedError(\"The comment, viewrect, and highlight parameters require a page parameter, but none was specified. Defaulting to page 1.\");\n\n }\n\n }\n\n //Let's go ahead and ensure page is always the first parameter.\n if(pdfParams.page){\n paramArray.push(\"page=\" + encodeURIComponent(pdfParams.page));\n delete pdfParams.page;\n }\n\n //FDF needs to be the last parameter in the string\n if(pdfParams.fdf){\n fdf = pdfParams.fdf;\n delete pdfParams.fdf;\n }\n\n //Add all other parameters, as needed\n if(pdfParams){\n\n for (prop in pdfParams) {\n if (pdfParams.hasOwnProperty(prop)) {\n paramArray.push(encodeURIComponent(prop) + \"=\" + encodeURIComponent(pdfParams[prop]));\n }\n }\n\n //Add fdf as the last parameter, if needed\n if(fdf){\n paramArray.push(\"fdf=\" + encodeURIComponent(fdf));\n }\n\n //Join all parameters in the array into a string\n string = paramArray.join(\"&\");\n\n //The string will be empty if no PDF Parameters were provided\n //Only prepend the hash if the string is not empty\n if(string){\n string = \"#\" + string;\n }\n\n }\n\n return string;\n\n };\n\n let embedError = function (msg){\n if(!suppressConsole){\n console.log(\"[PDFObject]\", msg);\n }\n return false;\n };\n\n let emptyNodeContents = function (node){\n while(node.firstChild){\n node.removeChild(node.firstChild);\n }\n };\n\n let getTargetElement = function (targetSelector){\n\n //Default to body for full-browser PDF\n let targetNode = document.body;\n\n //If a targetSelector is specified, check to see whether\n //it's passing a selector, jQuery object, or an HTML element\n\n if(typeof targetSelector === \"string\"){\n\n //Is CSS selector\n targetNode = document.querySelector(targetSelector);\n\n } else if (win.jQuery !== undefined && targetSelector instanceof jQuery && targetSelector.length) {\n\n //Is jQuery element. Extract HTML node\n targetNode = targetSelector.get(0);\n\n } else if (targetSelector.nodeType !== undefined && targetSelector.nodeType === 1){\n\n //Is HTML element\n targetNode = targetSelector;\n\n }\n\n return targetNode;\n\n };\n\n let convertBase64ToDownloadableLink = function (b64, filename, targetNode, fallbackHTML) {\n\n //IE-11 safe version. More verbose than modern fetch()\n if (window.Blob && window.URL && window.URL.createObjectURL) {\n\n var xhr = new XMLHttpRequest();\n xhr.open('GET', b64, true);\n xhr.responseType = 'blob';\n xhr.onload = function() {\n\n if (xhr.status === 200) {\n\n var blob = xhr.response;\n var link = document.createElement('a');\n link.innerText = \"Download PDF\";\n link.href = URL.createObjectURL(blob);\n link.setAttribute('download', filename);\n targetNode.innerHTML = fallbackHTML.replace(/\\[pdflink\\]/g, link.outerHTML);\n\n }\n\n };\n\n xhr.send();\n\n }\n\n };\n\n\n let generatePDFObjectMarkup = function (embedType, targetNode, url, pdfOpenFragment, width, height, id, title, omitInlineStyles, customAttribute, PDFJS_URL){\n\n //Ensure target element is empty first\n emptyNodeContents(targetNode);\n\n let source = url;\n\n if(embedType === \"pdfjs\"){\n //If PDFJS_URL already contains a ?, assume querystring is in place, and use an ampersand to append PDFJS's file parameter\n let connector = (PDFJS_URL.indexOf(\"?\") !== -1) ? \"&\" : \"?\";\n source = PDFJS_URL + connector + \"file=\" + encodeURIComponent(url) + pdfOpenFragment;\n } else {\n source += pdfOpenFragment;\n }\n\n let el = document.createElement(\"iframe\");\n el.className = \"pdfobject\";\n el.type = \"application/pdf\";\n el.title = title;\n el.src = source;\n el.allow = \"fullscreen\";\n el.frameborder = \"0\";\n if(id){ el.id = id; }\n\n if(!omitInlineStyles){\n\n let style = \"border: none;\";\n\n if(targetNode !== document.body){\n //assign width and height to target node\n style += \"width: \" + width + \"; height: \" + height + \";\";\n } else {\n //this is a full-page embed, use CSS to fill the viewport\n style += \"position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%;\";\n }\n\n el.style.cssText = style;\n\n }\n\n //Allow developer to insert custom attribute on iframe element, but ensure it does not conflict with attributes used by PDFObject\n let reservedTokens = [\"className\", \"type\", \"title\", \"src\", \"style\", \"id\", \"allow\", \"frameborder\"];\n if(customAttribute && customAttribute.key && reservedTokens.indexOf(customAttribute.key) === -1){\n el.setAttribute(customAttribute.key, (typeof customAttribute.value !== \"undefined\") ? customAttribute.value : \"\");\n }\n\n targetNode.classList.add(\"pdfobject-container\");\n targetNode.appendChild(el);\n\n return targetNode.getElementsByTagName(\"iframe\")[0];\n\n };\n\n let embed = function(url, targetSelector, options){\n\n //If targetSelector is not defined, convert to boolean\n let selector = targetSelector || false;\n\n //Ensure options object is not undefined -- enables easier error checking below\n let opt = options || {};\n\n //Get passed options, or set reasonable defaults\n suppressConsole = (typeof opt.suppressConsole === \"boolean\") ? opt.suppressConsole : false;\n let id = (typeof opt.id === \"string\") ? opt.id : \"\";\n let page = opt.page || false;\n let pdfOpenParams = opt.pdfOpenParams || {};\n let fallbackLink = (typeof opt.fallbackLink === \"string\" || typeof opt.fallbackLink === \"boolean\") ? opt.fallbackLink : true;\n let width = opt.width || \"100%\";\n let height = opt.height || \"100%\";\n let title = opt.title || \"Embedded PDF\";\n let forcePDFJS = (typeof opt.forcePDFJS === \"boolean\") ? opt.forcePDFJS : false;\n let omitInlineStyles = (typeof opt.omitInlineStyles === \"boolean\") ? opt.omitInlineStyles : false;\n let PDFJS_URL = opt.PDFJS_URL || false;\n let targetNode = getTargetElement(selector);\n let pdfOpenFragment = \"\";\n let customAttribute = opt.customAttribute || {};\n let fallbackFileNameForBase64 = opt.fallbackFileNameForBase64;\n let fallbackHTML_default = \"
This browser does not support inline PDFs. Please download the PDF to view it: [pdflink]
\";\n\n //Ensure URL is available. If not, exit now.\n if(typeof url !== \"string\"){ return embedError(\"URL is not valid\"); }\n\n //If target element is specified but is not valid, exit without doing anything\n if(!targetNode){ return embedError(\"Target element cannot be determined\"); }\n\n //page option overrides pdfOpenParams, if found\n if(page){ pdfOpenParams.page = page; }\n\n //Stringify optional Adobe params for opening document (as fragment identifier)\n pdfOpenFragment = buildURLFragmentString(pdfOpenParams);\n\n\n // --== Do the dance: Embed attempt #1 ==--\n\n //If the forcePDFJS option is invoked, skip everything else and embed as directed\n if(forcePDFJS && PDFJS_URL){\n return generatePDFObjectMarkup(\"pdfjs\", targetNode, url, pdfOpenFragment, width, height, id, title, omitInlineStyles, customAttribute, PDFJS_URL);\n }\n\n // --== Embed attempt #2 ==--\n\n //Embed PDF if support is detected, or if this is a relatively modern browser\n if(supportsPDFs){\n return generatePDFObjectMarkup(\"iframe\", targetNode, url, pdfOpenFragment, width, height, id, title, omitInlineStyles, customAttribute);\n }\n\n // --== Embed attempt #3 ==--\n\n //If everything else has failed and a PDFJS fallback is provided, try to use it\n if(PDFJS_URL){\n return generatePDFObjectMarkup(\"pdfjs\", targetNode, url, pdfOpenFragment, width, height, id, title, omitInlineStyles, customAttribute, PDFJS_URL);\n }\n\n // --== PDF embed not supported! Use fallback ==--\n\n //Display the fallback link if available\n if(fallbackLink){\n\n //If a custom fallback has been provided, handle it now\n if(typeof fallbackLink === \"string\"){\n\n //Ensure [url] is set in custom fallback\n targetNode.innerHTML = fallbackLink.replace(/\\[url\\]/g, url);\n\n } else {\n\n //If the PDF is a base64 string, convert it to a downloadable link\n const match = url.match(/data:application\\/pdf;(?:.*filename=([^;]+);)?.*base64,/i);\n if(match){\n\n fallbackFileNameForBase64 =\n fallbackFileNameForBase64 // from options\n || match[1] // from data URI metadata\n || \"file.pdf\"; // default\n\n //Asynchronously append the link to the targetNode\n convertBase64ToDownloadableLink(url, fallbackFileNameForBase64, targetNode, fallbackHTML_default);\n\n } else {\n\n //Use default fallback link\n let link = \"Download PDF\";\n targetNode.innerHTML = fallbackHTML_default.replace(/\\[pdflink\\]/g, link);\n\n }\n\n }\n\n }\n\n return embedError(\"This browser does not support embedded PDFs\");\n\n };\n\n return {\n embed: function (a,b,c){ return embed(a,b,c); },\n pdfobjectversion: (function () { return pdfobjectversion; })(),\n supportsPDFs: (function (){ return supportsPDFs; })()\n };\n\n}));","class JavaScriptErrorDetails {\n constructor() {\n this.LocationHref = null;\n this.AjaxUrl = null;\n this.AjaxData = null;\n this.ReadyState = null;\n this.StatusText = null;\n this.Status = null;\n this.Reason = null;\n this.Message = null;\n this.Filename = null;\n this.Lineno = null;\n this.Colno = null;\n this.Error = null;\n this.Navigator = null;\n }\n}\nclass NavigatorDetails {\n constructor() {\n this.AppCodename = null;\n this.AppName = null;\n this.AppVersion = null;\n this.Platform = null;\n this.Product = null;\n this.UserAgent = null;\n this.Brands = null;\n }\n}\nclass MyError {\n constructor() {\n this.Name = null;\n this.Message = null;\n this.Code = null;\n this.Stack = null;\n }\n}\nclass BrandDetails {\n constructor() {\n this.Brand = null;\n this.Version = null;\n }\n}\nexport class ErrorReporter {\n static ReportAjaxError(ajaxUrl, ajaxData, res) {\n try {\n if (!ajaxData)\n ajaxData = 'No data';\n else {\n try {\n ajaxData = JSON.stringify(ajaxData);\n }\n catch (ex) {\n ajaxData = 'Could not stringify data';\n }\n }\n let errorDetails = {\n LocationHref: window.location.href,\n AjaxUrl: ajaxUrl,\n AjaxData: ajaxData,\n ReadyState: res && res.readyState,\n Status: res && res.status,\n StatusText: res && res.statusText,\n Navigator: ErrorReporter.GetNavigatorData()\n };\n console.error(\"Ajax error: \", errorDetails);\n $.ajax({\n url: ErrorReporter.Url,\n method: \"POST\",\n contentType: 'application/json',\n data: JSON.stringify(errorDetails),\n dataType: \"json\"\n });\n }\n catch (ex) {\n console.error(\"Error reporting Ajax error\", ex);\n }\n }\n static ReportError(statusText) {\n try {\n let errorDetails = {\n LocationHref: window.location.href,\n StatusText: statusText,\n Navigator: ErrorReporter.GetNavigatorData()\n };\n console.error(\"Error: \", errorDetails);\n $.ajax({\n url: ErrorReporter.Url,\n method: \"POST\",\n contentType: 'application/json',\n data: JSON.stringify(errorDetails),\n dataType: \"json\"\n });\n }\n catch (ex) {\n console.error(\"Error reporting error\", ex);\n }\n }\n static ReportErrorWithReadyData(statusText, errorDetails, shallLogErrorInConsole) {\n try {\n errorDetails.StatusText = statusText;\n errorDetails.Navigator = ErrorReporter.GetNavigatorData();\n if (shallLogErrorInConsole)\n console.error(\"Error with ready data: \", errorDetails);\n $.ajax({\n url: ErrorReporter.Url,\n method: \"POST\",\n contentType: 'application/json',\n data: JSON.stringify(errorDetails),\n dataType: \"json\"\n });\n }\n catch (ex) {\n console.error(\"Error reporting error\", ex);\n }\n }\n static GetNavigatorData() {\n try {\n let brandsFromBrowser = window.navigator?.userAgentData?.brands;\n let brands = brandsFromBrowser\n ? brandsFromBrowser.map((b) => ({\n brand: b.brand,\n version: b.version\n }))\n : null;\n let navigatorDetails = {\n AppCodename: window.navigator && window.navigator.appCodeName,\n AppName: window.navigator && window.navigator.appName,\n AppVersion: window.navigator && window.navigator.appVersion,\n Platform: window.navigator && window.navigator.platform,\n Product: window.navigator && window.navigator.product,\n UserAgent: window.navigator && window.navigator.userAgent,\n Brands: brands\n };\n return navigatorDetails;\n }\n catch (ex) {\n console.error(\"Error getting navigator data\", ex);\n return null;\n }\n }\n static RegisterGlobalErrorHandlers() {\n window.addEventListener('error', function (event) {\n let errorDetails = {\n Message: event.message,\n Filename: event.filename,\n Lineno: event.lineno,\n Colno: event.colno,\n Error: {\n Name: event.error?.name,\n Message: event.error?.message,\n Code: event.error?.code,\n Stack: event.error?.stack\n }\n };\n ErrorReporter.ReportErrorWithReadyData(\"Unhandled error from listener\", errorDetails, false);\n });\n window.addEventListener('unhandledrejection', function (event) {\n let errorDetails = {\n Reason: event.reason,\n };\n ErrorReporter.ReportErrorWithReadyData(\"Unhandled rejection\", errorDetails, false);\n });\n }\n}\nwindow.ErrorReporter = ErrorReporter;\n","$.validator.addMethod('conditionalrequired', function (value, element, parameters) {\r\n var andExpressions = JSON.parse(parameters['expression']);\r\n var result = true;\r\n\r\n andExpressions.forEach(function (andExpression) {\r\n var _res = false;\r\n andExpression.forEach(function (orExpression) {\r\n var actualValue = _cast(_getElementValue(orExpression.Property), typeof orExpression.Value);\r\n if (_compare(actualValue, orExpression.Value, orExpression.Operator.Text)) {\r\n _res = true;\r\n return;\r\n }\r\n });\r\n if (!_res) {\r\n result = false;\r\n return;\r\n }\r\n });\r\n\r\n function _cast(val, type) {\r\n if (!val)\r\n return null;\r\n\r\n switch (type) {\r\n case 'number':\r\n return +val;\r\n case 'boolean':\r\n return (val === 'true' || val === 'True');\r\n case 'string':\r\n default:\r\n return val;\r\n }\r\n }\r\n\r\n function _getElementValue(name) {\r\n var els = document.getElementsByName(name);\r\n var el1 = els[0];\r\n\r\n if (!els.length)\r\n return null;\r\n if (els.length > 1) {\r\n if (el1.tagName.toLowerCase() === 'input' && (el1.type === 'radio' || el1.type === 'checkbox'))\r\n for (var i = 0; i < els.length; i++) {\r\n var el = els[i];\r\n if (el.checked)\r\n return el.value;\r\n }\r\n } else {\r\n if (el1.tagName.toLowerCase() === 'input' && el1.type === 'checkbox')\r\n return (el1.checked ? el1.value : null);\r\n else\r\n return el1.value;\r\n }\r\n return null;\r\n }\r\n\r\n function _compare(actualValue, compareValue, operator) {\r\n switch (operator) {\r\n case '==':\r\n return actualValue === compareValue;\r\n case '!=':\r\n return actualValue !== compareValue;\r\n case '>':\r\n return actualValue > compareValue;\r\n case '<':\r\n return actualValue < compareValue;\r\n case '>=':\r\n return actualValue >= compareValue;\r\n case '<=':\r\n return actualValue <= compareValue;\r\n default:\r\n throw 'wrong operator';\r\n }\r\n }\r\n\r\n if (result)\r\n return $.validator.methods.required.call(this, value, element, parameters);\r\n\r\n return true;\r\n});\r\n\r\n$.validator.unobtrusive.adapters.add('conditionalrequired', ['expression'], function (options) {\r\n options.rules['conditionalrequired'] = { expression: options.params['expression'] };\r\n options.messages['conditionalrequired'] = options.message;\r\n});","\"use strict\";\r\n\r\n/* Definition for the durationAsStringFormatting validation rule */\r\nif ($.validator && $.validator.unobtrusive) {\r\n\t$.validator.unobtrusive.adapters.add('durationAsStringFormatting', ['isTimeOfDay'], function (options) {\r\n\t\toptions.rules['durationAsStringFormatting'] = {\r\n\t\t\t'isTimeOfDay': options.params['isTimeOfDay']\r\n\t\t};\r\n\t\toptions.messages['durationAsStringFormatting'] = options.message;\r\n\t});\r\n\r\n\t$.validator.addMethod('durationAsStringFormatting', function (value, element, params) {\r\n\t\tvalue = value.replace(/\\s$/, '');\r\n\r\n\t\tif (isNullOrWhiteSpace(value))\r\n\t\t\treturn true;\r\n\t\tif (params['isTimeOfDay'] === 'False' && $(element).is(\":focus\")) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif (params['isTimeOfDay'] === 'True' && value.length < 4 && $(element).is(\":focus\")) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tvar valueInMinutes = timeDurationToMinutes(value, params['isTimeOfDay'] === 'False');\r\n\r\n\t\tif (isNaN(valueInMinutes))\r\n\t\t\treturn true;\r\n\r\n\t\t$(element).val(valueInMinutes.toDurationString(true, false));\r\n\r\n\t\treturn true;\r\n\t});\r\n}\r\n\r\n/* Definition for the durationAsStringGreaterThan validation rule */\r\nif ($.validator && $.validator.unobtrusive) {\r\n\t$.validator.unobtrusive.adapters.add('durationAsStringGreaterThan', ['minValueInMinutes', 'allowEqualValues'], function (options) {\r\n\t\toptions.rules['durationAsStringGreaterThan'] = {\r\n\t\t\t// Reading the parameters uses the case as in the parameter list of this function; setting the names is the same as used afterwards in $.validator.addMethod\r\n\t\t\t'minValueInMinutes': options.params['minValueInMinutes'],\r\n\t\t\t'allowEqualValues': options.params['allowEqualValues']\r\n\t\t};\r\n\t\toptions.messages['durationAsStringGreaterThan'] = options.message;\r\n\t});\r\n\t$.validator.addMethod('durationAsStringGreaterThan', function (value, element, params) {\r\n\t\tvar minValueInMinutes = params['minValueInMinutes'];\r\n\t\tif (isNullOrWhiteSpace(value) || isNullOrWhiteSpace(minValueInMinutes))\r\n\t\t\treturn true;\r\n\r\n\t\tvar valueInMinutes = timeDurationToMinutes(value, true);\r\n\t\tvar minValueInMinutesInt = parseInt(minValueInMinutes);\r\n\t\tif (isNaN(valueInMinutes) || isNaN(minValueInMinutesInt))\r\n\t\t\treturn true;\r\n\t\treturn valueInMinutes > minValueInMinutes || (valueInMinutes === minValueInMinutes && params[\"allowEqualValues\"] === 'True');\r\n\t});\r\n}\r\n\r\n/* Definition for the durationAsStringGreaterThanOther validation rule */\r\nif ($.validator && $.validator.unobtrusive) {\r\n\t// Here parameter names can have a different case than when supplying them in GetClientValidationRules\r\n\t$.validator.unobtrusive.adapters.add('durationAsStringGreaterThanOther', ['otherPropertyName', 'allowEqualValues', 'evaluateWhenThisValueNull'], function (options) {\r\n\t\toptions.rules['durationAsStringGreaterThanOther'] = {\r\n\t\t\t// Reading the parameters uses the case as in the parameter list of this function; setting the names is the same as used afterwards in $.validator.addMethod\r\n\t\t\t'otherPropertyName': options.params['otherPropertyName'],\r\n\t\t\t'allowEqualValues': options.params['allowEqualValues'],\r\n\t\t\t'evaluateWhenThisValueNull': options.params['evaluateWhenThisValueNull']\r\n\t\t};\r\n\t\toptions.messages['durationAsStringGreaterThanOther'] = options.message;\r\n\t});\r\n\t$.validator.addMethod('durationAsStringGreaterThanOther', function (value, element, params) {\r\n\t\tvar otherValue = $('#' + params[\"otherPropertyName\"]).val();\r\n\t\tif (params[\"evaluateWhenThisValueNull\"] === 'True' && isNullOrWhiteSpace(value)) {\r\n\t\t\tvalue = \"0:00\";\r\n\t\t}\r\n\t\tif (isNullOrWhiteSpace(value) || isNullOrWhiteSpace(otherValue))\r\n\t\t\treturn true;\r\n\r\n\t\tvar valueInMinutes = timeDurationToMinutes(value, true);\r\n\t\tvar otherValueInMinutes = timeDurationToMinutes(otherValue, true);\r\n\t\tif (isNaN(valueInMinutes) || isNaN(otherValueInMinutes))\r\n\t\t\treturn true;\r\n\t\treturn valueInMinutes > otherValueInMinutes || (valueInMinutes === otherValueInMinutes && params[\"allowEqualValues\"] === 'True');\r\n\t});\r\n}\r\n\r\n/* Definition for the DurationAsStringSmallerThanOtherAttribute validation rule */\r\nif ($.validator && $.validator.unobtrusive) {\r\n\t// Here parameter names can have a different case than when supplying them in GetClientValidationRules\r\n\t$.validator.unobtrusive.adapters.add('durationAsStringSmallerThanOther', ['otherPropertyName', 'allowEqualValues'], function (options) {\r\n\t\toptions.rules['durationAsStringSmallerThanOther'] = {\r\n\t\t\t// Reading the parameters uses the case as in the parameter list of this function; setting the names is the same as used afterwards in $.validator.addMethod\r\n\t\t\t'otherPropertyName': options.params['otherPropertyName'],\r\n\t\t\t'allowEqualValues': options.params['allowEqualValues']\r\n\t\t};\r\n\t\toptions.messages['durationAsStringSmallerThanOther'] = options.message;\r\n\t});\r\n\t$.validator.addMethod('durationAsStringSmallerThanOther', function (value, element, params) {\r\n\t\tvar otherValue = $('#' + params[\"otherPropertyName\"]).val();\r\n\r\n\t\tif (isNullOrWhiteSpace(otherValue))\r\n\t\t\totherValue = null;\r\n\t\tif (isNullOrWhiteSpace(value))\r\n\t\t\tvalue = null;\r\n\t\tvar valueInMinutes = timeDurationToMinutes(value, true);\r\n\t\tvar otherValueInMinutes = timeDurationToMinutes(otherValue, true);\r\n\t\tif (isNaN(valueInMinutes) || isNaN(otherValueInMinutes))\r\n\t\t\treturn true;\r\n\r\n\t\treturn valueInMinutes < otherValueInMinutes || (valueInMinutes === otherValueInMinutes && params[\"allowEqualValues\"] === 'True');\r\n\r\n\t});\r\n}\r\n\r\n/* Definition for the ComputeDurationForOtherFromTotalThisAndMoreAttribute validation rule */\r\nif ($.validator && $.validator.unobtrusive) {\r\n\t// Here parameter names can have a different case than when supplying them in GetClientValidationRules\r\n\t$.validator.unobtrusive.adapters.add('computeDurationForOtherFromTotalThisAndMore', ['otherPropertyName', 'totalPropertyName', 'propertyNames'], function (options) {\r\n\t\toptions.rules['computeDurationForOtherFromTotalThisAndMore'] = {\r\n\t\t\t// Reading the parameters uses the case as in the parameter list of this function; setting the names is the same as used afterwards in $.validator.addMethod\r\n\t\t\t'otherPropertyName': options.params['otherPropertyName'],\r\n\t\t\t'totalPropertyName': options.params['totalPropertyName'],\r\n\t\t\t'propertyNames': options.params['propertyNames']\r\n\t\t};\r\n\t\toptions.messages['computeDurationForOtherFromTotalThisAndMore'] = options.message;\r\n\t});\r\n\t$.validator.addMethod('computeDurationForOtherFromTotalThisAndMore', function (value, element, params) {\r\n\r\n\t\tvar propertyNamesArray = JSON.parse(params[\"propertyNames\"]);\r\n\t\tvar allNull = true;\r\n\t\tfor (var k = 0; k < propertyNamesArray.length; k++) {\r\n\t\t\tif (!isNullOrWhiteSpace($('#' + propertyNamesArray[i]).val())) {\r\n\t\t\t\tallNull = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tvar totalValue = $('#' + params[\"totalPropertyName\"]).val();\r\n\t\tif (isNullOrWhiteSpace(value)) {\r\n\t\t\tif (allNull && isNullOrWhiteSpace(totalValue) ) {\r\n\t\t\t\t$('#' + params[\"otherPropertyName\"]).val(null);\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tvalue = 0;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (isNullOrWhiteSpace(totalValue))\r\n\t\t\ttotalValue = 0;\r\n\r\n\t\tif (totalValue === null)\r\n\t\t\ttotalValue = 0;\r\n\r\n\t\tvar totalValueInMinutes = timeDurationToMinutes(totalValue, true);\r\n\t\tvar thisValueInMinutes = timeDurationToMinutes(value, true);\r\n\r\n\t\tvar summedValueInMinutes = thisValueInMinutes;\r\n\t\tfor (var i = 0; i < propertyNamesArray.length; i++) {\r\n\t\t\tvar propertyValue = $('#' + propertyNamesArray[i]).val();\r\n\t\t\tif (isNullOrWhiteSpace(propertyValue))\r\n\t\t\t\tpropertyValue = null;\r\n\r\n\t\t\tvar propertyValueInMinutes = timeDurationToMinutes(propertyValue, true);\r\n\t\t\tif (isNaN(propertyValueInMinutes))\r\n\t\t\t\tpropertyValueInMinutes = 0;\r\n\r\n\t\t\tsummedValueInMinutes += propertyValueInMinutes;\r\n\t\t}\r\n\t\tif (totalValueInMinutes - summedValueInMinutes >= 0) {\r\n\t\t\t$('#' + params[\"otherPropertyName\"]).val((totalValueInMinutes - summedValueInMinutes).toDurationString(true, false));\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t});\r\n}\r\n/* Definition for the ComputeIntegerFromTotalAndOtherAsStringAttribute validation rule */\r\nif ($.validator && $.validator.unobtrusive) {\r\n\t// Here parameter names can have a different case than when supplying them in GetClientValidationRules\r\n\t$.validator.unobtrusive.adapters.add('computeIntegerForOtherFromTotalAndThis', ['otherPropertyName', 'totalPropertyName'], function (options) {\r\n\t\toptions.rules['computeIntegerForOtherFromTotalAndThis'] = {\r\n\t\t\t// Reading the parameters uses the case as in the parameter list of this function; setting the names is the same as used afterwards in $.validator.addMethod\r\n\t\t\t'otherPropertyName': options.params['otherPropertyName'],\r\n\t\t\t'totalPropertyName': options.params['totalPropertyName']\r\n\t\t};\r\n\t\toptions.messages['computeIntegerForOtherFromTotalAndThis'] = options.message;\r\n\t});\r\n\t$.validator.addMethod('computeIntegerForOtherFromTotalAndThis', function (value, element, params) {\r\n\t\tvar totalValue = $('#' + params[\"totalPropertyName\"]).val();\r\n\r\n\t\tif (isNullOrWhiteSpace(value)) {\r\n\t\t\tif (isNullOrWhiteSpace(totalValue)) {\r\n\t\t\t\t$('#' + params[\"otherPropertyName\"]).val(null);\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tvalue = 0;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (isNullOrWhiteSpace(value))\r\n\t\t\tvalue = 0;\r\n\r\n\t\tif (isNullOrWhiteSpace(totalValue))\r\n\t\t\ttotalValue = 0;\r\n\r\n\t\tvar totalValueInt = parseInt(totalValue);\r\n\t\tvar thisValueInt = parseInt(value);\r\n\t\tif (isNaN(totalValueInt) || isNaN(thisValueInt))\r\n\t\t\treturn true;\r\n\r\n\t\tif (totalValueInt - thisValueInt >= 0) {\r\n\t\t\t$('#' + params[\"otherPropertyName\"]).val(totalValueInt - thisValueInt);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\r\n\t});\r\n}\r\n/* Definition for the IntegerSmallerThanOtherAttribute validation rule */\r\nif ($.validator && $.validator.unobtrusive) {\r\n\t// Here parameter names can have a different case than when supplying them in GetClientValidationRules\r\n\t$.validator.unobtrusive.adapters.add('integerSmallerThanOther', ['otherPropertyName', 'allowEqualValues'], function (options) {\r\n\t\toptions.rules['integerSmallerThanOther'] = {\r\n\t\t\t// Reading the parameters uses the case as in the parameter list of this function; setting the names is the same as used afterwards in $.validator.addMethod\r\n\t\t\t'otherPropertyName': options.params['otherPropertyName'],\r\n\t\t\t'allowEqualValues': options.params['allowEqualValues']\r\n\t\t};\r\n\t\toptions.messages['integerSmallerThanOther'] = options.message;\r\n\t});\r\n\t$.validator.addMethod('integerSmallerThanOther', function (value, element, params) {\r\n\t\tvar otherValue = $('#' + params[\"otherPropertyName\"]).val();\r\n\t\tif (isNullOrWhiteSpace(otherValue))\r\n\t\t\totherValue = 0;\r\n\t\tif (isNullOrWhiteSpace(value))\r\n\t\t\tvalue = 0;\r\n\r\n\t\tvar valueInMinutes = parseInt(value);\r\n\t\tvar otherValueInMinutes = parseInt(otherValue);\r\n\t\tif (isNaN(valueInMinutes) || isNaN(otherValueInMinutes))\r\n\t\t\treturn true;\r\n\r\n\t\treturn valueInMinutes < otherValueInMinutes || (valueInMinutes === otherValueInMinutes && params[\"allowEqualValues\"] === 'True');\r\n\t});\r\n}\r\n\r\n\r\n/* Definition for the IntegerGreaterThanOtherAttribute validation rule */\r\nif ($.validator && $.validator.unobtrusive) {\r\n\t// Here parameter names can have a different case than when supplying them in GetClientValidationRules\r\n\t$.validator.unobtrusive.adapters.add('integerGreaterThanOther', ['otherPropertyName', 'allowEqualValues'], function (options) {\r\n\t\toptions.rules['integerGreaterThanOther'] = {\r\n\t\t\t// Reading the parameters uses the case as in the parameter list of this function; setting the names is the same as used afterwards in $.validator.addMethod\r\n\t\t\t'otherPropertyName': options.params['otherPropertyName'],\r\n\t\t\t'allowEqualValues': options.params['allowEqualValues']\r\n\t\t};\r\n\t\toptions.messages['integerGreaterThanOther'] = options.message;\r\n\t});\r\n\t$.validator.addMethod('integerGreaterThanOther', function (value, element, params) {\r\n\t\tvar otherValue = $('#' + params[\"otherPropertyName\"]).val();\r\n\t\tif (isNullOrWhiteSpace(otherValue))\r\n\t\t\totherValue = 0;\r\n\t\tif (isNullOrWhiteSpace(value))\r\n\t\t\tvalue = 0;\r\n\r\n\t\tvar valueInMinutes = parseInt(value);\r\n\t\tvar otherValueInMinutes = parseInt(otherValue);\r\n\t\tif (isNaN(valueInMinutes) || isNaN(otherValueInMinutes))\r\n\t\t\treturn true;\r\n\r\n\t\treturn valueInMinutes > otherValueInMinutes || (valueInMinutes === otherValueInMinutes && params[\"allowEqualValues\"] === 'True');\r\n\t});\r\n}\r\n","export class AnimationManager {\n static getCurrentDuration() {\n return AnimationManager.animationsEnabled ? 300 : 0;\n }\n}\nAnimationManager.animationsEnabled = false;\nwindow.AnimationManager = AnimationManager;\n$(function () {\n setTimeout(function () {\n AnimationManager.animationsEnabled = true;\n }, 500);\n});\n","export class Base64 {\n static getBase64Code(charCode) {\n if (charCode >= Base64.base64codes.length) {\n throw new Error(\"Unable to parse base64 string.\");\n }\n const code = Base64.base64codes[charCode];\n if (code === 255) {\n throw new Error(\"Unable to parse base64 string.\");\n }\n return code;\n }\n static bytesToBase64(bytes) {\n let result = '', i, l = bytes.length;\n for (i = 2; i < l; i += 3) {\n result += Base64.base64abc[bytes[i - 2] >> 2];\n result += Base64.base64abc[((bytes[i - 2] & 0x03) << 4) | (bytes[i - 1] >> 4)];\n result += Base64.base64abc[((bytes[i - 1] & 0x0F) << 2) | (bytes[i] >> 6)];\n result += Base64.base64abc[bytes[i] & 0x3F];\n }\n if (i === l + 1) {\n result += Base64.base64abc[bytes[i - 2] >> 2];\n result += Base64.base64abc[(bytes[i - 2] & 0x03) << 4];\n result += \"==\";\n }\n if (i === l) {\n result += Base64.base64abc[bytes[i - 2] >> 2];\n result += Base64.base64abc[((bytes[i - 2] & 0x03) << 4) | (bytes[i - 1] >> 4)];\n result += Base64.base64abc[(bytes[i - 1] & 0x0F) << 2];\n result += \"=\";\n }\n return result;\n }\n static base64ToBytes(str) {\n if (str.length % 4 !== 0) {\n throw new Error(\"Unable to parse base64 string.\");\n }\n const index = str.indexOf(\"=\");\n if (index !== -1 && index < str.length - 2) {\n throw new Error(\"Unable to parse base64 string.\");\n }\n let missingOctets = str.endsWith(\"==\") ? 2 : str.endsWith(\"=\") ? 1 : 0, n = str.length, result = new Uint8Array(3 * (n / 4)), buffer;\n for (let i = 0, j = 0; i < n; i += 4, j += 3) {\n buffer =\n Base64.getBase64Code(str.charCodeAt(i)) << 18 |\n Base64.getBase64Code(str.charCodeAt(i + 1)) << 12 |\n Base64.getBase64Code(str.charCodeAt(i + 2)) << 6 |\n Base64.getBase64Code(str.charCodeAt(i + 3));\n result[j] = buffer >> 16;\n result[j + 1] = (buffer >> 8) & 0xFF;\n result[j + 2] = buffer & 0xFF;\n }\n return result.subarray(0, result.length - missingOctets);\n }\n static base64encode(str, encoder = new TextEncoder()) {\n return Base64.bytesToBase64(encoder.encode(str));\n }\n static base64decode(str, decoder = new TextDecoder()) {\n return decoder.decode(Base64.base64ToBytes(str));\n }\n}\nBase64.base64abc = [\n \"A\", \"B\", \"C\", \"D\", \"E\", \"F\", \"G\", \"H\", \"I\", \"J\", \"K\", \"L\", \"M\",\n \"N\", \"O\", \"P\", \"Q\", \"R\", \"S\", \"T\", \"U\", \"V\", \"W\", \"X\", \"Y\", \"Z\",\n \"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\", \"i\", \"j\", \"k\", \"l\", \"m\",\n \"n\", \"o\", \"p\", \"q\", \"r\", \"s\", \"t\", \"u\", \"v\", \"w\", \"x\", \"y\", \"z\",\n \"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"+\", \"/\"\n];\nBase64.base64codes = [\n 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,\n 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,\n 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 62, 255, 255, 255, 63,\n 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 255, 255, 255, 0, 255, 255,\n 255, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,\n 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 255, 255, 255, 255, 255,\n 255, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,\n 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51\n];\n","\"use strict\";\nclass BrowserDetector {\n}\nBrowserDetector.IsOpera = navigator.userAgent.toLowerCase().indexOf(\"op\") > -1;\nBrowserDetector.IsChrome = navigator.userAgent.indexOf('Chrome') > -1 && !BrowserDetector.IsOpera;\nBrowserDetector.IsExplorer = navigator.userAgent.indexOf('MSIE') > -1;\nBrowserDetector.IsFirefox = navigator.userAgent.indexOf('Firefox') > -1;\nBrowserDetector.IsSafari = navigator.userAgent.indexOf(\"Safari\") > -1 && !BrowserDetector.IsChrome;\nBrowserDetector.IsEdge = navigator.userAgent.indexOf(\"Edge\") > -1;\nwindow.BrowserDetector = BrowserDetector;\n","\"use strict\";\r\n\r\n/* Change the options in a select (drop down) */\r\nwindow.replaceOptions = function (selectId, leaveFirst, newOptions) {\r\n\ttry {\r\n\t\tvar el = $('#' + selectId);\r\n\t\tvar value = el.val();\r\n\t\tif (leaveFirst)\r\n\t\t\t$('#' + selectId + ' option:gt(0)').remove();\r\n\t\telse\r\n\t\t\t$('#' + selectId + ' option').remove();\r\n\t\tvar $el = $(\"#\" + selectId);\r\n\t\t$.each(newOptions, function (value, text) {\r\n\t\t\t$el.append($(\"\").attr(\"value\", value).text(text));\r\n\t\t});\r\n\t\t// Reset the value if it exists in the new values as well\r\n\t\tif (value && $(\"#\" + selectId + \" option[value='\" + value + \"']\").length > 0)\r\n\t\t\tel.val(value);\r\n\t} catch (ex) {\r\n\t\tconsole.error(ex);\r\n\t}\r\n};\r\n\r\n/* Change the options in one drop down based on the selection in another */\r\nwindow.declareDependentDropDowns = function (selectId, dependentId, optionsDict) {\r\n\t$('#' + selectId).change(function () {\r\n\t\tvar newOptions = {};\r\n\r\n\t\tfor (var i = 0; i < optionsDict.length; i += 1) {\r\n\t\t\tif (optionsDict[i].value === this.value) {\r\n\t\t\t\tnewOptions = optionsDict[i].options;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treplaceOptions(dependentId, true, newOptions);\r\n\t});\r\n\r\n\t$('#' + selectId).change();\t// Execute once\r\n};\r\n\r\nwindow.closestOfClass = function (element, dependentSelector) {\r\n\tif (dependentSelector)\r\n\t\treturn element.closest(dependentSelector);\r\n\treturn element;\r\n};\r\n\r\n/* Shows and hides elements based on the data attribute of a select (drop down) */\r\nwindow.declareElementVisibleForSelectValueDataAttribute = function (selectId, dependentId, dependentSelector, attributeName, visibleOptions, ignoreIfValuePresentInElementIds, triggerChangeForOptionNoneOtherElementIds) {\r\n\tdependentId = '#' + dependentId;\r\n\r\n\t$('#' + selectId).change(function () {\r\n\t\tvar duration = AnimationManager.getCurrentDuration();\r\n\t\tvar ignore = false;\r\n\t\tfor (var i = 0; i < ignoreIfValuePresentInElementIds.length; i += 1) {\r\n\t\t\tif ($('#' + ignoreIfValuePresentInElementIds[i]).val()) {\r\n\t\t\t\tignore = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (ignore !== true) {\r\n\t\t\tvar currentSelected = $(this).children(\"option:selected\");\r\n\t\t\t// Radio button groups (created using method StandardRadioBoxButtonGroupFor) do not provide the value directly\r\n\t\t\tvar attribute = currentSelected.attr('data-' + attributeName);\r\n\t\t\tif (attribute) {\r\n\r\n\t\t\t\tvar dependent = $(dependentId);\r\n\t\t\t\tif ($.inArray(attribute, visibleOptions) < 0 && attribute) {\r\n\t\t\t\t\tclosestOfClass(dependent, dependentSelector).hide(duration, function () {\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// To revalidate on show (because otherwise it shows the error in some situations, e.g. when showing the element) put dependent.valid(); in the completed function below\r\n\t\t\t\t\t// However, if enabled, it will cause some agressive errors, e.g. when a new license is created and language proficiency is selected as type, the level immediately shows an error without giving the user a chance to enter something\r\n\t\t\t\t\tclosestOfClass(dependent, dependentSelector).show(duration, function () {\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (var i = 0; i < triggerChangeForOptionNoneOtherElementIds.length; i += 1) {\r\n\t\t\t$('#' + triggerChangeForOptionNoneOtherElementIds[i]).change();\r\n\t\t}\r\n\t});\r\n\r\n\t$('#' + selectId).change();\t// Execute once\r\n};\r\n/* Shows and hides elements based on the value in a select (drop down) */\r\nwindow.declareElementVisibleForSelectValues = function (selectId, dependentId, dependentSelector, visibleOptions) {\r\n\tdependentId = '#' + dependentId;\r\n\t$('#' + selectId).on('change', function () {\r\n\t\tvar duration = AnimationManager.getCurrentDuration();\r\n\t\tvar $this = $(this);\r\n\r\n\t\t// Radio button groups (created using method StandardRadioBoxButtonGroupFor) do not provide the value directly\r\n\t\tvar val = $this.is(':checkbox') ? $this.prop('checked').toString() : this.value;\r\n\t\tif (val === undefined && this.tagName === \"DIV\") {\r\n\t\t\tval = $('input:radio[name=' + selectId + ']:checked').val();\r\n\t\t}\r\n\t\tvar dependent = $(dependentId);\r\n\t\tif ($.inArray(val, visibleOptions) < 0) {\r\n\t\t\tclosestOfClass(dependent, dependentSelector).hide(duration, function () {\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\t// To revalidate on show (because otherwise it shows the error in some situations, e.g. when showing the element) put dependent.valid(); in the completed function below\r\n\t\t\t// However, if enabled, it will cause some agressive errors, e.g. when a new license is created and language proficiency is selected as type, the level immediately shows an error without giving the user a chance to enter something\r\n\t\t\tclosestOfClass(dependent, dependentSelector).show(duration, function () {\r\n\t\t\t});\r\n\t\t}\r\n\t});\r\n\r\n\t$('#' + selectId).change();\t// Execute once\r\n};\r\n\r\n/* Shows and hides elements based on the value of the checkbox */\r\nwindow.declareElementVisibleForCheckedCheckBox = function (checkboxId, dependentId) {\r\n\tdependentId = '#' + dependentId;\r\n\t$('#' + checkboxId).change(function () {\r\n\t\tvar duration = AnimationManager.getCurrentDuration();\r\n\t\tvar dependent = $(dependentId);\r\n\t\tif (this.checked) {\r\n\t\t\tdependent.closest('.form-group').show(duration, function () {\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tdependent.closest('.form-group').hide(duration, function () {\r\n\t\t\t});\r\n\t\t}\r\n\t});\r\n\t$('#' + checkboxId).trigger('change');\t// Execute once\r\n};\r\n\r\nwindow.setDataRangeValidatorDynamically = function (upperLimit, targetId, isTime = false) {\r\n\t// Workaround to dynamically change the jQuery validator when number of e.g. landings changes.\r\n\t// since the validator is loaded once at page load, just changing attributes does not work and custom rules have to be applied\r\n\tupperLimit = parseInt(upperLimit);\r\n\tvar targetElement = $('#' + targetId);\r\n\r\n\tvar msg = null;\r\n\tif (isTime === false) {\r\n\t\tmsg = targetElement.attr(\"data-val-range\");\r\n\t\tmsg = msg.replace(/\\d+$/, upperLimit);\r\n\r\n\t\ttargetElement.rules(\"remove\", \"range\");\r\n\t\ttargetElement.rules(\"add\", {\r\n\t\t\trange: [0, upperLimit],\r\n\t\t\tmessages: {\r\n\t\t\t\trange: msg\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\telse {\r\n\t\tmsg = targetElement.attr(\"data-val-regex\");\r\n\t\tmsg = msg.replace(/\\d+$/, upperLimit.toDurationString(true, false));\r\n\t\ttargetElement.rules(\"remove\", \"regex\");\r\n\t\ttargetElement.rules(\"add\", {\r\n\t\t\trange: [0, upperLimit],\r\n\t\t\tmessages: {\r\n\t\t\t\trange: msg\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\t// make target lose focus to trigger validator\r\n\ttargetElement.blur();\r\n};\r\n\r\nwindow.showElementForCheckboxAndSelectValue = function (dependentId, checkboxId, selectVal, visibleOptions) {\r\n\tvar duration = 300;\r\n\tvar dependent = $(dependentId);\r\n\tif ($.inArray(selectVal, visibleOptions) >= 0 && $('#' + checkboxId).is(':checked')) {\r\n\t\tdependent.closest('.form-group').show(duration, function () {\r\n\t\t});\r\n\t}\r\n\telse {\r\n\t\tdependent.closest('.form-group').hide(duration, function () {\r\n\t\t});\r\n\t}\r\n};\r\n\r\nwindow.declareElementVisibleForSelectValueAndCheckBox = function (selectId, dependentId, checkboxId, visibleOptions) {\r\n\tdependentId = '#' + dependentId;\r\n\t$('#' + selectId).change(function () {\r\n\t\tvar selectVal = $('#' + selectId).val();\r\n\t\tshowElementForCheckboxAndSelectValue(dependentId, checkboxId, selectVal, visibleOptions);\r\n\t});\r\n\t$('#' + checkboxId).change(function () {\r\n\t\tvar selectVal = $('#' + selectId).val();\r\n\t\tshowElementForCheckboxAndSelectValue(dependentId, checkboxId, selectVal, visibleOptions);\r\n\t});\r\n\t$('#' + selectId).change();\t// Execute once\r\n\t$('#' + checkboxId).change();\t// Execute once\r\n\r\n};\r\n\r\n/* Moves an element before another one if it is not already before it */\r\nwindow.moveBefore = function (elementId, otherId, duration) {\r\n\tvar element = $('#' + elementId).closest('.form-group');\r\n\tvar other = $('#' + otherId).closest('.form-group');\r\n\t// Check if visible\r\n\tif (element.is(\":visible\") && other.is(\":visible\")) {\r\n\t\tvar isBefore = element.nextAll().filter(other).length !== 0;\r\n\t\tif (!isBefore) {\r\n\t\t\tif (!AnimationManager.animationsEnabled)\r\n\t\t\t\tduration = 0;\r\n\t\t\t// Revalidate on show because otherwise it shows the error in some situations, e.g. when showing the element\r\n\t\t\telement.insertBefore(other).hide().show(duration, function () { $('#' + elementId).valid(); });\r\n\t\t}\r\n\t}\r\n};\r\n\r\n/* Shows and hides elements based on the value in a select (drop down) */\r\nwindow.declareElementBeforeAnotherForSelectValues = function (selectId, elementId, otherId, visibleOptions) {\r\n\t$('#' + selectId).change(function () {\r\n\t\t// Radio button groups (created using method StandardRadioBoxButtonGroupFor) do not provide the value directly\r\n\t\tvar val = this.value;\r\n\t\tif (val === undefined && this.tagName === \"DIV\") {\r\n\t\t\tval = $('input:radio[name=' + selectId + ']:checked').val();\r\n\t\t}\r\n\t\tif ($.inArray(val, visibleOptions) < 0)\r\n\t\t\tmoveBefore(elementId, otherId);\r\n\t});\r\n\r\n\t$('#' + selectId).change();\t// Execute once\r\n};\r\n\r\n/*Combines the functionalities of declareElementVisibleForSelectValues and declareElementBeforeAnotherForSelectValues into one call.\r\nThe moveBefore logic has been moved into the body of the show callback to ensure sequential animation and prevent race conditions.*/\r\nwindow.declareElementVisibleForSelectValuesBeforeAnother = function (selectId, elementId, selectOptions, otherId, visibleOptions) {\r\n\tvar dependentId = '#' + elementId;\r\n\t$('#' + selectId).change(function () {\r\n\t\tvar duration = AnimationManager.getCurrentDuration();\r\n\r\n\t\t// Radio button groups (created using method StandardRadioBoxButtonGroupFor) do not provide the value directly\r\n\t\tvar val = this.value;\r\n\t\tif (val === undefined && this.tagName === \"DIV\") {\r\n\t\t\tval = $('input:radio[name=' + selectId + ']:checked').val();\r\n\t\t}\r\n\t\tvar dependent = $(dependentId);\r\n\t\tif ($.inArray(val, selectOptions) < 0) {\r\n\t\t\tclosestOfClass(dependent, '.form-group').hide(duration, function () {\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tclosestOfClass(dependent, '.form-group').show(duration, function () { /*dependent.valid();*/ });//Revalidate on show because otherwise it shows the error in some situations, e.g. when showing the element\r\n\t\t\tif ($.inArray(val, visibleOptions) < 0) {\r\n\t\t\t\tvar element = $('#' + elementId).closest('.form-group');\r\n\t\t\t\tvar other = $('#' + otherId).closest('.form-group');\r\n\t\t\t\tvar isBefore = element.nextAll().filter(other).length !== 0;\r\n\t\t\t\tif (!isBefore) {\r\n\t\t\t\t\t// Revalidate on show because otherwise it shows the error in some situations, e.g. when showing the element\r\n\t\t\t\t\telement.insertBefore(other).hide().show(duration, function () { /*$('#' + elementId).valid();*/ });\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\r\n\t$('#' + selectId).change();\t// Execute once\r\n};\r\n\r\n/* Enable/disable elements based on other element selection */\r\nwindow.declareElementDisabledForNonNullValuesInAnother = function (selectId, elementId) {\r\n\t$('#' + selectId).change(function () {\r\n\t\tvar element = document.getElementById(elementId);\r\n\t\tif ($(this).val())\r\n\t\t\telement.disabled = true;\r\n\t\telse\r\n\t\t\telement.disabled = false;\r\n\t});\r\n\r\n\t// Execute the change event once to handle editing attempts\r\n\t$('#' + selectId).trigger(\"change\");\r\n};\r\n/* END: Enable/disable elements based on other element selection */\r\n\r\n// InputControlExtensions\r\nfunction InputControlExtensions() {\r\n}\r\n\r\nInputControlExtensions.setChecked = function (elementId, value) {\r\n\tvar elementById = document.getElementById(elementId);\r\n\tvar elementsByName = document.getElementsByName(elementId);\t// There is a hidden element with the same name for disabled checkboxes\r\n\r\n\tvar valueStr = value.toString();\r\n\tvalueStr = valueStr.toLowerCase();\r\n\tif (valueStr === \"true\") {\r\n\t\tif (elementById)\r\n\t\t\telementById.checked = true;\r\n\t\telementsByName.forEach(function (element, index) {\r\n\t\t\tif (element.nodeName === \"INPUT\" && element.type === \"hidden\") {\r\n\t\t\t\telement.value = \"true\";\r\n\t\t\t}\r\n\t\t});\r\n\t} else {\r\n\t\tif (elementById)\r\n\t\t\telementById.checked = false;\r\n\t\telementsByName.forEach(function (element, index) {\r\n\t\t\tif (element.nodeName === \"INPUT\" && element.type === \"hidden\") {\r\n\t\t\t\telement.value = \"false\";\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n};\r\n\r\nInputControlExtensions.setDisabled = function (elementId, value) {\r\n\tvar elementById = document.getElementById(elementId);\r\n\r\n\tif (elementById) {\r\n\t\tvar $parent = $(elementById).closest('.custom-checkbox, .custom-radio-button');\r\n\r\n\t\tvar valueStr = value.toString();\r\n\t\tvalueStr = valueStr.toLowerCase();\r\n\t\tif (valueStr === \"true\") {\r\n\t\t\telementById.disabled = true;\r\n\t\t\t$parent.addClass('disabled');\r\n\t\t} else {\r\n\t\t\telementById.disabled = false;\r\n\t\t\t$parent.removeClass('disabled');\r\n\t\t}\r\n\t}\r\n};\r\n\r\nwindow.InputControlExtensions = InputControlExtensions;","\"use strict\";\r\n\r\nwindow.getCookieValue = function getCookieValue(name, key) {\r\n\treturn Cookies.get(`${name}.${key}`);\r\n}\r\n\r\nwindow.setCookieValue = function setCookieValue(name, key, value, expires) {\r\n\tCookies.set(`${name}.${key}`, value, { expires: expires || new Date(9999, 12, 31) });\r\n};","\"use strict\";\nfunction showDialog(modalId, resizable, draggable = true, callback, reShowIfAlreadyVisible = true) {\n if (!reShowIfAlreadyVisible && $(`#${modalId}`).is(`:visible`))\n return;\n $(`#${modalId}.modal`).appendTo(document.body);\n let iframe = $(`#${modalId} .modal-dialog .modal-content .modal-body iframe`);\n if (iframe) {\n let dataSrc = iframe.attr('data-src');\n if (dataSrc)\n iframe.attr('src', dataSrc);\n }\n if (draggable !== false) {\n $(`#${modalId} .modal-dialog`).draggable();\n }\n if (resizable) {\n $(`#${modalId} .modal-content`).resizable();\n }\n $(`#${modalId}`).on(`shown.bs.modal`, function (e) {\n $(document).off('focusin.modal');\n if (callback) {\n callback();\n }\n });\n $(`#${modalId}`).modal();\n}\nwindow.showDialog = showDialog;\nfunction hideDialog(modalId) {\n $(`#${modalId}`).modal(`hide`);\n}\nwindow.hideDialog = hideDialog;\n","export class FileSizeValidator {\n static validateSize(fileId, maxSizeInMB) {\n let fi = document.getElementById(fileId);\n return FileSizeValidator.validateSizeForInput(fi, maxSizeInMB, null, null);\n }\n static validateSizeForInput(fi, maxSizeInMB, title = null, message = null) {\n if (maxSizeInMB && maxSizeInMB > 0) {\n if (fi.files && fi.files.length > 0) {\n for (let i = 0; i <= fi.files.length - 1; i++) {\n let file = fi.files.item(i);\n if (file) {\n let result = file.size <= maxSizeInMB * 1024 * 1024;\n if (!result && title && message) {\n SwalEx.alertCustom(title, message, null, true, 'fal fa-triangle-exclamation status-warning');\n }\n return result;\n }\n }\n }\n }\n return true;\n }\n}\nwindow.FileSizeValidator = FileSizeValidator;\n","import { PleaseWait } from './pleaseWait';\nimport { ErrorReporter } from './ErrorReporter';\nimport { FileSizeValidator } from './fileSizeValidator';\nexport class FileUploadManager {\n constructor(options) {\n let me = this;\n this.postedFileElement = document.getElementById(options.PostedFileId);\n if (this.postedFileElement) {\n if (options.CustomButtonId) {\n let customButtonElement = document.getElementById(options.CustomButtonId);\n if (customButtonElement) {\n customButtonElement.addEventListener(\"click\", function () {\n me.Browse();\n });\n }\n }\n me.postedFileElement.addEventListener(\"change\", function () {\n let fullPath = me.postedFileElement.value;\n let fileName = fullPath.split(/(\\\\|\\/)/g).pop() ?? '';\n let fileNameElement = document.getElementById(options.FileNameId);\n if (fileNameElement)\n fileNameElement.innerHTML = fileName;\n let nameElement = document.getElementById(options.NameId);\n if (nameElement) {\n let fileNameWithoutExt = fileName.replace(/\\.[^/.]+$/, \"\");\n nameElement.value = fileNameWithoutExt;\n }\n let isValidSize = FileSizeValidator.validateSize(options.PostedFileId, options.MaxSizeInMB);\n if (fileNameElement && options.MaxFileSizeExceededError && !isValidSize)\n fileNameElement.innerHTML += `' + resultMessage + '
\\\r\n\t\t${text}