1import{j as b}from"./index-de35e332.js";import"./index-e1051c21.js";import{a as O}from"./index-fabe74d7.js";import{C as S}from"./CustomFormBackend-22042815.js";import{d as C}from"./dayjs.min-268b65cd.js";import"./_commonjsHelpers-23102255.js";import"./axios-8f19e258.js";import"./formik.esm-f321587a.js";import"./hoist-non-react-statics.cjs-3a2ffffa.js";import"./UpdateOrderBackend-0db9a226.js";import"./preload-helper-473bca6c.js";import"./react-select.esm-53ab0089.js";import"./objectWithoutPropertiesLoose-bff13baa.js";import"./index-dd1efaef.js";import"./loadable.esm-9d70c066.js";import"./assertThisInitialized-081f9914.js";import"./inheritsLoose-cf4b156c.js";import"./index-7338b9ad.js";import"./index-ccd8a374.js";import"./warning-0d07f860.js";import"./index-c7c79bce.js";import"./Calculator-24b439a2.js";import"./array-9964d6c8.js";import"./UploadImages-3ae2724b.js";import"./react-lifecycles-compat.es-0cc89400.js";import"./ReactToastify-28e70816.js";import"./GooglePlaces-c0e85ed2.js";import"./dayjs-2870b59b.js";const Z=()=>b(S,{initialData:null,submit:async function({user:i,installers:a,uuid:m,sendNotification:s,images_location:o,status:n,state:e,services:d,total:l,date:u,notes:c,installer_notes:f,address:y,installer:j,images:p}){try{const t=new FormData;if(t.delete("images[]"),t.append("notify",Number(s)),t.delete("installers"),t.append("uuid",m),t.delete("images_location[]"),t.append("status",n.value),t.append("user_id",i.value),t.append("details",JSON.stringify({services:d,state:e})),t.append("total",l),t.append("date",C(u).toJSON()),t.append("installer_notes",f),t.append("notes",c),t.append("address",y),t.append("state",e),a.length>0){const r=a.map(g=>g.value);t.append("installers",JSON.stringify(r))}p&&Array.from(p).forEach(r=>{t.append("images[]",r)}),o&&Array.from(o).forEach(r=>{t.append("images_location[]",r)});const{data:h}=await O.post("/admin/dashboard/orders/custom/create",t);return{success:h.ok}}catch(t){return console.log(t),{success:!1}}}});
1export{Z as default};
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.