PageSourceSearch

https://www.hormelfoods.com/wp-content/themes/hormel-foods/js/search-toggle.c4405ed2.js

js hormelfoods.com collected 2026-10-02 04:00:31 UTC 1,721 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[256],{9298:(e,t,r)=>{r.r(t),r.d(t,{init:()=>l});var s=r(5152),o=r(414),n=r(1669),i=r.n(n),a=r(5842),h=[];function l(){document.querySelectorAll("[data-hormel-foods-search-toggle]").forEach(function(e){return h.push(new c(e))})}var c=function(){return(0,o.A)(function e(t){(0,s.A)(this,e),this.closed=!0,this.el=t,this.$el=i()(this.el),this.icon=new a.I(this.el.querySelector(".icon")),this.drawerClass=".".concat(this.$el.data("hormel-foods-search-toggle")),this.$drawer=i()(this.drawerClass),this.$drawerInput=this.$drawer.find(".c-search-drawer__input").first(),this.$drawer.length&&(document.addEventListener("HormelFoods:SearchToggle:close",this.closeDrawer.bind(this)),document.addEventListener("HormelFoods:SearchToggle:open",this.openDrawer.bind(this)),document.addEventListener("HormelFoods:SearchToggle:toggle",this.openDrawer.bind(this)),this.$el.on("click",this.onClick.bind(this)))},[{key:"closeDrawer",value:function(){this.closed=!0,this.$drawer.fadeOut(),this.$drawer.removeClass("c-search-drawer--is-open"),this.icon.setState("collapse")}},{key:"focusDrawerInput",value:function(){this.$drawerInput.length&&this.$drawerInput.trigger("focus")}},{key:"onClick",value:function(e){e.preventDefault(),this.toggleDrawer()}},{key:"openDrawer",value:function(){document.dispatchEvent(new Event("HormelFoods:Dropdown:closeAllSubnavs")),document.dispatchEvent(new Event("HormelFoods:NavToggle:close")),this.closed=!1,this.$drawer.fadeIn(),this.$drawer.addClass("c-search-drawer--is-open"),this.icon.setState("expand"),this.focusDrawerInput()}},{key:"toggleDrawer",value:function(){this.closed?this.openDrawer():this.closeDrawer()}}])}()}}]);

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.