PageSourceSearch

https://www.webstaurantstore.com/build/client/2544.2b2263cd2172a979aca3.bundle.js

js webstaurantstore.com collected 2026-09-24 08:30:22 UTC 4,026 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a59ae501-3419-44ab-b04e-9a25e7c17a34",e._sentryDebugIdIdentifier="sentry-dbid-a59ae501-3419-44ab-b04e-9a25e7c17a34")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"2026-23-Sep_07H-09M-57S_GMT-04:00"},(self.webpackChunkwebstaurantstore=self.webpackChunkwebstaurantstore||[]).push([[2544],{82544:(e,n,t)=>{t.r(n),t.d(n,{default:()=>d});var r=t(62540),a=t(63696);const i={id:"ri-barcode-line-usage",viewBox:"0 0 24 24",url:"/build/files/sprite-8403ce4f69170c7df1ff6dd0c6ed84cc.svg#ri-barcode-line",toString:function(){return this.url}},l={id:"ri-camera-line-usage",viewBox:"0 0 24 24",url:"/build/files/sprite-8403ce4f69170c7df1ff6dd0c6ed84cc.svg#ri-camera-line",toString:function(){return this.url}};var c=t(2804);function o(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function s(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,a,i=[],l=!0,c=!1;try{for(t=t.call(e);!(l=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);l=!0);}catch(e){c=!0,a=e}finally{try{l||null==t.return||t.return()}finally{if(c)throw a}}return i}}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return o(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return o(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const u=function(e){var n=e.className,t=e.extraListItemClasses,i=e.sprite,l=e.id,o=e.tabIndex,u=e.onClick,d=e.children,f=s((0,a.useState)(!1),2),b=f[0],m=f[1],p=(0,a.useCallback)((function(){u&&(m(!1),u())}),[m,u]),g=(0,a.useCallback)((function(){u&&m(!0)}),[m,u]),h=(0,a.useCallback)((function(){u&&m(!1)}),[m,u]),y=b?"bg-green-500":"bg-white",x=b?"text-white":"text-gray-800";return(0,r.jsx)("li",{className:"flex w-full p-0 ".concat(null!=t?t:""),children:(0,r.jsxs)("button",{className:"".concat(y," ").concat(x," mx-2 flex w-full items-center justify-between rounded-normal border-0 px-2 py-1.5 text-sm font-normal ").concat(null!=n?n:""),id:l,"data-testid":l,role:"menuitem",tabIndex:o,type:"button",onClick:p,onMouseUp:h,onBlur:h,onTouchStart:g,onTouchEnd:h,children:[d,(0,r.jsx)(c.In,{sprite:i,size:"xsmall",theme:"wss"})]})})};const d=function(e){var n=e.isOpened,t=e.closeMenu,c=e.setBarcodeScannerOpen,o=e.inputElementRef,s=e.setImageSelectOpen,d=(0,a.useRef)(null),f=function(e){var n=e.target;!d.current||d.current.contains(n)||n.classList.contains("search-bar-image-search")||t()};return(0,a.useEffect)((function(){return document.addEventListener("click",f,!0),function(){document.removeEventListener("click",f,!0)}}),[]),(0,r.jsx)(r.Fragment,{children:n&&(0,r.jsx)("div",{ref:d,children:(0,r.jsxs)("ul",{"aria-labelledby":"image search menu",className:"absolute right-0 top-full z-[60] m-0 mt-1 w-[170px] list-none rounded-[4px] bg-white px-0 py-1.5 shadow-md",role:"menu",children:[(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("li",{className:"flex w-full px-3 py-1 text-xs-1/2 leading-3 text-gray-500",style:{letterSpacing:"1px"},children:"SEARCH WITH AN IMAGE"}),(0,r.jsx)(u,{id:"image-search-photo-library",sprite:l,onClick:function(){var e;t(),s(!0),null===(e=o.current)||void 0===e||e.click()},children:"Image search"})]}),(0,r.jsx)(u,{id:"image-search-scan-barcode",sprite:i,onClick:function(){c(!0)},children:"Scan a barcode"})]})})})}}}]);
2//# sourceMappingURL=2544.2b2263cd2172a979aca3.bundle.js.map

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.