function a() {
class o extends React.Component {
constructor(e) {
super(e), this.state = {
showDisclosure: !1
}, this.determineCookieDisclosureState = this.determineCookieDisclosureState.bind(this), this.agreeCookieDisclosure = this.agreeCookieDisclosure.bind(this), this.triggerStateFromRemoteMessage = this.triggerStateFromRemoteMessage.bind(this);
}
agreeCookieDisclosure() {
if (document.getElementById("cookieDisclosureiFrame") != null) {
var e = document.getElementById("cookieDisclosureiFrame");
try {
e.contentWindow.postMessage("QUURagreeToCookieDisclosure=true", "*");
} catch {
}
this.setState({ showDisclosure: !1 });
}
}
determineCookieDisclosureState() {
window.addEventListener("message", (e) => {
this.triggerStateFromRemoteMessage(e);
});
}
triggerStateFromRemoteMessage(e) {
e.data == "QUURagreeToCookieDisclosure=true" && this.setState({ showDisclosure: !1 }), e.data == "QUURagreeToCookieDisclosure=false" && this.setState({ showDisclosure: !0 });
}
render() {
this.determineCookieDisclosureState();
var e = { display: "block" }, t = { display: "none" }, r = this.state.showDisclosure ? e : t;
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("iframe", { title: "QUCookieDisclosure", "aria-label": "Cookie Disclosure Window", id: "cookieDisclosureiFrame", src: "/resources/cookiedisclosure-v2/index.html?v=f", style: { width: "1px", height: "1px", position: "absolute", bottom: "0px", left: "-20px" } }), /* @__PURE__ */ React.createElement("div", { id: "QUURcookieDisclosureExtra", style: r }, "聽"), /* @__PURE__ */ React.createElement("div", { id: "QUURcookieDisclosureOuter", style: r }, /* @__PURE__ */ React.createElement("div", { id: "QUURcookieDisclosureDiv", className: "QUURcookieDisclosure", role: "form" }, /* @__PURE__ */ React.createElement("div", { id: "QUURcookieDisclosureContainer" }, /* @__PURE__ */ React.createElement("h2", { className: "visually-hidden focusable" }, "Cookie Disclosure"), /* @__PURE__ */ React.createElement("div", { id: "QUURcookieDisclosureMessage" }, /* @__PURE__ */ React.createElement("p", null, "果酱视频 uses cookies to provide the best possible online聽experience."), /* @__PURE__ */ React.createElement("p", null, /* @__PURE__ */ React.createElement("span", { className: "QUURcookieDisclosureSubtext" }, /* @__PURE__ */ React.createElement("a", { href: "/accessandprivacy/privacy/personal/digital-channels#websites", "aria-label": "Learn about our privacy practices.", tabindex: "1" }, "Learn about our privacy practices.")))), /* @__PURE__ */ React.createElement("button", { id: "QUURcookieDisclosureOKDiv", onClick: this.agreeCookieDisclosure, role: "button", "aria-label": "Hide cookie disclosure message", tabindex: "1" }, "OK")))));
}
}
function i() {
var s = document.createElement("div");
s.id = "quurCookieDisclosureOuterWrapper", document.body.appendChild(s);
var e = document.getElementById("quurCookieDisclosureOuterWrapper"), t = ReactDOM.createRoot(e, { identifierPrefix: "quurCookieDisclosureIds" });
t.render(
/* @__PURE__ */ React.createElement(o, { showDisclosure: !1 })
);
}
i();
}
function c() {
function o() {
typeof React < "u" && typeof ReactDOM < "u" && (clearInterval(i), a());
}
const i = setInterval(o, 5);
}
function l() {
document.addEventListener("DOMContentLoaded", c);
}
const n = l();
export {
n as default
};