import{l as u,b as i,C as c,bA as A}from"./lib-1.0.74-B5IEqfHg.js";import{R as f}from"./RestApi-1.0.74-5XKxNzpR.js";const b=e=>{u.debug(e);const s=A(e);return u.debug(s),{...s}},S=(e,s,a,t,o,p=!1)=>{u.debug(e,s),f(c.appUrlMeta,{dbs:e,tbl:s,waa:a},t,o,p)},R=(e,s,a,t,o,p=!1,r=!1)=>{u.debug(e,s,a);const l=b(e);l===!1?(console.error("error","Missing data source"),o(i.contactSupport)):(l.key=s,l.media=a,r&&(l.rel_tab=!0),f(l.app_id?c.appUrlAppGet:c.appUrlGet,l,n=>{u.debug(n),t(n)},o,p))},w=(e,s,a,t,o=!1,p=!1,r=!1)=>{u.debug(e,s);const l=b(e);l===!1?(console.error("error","Missing data source"),t(i.contactSupport)):(l.val=s,p&&(l.join_tab=!0),r&&(l.rel_tab=!0),f(l.app_id?c.appUrlAppInsert:c.appUrlInsert,l,a,t,o))},C=(e,s,a,t,o,p=!1,r=!1,l=!1)=>{u.debug(e,s,a);const n=b(e);n===!1?(console.error("error","Missing data source"),o(i.contactSupport)):(n.key=s,n.val=a,r&&(n.join_tab=!0),l&&(n.rel_tab=!0),f(n.app_id?c.appUrlAppUpdate:c.appUrlUpdate,n,t,o,p))},D=(e,s,a,t,o,p=!1)=>{u.debug(e,s,a);const r=b(e);r===!1?(console.error("error","Missing data source"),o(i.contactSupport)):(r.key=s,r.val=a,f(r.dbs!==void 0&&r.tbl!==void 0?c.appUrlUpdate:c.appUrlAppUpdateInline,r,t,o,p))},I=(e,s,a,t,o=!1)=>{u.debug(e,s);const p=b(e);p===!1?(console.error("error","Missing data source"),t(i.contactSupport)):(p.key=s,f(p.app_id?c.appUrlAppDelete:c.appUrlDelete,p,a,t,o))},L=(e,s,a,t,o,p,r,l,n,d={},k=!1)=>{u.debug(e,s,a,t,o,p,d);const g=b(e);if(g===!1)console.error("error","Missing data source"),n(i.contactSupport);else{g.target=s,g.col=a,g.colk=t,g.colv=o,g.cold=p,g.values=d;for(const U in r)g[U]=r[U];f(c.appUrlAppLookup,g,l,n,k)}},v=(e,s,a,t=!1)=>{u.debug(e);const o=b(e);o===!1?(console.error("error","Missing data source"),a(i.contactSupport)):f(c.appUrlAppLookupDbs,o,s,a,t)},j=(e,s,a,t,o=!1)=>{u.debug(e);const p=b(e);p===!1?(console.error("error","Missing data source"),t(i.contactSupport)):(p.dbs=s,f(c.appUrlAppLookupTbl,p,a,t,o))},G=(e,s,a,t,o,p=!1)=>{u.debug(e);const r=b(e);r===!1?(console.error("error","Missing data source"),o(i.contactSupport)):(r.dbs=s,r.tbl=a,f(c.appUrlAppLookupCls,r,t,o,p))};export{D as a,j as b,G as c,I as d,v as e,S as g,w as i,L as l,R as s,C as u};
