PageSourceSearch

https://www.gotthard-panorama-express.ch/_nuxt/_slugOrId_.PSeVzuqC.js

js gotthard-panorama-express.ch collected 2026-10-04 12:30:37 UTC 4,007 bytes, 7 lines download raw bytes

1import{L as p,a9 as a,ac as g,b5 as I,d as _,ax as f,a4 as o,N as i,O as n,R as y,aC as G,a7 as d,U as l,a5 as B,a$ as v,S as D,aa as c}from"./entry.7qHEtfiJ.js";import{c as P}from"./componentBase.VlGeKf3n.js";const C={name:"AllPress",components:{Grid:a(()=>c(()=>import("./grid.TRnLJKcd.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)),ItemBackButton:a(()=>c(()=>import("./item-back-button.vB2dW_uQ.js"),__vite__mapDeps([9,1,2,10,11]),import.meta.url))},mixins:[P],setup(){},data(){return{isFetching:!0}},computed:{...g({__:"config/__",themeConfig:"configuration/theme/theme",gridByIdOrSlug:"content/pressGrid/byIdOrSlug",pressIdsById:"content/pressGrid/pressIdsById",hasPressIdsById:"content/pressGrid/hasPressIdsById",pressByIds:"content/press/byIDs",customerSegments:"user/index/customerSegments"}),themeFlavor(){return this.themeConfig.grid?.["content-grid"]?.flavor??"inline"},pressGridId(){return this.pressGrid.id},pressGrid(){return this.gridByIdOrSlug(this.$route.params.slugOrId)},content(){return this.pressGrid?this.pressGrid.content:[]},itemIDs(){return this.pressIdsById(this.pressGridId)||[]},gridItems(){return this.pressByIds(this.itemIDs)},isLoading(){return!this.hasPressIdsById(this.pressGridId)},gridProps(){return this.pressGrid?{items:this.pressItems,layout:"MediumGrid",variant:"press",flavour:this.themeFlavor,rowCount:this.pressItems.length,isLoading:this.isFetching,imageAspectRatio:"4x3"}:null},items(){return I([...this.content,...this.gridItems],"id")},pressItems(){return this.items.filter(e=>this.nodeForTargetedUser(e)).map(e=>{let s=[];return e.heroAssets&&e.heroAssets.length>0&&(s=this.mediaAssetToCoverImg(e.heroAssets)),{id:e.id,contentType:"press",alt:e.heroAssets?.[0]?.altText??"",locale:e.locale||null,title:e.title||null,subtitle:this.formatDate(e.publishingDate)||null,coverImages:s,excerpt:e.shortDescription||null,slug:e.slug||null}})}},async created(){await this.fetchData()},mounted(){this.pressGridId&&this.$nextTick(()=>{this.$digitalDataLayer.pushPage({},!1,"",document.referrer,this.pressGridId)})},methods:{mediaAssetToCoverImg(t){const e=[];for(let s=0;s<t.length;s++)e[s]=t[s].media;return e},formatDate(t){return _(t).format("DD. MMMM YYYY")},nodeForTargetedUser(t){const e=t?.cSegments?t?.cSegments:[];return f(e,this.customerSegments,this.$store.getters["user/index/userCallWasCalled"])},async fetchData(){const t=Math.floor(Date.now()/1e3);this.hasPressIdsById(this.pressGridId)===!1&&this.pressGrid&&(this.isFetching=!0,this.$store.commit("content/pressGrid/setRecentFetch",{id:this.pressGridId,time:t}),await this.$store.dispatch("content/pressGrid/loadDynamicGridItems",{id:this.pressGridId,time:t,settings:{filterEngine:this.pressGrid.filterCategories,sortEngine:this.pressGrid.sortEngine}}),this.isFetching=!1)}}},S={class:"container all-press page-base-spacing"},k={class:"all-press__header d-flex justify-content-left align-items-center"},A={key:0,class:"all-press__header__title"},F={key:0};function b(t,e,s,x,m,r){const h=o("ItemBackButton"),u=o("Grid");return i(),n("div",S,[y("div",k,[G(h,{class:"item-back-button",small:t.isMobileLayout},null,8,["small"]),r.pressGrid&&r.pressGrid.title?(i(),n("div",A,d(t.__(r.pressGrid.title)),1)):l("",!0)]),r.items.length===0&&!m.isFetching?(i(),n("div",F,d(t.__("Sorry, we couldn't find any items that matches your criteria.")),1)):r.gridProps?(i(),B(u,v(D({key:1},r.gridProps)),null,16)):l("",!0)])}const O=p(C,[["render",b],["__scopeId","data-v-4cff3181"]]);export{O as default};
2function __vite__mapDeps(indexes) {
3  if (!__vite__mapDeps.viteFileDeps) {
4    __vite__mapDeps.viteFileDeps = ["./grid.TRnLJKcd.js","./entry.7qHEtfiJ.js","./entry.O9KOVcsn.css","./outdoor-tracking.A6ccQLYj.js","./link-btn.ebzfOPWm.js","./generic-link.i9x8H3UZ.js","./index.tsdXPcWo.js","./link-btn.jN2ZQscP.css","./grid.1fsVaXJ3.css","./item-back-button.vB2dW_uQ.js","./navigation-button.VHLw5LK1.js","./navigation-button.x2ayvC3n.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.