1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[14956],{18626:(e,t,n)=>{"use strict";n.r(t),n.d(t,{TourplannerEditor:()=>C,default:()=>E});var s=n(6029),i=n(75659),r=n.n(i),l=n(71024),o=n.n(l);n(71848),n(34760);var a=n(81163),c=n(8345),u=n(13224),x=n(4455),d=n(55729),m=n(81278),h=n(64996),p=n(11156),k=n(47546),f=n(61410),g=n(64902),b=n(63326),v=n.n(b),j=n(22755),w=n.n(j),y=n(68980),N=n.n(y),_=n(41498);let z=o()(()=>n.e(43400).then(n.t.bind(n,53995,23)).then(e=>e.CreateMap),{loadableGenerated:{webpack:()=>[53995]},ssr:!1}),C=({user:e,portal:t,enableFullscreen:n,detailUrl:i,apiUrl:r,tourId:l,element:o,page:a,plusAboLandingpageUrl:k,hasAbo:b,name:v,helpcomponent:j,hasNewAbo:w,loginUrl:y,registrationUrl:N,..._})=>{let C,E=(0,m.useRouter)(),U=(0,d.useContext)(x.VQ),T=(0,h.A)(),[D,F]=(0,d.useState)(null),L=(0,u.A)(),[G,I]=(0,c.A)([f.e]);(0,d.useEffect)(()=>{P()},[U?.user?.__current_login_token]);let P=async()=>{try{let e={rkm_auth_token:U?.user?.__current_login_token};l&&(e.id=l);let t=await T(o,null,a,e);F(t)}catch(e){console.error(e)}};if(!D)return null;let R=async e=>{if(U?.loggedIn){let t={id:(U?.user).id,system:"mps-sso"},n=await e.saveWithUser(t);E?.push(i+n).then(e=>{!0===e&&location.reload()})}else try{await e.saveWithoutUser()&&L((0,s.jsx)(B,{loginUrl:y,registrationUrl:N,closeOverlay:K,handleLinkClick:S}))}catch(e){console.error(e)}},S=()=>(K(),!1),K=e=>(e&&(e.preventDefault(),e.stopPropagation()),L(null),!0);return D.canEdit&&(C=l),(0,s.jsxs)(d.Fragment,{children:[" ",(0,s.jsx)(z,{id:C,apiUrl:r,allowGpxExport:U?.loggedIn,enableFullscreen:n,canUseFullscreen:()=>!!D.hasAbo||!!D.hasNewAbo||(I(f.e,l,(0,x.f1)()),L((0,s.jsx)(A,{closeOverlay:K,handleLinkClick:S,name:v,plusAboLandingpageUrl:k})),!1),mandatoryTags:[t],onGpxExport:()=>{g.u.push({event:"Tourentipps",action:"GPX-Download",label:"Klick",interaction:!0})},onSaveRequested:R})," ",j&&(0,s.jsxs)("div",{className:"mt-9 border-t border-solid border-skin-grey-medium pt-9 lg:col-span-2 lg:px-4",id:"help",children:[" ",(0,s.jsx)(p.X0,{data:j.text})," "]})," "]})},B=({closeOverlay:e,handleLinkClick:t,loginUrl:n,registrationUrl:i})=>(0,s.jsx)("div",{className:"fixed left-0 top-0 z-101 flex size-full justify-center overflow-auto bg-skin-black bg-opacity-80 p-4",children:(0,s.jsxs)("div",{className:"mx-auto",children:[(0,s.jsx)("div",{className:"mb-4 w-full",children:(0,s.jsx)(_.B,{src:v(),className:"mx-auto h-8 text-skin-primary"})}),(0,s.jsx)("div",{className:"mb-4 text-center font-skin-primary text-skin-white",children:"Um Touren speichern zu k\xf6nnen musst du eingeloggt sein."}),(0,s.jsx)("div",{className:"mb-4 text-center font-skin-primary text-skin-white",children:"Registriere Dich kostenlos, um diese Funktion zu nutzen"}),(0,s.jsx)("div",{className:"mb-4 text-center font-skin-primary text-skin-white",children:"Registriere Dich kostenlos, um diese Funktion zu nutzen"}),(0,s.jsxs)("div",{className:"max-w-px-360 flex flex-col mx-auto space-y-4 text-center "+r().button,children:[(0,s.jsx)(a.Button,{text:"Kostenlos registrieren",link:i,icon:"arrow",onClick:t,rel:"nofollow"}),(0,s.jsx)(a.Button,{text:"Login",link:n,icon:"arrow",onClick:t}),(0,s.jsx)(a.Button,{text:"\xdcberspringen",icon:"arrow",onClick:e})]})]})}),A=({closeOverlay:e,handleLinkClick:t,plusAboLandingpageUrl:n,name:i})=>(0,s.jsxs)("div",{className:"fixed left-0 top-0 z-101 flex size-full justify-center overflow-auto bg-skin-black bg-opacity-80 p-4",children:[(0,s.jsx)(_.B,{src:N(),className:"absolute right-4 top-4 w-5 text-white",onClick:e}),(0,s.jsxs)("div",{className:"mx-auto",children:[(0,s.jsx)("div",{className:"mb-4 w-full",children:(0,s.jsx)(_.B,{src:w(),className:"mx-auto h-px-32 text-skin-white"})}),(0,s.jsx)("div",{className:"mb-4 text-center font-skin-primary text-skin-white",children:"Plane Deine Tour in voller Bildschirmgr\xf6\xdfe f\xfcr eine bessere \xdcbersicht"}),(0,s.jsxs)("div",{className:"mb-4 text-center font-skin-primary text-skin-white",children:["Abonniere jetzt ",i," plus und erhalte freien Zugriff auf alle Inhalte von ",i," online inkl. dem E-Paper von ",i,"."]}),(0,s.jsx)("div",{className:"mb-4 text-center font-skin-primary italic text-skin-white",children:"Bitte speichere vorher Deinen Tourfortschritt, damit dieser nicht verloren geht."}),(0,s.jsxs)("div",{className:"max-w-px-360 flex flex-col mx-auto
1space-y-4 text-center "+r().button,children:[(0,s.jsx)(a.Button,{text:"Jetzt Abonnieren",link:n,icon:"arrow",onClick:t}),(0,s.jsx)(a.Button,{text:"Login als plus-Abonnent",link:(0,k.m)("/benutzer-login/"),icon:"arrow",onClick:t}),(0,s.jsx)(a.Button,{text:"Schlie\xdfen",icon:"arrow",onClick:e})]})]})]}),E=C},22755:(e,t,n)=>{e.exports=n.p+"static/img/icon-resize-map.svg"},34760:()=>{},47546:(e,t,n)=>{"use strict";function s(e){switch(e){case"/benutzer-registrierungfuerplus/":e="/community/registrierung/";break;case"/benutzer-login-fuer-plus/":case"/benutzer-login/":e="/community/login/"}return e}n.d(t,{m:()=>s})},63326:(e,t,n)=>{e.exports=n.p+"static/img/icon_favorite_full.svg"},71848:()=>{},75659:e=>{e.exports={button:"editor_button__jTa3I"}}}]);
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.