mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-14 02:18:54 +00:00
2 lines
23 KiB
JavaScript
2 lines
23 KiB
JavaScript
|
|
(()=>{var t,e={9763:()=>{window.oxy_webhelp_navlinks={}},8650:(t,e,n)=>{"use strict";n.r(e),n.d(e,{stickyController:()=>b});var r=n(4290),a=n(3193);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e){l(t,e),e.add(t)}function l(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function c(t,e,n){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return n}var u=new WeakMap,s=new WeakSet,f=new WeakSet,p=new WeakSet,h=new WeakSet;function d(t){var e=!1;return t&&(e=!0),e}function v(){c(this,p,y).call(this,window.location.hash)}function y(t,e){if(!(n=this,r=u,a=function(t,e,n){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}(n,r),function(t,e){return e.get?e.get.call(t):e.value}(n,a)).test(t))return!1;var n,r,a,o=document.getElementById(t.slice(1));if(o){var i=o.getBoundingClientRect(),l=window.pageYOffset+i.top-this.getStickyOffset();window.scrollTo(window.pageXOffset,l),history&&history.pushState&&e&&history.pushState({},document.title,location.pathname+t)}return!!o}function w(t){var e=t.target;"A"===e.nodeName&&c(this,p,y).call(this,e.getAttribute("href"),!0)&&t.preventDefault()}var b=new(function(){function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),i(this,h),i(this,p),i(this,f),i(this,s),n={writable:!0,value:/^#[^ ]+$/},l(this,e=u),e.set(this,n)}var e,n;return e=t,(n=[{key:"init",value:function(){var t=this,e=a(".wh_header");c(this,s,d).call(this,e)&&(e.addClass("header-sticky"),e.css({top:"0"}),e.outerHeight());var n=a(".wh_tools").parent();c(this,s,d).call(this,n)&&(n.addClass("breadcrumb-sticky"),n.css({top:e.outerHeight()}),n.outerHeight());var o=a(".wh-letters");c(this,s,d).call(this,o)&&(o.addClass("indexTerms-sticky"),o.css({top:e.outerHeight()})),c(this,f,v).call(this),window.addEventListener("hashchange",(function(){return c(t,f,v).call(t)})),document.body.addEventListener("click",(function(e){return c(t,h,w).call(t,e)}));try{var i=document.getElementsByClassName("wh_header")[0];new ResizeObserver((function(){n.css({top:e.outerHeight()}),o.css({top:e.outerHeight()})})).observe(i)}catch(t){r.Z.debug("ResizeObserver is not supported.",t)}}},{key:"getStickyOffset",value:function(){var t=0,e=a(".wh_header");c(this,s,d).call(this,e)&&(t+=e.outerHeight());var n=a(".wh_tools").parent();return c(this,s,d).call(this,n)&&(t+=n.outerHeight()),t}}])&&o(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}())},2891:(t,e,n)=>{"use strict";n(3734),n(9763);var r=n(8091);const a=localization;var o=n.n(a);function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var l=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n;return e=t,n=[{key:"getLocalization",value:function(t){var e=t;return t in o()&&(e=o()[t]),e}}],null&&i(e.prototype,null),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),c=n(3193);function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.add(t)}function f(t,e,n){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return n}var p=new WeakSet,h=new WeakSet;function d(t,e){var n=c(t).parent().siblings(":not(.wh_not_expandable)");if(void 0!==e)"collapsed"==e?(n.slideUp(0),c(".webhelp_expand_collapse_sections").attr("data-next-state","expanded").attr("title",l.getLocalization("expandSections")),c(t).removeClass("expanded"),c(t).attr("aria-expanded",!1),c(t).attr("aria-label",l.getLocalization("expand"
|
||
|
|
//
|