(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4903],{93059:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/place-detail",function(){return i(36428)}])},36428:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return K},default:function(){return U}});var l=i(35944),a=i(67294),o=i(41187),n=i(30427),d=i(1063),r=i(70917),s=i(72078),c=i(66066),u=i(74573),p=i(19151),g=i(68293),v=i(66455),f=i(64949),m=i(34665),y=i(61787),h=i(22149),P=i(31238),b=i(64641),_=i(26146),Z=i(1092),w=i(44108),S=i(28455),x=i(94145),T=i(5152),k=i.n(T),O=i(51217),B=i(11526),R=i(57404),C=i(62209);i(27616);var W=i(94019),F=i(43603),I=i(60721);let M=k()(()=>i.e(9725).then(i.bind(i,19725)),{loadableGenerated:{webpack:()=>[19725]},ssr:!1}),L=(0,r.iv)("overflow:hidden;"),N=(0,r.iv)(m._Q.tablet,"{width:100%;}"),E=(0,r.iv)(m._Q.tablet,"{display:none;}"),H=(0,r.iv)("padding:0 15px 20px 15px;"),z=(0,r.iv)("padding:15px 0;height:105px;"),X=(0,r.iv)("padding:15px 0;"),Q=(0,r.iv)(".leaflet-top.leaflet-left{top:60px !important;}"),D=(0,r.iv)("background-color:rgba(0,0,0,0.5);z-index:103;"),G=(0,r.iv)("padding:20px;");var j=(0,a.memo)(function(e){var t,i,o,n;let{detail:r,gallery:f,comment:T,amenities:k,blogPosts:R,popularFacilities:C,handleAuthModalOpen:j,breadCrumbData:A,kitchenTypeValue:V,defaultParams:Y,nearByFacilitiesWidgetProps:q,providerMap:K,accTypeMap:U,isGoogleBot:J}=e,$=a.useRef(null),ee=a.useRef(null),et=a.useRef(null),ei=a.useRef(null),el=a.useRef(null),ea=a.useRef(null),[eo,en]=(0,a.useState)(!1),[ed,er]=(0,a.useState)(!1),[es,ec]=(0,a.useState)(""),[eu,ep]=(0,a.useState)(O.g),[eg,ev]=(0,a.useState)(0),{userPersonal:ef}=(0,a.useContext)(B.S),[em,ey]=(0,a.useState)(!1),eh=(0,a.useCallback)(()=>{ey(!0)},[]),eP=(0,a.useCallback)(()=>{(0,Z.AB)((0,Z.dG)()),en(!0)},[eo]),eb=(0,a.useMemo)(()=>{var e,t;return(null==r?void 0:null===(t=r.catalogProperties)||void 0===t?void 0:null===(e=t.filter(e=>"ucretli-place"==e.code)[0])||void 0===e?void 0:e.value)=="True"},[r.catalogProperties]),e_=(0,a.useMemo)(()=>{var e,t,i;return null!==(i=parseInt(null==r?void 0:null===(t=r.catalogProperties)||void 0===t?void 0:null===(e=t.filter(e=>"place-fiyat-skoru"==e.code)[0])||void 0===e?void 0:e.value))&&void 0!==i?i:0},[r.catalogProperties]),eZ=(0,a.useCallback)(()=>er(!1),[]);return(0,l.BX)(h.Z,{externalCss:[m.z1,H],children:[(0,l.tZ)(S.Z,{detail:r,breadCrumbData:A}),(0,l.tZ)(d.Z,{priceRating:e_,kitchenType:null!=V?V:[],detail:r,gallery:f}),!em&&(0,l.tZ)(y.Z,{genRef:$,aboutRef:ei,commentRef:ee,locationRef:et,detailRef:el,blogRef:ea,pageName:"Restaurant"}),(0,l.BX)(v.Flex,{css:L,children:[(0,l.BX)(v.Box,{css:N,width:"70%",mr:"30px",children:[(0,l.tZ)(c.Z,{openMapOverlay:eP,sectionRef:$,pageTypeKey:"place",isPaid:eb,detail:r,comment:T,commentsRef:ee,aboutRef:ei,amenities:k}),(null==r?void 0:r.profile)&&(0,l.tZ)(v.Box,{css:L,m:"10px 0 0 0",children:(0,l.tZ)(u.Z,{title:r.name,content:null==r?void 0:r.profile})}),(0,l.tZ)(b.default,{externalCss:z,id:"div-gpt-ad-1615282818891-0"}),(0,l.tZ)(s.Z,{title:null==r?void 0:r.name,handleCommentModalOpen:eh,handleAuthModalOpen:j,pageType:"poi",commentsRef:ee,comment:T,objectId:r.objectId}),(0,l.tZ)(g.Z,{sectionRef:et,amenities:k,location:r.locationTree,setShowMapOverlay:eP,address:r.catalogAddress,pageType:"poi-detail",openInMapOptions:{lat:null==r?void 0:r.latitude,lng:null==r?void 0:r.longitude,zoom:10},isGoogleBot:J,catalogType:_.H.Poi,nearByFacilitiesWidgetProps:q,providerMap:K,defaultParams:Y,handleOnExit:e=>{window.location.href="/".concat(e.slug,"-fiyatlari/")},handleOnPhoneCall:e=>{window.location.href="/".concat(e.slug,"-fiyatlari/")},handleOnClickProvider:e=>{window.location.href="/".concat(e.slug,"-fiyatlari/")},seeMoreFacilities:!0})]}),(0,l.BX)(v.Box,{css:E,width:1/3,children:[C&&(null===(t=C.facilityListOfWidget)||void 0===t?void 0:t.length)>0&&(0,l.tZ)(v.Box,{css:[m.o4,G],children:(0,l.tZ)(I.Z,{title:C.facilityWidgetBoxTitle,facilityList:C.facilityListOfWidget,providerMap:K,defaultParams:Y,isNearBy:!0,page:C.page,handleOnExit:e=>{window.location.href="/".concat(e.slug,"-fiyatlari/")},handleOnPhoneCall:e=>{window.location.href="/".concat(e.slug,"-fiyatlari/")},handleOnClickProvider:e=>{window.location.href="/".concat(e.slug,"-fiyatlari/")},providerWidget:C.providerWidget,location:C.location||"",cardType:C.cardType,locationSlug:C.locationSlug,catalogType:C.catalogType,isCardsVertical:!0})}),(0,l.tZ)(b.default,{externalCss:X,id:"div-gpt-ad-1615282785648-0"})]})]}),R&&(0,l.tZ)(p.Z,{sectionRef:ea,items:R.data,catalogType:_.H.Place}),(0,l.tZ)(M,{disableButton:!0,openOverlayFromParent:eo,setOverlayFromParent:en,disableNears:!0,title:r.name,listItems:[r],listType:x.k.Poi,catalogType:_.H.Place,externalCss:Q,isPoiListing:!1}),(0,l.tZ)(P.Z,{catalogType:_.H.Place,objectId:r.objectId,setShow:ey,show:em,title:r.name,locationTree:null!==(n=null==r?void 0:r.locationTree)&&void 0!==n?n:"",image:null==f?void 0:null===(o=f.photos)||void 0===o?void 0:null===(i=o[0])||void 0===i?void 0:i.image,detail:r,rating:null==T?void 0:T.rating,defaultParams:Y}),(0,l.tZ)(W.Z,{containerStyle:D,show:ed,children:(0,l.tZ)(F.Z,{accTypeMap:U,providerMap:K,callData:eu,id:eg,onClose:eZ,phoneNumber:es,page:q.page})}),(0,l.tZ)(w.Z,{isShow:!0})]})}),A=i(10255),V=i(69767),Y=i(31950),q=i(12403),K=!0,U=(0,a.memo)(function(e){var t,i,d,r,s,c;let{isGoogleBot:u}=e,[p,g]=(0,a.useState)(e.blogPosts),[v,m]=(0,a.useState)(e.popularFacilities),[y,h]=(0,a.useState)(e.locationDetail),[P,b]=(0,a.useState)(e.nearByFacilitiesWidgetProps);return(0,a.useEffect)(()=>{(0,C.AB)((0,C.yq)("desktop","poi-detay"))},[]),(0,a.useEffect)(()=>{let t=e._location,i=e._locationSlug;Promise.all([e._blogItemsParams?(0,f._Z)(e._blogItemsParams,!1):Promise.resolve(null),e._popularFacilitiesQueryParams?(0,f.Su)(e._popularFacilitiesQueryParams,!1):Promise.resolve(null),e._citySlug?(0,A.q)({slug:e._citySlug},!1):Promise.resolve(null),e._defaultQueryParams?(0,f.Su)(e._defaultQueryParams,!1):Promise.resolve(null)]).then(e=>{var l,a;let[o,n,d,r]=e;(null==o?void 0:o.body)&&g(o.body),(null==n?void 0:n.body)&&m({facilityListOfWidget:[...(null===(l=n.body)||void 0===l?void 0:l.catalogs)||[]].slice(0,f.aV),page:"detay",location:t||"",locationSlug:"".concat((0,R.k6)(t||""),"-otelleri"),facilityWidgetBoxTitle:"Yakındaki ".concat(t," Otelleri"),providerWidget:"populer-oteller",cardType:q._.Horizontal,catalogType:_.H.Poi}),(null==d?void 0:d.body)&&h(d.body),(null==r?void 0:r.body)&&b({facilityListOfWidget:[...(null===(a=r.body)||void 0===a?void 0:a.catalogs)||[]].slice(0,f.aV),page:"detay",location:t||"",locationSlug:i||"",hasLocationTreeOrFacilityListSlug:!0,facilityWidgetBoxTitle:"Yakınındaki Oteller",providerWidget:"yakinindaki-oteller",cardType:q._.Horizontal,catalogType:_.H.Place})}).catch(()=>{})},[]),(0,l.BX)(l.HY,{children:[(0,l.tZ)(n.Z,{breadcrumb:e.breadcrumbSchema,imageUrl:(null==e?void 0:null===(i=e.gallery)||void 0===i?void 0:null===(t=i.photos)||void 0===t?void 0:t[0].image)&&"".concat(V.Ik,"75/800x600/").concat(null===(s=e.gallery)||void 0===s?void 0:null===(r=s.photos)||void 0===r?void 0:null===(d=r[0])||void 0===d?void 0:d.image),title:e.meta.title,metaTitle:e.meta.title,metaDescription:e.meta.description,hotelSchemas:[e.poiSchema],analyticsInput:(0,Z.GL)(e.detail),isGoogleBot:u,trackingParameters:[...Y.c],noIndex:!(null===(c=e.detail)||void 0===c?void 0:c.metaRobots),adLists:[{id:"div-gpt-ad-1711717474558-0",name:"nkal_w_serit_tepe_1400x50",sizes:[[1400,50]]},{id:"div-gpt-ad-1615282818891-0",name:"nkal_w_detail_footer",sizes:[[930,30],[728,90],"fluid"]},{id:"div-gpt-ad-1615282785648-0",name:"nkal_w_detail_right",sizes:[[300,250],[160,600],[200,200],[300,600],"fluid",[250,250],[336,280],[120,600]]}]}),(0,l.tZ)(o.Z,{children:(0,l.tZ)(j,{...e,blogPosts:p,popularFacilities:v,locationDetail:y,nearByFacilitiesWidgetProps:P})})]})},()=>!0)}},function(e){e.O(0,[9476,615,7285,2613,5232,4560,6169,6967,7334,6667,8241,2888,9774,179],function(){return e(e.s=93059)}),_N_E=e.O()}]);