"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2786],{35109:function(e,t,i){var n=i(35944),l=i(70917),o=i(66455),r=i(34665),a=i(94746),c=i(67294);let s=(0,l.iv)("position:relative;border:0.7px solid ",r.wL.veryLightPink2,";background-color:",r.wL.white,";display:flex;align-items:center;border-radius:4px;"),d=(e,t,i)=>(0,l.iv)("border:0.7px solid\n ",void 0===e?i?r.wL.blue3:r.wL.brownGrey:t?r.wL.algaeGreen:r.wL.scarlet,";"),u=e=>(0,l.iv)("color:",void 0===e?r.wL.brownGrey:r.wL.black,";"),p=(0,l.iv)("width:100%;border:none;background:none;padding:7px 30px 7px 12px;cursor:pointer;-webkit-appearance:none;position:relative;user-select:none;outline:none;z-index:2;font-weight:500;color:",r.wL.black,";font-size:12px;letter-spacing:0.5px;",r.I8,";"),h=(0,l.iv)("position:absolute;right:7px;z-index:1;");t.Z=function(e){let{placeholder:t,options:i,onSelect:l,defaultValue:r,customWrapper:g,customSelectInput:v,customSelectIcon:m,customOptionCss:x,allowSelectablePlaceholder:f,required:b,isValid:w,...y}=e,[Z,k]=(0,c.useState)(!1);return(0,n.BX)(o.Box,{css:[s,b&&d(e.value,w,Z),g],children:[(0,n.BX)("select",{css:[p,b&&u(e.value),v],defaultValue:r||"placeholder",onChange:l,onFocus:e=>k(!0),onBlur:e=>k(!1),...y,children:[t&&(0,n.tZ)("option",{value:"placeholder",disabled:!f,children:t}),i.length>0&&i.map((e,t)=>{let{Label:i,Value:l,Disabled:o}=e;return(0,n.tZ)("option",{value:l,disabled:o,css:x,children:i},t)})]}),(0,n.tZ)(o.Flex,{css:[h,m],children:(0,n.tZ)(a.Z,{})})]})}},46002:function(e,t,i){var n=i(35944),l=i(70917),o=i(67294);t.Z=e=>{let{rating:t,id:i,...l}=e,a=o.useMemo(()=>"".concat(100*t/5-100,"%"),[t]),c=o.useMemo(()=>"url(#mask_".concat(i,")"),[i]);return(0,n.tZ)("div",{css:r,...l,children:(0,n.BX)("svg",{xmlns:"http://www.w3.org/2000/svg",id:i,children:[(0,n.tZ)("defs",{children:(0,n.tZ)("mask",{id:"mask_".concat(i),children:(0,n.tZ)("rect",{width:"100%",height:"100%",x:a,y:"0",fill:"#fff",rx:"5",ry:"5"})})}),(0,n.tZ)("g",{transform:"translate(-272 -4578) translate(272 4557) translate(0 21)",children:(0,n.tZ)("rect",{fill:"#E3E3E3",width:"100%",height:"100%",rx:"5",ry:"5"})}),(0,n.tZ)("g",{mask:c,children:(0,n.tZ)("rect",{fill:"#1647BA",width:"100%",height:"100%",rx:"5",ry:"5"})})]})})};let r=(0,l.iv)("height:10px;margin-bottom:12px;width:100%;& >svg{height:100%;width:100%;}")},14014:function(e,t,i){var n=i(35944),l=i(70917),o=i(34665);let r={small:[16,8,22],normal:[12,20,22],lg:[22,11,19.5]},a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal",[i,n,a]=r[t];return(0,l.iv)("padding:",n,"px ",i,"px;background-color:",o.wL.white,";border-radius:",a,"px;border:solid 1px ",e?o.wL.black:o.wL.veryLightPink2,";font-weight:",e?"600":"400",";display:inline-flex;text-align:center;flex-direction:column;align-items:center;justify-content:space-between;cursor:pointer;font-size:14px;letter-spacing:0.5px;&:hover{border-color:",o.wL.black,";text-shadow:0.25px 0px 0.1px,-0.25px 0px 0.1px;}&::after{content:attr(datatext);height:0;visibility:hidden;overflow:hidden;user-select:none;pointer-events:none;font-weight:600;@media speech{display:none;}}")};t.Z=function(e){let{children:t,active:i,size:l,externalCss:o,...r}=e;return(0,n.tZ)("div",{css:[a(i,l),o],datatext:t,title:t,...r,children:t})}},81819:function(e,t,i){var n=i(35944),l=i(67294),o=i(70917),r=i(97126),a=i(14014),c=i(86549),s=i(1092);let d=(0,o.iv)("padding:8px 15px;&:not(:last-child){margin-right:8px;}"),u=(0,o.iv)("padding:0 15px 0 0;&::-webkit-scrollbar{display:none;}");t.Z=(0,l.memo)(function(e){let{items:t,onChange:i,hasRedirect:o,externalCss:p,activeItemName:h,isPoiListing:g}=e,[v,m]=(0,l.useState)(h||""),x=(0,l.useMemo)(()=>o?t.map((e,t)=>{let{name:l,ref:o}=e;return(0,n.tZ)(c.Z,{href:"/".concat(o),title:l,onClick:()=>{i&&i(o),g&&(0,s.AB)((0,s.IO)(l))},children:(0,n.tZ)(a.Z,{active:l===v,externalCss:d,children:l},t)},t)}):t.map((e,t)=>{let{name:l,ref:o}=e;return(0,n.tZ)(a.Z,{active:l===v,onClick:()=>{g&&(0,s.AB)((0,s.IO)(l)),m(l),i&&i(o)},externalCss:d,children:l},t)}),[t,v]);return(0,n.tZ)(r.Z,{css:[u,p],hideScrollLine:!0,noWrap:!0,children:x})})},11301:function(e,t,i){i.d(t,{A:function(){return r},m:function(){return o}});var n=i(35944),l=i(67294);function o(e){let{children:t,setActiveIndex:i,closeIcon:o,onClickTabs:r}=e,a=e=>{i(e.currentTarget.id),r&&r(e.currentTarget.id)};return(0,n.BX)(n.HY,{children:[null==t?void 0:t.map((e,t)=>(0,l.cloneElement)(e,{key:t,onClick:a})),o]})}function r(e){let{children:t,activeIndex:i}=e;return(0,n.tZ)(n.HY,{children:t.map(e=>e.props.id===i&&e)})}},45323:function(e,t,i){i.d(t,{Z:function(){return w}});var n=i(35944),l=i(67294),o=i(66455),r=i(34665),a=i(70917),c=i(33463),s=i(38068),d=i(31897),u=i(16956);let p=(0,a.iv)("font-size:11px;line-height:16px;"),h=(0,a.iv)("left:auto;margin-left:10px;");var g=l.memo(function(e){let{passwordTooltipKey:t}=e,[i,r]=(0,l.useState)((0,d.hk)(t)),c=(0,l.useCallback)(e=>{r(!1),(0,d.d8)(t,"false",1)},[]);return i?(0,n.tZ)(s.Z,{externalCss:h,children:(0,n.BX)(o.Flex,{justifyContent:"space-between",css:p,children:["Başka sitede kullandığınız bir şifreyi veya evcil bir hayvanınızın adı gibi \xe7ok bariz bir kelimeyi kullanmayın.",(0,n.tZ)(u.Z,{height:16,width:27,css:(0,a.iv)("margin: -8px 0px 0px 25px; cursor:pointer;"),onClick:c})]})}):null});let v=(e,t,i,n)=>(0,a.iv)("height:48px;",r._Q.tablet,"{height:40px;}border-radius:4px;border:solid 1px\n ",n===e?i?r.wL.blue3:r.wL.brownGrey:t?r.wL.algaeGreen:r.wL.scarlet,";margin-bottom:6px;margin-top:12px;padding:0 15px;position:relative;"),m=(e,t,i,n,l)=>(0,a.iv)("position:absolute;margin-top:",t?"-45px":"0",";background-color:",r.wL.white,";padding:0 5px 0 5px;margin-left:-5px;height:17px;font-size:12px;color:",l===e?n?r.wL.blue3:r.wL.brownGrey:i?r.wL.algaeGreen:r.wL.scarlet,";transition:margin 0.1s ease-in-out;"),x=(0,a.iv)("transition:margin 0.1s ease-in-out;height:48px;width:calc(100% - 45px);font-size:12px;padding-left:0px;margin-left:0;color:",r.wL.black,';letter-spacing:0.5px;background-color:transparent;border:none;input[type="text"]:disabled{color:',r.wL.black,';}input[type="password"]:disabled{color:',r.wL.black,";}::placeholder{font-weight:normal;color:",r.wL.black,";}&:focus{outline:none;}&:disabled{color:",r.wL.black,";}",r.I8),f=(0,a.iv)("cursor:pointer;position:absolute;right:15px;");var b=function(e){var t;let[i,a]=l.useState(!1),s=l.useRef(null),[d,u]=l.useState(!1),p=e.value||"",h=""!==e.label,b=d?"text":null!==(t=e.inputType)&&void 0!==t?t:"text",w=(0,l.useMemo)(()=>{var t;return null!==(t=e.value)&&void 0!==t?t:""},[]),y=(0,l.useCallback)(()=>{u(e=>!e)},[]);return(0,n.BX)(n.HY,{children:[(0,n.BX)(o.Flex,{css:[v(e.value,e.valid,i,w),e.containerStyle],flexDirection:"column",justifyContent:"center",onClick:()=>s.current&&s.current.focus(),children:[e.label?(0,n.tZ)("div",{css:[m(e.value,""!==p&&h||i,e.valid,i,w),e.labelStyle],children:e.label}):null,(0,n.tZ)("input",{readOnly:e.disabled,pattern:e.pattern,type:b,ref:s,css:[x,e.inputStyle],placeholder:e.placeholder,value:p,onFocus:t=>[e.onFocus&&e.onFocus(t),a(!0)],onBlur:e=>a(!1),onKeyPress:e.onKeyPress,onKeyDown:e.onKeyDown,onChange:e.onChange}),"password"===e.inputType&&(0,n.tZ)(c.Z,{onClick:y,size:12,color:r.wL.brownGrey3,css:f,children:d?"Gizle":"G\xf6ster"})]}),e.validationMessage&&!e.valid&&(0,n.tZ)(c.Z,{size:"11",mb:"30px",color:r.wL.scarlet,children:e.validationMessage}),"password"===e.inputType&&e.passwordTooltipKey&&(0,n.tZ)(g,{passwordTooltipKey:e.passwordTooltipKey})]})},w=function(e){let[t,i]=l.useState(!0),o=l.useRef(!0),r=l.useCallback(i=>{e.onChange&&e.onChange(i,t)},[e.onChange,t]);function a(t){let i=!1,n=!0,l=!0,o=!0,r=!0;if(e.validation){let a=e.validation;a.required&&(n=void 0!==t&&(null==t?void 0:t.length)>0),a.max&&a.max>0&&(o=void 0!==t&&(null==t?void 0:t.length)<=a.max),a.min&&a.min>0&&(l=void 0!==t&&(null==t?void 0:t.length)>=a.min),a.regex&&(r=void 0===t||a.regex.test(t)),i=n&&o&&l&&r}else i=!0;return i}return(0,l.useEffect)(()=>{o.current?o.current=!1:i(a(e.value))},[e.value,o]),(0,l.useEffect)(()=>{e.showError&&i(a(e.value))},[e.showError]),(0,n.tZ)(b,{disabled:e.disabled,placeholder:e.placeholder,label:e.label,containerStyle:e.containerStyle,pattern:e.pattern,onChange:r,onFocus:e.onFocus,onKeyPress:e.onKeyPress,onKeyDown:e.onKeyDown,inputStyle:e.style,labelStyle:e.labelStyle,value:e.value,valid:t,inputType:e.inputType,validationMessage:e.validationMessage,passwordTooltipKey:e.passwordTooltipKey})}},51776:function(e,t,i){var n=i(35944),l=i(67294),o=i(57404);t.Z=l.memo(function(e){let{automaticPlay:t}=e;return l.useEffect(()=>{let i="https://www.youtube.com/iframe_api";function n(e){t&&e.target.playVideo()}if(window.onYouTubeIframeAPIReady=function(){window.player=new YT.Player("player-"+e.videoId,{videoId:e.videoId,playerVars:{playsinline:1},events:{onReady:n}})},(0,o.OP)(i))window.onYouTubeIframeAPIReady();else{let e=document.createElement("script");e.src=i;let t=document.getElementsByTagName("script")[0];t&&t.parentNode&&t.parentNode.insertBefore(e,t)}},[]),(0,n.tZ)("div",{children:(0,n.tZ)("div",{id:"player-".concat(e.videoId),css:e.videoStyle})})})},52642:function(e,t,i){i.d(t,{Z:function(){return v}});var n=i(35944),l=i(70917),o=i(66455),r=i(67294),a=i(33463),c=i(78707),s=i(34665),d=i(69767),u=function(e){let{amenity:t,...i}=e,l=r.useMemo(()=>(0,n.tZ)(c.h,{width:12,height:14,src:"".concat(d.kq,"amenity-icons/group-19-copy-4")}),[]);return(0,n.tZ)("li",{css:p,...i,children:(0,n.BX)(o.Flex,{justifyContent:"space-center",children:[(0,n.tZ)(a.Z,{fontSize:14,css:h,children:null==t?void 0:t.amenityDefaultName}),t.isPaid&&l]})})};let p=(0,l.iv)("margin-top:7px;",s._Q.tablet,"{margin-top:5px;}"),h=(0,l.iv)(s._Q.tablet,"{font-size:12px;}");var g=i(76472),v=function(e){let{subgroup:t,...i}=e,l=r.useMemo(()=>t.amenities.map((e,t)=>(0,n.tZ)(u,{amenity:e},t)),[t]),a=r.useCallback(e=>{let t="room-service-24-px.svg",i=g.q[e];return i&&(t=i),(0,n.tZ)(c.h,{width:15,height:15,src:"".concat(d.kq,"amenity-icons/").concat(t),alt:e})},[]);return(0,n.BX)(o.Box,{...i,css:m,children:[(0,n.BX)(o.Flex,{alignItems:"center",children:[a(t.groupName),(0,n.tZ)("h4",{css:f,children:t.groupName})]}),(0,n.tZ)("ul",{css:x,children:l})]})};let m=(0,l.iv)("margin-top:4px;width:33.333%;padding:5px;&& img{vertical-align:text-bottom;}&& div{display:-webkit-box;}"),x=(0,l.iv)("margin-top:8px;margin-bottom:8px;list-style:none;padding-left:1.5em;"),f=(0,l.iv)("margin:0;margin-left:7px;font-size:14px;font-weight:600;",s._Q.tablet,"{font-size:12px;}")},76472:function(e,t,i){i.d(t,{L:function(){return l},q:function(){return n}});let n={"Genel Tesis \xd6zellikleri":"room-service-24-px-1-copy.svg","Yeme - İ\xe7me":"restaurant-24-px-1-copy.svg","Plaj ve Havuz":"group-72-copy.svg",Aktiviteler:"group-75-copy.svg","\xc7ocuklara \xd6zel":"child-friendly-24-px-1.svg","Yatak Odası":"single-bed-24-px-1-copy.svg",Banyo:"bathtub-24-px.svg",Eğlence:"toys-24-px-copy.svg",Diğer:"done-24-px-copy.svg"},l=e=>{switch(e){case"true":return"Evet";case"false":return"Hayır";default:return e}}},31238:function(e,t,i){i.d(t,{Z:function(){return ep}});var n=i(35944),l=i(70917),o=i(66455),r=i(78707),a=i(96044),c=i(81819),s=i(84657),d=i(16956),u=i(33463),p=i(11526),h=i(69767),g=i(26146),v=i(37935),m=i(33655),x=i(56380),f=i(27484),b=i.n(f),w=i(67294),y=i(31897);let Z=e=>{var t,i;let[n,l]=(0,w.useState)([]),[o,r]=(0,w.useState)(e.ratingGroups?e.ratingGroups:[]),[a,c]=(0,w.useState)(),[s,d]=(0,w.useState)(!1),{userPersonal:u,userToken:h,setUserPersonal:f}=(0,w.useContext)(p.S);(0,w.useEffect)(()=>{if(e.fetchInitialData){d(!0);let t="Facility";switch(e.catalogType){case g.H.Poi:case g.H.Place:case g.H.Attraction:t="POI";break;case g.H.Villa:t="Villa"}Promise.all([(0,m.wS)({filter:["ObjectType/Name eq '".concat(t,"'")]}),(0,m.$T)()]).then(e=>{var t,i,n,o,a,c,s,d;200===e[0].status&&!e[0].error&&(null===(i=e[0])||void 0===i?void 0:null===(t=i.body)||void 0===t?void 0:t.value)&&Array.isArray(null===(o=e[0])||void 0===o?void 0:null===(n=o.body)||void 0===n?void 0:n.value)&&r(e[0].body.value.map(e=>({title:e.GroupName,point:0,ref:e}))),200===e[1].status&&!e[1].error&&(null===(c=e[1])||void 0===c?void 0:null===(a=c.body)||void 0===a?void 0:a.value)&&Array.isArray(null===(d=e[1])||void 0===d?void 0:null===(s=d.body)||void 0===s?void 0:s.value)&&l(e[1].body.value.map(e=>({name:e.Name,ref:e})))}).catch(()=>{(0,v.I0)(u.refreshToken).then(e=>e.json()).then(e=>{if(e.success){var t,i,n;(0,y.d8)("phnxUserToken",null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.access_token,7),f({...u,refreshToken:null==e?void 0:null===(i=e.data)||void 0===i?void 0:i.refresh_token}),(0,m.li)(null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.access_token)}})}).finally(()=>{d(!1)})}},[e.fetchInitialData]);let Z=(0,w.useCallback)(()=>{var t,i,n,l,o,r;return(0,x.Su)({dvc:"desktop",fls:JSON.stringify({plim:6,poff:0,flsp:[{fid:11,flsg:"boundary",v:JSON.stringify({Latitude:null===(t=e.detail)||void 0===t?void 0:t.latitude,Longitude:null===(i=e.detail)||void 0===i?void 0:i.longitude,Distance:10})}]}),poolData:"",queryParams:JSON.stringify({cin:null===(n=e.defaultParams)||void 0===n?void 0:n.checkIn,cout:null===(l=e.defaultParams)||void 0===l?void 0:l.checkOut,act:null===(o=e.defaultParams)||void 0===o?void 0:o.adultCount,cas:null===(r=e.defaultParams)||void 0===r?void 0:r.childAges})},!1).then(e=>{if(200===e.status){var t;c(null===(t=e.body)||void 0===t?void 0:t.catalogs)}})},[null===(t=e.detail)||void 0===t?void 0:t.latitude,null===(i=e.detail)||void 0===i?void 0:i.longitude]),k=(0,w.useCallback)((t,i)=>{let n={UserId:null==u?void 0:u.userId,ObjectId:e.objectId,Ratings:t.selectedRatingGroups,TravelPurpose:t.selectedTravelPurpose,CommentText:t.comment,Summary:t.commentTitle,AccomondationDate:t.accomondationDate?b()(t.accomondationDate.split("-").reverse().join("-")).add(1,"day").toDate():b()().toDate()};d(!0);let l="facility";switch(e.catalogType){case g.H.Poi:l="poi";break;case g.H.Place:l="place";break;case g.H.Attraction:l="attraction";break;case g.H.Villa:l="villa"}(0,m.Yr)(n,null!=i?i:h,l).then(()=>{t.getNearestLocations?Z().finally(()=>{d(!1)}):d(!1)}).catch(()=>{(0,v.I0)(u.refreshToken).then(e=>e.json()).then(e=>{if(e.success){var i,n,l;(0,y.d8)("phnxUserToken",null==e?void 0:null===(i=e.data)||void 0===i?void 0:i.access_token,7),f({...u,refreshToken:null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.refresh_token}),k(t,null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.access_token)}})})},[h,u,Z]);return{travelPurposes:n,ratingGroups:o,isLoading:s,setIsLoading:d,sendSubmitRequest:k,commentableFacilities:a}};var k=i(10008),L=i(22149),B=i(94019),z=i(34665);let C=(0,l.iv)("position:relative;"),T=(0,l.iv)("position:absolute;padding:0 5px 0 5px;margin-left:-5px;top:13px;left:15px;"),S=(0,l.iv)("width:100%;height:80px;outline:none;border:0.7px solid ",z.wL.veryLightPink4,";resize:none;padding:13px 15px;font-size:12px;");var X=function(e){let{label:t,setValue:i,value:l,maxLength:r}=e,a=null!=r?r:2e3,c=(0,w.useRef)(null);return(0,w.useEffect)(()=>{(null==l?void 0:l.length)>a&&i(l.substring(0,a))},[l]),(0,n.BX)(o.Box,{css:C,children:[0==l.length&&(0,n.tZ)(u.Z,{onClick:()=>{var e;null==c||null===(e=c.current)||void 0===e||e.focus()},size:12,color:z.wL.brownGrey,css:T,children:t}),(0,n.tZ)("textarea",{ref:c,onChange:e=>{i(e.target.value)},maxLength:a,value:l,css:S}),(0,n.BX)(u.Z,{color:l.length{t(e.target.value)},[]);return(0,w.useEffect)(()=>{let e=b()().set("date",1),t=[{Label:"".concat(b().localeData().months()[e.month()]," ").concat(e.year()),Value:e.format("DD-MM-YYYY")}];for(let e=1;e<=12;e++){let i=b()().set("date",1).subtract(e,"month");t.push({Label:"".concat(b().localeData().months()[i.month()]," ").concat(i.year()),Value:i.format("DD-MM-YYYY")})}r(t)},[]),(0,n.BX)(o.Flex,{flexDirection:"column",children:[(0,n.tZ)(E,{title:"Konaklama Tarihi"}),(0,n.tZ)(P.Z,{customWrapper:F,onSelect:a,placeholder:"Tarih Se\xe7in",options:l,defaultValue:i})]})};let I=(0,l.iv)("margin-top:12px;margin-bottom:18px;");var _=(0,w.memo)(function(e){let{commentTitle:t,setCommentTitle:i,comment:l,setComment:r,selectedDate:a,onSelectDate:c}=e;return(0,n.BX)(o.Box,{p:"15px 0",children:[(0,n.tZ)(E,{title:"Yorum Yazın"}),(0,n.tZ)(D.Z,{containerStyle:I,value:t,onChange:e=>i(e.target.value),label:"Yorum Başlığı"}),(0,n.tZ)(X,{value:l,setValue:r,label:"Yorumunuzu Yazın"}),(0,n.tZ)(A,{selectedDate:a,onSelectDate:c})]})}),R=i(69497),M=i(31696),O=i(79182);let N=(0,l.iv)("border-radius:4px;margin:0px;"),j=(0,l.iv)("background-color:",z.wL.white,";");var V=function(e){let{image:t,title:i,locationTree:l,handleCommentModalClose:a,rating:c}=e,s=(0,w.useMemo)(()=>{let t="";switch(e.catalogType){case g.H.Poi:t="mekanı";break;case g.H.Facility:t="oteli";break;case g.H.Place:t="yeri";break;case g.H.Attraction:t="aktiviteyi";break;case g.H.Villa:t="villayı";break;default:t="oteli"}return t},[e.catalogType]),p=(0,w.useCallback)(()=>{let e=(0,R.qt)(l);return"".concat(e[0]," / ").concat(e[1])},[l]);return(0,n.BX)(n.HY,{children:[(0,n.BX)(o.Flex,{justifyContent:"space-between",p:"25px 5px 15px 0px",alignItems:"center",children:[(0,n.tZ)(u.Z,{size:26,weight:500,children:"Yorumunuzu Bırakın"}),(0,n.tZ)(o.Box,{css:z.Rx,children:(0,n.tZ)(d.Z,{width:24,height:24,onClick:a})})]}),(0,n.BX)(o.Flex,{p:"15px",m:"10px 0",css:[j,z.zp],children:[(0,n.tZ)(r.h,{css:N,src:t?(0,M.HB)({src:t,width:105}):"".concat(h.kq,"no-photo.svg"),layout:"fixed",width:105,height:59}),(0,n.BX)(o.Box,{ml:"10px",children:[!!c&&(0,n.tZ)(O.Z,{pt:"4px",rating:c}),(0,n.tZ)(u.Z,{mt:"4px",size:13,weight:600,children:i}),p()&&(0,n.tZ)(u.Z,{color:z.wL.brownGrey3,mt:"6px",size:11,children:p()})]})]}),(0,n.tZ)(o.Box,{p:"25px 25px 0 25px",css:j,children:(0,n.BX)(u.Z,{children:["Bizim i\xe7in g\xf6r\xfcşleriniz \xe7ok değerli. Aşağıdaki alanlardan konakladığınız ",s," ","değerlendirip, yorumlarınızı belirtebilirsiniz."]})})]})},K=w.memo(function(e){return(0,n.tZ)("svg",{width:"18",height:"18",...e,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",children:(0,n.tZ)("circle",{cx:"61",cy:"9",r:"7",transform:"translate(-52)",stroke:"#E3E3E3","stroke-width":"4",fill:"none","fill-rule":"evenodd"})})});let q=e=>(0,l.iv)("cursor:pointer;margin-right:8px;circle{stroke:",e?z.wL.blue3:z.wL.veryLightPink2,";}&:last-child{margin-right:15px;}"),Q=(0,l.iv)("cursor:pointer;margin-right:8px;circle{stroke:",z.wL.paleRed,";}&:last-child{margin-right:15px;}");var U=(0,w.memo)(function(e){let{commentRings:t,setCommentRings:i,isSubmit:l,noRatingSubmitAttempt:r}=e,[a,c]=(0,w.useState)([,,,,,].fill("")),s=(0,w.useCallback)((e,n)=>{l||(t[e].point==n+1?t[e].point=0:t[e].point=n+1,i(t),c([,,,,,].fill("")))},[t,l]),d=(0,w.useCallback)((e,t)=>a.map((i,l)=>(0,n.tZ)(K,{onClick:()=>s(e,l),css:r?Q:q(l(0,n.tZ)(n.HY,{children:(0,n.BX)(o.Flex,{mt:"20px",children:[e.title&&(0,n.tZ)(u.Z,{width:1/4,children:e.title}),(0,n.BX)(o.Flex,{width:1,alignItems:"center",children:[d(t,e.point),(0,n.tZ)(u.Z,{size:10,color:r?z.wL.paleRed:z.wL.brownGrey3,children:"Puan Verin"})]})]})}))),r&&(0,n.tZ)(o.Flex,{mt:"20px",ml:"65px",children:(0,n.tZ)(u.Z,{size:12,color:z.wL.paleRed,children:"L\xfctfen en az bir se\xe7eneğe puan veriniz"})})]})});let J=(0,l.iv)("background-color:",z.wL.white,";"),W=(0,l.iv)("border-radius:4px;",z._Q.tablet,"{width:82px;height:46px;}"),$=e=>(0,l.iv)("position:relative;border-bottom:1px solid ",z.wL.veryLightPink2,";border-radius:4px;height:auto;&:nth-child(even){border-left:1px solid ",z.wL.veryLightPink2,";}",z._Q.tablet,"{padding:0;}"),ee=(0,l.iv)("height:39px;font-size:12px;"),et=e=>(0,l.iv)("display:",e?"block":"none",";position:absolute;top:calc(100% + 1px);width:100%;background:",z.wL.white,";z-index:1;left:0;");var ei=function(e){let{image:t,title:i,locationTree:l,expandedCard:c,setExpandedCard:d,index:p,defaultParams:g}=e,[v,m]=(0,w.useState)(""),[x,f]=(0,w.useState)(""),[b,y]=(0,w.useState)(""),[k,L]=(0,w.useState)(!1),[B,C]=(0,w.useState)([]),{ratingGroups:T,isLoading:S,sendSubmitRequest:X}=Z({fetchInitialData:!1,ratingGroups:e.ratingGroups?e.ratingGroups.filter(e=>"GENEL"===e.title).map(e=>({...e,point:0,title:""})):[],objectId:e.objectId,catalogType:e.catalogType,detail:e.detail,defaultParams:g}),D=(0,w.useCallback)(()=>{d(c==p?-1:p)},[c,p]),P=(0,w.useCallback)(e=>{C(e.map(e=>({RatingGroup:e.ref,RatingValue:e.point})))},[]),H=(0,w.useCallback)(()=>{X({selectedRatingGroups:B,commentTitle:x,comment:v,accomondationDate:b}),L(!0)},[B,x,v,b]),E=(0,w.useCallback)(e=>{y(e)},[b]),Y=(0,w.useCallback)(()=>{let e=(0,R.qt)(l);return"".concat(e[0]," / ").concat(e[1])},[l]);return(0,n.BX)(o.Box,{width:.5,css:$(c==p||k),mb:"13px",p:"0 15px 15px 15px",children:[!S&&(0,n.BX)(n.HY,{children:[(0,n.BX)(o.Flex,{css:[J,z.Rx],p:"15px",children:[(0,n.tZ)(r.h,{onClick:D,css:W,src:t?(0,M.HB)({src:t,width:162}):"".concat(h.kq,"no-photo.svg"),layout:"fixed",width:162,height:91}),(0,n.BX)(o.Box,{ml:"10px",children:[(0,n.tZ)(u.Z,{size:14,onClick:D,weight:600,children:i}),Y()&&(0,n.tZ)(u.Z,{onClick:D,color:z.wL.brownGrey3,mt:"6px",size:13,children:Y()}),(0,n.tZ)(o.Box,{onClick:c!=p?D:()=>{},children:(0,n.tZ)(U,{isSubmit:k,setCommentRings:P,commentRings:T})})]})]}),k?(0,n.BX)(o.Flex,{mt:"15px",pb:"15px",children:[(0,n.tZ)(r.h,{width:42,height:42,layout:"fixed",src:"".concat(h.kq,"comment-approve.svg")}),(0,n.tZ)(u.Z,{ml:"10px",size:16,children:"Değerlendirmeniz i\xe7in teşekk\xfcrler. G\xf6r\xfcşleriniz incelendikten sonra sitemizde yayınlanacaktır."})]}):(0,n.BX)(o.Box,{p:"0 15px",css:et(c==p),children:[(0,n.tZ)(_,{commentTitle:x,setCommentTitle:f,comment:v,setComment:m,selectedDate:b,onSelectDate:E}),(0,n.tZ)(a.Z,{disabled:""==v||""==x||""==b,buttonCss:ee,bgColor:z.wL.white,color:z.wL.blue3,onClick:H,label:"KAYDET"})]})]}),S&&(0,n.tZ)(s.Z,{height:"300px"})]})};let en=(0,l.iv)("background-color:",z.wL.white,";height:100%;");var el=function(e){let{sectionRef:t,facilities:i,defaultParams:l}=e,[r,a]=(0,w.useState)(-1),c=(0,w.useMemo)(()=>{let t="";switch(e.catalogType){case g.H.Poi:t="Mekanın";break;case g.H.Facility:t="Otelin";break;case g.H.Place:t="Kaldığınız yerin";break;case g.H.Attraction:t="Aktivitenin";break;case g.H.Villa:t="Villanın";break;default:t="Otelin"}return t},[e.catalogType]),s=(0,w.useMemo)(()=>i?i.map((t,i)=>{var o,c;return(0,n.tZ)(ei,{index:i,setExpandedCard:a,expandedCard:r,image:null===(c=t.images)||void 0===c?void 0:null===(o=c[0])||void 0===o?void 0:o.image,title:t.name,locationTree:t.locationTree,detail:t,objectId:t.objectId,catalogType:g.H.Facility,ratingGroups:e.ratingGroups,defaultParams:l},"near-commentable-facility-".concat(i))}):[],[r,a,i]);return(0,n.BX)(o.Box,{ref:t,p:"15px",mt:"8px",css:en,children:[(0,n.BX)(u.Z,{size:16,mb:"15px",weight:"bold",children:[c," Yakınındaki Bu Mekanlara Gittiniz Mi?"]}),(0,n.tZ)(o.Flex,{flexWrap:"wrap",children:s})]})},eo=i(1092);let er=e=>(0,l.iv)("background-color:",z.wL.greyWhite,";padding:0;height:",e?"300px":"500px",";",z._Q.tablet,"{padding:20px 20px;}"),ea=(0,l.iv)("background-color:",z.wL.greyWhite,";z-index:100;overflow:scroll;overflow-x:hidden;max-width:977px;height:500px;left:50%;top:50%;transform:translate(-50%,-50%);padding:0 15px;",z._Q.tablet,"{height:500px;}"),ec=(0,l.iv)("background-color:",z.wL.white,";"),es=(0,l.iv)("border-bottom:0.7px solid ",z.wL.veryLightPink2,";padding-bottom:15px;margin:25px 0 20px 0;"),ed=(0,l.iv)("width:100%;height:100vh;display:block;position:fixed;left:0;top:0;background-color:",z.wL.black,";opacity:0.7;"),eu=(0,l.iv)("margin-top:20px;");var ep=(0,w.memo)(function(e){let{image:t,title:i,locationTree:l,show:v,setShow:m,catalogType:x,rating:f,defaultParams:b}=e,[y,C]=(0,w.useState)(""),[T,S]=(0,w.useState)(""),{userPersonal:X}=(0,p.q)(p.S),[D,P]=(0,w.useState)([]),[H,Y]=(0,w.useState)(),G=(0,w.useRef)(null),{travelPurposes:F,ratingGroups:A,isLoading:I,sendSubmitRequest:R,commentableFacilities:M}=Z({fetchInitialData:v,objectId:e.objectId,catalogType:x,detail:e.detail,defaultParams:b}),[O,N]=(0,w.useState)(""),[j,K]=(0,w.useState)(!1),[q,Q]=(0,w.useState)(!1);(0,w.useEffect)(()=>{D.length>0&&Q(!1)},[D]);let J=(0,w.useCallback)(()=>{m(!1)},[]),W=(0,w.useCallback)(()=>v&&(0,n.tZ)(o.Box,{onClick:J,css:ed}),[v]),$=(0,w.useCallback)(e=>{N(e)},[O]),ee=(0,w.useCallback)(()=>{if(0===D.length){Q(!0);return}(0,eo.AB)((0,eo.pZ)()),Q(!1),(null==G?void 0:G.current)&&(0,k.b)(G),K(!0),R({selectedRatingGroups:D,selectedTravelPurpose:H,commentTitle:T,comment:y,accomondationDate:O,getNearestLocations:!0})},[D,H,X,e,y,T,O]),et=(0,w.useCallback)(e=>{Y(e)},[]),ei=(0,w.useCallback)(e=>{P(e.map(e=>({RatingGroup:e.ref,RatingValue:e.point})))},[]),en=()=>{let t="Oteli Değerlendirin";switch(e.catalogType){case g.H.Poi:case g.H.Place:case g.H.Attraction:t="Konumu Değerlendirin";break;case g.H.Villa:t="Villayı Değerlendirin"}return t},ep=(0,w.useCallback)(()=>(0,n.tZ)(n.HY,{children:j?(0,n.tZ)(n.HY,{children:(0,n.tZ)(B.Z,{containerStyle:ea,show:v,children:(0,n.BX)(L.Z,{css:[z.o4,er(j)],children:[(0,n.BX)(o.Flex,{justifyContent:"space-between",p:"25px 5px 15px 0px",alignItems:"center",children:[(0,n.tZ)(u.Z,{size:26,weight:500,children:"Teşekk\xfcrler"}),(0,n.tZ)(o.Box,{css:z.Rx,children:(0,n.tZ)(d.Z,{width:24,height:24,onClick:J})})]}),I&&(0,n.BX)(n.HY,{children:[(0,n.tZ)(s.Z,{height:"150px"}),(0,n.tZ)(s.Z,{height:"300px",css:eu})]}),!I&&(0,n.BX)(n.HY,{children:[(0,n.BX)(o.Flex,{p:"25px",css:ec,children:[(0,n.tZ)(r.h,{width:42,height:42,layout:"fixed",src:"".concat(h.kq,"comment-approve.svg")}),(0,n.BX)(u.Z,{ml:"10px",size:16,children:[X.userName," ",X.userSurName,", değerlendirmeniz i\xe7in teşekk\xfcrler. G\xf6r\xfcşleriniz incelendikten sonra sitemizde yayınlanacaktır."]})]}),(0,n.tZ)(el,{sectionRef:G,ratingGroups:A,facilities:M,catalogType:x,defaultParams:b})]})]})})}):(0,n.tZ)(B.Z,{containerStyle:ea,show:v,children:(0,n.tZ)(L.Z,{css:[z.o4,er(j)],children:(0,n.BX)(o.Box,{children:[(0,n.tZ)(V,{handleCommentModalClose:J,image:t,title:i,locationTree:l,catalogType:x,rating:f}),I&&(0,n.BX)(n.HY,{children:[(0,n.tZ)(s.Z,{height:"150px"}),(0,n.tZ)(s.Z,{height:"150px",css:eu}),(0,n.tZ)(s.Z,{height:"150px",css:eu}),(0,n.tZ)(s.Z,{height:"150px",css:eu})]}),!I&&(0,n.tZ)(n.HY,{children:(0,n.BX)(o.Box,{p:"25px",css:ec,children:[!!F&&(0,n.BX)(n.HY,{children:[(0,n.tZ)(E,{title:"Seyahat Amacınızı Se\xe7iniz",isOptional:!0}),(0,n.tZ)(c.Z,{externalCss:es,items:F,onChange:et})]}),(0,n.tZ)(E,{title:en()}),!j&&(0,n.tZ)(U,{setCommentRings:ei,commentRings:A,noRatingSubmitAttempt:q}),(0,n.tZ)(_,{commentTitle:T,setCommentTitle:S,comment:y,setComment:C,selectedDate:O,onSelectDate:$}),(0,n.tZ)(a.Z,{disabled:""==y||""==T||""==O,m:"15px 0",label:"G\xd6NDER",onClick:ee})]})})]})})})}),[v,j,T,y,I,O,D,q]);return(0,n.BX)(n.HY,{children:[ep(),W()," "]})})},14591:function(e,t,i){var n=i(35944),l=i(67294),o=i(34665);t.Z=l.memo(function(e){return(0,n.tZ)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,...e,children:(0,n.BX)("g",{fill:"none",fillRule:"evenodd",children:[(0,n.tZ)("path",{d:"M0 0h24v24H0z"}),(0,n.tZ)("path",{fill:e.fill||o.wL.white,fillRule:"nonzero",d:"M21 11H6.83l3.58-3.59L9 6l-6 6 6 6 1.41-1.41L6.83 13H21z"})]})})})},37935:function(e,t,i){i.d(t,{I0:function(){return a},TX:function(){return u},Zy:function(){return r},aP:function(){return d},c0:function(){return s},gS:function(){return o},lm:function(){return c}});var n=i(69767);let l=n.fR+"api/",o=(e,t)=>(0,n.zD)("user/update-user-info","PUT",JSON.stringify(e),n.LX.DEFAULT,!1,{Authorization:"Bearer ".concat(t)}),r=(e,t,i)=>(0,n.zD)("user/update-user-password","PUT",JSON.stringify({id:e,password:t}),n.LX.DEFAULT,!1,{Authorization:"Bearer ".concat(i)});function a(e){return fetch(l+"security/refreshToken",{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:JSON.stringify({RefreshToken:e})})}function c(e,t){return fetch(l+"security/VerifyEmail",{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:JSON.stringify({Id:e,Token:t})})}function s(e,t,i){return fetch(l+"security/ResetPassword",{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:JSON.stringify({Token:t,Id:e,Password:i})})}let d=(e,t)=>(0,n.zD)("comment/get-user-comments".concat((0,n.$d)(e)),"GET",void 0,n.LX.DEFAULT,!1,{Authorization:"Bearer ".concat(t),"Cache-Control":"no-cache"});function u(e){fetch(l+"security/logout",{method:"POST",cache:"no-cache",credentials:"include",mode:"cors",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(e)}})}},33655:function(e,t,i){i.d(t,{$T:function(){return r},Yr:function(){return a},li:function(){return l},wS:function(){return o}});var n=i(69767);let l=(e,t)=>(0,n.zD)("api/facilityDetail/get-comments".concat((0,n.$d)(e)),"GET",void 0,n.LX.DEFAULT,t),o=e=>(0,n.zD)("/comment/ratingGroup/Query".concat((0,n.wx)(e)),"GET",void 0,n.LX.DEFAULT,!1),r=()=>(0,n.zD)("/comment/travelPurpose/Query","GET",void 0,n.LX.DEFAULT,!1),a=(e,t,i)=>(0,n.zD)("comment/create-user-".concat(i,"-comment"),"POST",JSON.stringify(e),n.LX.DEFAULT,!1,{Authorization:"Bearer ".concat(t)})},4803:function(e,t,i){i.d(t,{_:function(){return h}});var n=i(35944),l=i(67294),o=i(78707),r=i(70917),a=i(69767),c=i(66455),s=i(33463),d=(0,l.memo)(function(e){let{color:t,width:i,height:l}=e;return(0,n.tZ)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"".concat(null!=i?i:80),height:"".concat(null!=l?l:80),viewBox:"0 0 80 80",children:(0,n.tZ)("g",{fill:"none","fill-rule":"evenodd",children:(0,n.tZ)("g",{children:(0,n.BX)("g",{children:[(0,n.tZ)("path",{d:"M0 0L80 0 80 80 0 80z",transform:"translate(-680 -312) translate(680 312)"}),(0,n.tZ)("path",{fill:t,"fill-rule":"nonzero",d:"M40 6.667C21.6 6.667 6.667 21.6 6.667 40S21.6 73.333 40 73.333 73.333 58.4 73.333 40 58.4 6.667 40 6.667zm-6.667 50L16.667 40l4.7-4.7 11.966 11.933 25.3-25.3 4.7 4.734-30 30z",transform:"translate(-680 -312) translate(680 312)"})]})})})})});let u={62:"BookLogic",42:"HotelRunner"},p=[6,8,11,12,19,20,22,23,24,25,41,103,104,105,107];function h(e,t,i,r){let h=(0,l.useMemo)(()=>(0,n.BX)(c.Flex,{css:v,children:[(0,n.tZ)(s.Z,{fontSize:14,bold:!0,children:"Resmi Site"}),(0,n.tZ)(d,{color:"#4285f4",width:13,height:13})]}),[]);return(0,l.useMemo)(()=>{var l;return(0,n.tZ)(n.HY,{children:p.indexOf(Number(e))>-1?(0,n.tZ)(o.h,{css:g,width:null!=i?i:115,height:null!=r?r:25,src:"".concat(a.kq,"provider-logo/").concat(e,".png"),alt:t}):(null===(l=Object.keys(u))||void 0===l?void 0:l.includes(null==e?void 0:e.toString()))?h:t||"Tesis Fiyatı"})},[e,t,i,r])}let g=(0,r.iv)("object-fit:contain;object-position:left;"),v=(0,r.iv)("align-items:center;gap:2px;")},64416:function(e,t,i){i.d(t,{v:function(){return l}});var n=i(67294);function l(){let[e,t]=(0,n.useState)(),i=(0,n.useCallback)(e=>{t(window.scrollY)},[]);return(0,n.useEffect)(()=>(window.addEventListener("scroll",i),()=>{window.removeEventListener("scroll",()=>i)}),[i]),e}},10008:function(e,t,i){i.d(t,{b:function(){return n}});function n(e,t){var i;if(!e)return;let n=(null===(i=e.current)||void 0===i?void 0:i.offsetTop)+(t||0);void 0!==n&&window.scroll({top:n,left:0,behavior:"smooth"})}},63176:function(e,t,i){i.d(t,{A:function(){return l}});var n=i(67294);function l(e,t){let[i,l]=(0,n.useState)(!1),[o,r]=(0,n.useState)(),a=(0,n.useCallback)(e=>{if(o){let e=o-((null==t?void 0:t.current)?49:0);if(window.scrollY>e){var i;let e=null==t?void 0:null===(i=t.current)||void 0===i?void 0:i.offsetTop;e&&window.scrollY>=e?l(!1):l(!0)}else l(!1)}},[o,null==t?void 0:t.current]);return(0,n.useEffect)(()=>{e.current&&r(e.current.offsetTop)},[e]),(0,n.useEffect)(()=>(window.addEventListener("scroll",a),()=>{window.removeEventListener("scroll",()=>a)}),[a]),i}},25206:function(e,t,i){var n=i(35944),l=i(70917),o=i(66455),r=i(1205),a=i(34665);i(67294);var c=i(33463),s=i(27484),d=i.n(s),u=i(78707),p=i(30337),h=i(69767);t.Z=function(e){let{comment:t,...i}=e,l=(0,p.i)().width<=a.Op;return(0,n.BX)(o.Flex,{css:g,...i,children:[(0,n.BX)(o.Flex,{flexDirection:"column",css:[v,w],width:.2,children:[(0,n.BX)(o.Box,{children:[void 0!==t.rating?Number.isInteger(t.rating)?null==t?void 0:t.rating:(Math.round((null==t?void 0:t.rating)*10)/10).toFixed(1):"N/A","/5 ",t.ratingText]}),(0,n.BX)(o.Flex,{mt:"3px",children:[(0,n.tZ)(u.h,{src:"".concat(h.kq,"logoicon-sm.svg"),width:14,height:15,layout:"fixed",css:[y],alt:"Neredekal.com"}),(0,n.tZ)(r.Z,{rating:t.rating,width:14,height:14})]}),(0,n.tZ)(c.Z,{fontSize:14,color:a.wL.brownGrey2,externalCss:f,weight:400,children:d()(t.date).format("DD.MM.YY")}),(0,n.tZ)(c.Z,{fontSize:14,weight:"normal",externalCss:b,children:t.userName})]}),(0,n.BX)(o.Box,{css:m,width:.8,children:[(0,n.BX)(o.Box,{mb:"14px",css:b,children:[(0,n.tZ)(c.Z,{dangerouslySetInnerHTML:{__html:t.title}}),(0,n.tZ)(c.Z,{dangerouslySetInnerHTML:{__html:t.comment},externalCss:Z,maxHeight:l?54:void 0})]}),t.reply&&(0,n.BX)(o.Box,{css:x,children:[(0,n.tZ)(c.Z,{mt:1,size:14,weight:600,children:"Tesis Cevabı"}),(0,n.tZ)(c.Z,{mt:"6px",weight:400,size:14,children:t.reply})]})]})]})};let g=(0,l.iv)("width:auto;font-size:12px;font-weight:bold;border:1px solid ",a.wL.veryLightPink2,";border-radius:4px;padding:25px 24px 25px 25px;&:not(:last-child){margin-bottom:15px;}",a._Q.tablet,"{&:not(:last-child){margin-bottom:8px;}}"),v=(0,l.iv)("font-size:16px;font-weight:bold;padding-bottom:5px;"),m=(0,l.iv)("margin-left:50px;font-size:14px;"),x=(0,l.iv)("padding-top:14px;border-top:solid 0.7px ",a.wL.veryLightPink2,";"),f=(0,l.iv)("margin-top:2px;",a._Q.tablet,"{margin-top:8px;font-size:12px;}"),b=(0,l.iv)(a._Q.tablet,"{font-size:12px;}"),w=(0,l.iv)(a._Q.tablet,"{font-size:14px;}"),y=(0,l.iv)("margin-left:0px;"),Z=(0,l.iv)("margin-top:6px;font-weight:normal;",a._Q.tablet,"{font-size:12px;margin-top:5px;max-height:54px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;}")},63448:function(e,t,i){var n=i(35944),l=i(4803);t.Z=function(e){let{providerId:t,providerName:i,width:o,height:r}=e,a=(0,l._)(t,i,o,r);return(0,n.tZ)(n.HY,{children:a})}},31950:function(e,t,i){i.d(t,{c:function(){return n}});let n=["utm_source","utm_campaign","utm_medium"]}}]);