highcourt-affidavit-elements 0.2.10 → 0.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -108,7 +108,7 @@ ${e.map((n,i)=>`${i+1}) ${n.toString()}`).join(`
|
|
|
108
108
|
grid-template-columns: repeat(2, 1fr);
|
|
109
109
|
gap: 2rem;
|
|
110
110
|
}`]})}}return t})();var xG=[[["p-header"]]],wG=["p-header"];function IG(t,o){t&1&&X(0)}function MG(t,o){if(t&1&&(c(0,"div",3),lt(1),_(2,IG,1,0,"ng-container",4),d()),t&2){let e=f();p(2),m("ngTemplateOutlet",e.headerTemplate)}}function SG(t,o){t&1&&(c(0,"div",3)(1,"span",5)(2,"select",6)(3,"option",7),g(4,"Heading"),d(),c(5,"option",8),g(6,"Subheading"),d(),c(7,"option",9),g(8,"Normal"),d()(),c(9,"select",10)(10,"option",9),g(11,"Sans Serif"),d(),c(12,"option",11),g(13,"Serif"),d(),c(14,"option",12),g(15,"Monospace"),d()()(),c(16,"span",5),v(17,"button",13)(18,"button",14)(19,"button",15),d(),c(20,"span",5),v(21,"select",16)(22,"select",17),d(),c(23,"span",5),v(24,"button",18)(25,"button",19),c(26,"select",20),v(27,"option",9),c(28,"option",21),g(29,"center"),d(),c(30,"option",22),g(31,"right"),d(),c(32,"option",23),g(33,"justify"),d()()(),c(34,"span",5),v(35,"button",24)(36,"button",25)(37,"button",26),d(),c(38,"span",5),v(39,"button",27),d()())}var EG={provide:xt,useExisting:nt(()=>I1),multi:!0},I1=(()=>{class t{el;platformId;style;styleClass;placeholder;formats;modules;bounds;scrollingContainer;debug;get readonly(){return this._readonly}set readonly(e){this._readonly=e,this.quill&&(this._readonly?this.quill.disable():this.quill.enable())}onInit=new V;onTextChange=new V;onSelectionChange=new V;templates;toolbar;value;_readonly=!1;onModelChange=()=>{};onModelTouched=()=>{};quill;dynamicQuill;headerTemplate;quillElements;constructor(e,n){this.el=e,this.platformId=n,el(()=>{this.initQuillElements(),this.initQuillEditor()})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break}})}writeValue(e){this.value=e,this.quill&&(e?this.quill.setContents(this.quill.clipboard.convert(this.dynamicQuill.version.startsWith("2")?{html:this.value}:this.value)):this.quill.setText(""))}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}getQuill(){return this.quill}initQuillEditor(){sl(this.platformId)||(this.dynamicQuill?this.createQuillEditor():import("./chunk-N5ZZCBXV.js").then(e=>{this.dynamicQuill=e.default,this.createQuillEditor()}).catch(e=>console.error(e.message)))}createQuillEditor(){this.initQuillElements();let{toolbarElement:e,editorElement:n}=this.quillElements,i={toolbar:e},r=this.modules?q(q({},i),this.modules):i;this.quill=new this.dynamicQuill(n,{modules:r,placeholder:this.placeholder,readOnly:this.readonly,theme:"snow",formats:this.formats,bounds:this.bounds,debug:this.debug,scrollingContainer:this.scrollingContainer});let a=this.dynamicQuill.version.startsWith("2");this.value&&this.quill.setContents(this.quill.clipboard.convert(a?{html:this.value}:this.value)),this.quill.on("text-change",(s,l,u)=>{if(u==="user"){let h=a?this.quill.getSemanticHTML():P.findSingle(n,".ql-editor").innerHTML,A=this.quill.getText().trim();h==="<p><br></p>"&&(h=null),this.onTextChange.emit({htmlValue:h,textValue:A,delta:s,source:u}),this.onModelChange(h),this.onModelTouched()}}),this.quill.on("selection-change",(s,l,u)=>{this.onSelectionChange.emit({range:s,oldRange:l,source:u})}),this.onInit.emit({editor:this.quill})}initQuillElements(){this.quillElements||(this.quillElements={editorElement:P.findSingle(this.el.nativeElement,"div.p-editor-content"),toolbarElement:P.findSingle(this.el.nativeElement,"div.p-editor-toolbar")})}static \u0275fac=function(n){return new(n||t)(M(ve),M(Ct))};static \u0275cmp=N({type:t,selectors:[["p-editor"]],contentQueries:function(n,i,r){if(n&1&&(Oe(r,ta,5),Oe(r,fe,4)),n&2){let a;Q(a=G())&&(i.toolbar=a.first),Q(a=G())&&(i.templates=a)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",placeholder:"placeholder",formats:"formats",modules:"modules",bounds:"bounds",scrollingContainer:"scrollingContainer",debug:"debug",readonly:"readonly"},outputs:{onInit:"onInit",onTextChange:"onTextChange",onSelectionChange:"onSelectionChange"},features:[Ye([EG])],ngContentSelectors:wG,decls:4,vars:6,consts:[[3,"ngClass"],["class","p-editor-toolbar",4,"ngIf"],[1,"p-editor-content",3,"ngStyle"],[1,"p-editor-toolbar"],[4,"ngTemplateOutlet"],[1,"ql-formats"],[1,"ql-header"],["value","1"],["value","2"],["selected",""],[1,"ql-font"],["value","serif"],["value","monospace"],["aria-label","Bold","type","button",1,"ql-bold"],["aria-label","Italic","type","button",1,"ql-italic"],["aria-label","Underline","type","button",1,"ql-underline"],[1,"ql-color"],[1,"ql-background"],["value","ordered","aria-label","Ordered List","type","button",1,"ql-list"],["value","bullet","aria-label","Unordered List","type","button",1,"ql-list"],[1,"ql-align"],["value","center"],["value","right"],["value","justify"],["aria-label","Insert Link","type","button",1,"ql-link"],["aria-label","Insert Image","type","button",1,"ql-image"],["aria-label","Insert Code Block","type","button",1,"ql-code-block"],["aria-label","Remove Styles","type","button",1,"ql-clean"]],template:function(n,i){n&1&&(At(xG),c(0,"div",0),_(1,MG,3,1,"div",1)(2,SG,40,0,"div",1),v(3,"div",2),d()),n&2&&(H(i.styleClass),m("ngClass","p-editor-container"),p(),m("ngIf",i.toolbar||i.headerTemplate),p(),m("ngIf",!i.modules&&!i.toolbar&&!i.headerTemplate),p(),m("ngStyle",i.style))},dependencies:[De,Ce,Ue,Be],styles:[`.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item{width:auto;height:auto}
|
|
111
|
-
`],encapsulation:2,changeDetection:0})}return t})(),pf=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[oe,re]})}return t})();var OG=["videoElement"];function TG(t,o){if(t&1){let e=D();c(0,"div",64)(1,"div",65),v(2,"i",73),c(3,"h4"),g(4,"Passport Photo"),d(),c(5,"small"),g(6,"JPG, GIF or PNG. Max 300kB"),d()(),c(7,"div",67),v(8,"img",74),c(9,"div",69)(10,"button",70),I("click",function(){C(e);let i=de(13);return y(i.click())}),d(),c(11,"button",71),I("click",function(i){return C(e),f(3).openCamera(),y(i.preventDefault())}),d()(),c(12,"input",75,1),I("change",function(i){C(e);let r=f(3);return y(r.handleFileInputIPassportImage(i))}),d()()()}if(t&2){let e=f(3);p(8),m("src",e.uploadedPassportImage||e.no_image,Ae)}}function PG(t,o){if(t&1){let e=D();c(0,"div",64)(1,"div",65),v(2,"i",76),c(3,"h4"),g(4,"Digital Signature"),d(),c(5,"small"),g(6,"JPG, GIF or PNG. Max 300kB"),d()(),c(7,"div",67),v(8,"img",77),c(9,"div",69)(10,"button",70),I("click",function(){C(e);let i=de(12);return y(i.click())}),d()(),c(11,"input",78,2),I("change",function(i){C(e);let r=f(3);return y(r.handleFileInputSignatureImage(i))}),d()()()}if(t&2){let e=f(3);p(8),m("src",e.uploadedSignatureImage||e.no_image,Ae)}}function DG(t,o){if(t&1){let e=D();c(0,"div",61)(1,"div",62),_(2,TG,14,1,"div",63),c(3,"div",64)(4,"div",65),v(5,"i",66),c(6,"h4"),g(7,"Identity Card"),d(),c(8,"small"),g(9,"JPG, GIF or PNG. Max 300kB"),d()(),c(10,"div",67),v(11,"img",68),c(12,"div",69)(13,"button",70),I("click",function(){C(e);let i=de(16);return y(i.click())}),d(),c(14,"button",71),I("click",function(i){return C(e),f(2).openCamera1(),y(i.preventDefault())}),d()(),c(15,"input",72,0),I("change",function(i){C(e);let r=f(2);return y(r.handleFileInputIDCard(i))}),d()()(),_(17,PG,13,1,"div",63),d()()}if(t&2){let e=f(2);p(2),m("ngIf",e.affidavitAppSetting==null?null:e.affidavitAppSetting.allow_passport_photo),p(9),m("src",e.uploadedIDCard||e.no_image,Ae),p(6),m("ngIf",e.affidavitAppSetting==null?null:e.affidavitAppSetting.allow_signature)}}function kG(t,o){if(t&1){let e=D();c(0,"button",89),I("click",function(i){C(e);let r=f(3);return r.cameraEnabled?r.startCamera():r.startCamera1(),y(i.preventDefault())}),v(1,"i",90),g(2," Start Camera "),d()}}function FG(t,o){t&1&&v(0,"i",94)}function RG(t,o){t&1&&v(0,"i",95)}function VG(t,o){if(t&1){let e=D();c(0,"button",91),I("click",function(){C(e);let i=f(3);return y(i.cameraEnabled?i.captureImage():i.captureImage1())}),_(1,FG,1,0,"i",92)(2,RG,1,0,"i",93),g(3),d()}if(t&2){let e=f(3);m("disabled",e.isCapturing),p(),m("ngIf",!e.isCapturing),p(),m("ngIf",e.isCapturing),p(),se(" ",e.isCapturing?"Compressing...":"Capture"," ")}}function LG(t,o){if(t&1){let e=D();c(0,"button",96),I("click",function(){C(e);let i=f(3);return y(i.switchCamera())}),v(1,"i",97),g(2," Switch Camera "),d()}}function NG(t,o){if(t&1){let e=D();c(0,"div",79)(1,"div",80)(2,"div",81)(3,"h4"),g(4,"Camera Capture"),d(),c(5,"button",82),I("click",function(){C(e);let i=f(2);return y(i.closeCamera())}),v(6,"i",83),d()(),v(7,"video",84,3),c(9,"div",85),_(10,kG,3,0,"button",86)(11,VG,4,4,"button",87)(12,LG,3,0,"button",88),d()()()}if(t&2){let e,n=f(2);p(10),m("ngIf",!n.cameraStarted),p(),m("ngIf",n.cameraStarted),p(),m("ngIf",n.cameraStarted&&((e=n.cameraService.videoInputs.length)!==null&&e!==void 0?e:0)>1)}}function BG(t,o){t&1&&(c(0,"div",98),g(1," Deponent name is required "),d())}function zG(t,o){t&1&&(c(0,"div",98),g(1," Deponent NIN is required "),d())}function HG(t,o){t&1&&(c(0,"div",98),g(1," NIN must be valid NIN number "),d())}function jG(t,o){t&1&&(c(0,"div",98),g(1," NIN must be 11 digits "),d())}function UG(t,o){t&1&&(c(0,"div",98),g(1," Gender is required "),d())}function qG(t,o){t&1&&(c(0,"div",98),g(1," Town is required "),d())}function QG(t,o){t&1&&(c(0,"div",98),g(1," Country of Origin is required "),d())}function GG(t,o){t&1&&(c(0,"div",98),g(1," State of Origin is required "),d())}function WG(t,o){t&1&&(c(0,"div",98),g(1," Resident Town is required "),d())}function KG(t,o){t&1&&(c(0,"div",98),g(1," Occupation is required "),d())}function YG(t,o){t&1&&(c(0,"div",98),g(1," Religion is required "),d())}function ZG(t,o){if(t&1&&(c(0,"div",24)(1,"label"),g(2),c(3,"span",26),g(4,"*"),d()(),v(5,"input",105),d()),t&2){let e=f().ngIf,n=f().index;p(2),se("",e.label," "),p(3),m("id",n)("type",e.input_type||"text")("formControlName",n)}}function JG(t,o){if(t&1&&(B(0),_(1,ZG,6,4,"div",104),z()),t&2){let e=o.ngIf;p(),m("ngIf",(e==null?null:e.is_calculated)===!1)}}function XG(t,o){if(t&1&&(B(0),_(1,JG,2,1,"ng-container",103),z()),t&2){let e=o.index,n=f(3);p(),m("ngIf",n.getFormEntriesRecordByIndex(e))}}function $G(t,o){if(t&1&&(c(0,"div",99)(1,"div",18)(2,"h3"),v(3,"i",100),g(4," Affidavit Information"),d(),c(5,"p"),g(6,"Provide additional information specific to your affidavit type"),d()(),c(7,"div",20)(8,"div",101),_(9,XG,2,1,"ng-container",102),d()()()),t&2){let e=f(2);p(9),m("ngForOf",e.formEntries.controls)}}function eW(t,o){t&1&&(c(0,"span"),g(1," Affidavit Title is required "),d())}function tW(t,o){t&1&&(c(0,"span"),g(1," Affidavit Title is too short "),d())}function nW(t,o){if(t&1&&(c(0,"div",98),_(1,eW,2,0,"span",103)(2,tW,2,0,"span",103),d()),t&2){let e=f(3);p(),m("ngIf",e.applicationFormControl.affidavit_type_name.errors==null?null:e.applicationFormControl.affidavit_type_name.errors.required),p(),m("ngIf",e.applicationFormControl.affidavit_type_name.errors==null?null:e.applicationFormControl.affidavit_type_name.errors.minlength)}}function iW(t,o){if(t&1&&(c(0,"div",121),v(1,"textarea",122),d()),t&2){let e=f().index;p(),m("formControlName",e)}}function oW(t,o){if(t&1&&(c(0,"div",123),v(1,"p-editor",124),d()),t&2){let e=f().index,n=f(3);p(),m("formControlName",e)("modules",n.editorModules)}}function rW(t,o){if(t&1){let e=D();B(0),c(1,"div",112)(2,"div",113)(3,"label",114)(4,"span"),g(5,"Clause "),c(6,"span",26),g(7,"*"),d()(),c(8,"span",115),g(9),d()(),c(10,"div",116)(11,"button",117),I("click",function(){let i=C(e).index,r=f(3);return y(r.onAddClause(i))}),d(),c(12,"button",118),I("click",function(){let i=C(e).index,r=f(3);return y(r.onRemoveClause(i))}),d()()(),c(13,"div",119),_(14,iW,2,1,"div",120)(15,oW,2,2,"ng-template",null,4,je),d()(),z()}if(t&2){let e=o.index,n=de(16),i=f(3);p(9),k(e+1),p(5),m("ngIf",i.isSmallScreen)("ngIfElse",n)}}function aW(t,o){if(t&1&&(c(0,"div",106)(1,"div",18)(2,"h3"),v(3,"i",107),g(4," Clauses Information"),d(),c(5,"p"),g(6,"Define the specific clauses and content of your affidavit"),d()(),c(7,"div",20)(8,"div",108)(9,"label",109),g(10," General Affidavit Title "),c(11,"span",26),g(12,"*"),d()(),v(13,"input",110),_(14,nW,3,2,"div",28),d(),c(15,"div",111),_(16,rW,17,3,"ng-container",102),d()()()),t&2){let e=f(2);p(13),$e("is-invalid",e.applicationFormControl.affidavit_type_name.invalid&&e.applicationFormControl.affidavit_type_name.touched),p(),m("ngIf",e.applicationFormControl.affidavit_type_name.invalid&&e.applicationFormControl.affidavit_type_name.touched),p(2),m("ngForOf",e.clauseEntriesControl.controls)}}function sW(t,o){t&1&&(c(0,"div",98),g(1," Applicant Email is required "),d())}function lW(t,o){t&1&&(c(0,"div",98),g(1," Please enter a valid Email Address "),d())}function cW(t,o){t&1&&(c(0,"div",98),g(1," Applicant Phone Number is required "),d())}function dW(t,o){t&1&&(c(0,"div",98),g(1," Please enter a valid phone number (local or international) "),d())}function pW(t,o){t&1&&(c(0,"div",98),g(1," Preferred Court is required "),d())}function uW(t,o){if(t&1){let e=D();c(0,"div",15)(1,"form",16)(2,"div",17)(3,"div",18)(4,"h3"),v(5,"i",19),g(6," Personal Information"),d(),c(7,"p"),g(8,"Provide your personal details and identification information"),d()(),c(9,"div",20),_(10,DG,18,3,"div",21)(11,NG,13,3,"div",22),c(12,"div",23)(13,"div",24)(14,"label",25),g(15,"Deponent Name "),c(16,"span",26),g(17,"*"),d()(),v(18,"input",27),_(19,BG,2,0,"div",28),d(),c(20,"div",24)(21,"label",29),g(22,"Deponent NIN "),c(23,"span",26),g(24,"*"),d()(),c(25,"input",30),I("input",function(i){C(e);let r=f();return y(r.onInput(i))}),d(),_(26,zG,2,0,"div",28)(27,HG,2,0,"div",28)(28,jG,2,0,"div",28),d(),c(29,"div",24)(30,"label",31),g(31,"Gender "),c(32,"span",26),g(33,"*"),d()(),c(34,"p-dropdown",32),I("onChange",function(i){C(e);let r=f();return y(r.closeDropdown(i))}),d(),_(35,UG,2,0,"div",28),d(),c(36,"div",24)(37,"label",33),g(38,"Native Town "),c(39,"span",26),g(40,"*"),d()(),v(41,"input",34),_(42,qG,2,0,"div",28),d(),c(43,"div",24)(44,"label",35),g(45,"Country of Origin "),c(46,"span",26),g(47,"*"),d()(),c(48,"p-dropdown",36),I("onChange",function(i){C(e);let r=f();return y(r.closeDropdown(i))}),d(),_(49,QG,2,0,"div",28),d(),c(50,"div",24)(51,"label",37),g(52,"State of Origin "),c(53,"span",26),g(54,"*"),d()(),c(55,"p-dropdown",38),I("onChange",function(i){C(e);let r=f();return y(r.closeDropdown(i))}),d(),_(56,GG,2,0,"div",28),d(),c(57,"div",24)(58,"label",39),g(59,"Place of Residence "),c(60,"span",26),g(61,"*"),d()(),v(62,"input",40),_(63,WG,2,0,"div",28),d(),c(64,"div",24)(65,"label",41),g(66,"Occupation "),c(67,"span",26),g(68,"*"),d()(),v(69,"input",42),_(70,KG,2,0,"div",28),d(),c(71,"div",24)(72,"label",43),g(73,"Religion "),c(74,"span",26),g(75,"*"),d()(),c(76,"p-dropdown",44),I("onChange",function(i){C(e);let r=f();return y(r.closeDropdown(i))}),d(),_(77,YG,2,0,"div",28),d()()()(),_(78,$G,10,1,"div",45)(79,aW,17,4,"div",46),c(80,"div",47)(81,"div",18)(82,"h3"),v(83,"i",48),g(84," Additional Information"),d(),c(85,"p"),g(86,"Provide contact details and court preferences"),d()(),c(87,"div",20)(88,"div",23)(89,"div",24)(90,"label",49),g(91,"Applicant Email "),c(92,"span",26),g(93,"*"),d()(),v(94,"input",50),_(95,sW,2,0,"div",28)(96,lW,2,0,"div",28),d(),c(97,"div",24)(98,"label",51),g(99,"Applicant Phone Number "),c(100,"span",26),g(101,"*"),d()(),v(102,"input",52),_(103,cW,2,0,"div",28)(104,dW,2,0,"div",28),d(),c(105,"div",24)(106,"label",53),g(107,"Preferred Court "),c(108,"span",26),g(109,"*"),d()(),c(110,"p-dropdown",54),I("onChange",function(i){C(e);let r=f();return y(r.closeDropdown(i))}),d(),_(111,pW,2,0,"div",28),d(),c(112,"div",55),v(113,"hr",56),d(),c(114,"div",57)(115,"div",58)(116,"button",59),I("click",function(){C(e);let i=f();return y(i.goBack())}),d(),c(117,"button",60),I("click",function(){C(e);let i=f();return y(i.processForm())}),d()()()()()()()()}if(t&2){let e=f();p(),m("formGroup",e.applicationForm),p(9),m("ngIf",(e.affidavitAppSetting==null?null:e.affidavitAppSetting.allow_passport_photo)||(e.affidavitAppSetting==null?null:e.affidavitAppSetting.allow_signature)),p(),m("ngIf",e.cameraEnabled||e.cameraEnabled1),p(8),m("ngIf",(e.applicationFormControl.deponent_name.errors==null?null:e.applicationFormControl.deponent_name.errors.required)&&e.applicationFormControl.deponent_name.touched),p(7),m("ngIf",(e.applicationFormControl.deponent_nin.errors==null?null:e.applicationFormControl.deponent_nin.errors.required)&&e.applicationFormControl.deponent_nin.touched),p(),m("ngIf",(e.applicationFormControl.deponent_nin.errors==null?null:e.applicationFormControl.deponent_nin.errors.minlength)&&e.applicationFormControl.deponent_nin.touched),p(),m("ngIf",!e.isNINValidated&&e.applicationFormControl.deponent_nin.touched),p(6),m("options",e.genders)("showClear",!0),p(),m("ngIf",(e.applicationFormControl.gender.errors==null?null:e.applicationFormControl.gender.errors.required)&&e.applicationFormControl.gender.touched),p(7),m("ngIf",(e.applicationFormControl.town_native.errors==null?null:e.applicationFormControl.town_native.errors.required)&&e.applicationFormControl.town_native.touched),p(6),m("options",e.geoCountry)("showClear",!0)("filter",!0),p(),m("ngIf",(e.applicationFormControl.originCountry.errors==null?null:e.applicationFormControl.originCountry.errors.required)&&e.applicationFormControl.originCountry.touched),p(6),m("options",e.getStates)("showClear",!0)("filter",!0),p(),m("ngIf",(e.applicationFormControl.originState.errors==null?null:e.applicationFormControl.originState.errors.required)&&e.applicationFormControl.originState.touched),p(7),m("ngIf",(e.applicationFormControl.town_resident.errors==null?null:e.applicationFormControl.town_resident.errors.required)&&e.applicationFormControl.town_resident.touched),p(7),m("ngIf",(e.applicationFormControl.occupation.errors==null?null:e.applicationFormControl.occupation.errors.required)&&e.applicationFormControl.occupation.touched),p(6),m("options",e.religions)("showClear",!0),p(),m("ngIf",(e.applicationFormControl.religion.errors==null?null:e.applicationFormControl.religion.errors.required)&&e.applicationFormControl.religion.touched),p(),m("ngIf",e.showAffidavitInformationForm),p(),m("ngIf",e.canShowClausesForm),p(16),m("ngIf",(e.applicationFormControl.applicant_email.errors==null?null:e.applicationFormControl.applicant_email.errors.required)&&e.applicationFormControl.applicant_email.touched),p(),m("ngIf",(e.applicationFormControl.applicant_email.errors==null?null:e.applicationFormControl.applicant_email.errors.pattern)&&e.applicationFormControl.applicant_email.touched),p(7),m("ngIf",(e.applicationFormControl.applicant_phone.errors==null?null:e.applicationFormControl.applicant_phone.errors.required)&&e.applicationFormControl.applicant_phone.touched),p(),m("ngIf",e.applicationFormControl.applicant_phone.errors==null?null:e.applicationFormControl.applicant_phone.errors.pattern),p(6),m("options",e.courts)("showClear",!0),p(),m("ngIf",(e.applicationFormControl.court.errors==null?null:e.applicationFormControl.court.errors.required)&&e.applicationFormControl.court.touched),p(6),m("disabled",!e.canSubmitApplicationForm)}}function mW(t,o){if(t&1&&(c(0,"div",155)(1,"div",156),v(2,"i",138),g(3),d(),v(4,"div",157),d()),t&2){let e=o.$implicit,n=o.index,i=f(3);p(3),se(" Clause ",n+1,": "),p(),m("innerHtml",i.sanitizer.bypassSecurityTrustHtml(e),Ci)}}function fW(t,o){if(t&1&&(c(0,"div",153),_(1,mW,5,2,"div",154),d()),t&2){let e=f(2);p(),m("ngForOf",e.clauses)}}function hW(t,o){if(t&1&&(c(0,"div",159)(1,"div",160),v(2,"i",138),g(3),d(),c(4,"span",161),g(5),d()()),t&2){let e=f().$implicit;p(3),se(" ",e.label," "),p(2),k(e.provided_value)}}function gW(t,o){if(t&1&&(B(0),_(1,hW,6,2,"div",158),z()),t&2){let e=o.$implicit;p(),m("ngIf",e.is_calculated==!1)}}function AW(t,o){t&1&&(c(0,"span",162),g(1,"Not Provided"),d())}function _W(t,o){if(t&1&&v(0,"img",163),t&2){let e=f(2);m("src",e.uploadedPassportImage,Ae)}}function vW(t,o){t&1&&(c(0,"span",162),g(1,"Not Provided"),d())}function bW(t,o){if(t&1&&v(0,"img",164),t&2){let e=f(2);m("src",e.uploadedSignatureImage,Ae)}}function CW(t,o){t&1&&(c(0,"span",162),g(1,"Not Provided"),d())}function yW(t,o){if(t&1&&v(0,"img",165),t&2){let e=f(2);m("src",e.uploadedIDCard,Ae)}}function xW(t,o){if(t&1){let e=D();c(0,"div",125)(1,"div",126)(2,"div",18)(3,"h3"),v(4,"i",19),g(5," General Information"),d(),c(6,"p"),g(7,"Review your personal details and identification"),d()(),c(8,"div",127)(9,"div",128)(10,"div",129)(11,"div",130),v(12,"i",19),g(13," Deponent Name: "),d(),c(14,"span",131),g(15),d()(),c(16,"div",129)(17,"div",130),v(18,"i",132),g(19," Deponent NIN: "),d(),c(20,"span",131),g(21),d()(),c(22,"div",129)(23,"div",130),v(24,"i",133),g(25," Native Town: "),d(),c(26,"span",131),g(27),d()(),c(28,"div",129)(29,"div",130),v(30,"i",134),g(31," Country of Origin: "),d(),c(32,"span",131),g(33),d()(),c(34,"div",129)(35,"div",130),v(36,"i",135),g(37," State of Origin: "),d(),c(38,"span",131),g(39),d()(),c(40,"div",129)(41,"div",130),v(42,"i",136),g(43," Place of Residence: "),d(),c(44,"span",131),g(45),d()(),c(46,"div",129)(47,"div",130),v(48,"i",137),g(49," Occupation: "),d(),c(50,"span",131),g(51),d()(),c(52,"div",129)(53,"div",130),v(54,"i",19),g(55," Gender: "),d(),c(56,"span",131),g(57),d()(),c(58,"div",129)(59,"div",130),v(60,"i",138),g(61," Religion: "),d(),c(62,"span",131),g(63),d()()()()(),c(64,"div",126)(65,"div",18)(66,"h3"),v(67,"i",100),g(68," Affidavit Information"),d(),c(69,"p"),g(70,"Review your affidavit details and clauses"),d()(),c(71,"div",127)(72,"h4",139),g(73),d(),_(74,fW,2,1,"div",140),c(75,"div",141),_(76,gW,2,1,"ng-container",102),d()()(),c(77,"div",126)(78,"div",18)(79,"h3"),v(80,"i",142),g(81," Client Information"),d(),c(82,"p"),g(83,"Review your contact details and preferences"),d()(),c(84,"div",127)(85,"div",128)(86,"div",129)(87,"div",130),v(88,"i",143),g(89," Applicant's E-mail: "),d(),c(90,"span",131),g(91),d()(),c(92,"div",129)(93,"div",130),v(94,"i",144),g(95," Applicant's Phone Number: "),d(),c(96,"span",131),g(97),d()()()()(),c(98,"div",126)(99,"div",18)(100,"h3"),v(101,"i",48),g(102," Additional Information"),d(),c(103,"p"),g(104,"Review your uploaded documents and court preferences"),d()(),c(105,"div",127)(106,"div",128)(107,"div",129)(108,"div",130),v(109,"i",145),g(110," Client Passport Image: "),d(),c(111,"div",131),_(112,AW,2,0,"span",146)(113,_W,1,1,"img",147),d()(),c(114,"div",129)(115,"div",130),v(116,"i",145),g(117," Client Signature Photo: "),d(),c(118,"div",131),_(119,vW,2,0,"span",146)(120,bW,1,1,"img",148),d()(),c(121,"div",129)(122,"div",130),v(123,"i",145),g(124," Customer ID Card: "),d(),c(125,"div",131),_(126,CW,2,0,"span",146)(127,yW,1,1,"img",149),d()(),c(128,"div",129)(129,"div",130),v(130,"i",133),g(131," Preferred Court: "),d(),c(132,"span",131),g(133),d()(),c(134,"div",55),v(135,"hr",56),d(),c(136,"div",150)(137,"div",58)(138,"button",151),I("click",function(){C(e);let i=f();return y(i.showApplicationForm())}),d(),c(139,"button",152),I("click",function(){C(e);let i=f();return y(i.goToPreview())}),d()()()()()()()}if(t&2){let e=f();p(15),k(e.dataPayload.deponent_name),p(6),k(e.dataPayload.deponent_nin),p(6),k(e.dataPayload.town_native),p(6),k(e.selectedCountry),p(6),k(e.selectedState),p(6),k(e.dataPayload.town_resident),p(6),k(e.dataPayload.occupation),p(6),k(e.dataPayload.gender),p(6),k(e.dataPayload.religion),p(10),k(e.affidavitTemplate==null?null:e.affidavitTemplate.name),p(),m("ngIf",e.affidavitTemplate==null?null:e.affidavitTemplate.is_clauses_editable),p(2),m("ngForOf",e.dataPayload==null?null:e.dataPayload.formEntries),p(15),k(e.dataPayload.applicant_email),p(6),k(e.dataPayload.applicant_phone),p(15),m("ngIf",!e.uploadedPassportImage),p(),m("ngIf",e.uploadedPassportImage),p(6),m("ngIf",!e.uploadedSignatureImage),p(),m("ngIf",e.uploadedSignatureImage),p(6),m("ngIf",!e.uploadedIDCard),p(),m("ngIf",e.uploadedIDCard),p(6),k(e.courtName),p(5),m("disabled",e.is_loading),p(),m("disabled",!e.canSubmitApplicationForm||e.is_loading)("label",e.is_loading?"Submiting . . .":"Submit Application")}}var IM=(()=>{class t{constructor(e,n,i,r,a,s,l,u,h,A,b,x){this.fb=e,this.affidavitApplicationEndpoint=n,this.countryEndpoint=i,this.stateEndpoint=r,this.CourtEndPoint=a,this.affidavitTemplateEndpoint=s,this.affidavitApplicationSettingsEndpoint=l,this.appNotificationService=u,this.logger=h,this.affidavitPageStore=A,this.cameraService=b,this.sanitizer=x,this.toggle=new V,this.text="",this.isSmallScreen=!1,this.iconsOnly=!1,this.iconsOnly1=!1,this.editorModules={toolbar:[[{header:"1"},{header:"2"}],[{list:"ordered"},{list:"bullet"}],[{align:[]}],["bold","italic","underline"]]},this.no_of_clauses=me.No_Of_Clauses,this.genders=da,this.religions=pa,this.geoCountry=[],this._geoStates=[],this.getStates=[],this.courts=[],this.no_image="data:image/png;base64,"+pt.no_image,this.selectedState="",this.uploadedPassportImage="data:image/png;base64,"+pt.no_image,this.uploadedSignatureImage="data:image/png;base64,"+pt.no_image,this.uploadedIDCard="data:image/png;base64,"+pt.no_image,this.displayForm=!0,this.shouldDisplayAffidavitSection=!0,this.selectedCountry="",this.apiMode="development",this.clauses=[],this.canSubmitApplicationForm=!1,this.canShowApplicationForm=!0,this.canShowClausesForm=!1,this.canShowConfirmationForm=!1,this.showAffidavitInformationForm=!1,this.formEntriesMap=new Map,this.passportPhotoFile=null,this.signatureFile=null,this.idCardPhotoFile=null,this.is_loading=!1,this.cameraEnabled=!1,this.cameraStarted=!1,this.cameraEnabled1=!1,this.cameraStarted1=!1,this.isCapturing=!1,this.hasUploadedPhoto=!1,this.videoInputs=[],this.applicationForm=this.fb.group({affidavit_type_name:this.fb.control(null,[K.required,K.minLength(3),K.maxLength(128)]),deponent_name:this.fb.control(null,[K.required,K.minLength(3)]),deponent_nin:this.fb.control(null,[K.required,K.pattern("^[0-9]*$"),K.minLength(11),K.maxLength(11)]),town_native:this.fb.control(null,[K.required,K.minLength(3)]),town_resident:this.fb.control(null,[K.required,K.minLength(3)]),originCountry:this.fb.control(null,[K.required,K.minLength(3)]),originState:this.fb.control(null,[K.required,K.minLength(3)]),occupation:this.fb.control(null,[K.required,K.minLength(3)]),gender:this.fb.control(null,[K.required,K.minLength(3)]),religion:this.fb.control(null,[K.required,K.minLength(3)]),applicant_email:this.fb.control(null),applicant_phone:this.fb.control(null),court:this.fb.control(null,K.required),formEntries:this.fb.array([]),clauseEntries:this.fb.array([])})}ngOnInit(){this.affidavitPageStore.startLoading("Loading Data..."),this.affidavitPageStore.id$.subscribe({next:e=>{this.affidavitTemplateEndpoint.single(e).subscribe({next:n=>{this.affidavitTemplate=n.data,this.showAffidavitInformationForm=(this.affidavitTemplate?.placeholders?.length||0)>0&&this.affidavitTemplate?.is_clauses_editable!=!0,this.loadFormEntries()},error:n=>{this.appNotificationService.showError({title:n.error,detail:n.message})},complete:()=>{}})}}),this.affidavitPageStore.payload$.subscribe({next:e=>{console.log("Payload received: ",e),e&&this.prePopulateForm(e)}}),this.countryEndpoint.list().subscribe({next:e=>this.geoCountry=e.data,error:e=>this.logger.log(e)}),this.stateEndpoint.list().subscribe({next:e=>{this._geoStates=e.data,this.affidavitPageStore.stopLoading()},error:e=>{this.appNotificationService.showError({title:e.error,detail:e.message}),this.affidavitPageStore.stopLoading()}}),this.affidavitApplicationSettingsEndpoint.single(1).subscribe({next:e=>this.affidavitAppSetting=e.data,error:e=>{this.appNotificationService.showError({title:e.error,detail:e.message})}}),this.CourtEndPoint.list().subscribe({next:e=>this.courts=e.data,error:e=>{this.appNotificationService.showError({title:e.error,detail:e.message})}}),this.applicationForm.statusChanges.subscribe({next:e=>{this.canSubmitApplicationForm=e==="VALID"}}),this.applicationFormControl.originCountry.valueChanges.subscribe({next:e=>{this.getStates=this._geoStates.filter(n=>n.country_id===e),this.selectedCountry=this.geoCountry.find(n=>n.id===e)?.name??"",this.applicationFormControl.originState.reset(null)}}),this.applicationFormControl.originState.valueChanges.subscribe({next:e=>{this.selectedState=this.getStates.find(n=>n.id===e)?.name??"",this.applicationFormControl.originLga.reset(null)}}),this.onResize(null)}goBack(){}loadFormEntries(){this.formEntries.clear(),this.clauseEntriesControl.clear(),this.canShowClausesForm=!1,this.affidavitTemplate?.placeholders.forEach((e,n)=>{this.formEntriesMap.set(n,e);let i=e.is_required?[K.required]:[];this.formEntries.push(this.fb.control(null,i))}),this.affidavitTemplate?.is_clauses_editable?(this.clauseEntriesControl.push(this.createClause()),this.canShowClausesForm=!0):this.applicationForm.patchValue({affidavit_type_name:this.affidavitTemplate?.name})}createClause(){return this.fb.control("",[K.required,K.maxLength(1e3)])}get applicationFormControl(){return this.applicationForm.controls}get formEntries(){return this.applicationForm.controls.formEntries}showConfirmationForm(){this.displayForm=!1}showApplicationForm(){this.displayForm=!0}get clauseEntriesControl(){return this.applicationForm.controls.clauseEntries}onAddClause(e){if(this.clauseEntriesControl.length>=this.no_of_clauses){this.appNotificationService.showInfo({title:"Information",detail:`You can only supply a maximum of ${this.no_of_clauses} clauses!`});return}this.clauseEntriesControl.insert(e+1,this.createClause())}getFormEntriesRecordByIndex(e){return this.formEntriesMap.get(e)}onRemoveClause(e){if(this.clauseEntriesControl.length>1){this.clauseEntriesControl.removeAt(e);return}this.appNotificationService.showInfo({title:"Information",detail:"You must have at least one clause available"})}get courtName(){return this.courts.find(i=>i.id===this.applicationFormControl.court.value)?.name}processForm(){if(!this.applicationForm.valid){this.appNotificationService.showInfo({title:"Information!",detail:"Please complete the required fields and try again."});return}if(this.affidavitAppSetting?.allow_passport_photo&&!this.passportPhotoFile||this.affidavitAppSetting?.allow_signature&&!this.signatureFile){this.appNotificationService.showInfo({title:"Information!",detail:"Please make sure to upload both the Passport and Signature!"});return}this.dataPayload={affidavit_type_name:this.applicationFormControl.affidavit_type_name.value,deponent_name:this.applicationFormControl.deponent_name.value,deponent_nin:this.applicationFormControl.deponent_nin.value,town_native:this.applicationFormControl.town_native.value,town_resident:this.applicationFormControl.town_resident.value,state_id:this.applicationFormControl.originState.value,occupation:this.applicationFormControl.occupation.value,gender:this.applicationFormControl.gender.value,religion:this.applicationFormControl.religion.value,court_id:this.applicationFormControl.court.value,applicant_email:this.applicationFormControl.applicant_email.value,applicant_phone:this.applicationFormControl.applicant_phone.value,affidavit_template_id:this.affidavitTemplate?.id,passport_photo_file:this.uploadedPassportImage??"",signature_file:this.uploadedSignatureImage??"",identity_photo_file:this.uploadedIDCard??"",client_ref:"",formEntries:[],clauseEntries:[]};let e=this.formEntries.value;this.affidavitTemplate?.is_clauses_editable||this.formEntriesMap.forEach((n,i)=>{this.dataPayload?.formEntries.push({label:n.label,placeholder:n.placeholder,provided_value:e[i],parent_placeholder:n.parent_placeholder,is_calculated:n.is_calculated,format:n.format,input_type:n.input_type})}),this.shouldDisplayAffidavitSection=this.dataPayload?.formEntries?.length>0,setTimeout(()=>this.showConfirmationForm(),250)}goToPreview(){window.scrollTo({top:0,left:0,behavior:"smooth"}),this.is_loading=!0,this.affidavitPageStore.startLoading("Saving Data . . ."),this.affidavitApplicationEndpoint.create(this.dataPayload).subscribe({next:e=>{this.affidavitPageStore.setRefNo(e.data.ref_no),this.affidavitPageStore.toggle("application-detail"),this.affidavitPageStore.stopLoading(),this.is_loading=!1,this.appNotificationService.showSuccess({title:"Success",detail:"Application submitted successfully."})},error:e=>{this.is_loading=!1,this.appNotificationService.showError({title:"Error",detail:e.error.message}),this.affidavitPageStore.stopLoading()},complete:()=>this.is_loading=!1})}capturePhoto(){navigator.mediaDevices.getUserMedia({video:!0}).then(e=>{let n=document.createElement("video");n.srcObject=e,n.play();let i=document.createElement("canvas"),r=i.getContext("2d");n.addEventListener("loadeddata",()=>{i.width=n.videoWidth,i.height=n.videoHeight,r.drawImage(n,0,0,i.width,i.height),this.uploadedPassportImage=i.toDataURL("image/png"),this.uploadedIDCard=i.toDataURL("image/png"),e.getTracks().forEach(a=>a.stop())})}).catch(e=>{console.error("Error accessing the camera: ",e)})}handleFileInputIPassportImage(e){this.uploadedPassportImage="assets/images/loading.gif";let n;if(e instanceof Event){let a=e.target;if(a.files&&a.files.length>0)n=a.files[0];else{console.error("No files found in the input element.");return}}else typeof e=="string"&&e.startsWith("data:image/")?(this.uploadedPassportImage=e,n=this.dataURLtoFile(e,"passport.png")):n=e;let i=n.type,r=new FileReader;i.startsWith("image/")?(r.onload=()=>{this.uploadedPassportImage=r.result,this.handleFileUpload(n,"passport")},r.readAsDataURL(n)):i==="application/pdf"?(this.uploadedPassportImage="assets/images/logo-pdf.png",this.handleFileUpload(n,"passport")):i==="application/msword"||i==="application/vnd.openxmlformats-officedocument.wordprocessingml.document"?(this.uploadedPassportImage="assets/images/logo-doc.jpeg",this.handleFileUpload(n,"passport")):(this.appNotificationService.showWarning({title:"Unsupported File",detail:"Only images, PDF or Word documents are allowed."}),this.uploadedPassportImage="assets/images/noimage.gif",this.passportPhotoFile=null)}handleFileInputSignatureImage(e){this.uploadedSignatureImage="assets/images/loading.gif";let n;if(e instanceof Event){let a=e.target;if(a.files&&a.files.length>0)n=a.files[0];else{console.error("No files found in the input element.");return}}else typeof e=="string"&&e.startsWith("data:image/")?(this.uploadedSignatureImage=e,n=this.dataURLtoFile(e,"signature.png")):n=e;let i=n.type,r=new FileReader;if(i.startsWith("image/"))r.onload=()=>{this.uploadedSignatureImage=r.result,this.handleFileUpload(n,"signature")},r.readAsDataURL(n);else if(i==="application/pdf")this.uploadedSignatureImage="assets/images/logo-pdf.png",this.handleFileUpload(n,"signature");else if(i==="application/msword"||i==="application/vnd.openxmlformats-officedocument.wordprocessingml.document")this.uploadedSignatureImage="assets/images/logo-doc.jpeg",this.handleFileUpload(n,"signature");else{this.appNotificationService.showWarning({title:"Unsupported File",detail:"Only images, PDF or Word documents are allowed."}),this.uploadedSignatureImage="assets/images/noimage.gif",this.signatureFile=null;return}}handleFileInputIDCard(e){this.uploadedIDCard="assets/images/loading.gif";let n;if(e instanceof Event){let a=e.target;if(a.files&&a.files.length>0)n=a.files[0];else{console.error("No files found in the input element.");return}}else typeof e=="string"&&e.startsWith("data:image/")?(this.uploadedIDCard=e,n=this.dataURLtoFile(e,"id-card.png")):n=e;let i=n.type,r=new FileReader;i.startsWith("image/")?(r.onload=()=>{this.uploadedIDCard=r.result,this.handleFileUpload(n,"id-card")},r.readAsDataURL(n)):i==="application/pdf"?(this.uploadedIDCard="assets/images/logo-pdf.png",this.handleFileUpload(n,"id-card")):i==="application/msword"||i==="application/vnd.openxmlformats-officedocument.wordprocessingml.document"?(this.uploadedIDCard="assets/images/logo-doc.jpeg",this.handleFileUpload(n,"id-card")):(this.appNotificationService.showWarning({title:"Unsupported File",detail:"Only images, PDF or Word documents are allowed."}),this.uploadedIDCard="assets/images/noimage.gif",this.idCardPhotoFile=null)}dataURLtoFile(e,n){let i=e.split(","),r=i[0]?.match(/:(.*?);/),a=r?r[1]:"",s=atob(i[1]),l=s.length,u=new Uint8Array(l);for(;l--;)u[l]=s.charCodeAt(l);return new File([u],n,{type:a})}openCamera(){this.cameraEnabled=!0,this.isCapturing=!1}openCamera1(){this.cameraEnabled1=!0,this.isCapturing=!1}startCamera(){this.cameraStarted=!0,this.cameraService.initCamera(this.videoElement.nativeElement)}startCamera1(){this.cameraStarted1=!0,this.cameraService.initCamera(this.videoElement.nativeElement)}getCamera(){this.cameraService.getCamera(this.videoElement.nativeElement)}switchCamera(){this.cameraService.switchCamera(this.videoElement.nativeElement)}initCamera(){this.cameraService.initCamera(this.videoElement.nativeElement)}captureImage(){this.isCapturing=!0,setTimeout(()=>{let e=this.cameraService.captureImage(this.videoElement.nativeElement);this.handleFileInputIPassportImage(e),this.cameraService.stopCamera(this.videoElement.nativeElement),this.stopCamera(),this.isCapturing=!1},100)}captureImage1(){this.isCapturing=!0,setTimeout(()=>{let e=this.cameraService.captureImage(this.videoElement.nativeElement);this.handleFileInputIDCard(e),this.cameraService.stopCamera(this.videoElement.nativeElement),this.stopCamera(),this.isCapturing=!1},100)}stopCamera(){this.cameraService.stopCamera(this.videoElement.nativeElement),this.cameraEnabled=!1,this.cameraEnabled1=!1,this.cameraStarted=!1,this.cameraStarted1=!1,this.isCapturing=!1}onSignatureSaved(e){this.handleFileInputSignatureImage(e)}handleImageError(e){e.target.src=`data:image/gif;base64,${this.no_image}`}get isNINValidated(){return(this.applicationFormControl.deponent_nin.value+"").length===11}onInput(e){let n=e.target.value;n=n.replace(/\D/g,""),n.length>11&&(n=n.slice(0,11)),this.applicationFormControl.deponent_nin.patchValue(n)}handleFileUpload(e,n){switch(n){case"passport":this.passportPhotoFile=e;break;case"signature":this.signatureFile=e;break;case"id-card":this.idCardPhotoFile=e;break;default:break}}onResize(e){this.isSmallScreen=window.innerWidth<500,this.iconsOnly1=window.innerWidth<450,this.iconsOnly=window.innerWidth<400}closeCamera(){this.stopCamera()}closeDropdown(e){setTimeout(()=>{let n=Array.from(document.querySelectorAll(".p-dropdown-panel")).filter(i=>{let r=window.getComputedStyle(i);return r.display!=="none"&&r.visibility!=="hidden"});if(n.length>0){n[0].style.display="none";let i=document.activeElement;i&&i.classList.contains("p-dropdown")&&i.blur()}},100)}prePopulateForm(e){this.applicationForm.patchValue({affidavit_type_name:e.affidavit_type_name,deponent_name:e.deponent_name,deponent_nin:e.deponent_nin,town_native:e.town_native,town_resident:e.town_resident,originCountry:e?.state?.country?.id,originState:e?.state?.id,occupation:e.occupation,gender:e.gender,religion:e.religion,court:e?.court?.id??1,applicant_email:e.applicant_email??null,applicant_phone:e.applicant_phone??null,passport_photo_file:e?.passport_photo_file_raw,signature_file:e?.signature_file_raw}),this.formEntries.clear(),console.log("Setter Payload: ",e,this.no_image),this.uploadedPassportImage=e?.passport_photo_file&&e?.passport_photo_file!==""?e?.passport_photo_file:this.no_image,this.passportPhotoFile=e?.passport_photo_file&&e?.passport_photo_file!==""?e?.passport_photo_file:null,this.uploadedSignatureImage=e?.signature_file&&e?.signature_file!==""?e?.signature_file:this.no_image,this.signatureFile=e?.signature_file&&e?.signature_file!==""?e?.signature_file:null,this.uploadedIDCard=e?.identity_card_file&&e?.identity_card_file!==""?e?.identity_card_file:this.no_image,this.idCardPhotoFile=e?.identity_card_file&&e?.identity_card_file!==""?e?.identity_card_file:null,console.log("uploadedPassportImage ",this.uploadedPassportImage," passportPhotoFile ",this.passportPhotoFile),console.log("uploadedSignatureImage ",this.uploadedSignatureImage," signatureFile ",this.signatureFile),console.log("`uploadedSignatureImage` ",this.uploadedSignatureImage," signatureFile ",this.signatureFile),console.log("`uploadedIDCard` ",this.uploadedIDCard," idCardPhotoFile ",this.idCardPhotoFile)}static{this.\u0275fac=function(n){return new(n||t)(M(Mi),M(oi),M(ua),M(Jo),M(Xo),M(to),M(Ti),M(Mn),M(Ym),M(Te),M(Zo),M(zi))}}static{this.\u0275cmp=N({type:t,selectors:[["application-clause-form"]],viewQuery:function(n,i){if(n&1&&ae(OG,5),n&2){let r;Q(r=G())&&(i.videoElement=r.first)}},hostBindings:function(n,i){n&1&&I("resize",function(a){return i.onResize(a)},!1,$0)},outputs:{toggle:"toggle"},decls:14,vars:2,consts:[["fileIdCard",""],["filePassportPhoto",""],["fileSignature",""],["videoElement",""],["editor",""],[1,"application-form-container"],[1,"application-form-header"],[1,"header-content"],[1,"application-form-title"],[1,"application-form-subtitle"],[1,"header-actions"],[1,"progress-indicator"],[1,"pi","pi-file-edit"],["class","form-sections",4,"ngIf"],["class","review-sections",4,"ngIf"],[1,"form-sections"],[3,"formGroup"],[1,"form-section","personal-info-section"],[1,"section-header"],[1,"pi","pi-user"],[1,"section-content"],["class","file-upload-container",4,"ngIf"],["class","camera-interface",4,"ngIf"],[1,"form-grid"],[1,"form-field"],["for","deponent_name"],[1,"required"],["id","deponent_name","placeholder","Enter Deponent Name","type","text","formControlName","deponent_name","required","",1,"form-input"],["class","error-message",4,"ngIf"],["for","deponent_nin"],["id","deponent_nin","placeholder","Enter Deponent NIN","type","text","formControlName","deponent_nin","required","",1,"form-input",3,"input"],["for","gender"],["placeholder","Select Gender","formControlName","gender","optionLabel","name","optionValue","name",1,"form-dropdown",3,"onChange","options","showClear"],["for","town_native"],["type","text","placeholder","Enter Native Town","formControlName","town_native","required","",1,"form-input"],["for","originCountry"],["placeholder","Select Country of Origin","formControlName","originCountry","optionLabel","name","optionValue","id",1,"form-dropdown",3,"onChange","options","showClear","filter"],["for","originState"],["placeholder","Select State of Origin","formControlName","originState","optionLabel","name","optionValue","id",1,"form-dropdown",3,"onChange","options","showClear","filter"],["for","town_resident"],["type","text","placeholder","e.g No. 7B Gambia street, Garki","formControlName","town_resident","required","",1,"form-input"],["for","occupation"],["type","text","placeholder","e.g Software Developer, Student","formControlName","occupation","required","",1,"form-input"],["for","religion"],["placeholder","Select Religion","formControlName","religion","optionLabel","name","optionValue","name",1,"form-dropdown",3,"onChange","options","showClear"],["class","form-section affidavit-info-section",4,"ngIf"],["class","form-section clauses-section",4,"ngIf"],[1,"form-section","additional-info-section"],[1,"pi","pi-info-circle"],["for","applicant_email"],["id","applicant_email","placeholder","Enter Applicant Email","type","email","formControlName","applicant_email","required","",1,"form-input"],["for","applicant_phone"],["type","text","placeholder","Enter Applicant Phone Number","formControlName","applicant_phone","required","",1,"form-input"],["for","court"],["placeholder","Select Court","formControlName","court","optionLabel","name","optionValue","id",1,"form-dropdown",3,"onChange","options","showClear"],[1,"divider-with-label","m-0","p-0","w-full",2,"grid-column","1 / -1"],[1,"form-divider","w-full"],[1,"form-actions","w-full","flex","mt-0","p-0",2,"grid-column","1 / -1"],[1,"action-buttons","ml-auto","flex","gap-2"],["pButton","","type","button","icon","pi pi-arrow-left","label","Previous",1,"review-btn",3,"click"],["pButton","","icon","pi pi-save","type","button","label","Preview",1,"submit-btn",3,"click","disabled"],[1,"file-upload-container"],[1,"upload-grid"],["class","upload-card",4,"ngIf"],[1,"upload-card"],[1,"upload-header"],[1,"pi","pi-id-card"],[1,"upload-content"],["alt","ID Card",1,"uploaded-image",3,"src"],[1,"upload-actions"],["pButton","","pRipple","","icon","pi pi-upload","label","Upload",1,"upload-btn","primary",3,"click"],["pButton","","pRipple","","icon","pi pi-camera","label","Camera",1,"upload-btn","secondary",3,"click"],["type","file","name","ApplicantIdCardUpload","id","ApplicantIdCardUpload","hidden","","accept","image/*",3,"change"],[1,"pi","pi-image"],["alt","Passport Photo",1,"uploaded-image",3,"src"],["type","file","name","ApplicantPassportUpload","id","ApplicantPassportUpload","hidden","","accept","image/*",3,"change"],[1,"pi","pi-pencil"],["alt","Signature",1,"uploaded-image",3,"src"],["type","file","name","ApplicantSigantureUpload","id","ApplicantSigantureUpload","hidden","","accept","image/*",3,"change"],[1,"camera-interface"],[1,"camera-container"],[1,"camera-header"],["title","Close Camera",1,"camera-close-btn",3,"click"],[1,"pi","pi-times"],[1,"camera-video"],[1,"camera-controls"],["class","camera-btn start",3,"click",4,"ngIf"],["class","camera-btn capture",3,"disabled","click",4,"ngIf"],["class","camera-btn switch",3,"click",4,"ngIf"],[1,"camera-btn","start",3,"click"],[1,"pi","pi-play"],[1,"camera-btn","capture",3,"click","disabled"],["class","pi pi-camera",4,"ngIf"],["class","pi pi-spin pi-spinner",4,"ngIf"],[1,"pi","pi-camera"],[1,"pi","pi-spin","pi-spinner"],[1,"camera-btn","switch",3,"click"],[1,"pi","pi-refresh"],[1,"error-message"],[1,"form-section","affidavit-info-section"],[1,"pi","pi-file-text"],["formArrayName","formEntries",1,"form-grid"],[4,"ngFor","ngForOf"],[4,"ngIf"],["class","form-field",4,"ngIf"],[1,"form-input",3,"id","type","formControlName"],[1,"form-section","clauses-section"],[1,"pi","pi-list"],[1,"form-field","full-width"],["for","affidavit_type_name"],["type","text","maxlength","250","id","affidavit_type_name","name","affidavit_type_name","placeholder","Enter Affidavit Title...","formControlName","affidavit_type_name",1,"form-input"],["formArrayName","clauseEntries"],[1,"clause-item"],[1,"clause-header"],["for","clause_entry"],[1,"clause-number"],[1,"clause-actions"],["type","button","pButton","","icon","pi pi-plus","pTooltip","Add Clause","tooltipPosition","top",1,"add-clause-btn",3,"click"],["type","button","pButton","","icon","pi pi-trash","pTooltip","Remove Clause","tooltipPosition","top",1,"remove-clause-btn",3,"click"],[1,"clause-content"],["class","mobile-editor",4,"ngIf","ngIfElse"],[1,"mobile-editor"],["placeholder","That...",1,"clause-textarea",3,"formControlName"],[1,"rich-editor"],["placeholder","That...","required","","id","clause_entry","name","clause_entry",1,"clause-editor",3,"formControlName","modules"],[1,"review-sections"],[1,"review-section"],[1,"review-content"],[1,"review-grid"],[1,"review-item"],[1,"review-label"],[1,"review-value"],[1,"pi","pi-clone"],[1,"pi","pi-map-marker"],[1,"pi","pi-globe"],[1,"pi","pi-map"],[1,"pi","pi-home"],[1,"pi","pi-briefcase"],[1,"pi","pi-circle-fill"],[1,"affidavit-title"],["class","clauses-review",4,"ngIf"],[1,"form-entries-review"],[1,"pi","pi-users"],[1,"pi","pi-envelope"],[1,"pi","pi-phone"],[1,"pi","pi-images"],["class","not-provided",4,"ngIf"],["alt","Passport Photo","class","review-image",3,"src",4,"ngIf"],["alt","Signature","class","review-image",3,"src",4,"ngIf"],["alt","ID Card","class","review-image",3,"src",4,"ngIf"],[1,"form-actions","review-actions","w-full","flex","mt-0","p-0",2,"grid-column","1 / -1"],["pButton","","type","button","icon","pi pi-arrow-left","label","Review",1,"review-btn",3,"click","disabled"],["pButton","","type","button","icon","pi pi-save",1,"submit-btn",3,"click","disabled","label"],[1,"clauses-review"],["class","clause-review-item",4,"ngFor","ngForOf"],[1,"clause-review-item"],[1,"clause-label"],[1,"clause-content",3,"innerHtml"],["class","entry-item",4,"ngIf"],[1,"entry-item"],[1,"entry-label"],[1,"entry-value"],[1,"not-provided"],["alt","Passport Photo",1,"review-image",3,"src"],["alt","Signature",1,"review-image",3,"src"],["alt","ID Card",1,"review-image",3,"src"]],template:function(n,i){n&1&&(c(0,"div",5)(1,"div",6)(2,"div",7)(3,"h1",8),g(4,"Affidavit Application Form"),d(),c(5,"p",9),g(6,"Complete your affidavit application with all required information"),d()(),c(7,"div",10)(8,"div",11),v(9,"i",12),c(10,"span"),g(11,"Form Progress"),d()()()(),_(12,uW,118,34,"div",13)(13,xW,140,24,"div",14),d()),n&2&&(p(12),m("ngIf",i.displayForm),p(),m("ngIf",!i.displayForm))},dependencies:[rt,Ce,wn,Dn,kn,xn,Ui,bo,Fn,Hn,Ii,Lt,Io,I1,In,wt],styles:[".application-form-container[_ngcontent-%COMP%]{padding:0rem .5rem 1rem;background:transparent;min-height:100vh;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.application-form-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;padding:2rem;background:linear-gradient(to left,#000,#0d6449);border-radius:20px;box-shadow:0 20px 40px #0000001a;color:#fff}.header-content[_ngcontent-%COMP%] h1.application-form-title[_ngcontent-%COMP%]{font-size:2.5rem;font-weight:700;margin:0 0 .5rem;color:#fff}.header-content[_ngcontent-%COMP%] .application-form-subtitle[_ngcontent-%COMP%]{font-size:1.1rem;opacity:.9;margin:0;font-weight:400}.header-actions[_ngcontent-%COMP%] .progress-indicator[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;background:#fff3;padding:.75rem 1.5rem;border-radius:25px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.3)}.header-actions[_ngcontent-%COMP%] .progress-indicator[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.1rem;color:#fef3c7}.header-actions[_ngcontent-%COMP%] .progress-indicator[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:.9rem;font-weight:500}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%]{background:#fff;border-radius:20px;padding:2rem;margin-bottom:2rem;box-shadow:0 10px 30px #0000001a;border:1px solid #f1f5f9}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%]{margin-bottom:2rem;padding-bottom:1rem;border-bottom:2px solid #f1f5f9}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:1.5rem;font-weight:600;margin:0 0 .5rem;color:#1f2937;display:flex;align-items:center;gap:.75rem}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#10b981}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#6b7280;margin:0;font-size:1rem}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field.full-width[_ngcontent-%COMP%]{grid-column:1/-1}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;font-weight:600;color:#374151;margin-bottom:.5rem;font-size:.875rem}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%] .required[_ngcontent-%COMP%]{color:#ef4444}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%]{width:100%;padding:.75rem 1rem;border:2px solid #e5e7eb;border-radius:12px;font-size:1rem;color:#1f2937;background:#f9fafb;transition:all .3s ease}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%]:focus{outline:none;border-color:#10b981;background:#fff;box-shadow:0 0 0 3px #10b9811a}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%]::placeholder{color:#9ca3af}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-input.is-invalid[_ngcontent-%COMP%]{border-color:#ef4444}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-dropdown[_ngcontent-%COMP%]{width:100%}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-dropdown[_ngcontent-%COMP%] .p-dropdown{width:100%;border:2px solid #e5e7eb;border-radius:12px;background:#f9fafb;transition:all .3s ease;box-shadow:none}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-dropdown[_ngcontent-%COMP%] .p-dropdown:not(.p-disabled):hover{border-color:#10b981;background:#fff}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-dropdown[_ngcontent-%COMP%] .p-dropdown:not(.p-disabled).p-focus{border-color:#10b981;background:#fff;box-shadow:0 0 0 3px #10b9811a}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-dropdown[_ngcontent-%COMP%] .p-dropdown .p-dropdown-label{padding:.75rem 1rem;color:#1f2937;font-size:.9rem;font-weight:500}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-dropdown[_ngcontent-%COMP%] .p-dropdown .p-dropdown-label.p-placeholder{color:#9ca3af}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-dropdown[_ngcontent-%COMP%] .p-dropdown .p-dropdown-trigger{width:2.5rem;color:#6b7280}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-dropdown[_ngcontent-%COMP%] .p-dropdown .p-dropdown-trigger .p-dropdown-trigger-icon{color:#6b7280;transition:all .3s ease}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-dropdown[_ngcontent-%COMP%] .p-dropdown:hover .p-dropdown-trigger .p-dropdown-trigger-icon{color:#10b981}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-dropdown[_ngcontent-%COMP%] .p-dropdown.p-focus .p-dropdown-trigger .p-dropdown-trigger-icon{color:#10b981;transform:rotate(180deg)}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-dropdown[_ngcontent-%COMP%] .p-dropdown-panel{border:2px solid #e5e7eb;border-radius:12px;box-shadow:0 10px 25px #0000001a;background:#fff;margin-top:.25rem}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-dropdown[_ngcontent-%COMP%] .p-dropdown-panel .p-dropdown-items{padding:.5rem 0}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-dropdown[_ngcontent-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item{padding:.75rem 1rem;color:#374151;font-size:.9rem;font-weight:500;transition:all .2s ease;border-radius:0}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-dropdown[_ngcontent-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item:hover{background:#f1f5f9;color:#10b981}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-dropdown[_ngcontent-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-highlight{background:linear-gradient(135deg,#10b981,#059669);color:#fff}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-dropdown[_ngcontent-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item:focus{background:#f1f5f9;color:#10b981;outline:none}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .error-message[_ngcontent-%COMP%]{color:#ef4444;font-size:.8rem;margin-top:.25rem}.form-sections[_ngcontent-%COMP%] .personal-info-section[_ngcontent-%COMP%], .form-sections[_ngcontent-%COMP%] .affidavit-info-section[_ngcontent-%COMP%]{border-left:5px solid #0d6449}.form-sections[_ngcontent-%COMP%] .affidavit-info-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%]{display:grid!important;grid-template-columns:1fr 1fr!important;gap:1.5rem}@media (max-width: 768px){.form-sections[_ngcontent-%COMP%] .affidavit-info-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%]{grid-template-columns:1fr!important}}.form-sections[_ngcontent-%COMP%] .affidavit-info-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field.full-width[_ngcontent-%COMP%]{grid-column:1/-1}.form-sections[_ngcontent-%COMP%] .clauses-section[_ngcontent-%COMP%], .form-sections[_ngcontent-%COMP%] .additional-info-section[_ngcontent-%COMP%]{border-left:5px solid #0d6449}.file-upload-container[_ngcontent-%COMP%]{margin-bottom:2rem}.file-upload-container[_ngcontent-%COMP%] .upload-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%]{background:#f8fafc;border:2px dashed #d1d5db;border-radius:16px;padding:1.5rem;text-align:center;transition:all .3s ease}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%]:hover{border-color:#10b981;background:#d1fae5}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-header[_ngcontent-%COMP%]{margin-bottom:1rem}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-header[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:2rem;color:#10b981;margin-bottom:.5rem;display:block}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-header[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:1.1rem;font-weight:600;margin:0 0 .25rem;color:#374151}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-header[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{color:#6b7280;font-size:.8rem}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:center}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .uploaded-image[_ngcontent-%COMP%]{width:120px;height:120px;object-fit:cover;border-radius:16px;margin:0 auto 1rem;border:3px solid #e5e7eb;display:block;transition:all .3s ease;box-shadow:0 4px 12px #0000001a}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .uploaded-image[_ngcontent-%COMP%]:hover{transform:scale(1.05);border-color:#10b981;box-shadow:0 8px 25px #10b98133}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;justify-content:center}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%] .upload-btn[_ngcontent-%COMP%]{padding:.5rem 1rem;border-radius:8px;font-size:.875rem;transition:all .3s ease}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%] .upload-btn.primary[_ngcontent-%COMP%]{background:linear-gradient(135deg,#10b981,#059669);border:none;color:#fff}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%] .upload-btn.primary[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 6px 15px #10b9814d}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%] .upload-btn.secondary[_ngcontent-%COMP%]{background:transparent;border:1px solid #d1d5db;color:#6b7280}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%] .upload-btn.secondary[_ngcontent-%COMP%]:hover{background:#f3f4f6;border-color:#9ca3af}.camera-interface[_ngcontent-%COMP%]{margin-bottom:2rem}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%]{background:#f8fafc;border-radius:16px;padding:1.5rem;text-align:center;position:relative}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid #e5e7eb}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-header[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin:0;color:#374151;font-size:1.1rem;font-weight:600}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-header[_ngcontent-%COMP%] .camera-close-btn[_ngcontent-%COMP%]{background:#ef4444;border:none;color:#fff;width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .3s ease;font-size:.9rem}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-header[_ngcontent-%COMP%] .camera-close-btn[_ngcontent-%COMP%]:hover{background:#dc2626;transform:scale(1.1);box-shadow:0 4px 12px #ef44444d}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-header[_ngcontent-%COMP%] .camera-close-btn[_ngcontent-%COMP%]:active{transform:scale(.95)}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-video[_ngcontent-%COMP%]{width:100%;max-width:500px;height:300px;border-radius:12px;margin-bottom:1rem;border:2px solid #e5e7eb}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%]{display:flex;gap:.75rem;justify-content:center;flex-wrap:wrap}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn[_ngcontent-%COMP%]{padding:.75rem 1.5rem;border-radius:10px;font-weight:600;transition:all .3s ease;border:none;cursor:pointer}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.start[_ngcontent-%COMP%]{background:linear-gradient(135deg,#10b981,#059669);color:#fff}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.start[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 6px 15px #10b9814d}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.capture[_ngcontent-%COMP%]{background:linear-gradient(135deg,#6366f1,#4f46e5);color:#fff}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.capture[_ngcontent-%COMP%]:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 15px #6366f14d}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.capture[_ngcontent-%COMP%]:disabled{background:#9ca3af;cursor:not-allowed;transform:none;box-shadow:none;opacity:.7}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.switch[_ngcontent-%COMP%]{background:transparent;border:1px solid #d1d5db;color:#6b7280}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.switch[_ngcontent-%COMP%]:hover{background:#f3f4f6;border-color:#9ca3af}.clauses-section[_ngcontent-%COMP%] .clause-item[_ngcontent-%COMP%]{background:#f8fafc;border-radius:16px;padding:1.5rem;margin-bottom:1.5rem;border:1px solid #e2e8f0}.clauses-section[_ngcontent-%COMP%] .clause-item[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.clauses-section[_ngcontent-%COMP%] .clause-item[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;font-weight:600;color:#374151;margin:0}.clauses-section[_ngcontent-%COMP%] .clause-item[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] label[_ngcontent-%COMP%] .clause-number[_ngcontent-%COMP%]{background:#10b981;color:#fff;padding:.25rem .5rem;border-radius:6px;font-size:.8rem;font-weight:700}.clauses-section[_ngcontent-%COMP%] .clause-item[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}.clauses-section[_ngcontent-%COMP%] .clause-item[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-actions[_ngcontent-%COMP%] .add-clause-btn[_ngcontent-%COMP%]{background:linear-gradient(135deg,#10b981,#059669);border:none;color:#fff;width:40px;height:40px;border-radius:8px;transition:all .3s ease}.clauses-section[_ngcontent-%COMP%] .clause-item[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-actions[_ngcontent-%COMP%] .add-clause-btn[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 6px 15px #10b9814d}.clauses-section[_ngcontent-%COMP%] .clause-item[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-actions[_ngcontent-%COMP%] .remove-clause-btn[_ngcontent-%COMP%]{background:linear-gradient(135deg,#ef4444,#dc2626);border:none;color:#fff;width:40px;height:40px;border-radius:8px;transition:all .3s ease}.clauses-section[_ngcontent-%COMP%] .clause-item[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-actions[_ngcontent-%COMP%] .remove-clause-btn[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 6px 15px #ef44444d}.clauses-section[_ngcontent-%COMP%] .clause-item[_ngcontent-%COMP%] .clause-content[_ngcontent-%COMP%] .mobile-editor[_ngcontent-%COMP%] .clause-textarea[_ngcontent-%COMP%]{width:100%;min-height:120px;padding:1rem;border:2px solid #e5e7eb;border-radius:12px;font-size:1rem;resize:vertical;transition:all .3s ease}.clauses-section[_ngcontent-%COMP%] .clause-item[_ngcontent-%COMP%] .clause-content[_ngcontent-%COMP%] .mobile-editor[_ngcontent-%COMP%] .clause-textarea[_ngcontent-%COMP%]:focus{outline:none;border-color:#10b981;box-shadow:0 0 0 3px #10b9811a}.clauses-section[_ngcontent-%COMP%] .clause-item[_ngcontent-%COMP%] .clause-content[_ngcontent-%COMP%] .rich-editor[_ngcontent-%COMP%] .clause-editor[_ngcontent-%COMP%]{border:2px solid #e5e7eb;border-radius:12px;overflow:hidden;transition:all .3s ease}.clauses-section[_ngcontent-%COMP%] .clause-item[_ngcontent-%COMP%] .clause-content[_ngcontent-%COMP%] .rich-editor[_ngcontent-%COMP%] .clause-editor[_ngcontent-%COMP%]:focus-within{border-color:#10b981;box-shadow:0 0 0 3px #10b9811a}.form-actions[_ngcontent-%COMP%]{padding:2rem 0;text-align:center}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .previous-btn[_ngcontent-%COMP%], .form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .preview-btn[_ngcontent-%COMP%]{background:#eab308;border:none;color:#fff;padding:.75rem 1.5rem;border-radius:12px;font-weight:600;transition:all .3s ease}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .previous-btn[_ngcontent-%COMP%]:hover, .form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .preview-btn[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 6px 15px #10b9814d}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%]{background:#fff;border-radius:20px;padding:2rem;margin-bottom:2rem;box-shadow:0 10px 30px #0000001a;border:1px solid #f1f5f9}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%]{margin-bottom:2rem;padding-bottom:1rem;border-bottom:2px solid #f1f5f9}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:1.5rem;font-weight:600;margin:0 0 .5rem;color:#1f2937;display:flex;align-items:center;gap:.75rem}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#10b981}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#6b7280;margin:0;font-size:1rem}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .affidavit-title[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:600;color:#1f2937;margin:0 0 1.5rem;padding:1rem;background:#f8fafc;border-radius:12px;border-left:5px solid #0d6449}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .review-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .review-grid[_ngcontent-%COMP%] .review-item[_ngcontent-%COMP%] .review-label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;font-weight:600;color:#10b981;margin-bottom:.5rem;font-size:.875rem}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .review-grid[_ngcontent-%COMP%] .review-item[_ngcontent-%COMP%] .review-label[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .review-grid[_ngcontent-%COMP%] .review-item[_ngcontent-%COMP%] .review-value[_ngcontent-%COMP%]{color:#374151;font-size:1rem;font-weight:500}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .review-grid[_ngcontent-%COMP%] .review-item[_ngcontent-%COMP%] .review-value.not-provided[_ngcontent-%COMP%]{color:#9ca3af;font-style:italic}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .review-grid[_ngcontent-%COMP%] .review-item[_ngcontent-%COMP%] .review-image[_ngcontent-%COMP%]{width:120px;height:120px;object-fit:cover;border-radius:12px;border:2px solid #e5e7eb;transition:all .3s ease;box-shadow:0 4px 12px #0000001a}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .review-grid[_ngcontent-%COMP%] .review-item[_ngcontent-%COMP%] .review-image[_ngcontent-%COMP%]:hover{transform:scale(1.05);border-color:#10b981;box-shadow:0 8px 25px #10b98133}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .clauses-review[_ngcontent-%COMP%] .clause-review-item[_ngcontent-%COMP%]{background:#f8fafc;border-radius:12px;padding:1rem;margin-bottom:1rem;border:1px solid #e2e8f0}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .clauses-review[_ngcontent-%COMP%] .clause-review-item[_ngcontent-%COMP%] .clause-label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;font-weight:600;color:#10b981;margin-bottom:.75rem;font-size:.875rem}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .clauses-review[_ngcontent-%COMP%] .clause-review-item[_ngcontent-%COMP%] .clause-label[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .clauses-review[_ngcontent-%COMP%] .clause-review-item[_ngcontent-%COMP%] .clause-content[_ngcontent-%COMP%]{color:#374151;line-height:1.6}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .form-entries-review[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}@media (max-width: 768px){.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .form-entries-review[_ngcontent-%COMP%]{grid-template-columns:1fr}}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .form-entries-review[_ngcontent-%COMP%] .entry-item[_ngcontent-%COMP%]{background:#f8fafc;border-radius:12px;padding:1rem;border:1px solid #e5e7f0}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .form-entries-review[_ngcontent-%COMP%] .entry-item[_ngcontent-%COMP%] .entry-label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;font-weight:600;color:#10b981;margin-bottom:.5rem;font-size:.875rem}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .form-entries-review[_ngcontent-%COMP%] .entry-item[_ngcontent-%COMP%] .entry-label[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .form-entries-review[_ngcontent-%COMP%] .entry-item[_ngcontent-%COMP%] .entry-value[_ngcontent-%COMP%]{color:#374151;font-size:1rem}.review-sections[_ngcontent-%COMP%] .review-actions[_ngcontent-%COMP%]{background:#fff;border-radius:20px;padding:2rem;text-align:center}.review-sections[_ngcontent-%COMP%] .review-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;gap:1rem;justify-content:flex-end;flex-wrap:wrap}.review-sections[_ngcontent-%COMP%] .review-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .review-btn[_ngcontent-%COMP%]{background:#eab308;border:none;color:#fff;padding:.75rem 1.5rem;border-radius:12px;font-weight:600;transition:all .3s ease}.review-sections[_ngcontent-%COMP%] .review-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .review-btn[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 6px 15px #6366f14d}.review-sections[_ngcontent-%COMP%] .review-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .submit-btn[_ngcontent-%COMP%]{background:linear-gradient(135deg,#10b981,#059669);border:none;color:#fff;padding:.75rem 1.5rem;border-radius:12px;font-weight:600;transition:all .3s ease}.review-sections[_ngcontent-%COMP%] .review-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .submit-btn[_ngcontent-%COMP%]:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 15px #10b9814d}.review-sections[_ngcontent-%COMP%] .review-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .submit-btn[_ngcontent-%COMP%]:disabled{background:#9ca3af;cursor:not-allowed;transform:none;box-shadow:none}@media (max-width: 768px){.application-form-container[_ngcontent-%COMP%]{padding:1rem}.application-form-header[_ngcontent-%COMP%]{flex-direction:column;text-align:center;gap:1rem}.application-form-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .application-form-title[_ngcontent-%COMP%]{font-size:2rem}.application-form-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%] .progress-indicator[_ngcontent-%COMP%]{width:100%;justify-content:center}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%]{padding:1.5rem}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%]{grid-template-columns:1fr;gap:1rem}.form-sections[_ngcontent-%COMP%] .form-section.affidavit-info-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr!important;gap:1.5rem}}@media (max-width: 768px) and (max-width: 768px){.form-sections[_ngcontent-%COMP%] .form-section.affidavit-info-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%]{grid-template-columns:1fr!important}}@media (max-width: 768px){.file-upload-container[_ngcontent-%COMP%] .upload-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.clauses-section[_ngcontent-%COMP%] .clause-item[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%]{flex-direction:column;gap:1rem;align-items:flex-start}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%], .review-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{flex-direction:column;width:100%}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .review-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}}@media (max-width: 480px){.application-form-header[_ngcontent-%COMP%]{padding:1.5rem}.application-form-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .application-form-title[_ngcontent-%COMP%]{font-size:1.75rem}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%]{padding:1rem}}*[_ngcontent-%COMP%]{transition:all .3s cubic-bezier(.4,0,.2,1)}[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#f1f5f9;border-radius:4px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:linear-gradient(135deg,#10b981,#059669);border-radius:4px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:linear-gradient(135deg,#059669,#047857)}"]})}}return t})();function IW(t,o){if(t&1){let e=D();c(0,"select-template",1),I("toggle",function(i){C(e);let r=f();return y(r.toggle(i))}),d()}}function MW(t,o){if(t&1){let e=D();c(0,"application-clause-form",1),I("toggle",function(i){C(e);let r=f();return y(r.toggle(i))}),d()}}var MM=(()=>{class t{constructor(e){this.affidavitPageStore=e,this.applicationRefno="",this.canDisplaySelectTemplate=!0,this.canDisplayForm=!1}ngOnInit(){this.affidavitPageStore.id$.subscribe(e=>{e&&this.toggle("application-clause-form")})}toggle(e){switch(e.toString()){case"select-template":this.cancel(),this.canDisplaySelectTemplate=!0;break;case"application-clause-form":this.cancel(),this.canDisplayForm=!0;break;default:break}}cancel(){this.canDisplaySelectTemplate=!1,this.canDisplayForm=!1}static{this.\u0275fac=function(n){return new(n||t)(M(Te))}}static{this.\u0275cmp=N({type:t,selectors:[["new-affidavit-application-page"]],decls:2,vars:2,consts:[[3,"toggle",4,"ngIf"],[3,"toggle"]],template:function(n,i){n&1&&_(0,IW,1,0,"select-template",0)(1,MW,1,0,"application-clause-form",0),n&2&&(m("ngIf",i.canDisplaySelectTemplate),p(),m("ngIf",i.canDisplayForm))},dependencies:[Ce,xM,IM]})}}return t})();var EW=()=>({width:"68px",height:"68px"});function OW(t,o){if(t&1&&(c(0,"div",2)(1,"section",3)(2,"div",4),v(3,"p-progressSpinner",5),d(),c(4,"h2",6),g(5),d(),c(6,"p",7),g(7," Sit tight \u2014 we\u2019re loading the required services and secure connections. "),d()()()),t&2){let e,n=f();p(3),It(Pe(3,EW)),p(2),se(" ",(e=n.data.loading_label)!==null&&e!==void 0?e:"Loading affidavit workspace\u2026"," ")}}function TW(t,o){if(t&1){let e=D();c(0,"span",20)(1,"img",21),I("click",function(){C(e);let i=f(2);return y(i.goHome())}),d(),c(2,"span",22),g(3,"Federal High Court E-Affidavit"),d()()}if(t&2){let e=f(2);p(),m("src",e.logo,Ae)}}function PW(t,o){t&1&&v(0,"new-affidavit-application-page")}function DW(t,o){t&1&&v(0,"applications-all")}function kW(t,o){if(t&1){let e=D();c(0,"application-detail",23),I("getApplication",function(i){C(e);let r=f(2);return y(r.getApp(i))})("handlePayment",function(i){C(e);let r=f(2);return y(r.handlePaymentCallback(i))}),d()}}function FW(t,o){t&1&&v(0,"affidavit-print")}function RW(t,o){t&1&&v(0,"application-edit")}function VW(t,o){if(t&1&&(c(0,"div",8)(1,"div",9)(2,"div",10)(3,"div",11)(4,"div",12)(5,"div",13)(6,"p-menubar",14),_(7,TW,4,1,"ng-template",15),d()()()(),c(8,"div",16)(9,"div",17),_(10,PW,1,0,"new-affidavit-application-page",18)(11,DW,1,0,"applications-all",18)(12,kW,1,0,"application-detail",19)(13,FW,1,0,"affidavit-print",18)(14,RW,1,0,"application-edit",18),d()()()()()),t&2){let e=f();p(6),m("model",e.items),p(4),m("ngIf",e.data.canDisplayNew),p(),m("ngIf",e.data.canDisplayCheckApplication),p(),m("ngIf",e.data.canDisplayApplicationDetail),p(),m("ngIf",e.data.canDisplayAffidavitDetail),p(),m("ngIf",e.data.canDisplayEditApplication)}}var SM=(()=>{class t{set token(e){this.applyToken(e)}get token(){return this._token}set mode(e){this.applyMode(e)}get mode(){return this._mode}set templateId(e){this.applyTemplateId(e)}get templateId(){return this._templateId}set appId(e){this.applyAppId(e)}get appId(){return this._appId}set payload(e){this.applyPayload(e)}get payload(){return this._payload}set apiTokenAttr(e){this.applyToken(e)}set apiModeAttr(e){this.applyMode(e)}constructor(e,n,i,r,a,s,l){this.affidavitPageStore=e,this.primeConfig=n,this.applicationsService=i,this.apiKey=r,this.apiMode=a,this.el=s,this.renderer=l,this.callBack=new V,this.onPaymentSuccess=new V,this.overlay=!0,this._token="",this._mode="",this._templateId=0,this._appId="",this.logo="data:image/png;base64,"+pt.ecms_logo,this.applyToken(this.apiKey),this.applyMode(this.apiMode)}ngOnInit(){this.primeConfig.ripple=!0,this.affidavitPageStore.state$.subscribe({next:e=>{this.data=e}}),this.affidavitPageStore.store$.pipe(ci(1)).subscribe(e=>{!e.canDisplayNew&&!e.canDisplayCheckApplication&&!e.canDisplayApplicationDetail&&!e.canDisplayAffidavitDetail&&!e.canDisplayEditApplication&&this.affidavitPageStore.toggle("new")}),this.items=[{label:"New Application",icon:"pi pi-fw pi-plus",style:{transition:"background 0.25s, color 0.25s, box-shadow 0.25s, border 0.25s",borderRadius:"0.75rem",margin:"0 0.15rem"},command:()=>{this.data.canDisplayNew||(this.affidavitPageStore.startLoading("Loading . . ."),this.affidavitPageStore.toggle("new"))},styleClass:"menuitem-new"},{label:"Check Application",icon:"pi pi-check-circle",style:{transition:"background 0.25s, color 0.25s, box-shadow 0.25s, border 0.25s",borderRadius:"0.75rem",margin:"0 0.15rem",fontWeight:"bold"},command:()=>{this.data.canDisplayCheckApplication||this.affidavitPageStore.toggle("check")},styleClass:"menuitem-check"}],setTimeout(()=>{!(this.overlay===!1||this.overlay==="false")&&this.createOverlayHost()},150)}createOverlayHost(){try{let e=this.el.nativeElement;if(e.__hc_overlay_refs)return;this.ensureOverlayStyles();let n=this.renderer.createElement("div");this.renderer.addClass(n,"hc-overlay-backdrop"),this.renderer.setAttribute(n,"tabindex","-1");let i=this.renderer.createElement("div");this.renderer.addClass(i,"hc-overlay-panel");let r=this.renderer.createElement("button");this.renderer.addClass(r,"hc-overlay-close"),this.renderer.setAttribute(r,"aria-label","Close"),this.renderer.listen(r,"click",()=>this.closeLibrary()),this.renderer.appendChild(i,r);let a=e.parentElement;this.renderer.appendChild(i,e),this.renderer.appendChild(n,i),this.renderer.appendChild(document.body,n),setTimeout(()=>{try{this.renderer.addClass(n,"hc-overlay-open"),this.renderer.addClass(i,"hc-overlay-open"),this.renderer.addClass(document.body,"hc-overlay-open")}catch{}},20);let s=document&&document.activeElement||null,l=document.body.style.overflow;document.body.style.overflow="hidden";let u=h=>{h.key==="Escape"&&this.closeLibrary(),h.key==="Tab"&&this.maintainFocus(h,i)};window.addEventListener("keydown",u),this.renderer.setAttribute(i,"role","dialog"),this.renderer.setAttribute(i,"aria-modal","true"),this.renderer.setAttribute(i,"tabindex","-1"),setTimeout(()=>{try{i.focus()}catch{}},0),e.__hc_overlay_refs={backdrop:n,keyHandler:u,originalParent:a,prevFocus:s,prevOverflow:l}}catch(e){console.warn("Failed to create overlay for highcourt-affidavit:",e)}}closeOverlay(){let e=this.el.nativeElement,n=e.__hc_overlay_refs;if(n)try{let{backdrop:i,keyHandler:r,originalParent:a,prevFocus:s,prevOverflow:l}=n;window.removeEventListener("keydown",r),i&&i.parentNode&&i.parentNode.removeChild(i),a&&e&&e.parentElement&&e.parentElement!==a&&a.appendChild(e);try{this.renderer.removeClass(document.body,"hc-overlay-open"),l!==void 0&&(document.body.style.overflow=l)}catch{}try{s&&s.focus&&s.focus()}catch{}delete e.__hc_overlay_refs}catch{}}closeLibrary(){this.closeOverlay(),this.affidavitPageStore.closeLibrary()}maintainFocus(e,n){if(e.key!=="Tab")return;let i=n.querySelectorAll('a[href], area[href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, [tabindex]:not([tabindex="-1"]), [contenteditable]'),r=Array.prototype.slice.call(i);if(!r.length){e.preventDefault();return}let a=r[0],s=r[r.length-1],l=document.activeElement;e.shiftKey?(l===a||l===n)&&(e.preventDefault(),s.focus()):l===s&&(e.preventDefault(),a.focus())}exposeHostApi(e){let n=this;e.openAffidavitOverlay=function(){e.__hc_overlay_refs||n.createOverlayHost()},e.closeAffidavitOverlay=()=>this.closeOverlay()}ensureOverlayStyles(){if(document.querySelector("style[data-hc-overlay-component]"))return;let e=`
|
|
111
|
+
`],encapsulation:2,changeDetection:0})}return t})(),pf=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=Z({imports:[oe,re]})}return t})();var OG=["videoElement"];function TG(t,o){if(t&1){let e=D();c(0,"div",64)(1,"div",65),v(2,"i",73),c(3,"h4"),g(4,"Passport Photo"),d(),c(5,"small"),g(6,"JPG, GIF or PNG. Max 300kB"),d()(),c(7,"div",67),v(8,"img",74),c(9,"div",69)(10,"button",70),I("click",function(){C(e);let i=de(13);return y(i.click())}),d(),c(11,"button",71),I("click",function(i){return C(e),f(3).openCamera(),y(i.preventDefault())}),d()(),c(12,"input",75,1),I("change",function(i){C(e);let r=f(3);return y(r.handleFileInputIPassportImage(i))}),d()()()}if(t&2){let e=f(3);p(8),m("src",e.uploadedPassportImage||e.no_image,Ae)}}function PG(t,o){if(t&1){let e=D();c(0,"div",64)(1,"div",65),v(2,"i",76),c(3,"h4"),g(4,"Digital Signature"),d(),c(5,"small"),g(6,"JPG, GIF or PNG. Max 300kB"),d()(),c(7,"div",67),v(8,"img",77),c(9,"div",69)(10,"button",70),I("click",function(){C(e);let i=de(12);return y(i.click())}),d()(),c(11,"input",78,2),I("change",function(i){C(e);let r=f(3);return y(r.handleFileInputSignatureImage(i))}),d()()()}if(t&2){let e=f(3);p(8),m("src",e.uploadedSignatureImage||e.no_image,Ae)}}function DG(t,o){if(t&1){let e=D();c(0,"div",61)(1,"div",62),_(2,TG,14,1,"div",63),c(3,"div",64)(4,"div",65),v(5,"i",66),c(6,"h4"),g(7,"Identity Card"),d(),c(8,"small"),g(9,"JPG, GIF or PNG. Max 300kB"),d()(),c(10,"div",67),v(11,"img",68),c(12,"div",69)(13,"button",70),I("click",function(){C(e);let i=de(16);return y(i.click())}),d(),c(14,"button",71),I("click",function(i){return C(e),f(2).openCamera1(),y(i.preventDefault())}),d()(),c(15,"input",72,0),I("change",function(i){C(e);let r=f(2);return y(r.handleFileInputIDCard(i))}),d()()(),_(17,PG,13,1,"div",63),d()()}if(t&2){let e=f(2);p(2),m("ngIf",e.affidavitAppSetting==null?null:e.affidavitAppSetting.allow_passport_photo),p(9),m("src",e.uploadedIDCard||e.no_image,Ae),p(6),m("ngIf",e.affidavitAppSetting==null?null:e.affidavitAppSetting.allow_signature)}}function kG(t,o){if(t&1){let e=D();c(0,"button",89),I("click",function(i){C(e);let r=f(3);return r.cameraEnabled?r.startCamera():r.startCamera1(),y(i.preventDefault())}),v(1,"i",90),g(2," Start Camera "),d()}}function FG(t,o){t&1&&v(0,"i",94)}function RG(t,o){t&1&&v(0,"i",95)}function VG(t,o){if(t&1){let e=D();c(0,"button",91),I("click",function(){C(e);let i=f(3);return y(i.cameraEnabled?i.captureImage():i.captureImage1())}),_(1,FG,1,0,"i",92)(2,RG,1,0,"i",93),g(3),d()}if(t&2){let e=f(3);m("disabled",e.isCapturing),p(),m("ngIf",!e.isCapturing),p(),m("ngIf",e.isCapturing),p(),se(" ",e.isCapturing?"Compressing...":"Capture"," ")}}function LG(t,o){if(t&1){let e=D();c(0,"button",96),I("click",function(){C(e);let i=f(3);return y(i.switchCamera())}),v(1,"i",97),g(2," Switch Camera "),d()}}function NG(t,o){if(t&1){let e=D();c(0,"div",79)(1,"div",80)(2,"div",81)(3,"h4"),g(4,"Camera Capture"),d(),c(5,"button",82),I("click",function(){C(e);let i=f(2);return y(i.closeCamera())}),v(6,"i",83),d()(),v(7,"video",84,3),c(9,"div",85),_(10,kG,3,0,"button",86)(11,VG,4,4,"button",87)(12,LG,3,0,"button",88),d()()()}if(t&2){let e,n=f(2);p(10),m("ngIf",!n.cameraStarted),p(),m("ngIf",n.cameraStarted),p(),m("ngIf",n.cameraStarted&&((e=n.cameraService.videoInputs.length)!==null&&e!==void 0?e:0)>1)}}function BG(t,o){t&1&&(c(0,"div",98),g(1," Deponent name is required "),d())}function zG(t,o){t&1&&(c(0,"div",98),g(1," Deponent NIN is required "),d())}function HG(t,o){t&1&&(c(0,"div",98),g(1," NIN must be valid NIN number "),d())}function jG(t,o){t&1&&(c(0,"div",98),g(1," NIN must be 11 digits "),d())}function UG(t,o){t&1&&(c(0,"div",98),g(1," Gender is required "),d())}function qG(t,o){t&1&&(c(0,"div",98),g(1," Town is required "),d())}function QG(t,o){t&1&&(c(0,"div",98),g(1," Country of Origin is required "),d())}function GG(t,o){t&1&&(c(0,"div",98),g(1," State of Origin is required "),d())}function WG(t,o){t&1&&(c(0,"div",98),g(1," Resident Town is required "),d())}function KG(t,o){t&1&&(c(0,"div",98),g(1," Occupation is required "),d())}function YG(t,o){t&1&&(c(0,"div",98),g(1," Religion is required "),d())}function ZG(t,o){if(t&1&&(c(0,"div",24)(1,"label"),g(2),c(3,"span",26),g(4,"*"),d()(),v(5,"input",105),d()),t&2){let e=f().ngIf,n=f().index;p(2),se("",e.label," "),p(3),m("id",n)("type",e.input_type||"text")("formControlName",n)}}function JG(t,o){if(t&1&&(B(0),_(1,ZG,6,4,"div",104),z()),t&2){let e=o.ngIf;p(),m("ngIf",(e==null?null:e.is_calculated)===!1)}}function XG(t,o){if(t&1&&(B(0),_(1,JG,2,1,"ng-container",103),z()),t&2){let e=o.index,n=f(3);p(),m("ngIf",n.getFormEntriesRecordByIndex(e))}}function $G(t,o){if(t&1&&(c(0,"div",99)(1,"div",18)(2,"h3"),v(3,"i",100),g(4," Affidavit Information"),d(),c(5,"p"),g(6,"Provide additional information specific to your affidavit type"),d()(),c(7,"div",20)(8,"div",101),_(9,XG,2,1,"ng-container",102),d()()()),t&2){let e=f(2);p(9),m("ngForOf",e.formEntries.controls)}}function eW(t,o){t&1&&(c(0,"span"),g(1," Affidavit Title is required "),d())}function tW(t,o){t&1&&(c(0,"span"),g(1," Affidavit Title is too short "),d())}function nW(t,o){if(t&1&&(c(0,"div",98),_(1,eW,2,0,"span",103)(2,tW,2,0,"span",103),d()),t&2){let e=f(3);p(),m("ngIf",e.applicationFormControl.affidavit_type_name.errors==null?null:e.applicationFormControl.affidavit_type_name.errors.required),p(),m("ngIf",e.applicationFormControl.affidavit_type_name.errors==null?null:e.applicationFormControl.affidavit_type_name.errors.minlength)}}function iW(t,o){if(t&1&&(c(0,"div",121),v(1,"textarea",122),d()),t&2){let e=f().index;p(),m("formControlName",e)}}function oW(t,o){if(t&1&&(c(0,"div",123),v(1,"p-editor",124),d()),t&2){let e=f().index,n=f(3);p(),m("formControlName",e)("modules",n.editorModules)}}function rW(t,o){if(t&1){let e=D();B(0),c(1,"div",112)(2,"div",113)(3,"label",114)(4,"span"),g(5,"Clause "),c(6,"span",26),g(7,"*"),d()(),c(8,"span",115),g(9),d()(),c(10,"div",116)(11,"button",117),I("click",function(){let i=C(e).index,r=f(3);return y(r.onAddClause(i))}),d(),c(12,"button",118),I("click",function(){let i=C(e).index,r=f(3);return y(r.onRemoveClause(i))}),d()()(),c(13,"div",119),_(14,iW,2,1,"div",120)(15,oW,2,2,"ng-template",null,4,je),d()(),z()}if(t&2){let e=o.index,n=de(16),i=f(3);p(9),k(e+1),p(5),m("ngIf",i.isSmallScreen)("ngIfElse",n)}}function aW(t,o){if(t&1&&(c(0,"div",106)(1,"div",18)(2,"h3"),v(3,"i",107),g(4," Clauses Information"),d(),c(5,"p"),g(6,"Define the specific clauses and content of your affidavit"),d()(),c(7,"div",20)(8,"div",108)(9,"label",109),g(10," General Affidavit Title "),c(11,"span",26),g(12,"*"),d()(),v(13,"input",110),_(14,nW,3,2,"div",28),d(),c(15,"div",111),_(16,rW,17,3,"ng-container",102),d()()()),t&2){let e=f(2);p(13),$e("is-invalid",e.applicationFormControl.affidavit_type_name.invalid&&e.applicationFormControl.affidavit_type_name.touched),p(),m("ngIf",e.applicationFormControl.affidavit_type_name.invalid&&e.applicationFormControl.affidavit_type_name.touched),p(2),m("ngForOf",e.clauseEntriesControl.controls)}}function sW(t,o){t&1&&(c(0,"div",98),g(1," Applicant Email is required "),d())}function lW(t,o){t&1&&(c(0,"div",98),g(1," Please enter a valid Email Address "),d())}function cW(t,o){t&1&&(c(0,"div",98),g(1," Applicant Phone Number is required "),d())}function dW(t,o){t&1&&(c(0,"div",98),g(1," Please enter a valid phone number (local or international) "),d())}function pW(t,o){t&1&&(c(0,"div",98),g(1," Preferred Court is required "),d())}function uW(t,o){if(t&1){let e=D();c(0,"div",15)(1,"form",16)(2,"div",17)(3,"div",18)(4,"h3"),v(5,"i",19),g(6," Personal Information"),d(),c(7,"p"),g(8,"Provide your personal details and identification information"),d()(),c(9,"div",20),_(10,DG,18,3,"div",21)(11,NG,13,3,"div",22),c(12,"div",23)(13,"div",24)(14,"label",25),g(15,"Deponent Name "),c(16,"span",26),g(17,"*"),d()(),v(18,"input",27),_(19,BG,2,0,"div",28),d(),c(20,"div",24)(21,"label",29),g(22,"Deponent NIN "),c(23,"span",26),g(24,"*"),d()(),c(25,"input",30),I("input",function(i){C(e);let r=f();return y(r.onInput(i))}),d(),_(26,zG,2,0,"div",28)(27,HG,2,0,"div",28)(28,jG,2,0,"div",28),d(),c(29,"div",24)(30,"label",31),g(31,"Gender "),c(32,"span",26),g(33,"*"),d()(),c(34,"p-dropdown",32),I("onChange",function(i){C(e);let r=f();return y(r.closeDropdown(i))}),d(),_(35,UG,2,0,"div",28),d(),c(36,"div",24)(37,"label",33),g(38,"Native Town "),c(39,"span",26),g(40,"*"),d()(),v(41,"input",34),_(42,qG,2,0,"div",28),d(),c(43,"div",24)(44,"label",35),g(45,"Country of Origin "),c(46,"span",26),g(47,"*"),d()(),c(48,"p-dropdown",36),I("onChange",function(i){C(e);let r=f();return y(r.closeDropdown(i))}),d(),_(49,QG,2,0,"div",28),d(),c(50,"div",24)(51,"label",37),g(52,"State of Origin "),c(53,"span",26),g(54,"*"),d()(),c(55,"p-dropdown",38),I("onChange",function(i){C(e);let r=f();return y(r.closeDropdown(i))}),d(),_(56,GG,2,0,"div",28),d(),c(57,"div",24)(58,"label",39),g(59,"Place of Residence "),c(60,"span",26),g(61,"*"),d()(),v(62,"input",40),_(63,WG,2,0,"div",28),d(),c(64,"div",24)(65,"label",41),g(66,"Occupation "),c(67,"span",26),g(68,"*"),d()(),v(69,"input",42),_(70,KG,2,0,"div",28),d(),c(71,"div",24)(72,"label",43),g(73,"Religion "),c(74,"span",26),g(75,"*"),d()(),c(76,"p-dropdown",44),I("onChange",function(i){C(e);let r=f();return y(r.closeDropdown(i))}),d(),_(77,YG,2,0,"div",28),d()()()(),_(78,$G,10,1,"div",45)(79,aW,17,4,"div",46),c(80,"div",47)(81,"div",18)(82,"h3"),v(83,"i",48),g(84," Additional Information"),d(),c(85,"p"),g(86,"Provide contact details and court preferences"),d()(),c(87,"div",20)(88,"div",23)(89,"div",24)(90,"label",49),g(91,"Applicant Email "),c(92,"span",26),g(93,"*"),d()(),v(94,"input",50),_(95,sW,2,0,"div",28)(96,lW,2,0,"div",28),d(),c(97,"div",24)(98,"label",51),g(99,"Applicant Phone Number "),c(100,"span",26),g(101,"*"),d()(),v(102,"input",52),_(103,cW,2,0,"div",28)(104,dW,2,0,"div",28),d(),c(105,"div",24)(106,"label",53),g(107,"Preferred Court "),c(108,"span",26),g(109,"*"),d()(),c(110,"p-dropdown",54),I("onChange",function(i){C(e);let r=f();return y(r.closeDropdown(i))}),d(),_(111,pW,2,0,"div",28),d(),c(112,"div",55),v(113,"hr",56),d(),c(114,"div",57)(115,"div",58)(116,"button",59),I("click",function(){C(e);let i=f();return y(i.goBack())}),d(),c(117,"button",60),I("click",function(){C(e);let i=f();return y(i.processForm())}),d()()()()()()()()}if(t&2){let e=f();p(),m("formGroup",e.applicationForm),p(9),m("ngIf",(e.affidavitAppSetting==null?null:e.affidavitAppSetting.allow_passport_photo)||(e.affidavitAppSetting==null?null:e.affidavitAppSetting.allow_signature)),p(),m("ngIf",e.cameraEnabled||e.cameraEnabled1),p(8),m("ngIf",(e.applicationFormControl.deponent_name.errors==null?null:e.applicationFormControl.deponent_name.errors.required)&&e.applicationFormControl.deponent_name.touched),p(7),m("ngIf",(e.applicationFormControl.deponent_nin.errors==null?null:e.applicationFormControl.deponent_nin.errors.required)&&e.applicationFormControl.deponent_nin.touched),p(),m("ngIf",(e.applicationFormControl.deponent_nin.errors==null?null:e.applicationFormControl.deponent_nin.errors.minlength)&&e.applicationFormControl.deponent_nin.touched),p(),m("ngIf",!e.isNINValidated&&e.applicationFormControl.deponent_nin.touched),p(6),m("options",e.genders)("showClear",!0),p(),m("ngIf",(e.applicationFormControl.gender.errors==null?null:e.applicationFormControl.gender.errors.required)&&e.applicationFormControl.gender.touched),p(7),m("ngIf",(e.applicationFormControl.town_native.errors==null?null:e.applicationFormControl.town_native.errors.required)&&e.applicationFormControl.town_native.touched),p(6),m("options",e.geoCountry)("showClear",!0)("filter",!0),p(),m("ngIf",(e.applicationFormControl.originCountry.errors==null?null:e.applicationFormControl.originCountry.errors.required)&&e.applicationFormControl.originCountry.touched),p(6),m("options",e.getStates)("showClear",!0)("filter",!0),p(),m("ngIf",(e.applicationFormControl.originState.errors==null?null:e.applicationFormControl.originState.errors.required)&&e.applicationFormControl.originState.touched),p(7),m("ngIf",(e.applicationFormControl.town_resident.errors==null?null:e.applicationFormControl.town_resident.errors.required)&&e.applicationFormControl.town_resident.touched),p(7),m("ngIf",(e.applicationFormControl.occupation.errors==null?null:e.applicationFormControl.occupation.errors.required)&&e.applicationFormControl.occupation.touched),p(6),m("options",e.religions)("showClear",!0),p(),m("ngIf",(e.applicationFormControl.religion.errors==null?null:e.applicationFormControl.religion.errors.required)&&e.applicationFormControl.religion.touched),p(),m("ngIf",e.showAffidavitInformationForm),p(),m("ngIf",e.canShowClausesForm),p(16),m("ngIf",(e.applicationFormControl.applicant_email.errors==null?null:e.applicationFormControl.applicant_email.errors.required)&&e.applicationFormControl.applicant_email.touched),p(),m("ngIf",(e.applicationFormControl.applicant_email.errors==null?null:e.applicationFormControl.applicant_email.errors.pattern)&&e.applicationFormControl.applicant_email.touched),p(7),m("ngIf",(e.applicationFormControl.applicant_phone.errors==null?null:e.applicationFormControl.applicant_phone.errors.required)&&e.applicationFormControl.applicant_phone.touched),p(),m("ngIf",e.applicationFormControl.applicant_phone.errors==null?null:e.applicationFormControl.applicant_phone.errors.pattern),p(6),m("options",e.courts)("showClear",!0),p(),m("ngIf",(e.applicationFormControl.court.errors==null?null:e.applicationFormControl.court.errors.required)&&e.applicationFormControl.court.touched),p(6),m("disabled",!e.canSubmitApplicationForm)}}function mW(t,o){if(t&1&&(c(0,"div",155)(1,"div",156),v(2,"i",138),g(3),d(),v(4,"div",157),d()),t&2){let e=o.$implicit,n=o.index,i=f(3);p(3),se(" Clause ",n+1,": "),p(),m("innerHtml",i.sanitizer.bypassSecurityTrustHtml(e),Ci)}}function fW(t,o){if(t&1&&(c(0,"div",153),_(1,mW,5,2,"div",154),d()),t&2){let e=f(2);p(),m("ngForOf",e.clauses)}}function hW(t,o){if(t&1&&(c(0,"div",159)(1,"div",160),v(2,"i",138),g(3),d(),c(4,"span",161),g(5),d()()),t&2){let e=f().$implicit;p(3),se(" ",e.label," "),p(2),k(e.provided_value)}}function gW(t,o){if(t&1&&(B(0),_(1,hW,6,2,"div",158),z()),t&2){let e=o.$implicit;p(),m("ngIf",e.is_calculated==!1)}}function AW(t,o){t&1&&(c(0,"span",162),g(1,"Not Provided"),d())}function _W(t,o){if(t&1&&v(0,"img",163),t&2){let e=f(2);m("src",e.uploadedPassportImage,Ae)}}function vW(t,o){t&1&&(c(0,"span",162),g(1,"Not Provided"),d())}function bW(t,o){if(t&1&&v(0,"img",164),t&2){let e=f(2);m("src",e.uploadedSignatureImage,Ae)}}function CW(t,o){t&1&&(c(0,"span",162),g(1,"Not Provided"),d())}function yW(t,o){if(t&1&&v(0,"img",165),t&2){let e=f(2);m("src",e.uploadedIDCard,Ae)}}function xW(t,o){if(t&1){let e=D();c(0,"div",125)(1,"div",126)(2,"div",18)(3,"h3"),v(4,"i",19),g(5," General Information"),d(),c(6,"p"),g(7,"Review your personal details and identification"),d()(),c(8,"div",127)(9,"div",128)(10,"div",129)(11,"div",130),v(12,"i",19),g(13," Deponent Name: "),d(),c(14,"span",131),g(15),d()(),c(16,"div",129)(17,"div",130),v(18,"i",132),g(19," Deponent NIN: "),d(),c(20,"span",131),g(21),d()(),c(22,"div",129)(23,"div",130),v(24,"i",133),g(25," Native Town: "),d(),c(26,"span",131),g(27),d()(),c(28,"div",129)(29,"div",130),v(30,"i",134),g(31," Country of Origin: "),d(),c(32,"span",131),g(33),d()(),c(34,"div",129)(35,"div",130),v(36,"i",135),g(37," State of Origin: "),d(),c(38,"span",131),g(39),d()(),c(40,"div",129)(41,"div",130),v(42,"i",136),g(43," Place of Residence: "),d(),c(44,"span",131),g(45),d()(),c(46,"div",129)(47,"div",130),v(48,"i",137),g(49," Occupation: "),d(),c(50,"span",131),g(51),d()(),c(52,"div",129)(53,"div",130),v(54,"i",19),g(55," Gender: "),d(),c(56,"span",131),g(57),d()(),c(58,"div",129)(59,"div",130),v(60,"i",138),g(61," Religion: "),d(),c(62,"span",131),g(63),d()()()()(),c(64,"div",126)(65,"div",18)(66,"h3"),v(67,"i",100),g(68," Affidavit Information"),d(),c(69,"p"),g(70,"Review your affidavit details and clauses"),d()(),c(71,"div",127)(72,"h4",139),g(73),d(),_(74,fW,2,1,"div",140),c(75,"div",141),_(76,gW,2,1,"ng-container",102),d()()(),c(77,"div",126)(78,"div",18)(79,"h3"),v(80,"i",142),g(81," Client Information"),d(),c(82,"p"),g(83,"Review your contact details and preferences"),d()(),c(84,"div",127)(85,"div",128)(86,"div",129)(87,"div",130),v(88,"i",143),g(89," Applicant's E-mail: "),d(),c(90,"span",131),g(91),d()(),c(92,"div",129)(93,"div",130),v(94,"i",144),g(95," Applicant's Phone Number: "),d(),c(96,"span",131),g(97),d()()()()(),c(98,"div",126)(99,"div",18)(100,"h3"),v(101,"i",48),g(102," Additional Information"),d(),c(103,"p"),g(104,"Review your uploaded documents and court preferences"),d()(),c(105,"div",127)(106,"div",128)(107,"div",129)(108,"div",130),v(109,"i",145),g(110," Client Passport Image: "),d(),c(111,"div",131),_(112,AW,2,0,"span",146)(113,_W,1,1,"img",147),d()(),c(114,"div",129)(115,"div",130),v(116,"i",145),g(117," Client Signature Photo: "),d(),c(118,"div",131),_(119,vW,2,0,"span",146)(120,bW,1,1,"img",148),d()(),c(121,"div",129)(122,"div",130),v(123,"i",145),g(124," Customer ID Card: "),d(),c(125,"div",131),_(126,CW,2,0,"span",146)(127,yW,1,1,"img",149),d()(),c(128,"div",129)(129,"div",130),v(130,"i",133),g(131," Preferred Court: "),d(),c(132,"span",131),g(133),d()(),c(134,"div",55),v(135,"hr",56),d(),c(136,"div",150)(137,"div",58)(138,"button",151),I("click",function(){C(e);let i=f();return y(i.showApplicationForm())}),d(),c(139,"button",152),I("click",function(){C(e);let i=f();return y(i.goToPreview())}),d()()()()()()()}if(t&2){let e=f();p(15),k(e.dataPayload.deponent_name),p(6),k(e.dataPayload.deponent_nin),p(6),k(e.dataPayload.town_native),p(6),k(e.selectedCountry),p(6),k(e.selectedState),p(6),k(e.dataPayload.town_resident),p(6),k(e.dataPayload.occupation),p(6),k(e.dataPayload.gender),p(6),k(e.dataPayload.religion),p(10),k(e.affidavitTemplate==null?null:e.affidavitTemplate.name),p(),m("ngIf",e.affidavitTemplate==null?null:e.affidavitTemplate.is_clauses_editable),p(2),m("ngForOf",e.dataPayload==null?null:e.dataPayload.formEntries),p(15),k(e.dataPayload.applicant_email),p(6),k(e.dataPayload.applicant_phone),p(15),m("ngIf",!e.uploadedPassportImage),p(),m("ngIf",e.uploadedPassportImage),p(6),m("ngIf",!e.uploadedSignatureImage),p(),m("ngIf",e.uploadedSignatureImage),p(6),m("ngIf",!e.uploadedIDCard),p(),m("ngIf",e.uploadedIDCard),p(6),k(e.courtName),p(5),m("disabled",e.is_loading),p(),m("disabled",!e.canSubmitApplicationForm||e.is_loading)("label",e.is_loading?"Submiting . . .":"Submit Application")}}var IM=(()=>{class t{constructor(e,n,i,r,a,s,l,u,h,A,b,x){this.fb=e,this.affidavitApplicationEndpoint=n,this.countryEndpoint=i,this.stateEndpoint=r,this.CourtEndPoint=a,this.affidavitTemplateEndpoint=s,this.affidavitApplicationSettingsEndpoint=l,this.appNotificationService=u,this.logger=h,this.affidavitPageStore=A,this.cameraService=b,this.sanitizer=x,this.toggle=new V,this.text="",this.isSmallScreen=!1,this.iconsOnly=!1,this.iconsOnly1=!1,this.editorModules={toolbar:[[{header:"1"},{header:"2"}],[{list:"ordered"},{list:"bullet"}],[{align:[]}],["bold","italic","underline"]]},this.no_of_clauses=me.No_Of_Clauses,this.genders=da,this.religions=pa,this.geoCountry=[],this._geoStates=[],this.getStates=[],this.courts=[],this.no_image="data:image/png;base64,"+pt.no_image,this.selectedState="",this.uploadedPassportImage="data:image/png;base64,"+pt.no_image,this.uploadedSignatureImage="data:image/png;base64,"+pt.no_image,this.uploadedIDCard="data:image/png;base64,"+pt.no_image,this.displayForm=!0,this.shouldDisplayAffidavitSection=!0,this.selectedCountry="",this.apiMode="development",this.clauses=[],this.canSubmitApplicationForm=!1,this.canShowApplicationForm=!0,this.canShowClausesForm=!1,this.canShowConfirmationForm=!1,this.showAffidavitInformationForm=!1,this.formEntriesMap=new Map,this.passportPhotoFile=null,this.signatureFile=null,this.idCardPhotoFile=null,this.is_loading=!1,this.cameraEnabled=!1,this.cameraStarted=!1,this.cameraEnabled1=!1,this.cameraStarted1=!1,this.isCapturing=!1,this.hasUploadedPhoto=!1,this.videoInputs=[],this.applicationForm=this.fb.group({affidavit_type_name:this.fb.control(null,[K.required,K.minLength(3),K.maxLength(128)]),deponent_name:this.fb.control(null,[K.required,K.minLength(3)]),deponent_nin:this.fb.control(null,[K.required,K.pattern("^[0-9]*$"),K.minLength(11),K.maxLength(11)]),town_native:this.fb.control(null,[K.required,K.minLength(3)]),town_resident:this.fb.control(null,[K.required,K.minLength(3)]),originCountry:this.fb.control(null,[K.required,K.minLength(3)]),originState:this.fb.control(null,[K.required,K.minLength(3)]),occupation:this.fb.control(null,[K.required,K.minLength(3)]),gender:this.fb.control(null,[K.required,K.minLength(3)]),religion:this.fb.control(null,[K.required,K.minLength(3)]),applicant_email:this.fb.control(null),applicant_phone:this.fb.control(null),court:this.fb.control(null,K.required),formEntries:this.fb.array([]),clauseEntries:this.fb.array([])})}ngOnInit(){this.affidavitPageStore.startLoading("Loading Data..."),this.affidavitPageStore.id$.subscribe({next:e=>{this.affidavitTemplateEndpoint.single(e).subscribe({next:n=>{this.affidavitTemplate=n.data,this.showAffidavitInformationForm=(this.affidavitTemplate?.placeholders?.length||0)>0&&this.affidavitTemplate?.is_clauses_editable!=!0,this.loadFormEntries()},error:n=>{this.appNotificationService.showError({title:n.error,detail:n.message})},complete:()=>{}})}}),this.affidavitPageStore.payload$.subscribe({next:e=>{console.log("Payload received: ",e),e&&this.prePopulateForm(e)}}),this.countryEndpoint.list().subscribe({next:e=>this.geoCountry=e.data,error:e=>this.logger.log(e)}),this.stateEndpoint.list().subscribe({next:e=>{this._geoStates=e.data,this.affidavitPageStore.stopLoading()},error:e=>{this.appNotificationService.showError({title:e.error,detail:e.message}),this.affidavitPageStore.stopLoading()}}),this.affidavitApplicationSettingsEndpoint.single(1).subscribe({next:e=>this.affidavitAppSetting=e.data,error:e=>{this.appNotificationService.showError({title:e.error,detail:e.message})}}),this.CourtEndPoint.list().subscribe({next:e=>this.courts=e.data,error:e=>{this.appNotificationService.showError({title:e.error,detail:e.message})}}),this.applicationForm.statusChanges.subscribe({next:e=>{this.canSubmitApplicationForm=e==="VALID"}}),this.applicationFormControl.originCountry.valueChanges.subscribe({next:e=>{this.getStates=this._geoStates.filter(n=>n.country_id===e),this.selectedCountry=this.geoCountry.find(n=>n.id===e)?.name??"",this.applicationFormControl.originState.reset(null)}}),this.applicationFormControl.originState.valueChanges.subscribe({next:e=>{this.selectedState=this.getStates.find(n=>n.id===e)?.name??"",this.applicationFormControl.originLga.reset(null)}}),this.onResize(null)}goBack(){}loadFormEntries(){this.formEntries.clear(),this.clauseEntriesControl.clear(),this.canShowClausesForm=!1,this.affidavitTemplate?.placeholders.forEach((e,n)=>{this.formEntriesMap.set(n,e);let i=e.is_required?[K.required]:[];this.formEntries.push(this.fb.control(null,i))}),this.affidavitTemplate?.is_clauses_editable?(this.clauseEntriesControl.push(this.createClause()),this.canShowClausesForm=!0):this.applicationForm.patchValue({affidavit_type_name:this.affidavitTemplate?.name})}createClause(){return this.fb.control("",[K.required,K.maxLength(1e3)])}get applicationFormControl(){return this.applicationForm.controls}get formEntries(){return this.applicationForm.controls.formEntries}showConfirmationForm(){this.displayForm=!1}showApplicationForm(){this.displayForm=!0}get clauseEntriesControl(){return this.applicationForm.controls.clauseEntries}onAddClause(e){if(this.clauseEntriesControl.length>=this.no_of_clauses){this.appNotificationService.showInfo({title:"Information",detail:`You can only supply a maximum of ${this.no_of_clauses} clauses!`});return}this.clauseEntriesControl.insert(e+1,this.createClause())}getFormEntriesRecordByIndex(e){return this.formEntriesMap.get(e)}onRemoveClause(e){if(this.clauseEntriesControl.length>1){this.clauseEntriesControl.removeAt(e);return}this.appNotificationService.showInfo({title:"Information",detail:"You must have at least one clause available"})}get courtName(){return this.courts.find(i=>i.id===this.applicationFormControl.court.value)?.name}processForm(){if(!this.applicationForm.valid){this.appNotificationService.showInfo({title:"Information!",detail:"Please complete the required fields and try again."});return}if(this.affidavitAppSetting?.allow_passport_photo&&!this.passportPhotoFile||this.affidavitAppSetting?.allow_signature&&!this.signatureFile){this.appNotificationService.showInfo({title:"Information!",detail:"Please make sure to upload both the Passport and Signature!"});return}this.dataPayload={affidavit_type_name:this.applicationFormControl.affidavit_type_name.value,deponent_name:this.applicationFormControl.deponent_name.value,deponent_nin:this.applicationFormControl.deponent_nin.value,town_native:this.applicationFormControl.town_native.value,town_resident:this.applicationFormControl.town_resident.value,state_id:this.applicationFormControl.originState.value,occupation:this.applicationFormControl.occupation.value,gender:this.applicationFormControl.gender.value,religion:this.applicationFormControl.religion.value,court_id:this.applicationFormControl.court.value,applicant_email:this.applicationFormControl.applicant_email.value,applicant_phone:this.applicationFormControl.applicant_phone.value,affidavit_template_id:this.affidavitTemplate?.id,passport_photo_file:this.uploadedPassportImage??"",signature_file:this.uploadedSignatureImage??"",identity_photo_file:this.uploadedIDCard??"",client_ref:"",formEntries:[],clauseEntries:[]};let e=this.formEntries.value;this.affidavitTemplate?.is_clauses_editable||this.formEntriesMap.forEach((n,i)=>{this.dataPayload?.formEntries.push({label:n.label,placeholder:n.placeholder,provided_value:e[i],parent_placeholder:n.parent_placeholder,is_calculated:n.is_calculated,format:n.format,input_type:n.input_type})}),this.shouldDisplayAffidavitSection=this.dataPayload?.formEntries?.length>0,setTimeout(()=>this.showConfirmationForm(),250)}goToPreview(){window.scrollTo({top:0,left:0,behavior:"smooth"}),this.is_loading=!0,this.affidavitPageStore.startLoading("Saving Data . . ."),this.affidavitApplicationEndpoint.create(this.dataPayload).subscribe({next:e=>{this.affidavitPageStore.setRefNo(e.data.ref_no),this.affidavitPageStore.toggle("application-detail"),this.affidavitPageStore.stopLoading(),this.is_loading=!1,this.appNotificationService.showSuccess({title:"Success",detail:"Application submitted successfully."})},error:e=>{this.is_loading=!1,this.appNotificationService.showError({title:"Error",detail:e.error.message}),this.affidavitPageStore.stopLoading()},complete:()=>this.is_loading=!1})}capturePhoto(){navigator.mediaDevices.getUserMedia({video:!0}).then(e=>{let n=document.createElement("video");n.srcObject=e,n.play();let i=document.createElement("canvas"),r=i.getContext("2d");n.addEventListener("loadeddata",()=>{i.width=n.videoWidth,i.height=n.videoHeight,r.drawImage(n,0,0,i.width,i.height),this.uploadedPassportImage=i.toDataURL("image/png"),this.uploadedIDCard=i.toDataURL("image/png"),e.getTracks().forEach(a=>a.stop())})}).catch(e=>{console.error("Error accessing the camera: ",e)})}handleFileInputIPassportImage(e){this.uploadedPassportImage="assets/images/loading.gif";let n;if(e instanceof Event){let a=e.target;if(a.files&&a.files.length>0)n=a.files[0];else{console.error("No files found in the input element.");return}}else typeof e=="string"&&e.startsWith("data:image/")?(this.uploadedPassportImage=e,n=this.dataURLtoFile(e,"passport.png")):n=e;let i=n.type,r=new FileReader;i.startsWith("image/")?(r.onload=()=>{this.uploadedPassportImage=r.result,this.handleFileUpload(n,"passport")},r.readAsDataURL(n)):i==="application/pdf"?(this.uploadedPassportImage="assets/images/logo-pdf.png",this.handleFileUpload(n,"passport")):i==="application/msword"||i==="application/vnd.openxmlformats-officedocument.wordprocessingml.document"?(this.uploadedPassportImage="assets/images/logo-doc.jpeg",this.handleFileUpload(n,"passport")):(this.appNotificationService.showWarning({title:"Unsupported File",detail:"Only images, PDF or Word documents are allowed."}),this.uploadedPassportImage="assets/images/noimage.gif",this.passportPhotoFile=null)}handleFileInputSignatureImage(e){this.uploadedSignatureImage="assets/images/loading.gif";let n;if(e instanceof Event){let a=e.target;if(a.files&&a.files.length>0)n=a.files[0];else{console.error("No files found in the input element.");return}}else typeof e=="string"&&e.startsWith("data:image/")?(this.uploadedSignatureImage=e,n=this.dataURLtoFile(e,"signature.png")):n=e;let i=n.type,r=new FileReader;if(i.startsWith("image/"))r.onload=()=>{this.uploadedSignatureImage=r.result,this.handleFileUpload(n,"signature")},r.readAsDataURL(n);else if(i==="application/pdf")this.uploadedSignatureImage="assets/images/logo-pdf.png",this.handleFileUpload(n,"signature");else if(i==="application/msword"||i==="application/vnd.openxmlformats-officedocument.wordprocessingml.document")this.uploadedSignatureImage="assets/images/logo-doc.jpeg",this.handleFileUpload(n,"signature");else{this.appNotificationService.showWarning({title:"Unsupported File",detail:"Only images, PDF or Word documents are allowed."}),this.uploadedSignatureImage="assets/images/noimage.gif",this.signatureFile=null;return}}handleFileInputIDCard(e){this.uploadedIDCard="assets/images/loading.gif";let n;if(e instanceof Event){let a=e.target;if(a.files&&a.files.length>0)n=a.files[0];else{console.error("No files found in the input element.");return}}else typeof e=="string"&&e.startsWith("data:image/")?(this.uploadedIDCard=e,n=this.dataURLtoFile(e,"id-card.png")):n=e;let i=n.type,r=new FileReader;i.startsWith("image/")?(r.onload=()=>{this.uploadedIDCard=r.result,this.handleFileUpload(n,"id-card")},r.readAsDataURL(n)):i==="application/pdf"?(this.uploadedIDCard="assets/images/logo-pdf.png",this.handleFileUpload(n,"id-card")):i==="application/msword"||i==="application/vnd.openxmlformats-officedocument.wordprocessingml.document"?(this.uploadedIDCard="assets/images/logo-doc.jpeg",this.handleFileUpload(n,"id-card")):(this.appNotificationService.showWarning({title:"Unsupported File",detail:"Only images, PDF or Word documents are allowed."}),this.uploadedIDCard="assets/images/noimage.gif",this.idCardPhotoFile=null)}dataURLtoFile(e,n){let i=e.split(","),r=i[0]?.match(/:(.*?);/),a=r?r[1]:"",s=atob(i[1]),l=s.length,u=new Uint8Array(l);for(;l--;)u[l]=s.charCodeAt(l);return new File([u],n,{type:a})}openCamera(){this.cameraEnabled=!0,this.isCapturing=!1}openCamera1(){this.cameraEnabled1=!0,this.isCapturing=!1}startCamera(){this.cameraStarted=!0,this.cameraService.initCamera(this.videoElement.nativeElement)}startCamera1(){this.cameraStarted1=!0,this.cameraService.initCamera(this.videoElement.nativeElement)}getCamera(){this.cameraService.getCamera(this.videoElement.nativeElement)}switchCamera(){this.cameraService.switchCamera(this.videoElement.nativeElement)}initCamera(){this.cameraService.initCamera(this.videoElement.nativeElement)}captureImage(){this.isCapturing=!0,setTimeout(()=>{let e=this.cameraService.captureImage(this.videoElement.nativeElement);this.handleFileInputIPassportImage(e),this.cameraService.stopCamera(this.videoElement.nativeElement),this.stopCamera(),this.isCapturing=!1},100)}captureImage1(){this.isCapturing=!0,setTimeout(()=>{let e=this.cameraService.captureImage(this.videoElement.nativeElement);this.handleFileInputIDCard(e),this.cameraService.stopCamera(this.videoElement.nativeElement),this.stopCamera(),this.isCapturing=!1},100)}stopCamera(){this.cameraService.stopCamera(this.videoElement.nativeElement),this.cameraEnabled=!1,this.cameraEnabled1=!1,this.cameraStarted=!1,this.cameraStarted1=!1,this.isCapturing=!1}onSignatureSaved(e){this.handleFileInputSignatureImage(e)}handleImageError(e){e.target.src=`data:image/gif;base64,${this.no_image}`}get isNINValidated(){return(this.applicationFormControl.deponent_nin.value+"").length===11}onInput(e){let n=e.target.value;n=n.replace(/\D/g,""),n.length>11&&(n=n.slice(0,11)),this.applicationFormControl.deponent_nin.patchValue(n)}handleFileUpload(e,n){switch(n){case"passport":this.passportPhotoFile=e;break;case"signature":this.signatureFile=e;break;case"id-card":this.idCardPhotoFile=e;break;default:break}}onResize(e){this.isSmallScreen=window.innerWidth<500,this.iconsOnly1=window.innerWidth<450,this.iconsOnly=window.innerWidth<400}closeCamera(){this.stopCamera()}closeDropdown(e){setTimeout(()=>{let n=Array.from(document.querySelectorAll(".p-dropdown-panel")).filter(i=>{let r=window.getComputedStyle(i);return r.display!=="none"&&r.visibility!=="hidden"});if(n.length>0){n[0].style.display="none";let i=document.activeElement;i&&i.classList.contains("p-dropdown")&&i.blur()}},100)}prePopulateForm(e){this.applicationForm.patchValue({affidavit_type_name:e.affidavit_type_name,deponent_name:e.deponent_name,deponent_nin:e.deponent_nin,town_native:e.town_native,town_resident:e.town_resident,originCountry:e?.state?.country?.id,originState:e?.state?.id,occupation:e.occupation,gender:e.gender,religion:e.religion,court:e?.court?.id??1,applicant_email:e.applicant_email??null,applicant_phone:e.applicant_phone??null,passport_photo_file:e?.passport_photo_file_raw,signature_file:e?.signature_file_raw}),this.formEntries.clear(),console.log("Setter Payload: ",e,this.no_image),this.uploadedPassportImage=e?.passport_photo_file&&e?.passport_photo_file!==""?e?.passport_photo_file:this.no_image,this.passportPhotoFile=e?.passport_photo_file&&e?.passport_photo_file!==""?e?.passport_photo_file:null,this.uploadedSignatureImage=e?.signature_file&&e?.signature_file!==""?e?.signature_file:this.no_image,this.signatureFile=e?.signature_file&&e?.signature_file!==""?e?.signature_file:null,this.uploadedIDCard=e?.identity_card_file&&e?.identity_card_file!==""?e?.identity_card_file:this.no_image,this.idCardPhotoFile=e?.identity_card_file&&e?.identity_card_file!==""?e?.identity_card_file:null,console.log("uploadedPassportImage ",this.uploadedPassportImage," passportPhotoFile ",this.passportPhotoFile),console.log("uploadedSignatureImage ",this.uploadedSignatureImage," signatureFile ",this.signatureFile),console.log("`uploadedSignatureImage` ",this.uploadedSignatureImage," signatureFile ",this.signatureFile),console.log("`uploadedIDCard` ",this.uploadedIDCard," idCardPhotoFile ",this.idCardPhotoFile)}static{this.\u0275fac=function(n){return new(n||t)(M(Mi),M(oi),M(ua),M(Jo),M(Xo),M(to),M(Ti),M(Mn),M(Ym),M(Te),M(Zo),M(zi))}}static{this.\u0275cmp=N({type:t,selectors:[["application-clause-form"]],viewQuery:function(n,i){if(n&1&&ae(OG,5),n&2){let r;Q(r=G())&&(i.videoElement=r.first)}},hostBindings:function(n,i){n&1&&I("resize",function(a){return i.onResize(a)},!1,$0)},outputs:{toggle:"toggle"},decls:14,vars:2,consts:[["fileIdCard",""],["filePassportPhoto",""],["fileSignature",""],["videoElement",""],["editor",""],[1,"application-form-container"],[1,"application-form-header"],[1,"header-content"],[1,"application-form-title"],[1,"application-form-subtitle"],[1,"header-actions"],[1,"progress-indicator"],[1,"pi","pi-file-edit"],["class","form-sections",4,"ngIf"],["class","review-sections",4,"ngIf"],[1,"form-sections"],[3,"formGroup"],[1,"form-section","personal-info-section"],[1,"section-header"],[1,"pi","pi-user"],[1,"section-content"],["class","file-upload-container",4,"ngIf"],["class","camera-interface",4,"ngIf"],[1,"form-grid"],[1,"form-field"],["for","deponent_name"],[1,"required"],["id","deponent_name","placeholder","Enter Deponent Name","type","text","formControlName","deponent_name","required","",1,"form-input"],["class","error-message",4,"ngIf"],["for","deponent_nin"],["id","deponent_nin","placeholder","Enter Deponent NIN","type","text","formControlName","deponent_nin","required","",1,"form-input",3,"input"],["for","gender"],["placeholder","Select Gender","formControlName","gender","optionLabel","name","optionValue","name",1,"form-dropdown",3,"onChange","options","showClear"],["for","town_native"],["type","text","placeholder","Enter Native Town","formControlName","town_native","required","",1,"form-input"],["for","originCountry"],["placeholder","Select Country of Origin","formControlName","originCountry","optionLabel","name","optionValue","id",1,"form-dropdown",3,"onChange","options","showClear","filter"],["for","originState"],["placeholder","Select State of Origin","formControlName","originState","optionLabel","name","optionValue","id",1,"form-dropdown",3,"onChange","options","showClear","filter"],["for","town_resident"],["type","text","placeholder","e.g No. 7B Gambia street, Garki","formControlName","town_resident","required","",1,"form-input"],["for","occupation"],["type","text","placeholder","e.g Software Developer, Student","formControlName","occupation","required","",1,"form-input"],["for","religion"],["placeholder","Select Religion","formControlName","religion","optionLabel","name","optionValue","name",1,"form-dropdown",3,"onChange","options","showClear"],["class","form-section affidavit-info-section",4,"ngIf"],["class","form-section clauses-section",4,"ngIf"],[1,"form-section","additional-info-section"],[1,"pi","pi-info-circle"],["for","applicant_email"],["id","applicant_email","placeholder","Enter Applicant Email","type","email","formControlName","applicant_email","required","",1,"form-input"],["for","applicant_phone"],["type","text","placeholder","Enter Applicant Phone Number","formControlName","applicant_phone","required","",1,"form-input"],["for","court"],["placeholder","Select Court","formControlName","court","optionLabel","name","optionValue","id",1,"form-dropdown",3,"onChange","options","showClear"],[1,"divider-with-label","m-0","p-0","w-full",2,"grid-column","1 / -1"],[1,"form-divider","w-full"],[1,"form-actions","w-full","flex","mt-0","p-0",2,"grid-column","1 / -1"],[1,"action-buttons","ml-auto","flex","gap-2"],["pButton","","type","button","icon","pi pi-arrow-left","label","Previous",1,"review-btn",3,"click"],["pButton","","icon","pi pi-save","type","button","label","Preview",1,"submit-btn",3,"click","disabled"],[1,"file-upload-container"],[1,"upload-grid"],["class","upload-card",4,"ngIf"],[1,"upload-card"],[1,"upload-header"],[1,"pi","pi-id-card"],[1,"upload-content"],["alt","ID Card",1,"uploaded-image",3,"src"],[1,"upload-actions"],["pButton","","pRipple","","icon","pi pi-upload","label","Upload",1,"upload-btn","primary",3,"click"],["pButton","","pRipple","","icon","pi pi-camera","label","Camera",1,"upload-btn","secondary",3,"click"],["type","file","name","ApplicantIdCardUpload","id","ApplicantIdCardUpload","hidden","","accept","image/*",3,"change"],[1,"pi","pi-image"],["alt","Passport Photo",1,"uploaded-image",3,"src"],["type","file","name","ApplicantPassportUpload","id","ApplicantPassportUpload","hidden","","accept","image/*",3,"change"],[1,"pi","pi-pencil"],["alt","Signature",1,"uploaded-image",3,"src"],["type","file","name","ApplicantSigantureUpload","id","ApplicantSigantureUpload","hidden","","accept","image/*",3,"change"],[1,"camera-interface"],[1,"camera-container"],[1,"camera-header"],["title","Close Camera",1,"camera-close-btn",3,"click"],[1,"pi","pi-times"],[1,"camera-video"],[1,"camera-controls"],["class","camera-btn start",3,"click",4,"ngIf"],["class","camera-btn capture",3,"disabled","click",4,"ngIf"],["class","camera-btn switch",3,"click",4,"ngIf"],[1,"camera-btn","start",3,"click"],[1,"pi","pi-play"],[1,"camera-btn","capture",3,"click","disabled"],["class","pi pi-camera",4,"ngIf"],["class","pi pi-spin pi-spinner",4,"ngIf"],[1,"pi","pi-camera"],[1,"pi","pi-spin","pi-spinner"],[1,"camera-btn","switch",3,"click"],[1,"pi","pi-refresh"],[1,"error-message"],[1,"form-section","affidavit-info-section"],[1,"pi","pi-file-text"],["formArrayName","formEntries",1,"form-grid"],[4,"ngFor","ngForOf"],[4,"ngIf"],["class","form-field",4,"ngIf"],[1,"form-input",3,"id","type","formControlName"],[1,"form-section","clauses-section"],[1,"pi","pi-list"],[1,"form-field","full-width"],["for","affidavit_type_name"],["type","text","maxlength","250","id","affidavit_type_name","name","affidavit_type_name","placeholder","Enter Affidavit Title...","formControlName","affidavit_type_name",1,"form-input"],["formArrayName","clauseEntries"],[1,"clause-item"],[1,"clause-header"],["for","clause_entry"],[1,"clause-number"],[1,"clause-actions"],["type","button","pButton","","icon","pi pi-plus","pTooltip","Add Clause","tooltipPosition","top",1,"add-clause-btn",3,"click"],["type","button","pButton","","icon","pi pi-trash","pTooltip","Remove Clause","tooltipPosition","top",1,"remove-clause-btn",3,"click"],[1,"clause-content"],["class","mobile-editor",4,"ngIf","ngIfElse"],[1,"mobile-editor"],["placeholder","That...",1,"clause-textarea",3,"formControlName"],[1,"rich-editor"],["placeholder","That...","required","","id","clause_entry","name","clause_entry",1,"clause-editor",3,"formControlName","modules"],[1,"review-sections"],[1,"review-section"],[1,"review-content"],[1,"review-grid"],[1,"review-item"],[1,"review-label"],[1,"review-value"],[1,"pi","pi-clone"],[1,"pi","pi-map-marker"],[1,"pi","pi-globe"],[1,"pi","pi-map"],[1,"pi","pi-home"],[1,"pi","pi-briefcase"],[1,"pi","pi-circle-fill"],[1,"affidavit-title"],["class","clauses-review",4,"ngIf"],[1,"form-entries-review"],[1,"pi","pi-users"],[1,"pi","pi-envelope"],[1,"pi","pi-phone"],[1,"pi","pi-images"],["class","not-provided",4,"ngIf"],["alt","Passport Photo","class","review-image",3,"src",4,"ngIf"],["alt","Signature","class","review-image",3,"src",4,"ngIf"],["alt","ID Card","class","review-image",3,"src",4,"ngIf"],[1,"form-actions","review-actions","w-full","flex","mt-0","p-0",2,"grid-column","1 / -1"],["pButton","","type","button","icon","pi pi-arrow-left","label","Review",1,"review-btn",3,"click","disabled"],["pButton","","type","button","icon","pi pi-save",1,"submit-btn",3,"click","disabled","label"],[1,"clauses-review"],["class","clause-review-item",4,"ngFor","ngForOf"],[1,"clause-review-item"],[1,"clause-label"],[1,"clause-content",3,"innerHtml"],["class","entry-item",4,"ngIf"],[1,"entry-item"],[1,"entry-label"],[1,"entry-value"],[1,"not-provided"],["alt","Passport Photo",1,"review-image",3,"src"],["alt","Signature",1,"review-image",3,"src"],["alt","ID Card",1,"review-image",3,"src"]],template:function(n,i){n&1&&(c(0,"div",5)(1,"div",6)(2,"div",7)(3,"h1",8),g(4,"Affidavit Application Form"),d(),c(5,"p",9),g(6,"Complete your affidavit application with all required information"),d()(),c(7,"div",10)(8,"div",11),v(9,"i",12),c(10,"span"),g(11,"Form Progress"),d()()()(),_(12,uW,118,34,"div",13)(13,xW,140,24,"div",14),d()),n&2&&(p(12),m("ngIf",i.displayForm),p(),m("ngIf",!i.displayForm))},dependencies:[rt,Ce,wn,Dn,kn,xn,Ui,bo,Fn,Hn,Ii,Lt,Io,I1,In,wt],styles:[".application-form-container[_ngcontent-%COMP%]{padding:0rem .5rem 1rem;background:transparent;min-height:100vh;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.application-form-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;padding:2rem;background:linear-gradient(to left,#000,#0d6449);border-radius:20px;box-shadow:0 20px 40px #0000001a;color:#fff}.header-content[_ngcontent-%COMP%] h1.application-form-title[_ngcontent-%COMP%]{font-size:2.5rem;font-weight:700;margin:0 0 .5rem;color:#fff}.header-content[_ngcontent-%COMP%] .application-form-subtitle[_ngcontent-%COMP%]{font-size:1.1rem;opacity:.9;margin:0;font-weight:400}.header-actions[_ngcontent-%COMP%] .progress-indicator[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;background:#fff3;padding:.75rem 1.5rem;border-radius:25px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.3)}.header-actions[_ngcontent-%COMP%] .progress-indicator[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.1rem;color:#fef3c7}.header-actions[_ngcontent-%COMP%] .progress-indicator[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:.9rem;font-weight:500}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%]{background:#fff;border-radius:20px;padding:2rem;margin-bottom:2rem;box-shadow:0 10px 30px #0000001a;border:1px solid #f1f5f9}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%]{margin-bottom:2rem;padding-bottom:1rem;border-bottom:2px solid #f1f5f9}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:1.5rem;font-weight:600;margin:0 0 .5rem;color:#1f2937;display:flex;align-items:center;gap:.75rem}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#10b981}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#6b7280;margin:0;font-size:1rem}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field.full-width[_ngcontent-%COMP%]{grid-column:1/-1}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;font-weight:600;color:#374151;margin-bottom:.5rem;font-size:.875rem}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%] .required[_ngcontent-%COMP%]{color:#ef4444}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%]{width:100%;padding:.75rem 1rem;border:2px solid #e5e7eb;border-radius:12px;font-size:1rem;color:#1f2937;background:#f9fafb;transition:all .3s ease}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%]:focus{outline:none;border-color:#10b981;background:#fff;box-shadow:0 0 0 3px #10b9811a}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%]::placeholder{color:#9ca3af}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-input.is-invalid[_ngcontent-%COMP%]{border-color:#ef4444}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-dropdown[_ngcontent-%COMP%]{width:100%}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-dropdown[_ngcontent-%COMP%] .p-dropdown{width:100%;border:2px solid #e5e7eb;border-radius:12px;background:#f9fafb;transition:all .3s ease;box-shadow:none}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-dropdown[_ngcontent-%COMP%] .p-dropdown:not(.p-disabled):hover{border-color:#10b981;background:#fff}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-dropdown[_ngcontent-%COMP%] .p-dropdown:not(.p-disabled).p-focus{border-color:#10b981;background:#fff;box-shadow:0 0 0 3px #10b9811a}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-dropdown[_ngcontent-%COMP%] .p-dropdown .p-dropdown-label{padding:.75rem 1rem;color:#1f2937;font-size:.9rem;font-weight:500}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-dropdown[_ngcontent-%COMP%] .p-dropdown .p-dropdown-label.p-placeholder{color:#9ca3af}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-dropdown[_ngcontent-%COMP%] .p-dropdown .p-dropdown-trigger{width:2.5rem;color:#6b7280}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-dropdown[_ngcontent-%COMP%] .p-dropdown .p-dropdown-trigger .p-dropdown-trigger-icon{color:#6b7280;transition:all .3s ease}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-dropdown[_ngcontent-%COMP%] .p-dropdown:hover .p-dropdown-trigger .p-dropdown-trigger-icon{color:#10b981}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-dropdown[_ngcontent-%COMP%] .p-dropdown.p-focus .p-dropdown-trigger .p-dropdown-trigger-icon{color:#10b981;transform:rotate(180deg)}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-dropdown[_ngcontent-%COMP%] .p-dropdown-panel{border:2px solid #e5e7eb;border-radius:12px;box-shadow:0 10px 25px #0000001a;background:#fff;margin-top:.25rem}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-dropdown[_ngcontent-%COMP%] .p-dropdown-panel .p-dropdown-items{padding:.5rem 0}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-dropdown[_ngcontent-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item{padding:.75rem 1rem;color:#374151;font-size:.9rem;font-weight:500;transition:all .2s ease;border-radius:0}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-dropdown[_ngcontent-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item:hover{background:#f1f5f9;color:#10b981}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-dropdown[_ngcontent-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-highlight{background:linear-gradient(135deg,#10b981,#059669);color:#fff}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-dropdown[_ngcontent-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item:focus{background:#f1f5f9;color:#10b981;outline:none}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .error-message[_ngcontent-%COMP%]{color:#ef4444;font-size:.8rem;margin-top:.25rem}.form-sections[_ngcontent-%COMP%] .personal-info-section[_ngcontent-%COMP%], .form-sections[_ngcontent-%COMP%] .affidavit-info-section[_ngcontent-%COMP%]{border-left:5px solid #0d6449}.form-sections[_ngcontent-%COMP%] .affidavit-info-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%]{display:grid!important;grid-template-columns:1fr 1fr!important;gap:1.5rem}@media (max-width: 768px){.form-sections[_ngcontent-%COMP%] .affidavit-info-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%]{grid-template-columns:1fr!important}}.form-sections[_ngcontent-%COMP%] .affidavit-info-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .form-field.full-width[_ngcontent-%COMP%]{grid-column:1/-1}.form-sections[_ngcontent-%COMP%] .clauses-section[_ngcontent-%COMP%], .form-sections[_ngcontent-%COMP%] .additional-info-section[_ngcontent-%COMP%]{border-left:5px solid #0d6449}.file-upload-container[_ngcontent-%COMP%]{margin-bottom:2rem}.file-upload-container[_ngcontent-%COMP%] .upload-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%]{background:#f8fafc;border:2px dashed #d1d5db;border-radius:16px;padding:1.5rem;text-align:center;transition:all .3s ease}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%]:hover{border-color:#10b981;background:#d1fae5}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-header[_ngcontent-%COMP%]{margin-bottom:1rem}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-header[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:2rem;color:#10b981;margin-bottom:.5rem;display:block}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-header[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:1.1rem;font-weight:600;margin:0 0 .25rem;color:#374151}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-header[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{color:#6b7280;font-size:.8rem}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:center}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .uploaded-image[_ngcontent-%COMP%]{width:120px;height:120px;object-fit:cover;border-radius:16px;margin:0 auto 1rem;border:3px solid #e5e7eb;display:block;transition:all .3s ease;box-shadow:0 4px 12px #0000001a}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .uploaded-image[_ngcontent-%COMP%]:hover{transform:scale(1.05);border-color:#10b981;box-shadow:0 8px 25px #10b98133}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;justify-content:center}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%] .upload-btn[_ngcontent-%COMP%]{padding:.5rem 1rem;border-radius:8px;font-size:.875rem;transition:all .3s ease}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%] .upload-btn.primary[_ngcontent-%COMP%]{background:linear-gradient(135deg,#10b981,#059669);border:none;color:#fff}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%] .upload-btn.primary[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 6px 15px #10b9814d}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%] .upload-btn.secondary[_ngcontent-%COMP%]{background:transparent;border:1px solid #d1d5db;color:#6b7280}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%] .upload-btn.secondary[_ngcontent-%COMP%]:hover{background:#f3f4f6;border-color:#9ca3af}.camera-interface[_ngcontent-%COMP%]{margin-bottom:2rem}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%]{background:#f8fafc;border-radius:16px;padding:1.5rem;text-align:center;position:relative}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid #e5e7eb}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-header[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin:0;color:#374151;font-size:1.1rem;font-weight:600}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-header[_ngcontent-%COMP%] .camera-close-btn[_ngcontent-%COMP%]{background:#ef4444;border:none;color:#fff;width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .3s ease;font-size:.9rem}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-header[_ngcontent-%COMP%] .camera-close-btn[_ngcontent-%COMP%]:hover{background:#dc2626;transform:scale(1.1);box-shadow:0 4px 12px #ef44444d}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-header[_ngcontent-%COMP%] .camera-close-btn[_ngcontent-%COMP%]:active{transform:scale(.95)}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-video[_ngcontent-%COMP%]{width:100%;max-width:500px;height:300px;border-radius:12px;margin-bottom:1rem;border:2px solid #e5e7eb}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%]{display:flex;gap:.75rem;justify-content:center;flex-wrap:wrap}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn[_ngcontent-%COMP%]{padding:.75rem 1.5rem;border-radius:10px;font-weight:600;transition:all .3s ease;border:none;cursor:pointer}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.start[_ngcontent-%COMP%]{background:linear-gradient(135deg,#10b981,#059669);color:#fff}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.start[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 6px 15px #10b9814d}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.capture[_ngcontent-%COMP%]{background:linear-gradient(135deg,#6366f1,#4f46e5);color:#fff}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.capture[_ngcontent-%COMP%]:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 15px #6366f14d}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.capture[_ngcontent-%COMP%]:disabled{background:#9ca3af;cursor:not-allowed;transform:none;box-shadow:none;opacity:.7}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.switch[_ngcontent-%COMP%]{background:transparent;border:1px solid #d1d5db;color:#6b7280}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.switch[_ngcontent-%COMP%]:hover{background:#f3f4f6;border-color:#9ca3af}.clauses-section[_ngcontent-%COMP%] .clause-item[_ngcontent-%COMP%]{background:#f8fafc;border-radius:16px;padding:1.5rem;margin-bottom:1.5rem;border:1px solid #e2e8f0}.clauses-section[_ngcontent-%COMP%] .clause-item[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.clauses-section[_ngcontent-%COMP%] .clause-item[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;font-weight:600;color:#374151;margin:0}.clauses-section[_ngcontent-%COMP%] .clause-item[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] label[_ngcontent-%COMP%] .clause-number[_ngcontent-%COMP%]{background:#10b981;color:#fff;padding:.25rem .5rem;border-radius:6px;font-size:.8rem;font-weight:700}.clauses-section[_ngcontent-%COMP%] .clause-item[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}.clauses-section[_ngcontent-%COMP%] .clause-item[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-actions[_ngcontent-%COMP%] .add-clause-btn[_ngcontent-%COMP%]{background:linear-gradient(135deg,#10b981,#059669);border:none;color:#fff;width:40px;height:40px;border-radius:8px;transition:all .3s ease}.clauses-section[_ngcontent-%COMP%] .clause-item[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-actions[_ngcontent-%COMP%] .add-clause-btn[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 6px 15px #10b9814d}.clauses-section[_ngcontent-%COMP%] .clause-item[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-actions[_ngcontent-%COMP%] .remove-clause-btn[_ngcontent-%COMP%]{background:linear-gradient(135deg,#ef4444,#dc2626);border:none;color:#fff;width:40px;height:40px;border-radius:8px;transition:all .3s ease}.clauses-section[_ngcontent-%COMP%] .clause-item[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-actions[_ngcontent-%COMP%] .remove-clause-btn[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 6px 15px #ef44444d}.clauses-section[_ngcontent-%COMP%] .clause-item[_ngcontent-%COMP%] .clause-content[_ngcontent-%COMP%] .mobile-editor[_ngcontent-%COMP%] .clause-textarea[_ngcontent-%COMP%]{width:100%;min-height:120px;padding:1rem;border:2px solid #e5e7eb;border-radius:12px;font-size:1rem;resize:vertical;transition:all .3s ease}.clauses-section[_ngcontent-%COMP%] .clause-item[_ngcontent-%COMP%] .clause-content[_ngcontent-%COMP%] .mobile-editor[_ngcontent-%COMP%] .clause-textarea[_ngcontent-%COMP%]:focus{outline:none;border-color:#10b981;box-shadow:0 0 0 3px #10b9811a}.clauses-section[_ngcontent-%COMP%] .clause-item[_ngcontent-%COMP%] .clause-content[_ngcontent-%COMP%] .rich-editor[_ngcontent-%COMP%] .clause-editor[_ngcontent-%COMP%]{border:2px solid #e5e7eb;border-radius:12px;overflow:hidden;transition:all .3s ease}.clauses-section[_ngcontent-%COMP%] .clause-item[_ngcontent-%COMP%] .clause-content[_ngcontent-%COMP%] .rich-editor[_ngcontent-%COMP%] .clause-editor[_ngcontent-%COMP%]:focus-within{border-color:#10b981;box-shadow:0 0 0 3px #10b9811a}.form-actions[_ngcontent-%COMP%]{padding:2rem 0;text-align:center}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .previous-btn[_ngcontent-%COMP%], .form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .preview-btn[_ngcontent-%COMP%]{background:#eab308;border:none;color:#fff;padding:.75rem 1.5rem;border-radius:12px;font-weight:600;transition:all .3s ease}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .previous-btn[_ngcontent-%COMP%]:hover, .form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .preview-btn[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 6px 15px #10b9814d}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%]{background:#fff;border-radius:20px;padding:2rem;margin-bottom:2rem;box-shadow:0 10px 30px #0000001a;border:1px solid #f1f5f9}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%]{margin-bottom:2rem;padding-bottom:1rem;border-bottom:2px solid #f1f5f9}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:1.5rem;font-weight:600;margin:0 0 .5rem;color:#1f2937;display:flex;align-items:center;gap:.75rem}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#10b981}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#6b7280;margin:0;font-size:1rem}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .affidavit-title[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:600;color:#1f2937;margin:0 0 1.5rem;padding:1rem;background:#f8fafc;border-radius:12px;border-left:5px solid #0d6449}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .review-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .review-grid[_ngcontent-%COMP%] .review-item[_ngcontent-%COMP%] .review-label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;font-weight:600;color:#10b981;margin-bottom:.5rem;font-size:.875rem}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .review-grid[_ngcontent-%COMP%] .review-item[_ngcontent-%COMP%] .review-label[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .review-grid[_ngcontent-%COMP%] .review-item[_ngcontent-%COMP%] .review-value[_ngcontent-%COMP%]{color:#374151;font-size:1rem;font-weight:500}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .review-grid[_ngcontent-%COMP%] .review-item[_ngcontent-%COMP%] .review-value.not-provided[_ngcontent-%COMP%]{color:#9ca3af;font-style:italic}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .review-grid[_ngcontent-%COMP%] .review-item[_ngcontent-%COMP%] .review-image[_ngcontent-%COMP%]{width:120px;height:120px;object-fit:cover;border-radius:12px;border:2px solid #e5e7eb;transition:all .3s ease;box-shadow:0 4px 12px #0000001a}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .review-grid[_ngcontent-%COMP%] .review-item[_ngcontent-%COMP%] .review-image[_ngcontent-%COMP%]:hover{transform:scale(1.05);border-color:#10b981;box-shadow:0 8px 25px #10b98133}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .clauses-review[_ngcontent-%COMP%] .clause-review-item[_ngcontent-%COMP%]{background:#f8fafc;border-radius:12px;padding:1rem;margin-bottom:1rem;border:1px solid #e2e8f0}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .clauses-review[_ngcontent-%COMP%] .clause-review-item[_ngcontent-%COMP%] .clause-label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;font-weight:600;color:#10b981;margin-bottom:.75rem;font-size:.875rem}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .clauses-review[_ngcontent-%COMP%] .clause-review-item[_ngcontent-%COMP%] .clause-label[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .clauses-review[_ngcontent-%COMP%] .clause-review-item[_ngcontent-%COMP%] .clause-content[_ngcontent-%COMP%]{color:#374151;line-height:1.6}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .form-entries-review[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}@media (max-width: 768px){.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .form-entries-review[_ngcontent-%COMP%]{grid-template-columns:1fr}}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .form-entries-review[_ngcontent-%COMP%] .entry-item[_ngcontent-%COMP%]{background:#f8fafc;border-radius:12px;padding:1rem;border:1px solid #e5e7f0}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .form-entries-review[_ngcontent-%COMP%] .entry-item[_ngcontent-%COMP%] .entry-label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;font-weight:600;color:#10b981;margin-bottom:.5rem;font-size:.875rem}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .form-entries-review[_ngcontent-%COMP%] .entry-item[_ngcontent-%COMP%] .entry-label[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem}.review-sections[_ngcontent-%COMP%] .review-section[_ngcontent-%COMP%] .review-content[_ngcontent-%COMP%] .form-entries-review[_ngcontent-%COMP%] .entry-item[_ngcontent-%COMP%] .entry-value[_ngcontent-%COMP%]{color:#374151;font-size:1rem}.review-sections[_ngcontent-%COMP%] .review-actions[_ngcontent-%COMP%]{background:#fff;border-radius:20px;padding:2rem;text-align:center}.review-sections[_ngcontent-%COMP%] .review-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;gap:1rem;justify-content:flex-end;flex-wrap:wrap}.review-sections[_ngcontent-%COMP%] .review-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .review-btn[_ngcontent-%COMP%]{background:#eab308;border:none;color:#fff;padding:.75rem 1.5rem;border-radius:12px;font-weight:600;transition:all .3s ease}.review-sections[_ngcontent-%COMP%] .review-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .review-btn[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 6px 15px #6366f14d}.review-sections[_ngcontent-%COMP%] .review-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .submit-btn[_ngcontent-%COMP%]{background:linear-gradient(135deg,#10b981,#059669);border:none;color:#fff;padding:.75rem 1.5rem;border-radius:12px;font-weight:600;transition:all .3s ease}.review-sections[_ngcontent-%COMP%] .review-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .submit-btn[_ngcontent-%COMP%]:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 15px #10b9814d}.review-sections[_ngcontent-%COMP%] .review-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .submit-btn[_ngcontent-%COMP%]:disabled{background:#9ca3af;cursor:not-allowed;transform:none;box-shadow:none}@media (max-width: 768px){.application-form-container[_ngcontent-%COMP%]{padding:1rem}.application-form-header[_ngcontent-%COMP%]{flex-direction:column;text-align:center;gap:1rem}.application-form-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .application-form-title[_ngcontent-%COMP%]{font-size:2rem}.application-form-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%] .progress-indicator[_ngcontent-%COMP%]{width:100%;justify-content:center}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%]{padding:1.5rem}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%]{grid-template-columns:1fr;gap:1rem}.form-sections[_ngcontent-%COMP%] .form-section.affidavit-info-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr!important;gap:1.5rem}}@media (max-width: 768px) and (max-width: 768px){.form-sections[_ngcontent-%COMP%] .form-section.affidavit-info-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%]{grid-template-columns:1fr!important}}@media (max-width: 768px){.file-upload-container[_ngcontent-%COMP%] .upload-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.clauses-section[_ngcontent-%COMP%] .clause-item[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%]{flex-direction:column;gap:1rem;align-items:flex-start}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%], .review-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{flex-direction:column;width:100%}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .review-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}}@media (max-width: 480px){.application-form-header[_ngcontent-%COMP%]{padding:1.5rem}.application-form-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .application-form-title[_ngcontent-%COMP%]{font-size:1.75rem}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%]{padding:1rem}}*[_ngcontent-%COMP%]{transition:all .3s cubic-bezier(.4,0,.2,1)}[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#f1f5f9;border-radius:4px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:linear-gradient(135deg,#10b981,#059669);border-radius:4px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:linear-gradient(135deg,#059669,#047857)}"]})}}return t})();function IW(t,o){if(t&1){let e=D();c(0,"select-template",1),I("toggle",function(i){C(e);let r=f();return y(r.toggle(i))}),d()}}function MW(t,o){if(t&1){let e=D();c(0,"application-clause-form",1),I("toggle",function(i){C(e);let r=f();return y(r.toggle(i))}),d()}}var MM=(()=>{class t{constructor(e){this.affidavitPageStore=e,this.applicationRefno="",this.canDisplaySelectTemplate=!0,this.canDisplayForm=!1}ngOnInit(){this.affidavitPageStore.id$.subscribe(e=>{e&&this.toggle("application-clause-form")})}toggle(e){switch(e.toString()){case"select-template":this.cancel(),this.canDisplaySelectTemplate=!0;break;case"application-clause-form":this.cancel(),this.canDisplayForm=!0;break;default:break}}cancel(){this.canDisplaySelectTemplate=!1,this.canDisplayForm=!1}static{this.\u0275fac=function(n){return new(n||t)(M(Te))}}static{this.\u0275cmp=N({type:t,selectors:[["new-affidavit-application-page"]],decls:2,vars:2,consts:[[3,"toggle",4,"ngIf"],[3,"toggle"]],template:function(n,i){n&1&&_(0,IW,1,0,"select-template",0)(1,MW,1,0,"application-clause-form",0),n&2&&(m("ngIf",i.canDisplaySelectTemplate),p(),m("ngIf",i.canDisplayForm))},dependencies:[Ce,xM,IM]})}}return t})();var EW=()=>({width:"68px",height:"68px"});function OW(t,o){if(t&1&&(c(0,"div",2)(1,"section",3)(2,"div",4),v(3,"p-progressSpinner",5),d(),c(4,"h2",6),g(5),d(),c(6,"p",7),g(7," Sit tight \u2014 we\u2019re loading the required services and secure connections. "),d()()()),t&2){let e,n=f();p(3),It(Pe(3,EW)),p(2),se(" ",(e=n.data.loading_label)!==null&&e!==void 0?e:"Loading affidavit workspace\u2026"," ")}}function TW(t,o){if(t&1){let e=D();c(0,"span",20)(1,"img",21),I("click",function(){C(e);let i=f(2);return y(i.goHome())}),d(),c(2,"span",22),g(3,"Federal High Court E-Affidavit"),d()()}if(t&2){let e=f(2);p(),m("src",e.logo,Ae)}}function PW(t,o){t&1&&v(0,"new-affidavit-application-page")}function DW(t,o){t&1&&v(0,"applications-all")}function kW(t,o){if(t&1){let e=D();c(0,"application-detail",23),I("getApplication",function(i){C(e);let r=f(2);return y(r.getApp(i))})("handlePayment",function(i){C(e);let r=f(2);return y(r.handlePaymentCallback(i))}),d()}}function FW(t,o){t&1&&v(0,"affidavit-print")}function RW(t,o){t&1&&v(0,"application-edit")}function VW(t,o){if(t&1&&(c(0,"div",8)(1,"div",9)(2,"div",10)(3,"div",11)(4,"div",12)(5,"div",13)(6,"p-menubar",14),_(7,TW,4,1,"ng-template",15),d()()()(),c(8,"div",16)(9,"div",17),_(10,PW,1,0,"new-affidavit-application-page",18)(11,DW,1,0,"applications-all",18)(12,kW,1,0,"application-detail",19)(13,FW,1,0,"affidavit-print",18)(14,RW,1,0,"application-edit",18),d()()()()()),t&2){let e=f();p(6),m("model",e.items),p(4),m("ngIf",e.data.canDisplayNew),p(),m("ngIf",e.data.canDisplayCheckApplication),p(),m("ngIf",e.data.canDisplayApplicationDetail),p(),m("ngIf",e.data.canDisplayAffidavitDetail),p(),m("ngIf",e.data.canDisplayEditApplication)}}var SM=(()=>{class t{set token(e){this.applyToken(e)}get token(){return this._token}set mode(e){this.applyMode(e)}get mode(){return this._mode}set templateId(e){this.applyTemplateId(e)}get templateId(){return this._templateId}set appId(e){this.applyAppId(e)}get appId(){return this._appId}set payload(e){this.applyPayload(e)}get payload(){return this._payload}set apiTokenAttr(e){this.applyToken(e)}set apiModeAttr(e){this.applyMode(e)}constructor(e,n,i,r,a,s,l){this.affidavitPageStore=e,this.primeConfig=n,this.applicationsService=i,this.apiKey=r,this.apiMode=a,this.el=s,this.renderer=l,this.callBack=new V,this.onPaymentSuccess=new V,this.overlayClose=new V(!1),this.overlay=!0,this._token="",this._mode="",this._templateId=0,this._appId="",this.logo="data:image/png;base64,"+pt.ecms_logo,this.applyToken(this.apiKey),this.applyMode(this.apiMode)}ngOnInit(){this.primeConfig.ripple=!0,this.affidavitPageStore.state$.subscribe({next:e=>{this.data=e}}),this.affidavitPageStore.store$.pipe(ci(1)).subscribe(e=>{!e.canDisplayNew&&!e.canDisplayCheckApplication&&!e.canDisplayApplicationDetail&&!e.canDisplayAffidavitDetail&&!e.canDisplayEditApplication&&this.affidavitPageStore.toggle("new")}),this.items=[{label:"New Application",icon:"pi pi-fw pi-plus",style:{transition:"background 0.25s, color 0.25s, box-shadow 0.25s, border 0.25s",borderRadius:"0.75rem",margin:"0 0.15rem"},command:()=>{this.data.canDisplayNew||(this.affidavitPageStore.startLoading("Loading . . ."),this.affidavitPageStore.toggle("new"))},styleClass:"menuitem-new"},{label:"Check Application",icon:"pi pi-check-circle",style:{transition:"background 0.25s, color 0.25s, box-shadow 0.25s, border 0.25s",borderRadius:"0.75rem",margin:"0 0.15rem",fontWeight:"bold"},command:()=>{this.data.canDisplayCheckApplication||this.affidavitPageStore.toggle("check")},styleClass:"menuitem-check"}],setTimeout(()=>{!(this.overlay===!1||this.overlay==="false")&&this.createOverlayHost()},150)}createOverlayHost(){try{let e=this.el.nativeElement;if(e.__hc_overlay_refs)return;this.ensureOverlayStyles();let n=this.renderer.createElement("div");this.renderer.addClass(n,"hc-overlay-backdrop"),this.renderer.setAttribute(n,"tabindex","-1");let i=this.renderer.createElement("div");this.renderer.addClass(i,"hc-overlay-panel");let r=this.renderer.createElement("button");this.renderer.addClass(r,"hc-overlay-close"),this.renderer.setAttribute(r,"aria-label","Close"),this.renderer.listen(r,"click",()=>this.closeLibrary()),this.renderer.appendChild(i,r);let a=e.parentElement;this.renderer.appendChild(i,e),this.renderer.appendChild(n,i),this.renderer.appendChild(document.body,n),setTimeout(()=>{try{this.renderer.addClass(n,"hc-overlay-open"),this.renderer.addClass(i,"hc-overlay-open"),this.renderer.addClass(document.body,"hc-overlay-open")}catch{}},20);let s=document&&document.activeElement||null,l=document.body.style.overflow;document.body.style.overflow="hidden";let u=h=>{h.key==="Escape"&&this.closeLibrary(),h.key==="Tab"&&this.maintainFocus(h,i)};window.addEventListener("keydown",u),this.renderer.setAttribute(i,"role","dialog"),this.renderer.setAttribute(i,"aria-modal","true"),this.renderer.setAttribute(i,"tabindex","-1"),setTimeout(()=>{try{i.focus()}catch{}},0),e.__hc_overlay_refs={backdrop:n,keyHandler:u,originalParent:a,prevFocus:s,prevOverflow:l}}catch(e){console.warn("Failed to create overlay for highcourt-affidavit:",e)}}closeOverlay(){let e=this.el.nativeElement,n=e.__hc_overlay_refs;if(n)try{let{backdrop:i,keyHandler:r,originalParent:a,prevFocus:s,prevOverflow:l}=n;window.removeEventListener("keydown",r),i&&i.parentNode&&i.parentNode.removeChild(i),a&&e&&e.parentElement&&e.parentElement!==a&&a.appendChild(e);try{this.renderer.removeClass(document.body,"hc-overlay-open"),l!==void 0&&(document.body.style.overflow=l)}catch{}try{s&&s.focus&&s.focus()}catch{}delete e.__hc_overlay_refs}catch{}}closeLibrary(){this.overlayClose.emit(!0),this.closeOverlay(),this.affidavitPageStore.closeLibrary()}maintainFocus(e,n){if(e.key!=="Tab")return;let i=n.querySelectorAll('a[href], area[href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, [tabindex]:not([tabindex="-1"]), [contenteditable]'),r=Array.prototype.slice.call(i);if(!r.length){e.preventDefault();return}let a=r[0],s=r[r.length-1],l=document.activeElement;e.shiftKey?(l===a||l===n)&&(e.preventDefault(),s.focus()):l===s&&(e.preventDefault(),a.focus())}exposeHostApi(e){let n=this;e.openAffidavitOverlay=function(){e.__hc_overlay_refs||n.createOverlayHost()},e.closeAffidavitOverlay=()=>this.closeOverlay()}ensureOverlayStyles(){if(document.querySelector("style[data-hc-overlay-component]"))return;let e=`
|
|
112
112
|
/* Full-page backdrop - Paystack/Remita style */
|
|
113
113
|
.hc-overlay-backdrop {
|
|
114
114
|
position: fixed !important;
|
|
@@ -348,7 +348,7 @@ ${e.map((n,i)=>`${i+1}) ${n.toString()}`).join(`
|
|
|
348
348
|
body.hc-overlay-open {
|
|
349
349
|
overflow: hidden !important;
|
|
350
350
|
}
|
|
351
|
-
`,n=document.createElement("style");n.setAttribute("data-hc-overlay-component",""),n.innerHTML=e,document.head.appendChild(n)}getApp(e){this.callBack.emit(e)}handlePaymentCallback(e){console.log("Outside Payment Success with: ",e),this.onPaymentSuccess.emit(e)}goHome(){this.data.canDisplayNew||this.affidavitPageStore.toggle("new")}applyToken(e){let n=e??"";this._token=n,n&&this.affidavitPageStore.setToken(n)}applyMode(e){let n=e??"";this._mode=n,n&&this.affidavitPageStore.setMode(n)}applyTemplateId(e){let n=Number(e);!Number.isFinite(n)||n<=0||(this._templateId=n,this.affidavitPageStore.setID(n),this.applicationsService.setAffidavitTemplateId(n))}applyAppId(e){let n=(e??"").toString();n&&(this._appId=n,this.affidavitPageStore.setRefNo(n),this.applicationsService.setClientRef(n))}applyPayload(e){console.log("Applying Payload: ",e);let n=e;n&&(this._payload=n,this.affidavitPageStore.setPayload(n),this.applicationsService.setPayload(n))}static{this.\u0275fac=function(n){return new(n||t)(M(Te),M(qe),M(Si),M("API_TOKEN"),M("MODE"),M(ve),M(Ne))}}static{this.\u0275cmp=N({type:t,selectors:[["highcourt-affidavit"]],inputs:{overlay:"overlay",token:"token",mode:"mode",templateId:"templateId",appId:"appId",payload:"payload",apiTokenAttr:[E.None,"api-token","apiTokenAttr"],apiModeAttr:[E.None,"api-mode","apiModeAttr"]},outputs:{callBack:"callBack",onPaymentSuccess:"onPaymentSuccess"},decls:3,vars:2,consts:[["class","loading-overlay","role","status","aria-live","polite",4,"ngIf"],["class","layout-wrapper light bg-gradient-to-br from-blue-50 via-white to-blue-100 min-h-screen",4,"ngIf"],["role","status","aria-live","polite",1,"loading-overlay"],[1,"loading-overlay__panel"],[1,"loading-overlay__spinner"],["styleClass","loading-spinner","strokeWidth","5","fill","transparent","animationDuration",".55s"],[1,"loading-overlay__title"],[1,"loading-overlay__subtitle"],[1,"layout-wrapper","light","bg-gradient-to-br","from-blue-50","via-white","to-blue-100","min-h-screen"],[1,"layout-main-container","shadow-2","border-round-xl","my-5","mx-auto",2,"max-width","1100px"],[1,"layout-main"],[1,"no-print","mb-4","px-2","lg:px-8","pt-4"],[1,"grid","align-items-center"],[1,"col-12"],["styleClass","surface-card border-round-xl shadow-1 py-2 px-3 enhanced-menubar",3,"model"],["pTemplate","start"],[1,"px-4","lg:px-8","pb-5"],[1,"fadein","animation-duration-500"],[4,"ngIf"],[3,"getApplication","handlePayment",4,"ngIf"],[1,"flex","align-items-center","gap-2"],["alt","Logo","width","36","height","36",1,"border-circle","shadow-2","menubar-logo",2,"object-fit","cover","cursor","pointer",3,"click","src"],[1,"font-bold","text-white","text-xl","tracking-wide","hidden","sm:inline"],[3,"getApplication","handlePayment"]],template:function(n,i){n&1&&(v(0,"p-toast"),_(1,OW,8,4,"div",0)(2,VW,15,6,"div",1)),n&2&&(p(),m("ngIf",i.data.is_loading),p(),m("ngIf",i.data.canDisplayNew||i.data.canDisplayCheckApplication||i.data.canDisplayApplicationDetail||i.data.canDisplayAffidavitDetail||i.data.canDisplayEditApplication))},dependencies:[Ce,fe,Wo,fl,Um,GI,JI,bM,yM,MM],styles:[`
|
|
351
|
+
`,n=document.createElement("style");n.setAttribute("data-hc-overlay-component",""),n.innerHTML=e,document.head.appendChild(n)}getApp(e){this.callBack.emit(e)}handlePaymentCallback(e){console.log("Outside Payment Success with: ",e),this.onPaymentSuccess.emit(e)}goHome(){this.data.canDisplayNew||this.affidavitPageStore.toggle("new")}applyToken(e){let n=e??"";this._token=n,n&&this.affidavitPageStore.setToken(n)}applyMode(e){let n=e??"";this._mode=n,n&&this.affidavitPageStore.setMode(n)}applyTemplateId(e){let n=Number(e);!Number.isFinite(n)||n<=0||(this._templateId=n,this.affidavitPageStore.setID(n),this.applicationsService.setAffidavitTemplateId(n))}applyAppId(e){let n=(e??"").toString();n&&(this._appId=n,this.affidavitPageStore.setRefNo(n),this.applicationsService.setClientRef(n))}applyPayload(e){console.log("Applying Payload: ",e);let n=e;n&&(this._payload=n,this.affidavitPageStore.setPayload(n),this.applicationsService.setPayload(n))}static{this.\u0275fac=function(n){return new(n||t)(M(Te),M(qe),M(Si),M("API_TOKEN"),M("MODE"),M(ve),M(Ne))}}static{this.\u0275cmp=N({type:t,selectors:[["highcourt-affidavit"]],inputs:{overlay:"overlay",token:"token",mode:"mode",templateId:"templateId",appId:"appId",payload:"payload",apiTokenAttr:[E.None,"api-token","apiTokenAttr"],apiModeAttr:[E.None,"api-mode","apiModeAttr"]},outputs:{callBack:"callBack",onPaymentSuccess:"onPaymentSuccess",overlayClose:"overlayClose"},decls:3,vars:2,consts:[["class","loading-overlay","role","status","aria-live","polite",4,"ngIf"],["class","layout-wrapper light bg-gradient-to-br from-blue-50 via-white to-blue-100 min-h-screen",4,"ngIf"],["role","status","aria-live","polite",1,"loading-overlay"],[1,"loading-overlay__panel"],[1,"loading-overlay__spinner"],["styleClass","loading-spinner","strokeWidth","5","fill","transparent","animationDuration",".55s"],[1,"loading-overlay__title"],[1,"loading-overlay__subtitle"],[1,"layout-wrapper","light","bg-gradient-to-br","from-blue-50","via-white","to-blue-100","min-h-screen"],[1,"layout-main-container","shadow-2","border-round-xl","my-5","mx-auto",2,"max-width","1100px"],[1,"layout-main"],[1,"no-print","mb-4","px-2","lg:px-8","pt-4"],[1,"grid","align-items-center"],[1,"col-12"],["styleClass","surface-card border-round-xl shadow-1 py-2 px-3 enhanced-menubar",3,"model"],["pTemplate","start"],[1,"px-4","lg:px-8","pb-5"],[1,"fadein","animation-duration-500"],[4,"ngIf"],[3,"getApplication","handlePayment",4,"ngIf"],[1,"flex","align-items-center","gap-2"],["alt","Logo","width","36","height","36",1,"border-circle","shadow-2","menubar-logo",2,"object-fit","cover","cursor","pointer",3,"click","src"],[1,"font-bold","text-white","text-xl","tracking-wide","hidden","sm:inline"],[3,"getApplication","handlePayment"]],template:function(n,i){n&1&&(v(0,"p-toast"),_(1,OW,8,4,"div",0)(2,VW,15,6,"div",1)),n&2&&(p(),m("ngIf",i.data.is_loading),p(),m("ngIf",i.data.canDisplayNew||i.data.canDisplayCheckApplication||i.data.canDisplayApplicationDetail||i.data.canDisplayAffidavitDetail||i.data.canDisplayEditApplication))},dependencies:[Ce,fe,Wo,fl,Um,GI,JI,bM,yM,MM],styles:[`
|
|
352
352
|
|
|
353
353
|
.enhanced-menubar .p-menubar-root-list>.p-menuitem>.p-menuitem-link {
|
|
354
354
|
transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s;
|
|
@@ -591,7 +591,7 @@ body.hc-overlay-open {
|
|
|
591
591
|
color: black !important;
|
|
592
592
|
font-family: verdana !important;
|
|
593
593
|
`,4,"ngFor","ngForOf"],[1,"row","m-0","p-0"],[1,"col-md-6","col-xl-6","pl-3"],[2,"font-size","17px","color","black !important","font-family","verdana !important"],[1,"text-uppercase"],[1,"text-center","p-5"],[1,"grid",2,"padding-top","20px","margin-bottom","-10px"],[1,"col-12","md:col-4","p-0","text-left","pl-5"],["alt","","height","120px",3,"src"],[1,"col-12","md:col-4"],[1,"mb-2","px-8"],[1,"",2,"color","white","background-color","black","padding","10px 0px 10px 0px","; font-size","16px"],[1,"m-4","w-full"],["alt","sign","height","90","width","100",1,"mt-3",3,"src"],[1,"mb-2",2,"color","black","font-size","20px","text-transform","uppercase"],["alt","Court of Arm Logo","height","90","width","100",1,"mt-0",3,"src"],[1,"mb-2",2,"color","black","font-size","18px"],[1,"mb-2",2,"color","black","font-size","20px"],[1,"my-3","py-3"],[1,"text-center",2,"font-family","verdana !important","margin","5px 0px !important"],[1,"affidavit-title","rounded","border",2,"font-family","verdana !important","/* margin","5px 0px",`*/
|
|
594
|
-
background-color`,"rgb(11, 100, 11)","border-radius","3px","height","45px","justify-items","center","/* margin-bottom","30px !important"],[1,"text-white","text-center","font-bold","justify-items-center","py-3","font-weight-bolder","text-uppercase",2,"font-size","20px","margin-top","-5px"],["class","pi-img-rounded img-fix-h","onError","this.src='assets/images/noimage.gif';","alt","Deponent Passport Photo","width","90","style","float: right !important; margin-top: -30px",3,"src",4,"ngIf"],["onError","this.src='assets/images/noimage.gif';","alt","Deponent Passport Photo","width","90",1,"pi-img-rounded","img-fix-h",2,"float","right !important","margin-top","-30px",3,"src"],["icon","pi pi-check","label","Close","styleClass","p-button-danger p-button-outlined",3,"click"]],template:function(n,i){n&1&&(c(0,"div",0)(1,"div",1)(2,"div",2),_(3,soe,81,20,"section",3),d(),c(4,"div",4)(5,"div",5),v(6,"a",6),c(7,"button",7),I("click",function(){return i.goBack()}),d()(),v(8,"br"),c(9,"p-dialog",8),jt("visibleChange",function(a){return Wt(i.displayIDCardModal,a)||(i.displayIDCardModal=a),a}),c(10,"div",9),v(11,"div",10),d(),_(12,loe,1,0,"ng-template",11),d()()()()),n&2&&(p(3),m("ngForOf",i.applications),p(6),It(Pe(7,toe)),Ht("visible",i.displayIDCardModal),m("modal",!0)("draggable",!1)("resizable",!1))},dependencies:[rt,Ce,wn,xn,Lt,cd,fe,er,df,Uo]})}}return t})();var doe=["videoElement"];function poe(t,o){t&1&&(c(0,"div",18),v(1,"i",19),c(2,"span"),g(3,"Incomplete Form"),d()())}function uoe(t,o){if(t&1){let e=D();c(0,"div",26)(1,"div",27)(2,"h3"),v(3,"i",28),g(4," Workspace Controls"),d(),c(5,"p"),g(6,"Use the quick controls to manage deponent profiles across this bulk submission."),d()(),c(7,"div",29)(8,"div",30)(9,"div",31),I("click",function(){C(e);let i=f(2);return y(i.addDeponent())}),c(10,"div",32),v(11,"i",33),d(),c(12,"div",34),g(13,"Add New Deponent"),d()(),c(14,"div",31),I("click",function(){C(e);let i=f(2);return y(i.applicationsArray.controls.length>0&&i.removeDeponent(i.applicationsArray.controls.length-1))}),c(15,"div",35),v(16,"i",36),d(),c(17,"div",34),g(18,"Remove Last Deponent"),d()()()()()}if(t&2){let e=f(2);p(14),$e("disabled",e.applicationsArray.controls.length===0)("warning",e.applicationsArray.controls.length>0),p(),$e("warning-icon",e.applicationsArray.controls.length>0)("muted",e.applicationsArray.controls.length===0)}}function moe(t,o){if(t&1){let e=D();c(0,"div",77),v(1,"img",78),c(2,"div",79)(3,"button",80),I("click",function(){C(e);let i=de(6);return y(i.click())}),d(),c(4,"button",81),I("click",function(i){return C(e),f(5).openCamera(),y(i.preventDefault())}),d()(),c(5,"input",82,0),I("change",function(i){C(e);let r=f(3).index,a=f(2);return y(a.handleFileInputIPassportImage(i,r))}),d()()}if(t&2){let e=f(3).index,n=f(2);p(),m("src",n.uploadedPassportImage[e]||n.no_image,Ae)}}function foe(t,o){if(t&1&&(c(0,"div",73)(1,"div",74),v(2,"i",76),c(3,"h4"),g(4,"Passport Photo"),d(),c(5,"small"),g(6,"JPG, GIF or PNG. Max 800kB"),d()(),_(7,moe,7,1,"div",75),d()),t&2){let e=f(4);p(7),m("ngIf",!e.cameraEnabled)}}function hoe(t,o){if(t&1){let e=D();c(0,"div",77),v(1,"img",83),c(2,"div",79)(3,"button",80),I("click",function(){C(e);let i=de(5);return y(i.click())}),d()(),c(4,"input",84,1),I("change",function(i){C(e);let r=f(2).index,a=f(2);return y(a.handleFileInputIDCard(i,r))}),d()()}if(t&2){let e=f(2).index,n=f(2);p(),m("src",n.uploadedIDCard[e]||n.no_image,Ae)}}function goe(t,o){if(t&1){let e=D();c(0,"div",73)(1,"div",74),v(2,"i",85),c(3,"h4"),g(4,"Digital Signature"),d(),c(5,"small"),g(6,"JPG, GIF or PNG. Max 800kB"),d()(),c(7,"div",77),v(8,"img",86),c(9,"div",79)(10,"button",80),I("click",function(){C(e);let i=de(12);return y(i.click())}),d()(),c(11,"input",87,2),I("change",function(i){C(e);let r=f(2).index,a=f(2);return y(a.handleFileInputSignatureImage(i,r))}),d()()()}if(t&2){let e=f(2).index,n=f(2);p(8),m("src",n.uploadedSignatureImage[e]||n.no_image,Ae)}}function Aoe(t,o){if(t&1&&(c(0,"div",70)(1,"div",71),_(2,foe,8,1,"div",72),c(3,"div",73)(4,"div",74),v(5,"i",38),c(6,"h4"),g(7,"Identity Card"),d(),c(8,"small"),g(9,"JPG, GIF or PNG. Max 800kB"),d()(),_(10,hoe,6,1,"div",75),d(),_(11,goe,13,1,"div",72),d()()),t&2){let e=f(3);p(2),m("ngIf",e.affidavitAppSetting==null?null:e.affidavitAppSetting.allow_passport_photo),p(8),m("ngIf",!e.cameraEnabled1),p(),m("ngIf",e.affidavitAppSetting==null?null:e.affidavitAppSetting.allow_signature)}}function _oe(t,o){if(t&1){let e=D();c(0,"button",98),I("click",function(i){C(e);let r=f(4);return r.cameraEnabled?r.startCamera():r.startCamera1(),y(i.preventDefault())}),v(1,"i",99),g(2," Start Camera "),d()}}function voe(t,o){if(t&1){let e=D();c(0,"button",100),I("click",function(){C(e);let i=f(2).index,r=f(2);return y(r.captureImage(i))}),v(1,"i",101),g(2," Capture "),d()}}function boe(t,o){if(t&1){let e=D();c(0,"button",100),I("click",function(){C(e);let i=f(2).index,r=f(2);return y(r.captureImage1(i))}),v(1,"i",101),g(2," Capture "),d()}}function Coe(t,o){if(t&1){let e=D();c(0,"button",102),I("click",function(){C(e);let i=f(4);return y(i.switchCamera())}),v(1,"i",103),g(2," Switch Camera "),d()}}function yoe(t,o){if(t&1){let e=D();c(0,"div",88)(1,"div",89)(2,"div",90)(3,"h4"),g(4,"Camera Capture"),d(),c(5,"button",91),I("click",function(){C(e);let i=f(3);return y(i.stopCamera())}),v(6,"i",92),d()(),v(7,"video",93,3),c(9,"div",94),_(10,_oe,3,0,"button",95)(11,voe,3,0,"button",96)(12,boe,3,0,"button",96)(13,Coe,3,0,"button",97),d()()()}if(t&2){let e,n=f(3);p(10),m("ngIf",!n.cameraStarted&&!n.cameraStarted1),p(),m("ngIf",n.cameraStarted),p(),m("ngIf",n.cameraStarted1),p(),m("ngIf",(n.cameraStarted||n.cameraStarted1)&&((e=n.cameraService.videoInputs.length)!==null&&e!==void 0?e:0)>1)}}function xoe(t,o){t&1&&(c(0,"div",104),g(1," Deponent name is required "),d())}function woe(t,o){t&1&&(c(0,"div",104),g(1," Deponent NIN is required. "),d())}function Ioe(t,o){t&1&&(c(0,"div",104),g(1," NIN must be a valid number. "),d())}function Moe(t,o){t&1&&(c(0,"div",104),g(1," NIN must be 11 digits "),d())}function Soe(t,o){t&1&&(c(0,"div",104),g(1," Gender is required "),d())}function Eoe(t,o){t&1&&(c(0,"div",104),g(1," Town is required "),d())}function Ooe(t,o){t&1&&(c(0,"div",104),g(1," Country of origin is required "),d())}function Toe(t,o){t&1&&(c(0,"div",104),g(1," State of origin is required "),d())}function Poe(t,o){t&1&&(c(0,"div",104),g(1," Resident town is required "),d())}function Doe(t,o){t&1&&(c(0,"div",104),g(1," Occupation is required "),d())}function koe(t,o){t&1&&(c(0,"div",104),g(1," Religion is required "),d())}function Foe(t,o){if(t&1&&(c(0,"div",47)(1,"label"),g(2),c(3,"span",49),g(4,"*"),d()(),v(5,"input",109),d()),t&2){let e,n=f().index,i=f(4);p(2),se("",(e=i.getFormEntriesRecordByIndex(n))==null?null:e.label," "),p(3),m("id",n)("type",i.getFormEntriesRecordByIndex(n).input_type||"text")("formControlName",n)}}function Roe(t,o){if(t&1&&(B(0),_(1,Foe,6,4,"div",108),z()),t&2){let e,n=o.index,i=f(4);p(),m("ngIf",((e=i.getFormEntriesRecordByIndex(n))==null?null:e.is_calculated)==!1)}}function Voe(t,o){if(t&1&&(c(0,"div",105)(1,"div",27)(2,"h3"),v(3,"i",106),g(4," Affidavit Information"),d(),c(5,"p"),g(6,"Provide affidavit-specific details required for this deponent."),d()(),c(7,"div",43)(8,"div",107),_(9,Roe,2,1,"ng-container",24),d()()()),t&2){let e=f(3);p(9),m("ngForOf",e.formEntries.controls)}}function Loe(t,o){if(t&1){let e=D();B(0),c(1,"div",113)(2,"div",114)(3,"div",115)(4,"span"),g(5,"Clause"),d(),c(6,"span",116),g(7),d()(),c(8,"div",117)(9,"button",118),I("click",function(){let i=C(e).index,r=f(4);return y(r.onAddClause(i))}),d(),c(10,"button",119),I("click",function(){let i=C(e).index,r=f(4);return y(r.onRemoveClause(i))}),d()()(),v(11,"textarea",120),d(),z()}if(t&2){let e=o.index;p(7),k(e+1),p(4),m("formControlName",e)}}function Noe(t,o){if(t&1&&(c(0,"div",110)(1,"div",27)(2,"h3"),v(3,"i",111),g(4," Clauses Information"),d(),c(5,"p"),g(6,"Define the specific clauses and content of this affidavit submission."),d()(),c(7,"div",43)(8,"div",112),_(9,Loe,12,2,"ng-container",24),d()()()),t&2){let e=f(3);p(9),m("ngForOf",e.clauseEntriesControl.controls)}}function Boe(t,o){if(t&1){let e=D();B(0),c(1,"div",37)(2,"div",27)(3,"h3"),v(4,"i",38),g(5),c(6,"span",39),g(7,"Active Form"),d()(),c(8,"div",40)(9,"button",41),I("click",function(){C(e);let i=f(2);return y(i.addDeponent())}),v(10,"i",33),d(),c(11,"button",42),I("click",function(){let i=C(e).index,r=f(2);return y(r.removeDeponent(i))}),v(12,"i",36),d()()(),c(13,"div",43),_(14,Aoe,12,3,"div",44)(15,yoe,14,4,"div",45),c(16,"div",46)(17,"div",47)(18,"label",48),g(19,"Deponent Name "),c(20,"span",49),g(21,"*"),d()(),v(22,"input",50),_(23,xoe,2,0,"div",51),d(),c(24,"div",47)(25,"label",52),g(26,"Deponent NIN "),c(27,"span",49),g(28,"*"),d()(),c(29,"input",53),I("input",function(i){C(e);let r=f(2);return y(r.onInput(i))}),d(),_(30,woe,2,0,"div",51)(31,Ioe,2,0,"div",51)(32,Moe,2,0,"div",51),d(),c(33,"div",47)(34,"label",54),g(35,"Gender "),c(36,"span",49),g(37,"*"),d()(),c(38,"p-dropdown",55),I("onChange",function(i){C(e);let r=f(2);return y(r.closeDropdown(i))}),d(),_(39,Soe,2,0,"div",51),d(),c(40,"div",47)(41,"label",56),g(42,"Native Town "),c(43,"span",49),g(44,"*"),d()(),v(45,"input",57),_(46,Eoe,2,0,"div",51),d(),c(47,"div",47)(48,"label",58),g(49,"Country of Origin "),c(50,"span",49),g(51,"*"),d()(),c(52,"p-dropdown",59),I("onChange",function(i){C(e);let r=f(2);return y(r.closeDropdown(i))}),d(),_(53,Ooe,2,0,"div",51),d(),c(54,"div",47)(55,"label",60),g(56,"State of Origin "),c(57,"span",49),g(58,"*"),d()(),c(59,"p-dropdown",61),I("onChange",function(i){C(e);let r=f(2);return y(r.closeDropdown(i))}),d(),_(60,Toe,2,0,"div",51),d(),c(61,"div",47)(62,"label",62),g(63,"Place of Residence "),c(64,"span",49),g(65,"*"),d()(),v(66,"input",63),_(67,Poe,2,0,"div",51),d(),c(68,"div",47)(69,"label",64),g(70,"Occupation "),c(71,"span",49),g(72,"*"),d()(),v(73,"input",65),_(74,Doe,2,0,"div",51),d(),c(75,"div",47)(76,"label",66),g(77,"Religion "),c(78,"span",49),g(79,"*"),d()(),c(80,"p-dropdown",67),I("onChange",function(i){C(e);let r=f(2);return y(r.closeDropdown(i))}),d(),_(81,koe,2,0,"div",51),d()()(),_(82,Voe,10,1,"div",68)(83,Noe,10,1,"div",69),d(),z()}if(t&2){let e=o.index,n=f(2);p(),m("formGroupName",e),p(4),se(" Deponent ",e+1," "),p(9),m("ngIf",(n.affidavitAppSetting==null?null:n.affidavitAppSetting.allow_passport_photo)||(n.affidavitAppSetting==null?null:n.affidavitAppSetting.allow_signature)),p(),m("ngIf",n.cameraEnabled||n.cameraEnabled1),p(8),m("ngIf",(n.applicationFormControl.deponent_name.errors==null?null:n.applicationFormControl.deponent_name.errors.required)&&n.applicationFormControl.deponent_name.touched),p(7),m("ngIf",(n.applicationFormControl.deponent_nin.errors==null?null:n.applicationFormControl.deponent_nin.errors.required)&&n.applicationFormControl.deponent_nin.touched),p(),m("ngIf",(n.applicationFormControl.deponent_nin.errors==null?null:n.applicationFormControl.deponent_nin.errors.minlength)&&n.applicationFormControl.deponent_nin.touched),p(),m("ngIf",!n.isNINValidated&&n.applicationFormControl.deponent_nin.touched),p(6),m("options",n.genders)("showClear",!0),p(),m("ngIf",(n.applicationFormControl.gender.errors==null?null:n.applicationFormControl.gender.errors.required)&&n.applicationFormControl.gender.touched),p(7),m("ngIf",(n.applicationFormControl.town_native.errors==null?null:n.applicationFormControl.town_native.errors.required)&&n.applicationFormControl.town_native.touched),p(6),m("options",n.geoCountry)("showClear",!0)("filter",!0),p(),m("ngIf",(n.applicationFormControl.originCountry.errors==null?null:n.applicationFormControl.originCountry.errors.required)&&n.applicationFormControl.originCountry.touched),p(6),m("options",n.statesByDeponent[e])("showClear",!0)("filter",!0),p(),m("ngIf",(n.applicationFormControl.originState.errors==null?null:n.applicationFormControl.originState.errors.required)&&n.applicationFormControl.originState.touched),p(7),m("ngIf",(n.applicationFormControl.town_resident.errors==null?null:n.applicationFormControl.town_resident.errors.required)&&n.applicationFormControl.town_resident.touched),p(7),m("ngIf",(n.applicationFormControl.occupation.errors==null?null:n.applicationFormControl.occupation.errors.required)&&n.applicationFormControl.occupation.touched),p(6),m("options",n.religions)("showClear",!0)("filter",!0),p(),m("ngIf",(n.applicationFormControl.religion.errors==null?null:n.applicationFormControl.religion.errors.required)&&n.applicationFormControl.religion.touched),p(),m("ngIf",n.showAffidavitInformationForm),p(),m("ngIf",n.canShowClausesForm&&n.clauseEntriesControl.controls.length>0)}}function zoe(t,o){t&1&&(c(0,"div",104),g(1," Applicant email is required "),d())}function Hoe(t,o){t&1&&(c(0,"div",104),g(1," No spaces are allowed in the email "),d())}function joe(t,o){t&1&&(c(0,"div",104),g(1," Applicant phone number is required "),d())}function Uoe(t,o){t&1&&(c(0,"div",104),g(1," Preferred court is required "),d())}function qoe(t,o){if(t&1){let e=D();c(0,"div",121)(1,"div",27)(2,"h3"),v(3,"i",122),g(4," Optional Information"),d(),c(5,"p"),g(6,"Provide contact details and preferred court for this bulk submission."),d()(),c(7,"div",43)(8,"div",46)(9,"div",47)(10,"label",123),g(11,"Applicant Email "),c(12,"span",49),g(13,"*"),d()(),v(14,"input",124),_(15,zoe,2,0,"div",51)(16,Hoe,2,0,"div",51),d(),c(17,"div",47)(18,"label",125),g(19,"Applicant Phone Number "),c(20,"span",49),g(21,"*"),d()(),v(22,"input",126),_(23,joe,2,0,"div",51),d(),c(24,"div",47)(25,"label",127),g(26,"Preferred Court "),c(27,"span",49),g(28,"*"),d()(),c(29,"p-dropdown",128),I("onChange",function(i){C(e);let r=f(2);return y(r.closeDropdown(i))}),d(),_(30,Uoe,2,0,"div",51),d()(),c(31,"div",129)(32,"div",130)(33,"button",131),I("click",function(){C(e);let i=f(2);return y(i.goBack())}),d(),c(34,"button",132),I("click",function(){C(e);let i=f(2);return y(i.processForm())}),d()()()()()}if(t&2){let e=f(2);p(15),m("ngIf",(e.rootForm.controls.applicant_email.errors==null?null:e.rootForm.controls.applicant_email.errors.required)&&e.rootForm.controls.applicant_email.touched),p(),m("ngIf",(e.rootForm.controls.applicant_email.errors==null?null:e.rootForm.controls.applicant_email.errors.pattern)&&e.rootForm.controls.applicant_email.touched),p(7),m("ngIf",(e.rootForm.controls.applicant_phone.errors==null?null:e.rootForm.controls.applicant_phone.errors.required)&&e.rootForm.controls.applicant_phone.touched),p(6),m("options",e.courts)("showClear",!0),p(),m("ngIf",(e.rootForm.controls.court.errors==null?null:e.rootForm.controls.court.errors.required)&&e.rootForm.controls.court.touched),p(4),m("disabled",e.applicationForm.invalid)}}function Qoe(t,o){if(t&1&&(c(0,"div",20)(1,"form",21),_(2,uoe,19,8,"div",22),c(3,"div",23),_(4,Boe,84,28,"ng-container",24),d(),_(5,qoe,35,7,"div",25),d()()),t&2){let e=f();p(),m("formGroup",e.rootForm),p(),m("ngIf",e.applicationsArray.controls.length>0),p(2),m("ngForOf",e.applicationsArray.controls),p(),m("ngIf",e.applicationsArray.controls.length>0)}}function Goe(t,o){if(t&1&&(c(0,"div",138)(1,"div",139),v(2,"i",153),g(3),d(),c(4,"span",141),g(5),d()()),t&2){let e=f().$implicit;p(3),se(" ",e.label,""),p(2),k(e.provided_value)}}function Woe(t,o){if(t&1&&(B(0),_(1,Goe,6,2,"div",162),z()),t&2){let e=o.$implicit;p(),m("ngIf",e.is_calculated==!1)}}function Koe(t,o){if(t&1&&(c(0,"div",155)(1,"h4",156),g(2,"Affidavit Information"),d(),c(3,"div",137),_(4,Woe,2,1,"ng-container",24),d()()),t&2){let e=f().$implicit;p(4),m("ngForOf",e.formEntries)}}function Yoe(t,o){if(t&1&&(c(0,"div",163),v(1,"img",164),d()),t&2){let e=f().index,n=f(2);p(),m("src",n.uploadedPassportImage[e],Ae)}}function Zoe(t,o){t&1&&(c(0,"span",165),g(1,"Not Provided"),d())}function Joe(t,o){if(t&1&&(c(0,"div",163),v(1,"img",166),d()),t&2){let e=f().index,n=f(2);p(),m("src",n.uploadedSignatureImage[e],Ae)}}function Xoe(t,o){t&1&&(c(0,"span",165),g(1,"Not Provided"),d())}function $oe(t,o){if(t&1&&(c(0,"div",163),v(1,"img",167),d()),t&2){let e=f().index,n=f(2);p(),m("src",n.uploadedIDCard[e],Ae)}}function ere(t,o){t&1&&(c(0,"span",165),g(1,"Not Provided"),d())}function tre(t,o){if(t&1&&(c(0,"div",135)(1,"div",27)(2,"h3"),v(3,"i",147),g(4),d(),c(5,"p"),g(6,"Verify the captured personal details and uploads before submission."),d()(),c(7,"div",136)(8,"div",137)(9,"div",138)(10,"div",139),v(11,"i",147),g(12," Deponent Name:"),d(),c(13,"span",141),g(14),d()(),c(15,"div",138)(16,"div",139),v(17,"i",148),g(18," Deponent NIN:"),d(),c(19,"span",141),g(20),d()(),c(21,"div",138)(22,"div",139),v(23,"i",143),g(24," Native Town:"),d(),c(25,"span",141),g(26),d()(),c(27,"div",138)(28,"div",139),v(29,"i",149),g(30," Country of Origin:"),d(),c(31,"span",141),g(32),d()(),c(33,"div",138)(34,"div",139),v(35,"i",150),g(36," State of Origin:"),d(),c(37,"span",141),g(38),d()(),c(39,"div",138)(40,"div",139),v(41,"i",151),g(42," Place of Residence:"),d(),c(43,"span",141),g(44),d()(),c(45,"div",138)(46,"div",139),v(47,"i",152),g(48," Occupation:"),d(),c(49,"span",141),g(50),d()(),c(51,"div",138)(52,"div",139),v(53,"i",153),g(54," Gender:"),d(),c(55,"span",141),g(56),d()(),c(57,"div",138)(58,"div",139),v(59,"i",153),g(60," Religion:"),d(),c(61,"span",141),g(62),d()()(),_(63,Koe,5,1,"div",154),c(64,"div",155)(65,"h4",156),g(66,"Supporting Documents"),d(),c(67,"div",157)(68,"div",158)(69,"div",159),v(70,"i",160),g(71," Passport Photo"),d(),_(72,Yoe,2,1,"div",161)(73,Zoe,2,0,"ng-template",null,4,je),d(),c(75,"div",158)(76,"div",159),v(77,"i",160),g(78," Signature"),d(),_(79,Joe,2,1,"div",161)(80,Xoe,2,0,"ng-template",null,5,je),d(),c(82,"div",158)(83,"div",159),v(84,"i",160),g(85," Identity Card"),d(),_(86,$oe,2,1,"div",161)(87,ere,2,0,"ng-template",null,6,je),d()()()()()),t&2){let e=o.$implicit,n=o.index,i=de(74),r=de(81),a=de(88),s=f(2);p(4),se(" Deponent ",n+1," Review"),p(10),k(e.deponent_name),p(6),k(e.deponent_nin),p(6),k(e.town_native),p(6),k(s.selectedCountry[n]),p(6),k(s.selectedState[n]),p(6),k(e.town_resident),p(6),k(e.occupation),p(6),k(e.gender),p(6),k(e.religion),p(),m("ngIf",s.shouldDisplayAffidavitSection),p(9),m("ngIf",e.passport_photo_file)("ngIfElse",i),p(7),m("ngIf",e.signature_file)("ngIfElse",r),p(7),m("ngIf",e.identity_photo_file)("ngIfElse",a)}}function nre(t,o){if(t&1){let e=D();c(0,"div",133),_(1,tre,89,17,"div",134),c(2,"div",135)(3,"div",27)(4,"h3"),v(5,"i",14),g(6," Client Information"),d(),c(7,"p"),g(8,"Confirm the overall contact information for this bulk submission."),d()(),c(9,"div",136)(10,"div",137)(11,"div",138)(12,"div",139),v(13,"i",140),g(14," Applicant Email:"),d(),c(15,"span",141),g(16),d()(),c(17,"div",138)(18,"div",139),v(19,"i",142),g(20," Applicant Phone:"),d(),c(21,"span",141),g(22),d()(),c(23,"div",138)(24,"div",139),v(25,"i",143),g(26," Preferred Court:"),d(),c(27,"span",141),g(28),d()()(),c(29,"div",144)(30,"div",130)(31,"button",145),I("click",function(){C(e);let i=f();return y(i.showApplicationForm())}),d(),c(32,"button",146),I("click",function(){C(e);let i=f();return y(i.goToPreview())}),d()()()()()()}if(t&2){let e=f();p(),m("ngForOf",e.dataPayload.applications),p(15),k(e.dataPayload.applicant_email),p(6),k(e.dataPayload.applicant_phone),p(6),k(e.courtName),p(4),m("disabled",e.applicationsArray.length>0?e.applicationForm.invalid:!1)}}var nO=(()=>{class t{constructor(e,n,i,r,a,s,l,u,h,A,b,x){this.fb=e,this.affidavitApplicationEndpoint=n,this.affidavitAppEndpoint=i,this.affidavitTemplateEndpoint=r,this.countryEndpoint=a,this.stateEndpoint=s,this.affidavitPageStore=l,this.CourtEndPoint=u,this.appNotificationService=h,this.cameraService=A,this.applicationService=b,this.affidavitApplicationSettingsEndpoint=x,this.toggle=new V,this.genders=da,this.religions=pa,this.geoCountry=[],this._geoStates=[],this.statesByDeponent=[],this.courts=[],this.applications=[],this.selectedState=[""],this.no_image="data:image/png;base64,"+pt.no_image,this.uploadedPassportImage=[],this.uploadedSignatureImage=[],this.ids=[],this.uploadedIDCard=[],this.displayForm=!0,this.shouldDisplayAffidavitSection=!0,this.selectedCountry=[""],this.apiMode="development",this.canSubmitApplicationForm=!1,this.canShowApplicationForm=!0,this.canShowClausesForm=!1,this.canShowConfirmationForm=!1,this.showAffidavitInformationForm=!1,this.displaySignatureModal=!1,this.formEntriesMap=new Map,this.passportPhotoFile=[],this.signatureFile=[],this.idCardPhotoFile=[],this.deletedAppIds=[],this.cameraEnabled=!1,this.cameraStarted=!1,this.cameraEnabled1=!1,this.cameraStarted1=!1,this.hasUploadedPhoto=!1,this.videoInputs=[],this.rootForm=this.fb.group({applications:this.fb.array([]),applicant_email:this.fb.control(null),applicant_phone:this.fb.control(null),court:this.fb.control(null,K.required),affidavit_type_name:this.fb.control(null,[K.required,K.minLength(3),K.maxLength(128)])})}ngOnInit(){this.countryEndpoint.list().subscribe({next:e=>{this.geoCountry=e.data,this.default_country=this.geoCountry.find(n=>n.phone_code=="234"),this.stateEndpoint.list().subscribe({next:n=>{this._geoStates=n.data,this.applicationService.getClientRef()&&this.affidavitAppEndpoint.singleByClientRef(this.applicationService.getClientRef()).subscribe({next:i=>{this.applications=i.data.data,this.rootForm.patchValue({applicant_email:this.applications[0].application.applicant_email,applicant_phone:this.applications[0].application.applicant_phone,court:this.applications[0].application.court.id}),this.applications.forEach((r,a)=>{this.statesByDeponent[a]=this._geoStates.filter(s=>s.country_id==(r.application?.state?.country_id??0)),this.addDeponent(r.application),this.applicationsArray.controls[a]?.get("originState")&&r.application?.state?.id&&(this.applicationsArray.controls[a]?.get("originCountry")?.setValue(r.application?.state?.country_id),this.applicationsArray.controls[a]?.get("originState")?.setValue(r.application?.state?.id))}),this.affidavitPageStore.stopLoading()},error:i=>{this.affidavitPageStore.stopLoading(),this.appNotificationService.showError({title:i.error,detail:i.message})}})},error:n=>{this.appNotificationService.showError({title:n.error,detail:n.message})}})},error:e=>console.log(e)}),this.affidavitApplicationSettingsEndpoint.single(1).subscribe({next:e=>this.affidavitAppSetting=e.data,error:e=>{this.appNotificationService.showError({title:e.error,detail:e.message})}}),this.CourtEndPoint.list().subscribe({next:e=>this.courts=e.data,error:e=>{this.appNotificationService.showError({title:e.error,detail:e.message})}})}goBack(){window.history.back()}get applicationFormControl(){return this.applicationForm.controls}get formEntries(){return this.applicationForm.controls.formEntries}showConfirmationForm(){this.displayForm=!1}showApplicationForm(){this.displayForm=!0}get clauseEntriesControl(){return this.applicationForm.controls.clauseEntries}onAddClause(e){if(this.clauseEntriesControl.length<7){let n=this.fb.control(null,[K.required,K.minLength(3)]);this.clauseEntriesControl.insert(e+1,n);return}this.appNotificationService.showInfo({title:"Information",detail:"You can only supply a maximum of seven (7) clauses!"})}getFormEntriesRecordByIndex(e){return this.formEntriesMap.get(e)}onRemoveClause(e){if(this.clauseEntriesControl.length>1){this.clauseEntriesControl.removeAt(e);return}this.appNotificationService.showInfo({title:"Information",detail:"You must have at least one clause available"})}get courtName(){return this.courts.find(i=>i.id===this.dataPayload.court_id)?.name}processForm(){if(this.affidavitAppSetting?.allow_passport_photo&&!this.uploadedPassportImage[0]||this.affidavitAppSetting?.allow_signature&&!this.uploadedSignatureImage[0]){this.appNotificationService.showWarning({title:"Information!",detail:"Please, make sure to upload both the Passort and Signature!"});return}let e=this.rootForm.value,n=e.applications;this.dataPayload={court_id:e.court,applicant_email:e.applicant_email,applicant_phone:e.applicant_phone,affidavit_type_name:e.affidavit_type_name,affidavit_template_id:this.affidavitTemplate?.id,client_ref:this.applicationService.getClientRef()??"CLIENT_REF-"+new Date,payment_redirect_url:this.applicationService.getPaymentRedirectUrl(),deleted_ids:this.deletedAppIds,applications:[]},n.forEach((i,r)=>{this.selectedCountry[r]=this.geoCountry.find(a=>a.id==i.originCountry)?.name??"Not Found",this.selectedState[r]=this.statesByDeponent[r].find(a=>a.id==i.originState)?.name??"Not Found",this.dataPayload?.applications.push({deponent_name:i.deponent_name,deponent_nin:i.deponent_nin,town_native:i.town_native,town_resident:i.town_resident,state_id:i.originState,occupation:i.occupation,gender:i.gender,religion:i.religion,id:this.ids[r],passport_photo_file:this.uploadedPassportImage[r]??"",signature_file:this.uploadedSignatureImage[r]??"",identity_photo_file:this.uploadedIDCard[r]??"",formEntries:[]}),this.affidavitTemplate?.is_clauses_editable||this.formEntriesMap.forEach((a,s)=>{this.dataPayload.applications[r],this.dataPayload.applications[r].formEntries.push({label:a.label,placeholder:a.placeholder,provided_value:i.formEntries[s],parent_placeholder:a.parent_placeholder,is_calculated:a.is_calculated,format:a.format,input_type:a.input_type})})}),this.shouldDisplayAffidavitSection=this.dataPayload.applications[0].formEntries?.length>0,setTimeout(()=>this.showConfirmationForm(),250)}goToPreview(){let e=new FormData;e.append("court_id",this.dataPayload?.court_id+""),e.append("applicant_email",this.dataPayload?.applicant_email??""),e.append("applicant_phone",this.dataPayload?.applicant_phone??""),e.append("affidavit_type_name",this.dataPayload?.affidavit_type_name??""),e.append("affidavit_template_id",this.dataPayload?.affidavit_template_id+""),e.append("client_ref",this.dataPayload?.client_ref??""),e.append("payment_redirect_url",this.dataPayload?.payment_redirect_url??""),this.dataPayload.applications.forEach((n,i)=>{e.append(`applications[${i}][id]`,n?.id?.toString()??"0"),e.append(`applications[${i}][deponent_name]`,n.deponent_name??""),e.append(`applications[${i}][deponent_nin]`,n.deponent_nin+""),e.append(`applications[${i}][town_native]`,n.town_native??""),e.append(`applications[${i}][town_resident]`,n.town_resident??""),e.append(`applications[${i}][state_id]`,n.state_id+""),e.append(`applications[${i}][occupation]`,n.occupation??""),e.append(`applications[${i}][gender]`,n.gender??""),e.append(`applications[${i}][religion]`,n.religion??""),e.append(`applications[${i}][passport_photo_file]`,this.passportPhotoFile[i]??""),e.append(`applications[${i}][signature_file]`,this.signatureFile[i]??""),e.append(`applications[${i}][identity_photo_file]`,this.idCardPhotoFile[i]??""),n.formEntries.forEach((r,a)=>{e.append(`applications[${i}][formEntries][${a}][label]`,r.label??""),e.append(`applications[${i}][formEntries][${a}][placeholder]`,r.placeholder??""),e.append(`applications[${i}][formEntries][${a}][provided_value]`,r.provided_value??""),e.append(`applications[${i}][formEntries][${a}][parent_placeholder]`,r.parent_placeholder??""),e.append(`applications[${i}][formEntries][${a}][is_calculated]`,r.is_calculated??""),e.append(`applications[${i}][formEntries][${a}][format]`,r.format??""),e.append(`applications[${i}][formEntries][${a}][input_type]`,r.input_type??"")})}),this.deletedAppIds.forEach((n,i)=>{e.append(`deleted_ids[${i}]`,n.toString())}),this.affidavitPageStore.startLoading("Updating . . ."),this.affidavitApplicationEndpoint.updateBulk(e).subscribe({next:n=>{this.applicationService.setApplications(n.data.data),this.affidavitPageStore.setRefNo(n.client_ref),this.applicationService.setPaymentEntry(n.paymentEntry),this.affidavitPageStore.toggle("application-detail")},error:n=>{this.appNotificationService.showError({title:"Error",detail:n.error.message}),this.affidavitPageStore.stopLoading()}})}capturePhoto(e){navigator.mediaDevices.getUserMedia({video:!0}).then(n=>{let i=document.createElement("video");i.srcObject=n,i.play();let r=document.createElement("canvas"),a=r.getContext("2d");i.addEventListener("loadeddata",()=>{r.width=i.videoWidth,r.height=i.videoHeight,a.drawImage(i,0,0,r.width,r.height),this.uploadedPassportImage[e]=r.toDataURL("image/png"),this.uploadedIDCard[e]=r.toDataURL("image/png"),n.getTracks().forEach(s=>s.stop())})}).catch(n=>{console.error("Error accessing the camera: ",n)})}handleFileInputIPassportImage(e,n){this.uploadedPassportImage[n]="assets/images/loading.gif";let i;if(e instanceof Event){let s=e.target;if(s.files&&s.files.length>0)i=s.files[0];else{console.error("No files found in the input element.");return}}else typeof e=="string"&&e.startsWith("data:image/")?(this.uploadedPassportImage[n]=e,i=this.dataURLtoFile(e,"passport.png")):i=e;let r=i.type,a=new FileReader;r.startsWith("image/")?(a.onload=()=>{this.uploadedPassportImage[n]=a.result,this.handleFileUpload(this.uploadedPassportImage[n],"passport",n)},a.readAsDataURL(i)):this.appNotificationService.showWarning({title:"Invalid file type.!",detail:"Only JPG, GIF, and PNG are allowed!!!"})}handleFileInputSignatureImage(e,n){this.uploadedSignatureImage[n]="assets/images/loading.gif";let i;if(e instanceof Event){let s=e.target;if(s.files&&s.files.length>0)i=s.files[0];else{console.error("No files found in the input element.");return}}else typeof e=="string"&&e.startsWith("data:image/")?(this.uploadedSignatureImage[n]=e,i=this.dataURLtoFile(e,"signature.png")):i=e;let r=i.type,a=new FileReader;r.startsWith("image/")?(a.onload=()=>{this.uploadedSignatureImage[n]=a.result,this.handleFileUpload(this.uploadedSignatureImage[n],"signature",n)},a.readAsDataURL(i)):this.appNotificationService.showWarning({title:"Invalid file type.!",detail:"Only JPG, GIF, and PNG are allowed!!!"}),this.displaySignatureModal=!1}handleFileInputIDCard(e,n){this.uploadedIDCard[n]="assets/images/loading.gif";let i;if(e instanceof Event){let s=e.target;if(s.files&&s.files.length>0)i=s.files[0];else{console.error("No files found in the input element.");return}}else typeof e=="string"&&e.startsWith("data:image/")?(this.uploadedIDCard[n]=e,i=this.dataURLtoFile(e,"id-card.png")):i=e;let r=i.type,a=new FileReader;r.startsWith("image/")?(a.onload=()=>{this.uploadedIDCard[n]=a.result,this.handleFileUpload(this.uploadedIDCard[n],"id-card",n)},a.readAsDataURL(i)):this.appNotificationService.showWarning({title:"Invalid file type.!",detail:"Only JPG, GIF, and PNG are allowed!!!"})}dataURLtoFile(e,n){let i=e.split(","),r=i[0]?.match(/:(.*?);/),a=r?r[1]:"",s=atob(i[1]),l=s.length,u=new Uint8Array(l);for(;l--;)u[l]=s.charCodeAt(l);return new File([u],n,{type:a})}openCamera(){this.cameraEnabled=!0}openCamera1(){this.cameraEnabled1=!0}startCamera(){this.cameraStarted=!0,this.cameraService.initCamera(this.videoElement.nativeElement)}startCamera1(){this.cameraStarted1=!0,this.cameraService.initCamera(this.videoElement.nativeElement)}getCamera(){this.cameraService.getCamera(this.videoElement.nativeElement)}switchCamera(){this.cameraService.switchCamera(this.videoElement.nativeElement)}initCamera(){this.cameraService.initCamera(this.videoElement.nativeElement)}captureImage(e){let n=this.cameraService.captureImage(this.videoElement.nativeElement);this.handleFileInputIPassportImage(n,e),this.cameraService.stopCamera(this.videoElement.nativeElement),this.stopCamera()}captureImage1(e){let n=this.cameraService.captureImage(this.videoElement.nativeElement);this.handleFileInputIDCard(n,e),this.cameraService.stopCamera(this.videoElement.nativeElement),this.stopCamera()}stopCamera(){this.cameraService.stopCamera(this.videoElement.nativeElement),this.cameraEnabled=!1,this.cameraEnabled1=!1,this.cameraStarted=!1,this.cameraStarted1=!1}handleImageError(e){e.target.src=`data:image/gif;base64,${this.no_image}`}get isNINValidated(){return(this.applicationFormControl.deponent_nin.value+"").length===11}onInput(e){let n=e.target.value;n=n.replace(/\D/g,""),n.length>11&&(n=n.slice(0,11)),this.applicationFormControl.deponent_nin.patchValue(n)}handleFileUpload(e,n,i){if(e)switch(n){case"passport":this.passportPhotoFile[i]=e;break;case"signature":this.signatureFile[i]=e;break;case"id-card":this.idCardPhotoFile[i]=e;break;default:break}}get applicationsArray(){return this.rootForm.get("applications")}get applicationForm(){return this.applicationsArray.at(0)}addDeponent(){return Yn(this,arguments,function*(e={}){this.affidavitTemplate?.id||(this.affidavitTemplate=(yield this.affidavitTemplateEndpoint.single(this.applications[0].application.affidavitTemplate?.id).toPromise())?.data,this.showAffidavitInformationForm=(this.affidavitTemplate?.placeholders?.length||0)>0&&this.affidavitTemplate?.is_clauses_editable!=!0);let n=this.fb.group({deponent_name:this.fb.control(e?.deponent_name,[K.required,K.minLength(3)]),deponent_nin:this.fb.control(e?.deponent_nin,[K.required,K.pattern("^[0-9]*$"),K.minLength(11),K.maxLength(11)]),town_native:this.fb.control(e?.town_native,[K.required,K.minLength(3)]),town_resident:this.fb.control(e?.town_resident,[K.required,K.minLength(3)]),originCountry:this.fb.control(e?.state?.country?.id??null,[K.required]),originState:this.fb.control(e?.state?.id,[K.required,K.minLength(3)]),occupation:this.fb.control(e?.occupation,[K.required,K.minLength(3)]),gender:this.fb.control(e?.gender,[K.required,K.minLength(3)]),religion:this.fb.control(e.religion,[K.required,K.minLength(3)]),formEntries:this.fb.array([]),clauseEntries:this.fb.array([])});if(this.uploadedIDCard.push(e?.identity_card_file??this.no_image),this.uploadedPassportImage.push(e?.passport_photo_file??this.no_image),this.uploadedSignatureImage.push(e?.signature_file??this.no_image),this.passportPhotoFile.push(""),this.signatureFile.push(""),this.idCardPhotoFile.push(""),this.ids.push(e.id??0),e?.is_clauses_editable?(e.clauses.forEach(r=>{n.controls.clauseEntries.push(this.fb.control(r.content,[K.required]))}),this.canShowClausesForm=!0):this.affidavitTemplate?.placeholders.forEach((r,a)=>{this.formEntriesMap?.set(a,r);let s=e?.formEntries?.find(l=>l.placeholder===r.placeholder)?.provided_value;r.is_required?n.controls.formEntries.push(this.fb.control(s,[K.required])):n.controls.formEntries.push(this.fb.control(s,[]))}),this.selectedState.push(),this.affidavitTemplate?.is_clauses_editable){let r=this.fb.control(null,[K.required,K.minLength(3)]);n.controls.clauseEntries.push(r),this.canShowClausesForm=!0}else this.rootForm.controls.affidavit_type_name.setValue(this.affidavitTemplate?.name);this.applicationsArray.push(n);let i=this.applicationsArray.length-1;this.setupDeponentSubscriptions(i)})}removeDeponent(e){if(this.applicationsArray.length==1){this.appNotificationService.showInfo({title:"Oops !",detail:"You must have atleast one deponent in this form"});return}this.deletedAppIds.push(this.ids[e]),this.applicationsArray.removeAt(e),this.statesByDeponent.splice(e,1),this.uploadedPassportImage.splice(e,1),this.uploadedSignatureImage.splice(e,1),this.uploadedIDCard.splice(e,1),this.ids.splice(e,1)}setupDeponentSubscriptions(e){let n=this.applicationsArray.at(e),i=n.get("originCountry"),r=n.get("originState");i?.valueChanges.subscribe(a=>{this.statesByDeponent[e]=this._geoStates.filter(s=>s.country_id==a),r?.reset(null)})}closeDropdown(e){setTimeout(()=>{let n=Array.from(document.querySelectorAll(".p-dropdown-panel")).filter(i=>{let r=window.getComputedStyle(i);return r.display!=="none"&&r.visibility!=="hidden"});if(n.length>0){n[0].style.display="none";let i=document.activeElement;i&&i.classList.contains("p-dropdown")&&i.blur()}},100)}static{this.\u0275fac=function(n){return new(n||t)(M(Mi),M(oi),M(ai),M(to),M(ua),M(Jo),M(Te),M(Xo),M(Mn),M(Zo),M(Si),M(Ti))}}static{this.\u0275cmp=N({type:t,selectors:[["e-affidavit-applications-edit"]],viewQuery:function(n,i){if(n&1&&ae(doe,5),n&2){let r;Q(r=G())&&(i.videoElement=r.first)}},outputs:{toggle:"toggle"},decls:15,vars:4,consts:[["filePassportPhoto",""],["fileIdCard",""],["fileSignature",""],["videoElement",""],["noPassport",""],["noSignature",""],["noIdCard",""],[1,"application-form-container","bulk-create-applications"],[1,"application-form-header"],[1,"header-content"],[1,"application-form-title"],[1,"application-form-subtitle"],[1,"header-actions"],[1,"status-pill"],[1,"pi","pi-users"],["class","status-pill secondary",4,"ngIf"],["class","form-sections",4,"ngIf"],["class","review-sections",4,"ngIf"],[1,"status-pill","secondary"],[1,"pi","pi-exclamation-triangle"],[1,"form-sections"],[3,"formGroup"],["class","form-section workspace-actions",4,"ngIf"],["formArrayName","applications"],[4,"ngFor","ngForOf"],["class","form-section additional-info-section mt-2",4,"ngIf"],[1,"form-section","workspace-actions"],[1,"section-header"],[1,"pi","pi-layer-group"],[1,"section-content","controls-content"],[1,"controls-grid"],[1,"control-card",3,"click"],[1,"control-icon","success"],[1,"pi","pi-user-plus"],[1,"control-label"],[1,"control-icon"],[1,"pi","pi-user-minus"],[1,"form-section","personal-info-section","mt-3",3,"formGroupName"],[1,"pi","pi-id-card"],[1,"badge"],[1,"section-actions"],["pButton","","type","button","pTooltip","Add Deponent","tooltipPosition","top",1,"action-chip","add",3,"click"],["pButton","","type","button","pTooltip","Remove Deponent","tooltipPosition","top",1,"action-chip","remove",3,"click"],[1,"section-content"],["class","file-upload-container",4,"ngIf"],["class","camera-interface",4,"ngIf"],[1,"form-grid"],[1,"form-field"],["for","deponent_name"],[1,"required"],["id","deponent_name","type","text","placeholder","Enter Deponent Name","formControlName","deponent_name","required","",1,"form-input"],["class","error-message",4,"ngIf"],["for","deponent_nin"],["id","deponent_nin","type","text","placeholder","Enter Deponent NIN","formControlName","deponent_nin","required","",1,"form-input",3,"input"],["for","gender"],["placeholder","Select Gender","formControlName","gender","optionLabel","name","optionValue","name",1,"form-dropdown",3,"onChange","options","showClear"],["for","town_native"],["id","town_native","type","text","placeholder","Enter Native Town","formControlName","town_native","required","",1,"form-input"],["for","originCountry"],["placeholder","Select Country of Origin","formControlName","originCountry","optionLabel","name","optionValue","id",1,"form-dropdown",3,"onChange","options","showClear","filter"],["for","originState"],["placeholder","Select State of Origin","formControlName","originState","optionLabel","name","optionValue","id",1,"form-dropdown",3,"onChange","options","showClear","filter"],["for","town_resident"],["id","town_resident","type","text","placeholder","e.g No. 7B Gambia street, Garki","formControlName","town_resident","required","",1,"form-input"],["for","occupation"],["id","occupation","type","text","placeholder","e.g Software Developer, Student","formControlName","occupation","required","",1,"form-input"],["for","religion"],["placeholder","Select Religion","formControlName","religion","optionLabel","name","optionValue","name",1,"form-dropdown",3,"onChange","options","showClear","filter"],["class","sub-form-section affidavit-info-section mt-2",4,"ngIf"],["class","form-section clauses-section mt-2",4,"ngIf"],[1,"file-upload-container"],[1,"upload-grid"],["class","upload-card",4,"ngIf"],[1,"upload-card"],[1,"upload-header"],["class","upload-content",4,"ngIf"],[1,"pi","pi-image"],[1,"upload-content"],["alt","Passport Photo",1,"uploaded-image",3,"src"],[1,"upload-actions"],["pButton","","pRipple","","type","button","label","Upload",1,"upload-btn","primary",3,"click"],["pButton","","pRipple","","type","button","label","Camera",1,"upload-btn","secondary",3,"click"],["type","file","name","ApplicantPassportUpload","id","ApplicantPassportUpload","hidden","","accept","image/*",3,"change"],["alt","ID Card",1,"uploaded-image",3,"src"],["type","file","name","ApplicantIdCardUpload","id","ApplicantIdCardUpload","hidden","","accept","image/*",3,"change"],[1,"pi","pi-pencil"],["alt","Signature",1,"uploaded-image",3,"src"],["type","file","name","ApplicantSigantureUpload","id","ApplicantSigantureUpload","hidden","","accept","image/*",3,"change"],[1,"camera-interface"],[1,"camera-container"],[1,"camera-header"],["type","button","title","Close Camera",1,"camera-close-btn",3,"click"],[1,"pi","pi-times"],[1,"camera-video"],[1,"camera-controls"],["type","button","class","camera-btn start",3,"click",4,"ngIf"],["type","button","class","camera-btn capture",3,"click",4,"ngIf"],["type","button","class","camera-btn switch",3,"click",4,"ngIf"],["type","button",1,"camera-btn","start",3,"click"],[1,"pi","pi-play"],["type","button",1,"camera-btn","capture",3,"click"],[1,"pi","pi-camera"],["type","button",1,"camera-btn","switch",3,"click"],[1,"pi","pi-refresh"],[1,"error-message"],[1,"sub-form-section","affidavit-info-section","mt-2"],[1,"pi","pi-file-text"],["formArrayName","formEntries",1,"form-grid"],["class","form-field",4,"ngIf"],[1,"form-input",3,"id","type","formControlName"],[1,"form-section","clauses-section","mt-2"],[1,"pi","pi-list"],["formArrayName","clauseEntriesControl",1,"clauses-grid"],[1,"clause-card"],[1,"clause-header"],[1,"clause-title"],[1,"clause-number"],[1,"clause-actions"],["type","button","pButton","","icon","pi pi-plus",1,"action-chip","add",3,"click"],["type","button","pButton","","icon","pi pi-trash",1,"action-chip","remove",3,"click"],["id","clause_entry","name","clause_entry","rows","3","maxlength","500","placeholder","That...",1,"clause-textarea",3,"formControlName"],[1,"form-section","additional-info-section","mt-2"],[1,"pi","pi-info-circle"],["for","applicant_email"],["id","applicant_email","type","email","placeholder","Enter Applicant Email","formControlName","applicant_email","required","",1,"form-input"],["for","applicant_phone"],["id","applicant_phone","type","text","placeholder","Enter Applicant Phone Number","formControlName","applicant_phone","required","",1,"form-input"],["for","court"],["placeholder","Select court","formControlName","court","optionLabel","name","optionValue","id",1,"form-dropdown",3,"onChange","options","showClear"],[1,"form-actions"],[1,"action-buttons"],["pButton","","type","button","icon","pi pi-arrow-left","label","Previous",1,"cancel-btn",3,"click"],["pButton","","type","button","icon","pi pi-eye","label","Preview",1,"submit-btn",3,"click","disabled"],[1,"review-sections"],["class","review-section",4,"ngFor","ngForOf"],[1,"review-section"],[1,"review-content"],[1,"review-grid"],[1,"review-item"],[1,"review-label"],[1,"pi","pi-envelope"],[1,"review-value"],[1,"pi","pi-phone"],[1,"pi","pi-map-marker"],[1,"form-actions","review-actions"],["pButton","","type","button","icon","pi pi-arrow-left","label","Review",1,"cancel-btn",3,"click"],["pButton","","type","button","icon","pi pi-save","label","Submit Application",1,"submit-btn",3,"click","disabled"],[1,"pi","pi-user"],[1,"pi","pi-clone"],[1,"pi","pi-globe"],[1,"pi","pi-map"],[1,"pi","pi-home"],[1,"pi","pi-briefcase"],[1,"pi","pi-circle-fill"],["class","review-subsection",4,"ngIf"],[1,"review-subsection"],[1,"subsection-title"],[1,"documents-grid"],[1,"document-card"],[1,"doc-label"],[1,"pi","pi-images"],["class","doc-preview",4,"ngIf","ngIfElse"],["class","review-item",4,"ngIf"],[1,"doc-preview"],["alt","Passport",3,"src"],[1,"not-provided"],["alt","Signature",3,"src"],["alt","ID Card",3,"src"]],template:function(n,i){n&1&&(c(0,"div",7)(1,"div",8)(2,"div",9)(3,"h1",10),g(4,"Edit Affidavit Applications"),d(),c(5,"p",11),g(6," Update deponent records, modify documents, and review changes before submitting to the Federal High Court. "),d()(),c(7,"div",12)(8,"div",13),v(9,"i",14),c(10,"span"),g(11),d()(),_(12,poe,4,0,"div",15),d()(),_(13,Qoe,6,4,"div",16)(14,nre,33,5,"div",17),d()),n&2&&(p(11),se("Total Deponents: ",i.applicationsArray.controls.length,""),p(),m("ngIf",i.rootForm.invalid&&i.displayForm),p(),m("ngIf",i.displayForm),p(),m("ngIf",!i.displayForm))},dependencies:[rt,Ce,wn,Dn,kn,xn,Ui,bo,Fn,Hn,Qo,Ii,Lt,Io,In,wt],styles:['.application-form-container[_ngcontent-%COMP%]{min-height:100vh;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;color:#0f172a;display:flex;flex-direction:column;gap:1.5rem}.application-form-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:2rem;padding:2.75rem;border-radius:24px;background:linear-gradient(135deg,#022c22,#065f46 45%,#0d6449);box-shadow:0 32px 60px #0f172a4d;color:#fff;position:relative;overflow:hidden}.application-form-header[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at top right,rgba(255,255,255,.22),transparent 55%);pointer-events:none}.header-content[_ngcontent-%COMP%]{position:relative;z-index:1}.header-content[_ngcontent-%COMP%] .application-form-title[_ngcontent-%COMP%]{font-size:clamp(2rem,3vw,2.85rem);font-weight:700;margin-bottom:.85rem}.header-content[_ngcontent-%COMP%] .application-form-subtitle[_ngcontent-%COMP%]{margin:0;font-size:1.05rem;line-height:1.6;color:#ffffffd9}.header-actions[_ngcontent-%COMP%]{position:relative;z-index:1;display:flex;flex-direction:column;gap:.75rem}.header-actions[_ngcontent-%COMP%] .status-pill[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.6rem;padding:.6rem 1.1rem;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:#0f172a33;font-weight:600;font-size:.95rem;color:#fefce8;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.header-actions[_ngcontent-%COMP%] .status-pill.secondary[_ngcontent-%COMP%]{background:#065f4673;color:#ffffffe6}.header-actions[_ngcontent-%COMP%] .status-pill[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem}.form-sections[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-sections[_ngcontent-%COMP%] form[_ngcontent-%COMP%], .review-sections[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-section[_ngcontent-%COMP%], .review-section[_ngcontent-%COMP%]{background:#fff;border-radius:24px;padding:2.4rem;box-shadow:0 24px 55px #0f172a1f;border:1px solid #e2e8f0;border-left:5px solid #0d6449;transition:box-shadow .3s ease}.form-section[_ngcontent-%COMP%]:hover, .review-section[_ngcontent-%COMP%]:hover{box-shadow:0 32px 60px #0f172a29}.sub-form-section[_ngcontent-%COMP%]{background:transparent;padding-top:2rem;padding:2.4rem;border-radius:24px;border:1px solid #e2e8f0;transition:box-shadow .3s ease}.sub-form-section[_ngcontent-%COMP%]:hover{box-shadow:0 32px 60px #0f172a29}.section-header[_ngcontent-%COMP%]{margin-bottom:1.75rem;padding-bottom:1rem;border-bottom:2px solid #f1f5f9;display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:1.45rem;font-weight:600;color:#0f172a;display:flex;align-items:center;gap:.75rem}.section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.25rem;color:#0d6449}.section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] .badge[_ngcontent-%COMP%]{background:#0d94882e;color:#0d6449;border-radius:999px;padding:.25rem .65rem;font-size:.75rem;letter-spacing:.05em;text-transform:uppercase}.section-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:.25rem 0 0;color:#64748b;font-size:1rem}.section-actions[_ngcontent-%COMP%]{display:inline-flex;gap:.5rem}.section-actions[_ngcontent-%COMP%] .action-chip[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:12px;border:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:all .3s ease;color:#fff}.section-actions[_ngcontent-%COMP%] .action-chip.add[_ngcontent-%COMP%]{background:linear-gradient(135deg,#10b981,#059669)}.section-actions[_ngcontent-%COMP%] .action-chip.remove[_ngcontent-%COMP%]{background:linear-gradient(135deg,#ef4444,#dc2626)}.section-actions[_ngcontent-%COMP%] .action-chip[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 10px 22px #0f172a1f}.section-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.75rem}.controls-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}.control-card[_ngcontent-%COMP%]{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:1rem 1.25rem;display:flex;align-items:center;gap:.85rem;cursor:pointer;transition:all .3s ease}.control-card.warning[_ngcontent-%COMP%]{border-color:#f9731659}.control-card.disabled[_ngcontent-%COMP%]{opacity:.5;cursor:default}.control-card[_ngcontent-%COMP%]:not(.disabled):hover{transform:translateY(-4px);box-shadow:0 15px 30px #0f172a1f;border-color:#0d948873;background:#fff}.control-card[_ngcontent-%COMP%] .control-icon[_ngcontent-%COMP%]{width:44px;height:44px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;font-size:1.2rem}.control-card[_ngcontent-%COMP%] .control-icon.success[_ngcontent-%COMP%]{background:#10b98126;color:#059669}.control-card[_ngcontent-%COMP%] .control-icon.warning-icon[_ngcontent-%COMP%]{background:#f9731626;color:#f97316}.control-card[_ngcontent-%COMP%] .control-icon.muted[_ngcontent-%COMP%]{background:#94a3b82e;color:#475569}.control-card[_ngcontent-%COMP%] .control-label[_ngcontent-%COMP%]{font-weight:600;color:#0f172a}.file-upload-container[_ngcontent-%COMP%] .upload-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.25rem}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%]{background:#f8fafc;border:2px dashed #d1d5db;border-radius:16px;padding:1.5rem;transition:all .3s ease}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%]:hover{border-color:#0d6449;background:#0d948814;box-shadow:0 15px 30px #0f172a14}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-header[_ngcontent-%COMP%]{text-align:center;margin-bottom:1rem}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-header[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:2rem;color:#0d6449;display:block;margin-bottom:.5rem}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-header[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin:0;font-size:1.1rem;font-weight:600;color:#1f2937}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-header[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{color:#64748b}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .uploaded-image[_ngcontent-%COMP%]{width:120px;height:120px;object-fit:cover;border-radius:16px;border:3px solid #e5e7eb;box-shadow:0 8px 20px #0f172a1a;transition:all .3s ease}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .uploaded-image[_ngcontent-%COMP%]:hover{transform:scale(1.05);border-color:#0d6449;box-shadow:0 15px 30px #0d948840}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:center}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%] .upload-btn[_ngcontent-%COMP%]{border-radius:10px;padding:.6rem 1.25rem;font-weight:600;border:none;cursor:pointer;transition:all .3s ease}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%] .upload-btn.primary[_ngcontent-%COMP%]{background:linear-gradient(135deg,#0d6449,#047857);color:#fff}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%] .upload-btn.primary[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 10px 22px #0d644959}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%] .upload-btn.secondary[_ngcontent-%COMP%]{background:transparent;border:1px solid #d1d5db;color:#475569}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%] .upload-btn.secondary[_ngcontent-%COMP%]:hover{background:#f1f5f9;border-color:#94a3b8}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%]{background:#f8fafc;border-radius:16px;padding:1.5rem;border:1px solid #e2e8f0}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid #e2e8f0}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-header[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin:0;font-size:1.2rem;font-weight:600;color:#0f172a}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-header[_ngcontent-%COMP%] .camera-close-btn[_ngcontent-%COMP%]{width:32px;height:32px;border-radius:50%;border:none;background:#ef4444;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .3s ease}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-header[_ngcontent-%COMP%] .camera-close-btn[_ngcontent-%COMP%]:hover{background:#dc2626;transform:scale(1.1)}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-video[_ngcontent-%COMP%]{width:100%;max-width:520px;height:300px;border-radius:12px;border:2px solid #e2e8f0;margin-bottom:1rem;object-fit:cover}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.75rem;justify-content:center}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn[_ngcontent-%COMP%]{padding:.75rem 1.5rem;border-radius:10px;font-weight:600;border:none;cursor:pointer;transition:all .3s ease}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.start[_ngcontent-%COMP%]{background:linear-gradient(135deg,#0d6449,#047857);color:#fff}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.start[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 12px 24px #0d644959}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.capture[_ngcontent-%COMP%]{background:linear-gradient(135deg,#6366f1,#4f46e5);color:#fff}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.capture[_ngcontent-%COMP%]:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 12px 24px #6366f159}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.capture[_ngcontent-%COMP%]:disabled{background:#94a3b8;cursor:not-allowed;transform:none;box-shadow:none;opacity:.7}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.switch[_ngcontent-%COMP%]{background:transparent;border:1px solid #d1d5db;color:#475569}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.switch[_ngcontent-%COMP%]:hover{background:#f1f5f9;border-color:#94a3b8}.form-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(260px,1fr));gap:1.5rem}@media (max-width: 1024px){.form-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}}.additional-info-section[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.form-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.6rem}.form-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:600;color:#1f2937;font-size:.95rem}.form-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%] .required[_ngcontent-%COMP%]{color:#ef4444}.form-field[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%]{width:100%;padding:1rem 1.1rem;border-radius:14px;border:2px solid #e2e8f0;background:#f8fafc;font-size:.95rem;transition:all .3s ease;color:#0f172a}.form-field[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%]:focus{outline:none;border-color:#0d6449;background:#fff;box-shadow:0 0 0 4px #0d64492e}.form-field[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%]::placeholder{color:#94a3b8}.form-field[_ngcontent-%COMP%] .error-message[_ngcontent-%COMP%]{color:#ef4444;font-size:.85rem;font-weight:500}.form-dropdown[_ngcontent-%COMP%]{width:100%}.form-dropdown[_ngcontent-%COMP%] .p-dropdown{width:100%;border:2px solid #e2e8f0;border-radius:14px;background:#f8fafc;transition:all .3s ease}.form-dropdown[_ngcontent-%COMP%] .p-dropdown:hover{border-color:#0d6449;background:#fff}.form-dropdown[_ngcontent-%COMP%] .p-dropdown.p-focus{border-color:#0d6449;box-shadow:0 0 0 4px #0d64492e;background:#fff}.clauses-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.25rem}.clause-card[_ngcontent-%COMP%]{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:1.25rem;display:flex;flex-direction:column;gap:1rem}.clause-card[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.clause-card[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-title[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.5rem;font-weight:600;color:#0f172a}.clause-card[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-title[_ngcontent-%COMP%] .clause-number[_ngcontent-%COMP%]{background:#0d6449;color:#fff;padding:.2rem .6rem;border-radius:8px;font-size:.8rem;font-weight:700}.clause-card[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-actions[_ngcontent-%COMP%]{display:inline-flex;gap:.4rem}.clause-card[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-actions[_ngcontent-%COMP%] .action-chip[_ngcontent-%COMP%]{width:38px;height:38px;border-radius:10px;border:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:all .3s ease}.clause-card[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-actions[_ngcontent-%COMP%] .action-chip.add[_ngcontent-%COMP%]{background:linear-gradient(135deg,#0d6449,#047857);color:#fff}.clause-card[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-actions[_ngcontent-%COMP%] .action-chip.remove[_ngcontent-%COMP%]{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff}.clause-card[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-actions[_ngcontent-%COMP%] .action-chip[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 10px 20px #0f172a1f}.clause-card[_ngcontent-%COMP%] .clause-textarea[_ngcontent-%COMP%]{width:100%;min-height:130px;padding:1rem;border-radius:12px;border:2px solid #e2e8f0;font-size:.95rem;line-height:1.6;transition:all .3s ease}.clause-card[_ngcontent-%COMP%] .clause-textarea[_ngcontent-%COMP%]:focus{outline:none;border-color:#0d6449;box-shadow:0 0 0 4px #0d64492e}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;gap:1rem;flex-wrap:wrap}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border-radius:14px;padding:.85rem 1.8rem;font-weight:600;transition:all .3s ease;letter-spacing:.01em}.review-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.75rem}.review-content[_ngcontent-%COMP%] .review-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(240px,1fr));gap:1.25rem}@media (max-width: 1024px){.review-content[_ngcontent-%COMP%] .review-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}}.review-content[_ngcontent-%COMP%] .review-item[_ngcontent-%COMP%]{background:#f8fafc;border-radius:16px;padding:1.1rem 1.25rem;border:1px solid #e2e8f0}.review-content[_ngcontent-%COMP%] .review-item[_ngcontent-%COMP%] .review-label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;font-weight:600;color:#0d6449;margin-bottom:.4rem}.review-content[_ngcontent-%COMP%] .review-item[_ngcontent-%COMP%] .review-label[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem}.review-content[_ngcontent-%COMP%] .review-item[_ngcontent-%COMP%] .review-value[_ngcontent-%COMP%]{color:#1f2937;font-weight:500}.review-content[_ngcontent-%COMP%] .review-subsection[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.review-content[_ngcontent-%COMP%] .review-subsection[_ngcontent-%COMP%] .subsection-title[_ngcontent-%COMP%]{font-size:1.15rem;font-weight:600;color:#0f172a;margin:0}.documents-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,minmax(200px,1fr));gap:1rem}@media (max-width: 1024px){.documents-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}}.document-card[_ngcontent-%COMP%]{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:1rem;text-align:center}.document-card[_ngcontent-%COMP%] .doc-label[_ngcontent-%COMP%]{font-weight:600;color:#0d6449;margin-bottom:.75rem;display:inline-flex;align-items:center;gap:.4rem}.document-card[_ngcontent-%COMP%] .doc-preview[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;max-width:160px;border-radius:12px;border:2px solid #e2e8f0;box-shadow:0 10px 24px #0f172a1f}.document-card[_ngcontent-%COMP%] .not-provided[_ngcontent-%COMP%]{color:#94a3b8;font-style:italic}.review-actions[_ngcontent-%COMP%]{justify-content:flex-end}@media (max-width: 1024px){.application-form-container[_ngcontent-%COMP%]{padding:1.25rem}.application-form-header[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}}@media (max-width: 768px){.application-form-container[_ngcontent-%COMP%]{padding:1rem}.application-form-header[_ngcontent-%COMP%]{padding:2.25rem}.header-actions[_ngcontent-%COMP%]{flex-direction:row;flex-wrap:wrap}.form-section[_ngcontent-%COMP%], .review-section[_ngcontent-%COMP%]{padding:2rem}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{width:100%;flex-direction:column}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}}@media (max-width: 480px){.application-form-header[_ngcontent-%COMP%]{padding:1.8rem}.form-section[_ngcontent-%COMP%], .review-section[_ngcontent-%COMP%]{padding:1.6rem}}*[_ngcontent-%COMP%]{transition:all .3s cubic-bezier(.4,0,.2,1)}.cancel-btn[_ngcontent-%COMP%]{background:#ff9f43!important;border:1px solid rgb(255,159,67)!important;color:#0f172a!important;box-shadow:0 12px 24px #ff9f4359}.cancel-btn[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 16px 32px #ff9f4373}.submit-btn[_ngcontent-%COMP%]{background:linear-gradient(135deg,#0d6449,#047857);border:none;color:#fff;box-shadow:0 12px 28px #0d644959}.submit-btn[_ngcontent-%COMP%]:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 18px 35px #0d644973}.submit-btn[_ngcontent-%COMP%]:disabled{background:linear-gradient(135deg,#94a3b8d9,#94a3b8bf);box-shadow:none;cursor:not-allowed;transform:none}']})}}return t})();var ore=["filter"],Qv=()=>({width:"50vw"}),iO=()=>({"960px":"75vw","640px":"100vw"}),rre=t=>({name:"rrr",value:t}),are=t=>[t];function sre(t,o){if(t&1){let e=D();c(0,"button",81),I("click",function(){C(e);let i=f(4);return y(i.showRrrDialog())}),v(1,"i",82),c(2,"span"),g(3,"View RRR"),d()()}}function lre(t,o){if(t&1){let e=D();c(0,"div",74)(1,"div",57)(2,"div",58),v(3,"img",75),d(),c(4,"div",60)(5,"h4",61),g(6,"Remita"),d(),c(7,"p",62),g(8,"Bank transfer and online payment"),d()()(),c(9,"div",63)(10,"div",64)(11,"span",65),g(12,"Amount"),d(),c(13,"span",66),g(14),_t(15,"currency"),d()(),c(16,"div",76)(17,"remitapay",77),I("callback",function(i){C(e);let r=f(3);return y(r.processPayment(i,"remita"))}),d()(),c(18,"button",78),v(19,"i",79),c(20,"span"),g(21,"Pay with Remita"),d()(),_(22,sre,4,0,"button",80),d()()}if(t&2){let e=f(3);p(3),m("src",e.remita_icon,Ae),p(11),k(Ji(15,13,e.getPaymentAmount("remita"),"NGN","symbol-narrow","1.2-2")),p(3),H("p-button-sm p-button-raised p-0 m-0"),m("email",e.paymentEmail)("customerId",e.paymentEmail)("firstName",e.paymentEntry.payee_name||"")("lastName",e.paymentEntry.payee_name||"")("processRrr",!0)("customFields",ie(20,are,ie(18,rre,e.paymentEntry.rrr)))("amount",e.getPaymentAmount("remita"))("narration","Payment"),p(5),m("ngIf",e.paymentEntry==null?null:e.paymentEntry.rrr)}}function cre(t,o){if(t&1&&(c(0,"div",83)(1,"div",57)(2,"div",58),v(3,"img",84),d(),c(4,"div",60)(5,"h4",61),g(6,"Quick Teller"),d(),c(7,"p",62),g(8,"Interswitch payment platform"),d()()(),c(9,"div",63)(10,"div",64)(11,"span",65),g(12,"Amount"),d(),c(13,"span",66),g(14),_t(15,"currency"),d()(),c(16,"div",85),g(17,"Integration coming soon"),d()()()),t&2){let e=f(3);p(14),k(Ji(15,1,e.getPaymentAmount("quickteller"),"NGN","symbol-narrow","1.2-2"))}}function dre(t,o){if(t&1){let e=D();c(0,"div",86)(1,"div",57)(2,"div",58),v(3,"img",87),d(),c(4,"div",60)(5,"h4",61),g(6,"Cash Payment"),d(),c(7,"p",62),g(8,"Pay through any High Court agent"),d()()(),c(9,"div",63)(10,"div",64)(11,"span",65),g(12,"Amount"),d(),c(13,"span",66),g(14),_t(15,"currency"),d()(),c(16,"button",88),I("click",function(){C(e);let i=f(3);return y(i.showDialog())}),v(17,"i",89),c(18,"span"),g(19,"View Details"),d()()()()}if(t&2){let e=f(3);p(14),k(Ji(15,1,e.getPaymentAmount("revenue"),"NGN","symbol-narrow","1.2-2"))}}function pre(t,o){if(t&1){let e=D();c(0,"div",48)(1,"div",49)(2,"h3"),v(3,"i",50),g(4," Select Payment Method"),d(),c(5,"button",51),I("click",function(){C(e);let i=f(2);return y(i.closePaySection())}),v(6,"i",52),d()(),c(7,"div",53)(8,"div",54)(9,"div",55)(10,"div",56)(11,"div",57)(12,"div",58),v(13,"img",59),d(),c(14,"div",60)(15,"h4",61),g(16,"Paystack"),d(),c(17,"p",62),g(18,"Secure online payment with cards"),d()()(),c(19,"div",63)(20,"div",64)(21,"span",65),g(22,"Amount"),d(),c(23,"span",66),g(24),_t(25,"currency"),d()(),c(26,"div",67)(27,"angular4-paystack",68),I("onClose",function(){C(e);let i=f(2);return y(i.cancelPaystackPayment())})("callback",function(i){C(e);let r=f(2);return y(r.processPayment(i,"paystack"))}),c(28,"button",69,0),v(30,"i",50),c(31,"span"),g(32,"Pay with Paystack"),d()()()(),c(33,"button",70),I("click",function(){C(e);let i=de(29);return y(i.click())}),v(34,"i",50),c(35,"span"),g(36,"Pay with Paystack"),d()()()(),_(37,lre,23,22,"div",71)(38,cre,18,6,"div",72)(39,dre,20,6,"div",73),d()()()()}if(t&2){let e=f(2);p(13),m("src",e.paystack_icon,Ae),p(11),k(Ji(25,12,e.getPaymentAmount("paystack"),"NGN","symbol-narrow","1.2-2")),p(3),H("p-button-sm p-button-raised p-0 m-0"),m("email",e.paymentEmail)("amount",e.calculateAmount(e.getPaymentAmount("paystack"))*100)("ref",e.paymentReference)("key",e.paystackKey)("split_code",e.getSplitCode("paystack")),p(10),m("ngIf",!1),p(),m("ngIf",!1),p(),m("ngIf",!1)}}function ure(t,o){}function mre(t,o){if(t&1){let e=D();c(0,"a",90),v(1,"button",91),d(),c(2,"button",92),I("click",function(){C(e);let i=f(2);return y(i.closeCashPayModal())}),d()}}function fre(t,o){}function hre(t,o){if(t&1){let e=D();c(0,"a",90),v(1,"button",91),d(),c(2,"button",92),I("click",function(){C(e);let i=f(2);return y(i.closeRrrModal())}),d()}}function gre(t,o){t&1&&v(0,"p-tag",123)}function Are(t,o){t&1&&v(0,"p-tag",124)}function _re(t,o){t&1&&v(0,"p-tag",125)}function vre(t,o){t&1&&v(0,"p-tag",126)}function bre(t,o){if(t&1&&(c(0,"div",130)(1,"span",131),g(2),d(),c(3,"span",132),g(4),d()()),t&2){let e=o.$implicit;p(2),k(e.label),p(2),k(e.provided_value)}}function Cre(t,o){if(t&1&&(c(0,"div",128),_(1,bre,5,2,"div",129),d()),t&2){let e=f(2).$implicit;p(),m("ngForOf",e.application==null?null:e.application.formEntries)}}function yre(t,o){if(t&1&&(c(0,"div",100)(1,"div",49)(2,"h3"),v(3,"i",101),g(4," Affidavit Information"),d()(),c(5,"div",53),_(6,Cre,2,1,"div",127),d()()),t&2){let e=f().$implicit;p(6),m("ngIf",e.application==null||e.application.formEntries==null?null:e.application.formEntries.length)}}function xre(t,o){t&1&&(c(0,"div",133),g(1,"Not Provided"),d())}function wre(t,o){if(t&1&&v(0,"img",134),t&2){let e=f().$implicit;m("src",e.application.passport_photo_file,Ae)}}function Ire(t,o){t&1&&(c(0,"div",133),g(1,"Not Provided"),d())}function Mre(t,o){if(t&1&&v(0,"img",135),t&2){let e=f().$implicit;m("src",e.application.signature_file,Ae)}}function Sre(t,o){t&1&&(c(0,"div",133),g(1,"Not Provided"),d())}function Ere(t,o){if(t&1&&v(0,"img",136),t&2){let e=f().$implicit;m("src",e.application.identity_card_file,Ae)}}function Ore(t,o){if(t&1){let e=D();B(0),c(1,"div",93)(2,"div",94)(3,"div",32)(4,"h4",95),g(5,"Application ID"),d(),c(6,"p",96),g(7),d()()(),c(8,"div",97)(9,"div",32)(10,"h4",95),g(11,"Affidavit Type"),d(),c(12,"p",96),g(13),d()()(),c(14,"div",98)(15,"div",32)(16,"h4",95),g(17,"Deponent Name"),d(),c(18,"p",96),g(19),d()()(),c(20,"div",99)(21,"div",32)(22,"h4",95),g(23,"Payment Status"),d(),c(24,"p",96),g(25),d()()()(),c(26,"div",100)(27,"div",49)(28,"h3"),v(29,"i",101),g(30," Application Details"),d()(),c(31,"div",53)(32,"div",102)(33,"div",103)(34,"span",104),g(35,"Application ID"),d(),c(36,"span",105),g(37),c(38,"i",106),I("click",function(){let i=C(e).$implicit,r=f(2);return y(r.copyRefNo(i.application.ref_no))}),d()()(),c(39,"div",103)(40,"span",104),g(41,"Date/Time Created"),d(),c(42,"span",105),g(43),_t(44,"date"),d()(),c(45,"div",103)(46,"span",104),g(47,"Payment Reference"),d(),c(48,"span",105),g(49),c(50,"i",106),I("click",function(){C(e);let i=f(2);return y(i.copyRefNo(i.paymentEntry.ref_id))}),d()()(),c(51,"div",103)(52,"span",104),g(53,"Application Status"),d(),c(54,"span",105),_(55,gre,1,0,"p-tag",107)(56,Are,1,0,"p-tag",108)(57,_re,1,0,"p-tag",109)(58,vre,1,0,"p-tag",110),d()()()()(),c(59,"div",100)(60,"div",49)(61,"h3"),v(62,"i",111),g(63," Personal Information"),d()(),c(64,"div",53)(65,"div",102)(66,"div",103)(67,"span",104),g(68,"Deponent NIN"),d(),c(69,"span",105),g(70),d()(),c(71,"div",103)(72,"span",104),g(73,"Native Town"),d(),c(74,"span",105),g(75),d()(),c(76,"div",103)(77,"span",104),g(78,"Country of Origin"),d(),c(79,"span",105),g(80),d()(),c(81,"div",103)(82,"span",104),g(83,"State of Origin"),d(),c(84,"span",105),g(85),d()(),c(86,"div",103)(87,"span",104),g(88,"Place of Residence"),d(),c(89,"span",105),g(90),d()(),c(91,"div",103)(92,"span",104),g(93,"Occupation"),d(),c(94,"span",105),g(95),d()(),c(96,"div",103)(97,"span",104),g(98,"Gender"),d(),c(99,"span",105),g(100),d()(),c(101,"div",103)(102,"span",104),g(103,"Religion"),d(),c(104,"span",105),g(105),d()()()()(),_(106,yre,7,1,"div",112),c(107,"div",100)(108,"div",49)(109,"h3"),v(110,"i",113),g(111," Supporting Documents"),d()(),c(112,"div",53)(113,"div",114)(114,"div",115)(115,"span",116),g(116,"Passport Photo"),d(),c(117,"div",117),_(118,xre,2,0,"div",118)(119,wre,1,1,"img",119),d()(),c(120,"div",115)(121,"span",116),g(122,"Signature Photo"),d(),c(123,"div",117),_(124,Ire,2,0,"div",118)(125,Mre,1,1,"img",120),d()(),c(126,"div",115)(127,"span",116),g(128,"ID Card"),d(),c(129,"div",117),_(130,Sre,2,0,"div",118)(131,Ere,1,1,"img",121),d()(),c(132,"div",115)(133,"span",116),g(134,"Preferred Court"),d(),c(135,"div",117)(136,"span",122),g(137),d()()()()()(),z()}if(t&2){let e=o.$implicit,n=f(2);p(7),k(e.application.ref_no||"Not available"),p(6),k(e.application.affidavit_type_name||"Not set"),p(6),k(e.application.deponent_name||"Not set"),p(),m("ngClass",n.paymentEntry.status=="paid"?"success":"warning"),p(5),k(n.paymentEntry.status=="paid"?"Paid":"Not Paid"),p(12),se(" ",e.application.ref_no," "),p(6),k(Xt(44,28,e.application.created_at,"MMM d, y, h:mm a")),p(6),se(" ",n.paymentEntry.ref_id," "),p(6),m("ngIf",(e.application==null?null:e.application.status)=="approved"),p(),m("ngIf",(e.application==null?null:e.application.status)=="draft"),p(),m("ngIf",(e.application==null?null:e.application.status)=="queried"),p(),m("ngIf",(e.application==null?null:e.application.status)=="pending"),p(12),k(e.application.deponent_nin||"Not set"),p(5),k(e.application.town_native||"Not set"),p(5),k(e.application.state.country.name||"Not set"),p(5),k(e.application.state.name||"Not set"),p(5),k(e.application.town_resident||"Not set"),p(5),k(e.application.occupation||"Not set"),p(5),k(e.application.gender||"Not set"),p(5),k(e.application.religion||"Not set"),p(),m("ngIf",n.shouldDisplayAffidavitSection),p(12),m("ngIf",!e.application.passport_photo_file),p(),m("ngIf",e.application.passport_photo_file),p(5),m("ngIf",!e.application.signature_file),p(),m("ngIf",e.application.signature_file),p(5),m("ngIf",!e.application.identity_card_file),p(),m("ngIf",e.application.identity_card_file),p(6),k(e.application.court.name?e.application.court.name:"Value not set")}}function Tre(t,o){if(t&1){let e=D();c(0,"button",137),I("click",function(){C(e);let i=f(2);return y(i.displayPaySection())}),d()}}function Pre(t,o){if(t&1){let e=D();c(0,"button",138),I("click",function(){C(e);let i=f(2);return y(i.goToEdit())}),d()}}function Dre(t,o){if(t&1){let e=D();c(0,"button",139),I("click",function(){C(e);let i=f(2);return y(i.affidavitPreview())}),d()}}function kre(t,o){if(t&1){let e=D();c(0,"div",148)(1,"p",149),g(2,"To Acknowledge/Approve Query Changes"),d(),c(3,"button",150),I("click",function(){C(e);let i=f(3);return y(i.approveQueryChanges())}),d()()}}function Fre(t,o){if(t&1&&(c(0,"div",30)(1,"div",31)(2,"h3"),g(3,"Last Query"),d()(),c(4,"div",32)(5,"div",140)(6,"p",141),g(7),d(),c(8,"div",142)(9,"span",143),g(10),_t(11,"date"),d(),c(12,"div",144)(13,"span",145),g(14,"Acknowledged:"),d(),v(15,"p-tag",146),d()(),_(16,kre,4,0,"div",147),d()()()),t&2){let e,n=f(2);p(7),k((e=n.applicationQuery==null?null:n.applicationQuery.query)!==null&&e!==void 0?e:"(not set)"),p(3),k(Xt(11,5,n.applicationQuery==null?null:n.applicationQuery.created_at,"MMM d, y, h:mm a")),p(5),m("value",n.applicationQuery!=null&&n.applicationQuery.is_acknowledged?"Yes":"No")("severity",n.applicationQuery!=null&&n.applicationQuery.is_acknowledged?"success":"danger"),p(),m("ngIf",(n.applicationQuery==null?null:n.applicationQuery.was_edited_once)&&(n.applicationQuery==null?null:n.applicationQuery.is_acknowledged)==!1)}}function Rre(t,o){if(t&1){let e=D();c(0,"button",151),I("click",function(){C(e);let i=f(2);return y(i.displayIDCardModal=!1)}),d()}}function Vre(t,o){if(t&1){let e=D();c(0,"div",2)(1,"div",3)(2,"div",4)(3,"h1",5),g(4,"Applications Details"),d(),c(5,"p",6),g(6,"View and manage your bulk affidavit applications"),d()(),c(7,"div",7)(8,"div",8),v(9,"i",9),c(10,"span"),g(11),d()()()(),_(12,pre,40,17,"div",10),c(13,"p-dialog",11),jt("visibleChange",function(i){C(e);let r=f();return Wt(r.displayCashModal,i)||(r.displayCashModal=i),y(i)}),_(14,ure,0,0,"ng-template",12),c(15,"div",13),v(16,"button",14),c(17,"div",15)(18,"span",16),g(19," Copy the "),c(20,"strong",17),g(21,"Payment Reference Number"),d(),g(22," below and present to any High Court agent with the sum of "),c(23,"strong",17),g(24),_t(25,"number"),d(),g(26," to proceed with the affidavit cash payment. "),d()(),c(27,"div",18)(28,"span",19),g(29,"Payee"),d(),c(30,"div",20),g(31),d()(),c(32,"div",18)(33,"span",19),g(34,"Payment Reference Number"),d(),c(35,"div",20),g(36),c(37,"button",21),I("click",function(){C(e);let i=f();return y(i.copyRefNo(i.paymentEntry.ref_id))}),d()()()(),_(38,mre,3,0,"ng-template",22),d(),c(39,"p-dialog",23),jt("visibleChange",function(i){C(e);let r=f();return Wt(r.displayRrrModal,i)||(r.displayRrrModal=i),y(i)}),_(40,fre,0,0,"ng-template",12),c(41,"div",13),v(42,"button",24),c(43,"div",15)(44,"span",16),g(45," Copy the "),c(46,"strong",17),g(47,"RRR"),d(),g(48," below and use any Remita payment channel to pay the sum of "),c(49,"strong",17),g(50),_t(51,"number"),d(),g(52," to proceed with your request. "),d()(),c(53,"div",18)(54,"span",19),g(55,"Payee"),d(),c(56,"div",20),g(57),d()(),c(58,"div",18)(59,"span",19),g(60,"RRR"),d(),c(61,"div",20),g(62),c(63,"button",25),I("click",function(){C(e);let i=f();return y(i.copyCode(i.paymentEntry.rrr))}),d()()()(),_(64,hre,3,0,"ng-template",22),d(),c(65,"div",26)(66,"div",27),_(67,Ore,138,31,"ng-container",28),d(),c(68,"div",29)(69,"div",30)(70,"div",31)(71,"h3"),g(72,"Quick Actions"),d()(),c(73,"div",32)(74,"div",33),_(75,Tre,1,0,"button",34)(76,Pre,1,0,"button",35)(77,Dre,1,0,"button",36),c(78,"button",37),I("click",function(){C(e);let i=f();return y(i.goBack())}),d()()()(),c(79,"div",30)(80,"div",31)(81,"h3"),g(82,"Applicant Information"),d()(),c(83,"div",32)(84,"div",38)(85,"div",39),v(86,"i",40),c(87,"span"),g(88),d()(),c(89,"div",41),v(90,"i",42),c(91,"span"),g(92),d()()()()(),_(93,Fre,17,8,"div",43),d()(),c(94,"p-dialog",44),jt("visibleChange",function(i){C(e);let r=f();return Wt(r.displayIDCardModal,i)||(r.displayIDCardModal=i),y(i)}),c(95,"div",45),v(96,"img",46),d(),_(97,Rre,1,0,"ng-template",22),d(),v(98,"p-toast",47),d()}if(t&2){let e,n=f();p(8),m("ngClass",n.paymentEntry.status=="paid"?"success":"warning"),p(),$e("pi-check-circle",n.paymentEntry.status=="paid")("pi-clock",n.paymentEntry.status!="paid"),p(2),k(n.paymentEntry.status=="paid"?"Paid":"Not Paid"),p(),m("ngIf",n.displayPaymentSection),p(),It(Pe(45,Qv)),Ht("visible",n.displayCashModal),m("closable",!1)("modal",!0)("breakpoints",Pe(46,iO)),p(11),se("\u20A6",Xt(25,39,n.paymentEntry.total,"1.2-2"),""),p(7),k(n.applications[0].application.deponent_name),p(5),se(" ",n.paymentEntry.ref_id," "),p(3),It(Pe(47,Qv)),Ht("visible",n.displayRrrModal),m("closable",!1)("modal",!0)("breakpoints",Pe(48,iO)),p(11),se("\u20A6",Xt(51,42,n.paymentEntry.total,"1.2-2"),""),p(7),k((e=n.applications[0].application.applicant_email)!==null&&e!==void 0?e:""),p(5),se(" ",n.paymentEntry.rrr," "),p(5),m("ngForOf",n.applications),p(8),m("ngIf",n.paymentEntry.status!="paid"),p(),m("ngIf",(n.applications[0].application==null?null:n.applications[0].application.status)==="draft"||(n.applications[0].application==null?null:n.applications[0].application.status)==="queried"),p(),m("ngIf",(n.applications[0].application==null?null:n.applications[0].application.status)=="approved"&&(n.applications[0].application==null?null:n.applications[0].application.is_paid)&&!n.previewAffidavit),p(11),k(n.applications[0].application.applicant_email||"Not provided"),p(4),k(n.applications[0].application.applicant_phone||"Not provided"),p(),m("ngIf",n.applicationQuery==null?null:n.applicationQuery.query),p(),It(Pe(49,Qv)),Ht("visible",n.displayIDCardModal),m("modal",!0)("draggable",!1)("resizable",!1),p(2),m("src",n.applications[0].application.passport_photo_file,Ae)}}function Lre(t,o){if(t&1){let e=D();c(0,"div",2)(1,"div",152)(2,"h1",153),g(3),d(),c(4,"p",154),g(5,"Please verify the reference and try again."),d(),c(6,"button",155),I("click",function(){C(e);let i=f();return y(i.goBack())}),d()()()}if(t&2){let e=f();p(3),se("Application with ",e.client_ref," Not Found")}}var oO=(()=>{class t{constructor(e,n,i,r,a,s,l,u,h,A,b){this.paymentEndpoint=e,this.clipboardApi=n,this.messageService=i,this.applicationService=r,this.paymentKeysEndpoint=a,this.affidavitPageStore=s,this.affidavitAppEndpoint=l,this.affidavitApplicationQueryEndpoint=u,this.paymentOptionsSettingEndpoint=h,this.revenuePaymentEntryEndpoint=A,this.appNotificationService=b,this.getApplications=new V,this.apiMode=null,this.apiBaseUrl="",this.client_ref="",this.applications=[],this.currentState=me.currentState,this.paystack_icon="data:image/png;base64,"+pt.paystack_icon,this.no_image="data:image/png;base64,"+pt.no_image,this.remita_icon=pt.remita_icon,this.shouldDisplayAffidavitSection=!1,this.paystackKey="",this.remitaKey="",this.remitaMode="",this.lastPaymentRef="",this.paymentEmail="",this.paymentAmount=0,this.canEdit=!1,this.hasQuery=!1,this.displayCashModal=!1,this.displayRrrModal=!1,this.displayIDCardModal=!1,this.displayPaymentSection=!1,this.allowCashPayment=!1,this.allowOnlinePayment=!1,this.allowRemitaPayment=!1,this.allowInterswitchPayment=!1,this.interswitchMerchantCode=me.interswitch_mechant_code,this.interswitchItemId=me.interswitch_pay_item,this.interswitch_paymentMode=me.interswitch_mode,this.pdfLogo="assets/images/logo-pdf.png",this.docxLogo="assets/images/logo-docx.png",this.docLogo="assets/images/logo-doc.jpeg",this.showHeader=!0,this.previewAffidavit=!1,this.allowPassportUpload=!1,this.allowOathCommissionerSignaturePhoto=!1,this.stateTitle=me.stateTitleSentence,this.is_loading=!0,this.affidavitPageStore.stopLoading(),this.affidavitPageStore.setRefNo(this.applicationService.getClientRef()),this.affidavitPageStore.mode$.subscribe({next:x=>{this.apiMode=x;let w=this.apiMode??Fe.TEST;this.apiBaseUrl=w===Fe.PRODUCTION?me.productionApiUrl:me.testApiUrl}})}ngOnInit(){this.client_ref=this.applicationService.getClientRef(),this.affidavitPageStore.startLoading("Fetching Data . . ."),this.client_ref&&this.getAppByClientRef(),this.paymentOptionsSettingEndpoint.single(1).subscribe({next:e=>{this.paymentSetting=e.data,this.allowCashPayment=this.paymentSetting?.allow_cash_payment,this.allowOnlinePayment=this.paymentSetting?.allow_online_payment}}),this.paymentKeysEndpoint.fetchPaymentKeys().subscribe({next:e=>{this.paystackKey=e.paystack_key,this.remitaKey=e.remita_key,this.remitaMode=e.remita_mode}}),this.is_loading=!1}getAppByClientRef(){this.affidavitPageStore.startLoading("Loading . . ."),this.affidavitAppEndpoint.singleByClientRef(this.client_ref).subscribe(e=>{this.applications=e.data.data,this.paymentEntry=e.paymentEntry,this.applicationService.setPaymentEntry(this.paymentEntry),this.shouldDisplayAffidavitSection=this.applications[0].application.formEntries?.length>0,this.getApplications.emit(this.applications),this.affidavitPageStore.stopLoading(),this.loadPaymentInfo()},e=>{this.appNotificationService.showError({title:e.error,detail:e.message}),this.affidavitPageStore.stopLoading(),this.affidavitPageStore.toggle("new")})}onGlobalFilter(e,n){e.filterGlobal(n.target.value,"contains")}clear(e){e.clear(),this.filter.nativeElement.value=""}loadQuery(e){return Yn(this,null,function*(){this.applicationQuery=(yield this.affidavitApplicationQueryEndpoint.single(e).toPromise())?.data})}approveQueryChanges(){}closePaySection(){this.displayPaymentSection=!1}displayPaySection(){this.displayPaymentSection=!0}loadPaymentInfo(){this.paymentEmail=this.applications[0]?.application.applicant_email??"",this.paymentAmount=this.paymentEntry?.total*100}confirmIfPaid(){this.revenuePaymentEntryEndpoint.isPaid(this.applications[0].application?.revenuePaymentEntry?.ref_id).subscribe({next:e=>{e.paid?(this.appNotificationService.showSuccess({title:"Success!!",detail:"Payment has been received successfully!"}),location.reload()):this.appNotificationService.showInfo({title:"Info!!",detail:"Payment has not been received."})},error:e=>{this.appNotificationService.showError({title:"Error!!",detail:"An error occurred while attempting to check payment status..."})}})}goBack(){this.affidavitPageStore.toggle("new")}goToEdit(){this.affidavitPageStore.startLoading("Fetching Data . . ."),this.affidavitPageStore.toggle("edit-application")}get paymentReference(){return this.lastPaymentRef=this.paymentEntry?.ref_id+"__"+Date.now().toString(),this.lastPaymentRef}cancelPaystackPayment(){console.log("Paystack Payment cancelled...")}copyRefNo(e){this.clipboardApi.copyFromContent(e),this.messageService.add({severity:"success",summary:e,detail:"Was Copied Successfully"})}printpart(){var e=window.open("");e?.document.write(document.getElementById("printCashRef").innerHTML),e?.stop(),e?.print(),e?.close()}processPayment(e,n){this.affidavitPageStore.startLoading("Processing . . .");let i;switch(n){case si.PAYSTACK:i={email:this.paymentEmail,amount:this.paymentAmount,client_tx_ref:e.reference,host_tx_ref:e.transaction,prn:this.paymentEntry?.ref_id,host_response_payload:JSON.stringify(e),payment_method:si.PAYSTACK};break;case si.REMITA:i={email:this.paymentEmail,amount:this.paymentAmount,client_tx_ref:this.lastPaymentRef,host_tx_ref:e.transaction,prn:this.paymentEntry?.ref_id,host_response_payload:JSON.stringify(e),payment_method:si.REMITA};break;default:return}this.paymentEndpoint.processPayment(i).subscribe({next:r=>{this.appNotificationService.showSuccess({title:"Success!!",detail:"Your payment has been recieved!"}),this.paymentEntry=r.revenuePaymentEntry,this.closePaySection(),this.getAppByClientRef(),this.affidavitPageStore.stopLoading()},error:r=>{this.affidavitPageStore.stopLoading(),this.appNotificationService.showError({title:"Error!!",detail:r.message||r})}})}showDialog(){this.displayCashModal=!0}closeCashPayModal(){this.displayCashModal=!1}affidavitPreview(){this.affidavitPageStore.startLoading("Loading Affidavit . . ."),this.affidavitPageStore.setRefNo(this.client_ref),this.affidavitPageStore.toggle("affidavit-detail")}handleImageError(e){e.target.src=this.no_image}calculateAmount(e){return El(e)}getPaymentAmount(e){return(this.applications[0]?.application.split_codes?.find(r=>r.payment_method.code===e)?.payment_method.txn_fee??0)+(this.paymentEntry?.total||0)}getSplitCode(e){let n=this.applications[0]?.application.split_codes?.find(r=>r.payment_method.code===e),i=n?.split_codes.code;if((n?.split_codes.type=="json"||n?.split_codes.type=="calculated")&&(i=JSON.parse(JSON.stringify(i)),n.split_codes.type=="calculated")){let r=n.split_codes.amount_field,a=JSON.parse(i);a.forEach(s=>{s[r]=r.percentage/100*(this.paymentEntry?.total||1)}),i=a}return i||""}showRrrDialog(){this.displayRrrModal=!0}closeRrrModal(){this.displayRrrModal=!1}copyCode(e){this.clipboardApi.copyFromContent(e),this.messageService.add({severity:"success",summary:e,detail:"Was Copied Successfully"})}validateFile(e){if(e){let n=e.slice(-4),i=this.apiBaseUrl+"/file/get/"+e;switch(n){case".pdf":i=this.pdfLogo;break;case".doc":i=this.docLogo;break;case"docx":i=this.docxLogo;break;case"":i="assets/images/noimage.gif";break}return i}return""}static{this.\u0275fac=function(n){return new(n||t)(M(fa),M(Ol),M(wi),M(Si),M(ha),M(Te),M(ai),M(ga),M(oo),M(Tl),M(Mn))}}static{this.\u0275cmp=N({type:t,selectors:[["e-affidavit-applications-details-page"]],viewQuery:function(n,i){if(n&1&&ae(ore,5),n&2){let r;Q(r=G())&&(i.filter=r.first)}},outputs:{getApplications:"getApplications"},decls:2,vars:2,consts:[["paystackButton",""],["class","application-detail-container",4,"ngIf"],[1,"application-detail-container"],[1,"application-header"],[1,"header-content"],[1,"application-title"],[1,"application-subtitle"],[1,"header-actions"],[1,"status-badge",3,"ngClass"],[1,"pi"],["class","section-card payment-section mb-3",4,"ngIf"],["id","printCashRef",3,"visibleChange","visible","closable","modal","breakpoints"],["pTemplate","header"],[1,"cash-modal"],["pButton","","type","button","label","CASH PAYMENT INFORMATION","disabled","",1,"p-button-outlined","p-button-success","w-full","text-xl"],[1,"alert-body","printRef"],[1,"blck-font","text-lg","font-bold","d-block"],[1,"green-font"],[1,"modal-field"],[1,"label"],[1,"value"],["pButton","","type","button","icon","pi pi-clone","title","Copy Reference Number",1,"p-button-outlined","p-button-success","p-button-rounded",3,"click"],["pTemplate","footer"],["id","printCashRef1",3,"visibleChange","visible","closable","modal","breakpoints"],["pButton","","type","button","label","Remita RRR Information","disabled","",1,"p-button-outlined","p-button-success","w-full","text-xl"],["pButton","","type","button","icon","pi pi-clone","title","Copy RRR",1,"p-button-outlined","p-button-success","p-button-rounded",3,"click"],[1,"content-grid"],[1,"main-content"],[4,"ngFor","ngForOf"],[1,"sidebar"],[1,"sidebar-card"],[1,"card-header"],[1,"card-content"],[1,"action-buttons"],["pButton","","type","button","icon","pi pi-credit-card","label","Proceed to Payment","class","action-btn success",3,"click",4,"ngIf"],["pButton","","type","button","icon","pi pi-file-edit","label","Edit Application","class","action-btn info",3,"click",4,"ngIf"],["pButton","","type","button","icon","pi pi-eye","label","Preview Affidavit","class","action-btn info",3,"click",4,"ngIf"],["pButton","","type","button","icon","pi pi-arrow-left","label","Go Back",1,"action-btn","danger",3,"click"],[1,"contact-info"],[1,"info-row","mb-3"],[1,"pi","pi-envelope","text-primary","mr-3"],[1,"info-row"],[1,"pi","pi-phone","text-primary","mr-3"],["class","sidebar-card",4,"ngIf"],["header","Identity Card",3,"visibleChange","visible","modal","draggable","resizable"],[1,"modal-content"],["onerror","this.src='assets/images/id-vector.png';","alt","Identity Card",1,"id-image",3,"src"],["position","top-right"],[1,"section-card","payment-section","mb-3"],[1,"section-header"],[1,"pi","pi-credit-card"],["type","button",1,"close-btn",3,"click"],[1,"pi","pi-times"],[1,"section-content"],[1,"payment-gateway-container"],[1,"payment-methods-grid"],[1,"payment-method-card","paystack-card"],[1,"payment-card-header"],[1,"payment-icon"],["alt","Paystack",1,"payment-logo",3,"src"],[1,"payment-info"],[1,"payment-title"],[1,"payment-description"],[1,"payment-card-content"],[1,"payment-amount"],[1,"amount-label"],[1,"amount-value"],[1,"hidden-paystack-wrapper"],[3,"onClose","callback","email","amount","ref","key","split_code"],["id","p-button","type","button",1,"hidden-paystack-btn"],["type","button",1,"modern-paystack-btn-custom",3,"click"],["class","payment-method-card remita-card",4,"ngIf"],["class","payment-method-card quickteller-card",4,"ngIf"],["class","payment-method-card cash-card",4,"ngIf"],[1,"payment-method-card","remita-card"],["alt","Remita",1,"payment-logo",3,"src"],[1,"hidden-remita-wrapper"],[3,"callback","email","customerId","firstName","lastName","processRrr","customFields","amount","narration"],["type","button",1,"modern-remita-btn-custom"],[1,"pi","pi-building"],["type","button","class","view-rrr-btn",3,"click",4,"ngIf"],["type","button",1,"view-rrr-btn",3,"click"],[1,"pi","pi-eye"],[1,"payment-method-card","quickteller-card"],["src","assets/images/quick-teller.png","alt","Quickteller",1,"payment-logo"],[1,"coming-soon-note"],[1,"payment-method-card","cash-card"],["src","assets/images/cash-payment.png","alt","Cash",1,"payment-logo"],["type","button",1,"modern-cash-btn",3,"click"],[1,"pi","pi-wallet"],["id","btnPrint","type","button","href","javascript:window.print();","rippleEffect","","title","Print",1,"btn","btn-info","no-print"],["pButton","","type","button","icon","pi pi-print","label","Print",1,"p-button-success"],["pButton","","type","button","icon","pi pi-times","label","Close",1,"p-button-outlined","p-button-danger",3,"click"],[1,"overview-grid"],[1,"overview-card","primary"],[1,"card-title"],[1,"card-value"],[1,"overview-card","secondary"],[1,"overview-card","success"],[1,"overview-card",3,"ngClass"],[1,"section-card"],[1,"pi","pi-file-text"],[1,"info-grid"],[1,"info-item"],[1,"info-label"],[1,"info-value"],["pTooltip","Copy to clipboard","tooltipPosition","top",1,"pi","pi-clone",2,"cursor","pointer",3,"click"],["value","Approved","severity","success","styleClass","m-2",4,"ngIf"],["value","Draft","severity","warning","styleClass","m-2",4,"ngIf"],["value","Queried","severity","danger","styleClass","m-2",4,"ngIf"],["value","Pending","severity","warning","styleClass","m-2",4,"ngIf"],[1,"pi","pi-user"],["class","section-card",4,"ngIf"],[1,"pi","pi-images"],[1,"documents-grid"],[1,"document-item"],[1,"doc-label"],[1,"doc-content"],["class","no-doc",4,"ngIf"],["class","doc-image","onerror","this.src='assets/images/noimage.gif';","alt","Passport Photo",3,"src",4,"ngIf"],["class","doc-image","onerror","this.src='assets/images/noimage.gif';","alt","Signature Photo",3,"src",4,"ngIf"],["class","doc-image","onerror","this.src='assets/images/noimage.gif';","alt","ID Card",3,"src",4,"ngIf"],[1,"court-name"],["value","Approved","severity","success","styleClass","m-2"],["value","Draft","severity","warning","styleClass","m-2"],["value","Queried","severity","danger","styleClass","m-2"],["value","Pending","severity","warning","styleClass","m-2"],["class","entries-grid",4,"ngIf"],[1,"entries-grid"],["class","entry-item",4,"ngFor","ngForOf"],[1,"entry-item"],[1,"entry-label"],[1,"entry-value"],[1,"no-doc"],["onerror","this.src='assets/images/noimage.gif';","alt","Passport Photo",1,"doc-image",3,"src"],["onerror","this.src='assets/images/noimage.gif';","alt","Signature Photo",1,"doc-image",3,"src"],["onerror","this.src='assets/images/noimage.gif';","alt","ID Card",1,"doc-image",3,"src"],["pButton","","type","button","icon","pi pi-credit-card","label","Proceed to Payment",1,"action-btn","success",3,"click"],["pButton","","type","button","icon","pi pi-file-edit","label","Edit Application",1,"action-btn","info",3,"click"],["pButton","","type","button","icon","pi pi-eye","label","Preview Affidavit",1,"action-btn","info",3,"click"],[1,"query-content"],[1,"query-text"],[1,"query-meta"],[1,"query-date"],[1,"query-status"],[1,"status-label"],["styleClass","ml-2",3,"value","severity"],["class","query-actions",4,"ngIf"],[1,"query-actions"],[1,"query-hint"],["pButton","","type","button","icon","pi pi-check","label","Click here!",1,"approve-btn",3,"click"],["pButton","","type","button","icon","pi pi-check","label","Close",1,"p-button-danger","p-button-outlined",3,"click"],[1,"section-card",2,"text-align","center","padding","4rem 2rem"],[1,"text-700","font-xl","mb-3"],[1,"text-600","mb-4"],["pButton","","type","button","icon","pi pi-arrow-left","label","Go Back",1,"p-button-secondary","p-button-outlined",3,"click"]],template:function(n,i){n&1&&_(0,Vre,99,50,"div",1)(1,Lre,7,1,"div",1),n&2&&(m("ngIf",i.applications.length>0&&!i.is_loading&&!i.previewAffidavit),p(),m("ngIf",i.applications.length==0&&!i.is_loading))},dependencies:[De,rt,Ce,pl,_m,Lt,fe,In,Wo,Dl,er,rl,al,Uo],styles:['#p-button[_ngcontent-%COMP%]{margin:-50px!important}.card-min-h[_ngcontent-%COMP%]{min-height:140px}@media print{@page{margin:0!important;padding:0!important}.no-print[_ngcontent-%COMP%], .show[_ngcontent-%COMP%], .main-page[_ngcontent-%COMP%]{visibility:hidden!important;background-color:#fff!important}.printRef[_ngcontent-%COMP%]{max-width:100%!important;height:100px!important;flex:0 0 100%!important}.modal-content[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{visibility:visible;overflow:visible}.main-page[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{display:none}.modal[_ngcontent-%COMP%]{position:absolute;left:0;top:0;margin:0;padding:0;visibility:visible;overflow:visible!important}.modal-dialog[_ngcontent-%COMP%]{visibility:visible!important;overflow:visible!important}}.pulse-button[_ngcontent-%COMP%]{background:#5a99d4;cursor:pointer;box-shadow:0 0 #5a99d480;-webkit-animation:_ngcontent-%COMP%_pulse 1.5s infinite;animation:_ngcontent-%COMP%_pulse 1.5s infinite}.pulse-button[_ngcontent-%COMP%]:hover{-webkit-animation:none;animation:none}@-webkit-keyframes _ngcontent-%COMP%_pulse{70%{box-shadow:0 0 0 50px #5a99d400}to{box-shadow:0 0 #5a99d400}}@keyframes _ngcontent-%COMP%_pulse{70%{box-shadow:0 0 0 50px #5a99d400}to{box-shadow:0 0 #5a99d400}}.application-detail-container[_ngcontent-%COMP%]{padding:1rem 1.5rem 2rem;background:linear-gradient(135deg,#f8fafc,#f1f5f9,#e2e8f0);min-height:100vh;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;position:relative}.application-detail-container[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;height:200px;background:linear-gradient(135deg,#022c220d,#0478570d);z-index:0;pointer-events:none}.application-detail-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{position:relative;z-index:1}.application-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem;padding:2.5rem 3rem;background:linear-gradient(135deg,#022c22,#047857 45%,#0d6449);border-radius:24px;box-shadow:0 25px 50px #00000026,0 0 0 1px #ffffff1a;color:#fff;position:relative;overflow:hidden}.application-header[_ngcontent-%COMP%]:before{content:"";position:absolute;top:-50%;right:-50%;width:200%;height:200%;background:radial-gradient(circle,rgba(255,255,255,.1) 0%,transparent 70%);animation:_ngcontent-%COMP%_pulse 8s ease-in-out infinite}.header-content[_ngcontent-%COMP%] h1.application-title[_ngcontent-%COMP%]{font-size:2.5rem;font-weight:700;margin:0 0 .5rem;background:linear-gradient(45deg,#fff,#f0f0f0);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.header-content[_ngcontent-%COMP%] .application-subtitle[_ngcontent-%COMP%]{font-size:1.1rem;opacity:.9;margin:0;font-weight:400}.header-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}.header-actions[_ngcontent-%COMP%] .status-badge[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;background:#fff3;color:#fff;border:1px solid rgba(255,255,255,.3);padding:.75rem 1.5rem;border-radius:50px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font-size:.875rem;font-weight:500}.header-actions[_ngcontent-%COMP%] .status-badge.success[_ngcontent-%COMP%]{background:#22c55e4d;border-color:#22c55e80}.header-actions[_ngcontent-%COMP%] .status-badge.warning[_ngcontent-%COMP%]{background:#fbbf244d;border-color:#fbbf2480}.header-actions[_ngcontent-%COMP%] .status-badge.danger[_ngcontent-%COMP%]{background:#ef44444d;border-color:#ef444480}.header-actions[_ngcontent-%COMP%] .status-badge.default[_ngcontent-%COMP%]{background:#9ca3af4d;border-color:#9ca3af80}.header-actions[_ngcontent-%COMP%] .status-badge[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem}.header-actions[_ngcontent-%COMP%] .ref-number[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;background:#fff3;padding:.75rem 1.5rem;border-radius:50px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.3);font-family:Monaco,Menlo,monospace;font-weight:500}.header-actions[_ngcontent-%COMP%] .ref-number[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.2rem}.header-actions[_ngcontent-%COMP%] .ref-number[_ngcontent-%COMP%] .copy-btn[_ngcontent-%COMP%]{background:none;border:none;color:#fff;cursor:pointer;padding:.25rem;border-radius:4px;transition:background-color .2s}.header-actions[_ngcontent-%COMP%] .ref-number[_ngcontent-%COMP%] .copy-btn[_ngcontent-%COMP%]:hover{background:#fff3}.content-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(250px,.8fr);gap:1rem;align-items:start}@media (max-width: 1280px){.content-grid[_ngcontent-%COMP%]{grid-template-columns:minmax(0,1.35fr) minmax(260px,.85fr)}}@media (max-width: 1024px){.content-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}.main-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.section-card[_ngcontent-%COMP%]{background:#fff;border-radius:20px;box-shadow:0 4px 20px #00000014,0 0 0 1px #0000000a;border:1px solid rgba(226,232,240,.8);overflow:hidden;transition:all .4s cubic-bezier(.4,0,.2,1);position:relative}.section-card[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#10b981,#059669,#047857);opacity:0;transition:opacity .3s ease}.section-card[_ngcontent-%COMP%]:hover{box-shadow:0 12px 40px #00000026,0 0 0 1px #10b98133;transform:translateY(-4px);border-color:#10b9814d}.section-card[_ngcontent-%COMP%]:hover:before{opacity:1}.section-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:1.75rem 2.5rem;background:linear-gradient(135deg,#f8fafc,#f1f5f9,#e2e8f0);border-bottom:2px solid rgba(16,185,129,.1);position:relative}.section-header[_ngcontent-%COMP%]:after{content:"";position:absolute;bottom:0;left:0;width:60px;height:3px;background:linear-gradient(90deg,#10b981,#059669);border-radius:0 3px 3px 0}.section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:1.25rem;font-weight:600;color:#1e293b;display:flex;align-items:center;gap:.75rem}.section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#64748b;font-size:1.1rem}.section-header[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%]{background:none;border:none;color:#64748b;cursor:pointer;padding:.5rem;border-radius:8px;transition:all .2s}.section-header[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%]:hover{background:#f1f5f9;color:#475569}.section-header[_ngcontent-%COMP%] .add-doc-btn[_ngcontent-%COMP%]{background:#10b981;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s;display:flex;align-items:center;gap:.5rem}.section-header[_ngcontent-%COMP%] .add-doc-btn[_ngcontent-%COMP%]:hover{background:#059669;transform:translateY(-1px)}.section-content[_ngcontent-%COMP%]{padding:2.5rem}.form-footer[_ngcontent-%COMP%], .summary-actions[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:1rem;margin-top:1.5rem}.form-footer[_ngcontent-%COMP%] .cancel-btn[_ngcontent-%COMP%], .form-footer[_ngcontent-%COMP%] .back-btn[_ngcontent-%COMP%], .summary-actions[_ngcontent-%COMP%] .cancel-btn[_ngcontent-%COMP%], .summary-actions[_ngcontent-%COMP%] .back-btn[_ngcontent-%COMP%]{background:#ff9f43!important;border:1px solid rgb(255,159,67)!important;color:#0f172a!important;box-shadow:0 12px 24px #ff9f4359}.form-footer[_ngcontent-%COMP%] .cancel-btn[_ngcontent-%COMP%]:hover, .form-footer[_ngcontent-%COMP%] .back-btn[_ngcontent-%COMP%]:hover, .summary-actions[_ngcontent-%COMP%] .cancel-btn[_ngcontent-%COMP%]:hover, .summary-actions[_ngcontent-%COMP%] .back-btn[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 16px 32px #ff9f4373}.overview-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem;margin-bottom:2rem}.overview-card[_ngcontent-%COMP%]{background:#fff;border-radius:18px;padding:2rem;box-shadow:0 4px 20px #00000014,0 0 0 1px #0000000a;border:1px solid rgba(241,245,249,.8);transition:all .4s cubic-bezier(.4,0,.2,1);display:flex;align-items:center;gap:1rem;position:relative;overflow:hidden}.overview-card[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;width:5px;height:100%;background:linear-gradient(180deg,#10b981,#059669,#047857);transition:width .3s ease}.overview-card[_ngcontent-%COMP%]:hover{transform:translateY(-6px) scale(1.02);box-shadow:0 12px 40px #10b98133,0 0 0 1px #10b9814d;border-color:#10b98166}.overview-card[_ngcontent-%COMP%]:hover:before{width:6px}.overview-card.primary[_ngcontent-%COMP%], .overview-card.secondary[_ngcontent-%COMP%], .overview-card.success[_ngcontent-%COMP%], .overview-card.warning[_ngcontent-%COMP%]{border-left:none}.overview-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%]{flex:1}.overview-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{margin:0 0 .5rem;font-size:.875rem;font-weight:500;color:#64748b;text-transform:uppercase;letter-spacing:.05em}.overview-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .card-value[_ngcontent-%COMP%]{margin:0;font-size:1.125rem;font-weight:600;color:#1e293b}.info-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem}.info-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem;padding:1.25rem;background:linear-gradient(135deg,#f8fafc,#fff);border-radius:12px;border:1px solid rgba(226,232,240,.6);transition:all .3s ease;position:relative;overflow:hidden}.info-item[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;width:3px;height:100%;background:linear-gradient(180deg,#10b981,#059669);opacity:0;transition:opacity .3s ease}.info-item[_ngcontent-%COMP%]:hover{transform:translate(4px);box-shadow:0 4px 12px #10b98126;border-color:#10b9814d;background:linear-gradient(135deg,#f0fdf4,#fff)}.info-item[_ngcontent-%COMP%]:hover:before{opacity:1}.info-item[_ngcontent-%COMP%] .info-label[_ngcontent-%COMP%]{display:block;font-size:.875rem;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.08em;margin-bottom:.25rem}.info-item[_ngcontent-%COMP%] .info-value[_ngcontent-%COMP%]{font-size:1.1rem;color:#1e293b;font-weight:600;line-height:1.5}.sidebar[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;position:sticky;top:2rem}@media (max-width: 1024px){.sidebar[_ngcontent-%COMP%]{position:static}}.sidebar-card[_ngcontent-%COMP%]{background:#fff;border-radius:20px;box-shadow:0 4px 20px #00000014,0 0 0 1px #0000000a;border:1px solid rgba(241,245,249,.8);overflow:hidden;transition:all .3s ease;position:relative}.sidebar-card[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#10b981,#059669);opacity:0;transition:opacity .3s ease}.sidebar-card[_ngcontent-%COMP%]:hover{box-shadow:0 8px 30px #10b98126,0 0 0 1px #10b98133;transform:translateY(-2px)}.sidebar-card[_ngcontent-%COMP%]:hover:before{opacity:1}.sidebar-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]{padding:1.5rem 2rem;background:linear-gradient(135deg,#f8fafc,#f1f5f9,#e2e8f0);border-bottom:2px solid rgba(16,185,129,.1);position:relative}.sidebar-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]:after{content:"";position:absolute;bottom:0;left:0;width:50px;height:3px;background:linear-gradient(90deg,#10b981,#059669);border-radius:0 3px 3px 0}.sidebar-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:1.125rem;font-weight:600;color:#1e293b}.sidebar-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%]{padding:1.5rem}.contact-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.info-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;font-size:.95rem;color:#1e293b}.query-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.query-text[_ngcontent-%COMP%]{font-size:.95rem;color:#1e293b;line-height:1.6;margin:0}.query-meta[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;font-size:.875rem;color:#64748b}.query-date[_ngcontent-%COMP%]{font-weight:500}.query-status[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.status-label[_ngcontent-%COMP%]{font-weight:500}.query-actions[_ngcontent-%COMP%]{margin-top:1rem;padding-top:1rem;border-top:1px solid #e2e8f0}.query-hint[_ngcontent-%COMP%]{font-size:.875rem;color:#64748b;margin-bottom:.5rem}.approve-btn[_ngcontent-%COMP%]{width:100%;background:#10b981;color:#fff;border:none;padding:.75rem 1rem;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s}.approve-btn[_ngcontent-%COMP%]:hover{background:#059669;transform:translateY(-1px)}.action-buttons[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.action-buttons[_ngcontent-%COMP%] .action-btn[_ngcontent-%COMP%]{width:100%;padding:.875rem 1rem;border:none;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;gap:.5rem}.action-buttons[_ngcontent-%COMP%] .action-btn.primary[_ngcontent-%COMP%]{background:#3b82f6;color:#fff}.action-buttons[_ngcontent-%COMP%] .action-btn.primary[_ngcontent-%COMP%]:hover{background:#2563eb;transform:translateY(-1px)}.action-buttons[_ngcontent-%COMP%] .action-btn.success[_ngcontent-%COMP%]{background:#10b981;color:#fff}.action-buttons[_ngcontent-%COMP%] .action-btn.success[_ngcontent-%COMP%]:hover{background:#059669;transform:translateY(-1px)}.action-buttons[_ngcontent-%COMP%] .action-btn.info[_ngcontent-%COMP%]{background:#06b6d4;color:#fff}.action-buttons[_ngcontent-%COMP%] .action-btn.info[_ngcontent-%COMP%]:hover{background:#0891b2;transform:translateY(-1px)}.action-buttons[_ngcontent-%COMP%] .action-btn.warning[_ngcontent-%COMP%]{background:#f59e0b;color:#fff}.action-buttons[_ngcontent-%COMP%] .action-btn.warning[_ngcontent-%COMP%]:hover{background:#d97706;transform:translateY(-1px)}.action-buttons[_ngcontent-%COMP%] .action-btn.danger[_ngcontent-%COMP%]{background:#ef4444;color:#fff}.action-buttons[_ngcontent-%COMP%] .action-btn.danger[_ngcontent-%COMP%]:hover{background:#dc2626;transform:translateY(-1px)}.entries-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem}.entry-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.entry-label[_ngcontent-%COMP%]{font-size:.875rem;font-weight:500;color:#64748b;text-transform:uppercase;letter-spacing:.05em}.entry-value[_ngcontent-%COMP%]{font-size:1rem;color:#1e293b;font-weight:500}.documents-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem}.document-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;padding:1.5rem;background:linear-gradient(135deg,#f8fafc,#fff);border-radius:16px;border:1px solid rgba(226,232,240,.6);transition:all .3s ease;position:relative;overflow:hidden}.document-item[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;width:3px;height:100%;background:linear-gradient(180deg,#10b981,#059669);opacity:0;transition:opacity .3s ease}.document-item[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 8px 20px #10b98126;border-color:#10b9814d;background:linear-gradient(135deg,#f0fdf4,#fff)}.document-item[_ngcontent-%COMP%]:hover:before{opacity:1}.doc-label[_ngcontent-%COMP%]{font-size:.875rem;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.08em}.doc-content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:150px;background:linear-gradient(135deg,#fff,#f8fafc);border-radius:14px;border:2px dashed rgba(226,232,240,.8);transition:all .3s ease}.document-item[_ngcontent-%COMP%]:hover .doc-content[_ngcontent-%COMP%]{border-color:#10b9814d;background:linear-gradient(135deg,#f0fdf4,#fff)}.no-doc[_ngcontent-%COMP%]{color:#94a3b8;font-size:.875rem;font-style:italic}.doc-image[_ngcontent-%COMP%]{max-width:100%;max-height:200px;border-radius:8px;object-fit:contain}.court-name[_ngcontent-%COMP%]{font-size:1rem;color:#1e293b;font-weight:500}.payment-gateway-container[_ngcontent-%COMP%]{padding:2rem;background:transparent;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.payment-methods-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:1.5rem;max-width:1200px;margin:0 auto}.payment-method-card[_ngcontent-%COMP%]{background:#fff;border-radius:24px;padding:2rem;box-shadow:0 10px 30px #0000001a,0 0 0 1px #0000000d;border:1px solid rgba(241,245,249,.8);transition:all .4s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.payment-method-card[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--card-gradient-start),var(--card-gradient-end))}.payment-method-card[_ngcontent-%COMP%]:hover{transform:translateY(-6px) scale(1.02);box-shadow:0 25px 50px #10b98140,0 0 0 1px #10b9814d;border-color:#10b98166}.payment-method-card.paystack-card[_ngcontent-%COMP%], .payment-method-card.remita-card[_ngcontent-%COMP%], .payment-method-card.quickteller-card[_ngcontent-%COMP%], .payment-method-card.cash-card[_ngcontent-%COMP%], .payment-method-card.paydirect-card[_ngcontent-%COMP%], .payment-method-card.zenith-card[_ngcontent-%COMP%]{--card-gradient-start: #10b981;--card-gradient-end: #059669}.payment-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;margin-bottom:1.5rem}.payment-card-header[_ngcontent-%COMP%] .payment-icon[_ngcontent-%COMP%]{width:60px;height:60px;border-radius:16px;background:#f8fafc;display:flex;align-items:center;justify-content:center;border:2px solid #e5e7eb;transition:all .3s ease}.payment-card-header[_ngcontent-%COMP%] .payment-icon[_ngcontent-%COMP%] .payment-logo[_ngcontent-%COMP%]{width:40px;height:40px;object-fit:contain}.payment-card-header[_ngcontent-%COMP%] .payment-info[_ngcontent-%COMP%]{flex:1}.payment-card-header[_ngcontent-%COMP%] .payment-info[_ngcontent-%COMP%] .payment-title[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:600;margin:0 0 .25rem;color:#1f2937}.payment-card-header[_ngcontent-%COMP%] .payment-info[_ngcontent-%COMP%] .payment-description[_ngcontent-%COMP%]{font-size:.875rem;color:#6b7280;margin:0;line-height:1.4}.payment-card-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.payment-card-content[_ngcontent-%COMP%] .payment-amount[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:1rem;background:#f8fafc;border-radius:12px;border:1px solid #e5e7eb}.payment-card-content[_ngcontent-%COMP%] .payment-amount[_ngcontent-%COMP%] .amount-label[_ngcontent-%COMP%]{font-size:.875rem;color:#6b7280;font-weight:500}.payment-card-content[_ngcontent-%COMP%] .payment-amount[_ngcontent-%COMP%] .amount-value[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:700;color:#1f2937}.modern-paystack-btn-custom[_ngcontent-%COMP%], .modern-remita-btn-custom[_ngcontent-%COMP%], .modern-quickteller-btn[_ngcontent-%COMP%], .modern-cash-btn[_ngcontent-%COMP%], .modern-paydirect-btn[_ngcontent-%COMP%], .modern-zenith-btn[_ngcontent-%COMP%]{width:100%;padding:1.25rem 1.75rem;border:none;border-radius:16px;font-weight:700;font-size:1.1rem;cursor:pointer;transition:all .4s cubic-bezier(.4,0,.2,1);display:flex;align-items:center;justify-content:center;gap:.875rem;position:relative;overflow:hidden;text-transform:uppercase;letter-spacing:.5px;min-height:56px;background:linear-gradient(135deg,#10b981,#059669,#047857);color:#fff;box-shadow:0 6px 20px #10b9814d}.modern-paystack-btn-custom[_ngcontent-%COMP%]:before, .modern-remita-btn-custom[_ngcontent-%COMP%]:before, .modern-quickteller-btn[_ngcontent-%COMP%]:before, .modern-cash-btn[_ngcontent-%COMP%]:before, .modern-paydirect-btn[_ngcontent-%COMP%]:before, .modern-zenith-btn[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent);transition:left .6s cubic-bezier(.4,0,.2,1)}.modern-paystack-btn-custom[_ngcontent-%COMP%]:after, .modern-remita-btn-custom[_ngcontent-%COMP%]:after, .modern-quickteller-btn[_ngcontent-%COMP%]:after, .modern-cash-btn[_ngcontent-%COMP%]:after, .modern-paydirect-btn[_ngcontent-%COMP%]:after, .modern-zenith-btn[_ngcontent-%COMP%]:after{content:"";position:absolute;top:50%;left:50%;width:0;height:0;background:#ffffff26;border-radius:50%;transform:translate(-50%,-50%);transition:all .6s cubic-bezier(.4,0,.2,1)}.modern-paystack-btn-custom[_ngcontent-%COMP%]:hover:before, .modern-remita-btn-custom[_ngcontent-%COMP%]:hover:before, .modern-quickteller-btn[_ngcontent-%COMP%]:hover:before, .modern-cash-btn[_ngcontent-%COMP%]:hover:before, .modern-paydirect-btn[_ngcontent-%COMP%]:hover:before, .modern-zenith-btn[_ngcontent-%COMP%]:hover:before{left:100%}.modern-paystack-btn-custom[_ngcontent-%COMP%]:hover:after, .modern-remita-btn-custom[_ngcontent-%COMP%]:hover:after, .modern-quickteller-btn[_ngcontent-%COMP%]:hover:after, .modern-cash-btn[_ngcontent-%COMP%]:hover:after, .modern-paydirect-btn[_ngcontent-%COMP%]:hover:after, .modern-zenith-btn[_ngcontent-%COMP%]:hover:after{width:300px;height:300px}.modern-paystack-btn-custom[_ngcontent-%COMP%]:hover, .modern-remita-btn-custom[_ngcontent-%COMP%]:hover, .modern-quickteller-btn[_ngcontent-%COMP%]:hover, .modern-cash-btn[_ngcontent-%COMP%]:hover, .modern-paydirect-btn[_ngcontent-%COMP%]:hover, .modern-zenith-btn[_ngcontent-%COMP%]:hover{transform:translateY(-3px) scale(1.02);box-shadow:0 12px 35px #10b98180;background:linear-gradient(135deg,#059669,#047857,#065f46)}.modern-paystack-btn-custom[_ngcontent-%COMP%]:active, .modern-remita-btn-custom[_ngcontent-%COMP%]:active, .modern-quickteller-btn[_ngcontent-%COMP%]:active, .modern-cash-btn[_ngcontent-%COMP%]:active, .modern-paydirect-btn[_ngcontent-%COMP%]:active, .modern-zenith-btn[_ngcontent-%COMP%]:active{transform:translateY(-1px) scale(.98);transition:all .1s ease}.modern-paystack-btn-custom[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .modern-remita-btn-custom[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .modern-quickteller-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .modern-cash-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .modern-paydirect-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .modern-zenith-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.25rem;transition:all .3s cubic-bezier(.4,0,.2,1);z-index:1;position:relative}.modern-paystack-btn-custom[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .modern-remita-btn-custom[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .modern-quickteller-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .modern-cash-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .modern-paydirect-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .modern-zenith-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{z-index:1;position:relative}.modern-paystack-btn-custom[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%], .modern-remita-btn-custom[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%], .modern-quickteller-btn[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%], .modern-cash-btn[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%], .modern-paydirect-btn[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%], .modern-zenith-btn[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%]{transform:scale(1.15) rotate(5deg)}.view-rrr-btn[_ngcontent-%COMP%]{width:100%;margin-top:.75rem;padding:.875rem 1.25rem;background:linear-gradient(135deg,#10b981,#059669,#047857);border:none;border-radius:12px;color:#fff;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);display:flex;align-items:center;justify-content:center;gap:.625rem;position:relative;overflow:hidden;box-shadow:0 4px 15px #10b98133}.view-rrr-btn[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .5s}.view-rrr-btn[_ngcontent-%COMP%]:hover{background:linear-gradient(135deg,#059669,#047857,#065f46);transform:translateY(-2px);box-shadow:0 8px 25px #10b98166}.view-rrr-btn[_ngcontent-%COMP%]:hover:before{left:100%}.view-rrr-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem;transition:transform .3s ease;color:#fff}.view-rrr-btn[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%]{transform:scale(1.1)}.hidden-paystack-wrapper[_ngcontent-%COMP%], .hidden-remita-wrapper[_ngcontent-%COMP%], .hidden-quickteller-wrapper[_ngcontent-%COMP%]{position:absolute;top:-9999px;left:-9999px;opacity:0;pointer-events:none;z-index:-1;width:1px;height:1px;overflow:hidden}.hidden-paystack-btn[_ngcontent-%COMP%], .hidden-remita-btn[_ngcontent-%COMP%], .hidden-quickteller-btn[_ngcontent-%COMP%]{display:none}.cash-modal[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.25rem}.modal-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.35rem}.modal-field[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:.85rem;font-weight:600;color:#22c55e;letter-spacing:.04em;text-transform:uppercase}.modal-field[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;font-size:1.2rem;font-weight:600;color:#0f172a}.alert-body[_ngcontent-%COMP%]{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:12px;padding:1.25rem;color:#0f172a}.payment-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%]{padding-bottom:2rem}.coming-soon-note[_ngcontent-%COMP%]{text-align:center;padding:1rem;color:#6b7280;font-style:italic}.modal-content[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:2rem}.id-image[_ngcontent-%COMP%]{max-width:100%;max-height:500px;border-radius:8px;object-fit:contain}@media (max-width: 768px){.application-detail-container[_ngcontent-%COMP%]{padding:1rem}.payment-methods-grid[_ngcontent-%COMP%]{grid-template-columns:1fr;gap:1rem}.payment-method-card[_ngcontent-%COMP%]{padding:1.25rem}.application-header[_ngcontent-%COMP%]{flex-direction:column;gap:1rem;text-align:center;padding:1.5rem}.header-content[_ngcontent-%COMP%] h1.application-title[_ngcontent-%COMP%]{font-size:2rem}.header-actions[_ngcontent-%COMP%]{flex-direction:column;align-items:center;gap:.75rem}.status-badge[_ngcontent-%COMP%]{width:100%;justify-content:center}.content-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.sidebar[_ngcontent-%COMP%]{position:static}.sidebar-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]{text-align:center}.action-buttons[_ngcontent-%COMP%]{flex-direction:row;flex-wrap:wrap;justify-content:center;gap:.75rem}.action-btn[_ngcontent-%COMP%]{width:calc(50% - .375rem)}.overview-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.overview-card[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:.75rem}.info-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.payment-gateway-container[_ngcontent-%COMP%]{padding:0}.payment-methods-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.payment-method-card[_ngcontent-%COMP%]{flex-direction:row;align-items:center;gap:1rem;padding:1rem}.payment-method-card[_ngcontent-%COMP%] .payment-icon[_ngcontent-%COMP%]{width:4rem;height:4rem}.payment-method-card[_ngcontent-%COMP%] .payment-info[_ngcontent-%COMP%] .payment-title[_ngcontent-%COMP%]{font-size:1rem}.payment-method-card[_ngcontent-%COMP%] .payment-info[_ngcontent-%COMP%] .payment-description[_ngcontent-%COMP%]{font-size:.8rem}.payment-method-card[_ngcontent-%COMP%] .payment-card-content[_ngcontent-%COMP%]{flex-direction:row;align-items:center;gap:1rem}.payment-method-card[_ngcontent-%COMP%] .payment-amount[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:.5rem}.payment-method-card[_ngcontent-%COMP%] .modern-paystack-btn-custom[_ngcontent-%COMP%], .payment-method-card[_ngcontent-%COMP%] .modern-remita-btn-custom[_ngcontent-%COMP%], .payment-method-card[_ngcontent-%COMP%] .modern-quickteller-btn[_ngcontent-%COMP%], .payment-method-card[_ngcontent-%COMP%] .modern-zenith-btn[_ngcontent-%COMP%], .payment-method-card[_ngcontent-%COMP%] .modern-cash-btn[_ngcontent-%COMP%], .payment-method-card[_ngcontent-%COMP%] .modern-paydirect-btn[_ngcontent-%COMP%], .payment-method-card[_ngcontent-%COMP%] .view-rrr-btn[_ngcontent-%COMP%]{width:100%;justify-content:center}}']})}}return t})();var Bre=["videoElement"];function zre(t,o){t&1&&(c(0,"div",18),v(1,"i",19),c(2,"span"),g(3,"Incomplete Form"),d()())}function Hre(t,o){if(t&1){let e=D();c(0,"div",26)(1,"div",27)(2,"h3"),v(3,"i",28),g(4," Workspace Controls"),d(),c(5,"p"),g(6,"Use the quick controls to manage deponent profiles across this bulk submission."),d()(),c(7,"div",29)(8,"div",30)(9,"div",31),I("click",function(){C(e);let i=f(2);return y(i.addDeponent())}),c(10,"div",32),v(11,"i",33),d(),c(12,"div",34),g(13,"Add New Deponent"),d()(),c(14,"div",31),I("click",function(){C(e);let i=f(2);return y(i.applicationsArray.controls.length>0&&i.removeDeponent(i.applicationsArray.controls.length-1))}),c(15,"div",35),v(16,"i",36),d(),c(17,"div",34),g(18,"Remove Last Deponent"),d()()()()()}if(t&2){let e=f(2);p(14),$e("disabled",e.applicationsArray.controls.length===0)("warning",e.applicationsArray.controls.length>0),p(),$e("warning-icon",e.applicationsArray.controls.length>0)("muted",e.applicationsArray.controls.length===0)}}function jre(t,o){if(t&1){let e=D();c(0,"button",84),I("click",function(i){return C(e),f(5).openCamera(),y(i.preventDefault())}),d()}}function Ure(t,o){if(t&1){let e=D();c(0,"div",73)(1,"div",74),v(2,"i",80),c(3,"h4"),g(4,"Passport Photo"),d(),c(5,"small"),g(6,"JPG, GIF or PNG. Max 800kB"),d()(),c(7,"div",75),v(8,"img",81),c(9,"div",77)(10,"button",78),I("click",function(){C(e);let i=de(13);return y(i.click())}),d(),_(11,jre,1,0,"button",82),d(),c(12,"input",83,1),I("change",function(i){C(e);let r=f(2).index,a=f(2);return y(a.handleFileInputIPassportImage(i,r))}),d()()()}if(t&2){let e=f(2).index,n=f(2);p(8),m("src",n.uploadedPassportImage[e]||n.noImage,Ae),p(3),m("ngIf",!n.cameraEnabled)}}function qre(t,o){if(t&1){let e=D();c(0,"div",73)(1,"div",74),v(2,"i",85),c(3,"h4"),g(4,"Digital Signature"),d(),c(5,"small"),g(6,"JPG, GIF or PNG. Max 800kB"),d()(),c(7,"div",75),v(8,"img",86),c(9,"div",77)(10,"button",78),I("click",function(){C(e);let i=de(12);return y(i.click())}),d()(),c(11,"input",87,2),I("change",function(i){C(e);let r=f(2).index,a=f(2);return y(a.handleFileInputSignatureImage(i,r))}),d()()()}if(t&2){let e=f(2).index,n=f(2);p(8),m("src",n.uploadedSignatureImage[e]||n.noImage,Ae)}}function Qre(t,o){if(t&1){let e=D();c(0,"div",70)(1,"div",71),_(2,Ure,14,2,"div",72),c(3,"div",73)(4,"div",74),v(5,"i",38),c(6,"h4"),g(7,"Identity Card"),d(),c(8,"small"),g(9,"JPG, GIF or PNG. Max 800kB"),d()(),c(10,"div",75),v(11,"img",76),c(12,"div",77)(13,"button",78),I("click",function(){C(e);let i=de(15);return y(i.click())}),d()(),c(14,"input",79,0),I("change",function(i){C(e);let r=f().index,a=f(2);return y(a.handleFileInputIDCard(i,r))}),d()()(),_(16,qre,13,1,"div",72),d()()}if(t&2){let e=f().index,n=f(2);p(2),m("ngIf",n.affidavitAppSetting==null?null:n.affidavitAppSetting.allow_passport_photo),p(9),m("src",n.uploadedIDCard[e]||n.noImage,Ae),p(5),m("ngIf",n.affidavitAppSetting==null?null:n.affidavitAppSetting.allow_signature)}}function Gre(t,o){if(t&1){let e=D();c(0,"button",98),I("click",function(i){C(e);let r=f(4);return r.cameraEnabled?r.startCamera():r.startCamera1(),y(i.preventDefault())}),v(1,"i",99),g(2," Start Camera "),d()}}function Wre(t,o){if(t&1){let e=D();c(0,"button",100),I("click",function(){C(e);let i=f(2).index,r=f(2);return y(r.cameraEnabled?r.captureImage(i):r.captureImage1(i))}),v(1,"i",101),g(2," Capture "),d()}}function Kre(t,o){if(t&1){let e=D();c(0,"button",102),I("click",function(){C(e);let i=f(4);return y(i.switchCamera())}),v(1,"i",103),g(2," Switch Camera "),d()}}function Yre(t,o){if(t&1){let e=D();c(0,"div",88)(1,"div",89)(2,"div",90)(3,"h4"),g(4,"Camera Capture"),d(),c(5,"button",91),I("click",function(){C(e);let i=f(3);return y(i.stopCamera())}),v(6,"i",92),d()(),v(7,"video",93,3),c(9,"div",94),_(10,Gre,3,0,"button",95)(11,Wre,3,0,"button",96)(12,Kre,3,0,"button",97),d()()()}if(t&2){let e,n=f(3);p(10),m("ngIf",!n.cameraStarted),p(),m("ngIf",n.cameraStarted),p(),m("ngIf",n.cameraStarted&&((e=n.cameraService.videoInputs.length)!==null&&e!==void 0?e:0)>1)}}function Zre(t,o){t&1&&(c(0,"div",104),g(1," Deponent name is required "),d())}function Jre(t,o){t&1&&(c(0,"div",104),g(1," Deponent NIN is required. "),d())}function Xre(t,o){t&1&&(c(0,"div",104),g(1," NIN must be a valid number. "),d())}function $re(t,o){t&1&&(c(0,"div",104),g(1," NIN must be 11 digits "),d())}function eae(t,o){t&1&&(c(0,"div",104),g(1," Gender is required "),d())}function tae(t,o){t&1&&(c(0,"div",104),g(1," Town is required "),d())}function nae(t,o){t&1&&(c(0,"div",104),g(1," Country of origin is required "),d())}function iae(t,o){t&1&&(c(0,"div",104),g(1," State of origin is required "),d())}function oae(t,o){t&1&&(c(0,"div",104),g(1," Resident town is required "),d())}function rae(t,o){t&1&&(c(0,"div",104),g(1," Occupation is required "),d())}function aae(t,o){t&1&&(c(0,"div",104),g(1," Religion is required "),d())}function sae(t,o){if(t&1&&(c(0,"div",47)(1,"label"),g(2),c(3,"span",49),g(4,"*"),d()(),v(5,"input",109),d()),t&2){let e,n=f().index,i=f(4);p(2),se("",(e=i.getFormEntriesRecordByIndex(n))==null?null:e.label," "),p(3),m("id",n)("type",i.getFormEntriesRecordByIndex(n).input_type||"text")("formControlName",n)}}function lae(t,o){if(t&1&&(B(0),_(1,sae,6,4,"div",108),z()),t&2){let e,n=o.index,i=f(4);p(),m("ngIf",((e=i.getFormEntriesRecordByIndex(n))==null?null:e.is_calculated)==!1)}}function cae(t,o){if(t&1&&(c(0,"div",105)(1,"div",27)(2,"h3"),v(3,"i",106),g(4," Affidavit Information"),d(),c(5,"p"),g(6,"Provide affidavit-specific details required for this deponent."),d()(),c(7,"div",43)(8,"div",107),_(9,lae,2,1,"ng-container",24),d()()()),t&2){let e=f(3);p(9),m("ngForOf",e.formEntries.controls)}}function dae(t,o){if(t&1){let e=D();B(0),c(1,"div",113)(2,"div",114)(3,"div",115)(4,"span"),g(5,"Clause"),d(),c(6,"span",116),g(7),d()(),c(8,"div",117)(9,"button",118),I("click",function(){let i=C(e).index,r=f(4);return y(r.onAddClause(i))}),d(),c(10,"button",119),I("click",function(){let i=C(e).index,r=f(4);return y(r.onRemoveClause(i))}),d()()(),v(11,"textarea",120),d(),z()}if(t&2){let e=o.index;p(7),k(e+1),p(4),m("formControlName",e)}}function pae(t,o){if(t&1&&(c(0,"div",110)(1,"div",27)(2,"h3"),v(3,"i",111),g(4," Clauses Information"),d(),c(5,"p"),g(6,"Define the specific clauses and content of this affidavit submission."),d()(),c(7,"div",43)(8,"div",112),_(9,dae,12,2,"ng-container",24),d()()()),t&2){let e=f(3);p(9),m("ngForOf",e.clauseEntriesControl.controls)}}function uae(t,o){if(t&1){let e=D();B(0),c(1,"div",37)(2,"div",27)(3,"h3"),v(4,"i",38),g(5),c(6,"span",39),g(7,"Active Form"),d()(),c(8,"div",40)(9,"button",41),I("click",function(){C(e);let i=f(2);return y(i.addDeponent())}),v(10,"i",33),d(),c(11,"button",42),I("click",function(){let i=C(e).index,r=f(2);return y(r.removeDeponent(i))}),v(12,"i",36),d()()(),c(13,"div",43),_(14,Qre,17,3,"div",44)(15,Yre,13,3,"div",45),c(16,"div",46)(17,"div",47)(18,"label",48),g(19,"Deponent Name "),c(20,"span",49),g(21,"*"),d()(),v(22,"input",50),_(23,Zre,2,0,"div",51),d(),c(24,"div",47)(25,"label",52),g(26,"Deponent NIN "),c(27,"span",49),g(28,"*"),d()(),c(29,"input",53),I("input",function(i){C(e);let r=f(2);return y(r.onInput(i))}),d(),_(30,Jre,2,0,"div",51)(31,Xre,2,0,"div",51)(32,$re,2,0,"div",51),d(),c(33,"div",47)(34,"label",54),g(35,"Gender "),c(36,"span",49),g(37,"*"),d()(),c(38,"p-dropdown",55),I("onChange",function(i){C(e);let r=f(2);return y(r.closeDropdown(i))}),d(),_(39,eae,2,0,"div",51),d(),c(40,"div",47)(41,"label",56),g(42,"Native Town "),c(43,"span",49),g(44,"*"),d()(),v(45,"input",57),_(46,tae,2,0,"div",51),d(),c(47,"div",47)(48,"label",58),g(49,"Country of Origin "),c(50,"span",49),g(51,"*"),d()(),c(52,"p-dropdown",59),I("onChange",function(i){C(e);let r=f(2);return y(r.closeDropdown(i))}),d(),_(53,nae,2,0,"div",51),d(),c(54,"div",47)(55,"label",60),g(56,"State of Origin "),c(57,"span",49),g(58,"*"),d()(),c(59,"p-dropdown",61),I("onChange",function(i){C(e);let r=f(2);return y(r.closeDropdown(i))}),d(),_(60,iae,2,0,"div",51),d(),c(61,"div",47)(62,"label",62),g(63,"Place of Residence "),c(64,"span",49),g(65,"*"),d()(),v(66,"input",63),_(67,oae,2,0,"div",51),d(),c(68,"div",47)(69,"label",64),g(70,"Occupation "),c(71,"span",49),g(72,"*"),d()(),v(73,"input",65),_(74,rae,2,0,"div",51),d(),c(75,"div",47)(76,"label",66),g(77,"Religion "),c(78,"span",49),g(79,"*"),d()(),c(80,"p-dropdown",67),I("onChange",function(i){C(e);let r=f(2);return y(r.closeDropdown(i))}),d(),_(81,aae,2,0,"div",51),d()()(),_(82,cae,10,1,"div",68)(83,pae,10,1,"div",69),d(),z()}if(t&2){let e=o.index,n=f(2);p(),m("formGroupName",e),p(4),se(" Deponent ",e+1," "),p(9),m("ngIf",(n.affidavitAppSetting==null?null:n.affidavitAppSetting.allow_passport_photo)||(n.affidavitAppSetting==null?null:n.affidavitAppSetting.allow_signature)),p(),m("ngIf",n.cameraEnabled||n.cameraEnabled1),p(8),m("ngIf",(n.applicationFormControl.deponent_name.errors==null?null:n.applicationFormControl.deponent_name.errors.required)&&n.applicationFormControl.deponent_name.touched),p(7),m("ngIf",(n.applicationFormControl.deponent_nin.errors==null?null:n.applicationFormControl.deponent_nin.errors.required)&&n.applicationFormControl.deponent_nin.touched),p(),m("ngIf",(n.applicationFormControl.deponent_nin.errors==null?null:n.applicationFormControl.deponent_nin.errors.minlength)&&n.applicationFormControl.deponent_nin.touched),p(),m("ngIf",!n.isNINValidated&&n.applicationFormControl.deponent_nin.touched),p(6),m("options",n.genders)("showClear",!0),p(),m("ngIf",(n.applicationFormControl.gender.errors==null?null:n.applicationFormControl.gender.errors.required)&&n.applicationFormControl.gender.touched),p(7),m("ngIf",(n.applicationFormControl.town_native.errors==null?null:n.applicationFormControl.town_native.errors.required)&&n.applicationFormControl.town_native.touched),p(6),m("options",n.geoCountry)("showClear",!0)("filter",!0),p(),m("ngIf",(n.applicationFormControl.originCountry.errors==null?null:n.applicationFormControl.originCountry.errors.required)&&n.applicationFormControl.originCountry.touched),p(6),m("options",n.statesByDeponent[e])("showClear",!0)("filter",!0),p(),m("ngIf",(n.applicationFormControl.originState.errors==null?null:n.applicationFormControl.originState.errors.required)&&n.applicationFormControl.originState.touched),p(7),m("ngIf",(n.applicationFormControl.town_resident.errors==null?null:n.applicationFormControl.town_resident.errors.required)&&n.applicationFormControl.town_resident.touched),p(7),m("ngIf",(n.applicationFormControl.occupation.errors==null?null:n.applicationFormControl.occupation.errors.required)&&n.applicationFormControl.occupation.touched),p(6),m("options",n.religions)("showClear",!0)("filter",!0),p(),m("ngIf",(n.applicationFormControl.religion.errors==null?null:n.applicationFormControl.religion.errors.required)&&n.applicationFormControl.religion.touched),p(),m("ngIf",n.showAffidavitInformationForm),p(),m("ngIf",n.canShowClausesForm&&n.clauseEntriesControl.controls.length>0)}}function mae(t,o){t&1&&(c(0,"div",104),g(1," Applicant email is required "),d())}function fae(t,o){t&1&&(c(0,"div",104),g(1," No spaces are allowed in the email "),d())}function hae(t,o){t&1&&(c(0,"div",104),g(1," Applicant phone number is required "),d())}function gae(t,o){t&1&&(c(0,"div",104),g(1," Preferred court is required "),d())}function Aae(t,o){if(t&1){let e=D();c(0,"div",121)(1,"div",27)(2,"h3"),v(3,"i",122),g(4," Optional Information"),d(),c(5,"p"),g(6,"Provide contact details and preferred court for this bulk submission."),d()(),c(7,"div",43)(8,"div",46)(9,"div",47)(10,"label",123),g(11,"Applicant Email "),c(12,"span",49),g(13,"*"),d()(),v(14,"input",124),_(15,mae,2,0,"div",51)(16,fae,2,0,"div",51),d(),c(17,"div",47)(18,"label",125),g(19,"Applicant Phone Number "),c(20,"span",49),g(21,"*"),d()(),v(22,"input",126),_(23,hae,2,0,"div",51),d(),c(24,"div",47)(25,"label",127),g(26,"Preferred Court "),c(27,"span",49),g(28,"*"),d()(),c(29,"p-dropdown",128),I("onChange",function(i){C(e);let r=f(2);return y(r.closeDropdown(i))}),d(),_(30,gae,2,0,"div",51),d()(),c(31,"div",129)(32,"div",130)(33,"button",131),I("click",function(){C(e);let i=f(2);return y(i.goBack())}),d(),c(34,"button",132),I("click",function(){C(e);let i=f(2);return y(i.processForm())}),d()()()()()}if(t&2){let e=f(2);p(15),m("ngIf",(e.rootForm.controls.applicant_email.errors==null?null:e.rootForm.controls.applicant_email.errors.required)&&e.rootForm.controls.applicant_email.touched),p(),m("ngIf",(e.rootForm.controls.applicant_email.errors==null?null:e.rootForm.controls.applicant_email.errors.pattern)&&e.rootForm.controls.applicant_email.touched),p(7),m("ngIf",(e.rootForm.controls.applicant_phone.errors==null?null:e.rootForm.controls.applicant_phone.errors.required)&&e.rootForm.controls.applicant_phone.touched),p(6),m("options",e.courts)("showClear",!0),p(),m("ngIf",(e.rootForm.controls.court.errors==null?null:e.rootForm.controls.court.errors.required)&&e.rootForm.controls.court.touched),p(4),m("disabled",e.rootForm.invalid)}}function _ae(t,o){if(t&1&&(c(0,"div",20)(1,"form",21),_(2,Hre,19,8,"div",22),c(3,"div",23),_(4,uae,84,28,"ng-container",24),d(),_(5,Aae,35,7,"div",25),d()()),t&2){let e=f();p(),m("formGroup",e.rootForm),p(),m("ngIf",e.applicationsArray.controls.length>0),p(2),m("ngForOf",e.applicationsArray.controls),p(),m("ngIf",e.applicationsArray.controls.length>0)}}function vae(t,o){if(t&1&&(c(0,"div",138)(1,"div",139),v(2,"i",153),g(3),d(),c(4,"span",141),g(5),d()()),t&2){let e=f().$implicit;p(3),se(" ",e.label,""),p(2),k(e.provided_value)}}function bae(t,o){if(t&1&&(B(0),_(1,vae,6,2,"div",162),z()),t&2){let e=o.$implicit;p(),m("ngIf",e.is_calculated==!1)}}function Cae(t,o){if(t&1&&(c(0,"div",155)(1,"h4",156),g(2,"Affidavit Information"),d(),c(3,"div",137),_(4,bae,2,1,"ng-container",24),d()()),t&2){let e=f().$implicit;p(4),m("ngForOf",e.formEntries)}}function yae(t,o){if(t&1&&(c(0,"div",163),v(1,"img",164),d()),t&2){let e=f().index,n=f(2);p(),m("src",n.uploadedPassportImage[e],Ae)}}function xae(t,o){t&1&&(c(0,"span",165),g(1,"Not Provided"),d())}function wae(t,o){if(t&1&&(c(0,"div",163),v(1,"img",166),d()),t&2){let e=f().index,n=f(2);p(),m("src",n.uploadedSignatureImage[e],Ae)}}function Iae(t,o){t&1&&(c(0,"span",165),g(1,"Not Provided"),d())}function Mae(t,o){if(t&1&&(c(0,"div",163),v(1,"img",167),d()),t&2){let e=f().index,n=f(2);p(),m("src",n.uploadedIDCard[e],Ae)}}function Sae(t,o){t&1&&(c(0,"span",165),g(1,"Not Provided"),d())}function Eae(t,o){if(t&1&&(c(0,"div",135)(1,"div",27)(2,"h3"),v(3,"i",147),g(4),d(),c(5,"p"),g(6,"Verify the captured personal details and uploads before submission."),d()(),c(7,"div",136)(8,"div",137)(9,"div",138)(10,"div",139),v(11,"i",147),g(12," Deponent Name:"),d(),c(13,"span",141),g(14),d()(),c(15,"div",138)(16,"div",139),v(17,"i",148),g(18," Deponent NIN:"),d(),c(19,"span",141),g(20),d()(),c(21,"div",138)(22,"div",139),v(23,"i",143),g(24," Native Town:"),d(),c(25,"span",141),g(26),d()(),c(27,"div",138)(28,"div",139),v(29,"i",149),g(30," Country of Origin:"),d(),c(31,"span",141),g(32),d()(),c(33,"div",138)(34,"div",139),v(35,"i",150),g(36," State of Origin:"),d(),c(37,"span",141),g(38),d()(),c(39,"div",138)(40,"div",139),v(41,"i",151),g(42," Place of Residence:"),d(),c(43,"span",141),g(44),d()(),c(45,"div",138)(46,"div",139),v(47,"i",152),g(48," Occupation:"),d(),c(49,"span",141),g(50),d()(),c(51,"div",138)(52,"div",139),v(53,"i",153),g(54," Gender:"),d(),c(55,"span",141),g(56),d()(),c(57,"div",138)(58,"div",139),v(59,"i",153),g(60," Religion:"),d(),c(61,"span",141),g(62),d()()(),_(63,Cae,5,1,"div",154),c(64,"div",155)(65,"h4",156),g(66,"Supporting Documents"),d(),c(67,"div",157)(68,"div",158)(69,"div",159),v(70,"i",160),g(71," Passport Photo"),d(),_(72,yae,2,1,"div",161)(73,xae,2,0,"ng-template",null,4,je),d(),c(75,"div",158)(76,"div",159),v(77,"i",160),g(78," Signature"),d(),_(79,wae,2,1,"div",161)(80,Iae,2,0,"ng-template",null,5,je),d(),c(82,"div",158)(83,"div",159),v(84,"i",160),g(85," Identity Card"),d(),_(86,Mae,2,1,"div",161)(87,Sae,2,0,"ng-template",null,6,je),d()()()()()),t&2){let e=o.$implicit,n=o.index,i=de(74),r=de(81),a=de(88),s=f(2);p(4),se(" Deponent ",n+1," Review"),p(10),k(e.deponent_name),p(6),k(e.deponent_nin),p(6),k(e.town_native),p(6),k(s.selectedCountry[n]),p(6),k(s.selectedState[n]),p(6),k(e.town_resident),p(6),k(e.occupation),p(6),k(e.gender),p(6),k(e.religion),p(),m("ngIf",s.shouldDisplayAffidavitSection),p(9),m("ngIf",e.passport_photo_file)("ngIfElse",i),p(7),m("ngIf",e.signature_file)("ngIfElse",r),p(7),m("ngIf",e.identity_photo_file)("ngIfElse",a)}}function Oae(t,o){if(t&1){let e=D();c(0,"div",133),_(1,Eae,89,17,"div",134),c(2,"div",135)(3,"div",27)(4,"h3"),v(5,"i",14),g(6," Client Information"),d(),c(7,"p"),g(8,"Confirm the overall contact information for this bulk submission."),d()(),c(9,"div",136)(10,"div",137)(11,"div",138)(12,"div",139),v(13,"i",140),g(14," Applicant Email:"),d(),c(15,"span",141),g(16),d()(),c(17,"div",138)(18,"div",139),v(19,"i",142),g(20," Applicant Phone:"),d(),c(21,"span",141),g(22),d()(),c(23,"div",138)(24,"div",139),v(25,"i",143),g(26," Preferred Court:"),d(),c(27,"span",141),g(28),d()()(),c(29,"div",144)(30,"div",130)(31,"button",145),I("click",function(){C(e);let i=f();return y(i.showApplicationForm())}),d(),c(32,"button",146),I("click",function(){C(e);let i=f();return y(i.goToPreview())}),d()()()()()()}if(t&2){let e=f();p(),m("ngForOf",e.dataPayload.applications),p(15),k(e.dataPayload.applicant_email),p(6),k(e.dataPayload.applicant_phone),p(6),k(e.courtName),p(4),m("disabled",e.applicationsArray.length>0?e.applicationForm.invalid:!1)}}var rO=(()=>{class t{constructor(e,n,i,r,a,s,l,u,h,A,b){this.fb=e,this.affidavitApplicationEndpoint=n,this.countryEndpoint=i,this.stateEndpoint=r,this.affidavitPageStore=a,this.CourtEndPoint=s,this.appNotificationService=l,this.cameraService=u,this.applicationService=h,this.affidavitTemplateEndpoint=A,this.affidavitApplicationSettingsEndpoint=b,this.toggle=new V,this.genders=da,this.religions=pa,this.geoCountry=[],this._geoStates=[],this.statesByDeponent=[],this.courts=[],this.selectedState=[""],this.no_image="data:image/png;base64,"+pt.no_image,this.uploadedPassportImage=["data:image/png;base64,"+pt.no_image],this.uploadedSignatureImage=["data:image/png;base64,"+pt.no_image],this.uploadedIDCard=["data:image/png;base64,"+pt.no_image],this.noImage=pt.no_image,this.displayForm=!0,this.shouldDisplayAffidavitSection=!0,this.selectedCountry=[""],this.canSubmitApplicationForm=!1,this.canShowApplicationForm=!0,this.canShowClausesForm=!1,this.canShowConfirmationForm=!1,this.showAffidavitInformationForm=!1,this.displaySignatureModal=!1,this.formEntriesMap=new Map,this.passportPhotoFiles=[],this.signatureFiles=[],this.idCardPhotoFiles=[],this.cameraEnabled=!1,this.cameraStarted=!1,this.cameraEnabled1=!1,this.cameraStarted1=!1,this.hasUploadedPhoto=!1,this.videoInputs=[],this.rootForm=this.fb.group({applications:this.fb.array([]),applicant_email:this.fb.control(null),applicant_phone:this.fb.control(null),court:this.fb.control(null,K.required),affidavit_type_name:this.fb.control(null,[K.required,K.minLength(3),K.maxLength(128)])})}ngOnInit(){this.applicationService.getaffidavitTemplateId()&&(this.affidavitPageStore.setID(this.applicationService.getaffidavitTemplateId()),this.affidavitPageStore.id$.subscribe({next:e=>{this.affidavitTemplateEndpoint.single(e).subscribe({next:n=>{this.affidavitTemplate=n.data,this.showAffidavitInformationForm=(this.affidavitTemplate?.placeholders?.length||0)>0&&this.affidavitTemplate?.is_clauses_editable!=!0,this.affidavitPageStore.stopLoading()},error:n=>{this.affidavitPageStore.stopLoading(),this.appNotificationService.showError({title:n.error,detail:n.message})},complete:()=>{this.addDeponent()}})}})),this.countryEndpoint.list().subscribe({next:e=>{this.geoCountry=e.data,this.default_country=this.geoCountry.find(n=>n.phone_code=="234")},error:e=>console.log(e)}),this.stateEndpoint.list().subscribe({next:e=>{this._geoStates=e.data},error:e=>{this.appNotificationService.showError({title:e.error,detail:e.message})}}),this.affidavitApplicationSettingsEndpoint.single(1).subscribe({next:e=>this.affidavitAppSetting=e.data,error:e=>{this.appNotificationService.showError({title:e.error,detail:e.message})}}),this.CourtEndPoint.list().subscribe({next:e=>this.courts=e.data,error:e=>{this.appNotificationService.showError({title:e.error,detail:e.message})}})}goBack(){window.history.back()}get applicationFormControl(){return this.applicationForm.controls}get formEntries(){return this.applicationForm.controls.formEntries}showConfirmationForm(){this.displayForm=!1}showApplicationForm(){this.displayForm=!0}get clauseEntriesControl(){return this.applicationForm.controls.clauseEntries}onAddClause(e){if(this.clauseEntriesControl.length<7){let n=this.fb.control(null,[K.required,K.minLength(3)]);this.clauseEntriesControl.insert(e+1,n);return}this.appNotificationService.showInfo({title:"Information",detail:"You can only supply a maximum of seven (7) clauses!"})}getFormEntriesRecordByIndex(e){return this.formEntriesMap.get(e)}onRemoveClause(e){if(this.clauseEntriesControl.length>1){this.clauseEntriesControl.removeAt(e);return}this.appNotificationService.showInfo({title:"Information",detail:"You must have at least one clause available"})}get courtName(){return this.courts.find(i=>i.id===this.dataPayload.court_id)?.name}processForm(){let e=this.passportPhotoFiles.some(a=>a==""),n=this.signatureFiles.some(a=>a=="");if(this.affidavitAppSetting?.allow_passport_photo&&e){this.appNotificationService.showWarning({title:"Information!",detail:"Please, make sure to upload both the Passport and Signature!"});return}if(this.affidavitAppSetting?.allow_signature&&n){this.appNotificationService.showWarning({title:"Information!",detail:"Please, make sure to upload both the Passport and Signature!"});return}let i=this.rootForm.value,r=i.applications;this.dataPayload={court_id:i.court,applicant_email:i.applicant_email,applicant_phone:i.applicant_phone,affidavit_type_name:i.affidavit_type_name,affidavit_template_id:this.affidavitTemplate?.id,client_ref:this.applicationService.getClientRef()??"CLIENT_REF-"+new Date,payment_redirect_url:this.applicationService.getPaymentRedirectUrl(),applications:[]},r.forEach((a,s)=>{this.selectedCountry[s]=this.geoCountry.find(l=>l.id==a.originCountry)?.name??"Not Found",this.selectedState[s]=this.statesByDeponent[s].find(l=>l.id==a.originState)?.name??"Not Found",this.dataPayload?.applications.push({deponent_name:a.deponent_name,deponent_nin:a.deponent_nin,town_native:a.town_native,town_resident:a.town_resident,state_id:a.originState,occupation:a.occupation,gender:a.gender,religion:a.religion,passport_photo_file:this.uploadedPassportImage[s]??"",signature_file:this.uploadedSignatureImage[s]??"",identity_photo_file:this.uploadedIDCard[s]??"",formEntries:[]}),this.affidavitTemplate?.is_clauses_editable||this.formEntriesMap.forEach((l,u)=>{this.dataPayload.applications[s],this.dataPayload.applications[s].formEntries.push({label:l.label,placeholder:l.placeholder,provided_value:a.formEntries[u],parent_placeholder:l.parent_placeholder,is_calculated:l.is_calculated,format:l.format,input_type:l.input_type})})}),this.shouldDisplayAffidavitSection=this.dataPayload.applications[0].formEntries?.length>0,setTimeout(()=>this.showConfirmationForm(),250)}goToPreview(){let e=new FormData;e.append("court_id",this.dataPayload?.court_id+""),e.append("applicant_email",this.dataPayload?.applicant_email??""),e.append("applicant_phone",this.dataPayload?.applicant_phone??""),e.append("affidavit_type_name",this.dataPayload?.affidavit_type_name??""),e.append("affidavit_template_id",this.dataPayload?.affidavit_template_id+""),e.append("client_ref",this.dataPayload?.client_ref??""),e.append("payment_redirect_url",this.dataPayload?.payment_redirect_url??""),this.dataPayload.applications.forEach((n,i)=>{e.append(`applications[${i}][deponent_name]`,n.deponent_name??""),e.append(`applications[${i}][deponent_nin]`,n.deponent_nin+""),e.append(`applications[${i}][town_native]`,n.town_native??""),e.append(`applications[${i}][town_resident]`,n.town_resident??""),e.append(`applications[${i}][state_id]`,n.state_id+""),e.append(`applications[${i}][occupation]`,n.occupation??""),e.append(`applications[${i}][gender]`,n.gender??""),e.append(`applications[${i}][religion]`,n.religion??""),e.append(`applications[${i}][passport_photo_file]`,n.passport_photo_file??""),e.append(`applications[${i}][signature_file]`,n.signature_file??""),e.append(`applications[${i}][identity_photo_file]`,n.identity_photo_file??""),n.formEntries.forEach((r,a)=>{e.append(`applications[${i}][formEntries][${a}][label]`,r.label??""),e.append(`applications[${i}][formEntries][${a}][placeholder]`,r.placeholder??""),e.append(`applications[${i}][formEntries][${a}][provided_value]`,r.provided_value??""),e.append(`applications[${i}][formEntries][${a}][parent_placeholder]`,r.parent_placeholder??""),e.append(`applications[${i}][formEntries][${a}][is_calculated]`,r.is_calculated??""),e.append(`applications[${i}][formEntries][${a}][format]`,r.format??""),e.append(`applications[${i}][formEntries][${a}][input_type]`,r.input_type??"")})}),this.affidavitPageStore.startLoading("Saving Data . . ."),this.affidavitApplicationEndpoint.createBulk(e).subscribe({next:n=>{this.applicationService.setApplications(n.data.data),this.affidavitPageStore.setRefNo(n.client_ref),this.applicationService.setPaymentEntry(n.paymentEntry),this.affidavitPageStore.toggle("application-detail")},error:n=>{this.appNotificationService.showError({title:"Error",detail:n.error.message}),this.affidavitPageStore.stopLoading()}})}capturePhoto(e){navigator.mediaDevices.getUserMedia({video:!0}).then(n=>{let i=document.createElement("video");i.srcObject=n,i.play();let r=document.createElement("canvas"),a=r.getContext("2d");i.addEventListener("loadeddata",()=>{r.width=i.videoWidth,r.height=i.videoHeight,a.drawImage(i,0,0,r.width,r.height),this.uploadedPassportImage[e]=r.toDataURL("image/png"),this.uploadedIDCard[e]=r.toDataURL("image/png"),n.getTracks().forEach(s=>s.stop())})}).catch(n=>{console.error("Error accessing the camera: ",n)})}handleFileInputIPassportImage(e,n){this.uploadedPassportImage[n]="assets/images/loading.gif";let i;if(e instanceof Event){let s=e.target;if(s.files&&s.files.length>0)i=s.files[0];else{console.error("No files found in the input element.");return}}else typeof e=="string"&&e.startsWith("data:image/")?(this.uploadedPassportImage[n]=e,i=this.dataURLtoFile(e,"passport.png")):i=e;let r=i.type,a=new FileReader;r.startsWith("image/")?(a.onload=()=>{this.uploadedPassportImage[n]=a.result,this.handleFileUpload(i,"passport",n)},a.readAsDataURL(i)):this.appNotificationService.showWarning({title:"Invalid file type.!",detail:"Only JPG, GIF, and PNG are allowed!!!"})}handleFileInputSignatureImage(e,n){this.uploadedSignatureImage[n]="assets/images/loading.gif";let i;if(e instanceof Event){let s=e.target;if(s.files&&s.files.length>0)i=s.files[0];else{console.error("No files found in the input element.");return}}else typeof e=="string"&&e.startsWith("data:image/")?(this.uploadedSignatureImage[n]=e,i=this.dataURLtoFile(e,"signature.png")):i=e;let r=i.type,a=new FileReader;r.startsWith("image/")?(a.onload=()=>{this.uploadedSignatureImage[n]=a.result,this.handleFileUpload(i,"signature",n)},a.readAsDataURL(i)):this.appNotificationService.showWarning({title:"Invalid file type.!",detail:"Only JPG, GIF, and PNG are allowed!!!"}),this.displaySignatureModal=!1}handleFileInputIDCard(e,n){this.uploadedIDCard[n]="assets/images/loading.gif";let i;if(e instanceof Event){let s=e.target;if(s.files&&s.files.length>0)i=s.files[0];else{console.error("No files found in the input element.");return}}else typeof e=="string"&&e.startsWith("data:image/")?(this.uploadedIDCard[n]=e,i=this.dataURLtoFile(e,"id-card.png")):i=e;let r=i.type,a=new FileReader;r.startsWith("image/")?(a.onload=()=>{this.uploadedIDCard[n]=a.result},a.readAsDataURL(i)):this.appNotificationService.showWarning({title:"Invalid file type.!",detail:"Only JPG, GIF, and PNG are allowed!!!"})}dataURLtoFile(e,n){let i=e.split(","),r=i[0]?.match(/:(.*?);/),a=r?r[1]:"",s=atob(i[1]),l=s.length,u=new Uint8Array(l);for(;l--;)u[l]=s.charCodeAt(l);return new File([u],n,{type:a})}openCamera(){this.cameraEnabled=!0}openCamera1(){this.cameraEnabled1=!0}startCamera(){this.cameraStarted=!0,this.cameraService.initCamera(this.videoElement.nativeElement)}startCamera1(){this.cameraStarted1=!0,this.cameraService.initCamera(this.videoElement.nativeElement)}getCamera(){this.cameraService.getCamera(this.videoElement.nativeElement)}switchCamera(){this.cameraService.switchCamera(this.videoElement.nativeElement)}initCamera(){this.cameraService.initCamera(this.videoElement.nativeElement)}captureImage(e){let n=this.cameraService.captureImage(this.videoElement.nativeElement);this.handleFileInputIPassportImage(n,e),this.cameraService.stopCamera(this.videoElement.nativeElement),this.stopCamera()}captureImage1(e){let n=this.cameraService.captureImage(this.videoElement.nativeElement);this.handleFileInputIDCard(n,e),this.cameraService.stopCamera(this.videoElement.nativeElement),this.stopCamera()}stopCamera(){this.cameraService.stopCamera(this.videoElement.nativeElement),this.cameraEnabled=!1,this.cameraEnabled1=!1,this.cameraStarted=!1,this.cameraStarted1=!1}handleImageError(e){e.target.src=`data:image/gif;base64,${this.no_image}`}get isNINValidated(){return(this.applicationFormControl.deponent_nin.value+"").length===11}onInput(e){let n=e.target.value;n=n.replace(/\D/g,""),n.length>11&&(n=n.slice(0,11)),this.applicationFormControl.deponent_nin.patchValue(n)}handleFileUpload(e,n,i){if(e)switch(n){case"passport":this.passportPhotoFiles[i]=e;break;case"signature":this.signatureFiles[i]=e;break;case"id-card":this.idCardPhotoFiles[i]=e;break;default:break}}get applicationsArray(){return this.rootForm.get("applications")}get applicationForm(){return this.applicationsArray.at(0)}addDeponent(){let e=this.fb.group({deponent_name:this.fb.control(null,[K.required,K.minLength(3)]),deponent_nin:this.fb.control(null,[K.required,K.pattern("^[0-9]*$"),K.minLength(11),K.maxLength(11)]),town_native:this.fb.control(null,[K.required,K.minLength(3)]),town_resident:this.fb.control(null,[K.required,K.minLength(3)]),originCountry:this.fb.control(null,[K.required]),originState:this.fb.control(null,[K.required,K.minLength(3)]),occupation:this.fb.control(null,[K.required,K.minLength(3)]),gender:this.fb.control(null,[K.required,K.minLength(3)]),religion:this.fb.control(null,[K.required,K.minLength(3)]),formEntries:this.fb.array([]),clauseEntries:this.fb.array([])});if(this.uploadedIDCard.push(this.no_image),this.uploadedPassportImage.push(this.no_image),this.uploadedSignatureImage.push(this.no_image),this.passportPhotoFiles.push(""),this.signatureFiles.push(""),this.idCardPhotoFiles.push(""),this.selectedCountry.push(this.default_country?.name??""),this.selectedState.push(),this.affidavitTemplate?.placeholders.forEach((i,r)=>{this.formEntriesMap.set(r,i),!i.is_calculated&&i.is_required?e.controls.formEntries.push(this.fb.control(null,[K.required])):!i.is_calculated&&!i.is_required&&e.controls.formEntries.push(this.fb.control(null,[]))}),this.affidavitTemplate?.is_clauses_editable){let i=this.fb.control(null,[K.required,K.minLength(3)]);e.controls.clauseEntries.push(i),this.canShowClausesForm=!0}else this.rootForm.controls.affidavit_type_name.setValue(this.affidavitTemplate?.name);this.applicationsArray.push(e);let n=this.applicationsArray.length-1;this.statesByDeponent[n]=[],this.setupDeponentSubscriptions(n)}removeDeponent(e){if(this.applicationsArray.length==1){this.appNotificationService.showInfo({title:"Oops !",detail:"You must have atleast one deponent in this form"});return}this.applicationsArray.removeAt(e),this.statesByDeponent.splice(e,1),this.uploadedPassportImage.splice(e,1),this.uploadedSignatureImage.splice(e,1),this.uploadedIDCard.splice(e,1),this.passportPhotoFiles.splice(e,1),this.signatureFiles.splice(e,1),this.idCardPhotoFiles.splice(e,1)}setupDeponentSubscriptions(e){let n=this.applicationsArray.at(e),i=n.get("originCountry"),r=n.get("originState");i?.valueChanges.subscribe(a=>{this.statesByDeponent[e]=this._geoStates.filter(s=>s.country_id==a),r?.reset(null)}),r?.valueChanges.subscribe(a=>{})}closeDropdown(e){setTimeout(()=>{let n=Array.from(document.querySelectorAll(".p-dropdown-panel")).filter(i=>{let r=window.getComputedStyle(i);return r.display!=="none"&&r.visibility!=="hidden"});if(n.length>0){n[0].style.display="none";let i=document.activeElement;i&&i.classList.contains("p-dropdown")&&i.blur()}},100)}static{this.\u0275fac=function(n){return new(n||t)(M(Mi),M(oi),M(ua),M(Jo),M(Te),M(Xo),M(Mn),M(Zo),M(Si),M(to),M(Ti))}}static{this.\u0275cmp=N({type:t,selectors:[["e-affidavit-bulk-applications"]],viewQuery:function(n,i){if(n&1&&ae(Bre,5),n&2){let r;Q(r=G())&&(i.videoElement=r.first)}},outputs:{toggle:"toggle"},decls:15,vars:4,consts:[["fileIdCard",""],["filePassportPhoto",""],["fileSignature",""],["videoElement",""],["noPassport",""],["noSignature",""],["noIdCard",""],[1,"application-form-container","bulk-create-applications"],[1,"application-form-header"],[1,"header-content"],[1,"application-form-title"],[1,"application-form-subtitle"],[1,"header-actions"],[1,"status-pill"],[1,"pi","pi-users"],["class","status-pill secondary",4,"ngIf"],["class","form-sections",4,"ngIf"],["class","review-sections",4,"ngIf"],[1,"status-pill","secondary"],[1,"pi","pi-exclamation-triangle"],[1,"form-sections"],[3,"formGroup"],["class","form-section workspace-actions",4,"ngIf"],["formArrayName","applications"],[4,"ngFor","ngForOf"],["class","form-section additional-info-section mt-2",4,"ngIf"],[1,"form-section","workspace-actions"],[1,"section-header"],[1,"pi","pi-layer-group"],[1,"section-content","controls-content"],[1,"controls-grid"],[1,"control-card",3,"click"],[1,"control-icon","success"],[1,"pi","pi-user-plus"],[1,"control-label"],[1,"control-icon"],[1,"pi","pi-user-minus"],[1,"form-section","personal-info-section","mt-3",3,"formGroupName"],[1,"pi","pi-id-card"],[1,"badge"],[1,"section-actions"],["pButton","","type","button","pTooltip","Add Deponent","tooltipPosition","top",1,"action-chip","add",3,"click"],["pButton","","type","button","pTooltip","Remove Deponent","tooltipPosition","top",1,"action-chip","remove",3,"click"],[1,"section-content"],["class","file-upload-container",4,"ngIf"],["class","camera-interface",4,"ngIf"],[1,"form-grid"],[1,"form-field"],["for","deponent_name"],[1,"required"],["id","deponent_name","type","text","placeholder","Enter Deponent Name","formControlName","deponent_name","required","",1,"form-input"],["class","error-message",4,"ngIf"],["for","deponent_nin"],["id","deponent_nin","type","text","placeholder","Enter Deponent NIN","formControlName","deponent_nin","required","",1,"form-input",3,"input"],["for","gender"],["placeholder","Select Gender","formControlName","gender","optionLabel","name","optionValue","name",1,"form-dropdown",3,"onChange","options","showClear"],["for","town_native"],["id","town_native","type","text","placeholder","Enter Native Town","formControlName","town_native","required","",1,"form-input"],["for","originCountry"],["placeholder","Select Country of Origin","formControlName","originCountry","optionLabel","name","optionValue","id",1,"form-dropdown",3,"onChange","options","showClear","filter"],["for","originState"],["placeholder","Select State of Origin","formControlName","originState","optionLabel","name","optionValue","id",1,"form-dropdown",3,"onChange","options","showClear","filter"],["for","town_resident"],["id","town_resident","type","text","placeholder","e.g No. 7B Gambia street, Garki","formControlName","town_resident","required","",1,"form-input"],["for","occupation"],["id","occupation","type","text","placeholder","e.g Software Developer, Student","formControlName","occupation","required","",1,"form-input"],["for","religion"],["placeholder","Select Religion","formControlName","religion","optionLabel","name","optionValue","name",1,"form-dropdown",3,"onChange","options","showClear","filter"],["class","sub-form-section affidavit-info-section mt-2",4,"ngIf"],["class","form-section clauses-section mt-2",4,"ngIf"],[1,"file-upload-container"],[1,"upload-grid"],["class","upload-card",4,"ngIf"],[1,"upload-card"],[1,"upload-header"],[1,"upload-content"],["alt","ID Card",1,"uploaded-image",3,"src"],[1,"upload-actions"],["pButton","","pRipple","","type","button","label","Upload",1,"upload-btn","primary",3,"click"],["type","file","name","ApplicantIdCardUpload","id","ApplicantIdCardUpload","hidden","","accept","image/*",3,"change"],[1,"pi","pi-image"],["alt","Passport Photo",1,"uploaded-image",3,"src"],["pButton","","pRipple","","type","button","class","upload-btn secondary","label","Camera",3,"click",4,"ngIf"],["type","file","name","ApplicantPassportUpload","id","ApplicantPassportUpload","hidden","","accept","image/*",3,"change"],["pButton","","pRipple","","type","button","label","Camera",1,"upload-btn","secondary",3,"click"],[1,"pi","pi-pencil"],["alt","Signature",1,"uploaded-image",3,"src"],["type","file","name","ApplicantSigantureUpload","id","ApplicantSigantureUpload","hidden","","accept","image/*",3,"change"],[1,"camera-interface"],[1,"camera-container"],[1,"camera-header"],["type","button","title","Close Camera",1,"camera-close-btn",3,"click"],[1,"pi","pi-times"],[1,"camera-video"],[1,"camera-controls"],["type","button","class","camera-btn start",3,"click",4,"ngIf"],["type","button","class","camera-btn capture",3,"click",4,"ngIf"],["type","button","class","camera-btn switch",3,"click",4,"ngIf"],["type","button",1,"camera-btn","start",3,"click"],[1,"pi","pi-play"],["type","button",1,"camera-btn","capture",3,"click"],[1,"pi","pi-camera"],["type","button",1,"camera-btn","switch",3,"click"],[1,"pi","pi-refresh"],[1,"error-message"],[1,"sub-form-section","affidavit-info-section","mt-2"],[1,"pi","pi-file-text"],["formArrayName","formEntries",1,"form-grid"],["class","form-field",4,"ngIf"],[1,"form-input",3,"id","type","formControlName"],[1,"form-section","clauses-section","mt-2"],[1,"pi","pi-list"],["formArrayName","clauseEntries",1,"clauses-grid"],[1,"clause-card"],[1,"clause-header"],[1,"clause-title"],[1,"clause-number"],[1,"clause-actions"],["type","button","pButton","","icon","pi pi-plus",1,"action-chip","add",3,"click"],["type","button","pButton","","icon","pi pi-trash",1,"action-chip","remove",3,"click"],["id","clause_entry","name","clause_entry","rows","3","maxlength","500","placeholder","That...",1,"clause-textarea",3,"formControlName"],[1,"form-section","additional-info-section","mt-2"],[1,"pi","pi-info-circle"],["for","applicant_email"],["id","applicant_email","type","email","placeholder","Enter Applicant Email","formControlName","applicant_email","required","",1,"form-input"],["for","applicant_phone"],["id","applicant_phone","type","text","placeholder","Enter Applicant Phone Number","formControlName","applicant_phone","required","",1,"form-input"],["for","court"],["placeholder","Select court","formControlName","court","optionLabel","name","optionValue","id",1,"form-dropdown",3,"onChange","options","showClear"],[1,"form-actions"],[1,"action-buttons"],["pButton","","type","button","icon","pi pi-arrow-left","label","Previous",1,"cancel-btn",3,"click"],["pButton","","type","button","icon","pi pi-eye","label","Preview",1,"submit-btn",3,"click","disabled"],[1,"review-sections"],["class","review-section",4,"ngFor","ngForOf"],[1,"review-section"],[1,"review-content"],[1,"review-grid"],[1,"review-item"],[1,"review-label"],[1,"pi","pi-envelope"],[1,"review-value"],[1,"pi","pi-phone"],[1,"pi","pi-map-marker"],[1,"form-actions","review-actions"],["pButton","","type","button","icon","pi pi-arrow-left","label","Review",1,"cancel-btn",3,"click"],["pButton","","type","button","icon","pi pi-save","label","Submit Application",1,"submit-btn",3,"click","disabled"],[1,"pi","pi-user"],[1,"pi","pi-clone"],[1,"pi","pi-globe"],[1,"pi","pi-map"],[1,"pi","pi-home"],[1,"pi","pi-briefcase"],[1,"pi","pi-circle-fill"],["class","review-subsection",4,"ngIf"],[1,"review-subsection"],[1,"subsection-title"],[1,"documents-grid"],[1,"document-card"],[1,"doc-label"],[1,"pi","pi-images"],["class","doc-preview",4,"ngIf","ngIfElse"],["class","review-item",4,"ngIf"],[1,"doc-preview"],["alt","Passport",3,"src"],[1,"not-provided"],["alt","Signature",3,"src"],["alt","ID Card",3,"src"]],template:function(n,i){n&1&&(c(0,"div",7)(1,"div",8)(2,"div",9)(3,"h1",10),g(4,"Bulk Affidavit Applications"),d(),c(5,"p",11),g(6," Capture multiple deponent records, upload required documents, and review each submission before dispatching to the Federal High Court. "),d()(),c(7,"div",12)(8,"div",13),v(9,"i",14),c(10,"span"),g(11),d()(),_(12,zre,4,0,"div",15),d()(),_(13,_ae,6,4,"div",16)(14,Oae,33,5,"div",17),d()),n&2&&(p(11),se("Total Deponents: ",i.applicationsArray.controls.length,""),p(),m("ngIf",i.rootForm.invalid&&i.displayForm),p(),m("ngIf",i.displayForm),p(),m("ngIf",!i.displayForm))},dependencies:[rt,Ce,wn,Dn,kn,xn,Ui,bo,Fn,Hn,Qo,Ii,Lt,Io,In,wt],styles:['.application-form-container[_ngcontent-%COMP%]{min-height:100vh;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;color:#0f172a;display:flex;flex-direction:column;gap:1.5rem}.application-form-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:2rem;padding:2.75rem;border-radius:24px;background:linear-gradient(135deg,#022c22,#065f46 45%,#0d6449);box-shadow:0 32px 60px #0f172a4d;color:#fff;position:relative;overflow:hidden}.application-form-header[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at top right,rgba(255,255,255,.22),transparent 55%);pointer-events:none}.header-content[_ngcontent-%COMP%]{position:relative;z-index:1}.header-content[_ngcontent-%COMP%] .application-form-title[_ngcontent-%COMP%]{font-size:clamp(2rem,3vw,2.85rem);font-weight:700;margin-bottom:.85rem}.header-content[_ngcontent-%COMP%] .application-form-subtitle[_ngcontent-%COMP%]{margin:0;font-size:1.05rem;line-height:1.6;color:#ffffffd9}.header-actions[_ngcontent-%COMP%]{position:relative;z-index:1;display:flex;flex-direction:column;gap:.75rem}.header-actions[_ngcontent-%COMP%] .status-pill[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.6rem;padding:.6rem 1.1rem;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:#0f172a33;font-weight:600;font-size:.95rem;color:#fefce8;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.header-actions[_ngcontent-%COMP%] .status-pill.secondary[_ngcontent-%COMP%]{background:#065f4673;color:#ffffffe6}.header-actions[_ngcontent-%COMP%] .status-pill[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem}.form-sections[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-sections[_ngcontent-%COMP%] form[_ngcontent-%COMP%], .review-sections[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-section[_ngcontent-%COMP%], .review-section[_ngcontent-%COMP%]{background:#fff;border-radius:24px;padding:2.4rem;box-shadow:0 24px 55px #0f172a1f;border:1px solid #e2e8f0;border-left:5px solid #0d6449;transition:box-shadow .3s ease}.form-section[_ngcontent-%COMP%]:hover, .review-section[_ngcontent-%COMP%]:hover{box-shadow:0 32px 60px #0f172a29}.sub-form-section[_ngcontent-%COMP%]{background:transparent;padding-top:2rem;padding:2.4rem;border-radius:24px;border:1px solid #e2e8f0;transition:box-shadow .3s ease}.sub-form-section[_ngcontent-%COMP%]:hover{box-shadow:0 32px 60px #0f172a29}.section-header[_ngcontent-%COMP%]{margin-bottom:1.75rem;padding-bottom:1rem;border-bottom:2px solid #f1f5f9;display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:1.45rem;font-weight:600;color:#0f172a;display:flex;align-items:center;gap:.75rem}.section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.25rem;color:#0d6449}.section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] .badge[_ngcontent-%COMP%]{background:#0d94882e;color:#0d6449;border-radius:999px;padding:.25rem .65rem;font-size:.75rem;letter-spacing:.05em;text-transform:uppercase}.section-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:.25rem 0 0;color:#64748b;font-size:1rem}.section-actions[_ngcontent-%COMP%]{display:inline-flex;gap:.5rem}.section-actions[_ngcontent-%COMP%] .action-chip[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:12px;border:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:all .3s ease;color:#fff}.section-actions[_ngcontent-%COMP%] .action-chip.add[_ngcontent-%COMP%]{background:linear-gradient(135deg,#10b981,#059669)}.section-actions[_ngcontent-%COMP%] .action-chip.remove[_ngcontent-%COMP%]{background:linear-gradient(135deg,#ef4444,#dc2626)}.section-actions[_ngcontent-%COMP%] .action-chip[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 10px 22px #0f172a1f}.section-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.75rem}.controls-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}.control-card[_ngcontent-%COMP%]{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:1rem 1.25rem;display:flex;align-items:center;gap:.85rem;cursor:pointer;transition:all .3s ease}.control-card.warning[_ngcontent-%COMP%]{border-color:#f9731659}.control-card.disabled[_ngcontent-%COMP%]{opacity:.5;cursor:default}.control-card[_ngcontent-%COMP%]:not(.disabled):hover{transform:translateY(-4px);box-shadow:0 15px 30px #0f172a1f;border-color:#0d948873;background:#fff}.control-card[_ngcontent-%COMP%] .control-icon[_ngcontent-%COMP%]{width:44px;height:44px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;font-size:1.2rem}.control-card[_ngcontent-%COMP%] .control-icon.success[_ngcontent-%COMP%]{background:#10b98126;color:#059669}.control-card[_ngcontent-%COMP%] .control-icon.warning-icon[_ngcontent-%COMP%]{background:#f9731626;color:#f97316}.control-card[_ngcontent-%COMP%] .control-icon.muted[_ngcontent-%COMP%]{background:#94a3b82e;color:#475569}.control-card[_ngcontent-%COMP%] .control-label[_ngcontent-%COMP%]{font-weight:600;color:#0f172a}.file-upload-container[_ngcontent-%COMP%] .upload-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.25rem}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%]{background:#f8fafc;border:2px dashed #d1d5db;border-radius:16px;padding:1.5rem;transition:all .3s ease}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%]:hover{border-color:#0d6449;background:#0d948814;box-shadow:0 15px 30px #0f172a14}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-header[_ngcontent-%COMP%]{text-align:center;margin-bottom:1rem}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-header[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:2rem;color:#0d6449;display:block;margin-bottom:.5rem}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-header[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin:0;font-size:1.1rem;font-weight:600;color:#1f2937}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-header[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{color:#64748b}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .uploaded-image[_ngcontent-%COMP%]{width:120px;height:120px;object-fit:cover;border-radius:16px;border:3px solid #e5e7eb;box-shadow:0 8px 20px #0f172a1a;transition:all .3s ease}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .uploaded-image[_ngcontent-%COMP%]:hover{transform:scale(1.05);border-color:#0d6449;box-shadow:0 15px 30px #0d948840}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:center}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%] .upload-btn[_ngcontent-%COMP%]{border-radius:10px;padding:.6rem 1.25rem;font-weight:600;border:none;cursor:pointer;transition:all .3s ease}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%] .upload-btn.primary[_ngcontent-%COMP%]{background:linear-gradient(135deg,#0d6449,#047857);color:#fff}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%] .upload-btn.primary[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 10px 22px #0d644959}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%] .upload-btn.secondary[_ngcontent-%COMP%]{background:transparent;border:1px solid #d1d5db;color:#475569}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%] .upload-btn.secondary[_ngcontent-%COMP%]:hover{background:#f1f5f9;border-color:#94a3b8}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%]{background:#f8fafc;border-radius:16px;padding:1.5rem;border:1px solid #e2e8f0}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid #e2e8f0}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-header[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin:0;font-size:1.2rem;font-weight:600;color:#0f172a}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-header[_ngcontent-%COMP%] .camera-close-btn[_ngcontent-%COMP%]{width:32px;height:32px;border-radius:50%;border:none;background:#ef4444;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .3s ease}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-header[_ngcontent-%COMP%] .camera-close-btn[_ngcontent-%COMP%]:hover{background:#dc2626;transform:scale(1.1)}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-video[_ngcontent-%COMP%]{width:100%;max-width:520px;height:300px;border-radius:12px;border:2px solid #e2e8f0;margin-bottom:1rem;object-fit:cover}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.75rem;justify-content:center}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn[_ngcontent-%COMP%]{padding:.75rem 1.5rem;border-radius:10px;font-weight:600;border:none;cursor:pointer;transition:all .3s ease}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.start[_ngcontent-%COMP%]{background:linear-gradient(135deg,#0d6449,#047857);color:#fff}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.start[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 12px 24px #0d644959}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.capture[_ngcontent-%COMP%]{background:linear-gradient(135deg,#6366f1,#4f46e5);color:#fff}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.capture[_ngcontent-%COMP%]:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 12px 24px #6366f159}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.capture[_ngcontent-%COMP%]:disabled{background:#94a3b8;cursor:not-allowed;transform:none;box-shadow:none;opacity:.7}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.switch[_ngcontent-%COMP%]{background:transparent;border:1px solid #d1d5db;color:#475569}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.switch[_ngcontent-%COMP%]:hover{background:#f1f5f9;border-color:#94a3b8}.form-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(260px,1fr));gap:1.5rem}@media (max-width: 1024px){.form-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}}.additional-info-section[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.form-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.6rem}.form-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:600;color:#1f2937;font-size:.95rem}.form-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%] .required[_ngcontent-%COMP%]{color:#ef4444}.form-field[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%]{width:100%;padding:1rem 1.1rem;border-radius:14px;border:2px solid #e2e8f0;background:#f8fafc;font-size:.95rem;transition:all .3s ease;color:#0f172a}.form-field[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%]:focus{outline:none;border-color:#0d6449;background:#fff;box-shadow:0 0 0 4px #0d64492e}.form-field[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%]::placeholder{color:#94a3b8}.form-field[_ngcontent-%COMP%] .error-message[_ngcontent-%COMP%]{color:#ef4444;font-size:.85rem;font-weight:500}.form-dropdown[_ngcontent-%COMP%]{width:100%}.form-dropdown[_ngcontent-%COMP%] .p-dropdown{width:100%;border:2px solid #e2e8f0;border-radius:14px;background:#f8fafc;transition:all .3s ease}.form-dropdown[_ngcontent-%COMP%] .p-dropdown:hover{border-color:#0d6449;background:#fff}.form-dropdown[_ngcontent-%COMP%] .p-dropdown.p-focus{border-color:#0d6449;box-shadow:0 0 0 4px #0d64492e;background:#fff}.clauses-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.25rem}.clause-card[_ngcontent-%COMP%]{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:1.25rem;display:flex;flex-direction:column;gap:1rem}.clause-card[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.clause-card[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-title[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.5rem;font-weight:600;color:#0f172a}.clause-card[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-title[_ngcontent-%COMP%] .clause-number[_ngcontent-%COMP%]{background:#0d6449;color:#fff;padding:.2rem .6rem;border-radius:8px;font-size:.8rem;font-weight:700}.clause-card[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-actions[_ngcontent-%COMP%]{display:inline-flex;gap:.4rem}.clause-card[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-actions[_ngcontent-%COMP%] .action-chip[_ngcontent-%COMP%]{width:38px;height:38px;border-radius:10px;border:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:all .3s ease}.clause-card[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-actions[_ngcontent-%COMP%] .action-chip.add[_ngcontent-%COMP%]{background:linear-gradient(135deg,#0d6449,#047857);color:#fff}.clause-card[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-actions[_ngcontent-%COMP%] .action-chip.remove[_ngcontent-%COMP%]{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff}.clause-card[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-actions[_ngcontent-%COMP%] .action-chip[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 10px 20px #0f172a1f}.clause-card[_ngcontent-%COMP%] .clause-textarea[_ngcontent-%COMP%]{width:100%;min-height:130px;padding:1rem;border-radius:12px;border:2px solid #e2e8f0;font-size:.95rem;line-height:1.6;transition:all .3s ease}.clause-card[_ngcontent-%COMP%] .clause-textarea[_ngcontent-%COMP%]:focus{outline:none;border-color:#0d6449;box-shadow:0 0 0 4px #0d64492e}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;gap:1rem;flex-wrap:wrap}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border-radius:14px;padding:.85rem 1.8rem;font-weight:600;transition:all .3s ease;letter-spacing:.01em}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .cancel-btn[_ngcontent-%COMP%]{background:#ff9f43!important;border:1px solid rgb(255,159,67)!important;color:#0f172a!important;box-shadow:0 12px 24px #ff9f4359}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .cancel-btn[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 16px 32px #ff9f4373}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .submit-btn[_ngcontent-%COMP%]{background:linear-gradient(135deg,#0d6449,#047857);border:none;color:#fff;box-shadow:0 12px 28px #0d644959}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .submit-btn[_ngcontent-%COMP%]:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 18px 35px #0d644973}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .submit-btn[_ngcontent-%COMP%]:disabled{background:linear-gradient(135deg,#94a3b8d9,#94a3b8bf);box-shadow:none;cursor:not-allowed;transform:none}.review-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.75rem}.review-content[_ngcontent-%COMP%] .review-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(240px,1fr));gap:1.25rem}@media (max-width: 1024px){.review-content[_ngcontent-%COMP%] .review-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}}.review-content[_ngcontent-%COMP%] .review-item[_ngcontent-%COMP%]{background:#f8fafc;border-radius:16px;padding:1.1rem 1.25rem;border:1px solid #e2e8f0}.review-content[_ngcontent-%COMP%] .review-item[_ngcontent-%COMP%] .review-label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;font-weight:600;color:#0d6449;margin-bottom:.4rem}.review-content[_ngcontent-%COMP%] .review-item[_ngcontent-%COMP%] .review-label[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem}.review-content[_ngcontent-%COMP%] .review-item[_ngcontent-%COMP%] .review-value[_ngcontent-%COMP%]{color:#1f2937;font-weight:500}.review-content[_ngcontent-%COMP%] .review-subsection[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.review-content[_ngcontent-%COMP%] .review-subsection[_ngcontent-%COMP%] .subsection-title[_ngcontent-%COMP%]{font-size:1.15rem;font-weight:600;color:#0f172a;margin:0}.documents-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,minmax(200px,1fr));gap:1rem}@media (max-width: 1024px){.documents-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}}.document-card[_ngcontent-%COMP%]{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:1rem;text-align:center}.document-card[_ngcontent-%COMP%] .doc-label[_ngcontent-%COMP%]{font-weight:600;color:#0d6449;margin-bottom:.75rem;display:inline-flex;align-items:center;gap:.4rem}.document-card[_ngcontent-%COMP%] .doc-preview[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;max-width:160px;border-radius:12px;border:2px solid #e2e8f0;box-shadow:0 10px 24px #0f172a1f}.document-card[_ngcontent-%COMP%] .not-provided[_ngcontent-%COMP%]{color:#94a3b8;font-style:italic}.review-actions[_ngcontent-%COMP%]{justify-content:flex-end}@media (max-width: 1024px){.application-form-container[_ngcontent-%COMP%]{padding:1.25rem}.application-form-header[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}}@media (max-width: 768px){.application-form-container[_ngcontent-%COMP%]{padding:1rem}.application-form-header[_ngcontent-%COMP%]{padding:2.25rem}.header-actions[_ngcontent-%COMP%]{flex-direction:row;flex-wrap:wrap}.form-section[_ngcontent-%COMP%], .review-section[_ngcontent-%COMP%]{padding:2rem}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{width:100%;flex-direction:column}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}}@media (max-width: 480px){.application-form-header[_ngcontent-%COMP%]{padding:1.8rem}.form-section[_ngcontent-%COMP%], .review-section[_ngcontent-%COMP%]{padding:1.6rem}}*[_ngcontent-%COMP%]{transition:all .3s cubic-bezier(.4,0,.2,1)}']})}}return t})();function Pae(t,o){t&1&&(c(0,"div",34),g(1," Client reference ID is required "),d())}var aO=(()=>{class t{constructor(e,n){this.applicationService=e,this.affidavitPageStore=n,this.selectedAffidavitType="",this.affidavitForm=new qo({ref_no:new vo(null,[K.required])})}ngOnInit(){}check(){let e=this.affidavitForm.controls.ref_no.value;this.applicationService.setClientRef(e),e&&(this.affidavitPageStore.setRefNo(e),this.affidavitPageStore.toggle("application-detail"))}cancel(){this.affidavitForm.reset(),this.applicationService.setClientRef("")}static{this.\u0275fac=function(n){return new(n||t)(M(Si),M(Te))}}static{this.\u0275cmp=N({type:t,selectors:[["e-affidavit-check-application-page"]],decls:54,vars:3,consts:[[1,"application-form-container","check-application-page"],[1,"application-form-header"],[1,"header-content"],[1,"application-form-title"],[1,"application-form-subtitle"],[1,"reference-badges"],[1,"badge-item"],[1,"badge-label"],[1,"badge-value"],[1,"header-actions"],[1,"status-pill"],[1,"pi","pi-shield-check"],[1,"status-pill","secondary"],[1,"pi","pi-bolt"],[1,"form-sections"],[3,"ngSubmit","formGroup"],[1,"form-section","personal-info-section"],[1,"section-header"],[1,"pi","pi-key"],[1,"section-content"],[1,"form-grid","single-column"],[1,"form-field"],["for","ref_no"],[1,"required"],["id","ref_no","type","text","formControlName","ref_no","placeholder","e.g. APP-2025-0215/ELRA-9001-001","required","",1,"form-input"],[1,"input-hint"],[1,"pi","pi-info-circle"],["class","error-message",4,"ngIf"],[1,"divider-with-label"],[1,"form-divider"],[1,"form-actions"],[1,"action-buttons"],["pButton","","type","button","icon","pi pi-times","label","Clear",1,"cancel-btn",3,"click"],["pButton","","type","submit","icon","pi pi-arrow-right","label","Check Status",1,"submit-btn",3,"disabled"],[1,"error-message"]],template:function(n,i){n&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),g(4,"Check Application Status"),d(),c(5,"p",4),g(6," Track the progress of your affidavit request in a few seconds. Simply supply the client reference ID issued after submission. "),d(),c(7,"div",5)(8,"div",6)(9,"span",7),g(10,"Example"),d(),c(11,"span",8),g(12,"APP-2025-0215/ELRA-9001-001"),d()(),c(13,"div",6)(14,"span",7),g(15,"Issued"),d(),c(16,"span",8),g(17,"Email & Payment Receipt"),d()()()(),c(18,"div",9)(19,"div",10),v(20,"i",11),c(21,"span"),g(22,"Secure Lookup"),d()(),c(23,"div",12),v(24,"i",13),c(25,"span"),g(26,"Instant Updates"),d()()()(),c(27,"div",14)(28,"form",15),I("ngSubmit",function(){return i.check()}),c(29,"div",16)(30,"div",17)(31,"h3"),v(32,"i",18),g(33," Provide Your Reference ID"),d(),c(34,"p"),g(35,"Enter the unique identifier associated with your affidavit submission to continue."),d()(),c(36,"div",19)(37,"div",20)(38,"div",21)(39,"label",22),g(40,"Client Reference ID "),c(41,"span",23),g(42,"*"),d()(),v(43,"input",24),c(44,"div",25),v(45,"i",26),g(46," This can be found on the application details page, email receipt, or generated payment invoice. "),d(),_(47,Pae,2,0,"div",27),d()(),c(48,"div",28),v(49,"hr",29),d(),c(50,"div",30)(51,"div",31)(52,"button",32),I("click",function(){return i.cancel()}),d(),v(53,"button",33),d()()()()()()()),n&2&&(p(28),m("formGroup",i.affidavitForm),p(19),m("ngIf",(i.affidavitForm.controls.ref_no.errors==null?null:i.affidavitForm.controls.ref_no.errors.required)&&i.affidavitForm.controls.ref_no.touched),p(6),m("disabled",!i.affidavitForm.controls.ref_no.valid))},dependencies:[Ce,wn,Dn,kn,xn,Ui,Fn,Hn,Lt],styles:['.application-form-container[_ngcontent-%COMP%]{padding:0rem .5rem .5rem;min-height:100vh;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;display:flex;align-items:flex-start}.application-form-container.check-application-page[_ngcontent-%COMP%]{flex-direction:column;gap:1.5rem}.application-form-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:2.75rem;border-radius:24px;background:linear-gradient(135deg,#022c22,#065f46 45%,#0d6449);box-shadow:0 25px 60px #0f172a4d;color:#fff;position:relative;overflow:hidden}.application-form-header[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at top right,rgba(255,255,255,.18),transparent 55%);pointer-events:none}.application-form-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%]{position:relative;z-index:1;max-width:640px}.application-form-header[_ngcontent-%COMP%] .application-form-title[_ngcontent-%COMP%]{font-size:clamp(2rem,3vw,2.75rem);font-weight:700;margin-bottom:.75rem}.application-form-header[_ngcontent-%COMP%] .application-form-subtitle[_ngcontent-%COMP%]{font-size:1.05rem;line-height:1.6;margin-bottom:1.25rem;color:#ffffffd9}.reference-badges[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.75rem}.badge-item[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.6rem;padding:.5rem 1rem;border-radius:999px;background:#0f172a47;border:1px solid rgba(255,255,255,.2);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font-size:.95rem}.badge-label[_ngcontent-%COMP%]{font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;color:#bbf7d0;font-weight:600}.badge-value[_ngcontent-%COMP%]{font-family:SFMono-Regular,Fira Code,Source Code Pro,monospace;color:#fef3c7;font-weight:600;letter-spacing:.05em}.header-actions[_ngcontent-%COMP%]{position:relative;z-index:1;display:flex;flex-direction:column;gap:.75rem;min-width:180px}.status-pill[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.6rem;padding:.6rem 1.1rem;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:#0f172a2e;color:#fff;font-weight:600;font-size:.9rem;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.status-pill.secondary[_ngcontent-%COMP%]{background:#065f4673}.status-pill[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem}.form-sections[_ngcontent-%COMP%]{width:100%;margin:0 auto}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%]{background:#fff;border-radius:24px;padding:2.4rem;margin-bottom:2rem;box-shadow:0 20px 45px #0f172a1f;border:1px solid #f1f5f9;border-left:5px solid #0d6449}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%]{margin-bottom:1.75rem;padding-bottom:1rem;border-bottom:2px solid #f1f5f9}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;font-size:1.45rem;font-weight:600;color:#0f172a}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#0d6449;font-size:1.25rem}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:.35rem 0 0;color:#64748b;font-size:1rem}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2.5rem}.form-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.5rem}.form-grid.single-column[_ngcontent-%COMP%]{grid-template-columns:1fr}.form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.65rem}.form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:600;color:#1f2937;font-size:1rem}.form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%] .required[_ngcontent-%COMP%]{color:#ef4444}.form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%]{width:100%;padding:1rem 1.1rem;border-radius:14px;border:2px solid #e2e8f0;background:#f8fafc;font-size:1rem;transition:all .3s ease;color:#0f172a}.form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%]:focus{outline:none;border-color:#0d6449;background:#fff;box-shadow:0 0 0 4px #0d64492e}.form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%]::placeholder{color:#94a3b8}.form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .input-hint[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;font-size:.9rem;color:#64748b;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:.75rem .9rem}.form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .input-hint[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#0d6449;font-size:1rem}.form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .error-message[_ngcontent-%COMP%]{color:#ef4444;font-size:.85rem;font-weight:500}.security-note[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.65rem;padding:.85rem 1.05rem;background:#0d644914;border:1px solid rgba(13,100,73,.18);border-radius:14px;color:#0f172a;font-size:.95rem}.security-note[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#0d6449;font-size:1.1rem}.divider-with-label[_ngcontent-%COMP%]{width:100%}.form-divider[_ngcontent-%COMP%]{border:none;height:1px;width:100%;background:#e2e8f0}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;gap:1rem;flex-wrap:wrap;justify-content:flex-end}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border-radius:14px;padding:.9rem 1.8rem;font-weight:600;transition:all .3s ease;letter-spacing:.01em}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .cancel-btn[_ngcontent-%COMP%]{background:#ff9f43!important;border:1px solid rgb(255,159,67)!important;color:#0f172a!important;box-shadow:0 12px 24px #ff9f4359}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .cancel-btn[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 16px 32px #ff9f4373}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .submit-btn[_ngcontent-%COMP%]{background:linear-gradient(135deg,#0d6449,#047857);border:none;color:#fff;box-shadow:0 12px 28px #0d644959}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .submit-btn[_ngcontent-%COMP%]:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 18px 35px #0d644973}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .submit-btn[_ngcontent-%COMP%]:disabled{background:linear-gradient(135deg,#94a3b8d9,#94a3b8bf);box-shadow:none;cursor:not-allowed;transform:none}@media (max-width: 768px){.application-form-header[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;padding:2.25rem}.header-actions[_ngcontent-%COMP%]{flex-direction:row;flex-wrap:wrap}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%]{padding:2rem}.support-card[_ngcontent-%COMP%]{grid-template-columns:1fr;text-align:left}.support-actions[_ngcontent-%COMP%]{justify-content:flex-start}}@media (max-width: 520px){.application-form-header[_ngcontent-%COMP%]{padding:1.8rem}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%]{padding:1.6rem}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{width:100%;flex-direction:column}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}}*[_ngcontent-%COMP%]{transition:all .3s cubic-bezier(.4,0,.2,1)}']})}}return t})();var kae=["filter"],Fae=()=>({width:"50px",height:"50px"}),Gv=()=>({width:"50vw"}),sO=()=>({"960px":"75vw","640px":"100vw"}),Rae=t=>({name:"rrr",value:t}),Vae=t=>[t],Lae=()=>({width:"90vw",maxWidth:"800px"}),Nae=()=>["title"];function Bae(t,o){if(t&1&&(B(0),c(1,"p-blockUI",8)(2,"h1",9),g(3),d(),v(4,"p-progressSpinner",10),d(),z()),t&2){let e=f();p(),m("blocked",e.is_loading),p(2),se(" ","Fetching..."," "),p(),It(Pe(4,Fae))}}function zae(t,o){if(t&1&&(c(0,"div",11)(1,"div",12)(2,"h1",13),g(3),d()()()),t&2){let e=f();p(3),se("Application with ",e.appNo," Not Found")}}function Hae(t,o){t&1&&(c(0,"div",11)(1,"div",12)(2,"h1",13),g(3,"Please provide an application number"),d(),c(4,"p",14),g(5,"Set the appNo input to load an application for payment"),d()()())}function jae(t,o){if(t&1){let e=D();c(0,"div",87),v(1,"i",88),c(2,"span"),g(3),d(),c(4,"button",89),I("click",function(){C(e);let i=f(2);return y(i.copyApplicationRef())}),v(5,"i",90),d()()}if(t&2){let e=f(2);p(3),k(e.application==null?null:e.application.ref_no)}}function Uae(t,o){if(t&1){let e=D();c(0,"div",101)(1,"div",102)(2,"div",103),v(3,"img",104),d(),c(4,"div",105)(5,"h4",106),g(6,"Paystack"),d(),c(7,"p",107),g(8,"Secure online payment with cards"),d()()(),c(9,"div",108)(10,"div",109)(11,"span",110),g(12,"Amount"),d(),c(13,"span",111),g(14),_t(15,"currency"),d()(),c(16,"div",112)(17,"angular4-paystack",113),I("onClose",function(){C(e);let i=f(3);return y(i.cancelPaystackPayment())})("callback",function(i){C(e);let r=f(3);return y(r.processPayment(i,"paystack"))}),c(18,"button",114,0),v(20,"i",92),c(21,"span"),g(22,"Pay with Paystack"),d()()()(),c(23,"button",115),I("click",function(){C(e);let i=de(19),r=f(3);return y(r.triggerPaystackPayment(i))}),v(24,"i",92),c(25,"span"),g(26,"Pay with Paystack"),d()()()()}if(t&2){let e=f(3);p(3),m("src","data:image/png;base64,"+e.paystack_icon,Ae),p(11),k(Ji(15,7,e.getPaymentAmount("paystack"),"NGN","symbol-narrow","1.2-2")),p(3),m("email",e.paymentEmail)("amount",e.calculateAmount(e.getPaymentAmount("paystack"))*100)("ref",e.paymentReference)("key",e.paystackKey)("split_code",e.getSplitCode("paystack"))}}function qae(t,o){if(t&1){let e=D();c(0,"button",124),I("click",function(){C(e);let i=f(4);return y(i.showRrrDialog())}),v(1,"i",125),c(2,"span"),g(3,"View RRR"),d()()}}function Qae(t,o){if(t&1){let e=D();c(0,"div",116)(1,"div",102)(2,"div",103),v(3,"img",117),d(),c(4,"div",105)(5,"h4",106),g(6,"Remita"),d(),c(7,"p",107),g(8,"Bank transfer and online payment"),d()()(),c(9,"div",108)(10,"div",109)(11,"span",110),g(12,"Amount"),d(),c(13,"span",111),g(14),_t(15,"currency"),d()(),c(16,"div",118)(17,"remitapay",119),I("callback",function(i){C(e);let r=f(3);return y(r.processPayment(i,"remita"))}),c(18,"button",120,1),v(20,"i",121),c(21,"span"),g(22,"Pay with Remita"),d()()()(),c(23,"button",122),I("click",function(){C(e);let i=de(19),r=f(3);return y(r.triggerRemitaPayment(i))}),v(24,"i",121),c(25,"span"),g(26,"Pay with Remita"),d()(),_(27,qae,4,0,"button",123),d()()}if(t&2){let e=f(3);p(3),m("src",e.remitaIcon,Ae),p(11),k(Ji(15,11,e.getPaymentAmount("remita"),"NGN","symbol-narrow","1.2-2")),p(3),m("email",e.paymentEmail)("customerId",e.paymentEmail)("firstName",(e.application==null||e.application.revenuePaymentEntry==null?null:e.application.revenuePaymentEntry.payee_name)||"")("processRrr",!0)("customFields",ie(18,Vae,ie(16,Rae,e.application==null||e.application.revenuePaymentEntry==null?null:e.application.revenuePaymentEntry.rrr)))("lastName",(e.application==null||e.application.revenuePaymentEntry==null?null:e.application.revenuePaymentEntry.payee_name)||"")("amount",e.getPaymentAmount("remita"))("narration","Payment"),p(10),m("ngIf",e.application==null||e.application.revenuePaymentEntry==null?null:e.application.revenuePaymentEntry.rrr)}}function Gae(t,o){if(t&1&&(c(0,"div",126)(1,"div",102)(2,"div",103),v(3,"img",127),d(),c(4,"div",105)(5,"h4",106),g(6,"Quick Teller"),d(),c(7,"p",107),g(8,"Interswitch payment platform"),d()()(),c(9,"div",108)(10,"div",109)(11,"span",110),g(12,"Amount"),d(),c(13,"span",111),g(14),_t(15,"currency"),d()(),c(16,"div",128),g(17,"Integration coming soon"),d()()()),t&2){let e=f(3);p(14),k(Ji(15,1,e.getPaymentAmount("quickteller"),"NGN","symbol-narrow","1.2-2"))}}function Wae(t,o){if(t&1){let e=D();c(0,"div",129)(1,"div",102)(2,"div",103),v(3,"img",130),d(),c(4,"div",105)(5,"h4",106),g(6,"Cash Payment"),d(),c(7,"p",107),g(8,"Pay through any High Court agent"),d()()(),c(9,"div",108)(10,"div",109)(11,"span",110),g(12,"Amount"),d(),c(13,"span",111),g(14),_t(15,"currency"),d()(),c(16,"button",131),I("click",function(){C(e);let i=f(3);return y(i.showDialog())}),v(17,"i",132),c(18,"span"),g(19,"View Details"),d()()()()}if(t&2){let e=f(3);p(3),m("src",e.cashIcon,Ae),p(11),k(Ji(15,2,e.getPaymentAmount("revenue"),"NGN","symbol-narrow","1.2-2"))}}function Kae(t,o){if(t&1){let e=D();c(0,"div",91)(1,"div",51)(2,"h3"),v(3,"i",92),g(4," Select Payment Method"),d(),c(5,"button",93),I("click",function(){C(e);let i=f(2);return y(i.closePaySection())}),v(6,"i",94),d()(),c(7,"div",53)(8,"div",95)(9,"div",96),_(10,Uae,27,12,"div",97)(11,Qae,28,20,"div",98)(12,Gae,18,6,"div",99)(13,Wae,20,7,"div",100),d()()()()}if(t&2){let e=f(2);p(10),m("ngIf",e.allowOnlinePayment),p(),m("ngIf",e.allowRemitaPayment),p(),m("ngIf",e.allowInterswitchPayment),p(),m("ngIf",e.allowCashPayment)}}function Yae(t,o){}function Zae(t,o){if(t&1){let e=D();c(0,"button",133),I("click",function(){C(e);let i=f(2);return y(i.printpart("printCashRef"))}),d(),c(1,"button",134),I("click",function(){C(e);let i=f(2);return y(i.closeCashPayModal())}),d()}}function Jae(t,o){}function Xae(t,o){if(t&1){let e=D();c(0,"button",133),I("click",function(){C(e);let i=f(2);return y(i.printpart("printCashRef1"))}),d(),c(1,"button",134),I("click",function(){C(e);let i=f(2);return y(i.closeRrrModal())}),d()}}function $ae(t,o){if(t&1&&(c(0,"div",138),v(1,"i",139),c(2,"span",140),g(3),d()()),t&2){let e=f(3);p(3),k(e.currentDocTitle)}}function ese(t,o){if(t&1){let e=D();c(0,"div",141)(1,"button",142),I("click",function(){C(e);let i=f(3);return y(i.displayDocModal=!1)}),d(),c(2,"button",143),I("click",function(){C(e);let i=f(3);return y(i.onOpenCurrentDocument())}),d()()}}function tse(t,o){if(t&1){let e=D();B(0),c(1,"p-dialog",135),jt("visibleChange",function(i){C(e);let r=f(2);return Wt(r.displayDocModal,i)||(r.displayDocModal=i),y(i)}),_(2,$ae,4,1,"ng-template",25),c(3,"div",136),v(4,"img",137),d(),_(5,ese,3,0,"ng-template",35),d(),z()}if(t&2){let e=f(2);p(),It(Pe(4,Lae)),Ht("visible",e.displayDocModal),p(3),m("src",e.currentDoc,Ae)}}function nse(t,o){t&1&&(c(0,"span"),g(1,"Document title is required"),d())}function ise(t,o){if(t&1&&(c(0,"div",169),_(1,nse,2,0,"span",6),d()),t&2){let e,n=f().$implicit;p(),m("ngIf",(e=n.get("title"))==null||e.errors==null?null:e.errors.required)}}function ose(t,o){if(t&1){let e=D();c(0,"button",170),I("click",function(){C(e),f();let i=de(17);return y(i.click())}),d()}}function rse(t,o){if(t&1&&(c(0,"div",171),v(1,"img",172),d()),t&2){let e,n=f(),i=n.$implicit,r=n.index,a=f(4);p(),m("src",a.filePreviews[r].data,Ae)("alt",(e=i.get("title"))==null?null:e.value)}}function ase(t,o){if(t&1){let e=D();c(0,"div",157)(1,"div",158)(2,"div",159)(3,"label",160),g(4," Document Title "),c(5,"span",161),g(6),d(),c(7,"span",162),g(8,"*"),d()(),v(9,"input",163),_(10,ise,2,1,"div",164),d(),c(11,"div",159)(12,"label",160),g(13,"Upload Document"),d(),_(14,ose,1,0,"button",165)(15,rse,2,2,"div",166),c(16,"input",167,2),I("change",function(i){let r=C(e).index,a=f(4);return y(a.handleFileUpload(i,r))}),d()(),c(18,"button",168),I("click",function(){let i=C(e).index,r=f(4);return y(r.removeDocument(i))}),d()()()}if(t&2){let e,n,i=o.$implicit,r=o.index,a=f(4);m("formGroupName",r),p(6),k(r+1),p(3),$e("error",((e=i.get("title"))==null?null:e.invalid)&&((e=i.get("title"))==null?null:e.touched)),p(),m("ngIf",((n=i.get("title"))==null?null:n.invalid)&&((n=i.get("title"))==null?null:n.touched)),p(4),m("ngIf",!(a.filePreviews[r]!=null&&a.filePreviews[r].data)),p(),m("ngIf",a.filePreviews[r]==null?null:a.filePreviews[r].data)}}function sse(t,o){if(t&1){let e=D();c(0,"div",53)(1,"div",147)(2,"h4",148),g(3,"Add Document(s)"),d(),c(4,"form",149)(5,"div",150),_(6,ase,19,7,"div",151),d(),c(7,"div",152)(8,"button",153),I("click",function(){C(e);let i=f(3);return y(i.addDocument())}),d()(),c(9,"div",154)(10,"button",155),I("click",function(){C(e);let i=f(3);return i.canPreviewDoc=!1,y(i.canAddDoc=!1)}),d(),c(11,"button",156),I("click",function(){C(e);let i=f(3);return i.canPreviewDoc=!0,y(i.canAddDoc=!1)}),d()()()()()}if(t&2){let e=f(3);p(4),m("formGroup",e.documentForm),p(2),m("ngForOf",e.filesFormControl.controls),p(5),m("disabled",e.isFormInvalid)}}function lse(t,o){if(t&1&&(c(0,"div",179)(1,"div",180)(2,"span",181),g(3),d(),c(4,"h5",182),g(5),d()(),v(6,"img",183),d()),t&2){let e,n=o.$implicit,i=o.index,r=f(4);p(3),k(i+1),p(2),k((e=n.get("title"))==null?null:e.value),p(),m("src",r.filePreviews[i].data,Ae)}}function cse(t,o){if(t&1){let e=D();c(0,"div",53)(1,"div",173)(2,"h4",174),g(3,"Document Summary"),d(),c(4,"div",62),_(5,lse,7,3,"div",175),d(),c(6,"div",176)(7,"button",177),I("click",function(){C(e);let i=f(3);return i.canPreviewDoc=!1,y(i.canAddDoc=!0)}),d(),c(8,"button",178),I("click",function(){C(e);let i=f(3);return y(i.saveDoc())}),d()()()()}if(t&2){let e=f(3);p(5),m("ngForOf",e.filesFormControl.controls)}}function dse(t,o){if(t&1&&(c(0,"div",144)(1,"div",51)(2,"h3"),v(3,"i",145),g(4," Document Management"),d()(),_(5,sse,12,3,"div",146)(6,cse,9,1,"div",146),d()),t&2){let e=f(2);p(5),m("ngIf",e.canAddDoc),p(),m("ngIf",e.canPreviewDoc)}}function pse(t,o){if(t&1&&(c(0,"div",189)(1,"span",190),g(2),d(),c(3,"span",191),g(4),d()()),t&2){let e=f().$implicit;p(2),k(e.label),p(2),k(e.provided_value)}}function use(t,o){if(t&1&&(B(0),_(1,pse,5,2,"div",188),z()),t&2){let e=o.$implicit;p(),m("ngIf",e.provided_value&&e.provided_value!=="null")}}function mse(t,o){if(t&1&&(c(0,"div",184)(1,"h4",185),g(2,"Additional Information"),d(),c(3,"div",186),_(4,use,2,1,"ng-container",187),d()()),t&2){let e=f(2);p(4),m("ngForOf",e.application==null?null:e.application.formEntries)}}function fse(t,o){t&1&&(c(0,"div",192),g(1,"Not Provided"),d())}function hse(t,o){if(t&1&&v(0,"img",193),t&2){let e=f(2);m("src",e.application.passport_photo_file,Ae)}}function gse(t,o){t&1&&(c(0,"div",192),g(1,"Not Provided"),d())}function Ase(t,o){if(t&1&&v(0,"img",194),t&2){let e=f(2);m("src",e.application.signature_file,Ae)}}function _se(t,o){t&1&&(c(0,"div",192),g(1,"Not Provided"),d())}function vse(t,o){if(t&1&&v(0,"img",195),t&2){let e=f(2);m("src",e.application.identity_card_file,Ae)}}function bse(t,o){t&1&&(c(0,"tr")(1,"th"),g(2,"Document Title"),d(),c(3,"th",206),g(4,"Actions"),d()())}function Cse(t,o){if(t&1){let e=D();c(0,"tr")(1,"td")(2,"div",182),v(3,"i",207),g(4),d()(),c(5,"td",206)(6,"div",75)(7,"button",208),I("click",function(){let i=C(e).$implicit,r=f(3);return y(r.docModalOpen(i))}),d(),c(8,"button",209),I("click",function(){let i=C(e).$implicit,r=f(3);return y(r.deleteDoc(i.id))}),d()()()()}if(t&2){let e=o.$implicit;p(4),se(" ",e.title," ")}}function yse(t,o){t&1&&(c(0,"tr")(1,"td",210),v(2,"i",211),c(3,"p",212),g(4,"No documents found"),d()()())}function xse(t,o){if(t&1){let e=D();c(0,"div",50)(1,"div",51)(2,"h3"),v(3,"i",196),g(4," Uploaded Documents"),d(),c(5,"button",197),I("click",function(){C(e);let i=f(2);return y(i.openAddDocFormSection())}),v(6,"i",198),g(7," Add Document "),d()(),c(8,"div",53)(9,"div",199)(10,"div",200),v(11,"i",201),c(12,"input",202,3),I("input",function(i){C(e);let r=de(15),a=f(2);return y(a.onGlobalFilter(r,i))}),d()(),c(14,"p-table",203,4),_(16,bse,5,0,"ng-template",25)(17,Cse,9,1,"ng-template",204)(18,yse,5,0,"ng-template",205),d()()()()}if(t&2){let e=f(2);p(14),m("value",e.docs)("rows",10)("rowHover",!0)("paginator",!0)("globalFilterFields",Pe(5,Nae))}}function wse(t,o){if(t&1){let e=D();c(0,"button",213),I("click",function(){C(e);let i=f(2);return y(i.displayPaySection())}),d()}}function Ise(t,o){if(t&1){let e=D();c(0,"div",222)(1,"p",223),g(2,"To Acknowledge/Approve Query Changes"),d(),c(3,"button",224),I("click",function(){C(e);let i=f(3);return y(i.approveQueryChanges())}),d()()}}function Mse(t,o){if(t&1&&(c(0,"div",73)(1,"div",74)(2,"h3"),g(3,"Last Query"),d()(),c(4,"div",44)(5,"div",214)(6,"p",215),g(7),d(),c(8,"div",216)(9,"span",217),g(10),_t(11,"date"),d(),c(12,"div",218)(13,"span",219),g(14,"Acknowledged:"),d(),v(15,"p-tag",220),d()(),_(16,Ise,4,0,"div",221),d()()()),t&2){let e,n=f(2);p(7),k((e=n.applicationQuery==null?null:n.applicationQuery.query)!==null&&e!==void 0?e:"(not set)"),p(3),k(Xt(11,5,n.applicationQuery==null?null:n.applicationQuery.created_at,"MMM d, y, h:mm a")),p(5),m("value",n.applicationQuery!=null&&n.applicationQuery.is_acknowledged?"Yes":"No")("severity",n.applicationQuery!=null&&n.applicationQuery.is_acknowledged?"success":"danger"),p(),m("ngIf",(n.applicationQuery==null?null:n.applicationQuery.was_edited_once)&&(n.applicationQuery==null?null:n.applicationQuery.is_acknowledged)==!1)}}function Sse(t,o){if(t&1){let e=D();c(0,"button",225),I("click",function(){C(e);let i=f(2);return y(i.displayIDCardModal=!1)}),d()}}function Ese(t,o){if(t&1){let e=D();c(0,"div",11)(1,"div",15)(2,"div",16)(3,"h1",17),g(4,"Payment for Application"),d(),c(5,"p",18),g(6,"Complete payment for your affidavit application"),d()(),c(7,"div",19)(8,"div",20),v(9,"i",21),c(10,"span"),g(11),d()(),_(12,jae,6,1,"div",22),d()(),_(13,Kae,14,4,"div",23),c(14,"p-dialog",24),jt("visibleChange",function(i){C(e);let r=f();return Wt(r.displayCashModal,i)||(r.displayCashModal=i),y(i)}),_(15,Yae,0,0,"ng-template",25),c(16,"div",26),v(17,"button",27),c(18,"div",28)(19,"span",29),g(20," Copy the "),c(21,"strong",30),g(22,"Payment Reference Number"),d(),g(23," below and present to any High Court agent with the sum of "),c(24,"strong",30),g(25),_t(26,"number"),d(),g(27," to proceed with the affidavit cash payment. "),d()(),c(28,"div",31)(29,"span",32),g(30,"Payee"),d(),c(31,"div",33),g(32),d()(),c(33,"div",31)(34,"span",32),g(35,"Payment Reference Number"),d(),c(36,"div",33),g(37),c(38,"button",34),I("click",function(){C(e);let i=f();return y(i.copyCode(i.application==null||i.application.revenuePaymentEntry==null?null:i.application.revenuePaymentEntry.ref_id))}),d()()()(),_(39,Zae,2,0,"ng-template",35),d(),c(40,"p-dialog",36),jt("visibleChange",function(i){C(e);let r=f();return Wt(r.displayRrrModal,i)||(r.displayRrrModal=i),y(i)}),_(41,Jae,0,0,"ng-template",25),c(42,"div",26),v(43,"button",37),c(44,"div",28)(45,"span",29),g(46," Copy the "),c(47,"strong",30),g(48,"RRR"),d(),g(49," below and use any Remita payment channel to pay the sum of "),c(50,"strong",30),g(51),_t(52,"number"),d(),g(53," to proceed with your request. "),d()(),c(54,"div",31)(55,"span",32),g(56,"Payee"),d(),c(57,"div",33),g(58),d()(),c(59,"div",31)(60,"span",32),g(61,"RRR"),d(),c(62,"div",33),g(63),c(64,"button",38),I("click",function(){C(e);let i=f();return y(i.copyCode(i.application==null||i.application.revenuePaymentEntry==null?null:i.application.revenuePaymentEntry.rrr))}),d()()()(),_(65,Xae,2,0,"ng-template",35),d(),_(66,tse,6,5,"ng-container",6),c(67,"div",39)(68,"div",40),_(69,dse,7,2,"div",41),c(70,"div",42)(71,"div",43)(72,"div",44)(73,"h4",45),g(74,"Application ID"),d(),c(75,"p",46),g(76),d()()(),c(77,"div",47)(78,"div",44)(79,"h4",45),g(80,"Affidavit Type"),d(),c(81,"p",46),g(82),d()()(),c(83,"div",48)(84,"div",44)(85,"h4",45),g(86,"Deponent Name"),d(),c(87,"p",46),g(88),d()()(),c(89,"div",49)(90,"div",44)(91,"h4",45),g(92,"Payment Status"),d(),c(93,"p",46),g(94),d()()()(),c(95,"div",50)(96,"div",51)(97,"h3"),v(98,"i",52),g(99," Personal Information"),d()(),c(100,"div",53)(101,"div",54)(102,"div",55)(103,"span",56),g(104,"Deponent NIN"),d(),c(105,"span",57),g(106),d()(),c(107,"div",55)(108,"span",56),g(109,"Native Town"),d(),c(110,"span",57),g(111),d()(),c(112,"div",55)(113,"span",56),g(114,"Country of Origin"),d(),c(115,"span",57),g(116),d()(),c(117,"div",55)(118,"span",56),g(119,"State of Origin"),d(),c(120,"span",57),g(121),d()(),c(122,"div",55)(123,"span",56),g(124,"Place of Residence"),d(),c(125,"span",57),g(126),d()(),c(127,"div",55)(128,"span",56),g(129,"Occupation"),d(),c(130,"span",57),g(131),d()(),c(132,"div",55)(133,"span",56),g(134,"Gender"),d(),c(135,"span",57),g(136),d()(),c(137,"div",55)(138,"span",56),g(139,"Religion"),d(),c(140,"span",57),g(141),d()()()()(),c(142,"div",50)(143,"div",51)(144,"h3"),v(145,"i",58),g(146," Affidavit Details"),d()(),c(147,"div",53)(148,"div",59)(149,"span",56),g(150,"Affidavit Title"),d(),c(151,"span",57),g(152),d()(),_(153,mse,5,1,"div",60),d()(),c(154,"div",50)(155,"div",51)(156,"h3"),v(157,"i",61),g(158," Supporting Documents"),d()(),c(159,"div",53)(160,"div",62)(161,"div",63)(162,"span",64),g(163,"Passport Photo"),d(),c(164,"div",65),_(165,fse,2,0,"div",66)(166,hse,1,1,"img",67),d()(),c(167,"div",63)(168,"span",64),g(169,"Signature Photo"),d(),c(170,"div",65),_(171,gse,2,0,"div",66)(172,Ase,1,1,"img",68),d()(),c(173,"div",63)(174,"span",64),g(175,"ID Card"),d(),c(176,"div",65),_(177,_se,2,0,"div",66)(178,vse,1,1,"img",69),d()(),c(179,"div",63)(180,"span",64),g(181,"Preferred Court"),d(),c(182,"div",65)(183,"span",70),g(184),d()()()()()(),_(185,xse,19,6,"div",71),d(),c(186,"div",72)(187,"div",73)(188,"div",74)(189,"h3"),g(190,"Quick Actions"),d()(),c(191,"div",44)(192,"div",75),_(193,wse,1,0,"button",76),d()()(),c(194,"div",73)(195,"div",74)(196,"h3"),g(197,"Applicant Information"),d()(),c(198,"div",44)(199,"div",77)(200,"div",78),v(201,"i",79),c(202,"span"),g(203),d()(),c(204,"div",80),v(205,"i",81),c(206,"span"),g(207),d()()()()(),_(208,Mse,17,8,"div",82),d()(),c(209,"p-dialog",83),jt("visibleChange",function(i){C(e);let r=f();return Wt(r.displayIDCardModal,i)||(r.displayIDCardModal=i),y(i)}),c(210,"div",84),v(211,"img",85),d(),_(212,Sse,1,0,"ng-template",35),d(),v(213,"p-toast",86),d()}if(t&2){let e=f();p(8),m("ngClass",e.getStatusClass()),p(),$e("pi-check-circle",(e.application==null?null:e.application.status)==="approved")("pi-clock",(e.application==null?null:e.application.status)==="pending"||(e.application==null?null:e.application.status)==="draft")("pi-exclamation-triangle",(e.application==null?null:e.application.status)==="queried"),p(2),k(e.getStatusText()),p(),m("ngIf",e.application==null?null:e.application.ref_no),p(),m("ngIf",e.displayPaymentSection),p(),It(Pe(70,Gv)),Ht("visible",e.displayCashModal),m("closable",!1)("modal",!0)("breakpoints",Pe(71,sO)),p(11),se("\u20A6",Xt(26,64,e.getPaymentAmount("revenue"),"1.2-2"),""),p(7),k(e.application==null?null:e.application.deponent_name),p(5),se(" ",e.application==null||e.application.revenuePaymentEntry==null?null:e.application.revenuePaymentEntry.ref_id," "),p(3),It(Pe(72,Gv)),Ht("visible",e.displayRrrModal),m("closable",!1)("modal",!0)("breakpoints",Pe(73,sO)),p(11),se("\u20A6",Xt(52,67,e.getPaymentAmount("remita"),"1.2-2"),""),p(7),k(e.application==null?null:e.application.deponent_name),p(5),se(" ",(e.application==null||e.application.revenuePaymentEntry==null?null:e.application.revenuePaymentEntry.rrr)||"Not Set"," "),p(3),m("ngIf",e.displayDocModal),p(3),m("ngIf",e.canPreviewDoc||e.canAddDoc),p(7),k((e.application==null?null:e.application.ref_no)||"Not available"),p(6),k((e.application==null?null:e.application.affidavit_type_name)||"Not set"),p(6),k((e.application==null?null:e.application.deponent_name)||"Not set"),p(),m("ngClass",e.application!=null&&e.application.is_paid?"success":"warning"),p(5),k(e.application!=null&&e.application.is_paid?"Paid":"Not Paid"),p(12),k(e.application.deponent_nin||"Not set"),p(5),k(e.application.town_native||"Not set"),p(5),k(e.application.state.country.name||"Not set"),p(5),k(e.application.state.name||"Not set"),p(5),k(e.application.town_resident||"Not set"),p(5),k(e.application.occupation||"Not set"),p(5),k(e.application.gender||"Not set"),p(5),k(e.application.religion||"Not set"),p(11),k(e.application.affidavit_type_name||"Not set"),p(),m("ngIf",e.application.formEntries==null?null:e.application.formEntries.length),p(12),m("ngIf",!e.application.passport_photo_file),p(),m("ngIf",e.application.passport_photo_file),p(5),m("ngIf",!e.application.signature_file),p(),m("ngIf",e.application.signature_file),p(5),m("ngIf",!e.application.identity_card_file),p(),m("ngIf",e.application.identity_card_file),p(6),k((e.application==null||e.application.court==null?null:e.application.court.name)||"Value not set"),p(),m("ngIf",e.docs.length>0),p(8),m("ngIf",!(e.application!=null&&e.application.is_paid)),p(10),k((e.application==null?null:e.application.applicant_email)||"Not provided"),p(4),k((e.application==null?null:e.application.applicant_phone)||"Not provided"),p(),m("ngIf",e.applicationQuery==null?null:e.applicationQuery.query),p(),It(Pe(74,Gv)),Ht("visible",e.displayIDCardModal),m("modal",!0)("draggable",!1)("resizable",!1),p(2),m("src",e.application.identity_photo_file||e.application.passport_photo_file,Ae)}}var lO=(()=>{class t{set token(e){this.applyToken(e)}get token(){return this._token}set appNo(e){e&&e!==this._appNo&&(this._appNo=e,this._isInitialized&&this.loadApplication())}get appNo(){return this._appNo}set apiTokenAttr(e){this.applyToken(e)}constructor(e,n,i,r,a,s,l,u,h,A,b,x,w,S,O){this.router=e,this.fb=n,this.messageService=i,this.paymentEndpoint=r,this.clipboardApi=a,this.appNotificationService=s,this.paymentKeysEndpoint=l,this.affidavitPageStore=u,this.affidavitAppEndpoint=h,this.paymentOptionsSettingEndpoint=A,this.affidavitApplicationEndpoint=b,this.affidavitApplicationQueryEndpoint=x,this.affidavitAppDocEndpoint=w,this.el=S,this.renderer=O,this._appNo="",this._token="",this.shouldDisplayDetails=!1,this.overlay=!0,this.handlePayment=new V,this._isInitialized=!1,this.paystack_icon=pt.paystack_icon,this.remita_icon=pt.remita_icon,this.remitaIcon=pt.remita_icon,this.cash_icon=pt.cash_icon,this.cashIcon=pt.cash_icon,this.lastPaymentRef="",this.paymentEmail="",this.paymentAmount=0,this.paystackKey="",this.remitaKey="",this.remitaMode="",this.apiMode=null,this.apiBaseUrl="",this.pdfLogo="assets/images/logo-pdf.png",this.docxLogo="assets/images/logo-docx.png",this.docLogo="assets/images/logo-doc.jpeg",this.allowCashPayment=!1,this.allowOnlinePayment=!1,this.allowRemitaPayment=!1,this.allowInterswitchPayment=!1,this.displayRrrModal=!1,this.displayCashModal=!1,this.is_loading=!0,this.currentState=me.currentState,this.no_image=pt.no_image,this.canPreviewDoc=!1,this.canAddDoc=!1,this.displayDocModal=!1,this.currentDoc="",this.currentDocTitle="",this.currentDocFile="",this.filePreviews=[],this.docs=[],this.canEdit=!1,this.hasQuery=!1,this.displayIDCardModal=!1,this.displayPaymentSection=!1,this.showHeader=!0,this.previewAffidavit=!1,this.allowPassportUpload=!1,this.allowOathCommissionerSignaturePhoto=!1,this.stateTitle=me.stateTitleSentence,this.documentForm=this.fb.group({files:this.fb.array([this.fb.group({title:["",K.required,K.min(2)],file:["",K.required]})])}),this.affidavitPageStore.mode$.subscribe({next:R=>{this.apiMode=R;let L=this.apiMode??Fe.TEST;this.apiBaseUrl=L===Fe.PRODUCTION?me.productionApiUrl:me.testApiUrl}})}ngOnInit(){this._isInitialized=!0,this.appNo&&!this.shouldDisplayDetails&&(this.shouldDisplayDetails=!0),this.appNo||(this.is_loading=!1),this.appNo&&this.loadApplication(),this.paymentOptionsSettingEndpoint.single(1).subscribe({next:e=>{this.paymentSetting=e.data,this.allowCashPayment=this.paymentSetting?.allow_cash_payment,this.allowOnlinePayment=this.paymentSetting?.allow_online_payment}}),this.paymentKeysEndpoint.fetchPaymentKeys().subscribe({next:e=>{this.paystackKey=e.paystack_key,this.remitaKey=e.remita_key,this.remitaMode=e.remita_mode}}),setTimeout(()=>{!(this.overlay===!1||this.overlay==="false")&&this.createOverlayHost()},200)}loadApplication(){this.appNo&&(this.is_loading=!0,this.affidavitAppEndpoint.singleByRefNo(this.appNo).subscribe({next:e=>{this.application=e.data,this.is_loading=!1,this.loadPaymentInfo()},error:e=>{this.appNotificationService.showError({title:e.error,detail:e.message}),this.is_loading=!1,this.affidavitPageStore.toggle("new")}}))}onGlobalFilter(e,n){e.filterGlobal(n.target.value,"contains")}clear(e){e.clear(),this.filter.nativeElement.value=""}loadPaymentInfo(){this.paymentEmail=this.application?.applicant_email??"",this.paymentAmount=this.application?.revenuePaymentEntry?.total*100}get paymentReference(){return this.lastPaymentRef=this.application?.revenuePaymentEntry?.ref_id+"__"+Date.now().toString(),this.lastPaymentRef}calculateAmount(e){return El(e)}closeCashPayModal(){this.displayCashModal=!1}copyRefNo(){this.clipboardApi.copyFromContent(this.application?.ref_no),this.messageService.add({severity:"success",summary:this.application?.ref_no,detail:"Was Copied Successfully"})}displayPaySection(){this.displayPaymentSection=!0}closePaySection(){this.displayPaymentSection=!1}getPaymentAmount(e){return(this.application?.split_codes?.find(r=>r.payment_method.code===e)?.payment_method.txn_fee??0)+(this.application?.revenuePaymentEntry?.total||0)}cancelPaystackPayment(){console.log("Paystack Payment cancelled...")}closeRrrModal(){this.displayRrrModal=!1}getSplitCode(e){let n=this.application?.split_codes?.find(r=>r.payment_method.code===e),i=n?.split_codes.code;if((n?.split_codes.type=="json"||n?.split_codes.type=="calculated")&&(i=JSON.parse(JSON.stringify(i)),n.split_codes.type=="calculated")){let r=n.split_codes.amount_field,a=JSON.parse(i);a.forEach(s=>{s[r]=r.percentage/100*(this.application?.revenuePaymentEntry?.total||1)}),i=a}return i||""}processPayment(e,n){let i;switch(n){case si.PAYSTACK:i={email:this.paymentEmail,amount:this.paymentAmount,client_tx_ref:e.reference,host_tx_ref:e.transaction,prn:this.application?.revenuePaymentEntry?.ref_id,host_response_payload:JSON.stringify(e),payment_method:si.PAYSTACK};break;case si.REMITA:i={email:this.paymentEmail,amount:this.paymentAmount,client_tx_ref:this.lastPaymentRef,host_tx_ref:e.transaction,prn:this.application?.revenuePaymentEntry?.ref_id,host_response_payload:JSON.stringify(e),payment_method:si.REMITA};break;default:return}this.paymentEndpoint.processPayment(i).subscribe({next:()=>{this.appNotificationService.showSuccess({title:"Success!!",detail:"Your payment has been recieved!"}),this.application=Me(q({},this.application),{is_paid:!0,status:"pending",revenuePaymentEntry:Me(q({},this.application.revenuePaymentEntry),{status:"paid"})}),this.displayPaymentSection=!1,this.handlePayment.emit({status:"success",data:this.application.revenuePaymentEntry})},error:r=>{this.handlePayment.emit({status:"error",data:r}),this.appNotificationService.showError({title:"Error!!",detail:r.message||r})}})}showRrrDialog(){this.displayRrrModal=!0}copyCode(e){this.clipboardApi.copyFromContent(e),this.messageService.add({severity:"success",summary:e,detail:"Was Copied Successfully"})}showDialog(){this.displayCashModal=!0}approveQueryChanges(){this.affidavitPageStore.startLoading("Acknowledging Query . . ."),this.affidavitApplicationEndpoint.aknowledgeQueryChanges(this.application?.ref_no).subscribe({next:e=>{this.application=e.data,this.affidavitPageStore.stopLoading(),this.application?.last_query_id&&(this.hasQuery=!0,this.loadQuery(this.application?.last_query_id)),this.appNotificationService.showSuccess({title:"Success!!",detail:"Your changes have been submitted successfully!"})},error:e=>{this.affidavitPageStore.stopLoading(),this.appNotificationService.showError({title:"Error!!",detail:e.message||e})}})}loadQuery(e){return Yn(this,null,function*(){this.applicationQuery=(yield this.affidavitApplicationQueryEndpoint.single(e).toPromise())?.data})}openAddDocFormSection(){this.canAddDoc=!0,this.canPreviewDoc=!1,window.scrollTo({top:0,left:0,behavior:"smooth"})}onOpenCurrentDocument(){this.router.navigate([]).then(e=>{window.open(this.apiBaseUrl+"/file/get/"+this.currentDocFile,"_blank")})}addDocument(){if(this.filesFormControl.controls.some(n=>n.get("file")?.value==""||n.get("title")?.value=="")){this.appNotificationService.showInfo({title:"Complete current entries first"});return}this.filesFormControl.push(this.fb.group({title:["",K.required,K.min(2)],file:["",K.required]})),this.filePreviews.push({type:"unknown",data:null})}removeDocument(e){this.filesFormControl.removeAt(e),this.filePreviews.splice(e,1)}docModalOpen(e){this.currentDocFile=e.doc_name,this.currentDoc=this.validateFile(this.currentDocFile),this.currentDocTitle=e.title,this.displayDocModal=!0}handleFileUpload(e,n){let i=e.target.files[0];if(i){let r=i.type,a=new FileReader;r.startsWith("image/")?(a.onload=()=>{this.filePreviews[n]={type:"image",data:a.result}},a.readAsDataURL(i)):r==="application/pdf"?this.filePreviews[n]={type:"pdf",data:"assets/images/logo-pdf.png"}:(r==="application/msword"||r==="application/vnd.openxmlformats-officedocument.wordprocessingml.document")&&(this.filePreviews[n]={type:"doc",data:"assets/images/logo-doc.jpeg"}),this.filesFormControl.at(n).patchValue({file:i})}}get filesFormControl(){return this.documentForm.controls.files}get isFormInvalid(){return this.filesFormControl.invalid}deleteDoc(e){let n=this.docs.find(i=>i.id===e);n&&(this.affidavitPageStore.startLoading("Deleting ..."),this.affidavitAppDocEndpoint.delete(n.id).subscribe({next:()=>{let i=this.docs.filter(r=>r.id!==n.id);this.affidavitPageStore.stopLoading(),this.appNotificationService.showSuccess({title:"Document",detail:"Removed Successfully!"}),this.docs=i},error:()=>{this.affidavitPageStore.stopLoading(),this.appNotificationService.showError({title:"Error!!",detail:"An error occurred while deleting your document(s)..."})}}))}saveDoc(){if(this.filesFormControl.controls.some(r=>r.get("file")?.value==""||r.get("title")?.value=="")){this.appNotificationService.showInfo({title:"Finish all entries to submit"});return}let n={files:this.filesFormControl.controls.map((r,a)=>({file:r.get("file")?.value,title:r.get("title")?.value}))},i=new FormData;i.append("app_id",this.application.id.toString()),n.files.forEach((r,a)=>{i.append(`files[${a}][file]`,r.file),i.append(`files[${a}][title]`,r.title)}),this.affidavitPageStore.startLoading("Upoading Document(s) . . ."),this.affidavitAppDocEndpoint.create(i).subscribe({next:r=>{},error:r=>{this.affidavitPageStore.stopLoading(),this.appNotificationService.showError({title:"Error!!",detail:r.message||r})},complete:()=>{this.affidavitPageStore.stopLoading(),this.appNotificationService.showSuccess({title:"Document(s)",detail:"Added Successfully!"}),window.location.reload()}})}validateFile(e){if(e){let n=e.slice(-4),i=this.apiBaseUrl+"/file/get/"+e;switch(n){case".pdf":i=this.pdfLogo;break;case".doc":i=this.docLogo;break;case"docx":i=this.docxLogo;break;case"":i="assets/images/noimage.gif";break}return i}return""}getStatusClass(){switch(this.application?.status){case"approved":return"success";case"queried":return"danger";case"pending":case"draft":return"warning";default:return"default"}}getStatusText(){switch(this.application?.status){case"approved":return"Approved";case"queried":return"Queried";case"pending":return"Pending";case"draft":return"Draft";default:return"Unknown"}}isPaymentMethodAllowed(e){return this.application?.split_codes?this.application.split_codes.some(n=>n.payment_method?.code===e):!1}triggerPaystackPayment(e){e&&e.click()}triggerRemitaPayment(e){e&&e.click()}copyApplicationRef(){this.copyRefNo()}printpart(e="printCashRef"){let n=document.getElementById(e);if(!n)return;let i=window.open("");i?.document.write(n.innerHTML),i?.stop(),i?.print(),i?.close()}applyToken(e){let n=e??"";this._token=n,n&&this.affidavitPageStore.setToken(n)}createOverlayHost(){try{let e=this.el.nativeElement;if(e.__hc_overlay_refs)return;this.ensureOverlayStyles();let n=this.renderer.createElement("div");this.renderer.addClass(n,"hc-overlay-backdrop"),this.renderer.setAttribute(n,"tabindex","-1");let i=this.renderer.createElement("div");this.renderer.addClass(i,"hc-overlay-panel");let r=this.renderer.createElement("button");this.renderer.addClass(r,"hc-overlay-close"),this.renderer.setAttribute(r,"aria-label","Close"),this.renderer.listen(r,"click",()=>this.closeOverlay()),this.renderer.appendChild(i,r);let a=e.parentElement;this.renderer.appendChild(i,e),this.renderer.appendChild(n,i),this.renderer.appendChild(document.body,n),setTimeout(()=>{try{this.renderer.addClass(n,"hc-overlay-open"),this.renderer.addClass(i,"hc-overlay-open"),this.renderer.addClass(document.body,"hc-overlay-open")}catch{}},20);let s=document&&document.activeElement||null,l=document.body.style.overflow;document.body.style.overflow="hidden";let u=h=>{h.key==="Escape"&&this.closeOverlay(),h.key==="Tab"&&this.maintainFocus(h,i)};window.addEventListener("keydown",u),this.renderer.setAttribute(i,"role","dialog"),this.renderer.setAttribute(i,"aria-modal","true"),this.renderer.setAttribute(i,"tabindex","-1"),setTimeout(()=>{try{i.focus()}catch{}},0),e.__hc_overlay_refs={backdrop:n,keyHandler:u,originalParent:a,prevFocus:s,prevOverflow:l}}catch(e){console.warn("Failed to create overlay for pay-affidavit:",e)}}closeOverlay(){let e=this.el.nativeElement,n=e.__hc_overlay_refs;if(n)try{let{backdrop:i,keyHandler:r,originalParent:a,prevFocus:s,prevOverflow:l}=n;window.removeEventListener("keydown",r),i&&i.parentNode&&i.parentNode.removeChild(i),a&&e&&e.parentElement&&e.parentElement!==a&&a.appendChild(e);try{this.renderer.removeClass(document.body,"hc-overlay-open"),l!==void 0&&(document.body.style.overflow=l)}catch{}try{s&&s.focus&&s.focus()}catch{}delete e.__hc_overlay_refs}catch{}}maintainFocus(e,n){if(e.key!=="Tab")return;let i=n.querySelectorAll('a[href], area[href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, [tabindex]:not([tabindex="-1"]), [contenteditable]'),r=Array.prototype.slice.call(i);if(!r.length){e.preventDefault();return}let a=r[0],s=r[r.length-1],l=document.activeElement;e.shiftKey?(l===a||l===n)&&(e.preventDefault(),s.focus()):l===s&&(e.preventDefault(),a.focus())}ensureOverlayStyles(){if(document.querySelector("style[data-hc-overlay-component]"))return;let e=`
|
|
594
|
+
background-color`,"rgb(11, 100, 11)","border-radius","3px","height","45px","justify-items","center","/* margin-bottom","30px !important"],[1,"text-white","text-center","font-bold","justify-items-center","py-3","font-weight-bolder","text-uppercase",2,"font-size","20px","margin-top","-5px"],["class","pi-img-rounded img-fix-h","onError","this.src='assets/images/noimage.gif';","alt","Deponent Passport Photo","width","90","style","float: right !important; margin-top: -30px",3,"src",4,"ngIf"],["onError","this.src='assets/images/noimage.gif';","alt","Deponent Passport Photo","width","90",1,"pi-img-rounded","img-fix-h",2,"float","right !important","margin-top","-30px",3,"src"],["icon","pi pi-check","label","Close","styleClass","p-button-danger p-button-outlined",3,"click"]],template:function(n,i){n&1&&(c(0,"div",0)(1,"div",1)(2,"div",2),_(3,soe,81,20,"section",3),d(),c(4,"div",4)(5,"div",5),v(6,"a",6),c(7,"button",7),I("click",function(){return i.goBack()}),d()(),v(8,"br"),c(9,"p-dialog",8),jt("visibleChange",function(a){return Wt(i.displayIDCardModal,a)||(i.displayIDCardModal=a),a}),c(10,"div",9),v(11,"div",10),d(),_(12,loe,1,0,"ng-template",11),d()()()()),n&2&&(p(3),m("ngForOf",i.applications),p(6),It(Pe(7,toe)),Ht("visible",i.displayIDCardModal),m("modal",!0)("draggable",!1)("resizable",!1))},dependencies:[rt,Ce,wn,xn,Lt,cd,fe,er,df,Uo]})}}return t})();var doe=["videoElement"];function poe(t,o){t&1&&(c(0,"div",18),v(1,"i",19),c(2,"span"),g(3,"Incomplete Form"),d()())}function uoe(t,o){if(t&1){let e=D();c(0,"div",26)(1,"div",27)(2,"h3"),v(3,"i",28),g(4," Workspace Controls"),d(),c(5,"p"),g(6,"Use the quick controls to manage deponent profiles across this bulk submission."),d()(),c(7,"div",29)(8,"div",30)(9,"div",31),I("click",function(){C(e);let i=f(2);return y(i.addDeponent())}),c(10,"div",32),v(11,"i",33),d(),c(12,"div",34),g(13,"Add New Deponent"),d()(),c(14,"div",31),I("click",function(){C(e);let i=f(2);return y(i.applicationsArray.controls.length>0&&i.removeDeponent(i.applicationsArray.controls.length-1))}),c(15,"div",35),v(16,"i",36),d(),c(17,"div",34),g(18,"Remove Last Deponent"),d()()()()()}if(t&2){let e=f(2);p(14),$e("disabled",e.applicationsArray.controls.length===0)("warning",e.applicationsArray.controls.length>0),p(),$e("warning-icon",e.applicationsArray.controls.length>0)("muted",e.applicationsArray.controls.length===0)}}function moe(t,o){if(t&1){let e=D();c(0,"div",77),v(1,"img",78),c(2,"div",79)(3,"button",80),I("click",function(){C(e);let i=de(6);return y(i.click())}),d(),c(4,"button",81),I("click",function(i){return C(e),f(5).openCamera(),y(i.preventDefault())}),d()(),c(5,"input",82,0),I("change",function(i){C(e);let r=f(3).index,a=f(2);return y(a.handleFileInputIPassportImage(i,r))}),d()()}if(t&2){let e=f(3).index,n=f(2);p(),m("src",n.uploadedPassportImage[e]||n.no_image,Ae)}}function foe(t,o){if(t&1&&(c(0,"div",73)(1,"div",74),v(2,"i",76),c(3,"h4"),g(4,"Passport Photo"),d(),c(5,"small"),g(6,"JPG, GIF or PNG. Max 800kB"),d()(),_(7,moe,7,1,"div",75),d()),t&2){let e=f(4);p(7),m("ngIf",!e.cameraEnabled)}}function hoe(t,o){if(t&1){let e=D();c(0,"div",77),v(1,"img",83),c(2,"div",79)(3,"button",80),I("click",function(){C(e);let i=de(5);return y(i.click())}),d()(),c(4,"input",84,1),I("change",function(i){C(e);let r=f(2).index,a=f(2);return y(a.handleFileInputIDCard(i,r))}),d()()}if(t&2){let e=f(2).index,n=f(2);p(),m("src",n.uploadedIDCard[e]||n.no_image,Ae)}}function goe(t,o){if(t&1){let e=D();c(0,"div",73)(1,"div",74),v(2,"i",85),c(3,"h4"),g(4,"Digital Signature"),d(),c(5,"small"),g(6,"JPG, GIF or PNG. Max 800kB"),d()(),c(7,"div",77),v(8,"img",86),c(9,"div",79)(10,"button",80),I("click",function(){C(e);let i=de(12);return y(i.click())}),d()(),c(11,"input",87,2),I("change",function(i){C(e);let r=f(2).index,a=f(2);return y(a.handleFileInputSignatureImage(i,r))}),d()()()}if(t&2){let e=f(2).index,n=f(2);p(8),m("src",n.uploadedSignatureImage[e]||n.no_image,Ae)}}function Aoe(t,o){if(t&1&&(c(0,"div",70)(1,"div",71),_(2,foe,8,1,"div",72),c(3,"div",73)(4,"div",74),v(5,"i",38),c(6,"h4"),g(7,"Identity Card"),d(),c(8,"small"),g(9,"JPG, GIF or PNG. Max 800kB"),d()(),_(10,hoe,6,1,"div",75),d(),_(11,goe,13,1,"div",72),d()()),t&2){let e=f(3);p(2),m("ngIf",e.affidavitAppSetting==null?null:e.affidavitAppSetting.allow_passport_photo),p(8),m("ngIf",!e.cameraEnabled1),p(),m("ngIf",e.affidavitAppSetting==null?null:e.affidavitAppSetting.allow_signature)}}function _oe(t,o){if(t&1){let e=D();c(0,"button",98),I("click",function(i){C(e);let r=f(4);return r.cameraEnabled?r.startCamera():r.startCamera1(),y(i.preventDefault())}),v(1,"i",99),g(2," Start Camera "),d()}}function voe(t,o){if(t&1){let e=D();c(0,"button",100),I("click",function(){C(e);let i=f(2).index,r=f(2);return y(r.captureImage(i))}),v(1,"i",101),g(2," Capture "),d()}}function boe(t,o){if(t&1){let e=D();c(0,"button",100),I("click",function(){C(e);let i=f(2).index,r=f(2);return y(r.captureImage1(i))}),v(1,"i",101),g(2," Capture "),d()}}function Coe(t,o){if(t&1){let e=D();c(0,"button",102),I("click",function(){C(e);let i=f(4);return y(i.switchCamera())}),v(1,"i",103),g(2," Switch Camera "),d()}}function yoe(t,o){if(t&1){let e=D();c(0,"div",88)(1,"div",89)(2,"div",90)(3,"h4"),g(4,"Camera Capture"),d(),c(5,"button",91),I("click",function(){C(e);let i=f(3);return y(i.stopCamera())}),v(6,"i",92),d()(),v(7,"video",93,3),c(9,"div",94),_(10,_oe,3,0,"button",95)(11,voe,3,0,"button",96)(12,boe,3,0,"button",96)(13,Coe,3,0,"button",97),d()()()}if(t&2){let e,n=f(3);p(10),m("ngIf",!n.cameraStarted&&!n.cameraStarted1),p(),m("ngIf",n.cameraStarted),p(),m("ngIf",n.cameraStarted1),p(),m("ngIf",(n.cameraStarted||n.cameraStarted1)&&((e=n.cameraService.videoInputs.length)!==null&&e!==void 0?e:0)>1)}}function xoe(t,o){t&1&&(c(0,"div",104),g(1," Deponent name is required "),d())}function woe(t,o){t&1&&(c(0,"div",104),g(1," Deponent NIN is required. "),d())}function Ioe(t,o){t&1&&(c(0,"div",104),g(1," NIN must be a valid number. "),d())}function Moe(t,o){t&1&&(c(0,"div",104),g(1," NIN must be 11 digits "),d())}function Soe(t,o){t&1&&(c(0,"div",104),g(1," Gender is required "),d())}function Eoe(t,o){t&1&&(c(0,"div",104),g(1," Town is required "),d())}function Ooe(t,o){t&1&&(c(0,"div",104),g(1," Country of origin is required "),d())}function Toe(t,o){t&1&&(c(0,"div",104),g(1," State of origin is required "),d())}function Poe(t,o){t&1&&(c(0,"div",104),g(1," Resident town is required "),d())}function Doe(t,o){t&1&&(c(0,"div",104),g(1," Occupation is required "),d())}function koe(t,o){t&1&&(c(0,"div",104),g(1," Religion is required "),d())}function Foe(t,o){if(t&1&&(c(0,"div",47)(1,"label"),g(2),c(3,"span",49),g(4,"*"),d()(),v(5,"input",109),d()),t&2){let e,n=f().index,i=f(4);p(2),se("",(e=i.getFormEntriesRecordByIndex(n))==null?null:e.label," "),p(3),m("id",n)("type",i.getFormEntriesRecordByIndex(n).input_type||"text")("formControlName",n)}}function Roe(t,o){if(t&1&&(B(0),_(1,Foe,6,4,"div",108),z()),t&2){let e,n=o.index,i=f(4);p(),m("ngIf",((e=i.getFormEntriesRecordByIndex(n))==null?null:e.is_calculated)==!1)}}function Voe(t,o){if(t&1&&(c(0,"div",105)(1,"div",27)(2,"h3"),v(3,"i",106),g(4," Affidavit Information"),d(),c(5,"p"),g(6,"Provide affidavit-specific details required for this deponent."),d()(),c(7,"div",43)(8,"div",107),_(9,Roe,2,1,"ng-container",24),d()()()),t&2){let e=f(3);p(9),m("ngForOf",e.formEntries.controls)}}function Loe(t,o){if(t&1){let e=D();B(0),c(1,"div",113)(2,"div",114)(3,"div",115)(4,"span"),g(5,"Clause"),d(),c(6,"span",116),g(7),d()(),c(8,"div",117)(9,"button",118),I("click",function(){let i=C(e).index,r=f(4);return y(r.onAddClause(i))}),d(),c(10,"button",119),I("click",function(){let i=C(e).index,r=f(4);return y(r.onRemoveClause(i))}),d()()(),v(11,"textarea",120),d(),z()}if(t&2){let e=o.index;p(7),k(e+1),p(4),m("formControlName",e)}}function Noe(t,o){if(t&1&&(c(0,"div",110)(1,"div",27)(2,"h3"),v(3,"i",111),g(4," Clauses Information"),d(),c(5,"p"),g(6,"Define the specific clauses and content of this affidavit submission."),d()(),c(7,"div",43)(8,"div",112),_(9,Loe,12,2,"ng-container",24),d()()()),t&2){let e=f(3);p(9),m("ngForOf",e.clauseEntriesControl.controls)}}function Boe(t,o){if(t&1){let e=D();B(0),c(1,"div",37)(2,"div",27)(3,"h3"),v(4,"i",38),g(5),c(6,"span",39),g(7,"Active Form"),d()(),c(8,"div",40)(9,"button",41),I("click",function(){C(e);let i=f(2);return y(i.addDeponent())}),v(10,"i",33),d(),c(11,"button",42),I("click",function(){let i=C(e).index,r=f(2);return y(r.removeDeponent(i))}),v(12,"i",36),d()()(),c(13,"div",43),_(14,Aoe,12,3,"div",44)(15,yoe,14,4,"div",45),c(16,"div",46)(17,"div",47)(18,"label",48),g(19,"Deponent Name "),c(20,"span",49),g(21,"*"),d()(),v(22,"input",50),_(23,xoe,2,0,"div",51),d(),c(24,"div",47)(25,"label",52),g(26,"Deponent NIN "),c(27,"span",49),g(28,"*"),d()(),c(29,"input",53),I("input",function(i){C(e);let r=f(2);return y(r.onInput(i))}),d(),_(30,woe,2,0,"div",51)(31,Ioe,2,0,"div",51)(32,Moe,2,0,"div",51),d(),c(33,"div",47)(34,"label",54),g(35,"Gender "),c(36,"span",49),g(37,"*"),d()(),c(38,"p-dropdown",55),I("onChange",function(i){C(e);let r=f(2);return y(r.closeDropdown(i))}),d(),_(39,Soe,2,0,"div",51),d(),c(40,"div",47)(41,"label",56),g(42,"Native Town "),c(43,"span",49),g(44,"*"),d()(),v(45,"input",57),_(46,Eoe,2,0,"div",51),d(),c(47,"div",47)(48,"label",58),g(49,"Country of Origin "),c(50,"span",49),g(51,"*"),d()(),c(52,"p-dropdown",59),I("onChange",function(i){C(e);let r=f(2);return y(r.closeDropdown(i))}),d(),_(53,Ooe,2,0,"div",51),d(),c(54,"div",47)(55,"label",60),g(56,"State of Origin "),c(57,"span",49),g(58,"*"),d()(),c(59,"p-dropdown",61),I("onChange",function(i){C(e);let r=f(2);return y(r.closeDropdown(i))}),d(),_(60,Toe,2,0,"div",51),d(),c(61,"div",47)(62,"label",62),g(63,"Place of Residence "),c(64,"span",49),g(65,"*"),d()(),v(66,"input",63),_(67,Poe,2,0,"div",51),d(),c(68,"div",47)(69,"label",64),g(70,"Occupation "),c(71,"span",49),g(72,"*"),d()(),v(73,"input",65),_(74,Doe,2,0,"div",51),d(),c(75,"div",47)(76,"label",66),g(77,"Religion "),c(78,"span",49),g(79,"*"),d()(),c(80,"p-dropdown",67),I("onChange",function(i){C(e);let r=f(2);return y(r.closeDropdown(i))}),d(),_(81,koe,2,0,"div",51),d()()(),_(82,Voe,10,1,"div",68)(83,Noe,10,1,"div",69),d(),z()}if(t&2){let e=o.index,n=f(2);p(),m("formGroupName",e),p(4),se(" Deponent ",e+1," "),p(9),m("ngIf",(n.affidavitAppSetting==null?null:n.affidavitAppSetting.allow_passport_photo)||(n.affidavitAppSetting==null?null:n.affidavitAppSetting.allow_signature)),p(),m("ngIf",n.cameraEnabled||n.cameraEnabled1),p(8),m("ngIf",(n.applicationFormControl.deponent_name.errors==null?null:n.applicationFormControl.deponent_name.errors.required)&&n.applicationFormControl.deponent_name.touched),p(7),m("ngIf",(n.applicationFormControl.deponent_nin.errors==null?null:n.applicationFormControl.deponent_nin.errors.required)&&n.applicationFormControl.deponent_nin.touched),p(),m("ngIf",(n.applicationFormControl.deponent_nin.errors==null?null:n.applicationFormControl.deponent_nin.errors.minlength)&&n.applicationFormControl.deponent_nin.touched),p(),m("ngIf",!n.isNINValidated&&n.applicationFormControl.deponent_nin.touched),p(6),m("options",n.genders)("showClear",!0),p(),m("ngIf",(n.applicationFormControl.gender.errors==null?null:n.applicationFormControl.gender.errors.required)&&n.applicationFormControl.gender.touched),p(7),m("ngIf",(n.applicationFormControl.town_native.errors==null?null:n.applicationFormControl.town_native.errors.required)&&n.applicationFormControl.town_native.touched),p(6),m("options",n.geoCountry)("showClear",!0)("filter",!0),p(),m("ngIf",(n.applicationFormControl.originCountry.errors==null?null:n.applicationFormControl.originCountry.errors.required)&&n.applicationFormControl.originCountry.touched),p(6),m("options",n.statesByDeponent[e])("showClear",!0)("filter",!0),p(),m("ngIf",(n.applicationFormControl.originState.errors==null?null:n.applicationFormControl.originState.errors.required)&&n.applicationFormControl.originState.touched),p(7),m("ngIf",(n.applicationFormControl.town_resident.errors==null?null:n.applicationFormControl.town_resident.errors.required)&&n.applicationFormControl.town_resident.touched),p(7),m("ngIf",(n.applicationFormControl.occupation.errors==null?null:n.applicationFormControl.occupation.errors.required)&&n.applicationFormControl.occupation.touched),p(6),m("options",n.religions)("showClear",!0)("filter",!0),p(),m("ngIf",(n.applicationFormControl.religion.errors==null?null:n.applicationFormControl.religion.errors.required)&&n.applicationFormControl.religion.touched),p(),m("ngIf",n.showAffidavitInformationForm),p(),m("ngIf",n.canShowClausesForm&&n.clauseEntriesControl.controls.length>0)}}function zoe(t,o){t&1&&(c(0,"div",104),g(1," Applicant email is required "),d())}function Hoe(t,o){t&1&&(c(0,"div",104),g(1," No spaces are allowed in the email "),d())}function joe(t,o){t&1&&(c(0,"div",104),g(1," Applicant phone number is required "),d())}function Uoe(t,o){t&1&&(c(0,"div",104),g(1," Preferred court is required "),d())}function qoe(t,o){if(t&1){let e=D();c(0,"div",121)(1,"div",27)(2,"h3"),v(3,"i",122),g(4," Optional Information"),d(),c(5,"p"),g(6,"Provide contact details and preferred court for this bulk submission."),d()(),c(7,"div",43)(8,"div",46)(9,"div",47)(10,"label",123),g(11,"Applicant Email "),c(12,"span",49),g(13,"*"),d()(),v(14,"input",124),_(15,zoe,2,0,"div",51)(16,Hoe,2,0,"div",51),d(),c(17,"div",47)(18,"label",125),g(19,"Applicant Phone Number "),c(20,"span",49),g(21,"*"),d()(),v(22,"input",126),_(23,joe,2,0,"div",51),d(),c(24,"div",47)(25,"label",127),g(26,"Preferred Court "),c(27,"span",49),g(28,"*"),d()(),c(29,"p-dropdown",128),I("onChange",function(i){C(e);let r=f(2);return y(r.closeDropdown(i))}),d(),_(30,Uoe,2,0,"div",51),d()(),c(31,"div",129)(32,"div",130)(33,"button",131),I("click",function(){C(e);let i=f(2);return y(i.goBack())}),d(),c(34,"button",132),I("click",function(){C(e);let i=f(2);return y(i.processForm())}),d()()()()()}if(t&2){let e=f(2);p(15),m("ngIf",(e.rootForm.controls.applicant_email.errors==null?null:e.rootForm.controls.applicant_email.errors.required)&&e.rootForm.controls.applicant_email.touched),p(),m("ngIf",(e.rootForm.controls.applicant_email.errors==null?null:e.rootForm.controls.applicant_email.errors.pattern)&&e.rootForm.controls.applicant_email.touched),p(7),m("ngIf",(e.rootForm.controls.applicant_phone.errors==null?null:e.rootForm.controls.applicant_phone.errors.required)&&e.rootForm.controls.applicant_phone.touched),p(6),m("options",e.courts)("showClear",!0),p(),m("ngIf",(e.rootForm.controls.court.errors==null?null:e.rootForm.controls.court.errors.required)&&e.rootForm.controls.court.touched),p(4),m("disabled",e.applicationForm.invalid)}}function Qoe(t,o){if(t&1&&(c(0,"div",20)(1,"form",21),_(2,uoe,19,8,"div",22),c(3,"div",23),_(4,Boe,84,28,"ng-container",24),d(),_(5,qoe,35,7,"div",25),d()()),t&2){let e=f();p(),m("formGroup",e.rootForm),p(),m("ngIf",e.applicationsArray.controls.length>0),p(2),m("ngForOf",e.applicationsArray.controls),p(),m("ngIf",e.applicationsArray.controls.length>0)}}function Goe(t,o){if(t&1&&(c(0,"div",138)(1,"div",139),v(2,"i",153),g(3),d(),c(4,"span",141),g(5),d()()),t&2){let e=f().$implicit;p(3),se(" ",e.label,""),p(2),k(e.provided_value)}}function Woe(t,o){if(t&1&&(B(0),_(1,Goe,6,2,"div",162),z()),t&2){let e=o.$implicit;p(),m("ngIf",e.is_calculated==!1)}}function Koe(t,o){if(t&1&&(c(0,"div",155)(1,"h4",156),g(2,"Affidavit Information"),d(),c(3,"div",137),_(4,Woe,2,1,"ng-container",24),d()()),t&2){let e=f().$implicit;p(4),m("ngForOf",e.formEntries)}}function Yoe(t,o){if(t&1&&(c(0,"div",163),v(1,"img",164),d()),t&2){let e=f().index,n=f(2);p(),m("src",n.uploadedPassportImage[e],Ae)}}function Zoe(t,o){t&1&&(c(0,"span",165),g(1,"Not Provided"),d())}function Joe(t,o){if(t&1&&(c(0,"div",163),v(1,"img",166),d()),t&2){let e=f().index,n=f(2);p(),m("src",n.uploadedSignatureImage[e],Ae)}}function Xoe(t,o){t&1&&(c(0,"span",165),g(1,"Not Provided"),d())}function $oe(t,o){if(t&1&&(c(0,"div",163),v(1,"img",167),d()),t&2){let e=f().index,n=f(2);p(),m("src",n.uploadedIDCard[e],Ae)}}function ere(t,o){t&1&&(c(0,"span",165),g(1,"Not Provided"),d())}function tre(t,o){if(t&1&&(c(0,"div",135)(1,"div",27)(2,"h3"),v(3,"i",147),g(4),d(),c(5,"p"),g(6,"Verify the captured personal details and uploads before submission."),d()(),c(7,"div",136)(8,"div",137)(9,"div",138)(10,"div",139),v(11,"i",147),g(12," Deponent Name:"),d(),c(13,"span",141),g(14),d()(),c(15,"div",138)(16,"div",139),v(17,"i",148),g(18," Deponent NIN:"),d(),c(19,"span",141),g(20),d()(),c(21,"div",138)(22,"div",139),v(23,"i",143),g(24," Native Town:"),d(),c(25,"span",141),g(26),d()(),c(27,"div",138)(28,"div",139),v(29,"i",149),g(30," Country of Origin:"),d(),c(31,"span",141),g(32),d()(),c(33,"div",138)(34,"div",139),v(35,"i",150),g(36," State of Origin:"),d(),c(37,"span",141),g(38),d()(),c(39,"div",138)(40,"div",139),v(41,"i",151),g(42," Place of Residence:"),d(),c(43,"span",141),g(44),d()(),c(45,"div",138)(46,"div",139),v(47,"i",152),g(48," Occupation:"),d(),c(49,"span",141),g(50),d()(),c(51,"div",138)(52,"div",139),v(53,"i",153),g(54," Gender:"),d(),c(55,"span",141),g(56),d()(),c(57,"div",138)(58,"div",139),v(59,"i",153),g(60," Religion:"),d(),c(61,"span",141),g(62),d()()(),_(63,Koe,5,1,"div",154),c(64,"div",155)(65,"h4",156),g(66,"Supporting Documents"),d(),c(67,"div",157)(68,"div",158)(69,"div",159),v(70,"i",160),g(71," Passport Photo"),d(),_(72,Yoe,2,1,"div",161)(73,Zoe,2,0,"ng-template",null,4,je),d(),c(75,"div",158)(76,"div",159),v(77,"i",160),g(78," Signature"),d(),_(79,Joe,2,1,"div",161)(80,Xoe,2,0,"ng-template",null,5,je),d(),c(82,"div",158)(83,"div",159),v(84,"i",160),g(85," Identity Card"),d(),_(86,$oe,2,1,"div",161)(87,ere,2,0,"ng-template",null,6,je),d()()()()()),t&2){let e=o.$implicit,n=o.index,i=de(74),r=de(81),a=de(88),s=f(2);p(4),se(" Deponent ",n+1," Review"),p(10),k(e.deponent_name),p(6),k(e.deponent_nin),p(6),k(e.town_native),p(6),k(s.selectedCountry[n]),p(6),k(s.selectedState[n]),p(6),k(e.town_resident),p(6),k(e.occupation),p(6),k(e.gender),p(6),k(e.religion),p(),m("ngIf",s.shouldDisplayAffidavitSection),p(9),m("ngIf",e.passport_photo_file)("ngIfElse",i),p(7),m("ngIf",e.signature_file)("ngIfElse",r),p(7),m("ngIf",e.identity_photo_file)("ngIfElse",a)}}function nre(t,o){if(t&1){let e=D();c(0,"div",133),_(1,tre,89,17,"div",134),c(2,"div",135)(3,"div",27)(4,"h3"),v(5,"i",14),g(6," Client Information"),d(),c(7,"p"),g(8,"Confirm the overall contact information for this bulk submission."),d()(),c(9,"div",136)(10,"div",137)(11,"div",138)(12,"div",139),v(13,"i",140),g(14," Applicant Email:"),d(),c(15,"span",141),g(16),d()(),c(17,"div",138)(18,"div",139),v(19,"i",142),g(20," Applicant Phone:"),d(),c(21,"span",141),g(22),d()(),c(23,"div",138)(24,"div",139),v(25,"i",143),g(26," Preferred Court:"),d(),c(27,"span",141),g(28),d()()(),c(29,"div",144)(30,"div",130)(31,"button",145),I("click",function(){C(e);let i=f();return y(i.showApplicationForm())}),d(),c(32,"button",146),I("click",function(){C(e);let i=f();return y(i.goToPreview())}),d()()()()()()}if(t&2){let e=f();p(),m("ngForOf",e.dataPayload.applications),p(15),k(e.dataPayload.applicant_email),p(6),k(e.dataPayload.applicant_phone),p(6),k(e.courtName),p(4),m("disabled",e.applicationsArray.length>0?e.applicationForm.invalid:!1)}}var nO=(()=>{class t{constructor(e,n,i,r,a,s,l,u,h,A,b,x){this.fb=e,this.affidavitApplicationEndpoint=n,this.affidavitAppEndpoint=i,this.affidavitTemplateEndpoint=r,this.countryEndpoint=a,this.stateEndpoint=s,this.affidavitPageStore=l,this.CourtEndPoint=u,this.appNotificationService=h,this.cameraService=A,this.applicationService=b,this.affidavitApplicationSettingsEndpoint=x,this.toggle=new V,this.genders=da,this.religions=pa,this.geoCountry=[],this._geoStates=[],this.statesByDeponent=[],this.courts=[],this.applications=[],this.selectedState=[""],this.no_image="data:image/png;base64,"+pt.no_image,this.uploadedPassportImage=[],this.uploadedSignatureImage=[],this.ids=[],this.uploadedIDCard=[],this.displayForm=!0,this.shouldDisplayAffidavitSection=!0,this.selectedCountry=[""],this.apiMode="development",this.canSubmitApplicationForm=!1,this.canShowApplicationForm=!0,this.canShowClausesForm=!1,this.canShowConfirmationForm=!1,this.showAffidavitInformationForm=!1,this.displaySignatureModal=!1,this.formEntriesMap=new Map,this.passportPhotoFile=[],this.signatureFile=[],this.idCardPhotoFile=[],this.deletedAppIds=[],this.cameraEnabled=!1,this.cameraStarted=!1,this.cameraEnabled1=!1,this.cameraStarted1=!1,this.hasUploadedPhoto=!1,this.videoInputs=[],this.rootForm=this.fb.group({applications:this.fb.array([]),applicant_email:this.fb.control(null),applicant_phone:this.fb.control(null),court:this.fb.control(null,K.required),affidavit_type_name:this.fb.control(null,[K.required,K.minLength(3),K.maxLength(128)])})}ngOnInit(){this.countryEndpoint.list().subscribe({next:e=>{this.geoCountry=e.data,this.default_country=this.geoCountry.find(n=>n.phone_code=="234"),this.stateEndpoint.list().subscribe({next:n=>{this._geoStates=n.data,this.applicationService.getClientRef()&&this.affidavitAppEndpoint.singleByClientRef(this.applicationService.getClientRef()).subscribe({next:i=>{this.applications=i.data.data,this.rootForm.patchValue({applicant_email:this.applications[0].application.applicant_email,applicant_phone:this.applications[0].application.applicant_phone,court:this.applications[0].application.court.id}),this.applications.forEach((r,a)=>{this.statesByDeponent[a]=this._geoStates.filter(s=>s.country_id==(r.application?.state?.country_id??0)),this.addDeponent(r.application),this.applicationsArray.controls[a]?.get("originState")&&r.application?.state?.id&&(this.applicationsArray.controls[a]?.get("originCountry")?.setValue(r.application?.state?.country_id),this.applicationsArray.controls[a]?.get("originState")?.setValue(r.application?.state?.id))}),this.affidavitPageStore.stopLoading()},error:i=>{this.affidavitPageStore.stopLoading(),this.appNotificationService.showError({title:i.error,detail:i.message})}})},error:n=>{this.appNotificationService.showError({title:n.error,detail:n.message})}})},error:e=>console.log(e)}),this.affidavitApplicationSettingsEndpoint.single(1).subscribe({next:e=>this.affidavitAppSetting=e.data,error:e=>{this.appNotificationService.showError({title:e.error,detail:e.message})}}),this.CourtEndPoint.list().subscribe({next:e=>this.courts=e.data,error:e=>{this.appNotificationService.showError({title:e.error,detail:e.message})}})}goBack(){window.history.back()}get applicationFormControl(){return this.applicationForm.controls}get formEntries(){return this.applicationForm.controls.formEntries}showConfirmationForm(){this.displayForm=!1}showApplicationForm(){this.displayForm=!0}get clauseEntriesControl(){return this.applicationForm.controls.clauseEntries}onAddClause(e){if(this.clauseEntriesControl.length<7){let n=this.fb.control(null,[K.required,K.minLength(3)]);this.clauseEntriesControl.insert(e+1,n);return}this.appNotificationService.showInfo({title:"Information",detail:"You can only supply a maximum of seven (7) clauses!"})}getFormEntriesRecordByIndex(e){return this.formEntriesMap.get(e)}onRemoveClause(e){if(this.clauseEntriesControl.length>1){this.clauseEntriesControl.removeAt(e);return}this.appNotificationService.showInfo({title:"Information",detail:"You must have at least one clause available"})}get courtName(){return this.courts.find(i=>i.id===this.dataPayload.court_id)?.name}processForm(){if(this.affidavitAppSetting?.allow_passport_photo&&!this.uploadedPassportImage[0]||this.affidavitAppSetting?.allow_signature&&!this.uploadedSignatureImage[0]){this.appNotificationService.showWarning({title:"Information!",detail:"Please, make sure to upload both the Passort and Signature!"});return}let e=this.rootForm.value,n=e.applications;this.dataPayload={court_id:e.court,applicant_email:e.applicant_email,applicant_phone:e.applicant_phone,affidavit_type_name:e.affidavit_type_name,affidavit_template_id:this.affidavitTemplate?.id,client_ref:this.applicationService.getClientRef()??"CLIENT_REF-"+new Date,payment_redirect_url:this.applicationService.getPaymentRedirectUrl(),deleted_ids:this.deletedAppIds,applications:[]},n.forEach((i,r)=>{this.selectedCountry[r]=this.geoCountry.find(a=>a.id==i.originCountry)?.name??"Not Found",this.selectedState[r]=this.statesByDeponent[r].find(a=>a.id==i.originState)?.name??"Not Found",this.dataPayload?.applications.push({deponent_name:i.deponent_name,deponent_nin:i.deponent_nin,town_native:i.town_native,town_resident:i.town_resident,state_id:i.originState,occupation:i.occupation,gender:i.gender,religion:i.religion,id:this.ids[r],passport_photo_file:this.uploadedPassportImage[r]??"",signature_file:this.uploadedSignatureImage[r]??"",identity_photo_file:this.uploadedIDCard[r]??"",formEntries:[]}),this.affidavitTemplate?.is_clauses_editable||this.formEntriesMap.forEach((a,s)=>{this.dataPayload.applications[r],this.dataPayload.applications[r].formEntries.push({label:a.label,placeholder:a.placeholder,provided_value:i.formEntries[s],parent_placeholder:a.parent_placeholder,is_calculated:a.is_calculated,format:a.format,input_type:a.input_type})})}),this.shouldDisplayAffidavitSection=this.dataPayload.applications[0].formEntries?.length>0,setTimeout(()=>this.showConfirmationForm(),250)}goToPreview(){let e=new FormData;e.append("court_id",this.dataPayload?.court_id+""),e.append("applicant_email",this.dataPayload?.applicant_email??""),e.append("applicant_phone",this.dataPayload?.applicant_phone??""),e.append("affidavit_type_name",this.dataPayload?.affidavit_type_name??""),e.append("affidavit_template_id",this.dataPayload?.affidavit_template_id+""),e.append("client_ref",this.dataPayload?.client_ref??""),e.append("payment_redirect_url",this.dataPayload?.payment_redirect_url??""),this.dataPayload.applications.forEach((n,i)=>{e.append(`applications[${i}][id]`,n?.id?.toString()??"0"),e.append(`applications[${i}][deponent_name]`,n.deponent_name??""),e.append(`applications[${i}][deponent_nin]`,n.deponent_nin+""),e.append(`applications[${i}][town_native]`,n.town_native??""),e.append(`applications[${i}][town_resident]`,n.town_resident??""),e.append(`applications[${i}][state_id]`,n.state_id+""),e.append(`applications[${i}][occupation]`,n.occupation??""),e.append(`applications[${i}][gender]`,n.gender??""),e.append(`applications[${i}][religion]`,n.religion??""),e.append(`applications[${i}][passport_photo_file]`,this.passportPhotoFile[i]??""),e.append(`applications[${i}][signature_file]`,this.signatureFile[i]??""),e.append(`applications[${i}][identity_photo_file]`,this.idCardPhotoFile[i]??""),n.formEntries.forEach((r,a)=>{e.append(`applications[${i}][formEntries][${a}][label]`,r.label??""),e.append(`applications[${i}][formEntries][${a}][placeholder]`,r.placeholder??""),e.append(`applications[${i}][formEntries][${a}][provided_value]`,r.provided_value??""),e.append(`applications[${i}][formEntries][${a}][parent_placeholder]`,r.parent_placeholder??""),e.append(`applications[${i}][formEntries][${a}][is_calculated]`,r.is_calculated??""),e.append(`applications[${i}][formEntries][${a}][format]`,r.format??""),e.append(`applications[${i}][formEntries][${a}][input_type]`,r.input_type??"")})}),this.deletedAppIds.forEach((n,i)=>{e.append(`deleted_ids[${i}]`,n.toString())}),this.affidavitPageStore.startLoading("Updating . . ."),this.affidavitApplicationEndpoint.updateBulk(e).subscribe({next:n=>{this.applicationService.setApplications(n.data.data),this.affidavitPageStore.setRefNo(n.client_ref),this.applicationService.setPaymentEntry(n.paymentEntry),this.affidavitPageStore.toggle("application-detail")},error:n=>{this.appNotificationService.showError({title:"Error",detail:n.error.message}),this.affidavitPageStore.stopLoading()}})}capturePhoto(e){navigator.mediaDevices.getUserMedia({video:!0}).then(n=>{let i=document.createElement("video");i.srcObject=n,i.play();let r=document.createElement("canvas"),a=r.getContext("2d");i.addEventListener("loadeddata",()=>{r.width=i.videoWidth,r.height=i.videoHeight,a.drawImage(i,0,0,r.width,r.height),this.uploadedPassportImage[e]=r.toDataURL("image/png"),this.uploadedIDCard[e]=r.toDataURL("image/png"),n.getTracks().forEach(s=>s.stop())})}).catch(n=>{console.error("Error accessing the camera: ",n)})}handleFileInputIPassportImage(e,n){this.uploadedPassportImage[n]="assets/images/loading.gif";let i;if(e instanceof Event){let s=e.target;if(s.files&&s.files.length>0)i=s.files[0];else{console.error("No files found in the input element.");return}}else typeof e=="string"&&e.startsWith("data:image/")?(this.uploadedPassportImage[n]=e,i=this.dataURLtoFile(e,"passport.png")):i=e;let r=i.type,a=new FileReader;r.startsWith("image/")?(a.onload=()=>{this.uploadedPassportImage[n]=a.result,this.handleFileUpload(this.uploadedPassportImage[n],"passport",n)},a.readAsDataURL(i)):this.appNotificationService.showWarning({title:"Invalid file type.!",detail:"Only JPG, GIF, and PNG are allowed!!!"})}handleFileInputSignatureImage(e,n){this.uploadedSignatureImage[n]="assets/images/loading.gif";let i;if(e instanceof Event){let s=e.target;if(s.files&&s.files.length>0)i=s.files[0];else{console.error("No files found in the input element.");return}}else typeof e=="string"&&e.startsWith("data:image/")?(this.uploadedSignatureImage[n]=e,i=this.dataURLtoFile(e,"signature.png")):i=e;let r=i.type,a=new FileReader;r.startsWith("image/")?(a.onload=()=>{this.uploadedSignatureImage[n]=a.result,this.handleFileUpload(this.uploadedSignatureImage[n],"signature",n)},a.readAsDataURL(i)):this.appNotificationService.showWarning({title:"Invalid file type.!",detail:"Only JPG, GIF, and PNG are allowed!!!"}),this.displaySignatureModal=!1}handleFileInputIDCard(e,n){this.uploadedIDCard[n]="assets/images/loading.gif";let i;if(e instanceof Event){let s=e.target;if(s.files&&s.files.length>0)i=s.files[0];else{console.error("No files found in the input element.");return}}else typeof e=="string"&&e.startsWith("data:image/")?(this.uploadedIDCard[n]=e,i=this.dataURLtoFile(e,"id-card.png")):i=e;let r=i.type,a=new FileReader;r.startsWith("image/")?(a.onload=()=>{this.uploadedIDCard[n]=a.result,this.handleFileUpload(this.uploadedIDCard[n],"id-card",n)},a.readAsDataURL(i)):this.appNotificationService.showWarning({title:"Invalid file type.!",detail:"Only JPG, GIF, and PNG are allowed!!!"})}dataURLtoFile(e,n){let i=e.split(","),r=i[0]?.match(/:(.*?);/),a=r?r[1]:"",s=atob(i[1]),l=s.length,u=new Uint8Array(l);for(;l--;)u[l]=s.charCodeAt(l);return new File([u],n,{type:a})}openCamera(){this.cameraEnabled=!0}openCamera1(){this.cameraEnabled1=!0}startCamera(){this.cameraStarted=!0,this.cameraService.initCamera(this.videoElement.nativeElement)}startCamera1(){this.cameraStarted1=!0,this.cameraService.initCamera(this.videoElement.nativeElement)}getCamera(){this.cameraService.getCamera(this.videoElement.nativeElement)}switchCamera(){this.cameraService.switchCamera(this.videoElement.nativeElement)}initCamera(){this.cameraService.initCamera(this.videoElement.nativeElement)}captureImage(e){let n=this.cameraService.captureImage(this.videoElement.nativeElement);this.handleFileInputIPassportImage(n,e),this.cameraService.stopCamera(this.videoElement.nativeElement),this.stopCamera()}captureImage1(e){let n=this.cameraService.captureImage(this.videoElement.nativeElement);this.handleFileInputIDCard(n,e),this.cameraService.stopCamera(this.videoElement.nativeElement),this.stopCamera()}stopCamera(){this.cameraService.stopCamera(this.videoElement.nativeElement),this.cameraEnabled=!1,this.cameraEnabled1=!1,this.cameraStarted=!1,this.cameraStarted1=!1}handleImageError(e){e.target.src=`data:image/gif;base64,${this.no_image}`}get isNINValidated(){return(this.applicationFormControl.deponent_nin.value+"").length===11}onInput(e){let n=e.target.value;n=n.replace(/\D/g,""),n.length>11&&(n=n.slice(0,11)),this.applicationFormControl.deponent_nin.patchValue(n)}handleFileUpload(e,n,i){if(e)switch(n){case"passport":this.passportPhotoFile[i]=e;break;case"signature":this.signatureFile[i]=e;break;case"id-card":this.idCardPhotoFile[i]=e;break;default:break}}get applicationsArray(){return this.rootForm.get("applications")}get applicationForm(){return this.applicationsArray.at(0)}addDeponent(){return Yn(this,arguments,function*(e={}){this.affidavitTemplate?.id||(this.affidavitTemplate=(yield this.affidavitTemplateEndpoint.single(this.applications[0].application.affidavitTemplate?.id).toPromise())?.data,this.showAffidavitInformationForm=(this.affidavitTemplate?.placeholders?.length||0)>0&&this.affidavitTemplate?.is_clauses_editable!=!0);let n=this.fb.group({deponent_name:this.fb.control(e?.deponent_name,[K.required,K.minLength(3)]),deponent_nin:this.fb.control(e?.deponent_nin,[K.required,K.pattern("^[0-9]*$"),K.minLength(11),K.maxLength(11)]),town_native:this.fb.control(e?.town_native,[K.required,K.minLength(3)]),town_resident:this.fb.control(e?.town_resident,[K.required,K.minLength(3)]),originCountry:this.fb.control(e?.state?.country?.id??null,[K.required]),originState:this.fb.control(e?.state?.id,[K.required,K.minLength(3)]),occupation:this.fb.control(e?.occupation,[K.required,K.minLength(3)]),gender:this.fb.control(e?.gender,[K.required,K.minLength(3)]),religion:this.fb.control(e.religion,[K.required,K.minLength(3)]),formEntries:this.fb.array([]),clauseEntries:this.fb.array([])});if(this.uploadedIDCard.push(e?.identity_card_file??this.no_image),this.uploadedPassportImage.push(e?.passport_photo_file??this.no_image),this.uploadedSignatureImage.push(e?.signature_file??this.no_image),this.passportPhotoFile.push(""),this.signatureFile.push(""),this.idCardPhotoFile.push(""),this.ids.push(e.id??0),e?.is_clauses_editable?(e.clauses.forEach(r=>{n.controls.clauseEntries.push(this.fb.control(r.content,[K.required]))}),this.canShowClausesForm=!0):this.affidavitTemplate?.placeholders.forEach((r,a)=>{this.formEntriesMap?.set(a,r);let s=e?.formEntries?.find(l=>l.placeholder===r.placeholder)?.provided_value;r.is_required?n.controls.formEntries.push(this.fb.control(s,[K.required])):n.controls.formEntries.push(this.fb.control(s,[]))}),this.selectedState.push(),this.affidavitTemplate?.is_clauses_editable){let r=this.fb.control(null,[K.required,K.minLength(3)]);n.controls.clauseEntries.push(r),this.canShowClausesForm=!0}else this.rootForm.controls.affidavit_type_name.setValue(this.affidavitTemplate?.name);this.applicationsArray.push(n);let i=this.applicationsArray.length-1;this.setupDeponentSubscriptions(i)})}removeDeponent(e){if(this.applicationsArray.length==1){this.appNotificationService.showInfo({title:"Oops !",detail:"You must have atleast one deponent in this form"});return}this.deletedAppIds.push(this.ids[e]),this.applicationsArray.removeAt(e),this.statesByDeponent.splice(e,1),this.uploadedPassportImage.splice(e,1),this.uploadedSignatureImage.splice(e,1),this.uploadedIDCard.splice(e,1),this.ids.splice(e,1)}setupDeponentSubscriptions(e){let n=this.applicationsArray.at(e),i=n.get("originCountry"),r=n.get("originState");i?.valueChanges.subscribe(a=>{this.statesByDeponent[e]=this._geoStates.filter(s=>s.country_id==a),r?.reset(null)})}closeDropdown(e){setTimeout(()=>{let n=Array.from(document.querySelectorAll(".p-dropdown-panel")).filter(i=>{let r=window.getComputedStyle(i);return r.display!=="none"&&r.visibility!=="hidden"});if(n.length>0){n[0].style.display="none";let i=document.activeElement;i&&i.classList.contains("p-dropdown")&&i.blur()}},100)}static{this.\u0275fac=function(n){return new(n||t)(M(Mi),M(oi),M(ai),M(to),M(ua),M(Jo),M(Te),M(Xo),M(Mn),M(Zo),M(Si),M(Ti))}}static{this.\u0275cmp=N({type:t,selectors:[["e-affidavit-applications-edit"]],viewQuery:function(n,i){if(n&1&&ae(doe,5),n&2){let r;Q(r=G())&&(i.videoElement=r.first)}},outputs:{toggle:"toggle"},decls:15,vars:4,consts:[["filePassportPhoto",""],["fileIdCard",""],["fileSignature",""],["videoElement",""],["noPassport",""],["noSignature",""],["noIdCard",""],[1,"application-form-container","bulk-create-applications"],[1,"application-form-header"],[1,"header-content"],[1,"application-form-title"],[1,"application-form-subtitle"],[1,"header-actions"],[1,"status-pill"],[1,"pi","pi-users"],["class","status-pill secondary",4,"ngIf"],["class","form-sections",4,"ngIf"],["class","review-sections",4,"ngIf"],[1,"status-pill","secondary"],[1,"pi","pi-exclamation-triangle"],[1,"form-sections"],[3,"formGroup"],["class","form-section workspace-actions",4,"ngIf"],["formArrayName","applications"],[4,"ngFor","ngForOf"],["class","form-section additional-info-section mt-2",4,"ngIf"],[1,"form-section","workspace-actions"],[1,"section-header"],[1,"pi","pi-layer-group"],[1,"section-content","controls-content"],[1,"controls-grid"],[1,"control-card",3,"click"],[1,"control-icon","success"],[1,"pi","pi-user-plus"],[1,"control-label"],[1,"control-icon"],[1,"pi","pi-user-minus"],[1,"form-section","personal-info-section","mt-3",3,"formGroupName"],[1,"pi","pi-id-card"],[1,"badge"],[1,"section-actions"],["pButton","","type","button","pTooltip","Add Deponent","tooltipPosition","top",1,"action-chip","add",3,"click"],["pButton","","type","button","pTooltip","Remove Deponent","tooltipPosition","top",1,"action-chip","remove",3,"click"],[1,"section-content"],["class","file-upload-container",4,"ngIf"],["class","camera-interface",4,"ngIf"],[1,"form-grid"],[1,"form-field"],["for","deponent_name"],[1,"required"],["id","deponent_name","type","text","placeholder","Enter Deponent Name","formControlName","deponent_name","required","",1,"form-input"],["class","error-message",4,"ngIf"],["for","deponent_nin"],["id","deponent_nin","type","text","placeholder","Enter Deponent NIN","formControlName","deponent_nin","required","",1,"form-input",3,"input"],["for","gender"],["placeholder","Select Gender","formControlName","gender","optionLabel","name","optionValue","name",1,"form-dropdown",3,"onChange","options","showClear"],["for","town_native"],["id","town_native","type","text","placeholder","Enter Native Town","formControlName","town_native","required","",1,"form-input"],["for","originCountry"],["placeholder","Select Country of Origin","formControlName","originCountry","optionLabel","name","optionValue","id",1,"form-dropdown",3,"onChange","options","showClear","filter"],["for","originState"],["placeholder","Select State of Origin","formControlName","originState","optionLabel","name","optionValue","id",1,"form-dropdown",3,"onChange","options","showClear","filter"],["for","town_resident"],["id","town_resident","type","text","placeholder","e.g No. 7B Gambia street, Garki","formControlName","town_resident","required","",1,"form-input"],["for","occupation"],["id","occupation","type","text","placeholder","e.g Software Developer, Student","formControlName","occupation","required","",1,"form-input"],["for","religion"],["placeholder","Select Religion","formControlName","religion","optionLabel","name","optionValue","name",1,"form-dropdown",3,"onChange","options","showClear","filter"],["class","sub-form-section affidavit-info-section mt-2",4,"ngIf"],["class","form-section clauses-section mt-2",4,"ngIf"],[1,"file-upload-container"],[1,"upload-grid"],["class","upload-card",4,"ngIf"],[1,"upload-card"],[1,"upload-header"],["class","upload-content",4,"ngIf"],[1,"pi","pi-image"],[1,"upload-content"],["alt","Passport Photo",1,"uploaded-image",3,"src"],[1,"upload-actions"],["pButton","","pRipple","","type","button","label","Upload",1,"upload-btn","primary",3,"click"],["pButton","","pRipple","","type","button","label","Camera",1,"upload-btn","secondary",3,"click"],["type","file","name","ApplicantPassportUpload","id","ApplicantPassportUpload","hidden","","accept","image/*",3,"change"],["alt","ID Card",1,"uploaded-image",3,"src"],["type","file","name","ApplicantIdCardUpload","id","ApplicantIdCardUpload","hidden","","accept","image/*",3,"change"],[1,"pi","pi-pencil"],["alt","Signature",1,"uploaded-image",3,"src"],["type","file","name","ApplicantSigantureUpload","id","ApplicantSigantureUpload","hidden","","accept","image/*",3,"change"],[1,"camera-interface"],[1,"camera-container"],[1,"camera-header"],["type","button","title","Close Camera",1,"camera-close-btn",3,"click"],[1,"pi","pi-times"],[1,"camera-video"],[1,"camera-controls"],["type","button","class","camera-btn start",3,"click",4,"ngIf"],["type","button","class","camera-btn capture",3,"click",4,"ngIf"],["type","button","class","camera-btn switch",3,"click",4,"ngIf"],["type","button",1,"camera-btn","start",3,"click"],[1,"pi","pi-play"],["type","button",1,"camera-btn","capture",3,"click"],[1,"pi","pi-camera"],["type","button",1,"camera-btn","switch",3,"click"],[1,"pi","pi-refresh"],[1,"error-message"],[1,"sub-form-section","affidavit-info-section","mt-2"],[1,"pi","pi-file-text"],["formArrayName","formEntries",1,"form-grid"],["class","form-field",4,"ngIf"],[1,"form-input",3,"id","type","formControlName"],[1,"form-section","clauses-section","mt-2"],[1,"pi","pi-list"],["formArrayName","clauseEntriesControl",1,"clauses-grid"],[1,"clause-card"],[1,"clause-header"],[1,"clause-title"],[1,"clause-number"],[1,"clause-actions"],["type","button","pButton","","icon","pi pi-plus",1,"action-chip","add",3,"click"],["type","button","pButton","","icon","pi pi-trash",1,"action-chip","remove",3,"click"],["id","clause_entry","name","clause_entry","rows","3","maxlength","500","placeholder","That...",1,"clause-textarea",3,"formControlName"],[1,"form-section","additional-info-section","mt-2"],[1,"pi","pi-info-circle"],["for","applicant_email"],["id","applicant_email","type","email","placeholder","Enter Applicant Email","formControlName","applicant_email","required","",1,"form-input"],["for","applicant_phone"],["id","applicant_phone","type","text","placeholder","Enter Applicant Phone Number","formControlName","applicant_phone","required","",1,"form-input"],["for","court"],["placeholder","Select court","formControlName","court","optionLabel","name","optionValue","id",1,"form-dropdown",3,"onChange","options","showClear"],[1,"form-actions"],[1,"action-buttons"],["pButton","","type","button","icon","pi pi-arrow-left","label","Previous",1,"cancel-btn",3,"click"],["pButton","","type","button","icon","pi pi-eye","label","Preview",1,"submit-btn",3,"click","disabled"],[1,"review-sections"],["class","review-section",4,"ngFor","ngForOf"],[1,"review-section"],[1,"review-content"],[1,"review-grid"],[1,"review-item"],[1,"review-label"],[1,"pi","pi-envelope"],[1,"review-value"],[1,"pi","pi-phone"],[1,"pi","pi-map-marker"],[1,"form-actions","review-actions"],["pButton","","type","button","icon","pi pi-arrow-left","label","Review",1,"cancel-btn",3,"click"],["pButton","","type","button","icon","pi pi-save","label","Submit Application",1,"submit-btn",3,"click","disabled"],[1,"pi","pi-user"],[1,"pi","pi-clone"],[1,"pi","pi-globe"],[1,"pi","pi-map"],[1,"pi","pi-home"],[1,"pi","pi-briefcase"],[1,"pi","pi-circle-fill"],["class","review-subsection",4,"ngIf"],[1,"review-subsection"],[1,"subsection-title"],[1,"documents-grid"],[1,"document-card"],[1,"doc-label"],[1,"pi","pi-images"],["class","doc-preview",4,"ngIf","ngIfElse"],["class","review-item",4,"ngIf"],[1,"doc-preview"],["alt","Passport",3,"src"],[1,"not-provided"],["alt","Signature",3,"src"],["alt","ID Card",3,"src"]],template:function(n,i){n&1&&(c(0,"div",7)(1,"div",8)(2,"div",9)(3,"h1",10),g(4,"Edit Affidavit Applications"),d(),c(5,"p",11),g(6," Update deponent records, modify documents, and review changes before submitting to the Federal High Court. "),d()(),c(7,"div",12)(8,"div",13),v(9,"i",14),c(10,"span"),g(11),d()(),_(12,poe,4,0,"div",15),d()(),_(13,Qoe,6,4,"div",16)(14,nre,33,5,"div",17),d()),n&2&&(p(11),se("Total Deponents: ",i.applicationsArray.controls.length,""),p(),m("ngIf",i.rootForm.invalid&&i.displayForm),p(),m("ngIf",i.displayForm),p(),m("ngIf",!i.displayForm))},dependencies:[rt,Ce,wn,Dn,kn,xn,Ui,bo,Fn,Hn,Qo,Ii,Lt,Io,In,wt],styles:['.application-form-container[_ngcontent-%COMP%]{min-height:100vh;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;color:#0f172a;display:flex;flex-direction:column;gap:1.5rem}.application-form-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:2rem;padding:2.75rem;border-radius:24px;background:linear-gradient(135deg,#022c22,#065f46 45%,#0d6449);box-shadow:0 32px 60px #0f172a4d;color:#fff;position:relative;overflow:hidden}.application-form-header[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at top right,rgba(255,255,255,.22),transparent 55%);pointer-events:none}.header-content[_ngcontent-%COMP%]{position:relative;z-index:1}.header-content[_ngcontent-%COMP%] .application-form-title[_ngcontent-%COMP%]{font-size:clamp(2rem,3vw,2.85rem);font-weight:700;margin-bottom:.85rem}.header-content[_ngcontent-%COMP%] .application-form-subtitle[_ngcontent-%COMP%]{margin:0;font-size:1.05rem;line-height:1.6;color:#ffffffd9}.header-actions[_ngcontent-%COMP%]{position:relative;z-index:1;display:flex;flex-direction:column;gap:.75rem}.header-actions[_ngcontent-%COMP%] .status-pill[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.6rem;padding:.6rem 1.1rem;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:#0f172a33;font-weight:600;font-size:.95rem;color:#fefce8;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.header-actions[_ngcontent-%COMP%] .status-pill.secondary[_ngcontent-%COMP%]{background:#065f4673;color:#ffffffe6}.header-actions[_ngcontent-%COMP%] .status-pill[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem}.form-sections[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-sections[_ngcontent-%COMP%] form[_ngcontent-%COMP%], .review-sections[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-section[_ngcontent-%COMP%], .review-section[_ngcontent-%COMP%]{background:#fff;border-radius:24px;padding:2.4rem;box-shadow:0 24px 55px #0f172a1f;border:1px solid #e2e8f0;border-left:5px solid #0d6449;transition:box-shadow .3s ease}.form-section[_ngcontent-%COMP%]:hover, .review-section[_ngcontent-%COMP%]:hover{box-shadow:0 32px 60px #0f172a29}.sub-form-section[_ngcontent-%COMP%]{background:transparent;padding-top:2rem;padding:2.4rem;border-radius:24px;border:1px solid #e2e8f0;transition:box-shadow .3s ease}.sub-form-section[_ngcontent-%COMP%]:hover{box-shadow:0 32px 60px #0f172a29}.section-header[_ngcontent-%COMP%]{margin-bottom:1.75rem;padding-bottom:1rem;border-bottom:2px solid #f1f5f9;display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:1.45rem;font-weight:600;color:#0f172a;display:flex;align-items:center;gap:.75rem}.section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.25rem;color:#0d6449}.section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] .badge[_ngcontent-%COMP%]{background:#0d94882e;color:#0d6449;border-radius:999px;padding:.25rem .65rem;font-size:.75rem;letter-spacing:.05em;text-transform:uppercase}.section-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:.25rem 0 0;color:#64748b;font-size:1rem}.section-actions[_ngcontent-%COMP%]{display:inline-flex;gap:.5rem}.section-actions[_ngcontent-%COMP%] .action-chip[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:12px;border:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:all .3s ease;color:#fff}.section-actions[_ngcontent-%COMP%] .action-chip.add[_ngcontent-%COMP%]{background:linear-gradient(135deg,#10b981,#059669)}.section-actions[_ngcontent-%COMP%] .action-chip.remove[_ngcontent-%COMP%]{background:linear-gradient(135deg,#ef4444,#dc2626)}.section-actions[_ngcontent-%COMP%] .action-chip[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 10px 22px #0f172a1f}.section-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.75rem}.controls-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}.control-card[_ngcontent-%COMP%]{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:1rem 1.25rem;display:flex;align-items:center;gap:.85rem;cursor:pointer;transition:all .3s ease}.control-card.warning[_ngcontent-%COMP%]{border-color:#f9731659}.control-card.disabled[_ngcontent-%COMP%]{opacity:.5;cursor:default}.control-card[_ngcontent-%COMP%]:not(.disabled):hover{transform:translateY(-4px);box-shadow:0 15px 30px #0f172a1f;border-color:#0d948873;background:#fff}.control-card[_ngcontent-%COMP%] .control-icon[_ngcontent-%COMP%]{width:44px;height:44px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;font-size:1.2rem}.control-card[_ngcontent-%COMP%] .control-icon.success[_ngcontent-%COMP%]{background:#10b98126;color:#059669}.control-card[_ngcontent-%COMP%] .control-icon.warning-icon[_ngcontent-%COMP%]{background:#f9731626;color:#f97316}.control-card[_ngcontent-%COMP%] .control-icon.muted[_ngcontent-%COMP%]{background:#94a3b82e;color:#475569}.control-card[_ngcontent-%COMP%] .control-label[_ngcontent-%COMP%]{font-weight:600;color:#0f172a}.file-upload-container[_ngcontent-%COMP%] .upload-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.25rem}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%]{background:#f8fafc;border:2px dashed #d1d5db;border-radius:16px;padding:1.5rem;transition:all .3s ease}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%]:hover{border-color:#0d6449;background:#0d948814;box-shadow:0 15px 30px #0f172a14}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-header[_ngcontent-%COMP%]{text-align:center;margin-bottom:1rem}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-header[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:2rem;color:#0d6449;display:block;margin-bottom:.5rem}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-header[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin:0;font-size:1.1rem;font-weight:600;color:#1f2937}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-header[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{color:#64748b}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .uploaded-image[_ngcontent-%COMP%]{width:120px;height:120px;object-fit:cover;border-radius:16px;border:3px solid #e5e7eb;box-shadow:0 8px 20px #0f172a1a;transition:all .3s ease}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .uploaded-image[_ngcontent-%COMP%]:hover{transform:scale(1.05);border-color:#0d6449;box-shadow:0 15px 30px #0d948840}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:center}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%] .upload-btn[_ngcontent-%COMP%]{border-radius:10px;padding:.6rem 1.25rem;font-weight:600;border:none;cursor:pointer;transition:all .3s ease}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%] .upload-btn.primary[_ngcontent-%COMP%]{background:linear-gradient(135deg,#0d6449,#047857);color:#fff}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%] .upload-btn.primary[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 10px 22px #0d644959}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%] .upload-btn.secondary[_ngcontent-%COMP%]{background:transparent;border:1px solid #d1d5db;color:#475569}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%] .upload-btn.secondary[_ngcontent-%COMP%]:hover{background:#f1f5f9;border-color:#94a3b8}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%]{background:#f8fafc;border-radius:16px;padding:1.5rem;border:1px solid #e2e8f0}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid #e2e8f0}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-header[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin:0;font-size:1.2rem;font-weight:600;color:#0f172a}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-header[_ngcontent-%COMP%] .camera-close-btn[_ngcontent-%COMP%]{width:32px;height:32px;border-radius:50%;border:none;background:#ef4444;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .3s ease}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-header[_ngcontent-%COMP%] .camera-close-btn[_ngcontent-%COMP%]:hover{background:#dc2626;transform:scale(1.1)}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-video[_ngcontent-%COMP%]{width:100%;max-width:520px;height:300px;border-radius:12px;border:2px solid #e2e8f0;margin-bottom:1rem;object-fit:cover}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.75rem;justify-content:center}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn[_ngcontent-%COMP%]{padding:.75rem 1.5rem;border-radius:10px;font-weight:600;border:none;cursor:pointer;transition:all .3s ease}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.start[_ngcontent-%COMP%]{background:linear-gradient(135deg,#0d6449,#047857);color:#fff}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.start[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 12px 24px #0d644959}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.capture[_ngcontent-%COMP%]{background:linear-gradient(135deg,#6366f1,#4f46e5);color:#fff}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.capture[_ngcontent-%COMP%]:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 12px 24px #6366f159}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.capture[_ngcontent-%COMP%]:disabled{background:#94a3b8;cursor:not-allowed;transform:none;box-shadow:none;opacity:.7}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.switch[_ngcontent-%COMP%]{background:transparent;border:1px solid #d1d5db;color:#475569}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.switch[_ngcontent-%COMP%]:hover{background:#f1f5f9;border-color:#94a3b8}.form-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(260px,1fr));gap:1.5rem}@media (max-width: 1024px){.form-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}}.additional-info-section[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.form-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.6rem}.form-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:600;color:#1f2937;font-size:.95rem}.form-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%] .required[_ngcontent-%COMP%]{color:#ef4444}.form-field[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%]{width:100%;padding:1rem 1.1rem;border-radius:14px;border:2px solid #e2e8f0;background:#f8fafc;font-size:.95rem;transition:all .3s ease;color:#0f172a}.form-field[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%]:focus{outline:none;border-color:#0d6449;background:#fff;box-shadow:0 0 0 4px #0d64492e}.form-field[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%]::placeholder{color:#94a3b8}.form-field[_ngcontent-%COMP%] .error-message[_ngcontent-%COMP%]{color:#ef4444;font-size:.85rem;font-weight:500}.form-dropdown[_ngcontent-%COMP%]{width:100%}.form-dropdown[_ngcontent-%COMP%] .p-dropdown{width:100%;border:2px solid #e2e8f0;border-radius:14px;background:#f8fafc;transition:all .3s ease}.form-dropdown[_ngcontent-%COMP%] .p-dropdown:hover{border-color:#0d6449;background:#fff}.form-dropdown[_ngcontent-%COMP%] .p-dropdown.p-focus{border-color:#0d6449;box-shadow:0 0 0 4px #0d64492e;background:#fff}.clauses-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.25rem}.clause-card[_ngcontent-%COMP%]{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:1.25rem;display:flex;flex-direction:column;gap:1rem}.clause-card[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.clause-card[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-title[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.5rem;font-weight:600;color:#0f172a}.clause-card[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-title[_ngcontent-%COMP%] .clause-number[_ngcontent-%COMP%]{background:#0d6449;color:#fff;padding:.2rem .6rem;border-radius:8px;font-size:.8rem;font-weight:700}.clause-card[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-actions[_ngcontent-%COMP%]{display:inline-flex;gap:.4rem}.clause-card[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-actions[_ngcontent-%COMP%] .action-chip[_ngcontent-%COMP%]{width:38px;height:38px;border-radius:10px;border:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:all .3s ease}.clause-card[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-actions[_ngcontent-%COMP%] .action-chip.add[_ngcontent-%COMP%]{background:linear-gradient(135deg,#0d6449,#047857);color:#fff}.clause-card[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-actions[_ngcontent-%COMP%] .action-chip.remove[_ngcontent-%COMP%]{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff}.clause-card[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-actions[_ngcontent-%COMP%] .action-chip[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 10px 20px #0f172a1f}.clause-card[_ngcontent-%COMP%] .clause-textarea[_ngcontent-%COMP%]{width:100%;min-height:130px;padding:1rem;border-radius:12px;border:2px solid #e2e8f0;font-size:.95rem;line-height:1.6;transition:all .3s ease}.clause-card[_ngcontent-%COMP%] .clause-textarea[_ngcontent-%COMP%]:focus{outline:none;border-color:#0d6449;box-shadow:0 0 0 4px #0d64492e}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;gap:1rem;flex-wrap:wrap}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border-radius:14px;padding:.85rem 1.8rem;font-weight:600;transition:all .3s ease;letter-spacing:.01em}.review-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.75rem}.review-content[_ngcontent-%COMP%] .review-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(240px,1fr));gap:1.25rem}@media (max-width: 1024px){.review-content[_ngcontent-%COMP%] .review-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}}.review-content[_ngcontent-%COMP%] .review-item[_ngcontent-%COMP%]{background:#f8fafc;border-radius:16px;padding:1.1rem 1.25rem;border:1px solid #e2e8f0}.review-content[_ngcontent-%COMP%] .review-item[_ngcontent-%COMP%] .review-label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;font-weight:600;color:#0d6449;margin-bottom:.4rem}.review-content[_ngcontent-%COMP%] .review-item[_ngcontent-%COMP%] .review-label[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem}.review-content[_ngcontent-%COMP%] .review-item[_ngcontent-%COMP%] .review-value[_ngcontent-%COMP%]{color:#1f2937;font-weight:500}.review-content[_ngcontent-%COMP%] .review-subsection[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.review-content[_ngcontent-%COMP%] .review-subsection[_ngcontent-%COMP%] .subsection-title[_ngcontent-%COMP%]{font-size:1.15rem;font-weight:600;color:#0f172a;margin:0}.documents-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,minmax(200px,1fr));gap:1rem}@media (max-width: 1024px){.documents-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}}.document-card[_ngcontent-%COMP%]{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:1rem;text-align:center}.document-card[_ngcontent-%COMP%] .doc-label[_ngcontent-%COMP%]{font-weight:600;color:#0d6449;margin-bottom:.75rem;display:inline-flex;align-items:center;gap:.4rem}.document-card[_ngcontent-%COMP%] .doc-preview[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;max-width:160px;border-radius:12px;border:2px solid #e2e8f0;box-shadow:0 10px 24px #0f172a1f}.document-card[_ngcontent-%COMP%] .not-provided[_ngcontent-%COMP%]{color:#94a3b8;font-style:italic}.review-actions[_ngcontent-%COMP%]{justify-content:flex-end}@media (max-width: 1024px){.application-form-container[_ngcontent-%COMP%]{padding:1.25rem}.application-form-header[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}}@media (max-width: 768px){.application-form-container[_ngcontent-%COMP%]{padding:1rem}.application-form-header[_ngcontent-%COMP%]{padding:2.25rem}.header-actions[_ngcontent-%COMP%]{flex-direction:row;flex-wrap:wrap}.form-section[_ngcontent-%COMP%], .review-section[_ngcontent-%COMP%]{padding:2rem}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{width:100%;flex-direction:column}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}}@media (max-width: 480px){.application-form-header[_ngcontent-%COMP%]{padding:1.8rem}.form-section[_ngcontent-%COMP%], .review-section[_ngcontent-%COMP%]{padding:1.6rem}}*[_ngcontent-%COMP%]{transition:all .3s cubic-bezier(.4,0,.2,1)}.cancel-btn[_ngcontent-%COMP%]{background:#ff9f43!important;border:1px solid rgb(255,159,67)!important;color:#0f172a!important;box-shadow:0 12px 24px #ff9f4359}.cancel-btn[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 16px 32px #ff9f4373}.submit-btn[_ngcontent-%COMP%]{background:linear-gradient(135deg,#0d6449,#047857);border:none;color:#fff;box-shadow:0 12px 28px #0d644959}.submit-btn[_ngcontent-%COMP%]:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 18px 35px #0d644973}.submit-btn[_ngcontent-%COMP%]:disabled{background:linear-gradient(135deg,#94a3b8d9,#94a3b8bf);box-shadow:none;cursor:not-allowed;transform:none}']})}}return t})();var ore=["filter"],Qv=()=>({width:"50vw"}),iO=()=>({"960px":"75vw","640px":"100vw"}),rre=t=>({name:"rrr",value:t}),are=t=>[t];function sre(t,o){if(t&1){let e=D();c(0,"button",81),I("click",function(){C(e);let i=f(4);return y(i.showRrrDialog())}),v(1,"i",82),c(2,"span"),g(3,"View RRR"),d()()}}function lre(t,o){if(t&1){let e=D();c(0,"div",74)(1,"div",57)(2,"div",58),v(3,"img",75),d(),c(4,"div",60)(5,"h4",61),g(6,"Remita"),d(),c(7,"p",62),g(8,"Bank transfer and online payment"),d()()(),c(9,"div",63)(10,"div",64)(11,"span",65),g(12,"Amount"),d(),c(13,"span",66),g(14),_t(15,"currency"),d()(),c(16,"div",76)(17,"remitapay",77),I("callback",function(i){C(e);let r=f(3);return y(r.processPayment(i,"remita"))}),d()(),c(18,"button",78),v(19,"i",79),c(20,"span"),g(21,"Pay with Remita"),d()(),_(22,sre,4,0,"button",80),d()()}if(t&2){let e=f(3);p(3),m("src",e.remita_icon,Ae),p(11),k(Ji(15,13,e.getPaymentAmount("remita"),"NGN","symbol-narrow","1.2-2")),p(3),H("p-button-sm p-button-raised p-0 m-0"),m("email",e.paymentEmail)("customerId",e.paymentEmail)("firstName",e.paymentEntry.payee_name||"")("lastName",e.paymentEntry.payee_name||"")("processRrr",!0)("customFields",ie(20,are,ie(18,rre,e.paymentEntry.rrr)))("amount",e.getPaymentAmount("remita"))("narration","Payment"),p(5),m("ngIf",e.paymentEntry==null?null:e.paymentEntry.rrr)}}function cre(t,o){if(t&1&&(c(0,"div",83)(1,"div",57)(2,"div",58),v(3,"img",84),d(),c(4,"div",60)(5,"h4",61),g(6,"Quick Teller"),d(),c(7,"p",62),g(8,"Interswitch payment platform"),d()()(),c(9,"div",63)(10,"div",64)(11,"span",65),g(12,"Amount"),d(),c(13,"span",66),g(14),_t(15,"currency"),d()(),c(16,"div",85),g(17,"Integration coming soon"),d()()()),t&2){let e=f(3);p(14),k(Ji(15,1,e.getPaymentAmount("quickteller"),"NGN","symbol-narrow","1.2-2"))}}function dre(t,o){if(t&1){let e=D();c(0,"div",86)(1,"div",57)(2,"div",58),v(3,"img",87),d(),c(4,"div",60)(5,"h4",61),g(6,"Cash Payment"),d(),c(7,"p",62),g(8,"Pay through any High Court agent"),d()()(),c(9,"div",63)(10,"div",64)(11,"span",65),g(12,"Amount"),d(),c(13,"span",66),g(14),_t(15,"currency"),d()(),c(16,"button",88),I("click",function(){C(e);let i=f(3);return y(i.showDialog())}),v(17,"i",89),c(18,"span"),g(19,"View Details"),d()()()()}if(t&2){let e=f(3);p(14),k(Ji(15,1,e.getPaymentAmount("revenue"),"NGN","symbol-narrow","1.2-2"))}}function pre(t,o){if(t&1){let e=D();c(0,"div",48)(1,"div",49)(2,"h3"),v(3,"i",50),g(4," Select Payment Method"),d(),c(5,"button",51),I("click",function(){C(e);let i=f(2);return y(i.closePaySection())}),v(6,"i",52),d()(),c(7,"div",53)(8,"div",54)(9,"div",55)(10,"div",56)(11,"div",57)(12,"div",58),v(13,"img",59),d(),c(14,"div",60)(15,"h4",61),g(16,"Paystack"),d(),c(17,"p",62),g(18,"Secure online payment with cards"),d()()(),c(19,"div",63)(20,"div",64)(21,"span",65),g(22,"Amount"),d(),c(23,"span",66),g(24),_t(25,"currency"),d()(),c(26,"div",67)(27,"angular4-paystack",68),I("onClose",function(){C(e);let i=f(2);return y(i.cancelPaystackPayment())})("callback",function(i){C(e);let r=f(2);return y(r.processPayment(i,"paystack"))}),c(28,"button",69,0),v(30,"i",50),c(31,"span"),g(32,"Pay with Paystack"),d()()()(),c(33,"button",70),I("click",function(){C(e);let i=de(29);return y(i.click())}),v(34,"i",50),c(35,"span"),g(36,"Pay with Paystack"),d()()()(),_(37,lre,23,22,"div",71)(38,cre,18,6,"div",72)(39,dre,20,6,"div",73),d()()()()}if(t&2){let e=f(2);p(13),m("src",e.paystack_icon,Ae),p(11),k(Ji(25,12,e.getPaymentAmount("paystack"),"NGN","symbol-narrow","1.2-2")),p(3),H("p-button-sm p-button-raised p-0 m-0"),m("email",e.paymentEmail)("amount",e.calculateAmount(e.getPaymentAmount("paystack"))*100)("ref",e.paymentReference)("key",e.paystackKey)("split_code",e.getSplitCode("paystack")),p(10),m("ngIf",!1),p(),m("ngIf",!1),p(),m("ngIf",!1)}}function ure(t,o){}function mre(t,o){if(t&1){let e=D();c(0,"a",90),v(1,"button",91),d(),c(2,"button",92),I("click",function(){C(e);let i=f(2);return y(i.closeCashPayModal())}),d()}}function fre(t,o){}function hre(t,o){if(t&1){let e=D();c(0,"a",90),v(1,"button",91),d(),c(2,"button",92),I("click",function(){C(e);let i=f(2);return y(i.closeRrrModal())}),d()}}function gre(t,o){t&1&&v(0,"p-tag",123)}function Are(t,o){t&1&&v(0,"p-tag",124)}function _re(t,o){t&1&&v(0,"p-tag",125)}function vre(t,o){t&1&&v(0,"p-tag",126)}function bre(t,o){if(t&1&&(c(0,"div",130)(1,"span",131),g(2),d(),c(3,"span",132),g(4),d()()),t&2){let e=o.$implicit;p(2),k(e.label),p(2),k(e.provided_value)}}function Cre(t,o){if(t&1&&(c(0,"div",128),_(1,bre,5,2,"div",129),d()),t&2){let e=f(2).$implicit;p(),m("ngForOf",e.application==null?null:e.application.formEntries)}}function yre(t,o){if(t&1&&(c(0,"div",100)(1,"div",49)(2,"h3"),v(3,"i",101),g(4," Affidavit Information"),d()(),c(5,"div",53),_(6,Cre,2,1,"div",127),d()()),t&2){let e=f().$implicit;p(6),m("ngIf",e.application==null||e.application.formEntries==null?null:e.application.formEntries.length)}}function xre(t,o){t&1&&(c(0,"div",133),g(1,"Not Provided"),d())}function wre(t,o){if(t&1&&v(0,"img",134),t&2){let e=f().$implicit;m("src",e.application.passport_photo_file,Ae)}}function Ire(t,o){t&1&&(c(0,"div",133),g(1,"Not Provided"),d())}function Mre(t,o){if(t&1&&v(0,"img",135),t&2){let e=f().$implicit;m("src",e.application.signature_file,Ae)}}function Sre(t,o){t&1&&(c(0,"div",133),g(1,"Not Provided"),d())}function Ere(t,o){if(t&1&&v(0,"img",136),t&2){let e=f().$implicit;m("src",e.application.identity_card_file,Ae)}}function Ore(t,o){if(t&1){let e=D();B(0),c(1,"div",93)(2,"div",94)(3,"div",32)(4,"h4",95),g(5,"Application ID"),d(),c(6,"p",96),g(7),d()()(),c(8,"div",97)(9,"div",32)(10,"h4",95),g(11,"Affidavit Type"),d(),c(12,"p",96),g(13),d()()(),c(14,"div",98)(15,"div",32)(16,"h4",95),g(17,"Deponent Name"),d(),c(18,"p",96),g(19),d()()(),c(20,"div",99)(21,"div",32)(22,"h4",95),g(23,"Payment Status"),d(),c(24,"p",96),g(25),d()()()(),c(26,"div",100)(27,"div",49)(28,"h3"),v(29,"i",101),g(30," Application Details"),d()(),c(31,"div",53)(32,"div",102)(33,"div",103)(34,"span",104),g(35,"Application ID"),d(),c(36,"span",105),g(37),c(38,"i",106),I("click",function(){let i=C(e).$implicit,r=f(2);return y(r.copyRefNo(i.application.ref_no))}),d()()(),c(39,"div",103)(40,"span",104),g(41,"Date/Time Created"),d(),c(42,"span",105),g(43),_t(44,"date"),d()(),c(45,"div",103)(46,"span",104),g(47,"Payment Reference"),d(),c(48,"span",105),g(49),c(50,"i",106),I("click",function(){C(e);let i=f(2);return y(i.copyRefNo(i.paymentEntry.ref_id))}),d()()(),c(51,"div",103)(52,"span",104),g(53,"Application Status"),d(),c(54,"span",105),_(55,gre,1,0,"p-tag",107)(56,Are,1,0,"p-tag",108)(57,_re,1,0,"p-tag",109)(58,vre,1,0,"p-tag",110),d()()()()(),c(59,"div",100)(60,"div",49)(61,"h3"),v(62,"i",111),g(63," Personal Information"),d()(),c(64,"div",53)(65,"div",102)(66,"div",103)(67,"span",104),g(68,"Deponent NIN"),d(),c(69,"span",105),g(70),d()(),c(71,"div",103)(72,"span",104),g(73,"Native Town"),d(),c(74,"span",105),g(75),d()(),c(76,"div",103)(77,"span",104),g(78,"Country of Origin"),d(),c(79,"span",105),g(80),d()(),c(81,"div",103)(82,"span",104),g(83,"State of Origin"),d(),c(84,"span",105),g(85),d()(),c(86,"div",103)(87,"span",104),g(88,"Place of Residence"),d(),c(89,"span",105),g(90),d()(),c(91,"div",103)(92,"span",104),g(93,"Occupation"),d(),c(94,"span",105),g(95),d()(),c(96,"div",103)(97,"span",104),g(98,"Gender"),d(),c(99,"span",105),g(100),d()(),c(101,"div",103)(102,"span",104),g(103,"Religion"),d(),c(104,"span",105),g(105),d()()()()(),_(106,yre,7,1,"div",112),c(107,"div",100)(108,"div",49)(109,"h3"),v(110,"i",113),g(111," Supporting Documents"),d()(),c(112,"div",53)(113,"div",114)(114,"div",115)(115,"span",116),g(116,"Passport Photo"),d(),c(117,"div",117),_(118,xre,2,0,"div",118)(119,wre,1,1,"img",119),d()(),c(120,"div",115)(121,"span",116),g(122,"Signature Photo"),d(),c(123,"div",117),_(124,Ire,2,0,"div",118)(125,Mre,1,1,"img",120),d()(),c(126,"div",115)(127,"span",116),g(128,"ID Card"),d(),c(129,"div",117),_(130,Sre,2,0,"div",118)(131,Ere,1,1,"img",121),d()(),c(132,"div",115)(133,"span",116),g(134,"Preferred Court"),d(),c(135,"div",117)(136,"span",122),g(137),d()()()()()(),z()}if(t&2){let e=o.$implicit,n=f(2);p(7),k(e.application.ref_no||"Not available"),p(6),k(e.application.affidavit_type_name||"Not set"),p(6),k(e.application.deponent_name||"Not set"),p(),m("ngClass",n.paymentEntry.status=="paid"?"success":"warning"),p(5),k(n.paymentEntry.status=="paid"?"Paid":"Not Paid"),p(12),se(" ",e.application.ref_no," "),p(6),k(Xt(44,28,e.application.created_at,"MMM d, y, h:mm a")),p(6),se(" ",n.paymentEntry.ref_id," "),p(6),m("ngIf",(e.application==null?null:e.application.status)=="approved"),p(),m("ngIf",(e.application==null?null:e.application.status)=="draft"),p(),m("ngIf",(e.application==null?null:e.application.status)=="queried"),p(),m("ngIf",(e.application==null?null:e.application.status)=="pending"),p(12),k(e.application.deponent_nin||"Not set"),p(5),k(e.application.town_native||"Not set"),p(5),k(e.application.state.country.name||"Not set"),p(5),k(e.application.state.name||"Not set"),p(5),k(e.application.town_resident||"Not set"),p(5),k(e.application.occupation||"Not set"),p(5),k(e.application.gender||"Not set"),p(5),k(e.application.religion||"Not set"),p(),m("ngIf",n.shouldDisplayAffidavitSection),p(12),m("ngIf",!e.application.passport_photo_file),p(),m("ngIf",e.application.passport_photo_file),p(5),m("ngIf",!e.application.signature_file),p(),m("ngIf",e.application.signature_file),p(5),m("ngIf",!e.application.identity_card_file),p(),m("ngIf",e.application.identity_card_file),p(6),k(e.application.court.name?e.application.court.name:"Value not set")}}function Tre(t,o){if(t&1){let e=D();c(0,"button",137),I("click",function(){C(e);let i=f(2);return y(i.displayPaySection())}),d()}}function Pre(t,o){if(t&1){let e=D();c(0,"button",138),I("click",function(){C(e);let i=f(2);return y(i.goToEdit())}),d()}}function Dre(t,o){if(t&1){let e=D();c(0,"button",139),I("click",function(){C(e);let i=f(2);return y(i.affidavitPreview())}),d()}}function kre(t,o){if(t&1){let e=D();c(0,"div",148)(1,"p",149),g(2,"To Acknowledge/Approve Query Changes"),d(),c(3,"button",150),I("click",function(){C(e);let i=f(3);return y(i.approveQueryChanges())}),d()()}}function Fre(t,o){if(t&1&&(c(0,"div",30)(1,"div",31)(2,"h3"),g(3,"Last Query"),d()(),c(4,"div",32)(5,"div",140)(6,"p",141),g(7),d(),c(8,"div",142)(9,"span",143),g(10),_t(11,"date"),d(),c(12,"div",144)(13,"span",145),g(14,"Acknowledged:"),d(),v(15,"p-tag",146),d()(),_(16,kre,4,0,"div",147),d()()()),t&2){let e,n=f(2);p(7),k((e=n.applicationQuery==null?null:n.applicationQuery.query)!==null&&e!==void 0?e:"(not set)"),p(3),k(Xt(11,5,n.applicationQuery==null?null:n.applicationQuery.created_at,"MMM d, y, h:mm a")),p(5),m("value",n.applicationQuery!=null&&n.applicationQuery.is_acknowledged?"Yes":"No")("severity",n.applicationQuery!=null&&n.applicationQuery.is_acknowledged?"success":"danger"),p(),m("ngIf",(n.applicationQuery==null?null:n.applicationQuery.was_edited_once)&&(n.applicationQuery==null?null:n.applicationQuery.is_acknowledged)==!1)}}function Rre(t,o){if(t&1){let e=D();c(0,"button",151),I("click",function(){C(e);let i=f(2);return y(i.displayIDCardModal=!1)}),d()}}function Vre(t,o){if(t&1){let e=D();c(0,"div",2)(1,"div",3)(2,"div",4)(3,"h1",5),g(4,"Applications Details"),d(),c(5,"p",6),g(6,"View and manage your bulk affidavit applications"),d()(),c(7,"div",7)(8,"div",8),v(9,"i",9),c(10,"span"),g(11),d()()()(),_(12,pre,40,17,"div",10),c(13,"p-dialog",11),jt("visibleChange",function(i){C(e);let r=f();return Wt(r.displayCashModal,i)||(r.displayCashModal=i),y(i)}),_(14,ure,0,0,"ng-template",12),c(15,"div",13),v(16,"button",14),c(17,"div",15)(18,"span",16),g(19," Copy the "),c(20,"strong",17),g(21,"Payment Reference Number"),d(),g(22," below and present to any High Court agent with the sum of "),c(23,"strong",17),g(24),_t(25,"number"),d(),g(26," to proceed with the affidavit cash payment. "),d()(),c(27,"div",18)(28,"span",19),g(29,"Payee"),d(),c(30,"div",20),g(31),d()(),c(32,"div",18)(33,"span",19),g(34,"Payment Reference Number"),d(),c(35,"div",20),g(36),c(37,"button",21),I("click",function(){C(e);let i=f();return y(i.copyRefNo(i.paymentEntry.ref_id))}),d()()()(),_(38,mre,3,0,"ng-template",22),d(),c(39,"p-dialog",23),jt("visibleChange",function(i){C(e);let r=f();return Wt(r.displayRrrModal,i)||(r.displayRrrModal=i),y(i)}),_(40,fre,0,0,"ng-template",12),c(41,"div",13),v(42,"button",24),c(43,"div",15)(44,"span",16),g(45," Copy the "),c(46,"strong",17),g(47,"RRR"),d(),g(48," below and use any Remita payment channel to pay the sum of "),c(49,"strong",17),g(50),_t(51,"number"),d(),g(52," to proceed with your request. "),d()(),c(53,"div",18)(54,"span",19),g(55,"Payee"),d(),c(56,"div",20),g(57),d()(),c(58,"div",18)(59,"span",19),g(60,"RRR"),d(),c(61,"div",20),g(62),c(63,"button",25),I("click",function(){C(e);let i=f();return y(i.copyCode(i.paymentEntry.rrr))}),d()()()(),_(64,hre,3,0,"ng-template",22),d(),c(65,"div",26)(66,"div",27),_(67,Ore,138,31,"ng-container",28),d(),c(68,"div",29)(69,"div",30)(70,"div",31)(71,"h3"),g(72,"Quick Actions"),d()(),c(73,"div",32)(74,"div",33),_(75,Tre,1,0,"button",34)(76,Pre,1,0,"button",35)(77,Dre,1,0,"button",36),c(78,"button",37),I("click",function(){C(e);let i=f();return y(i.goBack())}),d()()()(),c(79,"div",30)(80,"div",31)(81,"h3"),g(82,"Applicant Information"),d()(),c(83,"div",32)(84,"div",38)(85,"div",39),v(86,"i",40),c(87,"span"),g(88),d()(),c(89,"div",41),v(90,"i",42),c(91,"span"),g(92),d()()()()(),_(93,Fre,17,8,"div",43),d()(),c(94,"p-dialog",44),jt("visibleChange",function(i){C(e);let r=f();return Wt(r.displayIDCardModal,i)||(r.displayIDCardModal=i),y(i)}),c(95,"div",45),v(96,"img",46),d(),_(97,Rre,1,0,"ng-template",22),d(),v(98,"p-toast",47),d()}if(t&2){let e,n=f();p(8),m("ngClass",n.paymentEntry.status=="paid"?"success":"warning"),p(),$e("pi-check-circle",n.paymentEntry.status=="paid")("pi-clock",n.paymentEntry.status!="paid"),p(2),k(n.paymentEntry.status=="paid"?"Paid":"Not Paid"),p(),m("ngIf",n.displayPaymentSection),p(),It(Pe(45,Qv)),Ht("visible",n.displayCashModal),m("closable",!1)("modal",!0)("breakpoints",Pe(46,iO)),p(11),se("\u20A6",Xt(25,39,n.paymentEntry.total,"1.2-2"),""),p(7),k(n.applications[0].application.deponent_name),p(5),se(" ",n.paymentEntry.ref_id," "),p(3),It(Pe(47,Qv)),Ht("visible",n.displayRrrModal),m("closable",!1)("modal",!0)("breakpoints",Pe(48,iO)),p(11),se("\u20A6",Xt(51,42,n.paymentEntry.total,"1.2-2"),""),p(7),k((e=n.applications[0].application.applicant_email)!==null&&e!==void 0?e:""),p(5),se(" ",n.paymentEntry.rrr," "),p(5),m("ngForOf",n.applications),p(8),m("ngIf",n.paymentEntry.status!="paid"),p(),m("ngIf",(n.applications[0].application==null?null:n.applications[0].application.status)==="draft"||(n.applications[0].application==null?null:n.applications[0].application.status)==="queried"),p(),m("ngIf",(n.applications[0].application==null?null:n.applications[0].application.status)=="approved"&&(n.applications[0].application==null?null:n.applications[0].application.is_paid)&&!n.previewAffidavit),p(11),k(n.applications[0].application.applicant_email||"Not provided"),p(4),k(n.applications[0].application.applicant_phone||"Not provided"),p(),m("ngIf",n.applicationQuery==null?null:n.applicationQuery.query),p(),It(Pe(49,Qv)),Ht("visible",n.displayIDCardModal),m("modal",!0)("draggable",!1)("resizable",!1),p(2),m("src",n.applications[0].application.passport_photo_file,Ae)}}function Lre(t,o){if(t&1){let e=D();c(0,"div",2)(1,"div",152)(2,"h1",153),g(3),d(),c(4,"p",154),g(5,"Please verify the reference and try again."),d(),c(6,"button",155),I("click",function(){C(e);let i=f();return y(i.goBack())}),d()()()}if(t&2){let e=f();p(3),se("Application with ",e.client_ref," Not Found")}}var oO=(()=>{class t{constructor(e,n,i,r,a,s,l,u,h,A,b){this.paymentEndpoint=e,this.clipboardApi=n,this.messageService=i,this.applicationService=r,this.paymentKeysEndpoint=a,this.affidavitPageStore=s,this.affidavitAppEndpoint=l,this.affidavitApplicationQueryEndpoint=u,this.paymentOptionsSettingEndpoint=h,this.revenuePaymentEntryEndpoint=A,this.appNotificationService=b,this.getApplications=new V,this.apiMode=null,this.apiBaseUrl="",this.client_ref="",this.applications=[],this.currentState=me.currentState,this.paystack_icon="data:image/png;base64,"+pt.paystack_icon,this.no_image="data:image/png;base64,"+pt.no_image,this.remita_icon=pt.remita_icon,this.shouldDisplayAffidavitSection=!1,this.paystackKey="",this.remitaKey="",this.remitaMode="",this.lastPaymentRef="",this.paymentEmail="",this.paymentAmount=0,this.canEdit=!1,this.hasQuery=!1,this.displayCashModal=!1,this.displayRrrModal=!1,this.displayIDCardModal=!1,this.displayPaymentSection=!1,this.allowCashPayment=!1,this.allowOnlinePayment=!1,this.allowRemitaPayment=!1,this.allowInterswitchPayment=!1,this.interswitchMerchantCode=me.interswitch_mechant_code,this.interswitchItemId=me.interswitch_pay_item,this.interswitch_paymentMode=me.interswitch_mode,this.pdfLogo="assets/images/logo-pdf.png",this.docxLogo="assets/images/logo-docx.png",this.docLogo="assets/images/logo-doc.jpeg",this.showHeader=!0,this.previewAffidavit=!1,this.allowPassportUpload=!1,this.allowOathCommissionerSignaturePhoto=!1,this.stateTitle=me.stateTitleSentence,this.is_loading=!0,this.affidavitPageStore.stopLoading(),this.affidavitPageStore.setRefNo(this.applicationService.getClientRef()),this.affidavitPageStore.mode$.subscribe({next:x=>{this.apiMode=x;let w=this.apiMode??Fe.TEST;this.apiBaseUrl=w===Fe.PRODUCTION?me.productionApiUrl:me.testApiUrl}})}ngOnInit(){this.client_ref=this.applicationService.getClientRef(),this.affidavitPageStore.startLoading("Fetching Data . . ."),this.client_ref&&this.getAppByClientRef(),this.paymentOptionsSettingEndpoint.single(1).subscribe({next:e=>{this.paymentSetting=e.data,this.allowCashPayment=this.paymentSetting?.allow_cash_payment,this.allowOnlinePayment=this.paymentSetting?.allow_online_payment}}),this.paymentKeysEndpoint.fetchPaymentKeys().subscribe({next:e=>{this.paystackKey=e.paystack_key,this.remitaKey=e.remita_key,this.remitaMode=e.remita_mode}}),this.is_loading=!1}getAppByClientRef(){this.affidavitPageStore.startLoading("Loading . . ."),this.affidavitAppEndpoint.singleByClientRef(this.client_ref).subscribe(e=>{this.applications=e.data.data,this.paymentEntry=e.paymentEntry,this.applicationService.setPaymentEntry(this.paymentEntry),this.shouldDisplayAffidavitSection=this.applications[0].application.formEntries?.length>0,this.getApplications.emit(this.applications),this.affidavitPageStore.stopLoading(),this.loadPaymentInfo()},e=>{this.appNotificationService.showError({title:e.error,detail:e.message}),this.affidavitPageStore.stopLoading(),this.affidavitPageStore.toggle("new")})}onGlobalFilter(e,n){e.filterGlobal(n.target.value,"contains")}clear(e){e.clear(),this.filter.nativeElement.value=""}loadQuery(e){return Yn(this,null,function*(){this.applicationQuery=(yield this.affidavitApplicationQueryEndpoint.single(e).toPromise())?.data})}approveQueryChanges(){}closePaySection(){this.displayPaymentSection=!1}displayPaySection(){this.displayPaymentSection=!0}loadPaymentInfo(){this.paymentEmail=this.applications[0]?.application.applicant_email??"",this.paymentAmount=this.paymentEntry?.total*100}confirmIfPaid(){this.revenuePaymentEntryEndpoint.isPaid(this.applications[0].application?.revenuePaymentEntry?.ref_id).subscribe({next:e=>{e.paid?(this.appNotificationService.showSuccess({title:"Success!!",detail:"Payment has been received successfully!"}),location.reload()):this.appNotificationService.showInfo({title:"Info!!",detail:"Payment has not been received."})},error:e=>{this.appNotificationService.showError({title:"Error!!",detail:"An error occurred while attempting to check payment status..."})}})}goBack(){this.affidavitPageStore.toggle("new")}goToEdit(){this.affidavitPageStore.startLoading("Fetching Data . . ."),this.affidavitPageStore.toggle("edit-application")}get paymentReference(){return this.lastPaymentRef=this.paymentEntry?.ref_id+"__"+Date.now().toString(),this.lastPaymentRef}cancelPaystackPayment(){console.log("Paystack Payment cancelled...")}copyRefNo(e){this.clipboardApi.copyFromContent(e),this.messageService.add({severity:"success",summary:e,detail:"Was Copied Successfully"})}printpart(){var e=window.open("");e?.document.write(document.getElementById("printCashRef").innerHTML),e?.stop(),e?.print(),e?.close()}processPayment(e,n){this.affidavitPageStore.startLoading("Processing . . .");let i;switch(n){case si.PAYSTACK:i={email:this.paymentEmail,amount:this.paymentAmount,client_tx_ref:e.reference,host_tx_ref:e.transaction,prn:this.paymentEntry?.ref_id,host_response_payload:JSON.stringify(e),payment_method:si.PAYSTACK};break;case si.REMITA:i={email:this.paymentEmail,amount:this.paymentAmount,client_tx_ref:this.lastPaymentRef,host_tx_ref:e.transaction,prn:this.paymentEntry?.ref_id,host_response_payload:JSON.stringify(e),payment_method:si.REMITA};break;default:return}this.paymentEndpoint.processPayment(i).subscribe({next:r=>{this.appNotificationService.showSuccess({title:"Success!!",detail:"Your payment has been recieved!"}),this.paymentEntry=r.revenuePaymentEntry,this.closePaySection(),this.getAppByClientRef(),this.affidavitPageStore.stopLoading()},error:r=>{this.affidavitPageStore.stopLoading(),this.appNotificationService.showError({title:"Error!!",detail:r.message||r})}})}showDialog(){this.displayCashModal=!0}closeCashPayModal(){this.displayCashModal=!1}affidavitPreview(){this.affidavitPageStore.startLoading("Loading Affidavit . . ."),this.affidavitPageStore.setRefNo(this.client_ref),this.affidavitPageStore.toggle("affidavit-detail")}handleImageError(e){e.target.src=this.no_image}calculateAmount(e){return El(e)}getPaymentAmount(e){return(this.applications[0]?.application.split_codes?.find(r=>r.payment_method.code===e)?.payment_method.txn_fee??0)+(this.paymentEntry?.total||0)}getSplitCode(e){let n=this.applications[0]?.application.split_codes?.find(r=>r.payment_method.code===e),i=n?.split_codes.code;if((n?.split_codes.type=="json"||n?.split_codes.type=="calculated")&&(i=JSON.parse(JSON.stringify(i)),n.split_codes.type=="calculated")){let r=n.split_codes.amount_field,a=JSON.parse(i);a.forEach(s=>{s[r]=r.percentage/100*(this.paymentEntry?.total||1)}),i=a}return i||""}showRrrDialog(){this.displayRrrModal=!0}closeRrrModal(){this.displayRrrModal=!1}copyCode(e){this.clipboardApi.copyFromContent(e),this.messageService.add({severity:"success",summary:e,detail:"Was Copied Successfully"})}validateFile(e){if(e){let n=e.slice(-4),i=this.apiBaseUrl+"/file/get/"+e;switch(n){case".pdf":i=this.pdfLogo;break;case".doc":i=this.docLogo;break;case"docx":i=this.docxLogo;break;case"":i="assets/images/noimage.gif";break}return i}return""}static{this.\u0275fac=function(n){return new(n||t)(M(fa),M(Ol),M(wi),M(Si),M(ha),M(Te),M(ai),M(ga),M(oo),M(Tl),M(Mn))}}static{this.\u0275cmp=N({type:t,selectors:[["e-affidavit-applications-details-page"]],viewQuery:function(n,i){if(n&1&&ae(ore,5),n&2){let r;Q(r=G())&&(i.filter=r.first)}},outputs:{getApplications:"getApplications"},decls:2,vars:2,consts:[["paystackButton",""],["class","application-detail-container",4,"ngIf"],[1,"application-detail-container"],[1,"application-header"],[1,"header-content"],[1,"application-title"],[1,"application-subtitle"],[1,"header-actions"],[1,"status-badge",3,"ngClass"],[1,"pi"],["class","section-card payment-section mb-3",4,"ngIf"],["id","printCashRef",3,"visibleChange","visible","closable","modal","breakpoints"],["pTemplate","header"],[1,"cash-modal"],["pButton","","type","button","label","CASH PAYMENT INFORMATION","disabled","",1,"p-button-outlined","p-button-success","w-full","text-xl"],[1,"alert-body","printRef"],[1,"blck-font","text-lg","font-bold","d-block"],[1,"green-font"],[1,"modal-field"],[1,"label"],[1,"value"],["pButton","","type","button","icon","pi pi-clone","title","Copy Reference Number",1,"p-button-outlined","p-button-success","p-button-rounded",3,"click"],["pTemplate","footer"],["id","printCashRef1",3,"visibleChange","visible","closable","modal","breakpoints"],["pButton","","type","button","label","Remita RRR Information","disabled","",1,"p-button-outlined","p-button-success","w-full","text-xl"],["pButton","","type","button","icon","pi pi-clone","title","Copy RRR",1,"p-button-outlined","p-button-success","p-button-rounded",3,"click"],[1,"content-grid"],[1,"main-content"],[4,"ngFor","ngForOf"],[1,"sidebar"],[1,"sidebar-card"],[1,"card-header"],[1,"card-content"],[1,"action-buttons"],["pButton","","type","button","icon","pi pi-credit-card","label","Proceed to Payment","class","action-btn success",3,"click",4,"ngIf"],["pButton","","type","button","icon","pi pi-file-edit","label","Edit Application","class","action-btn info",3,"click",4,"ngIf"],["pButton","","type","button","icon","pi pi-eye","label","Preview Affidavit","class","action-btn info",3,"click",4,"ngIf"],["pButton","","type","button","icon","pi pi-arrow-left","label","Go Back",1,"action-btn","danger",3,"click"],[1,"contact-info"],[1,"info-row","mb-3"],[1,"pi","pi-envelope","text-primary","mr-3"],[1,"info-row"],[1,"pi","pi-phone","text-primary","mr-3"],["class","sidebar-card",4,"ngIf"],["header","Identity Card",3,"visibleChange","visible","modal","draggable","resizable"],[1,"modal-content"],["onerror","this.src='assets/images/id-vector.png';","alt","Identity Card",1,"id-image",3,"src"],["position","top-right"],[1,"section-card","payment-section","mb-3"],[1,"section-header"],[1,"pi","pi-credit-card"],["type","button",1,"close-btn",3,"click"],[1,"pi","pi-times"],[1,"section-content"],[1,"payment-gateway-container"],[1,"payment-methods-grid"],[1,"payment-method-card","paystack-card"],[1,"payment-card-header"],[1,"payment-icon"],["alt","Paystack",1,"payment-logo",3,"src"],[1,"payment-info"],[1,"payment-title"],[1,"payment-description"],[1,"payment-card-content"],[1,"payment-amount"],[1,"amount-label"],[1,"amount-value"],[1,"hidden-paystack-wrapper"],[3,"onClose","callback","email","amount","ref","key","split_code"],["id","p-button","type","button",1,"hidden-paystack-btn"],["type","button",1,"modern-paystack-btn-custom",3,"click"],["class","payment-method-card remita-card",4,"ngIf"],["class","payment-method-card quickteller-card",4,"ngIf"],["class","payment-method-card cash-card",4,"ngIf"],[1,"payment-method-card","remita-card"],["alt","Remita",1,"payment-logo",3,"src"],[1,"hidden-remita-wrapper"],[3,"callback","email","customerId","firstName","lastName","processRrr","customFields","amount","narration"],["type","button",1,"modern-remita-btn-custom"],[1,"pi","pi-building"],["type","button","class","view-rrr-btn",3,"click",4,"ngIf"],["type","button",1,"view-rrr-btn",3,"click"],[1,"pi","pi-eye"],[1,"payment-method-card","quickteller-card"],["src","assets/images/quick-teller.png","alt","Quickteller",1,"payment-logo"],[1,"coming-soon-note"],[1,"payment-method-card","cash-card"],["src","assets/images/cash-payment.png","alt","Cash",1,"payment-logo"],["type","button",1,"modern-cash-btn",3,"click"],[1,"pi","pi-wallet"],["id","btnPrint","type","button","href","javascript:window.print();","rippleEffect","","title","Print",1,"btn","btn-info","no-print"],["pButton","","type","button","icon","pi pi-print","label","Print",1,"p-button-success"],["pButton","","type","button","icon","pi pi-times","label","Close",1,"p-button-outlined","p-button-danger",3,"click"],[1,"overview-grid"],[1,"overview-card","primary"],[1,"card-title"],[1,"card-value"],[1,"overview-card","secondary"],[1,"overview-card","success"],[1,"overview-card",3,"ngClass"],[1,"section-card"],[1,"pi","pi-file-text"],[1,"info-grid"],[1,"info-item"],[1,"info-label"],[1,"info-value"],["pTooltip","Copy to clipboard","tooltipPosition","top",1,"pi","pi-clone",2,"cursor","pointer",3,"click"],["value","Approved","severity","success","styleClass","m-2",4,"ngIf"],["value","Draft","severity","warning","styleClass","m-2",4,"ngIf"],["value","Queried","severity","danger","styleClass","m-2",4,"ngIf"],["value","Pending","severity","warning","styleClass","m-2",4,"ngIf"],[1,"pi","pi-user"],["class","section-card",4,"ngIf"],[1,"pi","pi-images"],[1,"documents-grid"],[1,"document-item"],[1,"doc-label"],[1,"doc-content"],["class","no-doc",4,"ngIf"],["class","doc-image","onerror","this.src='assets/images/noimage.gif';","alt","Passport Photo",3,"src",4,"ngIf"],["class","doc-image","onerror","this.src='assets/images/noimage.gif';","alt","Signature Photo",3,"src",4,"ngIf"],["class","doc-image","onerror","this.src='assets/images/noimage.gif';","alt","ID Card",3,"src",4,"ngIf"],[1,"court-name"],["value","Approved","severity","success","styleClass","m-2"],["value","Draft","severity","warning","styleClass","m-2"],["value","Queried","severity","danger","styleClass","m-2"],["value","Pending","severity","warning","styleClass","m-2"],["class","entries-grid",4,"ngIf"],[1,"entries-grid"],["class","entry-item",4,"ngFor","ngForOf"],[1,"entry-item"],[1,"entry-label"],[1,"entry-value"],[1,"no-doc"],["onerror","this.src='assets/images/noimage.gif';","alt","Passport Photo",1,"doc-image",3,"src"],["onerror","this.src='assets/images/noimage.gif';","alt","Signature Photo",1,"doc-image",3,"src"],["onerror","this.src='assets/images/noimage.gif';","alt","ID Card",1,"doc-image",3,"src"],["pButton","","type","button","icon","pi pi-credit-card","label","Proceed to Payment",1,"action-btn","success",3,"click"],["pButton","","type","button","icon","pi pi-file-edit","label","Edit Application",1,"action-btn","info",3,"click"],["pButton","","type","button","icon","pi pi-eye","label","Preview Affidavit",1,"action-btn","info",3,"click"],[1,"query-content"],[1,"query-text"],[1,"query-meta"],[1,"query-date"],[1,"query-status"],[1,"status-label"],["styleClass","ml-2",3,"value","severity"],["class","query-actions",4,"ngIf"],[1,"query-actions"],[1,"query-hint"],["pButton","","type","button","icon","pi pi-check","label","Click here!",1,"approve-btn",3,"click"],["pButton","","type","button","icon","pi pi-check","label","Close",1,"p-button-danger","p-button-outlined",3,"click"],[1,"section-card",2,"text-align","center","padding","4rem 2rem"],[1,"text-700","font-xl","mb-3"],[1,"text-600","mb-4"],["pButton","","type","button","icon","pi pi-arrow-left","label","Go Back",1,"p-button-secondary","p-button-outlined",3,"click"]],template:function(n,i){n&1&&_(0,Vre,99,50,"div",1)(1,Lre,7,1,"div",1),n&2&&(m("ngIf",i.applications.length>0&&!i.is_loading&&!i.previewAffidavit),p(),m("ngIf",i.applications.length==0&&!i.is_loading))},dependencies:[De,rt,Ce,pl,_m,Lt,fe,In,Wo,Dl,er,rl,al,Uo],styles:['#p-button[_ngcontent-%COMP%]{margin:-50px!important}.card-min-h[_ngcontent-%COMP%]{min-height:140px}@media print{@page{margin:0!important;padding:0!important}.no-print[_ngcontent-%COMP%], .show[_ngcontent-%COMP%], .main-page[_ngcontent-%COMP%]{visibility:hidden!important;background-color:#fff!important}.printRef[_ngcontent-%COMP%]{max-width:100%!important;height:100px!important;flex:0 0 100%!important}.modal-content[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{visibility:visible;overflow:visible}.main-page[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{display:none}.modal[_ngcontent-%COMP%]{position:absolute;left:0;top:0;margin:0;padding:0;visibility:visible;overflow:visible!important}.modal-dialog[_ngcontent-%COMP%]{visibility:visible!important;overflow:visible!important}}.pulse-button[_ngcontent-%COMP%]{background:#5a99d4;cursor:pointer;box-shadow:0 0 #5a99d480;-webkit-animation:_ngcontent-%COMP%_pulse 1.5s infinite;animation:_ngcontent-%COMP%_pulse 1.5s infinite}.pulse-button[_ngcontent-%COMP%]:hover{-webkit-animation:none;animation:none}@-webkit-keyframes _ngcontent-%COMP%_pulse{70%{box-shadow:0 0 0 50px #5a99d400}to{box-shadow:0 0 #5a99d400}}@keyframes _ngcontent-%COMP%_pulse{70%{box-shadow:0 0 0 50px #5a99d400}to{box-shadow:0 0 #5a99d400}}.application-detail-container[_ngcontent-%COMP%]{padding:1rem 1.5rem 2rem;background:linear-gradient(135deg,#f8fafc,#f1f5f9,#e2e8f0);min-height:100vh;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;position:relative}.application-detail-container[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;height:200px;background:linear-gradient(135deg,#022c220d,#0478570d);z-index:0;pointer-events:none}.application-detail-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{position:relative;z-index:1}.application-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem;padding:2.5rem 3rem;background:linear-gradient(135deg,#022c22,#047857 45%,#0d6449);border-radius:24px;box-shadow:0 25px 50px #00000026,0 0 0 1px #ffffff1a;color:#fff;position:relative;overflow:hidden}.application-header[_ngcontent-%COMP%]:before{content:"";position:absolute;top:-50%;right:-50%;width:200%;height:200%;background:radial-gradient(circle,rgba(255,255,255,.1) 0%,transparent 70%);animation:_ngcontent-%COMP%_pulse 8s ease-in-out infinite}.header-content[_ngcontent-%COMP%] h1.application-title[_ngcontent-%COMP%]{font-size:2.5rem;font-weight:700;margin:0 0 .5rem;background:linear-gradient(45deg,#fff,#f0f0f0);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.header-content[_ngcontent-%COMP%] .application-subtitle[_ngcontent-%COMP%]{font-size:1.1rem;opacity:.9;margin:0;font-weight:400}.header-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}.header-actions[_ngcontent-%COMP%] .status-badge[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;background:#fff3;color:#fff;border:1px solid rgba(255,255,255,.3);padding:.75rem 1.5rem;border-radius:50px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font-size:.875rem;font-weight:500}.header-actions[_ngcontent-%COMP%] .status-badge.success[_ngcontent-%COMP%]{background:#22c55e4d;border-color:#22c55e80}.header-actions[_ngcontent-%COMP%] .status-badge.warning[_ngcontent-%COMP%]{background:#fbbf244d;border-color:#fbbf2480}.header-actions[_ngcontent-%COMP%] .status-badge.danger[_ngcontent-%COMP%]{background:#ef44444d;border-color:#ef444480}.header-actions[_ngcontent-%COMP%] .status-badge.default[_ngcontent-%COMP%]{background:#9ca3af4d;border-color:#9ca3af80}.header-actions[_ngcontent-%COMP%] .status-badge[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem}.header-actions[_ngcontent-%COMP%] .ref-number[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;background:#fff3;padding:.75rem 1.5rem;border-radius:50px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.3);font-family:Monaco,Menlo,monospace;font-weight:500}.header-actions[_ngcontent-%COMP%] .ref-number[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.2rem}.header-actions[_ngcontent-%COMP%] .ref-number[_ngcontent-%COMP%] .copy-btn[_ngcontent-%COMP%]{background:none;border:none;color:#fff;cursor:pointer;padding:.25rem;border-radius:4px;transition:background-color .2s}.header-actions[_ngcontent-%COMP%] .ref-number[_ngcontent-%COMP%] .copy-btn[_ngcontent-%COMP%]:hover{background:#fff3}.content-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(250px,.8fr);gap:1rem;align-items:start}@media (max-width: 1280px){.content-grid[_ngcontent-%COMP%]{grid-template-columns:minmax(0,1.35fr) minmax(260px,.85fr)}}@media (max-width: 1024px){.content-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}.main-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.section-card[_ngcontent-%COMP%]{background:#fff;border-radius:20px;box-shadow:0 4px 20px #00000014,0 0 0 1px #0000000a;border:1px solid rgba(226,232,240,.8);overflow:hidden;transition:all .4s cubic-bezier(.4,0,.2,1);position:relative}.section-card[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#10b981,#059669,#047857);opacity:0;transition:opacity .3s ease}.section-card[_ngcontent-%COMP%]:hover{box-shadow:0 12px 40px #00000026,0 0 0 1px #10b98133;transform:translateY(-4px);border-color:#10b9814d}.section-card[_ngcontent-%COMP%]:hover:before{opacity:1}.section-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:1.75rem 2.5rem;background:linear-gradient(135deg,#f8fafc,#f1f5f9,#e2e8f0);border-bottom:2px solid rgba(16,185,129,.1);position:relative}.section-header[_ngcontent-%COMP%]:after{content:"";position:absolute;bottom:0;left:0;width:60px;height:3px;background:linear-gradient(90deg,#10b981,#059669);border-radius:0 3px 3px 0}.section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:1.25rem;font-weight:600;color:#1e293b;display:flex;align-items:center;gap:.75rem}.section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#64748b;font-size:1.1rem}.section-header[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%]{background:none;border:none;color:#64748b;cursor:pointer;padding:.5rem;border-radius:8px;transition:all .2s}.section-header[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%]:hover{background:#f1f5f9;color:#475569}.section-header[_ngcontent-%COMP%] .add-doc-btn[_ngcontent-%COMP%]{background:#10b981;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s;display:flex;align-items:center;gap:.5rem}.section-header[_ngcontent-%COMP%] .add-doc-btn[_ngcontent-%COMP%]:hover{background:#059669;transform:translateY(-1px)}.section-content[_ngcontent-%COMP%]{padding:2.5rem}.form-footer[_ngcontent-%COMP%], .summary-actions[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:1rem;margin-top:1.5rem}.form-footer[_ngcontent-%COMP%] .cancel-btn[_ngcontent-%COMP%], .form-footer[_ngcontent-%COMP%] .back-btn[_ngcontent-%COMP%], .summary-actions[_ngcontent-%COMP%] .cancel-btn[_ngcontent-%COMP%], .summary-actions[_ngcontent-%COMP%] .back-btn[_ngcontent-%COMP%]{background:#ff9f43!important;border:1px solid rgb(255,159,67)!important;color:#0f172a!important;box-shadow:0 12px 24px #ff9f4359}.form-footer[_ngcontent-%COMP%] .cancel-btn[_ngcontent-%COMP%]:hover, .form-footer[_ngcontent-%COMP%] .back-btn[_ngcontent-%COMP%]:hover, .summary-actions[_ngcontent-%COMP%] .cancel-btn[_ngcontent-%COMP%]:hover, .summary-actions[_ngcontent-%COMP%] .back-btn[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 16px 32px #ff9f4373}.overview-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem;margin-bottom:2rem}.overview-card[_ngcontent-%COMP%]{background:#fff;border-radius:18px;padding:2rem;box-shadow:0 4px 20px #00000014,0 0 0 1px #0000000a;border:1px solid rgba(241,245,249,.8);transition:all .4s cubic-bezier(.4,0,.2,1);display:flex;align-items:center;gap:1rem;position:relative;overflow:hidden}.overview-card[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;width:5px;height:100%;background:linear-gradient(180deg,#10b981,#059669,#047857);transition:width .3s ease}.overview-card[_ngcontent-%COMP%]:hover{transform:translateY(-6px) scale(1.02);box-shadow:0 12px 40px #10b98133,0 0 0 1px #10b9814d;border-color:#10b98166}.overview-card[_ngcontent-%COMP%]:hover:before{width:6px}.overview-card.primary[_ngcontent-%COMP%], .overview-card.secondary[_ngcontent-%COMP%], .overview-card.success[_ngcontent-%COMP%], .overview-card.warning[_ngcontent-%COMP%]{border-left:none}.overview-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%]{flex:1}.overview-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{margin:0 0 .5rem;font-size:.875rem;font-weight:500;color:#64748b;text-transform:uppercase;letter-spacing:.05em}.overview-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .card-value[_ngcontent-%COMP%]{margin:0;font-size:1.125rem;font-weight:600;color:#1e293b}.info-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem}.info-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem;padding:1.25rem;background:linear-gradient(135deg,#f8fafc,#fff);border-radius:12px;border:1px solid rgba(226,232,240,.6);transition:all .3s ease;position:relative;overflow:hidden}.info-item[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;width:3px;height:100%;background:linear-gradient(180deg,#10b981,#059669);opacity:0;transition:opacity .3s ease}.info-item[_ngcontent-%COMP%]:hover{transform:translate(4px);box-shadow:0 4px 12px #10b98126;border-color:#10b9814d;background:linear-gradient(135deg,#f0fdf4,#fff)}.info-item[_ngcontent-%COMP%]:hover:before{opacity:1}.info-item[_ngcontent-%COMP%] .info-label[_ngcontent-%COMP%]{display:block;font-size:.875rem;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.08em;margin-bottom:.25rem}.info-item[_ngcontent-%COMP%] .info-value[_ngcontent-%COMP%]{font-size:1.1rem;color:#1e293b;font-weight:600;line-height:1.5}.sidebar[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;position:sticky;top:2rem}@media (max-width: 1024px){.sidebar[_ngcontent-%COMP%]{position:static}}.sidebar-card[_ngcontent-%COMP%]{background:#fff;border-radius:20px;box-shadow:0 4px 20px #00000014,0 0 0 1px #0000000a;border:1px solid rgba(241,245,249,.8);overflow:hidden;transition:all .3s ease;position:relative}.sidebar-card[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#10b981,#059669);opacity:0;transition:opacity .3s ease}.sidebar-card[_ngcontent-%COMP%]:hover{box-shadow:0 8px 30px #10b98126,0 0 0 1px #10b98133;transform:translateY(-2px)}.sidebar-card[_ngcontent-%COMP%]:hover:before{opacity:1}.sidebar-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]{padding:1.5rem 2rem;background:linear-gradient(135deg,#f8fafc,#f1f5f9,#e2e8f0);border-bottom:2px solid rgba(16,185,129,.1);position:relative}.sidebar-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]:after{content:"";position:absolute;bottom:0;left:0;width:50px;height:3px;background:linear-gradient(90deg,#10b981,#059669);border-radius:0 3px 3px 0}.sidebar-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:1.125rem;font-weight:600;color:#1e293b}.sidebar-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%]{padding:1.5rem}.contact-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.info-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;font-size:.95rem;color:#1e293b}.query-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.query-text[_ngcontent-%COMP%]{font-size:.95rem;color:#1e293b;line-height:1.6;margin:0}.query-meta[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;font-size:.875rem;color:#64748b}.query-date[_ngcontent-%COMP%]{font-weight:500}.query-status[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.status-label[_ngcontent-%COMP%]{font-weight:500}.query-actions[_ngcontent-%COMP%]{margin-top:1rem;padding-top:1rem;border-top:1px solid #e2e8f0}.query-hint[_ngcontent-%COMP%]{font-size:.875rem;color:#64748b;margin-bottom:.5rem}.approve-btn[_ngcontent-%COMP%]{width:100%;background:#10b981;color:#fff;border:none;padding:.75rem 1rem;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s}.approve-btn[_ngcontent-%COMP%]:hover{background:#059669;transform:translateY(-1px)}.action-buttons[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.action-buttons[_ngcontent-%COMP%] .action-btn[_ngcontent-%COMP%]{width:100%;padding:.875rem 1rem;border:none;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;gap:.5rem}.action-buttons[_ngcontent-%COMP%] .action-btn.primary[_ngcontent-%COMP%]{background:#3b82f6;color:#fff}.action-buttons[_ngcontent-%COMP%] .action-btn.primary[_ngcontent-%COMP%]:hover{background:#2563eb;transform:translateY(-1px)}.action-buttons[_ngcontent-%COMP%] .action-btn.success[_ngcontent-%COMP%]{background:#10b981;color:#fff}.action-buttons[_ngcontent-%COMP%] .action-btn.success[_ngcontent-%COMP%]:hover{background:#059669;transform:translateY(-1px)}.action-buttons[_ngcontent-%COMP%] .action-btn.info[_ngcontent-%COMP%]{background:#06b6d4;color:#fff}.action-buttons[_ngcontent-%COMP%] .action-btn.info[_ngcontent-%COMP%]:hover{background:#0891b2;transform:translateY(-1px)}.action-buttons[_ngcontent-%COMP%] .action-btn.warning[_ngcontent-%COMP%]{background:#f59e0b;color:#fff}.action-buttons[_ngcontent-%COMP%] .action-btn.warning[_ngcontent-%COMP%]:hover{background:#d97706;transform:translateY(-1px)}.action-buttons[_ngcontent-%COMP%] .action-btn.danger[_ngcontent-%COMP%]{background:#ef4444;color:#fff}.action-buttons[_ngcontent-%COMP%] .action-btn.danger[_ngcontent-%COMP%]:hover{background:#dc2626;transform:translateY(-1px)}.entries-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem}.entry-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.entry-label[_ngcontent-%COMP%]{font-size:.875rem;font-weight:500;color:#64748b;text-transform:uppercase;letter-spacing:.05em}.entry-value[_ngcontent-%COMP%]{font-size:1rem;color:#1e293b;font-weight:500}.documents-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem}.document-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;padding:1.5rem;background:linear-gradient(135deg,#f8fafc,#fff);border-radius:16px;border:1px solid rgba(226,232,240,.6);transition:all .3s ease;position:relative;overflow:hidden}.document-item[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;width:3px;height:100%;background:linear-gradient(180deg,#10b981,#059669);opacity:0;transition:opacity .3s ease}.document-item[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 8px 20px #10b98126;border-color:#10b9814d;background:linear-gradient(135deg,#f0fdf4,#fff)}.document-item[_ngcontent-%COMP%]:hover:before{opacity:1}.doc-label[_ngcontent-%COMP%]{font-size:.875rem;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.08em}.doc-content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:150px;background:linear-gradient(135deg,#fff,#f8fafc);border-radius:14px;border:2px dashed rgba(226,232,240,.8);transition:all .3s ease}.document-item[_ngcontent-%COMP%]:hover .doc-content[_ngcontent-%COMP%]{border-color:#10b9814d;background:linear-gradient(135deg,#f0fdf4,#fff)}.no-doc[_ngcontent-%COMP%]{color:#94a3b8;font-size:.875rem;font-style:italic}.doc-image[_ngcontent-%COMP%]{max-width:100%;max-height:200px;border-radius:8px;object-fit:contain}.court-name[_ngcontent-%COMP%]{font-size:1rem;color:#1e293b;font-weight:500}.payment-gateway-container[_ngcontent-%COMP%]{padding:2rem;background:transparent;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.payment-methods-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:1.5rem;max-width:1200px;margin:0 auto}.payment-method-card[_ngcontent-%COMP%]{background:#fff;border-radius:24px;padding:2rem;box-shadow:0 10px 30px #0000001a,0 0 0 1px #0000000d;border:1px solid rgba(241,245,249,.8);transition:all .4s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.payment-method-card[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--card-gradient-start),var(--card-gradient-end))}.payment-method-card[_ngcontent-%COMP%]:hover{transform:translateY(-6px) scale(1.02);box-shadow:0 25px 50px #10b98140,0 0 0 1px #10b9814d;border-color:#10b98166}.payment-method-card.paystack-card[_ngcontent-%COMP%], .payment-method-card.remita-card[_ngcontent-%COMP%], .payment-method-card.quickteller-card[_ngcontent-%COMP%], .payment-method-card.cash-card[_ngcontent-%COMP%], .payment-method-card.paydirect-card[_ngcontent-%COMP%], .payment-method-card.zenith-card[_ngcontent-%COMP%]{--card-gradient-start: #10b981;--card-gradient-end: #059669}.payment-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;margin-bottom:1.5rem}.payment-card-header[_ngcontent-%COMP%] .payment-icon[_ngcontent-%COMP%]{width:60px;height:60px;border-radius:16px;background:#f8fafc;display:flex;align-items:center;justify-content:center;border:2px solid #e5e7eb;transition:all .3s ease}.payment-card-header[_ngcontent-%COMP%] .payment-icon[_ngcontent-%COMP%] .payment-logo[_ngcontent-%COMP%]{width:40px;height:40px;object-fit:contain}.payment-card-header[_ngcontent-%COMP%] .payment-info[_ngcontent-%COMP%]{flex:1}.payment-card-header[_ngcontent-%COMP%] .payment-info[_ngcontent-%COMP%] .payment-title[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:600;margin:0 0 .25rem;color:#1f2937}.payment-card-header[_ngcontent-%COMP%] .payment-info[_ngcontent-%COMP%] .payment-description[_ngcontent-%COMP%]{font-size:.875rem;color:#6b7280;margin:0;line-height:1.4}.payment-card-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.payment-card-content[_ngcontent-%COMP%] .payment-amount[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:1rem;background:#f8fafc;border-radius:12px;border:1px solid #e5e7eb}.payment-card-content[_ngcontent-%COMP%] .payment-amount[_ngcontent-%COMP%] .amount-label[_ngcontent-%COMP%]{font-size:.875rem;color:#6b7280;font-weight:500}.payment-card-content[_ngcontent-%COMP%] .payment-amount[_ngcontent-%COMP%] .amount-value[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:700;color:#1f2937}.modern-paystack-btn-custom[_ngcontent-%COMP%], .modern-remita-btn-custom[_ngcontent-%COMP%], .modern-quickteller-btn[_ngcontent-%COMP%], .modern-cash-btn[_ngcontent-%COMP%], .modern-paydirect-btn[_ngcontent-%COMP%], .modern-zenith-btn[_ngcontent-%COMP%]{width:100%;padding:1.25rem 1.75rem;border:none;border-radius:16px;font-weight:700;font-size:1.1rem;cursor:pointer;transition:all .4s cubic-bezier(.4,0,.2,1);display:flex;align-items:center;justify-content:center;gap:.875rem;position:relative;overflow:hidden;text-transform:uppercase;letter-spacing:.5px;min-height:56px;background:linear-gradient(135deg,#10b981,#059669,#047857);color:#fff;box-shadow:0 6px 20px #10b9814d}.modern-paystack-btn-custom[_ngcontent-%COMP%]:before, .modern-remita-btn-custom[_ngcontent-%COMP%]:before, .modern-quickteller-btn[_ngcontent-%COMP%]:before, .modern-cash-btn[_ngcontent-%COMP%]:before, .modern-paydirect-btn[_ngcontent-%COMP%]:before, .modern-zenith-btn[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent);transition:left .6s cubic-bezier(.4,0,.2,1)}.modern-paystack-btn-custom[_ngcontent-%COMP%]:after, .modern-remita-btn-custom[_ngcontent-%COMP%]:after, .modern-quickteller-btn[_ngcontent-%COMP%]:after, .modern-cash-btn[_ngcontent-%COMP%]:after, .modern-paydirect-btn[_ngcontent-%COMP%]:after, .modern-zenith-btn[_ngcontent-%COMP%]:after{content:"";position:absolute;top:50%;left:50%;width:0;height:0;background:#ffffff26;border-radius:50%;transform:translate(-50%,-50%);transition:all .6s cubic-bezier(.4,0,.2,1)}.modern-paystack-btn-custom[_ngcontent-%COMP%]:hover:before, .modern-remita-btn-custom[_ngcontent-%COMP%]:hover:before, .modern-quickteller-btn[_ngcontent-%COMP%]:hover:before, .modern-cash-btn[_ngcontent-%COMP%]:hover:before, .modern-paydirect-btn[_ngcontent-%COMP%]:hover:before, .modern-zenith-btn[_ngcontent-%COMP%]:hover:before{left:100%}.modern-paystack-btn-custom[_ngcontent-%COMP%]:hover:after, .modern-remita-btn-custom[_ngcontent-%COMP%]:hover:after, .modern-quickteller-btn[_ngcontent-%COMP%]:hover:after, .modern-cash-btn[_ngcontent-%COMP%]:hover:after, .modern-paydirect-btn[_ngcontent-%COMP%]:hover:after, .modern-zenith-btn[_ngcontent-%COMP%]:hover:after{width:300px;height:300px}.modern-paystack-btn-custom[_ngcontent-%COMP%]:hover, .modern-remita-btn-custom[_ngcontent-%COMP%]:hover, .modern-quickteller-btn[_ngcontent-%COMP%]:hover, .modern-cash-btn[_ngcontent-%COMP%]:hover, .modern-paydirect-btn[_ngcontent-%COMP%]:hover, .modern-zenith-btn[_ngcontent-%COMP%]:hover{transform:translateY(-3px) scale(1.02);box-shadow:0 12px 35px #10b98180;background:linear-gradient(135deg,#059669,#047857,#065f46)}.modern-paystack-btn-custom[_ngcontent-%COMP%]:active, .modern-remita-btn-custom[_ngcontent-%COMP%]:active, .modern-quickteller-btn[_ngcontent-%COMP%]:active, .modern-cash-btn[_ngcontent-%COMP%]:active, .modern-paydirect-btn[_ngcontent-%COMP%]:active, .modern-zenith-btn[_ngcontent-%COMP%]:active{transform:translateY(-1px) scale(.98);transition:all .1s ease}.modern-paystack-btn-custom[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .modern-remita-btn-custom[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .modern-quickteller-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .modern-cash-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .modern-paydirect-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .modern-zenith-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.25rem;transition:all .3s cubic-bezier(.4,0,.2,1);z-index:1;position:relative}.modern-paystack-btn-custom[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .modern-remita-btn-custom[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .modern-quickteller-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .modern-cash-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .modern-paydirect-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .modern-zenith-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{z-index:1;position:relative}.modern-paystack-btn-custom[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%], .modern-remita-btn-custom[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%], .modern-quickteller-btn[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%], .modern-cash-btn[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%], .modern-paydirect-btn[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%], .modern-zenith-btn[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%]{transform:scale(1.15) rotate(5deg)}.view-rrr-btn[_ngcontent-%COMP%]{width:100%;margin-top:.75rem;padding:.875rem 1.25rem;background:linear-gradient(135deg,#10b981,#059669,#047857);border:none;border-radius:12px;color:#fff;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);display:flex;align-items:center;justify-content:center;gap:.625rem;position:relative;overflow:hidden;box-shadow:0 4px 15px #10b98133}.view-rrr-btn[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .5s}.view-rrr-btn[_ngcontent-%COMP%]:hover{background:linear-gradient(135deg,#059669,#047857,#065f46);transform:translateY(-2px);box-shadow:0 8px 25px #10b98166}.view-rrr-btn[_ngcontent-%COMP%]:hover:before{left:100%}.view-rrr-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem;transition:transform .3s ease;color:#fff}.view-rrr-btn[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%]{transform:scale(1.1)}.hidden-paystack-wrapper[_ngcontent-%COMP%], .hidden-remita-wrapper[_ngcontent-%COMP%], .hidden-quickteller-wrapper[_ngcontent-%COMP%]{position:absolute;top:-9999px;left:-9999px;opacity:0;pointer-events:none;z-index:-1;width:1px;height:1px;overflow:hidden}.hidden-paystack-btn[_ngcontent-%COMP%], .hidden-remita-btn[_ngcontent-%COMP%], .hidden-quickteller-btn[_ngcontent-%COMP%]{display:none}.cash-modal[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.25rem}.modal-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.35rem}.modal-field[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:.85rem;font-weight:600;color:#22c55e;letter-spacing:.04em;text-transform:uppercase}.modal-field[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;font-size:1.2rem;font-weight:600;color:#0f172a}.alert-body[_ngcontent-%COMP%]{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:12px;padding:1.25rem;color:#0f172a}.payment-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%]{padding-bottom:2rem}.coming-soon-note[_ngcontent-%COMP%]{text-align:center;padding:1rem;color:#6b7280;font-style:italic}.modal-content[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:2rem}.id-image[_ngcontent-%COMP%]{max-width:100%;max-height:500px;border-radius:8px;object-fit:contain}@media (max-width: 768px){.application-detail-container[_ngcontent-%COMP%]{padding:1rem}.payment-methods-grid[_ngcontent-%COMP%]{grid-template-columns:1fr;gap:1rem}.payment-method-card[_ngcontent-%COMP%]{padding:1.25rem}.application-header[_ngcontent-%COMP%]{flex-direction:column;gap:1rem;text-align:center;padding:1.5rem}.header-content[_ngcontent-%COMP%] h1.application-title[_ngcontent-%COMP%]{font-size:2rem}.header-actions[_ngcontent-%COMP%]{flex-direction:column;align-items:center;gap:.75rem}.status-badge[_ngcontent-%COMP%]{width:100%;justify-content:center}.content-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.sidebar[_ngcontent-%COMP%]{position:static}.sidebar-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]{text-align:center}.action-buttons[_ngcontent-%COMP%]{flex-direction:row;flex-wrap:wrap;justify-content:center;gap:.75rem}.action-btn[_ngcontent-%COMP%]{width:calc(50% - .375rem)}.overview-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.overview-card[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:.75rem}.info-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.payment-gateway-container[_ngcontent-%COMP%]{padding:0}.payment-methods-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.payment-method-card[_ngcontent-%COMP%]{flex-direction:row;align-items:center;gap:1rem;padding:1rem}.payment-method-card[_ngcontent-%COMP%] .payment-icon[_ngcontent-%COMP%]{width:4rem;height:4rem}.payment-method-card[_ngcontent-%COMP%] .payment-info[_ngcontent-%COMP%] .payment-title[_ngcontent-%COMP%]{font-size:1rem}.payment-method-card[_ngcontent-%COMP%] .payment-info[_ngcontent-%COMP%] .payment-description[_ngcontent-%COMP%]{font-size:.8rem}.payment-method-card[_ngcontent-%COMP%] .payment-card-content[_ngcontent-%COMP%]{flex-direction:row;align-items:center;gap:1rem}.payment-method-card[_ngcontent-%COMP%] .payment-amount[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:.5rem}.payment-method-card[_ngcontent-%COMP%] .modern-paystack-btn-custom[_ngcontent-%COMP%], .payment-method-card[_ngcontent-%COMP%] .modern-remita-btn-custom[_ngcontent-%COMP%], .payment-method-card[_ngcontent-%COMP%] .modern-quickteller-btn[_ngcontent-%COMP%], .payment-method-card[_ngcontent-%COMP%] .modern-zenith-btn[_ngcontent-%COMP%], .payment-method-card[_ngcontent-%COMP%] .modern-cash-btn[_ngcontent-%COMP%], .payment-method-card[_ngcontent-%COMP%] .modern-paydirect-btn[_ngcontent-%COMP%], .payment-method-card[_ngcontent-%COMP%] .view-rrr-btn[_ngcontent-%COMP%]{width:100%;justify-content:center}}']})}}return t})();var Bre=["videoElement"];function zre(t,o){t&1&&(c(0,"div",18),v(1,"i",19),c(2,"span"),g(3,"Incomplete Form"),d()())}function Hre(t,o){if(t&1){let e=D();c(0,"div",26)(1,"div",27)(2,"h3"),v(3,"i",28),g(4," Workspace Controls"),d(),c(5,"p"),g(6,"Use the quick controls to manage deponent profiles across this bulk submission."),d()(),c(7,"div",29)(8,"div",30)(9,"div",31),I("click",function(){C(e);let i=f(2);return y(i.addDeponent())}),c(10,"div",32),v(11,"i",33),d(),c(12,"div",34),g(13,"Add New Deponent"),d()(),c(14,"div",31),I("click",function(){C(e);let i=f(2);return y(i.applicationsArray.controls.length>0&&i.removeDeponent(i.applicationsArray.controls.length-1))}),c(15,"div",35),v(16,"i",36),d(),c(17,"div",34),g(18,"Remove Last Deponent"),d()()()()()}if(t&2){let e=f(2);p(14),$e("disabled",e.applicationsArray.controls.length===0)("warning",e.applicationsArray.controls.length>0),p(),$e("warning-icon",e.applicationsArray.controls.length>0)("muted",e.applicationsArray.controls.length===0)}}function jre(t,o){if(t&1){let e=D();c(0,"button",84),I("click",function(i){return C(e),f(5).openCamera(),y(i.preventDefault())}),d()}}function Ure(t,o){if(t&1){let e=D();c(0,"div",73)(1,"div",74),v(2,"i",80),c(3,"h4"),g(4,"Passport Photo"),d(),c(5,"small"),g(6,"JPG, GIF or PNG. Max 800kB"),d()(),c(7,"div",75),v(8,"img",81),c(9,"div",77)(10,"button",78),I("click",function(){C(e);let i=de(13);return y(i.click())}),d(),_(11,jre,1,0,"button",82),d(),c(12,"input",83,1),I("change",function(i){C(e);let r=f(2).index,a=f(2);return y(a.handleFileInputIPassportImage(i,r))}),d()()()}if(t&2){let e=f(2).index,n=f(2);p(8),m("src",n.uploadedPassportImage[e]||n.noImage,Ae),p(3),m("ngIf",!n.cameraEnabled)}}function qre(t,o){if(t&1){let e=D();c(0,"div",73)(1,"div",74),v(2,"i",85),c(3,"h4"),g(4,"Digital Signature"),d(),c(5,"small"),g(6,"JPG, GIF or PNG. Max 800kB"),d()(),c(7,"div",75),v(8,"img",86),c(9,"div",77)(10,"button",78),I("click",function(){C(e);let i=de(12);return y(i.click())}),d()(),c(11,"input",87,2),I("change",function(i){C(e);let r=f(2).index,a=f(2);return y(a.handleFileInputSignatureImage(i,r))}),d()()()}if(t&2){let e=f(2).index,n=f(2);p(8),m("src",n.uploadedSignatureImage[e]||n.noImage,Ae)}}function Qre(t,o){if(t&1){let e=D();c(0,"div",70)(1,"div",71),_(2,Ure,14,2,"div",72),c(3,"div",73)(4,"div",74),v(5,"i",38),c(6,"h4"),g(7,"Identity Card"),d(),c(8,"small"),g(9,"JPG, GIF or PNG. Max 800kB"),d()(),c(10,"div",75),v(11,"img",76),c(12,"div",77)(13,"button",78),I("click",function(){C(e);let i=de(15);return y(i.click())}),d()(),c(14,"input",79,0),I("change",function(i){C(e);let r=f().index,a=f(2);return y(a.handleFileInputIDCard(i,r))}),d()()(),_(16,qre,13,1,"div",72),d()()}if(t&2){let e=f().index,n=f(2);p(2),m("ngIf",n.affidavitAppSetting==null?null:n.affidavitAppSetting.allow_passport_photo),p(9),m("src",n.uploadedIDCard[e]||n.noImage,Ae),p(5),m("ngIf",n.affidavitAppSetting==null?null:n.affidavitAppSetting.allow_signature)}}function Gre(t,o){if(t&1){let e=D();c(0,"button",98),I("click",function(i){C(e);let r=f(4);return r.cameraEnabled?r.startCamera():r.startCamera1(),y(i.preventDefault())}),v(1,"i",99),g(2," Start Camera "),d()}}function Wre(t,o){if(t&1){let e=D();c(0,"button",100),I("click",function(){C(e);let i=f(2).index,r=f(2);return y(r.cameraEnabled?r.captureImage(i):r.captureImage1(i))}),v(1,"i",101),g(2," Capture "),d()}}function Kre(t,o){if(t&1){let e=D();c(0,"button",102),I("click",function(){C(e);let i=f(4);return y(i.switchCamera())}),v(1,"i",103),g(2," Switch Camera "),d()}}function Yre(t,o){if(t&1){let e=D();c(0,"div",88)(1,"div",89)(2,"div",90)(3,"h4"),g(4,"Camera Capture"),d(),c(5,"button",91),I("click",function(){C(e);let i=f(3);return y(i.stopCamera())}),v(6,"i",92),d()(),v(7,"video",93,3),c(9,"div",94),_(10,Gre,3,0,"button",95)(11,Wre,3,0,"button",96)(12,Kre,3,0,"button",97),d()()()}if(t&2){let e,n=f(3);p(10),m("ngIf",!n.cameraStarted),p(),m("ngIf",n.cameraStarted),p(),m("ngIf",n.cameraStarted&&((e=n.cameraService.videoInputs.length)!==null&&e!==void 0?e:0)>1)}}function Zre(t,o){t&1&&(c(0,"div",104),g(1," Deponent name is required "),d())}function Jre(t,o){t&1&&(c(0,"div",104),g(1," Deponent NIN is required. "),d())}function Xre(t,o){t&1&&(c(0,"div",104),g(1," NIN must be a valid number. "),d())}function $re(t,o){t&1&&(c(0,"div",104),g(1," NIN must be 11 digits "),d())}function eae(t,o){t&1&&(c(0,"div",104),g(1," Gender is required "),d())}function tae(t,o){t&1&&(c(0,"div",104),g(1," Town is required "),d())}function nae(t,o){t&1&&(c(0,"div",104),g(1," Country of origin is required "),d())}function iae(t,o){t&1&&(c(0,"div",104),g(1," State of origin is required "),d())}function oae(t,o){t&1&&(c(0,"div",104),g(1," Resident town is required "),d())}function rae(t,o){t&1&&(c(0,"div",104),g(1," Occupation is required "),d())}function aae(t,o){t&1&&(c(0,"div",104),g(1," Religion is required "),d())}function sae(t,o){if(t&1&&(c(0,"div",47)(1,"label"),g(2),c(3,"span",49),g(4,"*"),d()(),v(5,"input",109),d()),t&2){let e,n=f().index,i=f(4);p(2),se("",(e=i.getFormEntriesRecordByIndex(n))==null?null:e.label," "),p(3),m("id",n)("type",i.getFormEntriesRecordByIndex(n).input_type||"text")("formControlName",n)}}function lae(t,o){if(t&1&&(B(0),_(1,sae,6,4,"div",108),z()),t&2){let e,n=o.index,i=f(4);p(),m("ngIf",((e=i.getFormEntriesRecordByIndex(n))==null?null:e.is_calculated)==!1)}}function cae(t,o){if(t&1&&(c(0,"div",105)(1,"div",27)(2,"h3"),v(3,"i",106),g(4," Affidavit Information"),d(),c(5,"p"),g(6,"Provide affidavit-specific details required for this deponent."),d()(),c(7,"div",43)(8,"div",107),_(9,lae,2,1,"ng-container",24),d()()()),t&2){let e=f(3);p(9),m("ngForOf",e.formEntries.controls)}}function dae(t,o){if(t&1){let e=D();B(0),c(1,"div",113)(2,"div",114)(3,"div",115)(4,"span"),g(5,"Clause"),d(),c(6,"span",116),g(7),d()(),c(8,"div",117)(9,"button",118),I("click",function(){let i=C(e).index,r=f(4);return y(r.onAddClause(i))}),d(),c(10,"button",119),I("click",function(){let i=C(e).index,r=f(4);return y(r.onRemoveClause(i))}),d()()(),v(11,"textarea",120),d(),z()}if(t&2){let e=o.index;p(7),k(e+1),p(4),m("formControlName",e)}}function pae(t,o){if(t&1&&(c(0,"div",110)(1,"div",27)(2,"h3"),v(3,"i",111),g(4," Clauses Information"),d(),c(5,"p"),g(6,"Define the specific clauses and content of this affidavit submission."),d()(),c(7,"div",43)(8,"div",112),_(9,dae,12,2,"ng-container",24),d()()()),t&2){let e=f(3);p(9),m("ngForOf",e.clauseEntriesControl.controls)}}function uae(t,o){if(t&1){let e=D();B(0),c(1,"div",37)(2,"div",27)(3,"h3"),v(4,"i",38),g(5),c(6,"span",39),g(7,"Active Form"),d()(),c(8,"div",40)(9,"button",41),I("click",function(){C(e);let i=f(2);return y(i.addDeponent())}),v(10,"i",33),d(),c(11,"button",42),I("click",function(){let i=C(e).index,r=f(2);return y(r.removeDeponent(i))}),v(12,"i",36),d()()(),c(13,"div",43),_(14,Qre,17,3,"div",44)(15,Yre,13,3,"div",45),c(16,"div",46)(17,"div",47)(18,"label",48),g(19,"Deponent Name "),c(20,"span",49),g(21,"*"),d()(),v(22,"input",50),_(23,Zre,2,0,"div",51),d(),c(24,"div",47)(25,"label",52),g(26,"Deponent NIN "),c(27,"span",49),g(28,"*"),d()(),c(29,"input",53),I("input",function(i){C(e);let r=f(2);return y(r.onInput(i))}),d(),_(30,Jre,2,0,"div",51)(31,Xre,2,0,"div",51)(32,$re,2,0,"div",51),d(),c(33,"div",47)(34,"label",54),g(35,"Gender "),c(36,"span",49),g(37,"*"),d()(),c(38,"p-dropdown",55),I("onChange",function(i){C(e);let r=f(2);return y(r.closeDropdown(i))}),d(),_(39,eae,2,0,"div",51),d(),c(40,"div",47)(41,"label",56),g(42,"Native Town "),c(43,"span",49),g(44,"*"),d()(),v(45,"input",57),_(46,tae,2,0,"div",51),d(),c(47,"div",47)(48,"label",58),g(49,"Country of Origin "),c(50,"span",49),g(51,"*"),d()(),c(52,"p-dropdown",59),I("onChange",function(i){C(e);let r=f(2);return y(r.closeDropdown(i))}),d(),_(53,nae,2,0,"div",51),d(),c(54,"div",47)(55,"label",60),g(56,"State of Origin "),c(57,"span",49),g(58,"*"),d()(),c(59,"p-dropdown",61),I("onChange",function(i){C(e);let r=f(2);return y(r.closeDropdown(i))}),d(),_(60,iae,2,0,"div",51),d(),c(61,"div",47)(62,"label",62),g(63,"Place of Residence "),c(64,"span",49),g(65,"*"),d()(),v(66,"input",63),_(67,oae,2,0,"div",51),d(),c(68,"div",47)(69,"label",64),g(70,"Occupation "),c(71,"span",49),g(72,"*"),d()(),v(73,"input",65),_(74,rae,2,0,"div",51),d(),c(75,"div",47)(76,"label",66),g(77,"Religion "),c(78,"span",49),g(79,"*"),d()(),c(80,"p-dropdown",67),I("onChange",function(i){C(e);let r=f(2);return y(r.closeDropdown(i))}),d(),_(81,aae,2,0,"div",51),d()()(),_(82,cae,10,1,"div",68)(83,pae,10,1,"div",69),d(),z()}if(t&2){let e=o.index,n=f(2);p(),m("formGroupName",e),p(4),se(" Deponent ",e+1," "),p(9),m("ngIf",(n.affidavitAppSetting==null?null:n.affidavitAppSetting.allow_passport_photo)||(n.affidavitAppSetting==null?null:n.affidavitAppSetting.allow_signature)),p(),m("ngIf",n.cameraEnabled||n.cameraEnabled1),p(8),m("ngIf",(n.applicationFormControl.deponent_name.errors==null?null:n.applicationFormControl.deponent_name.errors.required)&&n.applicationFormControl.deponent_name.touched),p(7),m("ngIf",(n.applicationFormControl.deponent_nin.errors==null?null:n.applicationFormControl.deponent_nin.errors.required)&&n.applicationFormControl.deponent_nin.touched),p(),m("ngIf",(n.applicationFormControl.deponent_nin.errors==null?null:n.applicationFormControl.deponent_nin.errors.minlength)&&n.applicationFormControl.deponent_nin.touched),p(),m("ngIf",!n.isNINValidated&&n.applicationFormControl.deponent_nin.touched),p(6),m("options",n.genders)("showClear",!0),p(),m("ngIf",(n.applicationFormControl.gender.errors==null?null:n.applicationFormControl.gender.errors.required)&&n.applicationFormControl.gender.touched),p(7),m("ngIf",(n.applicationFormControl.town_native.errors==null?null:n.applicationFormControl.town_native.errors.required)&&n.applicationFormControl.town_native.touched),p(6),m("options",n.geoCountry)("showClear",!0)("filter",!0),p(),m("ngIf",(n.applicationFormControl.originCountry.errors==null?null:n.applicationFormControl.originCountry.errors.required)&&n.applicationFormControl.originCountry.touched),p(6),m("options",n.statesByDeponent[e])("showClear",!0)("filter",!0),p(),m("ngIf",(n.applicationFormControl.originState.errors==null?null:n.applicationFormControl.originState.errors.required)&&n.applicationFormControl.originState.touched),p(7),m("ngIf",(n.applicationFormControl.town_resident.errors==null?null:n.applicationFormControl.town_resident.errors.required)&&n.applicationFormControl.town_resident.touched),p(7),m("ngIf",(n.applicationFormControl.occupation.errors==null?null:n.applicationFormControl.occupation.errors.required)&&n.applicationFormControl.occupation.touched),p(6),m("options",n.religions)("showClear",!0)("filter",!0),p(),m("ngIf",(n.applicationFormControl.religion.errors==null?null:n.applicationFormControl.religion.errors.required)&&n.applicationFormControl.religion.touched),p(),m("ngIf",n.showAffidavitInformationForm),p(),m("ngIf",n.canShowClausesForm&&n.clauseEntriesControl.controls.length>0)}}function mae(t,o){t&1&&(c(0,"div",104),g(1," Applicant email is required "),d())}function fae(t,o){t&1&&(c(0,"div",104),g(1," No spaces are allowed in the email "),d())}function hae(t,o){t&1&&(c(0,"div",104),g(1," Applicant phone number is required "),d())}function gae(t,o){t&1&&(c(0,"div",104),g(1," Preferred court is required "),d())}function Aae(t,o){if(t&1){let e=D();c(0,"div",121)(1,"div",27)(2,"h3"),v(3,"i",122),g(4," Optional Information"),d(),c(5,"p"),g(6,"Provide contact details and preferred court for this bulk submission."),d()(),c(7,"div",43)(8,"div",46)(9,"div",47)(10,"label",123),g(11,"Applicant Email "),c(12,"span",49),g(13,"*"),d()(),v(14,"input",124),_(15,mae,2,0,"div",51)(16,fae,2,0,"div",51),d(),c(17,"div",47)(18,"label",125),g(19,"Applicant Phone Number "),c(20,"span",49),g(21,"*"),d()(),v(22,"input",126),_(23,hae,2,0,"div",51),d(),c(24,"div",47)(25,"label",127),g(26,"Preferred Court "),c(27,"span",49),g(28,"*"),d()(),c(29,"p-dropdown",128),I("onChange",function(i){C(e);let r=f(2);return y(r.closeDropdown(i))}),d(),_(30,gae,2,0,"div",51),d()(),c(31,"div",129)(32,"div",130)(33,"button",131),I("click",function(){C(e);let i=f(2);return y(i.goBack())}),d(),c(34,"button",132),I("click",function(){C(e);let i=f(2);return y(i.processForm())}),d()()()()()}if(t&2){let e=f(2);p(15),m("ngIf",(e.rootForm.controls.applicant_email.errors==null?null:e.rootForm.controls.applicant_email.errors.required)&&e.rootForm.controls.applicant_email.touched),p(),m("ngIf",(e.rootForm.controls.applicant_email.errors==null?null:e.rootForm.controls.applicant_email.errors.pattern)&&e.rootForm.controls.applicant_email.touched),p(7),m("ngIf",(e.rootForm.controls.applicant_phone.errors==null?null:e.rootForm.controls.applicant_phone.errors.required)&&e.rootForm.controls.applicant_phone.touched),p(6),m("options",e.courts)("showClear",!0),p(),m("ngIf",(e.rootForm.controls.court.errors==null?null:e.rootForm.controls.court.errors.required)&&e.rootForm.controls.court.touched),p(4),m("disabled",e.rootForm.invalid)}}function _ae(t,o){if(t&1&&(c(0,"div",20)(1,"form",21),_(2,Hre,19,8,"div",22),c(3,"div",23),_(4,uae,84,28,"ng-container",24),d(),_(5,Aae,35,7,"div",25),d()()),t&2){let e=f();p(),m("formGroup",e.rootForm),p(),m("ngIf",e.applicationsArray.controls.length>0),p(2),m("ngForOf",e.applicationsArray.controls),p(),m("ngIf",e.applicationsArray.controls.length>0)}}function vae(t,o){if(t&1&&(c(0,"div",138)(1,"div",139),v(2,"i",153),g(3),d(),c(4,"span",141),g(5),d()()),t&2){let e=f().$implicit;p(3),se(" ",e.label,""),p(2),k(e.provided_value)}}function bae(t,o){if(t&1&&(B(0),_(1,vae,6,2,"div",162),z()),t&2){let e=o.$implicit;p(),m("ngIf",e.is_calculated==!1)}}function Cae(t,o){if(t&1&&(c(0,"div",155)(1,"h4",156),g(2,"Affidavit Information"),d(),c(3,"div",137),_(4,bae,2,1,"ng-container",24),d()()),t&2){let e=f().$implicit;p(4),m("ngForOf",e.formEntries)}}function yae(t,o){if(t&1&&(c(0,"div",163),v(1,"img",164),d()),t&2){let e=f().index,n=f(2);p(),m("src",n.uploadedPassportImage[e],Ae)}}function xae(t,o){t&1&&(c(0,"span",165),g(1,"Not Provided"),d())}function wae(t,o){if(t&1&&(c(0,"div",163),v(1,"img",166),d()),t&2){let e=f().index,n=f(2);p(),m("src",n.uploadedSignatureImage[e],Ae)}}function Iae(t,o){t&1&&(c(0,"span",165),g(1,"Not Provided"),d())}function Mae(t,o){if(t&1&&(c(0,"div",163),v(1,"img",167),d()),t&2){let e=f().index,n=f(2);p(),m("src",n.uploadedIDCard[e],Ae)}}function Sae(t,o){t&1&&(c(0,"span",165),g(1,"Not Provided"),d())}function Eae(t,o){if(t&1&&(c(0,"div",135)(1,"div",27)(2,"h3"),v(3,"i",147),g(4),d(),c(5,"p"),g(6,"Verify the captured personal details and uploads before submission."),d()(),c(7,"div",136)(8,"div",137)(9,"div",138)(10,"div",139),v(11,"i",147),g(12," Deponent Name:"),d(),c(13,"span",141),g(14),d()(),c(15,"div",138)(16,"div",139),v(17,"i",148),g(18," Deponent NIN:"),d(),c(19,"span",141),g(20),d()(),c(21,"div",138)(22,"div",139),v(23,"i",143),g(24," Native Town:"),d(),c(25,"span",141),g(26),d()(),c(27,"div",138)(28,"div",139),v(29,"i",149),g(30," Country of Origin:"),d(),c(31,"span",141),g(32),d()(),c(33,"div",138)(34,"div",139),v(35,"i",150),g(36," State of Origin:"),d(),c(37,"span",141),g(38),d()(),c(39,"div",138)(40,"div",139),v(41,"i",151),g(42," Place of Residence:"),d(),c(43,"span",141),g(44),d()(),c(45,"div",138)(46,"div",139),v(47,"i",152),g(48," Occupation:"),d(),c(49,"span",141),g(50),d()(),c(51,"div",138)(52,"div",139),v(53,"i",153),g(54," Gender:"),d(),c(55,"span",141),g(56),d()(),c(57,"div",138)(58,"div",139),v(59,"i",153),g(60," Religion:"),d(),c(61,"span",141),g(62),d()()(),_(63,Cae,5,1,"div",154),c(64,"div",155)(65,"h4",156),g(66,"Supporting Documents"),d(),c(67,"div",157)(68,"div",158)(69,"div",159),v(70,"i",160),g(71," Passport Photo"),d(),_(72,yae,2,1,"div",161)(73,xae,2,0,"ng-template",null,4,je),d(),c(75,"div",158)(76,"div",159),v(77,"i",160),g(78," Signature"),d(),_(79,wae,2,1,"div",161)(80,Iae,2,0,"ng-template",null,5,je),d(),c(82,"div",158)(83,"div",159),v(84,"i",160),g(85," Identity Card"),d(),_(86,Mae,2,1,"div",161)(87,Sae,2,0,"ng-template",null,6,je),d()()()()()),t&2){let e=o.$implicit,n=o.index,i=de(74),r=de(81),a=de(88),s=f(2);p(4),se(" Deponent ",n+1," Review"),p(10),k(e.deponent_name),p(6),k(e.deponent_nin),p(6),k(e.town_native),p(6),k(s.selectedCountry[n]),p(6),k(s.selectedState[n]),p(6),k(e.town_resident),p(6),k(e.occupation),p(6),k(e.gender),p(6),k(e.religion),p(),m("ngIf",s.shouldDisplayAffidavitSection),p(9),m("ngIf",e.passport_photo_file)("ngIfElse",i),p(7),m("ngIf",e.signature_file)("ngIfElse",r),p(7),m("ngIf",e.identity_photo_file)("ngIfElse",a)}}function Oae(t,o){if(t&1){let e=D();c(0,"div",133),_(1,Eae,89,17,"div",134),c(2,"div",135)(3,"div",27)(4,"h3"),v(5,"i",14),g(6," Client Information"),d(),c(7,"p"),g(8,"Confirm the overall contact information for this bulk submission."),d()(),c(9,"div",136)(10,"div",137)(11,"div",138)(12,"div",139),v(13,"i",140),g(14," Applicant Email:"),d(),c(15,"span",141),g(16),d()(),c(17,"div",138)(18,"div",139),v(19,"i",142),g(20," Applicant Phone:"),d(),c(21,"span",141),g(22),d()(),c(23,"div",138)(24,"div",139),v(25,"i",143),g(26," Preferred Court:"),d(),c(27,"span",141),g(28),d()()(),c(29,"div",144)(30,"div",130)(31,"button",145),I("click",function(){C(e);let i=f();return y(i.showApplicationForm())}),d(),c(32,"button",146),I("click",function(){C(e);let i=f();return y(i.goToPreview())}),d()()()()()()}if(t&2){let e=f();p(),m("ngForOf",e.dataPayload.applications),p(15),k(e.dataPayload.applicant_email),p(6),k(e.dataPayload.applicant_phone),p(6),k(e.courtName),p(4),m("disabled",e.applicationsArray.length>0?e.applicationForm.invalid:!1)}}var rO=(()=>{class t{constructor(e,n,i,r,a,s,l,u,h,A,b){this.fb=e,this.affidavitApplicationEndpoint=n,this.countryEndpoint=i,this.stateEndpoint=r,this.affidavitPageStore=a,this.CourtEndPoint=s,this.appNotificationService=l,this.cameraService=u,this.applicationService=h,this.affidavitTemplateEndpoint=A,this.affidavitApplicationSettingsEndpoint=b,this.toggle=new V,this.genders=da,this.religions=pa,this.geoCountry=[],this._geoStates=[],this.statesByDeponent=[],this.courts=[],this.selectedState=[""],this.no_image="data:image/png;base64,"+pt.no_image,this.uploadedPassportImage=["data:image/png;base64,"+pt.no_image],this.uploadedSignatureImage=["data:image/png;base64,"+pt.no_image],this.uploadedIDCard=["data:image/png;base64,"+pt.no_image],this.noImage=pt.no_image,this.displayForm=!0,this.shouldDisplayAffidavitSection=!0,this.selectedCountry=[""],this.canSubmitApplicationForm=!1,this.canShowApplicationForm=!0,this.canShowClausesForm=!1,this.canShowConfirmationForm=!1,this.showAffidavitInformationForm=!1,this.displaySignatureModal=!1,this.formEntriesMap=new Map,this.passportPhotoFiles=[],this.signatureFiles=[],this.idCardPhotoFiles=[],this.cameraEnabled=!1,this.cameraStarted=!1,this.cameraEnabled1=!1,this.cameraStarted1=!1,this.hasUploadedPhoto=!1,this.videoInputs=[],this.rootForm=this.fb.group({applications:this.fb.array([]),applicant_email:this.fb.control(null),applicant_phone:this.fb.control(null),court:this.fb.control(null,K.required),affidavit_type_name:this.fb.control(null,[K.required,K.minLength(3),K.maxLength(128)])})}ngOnInit(){this.applicationService.getaffidavitTemplateId()&&(this.affidavitPageStore.setID(this.applicationService.getaffidavitTemplateId()),this.affidavitPageStore.id$.subscribe({next:e=>{this.affidavitTemplateEndpoint.single(e).subscribe({next:n=>{this.affidavitTemplate=n.data,this.showAffidavitInformationForm=(this.affidavitTemplate?.placeholders?.length||0)>0&&this.affidavitTemplate?.is_clauses_editable!=!0,this.affidavitPageStore.stopLoading()},error:n=>{this.affidavitPageStore.stopLoading(),this.appNotificationService.showError({title:n.error,detail:n.message})},complete:()=>{this.addDeponent()}})}})),this.countryEndpoint.list().subscribe({next:e=>{this.geoCountry=e.data,this.default_country=this.geoCountry.find(n=>n.phone_code=="234")},error:e=>console.log(e)}),this.stateEndpoint.list().subscribe({next:e=>{this._geoStates=e.data},error:e=>{this.appNotificationService.showError({title:e.error,detail:e.message})}}),this.affidavitApplicationSettingsEndpoint.single(1).subscribe({next:e=>this.affidavitAppSetting=e.data,error:e=>{this.appNotificationService.showError({title:e.error,detail:e.message})}}),this.CourtEndPoint.list().subscribe({next:e=>this.courts=e.data,error:e=>{this.appNotificationService.showError({title:e.error,detail:e.message})}})}goBack(){window.history.back()}get applicationFormControl(){return this.applicationForm.controls}get formEntries(){return this.applicationForm.controls.formEntries}showConfirmationForm(){this.displayForm=!1}showApplicationForm(){this.displayForm=!0}get clauseEntriesControl(){return this.applicationForm.controls.clauseEntries}onAddClause(e){if(this.clauseEntriesControl.length<7){let n=this.fb.control(null,[K.required,K.minLength(3)]);this.clauseEntriesControl.insert(e+1,n);return}this.appNotificationService.showInfo({title:"Information",detail:"You can only supply a maximum of seven (7) clauses!"})}getFormEntriesRecordByIndex(e){return this.formEntriesMap.get(e)}onRemoveClause(e){if(this.clauseEntriesControl.length>1){this.clauseEntriesControl.removeAt(e);return}this.appNotificationService.showInfo({title:"Information",detail:"You must have at least one clause available"})}get courtName(){return this.courts.find(i=>i.id===this.dataPayload.court_id)?.name}processForm(){let e=this.passportPhotoFiles.some(a=>a==""),n=this.signatureFiles.some(a=>a=="");if(this.affidavitAppSetting?.allow_passport_photo&&e){this.appNotificationService.showWarning({title:"Information!",detail:"Please, make sure to upload both the Passport and Signature!"});return}if(this.affidavitAppSetting?.allow_signature&&n){this.appNotificationService.showWarning({title:"Information!",detail:"Please, make sure to upload both the Passport and Signature!"});return}let i=this.rootForm.value,r=i.applications;this.dataPayload={court_id:i.court,applicant_email:i.applicant_email,applicant_phone:i.applicant_phone,affidavit_type_name:i.affidavit_type_name,affidavit_template_id:this.affidavitTemplate?.id,client_ref:this.applicationService.getClientRef()??"CLIENT_REF-"+new Date,payment_redirect_url:this.applicationService.getPaymentRedirectUrl(),applications:[]},r.forEach((a,s)=>{this.selectedCountry[s]=this.geoCountry.find(l=>l.id==a.originCountry)?.name??"Not Found",this.selectedState[s]=this.statesByDeponent[s].find(l=>l.id==a.originState)?.name??"Not Found",this.dataPayload?.applications.push({deponent_name:a.deponent_name,deponent_nin:a.deponent_nin,town_native:a.town_native,town_resident:a.town_resident,state_id:a.originState,occupation:a.occupation,gender:a.gender,religion:a.religion,passport_photo_file:this.uploadedPassportImage[s]??"",signature_file:this.uploadedSignatureImage[s]??"",identity_photo_file:this.uploadedIDCard[s]??"",formEntries:[]}),this.affidavitTemplate?.is_clauses_editable||this.formEntriesMap.forEach((l,u)=>{this.dataPayload.applications[s],this.dataPayload.applications[s].formEntries.push({label:l.label,placeholder:l.placeholder,provided_value:a.formEntries[u],parent_placeholder:l.parent_placeholder,is_calculated:l.is_calculated,format:l.format,input_type:l.input_type})})}),this.shouldDisplayAffidavitSection=this.dataPayload.applications[0].formEntries?.length>0,setTimeout(()=>this.showConfirmationForm(),250)}goToPreview(){let e=new FormData;e.append("court_id",this.dataPayload?.court_id+""),e.append("applicant_email",this.dataPayload?.applicant_email??""),e.append("applicant_phone",this.dataPayload?.applicant_phone??""),e.append("affidavit_type_name",this.dataPayload?.affidavit_type_name??""),e.append("affidavit_template_id",this.dataPayload?.affidavit_template_id+""),e.append("client_ref",this.dataPayload?.client_ref??""),e.append("payment_redirect_url",this.dataPayload?.payment_redirect_url??""),this.dataPayload.applications.forEach((n,i)=>{e.append(`applications[${i}][deponent_name]`,n.deponent_name??""),e.append(`applications[${i}][deponent_nin]`,n.deponent_nin+""),e.append(`applications[${i}][town_native]`,n.town_native??""),e.append(`applications[${i}][town_resident]`,n.town_resident??""),e.append(`applications[${i}][state_id]`,n.state_id+""),e.append(`applications[${i}][occupation]`,n.occupation??""),e.append(`applications[${i}][gender]`,n.gender??""),e.append(`applications[${i}][religion]`,n.religion??""),e.append(`applications[${i}][passport_photo_file]`,n.passport_photo_file??""),e.append(`applications[${i}][signature_file]`,n.signature_file??""),e.append(`applications[${i}][identity_photo_file]`,n.identity_photo_file??""),n.formEntries.forEach((r,a)=>{e.append(`applications[${i}][formEntries][${a}][label]`,r.label??""),e.append(`applications[${i}][formEntries][${a}][placeholder]`,r.placeholder??""),e.append(`applications[${i}][formEntries][${a}][provided_value]`,r.provided_value??""),e.append(`applications[${i}][formEntries][${a}][parent_placeholder]`,r.parent_placeholder??""),e.append(`applications[${i}][formEntries][${a}][is_calculated]`,r.is_calculated??""),e.append(`applications[${i}][formEntries][${a}][format]`,r.format??""),e.append(`applications[${i}][formEntries][${a}][input_type]`,r.input_type??"")})}),this.affidavitPageStore.startLoading("Saving Data . . ."),this.affidavitApplicationEndpoint.createBulk(e).subscribe({next:n=>{this.applicationService.setApplications(n.data.data),this.affidavitPageStore.setRefNo(n.client_ref),this.applicationService.setPaymentEntry(n.paymentEntry),this.affidavitPageStore.toggle("application-detail")},error:n=>{this.appNotificationService.showError({title:"Error",detail:n.error.message}),this.affidavitPageStore.stopLoading()}})}capturePhoto(e){navigator.mediaDevices.getUserMedia({video:!0}).then(n=>{let i=document.createElement("video");i.srcObject=n,i.play();let r=document.createElement("canvas"),a=r.getContext("2d");i.addEventListener("loadeddata",()=>{r.width=i.videoWidth,r.height=i.videoHeight,a.drawImage(i,0,0,r.width,r.height),this.uploadedPassportImage[e]=r.toDataURL("image/png"),this.uploadedIDCard[e]=r.toDataURL("image/png"),n.getTracks().forEach(s=>s.stop())})}).catch(n=>{console.error("Error accessing the camera: ",n)})}handleFileInputIPassportImage(e,n){this.uploadedPassportImage[n]="assets/images/loading.gif";let i;if(e instanceof Event){let s=e.target;if(s.files&&s.files.length>0)i=s.files[0];else{console.error("No files found in the input element.");return}}else typeof e=="string"&&e.startsWith("data:image/")?(this.uploadedPassportImage[n]=e,i=this.dataURLtoFile(e,"passport.png")):i=e;let r=i.type,a=new FileReader;r.startsWith("image/")?(a.onload=()=>{this.uploadedPassportImage[n]=a.result,this.handleFileUpload(i,"passport",n)},a.readAsDataURL(i)):this.appNotificationService.showWarning({title:"Invalid file type.!",detail:"Only JPG, GIF, and PNG are allowed!!!"})}handleFileInputSignatureImage(e,n){this.uploadedSignatureImage[n]="assets/images/loading.gif";let i;if(e instanceof Event){let s=e.target;if(s.files&&s.files.length>0)i=s.files[0];else{console.error("No files found in the input element.");return}}else typeof e=="string"&&e.startsWith("data:image/")?(this.uploadedSignatureImage[n]=e,i=this.dataURLtoFile(e,"signature.png")):i=e;let r=i.type,a=new FileReader;r.startsWith("image/")?(a.onload=()=>{this.uploadedSignatureImage[n]=a.result,this.handleFileUpload(i,"signature",n)},a.readAsDataURL(i)):this.appNotificationService.showWarning({title:"Invalid file type.!",detail:"Only JPG, GIF, and PNG are allowed!!!"}),this.displaySignatureModal=!1}handleFileInputIDCard(e,n){this.uploadedIDCard[n]="assets/images/loading.gif";let i;if(e instanceof Event){let s=e.target;if(s.files&&s.files.length>0)i=s.files[0];else{console.error("No files found in the input element.");return}}else typeof e=="string"&&e.startsWith("data:image/")?(this.uploadedIDCard[n]=e,i=this.dataURLtoFile(e,"id-card.png")):i=e;let r=i.type,a=new FileReader;r.startsWith("image/")?(a.onload=()=>{this.uploadedIDCard[n]=a.result},a.readAsDataURL(i)):this.appNotificationService.showWarning({title:"Invalid file type.!",detail:"Only JPG, GIF, and PNG are allowed!!!"})}dataURLtoFile(e,n){let i=e.split(","),r=i[0]?.match(/:(.*?);/),a=r?r[1]:"",s=atob(i[1]),l=s.length,u=new Uint8Array(l);for(;l--;)u[l]=s.charCodeAt(l);return new File([u],n,{type:a})}openCamera(){this.cameraEnabled=!0}openCamera1(){this.cameraEnabled1=!0}startCamera(){this.cameraStarted=!0,this.cameraService.initCamera(this.videoElement.nativeElement)}startCamera1(){this.cameraStarted1=!0,this.cameraService.initCamera(this.videoElement.nativeElement)}getCamera(){this.cameraService.getCamera(this.videoElement.nativeElement)}switchCamera(){this.cameraService.switchCamera(this.videoElement.nativeElement)}initCamera(){this.cameraService.initCamera(this.videoElement.nativeElement)}captureImage(e){let n=this.cameraService.captureImage(this.videoElement.nativeElement);this.handleFileInputIPassportImage(n,e),this.cameraService.stopCamera(this.videoElement.nativeElement),this.stopCamera()}captureImage1(e){let n=this.cameraService.captureImage(this.videoElement.nativeElement);this.handleFileInputIDCard(n,e),this.cameraService.stopCamera(this.videoElement.nativeElement),this.stopCamera()}stopCamera(){this.cameraService.stopCamera(this.videoElement.nativeElement),this.cameraEnabled=!1,this.cameraEnabled1=!1,this.cameraStarted=!1,this.cameraStarted1=!1}handleImageError(e){e.target.src=`data:image/gif;base64,${this.no_image}`}get isNINValidated(){return(this.applicationFormControl.deponent_nin.value+"").length===11}onInput(e){let n=e.target.value;n=n.replace(/\D/g,""),n.length>11&&(n=n.slice(0,11)),this.applicationFormControl.deponent_nin.patchValue(n)}handleFileUpload(e,n,i){if(e)switch(n){case"passport":this.passportPhotoFiles[i]=e;break;case"signature":this.signatureFiles[i]=e;break;case"id-card":this.idCardPhotoFiles[i]=e;break;default:break}}get applicationsArray(){return this.rootForm.get("applications")}get applicationForm(){return this.applicationsArray.at(0)}addDeponent(){let e=this.fb.group({deponent_name:this.fb.control(null,[K.required,K.minLength(3)]),deponent_nin:this.fb.control(null,[K.required,K.pattern("^[0-9]*$"),K.minLength(11),K.maxLength(11)]),town_native:this.fb.control(null,[K.required,K.minLength(3)]),town_resident:this.fb.control(null,[K.required,K.minLength(3)]),originCountry:this.fb.control(null,[K.required]),originState:this.fb.control(null,[K.required,K.minLength(3)]),occupation:this.fb.control(null,[K.required,K.minLength(3)]),gender:this.fb.control(null,[K.required,K.minLength(3)]),religion:this.fb.control(null,[K.required,K.minLength(3)]),formEntries:this.fb.array([]),clauseEntries:this.fb.array([])});if(this.uploadedIDCard.push(this.no_image),this.uploadedPassportImage.push(this.no_image),this.uploadedSignatureImage.push(this.no_image),this.passportPhotoFiles.push(""),this.signatureFiles.push(""),this.idCardPhotoFiles.push(""),this.selectedCountry.push(this.default_country?.name??""),this.selectedState.push(),this.affidavitTemplate?.placeholders.forEach((i,r)=>{this.formEntriesMap.set(r,i),!i.is_calculated&&i.is_required?e.controls.formEntries.push(this.fb.control(null,[K.required])):!i.is_calculated&&!i.is_required&&e.controls.formEntries.push(this.fb.control(null,[]))}),this.affidavitTemplate?.is_clauses_editable){let i=this.fb.control(null,[K.required,K.minLength(3)]);e.controls.clauseEntries.push(i),this.canShowClausesForm=!0}else this.rootForm.controls.affidavit_type_name.setValue(this.affidavitTemplate?.name);this.applicationsArray.push(e);let n=this.applicationsArray.length-1;this.statesByDeponent[n]=[],this.setupDeponentSubscriptions(n)}removeDeponent(e){if(this.applicationsArray.length==1){this.appNotificationService.showInfo({title:"Oops !",detail:"You must have atleast one deponent in this form"});return}this.applicationsArray.removeAt(e),this.statesByDeponent.splice(e,1),this.uploadedPassportImage.splice(e,1),this.uploadedSignatureImage.splice(e,1),this.uploadedIDCard.splice(e,1),this.passportPhotoFiles.splice(e,1),this.signatureFiles.splice(e,1),this.idCardPhotoFiles.splice(e,1)}setupDeponentSubscriptions(e){let n=this.applicationsArray.at(e),i=n.get("originCountry"),r=n.get("originState");i?.valueChanges.subscribe(a=>{this.statesByDeponent[e]=this._geoStates.filter(s=>s.country_id==a),r?.reset(null)}),r?.valueChanges.subscribe(a=>{})}closeDropdown(e){setTimeout(()=>{let n=Array.from(document.querySelectorAll(".p-dropdown-panel")).filter(i=>{let r=window.getComputedStyle(i);return r.display!=="none"&&r.visibility!=="hidden"});if(n.length>0){n[0].style.display="none";let i=document.activeElement;i&&i.classList.contains("p-dropdown")&&i.blur()}},100)}static{this.\u0275fac=function(n){return new(n||t)(M(Mi),M(oi),M(ua),M(Jo),M(Te),M(Xo),M(Mn),M(Zo),M(Si),M(to),M(Ti))}}static{this.\u0275cmp=N({type:t,selectors:[["e-affidavit-bulk-applications"]],viewQuery:function(n,i){if(n&1&&ae(Bre,5),n&2){let r;Q(r=G())&&(i.videoElement=r.first)}},outputs:{toggle:"toggle"},decls:15,vars:4,consts:[["fileIdCard",""],["filePassportPhoto",""],["fileSignature",""],["videoElement",""],["noPassport",""],["noSignature",""],["noIdCard",""],[1,"application-form-container","bulk-create-applications"],[1,"application-form-header"],[1,"header-content"],[1,"application-form-title"],[1,"application-form-subtitle"],[1,"header-actions"],[1,"status-pill"],[1,"pi","pi-users"],["class","status-pill secondary",4,"ngIf"],["class","form-sections",4,"ngIf"],["class","review-sections",4,"ngIf"],[1,"status-pill","secondary"],[1,"pi","pi-exclamation-triangle"],[1,"form-sections"],[3,"formGroup"],["class","form-section workspace-actions",4,"ngIf"],["formArrayName","applications"],[4,"ngFor","ngForOf"],["class","form-section additional-info-section mt-2",4,"ngIf"],[1,"form-section","workspace-actions"],[1,"section-header"],[1,"pi","pi-layer-group"],[1,"section-content","controls-content"],[1,"controls-grid"],[1,"control-card",3,"click"],[1,"control-icon","success"],[1,"pi","pi-user-plus"],[1,"control-label"],[1,"control-icon"],[1,"pi","pi-user-minus"],[1,"form-section","personal-info-section","mt-3",3,"formGroupName"],[1,"pi","pi-id-card"],[1,"badge"],[1,"section-actions"],["pButton","","type","button","pTooltip","Add Deponent","tooltipPosition","top",1,"action-chip","add",3,"click"],["pButton","","type","button","pTooltip","Remove Deponent","tooltipPosition","top",1,"action-chip","remove",3,"click"],[1,"section-content"],["class","file-upload-container",4,"ngIf"],["class","camera-interface",4,"ngIf"],[1,"form-grid"],[1,"form-field"],["for","deponent_name"],[1,"required"],["id","deponent_name","type","text","placeholder","Enter Deponent Name","formControlName","deponent_name","required","",1,"form-input"],["class","error-message",4,"ngIf"],["for","deponent_nin"],["id","deponent_nin","type","text","placeholder","Enter Deponent NIN","formControlName","deponent_nin","required","",1,"form-input",3,"input"],["for","gender"],["placeholder","Select Gender","formControlName","gender","optionLabel","name","optionValue","name",1,"form-dropdown",3,"onChange","options","showClear"],["for","town_native"],["id","town_native","type","text","placeholder","Enter Native Town","formControlName","town_native","required","",1,"form-input"],["for","originCountry"],["placeholder","Select Country of Origin","formControlName","originCountry","optionLabel","name","optionValue","id",1,"form-dropdown",3,"onChange","options","showClear","filter"],["for","originState"],["placeholder","Select State of Origin","formControlName","originState","optionLabel","name","optionValue","id",1,"form-dropdown",3,"onChange","options","showClear","filter"],["for","town_resident"],["id","town_resident","type","text","placeholder","e.g No. 7B Gambia street, Garki","formControlName","town_resident","required","",1,"form-input"],["for","occupation"],["id","occupation","type","text","placeholder","e.g Software Developer, Student","formControlName","occupation","required","",1,"form-input"],["for","religion"],["placeholder","Select Religion","formControlName","religion","optionLabel","name","optionValue","name",1,"form-dropdown",3,"onChange","options","showClear","filter"],["class","sub-form-section affidavit-info-section mt-2",4,"ngIf"],["class","form-section clauses-section mt-2",4,"ngIf"],[1,"file-upload-container"],[1,"upload-grid"],["class","upload-card",4,"ngIf"],[1,"upload-card"],[1,"upload-header"],[1,"upload-content"],["alt","ID Card",1,"uploaded-image",3,"src"],[1,"upload-actions"],["pButton","","pRipple","","type","button","label","Upload",1,"upload-btn","primary",3,"click"],["type","file","name","ApplicantIdCardUpload","id","ApplicantIdCardUpload","hidden","","accept","image/*",3,"change"],[1,"pi","pi-image"],["alt","Passport Photo",1,"uploaded-image",3,"src"],["pButton","","pRipple","","type","button","class","upload-btn secondary","label","Camera",3,"click",4,"ngIf"],["type","file","name","ApplicantPassportUpload","id","ApplicantPassportUpload","hidden","","accept","image/*",3,"change"],["pButton","","pRipple","","type","button","label","Camera",1,"upload-btn","secondary",3,"click"],[1,"pi","pi-pencil"],["alt","Signature",1,"uploaded-image",3,"src"],["type","file","name","ApplicantSigantureUpload","id","ApplicantSigantureUpload","hidden","","accept","image/*",3,"change"],[1,"camera-interface"],[1,"camera-container"],[1,"camera-header"],["type","button","title","Close Camera",1,"camera-close-btn",3,"click"],[1,"pi","pi-times"],[1,"camera-video"],[1,"camera-controls"],["type","button","class","camera-btn start",3,"click",4,"ngIf"],["type","button","class","camera-btn capture",3,"click",4,"ngIf"],["type","button","class","camera-btn switch",3,"click",4,"ngIf"],["type","button",1,"camera-btn","start",3,"click"],[1,"pi","pi-play"],["type","button",1,"camera-btn","capture",3,"click"],[1,"pi","pi-camera"],["type","button",1,"camera-btn","switch",3,"click"],[1,"pi","pi-refresh"],[1,"error-message"],[1,"sub-form-section","affidavit-info-section","mt-2"],[1,"pi","pi-file-text"],["formArrayName","formEntries",1,"form-grid"],["class","form-field",4,"ngIf"],[1,"form-input",3,"id","type","formControlName"],[1,"form-section","clauses-section","mt-2"],[1,"pi","pi-list"],["formArrayName","clauseEntries",1,"clauses-grid"],[1,"clause-card"],[1,"clause-header"],[1,"clause-title"],[1,"clause-number"],[1,"clause-actions"],["type","button","pButton","","icon","pi pi-plus",1,"action-chip","add",3,"click"],["type","button","pButton","","icon","pi pi-trash",1,"action-chip","remove",3,"click"],["id","clause_entry","name","clause_entry","rows","3","maxlength","500","placeholder","That...",1,"clause-textarea",3,"formControlName"],[1,"form-section","additional-info-section","mt-2"],[1,"pi","pi-info-circle"],["for","applicant_email"],["id","applicant_email","type","email","placeholder","Enter Applicant Email","formControlName","applicant_email","required","",1,"form-input"],["for","applicant_phone"],["id","applicant_phone","type","text","placeholder","Enter Applicant Phone Number","formControlName","applicant_phone","required","",1,"form-input"],["for","court"],["placeholder","Select court","formControlName","court","optionLabel","name","optionValue","id",1,"form-dropdown",3,"onChange","options","showClear"],[1,"form-actions"],[1,"action-buttons"],["pButton","","type","button","icon","pi pi-arrow-left","label","Previous",1,"cancel-btn",3,"click"],["pButton","","type","button","icon","pi pi-eye","label","Preview",1,"submit-btn",3,"click","disabled"],[1,"review-sections"],["class","review-section",4,"ngFor","ngForOf"],[1,"review-section"],[1,"review-content"],[1,"review-grid"],[1,"review-item"],[1,"review-label"],[1,"pi","pi-envelope"],[1,"review-value"],[1,"pi","pi-phone"],[1,"pi","pi-map-marker"],[1,"form-actions","review-actions"],["pButton","","type","button","icon","pi pi-arrow-left","label","Review",1,"cancel-btn",3,"click"],["pButton","","type","button","icon","pi pi-save","label","Submit Application",1,"submit-btn",3,"click","disabled"],[1,"pi","pi-user"],[1,"pi","pi-clone"],[1,"pi","pi-globe"],[1,"pi","pi-map"],[1,"pi","pi-home"],[1,"pi","pi-briefcase"],[1,"pi","pi-circle-fill"],["class","review-subsection",4,"ngIf"],[1,"review-subsection"],[1,"subsection-title"],[1,"documents-grid"],[1,"document-card"],[1,"doc-label"],[1,"pi","pi-images"],["class","doc-preview",4,"ngIf","ngIfElse"],["class","review-item",4,"ngIf"],[1,"doc-preview"],["alt","Passport",3,"src"],[1,"not-provided"],["alt","Signature",3,"src"],["alt","ID Card",3,"src"]],template:function(n,i){n&1&&(c(0,"div",7)(1,"div",8)(2,"div",9)(3,"h1",10),g(4,"Bulk Affidavit Applications"),d(),c(5,"p",11),g(6," Capture multiple deponent records, upload required documents, and review each submission before dispatching to the Federal High Court. "),d()(),c(7,"div",12)(8,"div",13),v(9,"i",14),c(10,"span"),g(11),d()(),_(12,zre,4,0,"div",15),d()(),_(13,_ae,6,4,"div",16)(14,Oae,33,5,"div",17),d()),n&2&&(p(11),se("Total Deponents: ",i.applicationsArray.controls.length,""),p(),m("ngIf",i.rootForm.invalid&&i.displayForm),p(),m("ngIf",i.displayForm),p(),m("ngIf",!i.displayForm))},dependencies:[rt,Ce,wn,Dn,kn,xn,Ui,bo,Fn,Hn,Qo,Ii,Lt,Io,In,wt],styles:['.application-form-container[_ngcontent-%COMP%]{min-height:100vh;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;color:#0f172a;display:flex;flex-direction:column;gap:1.5rem}.application-form-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:2rem;padding:2.75rem;border-radius:24px;background:linear-gradient(135deg,#022c22,#065f46 45%,#0d6449);box-shadow:0 32px 60px #0f172a4d;color:#fff;position:relative;overflow:hidden}.application-form-header[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at top right,rgba(255,255,255,.22),transparent 55%);pointer-events:none}.header-content[_ngcontent-%COMP%]{position:relative;z-index:1}.header-content[_ngcontent-%COMP%] .application-form-title[_ngcontent-%COMP%]{font-size:clamp(2rem,3vw,2.85rem);font-weight:700;margin-bottom:.85rem}.header-content[_ngcontent-%COMP%] .application-form-subtitle[_ngcontent-%COMP%]{margin:0;font-size:1.05rem;line-height:1.6;color:#ffffffd9}.header-actions[_ngcontent-%COMP%]{position:relative;z-index:1;display:flex;flex-direction:column;gap:.75rem}.header-actions[_ngcontent-%COMP%] .status-pill[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.6rem;padding:.6rem 1.1rem;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:#0f172a33;font-weight:600;font-size:.95rem;color:#fefce8;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.header-actions[_ngcontent-%COMP%] .status-pill.secondary[_ngcontent-%COMP%]{background:#065f4673;color:#ffffffe6}.header-actions[_ngcontent-%COMP%] .status-pill[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem}.form-sections[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-sections[_ngcontent-%COMP%] form[_ngcontent-%COMP%], .review-sections[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-section[_ngcontent-%COMP%], .review-section[_ngcontent-%COMP%]{background:#fff;border-radius:24px;padding:2.4rem;box-shadow:0 24px 55px #0f172a1f;border:1px solid #e2e8f0;border-left:5px solid #0d6449;transition:box-shadow .3s ease}.form-section[_ngcontent-%COMP%]:hover, .review-section[_ngcontent-%COMP%]:hover{box-shadow:0 32px 60px #0f172a29}.sub-form-section[_ngcontent-%COMP%]{background:transparent;padding-top:2rem;padding:2.4rem;border-radius:24px;border:1px solid #e2e8f0;transition:box-shadow .3s ease}.sub-form-section[_ngcontent-%COMP%]:hover{box-shadow:0 32px 60px #0f172a29}.section-header[_ngcontent-%COMP%]{margin-bottom:1.75rem;padding-bottom:1rem;border-bottom:2px solid #f1f5f9;display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:1.45rem;font-weight:600;color:#0f172a;display:flex;align-items:center;gap:.75rem}.section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.25rem;color:#0d6449}.section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] .badge[_ngcontent-%COMP%]{background:#0d94882e;color:#0d6449;border-radius:999px;padding:.25rem .65rem;font-size:.75rem;letter-spacing:.05em;text-transform:uppercase}.section-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:.25rem 0 0;color:#64748b;font-size:1rem}.section-actions[_ngcontent-%COMP%]{display:inline-flex;gap:.5rem}.section-actions[_ngcontent-%COMP%] .action-chip[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:12px;border:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:all .3s ease;color:#fff}.section-actions[_ngcontent-%COMP%] .action-chip.add[_ngcontent-%COMP%]{background:linear-gradient(135deg,#10b981,#059669)}.section-actions[_ngcontent-%COMP%] .action-chip.remove[_ngcontent-%COMP%]{background:linear-gradient(135deg,#ef4444,#dc2626)}.section-actions[_ngcontent-%COMP%] .action-chip[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 10px 22px #0f172a1f}.section-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.75rem}.controls-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}.control-card[_ngcontent-%COMP%]{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:1rem 1.25rem;display:flex;align-items:center;gap:.85rem;cursor:pointer;transition:all .3s ease}.control-card.warning[_ngcontent-%COMP%]{border-color:#f9731659}.control-card.disabled[_ngcontent-%COMP%]{opacity:.5;cursor:default}.control-card[_ngcontent-%COMP%]:not(.disabled):hover{transform:translateY(-4px);box-shadow:0 15px 30px #0f172a1f;border-color:#0d948873;background:#fff}.control-card[_ngcontent-%COMP%] .control-icon[_ngcontent-%COMP%]{width:44px;height:44px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;font-size:1.2rem}.control-card[_ngcontent-%COMP%] .control-icon.success[_ngcontent-%COMP%]{background:#10b98126;color:#059669}.control-card[_ngcontent-%COMP%] .control-icon.warning-icon[_ngcontent-%COMP%]{background:#f9731626;color:#f97316}.control-card[_ngcontent-%COMP%] .control-icon.muted[_ngcontent-%COMP%]{background:#94a3b82e;color:#475569}.control-card[_ngcontent-%COMP%] .control-label[_ngcontent-%COMP%]{font-weight:600;color:#0f172a}.file-upload-container[_ngcontent-%COMP%] .upload-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.25rem}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%]{background:#f8fafc;border:2px dashed #d1d5db;border-radius:16px;padding:1.5rem;transition:all .3s ease}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%]:hover{border-color:#0d6449;background:#0d948814;box-shadow:0 15px 30px #0f172a14}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-header[_ngcontent-%COMP%]{text-align:center;margin-bottom:1rem}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-header[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:2rem;color:#0d6449;display:block;margin-bottom:.5rem}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-header[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin:0;font-size:1.1rem;font-weight:600;color:#1f2937}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-header[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{color:#64748b}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .uploaded-image[_ngcontent-%COMP%]{width:120px;height:120px;object-fit:cover;border-radius:16px;border:3px solid #e5e7eb;box-shadow:0 8px 20px #0f172a1a;transition:all .3s ease}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .uploaded-image[_ngcontent-%COMP%]:hover{transform:scale(1.05);border-color:#0d6449;box-shadow:0 15px 30px #0d948840}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:center}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%] .upload-btn[_ngcontent-%COMP%]{border-radius:10px;padding:.6rem 1.25rem;font-weight:600;border:none;cursor:pointer;transition:all .3s ease}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%] .upload-btn.primary[_ngcontent-%COMP%]{background:linear-gradient(135deg,#0d6449,#047857);color:#fff}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%] .upload-btn.primary[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 10px 22px #0d644959}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%] .upload-btn.secondary[_ngcontent-%COMP%]{background:transparent;border:1px solid #d1d5db;color:#475569}.file-upload-container[_ngcontent-%COMP%] .upload-card[_ngcontent-%COMP%] .upload-content[_ngcontent-%COMP%] .upload-actions[_ngcontent-%COMP%] .upload-btn.secondary[_ngcontent-%COMP%]:hover{background:#f1f5f9;border-color:#94a3b8}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%]{background:#f8fafc;border-radius:16px;padding:1.5rem;border:1px solid #e2e8f0}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid #e2e8f0}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-header[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin:0;font-size:1.2rem;font-weight:600;color:#0f172a}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-header[_ngcontent-%COMP%] .camera-close-btn[_ngcontent-%COMP%]{width:32px;height:32px;border-radius:50%;border:none;background:#ef4444;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .3s ease}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-header[_ngcontent-%COMP%] .camera-close-btn[_ngcontent-%COMP%]:hover{background:#dc2626;transform:scale(1.1)}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-video[_ngcontent-%COMP%]{width:100%;max-width:520px;height:300px;border-radius:12px;border:2px solid #e2e8f0;margin-bottom:1rem;object-fit:cover}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.75rem;justify-content:center}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn[_ngcontent-%COMP%]{padding:.75rem 1.5rem;border-radius:10px;font-weight:600;border:none;cursor:pointer;transition:all .3s ease}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.start[_ngcontent-%COMP%]{background:linear-gradient(135deg,#0d6449,#047857);color:#fff}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.start[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 12px 24px #0d644959}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.capture[_ngcontent-%COMP%]{background:linear-gradient(135deg,#6366f1,#4f46e5);color:#fff}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.capture[_ngcontent-%COMP%]:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 12px 24px #6366f159}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.capture[_ngcontent-%COMP%]:disabled{background:#94a3b8;cursor:not-allowed;transform:none;box-shadow:none;opacity:.7}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.switch[_ngcontent-%COMP%]{background:transparent;border:1px solid #d1d5db;color:#475569}.camera-interface[_ngcontent-%COMP%] .camera-container[_ngcontent-%COMP%] .camera-controls[_ngcontent-%COMP%] .camera-btn.switch[_ngcontent-%COMP%]:hover{background:#f1f5f9;border-color:#94a3b8}.form-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(260px,1fr));gap:1.5rem}@media (max-width: 1024px){.form-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}}.additional-info-section[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.form-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.6rem}.form-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:600;color:#1f2937;font-size:.95rem}.form-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%] .required[_ngcontent-%COMP%]{color:#ef4444}.form-field[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%]{width:100%;padding:1rem 1.1rem;border-radius:14px;border:2px solid #e2e8f0;background:#f8fafc;font-size:.95rem;transition:all .3s ease;color:#0f172a}.form-field[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%]:focus{outline:none;border-color:#0d6449;background:#fff;box-shadow:0 0 0 4px #0d64492e}.form-field[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%]::placeholder{color:#94a3b8}.form-field[_ngcontent-%COMP%] .error-message[_ngcontent-%COMP%]{color:#ef4444;font-size:.85rem;font-weight:500}.form-dropdown[_ngcontent-%COMP%]{width:100%}.form-dropdown[_ngcontent-%COMP%] .p-dropdown{width:100%;border:2px solid #e2e8f0;border-radius:14px;background:#f8fafc;transition:all .3s ease}.form-dropdown[_ngcontent-%COMP%] .p-dropdown:hover{border-color:#0d6449;background:#fff}.form-dropdown[_ngcontent-%COMP%] .p-dropdown.p-focus{border-color:#0d6449;box-shadow:0 0 0 4px #0d64492e;background:#fff}.clauses-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.25rem}.clause-card[_ngcontent-%COMP%]{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:1.25rem;display:flex;flex-direction:column;gap:1rem}.clause-card[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.clause-card[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-title[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.5rem;font-weight:600;color:#0f172a}.clause-card[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-title[_ngcontent-%COMP%] .clause-number[_ngcontent-%COMP%]{background:#0d6449;color:#fff;padding:.2rem .6rem;border-radius:8px;font-size:.8rem;font-weight:700}.clause-card[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-actions[_ngcontent-%COMP%]{display:inline-flex;gap:.4rem}.clause-card[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-actions[_ngcontent-%COMP%] .action-chip[_ngcontent-%COMP%]{width:38px;height:38px;border-radius:10px;border:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:all .3s ease}.clause-card[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-actions[_ngcontent-%COMP%] .action-chip.add[_ngcontent-%COMP%]{background:linear-gradient(135deg,#0d6449,#047857);color:#fff}.clause-card[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-actions[_ngcontent-%COMP%] .action-chip.remove[_ngcontent-%COMP%]{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff}.clause-card[_ngcontent-%COMP%] .clause-header[_ngcontent-%COMP%] .clause-actions[_ngcontent-%COMP%] .action-chip[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 10px 20px #0f172a1f}.clause-card[_ngcontent-%COMP%] .clause-textarea[_ngcontent-%COMP%]{width:100%;min-height:130px;padding:1rem;border-radius:12px;border:2px solid #e2e8f0;font-size:.95rem;line-height:1.6;transition:all .3s ease}.clause-card[_ngcontent-%COMP%] .clause-textarea[_ngcontent-%COMP%]:focus{outline:none;border-color:#0d6449;box-shadow:0 0 0 4px #0d64492e}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;gap:1rem;flex-wrap:wrap}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border-radius:14px;padding:.85rem 1.8rem;font-weight:600;transition:all .3s ease;letter-spacing:.01em}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .cancel-btn[_ngcontent-%COMP%]{background:#ff9f43!important;border:1px solid rgb(255,159,67)!important;color:#0f172a!important;box-shadow:0 12px 24px #ff9f4359}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .cancel-btn[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 16px 32px #ff9f4373}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .submit-btn[_ngcontent-%COMP%]{background:linear-gradient(135deg,#0d6449,#047857);border:none;color:#fff;box-shadow:0 12px 28px #0d644959}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .submit-btn[_ngcontent-%COMP%]:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 18px 35px #0d644973}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .submit-btn[_ngcontent-%COMP%]:disabled{background:linear-gradient(135deg,#94a3b8d9,#94a3b8bf);box-shadow:none;cursor:not-allowed;transform:none}.review-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.75rem}.review-content[_ngcontent-%COMP%] .review-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(240px,1fr));gap:1.25rem}@media (max-width: 1024px){.review-content[_ngcontent-%COMP%] .review-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}}.review-content[_ngcontent-%COMP%] .review-item[_ngcontent-%COMP%]{background:#f8fafc;border-radius:16px;padding:1.1rem 1.25rem;border:1px solid #e2e8f0}.review-content[_ngcontent-%COMP%] .review-item[_ngcontent-%COMP%] .review-label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;font-weight:600;color:#0d6449;margin-bottom:.4rem}.review-content[_ngcontent-%COMP%] .review-item[_ngcontent-%COMP%] .review-label[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem}.review-content[_ngcontent-%COMP%] .review-item[_ngcontent-%COMP%] .review-value[_ngcontent-%COMP%]{color:#1f2937;font-weight:500}.review-content[_ngcontent-%COMP%] .review-subsection[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.review-content[_ngcontent-%COMP%] .review-subsection[_ngcontent-%COMP%] .subsection-title[_ngcontent-%COMP%]{font-size:1.15rem;font-weight:600;color:#0f172a;margin:0}.documents-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,minmax(200px,1fr));gap:1rem}@media (max-width: 1024px){.documents-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}}.document-card[_ngcontent-%COMP%]{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:1rem;text-align:center}.document-card[_ngcontent-%COMP%] .doc-label[_ngcontent-%COMP%]{font-weight:600;color:#0d6449;margin-bottom:.75rem;display:inline-flex;align-items:center;gap:.4rem}.document-card[_ngcontent-%COMP%] .doc-preview[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;max-width:160px;border-radius:12px;border:2px solid #e2e8f0;box-shadow:0 10px 24px #0f172a1f}.document-card[_ngcontent-%COMP%] .not-provided[_ngcontent-%COMP%]{color:#94a3b8;font-style:italic}.review-actions[_ngcontent-%COMP%]{justify-content:flex-end}@media (max-width: 1024px){.application-form-container[_ngcontent-%COMP%]{padding:1.25rem}.application-form-header[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}}@media (max-width: 768px){.application-form-container[_ngcontent-%COMP%]{padding:1rem}.application-form-header[_ngcontent-%COMP%]{padding:2.25rem}.header-actions[_ngcontent-%COMP%]{flex-direction:row;flex-wrap:wrap}.form-section[_ngcontent-%COMP%], .review-section[_ngcontent-%COMP%]{padding:2rem}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{width:100%;flex-direction:column}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}}@media (max-width: 480px){.application-form-header[_ngcontent-%COMP%]{padding:1.8rem}.form-section[_ngcontent-%COMP%], .review-section[_ngcontent-%COMP%]{padding:1.6rem}}*[_ngcontent-%COMP%]{transition:all .3s cubic-bezier(.4,0,.2,1)}']})}}return t})();function Pae(t,o){t&1&&(c(0,"div",34),g(1," Client reference ID is required "),d())}var aO=(()=>{class t{constructor(e,n){this.applicationService=e,this.affidavitPageStore=n,this.selectedAffidavitType="",this.affidavitForm=new qo({ref_no:new vo(null,[K.required])})}ngOnInit(){}check(){let e=this.affidavitForm.controls.ref_no.value;this.applicationService.setClientRef(e),e&&(this.affidavitPageStore.setRefNo(e),this.affidavitPageStore.toggle("application-detail"))}cancel(){this.affidavitForm.reset(),this.applicationService.setClientRef("")}static{this.\u0275fac=function(n){return new(n||t)(M(Si),M(Te))}}static{this.\u0275cmp=N({type:t,selectors:[["e-affidavit-check-application-page"]],decls:54,vars:3,consts:[[1,"application-form-container","check-application-page"],[1,"application-form-header"],[1,"header-content"],[1,"application-form-title"],[1,"application-form-subtitle"],[1,"reference-badges"],[1,"badge-item"],[1,"badge-label"],[1,"badge-value"],[1,"header-actions"],[1,"status-pill"],[1,"pi","pi-shield-check"],[1,"status-pill","secondary"],[1,"pi","pi-bolt"],[1,"form-sections"],[3,"ngSubmit","formGroup"],[1,"form-section","personal-info-section"],[1,"section-header"],[1,"pi","pi-key"],[1,"section-content"],[1,"form-grid","single-column"],[1,"form-field"],["for","ref_no"],[1,"required"],["id","ref_no","type","text","formControlName","ref_no","placeholder","e.g. APP-2025-0215/ELRA-9001-001","required","",1,"form-input"],[1,"input-hint"],[1,"pi","pi-info-circle"],["class","error-message",4,"ngIf"],[1,"divider-with-label"],[1,"form-divider"],[1,"form-actions"],[1,"action-buttons"],["pButton","","type","button","icon","pi pi-times","label","Clear",1,"cancel-btn",3,"click"],["pButton","","type","submit","icon","pi pi-arrow-right","label","Check Status",1,"submit-btn",3,"disabled"],[1,"error-message"]],template:function(n,i){n&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),g(4,"Check Application Status"),d(),c(5,"p",4),g(6," Track the progress of your affidavit request in a few seconds. Simply supply the client reference ID issued after submission. "),d(),c(7,"div",5)(8,"div",6)(9,"span",7),g(10,"Example"),d(),c(11,"span",8),g(12,"APP-2025-0215/ELRA-9001-001"),d()(),c(13,"div",6)(14,"span",7),g(15,"Issued"),d(),c(16,"span",8),g(17,"Email & Payment Receipt"),d()()()(),c(18,"div",9)(19,"div",10),v(20,"i",11),c(21,"span"),g(22,"Secure Lookup"),d()(),c(23,"div",12),v(24,"i",13),c(25,"span"),g(26,"Instant Updates"),d()()()(),c(27,"div",14)(28,"form",15),I("ngSubmit",function(){return i.check()}),c(29,"div",16)(30,"div",17)(31,"h3"),v(32,"i",18),g(33," Provide Your Reference ID"),d(),c(34,"p"),g(35,"Enter the unique identifier associated with your affidavit submission to continue."),d()(),c(36,"div",19)(37,"div",20)(38,"div",21)(39,"label",22),g(40,"Client Reference ID "),c(41,"span",23),g(42,"*"),d()(),v(43,"input",24),c(44,"div",25),v(45,"i",26),g(46," This can be found on the application details page, email receipt, or generated payment invoice. "),d(),_(47,Pae,2,0,"div",27),d()(),c(48,"div",28),v(49,"hr",29),d(),c(50,"div",30)(51,"div",31)(52,"button",32),I("click",function(){return i.cancel()}),d(),v(53,"button",33),d()()()()()()()),n&2&&(p(28),m("formGroup",i.affidavitForm),p(19),m("ngIf",(i.affidavitForm.controls.ref_no.errors==null?null:i.affidavitForm.controls.ref_no.errors.required)&&i.affidavitForm.controls.ref_no.touched),p(6),m("disabled",!i.affidavitForm.controls.ref_no.valid))},dependencies:[Ce,wn,Dn,kn,xn,Ui,Fn,Hn,Lt],styles:['.application-form-container[_ngcontent-%COMP%]{padding:0rem .5rem .5rem;min-height:100vh;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;display:flex;align-items:flex-start}.application-form-container.check-application-page[_ngcontent-%COMP%]{flex-direction:column;gap:1.5rem}.application-form-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:2.75rem;border-radius:24px;background:linear-gradient(135deg,#022c22,#065f46 45%,#0d6449);box-shadow:0 25px 60px #0f172a4d;color:#fff;position:relative;overflow:hidden}.application-form-header[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at top right,rgba(255,255,255,.18),transparent 55%);pointer-events:none}.application-form-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%]{position:relative;z-index:1;max-width:640px}.application-form-header[_ngcontent-%COMP%] .application-form-title[_ngcontent-%COMP%]{font-size:clamp(2rem,3vw,2.75rem);font-weight:700;margin-bottom:.75rem}.application-form-header[_ngcontent-%COMP%] .application-form-subtitle[_ngcontent-%COMP%]{font-size:1.05rem;line-height:1.6;margin-bottom:1.25rem;color:#ffffffd9}.reference-badges[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.75rem}.badge-item[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.6rem;padding:.5rem 1rem;border-radius:999px;background:#0f172a47;border:1px solid rgba(255,255,255,.2);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font-size:.95rem}.badge-label[_ngcontent-%COMP%]{font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;color:#bbf7d0;font-weight:600}.badge-value[_ngcontent-%COMP%]{font-family:SFMono-Regular,Fira Code,Source Code Pro,monospace;color:#fef3c7;font-weight:600;letter-spacing:.05em}.header-actions[_ngcontent-%COMP%]{position:relative;z-index:1;display:flex;flex-direction:column;gap:.75rem;min-width:180px}.status-pill[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.6rem;padding:.6rem 1.1rem;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:#0f172a2e;color:#fff;font-weight:600;font-size:.9rem;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.status-pill.secondary[_ngcontent-%COMP%]{background:#065f4673}.status-pill[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem}.form-sections[_ngcontent-%COMP%]{width:100%;margin:0 auto}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%]{background:#fff;border-radius:24px;padding:2.4rem;margin-bottom:2rem;box-shadow:0 20px 45px #0f172a1f;border:1px solid #f1f5f9;border-left:5px solid #0d6449}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%]{margin-bottom:1.75rem;padding-bottom:1rem;border-bottom:2px solid #f1f5f9}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;font-size:1.45rem;font-weight:600;color:#0f172a}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#0d6449;font-size:1.25rem}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:.35rem 0 0;color:#64748b;font-size:1rem}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2.5rem}.form-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.5rem}.form-grid.single-column[_ngcontent-%COMP%]{grid-template-columns:1fr}.form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.65rem}.form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:600;color:#1f2937;font-size:1rem}.form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%] .required[_ngcontent-%COMP%]{color:#ef4444}.form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%]{width:100%;padding:1rem 1.1rem;border-radius:14px;border:2px solid #e2e8f0;background:#f8fafc;font-size:1rem;transition:all .3s ease;color:#0f172a}.form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%]:focus{outline:none;border-color:#0d6449;background:#fff;box-shadow:0 0 0 4px #0d64492e}.form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%]::placeholder{color:#94a3b8}.form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .input-hint[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;font-size:.9rem;color:#64748b;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:.75rem .9rem}.form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .input-hint[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#0d6449;font-size:1rem}.form-grid[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .error-message[_ngcontent-%COMP%]{color:#ef4444;font-size:.85rem;font-weight:500}.security-note[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.65rem;padding:.85rem 1.05rem;background:#0d644914;border:1px solid rgba(13,100,73,.18);border-radius:14px;color:#0f172a;font-size:.95rem}.security-note[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#0d6449;font-size:1.1rem}.divider-with-label[_ngcontent-%COMP%]{width:100%}.form-divider[_ngcontent-%COMP%]{border:none;height:1px;width:100%;background:#e2e8f0}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;gap:1rem;flex-wrap:wrap;justify-content:flex-end}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border-radius:14px;padding:.9rem 1.8rem;font-weight:600;transition:all .3s ease;letter-spacing:.01em}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .cancel-btn[_ngcontent-%COMP%]{background:#ff9f43!important;border:1px solid rgb(255,159,67)!important;color:#0f172a!important;box-shadow:0 12px 24px #ff9f4359}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .cancel-btn[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 16px 32px #ff9f4373}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .submit-btn[_ngcontent-%COMP%]{background:linear-gradient(135deg,#0d6449,#047857);border:none;color:#fff;box-shadow:0 12px 28px #0d644959}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .submit-btn[_ngcontent-%COMP%]:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 18px 35px #0d644973}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .submit-btn[_ngcontent-%COMP%]:disabled{background:linear-gradient(135deg,#94a3b8d9,#94a3b8bf);box-shadow:none;cursor:not-allowed;transform:none}@media (max-width: 768px){.application-form-header[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;padding:2.25rem}.header-actions[_ngcontent-%COMP%]{flex-direction:row;flex-wrap:wrap}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%]{padding:2rem}.support-card[_ngcontent-%COMP%]{grid-template-columns:1fr;text-align:left}.support-actions[_ngcontent-%COMP%]{justify-content:flex-start}}@media (max-width: 520px){.application-form-header[_ngcontent-%COMP%]{padding:1.8rem}.form-sections[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%]{padding:1.6rem}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{width:100%;flex-direction:column}.form-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}}*[_ngcontent-%COMP%]{transition:all .3s cubic-bezier(.4,0,.2,1)}']})}}return t})();var kae=["filter"],Fae=()=>({width:"50px",height:"50px"}),Gv=()=>({width:"50vw"}),sO=()=>({"960px":"75vw","640px":"100vw"}),Rae=t=>({name:"rrr",value:t}),Vae=t=>[t],Lae=()=>({width:"90vw",maxWidth:"800px"}),Nae=()=>["title"];function Bae(t,o){if(t&1&&(B(0),c(1,"p-blockUI",8)(2,"h1",9),g(3),d(),v(4,"p-progressSpinner",10),d(),z()),t&2){let e=f();p(),m("blocked",e.is_loading),p(2),se(" ","Fetching..."," "),p(),It(Pe(4,Fae))}}function zae(t,o){if(t&1&&(c(0,"div",11)(1,"div",12)(2,"h1",13),g(3),d()()()),t&2){let e=f();p(3),se("Application with ",e.appNo," Not Found")}}function Hae(t,o){t&1&&(c(0,"div",11)(1,"div",12)(2,"h1",13),g(3,"Please provide an application number"),d(),c(4,"p",14),g(5,"Set the appNo input to load an application for payment"),d()()())}function jae(t,o){if(t&1){let e=D();c(0,"div",87),v(1,"i",88),c(2,"span"),g(3),d(),c(4,"button",89),I("click",function(){C(e);let i=f(2);return y(i.copyApplicationRef())}),v(5,"i",90),d()()}if(t&2){let e=f(2);p(3),k(e.application==null?null:e.application.ref_no)}}function Uae(t,o){if(t&1){let e=D();c(0,"div",101)(1,"div",102)(2,"div",103),v(3,"img",104),d(),c(4,"div",105)(5,"h4",106),g(6,"Paystack"),d(),c(7,"p",107),g(8,"Secure online payment with cards"),d()()(),c(9,"div",108)(10,"div",109)(11,"span",110),g(12,"Amount"),d(),c(13,"span",111),g(14),_t(15,"currency"),d()(),c(16,"div",112)(17,"angular4-paystack",113),I("onClose",function(){C(e);let i=f(3);return y(i.cancelPaystackPayment())})("callback",function(i){C(e);let r=f(3);return y(r.processPayment(i,"paystack"))}),c(18,"button",114,0),v(20,"i",92),c(21,"span"),g(22,"Pay with Paystack"),d()()()(),c(23,"button",115),I("click",function(){C(e);let i=de(19),r=f(3);return y(r.triggerPaystackPayment(i))}),v(24,"i",92),c(25,"span"),g(26,"Pay with Paystack"),d()()()()}if(t&2){let e=f(3);p(3),m("src","data:image/png;base64,"+e.paystack_icon,Ae),p(11),k(Ji(15,7,e.getPaymentAmount("paystack"),"NGN","symbol-narrow","1.2-2")),p(3),m("email",e.paymentEmail)("amount",e.calculateAmount(e.getPaymentAmount("paystack"))*100)("ref",e.paymentReference)("key",e.paystackKey)("split_code",e.getSplitCode("paystack"))}}function qae(t,o){if(t&1){let e=D();c(0,"button",124),I("click",function(){C(e);let i=f(4);return y(i.showRrrDialog())}),v(1,"i",125),c(2,"span"),g(3,"View RRR"),d()()}}function Qae(t,o){if(t&1){let e=D();c(0,"div",116)(1,"div",102)(2,"div",103),v(3,"img",117),d(),c(4,"div",105)(5,"h4",106),g(6,"Remita"),d(),c(7,"p",107),g(8,"Bank transfer and online payment"),d()()(),c(9,"div",108)(10,"div",109)(11,"span",110),g(12,"Amount"),d(),c(13,"span",111),g(14),_t(15,"currency"),d()(),c(16,"div",118)(17,"remitapay",119),I("callback",function(i){C(e);let r=f(3);return y(r.processPayment(i,"remita"))}),c(18,"button",120,1),v(20,"i",121),c(21,"span"),g(22,"Pay with Remita"),d()()()(),c(23,"button",122),I("click",function(){C(e);let i=de(19),r=f(3);return y(r.triggerRemitaPayment(i))}),v(24,"i",121),c(25,"span"),g(26,"Pay with Remita"),d()(),_(27,qae,4,0,"button",123),d()()}if(t&2){let e=f(3);p(3),m("src",e.remitaIcon,Ae),p(11),k(Ji(15,11,e.getPaymentAmount("remita"),"NGN","symbol-narrow","1.2-2")),p(3),m("email",e.paymentEmail)("customerId",e.paymentEmail)("firstName",(e.application==null||e.application.revenuePaymentEntry==null?null:e.application.revenuePaymentEntry.payee_name)||"")("processRrr",!0)("customFields",ie(18,Vae,ie(16,Rae,e.application==null||e.application.revenuePaymentEntry==null?null:e.application.revenuePaymentEntry.rrr)))("lastName",(e.application==null||e.application.revenuePaymentEntry==null?null:e.application.revenuePaymentEntry.payee_name)||"")("amount",e.getPaymentAmount("remita"))("narration","Payment"),p(10),m("ngIf",e.application==null||e.application.revenuePaymentEntry==null?null:e.application.revenuePaymentEntry.rrr)}}function Gae(t,o){if(t&1&&(c(0,"div",126)(1,"div",102)(2,"div",103),v(3,"img",127),d(),c(4,"div",105)(5,"h4",106),g(6,"Quick Teller"),d(),c(7,"p",107),g(8,"Interswitch payment platform"),d()()(),c(9,"div",108)(10,"div",109)(11,"span",110),g(12,"Amount"),d(),c(13,"span",111),g(14),_t(15,"currency"),d()(),c(16,"div",128),g(17,"Integration coming soon"),d()()()),t&2){let e=f(3);p(14),k(Ji(15,1,e.getPaymentAmount("quickteller"),"NGN","symbol-narrow","1.2-2"))}}function Wae(t,o){if(t&1){let e=D();c(0,"div",129)(1,"div",102)(2,"div",103),v(3,"img",130),d(),c(4,"div",105)(5,"h4",106),g(6,"Cash Payment"),d(),c(7,"p",107),g(8,"Pay through any High Court agent"),d()()(),c(9,"div",108)(10,"div",109)(11,"span",110),g(12,"Amount"),d(),c(13,"span",111),g(14),_t(15,"currency"),d()(),c(16,"button",131),I("click",function(){C(e);let i=f(3);return y(i.showDialog())}),v(17,"i",132),c(18,"span"),g(19,"View Details"),d()()()()}if(t&2){let e=f(3);p(3),m("src",e.cashIcon,Ae),p(11),k(Ji(15,2,e.getPaymentAmount("revenue"),"NGN","symbol-narrow","1.2-2"))}}function Kae(t,o){if(t&1){let e=D();c(0,"div",91)(1,"div",51)(2,"h3"),v(3,"i",92),g(4," Select Payment Method"),d(),c(5,"button",93),I("click",function(){C(e);let i=f(2);return y(i.closePaySection())}),v(6,"i",94),d()(),c(7,"div",53)(8,"div",95)(9,"div",96),_(10,Uae,27,12,"div",97)(11,Qae,28,20,"div",98)(12,Gae,18,6,"div",99)(13,Wae,20,7,"div",100),d()()()()}if(t&2){let e=f(2);p(10),m("ngIf",e.allowOnlinePayment),p(),m("ngIf",e.allowRemitaPayment),p(),m("ngIf",e.allowInterswitchPayment),p(),m("ngIf",e.allowCashPayment)}}function Yae(t,o){}function Zae(t,o){if(t&1){let e=D();c(0,"button",133),I("click",function(){C(e);let i=f(2);return y(i.printpart("printCashRef"))}),d(),c(1,"button",134),I("click",function(){C(e);let i=f(2);return y(i.closeCashPayModal())}),d()}}function Jae(t,o){}function Xae(t,o){if(t&1){let e=D();c(0,"button",133),I("click",function(){C(e);let i=f(2);return y(i.printpart("printCashRef1"))}),d(),c(1,"button",134),I("click",function(){C(e);let i=f(2);return y(i.closeRrrModal())}),d()}}function $ae(t,o){if(t&1&&(c(0,"div",138),v(1,"i",139),c(2,"span",140),g(3),d()()),t&2){let e=f(3);p(3),k(e.currentDocTitle)}}function ese(t,o){if(t&1){let e=D();c(0,"div",141)(1,"button",142),I("click",function(){C(e);let i=f(3);return y(i.displayDocModal=!1)}),d(),c(2,"button",143),I("click",function(){C(e);let i=f(3);return y(i.onOpenCurrentDocument())}),d()()}}function tse(t,o){if(t&1){let e=D();B(0),c(1,"p-dialog",135),jt("visibleChange",function(i){C(e);let r=f(2);return Wt(r.displayDocModal,i)||(r.displayDocModal=i),y(i)}),_(2,$ae,4,1,"ng-template",25),c(3,"div",136),v(4,"img",137),d(),_(5,ese,3,0,"ng-template",35),d(),z()}if(t&2){let e=f(2);p(),It(Pe(4,Lae)),Ht("visible",e.displayDocModal),p(3),m("src",e.currentDoc,Ae)}}function nse(t,o){t&1&&(c(0,"span"),g(1,"Document title is required"),d())}function ise(t,o){if(t&1&&(c(0,"div",169),_(1,nse,2,0,"span",6),d()),t&2){let e,n=f().$implicit;p(),m("ngIf",(e=n.get("title"))==null||e.errors==null?null:e.errors.required)}}function ose(t,o){if(t&1){let e=D();c(0,"button",170),I("click",function(){C(e),f();let i=de(17);return y(i.click())}),d()}}function rse(t,o){if(t&1&&(c(0,"div",171),v(1,"img",172),d()),t&2){let e,n=f(),i=n.$implicit,r=n.index,a=f(4);p(),m("src",a.filePreviews[r].data,Ae)("alt",(e=i.get("title"))==null?null:e.value)}}function ase(t,o){if(t&1){let e=D();c(0,"div",157)(1,"div",158)(2,"div",159)(3,"label",160),g(4," Document Title "),c(5,"span",161),g(6),d(),c(7,"span",162),g(8,"*"),d()(),v(9,"input",163),_(10,ise,2,1,"div",164),d(),c(11,"div",159)(12,"label",160),g(13,"Upload Document"),d(),_(14,ose,1,0,"button",165)(15,rse,2,2,"div",166),c(16,"input",167,2),I("change",function(i){let r=C(e).index,a=f(4);return y(a.handleFileUpload(i,r))}),d()(),c(18,"button",168),I("click",function(){let i=C(e).index,r=f(4);return y(r.removeDocument(i))}),d()()()}if(t&2){let e,n,i=o.$implicit,r=o.index,a=f(4);m("formGroupName",r),p(6),k(r+1),p(3),$e("error",((e=i.get("title"))==null?null:e.invalid)&&((e=i.get("title"))==null?null:e.touched)),p(),m("ngIf",((n=i.get("title"))==null?null:n.invalid)&&((n=i.get("title"))==null?null:n.touched)),p(4),m("ngIf",!(a.filePreviews[r]!=null&&a.filePreviews[r].data)),p(),m("ngIf",a.filePreviews[r]==null?null:a.filePreviews[r].data)}}function sse(t,o){if(t&1){let e=D();c(0,"div",53)(1,"div",147)(2,"h4",148),g(3,"Add Document(s)"),d(),c(4,"form",149)(5,"div",150),_(6,ase,19,7,"div",151),d(),c(7,"div",152)(8,"button",153),I("click",function(){C(e);let i=f(3);return y(i.addDocument())}),d()(),c(9,"div",154)(10,"button",155),I("click",function(){C(e);let i=f(3);return i.canPreviewDoc=!1,y(i.canAddDoc=!1)}),d(),c(11,"button",156),I("click",function(){C(e);let i=f(3);return i.canPreviewDoc=!0,y(i.canAddDoc=!1)}),d()()()()()}if(t&2){let e=f(3);p(4),m("formGroup",e.documentForm),p(2),m("ngForOf",e.filesFormControl.controls),p(5),m("disabled",e.isFormInvalid)}}function lse(t,o){if(t&1&&(c(0,"div",179)(1,"div",180)(2,"span",181),g(3),d(),c(4,"h5",182),g(5),d()(),v(6,"img",183),d()),t&2){let e,n=o.$implicit,i=o.index,r=f(4);p(3),k(i+1),p(2),k((e=n.get("title"))==null?null:e.value),p(),m("src",r.filePreviews[i].data,Ae)}}function cse(t,o){if(t&1){let e=D();c(0,"div",53)(1,"div",173)(2,"h4",174),g(3,"Document Summary"),d(),c(4,"div",62),_(5,lse,7,3,"div",175),d(),c(6,"div",176)(7,"button",177),I("click",function(){C(e);let i=f(3);return i.canPreviewDoc=!1,y(i.canAddDoc=!0)}),d(),c(8,"button",178),I("click",function(){C(e);let i=f(3);return y(i.saveDoc())}),d()()()()}if(t&2){let e=f(3);p(5),m("ngForOf",e.filesFormControl.controls)}}function dse(t,o){if(t&1&&(c(0,"div",144)(1,"div",51)(2,"h3"),v(3,"i",145),g(4," Document Management"),d()(),_(5,sse,12,3,"div",146)(6,cse,9,1,"div",146),d()),t&2){let e=f(2);p(5),m("ngIf",e.canAddDoc),p(),m("ngIf",e.canPreviewDoc)}}function pse(t,o){if(t&1&&(c(0,"div",189)(1,"span",190),g(2),d(),c(3,"span",191),g(4),d()()),t&2){let e=f().$implicit;p(2),k(e.label),p(2),k(e.provided_value)}}function use(t,o){if(t&1&&(B(0),_(1,pse,5,2,"div",188),z()),t&2){let e=o.$implicit;p(),m("ngIf",e.provided_value&&e.provided_value!=="null")}}function mse(t,o){if(t&1&&(c(0,"div",184)(1,"h4",185),g(2,"Additional Information"),d(),c(3,"div",186),_(4,use,2,1,"ng-container",187),d()()),t&2){let e=f(2);p(4),m("ngForOf",e.application==null?null:e.application.formEntries)}}function fse(t,o){t&1&&(c(0,"div",192),g(1,"Not Provided"),d())}function hse(t,o){if(t&1&&v(0,"img",193),t&2){let e=f(2);m("src",e.application.passport_photo_file,Ae)}}function gse(t,o){t&1&&(c(0,"div",192),g(1,"Not Provided"),d())}function Ase(t,o){if(t&1&&v(0,"img",194),t&2){let e=f(2);m("src",e.application.signature_file,Ae)}}function _se(t,o){t&1&&(c(0,"div",192),g(1,"Not Provided"),d())}function vse(t,o){if(t&1&&v(0,"img",195),t&2){let e=f(2);m("src",e.application.identity_card_file,Ae)}}function bse(t,o){t&1&&(c(0,"tr")(1,"th"),g(2,"Document Title"),d(),c(3,"th",206),g(4,"Actions"),d()())}function Cse(t,o){if(t&1){let e=D();c(0,"tr")(1,"td")(2,"div",182),v(3,"i",207),g(4),d()(),c(5,"td",206)(6,"div",75)(7,"button",208),I("click",function(){let i=C(e).$implicit,r=f(3);return y(r.docModalOpen(i))}),d(),c(8,"button",209),I("click",function(){let i=C(e).$implicit,r=f(3);return y(r.deleteDoc(i.id))}),d()()()()}if(t&2){let e=o.$implicit;p(4),se(" ",e.title," ")}}function yse(t,o){t&1&&(c(0,"tr")(1,"td",210),v(2,"i",211),c(3,"p",212),g(4,"No documents found"),d()()())}function xse(t,o){if(t&1){let e=D();c(0,"div",50)(1,"div",51)(2,"h3"),v(3,"i",196),g(4," Uploaded Documents"),d(),c(5,"button",197),I("click",function(){C(e);let i=f(2);return y(i.openAddDocFormSection())}),v(6,"i",198),g(7," Add Document "),d()(),c(8,"div",53)(9,"div",199)(10,"div",200),v(11,"i",201),c(12,"input",202,3),I("input",function(i){C(e);let r=de(15),a=f(2);return y(a.onGlobalFilter(r,i))}),d()(),c(14,"p-table",203,4),_(16,bse,5,0,"ng-template",25)(17,Cse,9,1,"ng-template",204)(18,yse,5,0,"ng-template",205),d()()()()}if(t&2){let e=f(2);p(14),m("value",e.docs)("rows",10)("rowHover",!0)("paginator",!0)("globalFilterFields",Pe(5,Nae))}}function wse(t,o){if(t&1){let e=D();c(0,"button",213),I("click",function(){C(e);let i=f(2);return y(i.displayPaySection())}),d()}}function Ise(t,o){if(t&1){let e=D();c(0,"div",222)(1,"p",223),g(2,"To Acknowledge/Approve Query Changes"),d(),c(3,"button",224),I("click",function(){C(e);let i=f(3);return y(i.approveQueryChanges())}),d()()}}function Mse(t,o){if(t&1&&(c(0,"div",73)(1,"div",74)(2,"h3"),g(3,"Last Query"),d()(),c(4,"div",44)(5,"div",214)(6,"p",215),g(7),d(),c(8,"div",216)(9,"span",217),g(10),_t(11,"date"),d(),c(12,"div",218)(13,"span",219),g(14,"Acknowledged:"),d(),v(15,"p-tag",220),d()(),_(16,Ise,4,0,"div",221),d()()()),t&2){let e,n=f(2);p(7),k((e=n.applicationQuery==null?null:n.applicationQuery.query)!==null&&e!==void 0?e:"(not set)"),p(3),k(Xt(11,5,n.applicationQuery==null?null:n.applicationQuery.created_at,"MMM d, y, h:mm a")),p(5),m("value",n.applicationQuery!=null&&n.applicationQuery.is_acknowledged?"Yes":"No")("severity",n.applicationQuery!=null&&n.applicationQuery.is_acknowledged?"success":"danger"),p(),m("ngIf",(n.applicationQuery==null?null:n.applicationQuery.was_edited_once)&&(n.applicationQuery==null?null:n.applicationQuery.is_acknowledged)==!1)}}function Sse(t,o){if(t&1){let e=D();c(0,"button",225),I("click",function(){C(e);let i=f(2);return y(i.displayIDCardModal=!1)}),d()}}function Ese(t,o){if(t&1){let e=D();c(0,"div",11)(1,"div",15)(2,"div",16)(3,"h1",17),g(4,"Payment for Application"),d(),c(5,"p",18),g(6,"Complete payment for your affidavit application"),d()(),c(7,"div",19)(8,"div",20),v(9,"i",21),c(10,"span"),g(11),d()(),_(12,jae,6,1,"div",22),d()(),_(13,Kae,14,4,"div",23),c(14,"p-dialog",24),jt("visibleChange",function(i){C(e);let r=f();return Wt(r.displayCashModal,i)||(r.displayCashModal=i),y(i)}),_(15,Yae,0,0,"ng-template",25),c(16,"div",26),v(17,"button",27),c(18,"div",28)(19,"span",29),g(20," Copy the "),c(21,"strong",30),g(22,"Payment Reference Number"),d(),g(23," below and present to any High Court agent with the sum of "),c(24,"strong",30),g(25),_t(26,"number"),d(),g(27," to proceed with the affidavit cash payment. "),d()(),c(28,"div",31)(29,"span",32),g(30,"Payee"),d(),c(31,"div",33),g(32),d()(),c(33,"div",31)(34,"span",32),g(35,"Payment Reference Number"),d(),c(36,"div",33),g(37),c(38,"button",34),I("click",function(){C(e);let i=f();return y(i.copyCode(i.application==null||i.application.revenuePaymentEntry==null?null:i.application.revenuePaymentEntry.ref_id))}),d()()()(),_(39,Zae,2,0,"ng-template",35),d(),c(40,"p-dialog",36),jt("visibleChange",function(i){C(e);let r=f();return Wt(r.displayRrrModal,i)||(r.displayRrrModal=i),y(i)}),_(41,Jae,0,0,"ng-template",25),c(42,"div",26),v(43,"button",37),c(44,"div",28)(45,"span",29),g(46," Copy the "),c(47,"strong",30),g(48,"RRR"),d(),g(49," below and use any Remita payment channel to pay the sum of "),c(50,"strong",30),g(51),_t(52,"number"),d(),g(53," to proceed with your request. "),d()(),c(54,"div",31)(55,"span",32),g(56,"Payee"),d(),c(57,"div",33),g(58),d()(),c(59,"div",31)(60,"span",32),g(61,"RRR"),d(),c(62,"div",33),g(63),c(64,"button",38),I("click",function(){C(e);let i=f();return y(i.copyCode(i.application==null||i.application.revenuePaymentEntry==null?null:i.application.revenuePaymentEntry.rrr))}),d()()()(),_(65,Xae,2,0,"ng-template",35),d(),_(66,tse,6,5,"ng-container",6),c(67,"div",39)(68,"div",40),_(69,dse,7,2,"div",41),c(70,"div",42)(71,"div",43)(72,"div",44)(73,"h4",45),g(74,"Application ID"),d(),c(75,"p",46),g(76),d()()(),c(77,"div",47)(78,"div",44)(79,"h4",45),g(80,"Affidavit Type"),d(),c(81,"p",46),g(82),d()()(),c(83,"div",48)(84,"div",44)(85,"h4",45),g(86,"Deponent Name"),d(),c(87,"p",46),g(88),d()()(),c(89,"div",49)(90,"div",44)(91,"h4",45),g(92,"Payment Status"),d(),c(93,"p",46),g(94),d()()()(),c(95,"div",50)(96,"div",51)(97,"h3"),v(98,"i",52),g(99," Personal Information"),d()(),c(100,"div",53)(101,"div",54)(102,"div",55)(103,"span",56),g(104,"Deponent NIN"),d(),c(105,"span",57),g(106),d()(),c(107,"div",55)(108,"span",56),g(109,"Native Town"),d(),c(110,"span",57),g(111),d()(),c(112,"div",55)(113,"span",56),g(114,"Country of Origin"),d(),c(115,"span",57),g(116),d()(),c(117,"div",55)(118,"span",56),g(119,"State of Origin"),d(),c(120,"span",57),g(121),d()(),c(122,"div",55)(123,"span",56),g(124,"Place of Residence"),d(),c(125,"span",57),g(126),d()(),c(127,"div",55)(128,"span",56),g(129,"Occupation"),d(),c(130,"span",57),g(131),d()(),c(132,"div",55)(133,"span",56),g(134,"Gender"),d(),c(135,"span",57),g(136),d()(),c(137,"div",55)(138,"span",56),g(139,"Religion"),d(),c(140,"span",57),g(141),d()()()()(),c(142,"div",50)(143,"div",51)(144,"h3"),v(145,"i",58),g(146," Affidavit Details"),d()(),c(147,"div",53)(148,"div",59)(149,"span",56),g(150,"Affidavit Title"),d(),c(151,"span",57),g(152),d()(),_(153,mse,5,1,"div",60),d()(),c(154,"div",50)(155,"div",51)(156,"h3"),v(157,"i",61),g(158," Supporting Documents"),d()(),c(159,"div",53)(160,"div",62)(161,"div",63)(162,"span",64),g(163,"Passport Photo"),d(),c(164,"div",65),_(165,fse,2,0,"div",66)(166,hse,1,1,"img",67),d()(),c(167,"div",63)(168,"span",64),g(169,"Signature Photo"),d(),c(170,"div",65),_(171,gse,2,0,"div",66)(172,Ase,1,1,"img",68),d()(),c(173,"div",63)(174,"span",64),g(175,"ID Card"),d(),c(176,"div",65),_(177,_se,2,0,"div",66)(178,vse,1,1,"img",69),d()(),c(179,"div",63)(180,"span",64),g(181,"Preferred Court"),d(),c(182,"div",65)(183,"span",70),g(184),d()()()()()(),_(185,xse,19,6,"div",71),d(),c(186,"div",72)(187,"div",73)(188,"div",74)(189,"h3"),g(190,"Quick Actions"),d()(),c(191,"div",44)(192,"div",75),_(193,wse,1,0,"button",76),d()()(),c(194,"div",73)(195,"div",74)(196,"h3"),g(197,"Applicant Information"),d()(),c(198,"div",44)(199,"div",77)(200,"div",78),v(201,"i",79),c(202,"span"),g(203),d()(),c(204,"div",80),v(205,"i",81),c(206,"span"),g(207),d()()()()(),_(208,Mse,17,8,"div",82),d()(),c(209,"p-dialog",83),jt("visibleChange",function(i){C(e);let r=f();return Wt(r.displayIDCardModal,i)||(r.displayIDCardModal=i),y(i)}),c(210,"div",84),v(211,"img",85),d(),_(212,Sse,1,0,"ng-template",35),d(),v(213,"p-toast",86),d()}if(t&2){let e=f();p(8),m("ngClass",e.getStatusClass()),p(),$e("pi-check-circle",(e.application==null?null:e.application.status)==="approved")("pi-clock",(e.application==null?null:e.application.status)==="pending"||(e.application==null?null:e.application.status)==="draft")("pi-exclamation-triangle",(e.application==null?null:e.application.status)==="queried"),p(2),k(e.getStatusText()),p(),m("ngIf",e.application==null?null:e.application.ref_no),p(),m("ngIf",e.displayPaymentSection),p(),It(Pe(70,Gv)),Ht("visible",e.displayCashModal),m("closable",!1)("modal",!0)("breakpoints",Pe(71,sO)),p(11),se("\u20A6",Xt(26,64,e.getPaymentAmount("revenue"),"1.2-2"),""),p(7),k(e.application==null?null:e.application.deponent_name),p(5),se(" ",e.application==null||e.application.revenuePaymentEntry==null?null:e.application.revenuePaymentEntry.ref_id," "),p(3),It(Pe(72,Gv)),Ht("visible",e.displayRrrModal),m("closable",!1)("modal",!0)("breakpoints",Pe(73,sO)),p(11),se("\u20A6",Xt(52,67,e.getPaymentAmount("remita"),"1.2-2"),""),p(7),k(e.application==null?null:e.application.deponent_name),p(5),se(" ",(e.application==null||e.application.revenuePaymentEntry==null?null:e.application.revenuePaymentEntry.rrr)||"Not Set"," "),p(3),m("ngIf",e.displayDocModal),p(3),m("ngIf",e.canPreviewDoc||e.canAddDoc),p(7),k((e.application==null?null:e.application.ref_no)||"Not available"),p(6),k((e.application==null?null:e.application.affidavit_type_name)||"Not set"),p(6),k((e.application==null?null:e.application.deponent_name)||"Not set"),p(),m("ngClass",e.application!=null&&e.application.is_paid?"success":"warning"),p(5),k(e.application!=null&&e.application.is_paid?"Paid":"Not Paid"),p(12),k(e.application.deponent_nin||"Not set"),p(5),k(e.application.town_native||"Not set"),p(5),k(e.application.state.country.name||"Not set"),p(5),k(e.application.state.name||"Not set"),p(5),k(e.application.town_resident||"Not set"),p(5),k(e.application.occupation||"Not set"),p(5),k(e.application.gender||"Not set"),p(5),k(e.application.religion||"Not set"),p(11),k(e.application.affidavit_type_name||"Not set"),p(),m("ngIf",e.application.formEntries==null?null:e.application.formEntries.length),p(12),m("ngIf",!e.application.passport_photo_file),p(),m("ngIf",e.application.passport_photo_file),p(5),m("ngIf",!e.application.signature_file),p(),m("ngIf",e.application.signature_file),p(5),m("ngIf",!e.application.identity_card_file),p(),m("ngIf",e.application.identity_card_file),p(6),k((e.application==null||e.application.court==null?null:e.application.court.name)||"Value not set"),p(),m("ngIf",e.docs.length>0),p(8),m("ngIf",!(e.application!=null&&e.application.is_paid)),p(10),k((e.application==null?null:e.application.applicant_email)||"Not provided"),p(4),k((e.application==null?null:e.application.applicant_phone)||"Not provided"),p(),m("ngIf",e.applicationQuery==null?null:e.applicationQuery.query),p(),It(Pe(74,Gv)),Ht("visible",e.displayIDCardModal),m("modal",!0)("draggable",!1)("resizable",!1),p(2),m("src",e.application.identity_photo_file||e.application.passport_photo_file,Ae)}}var lO=(()=>{class t{set token(e){this.applyToken(e)}get token(){return this._token}set appNo(e){e&&e!==this._appNo&&(this._appNo=e,this._isInitialized&&this.loadApplication())}get appNo(){return this._appNo}set apiTokenAttr(e){this.applyToken(e)}constructor(e,n,i,r,a,s,l,u,h,A,b,x,w,S,O){this.router=e,this.fb=n,this.messageService=i,this.paymentEndpoint=r,this.clipboardApi=a,this.appNotificationService=s,this.paymentKeysEndpoint=l,this.affidavitPageStore=u,this.affidavitAppEndpoint=h,this.paymentOptionsSettingEndpoint=A,this.affidavitApplicationEndpoint=b,this.affidavitApplicationQueryEndpoint=x,this.affidavitAppDocEndpoint=w,this.el=S,this.renderer=O,this._appNo="",this._token="",this.shouldDisplayDetails=!1,this.overlay=!0,this.handlePayment=new V,this.overlayClose=new V(!1),this._isInitialized=!1,this.paystack_icon=pt.paystack_icon,this.remita_icon=pt.remita_icon,this.remitaIcon=pt.remita_icon,this.cash_icon=pt.cash_icon,this.cashIcon=pt.cash_icon,this.lastPaymentRef="",this.paymentEmail="",this.paymentAmount=0,this.paystackKey="",this.remitaKey="",this.remitaMode="",this.apiMode=null,this.apiBaseUrl="",this.pdfLogo="assets/images/logo-pdf.png",this.docxLogo="assets/images/logo-docx.png",this.docLogo="assets/images/logo-doc.jpeg",this.allowCashPayment=!1,this.allowOnlinePayment=!1,this.allowRemitaPayment=!1,this.allowInterswitchPayment=!1,this.displayRrrModal=!1,this.displayCashModal=!1,this.is_loading=!0,this.currentState=me.currentState,this.no_image=pt.no_image,this.canPreviewDoc=!1,this.canAddDoc=!1,this.displayDocModal=!1,this.currentDoc="",this.currentDocTitle="",this.currentDocFile="",this.filePreviews=[],this.docs=[],this.canEdit=!1,this.hasQuery=!1,this.displayIDCardModal=!1,this.displayPaymentSection=!1,this.showHeader=!0,this.previewAffidavit=!1,this.allowPassportUpload=!1,this.allowOathCommissionerSignaturePhoto=!1,this.stateTitle=me.stateTitleSentence,this.documentForm=this.fb.group({files:this.fb.array([this.fb.group({title:["",K.required,K.min(2)],file:["",K.required]})])}),this.affidavitPageStore.mode$.subscribe({next:R=>{this.apiMode=R;let L=this.apiMode??Fe.TEST;this.apiBaseUrl=L===Fe.PRODUCTION?me.productionApiUrl:me.testApiUrl}})}ngOnInit(){this._isInitialized=!0,this.appNo&&!this.shouldDisplayDetails&&(this.shouldDisplayDetails=!0),this.appNo||(this.is_loading=!1),this.appNo&&this.loadApplication(),this.paymentOptionsSettingEndpoint.single(1).subscribe({next:e=>{this.paymentSetting=e.data,this.allowCashPayment=this.paymentSetting?.allow_cash_payment,this.allowOnlinePayment=this.paymentSetting?.allow_online_payment}}),this.paymentKeysEndpoint.fetchPaymentKeys().subscribe({next:e=>{this.paystackKey=e.paystack_key,this.remitaKey=e.remita_key,this.remitaMode=e.remita_mode}}),setTimeout(()=>{!(this.overlay===!1||this.overlay==="false")&&this.createOverlayHost()},200)}loadApplication(){this.appNo&&(this.is_loading=!0,this.affidavitAppEndpoint.singleByRefNo(this.appNo).subscribe({next:e=>{this.application=e.data,this.is_loading=!1,this.loadPaymentInfo()},error:e=>{this.appNotificationService.showError({title:e.error,detail:e.message}),this.is_loading=!1,this.affidavitPageStore.toggle("new")}}))}onGlobalFilter(e,n){e.filterGlobal(n.target.value,"contains")}clear(e){e.clear(),this.filter.nativeElement.value=""}loadPaymentInfo(){this.paymentEmail=this.application?.applicant_email??"",this.paymentAmount=this.application?.revenuePaymentEntry?.total*100}get paymentReference(){return this.lastPaymentRef=this.application?.revenuePaymentEntry?.ref_id+"__"+Date.now().toString(),this.lastPaymentRef}calculateAmount(e){return El(e)}closeCashPayModal(){this.displayCashModal=!1}copyRefNo(){this.clipboardApi.copyFromContent(this.application?.ref_no),this.messageService.add({severity:"success",summary:this.application?.ref_no,detail:"Was Copied Successfully"})}displayPaySection(){this.displayPaymentSection=!0}closePaySection(){this.displayPaymentSection=!1}getPaymentAmount(e){return(this.application?.split_codes?.find(r=>r.payment_method.code===e)?.payment_method.txn_fee??0)+(this.application?.revenuePaymentEntry?.total||0)}cancelPaystackPayment(){console.log("Paystack Payment cancelled...")}closeRrrModal(){this.displayRrrModal=!1}getSplitCode(e){let n=this.application?.split_codes?.find(r=>r.payment_method.code===e),i=n?.split_codes.code;if((n?.split_codes.type=="json"||n?.split_codes.type=="calculated")&&(i=JSON.parse(JSON.stringify(i)),n.split_codes.type=="calculated")){let r=n.split_codes.amount_field,a=JSON.parse(i);a.forEach(s=>{s[r]=r.percentage/100*(this.application?.revenuePaymentEntry?.total||1)}),i=a}return i||""}processPayment(e,n){let i;switch(n){case si.PAYSTACK:i={email:this.paymentEmail,amount:this.paymentAmount,client_tx_ref:e.reference,host_tx_ref:e.transaction,prn:this.application?.revenuePaymentEntry?.ref_id,host_response_payload:JSON.stringify(e),payment_method:si.PAYSTACK};break;case si.REMITA:i={email:this.paymentEmail,amount:this.paymentAmount,client_tx_ref:this.lastPaymentRef,host_tx_ref:e.transaction,prn:this.application?.revenuePaymentEntry?.ref_id,host_response_payload:JSON.stringify(e),payment_method:si.REMITA};break;default:return}this.paymentEndpoint.processPayment(i).subscribe({next:()=>{this.appNotificationService.showSuccess({title:"Success!!",detail:"Your payment has been recieved!"}),this.application=Me(q({},this.application),{is_paid:!0,status:"pending",revenuePaymentEntry:Me(q({},this.application.revenuePaymentEntry),{status:"paid"})}),this.displayPaymentSection=!1,this.handlePayment.emit({status:"success",data:this.application.revenuePaymentEntry})},error:r=>{this.handlePayment.emit({status:"error",data:r}),this.appNotificationService.showError({title:"Error!!",detail:r.message||r})}})}showRrrDialog(){this.displayRrrModal=!0}copyCode(e){this.clipboardApi.copyFromContent(e),this.messageService.add({severity:"success",summary:e,detail:"Was Copied Successfully"})}showDialog(){this.displayCashModal=!0}approveQueryChanges(){this.affidavitPageStore.startLoading("Acknowledging Query . . ."),this.affidavitApplicationEndpoint.aknowledgeQueryChanges(this.application?.ref_no).subscribe({next:e=>{this.application=e.data,this.affidavitPageStore.stopLoading(),this.application?.last_query_id&&(this.hasQuery=!0,this.loadQuery(this.application?.last_query_id)),this.appNotificationService.showSuccess({title:"Success!!",detail:"Your changes have been submitted successfully!"})},error:e=>{this.affidavitPageStore.stopLoading(),this.appNotificationService.showError({title:"Error!!",detail:e.message||e})}})}loadQuery(e){return Yn(this,null,function*(){this.applicationQuery=(yield this.affidavitApplicationQueryEndpoint.single(e).toPromise())?.data})}openAddDocFormSection(){this.canAddDoc=!0,this.canPreviewDoc=!1,window.scrollTo({top:0,left:0,behavior:"smooth"})}onOpenCurrentDocument(){this.router.navigate([]).then(e=>{window.open(this.apiBaseUrl+"/file/get/"+this.currentDocFile,"_blank")})}addDocument(){if(this.filesFormControl.controls.some(n=>n.get("file")?.value==""||n.get("title")?.value=="")){this.appNotificationService.showInfo({title:"Complete current entries first"});return}this.filesFormControl.push(this.fb.group({title:["",K.required,K.min(2)],file:["",K.required]})),this.filePreviews.push({type:"unknown",data:null})}removeDocument(e){this.filesFormControl.removeAt(e),this.filePreviews.splice(e,1)}docModalOpen(e){this.currentDocFile=e.doc_name,this.currentDoc=this.validateFile(this.currentDocFile),this.currentDocTitle=e.title,this.displayDocModal=!0}handleFileUpload(e,n){let i=e.target.files[0];if(i){let r=i.type,a=new FileReader;r.startsWith("image/")?(a.onload=()=>{this.filePreviews[n]={type:"image",data:a.result}},a.readAsDataURL(i)):r==="application/pdf"?this.filePreviews[n]={type:"pdf",data:"assets/images/logo-pdf.png"}:(r==="application/msword"||r==="application/vnd.openxmlformats-officedocument.wordprocessingml.document")&&(this.filePreviews[n]={type:"doc",data:"assets/images/logo-doc.jpeg"}),this.filesFormControl.at(n).patchValue({file:i})}}get filesFormControl(){return this.documentForm.controls.files}get isFormInvalid(){return this.filesFormControl.invalid}deleteDoc(e){let n=this.docs.find(i=>i.id===e);n&&(this.affidavitPageStore.startLoading("Deleting ..."),this.affidavitAppDocEndpoint.delete(n.id).subscribe({next:()=>{let i=this.docs.filter(r=>r.id!==n.id);this.affidavitPageStore.stopLoading(),this.appNotificationService.showSuccess({title:"Document",detail:"Removed Successfully!"}),this.docs=i},error:()=>{this.affidavitPageStore.stopLoading(),this.appNotificationService.showError({title:"Error!!",detail:"An error occurred while deleting your document(s)..."})}}))}saveDoc(){if(this.filesFormControl.controls.some(r=>r.get("file")?.value==""||r.get("title")?.value=="")){this.appNotificationService.showInfo({title:"Finish all entries to submit"});return}let n={files:this.filesFormControl.controls.map((r,a)=>({file:r.get("file")?.value,title:r.get("title")?.value}))},i=new FormData;i.append("app_id",this.application.id.toString()),n.files.forEach((r,a)=>{i.append(`files[${a}][file]`,r.file),i.append(`files[${a}][title]`,r.title)}),this.affidavitPageStore.startLoading("Upoading Document(s) . . ."),this.affidavitAppDocEndpoint.create(i).subscribe({next:r=>{},error:r=>{this.affidavitPageStore.stopLoading(),this.appNotificationService.showError({title:"Error!!",detail:r.message||r})},complete:()=>{this.affidavitPageStore.stopLoading(),this.appNotificationService.showSuccess({title:"Document(s)",detail:"Added Successfully!"}),window.location.reload()}})}validateFile(e){if(e){let n=e.slice(-4),i=this.apiBaseUrl+"/file/get/"+e;switch(n){case".pdf":i=this.pdfLogo;break;case".doc":i=this.docLogo;break;case"docx":i=this.docxLogo;break;case"":i="assets/images/noimage.gif";break}return i}return""}getStatusClass(){switch(this.application?.status){case"approved":return"success";case"queried":return"danger";case"pending":case"draft":return"warning";default:return"default"}}getStatusText(){switch(this.application?.status){case"approved":return"Approved";case"queried":return"Queried";case"pending":return"Pending";case"draft":return"Draft";default:return"Unknown"}}isPaymentMethodAllowed(e){return this.application?.split_codes?this.application.split_codes.some(n=>n.payment_method?.code===e):!1}triggerPaystackPayment(e){e&&e.click()}triggerRemitaPayment(e){e&&e.click()}copyApplicationRef(){this.copyRefNo()}printpart(e="printCashRef"){let n=document.getElementById(e);if(!n)return;let i=window.open("");i?.document.write(n.innerHTML),i?.stop(),i?.print(),i?.close()}applyToken(e){let n=e??"";this._token=n,n&&this.affidavitPageStore.setToken(n)}createOverlayHost(){try{let e=this.el.nativeElement;if(e.__hc_overlay_refs)return;this.ensureOverlayStyles();let n=this.renderer.createElement("div");this.renderer.addClass(n,"hc-overlay-backdrop"),this.renderer.setAttribute(n,"tabindex","-1");let i=this.renderer.createElement("div");this.renderer.addClass(i,"hc-overlay-panel");let r=this.renderer.createElement("button");this.renderer.addClass(r,"hc-overlay-close"),this.renderer.setAttribute(r,"aria-label","Close"),this.renderer.listen(r,"click",()=>this.closeOverlay()),this.renderer.appendChild(i,r);let a=e.parentElement;this.renderer.appendChild(i,e),this.renderer.appendChild(n,i),this.renderer.appendChild(document.body,n),setTimeout(()=>{try{this.renderer.addClass(n,"hc-overlay-open"),this.renderer.addClass(i,"hc-overlay-open"),this.renderer.addClass(document.body,"hc-overlay-open")}catch{}},20);let s=document&&document.activeElement||null,l=document.body.style.overflow;document.body.style.overflow="hidden";let u=h=>{h.key==="Escape"&&this.closeOverlay(),h.key==="Tab"&&this.maintainFocus(h,i)};window.addEventListener("keydown",u),this.renderer.setAttribute(i,"role","dialog"),this.renderer.setAttribute(i,"aria-modal","true"),this.renderer.setAttribute(i,"tabindex","-1"),setTimeout(()=>{try{i.focus()}catch{}},0),e.__hc_overlay_refs={backdrop:n,keyHandler:u,originalParent:a,prevFocus:s,prevOverflow:l}}catch(e){console.warn("Failed to create overlay for pay-affidavit:",e)}}closeOverlay(){this.overlayClose.emit(!0),console.log("Overlay Closed");let e=this.el.nativeElement,n=e.__hc_overlay_refs;if(n)try{let{backdrop:i,keyHandler:r,originalParent:a,prevFocus:s,prevOverflow:l}=n;window.removeEventListener("keydown",r),i&&i.parentNode&&i.parentNode.removeChild(i),a&&e&&e.parentElement&&e.parentElement!==a&&a.appendChild(e);try{this.renderer.removeClass(document.body,"hc-overlay-open"),l!==void 0&&(document.body.style.overflow=l)}catch{}try{s&&s.focus&&s.focus()}catch{}delete e.__hc_overlay_refs}catch{}}maintainFocus(e,n){if(e.key!=="Tab")return;let i=n.querySelectorAll('a[href], area[href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, [tabindex]:not([tabindex="-1"]), [contenteditable]'),r=Array.prototype.slice.call(i);if(!r.length){e.preventDefault();return}let a=r[0],s=r[r.length-1],l=document.activeElement;e.shiftKey?(l===a||l===n)&&(e.preventDefault(),s.focus()):l===s&&(e.preventDefault(),a.focus())}ensureOverlayStyles(){if(document.querySelector("style[data-hc-overlay-component]"))return;let e=`
|
|
595
595
|
/* Full-page backdrop - Paystack/Remita style */
|
|
596
596
|
.hc-overlay-backdrop {
|
|
597
597
|
position: fixed !important;
|
|
@@ -831,7 +831,7 @@ body.hc-overlay-open {
|
|
|
831
831
|
body.hc-overlay-open {
|
|
832
832
|
overflow: hidden !important;
|
|
833
833
|
}
|
|
834
|
-
`,n=document.createElement("style");n.setAttribute("data-hc-overlay-component",""),n.innerHTML=e,document.head.appendChild(n)}static{this.\u0275fac=function(n){return new(n||t)(M(xo),M(Mi),M(wi),M(fa),M(Ol),M(Mn),M(ha),M(Te),M(ai),M(oo),M(oi),M(ga),M(Jm),M(ve),M(Ne))}}static{this.\u0275cmp=N({type:t,selectors:[["pay-affidavit"]],viewQuery:function(n,i){if(n&1&&ae(kae,5),n&2){let r;Q(r=G())&&(i.filter=r.first)}},inputs:{shouldDisplayDetails:"shouldDisplayDetails",overlay:"overlay",token:"token",appNo:"appNo",apiTokenAttr:[E.None,"api-token","apiTokenAttr"]},outputs:{handlePayment:"handlePayment"},decls:5,vars:4,consts:[["paystackButton",""],["remitaButton",""],["documentFile",""],["filter",""],["dt1",""],[1,"pay-affidavit-wrapper"],[4,"ngIf"],["class","application-detail-container",4,"ngIf"],[3,"blocked"],[1,"text-white"],["styleClass","custom-spinner","strokeWidth","8","fill","var(--surface-ground)","animationDuration",".5s"],[1,"application-detail-container"],[1,"section-card",2,"text-align","center","padding","4rem 2rem"],[1,"text-700","font-xl","mb-3"],[1,"text-500"],[1,"application-header"],[1,"header-content"],[1,"application-title"],[1,"application-subtitle"],[1,"header-actions"],[1,"status-badge",3,"ngClass"],[1,"pi"],["class","ref-number",4,"ngIf"],["class","section-card payment-section mb-3",4,"ngIf"],["id","printCashRef",3,"visibleChange","visible","closable","modal","breakpoints"],["pTemplate","header"],[1,"cash-modal"],["pButton","","type","button","label","CASH PAYMENT INFORMATION","disabled","",1,"p-button-outlined","p-button-success","w-full","text-xl"],[1,"alert-body","printRef"],[1,"blck-font","text-lg","font-bold","d-block"],[1,"green-font"],[1,"modal-field"],[1,"label"],[1,"value"],["pButton","","type","button","icon","pi pi-clone","title","Copy Reference Number",1,"p-button-outlined","p-button-success","p-button-rounded",3,"click"],["pTemplate","footer"],["id","printCashRef1",3,"visibleChange","visible","closable","modal","breakpoints"],["pButton","","type","button","label","Remita RRR Information","disabled","",1,"p-button-outlined","p-button-success","w-full","text-xl"],["pButton","","type","button","icon","pi pi-clone","title","Copy RRR",1,"p-button-outlined","p-button-success","p-button-rounded",3,"click"],[1,"content-grid"],[1,"main-content"],["class","section-card document-section",4,"ngIf"],[1,"overview-grid"],[1,"overview-card","primary"],[1,"card-content"],[1,"card-title"],[1,"card-value"],[1,"overview-card","secondary"],[1,"overview-card","success"],[1,"overview-card",3,"ngClass"],[1,"section-card"],[1,"section-header"],[1,"pi","pi-user"],[1,"section-content"],[1,"info-grid"],[1,"info-item"],[1,"info-label"],[1,"info-value"],[1,"pi","pi-file-text"],[1,"affidavit-title"],["class","form-entries",4,"ngIf"],[1,"pi","pi-images"],[1,"documents-grid"],[1,"document-item"],[1,"doc-label"],[1,"doc-content"],["class","no-doc",4,"ngIf"],["class","doc-image","onerror","this.src=no_image;","alt","Passport Photo",3,"src",4,"ngIf"],["class","doc-image","onerror","this.src=no_image;","alt"," Signature Photo",3,"src",4,"ngIf"],["class","doc-image","onerror","this.src=no_image;","alt","ID Card",3,"src",4,"ngIf"],[1,"court-name"],["class","section-card",4,"ngIf"],[1,"sidebar"],[1,"sidebar-card"],[1,"card-header"],[1,"action-buttons"],["pButton","","type","button","icon","pi pi-credit-card","label","Proceed to Payment","class","action-btn success",3,"click",4,"ngIf"],[1,"contact-info"],[1,"info-row","mb-3"],[1,"pi","pi-envelope","text-primary","mr-3"],[1,"info-row"],[1,"pi","pi-phone","text-primary","mr-3"],["class","sidebar-card",4,"ngIf"],["header","Identity Card",3,"visibleChange","visible","modal","draggable","resizable"],[1,"modal-content"],["onerror","this.src='assets/images/id-vector.png';","alt","Identity Card",1,"id-image",3,"src"],["position","top-right"],[1,"ref-number"],[1,"pi","pi-hashtag"],["type","button","pTooltip","Copy to clipboard",1,"copy-btn",3,"click"],[1,"pi","pi-copy"],[1,"section-card","payment-section","mb-3"],[1,"pi","pi-credit-card"],["type","button",1,"close-btn",3,"click"],[1,"pi","pi-times"],[1,"payment-gateway-container"],[1,"payment-methods-grid"],["class","payment-method-card paystack-card",4,"ngIf"],["class","payment-method-card remita-card",4,"ngIf"],["class","payment-method-card quickteller-card",4,"ngIf"],["class","payment-method-card cash-card",4,"ngIf"],[1,"payment-method-card","paystack-card"],[1,"payment-card-header"],[1,"payment-icon"],["alt","Paystack",1,"payment-logo",3,"src"],[1,"payment-info"],[1,"payment-title"],[1,"payment-description"],[1,"payment-card-content"],[1,"payment-amount"],[1,"amount-label"],[1,"amount-value"],[1,"hidden-paystack-wrapper"],[3,"onClose","callback","email","amount","ref","key","split_code"],["type","button",1,"hidden-paystack-btn"],["type","button",1,"modern-paystack-btn-custom",3,"click"],[1,"payment-method-card","remita-card"],["alt","Remita",1,"payment-logo",3,"src"],[1,"hidden-remita-wrapper"],[3,"callback","email","customerId","firstName","processRrr","customFields","lastName","amount","narration"],["type","button",1,"hidden-remita-btn"],[1,"pi","pi-building"],["type","button",1,"modern-remita-btn-custom",3,"click"],["type","button","class","view-rrr-btn",3,"click",4,"ngIf"],["type","button",1,"view-rrr-btn",3,"click"],[1,"pi","pi-eye"],[1,"payment-method-card","quickteller-card"],["src","assets/images/quick-teller.png","alt","Quickteller",1,"payment-logo"],[1,"coming-soon-note"],[1,"payment-method-card","cash-card"],["alt","Cash",1,"payment-logo",3,"src"],["type","button",1,"modern-cash-btn",3,"click"],[1,"pi","pi-wallet"],["pButton","","type","button","icon","pi pi-print","label","Print",1,"p-button-success",3,"click"],["pButton","","type","button","icon","pi pi-times","label","Close",1,"p-button-outlined","p-button-danger",3,"click"],[3,"visibleChange","visible"],[1,"document-preview"],["alt","Document","onerror","this.src=no_image;",1,"document-image",3,"src"],[1,"dialog-header"],[1,"pi","pi-file-pdf","text-red-500","mr-3"],[1,"text-xl","font-semibold"],[1,"dialog-actions"],["pButton","","type","button","icon","pi pi-times","label","Close",1,"p-button-warning",3,"click"],["pButton","","type","button","icon","pi pi-download","label","Download",1,"p-button-success",3,"click"],[1,"section-card","document-section"],[1,"pi","pi-upload"],["class","section-content",4,"ngIf"],[1,"form-container"],[1,"form-title"],[1,"document-form",3,"formGroup"],["formArrayName","files",1,"form-fields"],["class","document-field",3,"formGroupName",4,"ngFor","ngForOf"],[1,"form-actions"],["pButton","","type","button","icon","pi pi-plus","label","Add Document",1,"add-btn",3,"click"],[1,"form-footer"],["pButton","","type","button","icon","pi pi-times","label","Cancel",1,"cancel-btn",3,"click"],["pButton","","type","button","icon","pi pi-eye","label","Preview",1,"preview-btn",3,"click","disabled"],[1,"document-field",3,"formGroupName"],[1,"field-row"],[1,"field-group"],[1,"field-label"],[1,"field-number"],[1,"required"],["type","text","maxlength","50","formControlName","title","placeholder","Enter document title...",1,"form-input"],["class","error-message",4,"ngIf"],["pButton","","pRipple","","type","button","class","upload-btn","icon","pi pi-upload","label","Upload",3,"click",4,"ngIf"],["class","file-preview",4,"ngIf"],["type","file","formControlName","file","accept","image/*, application/pdf",1,"hidden",3,"change"],["pButton","","type","button","icon","pi pi-times",1,"remove-btn",3,"click"],[1,"error-message"],["pButton","","pRipple","","type","button","icon","pi pi-upload","label","Upload",1,"upload-btn",3,"click"],[1,"file-preview"],["onerror","this.src='assets/images/noimage.gif';",1,"preview-image",3,"src","alt"],[1,"summary-container"],[1,"summary-title"],["class","document-card",4,"ngFor","ngForOf"],[1,"summary-actions"],["pButton","","type","button","icon","pi pi-arrow-left","label","Back to Edit",1,"back-btn",3,"click"],["pButton","","type","button","icon","pi pi-save","label","Save Documents",1,"save-btn",3,"click"],[1,"document-card"],[1,"doc-header"],[1,"doc-number"],[1,"doc-title"],["alt","Document","onerror","this.src='assets/images/noimage.gif';",1,"doc-image",3,"src"],[1,"form-entries"],[1,"entries-title"],[1,"entries-grid"],[4,"ngFor","ngForOf"],["class","entry-item",4,"ngIf"],[1,"entry-item"],[1,"entry-label"],[1,"entry-value"],[1,"no-doc"],["onerror","this.src=no_image;","alt","Passport Photo",1,"doc-image",3,"src"],["onerror","this.src=no_image;","alt"," Signature Photo",1,"doc-image",3,"src"],["onerror","this.src=no_image;","alt","ID Card",1,"doc-image",3,"src"],[1,"pi","pi-folder-open"],["type","button",1,"add-doc-btn",3,"click"],[1,"pi","pi-plus"],[1,"table-container"],[1,"search-bar"],[1,"pi","pi-search","search-icon"],["pInputText","","type","text","placeholder","Search documents...",1,"search-input",3,"input"],["dataKey","ref_no","responsiveLayout","scroll",1,"documents-table",3,"value","rows","rowHover","paginator","globalFilterFields"],["pTemplate","body"],["pTemplate","emptymessage"],[1,"text-center"],[1,"pi","pi-file-pdf","text-red-500","mr-2"],["pButton","","type","button","icon","pi pi-eye","pTooltip","View Document","tooltipPosition","top",1,"view-btn",3,"click"],["pButton","","type","button","icon","pi pi-trash","pTooltip","Delete Document","tooltipPosition","top",1,"delete-btn",3,"click"],["colspan","2",1,"text-center","py-8"],[1,"pi","pi-folder-open","text-4xl","text-muted","mb-2","block"],[1,"text-muted"],["pButton","","type","button","icon","pi pi-credit-card","label","Proceed to Payment",1,"action-btn","success",3,"click"],[1,"query-content"],[1,"query-text"],[1,"query-meta"],[1,"query-date"],[1,"query-status"],[1,"status-label"],["styleClass","ml-2",3,"value","severity"],["class","query-actions",4,"ngIf"],[1,"query-actions"],[1,"query-hint"],["pButton","","type","button","icon","pi pi-check","label","Click here!",1,"approve-btn",3,"click"],["pButton","","type","button","icon","pi pi-check","label","Close",1,"p-button-danger","p-button-outlined",3,"click"]],template:function(n,i){n&1&&(c(0,"div",5),_(1,Bae,5,5,"ng-container",6)(2,zae,4,1,"div",7)(3,Hae,6,0,"div",7)(4,Ese,214,75,"div",7),d()),n&2&&(p(),m("ngIf",i.is_loading===!0),p(),m("ngIf",!i.application&&!i.is_loading&&i.appNo),p(),m("ngIf",!i.appNo&&!i.is_loading),p(),m("ngIf",i.application&&i.shouldDisplayDetails&&!i.is_loading))},dependencies:[De,rt,Ce,wn,Dn,kn,xn,bo,Fn,Hn,Qo,Ii,pl,_m,Lt,fe,$o,In,Wo,If,fl,Dl,er,gd,wt,rl,al,Uo],styles:['@media print{@page{margin:0!important;padding:0!important}.no-print[_ngcontent-%COMP%], .show[_ngcontent-%COMP%], .main-page[_ngcontent-%COMP%]{visibility:hidden!important;background-color:#fff!important}.printRef[_ngcontent-%COMP%]{max-width:100%!important;height:100px!important;flex:0 0 100%!important}.modal-content[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{visibility:visible;overflow:visible}.main-page[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{display:none}.modal[_ngcontent-%COMP%]{position:absolute;left:0;top:0;margin:0;padding:0;visibility:visible;overflow:visible!important}.modal-dialog[_ngcontent-%COMP%]{visibility:visible!important;overflow:visible!important}}.application-detail-container[_ngcontent-%COMP%]{padding:1rem 1.5rem 2rem;background:linear-gradient(135deg,#f8fafc,#f1f5f9,#e2e8f0);min-height:100vh;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;position:relative}.application-detail-container[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;height:200px;background:linear-gradient(135deg,#022c220d,#0478570d);z-index:0;pointer-events:none}.application-detail-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{position:relative;z-index:1}.application-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem;padding:2.5rem 3rem;background:linear-gradient(135deg,#022c22,#047857 45%,#0d6449);border-radius:24px;box-shadow:0 25px 50px #00000026,0 0 0 1px #ffffff1a;color:#fff;position:relative;overflow:hidden}.application-header[_ngcontent-%COMP%]:before{content:"";position:absolute;top:-50%;right:-50%;width:200%;height:200%;background:radial-gradient(circle,rgba(255,255,255,.1) 0%,transparent 70%);animation:_ngcontent-%COMP%_pulse 8s ease-in-out infinite}@keyframes _ngcontent-%COMP%_pulse{0%,to{transform:scale(1);opacity:.5}50%{transform:scale(1.1);opacity:.8}}.header-content[_ngcontent-%COMP%] h1.application-title[_ngcontent-%COMP%]{font-size:2.5rem;font-weight:700;margin:0 0 .5rem;background:linear-gradient(45deg,#fff,#f0f0f0);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.header-content[_ngcontent-%COMP%] .application-subtitle[_ngcontent-%COMP%]{font-size:1.1rem;opacity:.9;margin:0;font-weight:400}.header-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}.header-actions[_ngcontent-%COMP%] .status-badge[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;background:#fff3;color:#fff;border:1px solid rgba(255,255,255,.3);padding:.75rem 1.5rem;border-radius:50px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font-size:.875rem;font-weight:500}.header-actions[_ngcontent-%COMP%] .status-badge.success[_ngcontent-%COMP%]{background:#22c55e4d;border-color:#22c55e80}.header-actions[_ngcontent-%COMP%] .status-badge.warning[_ngcontent-%COMP%]{background:#fbbf244d;border-color:#fbbf2480}.header-actions[_ngcontent-%COMP%] .status-badge.danger[_ngcontent-%COMP%]{background:#ef44444d;border-color:#ef444480}.header-actions[_ngcontent-%COMP%] .status-badge.default[_ngcontent-%COMP%]{background:#9ca3af4d;border-color:#9ca3af80}.header-actions[_ngcontent-%COMP%] .status-badge[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem}.header-actions[_ngcontent-%COMP%] .ref-number[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;background:#fff3;padding:.75rem 1.5rem;border-radius:50px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.3);font-family:Monaco,Menlo,monospace;font-weight:500}.header-actions[_ngcontent-%COMP%] .ref-number[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.2rem}.header-actions[_ngcontent-%COMP%] .ref-number[_ngcontent-%COMP%] .copy-btn[_ngcontent-%COMP%]{background:none;border:none;color:#fff;cursor:pointer;padding:.25rem;border-radius:4px;transition:background-color .2s}.header-actions[_ngcontent-%COMP%] .ref-number[_ngcontent-%COMP%] .copy-btn[_ngcontent-%COMP%]:hover{background:#fff3}.section-card[_ngcontent-%COMP%]{background:#fff;border-radius:20px;box-shadow:0 4px 20px #00000014,0 0 0 1px #0000000a;border:1px solid rgba(226,232,240,.8);overflow:hidden;transition:all .4s cubic-bezier(.4,0,.2,1);position:relative}.section-card[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#10b981,#059669,#047857);opacity:0;transition:opacity .3s ease}.section-card[_ngcontent-%COMP%]:hover{box-shadow:0 12px 40px #00000026,0 0 0 1px #10b98133;transform:translateY(-4px);border-color:#10b9814d}.section-card[_ngcontent-%COMP%]:hover:before{opacity:1}.section-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:1.75rem 2.5rem;background:linear-gradient(135deg,#f8fafc,#f1f5f9,#e2e8f0);border-bottom:2px solid rgba(16,185,129,.1);position:relative}.section-header[_ngcontent-%COMP%]:after{content:"";position:absolute;bottom:0;left:0;width:60px;height:3px;background:linear-gradient(90deg,#10b981,#059669);border-radius:0 3px 3px 0}.section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:1.25rem;font-weight:600;color:#1e293b;display:flex;align-items:center;gap:.75rem}.section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#64748b;font-size:1.1rem}.section-header[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%]{background:none;border:none;color:#64748b;cursor:pointer;padding:.5rem;border-radius:8px;transition:all .2s}.section-header[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%]:hover{background:#f1f5f9;color:#475569}.section-content[_ngcontent-%COMP%]{padding:2.5rem}.payment-gateway-container[_ngcontent-%COMP%]{padding:2rem;background:transparent;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.payment-methods-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:1.5rem;max-width:1200px;margin:0 auto}.payment-method-card[_ngcontent-%COMP%]{background:#fff;border-radius:24px;padding:2rem;box-shadow:0 10px 30px #0000001a,0 0 0 1px #0000000d;border:1px solid rgba(241,245,249,.8);transition:all .4s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.payment-method-card[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--card-gradient-start),var(--card-gradient-end))}.payment-method-card[_ngcontent-%COMP%]:hover{transform:translateY(-6px) scale(1.02);box-shadow:0 25px 50px #10b98140,0 0 0 1px #10b9814d;border-color:#10b98166}.payment-method-card.paystack-card[_ngcontent-%COMP%], .payment-method-card.remita-card[_ngcontent-%COMP%], .payment-method-card.quickteller-card[_ngcontent-%COMP%], .payment-method-card.cash-card[_ngcontent-%COMP%], .payment-method-card.paydirect-card[_ngcontent-%COMP%], .payment-method-card.zenith-card[_ngcontent-%COMP%]{--card-gradient-start: #10b981;--card-gradient-end: #059669}.payment-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;margin-bottom:1.5rem}.payment-card-header[_ngcontent-%COMP%] .payment-icon[_ngcontent-%COMP%]{width:60px;height:60px;border-radius:16px;background:#f8fafc;display:flex;align-items:center;justify-content:center;border:2px solid #e5e7eb;transition:all .3s ease}.payment-card-header[_ngcontent-%COMP%] .payment-icon[_ngcontent-%COMP%] .payment-logo[_ngcontent-%COMP%]{width:40px;height:40px;object-fit:contain}.payment-card-header[_ngcontent-%COMP%] .payment-info[_ngcontent-%COMP%]{flex:1}.payment-card-header[_ngcontent-%COMP%] .payment-info[_ngcontent-%COMP%] .payment-title[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:600;margin:0 0 .25rem;color:#1f2937}.payment-card-header[_ngcontent-%COMP%] .payment-info[_ngcontent-%COMP%] .payment-description[_ngcontent-%COMP%]{font-size:.875rem;color:#6b7280;margin:0;line-height:1.4}.payment-card-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.payment-card-content[_ngcontent-%COMP%] .payment-amount[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:1rem;background:#f8fafc;border-radius:12px;border:1px solid #e5e7eb}.payment-card-content[_ngcontent-%COMP%] .payment-amount[_ngcontent-%COMP%] .amount-label[_ngcontent-%COMP%]{font-size:.875rem;color:#6b7280;font-weight:500}.payment-card-content[_ngcontent-%COMP%] .payment-amount[_ngcontent-%COMP%] .amount-value[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:700;color:#1f2937}.modern-paystack-btn-custom[_ngcontent-%COMP%], .modern-remita-btn-custom[_ngcontent-%COMP%], .modern-quickteller-btn[_ngcontent-%COMP%], .modern-cash-btn[_ngcontent-%COMP%], .modern-paydirect-btn[_ngcontent-%COMP%], .modern-zenith-btn[_ngcontent-%COMP%]{width:100%;padding:1.25rem 1.75rem;border:none;border-radius:16px;font-weight:700;font-size:1.1rem;cursor:pointer;transition:all .4s cubic-bezier(.4,0,.2,1);display:flex;align-items:center;justify-content:center;gap:.875rem;position:relative;overflow:hidden;text-transform:uppercase;letter-spacing:.5px;min-height:56px;background:linear-gradient(135deg,#10b981,#059669,#047857);color:#fff;box-shadow:0 6px 20px #10b9814d}.modern-paystack-btn-custom[_ngcontent-%COMP%]:before, .modern-remita-btn-custom[_ngcontent-%COMP%]:before, .modern-quickteller-btn[_ngcontent-%COMP%]:before, .modern-cash-btn[_ngcontent-%COMP%]:before, .modern-paydirect-btn[_ngcontent-%COMP%]:before, .modern-zenith-btn[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent);transition:left .6s cubic-bezier(.4,0,.2,1)}.modern-paystack-btn-custom[_ngcontent-%COMP%]:after, .modern-remita-btn-custom[_ngcontent-%COMP%]:after, .modern-quickteller-btn[_ngcontent-%COMP%]:after, .modern-cash-btn[_ngcontent-%COMP%]:after, .modern-paydirect-btn[_ngcontent-%COMP%]:after, .modern-zenith-btn[_ngcontent-%COMP%]:after{content:"";position:absolute;top:50%;left:50%;width:0;height:0;background:#ffffff26;border-radius:50%;transform:translate(-50%,-50%);transition:all .6s cubic-bezier(.4,0,.2,1)}.modern-paystack-btn-custom[_ngcontent-%COMP%]:hover:before, .modern-remita-btn-custom[_ngcontent-%COMP%]:hover:before, .modern-quickteller-btn[_ngcontent-%COMP%]:hover:before, .modern-cash-btn[_ngcontent-%COMP%]:hover:before, .modern-paydirect-btn[_ngcontent-%COMP%]:hover:before, .modern-zenith-btn[_ngcontent-%COMP%]:hover:before{left:100%}.modern-paystack-btn-custom[_ngcontent-%COMP%]:hover:after, .modern-remita-btn-custom[_ngcontent-%COMP%]:hover:after, .modern-quickteller-btn[_ngcontent-%COMP%]:hover:after, .modern-cash-btn[_ngcontent-%COMP%]:hover:after, .modern-paydirect-btn[_ngcontent-%COMP%]:hover:after, .modern-zenith-btn[_ngcontent-%COMP%]:hover:after{width:300px;height:300px}.modern-paystack-btn-custom[_ngcontent-%COMP%]:hover, .modern-remita-btn-custom[_ngcontent-%COMP%]:hover, .modern-quickteller-btn[_ngcontent-%COMP%]:hover, .modern-cash-btn[_ngcontent-%COMP%]:hover, .modern-paydirect-btn[_ngcontent-%COMP%]:hover, .modern-zenith-btn[_ngcontent-%COMP%]:hover{transform:translateY(-3px) scale(1.02);box-shadow:0 12px 35px #10b98180;background:linear-gradient(135deg,#059669,#047857,#065f46)}.modern-paystack-btn-custom[_ngcontent-%COMP%]:active, .modern-remita-btn-custom[_ngcontent-%COMP%]:active, .modern-quickteller-btn[_ngcontent-%COMP%]:active, .modern-cash-btn[_ngcontent-%COMP%]:active, .modern-paydirect-btn[_ngcontent-%COMP%]:active, .modern-zenith-btn[_ngcontent-%COMP%]:active{transform:translateY(-1px) scale(.98);transition:all .1s ease}.modern-paystack-btn-custom[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .modern-remita-btn-custom[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .modern-quickteller-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .modern-cash-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .modern-paydirect-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .modern-zenith-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.25rem;transition:all .3s cubic-bezier(.4,0,.2,1);z-index:1;position:relative}.modern-paystack-btn-custom[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .modern-remita-btn-custom[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .modern-quickteller-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .modern-cash-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .modern-paydirect-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .modern-zenith-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{z-index:1;position:relative}.modern-paystack-btn-custom[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%], .modern-remita-btn-custom[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%], .modern-quickteller-btn[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%], .modern-cash-btn[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%], .modern-paydirect-btn[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%], .modern-zenith-btn[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%]{transform:scale(1.15) rotate(5deg)}.view-rrr-btn[_ngcontent-%COMP%]{width:100%;margin-top:.75rem;padding:.875rem 1.25rem;background:linear-gradient(135deg,#10b981,#059669,#047857);border:none;border-radius:12px;color:#fff;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);display:flex;align-items:center;justify-content:center;gap:.625rem;position:relative;overflow:hidden;box-shadow:0 4px 15px #10b98133}.view-rrr-btn[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .5s}.view-rrr-btn[_ngcontent-%COMP%]:hover{background:linear-gradient(135deg,#059669,#047857,#065f46);transform:translateY(-2px);box-shadow:0 8px 25px #10b98166}.view-rrr-btn[_ngcontent-%COMP%]:hover:before{left:100%}.view-rrr-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem;transition:transform .3s ease;color:#fff}.view-rrr-btn[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%]{transform:scale(1.1)}.hidden-paystack-wrapper[_ngcontent-%COMP%], .hidden-remita-wrapper[_ngcontent-%COMP%], .hidden-quickteller-wrapper[_ngcontent-%COMP%]{position:absolute;top:-9999px;left:-9999px;opacity:0;pointer-events:none;z-index:-1;width:1px;height:1px;overflow:hidden}.hidden-paystack-btn[_ngcontent-%COMP%], .hidden-remita-btn[_ngcontent-%COMP%], .hidden-quickteller-btn[_ngcontent-%COMP%]{display:none}.cash-modal[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.25rem}.modal-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.35rem}.modal-field[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:.85rem;font-weight:600;color:#22c55e;letter-spacing:.04em;text-transform:uppercase}.modal-field[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;font-size:1.2rem;font-weight:600;color:#0f172a}.alert-body[_ngcontent-%COMP%]{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:12px;padding:1.25rem;color:#0f172a}.payment-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%]{padding-bottom:2rem}.coming-soon-note[_ngcontent-%COMP%]{text-align:center;padding:1rem;color:#6b7280;font-style:italic}.content-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(250px,.8fr);gap:1rem;align-items:start}@media (max-width: 1280px){.content-grid[_ngcontent-%COMP%]{grid-template-columns:minmax(0,1.35fr) minmax(260px,.85fr)}}@media (max-width: 1024px){.content-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}.main-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.sidebar[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;position:sticky;top:2rem}@media (max-width: 1024px){.sidebar[_ngcontent-%COMP%]{position:static}}.sidebar-card[_ngcontent-%COMP%]{background:#fff;border-radius:20px;box-shadow:0 4px 20px #00000014,0 0 0 1px #0000000a;border:1px solid rgba(241,245,249,.8);overflow:hidden;transition:all .3s ease;position:relative}.sidebar-card[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#10b981,#059669);opacity:0;transition:opacity .3s ease}.sidebar-card[_ngcontent-%COMP%]:hover{box-shadow:0 8px 30px #10b98126,0 0 0 1px #10b98133;transform:translateY(-2px)}.sidebar-card[_ngcontent-%COMP%]:hover:before{opacity:1}.sidebar-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]{padding:1.5rem 2rem;background:linear-gradient(135deg,#f8fafc,#f1f5f9,#e2e8f0);border-bottom:2px solid rgba(16,185,129,.1);position:relative}.sidebar-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]:after{content:"";position:absolute;bottom:0;left:0;width:50px;height:3px;background:linear-gradient(90deg,#10b981,#059669);border-radius:0 3px 3px 0}.sidebar-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:1.125rem;font-weight:600;color:#1e293b}.sidebar-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%]{padding:1.5rem}.action-buttons[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.action-btn[_ngcontent-%COMP%]{width:100%;padding:.875rem 1rem;border:none;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;gap:.5rem}.action-btn.success[_ngcontent-%COMP%]{background:#10b981;color:#fff}.action-btn.success[_ngcontent-%COMP%]:hover{background:#059669;transform:translateY(-1px)}.contact-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.info-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;font-size:.95rem;color:#1e293b}.query-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.query-text[_ngcontent-%COMP%]{font-size:.95rem;color:#1e293b;line-height:1.6;margin:0}.query-meta[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;font-size:.875rem;color:#64748b}.query-date[_ngcontent-%COMP%]{font-weight:500}.query-status[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.status-label[_ngcontent-%COMP%]{font-weight:500}.query-actions[_ngcontent-%COMP%]{margin-top:1rem;padding-top:1rem;border-top:1px solid #e2e8f0}.query-hint[_ngcontent-%COMP%]{font-size:.875rem;color:#64748b;margin-bottom:.5rem}.approve-btn[_ngcontent-%COMP%]{width:100%;background:#10b981;color:#fff;border:none;padding:.75rem 1rem;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s}.approve-btn[_ngcontent-%COMP%]:hover{background:#059669;transform:translateY(-1px)}.overview-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem;margin-bottom:2rem}.overview-card[_ngcontent-%COMP%]{background:#fff;border-radius:18px;padding:2rem;box-shadow:0 4px 20px #00000014,0 0 0 1px #0000000a;border:1px solid rgba(241,245,249,.8);transition:all .4s cubic-bezier(.4,0,.2,1);display:flex;align-items:center;gap:1rem;position:relative;overflow:hidden}.overview-card[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;width:5px;height:100%;background:linear-gradient(180deg,#10b981,#059669,#047857);transition:width .3s ease}.overview-card[_ngcontent-%COMP%]:hover{transform:translateY(-6px) scale(1.02);box-shadow:0 12px 40px #10b98133,0 0 0 1px #10b9814d;border-color:#10b98166}.overview-card[_ngcontent-%COMP%]:hover:before{width:6px}.overview-card.primary[_ngcontent-%COMP%], .overview-card.secondary[_ngcontent-%COMP%], .overview-card.success[_ngcontent-%COMP%], .overview-card.warning[_ngcontent-%COMP%]{border-left:none}.overview-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%]{flex:1}.overview-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{margin:0 0 .5rem;font-size:.875rem;font-weight:500;color:#64748b;text-transform:uppercase;letter-spacing:.05em}.overview-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .card-value[_ngcontent-%COMP%]{margin:0;font-size:1.125rem;font-weight:600;color:#1e293b}.info-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem}.info-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem;padding:1.25rem;background:linear-gradient(135deg,#f8fafc,#fff);border-radius:12px;border:1px solid rgba(226,232,240,.6);transition:all .3s ease;position:relative;overflow:hidden}.info-item[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;width:3px;height:100%;background:linear-gradient(180deg,#10b981,#059669);opacity:0;transition:opacity .3s ease}.info-item[_ngcontent-%COMP%]:hover{transform:translate(4px);box-shadow:0 4px 12px #10b98126;border-color:#10b9814d;background:linear-gradient(135deg,#f0fdf4,#fff)}.info-item[_ngcontent-%COMP%]:hover:before{opacity:1}.info-item[_ngcontent-%COMP%] .info-label[_ngcontent-%COMP%]{display:block;font-size:.875rem;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.08em;margin-bottom:.25rem}.info-item[_ngcontent-%COMP%] .info-value[_ngcontent-%COMP%]{font-size:1.1rem;color:#1e293b;font-weight:600;line-height:1.5}.affidavit-title[_ngcontent-%COMP%]{background:linear-gradient(135deg,#f8fafc,#f1f5f9);border:1px solid #e2e8f0;border-radius:12px;padding:1.5rem;margin-bottom:1.5rem;border-left:5px solid #0d6449}.affidavit-title[_ngcontent-%COMP%] .info-label[_ngcontent-%COMP%]{display:block;font-size:.875rem;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.05em;margin-bottom:.5rem}.affidavit-title[_ngcontent-%COMP%] .info-value[_ngcontent-%COMP%]{font-size:1.125rem;font-weight:600;color:#1e293b}.form-entries[_ngcontent-%COMP%]{margin-top:1.5rem}.entries-title[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:600;color:#1e293b;margin-bottom:1rem;padding-bottom:.5rem;border-bottom:2px solid #10b981;display:inline-block}.entries-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem}.entry-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.entry-label[_ngcontent-%COMP%]{font-size:.875rem;font-weight:500;color:#64748b;text-transform:uppercase;letter-spacing:.05em}.entry-value[_ngcontent-%COMP%]{font-size:1rem;color:#1e293b;font-weight:500}.document-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;padding:1.5rem;background:linear-gradient(135deg,#f8fafc,#fff);border-radius:16px;border:1px solid rgba(226,232,240,.6);transition:all .3s ease;position:relative;overflow:hidden}.document-item[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;width:3px;height:100%;background:linear-gradient(180deg,#10b981,#059669);opacity:0;transition:opacity .3s ease}.document-item[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 8px 20px #10b98126;border-color:#10b9814d;background:linear-gradient(135deg,#f0fdf4,#fff)}.document-item[_ngcontent-%COMP%]:hover:before{opacity:1}.doc-label[_ngcontent-%COMP%]{font-size:.875rem;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.08em}.doc-content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:150px;background:linear-gradient(135deg,#fff,#f8fafc);border-radius:14px;border:2px dashed rgba(226,232,240,.8);transition:all .3s ease}.document-item[_ngcontent-%COMP%]:hover .doc-content[_ngcontent-%COMP%]{border-color:#10b9814d;background:linear-gradient(135deg,#f0fdf4,#fff)}.no-doc[_ngcontent-%COMP%]{color:#94a3b8;font-size:.875rem;font-style:italic}.doc-image[_ngcontent-%COMP%]{max-width:100%;max-height:200px;border-radius:8px;object-fit:contain}.court-name[_ngcontent-%COMP%]{font-size:1rem;color:#1e293b;font-weight:500}.form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-title[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:600;color:#1e293b;margin:0}.document-form[_ngcontent-%COMP%], .form-fields[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.document-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;padding:1.5rem;background:#f8fafc;border-radius:12px;border:1px solid #e2e8f0}.field-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 1fr auto;gap:1rem;align-items:start}.field-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.field-label[_ngcontent-%COMP%]{font-size:.875rem;font-weight:500;color:#1e293b;display:flex;align-items:center;gap:.5rem}.field-number[_ngcontent-%COMP%]{background:#10b981;color:#fff;padding:.25rem .5rem;border-radius:4px;font-size:.75rem;font-weight:600}.required[_ngcontent-%COMP%]{color:#ef4444}.form-input[_ngcontent-%COMP%]{padding:.75rem;border:1px solid #e2e8f0;border-radius:8px;font-size:.95rem;transition:all .2s}.form-input[_ngcontent-%COMP%]:focus{outline:none;border-color:#10b981;box-shadow:0 0 0 3px #10b9811a}.form-input.error[_ngcontent-%COMP%]{border-color:#ef4444}.error-message[_ngcontent-%COMP%]{color:#ef4444;font-size:.875rem;margin-top:.25rem}.upload-btn[_ngcontent-%COMP%]{background:#10b981;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s}.upload-btn[_ngcontent-%COMP%]:hover{background:#059669;transform:translateY(-1px)}.file-preview[_ngcontent-%COMP%]{margin-top:.5rem}.preview-image[_ngcontent-%COMP%]{max-width:150px;max-height:120px;border-radius:8px;object-fit:cover;border:1px solid #e2e8f0}.remove-btn[_ngcontent-%COMP%]{background:#ef4444;color:#fff;border:none;padding:.5rem;border-radius:8px;cursor:pointer;transition:all .2s}.remove-btn[_ngcontent-%COMP%]:hover{background:#dc2626}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:1rem}.add-btn[_ngcontent-%COMP%]{background:#3b82f6;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s}.add-btn[_ngcontent-%COMP%]:hover{background:#2563eb;transform:translateY(-1px)}.form-footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:1rem;margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid #e2e8f0}.cancel-btn[_ngcontent-%COMP%]{background:#ff9f43!important;border:1px solid rgb(255,159,67)!important;color:#0f172a!important;box-shadow:0 12px 24px #ff9f4359}.cancel-btn[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 16px 32px #ff9f4373}.preview-btn[_ngcontent-%COMP%]{background:#10b981;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s}.preview-btn[_ngcontent-%COMP%]:hover{background:#059669;transform:translateY(-1px)}.preview-btn[_ngcontent-%COMP%]:disabled{background:#94a3b8;cursor:not-allowed}.summary-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.summary-title[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:600;color:#1e293b;margin:0}.documents-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem}.document-card[_ngcontent-%COMP%]{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:1rem;box-shadow:0 2px 8px #0000000a}.doc-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem}.doc-number[_ngcontent-%COMP%]{background:#10b981;color:#fff;width:2rem;height:2rem;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.875rem;font-weight:600}.doc-title[_ngcontent-%COMP%]{font-size:1rem;font-weight:500;color:#1e293b;margin:0}.doc-image[_ngcontent-%COMP%]{width:100%;max-height:150px;border-radius:8px;object-fit:cover}.summary-actions[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:1rem;margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid #e2e8f0}.back-btn[_ngcontent-%COMP%]{background:#ff9f43!important;border:1px solid rgb(255,159,67)!important;color:#0f172a!important;box-shadow:0 12px 24px #ff9f4359}.back-btn[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 16px 32px #ff9f4373}.save-btn[_ngcontent-%COMP%]{background:#10b981;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s}.save-btn[_ngcontent-%COMP%]:hover{background:#059669;transform:translateY(-1px)}.table-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.search-bar[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center}.search-icon[_ngcontent-%COMP%]{position:absolute;left:1rem;color:#64748b;z-index:1}.search-input[_ngcontent-%COMP%]{width:100%;padding:.75rem 1rem .75rem 2.5rem;border:1px solid #e2e8f0;border-radius:8px;font-size:.95rem;transition:all .2s}.search-input[_ngcontent-%COMP%]:focus{outline:none;border-color:#10b981;box-shadow:0 0 0 3px #10b9811a}.documents-table[_ngcontent-%COMP%]{width:100%}.doc-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;font-weight:500;color:#1e293b}.view-btn[_ngcontent-%COMP%], .delete-btn[_ngcontent-%COMP%]{margin:0 .25rem}.modal-content[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:2rem}.id-image[_ngcontent-%COMP%]{max-width:100%;max-height:500px;border-radius:8px;object-fit:contain}.document-preview[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:2rem;background:#f8fafc;border-radius:12px}.document-image[_ngcontent-%COMP%]{max-width:100%;max-height:600px;border-radius:8px;object-fit:contain}.dialog-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem}.dialog-actions[_ngcontent-%COMP%]{display:flex;gap:1rem;justify-content:flex-end}.add-doc-btn[_ngcontent-%COMP%]{background:#10b981;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s;display:flex;align-items:center;gap:.5rem}.add-doc-btn[_ngcontent-%COMP%]:hover{background:#059669;transform:translateY(-1px)}@media (max-width: 768px){.application-detail-container[_ngcontent-%COMP%]{padding:1rem}.payment-methods-grid[_ngcontent-%COMP%]{grid-template-columns:1fr;gap:1rem}.payment-method-card[_ngcontent-%COMP%]{padding:1.25rem}.application-header[_ngcontent-%COMP%]{flex-direction:column;gap:1rem;text-align:center;padding:1.5rem}.header-content[_ngcontent-%COMP%] h1.application-title[_ngcontent-%COMP%]{font-size:2rem}.header-actions[_ngcontent-%COMP%]{flex-direction:column;align-items:center;gap:.75rem}.header-actions[_ngcontent-%COMP%] .status-badge[_ngcontent-%COMP%], .header-actions[_ngcontent-%COMP%] .ref-number[_ngcontent-%COMP%]{width:100%;justify-content:center}.payment-gateway-container[_ngcontent-%COMP%]{padding:0}.payment-methods-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.payment-method-card[_ngcontent-%COMP%]{flex-direction:row;align-items:center;gap:1rem;padding:1rem}.payment-method-card[_ngcontent-%COMP%] .payment-icon[_ngcontent-%COMP%]{width:4rem;height:4rem}.payment-method-card[_ngcontent-%COMP%] .payment-info[_ngcontent-%COMP%] .payment-title[_ngcontent-%COMP%]{font-size:1rem}.payment-method-card[_ngcontent-%COMP%] .payment-info[_ngcontent-%COMP%] .payment-description[_ngcontent-%COMP%]{font-size:.8rem}.payment-method-card[_ngcontent-%COMP%] .payment-card-content[_ngcontent-%COMP%]{flex-direction:row;align-items:center;gap:1rem}.payment-method-card[_ngcontent-%COMP%] .payment-card-content[_ngcontent-%COMP%] .payment-amount[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:.5rem}.modern-paystack-btn-custom[_ngcontent-%COMP%], .modern-remita-btn-custom[_ngcontent-%COMP%], .modern-quickteller-btn[_ngcontent-%COMP%], .modern-zenith-btn[_ngcontent-%COMP%], .modern-cash-btn[_ngcontent-%COMP%], .modern-paydirect-btn[_ngcontent-%COMP%], .view-rrr-btn[_ngcontent-%COMP%]{width:100%;justify-content:center}}']})}}return t})();var cO=(()=>{class t{constructor(e){this.affidavitPageStore=e,this.access_token=null,this.apiMode=null,this.affidavitPageStore.token$.subscribe({next:n=>{this.access_token=n}}),this.affidavitPageStore.mode$.subscribe({next:n=>{this.apiMode=n}})}intercept(e,n){let i=e.url.startsWith(this.apiMode===Fe.PRODUCTION?me.productionApiUrl:me.testApiUrl),r=this.access_token;return i&&r&&(e=e.clone({setHeaders:{Token:`${r}`}})),n.handle(e)}static{this.\u0275fac=function(n){return new(n||t)(ne(Te))}}static{this.\u0275prov=ee({token:t,factory:t.\u0275fac})}}return t})();var Ose=()=>({width:"60px",height:"60px"});function Tse(t,o){if(t&1&&(B(0),c(1,"p-blockUI",2)(2,"div",3),v(3,"p-progressSpinner",4),c(4,"h2",5),g(5),d(),c(6,"p",6),g(7,"We are preparing your experience..."),d()()(),z()),t&2){let e,n=f();p(),m("blocked",n.data.is_loading),p(2),It(Pe(4,Ose)),p(2),se(" ",(e=n.data.loading_label)!==null&&e!==void 0?e:"Loading, please wait..."," ")}}function Pse(t,o){if(t&1){let e=D();c(0,"span",18)(1,"img",19),I("click",function(){C(e);let i=f(2);return y(i.goHome())}),d(),c(2,"span",20),g(3,"Federal High Court E-Affidavit"),d()()}if(t&2){let e=f(2);p(),m("src",e.logo,Ae)}}function Dse(t,o){if(t&1){let e=D();c(0,"e-affidavit-applications-details-page",21),I("getApplications",function(i){C(e);let r=f(2);return y(r.getApps(i))}),d()}}function kse(t,o){t&1&&v(0,"e-affidavit-bulk-applications")}function Fse(t,o){t&1&&v(0,"e-affidavit-check-application-page")}function Rse(t,o){t&1&&v(0,"e-affidavit-applications-edit")}function Vse(t,o){t&1&&v(0,"e-affidavit-print")}function Lse(t,o){if(t&1&&(c(0,"div",7)(1,"div",8)(2,"div",9)(3,"div",10)(4,"div",11)(5,"div",12)(6,"p-menubar",13),_(7,Pse,4,1,"ng-template",14),d()()()(),c(8,"div",15)(9,"div",16),_(10,Dse,1,0,"e-affidavit-applications-details-page",17)(11,kse,1,0,"e-affidavit-bulk-applications",0)(12,Fse,1,0,"e-affidavit-check-application-page",0)(13,Rse,1,0,"e-affidavit-applications-edit",0)(14,Vse,1,0,"e-affidavit-print",0),d()()()()()),t&2){let e=f();p(6),m("model",e.items),p(4),m("ngIf",e.data.canDisplayApplicationDetail),p(),m("ngIf",e.data.canDisplayNew),p(),m("ngIf",e.data.canDisplayCheckApplication),p(),m("ngIf",e.data.canDisplayEditApplication),p(),m("ngIf",e.data.canDisplayAffidavitDetail)}}var dO=(()=>{class t{constructor(e,n,i,r,a,s,l){this.affidavitPageStore=e,this.applicationService=n,this.primeConfig=i,this.apiKey=r,this.apiMode=a,this.el=s,this.renderer=l,this.callBack=new V,this.page="new",this.token="",this.mode="",this.client_ref="",this.payload=[],this.affidavitTemplateId=0,this.payment_redirect_url="",this.overlay=!0,this.logo="data:image/png;base64,"+pt.ecms_logo,this.data={token:null,is_loading:!1,id:0,loading_label:null,canDisplayNew:!1,canDisplayCheckApplication:!1,canDisplayApplicationDetail:!1,canDisplayEditApplication:!1,canDisplayAffidavitDetail:!1},this.affidavitPageStore.setToken(this.apiKey),this.affidavitPageStore.setMode(this.apiMode),this.affidavitPageStore.startLoading("Loading . . .")}ngOnInit(){this.page=="details"?this.affidavitPageStore.toggle("application-detail"):this.page=="new"&&this.affidavitPageStore.toggle("new"),this.primeConfig.ripple=!0,this.token&&this.affidavitPageStore.setToken(this.token),this.mode&&this.affidavitPageStore.setMode(this.mode),this.client_ref&&this.applicationService.setClientRef(this.client_ref),this.affidavitTemplateId&&this.applicationService.setAffidavitTemplateId(this.affidavitTemplateId),this.payload&&this.applicationService.setPayload(this.payload),this.payment_redirect_url&&this.applicationService.setPaymentRedirectUrl(this.payment_redirect_url),this.affidavitPageStore.state$.subscribe({next:e=>{this.data=e}}),this.items=[{label:"New Application",icon:"pi pi-fw pi-plus",style:{transition:"background 0.25s, color 0.25s, box-shadow 0.25s, border 0.25s",borderRadius:"0.75rem",margin:"0 0.15rem"},command:()=>{this.data.canDisplayNew||(this.affidavitPageStore.startLoading("Loading . . ."),this.affidavitPageStore.toggle("new"))},styleClass:"menuitem-new"},{label:"Check Application",icon:"pi pi-check-circle",style:{transition:"background 0.25s, color 0.25s, box-shadow 0.25s, border 0.25s",borderRadius:"0.75rem",margin:"0 0.15rem",fontWeight:"bold"},command:()=>{this.affidavitPageStore.toggle("check")},styleClass:"menuitem-check"}],this.affidavitPageStore.store$.pipe(ci(1)).subscribe(e=>{!e.canDisplayNew&&!e.canDisplayCheckApplication&&!e.canDisplayApplicationDetail&&!e.canDisplayAffidavitDetail&&!e.canDisplayEditApplication&&this.affidavitPageStore.toggle("new")}),setTimeout(()=>{!(this.overlay===!1||this.overlay==="false")&&this.createOverlayHost()},150)}getApps(e){}goHome(){this.data.canDisplayNew||this.affidavitPageStore.toggle("new")}createOverlayHost(){try{let e=this.el.nativeElement;if(e.__hc_overlay_refs)return;this.ensureOverlayStyles();let n=this.renderer.createElement("div");this.renderer.addClass(n,"hc-overlay-backdrop"),this.renderer.setAttribute(n,"tabindex","-1");let i=this.renderer.createElement("div");this.renderer.addClass(i,"hc-overlay-panel");let r=this.renderer.createElement("button");this.renderer.addClass(r,"hc-overlay-close"),this.renderer.setAttribute(r,"aria-label","Close"),this.renderer.listen(r,"click",()=>this.closeLibrary()),this.renderer.appendChild(i,r);let a=e.parentElement;this.renderer.appendChild(i,e),this.renderer.appendChild(n,i),this.renderer.appendChild(document.body,n),setTimeout(()=>{try{this.renderer.addClass(n,"hc-overlay-open"),this.renderer.addClass(i,"hc-overlay-open"),this.renderer.addClass(document.body,"hc-overlay-open")}catch{}},20);let s=document&&document.activeElement||null,l=document.body.style.overflow;document.body.style.overflow="hidden";let u=h=>{h.key==="Escape"&&this.closeLibrary(),h.key==="Tab"&&this.maintainFocus(h,i)};window.addEventListener("keydown",u),this.renderer.setAttribute(i,"role","dialog"),this.renderer.setAttribute(i,"aria-modal","true"),this.renderer.setAttribute(i,"tabindex","-1"),setTimeout(()=>{try{i.focus()}catch{}},0),e.__hc_overlay_refs={backdrop:n,keyHandler:u,originalParent:a,prevFocus:s,prevOverflow:l}}catch(e){console.warn("Failed to create overlay for bulk-create-applications:",e)}}closeOverlay(){let e=this.el.nativeElement,n=e.__hc_overlay_refs;if(n)try{let{backdrop:i,keyHandler:r,originalParent:a,prevFocus:s,prevOverflow:l}=n;window.removeEventListener("keydown",r),i&&i.parentNode&&i.parentNode.removeChild(i),a&&e&&e.parentElement&&e.parentElement!==a&&a.appendChild(e);try{this.renderer.removeClass(document.body,"hc-overlay-open"),l!==void 0&&(document.body.style.overflow=l)}catch{}try{s&&s.focus&&s.focus()}catch{}delete e.__hc_overlay_refs}catch{}}closeLibrary(){this.closeOverlay(),this.affidavitPageStore.closeLibrary()}maintainFocus(e,n){if(e.key!=="Tab")return;let i=n.querySelectorAll('a[href], area[href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, [tabindex]:not([tabindex="-1"]), [contenteditable]'),r=Array.prototype.slice.call(i);if(!r.length){e.preventDefault();return}let a=r[0],s=r[r.length-1],l=document.activeElement;e.shiftKey?(l===a||l===n)&&(e.preventDefault(),s.focus()):l===s&&(e.preventDefault(),a.focus())}ensureOverlayStyles(){if(document.querySelector("style[data-hc-overlay-component]"))return;let e=`
|
|
834
|
+
`,n=document.createElement("style");n.setAttribute("data-hc-overlay-component",""),n.innerHTML=e,document.head.appendChild(n)}static{this.\u0275fac=function(n){return new(n||t)(M(xo),M(Mi),M(wi),M(fa),M(Ol),M(Mn),M(ha),M(Te),M(ai),M(oo),M(oi),M(ga),M(Jm),M(ve),M(Ne))}}static{this.\u0275cmp=N({type:t,selectors:[["pay-affidavit"]],viewQuery:function(n,i){if(n&1&&ae(kae,5),n&2){let r;Q(r=G())&&(i.filter=r.first)}},inputs:{shouldDisplayDetails:"shouldDisplayDetails",overlay:"overlay",token:"token",appNo:"appNo",apiTokenAttr:[E.None,"api-token","apiTokenAttr"]},outputs:{handlePayment:"handlePayment",overlayClose:"overlayClose"},decls:5,vars:4,consts:[["paystackButton",""],["remitaButton",""],["documentFile",""],["filter",""],["dt1",""],[1,"pay-affidavit-wrapper"],[4,"ngIf"],["class","application-detail-container",4,"ngIf"],[3,"blocked"],[1,"text-white"],["styleClass","custom-spinner","strokeWidth","8","fill","var(--surface-ground)","animationDuration",".5s"],[1,"application-detail-container"],[1,"section-card",2,"text-align","center","padding","4rem 2rem"],[1,"text-700","font-xl","mb-3"],[1,"text-500"],[1,"application-header"],[1,"header-content"],[1,"application-title"],[1,"application-subtitle"],[1,"header-actions"],[1,"status-badge",3,"ngClass"],[1,"pi"],["class","ref-number",4,"ngIf"],["class","section-card payment-section mb-3",4,"ngIf"],["id","printCashRef",3,"visibleChange","visible","closable","modal","breakpoints"],["pTemplate","header"],[1,"cash-modal"],["pButton","","type","button","label","CASH PAYMENT INFORMATION","disabled","",1,"p-button-outlined","p-button-success","w-full","text-xl"],[1,"alert-body","printRef"],[1,"blck-font","text-lg","font-bold","d-block"],[1,"green-font"],[1,"modal-field"],[1,"label"],[1,"value"],["pButton","","type","button","icon","pi pi-clone","title","Copy Reference Number",1,"p-button-outlined","p-button-success","p-button-rounded",3,"click"],["pTemplate","footer"],["id","printCashRef1",3,"visibleChange","visible","closable","modal","breakpoints"],["pButton","","type","button","label","Remita RRR Information","disabled","",1,"p-button-outlined","p-button-success","w-full","text-xl"],["pButton","","type","button","icon","pi pi-clone","title","Copy RRR",1,"p-button-outlined","p-button-success","p-button-rounded",3,"click"],[1,"content-grid"],[1,"main-content"],["class","section-card document-section",4,"ngIf"],[1,"overview-grid"],[1,"overview-card","primary"],[1,"card-content"],[1,"card-title"],[1,"card-value"],[1,"overview-card","secondary"],[1,"overview-card","success"],[1,"overview-card",3,"ngClass"],[1,"section-card"],[1,"section-header"],[1,"pi","pi-user"],[1,"section-content"],[1,"info-grid"],[1,"info-item"],[1,"info-label"],[1,"info-value"],[1,"pi","pi-file-text"],[1,"affidavit-title"],["class","form-entries",4,"ngIf"],[1,"pi","pi-images"],[1,"documents-grid"],[1,"document-item"],[1,"doc-label"],[1,"doc-content"],["class","no-doc",4,"ngIf"],["class","doc-image","onerror","this.src=no_image;","alt","Passport Photo",3,"src",4,"ngIf"],["class","doc-image","onerror","this.src=no_image;","alt"," Signature Photo",3,"src",4,"ngIf"],["class","doc-image","onerror","this.src=no_image;","alt","ID Card",3,"src",4,"ngIf"],[1,"court-name"],["class","section-card",4,"ngIf"],[1,"sidebar"],[1,"sidebar-card"],[1,"card-header"],[1,"action-buttons"],["pButton","","type","button","icon","pi pi-credit-card","label","Proceed to Payment","class","action-btn success",3,"click",4,"ngIf"],[1,"contact-info"],[1,"info-row","mb-3"],[1,"pi","pi-envelope","text-primary","mr-3"],[1,"info-row"],[1,"pi","pi-phone","text-primary","mr-3"],["class","sidebar-card",4,"ngIf"],["header","Identity Card",3,"visibleChange","visible","modal","draggable","resizable"],[1,"modal-content"],["onerror","this.src='assets/images/id-vector.png';","alt","Identity Card",1,"id-image",3,"src"],["position","top-right"],[1,"ref-number"],[1,"pi","pi-hashtag"],["type","button","pTooltip","Copy to clipboard",1,"copy-btn",3,"click"],[1,"pi","pi-copy"],[1,"section-card","payment-section","mb-3"],[1,"pi","pi-credit-card"],["type","button",1,"close-btn",3,"click"],[1,"pi","pi-times"],[1,"payment-gateway-container"],[1,"payment-methods-grid"],["class","payment-method-card paystack-card",4,"ngIf"],["class","payment-method-card remita-card",4,"ngIf"],["class","payment-method-card quickteller-card",4,"ngIf"],["class","payment-method-card cash-card",4,"ngIf"],[1,"payment-method-card","paystack-card"],[1,"payment-card-header"],[1,"payment-icon"],["alt","Paystack",1,"payment-logo",3,"src"],[1,"payment-info"],[1,"payment-title"],[1,"payment-description"],[1,"payment-card-content"],[1,"payment-amount"],[1,"amount-label"],[1,"amount-value"],[1,"hidden-paystack-wrapper"],[3,"onClose","callback","email","amount","ref","key","split_code"],["type","button",1,"hidden-paystack-btn"],["type","button",1,"modern-paystack-btn-custom",3,"click"],[1,"payment-method-card","remita-card"],["alt","Remita",1,"payment-logo",3,"src"],[1,"hidden-remita-wrapper"],[3,"callback","email","customerId","firstName","processRrr","customFields","lastName","amount","narration"],["type","button",1,"hidden-remita-btn"],[1,"pi","pi-building"],["type","button",1,"modern-remita-btn-custom",3,"click"],["type","button","class","view-rrr-btn",3,"click",4,"ngIf"],["type","button",1,"view-rrr-btn",3,"click"],[1,"pi","pi-eye"],[1,"payment-method-card","quickteller-card"],["src","assets/images/quick-teller.png","alt","Quickteller",1,"payment-logo"],[1,"coming-soon-note"],[1,"payment-method-card","cash-card"],["alt","Cash",1,"payment-logo",3,"src"],["type","button",1,"modern-cash-btn",3,"click"],[1,"pi","pi-wallet"],["pButton","","type","button","icon","pi pi-print","label","Print",1,"p-button-success",3,"click"],["pButton","","type","button","icon","pi pi-times","label","Close",1,"p-button-outlined","p-button-danger",3,"click"],[3,"visibleChange","visible"],[1,"document-preview"],["alt","Document","onerror","this.src=no_image;",1,"document-image",3,"src"],[1,"dialog-header"],[1,"pi","pi-file-pdf","text-red-500","mr-3"],[1,"text-xl","font-semibold"],[1,"dialog-actions"],["pButton","","type","button","icon","pi pi-times","label","Close",1,"p-button-warning",3,"click"],["pButton","","type","button","icon","pi pi-download","label","Download",1,"p-button-success",3,"click"],[1,"section-card","document-section"],[1,"pi","pi-upload"],["class","section-content",4,"ngIf"],[1,"form-container"],[1,"form-title"],[1,"document-form",3,"formGroup"],["formArrayName","files",1,"form-fields"],["class","document-field",3,"formGroupName",4,"ngFor","ngForOf"],[1,"form-actions"],["pButton","","type","button","icon","pi pi-plus","label","Add Document",1,"add-btn",3,"click"],[1,"form-footer"],["pButton","","type","button","icon","pi pi-times","label","Cancel",1,"cancel-btn",3,"click"],["pButton","","type","button","icon","pi pi-eye","label","Preview",1,"preview-btn",3,"click","disabled"],[1,"document-field",3,"formGroupName"],[1,"field-row"],[1,"field-group"],[1,"field-label"],[1,"field-number"],[1,"required"],["type","text","maxlength","50","formControlName","title","placeholder","Enter document title...",1,"form-input"],["class","error-message",4,"ngIf"],["pButton","","pRipple","","type","button","class","upload-btn","icon","pi pi-upload","label","Upload",3,"click",4,"ngIf"],["class","file-preview",4,"ngIf"],["type","file","formControlName","file","accept","image/*, application/pdf",1,"hidden",3,"change"],["pButton","","type","button","icon","pi pi-times",1,"remove-btn",3,"click"],[1,"error-message"],["pButton","","pRipple","","type","button","icon","pi pi-upload","label","Upload",1,"upload-btn",3,"click"],[1,"file-preview"],["onerror","this.src='assets/images/noimage.gif';",1,"preview-image",3,"src","alt"],[1,"summary-container"],[1,"summary-title"],["class","document-card",4,"ngFor","ngForOf"],[1,"summary-actions"],["pButton","","type","button","icon","pi pi-arrow-left","label","Back to Edit",1,"back-btn",3,"click"],["pButton","","type","button","icon","pi pi-save","label","Save Documents",1,"save-btn",3,"click"],[1,"document-card"],[1,"doc-header"],[1,"doc-number"],[1,"doc-title"],["alt","Document","onerror","this.src='assets/images/noimage.gif';",1,"doc-image",3,"src"],[1,"form-entries"],[1,"entries-title"],[1,"entries-grid"],[4,"ngFor","ngForOf"],["class","entry-item",4,"ngIf"],[1,"entry-item"],[1,"entry-label"],[1,"entry-value"],[1,"no-doc"],["onerror","this.src=no_image;","alt","Passport Photo",1,"doc-image",3,"src"],["onerror","this.src=no_image;","alt"," Signature Photo",1,"doc-image",3,"src"],["onerror","this.src=no_image;","alt","ID Card",1,"doc-image",3,"src"],[1,"pi","pi-folder-open"],["type","button",1,"add-doc-btn",3,"click"],[1,"pi","pi-plus"],[1,"table-container"],[1,"search-bar"],[1,"pi","pi-search","search-icon"],["pInputText","","type","text","placeholder","Search documents...",1,"search-input",3,"input"],["dataKey","ref_no","responsiveLayout","scroll",1,"documents-table",3,"value","rows","rowHover","paginator","globalFilterFields"],["pTemplate","body"],["pTemplate","emptymessage"],[1,"text-center"],[1,"pi","pi-file-pdf","text-red-500","mr-2"],["pButton","","type","button","icon","pi pi-eye","pTooltip","View Document","tooltipPosition","top",1,"view-btn",3,"click"],["pButton","","type","button","icon","pi pi-trash","pTooltip","Delete Document","tooltipPosition","top",1,"delete-btn",3,"click"],["colspan","2",1,"text-center","py-8"],[1,"pi","pi-folder-open","text-4xl","text-muted","mb-2","block"],[1,"text-muted"],["pButton","","type","button","icon","pi pi-credit-card","label","Proceed to Payment",1,"action-btn","success",3,"click"],[1,"query-content"],[1,"query-text"],[1,"query-meta"],[1,"query-date"],[1,"query-status"],[1,"status-label"],["styleClass","ml-2",3,"value","severity"],["class","query-actions",4,"ngIf"],[1,"query-actions"],[1,"query-hint"],["pButton","","type","button","icon","pi pi-check","label","Click here!",1,"approve-btn",3,"click"],["pButton","","type","button","icon","pi pi-check","label","Close",1,"p-button-danger","p-button-outlined",3,"click"]],template:function(n,i){n&1&&(c(0,"div",5),_(1,Bae,5,5,"ng-container",6)(2,zae,4,1,"div",7)(3,Hae,6,0,"div",7)(4,Ese,214,75,"div",7),d()),n&2&&(p(),m("ngIf",i.is_loading===!0),p(),m("ngIf",!i.application&&!i.is_loading&&i.appNo),p(),m("ngIf",!i.appNo&&!i.is_loading),p(),m("ngIf",i.application&&i.shouldDisplayDetails&&!i.is_loading))},dependencies:[De,rt,Ce,wn,Dn,kn,xn,bo,Fn,Hn,Qo,Ii,pl,_m,Lt,fe,$o,In,Wo,If,fl,Dl,er,gd,wt,rl,al,Uo],styles:['@media print{@page{margin:0!important;padding:0!important}.no-print[_ngcontent-%COMP%], .show[_ngcontent-%COMP%], .main-page[_ngcontent-%COMP%]{visibility:hidden!important;background-color:#fff!important}.printRef[_ngcontent-%COMP%]{max-width:100%!important;height:100px!important;flex:0 0 100%!important}.modal-content[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{visibility:visible;overflow:visible}.main-page[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{display:none}.modal[_ngcontent-%COMP%]{position:absolute;left:0;top:0;margin:0;padding:0;visibility:visible;overflow:visible!important}.modal-dialog[_ngcontent-%COMP%]{visibility:visible!important;overflow:visible!important}}.application-detail-container[_ngcontent-%COMP%]{padding:1rem 1.5rem 2rem;background:linear-gradient(135deg,#f8fafc,#f1f5f9,#e2e8f0);min-height:100vh;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;position:relative}.application-detail-container[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;height:200px;background:linear-gradient(135deg,#022c220d,#0478570d);z-index:0;pointer-events:none}.application-detail-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{position:relative;z-index:1}.application-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem;padding:2.5rem 3rem;background:linear-gradient(135deg,#022c22,#047857 45%,#0d6449);border-radius:24px;box-shadow:0 25px 50px #00000026,0 0 0 1px #ffffff1a;color:#fff;position:relative;overflow:hidden}.application-header[_ngcontent-%COMP%]:before{content:"";position:absolute;top:-50%;right:-50%;width:200%;height:200%;background:radial-gradient(circle,rgba(255,255,255,.1) 0%,transparent 70%);animation:_ngcontent-%COMP%_pulse 8s ease-in-out infinite}@keyframes _ngcontent-%COMP%_pulse{0%,to{transform:scale(1);opacity:.5}50%{transform:scale(1.1);opacity:.8}}.header-content[_ngcontent-%COMP%] h1.application-title[_ngcontent-%COMP%]{font-size:2.5rem;font-weight:700;margin:0 0 .5rem;background:linear-gradient(45deg,#fff,#f0f0f0);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.header-content[_ngcontent-%COMP%] .application-subtitle[_ngcontent-%COMP%]{font-size:1.1rem;opacity:.9;margin:0;font-weight:400}.header-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}.header-actions[_ngcontent-%COMP%] .status-badge[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;background:#fff3;color:#fff;border:1px solid rgba(255,255,255,.3);padding:.75rem 1.5rem;border-radius:50px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font-size:.875rem;font-weight:500}.header-actions[_ngcontent-%COMP%] .status-badge.success[_ngcontent-%COMP%]{background:#22c55e4d;border-color:#22c55e80}.header-actions[_ngcontent-%COMP%] .status-badge.warning[_ngcontent-%COMP%]{background:#fbbf244d;border-color:#fbbf2480}.header-actions[_ngcontent-%COMP%] .status-badge.danger[_ngcontent-%COMP%]{background:#ef44444d;border-color:#ef444480}.header-actions[_ngcontent-%COMP%] .status-badge.default[_ngcontent-%COMP%]{background:#9ca3af4d;border-color:#9ca3af80}.header-actions[_ngcontent-%COMP%] .status-badge[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem}.header-actions[_ngcontent-%COMP%] .ref-number[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;background:#fff3;padding:.75rem 1.5rem;border-radius:50px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.3);font-family:Monaco,Menlo,monospace;font-weight:500}.header-actions[_ngcontent-%COMP%] .ref-number[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.2rem}.header-actions[_ngcontent-%COMP%] .ref-number[_ngcontent-%COMP%] .copy-btn[_ngcontent-%COMP%]{background:none;border:none;color:#fff;cursor:pointer;padding:.25rem;border-radius:4px;transition:background-color .2s}.header-actions[_ngcontent-%COMP%] .ref-number[_ngcontent-%COMP%] .copy-btn[_ngcontent-%COMP%]:hover{background:#fff3}.section-card[_ngcontent-%COMP%]{background:#fff;border-radius:20px;box-shadow:0 4px 20px #00000014,0 0 0 1px #0000000a;border:1px solid rgba(226,232,240,.8);overflow:hidden;transition:all .4s cubic-bezier(.4,0,.2,1);position:relative}.section-card[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#10b981,#059669,#047857);opacity:0;transition:opacity .3s ease}.section-card[_ngcontent-%COMP%]:hover{box-shadow:0 12px 40px #00000026,0 0 0 1px #10b98133;transform:translateY(-4px);border-color:#10b9814d}.section-card[_ngcontent-%COMP%]:hover:before{opacity:1}.section-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:1.75rem 2.5rem;background:linear-gradient(135deg,#f8fafc,#f1f5f9,#e2e8f0);border-bottom:2px solid rgba(16,185,129,.1);position:relative}.section-header[_ngcontent-%COMP%]:after{content:"";position:absolute;bottom:0;left:0;width:60px;height:3px;background:linear-gradient(90deg,#10b981,#059669);border-radius:0 3px 3px 0}.section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:1.25rem;font-weight:600;color:#1e293b;display:flex;align-items:center;gap:.75rem}.section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#64748b;font-size:1.1rem}.section-header[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%]{background:none;border:none;color:#64748b;cursor:pointer;padding:.5rem;border-radius:8px;transition:all .2s}.section-header[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%]:hover{background:#f1f5f9;color:#475569}.section-content[_ngcontent-%COMP%]{padding:2.5rem}.payment-gateway-container[_ngcontent-%COMP%]{padding:2rem;background:transparent;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.payment-methods-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:1.5rem;max-width:1200px;margin:0 auto}.payment-method-card[_ngcontent-%COMP%]{background:#fff;border-radius:24px;padding:2rem;box-shadow:0 10px 30px #0000001a,0 0 0 1px #0000000d;border:1px solid rgba(241,245,249,.8);transition:all .4s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.payment-method-card[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--card-gradient-start),var(--card-gradient-end))}.payment-method-card[_ngcontent-%COMP%]:hover{transform:translateY(-6px) scale(1.02);box-shadow:0 25px 50px #10b98140,0 0 0 1px #10b9814d;border-color:#10b98166}.payment-method-card.paystack-card[_ngcontent-%COMP%], .payment-method-card.remita-card[_ngcontent-%COMP%], .payment-method-card.quickteller-card[_ngcontent-%COMP%], .payment-method-card.cash-card[_ngcontent-%COMP%], .payment-method-card.paydirect-card[_ngcontent-%COMP%], .payment-method-card.zenith-card[_ngcontent-%COMP%]{--card-gradient-start: #10b981;--card-gradient-end: #059669}.payment-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;margin-bottom:1.5rem}.payment-card-header[_ngcontent-%COMP%] .payment-icon[_ngcontent-%COMP%]{width:60px;height:60px;border-radius:16px;background:#f8fafc;display:flex;align-items:center;justify-content:center;border:2px solid #e5e7eb;transition:all .3s ease}.payment-card-header[_ngcontent-%COMP%] .payment-icon[_ngcontent-%COMP%] .payment-logo[_ngcontent-%COMP%]{width:40px;height:40px;object-fit:contain}.payment-card-header[_ngcontent-%COMP%] .payment-info[_ngcontent-%COMP%]{flex:1}.payment-card-header[_ngcontent-%COMP%] .payment-info[_ngcontent-%COMP%] .payment-title[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:600;margin:0 0 .25rem;color:#1f2937}.payment-card-header[_ngcontent-%COMP%] .payment-info[_ngcontent-%COMP%] .payment-description[_ngcontent-%COMP%]{font-size:.875rem;color:#6b7280;margin:0;line-height:1.4}.payment-card-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.payment-card-content[_ngcontent-%COMP%] .payment-amount[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:1rem;background:#f8fafc;border-radius:12px;border:1px solid #e5e7eb}.payment-card-content[_ngcontent-%COMP%] .payment-amount[_ngcontent-%COMP%] .amount-label[_ngcontent-%COMP%]{font-size:.875rem;color:#6b7280;font-weight:500}.payment-card-content[_ngcontent-%COMP%] .payment-amount[_ngcontent-%COMP%] .amount-value[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:700;color:#1f2937}.modern-paystack-btn-custom[_ngcontent-%COMP%], .modern-remita-btn-custom[_ngcontent-%COMP%], .modern-quickteller-btn[_ngcontent-%COMP%], .modern-cash-btn[_ngcontent-%COMP%], .modern-paydirect-btn[_ngcontent-%COMP%], .modern-zenith-btn[_ngcontent-%COMP%]{width:100%;padding:1.25rem 1.75rem;border:none;border-radius:16px;font-weight:700;font-size:1.1rem;cursor:pointer;transition:all .4s cubic-bezier(.4,0,.2,1);display:flex;align-items:center;justify-content:center;gap:.875rem;position:relative;overflow:hidden;text-transform:uppercase;letter-spacing:.5px;min-height:56px;background:linear-gradient(135deg,#10b981,#059669,#047857);color:#fff;box-shadow:0 6px 20px #10b9814d}.modern-paystack-btn-custom[_ngcontent-%COMP%]:before, .modern-remita-btn-custom[_ngcontent-%COMP%]:before, .modern-quickteller-btn[_ngcontent-%COMP%]:before, .modern-cash-btn[_ngcontent-%COMP%]:before, .modern-paydirect-btn[_ngcontent-%COMP%]:before, .modern-zenith-btn[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent);transition:left .6s cubic-bezier(.4,0,.2,1)}.modern-paystack-btn-custom[_ngcontent-%COMP%]:after, .modern-remita-btn-custom[_ngcontent-%COMP%]:after, .modern-quickteller-btn[_ngcontent-%COMP%]:after, .modern-cash-btn[_ngcontent-%COMP%]:after, .modern-paydirect-btn[_ngcontent-%COMP%]:after, .modern-zenith-btn[_ngcontent-%COMP%]:after{content:"";position:absolute;top:50%;left:50%;width:0;height:0;background:#ffffff26;border-radius:50%;transform:translate(-50%,-50%);transition:all .6s cubic-bezier(.4,0,.2,1)}.modern-paystack-btn-custom[_ngcontent-%COMP%]:hover:before, .modern-remita-btn-custom[_ngcontent-%COMP%]:hover:before, .modern-quickteller-btn[_ngcontent-%COMP%]:hover:before, .modern-cash-btn[_ngcontent-%COMP%]:hover:before, .modern-paydirect-btn[_ngcontent-%COMP%]:hover:before, .modern-zenith-btn[_ngcontent-%COMP%]:hover:before{left:100%}.modern-paystack-btn-custom[_ngcontent-%COMP%]:hover:after, .modern-remita-btn-custom[_ngcontent-%COMP%]:hover:after, .modern-quickteller-btn[_ngcontent-%COMP%]:hover:after, .modern-cash-btn[_ngcontent-%COMP%]:hover:after, .modern-paydirect-btn[_ngcontent-%COMP%]:hover:after, .modern-zenith-btn[_ngcontent-%COMP%]:hover:after{width:300px;height:300px}.modern-paystack-btn-custom[_ngcontent-%COMP%]:hover, .modern-remita-btn-custom[_ngcontent-%COMP%]:hover, .modern-quickteller-btn[_ngcontent-%COMP%]:hover, .modern-cash-btn[_ngcontent-%COMP%]:hover, .modern-paydirect-btn[_ngcontent-%COMP%]:hover, .modern-zenith-btn[_ngcontent-%COMP%]:hover{transform:translateY(-3px) scale(1.02);box-shadow:0 12px 35px #10b98180;background:linear-gradient(135deg,#059669,#047857,#065f46)}.modern-paystack-btn-custom[_ngcontent-%COMP%]:active, .modern-remita-btn-custom[_ngcontent-%COMP%]:active, .modern-quickteller-btn[_ngcontent-%COMP%]:active, .modern-cash-btn[_ngcontent-%COMP%]:active, .modern-paydirect-btn[_ngcontent-%COMP%]:active, .modern-zenith-btn[_ngcontent-%COMP%]:active{transform:translateY(-1px) scale(.98);transition:all .1s ease}.modern-paystack-btn-custom[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .modern-remita-btn-custom[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .modern-quickteller-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .modern-cash-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .modern-paydirect-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .modern-zenith-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.25rem;transition:all .3s cubic-bezier(.4,0,.2,1);z-index:1;position:relative}.modern-paystack-btn-custom[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .modern-remita-btn-custom[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .modern-quickteller-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .modern-cash-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .modern-paydirect-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .modern-zenith-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{z-index:1;position:relative}.modern-paystack-btn-custom[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%], .modern-remita-btn-custom[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%], .modern-quickteller-btn[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%], .modern-cash-btn[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%], .modern-paydirect-btn[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%], .modern-zenith-btn[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%]{transform:scale(1.15) rotate(5deg)}.view-rrr-btn[_ngcontent-%COMP%]{width:100%;margin-top:.75rem;padding:.875rem 1.25rem;background:linear-gradient(135deg,#10b981,#059669,#047857);border:none;border-radius:12px;color:#fff;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);display:flex;align-items:center;justify-content:center;gap:.625rem;position:relative;overflow:hidden;box-shadow:0 4px 15px #10b98133}.view-rrr-btn[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .5s}.view-rrr-btn[_ngcontent-%COMP%]:hover{background:linear-gradient(135deg,#059669,#047857,#065f46);transform:translateY(-2px);box-shadow:0 8px 25px #10b98166}.view-rrr-btn[_ngcontent-%COMP%]:hover:before{left:100%}.view-rrr-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem;transition:transform .3s ease;color:#fff}.view-rrr-btn[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%]{transform:scale(1.1)}.hidden-paystack-wrapper[_ngcontent-%COMP%], .hidden-remita-wrapper[_ngcontent-%COMP%], .hidden-quickteller-wrapper[_ngcontent-%COMP%]{position:absolute;top:-9999px;left:-9999px;opacity:0;pointer-events:none;z-index:-1;width:1px;height:1px;overflow:hidden}.hidden-paystack-btn[_ngcontent-%COMP%], .hidden-remita-btn[_ngcontent-%COMP%], .hidden-quickteller-btn[_ngcontent-%COMP%]{display:none}.cash-modal[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.25rem}.modal-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.35rem}.modal-field[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:.85rem;font-weight:600;color:#22c55e;letter-spacing:.04em;text-transform:uppercase}.modal-field[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;font-size:1.2rem;font-weight:600;color:#0f172a}.alert-body[_ngcontent-%COMP%]{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:12px;padding:1.25rem;color:#0f172a}.payment-section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%]{padding-bottom:2rem}.coming-soon-note[_ngcontent-%COMP%]{text-align:center;padding:1rem;color:#6b7280;font-style:italic}.content-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(250px,.8fr);gap:1rem;align-items:start}@media (max-width: 1280px){.content-grid[_ngcontent-%COMP%]{grid-template-columns:minmax(0,1.35fr) minmax(260px,.85fr)}}@media (max-width: 1024px){.content-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}.main-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.sidebar[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;position:sticky;top:2rem}@media (max-width: 1024px){.sidebar[_ngcontent-%COMP%]{position:static}}.sidebar-card[_ngcontent-%COMP%]{background:#fff;border-radius:20px;box-shadow:0 4px 20px #00000014,0 0 0 1px #0000000a;border:1px solid rgba(241,245,249,.8);overflow:hidden;transition:all .3s ease;position:relative}.sidebar-card[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#10b981,#059669);opacity:0;transition:opacity .3s ease}.sidebar-card[_ngcontent-%COMP%]:hover{box-shadow:0 8px 30px #10b98126,0 0 0 1px #10b98133;transform:translateY(-2px)}.sidebar-card[_ngcontent-%COMP%]:hover:before{opacity:1}.sidebar-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]{padding:1.5rem 2rem;background:linear-gradient(135deg,#f8fafc,#f1f5f9,#e2e8f0);border-bottom:2px solid rgba(16,185,129,.1);position:relative}.sidebar-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]:after{content:"";position:absolute;bottom:0;left:0;width:50px;height:3px;background:linear-gradient(90deg,#10b981,#059669);border-radius:0 3px 3px 0}.sidebar-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:1.125rem;font-weight:600;color:#1e293b}.sidebar-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%]{padding:1.5rem}.action-buttons[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.action-btn[_ngcontent-%COMP%]{width:100%;padding:.875rem 1rem;border:none;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;gap:.5rem}.action-btn.success[_ngcontent-%COMP%]{background:#10b981;color:#fff}.action-btn.success[_ngcontent-%COMP%]:hover{background:#059669;transform:translateY(-1px)}.contact-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.info-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;font-size:.95rem;color:#1e293b}.query-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.query-text[_ngcontent-%COMP%]{font-size:.95rem;color:#1e293b;line-height:1.6;margin:0}.query-meta[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;font-size:.875rem;color:#64748b}.query-date[_ngcontent-%COMP%]{font-weight:500}.query-status[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.status-label[_ngcontent-%COMP%]{font-weight:500}.query-actions[_ngcontent-%COMP%]{margin-top:1rem;padding-top:1rem;border-top:1px solid #e2e8f0}.query-hint[_ngcontent-%COMP%]{font-size:.875rem;color:#64748b;margin-bottom:.5rem}.approve-btn[_ngcontent-%COMP%]{width:100%;background:#10b981;color:#fff;border:none;padding:.75rem 1rem;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s}.approve-btn[_ngcontent-%COMP%]:hover{background:#059669;transform:translateY(-1px)}.overview-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem;margin-bottom:2rem}.overview-card[_ngcontent-%COMP%]{background:#fff;border-radius:18px;padding:2rem;box-shadow:0 4px 20px #00000014,0 0 0 1px #0000000a;border:1px solid rgba(241,245,249,.8);transition:all .4s cubic-bezier(.4,0,.2,1);display:flex;align-items:center;gap:1rem;position:relative;overflow:hidden}.overview-card[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;width:5px;height:100%;background:linear-gradient(180deg,#10b981,#059669,#047857);transition:width .3s ease}.overview-card[_ngcontent-%COMP%]:hover{transform:translateY(-6px) scale(1.02);box-shadow:0 12px 40px #10b98133,0 0 0 1px #10b9814d;border-color:#10b98166}.overview-card[_ngcontent-%COMP%]:hover:before{width:6px}.overview-card.primary[_ngcontent-%COMP%], .overview-card.secondary[_ngcontent-%COMP%], .overview-card.success[_ngcontent-%COMP%], .overview-card.warning[_ngcontent-%COMP%]{border-left:none}.overview-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%]{flex:1}.overview-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{margin:0 0 .5rem;font-size:.875rem;font-weight:500;color:#64748b;text-transform:uppercase;letter-spacing:.05em}.overview-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .card-value[_ngcontent-%COMP%]{margin:0;font-size:1.125rem;font-weight:600;color:#1e293b}.info-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem}.info-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem;padding:1.25rem;background:linear-gradient(135deg,#f8fafc,#fff);border-radius:12px;border:1px solid rgba(226,232,240,.6);transition:all .3s ease;position:relative;overflow:hidden}.info-item[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;width:3px;height:100%;background:linear-gradient(180deg,#10b981,#059669);opacity:0;transition:opacity .3s ease}.info-item[_ngcontent-%COMP%]:hover{transform:translate(4px);box-shadow:0 4px 12px #10b98126;border-color:#10b9814d;background:linear-gradient(135deg,#f0fdf4,#fff)}.info-item[_ngcontent-%COMP%]:hover:before{opacity:1}.info-item[_ngcontent-%COMP%] .info-label[_ngcontent-%COMP%]{display:block;font-size:.875rem;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.08em;margin-bottom:.25rem}.info-item[_ngcontent-%COMP%] .info-value[_ngcontent-%COMP%]{font-size:1.1rem;color:#1e293b;font-weight:600;line-height:1.5}.affidavit-title[_ngcontent-%COMP%]{background:linear-gradient(135deg,#f8fafc,#f1f5f9);border:1px solid #e2e8f0;border-radius:12px;padding:1.5rem;margin-bottom:1.5rem;border-left:5px solid #0d6449}.affidavit-title[_ngcontent-%COMP%] .info-label[_ngcontent-%COMP%]{display:block;font-size:.875rem;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.05em;margin-bottom:.5rem}.affidavit-title[_ngcontent-%COMP%] .info-value[_ngcontent-%COMP%]{font-size:1.125rem;font-weight:600;color:#1e293b}.form-entries[_ngcontent-%COMP%]{margin-top:1.5rem}.entries-title[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:600;color:#1e293b;margin-bottom:1rem;padding-bottom:.5rem;border-bottom:2px solid #10b981;display:inline-block}.entries-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem}.entry-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.entry-label[_ngcontent-%COMP%]{font-size:.875rem;font-weight:500;color:#64748b;text-transform:uppercase;letter-spacing:.05em}.entry-value[_ngcontent-%COMP%]{font-size:1rem;color:#1e293b;font-weight:500}.document-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;padding:1.5rem;background:linear-gradient(135deg,#f8fafc,#fff);border-radius:16px;border:1px solid rgba(226,232,240,.6);transition:all .3s ease;position:relative;overflow:hidden}.document-item[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;width:3px;height:100%;background:linear-gradient(180deg,#10b981,#059669);opacity:0;transition:opacity .3s ease}.document-item[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 8px 20px #10b98126;border-color:#10b9814d;background:linear-gradient(135deg,#f0fdf4,#fff)}.document-item[_ngcontent-%COMP%]:hover:before{opacity:1}.doc-label[_ngcontent-%COMP%]{font-size:.875rem;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.08em}.doc-content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:150px;background:linear-gradient(135deg,#fff,#f8fafc);border-radius:14px;border:2px dashed rgba(226,232,240,.8);transition:all .3s ease}.document-item[_ngcontent-%COMP%]:hover .doc-content[_ngcontent-%COMP%]{border-color:#10b9814d;background:linear-gradient(135deg,#f0fdf4,#fff)}.no-doc[_ngcontent-%COMP%]{color:#94a3b8;font-size:.875rem;font-style:italic}.doc-image[_ngcontent-%COMP%]{max-width:100%;max-height:200px;border-radius:8px;object-fit:contain}.court-name[_ngcontent-%COMP%]{font-size:1rem;color:#1e293b;font-weight:500}.form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-title[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:600;color:#1e293b;margin:0}.document-form[_ngcontent-%COMP%], .form-fields[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.document-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;padding:1.5rem;background:#f8fafc;border-radius:12px;border:1px solid #e2e8f0}.field-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 1fr auto;gap:1rem;align-items:start}.field-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.field-label[_ngcontent-%COMP%]{font-size:.875rem;font-weight:500;color:#1e293b;display:flex;align-items:center;gap:.5rem}.field-number[_ngcontent-%COMP%]{background:#10b981;color:#fff;padding:.25rem .5rem;border-radius:4px;font-size:.75rem;font-weight:600}.required[_ngcontent-%COMP%]{color:#ef4444}.form-input[_ngcontent-%COMP%]{padding:.75rem;border:1px solid #e2e8f0;border-radius:8px;font-size:.95rem;transition:all .2s}.form-input[_ngcontent-%COMP%]:focus{outline:none;border-color:#10b981;box-shadow:0 0 0 3px #10b9811a}.form-input.error[_ngcontent-%COMP%]{border-color:#ef4444}.error-message[_ngcontent-%COMP%]{color:#ef4444;font-size:.875rem;margin-top:.25rem}.upload-btn[_ngcontent-%COMP%]{background:#10b981;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s}.upload-btn[_ngcontent-%COMP%]:hover{background:#059669;transform:translateY(-1px)}.file-preview[_ngcontent-%COMP%]{margin-top:.5rem}.preview-image[_ngcontent-%COMP%]{max-width:150px;max-height:120px;border-radius:8px;object-fit:cover;border:1px solid #e2e8f0}.remove-btn[_ngcontent-%COMP%]{background:#ef4444;color:#fff;border:none;padding:.5rem;border-radius:8px;cursor:pointer;transition:all .2s}.remove-btn[_ngcontent-%COMP%]:hover{background:#dc2626}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:1rem}.add-btn[_ngcontent-%COMP%]{background:#3b82f6;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s}.add-btn[_ngcontent-%COMP%]:hover{background:#2563eb;transform:translateY(-1px)}.form-footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:1rem;margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid #e2e8f0}.cancel-btn[_ngcontent-%COMP%]{background:#ff9f43!important;border:1px solid rgb(255,159,67)!important;color:#0f172a!important;box-shadow:0 12px 24px #ff9f4359}.cancel-btn[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 16px 32px #ff9f4373}.preview-btn[_ngcontent-%COMP%]{background:#10b981;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s}.preview-btn[_ngcontent-%COMP%]:hover{background:#059669;transform:translateY(-1px)}.preview-btn[_ngcontent-%COMP%]:disabled{background:#94a3b8;cursor:not-allowed}.summary-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.summary-title[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:600;color:#1e293b;margin:0}.documents-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem}.document-card[_ngcontent-%COMP%]{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:1rem;box-shadow:0 2px 8px #0000000a}.doc-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem}.doc-number[_ngcontent-%COMP%]{background:#10b981;color:#fff;width:2rem;height:2rem;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.875rem;font-weight:600}.doc-title[_ngcontent-%COMP%]{font-size:1rem;font-weight:500;color:#1e293b;margin:0}.doc-image[_ngcontent-%COMP%]{width:100%;max-height:150px;border-radius:8px;object-fit:cover}.summary-actions[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:1rem;margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid #e2e8f0}.back-btn[_ngcontent-%COMP%]{background:#ff9f43!important;border:1px solid rgb(255,159,67)!important;color:#0f172a!important;box-shadow:0 12px 24px #ff9f4359}.back-btn[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 16px 32px #ff9f4373}.save-btn[_ngcontent-%COMP%]{background:#10b981;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s}.save-btn[_ngcontent-%COMP%]:hover{background:#059669;transform:translateY(-1px)}.table-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.search-bar[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center}.search-icon[_ngcontent-%COMP%]{position:absolute;left:1rem;color:#64748b;z-index:1}.search-input[_ngcontent-%COMP%]{width:100%;padding:.75rem 1rem .75rem 2.5rem;border:1px solid #e2e8f0;border-radius:8px;font-size:.95rem;transition:all .2s}.search-input[_ngcontent-%COMP%]:focus{outline:none;border-color:#10b981;box-shadow:0 0 0 3px #10b9811a}.documents-table[_ngcontent-%COMP%]{width:100%}.doc-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;font-weight:500;color:#1e293b}.view-btn[_ngcontent-%COMP%], .delete-btn[_ngcontent-%COMP%]{margin:0 .25rem}.modal-content[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:2rem}.id-image[_ngcontent-%COMP%]{max-width:100%;max-height:500px;border-radius:8px;object-fit:contain}.document-preview[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:2rem;background:#f8fafc;border-radius:12px}.document-image[_ngcontent-%COMP%]{max-width:100%;max-height:600px;border-radius:8px;object-fit:contain}.dialog-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem}.dialog-actions[_ngcontent-%COMP%]{display:flex;gap:1rem;justify-content:flex-end}.add-doc-btn[_ngcontent-%COMP%]{background:#10b981;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s;display:flex;align-items:center;gap:.5rem}.add-doc-btn[_ngcontent-%COMP%]:hover{background:#059669;transform:translateY(-1px)}@media (max-width: 768px){.application-detail-container[_ngcontent-%COMP%]{padding:1rem}.payment-methods-grid[_ngcontent-%COMP%]{grid-template-columns:1fr;gap:1rem}.payment-method-card[_ngcontent-%COMP%]{padding:1.25rem}.application-header[_ngcontent-%COMP%]{flex-direction:column;gap:1rem;text-align:center;padding:1.5rem}.header-content[_ngcontent-%COMP%] h1.application-title[_ngcontent-%COMP%]{font-size:2rem}.header-actions[_ngcontent-%COMP%]{flex-direction:column;align-items:center;gap:.75rem}.header-actions[_ngcontent-%COMP%] .status-badge[_ngcontent-%COMP%], .header-actions[_ngcontent-%COMP%] .ref-number[_ngcontent-%COMP%]{width:100%;justify-content:center}.payment-gateway-container[_ngcontent-%COMP%]{padding:0}.payment-methods-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.payment-method-card[_ngcontent-%COMP%]{flex-direction:row;align-items:center;gap:1rem;padding:1rem}.payment-method-card[_ngcontent-%COMP%] .payment-icon[_ngcontent-%COMP%]{width:4rem;height:4rem}.payment-method-card[_ngcontent-%COMP%] .payment-info[_ngcontent-%COMP%] .payment-title[_ngcontent-%COMP%]{font-size:1rem}.payment-method-card[_ngcontent-%COMP%] .payment-info[_ngcontent-%COMP%] .payment-description[_ngcontent-%COMP%]{font-size:.8rem}.payment-method-card[_ngcontent-%COMP%] .payment-card-content[_ngcontent-%COMP%]{flex-direction:row;align-items:center;gap:1rem}.payment-method-card[_ngcontent-%COMP%] .payment-card-content[_ngcontent-%COMP%] .payment-amount[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:.5rem}.modern-paystack-btn-custom[_ngcontent-%COMP%], .modern-remita-btn-custom[_ngcontent-%COMP%], .modern-quickteller-btn[_ngcontent-%COMP%], .modern-zenith-btn[_ngcontent-%COMP%], .modern-cash-btn[_ngcontent-%COMP%], .modern-paydirect-btn[_ngcontent-%COMP%], .view-rrr-btn[_ngcontent-%COMP%]{width:100%;justify-content:center}}']})}}return t})();var cO=(()=>{class t{constructor(e){this.affidavitPageStore=e,this.access_token=null,this.apiMode=null,this.affidavitPageStore.token$.subscribe({next:n=>{this.access_token=n}}),this.affidavitPageStore.mode$.subscribe({next:n=>{this.apiMode=n}})}intercept(e,n){let i=e.url.startsWith(this.apiMode===Fe.PRODUCTION?me.productionApiUrl:me.testApiUrl),r=this.access_token;return i&&r&&(e=e.clone({setHeaders:{Token:`${r}`}})),n.handle(e)}static{this.\u0275fac=function(n){return new(n||t)(ne(Te))}}static{this.\u0275prov=ee({token:t,factory:t.\u0275fac})}}return t})();var Ose=()=>({width:"60px",height:"60px"});function Tse(t,o){if(t&1&&(B(0),c(1,"p-blockUI",2)(2,"div",3),v(3,"p-progressSpinner",4),c(4,"h2",5),g(5),d(),c(6,"p",6),g(7,"We are preparing your experience..."),d()()(),z()),t&2){let e,n=f();p(),m("blocked",n.data.is_loading),p(2),It(Pe(4,Ose)),p(2),se(" ",(e=n.data.loading_label)!==null&&e!==void 0?e:"Loading, please wait..."," ")}}function Pse(t,o){if(t&1){let e=D();c(0,"span",18)(1,"img",19),I("click",function(){C(e);let i=f(2);return y(i.goHome())}),d(),c(2,"span",20),g(3,"Federal High Court E-Affidavit"),d()()}if(t&2){let e=f(2);p(),m("src",e.logo,Ae)}}function Dse(t,o){if(t&1){let e=D();c(0,"e-affidavit-applications-details-page",21),I("getApplications",function(i){C(e);let r=f(2);return y(r.getApps(i))}),d()}}function kse(t,o){t&1&&v(0,"e-affidavit-bulk-applications")}function Fse(t,o){t&1&&v(0,"e-affidavit-check-application-page")}function Rse(t,o){t&1&&v(0,"e-affidavit-applications-edit")}function Vse(t,o){t&1&&v(0,"e-affidavit-print")}function Lse(t,o){if(t&1&&(c(0,"div",7)(1,"div",8)(2,"div",9)(3,"div",10)(4,"div",11)(5,"div",12)(6,"p-menubar",13),_(7,Pse,4,1,"ng-template",14),d()()()(),c(8,"div",15)(9,"div",16),_(10,Dse,1,0,"e-affidavit-applications-details-page",17)(11,kse,1,0,"e-affidavit-bulk-applications",0)(12,Fse,1,0,"e-affidavit-check-application-page",0)(13,Rse,1,0,"e-affidavit-applications-edit",0)(14,Vse,1,0,"e-affidavit-print",0),d()()()()()),t&2){let e=f();p(6),m("model",e.items),p(4),m("ngIf",e.data.canDisplayApplicationDetail),p(),m("ngIf",e.data.canDisplayNew),p(),m("ngIf",e.data.canDisplayCheckApplication),p(),m("ngIf",e.data.canDisplayEditApplication),p(),m("ngIf",e.data.canDisplayAffidavitDetail)}}var dO=(()=>{class t{constructor(e,n,i,r,a,s,l){this.affidavitPageStore=e,this.applicationService=n,this.primeConfig=i,this.apiKey=r,this.apiMode=a,this.el=s,this.renderer=l,this.callBack=new V,this.page="new",this.token="",this.mode="",this.client_ref="",this.payload=[],this.affidavitTemplateId=0,this.payment_redirect_url="",this.overlay=!0,this.logo="data:image/png;base64,"+pt.ecms_logo,this.data={token:null,is_loading:!1,id:0,loading_label:null,canDisplayNew:!1,canDisplayCheckApplication:!1,canDisplayApplicationDetail:!1,canDisplayEditApplication:!1,canDisplayAffidavitDetail:!1},this.affidavitPageStore.setToken(this.apiKey),this.affidavitPageStore.setMode(this.apiMode),this.affidavitPageStore.startLoading("Loading . . .")}ngOnInit(){this.page=="details"?this.affidavitPageStore.toggle("application-detail"):this.page=="new"&&this.affidavitPageStore.toggle("new"),this.primeConfig.ripple=!0,this.token&&this.affidavitPageStore.setToken(this.token),this.mode&&this.affidavitPageStore.setMode(this.mode),this.client_ref&&this.applicationService.setClientRef(this.client_ref),this.affidavitTemplateId&&this.applicationService.setAffidavitTemplateId(this.affidavitTemplateId),this.payload&&this.applicationService.setPayload(this.payload),this.payment_redirect_url&&this.applicationService.setPaymentRedirectUrl(this.payment_redirect_url),this.affidavitPageStore.state$.subscribe({next:e=>{this.data=e}}),this.items=[{label:"New Application",icon:"pi pi-fw pi-plus",style:{transition:"background 0.25s, color 0.25s, box-shadow 0.25s, border 0.25s",borderRadius:"0.75rem",margin:"0 0.15rem"},command:()=>{this.data.canDisplayNew||(this.affidavitPageStore.startLoading("Loading . . ."),this.affidavitPageStore.toggle("new"))},styleClass:"menuitem-new"},{label:"Check Application",icon:"pi pi-check-circle",style:{transition:"background 0.25s, color 0.25s, box-shadow 0.25s, border 0.25s",borderRadius:"0.75rem",margin:"0 0.15rem",fontWeight:"bold"},command:()=>{this.affidavitPageStore.toggle("check")},styleClass:"menuitem-check"}],this.affidavitPageStore.store$.pipe(ci(1)).subscribe(e=>{!e.canDisplayNew&&!e.canDisplayCheckApplication&&!e.canDisplayApplicationDetail&&!e.canDisplayAffidavitDetail&&!e.canDisplayEditApplication&&this.affidavitPageStore.toggle("new")}),setTimeout(()=>{!(this.overlay===!1||this.overlay==="false")&&this.createOverlayHost()},150)}getApps(e){}goHome(){this.data.canDisplayNew||this.affidavitPageStore.toggle("new")}createOverlayHost(){try{let e=this.el.nativeElement;if(e.__hc_overlay_refs)return;this.ensureOverlayStyles();let n=this.renderer.createElement("div");this.renderer.addClass(n,"hc-overlay-backdrop"),this.renderer.setAttribute(n,"tabindex","-1");let i=this.renderer.createElement("div");this.renderer.addClass(i,"hc-overlay-panel");let r=this.renderer.createElement("button");this.renderer.addClass(r,"hc-overlay-close"),this.renderer.setAttribute(r,"aria-label","Close"),this.renderer.listen(r,"click",()=>this.closeLibrary()),this.renderer.appendChild(i,r);let a=e.parentElement;this.renderer.appendChild(i,e),this.renderer.appendChild(n,i),this.renderer.appendChild(document.body,n),setTimeout(()=>{try{this.renderer.addClass(n,"hc-overlay-open"),this.renderer.addClass(i,"hc-overlay-open"),this.renderer.addClass(document.body,"hc-overlay-open")}catch{}},20);let s=document&&document.activeElement||null,l=document.body.style.overflow;document.body.style.overflow="hidden";let u=h=>{h.key==="Escape"&&this.closeLibrary(),h.key==="Tab"&&this.maintainFocus(h,i)};window.addEventListener("keydown",u),this.renderer.setAttribute(i,"role","dialog"),this.renderer.setAttribute(i,"aria-modal","true"),this.renderer.setAttribute(i,"tabindex","-1"),setTimeout(()=>{try{i.focus()}catch{}},0),e.__hc_overlay_refs={backdrop:n,keyHandler:u,originalParent:a,prevFocus:s,prevOverflow:l}}catch(e){console.warn("Failed to create overlay for bulk-create-applications:",e)}}closeOverlay(){let e=this.el.nativeElement,n=e.__hc_overlay_refs;if(n)try{let{backdrop:i,keyHandler:r,originalParent:a,prevFocus:s,prevOverflow:l}=n;window.removeEventListener("keydown",r),i&&i.parentNode&&i.parentNode.removeChild(i),a&&e&&e.parentElement&&e.parentElement!==a&&a.appendChild(e);try{this.renderer.removeClass(document.body,"hc-overlay-open"),l!==void 0&&(document.body.style.overflow=l)}catch{}try{s&&s.focus&&s.focus()}catch{}delete e.__hc_overlay_refs}catch{}}closeLibrary(){this.closeOverlay(),this.affidavitPageStore.closeLibrary()}maintainFocus(e,n){if(e.key!=="Tab")return;let i=n.querySelectorAll('a[href], area[href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, [tabindex]:not([tabindex="-1"]), [contenteditable]'),r=Array.prototype.slice.call(i);if(!r.length){e.preventDefault();return}let a=r[0],s=r[r.length-1],l=document.activeElement;e.shiftKey?(l===a||l===n)&&(e.preventDefault(),s.focus()):l===s&&(e.preventDefault(),a.focus())}ensureOverlayStyles(){if(document.querySelector("style[data-hc-overlay-component]"))return;let e=`
|
|
835
835
|
/* Full-page backdrop - Paystack/Remita style */
|
|
836
836
|
.hc-overlay-backdrop {
|
|
837
837
|
position: fixed !important;
|