@peculiar/fortify-webcomponents
Version:
Web-components for creating CSR or Certificate and viewing certificates list using Fortify
34 lines (33 loc) • 1.36 kB
JavaScript
/*!
* © 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 { FortifySelect } from "./fortify-select";
export const EnrollmentFormProvider = (props) => {
const { providers = [] } = props, other = __rest(props, ["providers"]);
return (h("div", Object.assign({}, other), h(FortifySelect, { label: getString('enrollment.label.provider'), options: providers.map((prv) => ({
name: prv.name,
value: prv.id,
})), name: "providerId", required: true })));
};
//# sourceMappingURL=enrollment-form-provider.js.map