PageSourceSearch

https://filthyrichevents.com/_next/static/chunks/pages/dev/analytics-c404503367dc37f1.js

js filthyrichevents.com collected 2026-10-08 13:43:58 UTC 6,859 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1813],{79739:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dev/analytics",function(){return n(75814)}])},75814:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return d},default:function(){return m}});var r=n(35666),s=n.n(r),a=n(85893),c=n(71881),i=n(67294),l=n(53990);function o(e,t,n,r,s,a,c){try{var i=e[a](c),l=i.value}catch(o){return void n(o)}i.done?t(l):Promise.resolve(l).then(r,s)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(r,s){var a=e.apply(t,n);function c(e){o(a,r,s,c,i,"next",e)}function i(e){o(a,r,s,c,i,"throw",e)}c(void 0)}))}}var d=!0;function m(e){var t=(0,i.useState)(null),n=t[0],r=t[1],o=(0,i.useState)(!1),d=o[0],m=o[1],h=(0,i.useState)(1),f=h[0],p=h[1],x=(0,i.useState)(1),v=x[0],j=x[1],g=(0,i.useState)(new URL("http://18976371.localhost/dev/analytics")),w=g[0],N=g[1];function y(){return(y=u(s().mark((function e(t){var n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return j(1),m(!0),t.preventDefault(),(n=new URL("".concat(window.location.origin,"/api/dev/get-filtered-sites"))).searchParams.set("sortBy",t.target.sortBy.value),n.searchParams.set("sort",t.target.sort.value),n.searchParams.set("perPage",f),N(n),e.next=10,fetch("/api/dev/get-filtered-sites".concat(n.search),{method:"GET"}).then((function(e){return e.json()})).then((function(e){r(e.data)})).finally((function(){return m(!1)}));case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var b=u(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),j((function(e){return e+1})),w.searchParams.set("page",v),console.log(f),e.next=6,fetch("/api/dev/get-filtered-sites".concat(w.search),{method:"GET"}).then((function(e){return e.json()})).then((function(e){var t=n.concat(e.data);r(t)})).finally((function(){return m(!1)}));case 6:case"end":return e.stop()}}),e)}))),_=function(e){var t=new Date(e),n=(0,new Intl.DateTimeFormat("en-US",{month:"long"}).format)(t);return"".concat(n," ").concat(t.getDate(),", ").concat(t.getFullYear())};return(0,a.jsxs)(c.Z,{children:[(0,a.jsx)("h2",{children:"Analytics"}),(0,a.jsx)("form",{onSubmit:function(e){return y.apply(this,arguments)},children:(0,a.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,a.jsxs)("div",{className:"flex items-center flex-wrap justify-center gap-3",children:[(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("label",{children:"SortBy"}),(0,a.jsxs)("select",{name:"sortBy",className:"bg-gray-100 w-52 h-8",children:[(0,a.jsx)("option",{value:"createdAt",children:"Time created"}),(0,a.jsx)("option",{value:"updatedAt",children:"Time updated"}),(0,a.jsx)("option",{value:"sub_domain",children:"Sub domain"})]})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("label",{children:"Sort"}),(0,a.jsxs)("select",{name:"sort",className:"bg-gray-100 w-52 h-8",children:[(0,a.jsx)("option",{value:"asc",children:"Ascending"}),(0,a.jsx)("option",{value:"desc",children:"Descending"})]})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("label",{children:"Items per load"}),(0,a.jsx)("select",{onChange:function(e){p(e.target.value),r(null)},name:"perpage",className:"bg-gray-100 w-52 h-8",children:new Array(10).fill(0).map((function(e,t){return(0,a.jsx)("option",{value:t+1,children:t+1},t)}))})]})]}),(0,a.jsx)("button",{className:"bg-blue-500 p-2 w-36 rounded-md text-white-50",type:"submit",children:"Search"})]})}),(0,a.jsx)("div",{className:"h-12 flex items-center",children:d&&(0,a.jsx)(l.j8h,{className:"animate-spin"})}),n&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 justify-items-center gap-6 mt-2",children:null===n||void 0===n?void 0:n.map((function(e,t){var n;return(0,a.jsxs)("div",{className:"w-96 max-w-[95%] h-52 bg-blue-100 rounded-md p-6",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"font-medium",children:"Organizer Id:"}),(0,a.jsx)("p",{children:e.organizer_id})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"font-medium whitespace-nowrap",children:"Business N
1ame:"}),(0,a.jsx)("p",{className:"line-clamp-1",children:null===(n=e.business)||void 0===n?void 0:n.business_name})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"font-medium whitespace-nowrap",children:"Sub domain:"}),(0,a.jsx)("p",{className:"line-clamp-1",children:e.sub_domain?e.sub_domain:"NA"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"font-medium whitespace-nowrap",children:"Created on:"}),(0,a.jsx)("p",{className:"line-clamp-1",children:_(e.createdAt)})]})]},t)}))}),(0,a.jsx)("button",{disabled:d,type:"button",onClick:b,className:"bg-blue-500 p-2 w-36 h-10 flex justify-center items-center rounded-md text-white-50 my-6",children:d?(0,a.jsx)(l.j8h,{className:"animate-spin"}):"Load more"})]})]})}},71881:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(85893);function s(e){return(0,r.jsx)("div",{className:"flex flex-col items-center",children:e.children})}},88357:function(e,t,n){"use strict";n.d(t,{w_:function(){return o}});var r=n(67294),s={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a=r.createContext&&r.createContext(s),c=function(){return(c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)},i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var s=0;for(r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]])}return n};function l(e){return e&&e.map((function(e,t){return r.createElement(e.tag,c({key:t},e.attr),l(e.child))}))}function o(e){return function(t){return r.createElement(u,c({attr:c({},e.attr)},t),l(e.child))}}function u(e){var t=function(t){var n,s=e.attr,a=e.size,l=e.title,o=i(e,["attr","size","title"]),u=a||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),r.createElement("svg",c({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,s,o,{className:n,style:c(c({color:e.color||t.color},t.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),l&&r.createElement("title",null,l),e.children)};return void 0!==a?r.createElement(a.Consumer,null,(function(e){return t(e)})):t(s)}}},function(e){e.O(0,[3609,9774,2888,179],(function(){return t=79739,e(e.s=t);var t}));var t=e.O();_N_E=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.