1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,86323,e=>{"use strict";var t=e.i(26863),r=e.i(122525),a=e.i(838704),s=e.i(581949),n=e.i(746234),l=e.i(633578);let i=({entity:e,event:s="view.web"})=>{let i=(()=>{try{return(0,a.useSearchParams)().toString()}catch(e){return""}})(),[c,d]=(0,r.useState)("");return((0,r.useEffect)(()=>{o(s,{entity:e});let t=`https://analytics.${l.DOMAIN}/t?entity=${encodeURIComponent(e)}&event=${encodeURIComponent(s)}&${i}`,r=(0,n.getCachedLocation)();r&&(t+=`&lat=${encodeURIComponent(r.lat||"")}&lng=${encodeURIComponent(r.lng||"")}`),d(t)},[]),c)?(0,t.jsx)("img",{src:c,style:{height:1,width:1,opacity:0,position:"absolute",pointerEvents:"none"},alt:"px"},c):null},o=(e,t)=>{try{window.mixpanel&&window.mixpanel.track(e,t)}catch(e){console.log(e)}};e.s(["ConditionalTrackingPixel",0,({entity:e,event:s,condition:n})=>{let[l,o]=(0,r.useState)(!1),[c,d]=(0,r.useState)(!1),u=(0,a.useSearchParams)();return((0,r.useEffect)(()=>{if(!c){if(l)return void d(!0);n[2]===u.get(n[1])&&o(!0)}},[n,o,d,c,l,u]),c||!l)?null:(console.log("Tracking pixel",{entity:e,event:s}),(0,t.jsx)(i,{entity:e,event:s}))},"TrackingPixel",0,i,"trackEvent",0,(e,t,r={})=>{let a=Object.fromEntries(new URLSearchParams(window.location.search));o(t,{entity:e});let i=(0,n.getCachedLocation)()||{};s.default.get(`https://analytics.${l.DOMAIN}/t`,{params:{...i,...a,...r,entity:e,event:t}}).then(()=>{})}])},736098,e=>{"use strict";var t=e.i(26863);e.i(122525);var r=e.i(838704);e.s(["default",0,function({className:e="",campaign:a="Website app download button",imgClassName:s="max-h-8 md:mx-h-10"}){let n=(0,r.useParams)(),l=!n?.ios;return(0,t.jsxs)("div",{className:`flex items-center justify-start gap-4 ${e}`,children:[(0,t.jsx)("a",{href:`https://apps.apple.com/app/apple-store/id1161541872?pt=118884060&ct=${encodeURIComponent(a)}&mt=8`,target:"_blank",rel:"noopener noreferrer",children:(0,t.jsx)("img",{src:"/images/homepage/download-ios.png",alt:"Apple App Store",title:"Download for iPhone or iPad",className:s})}),l&&(0,t.jsx)("a",{href:`https://play.google.com/store/apps/details?id=com.streetartcities.map&utm_campaign=${encodeURIComponent(a)}&referrer=utm_source%3D${encodeURIComponent(a)}`,target:"_blank",rel:"noopener noreferrer",children:(0,t.jsx)("img",{src:"/images/homepage/download-play.png",alt:"Download for Android",className:s})})]})}])},811766,e=>{"use strict";var t=e.i(26863),r=e.i(122525),a=e.i(633578),s=e.i(509239);let n=/([^<]*)<([^|]*)\|([^>]*)>([^<]*)/g;e.s(["default",0,({children:e,as:l="p",decorations:i=[],...o})=>{let c=[...(e||"").matchAll(n)];return(0,t.jsx)(l,{...o,children:c.length?c.map(e=>{let n=e[3].replace(`https://${a.DOMAIN}`,"");n.includes("activitypub:")&&(n=n.split("activitypub:")[1]);let l=i?.filter(t=>e[3].endsWith(t.entity));return(0,t.jsxs)(r.default.Fragment,{children:[e[1],(0,t.jsxs)("a",{className:(0,s.cn)("text-red-500 font-medium",l?.length>0&&"inline-flex items-center gap-1"),href:n,children:[e[2],l?.map(e=>(0,t.jsx)(r.default.Fragment,{children:(0,t.jsx)("img",{src:e.image,alt:e.title,title:e.title,className:"w-[12px] h-[12px] object-contain object-center"},e.id)},e.id))]}),e[4]]},e.index)}):e})}])},109356,e=>{"use strict";let t=(0,e.i(498180).default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);e.s(["default",0,t])},973148,e=>{"use strict";var t=e.i(109356);e.s(["PencilIcon",()=>t.default])},276643,e=>{"use strict";let t=(0,e.i(498180).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["CheckIcon",0,t],276643)},558773,944551,e=>{"use strict";let t=(0,e.i(498180).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["default",0,t],944551),e.s(["ChevronRight",0,t],558773)},232189,(e,t,r)=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},865156,(e,t,r)=>{"use strict";var a=e.r(232189);function s(){}function n(){}
1n.resetWarningCache=s,t.exports=function(){function e(e,t,r,s,n,l){if(l!==a){var i=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:n,resetWarningCache:s};return r.PropTypes=r,r}},745009,(e,t,r)=>{t.exports=e.r(865156)()},404599,122605,637742,e=>{"use strict";var t=e.i(26863),r=e.i(122525),a=e.i(509239),s=e.i(437197),n=e.i(396952),l=e.i(745009),i=!!("u">typeof window&&window.document&&window.document.createElement),o=function(){function e(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,r,a){return r&&e(t.prototype,r),a&&e(t,a),t}}(),c=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var e=(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments);if(!this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&("object"==typeof e||"function"==typeof e)?e:this}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),o(t,[{key:"c
1omponentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return i?(this.props.node||this.defaultNode||(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),n.default.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),t}(r.default.Component);c.propTypes={children:l.default.node.isRequired,node:l.default.any};var d=function(){function e(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,r,a){return r&&e(t.prototype,r),a&&e(t,a),t}}(),u=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var e=(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments);if(!this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&("object"==typeof e||"function"==typeof e)?e:this}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),d(t,[{key:"c
1omponentDidMount",value:function(){this.renderPortal()}},{key:"componentDidUpdate",value:function(e){this.renderPortal()}},{key:"componentWillUnmount",value:function(){n.default.unmountComponentAtNode(this.defaultNode||this.props.node),this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null,this.portal=null}},{key:"renderPortal",value:function(e){this.props.node||this.defaultNode||(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode));var t=this.props.children;"function"==typeof this.props.children.type&&(t=r.default.cloneElement(this.props.children)),this.portal=n.default.unstable_renderSubtreeIntoContainer(this,t,this.props.node||this.defaultNode)}},{key:"render",value:function(){return null}}]),t}(r.default.Component);u.propTypes={children:l.default.node.isRequired,node:l.default.any};let m=n.default.createPortal?c:u;var p=e.i(498180);let h=(0,p.default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);var f=e.i(558773),x=e.i(631387),g=e.i(591255),g=g;let y=({src:e,onClose:n})=>{let[l,i]=(0,r.useState)(Array.isArray(e)?e[0]:0),o=Array.isArray(e),[c,d]=(0,r.useState)(!1),u=(0,r.useRef)(null),p=(0,r.useRef)(null),y=(0,r.useCallback)(()=>{e&&o&&i(t=>Math.min(e[1].length-1,t+1))},[e,o]),b=(0,r.useCallback)(()=>{e&&o&&i(e=>Math.max(0,e-1))},[e,o]);if((0,s.useHotkeys)("esc",()=>{if(e)return n(),!1},[e]),(0,s.useHotkeys)("left",()=>(b(),!1),[b]),(0,s.useHotkeys)("right",()=>(y(),!1),[y]),(0,r.useEffect)(()=>{o&&i(e[0]),d(!1)},[e]),(0,r.useEffect)(()=>{d(!1)},[l]),(0,r.useEffect)(()=>{if(e)return document.body.style.overflow="hidden",()=>{document.body.style.overflow=""}},[e]),!e)return null;let j=o?e[1][l]:e,v=o&&l>0,k=o&&l<e[1].length-1;return(0,t.jsx)(m,{children:(0,t.jsxs)("div",{className:"fixed inset-0 z-400 bg-black/80 flex flex-col",style:{zIndex:1102},onTouchStart:e=>{u.current=e.touches[0].clientX,p.current=e.touches[0].clientY},onTouchEnd:e=>{if(null===u.current||null===p.current)return;let t=e.changedTouches[0].clientX-u.current,r=e.changedTouches[0].clientY-p.current;Math.abs(t)>50&&Math.abs(t)>Math.abs(r)&&(t<0?y():b()),u.current=null,p.current=null},role:"dialog","aria-modal":"true",children:[(0,t.jsx)("button",{onClick:n,className:"absolute top-4 right-4 z-10 p-2 text-white/80 hover:text-white bg-black/40 hover:bg-black/60 rounded-full transition-colors","aria-label":"Close",children:(0,t.jsx)(g.default,{size:24})}),(0,t.jsxs)("div",{className:"flex-1 flex items-center justify-center min-h-0 px-4 py-16 sm:px-10",onClick:n,children:[!c&&(0,t.jsx)(x.Loader2,{className:"absolute animate-spin text-white/60",size:32}),(0,t.jsx)("img",{alt:"Image",src:j,onLoad:()=>d(!0),className:(0,a.cn)("max-h-full max-w-full object-contain cursor-default transition-opacity duration-300 animate-in fade-in",c?"opacity-100":"opacity-0"),onClick:e=>e.stopPropagation()},l)]}),o&&(0,t.jsxs)("div",{className:"flex items-center justify-center gap-4 pb-8 px-4",children:[(0,t.jsx)("button",{onClick:b,disabled:!v,className:(0,a.cn)("p-3 rounded-full bg-white/15 text-white transition-colors",v?"hover:bg-white/25 active:bg-white/35":"opacity-30"),"aria-label":"Previous image",children:(0,t.jsx)(h,{size:28})}),(0,t.jsx)("div",{className:"flex items-center gap-1.5",children:e[1].map((e,r)=>(0,t.jsx)("button",{className:"p-1",onClick:()=>i(r),"aria-label":`Go to image ${r+1}`,children:(0,t.jsx)("span",{className:(0,a.cn)("block rounded-full transition-all",r===l?"w-2.5 h-2.5 bg-white":"w-2 h-2 bg-white/40")})},r))}),(0,t.jsx)("button",{onClick:y,disabled:!k,className:(0,a.cn)("p-3 rounded-full bg-white/15 text-white transition-colors",k?"hover:bg-white/25 active:bg-white/35":"opacity-30"),"aria-label":"Next image",children:(0,t.jsx)(f.ChevronRight,{size:28})})]})]})})};e.s(["default",0,y],122605);let b=(0,p.default)("expand",[["path",{d:"m15 15 6 6",key:"1s409w"}],["path",{d:"m15 9 6-6",key:"ko1vev"}],["path",{d:"M21 16v5h-5",key:"1ck2sf"}],["path",{d:"M21 8V3h-5",key:"1qoq8a"}],["path",{d:"M3 16v5h5",key:"1t08am"}],["path",{d:"m3 21 6-6",key:"wwnumi"}],["path",{d:"M3 8V3h5",key:"1ln10m"}],["path",{d:"M9 9 3 3",key:"v551iv"}]]),j=({onClick:e,className:r})=>(0,t.jsx)("button",{type:"button","aria-label":"View fullscreen",title:"View fullscreen",onClick:t=>{t.stopPropagation(),e()},className:(0,a.cn)("absolute top-1.5 right-1.5 rounded-md bg-black/50 p-1.5 text-white transition-colors hover:bg-black/70",r),children:(0,t.jsx)(b,{className:"size-3.5"})});e.s(["default",0,j],637742);let v=e=>/^https:\/\//i.test(e);e.s(["default",0,({attachments:e=[],className:s,imageClassName:n="h-16 rounded-sm",fullscreen:l})=>{let[i,o]=(0,r.useState)(null),c=(e??[]).filter(v);return c.length?(0,t.jsxs)("div",{className:(0,a.cn)("flex gap-2.5 overflow-x-auto pb-0.5",s),children:[c.map((e,r)=>{let a=()=>o([r,c]),s=(0,t.jsx)("img",{src:e.includes("/orig.")?`${e.split("/orig.")[0]}/512.jpg`:e,alt:`Attachment ${r+1}`,className:n});return l?(0,t.jsxs)("div",{className:"relative shrink-0",children:[(0,t.jsx)("button",{type:"button",className:"block cursor-zoom-in",onClick:a,children:s}),(0,t.jsx)(j,{onClick:a,className:"top-1 right-1 p-1"})]},`${e}-${r}`):(0,t.jsx)("a",{href:e,target:"_blank",rel:"noreferrer",className:"block shrink-0",children:s},`${e}-${r}`)}),l&&(0,t.jsx)(y,{src:i,onClose:()=>o(null)})]}):null}],404599)},35082,e=>{"use strict";let t=(0,e.i(498180).default)("flag",[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-
15-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]]);e.s(["FlagIcon",0,t],35082)},244745,e=>{"use strict";var t=e.i(26863),r=e.i(122525),a=e.i(276643),s=e.i(99461),n=e.i(979077),l=e.i(713341),i=e.i(509239);let o=["It's spam or an ad","It's offensive or hurtful","It's not about this artwork","It shares someone's private details","Something else"];e.s(["ReportNoteForm",0,({noteId:e,onCancel:c,onDone:d})=>{let u=(0,r.useId)(),[m,p]=(0,r.useState)(""),[h,f]=(0,r.useState)(""),[x,g]=(0,r.useState)(!1),[y,b]=(0,r.useState)(!1),j=async()=>{if(m&&!x){g(!0),b(!1);try{let{data:t}=await n.default.post("/edits",{entityType:"community-note",entityId:e,actions:{$delete:!0},editComment:h.trim()?`${m} â ${h.trim()}`:m});d(t.edit?.status==="accepted")}catch(e){console.error("[ReportNoteForm] Failed to report note",e),b(!0)}finally{g(!1)}}};return(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsx)("div",{className:"flex flex-col gap-1",role:"radiogroup","aria-label":"Why are you reporting this note?",children:o.map(e=>{let r=m===e;return(0,t.jsxs)("button",{type:"button",role:"radio","aria-checked":r,onClick:()=>p(e),disabled:x,className:(0,i.cn)("flex items-center justify-between rounded-lg border px-3 py-2 text-left text-sm transition-colors",r?"border-zinc-900 bg-zinc-50 font-medium dark:border-zinc-100 dark:bg-zinc-800":"border-zinc-200 hover:bg-zinc-50 dark:border-zinc-700 dark:hover:bg-zinc-800"),children:[e,r&&(0,t.jsx)(a.CheckIcon,{className:"size-4 shrink-0"})]},e)})}),m&&(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"mb-2 block text-sm font-medium",htmlFor:u,children:"Anything else we should know?"}),(0,t.jsx)("textarea",{id:u,className:"w-full resize-none rounded-lg border border-zinc-300 bg-transparent px-3 py-2 text-sm dark:border-zinc-700 dark:text-white",placeholder:"Add more details (optional)",rows:2,value:h,onChange:e=>f(e.target.value),disabled:x})]}),y&&(0,t.jsx)("p",{className:"text-sm text-red-600 dark:text-red-400",children:"Sorry, we couldn't report this note. Please try again."}),(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[c&&(0,t.jsx)(l.Button,{variant:"outline",size:"sm",onClick:c,disabled:x,children:"Cancel"}),(0,t.jsxs)(l.Button,{size:"sm",onClick:j,disabled:!m||x,children:[x&&(0,t.jsx)(s.Loader2Icon,{className:"animate-spin"}),"Report note"]})]})]})}])},644537,e=>{"use strict";var t=e.i(55545),r=e.i(455024),a=e.i(845110),s=e.i(381515),n=e.i(401851);e.s(["formatRelative",0,function(e,l,i){let o,[c,d]=(0,a.normalizeDates)(i?.in,e,l),u=(0,r.getDefaultOptions)(),m=i?.locale??u.locale??t.defaultLocale,p=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??u.weekStartsOn??u.locale?.options?.weekStartsOn??0,h=(0,s.differenceInCalendarDays)(c,d);if(isNaN(h))throw RangeError("Invalid time value");o=h<-6?"other":h<-1?"lastWeek":h<0?"yesterday":h<1?"today":h<2?"tomorrow":h<7?"nextWeek":"other";let f=m.formatRelative(o,c,d,{locale:m,weekStartsOn:p});return(0,n.format)(c,f,{locale:m,weekStartsOn:p})}])},140808,e=>{"use strict";let t=(0,e.i(498180).default)("message-circle",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]]);e.s(["default",0,t])},634263,e=>{"use strict";var t=e.i(140808);e.s(["MessageCircleIcon",()=>t.default])},150509,e=>{"use strict";let t=(0,e.i(498180).default)("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]);e.s(["HeartIcon",0,t],150509)},739419,e=>{"use strict";let t=/<@([^|<>]+)\|([^|<>]+\/users\/[^|<>/]+)>/g,r=/\/users\/[^|<>/]+$/,a=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e.s(["applyMention",0,(e,{query:t,start:r},a)=>{let s=`@${a.displayName} `;return{text:e.slice(0,r)+s+e.slice(r+t.length+1),cursor:r+s.length}},"formatMentions",0,(e,t)=>{if(!t.length)return e;let r=new Map;t.forEach(e=>{r.set(e.displayName,[...r.get(e.displayName)||[],e])});let s=[...r.keys()].sort((e,t)=>t.length-e.length),n=RegExp(`@(${s.map(a).join("|")})(?![\\p{L}\\p{N}])`,"gu"),l=new Map;return e.replace(n,(e,t)=>{let a=r.get(t)||[],s=l.get(t)??0;l.set(t,s+1);let n=a[s]||a[a.length-1];return n?`<@${n.displayName}|${n.href}>`:e})},"mentionQuery",0,(e,t)=>{let r=e.slice(0,t).match(/(?:^|\s)@([^\s@]*)$/);return r?{query:r[1],start:t-r[1].length-1}:null},"parseMentions",0,e=>{let r=[];return{text:e.replace(t,(e,t,a)=>(r.push({id:a.split("/users/")[1],displayName:t,href:a}),`@${t}`)),mentions:r}},"threadMentionUsers",0,(e=[])=>[...new Map(e.flatMap(({actor:e})=>e?.id&&r.test(e.href||"")?[e]:[]).map(e=>[e.id,e])).values()]])},970717,e=>{"use strict";var t=e.i(26863);e.i(122525);var r=e.i(509239),a=e.i(736098);e.s(["default",0,({downloadReason:e,className:s="",campaign:n="Website app download button"})=>(0,t.jsxs)("div",{className:(0,r.cn)("rounded-xl bg-gray-100 mb-6 p-5 pt-4 text-sm",s),children:[(0,t.jsx)("div",{className:"font-semibold mb-1",children:"Download the app"}),(0,t.jsx)("div",{children:e}),(0,t.jsx)(a.default,{campaign:n,className:"mt-5"})]})])},144013,699254,e=>{"use strict";var t=e.i(26863),r=e.i(122525),a=e.i(276643),s=e.i(35082),n=e.i(713752),l=e.i(973148);let i=(0,e.i(498180).default)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);var o=e.i(66774),c=e.i(83089),d=e.i(18605),u=e.i(128020),m=e.i(922152),p=e.i(619350),h=e.i(902031),f=e.i(979077),x=e.i(99461),g=e.i(713341),y=e.i(372700);let b=({note:e,onClose:a,onDeleted:s})=>{let[n,l]=(0,r.useState)(!1),i=async()=>
1{if(!n){l(!0);try{await f.default.post("/edits",{entityType:"community-note",entityId:e.id,actions:{$delete:!0}}),a(),c.default.success("Note deleted"),s?.()}catch(e){console.error("[DeleteCommunityNote] Failed to delete note",e),c.default.error("Sorry, we couldn't delete your note. Please try again.")}finally{l(!1)}}};return(0,t.jsx)(y.Dialog,{open:!0,onOpenChange:e=>!e&&a(),children:(0,t.jsxs)(y.DialogContent,{className:"sm:max-w-sm",children:[(0,t.jsxs)(y.DialogHeader,{children:[(0,t.jsx)(y.DialogTitle,{children:"Delete this note?"}),(0,t.jsx)(y.DialogDescription,{children:"Your note will be removed from this artwork. This can't be undone."})]}),(0,t.jsxs)(y.DialogFooter,{children:[(0,t.jsx)(g.Button,{variant:"outline",size:"sm",onClick:a,disabled:n,children:"Cancel"}),(0,t.jsxs)(g.Button,{variant:"destructive",size:"sm",onClick:i,disabled:n,children:[n&&(0,t.jsx)(x.Loader2Icon,{className:"animate-spin"}),"Delete note"]})]})]})})};var j=e.i(244745);let v=({note:e,onClose:r,onReported:a})=>(0,t.jsx)(y.Dialog,{open:!0,onOpenChange:e=>!e&&r(),children:(0,t.jsxs)(y.DialogContent,{className:"sm:max-w-sm",children:[(0,t.jsxs)(y.DialogHeader,{children:[(0,t.jsx)(y.DialogTitle,{children:"Report this note"}),(0,t.jsx)(y.DialogDescription,{children:"A moderator will review the note and remove it if it doesn't belong here. Why are you reporting it?"})]}),(0,t.jsx)(j.ReportNoteForm,{noteId:e.id,onCancel:r,onDone:e=>{r(),e?(c.default.success("Note removed"),a?.()):c.default.success("Thanks â a moderator will take a look at this note.")}})]})});e.s(["CommunityNoteActions",0,({note:e,scope:x,onChanged:g,onEdit:y})=>{let{isLoaded:j,isLoggedIn:k}=(0,u.useAccessToken)(),w=(0,m.useCurrentUser)(),{isAdmin:N,isSuperHunter:C,cities:S,countries:z}=(0,p.useModerationScope)(),[I,D]=(0,r.useState)(null),[M,T]=(0,r.useState)(!1);if(!j)return null;let O=k&&!!w&&w.id===e.actor?.id,A=!!y&&"comment"===e.noteType&&(O||N),R=k&&!!w&&(O||N||C||!!x?.site&&S.includes(x.site)||!!x?.country&&z.includes(x.country)),$=R&&!e.resolved&&"seen"!==e.noteType,E=R&&e.resolved&&e.resolvedBy===w?.id&&!!e.resolvedAt&&Date.now()-new Date(e.resolvedAt).valueOf()<864e5,P=async t=>{if(!M){T(!0);try{await f.default.post("/edits",{entityType:"community-note",entityId:e.id,actions:{reportStatus:t?"done":{$unset:!0}}}),c.default.success(t?"Comment marked as resolved":"Comment reopened"),g?.()}catch(e){console.error("[CommunityNoteActions] Failed to change status",e),c.default.error("Sorry, we couldn't update this comment")}finally{T(!1)}}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(h.DropdownMenu,{children:[(0,t.jsx)(h.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button","aria-label":"Note options",className:"rounded-md p-1 text-zinc-400 transition-colors hover:bg-zinc-100 hover:text-zinc-600 dark:text-zinc-500 dark:hover:bg-zinc-800 dark:hover:text-zinc-300",children:(0,t.jsx)(n.MoreHorizontalIcon,{className:"size-4"})})}),(0,t.jsxs)(h.DropdownMenuContent,{align:"start",children:[$&&(0,t.jsxs)(h.DropdownMenuItem,{className:"gap-2",onSelect:()=>P(!0),children:[(0,t.jsx)(a.CheckIcon,{className:"size-4"}),"Mark as resolved"]}),E&&(0,t.jsxs)(h.DropdownMenuItem,{className:"gap-2",onSelect:()=>P(!1),children:[(0,t.jsx)(i,{className:"size-4"}),"Reopen"]}),A&&(0,t.jsxs)(h.DropdownMenuItem,{className:"gap-2",onSelect:()=>y?.(),children:[(0,t.jsx)(l.PencilIcon,{className:"size-4"}),"Edit"]}),O?(0,t.jsxs)(h.DropdownMenuItem,{className:"gap-2",onSelect:()=>D("delete"),children:[(0,t.jsx)(o.Trash2Icon,{className:"size-4"}),"Delete"]}):(0,t.jsxs)(h.DropdownMenuItem,{className:"gap-2",onSelect:()=>{k?D("report"):(0,d.redirectToLogin)()},children:[(0,t.jsx)(s.FlagIcon,{className:"size-4"}),"Report"]})]})]}),"report"===I&&(0,t.jsx)(v,{note:e,onClose:()=>D(null),onReported:g}),"delete"===I&&(0,t.jsx)(b,{note:e,onClose:()=>D(null),onDeleted:g})]})}],144013);var k=e.i(69458),w=e.i(509239);e.s(["MentionSuggestions",0,({users:e,highlighted:r,onPick:a})=>e.length?(0,t.jsx)("ul",{className:"absolute top-full left-0 z-10 mt-1 w-64 max-w-full overflow-hidden rounded-lg border border-zinc-200 bg-white shadow-lg dark:border-zinc-700 dark:bg-zinc-900",children:e.map((e,s)=>(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:(0,w.cn)("flex w-full cursor-pointer items-center gap-2 px-3 py-2 text-left text-sm dark:text-white",s===r&&"bg-zinc-100 dark:bg-zinc-800"),onMouseDown:e=>e.preventDefault(),onClick:()=>a(e),children:[(0,t.jsx)(k.default,{user:e,size:"s",className:"mr-0"}),(0,t.jsx)("span",{className:"truncate",children:e.displayName})]})},e.id))}):null],699254)},381596,989743,978649,377593,429156,999166,944435,e=>{"use strict";var t=e.i(26863),r=e.i(122525),a=e.i(99461),s=e.i(83089),n=e.i(713341),l=e.i(699254),i=e.i(739419),o=e.i(174785);let c=e=>[...new Map(e.map(e=>
1[e.id,e])).values()],d=({value:e,onChange:t,threadUsers:a=[]})=>{let s=(0,r.useRef)(null),[n,l]=(0,r.useState)(0),[d,u]=(0,r.useState)(!1),[m,p]=(0,r.useState)(0),{text:h,mentions:f}=(0,i.parseMentions)(e),x=d?(0,i.mentionQuery)(h,n):null,g=((e,t)=>{let r=null===e?"":e||"*",{hits:a}=(0,o.useSearchWithQuery)({q:r,prefix:!0,filter_by:"type:=`User`",query_by:"title",include_fields:"entityId,title,href,thumbnail",limit:6,..."*"===r?{sort_by:"priority:desc"}:{}},!1);if(null===e)return[];let s=c(t).filter(t=>t.displayName.toLowerCase().includes(e.toLowerCase()));return c([...s,...(a||[]).map(({document:e})=>({id:e.entityId,displayName:e.title,href:e.href,avatar:e.thumbnail}))]).slice(0,6)})(x?.query??null,a),y=Math.min(m,g.length-1),b=e=>{if(!x)return;let r=(0,i.applyMention)(h,x,e);t((0,i.formatMentions)(r.text,[...f,e])),l(r.cursor),u(!1),requestAnimationFrame(()=>{s.current?.focus(),s.current?.setSelectionRange(r.cursor,r.cursor)})};return{textareaRef:s,text:h,setText:e=>{l(s.current?.selectionStart??e.length),p(0),u(!0),t((0,i.formatMentions)(e,f))},onKeyDown:e=>{if(g.length){if("ArrowDown"===e.key)p(e=>(e+1)%g.length);else if("ArrowUp"===e.key)p(e=>(e-1+g.length)%g.length);else if("Enter"===e.key||"Tab"===e.key)b(g[y]);else{if("Escape"!==e.key)return;u(!1)}e.preventDefault()}},onBlur:()=>u(!1),onSelect:e=>l(e.currentTarget.selectionStart),suggestions:{users:g,highlighted:y,onPick:b}}};e.s(["useMentions",0,d],989743);var u=e.i(979077);e.s(["EditCommunityNoteForm",0,({note:e,onClose:i,onSaved:o,threadUsers:c})=>{let[m,p]=(0,r.useState)(e.content||""),[h,f]=(0,r.useState)(!1),x=d({value:m,onChange:p,threadUsers:c}),g=async t=>{t.preventDefault();let r=m.trim();if(r&&!h){f(!0);try{await u.default.post("/edits",{entityType:"community-note",entityId:e.id,actions:{comment:r}}),s.default.success("Comment updated"),o?.(),i()}catch(e){console.error("[EditCommunityNote] Failed to update comment",e),s.default.error("Sorry, we couldn't update your comment")}finally{f(!1)}}};return(0,t.jsxs)("form",{className:"flex flex-col gap-2 mb-2",onSubmit:g,children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("textarea",{"aria-label":"Edit comment",className:"w-full resize-none rounded-lg border px-4 py-2.25 border-zinc-300 bg-transparent text-sm dark:border-zinc-700 dark:text-white ring-0! shadow-none!",rows:3,ref:x.textareaRef,value:x.text,onChange:e=>x.setText(e.target.value),onKeyDown:x.onKeyDown,onSelect:x.onSelect,onBlur:x.onBlur,disabled:h,autoFocus:!0}),(0,t.jsx)(l.MentionSuggestions,{...x.suggestions})]}),(0,t.jsxs)("div",{className:"flex gap-2 self-end",children:[(0,t.jsx)(n.Button,{type:"button",variant:"ghost",size:"sm",onClick:i,disabled:h,children:"Cancel"}),(0,t.jsxs)(n.Button,{type:"submit",size:"sm",disabled:!m.trim()||h,children:[h&&(0,t.jsx)(a.Loader2Icon,{className:"animate-spin"}),"Save"]})]})]})}],381596);var m=e.i(939217),p=e.i(633578);let h=({src:e,...t})=>(0,r.createElement)("img",{loading:"lazy",...t,src:e,key:e,onError:t=>{let r=t.target;r.dataset.fallbackTried||(r.dataset.fallbackTried="true",r.src.includes(".webp")?r.src=e.replace(".webp",".jpg"):r.src.match(/\/\d+\.jpg$/)?r.src=r.src.replace(/\/\d+\.jpg$/,"/orig.jpg"):(r.onerror=null,r.src=`https://${p.DOMAIN}/images/feed/placeholder.png`))}}),f=({src:e,...a})=>(0,t.jsxs)("picture",{children:[(0,t.jsx)("source",{srcSet:e,type:"image/jpeg"}),(0,t.jsx)(r.Suspense,{fallback:(0,t.jsx)("img",{src:e,...a}),children:(0,t.jsx)(h,{src:e,...a})})]});e.s(["default",0,({object:e})=>{let r=e.href||e.id;return(0,t.jsx)(m.default,{href:r.replace(`https://${p.DOMAIN}`,""),children:(0,t.jsx)(f,{alt:e.title||"Feed item",src:e.image,className:"w-full max-h-[220px] object-cover rounded-lg bg-gray-100"})})}],978649);var x=e.i(86323);e.s(["default",0,({object:e})=>{let r=e.id||e.href,a=e.href||e.id,s=!a.includes(p.DOMAIN);return(0,t.jsx)(m.default,{href:a,target:s?"_blank":"",rel:s?"noopener noreferrer":"",onClick:()=>{(0,x.trackEvent)(`feed.article.${r}`,"feed-article.click",{platform:"web"})},children:(0,t.jsxs)("span",{className:"flex flex-col rounded-lg hover:shadow-md border overflow-hidden max-w-[600px]",children:[(0,t.jsx)("img",{alt:e.title||"Feed item",src:e.image,className:"w-full max-h-[100px] object-cover border-b bg-gray-100"}),(0,t.jsxs)("span",{className:"flex flex-col p-3 text-sm bg-white rounded-b-lg",children:[(0,t.jsx)("span",{className:"font-medium mb-0.5",children:e.title}),(0,t.jsx)("span",{className:"text-gray-500 text-xs line-clamp-2",children:e.description}),e.source&&(0,t.jsx)("span",{className:"text-xs text-gray-400 mt-1",children:e.source})]})]})})}],377593);var g=e.i(509239);e.s(["default",0,({object:e,className:r})=>{let a=e.image?.replace("/1024.","/512."),s=e.href||e.id;return a?(0,t.jsx)(m.default,{href:s.replace(`https://${p.DOMAIN}`,""),className:(0,g.cn)("group",r),children:(0,t.jsx)(f,{alt:e.title||"Feed item",src:a,className:(0,g.cn)("w-full aspect-square object-cover bg-slate-100 group-hover:shadow-lg","Profile"===e.type?"rounded-full":"rounded-lg",r)})}):null}],429156);var y=e.i(404599);e.s(["default",0,({attachments:e=[]})=>(0,t.jsx)(y.default,{attachments:e,className:"mt-3 max-w-full gap-2",imageClassName:"h-32 w-32 rounded-lg bg-zinc-100 object-cover hover:shadow-lg"})],999166);var b=e.i(634263),j=e.i(922152),v=e.i(150509),k=e.i(18605),w=e.i(128020),N=e.i(34485);let C=({markerId:e,comment:a})=>{let{isLoggedIn:l}=(0,w.useAccessToken)(),{data:i,mutate:o}=(0,N.useData)(l&&"/me/saved"),[c,d]=(0,r.useState)(0),[m,p]=(0,r.useState)(!1);(0,r.useEffect)(()=>d(0),[a.likesCount]);let h=(i?.likedComments||[]).includes(a.id),f=Math.max(+!!h,(a.like
1sCount||0)+c),x=async()=>{if(!l)return(0,k.redirectToLogin)();if(m)return;p(!0);let t=e=>o(t=>{let r=(t?.likedComments||[]).filter(e=>e!==a.id);return{...t,likedComments:e?[...r,a.id]:r}},!1);t(!h),d(e=>e+(h?-1:1));try{await u.default.post(`markers/${e}/${h?"unlike":"likes"}`,{commentId:a.id})}catch(e){console.error("[CommentLikeButton] Failed to toggle like",e),s.default.error("Sorry, that didn't work"),t(h),d(e=>e-(h?-1:1))}finally{p(!1)}};return(0,t.jsxs)(n.Button,{variant:"ghost",size:"xs",onClick:x,"aria-pressed":h,"aria-label":h?"Unlike comment":"Like comment",className:(0,g.cn)("text-zinc-500",h&&"text-red-600"),children:[(0,t.jsx)(v.HeartIcon,{className:(0,g.cn)(h&&"fill-current")}),f||"Like"]})};e.s(["CommentActions",0,({markerId:e,comment:r,onReply:a})=>{let s=(0,j.useCurrentUser)();return(0,t.jsxs)("div",{className:"flex items-center gap-1 -ml-2 mt-1",children:[(0,t.jsx)(C,{markerId:e,comment:r}),s?.id!==r.actor.id&&(0,t.jsxs)(n.Button,{variant:"ghost",size:"xs",className:"text-zinc-500",onClick:()=>a(r.actor),children:[(0,t.jsx)(b.MessageCircleIcon,{}),"Reply"]})]})}],944435)},821504,e=>{"use strict";var t=e.i(26863),r=e.i(122525),a=e.i(939217),s=e.i(644537),n=e.i(811766),l=e.i(144013),i=e.i(381596),o=e.i(978649),c=e.i(377593),d=e.i(429156),u=e.i(999166),m=e.i(944435),p=e.i(970717),h=e.i(509239),f=e.i(558773);let x=({className:e="",reason:r="Join the movement to build a worldwide street art community"})=>(0,t.jsxs)(a.default,{className:(0,h.cn)("rounded-lg bg-purple-500 mb-6 p-5 py-4 text-sm block text-white",e),href:"/supporters?utm_source=supporter-block-banner",children:[(0,t.jsxs)("span",{className:"font-semibold mb-1 flex items-center gap-1.5",children:[(0,t.jsx)("img",{src:"/images/decorations/supporter-white.svg",className:"size-4",alt:"*"}),"Become a supporter"]}),(0,t.jsxs)("span",{className:"text-white/90",children:[r,(0,t.jsx)(f.ChevronRight,{className:"size-4 inline-block ml-0.5 -mt-1"})]})]});var g=e.i(633578);let y=({object:e})=>{if(!e||!e.type)return null;switch(e.type){case"Marker":return e?.image&&(0,t.jsx)(o.default,{object:e});case"Article":return(0,t.jsx)(c.default,{object:e});case"Gallery":if(e?.items?.length<2)return null;return(0,t.jsx)("div",{className:"grid grid-cols-3 gap-3",children:e.items.slice(0,6).map(e=>(0,t.jsx)(d.default,{className:"flex-none shrink-0",object:e},e.id))});default:return null}};e.s(["default",0,({feed:e,showAppBanner:o=!1,className:c="",onNoteReported:f,noteScope:b,threadUsers:j,markerId:v,onReply:k})=>{let[w,N]=(0,r.useState)(null);return e?.length?e.map((e,r)=>{let C,S=(C=(0,s.formatRelative)(new Date(e.published),new Date)).charAt(0).toUpperCase()+C.slice(1),z=w===e.id;return(0,t.jsxs)("div",{className:(0,h.cn)("mb-10",c),children:[(0,t.jsxs)("div",{className:"flex items-start gap-3 text-sm mb-3",children:[(0,t.jsx)(a.default,{href:e.actor.href,className:"shrink-0",children:(0,t.jsx)("img",{alt:e.actor.displayName,src:e.actor.avatar?.replace("/orig.","/512.jpg?"),className:"w-8 h-8 rounded-full object-cover"})}),(0,t.jsxs)("div",{className:"block flex-1 -mt-1",children:[(0,t.jsxs)("div",{className:"mb-3",children:[(0,t.jsx)(n.default,{decorations:e.actor.decorations?.map(t=>({entity:(e.actor.href||e.actor.id)?.split(`${g.DOMAIN}/`)[1],...t})),as:"span",children:e.summary}),e.object?.id?(0,t.jsxs)(a.default,{href:e.object?.id,className:"text-gray-500 block text-xs",children:[S,e.edited?" (edited)":""]}):(0,t.jsxs)("div",{className:"text-gray-500 text-xs",children:[S,e.edited?" (edited)":""]})]}),z?(0,t.jsx)(i.EditCommunityNoteForm,{note:e,onClose:()=>N(null),onSaved:f,threadUsers:j}):e.content?(0,t.jsx)("div",{className:"mb-2",children:(0,t.jsx)(n.default,{children:e.content})}):null,(0,t.jsx)(u.default,{attachments:e.attachments}),(0,t.jsx)(y,{object:e.object}),v&&k&&"comment"===e.noteType&&!z&&(0,t.jsx)(m.CommentActions,{markerId:v,comment:e,onReply:k})]}),f&&"Note"===e.type&&(0,t.jsx)("div",{className:"shrink-0 -mt-1",children:(0,t.jsx)(l.CommunityNoteActions,{note:e,scope:b,onChanged:f,onEdit:()=>N(e.id)})}),e.object?.type==="Gallery"&&e.object?.items?.length===1&&(0,t.jsx)(d.default,{className:"h-16 w-16",object:e.object.items[0]})]}),o&&3===r&&(0,t.jsx)(p.default,{downloadReason:"Get the Street Art Cities app to interact, like artworks, and leave notes.",campaign:"Website social feed download button",className:"mt-10 mb-0"}),o&&7===r&&(0,t.jsx)(x,{className:"mt-10 mb-0"})]},e.id)}
1):(0,t.jsx)("p",{className:"prose prose-sm opacity-75",children:"No activity yet."})}],821504)}]);
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.