"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 });
const path_1 = require("path");
const tempseal_1 = require("@sealcode/tempseal");
let Wave;
Wave = (add_effect, config, { rotated, wave_color, flip_horizontally, negative = false }) => __awaiter(void 0, void 0, void 0, function* () {
    const html = /* HTML */ `
		<svg
			class="wave ${(rotated && "wave--rotated") ||
        (flip_horizontally && "wave--flip-horizontally") ||
        ""} ${negative ? "wave--negative" : ""}"
			viewBox="0 0 1400 160"
			preserveAspectRatio="none"
		>
			<path
				style="${(wave_color && `fill: ${wave_color};`) ||
        ""};fill-opacity:1;stroke:none;stroke-width:1.00157475;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
				d="M 0,1e-5 C 347.75032,15.634529 567.58657,57.729383 676.89518,73.033657 786.2038,88.337927 1045.9983,122.75438 1440,120 v 40 l -1440,4e-5 z"
			/>
		</svg>
	`;
    yield Promise.all([
        tempseal_1.SideEffects.Scss.addFromPath(add_effect, config, path_1.resolve(__dirname, "wave.scss")),
        add_effect(new tempseal_1.SideEffects.HtmlChunk(html)),
    ]);
});
Wave.identifier = "wave";
exports.default = Wave;
//# sourceMappingURL=wave.js.map