PageSourceSearch

https://members.myiep.uk/3686.33098ca246e3b44b.js

js myiep.uk collected 2026-10-04 08:46:24 UTC 60,158 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkVeryConnect=self.webpackChunkVeryConnect||[]).push([[3686],{32359:(G,B,e)=>{e.d(B,{h:()=>Y});var o=e(64762),y=e(78425),t=e(14026),T=e(52805),M=e(33606),U=e(8194),D=e(95517),S=e(56625),F=e(85597),W=e(35673),V=e(85032),K=e(15859),A=e(30450),P=e(79903),C=e(34070),h=e(45339),i=e(43073),m=e(59718),u=e(97076),p=e(33345),d=e(4247),w=e(95877),E=e(97482),J=e(54074),s=e(8592),c=e(76473),v=e(2354),R=e(56788),I=e(92362);let b=(()=>{class r extends I.k{constructor(){super(),this.value=null}ngOnChanges(n){"spec"in n&&this.specChanged(this.spec)}makeQuerystring(n){return{category:"custom-form",...n.querystring}}specChanged(n){this.query=this.makeQuerystring(n);for(const[f,x]of Object.entries(this.query))null==x&&delete this.query[f]}}return r.\u0275fac=function(n){return new(n||r)},r.\u0275dir=t.lG2({type:r,inputs:{spec:"spec"},features:[t.qOj,t.TTD]}),r})();var Z=e(64177),g=e(61225),l=e(10218),a=e(62174),O=e(50339),L=e(61958),N=e(64683),$=e(95612),z=e(46477),X=e(41157),st=e(61322),it=e(39879),lt=e(99492),at=e(78611);function ct(r,_){if(1&r&&(t.TgZ(0,"strong"),t._uU(1),t.ALo(2,"tr"),t.qZA(),t.TgZ(3,"span"),t._uU(4),t.qZA()),2&r){const n=t.oxw();t.xp6(1),t.lnq(""," ","",t.lcZ(2,4,"viewFile"),":"," ",""),t.xp6(3),t.Oqu(n.value.filename)}}function dt(r,_){1&r&&t._UZ(0,"dot-separator")}function ut(r,_){if(1&r&&(t._UZ(0,"strong",11),t.YNc(1,dt,1,0,"dot-separator",12)),2&r){const n=t.oxw();t.Q6J("translate","noFileUploaded"),t.xp6(1),t.Q6J("ngIf",n.uploadError)}}function pt(r,_){if(1&r&&(t.TgZ(0,"a",13),t.GkF(1,14),t.qZA()),2&r){const n=t.oxw(),f=t.MAs(1);t.Q6J("href",n.value.url,t.LSH),t.xp6(1),t.Q6J("ngTemplateOutlet",f)}}function mt(r,_){if(1&r&&(t.TgZ(0,"strong",15),t._uU(1),t.qZA()),2&r){const n=t.oxw();t.xp6(1),t.Oqu(n.uploadError)}}let ht=(()=>{class r extends b{ngOnInit(){this.opts={concurrency:Number.MAX_VALUE}}onUploadEvent(n){const f=this.uploadError;switch(this.uploadError=void 0,n.type){case"done":this.onTouch(),this.onChange(n.file);break;case"cancel":this.onTouch();break;default:if(!f)return}this.cdr.markForCheck()}specChanged(n){super.specChanged(n),this.accept=n.pattern?.split(/,/g).join(",")??""}}return r.\u0275fac=function(){let _;return function(f){return(_||(_=t.n5z(r)))(f||r)}}(),r.\u0275cmp=t.Xpm({type:r,selectors:[["tg-custom-form-file"]],standalone:!0,features:[t._Bn([{multi:!0,provide:T.JU,useExisting:(0,t.Gpc)(()=>r)}],[{provide:E.z,useValue:"customForms"}]),t.qOj,t.jDz],decls:17,vars:24,consts:[["tplSuccess",""],["tplNoFile",""],[3,"multi","autoUpload","query","onUpload"],[3,"enabled"],["type","file","ngFileSelect","",3,"accept","options"],[1,"n
1o-bold","tg-txt-error-boundary-receiver",3,"tgConsumeControlId"],["type","button",1,"btn","btn-sm","btn-error-boundary-receiver","receiver-default",3,"tgConsumeControlId","controlsUploadInput","disabled"],[1,"upstat"],["target","_blank","rel","noopener",3,"href",4,"ngIf","ngIfElse"],["class","text-danger",4,"ngIf"],[3,"autoClear"],[1,"text-warning",3,"translate"],[4,"ngIf"],["target","_blank","rel","noopener",3,"href"],[3,"ngTemplateOutlet"],[1,"text-danger"]],template:function(n,f){if(1&n&&(t.YNc(0,ct,5,6,"ng-template",null,0,t.W1O),t.YNc(2,ut,2,2,"ng-template",null,1,t.W1O),t.TgZ(4,"tg-upload-outlet",2),t.NdJ("onUpload",function(Q){return f.onUploadEvent(Q)}),t.TgZ(5,"tg-upload-drop-outlet",3),t._UZ(6,"input",4),t.TgZ(7,"label",5),t._uU(8),t.ALo(9,"tr"),t.qZA(),t.TgZ(10,"button",6),t._uU(11),t.ALo(12,"tr"),t.qZA(),t.TgZ(13,"div",7),t.YNc(14,pt,2,2,"a",8),t.YNc(15,mt,2,1,"strong",9),t.qZA(),t._UZ(16,"tg-upload-progress",10),t.qZA()()),2&n){const x=t.MAs(3);t.xp6(4),t.Q6J("multi",!1)("autoUpload",!0)("query",f.query),t.xp6(1),t.Q6J("enabled",!f.disabled),t.xp6(1),t.Q6J("accept",f.accept)("options",f.opts),t.xp6(1),t.ekj("text-danger",f.uploadError),t.Q6J("tgConsumeControlId","for"),t.xp6(1),t.AsE("",t.xi3(9,18,"dragNDropOr","upload"),""," ",""),t.xp6(2),t.Q6J("tgConsumeControlId","id")("disabled",f.disabled),t.xp6(1),t.Oqu(t.xi3(12,21,"upload","upload")),t.xp6(3),t.Q6J("ngIf",f.value)("ngIfElse",x),t.xp6(1),t.Q6J("ngIf",f.uploadError),t.xp6(1),t.Q6J("autoClear",!0)}},dependencies:[K.GlobalModule,Z.O5,Z.tP,g.c,l.P,a.j,O.k,L.y,N.H,R.c,$.O,z.u,X.i,st.U,it.m,lt.U,at.qx],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),r})();var tt=e(99356),gt=e(16516),_t=e(57563),k=e(84773);let ft=(()=>{class r extends b{constructor(n){super(),this.styleSvc=n}ngOnChanges(n){n.query&&(this.queryResolved=this.query),super.ngOnChanges(n)}specChanged(n){super.specChanged(n),"image"===n.type?(this.cropperCfg=n.cropperConfig,this.crop=void 0!==n.cropperConfig,this.styleSvc.removeSelector("tg-no-image,.uploaded-img"),this.queryResolved=this.query):(this.crop=!0,this.cropperCfg=gt._.DEFAULT_CONFIG,this.queryResolved={...this.query,category:"profile-pic"},this.styleSvc.setSelector("tg-no-image,.uploaded-img",{height:"90px",width:"90px"}))}}return r.\u0275fac=function(n){return new(n||r)(t.Y36(tt.i))},r.\u0275cmp=t.Xpm({type:r,selectors:[["tg-custom-form-img"]],standalone:!0,features:[t._Bn([tt.i,{multi:!0,provide:T.JU,useExisting:(0,t.Gpc)(()=>r)}],[{provide:E.z,useValue:"customForms"}]),t.qOj,t.TTD,t.jDz],decls:1,vars:5,consts:[[3,"ngModel","emitFile","opts","cropImage","cropperConfig","ngModelChange","touched"]],template:function(n,f){1&n&&(t.TgZ(0,"tg-image-upload",0),t.NdJ("ngModelChange",function(Q){return f.onChange(Q)})("touched",function(){return f.onTouch()}),t.qZA()),2&n&&t.Q6J("ngModel",f.value)("emitFile",!0)("opts",f.queryResolved)("cropImage",f.crop)("cropperConfig",f.cropperCfg)},dependencies:[K.GlobalModule,k.s,T.u5,T.JJ,T.On,_t.J],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),r})();var q=e(26110);const yt=["tgCustomFormLinkControl",""];let vt=(()=>{class r{constructor(){this.cdr=(0,t.f3M)(t.sBO),this.form=(0,t.f3M)(q.Q,{optional:!0})}ngOnChanges(){this.isBtn="button"===this.field.style,this.initialised&&this.refreshFilterables()}ngOnDestroy(){this._sub?.unsubscribe()}ngOnInit(){this.href="#",this.text="",this.form?this._sub=this.form.formChanges$.subscribe(n=>{this.model=n,this.initialised=!0,this.refreshFilterables(),this.cdr.markForCheck()}):(this.initialised=!0,this.model={},this.refreshFilterables())}refreshFilterables(){this.text=this.resolve(this.field.text),this.href=this.resolve(this.field.href)}resolve(n){return"string"==typeof n?n:this.resolveDynamic(n)}resolveDynamic(n){return this.form?n(this.model):(console.warn("Abstract form not provided: unable to resolve dynamic link text/href"),this.resolveDynamic=()=>"","")}}return r.\u0275fac=function(n){return new(n||r)},r.\u0275cmp=t.Xpm({type:r,selectors:[["a","tgCustomFormLinkControl",""]],hostAttrs:["rel","noopener","target","_blank"],hostVars:7,hostBindings:function(n,f){2&n&&(t.uIk("href",f.href,t.LSH),t.ekj("btn",f.isBtn)("btn-sm",f.isBtn)("btn-default",f.isBtn))},inputs:{field:["tgCustomFormLinkControl","field"]},standalone:!0,features:[t.TTD,t.jDz],attrs:yt,decls:1,vars:1,template:function(n,f){1&n&&t._uU(0),2&n&&t.Oqu(f.text)},encapsulation:2,changeDetection:0}),r})();var Et=e(14485),Ot=e(92194),Tt=e(26454),et=e(94e3),Mt=e(94918),Dt=e(69962),ot=e(41958),xt=e(50725),Ft=e(3811),It=e(70840);let Pt=(()=>{class r{forward(n,f,x){return x.length?(0,It.observeControlStatus)(n).pipe((0,xt.U)(()=>
1{if(!n.errors)return null;const Q=(0,Tt.Z)(n.errors,x);return(0,et.Z)(Q)?null:Q}),(0,Ft.w)(Q=>{let H=(0,Mt.Z)(f.errors,x);return(0,et.Z)(H)&&(H=null),Q?f.setErrors({...H,...Q}):(0,Dt.Z)(H,f.errors)||f.setErrors(H),ot.E})):ot.E}}return r.\u0275fac=function(n){return new(n||r)},r.\u0275prov=t.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();var St=e(80733),At=e(14645),nt=e(92341),Ut=e(35907),Wt=e(45884);let wt=(()=>{class r extends Ut.T{constructor(n,f){super(),this.editor=n,this.countSvc=f}doValidate(n){const f=this.countSvc.getWordCount(this.editor.editorDiv?.innerText??n.value),x={};let Q;return void 0!==this.min&&f<this.min&&(Q=!0,x.word_count_min={actual:f,min:this.min}),void 0!==this.max&&f>this.max&&(Q=!0,x.word_count_max={actual:f,max:this.max}),Q?x:null}shouldRevalidate(n){return Boolean(n.min||n.max)||super.shouldRevalidate(n)}}return r.\u0275fac=function(n){return new(n||r)(t.Y36(nt.Z),t.Y36(Wt.O))},r.\u0275dir=t.lG2({type:r,selectors:[["tg-wysiwyg-editor","wysiwygWordCountMin",""],["tg-wysiwyg-editor","wysiwygWordCountMax",""]],inputs:{shouldValidate:["wysiwygWordCountValidate","shouldValidate"],max:["wysiwygWordCountMax","max"],min:["wysiwygWordCountMin","min"]},features:[t._Bn([{multi:!0,provide:T.Cf,useExisting:(0,t.Gpc)(()=>r)}]),t.qOj]}),r})();class j extends c.S{constructor(){super(),this.validateSvc=(0,t.f3M)(At.CustomFormValidationService,{optional:!0}),this.validateSvc?(this.parentForm=(0,t.f3M)(q.Q,{optional:!0}),this.parentForm?this.forwardErrorsSvc=(0,t.f3M)(Pt):console.warn("ABSTRACT_CUSTOM_FORM not provided: WYSIWYG word count validation unavailable")):console.warn("CustomFormValidationService not provided: WYSIWYG word count validation unavailable")}ngOnChanges(_){if(!("spec"in _))return;this._sub?.unsubscribe(),this.wysiwygOpts=this.validateSvc?this.validateSvc.parseWordCountAndEditorConfig(this.spec,this.onWysiwygInit):{wordCount:{show:!1,validate:!1}},this.wysiwygOpts.wordCount.validate&&(this._sub=this.forwardErrorsSvc.forward(this.ctrl,this.parentForm.allControls.get(this.spec.id),["word_count_min","word_count_max"]).subscribe(Ot.V));
1const n=this.wysiwygOpts.wysiwyg,f=n?.events?.blur,x=this.onFieldSwitched;this.froalaCfg={...n,events:{...n?.events,blur(){f?.apply(this,arguments),x()}}}}ngOnDestroy(){super.ngOnDestroy(),this._sub?.unsubscribe()}normaliseWriteValue(_){return"string"==typeof _?_:""}createCtrl(){return this.fb.control("")}onFieldSwitched(){this.parentForm?.onFieldSwitched?.()}onWysiwygInit(){this.ctrl.updateValueAndValidity()}}j.\u0275fac=function(_){return new(_||j)},j.\u0275cmp=t.Xpm({type:j,selectors:[["tg-custom-form-wysiwyg"]],inputs:{spec:"spec"},standalone:!0,features:[t._Bn([{multi:!0,provide:T.JU,useExisting:(0,t.Gpc)(()=>j)}]),t.qOj,t.TTD,t.jDz],decls:1,vars:6,consts:[[3,"formControl","wordCounter","wysiwygWordCountValidate","wysiwygWordCountMin","wysiwygWordCountMax","cfg","touched"]],template:function(_,n){1&_&&(t.TgZ(0,"tg-wysiwyg-editor",0),t.NdJ("touched",function(){return n.onTouch()}),t.qZA()),2&_&&t.Q6J("formControl",n.ctrl)("wordCounter",n.wysiwygOpts.wordCount.show)("wysiwygWordCountValidate",n.wysiwygOpts.wordCount.validate)("wysiwygWordCountMin",n.wysiwygOpts.wordCount.min)("wysiwygWordCountMax",n.wysiwygOpts.wordCount.max)("cfg",n.froalaCfg)},dependencies:[K.GlobalModule,k.s,T.UX,T.JJ,T.oH,St.x,nt.Z,wt],encapsulation:2,changeDetection:0}),(0,o.gn)([(0,y.h)()],j.prototype,"onFieldSwitched",null),(0,o.gn)([(0,y.h)()],j.prototype,"onWysiwygInit",null);var Rt=e(80499),Bt=e(16936),bt=e(9352),Lt=e(4087),Vt=e(81117),Kt=e(47946),Zt=e(16838),Jt=e(70578),Gt=e(49043),Nt=e(93902);function Qt(r,_){if(1&r){const n=t.EpF();t.TgZ(0,"textarea",19),t.NdJ("blur.passive",function(){t.CHM(n);const x=t.oxw();return t.KtG(x.onTouch())}),t.qZA()}if(2&r){const n=t.oxw();t.Q6J("formControl",n.ctrl)("tgConsumeControlId","id")("placeholder",n.placeholder)}}function $t(r,_){if(1&r){const n=t.EpF();t.TgZ(0,"tg-custom-form-wysiwyg",20),t.NdJ("touched",function(){t.CHM(n);const x=t.oxw();return t.KtG(x.onTouch())}),t.qZA()}if(2&r){const n=t.oxw();t.Q6J("spec",n.specAsWysiwyg)("formControl",n.ctrl)}}function jt(r,_){if(1&r){const n=t.EpF();t.TgZ(0,"tg-search-place",21),t.NdJ("touched",function(){t.CHM(n);const x=t.oxw();return t.KtG(x.onTouch())}),t.qZA()}if(2&r){const n=t.oxw();t.Q6J("formControl",n.ctrl)("placeholder",n.placeholder)("raw",!1)}}function Yt(r,_){if(1&r){const n=t.EpF();t.TgZ(0,"tg-url-input",22),t.NdJ("touched",function(){t.CHM(n);const x=t.oxw();return t.KtG(x.onTouch())}),t.qZA()}if(2&r){const n=t.oxw();t.Q6J("formControl",n.ctrl)("text",!!n.specAsUrl.text)("asString",!n.specAsUrl.text)("urlPlaceholder",n.specAsUrl.urlPlaceholder||n.specAsUrl.placeholder)("textPlaceholder",n.specAsUrl.textPlaceholder||n.specAsUrl.placeholder)}}function Ht(r,_){if(1&r){const n=t.EpF();t.TgZ(0,"tg-clearable-input")(1,"tg-datepicker",23),t.NdJ("touched",function(){t.CHM(n);const x=t.oxw();return t.KtG(x.onTouch())}),t.qZA()()}if(2&r){const n=t.oxw();t.xp6(1),t.Q6J("formControl",n.ctrl)("timezone","UTC")("placeholder",n.placeholder)("placement","top")("maxDate",n.datepickerOpts.maxDate)("minDate",n.datepickerOpts.minDate)("startDate",n.datepickerOpts.startDate)("view",n.specAsDate.startView)}}function zt(r,_){if(1&r){const n=t.EpF();t.TgZ(0,"tg-year-input",24),t.NdJ("touched",function(){t.CHM(n);const x=t.oxw();return t.KtG(x.onTouch())}),t.qZA()}if(2&r){const n=t.oxw();t.Q6J("formControl",n.ctrl)("placeholder",n.placeholder)("maxDate",n.datepickerOpts.maxDate)("minDate",n.datepickerOpts.minDate)("startDate",n.datepickerOpts.startDate)}}function Xt(r,_){if(1&r){const n=t.EpF();t.TgZ(0,"tg-custom-form-file",20),t.NdJ("touched",function(){t.CHM(n);const x=t.oxw();return t.KtG(x.onTouch())}),t.qZA()}if(2&r){const n=t.oxw();t.Q6J("spec",n.specAsFile)("formControl",n.ctrl)}}function kt(r,_){if(1&r){const n=t.EpF();t.TgZ(0,"tg-custom-form-img",20),t.NdJ("touched",function(){t.CHM(n);const x=t.oxw();return t.KtG(x.onTouch())}),t.qZA()}if(2&r){const n=t.oxw();t.Q6J("spec",n.specAsImg)("formControl",n.ctrl)}}function qt(r,_){if(1&r&&t.GkF(0,25),2&r){t.oxw();const n=t.MAs(9);t.Q6J("ngTemplateOutlet",n)}}function te(r,_){if(1&r){const n=t.EpF();t.TgZ(0,"tg-dropdown-select",26),t.NdJ("touched",function(){t.CHM(n);const x=t.oxw();return t.KtG(x.onTouch())}),t.qZA()}if(2&r){const n=t.oxw();t.Q6J("formControl",n.ctrl)("tgMetadataSelect",n.specAsSelect.metadataKey)("label",n.placeholder)("multi",n.multi)("items",n.selectValues)("labelKey",n.specAsSelect.labelKey)("valueKey",n.specAsSelect.valueKey)("container","body")}}function ee(r,_){if(1&r){const n=t.EpF();t.TgZ(0,"tg-address-edit",27),t.NdJ("touched",function(){t.CHM(n);const x=t.oxw();return t.KtG(x.onTouch())}),t.qZA()}if(2&r){const n=t.oxw();t.Q6J("formControl",n.ctrl)("tgConsumeControlId",null)("addressRequired",n.required)("country",n.specAsAddress.countryPreset)}}function oe(r,_){if(1&r){const n=t.EpF();t.TgZ(0,"ul",28),t.NdJ("touched",function(){t.CHM(n);const x=t.oxw();return t.KtG(x.onTouch())}),t.qZA()}if(2&r){const n=t.oxw();t.Q6J("customFormRadio",n.specAsRadio)("tgConsumeControlId",null)("formControl",n.ctrl)}}function ne(r,_){if(1&r){const n=t.EpF();t.TgZ(0,"tg-country-input",29),t.NdJ("touched",function(){t.CHM(n);const x=t.oxw();return t.KtG(x.onTouch())}),t.qZA()}if(2&r){const n=t.oxw();t.Q6J("formControl",n.ctrl)("placeholder",n.placeholder)}}function re(r,_){if(1&r){const n=t.EpF();t.TgZ(0,"tg-user-select",30),t.NdJ("touched",function(){t.CHM(n);const x=t.oxw();return t.KtG(x.onTouch())}),t.qZA()}if(2&r){const n=t.oxw();t.Q6J("formControl",n.ctrl)("multi",n.multi)("params",n.queryParams)("idsOnly",!0)}}function se(r,_){if(1&r){const n=t.EpF();t.TgZ(0,"tg-group-id-search",31),t.NdJ("touched",function(){t.CHM(n);const x=t.oxw();return t.KtG(x.onTouch())}),t.qZA()}if(2&r){const n=t.oxw();t.Q6J("formControl",n.ctrl)("multi",n.multi)("emitIds",!0)}}function ie(r,_){if(1&r){const n=t.EpF();t.TgZ(0,"input",32),t.NdJ("blur.passive",function(){t.CHM(n);const x=t.oxw();return t.KtG(x.onTouch())}),t.qZA()}if(2&r){const n=t.oxw();t.Q6J("type","number")("step",n.step)("formControl",n.ctrl)("tgConsumeControlId","id")("placeholder",n.placeholder)}}function le(r,_){if(1&r&&t._UZ(0,"a",33),2&r){const n=t.oxw();t.Q6J("tgCustomFormLinkControl",n.specAsLink)}}function ae(r,_){if(1&r){const n=t.EpF();t.TgZ(0,"input",34),t.NdJ("blur.passive",function(){t.CHM(n);const x=t.oxw();return t.KtG(x.onTouch())}),t.qZA()}if(2&r){const n=t.oxw();t.Q6J("type",n.spec.type||"text")("formControl",n.ctrl)("tgConsumeControlId","id")("placeholder",n.placeholder)}}(0,s.applyGlobalStyle)("tg-custom-form-control","tg-custom-form-control.ng-invalid.ng-touched>tg-address-edit.ng-touched>tg-address-field>div tg-country-input:not(.ng-invalid)>.form-control,tg-custom-form-control.ng-invalid.ng-touched>tg-address-edit.ng-touched>tg-address-field>div>.form-control:not(.ng-invalid){border-color:#ccc}");class Y extends c.S{constructor(_,n){super(),this.renderSvc=_,this.actions$=n,this.placeholder="",this.dynamicSelectSvc=(0,t.f3M)(v.E,{optional:!0}),this.parentForm=(0,t.f3M)(q.Q,{optional:!0}),this.tr=(0,t.f3M)(J.D),this._specChanged$=new U.x,this._destroyed$=this._specChanged$.pipe((0,S.Z)(null,null))}ngOnChanges({spec:_}){if(_){switch(this.specAsLink=this.specAsAddress=this.specAsSelect=this.specAsD
1ate=this.specAsUrl=this.specAsRadio=this.specAsFile=this.specAsImg=this.specAsWysiwyg=this.spec,this.placeholder=this.specAsSelect.placeholder||"",this.multi=!0===this.specAsSelect.multi,this.spec.type){case"date":case"year":this.datepickerOpts={};for(const n of["minDate","maxDate","startDate"])this.spec[n]&&(this.datepickerOpts[n]=this.spec[n]());break;case"number":this.step=this.spec.step??1;break;case"geo":this.placeholder||(this.placeholder=this.tr.translate("locationPlaceholder","customForms"));break;case"select":this.specAsSelect.options&&("function"==typeof this.specAsSelect.options?this.dynamicSelectSvc?(this.selectValues=this.dynamicSelectSvc.getDynamicSelectOptionsFor(this.spec),this.dynamicSelectSvc.onDynamicSelectOptionsChange(this.spec).pipe(this.terminator()).subscribe(n=>{this.selectValues=n,this.cdr.detectChanges()})):(this.selectValues=[],console.warn("DynamicSelectService not provided: options must be static")):this.selectValues=Array.isArray(this.specAsSelect.options)?this.specAsSelect.options.map(ce):Object.keys(this.specAsSelect.options).map(this.selectValueLabelMapper,this));break;case"address":this.required=Boolean(this.specAsAddress.required);break;case"user-select":this.queryParams={noredirect:1,...this.spec.params}}!_.firstChange&&rt(this.spec.type)&&this.valueChanges().pipe(this.terminator()).subscribe(this.onFieldSwitched),this._specChanged$.next()}}ngOnDestroy(){this._specChanged$.complete(),super.ngOnDestroy()}ngOnInit(){if(!this.spec)throw new Error("Spec is required");super.ngOnInit(),this.renderSvc.addClasses("tg-btn-error-boundary","tg-dropdown-error-boundary","tg-input-error-boundary","tg-txt-error-boundary","tg-wysiwyg-error-boundary"),this.actions$.pipe((0,M.l4)("form:mark:touched:all"),(0,F.R)(this._destroyed$)).subscribe(()=>{this.ctrl.markAllAsTouched(),this.cdr.detectChanges()}),rt(this.spec.type)&&this.valueChanges().pipe((0,F.R)(this._specChanged$)).subscribe(this.onFieldSwitched)}createCtrl(){return this.fb.control(null)}onFieldSwitched(){this.parentForm?.onFieldSwitched?.()}selectValueLabelMapper(_){return{value:_,label:this.spec.options[_]}}terminator(){return(0,F.R)((0,D.T)(this._destroyed$,this._specChanged$.pipe((0,W.T)(1))))}}function ce(r){return{value:r,label:r}}function rt(r){return"file"===r||"profile-picture"===r||"select"===r||"date"===r||"image"===r||"year"===r}Y.\u0275fac=function(_){return new(_||Y)(t.Y36(i.Z),t.Y36(M.eX))},Y.\u0275cmp=t.Xpm({type:Y,selectors:[["tg-custom-form-control"]],viewQuery:function(_,n){if(1&_&&t.Gf(T.On,5),2&_){let f;t.iGM(f=t.CRH())&&(n.ngModel=f.first)}},inputs:{spec:"spec"},standalone:!0,features:[t._Bn([{multi:!0,provide:T.JU,useExisting:(0,t.Gpc)(()=>Y)},i.Z],[{provide:E.z,useValue:"customForms"}]),t.qOj,t.TTD,t.jDz],decls:20,vars:18,consts:[[3,"ngSwitch"],["class","form-control",3,"formControl","tgConsumeControlId","placeholder","blur.passive",4,"ngSwitchCase"],[3,"spec","formControl","touched",4,"ngSwitchCase"],[3,"formControl","placeholder","raw","touched",4,"ngSwitchCase"],[3,"formControl","text","asString","urlPlaceholder","textPlaceholder","touched",4,"ngSwitchCase"],[4,"ngSwitchCase"],[3,"formControl","placeholder","maxDate","minDate","startDate","touched",4,"ngSwitchCase"],[3,"ngSwitchCase"],["tplImg",""],[3,"ngTemplateOutlet",4,"ngSwitchCase"],[3,"formControl","tgMetadataSelect","label","multi","items","labelKey","valueKey","container","touched",4,"ngSwitchCase"],[3,"formControl","tgConsumeControlId","addressRequired","country","touched",4,"ngSwitchCase"],["class","list-unstyled",3,"customFormRadio","tgConsumeControlId","formControl","touched",4,"ngSwitchCase"],[3,"formControl","placeholder","touched",4,"ngSwitchCase"],[3,"formControl","multi","params","idsOnly","touched",4,"ngSwitchCase"],[3,"formControl","multi","emitIds","touched",4,"ngSwitchCase"],["class","form-control",3,"type","step","formControl","tgConsumeControlId","placeholder","blur.passive",4,"ngSwitchCase"],[3,"tgCustomFormLinkControl",4,"ngSwitchCase"],["class","form-control",3,"type","formControl","tgConsumeControlId","placeholder","blur.passive",4,"ngSwitchDefault"],[1,"form-control",3,"formControl","tgConsumeControlId","placeholder","blur.passive"],[3,"spec","formControl","touched"],[3,"formControl","placeholder","raw","touched"],[3,"formControl","text","asString","urlPlaceholder","textPlaceholder","touched"],[3,"formControl","timezone","clearable-input-target","placeholder","placement","maxDate","minDate","startDate","view","touched"],[3,"formControl","placeholder","maxDate","minDate","startDate","touched"],[3,"ngTemplateOutlet"],[3,"formControl","tgMetadataSelect","label","multi","items","labelKey","valueKey","container","touched"],[3,"formControl","tgConsumeControlId","addressRequired","country","touched"],[1,"list-unstyled",3,"customFormRadio","tgConsumeControlId","formControl","touched"],[3,"formControl","placeholder","touched"],[3,"formControl","multi","params","idsOnly","touched"],[3,"formControl","multi","emitIds","touched"],[1,"form-control",3,"type","step","formControl","tgConsumeControlId","placeholder","blur.passive"],[3,"tgCustomFormLinkControl"],[1,"form-control",3,"type","formControl","tgConsumeControlId","placeholder","blur.passive"]],template:function(_,n){1&_&&(t.ynx(0,0),t.YNc(1,Qt,1,3,"textarea",1),t.YNc(2,$t,1,2,"tg-custom-form-wysiwyg",2),t.YNc(3,jt,1,3,"tg-search-place",3),t.YNc(4,Yt,1,5,"tg-url-input",4),t.YNc(5,Ht,2,8,"tg-clearable-input",5),t.YNc(6,zt,1,5,"tg-year-input",6),t.YNc(7,Xt,1,2,"tg-custom-form-file",2),t.YNc(8,kt,1,2,"ng-template",7,8,t.W1O),t.YNc(10,qt,1,1,"ng-container",9),t.YNc(11,te,1,8,"tg-dropdown-select",10),t.YNc(12,ee,1,4,"tg-address-edit",11),t.YNc(13,oe,1,3,"ul",12),t.YNc(14,ne,1,2,"tg-country-input",13),t.YNc(15,re,1,4,"tg-user-select",14),t.YNc(16,se,1,3,"tg-group-id-search",15),t.YNc(17,ie,1,5,"input",16),t.YNc(18,le,1,1,"a",17),t.YNc(19,ae,1,4,"input",18),t.BQk()),2&_&&(t.Q6J("ngSwitch",n.spec.type),t.xp6(1),t.Q6J("ngSwitchCase","textarea"),t.xp6(1),t.Q6J("ngSwitchCase","wysiwyg"),t.xp6(1),t.Q6J("ngSwitchCase","geo"),t.xp6(1),t.Q6J("ngSwitchCase","url"),t.xp6(1),t.Q6J("ngSwitchCase","date"),t.xp6(1),t.Q6J("ngSwitchCase","year"),t.xp6(1),t.Q6J("ngSwitchCase","file"),t.xp6(1),t.Q6J("ngSwitchCase","image"),t.xp6(2),t.Q6J("ngSwitchCase","profile-picture"),t.xp6(1),t.Q6J("ngSwitchCase","select"),t.xp6(1),t.Q6J("ngSwitchCase","address"),t.xp6(1),t.Q6J("ngSwitchCase","radio"),t.xp6(1),t.Q6J("ngSwitchCase","country"),t.xp6(1),t.Q6J("ngSwitchCase","user-select"),t.xp6(1),t.Q6J("ngSwitchCase","group-select"),t.xp6(1),t.Q6J("ngSwitchCase","number"),t.xp6(1),t.Q6J("ngSwitchCase","link"))},dependencies:[K.GlobalModule,Z.tP,Z.RF,Z.n9,Z.ED,g.c,k.s,O.k,Rt._,Bt.T,T.UX,T.Fj,T.JJ,T.oH,u.UrlInputModule,bt.u,P.g,Lt.W,Vt.e,m.f,
1Kt.X,Zt.s,h.W,A.x,Jt.b,w.Q,Gt.U,d.w,Nt.u,V.U,p.u,C.I,Et.x,j,ht,ft,vt],styles:["[_nghost-%COMP%]{display:block}label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:400}tg-datepicker[_ngcontent-%COMP%]{width:100%}"],changeDetection:0}),(0,o.gn)([(0,y.h)()],Y.prototype,"onFieldSwitched",null)},14485:(G,B,e)=>{e.d(B,{x:()=>K});var o=e(14026),y=e(52805),t=e(43383),T=e(15859),M=e(92362),U=e(64177),D=e(61958);const S=["customFormRadio",""];function F(A,P){if(1&A){const C=o.EpF();o.TgZ(0,"li")(1,"label")(2,"input",1),o.NdJ("change.passive",function(){o.CHM(C);const i=o.oxw();return o.KtG(i.onTouch())})("ngModelChange",function(i){o.CHM(C);const m=o.oxw();return o.KtG(m.onChange(i))}),o.qZA(),o.TgZ(3,"span",2),o._uU(4),o.qZA()()()}if(2&A){const C=P.$implicit,h=o.oxw();o.xp6(2),o.Q6J("name",h.name)("value",C.value)("disabled",h.disabled)("ngModel",h.value),o.xp6(1),o.ekj("text-muted",h.disabled),o.xp6(1),o.hij("\xa0",C.label,"")}}const W=[[["li"]]],V=["li"];let K=(()=>{class A extends M.k{ngOnChanges(C){!C.spec||(this.options=Array.isArray(this.spec.options)?this.spec.options.map(h=>({label:h,value:h})):Object.entries(this.spec.options).map(([h,i])=>({label:i,value:h})))}ngOnInit(){this.name=(0,t.Z)("radio-")}normaliseWriteValue(C){return"string"==typeof C?C:""}}return A.\u0275fac=function(){let P;return function(h){return(P||(P=o.n5z(A)))(h||A)}}(),A.\u0275cmp=o.Xpm({type:A,selectors:[["ul","customFormRadio",""]],inputs:{spec:["customFormRadio","spec"]},exportAs:["customFormRadio"],standalone:!0,features:[o._Bn([{multi:!0,provide:y.JU,useExisting:(0,o.Gpc)(()=>A)}]),o.qOj,o.TTD,o.jDz],attrs:S,ngContentSelectors:V,decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],["type","radio",3,"name","value","disabled","ngModel","change.passive","ngModelChange"],[1,"tg-txt-error-boundary-receiver"]],template:function(C,h){1&C&&(o.F$t(W),o.YNc(0,F,5,7,"li",0),o.Hsn(1)),2&C&&o.Q6J("ngForOf",h.options)},dependencies:[T.GlobalModule,U.sg,D.y,y.u5,y.Fj,y._,y.JJ,y.On],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%]:empty{display:none}"],changeDetection:0}),A})()},2354:(G,B,e)=>{e.d(B,{E:()=>K});var o=e(662),y=e(5296),t=e(3895),T=e(69962),M=e(8194),U=e(75372),D=e(50725),S=e(35673),F=e(14026),W=e(19807);const V=Symbol("extendingFieldId");let K=(()=>{class C{constructor(i){this.alert=i,this.dynamicSelectChange$=new M.x,this.dynamicSelectValues=new Map}get formChanges$(){throw new Error("Tried to get formChanges$ before init() was called")}get model(){throw new Error("Tried to get the model before init() was called")}getDynamicSelectOptionsFor(i){return this.dynamicSelectValues.get(i[V]||i.id)||i.options(this.model)||[]}init(i){Object.defineProperty(this,"model",{enumerable:!0,get:i.modelGetter}),Object.defineProperty(this,"formChanges$",{enumerable:!0,value:i.formChanges}),this.getControlValue=i.getControlValue,this.setControlValue=i.setControlValue,function A(C){const h=[],i=u=>"function"==typeof u.options,m=u=>{if(i(u)&&h.push(u),u.sections)for(const p of u.sections)m(p);if(u.fields)if("extending-form"===u.type)for(const p of Object.values(u.fields))i(p)&&(Object.defineProperty(p,V,{configurable:!0,value:`${u.id}|${p.name}`}),h.push(p));else for(const p of u.fields)m(p)};
1return C.forEach(m),h}(i.fields).forEach(this.monitorDynamicSelect,this)}ngOnDestroy(){this.dynamicSelectChange$.complete()}onDynamicSelectOptionsChange(i){const m=P(i);return this.dynamicSelectChange$.pipe((0,U.h)(u=>P(u)===m),(0,D.U)(u=>u.values))}createValueCheckers(i,m){let u=this.getControlValue(i);return u=u?[...(0,t.Z)(u)]:[],[u,new Set(m.map(d=>d.value))]}doAlert(i){const m={ctrl:i.replace(/[\s:*]+$/,"")};this.alert.alertInfo({key:"selectOptionsReset",ns:"customForms",placeholders:m},void 0,{html:!0,timeout:1e4})}getControlValue(i){throw new Error(`Tried to call getControlValue('${i}') before init() was called`)}monitorDynamicSelect(i){const{multi:m,options:u}=i;let p=u(this.model);const d=this.formChanges$.pipe((0,S.T)(1),(0,D.U)(()=>u(this.model)),(0,U.h)(E=>!(0,T.Z)(E,p)),(0,y.H)(`[CustomForm.monitorDynamicSelect(${i[V]||i.id})]`)),w=m?[]:null;if(i[V]){const E=i[V],[J,s]=E.split("|");this.dynamicSelectValues.set(E,p),d.subscribe((0,o.e)(c=>{this.dynamicSelectValues.set(E,c);const[v,R]=this.createValueCheckers(J,c);let I;for(let b=0;b<v.length;b++){const Z=v[b];(Z[s]||[]).every(l=>R.has(l))||(v[b]={...Z,[s]:w},I=!0)}I&&(this.setControlValue(J,v),this.doAlert(s)),p=c,this.dynamicSelectChange$.next({id:E,values:c})}))}else{const E=i.id;this.dynamicSelectValues.set(E,p),d.subscribe((0,o.e)(J=>{this.dynamicSelectValues.set(E,J);const[s,c]=this.createValueCheckers(E,J);s.every(v=>c.has(v))||(this.setControlValue(E,w),this.doAlert(i.label)),p=J,this.dynamicSelectChange$.next({id:E,values:J})}))}}setControlValue(i,m){throw new Error(`Tried to call setControlValue('${i}') before init() was called`)}}return C.\u0275fac=function(i){return new(i||C)(F.LFG(W.c))},C.\u0275prov=F.Yz7({token:C,factory:C.\u0275fac}),C})();function P(C){return C[V]||C.id}},26110:(G,B,e)=>{e.d(B,{M:()=>E,Q:()=>w});var o=e(64762),y=e(78425),t=e(82668),T=e(662),M=e(14026),U=e(40921),D=e(25989),S=e(23055),F=e(46810),W=e(15420),V=e(87399),A=e(92706),P=e(85597),C=e(98270),h=e(91218),i=e(21217),m=e(52805),u=e(23212),p=e(91468);const d=Symbol("fieldDefinition"),w=new M.OlP("Abstract custom form");class E{constructor(){this.isApplicationForm=!1,this.mandatoryFields=[];const s=this.inj=(0,M.f3M)(M.zs3);this.filterSvc=s.get(u.CustomFormFilterService),this.fb=s.get(m.qu),this.cdr=s.get(M.sBO),this.sectionHandlers=Object.freeze({checkbox:this.checkboxSection,"extending-form":this.extendingFormSection,grouped:this.groupedSection,legal:this.legalSection,payment:D.Z,radio:this.radioSection,standard:this.standardSection,textarea:this.textareaSection})}static setFieldDef(s,c){s[d]=c}get controls(){return(0,C.S)(this.allControls.entries(),this.otherControls.entries())}get formSvc(){return this.inj.get(this.isApplicationForm?h.E:p.g)}ngOnDestroy(){this._destroyed$&&(0,t.t)(this._destroyed$)}ngOnInit(){this._destroyed$=new A.c,this.entireForm=this.fb.array([]),this.perTabControls=this.fb.array([]),this._filteredFieldNames=new Set,this.allControls=new Map,this.otherControls=new Map,this.perTabControlMap=new Map,this.showControlSet=new Set,this.submitOnPayment=!0===this.formCfg.submitOnPayment,this.modelGetSet={},this.initFieldSpec(),this.model=this.formCfg.fields.reduce(this.baseModelReducer,{}),this.preInitialModelSet(),(0,i.mergeReplaceArray)(this.model,(0,S.Z)(this.getInitialModelValue()));const s=this.initFormControls();this.updateModel(),this.formChanges$=this.filterSvc.valueChanges$=this.initFormChanges(),this.setFilteredControlsValidation(s),this.postModelInit?.(),this.initFilteredFields(),this.initFilteredTabs(),this.initFilteredSubsections()}preInitialModelSet(){if(!this.mandatoryFields?.length)return;const s=this.getInitialModelValue();let c=!1;for(const v of this.mandatoryFields)this.ensureMandatoryField(v,s)&&(c=!0);c&&this.entireForm.updateValueAndValidity()}sectionIcon({icon:s}){return s?`fa-${s}`:null}baseModelReducer(s,c){const v=c.type||"standard",R=this.sectionHandlers[v];if(R)return R.call(this,s,c);throw new Error(`Unknown section type: ${v}`)}checkboxSection(s,{id:c,options:v}){let R;if(v.length>1){(0,F.Z)(s,c,[]);const I=Object.freeze([]);R=()=>(0,W.Z)(this.model,c,I)}else(0,F.Z)(s,c,!1),R=()=>(0,W.Z)(this.model,c);return this.defProp(c,R,I=>{(0,F.Z)(this.model,c,I)}),s}createSupplementaryFormControl(s,c,v=null,R=null){const I=this.fb.control(c,v,R);return E.setFieldDef(I,{ensureMandatoryField:s}),this.allControls.set(s,I),this.entireForm.push(I,{emitEvent:!1}),this.defProp(s,()=>I.value,b=>{(0,F.Z)(this.model,s,b),I.setValue(b)}),I}defProp(s,c,v){Object.defineProperty(this.modelGetSet,s,{configurable:!0,enumerable:!0,get:c,set:v})}ensureMandatoryField(s,c){return!(s in this.modelGetSet)&&(this.createSupplementaryFormControl(s,(0,W.Z)(c,s,null)),!0)}extendingFormSection(s,{id:c}){return this.defProp(c,()=>(0,W.Z)(this.model,c),v=>{(0,F.Z)(this.model,c,v)}),(0,F.Z)(s,c,[]),s}filteredTabShowSpecsToIndexedTabSpecs(s){const c=[];for(let v=0;v<s.length;++v)s[v]&&c.push(this.fieldspec[v]);return c}getFieldSpec(s){const c=this.allControls.get(s)?.[d];if(c)return c;throw new Error(`Form control ${s} doesn't have a field definition symbol`)}getInitialValueFor(s){return(0,W.Z)(this.getInitialModelValue(),s,null)}groupedSection(s,{sections:c}){return c.reduce(this.baseModelReducer,s)}hasPaid(){return this.formSvc.hasPaid(this.model,this.getInitialModelValue())}initFieldSpec(){let s=this.formCfg.fields;if(this.submitOnPayment){const c=R=>"payment"===R.type,v=({type:R},{type:I})=>"payment"===R?"payment"===I?0:1:"payment"===I?-1:0;if(s.some(c))s=s.slice(),s.sort(v);else{const R=s.findIndex(I=>"grouped"===I.type&&I.sections.some(c));if(-1!==R){const I={...s[R]};I.sections=I.sections.slice(),I.sections.sort(v),s=s.slice(),s.sort((b,Z)=>b===I?1:Z===I?-1:0)}}}this.fieldspec=s.map((c,v)=>({...c,__originalIndex:v}))}initFilteredFields(){for(const s of this.allControls.keys())(!this._filteredFieldNames.has(s)||this.shouldShowFieldSync(s))&&this.showControlSet.add(s)}initFilteredSubsections(){for(const s of this.formCfg.fields)if("grouped"===s.type)for(const c of s.sections){const v=c.id||c.heading;this.shouldShowCommonSync(c)&&this.showControlSet.add(v)}}initFilteredTabs(){const s=Array(this.perTabControls.length);for(let c=0;c<s.length;++c)s[c]=this.shouldShowTabSync(c);this.filteredFieldspec=this.filteredTabShowSpecsToIndexedTabSpecs(s)}initFormControls(){const s=[],c=(g,l)=>{const a=this.resolveValidators(s,this.fb.control(this.modelGetSet[g.id]),g);if(E.setFieldDef(a,g),this.perTabControls.insert(l,a),("radio"===g.type||"checkbox"===g.type)&&g.other){const O=`${g.id}_other`,L=this.fb.control(this.modelGetSet[O]);this.otherControls.set(O,L),this.entireForm.push(L)}this.allControls.set(g.id,a),this.perTabControlMap.set(a,this.entireForm)},v=(g,l)=>{const a=this.fb.array([]);
1this.perTabControls.insert(l,a),R(a,g),a.updateValueAndValidity()},R=(g,l)=>{for(const a of l.fields){const O=this.resolveValidators(s,this.fb.control(this.modelGetSet[a.id]),a,l);"wysiwyg"===a.type&&this.initWysiwygWordCountInitialValidation?.(a,O),E.setFieldDef(O,a),g.push(O),this.perTabControlMap.set(O,g),this.allControls.set(a.id,O)}},I=(g,l)=>{const a=this.fb.array([]);this.perTabControls.insert(l,a);for(const O of g.sections){const L=O.type||"standard";switch(L){case"payment":if(this.paymentControl)throw new Error("There may only be one payment control per application form.");this.paymentControl=this.fb.control(this.hasPaid()),E.setFieldDef(this.paymentControl,O),this.resolveValidators(s,this.paymentControl,O,g),a.push(this.paymentControl),this.perTabControlMap.set(this.paymentControl,a);break;case"grouped":throw new Error("Nested group sections are not supported.");case"checkbox":case"extending-form":case"legal":case"radio":case"textarea":{const N=this.modelGetSet[O.id],$=this.fb.control("legal"===O.type?Boolean(N)&&V(N,V.ISO_8601,!0).isValid():N);if(E.setFieldDef($,O),a.push(this.resolveValidators(s,$,O)),this.perTabControlMap.set($,a),this.allControls.set(O.id,$),("radio"===O.type||"checkbox"===O.type)&&O.other){const z=`${O.id}_other`,X=this.fb.control(this.modelGetSet[z]);this.otherControls.set(z,X),this.entireForm.push(X)}break}case"standard":R(a,O);break;default:throw new Error(`Unsupported nested section type: ${L}`)}}a.updateValueAndValidity()},b=(g,l)=>{if(this.paymentControl)throw new Error("There may only be one payment control per application form.");Object.defineProperty(this,"paymentControl",{value:this.fb.control(this.hasPaid())}),this.resolveValidators(s,this.paymentControl,g),this.perTabControls.insert(l,this.paymentControl),g.id&&this.allControls.set(g.id,this.paymentControl)};for(let g=0;g<this.fieldspec.length;g++){const l=this.fieldspec[g],a=l.type||"standard";switch(a){case"payment":b(l,g);break;case"checkbox":case"extending-form":case"legal":case"radio":case"textarea":c(l,g);break;case"standard":v(l,g);break;case"grouped":I(l,g);break;default:throw new Error(`Unable to init form control due to unknown field spec type: ${a}`)}}const Z={emitEvent:!1};for(const g of this.perTabControls.controls)this.entireForm.push(g,Z);return this.entireForm.updateValueAndValidity(),s}legalSection(s,{id:c}){return this.defProp(c,()=>(0,W.Z)(this.model,c),v=>{(0,F.Z)(this.model,c,v)}),s}radioSection(s,{other:c,id:v,options:R}){let I="";return c&&this.defProp(`${v}_other`,()=>I,b=>{I=b,(0,F.Z)(this.model,v,b)}),this.defProp(v,()=>{const b=(0,W.Z)(this.model,v);return b===I?"__other":b},b=>{(0,F.Z)(this.model,v,"__other"===b?I:b)}),(0,F.Z)(s,v,Object.keys(R)[0]),s}resolveValidators(s,c,v,R){return c}shouldShowCommonSync(s){return this.filterSvc.passesFilterSync(this.model,s)}shouldShowFieldSync(s){return this.shouldShowCommonSync(this.getFieldSpec(s))}shouldShowTabSync(s){return this.shouldShowCommonSync(this.fieldspec[s])}textareaSection(s,{id:c}){return this.defProp(c,()=>(0,W.Z)(this.model,c),v=>{(0,F.Z)(this.model,c,v)}),(0,F.Z)(s,c,""),s}updateModel(){for(const[s,c]of this.controls)this.modelGetSet[s]=c.value;this.model={...this.model}}setFilteredControlsValidation(s){for(const[c,v,R,I]of s)I.pipe((0,P.R)(this._destroyed$)).subscribe((0,T.e)(b=>{b?(c.setValidators(v),c.setAsyncValidators(R)):(c.setValidators(null),c.setAsyncValidators(null)),c.updateValueAndValidity(),this.cdr.detectChanges()}))}standardSection(s,c){return c.fields.reduce(this.standardSectionReducer,s)}standardSectionReducer(s,c){const v=c.id;return c.filter&&this._filteredFieldNames.add(v),this.formSvc.hasValue(c)&&(this.defProp(v,()=>(0,W.Z)(this.model,v),R=>{(0,F.Z)(this.model,v,R)}),(0,F.Z)(s,v,"checkbox"!==c.type&&null)),s}}E.\u0275fac=function(s){return new(s||E)},E.\u0275dir=M.lG2({type:E,inputs:{formCfg:"formCfg",isApplicationForm:"isApplicationForm",mandatoryFields:"mandatoryFields"}}),(0,o.gn)([(0,U.a)()],E.prototype,"formSvc",null),(0,o.gn)([(0,y.h)()],E.prototype,"baseModelReducer",null),(0,o.gn)([(0,y.h)()],E.prototype,"checkboxSection",null),(0,o.gn)([(0,y.h)()],E.prototype,"extendingFormSection",null),(0,o.gn)([(0,y.h)()],E.prototype,"filteredTabShowSpecsToIndexedTabSpecs",null),(0,o.gn)([(0,y.h)()],E.prototype,"groupedSection",null),(0,o.gn)([(0,y.h)()],E.prototype,"legalSection",null),(0,o.gn)([(0,y.h)()],E.prototype,"radioSection",null),(0,o.gn)([(0,y.h)()],E.prototype,"textareaSection",null),(0,o.gn)([(0,y.h)()],E.prototype,"standardSection",null),(0,o.gn)([(0,y.h)()],E.prototype,"standardSectionReducer",null)},93338:(G,B,e)=>{e.d(B,{e:()=>D});var o=e(2354),y=e(95205),t=e(60052),T=e(14645),M=e(14026);const U=[o.E,t.a,T.CustomFormValidationService,{multi:!0,provide:y.CUSTOM_FORM_VALIDATORS,useExisting:t.a}];let D=(()=>{class S{}return S.PROVIDERS=U,S.\u0275fac=function(W){return new(W||S)},S.\u0275dir=M.lG2({type:S,selectors:[["","tgCustomFormWrite",""]],inputs:{_unused:["tgCustomFormWrite","_unused"]},standalone:!0,features:[M._Bn(U)]}),S})()},60052:(G,B,e)=>{e.d(B,{a:()=>K});var o=e(52805),y=e(89464),t=e(24290),T=e(66952),M=e(37548),S=e(9742),F=e(80059),W=e(14026),V=e(45884);let K=(()=>{class C{constructor(i){this.wordCountSvc=i,this.thirdPersonView=!1}resolveValidators(i,m=7){const u=[];2&m&&i.required&&u.push(this.resolveRequiredValidators(i));const p=4&m?this.resolveValidatorsByType(i):null;return p&&u.push(p),[u.length?u:null,1&m?this.resolveAsyncValidators(i):null]}createWysiwygTypeValidator({charCount:i}){const m=[];return i&&(i.minChars||i.maxChars)&&m.push(function D(C,h){if(typeof document>"u"||void 0===C&&void 0===h)return()=>null;const i=void 0===C?0:C,m=void 0===h?Number.MAX_VALUE:h;if(i<0)throw new Error("Min chars must be >= 0");if(m<0)throw new Error("Max chars must be >= 0");const u=document.createElement("div");return({value:p})=>{let d;return p?(u.innerHTML=p,d=(u.textContent||"").length):d=0,function U(C,h,i){const m={};let u;return i<C&&(m.char_count_min={actual:i,min:C},u=!0),i>h&&(m.char_count_max={actual:i,max:h},u=!0),u?m:null}(i,m,d)}}(i.minChars,i.maxChars)),P(m)}resolveAsyncValidators(i){return null}resolveRequiredValidators(i){switch(i.type){case"checkbox":return(i.options?.length??0)<=1?o.kI.requiredTrue:M.isNotEmptyValidator;case"date":case"text":case null:case void 0:return o.kI.required;case"legal":return o.kI.requiredTrue;case"wysiwyg":return S.m;case"url":return T.c.createValidator(!0,!1);case"address":return y.P.validator;default:return M.isNotEmptyValidator}}resolveTextareaValidators({maxChars:i,maxWords:m,minChars:u,minWords:p}){const d=[],w=this.wordCountSvc.createValidator({max:m,min:p});return u&&d.push(o.kI.minLength(u)),i&&d.push(o.kI.maxLength(i)),w&&d.push(w),P(d)}resolveValidatorsByType(i){switch(i.type){case"email":return t.t;case"payment":return this.thirdPersonView?null:o.kI.requiredTrue;case"extending-form":return(0,F.createExtendingFormValidator)(i);case"textarea":return this.resolveTextareaValidators(i);case"wysiwyg":return this.createWysiwygTypeValidator(i);case"number":return function A({max:C,min:h}){const i=[];return void 0!==h&&i.push(o.kI.min(h)),void 0!==C&&i.push(o.kI.max(C)),P(i)}(i);default:return null}}}return C.\u0275fac=function(i){return new(i||C)(W.LFG(V.O))}
1,C.\u0275prov=W.Yz7({token:C,factory:C.\u0275fac}),C})();function P(C){switch(C.length){case 0:return null;case 1:return C[0];default:return o.kI.compose(C)}}},99356:(G,B,e)=>{e.d(B,{i:()=>P});var o=e(64762),y=e(662),t=e(5296),T=e(64177),M=e(40921),U=e(43383),D=e(69962),S=e(9803),F=e(10067),W=e(50725),V=e(42809),K=e(48e3),A=e(14026);class P{constructor(h,i,m){this.r2=i,this.doc=m,this._rules=new S.X({}),this._rules=new S.X({}),this.wrapperClass=(0,U.Z)("tg-dynamic-"),m&&(this.style=this.initStyle(),i.addClass(h.nativeElement,this.wrapperClass))}get css$(){const h=([m,u])=>`${m}:${u}`,i=([m,u])=>{const p=Object.entries(u);if(p.length){const d=p.map(h).join(";");return`${m.split(/,/g).map(this.mapSelectorString,this).join(",")}{${d}}`}return""};return this._rules.pipe((0,F.b)(0),(0,W.U)(m=>Object.entries(m).map(i).join("")),(0,t.H)("[DynamicStyleEditorService.compute]"),(0,V.d)(1))}ngOnDestroy(){this._rules.complete(),this.style?.remove()}removeSelector(h){if(h in this.rules){const i={...this.rules};delete i[h],this._rules.next(i)}return this}setSelector(h,i){return(0,D.Z)(this.rules[h],i)||this._rules.next({...this.rules,[h]:i}),this}initStyle(){const h=this.r2.createElement("style");return this.r2.appendChild(this.doc.head,h),this.css$.subscribe((0,y.e)(i=>{h.innerHTML=i})),h}mapSelectorString(h){return`.${this.wrapperClass} ${h.trim()}`}}P.\u0275fac=function(h){return new(h||P)(A.LFG(A.SBq),A.LFG(A.Qsj),A.LFG(T.K0,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac}),(0,o.gn)([(0,K.Z)("_rules",{comparator:D.Z})],P.prototype,"rules",void 0),(0,o.gn)([(0,M.a)()],P.prototype,"css$",null)},16516:(G,B,e)=>{e.d(B,{_:()=>Z});var o=e(14026),y=e(15791),t=e(74831),T=e(15859),M=e(97482),U=e(56788),D=e(83375),S=e(79662),F=e(72313),W=e(25275),V=e(90237),K=e(94953),A=e(95612),P=e(46477),C=e(34998),h=e(41157),i=e(61322),m=e(78611),u=e(64177),p=e(85868),d=e(5830),w=e(64683);const E=function(g,l){return[g,l]};function J(g,l){if(1&g){const a=o.EpF();o.TgZ(0,"img",12,13),o.NdJ("click.passive",function(){const N=o.CHM(a).$implicit,$=o.oxw(2);return o.KtG($.onSourceClick(N))}),o.qZA()}if(2&g){const a=l.$implicit,O=o.MAs(1),L=o.oxw(2);o.ekj("d-none",O.busy||!O.src||O.src===L.anon),o.Q6J("placement","bottom")("container","body")("tooltip",a.label)("alt",a.label)("tgFallbackImage",o.WLB(7,E,a.url,L.anon))}}function s(g,l){1&g&&(o.TgZ(0,"div",14),o._UZ(1,"i",10),o.qZA())}function c(g,l){if(1&g&&(o.TgZ(0,"div",5),o.YNc(1,J,2,10,"img",6),o.TgZ(2,"tg-upload-drop-outlet",7),o.ALo(3,"tr"),o.YNc(4,s,2,0,"div",8),o.TgZ(5,"div",9),o._UZ(6,"i",10),o.qZA()()(),o._UZ(7,"input",11)),2&g){const a=o.oxw();
1o.xp6(1),o.Q6J("ngForOf",a.sources)("ngForTrackBy",a.trackByTy),o.xp6(1),o.Q6J("tooltip",o.lcZ(3,5,"uploadNew"))("placement","bottom")("container","body")}}function v(g,l){if(1&g&&(o.TgZ(0,"div",15),o._UZ(1,"i",16),o.TgZ(2,"span"),o._uU(3),o.qZA()(),o.Hsn(4)),2&g){const a=o.oxw();o.xp6(3),o.Oqu(a.pictureLabel)}}function R(g,l){1&g&&o._UZ(0,"tg-loader-spinner",17)}const b={aspectRatio:1,backgroundColor:"white",enableRotation:!0,onlyScaleDown:!0,resizeToHeight:1140,resizeToWidth:1140};let Z=(()=>{class g{constructor(){this.anon=(0,o.f3M)(F.sG),this.busy=!1,this.cropperConfig=b,this.sourceClick=new o.vpe,this.uploaded=new o.vpe,this.cdr=(0,o.f3M)(o.sBO),this.el=(0,o.f3M)(o.SBq).nativeElement}set cssHeight(a){this.el.style.setProperty("--tg-pp-height",`${a}px`)}set cssWidth(a){this.el.style.setProperty("--tg-pp-width",`${a}px`)}ngOnChanges(a){a.width&&(this.cssWidth=this.width),a.height&&(this.cssHeight=this.height),(a.cropperConfig||a.width||a.height)&&(this.cropperConfig={...b,aspectRatio:this.width/this.height,cropperMinHeight:this.height,cropperMinWidth:this.width,...this.cropperConfig})}ngOnDestroy(){(0,D.completeAll)(this.sourceClick,this.uploaded)}onEvent(a){switch(a.type){case"cancel":this.busy=!1,this.cdr.markForCheck();break;case"start":this.busy=!0,this.updatePopover.hide(),this.cdr.markForCheck();break;case"uploaded":this.busy=!1,this.uploaded.emit(a.file),this.cdr.markForCheck()}}onSourceClick(a){this.updatePopover.hide(),this.sourceClick.emit(a)}}return g.DEFAULT_CONFIG=b,g})();Z.prototype.trackByTy=(0,S.createTrackFn)("ty"),Z.\u0275fac=function(l){return new(l||Z)},Z.\u0275cmp=o.Xpm({type:Z,selectors:[["tg-profile-picture-edit-shell"]],viewQuery:function(l,a){if(1&l&&o.Gf(y.k5,5),2&l){let O;o.iGM(O=o.CRH())&&(a.updatePopover=O.first)}},inputs:{cropperConfig:"cropperConfig",height:"height",pictureLabel:"pictureLabel",popoverTitle:"popoverTitle",query:"query",sources:"sources",width:"width"},outputs:{sourceClick:"sourceClick",uploaded:"uploaded"},standalone:!0,features:[o._Bn([],[{provide:M.z,useValue:"profilePictureEdit"}]),o.TTD,o.jDz],ngContentSelectors:["*"],decls:7,vars:10,consts:[[1,"dyn-sized",3,"popover","popoverTitle","cropImage","cropperConfig","placement","container","query","multi","onCrop"],["up","tg-upload-outlet"],["tplPopover",""],["tplNotBusy",""],["class","dyn-sized",4,"ngIf","ngIfElse"],[1,"d-flex","flex-row","flex-wrap"],["class","p dyn-sized",3,"d-none","placement","container","tooltip","alt","tgFallbackImage","click.passive",4,"ngFor","ngForOf","ngForTrackBy"],[1,"d-inline-block","p","dyn-sized",3,"controlsUploadInput","tooltip","placement","container"],["class","text-success file-drop-inner text-center dyn-sized justify-content-center",4,"uploadDropHoverTemplate"],[1,"file-drop-inner","text-center","dyn-sized","justify-content-center"],[1,"fa","fa-upload","fa-3x"],["type","file","accept","image/*","ngFileSelect","",1,"d-none"],[1,"p","dyn-sized",3,"placement","container","tooltip","alt","tgFallbackImage","click.passive"],["img","tgFallbackImage"],[1,"text-success","file-drop-inner","text-center","dyn-sized","justify-content-center"],[1,"edit-image-overlay","dyn-sized","flex-column","justify-content-center","text-center","d-flex"],[1,"fa","fa-pencil","fa-4x"],[1,"dyn-sized"]],template:function(l,a){if(1&l&&(o.F$t(),o.TgZ(0,"tg-upload-outlet",0,1),o.NdJ("onCrop",function(L){return a.onEvent(L)}),o.YNc(2,c,8,7,"ng-template",null,2,o.W1O),o.YNc(4,v,5,1,"ng-template",null,3,o.W1O),o.YNc(6,R,1,0,"tg-loader-spinner",4),o.qZA()),2&l){const O=o.MAs(3),L=o.MAs(5);o.Q6J("popover",O)("popoverTitle",a.popoverTitle)("cropImage",!0)("cropperConfig",a.cropperConfig)("placement","right")("container",void 0)("query",a.query)("multi",!1),o.xp6(6),o.Q6J("ngIf",a.busy)("ngIfElse",L)}},dependencies:[W.FallbackImageModule,K.Q,V.I,U.c,A.O,P.u,C.h,h.i,i.U,m.qx,y.UU,y.k5,t.z8,t.i9,T.GlobalModule,u.sg,u.O5,p.G,d.K,w.H],styles:["[_nghost-%COMP%]{--tg-zindex:1000;cursor:pointer;display:block}[_nghost-%COMP%]    >popover-container{z-index:var(--tg-zindex)}[_nghost-%COMP%]     .dyn-sized{height:var(--tg-pp-height);width:var(--tg-pp-width)}.p[_ngcontent-%COMP%]{cursor:pointer;margin-bottom:var(--tg-space-1);margin-right:var(--tg-space-1)}.edit-image-overlay[_ngcontent-%COMP%]{--tg-opacity:.5;--tg-transition:all .35s ease;background-color:rgba(0,0,0,var(--tg-opacity));color:#fff;left:0;position:absolute;text-shadow:-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000;top:0;transition:var(--tg-transition);z-index:var(--tg-zindex)}.edit-image-overlay[_ngcontent-%COMP%]:hover{--tg-opacity:.75;text-shadow:none}.file-drop-inner[_ngcontent-%COMP%]{align-items:center;background-color:#d3d3d3;border:1px dashed #000;display:flex;line-height:var(--tg-pp-height);vertical-align:middle}tg-upload-outlet[_ngcontent-%COMP%]{display:block;position:relative}"],changeDetection:0})},33345:(G,B,e)=>{e.d(B,{u:()=>m});var o=e(14026),y=e(52805),t=e(87399),M=e(6115),U=e(15859),D=e(92362),S=e(49363),F=e(59718),W=e(76306),V=e(64177),K=e(84773),A=e(62441),P=e(47946),C=e(16838);function h(u,p){if(1&u){const d=o.EpF();o.TgZ(0,"div",2),o.GkF(1,3),o.TgZ(2,"div",4)(3,"button",5),o.NdJ("click.passive",function(){o.CHM(d);const E=o.oxw();return o.KtG(E.onYearChange(null))}),o.qZA()()()}if(2&u){const d=o.oxw(),w=o.MAs(2);o.xp6(1),o.Q6J("ngTemplateOutlet",w),o.xp6(2),o.Q6J("disabled",d.disabled)}}function i(u,p){if(1&u){const d=o.EpF();o.TgZ(0,"tg-datepicker",6),o.NdJ("touched",function(){o.CHM(d);const E=o.oxw();return o.KtG(E.onTouch())})("ngModelChange",function(E){o.CHM(d);const J=o.oxw();return o.KtG(J.onYearChange(E))}),o.qZA()}if(2&u){const d=o.oxw();o.ekj("clearable",d.clearable),o.Q6J("ngModel",d.controlDateValue)("ngModelOptions",d.MODEL_OPTS)("timezone","UTC")("maxDate",d.maxDate)("minDate",d.minDate)("placement",d.placement)("placeholder",d.placeholder)("lockIntoView",d.LOCK_INTO_VIEW)("startDate",d.startDate)("displayFormat","yyyy")("disabled",d.disabled)}}let m=(()=>{class u extends D.k{constructor(){super(...arguments),this.LOCK_INTO_VIEW=W.c.YEAR,this.clearable=!1,this.controlDateValue=null,this.placeholder="",this.startDate=t.utc([1980]).toDate()}normaliseWriteValue(d){switch(typeof d){case"number":return d;case"string":return M.ISO_DATE_REGEX.test(d)?this.normaliseWriteValue(new Date(d)):null;default:return d instanceof Date?d.getUTCFullYear():null}}onValueWritten(d){this.controlDateValue="number"==typeof d?t.utc([d]).toDate():null}onYearChange(d){this.controlDateValue=d;const w=d?d.getUTCFullYear():null;w!==this.value&&this.onChange(w)}}return u.\u0275fac=function(){let p;return function(w){return(p||(p=o.n5z(u)))(w||u)}}(),u.\u0275cmp=o.Xpm({type:u,selectors:[["tg-year-input"]],hostVars:2,hostBindings:function(d,w){2&d&&o.ekj("tg-input-error-boundary",!0)},inputs:{clearable:"clearable",maxDate:"maxDate",minDate:"minDate",placeholder:"placeholder",placement:"placement",startDate:"startDate"},standalone:!0,features:[o._Bn([{multi:!0,provide:y.JU,useExisting:(0,o.Gpc)(()=>u)}]),o.qOj,o.jDz],decls:3,vars:2,consts:[["class","input-group",4,"ngIf","ngIfElse"],["tpl",""],[1,"input-group"],[3,"ngTemplateOutlet"],[1,"input-group-btn"],[1,"btn-default",3,"tg-clear-button","disabled","click.passive"],[3,"ngModel","ngModelOptions","timezone","maxDate","minDate","placement","placeholder","lockIntoView","startDate","displayFormat","disabled","touched","ngModelChange"]],template:function(d,w){if(1&d&&(o.YNc(0,h,4,2,"div",0),o.YNc(1,i,1,13,"ng-template",null,1,o.W1O)),2&d){const E=o.MAs(2);o.Q6J("ngIf",w.clearable)("ngIfElse",E)}},dependencies:[U.GlobalModule,V.O5,V.tP,K.s,A.h,y.u5,y.JJ,y.On,F.f,P.X,C.s,S.m],styles:["[_nghost-%COMP%]{display:inline-block}tg-datepicker.clearable[_ngcontent-%COMP%]{width:100%}"],changeDetection:0}),u})()}
1,49242:(G,B,e)=>{e.d(B,{s:()=>I});var o=e(64762),y=e(88990),t=e(662),T=e(5296),M=e(14026),U=e(52805),D=e(61029);var W=e(72335),V=e(25989),K=e(9803),A=e(8194),P=e(25336),C=e(3811),h=e(50725),i=e(60407),m=e(48921),u=e(89969),p=e(35673),d=e(87563),w=e(42809),E=e(10066),J=e(83375),s=e(93327),c=e(58322),v=e(85960),R=e(70486);class I extends s.v{constructor(){super(),this.TRACK_BY_ID=v.trackById,this.emitIds=!1,this.multi=!0,this.selected$=new M.vpe,this.fb=(0,M.f3M)(U.QS)}get value(){return this._value$.value}set value(l){(function S(g,l,a){var O=(a="function"==typeof a?a:void 0)?a(g,l):void 0;return void 0===O?(0,D.Z)(g,l,void 0,a):!!O})(l,this.value,b)||this._value$.next(l)}ngOnDestroy(){this.selected$.complete(),this._value$&&(0,J.completeAll)(this._value$,this._writeValue$)}ngOnInit(){this._value$=new K.X([]),this._writeValue$=new A.x,this.ctrlInp=this.fb.control(null),this.tokens=[],this._selectedIds=new Set,this._responseCache=new Map,this.typeahead$=new c.Z({debounceTime:200,getParams:()=>this.ctrlInp.value?.trim()??"",query:l=>this.fetch(l)}).pipe((0,C.w)(l=>this._value$.pipe((0,h.U)(()=>l.filter(this.filterTypeahead,this)))),(0,C.w)(l=>this.selected$.pipe((0,i.q)(1),(0,h.U)(()=>[]),(0,m.O)(l)))),this._writeValue$.pipe((0,h.U)(l=>l?Array.isArray(l)?l:[l]:[]),(0,C.w)(l=>{if(!l.length)return(0,P.of)([]);const a=l.filter(this.isResponse,this);if(a.length===l.length)return(0,P.of)(a);const O=l.filter(E.K);return O.length?this.fetchIdsWithCache(O).pipe((0,h.U)(L=>(0,W.Z)([...a,...L],"id"))):(0,P.of)(a)}),(0,T.H)("[AbstractIdSearch.writeValue$]")).subscribe((0,t.e)(l=>{if(l.length){this._selectedIds=new Set;for(const a of l)this._selectedIds.add(a.id)}else this._selectedIds.clear();this.value=l})),this._value$.pipe((0,u.b)(l=>{this.tokens=l,this.cdr.markForCheck()}),(0,p.T)(1)).subscribe(l=>{this._onChangeFn(this.emitIds?this.multi?l.map(Z):Z(l[0]):this.multi?l:l[0])})}rm(l){const a=l.id;this._selectedIds.delete(a);const O=this.value.findIndex(L=>L.id===a);if(-1!==O){const L=[...this.value];L.splice(O,1),this.value=L}this.onTouch()}selected(l){const a=l.item;this._selectedIds.has(a.id)||(this._selectedIds.add(a.id),this.value=[...this.value,a],this.selected$.emit(a)),this.ctrlInp.reset(),this.onTouch()}setDisabledState(l){l!==this.ctrlInp.disabled&&(l?this.ctrlInp.disable():this.ctrlInp.enable(),this.cdr.detectChanges())}writeValue(l){this._writeValue$.next(l)}filterTypeahead(l){return!this._selectedIds.has(l.id)}fetch(l){return l?this.doFetch(l).pipe((0,u.b)(a=>{for(const O of a)this._responseCache.set(O.id,O)}),(0,T.H)(`[${this.conf.logLabel}.fetch(${l})]`),(0,d.K)(()=>(this.fetch[y.y7]?.delete(l),(0,P.of)([]))),(0,w.d)(1)):(0,P.of)([])}fetchIdsWithCache(l){const a=[],O=l.filter(L=>{const N=this._responseCache.get(L);return!N||(a.push(N),!1)});return O.length?this.fetchIds(O).pipe((0,h.U)(L=>{if(L.length){for(const N of L)this._responseCache.set(N.id,N);a.push(...L)}return a})):(0,P.of)(a)}}function b(g,l){if(g&&l&&!Array.isArray(g)&&!Array.isArray(l))return g.id===l.id}function Z(g){return g.id}I.\u0275fac=function(l){return new(l||I)},I.\u0275dir=M.lG2({type:I,contentQueries:function(l,a,O){if(1&l&&M.Suo(O,R.h,5),2&l){let L;M.iGM(L=M.CRH())&&(a.itemTemplate=L.first)}},inputs:{emitIds:"emitIds",multi:"multi"},outputs:{selected$:"selected"},features:[M.qOj]}),(0,o.gn)([(0,y.qQ)(V.Z)],I.prototype,"fetch",null)},70486:(G,B,e)=>{e.d(B,{h:()=>t});var o=e(49731),y=e(14026);let t=(()=>{class T extends o.TemplateContainer{}return T.\u0275fac=function(){let M;return function(D){return(M||(M=y.n5z(T)))(D||T)}}(),T.\u0275dir=y.lG2({type:T,selectors:[["","idSearchItem",""]],features:[y.qOj]}),T})()},93902:(G,B,e)=>{e.d(B,{u:()=>i});var o=e(14026),y=e(52805),t=e(97482),T=e(49242),M=e(75263),U=e(64177),D=e(61225),S=e(38674),F=e(4678),W=e(36818),V=e(64683);function K(m,u){if(1&m&&o._uU(0),2&m){const p=u.item,d=o.oxw();o.Oqu(p[d.conf.typeaheadOptionField])}}function A(m,u){if(1&m){const p=o.EpF();o.TgZ(0,"input",3),o.NdJ("blur.passive",function(){o.CHM(p);const w=o.oxw();return o.KtG(w.onTouch())})("typeaheadOnSelect",function(w){o.CHM(p);const E=o.oxw();return o.KtG(E.selected(w))}),o.ALo(1,"tr"),o.qZA()}if(2&m){const p=o.oxw(),d=o.MAs(1);o.Q6J("tgConsumeControlId","id")("formControl",p.ctrlInp)("autocomplete","off")("typeahead",p.typeahead$)("typeaheadAsync",!0)("isAnimated",!1)("typeaheadMinLength",0)("typeaheadItemTemplate",(null==p.itemTemplate?null:p.itemTemplate.template)||d)("typeaheadOptionField",p.conf.typeaheadOptionField)("container","body")("typeaheadLatinize",!0)("placeholder",o.lcZ(1,12,p.conf.placeholder))}}const P=function(m){return{item:m}};function C(m,u){if(1&m){const p=o.EpF();o.TgZ(0,"div",6)(1,"div")(2,"div"),o.GkF(3,7),o.qZA(),o.TgZ(4,"div",8),o.NdJ("click.passive",function(){const E=o.CHM(p).$implicit,J=o.oxw(2);return o.KtG(J.rm(E))}),o._UZ(5,"i",9),o.ALo(6,"tr"),o.qZA()()()}if(2&m){const p=u.$implicit,d=o.oxw(2),w=o.MAs(1);o.xp6(3),o.Q6J("ngTemplateOutlet",(null==d.itemTemplate?null:d.itemTemplate.template)||w)("ngTemplateOutletContext",o.VKq(6,P,p)),o.xp6(2),o.uIk("aria-label",o.xi3(6,3,"remove","common"))}}function h(m,u){if(1&m&&(o.TgZ(0,"tg-panel")(1,"tg-panel-body")(2,"div",4),o.YNc(3,C,7,8,"div",5),o.qZA()()()),2&m){const p=o.oxw();o.xp6(3),o.Q6J("ngForOf",p.tokens)("ngForTrackBy",p.TRACK_BY_ID)}}let i=(()=>{class m extends T.s{constructor(p){super(),this.grRes=p,this.conf={logLabel:"GroupIdSearch",placeholder:"placeholder",typeaheadOptionField:"name"},this.showLock=!0}
1doFetch(p){return this.grRes.query({params:{name:p}})}fetchIds(p){return this.grRes.query({params:{id:p}})}isResponse(p){return this.grRes.isResponse(p)}}return m.\u0275fac=function(p){return new(p||m)(o.Y36(M.m))},m.\u0275cmp=o.Xpm({type:m,selectors:[["tg-group-id-search"]],inputs:{showLock:"showLock"},features:[o._Bn([{provide:t.z,useValue:"group-id-search"},{multi:!0,provide:y.JU,useExisting:(0,o.Gpc)(()=>m)}]),o.qOj],decls:4,vars:2,consts:[["defaultTpl",""],["class","form-control",3,"tgConsumeControlId","formControl","autocomplete","typeahead","typeaheadAsync","isAnimated","typeaheadMinLength","typeaheadItemTemplate","typeaheadOptionField","container","typeaheadLatinize","placeholder","blur.passive","typeaheadOnSelect",4,"ngIf"],[4,"ngIf"],[1,"form-control",3,"tgConsumeControlId","formControl","autocomplete","typeahead","typeaheadAsync","isAnimated","typeaheadMinLength","typeaheadItemTemplate","typeaheadOptionField","container","typeaheadLatinize","placeholder","blur.passive","typeaheadOnSelect"],[1,"item-containers"],["class","item-container",4,"ngFor","ngForOf","ngForTrackBy"],[1,"item-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"text-muted","small",3,"click.passive"],["aria-hidden","false","role","button",1,"fa","fa-times"]],template:function(p,d){1&p&&(o.YNc(0,K,1,1,"ng-template",null,0,o.W1O),o.YNc(2,A,2,14,"input",1),o.YNc(3,h,4,2,"tg-panel",2)),2&p&&(o.xp6(2),o.Q6J("ngIf",d.multi||!d.tokens.length),o.xp6(1),o.Q6J("ngIf",d.tokens.length))},dependencies:[U.sg,U.O5,U.tP,D.c,S.r,F.jl,F.Av,y.Fj,y.JJ,y.oH,W.Bp,V.H],styles:["[_nghost-%COMP%]{display:inline}.item-containers[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;flex-direction:row;flex-wrap:wrap}.item-container[_ngcontent-%COMP%]{border-collapse:collapse;display:inline-table;margin:2px}.item-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:table-row}.item-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border:1px solid #ccc;display:table-cell;padding:2px;vertical-align:middle}.text-muted.small[_ngcontent-%COMP%]{cursor:pointer}tg-panel-body[_ngcontent-%COMP%]{padding:2px}"],changeDetection:0}),m})()},91218:(G,B,e)=>{e.d(B,{E:()=>T});var o=e(6917),y=e(14026),t=e(91786);let T=(()=>{class M extends o.T{constructor(D){super(D)}setMembershipCategory(D,S,F){const{enabled:W,options:V,lock:K}=F,A=Boolean(D.state.membership_category);if(W&&(!A||!K)){const P=Boolean(S)&&(!V?.length||V.includes(S));S&&(P?D.state.membership_category=S:delete D.state.membership_category)}}tryFetchDoc(D){return this.resource.get(D)}}return M.\u0275fac=function(D){return new(D||M)(y.LFG(t.w))},M.\u0275prov=y.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})()},96012:(G,B,e)=>{function o({value:t}){return null!=t&&y(t)?null:{required:!0}}function y(t){if(!t||"string"!=typeof t)return!1;const T=document.createElement("div");try{T.innerHTML=t}catch{return!1}return Boolean(T.textContent?.trim().length)}e.d(B,{B:()=>y,E:()=>o})},9742:(G,B,e)=>{e.d(B,{D:()=>M,m:()=>U});var o=e(14026),y=e(52805),t=e(35907),T=e(96012);let M=(()=>{class D extends t.T{doValidate(F){return U(F)}}return D.\u0275fac=function(){let S;return function(W){return(S||(S=o.n5z(D)))(W||D)}}(),D.\u0275dir=o.lG2({type:D,selectors:[["tg-wysiwyg-editor","ngModel","","wysiwygNotEmpty",""]],inputs:{shouldValidate:["wysiwygNotEmpty","shouldValidate"]},features:[o._Bn([{multi:!0,provide:y.Cf,useExisting:(0,o.Gpc)(()=>D)}]),o.qOj]}),D})();function U(D){return(0,T.B)(D.value)?null:{required:!0}}},1226:(G,B,e)=>{e.d(B,{G:()=>t});var o=e(6903),y=e(54332);function t(){return(0,o.e)(function(T,M){var U,D=!1;T.subscribe((0,y.x)(M,function(S){var F=U;U=S,D&&M.next([F,S]),D=!0}))})}}}]);

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.