1"use strict";(self.webpackChunkmytickets=self.webpackChunkmytickets||[]).push([[286],{20640:(e,t,s)=>{s.d(t,{A:()=>j});var i=s(16491),l=s(25333),n=s(44811),o=s(9950),a=s(42074),r=s(74720),c=s(13501),d=s(172),x=s(74635),m=s(4159),h=s.n(m),u=s(72183),p=s(82647),g=s(69238),v=s(16191),f=s(44414);const j=e=>{var t,s,m,j,w,C;let{item:y,activity:b}=e;const{latitude:N,longitude:A}=(0,c.d4)((e=>e.Location)),k=(0,o.useMemo)((()=>(0,d.getDistance)({latitude:N,longitude:A},{latitude:y.geoLocation.coordinates[1],longitude:y.geoLocation.coordinates[0]})),[N,A]),E="TOURISTICAL_MONUMENTS"===y.type||"RECREATIONAL_ACTIVITY"===y.type,L=(0,c.wA)(),{isAuthenticated:T}=(0,c.d4)((e=>e.Auth)),[S]=(0,p.a8)(),[D]=(0,p.Oz)();return(0,f.jsxs)(i.A,{component:a.N_,to:E?"/landmark-activities/details/".concat(y.id):"FILM"==y.type?"/film/details/".concat(y.id):17!==y.category||17===(null===y||void 0===y||null===(t=y.category)||void 0===t?void 0:t.id)?"/boat/details/".concat(y.id):"/show/details/".concat(y.id),sx:{height:{lg:b?"450px":"220px",xs:"220px"}}
1,className:"xl:col-span-3 rounded-[16px] bg-gradient-to-t from-black/65 via-transparent to-black/0 bg-cover bg-no-repeat w-[90%] flex flex-col justify-between text-xs lg:text-lg relative",children:[(0,f.jsx)("img",{className:" object-fit h-full w-full overflow-hidden rounded-[16px] -z-50",src:r.A+y.image,alt:"event card"}),(0,f.jsxs)("div",{className:"pt-2 px-2 flex flex-col justify-between absolute w-full h-full",children:[(0,f.jsxs)("div",{className:"flex justify-between items-center",children:["SHOW"==y.type?(0,f.jsxs)("div",{className:"p-[5px] sm:p-[8px] text-xs sm:text-[16px] flex flex-col items-center rounded-[8px] text-white bg-gradient-to-br from-red-600 via-red-500 to-yellow-400",children:[(0,f.jsx)("p",{children:y.date.length&&h()(y.date[0].from).format("DD")}),(0,f.jsx)("p",{children:y.date.length&&h()(y.date[0].from).format("MMM")})]}):(0,f.jsxs)("div",{className:"p-[5px] sm:p-[8px] text-xs sm:text-[16px] flex font-bold items-center rounded-[8px] text-white bg-gradient-to-br from-red-600 via-red-500 to-yellow-400",children:[y.rate,(0,f.jsx)(v.A,{})]}),(0,f.jsx)(l.A,{onClick:e=>{T?y.favorite?D(y.id):S(y.id):L((0,g.$r)()),e.preventDefault()},sx:{background:"rgba(0, 0, 0, 0.25)"},children:y.favorite?(0,f.jsx)(u.A,{sx:{color:"white",fontSize:{xs:"18px"}}}):(0,f.jsx)(n.A,{sx:{color:"white",fontSize:{xs:"18px"}}})})]}),(0,f.jsxs)("div",{className:"flex ".concat(b&&"flex-col"," justify-between text-white"),children:[(0,f.jsxs)("div",{className:"child:my-2",children:[(0,f.jsx)("h3",{children:y.name}),"FILM"!==y.type&&(0,f.jsx)("p",{children:"".concat(null!==y&&void 0!==y&&null!==(s=y.city)&&void 0!==s&&s.country&&null!==y&&void 0!==y&&null!==(m=y.city)&&void 0!==m&&m.country.name?null===y||void 0===y||null===(j=y.city)||void 0===j||null===(w=j.country)||void 0===w?void 0:w.name:""," , ").concat(null===y||void 0===y||null===(C=y.city)||void 0===C?void 0:C.name)})]}),(0,f.jsxs)("div",{className:"child:my-2",children:[E?(0,f.jsx)("div",{className:"invisible",children:"dummy"}):(0,f.jsxs)("div",{className:"flex child:mx-1 invisible",children:[(0,f.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6 text-primary",children:(0,f.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 6v.75m0 3v.75m0 3v.75m0 3V18m-9-5.25h5.25M7.5 15h3M3.375 5.25c-.621 0-1.125.504-1.125 1.125v3.026a2.999 2.999 0 0 1 0 5.198v3.026c0 .621.504 1.125 1.125 1.125h17.25c.621 0 1.125-.504 1.125-1.125v-3.026a2.999 2.999 0 0 1 0-5.198V6.375c0-.621-.504-1.125-1.125-1.125H3.375Z"})}),(0,f.jsx)("span",{children:"50 \u0631\u064a\u0627\u0644"})]}),(0,f.jsx)("div",{className:"flex child:mx-1 text-sm",children:(0,f.jsx)("span",{children:"".concat((0,x.t)("afar")," ").concat(Math.round(k/1e3)," ").concat((0,x.t)("km")," ").concat((0,x.t)("away"))})})]})]})]})]})}},91519:(e,t,s)=>{s.d(t,{A:()=>x});var i=s(98329),l=s(2235),n=s(10226),o=(s(9950),s(67818)),a=s(13501),r=s(28429),c=s(69238),d=s(44414);const x=()=>{const{mustLogin:e}=(0,a.d4)((e=>e.Auth)),t=(0,a.wA)(),{t:s}=(0,o.Bd)(),x=(0,r.Zp)();return(0,d.jsx)(i.A,{open:e,onClose:()=>t((0,c.b6)()),children:(0,d.jsx)("div",{className:"grid place-items-center min-h-screen",children:(0,d.jsx)(l.A,{sx:{width:{lg:"30%",xs:"90%"},padding:"20px"},children:(0,d.jsxs)("div",{className:"flex items-center flex-col justify-center gap-8",children:[(0,d.jsx)("h1",{className:"text-2xl",children:s("mustLoginFirst")}),(0,d.jsxs)("div",{className:"flex gap-2 child:flex-1 justify-between ",children:[(0,d.jsx)(n.A,{variant:"contained",className:"!bg-primary !text-nowrap !px-6 ",onClick:()=>{t((0,c.b6)()),x("/login")},children:s("log-in")}),(0,d.jsx)(n.A,{variant:"contained",className:" !bg-slate-400 !px-6 ",onClick:()=>{t((0,c.b6)())},children:s("back")})]})]})})})})}},61114:(e,t,s)=>{s.d(t,{A:()=>o});s(9950),s(46256);var i=s(13501),l=s(28429),n=s(44414);const o=()=>{const{user:e}=(0,i.d4)((e=>e.Auth));(0,l.Zp)();return(0,n.jsx)("div",{})}},34317:(e,t,s)=>{s.d(t,{A:()=>w});var i=s(46589),l=s(9950),n=s(81239),o=(s(51195),s(20640)),a=s(42074),r=s(63575),c=s(67818),d=s(82647),x=s(74720),m=s(13501),h=s(14982),u=s(74635),p=s(44414);let g,v;const f=e=>{if(g=e.touches[0].clientX-v,Math.abs(g)>5)return e.preventDefault(),e.returnValue=!1,!1},j=e=>{v=e.touches[0].clientX};function w(e){var t,s;let{title:g,type:v,centerMode:w=!1,activity:b,link:N,query:A,notFound:k=(0,u.t)("noResults")}=e;const E=(0,i.A)("(min-width:620px)");let L=(0,l.useRef)();(0,l.useEffect)((()=>{let e=L.current;return e&&(e.addEventListener("touchstart",j),e.addEventListener("touchmove",f,{passive:!1})),()=>{e&&(e.removeEventListener("touchstart",j),e.removeEventListener("touchmove",f,{passive:!1}))}}));const{user:T,token:S}=(0,m.d4)((e=>e.Auth));S&&(A.userId=T.id);const{data:D,isLoading:M,isError:_,refetch:F,isUninitialized:O}=(0,d.vx)({...A});return(0,l.useEffect)((()=>{r.A.on("languageChanged",(()=>{O||F()}))}),[O,F]),(0,p.jsx)("div",{className:"relative",children:(0,p.jsxs)("div",{className:"mx-auto ".concat(b&&E?"w-[90%]":"max-w-[95%] lg:max-w-[80%]"," my-10 relative "),children:[(0,p.jsxs)("div",{className:"flex justify-between items-center pb-4 ",children:[(0,p.jsx)("h1",{className:" text-xl sm:text-2xl ",children:(0,p.jsx)(c.x6,{children:g})}
1),(0,p.jsxs)(a.N_,{to:N,state:{title:g},className:"border lg:mx-12 bg-white text-sm text-primary hover:bg-primary hover:text-white cursor-pointer p-1 px-2 border-primary rounded-full",children:[(0,p.jsx)(c.x6,{children:"show-all"})," "]})]}),M?(0,p.jsx)(h.A,{classes:"grid place-items-center col-span-12 w-full"}):0===(null===D||void 0===D||null===(t=D.data)||void 0===t?void 0:t.length)||_?(0,p.jsx)("div",{className:"text-center",children:k}):(0,p.jsx)("div",{ref:L,children:(0,p.jsx)(n.default,{swipeable:!0,draggable:!0,renderButtonGroupOutside:!0,showDots:!1,responsive:{superLargeDesktop:{breakpoint:{max:4e3,min:3e3},items:3,partialVisibilityGutter:0},desktop:{breakpoint:{max:3e3,min:1024},items:3,partialVisibilityGutter:0},tablet:{breakpoint:{max:1024,min:464},items:1,partialVisibilityGutter:0},mobile:{breakpoint:{max:464,min:0},items:1,partialVisibilityGutter:30}},centerMode:w&&E,infinite:!0,autoPlay:!1,autoPlaySpeed:3e3,keyBoardControl:!0,rtl:"rtl"===r.A.dir(),arrows:!1,customDot:(0,p.jsx)(y,{}),customButtonGroup:(0,p.jsx)(C,{activity:b}),partialVisbile:!E,customTransition:"all 1000ms",transitionDuration:1,containerClass:"carousel-container",removeArrowOnDeviceType:["tablet","mobile"],dotListClass:"custom-dot-list-style",itemClass:"carousel-item-padding-40-px ",children:null===D||void 0===D||null===(s=D.data)||void 0===s?void 0:s.map((e=>(0,p.jsx)(o.A,{item:e,img:x.A+e.image,activity:b&&E},e.id)))})})]})})}const C=e=>{let{next:t,previous:s,goToSlide:i,activity:l,...n}=e;const{carouselState:{currentSlide:o}}=n;return(0,p.jsxs)("div",{className:"".concat("ltr"===r.A.dir()?"flex-row-reverse":"flex-row"," carousel-button-group absolute flex translate-x-[50%] right-[50%] my-4 child:mx-2 ").concat(l?"lg:right-[15rem]":"lg:right-[13rem]"," lg:-top-2"),children:[(0,p.jsx)("button",{className:0===o?"disable":"",onClick:()=>s(),children:(0,p.jsxs)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,p.jsx)("rect",{x:"1",y:"0.5",width:"23",height:"23",rx:"7.5",stroke:"#F25D2E"}),(0,p.jsx)("path",{d:"M14.3867 11.5266L11.56 8.69988C11.498 8.6374 11.4243 8.5878 11.3431 8.55396C11.2618 8.52011 11.1747 8.50269 11.0867 8.50269C10.9987 8.50269 10.9115 8.52011 10.8303 8.55396C10.7491 8.5878 10.6753 8.6374 10.6134 8.69988C10.4892 8.82479 10.4195 8.99376 10.4195 9.16988C10.4195 9.34601 10.4892 9.51498 10.6134 9.63988L12.9734 11.9999L10.6134 14.3599C10.4892 14.4848 10.4195 14.6538 10.4195 14.8299C10.4195 15.006 10.4892 15.175 10.6134 15.2999C10.6756 15.3617 10.7495 15.4106 10.8308 15.4437C10.912 15.4769 10.999 15.4937 11.0867 15.4932C11.1744 15.4937 11.2614 15.4769 11.3426 15.4437C11.4239 15.4106 11.4977 15.3617 11.56 15.2999L14.3867 12.4732C14.4492 12.4112 14.4988 12.3375 14.5326 12.2563C14.5665 12.175 14.5839 12.0879 14.5839 11.9999C14.5839 11.9119 14.5665 11.8247 14.5326 11.7435C14.4988 11.6623 14.4492 11.5885 14.3867 11.5266Z",fill:"#F25D2E"})]})}),(0,p.jsx)("button",{onClick:()=>t(),children:(0,p.jsxs)("svg",{className:"font-[16px]",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,p.jsx)("rect",{x:"1",y:"0.5",width:"23",height:"23",rx:"7.5",stroke:"#F25D2E"}),(0,p.jsx)("path",{d:"M12.0267 11.9999L14.3867 9.63988C14.5108 9.51498 14.5805 9.34601 14.5805 9.16988C14.5805 8.99376 14.5108 8.82479 14.3867 8.69988C14.3247 8.6374 14.251 8.5878 14.1697 8.55396C14.0885 8.52011 14.0013 8.50269 13.9133 8.50269C13.8253 8.50269 13.7382 8.52011 13.657 8.55396C13.5757 8.5878 13.502 8.6374 13.44 8.69988L10.6133 11.5266C10.5509 11.5885 10.5013 11.6623 10.4674 11.7435C10.4336 11.8247 10.4161 11.9119 10.4161 11.9999C10.4161 12.0879 10.4336 12.175 10.4674 12.2563C10.5013 12.3375 10.5509 12.4112 10.6133 12.4732L13.44 15.3332C13.5023 15.395 13.5762 15.4439 13.6574 15.4771C13.7386 15.5102 13.8256 15.5271 13.9133 15.5266C14.0011 15.5271 14.088 15.5102 14.1693 15.4771C14.2505 15.4439 14.3244 15.395 14.3867 15.3332C14.5108 15.2083 14.5805 15.0393 14.5805 14.8632C14.5805 14.6871 14.5108 14.5181 14.3867 14.3932L12.0267 11.9999Z",fill:"#F25D2E"})]})})]})},y=e=>{let{onClick:t,...s}=e;const{active:i}=s;return i?(0,p.jsx)("svg",{width:"25",height:"8",viewBox:"0 0 25 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,p.jsx)("rect",{x:"0.5",width:"24",height:"8",rx:"4",fill:"#F25D2E"})}):(0,p.jsx)("div",{className:"w-2 h-2 bg-slate-300 rounded-full mx-2 "})}},5286:(e,t,s)=>{s.r(t),s.d(t,{default:()=>re});var i=s(9950),l=s(13773),n=s(75986),o=s(19551),a=s(7990),r=s(90746),c=s(10842),d=s(69766),x=s(48205),m=s(67818),h=s(42074),u=s(44414);const p=()=>{const{t:e,i18n:t}=(0,m.Bd)();return(0,u.jsxs)("div",{className:"flex w-full justify-center items-center h-[300px] sm:h-[550px] ",children:[(0,u.jsxs)("div",{className:"sm:flex-[.4] flex justify-center items-center flex-col sm:inline-flex ",children:[(0,u.jsx)("h1",{className:"text-[20px] text-center lg:text-[38px] xl:text-[52px] font-bold",children:e("entertainment")}),(0,u.jsx)("p",{className:"text-primary ltr:leading-9 max-sm:text-center text-sm lg:text-[20px] xl:text-[24px] font-bold py-2 lg:py-4",children:e("book-your-favorite")}),(0,u.jsxs)("div",{className:"flex child:ml-5 items-end lg:child:ml-[14px] py-6 lg:py-6",children:[(0,u.jsx)(g,{count:10,title:e("exclusive-offer"),icon:(0,u.jsx)(n.A,{})}),(0,u.jsx)(g,{count:27,title:e("tourist-landmark"),icon:(0,u.jsx)(o.A,{})}),(0,u.jsx)(g,{count:27,title:e("recreational-activity"),icon:(0,u.jsx)(a.A,{})}),(0,u.jsx)(g,{count:2404,title:e("happy-customer"),icon:(0,u.jsx)(c.A,{})})]}),(0,u.jsxs)("div",{className:"text-[#616161] space-x-2 flex",children:[(0,u.jsx)(h.N_,{to:"/discover/offers",state:{img:"/assets/one.png"},className:"btn-primary text-xs lg:text-sm ",children:e("book-now")}),(0,u.jsxs)("div",{className:"flex gap-1 items-center child:text-xs ",children:[(0,u.jsx)(d.A,{className:" text-xs"}),(0,u.jsx)("p",{className:"ltr:max-sm:text-[8px] whitespace-nowrap",children:e("fast-booking")})]}),(0,u.jsxs)("div",{className:"flex gap-1 items-center child:text-xs ",children:[(0,u.jsx)(r.A,{className:" text-xs"}),(0,u.jsx)("p",{className:"ltr:max-sm:text-[8px] whitespace-nowrap",children:e("secure-payment")})]})]})]}),(0,u.jsx)(x.A,{className:"!hidden sm:!inline-flex flex-[.6]",in:!0,timeout:700,direction:"up",mountOnEnter:!0,unmountOnExit:!0,children:(0,u.jsx)("div",{className:"",children:(0,u.jsx)("img",{style:{transform:"rtl"===t.dir()?"scaleX(1)":"scaleX(-1)"},src:"/hero.png",className:"lg:w-[90%] xl:w-[85%] 2xl:w-[70%] object-contain ",alt:"hero"})})})]})};
1function g(e){let{count:t,title:s,icon:i}=e;return(0,u.jsxs)("div",{className:"flex flex-col",children:[(0,u.jsx)("div",{className:"text-primary child:!text-lg lg:child:!text-2xl xl:child:text-3xl self-start",children:i}),(0,u.jsxs)("strong",{className:"font-bolder text-xs lg:text-lg xl:text-xl text-black font-sans",children:[t,"+"]}),(0,u.jsx)("p",{className:"text-secondary text-xs lg:text-sm",children:s})]})}var v=s(46589),f=s(81239),j=(s(51195),s(28429)),w=s(74720),C=s(63575),y=s(4159),b=s.n(y),N=s(43918);let A,k;b().locale(C.A.language);const E=e=>{if(k=e.touches[0].clientX-A,Math.abs(k)>5)return e.preventDefault(),e.returnValue=!1,!1},L=e=>{A=e.touches[0].clientX};function T(){var e;let t=(0,i.useRef)();(0,i.useEffect)((()=>{let e=t.current;return e&&(e.addEventListener("touchstart",L),e.addEventListener("touchmove",E,{passive:!1})),()=>{e&&(e.removeEventListener("touchstart",L),e.removeEventListener("touchmove",E,{passive:!1}))}}));const s=(0,v.A)("(min-width:1024px)"),{data:l,isSuccess:n,isLoading:o}=(0,N.dX)();return console.log({data:l}),n&&(0,u.jsx)("div",{ref:t,children:(0,u.jsxs)(f.default,{swipeable:!1,draggable:!1,renderButtonGroupOutside:!0,showDots:!0,responsive:{superLargeDesktop:{breakpoint:{max:4e3,min:3e3},items:1},desktop:{breakpoint:{max:3e3,min:1024},items:1,partialVisibilityGutter:30},tablet:{breakpoint:{max:1024,min:464},items:1,partialVisibilityGutter:30},mobile:{breakpoint:{max:464,min:0},items:1,partialVisibilityGutter:30}},centerMode:s,partialVisbile:!s,ssr:!0,infinite:!0,autoPlay:!1,autoPlaySpeed:3e3,minimumTouchDrag:1e3,transitionDuration:1,keyBoardControl:!0,rtl:!0,arrows:!1,customDot:(0,u.jsx)(D,{}),customButtonGroup:(0,u.jsx)(S,{}),containerClass:"carousel-container pb-6",removeArrowOnDeviceType:["tablet","mobile"],dotListClass:"custom-dot-list-style",itemClass:"carousel-item-padding-40-px",children:[o&&(0,u.jsx)("div",{children:"loading.."}),null===l||void 0===l||null===(e=l.data)||void 0===e?void 0:e.map((e=>(0,u.jsx)(M,{img:"/Event.png",item:e})))]})})}const S=e=>{let{next:t,previous:s,goToSlide:i,...l}=e;const{carouselState:{currentSlide:n}}=l;return(0,u.jsxs)("div",{className:" ltr:flex-row-reverse carousel-button-group absolute flex justify-between -mt-8 child:mx-20 left-[50%] -translate-x-[50%]",children:[(0,u.jsx)("button",{className:0===n?"disable":"",onClick:()=>s(),children:(0,u.jsxs)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsx)("rect",{x:"1",y:"0.5",width:"23",height:"23",rx:"7.5",stroke:"#F25D2E"}),(0,u.jsx)("path",{d:"M14.3867 11.5266L11.56 8.69988C11.498 8.6374 11.4243 8.5878 11.3431 8.55396C11.2618 8.52011 11.1747 8.50269 11.0867 8.50269C10.9987 8.50269 10.9115 8.52011 10.8303 8.55396C10.7491 8.5878 10.6753 8.6374 10.6134 8.69988C10.4892 8.82479 10.4195 8.99376 10.4195 9.16988C10.4195 9.34601 10.4892 9.51498 10.6134 9.63988L12.9734 11.9999L10.6134 14.3599C10.4892 14.4848 10.4195 14.6538 10.4195 14.8299C10.4195 15.006 10.4892 15.175 10.6134 15.2999C10.6756 15.3617 10.7495 15.4106 10.8308 15.4437C10.912 15.4769 10.999 15.4937 11.0867 15.4932C11.1744 15.4937 11.2614 15.4769 11.3426 15.4437C11.4239 15.4106 11.4977 15.3617 11.56 15.2999L14.3867 12.4732C14.4492 12.4112 14.4988 12.3375 14.5326 12.2563C14.5665 12.175 14.5839 12.0879 14.5839 11.9999C14.5839 11.9119 14.5665 11.8247 14.5326 11.7435C14.4988 11.6623 14.4492 11.5885 14.3867 11.5266Z",fill:"#F25D2E"})]})}),(0,u.jsx)("button",{onClick:()=>t(),children:(0,u.jsxs)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsx)("rect",{x:"1",y:"0.5",width:"23",height:"23",rx:"7.5",stroke:"#F25D2E"}),(0,u.jsx)("path",{d:"M12.0267 11.9999L14.3867 9.63988C14.5108 9.51498 14.5805 9.34601 14.5805 9.16988C14.5805 8.99376 14.5108 8.82479 14.3867 8.69988C14.3247 8.6374 14.251 8.5878 14.1697 8.55396C14.0885 8.52011 14.0013 8.50269 13.9133 8.50269C13.8253 8.50269 13.7382 8.52011 13.657 8.55396C13.5757 8.5878 13.502 8.6374 13.44 8.69988L10.6133 11.5266C10.5509 11.5885 10.5013 11.6623 10.4674 11.7435C10.4336 11.8247 10.4161 11.9119 10.4161 11.9999C10.4161 12.0879 10.4336 12.175 10.4674 12.2563C10.5013 12.3375 10.5509 12.4112 10.6133 12.4732L13.44
115.3332C13.5023 15.395 13.5762 15.4439 13.6574 15.4771C13.7386 15.5102 13.8256 15.5271 13.9133 15.5266C14.0011 15.5271 14.088 15.5102 14.1693 15.4771C14.2505 15.4439 14.3244 15.395 14.3867 15.3332C14.5108 15.2083 14.5805 15.0393 14.5805 14.8632C14.5805 14.6871 14.5108 14.5181 14.3867 14.3932L12.0267 11.9999Z",fill:"#F25D2E"})]})})]})},D=e=>{let{onClick:t,...s}=e;const{active:i}=s;return(0,u.jsx)("div",{className:"w-2 mb-4 h-2 ".concat(i?"bg-primary":" bg-gray-400/75"," rounded-full mx-2 ")})};function M(e){let{item:t}=e;const s=(0,j.Zp)();return(0,u.jsx)("div",{onClick:()=>{if(t.show)if("TOURISTICAL_MONUMENTS"===t.show.type||"RECREATIONAL_ACTIVITY"===t.show.type)s("/landmark-activities/details/".concat(t.show.id),{id:t.show.id});else if(t.show.adminShowType&&"FREE"===t.show.adminShowType)s("/show/details/".concat(t.show.id),{id:t.show.id,title:t.show.name});else if("SHOW"!==t.show.type);else{var e;s(17===t.category||17===(null===t||void 0===t||null===(e=t.category)||void 0===e?void 0:e.id)?"/boat/details/".concat(t.id):"/show/details/".concat(t.id),{id:t.show.id,userId:t.show.user,title:t.show.name})}},className:"m-4 rounded-lg cursor-pointer block overflow-hidden",children:(0,u.jsx)("div",{className:"rounded-lg border-2 ",children:(0,u.jsx)("img",{className:"w-full h-[250px] object-fill",src:"".concat(w.A).concat(t.image),alt:"it shows the show or film"})})})}var _=s(93999);var F=s(41413),O=s(82053),I=s(3632),B=s(91758),R=s(14982),U=s(74635);function V(){return(0,u.jsxs)("div",{className:"absolute w-full top-0 -z-50",children:[(0,u.jsxs)("svg",{className:"absolute left-0 w-[120px] h-[125px] lg:w-[330px] lg:h-[550px]",width:"330",height:"550",viewBox:"0 0 330 550",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M55 394.072C120.762 394.072 174.072 340.762 174.072 275C174.072 209.238 120.762 155.928 55 155.928C-10.7617 155.928 -64.0722 209.238 -64.0722 275C-64.0722 340.762 -10.7617 394.072 55 394.072ZM55 550C206.878 550 330 426.878 330 275C330 123.122 206.878 0 55 0C-96.8783 0 -220 123.122 -220 275C-220 426.878 -96.8783 550 55 550Z",fill:"url(#paint0_linear_285_15952)"}),(0,u.jsx)("defs",{children:(0,u.jsxs)("linearGradient",{id:"paint0_linear_285_15952",x1:"-220",y1:"0",x2:"330",y2:"550",gradientUnits:"userSpaceOnUse",children:[(0,u.jsx)("stop",{"stop-color":"#FEEAD5"}),(0,u.jsx)("stop",{offset:"1","stop-color":"#FEEAD5","stop-opacity":"0"})]})})]}),(0,u.jsxs)("svg",{className:"absolute lg:left-[40%] hidden lg:block w-[80px] h-[95] lg:w-[169] lg:h-[169px]",width:"169",height:"169",viewBox:"0 0 169 169",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M84.5 121.088C104.707 121.088 121.088 104.707 121.088 84.5C121.088 64.2932 104.707 47.9124 84.5 47.9124C64.2932 47.9124 47.9124 64.2932 47.9124 84.5C47.9124 104.707 64.2932 121.088 84.5 121.088ZM84.5 169C131.168 169 169 131.168 169 84.5C169 37.8319 131.168 0 84.5 0C37.8319 0 0 37.8319 0 84.5C0 131.168 37.8319 169 84.5 169Z",fill:"url(#paint0_linear_285_15950)"}),(0,u.jsx)("defs",{children:(0,u.jsxs)("linearGradient",{id:"paint0_linear_285_15950",x1:"0",y1:"0",x2:"169",y2:"169",gradientUnits:"userSpaceOnUse",children:[(0,u.jsx)("stop",{"stop-color":"#FEEAD5"}),(0,u.jsx)("stop",{offset:"1","stop-color":"#FEEAD5","stop-opacity":"0"})]})})]}),(0,u.jsxs)("svg",{className:"absolute left-[82%] top-[5rem] lg:top-[10rem] ",width:"71",height:"71",viewBox:"0 0 71 71",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M35.5 50.8711C43.9892 50.8711 50.8711 43.9892 50.8711 35.5C50.8711 27.0108 43.9892 20.1289 35.5 20.1289C27.0108 20.1289 20.1289 27.0108 20.1289 35.5C20.1289 43.9892 27.0108 50.8711 35.5 50.8711ZM35.5 71C55.1061 71 71 55.1061 71 35.5C71 15.8939 55.1061 0 35.5 0C15.8939 0 0 15.8939 0 35.5C0 55.1061 15.8939 71 35.5 71Z",fill:"url(#paint0_linear_285_15951)"}),(0,u.jsx)("defs",{children:(0,u.jsxs)("linearGradient",{id:"paint0_linear_285_15951",x1:"0",y1:"0",x2:"71",y2:"71",gradientUnits:"userSpaceOnUse",children:[(0,u.jsx)("stop",{"stop-color":"#FEEAD5"}),(0,u.jsx)("stop",{offset:"1","stop-color":"#FEEAD5","stop-opacity":"0"})]})})]})]})}const z=e=>{let{next:t,previous:s,goToSlide:i,...l}=e;const{carouselState:{currentSlide:n}}=l;return(0,u.jsxs)("div",{className:"".concat("rtl"===C.A.dir()?"flex-row":"flex-row-reverse"," carousel-button-group to
1p-[50%] lg:absolute w-full flex justify-center lg:justify-between child:mx-1 mt-3 lg:mt-0 lg:child:mx-0 "),children:[(0,u.jsx)("button",{className:"!right-[-3.5rem] ".concat(0===n&&"disable"),onClick:()=>s(),children:(0,u.jsxs)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsx)("rect",{x:"1",y:"0.5",width:"23",height:"23",rx:"7.5",stroke:"#F25D2E"}),(0,u.jsx)("path",{d:"M14.3867 11.5266L11.56 8.69988C11.498 8.6374 11.4243 8.5878 11.3431 8.55396C11.2618 8.52011 11.1747 8.50269 11.0867 8.50269C10.9987 8.50269 10.9115 8.52011 10.8303 8.55396C10.7491 8.5878 10.6753 8.6374 10.6134 8.69988C10.4892 8.82479 10.4195 8.99376 10.4195 9.16988C10.4195 9.34601 10.4892 9.51498 10.6134 9.63988L12.9734 11.9999L10.6134 14.3599C10.4892 14.4848 10.4195 14.6538 10.4195 14.8299C10.4195 15.006 10.4892 15.175 10.6134 15.2999C10.6756 15.3617 10.7495 15.4106 10.8308 15.4437C10.912 15.4769 10.999 15.4937 11.0867 15.4932C11.1744 15.4937 11.2614 15.4769 11.3426 15.4437C11.4239 15.4106 11.4977 15.3617 11.56 15.2999L14.3867 12.4732C14.4492 12.4112 14.4988 12.3375 14.5326 12.2563C14.5665 12.175 14.5839 12.0879 14.5839 11.9999C14.5839 11.9119 14.5665 11.8247 14.5326 11.7435C14.4988 11.6623 14.4492 11.5885 14.3867 11.5266Z",fill:"#F25D2E"})]})}),(0,u.jsx)("button",{className:"!left-0",onClick:()=>t(),children:(0,u.jsxs)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsx)("rect",{x:"1",y:"0.5",width:"23",height:"23",rx:"7.5",stroke:"#F25D2E"}),(0,u.jsx)("path",{d:"M12.0267 11.9999L14.3867 9.63988C14.5108 9.51498 14.5805 9.34601 14.5805 9.16988C14.5805 8.99376 14.5108 8.82479 14.3867 8.69988C14.3247 8.6374 14.251 8.5878 14.1697 8.55396C14.0885 8.52011 14.0013 8.50269 13.9133 8.50269C13.8253 8.50269 13.7382 8.52011 13.657 8.55396C13.5757 8.5878 13.502 8.6374 13.44 8.69988L10.6133 11.5266C10.5509 11.5885 10.5013 11.6623 10.4674 11.7435C10.4336 11.8247 10.4161 11.9119 10.4161 11.9999C10.4161 12.0879 10.4336 12.175 10.4674 12.2563C10.5013 12.3375 10.5509 12.4112 10.6133 12.4732L13.44 15.3332C13.5023 15.395 13.5762 15.4439 13.6574 15.4771C13.7386 15.5102 13.8256 15.5271 13.9133 15.5266C14.0011 15.5271 14.088 15.5102 14.1693 15.4771C14.2505 15.4439 14.3244 15.395 14.3867 15.3332C14.5108 15.2083 14.5805 15.0393 14.5805 14.8632C14.5805 14.6871 14.5108 14.5181 14.3867 14.3932L12.0267 11.9999Z",fill:"#F25D2E"})]})})]})},G=e=>{let{img:t,item:s}=e;return(0,u.jsxs)(h.N_,{to:"/talent/details/".concat(s.id),className:"flex flex-col items-center",children:[(0,u.jsx)(F.A,{component:h.N_,to:"/talent/details/".concat(s.id),className:"cursor-pointer",sx:{width:{xs:"80px",lg:"120px"},height:{xs:"80px",lg:"120px"}},src:"".concat(w.A).concat(s.image)}),(0,u.jsx)(O.A,{sx:{fontSize:"16px"},children:s.name}),(0,u.jsx)(I.A,{size:"small",value:s.rate,readOnly:!0,sx:{"& .MuiRating-iconFilled":{color:"#F25D2E",fontSize:{xs:"10px",lg:"16px"}}},className:"text-primary"})]})},Z=()=>{var e,t;const{data:s,isLoading:l,isUninitialized:n,refetch:o,isError:a}=(0,B.yZ)({sortByRate:!0});return(0,i.useEffect)((()=>{const e=C.A.on("languageChanged",(()=>(n||o(),()=>{e()})))}),[n,o]),(0,u.jsxs)("div",{className:"relative",children:[(0,u.jsxs)("div",{className:"mx-auto max-w-[1024px] my-10 relative",children:[(0,u.jsx)("div",{children:(0,u.jsx)("h1",{className:"text-center text-xl sm:text-3xl pb-4",children:(0,u.jsx)(m.x6,{children:"talents"})})}),l?(0,u.jsx)(R.A,{classes:"grid place-items-center col-span-12 w-full"}):0===(null===s||void 0===s||null===(e=s.data)||void 0===e?void 0:e.length)||a?(0,u.jsx)("div",{className:"text-center",children:(0,U.t)("notFound")}):(0,u.jsx)(f.default,{swipeable:!0,draggable:!0,renderButtonGroupOutside:!0,showDots:!1,responsive:{superLargeDesktop:{breakpoint:{max:4e3,min:3e3},items:5},desktop:{breakpoint:{max:3e3,min:1024},items:5},tablet:{breakpoint:{max:1024,min:464},items:5},mobile:{breakpoint:{max:464,min:0},items:3}},customButtonGroup:(0,u.jsx)(z,{}),ssr:!0,infinite:!0,autoPlay:!1,autoPlaySpeed:3e3,keyBoardControl:!0,rtl:"rtl"===C.A.dir(),arrows:!1,customTransition:"all .5",transitionDuration:1,containerClass:"carousel-container ",removeArrowOnDeviceType:["tablet","mobile"],dotListClass:"custom-dot-list-style",itemClass:"carousel-item-padding-40-px",children:null===s||void 0===s||null===(t=s.data)||void 0===t?void 0:t.map((e=>(0,u.jsx)(G,{item:e,img:"/assets/avatar_1.png"},e.id)))})]}),(0,u.jsx)(V,{})]})};var P=s(89903),Y=s(34317),H=s(83274),X=s(25333),q=s(72362),W=s(13501),J=s(76253);const $=()=>{const e=(0,W.d4)((e=>e.Location));console.log({location:e});const t=(0,W.wA)();return(0,i.useEffect)((()=>{let s;return e.latitude&&e.longitude||(s=void("geolocation"in navigator?navigator.geolocation.getCurrentPosition((e=>{const{latitude:s,longitude:i}=e.coords;t((0,J.n)({latitude:s,longitude:i}))}),(e=>{console.error("Error getting user's location:",e)})):console.error("Geolocation is not supported in this browser."))),()=>{navigator.geolocation.clearWatch(s)}}),[e,t]),(0,u.jsx)("div",{})};
1var K=s(79693),Q=s(46256),ee=s.n(Q),te=(s(4064),s(37008),s(74834)),se=s(86835);const ie=w.A;b().locale("ar");const le=()=>{const[e,t]=(0,i.useState)(),[s,l]=(0,i.useState)(),[n,o]=(0,i.useState)([]),[a,r]=(0,i.useState)(""),[c,d]=(0,i.useState)(!1),[x,h]=(0,i.useState)(null),{token:p,user:g}=(0,W.d4)((e=>e.Auth)),v=(0,i.useRef)(null),f=()=>{var e;x&&x.emit("UpdateSeen",(e=>{})),null===(e=v.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"end"})};(0,i.useEffect)((()=>{fetch("".concat(ie,"/openActiveChatHead"),{method:"PUT",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(p),"Accept-Language":"en"},body:JSON.stringify({})}).then((e=>e.json())).then((e=>{})).catch((e=>{console.error("Error:",e)}));const e=ee()("".concat(w.N,"/chat"),{query:{id:null===g||void 0===g?void 0:g.id,token:p}});return e.on("connection",(()=>{console.log("Connected to chat socket")})),e.on("autherr",(function(e){console.log("is there an auth error",e)})),e.on("connect_error",(e=>{console.error("Connection error:",e)})),e.on("disconnect",(e=>{console.warn("Disconnected from chat socket:",e)})),e.on("error",(e=>{console.log("there is an error an eror was found",e)})),e.on("connect_error",(e=>{console.error("Connection error:",e)})),e.on("NewMessageCount",(e=>{console.log("are we per")})),e.on("Typing",(()=>{console.log("i am typing"),d(!0)})),e.on("StopTyping",(()=>{d(!1)})),e.on("NewMessage",(e=>{f();const t={text:e.message.message.text||void 0,image:e.message.message.image?"".concat(ie).concat(e.message.message.image):void 0,sender:e.message.sender,receiver:e.message.receiver,id:e.message.id,createdAt:e.message.createdAt};o((e=>[...e,t]))})),h(e),j(1),()=>{e.disconnect(),fetch("".concat(ie,"/closeActiveChatHead"),{method:"PUT",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(p),"Accept-Language":"en"},body:JSON.stringify({})}).then((e=>e.json())).then((e=>{})).catch((e=>{console.error("Error:",e)}))}}),[null===g||void 0===g?void 0:g.id]),(0,i.useEffect)((()=>{if(e){const t=new FileReader;t.onloadend=()=>{l(t.result)},t.readAsDataURL(e)}}),[e]);const j=async e=>{try{const t=await fetch("".concat(ie,"/chat?page=").concat(e),{headers:{Authorization:"Bearer ".concat(p),"Accept-Language":"en"}}),s=(await t.json()).data.map((e=>({text:e.message.text||void 0,image:e.message.image?"".concat(ie).concat(e.message.image):void 0,sender:e.sender,receiver:e.receiver,id:e.id,createdAt:e.createdAt})));o(s)}catch(t){console.error("Error fetching messages:",t)}};return console.log({message:n[0]}),(0,u.jsxs)("div",{className:"flex flex-col relative ",dir:"rtl",children:[(0,u.jsx)("div",{className:"sticky bg-white z-50 p-2 text-center shadow-sm top-0 w-full",children:(0,u.jsx)(m.x6,{children:"ConnectWithUs"})}),(0,u.jsxs)("div",{className:"h-[400px] flex flex-col overflow-y-auto p-4",children:[n.map((e=>e.sender.id===g.id?(0,u.jsxs)("div",{className:"mb-4 self-start",children:[(0,u.jsxs)("div",{className:" \n 'text-center bg-[#1e1e1e] p-2 px-4 max-w-max text-[#ff7741] min-w-max inline-block shadow-[0_0_14px_#e0dada] rounded-lg text-lg' \n ",children:[e.text&&(0,u.jsx)("p",{children:e.text}),e.image&&(0,u.jsx)("img",{src:e.image,alt:"attachment",className:"max-w-xs mt-2"})]}),(0,u.jsx)("p",{dir:"ltr",className:"text-xs text-secondary font-[500] mt-1",children:b()(e.createdAt).format("DD/MM/YYYY - HH:mm")})]},e.id):(0,u.jsxs)("div",{className:"flex flex-col items-end justify-start mb-4 self-end",children:[(0,u.jsxs)("div",{className:" rounded-lg \n 'text-center p-2 min-w-[20%] bg-gradient-to-b from-[#FF5438] to-[#FF8044] w-fit shadow-[0_0_14px_#e0dada] text-white text-lg'\n ",children:[e.text&&(0,u.jsx)("p",{children:e.text}),e.image&&(0,u.jsx)("img",{src:e.image,alt:"attachment",className:"max-w-xs mt-2"})]}),(0,u.jsx)("img",{className:"w-[60px] h-[60px] object-contain",src:"/logo.png",alt:"logo"}),(0,u.jsx)("p",{dir:"ltr",className:"text-xs text-secondary font-[500] mt-1",children:b()(e.createdAt).format("DD/MM/YYYY - HH:mm")})]},e.id))),(0,u.jsx)("div",{ref:v,style:{height:"50px",width:"1px",display:"list-item",listStyle:"none"}})]}),c&&(0,u.jsx)("div",{className:"text-sm italic p-2",children:"Typing..."}),(0,u.jsxs)("form",{onSubmit:async s=>{console.log("hii"),s.preventDefault();const i=new FormData;a.trim()&&i.append("text",a),i.append("sender",null===g||void 0===g?void 0:g.id),e&&i.append("file",e);try{var n,c,d;const e=await fetch("".concat(ie,"/chat"),{method:"POST",headers:{Authorization:"Bearer ".concat(p),"Accept-Language":"en"},body:i}),s=await e.json();console.log({resData:s});const a={text:(null===s||void 0===s||null===(n=s.message)||void 0===n?void 0:n.text)||void 0,image:null!==s&&void 0!==s&&null!==(c=s.message)&&void 0!==c&&c.image?"".concat(ie).concat(null===s||void 0===s||null===(d=s.message)||void 0===d?void 0:d.image):void 0,sender:s.sender,receiver:s.receiver,id:s.id,createdAt:s.createdAt};o((e=>[...e,a])),r(""),t(),l(),f()}catch(x){console.error("Error sending message:",x.message)}},className:"flex sticky bottom-0 w-full p-2 border-t border-gray-300 bg-white",children:[(0,u.jsxs)("div",{className:"border border-gray-300 rounded-md flex-1 flex",children:[s&&(0,u.jsxs)("div",{className:"p-2 relative",children:[(0,u.jsx)("img",{src:s,alt:"Image Preview",className:" h-16 w-16 object-cover rounded-md"}),(0,u.jsx)(X.A,{onClick:()=>{t(),l()},className:"!absolute top-0 right-0 !text-white",children:(0,u.jsx)(se.A,{})})]}),(0,u.jsx)("input",{type:"text",value:a,onChange:e=>
1{r(e.target.value),e.target.value.trim()?x.emit("Typing"):x.emit("StopTyping")},placeholder:"Type your message",className:"w-full p-1 outline-none px-2 "}),(0,u.jsxs)("div",{className:"bg-gray-300 flex items-center justify-center",children:[(0,u.jsx)("input",{type:"file",accept:"image/*",onChange:e=>t(e.target.files[0]),style:{display:"none"},id:"image-upload"}),(0,u.jsx)("label",{htmlFor:"image-upload",className:"",children:(0,u.jsx)(X.A,{component:"span",className:"child:!text-3xl rounded-md",children:(0,u.jsx)(te.A,{})})})]})]}),(0,u.jsx)(X.A,{size:"large",type:"submit",className:" rounded-md",children:(0,u.jsx)(K.A,{sx:{transform:(C.A.dir(),"scaleX(-1)")}})})]})]})};var ne=s(91519);s(94823),s(47789);var oe=s(61114);function ae(){const[e,t]=i.useState(null),s=Boolean(e),l=s?"simple-popover":void 0;return console.log({anchorEl:e}),(0,u.jsxs)("div",{children:[(0,u.jsx)("div",{onClick:e=>{t(e.currentTarget)},"aria-describedby":l,style:{position:"fixed"},className:"sm:p-10 max-sm:pb-24 z-50 bottom-0 right-6",children:(0,u.jsx)(H.A,{title:(0,U.t)("ConnectWithUs"),children:(0,u.jsx)(X.A,{size:"large",className:"!bg-primary !text-white rounded-full",sx:{position:"sticky"},children:(0,u.jsx)(P.A,{className:"text-white"})})})}),(0,u.jsx)(q.Ay,{anchorReference:"anchorPosition",open:s,anchorPosition:{top:600,left:1e3},onClose:()=>{t(null)},children:(0,u.jsx)(le,{})})]})}const re=()=>{const{t:e}=(0,m.Bd)(),[t,s]=(0,i.useState)(),{isAuthenticated:n,token:o}=(0,W.d4)((e=>e.Auth));return console.log({langagues:C.A.languages}),(0,u.jsxs)("div",{className:" bg-slate-50/50 ",children:[(0,u.jsxs)("div",{className:" max-w-[90%] lg:max-w-[90%] xl:max-w-[80%] mx-auto lg:min-h-screen ",children:[(0,u.jsx)(l.A,{}),(0,u.jsx)(p,{})]}),(0,u.jsxs)("div",{className:"child:py-4 ",children:[(0,u.jsx)(T,{}),(0,u.jsx)(Y.A,{link:"/discover/offers?type=",title:e("newlyAdded"),notFound:e("NotFoundNewlyAdded"),query:{limit:4}}),(0,u.jsx)(Y.A,{link:"/discover/offers?home=true",title:e("tickets-offers"),notFound:e("NotFoundTicketsAndShows"),query:{limit:4,home:!0}}),(0,u.jsx)(Z,{}),(0,u.jsx)(Y.A,{link:"/discover/attractions?type=TOURISTICAL_MONUMENTS",type:"TOURISTICAL_MONUMENTS",title:e("TouristicMonuments"),query:{limit:4,type:"TOURISTICAL_MONUMENTS"}}),(0,u.jsx)(Y.A,{link:"/discover/activities?type=RECREATIONAL_ACTIVITY",title:"FunActivities",type:"RECREATIONAL_ACTIVITY",query:{limit:4,type:"RECREATIONAL_ACTIVITY"},centerMode:!0,activity:!0})]}),n&&(0,u.jsx)(ae,{}),(0,u.jsx)($,{}),(0,u.jsx)(ne.A,{}),(0,u.jsx)(oe.A,{}),(0,u.jsx)(_.A,{})]})}}}]);
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.