highcourt-affidavit-elements 0.2.14 → 0.2.16
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.
|
@@ -19,10 +19,11 @@
|
|
|
19
19
|
*
|
|
20
20
|
* Event listeners can be set up directly on the element:
|
|
21
21
|
* const element = document.querySelector('highcourt-affidavit');
|
|
22
|
-
* element.addEventListener('
|
|
23
|
-
* element.addEventListener('on-payment-success', (event) => { ... });
|
|
22
|
+
* element.addEventListener('call-back', (event) => { ... }); // or 'callBack' for compatibility
|
|
23
|
+
* element.addEventListener('on-payment-success', (event) => { ... }); // Angular Elements converts camelCase to kebab-case
|
|
24
|
+
* element.addEventListener('overlay-close', (event) => { ... }); // Angular Elements converts camelCase to kebab-case
|
|
24
25
|
* // Note: Angular Elements converts camelCase @Output() names to kebab-case for custom DOM events
|
|
25
|
-
*
|
|
26
|
+
* // You can listen to both kebab-case (recommended) and camelCase versions for compatibility
|
|
26
27
|
*
|
|
27
28
|
* Usage example (pay-affidavit):
|
|
28
29
|
* <script src="https://cdn.your-domain.com/highcourt-affidavit-elements/v0.2.3/loader.js"
|
|
@@ -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.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;let e=!1;this.affidavitPageStore.state$.subscribe({next:n=>{let i=n.canDisplayNew||n.canDisplayCheckApplication||n.canDisplayApplicationDetail||n.canDisplayAffidavitDetail||n.canDisplayEditApplication;this.data=n,i&&!e&&!(this.overlay===!1||this.overlay==="false")&&setTimeout(()=>{this.createOverlayHost()},100),e=i}}),this.affidavitPageStore.store$.pipe(ci(1)).subscribe(n=>{!n.canDisplayNew&&!n.canDisplayCheckApplication&&!n.canDisplayApplicationDetail&&!n.canDisplayAffidavitDetail&&!n.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,n=e.__hc_overlay_refs;if(n&&n.backdrop&&document.body.contains(n.backdrop))return;n&&delete e.__hc_overlay_refs,this.ensureOverlayStyles();let i=this.renderer.createElement("div");this.renderer.addClass(i,"hc-overlay-backdrop"),this.renderer.setAttribute(i,"tabindex","-1");let r=this.renderer.createElement("div");this.renderer.addClass(r,"hc-overlay-panel");let a=this.renderer.createElement("button");this.renderer.addClass(a,"hc-overlay-close"),this.renderer.setAttribute(a,"aria-label","Close"),this.renderer.listen(a,"click",()=>this.closeLibrary()),this.renderer.appendChild(r,a);let s=e.parentElement;this.renderer.appendChild(r,e),this.renderer.appendChild(i,r),this.renderer.appendChild(document.body,i),setTimeout(()=>{try{this.renderer.addClass(i,"hc-overlay-open"),this.renderer.addClass(r,"hc-overlay-open"),this.renderer.addClass(document.body,"hc-overlay-open")}catch{}},20);let l=document&&document.activeElement||null,u=document.body.style.overflow;document.body.style.overflow="hidden";let h=A=>{A.key==="Escape"&&this.closeLibrary(),A.key==="Tab"&&this.maintainFocus(A,r)};window.addEventListener("keydown",h),this.renderer.setAttribute(r,"role","dialog"),this.renderer.setAttribute(r,"aria-modal","true"),this.renderer.setAttribute(r,"tabindex","-1"),setTimeout(()=>{try{r.focus()}catch{}},0),e.__hc_overlay_refs={backdrop:i,keyHandler:h,originalParent:s,prevFocus:l,prevOverflow:u}}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=`
|
|
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.paymentSuccess=new V,this.overlayClose=new V,this.overlay=!0,this._token="",this._mode="",this._templateId=0,this._appId="",this.isOverlayCreated=!1,this.logo="data:image/png;base64,"+pt.ecms_logo,this.applyToken(this.apiKey),this.applyMode(this.apiMode),this.exposeHostApi()}ngOnInit(){this.primeConfig.ripple=!0,this.stateSubscription=this.affidavitPageStore.state$.subscribe({next:e=>{let n=e.canDisplayNew||e.canDisplayCheckApplication||e.canDisplayApplicationDetail||e.canDisplayAffidavitDetail||e.canDisplayEditApplication;this.data=e;let i=!(this.overlay===!1||this.overlay==="false");n&&i&&!this.isOverlayCreated&&this.createOverlayHost()}}),this.affidavitPageStore.store$.pipe(ci(1)).subscribe(e=>{!e.canDisplayNew&&!e.canDisplayCheckApplication&&!e.canDisplayApplicationDetail&&!e.canDisplayAffidavitDetail&&!e.canDisplayEditApplication&&this.affidavitPageStore.toggle("new")}),this.initializeMenuItems()}ngAfterViewInit(){setTimeout(()=>{!(this.overlay===!1||this.overlay==="false")&&!this.isOverlayCreated&&this.createOverlayHost()},200)}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe(),this.closeOverlay()}initializeMenuItems(){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"}]}createOverlayHost(){try{if(this.isOverlayCreated)return;let e=this.el.nativeElement,n=e.__hc_overlay_refs;if(n&&n.backdrop&&document.body.contains(n.backdrop)){this.isOverlayCreated=!0;return}this.ensureOverlayStyles();let i=this.renderer.createElement("div");this.renderer.addClass(i,"hc-overlay-backdrop"),this.renderer.setAttribute(i,"tabindex","-1");let r=this.renderer.createElement("div");this.renderer.addClass(r,"hc-overlay-panel");let a=this.renderer.createElement("button");this.renderer.addClass(a,"hc-overlay-close"),this.renderer.setAttribute(a,"aria-label","Close"),this.renderer.setAttribute(a,"type","button"),this.renderer.listen(a,"click",()=>this.handleCloseOverlay()),this.renderer.appendChild(r,a);let s=e.parentElement;this.renderer.appendChild(r,e),this.renderer.appendChild(i,r),this.renderer.appendChild(document.body,i),setTimeout(()=>{try{this.renderer.addClass(i,"hc-overlay-open"),this.renderer.addClass(r,"hc-overlay-open"),this.renderer.addClass(document.body,"hc-overlay-open")}catch{}},20);let l=document.activeElement,u=document.body.style.overflow;document.body.style.overflow="hidden";let h=A=>{A.key==="Escape"&&this.handleCloseOverlay(),A.key==="Tab"&&this.maintainFocus(A,r)};window.addEventListener("keydown",h),this.renderer.setAttribute(r,"role","dialog"),this.renderer.setAttribute(r,"aria-modal","true"),this.renderer.setAttribute(r,"tabindex","-1"),setTimeout(()=>{try{r.focus()}catch{}},0),e.__hc_overlay_refs={backdrop:i,keyHandler:h,originalParent:s,prevFocus:l,prevOverflow:u},this.isOverlayCreated=!0}catch(e){console.warn("Failed to create overlay for highcourt-affidavit:",e)}}handleCloseOverlay(){console.log("Overlay close triggered"),this.overlayClose.emit(!0),this.closeOverlay(),this.affidavitPageStore.closeLibrary()}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;r&&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&&typeof s.focus=="function"&&setTimeout(()=>s.focus(),0)}catch{}delete e.__hc_overlay_refs,this.isOverlayCreated=!1}catch(i){console.warn("Error closing overlay:",i)}}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.from(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(){let e=this.el.nativeElement;e.openAffidavitOverlay=()=>{this.isOverlayCreated||this.createOverlayHost()},e.closeAffidavitOverlay=()=>{this.handleCloseOverlay()},e.emitPaymentSuccess=n=>{this.handlePaymentCallback(n)},e.emitCallBack=n=>{this.getApp(n)}}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;
|
|
@@ -125,13 +125,7 @@ ${e.map((n,i)=>`${i+1}) ${n.toString()}`).join(`
|
|
|
125
125
|
backdrop-filter: blur(4px);
|
|
126
126
|
-webkit-backdrop-filter: blur(4px);
|
|
127
127
|
pointer-events: auto;
|
|
128
|
-
/* Ensure backdrop blocks all interactions with background */
|
|
129
128
|
touch-action: none;
|
|
130
|
-
/* Ensure it's on top of everything */
|
|
131
|
-
top: 0 !important;
|
|
132
|
-
left: 0 !important;
|
|
133
|
-
right: 0 !important;
|
|
134
|
-
bottom: 0 !important;
|
|
135
129
|
}
|
|
136
130
|
.hc-overlay-backdrop.hc-overlay-open {
|
|
137
131
|
opacity: 1;
|
|
@@ -155,21 +149,14 @@ ${e.map((n,i)=>`${i+1}) ${n.toString()}`).join(`
|
|
|
155
149
|
display: flex;
|
|
156
150
|
flex-direction: column;
|
|
157
151
|
pointer-events: auto;
|
|
158
|
-
/* Ensure panel and its contents are interactive and on top */
|
|
159
152
|
z-index: 100000 !important;
|
|
160
153
|
}
|
|
161
154
|
.hc-overlay-panel.hc-overlay-open {
|
|
162
155
|
transform: translateY(0);
|
|
163
156
|
border-radius: 16px;
|
|
164
157
|
}
|
|
165
|
-
.hc-overlay-panel > * {
|
|
166
|
-
width: 100%;
|
|
167
|
-
height: auto;
|
|
168
|
-
flex-shrink: 0;
|
|
169
|
-
pointer-events: auto;
|
|
170
|
-
}
|
|
171
158
|
|
|
172
|
-
/* Close button
|
|
159
|
+
/* Close button */
|
|
173
160
|
.hc-overlay-close {
|
|
174
161
|
position: absolute;
|
|
175
162
|
right: 1rem;
|
|
@@ -202,61 +189,9 @@ ${e.map((n,i)=>`${i+1}) ${n.toString()}`).join(`
|
|
|
202
189
|
}
|
|
203
190
|
.hc-overlay-close::before {
|
|
204
191
|
content: '\xD7';
|
|
205
|
-
display: block;
|
|
206
|
-
color: #333;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
/* Internal overlay variant (applies to outer wrapper) */
|
|
210
|
-
.hc-overlay-internal.hc-overlay-backdrop {
|
|
211
|
-
position: absolute !important;
|
|
212
|
-
inset: 0 !important;
|
|
213
|
-
display: flex;
|
|
214
|
-
align-items: center;
|
|
215
|
-
justify-content: center;
|
|
216
|
-
background: rgba(0, 0, 0, 0.5);
|
|
217
|
-
padding: 2rem 1rem;
|
|
218
|
-
pointer-events: auto;
|
|
219
|
-
z-index: 99999 !important;
|
|
220
|
-
opacity: 0;
|
|
221
|
-
transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
222
|
-
backdrop-filter: blur(4px);
|
|
223
|
-
-webkit-backdrop-filter: blur(4px);
|
|
224
|
-
/* Ensure backdrop blocks all interactions with background */
|
|
225
|
-
touch-action: none;
|
|
226
|
-
/* Ensure it's on top of everything */
|
|
227
|
-
top: 0 !important;
|
|
228
|
-
left: 0 !important;
|
|
229
|
-
right: 0 !important;
|
|
230
|
-
bottom: 0 !important;
|
|
231
|
-
}
|
|
232
|
-
.hc-overlay-internal.hc-overlay-backdrop.hc-overlay-open {
|
|
233
|
-
opacity: 1;
|
|
234
|
-
}
|
|
235
|
-
.hc-overlay-internal .hc-overlay-panel {
|
|
236
|
-
max-width: 1000px;
|
|
237
|
-
max-height: 90vh;
|
|
238
|
-
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
|
|
239
|
-
padding: 0;
|
|
240
|
-
border-radius: 16px;
|
|
241
|
-
position: relative;
|
|
242
|
-
z-index: 100000 !important;
|
|
243
|
-
transform: scale(0.95) translateY(20px);
|
|
244
|
-
transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease;
|
|
245
|
-
opacity: 0;
|
|
246
|
-
margin-top: 0;
|
|
247
|
-
overflow-y: auto;
|
|
248
|
-
overflow-x: hidden;
|
|
249
|
-
pointer-events: auto;
|
|
250
|
-
}
|
|
251
|
-
.hc-overlay-internal .hc-overlay-panel.hc-overlay-open {
|
|
252
|
-
transform: scale(1) translateY(0);
|
|
253
|
-
opacity: 1;
|
|
254
|
-
}
|
|
255
|
-
.hc-overlay-internal-host {
|
|
256
|
-
overflow: hidden;
|
|
257
192
|
}
|
|
258
193
|
|
|
259
|
-
/* Desktop
|
|
194
|
+
/* Desktop styles */
|
|
260
195
|
@media (min-width: 768px) {
|
|
261
196
|
.hc-overlay-backdrop {
|
|
262
197
|
align-items: center;
|
|
@@ -271,8 +206,6 @@ ${e.map((n,i)=>`${i+1}) ${n.toString()}`).join(`
|
|
|
271
206
|
opacity: 0;
|
|
272
207
|
margin-top: 0;
|
|
273
208
|
max-height: 90vh;
|
|
274
|
-
overflow-y: auto;
|
|
275
|
-
overflow-x: hidden;
|
|
276
209
|
}
|
|
277
210
|
.hc-overlay-panel.hc-overlay-open {
|
|
278
211
|
transform: scale(1) translateY(0);
|
|
@@ -284,15 +217,12 @@ ${e.map((n,i)=>`${i+1}) ${n.toString()}`).join(`
|
|
|
284
217
|
}
|
|
285
218
|
}
|
|
286
219
|
|
|
287
|
-
/* Mobile
|
|
220
|
+
/* Mobile styles */
|
|
288
221
|
@media (max-width: 767px) {
|
|
289
222
|
.hc-overlay-backdrop {
|
|
290
223
|
align-items: stretch !important;
|
|
291
224
|
padding: 0 !important;
|
|
292
225
|
background: rgba(0, 0, 0, 0.85) !important;
|
|
293
|
-
position: fixed !important;
|
|
294
|
-
inset: 0 !important;
|
|
295
|
-
overflow: hidden !important;
|
|
296
226
|
}
|
|
297
227
|
.hc-overlay-panel {
|
|
298
228
|
width: 100% !important;
|
|
@@ -302,34 +232,21 @@ ${e.map((n,i)=>`${i+1}) ${n.toString()}`).join(`
|
|
|
302
232
|
min-height: 100vh !important;
|
|
303
233
|
border-radius: 0 !important;
|
|
304
234
|
transform: translateY(100%);
|
|
305
|
-
transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
|
|
306
235
|
margin-top: 0 !important;
|
|
307
|
-
margin-bottom: 0 !important;
|
|
308
|
-
overflow-y: auto;
|
|
309
|
-
overflow-x: hidden;
|
|
310
|
-
position: relative;
|
|
311
|
-
box-shadow: none !important;
|
|
312
236
|
}
|
|
313
237
|
.hc-overlay-panel.hc-overlay-open {
|
|
314
238
|
transform: translateY(0) !important;
|
|
315
|
-
border-radius: 0 !important;
|
|
316
239
|
}
|
|
317
240
|
.hc-overlay-close {
|
|
318
241
|
right: 1rem;
|
|
319
242
|
top: 1rem;
|
|
320
243
|
background: rgba(255, 255, 255, 0.95);
|
|
321
|
-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
322
|
-
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
323
244
|
position: fixed;
|
|
324
245
|
z-index: 1000001 !important;
|
|
325
246
|
}
|
|
326
|
-
.hc-overlay-close:hover {
|
|
327
|
-
background: rgba(255, 255, 255, 1);
|
|
328
|
-
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
|
|
329
|
-
}
|
|
330
247
|
}
|
|
331
248
|
|
|
332
|
-
/*
|
|
249
|
+
/* Scrollbar styling */
|
|
333
250
|
.hc-overlay-panel::-webkit-scrollbar {
|
|
334
251
|
width: 8px;
|
|
335
252
|
}
|
|
@@ -344,11 +261,11 @@ ${e.map((n,i)=>`${i+1}) ${n.toString()}`).join(`
|
|
|
344
261
|
background: rgba(0, 0, 0, 0.3);
|
|
345
262
|
}
|
|
346
263
|
|
|
347
|
-
/*
|
|
264
|
+
/* Body scroll lock */
|
|
348
265
|
body.hc-overlay-open {
|
|
349
266
|
overflow: hidden !important;
|
|
350
267
|
}
|
|
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("
|
|
268
|
+
`,n=document.createElement("style");n.setAttribute("data-hc-overlay-component",""),n.innerHTML=e,document.head.appendChild(n)}getApp(e){console.log("Emitting callBack event:",e),this.callBack.emit(e)}handlePaymentCallback(e){console.log("Emitting paymentSuccess event:",e),this.paymentSuccess.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),e&&(this._payload=e,this.affidavitPageStore.setPayload(e),this.applicationsService.setPayload(e))}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",paymentSuccess:"paymentSuccess",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
269
|
|
|
353
270
|
.enhanced-menubar .p-menubar-root-list>.p-menuitem>.p-menuitem-link {
|
|
354
271
|
transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s;
|