TvBox/jav/lib/ui_packages_updatable-content_updatable-content_ts-a5daa16ae903.js

2 lines
9.7 KiB
JavaScript
Raw Permalink Normal View History

2025-07-03 20:15:22 +08:00
"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["ui_packages_updatable-content_updatable-content_ts"],{53005:(e,t,n)=>{n.d(t,{O:()=>i,S:()=>a});var r=n(96679);let o=r.cg?.document?.head?.querySelector('meta[name="release"]')?.content||"",a="X-GitHub-Client-Version";function i(){return o}},26559:(e,t,n)=>{n.d(t,{jC:()=>c,kt:()=>i,tV:()=>l});var r=n(53005),o=n(27851),a=n(88191);function i(e){let t={"X-Requested-With":"XMLHttpRequest",...(0,a.wE)(e)};return(0,o.G7)("client_version_header")&&(t={...t,[r.S]:(0,r.O)()}),t}function l(e,t){for(let[n,r]of Object.entries(i(t)))e.set(n,r)}function c(e){return{"X-GitHub-App-Type":e}}},88191:(e,t,n)=>{n.d(t,{$r:()=>i,M1:()=>l,li:()=>o,pS:()=>u,wE:()=>c});var r=n(96679);let o="X-Fetch-Nonce",a=new Set;function i(e){a.add(e)}function l(){return a.values().next().value||""}function c(e){let t={};return void 0!==e&&(t["X-Fetch-Nonce-To-Validate"]=e),void 0===e?t[o]=l():a.has(e)?t[o]=e:t[o]=Array.from(a).join(","),t}function u(){let e=r.XC?.head?.querySelector('meta[name="fetch-nonce"]')?.content||"";e&&i(e)}},97325:(e,t,n)=>{n.d(t,{Cy:()=>l,K3:()=>s,Z8:()=>c,k_:()=>a,lK:()=>f,m$:()=>i});var r=n(94982);function o(e,t,n){return e.dispatchEvent(new CustomEvent(t,{bubbles:!0,cancelable:n}))}function a(e,t){t&&(function(e,t){if(!(e instanceof HTMLFormElement))throw TypeError("The specified element is not of type HTMLFormElement.");if(!(t instanceof HTMLElement))throw TypeError("The specified element is not of type HTMLElement.");if("submit"!==t.type)throw TypeError("The specified element is not a submit button.");if(!e||e!==t.form)throw Error("The specified element is not owned by the form element.")}(e,t),(0,r.A)(t)),o(e,"submit",!0)&&e.submit()}function i(e,t){if("boolean"==typeof t)if(e instanceof HTMLInputElement)e.checked=t;else throw TypeError("only checkboxes can be set to boolean value");else if("checkbox"===e.type)throw TypeError("checkbox can't be set to string value");else e.value=t;o(e,"change",!1)}function l(e,t){for(let n in t){let r=t[n],o=e.elements.namedItem(n);o instanceof HTMLInputElement?o.value=r:o instanceof HTMLTextAreaElement&&(o.value=r)}}function c(e){if(!(e instanceof HTMLElement))return!1;let t=e.nodeName.toLowerCase(),n=(e.getAttribute("type")||"").toLowerCase();return"select"===t||"textarea"===t||"input"===t&&"submit"!==n&&"reset"!==n||e.isContentEditable}function u(e){return new URLSearchParams(e)}function s(e,t){let n=new URLSearchParams(e.search);for(let[e,r]of u(t))n.append(e,r);return n.toString()}function f(e){return u(new FormData(e)).toString()}},94982:(e,t,n)=>{function r(e){let t=e.closest("form");if(!(t instanceof HTMLFormElement))return;let n=o(t);if(e.name){let r=e.matches("input[type=submit]")?"Submit":"",o=e.value||r;n||((n=document.createElement("input")).type="hidden",n.classList.add("js-submit-button-value"),t.prepend(n)),n.name=e.name,n.value=o}else n&&n.remove()}function o(e){let t=e.querySelector("input.js-submit-button-value");return t instanceof HTMLInputElement?t:null}n.d(t,{A:()=>r,C:()=>o})},5221:(e,t,n)=>{let r,o,a;n.d(t,{Av:()=>s,it:()=>u});var i=n(74057),l=n(97325),c=n(96679);function u(e,t=!1,n=!1){var c,d;return!n&&s(e)||function(e,t){let n=r instanceof Element?r:e&&e.ownerDocument&&e.ownerDocument.activeElement?e.ownerDocument.activeElement:null;return null!==n&&(!t||n!==e)&&(!!(n===e&&(0,l.Z8)(n)||e.contains(n)&&!function(e){if(e instanceof i.A)return!0;let t=e instanceof HTMLAnchorElement||e instanceof HTMLButtonElement,n=e.parentElement?.classList.contains("task-list-item");if(t&&n)return!0;if(!(a instanceof Element))return!1;let r=e.closest(f);return!!r&&r===a.closest(f)}(n))||a instanceof Element&&e.contains(a)&&!!a.closest("details[open] > summary"))}(e,t)||(c=e).matches(":active:enabled")||c.contains(o)||!!((d=e).closest(".is-dirty")||d.querySelector(".is-dirty"))}function s(e){for(let t of e.querySelectorAll("input, textarea"))if((t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&function(e){if(e instanceof HTMLInputElement&&("checkbox"===e.type||"radio"===e.type)){if(e.checked!==e
//# sourceMappingURL=ui_packages_updatable-content_updatable-content_ts-8c6f2a2923ca.js.map