PageSourceSearch

https://clientes.zurich.cl/Portalclientes/556.d9df0e61e3df1e10.js

js zurich.cl collected 2026-10-05 21:42:01 UTC 11,040 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkportalclientes=self.webpackChunkportalclientes||[]).push([[556],{5556:(C,m,p)=>{p.d(m,{L:()=>y});var e=p(4650),i=p(4006),d=p(1366),l=p(6895);const h=["datepicker"],f=["rangeInput"];function u(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"input",15,16),e.NdJ("dateSelect",function(o){e.CHM(t);const s=e.oxw();return e.KtG(s.onDateSelection(o))}),e.qZA()}if(2&n){const t=e.oxw(),a=e.MAs(10);e.Q6J("autoClose","outside")("displayMonths",2)("dayTemplate",a)("navigation",t.mesAnyo?"select":"arrows")("startDate",t.fromDate)}}function g(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"input",17,16),e.NdJ("dateSelect",function(o){e.CHM(t);const s=e.oxw();return e.KtG(s.onDateSelection(o))}),e.qZA()}if(2&n){const t=e.oxw(),a=e.MAs(10);e.Q6J("autoClose","outside")("displayMonths",2)("maxDate",t.fechaHasta)("dayTemplate",a)("navigation",t.mesAnyo?"select":"arrows")("startDate",t.fechaDesde)}}function b(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"span",18),e.NdJ("mouseenter",function(){const s=e.CHM(t).$implicit,c=e.oxw();return e.KtG(c.hoveredDate=s)})("mouseleave",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.hoveredDate=null)}),e._uU(1),e.qZA()}if(2&n){const t=r.$implicit,a=r.focused,o=e.oxw();e.ekj("focused",a)("range",o.isRange(t))("faded",o.isHovered(t)||o.isInside(t)),e.xp6(1),e.hij(" ",t.day," ")}}function _(n,r){1&n&&(e.ynx(0),e._UZ(1,"span",19)(2,"span",20),e.BQk())}function x(n,r){1&n&&(e.ynx(0),e._UZ(1,"span",21),e.BQk())}const D=function(n){return{focused:n}};let y=(()=>{class n{constructor(t,a,o,s,c,k){this.calendar=t,this.formatter=a,this.i18n=o,this.fb=s,this.datePipe=c,this.adapter=k,this.displayFormat="dd/MM/yy",this.mesAnyo=!1,this.fechaHasta={year:(new Date).getFullYear(),month:(new Date).getMonth()+1,day:(new Date).getUTCDate()},this.fechaDesde={year:(new Date).getFullYear(),month:(new Date).getMonth(),day:(new Date).getUTCDate()},this.mostrarMesActual=!1,this.calendarPosition="right",this.hoveredDate=null,this.rangeForm=this.fb.group({from:[new Date,[i.kI.required]],to:[new Date,[i.kI.required]]}),this.onTouched=()=>{},this.onChangeSubs=[],this.display="",this.rangeSelected=new e.vpe,this.meses=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]}get value(){return this.rangeForm.value}get mesActualTexto(){const t=new Date;return`Mes actual (${this.meses[t.getMonth()]}) `}writeValue(t){if(!t||!t.from&&!t.to)return this.fromDate=null,this.toDate=null,void(this.display="");this.fromDate=t.from?d.qj.from(this.adapter.fromModel(t.from)):null,this.toDate=t.to?d.qj.from(this.adapter.fromModel(t.to)):null,this.display=this.fromDate&&this.toDate?`${this.datePipe.transform(t.from,this.displayFormat)} al ${this.datePipe.transform(t.to,this.displayFormat)}`:"",this.rangeForm.setValue(t)}registerOnChange(t){const a=this.rangeForm.valueChanges.subscribe(t);this.onChangeSubs.push(a)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){t?this.rangeForm.disable():this.rangeForm.enable()}ngOnDestroy(){for(let t of this.onChangeSubs)t.unsubscribe()}validate(t){if(this.rangeForm.valid)return null;let a={};return a=this.addControlErrors(a,"from"),a=this.addControlErrors(a,"to"),a}addControlErrors(t,a){const o={...t},s=this.rangeForm.controls[a].errors;return s&&(o[a]=s),o}onDateSelection(t){this.fromDate||this.toDate?this.fromDate&&!this.toDate&&t&&t.after(this.fromDate)?(this.toDate=t,this.datepicker.close(),this.display=`${this.datePipe.transform(this.adapter.toModel(this.fromDate),this.displayFormat)} al ${this.datePipe.transform(this.adapter.toModel(this.toDate),this.displayFormat)}`,this.rangeInput?.nativeElement.blur()):(this.toDate=null,this.fromDate=t):this.fromDate=t,this.writeValue({from:this.adapter.toModel(this.fromDate),to:this.adapter.toModel(this.toDate)}),this.fromDate&&this.toDate&&this.rangeSelected.emit({from:this.adapter.toModel(this.fromDate),to:this.adapter.toModel(this.toDate)})}isHovered(t){return this.fromDate&&!this.toDate&&this.hoveredDate&&t.after(this.fromDate)&&t.before(this.hoveredDate)}isInside(t){return this.toDate&&t.after(this.fromDate)&&t.before(this.toDate)}isRange(t){return t.equals(this.fromDate)||this.toDate&&t.equals(this.toDate)||this.isInside(t)||this.isHovered(t)}validateInput(t,a){const o=this.formatter.parse(a);return o&&this.calendar.isValid(d.qj.from(o))?d.qj.from(o):t}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(d.vL),e.Y36(d.NG),e.Y36(d.wf),e.Y36(i.j3),e.Y36(l.uU),e.Y36(d.s5))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-date-picker"]],viewQuery:function(t,a){if(1&t&&(e.Gf(h,5),e.Gf(f,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.datepicker=o.first),e.iGM(o=e.CRH())&&(a.rangeInput=o.first)}},inputs:{label:"label",displayFormat:"displayFormat",maxDate:"maxDate",mesAnyo:"mesAnyo",fechaHasta:"fechaHasta",fechaDesde:"fechaDesde",mostrarMesActual:"mostrarMesActual",calendarPosition:"calendarPosition"},outputs:{rangeSelected:"rangeSelected"},features:[e._Bn([{provide:i.JU,multi:!0,useExisting:n},{provide:i.Cf,multi:!0,useExisting:n}])],decls:18,vars:10,consts:[[1,"row","row-cols-sm-auto"],[2,"display","none",3,"formGroup"],["formControlName","from","type","hidden"],["formControlName","to","type","hidden"],[1,"col-12"],[1,"dp-hidden","position-absolute"],[1,"input-group"],["name","datepicker","class","form-control","ngbDatepicker","","datepickerClass","z-date-picker","outsideDays","collapsed","tabindex","-1",3,"autoClose","displayMonths","dayTemplate","navigation","startDate","dateSelect",4,"ngIf"],["name","datepicker","class","form-control","ngbDatepicker","","datepickerClass","z-date-picker","outsideDays","collapsed","tabindex","-1",3,"autoClose","displayMonths","maxDate","dayTemplate","navigation","startDate","dateSelect",4,"ngIf"],["t",""],[1,"textfield","textfield-datepicker","textfield--float-label",3,"click"],[4,"ngIf"],["type","text","role","combobox","aria-expanded","fal
1se","aria-haspopup","dialog","aria-controls","cb-dialog-1","aria-describedby","datepicker-calendar",1,"textfield-control",3,"value"],["rangeInput",""],[1,"textfield-label","calendar-control",3,"ngClass"],["name","datepicker","ngbDatepicker","","datepickerClass","z-date-picker","outsideDays","collapsed","tabindex","-1",1,"form-control",3,"autoClose","displayMonths","dayTemplate","navigation","startDate","dateSelect"],["datepicker","ngbDatepicker"],["name","datepicker","ngbDatepicker","","datepickerClass","z-date-picker","outsideDays","collapsed","tabindex","-1",1,"form-control",3,"autoClose","displayMonths","maxDate","dayTemplate","navigation","startDate","dateSelect"],[1,"custom-day",3,"mouseenter","mouseleave"],[1,"icon","icon--calendar-end_24_outline","left"],[1,"icon","icon--arrow-down_24"],[1,"icon","icon--calendar-end_24_outline"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0)(1,"fieldset",1),e._UZ(2,"input",2)(3,"input",3),e.qZA(),e.TgZ(4,"div",4)(5,"div",5)(6,"div",6),e.YNc(7,u,2,5,"input",7),e.YNc(8,g,2,6,"input",8),e.YNc(9,b,2,7,"ng-template",null,9,e.W1O),e.qZA()(),e.TgZ(11,"div",10),e.NdJ("click",function(){return a.datepicker.toggle()}),e.YNc(12,_,3,0,"ng-container",11),e._UZ(13,"input",12,13),e.YNc(15,x,2,0,"ng-container",11),e.TgZ(16,"label",14),e._uU(17),e.qZA()()()()),2&t&&(e.xp6(1),e.Q6J("formGroup",a.rangeForm),e.xp6(6),e.Q6J("ngIf",!a.maxDate),e.xp6(1),e.Q6J("ngIf",a.maxDate),e.xp6(4),e.Q6J("ngIf","left"===a.calendarPosition),e.xp6(1),e.Q6J("value",a.display||(a.mostrarMesActual?a.mesActualTexto:"")),e.xp6(2),e.Q6J("ngIf","left"!==a.calendarPosition),e.xp6(1),e.Q6J("ngClass",e.VKq(8,D,a.display)),e.xp6(1),e.Oqu(a.label))},dependencies:[l.mk,l.O5,d.J4,i.Fj,i.JJ,i.JL,i.sg,i.u],styles:[".dp-hidden{width:0;margin:0;border:none;padding:0}.dp-hidden input{visibility:hidden}.dp-hidden .z-date-picker{border-radius:10px;box-shadow:#00000012 0 3px 5px -1px,#0000000d 0 6px 10px,#00000008 0 1px 18px;border:none}.dp-hidden .z-date-picker .ngb-dp-header{background-color:#2167ae;color:#fff;border-radius:10px 10px 0 0;padding-bottom:.25rem}.dp-hidden .z-date-picker .ngb-dp-header .ngb-dp-month-name{background-color:#2167ae;color:#fff}.dp-hidden .z-date-picker .ngb-dp-header .ngb-dp-arrow-btn{display:inline-flex;position:relative;align-items:center;justify-content:center;margin:0;box-shadow:none;background-color:#2167ae;cursor:pointer;padding:calc(.375em - 1px) .75em;height:unset;vertical-align:top;text-align:center;line-height:1.5;white-space:nowrap;color:#fff;font-size:1rem;text-decoration:none}.dp-hidden .z-date-picker .ngb-dp-header .ngb-dp-arrow-btn:hover{color:#2167ae;outline:none}.dp-hidden .z-date-picker .ngb-dp-content .ngb-dp-month-name{background-color:#2167ae;color:#fff;text-transform:capitalize}.dp-hidden .z-date-picker .ngb-dp-content .ngb-dp-month:last-child .ngb-dp-weekdays{padding-left:16px}.dp-hidden .z-date-picker .ngb-dp-content .ngb-dp-weekdays{display:flex;background-color:#2167ae;color:#fff;font-size:12px;padding:0 0 10px}.dp-hidden .z-date-picker .ngb-dp-content .ngb-dp-weekdays .ngb-dp-weekday{display:block;flex:1;border:2px solid rgba(0,0,0,0);border-radius:20px;cursor:default;text-align:center;flex-basis:28px;height:16px;line-height:12px;font-size:12px;font-weight:700;color:#fff;font-style:normal}.dp-hidden .z-date-picker .ngb-dp-content .ngb-dp-day.hidden{display:block;flex:1;border:2px solid rgba(0,0,0,0);border-radius:20px;cursor:default;text-align:center;height:28px;line-height:24px;font-size:12px;font-family:ZurichSans-Regular,Arial,sans-serif}.dp-hidden .z-date-picker .ngb-dp-content .custom-day{display:block;flex:1;border:2px solid rgba(0,0,0,0);border-radius:20px;cursor:default;text-align:center;height:28px;line-height:24px;margin:2px;font-size:12px;font-family:ZurichSans-Regular,Arial,sans-serif}.dp-hidden .z-date-picker .ngb-dp-content .custom-day.focused,.dp-hidden .z-date-picker .ngb-dp-content .ngb-dp-today .custom-day{border-color:#91bfe3}.dp-hidden .z-date-picker .ngb-dp-content .custom-day.range,.dp-hidden .z-date-picker .ngb-dp-content .custom-day:hover{border-color:#2167ae;cursor:pointer}.dp-hidden .z-date-picker .ngb-dp-content .custom-day.faded{background-color:#0275d880}.calendar-control.focused{font-family:ZurichSans-Medium,Arial,sans-serif;font-size:12px;left:0;top:0}.ngb-dp-day.disabled,.ngb-dp-day.hidden{opacity:60%}.left{color:#2167ae!important;pointer-events:none;position:absolute;right:100%!important;top:18px!important;margin-right:5px!important}.textfield-control{border-bottom:0px solid #91bfe3!important;cursor:pointer!important;color:#2167ae!important}@media (max-width: 472px){.dp-hidden .z-date-picker{position:fixed!important;left:0!important;right:0!important;top:80px!important;margin:0 auto;width:100vw!important;min-width:unset!important;max-width:100vw!important;border-radius:0 0 16px 16px;z-index:9999;box-sizing:border-box;padding:0 0 8px;font-size:10px!important}.dp-hidden .custom-day{font-size:10px!important;margin:0!important}.dp-hidden .ngb-dp-weekdays{font-size:10px!important;display:flex!important}.dp-hidden .ngb-dp-weekday{flex:0 1 auto!important}}\n"],encapsulation:2}),n})()}}]);

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.