"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6169,4145],{76442:function(t,e,l){l.d(e,{Z:function(){return k}});var n=l(35944),i=l(67294),r=l(70917),o=l(66455),a=l(34665),s=i.memo(function(t){return(0,n.tZ)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t.size||11,height:t.size||11,viewBox:"0 0 512 512","aria-labelledby":"Saatler",...t,children:(0,n.tZ)("path",{fill:t.fill||a.wL.blue3,d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm61.8-104.4l-84.9-61.7c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v141.7l66.8 48.6c5.4 3.9 6.5 11.4 2.6 16.8L334.6 349c-3.9 5.3-11.4 6.5-16.8 2.6z"})})}),c=l(27734),u=l(33463);let d=["Pazartesi","Salı","\xc7arşamba","Perşembe","Cuma","Cumartesi","Pazar"],v=(0,r.iv)("min-height:30px;margin-right:10px;"),h=(0,r.iv)("color:",a.wL.freshGreen,";"),p=(0,r.iv)("color:",a.wL.paleRed,";"),f=(0,r.iv)("color:",a.wL.brownGrey2,";"),g=(0,r.iv)("color:",a.wL.black,";font-weight:bold;"),x=(0,r.iv)("position:relative;"),m=(0,r.iv)("transition:all 0.3s ease-in-out;transform:translate(0,1px);"),w=(0,r.iv)("transition:all 0.3s ease-in-out;transform:translate(0,-2px) rotate(180deg) !important;"),Z=(0,r.iv)("color:",a.wL.brownGrey2,";width:100%;padding:0 12px;border-spacing:0 10px;"),y=(0,r.iv)("position:absolute;background:",a.wL.white,";z-index:3;overflow:scroll;width:224px;@media (min-width:1025px){max-height:136px;}",a._Q.tablet,"{max-height:70px;}"),b=(0,r.iv)("height:30px;"),B=(0,r.iv)("width:60px;"),C=(0,r.iv)("width:120px;"),L=(0,r.iv)("width:20px;");var k=function(t){let{data:e,customFontSize:l,slug:r}=t,k=(0,i.useRef)(null),[S,I]=(0,i.useState)(!1),A=new Date,P=A.getDay()+1,z=new Date(A.getTime()),M=new Date(A.getTime()),[D,R]=(0,i.useState)([]);(0,i.useEffect)(()=>{let t=e.filter(function(t){return parseInt(t.value,10)===P});if(t&&R(t),null==t?void 0:t.length){var l,n,i;z.setHours(parseInt(t[0].startAt.split(":")[0],10)),z.setMinutes(parseInt(t[0].startAt.split(":")[1],10)),M.setHours(parseInt(t[0].endAt.split(":")[0],10)),M.setMinutes(parseInt(t[0].endAt.split(":")[1])),0===parseInt(null===(i=t[0])||void 0===i?void 0:null===(n=i.endAt)||void 0===n?void 0:null===(l=n.split(":")[0])||void 0===l?void 0:l.charAt(0),10)&&M.setDate(M.getDate()+1)}},[e]);let N=(0,i.useCallback)(()=>z.getTime()A.getTime(),[r]),T=(0,i.useMemo)(()=>(0,n.tZ)("table",{css:[Z,a.zp],children:(0,n.tZ)("tbody",{children:e.map((t,e)=>(0,n.BX)("tr",{css:parseInt(t.value,10)===P&&g,children:[(0,n.BX)("td",{children:[d[parseInt(t.value,10)-1]," "]}),(0,n.tZ)("td",{children:t.startAt}),(0,n.BX)("td",{children:[t.endAt," "]})]},e))})}),[e]),X=null!=l?l:15;return D.length?(0,n.BX)(o.Box,{ref:[k,v],children:[(0,n.BX)(o.Flex,{alignItems:"center",justifyContent:"start",mt:"5px",css:[a.Rx],onClick:()=>I(!S),children:[(0,n.tZ)(o.Box,{css:[b],children:(0,n.tZ)(s,{})}),(0,n.tZ)(o.Box,{css:[N()?h:p,b,B],pl:"6px",pr:"6px",children:(0,n.tZ)(u.Z,{size:X,weight:"600",children:N()?"A\xe7ık":"Kapalı"})}),(0,n.tZ)(o.Box,{css:[f,b],children:"•"}),(0,n.tZ)(o.Box,{css:[f,b,C],pl:"6px",children:(0,n.tZ)(u.Z,{size:X,children:N()?"Kapanış: "+D[0].endAt:"A\xe7ılış: "+D[0].startAt})}),(0,n.tZ)(o.Box,{css:[x,b,L],children:(0,n.tZ)(o.Box,{css:[m,S&&w],children:(0,n.tZ)(c.Z,{fill:a.wL.black})})})]}),S&&(0,n.tZ)(o.Box,{css:y,children:T})]}):(0,n.tZ)(o.Box,{ref:[k,v],children:(0,n.BX)(o.Flex,{alignItems:"center",justifyContent:"start",css:[a.Rx],children:[(0,n.tZ)(s,{}),(0,n.tZ)(o.Box,{css:[N()?h:p],pl:"6px",pr:"6px",children:(0,n.tZ)(u.Z,{size:X,weight:"600",children:"\xc7alışma saatleri bilinmiyor"})})]})})}},80332:function(t,e,l){var n=l(35944),i=l(67294);e.Z=i.memo(function(t){let{width:e,height:l,color:i="none",...r}=t;return(0,n.tZ)("svg",{width:null!=e?e:"15px",height:null!=l?l:"15px",viewBox:"0 0 15 15",version:"1.1","aria-label":"Info",xmlns:"http://www.w3.org/2000/svg",...r,children:(0,n.tZ)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,n.tZ)("g",{transform:"translate(-828.000000, -274.000000)",children:(0,n.tZ)("g",{transform:"translate(625.000000, 272.000000)",children:(0,n.BX)("g",{transform:"translate(203.000000, 2.000000)",children:[(0,n.tZ)("polygon",{id:"Path",points:"0 0 15 0 15 15 0 15"}),(0,n.tZ)("path",{d:"M6.875,4.375 L8.125,4.375 L8.125,5.625 L6.875,5.625 L6.875,4.375 Z M6.875,6.875 L8.125,6.875 L8.125,10.625 L6.875,10.625 L6.875,6.875 Z M7.5,1.25 C4.05,1.25 1.25,4.05 1.25,7.5 C1.25,10.95 4.05,13.75 7.5,13.75 C10.95,13.75 13.75,10.95 13.75,7.5 C13.75,4.05 10.95,1.25 7.5,1.25 Z M7.5,12.5 C4.74375,12.5 2.5,10.25625 2.5,7.5 C2.5,4.74375 4.74375,2.5 7.5,2.5 C10.25625,2.5 12.5,4.74375 12.5,7.5 C12.5,10.25625 10.25625,12.5 7.5,12.5 Z",id:"Shape",fill:i,fillRule:"nonzero"})]})})})})})})},94145:function(t,e,l){l.d(e,{k:function(){return i},u:function(){return s}});var n,i,r=l(67294),o=l(71842),a=l(8882);function s(t){let{initialList:e,activeFilters:l,initialData:n,limit:i,listType:s,initialQueryData:c}=t,[u,d]=(0,r.useState)(!1),[v,h]=(0,r.useState)(!1),[p,f]=(0,r.useState)(!1),[g,x]=(0,r.useState)(e||[]),m=t=>{if(!t.error){let e=t.body;e&&(x(t=>({totalCount:e.totalCount,catalogs:v?null==e?void 0:e.catalogs:[...t.catalogs,...null==e?void 0:e.catalogs]})),h(!1))}d(!1),f(!1)},w=t=>{(0,a.FD)(t).then(m)},Z=t=>{(0,a.h4)(t).then(m)},y=t=>{(0,a.vn)(t).then(m)},b=(t,e)=>{d(!0),e&&f(!0);let[r]=(0,o.gk)(l,n,!0,i,t);0==s?w(r):1==s?Z(r):y(r)};return(0,r.useEffect)(()=>{v&&c!=l&&b(1,!0)},[v]),{fullLoading:p,listItems:g,loading:u,onClickPagination:t=>{l&&n&&b(t)},setFilterChanged:h}}(n=i||(i={}))[n.Activity=0]="Activity",n[n.Place=1]="Place",n[n.Poi=2]="Poi"},71842:function(t,e,l){l.d(e,{VJ:function(){return a},gk:function(){return o},w0:function(){return r}});var n=l(54623),i=l(56757);let r=(t,e)=>{let l=(0,n.QK)(t),r=e?l?[{flsg:"boundary",fid:11,v:JSON.stringify({Latitude:t.lat,Longitude:t.lng,Distance:10})}]:[...e.flsp]:[],o=(0,i.vM)(t.filters,"typeId"),a="?";for(let t in o)if(o.hasOwnProperty(t)){var s,c,u;let{defTypeId:e}=(0,n.ju)(parseInt(t,10)),l=o[t],i={},d=[],v=[];null==l||l.map(t=>{"fiyat"===t.slug?v.push({MinPrice:"".concat(t.value[0]),MaxPrice:"".concat(t.value[1])}):d.push(t.id)}),i=(null===(s=l[0])||void 0===s?void 0:s.slug)==="fiyat"?{flsg:null===(c=l[0])||void 0===c?void 0:c.slug,fid:e,v:JSON.stringify(v)}:{flsg:null===(u=l[0])||void 0===u?void 0:u.slug,fid:e,v:d.join(",")},a+="&".concat(l[0].slug,"=").concat(i.v),r.push(i)}return l&&(a+="&lat=".concat(t.lat,"&lng=").concat(t.lng)),(null==t?void 0:t.sort)&&(a+="&sort=".concat(null==t?void 0:t.sort.value)),[r,a=(a=a.length>0&&"?"!==a?"".concat(a):"/").replace(/\?&/g,"?")]};function o(t,e,l,n,i){var o,a,s,c,u;let[d,v]=r(t,e);return[{campaign:0,drty:(null==t?void 0:null===(o=t.filters)||void 0===o?void 0:o.length)>0?"true":"false",dvc:"Desktop",fls:JSON.stringify({plim:n,poff:i?i-1:0,flsp:d}),queryParams:JSON.stringify({cin:null==t?void 0:t.checkin,cout:null==t?void 0:t.checkout,act:null==t?void 0:t.adultCount,cas:null==t?void 0:t.children}),slforg:(null==e?void 0:e.slforg)||"",slg:(null==e?void 0:e.Slug)||"",src:l?"Paid":"Unpaid",srcloc:(null==e?void 0:e.srcloc)||"",srt:(null==t?void 0:null===(a=t.sort)||void 0===a?void 0:a.value)||e.Sort,stid:e.ListTypeId,typ:"Facility",issb:null===(s=null==e?void 0:e.IsShowSearchBox)||void 0===s||s,irb:null===(c=null==e?void 0:e.IsRunBiddings)||void 0===c||c,irnb:null===(u=null==e?void 0:e.IsRunNearBy)||void 0===u||u},v]}function a(t){if(!t||(null==t?void 0:t.length)==0)return[];let e=[];return t&&(null==t?void 0:t.length)>0&&t.map((t,l)=>{e=[...e,{name:t.name,ref:t.slug}]}),e}}}]);