Files
luban-lite-t3e-pro/doc/webhelp/app/topic.js

2 lines
64 KiB
JavaScript
Raw Normal View History

2025-01-23 16:37:00 +08:00
var WebHelpAPI;(()=>{var t,e={1266:(t,e,n)=>{"use strict";n.r(e),n.d(e,{DOMSanitizer:()=>i});var o=n(7856),r=n.n(o);function a(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}r().addHook("afterSanitizeAttributes",(function(t){"_blank"==t.target&&t.setAttribute("rel","noopener")}));var i=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:"appendHtmlNode",value:function(t,e){var n=r().sanitize(t[0],{ADD_ATTR:["target"]});e.append(n)}},{key:"appendElementNodeToBody",value:function(t){var e=r().sanitize(t,{RETURN_DOM:!0,RETURN_DOM_IMPORT:!0,ADD_ATTR:["target"]});return document.body.appendChild(e.firstChild)}},{key:"sanitize",value:function(t){return r().sanitize(t,{ALLOWED_TAGS:[]})}}],null&&a(e.prototype,null),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}()},9763:()=>{window.oxy_webhelp_navlinks={}},8650:(t,e,n)=>{"use strict";n.r(e),n.d(e,{stickyController:()=>y});var o=n(4290),r=n(3193);function a(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}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 s=new WeakMap,u=new WeakSet,p=new WeakSet,f=new WeakSet,h=new WeakSet;function d(t){var e=!1;return t&&(e=!0),e}function v(){c(this,f,w).call(this,window.location.hash)}function w(t,e){if(!(n=this,o=s,r=function(t,e,n){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}(n,o),function(t,e){return e.get?e.get.call(t):e.value}(n,r)).test(t))return!1;var n,o,r,a=document.getElementById(t.slice(1));if(a){var i=a.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!!a}function b(t){var e=t.target;"A"===e.nodeName&&c(this,f,w).call(this,e.getAttribute("href"),!0)&&t.preventDefault()}var y=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,f),i(this,p),i(this,u),n={writable:!0,value:/^#[^ ]+$/},l(this,e=s),e.set(this,n)}var e,n;return e=t,(n=[{key:"init",value:function(){var t=this,e=r(".wh_header");c(this,u,d).call(this,e)&&(e.addClass("header-sticky"),e.css({top:"0"}),e.outerHeight());var n=r(".wh_tools").parent();c(this,u,d).call(this,n)&&(n.addClass("breadcrumb-sticky"),n.css({top:e.outerHeight()}),n.outerHeight());var a=r(".wh-letters");c(this,u,d).call(this,a)&&(a.addClass("indexTerms-sticky"),a.css({top:e.outerHeight()})),c(this,p,v).call(this),window.addEventListener("hashchange",(function(){return c(t,p,v).call(t)})),document.body.addEventListener("click",(function(e){return c(t,h,b).call(t,e)}));try{var i=document.getElementsByClassName("wh_header")[0];new ResizeObserver((function(){n.css({top:e.outerHeight()}),a.css({top:e.outerHeight()})})).observe(i)}catch(t){o.Z.debug("ResizeObserver is not supported.",t)}}},{key:"getStickyOffset",value:function(){var t=0,e=r(".wh_header");c(this,u,d).call(this,e)&&(t+=e.outerHeight());var n=r(".wh_tools").parent();return c(this,u,d).call(this,n)&&(t+=n.outerHeight()),t}}])&&a(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}())},8091:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Options:()=>i});var o=n(4093),r=n.n(o);function a(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var i=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:"get",value
//