{"version":3,"file":"validate.js","names":[],"sources":["esm/platform/quick-actions/validate.js"],"sourcesContent":["function assertQuickActionItems(value) {\n  if (!Array.isArray(value)) {\n    throw new TypeError(\"QuickActions.setItems: items must be an array\");\n  }\n  const seen = /* @__PURE__ */ new Set();\n  for (const item of value) {\n    if (!item || typeof item !== \"object\" || typeof item.id !== \"string\" || !item.id.trim() || typeof item.title !== \"string\" || !item.title.trim() || item.subtitle !== void 0 && typeof item.subtitle !== \"string\" || seen.has(item.id)) {\n      throw new TypeError(\"QuickActions.setItems: items require unique non-empty id and title with optional string subtitle\");\n    }\n    seen.add(item.id);\n  }\n}\nfunction assertQuickActionListener(value) {\n  if (typeof value !== \"function\") {\n    throw new TypeError(\"QuickActions.addListener: listener must be a function\");\n  }\n}\nexport {\n  assertQuickActionItems,\n  assertQuickActionListener\n};\n//# sourceMappingURL=validate.js.map\n"],"mappings":";AAAA,SAAS,uBAAuB,OAAO;CACrC,IAAI,CAAC,MAAM,QAAQ,KAAK,GAAG;EACzB,MAAM,IAAI,UAAU,+CAA+C;CACrE;CACA,MAAM,uBAAuB,IAAI,IAAI;CACrC,KAAK,MAAM,QAAQ,OAAO;EACxB,IAAI,CAAC,QAAQ,OAAO,SAAS,YAAY,OAAO,KAAK,OAAO,YAAY,CAAC,KAAK,GAAG,KAAK,KAAK,OAAO,KAAK,UAAU,YAAY,CAAC,KAAK,MAAM,KAAK,KAAK,KAAK,aAAa,KAAK,KAAK,OAAO,KAAK,aAAa,YAAY,KAAK,IAAI,KAAK,EAAE,GAAG;GACrO,MAAM,IAAI,UAAU,kGAAkG;EACxH;EACA,KAAK,IAAI,KAAK,EAAE;CAClB;AACF;AACA,SAAS,0BAA0B,OAAO;CACxC,IAAI,OAAO,UAAU,YAAY;EAC/B,MAAM,IAAI,UAAU,uDAAuD;CAC7E;AACF"}