!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1db43aba-bca5-4100-a810-b66866b83a89",e._sentryDebugIdIdentifier="sentry-dbid-1db43aba-bca5-4100-a810-b66866b83a89")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2428],{36793:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(85893),l=n(89755),s=n.n(l);function i(e){let{listing:t,popup:n=!1}=e;return(0,r.jsx)("div",{className:"flex text-center ".concat(n?"w-[220px]":"w-full p-4 sm:w-1/2 md:w-1/3 lg:w-1/2 xl:w-1/3"),children:(0,r.jsxs)("a",{href:t.website+"?utm_source=elevpraktik",rel:"nofollow",target:"_blank",className:"h-full w-full rounded bg-white shadow-md",children:[(0,r.jsx)("div",{className:"my-4 mx-auto ".concat(n?"h-[100px] w-[100px]":"h-[120px] w-[120px]"),children:(0,r.jsx)(s(),{src:"/images/high-school-logos/".concat(t.image),alt:"".concat(t.name," logo"),height:n?100:120,width:n?100:120})}),(0,r.jsxs)("div",{className:"m-4",children:[(0,r.jsxs)("div",{className:"".concat(n?"":"h-[80px]"),children:[(0,r.jsx)("p",{className:"text-lg font-bold line-clamp-2",children:t.name}),(0,r.jsx)("p",{className:"text-base",children:t.city})]}),(0,r.jsx)("p",{className:"mt-6 flex justify-evenly divide-x border-t border-gray-200 pt-3 text-sm font-medium uppercase text-gray-600",children:t.schoolTypes.map((e,t)=>(0,r.jsx)("span",{className:"inline-block flex-1",children:e},t))})]})]})})}},5815:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(85893),l=n(60950),s=n(86250);function i(e){let{label:t="",tooltip:n,width:i=220,className:a=""}=e;return(0,r.jsxs)("div",{className:"inline-flex items-center ".concat(a),children:[(0,r.jsx)("span",{children:t}),(0,r.jsxs)(l.z,{position:"top",width:i,closeDelay:50,transitionProps:{exitDuration:200},shadow:"md",withArrow:!0,className:"ml-1",children:[(0,r.jsx)(l.z.Target,{children:(0,r.jsx)("div",{className:"hover:cursor-pointer",children:(0,r.jsx)(s.ib5,{size:18,className:"-mt-2 text-gray-800"})})}),(0,r.jsx)(l.z.Dropdown,{children:n})]})]})}},43383:function(e,t,n){n.d(t,{Z:function(){return a}});var r=n(85893),l=n(33299),s=n(67294),i=n(1373);function a(e){var t;let{unitId:n,useLock:a=!0,extraBlur:o=!1,children:c}=e,{data:d}=(0,l.useSession)(),u=null!=d&&null!==(t=d.user)&&void 0!==t&&!!t.hasAccess,[m,h]=(0,s.useState)(!1);return!a||u?c:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"cursor-pointer select-none ".concat(o?"blur-[5px]":"blur-sm"),onClick:()=>h(!0),children:(0,r.jsx)("span",{className:"pointer-events-none",children:c})}),(0,r.jsx)(i.Z,{unitId:n,opened:m,onClose:h})]})}},1373:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(85893),l=n(92795),s=n(24920),i=n(33299),a=n(41664),o=n.n(a),c=n(775),d=n(11163);function u(e){var t;let{unitId:n,opened:a=!1,onClose:u=()=>{},isFullPage:m=!1}=e,{data:h}=(0,i.useSession)(),g=(0,d.useRouter)(),p=(e,t)=>{if(e.preventDefault(),n){var r;let e={url:m?"/erhvervspraktik/opslag/".concat(n):"/?unitId=".concat(n,"&").concat((null===(r=g.query)||void 0===r?void 0:r.query)?"query=".concat(g.query.query):""),expiry:new Date().getTime()+3e5};localStorage.setItem("returnTo",JSON.stringify(e))}g.push(t)};return(0,r.jsx)(l.u,{trapFocus:!0,withCloseButton:!1,centered:!0,opened:a,onClose:()=>{u(!1)},classNames:{body:"!p-6 sm:!p-8"},children:!h||(null==h?void 0:null===(t=h.user)||void 0===t?void 0:t.hasAccess)?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h2",{className:"mb-3",children:"Log ind for at f\xe5 adgang"}),(0,r.jsxs)("div",{className:"mt-6 flex items-center space-x-4",children:[(0,r.jsx)(s.z,{component:"a",fullWidth:!0,href:"/tilmeld",onClick:e=>{p(e,"/tilmeld")},children:"Tilmeld dig"}),(0,r.jsx)("p",{className:"flex-shrink-0 text-gray-500",children:"eller"}),(0,r.jsx)(s.z,{component:"a",fullWidth:!0,color:"gray",href:"/log-ind",onClick:e=>{p(e,"/log-ind")},children:"Log ind"})]}),(0,r.jsxs)("div",{className:"mt-6 border-t pt-2 text-sm text-gray-500",children:["Arbejder du ved en kommune/skole?"," ",(0,r.jsx)(o(),{href:"/faa-adgang",className:"underline",children:"L\xe6s mere her"}),"."]})]}):(0,r.jsx)(c.Z,{})})}},84865:function(e,t,n){n.d(t,{Z:function(){return z}});var r=n(85893),l=n(92909),s=n(67294);let i={id:"clusters",type:"circle",source:"markers",filter:["has","point_count"],paint:{"circle-color":"#2e5a6f","circle-radius":["step",["get","point_count"],16,10,22,100,24]}},a={id:"cluster-count",type:"symbol",source:"markers",filter:["has","point_count"],paint:{"text-color":"#fff"}},o={id:"unclustered-point",source:"markers",filter:["!",["has","point_count"]],type:"circle",paint:{"circle-radius":["match",["get","badge"],"likely",13,"neutral",13,"unlikely",10,13],"circle-color":["match",["get","badge"],"likely","#6a994e","neutral","#a3a3a3","unlikely","#fabb0d","#a3a3a3"]}},c={id:"points-with-images",source:"markers",filter:["!",["has","point_count"]],type:"symbol",layout:{"icon-image":["match",["get","badge"],"likely","likely","neutral","neutral","unlikely","unlikely","neutral"],"icon-size":["match",["get","badge"],"likely",.45,"neutral",.45,"unlikely",.4,.45]}};var d=n(3426),u=n(53907),m=n(76556),h=n(55935),g=n(36793),p=n(59765),f=n(89755),x=n.n(f),v=n(39417),b=n(1032),j=n(55346),y=n(59820);function k(e){let{listings:t,hasAccess:n=!0,showBadge:l=!1,onClick:s=()=>{},className:i="",saveListing:a}=e,{data:o}=(0,y.ZP)("/api/users/get-user");return(0,r.jsx)("div",{className:"w-[240px] ".concat(i," max-h-[340px] space-y-6 overflow-y-auto"),children:t.map(e=>{var t;let i=[];if(null==e?void 0:e.tags){if(Array.isArray(e.tags))i=e.tags;else try{i=JSON.parse(e.tags)}catch(e){}}let c=null==o?void 0:null===(t=o.savedListings)||void 0===t?void 0:t.includes(e._id);return(0,r.jsxs)("div",{className:"cursor-pointer overflow-hidden rounded-md bg-white shadow-md",onClick:()=>s(e._id),children:[(0,r.jsxs)("div",{className:"relative flex w-full overflow-hidden pt-[66.7%]",children:[e.photoFilename?(0,r.jsx)(x(),{src:e.scraped?"/images/scraped-employers/thumbnail/".concat(e.photoFilename):p.q.thumbnail+e.photoFilename,layout:"fill",className:"object-cover",alt:"",unoptimized:!e.scraped,quality:100}):e.industryCode?(0,r.jsx)(x(),{src:"/images/industries/thumbnail/".concat(e.industryCode.substring(0,4),".jpg"),layout:"fill",className:"object-cover",quality:100,alt:""}):(0,r.jsx)("div",{className:"absolute inset-0 flex flex-col justify-center bg-gray-300",children:(0,r.jsx)(x(),{src:"/logos/logo-black.svg",height:96,width:96,className:"opacity-20",alt:""})}),(0,r.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/70 via-transparent opacity-30"}),i.length>0&&(0,r.jsx)("div",{className:"absolute bottom-0 left-0 ml-2 mb-2 flex flex-wrap-reverse items-end",children:i.map(e=>(0,r.jsx)("div",{className:"mt-2 mr-1.5 inline-block rounded-full bg-white px-2 py-0.5 text-xs font-medium",children:e},e))}),(0,r.jsx)("div",{className:"absolute top-1.5 left-1.5 rounded-md bg-white shadow px-1.5 py-0.5 text-sm",children:"remote"===e.where?"Online":e.city}),a&&(0,r.jsx)(b.u,{label:c?"Fjern gemt opslag":"Gem opslag",children:(0,r.jsx)("div",{className:"absolute top-1.5 right-1.5 bg-white shadow rounded-full h-6 w-6 flex items-center justify-center",onClick:t=>{t.preventDefault(),t.stopPropagation(),a(e._id)},children:(0,r.jsx)(j.$0H,{className:"".concat(c?"text-red":"text-gray-500","  "),size:14})})})]}),(0,r.jsxs)("div",{className:"bg-white p-3",children:[(0,r.jsx)("p",{className:"text-base font-bold line-clamp-2",children:e.title}),n&&(0,r.jsx)("p",{className:"mt-0.5 mb-2 text-sm text-gray-600 line-clamp-1",children:e.subtitle}),l&&(0,r.jsx)("div",{className:"mt-2",children:(0,r.jsx)(v.Z,{badge:e.badge,isBoosted:e.isBoosted})})]})]},e._id)})})}var w=n(91844);let N={id:"unclustered-point",source:"markers",filter:["!",["has","point_count"]],type:"circle",paint:{"circle-color":["case",["==",["get","isBoosted"],!0],"#fc5251",["==",["get","badge"],"likely"],"#6a994e",["==",["get","badge"],"unlikely"],"#fabb0d","#000"],"circle-radius":8,"circle-stroke-width":1,"circle-stroke-color":"#fff"}},_=e=>JSON.stringify([[e._sw.lng,e._sw.lat],[e._ne.lng,e._ne.lat]]);function z(e){let{lat:t=h.N.lat,lng:n=h.N.lng,zoom:p=h.N.zoom,height:f=400,width:x="100%",geojson:v,getMapBounds:b,scrollToZoom:j=!0,showControls:y=!1,dontShowPopups:z=!1,maxZoom:C,onCardClick:Z,newMapCenter:I,showHighSchoolCards:S=!1,showingAllResults:B=!0,hasAccess:L=!0,showBadge:q=!1,useInternshipMapStyle:D=!1,saveListing:E,fullscreenMap:M,setFullscreenMap:A,showMobileMap:T}=e,F=(0,s.useRef)(),P="markers",[V,H]=(0,s.useState)(),[O,J]=(0,s.useState)(),R=(0,d.O)(()=>J()),[U,W]=(0,s.useState)(!1),[X,Y]=(0,s.useState)(),[G]=(0,u.c)(X,400),[Q,K]=(0,s.useState)(!1),$=async e=>{if(0!==e.features.length){if(e.features[0].properties.cluster){let t=e.features[0],n=t.properties.cluster_id,r=parseInt(F.current.getZoom()),l=F.current.getSource(P);r>=14||r>=11&&B?l.getClusterLeaves(n,50,0,(e,n)=>{if(e)return console.log("Error in getClusterLeaves()",e);H(t.geometry.coordinates),J(n.map(e=>e.properties))}):l.getClusterExpansionZoom(n,(e,n)=>{if(e)return console.log("Error in getClusterExpansionZoom()",e);F.current.easeTo({center:t.geometry.coordinates,zoom:r<=10?n+1:n,duration:500}),setTimeout(()=>{let e=F.current.getBounds();e&&b&&b({boundingBox:_(e),zoom:n})},500)})}else{if(z)return;H(e.features[0].geometry.coordinates),J([{...e.features[0].properties,...e.features[0].properties.schoolTypes&&{schoolTypes:JSON.parse(e.features[0].properties.schoolTypes)}}])}}};return(0,s.useEffect)(()=>{G&&b&&b({boundingBox:_(G),zoom:G.zoom})},[G]),(0,s.useEffect)(()=>{if(I&&Q){var e;null==F||null===(e=F.current)||void 0===e||e.flyTo({...I,duration:800,essential:!0})}},[I,Q]),(0,s.useEffect)(()=>{void 0===v?W(!0):W(!1)},[v]),(0,s.useEffect)(()=>{if(F.current&&D){let e=F.current.getMap();["likely","neutral","unlikely"].forEach(t=>{e.loadImage("".concat(w.n,"/images/badges/").concat(t,".png"),(n,r)=>{e.hasImage(t)||e.addImage(t,r)})})}},[F.current]),(0,r.jsxs)(l.ZP,{onLoad:()=>K(!0),reuseMaps:!0,style:{width:x,height:f},mapStyle:"mapbox://styles/juliuzzz/cl12drpk7002c14m466rtn0mo?optimize=true",mapboxAccessToken:"pk.eyJ1IjoianVsaXV6enoiLCJhIjoiY2wxMHlldzdwMDF1OTNibnAzMW9lbmE1YyJ9.xaQHkeNlPn-moP_efjZSjw",initialViewState:{latitude:t,longitude:n,zoom:p},maxZoom:C||16,minZoom:5.5,pitch:0,minPitch:0,maxPitch:0,bearing:0,minBearing:0,maxBearing:0,scrollZoom:j,ref:F,onClick:$,interactiveLayerIds:[i.id,o.id],onMove:e=>{var t,n,r;if(b&&(null==e?void 0:null===(t=e.originalEvent)||void 0===t?void 0:t.type)!=="resize"&&(null==e?void 0:null===(n=e.originalEvent)||void 0===n?void 0:n.type)!==void 0){let e=null===(r=F.current)||void 0===r?void 0:r.getBounds();e&&Y({...e,zoom:parseInt(F.current.getZoom())})}},onMoveStart:e=>{var t,n;b&&(null==e?void 0:null===(t=e.originalEvent)||void 0===t?void 0:t.type)!=="resize"&&(null==e?void 0:null===(n=e.originalEvent)||void 0===n?void 0:n.type)!==void 0&&!U&&W(!0)},children:[(0,r.jsx)("div",{className:U?"absolute top-4 left-1/2 z-10 -translate-x-1/2 rounded-md bg-white p-4 text-base shadow-md":"hidden",children:(0,r.jsx)(m.a,{})}),O&&V&&(0,r.jsx)(l.GI,{longitude:V[0],latitude:V[1],onClose:()=>J(),anchor:"bottom",closeButton:!1,closeOnClick:!1,children:(0,r.jsx)("div",{className:"flex",ref:R,children:S?(0,r.jsx)(g.Z,{popup:!0,listing:O[0]}):(0,r.jsx)(k,{listings:O,...Z&&{onClick:Z},hasAccess:L,showBadge:q,saveListing:E})})}),(0,r.jsxs)(l.Hw,{id:P,type:"geojson",data:{type:"FeatureCollection",features:v},cluster:!0,clusterRadius:D?12:16,children:[(0,r.jsx)(l.mh,{...i}),(0,r.jsx)(l.mh,{...a,layout:{"text-field":"{point_count_abbreviated}"+(B?"":"+"),"text-size":12,"text-font":["DIN Offc Pro Medium","Arial Unicode MS Bold"]}}),D?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.mh,{...o}),(0,r.jsx)(l.mh,{...c})]}):(0,r.jsx)(l.mh,{...N})]}),y&&(0,r.jsx)(l.Pv,{showCompass:!1}),A&&y&&!T&&(0,r.jsx)("button",{className:"absolute right-[8px] top-[80px] h-8 w-8 bg-white rounded border-2 border-gray-300 hover:bg-gray-200",onClick:()=>{A(e=>!e),setTimeout(()=>{F.current&&F.current.getMap().resize()},300)},children:M?(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 29 29",children:(0,r.jsx)("path",{d:"M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z"})}):(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#333",viewBox:"0 0 29 29",children:(0,r.jsx)("path",{d:"M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z"})})})]})}},21129:function(e,t,n){n.d(t,{Z:function(){return f}});var r=n(85893),l=n(67294),s=n(42474),i=n.n(s),a=n(45772),o=n.n(a);function c(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let r=0;r<e;r++){let e=Math.floor(Math.random()*n.length);t+=n.charAt(e)}return t}var d=n(85576);async function u(e){let t=i().createHash("sha256").update(new TextEncoder().encode(e)).digest();return o().encode(t).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function m(){let e=i().randomBytes(128).toString("hex").slice(0,128),t=await u(e);localStorage.setItem("uniloginVerifier",e);let n=c(16),r=c(16);return"https://broker.unilogin.dk/auth/realms/broker/protocol/openid-connect/auth?"+new URLSearchParams({response_type:"code",state:n,client_id:d.X.uniloginClientId,redirect_uri:d.X.uniloginRedirectUri,scope:"openid",nonce:r,code_challenge:t,code_challenge_method:"S256"}).toString()}var h=n(76556),g=n(29668),p=n(11163);function f(e){let{returnToUnitId:t,isFullPage:n}=e,[s,i]=(0,l.useState)(!1),a=(0,p.useRouter)(),o=async()=>{if(s)return;i(!0),t&&(0,g.Z)({unitId:t,query:null==a?void 0:a.query,isFullPage:n});let e=await m();i(!1),window.location.href=e};return(0,r.jsx)("div",{className:"cursor-pointer rounded-lg border-2 border-gray-100 bg-gray-100 p-6 hover:border-[#4370b4]",onClick:o,children:s?(0,r.jsx)(h.a,{className:"mx-auto h-6",color:"blue",type:"dots",size:"lg"}):(0,r.jsx)("img",{src:"/images/unilogin-logo.svg",className:"mx-auto -mb-2 h-8"})})}},69783:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(85893),l=n(79523),s=n(5815);function i(e){let{form:t,label:n="Dit telefonnummer",tooltip:i}=e;return(0,r.jsx)(l.Y,{label:i?(0,r.jsx)(s.Z,{label:n,tooltip:i}):n,placeholder:"12345678",type:"tel",allowDecimal:!1,allowNegative:!1,hideControls:!0,allowLeadingZeros:!0,className:"flex-grow",isAllowed:e=>{let{value:t}=e;return!((null==t?void 0:t.length)>8)},...t.getInputProps("phoneNumber")})}},39417:function(e,t,n){n.d(t,{Z:function(){return d}});var r=n(85893),l=n(1032);let{FaStar:s,FaThumbsUp:i,FaExclamationTriangle:a,FaQuestion:o}=n(88972),c={isBoosted:{Icon:s,title:"S\xf8ger praktikanter",classNames:"bg-red text-white",bgClassName:"bg-red/20",description:"Virksomheden s\xf8ger aktivt efter praktikanter lige nu."},likely:{Icon:i,title:"Mere sandsynlig",classNames:"bg-success text-white",bgClassName:"bg-success/40",description:"Virksomheden har sagt, at de som udgangspunkt gerne vil tilbyde erhvervspraktik. Eller s\xe5 har en relativt h\xf8j andel af eleverne, som har ans\xf8gt, fortalt at de har f\xe5et tilbudt praktik."},neutral:{Icon:o,title:"Neutral",classNames:"bg-gray-300 text-black",bgClassName:"bg-gray-100",description:(0,r.jsxs)("div",{children:["Virksomheden har hverken sagt ja eller nej til om de vil tilbyde praktik, men der er flere positive tegn:",(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{children:"Der har ikke v\xe6ret flere elever som har f\xe5et en afvisning."}),(0,r.jsx)("li",{children:"Branchen er ikke kendt for at afvise praktikanter."}),(0,r.jsx)("li",{children:"De har ansatte nok til at kunne tilbyde praktik."})]}),"S\xe5 du kan sagtens pr\xf8ve at kontakte virksomheden."]})},unlikely:{Icon:a,title:"Mindre sandsynlig",classNames:"bg-warning text-black",bgClassName:"bg-warning/20",description:(0,r.jsxs)("div",{children:["Virksomheden har en af f\xf8lgende udfordringer:",(0,r.jsxs)("ul",{className:"list-inside list-disc",children:[(0,r.jsx)("li",{children:"De har selv sagt at de ikke vil tilbyde praktik."}),(0,r.jsx)("li",{children:"Flere elever har f\xe5et en afvisning."}),(0,r.jsx)("li",{children:"De har kun 1-2 ansatte."}),(0,r.jsx)("li",{children:"Branchen afviser typisk praktikanter."})]}),"Du er dog stadigv\xe6k velkommen til at kontakte virksomheden."]})}};function d(e){let{badge:t="neutral",isBoosted:n}=e,{classNames:s,Icon:i,title:a}=c[n?"isBoosted":t];return(0,r.jsx)(l.u,{multiline:!0,withArrow:!0,label:"Chance for at f\xe5 praktik hos virksomheden",children:(0,r.jsxs)("div",{className:"mt-auto inline-flex w-fit items-center rounded px-2 py-1 text-xs ".concat(s),children:[(0,r.jsx)(i,{size:10}),(0,r.jsx)("p",{className:"ml-1.5 font-medium",children:a})]})})}},89228:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(85893);function l(e){let{title:t,className:n="",children:l}=e;return(0,r.jsxs)("div",{className:"border-t mt-14 pt-14  "+n,children:[(0,r.jsx)("div",{className:"mb-4 flex items-center",children:(0,r.jsx)("h3",{className:"text-xl font-bold",children:t})}),l]})}},3796:function(e,t,n){n.d(t,{Z:function(){return h}});var r=n(85893),l=n(775),s=n(33299),i=n(21129),a=n(41664),o=n.n(a),c=n(11163),d=n(29668);function u(e){let{unitId:t,isFullPage:n}=e,l=(0,c.useRouter)(),s=(e,r)=>{(0,d.Z)({unitId:t,query:null==l?void 0:l.query,isFullPage:n}),l.push(r)};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"font-bold text-xl mb-4",children:"Log ind for at f\xe5 adgang"}),(0,r.jsx)(i.Z,{returnToUnitId:t,isFullPage:n}),(0,r.jsxs)("div",{className:"mt-4 text-sm text-gray-500",children:[(0,r.jsx)("p",{children:"Eller..."}),(0,r.jsxs)("ul",{className:"mt-1 space-y-1 list-disc pl-3.5",children:[(0,r.jsxs)("li",{className:"",children:["Log-ind med"," ",(0,r.jsx)("span",{onClick:e=>s(e,"/log-ind"),className:"underline cursor-pointer",children:"egen email/nr"}),"."]}),(0,r.jsxs)("li",{children:["Arbejder du ved en virksomhed? Benyt jeres"," ",(0,r.jsx)(o(),{href:"/rediger",className:"underline",children:"redigeringslink"}),"."]}),(0,r.jsxs)("li",{children:["Arbejder du ved en kommune/skole?"," ",(0,r.jsx)(o(),{href:"/faa-adgang",className:"underline",children:"L\xe6s mere her"}),"."]})]})]})]})}var m=n(76556);function h(e){var t;let{unitId:n,isFullPage:i,freePost:a}=e,{data:o,status:c}=(0,s.useSession)(),d=null==o?void 0:null===(t=o.user)||void 0===t?void 0:t.hasAccess,h=()=>(0,r.jsx)("div",{className:"absolute inset-0 bg-black/50 z-[15] rounded-md backdrop-blur-sm flex justify-center items-center"}),g=e=>{let{children:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"fixed left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2 z-20",children:(0,r.jsx)("div",{className:"bg-white p-4 sm:p-6 shadow-md rounded-md w-[350px] sm:w-[450px] max-h-[70vh] overflow-y-auto",children:t})}),(0,r.jsx)(h,{})]})};return a?null:"loading"===c?(0,r.jsx)(g,{children:(0,r.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,r.jsx)(m.a,{})})}):d?null:"authenticated"!==c||d?(0,r.jsx)(g,{children:(0,r.jsx)(u,{unitId:n,isFullPage:i})}):(0,r.jsx)(g,{children:(0,r.jsx)(l.Z,{})})}},59765:function(e,t,n){n.d(t,{q:function(){return l}});let r="https://res.cloudinary.com/elevpraktik/image/upload/",l={applicant:r+"ar_1:1,w_300,g_auto,c_lfill,q_auto:eco,f_auto/",thumbnail:r+"ar_3:2,w_350,g_auto,c_lfill,q_auto:good,f_auto/",main:r+"ar_3:2,w_900,g_auto,c_lfill,q_auto:good,f_auto/",hero:r+"w_1920,h_700,g_auto,c_lfill,q_auto:eco,f_auto/",full:r}},55935:function(e,t,n){n.d(t,{N:function(){return r}});let r={lat:56.113608,lng:10.411117,zoom:6}},26259:function(e,t,n){n.d(t,{Z:function(){return r}});function r(e){var t;return(null==e?void 0:null===(t=e.user)||void 0===t?void 0:t.role)==="user"}},29668:function(e,t,n){n.d(t,{Z:function(){return r}});function r(e){let{unitId:t,query:n,isFullPage:r=!1}=e;if(!t)return;let l={url:r?"/erhvervspraktik/opslag/".concat(t):"/?unitId=".concat(t,"&").concat((null==n?void 0:n.query)?"query=".concat(n.query):""),expiry:new Date().getTime()+6e5};localStorage.setItem("returnTo",JSON.stringify(l))}},30974:function(e,t,n){n.d(t,{Z:function(){return r}});function r(e){return Array.isArray(e)&&e.length>0}}}]);