{"version":3,"file":"form.cjs","sourceRoot":"","sources":["../../../src/ui/components/form.ts"],"names":[],"mappings":";;;AAAA,uDAA6E;AAE7E,yCAAwC;AACxC,uCAAsC;AACtC,yDAA0C;AAC1C,wCAAgD;AAEnC,QAAA,mBAAmB,GAAG,IAAA,mBAAK,EAAC,CAAC,mBAAW,EAAE,qBAAY,CAAC,CAAC,CAAC;AAEzD,QAAA,UAAU,GAAG,IAAA,oBAAM,EAC9B,kBAAU,EACV,IAAA,oBAAM,EAAC;IACL,IAAI,EAAE,IAAA,mBAAO,EAAC,gBAAQ,CAAC,IAAI,CAAC;IAC5B,QAAQ,EAAE,IAAA,mBAAK,EAAC,2BAAmB,CAAC;IACpC,IAAI,EAAE,IAAA,oBAAM,GAAE;CACf,CAAC,CACH,CAAC","sourcesContent":["import { array, assign, object, string, union } from '@metamask/superstruct';\n\nimport { ButtonStruct } from './button';\nimport { InputStruct } from './input';\nimport { literal } from '../../internals';\nimport { NodeStruct, NodeType } from '../nodes';\n\nexport const FormComponentStruct = union([InputStruct, ButtonStruct]);\n\nexport const FormStruct = assign(\n  NodeStruct,\n  object({\n    type: literal(NodeType.Form),\n    children: array(FormComponentStruct),\n    name: string(),\n  }),\n);\n"]}