var __defProp = Object.defineProperty;
var __typeError = (msg) => {
  throw TypeError(msg);
};
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);

// src/actions/schema.ts
import { z } from "zod";
var HighlightStyleZ = z.object({
  color: z.string().optional(),
  scrimOpacity: z.number().min(0).max(1).optional(),
  paddingPx: z.number().optional(),
  radiusPx: z.number().optional()
}).strict();
var BadgePositionZ = z.enum(["top-left", "top-right", "bottom-left", "bottom-right"]);
var PlacementZ = z.enum([
  "top",
  "top-start",
  "top-end",
  "bottom",
  "bottom-start",
  "bottom-end",
  "left",
  "left-start",
  "left-end",
  "right",
  "right-start",
  "right-end"
]);
var CtaButtonZ = z.object({
  label: z.string(),
  actionId: z.string(),
  primary: z.boolean().optional()
}).strict();
var TooltipContentZ = z.object({
  title: z.string().optional(),
  body: z.string(),
  ctaButtons: z.array(CtaButtonZ).optional()
}).strict();
var ModalContentZ = z.object({
  title: z.string().optional(),
  body: z.string()
}).strict();
var InsertPositionZ = z.enum(["before", "after", "prepend", "append", "replace"]);
var TooltipTriggerZ = z.enum(["immediate", "hover", "click"]);
var WidgetConfigZ = z.object({
  widgetId: z.string(),
  props: z.record(z.unknown()).optional(),
  priority: z.number().optional()
}).strict();
var TourStepForSchemaZ = z.object({
  id: z.string(),
  action: z.any(),
  route: z.string().optional(),
  onAction: z.record(z.string()).optional()
}).strict();
var ScrollBehaviorZ = z.enum(["auto", "smooth", "instant"]);
var ScrollLogicalPositionZ = z.enum(["start", "center", "end", "nearest"]);
var SetTextZ = z.object({
  kind: z.literal("content:setText"),
  anchorId: z.string(),
  text: z.string(),
  label: z.string().optional()
}).strict();
var SetAttrZ = z.object({
  kind: z.literal("content:setAttr"),
  anchorId: z.string(),
  attr: z.string(),
  value: z.string(),
  label: z.string().optional()
}).strict();
var AddClassZ = z.object({
  kind: z.literal("content:addClass"),
  anchorId: z.string(),
  className: z.string(),
  label: z.string().optional()
}).strict();
var RemoveClassZ = z.object({
  kind: z.literal("content:removeClass"),
  anchorId: z.string(),
  className: z.string(),
  label: z.string().optional()
}).strict();
var SetStyleZ = z.object({
  kind: z.literal("content:setStyle"),
  anchorId: z.string(),
  styles: z.record(z.string()),
  label: z.string().optional()
}).strict();
var InsertHtmlZ = z.object({
  kind: z.literal("content:insertHtml"),
  anchorId: z.string(),
  html: z.string(),
  position: InsertPositionZ,
  label: z.string().optional()
}).strict();
var HighlightZ = z.object({
  kind: z.literal("overlays:highlight"),
  anchorId: z.string(),
  style: HighlightStyleZ.optional(),
  duration: z.number().optional(),
  label: z.string().optional()
}).strict();
var PulseZ = z.object({
  kind: z.literal("overlays:pulse"),
  anchorId: z.string(),
  duration: z.number().optional(),
  label: z.string().optional()
}).strict();
var BadgeZ = z.object({
  kind: z.literal("overlays:badge"),
  anchorId: z.string(),
  content: z.string(),
  position: BadgePositionZ.optional(),
  label: z.string().optional()
}).strict();
var TooltipZ = z.object({
  kind: z.literal("overlays:tooltip"),
  anchorId: z.string(),
  content: TooltipContentZ,
  trigger: TooltipTriggerZ.optional(),
  placement: PlacementZ.optional(),
  waitFor: z.string().optional(),
  label: z.string().optional()
}).strict();
var ModalZ = z.object({
  kind: z.literal("overlays:modal"),
  content: ModalContentZ,
  size: z.enum(["sm", "md", "lg"]).optional(),
  blocking: z.boolean().optional(),
  scrim: z.object({
    opacity: z.number().min(0).max(1).optional()
  }).strict().optional(),
  dismiss: z.object({
    onEsc: z.boolean().optional(),
    closeButton: z.boolean().optional(),
    timeoutMs: z.number().min(0).optional()
  }).strict().optional(),
  ctaButtons: z.array(CtaButtonZ).optional(),
  waitFor: z.string().optional(),
  label: z.string().optional()
}).strict();
var ScrollToZ = z.object({
  kind: z.literal("navigation:scrollTo"),
  anchorId: z.string(),
  behavior: ScrollBehaviorZ.optional(),
  block: ScrollLogicalPositionZ.optional(),
  inline: ScrollLogicalPositionZ.optional(),
  label: z.string().optional()
}).strict();
var NavigateZ = z.object({
  kind: z.literal("navigation:navigate"),
  url: z.string(),
  target: z.enum(["_self", "_blank"]).optional(),
  label: z.string().optional()
}).strict();
var MountWidgetZ = z.object({
  kind: z.literal("core:mountWidget"),
  slot: z.string(),
  widget: WidgetConfigZ,
  label: z.string().optional()
}).strict();
var WaitZ = z.object({
  kind: z.literal("core:wait"),
  durationMs: z.number().min(0).optional(),
  event: z.string().optional(),
  label: z.string().optional()
}).strict();
var SequenceZ = z.object({
  kind: z.literal("core:sequence"),
  actions: z.array(z.any()),
  label: z.string().optional()
}).strict();
var ParallelZ = z.object({
  kind: z.literal("core:parallel"),
  actions: z.array(z.any()),
  waitFor: z.enum(["all", "any"]).optional(),
  label: z.string().optional()
}).strict();
var TourZ = z.object({
  kind: z.literal("core:tour"),
  tourId: z.string(),
  steps: z.array(TourStepForSchemaZ).min(1),
  startStep: z.string().optional(),
  autoStart: z.boolean().optional(),
  label: z.string().optional()
}).strict();
var coreActionStepSchemas = [
  { defName: "setText", schema: SetTextZ },
  { defName: "setAttr", schema: SetAttrZ },
  { defName: "addClass", schema: AddClassZ },
  { defName: "removeClass", schema: RemoveClassZ },
  { defName: "setStyle", schema: SetStyleZ },
  { defName: "insertHtml", schema: InsertHtmlZ },
  { defName: "highlight", schema: HighlightZ },
  { defName: "pulse", schema: PulseZ },
  { defName: "badge", schema: BadgeZ },
  { defName: "tooltip", schema: TooltipZ },
  { defName: "modal", schema: ModalZ },
  { defName: "scrollTo", schema: ScrollToZ },
  { defName: "navigate", schema: NavigateZ },
  { defName: "mountWidget", schema: MountWidgetZ },
  { defName: "wait", schema: WaitZ },
  { defName: "sequence", schema: SequenceZ },
  { defName: "parallel", schema: ParallelZ },
  { defName: "tour", schema: TourZ }
];

export {
  __publicField,
  __privateGet,
  __privateAdd,
  __privateSet,
  HighlightStyleZ,
  BadgePositionZ,
  PlacementZ,
  CtaButtonZ,
  TooltipContentZ,
  ModalContentZ,
  InsertPositionZ,
  TooltipTriggerZ,
  WidgetConfigZ,
  TourStepForSchemaZ,
  ScrollBehaviorZ,
  ScrollLogicalPositionZ,
  SetTextZ,
  SetAttrZ,
  AddClassZ,
  RemoveClassZ,
  SetStyleZ,
  InsertHtmlZ,
  HighlightZ,
  PulseZ,
  BadgeZ,
  TooltipZ,
  ModalZ,
  ScrollToZ,
  NavigateZ,
  MountWidgetZ,
  WaitZ,
  SequenceZ,
  ParallelZ,
  TourZ,
  coreActionStepSchemas
};
//# sourceMappingURL=chunk-AYTRRBR5.js.map
