1import{a as w}from"./chunk-JBBPDF7L.js";import{Ab as i,Bb as r,Cb as d,Ec as Y,Fb as h,Fc as v,Ga as V,Gc as Z,Hb as g,Ib as m,Ka as k,Mc as J,Oc as u,Pb as c,Qb as E,Qc as H,Rb as _,Xb as b,Za as A,Zb as F,_b as U,aa as T,bc as G,cb as a,db as P,dc as K,la as f,ma as R,sb as x,ua as L,ub as p,va as I,wa as y}from"./chunk-GKVI4QUQ.js";var X=n=>["segment",n],Q=(n,l)=>({"segment-main":!0,expandable:n,expanded:l});function D(n,l){n&1&&d(0,"div",9)}function ee(n,l){if(n&1&&(i(0,"span",10),c(1),r()),n&2){let e=m().$implicit;a(),E(e.description)}}function te(n,l){if(n&1&&(i(0,"section",11),d(1,"ngx-json-viewer",12),r()),n&2){let e=m().$implicit,o=m();a(),p("json",e.value)("expanded",o.expanded)("depth",o.depth)("_currentDepth",o._currentDepth+1)}}function ne(n,l){if(n&1){let e=h();i(0,"section",2)(1,"section",3),g("click",function(){let t=I(e).$implicit,s=m();return y(s.toggle(t))}),x(2,D,1,0,"div",4),i(3,"span",5),c(4),r(),i(5,"span",6),c(6,": "),r(),x(7,ee,2,1,"span",7),r(),x(8,te,2,4,"section",8),r()}if(n&2){let e=l.$implicit,o=m();p("ngClass",F(6,X,"segment-type-"+e.type)),a(),p("ngClass",U(8,Q,o.isExpandable(e),e.expanded)),a(),p("ngIf",o.isExpandable(e)),a(2),E(e.key),a(3),p("ngIf",!e.expanded||!o.isExpandable(e)),a(),p("ngIf",e.expanded&&o.isExpandable(e))}}var $=(()=>{class n{constructor(){this.expanded=!0,this.depth=-1,this._currentDepth=0,this.segments=[]}ngOnChanges(){this.segments=[],this.json=this.decycle(this.json),typeof this.json=="object"?Object.keys(this.json).forEach(e=>{this.segments.push(this.parseKeyValue(e,this.json[e]))}):this.segments.push(this.parseKeyValue(`(${typeof this.json})`,this.json))}isExpandable(e){return e.type==="object"||e.type==="array"}toggle(e){this.isExpandable(e)&&(e.expanded=!e.expanded)}parseKeyValue(e,o){let t={key:e,value:o,type:void 0,description:""+o,expanded:this.isExpanded()};switch(typeof t.value){case"number":{t.type="number";break}case"boolean":{t.type="boolean";break}case"function":{t.type="function";break}case"string":{t.type="string",t.description='"'+t.value+'"';break}case"undefined":{t.type="undefined",t.description="undefined";break}case"object":{t.value===null?(t.type="null",t.description="null"):Array.isArray(t.value)?(t.type="array",t.description="Array["+t.value.length+"] "+JSON.stringify(t.value)):t.value instanceof Date?t.type="date":(t.type="object",t.description="Object "+JSON.stringify(t.value));break}}return t}isExpanded(){return this.expanded&&!(this.depth>-1&&this._currentDepth>=this.depth)}decycle(e){let o=new WeakMap;return function t(s,N){let j,C;return typeof s=="object"&&s!==null&&!(s instanceof Boolean)&&!(s instanceof Date)&&!(s instanceof Number)&&!(s instanceof RegExp)&&!(s instanceof String)?(j=o.get(s),j!==void 0?{$ref:j}:(o.set(s,N),Array.isArray(s)?(C=[],s.forEach(function(M,S){C[S]=t(M,N+"["+S+"]")})):(C={},Object.keys(s).forEach(function(M){C[M]=t(s[M],N+"["+JSON.stringify(M)+"]")})),C)):s}(e,"$")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=f({type:n,selectors:[["ngx-json-viewer"]],inputs:{json:"json",expanded:"expanded",depth:"depth",_currentDepth:"_currentDepth"},features:[L],decls:2,vars:1,consts:[[1,"ngx-json-viewer"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[3,"click","ngClass"],["class","toggler",4,"ngIf"],[1,"segment-key"],[1,"segment-separator"],["class","segment-value",4,"ngIf"],["class","children",4,"ngIf"],[1,"toggler"],[1,"segment-value"],[1,"children"],[3,"json","expanded","depth","_currentDepth"]],template:function(e,o){e&1&&(i(0,"section",0),x(1,ne,9,11,"section",1),r()),e&2&&(a(),p("ngForOf",o.segments))},dependencies:[Y,v,Z,n],styles:['@charset "UTF-8";.ngx-json-viewer[_ngcontent-%COMP%]{font-family:var(--ngx-json-font-family, monospace);font-size:var(--ngx-json-font-size, 1em);width:100%;height:100%;overflow:hidden;position:relative}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%]{padding:2px;margin:1px 1px 1px 12px}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%]{word-wrap:break-word}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .toggler[_ngcontent-%COMP%]{position:absolute;margin-left:-14px;margin-top:3px;font-size:.8em;line-height:1.2em;vertical-align:middle;color:var(--ngx-json-toggler, #787878)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .toggler[_ngcontent-%COMP%]:after{display:inline-block;content:"\\25ba";transition:transform .1s ease-in}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-key[_ngcontent-%COMP%]{color:var(--ngx-json-key, #4E187C)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-separator[_ng
1content-%COMP%]{color:var(--ngx-json-separator, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-value, #000)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .children[_ngcontent-%COMP%]{margin-left:12px}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-string[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-string, #FF6B6B)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-number[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-number, #009688)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-boolean[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-boolean, #B938A4)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-date[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-date, #05668D)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-array, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-object, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-function[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-function, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-null, #fff)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-undefined, #fff)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:var(--ngx-json-null-bg, red)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-key[_ngcontent-%COMP%]{color:var(--ngx-json-undefined-key, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:var(--ngx-json-undefined-key, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%]{white-space:nowrap}.ngx-json-viewer[_ngcontent-%COMP%] .expanded[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]:after{transform:rotate(90deg)}.ngx-json-viewer[_ngcontent-%COMP%] .expandable[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .expandable[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]{cursor:pointer}']}),n})(),q=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=R({type:n}),n.\u0275inj=T({imports:[u]}),n})();var O={Approved:"Approved",Rejected:"Rejected",Pending:"Pending",Errored:"Errored"};function ie(n,l){if(n&1&&d(0,"img",11),n&2){let e=l.$implicit;p("src",e,A)}}var z=(()=>{class n{constructor(e){this.kycReviewService=e,this.validationAction=new V}approveValidation(){this.kycReviewService.markKycProcess(this.validation.id,O.Approved).subscribe({next:()=>{this.validationAction.emit(this.validation.id)},error:e=>{console.error("Error approving validation",e)}})}rejectValidation(){this.kycReviewService.markKycProcess(this.validation.id,O.Rejected).subscribe({next:()=>{this.validationAction.emit(this.validation.id)},error:e=>{console.error("Error rejecting validation",e)}})}static{this.\u0275fac=function(o){return new(o||n)(P(w))}}static{this.\u0275cmp=f({type:n,selectors:[["app-validation-review-display"]],inputs:{validation:"validation"},outputs:{validationAction:"validationAction"},standalone:!0,features:[b],decls:44,vars:15,consts:[[1,"validation-rows-container"],[1,"validation-review-container"],[1,"col"],[1,"integration-display"],[1,"status-display"],[1,"requested-review-display"],[1,"validation-review-actions"],[1,"bg-confirm",3,"click"],[1,"bg-danger",3,"click"],[1,"booleans-display"],[1,"selfie-display"],[3,"src"],[1,"document-display"],[3,"src",4,"ngFor","ngForOf"],[1,"validation-text-data-container"],[3,"json"]],template:function(o,t){o&1&&(i(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),c(4),i(5,"div",4),c(6),r()(),i(7,"div",5)(8,"span"),c(9),G(10,"date"),r()(),i(11,"div",6)(12,"button",7),g("click",function(){return t.approveValidation()}),c(13," Approve "),r(),i(14,"button",8),g("click",function(){return t.rejectValidation()}),c(15,"Reject"),r()()(),i(16,"div",9)(17,"span"),c(18),r(),i(19,"span"),c(20),r(),i(21,"span"),c(22),r()(),i(23,"div",10),d(24,"img",11),r(),i(25,"div",12),x(26,ie,1,1,"img",13),r()(),i(27,"div",14)(28,"div")(29,"h3"),c(30,"Customer data"),r(),d(31,"ngx-json-viewer",15),r(),i(32,"div")(33,"h3"),c(34,"Text Score Response"),r(),d(35,"ngx-json-viewer",15),r(),i(36,"div")(37,"h3"),c(38,"Face Match Response"),r(),d(39,"ngx-json-viewer",15),r(),i(40,"div")(41,"h3"),c(42,"OCR"),r(),d(43,"ngx-json-viewer",15),r()()()),o&2&&(a(4),_(" ",t.validation.integration==null?null:t.validation.integration.integrationName," "),a(2),_(" ",t.validation.status," "),a(3),E(K(10,12,t.validation.requestedReviewTime,"medium")),a(9),_("Liveness: ",t.validation.liveness,""),a(2),_("Face match: ",t.validation.facematch,""),a(2),_("Data match: ",t.validation.datamatch,""),a(2),p("src",t.validation.selfie_image,A),a(2),p("ngForOf",t.validation.document_images),a(5),p("json",t.validation.customerData),a(4),p("json",t.validation.textScoreResponse),a(4),p("json",t.validation.faceMatchResponse),a(4),p("json",t.validation.ocr))},dependencies:[u,v,J,q,$],styles:[".bg-primary[_ngcontent-%COMP%]{background-color:#f89700!important;border-color:#f89700!important}.primary[_ngcontent-%COMP%]{color:#f89700!important}.bg-secondary[_ngcontent-%COMP%]{background-color:#561217!important;border-color:#561217!important}.secondary[_ngcontent-%COMP%]{color:#561217!important}
1.bg-orange-pale[_ngcontent-%COMP%]{background-color:#ffb46f!important;border-color:#ffb46f!important}.orange-pale[_ngcontent-%COMP%]{color:#ffb46f!important}.bg-transparent[_ngcontent-%COMP%]{background-color:#fff0!important;border-color:#fff0!important}.transparent[_ngcontent-%COMP%]{color:#fff0!important}.bg-input[_ngcontent-%COMP%]{background-color:#ffc896!important;border-color:#ffc896!important}.input[_ngcontent-%COMP%]{color:#ffc896!important}.bg-danger[_ngcontent-%COMP%]{background-color:#f44336!important;border-color:#f44336!important}.danger[_ngcontent-%COMP%]{color:#f44336!important}.bg-confirm[_ngcontent-%COMP%]{background-color:#4caf50!important;border-color:#4caf50!important}.confirm[_ngcontent-%COMP%]{color:#4caf50!important}.bg-white[_ngcontent-%COMP%]{background-color:#fff!important;border-color:#fff!important}.white[_ngcontent-%COMP%]{color:#fff!important}.breadcrumb[_ngcontent-%COMP%]{color:#f89700}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], span[_ngcontent-%COMP%]:not(.token), p[_ngcontent-%COMP%]{color:#561217}a[_ngcontent-%COMP%]{color:#561217}.validation-rows-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;gap:10px;border-bottom:1px solid black;padding-bottom:10px}@media (max-width: 768px){.validation-rows-container[_ngcontent-%COMP%]{flex-direction:column;justify-content:center;align-items:center;overflow-x:hidden}}.validation-review-container[_ngcontent-%COMP%], .validation-text-data-container[_ngcontent-%COMP%]{display:flex;width:100%;gap:10px;padding:10px}@media (min-width: 768px){.validation-review-container[_ngcontent-%COMP%], .validation-text-data-container[_ngcontent-%COMP%]{align-items:start;justify-content:space-between}}@media (max-width: 768px){.validation-review-container[_ngcontent-%COMP%], .validation-text-data-container[_ngcontent-%COMP%]{flex-direction:column;justify-content:center;align-items:center}}.validation-text-data-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{max-width:300px}.integration-display[_ngcontent-%COMP%]{display:flex;flex-direction:column;border-radius:10px;background-color:#000;color:#e0e0e0;justify-content:center;align-items:center;padding:10px;height:fit-content}@media (max-width: 768px){.integration-display[_ngcontent-%COMP%]{width:fit-content}}@media (max-width: 768px){.col[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;justify-content:center;align-items:center}}.customer-data-display[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:5px;padding:10px}.booleans-display[_ngcontent-%COMP%]{display:flex;gap:5px;flex-direction:column;align-items:center;justify-content:center}.status-display[_ngcontent-%COMP%]{display:flex;border-radius:10px;padding:10px;height:fit-content;background-color:#f89700}@media (max-width: 768px){.status-display[_ngcontent-%COMP%]{width:fit-content}}.selfie-display[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:300px}@media (max-width: 768px){.selfie-display[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:unset;width:100%}}.document-display[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:300px}@media (max-width: 768px){.document-display[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:unset;width:100%}}.requested-review-display[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:5px}.validation-review-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;width:100px}"]})}}return n})();function ae(n,l){if(n&1){let e=h();i(0,"app-validation-review-display",1),g("validationAction",function(t){I(e);let s=m();return y(s.validationActioned(t))}),r()}if(n&2){let e=l.$implicit;p("validation",e)}}var Gi=(()=>{class n{constructor(e,o){this.kycReviewService=e,this.platformId=o,this.validations=[]}ngOnInit(){H(this.platformId)&&this.getKycList()}getKycList(){this.kycReviewService.getKycListToReview().subscribe(e=>{this.validations=e})}validationActioned(e){this.validations=this.validations.filter(o=>o.id!==e)}static{this.\u0275fac=function(o){return new(o||n)(P(w),P(k))}}
1static{this.\u0275cmp=f({type:n,selectors:[["app-validation-review"]],standalone:!0,features:[b],decls:1,vars:1,consts:[[3,"validation","validationAction",4,"ngFor","ngForOf"],[3,"validationAction","validation"]],template:function(o,t){o&1&&x(0,ae,1,1,"app-validation-review-display",0),o&2&&p("ngForOf",t.validations)},dependencies:[u,v,z]})}}return n})();export{Gi as ValidationReviewComponent};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.