PageSourceSearch

https://www.maklarringen.se/_next/static/chunks/9631-e53c3c95183e2717.js

js maklarringen.se collected 2026-09-25 20:48:51 UTC 114,280 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9631],{99276:function(e,n,t){var l=t(52676),r=t(81884),s=t(50864),a=t(85344),i=t(65457),o=t(96569),c=t(82527),d=t(178);n.Z=e=>{let{_id:n,ForeignOffice:t,ConnectedOffices:u,title:m}=e,p=(0,c.useTranslations)("components.pages.brokerOfficePage"),g=u?null==u?void 0:u.reduce((e,n)=>(e.push(n._id),e),[n]):[n];return(0,l.jsx)(s.rU,{href:"".concat(t?i.Un:i.ps,"?").concat(a.VJ,"=").concat(encodeURIComponent((0,o.B)(g)),"&").concat(a.MZ,"=").concat(m),children:(0,l.jsxs)(d.z,{variant:"link",className:"flex gap-1 underline-offset-8 col-span-4 self-end",children:[p("showAllFromOffice")," ",(0,l.jsx)(r.A,{})]})})}},78074:function(e,n,t){t.d(n,{FE:function(){return v},S7:function(){return y}});var l=t(52676),r=t(28026),s=t.n(r);t(57872);var a=t(18557),i=t.n(a),o=t(81575),c=t.n(o),d=t(18080),u=t.n(d),m=t(2733),p=t(82527),g=t(75271),x=t(74436),f=t(65341),h=t(58945);s().extend(c()),s().extend(i()),s().extend(u()),s().locale("sv");let v=e=>{let{data:n,Currency:t,isSold:r=!1}=e;return(0,l.jsx)("div",{className:"w-full grid grid-cols-6 md:grid-cols-12 gap-x-8",children:[1,2].map(e=>1===e?(0,l.jsx)("div",{className:"col-span-6 md:col-start-1",children:null==n?void 0:n.map((e,r)=>r>(n.length-1)/2||(null==e?void 0:e.title)!=="V\xe5ning"&&(null==e?void 0:e.text)===0?null:(0,l.jsx)("div",{className:"w-full border-[hsla(0,0%,16%,.08)] first:border-t-[1px] border-b-[1px]",children:(0,l.jsx)(j,{item:e,Currency:t})},"".concat(e.title,"-").concat(r)))},"tableDataSplitter"+e):(0,l.jsx)("div",{className:"col-span-6 md:col-start-7",children:null==n?void 0:n.map((e,s)=>s<=(n.length-1)/2||(null==e?void 0:e.title)!=="V\xe5ning"&&(null==e?void 0:e.text)===0||r&&((null==e?void 0:e.title)==="Tilltr\xe4desdatum"||(null==e?void 0:e.title)==="M\xf6jligt tilltr\xe4de")?null:(0,l.jsx)("div",{className:(0,m.cn)("w-full border-[hsla(0,0%,16%,.08)] sm:first:border-t-[1px] border-b-[1px]"),children:(0,l.jsx)(j,{item:e,Currency:t})},"".concat(e.title,"-").concat(s)))},"tableDataSplitter"+e))})},j=e=>{let n,{item:t,Currency:r}=e,a=(0,p.useTranslations)("common");if((null==t?void 0:t.text)===null)return null;(null==t?void 0:t.isNumber)&&(null==t?void 0:t.text)&&(t.text=parseFloat(t.text));let i=t.title;"AssessEvalUnit"===t.type&&(i=(0,m.ER)(t.title)),"boolean"==typeof t.text?n=t.text?"".concat(a("yes")):"".concat(a("no")):"number"==typeof t.text?0!==t.text?n=t.dontFormat?t.text.toString():t.isCurrency?(0,m.mA)(t.text,r):t.isDistance?"".concat((0,m.uf)(t.text)," m"):(0,m.uf)(t.text,"ha"===t.extraText):"V\xe5ning"===t.title&&(n="0"):t.text&&(n=t.longText&&t.canBeTranslated?(0,m.tl)(t.text):t.text);let o=t.extraText,c=function(e){var n;let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD";return null===(n=s()(e))||void 0===n?void 0:n.utcOffset(0).format(t)};return(t.isDate&&n&&(n=c(t.text)),t.extraIsDate&&t.extraText&&(o=c(t.extraText)),n)?(t.prefixText&&(n="".concat(t.prefixText).concat(n)),(0,l.jsx)("div",{className:"flex flex-col",children:(0,l.jsxs)("div",{className:"grid grid-cols-6 sm:grid-cols-12 py-4 gap-x-2",children:[(0,l.jsx)(f.u,{strong:!0,small:!0,className:"col-span-6 break-words hyphens-auto",children:i}),(0,l.jsxs)(f.u,{small:!0,className:"text-wrap text-start col-span-6",children:[t.longText?y(null==n?void 0:n.toString(),!0):n,t.isCurrency||t.isDistance?"":" ","-"!==n?o:null]})]})})):null},y=function(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return null==e?void 0:e.split("\n").map((e,r)=>(0,l.jsx)(g.Fragment,{children:(0,l.jsx)(f.u,{small:n,strong:t,as:"p",className:"\r"===e?"mt-2":"",children:e})},e+r))};n.ZP=e=>{let{smallOverview:n,Currency:t,isAbroad:r,isSold:s}=e,a=null==n?void 0:n.filter(e=>r&&"utland"===e.onlySpecificRegion?null!==e.text:(!r||"sverige"!==e.onlySpecificRegion)&&(r||"sverige"!==e.onlySpecificRegion?(!!r||"utland"!==e.onlySpecificRegion)&&null!==e.text:null!==e.text)),i=(0,p.useTranslations)("components.cards");return(0,l.jsx)("div",{className:"flex",children:(0,l.jsxs)(h.M,{className:"w-full px-4 py-12 md:p-12 bg-neutrals-neutral-1 gap-y-0 md:gap-y-0 rounded-2xl",children:[(0,l.jsx)(h.o,{span:"12",start:"1",className:"mb-8",children:(0,l.jsx)(x.Z,{as:"h3",disableHeadingFont:!0,children:i("overview")})}),(0,l.jsx)(h.o,{span:"12",start:"1",className:"flex flex-col md:flex-row justify-between gap-x-10 md:mb-8",children:(0,l.jsx)(v,{data:a,Currency:t,isSold:s})})]})})}}
1,62534:function(e,n,t){var l=t(52676),r=t(2733),s=t(14928),a=t(58513);n.Z=e=>{let{children:n,image:t,className:i}=e;return(0,l.jsxs)(a.Vq,{children:[(0,l.jsx)(a.hg,{className:(0,r.cn)("cursor-zoom-in relative w-full h-full",i),children:n}),(0,l.jsx)(a.cZ,{className:"min-w-full h-screen",children:(0,l.jsx)(s.Z,{src:t.Url,alt:"".concat(t.Text),withoutAspectRatio:!0,sizes:"100vw"})})]})}},4145:function(e,n,t){t.d(n,{Z:function(){return _}});var l=t(52676),r=t(99577),s=t(50864),a=t(65457),i=t(67544),o=t(82527),c=t(75271),d=t(74436),u=t(65341),m=t(14928),p=t(58945),g=t(32789),x=t(178),f=t(12793),h=t(48179),v=t(45031),j=e=>{let{image:n,offset:t="500px",isFloorPlan:r=!1}=e,s=(0,c.useRef)(null),[a,i]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{let e=document.querySelector("#scrollArea");if(!e||!s.current)return;let n=new IntersectionObserver(e=>{let[n]=e;a||i(n.isIntersecting)},{root:e,rootMargin:"".concat(t," 0px ").concat(t," 0px"),threshold:0});return n.observe(s.current),()=>{n.disconnect()}},[t]),(0,l.jsx)("div",{className:"h-full",ref:s,children:a&&n.Url&&(0,l.jsx)(m.Z,{withoutAspectRatio:!0,src:n.Url,alt:"Image number ".concat(n.OrderNumber," with text ").concat(n.Text),className:"override-static ".concat(r?"object-contain":"object-cover"),loading:"eager",priority:!0,sizes:"(max-width: 768px) 90vw, (max-width: 1440px) 85vw, 1210px"})})};let y="Planritningar",b=()=>(0,l.jsx)(p.M,{className:"pt-[4.5rem] md:gap-4",children:(0,l.jsx)(p.o,{start:"1",span:"12",children:(0,l.jsx)(s.rU,{href:a.ey,children:(0,l.jsx)(m.Z,{src:"/SP-image-banner.png",alt:"S\xf6derberg and partners info banner",aspectRatio:2188/618})})})}),N=()=>(0,l.jsx)(p.M,{className:"pt-[4.5rem] md:gap-4",children:(0,l.jsx)(p.o,{start:"1",span:"12",children:(0,l.jsx)(s.rU,{href:a.H0,target:"_blank",children:(0,l.jsx)(m.Z,{src:"/boneo-image-banner.png",alt:"S\xf6derberg and partners info banner",aspectRatio:2190/544})})})}),k=()=>(0,l.jsx)(p.M,{className:"pt-[4.5rem] md:gap-4",children:(0,l.jsx)(p.o,{start:"1",span:"12",children:(0,l.jsx)(m.Z,{src:"/denna-bostad-har-status.png",alt:"S\xf6derberg and partners info banner",aspectRatio:2e3/760})})}),w=e=>{let{ObjectVitecType:n}=e;return(0,l.jsx)(p.M,{className:"pt-[4.5rem] md:gap-4",children:(0,l.jsx)(p.o,{start:"1",span:"12",children:(0,l.jsxs)(s.rU,{href:a.OA,children:[(n===i.qS.house||n===i.qS.cottage||n===i.qS.condominium)&&(0,l.jsx)(m.Z,{src:"/villa-ringmarkt.png",alt:"Ringm\xe4rkt Villa info banner",aspectRatio:2e3/760}),n===i.qS.housingCooperative&&(0,l.jsx)(m.Z,{src:"/bostadsratt-ringmarkt.png",alt:"Ringm\xe4rkt bostadsr\xe4tt info banner",aspectRatio:2e3/760})]})})})},S=()=>(0,l.jsx)(p.M,{className:"pt-[4.5rem] md:gap-4",children:(0,l.jsx)(p.o,{start:"1",span:"12",children:(0,l.jsx)(s.rU,{href:a.dg,children:(0,l.jsx)(m.Z,{src:"/habeno-image-banner.png",alt:"Habeno utland info banner",aspectRatio:1200/340})})})}),A=()=>(0,l.jsx)(p.M,{className:"pt-[4.5rem] md:gap-4 mb-14 md:mb-24",children:(0,l.jsx)(p.o,{start:"1",span:"12",children:(0,l.jsx)(s.rU,{href:a.us,children:(0,l.jsx)(m.Z,{src:"/startklar-image-banner.png",alt:"startklar info banner",aspectRatio:2192/616})})})});var _=e=>{var n;let{HeadingText:t,DrawerTriggerChild:_,Images:C,MarketingMethods:T,ObjectVitecType:B,links:I,Country:O,withForm:D,showActions:F=!0,CTA:M,onScrollToInterests:P,onOpenFormDialog:V}=e,Z=(0,o.useTranslations)("common.buttons"),L=null==C?void 0:C.find(e=>e.Category===y),[H,R]=c.useState(!1),E=()=>{let e="floor-plan-".concat(null==L?void 0:L.OrderNumber),n=document.getElementById(e);n?n.scrollIntoView({behavior:"smooth"}):console.log("Floor plan element not found")};return(0,l.jsxs)(f.dy,{open:H,direction:"bottom",dismissible:!1,onOpenChange:R,children:[(0,l.jsx)(f.Qz,{asChild:!0,children:_}),(0,l.jsxs)(f.sc,{className:"h-screen mt-0 w-full rounded-none bg-base-white",children:[(0,l.jsx)(f.OX,{className:"flex flex-row items-center justify-between py-3 px-4 mt-[100px] md:mt-0",children:(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[t&&(0,l.jsx)(d.Z,{as:"h3",children:t}),(0,l.jsx)(f.uh,{className:"relative md:absolute md:right-4 md:top-4 z-10",children:(0,l.jsx)(r.T,{stroke:"black"})})]})}),(0,l.jsxs)(h.x,{className:"flex-grow overflow-auto",onClick:e=>{e.preventDefault(),e.stopPropagation()},children:[I&&(null==I?void 0:I.length)>0&&I.map(e=>e?(0,l.jsx)(v.Z,{link:e,useGridLayout:!0},e._key):null),C&&C.length>0&&C.map((e,n)=>(0,l.jsxs)(c.Fragment,{children:[(0,l.jsx)(p.M,{id:e.Category===y?"floor-plan-".concat(e.OrderNumber):"",className:"pt-[1.5rem] md:pt-[2.5rem] md:gap-4",children:(0,l.jsx)(p.o,{start:"1",span:"12",id:n<3?"image-".concat(n+1):void 0,children:(0,l.jsx)(g.o,{ratio:1.5,className:"absolute top-0 right-0 bottom-0 left-0 flex flex-row",children:(0,l.jsxs)("div",{className:"flex flex-col h-full max-w-full mx-auto relative",style:{maxHeight:"calc(100% - 2em)"},children:[n<3?(0,l.jsx)(m.Z,{withoutAspectRatio:!0,src:e.Url,alt:"Image number ".concat(e.OrderNumber," with text ").concat(e.Text),className:"object-cover override-static",loading:"eager",priority:!0,sizes:"(max-width: 768px) 90vw, (max-width: 1440px) 85vw, 1210px"}):(0,l.jsx)(j,{image:e,isFloorPlan:e.Category===y,offset:"500px"}),e.Text&&(0,l.jsx)("div",{className:"mt-2 text-left",children:(0,l.jsx)(u.u,{children:e.Text})})]})})})}),(1===n||n===C.length-1&&C.length<2)&&(B===i.qS.house||B===i.qS.housingCooperative||B===i.qS.cottage||B===i.qS.condominium)&&(null==T?void 0:T.map(n=>"Ringm\xe4rkt"===n?(0,l.jsx)(w,{ObjectVitecType:B},e._key+"-"+n):"Status"===n?(0,l.jsx)(k,{},"status-".concat(n)):void 0)),(4===n||n===C.length-1&&C.length<9)&&7!==B&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(b,{})}),(6===n||n===C.length-1&&C.length<9)&&7!==B&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(N,{})}),(5===n||n===C.length-1&&C.length<6)&&7===B&&("Spanien"===O||"Portugal"===O)&&(0,l.jsx)(S,{})]},e._key||n)),7!==B&&(0,l.jsx)(A,{})]}),F&&(0,l.jsxs)("div",{className:"bg-primary md:bg-transparent w-full md:w-auto flex justify-center absolute bottom-0  md:bottom-6 md:left-1/2 md:-translate-x-1/2",children:[L&&(0,l.jsx)(x.z,{onClick:e=>{e.preventDefault(),E()},className:"rounded-tl-full rounded-bl-full py-6 relative right-[-1px]",children:Z("floorPlan")}),M&&(0,l.jsx)(x.z,{className:"rounded-none py-6  ".concat(!L&&"rounded-tl-full rounded-bl-full"),onClick:()=>{R(!1),null==P||P()},children:(0,l.jsx)(s.rU,{href:null!==(n=null==M?void 0:M.link)&&void 0!==n?n:"",children:M.title})}),D&&(0,l.jsx)(x.z,{onClick:()=>{R(!1),null==V||V()},className:"rounded-tr-full rounded-br-full  py-6 relative left-[-1px]",children:Z("freeV
1aluation")}),!D&&(0,l.jsx)(x.z,{className:"rounded-tr-full rounded-br-full  py-6 relative left-[-1px]",onClick:()=>R(!1),children:(0,l.jsx)(s.rU,{href:a.f7,children:Z("findYourDreamHome")})})]})]})]})}},22195:function(e,n,t){t.d(n,{Z:function(){return D}});var l=t(52676),r=t(2733),s=t(50864),a=t(82527),i=t(37168),o=t(75271),c=t(74436),d=t(65341),u=t(54590),m=t(99577),p=t(81884),g=t(65457),x=t(28026),f=t.n(x);t(57872);var h=t(18557),v=t.n(h),j=t(81575),y=t.n(j),b=t(18080),N=t.n(b),k=t(12793),w=t(48179);f().extend(y()),f().extend(v()),f().extend(N()),f().locale("sv");var S=e=>{let{bids:n,Currency:t,ProjectType:i,internetSettings:u,isOpen:x=!1,onOpenChange:h}=e,v=(0,a.useTranslations)("components.drawers"),[j,y]=o.useState(!1);if((0,o.useEffect)(()=>{x&&!j&&y(x)},[x]),!u||(null==u?void 0:u.bidSetting)==="DontShowBidding"||i)return null;let b=null==n?void 0:n.reduce((e,n)=>n.amount>e.amount?n:e,n[0]),{bidSetting:N}=u||{},S="ShowBidding"===N?v("biddingInProgress"):"ShowHighestBid"===N?v("highestBid"):v("currentBid");return(0,l.jsxs)(k.dy,{open:j,direction:"right",dismissible:!1,onOpenChange:e=>{y(e),null==h||h(e)},children:[(0,l.jsx)(k.Qz,{className:"self-start",children:(0,l.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,l.jsx)("div",{className:"size-4 rounded-full bg-semantic-red"}),(0,l.jsx)(d.u,{children:S}),b&&(0,l.jsx)(d.u,{strong:!0,children:(0,r.mA)(Number(b.amount),t)}),(0,l.jsx)(p.A,{})]})}),(0,l.jsxs)(k.sc,{className:"h-screen top-0 right-0 left-auto mt-0 w-full md:w-[26.25rem] rounded-none bg-base-white",children:[(0,l.jsxs)(k.OX,{className:"p-0 border-b-[1px] border-[hsla(0,0%,16%,.08)]",children:[(0,l.jsx)(d.u,{strong:!0,className:"text-center py-[1.375rem]",children:v("biddingInProgress")}),(0,l.jsx)(k.uh,{className:"absolute right-3 top-3 p-4",children:(0,l.jsx)(m.T,{className:"size-4"})})]}),(0,l.jsx)(w.x,{children:(0,l.jsxs)("div",{className:"flex flex-col px-6 py-2",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-2 py-10",children:[(0,l.jsx)(d.u,{small:!0,children:S}),b&&(0,l.jsx)(c.Z,{as:"h3",disableHeadingFont:!0,children:(0,r.mA)(Number(b.amount),t)})]}),n&&"ShowBiddhistory"===N&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"flex justify-between border-y-[1px] border-[hsla(0,0%,16%,.08)] py-4",children:[(0,l.jsx)(d.u,{small:!0,children:v("amountDate")}),(0,l.jsx)(d.u,{small:!0,children:v("bidder")})]}),(0,l.jsx)("div",{children:n.map(e=>{let n=f()(e.dateAndTime).utcOffset(0),s=n.format("D MMMM YYYY"),a=n.format("HH:mm");return(0,l.jsx)("div",{className:"flex flex-col my-4 gap-6",children:(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsx)(d.u,{small:!0,strong:!0,children:(0,r.mA)(Number(e.amount),t)}),(0,l.jsx)(d.u,{small:!0,strong:!0,children:e.alias})]}),(0,l.jsx)("div",{children:(0,l.jsxs)(d.u,{small:!0,className:"text-[#292827b3]",children:[s,", ",v("timeShort")," ",a]})})]})},e.id)})})]})]})}),(0,l.jsx)(k.ze,{className:"border-t-[1px] border-[hsla(0,0%,16%,.08)] py-6 flex items-center",children:(0,l.jsxs)(s.rU,{href:g.Gl,className:"flex items-center gap-2 hover:underline underline-offset-8",children:[(0,l.jsx)(d.u,{small:!0,children:v("readMoreAboutBidding")}),(0,l.jsx)(p.A,{})]})})]})]})},A=t(4145),_=t(14928),C=t(178),T=t(74023),B=t(58945),I=t(73149),O=t.n(I),D=e=>{var n,t,m,p;let{pageData:{StreetAddress:g,Municipality:x,AreaName:f,Price:h,Currency:v,LivingSpace:j,MonthlyFee:y,SaleHeadline:b,ObjectVitecType:N,Status:k,IsPreSale:w,ProjectType:I,Images:D,BiddingActive:F,Country:M,links:P,MarketingMethods:V,NewConstruction:Z,OverviewArea:L,PlotArea:H,TotalPlotArea:R,LeasePurchase:E,bids:U,internetSettings:q,CommercialAreaData:Y},withForm:z,showActions:$,CTA:G,onScrollToInterests:Q,onOpenFormDialog:W}=e,X=(0,a.useTranslations)("components.layouts"),J=(0,a.useTranslations)("common.buttons"),[K,ee]=(0,o.useState)(!1),en=(0,i.useSearchParams)(),et=(0,s.tv)(),el=(0,s.jD)(),er=null!==(p=null!==(m=null!==(t=null!==(n=null==Y?void 0:Y.area)&&void 0!==n?n:L)&&void 0!==t?t:R)&&void 0!==m?m:H)&&void 0!==p?p:j,es=(0,r.FF)({values:[{value:(0,r.mA)(h,v)},{value:er&&(0,r.uf)(er,!!L),suffix:L?" ha":" m\xb2"},{value:(0,r.mA)(y,v),suffix:X("monthShort")}],returnAsArray:!0}),ea=(0,r.FF)({values:[{value:x},{value:f}],joinBy:", "}),ei=null==D?void 0:D.slice(0,3);(0,o.useEffect)(()=>{(null==en?void 0:en.get("openBids"))&&(ee(!0),et.replace(el))},[en]);let eo="(max-width: 768px) 100vw, (max-width: 1024px) 40vw, 650px";return(0,l.jsxs)(l.Fragment,{children:[D&&(0,l.jsxs)(B.M,{className:"pt-[3rem] gap-4 md:gap-4",children:[ei&&ei.length>0?(0,l.jsx)(B.o,{start:"1",span:1===ei.length?"12":"6",className:"min-h-[50vh] md:min-
1h-0 relative",children:(0,l.jsx)(O(),{href:"#image-1",className:"block",replace:!0,children:(0,l.jsxs)(_.Z,{aspectRatio:1===ei.length?2:1,src:ei[0].Url,alt:g,className:"object-cover",priority:!0,loading:"eager",quality:100,sizes:"(max-width: 768px) 100vw, (max-width: 1024px) 40vw, 850px",withoutAspectRatio:1!==ei.length,children:[(0,l.jsx)(u.Z,{status:k,IsPreSale:w,BiddingActive:F,MarketingMethods:V,NewConstruction:Z,LeasePurchase:E,onBiddingClick:e=>{e.preventDefault(),e.stopPropagation(),ee(!0)}}),(0,l.jsx)(A.Z,{HeadingText:g,DrawerTriggerChild:(0,l.jsx)("div",{className:"absolute left-0 top-0 w-full h-full cursor-pointer"}),Images:D,MarketingMethods:V,ObjectVitecType:N,links:P,Country:M,withForm:z,showActions:$,CTA:G,onScrollToInterests:Q,onOpenFormDialog:W})]})})}):(0,l.jsx)(B.o,{start:"1",span:"12",children:(0,l.jsx)(_.Z,{src:"",className:"object-cover",alt:"temp-image",quality:100,aspectRatio:2,sizes:eo})}),(0,l.jsx)(B.o,{start:"7",span:"6",children:(0,l.jsxs)("div",{className:"flex flex-col gap-y-4",children:[ei&&ei.length>1&&(0,l.jsx)(O(),{href:"#image-2",className:"block",replace:!0,children:(0,l.jsx)(_.Z,{aspectRatio:2===ei.length?1:2,src:ei[1].Url,quality:100,alt:"Bild nummer tv\xe5",className:"object-cover",sizes:eo,priority:!0,loading:"eager",children:(0,l.jsx)(A.Z,{HeadingText:g,DrawerTriggerChild:(0,l.jsx)("div",{className:"absolute left-0 top-0 w-full h-full cursor-pointer"}),Images:D,MarketingMethods:V,ObjectVitecType:N,links:P,Country:M,withForm:z,CTA:G,onScrollToInterests:Q,onOpenFormDialog:W})})}),ei&&ei.length>2&&(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(O(),{href:"#image-3",className:"block",replace:!0,children:(0,l.jsx)(_.Z,{src:ei[2].Url,aspectRatio:2,alt:"Bild nummer tre",className:"object-cover",quality:100,sizes:eo,priority:!0,loading:"eager",children:(0,l.jsx)(A.Z,{HeadingText:g,DrawerTriggerChild:(0,l.jsx)("div",{className:"absolute left-0 top-0 w-full h-full cursor-pointer"}),Images:D,MarketingMethods:V,ObjectVitecType:N,links:P,Country:M,withForm:z,CTA:G,onScrollToInterests:Q,onOpenFormDialog:W})})}),(0,l.jsx)(A.Z,{HeadingText:g,DrawerTriggerChild:(0,l.jsx)(C.z,{className:"absolute bottom-4 right-4 px-3 py-1 h-7 text-sm ",children:(0,l.jsxs)(d.F,{small:!0,strong:!0,children:[J("allImages")," (",D.length,")"]})}),Images:D,MarketingMethods:V,ObjectVitecType:N,links:P,Country:M,withForm:z,showActions:$,CTA:G,onScrollToInterests:Q,onOpenFormDialog:W})]})]})})]}),(0,l.jsx)(B.M,{className:"pt-10 pb-10 md:pt-8 md:pb-[3rem]",children:(0,l.jsxs)(B.o,{start:"1",span:"12",className:"flex flex-col md:flex-row md:justify-between gap-y-3",children:[(0,l.jsx)("div",{className:"flex flex-col gap-y-3",children:(g||(0,r.tl)(b))&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.Z,{as:"h1",children:null!=g?g:(0,r.tl)(b)}),(0,l.jsx)(S,{bids:U,isOpen:K,Currency:v,ProjectType:I,internetSettings:q,onOpenChange:ee})]})}),(0,l.jsxs)("div",{className:"flex flex-col min-w-fit md:items-end",children:[(0,l.jsx)(d.u,{strong:!0,children:ea}),(0,l.jsx)(T.F,{stringArray:es})]})]})})]})}},20036:function(e,n,t){t.d(n,{e:function(){return m}});
1var l=t(52676),r=t(2733),s=t(50864),a=t(67544),i=t(82527),o=t(65341),c=t(92018),d=t(178),u=t(58945);let m=e=>{var n;let{leasePurchase:t,withForm:m,formSettings:p,CTA:g}=e,x=(0,i.useTranslations)("common.buttons");return(0,l.jsxs)(u.M,{className:"flex flex-col md:flex-row md:gap-x-2 gap-y-2",children:[t&&(0,l.jsxs)("a",{className:"mr-1 block whitespace-nowrap self-center md:self-start",href:"https://bodil.se/?utm_source=maklarringen&utm_medium=banner",target:"_blank",children:[(0,l.jsx)("span",{className:"text-[0.8rem]",children:"Hyrk\xf6p via"}),(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 80 24",className:"h-3",role:"img",children:(0,l.jsx)("path",{d:"M77.836 19.539a1.491 1.491 0 0 1-2.03-.084 1.51 1.51 0 0 1-.442-1.067V.777h-4.103v17.61a5.608 5.608 0 0 0 8.315 4.915l-1.74-3.764ZM66.051 8.295h-4.103v15.432h4.103V8.295ZM65.81 4.487A2.565 2.565 0 1 0 62.184.86a2.565 2.565 0 0 0 3.628 3.627ZM52.682 7.623a8.836 8.836 0 1 0 0 14.91v1.197h4.104V.777h-4.104v6.846ZM47.95 19.825a4.732 4.732 0 1 1 4.732-4.732 4.738 4.738 0 0 1-4.732 4.719v.013ZM27.937 6.244a8.836 8.836 0 1 0 8.835 8.836 8.843 8.843 0 0 0-8.835-8.836Zm0 13.568a4.733 4.733 0 1 1 0-9.465 4.733 4.733 0 0 1 0 9.465ZM13.366 9.066c.392-.72.592-1.53.581-2.35A6.724 6.724 0 0 0 7.228 0H0v23.836h8.647a8.141 8.141 0 0 0 4.72-14.77ZM3.98 3.976h3.25a2.745 2.745 0 0 1 2.742 2.74c0 .735-.828 1.287-2.719 2.388a22.95 22.95 0 0 0-3.273 2.15V3.977Zm4.668 15.886H3.98c.037-4.318 2.573-5.78 5.26-7.326.36-.207.73-.42 1.093-.642a4.162 4.162 0 0 1-1.682 7.958l-.003.01Z"})})]}),m&&(0,l.jsx)(c.Z,{VitecLeadType:a.u3.FVPopupObject,VitecCustomerId:null==p?void 0:p.officeId,BrokerId:null==p?void 0:p.brokerId,children:(0,l.jsx)(o.u,{small:!0,children:x("freeValuation")})}),g&&(0,l.jsx)(d.z,{variant:g.variant,className:(0,r.cn)("rounded-2xl","ghost"===g.variant?"hover:bg-neutrals-neutral-1 hover:text-base-black":""),children:(0,l.jsx)(s.rU,{href:null!==(n=null==g?void 0:g.link)&&void 0!==n?n:"",children:g.title})})]})};n.Z=e=>{let{withForm:n=!0,leasePurchase:t=!1,formSettings:r,links:a,CTA:i}=e;return(0,l.jsx)("div",{className:"w-screen z-10 border-b-[1px] border-[hsla(0,0%,16%,.08)] sticky top-0 bg-base-white",children:(0,l.jsxs)("div",{className:"flex justify-between gap-x-8 py-4 px-4 md:pl-24 md:pr-0 wrap-mx max-w-[var(--wrap-width)] overflow-auto",children:[(0,l.jsx)("div",{className:"flex items-center gap-6 text-nowrap",children:null==a?void 0:a.map(e=>{var n;return(0,l.jsx)(s.rU,{className:"hover:underline underline-offset-8 whitespace-nowrap",href:e.link,onClick:()=>{e.CTALinkAction&&e.CTALinkAction()},replace:null===(n=e.replace)||void 0===n||n,children:(0,l.jsx)(o.u,{small:!0,children:e.title})},e.title)})}),(0,l.jsx)("div",{className:"hidden md:block",children:(0,l.jsx)(m,{leasePurchase:t,withForm:n,formSettings:r,CTA:i})})]})})}},22487:function(e,n,t){var l=t(52676),r=t(95651),s=t(2733),a=t(85344),i=t(75271),o=t(65341),c=t(81461);n.Z=e=>{let{GroupItems:n,groupValue:t,setGroupValue:d,addAsFilter:u=!1,className:m,children:p,searchParamsConfig:g={}}=e,{handleChangeValue:x}=(0,r.Z)({searchParamName:a.j2,...g});return(0,i.useEffect)(()=>{u&&x(t)},[t]),(0,l.jsxs)(c.t,{type:"single",defaultValue:t,onValueChange:e=>{e&&d(e)},value:t,className:(0,s.cn)("flex justify-start px-4 md:px-24 my-8 wrap-mx max-w-[var(--wrap-width)]",m),children:[(0,l.jsx)("div",{className:"flex flex-wrap gap-2",children:n.map(e=>e.hide?null:(0,l.jsx)(c.G,{value:e.value,className:"col-span-6 gap-1 rounded-[999px] px-5 bg-[#F4F4F4] border hover:border-[#282828]",children:(0,l.jsx)(o.u,{small:!0,children:e.title})},e.value))}),p]})}},65e3:function(e,n,t){var l=t(52676),r=t(81884),s=t(82527),a=t(74436),i=t(65341),o=t(62534),c=t(4145),d=t(14928),u=t(58945),m=t(32789),p=t(178),g=t(45031);n.Z=e=>{let{Images:n,StreetAddress:t,MarketingMethods:x,ObjectVitecType:f,links:h,Country:v,withForm:j,showActions:y,CTA:b,onScrollToInterests:N,onOpenFormDialog:k}=e,w=(0,s.useTranslations)("components.pages"),S=(0,s.useTranslations)("common.buttons"),A=null==n?void 0:n.slice(0,2),_=null==n?void 0:n.slice(2,5);return(0,l.jsxs)(u.M,{id:"images",className:"py-[2.5rem] md:py-[4.5rem] gap-2 md:gap-4",children:[(0,l.jsxs)(u.o,{span:"12",start:"1",className:"mb-4 flex justify-between",children:[(0,l.jsx)(a.Z,{as:"h2",children:w("photos")}),n&&n.length>5&&(0,l.jsx)(c.Z,{HeadingText:t,DrawerTriggerChild:(0,l.jsxs)(p.z,{variant:"ghost",className:"flex gap-1 hover:bg-neutrals-neutral-1 hover:text-black",children:[S("showAll")," ",(0,l.jsx)(r.A,{})]}),Images:n,MarketingMethods:x,ObjectVitecType:f,links:h,Country:v,withForm:j,showActions:y,CTA:b,onScrollToInterests:N,onOpenFormDialog:k})]}),h&&(null==h?void 0:h.length)>0&&(0,l.jsx)(u.o,{start:"1",span:"12",className:"flex flex-col gap-y-4",children:h.map(e=>e?(0,l.jsx)(g.Z,{link:e},e._key):null)}),A&&A.length>0&&A.map((e,n)=>(0,l.jsx)(u.o,{span:"6",start:(n+6*n).toString(),className:"relative",children:(0,l.jsx)(o.Z,{image:e,children:(0,l.jsx)(d.Z,{src:e.Url,className:"object-cover",alt:"Bild nr ".concat(e.OrderNumber),aspectRatio:1.5,loading:"eager",sizes:"(max-width: 768px) 100vw, (max-width: 1440px) 45vw, 650px"})})},e._key)),_&&_.length>0&&_.map((e,s)=>(0,l.jsx)(u.o,{span:"4",start:(s+4*s).toString(),className:"relative",children:(0,l.jsx)(d.Z,{src:e.Url,alt:"Bild nr ".concat(e.OrderNumber),className:"object-cover",aspectRatio:1.5,sizes:"(max-width: 768px) 100vw, (max-width: 1440px) 35vw, 450px",loading:"eager",children:s===_.length-1&&n&&(null==n?void 0:n.length)>5&&(0,l.jsx)(c.Z,{HeadingText:t,DrawerTriggerChild:(0,l.jsxs)(m.o,{ratio:1.5,className:"relative cursor-pointer",children:[(0,l.jsx)("div",{className:"absolute top-0 left-0 bg-[hsl(0,0%,0%,.5)] w-full h-full rounded-2xl"}),(0,l.jsxs)(i.u,{className:"absolute inset-0 flex items-center justify-center text-white hover:underline underline-offset-8",children:[S("showAllImages")," ",(0,l.jsx)(r.A,{stroke:"white"})]})]}),Images:n,MarketingMethods:x,ObjectVitecType:f,links:h,Country:v,withForm:j,CTA:b,onScrollToInterests:N,onOpenFormDialog:k})})},e._key))]})}},86435:function(e,n,t){var l,r=t(52676);t(72878);var s=t(82527),a=t(75271),i=t(68791),o=t(58945);let c=(new Date().getDate(),l="pk.eyJ1IjoibWFrbGFycmluZ2VuIiwiYSI6ImNtb2pyMjdqMDAxZ28yeXIyYzI2dXBjN2gifQ.OcbnMTprkbMOLbhlNsDv0Q"),d="#3FB1CE",u=e=>{let[n,t]=e.split("/").map(e=>parseFloat(e.trim()));return n>0&&t>0?n/t:2},m=(e,n,t,l)=>"https://api.mapbox.com/styles/v1/mapbox/streets-v11/static/pin-l+".concat(d.replace("#",""),"(").concat(n,",").concat(e,")/").concat(n,",").concat(e,",").concat(14,"/").concat(t,"x").concat(l,"@2x?access_token=").concat(c);n.Z=e=>{let{Latitude:n,Longitude:t,Style:l,GridSpan:p="12",GridStart:g="1",AspectRatio:x="2/1"}=e,f=(0,s.useTranslations)("components.modules"),[h,v]=(0,a.useState)(!1),[j,y]=(0,a.useState)(!1),b=(0,a.useRef)(null),[N,k]=(0,a.useState)(null);(0,a.useEffect)(()=>{var e;let n=null===(e=b.current)||void 0===e?void 0:e.clientWidth;n&&k(Math.min(Math.round(n),1200))},[]);let w=N?Math.round(N/u(x)):0,S=N?m(n,t,N,w):null;return(0,r.jsx)(o.o,{span:p,start:g,children:(0,r.jsxs)("div",{ref:b,className:"relative w-full overflow-hidden bg-neutrals-neutral-1",style:{aspectRatio:x,...l},children:[S&&(0,r.jsx)("img",{src:S,alt:"",width:null!=N?N:1200,height:w,loading:"lazy",className:"absolute inset-0 h-full w-full object-cover"}),h?(0,r.jsx)("div",{className:"absolute inset-0",style:{opacity:j?1:0,pointerEvents:j?"auto":"none",transition:"opacity 250ms ease"},children:(0,r.jsxs)(i.ZP,{reuseMaps:!0,scrollZoom:!1,initialViewState:{longitude:t,latitude:n,zoom:14},style:{width:"100%",height:"100%"},mapStyle:"mapbox://styles/mapbox/streets-v11",mapboxAccessToken:c,onLoad:()=>y(!0),children:[(0,r.jsx)(i.Jx,{longitude:t,latitude:n,color:d}),(0,r.jsx)(i.Pv,{showCompass:!1,position:"top-left"})]})}):(0,r.jsx)("button",{type:"button","aria-label":f("showOnMap"),onClick:()=>v(!0),className:"absolute inset-0 h-full w-full cursor-pointer border-0 bg-transparent p-0 focus:outline-none focus:ring-2 focus:ring-ring"})]})})}},92673:function(e,n,t){t.d(n,{Z:function(){return eA}});
1var l=t(52676),r=t(92018),s=t(2733),a=t(67544),i=t(15618),o=t.n(i),c=t(17239),d=t.n(c),u=t(95306),m=t(25165),p=t(82527),g=t(75271),x=t(74436),f=t(2831),h=t(78074),v=t(43430),j=t(60379),y=t(58945),b=t(99545),N=t(47555),k=t(73149),w=t.n(k),S=t(88016),A=t(54910),_=e=>{var n,t;let{Heading:r,Subtitle:s,ButtonText:a,VitecLeadType:i,VitecCustomerId:o,EstateData:c,OfficeName:d,OfficeEmail:u,fallbackAddress:m}=e,{register:f,handleSubmit:h,formState:{errors:k}}=(0,v.cI)({resolver:(0,j.F)(S.mv),defaultValues:{leadtype:null==i?void 0:i.toString(),officeid:o,objectid:c.objectId,objectaddress:null!==(t=null!==(n=c.objectAddress)&&void 0!==n?n:m)&&void 0!==t?t:"unknown address",estatenumber:c.estateNumber,brokerid:c.brokerId,brokername:c.brokerName,brokeremail:c.brokerEmail,officename:d,officeemail:u}}),[_,C]=(0,g.useState)(!1),[T,B]=(0,g.useState)(""),[I,O]=(0,g.useState)(!1),{executeRecaptcha:D}=(0,A.xX)(),F=(0,p.useTranslations)("common.forms"),M=async e=>{C(!0);try{if(!D){console.warn("Recaptcha not yet available");return}let n=await D("contact_form_estate"),t=await fetch("/api/create-object-interest",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...e,token:n})}),l=await t.json();if(!t.ok)throw Error(l.message||F("msgErrorNotSent"));B(F("msgSuccessSent"))}catch(e){console.error("Form submission error:",e),B(F("msgErrorNotSent")),O(!0)}finally{C(!1)}},P=e=>(null==e?void 0:e.message)||"";return(0,l.jsx)(y.o,{start:"1",span:"12",className:"pt-[4.5rem] pb-8 bg-neutrals-neutral-3 rounded-2xl grid grid-cols-6 md:grid-cols-12 gap-8",children:(0,l.jsxs)(y.o,{start:"3",span:"8",className:"flex flex-col items-center gap-12 px-6 md:px-0",children:[!T&&(0,l.jsxs)("form",{onSubmit:h(M),className:"flex flex-col items-center gap-4 w-full",children:[(0,l.jsx)("p",{className:"font-ABCArizonaFlair text-[1.5rem] md:text-[2rem] leading-[1.5] md:leading-[1.25] tracking-[-3%] font-light",children:r}),(0,l.jsx)("p",{className:"mb-4 text-center",children:s}),(0,l.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 w-full",children:[(0,l.jsxs)("div",{className:"md:mb-4",children:[(0,l.jsxs)(b._,{className:"block font-[450] mb-2 text-left text-sm",children:[F("firstNameLabel"),"*"]}),(0,l.jsx)("input",{...f("firstname"),className:"w-full p-2 border rounded-[12px] h-12"}),k.firstname&&(0,l.jsx)("p",{className:"text-red-600 text-sm",children:P(k.firstname)})]}),(0,l.jsxs)("div",{className:"md:mb-4",children:[(0,l.jsxs)(b._,{className:"block font-[450] mb-2 text-left text-sm",children:[F("lastNameLabel"),"*"]}),(0,l.jsx)("input",{...f("lastname"),className:"w-full p-2 border rounded-[12px] h-12"}),k.lastname&&(0,l.jsx)("p",{className:"text-red-600 text-sm",children:P(k.lastname)})]})]}),(0,l.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 w-full",children:[(0,l.jsxs)("div",{className:"md:mb-4",children:[(0,l.jsxs)(b._,{className:"block font-[450] mb-2 text-left text-sm",children:[F("emailLabel"),"*"]}),(0,l.jsx)("input",{...f("email"),className:"w-full p-2 border rounded-[12px] h-12",type:"email",autoComplete:"email"}),k.email&&(0,l.jsx)("p",{className:"text-red-600 text-sm",children:P(k.email)})]}),(0,l.jsxs)("div",{className:"md:mb-4",children:[(0,l.jsxs)(b._,{className:"block font-[450] mb-2 text-left text-sm",children:[F("telephoneLabel"),"*"]}),(0,l.jsx)("input",{...f("telephone"),className:"w-full p-2 border rounded-[12px] h-12",type:"tel",autoComplete:"tel"}),k.telephone&&(0,l.jsx)("p",{className:"text-red-600 text-sm",children:P(k.telephone)})]})]}),(0,l.jsx)("div",{className:"grid grid-cols-1 gap-4 w-full",children:(0,l.jsxs)("div",{className:"mb-4",children:[(0,l.jsx)(b._,{className:"block font-[450] mb-2 text-left text-sm",children:F("messageLabel")}),(0,l.jsx)("textarea",{...f("message"),className:"w-full h-32 p-2 border rounded-[12px]"})]})}),(0,l.jsx)(N.Z,{label:null!=a?a:F("btnContact"),disabled:_}),(0,l.jsxs)("span",{className:"text-xs text-center opacity-70",children:[F("mandatoryFieldNote")," ",(0,l.jsx)(w(),{href:"/om-maklarringen/integritetspolicy/",className:"underline",children:F("privacyPolicyLinkText")}
1),". ",F.rich("mandatoryRecaptchaFieldNoteFull",{privacy:e=>(0,l.jsx)(w(),{href:"https://policies.google.com/privacy",target:"_blank",rel:"noopener noreferrer",className:"underline",children:e}),terms:e=>(0,l.jsx)(w(),{href:"https://policies.google.com/terms",target:"_blank",rel:"noopener noreferrer",className:"underline",children:e})})]})]}),T&&(0,l.jsxs)("div",{className:"min-h-32",children:[(0,l.jsx)(x.Z,{as:"h2",className:"text-center mb-4",children:I?"!":F("interestThankYouHeading")}),(0,l.jsx)("p",{className:"mb-4 text-center",children:T})]})]})})},C=t(22195),T=t(20036),B=t(62534),I=t(14928),O=e=>{let{Images:n}=e,t=(0,p.useTranslations)("components.modules"),r=n?n.filter(e=>"Planritningar"===e.Category):[];return r.length?(0,l.jsxs)("div",{className:"w-screen bg-neutrals-neutral-3",children:[(0,l.jsx)(y.M,{id:"floor-plan",className:"pt-[4.5rem] pb-8",children:(0,l.jsx)(y.o,{span:"12",start:"1",children:(0,l.jsx)(x.Z,{as:"h2",children:t("floorPlans")})})}),(0,l.jsx)(y.M,{className:"pb-[4.5rem] gap-8 md:gap-8",children:r.map((e,n)=>(0,l.jsx)(y.o,{span:"6",start:n%2!=0?"7":"1",className:"relative flex flex-col gap-y-4",children:(0,l.jsx)(B.Z,{image:e,children:(0,l.jsx)(I.Z,{src:e.Url,alt:"Planritning nr ".concat(n),className:"bg-base-white",sizes:"(max-width: 768px) 100vw, (max-width: 1440px) 45vw, 620px"})})},e._key))})]}):null},D=t(65e3),F=t(86435),M=t(81884),P=t(50864),V=t(69815),Z=t.n(V),L=t(75019),H=t.n(L),R=t(65341),E=t(49315),U=t(29412),q=e=>{let{ProjectEstates:n}=e,t=(0,p.useTranslations)("components.modules"),r=(0,p.useTranslations)("estateStatus"),a=["3","4","8","11","13"],i=(null==n?void 0:n.filter(e=>"2"!==e.Status&&a.includes(e.Status||"")))||[],o=i.length>0,c=i.some(e=>void 0!==e.Floor),d=e=>(null!=e?e:"").toString().replace(/\B(?=(\d{3})+(?!\d))/g," ");return o?(0,l.jsxs)(y.M,{className:"w-full p-0 md:p-0 gap-y-4 md:gap-y-3 rounded-2xl",children:[(0,l.jsxs)("div",{className:"bg-neutrals-neutral-2 hidden col-span-12 md:grid grid-cols-12 overflow-hidden font-bold py-3 pl-2 text-[1rem] rounded-2xl",children:[(0,l.jsx)("div",{className:"col-span-2 break-words",children:t("apartmentOrObjectNumber")}),(0,l.jsx)("div",{className:"col-span-2 break-words",children:t("address")}),(0,l.jsx)("div",{className:"col-span-1 break-words",children:t("status")}),(0,l.jsx)("div",{className:"col-span-1 break-words",children:t("livingArea")}),(0,l.jsx)("div",{className:"col-span-1 break-words",children:t("rooms")}),c&&(0,l.jsx)("div",{className:"col-span-1 break-words",children:t("floor")}),(0,l.jsx)("div",{className:"col-span-2 break-words",children:t("price")}),(0,l.jsx)("div",{className:"col-span-1 break-words",children:t("fee")}),(0,l.jsx)("div",{className:"col-span-1 break-words",children:t("link")})]}),i.map((e,n)=>{var a;return(0,l.jsxs)("div",{className:"bg-neutrals-neutral-2 md:bg-white p-3 md:p-0 col-span-12 grid grid-cols-12 gap-4 md:gap-0 rounded-2xl text-[1rem] tracking-normal font-[400] md:pl-2",children:[(0,l.jsx)("div",{className:"pl-2 md:pl-0 col-span-6 sm:col-span-4 md:col-span-2 text-[0.75rem]",children:(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)("span",{className:"md:hidden",children:t("apartmentOrObjectNumber")}),e.EstateNumber]})}),(0,l.jsx)("div",{className:"pl-2 md:pl-0 col-span-6 sm:col-span-4 md:col-span-2 text-[0.75rem]",children:(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)("span",{className:"md:hidden",children:t("address")}),e.StreetAddress]})}),(0,l.jsx)("div",{className:"pl-2 md:pl-0 col-span-6 sm:col-span-4 md:col-span-1 text-[0.75rem]",children:(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)("span",{className:"md:hidden",children:t("status")}),r(e.Status)]})}),(0,l.jsx)("div",{className:"pl-2 md:pl-0 col-span-6 sm:col-span-4 md:col-span-1 text-[0.75rem]",children:(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)("span",{className:"md:hidden",children:t("livingArea")}),e.LivingSpace+" m\xb2"]})}),(0,l.jsx)("div",{className:"pl-2 md:pl-0 col-span-6 sm:col-span-4 md:col-span-1 text-[0.75rem]",children:(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)("span",{className:"md:hidden",children:t("rooms")}),e.Rooms]})}),c&&(0,l.jsx)("div",{className:"pl-2 md:pl-0 col-span-6 sm:col-span-4 md:col-span-1 text-[0.75rem]",children:(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)("span",{className:"md:hidden",children:t("floor")}),null!==(a=e.Floor)&&void 0!==a?a:"-"]})}),(0,l.jsx)("div",{className:"pl-2 md:pl-0 col-span-6 sm:col-span-4 md:col-span-2 text-[0.75rem]",children:(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)("span",{className:"md:hidden",children:t("price")}),e.Currency?d(e.Price)+e.Currency:d(e.Price)+" kr"]})}),(0,l.jsx)("div",{className:"pl-2 md:pl-0 col-span-6 sm:col-span-4 md:col-span-1 text-[0.75rem]",children:(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)("span",{className:"md:hidden",children:t("fee")}
1),e.Currency?d(e.MonthlyFee)+e.Currency:d(e.MonthlyFee)+" kr"]})}),(0,l.jsx)("div",{className:"pl-2 md:pl-0 col-span-6 sm:col-span-4 md:col-span-1 text-[0.75rem] md:self-center",children:(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)("span",{className:"md:hidden",children:t("link")}),(0,l.jsx)(w(),{href:(0,s.xL)({ObjectVitecType:e.ObjectVitecType,slug:e.slug,AreaName:e.AreaName,City:e.City,Country:e.Country,Municipality:e.Municipality,OfficeName:e.OfficeName,Province:e.Province}),className:"group",children:(0,l.jsx)(U.AlO,{className:"group-hover:scale-125 transition duration-150"})})]})})]},n)})]}):null},Y=e=>{var n;let{AreaData:t}=e;t&&(null!==t.AreaDataList||t.ShowAreaData);let r=e=>e?(0,s.uf)(e)+" ha":null;return(0,l.jsxs)(y.M,{className:"w-full p-0 md:p-0 gap-y-4 md:gap-y-3 rounded-2xl",children:[(null==t?void 0:t.AreaDataList)&&(0,l.jsxs)("div",{className:"bg-neutrals-neutral-2 hidden col-span-12 md:grid grid-cols-12 overflow-hidden font-bold py-3 pl-2 text-[1rem] rounded-2xl",children:[(0,l.jsx)("div",{className:"col-span-4",children:"Areak\xe4lla"}),(0,l.jsx)("div",{className:"col-span-1",children:"Bete"}),(0,l.jsx)("div",{className:"col-span-1",children:"Impediment"}),(0,l.jsx)("div",{className:"col-span-1",children:"In\xe4gomark"}),(0,l.jsx)("div",{className:"col-span-1",children:"Skog"}),(0,l.jsx)("div",{className:"col-span-1",children:"Vatten"}),(0,l.jsx)("div",{className:"col-span-1",children:"\xc5ker"}),(0,l.jsx)("div",{className:"col-span-1",children:"\xd6vrigt"}),(0,l.jsx)("div",{className:"col-span-1",children:"Totalt"})]}),null==t?void 0:null===(n=t.AreaDataList)||void 0===n?void 0:n.map((e,n)=>(0,l.jsxs)("div",{className:"bg-neutrals-neutral-2 md:bg-white p-3 md:p-0 col-span-12 grid grid-cols-12 gap-4 md:gap-0 rounded-2xl text-[1rem] tracking-normal font-[400] md:pl-2",children:[(0,l.jsx)("div",{className:"col-span-12 md:col-span-4 font-medium md:font-normal text-[1rem]",children:null==e?void 0:e.areaSource}),(0,l.jsx)("div",{className:"pl-2 md:pl-0 col-span-6 sm:col-span-4 md:col-span-1 text-[0.75rem]",children:(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)("span",{className:"md:hidden",children:"Bete"}),r(null==e?void 0:e.pasture)]})}),(0,l.jsx)("div",{className:"pl-2 md:pl-0 col-span-6 sm:col-span-4 md:col-span-1 text-[0.75rem]",children:(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)("span",{className:"md:hidden",children:"Impediment"}),r(null==e?void 0:e.wasteLand)]})}),(0,l.jsx)("div",{className:"pl-2 md:pl-0 col-span-6 sm:col-span-4 md:col-span-1 text-[0.75rem]",children:(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)("span",{className:"md:hidden",children:"In\xe4gomark"})," ",r(null==e?void 0:e.infield)]})}),(0,l.jsx)("div",{className:"pl-2 md:pl-0 col-span-6 sm:col-span-4 md:col-span-1 text-[0.75rem]",children:(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)("span",{className:"md:hidden",children:"Skog"})," ",r(null==e?void 0:e.forest)]})}),(0,l.jsx)("div",{className:"pl-2 md:pl-0 col-span-6 sm:col-span-4 md:col-span-1 text-[0.75rem]",children:(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)("span",{className:"md:hidden",children:"Vatten"})," ",r(null==e?void 0:e.water)]})}),(0,l.jsx)("div",{className:"pl-2 md:pl-0 col-span-6 sm:col-span-4 md:col-span-1 text-[0.75rem]",children:(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)("span",{className:"md:hidden",children:"\xc5ker"})," ",r(null==e?void 0:e.arabel)]})}),(0,l.jsx)("div",{className:"pl-2 md:pl-0 col-span-6 sm:col-span-4 md:col-span-1 text-[0.75rem]",children:(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)("span",{className:"md:hidden",children:"\xd6vrigt"}),r(null==e?void 0:e.other)]})}),(0,l.jsx)("div",{className:"pl-2 md:pl-0 col-span-6 sm:col-span-4 md:col-span-1 text-[0.75rem]",children:(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)("span",{className:"md:hidden",children:"Totalt"}),r(null==e?void 0:e.totalArea)]})})]},n)),(null==t?void 0:t.ShowAreaData)&&(0,l.jsxs)("p",{className:"col-span-full text-[1rem] p-2",children:["Arealk\xe4lla: ",t.ShowAreaData]})]})};function z(e){return(n,t)=>
1{if(!n.type&&!t.type)return 0;if(!n.type)return 1;if(!t.type)return -1;let l=e.indexOf(n.type),r=e.indexOf(t.type);return -1!==l&&-1!==r?l-r:-1!==l?-1:-1!==r?1:0}}let $={[a.qS.housingCooperative]:z(["buildingType","yearBuilt","yearBuiltDesc","disposalForm","propertyUnitDesignation","associationApartmentNo","registerApartmentNo","livingArea","otherArea","areaSource","areaSourceDesc","numRooms","numBedrooms","kitchenType","landIncludedM2","landIncludedDesc","buildingArea","windows","heating","renovations","aboutBuildingOther","otherBuildings","utilities","ventilationType","ventilationInspection","energyDeclaration","primaryEnergyNo","energyConsumption","energyClass","balcony","patio","patioDesc","parkingLot","parkingLotDesc","shareInAssociation","shareOffAnnualFee","shareDesc","monthlyFee","monthlyFeeDesc","associationNetDebt","associationNetDebtDesc","repairFund","floor","floorDesc","elevator","elevatorDesc","heatingCost","propertyElectricity","waterAndSewageCost","chimneySweeping","roadCommunityCost","sanitationCost","insuranceCost","maintananceCost","otherCosts","sumOperationCost","operationDesc","insuranceFullValue","personsInTheHousehold","electricalCompany","powerConsumption","associationName","directions","generalApartmentDesc","otherBaseInformation","otherDesc"]),[a.qS.plot]:z(["disposalForm","propertyUnitDesignation","plotArea","areaSource","areaSourceDesc","plotType","plotDesc","buildingPermission","typeCode","taxYear","landValue","totalAssessedValue","waterAndSewage","preferentialAndCommunity","planRegulations","roadCommunityCost","insuranceCost","sumOperationCost","operationDesc","taxFeeDesc","insuranceFullValue","mortgageDeed","directions","otherBaseInformation","otherDesc"]),[a.qS.house]:z(["buildingType","yearBuilt","yearBuiltDesc","disposalForm","propertyUnitDesignation","livingArea","otherArea","areaSource","areaSourceDesc","numRooms","numBedrooms","buildingArea","facade","frame","windows","beam","externalMetalWork","foundationWall","roof","foundation","heating","renovations","aboutBuildingOther","otherBuildings","utilities","ventilationType","ventilationInspection","energyDeclaration","primaryEnergyNo","energyConsumption","energyClass","plotArea","plotType","plotDesc","patioDesc","parkingLotDesc","typeCode","taxYear","AssessEvalUnit","totalAssessedValue","waterAndSewage","preferentialAndCommunity","planRegulations","heatingCost","propertyElectricity","waterAndSewageCost","chimneySweeping","roadCommunityCost","sanitationCost","insuranceCost","otherCosts","sumOperationCost","operationDesc","taxFeeDesc","insuranceFullValue","leaseHoldPeriod","LeasholdFee","LeasHoldUntil","personsInTheHousehold","electricalCompany","powerConsumption","mortgageDeed","directions","otherBaseInformation","otherDesc"]),[a.qS.condominium]:z(["buildingType","yearBuilt","yearBuiltDesc","disposalForm","propertyUnitDesignation","livingArea","otherArea","areaSource","areaSourceDesc","numRooms","numBedrooms","kitchenType","buildingArea","windows","heating","renovations","buildingOther","aboutBuildingOther","utilities","ventilationType","ventilationInspection","energyDeclaration","primaryEnergyNo","energyConsumption","energyClass","balcony","patio","patioDesc","parkingLot","parkingLotDesc","typeCode","taxYear","landValue","buildingValue","totalAssessedValue","preferentialAndCommunity","planRegulations","annualCommunityFee","annualCommunityFeeDesc","floor","floorDesc","elevator","elevatorDesc","heatingCost","propertyElectricity","waterAndSewageCost","chimneySweeping","roadCommunityCost","sanitationCost","insuranceCost","otherCosts","sumOperationCost","operationDesc","insuranceFullValue","personsInTheHousehold","electricalCompany","powerConsumption","mortgageDeed","directions","otherBaseInformation","otherDesc"]),[a.qS.foreignProperty]:z(["buildingType","yearBuilt","yearBuiltDesc","disposalForm","associationApartmentNo","associationApartmentNo","livingArea","buildingArea","numRooms","numBedrooms","numBathrooms","areaSource","areaSourceDesc","facade","frame","windows","beam","externalMetalWork","foundationWall","roof","foundation","renovations","aboutBuildingOther","otherBuildings","energyDeclaration","primaryEnergyNo","energyConsumption","energyClass","plotArea","plotType","plotDesc","taxYear","buildingValue","landValue","totalAssessedValue","taxAssessmentDirectory","pool","poolDesc","terrace","terraceArea","balcony","balconyArea","patioDesc","waterAndSewage","monthlyFee","monthlyFeeDesc","floor","elevator","elevatorDesc","heatingCost","propertyElectricity","waterAndSewageCost","roadCommunityCost","sanitationCost","insuranceCost","otherCosts","sumOperationCost","operationDesc","taxFeeDesc","personsInTheHousehold","otherBaseInformation"]),[a.qS.commercialProperty]:z(["disposalForm","propertyUnitDesignation","totalArea","spacesDesc","courtyard","plotDesc","patioDesc","parkingLotDesc","preferentialAndCommunity","planRegulations","heatingCost","propertyElectricity","waterAndSewageCost","chimneySweeping","roadCommunityCost","sanitationCost","insuranceCost","utilities","managementCost","propertyMaintanance","periodicMaintanance","ongoingMaintanance","otherCosts","sumOperationCost","operationDesc","taxFeeDesc","totalAssessedValue","insuranceFullValue","renovationCost","renovationCostDesc","electricalCompany","powerConsumption","technicalData","mortgageDeed","directions","otherBaseInformation","otherDesc"]),[a.qS.farm]:z(["disposalForm","propertyUnitDesignation","numPartitions","totalArea","totalAssessedValue","preferentialAndCommunity","planRegulations","plotDesc","patioDesc","parkingLotDesc","sumOperationCost","operationDesc","taxFeeDesc","electricalCompany","powerConsumption","energyDeclaration","primaryEnergyNo","energyConsumption","energyClass","waterAndSewage","mortgageDeed","directions","otherBaseInformation"])},G=z(["buildingName","buildingDesc","buildingType","yearBuilt","yearBuiltDesc","facade","frame","windows","beam","externalMetalWork","foun
1dationWall","roof","foundation","heating","buildingCold","controlMonitoring","buildingMethod","renovations","buildingOther","livingArea","otherArea","buildingArea","generalInteriorDesc","buildingRooms","numRooms","numBedrooms","buildingGeneralDesc","roomDesc","numFloors","elevator","elevatorDesc","waterAndSewage","ventilationType","ventilationInspection","utilities","energyDeclaration","primaryEnergyNo","energyConsumption","energyClass","plotDesc","patioDesc","parkingLotDesc","heatingCost","propertyElectricity","waterAndSewageCost","chimneySweeping","roadCommunityCost","sanitationCost","insuranceCost","otherCosts","sumOperationCost","operationDesc","personsInTheHousehold","electricalCompany","powerConsumption"]);var Q=e=>{var n,t;let{OtherBuildings:r,EconomyBuildings:a,CommercialBuildings:i,CommercialAreaData:c,MainResidentialBuilding:d,LandObject:u}=e,[m,f]=(0,g.useState)(""),v=(0,p.useTranslations)("components.modules"),j=e=>{var n,t,r;let s,a,{item:i,isMainResidential:o=!1}=e;return o?(s=null!==(n=i.Id)&&void 0!==n?n:"",a=i.BuildingName):void 0!==i.BuildingName?(s=i._key,a=i.BuildingName):void 0!==i.title?(s=i._key,a=i.title):void 0!==i.name?(s=i._key,a=i.name):(s=null!==(t=i._key)&&void 0!==t?t:"",a=null!==(r=i.type)&&void 0!==r?r:""),(0,l.jsx)("button",{className:"flex items-center border-b-2 ".concat(m===s?"border-b-gray-800 hover:border-b-gray-800 cursor-default":"border-b-transparent"," hover:border-b-gray-300"),onClick:()=>f(s),children:a},s)},b={area:"Yta",sumArea:"Summa yta",rentIncomes:"Summa hyresint\xe4kter",otherIncomes:"Summa \xf6vriga int\xe4kter",operatingCosts:"Summa schabloniserad driftkostnad",otherIncome:"\xd6vriga int\xe4kter",pricePerSquareMeter:"Hyresint\xe4kter kr/m\xb2",flatOperatingCostSquareMeter:"Schabloniserad driftskostnad kr/m\xb2",otherIncomePerSquareMeter:"\xd6vriga int\xe4kter kr/m\xb2",flatOperatingCost:"Schabloniserad driftskostnad",number:"Antal",rentalIncome:"Hyresint\xe4kter",description:"Beskrivning",comment:"Kommentar"},N={area:"m\xb2",sumArea:"m\xb2",rentIncomes:"kr/\xe5r",otherIncomes:"kr/\xe5r",operatingCosts:"kr/\xe5r",otherIncome:"kr",pricePerSquareMeter:"kr/m\xb2",flatOperatingCostSquareMeter:"kr/m\xb2",otherIncomePerSquareMeter:"kr/m\xb2",flatOperatingCost:"kr/\xe5r",rentalIncome:"kr"},k={area:1,number:2,rentalIncome:3,pricePerSquareMeter:4,otherIncome:5,otherIncomePerSquareMeter:6,flatOperatingCost:7,flatOperatingCostSquareMeter:8,sumArea:1,rentIncomes:2,otherIncomes:3,operatingCosts:4},w=e=>Object.entries(e).filter(e=>{let[n]=e;return!["type","name","_key"].includes(n)}).filter(e=>{let[,n]=e;return null!=n&&""!==n}).sort((e,n)=>(k[e[0]]||0)-(k[n[0]]||0)).map(e=>{let[n,t]=e,l="number"==typeof t?(0,s.uf)(t):t,r=N[n]||"";return{title:b[n]||n,text:"".concat(l).concat(r?" ".concat(r):"")}}),S=(0,g.useMemo)(()=>{var e;let n=null==d?void 0:null===(e=d.accordionObject)||void 0===e?void 0:e.toSorted(G).filter(e=>e.text);return{...d,sortedData:n}},[d]),A=(0,g.useMemo)(()=>null==r?void 0:r.map(e=>{var n;let t=null==e?void 0:null===(n=e.accordionObject)||void 0===n?void 0:n.toSorted(G).filter(e=>e.text);return{...e,sortedData:t}}),[r]),_=(0,g.useMemo)(()=>null==i?void 0:i.map(e=>{var n;let t=null==e?void 0:null===(n=e.accordionObject)||void 0===n?void 0:n.toSorted(G).filter(e=>e.text);return{...e,sortedData:t}}),[i]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"flex gap-6 pb-4 flex-wrap",children:[d&&(0,l.jsx)(j,{item:d,isMainResidential:!0}),r&&r.map(e=>(0,l.jsx)(j,{item:e},e._key)),i&&i.map(e=>(0,l.jsx)(j,{item:e},e._key)),a&&a.map(e=>(0,l.jsx)(j,{item:e},e._key)),u&&u.map(e=>(0,l.jsx)(j,{item:e},e._key)),c&&c.map((e,n)=>{var t;return(0,l.jsx)(j,{item:e},null!==(t=e._key)&&void 0!==t?t:n.toString())})]}),d&&m===(null!==(t=d.Id)&&void 0!==t?t:"")&&(0,l.jsxs)("div",{className:"mb-8",children:[(0,l.jsx)("div",{className:"flex",children:(0,l.jsx)(y.M,{className:"w-full p-0 md:p-0 gap-y-0 md:gap-y-0 rounded-2xl",children:(0,l.jsx)(y.o,{span:"12",start:"1",className:"flex flex-col md:flex-row justify-between gap-x-10 md:mb-8",children:(0,l.jsx)(h.FE,{data:S.sortedData})})})}),!o()(d.Rooms)&&(0,l.jsxs)("div",{className:"w-full",children:[(0,l.jsxs)(x.Z,{as:"h3",className:"mb-4 mt-10 md:mt-0",children:[v("rooms"),":"]}),(0,l.jsx)("div",{className:"col-span-6 grid grid-cols-2 gap-8",children:null==d?void 0:null===(n=d.Rooms)||void 0===n?void 0:n.map((e,n)=>(0,l.jsxs)("div",{className:"flex flex-col gap-y-2 col-span-1",children:[(0,l.jsx)(R.u,{strong:!0,children:e.title}),(0,h.S7)(e.text)]},n))})]})]},d.Id),null==A?void 0:A.map(e=>m===e._key&&(0,l.jsxs)("div",{className:"mb-8",children:[(0,l.jsx)("div",{className:"flex",children:(0,l.jsx)(y.M,{className:"w-full p-0 md:p-0 gap-y-0 md:gap-y-0 rounded-2xl",children:(0,l.jsx)(y.o,{span:"12",start:"1",className:"flex flex-col md:flex-row justify-between gap-x-10 md:mb-8",children:(0,l.jsx)(h.FE,{data:e.sortedData})})})}),!o()(e.Rooms)&&(0,l.jsx)("div",{className:"w-full",children:(0,l.jsxs)(x.Z,{as:"h3",className:"mb-4 mt-10 md:mt-0",children:[v("rooms"),":"]})})]},e._key)),null==_?void 0:_.map(e=>m===e._key&&(0,l.jsxs)("div",{className:"mb-8",children:[(0,l.jsx)("div",{className:"flex",children:(0,l.jsx)(y.M,{className:"w-full p-0 md:p-0 gap-y-0 md:gap-y-0 rounded-2xl",children:(0,l.jsx)(y.o,{span:"12",start:"1",className:"flex flex-col md:flex-row justify-between gap-x-10 md:mb-8",children:(0,l.jsx)(h.FE,{data:e.sortedData})})})}),!o()(e.Rooms)&&(0,l.jsx)("div",{className:"w-full",children:(0,l.jsxs)(x.Z,{as:"h3",className:"mb-4 mt-10 md:mt-0",children:[v("rooms"),":"]})})]},e._key)),null==a?void 0:a.map(e=>m===e._key&&(0,l.jsx)("div",{className:"mb-8",children:(0,l.jsx)("div",{className:"flex",children:(0,l.jsx)(y.M,{className:"w-full p-0 md:p-0 gap-y-0 md:gap-y-0 rounded-2xl",children:(0,l.jsx)(y.o,{span:"12",start:"1",className:"flex flex-col md:flex-row justify-between gap-x-10 md:mb-8",children:(0,h.S7)(null==e?void 0:e.text)})})})},e._key)),null==u?void 0:u.map(e=>m===e._key&&(0,l.jsx)("div",{className:"mb-8",children:(0,l.jsx)("div",{className:"flex",children:(0,l.jsx)(y.M,{className:"w-full p-0 md:p-0 gap-y-0 md:gap-y-0 rounded-2xl",children:(0,l.jsx)(y.o,{span:"12",start:"1",className:"flex flex-col md:flex-row justify-between gap-x-10 md:mb-8",children:(0,h.S7)(null==e?void 0:e.text)})})})},e._key)),null==c?void 0:c.map((e,n)=>{var t,r;
1return m===(null!==(t=e._key)&&void 0!==t?t:n.toString())&&(0,l.jsx)("div",{className:"mb-8",children:(0,l.jsx)("div",{className:"flex",children:(0,l.jsx)(y.M,{className:"w-full p-0 md:p-0 gap-y-0 md:gap-y-0 rounded-2xl",children:(0,l.jsx)(y.o,{span:"12",start:"1",className:"flex flex-col md:flex-row justify-between gap-x-10 md:mb-8",children:(0,l.jsx)(h.FE,{data:w(e),Currency:"SEK"})})})})},null!==(r=e._key)&&void 0!==r?r:n.toString())})]})},W=t(45031);let X=e=>{var n;let{link:t}=e;return(null===(n=t.links)||void 0===n?void 0:n.length)?(0,l.jsxs)(P.rU,{href:t.links[0],target:"_blank",className:"rounded-2xl col-span-6 flex justify-between w-full bg-neutrals-neutral-1 p-8 hover:underline text-base",children:[(0,l.jsx)(R.u,{small:!0,className:"hover:underline",children:t.text}),(0,l.jsx)(M.A,{})]}):null};var J=e=>{let{links:n}=e,t=(0,p.useTranslations)("components.modules");if(o()(n))return null;let r=null==n?void 0:n.map(e=>{if(!(0,W.x)(e.links&&e.links[0]))return e}).filter(e=>void 0!==e),s=null==n?void 0:n.map(e=>{if((0,W.x)(e.links&&e.links[0]))return e}).filter(e=>void 0!==e);return(0,l.jsxs)(l.Fragment,{children:[r&&(null==r?void 0:r.length)>0&&(0,l.jsxs)(E.Qd,{value:"item-4",className:"scroll-mt-[4.5rem]",id:"links",children:[(0,l.jsx)(E.o4,{children:(0,l.jsx)(x.Z,{as:"h2",children:t("links")})}),(0,l.jsx)(E.vF,{children:(0,l.jsx)("div",{className:"grid grid-cols-6 md:grid-cols-12 gap-8",children:null==r?void 0:r.map(e=>e?(0,l.jsx)(X,{link:e},null==e?void 0:e._key):null)})})]}),s&&(null==s?void 0:s.length)>0&&(0,l.jsxs)(E.Qd,{value:"item-4-video",className:"scroll-mt-[4.5rem]",id:"video",children:[(0,l.jsx)(E.o4,{children:(0,l.jsx)(x.Z,{as:"h2",children:t("video")})}),(0,l.jsx)(E.vF,{children:(0,l.jsx)("div",{className:"grid grid-cols-6 md:grid-cols-12 gap-8",children:null==s?void 0:s.map(e=>e?(0,l.jsx)(X,{link:e},null==e?void 0:e._key):null)})})]})]})};let K=e=>{var n,t;let{Assessments:r}=e,[a,i]=(0,g.useState)((null==r?void 0:null===(n=r.find(e=>e))||void 0===n?void 0:n._key)||""),o=""!==a?r.find(e=>e._key===a):null,c=e=>{let{label:n="",text:t="",colspan:r=6}=e;return(0,l.jsxs)("div",{className:"col-span-".concat(r),children:[(0,l.jsx)("div",{className:"font-semibold",children:n||"\xa0"}),(0,l.jsx)("div",{children:t||"-"})]})};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"flex gap-6 pb-4 flex-wrap",children:null==r?void 0:r.map((e,n)=>(0,l.jsx)("button",{className:"flex items-center border-b-2 hover:border-b-gray-300 ".concat(a===e._key?"border-b-gray-800 hover:border-g-gray-800 cursor-default":"border-b-transparent"),onClick:()=>i(e._key),children:e.TaxYear},e._key))}),!!o&&(0,l.jsxs)("div",{className:"mb-8",children:[(0,l.jsxs)("div",{className:"grid grid-cols-12 mb-8",children:[(0,l.jsx)(c,{colspan:4,label:"Taxerings\xe5r",text:o.TaxYear}),(0,l.jsx)(c,{colspan:4,label:"Typkod",text:o.TypeCode})]}),(0,l.jsx)("div",{className:"mb-8",children:null===(t=o.AssessValues)||void 0===t?void 0:t.map((e,n)=>(0,l.jsxs)("div",{className:"grid grid-cols-12 gap-2 py-2  border-[hsla(0,0%,16%,.08)] first:border-t-[1px] border-b-[1px]",children:[(0,l.jsx)(c,{colspan:4,label:"V\xe4rderingsenhet",text:(0,s.ER)(e.EvaluationUnit)}),(0,l.jsx)(c,{colspan:4,label:"Taxeringsv\xe4rde",text:(0,s.mA)(e.Value)})]},n))})]})]})};var ee=e=>{var n,t,r,a,i,c,d,u,m,f,v,j,b,N,k,w,S,A,_,C,T,B;let{ObjectVitecType:I,AccordionsData:O,ShowAreaDataOnInternet:D,Links:F,AreaData:V,groupValue:L,setGroupValue:U,CommercialAreaData:z,ProjectEstates:G}=e,W=(0,p.useTranslations)("components.modules"),X=(0,g.useMemo)(()=>H()(I)&&$[I]||(()=>0),[I]),ee=null==O?void 0:null===(n=O.LargeOverview)||void 0===n?void 0:n.filter(e=>H()(e.text)||!o()(e.text)||Z()(e.text)).sort(X),en=null==O?void 0:null===(t=O.OtherBuildings)||void 0===t?void 0:t.map(e=>{var n;return{...e,accordionObject:null===(n=e.accordionObject)||void 0===n?void 0:n.filter(e=>H()(e.text)||!o()(e.text)||Z()(e.text))}}),et={...null==O?void 0:O.MainResidentialBuilding,accordionObject:null==O?void 0:null===(a=O.MainResidentialBuilding)||void 0===a?void 0:null===(r=a.accordionObject)||void 0===r?void 0:r.filter(e=>H()(e.text)||!o()(e.text)||Z()(e.text))},el=null==O?void 0:null===(i=O.ServiceOverview)||void 0===i?void 0:i.filter(e=>H()(e.text)||!o()(e.text)),er=null==O?void 0:null===(c=O.CommercialBuildings)||void 0===c?void 0:c.sort((e,n)=>
1{let t={Garagebyggnad:100,Huvudbyggnad:200,Sidobyggnad:300,default:0};return t[e.BuildingName||"default"]-t[n.BuildingName||"default"]}),es=(0,g.useMemo)(()=>{var e,n,t,l,r,s,a,i,c;if(1===I)return[{facts:null==O?void 0:null===(n=O.AssociationInfo)||void 0===n?void 0:null===(e=n.AssociationFacts)||void 0===e?void 0:e.filter(e=>H()(e.text)||!o()(e.text)),text:null==O?void 0:null===(l=O.AssociationInfo)||void 0===l?void 0:null===(t=l.AssociationLongTexts)||void 0===t?void 0:t.filter(e=>(null==e?void 0:e.text)&&!o()(e.text))}];if(4===I&&G){let e=new Map;for(let n of G){let t=null===(r=n.AssociationInfo)||void 0===r?void 0:r.id;if(!t||e.has(t))continue;let l=null==n?void 0:null===(a=n.AssociationInfo)||void 0===a?void 0:null===(s=a.AssociationFacts)||void 0===s?void 0:s.filter(e=>H()(e.text)||!o()(e.text)),d=null==n?void 0:null===(c=n.AssociationInfo)||void 0===c?void 0:null===(i=c.AssociationLongTexts)||void 0===i?void 0:i.filter(e=>(null==e?void 0:e.text)&&!o()(e.text));e.set(t,{facts:l,text:d})}return Array.from(e.values())}return[]},[O]),ea=null==O?void 0:null===(d=O.Descriptions.DescriptionFragments)||void 0===d?void 0:d.filter(e=>H()(e.text)||!o()(e.text)),ei=!o()(ea)||!o()(null==O?void 0:null===(u=O.Descriptions)||void 0===u?void 0:u.GeneralRoomDescription)||!o()(null==O?void 0:null===(m=O.Descriptions)||void 0===m?void 0:m.HouseInteriorRooms)||!o()(null==O?void 0:null===(f=O.Descriptions)||void 0===f?void 0:f.GenerealDescriptionForeignProperty),eo=null==O?void 0:null===(v=O.GeneralArea)||void 0===v?void 0:v.filter(e=>(null==e?void 0:e.text)&&!o()(e.text));return(0,l.jsx)(y.M,{id:"info-documents",className:"py-[2.5rem] md:py-[4.5rem]",children:(0,l.jsx)(y.o,{span:"12",start:"1",children:(0,l.jsxs)(E.UQ,{type:"multiple",className:"w-full",defaultValue:L,onValueChange:e=>U(e),value:L,children:[!o()(ee)&&(0,l.jsxs)(E.Qd,{value:"item-1",className:"border-t scroll-mt-[4.5rem]",id:"facts-accordion",children:[(0,l.jsx)(E.o4,{children:(0,l.jsx)(x.Z,{as:"h2",children:W("facts")})}),(0,l.jsx)(E.vF,{children:(0,l.jsx)("div",{className:"flex",children:(0,l.jsx)(y.M,{className:"w-full p-0 md:p-0 gap-y-0 md:gap-y-0 rounded-2xl",children:(0,l.jsx)(y.o,{span:"12",start:"1",className:"flex flex-col md:flex-row justify-between gap-x-10 md:mb-8",children:(0,l.jsx)(h.FE,{data:(null!=ee?ee:[]).filter((e,n,t)=>n===t.findIndex(n=>n.type===e.type&&n.title===e.title&&n.text===e.text))})})})})})]}),(null==O?void 0:null===(j=O.Assessments)||void 0===j?void 0:j.length)&&(0,l.jsxs)(E.Qd,{value:"item-10",children:[(0,l.jsx)(E.o4,{children:(0,l.jsx)(x.Z,{as:"h2",children:"Taxering"})}),(0,l.jsx)(E.vF,{children:(0,l.jsx)(K,{Assessments:null==O?void 0:O.Assessments})})]}),(!o()(en)||!o()(null==O?void 0:O.EconomyBuildings)||!o()(null==O?void 0:O.CommercialBuildings))&&(0,l.jsxs)(E.Qd,{value:"item-3",className:"scroll-mt-[4.5rem]",id:"buildings-accordion",children:[(0,l.jsx)(E.o4,{children:(0,l.jsx)(x.Z,{as:"h2",children:W("buildings")})}),(0,l.jsx)(E.vF,{children:(0,l.jsx)(Q,{EconomyBuildings:null==O?void 0:O.EconomyBuildings,OtherBuildings:en,MainResidentialBuilding:et,CommercialBuildings:er})})]}),!o()(null==O?void 0:O.LandObject)&&(0,l.jsxs)(E.Qd,{value:"item-7",className:"scroll-mt-[4.5rem]",id:"buildings-accordion",children:[(0,l.jsx)(E.o4,{children:(0,l.jsx)(x.Z,{as:"h2",children:"Mark"})}),(0,l.jsx)(E.vF,{children:(0,l.jsx)(Q,{LandObject:null==O?void 0:O.LandObject})})]}),!o()(el)&&(0,l.jsxs)(E.Qd,{value:"item-4",className:"scroll-mt-[4.5rem]",id:"service-accordion",children:[(0,l.jsx)(E.o4,{children:(0,l.jsx)(x.Z,{as:"h2",children:W("serviceHeader")})}),(0,l.jsx)(E.vF,{children:(0,l.jsx)("div",{className:"flex",children:(0,l.jsx)(y.M,{className:"w-full p-0 md:p-0 gap-y-0 md:gap-y-0 rounded-2xl",children:(0,l.jsx)(y.o,{span:"12",start:"1",className:"flex flex-col md:flex-row justify-between gap-x-10 md:mb-8",children:(0,l.jsx)(h.FE,{data:el})})})})})]}),!o()(z)&&(0,l.jsxs)(E.Qd,{value:"item-5",className:"scroll-mt-[4.5rem]",id:"compilation-areas",children:[(0,l.jsx)(E.o4,{children:(0,l.jsx)(x.Z,{as:"h2",children:W("compilationAreas")})}),(0,l.jsx)(E.vF,{children:(0,l.jsx)(Q,{CommercialAreaData:z})})]}),!o()(null==V?void 0:V.AreaDataList)&&(0,l.jsxs)(E.Qd,{value:"item-5",className:"scroll-mt-[4.5rem]",id:"video",children:[(0,l.jsx)(E.o4,{children:(0,l.jsx)(x.Z,{as:"h2",children:W("arealHeader")})}),(0,l.jsx)(E.vF,{children:(0,l.jsx)(Y,{AreaData:V})})]}),4===I&&G&&(0,l.jsxs)(E.Qd,{value:"item-5",className:"scroll-mt-[4.5rem]",id:"project",children:[(0,l.jsx)(E.o4,{children:(0,l.jsx)(x.Z,{as:"h2",children:W("projectHeader")})}),(0,l.jsx)(E.vF,{children:(0,l.jsx)(q,{ProjectEstates:G})})]}),ei&&(0,l.jsxs)(E.Qd,{value:"item-2",id:"description-accordion",className:"scroll-mt-[4.5rem]",children:[(0,l.jsx)(E.o4,{children:(0,l.jsx)(x.Z,{as:"h2",children:W("description")})}),(0,l.jsx)(E.vF,{children:(0,l.jsxs)("div",{className:"grid grid-cols-6 md:grid-cols-12 gap-8",children:[((null==O?void 0:null===(b=O.Descriptions)||void 0===b?void 0:b.GeneralRoomDescription)||(null==O?void 0:null===(N=O.Descriptions)||void 0===N?void 0:N.GenerealDescriptionForeignProperty))&&
1(0,l.jsxs)("div",{className:"col-span-full flex flex-col text-base gap-8",children:[(0,l.jsx)(R.u,{strong:!0,children:W("generalDescription")}),(null==O?void 0:null===(k=O.Descriptions)||void 0===k?void 0:k.GenerealDescriptionForeignProperty)&&(0,h.S7)((0,s.tl)(null==O?void 0:null===(w=O.Descriptions)||void 0===w?void 0:w.GenerealDescriptionForeignProperty)),((null==O?void 0:O.Descriptions.GeneralRoomDescription)||!(null==O?void 0:null===(S=O.Descriptions)||void 0===S?void 0:S.GenerealDescriptionForeignProperty))&&(0,h.S7)(null==O?void 0:O.Descriptions.GeneralRoomDescription)]}),(0,l.jsxs)("div",{className:"col-span-6 flex flex-col text-base gap-8",children:[(null==O?void 0:null===(A=O.Descriptions)||void 0===A?void 0:A.DescriptionFragments)&&(null===(_=O.Descriptions)||void 0===_?void 0:_.DescriptionFragments.map((e,n)=>{let{title:t,text:r}=e;return r?(0,l.jsxs)("div",{className:"flex flex-col gap-y-2",children:[(0,l.jsx)(R.u,{strong:!0,children:t}),(0,h.S7)(r)]},n):null})),null==O?void 0:null===(C=O.Descriptions.HouseInteriorRooms)||void 0===C?void 0:C.slice(0,Math.ceil((null==O?void 0:O.Descriptions.HouseInteriorRooms.length)/2)).map(e=>(0,l.jsxs)("div",{className:"flex flex-col gap-y-2",children:[(0,l.jsx)(R.u,{strong:!0,children:e.Heading}),(0,h.S7)(e.Text)]},e.Heading))]}),(0,l.jsx)("div",{className:"col-span-6 flex flex-col text-base gap-8",children:null==O?void 0:null===(T=O.Descriptions.HouseInteriorRooms)||void 0===T?void 0:T.slice(Math.ceil((null==O?void 0:O.Descriptions.HouseInteriorRooms.length)/2),null==O?void 0:O.Descriptions.HouseInteriorRooms.length).map(e=>(0,l.jsxs)("div",{className:"flex flex-col gap-y-2",children:[(0,l.jsx)(R.u,{strong:!0,children:e.Heading}),(0,h.S7)(e.Text)]},e.Heading))})]})})]}),!o()(null==O?void 0:O.Documents)&&(0,l.jsxs)(E.Qd,{value:"item-7",children:[(0,l.jsx)(E.o4,{children:(0,l.jsx)(x.Z,{as:"h2",children:W("documents")})}),(0,l.jsx)(E.vF,{children:(0,l.jsx)("div",{className:"grid grid-cols-6 md:grid-cols-12 gap-8",children:null==O?void 0:null===(B=O.Documents)||void 0===B?void 0:B.map(e=>(0,l.jsxs)(P.rU,{href:e.Url,target:"_blank",className:"rounded-2xl col-span-6 flex justify-between w-full bg-neutrals-neutral-1 p-8 hover:underline",children:[(0,l.jsx)(R.u,{small:!0,className:"hover:underline",children:e.Name}),(0,l.jsx)(M.A,{})]},e.id))})})]}),(0,l.jsx)(J,{links:F}),(null==O?void 0:O.GeneralArea)&&!o()(eo)&&(0,l.jsxs)(E.Qd,{value:"item-8",children:[(0,l.jsx)(E.o4,{children:(0,l.jsx)(x.Z,{as:"h2",children:W("area")})}),(0,l.jsx)(E.vF,{children:(0,l.jsx)("div",{className:"grid grid-cols-6 md:grid-cols-12 gap-8",children:O.GeneralArea.map(e=>{var n;return e.text?(0,l.jsxs)("div",{className:"col-span-6 flex flex-col text-base gap-2",children:[(0,l.jsx)(R.u,{strong:!0,children:e.title}),e.canBeTranslated?(0,h.S7)((0,s.tl)(e.text)):(0,h.S7)(null===(n=e.text)||void 0===n?void 0:n.toString())]},e.title):null})})})]}),es.length>0&&(0,l.jsxs)(E.Qd,{value:"item-9",children:[(0,l.jsx)(E.o4,{children:(0,l.jsx)(x.Z,{as:"h2",children:"F\xf6reningen"})}),(0,l.jsx)(E.vF,{children:es.map((e,n)=>(0,l.jsxs)("div",{className:"flex flex-col gap-8",children:[e.text&&(0,l.jsx)("div",{className:"grid grid-cols-6 md:grid-cols-12 gap-8",children:e.text.map(e=>{var n;return e.text?(0,l.jsxs)("div",{className:"col-span-6 flex flex-col text-base gap-2",children:[(0,l.jsx)(R.u,{strong:!0,children:e.title}),(0,h.S7)(null===(n=e.text)||void 0===n?void 0:n.toString())]},e.title):null})}),e.facts&&(0,l.jsx)("div",{className:"flex",children:(0,l.jsx)(y.M,{className:"w-full p-0 md:p-0 gap-y-0 md:gap-y-0 rounded-2xl",children:(0,l.jsx)(y.o,{span:"12",start:"1",className:"flex flex-col md:flex-row justify-between gap-x-10 md:mb-8",children:(0,l.jsx)(h.FE,{data:e.facts})})})})]},"association-".concat(n)))})]})]})})})},en=t(85344),et=t(65457),el=t(37168),er=t(99276),es=t(21590),ea=t(22487),ei=t(178),eo=e=>{var n;let{office:t,isAboard:r}=e,s=(0,p.useTranslations)("components.pages"),a=(0,p.useTranslations)("components.pages.brokerOfficePage"),i=(0,el.useSearchParams)(),[o,c]=(0,g.useState)(null!==(n=null==i?void 0:i.get(en.j2))&&void 0!==n?n:"0"),d=(0,g.useMemo)(()=>[{title:a("all"),value:"0"},{title:a("viewings"),value:"Viewings",hide:r},{title:a("villa"),value:"villa",hide:!r},{title:a("terraced-house"),value:"terraced-house",hide:!r},{title:a("apartment"),value:"apartment",hide:!r},{title:a("newConstruction"),value:"NewConstruction"},{title:a("sold"),value:en.NI}],[s]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(y.M,{className:"pt-[2.5rem] md:pt-[4.5rem]",children:(0,l.jsx)(y.o,{span:"12",start:"1",className:"flex flex-col gap-y-8",children:(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsx)(x.X,{as:"h2",children:s("moreFromUs")}),t&&(0,l.jsx)(er.Z,{_id:t._id,ForeignOffice:null==t?void 0:t.ForeignOffice,title:null==t?void 0:t.t
1itle,ConnectedOffices:null==t?void 0:t.ConnectedOffices})]})})}),(0,l.jsx)(ea.Z,{GroupItems:d,groupValue:o,setGroupValue:c,addAsFilter:!0}),(0,l.jsxs)(y.M,{className:"pb-[4.5rem]",children:[(null==t?void 0:t.Objects)&&t.Objects.length>0&&t.Objects.map(e=>(0,l.jsx)(es.Z,{objectData:e,small:!0},e.slug.current)),(0,l.jsx)(y.o,{start:"1",span:"12",className:"flex justify-center",children:(0,l.jsx)(P.rU,{href:"".concat(et.YT,"/").concat(null==t?void 0:t.slug.current,"#objects"),children:(0,l.jsx)(ei.z,{children:s("seeEverythingFromTheOffice")})})})]})]})},ec=t(59872),ed=t(28026),eu=t.n(ed),em=t(18557),ep=t.n(em),eg=t(81575),ex=t.n(eg),ef=t(18080),eh=t.n(ef);t(57872),eu().extend(ex()),eu().extend(ep()),eu().extend(eh()),eu().locale("sv");var ev=e=>{let{viewingId:n,fromDateTime:t,toDateTime:r,comment:s,bookableFromInternet:a,officeId:i,vitecId:o,showOnInternet:c}=e,d=(0,p.useTranslations)("common.buttons"),u=eu()(t).utcOffset(0),m=eu()(r).utcOffset(0),g=u.format("dddd D MMMM"),x=u.format("HH:mm"),f=m.format("HH:mm"),h="00:00"===x&&"00:00"===f?"":" kl. ".concat(x," - ").concat(f),v=g.charAt(0).toUpperCase()+g.slice(1);return c?(0,l.jsxs)("div",{className:"flex justify-between rounded-2xl overflow-hidden items-center bg-neutrals-neutral-3 px-8 py-7",children:[(0,l.jsxs)("div",{className:"flex flex-col",children:[t&&r&&(0,l.jsx)(R.u,{strong:!0,children:"".concat(v).concat(h)}),s&&(0,l.jsx)(R.u,{small:!0,className:"text-[#292827b3]",children:s})]}),a&&(0,l.jsx)(P.rU,{href:"https://bokavisning.maklare.vitec.net/".concat(i,"/").concat(o,"/").concat(n),target:"_blank",children:(0,l.jsx)(ei.z,{variant:"ghost",className:"bg-transparent rounded-full px-5 py-2 border border-[#2828283d] hover:bg-primary hover:text-white font-semibold",children:(0,l.jsx)(R.u,{small:!0,strong:!0,children:d("book")})})})]}):null};eu().extend(ex()),eu().extend(ep()),eu().extend(eh()),eu().locale("sv");var ej=e=>{let{ShowOneViewingTimeOnInternet:n,Viewings:t,officeId:r,vitecId:s}=e,a=(0,p.useTranslations)("components.pages"),i=null==t?void 0:t.map(e=>{let n=eu()(e.startTime).utcOffset(0),t=eu()(e.endTime).utcOffset(0),l=t.format("dddd D MMMM"),r=eu()().format("dddd D MMMM"),s=n.format("HH:mm"),a=t.format("HH:mm");return"00:00"===s&&"00:00"===a&&l===r||eu()(e.endTime).isAfter(eu()())?e:null}).filter(e=>null!==e);return o()(i)?null:(0,l.jsxs)(y.M,{className:"py-[4.5rem]",children:[(0,l.jsx)(y.o,{span:"6",start:"1",children:(0,l.jsx)(x.X,{as:"h2",children:a("views")})}),(0,l.jsx)(y.o,{span:"6",start:"7",className:"flex flex-col gap-y-6 md:gap-y-6",children:n?null==i?void 0:i.splice(0,1).map(e=>e?(0,l.jsx)(ev,{viewingId:e.id,toDateTime:e.endTime,fromDateTime:e.startTime,comment:e.commentary,bookableFromInternet:e.bookableFromInternet,showOnInternet:e.showOnInternet,officeId:r,vitecId:s},e.id):null):null==i?void 0:i.map(e=>e?(0,l.jsx)(ev,{viewingId:e.id,toDateTime:e.endTime,fromDateTime:e.startTime,comment:e.commentary,bookableFromInternet:e.bookableFromInternet,showOnInternet:e.showOnInternet,officeId:r,vitecId:s},e.id):null)})]})},ey=t(64101),eb=t.n(ey);let eN=()=>!0,ek=e=>{let{objectId:n,officeId:t}=e;return!0===eN()&&void 0!=t?(0,l.jsx)(eb(),{id:"vitecanalytics",strategy:"lazyOnload",children:'(function(w,d,b,u,o,f) {\n            w[o]=w[o]||{};w[o].u=b;w[f]=function(){(w[o].q=w[o].q||[]).push(arguments);};t="script";\n            s=d.createElement(t);m=d.getElementsByTagName(t)[0];s.src=b+u;s.async=1;m.parentNode.insertBefore(s,m);\n            })(window,document,"https://connect-analytics.maklare.vitec.net","/scripts/v1/analytics.min.js","VitecMAnalytics","va");\n\n            va("create", "Nx8OLrjNpBYSyOJs");\n            va("set", "target", "'.concat(n,'");\n            va("set", "target_customer_id", "').concat(t,'");')}):null};var ew=t(85249),eS=t(61936),eA=e=>{var n,t,i,c,v,j,b,N;let k;let w,{pageData:S}=e,A=(0,p.useTranslations)("components.pages"),B=(0,p.useTranslations)("components.modules"),I=(0,p.useTranslations)("components.cards"),M=(0,p.useTranslations)("common.forms"),P=(0,p.useTranslations)("common.buttons"),[V,Z]=(0,g.useState)([]),[L,H]=(0,g.useState)(!1),[R,E]=(0,g.useState)(!1),{SpecialBanner:U,InformationProjectId:q,L
1ongSaleDescription:Y,Price:z,Currency:$,SumOperationCost:G,MonthlyFee:Q,SaleHeadline:W,ShortSaleDescription:X,StreetAddress:J,office:K,broker:en,brokerAdditional:et,Images:el,Country:er,Viewings:es,Latitude:ea,MarketingMethods:ei,Longitude:ed,HideAddress:eu,CustomerId:em,EstateNumber:ep,VitecId:eg,AssignmentBrokerId:ex,ShowOneViewingTimeOnInternet:ef,ObjectVitecType:eh,AccordionsData:ev,LeasePurchase:ey,links:eb,AreaData:eN,CommercialAreaData:eA,ShowAreaDataOnInternet:e_,projectEstates:eC}=S,eT=null==ev?void 0:null===(n=ev.Descriptions.DescriptionFragments)||void 0===n?void 0:n.filter(e=>e.text||!o()(e.text)),eB=!o()(eT)||!o()(null==ev?void 0:null===(t=ev.Descriptions)||void 0===t?void 0:t.GeneralRoomDescription)||!o()(null==ev?void 0:null===(i=ev.Descriptions)||void 0===i?void 0:i.HouseInteriorRooms)||!o()(null==ev?void 0:null===(c=ev.Descriptions)||void 0===c?void 0:c.GenerealDescriptionForeignProperty),eI=!o()(null==ev?void 0:ev.OtherBuildings)||!o()(null==ev?void 0:ev.CommercialBuildings),eO=!o()(null==ev?void 0:ev.LargeOverview),eD=null==el?void 0:el.some(e=>"floorPlan"===e.Category||"Planritningar"===e.Category),eF=!d()(ea)&&!d()(ed)&&!eu,eM=!o()(el),eP=!o()(eA),eV=(0,s.tl)(Y||X),eZ=[X&&(0,s.tl)(X),Y&&(0,s.tl)(Y)].filter(e=>e).join("\n"),eL=7===eh?eZ:eV,eH=eC&&eC.length>0,eR=!d()(z)&&0!==z&&7!==eh,eE=!d()(z)&&0!==z&&7===eh&&["Spanien","Portugal"].includes(er||""),eU={links:[{title:I("overview"),link:"#overview",CTALinkAction:()=>Z(e=>(e.push("item-0"),e))},eO?{title:A(o()(null==ev?void 0:ev.Documents)?"details":"detailsWithDocument"),link:"#facts-accordion",CTALinkAction:()=>Z(e=>(e.push("item-1"),e))}:null,eH?{title:B("projectHeader"),link:"#project",CTALinkAction:()=>Z(e=>(e.push("item-project-estates"),e))}:null,eB?{title:A("description"),link:"#description-accordion",CTALinkAction:()=>Z(e=>(e.push("item-2"),e))}:null,eM?{title:A("photos"),link:"#images"}:null,eD?{title:A("floorPlan"),link:"#floor-plan"}:null,eF?{title:A("map"),link:"#map"}:null,eI?{title:A("buildings"),link:"#buildings-accordion",CTALinkAction:()=>Z(e=>(e.push("item-3"),e))}:null,eE?{title:A("mortgage-calculator"),link:"#habeno-mortgage-calculator"}:null,eP?{title:B("compilationAreas"),link:"#compilation-areas",CTALinkAction:()=>Z(e=>(e.push("item-5"),e))}:null].filter(e=>null!==e),CTA:{title:A("requestInformation"),link:"#intresseanmalan"}};!o()(eb)&&((null==eb?void 0:eb.find(e=>"Video"===e.category))&&(null===(v=eU.links)||void 0===v||v.push({title:A("video"),link:"#video",CTALinkAction:()=>Z(e=>(e.push("item-4-video"),e))})),(null==eb?void 0:eb.find(e=>"Panorama"===e.category))&&(null===(j=eU.links)||void 0===j||j.push({title:A("panorama"),link:"#video",CTALinkAction:()=>Z(e=>(e.push("item-4-video"),e))})),(null==eb?void 0:eb.find(e=>"VR"===e.category))&&(null===(b=eU.links)||void 0===b||b.push({title:A("vr"),link:"#video",CTALinkAction:()=>Z(e=>(e.push("item-4-video"),e))})));let eq=()=>{setTimeout(()=>{let e=document.getElementById("intresseanmalan");null==e||e.scrollIntoView({behavior:"smooth"})},500)},eY={officeId:em,brokerId:ex};return null!=eA?w=(e=>{let n=[],t=0,l={residential:"Bostad",office:"Kontor",stores:"Butik",industry:"Industri",warmStockroom:"Varmlager",coldStockroom:"Kalllager",income:"Summa",garage:"Garage",others:"\xd6vrigt",areas:"Areal",parkingLot:"P-platser"};for(let[s,a]of Object.entries(e))if(a&&"object"==typeof a){if("others"===s&&Array.isArray(a))a.forEach(e=>{let r=Object.keys(e).sort().reduce((n,t)=>(n[t]=e[t],n),{});n.push({type:l[s]||s,_key:e._key||"generated-key-".concat(t++),...r})});else if(Object.values(a).some(e=>null!==e&&""!==e&&0!==e&&(!Array.isArray(e)||e.length>0))){let i=Object.keys(a).sort().reduce((e,n)=>(e[n]=a[n],e),{});if("income"===s){var r;e.areaSource&&(i["Areak\xe4lla"]=e.areaSource),e.areaSourceComment&&(i["Kommentar till areak\xe4lla"]=e.areaSourceComment),(null==e?void 0:null===(r=e.areas)||void 0===r?void 0:r.comment)&&(i["Kommentar till areak\xe4lla"]=e.areas.comment),(null==e?void 0:e.incomeComment)&&(i["Int\xe4ktsk\xe4lla"]=e.incomeComment)}let o=l[s]||s;n.push({type:o,_key:a._key||"generated-key-".concat(t++),...i})}}return n.sort((e,n)=>{if("Summa"===e.type)return 100;if("Summa"===n.type)return -100;let t=(e.name||"").localeCompare(n.name||"");return 0!==t?t:(e.type||"").localeCompare(n.type||"")}),n})(eA):console.warn("CommercialAreaData is not defined or is null"),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(C.Z,{pageData:S,withF
1orm:7!==eh,CTA:eU.CTA,onOpenFormDialog:()=>E(!0),onScrollToInterests:eq}),(0,l.jsx)("div",{className:"block md:hidden",children:(0,l.jsx)(T.e,{leasePurchase:ey,withForm:7!==eh,formSettings:eY,CTA:eU.CTA})}),(0,l.jsx)(T.Z,{links:eU.links,CTA:eU.CTA,formSettings:eY,leasePurchase:ey,withForm:7!==eh}),(0,l.jsx)(ej,{Viewings:es,ShowOneViewingTimeOnInternet:ef,officeId:null==K?void 0:K.VitecCustomerId,vitecId:eg}),(0,l.jsxs)(y.M,{id:"description",className:"py-[2.5rem] md:py-[4.5rem]",children:[W&&(0,l.jsx)(y.o,{start:"1",span:"6",children:(0,l.jsx)(x.X,{as:"h2",children:(0,s.tl)(W)})}),(Y||X)&&(0,l.jsxs)(y.o,{start:"7",span:"6",className:"flex flex-col md:gap-1",children:[(k="",(N&&(k=N),eL&&(k=k+"\n"+eL),k)?k.length>600&&!L?(0,h.S7)((null==k?void 0:k.substring(0,600))+"..."):(0,l.jsxs)(g.Fragment,{children:[N&&(0,h.S7)(N),eL&&(0,h.S7)(eL)]}):void 0),((e,n)=>{let t="";if(e&&(t=e),n&&(t+=n),t)return 600<(null==t?void 0:t.length)})(eL)&&(0,l.jsxs)("div",{onClick:()=>H(!L),className:"flex gap-2 cursor-pointer mt-2 text-neutral-6 font-medium text-base",children:[L?(0,l.jsx)(u.Z,{}):(0,l.jsx)(m.Z,{}),A(L?"hideFullDesc":"showFullDesc")]})]})]}),(0,l.jsx)("div",{id:"overview",className:"scroll-mt-20",children:(0,l.jsx)(h.ZP,{smallOverview:null==ev?void 0:ev.SmallOverview,Currency:$,isAbroad:7===eh})}),(en||et)&&(0,l.jsxs)(y.M,{className:"py-[2.5rem] md:py-[4.5rem]",children:[(0,l.jsx)(y.o,{span:"6",start:"1",children:(0,l.jsx)(x.X,{as:"h2",children:A("broker")})}),(0,l.jsxs)(y.o,{span:"6",start:"7",className:"flex flex-col gap-y-4 md:gap-y-8",children:[en&&(0,l.jsx)(f.Z,{brokerData:en,officeSlug:null==K?void 0:K.slug.current},en.BrokerName),et&&(0,l.jsx)(f.Z,{brokerData:et,officeSlug:null==K?void 0:K.slug.current},et.BrokerName)]})]}),(0,l.jsx)(ee,{ObjectVitecType:eh,ShowAreaDataOnInternet:e_,AccordionsData:ev,Links:eb,AreaData:{AreaDataList:eN,ShowAreaData:e_},CommercialAreaData:w,groupValue:V,setGroupValue:Z,ProjectEstates:eC}),U&&("OBJ26656_2128536169"===eg||"OBJ26656_2128536169"===q)&&(0,l.jsx)("div",{className:"grid grid-cols-6 md:grid-cols-12 gap-x-4 md:gap-x-8 gap-y-6 md:gap-y-12 px-4 md:px-24 scroll-mt-8 wrap-mx max-w-[var(--wrap-width)] my-[1.5rem] md:my-[4.5rem]",children:(0,l.jsx)(eS.Z,{...U})}),(0,l.jsx)(D.Z,{Images:el,StreetAddress:J,MarketingMethods:ei,ObjectVitecType:eh,links:eb,Country:er,withForm:7!==eh,CTA:eU.CTA,onOpenFormDialog:()=>E(!0),onScrollToInterests:eq}),(0,l.jsx)(O,{Images:el}),!eu&&ea&&ed&&(0,l.jsxs)(y.M,{id:"map",className:"py-[2.5rem] md:py-[4.5rem]",children:[(0,l.jsx)(y.o,{span:"12",start:"1",children:(0,l.jsx)(x.X,{as:"h2",children:A("map")})}),(0,l.jsx)(F.Z,{Latitude:ea,Longitude:ed})]}),(0,l.jsx)(y.M,{id:"intresseanmalan",className:"py-[2.5rem] md:py-[4.5rem]",children:(0,l.jsx)(y.o,{span:"12",start:"1",className:"flex flex-col gap-6",children:(0,l.jsx)(_,{VitecLeadType:a.u3.objectInterest,VitecCustomerId:em,EstateData:{objectId:eg,objectAddress:J,estateNumber:ep,brokerId:ex,brokerName:null==en?void 0:en.BrokerName,brokerEmail:null==en?void 0:en.EmailAddress},Heading:M("submitInterest"),Subtitle:J?"".concat(M("submitInterestSubtitle")," ").concat(J):"",OfficeName:null==K?void 0:K.title,OfficeEmail:null==K?void 0:K.EmailAddress,fallbackAddress:(0,s.tl)(S.SaleHeadline)})})}),(0,l.jsx)(eo,{office:K,isAboard:7===eh}),eR&&(0,l.jsx)(ec.w,{objectData:{StreetAddress:J,Price:z,SumOperationCost:G,MonthlyFee:Q}}),eE&&(0,l.jsx)(ew.N,{objectData:{StreetAddress:J,Price:z,SumOperationCost:G,MonthlyFee:Q}}),(0,l.jsx)(ek,{objectId:eg,officeId:null==K?void 0:K.VitecCustomerId}),R&&(0,l.jsx)(r.Z,{isOpen:R,onOpenChange:E,VitecLeadType:a.u3.FVPopupObject,VitecCustomerId:null==eY?void 0:eY.officeId,BrokerId:null==eY?void 0:eY.brokerId,children:P("freeValuation")})]})}},66395:function(e,n,t){var l=t(52676),r=t(82527),s=t(74436),a=t(78074),i=t(58945),o=t(22195),c=t(65e3),d=t(86435),u=t(2831);n.Z=e=>{let{VitecId:n,StreetAddress:t,Images:m,SmallOverview:p,Latitude:g,Longitude:x,Status:f,Currency:h,BiddingActive:v,MarketingMethods:j,NewConstruction:y,LeasePurchase:b,ObjectVitecType:N,LivingSpace:k,Municipality:w,AreaName:S,broker:A,brokerAdditional:_,office:C}=e,T=(0,r.useTranslations)("components.pages");return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.Z,{pageData:{VitecId:n,Currency:h,Images:m,StreetAddress:t,Status:f,BiddingActive:v,MarketingMethods:j,NewConstruction:y,LeasePurchase:b,LivingSpace:k,Municipality:w,AreaName:S,broker:A,brokerAdditional:_,office:C},showActions:!1}),(0,l.jsx)(a.ZP,{smallOverview:p,Currency:h,isSold:!0}),(A||_)&&(0,l.jsxs)(i.M,{className:"py-[4.5rem]",children:[(0,l.jsx)(i.o,{span:"6",start:"1",children:(0,l.jsx)(s.X,{as:"h2",children:T("broker")})}),(0,l.jsxs)(i.o,{span:"6",start:"7",className:"flex flex-col gap-y-8",children:[A&&(0,l.jsx)(u.Z,{brokerData:A,officeSlug:null==C?void 0:C.slug.current},A.BrokerName),_&&(0,l.jsx)(u.Z,{brokerData:_,officeSlug:null==C?void 0:C.slug.current},_.BrokerName)]})]}),(0,l.jsx)(c.Z,{Images:m,StreetAddress:t,showActions:!1}),g&&x&&(0,l.jsxs)(i.M,{id:"map",className:"py-[4.5rem]",children:[(0,l.jsx)(i.o,{span:"12",start:"1",children:(0,l.jsx)(s.X,{as:"h2",children:T("map")})}),(0,l.jsx)(d.Z,{Latitude:g,Longitude:x})]})]})}}
1,95608:function(e,n,t){var l=t(52676),r=t(86266),s=t(30235),a=t(67544),i=t(82527),o=t(8170),c=t(76711),d=t(74436),u=t(98709),m=t(58945),p=t(32361);n.Z=e=>{var n,t;let{pageData:g}=e,x=(0,i.useTranslations)("common.forms"),{Heading:f,MainBody:h,ContentArea:v,showExtraForm:j,office:y,_type:b}=g,N=null==g?void 0:null===(n=g.Hero)||void 0===n?void 0:n.PresentationImage,k=null==g?void 0:null===(t=g.Hero)||void 0===t?void 0:t.PresentationVideo;return(0,l.jsxs)(l.Fragment,{children:[(null==g?void 0:g.Hero)&&(0,l.jsx)(p.Z,{heroImage:N,heroVideo:k}),(0,l.jsxs)(m.M,{className:"my-[2.5rem] md:my-[4.5rem]",children:[(null==f?void 0:f.length)>0&&(0,l.jsx)(m.o,{span:"8",start:"3",children:(0,l.jsx)(d.Z,{as:"h1",children:f})}),h&&(0,l.jsx)(m.o,{span:"8",start:"3",children:(0,l.jsx)(o.YI,{value:h,components:r.e})})]}),!!v&&(0,l.jsx)(c.Z,{blocks:v}),b===s.lV&&j&&y&&!(null==y?void 0:y.ForeignOffice)&&(0,l.jsx)(m.M,{className:"my-[4.5rem]",children:(0,l.jsx)(m.o,{span:"12",start:"1",children:(0,l.jsx)(u.Z,{VitecLeadType:a.u3.FVLocalAreaPromos,VitecCustomerId:null==y?void 0:y.VitecCustomerId,Heading:x("freeValuationHeading"),Subtitle:x("freeValuationSubtitle")})})}),b===s.lV&&j&&y&&(null==y?void 0:y.ForeignOffice)&&(0,l.jsx)(m.M,{className:"my-[4.5rem]",children:(0,l.jsx)(m.o,{span:"12",start:"1",children:(0,l.jsx)(u.Z,{VitecLeadType:a.u3.abroadDream,ShowSwedishOffices:!1,VitecCustomerId:null==y?void 0:y.VitecCustomerId,Heading:x("abroadDream"),Subtitle:x("abroadDreamSubtitle")})})})]})}},45031:function(e,n,t){t.d(n,{x:function(){return i},Z:function(){return o}});var l=t(52676),r=t(58945),s=t(32789),a=e=>{let{link:n}=e;return(0,l.jsx)(s.o,{ratio:16/9,className:"relative",children:(0,l.jsx)("iframe",{title:"iframe for ".concat(n),src:n,className:"rounded-2xl w-full h-full absolute top-[50%] left-[50%] translate-x-[-50%] translate-y-[-50%]"})})};let i=e=>{var n;return null!==(n=(null==e?void 0:e.includes("player.vimeo.com/video/"))||(null==e?void 0:e.includes("fastout.com"))||(null==e?void 0:e.includes("youtube.com/embed"))||(null==e?void 0:e.includes("my.matterport.com/show")))&&void 0!==n&&n};var o=e=>{var n,t;let{link:s,useGridLayout:o=!1}=e;if(s.links&&(null==s?void 0:null===(n=s.links)||void 0===n?void 0:n.length)>0&&i(s.links[0])){let e=null===(t=s.text)||void 0===t?void 0:t.includes("planritning");return o?(0,l.jsx)(r.M,{className:"pt-[4.5rem] md:gap-4",children:(0,l.jsx)(r.o,{start:"1",span:"12",children:(0,l.jsx)("div",{className:"iframe-wrapper","data-is-floor-plan":e,children:(0,l.jsx)(a,{link:s.links[0]})})})},s._key):(0,l.jsx)("div",{className:"iframe-wrapper","data-is-floor-plan":e,children:(0,l.jsx)(a,{link:s.links[0]})})}return null}},95651:function(e,n,t){var l=t(50864),r=t(82527),s=t(37168),a=t(66994),i=t(25379);n.Z=e=>{let{searchParamName:n,scroll:t=!1,valueToDelete:o,shallow:c=!1}=e,d=(0,a.useRouter)(),u=(0,l.tv)(),m=(0,l.jD)(),p=(0,r.useLocale)(),g=(0,s.useSearchParams)(),x=(0,l.RO)({locale:p,href:m});return{handleChangeValue:e=>{let l=new URLSearchParams(n?null==g?void 0:g.toString():e);n&&(e&&e!==o?l.set(n,e):l.delete(n));let r="".concat(x,"?").concat(l.toString()).replace(/\?$/,"");c?null==d||d.replace({query:{locale:p,...Object.fromEntries(l.entries())}},"".concat(p===i.al?"":"/".concat(p)).concat(r),{shallow:!0,scroll:t}):u.replace(r,{scroll:t})}}}},30235:function(e,n,t){t.d(n,{C4:function(){return o},Jl:function(){return x},M4:function(){return g},NH:function(){return s},Qg:function(){return d},Tq:function(){return p},Ve:function(){return a},Y3:function(){return i},_4:function(){return j},jU:function(){return f},jt:function(){return u},kR:function(){return c},km:function(){return m},kv:function(){return r},lV:function(){return v},pA:function(){return h},s6:function(){return l}});let l="homePageDocument",r="footerDocument",s="ObjectPresentationPage",a="OfficeStartPage",i="BrokerPage",o="RegionPage",c="StandardPageGrandChild",d="StandardPageChild",u="StandardPageParent",m="ForeignPageGrandChild",p="ForeignPageChild",g="ForeignPageParent",x="navigationDocument",f="BlogPost",h="BlogLandingPage",v="BrokerOfficeExtraPage",j=[{t
1ype:l},{type:a},{type:i},{type:o},{type:c},{type:d},{type:u},{type:m},{type:p},{type:g},{type:f},{type:h},{type:v}].map(e=>e.type)},2188:function(e,n,t){t.d(n,{dr:function(){return X},pP:function(){return W},bq:function(){return G},gt:function(){return J},oY:function(){return $}});var l=t(14489);t(2733);var r=t(96569);t(15618);var s=t(52838),a=t(30235);let i="faqListBlock";var o=t(85344);function c(){let e=(0,l._)(["\n  select(\n    @.reference->_type == ",' => "/utland/" + @.reference->parent->parent->slug.current + "/" + @.reference->parent->slug.current + "/" + @.reference->slug.current,\n    @.reference->_type == ',' => "/utland/" + @.reference->parent->slug.current + "/" + @.reference->slug.current,\n    @.reference->_type == ',' => "/utland/" + @.reference->slug.current,\n    defined(@.reference->parent->parent->slug) => "/" + @.reference->parent->parent->slug.current + "/" + @.reference->parent->slug.current + "/" + @.reference->slug.current,\n    defined(@.reference->parent->slug) => "/" + @.reference->parent->slug.current + "/" + @.reference->slug.current,\n    @.reference->_type == ',' => "/maklare/" + lower(@.reference->OfficeName) + "/maklare/" + @.reference->slug.current,\n    @.reference->_type == ',' => "/object/" + @.reference->slug.current,\n    @.reference->_type == ',' => "/maklare-regioner/" + @.reference->slug.current,\n    @.reference->_type == ',' => select(@.reference->ForeignOffice => "/utland/maklare/", "/maklare/") + @.reference->slug.current,\n    @.reference->_type == ',' => select(@.reference->office->ForeignOffice => "/utland/maklare/", "/maklare/") + @.reference->office->slug.current + "/" + @.reference->slug.current,\n    @.reference->_type == ',' => select(@.reference->office->ForeignOffice => "/utland/maklare/", "/maklare/") + @.reference->office->slug.current + "/" + @.reference->slug.current,\n    @.reference->_type == ',' => select(@.reference->office->ForeignOffice => "/utland/maklare/", "/maklare/") + @.reference->office->slug.current + "/" + coalesce(\n      *[_type == ',' && references(^.reference->office._ref)][0].slug.current,\n      "upptack-" + @.reference->office->slug.current\n    ) + "/" + @.reference->slug.current,\n    "/" + @.reference->slug.current\n  )\n']);return c=function(){return e},e}function d(){let e=(0,l._)(["\n  select(\n    _type == ",' => "/utland/" + parent->parent->slug.current + "/" + parent->slug.current + "/" + slug.current,\n    _type == ',' => "/utland/" + parent->slug.current + "/" + slug.current,\n    _type == ',' => "/utland/" + slug.current,\n    defined(parent->parent->slug) => "/" + parent->parent->slug.current + "/" + parent->slug.current + "/" + slug.current,\n    defined(parent->slug) => "/" + parent->slug.current + "/" + slug.current,\n    _type == ',' => "/maklare/" + lower(OfficeName) + "/maklare/" + slug.current,\n    _type == ',' => "/object/" + slug.current,\n    _type == ',' => "/maklare-regioner/" + slug.current,\n    _type == ',' => select(ForeignOffice => "/utland/maklare/", "/maklare/") + slug.current,\n    _type == ',' => select(office->ForeignOffice => "/utland/maklare/", "/maklare/") + office->slug.current + "/" + slug.current,\n    _type == ',' => select(office->ForeignOffice => "/utland/maklare/", "/maklare/") + office->slug.current + "/" + slug.current,\n    _type == ',' => select(office->ForeignOffice => "/utland/maklare/", "/maklare/") + office->slug.current + "/" + coalesce(\n      *[_type == ',' && references(^.office._ref)][0].slug.current,\n      "upptack-" + office->slug.current\n    ) + "/" + slug.current,\n    _type == ',' => "/",\n    "/" + slug.current\n  )\n']);return d=function(){return e},e}let u=(0,s.Z)(c(),(0,r.B)(a.km),(0,r.B)(a.Tq),(0,r.B)(a.M4),(0,r.B)(a.Y3),(0,r.B)(a.NH),(0,r.B)(a.C4),(0,r.B)(a.Ve),(0,r.B)(a.lV),(0,r.B)(a.pA),(0,r.B)(a.jU),(0,r.B)(a.pA)),m=(0,s.Z)(d(),(0,r.B)(a.km),(0,r.B)(a.Tq),(0,r.B)(a.M4),(0,r.B)(a.Y3),(0,r.B)(a.NH),(0,r.B)(a.C4),(0,r.B)(a.Ve),(0,r.B)(a.lV),(0,r.B)(a.pA),(0,r.B)(a.jU),(0,r.B)(a.pA),(0,r.B)(a.s6));function p(){let e=(0,l._)(["\n*[\n  (_type == "," || \n   _type == "," || \n   _type == "," || \n   _type == "," ||\n   _type == "," ||\n   _type == ","\n   ) \n  && slug.current == $slug \n  && ",'\n][0] {\
1n  _type,\n  "officeSlug": *[_type == ',' && office._ref == ^.office._ref][0] {\n    "landingPageSlug": office->slug.current\n  }.landingPageSlug,\n  "officeBlogParentSlug": *[_type == ',' && office._ref == ^.office._ref][0] {\n    "landingPageSlug": *[_type == ',' && office._ref == ^.office._ref][0].slug.current\n  }.landingPageSlug,\n  "officeExtraPageParentSlug": *[_type == ',' && office._ref == ^.office._ref][0] {\n    "landingPageSlug": office->slug.current\n  }.landingPageSlug,\n}\n']);return p=function(){return e},e}function g(){let e=(0,l._)(["*[_type == "," && "," && ","] | order(BrokerName asc) {\n  BrokerName,\n  OfficeName,\n  EmailAddress,\n  ","\n}"]);return g=function(){return e},e}function x(){let e=(0,l._)(["*[_type == "," && "," && ","] | order(BrokerName asc) {\n  BrokerName,\n  OfficeName,\n  EmailAddress\n}"]);return x=function(){return e},e}function f(){let e=(0,l._)(["\n*[_type == $pageType && slug.current == $slug && ",'][0] {\n  language,\n  _type,\n  Heading,\n  HideChrome,\n  NoIndex,\n  "seo": {\n    "title": MetaTitle,\n    "description": MetaDescription,\n  },\n  Hero {\n    PresentationImage {\n      asset-> {\n        ...\n      },\n      alt\n    },\n    PresentationVideo\n  },\n  ',"\n  MainBody[] {\n    ...,\n    ","\n  }\n}"]);return f=function(){return e},e}function h(){let e=(0,l._)(["\n*[_type == "," && slug.current == $slug && "," && ",'][0] {\n  language,\n  _type,\n  showExtraForm,\n  "office": office->{\n    _id,\n    title,\n    VitecCustomerId,\n    ForeignOffice,\n  },\n  "officeSlug": office->slug.current,\n  Heading,\n  Hero {\n    PresentationImage {\n      asset-> {\n        ...\n      },\n      alt\n    },\n    PresentationVideo\n  },\n  ',"\n  MainBody[] {\n    ...,\n    ","\n  },\n}\n"]);return h=function(){return e},e}function v(){let e=(0,l._)(["*[_type == "," && slug.current == $slug && ","][0] {\n  _id,\n  Language,\n  TitleSearchPage,\n  MainBody[] {\n    ...,\n    ","\n  },\n  Offices[]-> {","},\n  Hero {\n    PresentationImage {\n      asset-> {\n        ...\n      },\n      alt\n    }\n  }\n}"]);return v=function(){return e},e}function j(){let e=(0,l._)(["\n*[_type == "," && slug.current == $brokerSlug && "," && (",')][0] {\n  language,\n  MainImage {\n    asset-> { ... }\n  },\n  MainImageVitec,\n  PresentationVideo,\n  PresentationImage {\n    asset-> { ... }\n  },\n  BrokerName,\n  Cellphone,\n  EmailAddress,\n  Title,\n  "OfficeName": *[_type == ',' && slug.current == $slug][0].title,\n  "OfficeId": *[_type == '," && slug.current == $slug][0].VitecCustomerId,\n\n  ",",\n  BrokerAbout,\n  BrokerAboutRich[] {\n    ...,\n    ","\n  },\n  BrokerFacebook,\n  BrokerInstagram,\n  Reviews,\n  BrokerLandingPage[] {\n    ...,\n    ","\n  },\n  BrokerLanguage,\n  BrokerSharpestAreas,\n  BrokerSpecialty,\n  BrokerRecommendation,\n  ",',\n  publishedOnOffice,\n  publishedOnOfficeManual,\n  _id,\n  "office": *[_type == ',' && _id == ^.OfficeIdList[][0]][0]{\n    slug { current },\n    ForeignOffice\n  },\n  MetaTitle,\n  MetaDescription,\n  "MetaPageImage": MetaPageImage{\n    asset->{ ... }\n  }\n}']);return j=function(){return e},e}function y(){let e=(0,l._)(["*[_type == "," && disableOffice != true && "," && slug.current == $slug][0] {\n  Language,\n  MetaTitle,\n  MetaDescription,\n  MetaPageImage,\n  City,\n  title,\n  OfficeName,\n}"]);return y=function(){return e},e}function b(){let e=(0,l._)(['\n  *[_type == "','" && slug.current == $officeBlog && '," && ",'][0] {\n    _id,\n    _type,\n    Language,\n    Hero,\n    "office": office->{\n      _id,\n      title\n    },\n    slug {\n      current\n    },\n    "officeSlug": office->slug.current,\n    "blogPosts": *[_type == "','" && office._ref == ^.office._ref]|order(PostDate desc) {\n      _id,\n      _type,\n      Title,\n      Hero,\n      PostDate,\n      Preamble[] {\n        ...,\n        ','\n      },\n      slug {\n        current\n      },\n      "office": office->{\n        _id,\n        title\n      },\n      "landingPageSlug": ^.slug.current\n    }\n  }\n']);return b=function(){return e},e}function N(){let e=(0,l._)(['\n  *[_type == "','" && slug.current == $blogPost && '," && ","][0] {\n    _id,\n    _type,\n    Language,\n    title,\n    Hero,\n    Preamble[] {\n      ...,\n      ",'\n    },\n    PostDate,\n    ContentArea,\n    MetaTitle,\n    MetaDescription,\n    "officeSlug": office->slug.current,\n    "office": office->{\n      _id,\n      title,\n      ForeignOffice\n    },\n    ',"\n  }\n"]);return N=function(){return e},e}function k(){let e=(0,l._)(['{\n  "offices": *[_type == '," && disableOffice != true && "," && select($for == ",' => ForeignOffice == true, (ForeignOffice == false || !defined(ForeignOffice)))] | order(title asc) {\n    Language,\n    title,\n    SearchAlias\n  },\n  "regions": *[_type == '," && "," && select($for == "," => ForeignRegion == true, (ForeignRegion == false || !defined(ForeignRegion)))] | order(TitleSearchPage asc) {\n    Language,\n    TitleSearchPage,\n  },\n}"]);return k=function(){return e},e}function w(){let e=(0,l._)(["\n*[_type == ",' && slug.current == $slug][0]{\n  StreetAddress,\n  SaleHeadline,\n  City,\n  Status,\n  IsPreSale,\n  ObjectVitecType,\n  ShortSaleDescription,\n  Rooms,\n  LivingSpace,\n  BuildingType,\n  Municipality,\n  MetaTitle,\n  MetaDescription,\n  MetaPageImage{\n    asset->{ url }\n  },\n  "Image": Images[ShowImageOnInternet == true] | order(OrderNumber asc){\n    Url\n  }[0]\n}\n']);return w=function(){return e},e}function S(){let e=(0,l._)(["*[_type == "," && ","] | score(language == $locale) | order(_score desc) {\n  for,\n  title,\n  section1 {","},\n  section2 {","},\n  section3 {","},\n  section4 {","},\n}"]);return S=function(){return e},e}function A(){let e=(0,l._)(["\n*[_type == "," && for == $for && ","][0] {\n  ",'\n  language,\n  header,\n  subHeader,\n  heroVideo,\n  heroImage {\n    asset -> {\n      ...,\n    },\n    alt\n  },\n  "latestObjects": *[_type == "','" \n    && CountryCode == "SE"\n    && Status != "','"\n    && Status == "','"\n  ] \n  | order(coalesce(FirstPublishingDateOnHomepage, ChangedDate, _updatedAt) desc)[0...4] {\n    _id,\n    title,\n    FirstPublishingDateOnHomepage,\n    ChangedDate,\n    _updatedAt,\n    ',"\n  },\n  ourServices {\n   title,\n   cards[] {\n    ...,\n    Link { ",' } \n   }\n  },\n  "seo": {\n    title,\n    description,\n    "ogImage": image,\n    "ogImageUrl": image.asset-> { url },\n  }\n}']);return A=function(){return e},e}function _(){let e=(0,l._)(["*["," && $identifier in identifiers] {\n  ","\n}"]);return _=function(){return e},e}function C(){let e=(0,l._)(['{\n  "menuLinks": *[_type == '," && ","] | score(language == $locale) | order(_score desc) {\n    for,\n    navigationLinks[] {\n      title,\n      link {","}\n    },\n    secondaryLinks[] {\n      title,\n      link {","}\n    },\n    headLinks[] {\n      title,\n      link {","}\n    }\n  },\n}\n"]);return C=function(){return e},e}function T(){let e=(0,l._)(['{\n  "footers": ',',\n  "navigation": ',",\n}"]);return T=function(){return e},e}function B(){let e=(0,l._)(["\n  *[\n    _type in "," &&\n    (\n      (_type == "," && disableOffice != true) \n      || (_type == "," && ",")\n      || (_type == "," && ",")\n      || (_type == "," && ",')\n    )\n  ] {\n\n    "slug": select(\n        _type == ',' => "/" + parent->parent->slug.current + "/" + parent->slug.current + "/" + slug.current,\n        _type == ',' => "/" + parent->slug.current + "/" + slug.current,\n        _type == ',' => "/" + parent->parent->slug.current + "/" + parent->slug.current + "/" + slug.current,\n        _type == ',' => "/" + parent->slug.current + "/" + slug.current,\n        _type == '," => select(for == ",' => "/utland", "/"),\n        _type == ',' => "/maklare/" + lower(OfficeName) + "/maklare/" + slug.current,\n        _type == ',' => "/maklare-regioner/" + slug.current,\n        _type == ',' && (ForeignOffice == false || !defined(ForeignOffice)) => "/maklare/" + slug.current,\n        _type == ',' && ForeignOffice == true => "/utland/maklare/" + slug.current,\n        _type == ',' => "/maklare/" + office->slug.current + "/" + slug.current,\n        _type == ',' => "/maklare/" + office->slug.current + "/" + *[_type == ',' && office._ref == ^.office._ref][0].slug.current + "/" + slug.current,\n        _type == ',' => "/maklare/" + office->slug.current + "/" + slug.current,\n        "/" + slug.current,  // Fallback condition is the last argument\n    ),\n    "lastModified": _updatedAt,\n  }\n']);return B=function(){return e},e}function I(){let e=(0,l._)(["\n*[_type == "," && ","] {\n  ",', \n  "lastModified": _updatedAt,\n}']);return I=function(){return e},e}function O(){let e=(0,l._)(["\n  *[_type == "," && lower(_id) == lower($slug)
1][0] {\n    ","\n  }\n"]);return O=function(){return e},e}function D(){let e=(0,l._)(['\n*[_id == $id][0]{\n  "slug": select(\n    _type == ',' => parent->parent->slug.current + "/" + parent->slug.current + "/" + slug.current,\n    _type == ',' => parent->slug.current + "/" + slug.current,\n    _type == '," => slug.current,\n    _type == ",' => parent->parent->slug.current + "/" + parent->slug.current + "/" + slug.current,\n    _type == ',' => parent->slug.current + "/" + slug.current,\n    _type == '," => slug.current\n  )\n}"]);return D=function(){return e},e}function F(){let e=(0,l._)(['\n*[_id == $id][0]{\n  "slug": slug.current,\n  "officeSlug": coalesce(\n    *[_id == "drafts." + ^.office._ref][0].slug.current,\n    office->slug.current\n  ),\n  "foreignOffice": office->ForeignOffice == true,\n  "officeDisabled": office->disableOffice == true,\n  "landingSlug": coalesce(\n    *[\n      _type == ','\n      && office._ref == ^.office._ref\n      && _id in path("drafts.**")\n    ][0].slug.current,\n    *[\n      _type == ','\n      && office._ref == ^.office._ref\n      && !(_id in path("drafts.**"))\n    ][0].slug.current\n  )\n}']);return F=function(){return e},e}t(67544);let M='\n  markDefs[] {\n    ...,\n    _type == "internalLink" => {\n      "slug": @.reference->slug,\n      "fullSlug": '.concat(u,"\n    }\n  },\n  asset -> {\n    url,\n    metadata {\n      dimensions {\n        aspectRatio\n      }\n    }\n  }\n"),P='select(!defined(language) => true, select(language == $locale => true, language == "sv"))',V="(defined(publicOnInternet) && publicOnInternet == true)",Z='\n"OfficeNames": customerIdsWithSortOrder[customerId in ^.publishedOnOffice || customerId in ^.publishedOnOfficeManual] {\n  "title": *[_type == '.concat((0,r.B)(a.Ve)," && _id == ^.officeId][0].title\n}\n"),L=()=>'\n  _id,\n  "StreetAddress": select(HideAddress => null, StreetAddress),\n  SaleHeadline,\n  "Price": select(Status == "'.concat(o.NI,'" || HidePrice => 0, Price),\n  Rooms,\n  LivingSpace,\n  Municipality,\n  ObjectVitecType,\n  City,\n  Province,\n  AreaName,\n  Latitude,\n  Longitude,\n  ReferenceId,\n  Country,\n  "OfficeName": *[_type == ').concat((0,r.B)(a.Ve),' && _id == ^.OfficeId][0] {\n    title\n  },\n  MonthlyFee,\n  Status,\n  IsPreSale,\n  "BiddingActive": select(BiddingHidden => null, BiddingActive),\n  MarketingMethods,\n  NewConstruction,\n  EstateNumber,\n  Floor,\n  LeasePurchase,\n  Currency,\n  slug {\n    current\n  },\n  "Image": Images[ShowImageOnInternet == true] | order(OrderNumber asc) {\n    _key,\n    Category,\n    Supplier,\n    Extension,\n    ShowImageOnInternet,\n    OrderNumber,\n    Url,\n    Text,\n    HemnetOrderNumber,\n  }[0],\n  "Viewings": Viewings[showOnInternet == true]{\n    id, date, startTime, endTime, commentary, showOnInternet\n  },\n  "internetSettings": internetSettings,\n  "bids": select(\n    (BiddingHidden || internetSettings.bidSetting == "DontShowBidding" || internetSettings.bidSetting == "ShowBidding") => null,\n    internetSettings.bidSetting == "ShowHighestBid" => bids[cancelled == false] | order(dateAndTime desc) [0...1],\n    bids[cancelled == false] | order(dateAndTime desc)\n  ),\n  "AssociationInfo": {\n    "id": AssociationCorporateNumber,\n    "AssociationLongTexts": [\n      {\n        "title": "Allm\xe4nt om f\xf6reningen",\n        "text": AssociationGeneralAboutText,\n        "longText": true\n      },\n      {\n        "title": "Renoveringar",\n        "text": AssociationRenovations,\n        "longText": true\n      },\n      {\n        "title": "Parkering",\n        "text": AssociationParking,\n        "longText": true\n      },\n      {\n        "title": "F\xf6rs\xe4kring",\n        "text": Insurance,\n        "longText": true\n      },\n      {\n        "title": "Gemensamma utrymmen",\n        "text": SharedSpaces,\n        "longText": true\n      },\n      {\n        "title": "G\xe5rdsplats",\n        "text": SpacesCourtYard,\n        "longText": true\n      },\n      {\n        "title": "Information om m\xe5nadsavgift",\n        "text": AssociationMonthlyFeeInformation,\n        "longText": true\n      },\n      {\n        "title": "Tv & Bredband",\n        "text": AssociationTvAndBroadband,\n        "longText": true\n      },\n      {\n        "title": "\xd6vrigt",\n        "text": AssociationOther,\n        "longText": true\n      },                  \n  ],\n  "AssociationFacts": [\n      {\n        "title": "F\xf6reningsnamn",\n        "text": AssociationName\n      },\n      {\n        "title": "Organisationsnummer",\n        "text": AssociationCorporateNumber\n      },\n      {\n        "title": "Epost",\n        "text": AssociationEmail\n      },\n      {\n        "title": "Hemsida",\n        "text": AssociationHomepage\n      },\n      {\n        "title": "Ekonomi",\n        "text": AssociationFinances \n      },\n      {\n        "title": "\xc4ger f\xf6reningen marken",\n        "text": AssociationOwnTheGround,\n        "longText": true\n      },\n      {\n        "title": "Antal l\xe4genheter",\n        "text": AssociationNumberOfApartments,\n      },\n      {\n        "title": "Antal hyresl\xe4genheter",\n        "text": AssociationNumberOfRentalUnits,\n      },\n      {\n        "title": "Antal lokaler",\n        "text": AssociationNumberOfLocals,\n      },\n      {\n        "title": "\xd6verl\xe5telseavgift",\n        "text": AssociationTransferFee,\n        "isCurrency": true,\n        "extraText": select(AssociationTransferFeePaidBy == "Buyer" => " betalas av k\xf6paren", AssociationTransferFeePaidBy == "Seller" => " betalas av s\xe4ljaren", null)\n      },\n      {\n        "title": "Pants\xe4ttningsavgift",\n        "text": AssociationPledgeFee,\n        "isCurrency": true,\n        "extraText": " betalas av k\xf6paren"\n      },\n      {\n        "title": "Till\xe5ter f\xf6reningen juridisk person som k\xf6pare",\n        "text": select(AssociationAllowLegalPersonAsBuyer == "Yes" => "Ja", AssociationAllowLegalPersonAsBuyer == "No" => "Nej", null),\n      },\n      {\n        "title": "Till\xe5ter f\xf6reningen delat \xe4gande",\n        "text": AssociationAllowTwinOwnership,\n      },\n      {\n        "title": "\xc4kta/o\xe4kta bostadsr\xe4ttsf\xf6rening",\n        "text": select(AssociationIsItFakeOrReal => "\xc4kta", !AssociationIsItFakeOrReal => "O\xe4kta", null)\n      }\n    ]\n  },\n'),H='\n  title,\n  link {\n    href,\n    blank,\n  },\n  page-> {\n    "fullSlug": '.concat(m,"\n  },\n  file {\n    file {\n      asset-> {\n        url\n      }\n    }\n  }\n"),R="\n  title,\n  link[] {\n    ".concat(H,"\n  }\n"),E='\n  _id,\n    "openPositionTitle": openPositionTitle->{\n      title,\n      _id\n    },\n    office -> {\n      _id,\n      OfficeName,\n      title\n    },\n    location,\n    "manualOfficeName": officeName,\n    Link {\n      '.concat(H,",\n    },\n    MainBody[] {\n      ...,\n      ").concat(M,"\n  }\n"),U='\n  _id,\n    "newEstablishmentTitle": newEstablishmentTitle->{\n      title,\n      _id\n    },\n    office -> {\n      _id,\n      OfficeName,\n      title\n    },\n    location,\n    "manualOfficeName": officeName,\n    Link {\n      '.concat(H,",\n    },\n    MainBody[] {\n      ...,\n      ").concat(M,"\n  }\n"),q='\n  _type == "reference" => @->{\n    _id,\n    _type,\n    Heading,\n    Subtitle,\n    ButtonText,\n    VitecLeadType,\n  },\n   _type == "workApplicationForm" => @-> {\n    _id,\n    _type,\n    Heading,\n    Subtitle,\n    ButtonText,\n    ToEmail\n  },\n  _type == "generalCardContainer" => {\n    ...,\n    Heading,\n    "Cards": coalesce(\n      Cards[] {\n        ...,\n        Link {\n          '.concat(H,',\n        }\n      }\n    ),\n  },\n  _type == "uploadedVideo" => {\n    ...,\n    VideoSource,\n  },\n  _type == "puffContainer" => {\n    ...,\n    "heading": coalesce(Template->heading, heading),\n    "subtitle": coalesce(Template->subtitle, subtitle),\n    "Link": coalesce(\n      Template->Link {\n        ').concat(H,"\n      },\n      Link {\n        ").concat(H,'\n      }\n    ),\n    "gridPuffs": coalesce(\n      Template->gridPuffs[] {\n        ...,\n        Link {\n          ').concat(H,'\n        },\n        "PageType": ^.^._type,\n      },\n      gridPuffs[] {\n        ...,\n        Link {\n          ').concat(H,'\n        },\n        "PageType": ^.^._type,\n      }\n    ),\n    "sliderPuffs": coalesce(\n      Template->sliderPuffs[] {\n        ...,\n        Link {\n          ').concat(H,'\n        },\n        "PageType": ^.^._type,\n      },\n      sliderPuffs[] {\n        ...,\n        Link {\n          ').concat(H,'\n        },\n        "PageType": ^.^._type,\n      }\n    ),\n    Template-> {\n      heading,\n      subtitle,\n      Link {\n        ').concat(H,"\n      },\n      gridPuffs[] {\n        ...,\n        Link {\n          ").concat(H,'\n          },\n        "PageType": ^.^._type,\n      }\n    }\n  },\n  _type == "featuredObjectBlock" => {\n    ...,\n    "heading": coalesce(Template->heading, heading),\n    "items": coalesce(\n      Template->items[]->{..., ').concat(L(),"},\n      items[]->{..., ").concat(L(),'}\n    ),\n    "latestObjects": *[_type == "').concat(a.NH,'" \n      && CountryCode == "SE"\n      && Status != "').concat(o.NI,'" \n      && Status == "').concat(o.nF,'"\n    ] \n    | order(coalesce(FirstPublishingDateOnHomepage, ChangedDate, _updatedAt) desc)[0...4] {\n      _id,\n      title,\n      FirstPublishingDateOnHomepage,\n      ChangedDate,\n      _updatedAt,\n      ').concat(L(),'\n    }\n  },\n  _type == "textBlock" => {\n    ...,\n    Body[] {\n      ...,\n      ').concat(M,'\n    }\n  },\n  _type == "bannerPuff" => {\n    ...,\n    "Heading": coalesce(Template->Heading, Heading),\n    "Subtitle": coalesce(Template->Subtitle, Subtitle),\n    "Link": coalesce(\n      Template->Link {\n        ').concat(H,"\n      },\n      Link {\n        ").concat(H,'\n      }\n    ),\n    "FullWidth": coalesce(Template->FullWidth, FullWidth),\n    Template-> {\n      Heading,\n      Subtitle,\n      Link {\n        ').concat(H,'\n      },\n      FullWidth\n    }\n  },\n  _type == "openPositionBlock" => {\n    "Title": coalesce(Template->Title, Title),\n    "OpenPositions":  coalesce(Template->openPositions[]->{\n      ').concat(E,"\n    },\n    openPositions[]->{\n      ").concat(E,'}\n    ),\n  },\n  _type == "newEstablishmentBlock" => {\n    "Title": coalesce(Template->Title, Title),\n    "NewEstablishments":  coalesce(Template->newEstablishments[]->{\n      ').concat(U,"\n    },\n    newEstablishments[]->{\n      ").concat(U,'}\n    ),\n  },\n  _type == "splitContentBlock" => {\n    ...,\n    "Heading": coalesce(Template->Heading, Heading),\n    "Subtitle": coalesce(Template->Subtitle, Subtitle),\n    "Link": coalesce(\n      Template->Link {\n        ').concat(H,"\n      },\n      Link {\n        ").concat(H,'\n      },\n    ),\n    "Image": coalesce(Template->Image, Image),\n    "ImageText": coalesce(Template->ImageText, ImageText),\n    "FlipImage": coalesce(Template->FlipImage, FlipImage),\n    "LargeBlock": coalesce(Template->LargeBlock, LargeBlock),\n    Template-> {\n      Heading,\n      Subtitle,\n      Link {\n        ').concat(H,'\n      },\n      Image,\n      ImageText,\n      FlipImage,\n      LargeBlock\n    }\n  },\n  _type == "tabbedContentBlock" => {\n    ...,\n    Heading,\n    tabs[] {\n      Heading,\n      Body[] {\n        ...,\n        ').concat(M,'\n      },\n      Image {\n        ...,\n        asset-> {\n          ...\n        }\n      }\n    }\n  }
1,\n  _type == "brokerListBlock" && collection == "equestrian-home" => {\n    ...,\n    "Brokers": *[_type == ').concat((0,r.B)(a.Y3)," && showBrokerOnEquestrian == true && ").concat(V,"] {\n      ").concat("\n  _id,\n  MainImage {\n    asset -> {\n      ...\n    }\n  },\n  BrokerName,\n  OfficeName,\n  Title,\n  MainImageVitec,\n  Cellphone,\n  EmailAddress,\n  slug {\n    current\n  }\n","\n    },\n  },\n  _type == ").concat((0,r.B)(i),' => {\n    ...,\n    "FAQListBlock": *[_type == ').concat((0,r.B)(i)," && _id==^._ref && ").concat(P,"][0] {\n      ...,\n      Heading,\n      HeadingLevel,\n      Preamble[] {\n          ...,\n          ").concat(M,"\n      },\n      FAQList[] {\n        Question,\n        Answer[] {\n          ...,\n          ").concat(M,"\n        }\n      }\n    }\n  },\n"),Y="\nContentArea[] {\n  ...,\n ".concat(q,"\n},"),z='\n  "Objects": *[_type == '.concat((0,r.B)(a.NH)," && ").concat('(Status != "2" || IsPreSale) && defined(Status)'," && select(\n    $").concat(o.j2,' == "0" => Status != "').concat(o.NI,'",\n    $').concat(o.j2,' == "Viewings" => count(Viewings[showOnInternet == true && dateTime(endTime) > dateTime(now()) - 60*60]) > 0 && Status != "').concat(o.NI,'",\n    Status == $').concat(o.j2,"\n  ) && (AssignmentBrokerId == ^._id || AssignmentAdditionalBrokerId == ^._id)]|order(coalesce(FirstPublishingDateOnHomepage, ChangedDate, _updatedAt) desc)[0...$objectLimit] {\n    ").concat(L(),'\n  },\n  "ObjectsCount": count(*[_type == ').concat((0,r.B)(a.NH)," && ").concat('(Status != "2" || IsPreSale) && defined(Status)'," && select(\n    $").concat(o.j2,' == "0" => Status != "').concat(o.NI,'",\n    $').concat(o.j2,' == "Viewings" => count(Viewings[showOnInternet == true && dateTime(endTime) > dateTime(now()) - 60*60]) > 0 && Status != "').concat(o.NI,'",\n    Status == $').concat(o.j2,'\n  ) && (AssignmentBrokerId == ^._id || AssignmentAdditionalBrokerId == ^._id)]._id),\n  "SoldObjectsCount": count(*[_type == ').concat((0,r.B)(a.NH)," && ").concat('(Status != "2" || IsPreSale) && defined(Status)',' && Status == "').concat(o.NI,'" && (AssignmentBrokerId == ^._id || AssignmentAdditionalBrokerId == ^._id)]._id)\n'),$=(0,s.Z)(p(),(0,r.B)(a.Ve),(0,r.B)(a.pA),(0,r.B)(a.jU),(0,r.B)(a.lV),(0,r.B)(a.NH),(0,r.B)(a.Y3),P,(0,r.B)(a.pA),(0,r.B)(a.jU),(0,r.B)(a.pA),(0,r.B)(a.lV));(0,s.Z)(g(),(0,r.B)(a.Y3),V,P,Z),(0,s.Z)(x(),(0,r.B)(a.Y3),P,V);let G=(0,s.Z)(f(),P,Y,M),Q="office->disableOffice != true";(0,s.Z)(h(),(0,r.B)(a.lV),P,Q,Y,M),(0,s.Z)(v(),(0,r.B)(a.C4),P,M,"\n  _id,\n  title,\n  OfficeName,\n  PostalAddress,\n  City,\n  ForeignOffice,\n  Telephone,\n  EmailAddress,\n  PresentationImageOffice {\n    asset-> {\n      ...\n    },\n    alt\n  },\n  slug {\n    current\n  }\n");let W=(0,s.Z)(j(),(0,r.B)(a.Y3),P,V,(0,r.B)(a.Ve),(0,r.B)(a.Ve),Z,M,M,z,(0,r.B)(a.Ve)),X=(0,s.Z)(y(),(0,r.B)(a.Ve),P);(0,s.Z)(b(),a.pA,P,Q,a.jU,M),(0,s.Z)(N(),a.jU,P,Q,M,Y),(0,s.Z)(k(),(0,r.B)(a.Ve),P,(0,r.B)(o.ap),(0,r.B)(a.C4),P,(0,r.B)(o.ap));let J=(0,s.Z)(w(),(0,r.B)(a.NH)),K=(0,s.Z)(S(),(0,r.B)(a.kv),P,R,R,R,R);(0,s.Z)(A(),(0,r.B)(a.s6),P,Y,a.NH,o.NI,o.nF,L(),H),(0,s.Z)(_(),'_type in ["reference", "generalCardContainer", "uploadedVideo", "puffContainer", "textBlock", "bannerPuff", "splitContentBlock", "tabbedContentBlock"]',q);let ee=(0,s.Z)(C(),(0,r.B)(a.Jl),P,H,H,H);(0,s.Z)(T(),K,ee),(0,s.Z)(B(),(0,r.B)(a._4),(0,r.B)(a.Ve),(0,r.B)(a.pA),Q,(0,r.B)(a.jU),Q,(0,r.B)(a.lV),Q,(0,r.B)(a.kR),(0,r.B)(a.Qg),(0,r.B)(a.km),(0,r.B)(a.Tq),(0,r.B)(a.s6),(0,r.B)(o.ap),(0,r.B)(a.Y3),(0,r.B)(a.C4),(0,r.B)(a.Ve),(0,r.B)(a.Ve),(0,r.B)(a.pA),(0,r.B)(a.jU),(0,r.B)(a.pA),(0,r.B)(a.lV));let en='\n  "OfficeName": *[_type == '.concat((0,r.B)(a.Ve)," && _id == ^.OfficeId][0] {\n    title\n  },\n  ObjectVitecType,\n  Municipality,\n  City,\n  AreaName,\n  Country,\n  Province,\n  slug {\n    current\n  }\n");(0,s.Z)(I(),(0,r.B)(a.NH),'(Status != "2" || IsPreSale) && defined(Status)',en),(0,s.Z)(O(),(0,r.B)(a.NH),en),(0,s.Z)(D(),(0,r.B)(a.kR),(0,r.B)(a.Qg),(0,r.B)(a.jt),(0,r.B)(a.km),(0,r.B)(a.Tq),(0,r.B)(a.M4)),(0,s.Z)(F(),(0,r.B)(a.pA),(0,r.B)(a.pA))},10491:function(e,n,t){t.d(n,{$:function(){return u}});let l={layout:3600,homePage:600,slugPage:300,brokerOffice:600};var r=t(25379),s=t(65853),a=t(217),i=t(14224);let o=(0,a.eI)({projectId:s.Sx,dataset:s.gx,apiVersion:s.tW,useCdn:!1}),c=(0,a.eI)({projectId:s.Sx,dataset:s.gx,apiVersion:s.tW,useCdn:!0}
1),d=i.env.SANITY_API_READ_TOKEN;async function u(e){let{query:n,params:t={},tags:s,revalidateAs:a,useCdn:i=!0,locale:u=r.al,draftMode:m=!1,signal:p}=e;if(m&&!d)throw Error("The `SANITY_API_READ_TOKEN` environment variable is required.");return l[a],(i?c:o).fetch(n,{...t,locale:u},{signal:p,perspective:"published",...m&&{token:d,useCdn:!1,perspective:"drafts"}})}}}]);

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.