File: /var/www/vhost/disk-apps/pwa.sports-crowd.com/node_modules/safevalues/dom/elements/iframe.js
"use strict";
/**
* @license
* SPDX-License-Identifier: Apache-2.0
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.setSrcdoc = exports.setSrc = void 0;
/**
* @fileoverview Safe iframe helpers and go/intents-for-iframes-for-closure
*/
var html_impl_1 = require("../../internals/html_impl");
var resource_url_impl_1 = require("../../internals/resource_url_impl");
/** Sets the Src attribute using a TrustedResourceUrl */
function setSrc(iframe, v) {
iframe.src = (0, resource_url_impl_1.unwrapResourceUrl)(v).toString();
}
exports.setSrc = setSrc;
/** Sets the Srcdoc attribute using a SafeHtml */
function setSrcdoc(iframe, v) {
iframe.srcdoc = (0, html_impl_1.unwrapHtml)(v);
}
exports.setSrcdoc = setSrcdoc;