"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9320],{64641:function(t,e,i){i.r(e);var l=i(35944),n=i(67294),o=i(70917),a=i(66455),r=i(52154);let d=(0,o.iv)("height:auto;overflow:hidden;margin:0 auto;z-index:0;");e.default=(0,n.memo)(function(t){let{id:e,name:i,sizes:o,externalCss:s,disable:c}=t;return(0,n.useEffect)(()=>{e&&i&&o&&!c&&(0,r.dE)(i,e,o)},[e,i,o,c]),(0,l.tZ)(a.Box,{children:c?null:(0,l.tZ)(a.Flex,{justifyContent:"center",id:e,css:[d,s]})})},()=>!0)},39565:function(t,e,i){var l=i(35944);i(67294);var n=i(69767),o=i(78707),a=i(66455),r=i(70917);e.Z=function(t){if(!t.count||0===t.count)return null;let e=[];for(let i=0;i(0,n.iv)("font-size:",t,"px!important;font-weight:",e,";margin:",null!=i?i:"0",";");e.Z=function(t){let{content:e,fontSize:i,fontWeight:n,margin:r,externalCss:d,type:s}=t;return(0,o.useCallback)(()=>"h3"==s?(0,l.tZ)("h3",{css:[a(i,n,r),d],children:e}):(0,l.tZ)("h2",{css:[a(i,n,r),d],children:e}),[e])()}},77727:function(t,e,i){i.d(e,{MS:function(){return l},NX:function(){return n},R:function(){return o},WC:function(){return a}});let l="Otele Giriş Tarihi Se\xe7in",n="Otelden \xc7ıkış Tarihi Se\xe7in",o="Villaya Giriş Tarihi Se\xe7in",a="Villadan \xc7ıkış Tarihi Se\xe7in"},2685:function(t,e,i){i.d(e,{t0:function(){return n},tE:function(){return l}});let l=8,n="https://cdn1.neredekal.com/res/blog/1671121070_kamp7-2jpg.jpeg"},66349:function(t,e,i){i.r(e),i.d(e,{default:function(){return K}});var l=i(35944),n=i(67294),o=i(70917),a=i(66455),r=i(34665),d=i(33463),s=i(86549),c=i(24881),p=i(31696),h=i(1092);let x=(0,o.iv)("border-radius:4px;&:hover{box-shadow:0 1px 10px 0 rgba(0,0,0,0.23);}"),u=(0,o.iv)(r._Q.tablet,"{left:12px;bottom:11px;}"),v=(0,o.iv)(r._Q.tablet,"{font-size:9px;padding-bottom:5px;}"),b=(0,o.iv)(r._Q.tablet,"{font-size:12px;}"),g=(0,o.iv)("font-size:24px;",r._Q.tablet,"{font-size:14px;}");var f=(0,n.memo)(function(t){let{url:e,category:i,title:n,image:o,externalCss:a,topItem:f,width:m,height:w,externalWrapperCss:Z}=t;return(0,l.tZ)(s.Z,{href:e,onClick:()=>{(0,h.AB)((0,h.iZ)("sizin i\xe7in hazırladıklarımız",n))},externalCss:Z,title:n,children:(0,l.BX)(c.Zb,{externalCss:[x,a],children:[(0,l.BX)(c.aY,{externalCss:u,left:"25px",bottom:"20px",children:[(0,l.tZ)(d.Z,{size:12,color:r.wL.white,bold:!0,pb:"8px",externalCss:v,children:i?i.toLocaleUpperCase("TR"):"Blog"}),(0,l.tZ)(d.Z,{size:18,color:r.wL.white,bold:!0,pr:"5px",externalCss:f?g:b,children:n})]}),(0,l.tZ)(c.Gl,{src:(0,p.Ee)(o,f?1:2),width:m,height:w,alt:n}),(0,l.tZ)(c.$$,{})]})})}),m=i(2685),w=i(69767);let Z=(0,o.iv)("width:100%;max-width:777px;",r._Q.tablet,"{max-width:391px;}"),k=(0,o.iv)("width:100%;height:433px;",r._Q.tablet,"{height:218px;}"),C=(0,o.iv)("width:100%;height:213px;",r._Q.tablet,"{width:190px;height:107px;}"),y=(0,o.iv)(r._Q.tablet,"{margin-top:12px;}"),_=(0,o.iv)("width:49%;");var B=function(t){var e,i,o,r,d,s,c,p,h,x,u,v,b,g,B,Q,L;let{items:z}=t;if(!z||0===z.length)return null;let S=(0,n.useMemo)(()=>(0,l.tZ)(a.Flex,{justifyContent:"space-between",mt:"25px",css:y,children:z.slice(1,3).map((t,e)=>{var i,n,o,a,r,d,s,c,p,h,x,u;return(0,l.tZ)(f,{width:"390px",height:"213px",externalCss:C,url:(null==t?void 0:null===(i=t.attributes)||void 0===i?void 0:i.canonicalUrl)||"".concat(w.Ey,"/blog/").concat(null==t?void 0:null===(n=t.attributes)||void 0===n?void 0:n.slug),category:null==t?void 0:null===(d=t.attributes)||void 0===d?void 0:null===(r=d.category)||void 0===r?void 0:null===(a=r.data)||void 0===a?void 0:null===(o=a.attributes)||void 0===o?void 0:o.name,title:null==t?void 0:null===(s=t.attributes)||void 0===s?void 0:s.title,image:(null==t?void 0:null===(u=t.attributes)||void 0===u?void 0:null===(x=u.media)||void 0===x?void 0:null===(h=x.data)||void 0===h?void 0:null===(p=h[0])||void 0===p?void 0:null===(c=p.attributes)||void 0===c?void 0:c.url)||m.t0,externalWrapperCss:_},e)})}),[z]);return(0,l.BX)(a.Box,{css:Z,children:[(0,l.tZ)(f,{topItem:!0,width:"866px",height:"433px",externalCss:k,url:(null===(i=z[0])||void 0===i?void 0:null===(e=i.attributes)||void 0===e?void 0:e.canonicalUrl)||"".concat(w.Ey,"/blog/").concat(null===(r=z[0])||void 0===r?void 0:null===(o=r.attributes)||void 0===o?void 0:o.slug),category:null===(h=z[0])||void 0===h?void 0:null===(p=h.attributes)||void 0===p?void 0:null===(c=p.category)||void 0===c?void 0:null===(s=c.data)||void 0===s?void 0:null===(d=s.attributes)||void 0===d?void 0:d.name,title:null===(u=z[0])||void 0===u?void 0:null===(x=u.attributes)||void 0===x?void 0:x.title,image:(null===(L=z[0])||void 0===L?void 0:null===(Q=L.attributes)||void 0===Q?void 0:null===(B=Q.media)||void 0===B?void 0:null===(g=B.data)||void 0===g?void 0:null===(b=g[0])||void 0===b?void 0:null===(v=b.attributes)||void 0===v?void 0:v.url)||m.t0}),S]})};let Q=(0,o.iv)("margin-left:25px;",r._Q.tablet,"{margin-left:12px;}"),L=(0,o.iv)("&:hover{color:",r.wL.blue3,";}"),z=(0,o.iv)("width:267px;height:149px;border-radius:4px;flex-shrink:0;",r._Q.tablet,"{width:133px;height:75px;}"),S=(0,o.iv)(r._Q.tablet,"{font-size:9px;padding-bottom:5px;}"),I=(0,o.iv)(r._Q.tablet,"{font-size:11px;}"),A=(0,o.iv)("padding-left:15px;",r._Q.tablet,"{padding-left:10px;}"),E=(0,o.iv)("&:hover{text-decoration:none;.blog-item-image-wrapper{box-shadow:0 2px 10px 0 rgba(0,0,0,0.23);}.blog-item-main-title{color:",r.wL.blue3," !important;}}");var F=function(t){let{items:e}=t;if(!e||0===e.length)return null;let i=t=>e=>{(0,h.AB)((0,h.iZ)("sizin i\xe7in hazırladıklarımız",t))},o=(0,n.useMemo)(()=>(0,l.BX)(a.Flex,{justifyContent:"space-between",flexDirection:"column",css:Q,children:[" ",e.map((t,e)=>{var n,o,h,x,u,v,b,g,f,Z,k,C,y,_,B,Q;return(0,l.tZ)(s.Z,{href:(null==t?void 0:null===(n=t.attributes)||void 0===n?void 0:n.canonicalUrl)||"".concat(w.Ey,"/blog/").concat(null==t?void 0:null===(o=t.attributes)||void 0===o?void 0:o.slug),externalCss:E,title:null==t?void 0:null===(h=t.attributes)||void 0===h?void 0:h.title,onClick:i(null==t?void 0:null===(x=t.attributes)||void 0===x?void 0:x.title),children:(0,l.BX)(a.Flex,{children:[(0,l.tZ)(c.Zb,{externalCss:z,className:"blog-item-image-wrapper",children:(0,l.tZ)(c.Gl,{src:(0,p.Ee)(null==t?void 0:null===(f=t.attributes)||void 0===f?void 0:null===(g=f.media)||void 0===g?void 0:null===(b=g.data)||void 0===b?void 0:null===(v=b[0])||void 0===v?void 0:null===(u=v.attributes)||void 0===u?void 0:u.url,3)||m.t0,externalCss:z,width:"267px",height:"149px",alt:null==t?void 0:null===(Z=t.attributes)||void 0===Z?void 0:Z.title})}),(0,l.BX)(a.Box,{css:A,children:[(0,l.tZ)(d.Z,{size:12,color:r.wL.brownGrey,bold:!0,pb:"8px",externalCss:S,children:null==t?void 0:null===(B=t.attributes)||void 0===B?void 0:null===(_=B.category)||void 0===_?void 0:null===(y=_.data)||void 0===y?void 0:null===(C=y.attributes)||void 0===C?void 0:null===(k=C.name)||void 0===k?void 0:k.toLocaleUpperCase("TR")}),(0,l.tZ)(d.Z,{size:18,externalCss:[L,I],bold:!0,className:"blog-item-main-title",children:null==t?void 0:null===(Q=t.attributes)||void 0===Q?void 0:Q.title})]})]})},e)})]}),[e]);return(0,l.tZ)(l.HY,{children:o})},X=i(22149),P=i(4284),H=i(68032),R=i(57404);let j=(0,o.iv)("padding:25px 15px;",r._Q.tablet,"{padding:20px 38px;}"),T=(0,o.iv)("margin:15px 0 30px 0;padding:0px;background-color:",r.wL.paleGrey,";",r._Q.tablet,"{margin:10px 0 20px 0;padding:0px;}"),D=(0,o.iv)(r._Q.tablet,"{font-size:18px;}"),O=(0,o.iv)(r._Q.tablet,"{font-size:13px;}"),W=(0,o.iv)(r._Q.tablet,"{padding-top:15px;}");var K=(0,n.memo)(function(t){let{blogPosts:e}=t;if(!e||0===e.length)return null;let i=e.slice(3,7),[o,s]=(0,n.useState)(!1),c=(0,n.useRef)(null),p=(0,R.jU)()&&(0,H.R)(c);return(0,n.useEffect)(()=>{p&&!o&&((0,h.AB)((0,h.RK)("sizin i\xe7in hazırladıklarımız")),s(!0))},[p,o]),(0,l.tZ)(X.Z,{ref:c,externalCss:[r.o4,T],children:(0,l.BX)(a.Box,{css:[r.z1,j],children:[(0,l.BX)(a.Flex,{justifyContent:"space-between",children:[(0,l.tZ)(d.Z,{weight:600,size:26,css:D,children:"Sizin İ\xe7in Hazırladıklarımız"}),(0,l.tZ)(P.Z,{href:"".concat(w.Ey,"/blog/"),externalCss:O})]}),(0,l.BX)(a.Flex,{pt:"20px",css:W,children:[(0,l.tZ)(B,{items:e}),(0,l.tZ)(F,{items:i})]})]})})},()=>!0)},42646:function(t,e,i){i.r(e),i.d(e,{default:function(){return k}});var l=i(35944),n=i(67294),o=i(70917),a=i(66455),r=i(34665),d=i(56757),s=i(30337),c=i(86549);let p=(0,o.iv)("width:100%;padding:0;margin:0;li{list-style:none;margin-bottom:12px;a{font-size:14px;color:black;text-decoration:none;",r._Q.tablet,"{font-size:11px;}&:hover{color:",r.wL.blue3,";font-weight:600;}}}");var h=function(t){let{locations:e,handleOnClickPushEvent:i}=t,o=(0,s.i)().width<=r.Op?e.length/4:e.length/6,h=(0,d.By)(e,Math.ceil(o)),x=(0,n.useMemo)(()=>(0,l.tZ)(l.HY,{children:h.map((t,e)=>(0,l.tZ)("ul",{css:p,children:t.map((t,e)=>(0,l.tZ)("li",{children:(0,l.tZ)(c.Z,{href:"/".concat((null==t?void 0:t.url)||(null==t?void 0:t.slug)),title:(null==t?void 0:t.title)||(null==t?void 0:t.name),onClick:()=>i((null==t?void 0:t.title)||(null==t?void 0:t.name)),children:(null==t?void 0:t.title)||(null==t?void 0:t.name)})},e))},e))}),[h]);return(0,l.tZ)(a.Flex,{children:x})},x=i(22149),u=i(62209),v=i(1092),b=i(68032),g=i(57404);let f=(0,o.iv)("padding-top:25px;padding-bottom:25px;",r._Q.tablet,"{padding:0;}"),m=(0,o.iv)("font-size:26px;font-weight:600;margin:0;",r._Q.tablet,"{font-size:18px;}"),w=(0,o.iv)("border-bottom:1px solid ",r.wL.veryLightPink2,";border-top:1px solid ",r.wL.veryLightPink2,";",r._Q.tablet,"{border:0;}"),Z=(0,o.iv)("padding-top:25px;margin-bottom:-12px;",r._Q.tablet,"{margin-bottom:0;}");var k=(0,n.memo)(function(t){let{title:e,featuredLocations:i,isFacilityListing:o}=t,[d,s]=(0,n.useState)(!1),c=(0,n.useRef)(null),p=(0,g.jU)()&&(0,b.R)(c);return(0,n.useEffect)(()=>{p&&!d&&((0,v.AB)((0,v.RK)((null==e?void 0:e.toLowerCase())||"")),s(!0))},[p,d]),(0,l.tZ)(a.Box,{css:[r.o4,w],ref:c,children:(0,l.BX)(x.Z,{mt:"15px",externalCss:[r.z1,f],children:[(0,l.tZ)("h3",{css:m,children:e}),(0,l.tZ)(a.Box,{children:(0,l.tZ)(a.Box,{pt:"35px",css:Z,children:(0,l.tZ)(h,{locations:i,handleOnClickPushEvent:t=>{o?(0,v.AB)((0,u.WK)(e||"",t)):(0,v.AB)((0,v.iZ)(e||"",t))}})})})]})})})},59320:function(t,e,i){i.d(e,{IB:function(){return l.default},z8:function(){return ee},gB:function(){return tr},b3:function(){return tZ}}),i(66349);var l=i(42646),n=i(67294),o=i(70917),a=i(22149),r=i(34665),d=i(66455);i(63297),r._Q.tablet,r.wL.white,r.wL.veryLightPink2,r._Q.tablet;var s=i(10615),c=i(35944),p=i(30337),h=i(18108);let x=(0,o.iv)("position:absolute;z-index:2;height:100%;padding:30px;cursor:pointer;"),u=(0,o.iv)("position:absolute;z-index:2;top:calc(50% - 48px);width:48px;height:48px;border-radius:100%;cursor:pointer;background-color:",r.wL.white,";text-align:center;",r._Q.tablet,"{width:30px;height:30px;top:calc(50% - 30px);}"),v=(0,o.iv)("top:0;right:0;"),b=t=>(0,o.iv)("right:",null!=t?t:12,"px;"),g=t=>(0,o.iv)("left:",null!=t?t:12,"px;transform:rotate(180deg);");var f=n.memo(function(t){let{onClick:e,title:i,position:l,distance:n}=t,o="left"===l,a=o?g(n):b(n),s=(0,p.i)();return(0,c.tZ)(d.Box,{onClick:e,css:[x,!o&&v],children:(0,c.tZ)(d.Flex,{justifyContent:"center",alignItems:"center",type:"button",title:i,onClick:e,css:[u,a],children:(0,c.tZ)(h.Z,{fill:r.wL.black,size:s.width!0),m=i(86549),w=i(78707),Z=i(31696),k=i(1092);r._Q.tablet,r.wL.veryLightPink2;var C=i(57404),y=i(68032),_=i(62209);r.wL.white,r._Q.tablet,r.wL.veryLightPink2,r._Q.tablet,r.wL.blue3,i(73219);let B=t=>(0,o.iv)("width:100%;@media (max-width:1441px){height:",t||"401px",";}",r._Q.tablet,"{height:298px;}@media (max-width:480px){height:220px;}"),Q=t=>(0,o.iv)("content-visibility:auto;display:block;height:",t||"100%",";@media (min-width:1441px){height:",t||"535px",";}");var L=n.memo(function(t){let{item:e,index:i,onClick:l,height:o,isNonClickable:a}=t,r=0===i,s=(0,n.useCallback)(()=>{let t=(null==e?void 0:e.slug)||"",n=t.startsWith("http")?new URL(t).pathname:t;(0,k.AB)((0,k.iZ)("promo cta",n)),l(i)},[i,null==e?void 0:e.slug,l]);return(0,n.useCallback)(()=>e.slug?(0,c.tZ)(d.Box,{css:B(o),children:(0,c.tZ)(m.Z,{onClick:s,href:a?"":e.slug||"",externalCss:Q(o),disableDecoration:!0,title:e.title,children:(0,c.tZ)(w.h,{src:(0,Z.KH)(e.imageUrl,1920,535),layout:"fill",objectFit:"cover",placeholder:"empty",loader:Z.HB,priority:r,alt:"Banner ".concat(i+1," : ").concat(e.title)})})}):(0,c.tZ)(d.Box,{css:B(o),title:e.title,children:(0,c.tZ)(w.h,{src:(0,Z.KH)(e.imageUrl,1920,535),layout:"fill",objectFit:"cover",placeholder:"empty",loader:Z.HB,priority:r,alt:"Banner ".concat(i+1," : ").concat(e.title)})}),[])()},()=>!0);let z=(0,o.iv)("position:relative;padding:0;"),S=(0,o.iv)("background-color:",r.wL.veryLightPink2,";width:16px;height:16px;border-radius:100%;display:inline-block;margin:0 2px;",r._Q.tablet,"{width:9px;height:9px;}"),I=(0,o.iv)("background-color:",r.wL.blue3,";");var A=(0,n.memo)(function(t){let{sliderItem:e,height:i,isNonClickable:l}=t,[o,a]=(0,n.useState)(function(t){var e;let i={};return null==t||null===(e=t.banners)||void 0===e||e.forEach((t,e)=>{i[e]=!1}),i}(e)),p=(0,n.useRef)(null),h=(0,C.jU)()&&(0,y.R)(p);(0,n.useEffect)(()=>{if(h&&!o["0"]){(0,_.AB)((0,_.Bk)(e.banners[0],1,"view"));let t={...o};t["0"]=!0,a(t)}},[h,e,o]);let x=(0,n.useCallback)(t=>{if(h&&!o[t]){(0,_.AB)((0,_.Bk)(null==e?void 0:e.banners[t],t,"view"));let i={...o};i[t]=!0,a(i)}},[h,e,o]),u=(0,n.useCallback)(t=>{(0,_.AB)((0,_.Bk)(null==e?void 0:e.banners[t],t,"click"))},[h,e]),v=(0,n.useMemo)(()=>{var t;return null==e?void 0:null===(t=e.banners)||void 0===t?void 0:t.map((t,e)=>(0,c.tZ)(L,{isNonClickable:l,onClick:l?()=>{}:u,item:t,index:e,height:i},e))},[e]),b=(0,n.useCallback)((t,e,i)=>e?(0,c.tZ)("li",{css:[S,I]}):(0,c.tZ)("li",{css:[S,r.Rx],onClick:t,onKeyDown:t,value:i,role:"button",tabIndex:0},i),[]);return(0,c.tZ)(d.Box,{ref:p,children:(0,c.tZ)(s.lr,{swipeable:!0,emulateTouch:!0,showStatus:!1,interval:4e3,autoPlay:!1,onChange:x,infiniteLoop:!0,renderArrowPrev:(t,e,i)=>(0,c.tZ)(f,{onClick:t,title:i,position:"left",distance:15}),renderArrowNext:(t,e,i)=>(0,c.tZ)(f,{onClick:t,title:i,position:"right",distance:15}),renderIndicator:b,showIndicators:!1,showThumbs:!1,css:z,children:v})})},()=>!0);let E=t=>(0,o.iv)("width:100%;height:",t||"535px",";",r._Q.tablet,"{height:298px;}@media (max-width:480px){height:220px;}");var F=(0,n.memo)(function(t){let{item:e,height:i,isNonClickable:l}=t;return(0,n.useCallback)(()=>(null==e?void 0:e.slug)?(0,c.tZ)(m.Z,{href:l?"#":(null==e?void 0:e.slug)||"",disableDecoration:!0,title:null==e?void 0:e.title,children:(0,c.tZ)(d.Box,{css:E(i),children:(0,c.tZ)(w.h,{src:(0,Z.KH)(null==e?void 0:e.imageUrl,1920,535),layout:"fill",priority:!0,objectFit:"cover",loader:Z.HB,alt:"Banner : ".concat(null==e?void 0:e.title)})})}):(0,c.tZ)(d.Box,{css:E(i),title:null==e?void 0:e.title,children:(0,c.tZ)(w.h,{src:(0,Z.KH)(null==e?void 0:e.imageUrl,1920,535),layout:"fill",priority:!0,objectFit:"cover",loader:Z.HB,alt:"Banner : ".concat(null==e?void 0:e.title)})}),[])()},()=>!0),X=i(77727),P=i(27484),H=i.n(P),R=i(96044),j=i(98094),T=i(31897),D=i(49855),O=i(27616),W=i(38068),K=i(93065);let U=(0,o.iv)("left:50%;width:365px;line-height:16px;font-size:12px;margin:3px 0 0 -190px;",r._Q.tablet,"{width:244px;margin:3px 0 0 -122px;}");var N=n.memo(function(t){let{show:e,preventCookie:i}=t,[l,o]=(0,n.useState)(e||!0);return(0,n.useEffect)(()=>{o(i?e:e||(0,T.hk)(K.SD))},[e,i]),l?(0,c.tZ)(W.Z,{externalCss:U,children:"Aramaya başlamak i\xe7in l\xfctfen bir seyahat noktası girin."}):null});i(73035);let M=t=>(0,o.iv)(t?"background-color: ".concat(r.wL.white,";\n border:none;\n padding: 8px 15px 4px 15px;\n z-index: 100;\n top: 0;\n box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.1);\n position: fixed;"):""),G=(0,o.iv)("position:relative;width:100%;"),Y=(0,o.iv)("margin-left:12px;font-size:18px;font-weight:600;border-radius:4px;flex-shrink:0;height:auto !important;min-height:56px;button{height:100% !important;min-height:56px;}",r._Q.tablet,"{font-size:16px;min-height:48px;button{min-height:48px;}}@media (max-width:480px){margin-left:8px;font-size:14px;min-height:40px;button{min-height:40px;width:60px;}}"),V=(0,o.iv)("border:solid 0.7px ",r.wL.veryLightPink2,';&[type="text"]{padding:0 40px 0 50px;',r._Q.tablet,"{padding:0 40px 0 40px;}@media (max-width:480px){padding:0 30px 0 40px;}}"),$=t=>(0,o.iv)("display:",t?"block":"none",";height:217px;");r._Q.tablet;var q=n.memo(function(t){let{item:e,initialSearchData:i,showDate:l,setShowDate:o,dateIndex:a,setDateIndex:r,isSticky:s,dateLabel:p,setDateLabel:h,activeTab:x,defaultParams:u,setDarkenedScreen:v,animated:b=!1}=t,[g,f]=(0,n.useState)(e),[m,w]=(0,n.useState)("default"),[Z,y]=(0,n.useState)((0,C.jU)()&&(0,T.hk)(K.SD)),[B,Q]=(0,n.useState)(!1),[L,z]=(0,n.useState)(void 0),[S,I]=(0,n.useState)(null==i?void 0:i.adults),[A,E]=(0,n.useState)(null==i?void 0:i.children);(0,n.useCallback)((t,e,i)=>{z(t),I(e),E(i)},[]);let F=(0,n.useCallback)((t,e,i)=>{f(e),i&&w(i)},[]),X=(0,n.useCallback)(()=>{(0,T.d8)(K.SD,"false",365),y(!1)},[Z]),P=(0,n.useCallback)(()=>{if(!g){y(!0),(0,k.AB)((0,k.eg)(L,S,A,u,g));return}let t=L&&void 0!==L&&L[0]&&L[1]?L:[H()(null==u?void 0:u.checkIn),H()(null==u?void 0:u.checkOut)];(0,O.pQ)(t,S,A,g,void 0,x,u),(0,O.vb)(t,S,A),(0,k.AB)((0,k.rh)(t,S,A,u,g,m)),(null==g?void 0:g.Name)&&(0,k.AB)((0,_.gN)(null==g?void 0:g.Name))},[L,S,A,g,x]),W=(0,n.useCallback)(()=>{f(void 0)},[]);return(0,c.BX)(c.HY,{children:[(0,c.BX)(d.Flex,{width:"100%",alignItems:"stretch",css:M(s),children:[(0,c.BX)(d.Box,{css:G,flex:"1",children:[(0,c.tZ)(j.Z,{onClickItem:F,externalInputCss:V,onClickSearchInput:X,onClose:W,activeTab:x,showReverse:!1,isBlogSearch:!1,hideNearPlaces:x===D.S.Villa,setDarkenedScreen:v,animated:b}),(0,c.tZ)(N,{show:Z})]}),(0,c.tZ)(R.Z,{css:Y,onClick:P,label:"ARA",width:"140px"})]}),(0,c.tZ)(d.Box,{css:$(s)})]})}),J=i(73290);let tt=(0,o.iv)("position:relative;padding:0 !important;"),te=t=>(0,o.iv)("max-width:500px;width:100%;position:absolute;left:50%;transform:translateX(-50%);z-index:",t?"900":"100",";",r._Q.tablet,"{max-width:400px;padding:12px;}@media (max-width:480px){padding:8px;}"),ti=(0,o.iv)("top:35px;",r._Q.tablet,"{top:15px;}@media (max-width:480px){top:10px;}"),tl=(0,o.iv)("top:50%;transform:translate(-50%,-50%);"),tn=(0,o.iv)("bottom:35px;",r._Q.tablet,"{bottom:15px;}@media (max-width:480px){bottom:10px;}"),to=t=>(0,o.iv)("width:120px;height:46px;display:inline-block;border-radius:4px;opacity:",t?.8:1,";button{background-color:",(t?r.wL.brownGrey5:r.wL.white)+" "," !important;border-bottom-left-radius:0;border-bottom-right-radius:0;font-size:16px;box-shadow:none;}div{color:",(t?"black":r.wL.blue3)+" ","!important;}",r._Q.tablet,"{button{font-size:12px;}}@media (max-width:480px){width:90px;height:36px;button{font-size:11px;height:36px;}}"),ta=(0,o.iv)("padding:12px 15px 12px 15px;border-radius:4px;background-color:",r.wL.white,";border-top-left-radius:0;@media (max-width:480px){padding:8px 10px;}");var tr=(0,n.memo)(function(t){var e;let{searchSliderItems:i,initialSearchData:l,defaultParams:o,height:s,isNonClickable:p}=t,[h,x]=(0,n.useState)(!1),[u,v]=(0,n.useState)(0),[b,g]=(0,n.useState)(X.MS),[f,m]=(0,n.useState)(D.S.Facility),[w,Z]=(0,n.useState)(!1),k=null==i?void 0:null===(e=i.banners[0])||void 0===e?void 0:e.searchBarPosition,C=(0,n.useCallback)(()=>{var t;return(null==i?void 0:null===(t=i.banners)||void 0===t?void 0:t.length)?i.banners.length>1?(0,c.tZ)(A,{isNonClickable:p,sliderItem:i,height:s}):(0,c.tZ)(F,{isNonClickable:p,item:i.banners[0],height:s}):null},[i]),y=(0,n.useCallback)(t=>m(t),[]),_=t=>{t.stopPropagation()},B=(0,n.useCallback)(()=>(0,c.tZ)(c.HY,{children:(0,c.tZ)(R.Z,{css:to(f!==D.S.Facility),onClick:t=>{_(t),y(D.S.Facility)},mb:"9px",label:"Oteller"})}),[f]);return(0,c.BX)(a.Z,{css:[tt,r.o4],children:[w&&(0,c.tZ)(J.Z,{setDarkenedScreen:Z,closeOnScroll:!0}),C(),(0,c.BX)(d.Box,{css:[te(w),1===k?ti:2===k?tl:tn],onClick:()=>{Z(!1)},children:[B(),(0,c.tZ)(d.Box,{css:[te,ta],onClick:_,children:(0,c.tZ)(q,{initialSearchData:l,showDate:h,setShowDate:x,dateIndex:u,setDateIndex:v,dateLabel:b,setDateLabel:g,activeTab:f,defaultParams:o,setDarkenedScreen:Z,animated:!0})})]})]})}),td=i(33463),ts=i(69767);let tc={"her-sey-dahil-oteller":"https://i.test.neredekal.com/i/75/190x108/677f6e2dc73134c0230aa97c","denize-sifir-oteller":"https://i.test.neredekal.com/i/75/190x108/66ec1f775318602f91a6bf15","erken-rezervasyon-otelleri":"https://i.test.neredekal.com/i/75/190x108/678621e1da41218bc522f11b","cocuk-dostu-oteller":"https://i.test.neredekal.com/i/75/190x108/66ea77cd6b3fde6bace39a59","balayi-otelleri":"https://i.test.neredekal.com/i/75/190x108/65e087a565526720873ce249","istanbul-yakin-otelleri":"https://i.test.neredekal.com/i/75/190x108/678618686269a1de257b07fc",bungalov:"https://i.test.neredekal.com/i/75/190x108/677f6e2dc73134c0230aa97c","termal-oteller":"https://i.test.neredekal.com/i/75/190x108/66ec1f775318602f91a6bf15","evcil-hayvan-kabul-eden-oteller":"https://i.test.neredekal.com/i/75/190x108/678621e1da41218bc522f11b","kayak-otelleri":"https://i.test.neredekal.com/i/75/190x108/66ea77cd6b3fde6bace39a59"},tp=(0,o.iv)("position:relative;width:190px;height:108px;border-radius:4px;overflow:hidden;flex-shrink:0;",r._Q.tablet,"{width:145px;height:79px;}"),th=(0,o.iv)("display:inline-flex;flex-direction:column;flex-shrink:0;position:relative;&:not(:last-child){margin-right:30px;}",r._Q.tablet,"{&:not(:last-child){margin-right:12px;}}&:hover{text-decoration:none;color:",r.wL.blue3,";.themes-item-image-wrapper{box-shadow:0 2px 10px 0 rgba(0,0,0,0.23);}}"),tx=(0,o.iv)("font-size:15px;font-weight:600;letter-spacing:0.5px;padding-top:8px;",r._Q.tablet,"{font-size:13px;}");var tu=function(t){let{themeItem:e}=t,{Id:i,Link:l,ImageId:n,Title:o}=e,a=tc[l]||"".concat(ts.Ik,"75/190x108/").concat(n);return(0,c.BX)(m.Z,{href:"/tema/".concat(l,"/"),externalCss:th,title:o,onClick:()=>{(0,k.AB)((0,k.iZ)("temalara g\xf6z atın",o))},children:[(0,c.tZ)(d.Box,{css:tp,className:"themes-item-image-wrapper",children:(0,c.tZ)(w.h,{src:a,layout:"fill",objectFit:"cover",alt:o})}),(0,c.tZ)(td.Z,{externalCss:tx,children:o})]},i)},tv=i(27625);let tb=(0,o.iv)("width:100%;",r._Q.tablet,"{padding-left:20px;}");var tg=function(t){let{themes:e}=t;return(0,c.tZ)(d.Box,{css:tb,children:(0,c.tZ)(tv.Z,{children:e.map((t,e)=>t.IsActive&&t.IsPublished?(0,c.tZ)(tu,{themeItem:t},e):null)})})};let tf=(0,o.iv)("background:none;",r._Q.tablet,"{padding:20px 0px 18px 38px;margin-left:-20px;}"),tm=(0,o.iv)("padding-top:25px;padding-bottom:25px;",r._Q.tablet,"{padding:0;}"),tw=(0,o.iv)(r._Q.tablet,"{font-size:18px;padding-left:20px;}");var tZ=(0,n.memo)(function(t){let{themes:e}=t,[i,l]=(0,n.useState)(!1),o=(0,n.useRef)(null),s=(0,C.jU)()&&(0,y.R)(o);return(0,n.useEffect)(()=>{s&&!i&&((0,k.AB)((0,k.RK)("temalara g\xf6z atın")),l(!0))},[s,i]),(0,c.tZ)(d.Box,{css:[r.o4,tf],ref:o,children:(0,c.BX)(a.Z,{mt:"10px",css:[r.z1,tm],children:[(0,c.tZ)(td.Z,{weight:600,size:26,css:tw,children:"Temalara G\xf6z Atın"}),(0,c.tZ)(d.Box,{pt:"20px",width:"100%",children:(0,c.tZ)(tg,{themes:e})})]})})}),tk=i(24881);i(69497),r._Q.tablet,r._Q.tablet,i(5793),i(39565),r._Q.tablet,r._Q.tablet,r.wL.brownGrey3,r._Q.tablet,r.wL.veryLightPink2,r._Q.tablet,r._Q.tablet,r._Q.tablet,r._Q.tablet,r._Q.tablet,r._Q.tablet,r.wL.veryLightPink2,r.wL.blue3,r._Q.tablet,r._Q.tablet,i(35109);var tC=i(64949);i(44843),r._Q.tablet,r._Q.tablet,r._Q.tablet,r._Q.tablet;var ty=i(14014),t_=i(26146);let tB=t=>(0,o.iv)("font-size:16px;border-radius:22px;padding:12px 25px;",t===t_.H.Home&&"width: 178px;"," &:not(:last-child){margin-right:15px;}",r._Q.tablet,"{font-size:12px;padding:8px 15px;border-radius:27.5px;",t===t_.H.Home&&"width: 145px;"," &:not(:last-child){margin-right:20px;}}&:hover{text-shadow:none;}"),tQ=t=>(0,o.iv)("padding:0px 5px;white-space:nowrap;overflow-x:",t===t_.H.Home?"hidden":"auto",";"),tL=(0,o.iv)("display:flex;flex-driection:row;justify-content:center;align-items:center;padding-bottom:15px;",r._Q.tablet,"{padding:0 10px 0 20px;}"),tz=t=>(0,o.iv)("display:flex;justify-content:center;align-items:center;","left"===t&&"transform: rotate(180deg);"," cursor:pointer;");var tS=(0,n.memo)(function(t){let{popularLocations:e,activeLocationSlug:i,onLocationChange:l,catalogType:o}=t,a=(0,n.useRef)(null),s=(0,p.i)().width<=r.Op,x=t=>{if(!a.current)return;let e=a.current.scrollLeft;a.current.scrollTo({left:e+("left"===t?-1:1)*(s?165:193),behavior:"smooth"})};return(0,c.BX)(d.Box,{css:tL,children:[o===t_.H.Home&&(0,c.tZ)(d.Box,{css:tz("left"),onClick:()=>x("left"),children:(0,c.tZ)(h.Z,{fill:r.wL.black,size:28})}),(0,c.BX)(d.Box,{css:tQ(o),ref:a,children:[(0,c.tZ)(ty.Z,{active:"FACILITIES_OF_WEEK"===i,onClick:()=>l("FACILITIES_OF_WEEK",""),externalCss:tB(o),children:"Haftanın Otelleri"}),e.map((t,e)=>{let{name:n,locationSlug:a,slug:r}=t;return(0,c.tZ)(ty.Z,{active:i===a,onClick:()=>l(a,r),externalCss:tB(o),children:n},e)})]}),o===t_.H.Home&&(0,c.tZ)(d.Box,{css:tz,onClick:()=>x("right"),children:(0,c.tZ)(h.Z,{fill:r.wL.black,size:28})})]})}),tI=i(79182);let tA=(0,o.iv)("background-color:",r.wL.white,";display:inline-flex;flex-direction:column;flex-shrink:0;position:relative;width:305px;height:277px;border-radius:4px;overflow:hidden;border:solid 0.5px ",r.wL.veryLightPink3,";&:not(:last-child){margin-right:25px;}",r._Q.tablet,"{width:197px;height:191px;&:not(:last-child){margin-right:12px;}}&:hover{text-decoration:none;color:",r.wL.blue3,";box-shadow:0 2px 10px 0 rgba(0,0,0,0.23);}"),tE=(0,o.iv)(r._Q.tablet,"{height:111px;}"),tF=(0,o.iv)("position:relative;min-height:100%;"),tX=(0,o.iv)("padding-top:4px;"),tP=(0,o.iv)("margin-right:2px !important;"),tH=(0,o.iv)("width:100%;position:relative;",r._Q.tablet,"{padding:8px 18px 12px 12px;}"),tR=(0,o.iv)("height:107px;",r._Q.tablet,"{height:80px;}"),tj=(0,o.iv)("white-space:nowrap;overflow:hidden;text-overflow:ellipsis;",r._Q.tablet,"{font-size:13px;}"),tT=(0,o.iv)(r._Q.tablet,"{font-size:12px;}");var tD=(0,n.memo)(function(t){let{facilityItem:e,position:i,providerMap:l}=t,{facilityName:o,imageId:a,averageRating:s,reviewCount:p,rating:h,slug:x}=(0,n.useMemo)(()=>{var t,i,l,n,o,a,r,d,s,c;return{facilityName:e.name,imageId:null===(i=e.images)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.image,averageRating:e.avgRating,reviewCount:null===(l=e.interactions)||void 0===l?void 0:l.count,rating:parseFloat((null===(n=e.interactions)||void 0===n?void 0:n.rating)||"0"),price:(null==e?void 0:null===(a=e.deals)||void 0===a?void 0:null===(o=a.heroPrice)||void 0===o?void 0:o.discountPrice)>0?null==e?void 0:null===(d=e.deals)||void 0===d?void 0:null===(r=d.heroPrice)||void 0===r?void 0:r.discountPrice:null==e?void 0:null===(c=e.deals)||void 0===c?void 0:null===(s=c.heroPrice)||void 0===s?void 0:s.rawPrice,slug:e.slug}},[e]),u=(0,n.useCallback)(()=>{(0,k.AB)((0,_.$3)(e,"product-image",i,l)),(0,k.AB)((0,k.FQ)(e,i,l))},[e,i]),v=(0,n.useCallback)(()=>{(0,k.AB)((0,_.$3)(e,"product-headline",i,l)),(0,k.AB)((0,k.FQ)(e,i,l))},[e,i]);return(0,c.tZ)(m.Z,{href:"/".concat(x,"-fiyatlari"),externalCss:tA,title:String(o),children:(0,c.BX)(d.Flex,{flexDirection:"column",children:[(0,c.tZ)(tk.Zb,{onClick:u,width:"100%",height:"170px",externalCss:tE,children:(0,c.tZ)(tk.Gl,{src:a?"".concat(ts.Ik,"75/303x170/").concat(a):"".concat(ts.kq,"no-photo.svg"),width:"303px",height:"170px",alt:o})}),(0,c.tZ)(tk.Zb,{width:"100%",css:tR,onClick:v,children:(0,c.tZ)(tk.aY,{p:"12px 9px 16px 12px",externalCss:tH,children:(0,c.BX)(d.Flex,{flexDirection:"column",css:tF,children:[(0,c.tZ)(td.Z,{fontSize:16,weight:600,externalCss:tj,children:o}),(0,c.BX)(d.Flex,{alignItems:"center",css:tX,children:[(0,c.tZ)(tI.Z,{rating:s,noRating:0===p&&!(h||s),ratingIconWidth:"18px",ratingIconHeight:"13px",iconCss:tP,ratingTextCss:tT}),p>0&&(0,c.BX)(td.Z,{pl:"6px",fontSize:12,weight:400,color:r.wL.brownGrey3,children:["(",p," yorum)"]})]})]})})})]})})});let tO=(0,o.iv)("background-color:",r.wL.white,";display:inline-flex;flex-direction:column;flex-shrink:0;position:relative;width:305px;height:277px;border-radius:4px;overflow:hidden;border:solid 0.5px ",r.wL.veryLightPink3,";&:not(:last-child){margin-right:25px;}",r._Q.tablet,"{width:197px;height:191px;&:not(:last-child){margin-right:12px;}}&:hover{text-decoration:none;color:",r.wL.blue3,";box-shadow:0 2px 10px 0 rgba(0,0,0,0.23);}"),tW=(0,o.iv)(r._Q.tablet,"{height:111px;}"),tK=(0,o.iv)("position:relative;min-height:100%;"),tU=(0,o.iv)("padding-top:4px;"),tN=(0,o.iv)("margin-right:2px !important;"),tM=(0,o.iv)("width:100%;position:relative;",r._Q.tablet,"{padding:8px 18px 12px 12px;}"),tG=(0,o.iv)("height:107px;",r._Q.tablet,"{height:80px;}"),tY=(0,o.iv)("white-space:nowrap;overflow:hidden;text-overflow:ellipsis;",r._Q.tablet,"{font-size:13px;}"),tV=(0,o.iv)(r._Q.tablet,"{font-size:12px;}");var t$=function(t){let{facilityItem:e,position:i,providerMap:l}=t,{facilityName:o,imageId:a,averageRating:s,reviewCount:p,slug:h}=e,x=(0,n.useCallback)(()=>{(0,k.AB)((0,_.eM)(e,"product-image",i,l)),(0,k.AB)((0,k.FQ)(e,i,l))},[e,i]),u=(0,n.useCallback)(()=>{(0,k.AB)((0,_.eM)(e,"product-headline",i,l)),(0,k.AB)((0,k.FQ)(e,i,l))},[e,i]);return(0,c.tZ)(m.Z,{href:"/".concat(h,"-fiyatlari"),externalCss:tO,title:o,children:(0,c.BX)(d.Flex,{flexDirection:"column",children:[(0,c.tZ)(tk.Zb,{onClick:x,width:"100%",height:"170px",externalCss:tW,children:(0,c.tZ)(tk.Gl,{src:a?"".concat(ts.Ik,"75/303x170/").concat(a):"".concat(ts.kq,"no-photo.svg"),width:"303px",height:"170px",alt:o})}),(0,c.tZ)(tk.Zb,{width:"100%",css:tG,onClick:u,children:(0,c.tZ)(tk.aY,{p:"12px 9px 16px 12px",externalCss:tM,children:(0,c.BX)(d.Flex,{flexDirection:"column",css:tK,children:[(0,c.tZ)(td.Z,{fontSize:16,weight:600,externalCss:tY,children:o}),(0,c.BX)(d.Flex,{alignItems:"center",css:tU,children:[(0,c.tZ)(tI.Z,{rating:s,noRating:0===p&&!s,ratingIconWidth:"18px",ratingIconHeight:"13px",iconCss:tN,ratingTextCss:tV}),p>0&&(0,c.BX)(td.Z,{pl:"6px",fontSize:12,weight:400,color:r.wL.brownGrey3,children:["(",p," yorum)"]})]})]})})})]})})},tq=i(84657),tJ=i(64641);let t0=(0,o.iv)("display:inline-flex;flex-shrink:0;&:not(:last-child){margin-right:25px;}"),t1=(0,o.iv)("height:277px;width:305px;margin:0 25px 0 0;"),t2=(0,o.iv)("width:100%;",r._Q.tablet,"{padding-left:20px;}");var t5=(0,n.memo)(function(t){let{facilities:e,facilitiesOfWeek:i,showFacilitiesOfWeek:l,loading:o,providerMap:a,onClickNext:r}=t,s=(0,n.useCallback)(()=>(0,c.tZ)(d.Flex,{children:[,,,,,].fill(0).map((t,e)=>(0,c.tZ)(tq.Z,{width:"305px",height:"277px",css:t0},e))}),[]),p=(0,n.useCallback)(()=>l?i:e,[e,i,l]),h=(0,n.useMemo)(()=>{var t;let e=[];return null===(t=p())||void 0===t||t.map((t,i)=>{2===i&&e.push((0,c.tZ)(tJ.default,{disable:!0,externalCss:t1,id:"div-gpt-ad-1615282743887-0",name:"nkal_w_homepage_mre",sizes:[[305,277],[300,250]]},i+"_ad")),e.push(l?(0,c.tZ)(tD,{position:i,facilityItem:t,providerMap:a},t.objectId+"_".concat(i)):(0,c.tZ)(t$,{position:i,facilityItem:t,providerMap:a},t.objectId+"_".concat(i)))}),e},[p]);return(0,c.tZ)(d.Box,{css:t2,children:o?s():(0,c.tZ)(tv.Z,{onClickNext:t=>{r(4+(t||0))},children:h})})}),t6=i(4284),t4=i(65586);let t3=(0,o.iv)("padding-top:25px;padding-bottom:25px;overflow:hidden;",r._Q.tablet,"{padding:0;}"),t7=(0,o.iv)(r._Q.tablet,"{padding-left:20px;font-size:18px;}"),t8=(0,o.iv)("border-bottom:1px solid ",r.wL.veryLightPink2,";border-top:1px solid ",r.wL.veryLightPink2,";",r._Q.tablet,"{padding:20px 0px 18px 38px;margin-left:-20px;}"),t9=(0,o.iv)(r._Q.tablet,"{padding-top:21px;}"),et=(0,o.iv)(r._Q.tablet,"{margin-left:20px;margin-top:15px;}");var ee=(0,n.memo)(function(t){let{popularLocations:e,facilitiesOfWeek:i,providerMap:l,facilitiesOfWeekInitialData:o,disableCenter:s,rezervationQueryFacilities:p,defaultParams:h,onClickTabs:x,catalogType:u}=t,v=(0,n.useRef)(null),[b,g]=(0,n.useState)(!1),[f,m]=(0,n.useState)([]),[w,Z]=(0,n.useState)(i),[B,Q]=(0,n.useState)("FACILITIES_OF_WEEK"),[L,z]=(0,n.useState)(""),[S,I]=(0,n.useState)(!1),[A,E]=(0,n.useState)([]),F=(0,C.jU)()&&(0,y.R)(v);(0,n.useEffect)(()=>{F&&!S&&((0,k.AB)((0,_.ZC)(w,0,l)),(0,k.AB)((0,k.Vd)(w.slice(0,4),l)),I(!0))},[F,w]);let X=(0,n.useCallback)(async(t,e)=>{if(x&&x(t),B!==t){if(z(e),g(!0),E([]),"FACILITIES_OF_WEEK"===t){Q("FACILITIES_OF_WEEK");let t=await (0,tC.Ts)(o,h,!1,!0);t.body&&(Z(t.body.catalogs),p?Z([...p,...t.body.catalogs]):Z(t.body.catalogs),(0,k.AB)((0,_.ZC)(t.body.catalogs,0,l)),(0,k.AB)((0,k.Vd)(t.body.catalogs.slice(0,4),l,0,u===t_.H.City)))}else{var i,n,a,r,d,s;Q(t);let e=await (0,tC.Yh)({api_key:ts.$h,locationSlug:t,src:"Unpaid"});m(null!==(r=null===(i=e.body)||void 0===i?void 0:i.facilities)&&void 0!==r?r:[]),(0,k.AB)((0,_.T0)(null!==(d=null===(n=e.body)||void 0===n?void 0:n.facilities)&&void 0!==d?d:[],0,l)),(0,k.AB)((0,k.Vd)((null!==(s=null===(a=e.body)||void 0===a?void 0:a.facilities)&&void 0!==s?s:[]).slice(0,4),l,0,u===t_.H.City))}g(!1)}},[B,l,Q]),P=(0,n.useCallback)(t=>{-1!==A.findIndex(e=>e===t)||("FACILITIES_OF_WEEK"===B?((0,k.AB)((0,_.ZC)(w,4,l)),(0,k.AB)((0,k.Vd)([w[t]],l,t))):((0,k.AB)((0,_.T0)(f,4,l)),(0,k.AB)((0,k.Vd)([f[t]],l,t))),E(e=>[...e,t]))},[A,B,w,f,l]);return(0,n.useEffect)(()=>{p&&Z([...p,...i])},[p,i]),(0,c.tZ)(d.Box,{css:[r.o4,t8],children:(0,c.BX)(a.Z,{mt:"10px",ref:v,externalCss:[!s&&r.z1,t3],children:[(0,c.tZ)(t4.Z,{fontSize:26,fontWeight:600,externalCss:t7,content:"Pop\xfcler Oteller"}),(0,c.BX)(d.Box,{pt:"20px",children:[(0,c.tZ)(tS,{popularLocations:e,activeLocationSlug:B,onLocationChange:X,catalogType:u}),(0,c.BX)(d.Box,{pt:"25px",width:"100%",css:t9,children:[(0,c.tZ)(t5,{providerMap:l,facilities:f,facilitiesOfWeek:w,showFacilitiesOfWeek:"FACILITIES_OF_WEEK"===B,loading:b,onClickNext:P}),"FACILITIES_OF_WEEK"!==B&&(0,c.tZ)(d.Flex,{mt:"20px",justifyContent:"flex-start",css:et,children:(0,c.tZ)(t6.Z,{href:"/".concat(L)})})]})]})]})})})},73219:function(t,e,i){i.r(e),i.d(e,{default:function(){return I}});var l=i(35944),n=i(67294),o=i(66455),a=i(70917),r=i(34665),d=i(27625),s=i(33463),c=i(86549),p=i(24881),h=i(56757),x=i(69767),u=i(1092);let v=(0,a.iv)("width:100%;"),b=(0,a.iv)("border-radius:4px;flex-shrink:0;",r._Q.tablet,"{width:165px;height:92px;}"),g=(0,a.iv)("display:flex;overflow:visible;padding:20px 0px 17px 25px;",r._Q.tablet,"{padding:0px 0px 0px 12px;}"),f=(0,a.iv)("display:flex;flex-direction:column;justify-content:flex-start;margin:0;padding:0;&:not(:first-of-type){padding-left:50px;}li{list-style:none;&:not(:first-of-type){margin-top:12px;}}"),m=(0,a.iv)("font-size:16px;font-weight:500;display:flex;flex-direction:column;&:hover{text-decoration:none;color:",r.wL.blue3,";font-weight:600;}&::after{content:attr(datatext);height:0;visibility:hidden;overflow:hidden;user-select:none;pointer-events:none;font-weight:600;@media speech{display:none;}}",r._Q.tablet,"{font-size:12px;}"),w=(0,a.iv)(r._Q.tablet,"{font-size:18px;}");var Z=function(t){let{popularDestionation:e,colLength:i,...a}=t,{ImageId:d,CityName:Z,CityUrl:k,Districts:C}=e,y=(0,n.useMemo)(()=>Array.isArray(C)?(0,h.By)(C.slice(0,4===i?8:6),i):[],[C,i]),_=t=>{(0,u.AB)((0,u.iZ)("pop\xfcler destinasyonlar",t||Z))};return(0,l.BX)(o.Box,{...a,children:[(0,l.tZ)(p.Zb,{width:"212px",height:"118px",externalCss:b,children:(0,l.BX)(c.Z,{href:"/".concat(k),css:v,title:Z,onClick:()=>_(),children:[(0,l.tZ)(p.aY,{left:"50%",top:"50%",centered:!0,children:(0,l.tZ)(s.Z,{weight:600,fontSize:21,color:r.wL.white,externalCss:w,children:Z})}),(0,l.tZ)(p.Gl,{src:"".concat(x.Ik,"75/212x118/").concat(d),width:"212px",height:"118px",alt:Z}),(0,l.tZ)(p.Q_,{})]})}),(0,l.tZ)(p.Zb,{width:"100%",height:"118px",externalCss:g,children:y.map((t,e)=>(0,l.tZ)("ul",{css:f,children:t.map(t=>{let{Id:e,Name:i,Url:n}=t;return(0,l.tZ)("li",{children:(0,l.tZ)(c.Z,{externalCss:m,href:"/".concat(n),title:i,anchorProps:{datatext:i},onClick:()=>_(i),children:i})},e)})},e))})]})};let k=(0,a.iv)("min-width:508px;height:168px;background-color:",r.wL.white,";display:inline-flex;flex-shrink:0;padding:25px 33px 25px 25px;border:0.5px solid ",r.wL.veryLightPink2,";border-radius:4px;&:not(:last-child){margin-right:25px;}&:hover{box-shadow:0 2px 10px 0 rgba(0,0,0,0.23);}",r._Q.tablet,"{min-width:363px;height:116px;padding:12px 20px 12px 12px;&:not(:last-child){margin-right:12px;}}"),C=(0,a.iv)("width:100%;",r._Q.tablet,"{padding-left:20px;}");var y=function(t){let{popularDestinations:e}=t,[i,a]=(0,n.useState)(3);return(0,n.useEffect)(()=>{let t=()=>{document.body.clientWidth<=r.Eg.tablet?a(4):a(3)};return window.addEventListener("resize",t),t(),()=>{window.removeEventListener("resize",t)}},[]),(0,l.tZ)(o.Box,{css:C,children:(0,l.tZ)(d.Z,{children:e.map(t=>(0,l.tZ)(Z,{popularDestionation:t,colLength:i,css:k},t.Id))})})},_=i(22149),B=i(68032),Q=i(57404);let L=(0,a.iv)("padding-top:25px;padding-bottom:25px;",r._Q.tablet,"{padding:0;}"),z=(0,a.iv)(r._Q.tablet,"{padding-left:20px;font-size:18px;}"),S=(0,a.iv)("border-bottom:1px solid ",r.wL.veryLightPink2,";border-top:1px solid ",r.wL.veryLightPink2,";",r._Q.tablet,"{padding:20px 0px 18px 38px;margin-left:-20px;}");var I=(0,n.memo)(function(t){let{popularDestinations:e}=t,[i,a]=(0,n.useState)(!1),d=(0,n.useRef)(null),c=(0,Q.jU)()&&(0,B.R)(d);return(0,n.useEffect)(()=>{c&&!i&&((0,u.AB)((0,u.RK)("pop\xfcler destinasyonlar")),a(!0))},[c,i]),(0,l.tZ)(o.Box,{css:[r.o4,S],ref:d,children:(0,l.BX)(_.Z,{mt:"10px",css:[r.z1,L],children:[(0,l.tZ)(s.Z,{weight:600,size:26,css:z,children:"Pop\xfcler Destinasyonlar"}),(0,l.tZ)(o.Box,{pt:"20px",width:"100%",children:(0,l.tZ)(y,{popularDestinations:e})})]})})},()=>!0)}}]);