PageSourceSearch

https://www.ticinopass.ch/_nuxt/_slug_.8f6_9NzN.js

js ticinopass.ch collected 2026-10-08 07:30:07 UTC 9,089 bytes, 7 lines download raw bytes

1import{L as D,a9 as o,aa as a,ac as C,aq as L,a4 as l,N as d,O as S,a5 as c,a6 as I,aC as v,U as g,R as n,a7 as w,T as k,A as E,r as b,av as x,z as U,ax as H,ay as T,az as A,aw as O,e as z}from"./entry.r3xbjINm.js";import{a as V}from"./rich-text-document.2_4Lrx42.js";import{u as B}from"./use-content-read-tracker.HVTKuRW1.js";import{u as N,a as W}from"./use-schema-jsonld.I6mmx_dg.js";import{h as G}from"./has-og-image-url.uSzOVX1U.js";import"./generic-link.XGzeETtz.js";import"./index.tsdXPcWo.js";import"./link.P7gjBenG.js";const M={components:{PressGalleryGrid:o(()=>a(()=>import("./press-gallery-grid.PLPRtcaO.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url)),CloseButton:o(()=>a(()=>import("./close-button.gakeD2xL.js"),__vite__mapDeps([10,1,2,11,12,4,5,6,7,13]),import.meta.url)),CoverImage:o(()=>a(()=>import("./cover-image.gcGKHoMi.js"),__vite__mapDeps([14,1,2,15]),import.meta.url)),RichTextDocument:o(()=>a(()=>import("./rich-text-document.2_4Lrx42.js").then(t=>t.b),__vite__mapDeps([16,1,2,5,6,17,18,19]),import.meta.url)),HeroSlider:o(()=>a(()=>import("./hero-slider.ffeXqKTs.js"),__vite__mapDeps([20,1,2,21,11,22,12,23,24,25]),import.meta.url)),DownloadLink:o(()=>a(()=>import("./press-download-link.1YsYtanJ.js"),__vite__mapDeps([26,1,2,4,5,6,7,27]),import.meta.url))},provide(){return{mainContentType:"press"}},props:{id:{type:String,required:!0}},data(){return{windowWidth:window.innerWidth}},computed:{...C({language:"config/currentLanguageCode"}),pressReport(){return this.$store.getters["content/press/byId"](this.id)},coverImage(){return this.pressReport.coverImages?(this.transparentHeader(),this.pressReport.coverImages[0]||null):(this.coloredHeader(),null)},getTitle(){return this.isMobile?null:this.pressReport?.imageDownload?.frontendTitle},heroAssets(){return this.pressReport.heroAssets?(this.transparentHeader(),this.removingHeroAssetTitle(),this.pressReport.heroAssets||null):null},videoPosterUrl(){return this.pressReport?.previewImage?.media?.url??null},initialRows(){return this.pressReport.imageDownload&&this.pressReport.imageDownload.mediaAssets&&this.pressReport.imageDownload.mediaAssets.length<9?Math.ceil(this.pressReport.imageDownload.mediaAssets.length/3):3},isMobile(){return this.windowWidth<=this.$resizeObserver.getBreakPoint("MD")}},mounted(){this.$resizeObserver.registerResizeContainerWithCallback(this.$refs.contentContainer,t=>{this.windowWidth=t.contentRect.width})},methods:{...L({coloredHeader:"navigation/coloredHeader",transparentHeader:"navigation/transparentHeader"}),onResize(){this.windowWidth=window.innerWidth},readTimeChanged(t){this.$emit("read-time-change",t)},formatDate(){const t={year:"numeric",month:"long",day:"numeric"};return new Date(this.pressReport.publishingDate).toLocaleDateString(this.language,t)},removingHeroAssetTitle(){if(this.pressReport.heroAssets)for(let t=0;t<this.pressReport.heroAssets.length;t++)(this.pressReport.heroAssets[t].title!=null||this.pressReport.heroAssets[t].description!=null)&&(this.pressReport.heroAssets[t].title=null,this.pressReport.heroAssets[t].description=null)}}},q={key:0},j={class:"page-content mt-5 mb-5"},F={class:"container"},J={class:"press-content"},Y={class:"press-content container"};function $(t,_,p,i,s,e){const r=l("HeroSlider"),u=l("CloseButton"),R=l("CoverImage"),m=V,h=l("DownloadLink"),f=l("PressGalleryGrid");return e.pressReport?(d(),S("div",q,[e.heroAssets&&e.heroAssets.length?(d(),c(r,{key:0,slides:e.heroAssets,"show-text":!1,"video-poster-url":e.videoPosterUrl},null,8,["slides","video-poster-url"])):e.coverImage?(d(),c(R,{key:1,url:e.coverImage.url,"image-title-tag":e.coverImage.title},{actions:I(()=>[v(u,{class:"story-close-button"})]),_:1},8,["url","image-title-tag"])):g("",!0),n("div",j,[n("section",F,[n("div",J,[n("h1",null,w(e.pressReport.title),1),n("h2",null,w(e.formatDate()),1)])]),v(m,{nodes:e.pressReport.content,onReadTimeChange:e.readTimeChanged},null,8,["nodes","onReadTimeChange"]),n("div",Y,[e.pressReport.pdfDownload&&e.pressReport.pdfDownload.length>0?(d(),c(h,{key:0,"pdf-url":e.pressReport.pdfDownload[0].url,"pdf-name":e.pressReport.pdfDownload[0].title,class:k(["download-l
1ink",{"has-successor":e.pressReport.imageDownload&&e.pressReport.imageDownload.mediaAssets&&e.pressReport.imageDownload.mediaAssets.length>0}])},null,8,["pdf-url","pdf-name","class"])):g("",!0),e.pressReport.imageDownload&&e.pressReport.imageDownload.mediaAssets&&e.pressReport.imageDownload.mediaAssets.length>0?(d(),c(f,{key:1,title:e.getTitle,items:e.pressReport.imageDownload.mediaAssets,"show-see-all":!1,"is-loading":!1,"row-count":e.initialRows,class:"press-gallery-grid"},null,8,["title","items","row-count"])):g("",!0)])])])):g("",!0)}const P=D(M,[["render",$],["__scopeId","data-v-590419bc"]]),K=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"})),Q={components:{PressReport:o(()=>a(()=>Promise.resolve().then(()=>K),void 0,import.meta.url)),PageLoadingContainer:o(()=>a(()=>import("./page-loading-container.BH85Qa3w.js"),__vite__mapDeps([28,29,1,2,30,31]),import.meta.url))},setup(){const t=z(),{startTracking:_}=B(),p=t.$store,i=E(),s=b(null);if(s.value=p.getters["content/press/bySlug"](i.params.slug),s.value){const e=p.getters["config/currentLanguageCode"];let r=t.$config.public.BASE_URL+i.path;s.value.canonical&&typeof s.value.canonical=="string"&&(s.value.canonical.startsWith("http")?r=s.value.canonical:r=`https://${s.value.canonical}/${e}/press/${i?.params?.slug}`);const u=t.$config.public.BASE_URL+i.path,R=x({identifierAttribute:"id",addDirAttribute:!0,addSeoAttributes:!0}),m=[];(!s.value?.noIndex||r!==u)&&m.push({rel:"canonical",href:r});const h=N();s.value?.noIndex?h.value="noindex, follow":h.value="index, follow";const{ogImageUrl:f}=G(s.value);W(s.value),U({title:s.value.metaTitle||s.value.title,link:[...R.value.link?.filter(y=>y.rel!=="canonical")||[],...m],meta:[{hid:"og:image",property:"og:image",content:f},{hid:"og:title",property:"og:title",content:s.value.metaTitle||s.value.title},{hid:"og:description",property:"og:description",content:s.value.excerpt},{hid:"description",name:"description",content:s.value.metaDescription||s.value.excerpt}]})}return{startTracking:_}},data(){return{estimatedReadTime:Number.POSITIVE_INFINITY,openingTime:null,readingTime:0,scrollPercentage:0,readingInterval:null}},computed:{...C({currentLanguageCode:"config/currentLanguageCode",userInitialized:"user/index/userCallWasCalled",customerSegments:"user/index/customerSegments"}),pressSlug(){return this.$route.params.slug},pressReport(){return this.$store.getters["content/press/bySlug"](this.pressSlug)},showLoading(){return this.pressReport&&Array.isArray(this.pressReport?.cSegments)&&this.pressReport?.cSegments.length>0?this.userInitialized?!this.showToUser:!0:!1},showToUser(){return H(this.pressReport?.cSegments,this.customerSegments,this.$store.getters["user/index/userCallWasCalled"])},localUserInitialized(){return this.userInitialized}},watch:{localUserInitialized(t){t===!0&&this.showToUser===!1&&T(new A("Permission required"),!1)}},mounted(){this.pressReport?.id&&this.$nextTick(()=>{this.$digitalDataLayer.pushPage({},!1,"",document.referrer,this.pressReport?.id)}),this.$bus.$on(O.USER_LOGGED_IN,()=>{this.showToUser===!1?location.reload():this.checkPermission()}),this.checkPermission(),this.$store.dispatch("clickContent",this.pressReport),this.startTracking(this.pressReport,this.estimatedReadTime,!0)},methods:{checkPermission(){this.localUserInitialized===!0&&this.showToUser===!1&&T(new A("Permission required"),!1)},readTimeChanged(t){this.estimatedReadTime=t}}};function X(t,_,p,i,s,e){const r=P,u=l("PageLoadingContainer");return d(),c(u,{loading:e.showLoading,"has-content":!!e.pressReport},{default:I(()=>[v(r,{id:e.pressReport.id,onReadTimeChange:e.readTimeChanged},null,8,["id","onReadTimeChange"])]),_:1},8,["loading","has-content"])}const ne=D(Q,[["render",X]]);export{ne as default};
2function __vite__mapDeps(indexes) {
3  if (!__vite__mapDeps.viteFileDeps) {
4    __vite__mapDeps.viteFileDeps = ["./press-gallery-grid.PLPRtcaO.js","./entry.r3xbjINm.js","./entry.O9KOVcsn.css","./pressDownloadImage.yckNQxev.js","./Button.c5Ez9a0i.js","./generic-link.XGzeETtz.js","./index.tsdXPcWo.js","./Button.ZpRhhRh-.css","./safe-access.ZLlTBWHi.js","./press-gallery-grid.vBF6x013.css","./close-button.gakeD2xL.js","./use-show-header-switch.0GZ2Uh_B.js","./alertbar-store.bkmjx0Xt.js","./close-button.qlyuzfKw.css","./cover-image.gcGKHoMi.js","./cover-image.hf5NK85S.css","./rich-text-document.2_4Lrx42.js","./link.P7gjBenG.js","./link.hcze6LbP.css","./rich-text-document.eJU1TWYj.css","./hero-slider.ffeXqKTs.js","./client-only.MJXh4mLD.js","./swiper-element-bundle.u0lCgNdk.js","./image.PFnR9wBi.js","./hero-slider.dU7v9lkr.css","./swiper.be0Qcn06.css","./press-download-l
4ink.1YsYtanJ.js","./press-download-link.m8Hf6-3Y.css","./page-loading-container.BH85Qa3w.js","./page-loading-container.vue.wjaxYuJt.js","./loading-indicator.Ep5gZqDW.js","./loading-indicator.VGHaQcck.css"]
5  }
6  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
7}

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.