PageSourceSearch

https://id.pluz.pe/clientes/common.19d6ffc8c06725b0.js

js pluz.pe collected 2026-10-01 16:14:51 UTC 15,082 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkfront_identity_manager=self.webpackChunkfront_identity_manager||[]).push([[76],{7:(b,f,s)=>{s.d(f,{t:()=>h});var g=s(2881),e=s(3214),i=s(4341),o=s(8359),_=s(951),m=s(9443);function c(d,p){if(1&d&&(e.j41(0,"div",6),e.EFF(1),e.k0s()),2&d){const n=e.XpG();e.R7$(),e.SpI(" ",n.getMessageError(n.f.documentNumber)," ")}}let h=(()=>{class d{fb;form;subs=new o.yU;onChange=()=>{};onTouched=()=>{};onValidatorChange=()=>{};constructor(n){this.fb=n,this.form=this.fb.group({docType:["DNI",[i.k0.required]],documentNumber:["",[i.k0.required,i.k0.pattern(/^\d+$/),i.k0.minLength(_.S.DNI),i.k0.maxLength(_.S.DNI),m.L.noRepetidosValidator()]]})}ngOnInit(){this.subs.add(this.f.docType.valueChanges.subscribe(()=>{const n=this.f.documentNumber,r=this.docMaxLength,a=[i.k0.required,i.k0.pattern(this.isCE?/^[A-Za-z0-9]+$/:/^\d+$/),m.L.noRepetidosValidator()];null!=r&&(a.push(i.k0.maxLength(r)),this.isDNI&&a.push(i.k0.minLength(r))),n.setValidators(a);const l=n.value??"";let u=l;this.isDNI&&(u=l.replace(/\D+/g,"")),this.isCE&&(u=l.replace(/[^A-Za-z0-9]/g,"")),null!=r&&(u=u.slice(0,r)),u!==l&&n.setValue(u,{emitEvent:!1}),n.updateValueAndValidity({emitEvent:!1}),this.onValidatorChange(),this.emitValue()})),this.subs.add(this.form.statusChanges.subscribe(()=>{this.onValidatorChange(),this.emitValue()})),this.f.docType.updateValueAndValidity({emitEvent:!0})}ngOnDestroy(){this.subs.unsubscribe()}writeValue(n){n?(this.form.setValue({docType:n.docType??"DNI",documentNumber:n.documentNumber??""},{emitEvent:!1}),this.f.docType.updateValueAndValidity({emitEvent:!0})):(this.form.reset({docType:"DNI",documentNumber:""},{emitEvent:!1}),this.f.docType.updateValueAndValidity({emitEvent:!0}))}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}setDisabledState(n){n?this.form.disable({emitEvent:!1}):this.form.enable({emitEvent:!1})}validate(n){return this.f.documentNumber.errors||null}registerOnValidatorChange(n){this.onValidatorChange=n}get f(){return this.form.controls}get isDNI(){return"DNI"===this.f.docType.value}get isCE(){return"CE"===this.f.docType.value}get docMaxLength(){return this.isCE?_.S.CE:_.S.DNI}markTouched(){this.onTouched()}onDocInput(n){const r=n.target;let t=r.value;this.isDNI&&(t=t.replace(/\D+/g,"")),this.isCE&&(t=t.replace(/[^A-Za-z0-9]/g,""));const a=this.docMaxLength;null!=a&&t.length>a&&(t=t.slice(0,a)),t!==r.value&&(r.value=t),t!==this.f.documentNumber.value&&(this.f.documentNumber.setValue(t,{emitEvent:!1}),this.emitValue())}getMessageError(n){return n&&n.errors&&(n.touched||n.dirty)?{required:"Debe ingresar campo obligatorio.",pattern:"Ingrese un documento de identidad v\xe1lido.",minlength:`Debe tener al menos ${n.errors.minlength?.requiredLength} n\xfameros.`,maxlength:`Debe tener como m\xe1ximo ${n.errors.maxlength?.requiredLength} n\xfameros.`,repetidos:"El n\xfamero no puede tener todos los d\xedgitos iguales."}[Object.keys(n.errors)[0]]||"El documento de identidad no cumple con los requisitos.":""}emitValue(){if(this.form.disabled)return void this.onChange(null);const n=this.form.getRawValue();this.onChange(n)}static \u0275fac=function(r){return new(r||d)(e.rXU(i.Qk))};static \u0275cmp=e.VBU({type:d,selectors:[["app-input-document"]],features:[e.Jv_([{provide:i.kq,useExisting:(0,e.Rfq)(()=>d),multi:!0},{provide:i.cz,useExisting:(0,e.Rfq)(()=>d),multi:!0}])],decls:11,vars:8,consts:[[1,"pdata__group","pdata__group--row",3,"formGroup"],[1,"pdata__field"],["id","document-type","formControlName","docType",1,"pdata__select"],["value","DNI"],["value","CE"],["id","document-number","type","text","placeholder","N\xfamero de documento","formControlName","documentNumber","autocomplete","off",1,"pdata__input",3,"blur","input"],["id","doc-number-error","role","alert",1,"pdata__error"]],template:function(r,t){1&r&&(e.j41(0,"div")(1,"div",0)(2,"div",1)(3,"select",2)(4,"option",3),e.
1EFF(5,"DNI"),e.k0s(),e.j41(6,"option",4),e.EFF(7,"CE"),e.k0s()()(),e.j41(8,"div",1)(9,"input",5),e.bIt("blur",function(){return t.markTouched()})("input",function(l){return t.onDocInput(l)}),e.k0s()()(),e.DNE(10,c,2,1,"div",6),e.k0s()),2&r&&(e.R7$(),e.Y8G("formGroup",t.form),e.R7$(2),e.AVh("is-invalid",t.f.documentNumber.touched&&t.f.documentNumber.invalid),e.R7$(6),e.AVh("is-invalid",t.f.documentNumber.touched&&t.f.documentNumber.invalid),e.BMQ("inputmode",t.isDNI?"numeric":"text")("maxlength",t.docMaxLength),e.R7$(),e.vxM((t.f.documentNumber.touched||t.f.documentNumber.dirty)&&t.f.documentNumber.invalid?10:-1))},dependencies:[g.MD,i.X1,i.xH,i.y7,i.me,i.wz,i.BC,i.cb,i.j4,i.JD],styles:["[_ngcontent-%COMP%]:root{--color-text: #191919;--color-border: #4D4D4D;--color-muted: #A7A7A7;--color-primary: #1B376F;--color-success: #66AE5E;--color-accent: #FBC63B;--color-bg-disabled: #F4F4F4;--color-disabled: #A7A7A7;--radius: 0px;--shadow-modal: 0 2px 10px rgba(0, 0, 0, .3);--font-family: Source Sans 3, sans-serif}.pdata__group[_ngcontent-%COMP%]{display:grid;gap:12px}.pdata__group--row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 3fr;gap:12px}.pdata__field[_ngcontent-%COMP%]{display:grid;gap:8px}.pdata__input[_ngcontent-%COMP%], .pdata__select[_ngcontent-%COMP%]{width:100%;height:48px;padding:12px 20px;border:1px solid #4D4D4D;color:#4d4d4d;outline:none;border-radius:0;background:#fff;font-size:14px}@media (min-width: 768px){.pdata__input[_ngcontent-%COMP%], .pdata__select[_ngcontent-%COMP%]{font-size:16px}}.pdata__input[_ngcontent-%COMP%]::placeholder, .pdata__select[_ngcontent-%COMP%]::placeholder{color:#a7a7a7;font-size:14px}@media (min-width: 768px){.pdata__input[_ngcontent-%COMP%]::placeholder, .pdata__select[_ngcontent-%COMP%]::placeholder{font-size:16px}}.pdata__input[_ngcontent-%COMP%]:disabled, .pdata__select[_ngcontent-%COMP%]:disabled{background-color:#f4f4f4}.pdata__input[_ngcontent-%COMP%]:focus, .pdata__select[_ngcontent-%COMP%]:focus{border-color:#1b376f}.pdata__input[_ngcontent-%COMP%]:not(:placeholder-shown), .pdata__select[_ngcontent-%COMP%]:not(:placeholder-shown){border:1px solid #1b376f}.pdata__select[_ngcontent-%COMP%]{appearance:none;background-image:url(CaretDown.d4d73448029b730a.svg);background-repeat:no-repeat;background-position:right .5rem center;background-size:20px;cursor:pointer}.pdata[_ngcontent-%COMP%]   .is-invalid[_ngcontent-%COMP%]{border-color:#ef4444!important}.pdata__error[_ngcontent-%COMP%]{display:block;margin-top:12px;color:#ef4444!important;font-size:14px}"]})}return d})()},5325:(b,f,s)=>{s.d(f,{Z:()=>p});var g=s(9377),e=s(9361),i=s(2881),o=s(3214),_=s(7959);const m=["dialog"],c=["*"];function h(n,r){if(1&n){const t=o.RV6();o.j41(0,"app-button",10),o.bIt("click",function(){const l=o.eBV(t).$implicit,u=o.XpG(2);return o.Njj(u.onActionClick(l))}),o.EFF(1),o.k0s()}if(2&n){const t=r.$implicit;o.Y8G("type",t.type||"button")("color",t.color||"secondary")("appearance",t.appearance||"solid")("disabled",!!t.disabled)("isLoading",!!t.isLoading),o.R7$(),o.SpI(" ",t.label," ")}}function d(n,r){if(1&n){const t=o.RV6();o.j41(0,"div",2),o.bIt("click",function(l){o.eBV(t);const u=o.XpG();return o.Njj(u.onOverlayClick(l))}),o.j41(1,"div",3,0)(3,"div",4)(4,"h2",5),o.EFF(5),o.k0s()(),o.j41(6,"div",6)(7,"p",7),o.EFF(8),o.k0s(),o.SdG(9),o.k0s(),o.j41(10,"div",8),o.DNE(11,h,2,6,"app-button",9),o.k0s()()()}if(2&n){const t=o.XpG();o.R7$(),o.BMQ("aria-label",t.title),o.R7$(2),o.AVh("amodal__header--warn","warn"===t.variant),o.R7$(2),o.JRh(t.title),o.R7$(3),o.JRh(t.message),o.R7$(2),o.AVh("amodal__footer--two",2===t.actions.length),o.R7$(),o.Y8G("ngForOf",t.actions)}}let p=(()=>{class n{platformId;doc;open=!1;variant="info";title="";message="";actions=[{id:"close",label:"Cerrar",color:"secondary",appearance:"solid",autofocus:!0}];action=new o.bkB;closed=new o.bkB;dialogRef;constructor(t,a){this.platformId=t,this.doc=a}get isBrowser(){return(0,g.UE)(this.platformId)}ngOnChanges(t){if(!("open"in t)||!this.isBrowser)return;const a=!!t.open.currentValue;this.toggleBodyScroll(a),a&&queueMicrotask(()=>this.focusAutofocus())}ngOnDestroy(){this.isBrowser&&this.toggleBodyScroll(!1)}onOverlayClick(t){"true"===t.target?.dataset?.overlay&&this.closed.emit
1()}onKeydown(t){this.isBrowser&&this.open&&"Escape"===t.key&&this.closed.emit()}onActionClick(t){this.action.emit(t.id)}focusAutofocus(){this.isBrowser&&this.dialogRef&&this.dialogRef.nativeElement.querySelector('button[data-autofocus="true"]')?.focus()}toggleBodyScroll(t){if(!this.isBrowser)return;const a=this.doc?.body;a&&(a.style.overflow=t?"hidden":"")}static \u0275fac=function(a){return new(a||n)(o.rXU(o.Agw),o.rXU(e.q))};static \u0275cmp=o.VBU({type:n,selectors:[["app-alert-modal"]],viewQuery:function(a,l){if(1&a&&o.GBs(m,5),2&a){let u;o.mGM(u=o.lsd())&&(l.dialogRef=u.first)}},hostBindings:function(a,l){1&a&&o.bIt("keydown",function(C){return l.onKeydown(C)},!1,o.tSv)},inputs:{open:"open",variant:"variant",title:"title",message:"message",actions:"actions"},outputs:{action:"action",closed:"closed"},features:[o.OA$],ngContentSelectors:c,decls:1,vars:1,consts:[["dialog",""],["class","amodal","data-overlay","true","role","presentation",3,"click",4,"ngIf"],["data-overlay","true","role","presentation",1,"amodal",3,"click"],["role","dialog","aria-modal","true",1,"amodal__dialog"],[1,"amodal__header"],[1,"amodal__title"],[1,"amodal__body"],[1,"amodal__message"],[1,"amodal__footer"],[3,"type","color","appearance","disabled","isLoading","click",4,"ngFor","ngForOf"],[3,"click","type","color","appearance","disabled","isLoading"]],template:function(a,l){1&a&&(o.NAR(),o.DNE(0,d,12,8,"div",1)),2&a&&o.Y8G("ngIf",l.open)},dependencies:[i.MD,i.Sq,i.bT,_.Q],styles:['@charset "UTF-8";[_ngcontent-%COMP%]:root{--color-text: #191919;--color-border: #4D4D4D;--color-muted: #A7A7A7;--color-primary: #1B376F;--color-success: #66AE5E;--color-accent: #FBC63B;--color-bg-disabled: #F4F4F4;--color-disabled: #A7A7A7;--radius: 0px;--shadow-modal: 0 2px 10px rgba(0, 0, 0, .3);--font-family: Source Sans 3, sans-serif}.amodal[_ngcontent-%COMP%]{position:fixed;inset:0;background:#0006;display:grid;place-items:center;padding:16px;z-index:1000}.amodal__dialog[_ngcontent-%COMP%]{width:100%;max-width:600px;background:#fff;border-radius:0;box-shadow:0 10px 30px #00000026;overflow:hidden;display:flex;flex-direction:column}.amodal__header[_ngcontent-%COMP%]{padding:20px 24px 8px}.amodal__header--warn[_ngcontent-%COMP%]{background:linear-gradient(to bottom,#fff8e6,#fff)}.amodal__header--warn[_ngcontent-%COMP%]   .amodal__title[_ngcontent-%COMP%]{color:#000}.amodal__title[_ngcontent-%COMP%]{margin:0;font-size:20px;line-height:1.3;font-weight:700;text-align:center;color:#222}.amodal__body[_ngcontent-%COMP%]{padding:8px 24px 0}.amodal__message[_ngcontent-%COMP%]{margin:0 0 12px;text-align:center;color:#444;line-height:1.5}.amodal__footer[_ngcontent-%COMP%]{display:grid;gap:12px;padding:20px 24px 24px;grid-template-columns:1fr}.amodal__footer[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{width:100%;display:block}@media (min-width: 480px){.amodal__footer--two[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr}}.amodal__dialog[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:focus-visible{outline:2px solid #f7c43d;outline-offset:2px}@media (prefers-reduced-motion: reduce){.amodal[_ngcontent-%COMP%], .amodal__dialog[_ngcontent-%COMP%]{transition:none}}']})}return n})()},9865:(b,f,s)=>{s.d(f,{X:()=>m});var g=s(2881),e=s(3214),i=s(4341);function o(c,h){if(1&c&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&c){const d=e.XpG();e.R7$(),e.JRh(d.body())}}function _(c,h){1&c&&e.nrm(0,"span",6)}let m=(()=>{class c{disabled=(0,e.hFB)(!1);title=(0,e.hFB)("");body=(0,e.hFB)("");value=(0,e.hFB)("");checked=(0,e.hFB)(!1);isLoading=(0,e.hFB)(!1);inputId="";currentValue=null;ngOnInit(){this.inputId=`${this.value}-${Math.random().toString(36).substring(2,9)}`}onChange=()=>{};onTouched=()=>{};writeValue(d){this.currentValue=d}registerOnChange(d){this.onChange=d}registerOnTouched(d){this.onTouched=d}onRadioChange(d){this.currentValue=d.target.value,this.onChange(this.currentValue)}onBlur(){this.onTouched()}isChecked(){return this.currentValue===this.value()}static \u0275fac=function(p){return new(p||c)};static \u0275cmp=e.VBU({type:c,selectors:[["app-radio-field"]],inputs:{disabled:[1,"disabled"],title:[1,"title"],body:[1,"body"],value:[1,"value"],checked:[1,"checked"],isLoading:[1,"isLoading"]},features:[e.Jv_([{provide:i.kq,useExisting:(0,e.Rfq)(()=>c),multi:!0}])],decls:8,vars:10,consts:[[1,"radio__field"],["type","radio",1,"radio__input",3,"change","blur","id","checked","value","disabled"],[1,"radio__label"],[1,"radio__panel",3,"for"],[4,"ngIf"],["class","radio__spinner","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"radio__spinner"]],template:function(p,n){1&p&&(e.j41(0,"div",0)(1,"input",1),e.bIt("change",function(t){return n.onRadioChange(t)}
1)("blur",function(){return n.onBlur()}),e.k0s(),e.j41(2,"div",2)(3,"label",3)(4,"p"),e.EFF(5),e.k0s(),e.DNE(6,o,2,1,"p",4)(7,_,1,0,"span",5),e.k0s()()()),2&p&&(e.AVh("is-disabled",n.disabled()||n.isLoading()),e.R7$(),e.Y8G("id",n.inputId)("checked",n.isChecked())("value",n.value())("disabled",n.disabled()||n.isLoading()),e.R7$(2),e.Y8G("for",n.inputId),e.R7$(2),e.JRh(n.title()),e.R7$(),e.Y8G("ngIf",!n.isLoading()),e.R7$(),e.Y8G("ngIf",n.isLoading()))},dependencies:[i.X1,g.MD,g.bT],styles:['@charset "UTF-8";[_ngcontent-%COMP%]:root{--color-text: #191919;--color-border: #4D4D4D;--color-muted: #A7A7A7;--color-primary: #1B376F;--color-success: #66AE5E;--color-accent: #FBC63B;--color-bg-disabled: #F4F4F4;--color-disabled: #A7A7A7;--radius: 0px;--shadow-modal: 0 2px 10px rgba(0, 0, 0, .3);--font-family: Source Sans 3, sans-serif}.radio__field[_ngcontent-%COMP%]{position:relative;display:flex;padding:12px 44px 12px 16px;border:1px solid #66AE5E;border-radius:0;background:#f0f7ef;color:#4d4d4d;outline:none}.radio__input[_ngcontent-%COMP%]{position:absolute;opacity:0;width:0;height:0}.radio__input[_ngcontent-%COMP%]:checked + .radio__label[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]:after{opacity:1}.radio__panel[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;gap:8px}.radio__label[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{position:relative;padding-left:30px;cursor:pointer;-webkit-user-select:none;user-select:none;font-size:14px}.radio__label[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]:before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:20px;height:20px;border:1px solid #66AE5E;border-radius:50%;background:transparent;box-sizing:border-box}.radio__label[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]:after{content:"";position:absolute;left:5px;top:50%;transform:translateY(-50%);width:10px;height:10px;background:#66ae5e;border-radius:50%;opacity:0;transition:opacity .2s ease}.radio__spinner[_ngcontent-%COMP%]{order:2;width:1.3em;height:1.3em;border-radius:55%;border:4px solid transparent;border-top-color:currentColor;border-right-color:currentColor;animation:_ngcontent-%COMP%_btn-spin .6s linear infinite}@keyframes _ngcontent-%COMP%_btn-spin{to{transform:rotate(360deg)}}'],changeDetection:0})}return c})()}}]);

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.