1import{u as _,r as u,j as e,s as n,a0 as G,an as N,bq as L,br as R,bs as A,aG as O,L as z}from"./index-CFVreTXG.js";import{C as Q,Z as K,G as B,u as H,a as X}from"./uzbekistan.topo-DPHZaDaF.js";import{u as Y,a as F,b as J}from"./liveApi-Clbus4XQ.js";import"./index-CEgR9AX4.js";import"./index-Chjiymov.js";const U={"uz-fa":{keyword:"Farg'ona",name:"Farg'ona viloyati",phone:"+998 73 222-22-22",email:"[email protected]",address:"Farg'ona shahri, M.Ulug'bek ko'chasi"},"uz-tk":{keyword:"Toshkent",name:"Toshkent shahri",phone:"+998 71 214-14-14",email:"[email protected]",address:"Toshkent shahri, Navoiy ko'chasi 69"},"uz-an":{keyword:"Andijon",name:"Andijon viloyati",phone:"+998 74 222-22-22",email:"[email protected]",address:"Andijon shahri, Bobur shox ko'chasi"},"uz-ng":{keyword:"Namangan",name:"Namangan viloyati",phone:"+998 69 222-22-22",email:"[email protected]",address:"Namangan shahri, Navoiy ko'chasi"},"uz-ji":{keyword:"Jizzax",name:"Jizzax viloyati",phone:"+998 72 222-22-22",email:"[email protected]",address:"Jizzax shahri, Sharaf Rashidov ko'chasi"},"uz-si":{keyword:"Sirdaryo",name:"Sirdaryo viloyati",phone:"+998 67 222-22-22",email:"[email protected]",address:"Guliston shahri, O'zbekiston ko'chasi"},"uz-ta":{keyword:"Nurafshon",name:"Toshkent viloyati",phone:"+998 70 222-22-22",email:"[email protected]",address:"Nurafshon shahri, Toshkent yo'li"},"uz-bu":{keyword:"Buxoro",name:"Buxoro viloyati",phone:"+998 65 222-22-22",email:"[email protected]",address:"Buxoro shahri, I.Mo'minov ko'chasi"},"uz-kh":{keyword:"Xorazm",name:"Xorazm viloyati",phone:"+998 62 222-22-22",email:"[email protected]",address:"Urganch shahri, Al-Xorazmiy ko'chasi"},"uz-qr":{keyword:"Qaraqalpaqstan",name:"Qoraqalpog'iston Respublikasi",phone:"+998 61 222-22-22",email:"[email protected]",address:"Nukus shahri, Qoraqalpog'iston ko'chasi"},"uz-nw":{keyword:"Navoiy",name:"Navoiy viloyati",phone:"+998 79 222-22-22",email:"[email protected]",address:"Navoiy shahri, Islom Karimov ko'chasi"},"uz-sa":{keyword:"Samarqand",name:"Samarqand viloyati",phone:"+998 66 222-22-22",email:"[email protected]",address:"Samarqand shahri, Ko'ksaroy maydoni"},"uz-qa":{keyword:"Qashqadaryo",name:"Qashqadaryo viloyati",phone:"+998 75 222-22-22",email:"[email protected]",address:"Qarshi shahri, Mustaqillik shox ko'chasi"},"uz-su":{keyword:"Surxondaryo",name:"Surxondaryo viloyati",phone:"+998 76 222-22-22",email:"[email protected]",address:"Termiz shahri, At-Termiziy ko'chasi"}},E=()=>{const{t:a}=_(["home"]),[d,V]=u.useState("uz-tk"),[i,g]=u.useState(null),[k,b]=u.useState(!1),{data:f=[]}=Y(),{data:v=[]}=F(),r=d==="uz-tk",o=U[d],s=u.useMemo(()=>o?{...o,name:a(`home:map.regions.${d}`,{defaultValue:o.name}),address:a(`home:map.fallbackAddresses.${d}`,{defaultValue:o.address})}:null,[d,o,a]),x=u.useMemo(()=>r?null:v.find(l=>
1l.name.toLowerCase().includes((o==null?void 0:o.keyword.toLowerCase())||""))||{id:d,name:`${(o==null?void 0:o.keyword)||""} MTRK`,logo:""},[r,v,o,d]),t=r?i:x,y=r&&i?i.id:r?"":x==null?void 0:x.id,q=!!y&&!isNaN(Number(y)),{data:M}=J({id:y||""},{skip:!q}),c=M,I=(c==null?void 0:c.phone)||(s==null?void 0:s.phone)||a("home:map.tooltip.noInfo",{defaultValue:"Ma'lumot yo'q"}),C=(c==null?void 0:c.address)||(s==null?void 0:s.address)||a("home:map.tooltip.noInfo",{defaultValue:"Ma'lumot yo'q"}),S=(c==null?void 0:c.email)||(s==null?void 0:s.email)||a("home:map.tooltip.noInfo",{defaultValue:"Ma'lumot yo'q"}),w={scale:2800,center:[64.6,41.4]},T="#2563eb",m="#4f46e5",$="#3b82f6";return e.jsxs("div",{className:"w-full relative overflow-hidden bg-gray-50 dark:bg-[#050505] border border-gray-200 dark:border-white/5 shadow-2xl transition-colors duration-500 rounded-[2rem] md:rounded-[3rem] p-4 md:p-8",children:[e.jsx(n.div,{animate:{scale:[1,1.2,1],opacity:[.1,.2,.1]},transition:{duration:8,repeat:1/0,ease:"easeInOut"},className:"absolute top-1/4 left-1/4 w-[500px] h-[500px] rounded-full blur-[120px] pointer-events-none",style:{backgroundColor:T}}),e.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-12 gap-12 items-center relative z-10",children:[e.jsx("div",{className:"xl:col-span-8 relative perspective-[1200px]",children:e.jsxs(n.div,{initial:{rotateX:20,rotateY:-15,scale:.8,opacity:0}
1,whileInView:{rotateX:0,rotateY:0,scale:1,opacity:1},transition:{duration:1.2,ease:"easeOut"},whileHover:{rotateX:5,rotateY:-5,scale:1.02},viewport:{once:!0},className:"w-full aspect-[4/3] md:aspect-[16/10] relative flex items-center justify-center transform-style-3d transition-transform duration-700",children:[e.jsx(Q,{projection:"geoMercator",projectionConfig:w,className:"w-full h-full outline-none drop-shadow-2xl z-10",children:e.jsx(K,{center:w.center,zoom:1,maxZoom:1,children:e.jsx(B,{geography:H,children:({geographies:l})=>l.map(p=>{const j=p.properties["hc-key"],h=d===j;return e.jsx(X,{geography:p,onClick:()=>{V(j),g(null),b(!0)},style:{default:{fill:h?m:void 0,stroke:h?"#ffffff":void 0,strokeWidth:h?2:1,outline:"none",filter:h?`drop-shadow(0px 0px 15px ${m})`:"none",transition:"all 400ms ease"},hover:{fill:h?m:$,stroke:"#ffffff",strokeWidth:2,outline:"none",filter:`drop-shadow(0px 0px 20px ${m})`,cursor:"pointer",transition:"all 200ms ease"},pressed:{fill:"#ffffff",stroke:m,outline:"none"}},className:h?"":"fill-gray-200 dark:fill-white/5 stroke-white dark:stroke-gray-600"},p.rsmKey)})})})}),e.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(to_right,#80808020_1px,transparent_1px),linear-gradient(to_bottom,#80808020_1px,transparent_1px)] dark:bg-[linear-gradient(to_right,#80808012_1px,transparent_1px),linear-gradient(to_bottom,#80808012_1px,transparent_1px)] bg-[size:24px_24px] rounded-3xl [mask-image:radial-gradient(ellipse_60%_50%_at_50%_50%,#000_70%,transparent_100%)] -z-10"})]})}),e.jsxs("div",{className:` 2 xl:col-span-4 xl:flex xl:flex-col xl:justify-center 3 ${k?"fixed inset-0 !z-[10000] flex items-center justify-center p-4 xl:relative xl:inset-auto xl:!z-auto xl:p-0":"hidden xl:flex xl:relative"} 4 `,children:[e.jsx("div",{className:`absolute inset-0 bg-black/60 backdrop-blur-sm xl:hidden ${k?"block":"hidden"}`,onClick:()=>b(!1)}),e.jsx(G,{mode:"wait",children:e.jsxs(n.div,{initial:{opacity:0,scale:.9,x:40,rotateY:20},animate:{opacity:1,scale:1,x:0,rotateY:0},exit:{opacity:0,scale:.9,x:-40,rotateY:-20},transition:{duration:.5,type:"spring",bounce:.3},className:"w-full max-w-md xl:max-w-none bg-white/90 dark:bg-[#0f0f0f]/90 xl:bg-white/70 xl:dark:bg-black/40 backdrop-blur-2xl rounded-[2rem] p-6 lg:p-8 border border-gray-200 dark:border-white/10 shadow-2xl xl:shadow-xl dark:shadow-[0_0_50px_rgba(0,0,0,0.5)] relative overflow-y-auto group transition-colors flex flex-col min-h-[400px] max-h-[85vh] xl:max-h-[600px] scrollbar-hide z-10",children:[e.jsx("button",{onClick:()=>b(!1),className:"absolute top-4 right-4 z-20 p-2 rounded-full bg-gray-100 dark:bg-white/10 text-gray-500 hover:text-gray-800 dark:hover:text-white xl:hidden transition-colors",children:e.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),e.jsx("div",{className:"absolute top-0 left-0 w-8 h-8 border-t-2 border-l-2 border-gray-300 dark:border-white/20 rounded-tl-3xl transition-colors duration-500 group-hover:border-current",style:{color:m}}),e.jsx("div",{className:"absolute top-0 right-0 w-8 h-8 border-t-2 border-r-2 border-gray-300 dark:border-white/20 rounded-tr-3xl transition-colors duration-500 group-hover:border-current",style:{color:m}}),e.jsx("div",{className:"absolute bottom-0 left-0 w-8 h-8 border-b-2 border-l-2 border-gray-300 dark:border-white/20 rounded-bl-3xl transition-colors duration-500 group-hover:border-current",style:{color:m}}),e.jsx("div",{className:"absolute bottom-0 right-0 w-8 h-8 border-b-2 border-r-2 border-gray-300 dark:border-white/20 rounded-br-3xl transition-colors duration-500 group-hover:border-current",style:{color:m}}),e.jsxs("div",{className:"flex items-center gap-4 mb-6 pb-4 border-b border-gray-200 dark:border-white/10 relative z-10 transition-colors",children:[t!=null&&t.logo?e.jsx(n.div,{initial:{rotate:-15,opacity:0},animate:{rotate:0,opacity:1},className:"w-20 h-20 shrink-0 rounded-2xl flex items-center justify-center border border-gray-200 dark:border-white/10 p-2 shadow-inner bg-cover bg-center bg-no-repeat overflow-hidden",style:{backgroundImage:"url('/tv-bg-2.webp')"},children:e.jsx("img",{src:t.logo,alt:t.name,className:"w-full h-full object-contain drop-shadow-md"})}):e.jsx(n.div,{initial:{rotate:-90,opacity:0}
4,animate:{rotate:0,opacity:1},className:"w-20 h-20 shrink-0 rounded-2xl flex items-center justify-center bg-blue-600 text-white bg-cover bg-center bg-no-repeat overflow-hidden",style:{backgroundImage:"url('/tv-bg-2.webp')",boxShadow:"0 0 30px rgba(79, 70, 229, 0.5)"},children:e.jsx(N,{size:36,className:"drop-shadow-md"})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx(n.h3,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.1},className:"text-xl font-black text-gray-900 dark:text-white leading-tight uppercase tracking-wider transition-colors break-words",children:r&&!i?a("home:map.central.title",{defaultValue:"Markaziy telekanallar"}):t==null?void 0:t.name}),r&&i?e.jsxs("button",{onClick:()=>g(null),className:"text-xs text-blue-600 dark:text-blue-400 hover:underline flex items-center gap-1 mt-1 font-bold uppercase tracking-widest transition-colors",children:["â ",a("home:map.central.back",{defaultValue:"Ro'yxatga qaytish"})]}):e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1 uppercase tracking-widest font-bold",children:s==null?void 0:s.name})]})]}),e.jsxs("div",{className:`flex-1 relative z-10 space-y-4 pr-2 ${r&&!i?"overflow-y-auto custom-scrollbar":"overflow-hidden"}`,children:[(!r||i)&&e.jsxs(n.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"space-y-3 bg-gray-100/80 dark:bg-white/5 border border-gray-200 dark:border-white/10 rounded-2xl p-4 sm:p-5 relative overflow-hidden",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(L,{className:"text-blue-500 shrink-0 mt-0.5",size:18}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[10px] font-bold text-gray-500 dark:text-gray-400 uppercase tracking-widest mb-0.5",children:a("home:map.tooltip.workingHours",{defaultValue:"Ish vaqti"})}),e.jsx("p",{className:"text-sm font-medium text-gray-800 dark:text-gray-200",children:a("home:map.tooltip.workingTime",{defaultValue:"09:00 - 18:00"})})]})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(N,{className:"text-red-500 shrink-0 mt-0.5",size:18}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[10px] font-bold text-gray-500 dark:text-gray-400 uppercase tracking-widest mb-0.5",children:a("home:map.tooltip.address",{defaultValue:"Manzil"})}),e.jsx("p",{className:"text-sm font-medium text-gray-800 dark:text-gray-200",children:C})]})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(R,{className:"text-green-500 shrink-0 mt-0.5",size:18}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[10px] font-bold text-gray-500 dark:text-gray-400 uppercase tracking-widest mb-0.5",children:a("home:map.tooltip.phone",{defaultValue:"Telefon"})}),e.jsx("p",{className:"text-sm font-medium text-gray-800 dark:text-gray-200",children:I})]})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(A,{className:"text-indigo-500 shrink-0 mt-0.5",size:18}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[10px] font-bold text-gray-500 dark:text-gray-400 uppercase tracking-widest mb-0.5",children:a("home:map.tooltip.email",{defaultValue:"E-mail"})}),e.jsx("p",{className:"text-sm font-medium text-gray-800 dark:text-gray-200",children:S})]})]}),e.jsx("div",{className:"absolute -right-8 -bottom-8 w-32 h-32 rounded-full blur-[40px] opacity-10 bg-blue-500 pointer-events-none"})]}),r&&!i&&e.jsxs(n.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"space-y-2 mt-1",children:[e.jsx("p",{className:"text-xs font-bold text-gray-500 dark:text-gray-400 uppercase tracking-widest pl-1 mb-3",children:a("home:map.central.listTitle",{defaultValue:"Kanallar ro'yxati"})}),f.map((l,p)=>e.jsxs("button",{onClick:()=>g(l),className:"w-full text-left group flex items-center justify-between p-3 rounded-xl bg-gray-100/50 hover:bg-white dark:bg-white/5 dark:hover:bg-white/10 border border-transparent hover:border-gray-200 dark:hover:border-white/20 transition-all duration-300",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[l.logo?e.jsx("div",{className:"w-12 h-12 shrink-0 rounded-xl p-1.5 bg-cover bg-center bg-no-repeat shadow-inner flex items-center justify-center overflow-hidden",style:{backgroundImage:"url('/tv-bg-2.webp')"},children:e.jsx("img",{src:l.logo,alt:l.name,className:"w-full h-full object-contain drop-shadow-sm"})}):e.jsx("div",{className:"w-12 h-12 shrink-0 rounded-xl flex items-center justify-center text-white bg-cover bg-center bg-no-repeat shadow-inner overflow-hidden",style:{backgroundImage:"url('/tv-bg-2.webp')"},children:e.jsx("span",{className:"text-xs font-bold drop-shadow-md",children:"TV"})}),e.jsx("span",{className:"font-semibold text-sm text-gray-800 dark:text-gray-200 group-hover:text-blue-600 dar
4k:group-hover:text-blue-400 transition-colors",children:l.name})]}),e.jsx("div",{className:"w-8 h-8 rounded-full flex items-center justify-center bg-transparent text-gray-400 group-hover:bg-blue-50 dark:group-hover:bg-blue-900/30 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors",children:e.jsx(O,{size:12})})]},l.id)),f.length===0&&e.jsx("p",{className:"text-sm text-gray-500 text-center py-4",children:a("home:map.central.notFound",{defaultValue:"Kanallar topilmadi"})})]}),(!r&&x||r&&i)&&e.jsxs(n.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},className:"flex gap-3 mt-4",children:[e.jsxs(z,{to:`/live/${(t==null?void 0:t.slug)||(t==null?void 0:t.id)}`,className:"flex-1 relative overflow-hidden group flex items-center justify-center gap-2 bg-red-600 text-white font-bold py-3.5 px-2 rounded-xl transition-transform hover:scale-[1.02] active:scale-95 shadow-lg shadow-red-600/30 text-center",children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-red-600 to-red-500 transition-opacity group-hover:opacity-0"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-red-500 to-red-400 opacity-0 group-hover:opacity-100 transition-opacity"}),e.jsx("div",{className:"w-2 h-2 rounded-full bg-white animate-pulse relative z-10 shrink-0"}),e.jsx("span",{className:"relative z-10 uppercase tracking-wider text-[11px] sm:text-xs",children:a("home:map.tooltip.live",{defaultValue:"Jonli efir"})})]}),e.jsx(z,{to:`/organization/tv/${(t==null?void 0:t.slug)||(t==null?void 0:t.id)}`,className:"flex-1 relative overflow-hidden group flex items-center justify-center gap-2 bg-gray-100 dark:bg-white/5 hover:bg-gray-200 dark:hover:bg-white/10 text-gray-800 dark:text-white font-bold py-3.5 px-2 rounded-xl transition-all border border-gray-200 dark:border-white/10 text-center",children:e.jsx("span",{className:"relative z-10 uppercase tracking-wider text-[11px] sm:text-xs",children:a("home:map.tooltip.details",{defaultValue:"Batafsil"})})})]})]})]},d+(i?i.id:""))})]})]})]})},te=()=>{const{t:a}=_(["home"]);return e.jsxs("section",{className:"container py-8 md:py-12",children:[e.jsxs(n.div,{initial:{opacity:0,y:-20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"flex flex-col items-center justify-center text-center mb-10 md:mb-14",children:[e.jsx("h2",{className:"text-3xl md:text-5xl font-black text-gray-900 dark:text-white tracking-tight mb-4",children:a("home:map.title",{defaultValue:"MTRK telekanallari tarmog'i"})}),e.jsx("p",{className:"text-gray-500 dark:text-gray-400 font-medium text-lg max-w-2xl",children:a("home:map.description",{defaultValue:"O'zbekiston bo'ylab joylashgan markaziy va hududiy telekanallar tarmog'ining interaktiv xaritasi"})})]}),e.jsx("div",{className:"w-full",children:e.jsx(E,{})})]})};export{te 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.