PageSourceSearch

https://mindtrip.ai/_next/static/chunks/pages/admin/[[...slug]]-b799eb818e136495.js

js mindtrip.ai collected 2026-09-24 17:10:54 UTC 20,246 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9611],{10207:(e,n,t)=>{"use strict";t.d(n,{l:()=>d});var l=t(37876),s=t(27964),a=t(14232),r=t(18847),i=t.n(r),c=t(63282);let o=i()(()=>t.e(6712).then(t.bind(t,96712)),{loadableGenerated:{webpack:()=>[96712]},ssr:!1});function d(e){let n,t,r,i,d=(0,s.c)(9),{onSelectOwner:h}=e,[m,x]=(0,a.useState)(!1),u=(0,c.k7)();d[0]!==u?(n=()=>{u(),x(!0)},d[0]=u,d[1]=n):n=d[1];let p=n;d[2]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{x(!1)},d[2]=t):t=d[2];let f=t;d[3]!==h||d[4]!==m?(r=m?(0,l.jsx)(o,{open:m,onOpenChange:e=>{e||f()},handleSelectOwnerCallback:e=>{h(e),f()}}):null,d[3]=h,d[4]=m,d[5]=r):r=d[5];let j=r;return d[6]!==j||d[7]!==p?(i={openInspirationSelectOwnerDialog:p,closeInspirationSelectOwnerDialog:f,InspirationSelectOwnerDialog:j},d[6]=j,d[7]=p,d[8]=i):i=d[8],i}},16270:(e,n,t)=>{"use strict";t.d(n,{k:()=>d});var l=t(37876),s=t(27964),a=t(14232),r=t(74302),i=t(18564),c=t(41231),o=t(44546);function d(e){let n,t,d,h,m,x,u,p,f,j,g,v,b,y,N=(0,s.c)(29),{children:w,className:C,scrollClassName:S,selectedValue:k,loading:_,role:A}=e,E=void 0===A?"tablist":A,T=(0,i.Bd)(),V=(0,a.useRef)(null),[G,L]=(0,a.useState)(!1),[z,B]=(0,a.useState)(!1);N[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{let e=V.current;if(!e)return;let n=Math.abs(e.scrollWidth-e.clientWidth)>1;L(e.scrollLeft>0),B(n&&e.scrollLeft<e.scrollWidth-e.clientWidth-1)},N[0]=n):n=N[0];let P=n;N[1]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{let e=V.current;if(!e)return;let n=new ResizeObserver(P);return n.observe(e),e.parentElement&&n.observe(e.parentElement),e.addEventListener("scroll",P),P(),()=>{n.disconnect(),e.removeEventListener("scroll",P)}},d=[P],N[1]=t,N[2]=d):(t=N[1],d=N[2]),(0,a.useEffect)(t,d),N[3]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{V.current&&(V.current.scrollLeft=0,P())},N[3]=h):h=N[3],N[4]!==_?(m=[_,P],N[4]=_,N[5]=m):m=N[5],(0,a.useEffect)(h,m),N[6]!==k?(x=()=>{let e=V.current;if(k&&e){let n=e.querySelector('[aria-selected="true"]');if(n instanceof HTMLElement){let t=e.getBoundingClientRect(),l=n.getBoundingClientRect(),s=e.scrollLeft+l.left-t.left-t.width/2+l.width/2;e.scrollTo({left:s,behavior:"smooth"})}}},u=[k],N[6]=k,N[7]=x,N[8]=u):(x=N[7],u=N[8]),(0,a.useEffect)(x,u),N[9]===Symbol.for("react.memo_cache_sentinel")?(p=()=>{let e=V.current;e&&(e.scrollLeft=e.scrollLeft-e.clientWidth)},N[9]=p):p=N[9];let R=p;N[10]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{let e=V.current;e&&(e.scrollLeft=e.scrollLeft+e.clientWidth)},N[10]=f):f=N[10];let W=f;N[11]!==C?(j=(0,r.cn)("group/overflow-nav relative -mx-(--px) scroll-fade-x overflow-hidden",C),N[11]=C,N[12]=j):j=N[12];let $=_&&"overflow-hidden";return N[13]!==S||N[14]!==$?(g=(0,r.cn)("scrollbar-hidden flex overflow-x-auto scroll-smooth px-(--px) whitespace-nowrap *:shrink-0",$,S),N[13]=S,N[14]=$,N[15]=g):g=N[15],N[16]!==w||N[17]!==E||N[18]!==g?(v=(0,l.jsx)("div",{ref:V,className:g,role:E,children:w}),N[16]=w,N[17]=E,N[18]=g,N[19]=v):v=N[19],N[20]!==_||N[21]!==z||N[22]!==G||N[23]!==T?(b=!_&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:(0,r.cn)("absolute inset-y-0 left-0 z-1 hidden opacity-0 transition-opacity group-hover/overflow-nav:opacity-100 can-hover:block",!G&&"pointer-events-none opacity-0!"),children:(0,l.jsx)("button",{type:"button","aria-label":T("previous"),onClick:R,className:"flex h-full min-w-(--px) items-center bg-linear-to-l from-background/0 via-background/90 via-30% to-background pr-4 pl-1.5",children:(0,l.jsx)(c.A,{size:18,strokeWidth:2})})}),(0,l.jsx)("div",{className:(0,r.cn)("absolute inset-y-0 right-0 z-1 hidden opacity-0 transition-opacity group-hover/overflow-nav:opacity-100 can-hover:block",!z&&"pointer-events-none opacity-0!"),children:(0,l.jsx)("button",{type:"button","aria-label":T("next"),onClick:W,className:"flex h-full min-w-(--px) items-center bg-linear-to-r from-background/0 via-background/90 via-30% to-background pr-1.5 pl-4",children:(0,l.jsx)(o.A,{size:18,strokeWidth:2})})})]}),N[20]=_,N[21]=z,N[22]=G,N[23]=T,N[24]=b):b=N[24],N[25]!==j||N[26]!==v||N[27]!==b?(y=(0,l.jsxs)("div",{className:j,children:[v,b]}),N[25]=j,N[26]=v,N[27]=b,N[28]=y):y=N[28],y}},25796:(e,n,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[[...slug]]",function(){return t(87201)}])},63282:(e,n,t)=>{"use strict";t.d(n,{H7:()=>m,k7:()=>h,zK:()=>d});
1var l=t(37876),s=t(27964),a=t(14232),r=t(8153),i=t(42512),c=t(32516),o=t(41028);function d(e){let n,t,d,h,m=(0,s.c)(10),{selectOpen:x,Component:u,summonKeyboard:p}=e,f=void 0!==p&&p,j=(0,c.GV)(x),g=(0,c.GV)(i.YN);m[0]!==f?(n=e=>"function"==typeof f?f(e):f,m[0]=f,m[1]=n):n=m[1];let v=(0,c.GV)(n),b=(0,a.useRef)(!1);return m[2]!==g||m[3]!==j||m[4]!==v?(t=()=>{let e=b.current;b.current=j,j&&!e&&g&&v&&(0,o.w5)()&&(0,o.hY)()},d=[j,g,v],m[2]=g,m[3]=j,m[4]=v,m[5]=t,m[6]=d):(t=m[5],d=m[6]),(0,r.E)(t,d),m[7]!==u||m[8]!==j?(h=j?(0,l.jsx)(u,{}):null,m[7]=u,m[8]=j,m[9]=h):h=m[9],h}function h(){let e,n=(0,s.c)(2),t=(0,c.GV)(i.YN);return n[0]!==t?(e=()=>{t&&(0,o.hY)()},n[0]=t,n[1]=e):e=n[1],e}function m(e){let n,t,l=(0,s.c)(3);l[0]!==e?(n=()=>{let n=()=>e.forEach(x);if("function"==typeof window.requestIdleCallback){let e=window.requestIdleCallback(n);return()=>window.cancelIdleCallback(e)}let t=window.setTimeout(n,200);return()=>window.clearTimeout(t)},t=[e],l[0]=e,l[1]=n,l[2]=t):(n=l[1],t=l[2]),(0,a.useEffect)(n,t)}function x(e){e().catch(()=>{})}},87201:(e,n,t)=>{"use strict";t.r(n),t.d(n,{__N_SSP:()=>es,default:()=>ea});
1var l=t(37876),s=t(27964),a=t(14232),r=t(10207),i=t(74269),c=t(34712),o=t(88400),d=t(96479),h=t(74302),m=t(4917),x=t.n(m),u=t(26579),p=t(4294),f=t(34265),j=t(66811),g=t(92762),v=t(17711),b=t(32516),y=t(26360),N=t(25834),w=t(85952),C=t(54100),S=t(16962),k=t(18766),_=t(34279),A=t(20658),E=t(49320),T=t(76052),V=t(19838),G=t(85539),L=t(78115),z=t(85758),B=t(19958),P=t(16270),R=t(58336),W=t(82532),$=t(50436),M=t(81684);let D={"":"All",all:"All",more:"Has Count",zero:"0 Count"},I=e=>{let n,t,a,r,i,c,o,d=(0,s.c)(13),{showByType:m,handleShowByTypeChange:x,className:u}=e;return d[0]!==x?(n=e=>null!=e&&x(e),d[0]=x,d[1]=n):n=d[1],d[2]!==u?(t=(0,h.cn)("flex items-center gap-[.3em]",u),d[2]=u,d[3]=t):t=d[3],d[4]===Symbol.for("react.memo_cache_sentinel")?(a=(0,l.jsx)(E.yv,{}),r=(0,l.jsx)(W.A,{}),d[4]=a,d[5]=r):(a=d[4],r=d[5]),d[6]!==t?(i=(0,l.jsx)(E.bq,{render:(0,l.jsxs)("button",{type:"button",className:t,children:[a,r]})}),d[6]=t,d[7]=i):i=d[7],d[8]===Symbol.for("react.memo_cache_sentinel")?(c=(0,l.jsx)(E.gC,{alignItemWithTrigger:!1,children:Object.entries(D).filter(K).map(Q)}),d[8]=c):c=d[8],d[9]!==m||d[10]!==n||d[11]!==i?(o=(0,l.jsxs)(E.l6,{value:m,onValueChange:n,items:D,children:[i,c]}),d[9]=m,d[10]=n,d[11]=i,d[12]=o):o=d[12],o},O={"":"All",all:"All","only-mindtrip":"@mindtrip.ai","non-mindtrip":"Not @mindtrip.ai"},U=e=>{let n,t,a,r,i,c,o,d=(0,s.c)(13),{showByType:m,handleShowByTypeChange:x,className:u}=e;return d[0]!==x?(n=e=>null!=e&&x(e),d[0]=x,d[1]=n):n=d[1],d[2]!==u?(t=(0,h.cn)("flex items-center gap-[.3em]",u),d[2]=u,d[3]=t):t=d[3],d[4]===Symbol.for("react.memo_cache_sentinel")?(a=(0,l.jsx)(E.yv,{}),r=(0,l.jsx)(W.A,{}),d[4]=a,d[5]=r):(a=d[4],r=d[5]),d[6]!==t?(i=(0,l.jsx)(E.bq,{render:(0,l.jsxs)("button",{type:"button",className:t,children:[a,r]})}),d[6]=t,d[7]=i):i=d[7],d[8]===Symbol.for("react.memo_cache_sentinel")?(c=(0,l.jsx)(E.gC,{alignItemWithTrigger:!1,children:Object.entries(O).filter(Z).map(ee)}),d[8]=c):c=d[8],d[9]!==m||d[10]!==n||d[11]!==i?(o=(0,l.jsxs)(E.l6,{value:m,onValueChange:n,items:O,children:[i,c]}),d[9]=m,d[10]=n,d[11]=i,d[12]=o):o=d[12],o};function q(e){let n,t,r,i,c,o=(0,s.c)(11),{showByLinkCount:d,showByEmail:m}=e,x=(0,b.GV)(y.mB),u=f.h.useFormatYearMonthDay();o[0]===Symbol.for("react.memo_cache_sentinel")?(n=new w.q((0,p.Q)()),o[0]=n):n=o[0];let j=n,[g,v]=(0,a.useState)(),[N,C]=(0,a.useState)(),S=(0,a.useRef)(!1);return o[1]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{S.current||(S.current=!0,(async()=>{v(await j.fetchVanityLinksCountReports())})())},o[1]=t):t=o[1],(0,a.useEffect)(t),o[2]!==g||o[3]!==m||o[4]!==d?(r=()=>{if(g){let e=g;"zero"===d?e=e.filter(Y):"more"===d&&(e=e.filter(X)),"non-mindtrip"===m?e=e.filter(J):"only-mindtrip"===m&&(e=e.filter(H)),C(e)}},i=[g,d,m],o[2]=g,o[3]=m,o[4]=d,o[5]=r,o[6]=i):(r=o[5],i=o[6]),(0,a.useEffect)(r,i),o[7]!==u||o[8]!==N||o[9]!==x?(c=(0,l.jsx)("div",{className:"mt-2",children:N?(0,l.jsxs)(M.XI,{children:[(0,l.jsx)(M.A0,{children:(0,l.jsxs)(M.MS,{className:"whitespace-nowrap",children:[(0,l.jsx)(M.nd,{children:"#"}),(0,l.jsx)(M.nd,{children:"Sign Up"}),(0,l.jsx)(M.nd,{children:"Creator"}),(0,l.jsx)(M.nd,{children:"First Name"}),(0,l.jsx)(M.nd,{children:"Last Name"}),(0,l.jsx)(M.nd,{children:"Email"}),(0,l.jsx)(M.nd,{children:"Audiences"}),(0,l.jsx)(M.nd,{children:"Location"}),(0,l.jsx)(M.nd,{children:"# Links"})]})}),(0,l.jsx)(M.BF,{children:N.map((e,n)=>{let t=0===e.count?"text-red-10":"";return(0,l.jsx)(a.Fragment,{children:(0,l.jsxs)(M.Hj,{children:[(0,l.jsx)(M.nA,{children:n+1}),(0,l.jsx)(M.nA,{className:"whitespace-nowrap",children:(0,l.jsx)("span",{className:"no-translate",children:u(e.created_at,x.time_zone)})}),(0,l.jsx)(M.nA,{children:(0,l.jsx)("span",{className:(0,h.cn)("no-translate",t),children:e.handle})}),(0,l.jsx)(M.nA,{children:(0,l.jsx)("span",{className:(0,h.cn)("no-translate",t),children:e.first_name})}),(0,l.jsx)(M.nA,{children:(0,l.jsx)("span",{className:(0,h.cn)("no-translate",t),children:e.last_name})}),(0,l.jsx)(M.nA,{children:(0,l.jsx)("span",{className:(0,h.cn)("no-translate",t),children:e.email})}),(0,l.jsx)(M.nA,{children:(0,l.jsx)("span",{className:t,children:e.audiences&&e.audiences.map(F)})}),(0,l.jsx)(M.nA,{children:(0,l.jsx)("span",{className:t,children:e.location?.name})}),(0,l.jsx)(M.nA,{className:"text-center",children:(0,l.jsx)("span",{className:t,children:e.count})})]})},`${e.handle}:${n}`)})})]}):(0,l.jsx)($.R,{className:"m-auto"})}),o[7]=u,o[8]=N,o[9]=x,o[10]=c):c=o[10],c}function F(e,n){return(0,l.jsxs)("div",{children:[e.platform?(0,l.jsxs)("span",{children:["Platform: ",e.platform]}):(0,l.jsxs)("span",{children:["Other: ",e.other]}),e.handle&&(0,l.jsxs)("span",{children:[": ",e.handle]}),e.follower&&(0,l.jsxs)("span",{children:[": ",e.follower]})]},`${e.platform} ${e.handle} ${e.follower} ${n}`)}function H(e){return e.email?.endsWith("@mindtrip.ai")}function J(e){return!e.email?.endsWith("@mindtrip.ai")}function X(e){return 0!==e.count}function Y(e){return 0===e.count}function K(e){let[n]=e;return""!==n}function Q(e){let[n,t]=e;return(0,l.jsx)(E.eb,{value:n,children:t},n)}function Z(e){let[n]=e;return""!==n}function ee(e){let[n,t]=e;return(0,l.jsx)(E.eb,{value:n,children:t},n)}var en=t(44776),et=t(82647);function el(e){let n=(0,j.r)(),t=(0,b.jL)(),s=(0,a.useMemo)(()=>new w.q((0,p.Q)()),[]),m=f.h.useFormatYearMonth(),W=e.session.user,$=m(W.created_at,W.time_zone),[M,D]=(0,a.useState)(1),[O,F]=(0,a.useState)("--all--"),[H,J]=(0,a.useState)(o.Kl),[X,Y]=(0,a.useState)(),K=(0,b.GV)(v.rG),[Q]=(0,a.useState)(o.cw),[Z,ee]=(0,a.useState)(""),[el,es]=(0,a.useState)(""),ea=e.session.permissions.includes("can_admin_inspiration"),er=K===v.dN||K===v.lX,{data:ei,isLoading:ec,isFetching:eo,refetch:ed}=(0,g.YS)({status:K===v.dN?o.iO:o.pO,ownedOnly:!ea,payment:H,page:M,perPage:Q,searchTerm:el.length>=3?el:void 0,handle:"--all--"===O||void 0===O?void 0:O.handle,sort:"recency"},{skip:!er}),eh=ei?.data??[],em=ei?.meta.total_pages??1,ex=ec||eo,[eu,ep]=(0,a.useState)(et.HT),[ef,ej]=(0,a.useState)("active"),[eg,ev]=(0,a.useState)("summary"),[eb,ey]=(0,a.useState)("zero"),[eN,ew]=(0,a.useState)("non-mindtrip"),eC=(0,b.GV)(y.Qr),eS=(0,b.GV)(y.Ql),ek=K===v.Hn||K===v.Gu||K===v.I8,e_=(0,a.useRef)(!1);(0,a.useEffect)(()=>{!e_.current&&(e_.current=!0,(0,u.$)("ViewAdminPage"),e.secretUrl&&t(y.Ay.actions.setSecretUrl(e.secretUrl)),e.error&&(n.replace({query:null},void 0,{shallow:!0}),N.J.add({type:"error",description:e.error})))},[t,e.error,e.secretUrl,n]);let eA=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eu,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ef;try{let t=await s.fetchVanityReports(!0,e,n);Y(t)}catch(e){console.log("Unable to load report",e),N.J.add({type:"error",description:"Unable to load report"})}};(0,a.useEffect)(()=>
1{ek&&eA()},[]);let{openInspirationSelectOwnerDialog:eE,InspirationSelectOwnerDialog:eT}=(0,r.l)({onSelectOwner:e=>{D(1),F(e)}}),eV=(0,a.useMemo)(()=>x()(e=>{(e.length>=3||0===e.length)&&(es(e),D(1))},300),[]);(0,a.useEffect)(()=>()=>eV.cancel(),[eV]);let eG=e=>{ee(e),eV(e)},eL=()=>{ee(""),es(""),D(1)},ez=(0,a.useCallback)(()=>{D(Math.max(1,M-1))},[M]),eB=(0,a.useCallback)(()=>{em&&D(Math.min(em,M+1))},[M,em]);return(0,l.jsxs)(i.A,{title:"Admin | mindtrip",children:[(0,l.jsxs)(G.u,{children:[(0,l.jsx)("span",{className:"flex-1 font-semibold",children:"Design & Publish & Report"}),ea&&(0,l.jsx)(A.$,{variant:"primary",size:"sm",onClick:async()=>{(0,u.$)({name:"AdminCreate",properties:{kind:"any"}}),await n.push("/create-vanity-link")},children:"Create"})]}),(0,l.jsxs)(C.m,{className:"flex flex-1 flex-col pt-9 pb-16",children:[(0,l.jsxs)("div",{className:(0,h.cn)("mx-auto flex w-full flex-1 flex-col",!ea&&!eC&&"justify-center"),children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h1",{className:"mb-[.125em] text-4xl font-semibold tracking-tight",children:"Admin"}),(0,l.jsx)("p",{className:"mb-7 text-muted",children:(0,l.jsxs)("span",{children:["Member since ",$]})})]}),(0,l.jsxs)(T.tU,{value:K,onValueChange:e=>{t(v.Ay.actions.setAdminTab(e)),D(1),"drafts"===e?(0,u.$)("ViewAdminDraftsTab"):"published"===e?(0,u.$)("ViewAdminPublishedTab"):"report"===e?(0,u.$)("ViewAdminReportTab"):"earnings"===e?(0,u.$)("ViewAdminEarningsTab"):"creators"===e&&(0,u.$)("ViewAdminCreatorsTab"),e!==v.Hn&&e!==v.Gu&&e!==v.I8||X||eA()},children:[(0,l.jsx)(P.k,{className:"[--px:var(--container-pad)]",selectedValue:K,children:(0,l.jsxs)(T.j7,{className:"basis-full",children:[ea&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(T.Xi,{value:"drafts",children:"Drafts"}),(0,l.jsx)(T.Xi,{value:"published",children:"Published"})]}),eS&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(T.Xi,{value:"report",children:"Report"}),(0,l.jsx)(T.Xi,{value:"earnings",children:"Earnings"}),(0,l.jsx)(T.Xi,{value:"creators",children:"Creators"})]})]})}),ea&&("drafts"===K||"published"===K)?(0,l.jsx)("div",{className:"my-2 flex justify-end",children:(0,l.jsxs)("div",{className:"-right-2.5 bottom-1.5 flex items-baseline gap-0.5 text-xs",children:[(0,l.jsxs)("div",{className:"mx-2",children:[(0,l.jsx)("span",{children:"Payment:"}),(0,l.jsxs)(E.l6,{value:H,onValueChange:e=>{D(1),J(e)},children:[(0,l.jsx)(E.bq,{render:(0,l.jsx)(A.$,{variant:"ghost",size:"sm",iconAfter:{name:"chevronDown"},className:"px-2.5 capitalize",children:(0,l.jsx)(E.yv,{placeholder:"All"})})}),(0,l.jsx)(E.gC,{alignItemWithTrigger:!1,children:o.eW.map(e=>(0,l.jsx)(E.eb,{value:e,className:"capitalize",children:e},e))})]})]}),(0,l.jsxs)("div",{className:"flex",children:[(0,l.jsx)("span",{children:"Created by:"}),(0,l.jsx)("span",{className:"ml-2",onClick:eE,children:"--all--"===O?"All":O.handle}),"--all--"!==O&&(0,l.jsx)(S.A,{strokeWidth:2.5,className:"mt-1 ml-1 rounded-lg bg-gray-3",onClick:()=>{D(1),F("--all--")}})]})]})}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)(T.av,{value:"drafts",className:"flex flex-col gap-16",children:(0,l.jsxs)("div",{id:"inspiration-content",children:[(0,l.jsxs)(z.lV,{className:"mb-10",onSubmit:e=>e.preventDefault(),children:[(0,l.jsx)(z.zB,{name:"explore-search",children:(0,l.jsxs)(B.MG,{size:"lg",muted:!0,children:[(0,l.jsx)(B.Sq,{align:"inline-start",children:(0,l.jsx)(k.A,{className:"text-[1.5em] text-foreground/60"})}),(0,l.jsx)(z.MJ,{render:(0,l.jsx)(B.iV,{type:"search",placeholder:"Search for locations or by creator…",value:Z,onChange:e=>eG(e.target.value)})}),(0,l.jsx)(B.pJ,{value:Z,onClear:eL})]})}),(0,l.jsx)("button",{type:"submit",className:"hidden"})]}),ex?(0,l.jsx)("div",{children:(0,l.jsx)(V.p,{children:Array.from({length:4}).map((e,n)=>(0,l.jsx)("li",{children:(0,l.jsx)(_.x,{trackingContext:"CardGrid",entitySheetTrackingContext:"AdminInspirationCardGrid"})},n))})}):(0,l.jsx)(l.Fragment,{children:eh.length>0?(0,l.jsxs)("div",{children:[(0,l.jsx)(V.p,{children:eh.map(e=>(0,l.jsx)("li",{children:(0,l.jsx)(_.x,{inspiration:e,isEditable:!0,enableHandleLink:!1,isAdmin:!1,showLastEditedDate:!0,onDelete:()=>void ed(),trackingContext:"CardGrid",entitySheetTrackingContext:"AdminInspirationCardGrid"})},e.entity_ref))}),eh.length>0&&(0,l.jsx)("div",{className:"mx-auto",children:(0,l.jsx)(L.d,{loading:ex,currPage:M,maxPage:em,handlePrevPage:ez,handleNextPage:eB})})]}):(0,l.jsx)("p",{children:"No draft guides found"})})]})}),(0,l.jsx)(T.av,{value:"published",className:"flex flex-col gap-16",children:(0,l.jsxs)("div",{children:[(0,l.jsxs)(z.lV,{className:"mb-10",onSubmit:e=>e.preventDefault(),children:[(0,l.jsx)(z.zB,{name:"explore-search",children:(0,l.jsxs)(B.MG,{size:"lg",muted:!0,children:[(0,l.jsx)(B.Sq,{align:"inline-start",children:(0,l.jsx)(k.A,{className:"text-[1.5em] text-foreground
1/60"})}),(0,l.jsx)(z.MJ,{render:(0,l.jsx)(B.iV,{type:"search",placeholder:"Search for locations or by creator…",value:Z,onChange:e=>eG(e.target.value)})}),(0,l.jsx)(B.pJ,{value:Z,onClear:eL})]})}),(0,l.jsx)("button",{type:"submit",className:"hidden"})]}),ex?(0,l.jsx)("div",{children:(0,l.jsx)(V.p,{children:Array.from({length:4}).map((e,n)=>(0,l.jsx)("li",{children:(0,l.jsx)(_.x,{trackingContext:"CardGrid",entitySheetTrackingContext:"AdminInspirationCardGrid"})},n))})}):(0,l.jsx)(l.Fragment,{children:eh.length>0?(0,l.jsxs)("div",{children:[(0,l.jsx)(V.p,{children:eh.map(e=>(0,l.jsx)("li",{children:(0,l.jsx)(_.x,{inspiration:e,isEditable:!0,enableHandleLink:!1,isAdmin:ea,showLastEditedDate:!0,onDelete:()=>void ed(),trackingContext:"CardGrid",entitySheetTrackingContext:"AdminInspirationCardGrid"})},e.entity_ref))}),eh.length>0&&(0,l.jsx)("div",{className:"mx-auto",children:(0,l.jsx)(L.d,{loading:ex,currPage:M,maxPage:em,handlePrevPage:ez,handleNextPage:eB})})]}):(0,l.jsx)("p",{children:"No published guides found"})})]})}),(0,l.jsxs)(T.av,{value:"report",className:"flex flex-col gap-4 pt-4",children:[(0,l.jsxs)("div",{className:"mb-7 flex",children:[(0,l.jsx)(et.aS,{showByDate:eu,handleShowByDateChange:e=>{D(1),ep(e),Y(void 0),eA(e,ef)},className:"text-lg font-semibold"}),(0,l.jsx)(et.Kz,{showByType:ef,handleShowByTypeChange:e=>{D(1),ej(e),Y(void 0),eA(eu,e)},className:"ml-8 text-lg font-semibold"})]}),(0,l.jsx)("div",{className:"-mx-(--container-pad)",children:(0,l.jsx)("div",{className:"scroll-fade-x overflow-x-auto px-(--container-pad)",children:(0,l.jsx)(et.vA,{user:W,vanityReports:X,showUserCol:!0,deleteCallback:e=>{(async()=>{try{(await s.deleteVanityLink(e)).success&&await eA()}catch(e){console.log("Unable to delete vanity link: ",e),e instanceof c.C1?N.J.add({type:"error",description:e.message}):N.J.add({type:"error",description:"Unable to delete vanity link."})}})()}})})})]}),(0,l.jsxs)(T.av,{value:"earnings",className:"flex flex-col gap-4 pt-4",children:[(0,l.jsx)("div",{className:"mb-7 flex",children:(0,l.jsx)(en._,{showByType:eg,handleShowByEarningChange:e=>{D(1),ev(e)},className:"text-lg font-semibold"})}),(0,l.jsx)(en.s,{vanityReports:X,showUserCol:!0,showByType:eg})]}),(0,l.jsxs)(T.av,{value:"creators",className:"flex flex-col gap-4 pt-4",children:[(0,l.jsxs)("div",{className:"mb-7 flex",children:[(0,l.jsx)(I,{showByType:eb,handleShowByTypeChange:e=>{D(1),ey(e)},className:"text-lg font-semibold"}),(0,l.jsx)(U,{showByType:eN,handleShowByTypeChange:e=>{D(1),ew(e)},className:"ml-8 text-lg font-semibold"})]}),(0,l.jsx)("div",{className:"-mx-(--container-pad)",children:(0,l.jsx)("div",{className:"scroll-fade-x overflow-x-auto px-(--container-pad)",children:(0,l.jsx)(q,{showByLinkCount:eb,showByEmail:eN})})})]})]}),(0,l.jsx)(R.g,{onSave:e=>{let n=(0,d.GJ)(X,e);n&&Y(n)}})]}),eT]})]})}var es=!0;let ea=function(e){let n,t=(0,s.c)(2);return t[0]!==e?(n=(0,l.jsx)(el,{...e}),t[0]=e,t[1]=n):n=t[1],n}}},e=>{e.O(0,[770,8901,9117,929,7117,7142,8404,3200,4155,5254,9811,9e3,6477,3022,4269,2993,4279,6701,4733,7646,7993,8982,1687,6593,636,8792],()=>e(e.s=25796)),_N_E=e.O()}]);
2//# sourceMappingURL=[[...slug]]-b799eb818e136495.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.