1"use strict";(self.webpackChunkvisitpesaro=self.webpackChunkvisitpesaro||[]).push([[7795],{7795(S,f,t){t.d(f,{RouteFromOldComponentModule:()=>X});var y=t(2881),g=t(5623),c=t(9417),C=t(9557),U=t(1698),m=t(5156),u=t(259),$=t(1413),d=t(6977),n=t(1360),F=t(6486),x=t(9640),h=t(8072);let I=(()=>{class s{constructor(e,o,i,r){this.turismoWebApiService=e,this.store$=o,this.route=i,this.router=r,this.destroy$=new $.B,this.store$.select(U.Ev).pipe((0,d.Q)(this.destroy$)).subscribe(a=>this.language=a)}ngOnInit(){this.route.queryParams.pipe((0,d.Q)(this.destroy$)).subscribe(e=>{const o=e.id,i=e.type;o&&i&&this.translateUrl({id:o,type:i}).then(r=>{this.router.navigateByUrl(r)})})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}translateUrl(e){const o=this.language,{id:i,type:r}=e;let a,l;return"event"===r||"eventItem"===r||"experience"===r?(a=u.S6.Events,l=m.W1):(a=u.S6.Poi,l=m.vB),this.turismoWebApiService.getContentId({importId:i,contentType:a,language:o}).toPromise().then(p=>"/"+l+"/"+p.id+"/"+p.name)}static{this.\u0275fac=function(o){return new(o||s)(n.rXU(F.D),n.rXU(x.il),n.rXU(h.nX),n.rXU(h.Ix))}}static{this.\u0275cmp=n.VBU({type:s,selectors:[["turismo-route-from-old"]],standalone:!1,decls:0,vars:0,template:function(o,i){},encapsulation:2})}}return s})();var v=t(9870);const O=[{path:"",component:I}];let D=(()=>{class s{static{this.\u0275fac=function(o){return new(o||s)}}static{this.\u0275mod=n.$C({type:s})}static{this.\u0275inj=n.G2t({imports:[v.iI.forChild(O),v.iI]})}}return s})();var R=t(4265);let X=(()=>{class s{static{this.\u0275fac=function(o){return new(o||s)}}static{this.\u0275mod=n.$C({type:s})}static{this.\u0275inj=n.G2t({imports:[y.MD,g.G,c.YN,D,C.h,c.X1,R.A]})}}return s})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.