PageSourceSearch

https://janapost.kz/_nuxt/CrY2Soyr.js

js janapost.kz collected 2026-10-05 23:15:58 UTC 7,946 bytes, 1 lines download raw bytes

1import{_ as E}from"./Xo3C3YKG.js";import{_ as q}from"./DgIMikxj.js";import{a2 as T,d as M,u as W,s as z,m as O,j as _,a3 as R,p as F,g as H,c as i,b as t,F as y,a as o,e as k,t as x,$ as Z,y as D,w as B,r as $,x as K,i as j,f as U,a1 as G,k as A,o as d}from"./64dsKTIj.js";import{P as J}from"./Cln64ZCx.js";import"./DgNhi84K.js";import"./DyD62bPw.js";import"./CfjGSWt3.js";const Q=l=>{for(const s in l)if(s.startsWith("aria-")||s==="role"||s==="title")return!0;return!1};const L=l=>l==="";const X=(...l)=>l.filter((s,c,u)=>!!s&&s.trim()!==""&&u.indexOf(s)===c).join(" ").trim();const V=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Y=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,c,u)=>u?u.toUpperCase():c.toLowerCase());const ee=l=>{const s=Y(l);return s.charAt(0).toUpperCase()+s.slice(1)};var w={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};const te=({name:l,iconNode:s,absoluteStrokeWidth:c,"absolute-stroke-width":u,strokeWidth:a,"stroke-width":n,size:r=w.width,color:g=w.stroke,...h},{slots:v})=>T("svg",{...w,...h,width:r,height:r,stroke:g,"stroke-width":L(c)||L(u)||c===!0||u===!0?Number(a||n||w["stroke-width"])*24/Number(r):a||n||w["stroke-width"],class:X("lucide",h.class,...l?[`lucide-${V(ee(l))}-icon`,`lucide-${V(l)}`]:["lucide-icon"]),...!v.default&&!Q(h)&&{"aria-hidden":"true"}},[...s.map(f=>T(...f)),...v.default?[v.default()]:[]]);const oe=(l,s)=>(c,{slots:u,attrs:a})=>T(te,{...a,...c,iconNode:s,name:l},u);const se=oe("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),le={class:"main-container py-14 md:py-8 flex flex-col gap-4 md:gap-8"},re={class:"text-h1 font-semibold leading-[130%] text-colorPrimaryText text-center md:text-left"},ae={class:"p-4 sm:p-6 bg-colorWhite rounded-2xl sm:rounded-3xl flex flex-col gap-4"},ne={class:"flex flex-col gap-6"},ie={class:"text-base font-semibold leading-[1.4] text-colorPrimaryText md:max-w-[80%] md:text-left whitespace-pre-line md:whitespace-nowrap text-center"},de={class:"flex flex-col gap-4"},ce={class:"flex flex-col md:flex-row gap-2"},ue=["disabled","loading"],pe={key:0,class:"bg-colorWhite rounded-2xl sm:rounded-3xl p-4 sm:p-6"},me={class:"relative"},fe={class:"flex flex-col gap-0 pt-2 pb-2"},xe={key:1,class:"bg-colorWhite rounded-2xl sm:rounded-3xl p-4 sm:p-6"},_e={class:"relative"},ge={class:"flex flex-col gap-0 pt-2 pb-2"},he={class:"relative z-1 mt-1.5 shrink-0"},ve={key:0,class:"flex h-7 w-7 items-center justify-center rounded-full bg-colorPrBg"},we={key:1,class:"flex h-7 w-7 items-center justify-center rounded-full bg-colorPrBg"},be={key:2,class:"flex h-7 w-7 items-center justify-center rounded-full bg-colorBg"},ye={class:"flex min-w-0 flex-col pb-2"},ke={class:"text-base sm:text-[18px] xl:text-[20px] leading-[140%] text-colorPrimaryText"},Ce={class:"text-colorSecondaryText text-sm leading-[140%]"},Se={key:0,class:"mt-4 flex justify-center"},Te={key:2,class:"bg-colorWhite rounded-2xl px-4 py-4 md:py-8"},Pe={class:"flex justify-center items-center"},Be={class:"flex flex-col gap-2 items-center text-center"},$e={class:"text-colorSecondaryText md:text-[20px]"},Ee=M({__name:"track-order",setup(l){const{t:s}=W(),c=z(),u=_(!1);O({title:s("l_Order_tracking")});const a=_((c.query.code||"").toUpperCase()),n=_([]),r=_(!1),g=_(!1),h=R.closeWin,v=()=>{a.value="",n.value=[],g.value=!1,f.value=!1},f=_(!1),N=A(()=>f.value?n.value:n.value.slice(0,6)),I=A(()=>Math.max(n.value.length-6,0)),C=async m=>{const e=(m??a.value).trim().toUpperCase();if(a.value=e,g.value=!0,f.value=!1,!e.length){n.value=[];return}if(!r.value){r.value=!0;try{const b=await J("order_history",{keyWord:"",start:0,length:-1,sort:[{key:"createtime",isAsc:0}],isSimple:0,filter:{tracecode:e}});n.value=b?.data?.rows??[]}catch{n.value=[]}finally{setTimeout(()=>{r.value=!1},500)}}};return F(()=>{u.value=!0;const m=typeof c.query.code=="string"?c.query.code.trim().toUpperCase():"";m&&(a.value=m,C(m))}),H(a,m=>{m!==m.toUpperCase()&&(a.value=m.toUpperCase())}),(m,e)=>{const b=E,P=q;return d(),i("div",le,[t(u)?(d(),i(y,{key:1},[o("button",{type:"button",onClick:e[0]||(e[0]=p=>t(h)()),class:"absolute top-4 left-4 text-colorSecondaryText transition-colors"},[k(t(se),{class:"w-6 h-6"})]),o("span",re,x(t(s)("l_Order_tracking")),1),o("div",ae,[o("div",ne,[o("span",ie,x(t(s)("l_Enter_your_track_code_to_check_order_status")),1),o("div",de,[k(b,{modelValue:t(a),"onUpdate:modelValue":e[1]||(e[1]=p=>D(a)?a.value=p:null),"placeholder-key":"l_Enter_the_track_code",label:t(s)("l_Track_code"),class:"w-full","is-required":!1,"is-bordered":!0,"error-mode":"border",onKeydown:e[2]||(e[2]=Z(p=>!t(r)&&C(),["enter"]))},null,8,["modelValue","label"]),o("div",ce,[k(P,{type:"button",disabled:t(r)||!t(a).trim().length,loading:t(r),"custom-class":"font-semibold w-full sm:w-fit",onClick:e[3]||(e[3]=p=>!t(r)&&C())},{default:B(()=>[U(x(t(r)?t(s)("l_Loading"):t(s)("l_Search")),1)]),_:1},8,["disabled","loading"]),o("button",{type:"button",disabled:t(r),loading:t(r),
1class:"font-semibold w-full md:w-fit border border-colorPrimary rounded-xl text-colorPrimary px-6 py-3.5",onClick:e[4]||(e[4]=p=>v())},x(t(s)("l_Clear")),9,ue)])])])]),o("div",null,[t(r)?(d(),i("div",pe,[o("div",me,[e[10]||(e[10]=o("div",{class:"absolute left-3.5 top-6 bottom-2 w-px border-l border-dashed border-colorStroke","aria-hidden":"true"},null,-1)),o("ul",fe,[(d(),i(y,null,$(4,p=>o("li",{key:p,class:"relative flex items-start gap-4 py-2 first:pt-0 last:pb-0 animate-pulse"},[...e[9]||(e[9]=[G('<span class="relative z-1 mt-1.5 shrink-0"><span class="flex h-7 w-7 items-center justify-center rounded-full bg-colorBg"><span class="h-3 w-3 rounded-full bg-colorStroke"></span></span></span><div class="flex min-w-0 flex-col gap-2 pb-2 w-full"><div class="h-4 sm:h-5 rounded bg-colorBg w-2/3 sm:w-1/2"></div><div class="h-3 rounded bg-colorBg w-1/3 sm:w-1/4"></div></div>',2)])])),64))])])])):t(n)&&t(n).length>0?(d(),i("div",xe,[o("div",_e,[o("div",{class:K(["absolute left-3.5 top-6 w-px border-l border-dashed border-colorStroke",t(n).length>6?"bottom-20":"bottom-2"]),"aria-hidden":"true"},null,2),o("ul",ge,[(d(!0),i(y,null,$(t(N),(p,S)=>(d(),i("li",{key:S,class:"relative flex items-start gap-4 py-2 first:pt-0 last:pb-0"},[o("span",he,[S===1?(d(),i("span",ve,[...e[11]||(e[11]=[o("svg",{viewBox:"0 0 24 24",class:"h-4 w-4","aria-hidden":"true"},[o("path",{d:"M20 6L9 17l-5-5",fill:"none",stroke:"var(--colorPrimary)","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])])):S===0?(d(),i("span",we,[...e[12]||(e[12]=[o("span",{class:"h-3 w-3 rounded-full bg-colorPrimary"},null,-1)])])):(d(),i("span",be,[...e[13]||(e[13]=[o("span",{class:"h-3 w-3 rounded-full bg-colorStroke"},null,-1)])]))]),o("div",ye,[o("span",ke,x(p.message||t(s)("l_No_data")),1),o("span",Ce,x(p.operationtime),1)])]))),128))]),t(I)>0?(d(),i("div",Se,[k(P,{type:"button",variant:"outline","custom-class":"font-semibold w-full",onClick:e[5]||(e[5]=p=>f.value=!t(f))},{default:B(()=>[U(x(t(f)?t(s)("l_Show_less"):`${t(s)("l_Show_more")}`),1)]),_:1})])):j("",!0)])])):t(g)&&!t(r)?(d(),i("div",Te,[o("div",Pe,[o("div",Be,[e[14]||(e[14]=o("img",{src:"https://object.pscloud.io/front-s3/marketing/microapp/common/3acc332c-f4e0-4e70-ae79-f5f047f0e510.png",alt:"not found",class:"w-30 h-30 md:w-40 md:h-40"},null,-1)),o("span",$e,x(t(s)("l_Track_code_not_found")),1)])])])):j("",!0)])],64)):(d(),i(y,{key:0},[e[6]||(e[6]=o("div",{class:"bg-colorStroke rounded-2xl sm:rounded-3xl flex flex-col gap-4 w-[80%] mx-auto h-10 animate-pulse"},null,-1)),e[7]||(e[7]=o("div",{class:"bg-colorStroke rounded-2xl sm:rounded-3xl flex flex-col gap-4 w-[60%] mx-auto h-10 animate-pulse"},null,-1)),e[8]||(e[8]=o("div",{class:"bg-colorStroke rounded-2xl sm:rounded-3xl flex flex-col gap-4 h-80 animate-pulse"},null,-1))],64))])}}});export{Ee 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.