PageSourceSearch

https://urbanarrow.com/_nuxt/Kqiynwkf.js

js urbanarrow.com collected 2026-10-01 14:08:40 UTC 1,796 bytes, 1 lines download raw bytes

1import{a4 as d,f as p}from"#entry";const i=e=>e.map(r=>[new RegExp(`${r}/${r}`,"g"),r]),f=e=>new RegExp(`^/?(${[...e,"europe"].join("|")})/`),h=e=>new RegExp(`^/?(${e.join("|")})/`),S=d("data",{state:()=>({translatedSlugs:[]}),actions:{setTranslatedSlugs(e){this.translatedSlugs=e},getTranslatedSlug(e){if(e.linktype!=="story")return e.cached_url;try{const r=p(),t=r.getLang;let a=e.cached_url?.replace("//","/");if(i(r.nonDefaultEuropeLocales).forEach(([n,s])=>{a=a?.replace(n,s)}),t!==r.defaultLocale){const n=a?.replace(f(r.pathPrefixedLocales),"")?.replace(/^\/+|\/+$/g,""),l=this.translatedSlugs?.find(({default_full_slug:c,translated_slugs:o})=>c.replace(/^\/?(europe\/|en-na\/)|\/$/g,"")===n||o?.find(u=>u.lang===t)?.path?.replace(/^\/?(europe\/|en-na\/)|\/$/g,"")===n)?.translated_slugs?.find(c=>c.lang===t);return l?.path?t==="en-na"?`/${l.path.replace(/^\/+/,"")}`:l.path.replace("europe/",`/${t}/`):`/${a?.replace(/^\/+/,"")}`}else return`/${a?.replace(/^\/+/,"")}`}catch(r){return console.error("Error getting translated slug:",r),e.cached_url||"/"}},getTranslatedSlugByLang(e,r){try{const t=p(),a=t.getLang,n=h(t.pathPrefixedLocales),s=this.translatedSlugs?.find(({default_full_slug:c,translated_slugs:o})=>{const u=o.find(g=>g.lang===a);return c.replace(/^(europe\/|en-na\/)/,"").replace(/^\/|\/$/g,"")===r?.replace(n,"").replace(/^\/|\/$/g,"")||u?.path.replace(/^(europe\/|en-na\/)/,"").replace(/^\/|\/$/g,"")===r?.replace(n,"").replace(/^\/|\/$/g,"")}),l=e!==t.defaultLocale?s?.translated_slugs?.find(c=>c.lang===e)?.path:s?.default_full_slug;return l?e!==t.defaultLocale?`/${e}/${l?.replace(/^(europe\/|en-na\/)/,"")??""}`:`/${l?.replace(/^(europe\/)/,"")??""}`:`/${e}/`}catch(t){return console.error("Error getting translated slug by lang:",t),r}}},getters:{}});export{S 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.