1!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]="c4c7d9a8-d3ef-4af7-9a98-48e13b9a9776",e._sentryDebugIdIdentifier="sentry-dbid-c4c7d9a8-d3ef-4af7-9a98-48e13b9a9776")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9571],{12820:(e,t,n)=>{n.d(t,{q:()=>l});var r=n(71024);let l=n.n(r)()(()=>Promise.all([n.e(1175),n.e(362),n.e(7213)]).then(n.bind(n,7213)),{loadableGenerated:{webpack:()=>[7213]},ssr:!1})},15596:(e,t,n)=>{n.d(t,{r:()=>o});var r=n(6029),l=n(55729),a=n(23798),s=n(81278),i=n(38043);function o(e){return t=>{let{isAuthenticated:n,loading:o}=(0,a.Z2)(),d=(0,s.useRouter)();return((0,l.useEffect)(()=>{n||o||d.push(i.qh.Login)},[n,o]),!n||o)?(0,r.jsx)(r.Fragment,{}):(0,r.jsx)(e,{...t})}}},24191:(e,t,n)=>{n.d(t,{t:()=>b});var r=n(6029),l=n(12820),a=n(62172),s=n(71259),i=n(69238),o=n(56760),d=n(6985),c=n(55729);let u=e=>{let{confirm:t,reject:n,title:l,children:s}=e,{geoLocationPicker:i}=(0,a.wR)();return(0,r.jsxs)("div",{className:i.addressBlock.wrapper,"data-sentry-component":"InputConfirmation","data-sentry-source-file":"InputConfirmation.tsx",children:[(0,r.jsx)("div",{className:i.addressBlock.header,children:l}),(0,r.jsxs)("div",{className:i.addressBlock.body,children:[s,(0,r.jsxs)("div",{className:i.addressBlock.buttons,children:[(0,r.jsx)("button",{type:"button",onClick:t,className:i.addressBlock.button,children:"Ja"}),(0,r.jsx)("button",{type:"button",onClick:n,className:i.addressBlock.button,children:"Nein"})]})]})]})};var m=n(23798),h=n(22993),x=n(32829),f=n(21941);let g="coordinate";var p=n(44337);let b=e=>{var t,n,b,j,v,y,N;let{onSelectLocation:w,location:k,instructions:C="Bestimmen Sie den Standort auf der Karte indem Sie die Adresse eingeben oder direkt auf die Karte klicken.",disableCountryInput:S=!0}=e,I=(0,c.useId)(),E=(0,c.useId)(),B=(0,c.useId)(),z=(0,c.useId)(),F=(0,c.useId)(),P=(0,c.useId)(),{base:A,geoLocationPicker:G,map:_}=(0,a.wR)(),{fetchReverseGeocode:R,address:K}=(0,d.E_)(),{fetchGeocode:q}=(0,d.Ok)(),{coordinate:H,updateCurrentLocation:O,error:D}=(()=>{let{isAuthenticated:e}=(0,m.Z2)(),[t,n]=(0,c.useState)(null),[r,l]=(0,c.useState)(null),{fetchGeocode:a}=(0,h.O)(),s={isSupported:"undefined"!=typeof navigator&&!!navigator.geolocation,getCurrentPosition:()=>new Promise((e,t)=>{var n;(null==(n=navigator)?void 0:n.geolocation)||t(Error("Geolocation is not supported by your browser")),navigator.geolocation.getCurrentPosition(e,t,{timeout:1e4,enableHighAccuracy:!0,maximumAge:0})})},i=async()=>{let{data:e}=await a(),t=null==e?void 0:e.geocode;return(null==t?void 0:t.latitude)&&(null==t?void 0:t.longitude)?{latitude:t.latitude,longitude:t.longitude}:null},o=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];try{if(!e){let e=(0,x.G)(g);if((null==e?void 0:e.latitude)&&(null==e?void 0:e.longitude)&&f.Ik().shape({latitude:f.ai().min(-90).max(90).required(),longitude:f.ai().min(-180).max(180).required()}).isValidSync(e))return e}if(s.isSupported)try{let{latitude:e,longitude:t}=(await s.getCurrentPosition()).coords;return{latitude:e,longitude:t}}catch(e){console.warn("Browser geolocation failed:",e)}let t=await i();if(t)return t;return l(Error("Failed to get location")),null}catch(t){let e=t instanceof Error?t:Error("Failed to get location");throw l(e),e}};return(0,c.useEffect)(()=>{(async()=>{t||e||n(await o(!1))})()},[t,e]),(0,c.useEffect)(()=>{t&&(0,x.k)(g,t)},[t]),{coordinate:t,updateCurrentLocation:()=>{o(!0).then(e=>{n(e)})},error:r}})(),[J,L]=(0,c.useState)(!1),[M,Z]=(0,c.useState)(k),[T,V]=(0,c.useState)(!1),[W,Q]=(0,c.useState)(!1),[U,X]=(0,c.useState)(!1),Y=e=>{let{name:t,value:n}=e.target;w({...k,[t]:n})},$=e=>{let{latitude:t,longitude:n}=e;w({...k,latitude:t,longitude:n}),en(t,n)},ee=()=>{M!==k&&X(!0),Z(k)},et=async()=>{let e={...k,latitude:null,longitude:null},{data:t}=await q(e);return t&&t.geocode?t.geocode:null},en=async(e,t)=>{await R({variables:{latitude:e,longitude:t}}),Q(!0)},er=async()=>{let e=await et();e&&(w({...k,latitude:e.latitude,longitude:e.longitude}),X(!1))},el=async()=>
1{try{L(!0),O()}catch(e){p.oR.error((0,r.jsxs)("p",{children:["Standort konnte nicht ermittelt werden. ",(0,r.jsx)("br",{}),"Bitte erteile der Seite Standortberechtigungen."]}))}};(0,c.useEffect)(()=>{if(H){let{latitude:e,longitude:t}=H;w({...k,latitude:e,longitude:t}),en(e,t),p.oR.success("Standort wurde erfolgreich gesetzt"),L(!1)}},[H]),(0,c.useEffect)(()=>{D&&(p.oR.error("Standort konnte nicht ermittelt werden"),L(!1))},[D]);let ea={coordinate:[k.latitude,k.longitude]};return(0,r.jsxs)("div",{className:G.wrapper,"data-sentry-component":"GeolocationPicker","data-sentry-source-file":"GeolocationPicker.tsx",children:[(0,r.jsxs)("div",{className:G.map,children:[(0,r.jsxs)("div",{className:A.height.full,children:[(0,r.jsxs)("div",{className:(0,a.cn)(A.display.flex,A.justify.between,A.itemsCenter,G.mapTop),children:[(0,r.jsx)("div",{children:"Karte"}),(0,r.jsx)("div",{className:(0,a.cn)(A.display.flex,A.gap.md),children:(0,r.jsx)("div",{className:A.hover.cursor,children:(0,r.jsx)(s.g,{icon:i.oZK,onClick:()=>V(!T),"data-sentry-element":"FontAwesomeIcon","data-sentry-source-file":"GeolocationPicker.tsx"})})})]}),(0,r.jsx)(l.q,{markers:[ea],onClick:$,className:(0,a.cn)(A.width.full,A.zIndex.z0,G.leafletMap),"data-sentry-element":"Leaflet","data-sentry-source-file":"GeolocationPicker.tsx"})]}),T&&(0,o.createPortal)((0,r.jsx)("div",{className:_.overlay.outer,children:(0,r.jsxs)("div",{className:_.overlay.inner,children:[(0,r.jsx)("div",{className:(0,a.cn)(A.background.dark,A.box.inner.padding,A.box.headline,_.overlay.header),children:"Karte"}),(0,r.jsx)("div",{className:_.overlay.close,onClick:()=>V(!T),children:(0,r.jsx)(s.g,{icon:i.Jyw,size:"2x"})}),(0,r.jsx)(l.q,{markers:[ea],onClick:$,className:(0,a.cn)(A.width.full,A.zIndex.z0,_.bigMap)})]})}),null==(t=document)?void 0:t.body)]}),(0,r.jsxs)("div",{className:G.inputWrapper,children:[(0,r.jsxs)("button",{type:"button",onClick:el,className:G.locationButton,disabled:J,children:[J?(0,r.jsx)(s.g,{icon:i.z1G,spin:!0}):(0,r.jsx)(s.g,{icon:i.gKm}),(0,r.jsx)("span",{children:"Meinen Standort setzen"})]}),(0,r.jsx)("div",{className:G.infoText,children:C}),(0,r.jsxs)("div",{className:G.formContainer,children:[(0,r.jsxs)("div",{className:G.inputContainer,children:[(0,r.jsx)("label",{className:A.form.label,htmlFor:I,children:"Stra\xdfe"}),(0,r.jsx)("input",{className:(0,a.cn)(A.form.input,A.box.inner.full),id:I,type:"text",name:"street",value:null!=(n=k.street)?n:"",onChange:Y,onBlur:ee})]}),(0,r.jsxs)("div",{className:G.inputContainer,children:[(0,r.jsx)("label",{className:A.form.label,htmlFor:E,children:"Hausnummer"}),(0,r.jsx)("input",{className:(0,a.cn)(A.form.input,A.box.inner.full),id:E,type:"text",name:"houseNumber",value:null!=(b=k.houseNumber)?b:"",onChange:Y,onBlur:ee})]}),(0,r.jsxs)("div",{className:G.inputContainer,children:[(0,r.jsx)("label",{className:A.form.label,htmlFor:B,children:"PLZ"}),(0,r.jsx)("input",{className:(0,a.cn)(A.form.input,A.box.inner.full),id:B,type:"text",name:"zip",onChange:Y,onBlur:ee,value:null!=(j=k.zip)?j:""})]}),(0,r.jsxs)("div",{className:G.inputContainer,children:[(0,r.jsx)("label",{className:A.form.label,htmlFor:z,children:"Ort"}),(0,r.jsx)("input",{className:(0,a.cn)(A.form.input,A.box.inner.full),id:z,type:"text",name:"place",onChange:Y,onBlur:ee,value:null!=(v=k.place)?v:""})]}),(0,r.jsxs)("div",{className:G.inputContainer,children:[(0,r.jsx)("label",{className:A.form.label,htmlFor:F,children:"Bundesland"}),(0,r.jsx)("input",{className:(0,a.cn)(A.form.input,A.box.inner.full),id:F,type:"text",name:"state",onChange:Y,onBlur:ee,value:null!=(y=k.state)?y:""})]}),(0,r.jsxs)("div",{className:G.inputContainer,children:[(0,r.jsx)("label",{className:A.form.label,htmlFor:P,children:"Staat"}),(0,r.jsx)("input",{className:(0,a.cn)(A.form.input,A.box.inner.full),id:P,type:"text",name:"country",onChange:Y,onBlur:ee,value:null!=(N=k.country)?N:"",readOnly:S})]})]}),K&&W&&(0,r.jsxs)(u,{confirm:()=>{var e,t,n,r,l,a;w({...k,street:null!=(e=K.street)?e:"",houseNumber:null!=(t=K.houseNumber)?t:"",place:null!=(n=K.place)?n:"",zip:null!=(r=K.zip)?r:"",state:null!=(l=K.state)?l:"",country:null!=(a=K.country)?a:""}),Q(!1)},reject:()=>
1Q(!1),title:"Meinten Sie diese Adresse?",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{className:A.font.weight.bold,children:"Stra\xdfe: "})," ",K.street]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{className:A.font.weight.bold,children:"Hausnummer:"})," ",K.houseNumber]})]}),U&&(0,r.jsx)(u,{confirm:er,reject:()=>X(!1),title:"Wollen Sie den Standort auf der Karte entsprechend der angegebenen Adresse anpassen?"})]})]})}},32829:(e,t,n)=>{n.d(t,{G:()=>r,k:()=>l});let r=e=>{try{let t=window.localStorage.getItem(e);if(!t)return null;return JSON.parse(t)}catch(e){return null}},l=(e,t)=>{try{window.localStorage.setItem(e,JSON.stringify(t))}catch(e){}}},54744:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(6029),l=n(69238),a=n(71259),s=n(62172),i=n(55729);let o=(0,i.memo)(e=>{let{title:t,errors:n}=e,{base:o,errorBox:d}=(0,s.wR)(),c=(0,i.useRef)(null);return(0,i.useEffect)(()=>{(null==n?void 0:n.length)>0&&(null==c?void 0:c.current)&&(c.current.focus({preventScroll:!0}),c.current.scrollIntoView({behavior:"smooth",block:"center"}))},[n]),(0,r.jsx)("div",{className:d.errorBlock,ref:c,role:"alert","aria-atomic":"true",tabIndex:-1,"data-sentry-component":"ErrorBox","data-sentry-source-file":"ErrorBox.tsx",children:(0,r.jsxs)("div",{className:(0,s.cn)(o.display.flex,o.justify.between,o.itemsCenter),children:[(0,r.jsxs)("div",{className:d.errorContainer,children:[(0,r.jsxs)("div",{className:d.errorHeadlineContainer,children:[(0,r.jsx)("h2",{className:d.errorHeadline,children:null!=t?t:n.length>1?"Einige Eingaben sind ung\xfcltig!":"Eingabe ist ung\xfcltig!"}),(0,r.jsx)(a.g,{icon:l.lEd,size:"2x",className:d.errorHeadlineIcon,"data-sentry-element":"FontAwesomeIcon","data-sentry-source-file":"ErrorBox.tsx"})]}),(0,r.jsx)("ul",{className:(0,s.cn)(o.listingStyle.disc,d.list),children:n.map((e,t)=>{let{message:n}=e;return(0,r.jsx)("li",{className:d.listItem,children:n},t)})})]}),(0,r.jsx)(a.g,{icon:l.lEd,size:"3x",className:d.icon,"data-sentry-element":"FontAwesomeIcon","data-sentry-source-file":"ErrorBox.tsx"})]})})},(e,t)=>{if(e.errors.length!==t.errors.length)return!1;for(let n=0;n<e.errors.length;n++)if(e.errors[n].message!==t.errors[n].message)return!1;return!0})}}]);
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.