vendor: 4,390 bytes, line 1
1import{a as ge}from"./chunk-HX53FP47.js";import{a as Je}from"./chunk-7UZ7RK7F.js";import{a as Ze,b as Xe}from"./chunk-RDCFR2KU.js";import{$ as Ge,$a as Le,Ab as me,Bb as d,Cb as h,Eb as I,H as de,Ha as s,Kb as V,La as G,Lb as S,M as z,Na as Ue,O,P as ke,Pa as j,Pb as ze,Q as ce,Qa as u,S as A,U as E,Va as He,Wa as he,Xa as p,Yb as _e,Z as Te,Za as _,_ as Re,_b as Ye,a as f,aa as je,b as m,bb as $e,da as Be,db as v,eb as y,gb as We,ha as g,hb as fe,i as Oe,ib as pe,ja as ue,jb as C,ka as Y,kb as l,l as Ie,lb as a,ma as R,mb as b,q as Ne,qb as qe,sb as F,ub as w,w as Pe}from"./chunk-ZK557EJ4.js";var at=(()=>{class n{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(i){return new(i||n)(u(j),u(R))};static \u0275dir=p({type:n})}return n})(),Ve=(()=>{class n extends at{static \u0275fac=(()=>{let e;return function(r){return(e||(e=Y(n)))(r||n)}})();static \u0275dir=p({type:n,features:[_]})}return n})(),re=new A("");var Gt={provide:re,useExisting:O(()=>oe),multi:!0};function jt(){let n=ge()?ge().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}var Bt=new A(""),oe=(()=>{class n extends at{_compositionMode;_composing=!1;constructor(e,i,r){super(e,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!jt())}writeValue(e){let i=e??"";this.setProperty("value",i)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(i){return new(i||n)(u(j),u(R),u(Bt,8))};static \u0275dir=p({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,r){i&1&&F("input",function(c){return r._handleInput(c.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(c){return r._compositionEnd(c.target.value)})},standalone:!1,features:[I([Gt]),_]})}return n})();function De(n){return n==null||Me(n)===0}function Me(n){return n==null?null:Array.isArray(n)||typeof n=="string"?n.length:n instanceof Set?n.size:null}var lt=new A(""),dt=new A(""),Ut=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,D=class{static min(t){return Ht(t)}static max(t){return Lt(t)}static required(t){return $t(t)}static requiredTrue(t){return Wt(t)}static email(t){return qt(t)}static minLength(t){return zt(t)}static maxLength(t){return Yt(t)}static pattern(t){return Zt(t)}static nullValidator(t){return ct()}static compose(t){return gt(t)}static composeAsync(t){return vt(t)}};function Ht(n){return t=>{if(t.value==null||n==null)return null;let e=parseFloat(t.value);return!isNaN(e)&&e<n?{min:{min:n,actual:t.value}}:null}}function Lt(n){return t=>{if(t.value==null||n==null)return null;let e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}function $t(n){return De(n.value)?{required:!0}:null}function Wt(n){return n.value===!0?null:{required:!0}}function qt(n){return De(n.value)||Ut.test(n.value)?null:{email:!0}}function zt(n){return t=>{let e=t.value?.length??Me(t.value);return e===null||e===0?null:e<n?{minlength:{requiredLength:n,actualLength:e}}:null}}function Yt(n){return t=>{let e=t.value?.length??Me(t.value);return e!==null&&e>n?{maxlength:{requiredLength:n,actualLength:e}}:null}}function Zt(n){if(!n)return ct;let t,e;return typeof n=="string"?(e="",n.charAt(0)!=="^"&&(e+="^"),e+=n,n.charAt(n.length-1)!=="$"&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(De(i.value))return null;let r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function ct(n){return null}function ut(n){return n!=null}function ht(n){return Le(n)?Ie(n):n}function ft(n){let t={};
vendor: 13,476 bytes, line 1
1return n.forEach(e=>{t=e!=null?f(f({},t),e):t}),Object.keys(t).length===0?null:t}function pt(n,t){return t.map(e=>e(n))}function Xt(n){return!n.validate}function mt(n){return n.map(t=>Xt(t)?t:e=>t.validate(e))}function gt(n){if(!n)return null;let t=n.filter(ut);return t.length==0?null:function(e){return ft(pt(e,t))}}function _t(n){return n!=null?gt(mt(n)):null}function vt(n){if(!n)return null;let t=n.filter(ut);return t.length==0?null:function(e){let i=pt(e,t).map(ht);return Pe(i).pipe(Ne(ft))}}function yt(n){return n!=null?vt(mt(n)):null}function Ke(n,t){return n===null?[t]:Array.isArray(n)?[...n,t]:[n,t]}function Ct(n){return n._rawValidators}function bt(n){return n._rawAsyncValidators}function ve(n){return n?Array.isArray(n)?n:[n]:[]}function J(n,t){return Array.isArray(n)?n.includes(t):n===t}function Qe(n,t){let e=ve(t);return ve(n).forEach(r=>{J(e,r)||e.push(r)}),e}function et(n,t){return ve(t).filter(e=>!J(n,e))}var K=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=_t(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=yt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,e){return this.control?this.control.hasError(t,e):!1}getError(t,e){return this.control?this.control.getError(t,e):null}},k=class extends K{name;get formDirective(){return null}get path(){return null}},$=class extends K{_parent=null;name=null;valueAccessor=null},Q=class{_cd;constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},Jt={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},ni=m(f({},Jt),{"[class.ng-submitted]":"isSubmitted"}),Vt=(()=>{class n extends Q{constructor(e){super(e)}static \u0275fac=function(i){return new(i||n)(u($,2))};static \u0275dir=p({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&me("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[_]})}return n})(),Dt=(()=>{class n extends Q{constructor(e){super(e)}static \u0275fac=function(i){return new(i||n)(u(k,10))};static \u0275dir=p({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&me("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},standalone:!1,features:[_]})}return n})();var B="VALID",Z="INVALID",N="PENDING",U="DISABLED",M=class{},ee=class extends M{value;source;constructor(t,e){super(),this.value=t,this.source=e}},H=class extends M{pristine;source;constructor(t,e){super(),this.pristine=t,this.source=e}},L=class extends M{touched;source;constructor(t,e){super(),this.touched=t,this.source=e}},P=class extends M{status;source;constructor(t,e){super(),this.status=t,this.source=e}},ye=class extends M{source;constructor(t){super(),this.source=t}},W=class extends M{source;constructor(t){super(),this.source=t}};function xe(n){return(se(n)?n.validators:n)||null}function Kt(n){return Array.isArray(n)?_t(n):n||null}function Ae(n,t){return(se(t)?t.asyncValidators:n)||null}function Qt(n){return Array.isArray(n)?yt(n):n||null}function se(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}function Mt(n,t,e){let i=n.controls;if(!(t?Object.keys(i):i).length)throw new z(1e3,"");if(!i[e])throw new z(1001,"")}function xt(n,t,e){n._forEachChild((i,r)=>{if(e[r]===void 0)throw new z(1002,"")})}var T=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,e){this._assignValidators(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return V(this.statusReactive)}set status(t){V(()=>this.statusReactive.set(t))}_status=S(()=>this.statusReactive());statusReactive=g(void 0);get valid(){return this.status===B}get invalid(){return this.status===Z}get pending(){return this.status==N}get disabled(){return this.status===U}get enabled(){return this.status!==U}errors;get pristine(){return V(this.pristineReactive)}set pristine(t){V(()=>this.pristineReactive.set(t))}_pristine=S(()=>this.pristineReactive());pristineReactive=g(!0);get dirty(){return!this.pristine}get touched(){return V(this.touchedReactive)}set touched(t){V(()=>this.touchedReactive.set(t))}_touched=S(()=>this.touchedReactive());touchedReactive=g(!1);get untouched(){return!this.touched}_events=new Oe;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(Qe(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Qe(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(et(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(et(t,this._rawAsyncValidators))}hasValidator(t){return J(this._rawValidators,t)}hasAsyncValidator(t){return J(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let e=this.touched===!1;this.touched=!0;let i=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(m(f({},t),{sourceControl:i})),e&&t.emitEvent!==!1&&this._events.next(new L(!0,i))}markAllAsDirty(t={}){this.markAsDirty({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(t))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(t))}markAsUntouched(t={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:i})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,i),e&&t.emitEvent!==!1&&this._events.next(new L(!1,i))}markAsDirty(t={}){let e=this.pristine===!0;this.pristine=!1;let i=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(m(f({},t),{sourceControl:i})),e&&t.emitEvent!==!1&&this._events.next(new H(!1,i))}markAsPristine(t={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,i),e&&t.emitEvent!==!1&&this._events.next(new H(!0,i))}markAsPending(t={}){this.status=N;let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new P(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(m(f({},t),{sourceControl:e}))}disable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=U,this.errors=null,this._forEachChild(r=>{r.disable(m(f({},t),{onlySelf:!0}))}),this._updateValue();let i=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new ee(this.value,i)),this._events.next(new P(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(m(f({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=B,this._forEachChild(i=>{i.enable(m(f({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(m(f({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t,e){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===B||this.status===N)&&this._runAsyncValidator(i,t.emitEvent)}let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new ee(this.value,e)),this._events.next(new P(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(m(f({},t),{sourceControl:e}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?U:B}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,e){if(this.asyncValidator){this.status=N,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:t!==!1};let i=ht(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(t){let e=t;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){let i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,e,i){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||i)&&this._events.next(new P(this.status,e)),this._parent&&this._parent._updateControlsErrors(t,e,i)}_initObservables(){this.valueChanges=new G,this.statusChanges=new G}_calculateStatus(){return this._allControlsDisabled()?U:this.errors?Z:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(N)?N:this._anyControlsHaveStatus(Z)?Z:B}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,e){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,e),r&&this._events.next(new H(this.pristine,e))}_updateTouched(t={},e){this.touched=this._anyControlsTouched(),this._events.next(new L(this.touched,e)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,e)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){se(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let e=this._parent&&this._parent.dirty;return!t&&!!e&&!this._parent._anyControlsDirty()}
vendor: 20,735 bytes, line 1
1_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=Kt(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=Qt(this._rawAsyncValidators)}},te=class extends T{constructor(t,e,i){super(xe(e),Ae(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){xt(this,!0,t),Object.keys(t).forEach(i=>{Mt(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(Object.keys(t).forEach(i=>{let r=this.controls[i];r&&r.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t?t[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new W(this))}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var Ce=class extends te{};var At=new A("",{providedIn:"root",factory:()=>Ee}),Ee="always";function en(n,t){return[...t.path,n]}function tt(n,t,e=Ee){Fe(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||e==="always")&&t.valueAccessor.setDisabledState?.(n.disabled),nn(n,t),on(n,t),rn(n,t),tn(n,t)}function nt(n,t,e=!0){let i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),ie(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function ne(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function tn(n,t){if(t.valueAccessor.setDisabledState){let e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}function Fe(n,t){let e=Ct(n);t.validator!==null?n.setValidators(Ke(e,t.validator)):typeof e=="function"&&n.setValidators([e]);let i=bt(n);t.asyncValidator!==null?n.setAsyncValidators(Ke(i,t.asyncValidator)):typeof i=="function"&&n.setAsyncValidators([i]);let r=()=>n.updateValueAndValidity();ne(t._rawValidators,r),ne(t._rawAsyncValidators,r)}function ie(n,t){let e=!1;if(n!==null){if(t.validator!==null){let r=Ct(n);if(Array.isArray(r)&&r.length>0){let o=r.filter(c=>c!==t.validator);o.length!==r.length&&(e=!0,n.setValidators(o))}}if(t.asyncValidator!==null){let r=bt(n);if(Array.isArray(r)&&r.length>0){let o=r.filter(c=>c!==t.asyncValidator);o.length!==r.length&&(e=!0,n.setAsyncValidators(o))}}}let i=()=>{};return ne(t._rawValidators,i),ne(t._rawAsyncValidators,i),e}function nn(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,n.updateOn==="change"&&Et(n,t)})}function rn(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,n.updateOn==="blur"&&n._pendingChange&&Et(n,t),n.updateOn!=="submit"&&n.markAsTouched()})}function Et(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function on(n,t){let e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}function sn(n,t){n==null,Fe(n,t)}function an(n,t){return ie(n,t)}function ln(n,t){if(!n.hasOwnProperty("model"))return!1;let e=n.model;return e.isFirstChange()?!0:!Object.is(t,e.currentValue)}function dn(n){return Object.getPrototypeOf(n.constructor)===Ve}function cn(n,t){n._syncPendingControls(),t.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function un(n,t){if(!t)return null;Array.isArray(t);let e,i,r;return t.forEach(o=>{o.constructor===oe?e=o:dn(o)?i=o:r=o}),r||i||e||null}function hn(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1)}function it(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1)}function rt(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var X=class extends T{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,e,i){super(xe(e),Ae(i,e)),this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),se(e)&&(e.nonNullable||e.initialValueIsDefault)&&(rt(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new W(this))}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){it(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){it(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){rt(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var fn=n=>n instanceof X;var Ft=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275dir=p({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return n})();var wt=new A("");var pn={provide:k,useExisting:O(()=>we)},we=(()=>{class n extends k{callSetDisabledState;get submitted(){return V(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=S(()=>this._submittedReactive());_submittedReactive=g(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new G;constructor(e,i,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ie(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let i=this.form.get(e.path);return tt(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){nt(e.control||null,e,!1),hn(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this._submittedReactive.set(!0),cn(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new ye(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0,i={}){this.form.reset(e,i),this._submittedReactive.set(!1)}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(nt(i||null,e),fn(r)&&(tt(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let i=this.form.get(e.path);sn(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let i=this.form.get(e.path);i&&an(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Fe(this.form,this),this._oldForm&&ie(this._oldForm,this)}static \u0275fac=function(i){return new(i||n)(u(lt,10),u(dt,10),u(At,8))};static \u0275dir=p({type:n,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&F("submit",function(c){return r.onSubmit(c)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[I([pn]),_,ue]})}return n})();var mn={provide:$,useExisting:O(()=>Se)},Se=(()=>{class n extends ${_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new G;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,o,c){super(),this._ngModelWarningConfig=c,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=un(this,o)}ngOnChanges(e){this._added||this._setUpControl(),ln(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return en(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(i){return new(i||n)(u(k,13),u(lt,10),u(dt,10),u(re,10),u(wt,8))};static \u0275dir=p({type:n,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[I([mn]),_,ue]})}return n})();var gn={provide:re,useExisting:O(()=>ae),multi:!0};function St(n,t){return n==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${n}: ${t}`.slice(0,50))}function _n(n){return n.split(":")[0]}var ae=(()=>{class n extends Ve{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e}_compareWith=Object.is;appRefInjector=E($e).injector;destroyRef=E(Be);cdr=E(ze);_queuedWrite=!1;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=!0,Ue({write:()=>{this.destroyRef.destroyed||(this._queuedWrite=!1,this.writeValue(this.value))}},{injector:this.appRefInjector}))}writeValue(e){this.cdr.markForCheck(),this.value=e;let i=this._getOptionId(e),r=St(i,e);this.setProperty("value",r)}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){let i=_n(e);return this._optionMap.has(i)?this._optionMap.get(i):e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Y(n)))(r||n)}})();static \u0275dir=p({type:n,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(i,r){i&1&&F("change",function(c){return r.onChange(c.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[I([gn]),_]})}return n})(),Ot=(()=>{class n{_element;_renderer;_select;id;constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(e){this._select!=null&&(this._select._optionMap.set(this.id,e),this._setElementValue(St(this.id,e)),this._select._writeValueAfterRender())}set value(e){this._setElementValue(e),this._select&&this._select._writeValueAfterRender()}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select._writeValueAfterRender())}static \u0275fac=function(i){return new(i||n)(u(R),u(j),u(ae,9))};static \u0275dir=p({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return n})(),vn={provide:re,useExisting:O(()=>It),multi:!0};function ot(n,t){return n==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${n}: ${t}`.slice(0,50))}function yn(n){return n.split(":")[0]}var It=(()=>{class n extends Ve{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e}_compareWith=Object.is;writeValue(e){this.value=e;let i;if(Array.isArray(e)){let r=e.map(o=>this._getOptionId(o));i=(o,c)=>{o._setSelected(r.indexOf(c.toString())>-1)}}else i=(r,o)=>{r._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(e){this.onChange=i=>{let r=[],o=i.selectedOptions;if(o!==void 0){let c=o;for(let x=0;x<c.length;x++){let q=c[x],le=this._getOptionValue(q.value);r.push(le)}}else{let c=i.options;for(let x=0;x<c.length;x++){let q=c[x];if(q.selected){let le=this._getOptionValue(q.value);r.push(le)}}}this.value=r,e(r)}}_registerOption(e){let i=(this._idCounter++).toString();return this._optionMap.set(i,e),i}_getOptionId(e){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i)._value,e))return i;return null}_getOptionValue(e){let i=yn(e);return this._optionMap.has(i)?this._optionMap.get(i)._value:e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Y(n)))(r||n)}})();static \u0275dir=p({type:n,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(i,r){i&1&&F("change",function(c){return r.onChange(c.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[I([vn]),_]})}return n})(),Nt=(()=>{class n{_element;_renderer;_select;id;_value;constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){this._select!=null&&(this._value=e,this._setElementValue(ot(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(ot(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(i){return new(i||n)(u(R),u(j),u(It,9))};static \u0275dir=p({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return n})();var Cn=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=he({type:n});static \u0275inj=ce({})}return n})(),be=class extends T{constructor(t,e,i){super(xe(e),Ae(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){Array.isArray(t)?t.forEach(i=>{this.controls.push(i),this._registerControl(i)}):(this.controls.push(t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){xt(this,!1,t),t.forEach((i,r)=>{Mt(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new W(this))}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,i)=>i._syncPendingControls()?!0:e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}};function st(n){return!!n&&(n.asyncValidators!==void 0||n.validators!==void 0||n.updateOn!==void 0)}var Pt=(()=>{class n{useNonNullable=!1;get nonNullable(){let e=new n;return e.useNonNullable=!0,e}group(e,i=null){let r=this._reduceControls(e),o={};return st(i)?o=i:i!==null&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new te(r,o)}record(e,i=null){let r=this._reduceControls(e);return new Ce(r,i)}control(e,i,r){let o={};return this.useNonNullable?(st(i)?o=i:(o.validators=i,o.asyncValidators=r),new X(e,m(f({},o),{nonNullable:!0}))):new X(e,i,r)}array(e,i,r){let o=e.map(c=>this._createControl(c));return new be(o,i,r)}_reduceControls(e){let i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){if(e instanceof X)return e;if(e instanceof T)return e;if(Array.isArray(e)){let i=e[0],r=e.length>1?e[1]:null,o=e.length>2?e[2]:null;return this.control(i,r,o)}else return this.control(e)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ke({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var kt=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:wt,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:At,useValue:e.callSetDisabledState??Ee}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=he({type:n});
1static \u0275inj=ce({imports:[Cn]})}return n})();var Vn=(n,t)=>t.country;function Dn(n,t){if(n&1&&b(0,"app-page-skeleton",0),n&2){let e=w();C("sections",e.skeletonSections)}}function Mn(n,t){if(n&1&&(l(0,"div",8)(1,"span",14),Ge(),l(2,"svg",15),b(3,"path",16),a()(),je(),l(4,"h3"),d(5),a(),l(6,"p"),d(7),a()()),n&2){let e=w(2);s(5),h(e.config().formFields.successTitle),s(2),h(e.config().formFields.successBody)}}function xn(n,t){n&1&&(l(0,"span",22),d(1,"Please enter your name."),a())}function An(n,t){n&1&&(l(0,"span",22),d(1,"Please enter your email address."),a())}function En(n,t){n&1&&(l(0,"span",22),d(1,"Please enter a valid email address."),a())}function Fn(n,t){if(n&1&&(l(0,"option",30),d(1),a()),n&2){let e=t.$implicit;C("value",e),s(),h(e)}}function wn(n,t){n&1&&(l(0,"span",22),d(1,"Please choose an option."),a())}function Sn(n,t){n&1&&(l(0,"span",22),d(1,"Please enter a message."),a())}function On(n,t){if(n&1&&(l(0,"span",35),d(1),a()),n&2){let e=w(3);s(),h(e.errorMessage())}}function In(n,t){if(n&1){let e=qe();l(0,"form",17),F("ngSubmit",function(){Te(e);let r=w(2);return Re(r.submit())}),l(1,"div",18)(2,"div",19)(3,"label",20),d(4),a(),b(5,"input",21),v(6,xn,2,0,"span",22),a(),l(7,"div",19)(8,"label",23),d(9),a(),b(10,"input",24),v(11,An,2,0,"span",22),v(12,En,2,0,"span",22),a()(),l(13,"div",19)(14,"label",25),d(15),a(),b(16,"input",26),a(),l(17,"div",19)(18,"label",27),d(19),a(),l(20,"select",28)(21,"option",29),d(22),a(),fe(23,Fn,2,2,"option",30,We),a(),v(25,wn,2,0,"span",22),a(),l(26,"div",19)(27,"label",31),d(28),a(),b(29,"textarea",32),v(30,Sn,2,0,"span",22),a(),l(31,"div",33)(32,"button",34),d(33),a(),v(34,On,2,1,"span",35),a()()}if(n&2){let e=w(2);C("formGroup",e.form),s(4),h(e.config().formFields.name.label),s(),C("placeholder",e.config().formFields.name.placeholder),s(),y(e.form.controls.name.invalid&&e.form.controls.name.touched?6:-1),s(3),h(e.config().formFields.email.label),s(),C("placeholder",e.config().formFields.email.placeholder),s(),y(e.form.controls.email.touched&&e.form.controls.email.hasError("required")?11:-1),s(),y(e.form.controls.email.touched&&e.form.controls.email.hasError("email")?12:-1),s(3),h(e.config().formFields.organisation.label),s(),C("placeholder",e.config().formFields.organisation.placeholder),s(3),h(e.config().formFields.interest.label),s(3),h(e.config().formFields.interest.placeholder),s(),pe(e.interestOptions()),s(2),y(e.form.controls.interest.invalid&&e.form.controls.interest.touched?25:-1),s(3),h(e.config().formFields.message.label),s(),C("placeholder",e.config().formFields.message.placeholder),s(),y(e.form.controls.message.invali
1d&&e.form.controls.message.touched?30:-1),s(2),C("disabled",e.submitting()),s(),h(e.config().formFields.submitLabel),s(),y(e.errorMessage()?34:-1)}}function Nn(n,t){if(n&1&&(l(0,"div",12)(1,"span",36),d(2),a(),l(3,"h3"),d(4),a(),l(5,"p"),d(6),b(7,"br"),d(8),a()()),n&2){let e=t.$implicit;s(2),h(e.country),s(2),h(e.location),s(2),h(e.org),s(2),h(e.detail)}}function Pn(n,t){if(n&1&&(l(0,"section",1)(1,"div",2)(2,"span",3),d(3),a(),l(4,"h1"),d(5),a(),l(6,"p",4),d(7),a()()(),l(8,"section",5)(9,"div",6)(10,"div",7),v(11,Mn,8,2,"div",8)(12,In,35,19,"form",9),a()(),l(13,"aside",10)(14,"div",11),fe(15,Nn,9,4,"div",12,Vn),a(),l(17,"div",13)(18,"h3"),d(19),a(),l(20,"p"),d(21),a()()()()),n&2){let e=w();s(3),h(e.config().heroEyebrow),s(2),h(e.config().heroTitle),s(2),h(e.config().heroLead),s(4),y(e.sent()?11:12),s(4),pe(e.config().offices),s(4),h(e.config().noteTitle),s(2),h(e.config().noteBody)}}var kn={name:{label:"Full name",placeholder:"Jane Smith"},email:{label:"Work email",placeholder:"[email protected]"},organisation:{label:"Organisation",placeholder:"Society / press / publisher"},interest:{label:"I'm interested in",placeholder:"Select an option",extraOptionsBefore:["Booking a demo"],extraOptionsAfter:["Something else"]},message:{label:"Message",placeholder:"Tell us about your journals, books and current workflow\u2026"},submitLabel:"Send message",successTitle:"Message sent",successBody:"Thank you - we'll be in touch within one business day."},Tn={heroEyebrow:"",heroTitle:"",heroLead:"",offices:[],noteTitle:"",noteBody:"",formFields:kn},Tt=class n{fb=E(Pt);api=E(Ye);skeletonSections=[{type:"hero",lines:2},{type:"text",lines:4},{type:"grid",count:2}];sent=g(!1);submitting=g(!1);errorMessage=g("");config$=this.api.contactPageConfig().pipe(de(1));products$=this.api.products().pipe(de(1));loading=Ze(this.config$,this.products$);config=_e(this.config$,{initialValue:Tn});products=_e(this.products$,{initialValue:[]});interestOptions=S(()=>{let{extraOptionsBefore:t,extraOptionsAfter:e}=this.config().formFields.interest;return[...t,...this.products().map(i=>i.name),...e]});form=this.fb.nonNullable.group({name:["",D.required],email:["",[D.required,D.email]],organisation:[""],interest:["",D.required],message:["",D.required]});submit(){if(this.form.invalid){this.form.markAllAsTouched();return}this.errorMessage.set(""),this.submitting.set(!0),this.api.sendContact(this.form.getRawValue()).subscribe({next:()=>{this.submitting.set(!1),this.sent.set(!0)},error:()=>{this.submitting.set(!1),this.errorMessage.set("Could not send your message right now. Please try again shortly.")}})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=He({type:n,selectors:[["app-contact"]],decls:2,vars:1,consts:[[3,"sections"],["appReveal","",1,"hero"],[1,"hero-inner"],[1,"eyebrow"],[1,"lead"],["appReveal","",1,"content"],[1,"form-col"],[1,"form-panel"],[1,"success-panel"],["novalidate","",3,"formGroup"],[1,"side-col"],[1,"office-grid"],[1,"card","office-card"],[1,"card","note-card"],[1,"success-icon"],["width","28","height","28","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2.4","stroke-linecap","round","stroke-linejoin","round"],["d","M20 6 9 17l-5-5"],["novalidate","",3,"ngSubmit","formGroup"],[1,"field-row"],[1,"field"],["for","name"],["id","name","type","text","formControlName","name",3,"placeholder"],[1,"error"],["for","email"],["id","email","type","email","formControlName","email",3,"placeholder"],["for","organisation"],["id","organisation","type","text","formControlName","organisation",3,"placeholder"],["for","interest"],["id","interest","formControlName","interest"],["value","","disabled",""],[3,"value"],["for","message"],["id","message","rows","4","formControlName","message",3,"placeholder"],[1,"submit-row"],["type","submit",1,"btn-primary",3,"disabled"],[1,"error","submit-error"],[1,"pill"]],template:function(e,i){e&1&&v(0,Dn,1,1,"app-page-skeleton",0)(1,Pn,22,6),e&2&&y(i.loading()?0:1)},dependencies:[kt,Ft,Ot,Nt,oe,ae,Vt,Dt,we,Se,Je,Xe],styles:['[_ngcontent-%COMP%]:root{--bg: #FBFDFB;--bg2: #F1F6F1;--card: rgba(255, 255, 255, .75);--ink: #0E1811;--ink2: #4B5F50;--ink3: #93A698;--acc: #3E7346;
1--acc-soft: #EAF2EB;--acc2: #5A8F4E;--line: #E3EEE4;--line2: #C9DACC;--fd: "Geist", system-ui, sans-serif;--fb: "Geist", system-ui, sans-serif;--rad: 18px;--rad-s: 12px;--sh1: 0 1px 3px rgba(30, 90, 45, .06);--sh2: 0 18px 44px rgba(62, 115, 70, .14);--btn: linear-gradient(135deg, #4C8A55, #2F6B3B);--btn-ink: #FFFFFF;--navbg: rgba(251, 253, 251, .72);--blur: 14px;--hero-bg: radial-gradient(900px 480px at 15% -12%, rgba(90, 143, 78, .1), rgba(255, 255, 255, 0) 55%), radial-gradient(900px 520px at 90% 0%, rgba(62, 115, 70, .12), rgba(255, 255, 255, 0) 55%), #FBFDFB;--code-bg: #12241A;--code-ink: #BAD6C2;--code-tag: #7FC48C;--code-attr: #F0B36A}@keyframes _ngcontent-%COMP%_rvt-up{0%{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}@keyframes _ngcontent-%COMP%_rvt-drawer{0%{transform:translate(40px);opacity:.4}to{transform:none;opacity:1}}[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{max-width:1280px;margin:0 auto;padding:clamp(56px,7vw,90px) clamp(16px,4vw,40px)}.hero[_ngcontent-%COMP%]{max-width:none;background:var(--hero-bg);border-bottom:1px solid var(--line);padding:0}.hero-inner[_ngcontent-%COMP%]{max-width:1280px;margin:0 auto;padding:clamp(64px,8vw,100px) clamp(16px,4vw,40px)}.eyebrow[_ngcontent-%COMP%]{display:block;font:600 13px var(--fb);letter-spacing:.12em;text-transform:uppercase;color:var(--acc)}h1[_ngcontent-%COMP%]{font-family:var(--fd);letter-spacing:-.025em;font-size:clamp(29px,11px + 3.5vw,60px);line-height:1.1;margin:16px 0 0;max-width:760px}.lead[_ngcontent-%COMP%]{font-size:18px;line-height:1.7;color:var(--ink2);max-width:640px;margin:22px 0 0}.content[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));gap:clamp(36px,4vw,60px);align-items:start}.form-panel[_ngcontent-%COMP%]{background:var(--card);border:1px solid var(--line);border-radius:var(--rad);box-shadow:var(--sh2);padding:clamp(28px,3vw,40px)}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:18px}.field-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:16px}.field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:7px}.field[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font:600 13px var(--fb);color:var(--ink)}.field[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .field[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .field[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{font:400 15px var(--fb);color:var(--ink);background:var(--bg);border:1px solid var(--line2);border-radius:var(--rad-s);padding:13px 16px;outline:none;transition:border-color .15s,box-shadow .15s}.field[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus, .field[_ngcontent-%COMP%] select[_ngcontent-%COMP%]:focus, .field[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus{border-color:var(--acc);box-shadow:0 0 0 3px var(--acc-soft)}.field[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{resize:vertical;font-family:var(--fb);line-height:1.6}.error[_ngcontent-%COMP%]{color:#c0392b;font-size:13px}.submit-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.btn-primary[_ngcontent-%COMP%]{background:var(--btn);color:var(--btn-ink);border:none;border-radius:var(--rad-s);padding:15px 28px;font:600 15.5px var(--fb);cursor:pointer;box-shadow:var(--sh1);transition:transform .15s,box-shadow .2s}.btn-primary[_ngcontent-%COMP%]:hover:not(:disabled){transform:translateY(-2px);box-shadow:var(--sh2)}.btn-primary[_ngcontent-%COMP%]:disabled{opacity:.7;cursor:default}.success-panel[_ngcontent-%COMP%]{text-align:center;padding:40px 20px}.success-panel[_ngcontent-%COMP%] .success-icon[_ngcontent-%COMP%]{width:64px;height:64px;border-radius:50%;background:var(--acc-soft);color:var(--acc);display:grid;place-items:center;margin:0 auto}.success-panel[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-family:var(--fd);letter-spacing:-.01em;font-size:22px;margin:22px 0 8px;color:var(--ink)}.success-panel[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--ink2);font-size:15px;line-height:1.6;margin:0}.side-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px}.office-grid[_ngcontent-%COMP%]{display:grid;gap:20px}.card[_ngcontent-%COMP%]{background:var(--card);border:1px solid var(--line);border-radius:var(--rad);padding:30px;box-shadow:var(--sh1)}.office-card[_ngcontent-%COMP%] .pill[_ngcontent-%COMP%]{display:block;font:600 12px var(--fb);letter-spacing:.1em;text-transform:uppercase;color:var(--ink3)}.office-card[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-family:var(--fd);letter-spacing:-.01em;font-size:18px;margin:10px 0 6px}.office-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--ink2);font-size:14.5px;line-height:1.7;margin:0}.note-card[_ngcontent-%COMP%]{background:var(--bg2);border:1px dashed var(--line2);box-shadow:none}.note-card[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-family:var(--fd);letter-spacing:-.01em;font-size:16px;margin:0 0 8px}.note-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--ink2);font-size:14px;line-height:1.7;margin:0}']})};export{Tt as ContactComponent};
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.