linuxOS_D21X/doc/webhelp/app/search.js

2 lines
63 KiB
JavaScript
Raw Normal View History

2025-01-23 08:35:08 +00:00
var WebHelpAPI;(()=>{var e,t,r,a,n,i={9763:()=>{window.oxy_webhelp_navlinks={}},905:(e,t,r)=>{"use strict";r.r(t),r.d(t,{AutocompleteItem:()=>sn,SearchDocument:()=>_r,SearchMeta:()=>kr,SearchResult:()=>yr,disableSearchDefaultPlaceholder:()=>Pr,disableWebHelpDefaultSearchEngine:()=>Cr,enableWebHelpDefaultSearchEngine:()=>Wr,getWebHelpSearchPagination:()=>jr,runCustomSearchEngine:()=>Tr,runSearchEngine:()=>Or,setCustomAutocomplete:()=>ln,setCustomSearchEngine:()=>Sr,setCustomSearchFilter:()=>Er,setPlaceholderOnSearchInput:()=>xr}),r(2390),r(3734),r(9763);var a=r(3193);function n(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function o(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"getParameter",value:function(e){var t,r,a,i=new URLSearchParams(window.location.search),o=new URLSearchParams,s=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=n(e))){r&&(e=r);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw o}}}}(i);try{for(s.s();!(t=s.n()).done;){var l=(r=t.value,a=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(a=r.next()).done)&&(i.push(a.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw n}}return i}}(r,a)||n(r,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=l[0],u=l[1];o.append(c.toLowerCase(),u)}}catch(e){s.e(e)}finally{s.f()}var h=o.get(e.toLowerCase());return h&&(h=h.replace(/\+/g," ")),h}},{key:"updateSearchParameter",value:function(e,t){var r=window.location.search,a=window.location.href,n=a.substr(0,a.indexOf(r)+1),i=new URLSearchParams(window.location.search);i.delete(e),i.set(e,t),window.history.pushState(e,document.title,n+i.toString())}},{key:"loadJS",value:function(e,t){var r=document.createElement("script");r.src=e,r.onload=t,r.onreadystatechange=t,document.body.appendChild(r)}},{key:"isLocal",value:function(){this.debug("isLocal()");try{var e=window.location.protocol;if(e.includes("http")||e.includes("https"))return!1}catch(e){this.debug(e)}return!0}},{key:"preventAutocompletePopupToAppear",value:function(){a(window).on("resize",(function(){a(".ui-autocomplete").trigger("blur")}))}},{key:"debug",value:function(e,t){}}],null&&o(t.prototype,null),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),l=r(3193);function c(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function u(e,t){h(e,t),t.add(e)}function h(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function f(e,t,r){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return r}var p="ID",d="NAME",v=new WeakMap,g=new WeakSet,w=new WeakSet,m
//