PageSourceSearch

https://yta.se/resources/layout.87d47b90.js

js yta.se collected 2026-10-05 07:05:08 UTC 8,425 bytes, 1 lines download raw bytes

1import{d as b,a7 as X,em as J,j as a,b7 as u,a as e,b8 as y,as as L,v as A,b9 as K,V as d,aU as S,w as v,r as m,h as p,ar as f,bh as U,Y as O,en as Y,bc as C,bl as G,eo as Z,b2 as I,bW as q,ep as ee,eq as te,er as ne,ba as re,bb as ae,s as oe,bj as ie,D as se,bk as le,aW as H,av as de,aw as ce,P as me,W as he,bO as ge,bP as k,ak as ue,bv as pe,bE as T,ao as $,bF as E,bG as W,bH as M,bI as P,bJ as D,bK as be,bL as fe,bM as ye,aV as R,b3 as we,bT as xe}from"./index.6313afd3.js";import{T as V}from"./chakra-ui-tag.esm.5feb97e4.js";const Se=({provider:n})=>{const{t:i}=b(),o=X(J(n.locations.map(t=>t.id)));if(!o.data)return null;if(o.isError)return a("span",{children:["Error: ",o.error.message]});const r=o.data;return r.length<1?null:a(u,{children:[e(y,{children:i("Recensioner")}),o.isLoading||o.isIdle?e(L,{h:20}):e(A,{templateColumns:"1fr",gap:2.5,children:r.map(t=>a(K,{colorScheme:"green",display:"grid",gridGap:4,gridTemplateColumns:"max-content 1fr",gridTemplateRows:"auto auto",alignItems:"center",fontStyle:"italic",children:[a(d,{whiteSpace:"pre-wrap",gridColumn:"1 / 3",color:"grey.500",children:["\u201D",t.content,"\u201D"]}),e(S,{sizeSet:{base:{width:50,height:50}},src:t.thumbnail,borderRadius:"full",alt:t.person_name}),a("div",{children:[a(v,{color:"grey.800",fontWeight:"semibold",fontSize:"sm",mb:1,children:[t.person_name,","]}),a(d,{color:"grey.500",fontSize:"sm",children:[t.person_title," ",t.company]})]})]},t.id))})]})},_e=({locations:n})=>{const[i,o]=m.exports.useState(!1),r=m.exports.useMemo(()=>{if(n.length==0)return;const c=n.map(({address:z})=>[z.coordinates.lng,z.coordinates.lat]),Q=ee(c),x=te(Q);return{west:x[0],south:x[1],east:x[2],north:x[3]}},[n]),[t,h]=m.exports.useState({latitude:r?(r.north+r.south)/2:59.3253,longitude:r?(r.west+r.east)/2:18.0628}),l=r?{bounds:[r.south,r.west,r.north,r.east]}:t,{ref:g,fitBounds:s}=ne({defaultViewport:t});m.exports.useEffect(()=>{r&&i&&s(r,{padding:50,animate:!0})},[r,s,i]);const[w,_]=m.exports.useState(null),B=m.exports.useCallback(()=>{_(null)},[_]),N=m.exports.useMemo(()=>n.map(c=>e(F,{longitude:c.address.coordinates.lng,latitude:c.address.coordinates.lat,selected:w===c,onClick:()=>_(c)},c.id)),[n,w]);return e(p,{position:"relative",h:{base:64,md:80,lg:96},w:"100%",children:a(re,{...t,ref:g,onLoad:()=>o(!0),initialViewState:l,onMove:c=>h(c.viewState),style:{width:"100%",height:"100%"},mapStyle:"mapbox://styles/mapbox/light-v9",mapboxAccessToken:"pk.eyJ1IjoibWlrYWVsZyIsImEiOiJja2M0aXI2NW0wODU1MnhudXkzZDg3aGI0In0.PrLIvXZeAvGAHIptw7va5w",children:[N,e(ae,{position:"top-left",showCompass:!1}),w&&e(j,{location:w,onClickEvent:B})]})})},j=m.exports.memo(({location:n,onClickEvent:i})=>{const{t:o}=b();return a(p,{position:"absolute",bottom:5,left:{base:1,md:5},p:{base:5},w:"xs",bg:"white",borderColor:"grey.100",borderStyle:"solid",borderWidth:"thin",borderRadius:"base",zIndex:5,children:[a(f,{mb:3,alignItems:"center",children:[e(U,{as:O,to:`${o("/kontorshotell",{ns:"url"})}/${n.url}`,target:"_blank",variant:"black",flex:1,overflow:"hidden",children:e(v,{fontSize:{base:"sm",md:"lg"},fontWeight:"semibold",whiteSpace:"nowrap",children:n.name})}),e(Y,{"aria-label":"Close Solution Card",size:"md",ml:6,onClick:i})]}),a(f,{alignItems:"center",children:[e(C,{outer:{fill:"blue.500",stroke:"blue.500"},inner:{fill:"white"},css:{height:"1rem",width:"1rem",marginRight:"0.25rem"}}),e(d,{color:"grey.500",children:G(n.address).replace(",",`, ${n.breadcrumbs.area.name}, `)})]}),a(f,{flexDirection:"column",display:{base:"none",md:"unset"},children:[e(f,{gap:"0.5rem",flexDirection:{base:"column",md:"row"},children:n.highlights.map((r,t)=>e(Z,{color:"light-blue",size:"font10",children:o(r)},`serpcard-${n.id}-${t}`))}),e(S,{src:n.images[0]||"",sizeSet:{base:I},alt:`${n.name}`,mt:2})]})]})});j.displayName="LocationCard";const F=m.exports.memo(({onClick:n,selected:i,...o})=>{const r={outer:{fill:"blue.500",stroke:"white"},inner:{fill:"white"}},t={outer:{fill:"white",stroke:"blue.100"},inner:{fill:"blue.500"}};return e(q,{...o,children:e(p,{as:"button",onClick:n,children:e(C,{height:10,width:7,_hover:t,_selected:t,"aria-selected":i,outer:r.outer,inner:r.inner})})})});F.displayName="LocationMarker";const ke=({location:n,...i})=>{const{t:o}=b();return a(ie,{as:O,to:`/kontorshotell/${n.url}`,role:"group",onClick:()=>{se("site_interaction",{type:"navigation",sub_type:"operator_listings"})},...i,children:[e(le,{src:n.images[0]||H,sizeSet:{base:I},width:"100%",loading:"lazy",alt:o("kontorshotell i {{city}} - {{location_name}}",{ns:"meta_data",city:n.address.city,location_name:n.name})}),e(d,{fontSize:"md",color:"blue.500",mt:4,_groupHover:{textDecoration:"underline"},children:n.name}),a(f,{alignItems:"center",mt:1,children:[e(C,{h:4,w:4,outer:{fill:"blue.500",stroke:"blue.500"},inner:{fill:"white"},mr:1}),e(d,{fontSize:"sm",color:"gray.500",children:G(n.address)})]}),n.highlights.map(r=>e(V,{borderRadius:"full",color:"light-blue",fontSize:"xs",mr:1,mt:2,children:o(r)},r))]})},Le=({provider:n})=>{const{t:i}=b();return n.locations.length>0?a(u,{children:[e(y,{mb:{base:5,md:10},children:n.name+" "+i("Anl\xE4ggningar").toLowerCase()}),e(A,{templateColumns:"repeat(auto-fill, minmax(250px, 1fr))",gap:5,children:n.locations.map(o=>e(ke,{location:o},o.id))})]}):e(oe,{})},ve=({provider:n,children:i})=>{var g;const{i18n:o}=b(),r=n.name,t=de(),h=ce(t.url,"url"),l=me(h);return a(he,{children:[e("title",{children:r},"title"),e("meta",{name:"description",content:o.language!="en"?n.operator_page_description_about:n.operator_page_description_about_en}),e("meta",{name:"robots",content:"index, follow"}),((g=n.locations[0])==null?void 0:g.images[0])&&e("meta",{property:"og:image",content:ge(n.locations[0].images[0],k)}),e("meta",{property:"og:image:width",content:k.width.toString()}),e("meta",{property:"og:image:height",content:k.height.toString()}),l&&l.map(s=>e("link",{rel:"alternate",hrefLang:s.lng,href:s.url},s.url)),l&&e("link",{rel:"alternate",hrefLang:"x-default",href:l.find(s=>
1s.lng=="sv").url}),l&&e("link",{rel:"canonical",href:l.find(s=>s.lng==o.language).url}),i]})},ze=({match:n})=>{var l;const{t:i,i18n:o}=b(),r=ue(pe({id:n.params.id}));if(r.isLoading||r.isIdle)return e(T,{children:e($,{maxW:"container.lg",minH:2e3,children:a(E,{children:[e(W,{children:e(L,{h:10})}),e(M,{position:"relative",children:e(L,{h:52})}),a(P,{children:[e(D,{noOfLines:6,spacing:4,mb:14}),e(D,{noOfLines:6,spacing:4})]})]})})});if(r.isError)return r.error.statusCode==404?e(be,{}):e(fe,{error:r.error});const t=r.data,h=t.founding_date&&ye.PlainDate.from(t.founding_date);return a(T,{children:[e(ve,{provider:t}),a($,{maxW:"container.lg",minH:2e3,children:[a(E,{gridTemplateRows:"min-content 5.5rem 5.5rem 1fr",gridTemplateColumns:{base:"1fr",lg:"66% 1fr"},children:[e(W,{children:e(v,{as:"h1",children:t.name})}),e(M,{position:"relative",height:"fit-content",children:e(S,{src:((l=t.locations[0])==null?void 0:l.images[0])||H,sizeSet:{base:R,md:I,lg:we},w:"100%",css:{aspectRatio:"18 / 10"},alt:t.name})}),a(P,{children:[a(u,{display:"flex",gap:6,flexWrap:"wrap",borderTop:"none",alignItems:"center",children:[a(p,{children:[a(d,{fontWeight:"semibold",fontSize:{base:"xl",md:"2xl"},children:[t.locations.reduce((g,{size:s})=>g+s,0).toLocaleString("sv-SE"),"m\xB2"]}),e(d,{fontSize:"medium",color:"grey.500",children:i("Total kontorsyta")})]}),t.locations.length>0&&a(p,{children:[e(d,{fontWeight:"semibold",fontSize:{base:"xl",md:"2xl"},children:t.locations.length}),e(d,{fontSize:"medium",color:"grey.500",children:i("Antal anl\xE4ggningar")})]}),h&&e(V,{borderRadius:"full",height:"max-content",alignSelf:"center",py:3,px:5,children:`${i("Startades")} ${xe(h.toLocaleString(`${o.language}-SE`,{year:"numeric",month:"short"}))}`}),e(p,{children:e(S,{src:t.logo,sizeSet:{base:R},maxH:"6rem",maxW:"6rem"})})]}),a(u,{children:[e(y,{children:`${i("Om")} ${t.name}`}),e(d,{whiteSpace:"pre-wrap",color:"grey.500",children:o.language!="en"?t.operator_page_description_about:t.operator_page_description_about_en})]}),a(u,{borderTop:"none",children:[e(y,{children:`${i("Varf\xF6r")} ${t.name}`}),e(d,{whiteSpace:"pre-wrap",color:"grey.500",children:o.language!="en"?t.operator_page_description_why:t.operator_page_description_why_en})]}),e(Se,{provider:t}),a(u,{children:[e(y,{children:i("Alla {{provider}} anl\xE4ggningar",{provider:t.name})}),e(_e,{locations:t.locations})]})]})]}),e(Le,{provider:t})]})]})};export{ze as default};

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.