linuxOS_D21X/doc/webhelp/app/topic.js

2 lines
98 KiB
JavaScript
Raw Normal View History

2025-01-23 08:35:08 +00:00
var WebHelpAPI;(()=>{var e,t,n,r,a,o={1266:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DOMSanitizer:()=>i});var r=n(7856),a=n.n(r);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}a().addHook("afterSanitizeAttributes",(function(e){"_blank"==e.target&&e.setAttribute("rel","noopener")}));var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"appendHtmlNode",value:function(e,t){var n=a().sanitize(e[0],{ADD_ATTR:["target"]});t.append(n)}},{key:"appendElementNodeToBody",value:function(e){var t=a().sanitize(e,{RETURN_DOM:!0,RETURN_DOM_IMPORT:!0,ADD_ATTR:["target"]});return document.body.appendChild(t.firstChild)}},{key:"sanitize",value:function(e){return a().sanitize(e,{ALLOWED_TAGS:[]})}}],null&&o(t.prototype,null),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},9763:()=>{window.oxy_webhelp_navlinks={}},8650:(e,t,n)=>{"use strict";n.r(t),n.d(t,{stickyController:()=>y});var r=n(4290),a=n(3193);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t){l(e,t),t.add(e)}function l(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function s(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}var c="ID",u="NAME",h=new WeakMap,p=new WeakSet,f=new WeakSet,d=new WeakSet,v=new WeakSet;function w(e){var t=!1;return e&&(t=!0),t}function g(){var e=decodeURI(window.location.hash);s(this,d,b).call(this,e,!1,c)||s(this,d,b).call(this,e,!1,u)}function b(e,t,n){if(!(r=this,a=h,o=function(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}(r,a),function(e,t){return t.get?t.get.call(e):t.value}(r,o)).test(e))return!1;var r,a,o,i=null;if(n===u){var l=document.getElementsByName(e.slice(1));l.length>0&&(i=l[0])}else i=document.getElementById(e.slice(1));if(i){var s=i.getBoundingClientRect(),c=window.pageYOffset+s.top-this.getStickyOffset();window.scrollTo(window.pageXOffset,c),history&&history.pushState&&t&&history.pushState({},document.title,location.pathname+e)}return!!i}function m(e){var t=e.target,n=t.getAttribute("href");if("A"===t.nodeName&&s(this,d,b).call(this,n,!0,c))e.preventDefault();else if("AREA"===t.nodeName&&n){var r=n.indexOf("#");if(-1!==r){var a=n.substring(r,n.length);s(this,d,b).call(this,a,!0,c)&&e.preventDefault()}}else if("SUP"===t.nodeName){var o=t.parentElement,i=o.getAttribute("href");"A"===o.nodeName&&s(this,d,b).call(this,i,!0,u)&&e.preventDefault()}}var y=new(function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,v),i(this,d),i(this,f),i(this,p),n={writable:!0,value:/#[^ ]+$/},l(this,t=h),t.set(this,n)}var t,n;return t=e,(n=[{key:"init",value:function(){var e=this,t=a(".wh_header");s(this,p,w).call(this,t)&&(t.addClass("header-sticky"),t.css({top:"0"}),t.outerHeight());var n=a(".wh_tools").parent();s(this,p,w).call(this,n)&&(n.addClass("breadcrumb-sticky"),n.css({top:t.outerHeight()}),n.outerHeight());var o=a(".wh-letters");s(this,p,w).call(this,o)&&(o.addClass("indexTerms-sticky"),o.css({top:t.outerHeight()})),s(this,f,g).call(this),window.addEventListener("hashchange",(function(){return s(e,f,g).call(e)})),document.body.addEventListener("click",(function(t){return s(e,v,m).call(e,t)}));try{var i=document.getElementsByClassName("wh_header")[0];new ResizeObserver((function(){n.css({top:t.outerHeight()}),o.css({top:t.outerHeight()})})).observe(i)}catch(e){r.Z.debug("ResizeObserver is not supported.",e)}}},{key:"getStickyOffset",value:function(){var e=0,t=a(".wh_header");s(this,p,w).call(this,t)&&(e+=t.outerHeight());var n=a(".wh_tools").parent();return s(this,p,w).call(this,n)&&(e+=n.outerHeight()),e}}])&&o(t.prototype,n),Object.def
//