PageSourceSearch

https://troutmuseumart.org/wp-content/plugins/shopwp-pro/dist/SearchModal-public.7f3ffc31e6421c1d41dc.js

js troutmuseumart.org collected 2026-10-09 18:10:44 UTC 1,398 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkshopwp=self.webpackChunkshopwp||[]).push([["SearchModal-public"],{"./npm-packages/@shopwp/components/src/search/form/modal/index.jsx"(e,s,t){t.r(s),t.d(s,{default:()=>r});var n=t("./npm-packages/@shopwp/components/src/products/product/index.jsx"),o=t("./npm-packages/@shopwp/components/src/pagination/index.jsx"),a=t("./npm-packages/@shopwp/components/src/notice/index.jsx"),c=t("./npm-packages/@shopwp/components/src/items/_state/payload/hooks.jsx"),p=t("./npm-packages/@shopwp/components/src/items/_state/settings/hooks.jsx");const r=function(e){var s=e.searchTerm,t=e.setIsShowingModal,r=wp.element,m=r.useEffect,i=(0,r.useRef)(null),d=(0,c.Z)(),u=(0,p.s)(),l=document.getElementsByTagName("body")[0],h=function(e){var s=document.body.classList.contains("swp-modal-open");if(i.current&&!i.current.contains(e.target)){if(s)return;t(!1)}};return m((function(){return s?(l.classList.add("shopwp-is-searching"),document.addEventListener("mousedown",h)):(l.classList.remove("shopwp-is-searching"),document.removeEventListener("mousedown",h)),function(){document.removeEventListener("mousedown",h)}}),[s]),React.createElement("div",{ref:i,"data-has-search-term":!!s,className:"swp-search-modal"},d.length?React.createElement(o.A,{queryType:"products",payload:d},React.createElement(n.A,{settings:u})):React.createElement(a.default,{status:"info"},u.noResultsText))}}}]);

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.