1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||"01a10c65-0dc9-0000-e243-88db3ea3c620";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="c3878749-483a-5c79-8d52-e30c2b417af9")}catch(e){}}();(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[86826],{12794:(e,s,t)=>{"use strict";t.d(s,{A:()=>o});var i=t(37876),a=t(63328),r=t(63191),n=t(76679);function o({methods:e,isShared:s=!1}){let{translate:t}=(0,a.A)(),{watch:d}=e;return d("extern")?void 0:(0,i.jsx)(n.Zp,{sx:{p:3},children:(0,i.jsxs)(n.az,{rowGap:2,columnGap:2,display:"grid",gridTemplateColumns:"repeat(1, 1fr)",children:[(0,i.jsx)(r.A,{testId:"RobotsCard_switchNoIndex",name:"seoSettings.noIndex",labelPlacement:"start",label:t("common:sites.fieldSeoSettingsNoIndex"),helperText:t("common:sites.fieldSeoSettingsNoIndexHelperText"),disabled:s,sx:{mx:0,mb:-1,width:"100%",justifyContent:"space-between"}}),(0,i.jsx)(r.A,{testId:"RobotsCard_switchNoFollow",name:"seoSettings.noFollow",labelPlacement:"start",label:t("common:sites.fieldSeoSettingsNoFollow"),helperText:t("common:sites.fieldSeoSettingsNoFollowHelperText"),disabled:s,sx:{mx:0,mb:-1,width:"100%",justifyContent:"space-between"}})]})})}},12940:(e,s,t)=>{"use strict";t.d(s,{I:()=>r,l:()=>a});var i,a=((i={}).BusinessLeasing="business_leasing_offer",i.FinancingOffer="financing_offer",i.Job="job",i.LandingBrand="landing_brand",i.LandingBrandModel="landing_brand_model",i.LandingBrandType="landing_brand_type",i.LandingBrandModelType="landing_brand_model_type",i.LandingBrandLocation="landing_brand_location",i.LandingBrandModelLocation="landing_brand_model_location",i.LandingBrandTypeLocation="landing_brand_type_location",i.LandingBrandModelTypeLocation="landing_brand_model_type_location",i.News="news",i.Offer="offer",i.PrivateLeasingOffer="private_leasing_offer",i.Site="site",i.SysBarrierFree="sys_barrier_free",i.SysCookies="sys_cookies",i.SysImprint="sys_imprint",i.SysMyArea="sys_my_area",i.SysMyAreaNews="sys_my_area_news",i.SysMyAreaOffers="sys_my_area_offers",i.SysPrivacy="sys_privacy",i.SysSitemapLinks="sys_sitemap_links",i.SysThankYou="sys_thank_you",i.SysWebsiteBlocked="sys_website_blocked",i.SysWebsiteError="sys_error",i.SysWebsiteMaintenance="sys_website_maintenance",i);let r=Object.values(a)},14946:(e,s,t)=>{"use strict";t.d(s,{X:()=>r});try{var i="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};i._posthogReleaseId=i._posthogReleaseId||"01a0f7f4-c2fc-0000-45f1-05b4d69a8acf";var a=(new i.Error).stack;a&&(i._posthogChunkIds=i._posthogChunkIds||{},i._posthogChunkIds[a]="f40eda4f-94ca-5b02-a527-ad8e60262fa7")}catch(e){}var r=["","^ahd-admin","^ahd-core","^ahd-fleet","^ahd-super","^ahd-test-seiten","^auth","barrierefreiheit","cookie-richtlinie","danke","datenschutz","impressum","^mein-bereich","sitemap","website-error","website-gesperrt","website-wartung"]},26082:(e,s,t)=>{"use strict";t.d(s,{A:()=>w});var i=t(37876),a=t(29911),r=t(18847),n=t.n(r),o=t(89099),d=t(14232),l=t(63328),u=t(76679),c=t(72847),h=t(36266),m=t(59134);let p=n()(()=>t.e(35415).then(t.bind(t,35948)).then(e=>e.default),{loadableGenerated:{webpack:()=>[35948]}}),b=n()(()=>t.e(40448).then(t.bind(t,90357)).then(e=>e.default),{loadableGenerated:{webpack:()=>[90357]}});function w({hasContent:e,children:s,pageProjectId:t,isShared:r}){let{replace:n}=(0,o.useRouter)(),{group:g,project:f}=(0,m.Z)(),{translate:x}=(0,l.A)(),[y,A]=(0,d.useState)(void 0);if((0,d.useEffect)(()=>{f?.id===t||r&&g?.projects?.includes(f?.id)?A(!0):t&&f?.id&&A(!1)},[f?.id,t,r,g?.projects]),(0,a.A)(y))return(0,i.jsx)(c.A,{});if(!0===y)return s;if(!1===y){if(e)return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p,{isBackend:!0,type:"bounce-in",direction:"none",sx:{textAlign:"center"},children:(0,i.jsx)(u.o5,{component:"p",variant:"h3",children:x("common:errors.err403.heading")})}),(0,i.jsx)(p,{isBackend:!0,type:"bounce-in",direction:"none",sx:{textAlign:"center"},children:(0,i.jsx)(u.o5,{sx:{color:"text.secondary"},children:x("common:errors.err403.message")})}
1),(0,i.jsx)(p,{isBackend:!0,type:"bounce-in",direction:"none",sx:{textAlign:"center"},children:(0,i.jsx)(b,{sx:{height:260,my:{xs:5,sm:10}}})})]});n(h.nB.err403)}return null}},27266:(e,s,t)=>{"use strict";t.d(s,{Gk:()=>d,Sh:()=>c,eU:()=>l,ff:()=>o,od:()=>n,w0:()=>u});var i=t(32078),a=t(23787),r=t(42299);async function n(e,s){let t=e?.single?void 0:{allCount:0,customers:[]};return await (0,i.A)("Axios","Customers","getCustomers","Abrufen der Kunden",async()=>{t=(await (0,a.Ay)({title:"Abrufen der Kunden",method:"post",url:r.B9+"/customers",data:e,headers:(0,a._b)({})}))?.data||t},{disableSuccess:!0,disableLoading:s}),t}async function o(e){let s;return await (0,i.A)("Axios","Customers","createCustomer","Erstellen des Kunden",async()=>{s=(await (0,a.Ay)({title:"Erstellen des Kunden",method:"put",url:r.B9+"/customers",data:e,headers:(0,a._b)({})}))?.data}),s}async function d(e){let s;return await (0,i.A)("Axios","Customers","updateCustomer","Bearbeiten des Kunden",async()=>{s=(await (0,a.Ay)({title:"Bearbeiten des Kunden",method:"patch",url:r.B9+"/customers",data:e,headers:(0,a._b)({})}))?.data}),s}async function l(e){let s;return await (0,i.A)("Axios","Customers","changePasswordCustomer","Bearbeiten des Kundenpasswortes",async()=>{s=(await (0,a.Ay)({title:"Bearbeiten des Kundenpasswortes",method:"post",url:r.B9+"/customers/changeCustomerPassword",data:e,headers:(0,a._b)({})}))?.data}),s}async function u(e){return await (0,i.A)("Axios","Customers","deleteCustomer","L\xf6schen des Kunden",async()=>{await (0,a.Ay)({title:"L\xf6schen des Kunden",method:"delete",url:r.B9+"/customers",data:e,headers:(0,a._b)({})})})}let c=async(e,s)=>(await (0,a.Ay)({title:"Einloggen des Kunden",method:"post",url:r.B9+a.n2,data:e,headers:(0,a._b)({customIdProject:s})}))?.data},27625:(e,s,t)=>{"use strict";t.d(s,{A:()=>i});let i=/^[A-z0-9-._~:/?#[\]@!$&'()*+,;=]+$/},38826:(e,s,t)=>{"use strict";t.d(s,{BI:()=>h,Q4:()=>d,as:()=>n,de:()=>c,rD:()=>u,sW:()=>m,yF:()=>o,zG:()=>l});var i=t(32078),a=t(23787),r=t(42299);async function n(e,s,t,n,o,d,l,u,c,h){let m={filters:e,single:!1,viewOptions:{...d,additionalAllCounts:t,cols:s,..."all"===n?{}:{...n},sortBy:o}},p={additionalAllCounts:{},allCount:0,facets:{},news:[]};return await (0,i.A)("Axios","News","getNewsList","Abrufen des News",async()=>{p=(await (0,a.Ay)({title:"Abrufen des News",method:"post",url:`${r.B9}/news`,data:m,headers:(0,a._b)({customIdProject:u,ignoreCustomer:c}),signal:l}))?.data||{additionalAllCounts:{},allCount:0,facets:{},news:[]}},{disableSuccess:!0,disableLoading:h}),p}async function o(e,s,t,n,o,d,l){let u,c={filters:{id:e},single:!0,viewOptions:{...t,cols:s}};return await (0,i.A)("Axios","News","getNewsPost","Abrufen des Beitrags",async()=>{u=(await (0,a.Ay)({title:"Abrufen des Beitrags",method:"post",url:`${r.B9}/news`,data:c,headers:(0,a._b)({customIdProject:o,ignoreCustomer:d}),signal:n}))?.data},{disableSuccess:!0,disableLoading:l}),u}async function d(e){let s;return await (0,i.A)("Axios","News","createNews","Erstellen des Beitrags",async()=>{s=(await (0,a.Ay)({title:"Erstellen des Beitrags",method:"put",url:`${r.B9}/news`,data:e,headers:(0,a._b)({})}))?.data}),s}async function l(e){let s;return await (0,i.A)("Axios","News","updateNews","Bearbeiten des Beitrags",async()=>{s=(await (0,a.Ay)({title:"Bearbeiten des Beitrags",method:"patch",url:`${r.B9}/news`,data:e,headers:(0,a._b)({})}))?.data}),s}async function u(e){return await (0,i.A)("Axios","News","deleteNews","L\xf6schen des Beitrags",async()=>{await (0,a.Ay)({title:"L\xf6schen des Beitrags",method:"delete",url:`${r.B9}/news`,data:e,headers:(0,a._b)({})})})}async function c(e){let s;return await (0,i.A)("Axios","News","duplicateNews","Duplizieren des Beitrags",async()=>{s=(await (0,a.Ay)({title:"Duplizieren des Beitrags",method:"post",url:`${r.B9}/news/duplicate`,data:e,headers:(0,a._b)({})}))?.data}),s}async function h(e){let s;return await (0,i.A)("Axios","News","lockNews","Sperren des Beitrags",async()=>{s=(await (0,a.Ay)({title:"Sperren des Beitrags",method:"post",url:`${r.B9}/news/lock`,data:e,headers:(0,a._b)({}),validateStatus:e=>e>=200&&e<300||304===e}))?.data},{disableSuccess:!0}),s}async function m(e){let s;return await (0,i.A)("Axios","News","unlockNews","Entsperren des Beitrags",async()=>{s=(await (0,a.Ay)({title:"Entsperren des Beitrags",method:"post",url:`${r.B9}/news/unlock`,data:e,headers:(0,a._b)({}),validateStatus:e=>e>=200&&e<300||304===e}))?.data},{disableSuccess:!0}),s}},55157:(e,s,t)=>{"use strict";t.d(s,{A:()=>n});var i=t(14946);try{var a="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};a._posthogReleaseId=a._posthogReleaseId||"01a0f7f4-c2fc-0000-45f1-05b4d69a8acf";var r=(new a.Error).stack;r&&(a._posthogChunkIds=a._posthogChunkIds||{},a._posthogChunkIds[r]="bde629d6-226d-572b-8830-6f31151f853b")}catch(e){}
1function n(e,s){return i.X?.some(s=>s?.startsWith("^")?e?.startsWith(s?.replace("^","")):e===s)||s?.some(s=>s?.startsWith("^")?e?.startsWith(s?.replace("^","")):e===s)||!1}},55408:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/ahd-admin/news/[id]/edit",function(){return t(79830)}])},74073:(e,s,t)=>{"use strict";function i(e){return[...new Set(e)]}t.d(s,{s:()=>i})},79830:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>y});var i=t(37876),a=t(38316),r=t(77328),n=t.n(r),o=t(89099),d=t(14232),l=t(38826),u=t(18025),c=t(63328),h=t(76679),m=t(72961),p=t(26082),b=t(59134),w=t(19847),g=t(73094),f=t(36266),x=t(82646);function y(){let{query:{id:e}}=(0,o.useRouter)(),{project:s}=(0,b.Z)(),{translate:t}=(0,c.A)(),[r,y]=(0,d.useState)(void 0),[A,v]=(0,d.useState)({disableButton:!1,path:"",showButton:!1}),{disableButton:_,path:S,showButton:N}=A,j=(0,d.useCallback)(async()=>{y(await (0,l.yF)(parseInt(e),["categories","createdAt","description","expires","extern","id","idGroup","idProject","image","lockIdUser","lockNameUser","name","nameSeo","needsNewSeo","newTab","path","previewText","private","publish","published","publishedForCustomers","publishedForMembers","seoSettings","updatedAt","visibleForGroup"],{}))},[e]);return(0,d.useEffect)(()=>{j()},[j]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n(),{children:(0,i.jsxs)("title",{children:[t("common:news.editNews")," | AHD Web"]})}),(0,i.jsx)(p.A,{hasContent:!0,pageProjectId:r?.idProject,isShared:r?.visibleForGroup,children:(0,i.jsxs)(m.default,{hasContent:!0,action:"showError",permission:`news.${a.b.enum.edit}`,children:[(0,i.jsx)(w.default,{activeBack:!0,heading:t("common:news.editNews"),links:[{name:t("common:pageHeading.root"),href:f.nB.root},{name:t("common:pageHeading.news"),href:f.nB.news.root},{name:t("common:news.editNews")}],action:N&&(0,i.jsxs)(h.$n,{"data-testid":"NewsEditPage_preview_button",disabled:_,href:(0,u.A)(S,s?.id,s?.alias,s?.settings?.nginx?.urlRelease),target:"_blank",variant:"outlined",children:[(0,i.jsx)(g.default,{icon:"eva:external-link-outline",sx:{mr:1}}),t(location.host===s?.settings?.nginx?.urlRelease?"common:actions.liveLink":"common:actions.preview")]})}),(0,i.jsx)(x.A,{isEdit:!0,currentNews:r,onReload:j,previewData:A,setPreviewData:v})]})})]})}},82646:(e,s,t)=>{"use strict";t.d(s,{A:()=>E});var i=t(37876),a=t(55157),r=t(29911),n=t(7927),o=t(96415),d=t(91337),l=t(82927),u=t(89099),c=t(14232),h=t(88992),m=t(91408),p=t(61705),b=t(27266),w=t(38826),g=t(74049),f=t(27625),x=t(18025),y=t(98591),A=t(63328),v=t(15620),_=t(76679),S=t(59134),N=t(34656),j=t(56051),B=t(12794),F=t(46203),k=t(95575),C=t(36266);function E({isEdit:e=!1,currentNews:s,onReload:t,previewData:M,setPreviewData:P}){let{project:T,user:I}=(0,S.Z)(),{translate:G}=(0,A.A)(),{replace:L,push:O}=(0,u.useRouter)(),[W,z]=(0,c.useState)([]),[$,R]=(0,c.useState)([]),[D,K]=(0,c.useState)([]),[U,q]=(0,c.useState)(!1),Y=(0,c.useMemo)(()=>!(0,r.A)(T?.idGroup),[T?.idGroup]),H=(0,c.useMemo)(()=>!(0,r.A)(s?.idProject)&&s?.idProject!==T?.id,[s?.idProject,T?.id]),X=(0,k.A)("up","md"),J=(0,c.useMemo)(()=>T?.settings?.prefixes?.[l.m.News],[T?.settings?.prefixes]),Q=(0,m.Ik)().shape({categories:(0,m.YO)(),description:(0,m.Yj)().required({fieldName:G("common:news.fieldDescription"),message:G("common:validation.required")}),expires:void 0,extern:(0,m.zM)(),id:void 0,idGroup:void 0,idProject:void 0,image:(0,m.Yj)().nullable(),name:(0,m.Yj)().required({fieldName:G("common:news.fieldName"),message:G("common:validation.required")}),nameSeo:(0,m.Yj)().required({fieldName:G("common:news.fieldNameSeo"),message:G("common:validation.required")}),needsNewSeo:(0,m.zM)(),newTab:(0,m.zM)(),path:(0,m.Yj)().test({name:"path-check",exclusive:!1,params:{},test:function(e,s){return s?.parent?.extern===!0?!(0,r.A)(e)||this.createError({message:{fieldName:G("common:news.fieldPath"),message:G("common:validation.required")}}):(0,r.A)(e)?this.createError({message:{fieldName:G("common:news.fieldPath"),message:G("common:validation.required")}}):e?.startsWith("ahd-admin")||e?.startsWith("ahd-core")||e?.startsWith("ahd-fleet")||e?.startsWith("ahd-super")?this.createError({message:{fieldName:G("common:sites.fieldPath"),message:G("common:validation.pathReserved")}}):D?.includes(e)?this.createError({message:{fieldName:G("common:news.fieldPath"),message:G("common:validation.pathAlreadyUsed")}}):(0,r.A)(e)||e?.match(f.A)?!(e?.startsWith("https://")||e?.startsWith("http://")||e?.startsWith("www.")||e?.includes("?"))||this.createError({message:{fieldName:G("common:news.fieldPath"),message:G("common:validation.pathExtern")}}):this.createError({message:{fieldName:G("common:news.fieldPath"),message:G("common:validation.pathNotUriValid")}})}}),previewText:(0,m.Yj)(),private:(0,m.zM)(),publish:(0,m.p6)().required({fieldName:G("common:news.fieldPublish"),message:G("common:validation.dateMissing")}),published:(0,m.zM)(),publishedForCustomers:(0,m.YO)().of((0,m.ai)()),publishedForMembers:void 0,seoSettings:(0,m.Ik)().shape({noFollow:(0,m.zM)(),noIndex:(0,m.zM)()}),visibleForGroup:(0,m.zM)()}),Z=(0,c.useMemo)(()=>({categories:[],description:"",expires:void 0,extern:!1,id:void 0,idGroup:void 0,idProject:T?.id,image:null,name:"",nameSeo:"",needsNewSeo:!1,newTab:!1,path:"",previewText:"",private:!1,publish:new Date,published:!1,publishedForCustomers:[],publishedForMembers:[],seoSettings:{noFollow:!1,noIndex:!1}
1,visibleForGroup:!1}),[T?.id]),V=(0,h.mN)({resolver:(0,o.t)(Q),defaultValues:Z,mode:e?"onChange":"onSubmit",reValidateMode:"onChange",shouldFocusError:!1,values:{categories:s?.categories||Z?.categories,description:s?.description||Z?.description,expires:s?.expires?new Date(s?.expires):Z?.expires,extern:s?.extern||Z?.extern,id:s?.id||Z?.id,idGroup:s?.idGroup||Z?.idGroup,idProject:s?.idProject||Z?.idProject,image:s?.image||Z?.image,name:s?.name||Z?.name,nameSeo:s?.nameSeo||Z?.nameSeo,needsNewSeo:s?.needsNewSeo||Z?.needsNewSeo,newTab:s?.newTab||Z?.newTab,path:s?.path||Z?.path,previewText:s?.previewText||Z?.previewText,private:s?.private||Z?.private,publish:s?.publish?new Date(s?.publish):Z?.publish,published:(H?s?.publishedForMembers?.includes(T?.id):s?.published)||Z?.published,publishedForCustomers:s?.publishedForCustomers||Z?.publishedForCustomers,publishedForMembers:s?.publishedForMembers||Z?.publishedForMembers,seoSettings:s?.seoSettings||Z?.seoSettings,visibleForGroup:s?.visibleForGroup||Z?.visibleForGroup}}),{formState:{dirtyFields:ee,isDirty:es},handleSubmit:et,reset:ei,trigger:ea,watch:er}=V,en=(0,c.useCallback)(()=>{(0,p.px)({type:d.b.News,showUnused:!0}).then(e=>{z(e)})},[T?.id]);(0,c.useEffect)(()=>{en()},[en]);let eo=(0,c.useCallback)(()=>{(0,b.od)({filters:{},single:!1,viewOptions:{cols:["id","name"]}}).then(e=>{R(e?.customers)})},[]);(0,c.useEffect)(()=>{eo()},[eo]);let ed=(0,c.useCallback)(async()=>{K(await (0,y.A)(T?.id,s?.path))},[T.id,s?.path]);(0,c.useEffect)(()=>{ed()},[ed]);let el=(0,c.useCallback)(async i=>{try{let a=Object.assign({},i),n=a?.visibleForGroup===!1&&!(0,r.A)(a?.publishedForMembers),o=Object.keys(ee)?.includes("published")&&a?.published===!1&&!(0,r.A)(a?.publishedForMembers)&&a?.visibleForGroup===!0;if(e){let e=Object.assign({},{id:i?.id});Object.keys(ee).map(s=>{e[s]=i[s]}),H?(i?.published&&!i?.publishedForMembers?.includes(T?.id)?e.publishedForMembers=i?.publishedForMembers?.concat(T?.id):!i?.published&&i?.publishedForMembers?.includes(T?.id)&&(e.publishedForMembers=i?.publishedForMembers?.filter(e=>e!==T?.id)),e.published=s?.published):n?e.publishedForMembers=[]:o&&(e.publishedForMembers=[],e.visibleForGroup=!1),a?.private||(0,r.A)(a?.publishedForCustomers)||(e.publishedForCustomers=[]),await (0,w.zG)(e),t(),ei()}else{let e={categories:a?.categories,description:a?.description,expires:a?.expires,extern:a?.extern,idGroup:T?.idGroup,idProject:T?.id,image:a?.image,name:a?.name,nameSeo:i?.nameSeo,needsNewSeo:!0,newTab:a?.newTab,path:a?.path,previewText:a?.previewText,private:a?.private,publish:a?.publish,published:a?.published,publishedForCustomers:a?.publishedForCustomers,publishedForMembers:a?.publishedForMembers,seoSettings:a?.seoSettings,visibleForGroup:a?.visibleForGroup},s=await (0,w.Q4)(e);if(!s)return;L(C.nB.news.edit(s.id))}}catch(e){console.error(e)}},[ee,e,H,t,ei,T?.id,T?.idGroup,s?.published,L]),eu=er("extern"),ec=er("path"),eh=er("published"),{saveButton:em,statusBadge:ep}=(0,F.A)({customSaveDelay:Object.keys(ee)?.includes("path")?6e3:void 0,testId:"NewsNewEditForm_btnCreateNews",methods:V,onSubmit:el,saveButton:e?void 0:{text:"common:news.create"}});return(0,c.useEffect)(()=>{(0,n.A)(P)||P({disableButton:es,path:ec,showButton:eh&&!eu})},[es,eu,ec,eh,P]),(0,c.useEffect)(()=>{e&&(ea("previewText"),ea("description"),ea("nameSeo"))},[ea]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(v.A,{methods:V,onSubmit:et(el),children:[H&&(0,i.jsx)(_.Fc,{severity:"info",sx:{mb:2},children:G("common:news.messageShared")}),ep,(0,i.jsxs)(_.xA,{container:!0,spacing:3,children:[(0,i.jsx)(_.xA,{size:{xs:12,md:8},children:(0,i.jsx)(j.nO,{contentId:s?.id,methods:V,testId:"NewsNewEditForm_",type:"news",isDirty:es,isEdit:e,isShared:H,isExtern:eu,showEditorLink:e&&!eu,liveUrl:s?.published?(0,x.A)(s?.path,T?.id,T?.alias,T?.settings?.nginx?.urlRelease):void 0,onOpenEditor:()=>{e&&!(0,r.A)(s?.lockIdUser)&&s?.lockIdUser!==I?.id?q(!0):O(C.nB.news.editor(s.id))},userBlocked:s?.lockNameUser})}),(0,i.jsx)(_.xA,{size:{xs:12,md:4},children:(0,i.jsxs)(_.BJ,{gap:3,children:[X&&em?.(),(0,i.jsx)(j.W7,{methods:V,isEdit:e,isShared:H,created:s?.createdAt,updated:s?.updatedAt}),!H&&Y&&(0,i.jsx)(j.mP,{methods:V}),(0,i.jsx)(j.Vd,{methods:V,options:$,isShared:H}),(0,i.jsx)(j.KT,{methods:V,type:"news",defaultPath:e||ee?.path?void 0:`${!(0,r.A)(J?.id)?`${J?.path}/`:""}${er("name")||""}`,disabled:(0,a.A)(s?.path,D),categories:W,isEdit:e,isShared:H,path:M?.path,pathPrefix:J?.path}),(0,i.jsx)(B.A,{methods:V,isShared:H}),!X&&em?.()]})})]})]}),(0,i.jsx)(N.A,{"data-testid":"NewsNewEditForm_dialogEditWhileOtherEditor",open:U,onClose:()=>q(!1),title:G("common:dialog.lockedModalHeading"),content:(0,g.A)(G("common:dialog.editLockedConfirm"),s?.lockNameUser),action:(0,i.jsx)(_.$n,{color:"warning","data-testid":"NewsNewEditForm_btnConfirmWhileOtherEditor",variant:"contained",onClick:()=>O(C.nB.news.editor(s.id)),children:G("common:actions.editor")})},"confirm_dialog_site_"+s?.id)]})}},82927:(e,s,t)=>{"use strict";t.d(s,{m:()=>a});var i,a=((i={})[i.Fahrzeugsuche=1]="Fahrzeugsuche",i[i.Jobs=2]="Jobs",i[i.News=3]="News",i[i.Offers=4]="Offers",i)},98591:(e,s,t)=>{"use strict";t.d(s,{A:()=>d});var i=t(7927),a=t(14946),r=t(30928),n=t(74073),o=t(9136);async function d(e,s){try{let t=(await (0,o.Db)({ignoreTypes:[r.fQ.Car,r.fQ.Landing],lighthouse:!1,onlyPublished:!1},e))?.data,d=t?.filter(e=>!(0,i.A)(e?.path)&&e?.path!==s&&e?.path!=="#"&&!e?.extern)?.reduce((e,s)=>{let t=[...e];return s.path.startsWith("/")?t.push(s.path.substring(1)):t.push(s.path),t},[]);return(0,n.s)([...d,...a.X])}catch(e){return console.error(e),[]}}}},e=>
1{e.O(0,[40672,26572,45606,97238,3171,60209,81589,56486,48230,91115,95367,12559,6748,32364,28424,50010,51689,88992,82499,20251,39872,82909,40864,17737,49331,76907,1256,29306,15886,53550,21962,12351,69201,90636,46593,38792],()=>e(e.s=55408)),_N_E=e.O()}]); 2//# chunkId=c3878749-483a-5c79-8d52-e30c2b417af9
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.