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