PageSourceSearch

https://touridat.com/js/TippsCategory.4a3db3fb.js

js touridat.com collected 2026-09-24 11:21:24 UTC 11,172 bytes, 3 lines download raw bytes

1/* Copyright 2026, touriDat GmbH & Co. KG. moloss 0.8.16 (Wed, 16 Sep 2026 10:27:33 GMT) */
2(self.webpackChunkmoloss=self.webpackChunkmoloss||[]).push([[841],{6342:function(t,e,s){"use strict";s.r(e),s.d(e,{default:function(){return H}});s(18111),s(22489),s(61701);var i=s(77523),r=s(7350),n=s(23412),o=s(17645),a=s(38737),c=s(12570),u=s(80996),l={name:"HighlightedHostComponent",components:{HostPreviewStars:s(92548).A},props:{stars:Number,isSuperior:Boolean,name:{type:String,required:!0},price:Number,cityRegion:String,to:[String,Object]}},p=s(81656),d=(0,p.A)(l,function(){var t=this,e=t._self._c;return e("div",{staticClass:"highlighted-host row no-gutters mb-4"},[t.$slots.hero?e("div",{staticClass:"col-12 col-md-7 hero"},[t._t("hero")],2):t._e(),e("div",{staticClass:"col-12 col-md-5 textbox d-flex flex-wrap align-items-center justify-content-center"},[e("div",{staticClass:"text-center mx-3 py-3 py-md-0"},[e("div",{staticClass:"text"},[t.stars?e("HostPreviewStars",{attrs:{stars:t.stars,"is-superior":t.isSuperior}}):t._e(),e("div",{staticClass:"h1 my-1 my-lg-2 name"},[t._v(t._s(t.name))]),e("div",{staticClass:"city-region"},[t._v(t._s(t.cityRegion))]),t.price?e("div",{staticClass:"h2 price my-1 my-lg-3 price"},[t._v("ab "+t._s(t._f("formatPrice")(t.price)))]):t._e(),t.$slots.default?e("div",{staticClass:"inner-text"},[t._t("default")],2):t._e()],1),t.to?e("router-link",{staticClass:"btn-highlight",attrs:{to:t.to}},[t._v("zum Angebot")]):t._e()],1)])])},[],!1,null,"c8c41972",null).exports,h=s(77827),g=s(78036),m=s(19508),C=s(18713),v=s(81524),f=s(50935),b={name:"TippsCategory",components:{TextContentLoader:C.A,PreviewHostGallery:h.A,HighlightedHostComponent:d,GridListing:a.A,LoadingSpinnerOverlay:i.A,HostPreviewComponent:c.A,HostPreviewContentLoader:u.A},setup(){return{getNumberOfStars:o.Ep,isSuperior:t=>t?.Stars?.toLowerCase()?.includes("s")}},data(){return{isLoading:!0,category:void 0}},computed:{slug(){return"tipps"},topHostText(){if(!this.topHost)return"";const t=this.getTippsItemsForHost(this.topHost);if(!Array.isArray(t)||0===t.length)return"";if(1===t.length){const e=t[0];if(!e.Nights||!e.DiscountedPrice||!e.LiveShoppingPrice)return"";const s=(0,g.vg)(e);return!s||s<=0?"":`Bei ${e.Nights} ${1===e.Nights?"Nacht":"Nächten"} dank touriTipps Rabatt nochmals ${Math.round(s)} € zusätzlich sparen!`}return""},topHostImages(){if(!this.topHost)return[];const t=(0,o.by)(this.topHost);return Array.isArray(t)?t.map(t=>{const e=t.Seo;return{url:t.url||t.RemoteURL,alt:e?.ImageAlternativeText,title:e?.ImageDescription}}):[]},cheapestTopHostItemPrice(){try{if(!this.topHost?.id||!Array.isArray(this.items))return 0;const t=(0,g.tG)(this.items.filter(t=>t.HostId==this.topHost.id))[0];return t?.CurrentPrice||0}catch(t){return this.$log.error(t),0}},topHost(){const t=this.hosts.filter(t=>!!t.Items.filter(t=>{const e=t.StockAvailableQuantityDealPrice||0,s=t.StockReservedQuantityDealPrice||0,i=(0,m.qE)(e-s,0);return t.IsTouriTippsItem&&!!i}).length);return t[0]},remainingHosts(){const t=this.hosts||[];return this.topHost?t.filter(t=>t.id!==this.topHost.id):t},hosts(){const t=this.category?.Hosts;return t?.length?[...t].filter(t=>t.Items.filter(t=>t.IsTouriTippsItem).length>0).sort((t,e)=>this.getHostScore(e)-this.getHostScore(t)).map(t=>({...t,_score:this.getHostScore(t)})):[]}},methods:{getHostScore(t){if(!t)return 0;const e=t.Items||[];return(0,m.cz)(e.map(t=>{const e=(0,g.rN)(t),s=(0,g.D$)(t);return e?s-100:s}))},getPreviewSpecialText(t){if(!Array.isArray(t)||0===t.length)return;const e=t.filter(t=>t.IsTouriTippsItem);if(0===e.length)return;if(1===e.length){const t=e[0],s=(0,g.vg)(t);if(!s||s<=0)return;return`Sie sparen bei ${t.Nights} ${1===t.Nights?"Nacht":"Nächten"} aktuell ${Math.round(s)} € extra!`}const s=t.map(t=>t.Nights),i=[...t.map(t=>(0,g.vg)(t)).sort((t,e)=>e-t)];return`Sie sparen bei ${s.slice(-1).join(",")} & ${s[s.length-1]} bis zu ${Math.round(i[0])} € extra!`},getTippsItemsForHost(t){return t.Items?.length?t.Items.filter(t=>t.IsTouriTippsItem):[]},getCheapestTippsItemId(t){const e=this.getTippsItemsForHost(t),s=(0,g.tG)(e);return s[0]?.id||void 0},getRouteForHost(t){if(!t?.Url||!t?.id)return;const e=`/gastgeber/${t.Url}`,s=this.getTippsItemsForHost(t);return 0!==s.length&&s[0]?.id?{path:`${e}#${s[0]?.id}`,query:{tipps:!0}}:{path:e}}
2,async update(){this.isLoading=!0;try{const t=await this.$apollo.query({query:f.K.Queries.TouriTippsHosts}).then(t=>t?.data?.touriTippsHosts||[]);this.category={id:"288",Name:"touriTipps",Url:"tipps",Hosts:t,CustomAttributes:{Name1:"touriTipps",HtmlContent:null,MetaDescription:"",MetaKeywords:"",Custom_MetaTitle:""}}}finally{this.isLoading=!1}}},async mounted(){n.A.$emit("changeWebTemplateType",r.l.Tipps),await this.update()},unmounted(){n.A.$emit("changeWebTemplateType",r.l.Default)},destroyed(){n.A.$emit("changeWebTemplateType",r.l.Default)},metaInfo(){return(0,v.cX)(this.category,this.slug)}},_=b,y=(0,p.A)(_,function(){var t=this,e=t._self._c;return e("div",{staticClass:"tipps-category",attrs:{id:"category"}},[t.isLoading?e("LoadingSpinnerOverlay"):t._e(),t.category?e("header",{staticClass:"tipps-header"},[e("div",{staticClass:"section-header"},[e("div",{staticClass:"section-header__accent"}),e("h1",{staticClass:"section-header__title"},[t.category&&t.category.CustomAttributes&&t.category.CustomAttributes.Name1?[t._v("Unsere Empfehlungen für "+t._s(t.category.CustomAttributes.Name1))]:e("TextContentLoader",{staticClass:"d-inline-block",staticStyle:{"max-width":"675px"},attrs:{lines:1,randomize:!1}})],2)]),e("div",{staticClass:"container"},[t.isLoading?e("div",{staticClass:"loader highlight"}):t.topHost?e("HighlightedHostComponent",{staticClass:"bg-ttipps-basic txt-white",attrs:{name:t.topHost.Name,"city-region":t.topHost.CityRegion,stars:t.getNumberOfStars(t.topHost),"is-superior":t.isSuperior(t.topHost),price:t.cheapestTopHostItemPrice,to:t.getRouteForHost(t.topHost)},scopedSlots:t._u([{key:"hero",fn:function(){return[e("PreviewHostGallery",{attrs:{images:t.topHostImages,"image-size":"medium"}})]},proxy:!0},{key:"default",fn:function(){return[e("div",[t._v(t._s(t.topHostText))])]},proxy:!0}],null,!1,1906235377)}):t._e()],1)]):t._e(),e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[t.isLoading?t._l(9,function(t){return e("div",{staticClass:"col-12 col-lg-4"},[e("HostPreviewContentLoader")],1)}):t._l(t.remainingHosts,function(s){return e("div",{staticClass:"col-12 col-lg-4"},[e("HostPreviewComponent",{attrs:{host:s,"selected-item-id":t.getCheapestTippsItemId(s),"is-tipps-host":!0},scopedSlots:t._u([{key:"special",fn:function({items:s}){return[t.getPreviewSpecialText(s)?e("div",{staticClass:"tipps-special"},[e("span",{staticClass:"tipps-badge"},[t._v(t._s(t.getPreviewSpecialText(s)))])]):t._e()]}}],null,!0)})],1)})],2)]),!t.isLoading&&t.hosts.length?e("div",{staticClass:"container tipps-seo-section my-5"},[t._m(0)]):t._e()],1)},[function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"section-header section-header--left"},[e("div",{staticClass:"section-header__accent"}),e("h2",{staticClass:"section-header__title"},[t._v("Was sind touriTipps?")])]),e("div",{staticClass:"tipps-seo-text"},[e("p",[t._v("touriTipps sind unsere handverlesenen Hotelempfehlungen des Monats — exklusive Reiseangebote, die wir aus über 2.500 Partnerhotels in ganz Europa für Sie auswählen. Jeden Monat prüft unser Reise-Team persönlich die besten Angebote und verhandelt Sonderkonditionen, die Sie nur bei touriDat finden.")]),e("p",[t._v("Ob Wellness-Wochenende im Schwarzwald, Städtereise nach Wien oder romantischer Kurzurlaub an der Ostsee: Mit touriTipps sparen Sie bis zu 52% gegenüber dem regulären Hotelpreis — und das bei voller Flexibilität durch unsere Reisegutscheine mit langer Gültigkeit.")]),e("h3",[t._v("Ihre Vorteile mit touriTipps")]),e("ul",[e("li",[t._v("Handverlesene Hotels mit geprüfter Qualität ab 3 Sternen")]),e("li",[t._v("Exklusive Rabatte und Sonderkonditionen, nur bei touriDat")]),e("li",[t._v("Flexible Reisegutscheine — einlösbar innerhalb der Gültigkeitsdauer")]),e("li",[t._v("100% Käuferschutz und sichere Bezahlung")])]),e("p",[t._v("Stöbern Sie durch unsere aktuellen touriTipps und entdecken Sie Ihr nächstes Reiseziel zum besten Preis. Alle Angebote sind limitiert — wenn ein Favorit dabei ist, greifen Sie schnell zu!")])])])])}],!1,null,null,null),H=y.exports},50103:function(t){function e(t){return t.charAt(0).toUpperCase()+t.slice(1)}function s(t){return/[!"#%&'()*+,./:;<=>?@[\\\]^`{|}]/u.exec(t)}function i(t){return/[A-Z]/u.exec(t)}function r(t){return t.replace(/_/gu,"-").replace(/\B([A-Z])/gu,"-$1").toLowerCase()}function n(t){return!(i(t)||s(t)||/^-/u.exec(t)||/_|--|\s/u.exec(t))}function o(t){return t.replace(/\B([A-Z])/gu,"_$1").replace(/-/gu,"_").toLowerCase()}function a(t){return!(i(t)||s(t)||/-|__|\s/u.exec(t))}function c(t){return p(t)?t.charAt(0).toLowerCase()+t.slice(1):t.replace(/[-_](\w)/gu,(t,e)=>e?e.toUpperCase():"")}function u(t){return!(s(t)||/^[A-Z]/u.exec(t)||/-|_|\s/u.exec(t))}function l(t){return e(c(t))}function p(t){return!(s(t)||/^[a-z]/u.exec(t)||/-|_|\s/u.exec(t))}
2const d={"kebab-case":r,snake_case:o,camelCase:c,PascalCase:l},h={"kebab-case":n,snake_case:a,camelCase:u,PascalCase:p};function g(t){return h[t]||p}function m(t){return d[t]||l}t.exports={allowedCaseOptions:["camelCase","kebab-case","PascalCase"],getConverter:m,getChecker:g,getExactConverter(t){const e=m(t),s=g(t);return t=>{const i=e(t);return s(i)?i:t}},camelCase:c,pascalCase:l,kebabCase:r,snakeCase:o,isCamelCase:u,isPascalCase:p,isKebabCase:n,isSnakeCase:a,capitalize:e}},81524:function(t,e,s){"use strict";s.d(e,{cX:function(){return a}});var i=s(22018),r=s(50103);const n=t=>t?`Reise- & Hotelgutscheine für ${t}`:"Reise- & Hotelgutscheine kaufen und verschenken",o=t=>t?`Reise- & Hotelgutscheine für ${t} kaufen und verschenken ✔ geprüfter Testsieger seit 2018 ✔ 100% Käuferschutz ✔ Jetzt buchen!`:"Reise- & Hotelgutscheine kaufen und verschenken ✔ geprüfter Testsieger seit 2018 ✔ 100% Käuferschutz ✔ Jetzt buchen!",a=(t,e)=>({title:t?.CustomAttributes?.Custom_MetaTitle||n(t?.CustomAttributes?.Name1?(0,r.capitalize)(t.CustomAttributes.Name1):void 0),titleTemplate:"%s | touriDat.com",htmlAttrs:{lang:"de"},meta:[{name:"description",vmid:"description",content:t?.CustomAttributes?.MetaDescription||o(t?.CustomAttributes?.Name1?(0,r.capitalize)(t.CustomAttributes.Name1):void 0)},{name:"keywords",vmid:"keywords",content:t?.CustomAttributes?.MetaKeywords||""},{vmid:"og:title",property:"og:title",content:t?.CustomAttributes?.Custom_MetaTitle||n(t?.CustomAttributes?.Name1?(0,r.capitalize)(t.CustomAttributes.Name1):void 0)},{vmid:"og:description",property:"og:description",content:t?.CustomAttributes?.MetaDescription||o(t?.CustomAttributes?.Name1?(0,r.capitalize)(t.CustomAttributes.Name1):void 0)},{vmid:"og:url",property:"og:url",content:`${i.A.server.host}/${e?"kategorien/"+e:""}`}],link:[{vmid:"canonical",rel:"canonical",href:`${i.A.server.host}/${e?"kategorien/"+e:""}`}]})}}]);
3//# sourceMappingURL=TippsCategory.4a3db3fb.js.map

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.