1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[903],{6906:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>g});var a=s(7876),i=s(4232),r=s(4407),n=s(7084),c=s(9099),l=s(2678),d=s(5780),o=s(7748),u=s(8491),h=s(5057),m=s(8494);function g(){let e=(0,c.useRouter)().query,[t,s]=(0,i.useState)(null),[g,p]=(0,i.useState)(!1),[j,x]=(0,i.useState)(!1),[b,_]=(0,i.useState)(""),[f,w]=(0,i.useState)(""),[E,S]=(0,i.useState)(!1),[v,k]=(0,i.useState)(null);if((0,m.A)(),!e.id)return null;let{isLoading:C,makeRequest:N}=(0,l.g)(`https://gscms.gelbeseiten.de/api/v2/intents/${e.id}`,{manual:!0,throwError:!0});return(0,i.useEffect)(()=>{N().then(t=>{S(!!t?.data?.addressPostalCode&&t?.data?.addressPostalCode!=="00000"),_((0,u.jj)(t?.data?.packageType)),w(t?.data?.metaProcess??""),!t?.data?.isConfirmed&&t?.data?.isClosed&&1?N(null,null,{method:"put",url:`https://gscms.gelbeseiten.de/api/v2/intents/${e.id}/confirm`,data:{id:t?.data?.id}}).then(()=>{x(!0);let e=(0,u.jj)(t?.data?.packageType);t?.data?.addressPostalCode&&(t?.data?.addressPostalCode!=="00000"&&(0,u.EV)(`${t?.data?.metaProcess}_${e}_abgeschlossen`,`SEDI_${b}`,"selbstedition"),N(`https://gscms.gelbeseiten.de/selbstedition/api/publisher/${t.data.addressPostalCode}`).then(e=>{s(e.data)}).catch(e=>{console.error(e)}))}).catch(()=>{p(!0)}):k({title:"Hinweis",text:"Ihr Eintragswunsch wurde bereits von Ihnen best\xe4tigt und wird bereits bearbeitet."})}).catch(()=>{p(!0)})},[]),(0,i.useEffect)(()=>{if(j&&E){let t=new URLSearchParams(window.location.search.replace(/&/g,"&").replace(/&/g,"&")).get("confirmation_click");""!==b&&""!==f&&(e.confirmation_click&&"true"===e.confirmation_click||t)&&((0,u.$3)(`SEDI_${b}_${f}-confirmation`,"confirmation"),(0,u.sx)(`email_${f}_click`,`SEDI_${b}`,"selbstedition"))}},[j,E,b,f]),(0,a.jsxs)(r.P,{children:[(0,a.jsx)(h.H,{title:v?.title,isOpen:!!v,onClose:()=>{k(null)},children:(0,a.jsx)("span",{children:v?.text})}),(0,a.jsx)(h.H,{title:"Fehler",isOpen:g,onClose:()=>p(!1),children:(0,a.jsx)("span",{children:"Es ist ein Fehler aufgetreten. Bitte laden Sie die Seite erneut. Die E-Mail konnte nicht best\xe4tigt werden."})}),j&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"gc-t--center gc-mbl",children:(0,a.jsx)(n._,{sources:[{srcSet:"/starteintrag/review.jpg, /starteintrag/[email protected] 2x, /starteintrag/[email protected] 3x",media:"(min-width: 996px)",type:""}],img:{src:"/starteintrag/review-mobile.jpg",srcSet:"/starteintrag/[email protected] 2x, /starteintrag/[email protected] 3x",alt:""}})}),(0,a.jsx)("h2",{className:"gc-mbl gc-t--bold",children:"Ihr Eintrag wird nun bearbeitet"}),(0,a.jsx)("div",{className:"gc-mbl",children:"Sobald Ihr Eintrag ver\xf6ffentlicht wurde, senden wir Ihnen eine Nachricht. Die Pr\xfcfung des Eintrags kann bis zu 3 Werktage dauern."})]}),C&&(0,a.jsx)(d.a,{}),!!t&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"spacer gc-mbl"}),(0,a.jsx)("h2",{className:"gc-t--bold gc-mbl",children:"Ihr Ansprechpartner"}),(0,a.jsx)(o.Ly,{...t,page:"confirmation",packageType:b})]})]})}},7084:(e,t,s)=>{"use strict";s.d(t,{_:()=>i});var a=s(7876);s(4232);let i=e=>{let{sources:t,img:s,style:i}=e;return(0,a.jsxs)("picture",{children:[t.map(e=>(0,a.jsx)("source",{srcSet:e.srcSet,media:e.media,type:e.type},e.srcSet)),(0,a.jsx)("img",{src:s.src,srcSet:s.srcSet,style:i,alt:s.alt})]})}},8354:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/confirmation",function(){return s(6906)}])},8494:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=()=>{let e=document.getElementsByTagName("head")[0],t=document.createElement("script");t.src="/js/lux_variables.js";let s=document.createElement("script");s.src="https://cdn.speedcurve.com/js/lux.js?id=4193028477",s.defer=!0,s.crossOrigin="anonymous",e.appendChild(t),e.appendChild(s)}}},e=>{e.O(0,[521,552,290,636,593,792],()=>e(e.s=8354)),_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.