import { D as o, ac as g, ad as A, a5 as p, j as D } from "./index-b203ecbb.js";
import { useMemo as S, useCallback as T } from "react";
import f from "./searchSelect-3084a8b0.js";
import "react-dom";
import "./baseSelect-3b8966ae.js";
import "./index-56e81c67.js";
import "./style-c902ea32.js";
import "./Popper-2776137d.js";
const h = (a) => {
  const {
    attrName: m,
    parentAttrName: t,
    handleUpdateDsl: r,
    widgetDisplayName: i,
    widgetOrAction: s
  } = a, c = o(g), n = o(A), e = S(() => s === "WIDGET" ? p(
    c,
    `${i}.${t}`,
    {}
  ) : p(n, `content.${t}`, {}), [
    s,
    c,
    i,
    t,
    n
  ]), l = t || m, d = T(
    (u, y) => {
      r(u, {
        actionType: y,
        id: e == null ? void 0 : e.id,
        eventType: e == null ? void 0 : e.eventType
      });
    },
    [r, e == null ? void 0 : e.eventType, e == null ? void 0 : e.id]
  );
  return /* @__PURE__ */ D(
    f,
    {
      ...a,
      attrName: l,
      handleUpdateDsl: d
    }
  );
};
h.displayName = "EventActionTypeSelect";
export {
  h as default
};
//# sourceMappingURL=eventActionTypeSelect-f99c1900.js.map
