import{q as n,a as d}from"./index-CMWG4mbA.js";const r=t=>({url:r.url(t),method:"get"});r.definition={methods:["get","head"],url:"/administration/whatsapp-settings"};r.url=t=>r.definition.url+n(t);r.get=t=>({url:r.url(t),method:"get"});r.head=t=>({url:r.url(t),method:"head"});const s=t=>({action:r.url(t),method:"get"});s.get=t=>({action:r.url(t),method:"get"});s.head=t=>({action:r.url({[t?.mergeQuery?"mergeQuery":"query"]:{_method:"HEAD",...t?.query??t?.mergeQuery??{}}}),method:"get"});r.form=s;const i=t=>({url:i.url(t),method:"post"});i.definition={methods:["post"],url:"/administration/whatsapp-settings"};i.url=t=>i.definition.url+n(t);i.post=t=>({url:i.url(t),method:"post"});const m=t=>({action:i.url(t),method:"post"});m.post=t=>({action:i.url(t),method:"post"});i.form=m;const o=(t,e)=>({url:o.url(t,e),method:"put"});o.definition={methods:["put"],url:"/administration/whatsapp-settings/{whatsAppSettings}"};o.url=(t,e)=>{(typeof t=="string"||typeof t=="number")&&(t={whatsAppSettings:t}),typeof t=="object"&&!Array.isArray(t)&&"id"in t&&(t={whatsAppSettings:t.id}),Array.isArray(t)&&(t={whatsAppSettings:t[0]}),t=d(t);const p={whatsAppSettings:typeof t.whatsAppSettings=="object"?t.whatsAppSettings.id:t.whatsAppSettings};return o.definition.url.replace("{whatsAppSettings}",p.whatsAppSettings.toString()).replace(/\/+$/,"")+n(e)};o.put=(t,e)=>({url:o.url(t,e),method:"put"});const h=(t,e)=>({action:o.url(t,{[e?.mergeQuery?"mergeQuery":"query"]:{_method:"PUT",...e?.query??e?.mergeQuery??{}}}),method:"post"});h.put=(t,e)=>({action:o.url(t,{[e?.mergeQuery?"mergeQuery":"query"]:{_method:"PUT",...e?.query??e?.mergeQuery??{}}}),method:"post"});o.form=h;const u=(t,e)=>({url:u.url(t,e),method:"delete"});u.definition={methods:["delete"],url:"/administration/whatsapp-settings/{whatsAppSettings}"};u.url=(t,e)=>{(typeof t=="string"||typeof t=="number")&&(t={whatsAppSettings:t}),typeof t=="object"&&!Array.isArray(t)&&"id"in t&&(t={whatsAppSettings:t.id}),Array.isArray(t)&&(t={whatsAppSettings:t[0]}),t=d(t);const p={whatsAppSettings:typeof t.whatsAppSettings=="object"?t.whatsAppSettings.id:t.whatsAppSettings};return u.definition.url.replace("{whatsAppSettings}",p.whatsAppSettings.toString()).replace(/\/+$/,"")+n(e)};u.delete=(t,e)=>({url:u.url(t,e),method:"delete"});const l=(t,e)=>({action:u.url(t,{[e?.mergeQuery?"mergeQuery":"query"]:{_method:"DELETE",...e?.query??e?.mergeQuery??{}}}),method:"post"});l.delete=(t,e)=>({action:u.url(t,{[e?.mergeQuery?"mergeQuery":"query"]:{_method:"DELETE",...e?.query??e?.mergeQuery??{}}}),method:"post"});u.form=l;const y={index:Object.assign(r,r),store:Object.assign(i,i),update:Object.assign(o,o),destroy:Object.assign(u,u)};export{y as w};
