//#region node_modules/.nitro/vite/services/ssr/assets/sms.server-LAZmyyGn.js
function buildConfirmationSms(opts) {
	return `Švonja Beauty: Vaš termin za ${opts.service} je zakazan za ${opts.date} u ${opts.time}. Adresa: Gajeva 14, Novi Sad. Vidimo se!`;
}
function buildReminderSms(opts) {
	return `Podsetnik: Danas u ${opts.time} imate zakazan termin u Švonja Beauty za ${opts.service}. Adresa: Gajeva 14, Novi Sad.`;
}
async function queueSms(admin, payload) {
	await admin.from("sms_logs").insert({
		appointment_id: payload.appointmentId,
		type: payload.type,
		recipient: payload.recipient,
		body: payload.body,
		status: "pending",
		send_after: payload.sendAfter ?? (/* @__PURE__ */ new Date()).toISOString()
	});
}
//#endregion
export { buildConfirmationSms, buildReminderSms, queueSms };
