theme.keycloak.v2.admin.resources.assets.OrganizationForm-BjCA0cNQ.js.map Maven / Gradle / Ivy
{"version":3,"file":"OrganizationForm-BjCA0cNQ.js","sources":["../../src/organizations/OrganizationForm.tsx"],"sourcesContent":["import OrganizationRepresentation from \"@keycloak/keycloak-admin-client/lib/defs/organizationRepresentation\";\nimport {\n HelpItem,\n TextAreaControl,\n TextControl,\n} from \"@keycloak/keycloak-ui-shared\";\nimport { FormGroup } from \"@patternfly/react-core\";\nimport { useTranslation } from \"react-i18next\";\nimport { AttributeForm } from \"../components/key-value-form/AttributeForm\";\nimport { MultiLineInput } from \"../components/multi-line-input/MultiLineInput\";\nimport { keyValueToArray } from \"../components/key-value-form/key-value-convert\";\n\nexport type OrganizationFormType = AttributeForm &\n Omit & {\n domains?: string[];\n };\n\nexport const convertToOrg = (\n org: OrganizationFormType,\n): OrganizationRepresentation => ({\n ...org,\n domains: org.domains?.map((d) => ({ name: d, verified: false })),\n attributes: keyValueToArray(org.attributes),\n});\n\nexport const OrganizationForm = () => {\n const { t } = useTranslation();\n return (\n <>\n \n \n }\n >\n \n \n \n >\n );\n};\n"],"names":["convertToOrg","org","d","keyValueToArray","OrganizationForm","t","useTranslation","jsxs","Fragment","jsx","TextControl","FormGroup","HelpItem","MultiLineInput","TextAreaControl"],"mappings":"+LAiBa,MAAAA,EACXC,IACgC,CAChC,GAAGA,EACH,QAASA,EAAI,SAAS,IAAKC,IAAO,CAAE,KAAMA,EAAG,SAAU,EAAQ,EAAA,EAC/D,WAAYC,EAAgBF,EAAI,UAAU,CAC5C,GAEaG,EAAmB,IAAM,CAC9B,KAAA,CAAE,EAAAC,GAAMC,IACd,OAEIC,EAAAC,EAAA,CAAA,SAAA,CAAAC,EAACC,EAAA,CACC,MAAOL,EAAE,MAAM,EACf,KAAK,OACL,MAAO,CAAE,SAAUA,EAAE,UAAU,CAAE,CAAA,CACnC,EACAI,EAACE,EAAA,CACC,MAAON,EAAE,QAAQ,EACjB,QAAQ,SACR,UACEI,EAACG,EAAA,CACC,SAAUP,EAAE,wBAAwB,EACpC,aAAa,QAAA,CACf,EAGF,SAAAI,EAACI,EAAA,CACC,GAAG,SACH,KAAK,UACL,aAAYR,EAAE,QAAQ,EACtB,eAAe,WAAA,CACjB,CAAA,CACF,IACCS,EAAgB,CAAA,KAAK,cAAc,MAAOT,EAAE,aAAa,EAAG,CAC/D,CAAA,CAAA,CAEJ"}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy