@pie-element/match-list 8.0.4 → 8.0.5-next.20261012213240
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -12174,7 +12174,8 @@ var { translator: fy } = N_, py = "pie-prompt-audio-player", my = "play-audio-bu
|
|
|
12174
12174
|
let a = i.querySelector("audio");
|
|
12175
12175
|
if (a) {
|
|
12176
12176
|
let e = document.createElement("source");
|
|
12177
|
-
if (e.setAttribute("type", "audio/mp3"), e.setAttribute("src", a.getAttribute("src")), a.removeAttribute("src"), a.id
|
|
12177
|
+
if (e.setAttribute("type", "audio/mp3"), e.setAttribute("src", a.getAttribute("src")), a.removeAttribute("src"), a.id) for (let e of i.querySelectorAll(`[${Gu}]`)) e.getAttribute("data-pie-play-audio") === a.id && e.setAttribute("data-pie-play-audio", this.audioId);
|
|
12178
|
+
if (a.id = this.audioId, a.classList.add(py), a.appendChild(e), n) {
|
|
12178
12179
|
a.style.display = "none";
|
|
12179
12180
|
let e = document.createElement("button");
|
|
12180
12181
|
e.setAttribute("type", "button"), e.setAttribute("aria-label", fy.t("common:playAudio", { lng: r })), e.id = this.playButtonId, e.className = my, Object.assign(e.style, {
|