PageSourceSearch

https://osonish.uz/_nuxt/Cj0EX-jn.js

js osonish.uz collected 2026-10-01 01:23:58 UTC 6,419 bytes, 1 lines download raw bytes

1import{aO as C,o as s,c as l,a as o,v as n,x,g as b,l as H,b as c,u as L,e as R,J as q,y as d,F as S,r as $,k as u,t as I,h as W}from"./CJgdbCYG.js";import{_ as M}from"./Cqt1WIJU.js";import{_ as j}from"./QfgP2PW4.js";import{_ as D}from"./DNqbJ5HW.js";import{_ as E}from"./CFSDCKxl.js";import{E as P,k as z,F as Y,t as J}from"./C3vODMtL.js";import{_ as U}from"./DlAUqK2U.js";import"./CPeoi3VU.js";import"./CjpYTVQz.js";import"./6ExYcAg8.js";import"./CMkZt1FH.js";import"./BneoU5Gx.js";import"./Bpv9UY1P.js";import"./DNFYb-Ji.js";import"./B2sHi2SD.js";import"./B4pTi5LJ.js";const Z=C("/img/mobile/logo-mark.png"),G=C("/img/mobile/logo-full.png"),K={key:0,style:{display:"flex",alignItems:"center",gap:"8px"}},Q=["width","height"],X={style:{display:"flex",flexDirection:"column",gap:"1px"}},ee={__name:"MLogo",props:{tagline:{type:Boolean,default:!0},variant:{type:String,default:"auto"},height:{type:[Number,String],default:32}},setup(p){const r=p,a=H(()=>Number(r.height));return(m,h)=>p.variant==="light"?(s(),l("div",K,[o("div",{style:x({width:n(a)+"px",height:n(a)+"px",borderRadius:"50%",background:"#fff",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0})},[o("img",{src:Z,alt:"",width:n(a)*.78,height:n(a)*.78,style:{objectFit:"contain",display:"block"}},null,8,Q)],4),o("div",X,[o("span",{style:x({fontFamily:"var(--font-display)",fontWeight:800,fontSize:n(a)*.52+"px",color:"#fff",letterSpacing:"-0.5px",lineHeight:1})},"OSON ISH",4),p.tagline?(s(),l("span",{key:0,style:x({fontFamily:"var(--font-ui)",fontSize:n(a)*.27+"px",color:"rgba(255,255,255,0.75)",letterSpacing:"0.4px",fontWeight:600})},"BIZ BILAN BARCHASI OSON",4)):b("",!0)])])):(s(),l("img",{key:1,src:G,alt:"Oson Ish — biz bilan barchasi oson",style:x({height:n(a)+"px",width:"auto",display:"block"})},null,4))}},te={key:0,style:{position:"absolute",top:"8px",right:"8px",width:"8px",height:"8px",borderRadius:"999px",background:"var(--danger)",border:"2px solid var(--surface-2)"}},oe={__name:"MIconButton",props:{icon:{type:String,required:!0},badge:{type:Boolean,default:!1}},emits:["click"],setup(p){return(r,a)=>{const m=M;return s(),l("button",{style:{width:"40px",height:"40px",borderRadius:"12px",background:"var(--surface-2)",position:"relative",display:"flex",alignItems:"center",justifyContent:"center"},onClick:a[0]||(a[0]=h=>r.$emit("click"))},[c(m,{name:p.icon,size:20,color:"var(--text-2)"},null,8,["name"]),p.badge?(s(),l("span",te)):b("",!0)])}}},ne={class:"oi-page"},ie={class:"oi-scroll scroll-hide"},ae={class:"oi-top"},se={class:"oi-top-row"},le={style:{display:"flex",gap:"8px"}},re={class:"oi-search-filter"},ce={style:{padding:"14px 0 8px"}},de={class:"oi-section-head"},pe={class:"oi-hscroll scroll-hide"},ue=["onClick"],ve={style:{flex:1,minWidth:0}},me={class:"oi-sector-name"},ge={class:"oi-sector-count"},fe={style:{padding:"8px 16px"}},he={class:"oi-ai-icon"},ye={style:{padding:"16px 16px 24px",display:"flex",flexDirection:"column",gap:"12px"}},_e={key:0,style:{textAlign:"center",padding:"24px",color:"var(--text-3)",fontSize:"13px"}},xe={key:1,style:{textAlign:"center",padding:"32px",color:"var(--text-3)",fontSize:"14px"}},be={key:2,style:{textAlign:"center",padding:"12px 0",color:"var(--text-3)",fontSize:"13px"}},ke={__name:"index",setup(p){L({title:"Oson Ish — Mobile"});const r=u([]),a=u([]),m=u(!0),h=u(1),y=u(!1),g=u(!1),k=u(null);R(async()=>{try{const[t,e]=await Promise.all([P(),z({per_page:20,with_count_sum:1,page:1})]);a.value=t,r.value=e.items,y.value=r.value.length<e.total}catch(t){console.error("Home load error:",t)}finally{m.value=!1,q(()=>T())}});function T(){if(!k.value)return;new IntersectionObserver(async e=>{e[0].isIntersecting&&y.value&&!g.value&&await w()},{rootMargin:"200px"}).observe(k.value)}async function w(){if(!(g.value||!y.value)){g.value=!0;try{const t=h.value+1,e=await z({per_page:20,with_count_sum:1,page:t});e.items.length&&(r.value.push(...e.items),h.value=t),y.value=r.value.length<e.total}catch(t){console.error("Load more error:",t)}finally{g.value=!1}}}async function B(t){const e=r.value.find(v=>v.id===t.id);if(!e)return;const f=e.saved;e.saved=!f;try{e.saved=await J({...e,saved:f})}catch{e.saved=f}}function O(t){d(`/mobile/vacancy/${t.id}`)}function N(t){d({path:"/mobile/search",query:{sector:t.id}})}return(t,e)=>{const f=ee,v=oe,_=M,V=j,A=D,F=E;return s(),l("div",ne,[o("div",ie,[o("div",ae,[o("div",se,[c(f,{height:32}),o("div",le,[c(v,{icon:"bookmark",onClick:e[0]||(e[0]=i=>("navigateTo"in t?t.navigateTo:n(d))("/mobile/saved"))}),c(v,{icon:"bell",badge:"",onClick:e[1]||(e[1]=i=>("navigateTo"in t?t.navigateTo:n(d))("/mobile/notifications"))}),c(v,{icon:"close",onClick:e[2]||(e[2]=i=>("navigateTo"in t?t.navigateTo:n(d))("/mobile/logout"))})])]),o("button",{class:"oi-search",onClick:e[3]||(e[3]=i=>("navigateTo"in t?t.navigateTo:n(d))("/mobile/search"))},[c(_,{name:"search",size:20,color:"var(--text-3)"}),e[6]||(e[6]=o("span",{class:"oi-search-ph"},"Vakansiya, kompaniya...",-1)),o("span",re,[c(_,{name:"filter",size:18,color:"#fff"})])])]),o("div",ce,[o("div",de,[e[7]||(e[7]=o("div",{class:"oi-section-title"},"Sohalar bo'yicha",-1)),o("button",{class:"oi-link",onClick:e[4]||(e[4]=i=>("navigateTo"in t?t.navigateTo:n(d))("/mobile/sectors"))},"Barchasi →")]),o("div",pe,[(s(!0),l(S,null,$(n(a),i=>(s(),l("button",{key:i.id,class:"oi-sector-card",onClick:Se=>N(i)},[c(V,{icon:i.icon,color:"var(--brand-600)",size:40},null,8,["icon"]),o("div",ve,[o("div",me,I(i.name),1),o("div",ge,"Vakansiyalar: "+I(n(Y)(i.count)),1)])],8,ue))),128))])]),o("div",fe,[o("button",{class:"oi-ai-banner",onClick:e[5]||(e[5]=i=>("navigateTo"in t?t.navigateTo:n(d))("/mobile/ai-match"))},[o("div",he,[c(_,{name:"sparkle",size:22,color:"#fff"})]),e[8]||(e[8]=o("div",{style:{flex:1}},[o("div",{style:{fontSize:"14px",fontWeight:700,letterSpacing:"-0.2px"}},"Sizga mos vakansiyalar"),o("div",{style:{fontSize:"12px",color:"rgba(255,255,255,0.85)"}},"AI tanlab beradi")],-1)),c(_,{name:"chevron-right",size:20,color:"#fff"})])]),o("div",ye,[n(m)?(s(),l("div",_e,"Yuklanmoqda...")):n(r).length?b("",!0):(s(),l("div",xe,"Vakansiyalar topilmadi")),(s(!0),l(S,null,$(n(r),i=>(s(),W(A,{key:i.id,v:i,onOpen:O,onSave:B},null,8,["v"]))),128)),o("div",{ref_key:"sentinel",ref:k,style:{height:"1px"}},null,512),n(g)?(s(),l("div",be,"Yuklanmoqda...")):b("",!0)])]),c(F,{active:"home"})])}}},qe=U(ke,[["__scopeId","data-v-ac4f747c"]]);export{qe 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.