"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = ({ content, cta, href }) => /* HTML */ __awaiter(void 0, void 0, void 0, function* () {
    return `
	<aside id="dev-preheader" class="preheader-cta">
		<p class="preheader-cta__content">
			${content || ""}
		</p>
		<div class="preheader-cta__btn">
			<a href="${href || ""}" class="preheader-cta__link">${cta || ""}</a>
		</div>
		<button
			title="Close preheader"
			role="button"
			class="cross"
			onclick="close_preheader()"
		>
			<div class="cross__stick cross__stick--left"></div>
			<div class="cross__stick cross__stick--right"></div>
		</button>
	</aside>
	<script class="no-desierotkify">
		var msg = "clicked-" + "${content}";
		var preheader = document.querySelector(".preheader-cta");

		function close_preheader() {
			localStorage.setItem(msg, true);
			preheader.classList.add("preheader-cta--hidden");
		}

		if (localStorage.getItem(msg)) close_preheader();
	</script>
`;
});
//# sourceMappingURL=prenavbar-cta.js.map