"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var curatedWidgets_exports = {};
__export(curatedWidgets_exports, {
  CURATED: () => CURATED
});
module.exports = __toCommonJS(curatedWidgets_exports);
var import_liveFingerprints = require("./liveFingerprints");
const CURATED = {
  [(0, import_liveFingerprints.fp)("vue-treeselect")]: {
    source: "curated",
    confidence: "high",
    widgetIdentification: "Vue-Treeselect",
    parameters: ["value"],
    steps: [
      { kind: "click", target: "trigger" },
      { kind: "waitFor", location: "inDom", signal: "visible" },
      { kind: "click", target: "option", matchBy: "accessibleName", param: "value" }
    ]
  },
  [(0, import_liveFingerprints.fp)("radix-select")]: {
    source: "curated",
    confidence: "high",
    widgetIdentification: "Radix Select",
    parameters: ["value"],
    steps: [
      { kind: "click", target: "trigger" },
      { kind: "waitFor", location: "portal", signal: "visible" },
      { kind: "handoff" }
    ]
  },
  [(0, import_liveFingerprints.fp)("stripe-frame")]: {
    source: "curated",
    confidence: "high",
    widgetIdentification: "Stripe CardNumberElement",
    parameters: ["value"],
    // framePath uses `title*="card"` rather than `src*="stripe.com"`:
    //   - Real Stripe Elements iframes have title like "Secure card number
    //     input frame" — `title*="card"` matches.
    //   - The widgets.html fixture (used for curating this fingerprint) has
    //     `title="Stripe card number"` — also matches.
    //   - `src*="stripe.com"` matches real Stripe but NOT the fixture
    //     (fixture uses `src="about:blank"` for offline testing). That mismatch
    //     made the curated contract unrunnable against the same DOM that
    //     produced its fingerprint. Title-based identification is stable
    //     across the fixture/production split.
    steps: [
      { kind: "enterFrame", framePath: ['iframe[title*="card"]'] },
      { kind: "fill", target: "activeInput", param: "value" },
      { kind: "exitFrame" }
    ]
  }
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  CURATED
});
