UNPKG

@peculiar/fortify-webcomponents

Version:

Web-components for creating CSR or Certificate and viewing certificates list using Fortify

32 lines (31 loc) 1.43 kB
/*! * © Peculiar Ventures https://peculiarventures.com/ - BSD 3-Clause License */ /** * @license * Copyright (c) Peculiar Ventures, LLC. * * This source code is licensed under the BSD 3-Clause license found in the * LICENSE file in the root directory of this source tree. */ var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; import { h, } from "@stencil/core"; import { getString } from "../../utils/l10n"; import { FortifyCheckbox } from "./fortify-checkbox"; export const EnrollmentFormOptions = (props) => { const { formPolicy } = props, other = __rest(props, ["formPolicy"]); const field = formPolicy.useSelfSignedCertificate; return (h("div", Object.assign({}, other), h(FortifyCheckbox, { name: "useSelfSignedCertificate", label: field.label || getString('enrollment.label.useSelfSignedCertificate'), defaultChecked: field.defaultValue, required: field.required, readOnly: field.readOnly }))); }; //# sourceMappingURL=enrollment-form-options.js.map