1import{c as _,b as c,o as d,l,L as u,q as m}from"./index-C6eInN-z.js";const f=u.SERVICES;function g(a,n,s){const r=_(c,"organisations",a,"service_templates");return d(m(r),t=>{const o=t.docs.map(i=>{const e=i.data();return{id:i.id,org_id:a,name:e.name??"Service",day_of_week:e.day_of_week??0,time_local:e.time_local??"09:00",duration_minutes:e.duration_minutes??60,timezone:e.timezone??"America/Chicago",default_team_ids:e.default_team_ids??[],default_itinerary:e.default_itinerary??[],default_itinerary_template_id:e.default_itinerary_template_id??null,active:e.active??!0,created_at:e.created_at,owner:e.owner??"",is_default:e.is_default??!1,scheduled_change:e.scheduled_change,starts_on:e.starts_on,ends_on:e.ends_on}});n(o)},t=>{l.error(f,"[serviceTemplates] subscription error",t),s&&s(t)})}export{g as subscribeToServiceTemplates};
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.