1import{b as he,Q as _e,a as be}from"./QTab-B_3BLV65.js";import{Q as ke}from"./QTabs-BvVbTNgw.js";import{_ as pe,z as u,v as s,y as D,C as G,t as y,u as m,x as r,D as h,U as _,F as P,A as C,ae as de,O as De,B as Se,a7 as Te,a5 as we,T as Ae,aj as Ie,s as E,r as N,a as L,am as ue,w as xe}from"./index-DPU8tt9y.js";import{Q as $e}from"./QPage-Dn3tYKS8.js";import{u as qe}from"./use-meta-Xq_RTEY7.js";import{u as Pe}from"./use-quasar-CTISjYAc.js";import{u as Ce}from"./shared-store-TX9ZoVD6.js";import{u as Ee}from"./actions-store-CwXwt_RP.js";import{u as Le}from"./artists-store-CuJra8RD.js";import{u as Qe}from"./graphics3D-store-Bciv2Au7.js";import{F as je}from"./FixedTopTitle-BE3Tt5oJ.js";import{S as Ve}from"./SmallPageContainer-CpM37awQ.js";import{S as Fe}from"./SharedCard-D9man09f.js";import{A as Re}from"./ActionDialog-BV4P2cAr.js";import{L as Me}from"./ListWorkingDaysDialog-Bdw-p_5Y.js";import{S as Ne}from"./SubscribeDialog-Bd0PdHms.js";import{u as Ge}from"./vue-i18n.runtime-D7BQ9Rn3.js";import"./use-panel-DIxQt22D.js";import"./touch-Dq9JouYP.js";import"./selection-FnThVj-5.js";import"./QMenu-COur7ZDx.js";import"./firebase-C8tonhbH.js";import"./axios-DZty20fb.js";import"./merch-store-Cuyzxib8.js";import"./date-BDkcM4K9.js";import"./format-hlGAdIUH.js";import"./QToolbar-B_wV9miI.js";import"./QImg-CioGP9IP.js";import"./ClosePopup-BJoy45Ex.js";import"./CarouselComponent-CIowQLAO.js";import"./QScrollArea-Bw1wl0-j.js";import"./QScrollObserver-fJB7dacP.js";import"./TouchPan-BS_rCVVU.js";import"./QVideo-CWQTY7aB.js";import"./QSpace-BEInqnv4.js";import"./QItem-CwneC9FG.js";import"./QSelect-Cmn33aOK.js";import"./QItemLabel-KPz3sUTF.js";import"./QList-Suyja78l.js";import"./QForm-CgwuT3WQ.js";import"./isValidEmailAddress-DFdIrQXD.js";import"./i18n-BVGf6uiq.js";const Be={name:"NoResults"},Oe={class:"text-center"};function Je(p,n,S,a,d,b){return s(),u("div",Oe,[D("h3",null,G(p.$t("common.unfortunately")),1)])}const Ue=pe(Be,[["render",Je]]),ze={name:"ActionsPage",components:{FixedTopTitle:je,SmallPageContainer:Ve,SharedCard:Fe,ActionDialog:Re,NoResults:Ue,ListWorkingDaysDialog:Me,SubscribeDialog:Ne},props:{typeAction:{type:String,required:!0}},setup(p){const n=Ae(),S=Pe(),{locale:a,t:d}=Ge({useScope:"global"}),{typeAction:b}=Ie(p),Q=Ce(),{actionsLinks:j}=E(Q),w=Ee(),{filterExhibitionsDraft:f,filterEventsDraft:A,ticketsList:I}=E(w),{getExhibitions:V,getEvents:F,listenForChildTicket:c}=w,e=Le(),{artistsList:x}=E(e),{getArtists:$}=e;x.value.length||$();const T=Qe(),{listGalleries:R,filteredListGalleriesNonDraft:fe}=E(T),{listenForChildEvents:ge}=T;Object.keys(R.value).length||ge("listGalleries");const B=N([]),k=N([]),ve={1747135580593:"https://buy.stripe.com/aFaaEWdrxasDgCndEe0co05",1747135787981:"https://buy.stripe.com/eVqdR83QXdEP1HtgQq0co06",1760538460280:"https://buy.stripe.com/eVq9AS4V1asDeuf1Vw0co07",1763630924994:"https://buy.stripe.com/fZu6oGgDJfMXbi3fMm0co09",1766419999891:"https://buy.stripe.com/3cI6oI2eM39zaJ2eoq9IQ02"},g=N(n.query.lifeTime?"current":S.localStorage.getItem("tab-actions")||"archive"),M=L(()=>B.value.find(t=>t.id===`d${n.query.id}`)),ye=L(()=>a.value==="it"?k.value.map(t=>({...t,city:t.cityIt,description:t.descriptionIt,name:t.nameIt,works:t.works.map(o=>({...o,description:o.descriptionIt,name:o.nameIt}))})):k.value),i=L(()=>{const t=f.value.find(l=>l.lifeTime==="current");if(t)return t;const o=f.value.find(l=>l.lifeTime==="upcoming");if(o)return o;const v=f.value.find(l=>l.lifeTime==="archive");return v||null}),q=L(()=>x.value.find(t=>{var o,v,l;return t.name===((l=(v=(o=i.value)==null?void 0:o.name)==null?void 0:v.match(/^([\w\s]+)\s"(.+)"$/))==null?void 0:l[1])}));ue(()=>{M.value&&setTimeout(()=>{if(M.value){const o=M.value.getBoundingClientRect().top+window.pageYOffset-180;window.scrollTo({top:o,behavior:"smooth"}),n.query.id=null}},500)}),xe(g,()=>{S.localStorage.set("tab-actions",g.value)}),ue(()=>{var t;b.value==="exhibitions"?(f.value.length||V(),n.query.id&&(g.value=(t=f.value.find(o=>o.id.toString()===n.query.id))==null?void 0:t.lifeTime),k.value=f.value.filter(o=>o.lifeTime===g.value),(g.value==="upcoming"||g.value==="current")&&(k.value.reverse(),k.value.forEach(o=>{I.value[o.id]||c(o.id)}))):(A.value.length||F(),k.value=A.value.filter(o=>o.lifeTime===g.value))});const O=t=>t&&t[0].toUpperCase()+t.slice(1);return qe(()=>{var t,o,v,l,J,U,z,H,W,X,K,Y,Z,ee,te,oe,ae,se,ie,re,ne,le,ce,me;return{title:`${O(b.value)} | ${d("meta.homeTitle")}`,meta:{description:{name:"description",content:d("meta.homeDescription")},keywords:{name:"keywords",content:d("meta.homeKeywords")},robots:{name:"robots",content:"index, follow"},ogUrl:{property:"og:url",content:`https://aortagallery.com/actions/${b.value}`},ogTitle:{property:"og:title",content:`${O(b.value)} | ${d("meta.homeTitle")}`},ogDescription:{property:"og:description",content:d("meta.homeDescription")},ogImage:{property:"og:image",content:"https://firebasestorage.googleapis.com/v0/b/roots-a7a88.appspot.com/o/admin%2FIMG_5964.JPG?alt=media&token=8dd0bf48-29a6-4543-a178-aeeb53e2da9d"}},link:{canonical:{rel:"canonical",href:`https://aortagallery.com/actions/${b.value}`}},script:{jsonLd:{type:"application/ld+json",innerHTML:JSON.stringify({"@context":"https://schema.org","@type":"ExhibitionEvent",eventStatus:"https://schema.org/EventScheduled",name:a.value==="it"?((v=(o=(t=i.value)==null?void 0:t.nameIt)==null?void 0:o.match(/^([\w\s]+)\s"(.+)"$/))==null?void 0:v[2])||((l=i.value)==null?void 0:l.nameIt)||"Evento":((z=(U=(J=i.value)==null?void 0:J.name)==null?void 0:U.match(/^([\w\s]+)\s"(.+)"$/))==null?void 0:z[2])||((H=i.value)==null?void 0:H.name)||"Event",description:a.value==="it"?(W=i.value)==null?void 0:W.descriptionIt:(X=i.value)==null?void 0:X.description,startDate:(Y=(K=i.value)==null?void 0:K.openingDate)==null?void 0:Y.replace(/\//g,"-"),endDate:(ee=(Z=i.value)==null?void 0:Z.closingDate)==null?void 0:ee.replace(/\//g,"-"),eventAttendanceMode:"https://schema.org/MixedEventAttendanceMode",location:{"@type":"Place",name:d("meta.homeTitle"),address:{"@type":"PostalAddress",postalCode:"56125",addressLocality:"Pisa",addressCountry:"Italy",streetAddress:"Corso Italia 146"}},image:(te=i.value)==null?void 0:te.urlImage,organizer:{"@id":"https://aortagallery.com/#gallery"},offers:{"@type":"Offer",name:d("meta.generalAdmission"),url:"https://aortagallery.com/actions/exhibitions",price:"15.00",priceCurrency:"EUR",availability:"https://schema.org/InStock",validFrom:(ae=(oe=i.value)==null?void 0:oe.openingDate)==null?void 0:ae.replace(/\//g,"-")},performer:{"@type":"Person",name:(re=(ie=(se=i.value)==null?void 0:se.name)==null?void 0:ie.match(/^([\w\s]+)\s"(.+)"$/))==null?void 0:re[1],url:`https://aortagallery.com/artists/${(ne=q.value)==null?void 0:ne.artistId}`,image:(le=q.value)==null?void 0:le.urlPortrait,description:a.value==="it"?(ce=q.value)==null?void 0:ce.descriptionIt:(me=q.value)==null?void 0:me.description}})}}}}),{ticketsList:I,tab:g,actionsLinks:j,filteredActions:k,filteredActionsI18n:ye,itemRefs:B,actionJsonLd:i,joinProjects:ve,filteredListGalleriesNonDraft:fe}}},He={class:"row justify-md-start"},We=["id"],Xe={class:"text-subtitle1"},Ke=["textContent"],Ye={key:0,class:"text-h5"},Ze={class:"q-mb-xl"},et={key:1,class:"q-my-sm"};function tt(p,n,S,a,d,b){const Q=y("fixed-top-title"),j=y("router-link"),w=y("subscribe-dialog"),f=y("list-working-days-dialog"),A=y("action-dialog"),I=y("shared-card"),V=y("small-page-container"),F=y("no-results");return s(),m(de,{appear:"","enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut"},{default:r(()=>[h($e,{class:"q-pa-md",style:{"padding-top":"100px"}},{default:r(()=>[h(Q,{name:p.$t(`links.${S.typeAction}`)},{default:r(()=>[D("div",He,[h(ke,{modelValue:a.tab,"onUpdate:modelValue":n[0]||(n[0]=c=>a.tab=c),dense:"","narrow-indicator":"","indicator-color":"negative","active-color":"negative"},{default:r(()=>[(s(!0),u(P,null,C(a.actionsLinks,({label:c,name:e})=>(s(),m(he,{style:{width:"100px"},class:"text-body1",key:e,name:e,label:p.$t(c)},null,8,["name","label"]))),128))]),_:1},8,["modelValue"])])]),_:1},8,["name"]),p.$q.loading.isActive?_("",!0):(s(),m(_e,{key:0,modelValue:a.tab,"onUpdate:modelValue":n[1]||(n[1]=c=>a.tab=c)},{default:r(()=>[(s(!0),u(P,null,C(a.actionsLinks,({name:c}
1)=>(s(),m(be,{key:c,name:c},{default:r(()=>[a.filteredActions.length?(s(!0),u(P,{key:0},C(a.filteredActionsI18n,(e,x)=>(s(),u("div",{key:e.id,ref_for:!0,ref:"itemRefs",id:`d${e.id}`},[h(de,{appear:"","enter-active-class":"animated fadeIn"},{default:r(()=>[h(V,{class:"q-pb-md"},{default:r(()=>[h(I,{"data-card":{name:e.name,description:e.description,url:e.urlImage,caption:`${e.openingDate} - ${e.closingDate}, ${e.city}`},class:"q-pb-lg"},{underPicture:r(()=>[h(Te,null,{default:r(()=>[D("div",Xe,[D("p",{textContent:G(`${e.openingDate} - ${e.closingDate}, ${e.city}`)},null,8,Ke)])]),_:2},1024)]),press:r(()=>{var $;return[($=e.press)!=null&&$.length?(s(),u("div",Ye,"Press")):_("",!0),D("ul",Ze,[(s(!0),u(P,null,C(e.press,({id:T,name:R})=>(s(),u("li",{key:T},[h(j,{to:`/press/${e.id}-${T}`,style:{color:"#1d1d1d"},class:"text-body1"},{default:r(()=>[Se(G(R),1)]),_:2},1032,["to"])]))),128))])]}),button:r(()=>[D("div",null,[e.lifeTime!=="upcoming"&&Object.keys(a.filteredListGalleriesNonDraft).includes(e.id.toString())?(s(),m(w,{key:0,action:e},null,8,["action"])):_("",!0),e.lifeTime!=="archive"?(s(),u("div",et,[a.ticketsList[e.id]?(s(),m(f,{key:0,action:e},null,8,["action"])):_("",!0)])):_("",!0),e.lifeTime!=="upcoming"?(s(),m(A,{key:2,class:"q-my-xs",title:e.name,typeAction:S.typeAction,dialogData:e.works},null,8,["title","typeAction","dialogData"])):_("",!0),D("div",null,[a.joinProjects[e.id]?(s(),m(De,{key:0,"no-caps":"",outline:"",rounded:"",class:"full-width",label:p.$t("common.joinProject"),href:a.joinProjects[e.id],target:"_blank"},null,8,["label","href"])):_("",!0)])])]),_:2},1032,["data-card"])]),_:2},1024)]),_:2},1024),x<a.filteredActions.length-1?(s(),m(we,{key:0,class:"q-my-md"})):_("",!0)],8,We))),128)):(s(),m(F,{key:1}))]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"]))]),_:1})]),_:1})}const Ot=pe(ze,[["render",tt]]);export{Ot 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.