1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8467],{4755:(e,t,n)=>{n.d(t,{W:()=>l});var i=n(70309),r=n(55027),o=n(12115);let l=(0,o.forwardRef)(function({bounds:e,boundsOptions:t,center:n,children:l,className:a,id:c,placeholder:s,style:f,whenReady:d,zoom:u,...p},h){let[g]=(0,o.useState)({className:a,id:c,style:f}),[x,y]=(0,o.useState)(null),v=(0,o.useRef)(void 0);(0,o.useImperativeHandle)(h,()=>x?.map??null,[x]);let m=(0,o.useCallback)(o=>{if(null!==o&&!v.current){let l=new r.Map(o,p);v.current=l,null!=n&&null!=u?l.setView(n,u):null!=e&&l.fitBounds(e,t),null!=d&&l.whenReady(d),y((0,i.fB)(l))}},[]);(0,o.useEffect)(()=>()=>{x?.map.remove()},[x]);let b=x?o.createElement(i.dk,{value:x},l):s??null;return o.createElement("div",{...g,ref:m},b)})},4837:(e,t,n)=>{n.d(t,{BJ:()=>u,C4:()=>h,dZ:()=>p,mA:()=>g,zi:()=>d});var i=n(95155),r=n(55027),o=n.n(r),l=n(64269),a=n(72089);let c={new:"Yangi",accepted:"Qabul qilindi",task_sent:"Vazifa yuborildi",completed:"Bajarildi",rejected:"Rad etildi"};function s(e){if(!e)return"â";let t=Math.floor((Date.now()-new Date(e).getTime())/1e3);if(t<60)return"".concat(t," soniya oldin");if(t<3600)return"".concat(Math.floor(t/60)," daqiqa oldin");if(t<86400)return"".concat(Math.floor(t/3600)," soat oldin");let n=Math.floor(t/86400);return"".concat(n," kun oldin")}function f(e){if(!e)return"â";let t=Math.floor((Date.now()-new Date(e).getTime())/1e3);if(t<3600)return"".concat(Math.floor(t/60)," daqiqa");if(t<86400)return"".concat(Math.floor(t/3600)," soat");let n=Math.floor(t/86400),i=Math.floor(t%86400/3600);return i?"".concat(n," kun ").concat(i," soat"):"".concat(n," kun")}let d=e=>{let t={green:"#22c55e",yellow:"#f59e0b",red:"#ef4444"}[e]||"#6b7280";return o().divIcon({html:'\n <div style="position:relative;width:36px;height:44px;">\n <svg width="36" height="44" viewBox="0 0 36 44" xmlns="http://www.w3.org/2000/svg">\n <path d="M18 43C18 43 33 26.5 33 17A15 15 0 1 0 3 17c0 9.5 15 26 15 26z"\n fill="'.concat(t,'" stroke="#fff" stroke-width="2.5"\n style="filter:drop-shadow(0 2px 3px rgba(0,0,0,.35))"/>\n <g fill="#fff" transform="translate(9.5,9.5)">\n <path d="M2 3h3l1.1-1.6h4.8L12 3h3a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z" opacity="0.95"/>\n <circle cx="8.5" cy="9" r="3.6" fill="').concat(t,'"/>\n <circle cx="8.5" cy="9" r="1.7" fill="#fff"/>\n </g>\n </svg>\n </div>\n '),className:"",iconSize:[36,44],iconAnchor:[18,44],popupAnchor:[0,-40]})},u=()=>o().divIcon({html:'\n <div style="\n width:28px;height:28px;\n background:#8b5cf6;\n border:3px solid white;\n border-radius:50%;\n box-shadow:0 2px 6px rgba(0,0,0,0.3);\n display:flex;align-items:center;justify-content:center;\n color:white;font-size:14px;font-weight:bold;\n ">!</div>\n ',className:"",iconSize:[28,28],iconAnchor:[14,14]}),p=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t?60:51;return o().divIcon({html:'<img src="'.concat((0,a.Q)({moving:e}),'" width="').concat(n,'" height="').concat(n,'"\n style="display:block;').concat(t?"filter:drop-shadow(0 0 3px #fff);":"",'transition:all .2s" />'),className:"",iconSize:[n,n],iconAnchor:[n/2,n/2]})};function h(e){var t;let{camera:n,mediaBase:r,subtitle:o}=e,l=null!=n.fill_level,a=Math.round(null!=(t=n.fill_level)?t:0),c="green"===n.fill_status?"#22c55e":"yellow"===n.fill_status?"#f59e0b":"red"===n.fill_status?"#ef4444":"#9ca3af";return(0,i.jsxs)("div",{style:{fontFamily:"inherit",fontSize:13,width:240},children:[n.last_snapshot?(0,i.jsxs)("div",{style:{position:"relative",borderRadius:8,overflow:"hidden",marginBottom:8},children:[(0,i.jsx)("img",{src:"".concat(r,"/media/").concat(n.last_snapshot),alt:"snapshot",style:{width:"100%",height:130,objectFit:"cover",display:"block"}}),(0,i.jsx)("div",{style:{position:"absolute",bottom:0,left:0,right:0,background:"linear-gradient(to top, rgba(0,0,0,0.75), transparent)",padding:"16px 8px 6px"},children:(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,i.jsx)("div",{style:{flex:1,height:6,background:"rgba(255,255,255,0.3)",borderRadius:4},children:(0,i.jsx)("div",{style:{width:"".concat(a,"%"),height:"100%",background:c,borderRadius:4}})}),(0,i.jsx)("span",{style:{color:"#fff",fontWeight:700,fontSize:12},children:l?"".concat(a,"%"):"o'lchanmadi"})]})})]}):(0,i.jsxs)("div",{style:{background:"#f3f4f6",borderRadius:8,height:80,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",marginBottom:8,gap:4},children:[(0,i.jsx)("span",{style:{fontSize:24},children:"\uD83D\uDCF7"}),(0,i.jsx)("div",{style:{width:"80%",height:6,background:"#e5e7eb",borderRadius:4},children:(0,i.jsx)("div",{style:{width:"".concat(a,"%"),height:"100%",background:c,borderRadius:4}})}),(0,i.jsx)("span",{style:{fontSize:11,color:"#6b7280",fontWeight:600},children:l?"".concat(a,"% to'lgan"):"Hali o'lchanmadi"})]}),(0,i.jsx)("p",{style:{fontWeight:700,color:"#111827",marginBottom:4,lineHeight:1.3},children:n.name}),o&&(0,i.jsx)("p",{style:{fontSize:11,color:"#2563eb",fontWeight:600,marginBottom:4},children:o}),n.address&&(0,i.jsxs)("p",{style:{fontSize:11,color:"#6b7280",marginBottom:6,display:"flex",gap:4},children:[(0,i.jsx)("span",{children:"\uD83D\uDCCD"}),(0,i.jsx)("span",{children:n.address})]}),(0,i.jsxs)("div",{style:{borderTop:"1px solid #f3f4f6",paddingTop:6,display:"flex",flexDirection:"column",gap:3},children:[(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",fontSize:11},children:[(0,i.jsx)("span",{style:{color:"#9ca3af"},children:"So'nggi tahlil:"}),(0,i.jsx)("span",{style:{color:"#374151",fontWeight:500},children:s(n.last_analyzed_at)})]}),"red"===n.fill_status&&n.full_since&&(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",fontSize:11},children:[(0,i.jsx)("span",{style:{color:"#9ca3af"},children:"To'lib turgan:"}),(0,i.jsx)("span",{style:{color:"#ef4444",fontWeight:600},children:f(n.full_since)})]}),"red"===n.fill_status&&!n.full_since&&n.last_analyzed_at&&(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",fontSize:11},children:[(0,i.jsx)("span",{style:{color:"#9ca3af"},children:"To'lgan:"}),(0,i.jsx)("span",{style:{color:"#ef4444",fontWeight:600},children:f(n.last_analyzed_at)})]})]})]})}
1function g(e){let{complaint:t,mediaBase:n,subtitle:r}=e,o=t.full_name||(t.telegram_id?"Telegram #".concat(t.telegram_id):"Noma'lum fuqaro"),a=c[t.status]||t.status,d="new"===t.status?"#3b82f6":"accepted"===t.status?"#f59e0b":"task_sent"===t.status?"#8b5cf6":"completed"===t.status?"#22c55e":"#ef4444";return(0,i.jsxs)("div",{style:{fontFamily:"inherit",fontSize:13,width:240},children:[t.photo_path?(0,i.jsxs)("div",{style:{position:"relative",borderRadius:8,overflow:"hidden",marginBottom:8},children:[(0,i.jsx)("img",{src:"".concat(n,"/media/").concat(t.photo_path),alt:"murojaat",style:{width:"100%",height:140,objectFit:"cover",display:"block"}}),(0,i.jsxs)("div",{style:{position:"absolute",bottom:0,left:0,right:0,background:"linear-gradient(to top, rgba(0,0,0,0.8), transparent)",padding:"20px 8px 6px"},children:[(0,i.jsxs)("p",{style:{color:"#fff",fontSize:11,fontWeight:600,margin:0},children:["\uD83D\uDD50 ",(0,l.Yq)(t.created_at)]}),(0,i.jsx)("p",{style:{color:"#d1d5db",fontSize:11,margin:"2px 0 0"},children:s(t.created_at)})]}),(0,i.jsx)("div",{style:{position:"absolute",top:6,left:6,background:d,color:"#fff",fontSize:10,fontWeight:700,padding:"2px 7px",borderRadius:99},children:a})]}):(0,i.jsxs)("div",{style:{background:"#f3f4f6",borderRadius:8,padding:"10px 8px",marginBottom:8,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,i.jsxs)("div",{children:[(0,i.jsxs)("p",{style:{fontSize:11,color:"#6b7280",margin:0},children:["\uD83D\uDD50 ",(0,l.Yq)(t.created_at)]}),(0,i.jsx)("p",{style:{fontSize:11,color:"#9ca3af",margin:"2px 0 0"},children:s(t.created_at)})]}),(0,i.jsx)("span",{style:{background:d,color:"#fff",fontSize:10,fontWeight:700,padding:"2px 7px",borderRadius:99},children:a})]}),(0,i.jsxs)("p",{style:{fontWeight:700,color:"#111827",marginBottom:4,lineHeight:1.3},children:["\uD83D\uDC64 ",o]}),r&&(0,i.jsx)("p",{style:{fontSize:11,color:"#2563eb",fontWeight:600,marginBottom:4},children:r}),t.address&&(0,i.jsxs)("p",{style:{fontSize:11,color:"#6b7280",marginBottom:6,display:"flex",gap:4},children:[(0,i.jsx)("span",{children:"\uD83D\uDCCD"}),(0,i.jsx)("span",{children:t.address})]}),"completed"!==t.status&&(0,i.jsx)("div",{style:{background:"#fef2f2",border:"1px solid #fecaca",borderRadius:6,padding:"6px 8px",marginTop:4},children:(0,i.jsxs)("p",{style:{fontSize:11,color:"#dc2626",fontWeight:600,margin:0},children:["â³ Tozalanmagan: ",f(t.created_at)]})})]})}},5384:(e,t,n)=>{n.d(t,{e:()=>a});var i=n(70055),r=n(85452),o=n(80514),l=n(55027);let a=(0,i.X3)(function({url:e,...t},n){let i=new l.TileLayer(e,(0,r.P)(t,n));return(0,o.Q)(i,n)},function(e,t,n){let{opacity:i,zIndex:r}=t;null!=i&&i!==n.opacity&&e.setOpacity(i),null!=r&&r!==n.zIndex&&e.setZIndex(r);let{url:o}=t;null!=o&&o!==n.url&&e.setUrl(o)})},17054:(e,t,n)=>{n.d(t,{Po:()=>l,ko:()=>o});var i=n(70309),r=n(12115);function o(){return(0,i.U$)().map}function l(e){let t=o();return(0,r.useEffect)(function(){return t.on(e),function(){t.off(e)}},[t,e]),t}},26264:(e,t,n)=>{n.d(t,{p:()=>a});var i=n(70055),r=n(80514),o=n(70309),l=n(55027);let a=(0,i.Nq)(function({position:e,...t},n){let i=new l.Marker(e,t);return(0,r.Q)(i,(0,o.W4)(n,{overlayContainer:i}))},function(e,t,n){t.position!==n.position&&e.setLatLng(t.position),null!=t.icon&&t.icon!==n.icon&&e.setIcon(t.icon),null!=t.zIndexOffset&&t.zIndexOffset!==n.zIndexOffset&&e.setZIndexOffset(t.zIndexOffset),null!=t.opacity&&t.opacity!==n.opacity&&e.setOpacity(t.opacity),null!=e.dragging&&t.draggable!==n.draggable&&(!0===t.draggable?e.dragging.enable():e.dragging.disable())})},30525:(e,t,n)=>{n.d(t,{m:()=>a});var i=n(70055),r=n(80514),o=n(55027),l=n(12115);let a=(0,i.wk)(function(e,t){let n=new o.Tooltip(e,t.overlayContainer);return(0,r.Q)(n,t)},function(e,t,{position:n},i){(0,l.useEffect)(function(){let r=t.overlayContainer;if(null==r)return;let{instance:o}=e,l=e=>{e.tooltip===o&&(null!=n&&o.setLatLng(n),o.update(),i(!0))},a=e=>{e.tooltip===o&&i(!1)};return r.on({tooltipopen:l,tooltipclose:a}),r.bindTooltip(o),function(){r.off({tooltipopen:l,tooltipclose:a}),null!=r._map&&r.unbindTooltip()}},[e,t,i,n])})},50070:(e,t,n)=>{n.d(t,{x:()=>a});var i=n(70055),r=n(80514),o=n(70309),l=n(55027);let a=(0,i.Nq)(function({children:e,...t},n){let i=new l.LayerGroup([],t);return(0,r.Q)(i,(0,o.W4)(n,{layerContainer:i}))})},70055:(e,t,n)=>{n.d(t,{Nq:()=>p,wk:()=>h,Lt:()=>g,X3:()=>x});var i=n(12115),r=n(47650),o=n(70309);function l(e){return(0,i.forwardRef)(function(t,n){let{instance:r,context:l}=e(t).current;(0,i.useImperativeHandle)(n,()=>r);let{children:a}=t;return null==a?null:i.createElement(o.dk,{value:l},a)})}function a(e,t){let n=(0,i.useRef)(t);(0,i.useEffect)(function(){t!==n.current&&null!=e.attributionControl&&(null!=n.current&&e.attributionControl.removeAttribution(n.current),null!=t&&e.attributionControl.addAttribution(t)),n.current=t},[e,t])}function c(e,t){let n=(0,i.useRef)(void 0);(0,i.useEffect)(function(){return null!=t&&e.instance.on(t),n.current=t,function(){null!=n.current&&e.
1instance.off(n.current),n.current=null}},[e,t])}var s=n(85452),f=n(80514);function d(e,t){(0,i.useEffect)(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){t.layerContainer?.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function u(e){return function(t){let n=(0,o.U$)(),i=e((0,s.P)(t,n),n);return a(n.map,t.attribution),c(i.current,t.eventHandlers),d(i.current,n),i}}function p(e,t){return l(u((0,f.K)(e,t)))}function h(e,t){var n,l;return n=(0,f.K)(e),l=function(e,i){let r=(0,o.U$)(),l=n((0,s.P)(e,r),r);return a(r.map,e.attribution),c(l.current,e.eventHandlers),t(l.current,r,e,i),l},(0,i.forwardRef)(function(e,t){let[n,o]=(0,i.useState)(!1),{instance:a}=l(e,o).current;(0,i.useImperativeHandle)(t,()=>a),(0,i.useEffect)(function(){n&&a.update()},[a,n,e.children]);let c=a._contentNode;return c?(0,r.createPortal)(e.children,c):null})}function g(e,t){var n;return l((n=(0,f.K)(e,t),function(e){let t=(0,o.U$)(),r=n((0,s.P)(e,t),t);c(r.current,e.eventHandlers),d(r.current,t);var l=r.current;let a=(0,i.useRef)(void 0);return(0,i.useEffect)(function(){if(e.pathOptions!==a.current){let t=e.pathOptions??{};l.instance.setStyle(t),a.current=t}},[l,e]),r}))}function x(e,t){var n;return n=u((0,f.K)(e,t)),(0,i.forwardRef)(function(e,t){let{instance:r}=n(e).current;return(0,i.useImperativeHandle)(t,()=>r),null})}},70309:(e,t,n)=>{n.d(t,{U$:()=>a,W4:()=>o,dk:()=>l,fB:()=>r});var i=n(12115);function r(e){return Object.freeze({__version:1,map:e})}function o(e,t){return Object.freeze({...e,...t})}let l=(0,i.createContext)(null);function a(){let e=(0,i.use)(l);if(null==e)throw Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}},72089:(e,t,n)=>{n.d(t,{Q:()=>i});function i(e){return"data:image/svg+xml;charset=utf-8,".concat(encodeURIComponent(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.dim?"#9ca3af":!1===e.moving?"#64748b":"#10b981",n=e.dim?"#6b7280":!1===e.moving?"#475569":"#059669";return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">\n <defs>\n <linearGradient id="g" x1="0" y1="0" x2="0" y2="1">\n <stop offset="0" stop-color="'.concat(t,'"/><stop offset="1" stop-color="').concat(n,'"/>\n </linearGradient>\n <filter id="s" x="-20%" y="-20%" width="140%" height="140%">\n <feDropShadow dx="0" dy="1.5" stdDeviation="2" flood-color="#000" flood-opacity="0.35"/>\n </filter>\n </defs>\n <g filter="url(#s)">\n <circle cx="50" cy="50" r="46" fill="#ffffff" opacity="0.55"/>\n <circle cx="50" cy="50" r="43" fill="url(#g)"/>\n </g>\n <g>\n \x3c!-- tezlik chiziqlari --\x3e\n <rect x="15" y="40" width="14" height="3.6" rx="1.8" fill="#fff"/>\n <rect x="12" y="47" width="17" height="3.6" rx="1.8" fill="#fff"/>\n <rect x="17" y="54" width="13" height="3.6" rx="1.8" fill="#fff"/>\n \x3c!-- kabina --\x3e\n <path d="M31 37 h11 v25 h-13 v-18 a6 6 0 0 1 2-5 z" fill="#e6fff4"/>\n <rect x="32" y="40" width="9" height="8.5" rx="2" fill="#1f2937"/>\n \x3c!-- yuk qismi --\x3e\n <rect x="42" y="28" width="40" height="34" rx="4.5" fill="#fdfdfd"/>\n <rect x="52" y="32" width="2.6" height="24" rx="1.3" fill="#d7dde5"/>\n <rect x="61.7" y="32" width="2.6" height="24" rx="1.3" fill="#d7dde5"/>\n <rect x="71.4" y="32" width="2.6" height="24" rx="1.3" fill="#d7dde5"/>\n \x3c!-- shassi + g\'ildiraklar --\x3e\n <rect x="27" y="60" width="52" height="4" rx="2" fill="#1f2937"/>\n <g fill="#1f2937">\n <circle cx="37" cy="66" r="7"/><circle cx="53" cy="66" r="7"/><circle cx="70" cy="66" r="7"/>\n </g>\n <g fill="#f7fafc">\n <circle cx="37" cy="66" r="3"/><circle cx="53" cy="66" r="3"/><circle cx="70" cy="66" r="3"/>\n </g>\n </g>\n</svg>')}(e)))}},74136:(e,t,n)=>{n.d(t,{z:()=>a});var i=n(70055),r=n(80514),o=n(55027),l=n(12115);let a=(0,i.wk)(function(e,t){let n=new o.Popup(e,t.overlayContainer);return(0,r.Q)(n,t)},function(e,t,{position:n},i){(0,l.useEffect)(function(){let{instance:r}=e;function o(e){e.popup===r&&(r.update(),i(!0))}function l(e){e.popup===r&&i(!1)}return t.map.on({popupopen:o,popupclose:l}),null==t.overlayContainer?(null!=n&&r.setLatLng(n),r.openOn(t.map)):t.overlayContainer.bindPopup(r),function(){t.map.off({popupopen:o,popupclose:l}),t.overlayContainer?.unbindPopup(),t.map.removeLayer(r)}},[e,t,i,n])})}
1,80514:(e,t,n)=>{n.d(t,{K:()=>o,Q:()=>r});var i=n(12115);function r(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function o(e,t){return null==t?function(t,n){let r=(0,i.useRef)(void 0);return r.current||(r.current=e(t,n)),r}:function(n,r){let o=(0,i.useRef)(void 0);o.current||(o.current=e(n,r));let l=(0,i.useRef)(n),{instance:a}=o.current;return(0,i.useEffect)(function(){l.current!==n&&(t(a,n,l.current),l.current=n)},[a,n,t]),o}}},85452:(e,t,n)=>{n.d(t,{P:()=>i});function i(e,t){let n=e.pane??t.pane;return n?{...e,pane:n}:e}},87404:(e,t,n)=>{n.d(t,{t:()=>a});var i=n(70055),r=n(80514),o=n(70309),l=n(55027);let a=(0,i.Lt)(function({positions:e,...t},n){let i=new l.Polygon(e,t);return(0,r.Q)(i,(0,o.W4)(n,{overlayContainer:i}))},function(e,t,n){t.positions!==n.positions&&e.setLatLngs(t.positions)})}}]);
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.