PageSourceSearch

https://namekeeper.com/js/components.js

js namekeeper.com collected 2026-10-10 01:19:12 UTC 8,509 bytes, 1 lines download raw bytes

1(self.webpackChunk=self.webpackChunk||[]).push([[8],{2041:()=>{function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}window.Components={},window.Components.listbox=function(n){var i,o,s;return function(n){for(var i=1;i<arguments.length;i++){var o=null!=arguments[i]?arguments[i]:{};i%2?e(Object(o),!0).forEach((function(e){t(n,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}))}return n}((o={init:function(){var e=this;this.optionCount=this.$refs.listbox.children.length,this.$watch("activeIndex",(function(t){e.open&&(null!==e.activeIndex?e.activeDescendant=e.$refs.listbox.children[e.activeIndex].id:e.activeDescendant="")}))},activeDescendant:null,optionCount:null,open:!1,activeIndex:null,selectedIndex:0,get active(){return this.items[this.activeIndex]}},(s={})[i=n.modelName||"selected"]=s[i]||{},s[i].get=function(){return this.items[this.selectedIndex]},t(o,"choose",(function(e){this.selectedIndex=e,this.open=!1})),t(o,"onButtonClick",(function(){var e=this;this.open||(this.activeIndex=this.selectedIndex,this.open=!0,this.$nextTick((function(){e.$refs.listbox.focus(),e.$refs.listbox.children[e.activeIndex].scrollIntoView({block:"nearest"})})))})),t(o,"onOptionSelect",(function(){null!==this.activeIndex&&(this.selectedIndex=this.activeIndex),this.open=!1,this.$refs.button.focus()})),t(o,"onEscape",(function(){this.open=!1,this.$refs.button.focus()})),t(o,"onArrowUp",(function(){this.activeIndex=this.activeIndex-1<0?this.optionCount-1:this.activeIndex-1,this.$refs.listbox.children[this.activeIndex].scrollIntoView({block:"nearest"})})),t(o,"onArrowDown",(function(){this.activeIndex=this.activeIndex+1>this.optionCount-1?0:this.activeIndex+1,this.$refs.listbox.children[this.activeIndex].scrollIntoView({block:"nearest"})})),function(e,t){for(var n in t)(s=t[n]).configurable=s.enumerable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,n,s);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(t),o=0;o<i.length;o++){var s,a=i[o];(s=t[a]).configurable=s.enumerable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,a,s)}}(o,s),o),n)},window.Components.menu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{open:!1};return{init:function(){var e=this;this.items=Array.from(this.$el.querySelectorAll('[role="menuitem"]')),this.$watch("open",(function(){e.open&&(e.activeIndex=-1)}))},activeDescendant:null,activeIndex:null,items:null,open:e.open,focusButton:function(){this.$refs.button.focus()},onButtonClick:function(){var e=this;this.open=!this.open,this.open&&this.$nextTick((function(){e.$refs["menu-items"].focus()}))},onButtonEnter:function(){var e=this;this.open=!this.open,this.open&&(this.activeIndex=0,this.activeDescendant=this.items[this.activeIndex].id,this.$nextTick((function(){e.$refs["menu-items"].focus()})))},onArrowUp:function(){if(!this.open)return this.open=!0,this.activeIndex=this.items.length-1,void(this.activeDescendant=this.items[this.activeIndex].id);0!==this.activeIndex&&(this.activeIndex=-1===this.activeIndex?this.items.length-1:this.activeIndex-1,this.activeDescendant=this.items[this.activeIndex].id)},onArrowDown:function(){if(!this.open)return this.open=!0,this.activeIndex=0,void(this.activeDescendant=this.items[this.activeIndex].id);this.activeIndex!==this.items.length-1&&(this.activeIndex=this.activeIndex+1,this.activeDescendant=this.items[this.activeIndex].id)},onClickAway:function(e){if(this.open){var t=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((function(e){return"".concat(e,":not([tabindex='-1'])")})).join(",");this.open=!1,e.target.closest(t)||this.focusButton()}}}},window.Components.popoverGroup=function(){return{__type:"popoverGroup",init:function(){var e=this;window.addEventListener("focus",(function t(n){document.body.contains(e.$el)?n.target instanceof Element&&!e.$el.contains(n.target)&&window.dispatchEvent(new CustomEvent("close-popover-group",{detail:e.$el})):window.removeEventListener("focus",t,!0)}),!0)}}},window.Components.popover=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.open,n=void 0!==t&&t,i=e.focus,o=void 0!==i&&i,s=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((function(e){return"".concat(e,":not([tabindex='-1'])")})).join(",");return{__type:"popover",open:n,init:function(){var e=this;o&&this.$watch("open",(function(t){t&&e.$nextTick((function(){!function(e){var t=Array.from(e.querySelectorAll(s));!function e(n){void 0!==n&&(n.focus({preventScroll:!0}),document.activeElement!==n&&e(t[t.indexOf(n)+1]))}(t[0])}(e.$refs.panel)}))}
1));window.addEventListener("focus",(function t(n){if(document.body.contains(e.$el)){var i=o?e.$refs.panel:e.$el;if(e.open&&n.target instanceof Element&&!i.contains(n.target)){for(var s=e.$el;s.parentNode;)if((s=s.parentNode).__x instanceof e.constructor){if("popoverGroup"===s.__x.$data.__type)return;if("popover"===s.__x.$data.__type)break}e.open=!1}}else window.removeEventListener("focus",t,!0)}),!0)},onEscape:function(){this.open=!1,this.restoreEl&&this.restoreEl.focus()},onClosePopoverGroup:function(e){e.detail.contains(this.$el)&&(this.open=!1)},toggle:function(e){this.open=!this.open,this.open?this.restoreEl=e.currentTarget:this.restoreEl&&this.restoreEl.focus()}}},window.Components.radioGroup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.initialCheckedIndex,n=void 0===t?0:t;return{value:void 0,active:void 0,init:function(){var e,t=this,i=Array.from(this.$el.querySelectorAll("input"));this.value=null===(e=i[n])||void 0===e?void 0:e.value;for(var o=function(){var e=a[s];e.addEventListener("change",(function(){t.active=e.value})),e.addEventListener("focus",(function(){t.active=e.value}))},s=0,a=i;s<a.length;s++)o();window.addEventListener("focus",(function(){console.log("Focus change"),i.includes(document.activeElement)||(console.log("HIT"),t.active=void 0)}),!0)}}},window.Components.tabs=function(){return{onTabClick:function(e){if(this.$el.contains(e.detail)){var t=Array.from(this.$el.querySelectorAll('[x-data^="Components.tab("]')),n=Array.from(this.$el.querySelectorAll('[x-data^="Components.tabPanel("]'));window.dispatchEvent(new CustomEvent("tab-select",{detail:{tab:e.detail,panel:n[t.indexOf(e.detail)]}}))}},onTabKeydown:function(e){if(this.$el.contains(e.detail.tab)){var t=Array.from(this.$el.querySelectorAll('[x-data^="Components.tab("]')),n=t.indexOf(e.detail.tab);
1"ArrowLeft"===e.detail.key?this.onTabClick({detail:t[(n-1+t.length)%t.length]}):"ArrowRight"===e.detail.key?this.onTabClick({detail:t[(n+1)%t.length]}):"Home"===e.detail.key||"PageUp"===e.detail.key?this.onTabClick({detail:t[0]}):"End"!==e.detail.key&&"PageDown"!==e.detail.key||this.onTabClick({detail:t[t.length-1]})}}}},window.Components.tab=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return{selected:!1,init:function(){var t=this,n=Array.from(this.$el.closest('[x-data^="Components.tabs("]').querySelectorAll('[x-data^="Components.tab("]'));this.selected=n.indexOf(this.$el)===e,this.$watch("selected",(function(e){e&&t.$el.focus()}))},onClick:function(){window.dispatchEvent(new CustomEvent("tab-click",{detail:this.$el}))},onKeydown:function(e){["ArrowLeft","ArrowRight","Home","PageUp","End","PageDown"].includes(e.key)&&e.preventDefault(),window.dispatchEvent(new CustomEvent("tab-keydown",{detail:{tab:this.$el,key:e.key}}))},onTabSelect:function(e){this.selected=e.detail.tab===this.$el}}},window.Components.tabPanel=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return{selected:!1,init:function(){var t=Array.from(this.$el.closest('[x-data^="Components.tabs("]').querySelectorAll('[x-data^="Components.tabPanel("]'));this.selected=t.indexOf(this.$el)===e},onTabSelect:function(e){this.selected=e.detail.panel===this.$el}}}}},e=>{"use strict";var t;t=2041,e(e.s=t)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.