PageSourceSearch

https://spindler-gruppe.de/_next/static/chunks/pages/ahd-admin/offers/[id]/edit-c7742791910dfbee.js

js spindler-gruppe.de collected 2026-10-05 00:54:49 UTC 21,448 bytes, 2 lines download raw bytes

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||"01a0fc4e-b59e-0000-8aed-e77fd946a668";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="be14bd6e-896c-5f89-8a2e-e724141daa40")}catch(e){}}();(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[85210],{12794:(e,s,t)=>{"use strict";t.d(s,{A:()=>n});var i=t(37876),r=t(63328),a=t(63191),o=t(76679);function n({methods:e,isShared:s=!1}){let{translate:t}=(0,r.A)(),{watch:d}=e;return d("extern")?void 0:(0,i.jsx)(o.Zp,{sx:{p:3},children:(0,i.jsxs)(o.az,{rowGap:2,columnGap:2,display:"grid",gridTemplateColumns:"repeat(1, 1fr)",children:[(0,i.jsx)(a.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)(a.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:()=>a,l:()=>r});var i,r=((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 a=Object.values(r)},14946:(e,s,t)=>{"use strict";t.d(s,{X:()=>a});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 r=(new i.Error).stack;r&&(i._posthogChunkIds=i._posthogChunkIds||{},i._posthogChunkIds[r]="f40eda4f-94ca-5b02-a527-ad8e60262fa7")}catch(e){}var a=["","^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"]},17310:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>y});var i=t(37876),r=t(38316),a=t(77328),o=t.n(a),n=t(89099),d=t(14232),l=t(48262),u=t(18025),c=t(63328),m=t(76679),p=t(72961),f=t(26082),h=t(59134),b=t(19847),g=t(73094),A=t(36266),w=t(42269);function y(){let{query:{id:e}}=(0,n.useRouter)(),{project:s}=(0,h.Z)(),{translate:t}=(0,c.A)(),[a,y]=(0,d.useState)(void 0),[x,v]=(0,d.useState)({disableButton:!1,path:"",showButton:!1}),{disableButton:_,path:S,showButton:j}=x,F=(0,d.useCallback)(async()=>{y(await (0,l.tP)(parseInt(e),["categories","createdAt","description","expires","extern","id","idCar","idGroup","idProject","image","lockIdUser","lockNameUser","name","nameSeo","needsNewSeo","newTab","path","previewText","private","publish","published","publishedForCustomers","publishedForMembers","seoSettings","type","updatedAt","visibleForGroup"],{}))},[e]);return(0,d.useEffect)(()=>{F()},[F]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o(),{children:(0,i.jsxs)("title",{children:[t("common:offers.editOffer")," | AHD Web"]}
1)}),(0,i.jsx)(f.A,{hasContent:!0,pageProjectId:a?.idProject,isShared:a?.visibleForGroup,children:(0,i.jsxs)(p.default,{hasContent:!0,action:"showError",permission:`offers.${r.b.enum.edit}`,children:[(0,i.jsx)(b.default,{activeBack:!0,heading:t("common:offers.editOffer"),links:[{name:t("common:pageHeading.root"),href:A.nB.root},{name:t("common:pageHeading.offers"),href:A.nB.offers.root},{name:t("common:offers.editOffer")}],action:j&&(0,i.jsxs)(m.$n,{"data-testid":"offerEditPage_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)(w.A,{isEdit:!0,currentOffer:a,onReload:F,previewData:x,setPreviewData:v})]})})]})}},26082:(e,s,t)=>{"use strict";t.d(s,{A:()=>b});var i=t(37876),r=t(29911),a=t(18847),o=t.n(a),n=t(89099),d=t(14232),l=t(63328),u=t(76679),c=t(72847),m=t(36266),p=t(59134);let f=o()(()=>t.e(35415).then(t.bind(t,35948)).then(e=>e.default),{loadableGenerated:{webpack:()=>[35948]}}),h=o()(()=>t.e(40448).then(t.bind(t,90357)).then(e=>e.default),{loadableGenerated:{webpack:()=>[90357]}});function b({hasContent:e,children:s,pageProjectId:t,isShared:a}){let{replace:o}=(0,n.useRouter)(),{group:g,project:A}=(0,p.Z)(),{translate:w}=(0,l.A)(),[y,x]=(0,d.useState)(void 0);if((0,d.useEffect)(()=>{A?.id===t||a&&g?.projects?.includes(A?.id)?x(!0):t&&A?.id&&x(!1)},[A?.id,t,a,g?.projects]),(0,r.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)(f,{isBackend:!0,type:"bounce-in",direction:"none",sx:{textAlign:"center"},children:(0,i.jsx)(u.o5,{component:"p",variant:"h3",children:w("common:errors.err403.heading")})}),(0,i.jsx)(f,{isBackend:!0,type:"bounce-in",direction:"none",sx:{textAlign:"center"},children:(0,i.jsx)(u.o5,{sx:{color:"text.secondary"},children:w("common:errors.err403.message")})}),(0,i.jsx)(f,{isBackend:!0,type:"bounce-in",direction:"none",sx:{textAlign:"center"},children:(0,i.jsx)(h,{sx:{height:260,my:{xs:5,sm:10}}})})]});o(m.nB.err403)}return null}},27266:(e,s,t)=>{"use strict";t.d(s,{Gk:()=>d,Sh:()=>c,eU:()=>l,ff:()=>n,od:()=>o,w0:()=>u});var i=t(32078),r=t(23787),a=t(42299);async function o(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,r.Ay)({title:"Abrufen der Kunden",method:"post",url:a.B9+"/customers",data:e,headers:(0,r._b)({})}))?.data||t},{disableSuccess:!0,disableLoading:s}),t}async function n(e){let s;return await (0,i.A)("Axios","Customers","createCustomer","Erstellen des Kunden",async()=>{s=(await (0,r.Ay)({title:"Erstellen des Kunden",method:"put",url:a.B9+"/customers",data:e,headers:(0,r._b)({})}))?.data}),s}async function d(e){let s;return await (0,i.A)("Axios","Customers","updateCustomer","Bearbeiten des Kunden",async()=>{s=(await (0,r.Ay)({title:"Bearbeiten des Kunden",method:"patch",url:a.B9+"/customers",data:e,headers:(0,r._b)({})}))?.data}),s}async function l(e){let s;return await (0,i.A)("Axios","Customers","changePasswordCustomer","Bearbeiten des Kundenpasswortes",async()=>{s=(await (0,r.Ay)({title:"Bearbeiten des Kundenpasswortes",method:"post",url:a.B9+"/customers/changeCustomerPassword",data:e,headers:(0,r._b)({})}))?.data}),s}async function u(e){return await (0,i.A)("Axios","Customers","deleteCustomer","L\xf6schen des Kunden",async()=>{await (0,r.Ay)({title:"L\xf6schen des Kunden",method:"delete",url:a.B9+"/customers",data:e,headers:(0,r._b)({})})})}let c=async(e,s)=>(await (0,r.Ay)({title:"Einloggen des Kunden",method:"post",url:a.B9+r.n2,data:e,headers:(0,r._b)({customIdProject:s})}))?.data},27625:(e,s,t)=>{"use strict";t.d(s,{A:()=>i});let i=/^[A-z0-9-._~:/?#[\]@!$&'()*+,;=]+$/},42269:(e,s,t)=>{"use strict";t.d(s,{A:()=>M});var i=t(37876),r=t(55157),a=t(29911),o=t(7927),n=t(96415),d=t(42390),l=t(82927),u=t(89099),c=t(14232),m=t(88992),p=t(91408),f=t(27266),h=t(48262),b=t(74049),g=t(27625),A=t(59175),w=t(18025),y=t(17703),x=t(98591),v=t(63328),_=t(15620),S=t(76679),j=t(59134),F=t(34656),C=t(560
151),k=t(12794),O=t(46203),B=t(95575),E=t(36266);function M({isEdit:e=!1,currentOffer:s,onReload:t,previewData:N,setPreviewData:P}){let{project:T,user:I}=(0,j.Z)(),{translate:G}=(0,v.A)(),{replace:L,push:W}=(0,u.useRouter)(),[z,D]=(0,c.useState)([]),[R,$]=(0,c.useState)([]),[Y,K]=(0,c.useState)(!1),U=(0,c.useMemo)(()=>!(0,a.A)(T?.idGroup),[T?.idGroup]),q=(0,c.useMemo)(()=>!(0,a.A)(s?.idProject)&&s?.idProject!==T?.id,[s?.idProject,T?.id]),H=(0,B.A)("up","md"),V=(0,c.useMemo)(()=>T?.settings?.prefixes?.[l.m.Offers],[T?.settings?.prefixes]),X=(0,p.Ik)().shape({categories:(0,p.YO)(),description:(0,p.Yj)().required({fieldName:G("common:offers.fieldDescription"),message:G("common:validation.required")}),expires:(0,p.p6)().test({name:"expires",exclusive:!1,params:{},test:function(e,s){return!(e<=s.parent.publish)||!!(0,A.A)(e)||this.createError({message:{fieldName:G("common:offers.fieldExpires"),message:(0,b.A)(G("common:validation.minDate"),(0,y.A)(s.parent.publish).format("DD.MM.YYYY HH:mm"))}})}}).nullable(),extern:(0,p.zM)(),id:void 0,idCar:void 0,idGroup:void 0,idProject:void 0,image:(0,p.Yj)().nullable(),name:(0,p.Yj)().required({fieldName:G("common:offers.fieldName"),message:G("common:validation.required")}),nameSeo:(0,p.Yj)().required({fieldName:G("common:offers.fieldNameSeo"),message:G("common:validation.required")}),needsNewSeo:(0,p.zM)(),newTab:(0,p.zM)(),path:(0,p.Yj)().test({name:"path-check",exclusive:!1,params:{},test:function(e,s){return s?.parent?.extern===!0?!(0,a.A)(e)||this.createError({message:{fieldName:G("common:offers.fieldPath"),message:G("common:validation.required")}}):(0,a.A)(e)?this.createError({message:{fieldName:G("common:offers.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")}}):R?.includes(e)?this.createError({message:{fieldName:G("common:offers.fieldPath"),message:G("common:validation.pathAlreadyUsed")}}):(0,a.A)(e)||e?.match(g.A)?!(e?.startsWith("https://")||e?.startsWith("http://")||e?.startsWith("www.")||e?.includes("?"))||this.createError({message:{fieldName:G("common:offers.fieldPath"),message:G("common:validation.pathExtern")}}):this.createError({message:{fieldName:G("common:offers.fieldPath"),message:G("common:validation.pathNotUriValid")}})}}),previewText:(0,p.Yj)(),private:(0,p.zM)(),publish:(0,p.p6)().required({fieldName:G("common:offers.fieldPublish"),message:G("common:validation.dateMissing")}),published:(0,p.zM)(),publishedForCustomers:(0,p.YO)().of((0,p.ai)()),publishedForMembers:(0,p.YO)().of((0,p.ai)()),seoSettings:(0,p.Ik)().shape({noFollow:(0,p.zM)(),noIndex:(0,p.zM)()}),type:void 0,visibleForGroup:(0,p.zM)()}),J=(0,c.useMemo)(()=>({categories:[],description:"",expires:void 0,extern:!1,id:void 0,idCar: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},type:d.V.Manual,visibleForGroup:!1}),[T?.id]),Z=(0,m.mN)({resolver:(0,n.t)(X),defaultValues:J,mode:e?"onChange":"onSubmit",reValidateMode:"onChange",shouldFocusError:!1,values:{categories:s?.categories||J?.categories,description:s?.description||J?.description,expires:s?.expires?new Date(s?.expires):J?.expires,extern:s?.extern||J?.extern,id:s?.id||J?.id,idCar:s?.idCar||J?.idCar,idGroup:s?.idGroup||J?.idGroup,idProject:s?.idProject||J?.idProject,image:s?.image||J?.image,name:s?.name||J?.name,nameSeo:s?.nameSeo||J?.nameSeo,needsNewSeo:s?.needsNewSeo||J?.needsNewSeo,newTab:s?.newTab||J?.newTab,path:s?.path||J?.path,previewText:s?.previewText||J?.previewText,private:s?.private||J?.private,publish:s?.publish?new Date(s?.publish):J?.publish,published:(q?s?.publishedForMembers?.includes(T?.id):s?.published)||J?.published,publishedForCustomers:s?.publishedForCustomers||J?.publishedForCustomers,publishedForMembers:s?.publishedForMembers||J?.publishedForMembers,seoSettings:s?.seoSettings||J?.seoSettings,type:s?.type||J?.type,visibleForGroup:s?.visibleForGroup||J?.visibleForGroup}}),{formState:{dirtyFields:Q,isDirty:ee},handleSubmit:es,reset:et,trigger:ei,watch:er}=Z,ea=(0,c.useCallback)(()=>{(0,f.od)({filters:{},single:!1,viewOptions:{cols:["id","name"]}}).then(e=>{D(e?.customers)})},[]);(0,c.useEffect)(()=>{ea()},[ea]);let eo=(0,c.useCallback)(async()=>{$(await (0,x.A)(T?.id,s?.path))},[T.id,s?.path]);(0,c.useEffect)(()=>{eo()},[eo]);let en=(0,c.useCallback)(async i=>{try{let r=Object.assign({},i),o=r?.visibleForGroup===!1&&!(0,a.A)(r?.publishedForMembers),n=Object.keys(Q)?.includes("published")&&r?.published===!1&&!(0,a.A)(r?.publishedForMembers)&&r?.visibleForGroup===!0;if(e){let e=Object.assign({},{id:i?.id});Object.keys(Q).map(s=>{e[s]=i[s]}),q?(i?.published&&!i?.publishedForMembers?.includes(T?.id)?e.publishedForMembers=i?.publishedForMembers?.concat(T?.id):!i?.published&&i?.publishedForMembers?.includes(T?.id)&&
1(e.publishedForMembers=i?.publishedForMembers?.filter(e=>e!==T?.id)),e.published=s?.published):o?e.publishedForMembers=[]:n&&(e.visibleForGroup=!1,e.publishedForMembers=[]),r?.private||(0,a.A)(r?.publishedForCustomers)||(e.publishedForCustomers=[]),!(0,a.A)(e?.published)&&(0,a.A)(i?.publish)&&(e.publish=new Date),await (0,h.Gz)(e),t(),et()}else{let e={categories:r?.categories,costRate:null,description:r?.description,expires:r?.expires,extern:r?.extern,idCar:r?.idCar,idGroup:T?.idGroup,idProject:T?.id,image:r?.image,name:r?.name,nameSeo:i?.nameSeo,needsNewSeo:!0,newTab:r?.newTab,orderNumber:null,path:r?.path,previewText:r?.previewText,private:r?.private,publish:r?.published?r?.publish??new Date:r?.publish,published:r?.published,publishedForCustomers:r?.publishedForCustomers,publishedForMembers:r?.publishedForMembers,seoSettings:r?.seoSettings,type:0,visibleForGroup:r?.visibleForGroup},s=await (0,h.ts)(e);if(!s)return;L(E.nB.offers.edit(s.id))}}catch(e){console.error(e)}},[Q,e,q,t,et,T?.id,T?.idGroup,s?.published,L]),ed=er("extern"),el=er("path"),eu=er("published"),ec=er("expires"),{saveButton:em,statusBadge:ep}=(0,O.A)({customSaveDelay:Object.keys(Q)?.includes("path")?6e3:void 0,testId:"OfferNewEditForm_btnCreateOffer",methods:Z,onSubmit:en,saveButton:e?void 0:{text:"common:offers.create"}});return(0,c.useEffect)(()=>{if(!(0,o.A)(P)){let e=(0,o.A)(ec)?void 0:(0,y.A)(ec);P({disableButton:ee,path:el,showButton:eu&&((0,o.A)(e)||(0,y.A)().isBefore(e))})}},[ec,ee,el,eu,P]),(0,c.useEffect)(()=>{e&&(ei("previewText"),ei("description"),ei("nameSeo"))},[ei]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(_.A,{methods:Z,onSubmit:es(en),children:[q&&(0,i.jsx)(S.Fc,{severity:"info",sx:{mb:2},children:G("common:offers.messageShared")}),ep,(0,i.jsxs)(S.xA,{container:!0,spacing:3,children:[(0,i.jsx)(S.xA,{size:{xs:12,md:8},children:(0,i.jsx)(C.nO,{contentId:s?.id,methods:Z,testId:"OfferNewEditForm_",type:"offers",isDirty:ee,isEdit:e,isType2:s?.type!==d.V.Manual&&!(0,a.A)(s?.type),isShared:q,isExtern:ed,showEditorLink:e&&!ed,liveUrl:s?.published?(0,w.A)(s?.path,T?.id,T?.alias,T?.settings?.nginx?.urlRelease):void 0,onOpenEditor:()=>{e&&!(0,a.A)(s?.lockIdUser)&&s?.lockIdUser!==I?.id?K(!0):W(E.nB.offers.editor(s?.id))},userBlocked:s?.lockNameUser})}),(0,i.jsx)(S.xA,{size:{xs:12,md:4},children:(0,i.jsxs)(S.BJ,{gap:3,children:[H&&em?.(),(0,i.jsx)(C.W7,{methods:Z,isEdit:e,isRange:!0,isShared:q,created:s?.createdAt,updated:s?.updatedAt}),!q&&U&&(0,i.jsx)(C.mP,{methods:Z}),(0,i.jsx)(C.Vd,{methods:Z,options:z,isShared:q}),(0,i.jsx)(C.KT,{methods:Z,type:"offers",defaultPath:e||Q?.path?void 0:`${!(0,a.A)(V?.id)?`${V?.path}/`:""}${er("name")||""}`,disabled:(0,r.A)(s?.path,R),isShared:q,isEdit:e,path:N?.path,pathPrefix:V?.path}),(0,i.jsx)(k.A,{methods:Z,isShared:q}),!H&&em?.()]})})]})]}),(0,i.jsx)(F.A,{"data-testid":"OfferNewEditForm_dialogEditWhileOtherEditor",id:"OfferNewEditForm_dialogEditWhileOtherEditor",open:Y,onClose:()=>K(!1),title:G("common:dialog.lockedModalHeading"),content:(0,b.A)(G("common:dialog.editLockedConfirm"),s?.lockNameUser),action:(0,i.jsx)(S.$n,{color:"warning","data-testid":"OfferNewEditForm_btnConfirmWhileOtherEditor",variant:"contained",onClick:()=>W(E.nB.offers.editor(s?.id)),children:G("common:actions.editor")})},"confirm_dialog_site_"+s?.id)]})}},42390:(e,s,t)=>{"use strict";t.d(s,{V:()=>r});var i,r=((i={})[i.Manual=0]="Manual",i[i.AutomaticFinancing=3]="AutomaticFinancing",i[i.AutomaticPrivateLeasing=4]="AutomaticPrivateLeasing",i[i.AutomaticBusinessLeasing=5]="AutomaticBusinessLeasing",i)},48262:(e,s,t)=>{"use strict";t.d(s,{D_:()=>o,Gz:()=>l,Un:()=>m,_i:()=>u,lA:()=>p,s1:()=>c,tP:()=>n,ts:()=>d});var i=t(32078),r=t(23787),a=t(42299);async function o(e,s,t,o,n,d,l,u,c,m){let p={filters:e,single:!1,viewOptions:{...d,additionalAllCounts:t,cols:s,..."all"===o?{}:{...o},sortBy:n}},f={additionalAllCounts:{},allCount:0,facets:{},offers:[]};return await (0,i.A)("Axios","Offers","getOfferList","Abrufen des Offers",async()=>{f=(await (0,r.Ay)({title:"Abrufen des Offers",method:"post",url:`${a.B9}/offers`,data:p,headers:(0,r._b)({customIdProject:u,ignoreCustomer:c}),signal:l}))?.data||{additionalAllCounts:{},allCount:0,facets:{},offers:[]}},{disableSuccess:!0,disableLoading:m}),f}async function n(e,s,t,o,n,d,l){let u,c={filters:{id:e},single:!0,viewOptions:{...t,cols:s}};return await (0,i.A)("Axios","Offers","getOffer","Abrufen des Angebots",async()=>{u=(await (0,r.Ay)({title:"Abrufen des Angebots",method:"post",url:`${a.B9}/offers`,data:c,headers:(0,r._b)({customIdProject:n,ignoreCustomer:d}),signal:o}))?.data},{disableSuccess:!0,disableLoading:l}),u}async function d(e){let s;return await (0,i.A)("Axios","Offers","createOffer","Erstellen des Angebots",async()=>{s=(await (0,r.Ay)({title:"Erstellen des Angebots",method:"put",url:`${a.B9}/offers`,data:e,headers:(0,r._b)({})}))?.data}),s}async function l(e){let s;return await (0,i.A)("Axios","Offers","updateOffer","Bearbeiten des Angebots",async()=>{s=(await (0,r.Ay)({title:"Bearbeiten des Angebots",method:"patch",url:`${a.B9}/offers`,data:e,headers:(0,r._b)({})}))?.data}),s}async function u(e){return await (0,i.A)("Axios","Offers","deleteOffer","L\xf6schen des Angebots",async()=>{await (0,r.Ay)({title:"L\xf6schen des Angebots",method:"delete",url:`${a.B9}/offers`,data:e,headers:(0,r._b)({})})})}async function c(e){let s;return await (0,i.A)("Axios","Offers","duplicateOffer","Duplizieren des Angebots",async()=>{s=(await (0,r.Ay)({title:"Duplizieren des Angebots",method:"post",url:`${a.B9}/offers/duplicate`,data:e,headers:(0,r._b)({})}))?.data}),s}async function m(e){let s;return await (0,i.A)("Axios","Offers","lockOffer","Sperren des Angebots",async()=>{s=(await (0,r.Ay)({title:"Sperren des Angebots",method:"post",url:`${a.B9}/offers/lock`,data:e,headers:(0,r._b)({}),validateStatus:e=>e>=200&&e<300||304===e}))?.data},{disableSuccess:!0}),s}async function p(e){let s;return await (0,i.A)("Axios","Offers","unlockOffer","Entsperren des Angebots",async()=>{s=(await (0,r.Ay)({title:"Entsperren des Angebots",method:"post",url:`${a.B9}/offers/unlock`,data:e,headers:(0,r._b)({}),validateStatus:e=>e>=200&&e<300||304===e}))?.data},{disableSuccess:!0}),s}},55157:(e,s,t)=>{"use strict";t.d(s,{A:()=>o});var i=t(14946);try{var r="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};r._posthogReleaseId=r._posthogReleaseId||"01a0f7f4-c2fc-0000-45f1-05b4d69a8acf";var a=(new r.Error).stack;a&&(r._posthogChunkIds=r._posthogChunkIds||{},r._posthogChunkIds[a]="bde629d6-226d-572b-8830-6f31151f853b")}catch(e){}function o(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}},59e3:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/ahd-admin/offers/[id]/edit",function(){return t(17310)}])},59175:(e,s,t)=>{"use strict";function i(e){return null===e||"null"===e}t.d(s,{A:()=>i})},74073:(e,s,t)=>{"use strict";function i(e){return[...new Set(e)]}t.d(s,{s:()=>i})},82927:(e,s,t)=>{"use strict";t.d(s,{m:()=>r});var i,r=((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),r=t(14946),a=t(30928),o=t(74073),n=t(9136);async function d(e,s){try{let t=(await (0,n.Db)({ignoreTypes:[a.fQ.Car,a.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,o.s)([...d,...r.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=59e3)),_N_E=e.O()}]);
2//# chunkId=be14bd6e-896c-5f89-8a2e-e724141daa40

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.