PageSourceSearch

https://cms-assets.wishup.co/static-assets/cc1156a/_next/static/chunks/pages/tools-060ffe6b5f721ff0.js

js wishup.co collected 2026-10-01 12:20:55 UTC 2,553 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4765abc9-4a08-438c-8252-8397c99d7105",e._sentryDebugIdIdentifier="sentry-dbid-4765abc9-4a08-438c-8252-8397c99d7105")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9289],{88110:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/tools",function(){return n(72264)}])},72264:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return _},default:function(){return AllServices}});var s=n(85893),o=n(67294),i=n(90149),l=n(41458),a=n(15683),r=n(25855),d=n.n(r),c=n(74921),u=n(40046),_=!0;function AllServices(e){var t,n,r,_,f;let{strapi_data:h,data:v}=e,[b,x]=(0,o.useState)(!1),[w,m]=(0,o.useState)(!1),[p,j]=(0,o.useState)(""),[y,S]=(0,o.useState)([]),[g,T]=(0,o.useState)(!1);async function SearchHandler(e){if(!e||0===e.length){x(!1),m(!1);return}x(!0);let t=await fetch("/api/meilisearch",{method:"POST",body:JSON.stringify({search_term:e,index:"tool"})});if(!t.ok)throw m(!1),x(!1),T(!0),Error("Network response was not ok");m(!0),x(!1);let n=await t.json(),{hits:s}=n;S(s),s&&0!==s.length||T(!0)}return(0,o.useEffect)(()=>{if(x(!0),p&&0!==p.length){let e=setTimeout(()=>{SearchHandler(p)},2500);return()=>clearTimeout(e)}x(!1)},[p]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u.Z,{seo_data:null==v?void 0:null===(t=v.attributes)||void 0===t?void 0:t.seo}),(0,s.jsx)(i.Z,{handleUserSearchInput:function(e){m(!1),T(!1),j(e)},title:"Top Tools"}),b&&(0,s.jsxs)("div",{className:"d-flex justify-content-center",children:[(0,s.jsx)("div",{className:"spinner-border text-dark",role:"status"}),(0,s.jsx)("div",{className:"mx-3",children:(0,s.jsx)("span",{className:d().service_search_loader_text,children:"Awesomeness loading"})})]}),!w&&(0,s.jsx)(l.Z,{section_title:"Recommended Tools",section_data:null==v?void 0:null===(r=v.attributes)||void 0===r?void 0:null===(n=r.recommended_tools)||void 0===n?void 0:n.data}),w&&(0,s.jsx)(l.Z,{section_title:"Search Results",section_data:y}),g&&(0,s.jsx)(c.Z,{}),(0,s.jsx)(l.Z,{section_title:"Top Tools",section_data:null==v?void 0:null===(f=v.attributes)||void 0===f?void 0:null===(_=f.top_tools)||void 0===_?void 0:_.data}),(0,s.jsx)(a.Z,{title:"tools_discovery"}),(0,s.jsx)(l.Z,{section_title:"All Tools",section_data:h})]})}}},function(e){e.O(0,[6931,3155,9774,2888,179],function(){return e(e.s=88110)}),_N_E=e.O()}]);

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.