PageSourceSearch

https://www.radoninspektoren.no/_next/static/chunks/0476~3d6xf.bx.js?dpl=dpl_DBD1J8fSm9A7V5H7FTtdQXPKoLMH

js radoninspektoren.no collected 2026-10-07 04:13:04 UTC 17,072 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,35804,e=>{"use strict";var r=e.i(71645),t=e.i(34620);e.s(["useSize",0,function(e){let[a,s]=r.useState(void 0);return(0,t.useLayoutEffect)(()=>{if(e){s({width:e.offsetWidth,height:e.offsetHeight});let r=new ResizeObserver(r=>{let t,a;if(!Array.isArray(r)||!r.length)return;let n=r[0];if("borderBoxSize"in n){let e=n.borderBoxSize,r=Array.isArray(e)?e[0]:e;t=r.inlineSize,a=r.blockSize}else t=e.offsetWidth,a=e.offsetHeight;s({width:t,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}s(void 0)},[e]),a}])},93479,e=>{"use strict";var r=e.i(43476),t=e.i(75157);e.s(["Input",0,function({className:e,type:a,...s}){return(0,r.jsx)("input",{type:a,"data-slot":"input",className:(0,t.cn)("file:text-foreground not-focus-visible:not-placeholder-shown:user-invalid:border-destructive placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground border-input transition-color flex h-14.5 w-full min-w-0 rounded-lg border bg-white px-3 py-4 text-base outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 aria-invalid:border-destructive",e),...s})}])},31278,e=>{"use strict";let r=(0,e.i(75254).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",0,r],31278)},10204,e=>{"use strict";var r=e.i(43476),t=e.i(71645),a=e.i(48425),s=t.forwardRef((e,t)=>(0,r.jsx)(a.Primitive.label,{...e,ref:t,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));s.displayName="Label",e.s(["Label",0,s,"Root",0,s],73741);var n=e.i(73741),n=n,o=e.i(75157);e.s(["Label",0,function({className:e,...t}){return(0,r.jsx)(n.Root,{"data-slot":"label",className:(0,o.cn)("text-muted-foreground peer-not-placeholder-shown:text-foreground peer-focus-within:text-foreground pointer-events-none absolute top-7 left-3 flex -translate-y-1/2 items-center gap-2 text-sm leading-none transition-all duration-300 select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-not-placeholder-shown:top-0 peer-focus-within:top-0 peer-disabled:cursor-not-allowed peer-disabled:opacity-50 peer-not-placeholder-shown:before:absolute peer-not-placeholder-shown:before:top-1/2 peer-not-placeholder-shown:before:left-1/2 peer-not-placeholder-shown:before:h-1/2 peer-not-placeholder-shown:before:w-[calc(100%+8px)] peer-not-placeholder-shown:before:-translate-x-1/2 peer-not-placeholder-shown:before:bg-white peer-not-placeholder-shown:before:content-[''] peer-focus-within:before:absolute peer-focus-within:before:top-1/2 peer-focus-within:before:left-1/2 peer-focus-within:before:h-1/2 peer-focus-within:before:w-[calc(100%+8px)] peer-focus-within:before:-translate-x-1/2 peer-focus-within:before:bg-white peer-focus-within:before:content-['']",e),...t})}],10204)},29288,e=>{"use strict";var r=e.i(43476),t=e.i(71645),a=e.i(81140),s=e.i(20783),n=e.i(30030),o=e.i(48425),i=e.i(75830),l=e.i(10772),d=e.i(30207),c=e.i(69340),u=e.i(86318),p="rovingFocusGroup.onEntryFocus",f={bubbles:!1,cancelable:!0},m="RovingFocusGroup",[h,x,v]=(0,i.createCollection)(m),[b,g]=(0,n.createContextScope)(m,[v]),[w,j]=b(m),y=t.forwardRef((e,t)=>(0,r.jsx)(h.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,r.jsx)(h.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,r.jsx)(R,{...e,ref:t})})}));y.displayName=m;var R=t.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:i,orientation:l,loop:h=!1,dir:v,currentTabStopId:b,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:j,onEntryFocus:y,preventScrollOnEntryFocus:R=!1,...N}=e,I=t.useRef(null),k=(0,s.useComposedRefs)(n,I),L=(0,u.useDirection)(v),[E,S]=(0,c.useControllableState)({prop:b,defaultProp:g??null,onChange:j,caller:m}),[F,A]=t.useState(!1),P=(0,d.useCallbackRef)(y),D=x(i),T=t.useRef(!1),[G,H]=t.useState(0);return t.useEffect(()=>{let e=I.current;if(e)return e.addEventListener(p,P),()=>e.removeEventListener(p,P)},[P]),(0,r.jsx)(w,{scope:i,orientation:l,dir:L,loop:h,currentTabStopId:E,onItemFocus:t.useCallback(e=>S(e),[S]),onItemShiftTab:t.useCallback(()=>A(!0),[]),onFocusableItemAdd:t.useCallback(()=>H(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>H(e=>e-1),[]),children:(0,r.jsx)(o.Primitive.div,{tabIndex:F||0===G?-1:0,"data-orientation":l,...N,ref:k,style:{outline:"none",...e.style},onMouseDown:(0,a.composeEventHandlers)(e.onMouseDown,()=>{T.current=!0}),onFocus:(0,a.composeEventHandlers)(e.onFocus,e=>{let r=!T.current;if(e.target===e.currentTarget&&r&&!F){let r=new CustomEvent(p,f);if(e.currentTarget.dispatchEvent(r),!r.defaultPrevented){let e=D().filter(e=>
1e.focusable);C([e.find(e=>e.active),e.find(e=>e.id===E),...e].filter(Boolean).map(e=>e.ref.current),R)}}T.current=!1}),onBlur:(0,a.composeEventHandlers)(e.onBlur,()=>A(!1))})})}),N="RovingFocusGroupItem",I=t.forwardRef((e,s)=>{let{__scopeRovingFocusGroup:n,focusable:i=!0,active:d=!1,tabStopId:c,children:u,...p}=e,f=(0,l.useId)(),m=c||f,v=j(N,n),b=v.currentTabStopId===m,g=x(n),{onFocusableItemAdd:w,onFocusableItemRemove:y,currentTabStopId:R}=v;return t.useEffect(()=>{if(i)return w(),()=>y()},[i,w,y]),(0,r.jsx)(h.ItemSlot,{scope:n,id:m,focusable:i,active:d,children:(0,r.jsx)(o.Primitive.span,{tabIndex:b?0:-1,"data-orientation":v.orientation,...p,ref:s,onMouseDown:(0,a.composeEventHandlers)(e.onMouseDown,e=>{i?v.onItemFocus(m):e.preventDefault()}),onFocus:(0,a.composeEventHandlers)(e.onFocus,()=>v.onItemFocus(m)),onKeyDown:(0,a.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void v.onItemShiftTab();if(e.target!==e.currentTarget)return;let r=function(e,r,t){var a;let s=(a=e.key,"rtl"!==t?a:"ArrowLeft"===a?"ArrowRight":"ArrowRight"===a?"ArrowLeft":a);if(!("vertical"===r&&["ArrowLeft","ArrowRight"].includes(s))&&!("horizontal"===r&&["ArrowUp","ArrowDown"].includes(s)))return k[s]}(e,v.orientation,v.dir);if(void 0!==r){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let s=g().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===r)s.reverse();else if("prev"===r||"next"===r){var t,a;"prev"===r&&s.reverse();let n=s.indexOf(e.currentTarget);s=v.loop?(t=s,a=n+1,t.map((e,r)=>t[(a+r)%t.length])):s.slice(n+1)}setTimeout(()=>C(s))}}),children:"function"==typeof u?u({isCurrentTabStop:b,hasTabStop:null!=R}):u})})});I.displayName=N;var k={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function C(e,r=!1){let t=document.activeElement;for(let a of e)if(a===t||(a.focus({preventScroll:r}),document.activeElement!==t))return}var L=e.i(35804),E=e.i(99682),S=e.i(96626),F="Radio",[A,P]=(0,n.createContextScope)(F),[D,T]=A(F),G=t.forwardRef((e,n)=>{let{__scopeRadio:i,name:l,checked:d=!1,required:c,disabled:u,value:p="on",onCheck:f,form:m,...h}=e,[x,v]=t.useState(null),b=(0,s.useComposedRefs)(n,e=>v(e)),g=t.useRef(!1),w=!x||m||!!x.closest("form");return(0,r.jsxs)(D,{scope:i,checked:d,disabled:u,children:[(0,r.jsx)(o.Primitive.button,{type:"button",role:"radio","aria-checked":d,"data-state":q(d),"data-disabled":u?"":void 0,disabled:u,value:p,...h,ref:b,onClick:(0,a.composeEventHandlers)(e.onClick,e=>{d||f?.(),w&&(g.current=e.isPropagationStopped(),g.current||e.stopPropagation())})}),w&&(0,r.jsx)(z,{control:x,bubbles:!g.current,name:l,value:p,checked:d,required:c,disabled:u,form:m,style:{transform:"translateX(-100%)"}})]})});G.displayName=F;var H="RadioIndicator",M=t.forwardRef((e,t)=>{let{__scopeRadio:a,forceMount:s,...n}=e,i=T(H,a);return(0,r.jsx)(S.Presence,{present:s||i.checked,children:(0,r.jsx)(o.Primitive.span,{"data-state":q(i.checked),"data-disabled":i.disabled?"":void 0,...n,ref:t})})});M.displayName=H;var z=t.forwardRef(({__scopeRadio:e,control:a,checked:n,bubbles:i=!0,...l},d)=>{let c=t.useRef(null),u=(0,s.useComposedRefs)(c,d),p=(0,E.usePrevious)(n),f=(0,L.useSize)(a);return t.useEffect(()=>{let e=c.current;if(!e)return;let r=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(p!==n&&r){let t=new Event("click",{bubbles:i});r.call(e,n),e.dispatchEvent(t)}},[p,n,i]),(0,r.jsx)(o.Primitive.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...l,tabIndex:-1,ref:u,style:{...l.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function q(e){return e?"checked":"unchecked"}z.displayName="RadioBubbleInput";var B=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],K="RadioGroup",[V,O]=(0,n.createContextScope)(K,[g,P]),U=g(),$=P(),[_,W]=V(K),J=t.forwardRef((e,t)=>{let{__scopeRadioGroup:a,name:s,defaultValue:n,value:i,required:l=!1,disabled:d=!1,orientation:p,dir:f,loop:m=!0,onValueChange:h,...x}=e,v=U(a),b=(0,u.useDirection)(f),[g,w]=(0,c.useControllableState)({prop:i,defaultProp:n??null,onChange:h,caller:K});return(0,r.jsx)(_,{scope:a,name:s,required:l,disabled:d,value:g,onValueChange:w,children:(0,r.jsx)(y,{asChild:!0,...v,orientation:p,dir:b,loop:m,children:(0,r.jsx)(o.Primitive.div,{role:"radiogroup","aria-required":l,"aria-orientation":p,"data-disabled":d?"":void 0,dir:b,...x,ref:t})})})});J.displayName=K;
1var X="RadioGroupItem",Z=t.forwardRef((e,n)=>{let{__scopeRadioGroup:o,disabled:i,...l}=e,d=W(X,o),c=d.disabled||i,u=U(o),p=$(o),f=t.useRef(null),m=(0,s.useComposedRefs)(n,f),h=d.value===l.value,x=t.useRef(!1);return t.useEffect(()=>{let e=e=>{B.includes(e.key)&&(x.current=!0)},r=()=>x.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",r),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",r)}},[]),(0,r.jsx)(I,{asChild:!0,...u,focusable:!c,active:h,children:(0,r.jsx)(G,{disabled:c,required:d.required,checked:h,...p,...l,name:d.name,ref:m,onCheck:()=>d.onValueChange(l.value),onKeyDown:(0,a.composeEventHandlers)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,a.composeEventHandlers)(l.onFocus,()=>{x.current&&f.current?.click()})})})});Z.displayName=X;var Q=t.forwardRef((e,t)=>{let{__scopeRadioGroup:a,...s}=e,n=$(a);return(0,r.jsx)(M,{...n,...s,ref:t})});Q.displayName="RadioGroupIndicator",e.s(["Indicator",0,Q,"Item",0,Z,"RadioGroup",0,J,"RadioGroupIndicator",0,Q,"RadioGroupItem",0,Z,"Root",0,J,"createRadioGroupScope",0,O],72310);var Y=e.i(72310),Y=Y;
1let ee=(0,e.i(75254).default)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);var er=e.i(75157);e.s(["RadioGroup",0,function({className:e,...t}){return(0,r.jsx)(Y.Root,{"data-slot":"radio-group",className:(0,er.cn)("grid gap-3",e),...t})},"RadioGroupItem",0,function({className:e,...t}){return(0,r.jsx)(Y.Item,{"data-slot":"radio-group-item",className:(0,er.cn)("border-input !bg-white text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:(0,r.jsx)(Y.Indicator,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:(0,r.jsx)(ee,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})})}],29288)},24687,e=>{"use strict";var r=e.i(43476),t=e.i(75157);e.s(["Textarea",0,function({className:e,...a}){return(0,r.jsx)("textarea",{"data-slot":"textarea",className:(0,t.cn)("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 aria-invalid:border-destructive flex field-sizing-content min-h-16 w-full rounded-lg border bg-white px-3 py-4 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),...a})}])},82016,e=>{"use strict";var r=e.i(43476),t=e.i(95187);let a=(0,t.createServerReference)("60c6016607404775fcfb4958cfd0515aef888b5b29",t.callServer,void 0,t.findSourceMapURL,"sendOrderFormSubmission");var s=e.i(31278),n=e.i(71645),o=e.i(19455),i=e.i(93479),l=e.i(10204),d=e.i(18566),c=e.i(29288),u=e.i(24687);function p(e){return"string"==typeof e?e:""}e.s(["OrderForm",0,function(){let e=(0,n.useId)(),[t,f,m]=(0,n.useActionState)(a,null),h=(0,d.usePathname)(),[x,v]=(0,n.use
1State)(""),[b,g]=(0,n.useState)(p(t?.data?.hasMeasuredRadon));return(0,n.useEffect)(()=>{let e=requestAnimationFrame(()=>v(document.title.split(" | ")[0]));return()=>cancelAnimationFrame(e)},[]),(0,r.jsxs)("form",{action:f,children:[(0,r.jsx)("input",{type:"hidden",name:"url",value:h}),(0,r.jsx)("input",{type:"hidden",name:"pageTitle",value:x}),(0,r.jsxs)("div",{className:"absolute -left-[9999px]","aria-hidden":"true",children:[(0,r.jsx)("label",{htmlFor:`${e}-company`,children:"Firma"}),(0,r.jsx)("input",{id:`${e}-company`,name:"company",type:"text",tabIndex:-1,autoComplete:"off"})]}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(i.Input,{className:"peer",name:"name",type:"text",required:!0,placeholder:"",defaultValue:p(t?.data?.name)}),(0,r.jsx)(l.Label,{children:(0,r.jsxs)("span",{className:"relative",children:["Fullt navn ",(0,r.jsx)("span",{className:"text-red",children:"*"})]})})]}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(i.Input,{className:"peer",name:"phone",type:"tel",required:!0,placeholder:"",defaultValue:p(t?.data?.phone)}),(0,r.jsx)(l.Label,{children:(0,r.jsxs)("span",{className:"relative",children:["Telefon ",(0,r.jsx)("span",{className:"text-red",children:"*"})]})})]}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(i.Input,{className:"peer",name:"email",type:"email",required:!0,placeholder:"",defaultValue:p(t?.data?.email)}),(0,r.jsx)(l.Label,{children:(0,r.jsxs)("span",{className:"relative",children:["E-postadresse ",(0,r.jsx)("span",{className:"text-red",children:"*"})]})})]}),(0,r.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(i.Input,{className:"peer",name:"address",type:"text",required:!0,placeholder:"",maxLength:255,autoComplete:"street-address",defaultValue:p(t?.data?.address)}),(0,r.jsx)(l.Label,{children:(0,r.jsxs)("span",{className:"relative",children:["Adresse ",(0,r.jsx)("span",{className:"text-red",children:"*"})]})})]}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(i.Input,{className:"peer",name:"postalCode",type:"text",inputMode:"numeric",required:!0,placeholder:"",maxLength:4,pattern:"[0-9]{4}",title:"Postnummer må være 4 sifre",autoComplete:"postal-code",defaultValue:p(t?.data?.postalCode)}),(0,r.jsx)(l.Label,{children:(0,r.jsxs)("span",{className:"relative",children:["Postnummer ",(0,r.jsx)("span",{className:"text-red",children:"*"})]})})]})]}),(0,r.jsxs)("fieldset",{className:"space-y-3",children:[(0,r.jsxs)("legend",{className:"text-foreground text-sm font-medium",children:["Har du målt radon? ",(0,r.jsx)("span",{className:"text-red",children:"*"})]}),(0,r.jsxs)(c.RadioGroup,{name:"hasMeasuredRadon",required:!0,value:b,onValueChange:g,className:"flex gap-6",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(c.RadioGroupItem,{value:"ja",id:`${e}-has-measured-radon-ja`}),(0,r.jsx)("label",{htmlFor:`${e}-has-measured-radon-ja`,className:"text-sm font-medium",children:"Ja"})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(c.RadioGroupItem,{value:"nei",id:`${e}-has-measured-radon-nei`}),(0,r.jsx)("label",{htmlFor:`${e}-has-measured-radon-nei`,className:"text-sm font-medium",children:"Nei"})]})]}),"ja"===b&&(0,r.jsx)("p",{className:"text-foreground/70 text-sm",role:"status",children:"Legg gjerne inn måleverdien i kommentarfeltet om du har den tilgjengelig."})]}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(u.Textarea,{className:"peer min-h-24",name:"message",placeholder:"",defaultValue:p(t?.data?.message)}),(0,r.jsx)(l.Label,{children:(0,r.jsx)("span",{className:"relative",children:"Kommentar eller melding"})})]})]}),t?.errors?.length?(0,r.jsx)("div",{className:"text-destructive text-sm",role:"alert",children:t.errors.map(e=>(0,r.jsx)("p",{children:e},e))}):null,(0,r.jsxs)(o.Button,{type:"submit",disabled:m,className:"w-full",children:[m&&(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)(s.Loader2,{className:"h-4 w-4 animate-spin"}),"Sender..."]}),!m&&(0,r.jsxs)(n.Fragment,{children:["Bli kontaktet"," ",(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"14",viewBox:"0 0 20 14",fill:"none",children:(0,r.jsx)("path",{d:"M13 14L11.575 12.6L16.175 8H0V6H16.175L11.6 1.4L13 0L20 7L13 14Z",fill:"black"})})]})]})]})]})}],82016)},35137,e=>{e.n(e.i(82016))}]);

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.