PageSourceSearch

https://en.japantravel.com/build/assets/Accommodations-nl7mRsjz.js

js japantravel.com collected 2026-10-02 02:53:06 UTC 2,465 bytes, 1 lines download raw bytes

1import{u as w,w as y,j as A,k as i,l as d,p as f,q as p,s as h,F as v,z as x,y as k,f as m,r as L}from"./vendor-vue-Ct0XopGZ.js";import{A as S}from"./WhereToEat-CX5wYhNf.js";const B="outbound-link",b="japantravel.com";function C(){let t;try{t=new URL(void 0).hostname}catch{return""}const e=t.split(".").filter(Boolean);return(e.length>2?e.slice(1):e).join(".")}function D(){return[b,C()].map(t=>t.trim().toLowerCase()).filter(Boolean)}const j=`https://${b}/`;function E(t){const e=t.toLowerCase().replace(/\.$/,"");return D().some(o=>e===o||e.endsWith(`.${o}`))}function U(t){let e;try{e=new URL(t,typeof window>"u"?j:window.location.href)}catch{return!1}return typeof window<"u"&&e.origin===window.location.origin?!1:!E(e.hostname)}function _(t){t&&t.querySelectorAll("a").forEach(e=>{const o=e.getAttribute("href")||"",s=new URL(o,window.location.href);s.hash&&s.pathname===window.location.pathname?e.addEventListener("click",r=>{r.preventDefault();const c=document.getElementById(s.hash.slice(1));if(c){const n=document.querySelector("header"),a=n?n.getBoundingClientRect().height+16:0,u=c.getBoundingClientRect().top+window.scrollY-a;window.scrollTo({top:u,behavior:"smooth"})}}):U(o)&&(e.setAttribute("target","_blank"),e.setAttribute("rel","noopener"),e.classList.add(B))})}function M(t,e=null){w(()=>_(t())),e&&y(e,()=>_(t()),{flush:"post"})}const N={key:0,class:"mt-[60px]"},O={class:"mb-6 flex w-full flex-row items-center justify-between p-0"},R={class:"m-0 flex items-center text-[30px] font-semibold leading-[1] text-[#404040]"},T={key:0,class:"mb-6 text-[16px] leading-[24px] text-[#757575]"},q=A({__name:"Accommodations",props:{block:{},city:{}},setup(t){const e=t,o=m(()=>{var n;return((n=e.block.config)==null?void 0:n.title)||""}),s=m(()=>{var n;return((n=e.block.content)==null?void 0:n.items)||[]}),l=m(()=>{var n,a;return((a=(n=e.city)==null?void 0:n.acq_metadata)==null?void 0:a.city_stay_description)||""}),r=L([]),c=()=>{r.value=s.value.slice(0,3)};return w(()=>{c()}),(n,a)=>s.value.length>0?(i(),d("div",N,[f("div",O,[f("h2",R,p(o.value),1)]),l.value?(i(),d("p",T,p(l.value),1)):h("",!0),f("div",null,[(i(!0),d(v,null,x(r.value,(u,g)=>(i(),k(S,{key:g,class:"border-t border-[#e9e9e9] last:border-b",bookmark:!1,"article-card":u,template:"prefecture-city"},null,8,["article-card"]))),128))])])):h("",!0)}}),P=Object.freeze(Object.defineProperty({__proto__:null,default:q},Symbol.toStringTag,{value:"Module"}));export{P as A,U as i,M as u};

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.