PageSourceSearch

https://www.maklarringen.se/_next/static/chunks/1190-dabf4fc891bda9e6.js

js maklarringen.se collected 2026-09-25 20:48:15 UTC 49,008 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1190],{38662:function(e,l,t){t.d(l,{v:function(){return a}});var s=t(52676);let a=e=>{let{stroke:l="black",className:t}=e;return(0,s.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:(0,s.jsx)("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:l,strokeWidth:"1.2",strokeLinecap:"square",strokeLinejoin:"round"})})}},71962:function(e,l,t){t.d(l,{H:function(){return a}});var s=t(52676);let a=e=>{let{stroke:l="black",className:t}=e;return(0,s.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:(0,s.jsx)("path",{d:"M15 12.5L10 7.5L5 12.5",stroke:l,strokeWidth:"1.2",strokeLinecap:"square",strokeLinejoin:"round"})})}},76711:function(e,l,t){t.d(l,{Z:function(){return K}});var s=t(52676),a=t(75271),n=t(81884),r=t(50864),i=t(58945),o=t(178),d=t(97395),c=t(74436),u=t(2831),m=t(21590),f=t(15618),x=t.n(f),p=t(61739),h=t(14928),v=e=>{var l,t,a,i,o,d,c;let{cardData:u}=e,m=(0,r.jD)();if(x()(u))return null;let{Title:f,Subtitle:v,Image:g,Link:j}=u,b=(null==g?void 0:g.asset)?(0,p.S)(g.asset).url():"",N=(null==j?void 0:null===(l=j.page)||void 0===l?void 0:l.fullSlug)||(null==j?void 0:null===(t=j.link)||void 0===t?void 0:t.href)||(null==j?void 0:null===(o=j.file)||void 0===o?void 0:null===(i=o.file)||void 0===i?void 0:null===(a=i.asset)||void 0===a?void 0:a.url)||"",k=(null==j?void 0:null===(d=j.link)||void 0===d?void 0:d.blank)?"_blank":"_self";return(0,s.jsxs)(r.rU,{href:(null==j?void 0:null===(c=j.page)||void 0===c?void 0:c.fullSlug)?"".concat(m).concat(N):N,target:k,className:"flex flex-col col-span-12 md:col-span-6 gap-y-4 overflow-hidden mb-2 md:mb-4",children:[(0,s.jsx)("div",{className:"overflow-hidden rounded-2xl",children:(0,s.jsx)(h.Z,{src:b,alt:"Bild fr\xe5n ".concat(f),aspectRatio:1.5,aspectRatioClassName:"scale-100 hover:scale-105 transition-all duration-200",className:"object-cover",sizes:"(max-width: 768px) 100vw, (max-width: 1024px) 40vw, 600px"})}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsxs)("div",{className:"flex font-semibold text-lg items-center justify-between",children:[f,(0,s.jsx)(n.A,{})]}),(0,s.jsx)("div",{className:"flex flex-col",children:(0,s.jsx)("span",{className:"text-[#292827b3]",children:v})})]})]})},g=t(38662),j=t(71962),b=t(86266),N=t(2733),k=t(92495),w=t(8170),y=t(49315);let z=e=>{let{label:l,items:t,value:n,onValueChange:r}=e,[i,o]=(0,a.useState)(!1);return(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("label",{className:"mb-2",htmlFor:"".concat(l,"-select"),children:l}),(0,s.jsxs)(k.fC,{value:n,onValueChange:r,onOpenChange:e=>o(e),children:[(0,s.jsxs)(k.xz,{id:"".concat(l,"-select"),className:(0,N.cn)("px-4 py-3 gap-2 flex justify-between items-center border rounded-2xl border-[#2828283D]"),"aria-label":l,children:[(0,s.jsx)(k.B4,{placeholder:"Alla"}),(0,s.jsxs)(k.JO,{children:[i?(0,s.jsx)(j.H,{}):(0,s.jsx)(g.v,{})," "]})]}),(0,s.jsxs)(k.VY,{position:"popper",className:(0,N.cn)("relative w-full z-50 max-h-96 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 mt-1"),children:[(0,s.jsx)(k.u_,{className:"flex items-center justify-center",children:(0,s.jsx)(j.H,{})}),(0,s.jsxs)(k.l_,{className:"p-3 pr-10 mt-2",children:[(0,s.jsx)(k.ck,{value:"all",className:(0,N.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50"),children:(0,s.jsx)(k.eT,{children:"Alla"})}),t.map((e,l)=>(0,s.jsx)(k.ck,{value:e,className:(0,N.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50"),children:(0,s.jsx)(k.eT,{children:e})},l))]}),(0,s.jsx)(k.$G,{className:"flex items-center justify-center",children:(0,s.jsx)(g.v,{})})]})]})]})};
1var C=e=>{let{title:l,titleHeadingLevel:t,items:n,preamble:r,filters:d,noItemsLabel:u="",variant:m="default"}=e,[f,x]=(0,a.useState)({}),[p,h]=(0,a.useState)([]),v=(e,l)=>{x(t=>({...t,[e.field]:l})),h(e=>[])};(0,a.useEffect)(()=>{let e={};d&&(e=null==d?void 0:d.reduce((e,l)=>({...e,[l.field]:"all"}),{})),x(l=>e)},[d]),(0,a.useEffect)(()=>{h(e=>[])},[n]);let g=d&&d.map(e=>{let l=n.map(l=>{var t;return null===(t=l.filterFields)||void 0===t?void 0:t[e.field]}).filter(e=>e).filter((e,l,t)=>t.indexOf(e)===l);return{...e,options:l}}),j=n.filter(e=>(d||[]).filter(l=>{var t;let s=null==f?void 0:f[l.field],a=null==e?void 0:null===(t=e.filterFields)||void 0===t?void 0:t[l.field];return"all"===s||a===s}).length===((null==d?void 0:d.length)||0)),k=t?"h".concat(t+1):"h3";return(0,s.jsxs)(i.o,{span:"8",start:"3",children:[l&&(0,s.jsx)(c.Z,{className:"mb-10",as:t?"h".concat(t):"h2",children:l}),r&&(0,s.jsx)("div",{className:"mb-6",children:(0,s.jsx)(w.YI,{value:r,components:b.e})}),!!g&&j.length>0&&(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mb-14",children:g.map((e,l)=>(0,s.jsx)(z,{label:e.label,items:e.options,value:null==f?void 0:f[e.field],onValueChange:l=>v(e,l)},l))}),(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)(y.UQ,{type:"multiple",className:"w-full flex-col flex gap-4",value:p,onValueChange:e=>{h(l=>e)},children:j&&j.length>0?j.map((e,l)=>(0,s.jsxs)(y.Qd,{value:"item-".concat(l+1),className:"scroll-mt-[4.5rem rounded-3xl border-b-0 bg-neutrals-neutral-1 px-4 py-6 md:p-8",children:[(0,s.jsx)(y.o4,{className:(0,N.cn)("p-0",{"md:py-0":"compact"===m}),alternativeAccordion:!0,as:k,children:(0,s.jsxs)("div",{className:"font-medium tracking-[-0.01em] text-left text-base md:text-xl",children:[e.title,!!e.subTitle&&(0,s.jsx)("div",{className:"pt-1 text-base font-normal text-[#696969]",children:e.subTitle})]})}),(0,s.jsxs)(y.vF,{className:(0,N.cn)("pb-0",{"pt-9":"default"===m,"pt-0":"compact"===m}),children:[!!e.body&&(0,s.jsx)(w.YI,{value:e.body,components:b.e}),!!e.buttonUrl&&(0,s.jsx)(o.z,{internalLink:!0,href:e.buttonUrl,className:"mt-10 rounded-2xl",children:e.buttonText||"Jag vill veta mer"})]})]},l)):(0,s.jsx)("p",{className:"mb-4",children:u})})})]})},F=t(82527),S=t(83352),I=t(29376),_=e=>{var l,t,a,i,o,d,c,u;let{Heading:m,Subtitle:f,Image:x,Link:v}=e,g=(0,F.useTranslations)("common.buttons"),j=(null==x?void 0:x.asset)?(0,p.S)(x.asset).url():"",b=(null==v?void 0:null===(l=v.page)||void 0===l?void 0:l.fullSlug)||(null==v?void 0:null===(t=v.link)||void 0===t?void 0:t.href)||(null==v?void 0:null===(o=v.file)||void 0===o?void 0:null===(i=o.file)||void 0===i?void 0:null===(a=i.asset)||void 0===a?void 0:a.url)||"",N=(null==v?void 0:null===(d=v.link)||void 0===d?void 0:d.blank)?"_blank":"_self";return(0,s.jsxs)(r.rU,{href:b,target:N,className:"flex flex-col col-span-12 md:col-span-4 gap-y-6 overflow-hidden",children:[(0,s.jsx)("div",{className:"relative w-full h-full overflow-hidden rounded-2xl",children:(0,s.jsx)(h.Z,{src:j,aspectRatio:1.5,className:"scale-100 hover:scale-105 transition-all duration-200 object-cover",alt:null!==(c=null==x?void 0:x.alt)&&void 0!==c?c:"",sizes:"(max-width: 768px) 100vw, 400px"})}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[m&&(0,s.jsx)("span",{className:"text-lg font-medium",children:m}),f&&(0,s.jsx)("div",{className:"flex flex-col",children:(0,s.jsx)("span",{className:"text-base font-[400]",children:f})}),(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsx)("span",{className:"flex font-semibold items-center gap-1 hover:underline",children:null!==(u=null==v?void 0:v.title)&&void 0!==u?u:g("readMore")}),(0,s.jsx)(n.A,{})]})]})]})},R=t(61936),Z=t(48179),L=t(81461),E=t(65853),T=t(13720),O=t(44301),V=t(94855),A=t(32789),B=t(98709),P=t(43430),H=t(60379),q=t(99545),D=t(47555),U=t(73149),M=t.n(U),Y=t(88016),J=t(54910);let Q={textBlock:e=>{let{Body:l,Heading:t}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.o,{span:"12",start:"3",children:(0,s.jsx)(c.Z,{as:"h3",children:t})}),l&&(0,s.jsx)(i.o,{span:"8",start:"3",children:(0,s.jsx)(w.YI,{value:l,components:b.e})})]})},puffContainer:e=>{let{heading:l,layout:t="grid",gridPuffs:n,sliderPuffs:r}=e;return"grid"===t&&x()(n)||"slider"===t&&x()(r)?null:"slider"===t?(0,s.jsx)(i.o,{span:"12",start:"1",children:(0,s.jsxs)(S.lr,{opts:{align:"start"},children:[(0,s.jsxs)("div",{className:"flex justify-between b-4 pb-4 md:pb-12 pr-4 md:pr-0",children:[(0,s.jsx)(c.Z,{as:"h2",children:null!=l?l:""}
1),(0,s.jsxs)("div",{className:"relative flex mr-[10%]",children:[(0,s.jsx)(S.am,{}),(0,s.jsx)(S.Pz,{})]})]}),(0,s.jsx)(S.KI,{children:null==r?void 0:r.map(e=>(0,s.jsx)(a.Fragment,{children:(0,s.jsx)(I.c,{_key:e._key,Image:null==e?void 0:e.Image,Title:null==e?void 0:e.Heading,Link:null==e?void 0:e.Link})},null==e?void 0:e._key))})]})}):(0,s.jsxs)(s.Fragment,{children:[l&&(0,s.jsx)(i.o,{span:"12",start:"3",children:(0,s.jsx)(c.Z,{as:"h2",children:l})}),!x()(n)&&(null==n?void 0:n.map((e,l)=>(0,s.jsx)(i.o,{start:l%2==0?"3":"7",span:"4",children:(0,s.jsx)(_,{_key:e._key,_type:e._type,Heading:null==e?void 0:e.Heading,Subtitle:null==e?void 0:e.Subtitle,Image:null==e?void 0:e.Image,Link:null==e?void 0:e.Link})},e._key)))]})},uploadedFile:e=>{let{filename:l,file:t}=e,a=(null==t?void 0:t.asset)&&(0,T.by)(null==t?void 0:t.asset,{projectId:E.Sx,dataset:E.gx}).url||"";return(0,s.jsx)(i.o,{start:"3",span:"4",children:(0,s.jsxs)("a",{href:"".concat(a,"?dl="),target:"_blank",className:"hover:underline underline-offset-8 items-center flex gap-1",children:[(0,s.jsx)(O.FIM,{})," ",l]})})},bannerPuff:e=>{var l,t,a,d,c,u;let{Heading:m,Subtitle:f,Link:x,FullWidth:p=!0}=e,h=(null==x?void 0:null===(l=x.page)||void 0===l?void 0:l.fullSlug)||(null==x?void 0:null===(t=x.link)||void 0===t?void 0:t.href)||(null==x?void 0:null===(c=x.file)||void 0===c?void 0:null===(d=c.file)||void 0===d?void 0:null===(a=d.asset)||void 0===a?void 0:a.url)||"",v=(null==x?void 0:null===(u=x.link)||void 0===u?void 0:u.blank)?"_blank":"_self";return(0,s.jsx)(i.o,{span:"12",start:p?"1":"3",children:(0,s.jsx)(r.rU,{href:h,target:v,className:"flex flex-col col-span-12 md:col-span-4 gap-y-6 overflow-hidden group",children:(0,s.jsxs)("div",{className:"bg-[#E7EDF1] rounded-lg p-4 md:p-12 flex items-center justify-between w-full",children:[(0,s.jsxs)("div",{className:"pr-6",children:[m&&(0,s.jsx)("p",{className:"text-[1.125rem] md:text-[1.5rem] leading-[1.4] md:leading-[1.167] tracking-[-2%] font-medium pb-2",children:m}),f&&(0,s.jsx)("p",{className:"text-base md:text-lg",children:f})]}),(0,s.jsx)(o.z,{variant:"ghost",className:"bg-white rounded-full p-3 group-hover:bg-white group-hover:border",size:"icon",children:(0,s.jsx)(n.A,{})})]})})})},splitContentBlock:R.Z,form:B.Z,workApplicationForm:e=>{let{_id:l,Heading:t,Subtitle:n,ButtonText:r,ToEmail:o}=e,[d,u]=(0,a.useState)(""),[m,f]=(0,a.useState)(!1),[x,p]=(0,a.useState)(!1),{executeRecaptcha:h}=(0,J.xX)(),v=(0,F.useTranslations)("common.forms"),{register:g,handleSubmit:j,formState:{errors:b},reset:N}=(0,P.cI)({resolver:(0,H.F)(Y.hN)}),k=async e=>{f(!0);try{if(!h){console.warn("Recaptcha not yet available");return}let l=await h("get_in_contact_form"),t=await fetch("/api/send-contact-form",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...e,token:l})}),s=await t.json();if(!t.ok)throw Error(s.message||v("msgErrorNotSent"));u(v("msgSuccessSent")),N()}catch(e){console.error("Form submission error:",e),u(v("msgErrorNotSent")),p(!0)}finally{f(!1)}},w=e=>(null==e?void 0:e.message)||"";return(0,s.jsx)(i.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,s.jsxs)(i.o,{start:"3",span:"8",className:"flex flex-col items-center gap-12 px-6 md:px-0",children:[!d&&(0,s.jsxs)("form",{onSubmit:j(k),className:"flex flex-col items-center gap-4 w-full",children:[(0,s.jsx)("input",{...g("formId"),type:"hidden",id:"formId",name:"formId",value:l}),(0,s.jsx)("input",{type:"hidden",...g("toEmail"),value:o}),t&&(0,s.jsx)("p",{className:"font-ABCArizonaFlair text-[1.5rem] md:text-[2rem] leading-[1.5] md:leading-[1.25] tracking-[-3%] font-light",children:t}),n&&(0,s.jsx)("p",{className:"mb-4 text-center",children:n}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 w-full",children:[(0,s.jsxs)("div",{className:"md:mb-4",children:[(0,s.jsxs)(q._,{className:"block font-[450] mb-2 text-left text-sm",children:[v("firstNameLabel"),"*"]}),(0,s.jsx)("input",{...g("firstname"),className:"w-full p-2 border rounded-[12px] h-12"}),b.firstname&&(0,s.jsx)("p",{className:"text-red-600 text-sm",children:w(b.firstname)})]}),(0,s.jsxs)("div",{className:"md:mb-4",children:[(0,s.jsxs)(q._,{className:"block font-[450] mb-2 text-left text-sm",children:[v("lastNameLabel"),"*"]}),(0,s.jsx)("input",{...g("lastname"),className:"w-full p-2 border rounded-[12px] h-12"}),b.lastname&&(0,s.jsx)("p",{className:"text-red-600 text-sm",children:w(b.lastname)})]}),(0,s.jsxs)("div",{className:"md:mb-4",children:[(0,s.jsxs)(q._,{className:"block font-[450] mb-2 text-left text-sm",children:[v("emailLabel"),"*"]}),(0,s.jsx)("input",{...g("email"),className:"w-full p-2 border rounded-[12px] h-12",autoComplete:"email",type:"email"}),b.email&&(0,s.jsx)("p",{className:"text-red-600 text-sm",children:w(b.email)})]}),(0,s.jsxs)("div",{className:"md:mb-4",children:[(0,s.jsxs)(q._,{className:"block font-[450] mb-2 text-left text-sm",children:[v("telep
1honeLabel"),"*"]}),(0,s.jsx)("input",{...g("telephone"),className:"w-full p-2 border rounded-[12px] h-12",type:"tel",autoComplete:"tel"}),b.telephone&&(0,s.jsx)("p",{className:"text-red-600 text-sm",children:w(b.telephone)})]})]}),(0,s.jsx)(D.Z,{label:null!=r?r:v("btnApplyWork"),disabled:m}),(0,s.jsxs)("span",{className:"text-xs text-center opacity-70",children:[v("mandatoryFieldNote")," ",(0,s.jsx)(M(),{href:"/om-maklarringen/integritetspolicy/",className:"underline",children:v("privacyPolicyLinkText")}),". ",v.rich("mandatoryRecaptchaFieldNoteFull",{privacy:e=>(0,s.jsx)(M(),{href:"https://policies.google.com/privacy",target:"_blank",rel:"noopener noreferrer",className:"underline",children:e}),terms:e=>(0,s.jsx)(M(),{href:"https://policies.google.com/terms",target:"_blank",rel:"noopener noreferrer",className:"underline",children:e})})]})]}),d&&(0,s.jsxs)("div",{className:"min-h-32",children:[(0,s.jsx)(c.Z,{as:"h2",className:"text-center mb-4",children:x?"!":v("interestThankYouHeading")}),(0,s.jsx)("p",{className:"mb-4 text-center",children:d})]})]})})},generalCardContainer:e=>{let{Heading:l,Cards:t}=e;return(0,s.jsxs)(s.Fragment,{children:[l&&(0,s.jsx)(i.o,{span:"12",start:"1",children:(0,s.jsx)(c.Z,{as:"h2",children:l})}),!x()(t)&&t.map(e=>(0,s.jsx)(v,{cardData:e}))]})},tabbedContentBlock:e=>{var l;let{Heading:t,tabs:n}=e,[r,o]=(0,a.useState)(null!==(l=null==n?void 0:n[0].Heading)&&void 0!==l?l:""),d=null==n?void 0:n.find(e=>e.Heading===r);return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(i.o,{span:"12",start:"1",children:(0,s.jsxs)(i.M,{className:"gap-y-6 p-0 md:p-0",children:[(0,s.jsx)(i.o,{span:"12",start:"1",children:(0,s.jsx)(c.Z,{as:"h2",className:"text-center",children:t})}),(0,s.jsx)(i.o,{span:"8",start:"3",className:"flex justify-center",children:(0,s.jsxs)(Z.x,{className:"w-full whitespace-nowrap",children:[(0,s.jsx)(L.t,{type:"single",defaultValue:r,onValueChange:e=>e&&o(e),value:r,className:"md:flex gap-4 md:gap-2 justify-center wrap-mx max-w-[var(--wrap-width)] md:flex-wrap pb-4",children:null==n?void 0:n.map(e=>(0,s.jsx)(L.G,{value:e.Heading,className:"col-span-6 gap-1 rounded-[999px] px-5 bg-white text-base border border-gray-200 font-normal",children:e.Heading},e.Heading))}),(0,s.jsx)(Z.B,{orientation:"horizontal"})]})}),d&&(0,s.jsx)(i.o,{span:"12",start:"1",children:(0,s.jsxs)("div",{className:"grid md:grid-cols-2 gap-10",children:[(0,s.jsxs)("div",{className:"flex flex-col justify-center order-2 md:order-1",children:[(0,s.jsx)(c.Z,{as:"h3",className:"font-satoshi mb-6",children:d.Heading}),(0,s.jsx)(w.YI,{value:d.Body,components:b.e})]}),(0,s.jsx)("div",{className:"col-span-1 relative w-full order-1 md:order-2",children:d.Image&&(0,s.jsx)(h.Z,{src:(0,p.S)(d.Image.asset).url(),className:"object-cover",aspectRatio:4/3,alt:d.Image.alt,sizes:"(max-width: 768px) 100vw, (max-width: 1024px) 40vw, 620px"})})]})})]})})})},uploadedVideo:e=>{let{VideoSource:l}=e;if(!l)return null;let t=l&&(0,V.c)(l);return(0,s.jsx)(i.o,{span:"8",start:"3",children:t&&(0,s.jsx)("div",{className:"relative h-full w-full wrap-px",children:(0,s.jsx)(A.o,{ratio:16/9,children:(0,s.jsx)("video",{className:"absolute inset-0 w-full h-full object-cover rounded-2xl",src:t,autoPlay:!0,loop:!0,muted:!0,playsInline:!0})})})})},openPositionBlock:e=>{let{Title:l,OpenPositions:t}=e,a=(0,F.useTranslations)("components.modules")("noOpenPositions"),n=null==t?void 0:t.map(e=>{var l,t,s,a,n,r,i,o,d,c;let u=null==e?void 0:null===(l=e.openPositionTitle)||void 0===l?void 0:l.title,m=(null==e?void 0:e.manualOfficeName)||(null==e?void 0:null===(t=e.office)||void 0===t?void 0:t.OfficeName),f=(null===(a=e.Link)||void 0===a?void 0:null===(s=a.page)||void 0===s?void 0:s.fullSlug)||(null===(r=e.Link)||void 0===r?void 0:null===(n=r.link)||void 0===n?void 0:n.href)||(null===(c=e.Link)||void 0===c?void 0:null===(d=c.file)||void 0===d?void 0:null===(o=d.file)||void 0===o?void 0:null===(i=o.asset)||void 0===i?void 0:i.url)||"";return{title:[u,m].filter(e=>e).join(", "),subTitle:null==e?void 0:e.location,body:null==e?void 0:e.MainBody,buttonUrl:f,buttonText:"Jag vill veta mer",filterFields:{title:u,office:m}}});return(0,s.jsx)(C,{title:l,items:null!=n?n:[],filters:n?[{field:"title",label:"Yrkesroll"},{field:"office",label:"Kontor"}]:[],noItemsLabel:a})},featuredObjectBlock:e=>{let{heading:l,items:t,latestObjects:a}=e,n=t||a;return(0,s.jsxs)(s.Fragment,{children:[!!l&&(0,s.jsx)(i.o,{span:"12",start:"1",className:"flex justify-between",children:(0,s.jsx)(c.Z,{as:"h2",children:l})}),null==n?void 0:n.map(e=>(0,s.jsx)(m.Z,{objectData:e},e.slug.current))]})},newEstablishmentBlock:e=>{let{Title:l,NewEstablishments:t}=e,a=(0,F.useTranslations)("components.modules")("noNewEstablishments"),n=null==t?void 0:t.map(e=>{var l,t,s,a,n,r,i,o,d,c;let u=null==e?void 0:null===(l=e.newEstablishmentTitle)||void 0===l?void 0:l.title,m=(null==e?void 0:e.manualOfficeName)||(null==e?void 0:null===(t=e.office)||void 0===t?void 0:t.OfficeName),f=(null===(a=e.Link)||void 0===a?void 0:null===(s=a.page)||void 0===s?void 0:s.fullSlug)||(null===(r=e.Link)||void 0===r?void 0:null===(n=r.link)||void 0===n?void 0:n.href)||(null===(c=e.Link)||void 0===c?void 0:null===(d=c.file)||void 0===d?void 0:null===(o=d.file)||void 0===o?void 0:null===(i=o.asset)||void 0===i?void 0:i.url)||"";return{title:[u,m].filter(e=>e).join(", "),subTitle:null==e?void 0:e.location,body:null==e?void 0:e.MainBody,buttonUrl:f,buttonText:"Jag vill veta mer",filterFields:{title:u,office:m}}});return(0,s.jsx)(C,{title:l,items:null!=n?n:[],filters:n?[{field:"title",label:"Yrkesroll"},{field:"office",label:"Kontor"}]:[],noItemsLabel:a})},brokerListBlock:e=>{let{heading:l,Brokers:t}=e,a=e=>""===(0,d.l)(e.OfficeName)?"default":(0,d.l)(e.OfficeName);return t?(0,s.jsxs)(s.Fragment,{children:[!!l&&(0,s.jsx)(i.o,{start:"1",span:"12",children:(0,s.jsx)(c.Z,{as:"h2",children:l})}),null==t?void 0:t.map((e,l)=>(0,s.jsx)(u.Z,{brokerData:e,officeSlug:a(e)},l))]}):null},faqListBlock:e=>{var l;let{FAQListBlock:t}=e;if(!t)return null;let a={id:t._id,title:t.Heading,titleHeadingLevel:t.HeadingLevel,preamble:t.Preamble,items:null!==(l=t.FAQList.map(e=>({title:e.Question,body:e.Answer})))&&void 0!==l?l:[]};return(0,s.jsx)(C,{variant:"compact",...a})}};var K=e=>{let{blocks:l}=e,t=(0,a.useRef)(null),n=(0,a.useRef)([]);return(0,s.jsx)("div",{ref:t,children:!!(null==l?void 0:l.length)&&(0,s.jsx)($,{blocks:l,blockRefs:n})})};let $=a.memo(e=>{let{blocks:l,blockRefs:t}=e;return(0,s.jsx)(s.Fragment,{children:l.map((e,l)=>{if(!e._type)return(0,s.jsx)(a.Fragment,{},l);if(!Q[e._type])return console.warn('\n Unknown block "'.concat(e._type,'" received from CMS. Make sure to add it in BlockMapper.tsx \n')),(0,s.jsx)(a.Fragment,{},l);let n=(null==e?void 0:e._type)==="uploadedFile"?"my-[rem-1.5]":"my-[1.5rem] md:my-[4.5rem]";return(0,s.jsx)(i.M,{className:n,ref:e=>{t.current&&(t.current[l]=e)},children:a.createElement(Q[e._type],e)},e._key)})})},(e,l)=>e.blocks===l.blocks&&e.blockRefs===l.blockRefs);$.displayName="RenderBlocks"}
1,2831:function(e,l,t){var s=t(52676),a=t(81884),n=t(50864),r=t(65457),i=t(61739),o=t(82527),d=t(65341),c=t(14928);l.Z=e=>{let{brokerData:{MainImage:l,Title:t,BrokerName:u,Cellphone:m,EmailAddress:f,slug:x,MainImageVitec:p},officeSlug:h}=e,v=(0,o.useTranslations)("common.buttons"),g=null!=p?p:(null==l?void 0:l.asset)?(0,i.S)(l.asset).url():"";return(0,s.jsxs)("div",{className:"col-span-12 md:col-span-6 grid grid-cols-6 gap-x-8 bg-neutrals-neutral-1 rounded-2xl overflow-hidden",children:[(0,s.jsx)("div",{className:"col-span-2 relative w-full h-full",children:(0,s.jsx)(c.Z,{src:g,alt:"".concat(u),className:"object-contain",withoutAspectRatio:!0,sizes:"200px"})}),(0,s.jsxs)("div",{className:"col-span-4 flex flex-col items-start my-[1.375rem] gap-2 min-h-[206",children:[(0,s.jsx)(d.u,{as:"span",strong:!0,children:null!=u?u:"-"}),(0,s.jsxs)("div",{className:"flex flex-col text-[#292827b3]",children:[(0,s.jsx)(d.u,{small:!0,children:null!=t?t:"-"}),m?(0,s.jsx)(n.rU,{href:"tel:".concat(m),className:"flex items-center gap-1 hover:underline underline-offset-8",children:(0,s.jsx)(d.u,{small:!0,children:"Tel ".concat(m)})}):(0,s.jsx)(d.u,{small:!0,children:"-"})]}),(0,s.jsxs)("div",{className:"flex justify-between w-full pr-8",children:[f&&(0,s.jsxs)(n.rU,{href:"mailto:".concat(f),className:"flex items-center gap-1 hover:underline underline-offset-8",children:[(0,s.jsx)(d.u,{small:!0,children:v("sendEmail")})," ",(0,s.jsx)(a.A,{})]}),(0,s.jsx)(n.rU,{href:"".concat(r.YT,"/").concat(h).concat(r.YT,"/").concat(null==x?void 0:x.current),className:"bg-transparent rounded-full px-5 py-2 border border-[#2828283d] hover:bg-primary hover:text-white font-semibold",children:(0,s.jsx)(d.u,{small:!0,strong:!0,children:v("moreInfo")})})]})]})]})}},29376:function(e,l,t){t.d(l,{c:function(){return x}});var s=t(52676),a=t(81884),n=t(15878),r=t(83352),i=t(50864),o=t(61739),d=t(15618),c=t.n(d);t(75271);var u=t(74436),m=t(65341),f=t(14928);let x=e=>{var l,t,d,x,p,h,v,g;let{Title:j,Image:b,Link:N}=e;if(c()(b))return null;let k=(null==b?void 0:b.asset)?(0,o.S)(b.asset).url():"",w=(null==N?void 0:null===(l=N.page)||void 0===l?void 0:l.fullSlug)||(null==N?void 0:null===(t=N.link)||void 0===t?void 0:t.href)||(null==N?void 0:null===(p=N.file)||void 0===p?void 0:null===(x=p.file)||void 0===x?void 0:null===(d=x.asset)||void 0===d?void 0:d.url)||"",y=(null==N?void 0:null===(h=N.link)||void 0===h?void 0:h.blank)?"_blank":"_self";return(0,s.jsx)(r.d$,{className:"basis-[70%] md:basis-[71%] lg:basis-[31%]",children:(0,s.jsx)(i.rU,{href:w,target:y,children:(0,s.jsx)("div",{className:"p-1",children:(0,s.jsxs)(n.Zb,{className:"relative overflow-hidden rounded-2xl h-[277px] md:h-[456px] ",children:[k&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(f.Z,{src:k,alt:null!==(v=b.alt)&&void 0!==v?v:"",aspectRatio:.85,withoutAspectRatio:!0,quality:100,className:"absolute inset-0 object-cover w-full h-full",sizes:"(max-width: 768px) 70vw, (max-width: 1024px) 60vw, 400px"}),(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 to-transparent"})]}),(0,s.jsx)(n.aY,{className:"relative z-10 p-6 w-full h-full",children:(0,s.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 p-6 text-white",children:[j&&(0,s.jsx)(u.Z,{as:"h2",children:j}),(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsx)(m.u,{className:"flex items-center gap-1 hover:underline",children:null!==(g=null==N?void 0:N.title)&&void 0!==g?g:"L\xe4s mer"}),(0,s.jsx)(a.A,{stroke:"white"})]})]})})]})})})})}},61936:function(e,l,t){var s=t(52676),a=t(81884),n=t(50864),r=t(61739),i=t(15618),o=t.n(i),d=t(82527),c=t(14928),u=t(58945);l.Z=e=>{var l,t,i,m,f,x,p,h;let{Heading:v,Subtitle:g,Link:j,Image:b,ImageText:N,FlipImage:k=!1,LargeBlock:w=!1}=e;if(o()(b))return null;let y=(0,d.useTranslations)("common.buttons"),z=(null==b?void 0:b.asset)&&(0,r.S)(b.asset).url(),C=(null==j?void 0:null===(l=j.page)||void 0===l?void 0:l.fullSlug)||(null==j?void 0:null===(t=j.link)||void 0===t?void 0:t.href)||(null==j?void 0:null===(f=j.file)||void 0===f?void 0:null===(m=f.file)||void 0===m?void 0:null===(i=m.asset)||void 0===i?void 0:i.url)||"",F=(null==j?void 0:null===(x=j.link)||void 0===x?void 0:x.blank)?"_blank":"_self";return(0,s.jsx)(u.o,{span:"12",start:"1",className:w?"flex h-[480px] lg:h-[590px]":"flex md:h-[425px]",children:(0,s.jsxs)("div",{className:"flex flex-col-reverse ".concat(k?"md:flex-row-reverse":"md:flex-row"," w-full ").concat(w?"bg-base-white":"bg-neutrals-neutral-3"," rounded-2xl overflow-hidden"),children:[(0,s.jsxs)("div",{className:"p-8 w-full md:w-1/2 md:content-center",children:[v&&(0,s.jsx)("p",{className:"text-[1.5rem] md:text-[2rem] leading-[1.5] md:leading-[1.25] tracking-[-2%] mb-4 md:font-[450]",children:v}),g&&(0,s.jsx)("p",{className:"mb-4 md:text-lg",children:g}),j&&(0,s.jsxs)(n.rU,{href:C,target:F,className:"flex items-center gap-1 hover:underline underline-offset-8 font-medium max-w-fit text-lg",children:[null!==(p=null==j?void 0:j.title)&&void 0!==p?p:y("readMore"),
1(0,s.jsx)(a.A,{})]})]}),(0,s.jsxs)("div",{className:"relative w-full pb-[60%] md:p-0 md:h-auto md:w-1/2 ".concat(k?"rounded-l-lg":"rounded-r-lg"),children:[(0,s.jsx)(c.Z,{src:z,alt:null!==(h=b.alt)&&void 0!==h?h:"",withoutAspectRatio:!0,aspectRatio:1.4,quality:100,sizes:"(max-width: 768px) 100vw, (max-width: 1440px) 40vw, 630px",className:"bg-blend-soft-light object-cover rounded-none"}),(0,s.jsx)("div",{className:"absolute w-full h-full bg-black opacity-20"}),N&&(0,s.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,s.jsx)("span",{className:"text-white text-4xl font-semibold",children:N})})]})]})})}},98709:function(e,l,t){var s=t(52676),a=t(75271),n=t(43430),r=t(58945),i=t(74436),o=t(99545),d=t(47555),c=t(73149),u=t.n(c),m=t(67544),f=t(60379),x=t(88016),p=t(82527),h=t(54910);let v=[m.u3.abroadDream,m.u3.officeAbroad,m.u3.officeCostaDelSol,m.u3.FVContentAbroad];l.Z=e=>{var l;let{Heading:t,Subtitle:c,ButtonText:m,VitecLeadType:g,VitecCustomerId:j,BrokerId:b,ShowSwedishOffices:N,onRealforceTracking:k}=e,w=null!=N?N:!g||!v.includes(g),{register:y,handleSubmit:z,setValue:C,formState:{errors:F}}=(0,n.cI)({resolver:(0,f.F)(x.kn),defaultValues:{officeid:null!=j?j:"",leadtype:null!==(l=null==g?void 0:g.toString())&&void 0!==l?l:"",assignedto:null!=b?b:""}}),[S,I]=(0,a.useState)(!1),[_,R]=(0,a.useState)(""),[Z,L]=(0,a.useState)([]),[E,T]=(0,a.useState)(!1),O=(0,p.useTranslations)("common.forms"),{executeRecaptcha:V}=(0,h.xX)();(0,a.useEffect)(()=>{(async()=>{I(!0);try{let e=await fetch("/api/broker-offices");if(!e.ok)throw Error("Failed to fetch offices");let l=await e.json();if(w){let e=null==l?void 0:l.filter(e=>!e.ForeignOffice);L(e)}else{let e=null==l?void 0:l.filter(e=>e.ForeignOffice);L(e)}if(j){let e=null==l?void 0:l.find(e=>(null==e?void 0:e.VitecCustomerId)===j);e&&C("officeid",e.VitecCustomerId)}}catch(e){e instanceof Error?console.error("Error fetching offices:",e.message):console.error("An unknown error occurred")}finally{I(!1)}})()},[j,C,w]);let A=t||O("freeValuationHeading"),B=c||O("freeValuationSubtitle"),P=async e=>{I(!0);try{if(!V){console.warn("Recaptcha not yet available");return}let l=await V("contact_form"),t=await fetch("/api/create-contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...e,token:l})}),s=await t.json();if(!t.ok)throw Error(s.message||O("msgErrorNotSent"));R(O("msgSuccessSent"))}catch(e){console.error("Form submission error:",e),R(O("msgErrorNotSent")),T(!0)}finally{I(!1)}},H=!!j,q=b?"grid grid-cols-1 md:grid-cols-2 gap-4 w-full":"grid grid-cols-1 md:grid-cols-3 gap-4 w-full",D=e=>(null==e?void 0:e.message)||"";return(0,s.jsx)(r.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,s.jsxs)(r.o,{start:"3",span:"8",className:"flex flex-col items-center gap-12 px-6 md:px-0",children:[!_&&(0,s.jsxs)("form",{onSubmit:z(e=>{P(e)}),className:"flex flex-col items-center gap-4 w-full text-center",children:[(0,s.jsx)("input",{type:"hidden",...y("leadtype"),value:null==g?void 0:g.toString()}),(0,s.jsx)("input",{type:"hidden",...y("officeid"),value:j}),(0,s.jsx)("input",{type:"hidden",...y("assignedto"),value:b}),(0,s.jsx)("input",{type:"hidden",...y("leadstaskid")}),b&&(0,s.jsx)("input",{type:"hidden",...y("assignedto"),value:b}),(0,s.jsx)("p",{className:"font-ABCArizonaFlair text-[1.5rem] md:text-[2rem] leading-[1.5] md:leading-[1.25] tracking-[-3%] font-light",children:A}),(0,s.jsx)("p",{className:"mb-4 text-center",children:B}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 w-full",children:[(0,s.jsxs)("div",{className:"md:mb-4",children:[(0,s.jsxs)(o._,{className:"block font-[450] mb-2 text-left text-sm",children:[O("firstNameLabel"),"*"]}),(0,s.jsx)("input",{...y("firstname",{required:"First name is required"}),className:"w-full p-2 border rounded-[12px] h-12"}),F.firstname&&(0,s.jsx)("p",{className:"text-red-600 text-sm",children:D(F.firstname)})]}),(0,s.jsxs)("div",{className:"md:mb-4",children:[(0,s.jsxs)(o._,{className:"block font-[450] mb-2 text-left text-sm",children:[O("lastNameLabel"),"*"]}),(0,s.jsx)("input",{...y("lastname",{required:"Last name is required"}),className:"w-full p-2 border rounded-[12px] h-12"}),F.lastname&&(0,s.jsx)("p",{className:"text-red-600 text-sm",children:D(F.lastname)})]})]}),(0,s.jsxs)("div",{className:q,children:[(0,s.jsxs)("div",{className:"md:mb-4",children:[(0,s.jsxs)(o._,{className:"block font-[450] mb-2 text-left text-sm",children:[O("emailLabel"),"*"]}),(0,s.jsx)("input",{...y("email",{required:"Email is required",pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,message:"Invalid email address"}}),className:"w-full p-2 border rounded-[12px] h-12",autoComplete:"email",type:"email"}),F.email&&(0,s.jsx)("p",{className:"text-red-600 text-sm",children:D(F.email)})]}),(0,s.jsxs)("div",{className:"md:mb-4",children:[(0,s.jsxs)(o._,{className:"block font-[450] mb-2 text-left text-sm",children:[O("telephoneLabel"),"*"]}),(0,s.jsx)("input",{...y("telephone",{required:"Telephone is required"}),className:"w-full p-2 border rounded-[12px] h-12",type:"tel",autoComplete:"tel"}),F.telephone&&(0,s.jsx)("p",{className:"text-red-600 text-sm",children:D(F.telephone)})]}),!b&&(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsxs)(o._,{className:"block font-[450] mb-2 text-left text-sm",children:[O("selectOfficeLabel"),"*"]}),S?(0,s.jsx)("p",{children:O("loadingText")}):(0,s.jsxs)("select",{disabled:H,...y("officeid",{required:"Office selection is required"}),className:"w-full p-2 border rounded-[12px] h-12",children:[(0,s.jsx)("option",{value:"",children:O("selectOfficeOption")}),null==Z?void 0:Z.map(e=>(0,s.jsx)("option",{value:e.VitecCustomerId,children:e.title||e.City},e._id))]}),F.officeid&&(0,s.jsx)("p",{className:"text-red-600 text-sm",children:D(F.officeid)})]})]}),(0,s.jsx)(d.Z,{label:null!=m?m:O("btnContact"),disabled:S}),(0,s.jsxs)("span",{className:"text-xs text-center opacity-70",children:[O("mandatoryFieldNote")," ",(0,s.jsx)(u(),{href:"/om-maklarringen/integritetspolicy/",className:"underline",children:O("privacyPolicyLinkText")}
1),". ",O.rich("mandatoryRecaptchaFieldNoteFull",{privacy:e=>(0,s.jsx)(u(),{href:"https://policies.google.com/privacy",target:"_blank",rel:"noopener noreferrer",className:"underline",children:e}),terms:e=>(0,s.jsx)(u(),{href:"https://policies.google.com/terms",target:"_blank",rel:"noopener noreferrer",className:"underline",children:e})})]})]}),_&&(0,s.jsxs)("div",{className:"min-h-32",children:[(0,s.jsx)(i.Z,{as:"h2",className:"text-center mb-4",children:E?"!":O("interestThankYouHeading")}),(0,s.jsx)("p",{className:"mb-4 text-center",children:_})]})]})})}},47555:function(e,l,t){var s=t(52676);t(75271);var a=t(178);l.Z=e=>{let{label:l,disabled:t=!1}=e;return(0,s.jsx)(a.z,{type:"submit",disabled:t,children:l})}},56313:function(e,l,t){var s=t(52676),a=t(50818),n=t(86250),r=t.n(n);l.Z=function(e){let{canonical:l,...t}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r(),{children:l&&(0,s.jsx)("link",{rel:"canonical",href:l})}),(0,s.jsx)(a.PB,{...t})]})}},49315:function(e,l,t){t.d(l,{UQ:function(){return u},vF:function(){return x},Qd:function(){return m},o4:function(){return f}});var s=t(52676),a=t(86964),n=t(75271),r=t(38662),i=t(71962);let o=e=>{let{stroke:l="black",className:t}=e;return(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:t,children:(0,s.jsx)("path",{d:"M10.0001 4.16663V15.8333M4.16675 9.99996H15.8334",stroke:l,strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})})};var d=t(2733),c=t(18065);let u=a.fC,m=n.forwardRef((e,l)=>{let{className:t,...n}=e;return(0,s.jsx)(a.ck,{ref:l,className:(0,d.cn)("border-b",t),...n})});m.displayName="AccordionItem";let f=n.forwardRef((e,l)=>{let{className:t,children:n,alternativeAccordion:u,as:m,...f}=e;return(0,s.jsx)(a.h4,{className:"flex",asChild:!0,children:(0,s.jsx)(null!=m?m:"h3",{children:(0,s.jsxs)(a.xz,{ref:l,className:(0,d.cn)("flex flex-1 items-center justify-between py-5 md:py-8 font-medium transition-all hover:underline group",t),...f,children:[n,(0,s.jsx)("div",{className:"rounded-full ".concat(u?"border border-[#2828283D]":"bg-neutrals-neutral-2"," p-[0.625rem]"),children:u?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.v,{className:"h-4 w-4 shrink-0 transition-transform duration-200 group-data-[state=open]:hidden"}),(0,s.jsx)(i.H,{className:"h-4 w-4 shrink-0 transition-transform duration-200 group-data-[state=closed]:hidden"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o,{className:"h-4 w-4 shrink-0 transition-transform duration-200 group-data-[state=open]:hidden"}),(0,s.jsx)(c.Z,{className:"h-4 w-4 shrink-0 transition-transform duration-200 group-data-[state=closed]:hidden"})]})})]})})})});f.displayName=a.xz.displayName;let x=n.forwardRef((e,l)=>{let{className:t,children:n,...r}=e;return(0,s.jsx)(a.VY,{ref:l,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:(0,s.jsx)("div",{className:(0,d.cn)("pb-4 pt-0",t),children:n})})});x.displayName=a.VY.displayName},15878:function(e,l,t){t.d(l,{Zb:function(){return r},aY:function(){return i}});var s=t(52676),a=t(75271),n=t(2733);let r=a.forwardRef((e,l)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:l,className:(0,n.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",t),...a})});r.displayName="Card",a.forwardRef((e,l)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:l,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",t),...a})}).displayName="CardHeader",a.forwardRef((e,l)=>{let{className:t,...a}=e;return(0,s.jsx)("h3",{ref:l,className:(0,n.cn)("text-2xl font-semibold leading-none tracking-tight",t),...a})}).displayName="CardTitle",a.forwardRef((e,l)=>{let{className:t,...a}=e;return(0,s.jsx)("p",{ref:l,className:(0,n.cn)("text-sm text-muted-foreground",t),...a})}).displayName="CardDescription";let i=a.forwardRef((e,l)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:l,className:(0,n.cn)("p-6 pt-0",t),...a})});i.displayName="CardContent",a.forwardRef((e,l)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:l,className:(0,n.cn)("flex items-center p-6 pt-0",t),...a})}
1).displayName="CardFooter"},83352:function(e,l,t){t.d(l,{KI:function(){return f},Pz:function(){return h},am:function(){return p},d$:function(){return x},lr:function(){return m}});var s=t(52676),a=t(70176),n=t(38855),r=t(22165),i=t(75271),o=t(178),d=t(2733);let c=i.createContext(null);function u(){let e=i.useContext(c);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}let m=i.forwardRef((e,l)=>{let{orientation:t="horizontal",opts:n,setApi:r,plugins:o,className:u,children:m,...f}=e,[x,p]=(0,a.Z)({...n,axis:"horizontal"===t?"x":"y"},o),[h,v]=i.useState(!1),[g,j]=i.useState(!1),b=i.useCallback(e=>{e&&(v(e.canScrollPrev()),j(e.canScrollNext()))},[]),N=i.useCallback(()=>{null==p||p.scrollPrev()},[p]),k=i.useCallback(()=>{null==p||p.scrollNext()},[p]),w=i.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),N()):"ArrowRight"===e.key&&(e.preventDefault(),k())},[N,k]);return i.useEffect(()=>{p&&r&&r(p)},[p,r]),i.useEffect(()=>{if(p)return b(p),p.on("reInit",b),p.on("select",b),()=>{null==p||p.off("select",b)}},[p,b]),(0,s.jsx)(c.Provider,{value:{carouselRef:x,api:p,opts:n,orientation:t||((null==n?void 0:n.axis)==="y"?"vertical":"horizontal"),scrollPrev:N,scrollNext:k,canScrollPrev:h,canScrollNext:g},children:(0,s.jsx)("div",{ref:l,onKeyDownCapture:w,className:(0,d.cn)("relative",u),role:"region","aria-roledescription":"carousel",...f,children:m})})});m.displayName="Carousel";let f=i.forwardRef((e,l)=>{let{className:t,...a}=e,{carouselRef:n,orientation:r}=u();return(0,s.jsx)("div",{ref:n,className:"overflow-hidden",children:(0,s.jsx)("div",{ref:l,className:(0,d.cn)("flex","horizontal"===r?"-ml-4":"-mt-4 flex-col",t),...a})})});f.displayName="CarouselContent";let x=i.forwardRef((e,l)=>{let{className:t,...a}=e,{orientation:n}=u();return(0,s.jsx)("div",{ref:l,role:"group","aria-roledescription":"slide",className:(0,d.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===n?"pt-4 md:pl-4":"pt-4",t),...a})});x.displayName="CarouselItem";let p=i.forwardRef((e,l)=>{let{className:t,variant:a="outline",size:r="icon",...i}=e,{orientation:c,scrollPrev:m,canScrollPrev:f}=u();return(0,s.jsxs)(o.z,{ref:l,variant:a,size:r,className:(0,d.cn)("absolute h-8 w-8 rounded-full border-none","horizontal"===c?"-left-5 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!f,onClick:m,...i,children:[(0,s.jsx)(n.Z,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});p.displayName="CarouselPrevious";let h=i.forwardRef((e,l)=>{let{className:t,variant:a="outline",size:n="icon",...i}=e,{orientation:c,scrollNext:m,canScrollNext:f}=u();return(0,s.jsxs)(o.z,{ref:l,variant:a,size:n,className:(0,d.cn)("absolute h-8 w-8 rounded-full border-none","horizontal"===c?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!f,onClick:m,...i,children:[(0,s.jsx)(r.Z,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"sr-only",children:"Next slide"})]})});h.displayName="CarouselNext"},99545:function(e,l,t){t.d(l,{_:function(){return d}});var s=t(52676),a=t(75271),n=t(40761),r=t(2808),i=t(2733);let o=(0,r.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=a.forwardRef((e,l)=>{let{className:t,...a}=e;return(0,s.jsx)(n.f,{ref:l,className:(0,i.cn)(o(),t),...a})});d.displayName=n.f.displayName},48179:function(e,l,t){t.d(l,{B:function(){return o},x:function(){return i}});var s=t(52676),a=t(68538),n=t(75271),r=t(2733);let i=n.forwardRef((e,l)=>{let{className:t,children:i,innerClassName:d,...c}=e,u=n.useRef(null);return n.useEffect(()=>{u.current&&u.current.focus()},[]),(0,s.jsxs)(a.fC,{ref:l,className:(0,r.cn)("relative overflow-hidden",t),...c,children:[(0,s.jsx)(a.l_,{ref:u,className:(0,r.cn)("h-full w-full rounded-[inherit]",d),id:"scrollArea",tabIndex:0,children:i}),(0,s.jsx)(o,{}),(0,s.jsx)(a.Ns,{})]})});i.displayName=a.fC.displayName;let o=n.forwardRef((e,l)=>{let{className:t,orientation:n="vertical",...i}=e;return(0,s.jsx)(a.gb,{ref:l,orientation:n,className:(0,r.cn)("flex touch-none select-none transition-colors","vertical"===n&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===n&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",t),...i,children:(0,s.jsx)(a.q4,{className:"relative flex-1 rounded-full bg-border"})})});o.displayName=a.gb.displayName},81461:function(e,l,t){t.d(l,{t:function(){return c},G:function(){return u}});
1var s=t(52676),a=t(75271),n=t(16692),r=t(2733),i=t(20087);let o=(0,t(2808).j)("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-3",sm:"h-9 px-2.5",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"default"}});a.forwardRef((e,l)=>{let{className:t,variant:a,size:n,...d}=e;return(0,s.jsx)(i.f,{ref:l,className:(0,r.cn)(o({variant:a,size:n,className:t})),...d})}).displayName=i.f.displayName;let d=a.createContext({size:"default",variant:"default"}),c=a.forwardRef((e,l)=>{let{className:t,variant:a,size:i,children:o,...c}=e;return(0,s.jsx)(n.fC,{ref:l,className:(0,r.cn)("flex items-center justify-center gap-1",t),...c,children:(0,s.jsx)(d.Provider,{value:{variant:a,size:i},children:o})})});c.displayName=n.fC.displayName;let u=a.forwardRef((e,l)=>{let{className:t,children:i,variant:c,size:u,...m}=e,f=a.useContext(d);return(0,s.jsx)(n.ck,{ref:l,className:(0,r.cn)(o({variant:f.variant||c,size:f.size||u}),t),...m,children:i})});u.displayName=n.ck.displayName},86266:function(e,l,t){t.d(l,{e:function(){return u}});var s=t(52676),a=t(50864),n=t(65853),r=t(13720),i=t(44301),o=t(74436),d=t(65341),c=t(14928);let u={hardBreak:()=>(0,s.jsx)("br",{}),block:{h1:e=>{let{children:l}=e;return(0,s.jsx)(o.Z,{as:"h1",disableHeadingFont:!0,className:"mt-4 mb-2",children:l})},h2:e=>{let{children:l}=e;return(0,s.jsx)(o.Z,{as:"h2",disableHeadingFont:!0,className:"mt-4 mb-2",children:l})},h3:e=>{let{children:l}=e;return(0,s.jsx)(o.Z,{as:"h3",disableHeadingFont:!0,className:"mt-4 mb-2",children:l})},strong:e=>{let{children:l}=e;return(0,s.jsx)(d.u,{strong:!0,as:"p",className:"my-2",children:l})},normal:e=>{let{children:l}=e;return(0,s.jsx)(d.u,{as:"p",className:"my-2 leading-7",children:l})}},list:{bullet:e=>{let{children:l}=e;return(0,s.jsx)("ul",{className:"pl-4 m-auto list-disc",children:l})},number:e=>{let{children:l}=e;return(0,s.jsx)("ol",{className:"pl-4 m-auto list-decimal",children:l})},checkmarks:e=>{let{children:l}=e;return(0,s.jsx)("ul",{className:"m-auto leading-7",children:l})}},listItem:{bullet:e=>{let{children:l}=e;return(0,s.jsx)("li",{children:l})},number:e=>{let{children:l}=e;return(0,s.jsx)("li",{children:l})},checkmarks:e=>{let{children:l}=e;return(0,s.jsxs)("li",{className:"flex items-center gap-3 text-lg py-[6px]",children:[(0,s.jsx)(i.Nhk,{className:"w-5 h-5 min-h-5 min-w-5"})," ",l]})}},types:{accessibleImage:e=>{var l,t,a;let{value:n}=e,{asset:{url:r}}=n;return(0,s.jsx)(c.Z,{src:r,alt:n.alt||"",aspectRatio:(null===(a=n.asset)||void 0===a?void 0:null===(t=a.metadata)||void 0===t?void 0:null===(l=t.dimensions)||void 0===l?void 0:l.aspectRatio)||1,sizes:"(max-width: 768px) 100vw, (max-width: 1440px) 58vw, 850px"})}},marks:{hardBreak:()=>(0,s.jsx)("br",{}),link:e=>{let{value:l,children:t}=e,{blank:n,href:r}=l;return n?(0,s.jsx)(a.rU,{href:r,className:"underline underline-offset-8 leading-7",target:"_blank",rel:"noopener",children:t}):(0,s.jsx)(a.rU,{href:r,className:"underline underline-offset-8 leading-7",children:t})},internalLink:e=>{let{value:l,children:t}=e,{slug:n={},fullSlug:r}=l,i=r?"".concat(r):"/".concat(null==n?void 0:n.current);return(0,s.jsx)(a.rU,{href:i,className:"underline underline-offset-8 leading-7",children:t})},assetReference:e=>{var l;let{children:t,value:a}=e,[o]=a.file.asset._ref.split("-"),d=(null==a?void 0:null===(l=a.file)||void 0===l?void 0:l.asset)&&(0,r.by)(a.file.asset,{projectId:n.Sx,dataset:n.gx}).url||"";return(0,s.jsxs)("a",{href:"".concat(d,"?dl="),target:"_blank",className:"flex items-center gap-1 hover:underline underline-offset-8 leading-7",children:[(0,s.jsx)(i.FIM,{})," ",t]})}}}},88016:function(e,l,t){t.d(l,{hN:function(){return o},kn:function(){return r},mv:function(){return i}});var s=t(11615);let a=e=>s.z.string().email().safeParse(e).success,n=e=>/^\+?\d{8,}$/.test(e),r=s.z.object({firstname:s.z.string().min(1,"F\xf6rnamn \xe4r obligatoriskt").max(50,"F\xf6rnamn f\xe5r vara h\xf6gst 50 tecken").trim(),lastname:s.z.string().min(1,"Efternamn \xe4r obligatoriskt").max(50,"Efternamn f\xe5r vara h\xf6gst 50 tecken").trim(),email:s.z.string().min(5,"E-post \xe4r obligatoriskt").max(254,"E-post f\xe5r vara h\xf6gst 254 tecken").trim(),telephone:s.z.string().min(5,"Telefon \xe4r obligatoriskt").max(25,"Telefon f\xe5r vara h\xf6gst 25 tecken").trim(),officeid:s.z.string().min(1,"V\xe4lj ett kontor"),assignedto:s.z.string().optional(),leadtype:s.z.string().optional(),leadstaskid:s.z.string().optional()}).superRefine((e,l)=>{let{email:t,telephone:r}=e;r&&!n(r)&&l.addIssue({code:s.z.ZodIssueCode.custom,message:"Ogiltigt telefonnummer",path:["telephone"]}),t&&!a(t)&&l.addIssue({code:s.z.ZodIssueCode.custom,message:"Ogiltig e-postadress",path:["email"]})}),i=s.z.object({firstname:s.z.string().min(1,"F\xf6rnamn \xe4r obligatoriskt").max(50,"F\xf6rnamn f\xe5r vara h\xf6gst 50 tecken").trim(),lastname:s.z.string().min(1,"Efternamn \xe4r obligatoriskt").max(50,"Efternamn f\xe5r vara h\xf6gst 50 tecken").trim(),email:s.z.string().min(5,"E-post \xe4r obligatoriskt").max(254,"E-post f\xe5r vara h\xf6gst 254 tecken").trim(),telephone:s.z.string().min(5,"Telefon \xe4r obligatoriskt").max(25,"Telefon f\xe5r vara h\xf6gst 25 tecken").trim(),message:s.z.string().optional(),officename:s.z.string().optional(),officeemail:s.z.string().optional(),officeid:s.z.string().optional(),objectid:s.z.string().optional(),objectaddress:s.z.string().optional(),estatenumber:s.z.string().optional(),brokerid:s.z.string().optional(),brokername:s.z.string().optional(),brokeremail:s.z.string().optional(),leadtype:s.z.string().optional()}).superRefine((e,l)=>{let{email:t,telephone:r}=e;r&&!n(r)&&l.addIssue({code:s.z.ZodIssueCode.custom,message:"Ogiltigt telefonnummer",path:["telephone"]}),t&&!a(t)&&l.addIssue({code:s.z.ZodIssueCode.custom,message:"Ogiltig e-postadress",path:["email"]})}),o=s.z.object({firstname:s.z.string().min(1,"F\xf6rnamn \xe4r obligatoriskt").max(50,"F\xf6rnamn f\xe5r vara h\xf6gst 50 tecken").trim(),lastname:s.z.string().min(1,"Efternamn \xe4r obligatoriskt").max(50,"Efternamn f\xe5r vara h\xf6gst 50 tecken").trim(),email:s.z.string().min(5,"E-post \xe4r obligatoriskt").max(254,"E-post f\xe5r vara h\xf6gst 254 tecken").trim(),telephone:s.z.string().min(5,"Telefon \xe4r obligatoriskt").max(25,"Telefon f\xe5r vara h\xf6gst 25 tecken").trim(),formId:s.z.string(),toEmail:s.z.string().email("Invalid email address").optional()}).superRefine((e,l)=>{let{email:t,telephone:r}=e;r&&!n(r)&&l.addIssue({code:s.z.ZodIssueCode.custom,message:"Ogiltigt telefonnummer",path:["telephone"]}),t&&!a(t)&&l.addIssue({code:s.z.ZodIssueCode.custom,message:"Ogiltig e-postadress",path:["email"]})})},94855:function(e,l,t){t.d(l,{c:function(){return n}});var s=t(65853),a=t(13720);let n=e=>(0,a.by)(e,{projectId:s.Sx,dataset:s.gx}).url},67544:function(e,l,t){var s,a,n,r,i,o;t.d(l,{qS:function(){return n},u3:function(){return a}}),(r=s||(s={}))[r.Office=0]="Office",r[r.Broker=1]="Broker",(i=a||(a={}))[i.abroadDream=1]="abroadDream",i[i.FVBoxObject=2]="FVBoxObject",i[i.FVImageListObject=3]="FVImageListObject",i[i.FVPopupObject=4]="FVPopupObject",i[i.valuationInquiryFactBox=5]="valuationInquiryFactBox",i[i.FVLocalAreaPromos=6]="FVLocalAreaPromos",i[i.FVStartPage=7]="FVStartPage",i[i.FVOfficeSweden=8]="FVOfficeSweden",i[i.FVBroker=9]="FVBroker",i[i.FVContent=10]="FVContent",i[i.officeAbroad=11]="officeAbroad",i[i.officeCostaDelSol=12]="officeCostaDelSol",i[i.objectInterest=13]="objectInterest",i[i.startReady=14]="startReady",i[i.FVContentAbroad=15]="FVContentAbroad",(o=n||(n={}))[o.house=0]="house",o[o.housingCooperative=1]="housingCooperative",o[o.cottage=2]="cottage",o[o.plot=3]="plot",o[o.project=4]="project",o[o.farm=5]="farm",o[o.commercialProperty=6]="commercialProperty",o[o.foreignProperty=7]="foreignProperty",o[o.condominium=22]="condominium"}}]);

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.