import { c as f, l as d, m as b, p as i, f as v, x as h, b as m, d as _, u as g, C as x } from "./AssetItem-BxjLUzNd.js";
import { t as y, r as P, l } from "./index-BBXAtvZr.js";
import { b as V } from "./input-c8sTQ2Qk.js";
var z = v("<input/>");
const C = {
  hash: "svelte-fsz6je",
  code: `.phone.svelte-fsz6je {appearance:textfield;&::-webkit-outer-spin-button,
    &::-webkit-inner-spin-button {-webkit-appearance:none;margin:0;}}`
};
function j(r, t) {
  if (new.target) return f({ component: j, ...r });
  const c = d(t, ["children", "$$slots", "$$events", "$$legacy"]), u = d(c, ["isPhone", "isValid", "value"]);
  y(t, !1), b(r, C);
  let a = i(t, "isPhone", 12, !1), s = i(t, "isValid", 12, !0), n = i(t, "value", 12, null);
  var p = {
    get isPhone() {
      return a();
    },
    set isPhone(e) {
      a(e), l();
    },
    get isValid() {
      return s();
    },
    set isValid(e) {
      s(e), l();
    },
    get value() {
      return n();
    },
    set value(e) {
      n(e), l();
    },
    $set: g,
    $on: (e, w) => _(t, e, w)
  }, o = z();
  return h(
    o,
    () => ({
      class: "crtw-bg-white crtw-w-full crtw-h-[53px] crtw-text-xs crtw-text-[#121e2b] crtw-border crtw-border-[#d9d9d9] crtw-rounded crtw-px-2.5 crtw-py-0 crtw-placeholder-[#d9d9d9] focus:crtw-border-[#121e2b] focus:crtw-outline-none disabled:crtw-bg-[#d9d9d9]",
      ...u,
      [x]: {
        phone: a(),
        "crtw-border-[#990008]": !s(),
        "focus:crtw-border-[#990008]": !s()
      }
    }),
    void 0,
    void 0,
    void 0,
    "svelte-fsz6je",
    !0
  ), V(o, n), m(r, o), P(p);
}
export {
  j as I
};
//# sourceMappingURL=Input-CojPyd3m.js.map
