"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6667],{97711:function(t,i,e){var o=e(35944),l=e(66455),n=e(70917),r=e(34665),a=e(18108),d=e(78707),c=e(4284),s=e(5793),h=e(69767),p=e(5152);let v=e.n(p)()(()=>Promise.all([e.e(2072),e.e(9774),e.e(9269),e.e(2542)]).then(e.bind(e,52542)),{loadableGenerated:{webpack:()=>[52542]},ssr:!1}),u=t=>(0,n.iv)("border-radius:4px;overflow:hidden;cursor:pointer;",t&&"text-align:center;"," background-color:",r.wL.white,";"),x=t=>(0,n.iv)("min-width:332px;width:",t?"100%":"332px",";height:112px;position:relative;",r._Q.tablet,"{width:100%;}");i.Z=function(t){let{onClick:i,fullWidth:e,hasLocationPin:n,centered:p,bordered:g,isGoogleBot:m,openInMapOptions:b,poiListItems:f}=t;return(0,o.BX)(l.Box,{css:[u(p),g&&r.zp],onClick:i,children:[(0,o.tZ)(l.Box,{css:x(e),children:m?(0,o.tZ)(d.h,{src:"".concat(h.kq,"map-preview.jpg"),alt:"\xd6rnek Harita G\xf6rseli",layout:"fill",objectFit:"cover"}):(0,o.tZ)(v,{mapProps:{lat:(null==b?void 0:b.lat)||38.9573415,lng:(null==b?void 0:b.lng)||35.240741,zoom:(null==b?void 0:b.zoom)||5},listItem:f})}),(0,o.tZ)(l.Flex,{alignItems:"center",justifyContent:p&&"center",mt:"16px",pb:"11px",children:n?(0,o.BX)(o.HY,{children:[" ",(0,o.tZ)(s.Z,{})," Haritayı G\xf6r\xfcnt\xfcle"," "]}):(0,o.BX)(o.HY,{children:[(0,o.tZ)(c.Z,{asButton:!0,children:"Haritada g\xf6r"}),(0,o.tZ)(a.Z,{})]})})]})}},54178:function(t,i,e){var o=e(35944);e(67294);var l=e(66455),n=e(33463),r=e(34665);i.Z=function(t){let{rating:i,color:e,fontSize:a}=t,d=Math.floor(i);return(0,o.BX)(l.Flex,{children:[(0,o.tZ)(n.Z,{fontSize:null!=a?a:18,color:null!=e?e:r.wL.blue3,bold:!0,children:"₺ ".repeat(d)}),(0,o.tZ)(n.Z,{fontSize:null!=a?a:18,color:null!=e?e:r.wL.blue3,bold:!0,ml:"5px",style:{opacity:.3},children:"₺ ".repeat(5-d)})]})}},1063:function(t,i,e){e.d(i,{Z:function(){return tJ}});var o=e(35944),l=e(67294),n=e(70917),r=e(10615),a=e(66455),d=e(22149),c=e(34665),s=e(78707),h=e(16956),p=e(18108);let v=(0,n.iv)("position:absolute;z-index:2;height:100%;"),u=(0,n.iv)("position:absolute;z-index:2;top:calc(50% - 20px);width:35px;height:35px;border-radius:100%;cursor:pointer;background-color:",c.wL.transparentBlack,";text-align:center;"),x=(0,n.iv)("top:0;right:0;"),g=(0,n.iv)("right:12px;text-align:center;padding:4px 0 0 1px;"),m=(0,n.iv)("left:12px;transform:rotate(180deg);padding-top:4px;");var b=l.memo(function(t){let{onClick:i,title:e,position:l}=t,n="left"===l;return(0,o.tZ)(a.Box,{type:"button",title:e,onClick:i,css:[v,!n&&x,u,n?m:g],children:(0,o.tZ)(p.Z,{fill:c.wL.white,size:"26px"})})},()=>!0),f=e(51776),w=e(31696),Z=e(44843),B=e(69767);let y=(0,n.iv)("width:85% !important;height:600px !important;margin:0 !important;",c._Q.tablet,"{height:250px;width:100%;}"),k=(0,n.iv)("position:relative;top:0;left:0;"),C=(t,i)=>(0,n.iv)("position:relative;min-height:367px;object-fit:cover;",!t&&" \n ".concat(c._Q.tablet," {\n height: 296px;\n max-height: 296px;\n min-height: 296px;\n } ").concat(i?"height: 367px; max-height: 471px;":"height: 471px; max-height: 471px;")," ",t&&" ".concat(c._Q.tablet," {\n height: 60%;\n width: 100%\n } height: 80%; width: 75%; left: 50%; top: 50%; transform: translate(-50%, -50%);")),z=(0,n.iv)("position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);cursor:pointer;"),L=(0,n.iv)("height:100vh;"),_=(0,n.iv)("position:relative;top:50%;transform:translateY(-50%);"),X=(0,n.iv)("position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:2;"),Q=(0,n.iv)("object-fit:cover;");var I=l.memo(function(t){let{item:i,index:e,isModalOpen:n,toggleModal:r,position:d,hasCategory:c,galleryTitle:h}=t,[p,v]=(0,l.useState)(!1),u=0===e,[x,g]=(0,l.useState)(!u),m=(0,l.useCallback)(()=>{v(!0)},[]);(0,l.useEffect)(()=>{i.hasVideo&&b("stopVideo")},[d]);let b=(0,l.useCallback)(t=>{var e;let o=document.getElementById("player-".concat(i.image));null==o||null===(e=o.contentWindow)||void 0===e||e.postMessage('{"event":"command","func":"'.concat(t,'","args":""}'),"*")},[]),I=(0,l.useCallback)(()=>{g(!0)},[]),H=(0,l.useCallback)(()=>{g(!1)},[]),j="".concat(i.title||h).concat(e>0?" - G\xf6rsel ".concat(e+1):"");return i.hasVideo?(0,o.tZ)(a.Box,{css:n&&L,onClick:r,children:(0,o.tZ)(a.Box,{css:n&&_,children:(0,o.tZ)(a.Box,{css:k,children:p&&n?(0,o.tZ)(f.Z,{videoId:i.image,videoStyle:y}):(0,o.BX)(a.Box,{css:C(!1,c),onClick:m,children:[(0,o.tZ)(s.h,{src:"https://img.youtube.com/vi/".concat(i.image,"/0.jpg"),layout:"fill",placeholder:"empty",priority:u,alt:null==i?void 0:i.title}),(0,o.tZ)(a.Box,{css:z,children:(0,o.tZ)(s.h,{src:"".concat(B.kq,"play-button.svg"),width:"95px",height:"95px",alt:j||"Play Button"})})]})})})}):(0,o.tZ)(a.Box,{css:n&&L,onClick:r,children:(0,o.BX)(a.Box,{css:[n&&_,C(n,c)],children:[(0,o.tZ)(s.h,{src:(0,w.KH)(i.image,1200,800),layout:"fill",css:Q,placeholder:"empty",priority:u,onLoadStart:I,onLoadingComplete:H,alt:j}),x&&(0,o.tZ)(a.Box,{css:X,children:(0,o.tZ)(Z.Z,{})})]})})}),H=e(94019),j=e(14591),F=e(33463),S=e(27484),P=e.n(S),M=e(30337);let Y=(0,n.iv)("min-height:169px;height:100%;width:169px;position:relative;cursor:pointer;&:not(:last-child){margin-bottom:5px;}",c._Q.tablet,"{width:100%;margin-bottom:0;min-height:89px;&:not(:last-child){margin-right:5px;}}"),T=(0,n.iv)("position:absolute;left:15px;bottom:12px;right:15px;font-size:14px;font-weight:600;line-height:1.21;color:",c.wL.white,";",c._Q.tablet,"{font-size:12px;left:10px;bottom:10px;}"),V=(0,n.iv)("object-fit:cover;filter:brightness(75%);");var A=l.memo(function(t){var i,e;let{onClick:n,gallery:r}=t,d=((null==r?void 0:null===(i=r.categories)||void 0===i?void 0:i.length)||0)>1,c=((null==r?void 0:null===(e=r.categories)||void 0===e?void 0:e.length)||0)>2,h=(0,l.useCallback)(()=>{var t,i;return null==r?void 0:null===(i=r.categories)||void 0===i?void 0:null===(t=i.slice(0,c?3:2))||void 0===t?void 0:t.map((t,i)=>(0,o.BX)(a.Box,{css:Y,onClick:()=>n(t.id),children:[(0,o.tZ)(s.h,{src:(0,w.KH)(null==t?void 0:t.mainPhoto,200,200),layout:"fill",css:V,placeholder:"empty"}),(0,o.tZ)(a.Box,{css:T,children:"".concat(null==t?void 0:t.name," (").concat(null==t?void 0:t.count,")")})]},i))},[r,n]);return d?(0,o.tZ)(a.Flex,{flexDirection:["row","row","row","column"],justifyContent:"space-between",width:[1,1,1,168],mt:["5px","5px","5px",0],mr:"5px",children:h()}):null}),G=e(14014);let N=(0,n.iv)("font-size:24px;font-weight:600;",c._Q.tablet,"{font-size:20px;}"),D=(0,n.iv)("font-size:12px;font-weight:normal;padding:8px 15px;border-radius:27.5px;margin-bottom:12px;&:not(:last-child){margin-right:12px;}",c._Q.tablet,"{font-size:12px;}&:hover{text-shadow:none;}"),W=(0,n.iv)("background-color:",c.wL.veryLightPink3,";");var q=l.memo(function(t){var i,e;let{selectedCategoryId:n,setSelectedCategoryId:r,gallery:d}=t,c=(0,l.useCallback)(()=>{var t;return null==d?void 0:null===(t=d.categories)||void 0===t?void 0:t.map((t,i)=>{var e;return(0,o.BX)(o.HY,{children:[0===i&&(0,o.tZ)(G.Z,{active:""===n,onClick:()=>r(""),externalCss:[D,""===n&&W],children:"T\xfcm Fotoğraflar (".concat((null==d?void 0:null===(e=d.photos)||void 0===e?void 0:e.length)||0,")")},"".concat(i,"-default")),(0,o.tZ)(G.Z,{active:t.id===n,onClick:()=>r(null==t?void 0:t.id),externalCss:[D,t.id===n&&W],children:"".concat(t.name," (").concat(t.count,")")},i)]})})},[d,n,r]);return(0,o.BX)(o.HY,{children:[(0,o.tZ)(a.Box,{mb:12,css:N,children:n?(null==d?void 0:null===(e=d.categories)||void 0===e?void 0:null===(i=e.find(t=>t.id===n))||void 0===i?void 0:i.name)||"":"Alb\xfcmler"}),(0,o.tZ)(a.Flex,{flexWrap:"wrap",children:c()})]})}),E=e(57404),K=e(8882),O=e(69497),R=e(63448),U=e(44594),J=e(62209),$=e(27616);let tt=(0,n.iv)("padding:20px 25px;box-shadow:0 1px 4px 0 rgba(0,0,0,0.12);border-radius:4px;",c._Q.tablet,"{padding:13px 25px;}"),ti=(0,n.iv)("border-left:0.7px solid ",c.wL.veryLightPink2,";height:28px;"),te=(0,n.iv)("font-size:21px;font-weight:600;",c._Q.tablet,"{font-size:14px;}"),to=(0,n.iv)("cursor:pointer;"),tl=(0,n.iv)("margin-right:16px;margin-bottom:-5px;display:flex;font-weight:bold;",c._Q.tablet,"{margin-bottom:0;transform:scale(0.8);margin-right:2px;}"),tn=(0,n.iv)("font-size:14px;padding-right:4px;",c._Q.tablet,"{font-size:12px;}"),tr=(0,n.iv)("font-size:25px;color:",c.wL.blue3,";&:hover{text-decoration:underline;cursor:pointer;}",c._Q.tablet,"{font-size:18px;}"),ta=(0,n.iv)("width:24px;height:24px;margin-left:5px;margin-bottom:1px;",c._Q.tablet,"{width:18px;height:18px;margin-bottom:3px;}");var td=l.memo(function(t){let{detail:i,providerMap:e,facility:n,accTypeMap:r,handlePhoneModalOpen:d,onClose:s}=t,p=(0,l.useMemo)(()=>{var t,i,e;return(null==n?void 0:null===(t=n.deals)||void 0===t?void 0:t.bestPrice)?null==n?void 0:null===(i=n.deals)||void 0===i?void 0:i.bestPrice:null==n?void 0:null===(e=n.deals)||void 0===e?void 0:e.heroPrice},[n]),v=(0,l.useCallback)(()=>{d(),(0,J.AB)((0,J.VZ)("call",(null==n?void 0:n.objectId)||0,p||0))},[n]),u=(0,l.useCallback)(()=>{var t;(0,$.NU)({facility:n,providerId:null==p?void 0:p.providerId,price:p||null,accTypeMap:r,providerMap:e,listPosition:1,page:"detay",providerPosition:1,version:null!==(t=null==p?void 0:p.version)&&void 0!==t?t:""}),(0,J.AB)((0,J.VZ)("click",(null==n?void 0:n.objectId)||0,p||0))},[p]),x=(0,l.useCallback)(()=>{(null==n?void 0:n.phoneNumber)!==""&&(null==p?void 0:p.providerId)===K.JB?v():(u(),(0,J.AB)((0,J.VZ)("click",(null==n?void 0:n.objectId)||0,p||0)))},[n,p]);return(0,o.BX)(a.Flex,{css:tt,alignItems:"center",justifyContent:"space-between",children:[(0,o.tZ)(a.Box,{css:te,children:i.title}),(0,o.BX)(a.Flex,{alignItems:"center",children:[p&&(0,o.BX)(a.Flex,{alignItems:"center",children:[(0,o.tZ)(a.Box,{css:tl,children:(0,o.tZ)(R.Z,{providerId:p.providerId,providerName:e[p.providerId]})}),(0,o.BX)(a.Flex,{alignItems:"baseline",children:[p.discountRate>0&&(0,o.BX)(F.Z,{linethrough:!0,color:c.wL.brownGrey2,css:tn,weight:600,children:[(0,O.ge)(Math.round(p.rawPrice))," TL"]}),(0,o.BX)(a.Flex,{alignItems:"center",css:tr,onClick:x,children:[(0,o.BX)(F.Z,{bold:!0,children:[(0,O.ge)((0,E.jW)(p))," TL"]}),(0,o.tZ)(U.Z,{css:ta})]})]})]}),(0,o.tZ)(a.Box,{mr:20,ml:20,css:ti}),(0,o.tZ)(a.Box,{css:to,children:(0,o.tZ)(h.Z,{width:24,height:24,onClick:s})})]})]})}),tc=e(82729),ts=e(56757),th=e(54178),tp=e(38068),tv=e(26146);function tu(){let t=(0,tc._)(["\n font-weight: bold;\n "]);return tu=function(){return t},t}let tx=(0,n.iv)("position:relative;cursor:pointer;margin-right:4px;&:nth-child(even){margin-right:0px !important;}"),tg=(0,n.iv)('position:relative;&::after{content:"";position:absolute;bottom:4px;opacity:0.8;width:100%;height:50%;display:block;background-image:linear-gradient(to bottom,rgba(0,0,0,0) 13%,',c.wL.black," 78%);}"),tm=t=>(0,n.iv)("object-fit:cover;",t==tv.H.Facility&&"height: 100%;",";",c._Q.tablet,"{height:109px;}"),tb=t=>(0,n.iv)("object-fit:cover;",t==tv.H.Facility?"height: 100%;":"height: 192px;",";",c._Q.tablet,"{height:109px;}"),tf=(t,i)=>(0,n.iv)("height:",i==tv.H.Facility?t?"100%":"400px!important":"392px",";object-fit:",t?"cover":"contain!important",";",c._Q.tablet,"{height:220px;}"),tw=t=>(0,n.iv)("width:100%;height:100%;display:grid;grid-template-columns:auto auto;grid-row-gap:4px;",t?"":"\n &:not(:first-of-type) {\n margin-left: 4px;\n }\n "),tZ=(0,n.iv)(c._Q.tablet,"{padding:0;}"),tB=(0,n.iv)("position:absolute;left:39px;bottom:30px;color:",c.wL.white3,";font-size:30px;font-weight:600;",c._Q.tablet,"{font-size:17px;}"),ty=(0,n.iv)("z-index:2;width:100%;height:25px;"),tk=(0,n.iv)("background-color:",c.wL.veryLightPink3,";width:1px;opacity:0.5;height:20px;margin:0 10px 0 8px;"),tC=(0,n.iv)("cursor:pointer;text-align:left;font-size:15px;font-weight:600;&:hover{div{display:block;}}"),tz=(0,n.iv)("width:252px;font-size:12px;margin-left:-106px;margin-top:6px;display:none;font-weight:400;");var tL=l.memo(function(t){var i,e,r,d,h,p,v,u,x,g;let{hasCategory:m,gallery:b,index:f,setCurrentIndex:Z,toggleModal:y,title:k,priceRating:C,kitchenType:z,catalogType:L}=t,_=(0,l.useMemo)(()=>{var t,i;return b&&(null==b?void 0:null===(t=b.photos)||void 0===t?void 0:t.length)>1?(0,ts.By)(null==b?void 0:null===(i=b.photos)||void 0===i?void 0:i.slice(1,5),3):[]},[b,f,m,Z,3]),X=(0,l.useMemo)(()=>{var t;return(0,o.tZ)(a.Box,{width:"100%",css:tw(m),children:null==b?void 0:null===(t=b.photos)||void 0===t?void 0:t.slice(1,5).map((t,i)=>{var e,l;return(0,o.tZ)(a.Box,{onClick:()=>Z(i+1),css:tx,children:(0,o.tZ)(s.h,{src:t.hasVideo?"https://img.youtube.com/vi/".concat(t.image,"/0.jpg"):(0,w.KH)(null==t?void 0:t.image,453,200),layout:"fill",css:tb(L),placeholder:"empty",priority:!0,objectFit:"cover",width:"100%",alt:"".concat((null==b?void 0:null===(l=b.photos)||void 0===l?void 0:null===(e=l[0])||void 0===e?void 0:e.title)||k).concat(i+1>0?" - G\xf6rsel ".concat(i+1):"")})},i)})},0)},[m,f]),Q=(0,l.useMemo)(()=>{var t;return!!z&&(null==z?void 0:z.length)>0&&(0,o.BX)(a.Box,{css:tC,children:[null===(t=z[0])||void 0===t?void 0:t.amenityDefaultName," ",(null==z?void 0:z.length)>1&&"+ ".concat(null==z?void 0:z.length),(0,o.tZ)(tp.Z,{externalCss:tz,children:(0,o.tZ)(a.Flex,{justifyContent:"space-between",children:(0,o.BX)(F.Z,{color:c.wL.black,children:["Bu restaurant men\xfcleri"," ",(0,o.tZ)("span",{css:(0,n.iv)(tu()),children:z.map(t=>null==t?void 0:t.amenityDefaultName).join(",")})," ","mutfak ",(null==z?void 0:z.length)>1?"t\xfcrlerinden":"t\xfcr\xfcnden"," oluşmaktadır."]})})})]})},[z]);return(0,o.tZ)(a.Flex,{css:tZ,onClick:y,children:(null==b?void 0:null===(i=b.photos)||void 0===i?void 0:i.length)>0?(0,o.BX)(o.HY,{children:[" ",(0,o.tZ)(a.Box,{width:1,onClick:()=>Z(0),css:[tx,tg],children:(0,o.tZ)(s.h,{src:_[0]&&(null===(e=_[0][0])||void 0===e?void 0:e.hasVideo)?"https://img.youtube.com/vi/".concat(null==b?void 0:null===(d=b.photos)||void 0===d?void 0:null===(r=d[0])||void 0===r?void 0:r.image,"/0.jpg"):(0,w.KH)(null==b?void 0:null===(p=b.photos)||void 0===p?void 0:null===(h=p[0])||void 0===h?void 0:h.image,690,404),layout:"fill",css:[tm(L),tf((null==b?void 0:null===(v=b.photos)||void 0===v?void 0:v.length)>1,L)],placeholder:"empty",priority:!0,objectFit:"cover",width:"100%",alt:(null==b?void 0:null===(x=b.photos)||void 0===x?void 0:null===(u=x[0])||void 0===u?void 0:u.title)||k})},0),(null==b?void 0:null===(g=b.photos)||void 0===g?void 0:g.length)>1&&(0,o.tZ)(a.Box,{width:1,children:X}),k&&(0,o.tZ)(o.HY,{children:!!C&&(0,o.tZ)(F.Z,{css:tB,children:(0,o.tZ)(a.Box,{pt:"13px",css:ty,children:(0,o.BX)(a.Flex,{alignItems:"center",children:[(0,o.tZ)(th.Z,{color:c.wL.white,rating:C}),(0,o.tZ)("div",{css:!!z&&(null==z?void 0:z.length)>0&&tk}),Q]})})})})]}):(0,o.tZ)(a.Box,{m:"20px auto",children:(0,o.tZ)(s.h,{src:"".concat(B.kq,"no-photo.svg"),layout:"fixed",width:112,height:112,alt:k})})})});let t_=(0,n.iv)("position:relative;height:252px;flex:1 0 420px;cursor:pointer;margin:0px 5px 10px 5px;max-width:calc(33% - 1em);",c._Q.tablet,"{height:119px;flex:1 0 212px;}"),tX=(0,n.iv)("object-fit:cover;border-radius:4px;box-shadow:0 1px 15px 0 rgba(0,0,0,0.3);"),tQ=(0,n.iv)("position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:2;"),tI=(0,n.iv)("position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);cursor:pointer;");var tH=l.memo(function(t){let{item:i,onClick:e}=t,[n,r]=(0,l.useState)(!0),d=(0,l.useCallback)(()=>{r(!0)},[]),c=(0,l.useCallback)(()=>{r(!1)},[]),h=(0,l.useCallback)(()=>(0,o.BX)(a.Box,{css:t_,onClick:e,children:[(0,o.tZ)(s.h,{src:(null==i?void 0:i.hasVideo)?"https://img.youtube.com/vi/".concat(null==i?void 0:i.image,"/0.jpg"):(0,w.KH)(null==i?void 0:i.image,500,270),layout:"fill",css:tX,placeholder:"empty",onLoadStart:d,onLoadingComplete:c}),(null==i?void 0:i.hasVideo)?(0,o.tZ)(a.Box,{css:tI,children:(0,o.tZ)(s.h,{src:"".concat(B.kq,"play-button.svg"),width:"45px",height:"45px",alt:"Play Button"})}):null,n&&(0,o.tZ)(a.Box,{css:tQ,children:(0,o.tZ)(Z.Z,{})})]}),[i,e,n]);return(0,o.tZ)(o.HY,{children:h()})});let tj=(0,n.iv)("position:relative;padding:0;"),tF=t=>(0,n.iv)(t?"position: fixed;\n overflow: auto;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 9999;\n background-color: rgba(0,0,0,0.4);":""),tS=(t,i,e)=>(0,n.iv)("position:relative;min-height:220px;background-color:",t?c.wL.black:c.wL.white,";",!t&&"\n ".concat(c._Q.tablet," {\n height: ").concat(i?"296px":"390px",";\n max-height: ").concat(i?"296px":"390px",";\n }\n\n ").concat(e?i?"height: 379px; max-height: 471px;":"height: 471px; max-height: 471px;":"height: 517px; max-height: 517px;")),tP=(0,n.iv)("min-height:180px;background-color:",c.wL.veryLightPink2,";"),tM=(0,n.iv)("position:absolute;cursor:pointer;bottom:15px;right:25px;background:",c.wL.transparentBlack,";padding:0 10px;height:27px;color:",c.wL.white,";font-size:12px;font-weight:500;line-height:25px;border-radius:4px;z-index:100;display:flex;align-items:center;"),tY=(0,n.iv)("position:absolute;cursor:pointer;top:20px;left:25px;color:",c.wL.white,";font-size:15px;font-weight:600;"),tT=(0,n.iv)("position:absolute;bottom:78px;right:25px;color:",c.wL.white,";font-size:16px;font-weight:600;& > span{font-weight:normal;}",c._Q.tablet,"{font-size:12px;}"),tV=(0,n.iv)("position:absolute;right:25px;top:20px;background:",c.wL.transparentBlack,";z-index:100;cursor:pointer;"),tA=(0,n.iv)("position:relative;max-height:100%;top:50%;transform:translateY(-50%);"),tG=(0,n.iv)("position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);"),tN=(0,n.iv)("position:fixed;left:0;top:0;width:98%;height:98%;z-index:9999;backface-visibility:hidden;left:50%;top:50%;transform:translate(-50%,-50%);",c._Q.tablet,"{width:90%;height:90%;}"),tD=(0,n.iv)("background:rgba(0,0,0,0.4);"),tW=(0,n.iv)("overflow:hidden;border-radius:4px;box-shadow:0 1px 15px 0 rgba(0,0,0,0.3);width:98%;height:98%;position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);background-color:",c.wL.white,";",c._Q.tablet,"{width:90%;height:90%;}"),tq=(0,n.iv)("padding:25px 20px;max-height:100%;overflow-y:auto;"),tE=t=>(0,n.iv)("color:",c.wL.white,";position:absolute;","left"===t?"bottom: 78px":"bottom: 25px",";","left"===t?"".concat(c._Q.tablet," {\n } left: 25px "):"right: 25px",";","left"===t?"".concat(c._Q.tablet," {\n font-size: 12px;\n }\n font-size: 18px;\n font-weight: 600"):"".concat(c._Q.tablet," {\n font-size: 11px;\n }\n font-size: 15px;\n font-weight: normal;\n "),";width:100%;"),tK=(0,n.iv)("border:solid 1px ",c.wL.white,";height:1px;position:absolute;bottom:63px;left:25px;right:25px;"),tO=(0,n.iv)("position:absolute;bottom:17px;right:115px;",c._Q.tablet,"{bottom:18px;right:90px;}"),tR=t=>(0,n.iv)(t?"":"\n position: absolute;\n width: 100%;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n "),tU=(0,n.iv)("position:absolute;cursor:pointer;bottom:0;left:0;background:",c.wL.transparentBlack,";padding:0 10px;height:27px;color:",c.wL.white,";font-size:12px;font-weight:500;line-height:25px;border-radius:4px;z-index:100;display:flex;align-items:center;");var tJ=l.memo(function(t){var i,e,n,p,v,u,x,g,m,f,w,Z,y,k,C,z,L,_,X,Q,S,Y;let{detail:T,gallery:V,priceRating:G,kitchenType:N,catalogType:D}=t,W=(0,M.i)().width1,te=P()(null==V?void 0:null===(n=V.photos)||void 0===n?void 0:null===(e=n[O])||void 0===e?void 0:e.createDate),to=(null==T?void 0:null===(p=T.locationTree)||void 0===p?void 0:p.replace("T\xfcrkiye >","").split(">"))||"",tl=(null==T?void 0:T.title)||(null==T?void 0:T.name),tn={city:(null!==(Q=null==to?void 0:to[0])&&void 0!==Q?Q:"").trim(),district:(null!==(S=null==to?void 0:to[1])&&void 0!==S?S:"").trim(),town:(null!==(Y=null==to?void 0:to[2])&&void 0!==Y?Y:"").trim()},tr=(0,l.useCallback)(t=>{R(t)},[V]),ta=()=>{var t;(null==V?void 0:null===(t=V.photos)||void 0===t?void 0:t.length)>0&&K(!0)},tc=(0,l.useMemo)(()=>{var t,i;if((null==V?void 0:null===(t=V.photos)||void 0===t?void 0:t.length)<=0)return;let e=t=>{var i,e;return null==V?void 0:null===(e=V.categories)||void 0===e?void 0:null===(i=e.find(i=>i.id===t))||void 0===i?void 0:i.name};return null==V?void 0:null===(i=V.photos)||void 0===i?void 0:i.map((t,i)=>{var l;return O===i||O===i+1||O===i-1||(0===O?i===(null==V?void 0:null===(l=V.photos)||void 0===l?void 0:l.length)-1:O===i-1)?(0,o.tZ)(I,{hasCategory:!0,position:O,item:t,index:i,isModalOpen:E,toggleModal:()=>ta(),categoryName:(null==t?void 0:t.categoryId)&&!(null==t?void 0:t.hasVideo)&&e(t.categoryId),galleryTitle:tl},i):(0,o.tZ)(o.HY,{})})},[V,O,E]),ts=(0,l.useMemo)(()=>{let t=null==V?void 0:V.photos;if(U){var i;t=null==V?void 0:null===(i=V.photos)||void 0===i?void 0:i.filter(t=>t.categoryId===U)}return null==t?void 0:t.map((t,i)=>{var e;let l=null==V?void 0:null===(e=V.photos)||void 0===e?void 0:e.findIndex(i=>i.image===t.image);return(0,o.tZ)(tH,{item:t,onClick:()=>[R(l),ta()]},i)})},[V,U]),th=(0,l.useCallback)(t=>{J(t),tt(!0)},[]),tp=(0,l.useCallback)(()=>{J(""),tt(!1)},[]);return(0,o.BX)(a.Flex,{flexDirection:["column-reverse","column-reverse","column-reverse","row"],children:[(0,o.BX)(H.Z,{show:$,containerStyle:tD,contentStyle:tW,children:[(0,o.tZ)(td,{accTypeMap:{},providerMap:{},detail:T,handlePhoneModalOpen:()=>{},onClose:tp}),(0,o.BX)(a.Box,{css:tq,children:[(0,o.tZ)(q,{gallery:V,selectedCategoryId:U,setSelectedCategoryId:J}),(0,o.tZ)(a.Flex,{mt:18,mb:30,flexWrap:"wrap",children:ts})]})]}),(0,o.tZ)(A,{onClick:th,gallery:V}),(0,o.BX)(d.Z,{externalCss:tj,children:[E&&(0,o.tZ)(a.Box,{css:tF(E),children:(0,o.tZ)(a.Box,{css:[tS(E,ti,V&&(null==V?void 0:null===(v=V.photos)||void 0===v?void 0:v.length)>1),(null==V?void 0:null===(u=V.photos)||void 0===u?void 0:u.length)===0&&tP,E&&tN],children:(null==V?void 0:null===(x=V.photos)||void 0===x?void 0:x.length)>0?(0,o.BX)(o.HY,{children:[(0,o.tZ)(r.lr,{swipeable:!0,showStatus:!1,selectedItem:O,renderArrowPrev:(t,i,e)=>{var l;return(null==V?void 0:null===(l=V.photos)||void 0===l?void 0:l.length)>1&&(0,o.tZ)(b,{onClick:t,title:e,position:"left"})},renderArrowNext:(t,i,e)=>{var l;return(null==V?void 0:null===(l=V.photos)||void 0===l?void 0:l.length)>1&&(0,o.tZ)(b,{onClick:t,title:e,position:"right"})},showThumbs:!1,infiniteLoop:!0,onChange:tr,showIndicators:!1,css:[tR(E),E&&tA],children:tc}),E&&(0,o.BX)(o.HY,{children:[(0,o.BX)(a.Flex,{alignItems:"center",css:tY,onClick:()=>[K(!1),tt(!0)],children:[(0,o.tZ)(j.Z,{}),(0,o.tZ)(a.Box,{ml:"5px",children:"Alb\xfcm"})]}),(0,o.BX)(a.Box,{css:tT,children:[null==V?void 0:null===(m=V.categories)||void 0===m?void 0:null===(g=m.find(t=>{var i,e;return t.id===(null==V?void 0:null===(e=V.photos)||void 0===e?void 0:null===(i=e[O])||void 0===i?void 0:i.categoryId)}))||void 0===g?void 0:g.name,"\xa0\xa0",(0,o.BX)("span",{children:[O+1,"/",null==V?void 0:null===(f=V.photos)||void 0===f?void 0:f.length]})]}),(0,o.tZ)(h.Z,{fill:c.wL.white,width:30,height:30,css:tV,onClick:()=>K(!1)}),(0,o.tZ)(F.Z,{align:"left",css:tE("left"),children:(null==V?void 0:null===(Z=V.photos)||void 0===Z?void 0:null===(w=Z[O])||void 0===w?void 0:w.title)||tl}),te.isValid()?(0,o.BX)(o.HY,{children:[(0,o.tZ)(a.Box,{css:tO,children:(0,o.tZ)(s.h,{src:"".concat(B.kq,"camera.svg"),layout:"fixed",width:W?18:24,height:W?18:24,alt:null==V?void 0:null===(k=V.photos)||void 0===k?void 0:null===(y=k[O])||void 0===y?void 0:y.title})}),(0,o.tZ)(F.Z,{capitalize:!0,align:"right",css:tE("right"),children:te.format("MMMM YYYY")||""})]}):null,(0,o.tZ)(a.Box,{css:tK})]})]}):(0,o.tZ)(a.Box,{css:tG,children:(0,o.tZ)(s.h,{src:"".concat(B.kq,"no-photo.svg"),layout:"fixed",width:112,height:112,alt:null==V?void 0:null===(z=V.photos)||void 0===z?void 0:null===(C=z[O])||void 0===C?void 0:C.title})})})}),!E&&(0,o.tZ)(tL,{title:tl,toggleModal:ta,gallery:V,hasCategory:ti,index:O,setCurrentIndex:R,priceRating:G,kitchenType:N,catalogType:D}),!E&&(null==V?void 0:null===(L=V.photos)||void 0===L?void 0:L.length)>0&&(0,o.BX)(a.Box,{onClick:()=>th(""),css:tM,children:["T\xfcm\xfcn\xfc g\xf6r (",(null==V?void 0:null===(_=V.photos)||void 0===_?void 0:_.length)||0," Fotoğraf)"]}),E&&T&&(0,o.BX)(a.Box,{css:tU,children:[tl," | ",tn.city+"/"+tn.district]}),E&&(0,o.BX)(a.Box,{css:tT,children:[O,"/",(null==V?void 0:null===(X=V.photos)||void 0===X?void 0:X.length)||0]}),E&&(0,o.tZ)(h.Z,{fill:c.wL.white,width:48,height:31,css:tV,onClick:()=>K(!1)})]})]})})},19151:function(t,i,e){e.d(i,{Z:function(){return _}});var o=e(35944),l=e(67294),n=e(22149),r=e(33463),a=e(86549),d=e(70917),c=e(66455),s=e(34665),h=e(24881);let p=(0,d.iv)("background-color:",s.wL.white,";width:330px;height:331px;border-radius:4px;border:solid 0.5px ",s.wL.veryLightPink3,";&:not(:last-child){margin-right:30px;}",s._Q.tablet,"{width:250px;height:242px;&:not(:last-child){margin-right:10px;}}&:hover{text-decoration:none;color:",s.wL.blue3,";box-shadow:0 2px 10px 0 rgba(0,0,0,0.23);div:last-child{color:",s.wL.blue3,";}}"),v=(0,d.iv)("border-radius:4px 4px 0 0;img{",s._Q.tablet,"{height:140px;}}",s._Q.tablet,"{width:250px;height:140px;}"),u=(0,d.iv)("white-space:normal;",s._Q.tablet,"{font-size:14px;}"),x=(0,d.iv)("font-size:12px;margin-bottom:5px;");var g=(0,l.memo)(function(t){let{Id:i,url:e,category:l,title:n,image:d,index:g,onClick:m}=t;return(0,o.tZ)(c.Box,{css:p,children:(0,o.BX)(a.Z,{href:e,disableDecoration:!0,title:n,onClick:()=>{m&&(null==m||m(n,g+1))},children:[(0,o.tZ)(h.Zb,{width:"330px",height:"186px",externalCss:v,children:(0,o.tZ)(h.Gl,{src:d,width:"100%",height:"186px",alt:n})}),(0,o.BX)(c.Box,{p:"15px",children:[(0,o.tZ)(r.Z,{css:x,align:"left",size:13,fontWeight:500,mb:"8px",letterSpacing:"0.93px",color:s.wL.brownGrey2,children:l||"Blog"}),(0,o.tZ)(r.Z,{css:u,align:"left",size:18,lineHeight:"21px",color:s.wL.black,letterSpacing:"0.29px",fontWeight:"bold",children:n})]})]})},i)},()=>!0),m=e(4284),b=e(27625),f=e(65586),w=e(69767),Z=e(2685),B=e(1092),y=e(26146);let k=(0,d.iv)("padding:30px 15px;overflow:hidden;background-color:",s.wL.paleGrey,";",s._Q.tablet,"{padding-left:40px;}"),C=(0,d.iv)("text-align:center;"),z=(0,d.iv)("justify-content:flex-end;margin-top:7px;"),L=(0,d.iv)(s._Q.tablet,"{font-size:18px;}");var _=(0,l.memo)(function(t){var i;if((null==t?void 0:null===(i=t.items)||void 0===i?void 0:i.length)==0)return null;let{items:e,sectionRef:r,catalogType:a}=t,d=(0,l.useCallback)((t,i)=>{a===y.H.City&&(0,B.AB)((0,B.nP)("Sizin İ\xe7in Hazırladıklarımız",t,i)),(a===y.H.Attraction||a===y.H.Place||a===y.H.Poi)&&(0,B.AB)((0,B.fZ)(t,i))},[]),s=(0,l.useCallback)(()=>{(0,B.AB)((0,B.nP)("Sizin İ\xe7in Hazırladıklarımız","T\xfcm\xfcn\xfc G\xf6r",0))},[]),h=(0,l.useMemo)(()=>e.map((t,i)=>{var e,l,n,r,a,c;return(0,o.tZ)(g,{Id:t.id,url:t.attributes.canonicalUrl||"".concat(w.Ey,"/blog/").concat(t.attributes.slug),category:null===(e=t.attributes.category.data)||void 0===e?void 0:e.attributes.name,title:t.attributes.title,image:(null==t?void 0:null===(c=t.attributes)||void 0===c?void 0:null===(a=c.media)||void 0===a?void 0:null===(r=a.data)||void 0===r?void 0:null===(n=r[0])||void 0===n?void 0:null===(l=n.attributes)||void 0===l?void 0:l.url)||Z.t0,index:i,onClick:d})}),[e]);return(0,o.BX)(n.Z,{ref:r,css:k,children:[(0,o.BX)(c.Flex,{mb:"25px",justifyContent:"space-between",children:[(0,o.tZ)(f.Z,{fontSize:24,fontWeight:"bold",content:"Sizin İ\xe7in Hazırladıklarımız",externalCss:L}),(0,o.tZ)(c.Box,{css:C,children:(0,o.tZ)(m.Z,{externalCss:z,href:"".concat(w.Ey,"/blog/"),onClick:s})})]}),(0,o.tZ)(b.Z,{children:h})]})})},28455:function(t,i,e){var o=e(35944),l=e(67294),n=e(33463),r=e(70917),a=e(66455),d=e(34665),c=e(22149),s=e(43519);i.Z=(0,l.memo)(function(t){let{detail:i,breadCrumbData:e}=t,l=(null==i?void 0:i.title)||(null==i?void 0:i.name);return(0,o.tZ)(a.Box,{css:[d.o4,u],children:(0,o.BX)(c.Z,{externalCss:[v,d.z1,m],children:[(0,o.tZ)(s.Z,{breadCrumbData:e}),(0,o.tZ)(a.Flex,{flexDirection:"column",css:x,children:(0,o.tZ)(a.Flex,{alignItems:"center",css:g,children:(0,o.tZ)(n.Z,{fontSize:18,externalCss:h,bold:!0,children:(0,o.tZ)("h1",{css:p,children:l})})})})]})})});let h=(0,r.iv)("margin:0 0 8px;display:flex;align-items:center;"),p=(0,r.iv)("margin:0;font-size:28px;font-weight:600;",d._Q.tablet,"{font-size:26px;}"),v=(0,r.iv)("padding:0 0 15px 0;width:100%;",d._Q.tablet,"{padding:0;}"),u=(0,r.iv)("padding:0px 15px;"),x=(0,r.iv)("padding-top:10px;"),g=(0,r.iv)("flex-flow:wrap;"),m=(0,r.iv)("overflow-y:initial;overflow-x:initial;")}}]);