1import{m as M,s as N,a5 as D,r as d,a6 as T,q as j,x as g,o as $,w as z,e as c,g as t,j as x,n as a,z as k,t as r,E,F as b,D as P,Y as V,l as Y,c as R,f as h,R as F}from"./MScFIUOs.js";import"./184IhfSr.js";/* empty css */const I={class:F("bg-center bg-no-repeat border-t border-t-slate-400 w-full bg-gradient-to-r from-slate-700 to-slate-200 py-0")},G={key:0,class:"relative mx-auto max-w-screen-xl sm:mx-auto px-4 sm:px-6 lg:px-10 py-0 sm:py-0 text-center pt-8 md:pt-8 pb-2 md:pb-4 flex justify-between"},J=["innerHTML"],Q={class:"flex items-center whitespace-nowrap","aria-label":"Breadcrumb"},q={class:"inline-flex items-center"},K=["href"],U={class:"inline-flex items-center"},W=["href"],X=["innerHTML"],Z={class:"container h-auto py-10"},ee={class:"grid grid-cols-1 lg:grid-cols-4 md:grid-cols-3 gap-3 my-5"},te={class:"p-3 rounded-md border border-slate-100 hover:border-sky-800"},se={class:"w-full rounded-md min-h-32 md:min-h-48 lg:min-h-64 block"},oe=["src"],ae={class:"flex flex-col space-y-1"},le=["innerHTML"],ie={class:"text-sm"},ne={class:"text-sm"},re=["href"],de={class:"w-full p-10 bg-sky-200"},ce=["innerHTML"],ge={__name:"hotels",emits:["close"],setup(he,{emit:me}){const{goPath:_,showImage:O,getPath:p,decodeHTMLEntities:S}=M();N();const A=D();d(0),d("general");const C=R(),i=T(),{locale:H}=j();g(()=>A.params.link),d(!1);const v=d(!1),u=d({}),f=d([]),B=g(()=>{let e=i.value.SA_Yazilar;return e&&(e=S(e,i.value),e=e.replace(/<img[^>]+>/g,function(s){return s.replace(/width="[^"]+"/g,'width="100%"').replace(/height="[^"]+"/g,'height="auto"')}),e=e.replace(/<p[^>]+>/g,'<p class="text-md text-slate-700">')),e});g(()=>{var s;let e=[];
1if(u.value){let l=u.value;if(u.hotelVideo&&e.push({i:"/assets/img/video-play.png",video:l.hotelVideo,name:(s=l.sOtelAdi)==null?void 0:s.tr}),l.hPhotoGallery&&l.hPhotoGallery.charAt(0)=="{"){let o=JSON.parse(l.hPhotoGallery);Array.isArray(o)||typeof o=="object"&&(o=Object.values(o)),o&&o[0]&&o.forEach(n=>{var m;e.push({i:"https://image.inanctur.com.tr/yonetim/"+n.i,t:n.t,name:(m=l.sOtelAdi)==null?void 0:m.tr})})}}return e});const w=()=>{var l;v.value=!0;const e=(l=V())==null?void 0:l.value;let s=["pdb_sira,DESC"];Y({url:`${C.public.apiBase}/rest/hotelDetail`,params:{limit:100,offset:0,sort:s,lang:"NONE",fields:"id,sOtelAdi,sOtelPhoto,h_hotelCity(id,cityName),sOtelStars(id,hS_Name),hotelLink",filter:JSON.stringify({sOtelFavori:["=","on"],sOtelStars:["!=",""],status:["=",1]})},method:"get",origin:!0,withCredentials:!0,headers:e}).then(o=>{f.value=[],o.data.formattedData&&o.data.formattedData.forEach(n=>{n.name=n.sOtelAdi,f.value.push(n)}),v.value=!1})},L=async e=>{var s=document.createElement("script");s.type="application/javascript",s.src=e,await document.head.appendChild(s)};return $(async()=>{(typeof google>"u"||!google||google&&!google.maps)&&await L("https://maps.googleapis.com/maps/api/js?key=AIzaSyD08hQnRH1BlCOQpFCm6OcSBoNanxj2_HY")}),w(),z(()=>i.value.wa_content_id,e=>{u.value||w()},{deep:!0}),(e,s)=>{var l;return h(),c(b,null,[t("section",I,[a(i)?(h(),c("div",G,[t("div",null,[a(i)&&a(i).SA_Baslik?(h(),c("h1",{key:0,class:"mb-2 text-lg font-medium tracking-tight leading-none text-slate-100 md:text-xl lg:text-xl text-left",innerHTML:a(i).SA_Baslik},null,8,J)):x("",!0),t("ol",Q,[t("li",q,[t("a",{class:"flex items-center text-xs md:text-sm text-white hover:text-yellow-100 focus:outline-none focus:text-yellow-100",onClick:s[0]||(s[0]=k(o=>a(_)("/"),["prevent","stop"])),href:a(p)("/")},r(e.$t("Anasayfa")),9,K),s[2]||(s[2]=t("svg",{class:"flex-shrink-0 mx-2 -mt-1 overflow-visible text-white",xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8",viewBox:"0 0 14 14",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[t("path",{d:"m9 18 6-6-6-6"})],-1))]),t("li",U,[t("a",{href:a(p)("/hotel/hotels"),onClick:s[1]||(s[1]=k(o=>a(_)("/hotel/hotels"),["stop","prevent"])),class:"flex items-center text-xs md:text-sm text-white hover:text-yellow-100"},[E(r(e.$t("Oteller"))+" ",1),s[3]||(s[3]=t("svg",{class:"flex-shrink-0 mx-2 -mt-1 overflow-visible text-white",xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8",viewBox:"0 0 14 14",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[t("path",{d:"m9 18 6-6-6-6"})],-1))],8,W)]),t("li",{class:"inline-flex items-center text-xs md:text-sm font-semibold truncate text-white","aria-current":"page",innerHTML:(l=a(i))==null?void 0:l.SA_Baslik},null,8,X)])])])):x("",!0)]),t("div",Z,[t("div",ee,[(h(!0),c(b,null,P(f.value,o=>{var n,m,y;return h(),c("span",te,[t("span",se,[t("img",{src:a(O)(o.sOtelPhoto,256,256,!0,90),class:"w-full rounded-md"},null,8,oe)]),t("span",ae,[t("span",{class:"font-semibold text-lg",innerHTML:o.sOtelAdi},null,8,le),t("span",ie,r(e.$t("Åehir"))+": "+r((n=o.from_h_hotelCity)==null?void 0:n.cityName),1),t("span",ne,r(e.$t("Yıldız"))+": "+r((m=o.from_sOtelStars)==null?void 0:m.hS_Name),1)]),t("span",null,[t("a",{href:a(p)(`/hotel/${(y=o.hotelLink)==null?void 0:y[a(H)]}`),class:"text-sky-600 text-sm"},r(e.$t("Details")),9,re)])])}),256))])]),t("div",de,[a(i)&&a(i).SA_Yazilar?(h(),c("div",{key:0,class:"container prose max-w-none leading-2 text-md text-slate-700",innerHTML:B.value},null,8,ce)):x("",!0)])],64)}}};export{ge as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.