import { b9 as m, bf as w, w as g, a0 as l, bK as x, bb as f, bv as c, be as P, bB as y, dl as C, bO as I, U as V, V as t, bD as S, P as o, bh as r, bg as n, bi as a, bj as i, bl as T, dn as v, bV as h, ds as R, dt as D, du as L, bn as M, bo as q, dp as E, dq as O, dv as B, bY as F, bA as N } from "./684d2f28.js";
import { useContext as d } from "react";
import { FormDataPropertyView as U } from "./00dac55d.js";
import { getStyle as $, textInputChildren as j, TextInputValidationOptions as A, useTextInputProps as k, TextInputBasicSection as H, TextInputInteractionSection as K, TextInputConfigs as Y, inputRefMethods as _, fixOldInputCompData as z } from "./0c4ef413.js";
import "react-dom";
import "./d6402597.js";
const G = m(B)`
  ${(s) => s.$style && $(s.$style)}
`;
let b = function() {
  const s = {
    ...j,
    viewRef: w,
    label: g(x, {
      text: l("password.label")
    }),
    validationType: f(A, "Regex"),
    visibilityToggle: c.DEFAULT_TRUE,
    prefixIcon: P,
    style: y(C),
    labelStyle: y(I)
  };
  return new V(s, (e) => {
    const [p, u] = k(e);
    return e.label({
      required: e.required,
      children: /* @__PURE__ */ t(G, {
        prefix: S(e.prefixIcon) && e.prefixIcon,
        ...p,
        ref: e.viewRef,
        visibilityToggle: e.visibilityToggle,
        $style: e.style
      }),
      style: e.style,
      labelStyle: e.labelStyle,
      ...u
    });
  }).setPropertyViewFn((e) => /* @__PURE__ */ o(r, {
    children: [/* @__PURE__ */ t(H, {
      ...e
    }), /* @__PURE__ */ t(U, {
      ...e
    }), ["layout", "both"].includes(d(n).editorModeStatus) && e.label.getPropertyView(), ["logic", "both"].includes(d(n).editorModeStatus) && /* @__PURE__ */ o(r, {
      children: [/* @__PURE__ */ t(K, {
        ...e
      }), /* @__PURE__ */ t(a, {
        name: i.layout,
        children: T(e)
      }), /* @__PURE__ */ o(a, {
        name: i.advanced,
        children: [e.visibilityToggle.propertyView({
          label: l("password.visibilityToggle")
        }), v(e), e.prefixIcon.propertyView({
          label: l("button.prefixIcon")
        })]
      }), /* @__PURE__ */ o(a, {
        name: i.validation,
        children: [h(e), R(e), D(e), L(e), e.customRule.propertyView({})]
      })]
    }), ["layout", "both"].includes(d(n).editorModeStatus) && /* @__PURE__ */ o(r, {
      children: [/* @__PURE__ */ t(a, {
        name: i.style,
        children: e.style.getPropertyView()
      }), /* @__PURE__ */ t(a, {
        name: i.labelStyle,
        children: e.labelStyle.getPropertyView()
      })]
    })]
  })).build();
}();
b = N(b, z);
const J = F(b, _), oe = M(J, [new q("value", l("export.inputValueDesc")), E, O, ...Y]);
export {
  oe as PasswordComp
};
