PageSourceSearch

https://tosot.ai/assets/sms-templates-BdORjcs5.js

js tosot.ai collected 2026-10-05 13:09:27 UTC 2,916 bytes, 1 lines download raw bytes

1import{j as e}from"./index-CLsq8RhH.js";const i=["public_callback_otp","public_warranty_otp","customer_join_link","tech_link","direct_inbound_prefix","callback_heads_up","callback_tech_notification","callback_scheduled_request_received","callback_scheduled_customer_accepted","callback_scheduled_customer_not_accepted","callback_scheduled_customer_reminder","callback_scheduled_tech_reminder","callback_scheduled_preferred_tech_request","callback_scheduled_unclaimed","callback_urgency_onsite","callback_urgency_urgent","callback_urgency_normal","inbound_stop_reply","inbound_help_reply"],n=i.map(s=>({id:`template-${s}`,key:"templates",label:s,type:"text",section:"Templates",gridSpan:2,renderValue:(a,c)=>{var r;const t=(r=a.templates)==null?void 0:r[s];return t?e.jsxs("div",{className:"rounded border border-gray-200 p-4",children:[e.jsxs("div",{className:"mb-3 flex flex-wrap items-center justify-between gap-2",children:[e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold",children:t.label}),e.jsx("div",{className:"text-xs uppercase tracking-wide text-gray-500",children:t.key})]}),e.jsx("div",{className:"rounded-full bg-slate-100 px-3 py-1 text-xs font-semibold text-slate-700",children:"Live template"})]}),e.jsx("p",{className:"text-sm text-gray-600",children:t.description}),e.jsx("div",{className:"mt-2 flex flex-wrap gap-2 text-xs text-gray-500",children:t.placeholders.map(l=>e.jsx("span",{className:"rounded bg-slate-100 px-2 py-1 font-mono",children:l},l))}),e.jsxs("div",{className:"mt-3 grid gap-4 md:grid-cols-2",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx("label",{className:"text-xs font-semibold uppercase text-gray-500",children:"English (EN)"}),e.jsx("textarea",{value:t.texts.en,onChange:l=>c({...a.templates,[t.key]:{...t,texts:{...t.texts,en:l.target.value}}}),className:"mt-1 min-h-[140px] w-full rounded border border-gray-200 bg-white px-3 py-2 text-sm leading-relaxed text-gray-900 outline-none focus:border-blue-500"})]}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("label",{className:"text-xs font-semibold uppercase text-gray-500",children:"Chinese (ZH)"}),e.jsx("textarea",{value:t.texts.zh,onChange:l=>c({...a.templates,[t.key]:{...t,texts:{...t.texts,zh:l.target.value}}}),className:"mt-1 min-h-[140px] w-full rounded border border-gray-200 bg-white px-3 py-2 text-sm leading-relaxed text-gray-900 outline-none focus:border-blue-500"})]})]})]}):null}})),m={name:"sms-config",endpoint:"/api/admin/r/sms-config",idKey:"templates",title:"Settings · SMS Templates",singleton:!0,titleOf:()=>"Settings · SMS Templates",routes:{list:"/admin/settings/sms",detail:"/admin/settings/sms"},form:{fields:n,editSubtitle:"Edit the live SMS texts used by the customer join link flow and the technician pickup link flow.",beforeSubmit:s=>({templates:s.templates})},permissions:{canCreate:()=>!1,canEdit:s=>!0}};export{m as smsTemplatesDescriptor};

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.