import e from "/resources/libraries/reactesm/react@19.2.6"; import t from "/resources/libraries/reactesm/react-dom@19.2.6/client"; //#region \0rolldown/runtime.js var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), r = /* @__PURE__ */ n(((e) => { var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment"); function r(e, n, r) { var i = null; if (r !== void 0 && (i = "" + r), n.key !== void 0 && (i = "" + n.key), "key" in n) for (var a in r = {}, n) a !== "key" && (r[a] = n[a]); else r = n; return n = r.ref, { $$typeof: t, type: e, key: i, ref: n === void 0 ? null : n, props: r }; } e.Fragment = n, e.jsx = r, e.jsxs = r; })), i = (/* @__PURE__ */ n(((e, t) => { t.exports = r(); })))(); function a() { let n = e.useState, r = e.useEffect; function a() { return /* @__PURE__ */ (0, i.jsx)(i.Fragment, { children: /* @__PURE__ */ (0, i.jsx)("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" } }) }); } function o() { let [e, t] = n(!1); function r(e) { t(e); } var a = e ? { display: "block" } : { display: "none" }; return window.updateStateForExtraBottom = r, /* @__PURE__ */ (0, i.jsx)(i.Fragment, { children: /* @__PURE__ */ (0, i.jsx)("div", { id: "QUURcookieDisclosureExtra", style: a }) }); } function s() { let [e, t] = n(!1), [o, s] = n(0); function c(e) { e.data == "QUURagreeToCookieDisclosure=true" && (t(!1), updateStateForExtraBottom(!1)), e.data == "QUURagreeToCookieDisclosure=false" && (t(!0), updateStateForExtraBottom(!0)); } window.triggerStateFromRemoteMessage = c; function l() { if (document.getElementById("cookieDisclosureiFrame") != null) { var e = document.getElementById("cookieDisclosureiFrame"); try { e.contentWindow.postMessage("QUURagreeToCookieDisclosure=true", "*"); } catch {} t(!1); } } return r(() => { if (e) { var t = document.createElement("script"); t.id = "moveFocusToCookieDisclosureScript", t.innerHTML = "\n document.getElementById(\"QUURcookieDisclosureOuter\").focus();\n ", document.getElementById("moveFocusToCookieDisclosureScript")?.remove(), document.body.appendChild(t), s(document.getElementById("QUURcookieDisclosureDiv").offsetHeight), document.getElementById("QUURcookieDisclosureExtraBottom").style.height = o - 1 + "px"; } }), /* @__PURE__ */ (0, i.jsxs)(i.Fragment, { children: [/* @__PURE__ */ (0, i.jsx)("div", { id: "QUURcookieDisclosureOuter", style: e ? { display: "block" } : { display: "none" }, tabIndex: "0", className: "focusable", children: /* @__PURE__ */ (0, i.jsx)("div", { id: "QUURcookieDisclosureDiv", className: "QUURcookieDisclosure", role: "form", children: /* @__PURE__ */ (0, i.jsxs)("div", { id: "QUURcookieDisclosureContainer", children: [ /* @__PURE__ */ (0, i.jsx)("h2", { className: "visually-hidden focusable", children: "Cookie Disclosure" }), /* @__PURE__ */ (0, i.jsxs)("div", { id: "QUURcookieDisclosureMessage", children: [/* @__PURE__ */ (0, i.jsx)("p", { children: "³ÉÈË´óÆ¬ uses cookies to provide the best possible online\xA0experience." }), /* @__PURE__ */ (0, i.jsx)("p", { children: /* @__PURE__ */ (0, i.jsx)("span", { className: "QUURcookieDisclosureSubtext", children: /* @__PURE__ */ (0, i.jsx)("a", { href: "/accessandprivacy/privacy/personal/digital-channels#websites", "aria-label": "Learn about our privacy practices.", children: "Learn about our privacy practices." }) }) })] }), /* @__PURE__ */ (0, i.jsx)("button", { id: "QUURcookieDisclosureOKDiv", onClick: l, role: "button", "aria-label": "Hide cookie disclosure message", children: "OK" }) ] }) }) }), /* @__PURE__ */ (0, i.jsx)(a, {})] }); } function c() { var e = document.createElement("div"); e.id = "QUURcookieDisclosureExtraBottom", e.style = "", document.body.appendChild(e), t.createRoot(e, { identifierPrefix: "quurCookieDisclosureExtraBottom" }).render(/* @__PURE__ */ (0, i.jsx)(o, {})); var n = document.createElement("div"); n.id = "quurCookieDisclosureOuterWrapper", n.style = "", document.body.prepend(n); var r = document.getElementById("quurCookieDisclosureOuterWrapper"); t.createRoot(r, { identifierPrefix: "quurCookieDisclosureIds" }).render(/* @__PURE__ */ (0, i.jsx)(s, { showDisclosure: !1 })), window.addEventListener("message", (e) => { typeof e.data == "string" && e.data.includes("QUURagreeToCookieDisclosure") && triggerStateFromRemoteMessage(e); }); } c(); } function o() { function n() { e !== void 0 && t !== void 0 && (clearInterval(r), a()); } let r = setInterval(n, 5); } function s() { document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", o) : o(); } var c = s(); //#endregion export { c as default };