"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4560],{64641:function(i,e,t){t.r(e);var l=t(35944),n=t(67294),r=t(70917),o=t(66455),a=t(52154);let d=(0,r.iv)("height:auto;overflow:hidden;margin:0 auto;z-index:0;");e.default=(0,n.memo)(function(i){let{id:e,name:t,sizes:r,externalCss:c,disable:s}=i;return(0,n.useEffect)(()=>{e&&t&&r&&!s&&(0,a.dE)(t,e,r)},[e,t,r,s]),(0,l.tZ)(o.Box,{children:s?null:(0,l.tZ)(o.Flex,{justifyContent:"center",id:e,css:[d,c]})})},()=>!0)},39565:function(i,e,t){var l=t(35944);t(67294);var n=t(69767),r=t(78707),o=t(66455),a=t(70917);e.Z=function(i){if(!i.count||0===i.count)return null;let e=[];for(let t=0;t(0,n.iv)("font-size:",i,"px!important;font-weight:",e,";margin:",null!=t?t:"0",";");e.Z=function(i){let{content:e,fontSize:t,fontWeight:n,margin:a,externalCss:d,type:c}=i;return(0,r.useCallback)(()=>"h3"==c?(0,l.tZ)("h3",{css:[o(t,n,a),d],children:e}):(0,l.tZ)("h2",{css:[o(t,n,a),d],children:e}),[e])()}},43331:function(i,e,t){t.d(e,{Z:function(){return ic}});var l=t(82729),n=t(35944),r=t(67294),o=t(70917),a=t(66455),d=t(84657),c=t(64949),s=t(64641),h=t(27625),u=t(11526),p=t(1092),v=t(38068),x=t(44594),f=t(69497),g=t(33463),w=t(18145),m=t(34665),b=t(4188),Z=t(30337),C=t(24881),_=t(69767),y=t(57404),k=t(68032),B=t(39565),P=t(46282),z=t(27734);let V=(0,o.iv)("height:30px;border-radius:5px;min-width:105px;cursor:pointer;background-color:",m.wL.blue3,";border:none;outline-width:0;font-size:14px;padding:0 6px;",m._Q.tablet,"{min-width:88px;}",m._Q.tablet_lg,"{min-width:90px;}"),O=(0,o.iv)(m.I8," justify-content:center;color:",m.wL.white,";font-weight:600;font-size:12px;letter-spacing:0.5px;position:relative;",m._Q.tablet,"{font-size:11px;}"),L=(0,o.iv)("display:flex;justify-content:center;align-items:center;width:100%;"),I=(0,o.iv)("border-left:1px solid ",m.wL.white,";height:30px;padding-left:5px;margin-left:5px;position:relative;max-width:21px;"),F=(0,o.iv)(m.I8," font-size:12px;font-weight:500;line-height:15px;color:",m.wL.white,";",m._Q.tablet,"{font-size:11px;}",m._Q.tablet_lg,"{font-size:11px;}");var R=(0,r.memo)(function(i){let{buttonCss:e,disabled:t,providerId:l,phoneNumber:o,handleOnExit:d,facilityItem:s,handleOpenPopover:h,handleClosePopover:u,handleOnPhoneCall:p,position:v,page:x,providerWidget:f}=i,w=(0,r.useMemo)(()=>{var i,e,t,l,n,r;let o=null==s?void 0:null===(e=s.deals)||void 0===e?void 0:null===(i=e.heroPrice)||void 0===i?void 0:i.providerId,a=null==s?void 0:null===(l=s.deals)||void 0===l?void 0:null===(t=l.bestPrice)||void 0===t?void 0:t.providerId,d=null==s?void 0:null===(r=s.deals)||void 0===r?void 0:null===(n=r.alternativePrice)||void 0===n?void 0:n.providerId;return o!==a&&!!a||o!==d&&!!d},[s]),[Z,C]=(0,r.useState)(!1),_=(0,r.useRef)(null);return(0,b.H)(_,()=>C(!1),[]),(0,n.tZ)("button",{disabled:t,css:[V,e],children:(0,n.BX)(a.Flex,{css:O,children:[""!==o&&l===c.JB?(0,n.tZ)(n.HY,{children:(0,n.tZ)(a.Box,{css:[L],onClick:i=>{i.stopPropagation(),p(s,"".concat(f,"/main"),l,x)},children:(0,n.tZ)(g.Z,{css:F,children:"Tesisi Ara"})})}):(0,n.tZ)(a.Box,{css:[L],onClick:i=>{i.stopPropagation(),d(s,v,x,"".concat(f,"/main"))},children:(0,n.tZ)(g.Z,{css:F,children:y.uk})})," ",(null==s?void 0:s.priceCount)>1&&w&&(0,n.tZ)(a.Box,{ref:_,css:[I,L],onClick:i=>{Z?(i.stopPropagation(),C(!1),u()):(C(!0),h(i,s,null==s?void 0:s.objectId,v))},children:(0,n.tZ)(z.Z,{fill:m.wL.white,size:15})})]})})}),S=t(12403);let j=(i,e)=>(0,o.iv)("background-color:",m.wL.white,";display:inline-flex;flex-direction:column;flex-shrink:0;position:relative;max-width:",i===S._.Vertical?"305px":"450px",";width:",i===S._.Vertical?"305px":"100%",";height:",i===S._.Vertical?"305px":"110px",";border-radius:4px;border:solid 1px ",m.wL.veryLightPink2,";padding:",i===S._.Vertical?"0":"5px",";&:not(:last-child){margin-right:",e?"0":"25px",";}",m._Q.tablet,"{width:",i===S._.Vertical?"220px":"450px",";height:",i===S._.Vertical?"245px":"110px",";&:not(:last-child){margin-right:",e?"0":"12px",";}}&:hover{text-decoration:none;color:",m.wL.blue3,";box-shadow:0 2px 10px 0 rgba(0,0,0,0.23);}cursor:pointer;"),X=(i,e)=>(0,o.iv)("position:relative;display:inline-flex;flex-direction:column;flex-shrink:0;width:",i===S._.Vertical?"100%":e?"120px":"160px",";height:",i===S._.Vertical?"170px":"98px",";flex-direction:row;",m._Q.tablet,"{height:",i===S._.Vertical?"111px":"98px",";}border-radius:",e?"4px":"0",";"),T=(i,e)=>(0,o.iv)("position:relative;display:inline-flex;flex-direction:column;flex-shrink:0;width:",i===S._.Vertical?"303px":e?"120px":"160px",";height:",i===S._.Vertical?"170px":"98px",";border-radius:",i===S._.Vertical?"4px 4px 0 0":"4px",';position:"relative";',m._Q.tablet,"{width:",i===S._.Vertical?"220px":e?"120px":"160px",";height:",i===S._.Vertical?"111px":"98px",";}"),H=(0,o.iv)("position:relative;min-height:100%;"),M=i=>(0,o.iv)("padding:",i===S._.Vertical?"10px":"2px",";width:100%;position:relative;"),Q=i=>(0,o.iv)("padding-left:",i===S._.Vertical?"0":"10px",";overflow:initial;",m._Q.tablet,"{height:80px;}"),A=i=>(0,o.iv)("white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:",i===S._.Vertical?"20px":"14.5px",";font-size:",i===S._.Vertical?"16px":"12px",";font-weight:600;padding:",i===S._.Vertical?"0":"0 0 3px",";",m._Q.tablet,"{font-size:",i===S._.Vertical?"13px":"12px",";}"),E=i=>(0,o.iv)("border-radius:5px;background-color:",m.wL.lightBlue4,";justify-content:space-between;padding:",i===S._.Vertical?"10px":" 5px",";"),N=(0,o.iv)("white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-lines:1;font-size:12px;font-weight:400;"),J=(0,o.iv)("width:30px;height:30px;background-color:#00000070;&:hover{background-color:",m.wL.transparentBlack2,";}"),W=i=>(0,o.iv)("border-radius:",i===S._.Vertical?"2px 2px 0 0":"4px",";");var q=(0,r.memo)(function(i){var e;let{facilityItem:t,position:l,providerMap:d,page:s,handleOpenPopover:u,handleClosePopover:v,handleOnPhoneCall:x,handleOnExit:w,providerWidget:b,cardType:Z,isCardsVertical:z,isNearBy:V}=i,O=(0,r.useRef)(null),L=(0,y.jU)()&&(0,k.R)(O),[I,F]=(0,r.useState)(!1),{facilityName:q,providerId:D,price:Y,phoneNumber:G}=(0,r.useMemo)(()=>{var i,e,l,n,r,o,a,d,c,s,h,u,p,v;return{facilityName:t.name,imageId:null===(e=t.images)||void 0===e?void 0:null===(i=e[0])||void 0===i?void 0:i.image,averageRating:t.avgRating,reviewCount:null===(l=t.interactions)||void 0===l?void 0:l.count,rating:parseFloat((null===(n=t.interactions)||void 0===n?void 0:n.rating)||"0"),price:(null!==(p=null==t?void 0:null===(o=t.deals)||void 0===o?void 0:null===(r=o.heroPrice)||void 0===r?void 0:r.discountPrice)&&void 0!==p?p:0)>0?null==t?void 0:null===(d=t.deals)||void 0===d?void 0:null===(a=d.heroPrice)||void 0===a?void 0:a.discountPrice:null!==(v=null==t?void 0:null===(s=t.deals)||void 0===s?void 0:null===(c=s.heroPrice)||void 0===c?void 0:c.rawPrice)&&void 0!==v?v:0,slug:t.slug,providerId:(null==t?void 0:null===(u=t.deals)||void 0===u?void 0:null===(h=u.heroPrice)||void 0===h?void 0:h.providerId)||0,phoneNumber:null==t?void 0:t.phoneNumber}},[t]);(0,r.useEffect)(()=>{L&&!I&&(F(!0),(0,p.AB)((0,p.eQ)([t],l,d,s,"".concat(b,"/main"))))},[O,L,y.jU,k.R]);let U=(0,r.useMemo)(()=>{var i;let e=[];return null===(i=t.images)||void 0===i||i.forEach((i,t)=>{e.push((0,n.tZ)(C.Gl,{src:"".concat(_.Ik,"75/303x170/").concat(i.image),alt:q,externalCss:T(Z,z),imageCss:W(Z)},t))}),e.slice(0,5)},[t]),K=()=>{if(V){window.location.href="/".concat(t.slug,"-fiyatlari/");return}""!==G&&D===c.JB?x(t,"".concat(b,"/main"),D,s):w(t,l,s,"".concat(b,"/main"))};return(0,n.tZ)(a.Box,{css:j(Z,z),title:String(q),ref:O,onClick:()=>K(),children:(0,n.BX)(a.Flex,{flexDirection:"".concat(Z===S._.Vertical?"column":"row"),children:[(0,n.tZ)(C.Zb,{externalCss:X(Z,z),children:(0,n.tZ)(a.Box,{css:(0,o.iv)("width:100%;"),children:(0,n.tZ)(h.Z,{arrowExternalCss:J,chevronColor:m.wL.white,isArrowHidden:!(U.length<2),isAbortClickOnHover:!0,children:U})})}),(0,n.tZ)(C.Zb,{width:"100%",css:Q(Z),children:(0,n.tZ)(C.aY,{externalCss:M(Z),children:(0,n.BX)(a.Flex,{flexDirection:"column",css:H,children:[(0,n.BX)(a.Flex,{minHeight:20,children:[(0,n.tZ)(B.Z,{count:(null==t?void 0:t.starCount)||0}),(null==t?void 0:null===(e=t.category)||void 0===e?void 0:e.name)&&(0,n.tZ)(g.Z,{fontSize:13,css:(0,o.iv)("line-height:20px;"),children:t.category.name})]}),(0,n.BX)(g.Z,{externalCss:A(Z),children:[" ",(0,f.h8)(null!=q?q:"",1,z?12:10,1.2,200,!1,!0)]}),(0,n.BX)(a.Flex,{alignItems:"center",children:[(0,n.tZ)(P.Z,{width:"12",height:"18",fill:m.wL.blue3,style:{padding:"0px 0px 3px"}}),(0,n.tZ)(g.Z,{css:N,children:(0,f.h8)((0,f.YZ)(t.locationTree),1,z?12:10,1.2,200,!1,!0)})]}),(0,n.tZ)(a.Flex,{css:[E(Z)],children:(0,n.tZ)(R,{position:l,phoneNumber:G,providerId:D,handleOnExit:w,handleOnPhoneCall:x,facilityItem:t,handleOpenPopover:u,handleClosePopover:v,objectId:t.objectId,page:s,providerWidget:b})})]})})})]})})}),D=t(4284);function Y(){let i=(0,l._)(["\n height: 1px;\n flex-grow: 1;\n background-color: ",";\n margin-right: 1px;\n "]);return Y=function(){return i},i}function G(){let i=(0,l._)(["\n margin-left: 5px;\n font-size: 12px;\n min-width: 65px;\n "]);return G=function(){return i},i}let U=(0,o.iv)("display:inline-flex;flex-shrink:0;margin-right:30px;"),K=(0,o.iv)("height:277px;width:100%;margin:0;"),$=(0,o.iv)("width:100%;"),ii=(0,o.iv)("justify-content:space-between;align-items:center;margin:9px 0;cursor:pointer;"),ie=(0,o.iv)("background-color:",m.wL.white,";border-radius:5px;padding:0 10px;position:relative;color:",m.wL.black,";z-index:10;line-height:13px;font-size:11px;"),it=(i,e,t)=>(0,o.iv)(ie," bottom:",t===S._.Vertical?"18px":"3px",";left:",i,"px;width:230px;",e&&"\n &:before {\n left: 78%;\n } \n &:after {\n left: 78%;\n }"),il=(0,o.iv)("align-items:center;font-size:12px;font-weight:400;line-height:13px;letter-spacing:0.5px;margin-right:3px;"),ir=(0,o.iv)("position:absolute;"),io=(0,o.iv)("display:flex;flex-direction:column;gap:10px;"),ia=(0,o.iv)("margin-top:10px;"),id=(i,e)=>(0,o.iv)(ie," color:",m.wL.black,";top:",i,"px;left:",e-221,"px;&:before{left:86%;}&:after{left:86%;}");var ic=(0,r.memo)(function(i){let{facilities:e,loading:t,providerMap:l,page:C,defaultParams:_,isNearBy:k,handleOnExit:B,handleOnPhoneCall:P,handleOnClickProvider:z,providerWidget:V,cardType:O=S._.Vertical,isCardsVertical:L=!1,facilityCount:I=3,location:F}=i,R=(0,r.useRef)(null),j=(0,r.useRef)(null);(0,b.H)(j,()=>ip(),[]);let X=(0,Z.i)(),{expandFacilityData:T,setExpandFacilityData:H}=(0,r.useContext)(u.S),[M,Q]=(0,r.useState)(null),[A,E]=(0,r.useState)(),[N,J]=(0,r.useState)(!1),[W,ie]=(0,r.useState)(0),[ic,is]=(0,r.useState)(),ih=(0,Z.i)().width<=m.Op;(0,r.useEffect)(()=>{!N&&A&&(0,p.AB)((0,p.jJ)("quickview_card",A,"kapat",k))},[N,A]);let iu=(0,r.useCallback)((i,e,t,l)=>{i.stopPropagation(),E(e),J(!0),is(l),iv(t,l,e),(0,p.AB)((0,p.jJ)("quickview_card",e,"en-uygun-fiyat",k))},[M]),ip=(0,r.useCallback)(()=>{J(!1),Q(null)},[A]),iv=(i,e,t)=>{if((0,w.cb)(T,i)){let n=(0,w.xJ)(T,i);n&&(Q(n),(0,p.AB)((0,p.kb)({...n,...t},e,l,C,"".concat(V,"/prices"))))}else(0,c.GY)({fls:JSON.stringify({plim:1,poff:0,flsp:[{fid:9,v:i}]}),poolData:"",queryParams:JSON.stringify({cin:null==_?void 0:_.checkIn,cout:null==_?void 0:_.checkOut,act:null==_?void 0:_.adultCount,cas:null==_?void 0:_.childAges}),obj:i,src:"Unpaid"},!1).then(i=>null==i?void 0:i.body).then(i=>{Q(i),(0,p.AB)((0,p.kb)({...i,...t},e,l,C,"".concat(V,"/prices"))),T.push(i),H(T)})},ix=(0,r.useMemo)(()=>{var i,e,t;let{result:r,flatRight:d,cardWidth:c}=void 0===ic?{result:87,flatRight:!1,cardWidth:0}:w.Sq.horizontalCardShift(O,ic-W,ih,X.width,L,ic,R);if(null==M?void 0:null===(i=M.prices)||void 0===i?void 0:i.providers)return(0,n.BX)(v.Z,{ref:j,externalCss:L?id(r,c):it(r,d,O),children:[" ",null==M?void 0:null===(t=M.prices)||void 0===t?void 0:null===(e=t.providers)||void 0===e?void 0:e.map((i,e)=>{var t,r,d;return(0,n.BX)(a.Flex,{css:ii,onClick:()=>A&&z(A,i,null==i?void 0:i.prices[0],e,V,null!=C?C:""),children:[(0,n.BX)(a.Flex,{css:il,children:[l&&l[null==i?void 0:i.providerId]," "]})," ",(0,n.tZ)("span",{css:(0,o.iv)(Y(),m.wL.brownGrey2)})," ",(0,n.tZ)(x.Z,{height:15,width:15})," ",(0,n.BX)(g.Z,{css:(0,o.iv)(G()),children:[(0,f.ge)(Math.round(null!==(d=null==i?void 0:null===(t=i.prices[0])||void 0===t?void 0:t.discountPrice)&&void 0!==d?d:null==i?void 0:null===(r=i.prices[0])||void 0===r?void 0:r.rawPrice))," ","TL"]})]},null==i?void 0:i.providerId)})," "]})},[N,M,iu,W,ic,A]),ig=(0,r.useCallback)(()=>(0,n.tZ)(a.Flex,{children:[,,,,,].fill(0).map((i,e)=>(0,n.tZ)(d.Z,{width:"305px",height:"277px",css:U},e))}),[]),iw=(0,r.useMemo)(()=>{let i=[];return null==e||e.map((e,t)=>{t>I&&O!==S._.Vertical&&L||(2===t&&i.push((0,n.tZ)(s.default,{disable:!0,externalCss:K,id:"div-gpt-ad-1615282743887-0"},t+"_ad")),i.push((0,n.tZ)(q,{position:t,facilityItem:e,providerMap:l,page:C||"",defaultParams:_,handleOpenPopover:iu,handleClosePopover:ip,isNearBy:k,handleOnExit:B,handleOnPhoneCall:P,providerWidget:V,cardType:O,isCardsVertical:L},e.objectId+"_".concat(t))))}),i},[e]);return L&&O!==S._.Vertical?(0,n.BX)(a.Box,{children:[(0,n.tZ)(a.Box,{css:ir,children:N&&ix}),(0,n.tZ)(a.Box,{css:io,ref:R,children:iw}),(0,n.tZ)(D.Z,{externalCss:ia,href:F?"/".concat((0,y.k6)(F.toLocaleLowerCase()),"-otelleri"):"/",title:"Daha fazla otel g\xf6r",children:"Daha fazla otel g\xf6r"})]}):(0,n.tZ)(a.Box,{css:$,children:t?ig():(0,n.BX)(a.Box,{children:[(0,n.tZ)(h.Z,{setParentIndex:ie,children:iw}),(0,n.tZ)(a.Box,{css:(0,o.iv)("position:absolute;"),children:N&&ix})]})})})},27734:function(i,e,t){var l=t(35944),n=t(34665),r=t(67294);e.Z=r.memo(function(i){return(0,l.tZ)("svg",{width:i.size||"16px",height:i.size||"16px",viewBox:"0 0 16 16",version:"1.1","aria-labelledby":"Aşağı Ok",xmlns:"http://www.w3.org/2000/svg",...i,children:(0,l.tZ)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,l.tZ)("g",{transform:"translate(-702.000000, -274.000000)",children:(0,l.tZ)("g",{transform:"translate(625.000000, 272.000000)",children:(0,l.BX)("g",{transform:"translate(85.000000, 10.000000) rotate(-270.000000) translate(-85.000000, -10.000000) translate(77.000000, 2.000000)",children:[(0,l.tZ)("polygon",{id:"Path",points:"0 0 16 0 16 16 0 16"}),(0,l.tZ)("polygon",{id:"Path",fill:i.fill||n.wL.blue3,fillRule:"nonzero",points:"6.66666667 4 5.72666667 4.94 8.78 8 5.72666667 11.06 6.66666667 12 10.6666667 8"})]})})})})})})},46282:function(i,e,t){var l=t(35944),n=t(67294),r=t(34665);e.Z=n.memo(function(i){return(0,l.tZ)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15",alt:"Lokasyon Pini","aria-labelledby":"Lokasyon Pini",...i,children:(0,l.BX)("g",{fill:"none",fillRule:"evenodd",children:[(0,l.tZ)("path",{d:"M0 0L15 0 15 15 0 15z",transform:"translate(-381 -1089) translate(259 1014) translate(122 75)"}),(0,l.tZ)("path",{fill:i.fill||r.wL.black,fillRule:"nonzero",d:"M7.5 1.25c-2.419 0-4.375 1.956-4.375 4.375 0 3.281 4.375 8.125 4.375 8.125s4.375-4.844 4.375-8.125c0-2.419-1.956-4.375-4.375-4.375zm0 5.938c-.862 0-1.563-.7-1.563-1.563 0-.862.7-1.563 1.563-1.563s1.563.7 1.563 1.563c0 .862-.7 1.563-1.563 1.563z",transform:"translate(-381 -1089) translate(259 1014) translate(122 75)"})]})})})},44594:function(i,e,t){var l=t(35944),n=t(67294),r=t(34665);e.Z=n.memo(function(i){return(0,l.tZ)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15",...i,children:(0,l.BX)("g",{fill:"none",fillRule:"evenodd",children:[(0,l.tZ)("path",{d:"M0 0L15 0 15 15 0 15z",transform:"translate(-256 -1148) translate(0 994) translate(15 106) translate(241 48)"}),(0,l.tZ)("path",{fill:r.wL.blue3,fillRule:"nonzero",d:"M11.875 11.875h-8.75v-8.75H7.5v-1.25H3.125c-.694 0-1.25.563-1.25 1.25v8.75c0 .688.556 1.25 1.25 1.25h8.75c.688 0 1.25-.563 1.25-1.25V7.5h-1.25v4.375zm-3.125-10v1.25h2.244L4.85 9.269l.881.881 6.144-6.144V6.25h1.25V1.875H8.75z",transform:"translate(-256 -1148) translate(0 994) translate(15 106) translate(241 48)"})]})})})},12403:function(i,e,t){var l,n;t.d(e,{_:function(){return l}}),(n=l||(l={}))[n.Vertical=1]="Vertical",n[n.Horizontal=2]="Horizontal"},18145:function(i,e,t){function l(i,e){return!!i.find(i=>(null==i?void 0:i.objectId)===e)}function n(i,e){return i.find(i=>(null==i?void 0:i.objectId)===e)}t.d(e,{Sq:function(){return r},cb:function(){return l},xJ:function(){return n}});let r={1:{widthOfFacilityCard:330,widthOfFacilityCardTablet:232,heightOfFacilityCard:0,heightOfFacilityCardTablet:0,basePixel:151,widthOfPopover:230,basePixelTablet:66,paddingOfContainerRight:15,paddingOfContainerBottom:0},2:{widthOfFacilityCard:475,widthOfFacilityCardTablet:450,heightOfFacilityCard:0,heightOfFacilityCardTablet:0,widthOfPopover:230,basePixel:295,basePixelTablet:295,paddingOfContainerRight:25,paddingOfContainerBottom:0},horizontalCardShift:(i,e,t,l,n,o,a)=>{if(n){let i=(null==a?void 0:a.current)&&parseInt(getComputedStyle(a.current).width);return void 0===o?{result:153,flatRight:!1,cardWidth:i-2}:{result:153+120*o-48,flatRight:!0,cardWidth:i-10}}let d=r[i].paddingOfContainerRight+(t?r[i].basePixelTablet:r[i].basePixel)+e*(t?r[i].widthOfFacilityCardTablet:r[i].widthOfFacilityCard),c=d+r[i].widthOfPopover>l;return{result:c?d-64:d,flatRight:c,cardWidth:0}}}}}]);