var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opens = _____WB$wombat$assign$function_____("opens"); /** Shopify CDN: Minification failed Line 12:0 Transforming class syntax to the configured target environment ("es5") is not supported yet Line 13:13 Transforming object literal extensions to the configured target environment ("es5") is not supported yet Line 29:19 Transforming object literal extensions to the configured target environment ("es5") is not supported yet Line 30:4 Transforming const to the configured target environment ("es5") is not supported yet Line 38:10 Transforming object literal extensions to the configured target environment ("es5") is not supported yet Line 42:17 Transforming object literal extensions to the configured target environment ("es5") is not supported yet Line 46:13 Transforming object literal extensions to the configured target environment ("es5") is not supported yet **/ class SearchForm extends HTMLElement { constructor() { super(); this.input = this.querySelector('input[type="search"]'); this.resetButton = this.querySelector('button[type="reset"]'); if (this.input) { this.input.form.addEventListener('reset', this.onFormReset.bind(this)); this.input.addEventListener( 'input', debounce((event) => { this.onChange(event); }, 300).bind(this) ); } } toggleResetButton() { const resetIsHidden = this.resetButton.classList.contains('hidden'); if (this.input.value.length > 0 && resetIsHidden) { this.resetButton.classList.remove('hidden'); } else if (this.input.value.length === 0 && !resetIsHidden) { this.resetButton.classList.add('hidden'); } } onChange() { this.toggleResetButton(); } shouldResetForm() { return !document.querySelector('[aria-selected="true"] a'); } onFormReset(event) { // Prevent default so the form reset doesn't set the value gotten from the url on page load event.preventDefault(); // Don't reset if the user has selected an element on the predictive search dropdown if (this.shouldResetForm()) { this.input.value = ''; this.input.focus(); this.toggleResetButton(); } } } customElements.define('search-form', SearchForm); } /* FILE ARCHIVED ON 17:47:42 Dec 27, 2023 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 04:38:08 Jan 06, 2026. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 0.807 exclusion.robots: 0.029 exclusion.robots.policy: 0.012 esindex: 0.015 cdx.remote: 55.849 LoadShardBlock: 71.389 (3) PetaboxLoader3.datanode: 117.676 (4) load_resource: 321.736 PetaboxLoader3.resolve: 263.236 */