PageSourceSearch

https://hookingrugs.com/cdn/shop/t/34/assets/custom-select.js?v=65536759652016279431721816885

js hookingrugs.com collected 2026-09-26 00:47:55 UTC 1,869 bytes, 2 lines download raw bytes

1(async()=>{const{Core}=await importModule("Core"),{computePosition,flip}=await importModule("FloatingUI"),{$show,$hide,$isHidden}=await importModule("Utils"),CLASSNAME_SELECTED="active",CN_INIT="!init",SELECTOR_OPTION_CONTENT="[data-option-content]";customElements.define("x-select",class extends Core{elements={optionsList:"[data-options]",state:"[data-state]",options:"*[data-option]"};async render(){this.$currentOption=this.querySelector(`.${CLASSNAME_SELECTED}`)||"",this.$currentOption&&this._setCurrent(this.$currentOption.dataset.option),computePosition(this.$state,this.$optionsList,{placement:"bottom-end",strategy:"absolute",middleware:[flip()]}).then(({x,y})=>{Object.assign(this.$optionsList.style,{left:`${x}px`,top:`${y}px`}),this._hideList(),this.$optionsList.classList.remove(CN_INIT)}),this.$state.addEventListener("click",()=>{this.isHidden?this._showList():this._hideList()}),document.addEventListener("click",e=>{this.$optionsList.contains(e.target)||this.contains(e.target)||this._hideList()}),this.$options.map(option=>option.addEventListener("click",this._selectOption.bind(this)))}_selectOption({currentTarget}){this._hideList(),currentTarget!==this.$currentOption&&(this.$currentOption&&this.$currentOption.classList.remove(CLASSNAME_SELECTED),this.$currentOption=currentTarget,this.$currentOption.classList.add(CLASSNAME_SELECTED),this._setCurrent(this.$currentOption.dataset.option),this.dispatchEvent(new CustomEvent("x-change",{detail:{value:this.value}})))}_setCurrent(value){this.value=value,this.$state.replaceChildren(...this.$currentOption.querySelector(SELECTOR_OPTION_CONTENT).cloneNode(!0).childNodes)}_showList(){$show(this.$optionsList)}_hideList(){$hide(this.$optionsList)}get isHidden(){return $isHidden(this.$optionsList)}})})();
2//# sourceMappingURL=/cdn/shop/t/34/assets/custom-select.js.map?v=65536759652016279431721816885

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.