PageSourceSearch

https://agrokomakchi.uz/static/js/6847.413ea713.chunk.js

js agrokomakchi.uz collected 2026-10-04 01:45:39 UTC 14,678 bytes, 1 lines download raw bytes

1(self.webpackChunkagrokumakchi_web=self.webpackChunkagrokumakchi_web||[]).push([[6847],{86847:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r=n(9950),i=n(28429),s=n(80801),a=n(5355),o=n(46025),u=n(87094),l=n(41988),c=n(1203),d=n(45784),h=n(52096),f=n(49111),v=n(52867),m=n(67818),p=n(36150),g=n(61664),x=n(52097),$=n(44414);const y=()=>{var e,t,n;const y=(0,i.Zp)(),{t:b}=(0,m.Bd)(),[w,_]=(0,r.useState)(1),[j,M]=(0,r.useState)(20),[N,D]=(0,r.useState)(""),[S,k]=(0,r.useState)(null),[A]=(0,x.d7)(N,400),O=(0,r.useMemo)((()=>{const e=(A||"").trim();return 0===e.length?"":e.length>=2?e:""}),[A]),C=(0,r.useMemo)((()=>({search:O,page:w,page_size:j,region:S})),[O,w,j,S]),{data:Y,isLoading:H,isError:L}=(0,p.I)({queryKey:["agro-mineral-licenses",C],queryFn:async()=>await s.Ay.get("/agro/mineral-licenses/",{params:C}),placeholderData:g.rX}),{data:T,isLoading:z}=(0,p.I)({queryKey:["regions"],queryFn:async()=>await s.Ay.get("/common/regions/")});return(0,$.jsxs)("div",{className:"p-5",style:{minHeight:"calc(100vh - 250px)"},children:[(0,$.jsxs)("div",{className:"mb-5 flex align-center",children:[(0,$.jsx)("div",{className:"arrow-icon",onClick:()=>y("/")}),(0,$.jsx)("h2",{className:"m-0",children:b("licensed_entities")})]}),(0,$.jsxs)("div",{className:"flex justify-between items-center mb-4 xl:flex-row lg:flex-row md:flex-row flex-col",children:[(0,$.jsxs)("span",{className:"mb-2 font-medium text-gray-700",children:[b("total")," ",null!==(e=null===Y||void 0===Y?void 0:Y.count)&&void 0!==e?e:0," ",b("ta")]}),(0,$.jsxs)("div",{className:"filter-wrap mb-2",children:[(0,$.jsx)(a.A,{placeholder:b("search"),value:N,onChange:e=>{D(e.target.value),_(1)}}),(0,$.jsx)(o.A,{placeholder:b("category"),loading:z,value:S,options:(0,v.lb)(T,"title"),onChange:e=>{k(e),_(1)},allowClear:!0})]})]}),H?(0,$.jsx)(h.A,{}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(u.A,{gutter:[24,24],children:null===Y||void 0===Y||null===(t=Y.results)||void 0===t?void 0:t.map(((e,t)=>{const n=(null===e||void 0===e?void 0:e.name)||(null===e||void 0===e?void 0:e.company_name)||(null===e||void 0===e?void 0:e.entity_name),r=(e=>{var t;if("object"===typeof(null===e||void 0===e?void 0:e.region)&&null!==e&&void 0!==e&&null!==(t=e.region)&&void 0!==t&&t.title)return e.region.title;if(null!==e&&void 0!==e&&e.region_name)return e.region_name;if(null!==e&&void 0!==e&&e.region_title)return e.region_title;if(null!==e&&void 0!==e&&e.region&&Array.isArray(T)){const t=T.find((t=>t.id===e.region||t.id===Number(e.region)));if(t)return t.title}return null===e||void 0===e?void 0:e.region})(e),i=(null===e||void 0===e?void 0:e.responsible_person)||(null===e||void 0===e?void 0:e.company_owner)||(null===e||void 0===e?void 0:e.owner),s=Array.isArray(null===e||void 0===e?void 0:e.package_types)&&e.package_types.length>0?e.package_types.map((e=>e.package_type_name||e.name)).filter(Boolean).join(", "):(null===e||void 0===e?void 0:e.instruments)||(null===e||void 0===e?void 0:e.activity_type)||(null===e||void 0===e?void 0:e.license_type),a=(null===e||void 0===e?void 0:e.production_volume)||(null===e||void 0===e?void 0:e.volume)||(null===e||void 0===e?void 0:e.license_number),o=null===e||void 0===e?void 0:e.address,u=null===e||void 0===e?void 0:e.phone,c=(null===e||void 0===e?void 0:e.other_product)||(null===e||void 0===e?void 0:e.dry_product)||(null===e||void 0===e?void 0:e.wet_product)||(null===e||void 0===e?void 0:e.dirty_product);return(0,$.jsx)(l.A,{xl:6,lg:8,md:12,sm:24,xs:24,children:(0,$.jsx)("div",{className:"custom-card p-5 h-[100%] flex flex-col justify-between rounded-2xl bg-white shadow-xs border border-gray-100",children:(0,$.jsxs)("div",{children:[n&&(0,$.jsx)("h4",{className:"text-[16px] text-center font-bold mb-4 text-[#000000] uppercase leading-tight",children:n}),(0,$.jsxs)("div",{className:"text-[14px] leading-relaxed text-[#000000] space-y-2.5",children:[r&&(0,$.jsxs)("p",{className:"m-0",children:[(0,$.jsxs)("span",{className:"font-normal text-[#1e293b]",children:[b("area")," "]}),(0,$.jsx)("b",{className:"font-bold text-[#000000]",children:r})]}),i&&(0,$.jsxs)("p",{className:"m-0",children:[(0,$.jsxs)("span",{className:"font-normal text-[#1e293b]",children:[b("company_owner")," "]}),(0,$.jsx)("b",{className:"font-bold text-[#000000] uppercase",children:i})]}),s&&(0,$.jsxs)("p",{className:"m-0",children:[(0,$.jsxs)("span",{className:"font-normal text-[#1e293b]",children:[b("instruments")," "]}),(0,$.jsx)("b",{className:"font-bold text-[#000000]",children:s})]}),a&&(0,$.jsxs)("p",{className:"m-0",children:[(0,$.jsxs)("span",{className:"font-normal text-[#1e293b]",children:[b("production_volume")," "]}),(0,$.jsx)("b",{className:"font-bold text-[#000000]",children:a})]}),o&&(0,$.jsxs)("p",{className:"m-0",children:[(0,$.jsxs)("span",{className:"font-normal text-[#1e293b]",children:[b("address")," "]}),(0,$.jsx)("b",{className:"font-bold text-[#000000]",children:o})]}),u&&(0,$.jsxs)("p",{className:"m-0",children:[(0,$.jsxs)("span",{className:"font-normal text-[#1e293b]",children:[b("phone")," "]}),(0,$.jsx)("b",{className:"font-bold text-[#2563eb]",children:(0,$.jsx)("a",{href:"tel:".concat(u),className:"text-[#2563eb] hover:underline",children:u})})]}),c&&(0,$.jsxs)("p",{className:"m-0",children:[(0,$.jsxs)("span",{className:"font-normal text-[#1e293b]",children:[b("other_product")||"Boshqa mevalar:",":"," "]}),(0,$.jsx)("b",{className:"font-bold text-[#000000]",children:c})]})]})]})})},(null===e||void 0===e?void 0:e.id)||t)}))}),0===(null===Y||void 0===Y||null===(n=Y.results)||void 0===n?void 0:n.length)?(0,$.jsx)(c.A,{description:b("no_data")}):null,Array.isArray(null===Y||void 0===Y?void 0:Y.results)&&Y.results.length>0?(0,$.jsx)("div",{className:"text-right mt-5",children:(0,$.jsx)(d.A,{defaultCurrent:w,
1current:w,pageSize:j,showSizeChanger:!0,pageSizeOptions:[20,50,100],onChange:(e,t)=>{_(e),M(t)},total:null===Y||void 0===Y?void 0:Y.count})}):null]}),L?(0,$.jsx)(f.A,{}):null]})}},52867:(e,t,n)=>{"use strict";n.d(t,{Hu:()=>u,IY:()=>o,Q9:()=>a,Up:()=>d,lb:()=>s});var r=n(4159),i=n.n(r);const s=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"id";return e&&(null===e||void 0===e?void 0:e.map((e=>({label:"function"===typeof t?t(e):e[t],value:e[n]}))))||[]};function a(e){if(!e)return"";const t=null===e||void 0===e?void 0:e.match(/v=([a-zA-Z0-9_-]+)/),n=null===e||void 0===e?void 0:e.match(/youtu\.be\/([a-zA-Z0-9_-]+)/),r=null===e||void 0===e?void 0:e.match(/youtube\.com\/shorts\/([a-zA-Z0-9_-]+)/);return t&&(null===t||void 0===t?void 0:t.length)>1?t[1]:n&&n.length>1?n[1]:r&&r.length>1?r[1]:""}const o=(e,t)=>i()(new Date(e)).format(t||"YYYY-MM-DD ");function u(e){return(""+e).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")}const l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=Number(e);return Number.isFinite(n)?n.toFixed(t).replace(/\.0+$/,""):"\u2014"},c=(e,t,n)=>{const r=Number(e),i=(e=>String(e||"").trim().toLowerCase())(t);if(!Number.isFinite(r))return{v:"\u2014",u:""};if("g"===i||i.includes("gram"))return{v:l(r/1e3),u:"kg"};if("kg"===i||i.includes("\u043a\u0438\u043b")||i.includes("kilo"))return{v:l(r),u:"kg"};if(i.includes("piece")||i.includes("pcs")||i.includes("dona")){const e="function"===typeof n?n("pieces"):"dona";return r>=1e6?{v:l(r/1e6),u:"mln ".concat(e)}:r>=1e3?{v:l(r/1e3),u:"k ".concat(e)}:{v:l(r,0),u:e}}return{v:l(r),u:t||""}},d=(e,t,n)=>{if(!Array.isArray(e))return null;const r=e.find((e=>String(null===e||void 0===e?void 0:e.product)===t));return r?c(null===r||void 0===r?void 0:r.power,(null===r||void 0===r?void 0:r.power_measure)||(null===r||void 0===r?void 0:r.power_messure)||(null===r||void 0===r?void 0:r.power_meassure),n):null}},4159:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",s="minute",a="hour",o="day",u="week",l="month",c="quarter",d="year",h="date",f="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},x={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),s=n-i<0,a=t.clone().add(r+(s?-1:1),l);return+(-(r+(n-i)/(s?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:u,d:o,D:h,h:a,m:s,s:i,ms:r,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},$="en",y={};y[$]=p;var b="$isDayjsObject",w=function(e){return e instanceof N||!(!e||!e[b])},_=function e(t,n,r){var i;if(!t)return $;if("string"==typeof t){var s=t.toLowerCase();y[s]&&(i=s),n&&(y[s]=n,i=s);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var o=t.name;y[o]=t,i=o}return!r&&i&&($=i),i||!r&&$},j=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new N(n)},M=x;M.l=_,M.i=w,M.w=function(e,t){return j(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var N=function(){function p(e){this.$L=_(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[b]=!0}var g=p.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(M.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(v);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return M},g.isValid=function(){return!(this.$d.toString()===f)},g.isSame=function(e,t){var n=j(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return j(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<j(e)},g.$g=function(e,t,n){return M.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,r=!!M.u(t)||t,c=M.p(e),f=function(e,t){var i=M.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(o)},v=function(e,t){return M.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,p=this.$M,g=this.$D,x="set"+(this.$u?"UTC":"");switch(c){case d:return r?f(1,0):f(31,11);case l:return r?f(1,p):f(0,p+1);case u:var $=this.$locale().weekStart||0,y=(m<$?m+7:m)-$;return f(r?g-y:g+(6-y),p);case o:case h:return v(x+"Hours",0);case a:return v(x+"Minutes",1);case s:return v(x+"Seconds",2);case i:return v(x+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var n,u=M.p(e),c="set"+(this.$u?"UTC":""),f=(n={},n[o]=c+"Date",n[h]=c+"Date",n[l]=c+"Month",n[d]=c+"FullYear",n[a]=c+"Hours",n[s]=c+"Minutes",n[i]=c+"Seconds",n[r]=c+"Milliseconds",n)[u],v=u===o?this.$D+(t-this.$W):t;if(u===l||u===d){var m=this.clone().set(h,1);
vendor: 2,990 bytes, line 1
1m.$d[f](v),m.init(),this.$d=m.set(h,Math.min(this.$D,m.daysInMonth())).$d}else f&&this.$d[f](v);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[M.p(e)]()},g.add=function(r,c){var h,f=this;r=Number(r);var v=M.p(c),m=function(e){var t=j(f);return M.w(t.date(t.date()+Math.round(e*r)),f)};if(v===l)return this.set(l,this.$M+r);if(v===d)return this.set(d,this.$y+r);if(v===o)return m(1);if(v===u)return m(7);var p=(h={},h[s]=t,h[a]=n,h[i]=e,h)[v]||1,g=this.$d.getTime()+r*p;return M.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=M.z(this),s=this.$H,a=this.$m,o=this.$M,u=n.weekdays,l=n.months,c=n.meridiem,d=function(e,n,i,s){return e&&(e[n]||e(t,r))||i[n].slice(0,s)},h=function(e){return M.s(s%12||12,e,"0")},v=c||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return M.s(t.$y,4,"0");case"M":return o+1;case"MM":return M.s(o+1,2,"0");case"MMM":return d(n.monthsShort,o,l,3);case"MMMM":return d(l,o);case"D":return t.$D;case"DD":return M.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,u,2);case"ddd":return d(n.weekdaysShort,t.$W,u,3);case"dddd":return u[t.$W];case"H":return String(s);case"HH":return M.s(s,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return v(s,a,!0);case"A":return v(s,a,!1);case"m":return String(a);case"mm":return M.s(a,2,"0");case"s":return String(t.$s);case"ss":return M.s(t.$s,2,"0");case"SSS":return M.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,h,f){var v,m=this,p=M.p(h),g=j(r),x=(g.utcOffset()-this.utcOffset())*t,$=this-g,y=function(){return M.m(m,g)};switch(p){case d:v=y()/12;break;case l:v=y();break;case c:v=y()/3;break;case u:v=($-x)/6048e5;break;case o:v=($-x)/864e5;break;case a:v=$/n;break;case s:v=$/t;break;case i:v=$/e;break;default:v=$}return f?v:M.a(v)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return y[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=_(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return M.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},p}(),D=N.prototype;return j.prototype=D,[["$ms",r],["$s",i],["$m",s],["$H",a],["$W",o],["$M",l],["$y",d],["$D",h]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),j.extend=function(e,t){return e.$i||(e(t,N,j),e.$i=!0),j},j.locale=_,j.isDayjs=w,j.unix=function(e){return j(1e3*e)},j.en=y[$],j.Ls=y,j.p={},j}()}}]);

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.