import { jsx as m } from "react/jsx-runtime";
import { Q as c } from "./useQuery-n4ls1rLk.js";
import { J as i } from "./react-jsx-parser.min-PKxwP4S0.js";
import e from "./components/Buttons/index.js";
import f from "./components/Card/index.js";
import { AppFormProvider as l } from "./components/FormProvider.js";
import s from "./components/Layouts.js";
import d from "./composables/FormInputs.js";
import { ActivitiesCards as F } from "./composables/govco/CardActivities.js";
import { FeatureComponents as y } from "./feature/index.js";
import { GeneralStoreProvider as S, useGeneralForm as n } from "./context/generalContext/index.js";
import { staticOptions as b } from "./config/index.js";
import { Q as C } from "./index-UEnzNNJg.js";
const G = ({
  config: r,
  queryConfig: t,
  formString: o,
  callback: a,
  formSchema: u
}) => {
  const p = new C(t);
  return /* @__PURE__ */ m(c, { client: p, children: /* @__PURE__ */ m(S, { defaultValue: { mainConfig: r, formString: o, onSubmit: a, formSchema: u }, children: /* @__PURE__ */ m(g, {}) }) });
}, v = () => {
  const [r] = n((t) => t.formString);
  return (
    //@ts-ignore
    /* @__PURE__ */ m(
      i,
      {
        bindings: { age: 2023, staticOptions: b },
        components: { FormInput: d, Layouts: s, Buttons: e, Card: f, ActivitiesCards: F, FeatureComponents: y },
        jsx: r
      }
    )
  );
}, g = () => {
  const [r] = n((o) => o.onSubmit), [t] = n((o) => o.formSchema);
  return (
    //@ts-ignore
    /* @__PURE__ */ m(
      i,
      {
        bindings: {
          submit: (o) => {
            r && r(o);
          },
          schema: t
        },
        components: { AppFormProvider: l, Inputs: v, Buttons: e, Layouts: s },
        jsx: (
          /*jsx*/
          `
                <>
                    <AppFormProvider defaultValue={initialValues} className="_py-[8px]" submit={submit} schema={schema}>
                      <Inputs/>

                      <Layouts.FooterFormSection>
                          <div class="_flex _w-full _justify-center">
                            <Buttons.FormButton className="_bg-primary">
                              Continuar
                            </Buttons.FormButton>
                          </div>
                      </Layouts.FooterFormSection>
                    </AppFormProvider>
                </>
          `
        )
      }
    )
  );
};
export {
  v as FormJsonContent,
  g as FormJsonMainLayout,
  G as Formjson
};
