/* index.tsx generated by @compiled/babel-plugin v0.40.0 */
"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _typeof = require("@babel/runtime/helpers/typeof");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
require("./index.compiled.css");
var React = _interopRequireWildcard(require("react"));
var _runtime = require("@compiled/react/runtime");
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _reactMagneticDi = require("react-magnetic-di");
var _utils = require("../../../../utils");
var _IFrame = require("../../../EmbedCard/components/IFrame");
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
var iframeCss = null;
var EmbedContent = function EmbedContent(_ref) {
  var isTrusted = _ref.isTrusted,
    name = _ref.name,
    src = _ref.src,
    testId = _ref.testId,
    ariaLabel = _ref.ariaLabel,
    extensionKey = _ref.extensionKey;
  var sandbox = (0, _utils.getIframeSandboxAttribute)(isTrusted);
  var props = {
    frameBorder: 0,
    name: name,
    sandbox: sandbox,
    src: src,
    'data-testid': "".concat(testId, "-embed")
  };
  return /*#__PURE__*/React.createElement(_IFrame.IFrame, (0, _extends2.default)({
    "aria-label": ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : "".concat(testId, "-embed"),
    extensionKey: extensionKey
  }, props, {
    className: (0, _runtime.ax)(["_1bsb1osq _4t3i815d"])
  }));
};
var _default = exports.default = EmbedContent;