PageSourceSearch

https://turbonegro.com/_next/static/chunks/5535-bed57b7bd6fc2acc.js

js turbonegro.com collected 2026-10-02 12:35:46 UTC 8,696 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5535],{19467:function(e,t,n){n.d(t,{Z:function(){return m}});var l=n(85893),s=n(37054),i=n(67294),a=n(10341),o=n(11163),r=n(72063),c=n(79570),d=n(18446),u=n.n(d);const g=["geometry"];function m(e){let{marks:t}=e;var n;const d=(0,c.S)(),[m,x]=(0,i.useState)([]),v=(0,o.useRouter)(),h=(0,i.useRef)(null);const f=function(e){const t=(0,i.useRef)();return u()(e,t.current)||(t.current=e),t.current}(t),p=r.qw.find((e=>e.name===(null===d||void 0===d?void 0:d.themeName))),{isLoaded:j}=(0,s.Ji)({id:"google-map-script",googleMapsApiKey:a.O.NEXT_PUBLIC_GOOGLE_MAPS_CLIENT_KEY,libraries:g}),b=null===p||void 0===p||null===(n=p.scheme.accents[0])||void 0===n?void 0:n[40];return(0,i.useEffect)((()=>{if(null===h.current||!j)return;const e=t.slice(0,250).map((e=>{var t,n,i,a;const o=e.name;if(!(null===(t=e.location)||void 0===t?void 0:t.lat)||!(null===(n=e.location)||void 0===n?void 0:n.lng))return null;const r="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='50' height='50'><rect width='50' height='50' fill='".concat(null===b||void 0===b?void 0:b.replace("#","%23"),"' /><text font-family=\"inter,sans-serif\" x='25' y='35' font-size='25px' text-anchor='middle' fill='black'>").concat(o[0],"\n        </text></svg>");return(0,l.jsx)(s.Jx,{position:{lat:null===(i=e.location)||void 0===i?void 0:i.lat,lng:null===(a=e.location)||void 0===a?void 0:a.lng},icon:e.image?{url:e.image,scaledSize:new google.maps.Size(20,20),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(0,0)}:{url:r,scaledSize:new google.maps.Size(20,20),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(0,0)},title:o,onClick:()=>{v.push(e.link)}},e.id)})).filter((e=>null!==e));x(e)}),[h.current,f,j]),(0,i.useEffect)((()=>{if(null===h.current)return;let e=new google.maps.LatLngBounds;m.forEach((t=>{e.extend(t.props.position)})),h.current.setCenter(e.getCenter()),h.current.fitBounds(e);const t=h.current.getZoom();t&&t>8&&h.current.setZoom(8)}),[m]),t&&t.length<1?null:(0,l.jsxs)(l.Fragment,{children:[t.length>250&&(0,l.jsxs)("div",{className:"text-accent mb-2 text-center text-xs",children:["Showing ",250," of ",t.length," map markers"]}),j&&(0,l.jsx)(s.b6,{onLoad:e=>{h.current=e},mapContainerClassName:"h-[18rem] rounded w-full",options:{fullscreenControl:!1,mapTypeControl:!1,streetViewControl:!1},children:m})]})}},64748:function(e,t,n){n.d(t,{I:function(){return y}});var l=n(85893),s=n(67294),i=n(53766),a=n(19467),o=n(97156),r=n(18922),c=n(67867),d=n(55178),u=n(79381),g=n(42393),m=n(92395),x=n(37174),v=n(49468),h=n(30077),f=n(12003),p=n(114),j=n(55349),b=n(78986),w=n(86501);const N={"a-z":{firstName:"asc"},"z-a":{firstName:"desc"},nearest:{distance:"asc"},mostRecent:{createdAt:"desc"},leastRecent:{createdAt:"asc"}};function y(e){let{users:t,questions:n,isLoadingGeneral:a,isFetching:v,hasNextPage:h,fetchNextPage:f,onSetActiveTab:p,onSearchChange:j,onSortChange:b,onFiltersChange:y,currentUserHasLocation:z,counts:k}=e;const[P,A]=(0,s.useState)(""),[E,L]=(0,s.useState)(!0),[R,I]=(0,s.useState)([]),[M,T]=(0,s.useState)("all"),Z=e=>{I(e),y(e)};return(0,l.jsx)(i.Zb,{edgeToEdgeMobile:!0,className:"relative z-20 overflow-visible",children:(0,l.jsxs)(i.aY,{className:"flex flex-col overflow-visible",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{children:(0,l.jsx)(o.I,{onChange:e=>{return t=e.target.value,A(t),void j(t);var t},value:P,placeholder:"Search",name:"search",actions:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(g.T,{className:(0,x.cn)("relative !bottom-auto !left-auto !right-auto !top-auto ",v?"opacity-100":"opacity-0"),active:!0}),!!(null===n||void 0===n?void 0:n.length)&&(0,l.jsx)(r.z,{type:"secondary",onClick:()=>L(!E),children:(0,l.jsx)(m.wHY,{size:"small"})}),(0,l.jsxs)(c.P,{size:"tiny",disabled:Boolean(P),selectClassName:(0,x.cn)(P&&"!text-foreground-20"),onChange:e=>{var t;return b(N[null===e||void 0===e||null===(t=e.target)||void 0===t?void 0:t.value])},children:[(0,l.jsx)("option",{value:"a-z",children:"A-Z"}),(0,l.jsx)("option",{value:"z-a",children:"Z-A"}),(0,l.jsx)("option",{value:"mostRecent",children:"Join date (descending)"}),(0,l.jsx)("option",{value:"leastRecent",children:"Join date (ascending)"}),z&&(0,l.jsx)("option",{value:"nearest",children:"Distance"})]})]}),icon:(0,l.jsx)(m.jVj,{})})}),E&&(0,l.jsxs)("div",{className:"mx-4 mt-1 flex flex-wrap items-center justify-between gap-1 sm:mx-0 sm:gap-2 sm:px-2",children:[(0,l.jsx)("div",{className:"flex flex-wrap items-center gap-1",children:null===n||void 0===n?void 0:n.filter((e=>e.alternatives.length>0)).map((e=>(0,l.jsx)(C,{question:e,selectedAlternatives:R,setSelectedAlternatives:Z},e.id)))}),R.length>0&&(0,l.jsx)(r.z,{type:"default",size:"small",danger:!0,onClick:()=>Z([]),children:"Clear Filters"})]})]}),(0,l.jsx)(i.xx,{}),(0,l.jsx)(u.g,{active:a,children:(0,l.jsxs)("div",{className:"",children:[(0,l.jsxs)(d.m,{type:"underlined",size:"medium",scrollable:!0,defaultActiveId:"all",activeId:M,onChange:e=>{T(e),R.length>0&&(I([]),y([]),(0,w.ZP)((()=>(0,l.jsx)("span",{children:"Some filters were reset"})))),p&&p(e)},children:[(0,l.jsx)(d.m.Panel,{id:"all",label:"All (".concat(k.all,")")}),(0,l.jsx)(d.m.Panel,{id:"followingMe",label:"Following me (".concat(k.followingMe,")")}),(0,l.jsx)(d.m.Panel,{id:"following",label:"Following (".concat(k.following,")")}),(0,l.jsx)(d.m.Panel,{id:"admins",label:"Admins (".concat(k.admins,")")})]}),(0,l.jsx)(S,{users:t,nextPageTrigger:h&&(0,l.jsx)("div",{className:"mb-4 mt-4 flex justify-center",children:(0,l.jsx)(r.z,{loading:v,type:"outline",loadingCentered:!0,size:"large",onClick:()=>f(),children:"Load More"})})})]})})]})})}const C=e=>{let{question:t,selectedAlternatives:n,setSelectedAlternatives:s}=e;var i;const a=n.map((e=>e.questionId)).includes(t.id);return(0,l.jsxs)(v.R,{className:"group",value:n,as:"div",onChange:s,multiple:!0,children:[(0,l.jsxs)(v.R.Button,{className:(0,f.cx)("border-foreground-10 bg-background dark:bg-background-10 text-foreground-10 relative my-1 w-full cursor-default rounded-full border py-1 pl-4 pr-8 text-left text-sm transition focus:outline-none  ",a&&"border-foreground bg-background-20 text-foreground"),children:[t.label,(0,l.jsx)("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2 ",children:(0,l.jsx)(m.C26,{className:"h-5 w-5 text-current","aria-hidden":"true"})})]}),(0,l.jsx)(v.R.Options,{className:"bg-background dark:bg-background-10 text-foreground ring-background-20 absolute z-50 mr-2 mt-1 max-h-60 max-w-sm divide-y overflow-auto rounded-md py-1 text-sm shadow-lg ring-1 ring-opacity-5 focus:outline-none",children:null===(i=t.alternatives)||void 0===i?void 0:i.map((e=>(0,l.jsx)(v.R.Option,{value:e,className:"relative cursor-default select-none py-2",children:t=>{let{selected:n}=t;return(0,l.jsx)("span",{className:"flex items-center justify-between gap-x-2 px-2",children:(0,l.jsx)(p.Z,{label:e.valueString,checked:n,className:"pointer-events-none",size:"small",disabled:!0})})}},e.id)))})]})},S=e=>{let{users:t,nextPageTrigger:n}=e;const i=(0,s.useRef)(null),o=(0,h.MG)({count:(null===t||void 0===t?void 0:t.length)||0,getScrollElement:()=>i.current,estimateSize:()=>86});if(!t)return null;const c=t.filter((e=>e.location)).map((e=>({id:e.id,location:e.location,image:e.avatar,name:"".concat(e.firstName," ").concat(e.lastName),link:"/user/".concat(e.slug)})));return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.Z,{marks:c}),(0,l.jsxs)("div",{ref:i,className:"List h-[calc(100vh-335px)] pe-2 sm:h-[c
1alc(100vh-384px)] md:h-[calc(100vh-328px)]",style:{width:"100%",overflow:"auto"},children:[(0,l.jsx)("div",{style:{height:"".concat(o.getTotalSize(),"px"),width:"100%",position:"relative"},children:o.getVirtualItems().map((e=>{const n=t[e.index];return n?(0,l.jsx)("div",{className:e.index%2?"ListItemOdd":"ListItemEven",style:{position:"absolute",top:0,left:0,width:"100%",height:"".concat(e.size,"px"),transform:"translateY(".concat(e.start,"px)")},children:(0,l.jsx)(j.O,{tenantUserProfile:n,children:(0,l.jsx)(b.M,{tenantUserProfile:{...n,phoneNumber:"***"},triggerElement:(0,l.jsx)(r.z,{type:"secondary",icon:(0,l.jsx)(m.clf,{})})})},n.id)},e.index):null}))}),n]})]})}},90224:function(e,t,n){n.d(t,{i:function(){return o}});var l=n(67294),s=n(52435),i=n(79570),a=n(69217);function o(e,t){var n;const o=null===(n=(0,a.e)())||void 0===n?void 0:n.id,r=(0,i.S)(),c=null===r||void 0===r?void 0:r.id,d=null===r||void 0===r?void 0:r.hostUrl.split(".")[0],u=(0,l.useRef)(!1),{mutate:g}=s.S.amplitude.log.useMutation();(0,l.useEffect)((()=>{if(o&&c&&d&&!u.current)try{u.current=!0,g({eventName:e,eventProps:t})}catch(n){}}),[o,c,d,e,g,t])}}}]);

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.