1import{j as s,r as f}from"./react-Bn9KuX-L.js";import{g as u,p as v,S as p,u as j,h as n,R as y,Q as b,t as k,f as E,L as w}from"./index-C_5JZHn3.js";import{S as d}from"./SeoText-C5k2Igob.js";import{u as L,S}from"./useSeo-Bw0M9WJA.js";import{u as T}from"./artwork-CmE93K-J.js";import{u as A}from"./event-8n9K7r7i.js";import{u as D}from"./useAos-wyQfxrcU.js";import{a as I}from"./GridItemCard-pYD95qdS.js";import{f as _}from"./store.service-CqYMTO8A.js";import{i as h}from"./common-C7XJoNpp.js";import{a as M,L as R,e as F}from"./router-Bgi5W-cI.js";import"./query-BLZ7jo_n.js";import"./event.service-DComO19c.js";const P=27,U=({item:a,to:e,showDetails:l,seoText:c})=>s.jsxs(u,{className:"_single_grid_item__evt primary_color","data-aos":"fade-up","data-aos-duration":"2500",to:e,title:c,children:[s.jsx("div",{className:"__img_sec",children:s.jsx("img",{src:a.artPicture,alt:c,className:"imageLoader"})}),s.jsxs("div",{className:"__content_sec",children:[s.jsx("p",{children:a.artYear}),s.jsxs("h1",{className:"___text_h1",title:a.artTitle,children:[s.jsx("span",{className:"___text-title",children:v(a.artTitle,P)}),s.jsx("span",{className:"______dot",style:{background:Number(a.isSold)===0?"#4e9c1f":"#a02004"}})]}),l&&s.jsxs("div",{className:"__new_des",children:[s.jsx("h2",{children:a.artistName}),s.jsx("p",{children:a.artMaterial}),s.jsx(p,{as:"p",html:a.artDimension}),h(a.isForSale)&&s.jsxs("p",{children:["AED ",_(a.priceAED)]}),h(a.isForSale)&&s.jsx("p",{children:s.jsxs("b",{children:["USD ",_(a.priceUSD)]})})]})]})]}),B=({event:a,description:e,seo:l})=>{const c=M(),{text:r}=j();return s.jsxs("div",{className:"row justify-content-center align-items-start mb-5","data-aos":"fade-in",children:[s.jsx("div",{className:"col-md-12 mb-4",children:s.jsxs("div",{className:"__align",children:[s.jsxs("p",{className:"__brd_crms mb-4",children:[s.jsx("a",{onClick:()=>c(-1),children:r.back}),s.jsx(n,{className:"primary_color",children:"chevron_right"}),s.jsx(R,{to:y.EVENTS,children:r.events}),s.jsx(n,{className:"primary_color",children:"chevron_right"}),s.jsx("a",{onClick:()=>c(-1),children:a?.title}),s.jsx(n,{className:"primary_color",children:"chevron_right"}),s.jsx("span",{style:{fontWeight:"bold"},children:r.artworks})]}),s.jsx("h1",{className:"_page_title secondary_color",children:a?.title}),s.jsx("img",{src:"/assets/images/dumm.png",alt:"",style:{width:"40px"}})]})}),s.jsx(d,{seo:l}),s.jsxs("div",{className:"col-md-12",children:[s.jsxs("div",{className:"row",children:[s.jsxs("div",{className:"col-md-6 mb-3",children:[s.jsxs("p",{className:"common_para secondary_color",children:[s.jsx("i",{className:"fa fa-calendar-o","aria-hidden":"true"}),s.jsx("span",{style:{margin:"0 10px"},children:a?.eventDisplayDate})]}),s.jsxs("p",{className:"common_para secondary_color",children:[s.jsx("i",{className:"fa fa-clock-o","aria-hidden":"true"}),s.jsx("span",{style:{margin:"0 10px"},children:a?.eventTime})]}),s.jsxs("p",{className:"common_para secondary_color",children:[s.jsx("i",{className:"fa fa-map-marker"}),s.jsx("span",{style:{margin:"0 10px"},children:a?.location})]})]}),s.jsxs("div",{className:"col-md-6 d-flex flex-column align-items-end __on-mb-____ mb-3",children:[s.jsx("p",{className:"common_para secondary_color text-center",children:s.jsxs("a",{className:"__back_button",style:{width:"270px"},href:a?.brochureEn,target:"_blank",rel:"noopener noreferrer",children:[s.jsx("i",{className:"fa fa-download"}),s.jsx("span",{style:{margin:"0 10px"},children:"Brochure in English"})]})}),s.jsx("p",{className:"common_para secondary_color text-center",children:s.jsxs("a",{className:"__back_button",style:{width:"270px"},href:a?.brochureAr,target:"_blank",rel:"noopener noreferrer",children:[s.jsx("i",{className:"fa fa-download"}),s.jsx("span",{style:{margin:"0 10px"},children:"Brochure in Arabic"})]})})]})]}),s.jsx(p,{className:"clearfix common_para __img_desc",html:e})]})]})},X=()=>{const[a]=F(),e=a.get(b.EVENT_ID)??"",{dir:l,text:c}=j(),r=L(S.ART_GALLERY),{data:i,isLoading:o}=A(e),{items:m,isLoading:x,isFetchingMore:g}=T({eventId:e});D([m.length,x,o]);const N=f.useMemo(()=>i?`<img src="${i.eventCover}" style="width: 300px; float: right;" alt="${i.title}">${i.description}`:"",[i]);return s.jsx("div",{className:"kc-art-works __fixed",style:{paddingTop:"110px"},children:s.jsx("div",{className:"container-fluid",children:s.jsx("div",{className:"row justify-content-center align-items-center",children:s.jsxs("div",{className:"col-md-10 mt-5 mb-2",children:[!
1o&&s.jsx(B,{event:i,description:N,seo:r}),s.jsx(d,{seo:r}),!o&&s.jsxs("div",{className:"__align",children:[s.jsx("h1",{className:"_page_title secondary_color",children:c.artworks}),s.jsx("img",{src:"/assets/images/dumm.png",alt:"",style:{width:"40px"}})]}),s.jsxs("div",{className:"row","data-aos":"fade-in",children:[s.jsx("div",{className:"col-md-12 mt-4 mb-3",children:s.jsxs("div",{className:"__common_grid_list",dir:l,children:[m.map(t=>s.jsx(U,{item:t,to:k.artview(t.artId,e,E(t.artTitle)),showDetails:!!e,seoText:r?.seoText},t.artId)),s.jsx(I,{})]})}),s.jsx(d,{seo:r})]}),(x||g)&&s.jsx(w,{})]})})})})};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.