1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5045],{1974:(e,n,t)=>{"use strict";t.d(n,{Yh:()=>x,FO:()=>m,PV:()=>j,zM:()=>f});var r=t(3576),a=t(62701),s=t(20294),i=t(37876),o=t(39593),l=t(77961);t(14232);var c=t(15039),d=t.n(c);let m=e=>{var n=(0,s._)((0,o.Mt)(e),2),t=n[0],c=n[1],m=c.touched&&c.error,p=d()(e.containerclassnames);return(0,i.jsx)("div",{className:p,children:(0,i.jsx)(l.pd,(0,a._)((0,r._)({type:"text"},t,e),{error:m,onBlur:t.onBlur,onChange:t.onChange}))})};var p=t(16927),h=t(4902),u=t(48106),g=t(13993);t(97439);let j=e=>{var n,t,r=(0,s._)((0,o.Mt)(e),2),a=r[0],l=r[1],c=(0,o.j7)(),m=c.setFieldError,j=c.setFieldTouched,x=c.setFieldValue,f=l.touched&&l.error,v=d()("input__field",{"input--error":f}),k=function(){var e=(0,p._)(function(e){var n,t;return(0,h.YH)(this,function(r){switch(r.label){case 0:return t=(n="".concat(e).replaceAll(" ",""))!==l.initialValue,[4,j(a.name,t)];case 1:return r.sent(),[4,x(a.name,n,!1)];case 2:return r.sent(),[4,m(a.name,(0,u.g0)(n)?void 0:"Ugyldig telefonnummer")];case 3:return r.sent(),[2]}})});return function(n){return e.apply(this,arguments)}}(),b=d()(null!=(n=e.containerclassnames)?n:[]);return(0,i.jsx)("div",{className:b,children:(0,i.jsxs)("div",{className:"input",children:[(0,i.jsx)("label",{htmlFor:a.name,children:e.label}),(0,i.jsx)(u.Ay,{style:{width:"15em"},international:!0,name:a.name,className:v,value:null!=(t=a.value)?t:"",onChange:k,defaultCountry:"NO",labels:g.A}),l.touched&&l.error&&(0,i.jsx)("div",{className:"input__error",children:l.error})]})})},x=e=>{var n=(0,s._)((0,o.Mt)(e),2),t=n[0],c=n[1],m=(0,o.j7)(),u=c.touched?c.error:void 0,g=function(){var e=(0,p._)(function(e){return(0,h.YH)(this,function(n){switch(n.label){case 0:return[4,m.setFieldValue(t.name,e.currentTarget.checked)];case 1:return n.sent(),[2]}})});return function(n){return e.apply(this,arguments)}}(),j=d()(e.containerclassnames);return(0,i.jsx)("div",{className:j,children:(0,i.jsx)(l.Sc,(0,a._)((0,r._)({},t,e),{checked:null!=t.checked?t.checked:t.value,error:u,onBlur:t.onBlur,onChange:g}))})},f=e=>{var n=(0,s._)((0,o.Mt)(e),2),t=n[0],c=n[1],m=(0,o.j7)(),u=c.touched?c.error:void 0,g=function(){var e=(0,p._)(function(e){return(0,h.YH)(this,function(n){switch(n.label){case 0:return[4,m.setFieldValue(t.name,e.currentTarget.value)];case 1:return n.sent(),[2]}})});return function(n){return e.apply(this,arguments)}}(),j=d()(e.containerClassNames);return(0,i.jsx)("div",{className:j,children:(0,i.jsx)(l.l6,(0,a._)((0,r._)({},t,e),{checked:null!=t.checked?t.checked:t.value,error:u,selected:e.value,options:e.options,onBlur:t.onBlur,onChange:g}))})}},30736:(e,n,t)=>{"use strict";t.d(n,{A:()=>d});var r=t(37876);t(14232);var a=t(77328),s=t.n(a),i=t(95062),o=t.n(i),l=t(60643),c=e=>{var n=e.title,t=void 0===n?"deichman.no":n,a=e.description,i=void 0===a?"Velkommen til Deichman - Oslo kommunes bibliotek og Norges st\xf8rste folkebibliotek. Vi holder Oslo v\xe5ken!":a,o=e.ogimage,c=e.ogtype,d=e.ogurl,m=e.isHiddenPage,p=e.needsRefresh;(0,l.r)();var h="deichman.test";return h=new URL(window.location).hostname,(0,r.jsxs)(s(),{className:"header",children:[(0,r.jsx)("meta",{charSet:"utf-8"}),(0,r.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1, shrink-to-fit=no, viewport-fit=cover"}),(0,r.jsx)("meta",{name:"robots",content:"noarchive"}),(0,r.jsx)("meta",{name:"apple-mobile-web-app-capable",content:"yes"}),(0,r.jsx)("meta",{name:"apple-mobile-web-app-status-bar-style",content:"default"}),(0,r.jsx)("meta",{name:"theme-color",content:"#000"}),(0,r.jsx)("title",{children:t}),(0,r.jsx)("link",{rel:"manifest",href:"/manifest.json"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"152x152",href:"/favicons/icon-152x152.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"192x192",href:"/favicons/icon-192x192.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"512x512",href:"/favicons/icon-512x512.png"}),(0,r.jsx)("meta",{property:"og:title",content:t}),(0,r.jsx)("meta",{property:"og:description",content:i}),(0,r.jsx)("meta",{property:"og:type",content:void 0===c?"website":c}),(0,r.jsx)("meta",{property:"og:url",content:void 0===d?"https://deichman.no/":d}),(0,r.jsx)("meta",{property:"og:image",content:void 0===o?"https://deichman.no/favicons/icon-512x512.png":o}),(0,r.jsx)("meta",{name:"description",content:i}),void 0!==m&&m&&(0,r.jsx)("meta",{name:"robots",content:"noindex"}),void 0!==p&&p&&(0,r.jsx)("meta",{"http-equiv":"refresh",content:"5"}),(0,r.jsx)("script",{id:"plausible-src",defer:!0,"data-domain":h,src:"/tracking.js"}),(0,r.jsx)("script",{id:"plausible-func",dangerouslySetInnerHTML:{__html:"\n window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }\n "}})]})};c.propTypes={title:o().string,description:o().string,ogimage:o().string,ogtype:o().string,ogurl:o().string,isHiddenPage:o().bool,needsRefresh:o().bool};let d=c},34987:(e,n,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/kontakt-oss/utleie",function(){return t(94458)}])},61058:(e,n,t)=>{"use strict";t.d(n,{A:()=>c});var r=t(37876);t(14232);var a=t(95062),s=t.n(a),i=t(15039),o=t.n(i),l=e=>{var n=e.title,t=e.imageSrcSmall,a=void 0===t?"":t,s=e.imageSrcLarge,i=void 0===s?"":s,l=e.imageAlt,c=o()({hero:!0,"hero--with-image":""!==a}),d="".concat(a," 768w, ").concat(i," 1280w");return(0,r.jsxs)("section",{className:c,children:[(0,r.jsx)("h1",{className:"hero__title",children:n}),a&&(0,r.jsx)("img",{className:"hero__image",srcSet:d,src:i,alt:(void 0===l?"":l)||n})]})};l.propTypes={title:s().string.isRequired,imageSrcSmall:s().string,imageSrcLarge:s().string,imageAlt:s().string};let c=l},94458:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>y});var r=t(16927),a=t(20294),s=t(45252),i=t(4902),o=t(37876),l=t(14232),c=t(5441),d=t(39593),m=t(1974),p=t(77961),h=t(61058),u=t(30736),g=t(40689),j=t(48230),x=t.n(j);t(18162);var f=t(4917),v=t.n(f),k={English:"Norsk",Utleieforespørsel:"Booking enquiry","Kan du gi oss litt mer informasjon, slik at vi kan bist\xe5 deg best mulig.":"Please provide us with some more information, so that we can better accommodate your request.","\xd8nsket dato":"Event date","Sluttdato (hvis varighet er mer enn en dag)":"End date (if the duration is over several days)","Klokkeslett fra":"Start time","Klokkeslett til":"End time","Antall deltagere":"Number of participants","\xd8nsket arena":"Desired venue(s)","Mulighet for flere valg":"possibility for multiple choices","(Kapasitet 150; fast amfi, egnet for de fleste typer produksjoner)":"(150 cap, fixed amphitheater, suited for most types of productions)","(Kapasitet 68; best egnet til enkle m\xf8ter av kortere varighet)":"(68 cap, best suited for shorter meetings with basic technical requirements)","(Kapasitet 250; \xe5pent landskap i publikumsomr\xe5de 5. etasje)":"(250 cap, open landscape in a public area, between the library's 4th and 5th floor)","(3-30 personer, grupperom, tilleggslokaler)":"(3-30 people, group work, additional rooms)","Tittel p\xe5 arrangement":"Name/Title of the event",Beskrivelse:"Please provide a brief description of the event","\xc5pent/lukket, gratis/billettert, type arrangement (konferanse, fagsamling, rapportframlegging, debatt, nettsending, kulturarrangement, konsert osv.)":"Open/closed, free/ticketed, type of event (conference, corporate gathering, presentation, debate, webcast/TV-production, cultural event, concert etc.)",Fornavn:"First name",Etternavn:"Surname",Ola:"John",Nordmann:"Doe","E-post":"Email","din@epost":"[email protected]",Telefon:"Telephone (including country code)",0xbc614e:"+47 12345678","Firma- eller selskapsnavn":"Company name","Organisasjonsnummer (fylles inn automatisk)":"Organization number (automatically filled in)","Jeg samtykker til at Deichman bibliotek kan behandle opplysningene jeg oppgir i dette skjemaet for \xe5 besvare og f\xf8lge opp min henvendelse.":"I agree that Deichman Library may process the information I provide in this form to answer and follow up on my inquiry.","Opplysningene behandles slik det er beskrevet i v\xe5r ":"The information will be processed in accordance with our ",personvernerklæring:"privacy policy","Send foresp\xf8rsel":"Send request","Noe gikk galt, fikk ikke sendt inn skjema. Pr\xf8v igjen om litt.":"Something went wrong, could not send request. Please wait and try in a short while.","Deichmansalen og Vrimle":"Deichmansalen & Vrimle",Kino:"Kino",Kringsjå:"Kringsj\xe5","Andre lokaler/m\xf8terom":"Other locations/meeting rooms","Takk for at du tok kontakt.":"Thank y
1ou.","Til forsiden":"To front page"},b=[{name:"Deichmansalen og Vrimle",desc:"(Kapasitet 150; fast amfi, egnet for de fleste typer produksjoner)"},{name:"Kino",desc:"(Kapasitet 68; best egnet til enkle m\xf8ter av kortere varighet)"},{name:"Kringsj\xe5",desc:"(Kapasitet 250; \xe5pent landskap i publikumsomr\xe5de 5. etasje)"},{name:"Andre lokaler/m\xf8terom",desc:"(3-30 personer, grupperom, tilleggslokaler)"}];let y=(0,c.fQ)(e=>{var n,t=e.session,c=(0,s._)((null!=(n=null==t?void 0:t.user().name)?n:"").split(" ")),j=(c[0],c.slice(1));Array.isArray(j)&&(j=j.join(" "));var f=(0,a._)((0,l.useState)(!1),2),y=f[0],N=f[1],w=(0,a._)((0,l.useState)(!1),2),_=w[0],B=w[1],S=(0,a._)((0,l.useState)(!1),2),T=S[0],C=S[1],E=(0,a._)((0,l.useState)([]),2),F=E[0],A=E[1],K=(0,a._)((0,l.useState)(!1),2),q=K[0],O=K[1],P=function(e){return q?k[e]?k[e]:'MISSING TRANSLATION: "'.concat(e,'"'):e},V=v()(function(){var e=(0,r._)(function(e){var n,t,r;return(0,i.YH)(this,function(a){switch(a.label){case 0:if(""===e)return A([]),[2];return C(!0),[4,fetch("https://data.brreg.no/enhetsregisteret/api/enheter?navn=".concat(e,"&size=6"))];case 1:if(200!=(t=a.sent()).status)return A([]),C(!1),[2];return[4,t.json()];case 2:return(null==(n=(r=a.sent()).page)?void 0:n.totalElements)>0?A(r._embedded.enheter.map(e=>({name:e.navn,nr:e.organisasjonsnummer}))):A([]),C(!1),[2]}})});return function(n){return e.apply(this,arguments)}}(),100),D=function(e){27===e.keyCode&&A([])},M=function(){var e=(0,r._)(function(e,n){var t,r;return(0,i.YH)(this,function(a){switch(a.label){case 0:return t=n.setSubmitting,n.resetForm,t(!0),[4,(0,g.w)("/api/contact/utleie",{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify(e)})];case 1:if(r=a.sent(),t(!1),!(r.ok&&200===r.status))return[3,2];return N(!0),window.scrollTo(0,0),[3,4];case 2:return[4,r.text()];case 3:console.log({error:a.sent()}),B(!0),a.label=4;case 4:return[2]}})});return function(n,t){return e.apply(this,arguments)}}();return(0,o.jsxs)(l.Fragment,{children:[(0,o.jsx)(u.A,{title:"Kontaktskjema - Deichman.no"}),(0,o.jsxs)(p.mc,{children:[(0,o.jsxs)(p.eB,{top:8,responsive:!0,children:[(0,o.jsx)(p.eB,{bottom:4,children:(0,o.jsx)(p.$n,{primary:!0,onClick:e=>{O(!q)},children:P("English")})}),(0,o.jsx)(h.A,{title:P("Utleieforesp\xf8rsel"),imageAlt:P("Utleieforesp\xf8rsel")})]}),y&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(p.eB,{top:4,children:(0,o.jsx)("h4",{children:P("Takk for at du tok kontakt.")})}),(0,o.jsx)(p.eB,{top:4,children:(0,o.jsx)(x(),{href:"/",children:(0,o.jsx)(p.$n,{primary:!0,children:P("Til forsiden")})})})]}),!y&&(0,o.jsx)(d.l1,{enableReinitialize:!0,initialValues:{dateStart:"",dateEnd:"",timeFrom:"",timeTo:"",numPersons:"",arena1:!1,arena2:!1,arena3:!1,arena4:!1,title:"",description:"",firstName:"",lastName:"",email:"",phone:"",consent:!1,orgName:"",orgNr:""},onSubmit:M,children:e=>{var n=e.isSubmitting,t=e.values,r=e.touched,a=e.handleChange,s=e.handleBlur,i=e.handleSubmit,c=e.setFieldValue;return(0,o.jsxs)("form",{className:"contact-form",children:[(0,o.jsx)(p.eB,{top:4,children:(0,o.jsx)("p",{children:P("Kan du gi oss litt mer informasjon, slik at vi kan bist\xe5 deg best mulig.")})}),(0,o.jsxs)(p.xA,{responsive:!0,children:[(0,o.jsx)(p.Ei,{large:"one-half",children:(0,o.jsxs)(p.eB,{top:4,children:[(0,o.jsxs)("p",{className:"required",children:[P("\xd8nsket dato"),":"]}),(0,o.jsx)(p.pd,{type:"date",value:t.dateStart,name:"dateStart",error:r.dateStart&&""==t.dateStart,onBlur:s,onChange:a})]})}),(0,o.jsx)(p.Ei,{large:"one-half",children:(0,o.jsxs)(p.eB,{top:4,children:[(0,o.jsxs)("p",{children:[P("Sluttdato (hvis varighet er mer enn en dag)"),":"]}),(0,o.jsx)(p.pd,{type:"date",value:t.dateEnd,name:"dateEnd",error:r.dateEnd&&""==t.dateEnd,onBlur:s,onChange:a})]})}),(0,o.jsx)(p.Ei,{large:"one-half",children:(0,o.jsxs)(p.eB,{top:4,children:[(0,o.jsxs)("p",{className:"required",children:[P("Klokkeslett fra"),":"]}),(0,o.jsx)(p.pd,{type:"text",value:t.timeFrom,placeholder:"--:--",name:"timeFrom",error:r.timeFrom&&!t.timeFrom.match(/\d\d:\d\d/),onBlur:s,onChange:a})]})}),(0,o.jsx)(p.Ei,{large:"one-half",children:(0,o.jsxs)(p.eB,{top:4,children:[(0,o.jsxs)("p",{className:"required",children:[P("Klokkeslett til"),":"]}),(0,o.jsx)(p.pd,{type:"text",placeholder:"--:--",value:t.timeTo,name:"timeTo",error:r.timeTo&&!t.timeTo.match(/\d\d:\d\d/),onBlur:s,onChange:a})]})})]}),(0,o.jsxs)(p.eB,{top:4,children:[(0,o.jsxs)("p",{className:"required",children:[P("Antall deltagere"),":"]}),(0,o.jsx)(p.pd,{type:"text",placeholder:"3-150",name:"numPersons",value:t.numPersons,error:r.numPersons&&""==t.numPersons,onBlur:s,onChange:a})]}),(0,o.jsxs)(p.eB,{top:4,children:[(0,o.jsxs)("p",{children:[P("\xd8nsket arena"),":"]}),(0,o.jsx)("p",{children:(0,o.jsx)("small",{children:P("Mulighet for flere valg")})}),(0,o.jsx)("div",{className:"arenaOptions",children:b.map((e,n)=>(0,o.jsxs)(l.Fragment,{children:[(0,o.jsx)(m.Yh,{containerclassnames:"option",name:"arena".concat(n)}),(0,o.jsxs)("label",{htmlFor:"arena".concat(n),children:[(0,o.jsx)("strong",{children:P(e.name)}
1)," ",P(e.desc)]}),(0,o.jsx)("br",{})]},"arena".concat(n)))})]}),(0,o.jsxs)(p.eB,{top:4,children:[(0,o.jsxs)("p",{className:"required",children:[P("Tittel p\xe5 arrangement"),":"]}),(0,o.jsx)(p.pd,{type:"text",name:"title",value:t.title,error:r.title&&""==t.title,onBlur:s,onChange:a})]}),(0,o.jsxs)(p.eB,{top:4,children:[(0,o.jsx)("p",{className:"required",children:P("Beskrivelse")}),(0,o.jsx)(p.TM,{value:t.description,name:"description",autoComplete:"off",placeholder:P("\xc5pent/lukket, gratis/billettert, type arrangement (konferanse, fagsamling, rapportframlegging, debatt, nettsending, kulturarrangement, konsert osv.)"),error:r.description&&""==t.description,onBlur:s,onChange:a,full:!0})]}),(0,o.jsxs)(p.xA,{responsive:!0,children:[(0,o.jsx)(p.Ei,{large:"one-half",children:(0,o.jsxs)(p.eB,{top:4,children:[(0,o.jsxs)("p",{className:"required",children:[P("Fornavn"),":"]}),(0,o.jsx)(p.pd,{type:"text",placeholder:P("Ola"),value:t.firstName,name:"firstName",error:r.firstName&&""==t.firstName,onBlur:s,onChange:a})]})}),(0,o.jsx)(p.Ei,{large:"one-half",children:(0,o.jsxs)(p.eB,{top:4,children:[(0,o.jsxs)("p",{className:"required",children:[P("Etternavn"),":"]}),(0,o.jsx)(p.pd,{type:"text",placeholder:P("Nordmann"),value:t.lastName,name:"lastName",error:r.lastName&&""==t.lastName,onBlur:s,onChange:a})]})}),(0,o.jsx)(p.Ei,{large:"one-half",children:(0,o.jsxs)(p.eB,{top:4,children:[(0,o.jsxs)("p",{className:"required",children:[P("E-post"),":"]}),(0,o.jsx)(p.pd,{type:"email",placeholder:P("din@epost"),value:t.email,name:"email",error:r.email&&""==t.email,onBlur:s,onChange:a})]})}),(0,o.jsx)(p.Ei,{large:"one-half",children:(0,o.jsxs)(p.eB,{top:4,children:[(0,o.jsxs)("p",{children:[P("Telefon"),":"]}),(0,o.jsx)(p.pd,{type:"text",placeholder:P("12345678"),value:t.phone,name:"phone",error:r.phone&&""==t.phone,onBlur:s,onChange:a})]})})]}),(0,o.jsxs)(p.eB,{top:4,onKeyDown:D,children:[(0,o.jsxs)("p",{children:[P("Firma- eller selskapsnavn"),":"]}),(0,o.jsx)(p.pd,{value:t.orgName,name:"orgName",type:"text",autoComplete:"off",onBlur:s,onChange:e=>{V(e.target.value.trim()),a(e)}}),(T||F.length>0)&&(0,o.jsx)("div",{className:"enhetSearchResults",children:(0,o.jsxs)("ul",{children:[T&&0===F.length&&(0,o.jsx)("li",{children:"â¦"}),F.map(e=>(0,o.jsx)("li",{children:(0,o.jsxs)("button",{onClick:n=>{c("orgName",e.name),c("orgNr",e.nr),A([])},children:[e.name," (",e.nr,")"]})},"orgnr ".concat(e.nr)))]})})]}),(0,o.jsxs)(p.eB,{top:4,bottom:6,children:[(0,o.jsx)("p",{children:P("Organisasjonsnummer (fylles inn automatisk)")}),(0,o.jsx)(p.pd,{value:t.orgNr,name:"orgNr",type:"text",disabled:!0,onBlur:s,onChange:a})]}),(0,o.jsxs)(p.eB,{className:"consent",top:4,bottom:8,children:[(0,o.jsx)(m.Yh,{name:"consent",containerclassnames:"option"}),(0,o.jsx)("label",{htmlFor:"consent",children:P("Jeg samtykker til at Deichman bibliotek kan behandle opplysningene jeg oppgir i dette skjemaet for \xe5 besvare og f\xf8lge opp min henvendelse.")}),(0,o.jsx)("br",{}),(0,o.jsxs)("p",{children:[P("Opplysningene behandles slik det er beskrevet i v\xe5r "),(0,o.jsx)(x(),{href:"/personvern",children:P("personvernerkl\xe6ring")}),"."]}),(0,o.jsx)(p.$n,{type:"submit",primary:!0,onClick:i,disabled:function(e){return""==e.dateStart||""==e.timeFrom||""==e.timeTo||""==e.numPersons||""==e.title||""==e.description||""==e.firstName||""==e.lastName||""==e.email||!1==e.consent}(t),loading:n,children:P("Send foresp\xf8rsel")}),_&&(0,o.jsx)(p.Fc,{type:"warning",children:(0,o.jsx)("p",{children:P("Noe gikk galt, fikk ikke sendt inn skjema. Pr\xf8v igjen om litt.")})})]})]})}})]})]})})}},e=>{var n=n=>e(e.s=n);e.O(0,[3048,1816,636,6593,8792],()=>n(34987)),_N_E=e.O()}]);
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.