PageSourceSearch

https://www.motel-one.com/release-ffa299/_nuxt/C-cgltPz.js

js motel-one.com collected 2026-09-24 09:08:36 UTC 13,137 bytes, 1 lines download raw bytes

1import{D as J,F as X,G as Y,u as K,H as N,J as U,x as j,v as Z,K as ee,M as te,t as ne,N as ie,b as H,l as M,O as Q,P as re,Q as se,R as O,S as oe,T as ae,U as ce,V as le,y as ue}from"./Bhq9qABL.js";import{u as de}from"./jmYmhuj2.js";import{d as z,bB as me,o as R,L as T,Y as pe,P as fe,N as ge,u as b,M as q,Q as ye,y as k,f as he,aa as be,n as E,w as V,k as Ae,r as we}from"./IWnhukcZ.js";import"./C9Jcv_f1.js";import{t as C,a as _e}from"./Ifmi1nIt.js";import{a6 as Pe}from"./B7SmYxcO.js";function Se(e){return(e??[]).map(t=>({...t,key:t.key??["link",t.rel??"",t.hreflang??"",(t.href??"").split("#")[0].split("?")[0],t.sizes??"",t.type??""].join(":")}))}const ve=new Set(["mid","checkin","checkout","city","rooms","isBusiness","id"]),ke=new Set(["chash"]),Be=/(?:^|\/)index\.php(?:\/|$)/;function Ie(e,t){if(Be.test(e))return!0;for(const n of t.keys())if(ve.has(n)||ke.has(n.toLowerCase()))return!0;return!1}function Le(){const{public:{websiteApi:{clientBaseUrl:e},imageProviderAwsBaseUrl:t}}=J(),i=(X(e)||"").replace(/\/$/,""),r=t||"",o=c=>Qe(c,{origin:i,awsBaseUrl:r});function s(c){const{scripts:u,diagnostics:p}=o(c)}return{init:s,buildScripts:o}}const D=e=>/^https?:\/\//i.test(e);function G(e){return/^\/?fileadmin\//i.test(e)||/\.(?:jpe?g|png|webp|gif|svg)(?:[?#].*)?$/i.test(e)}function xe(e,t){return`${String(e).replace(/\/+$/,"")}/${String(t).replace(/^\/+/,"")}`}function F(e,t){if(e){if(D(e))return e;if(typeof URL<"u"&&"parse"in URL){const n=URL.parse(e,t);if(n)return n.href}try{return new URL(e,t).href}catch{return t?`${t}/${e.replace(/^\//,"")}`:e}}}function $(e,t){if(e)return D(e)?e:G(e)&&t.awsBaseUrl?xe(t.awsBaseUrl,e):F(e,t.origin)}function P(e,t){if(Array.isArray(e))return e.map(n=>P(n,t));if(e&&typeof e=="object"){const n={};for(const[i,r]of Object.entries(e))i==="url"&&typeof r=="string"?n[i]=G(r)?$(r,t):F(r,t.origin):i==="image"&&typeof r=="string"?n[i]=$(r,t):n[i]=P(r,t);return n}return e}function w(e){return e.replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim()}function Te(e,t,n){if(!e?.length)return null;const i=e.map((s,c)=>{if(!s?.title)return n.push({code:"breadcrumb.missing-title",schemaType:"BreadcrumbList",message:`Breadcrumb at index ${c} is missing title and was skipped.`}),null;const u=F(s.link,t.origin);return{"@type":"ListItem",position:c+1,item:{...u?{"@id":u}:{},name:s.title}}}).filter(Boolean),r=[],o=new Set;for(const s of i){const c=`${s?.item?.["@id"]||""}::${s?.item?.name||""}`;if(o.has(c)){n.push({code:"breadcrumb.duplicate-item",schemaType:"BreadcrumbList",message:`Duplicate breadcrumb item "${s?.item?.name}" was removed.`});continue}o.add(c),r.push(s)}return{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:r.map((s,c)=>({...s,position:c+1}))}}function Re(e,t){return!e?.itemListElement||!Array.isArray(e.itemListElement)?e:{"@context":"https://schema.org","@type":"ItemList",itemListElement:e.itemListElement.map(n=>{let i={...n?.item||{}};return i["@context"]&&delete i["@context"],i.address?.type&&!i.address["@type"]&&(i.address["@type"]=i.address.type,delete i.address.type),i=P(i,t),{"@type":"ListItem",position:n?.position,item:i}})}}function Fe(e,t){const i=(Array.isArray(e?.mainEntity)?e.mainEntity:[]).map((r,o)=>
1{const s=w(r?.name||""),c=w(r?.acceptedAnswer?.text||"");return!s||!c?(t.push({code:"faq.missing-question-answer",schemaType:"FAQPage",message:`FAQ entry at index ${o} is incomplete and was skipped.`}),null):{"@type":"Question",name:s,acceptedAnswer:{"@type":"Answer",text:c}}}).filter(Boolean);return i.length||t.push({code:"faq.empty-main-entity",schemaType:"FAQPage",message:"FAQPage schema has no valid question/answer pairs."}),{"@context":"https://schema.org","@type":"FAQPage",mainEntity:i}}function Oe(e,t,n){const i=e?.["@type"]==="BlogPosting"?"BlogPosting":"Article",r=P(e,t),o=w(r?.headline||""),s=w(r?.description||"");return o||n.push({code:"article.missing-headline",schemaType:i,message:"Article schema is missing headline (expected from T3 API)."}),r?.datePublished||n.push({code:"article.missing-date-published",schemaType:i,message:"Article schema is missing datePublished (expected from T3 API)."}),r?.dateModified||n.push({code:"article.missing-date-modified",schemaType:i,message:"Article schema is missing dateModified (expected from T3 API)."}),{...r,"@context":"https://schema.org","@type":i,...o?{headline:o}:{},...s?{description:s}:{}}}function Ee(e,t,n){const i=e?.["@type"];return i==="FAQPage"?Fe(e,n):i==="Article"||i==="BlogPosting"?Oe(e,t,n):i==="ItemList"||e?.itemListElement?Re(e,t):P(e,t)}function Ce(e){if(!e?.content||typeof e.content!="object")return;const n=Object.values(e.content).flatMap(i=>Array.isArray(i)?i:[]).find(i=>/e7050review/i.test(String(i?.type||"")))?.content?.reviews?.reviews?.recommendationRate;return typeof n=="number"&&Number.isFinite(n)?n:void 0}function $e(e,t){if(t===void 0||!e||typeof e!="object")return e;const n=e.aggregateRating;return!n||typeof n!="object"||n.additionalProperty?e:{...e,aggregateRating:{...n,additionalProperty:{"@type":"PropertyValue",name:"recommendationRate",value:t,unitText:"PERCENT"}}}}function Ne(e,t){if(!e?.content||typeof e.content!="object")return[];const i=Object.values(e.content).flatMap(o=>Array.isArray(o)?o:[]).find(o=>/e0413awardscaroussel/i.test(String(o?.type||"")))?.content?.awardscarousselItems;if(!Array.isArray(i))return[];const r=[...new Set(i.map(o=>{const s=o?.image?.properties;return String(s?.title||s?.alternative||"").trim()}).filter(Boolean))];return r.length<i.length&&t.push({code:"awards.missing-name",schemaType:"Organization",message:`${i.length-r.length} of ${i.length} award items carry neither an image title nor an alternative text and were skipped.`}),r}function Ue(e,t){return!t.length||!e||typeof e!="object"||e.award||!/^(?:Organization|Corporation|Hotel)$/.test(String(e["@type"]||""))?e:{...e,award:t}}function je(e,t){if(!e?.content||typeof e.content!="object")return[];const n=Object.values(e.content).flatMap(s=>Array.isArray(s)?s:[]).flatMap(s=>s?.type==="shortcut"&&Array.isArray(s.content?.shortcut)?s.content.shortcut:[s]).filter(s=>/e0412sliderimagemosaic/i.test(String(s?.type||""))),i=new Set,r=[];let o=0;for(const s of n){const c=Array.isArray(s?.content?.media)&&s.content.media.length?s.content.media:s?.content?.hotelMedia;if(Array.isArray(c))for(const u of c){const p=String(u?.publicUrl||"").trim();if(!p||i.has(p)){p||o++;continue}i.add(p);const a=u?.properties??{},d=String(a.title||"").trim(),g=String(a.alternative||"").trim();r.push({"@type":"ImageObject",url:p,...d?{name:d}:{},...g?{caption:g}:{},...a.dimensions?.width&&a.dimensions?.height?{width:a.dimensions.width,height:a.dimensions.height}:{}})}}return o&&t.push({code:"gallery.missing-url",schemaType:"Hotel",message:`${o} gallery images carry no public URL and were skipped.`}),r}function He(e,t){if(!t.length||!e||typeof e!="object"||!/^(?:Hotel|LodgingBusiness)$/.test(String(e["@type"]||"")))return e;const n=e.image===void 0?[]:Array.isArray(e.image)?e.image:[e.image],i=new Set(n.map(r=>typeof r=="string"?r:r?.url));return{...e,image:[...n,...t.filter(r=>!i.has(r.url))]}}function Me(e){const t=e.filter(r=>r?.["@type"]==="FAQPage");if(t.length<=1)return e;const n=new Set,i=t.flatMap(r=>Array.isArray(r?.mainEntity)?r.mainEntity:[]).filter(r=>
1{const o=w(String(r?.name||"")),s=w(String(r?.acceptedAnswer?.text||""));if(!o||!s)return!1;const c=`${o}::${s}`;return n.has(c)?!1:(n.add(c),!0)});return[...e.filter(r=>r?.["@type"]!=="FAQPage"),{"@context":"https://schema.org","@type":"FAQPage",mainEntity:i}]}function Qe(e,t){if(!e)return{scripts:[],guardrails:[],diagnostics:{path:"",expectedSchemaFamilies:[],presentSchemaFamilies:[],missingSchemaFamilies:[],requiredFieldStatus:{FAQPage:"not_expected",ArticleOrBlogPosting:"not_expected",BreadcrumbList:"not_expected"},missingFields:[],guardrailCodes:[]}};const n=[],i=[];if(e.breadcrumbs?.length){const r=Te(e.breadcrumbs,t,n);r&&i.push(r)}if(Array.isArray(e.structuredData)){const r=Ce(e),o=Ne(e,n),s=je(e,n),c=e.structuredData.map(u=>He(Ue($e(Ee(u,t,n),r),o),s));i.push(...Me(c))}return{scripts:i,guardrails:n,diagnostics:Ve(e,i,n)}}function ze(e){return!e?.content||typeof e.content!="object"?!1:Object.values(e.content).flatMap(t=>Array.isArray(t)?t:[]).some(t=>/faq/i.test(String(t?.type||"")))}function qe(e){return/\/the-travel-edit(?:\/|$)/i.test(e)}function Ve(e,t,n){const i=String(e?.slug||""),r=[];ze(e)&&r.push("FAQPage"),qe(i)&&r.push("ArticleOrBlogPosting"),Array.isArray(e?.breadcrumbs)&&e.breadcrumbs.length>0&&r.push("BreadcrumbList");const o=new Set;for(const a of t){const d=String(a?.["@type"]||"");d==="FAQPage"?o.add("FAQPage"):d==="Article"||d==="BlogPosting"?o.add("ArticleOrBlogPosting"):d==="BreadcrumbList"&&o.add("BreadcrumbList")}const s=[...o],c=r.filter(a=>!o.has(a)),u=[...c.map(a=>`missing-schema:${a}`),...n.map(a=>a.code)],p={FAQPage:r.includes("FAQPage")?u.some(a=>a.startsWith("faq.")||a==="missing-schema:FAQPage")?"missing":"ok":"not_expected",ArticleOrBlogPosting:r.includes("ArticleOrBlogPosting")?u.some(a=>a.startsWith("article.")||a==="missing-schema:ArticleOrBlogPosting")?"missing":"ok":"not_expected",BreadcrumbList:r.includes("BreadcrumbList")?u.some(a=>a.startsWith("breadcrumb.")||a==="missing-schema:BreadcrumbList")?"missing":"ok":"not_expected"};return{path:i,expectedSchemaFamilies:r,presentSchemaFamilies:s,missingSchemaFamilies:c,requiredFieldStatus:p,missingFields:u,guardrailCodes:n.map(a=>a.code)}}const De=z({__name:"Typo3Page",async setup(e){let t,n;const{pageData:i,backendLayout:r}=([t,n]=me(()=>de()),t=await t,n(),t),o=Y("t3:isPageLoading"),{init:s}=Le(),{locale:c}=K({useScope:"global"}),u=i.value?.seo||{};s(i.value),ie().value?.toLowerCase();const a=N(),d=k(()=>{try{return Object.fromEntries((i.value||{i18n:[]}).i18n.map(({locale:m,available:l})=>[m.split("_")[0],l]))}catch(m){return H.error("Cannot compute available pages",m),{en:1,de:1}}}),g=k(()=>(u.link||[]).filter(m=>m.rel!=="alternate"?!0:m.hreflang?Object.keys(d.value).includes(m.hreflang)&&d.value[m.hreflang]===1:!1)),S=U();R(()=>{S.emit("one:init-page")});const y={...u,...a.value==="jobs"?{link:g.value}:{},htmlAttrs:{lang:c,"data-loading-typo3":k(()=>String(o.value))}},f=j(),_=Ie(f.pathname,f.searchParams)?(y.link??[]).filter(m=>m.rel!=="canonical"):y.link,B={...y,link:Se(_)};Z(B);function I(m){const l=A(m);try{if(typeof structuredClone=="function")return structuredClone(l)}catch{}return JSON.parse(JSON.stringify(l))}function A(m){if(he(m))return A(b(m));const l=be(m);if(l===null||typeof l!="object"||typeof l=="function")return l;if(Array.isArray(l))return l.map(A);if(l instanceof Date||l instanceof RegExp||l instanceof Map||l instanceof Set||ArrayBuffer.isView(l)||l instanceof ArrayBuffer||typeof Blob<"u"&&l instanceof Blob||typeof File<"u"&&l instanceof File)return l;const v={};for(const[x,W]of Object.entries(l))v[x]=A(W);return v}const L=I(i.value?.content);return(m,l)=>{const v=ee,x=ne;return T(),pe("div",null,[fe(x,{name:b(te)(b(r))},{default:ge(()=>[b(L)?(T(),q(v,{key:0,name:b(r),content:b(L)},null,8,["name","content"])):ye("",!0)]),_:1},8,["name"])])}}}),Ge=Object.assign(De,{__name:"Typo3Page"});function We(){const e=Q(),{pushToDataLayer:t}=re(),n=se(),i=N(),r=j(),o=r?new URL(r).host:null,s=()=>n.value&&!e.pageCityId&&!e.pageHotelId?"homepage":e.pageCityId&&e.pageHotelId?"hotelpage":e.pageCityId&&!e.pageHotelId?"citypage":"other";return{getPageType:s,trackPageView:(u,p)=>{const a=p||s();let d,g=e.pageHotelBrand||void 0;a==="hotelpage"&&e.pageHotelId&&(d=Number.parseInt(e.pageHotelId,10));const y=`${r?new URL(r).protocol:"https:"}//${o}${u}`;(a!=="hotelpage"||!g)&&(g=i.value==="tco"?"TCO":"MOTELONE");const f={event:"mo_pageview",mo_pageurl:y||void 0,pagetype:a||void 0,sihot_id:a==="hotelpage"&&d&&!Number.isNaN(d)?d:void 0,brand:g||void 0};t(f)}}}function Je(){const e=M(),{trackPageView:t}=We();R(async()=>{await E(),t(e.fullPath)}),V(()=>e.fullPath,async n=>{await E(),t(n)})}const Xe=z({__name:"Typo3Slug",setup(e){const t=we(!1),n=Q(),i=M(),{currentCurrency:r}
1=O(oe()),{pageData:o}=ae(),{initialData:s}=O(ce()),{prefill:c}=le(),u=U();let p=0;const a=k(()=>_e(s.value?.booker));async function d(){const f=++p;n.pageContextReady=!1,n.pageCityId=C(o.value?.booker?.cityId),n.pageHotelId=C(o.value?.booker?.hotelId),n.destinations=a.value,n.pageHotelBrand=a.value.find(h=>h.hotelId===o.value?.booker?.hotelId)?.brand,t.value=!0,await c(),f===p&&(n.pageContextReady=!0)}const g=u.on("one:init-page",d);Ae(()=>{g()}),V(()=>[i.fullPath,o.value?.booker?.cityId,o.value?.booker?.hotelId],([f,h,_],[B,I,A])=>{(f!==B||h!==I||_!==A)&&(!f||!t.value||d())}),Je();const{pushToDataLayer:S}=ue();function y(){if(n.pageHotelId&&n.pageHotelId!=="0"){const f=a.value.find(h=>h.hotelId===o.value?.booker?.hotelId)?.brand;f||H.error(`[tracking/slug]: cannot find brand for, ${n.pageHotelId}`),S({event:"view_item",ecommerce:{currency:r.value,items:[{item_name:n.pageHotelId,sihot_id:n.pageHotelId,item_brand:f||"MOT"}]}})}}return R(()=>{t.value?y():Pe(t,y,{once:!0})}),(f,h)=>{const _=Ge;return T(),q(_,{key:b(i).fullPath})}}}),it=Object.assign(Xe,{__name:"Typo3Slug"});export{it as _};

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.