PageSourceSearch

https://www.xn--hofldeli-3za.ch/assets/new-DvIwE8M4.js

js xn--hofldeli-3za.ch collected 2026-10-04 16:18:55 UTC 2,308 bytes, 1 lines download raw bytes

1import{g as o,f4 as a,j as t,t as n,b as m}from"./main-BmEzoXqE.js";import{u as l}from"./useMutation-C6p6YFcz.js";import{M as p}from"./MarketplaceListingForm-LP9LIYQd.js";import"./marketplace-kYK5QtNv.js";import"./index-DpqT4S3w.js";import"./textfield-_Qd4Gqsa.js";import"./useFormValidation-UFS4az0r.js";import"./Input-dzbek331.js";import"./useField-DDH_LnHA.js";import"./index-CfEsUiTY.js";import"./index-Ce_vNDXb.js";import"./index-JHEZYZim.js";import"./index-DsKQ7965.js";import"./field-slots-gate-BTpOfq4I.js";import"./DragAndDrop-CofTtshR.js";import"./useListState-BDrKZjP7.js";import"./intlStrings-BTHtKwgC.js";import"./index-DVwQRLwV.js";import"./Checkbox-CTJptlMg.js";import"./useToggle-rQrfjQI7.js";function P(){const i=o(),{user:s}=a.useRouteContext(),r=l({mutationFn:e=>m("/api/dashboard/marketplace/listings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),onSuccess:e=>{n.success("Entwurf erstellt."),i({to:"/dashboard/inserate/$listingId",params:{listingId:String(e.id)}})},onError:e=>n.danger(e instanceof Error?e.message:"Inserat konnte nicht erstellt werden.")});return t.jsxDEV("div",{className:"space-y-6",children:[t.jsxDEV("div",{children:[t.jsxDEV("h1",{className:"text-2xl font-bold sm:text-3xl",children:"Neues Inserat"},void 0,!1,{fileName:"/workspace/frontend/src/routes/dashboard/inserate/new.tsx?tsr-split=component",lineNumber:34,columnNumber:9},this),t.jsxDEV("p",{className:"mt-1 text-default-500",children:"Speichern Sie zuerst die Angaben. Danach können Sie Bilder hinzufügen und das Inserat einreichen."},void 0,!1,{fileName:"/workspace/frontend/src/routes/dashboard/inserate/new.tsx?tsr-split=component",lineNumber:35,columnNumber:9},this)]},void 0,!0,{fileName:"/workspace/frontend/src/routes/dashboard/inserate/new.tsx?tsr-split=component",lineNumber:33,columnNumber:7},this),t.jsxDEV(p,{defaultEmail:s?.email??"",defaultName:s?.email?.split("@")[0]??"",submitLabel:"Entwurf erstellen",isPending:r.isPending,onSubmit:e=>r.mutate(e)},void 0,!1,{fileName:"/workspace/frontend/src/routes/dashboard/inserate/new.tsx?tsr-split=component",lineNumber:40,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/frontend/src/routes/dashboard/inserate/new.tsx?tsr-split=component",lineNumber:32,columnNumber:10},this)}export{P as component};

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.