PageSourceSearch

https://chicagohumanities.org/_nuxt/DDF11S9m.js

js chicagohumanities.org collected 2026-09-24 17:39:31 UTC 1,832 bytes, 1 lines download raw bytes

1import{u as v}from"./uKY61zDc.js";import{f as m,V as p,l as d,m as a,c as f,a as t,W as g,h,o as w}from"./Cg3HSUfV.js";const B=m({__name:"favorite-button",props:{event:{}},setup(r){const o=r,n=p(),c=d(),e=v(),l=a(()=>e.currentUser),i=a(()=>e.isEventFavorited(o.event.id)),u=async()=>{l.value?await e.toggleEventFavorite(o.event.id):n.push({query:{...c.query,modal:"login"}})};return(F,s)=>(w(),f("button",{type:"button","aria-label":"Favorite",class:g(["favorite",{favorited:h(i)}]),onClick:u},[...s[0]||(s[0]=[t("svg",{height:"40",width:"47",viewBox:"0 0 47 40",xmlns:"http://www.w3.org/2000/svg"},[t("path",{class:"fill",d:"m23.03 40c-.451 0-.902-.172-1.245-.515l-18.13-18.13c-4.878-4.878-4.878-12.814 0-17.692 2.363-2.363 5.504-3.665 8.846-3.665 3.341 0 6.483 1.302 8.846 3.665l1.682 1.681 1.681-1.682c2.363-2.362 5.504-3.664 8.846-3.664 3.342 0 6.484 1.302 8.846 3.665 2.363 2.362 3.665 5.504 3.665 8.846 0 3.341-1.302 6.483-3.665 8.846l-18.13 18.13c-.343.343-.795.515-1.245.515"}),t("path",{class:"outline",d:"m12.505 3.523c-2.401 0-4.658.935-6.355 2.632-3.504 3.504-3.504 9.205 0 12.709l16.883 16.883 16.882-16.883c1.697-1.697 2.632-3.954 2.632-6.354 0-2.401-.935-4.657-2.632-6.355-1.698-1.697-3.954-2.632-6.355-2.632-2.4 0-4.657.935-6.355 2.632l-2.927 2.927c-.689.688-1.803.688-2.491 0l-2.927-2.927c-1.698-1.697-3.954-2.632-6.355-2.632m10.528 36.477c-.451 0-.902-.172-1.245-.515l-18.13-18.13c-4.878-4.878-4.878-12.814 0-17.692 2.363-2.363 5.504-3.665 8.846-3.665 3.341 0 6.483 1.302 8.846 3.665l1.682 1.681 1.681-1.682c2.363-2.362 5.504-3.664 8.846-3.664 3.342 0 6.484 1.302 8.846 3.665 2.363 2.362 3.665 5.504 3.665 8.846 0 3.341-1.302 6.483-3.665 8.846l-18.13 18.13c-.343.343-.795.515-1.245.515"})],-1),t("span",{class:"text-ada"},"Favorite",-1)])],2))}}),x=Object.assign(B,{__name:"FavoriteButton"});export{x as default};

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.