PageSourceSearch

https://www.morpara.com/_nuxt/36qHbst1.js

js morpara.com collected 2026-09-24 08:56:40 UTC 11,941 bytes, 1 lines download raw bytes

1import{e as re,a as ae,b as ie,p as le,u as ce,i as pe,o as de,_ as ue,v as me}from"./BfLQ4WTP.js";import{_ as he}from"./CWODg4qk.js";import{_ as fe,n as p,p as N,y as I,C as _e,$ as d,A as u,a0 as e,a2 as r,u as o,ah as ge,O as b,a7 as xe,a9 as ve,b as U,N as W,a4 as K,a6 as D,a3 as X,S as L,a1 as S,aq as ye,T as G,j as v,q as we}from"./COk2yBiS.js";const ke={class:"space-y-6 overflow-hidden",id:"temsilciliklerimiz"},be={class:"px-4 xl:px-0"},Le={class:"w-full max-w-container mx-auto space-y-6"},Ce={class:"font-semibold text-4xl lg:text-h2"},Te={class:"relative"},He=["placeholder"],Fe={class:"grid grid-cols-[47%_53%] md:grid-cols-[30%_70%] 2xl:grid-cols-[40%_70%] border-b pt-6"},Me={class:"text-mp-black text-sm divide-y"},Ne={class:"pb-8 custom-container-left",style:{}},Se={class:"md:hidden lg:whitespace-nowrap"},Be={class:"hidden md:block"},qe={class:"max-w-[170px] lg:max-w-[200px]"},Ve={class:"flex flex-col w-full text-mp-black text-sm overflow-x-auto lg:overflow-x-hidden divide-y"},$e={class:"custom-container-right right-head grid grid-cols-[repeat(4,minmax(140px,1fr))] md:grid-cols-[repeat(4,minmax(180px,1fr))] gap-x-10 pb-8 w-min"},Ae={class:""},Pe={class:""},Oe={class:""},Re={class:""},je={class:""},ze={class:""},Ee={class:""},Ie={class:""},Ue=["href"],We={class:"w-full max-w-container mx-auto py-4 flex justify-center lg:justify-end"},Ke={key:0,class:"fixed inset-0 bg-black/50 z-[999] flex items-center justify-center px-4"},De={class:"flex items-center justify-between py-10 px-8"},Xe={class:"text-2xl lg:text-[40px] text-[#0F0F14]"},Ge={class:"flex flex-col gap-4"},Qe={class:"flex flex-col gap-3"},Je={class:"text-sm text-gray-500 font-medium pl-8"},Ye={class:"bg-[#F8F8F8] pl-8 py-4 pr-4"},Ze={class:"text-black text-base font-medium"},et={class:"flex flex-col gap-3"},tt={class:"text-sm text-gray-500 font-medium pl-8"},st={class:"bg-[#F8F8F8] pl-8 py-4 pr-4"},ot=["href"],nt={class:"flex flex-col gap-3"},rt={class:"text-sm text-gray-500 font-medium pl-8"},at={class:"bg-[#F8F8F8] pl-8 py-4 pr-4"},it={class:"text-mp-black font-thin text-base"},lt={class:"flex flex-col gap-3"},ct={class:"text-sm text-gray-500 font-medium pl-8"},pt={class:"bg-[#F8F8F8] pl-8 py-4 pr-4"},dt={class:"text-mp-black font-thin text-base"},ut={key:0,class:"flex flex-col gap-3"},mt={class:"bg-[#F8F8F8] pl-8 py-4 pr-4"},ht={class:"text-mp-black font-thin text-base"},ft={key:1,class:"flex flex-col gap-3"},_t={class:"bg-[#F8F8F8] pl-8 py-8 pr-4"},gt=["href"],C=10,xt={__name:"RepresentationList",props:{content:{type:Object,default:()=>({})},settings:{type:Object,default:()=>({})}},async setup(Q){let y,B;const{locale:w}=ae(),T=ie(),J=le(),q=ce("isOverflowHidden"),f=Q,V=p(()=>f.content?.content?.url||f.content?.url||T.path),Y=p(()=>f.content?.content?.pageSize||f.content?.pageSize||500),{data:$}=([y,B]=fe(()=>pe("/api/content-by-url",{query:{url:V,culture:w.value==="tr"?"tr-TR":w.value,pageNumber:1,pageSize:Y},key:p(()=>`representation-list-${V.value}-${w.value}`),transform:t=>t?.data||{}},"$chXr1X20yf")),y=await y,B(),y),l=p(()=>{const n=($.value?.home||[]).find(a=>a.contentType==="representationList")?.content||{};return{title:n.title||f.content?.title||"",searchText:n.searchText||"",seeOnMapTitle:n.seeOnMapTitle||"",representationListTitle:{representionName:n.representionName||"",representionShortName:n.representionShortName||"",representionPhoneNumber:n.representionPhoneNumber||"",representionAddress:n.representionAddress||"",representionWorkTime:n.representionWorkTime||"",repressentionLocation:n.repressentionLocation||""}}}),k=p(()=>($.value?.children||[]).map(s=>{const a=s?.home?.find(m=>m.contentType==="representationItem")?.content||{};return{properties:{representativeName:a.representativeName,phone:a.phone,address:a.adress||a.address,workHours:a.workHours,locationLat:a.locationLat,locationLong:a.locationLong,centralBankCode:a.centralBankCode,city:a.city,map:a.map},route:{path:s.url}}})),_=v(""),g=v(1),x=v(!1),c=v(null),A=v(),Z=p(()=>{const t=T.query.r;return Array.isArray(t)?t[0]:t}),ee=t=>{if(!t)return"";const s=t.split("/").filter(Boolean);return s[s.length-1]||""},te=t=>{if(!t||!k.value?.length)return;const s=k.value.find(n=>ee(n.route?.path)===t);
1s&&(c.value={properties:s.properties,name:s.properties?.representativeName},x.value=!0,q.value=!0)},H=()=>{x.value=!1,c.value=null,q.value=!1;const t={...T.query};delete t.r,J.replace({query:t})};de(A,()=>{H()});const P=t=>{t.key==="Escape"&&x.value&&H()};N([()=>Z.value,()=>k.value?.length||0],([t,s])=>{if(!t){x.value=!1;return}s>0&&te(t)},{immediate:!0}),I(()=>{document.addEventListener("keydown",P)}),_e(()=>{document.removeEventListener("keydown",P)});const O=t=>{const s=t?.properties?.locationLat,n=t?.properties?.locationLong;return s&&n?`https://www.google.com/maps/search/?api=1&query=${n},${s}`:""},se=(t,s)=>t&&s?`https://www.google.com/maps/search/?api=1&query=${s},${t}`:"",oe=p(()=>{try{return k.value.map(t=>({name:t.properties.representativeName,phone:t.properties.phone,address:t.properties.address,workHours:t.properties.workHours,coords:se(t.properties.locationLat,t.properties.locationLong)}))}catch(t){return console.log("error",t),[]}}),R=p(()=>{const t=_.value.toLowerCase(),s=_.value.toLocaleLowerCase("tr");return oe.value.filter(n=>n?.name?.toLowerCase().includes(t)||n.name?.toLocaleLowerCase().includes(s)||n.address?.toLowerCase().includes(t)||n.address?.toLocaleLowerCase().includes(s))}),j=p(()=>R.value?.length??0),ne=p(()=>(g.value=1,R.value)),F=p(()=>{const t=(g.value-1)*C,s=t+C;return ne.value.slice(t,s)}),M=async()=>{await we();const t=document.querySelectorAll(".left-content"),s=document.querySelectorAll(".right-content"),n=document.querySelector(".custom-container-left"),a=document.querySelector(".right-head");t.forEach(i=>{i.style.height="auto"}
1),s.forEach(i=>{i.style.height="auto"}),n&&(n.style.height="auto"),a&&(a.style.height="auto"),await new Promise(i=>setTimeout(i,10));const m=Math.max(n?.clientHeight||0,a?.clientHeight||0);for(let i=0;i<t.length;i++){const h=t[i],z=s[i],E=Math.max(h.clientHeight,z.clientHeight);h.style.height=`${E+15}px`,z.style.height=`${E+15}px`}n&&(n.style.height=`${m}px`),a&&(a.style.height=`${m}px`)};return I(()=>{M()}),N(F,()=>{M()}),N(w,()=>{M()}),(t,s)=>{const n=ue,a=he,m=me;return d(),u("section",ke,[e("div",be,[e("div",Le,[e("h2",Ce,r(o(l).title),1),e("form",{action:"",onSubmit:s[1]||(s[1]=ge(()=>{},["prevent"]))},[e("div",Te,[b(n,{name:"i-basil:search-outline",class:"absolute top-1/2 -translate-y-1/2 left-4 text-2xl"}),xe(e("input",{type:"search",class:"py-4 pr-6 pl-12 border rounded-full w-full max-w-lg focus:outline-none bg-white","onUpdate:modelValue":s[0]||(s[0]=i=>U(_)?_.value=i:null),placeholder:o(l).searchText},null,8,He),[[ve,o(_)]])])],32)])]),e("div",Fe,[e("div",Me,[e("div",Ne,[e("span",Se,r(o(l).representationListTitle.representionShortName),1),e("span",Be,r(o(l).representationListTitle.representionName),1)]),(d(!0),u(W,null,K(o(F),(i,h)=>(d(),u("div",{key:h,class:"custom-container-left left-content font-semibold py-6 even:bg-mp-background px-4 lg:px-0"},[e("div",qe,r(i.name),1)]))),128))]),e("div",Ve,[e("div",$e,[e("div",Ae,r(o(l).representationListTitle.representionPhoneNumber),1),e("div",Pe,r(o(l).representationListTitle.representionAddress),1),e("div",Oe,r(o(l).representationListTitle.representionWorkTime),1),e("div",Re,r(o(l).representationListTitle.repressentionLocation),1)]),(d(!0),u(W,null,K(o(F),(i,h)=>(d(),u("div",{key:h,class:"custom-container-right right-content grid grid-cols-[repeat(4,minmax(140px,1fr))] md:grid-cols-[repeat(4,minmax(180px,1fr))] gap-x-10 even:bg-mp-background py-6 w-min"},[e("div",je,r(i.phone),1),e("div",ze,r(i.address),1),e("div",Ee,r(i.workHours),1),e("div",Ie,[e("a",{target:"_blanck",href:i.coords,class:"underline flex items-center gap-2 whitespace-nowrap"},[D(r(o(l)?.seeOnMapTitle)+" ",1),s[3]||(s[3]=e("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",class:"flex-shrink-0"},[e("path",{d:"M4.50015 1.75H3.15015C2.31007 1.75 1.88972 1.75 1.56885 1.91349C1.2866 2.0573 1.0573 2.2866 0.91349 2.56885C0.75 2.88972 0.75 3.31007 0.75 4.15015V9.85015C0.75 10.6902 0.75 11.11 0.91349 11.4309C1.0573 11.7132 1.2866 11.9429 1.56885 12.0867C1.8894 12.25 2.30925 12.25 3.14768 12.25H8.85232C9.69075 12.25 10.11 12.25 10.4305 12.0867C10.7128 11.9429 10.9429 11.7129 11.0867 11.4307C11.25 11.1101 11.25 10.6908 11.25 9.85232V8.5M12 4.75V1M12 1H8.25M12 1L6.75 6.25",stroke:"#351E52","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1))],8,Ue)])]))),128))])]),e("div",We,[o(j)>C?(d(),X(a,{key:0,modelValue:o(g),"onUpdate:modelValue":s[2]||(s[2]=i=>U(g)?g.value=i:null),"page-count":C,total:o(j),size:"lg"},null,8,["modelValue","total"])):L("",!0)]),b(m,null,{default:S(()=>[(d(),X(ye,{to:"body"},[b(G,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"transition duration-150 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:S(()=>[o(x)&&o(c)?(d(),u("div",Ke,[b(G,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"opacity-0 scale-95 translate-y-4","enter-to-class":"opacity-100 scale-100 translate-y-0","leave-active-class":"transition duration-150 ease-in","leave-from-class":"opacity-100 scale-100 translate-y-0","leave-to-class":"opacity-0 scale-95 translate-y-4",appear:""},{default:S(()=>[e("div",{ref_key:"modalWrapper",ref:A,class:"bg-white w-full max-w-2xl rounded-2xl shadow-2xl overflow-y-auto max-h-[90vh]"},[e("div",De,[e("h3",Xe,r(o(l).title),1),e("button",{type:"button",onClick:H},[...s[4]||(s[4]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 24 24"},[e("g",{fill:"none",stroke:"currentColor","stroke-width":"1.5"},[e("circle",{cx:"12",cy:"12",r:"10"}),e("path",{"stroke-linecap":"round",d:"m14.5 9.5l-5 5m0-5l5 5"})])],-1)])])]),e("div",Ge,[e("div",Qe,[e("p",Je,r(o(l).representationListTitle?.representionName||"Adı"),1),e("div",Ye,[e("p",Ze,r(o(c).properties?.representativeName),1)])]),e("div",et,[e("p",tt,r(o(l).representationListTitle?.representionPhoneNumber||"Telefon"),1),e("div",st,[e("a",{href:`tel:${o(c).properties?.phone}`,class:"text-mp-black text-base hover:text-mp-purple transition-colors"},r(o(c).properties?.phone),9,ot)])]),e("div",nt,[e("p",rt,r(o(l).representationListTitle?.representionAddress||"Adres"),1),e("div",at,[e("p",it,r(o(c).properties?.address),1)])]),e("div",lt,[e("p",ct,r(o(l).representationListTitle?.representionWorkTime||"Çalışma Saatleri"),1),e("div",pt,[e("p",dt,r(o(c).properties?.workHours),1)])]),o(c).properties?.centralBankCode?(d(),u("div",ut,[s[5]||(s[5]=e("p",{class:"text-sm text-gray-500 font-medium pl-8"},"Merkez Bankası Kodu",-1)),e("div",mt,[e("p",ht,r(o(c).properties?.centralBankCode),1)])])):L("",!0),O(o(c))?(d(),u("div",ft,[s[7]||(s[7]=e("p",{class:"text-sm text-gray-500 font-medium pl-8"},"Konum",-1)),e("div",_t,[e("a",{target:"_blanck",href:O(o(c)),class:"underline flex items-center gap-2 whitespace-nowrap"},[D(r(o(l)?.seeOnMapTitle||"Haritada Gör")+" ",1),s[6]||(s[6]=e("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",class:"flex-shrink-0"},[e("path",{d:"M4.50015 1.75H3.15015C2.31007 1.75 1.88972 1.75 1.56885 1.91349C1.2866 2.0573 1.0573 2.2866 0.91349 2.56885C0.75 2.88972 0.75 3.31007 0.75 4.15015V9.85015C0.75 10.6902 0.75 11.11 0.91349 11.4309C1.0573 11.7132 1.2866 11.9429 1.56885 12.0867C1.8894 12.25 2.3
10925 12.25 3.14768 12.25H8.85232C9.69075 12.25 10.11 12.25 10.4305 12.0867C10.7128 11.9429 10.9429 11.7129 11.0867 11.4307C11.25 11.1101 11.25 10.6908 11.25 9.85232V8.5M12 4.75V1M12 1H8.25M12 1L6.75 6.25",stroke:"#351E52","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1))],8,gt)])])):L("",!0)])],512)]),_:1})])):L("",!0)]),_:1})]))]),_:1})])}}},kt=re(xt,[["__scopeId","data-v-e61dac92"]]);export{kt 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.