aura-get-verified
Version:
42 lines (39 loc) • 1.52 kB
JavaScript
import {
IFramePorjectVerification
} from "./chunk-XU34N3CD.js";
// ../../node_modules/@lit/react/node/create-component.js
var e = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "className"]);
var t = ({ react: t2, tagName: n, elementClass: l, events: a, displayName: c }) => {
const s = new Set(Object.keys(a ?? {})), o = t2.forwardRef((a2, c2) => {
t2.useRef(/* @__PURE__ */ new Map());
const o2 = t2.useRef(null), r = {}, m = {};
for (const [t3, n2] of Object.entries(a2)) e.has(t3) ? r["className" === t3 ? "class" : t3] = n2 : s.has(t3) || t3 in l.prototype ? m[t3] = n2 : r[t3] = n2;
return ("litPatchedCreateElement" === t2.createElement.name || globalThis.litSsrReactEnabled) && Object.keys(m).length && (r._$litProps$ = m), t2.createElement(n, { ...r, ref: t2.useCallback((e2) => {
o2.current = e2, "function" == typeof c2 ? c2(e2) : null !== c2 && (c2.current = e2);
}, [c2]) });
});
return o.displayName = c ?? l.name, o;
};
// src/react.ts
import * as React from "react";
var AuraReactIFrameVerification = t({
tagName: "iframe-project-verification",
elementClass: IFramePorjectVerification,
react: React,
events: {
onReady: "on-ready",
onVerificationSuccess: "on-verification-success"
}
});
export {
AuraReactIFrameVerification
};
/*! Bundled license information:
@lit/react/node/create-component.js:
(**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
*/
//# sourceMappingURL=react.js.map