1import{a as Tt}from"./chunk-ZDUD2IOH.js";import{a as wt}from"./chunk-CV7A7XJD.js";import"./chunk-SILL6BFZ.js";import{a as ge}from"./chunk-HAMGSRTB.js";import{b as Et}from"./chunk-SWTNFWGP.js";import{a as It}from"./chunk-CKFXJ4M6.js";import{a as Ft}from"./chunk-RT3CAFKL.js";import"./chunk-VO6FFMQ2.js";import"./chunk-X73BQY4W.js";import{a as St}from"./chunk-VRY2PTRO.js";import{d as yt,f as he}from"./chunk-WDOKTICK.js";import{c as bt,d as pe,f as me,g as ue,h as fe}from"./chunk-W4BNGQYG.js";import{e as $}from"./chunk-CJRMVZKU.js";import"./chunk-MS6LDHGK.js";import{a as ut,b as ft,c as ht,d as m,e as gt,f as j,g as H,j as K,l as W,m as Q,n as _t,o as vt,p as Ct,r as V,s as x,t as O}from"./chunk-Z4UR2IU6.js";import{N as pt,P as mt,T as w,a as lt,e as dt,f as ce,g as T,k as ct,p as I}from"./chunk-C3SWPGF7.js";import{$b as a,Aa as oe,Bb as b,Cb as z,Db as N,F as We,Fb as ae,Fc as J,Ga as k,Hb as u,Jc as rt,La as De,M as Qe,Ma as Ae,Na as Ze,Oa as U,Pb as c,Qa as Je,Qb as Re,Qc as le,Rb as y,Sc as de,_b as o,_c as ot,a as je,aa as te,ac as f,bc as Ve,cc as Le,cd as B,da as ie,dc as it,dd as at,ea as $e,ec as E,f as D,fc as Ue,gd as st,ha as Ye,ia as A,ib as et,ja as L,jb as tt,jc as _,kc as C,la as ne,lc as se,m as He,mc as X,na as re,oa as p,ob as d,pc as Z,qb as ke,qc as nt,rc as q,sc as G,t as Ke,va as Xe,vc as S,wa as h,wc as l,xa as g,yc as R}from"./chunk-7RSPASZG.js";import{g as M}from"./chunk-TSRGIXR5.js";var _e=class n{constructor(i){this.apiService=i}create(i){return M(this,null,function*(){return yield this.apiService.api("POST","/pom-call-for-evidence-details",i)})}update(i){return M(this,null,function*(){return yield this.apiService.api("POST",`/pom-call-for-evidence-details/${i.id}`,i)})}delete(i){return M(this,null,function*(){return yield this.apiService.api("DELETE",`/pom-call-for-evidence-details/${i}`)})}getAll(){return M(this,null,function*(){return yield this.apiService.api("GET","/pom-call-for-evidence-details")})}getById(i){return M(this,null,function*(){return yield this.apiService.api("GET",`/pom-call-for-evidence-details/${i}`)})}static \u0275fac=function(e){return new(e||n)(re(he))};static \u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"})};var zt=new ne("cdk-dir-doc",{providedIn:"root",factory:qt});function qt(){return p(lt)}var Gt=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function Bt(n){let i=n?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?Gt.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var xt=(()=>{class n{value="ltr";change=new k;constructor(){let e=p(zt,{optional:!0});if(e){let t=e.body?e.body.dir:null,r=e.documentElement?e.documentElement.dir:null;this.value=Bt(t||r||"ltr")}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(t){return new(t||n)};static \u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var ze={},Ot=(()=>{class n{_appId=p(Je);getId(e){return this._appId!=="ng"&&(e+=this._appId),ze.hasOwnProperty(e)||(ze[e]=0),`${e}${ze[e]++}`}static \u0275fac=function(t){return new(t||n)};static \u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var jt=200,ve=class{_letterKeyStream=new D;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new D;selectedItem=this._selectedItem;constructor(i,e){let t=typeof e?.debounceInterval=="number"?e.debounceInterval:jt;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(i),this._setupKeyHandler(t)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(i){this._selectedItemIndex=i}setItems(i){this._items=i}handleKey(i){let e=i.keyCode;i.key&&i.key.length===1?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(i){this._letterKeyStream.pipe($e(e=>this._pressedLetters.push(e)),Qe(i),We(()=>this._pressedLetters.length>0),Ke(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let t=1;t<this._items.length+1;t++){let r=(this._selectedItemIndex+t)%this._items.length,s=this._items[r];if(!this._skipPredicateFn?.(s)&&s.getLabel?.().toLocaleUpperCase().trim().indexOf(e)===0){this._selectedItem.next(s);break}}this._pressedLetters=[]})}};function Ce(n,...i){return i.length?i.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}var be=class{_items;_activeItemIndex=-1;_activeItem=Ze(null);_wrap=!1;
1_typeaheadSubscription=je.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=i=>i.disabled;constructor(i,e){this._items=i,i instanceof U?this._itemChangesSubscription=i.changes.subscribe(t=>this._itemsChanged(t.toArray())):Ae(i)&&(this._effectRef=st(()=>this._itemsChanged(i()),{injector:e}))}tabOut=new D;change=new D;skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new ve(e,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:t=>this._skipPredicateFn(t)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(t=>{this.setActiveItem(t)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(i=!0){return this._homeAndEnd=i,this}withPageUpDown(i=!0,e=10){return this._pageUpAndDown={enabled:i,delta:e},this}setActiveItem(i){let e=this._activeItem();this.updateActiveItem(i),this._activeItem()!==e&&this.change.next(this._activeItemIndex)}onKeydown(i){let e=i.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(s=>!i[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let s=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(s>0?s:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let s=this._activeItemIndex+this._pageUpAndDown.delta,v=this._getItemsArray().length;this._setActiveItemByIndex(s<v?s:v-1,-1);break}else return;default:(r||Ce(i,"shiftKey"))&&this._typeahead?.handleKey(i);return}this._typeahead?.reset(),i.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem()}isTyping(){return!!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(i){let e=this._getItemsArray(),t=typeof i=="number"?i:e.indexOf(i),r=e[t];this._activeItem.set(r??null),this._activeItemIndex=t,this._typeahead?.setCurrentSelectedItemIndex(t)}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete()}_setActiveItemByDelta(i){this._wrap?this._setActiveInWrapMode(i):this._setActiveInDefaultMode(i)}_setActiveInWrapMode(i){let e=this._getItemsArray();for(let t=1;t<=e.length;t++){let r=(this._activeItemIndex+i*t+e.length)%e.length,s=e[r];if(!this._skipPredicateFn(s)){this.setActiveItem(r);return}}}_setActiveInDefaultMode(i){this._setActiveItemByIndex(this._activeItemIndex+i,i)}_setActiveItemByIndex(i,e){let t=this._getItemsArray();if(t[i]){for(;this._skipPredicateFn(t[i]);)if(i+=e,!t[i])return;this.setActiveItem(i)}}_getItemsArray(){return Ae(this._items)?this._items():this._items instanceof U?this._items.toArray():this._items}_itemsChanged(i){this._typeahead?.setItems(i);let e=this._activeItem();if(e){let t=i.indexOf(e);t>-1&&t!==this._activeItemIndex&&(this._activeItemIndex=t,this._typeahead?.setCurrentSelectedItemIndex(t))}}};var ye=class extends be{_origin="program";setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}};function Mt(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){let i=n.shadowRoot.activeElement;if(i===n)break;n=i}return n}var Nt=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=z({type:n});static \u0275inj=L({})}return n})();var Ht=["*"];function Kt(n,i){n&1&&X(0)}var Wt=(()=>{class n{_elementRef=p(De);constructor(){}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(t){return new(t||n)};static \u0275dir=N({type:n,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]})}return n})(),qe=(()=>{class n{template=p(ke);constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=N({type:n,selectors:[["","cdkStepLabel",""]]})}return n})();
1var P={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},Ge=new ne("STEPPER_GLOBAL_OPTIONS"),Be=(()=>{class n{_stepperOptions;_stepper=p(Y);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;interacted=!1;interactedStream=new k;label;errorMessage;ariaLabel;ariaLabelledby;state;editable=!0;optional=!1;get completed(){return this._completedOverride==null?this._getDefaultCompleted():this._completedOverride}set completed(e){this._completedOverride=e}_completedOverride=null;_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError==null?this._getDefaultError():this._customError}set hasError(e){this._customError=e}_customError=null;_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(){let e=p(Ge,{optional:!0});this._stepperOptions=e||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this.interacted=!1,this._completedOverride!=null&&(this._completedOverride=!1),this._customError!=null&&(this._customError=!1),this.stepControl&&(this._childForms?.forEach(e=>e.resetForm?.()),this.stepControl.reset())}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError!=null}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=b({type:n,selectors:[["cdk-step"]],contentQueries:function(t,r,s){if(t&1&&(Z(s,qe,5),Z(s,gt,5)),t&2){let v;q(v=G())&&(r.stepLabel=v.first),q(v=G())&&(r._childForms=v)}},viewQuery:function(t,r){if(t&1&&nt(ke,7),t&2){let s;q(s=G())&&(r.content=s.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",B],optional:[2,"optional","optional",B],completed:[2,"completed","completed",B],hasError:[2,"hasError","hasError",B]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[Xe],ngContentSelectors:Ht,decls:1,vars:0,template:function(t,r){t&1&&(se(),u(0,Kt,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return n})(),Y=(()=>{class n{_dir=p(xt,{optional:!0});_changeDetectorRef=p(ot);_elementRef=p(De);_destroyed=new D;_keyManager;_steps;steps=new U;_stepHeader;_sortedHeaders=new U;linear=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._steps?(this._isValidIndex(e),this._selectedIndex!==e&&(this.selected?._markAsInteracted(),!this._anyControlsInvalidOrPending(e)&&(e>=this._selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e))):this._selectedIndex=e}_selectedIndex=0;get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}selectionChange=new k;selectedIndexChange=new k;_groupId=p(Ot).getId("cdk-stepper-");get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation(e==="vertical")}_orientation="horizontal";constructor(){}ngAfterContentInit(){this._steps.changes.pipe(te(this._steps),ie(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){if(this._stepHeader.changes.pipe(te(this._stepHeader),ie(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((t,r)=>t._elementRef.nativeElement.compareDocumentPosition(r._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new ye(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),this._keyManager.updateActiveItem(this.selectedIndex),(this._dir?this._dir.change:He()).pipe(te(this._layoutDirection()),ie(this._destroyed)).subscribe(e=>this._keyManager?.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0),this.linear&&this._selectedIndex>0){let e=this.steps.toArray().slice(0,this._selectedIndex);for(let t of e)t._markAsInteracted()}}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}
1reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`${this._groupId}-label-${e}`}_getStepContentId(e){return`${this._groupId}-content-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){let t=e-this._selectedIndex;return t<0?this._layoutDirection()==="rtl"?"next":"previous":t>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getIndicatorType(e,t=P.NUMBER){let r=this.steps.toArray()[e],s=this._isCurrentStep(e);return r._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(r,s):this._getGuidelineLogic(r,s,t)}_getDefaultIndicatorLogic(e,t){return e._showError()&&e.hasError&&!t?P.ERROR:!e.completed||t?P.NUMBER:e.editable?P.EDIT:P.DONE}_getGuidelineLogic(e,t,r=P.NUMBER){return e._showError()&&e.hasError&&!t?P.ERROR:e.completed&&!t?P.DONE:e.completed&&t?r:e.editable&&t?P.EDIT:r}_isCurrentStep(e){return this._selectedIndex===e}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(e){let t=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:t[e],previouslySelectedStep:t[this._selectedIndex]}),this._keyManager&&(this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e)),this._selectedIndex=e,this.selectedIndexChange.emit(this._selectedIndex),this._stateChanged()}_onKeydown(e){let t=Ce(e),r=e.keyCode,s=this._keyManager;s?.activeItemIndex!=null&&!t&&(r===32||r===13)?(this.selectedIndex=s.activeItemIndex,e.preventDefault()):s?.setFocusOrigin("keyboard").onKeydown(e)}_anyControlsInvalidOrPending(e){return this.linear&&e>=0?this.steps.toArray().slice(0,e).some(t=>{let r=t.stepControl;return(r?r.invalid||r.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let e=this._elementRef.nativeElement,t=Mt();return e===t||e.contains(t)}_isValidIndex(e){return e>-1&&(!this.steps||e<this.steps.length)}static \u0275fac=function(t){return new(t||n)};static \u0275dir=N({type:n,selectors:[["","cdkStepper",""]],contentQueries:function(t,r,s){if(t&1&&(Z(s,Be,5),Z(s,Wt,5)),t&2){let v;q(v=G())&&(r._steps=v),q(v=G())&&(r._stepHeader=v)}},inputs:{linear:[2,"linear","linear",B],selectedIndex:[2,"selectedIndex","selectedIndex",at],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"]})}return n})(),Se=(()=>{class n{_stepper=p(Y);type="submit";constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=N({type:n,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(t,r){t&1&&_("click",function(){return r._stepper.next()}),t&2&&Ue("type",r.type)},inputs:{type:"type"}})}return n})(),Ee=(()=>{class n{_stepper=p(Y);type="button";constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=N({type:n,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(t,r){t&1&&_("click",function(){return r._stepper.previous()}),t&2&&Ue("type",r.type)},inputs:{type:"type"}})}return n})(),Pt=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=z({type:n});static \u0275inj=L({imports:[Nt]})}return n})();var Qt=[[["",8,"step-bullet"]],[["",8,"step-title"]]],$t=[".step-bullet",".step-title"],Yt=(n,i,e)=>({active:n,completed:i,done:e});function Xt(n,i){if(n&1){let e=E();Ve(0),o(1,"li",6),_("click",function(){let r=h(e).index,s=C();return g(s.selectedIndex=r)}),Ve(2,7),X(3),X(4,1),Le(),a(),Le()}if(n&2){let e=i.$implicit,t=i.index,r=C();d(),c("ngClass",rt(2,Yt,r.selectedIndex===t,e.completed&&t<r.selectedIndex,e.state==="done"&&t===r.selectedIndex)),d(),c("ngTemplateOutlet",e.stepLabel.template)}}function Zt(n,i){if(n&1&&(o(0,"div",8),it(1,7),a()),n&2){let e=i.$implicit,t=i.index,r=C();y("active",r.selectedIndex===t),c("@stepTransition",r._getAnimationDirection(t)),d(),c("ngTemplateOutlet",e.content)}}var Dt=(()=>{class n extends Y{ngOnInit(){}}return n.\u0275fac=(()=>{let i;return function(t){return(i||(i=oe(n)))(t||n)}})(),n.\u0275cmp=b({type:n,selectors:[["ng-stepper"]],standalone:!1,features:[J([{provide:Y,useExisting:n},{provide:Ge,useValue:{displayDefaultIndicatorType:!1}}]),ae],ngContentSelectors:$t,decls:6,vars:2,consts:[[1,"stepper"],[1,"stepper-header"],[1,"steps"],[4,"ngFor","ngForOf"],[1,"stepper-body"],["class","content",3,"active",4,"ngFor","ngForOf"],[1,"step",3,"click","ngClass"],[3,"ngTemplateOutlet"],[1,"content"]],template:function(e,t){e&1&&(se(Qt),o(0,"div",0)(1,"div",1)(2,"ol",2),u(3,Xt,5,6,"ng-container",3),a()(),o(4,"div",4),u(5,Zt,2,4,"div",5),a()()),e&2&&(d(3),c("ngForOf",t.steps),d(2),c("ngForOf",t._steps))},dependencies:[dt,ce,ct],styles:['[_nghost-%COMP%]{display:block;overflow:hidden}.stepper-header[_ngcontent-%COMP%] .steps[_ngcontent-%COMP%]{width:100%;list-style:none;display:inline-flex;align-items:center;margin:0 auto}.stepper-header[_ngcontent-%COMP%] .steps[_ngcontent-%COMP%] .step[_ngcontent-%COMP%]{text-align:center;font-size:1em}.stepper-header[_ngcontent-%COMP%] .steps[_ngcontent-%COMP%] .step .step-bullet{position:relative;display:inline-flex;justify-content:center;align-items:center;height:40px;width:40px;background-color:#b3babe;border-radius:50%;color:#fff;font-size:1.3rem;text-align:center;text-decoration:none;cursor:pointer}.stepper-header[_ngcontent-%COMP%] .steps[_ngcontent-%COMP%] .step .step-title{position:absolute;right:0;bottom:-5px;left:0;margin:auto 0;height:0}.stepper-header[_ngcontent-%COMP%] .steps[_ngcontent-%COMP%] .step.active .step-bullet{background-color:#306bff}.stepper-header[_ngcontent-%COMP%] .steps[_ngcontent-%COMP%] .step.completed .step-bullet{background-color:#32e67f}.stepper-header[_ngcontent-%COMP%] .steps[_ngcontent-%COMP%] .step.done .step-bullet{background-color:#32e67f}.stepper-body[_ngcontent-%COMP%]{margin:25px auto;padding:1rem}.stepper-body[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]:not(.active){height:0;overflow:hidden}.step[_ngcontent-%COMP%]{position:relative;width:33.33%}.step[_ngcontent-%COMP%]:after{content:"";position:absolute;width:100%;height:3px;background-color:#b3babe;top:50%;left:-50%;z-index:-1}.step[_ngcontent-%COMP%]:first-child:after{content:none}.step.completed[_ngcontent-%COMP%] + .step[_ngcontent-%COMP%]:after{background-color:#32e67f}'],data:{animation:[bt("stepTransition",[ue("previous",me({transform:"translateX(-100%)",opacity:0}
1)),ue("current",me({transform:"translateX(0)",opacity:1})),ue("next",me({transform:"translateX(100%)",opacity:0})),fe(":enter",pe(0)),fe("previous => current",pe("500ms cubic-bezier(0.35, 0, 0.25, 1)")),fe("next => current",pe("500ms cubic-bezier(0.35, 0, 0.25, 1)"))])]}}),n})(),At=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=z({type:n}),n.\u0275inj=L({imports:[I,Pt]}),n})();var Ie=class n{constructor(i){this.apiService=i}getById(i){return M(this,null,function*(){return yield this.apiService.api("GET",`/pom-call-for-evidence-submitter-categories/${i}`)})}getAll(i=0,e=10){return M(this,null,function*(){return yield this.apiService.api("GET",`/pom-call-for-evidence-submitter-categories?page=${i}&limit=${e}`)})}static \u0275fac=function(e){return new(e||n)(re(he))};static \u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"})};function ei(n,i){if(n&1&&(o(0,"option",28),l(1),a()),n&2){let e=i.$implicit;c("ngValue",e),d(),R(" ",e.name," ")}}function ti(n,i){n&1&&(o(0,"div",29),l(1," Submitter category is required. "),a())}function ii(n,i){n&1&&(o(0,"div",30),l(1," This field is required. "),a())}function ni(n,i){n&1&&(o(0,"div",30),l(1," This field is required. "),a())}function ri(n,i){n&1&&(o(0,"div",30),l(1," This field is required. "),a())}var Fe=class n{builder=p(V);categoryService=p(Ie);categories;stepOneForm;constructor(){}ngOnInit(){this.stepOneForm=this.builder.group({consentAccepted:[null,[m.required]],pomCallForEvidenceSubmitterCategory:[null,[m.required]],readGuidelines:[null,[m.required]],understandToAppear:[null,[m.required]],understandNotPublish:[null,[m.required]]}),this.categoryService.getAll().then(i=>{this.categories=i})}stepOneSubmit(){}compareFunction(i,e){return JSON.stringify(i).toLowerCase()===JSON.stringify(e).toLowerCase()}get form(){return this.stepOneForm.controls}onCheckChange(){this.form.readGuidelines.value&&this.form.understandToAppear.value&&this.form.understandNotPublish.value?this.stepOneForm.patchValue({consentAccepted:"Y"}):this.stepOneForm.patchValue({consentAccepted:null})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["app-step-one"]],decls:42,vars:12,consts:[["formRef","ngForm"],["autocomplete","off","novalidate","",1,"mb-5",3,"ngSubmit","formGroup"],[1,"container","py-4"],[1,"row","justify-content-center"],[1,"col-12","col-md-10","col-lg-7"],[1,"card","shadow-sm","border-0","rounded-3"],[1,"card-body","p-4","p-md-5"],[1,"mb-4"],[1,"fw-bold","mb-1"],[1,"text-muted","mb-0"],["for","pomCallForEvidenceSubmitterCategory",1,"form-label","fw-semibold"],[1,"text-danger"],["id","pomCallForEvidenceSubmitterCategory","formControlName","pomCallForEvidenceSubmitterCategory","aria-label","Submitter category",1,"form-select",3,"compareWith"],["disabled","",3,"ngValue"],[3,"ngValue",4,"ngFor","ngForOf"],["class","invalid-feedback d-block",4,"ngIf"],[1,"form-check","mb-4"],["type","checkbox","formControlName","readGuidelines","id","readGuidelines",1,"form-check-input",3,"change"],["for","readGuidelines",1,"form-check-label"],["class","text-danger small mt-2",4,"ngIf"],["type","checkbox","formControlName","understandToAppear","id","understandToAppear",1,"form-check-input",3,"change"],["for","understandToAppear",1,"form-check-label"],[1,"form-check"],["type","checkbox","formControlName","understandNotPublish","id","understandNotPublish",1,"form-check-input",3,"change"],["for","understandNotPublish",1,"form-check-label"],[1,"d-flex","justify-content-end","pt-2"],["type","submit","cdkStepperNext","","aria-label","Next page",1,"btn","btn-primary","px-4",3,"disabled","ngbTooltip"],[1,"fa","fa-chevron-right","ms-1"],[3,"ngValue"],[1,"invalid-feedback","d-block"],[1,"text-danger","small","mt-2"]],template:function(e,t){if(e&1){let r=E();o(0,"form",1,0),_("ngSubmit",function(){return h(r),g(t.stepOneSubmit())}),o(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"h4",8),l(9," Submission Information "),a(),o(10,"p",9),l(11," Complete all required fields before proceeding. "),a()(),o(12,"div",7)(13,"label",10),l(14," Submitter category "),o(15,"span",11),l(16,"*"),a()(),o(17,"select",12)(18,"option",13),l(19," Select submitter category "),a(),u(20,ei,2,2,"option",14),a(),u(21,ti,2,0,"div",15),a(),o(22,"div",7)(23,"div",16)(24,"input",17),_("change",function(){return h(r),g(t.onCheckCh
1ange())}),a(),o(25,"label",18),l(26," I have read the guidelines for submitting evidence and understand that my submission may be published by the Parliamentary committee making the inquiry. "),a(),u(27,ii,2,0,"div",19),a(),o(28,"div",16)(29,"input",20),_("change",function(){return h(r),g(t.onCheckChange())}),a(),o(30,"label",21),l(31," I understand that the committee may request that I appear before them should they require additional information on this topic. "),a(),u(32,ni,2,0,"div",19),a(),o(33,"div",22)(34,"input",23),_("change",function(){return h(r),g(t.onCheckChange())}),a(),o(35,"label",24),l(36," I understand that this information will be used by the parliamentary committees and I shall not make any use of this information or publish it until it has been published by the committee making the inquiry. "),a(),u(37,ri,2,0,"div",19),a()(),o(38,"div",25)(39,"button",26),l(40," Next "),f(41,"i",27),a()()()()()()()()}if(e&2){let r=S(1);c("formGroup",t.stepOneForm),d(17),y("is-invalid",t.stepOneForm.controls.pomCallForEvidenceSubmitterCategory.invalid&&(t.stepOneForm.controls.pomCallForEvidenceSubmitterCategory.touched||r.submitted)),c("compareWith",t.compareFunction),d(),c("ngValue",null),d(2),c("ngForOf",t.categories),d(),c("ngIf",t.stepOneForm.controls.pomCallForEvidenceSubmitterCategory.hasError("required")&&(t.stepOneForm.controls.pomCallForEvidenceSubmitterCategory.touched||r.submitted)),d(6),c("ngIf",t.stepOneForm.controls.readGuidelines.hasError("required")&&(t.stepOneForm.controls.readGuidelines.touched||r.submitted)),d(5),c("ngIf",t.stepOneForm.controls.understandToAppear.hasError("required")&&(t.stepOneForm.controls.understandToAppear.touched||r.submitted)),d(5),c("ngIf",t.stepOneForm.controls.understandNotPublish.hasError("required")&&(t.stepOneForm.controls.understandNotPublish.touched||r.submitted)),d(2),c("disabled",t.stepOneForm.invali
1d)("ngbTooltip",t.stepOneForm.invalid?"Fill the form to proceed":"Next page")}},dependencies:[I,ce,T,x,K,vt,Ct,ft,_t,j,H,O,W,Q,w,$,Se],styles:["[_nghost-%COMP%] .form-select option{color:#1f2937;background-color:#fff}[_nghost-%COMP%] .form-select option:checked{background-color:var(--main-primary);color:#fff}"]})};function oi(n,i){n&1&&(o(0,"div"),l(1," Full name is required. "),a())}function ai(n,i){n&1&&(o(0,"div"),l(1," Full name must be at least 3 characters. "),a())}function si(n,i){n&1&&(o(0,"div"),l(1," Full name cannot exceed 100 characters. "),a())}function li(n,i){if(n&1&&(o(0,"div",33),u(1,oi,2,0,"div",34)(2,ai,2,0,"div",34)(3,si,2,0,"div",34),a()),n&2){let e=C();d(),c("ngIf",e.form.personName.errors==null?null:e.form.personName.errors.required),d(),c("ngIf",e.form.personName.errors==null?null:e.form.personName.errors.minlength),d(),c("ngIf",e.form.personName.errors==null?null:e.form.personName.errors.maxlength)}}function di(n,i){n&1&&(o(0,"small"),l(1," Phone number is required. "),a())}function ci(n,i){n&1&&(o(0,"small"),l(1," Please enter a valid phone number. "),a())}function pi(n,i){if(n&1&&(o(0,"div",33),u(1,di,2,0,"small",34)(2,ci,2,0,"small",34),a()),n&2){let e=C();d(),c("ngIf",e.stepTwoForm.controls.phoneNumber.errors.required),d(),c("ngIf",e.stepTwoForm.controls.phoneNumber.errors.pattern)}}function mi(n,i){n&1&&(o(0,"small"),l(1," Email address is required. "),a())}function ui(n,i){n&1&&(o(0,"small"),l(1," Please enter a valid email address. "),a())}function fi(n,i){if(n&1&&(o(0,"small"),l(1),a()),n&2){let e=C(2);d(),R(" ",e.stepTwoForm.controls.emailAddress.errors.emailExists," ")}}function hi(n,i){if(n&1&&(o(0,"div",33),u(1,mi,2,0,"small",34)(2,ui,2,0,"small",34)(3,fi,2,1,"small",34),a()),n&2){let e=C();d(),c("ngIf",e.stepTwoForm.controls.emailAddress.errors.required),d(),c("ngIf",e.stepTwoForm.controls.emailAddress.errors.pattern),d(),c("ngIf",e.stepTwoForm.controls.emailAddress.errors.emailExists)}}function gi(n,i){n&1&&(o(0,"div",33),l(1," Organization name is required. "),a())}function _i(n,i){if(n&1&&(o(0,"div",10)(1,"label",35),l(2," Organization name "),o(3,"span",12),l(4,"*"),a()(),f(5,"input",36),u(6,gi,2,0,"div",14),a()),n&2){let e=C(),t=S(1);d(5),y("is-invalid",e.stepTwoForm.controls.organizationName.invalid&&(e.stepTwoForm.controls.organizationName.touched||t.submitted)),d(),c("ngIf",e.stepTwoForm.controls.organizationName.hasError("required")&&(e.stepTwoForm.controls.organizationName.touched||t.submitted))}}var Oe=class n{builder=p(V);validationService=p(Et);stepTwoForm;model={onColor:"primary",offColor:"secondary",onText:"On",offText:"Off",disabled:!1,size:"",value:null};constructor(){}ngOnInit(){this.stepTwoForm=this.builder.group({personName:[null,{validators:[m.required,m.minLength(3),m.maxLength(100)]}],emailAddress:[null,{validators:[m.email,m.pattern("^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$")],asyncValidators:[this.validationService.emailExists.bind(this.validationService)],updateOn:"blur"}],phoneNumber:[null,[m.required,m.pattern("^((\\+91-?)|0)?[0-9]{10}$")]],isOrganizationWidget:[!1,[m.required]],isOrganization:["N",[m.required]],organizationName:[null]})}get form(){return this.stepTwoForm.controls}stepTwoSubmit(){}onOrganizationChange(i){let e=this.form.organizationName;this.stepTwoForm.patchValue({isOrganizationWidget:i,isOrganization:i?"Y":"N"}),i?e.setValidators(m.required):(e.reset(),e.clearValidators()),e.updateValueAndValidity()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["app-step-two"]],decls:51,vars:13,consts:[["formRef","ngForm"],["autocomplete","off","novalidate","",1,"mb-5",3,"ngSubmit","formGroup"],[1,"container","py-4"],[1,"row","justify-content-center","align-items-center"],[1,"col-12","col-md-10","col-lg-7"],[1,"card","shadow-sm","border-0","rounded-3"],[1,"card-body","p-4","p-md-5"],[1,"mb-4"],[1,"fw-bold","mb-1"],[1,"text-muted","mb-0"],[1,"form-group","mb-4"],["for","personName",1,"form-label","fw-semibold"],[1,"text-danger"],["type","text","id","personName","placeholder","Full name...","formControlName","personName",1,"form-control"],["class","invali
1d-feedback d-block",4,"ngIf"],["for","phoneNumber",1,"form-label","fw-semibold"],["type","text","id","phoneNumber","placeholder","Phone number...","formControlName","phoneNumber",1,"form-control"],["for","emailAddress",1,"form-label","fw-semibold"],["type","email","id","emailAddress","placeholder","Email address...","formControlName","emailAddress",1,"form-control"],["for","isOrganizationWidget",1,"form-label","fw-semibold","d-block"],[1,"d-flex","align-items-center","gap-3"],["id","isOrganizationWidget","handleColor","warning","handleOnColor","dark","handleOffColor","dark","onColor","success","onText","Yes","offColor","warning","offText","No","formControlName","isOrganizationWidget","size","",3,"valueChange"],[1,"text-muted"],["class","form-group mb-4",4,"ngIf"],[1,"my-4"],[1,"row"],[1,"col-6"],[1,"text-start"],["type","button","cdkStepperPrevious","","ngbTooltip","Previous page","aria-label","Previous",1,"btn","btn-secondary"],[1,"fa","fa-chevron-left","me-1"],[1,"text-end"],["type","submit","cdkStepperNext","","aria-label","Next",1,"btn","btn-primary","px-4",3,"disabled","ngbTooltip"],[1,"fa","fa-chevron-right","ms-1"],[1,"invalid-feedback","d-block"],[4,"ngIf"],["for","organizationName",1,"form-label","fw-semibold"],["type","text","id","organizationName","placeholder","Organization name...","formControlName","organizationName",1,"form-control"]],template:function(e,t){if(e&1){let r=E();o(0,"form",1,0),_("ngSubmit",function(){return h(r),g(t.stepTwoSubmit())}),o(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"h4",8),l(9," Contact Information "),a(),o(10,"p",9),l(11," Provide your contact details below. "),a()(),o(12,"div",10)(13,"label",11),l(14," Full name "),o(15,"span",12),l(16,"*"),a()(),f(17,"input",13),u(18,li,4,3,"div",14),a(),o(19,"div",10)(20,"label",15),l(21," Phone number "),o(22,"span",12),l(23,"*"),a()(),f(24,"input",16),u(25,pi,3,2,"div",14),a(),o(26,"div",10)(27,"label",17),l(28,` Email address 2`),a(),f(29,"input",18),u(30,hi,4,3,"div",14),a(),o(31,"div",10)(32,"label",19),l(33," Are you making this submission on behalf of an organization? "),a(),o(34,"div",20)(35,"ng-toggle",21),_("valueChange",function(v){return h(r),g(t.onOrganizationChange(v))}),a(),o(36,"small",22),l(37," Click to change "),a()()(),u(38,_i,7,3,"div",23),f(39,"hr",24),o(40,"div",25)(41,"div",26)(42,"div",27)(43,"button",28),f(44,"i",29),l(45," Previous "),a()()(),o(46,"div",26)(47,"div",30)(48,"button",31),l(49," Next "),f(50,"i",32),a()()()()()()()()()()}if(e&2){let r=S(1);
2c("formGroup",t.stepTwoForm),d(17),y("is-invalid",t.stepTwoForm.controls.personName.invalid&&(t.stepTwoForm.controls.personName.touched||r.submitted)),d(),c("ngIf",t.form.personName.invalid&&(t.form.personName.dirty||t.form.personName.touched)),d(6),y("is-invalid",t.stepTwoForm.controls.phoneNumber.invalid&&(t.stepTwoForm.controls.phoneNumber.touched||r.submitted)),d(),c("ngIf",t.stepTwoForm.controls.phoneNumber.errors&&(t.stepTwoForm.controls.phoneNumber.touched||r.submitted)),d(4),y("is-invalid",t.stepTwoForm.controls.emailAddress.invalid&&(t.stepTwoForm.controls.emailAddress.touched||r.submitted)),d(),c("ngIf",t.stepTwoForm.controls.emailAddress.errors&&(t.stepTwoForm.controls.emailAddress.touched||r.submitted)),d(8),c("ngIf",t.form.isOrganizationWidget.value),d(10),c("disabled",t.stepTwoForm.invalid)("ngbTooltip",t.stepTwoForm.invalid?"Fill the form to proceed":"Next page")}},dependencies:[I,T,x,K,ht,j,H,O,W,Q,w,$,ge,Se,Ee],encapsulation:2})};function Vt(n){return{provide:ut,useExisting:Ye(()=>n),multi:!0}}var Rt=()=>{},Me=class n{changed=new k;innerValue=null;onTouchedCallback=Rt;onChangeCallback=Rt;setValue(i){throw new Error("not implemented!")}onChange(i){i!==this.innerValue&&(this.innerValue=i,this.onChangeCallback(i),this.changed.emit(this.innerValue))}get value(){return this.innerValue}set value(i){i!==this.innerValue&&(this.innerValue=i,this.setValue(i),this.onChangeCallback(i))}onBlur(){this.onTouchedCallback()}writeValue(i){i!==this.innerValue&&(this.innerValue=i,this.setValue(i))}registerOnChange(i){this.onChangeCallback=i}registerOnTouched(i){this.onTouchedCallback=i}static \u0275fac=function(e){return new(e||n)};static \u0275dir=N({type:n,selectors:[["","appControlValue",""]],outputs:{changed:"changed"}})};function vi(n,i){if(n&1){let e=E();o(0,"a",6),_("click",function(){h(e);let r=C();return g(r.cancel())}),f(1,"i",7),a()}}var Ne=class n extends Me{imageError;max_size=20971520;allowedFileTypes=["image/jpg","image/jpeg","image/png","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"];imagePattern=/image-*/;activeColor="green";baseColor="#ccc";imagePlaceholder;overlayColor="rgba(255,255,255,0.5)";dragging=!1;loaded=!1;imageLoaded=!1;fileSrc="";iconColor="";borderColor="";defaultPlaceholder="/assets/images/image-placeholder.jpg";filePlaceholder="/assets/images/file.jpg";imageExts=["jpg","jpeg","png","jpe"];isNotImage;setValue(i){this.fileSrc=this.value&&!this.imageExts.includes(this.value.split(".").pop())?this.filePlaceholder:this.value||this.imagePlaceholder||this.defaultPlaceholder}handleDragEnter(){this.dragging=!0}handleDragLeave(){this.dragging=!1}handleDrop(i){i.preventDefault(),this.dragging=!1,this.handleInputChange(i)}handleImageLoad(){this.imageLoaded=!0,this.iconColor=this.overlayColor}handleInputChange(i){this.imageError=null;let e=i.dataTransfer?i.dataTransfer.files[0]:i.target.files[0];if(e.size>this.max_size){this.imageError="Maximum size allowed is "+this.max_size/1e3+"Mb";return}if(!this.allowedFileTypes.includes(e.type)){this.imageError="File type not allowed";return}e.type.match(this.imagePattern)||(this.isNotImage=!0),this.loaded=!1;let t=new FileReader;t.onload=this._handleReaderLoaded.bind(this),t.onloadend=this._handleReaderLoadedEnd.bind(this),t.readAsDataURL(e)}_handleReaderLoaded(i){let e=i.target;this.fileSrc=e.result,this.loaded=!0}_handleReaderLoadedEnd(i){this.onChange(i.target.result.toString())}_setActive(){this.borderColor=this.activeColor,this.fileSrc.length===0&&(this.iconColor=this.activeColor)}_setInactive(){this.borderColor=this.baseColor,this.fileSrc.length===0&&(this.iconColor=this.baseColor)}cancel(){this.fileSrc="null",this.isNotImage=!1,this.onChange(null)}onImageError(i){i.error=null,this.fileSrc=this.isNotImage?this.filePlaceholder:this.defaultPlaceholder}static \u0275fac=(()=>{let i;return function(t){return(i||(i=oe(n)))(t||n)}})();static \u0275cmp=b({type:n,selectors:[["app-file-uploader"]],inputs:{allowedFileTypes:"allowedFileTypes",activeColor:"activeColor",baseColor:"baseColor",imagePlaceholder:"imagePlaceholder"},features:[J([Vt(n)]),ae],decls:8,vars:14,consts:[["realInput",""],["ondragover","return false;",1,"uploader",3,"dragenter","dragleave","drop"],[1,"icon","icon-upload"],[3,"load","error","src"],["type","file","name","file",2,"display","none",3,"change","accept"],["class","ts_remove_row pointer btn-remove",3,"click",4,"ngIf"],[1,"t
2s_remove_row","pointer","btn-remove",3,"click"],[1,"fa","fa-trash"]],template:function(e,t){if(e&1){let r=E();o(0,"div")(1,"label",1),_("dragenter",function(){return h(r),g(t.handleDragEnter())})("dragleave",function(){return h(r),g(t.handleDragLeave())})("drop",function(v){return h(r),g(t.handleDrop(v))}),f(2,"i",2),o(3,"img",3),le(4,"imageThumb"),_("load",function(){return h(r),g(t.handleImageLoad())})("error",function(v){return h(r),g(t.onImageError(v))}),a(),o(5,"input",4,0),_("change",function(v){return h(r),g(t.handleInputChange(v))}),a()(),u(7,vi,2,0,"a",5),a()}e&2&&(d(),Re("outline-color",t.dragging?t.activeColor:t.baseColor),y("loaded",!t.loaded),d(),Re("color",t.dragging?t.fileSrc.length>0?t.overlayColor:t.activeColor:t.fileSrc.length>0?t.overlayColor:t.baseColor),d(),y("loaded",t.imageLoaded),c("src",de(4,11,t.fileSrc,!1),tt),d(2),c("accept",t.allowedFileTypes),d(2),c("ngIf",t.fileSrc&&!t.fileSrc.includes("placeholder")))},dependencies:[I,T,x,O,w,St],styles:[".uploader[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}.uploader[_ngcontent-%COMP%]{-webkit-align-items:center;align-items:center;background-color:#efefef;background-color:#00000005;cursor:pointer;display:-webkit-flex;display:flex;height:300px;-webkit-justify-content:center;justify-content:center;outline:3px dashed #ccc;outline-offset:5px;position:relative;width:300px}.uploader[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .uploader[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{pointer-events:none}.uploader[_ngcontent-%COMP%], .uploader[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{-webkit-transition:all .1s ease-in;-moz-transition:all .1s ease-in;-ms-transition:all .1s ease-in;-o-transition:all .1s ease-in;transition:all .1s ease-in}.uploader[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{color:#eee;color:#0003;font-size:5em}.uploader[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{left:50%;opacity:0;max-height:100%;max-width:100%;position:absolute;top:50%;-webkit-transition:all .3s ease-in;-moz-transition:all .3s ease-in;-ms-transition:all .3s ease-in;-o-transition:all .3s ease-in;transition:all .3s ease-in;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);-o-transform:translate(-50%,-50%);transform:translate(-50%,-50%);z-index:-1}.uploader[_ngcontent-%COMP%] img.loaded[_ngcontent-%COMP%]{opacity:1;z-index:1}.btn-remove[_ngcontent-%COMP%]{position:relative;top:-320px;left:310px;cursor:pointer}"]})};function Ci(n,i){n&1&&(o(0,"div",33),l(1," File attachment is required. "),a())}var Pe=class n{builder=p(V);stepThreeForm;constructor(){}ngOnInit(){this.stepThreeForm=this.builder.group({nonStandardWidget:[!1,[m.required]],nonStandard:["N",[m.required]],documentUrl:[null,[m.required]]})}nonStandardChange(i){this.stepThreeForm.patchValue({nonStandardWidget:i,nonStandard:i?"Y":"N"})}stepThreeSubmit(){}get form(){return this.stepThreeForm.controls}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["app-step-three"]],decls:47,vars:6,consts:[["formRef","ngForm"],["autocomplete","off","novalidate","",1,"mb-5",3,"ngSubmit","formGroup"],[1,"container","py-4"],[1,"row","justify-content-center"],[1,"col-12","col-md-10","col-lg-7"],[1,"card","shadow-sm","border-0","rounded-3"],[1,"card-body","p-4","p-md-5"],[1,"mb-4"],[1,"fw-bold","mb-1"],[1,"text-muted","mb-0"],[1,"alert","alert-info","border-0","mb-4"],[1,"d-flex"],[1,"me-2"],[1,"fa","fa-info-circle"],[1,"form-group","mb-4"],["for","nonStandardWidget",1,"form-label","fw-semibold","d-block"],[1,"d-flex","align-items-center","gap-3"],["id","nonStandardWidget","handleColor","warning","handleOnColor","dark","handleOffColor","dark","onColor","success","onText","Yes","offColor","warning","offText","No","formControlName","nonStandardWidget","size","",3,"valueChange"],[1,"text-muted"],["for","documentUrl",1,"form-label","fw-semibold"],[1,"text-danger"],[1,"border","rounded-3","p-3","bg-light"],["id","documentUrl","formControlName","documentUrl"],["class","text-danger small mt-2",4,"ngIf"],[1,"my-4"],[1,"row"],[1,"col-6"],[1,"text-start"],["type","button","cdkStepperPrevious","","ngbTooltip","Previous page","aria-label","Previous",1,"btn","btn-secondary"],[1,"fa","fa-chevron-left","me-1"],[1,"text-end"],["type","submit","aria-label","Submit",1,"btn","btn-success","px-4",3,"disabled","ngbTooltip"],[1,"fa","fa-envelope","ms-1"],[1,"text-danger","small","mt-2"]],template:function(e,t){if(e&1){let r=E();o(0,"form",1,0),_("ngSubmit",function(){return h(r),g(t.stepThreeSubmit())}),o(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"h4",8),l(9," Supporting Documents "),a(),o(10,"p",9),l(11," Upload your supporting documents to complete the submission "),a()(),o(12,"div",10)(13,"div",11)(14,"div",12),f(15,"i",13),a(),o(16,"div"),l(17," Set to YES if you require a member of the clerking team to contact you regarding anonymous or unpublished submission processing. "),a()()(),o(18,"div",14)(19,"label",15),l(20," Request non-standard processing? "),a(),o(21,"div",16)(22,"ng-toggle",17),_("valueChange",function(v){return h(r),g(t.nonStandardChange(v))}),a(),o(23,"small",18),l(24," Click to change "),a()()(),o(25,"div",14)(26,"label",19),l(27," Upload document "),o(28,"span",20),l(29,"*"),a()(),f(30,"br"),l(31,"Select a file by clicking, or drag and drop it here. "),o(32,"div",21),f(33,"app-file-uploader",22),a(),u(34,Ci,2,0,"div",23),a(),f(35,"hr",24),o(36,"div",25)(37,"div",26)(38,"div",27)(39,"button",28),f(40,"i",29),l(41," Previous "),a()()(),o(42,"div",26)(43,"div",30)(44,"button",31),l(45," Submit "),f(46,"i",32),a()()()()()()()()()()}if(e&2){let r=S(1);c("formGroup",t.stepThreeForm),d(32),y("border-danger",t.stepThreeForm.controls.documentUrl.invali
2d&&(t.stepThreeForm.controls.documentUrl.touched||r.submitted)),d(2),c("ngIf",t.stepThreeForm.controls.documentUrl.hasError("required")&&(t.stepThreeForm.controls.documentUrl.touched||r.submitted)),d(10),c("disabled",t.stepThreeForm.invalid)("ngbTooltip",t.stepThreeForm.invalid?"Attach required document to continue":"Submit form")}},dependencies:[I,T,x,K,j,H,O,W,Q,w,$,ge,Ne,Ee],encapsulation:2})};function bi(n,i){n&1&&(o(0,"div",27),l(1,"1"),a(),o(2,"div",28),l(3,"Consent"),a())}function yi(n,i){n&1&&(o(0,"div",27),l(1,"2"),a(),o(2,"div",28),l(3,"Personal details"),a())}function Si(n,i){n&1&&(o(0,"div",27),l(1,"3"),a(),o(2,"div",28),l(3,"Upload & Submit"),a())}function Ei(n,i){if(n&1){let e=E();o(0,"section",7)(1,"div",8)(2,"div",9)(3,"div",10)(4,"div",11)(5,"div",12)(6,"div",13)(7,"div",14)(8,"div",15)(9,"span",16),f(10,"i",17),l(11),a(),o(12,"h5",18),l(13),a(),o(14,"span",19),f(15,"i",20),l(16),le(17,"localDate"),a()(),o(18,"div",21),f(19,"div",22),a()()(),o(20,"ng-stepper",23,0)(22,"cdk-step",24),u(23,bi,4,0,"ng-template",25),o(24,"app-step-one",26,1),_("submit",function(){h(e);let r=S(25),s=C();return g(s.onFormChanges(r.stepOneForm.value,"one"))}),a()(),o(26,"cdk-step",24),u(27,yi,4,0,"ng-template",25),o(28,"app-step-two",26,2),_("submit",function(){h(e);let r=S(29),s=C();return g(s.onFormChanges(r.stepTwoForm.value,"two"))}),a()(),o(30,"cdk-step",24),u(31,Si,4,0,"ng-template",25),o(32,"app-step-three",26,3),_("submit",function(){h(e);let r=S(33),s=C();return g(s.onFormChanges(r.stepThreeForm.value,"three"))}),a()()()()()()()()()}if(n&2){let e=S(25),t=S(29),r=S(33),s=C();d(11),R(" Ref #: ",s.callForEvidence==null?null:s.callForEvidence.referenceNumber," "),d(2),R(" ",s.callForEvidence==null?null:s.callForEvidence.title," "),d(3),R(" Expires: ",de(17,11,s.callForEvidence==null?null:s.callForEvidence.inactiveDate,"DD MMMM yyyy")," "),d(3),c("innerHTML",s.callForEvidence==null?null:s.callForEvidence.detail,et),d(),c("linear",!0),d(2),c("stepControl",e.stepOneForm)("optional",!1),d(4),c("stepControl",t.stepTwoForm)("optional",!1),d(4),c("stepControl",r.stepThreeForm)("optional",!1)}}function Ii(n,i){n&1&&f(0,"app-pom-not-found-template",29)}var Lt=class n{callForEvidenceDetailService=p(_e);callForEvidenceService=p(Tt);builder=p(V);route=p(pt);router=p(mt);notificationService=p(yt);callForEvidenceId;callForEvidence;callForEvidenceForm;constructor(){}ngOnInit(){this.callForEvidenceForm=this.builder.group({callForEvidenceDetailId:[null],pomCallForEvidence:[null,[m.required]],documentUrl:[null,[m.required]],personName:[null,[m.required]],emailAddress:[null],phoneNumber:[null,[m.required]],isOrganization:[null,[m.required]],organizationName:[null],consentAccepted:[null,[m.required]],nonStandard:[null,[m.required]],pomCallForEvidenceSubmitterCategory:[null,[m.required]]}),this.route.params.subscribe(i=>{this.callForEvidenceId=i.id,this.initialiseData()})}initialiseData(){this.callForEvidenceId&&this.callForEvidenceService.getById(this.callForEvidenceId).then(i=>{this.callForEvidence=i,this.callForEvidenceForm.patchValue({pomCallForEvidence:this.callForEvidence})})}onFormChanges(i,e){this.callForEvidenceForm.patchValue(i),e==="three"&&this.callForEvidenceForm.valid&&this.onSubmit()}onSubmit(){this.notificationService.pomConfirm("Are you sure?","You are about to submit the response to call ref# "+this.callForEvidence.referenceNumber+": "+this.callForEvidence.title).then(i=>{i&&this.callForEvidenceDetailService.create(this.callForEvidenceForm.value).then(()=>{this.notificationService.pomSuccess("Success","Data submitted successfully"),this.callForEvidenceForm.reset(),this.router.navigate(["/committees/call-for-evidence"])})},()=>{this.notificationService.pomError("Error","An error has occurred. Please try again later. If the problem persists, contact the system administrator.")})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["app-call-for-evidence-detail"]],decls:3,vars:3,consts:[["cdkStepper",""],["stepOne",""],["stepTwo",""],["stepThree",""],[3,"title"],["class","sidebar-page-container",4,"ngIf"],["titlePrefix","Call for evidence ",4,"ngIf"],[1,"sidebar-page-container"],[1,"auto-container"],[1,"row","clearfix"],[1,"col-md-12","col-sm-12","content-side"],[1,"blog-details-content"],[1,"inner-box"],[1,"card","shadow-sm","border-0","rounded-4","mb-4"],[1,"card-body","p-4"],[1,"d-flex","flex-column","flex-lg-row","align-items-lg-center","gap-2","mb-3"],[1,"badge","bg-primary","px-3","py-2","rounded-pill","fw-semibold"],[1,"fa-solid","fa-hashtag","me-1"],[1,"mb-0","fw-bold","text-dark"],[1,"badge","bg-danger","px-3","py-2","rounded-pill","ms-lg-auto"],[1,"fa-solid","fa-calendar-days","me-1"],[1,"alert","border-0","rounded-4","bg-light","mb-0"],[1,"text-muted","lh-lg",3,"innerHTML"],[3,"linear"],[3,"stepControl","optional"],["cdkStepLabel",""],[3,"submit"],[1,"step-bullet"],[1,"step-title"],["titlePrefix","Call for evidence "]],template:function(e,t){e&1&&(f(0,"app-page-title",4),u(1,Ei,34,14,"section",5)(2,Ii,1,0,"app-pom-not-found-template",6)),e&2&&(c("title",t.callForEvidence==null?null:t.callForEvidence.title),d(),c("ngIf",t.callForEvidence),d(),c("ngIf",!t.callForEvidence))},dependencies:[Ft,I,T,x,O,w,wt,At,Dt,Be,Fe,Oe,Pe,It,qe],styles:[".mat-horizontal-stepper-header{pointer-events:none!important}[_nghost-%COMP%] .stepper-header .steps .step.active .step-title{color:var(--main-primary);font-weight:600}[_nghost-%COMP%] .stepper-header .steps .step.completed .step-bullet{background-color:#28a745!important;color:#fff}[_nghost-%COMP%] .stepper-header .steps .step.completed .step-title{color:#28a745}[_nghost-%COMP%] .stepper-header .steps .step.active .step-bullet{background-color:var(--main-primary)!important}[_nghost-%COMP%] .form-check-input[type=checkbox]:checked{background-color:var(--main-primary);border-color:var(--main-primary)}[_nghost-%COMP%] .form-check-input[type=checkbox]:focus{border-color:var(--main-primary);box-shadow:0 0 0 .2rem #ff8e9e40}"]})};export{Lt as CallForEvidenceDetailComponent};
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.