1import{s as i}from"./index-Ct8eLu1I.js";async function c(o){return!1}async function f(o){const{orgId:t,seriesName:r}=o;if(!t||!(r!=null&&r.trim()))return{ok:!1,error:"orgId and seriesName required"};try{const{data:e,error:s}=await i.functions.invoke("save-series",{body:{organization_id:t,series_name:r.trim()}});if(s)throw s;if(e!=null&&e.error)throw new Error(e.error);return{ok:!0}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function m(o){var s;const{orgId:t,event:r,seriesName:e}=o;if(!t||!(r!=null&&r.name)||!(r!=null&&r.event_date))return{ok:!1,error:"orgId, event.name, event.event_date required"};try{const{data:n,error:a}=await i.functions.invoke("save-event",{body:{organization_id:t,event_id:r.id,event_name:((s=r.mysql_event_name)==null?void 0:s.trim())||r.name,event_date:r.event_date,location:r.location??r.venue_name??null,series_name:(e??r.mysql_series_name??"").trim()||null}});if(a)throw a;if(n!=null&&n.error)throw new Error(n.error);return{ok:!0}}catch(n){return{ok:!1,error:n instanceof Error?n.message:String(n)}}}async function l(o){return{ok:!0}}async function d(o){return{ok:!0}}export{d as deleteMysqlEvent,f as ensureMysqlSeries,c as isOrgMysqlConfigured,l as propagateTemplateInMysql,m as pushEventToMysql};
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.