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H,KAAM,CAAEC,WAAY3c,IAAW+Q,oBAEjC,CACE0N,KAAMjM,KAAM8R,WAAWb,GACvBT,aAAcA,IAAMjF,QAAAkF,IAAA,CAAAC,EAAAC,EAAA,KAAAD,EAAAC,EAAA,KAAAD,EAAAC,EAAA,OAAAC,KAAAF,EAAAG,KAAAH,EAAA,OAAyEE,KAAKE,GAAKA,EAAEiB,wBACzG7H,KAAM,CAAEC,WAAY3c,IAAW+Q,qBA2CtByT,GAAUC,KAAaC,SAvCb,CACrB,CACEjG,KAAM,qBACNkG,UAAWnM,EACX+H,YAAa,CAACD,GACdsE,SAAU/B,IAEZ,CACEpE,KAAM,UACNkG,UAAWnM,EACX+H,YAAa,CAACD,GACd5D,KAAM,CAAEmF,cAAe,sBAAuBlF,WAAY3c,IAAWC,uBAEvE,CACEwe,KAAM,UACNkG,UAAWnM,EACX+H,YAAa,CAACD,GACd5D,KAAM,CAAEmF,cAAe,YAAalF,WAAY3c,IAAWyN,cAE7D,CACEgR,KAAM,UACNkG,UAAWnM,EACX+H,YAAa,CAACD,GACd5D,KAAM,CAAEmF,cAAe,gBAAiBlF,WAAY3c,IAAW+N,mBAE/D,CACA0Q,KAAM,UACNkG,UAAWnM,EACX+H,YAAa,CAACD,GACd5D,KAAM,CAAEmF,cAAe,aAAclF,WAAY3c,IAAW+Q,oBAE9D,CACE0N,KAAM,+BACNkG,UAAWnM,EACX+H,YAAa,CAACD,GACdsE,SAAU/B,MAkCP,IAAMgC,GAAoB,MAA3B,MAAOA,EAAoBniB,SAAA/D,KAAA,mBAAAgE,iBAApBkiB,EAAoB,EAAAniB,SAAA/D,KAAA,UAAA4O,EAAAuX,IAAA,MAApBD,IAAoBniB,SAAA/D,KAAA,UAAA4O,EAAAwX,IAAA,UA1BzBC,KACAC,IACAC,KACApY,EAAWC,UACXoY,IACAX,GAGAY,MACAC,gBAiBKR,CAAoB","names":["Change","fillOutExpedition","expedition","textModal","this","textTab","constructor","initialized","langService","appInjector","get","LanguageService","toJSON","result","Object","getOwnPropertyNames","forEach","name","serialize","substring","toUpperCase","indexOf","canBeCombined","ChangeServicePoint","type","ChangeType","ServicePointDelivery","route","fillOutModification","modification","Error","htmlInstead","html","instant","servicePoint","Name","Address","SolutionSenderRecipient","Solution","i0","schedule_r2","text","schedule","DetailServicePointComponent","BaseComponent","schedules","_schedules","_servicePoint","value","super","ngOnInit","addSubscription","language$","subscribe","onInitializedSharedResources","servicePointFullAddress","ZipCode","Location","Array","Schedules","nameSchedule","dayOfWeek","DayOfWeek","timeRange","TimeRange","textDay","push","static","t","i1","_angular_core__WEBPACK_IMPORTED_MODULE_1__","Xpm","selectors","inputs","componentMessage","injectorComponentMessage","features","ngContentSelectors","_c0","decls","vars","consts","template","rf","ctx","DetailServicePointComponent_ng_content_1_Template","DetailServicePointComponent_div_21_Template","directoryImages","CustomizeMaskDirective","maskDirective","maskService","ngModel","eRef","dropSpecialCharacters","showMaskTyped","validation","touchingInput","valueChangesSubscription","valueChanges","v","length","onInput","target","nativeElement","key","ngOnDestroy","unsubscribe","i2","_angular_core__WEBPACK_IMPORTED_MODULE_0__","lG2","MessageModalComponent","modalRef","show","message","textClose","BsModalService","initialState","_angular_core__WEBPACK_IMPORTED_MODULE_3__","hide","ComponentModifyShipping","sesion","expedition$","getValue","changesMade","changes","TabsetComponent_li_1_span_4_Template","_r6","$event","tabz_r1","$implicit","ctx_r4","preventDefault","removeTab","a1","TabsetComponent_li_1_Template","_r8","i_r2","index","ctx_r7","keyNavActions","active","disabled","customClass","id","headingRef","heading","removable","_c1","NgTranscludeDirective","ngTransclude","templateRef","_ngTransclude","viewRef","createEmbeddedView","ɵfac","ɵdir","TabsetConfig","isKeysAllowed","ariaLabel","ɵprov","token","factory","providedIn","TabsetComponent","vertical","_vertical","setClassMap","justified","_justified","_type","_isKeysAllowed","config","renderer","elementRef","clazz","tabs","classMap","isDestroyed","assign","addTab","tab","options","reselect","emit","hasAvailableTabs","newActiveIndex","getClosestTabIndex","removed","splice","parentNode","removeChild","event","list","from","querySelectorAll","keyCode","click","focus","lastTab","shift","i","classList","contains","firstTab","previousTab","nextTab","tabsLength","step","prevIndex","nextIndex","ɵcmp","hostVars","hostBindings","dependencies","styles","TabDirective","_customClass","split","cssClass","removeClass","trim","addClass","_active","deselect","selectTab","tabset","ariaLabelledby","EventEmitter","role","outputs","exportAs","TabsModule","forRoot","ngModule","providers","ɵmod","ɵinj","imports","CommonModule","DetailServicePointModalComponent","core","DayChange","DeliveryDay","DeliveryDate","newDeliveryDate","DateText","textNewDate","NeighborChange","NeighborDelivery","direction","AdditionalInformation","janitorDelivery","Street","toLowerCase","additionalInformation","dto","ctx_r0","daysMessage","MessageAtServicePointComponent","replace","DaysInServicePoint","toString","esConnect","Number","isNaN","DestinationCode","MessageAtServicePointComponent_b_3_Template","MessageAtServicePointComponent_br_4_Template","MessageAtServicePointComponent_br_5_Template","MessageAtServicePointComponent_p_6_Template","DateAvailableInServicePoint","change_r2","_r5","activarCambio","i_r3","ctx_r1","loaded","DeliveryRetryModalComponent_div_7_div_1_Template","changesAvailable","DeliveryRetryModalComponent","modal","cdr","service","selection","Ninguno","onShown","setTimeout","detectChanges","textRetryDelivery","ProductType","WithoutDirection","htmlMessage","frases","textoAusenciaFechaReintentoEntrega","DeliveryRetryModalComponent_div_7_Template","NewAddressChange","GiveAnotherOption","additionalInfo","address","number","trimEnd","town","zipCode","DateChangeSolution","startsWith","json","From","Until","FromEvening","UntilEvening","Schedule","AlternativeAddressSolution","date","textDate","FacilityPickupSolutionDHL","zipCodeMask","_r7","ctx_r6","ctx_r2","ConfirmProofDeliveryModalComponent","termsRoute","paths","proofDeliveryTerms","idioma$","confirmExit","frm","_this","_asyncToGenerator","acceptPolicyPrivacy","controls","markAsTouched","setErrors","politicaPrivacidad","emitEvent","invalid","enviarEventoGoogleAnalitics","CategoriasGoogleAnalytics","ConsultaExpedicion","downloadVoucher","toPromise","error","mistakeHttp","status","ErrorModalComponent","i3","ConfirmProofDeliveryModalComponent_input_17_Template","ConfirmProofDeliveryModalComponent_input_18_Template","_r0","_r3","_r9","ctx_r8","activated","_r11","ctx_r10","_r13","ctx_r12","_r15","ctx_r14","_r17","ctx_r16","_r19","ctx_r18","_r21","ctx_r20","_r23","ctx_r22","ChangeRouterOutletComponent","ngAfterViewInit","outlet","isActivated","outletActivo","viewQuery","RouterOutlet","ChangeRouterOutletComponent_router_outlet_1_Template","ChangeRouterOutletComponent_router_outlet_2_Template","ChangeRouterOutletComponent_router_outlet_3_Template","ChangeRouterOutletComponent_router_outlet_4_Template","ChangeRouterOutletComponent_router_outlet_5_Template","ChangeRouterOutletComponent_router_outlet_6_Template","ChangeRouterOutletComponent_router_outlet_7_Template","ChangeRouterOutletComponent_router_outlet_8_Template","change","titleWarning","textWarning","ctx_r3","situacionesVisibles","Status","Assigned","mostrarMensajeEnServicePoint","ModifyShippingComponent_li_52_a_5_Template","_c2","InServicePoint","imagenEnServicePoint","ServicePoint","ctx_r5","mostrarModalReintentoEntrega","RetryDelivery","imagenReintentoEntrega","Delivered","imagenDevuelto","ctx_r9","_r22","ctx_r21","mostrarConformeEntrega","ModifyShippingComponent_li_58_a_5_Template","imagenRepartido","mostrarBotonComprobante","ctx_r13","showTracking","Tracking","change_r25","_r27","ctx_r26","selectCambio","ctx_r24","tipoCambioActivo","ModifyShippingComponent_div_70_tab_8_Template","ModifyShippingComponent","modalService","vcr","router","scroll","configService","ShipmentDetailStatus","disposed","sentEventDetails","iniciar","expedicionIniciada","indiceFichaSeleccionadaCabecera","indiceFichaSeleccionadaCabecera$","next","ChangeDeliveryDay","NewAddressDelivery","currentLanguagePath","CanBeModified","scrollCambioActivo","navigate","routeChange","replaceUrl","queryParamsHandling","Modified","Returned","modalActivo","DeliveredInNeighbor","mostrarMensajeVecino","_this2","findIndex","parentElement","duration","easing","scrollTo","err","console","StringToDate","partes","Date","_this3","onChangeLanguage","log","appConfiguration","warning","startDateWarning","endDateWarning","fechaInicio","fechaFin","currentDate","setHours","language","getCurrentLanguage","subscriptionExpedicion","codigo","parseInt","mostrarAvisoPortugal","Language","iniciado","subscriptionEventosRouter","events","pipe","filter","NavigationEnd","hijo","snapshot","firstChild","data","tipoCambio","TLGNumber","detach","mostrarFechaPrevistaEntrega","mostrarFechaEntrega","mostrarSituacionEnServicePoint","DeliveredInServicePoint","mostrarSituacionDevuelto","mostrarSituacionReintentoEntrega","imagenSituacion","situacion","nombreImagen","imagenInformacionRecibida","InformationReceived","imagenEnDelegacionDestino","InDestinationAgency","imagenEnTransito","InTransit","imagenAsignado","_this4","Promise","resolve","reject","onHidden","content","disponible","injector","root","encontradaParteCambio","url","path","EPOD","textoSituacionActual","Origin","Destination","clickSeguimiento","clickBanner","idioma","window","open","rutaImagenBanner","rutaImagenBannerInferior","i4","i5","ModifyShippingComponent_div_7_Template","ModifyShippingComponent_div_9_Template","ModifyShippingComponent_div_10_Template","ModifyShippingComponent_li_51_Template","ModifyShippingComponent_li_52_Template","ModifyShippingComponent_li_53_Template","ModifyShippingComponent_li_54_Template","ModifyShippingComponent_li_55_Template","ModifyShippingComponent_li_56_Template","ModifyShippingComponent_li_57_Template","ModifyShippingComponent_li_58_Template","ModifyShippingComponent_span_67_Template","ModifyShippingComponent_span_68_Template","ModifyShippingComponent_tracking_69_Template","ModifyShippingComponent_div_70_Template","RouteProtectionSave","canActivate","state","languageSubscription","Observable","suscriptor","undefined","parameters","paramMap","queryParams","complete","app","modificarEnvio","has","llamadaAPI","expeditionNumber","numeroExpedicionBuscado","TlgExpeditionNumber","home","search","ExpeditionNumber","searchById","subscription","tipoCambioTLG","productType","incidence","LastIncidence","noData","_ref","bultos","searchExpeditionByReference","MultiplePiecesModalComponent","NumberConflictModalComponent","offline","_x","apply","arguments","tap","Yz7","rutasCambios","entregaVecino","es","loadChildren","all","__webpack_require__","e","then","bind","m","NeighborChangeModule","en","pt","entregaServicePoint","ChangeServicePointModule","changeDay","DayChangeModule","alternativeDirectionSolution","AlternativeAddressSolutionModule","dateChangeSolution","ChangeDateModule","solutionPickUpDHLFacilities","SolucionRecogerInstalacionesDHLModule","senderRecipientSolution","SolucionRemitenteDestinatarioModule","newAddress","NewAddressChangeModule","routing","RouterModule","forChild","component","children","ModifyShippingModule","oAB","cJS","FormsModule","ComunModule","ModalModule","CollapseModule","TooltipModule","ScrollToModule"],"sourceRoot":"webpack:///","sources":["./src/app/comun/recipient-services/change.ts","./src/app/comun/recipient-services/changes/change-service-point.ts","./src/app/comun/recipient-services/solutions/sender-recipient-solution.ts","./src/app/comun/recipient-services/solutions/solution.ts","./src/app/detail-service-point/detail-service-point.component.html","./src/app/detail-service-point/detail-service-point.component.ts","./src/app/directives/customize-mask.directive.ts","./src/app/message-modal/message-modal.component.ts","./src/app/message-modal/message-modal.component.html","./src/app/modify-shipping/component-modify-shipping.ts","./node_modules/ngx-bootstrap/tabs/fesm2022/ngx-bootstrap-tabs.mjs","./src/app/detail-service-point-modal/detail-service-point-modal.component.ts","./src/app/detail-service-point-modal/detail-service-point-modal.component.html","./src/app/comun/recipient-services/changes/day-change.ts","./src/app/comun/recipient-services/changes/neighbor-change.ts","./src/app/modify-shipping/message-at-service-point/message-at-service-point.component.html","./src/app/modify-shipping/message-at-service-point/message-at-service-point.component.ts","./src/app/modify-shipping/delivery-retry-modal/delivery-retry-modal.component.html","./src/app/modify-shipping/delivery-retry-modal/delivery-retry-modal.component.ts","./src/app/comun/recipient-services/changes/new-address-change.ts","./src/app/comun/recipient-services/solutions/solution-date-change.ts","./src/app/comun/recipient-services/solutions/alternative-address-solution.ts","./src/app/comun/recipient-services/solutions/solution-collect-facilities-DHL.ts","./src/app/modify-shipping/confirm-proof-delivery-modal/confirm-proof-delivery-modal.component.html","./src/app/modify-shipping/confirm-proof-delivery-modal/confirm-proof-delivery-modal.component.ts","./src/app/submodules/b2c/change-router-outlet/change-router-outlet.component.html","./src/app/submodules/b2c/change-router-outlet/change-router-outlet.component.ts","./src/app/modify-shipping/modify-shipping.component.html","./src/app/modify-shipping/modify-shipping.component.ts","./src/app/modify-shipping/guards/route-protection.guard.ts","./src/app/modify-shipping/modify-shipping.module.ts"],"sourcesContent":["import { ChangeType } from '../../enums/change-type.enum';\r\nimport { appInjector } from '../../app-injector';\r\nimport { ExpeditionModification } from './expedition-modification';\r\nimport { Expedition } from './expedition';\r\nimport { LanguageService } from '../../services/language.service';\r\n\r\n\r\n\r\nexport abstract class Change {\r\n langService: LanguageService;\r\n fillOutExpedition(expedition: Expedition) {\r\n\r\n }\r\n abstract get type(): ChangeType;\r\n abstract get html(): string;\r\n abstract get htmlInstead(): string;\r\n abstract get textTab(): string;\r\n get textModal(): string {\r\n return this.textTab;\r\n }\r\n\r\n abstract get route(): string;\r\n currentLanguagePath: string;\r\n\r\n //protected readonly sesion: SesionService\r\n constructor() {\r\n //this.sesion = appInjector.get(SesionService);\r\n //this.resources = this.sesion.resources.get('modify-shipping');\r\n //if (this.sesion.tipoCambioActivo === this.type) {\r\n // this.initialized = true;\r\n //}\r\n this.langService = appInjector.get(LanguageService);\r\n }\r\n\r\n initialized = false;\r\n toJSON(): any {\r\n const result = {};\r\n Object.getOwnPropertyNames(this).forEach(name => {\r\n if (this.serialize(name)) {\r\n result[name.substring(0, 1).toUpperCase() + name.substring(1)] = this[name];\r\n }\r\n });\r\n\r\n return result;\r\n }\r\n\r\n protected serialize(name: string): boolean {\r\n return ['initialized', 'langService', 'currentLanguagePath'].indexOf(name) == -1;\r\n }\r\n\r\n get canBeCombined(): boolean {\r\n return false;\r\n }\r\n}\r\n","import { Change } from '../change';\r\nimport { ExpeditionModification } from '../expedition-modification';\r\nimport { ChangeType } from '../../../enums/change-type.enum';\r\nimport { ServicePoint } from '../service-point';\r\nexport class ChangeServicePoint extends Change {\r\n get route(): string {\r\n return 'entregaServicePoint';\r\n }\r\n fillOutModification(modification: ExpeditionModification) {\r\n throw new Error(\"Method not implemented.\");\r\n }\r\n\r\n readonly type = ChangeType.ServicePointDelivery;\r\n\r\n get htmlInstead(): string {\r\n return this.html;\r\n }\r\n get html(): string {\r\n return this.langService.instant('ModifyDelivery.NewDeliveryAddress') + ' SERVICEPOINT ' + this.servicePoint.Name +\r\n '
' +\r\n this.servicePoint.Address;\r\n }\r\n get textTab(): string {\r\n return this.langService.instant('ModifyDelivery.ServicePointTab');\r\n }\r\n servicePoint: ServicePoint;\r\n}\r\n","import { Change } from '../change';\r\nimport { Expedition } from '../expedition';\r\nimport { ExpeditionModification } from '../expedition-modification';\r\nimport { ChangeType } from '../../../enums/change-type.enum';\r\nimport { Solution } from './solution';\r\n\r\nexport class SolutionSenderRecipient extends Solution {\r\n get route(): string {\r\n return 'senderRecipientSolution';\r\n }\r\n fillOutExpedition(expedition: Expedition) {\r\n\r\n }\r\n\r\n\r\n\r\n readonly type = ChangeType.SolutionSenderRecipient;\r\n get html(): string {\r\n\r\n return '';\r\n }\r\n\r\n get htmlInstead(): string {\r\n return '';\r\n }\r\n\r\n get textTab(): string {\r\n return this.langService.instant('ModifyDelivery.SenderManagementTab');\r\n }\r\n get textModal(): string {\r\n return this.langService.instant('ModifyDelivery.SenderReceiverModal');\r\n }\r\n}\r\n\r\n","import { Change } from '../change';\r\nimport { Expedition } from '../expedition';\r\nimport { ExpeditionModification } from '../expedition-modification';\r\nimport { ChangeType } from '../../../enums/change-type.enum';\r\n\r\nexport abstract class Solution extends Change {\r\n contactName: string;\r\n contactPhone: string;\r\n \r\n}\r\n\r\n","
\r\n \r\n \r\n
\r\n
\r\n
\r\n \"\"\r\n
\r\n
\r\n
\r\n {{servicePoint.Name}}\r\n
\r\n {{servicePointFullAddress}}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n {{schedule.text}}: {{schedule.schedule}}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n","import { Component, Input, Type, Injector, OnInit } from \"@angular/core\";\r\nimport { BaseComponent } from \"../base-component\";\r\nimport { ServicePoint } from \"../comun/recipient-services/service-point\";\r\nimport { LanguageService } from \"../services/language.service\";\r\n\r\nclass Schedule {\r\n text: string;\r\n schedule: string;\r\n}\r\n\r\n@Component({\r\n selector: 'common-detail-service-point',\r\n templateUrl: './detail-service-point.component.html',\r\n styleUrls: ['./detail-service-point.component.css']\r\n})\r\nexport class DetailServicePointComponent\r\n extends BaseComponent\r\n implements OnInit {\r\n\r\n private _servicePoint: ServicePoint;\r\n private _schedules: Array;\r\n @Input() componentMessage: Type;\r\n @Input() injectorComponentMessage?: Injector;\r\n get schedules(): Array {\r\n return this._schedules;\r\n }\r\n @Input()\r\n get servicePoint(): ServicePoint {\r\n return this._servicePoint;\r\n }\r\n set servicePoint(value: ServicePoint) {\r\n this._servicePoint = value;\r\n }\r\n constructor(private langService: LanguageService) {\r\n super();\r\n\r\n }\r\n ngOnInit(): void {\r\n super.ngOnInit();\r\n this.addSubscription(this.langService.language$.subscribe(() => this.onInitializedSharedResources()));\r\n }\r\n\r\n get servicePointFullAddress() {\r\n return `${this.servicePoint?.Address} - ${this.servicePoint?.ZipCode} ${this.servicePoint?.Location}`;\r\n }\r\n\r\n onInitializedSharedResources() {\r\n this._schedules = new Array();\r\n if (this.servicePoint) {\r\n Object.getOwnPropertyNames(this.servicePoint.Schedules).forEach(nameSchedule => {\r\n const dayOfWeek = this.servicePoint.Schedules[nameSchedule].DayOfWeek;\r\n const timeRange = this.servicePoint.Schedules[nameSchedule].TimeRange;\r\n\r\n let textDay = '';\r\n let schedule = '';\r\n\r\n textDay = this.langService.instant('Shared.WeekDays')[dayOfWeek].text;\r\n schedule = timeRange;\r\n\r\n this.schedules.push({ text: textDay, schedule: schedule });\r\n });\r\n }\r\n }\r\n}\r\n","import { ChangeDetectorRef, Directive, ElementRef, OnDestroy } from '@angular/core';\r\nimport { NgModel } from '@angular/forms';\r\nimport { NgxMaskDirective, NgxMaskService } from 'ngx-mask';\r\nimport { Subscription } from 'rxjs';\r\n\r\n@Directive({\r\n // eslint-disable-next-line @angular-eslint/directive-selector\r\n selector: '[mask]'\r\n})\r\nexport class CustomizeMaskDirective implements OnDestroy {\r\n private valueChangesSubscription: Subscription;\r\n\r\n constructor(maskDirective: NgxMaskDirective, maskService: NgxMaskService, ngModel: NgModel, eRef: ElementRef) {\r\n //TODO: revisar\r\n maskService.dropSpecialCharacters = false;\r\n maskService.showMaskTyped = false;\r\n maskService.validation = false;\r\n let touchingInput = false;\r\n this.valueChangesSubscription = ngModel.valueChanges.subscribe(v => {\r\n if (touchingInput) {\r\n return;\r\n }\r\n maskService.showMaskTyped = v !== '';\r\n if (v !== '' && typeof v === 'string' && v.length === 1) {\r\n //evitamos recursividad\r\n touchingInput = true;\r\n try {\r\n //forzamos a que ngx mask muestre los placeHolderCharacter\r\n const inputEvent: Partial = {\r\n target: eRef.nativeElement as EventTarget | null,\r\n type: 'keydown',\r\n key: ' '\r\n };\r\n\r\n maskDirective.onInput(inputEvent as KeyboardEvent);\r\n } finally {\r\n touchingInput = false;\r\n }\r\n }\r\n });\r\n }\r\n ngOnDestroy(): void {\r\n this.valueChangesSubscription.unsubscribe();\r\n }\r\n}\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { BsModalRef, BsModalService } from 'ngx-bootstrap/modal';\r\nimport { BaseComponent } from '../base-component';\r\nimport { appInjector } from '../app-injector';\r\n\r\n@Component({\r\n selector: 'app-message-modal',\r\n templateUrl: './message-modal.component.html',\r\n styleUrls: ['./message-modal.component.css']\r\n})\r\nexport class MessageModalComponent extends BaseComponent {\r\n message: string;\r\n textClose?: string;\r\n constructor(public modalRef: BsModalRef) {\r\n super();\r\n }\r\n\r\n static show(message: string, textClose?: string): BsModalRef {\r\n const modalService = appInjector.get(BsModalService);\r\n return modalService.show(MessageModalComponent, {\r\n initialState: {\r\n message: message,\r\n textClose: textClose\r\n }\r\n });\r\n }\r\n}\r\n\r\n","
\r\n

\r\n \"Brand\"\r\n

\r\n \r\n
\r\n
\r\n

\r\n
\r\n\r\n","import { BaseComponent } from \"../base-component\";\r\nimport { Expedition } from \"../comun/recipient-services/expedition\";\r\nimport { Change } from \"../comun/recipient-services/change\";\r\nimport { Directive } from \"@angular/core\";\r\n\r\n@Directive()\r\nexport abstract class ComponentModifyShipping extends BaseComponent {\r\n expedition: Expedition;\r\n constructor() {\r\n super();\r\n this.expedition = this.sesion.expedition$.getValue();\r\n }\r\n\r\n get changesMade(): Array {\r\n return this.sesion.changes;\r\n }\r\n\r\n}\r\n","import * as i0 from '@angular/core';\nimport { Directive, Input, Injectable, Component, HostBinding, EventEmitter, Output, NgModule } from '@angular/core';\nimport * as i2 from '@angular/common';\nimport { CommonModule } from '@angular/common';\n\nclass NgTranscludeDirective {\n set ngTransclude(templateRef) {\n this._ngTransclude = templateRef;\n if (templateRef) {\n this.viewRef.createEmbeddedView(templateRef);\n }\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n get ngTransclude() {\n return this._ngTransclude;\n }\n constructor(viewRef) {\n this.viewRef = viewRef;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.0.4\", ngImport: i0, type: NgTranscludeDirective, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.0.4\", type: NgTranscludeDirective, selector: \"[ngTransclude]\", inputs: { ngTransclude: \"ngTransclude\" }, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.0.4\", ngImport: i0, type: NgTranscludeDirective, decorators: [{\n type: Directive,\n args: [{\n selector: '[ngTransclude]'\n }]\n }], ctorParameters: () => [{ type: i0.ViewContainerRef }], propDecorators: { ngTransclude: [{\n type: Input\n }] } });\n\nclass TabsetConfig {\n constructor() {\n /** provides default navigation context class: 'tabs' or 'pills' */\n this.type = 'tabs';\n /** provides possibility to set keyNavigations enable or disable, by default is enable */\n this.isKeysAllowed = true;\n /** aria label for tab list */\n this.ariaLabel = 'Tabs';\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.0.4\", ngImport: i0, type: TabsetConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.0.4\", ngImport: i0, type: TabsetConfig, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.0.4\", ngImport: i0, type: TabsetConfig, decorators: [{\n type: Injectable,\n args: [{\n providedIn: 'root'\n }]\n }] });\n\n// todo: add active event to tab\n// todo: fix? mixing static and dynamic tabs position tabs in order of creation\nclass TabsetComponent {\n /** if true tabs will be placed vertically */\n get vertical() {\n return this._vertical;\n }\n set vertical(value) {\n this._vertical = value;\n this.setClassMap();\n }\n /** if true tabs fill the container and have a consistent width */\n get justified() {\n return this._justified;\n }\n set justified(value) {\n this._justified = value;\n this.setClassMap();\n }\n /** navigation context class: 'tabs' or 'pills' */\n get type() {\n return this._type;\n }\n set type(value) {\n this._type = value;\n this.setClassMap();\n }\n get isKeysAllowed() {\n return this._isKeysAllowed;\n }\n set isKeysAllowed(value) {\n this._isKeysAllowed = value;\n }\n constructor(config, renderer, elementRef) {\n this.renderer = renderer;\n this.elementRef = elementRef;\n this.clazz = true;\n this.tabs = [];\n this.classMap = {};\n /** aria label for tab list */\n this.ariaLabel = 'Tabs';\n this.isDestroyed = false;\n this._vertical = false;\n this._justified = false;\n this._type = 'tabs';\n this._isKeysAllowed = true;\n Object.assign(this, config);\n }\n ngOnDestroy() {\n this.isDestroyed = true;\n }\n addTab(tab) {\n this.tabs.push(tab);\n tab.active = this.tabs.length === 1 && !tab.active;\n }\n removeTab(tab, options = { reselect: true, emit: true }) {\n const index = this.tabs.indexOf(tab);\n if (index === -1 || this.isDestroyed) {\n return;\n }\n // Select a new tab if the tab to be removed is selected and not destroyed\n if (options.reselect && tab.active && this.hasAvailableTabs(index)) {\n const newActiveIndex = this.getClosestTabIndex(index);\n this.tabs[newActiveIndex].active = true;\n }\n if (options.emit) {\n tab.removed.emit(tab);\n }\n this.tabs.splice(index, 1);\n if (tab.elementRef.nativeElement.parentNode) {\n this.renderer.removeChild(tab.elementRef.nativeElement.parentNode, tab.elementRef.nativeElement);\n }\n }\n keyNavActions(event, index) {\n if (!this.isKeysAllowed) {\n return;\n }\n const list = Array.from(this.elementRef.nativeElement.querySelectorAll('.nav-link'));\n // const activeElList = list.filter((el: HTMLElement) => !el.classList.contains('disabled'));\n if (event.keyCode === 13 || event.key === 'Enter' || event.keyCode === 32 || event.key === 'Space') {\n event.preventDefault();\n const currentTab = list[(index) % list.length];\n currentTab.click();\n return;\n }\n if (event.keyCode === 39 || event.key === 'RightArrow') {\n let nextTab;\n let shift = 1;\n do {\n nextTab = list[(index + shift) % list.length];\n shift++;\n } while (nextTab.classList.contains('disabled'));\n nextTab.focus();\n return;\n }\n if (event.keyCode === 37 || event.key === 'LeftArrow') {\n let previousTab;\n let shift = 1;\n let i = index;\n do {\n if ((i - shift) < 0) {\n i = list.length - 1;\n previousTab = list[i];\n shift = 0;\n }\n else {\n previousTab = list[i - shift];\n }\n shift++;\n } while (previousTab.classList.contains('disabled'));\n previousTab.focus();\n return;\n }\n if (event.keyCode === 36 || event.key === 'Home') {\n event.preventDefault();\n let firstTab;\n let shift = 0;\n do {\n firstTab = list[shift % list.length];\n shift++;\n } while (firstTab.classList.contains('disabled'));\n firstTab.focus();\n return;\n }\n if (event.keyCode === 35 || event.key === 'End') {\n event.preventDefault();\n let lastTab;\n let shift = 1;\n let i = index;\n do {\n if ((i - shift) < 0) {\n i = list.length - 1;\n lastTab = list[i];\n shift = 0;\n }\n else {\n lastTab = list[i - shift];\n }\n shift++;\n } while (lastTab.classList.contains('disabled'));\n lastTab.focus();\n return;\n }\n if (event.keyCode === 46 || event.key === 'Delete') {\n if (this.tabs[index].removable) {\n this.removeTab(this.tabs[index]);\n if (list[index + 1]) {\n list[(index + 1) % list.length].focus();\n return;\n }\n if (list[list.length - 1]) {\n list[0].focus();\n }\n }\n }\n }\n getClosestTabIndex(index) {\n const tabsLength = this.tabs.length;\n if (!tabsLength) {\n return -1;\n }\n for (let step = 1; step <= tabsLength; step += 1) {\n const prevIndex = index - step;\n const nextIndex = index + step;\n if (this.tabs[prevIndex] && !this.tabs[prevIndex].disabled) {\n return prevIndex;\n }\n if (this.tabs[nextIndex] && !this.tabs[nextIndex].disabled) {\n return nextIndex;\n }\n }\n return -1;\n }\n hasAvailableTabs(index) {\n const tabsLength = this.tabs.length;\n if (!tabsLength) {\n return false;\n }\n for (let i = 0; i < tabsLength; i += 1) {\n if (!this.tabs[i].disabled && i !== index) {\n return true;\n }\n }\n return false;\n }\n setClassMap() {\n this.classMap = {\n 'nav-stacked': this.vertical,\n 'flex-column': this.vertical,\n 'nav-justified': this.justified,\n [`nav-${this.type}`]: true\n };\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.0.4\", ngImport: i0, type: TabsetComponent, deps: [{ token: TabsetConfig }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }\n static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.0.4\", type: TabsetComponent, selector: \"tabset\", inputs: { vertical: \"vertical\", justified: \"justified\", type: \"type\" }, host: { properties: { \"class.tab-container\": \"this.clazz\" } }, ngImport: i0, template: \"\\n
\\n \\n
\\n\", styles: [\":host .nav-tabs .nav-item.disabled a.disabled{cursor:default}\\n\"], dependencies: [{ kind: \"directive\", type: i2.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i2.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i2.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: NgTranscludeDirective, selector: \"[ngTransclude]\", inputs: [\"ngTransclude\"] }] }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.0.4\", ngImport: i0, type: TabsetComponent, decorators: [{\n type: Component,\n args: [{ selector: 'tabset', template: \"\\n
\\n \\n
\\n\", styles: [\":host .nav-tabs .nav-item.disabled a.disabled{cursor:default}\\n\"] }]\n }], ctorParameters: () => [{ type: TabsetConfig }, { type: i0.Renderer2 }, { type: i0.ElementRef }], propDecorators: { vertical: [{\n type: Input\n }], justified: [{\n type: Input\n }], type: [{\n type: Input\n }], clazz: [{\n type: HostBinding,\n args: ['class.tab-container']\n }] } });\n\nclass TabDirective {\n /** if set, will be added to the tab's class attribute. Multiple classes are supported. */\n get customClass() {\n return this._customClass;\n }\n set customClass(customClass) {\n if (this.customClass) {\n this.customClass.split(' ').forEach((cssClass) => {\n this.renderer.removeClass(this.elementRef.nativeElement, cssClass);\n });\n }\n this._customClass = customClass ? customClass.trim() : '';\n if (this.customClass) {\n this.customClass.split(' ').forEach((cssClass) => {\n this.renderer.addClass(this.elementRef.nativeElement, cssClass);\n });\n }\n }\n /** tab active state toggle */\n get active() {\n return this._active;\n }\n set active(active) {\n if (this._active === active) {\n return;\n }\n if ((this.disabled && active) || !active) {\n if (this._active && !active) {\n this.deselect.emit(this);\n this._active = active;\n }\n return;\n }\n this._active = active;\n this.selectTab.emit(this);\n this.tabset.tabs.forEach((tab) => {\n if (tab !== this) {\n tab.active = false;\n }\n });\n }\n get ariaLabelledby() {\n return this.id ? `${this.id}-link` : '';\n }\n constructor(tabset, elementRef, renderer) {\n this.elementRef = elementRef;\n this.renderer = renderer;\n /** if true tab can not be activated */\n this.disabled = false;\n /** if true tab can be removable, additional button will appear */\n this.removable = false;\n /** fired when tab became active, $event:Tab equals to selected instance of Tab component */\n this.selectTab = new EventEmitter();\n /** fired when tab became inactive, $event:Tab equals to deselected instance of Tab component */\n this.deselect = new EventEmitter();\n /** fired before tab will be removed, $event:Tab equals to instance of removed tab */\n this.removed = new EventEmitter();\n this.addClass = true;\n this.role = 'tabpanel';\n this._active = false;\n this._customClass = '';\n this.tabset = tabset;\n this.tabset.addTab(this);\n }\n ngOnInit() {\n this.removable = !!this.removable;\n }\n ngOnDestroy() {\n this.tabset.removeTab(this, { reselect: false, emit: false });\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.0.4\", ngImport: i0, type: TabDirective, deps: [{ token: TabsetComponent }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.0.4\", type: TabDirective, selector: \"tab, [tab]\", inputs: { heading: \"heading\", id: \"id\", disabled: \"disabled\", removable: \"removable\", customClass: \"customClass\", active: \"active\" }, outputs: { selectTab: \"selectTab\", deselect: \"deselect\", removed: \"removed\" }, host: { properties: { \"attr.id\": \"this.id\", \"class.active\": \"this.active\", \"class.tab-pane\": \"this.addClass\", \"attr.role\": \"this.role\", \"attr.aria-labelledby\": \"this.ariaLabelledby\" } }, exportAs: [\"tab\"], ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.0.4\", ngImport: i0, type: TabDirective, decorators: [{\n type: Directive,\n args: [{ selector: 'tab, [tab]', exportAs: 'tab' }]\n }], ctorParameters: () => [{ type: TabsetComponent }, { type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { heading: [{\n type: Input\n }], id: [{\n type: HostBinding,\n args: ['attr.id']\n }, {\n type: Input\n }], disabled: [{\n type: Input\n }], removable: [{\n type: Input\n }], customClass: [{\n type: Input\n }], active: [{\n type: HostBinding,\n args: ['class.active']\n }, {\n type: Input\n }], selectTab: [{\n type: Output\n }], deselect: [{\n type: Output\n }], removed: [{\n type: Output\n }], addClass: [{\n type: HostBinding,\n args: ['class.tab-pane']\n }], role: [{\n type: HostBinding,\n args: ['attr.role']\n }], ariaLabelledby: [{\n type: HostBinding,\n args: ['attr.aria-labelledby']\n }] } });\n\n/** Should be used to mark element as a template for tab heading */\nclass TabHeadingDirective {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n constructor(templateRef, tab) {\n tab.headingRef = templateRef;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.0.4\", ngImport: i0, type: TabHeadingDirective, deps: [{ token: i0.TemplateRef }, { token: TabDirective }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.0.4\", type: TabHeadingDirective, selector: \"[tabHeading]\", ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.0.4\", ngImport: i0, type: TabHeadingDirective, decorators: [{\n type: Directive,\n args: [{ selector: '[tabHeading]' }]\n }], ctorParameters: () => [{ type: i0.TemplateRef }, { type: TabDirective }] });\n\nclass TabsModule {\n static forRoot() {\n return {\n ngModule: TabsModule,\n providers: []\n };\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.0.4\", ngImport: i0, type: TabsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }\n static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.0.4\", ngImport: i0, type: TabsModule, declarations: [NgTranscludeDirective,\n TabDirective,\n TabsetComponent,\n TabHeadingDirective], imports: [CommonModule], exports: [TabDirective,\n TabsetComponent,\n TabHeadingDirective,\n NgTranscludeDirective] }); }\n static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.0.4\", ngImport: i0, type: TabsModule, imports: [CommonModule] }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.0.4\", ngImport: i0, type: TabsModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [CommonModule],\n declarations: [\n NgTranscludeDirective,\n TabDirective,\n TabsetComponent,\n TabHeadingDirective\n ],\n exports: [\n TabDirective,\n TabsetComponent,\n TabHeadingDirective,\n NgTranscludeDirective\n ]\n }]\n }] });\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { NgTranscludeDirective, TabDirective, TabHeadingDirective, TabsModule, TabsetComponent, TabsetConfig };\n","import { Component, OnInit, Type, Injector } from '@angular/core';\r\nimport { BaseComponent } from '../base-component';\r\nimport { appInjector } from '../app-injector';\r\nimport { BsModalService, BsModalRef } from 'ngx-bootstrap/modal';\r\nimport { ServicePoint } from '../comun/recipient-services/service-point';\r\n\r\n@Component({\r\n selector: 'app-detail-service-point-modal',\r\n templateUrl: './detail-service-point-modal.component.html',\r\n styleUrls: ['./detail-service-point-modal.component.css']\r\n})\r\nexport class DetailServicePointModalComponent extends BaseComponent {\r\n\r\n constructor(public modalRef: BsModalRef) {\r\n super();\r\n }\r\n servicePoint: ServicePoint;\r\n componentMessage?: Type;\r\n injectorComponentMessage?: Injector;\r\n static show(servicePoint: ServicePoint, componentMessage?: Type, injectorComponentMessage?: Injector): BsModalRef {\r\n const modalService = appInjector.get(BsModalService);\r\n\r\n return modalService.show(DetailServicePointModalComponent, {\r\n initialState: {\r\n servicePoint: servicePoint,\r\n componentMessage: componentMessage,\r\n injectorComponentMessage: injectorComponentMessage\r\n }\r\n });\r\n }\r\n}\r\n","
\r\n

\r\n \"Brand\"\r\n

\r\n \r\n
\r\n
\r\n \r\n
\r\n","import { Change } from '../change';\r\nimport { ExpeditionModification } from '../expedition-modification';\r\nimport { Expedition } from '../expedition';\r\nimport { ChangeType } from \"../../../enums/change-type.enum\"\r\n\r\nexport class DayChange extends Change {\r\n get route(): string {\r\n return 'changeDay';\r\n }\r\n fillOutExpedition(expedition: Expedition) {\r\n expedition.DeliveryDate = this.newDeliveryDate;\r\n expedition.DateText = this.textNewDate;\r\n }\r\n\r\n readonly type = ChangeType.DeliveryDay;\r\n get htmlInstead(): string {\r\n return '' + this.langService.instant('ModifyDelivery.NewDeliveryDate') + ' ' + this.textNewDate + '';\r\n }\r\n get html(): string {\r\n return this.langService.instant('ModifyDelivery.NewDeliveryDate') + ' ' + this.textNewDate + '';\r\n }\r\n get textTab(): string {\r\n return this.langService.instant('ModifyDelivery.DayTab');\r\n }\r\n\r\n newDeliveryDate: string;\r\n textNewDate: string;\r\n serialize(name: string): boolean {\r\n if (name === 'textNewDate') {\r\n return false;\r\n } else {\r\n return super.serialize(name);\r\n }\r\n }\r\n get canBeCombined(): boolean {\r\n return true;\r\n }\r\n}\r\n","import { Change } from '../change';\r\nimport { ChangeType } from '../../../enums/change-type.enum';\r\nimport { Expedition } from '../expedition';\r\n\r\n\r\nexport class NeighborChange extends Change {\r\n get route(): string {\r\n return 'entregaVecino';\r\n }\r\n\r\n fillOutExpedition(expedition: Expedition) {\r\n if (this.janitorDelivery) {\r\n expedition.Street = this.langService.instant('ModifyDelivery.DeliveryConcierge').toLowerCase();\r\n } else {\r\n expedition.Street = this.name + ' ' + this.direction + ' ' + this.additionalInformation;\r\n }\r\n }\r\n\r\n\r\n toJSON(): any {\r\n const additionalInformation = this.additionalInformation;\r\n const dto = super.toJSON();\r\n if (additionalInformation) {\r\n delete dto.AdditionalInformation;\r\n dto.additionalInformation = additionalInformation;\r\n }\r\n if (this.janitorDelivery) {\r\n dto['Name'] = this.langService.instant('ModifyDelivery.DeliveryConcierge').toLowerCase();\r\n }\r\n\r\n return dto;\r\n }\r\n\r\n readonly type = ChangeType.NeighborDelivery;\r\n get html(): string {\r\n if (this.janitorDelivery) {\r\n return this.langService.instant('ModifyDelivery.ConciergeChangeHtml');\r\n }\r\n return this.langService.instant('ModifyDelivery.NewDeliveryAddress') + ' ' + this.name + ' ' + this.direction + ' ' + this.additionalInformation + ' ';\r\n }\r\n\r\n get htmlInstead(): string {\r\n let text: string;\r\n if (this.janitorDelivery) {\r\n text = this.langService.instant('ModifyDelivery.DeliveryConcierge');\r\n } else {\r\n text = this.direction + ' ' + this.additionalInformation;\r\n }\r\n return '' + this.langService.instant('ModifyDelivery.NewDeliveryAddress') + ' ' + text + ''\r\n }\r\n\r\n get textTab(): string {\r\n return this.langService.instant('ModifyDelivery.NeighbourTab');\r\n }\r\n name = '';\r\n direction = '';\r\n\r\n private AdditionalInformation = '';\r\n get additionalInformation(): string {\r\n return this.janitorDelivery ? this.AdditionalInformation.substring(80 - this.langService.instant('ModifyDelivery.DeliveryConcierge').length) : this.AdditionalInformation.substring(0, 80 - this.name.length - this.direction.length);\r\n }\r\n\r\n set additionalInformation(value: string) {\r\n this.AdditionalInformation = value;\r\n }\r\n janitorDelivery = false;\r\n get canBeCombined(): boolean {\r\n return true;\r\n }\r\n\r\n}\r\n","\r\n
\r\n {{'Shared.FirstAvailableAtServicePointInfo' | translate}} {{expedition.DateAvailableInServicePoint}}.\r\n {{daysMessage}}.\r\n
\r\n
\r\n

\r\n
\r\n\r\n
{{'Shared.PickupData' | translate}}:
\r\n\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { ComponentModifyShipping } from '../component-modify-shipping';\r\nimport { LanguageService } from '../../services/language.service';\r\n\r\n@Component({\r\n selector: 'app-message-at-service-point',\r\n templateUrl: './message-at-service-point.component.html',\r\n styleUrls: ['./message-at-service-point.component.css']\r\n})\r\nexport class MessageAtServicePointComponent extends ComponentModifyShipping implements OnInit {\r\n\r\n daysMessage: string;\r\n constructor(private langService: LanguageService) {\r\n super();\r\n }\r\n ngOnInit() {\r\n this.daysMessage = this.langService.instant('Shared.SecondAvailableAtServicePointInfo').replace('#days', this.expedition.DaysInServicePoint.toString());\r\n }\r\n get esConnect(): boolean {\r\n return Number.isNaN(Number(this.expedition.DestinationCode));\r\n }\r\n}\r\n","
\r\n

\r\n \"Brand\"\r\n

\r\n \r\n
\r\n
\r\n

\r\n
\r\n\r\n","import { Component, OnInit, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';\r\nimport { ComponentModifyShipping } from '../component-modify-shipping';\r\nimport { BsModalService, BsModalRef } from 'ngx-bootstrap/modal';\r\nimport { ChangeType } from '../../enums/change-type.enum';\r\nimport { Change } from '../../comun/recipient-services/change';\r\nimport { Subscription } from 'rxjs';\r\nimport { LanguageService } from '../../services/language.service';\r\n\r\n@Component({\r\n selector: 'app-delivery-retry-modal',\r\n templateUrl: './delivery-retry-modal.component.html',\r\n styleUrls: ['./delivery-retry-modal.component.css'],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class DeliveryRetryModalComponent extends ComponentModifyShipping implements OnInit {\r\n htmlMessage: string;\r\n selection = ChangeType.Ninguno;\r\n changesAvailable: Array;\r\n loaded: boolean;\r\n constructor(\r\n public modal: BsModalRef,\r\n private cdr: ChangeDetectorRef,\r\n private langService: LanguageService,\r\n service: BsModalService\r\n ) {\r\n super();\r\n const onShown: Subscription = service.onShown.subscribe(() => {\r\n onShown.unsubscribe();\r\n setTimeout(() => {\r\n this.loaded = true;\r\n this.cdr.detectChanges();\r\n }, 500);\r\n });\r\n const expedition = this.sesion.expedition$.getValue();\r\n this.changesAvailable = this.sesion.changesAvailable;\r\n const textRetryDelivery: string = expedition.ProductType == 'B2B' ? this.langService.instant('ModifyDelivery.DeliveryRetryB2BInfo') : (expedition.WithoutDirection ? this.langService.instant('ModifyDelivery.NoDeliveryAddressRetryInfo') : this.langService.instant('ModifyDelivery.RetryDeliveryInfo'));\r\n\r\n if (expedition.WithoutDirection) {//DI o DS\r\n this.htmlMessage = textRetryDelivery\r\n } else if (expedition.DeliveryDate) {//si tiene date de entrega\r\n this.htmlMessage = textRetryDelivery.replace('#date', expedition.DateText);\r\n } else {\r\n const frases = textRetryDelivery.split('.');\r\n const textoAusenciaFechaReintentoEntrega = this.langService.instant('ModifyDelivery.AbsentDeliveryDateInfo');\r\n this.htmlMessage = frases[0] + '. ' + textoAusenciaFechaReintentoEntrega + frases[2];\r\n }\r\n\r\n }\r\n\r\n ngOnInit() {\r\n super.ngOnInit();\r\n this.cdr.detectChanges();\r\n }\r\n\r\n activarCambio(type: ChangeType) {\r\n this.selection = type;\r\n this.modal.hide();\r\n }\r\n\r\n}\r\n","import { Change } from '../change';\r\nimport { ChangeType } from '../../../enums/change-type.enum';\r\nimport { Expedition } from '../expedition';\r\nimport { ExpeditionModification } from '../expedition-modification';\r\n\r\n\r\nexport class NewAddressChange extends Change {\r\n get direction(): string {\r\n if(this.additionalInfo){\r\n return (this.address + ' ' + this.number + ' ' + this.additionalInfo).trimEnd() + ', ' + this.town + ' ' + this.zipCode;\r\n }\r\n else{\r\n return (this.address + ' ' + this.number).trimEnd() + ', ' + this.town + ' ' + this.zipCode;\r\n }\r\n \r\n }\r\n address: string;\r\n zipCode: string;\r\n town: string;\r\n number: number;\r\n additionalInfo: string;\r\n\r\n get route(): string {\r\n return 'newAddress';\r\n }\r\n fillOutExpedition(expedition: Expedition) {\r\n expedition.Street = this.direction;\r\n }\r\n\r\n\r\n\r\n readonly type = ChangeType.GiveAnotherOption;\r\n get html(): string {\r\n let text: string;\r\n\r\n text = this.direction;\r\n\r\n return this.langService.instant('ModifyDelivery.NewDeliveryAddress') + ' ' + text + '' \r\n }\r\n\r\n get htmlInstead(): string {\r\n let text: string;\r\n\r\n text = this.direction;\r\n\r\n return '' + this.langService.instant('ModifyDelivery.NewDeliveryAddress') + ' ' + text + ''\r\n }\r\n\r\n get textTab(): string {\r\n return this.langService.instant('ModifyDelivery.NewAddressTab');\r\n }\r\n get textModal(): string {\r\n return this.langService.instant('ModifyDelivery.NewAddressModal');\r\n }\r\n\r\n}\r\n","import { ChangeType } from '../../../enums/change-type.enum';\r\nimport { Solution } from './solution';\r\nimport { Expedition } from '../expedition';\r\n\r\nexport class DateChangeSolution extends Solution {\r\n\r\n newDeliveryDate: string;\r\n public From: string;\r\n public Until: string;\r\n public FromEvening: string;\r\n public UntilEvening: string;\r\n textNewDate: string;\r\n\r\n get route(): string {\r\n return 'dateChangeSolution';\r\n }\r\n readonly type = ChangeType.DeliveryDate;\r\n\r\n fillOutExpedition(expedition: Expedition) {\r\n expedition.DeliveryDate = this.newDeliveryDate;\r\n expedition.DateText = this.textNewDate;\r\n }\r\n\r\n get html(): string {\r\n return '';\r\n }\r\n\r\n get htmlInstead(): string {\r\n return '';\r\n }\r\n\r\n get textTab(): string {\r\n return this.langService.instant('ModifyDelivery.DateTab');\r\n }\r\n\r\n get textModal(): string {\r\n return this.langService.instant('ModifyDelivery.DateModal') ? this.langService.instant('ModifyDelivery.DateModal') : this.langService.instant('ModifyDelivery.DateTab');\r\n }\r\n serialize(name: string): boolean {\r\n if (name === 'textNewDate' || name.startsWith('From') || name.startsWith('Until')) {\r\n return false;\r\n } else {\r\n return super.serialize(name);\r\n }\r\n }\r\n toJSON() {\r\n const json = super.toJSON();\r\n let schedule = '';\r\n if (this.From || this.Until) {\r\n schedule = 'Mñna ';\r\n if (this.From) {\r\n schedule = schedule + 'D:' + this.From + ' ';\r\n }\r\n if (this.Until) {\r\n schedule = schedule + 'H:' + this.Until + ' ';\r\n }\r\n }\r\n if (this.FromEvening || this.UntilEvening) {\r\n schedule = schedule + 'Tarde';\r\n if (this.FromEvening) {\r\n schedule = schedule + 'D:' + this.FromEvening + ' ';\r\n }\r\n if (this.UntilEvening) {\r\n schedule = schedule + 'H:' + this.UntilEvening;\r\n }\r\n }\r\n if (schedule) {\r\n json.Schedule = schedule;\r\n }\r\n return json;\r\n }\r\n}\r\n\r\n","\r\nimport { Expedition } from '../expedition';\r\nimport { ExpeditionModification } from '../expedition-modification';\r\nimport { ChangeType } from '../../../enums/change-type.enum';\r\nimport { Solution } from './solution';\r\n\r\nexport class AlternativeAddressSolution extends Solution {\r\n\r\n textDate: string;\r\n name: string;\r\n address: string;\r\n zipCode: string;\r\n town: string;\r\n phone: string;\r\n contact: string;\r\n email: string;\r\n schedule: string;\r\n date: string;\r\n\r\n get route(): string {\r\n return 'alternativeDirectionSolution';\r\n }\r\n\r\n fillOutExpedition(expedition: Expedition) {\r\n expedition.Street = this.address;\r\n expedition.DeliveryDate = this.date;\r\n expedition.DateText = this.textDate;\r\n }\r\n\r\n readonly type = ChangeType.AlternativeAddressSolution;\r\n get html(): string {\r\n return '';\r\n }\r\n\r\n get htmlInstead(): string {\r\n return '';\r\n }\r\n\r\n get textTab(): string {\r\n return this.langService.instant('ModifyDelivery.AlternativeAddressTab');\r\n }\r\n get textModal(): string {\r\n return this.langService.instant('ModifyDelivery.AlternativeAddressModal');\r\n }\r\n}\r\n\r\n","import { Solution } from './solution';\r\nimport { Expedition } from '../expedition';\r\nimport { ExpeditionModification } from '../expedition-modification';\r\nimport { ChangeType } from '../../../enums/change-type.enum';\r\n\r\nexport class FacilityPickupSolutionDHL extends Solution {\r\n name: string;\r\n surname: string;\r\n phone: string;\r\n\r\n get route(): string {\r\n return 'solutionPickUpDHLFacilities';\r\n }\r\n\r\n fillOutExpedition(expedition: Expedition) {\r\n\r\n }\r\n\r\n\r\n readonly type = ChangeType.FacilityPickupSolutionDHL;\r\n get html(): string {\r\n\r\n return '';\r\n }\r\n\r\n get htmlInstead(): string {\r\n return '';\r\n }\r\n\r\n get textTab(): string {\r\n return this.langService.instant('ModifyDelivery.DHLCollectTab');\r\n }\r\n}\r\n\r\n","
\r\n

\r\n \"Brand\"\r\n

\r\n \r\n
\r\n
\r\n
\r\n

{{'ModifyDelivery.ZipCodeCheckInfo' | translate}}

\r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n
","import { Component, OnInit } from '@angular/core';\r\nimport { ComponentModifyShipping } from '../component-modify-shipping';\r\nimport { ExpeditionsService } from '../../services/expeditions.service';\r\nimport { BsModalRef } from 'ngx-bootstrap/modal';\r\nimport { NgForm } from '@angular/forms';\r\nimport { ErrorModalComponent } from '../../error-modal/error-modal.component';\r\nimport { CategoriasGoogleAnalytics, paths } from '../../services/sesion.service';\r\nimport { ExceptionHttp } from '../../services/api.service';\r\nimport { LanguageService } from '../../services/language.service';\r\n\r\n\r\n@Component({\r\n selector: 'app-confirm-proof-delivery-modal',\r\n templateUrl: './confirm-proof-delivery-modal.component.html',\r\n styleUrls: ['./confirm-proof-delivery-modal.component.css']\r\n})\r\nexport class ConfirmProofDeliveryModalComponent extends ComponentModifyShipping {\r\n constructor(\r\n private service: ExpeditionsService,\r\n private langService: LanguageService,\r\n public modal: BsModalRef,\r\n ) {\r\n super();\r\n this.termsRoute = paths.proofDeliveryTerms[this.sesion.idioma$.getValue()];\r\n }\r\n\r\n\r\n\r\n zipCode: string = '';\r\n acceptPolicyPrivacy: boolean;\r\n\r\n\r\n get zipCodeMask(): string {\r\n return this.sesion.zipCodeMask;\r\n }\r\n\r\n\r\n async confirmExit(frm: NgForm) {\r\n const expedition = this.sesion.expedition$.getValue();\r\n if (!this.acceptPolicyPrivacy) {\r\n frm.controls.acceptPolicyPrivacy.markAsTouched();\r\n frm.controls.acceptPolicyPrivacy.setErrors({ 'politicaPrivacidad': this.langService.instant('ModifyDelivery.PrivacyPolicyInfo') }, { emitEvent: true })\r\n\r\n }\r\n\r\n if( this.zipCode === '') {\r\n frm.controls.zipCode.markAsTouched();\r\n frm.controls.zipCode.setErrors({ 'zipCode': this.langService.instant('ModifyDelivery.WrongZipCodeInfo') }, { emitEvent: true })\r\n return\r\n }\r\n\r\n if (frm.invalid) {\r\n return;\r\n }\r\n\r\n try {\r\n this.sesion.enviarEventoGoogleAnalitics( CategoriasGoogleAnalytics.ConsultaExpedicion, 'Comprobante Entrega');\r\n await this.service.downloadVoucher(this.expedition, this.zipCode).toPromise();\r\n this.modal.hide();\r\n } catch (error) {\r\n const mistakeHttp = (error as ExceptionHttp);\r\n if (mistakeHttp && mistakeHttp.status == 400) {\r\n frm.controls.zipCode.markAsTouched();\r\n frm.controls.zipCode.setErrors({ 'zipCode': mistakeHttp.message }, { emitEvent: true })\r\n } else {\r\n ErrorModalComponent.show(error);\r\n }\r\n }\r\n }\r\n readonly termsRoute: string;\r\n}\r\n","\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n","import { Component, Input, ViewChild, AfterViewInit } from '@angular/core';\r\nimport { Change } from '../../../comun/recipient-services/change';\r\nimport { RouterOutlet } from '@angular/router';\r\n\r\n@Component({\r\n selector: 'change-router-outlet',\r\n templateUrl: './change-router-outlet.component.html',\r\n styleUrls: ['./change-router-outlet.component.css']\r\n})\r\nexport class ChangeRouterOutletComponent implements AfterViewInit {\r\n ngAfterViewInit(): void {\r\n if (this.outlet.isActivated) {\r\n ChangeRouterOutletComponent.outletActivo = this.outlet;\r\n }\r\n }\r\n static outletActivo: RouterOutlet;\r\n @ViewChild(RouterOutlet, { static: false }) outlet: RouterOutlet;\r\n @Input() change: Change;\r\n constructor() {\r\n\r\n }\r\n\r\n activated() {\r\n ChangeRouterOutletComponent.outletActivo = this.outlet;\r\n }\r\n\r\n}\r\n","\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n {{titleWarning}}\r\n

\r\n {{textWarning}}\r\n

\r\n
\r\n
\r\n \r\n
\r\n
\r\n

\r\n {{'ModifyDelivery.ExpectedDeliveryDate' | translate}} 
\r\n {{expedition?.DateText}}\r\n

\r\n
\r\n
\r\n

{{'ModifyDelivery.WasDeliveredInfo' | translate}}  {{expedition?.DateText}}

\r\n
\r\n
\r\n
\r\n
\r\n\r\n \r\n
\r\n
\r\n
\r\n
\r\n
    \r\n
  • = Status.InformationReceived}\"\r\n [tooltip]=\"('Shared.ProgressReadyAtDHL' | translate) + ' ' + expedition?.Origin\"\r\n [containerClass]=\"'mobile' + (expedition?.Status < Status.InformationReceived ? ' inactivo': '')\"\r\n placement=\"auto\">\r\n
    \r\n
    \r\n \"\"\r\n
    \r\n
    \r\n {{'Shared.ProgressReadyAtDHL' | translate}} {{expedition?.Origin}}\r\n
  • \r\n
  • Status.InformationReceived}\">
  • \r\n
  • = Status.InTransit }\"\r\n [tooltip]=\"'Shared.ProgressInTransit' | translate\"\r\n [containerClass]=\"'mobile' + (expedition?.Status < Status.InTransit ? ' inactivo': '')\"\r\n placement=\"auto\">\r\n
    \r\n
    \r\n \"\"\r\n
    \r\n
    \r\n {{'Shared.ProgressInTransit' | translate}}\r\n
  • \r\n
  • Status.InTransit}\">
  • \r\n
  • = Status.InDestinationAgency }\"\r\n [tooltip]=\"('Shared.ProgressReadyAtDHL' | translate) + ' ' + expedition?.Destination\"\r\n [containerClass]=\"'mobile' + (expedition?.Status < Status.InDestinationAgency ? ' inactivo': '')\"\r\n placement=\"auto\">\r\n
    \r\n
    \r\n \"\"\r\n
    \r\n
    \r\n {{'Shared.ProgressReadyAtDHL' | translate}} {{expedition?.Destination}}\r\n
  • \r\n
  • Status.InDestinationAgency}\">
  • \r\n
  • = Status.Assigned }\"\r\n [tooltip]=\"'Shared.ProgressOutForDelivery' | translate\"\r\n [containerClass]=\"'mobile' + (expedition?.Status < Status.Assigned ? ' inactivo': '')\"\r\n placement=\"auto\">\r\n
    \r\n
    \r\n \"\"\r\n
    \r\n
    \r\n {{'Shared.ProgressOutForDelivery' | translate}}\r\n
  • \r\n
  • Status.Assigned}\">
  • \r\n
  • = Status.InServicePoint }\"\r\n [tooltip]=\"'Shared.ProgressPickUpServicePoint' | translate\"\r\n [containerClass]=\"'mobile' + (expedition?.Status < Status.InServicePoint ? ' inactivo': '')\"\r\n placement=\"auto\">\r\n
    \r\n
    \r\n \"\"\r\n \r\n
    \r\n
    \r\n {{'Shared.ProgressPickUpServicePoint' | translate}}\r\n
  • \r\n
  • Status.Assigned}\">
  • \r\n
  • = Status.RetryDelivery }\"\r\n [tooltip]=\"'Shared.ProgressRetryDelivery' | translate\"\r\n [containerClass]=\"'mobile' + (expedition?.Status < Status.RetryDelivery ? ' inactivo': '')\"\r\n placement=\"auto\">\r\n
    \r\n
    \r\n \"\"\r\n \r\n
    \r\n
    \r\n {{'Shared.ProgressRetryDelivery' | translate}}\r\n
  • \r\n
  • Status.RetryDelivery}\">
  • \r\n
  • = Status.Delivered }\">\r\n
    \r\n
    \r\n \"\"\r\n
    \r\n
    \r\n {{'Shared.ProgressUndeliveredParcel' | translate}}\r\n
  • \r\n
  • Status.Delivered}\">
  • \r\n
  • = Status.Delivered }\"\r\n [tooltip]=\"'Shared.ProgressDelivered' | translate\"\r\n [containerClass]=\"'mobile' + (expedition?.Status < Status.Delivered ? ' inactivo': '')\"\r\n placement=\"auto\">\r\n
    \r\n
    \r\n \"\"\r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n {{'Shared.ProgressDelivered' | translate}}\r\n
  • \r\n
\r\n
{{textoSituacionActual}}
\r\n
\r\n
\r\n
\r\n
\r\n\r\n \r\n \r\n\r\n\r\n\r\n \r\n
0\" class=\" tabsModificables\">\r\n
\r\n
\r\n
\r\n {{'ModifyDelivery.HeaderTab' | translate}}\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n\r\n\r\n
\r\n
\r\n \"\"\r\n \"\"\r\n
\r\n\r\n
\r\n\r\n
","import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Injector, OnDestroy, OnInit, ViewChild, ViewContainerRef } from '@angular/core';\r\nimport { ActivatedRoute, NavigationEnd, Router } from '@angular/router';\r\nimport { BsModalRef, BsModalService } from 'ngx-bootstrap/modal';\r\nimport { Subscription } from 'rxjs';\r\nimport { appInjector } from '../app-injector';\r\nimport { BaseComponent } from '../base-component';\r\nimport { DetailServicePointModalComponent } from '../detail-service-point-modal/detail-service-point-modal.component';\r\nimport { MessageModalComponent } from '../message-modal/message-modal.component';\r\nimport { Change } from '../comun/recipient-services/change';\r\nimport { DayChange } from '../comun/recipient-services/changes/day-change';\r\nimport { ChangeServicePoint } from '../comun/recipient-services/changes/change-service-point';\r\nimport { NeighborChange } from '../comun/recipient-services/changes/neighbor-change';\r\nimport { Expedition } from '../comun/recipient-services/expedition';\r\nimport { ShipmentDetailStatus } from '../enums/shipmentdetail-status.enum';\r\nimport { ChangeType } from '../enums/change-type.enum';\r\nimport { CategoriasGoogleAnalytics, paths } from '../services/sesion.service';\r\nimport { MessageAtServicePointComponent } from './message-at-service-point/message-at-service-point.component';\r\nimport { DeliveryRetryModalComponent } from './delivery-retry-modal/delivery-retry-modal.component';\r\n\r\n\r\nimport { ScrollToConfigOptions, ScrollToService } from '@nicky-lenaers/ngx-scroll-to';\r\nimport { TabsetComponent } from 'ngx-bootstrap/tabs';\r\nimport { filter } from 'rxjs/operators';\r\nimport { environment } from '../../environments/environment';\r\nimport { NewAddressChange } from '../comun/recipient-services/changes/new-address-change';\r\nimport { DateChangeSolution } from '../comun/recipient-services/solutions/solution-date-change';\r\nimport { AlternativeAddressSolution } from '../comun/recipient-services/solutions/alternative-address-solution';\r\nimport { FacilityPickupSolutionDHL } from '../comun/recipient-services/solutions/solution-collect-facilities-DHL';\r\nimport { SolutionSenderRecipient } from '../comun/recipient-services/solutions/sender-recipient-solution';\r\nimport { LanguageService } from '../services/language.service';\r\nimport { ConfirmProofDeliveryModalComponent } from './confirm-proof-delivery-modal/confirm-proof-delivery-modal.component';\r\nimport { AppConfigService } from '../services/app-config.service';\r\n\r\n\r\n@Component({\r\n selector: 'app-modify-shipping',\r\n templateUrl: './modify-shipping.component.html',\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class ModifyShippingComponent extends BaseComponent implements OnInit, OnDestroy {\r\n private subscriptionEventosRouter: Subscription;\r\n appInjector: Injector;\r\n Status = ShipmentDetailStatus;\r\n private subscriptionExpedicion: Subscription;\r\n private rutaActual: Array;\r\n private disposed = false;\r\n titleWarning: string;\r\n textWarning: string;\r\n mostrarAvisoPortugal: boolean;\r\n constructor(\r\n private cdr: ChangeDetectorRef,\r\n private modalService: BsModalService,\r\n private vcr: ViewContainerRef,\r\n private router: Router,\r\n private route: ActivatedRoute,\r\n private scroll: ScrollToService,\r\n private langService: LanguageService,\r\n private configService: AppConfigService\r\n ) {\r\n super();\r\n this.appInjector = appInjector;\r\n\r\n }\r\n @ViewChild('tabs', { static: false }) tabs: TabsetComponent;\r\n\r\n\r\n private expedicionIniciada: Expedition;\r\n\r\n private async iniciar() {\r\n if (this.disposed) {\r\n return;\r\n }\r\n this.expedicionIniciada = this.expedition;\r\n //enviamos la situación de la expedición a google analytics\r\n this.sesion.enviarEventoGoogleAnalitics(CategoriasGoogleAnalytics.ConsultaExpedicion, 'Status', ShipmentDetailStatus[this.expedition.Status]);\r\n\r\n const changesAvailable = new Array();\r\n\r\n const indiceFichaSeleccionadaCabecera = (this.expedition.ProductType == 'B2C' ? 0 : 1);\r\n if (indiceFichaSeleccionadaCabecera != this.sesion.indiceFichaSeleccionadaCabecera$.getValue()) {\r\n this.sesion.indiceFichaSeleccionadaCabecera$.next(indiceFichaSeleccionadaCabecera);\r\n }\r\n\r\n if (this.expedition.ProductType === 'B2C') {\r\n if (this.expedition.ServicePointDelivery) {\r\n changesAvailable.push(new ChangeServicePoint());\r\n }\r\n if (this.expedition.ChangeDeliveryDay) {\r\n changesAvailable.push(new DayChange());\r\n }\r\n if (this.expedition.NeighborDelivery) {\r\n changesAvailable.push(new NeighborChange());\r\n }\r\n if (this.expedition.NewAddressDelivery) {\r\n changesAvailable.push(new NewAddressChange());\r\n }\r\n } else if (this.expedition.Status === ShipmentDetailStatus.RetryDelivery) {\r\n changesAvailable.push(new FacilityPickupSolutionDHL());\r\n changesAvailable.push(new AlternativeAddressSolution());\r\n changesAvailable.push(new DateChangeSolution());\r\n changesAvailable.push(new SolutionSenderRecipient());\r\n }\r\n\r\n\r\n changesAvailable.forEach(change => {\r\n change.currentLanguagePath = paths[change.route][this.sesion.idioma$.getValue()];\r\n });\r\n\r\n\r\n this.sesion.changesAvailable = changesAvailable;\r\n this.showTracking = this.expedition && !this.expedition.CanBeModified;\r\n if (this.expedition.Status == ShipmentDetailStatus.RetryDelivery && !this.sesion.tipoCambioActivo && changesAvailable.length > 0) {\r\n await this.mostrarModalReintentoEntrega();\r\n }\r\n\r\n this.changesAvailable = changesAvailable;\r\n this.cdr.detectChanges();\r\n await this.scrollCambioActivo();\r\n\r\n\r\n\r\n if (this.changesAvailable.length > 0 && (this.sesion.tipoCambioActivo === ChangeType.Ninguno)) {\r\n this.changesAvailable[0].initialized = true;\r\n this.sesion.tipoCambioActivo = this.changesAvailable[0].type;\r\n this.router.navigate(this.routeChange(this.changesAvailable[0]), { replaceUrl: true, queryParamsHandling: 'merge' });\r\n }\r\n this.cdr.detectChanges();\r\n\r\n\r\n //si el envio ya ha sido modificado\r\n if (this.expedition.Modified && this.changesAvailable.length == 0 && this.expedition.Status != ShipmentDetailStatus.Delivered && this.expedition.Status != ShipmentDetailStatus.Returned && this.expedition.Status != ShipmentDetailStatus.InServicePoint) {\r\n //mostramos el modal indicando que no puede hacer cambios\r\n //el texto dependerá del motivo de si ha sido por modificación del usuario o es que no tiene cambios disponibles\r\n this.modalActivo = MessageModalComponent.show(this.langService.instant('ModifyDelivery.ModifiedDeliveryInfo'));\r\n } else if (this.expedition.DeliveredInNeighbor) {\r\n //mostramos el modal indicando que se ha hecho la entrega en casa del vecino\r\n this.mostrarMensajeVecino();\r\n }\r\n\r\n //si solo se puede hacer el cambio de vecino, lo indicamos en un modal\r\n if (this.expedition.Status == ShipmentDetailStatus.Assigned && this.expedition.NeighborDelivery) {\r\n this.modalActivo = MessageModalComponent.show(this.langService.instant('ModifyDelivery.OnlyNeighbourInfo'), this.langService.instant('ModifyDelivery.ModifyInfo'));\r\n }\r\n\r\n //si esta en servicepoint, este viene con la expedición y queden dias\r\n if (this.expedition.Status == ShipmentDetailStatus.InServicePoint && this.expedition.ServicePoint && this.expedition.DaysInServicePoint !== null && this.expedition.DaysInServicePoint > 0) {\r\n this.mostrarMensajeEnServicePoint();\r\n }\r\n\r\n }\r\n\r\n private async scrollCambioActivo() {\r\n if (this.sesion.tipoCambioActivo) {\r\n\r\n if (!this.changesAvailable || !this.tabs) {\r\n return;\r\n }\r\n\r\n var index = this.changesAvailable.findIndex(change => change.type == this.sesion.tipoCambioActivo);\r\n if(index == -1){\r\n index = this.changesAvailable.findIndex(change => change.type == 1);\r\n }\r\n const destino = (this.tabs.tabs[index].elementRef.nativeElement as HTMLElement).parentElement.parentElement;\r\n const config: ScrollToConfigOptions = {\r\n target: destino,\r\n duration: 500,\r\n easing: 'easeOutElastic'\r\n };\r\n try {\r\n await this.scroll.scrollTo(config).toPromise();\r\n } catch (err) {\r\n console.error(err);\r\n }\r\n }\r\n }\r\n\r\n StringToDate(date: string): Date {\r\n if (!date) {\r\n return null;\r\n }\r\n const partes = date.split('/');\r\n return new Date(+partes[2], +partes[1] - 1, +partes[0]);\r\n }\r\n\r\n async ngOnInit() {\r\n this.addSubscription(this.langService.onChangeLanguage.subscribe(()=> {\r\n this.cdr.detectChanges()\r\n console.log('cl')\r\n }));\r\n \r\n if (this.configService.appConfiguration.warning.startDateWarning && this.configService.appConfiguration.warning.endDateWarning) {\r\n const fechaInicio = this.StringToDate(this.configService.appConfiguration.warning.startDateWarning);\r\n const fechaFin = this.StringToDate(this.configService.appConfiguration.warning.endDateWarning);\r\n const currentDate = new Date();\r\n if (fechaInicio && fechaFin) {\r\n fechaFin.setHours(23, 59, 59, 999);\r\n if (currentDate >= fechaInicio && currentDate <= fechaFin) {\r\n const language = this.langService.getCurrentLanguage();\r\n this.titleWarning = this.configService.appConfiguration.warning.titleWarning[language];\r\n this.textWarning = this.configService.appConfiguration.warning.textWarning[language];\r\n }\r\n }\r\n }\r\n this.expedition = this.sesion.expedition$.getValue();\r\n if (this.expedition && this.expedicionIniciada !== this.expedition) {\r\n await this.iniciar();\r\n }\r\n this.subscriptionExpedicion = this.sesion.expedition$.subscribe(expedition => {\r\n if (expedition) {\r\n this.expedition = expedition;\r\n let codigo: number;\r\n if (expedition.DestinationCode) {\r\n codigo = parseInt(expedition.DestinationCode);\r\n if (codigo == 71 || codigo == 73 || codigo == 74) this.mostrarAvisoPortugal = true;\r\n }\r\n if (this.expedition.Language === this.sesion.idioma$.getValue() && !this.iniciado) {\r\n this.iniciar();\r\n }\r\n }\r\n });\r\n\r\n this.subscriptionEventosRouter = this.router.events.pipe(\r\n filter(event => event instanceof NavigationEnd)\r\n ).subscribe((event: NavigationEnd) => {\r\n let hijo = this.route.snapshot.firstChild;\r\n while (hijo) {\r\n if (hijo.data.tipoCambio) {\r\n this.sesion.tipoCambioActivo = hijo.data.tipoCambio;\r\n this.cdr.detectChanges();\r\n }\r\n hijo = hijo.firstChild;\r\n }\r\n });\r\n }\r\n get iniciado(): boolean {\r\n return !(this.expedicionIniciada === null || this.expedition === null || this.expedition.TLGNumber !== this.expedicionIniciada.TLGNumber);\r\n }\r\n ngOnDestroy(): void {\r\n this.disposed = true;\r\n if (this.subscriptionExpedicion) {\r\n this.subscriptionExpedicion.unsubscribe();\r\n }\r\n if (this.subscriptionEventosRouter) {\r\n this.subscriptionEventosRouter.unsubscribe();\r\n }\r\n this.cdr.detach();\r\n if (this.modalActivo) {\r\n this.modalActivo.hide();\r\n }\r\n }\r\n\r\n expedition: Expedition;\r\n\r\n //visibilidad de la Date Prevista de Entrega\r\n get mostrarFechaPrevistaEntrega(): boolean {\r\n return this.expedition && this.expedition.DeliveryDate && this.expedition.Status != ShipmentDetailStatus.InServicePoint && this.expedition.Status != ShipmentDetailStatus.Delivered;\r\n }\r\n //visibilidad de la Date de Entrega\r\n get mostrarFechaEntrega(): boolean {\r\n return this.expedition && this.expedition.DeliveryDate && this.expedition.Status == ShipmentDetailStatus.Delivered;\r\n }\r\n //visibilidad de la situación InServicePoint\r\n get mostrarSituacionEnServicePoint(): boolean {\r\n return this.expedition && (this.expedition.Status == ShipmentDetailStatus.InServicePoint || (this.expedition.DeliveredInServicePoint && this.expedition.Status != ShipmentDetailStatus.RetryDelivery));\r\n }\r\n\r\n //visibilidad de la situación Returned\r\n get mostrarSituacionDevuelto(): boolean {\r\n return this.expedition && this.expedition.Status == ShipmentDetailStatus.Returned;\r\n }\r\n\r\n //visibilidad de la situación RetryDelivery\r\n get mostrarSituacionReintentoEntrega(): boolean {\r\n return this.expedition && this.expedition.Status == ShipmentDetailStatus.RetryDelivery;\r\n }\r\n\r\n //imagenes de situación\r\n private imagenSituacion(situacion: ShipmentDetailStatus, nombreImagen): string {\r\n if (!this.expedition) {\r\n return null;\r\n }\r\n if (this.expedition.Status >= situacion) {\r\n nombreImagen = nombreImagen + 'Activo';\r\n }\r\n return this.directoryImages + '/assets/images/' + nombreImagen + '.jpg';\r\n }\r\n\r\n get imagenInformacionRecibida(): string {\r\n return this.imagenSituacion(ShipmentDetailStatus.InformationReceived, 'envioPreparado2');\r\n }\r\n\r\n get imagenEnDelegacionDestino(): string {\r\n return this.imagenSituacion(ShipmentDetailStatus.InDestinationAgency, 'envioPreparado2');\r\n }\r\n\r\n get imagenEnTransito(): string {\r\n return this.imagenSituacion(ShipmentDetailStatus.InTransit, 'envioRepartidores');\r\n }\r\n\r\n get imagenAsignado(): string {\r\n return this.imagenSituacion(ShipmentDetailStatus.Assigned, 'envioReparto2');\r\n }\r\n\r\n get imagenEnServicePoint(): string {\r\n return this.imagenSituacion(ShipmentDetailStatus.InServicePoint, 'envioServicepoint');\r\n }\r\n\r\n get imagenReintentoEntrega(): string {\r\n return this.imagenSituacion(ShipmentDetailStatus.RetryDelivery, 'reintentoEntrega');\r\n }\r\n\r\n get imagenDevuelto(): string {\r\n return this.imagenSituacion(ShipmentDetailStatus.Returned, 'envioNoEntregado');\r\n }\r\n\r\n get imagenRepartido(): string {\r\n return this.imagenSituacion(ShipmentDetailStatus.Delivered, 'envioEntregado2');\r\n }\r\n\r\n showTracking = false;\r\n\r\n changesAvailable: Array;\r\n get tipoCambioActivo(): ChangeType {\r\n return this.sesion.tipoCambioActivo;\r\n }\r\n\r\n private modalActivo: BsModalRef;\r\n mostrarModalReintentoEntrega(): Promise {\r\n return new Promise((resolve, reject) => {\r\n const onHidden: Subscription = this.modalService.onHidden.subscribe(async () => {\r\n onHidden.unsubscribe();\r\n if (this.disposed) {\r\n return;\r\n }\r\n\r\n if (modal.content.selection !== ChangeType.Ninguno) {\r\n this.sesion.tipoCambioActivo = modal.content.selection;\r\n let change: Change;\r\n this.sesion.changesAvailable.forEach(disponible => {\r\n if (disponible.type == this.sesion.tipoCambioActivo) {\r\n change = disponible;\r\n }\r\n });\r\n if (change) {\r\n this.router.navigate(this.routeChange(change), { replaceUrl: true, queryParamsHandling: 'merge' });\r\n }\r\n }\r\n\r\n this.cdr.detectChanges();\r\n await this.scrollCambioActivo();\r\n resolve();\r\n });\r\n\r\n const modal = this.modalService.show(DeliveryRetryModalComponent);\r\n\r\n this.modalActivo = modal;\r\n });\r\n }\r\n\r\n mostrarMensajeVecino() {\r\n this.modalActivo = MessageModalComponent.show(this.langService.instant('ModifyDelivery.DeliveredNeighbourInfo'));\r\n }\r\n\r\n mostrarMensajeEnServicePoint() {\r\n if (this.expedition.Status == ShipmentDetailStatus.InServicePoint && this.expedition.DaysInServicePoint && this.expedition.DaysInServicePoint > 0) {\r\n this.modalActivo = DetailServicePointModalComponent.show(this.expedition.ServicePoint, MessageAtServicePointComponent, this.vcr.injector);\r\n } else {\r\n this.modalActivo = DetailServicePointModalComponent.show(this.expedition.ServicePoint);\r\n }\r\n }\r\n\r\n get situacionesVisibles(): number {\r\n return (this.mostrarSituacionEnServicePoint || this.mostrarSituacionReintentoEntrega ? 6 : 5);\r\n }\r\n\r\n selectCambio(change: Change) {\r\n if (!this.expedition || change.type === this.tipoCambioActivo) {\r\n return;\r\n }\r\n this.router.navigate(this.routeChange(change), { queryParamsHandling: 'merge' });\r\n }\r\n private routeChange(change: Change): Array {\r\n let hijo = this.route.root.snapshot.firstChild;\r\n const route = new Array();\r\n let encontradaParteCambio = false;\r\n while (hijo) {\r\n if (hijo.data['tipoCambio'] && !encontradaParteCambio) {\r\n encontradaParteCambio = true;\r\n if (hijo.url.length > 1) {\r\n for (let i = 0; i < hijo.url.length - 1; i++) {\r\n route.push(hijo.url[i].path);\r\n }\r\n }\r\n route.push(change.currentLanguagePath);\r\n } else {\r\n hijo.url.forEach(url => {\r\n route.push(url.path);\r\n });\r\n }\r\n hijo = hijo.firstChild;\r\n }\r\n if (!encontradaParteCambio) {\r\n route.push(change.currentLanguagePath);\r\n }\r\n return route;\r\n }\r\n get mostrarBotonComprobante(): boolean {\r\n return this.expedition &&\r\n this.expedition.Status == ShipmentDetailStatus.Delivered &&\r\n this.expedition.EPOD;\r\n }\r\n mostrarConformeEntrega() {\r\n this.modalActivo = this.modalService.show(ConfirmProofDeliveryModalComponent);\r\n }\r\n\r\n get textoSituacionActual(): string {\r\n switch (this.expedition?.Status) {\r\n case ShipmentDetailStatus.InformationReceived:\r\n return this.langService.instant('Shared.ProgressReadyAtDHL') + ' ' + this.expedition.Origin;\r\n case ShipmentDetailStatus.InTransit:\r\n return this.langService.instant('Shared.ProgressInTransit');\r\n case ShipmentDetailStatus.InDestinationAgency:\r\n return this.langService.instant('Shared.ProgressReadyAtDHL') + ' ' + this.expedition.Destination;\r\n case ShipmentDetailStatus.Assigned:\r\n return this.langService.instant('Shared.ProgressOutForDelivery');\r\n case ShipmentDetailStatus.InServicePoint:\r\n return this.langService.instant('Shared.ProgressPickUpServicePoint');\r\n case ShipmentDetailStatus.RetryDelivery:\r\n return this.langService.instant('Shared.ProgressRetryDelivery');\r\n case ShipmentDetailStatus.Delivered:\r\n return this.langService.instant('Shared.ProgressDelivered');\r\n }\r\n }\r\n\r\n clickSeguimiento() {\r\n this.showTracking = !this.showTracking;\r\n if (!this.sentEventDetails) {\r\n this.sesion.enviarEventoGoogleAnalitics(CategoriasGoogleAnalytics.ConsultaExpedicion, 'Más Información');\r\n this.sentEventDetails = true;\r\n }\r\n }\r\n private sentEventDetails = false;\r\n clickBanner() {\r\n let idioma = this.sesion.idioma$.value;\r\n if (idioma === 'en') {\r\n idioma = 'pt';\r\n }\r\n window.open(`https://enviar.${idioma}.parcel.dhl.com/shipping?utm_source=recipientServices${idioma}&utm_medium=TandT&utm_campaign=Banner_TandT`, '_blank');\r\n }\r\n get rutaImagenBanner(): string {\r\n return `${this.directoryImages}/assets/images/gif_${this.sesion.idioma$.value}.gif`;\r\n }\r\n get rutaImagenBannerInferior(): string {\r\n return `${this.directoryImages}/assets/images/gif_m_${this.sesion.idioma$.value}.jpg`;\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { ActivatedRouteSnapshot, Router, RouterStateSnapshot } from '@angular/router';\r\nimport { ModalOptions } from 'ngx-bootstrap/modal';\r\nimport { Observable, Subscription } from 'rxjs';\r\nimport { filter, tap } from 'rxjs/operators';\r\nimport { Expedition } from '../../comun/recipient-services/expedition';\r\nimport { ChangeType } from '../../enums/change-type.enum';\r\nimport { ShipmentDetailStatus } from '../../enums/shipmentdetail-status.enum';\r\nimport { ErrorModalComponent } from '../../error-modal/error-modal.component';\r\nimport { ExceptionHttp } from '../../exception-http';\r\nimport { MultiplePiecesModalComponent } from '../../multiple-pieces-modal/multiple-pieces-modal.component';\r\nimport { NumberConflictModalComponent } from '../../number-conflict-modal/number-conflict-modal.component';\r\nimport { ExpeditionsService } from '../../services/expeditions.service';\r\nimport { LanguageService } from '../../services/language.service';\r\nimport { CategoriasGoogleAnalytics, SesionService, paths } from '../../services/sesion.service';\r\n\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class RouteProtectionSave {\r\n constructor(private sesion: SesionService,\r\n private service: ExpeditionsService,\r\n\r\n private router: Router,\r\n private langService: LanguageService) {\r\n }\r\n canActivate(\r\n next: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot): Observable | Promise | boolean {\r\n let languageSubscription: Subscription;\r\n return new Observable(suscriptor => {\r\n languageSubscription = this.langService.language$\r\n .pipe(filter(language => language !== undefined))\r\n .subscribe(language => {\r\n\r\n const parameters = next.paramMap;\r\n if (next.queryParams && next.queryParams['codigo']) {\r\n suscriptor.next(false);\r\n suscriptor.complete();\r\n if (next.queryParams['app']) {\r\n const app = next.queryParams['app'];\r\n this.sesion.app = app;\r\n this.sesion.enviarEventoGoogleAnalitics(CategoriasGoogleAnalytics.ConsultaExpedicion, 'Acceso');\r\n }\r\n this.router.navigate([paths.modificarEnvio[language], next.queryParams['codigo']]);\r\n return;\r\n }\r\n\r\n if (parameters.has('number-expedition') || parameters.has('id')) {\r\n let llamadaAPI: Observable;\r\n if (parameters.has('number-expedition')) {\r\n const expeditionNumber: string = parameters.get('number-expedition');\r\n const expedition = this.sesion.expedition$.getValue();\r\n if (expedition\r\n && this.sesion.numeroExpedicionBuscado\r\n && this.sesion.numeroExpedicionBuscado.toLowerCase() == expeditionNumber.toLowerCase()\r\n && this.sesion.idioma$.getValue() == expedition.Language) {\r\n if (this.sesion.modification && this.sesion.modification.TlgExpeditionNumber == expedition.TLGNumber) {\r\n suscriptor.next(false);\r\n suscriptor.complete();\r\n this.router.navigate([paths.home[language]]);\r\n return;\r\n } else {\r\n suscriptor.next(true);\r\n suscriptor.complete();\r\n return;\r\n }\r\n }\r\n this.sesion.numeroExpedicionBuscado = expeditionNumber;\r\n const zipCode: string = parameters.get('zip-code');\r\n llamadaAPI = this.service.search(expeditionNumber, zipCode, next.queryParams);\r\n } else if (parameters.has('id')) {\r\n\r\n this.sesion.numeroExpedicionBuscado = parameters.get('id');\r\n if (this.sesion.expedition$.getValue() && this.sesion.expedition$.getValue().ExpeditionNumber === parameters.get('id') && language == this.sesion.expedition$.getValue().Language) {\r\n suscriptor.next(true);\r\n suscriptor.complete();\r\n return;\r\n }\r\n llamadaAPI = this.service.searchById(parameters.get('id'));\r\n }\r\n\r\n const subscription = llamadaAPI.subscribe(expedition => {\r\n subscription.unsubscribe();\r\n this.sesion.expedition$.next(expedition);\r\n if (this.sesion.tipoCambioActivo == ChangeType.Ninguno && next.data['tipoCambioTLG']) {\r\n this.sesion.app = 'email';\r\n this.sesion.productType = expedition.ProductType;\r\n this.sesion.incidence = expedition.LastIncidence;\r\n this.sesion.numeroExpedicionBuscado = expedition.ExpeditionNumber;\r\n const tipoCambio = next.data['tipoCambio'];\r\n const changesAvailable = new Array()\r\n if (expedition.ProductType === 'B2C') {\r\n if (expedition.ServicePointDelivery) {\r\n changesAvailable.push(ChangeType.ServicePointDelivery);\r\n }\r\n if (expedition.ChangeDeliveryDay) {\r\n changesAvailable.push(ChangeType.DeliveryDay);\r\n }\r\n if (expedition.NeighborDelivery) {\r\n changesAvailable.push(ChangeType.NeighborDelivery);\r\n }\r\n if (expedition.NewAddressDelivery) {\r\n changesAvailable.push(ChangeType.GiveAnotherOption);\r\n }\r\n } else if (expedition.Status === ShipmentDetailStatus.RetryDelivery) {\r\n changesAvailable.push(ChangeType.FacilityPickupSolutionDHL);\r\n changesAvailable.push(ChangeType.SolutionSenderRecipient);\r\n }\r\n if (changesAvailable.indexOf(tipoCambio) !== -1) {\r\n this.sesion.tipoCambioActivo = tipoCambio;\r\n }\r\n this.router.navigate([paths.modificarEnvio[language], expedition.ExpeditionNumber, paths[next.data['tipoCambioTLG']][language]], { queryParamsHandling: 'merge' })\r\n this.sesion.enviarEventoGoogleAnalitics(CategoriasGoogleAnalytics.ConsultaExpedicion, 'Acceso', next.data['tipoCambioTLG']);\r\n suscriptor.next(false);\r\n suscriptor.complete();\r\n return;\r\n }\r\n\r\n if (next.firstChild) {\r\n this.sesion.tipoCambioActivo = next.firstChild.data['tipoCambio'] ? next.firstChild.data['tipoCambio'] : ChangeType.Ninguno;\r\n } else {\r\n this.sesion.tipoCambioActivo = ChangeType.Ninguno;\r\n }\r\n\r\n suscriptor.next(true);\r\n suscriptor.complete();\r\n\r\n if (expedition) {\r\n this.sesion.productType = expedition.ProductType;\r\n } else {\r\n this.router.navigate([paths.noData[language]]);\r\n }\r\n\r\n return;\r\n }, async err => {\r\n const mistakeHttp = (err as ExceptionHttp);\r\n if (mistakeHttp && mistakeHttp.status == 409) {\r\n suscriptor.next(false);\r\n suscriptor.complete();\r\n\r\n try {\r\n let bultos = await this.sesion.searchExpeditionByReference(this.sesion.numeroExpedicionBuscado);\r\n if (bultos && bultos.length > 0) {\r\n let modalOptions = >{\r\n initialState: {\r\n bultos: bultos\r\n }\r\n };\r\n MultiplePiecesModalComponent.show(modalOptions);\r\n } else {\r\n NumberConflictModalComponent.show();\r\n }\r\n } catch (err) {\r\n ErrorModalComponent.show(err);\r\n }\r\n\r\n } else {\r\n const offline = mistakeHttp && mistakeHttp.status === 503;\r\n suscriptor.next(false);\r\n suscriptor.complete();\r\n if (offline) {\r\n ErrorModalComponent.show(err);\r\n this.router.navigate([paths.home[language]]);\r\n }\r\n\r\n }\r\n return;\r\n });\r\n return;\r\n }\r\n suscriptor.next(false);\r\n suscriptor.complete();\r\n });\r\n }).pipe(tap(() => languageSubscription?.unsubscribe()));\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { RouterModule, Routes } from '@angular/router';\r\nimport { FormsModule } from '@angular/forms';\r\n\r\nimport { ComunModule } from '../comun.module';\r\nimport { ModalModule } from 'ngx-bootstrap/modal';\r\nimport { CollapseModule } from 'ngx-bootstrap/collapse';\r\nimport { TabsModule } from 'ngx-bootstrap/tabs';\r\nimport { ModifyShippingComponent } from './modify-shipping.component';\r\n\r\nimport { RouteProtectionSave } from './guards/route-protection.guard';\r\nimport { ConfirmChangeModalComponent } from './confirm-change-modal/confirm-change-modal.component';\r\nimport { DeliveryRetryModalComponent } from './delivery-retry-modal/delivery-retry-modal.component';\r\nimport { MessageAtServicePointComponent } from './message-at-service-point/message-at-service-point.component';\r\nimport { ChangeType } from '../enums/change-type.enum';\r\nimport { ChangeRouterOutletComponent } from '../submodules/b2c/change-router-outlet/change-router-outlet.component';\r\nimport { paths } from '../services/sesion.service';\r\nimport { DaySelectionComponent } from './day-selection/day-selection.component';\r\nimport { ConfirmSolutionModalComponent } from './confirm-solution-modal/confirm-solution-modal.component';\r\nimport { NgxMaskDirective } from 'ngx-mask';\r\n\r\nimport { ConfirmProofDeliveryModalComponent } from './confirm-proof-delivery-modal/confirm-proof-delivery-modal.component';\r\nimport { TooltipModule } from 'ngx-bootstrap/tooltip';\r\nimport { ScrollToModule } from '@nicky-lenaers/ngx-scroll-to';\r\n\r\nconst rutasCambios: Routes = [\r\n {\r\n path: paths.entregaVecino.es,\r\n loadChildren: () => import('../submodules/b2c/neighbor-change/neighbor-change.module').then(m => m.NeighborChangeModule),\r\n data: { tipoCambio: ChangeType.NeighborDelivery }\r\n },\r\n {\r\n path: paths.entregaVecino.en,\r\n loadChildren: () => import('../submodules/b2c/neighbor-change/neighbor-change.module').then(m => m.NeighborChangeModule),\r\n data: { tipoCambio: ChangeType.NeighborDelivery }\r\n },\r\n {\r\n path: paths.entregaVecino.pt,\r\n loadChildren: () => import('../submodules/b2c/neighbor-change/neighbor-change.module').then(m => m.NeighborChangeModule),\r\n data: { tipoCambio: ChangeType.NeighborDelivery }\r\n },\r\n {\r\n path: paths.entregaServicePoint.es,\r\n loadChildren: () => import('../submodules/b2c/change-service-point/change-service-point.module').then(m => m.ChangeServicePointModule),\r\n data: { tipoCambio: ChangeType.ServicePointDelivery }\r\n },\r\n {\r\n path: paths.entregaServicePoint.en,\r\n loadChildren: () => import('../submodules/b2c/change-service-point/change-service-point.module').then(m => m.ChangeServicePointModule),\r\n data: { tipoCambio: ChangeType.ServicePointDelivery }\r\n },\r\n {\r\n path: paths.entregaServicePoint.pt,\r\n loadChildren: () => import('../submodules/b2c/change-service-point/change-service-point.module').then(m => m.ChangeServicePointModule),\r\n data: { tipoCambio: ChangeType.ServicePointDelivery }\r\n },\r\n {\r\n path: paths.changeDay.es,\r\n loadChildren: () => import('./day-change/day-change.module').then(m => m.DayChangeModule),\r\n data: { tipoCambio: ChangeType.DeliveryDay }\r\n },\r\n {\r\n path: paths.changeDay.en,\r\n loadChildren: () => import('./day-change/day-change.module').then(m => m.DayChangeModule),\r\n data: { tipoCambio: ChangeType.DeliveryDay }\r\n },\r\n {\r\n path: paths.changeDay.pt,\r\n loadChildren: () => import('./day-change/day-change.module').then(m => m.DayChangeModule),\r\n data: { tipoCambio: ChangeType.DeliveryDay }\r\n },\r\n {\r\n path: paths.alternativeDirectionSolution.es,\r\n loadChildren: () => import('../submodules/b2b/alternative-address-solution/alternative-address-solution.module').then(m => m.AlternativeAddressSolutionModule),\r\n data: { tipoCambio: ChangeType.AlternativeAddressSolution }\r\n },\r\n {\r\n path: paths.alternativeDirectionSolution.en,\r\n loadChildren: () => import('../submodules/b2b/alternative-address-solution/alternative-address-solution.module').then(m => m.AlternativeAddressSolutionModule),\r\n data: { tipoCambio: ChangeType.AlternativeAddressSolution }\r\n },\r\n {\r\n path: paths.alternativeDirectionSolution.pt,\r\n loadChildren: () => import('../submodules/b2b/alternative-address-solution/alternative-address-solution.module').then(m => m.AlternativeAddressSolutionModule),\r\n data: { tipoCambio: ChangeType.AlternativeAddressSolution }\r\n },\r\n {\r\n path: paths.dateChangeSolution.es,\r\n loadChildren: () => import('../submodules/b2b/change-date/change-date.module').then(m => m.ChangeDateModule),\r\n data: { tipoCambio: ChangeType.DeliveryDate }\r\n },\r\n {\r\n path: paths.dateChangeSolution.en,\r\n loadChildren: () => import('../submodules/b2b/change-date/change-date.module').then(m => m.ChangeDateModule),\r\n data: { tipoCambio: ChangeType.DeliveryDate }\r\n },\r\n {\r\n path: paths.dateChangeSolution.pt,\r\n loadChildren: () => import('../submodules/b2b/change-date/change-date.module').then(m => m.ChangeDateModule),\r\n data: { tipoCambio: ChangeType.DeliveryDate }\r\n },\r\n {\r\n path: paths.solutionPickUpDHLFacilities.es,\r\n loadChildren: () => import('../submodules/b2b/solution-pick-up-DHL-facilities/solution-pick-up-DHL-facilities.module').then(m => m.SolucionRecogerInstalacionesDHLModule),\r\n data: { tipoCambio: ChangeType.FacilityPickupSolutionDHL }\r\n },\r\n {\r\n path: paths.solutionPickUpDHLFacilities.en,\r\n loadChildren: () => import('../submodules/b2b/solution-pick-up-DHL-facilities/solution-pick-up-DHL-facilities.module').then(m => m.SolucionRecogerInstalacionesDHLModule),\r\n data: { tipoCambio: ChangeType.FacilityPickupSolutionDHL }\r\n },\r\n {\r\n path: paths.solutionPickUpDHLFacilities.pt,\r\n loadChildren: () => import('../submodules/b2b/solution-pick-up-DHL-facilities/solution-pick-up-DHL-facilities.module').then(m => m.SolucionRecogerInstalacionesDHLModule),\r\n data: { tipoCambio: ChangeType.FacilityPickupSolutionDHL }\r\n },\r\n {\r\n path: paths.senderRecipientSolution.es,\r\n loadChildren: () => import('../submodules/b2b/solution-sender-recipient/solution-sender-recipient.module').then(m => m.SolucionRemitenteDestinatarioModule),\r\n data: { tipoCambio: ChangeType.SolutionSenderRecipient }\r\n },\r\n {\r\n path: paths.senderRecipientSolution.en,\r\n loadChildren: () => import('../submodules/b2b/solution-sender-recipient/solution-sender-recipient.module').then(m => m.SolucionRemitenteDestinatarioModule),\r\n data: { tipoCambio: ChangeType.SolutionSenderRecipient }\r\n },\r\n {\r\n path: paths.senderRecipientSolution.pt,\r\n loadChildren: () => import('../submodules/b2b/solution-sender-recipient/solution-sender-recipient.module').then(m => m.SolucionRemitenteDestinatarioModule),\r\n data: { tipoCambio: ChangeType.SolutionSenderRecipient }\r\n },\r\n {\r\n path: paths.newAddress.es,\r\n loadChildren: () => import('../submodules/b2c/new-address-change/new-address-change.module').then(m => m.NewAddressChangeModule),\r\n data: { tipoCambio: ChangeType.GiveAnotherOption }\r\n },\r\n {\r\n path: paths.newAddress.en,\r\n loadChildren: () => import('../submodules/b2c/new-address-change/new-address-change.module').then(m => m.NewAddressChangeModule),\r\n data: { tipoCambio: ChangeType.GiveAnotherOption }\r\n },\r\n {\r\n path: paths.newAddress.pt,\r\n loadChildren: () => import('../submodules/b2c/new-address-change/new-address-change.module').then(m => m.NewAddressChangeModule),\r\n data: { tipoCambio: ChangeType.GiveAnotherOption }\r\n }\r\n];\r\n\r\nconst routes: Routes = [\r\n {\r\n path: ':number-expedition',\r\n component: ModifyShippingComponent,\r\n canActivate: [RouteProtectionSave],\r\n children: rutasCambios\r\n },\r\n {\r\n path: ':id/SPO',\r\n component: ModifyShippingComponent,\r\n canActivate: [RouteProtectionSave],\r\n data: { tipoCambioTLG: 'entregaServicePoint', tipoCambio: ChangeType.ServicePointDelivery }\r\n },\r\n {\r\n path: ':id/DIA',\r\n component: ModifyShippingComponent,\r\n canActivate: [RouteProtectionSave],\r\n data: { tipoCambioTLG: 'changeDay', tipoCambio: ChangeType.DeliveryDay },\r\n },\r\n {\r\n path: ':id/VEC',\r\n component: ModifyShippingComponent,\r\n canActivate: [RouteProtectionSave],\r\n data: { tipoCambioTLG: 'entregaVecino', tipoCambio: ChangeType.NeighborDelivery }\r\n },\r\n {\r\n path: ':id/DIR',\r\n component: ModifyShippingComponent,\r\n canActivate: [RouteProtectionSave],\r\n data: { tipoCambioTLG: 'newAddress', tipoCambio: ChangeType.GiveAnotherOption }\r\n },\r\n {\r\n path: ':number-expedition/:zip-code',\r\n component: ModifyShippingComponent,\r\n canActivate: [RouteProtectionSave],\r\n children: rutasCambios\r\n }\r\n];\r\n//console.log(routes);\r\nexport const routing = RouterModule.forChild(routes);\r\n\r\n@NgModule({\r\n imports: [\r\n FormsModule,\r\n ComunModule,\r\n ModalModule,\r\n TabsModule.forRoot(),\r\n CollapseModule,\r\n routing,\r\n NgxMaskDirective\r\n,\r\n TooltipModule,\r\n ScrollToModule\r\n ],\r\n declarations: [\r\n ModifyShippingComponent,\r\n ConfirmChangeModalComponent,\r\n DeliveryRetryModalComponent,\r\n MessageAtServicePointComponent,\r\n ChangeRouterOutletComponent,\r\n DaySelectionComponent,\r\n ConfirmSolutionModalComponent,\r\n ConfirmProofDeliveryModalComponent\r\n ],\r\n exports: [\r\n MessageAtServicePointComponent,\r\n DaySelectionComponent\r\n ]\r\n})\r\nexport class ModifyShippingModule { }\r\n"],"x_google_ignoreList":[10]}