1import{_ as dt,a as ct}from"./DyFnAoCN.js";import{_ as ut}from"./Dz1NQC_b.js";import{P as B}from"./Cln64ZCx.js";import{d as A,u as G,s as j,c as U,a,b as c,F as z,f as V,t as T,X as ht,e as L,y as F,w as et,k as O,j as M,o as E,a7 as X,a4 as nt,h as tt,a8 as pt,i as it,A as Ct,p as Y,C as _t,g as mt,V as ot,z as ft,n as vt,l as J}from"./64dsKTIj.js";import{u as gt}from"./BF2Vb9X_.js";import{u as xt}from"./CfjGSWt3.js";import{u as st}from"./DgNhi84K.js";import{_ as yt}from"./BwjKiLW5.js";import{_ as wt}from"./Xo3C3YKG.js";import{_ as bt}from"./O2s5XsxR.js";import"./DyD62bPw.js";const kt={class:"mt-4 bg-white p-4 rounded-lg shadow-sm"},Pt={class:"text-xs text-gray-500"},St={class:"flex items-center gap-3 mt-2"},Et={class:"text-white text-base font-bold"},Mt={class:"mx-auto w-full max-h-[70dvh] overflow-y-auto"},Ut=["innerHTML"],$t=A({__name:"ButtonSave",emits:["save"],setup(g){const{t,locale:e}=G(),i=j(),s=O(()=>i.query.country??"KZ"),r=gt(s.value),o=M(!1),h=M(null);async function u(l){const n=r[l];if(n)try{const f=await B("document/get",{id:n});if(f.result_code!==0)return;h.value=JSON.parse(JSON.stringify(f.data.document)),o.value=!0}catch(f){console.error(f)}}return(l,n)=>{const f=ut;return E(),U("div",kt,[a("p",Pt,[c(e)==="kk"?(E(),U(z,{key:0},[n[12]||(n[12]=V(" СеÑвиÑÑÑ ÒÐ¾Ð»Ð´Ð°Ð½Ñ Ð°ÑÒÑÐ»Ñ ÑÑз ",-1)),a("span",{class:"text-colorPrimary cursor-pointer",onClick:n[0]||(n[0]=m=>u("agreement"))}," Jana Post-ÑÑÒ£ ÐÐ°Ð»Ð¿Ñ ÐÑежелеÑÑмен "),n[13]||(n[13]=V(" жÓне ",-1)),a("span",{class:"text-colorPrimary cursor-pointer",onClick:n[1]||(n[1]=m=>u("public_contract"))}," ÐаÑÐ¸Ñ ÐелÑÑÑмÑаÑÑÑмен "),n[14]||(n[14]=V(" келÑÑеÑÑз ",-1))],64)):c(e)==="ky"?(E(),U(z,{key:1},[n[15]||(n[15]=V(" ÐÑзмаÑÑÑ ÐºÐ¾Ð»Ð´Ð¾Ð½ÑÑ Ð¼ÐµÐ½ÐµÐ½ Ñиз ",-1)),a("span",{class:"text-colorPrimary cursor-pointer",onClick:n[2]||(n[2]=m=>u("agreement"))}," Ð¶Ð°Ð»Ð¿Ñ ÑÑежелеÑге "),n[16]||(n[16]=V(" жана ",-1)),a("span",{class:"text-colorPrimary cursor-pointer",onClick:n[3]||(n[3]=m=>u("public_contract"))}," коомдÑк келиÑимге "),n[17]||(n[17]=V(" макÑл болоÑÑз. ",-1))],64)):c(e)==="uz"?(E(),U(z,{key:2},[n[18]||(n[18]=V(" Xizmatdan foydalanib, siz ",-1)),a("span",{class:"text-colorPrimary cursor-pointer",onClick:n[4]||(n[4]=m=>u("agreement"))}," umumiy shartlar "),n[19]||(n[19]=V(" va Jana Post ",-1)),a("span",{class:"text-primaryColor cursor-pointer",onClick:n[5]||(n[5]=m=>u("public_contract"))}," jamoat shartnomasiga "),n[20]||(n[20]=V(" rozilik bildirasiz. ",-1))],64)):c(e)==="en"?(E(),U(z,{key:3},[n[21]||(n[21]=V(" By using the service, you agree to ",-1)),a("span",{class:"text-primaryColor cursor-pointer",onClick:n[6]||(n[6]=m=>u("agreement"))}," Jana Post`s general terms "),n[22]||(n[22]=V(" and conditions and ",-1)),a("span",{class:"text-colorPrimary cursor-pointer",onClick:n[7]||(n[7]=m=>u("public_contract"))}," Public Contract ")],64)):(E(),U(z,{key:4},[n[23]||(n[23]=V(" ÐÑполÑзÑÑ ÑеÑвиÑ, Ð²Ñ ÑоглаÑаеÑеÑÑ Ñ ",-1)),a("span",{class:"text-colorPrimary cursor-pointer",onClick:n[8]||(n[8]=m=>u("agreement"))}," обÑими пÑавилами "),n[24]||(n[24]=V(" и ",-1)),a("span",{class:"text-colorPrimary cursor-pointer",onClick:n[9]||(n[9]=m=>u("public_contract"))}," пÑблиÑнÑм конÑÑакÑом Jana Post ")],64))]),a("div",St,[a("button",{type:"button",class:"w-full rounded-lg bg-colorPrimary px-4 py-3",onClick:n[10]||(n[10]=m=>l.$emit("save"))},[a("span",Et,T(c(t)("l_Save")),1)]),ht(l.$slots,"default")]),L(f,{modelValue:c(o),"onUpdate:modelValue":n[11]||(n[11]=m=>F(o)?o.value=m:null),variant:"mobile",padded:!1,"show-close":!0,"close-on-esc":!0,"close-on-overlay":!0,"title-id":"ship-contract-modal-title"},{bottom:et(()=>[a("div",Mt,[a("div",{class:"m-4",innerHTML:c(h)?.content||""},null,8,Ut),n[25]||(n[25]=a("div",{class:"h-10"},null,-1))])]),_:1},8,["modelValue"])])}}}),Q=Object.assign($t,{__name:"SectionPublicShipComponentsButtonSave"}),Dt={class:"mt-10 pb-36"},Vt={class:"text-base font-medium text-[--ds-colorTextPrimary]"},Tt={key:0,class:"mt-4 flex flex-col gap-2"},Lt={class:"text-sm text-gray-500"},Ot={value:0},Ht={value:1},Wt={class:"mt-4 flex items-center gap-2"},Bt={class:"relative flex-1 overflow-hidden rounded-2xl bg-white border border-gray-200"},At={class:"line-clamp-3 text-base font-medium"},It={key:1,class:"relative z-10 w-full p-2"},Rt={class:"relative flex-1 overflow-hidden rounded-2xl bg-white border border-gray-200"},zt={class:"line-clamp-3 text-base font-medium"},Ft={key:1,class:"relative z-10 w-full p-2"},jt={class:"mt-4 flex items-start gap-2"},Zt={class:"flex-1 text-xs text-gray-500"},Nt={class:"fixed bottom-4 left-4 right-4 md:left-1/2 md:w-[376px] md:-translate-x-1/2"},qt=A({__name:"Docs",props:{sid:{},handleActionHide:{type:Function}},setup(g){const t=g,e=j(),{t:i,locale:s}=G(),r=xt(),o=X().$toast,h=st("api"),u=M(null),l=M(null),n=O(()=>e.query.token??null),f=O(()=>e.query.country??"KZ"),m=O(()=>e.query.idcardtype??null),_=nt({sid:t.sid&&t.sid!=="null"?t.sid:null,imgidfront:"",imgidback:"",idcardtype:typeof m.value=="string"&&m.value.length?Number(m.value):0});async function w(y){return new Promise((C,d)=>
1{if(y.size<=2097152){C(y);return}const k=new FileReader;k.readAsDataURL(y),k.onload=P=>{const D=document.createElement("img");D.src=P.target?.result||"",D.onload=()=>{const H=document.createElement("canvas");let I=D.width,R=D.height;const Z=Math.sqrt(2097152/y.size);I*=Z,R*=Z,H.width=I,H.height=R,H.getContext("2d")?.drawImage(D,0,0,I,R),H.toBlob(b=>{if(!b){d(new Error("Compression failed"));return}C(new File([b],y.name,{type:y.type}))},y.type,.8)}},k.onerror=d})}function p(y){l.value=y,u.value?.click()}async function S(y){const C=y.target;if(!C?.files?.length||!l.value)return;const d=C.files[0];if(d)try{const x=await w(d),k=new FormData;k.append("file",x),r.setLoading(!0);const P=await $fetch(`${h}/public/v0/ship-address/upload?token=${n.value??""}`,{method:"POST",body:k});P?.result_code===0?_[l.value]=P.data.path:o.warning(P?.result_msg||"Upload failed")}catch(x){o.error("ERROR "+String(x))}finally{r.setLoading(!1),C&&(C.value="")}}async function $(){if(_.idcardtype===0&&(!_.imgidback||!_.imgidfront)){o.warning(_.imgidfront?i("l_Download_ID_back_view"):i("l_Download_the_front_view_of_your_ID_card"));return}if(_.idcardtype===1&&!_.imgidfront){o.warning(i("l_Download_the_passport_front_view"));return}(await B("v0/ship-address/doc-img?token="+(n.value??""),{..._})).result_code===0&&(t.handleActionHide(),_.imgidfront="",_.imgidback="",_.idcardtype=0,o.success("OK"))}return(y,C)=>{const d=dt,x=Q;return E(),U("div",Dt,[a("h3",Vt,T(c(i)("l_Documents_are_used_for_customers_clearance")),1),c(f)==="UZ"&&!c(_).sid?(E(),U("div",Tt,[a("label",Lt,T(c(i)("l_Select_document_type")),1),tt(a("select",{"onUpdate:modelValue":C[0]||(C[0]=k=>c(_).idcardtype=k),class:"w-full rounded-xl border border-gray-200 bg-white px-3 py-3 text-sm outline-none focus:border-blue-500"},[a("option",Ot,T(c(s)==="ru"?"ID каÑÑа":c(i)("l_ID_card")),1),a("option",Ht,T(c(i)("l_Passport")),1)],512),[[pt,c(_).idcardtype,void 0,{number:!0}]])])):it("",!0),a("div",Wt,[a("div",Bt,[c(_).imgidfront?(E(),U("div",It,[L(d,{src:c(_).imgidfront,width:"100%",height:"128px","class-name":"h-32 w-full object-cover rounded-lg"},null,8,["src"]),a("button",{type:"button",class:"absolute bottom-2 right-[50px] z-10 flex h-10 w-10 items-center justify-center rounded-full bg-white p-2 shadow",onClick:C[2]||(C[2]=k=>p("imgidfront"))},[...C[8]||(C[8]=[a("span",{class:"text-xl text-[#2857FC]"},[a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},[a("path",{d:"M6.92336 10.8746C6.16964 10.8746 5.48204 10.6837 4.86055 10.3019C4.23907 9.92008 3.75962 9.40847 3.4222 8.76706C3.34804 8.63544 3.33474 8.49703 3.38232 8.35181C3.4299 8.2066 3.52242 8.1071 3.65986 8.0533C3.77616 7.99953 3.89464 7.99975 4.01529 8.05398C4.13595 8.10819 4.22918 8.19494 4.29499 8.31423C4.55063 8.79307 4.91278 9.17759 5.38144 9.4678C5.85011 9.75801 6.36493 9.90312 6.92591 9.90312C7.74819 9.90312 8.44996 9.61249 9.03122 9.03123C9.61249 8.44996 9.90312 7.74819 9.90312 6.92591C9.90312 6.10362 9.61249 5.40185 9.03122 4.82059C8.44996 4.23933 7.74819 3.9487 6.92591 3.9487C6.47776 3.9487 6.05781 4.04271 5.66606 4.23074C5.27432 4.41879 4.92698 4.67995 4.62403 5.01423H5.49998C5.6403 5.01423 5.75634 5.06008 5.84809 5.15177C5.93985 5.24345 5.98573 5.3594 5.98573 5.49961C5.98573 5.63983 5.93985 5.75591 5.84809 5.84785C5.75634 5.93977 5.6403 5.98573 5.49998 5.98573H3.71366C3.505 5.98573 3.33009 5.91516 3.18892 5.774C3.04777 5.63284 2.97719 5.45792 2.97719 5.24926V3.46294C2.97719 3.32262 3.02304 3.20658 3.11473 3.11483C3.20641 3.02307 3.32236 2.97719 3.46258 2.97719C3.60279 2.97719 3.71887 3.02307 3.81081 3.11483C3.90273 3.20658 3.94869 3.32262 3.94869 3.46294V4.31068C4.34252 3.90222 4.79563 3.57787 5.30803 3.3376C5.82041 3.09733 6.3597 2.97719 6.92591 2.97719C8.02172 2.97719 8.9538 3.36136 9.72213 4.12969C10.4905 4.89802 10.8746 5.83009 10.8746 6.92591C10.8746 8.02172 10.4905 8.9538 9.72213 9.72213C8.9538 10.4905 8.02087 10.8746 6.92336 10.8746ZM1.47294 13.8518C1.06135 13.8518 0.712963 13.7092 0.427778 13.424C0.142593 13.1389 0 12.7905 0 12.3789V9.98144C0 9.80831 0.0585919 9.66318 0.175776 9.54605C0.29296 9.42892 0.43816 9.37035 0.611376 9.37035C0.784606 9.37035 0.929717 9.42892 1.04671 9.54605C1.1637 9.66318 1.2222 9.8
10831 1.2222 9.98144V12.3789C1.2222 12.4416 1.24832 12.499 1.30055 12.5513C1.35279 12.6035 1.41025 12.6296 1.47294 12.6296H3.87037C4.04351 12.6296 4.18864 12.6882 4.30577 12.8054C4.4229 12.9226 4.48146 13.0678 4.48146 13.241C4.48146 13.4142 4.4229 13.5593 4.30577 13.6763C4.18864 13.7933 4.04351 13.8518 3.87037 13.8518H1.47294ZM12.3789 13.8518H9.98144C9.80831 13.8518 9.66317 13.7932 9.54605 13.676C9.42892 13.5589 9.37035 13.4137 9.37035 13.2404C9.37035 13.0672 9.42892 12.9221 9.54605 12.8051C9.66317 12.6881 9.80831 12.6296 9.98144 12.6296H12.3789C12.4416 12.6296 12.499 12.6035 12.5513 12.5513C12.6035 12.499 12.6296 12.4416 12.6296 12.3789V9.98144C12.6296 9.80831 12.6882 9.66318 12.8054 9.54605C12.9226 9.42892 13.0678 9.37035 13.241 9.37035C13.4142 9.37035 13.5593 9.42892 13.6763 9.54605C13.7933 9.66318 13.8518 9.80831 13.8518 9.98144V12.3789C13.8518 12.7905 13.7092 13.1389 13.424 13.424C13.1389 13.7092 12.7905 13.8518 12.3789 13.8518ZM0 3.87037V1.47294C0 1.06135 0.142593 0.712963 0.427778 0.427778C0.712963 0.142593 1.06135 0 1.47294 0H3.87037C4.04351 0 4.18864 0.0585926 4.30577 0.175777C4.4229 0.29296 4.48146 0.43816 4.48146 0.611376C4.48146 0.784606 4.4229 0.929718 4.30577 1.04671C4.18864 1.16371 4.04351 1.2222 3.87037 1.2222H1.47294C1.41025 1.2222 1.35279 1.24832 1.30055 1.30055C1.24832 1.35279 1.2222 1.41026 1.2222 1.47294V3.87037C1.2222 4.04351 1.16361 4.18864 1.04643 4.30577C0.929256 4.4229 0.784055 4.48146 0.610826 4.48146C0.43761 4.48146 0.292505 4.4229 0.175511 4.30577C0.0585036 4.18864 0 4.04351 0 3.87037ZM12.6296 3.87037V1.47294C12.6296 1.41026 12.6035 1.35279 12.5513 1.30055C12.499 1.24832 12.4416 1.2222 12.3789 1.2222H9.98144C9.80831 1.2222 9.66317 1.16361 9.54605 1.04643C9.42892 0.929256 9.37035 0.784056 9.37035 0.610826C9.37035 0.43761 9.42892 0.292506 9.54605 0.175512C9.66317 0.0585043 9.80831 0 9.98144 0H12.3789C12.7905 0 13.1389 0.142593 13.424 0.427778C13.7092 0.712963 13.8518 1.06135 13.8518 1.47294V3.87037C13.8518 4.04351 13.7932 4.18864 13.676 4.30577C13.5589 4.4229 13.4137 4.48146 13.2404 4.48146C13.0672 4.48146 12.9221 4.4229 12.8051 4.30577C12.6881 4.18864 12.6296 4.04351 12.6296 3.87037Z",fill:"#6D7885"})])],-1)])]),a("button",{type:"button",class:"absolute bottom-2 right-2 z-10 flex h-10 w-10 items-center justify-center rounded-full bg-white p-2 shadow",onClick:C[3]||(C[3]=k=>c(_).imgidfront="")},[...C[9]||(C[9]=[a("span",{class:"text-xl text-[#ed1834]"},[a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},[a("path",{d:"M13.1716 1.22842C12.9761 1.03289 12.7195 0.934814 12.4502 0.959062C12.1808 0.983311 11.9269 1.12771 11.7574 1.36353L7 6.12095L2.24258 1.36353C2.07313 1.12771 1.81922 0.983311 1.54983 0.959062C1.28044 0.934814 1.02387 1.03289 0.828418 1.22842C0.632893 1.42394 0.534814 1.68051 0.560563 1.9499C0.584812 2.21929 0.729208 2.4732 0.96503 2.64265L5.72245 7.40007L0.96503 12.1575C0.729208 12.3269 0.584812 12.5808 0.560563 12.8502C0.534814 13.1196 0.632893 13.3762 0.828418 13.5716C1.02387 13.7671 1.28044 13.8652 1.54983 13.8409C1.81922 13.8167 2.07313 13.6723 2.24258 13.4365L7 8.67905L11.7574 13.4365C11.9269 13.6723 12.1808 13.8167 12.4502 13.8409C12.7195 13.8652 12.9761 13.7671 13.1716 13.5716C13.3671 13.3762 13.4652 13.1196 13.4409 12.8502C13.4167 12.5808 13.2723 12.3269 13.0365 12.1575L8.27905 7.40007L13.0365 2.64265C13.2723 2.4732 13.4167 2.21929 13.4409 1.9499C13.4652 1.68051 13.3671 1.42394 13.1716 1.22842Z",fill:"#F14635"})])],-1)])])])):(E(),U("div",{key:0,class:"relative z-10 flex cursor-pointer flex-col items-center gap-2 px-4 py-6",onClick:C[1]||(C[1]=k=>p("imgidfront"))},[C[7]||(C[7]=a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none"},[a("path",{d:"M10.2565 29.5195H19.7436V29.0259C19.7436 28.6008 19.6258 28.2069 19.3901 27.8443C19.1544 27.4817 18.8257 27.2003 18.4039 27.0003C17.8588 26.761 17.307 26.5815 16.7483 26.4618C16.1896 26.3422 15.6069 26.2823 15 26.2823C14.3932 26.2823 13.8105 26.3422 13.2518 26.4618C12.6931 26.5815 12.1413 26.761 11.5962 27.0003C11.1744 27.2003 10.8457 27.4817 10.61 27.8443C10.3743 28.2069 10.2565 28.6008 10.2565 29.0259V29.5195ZM24.327 26.9874H29.0065C29.2935 26.9874 29.5308 26.8936 29.7185 26.7061C29.9062 26.5186 30 26.2814 30 25.9946C30 25.7078 29.9062 25.4704 29.7185 25.2823C29.5308 25.0943 29.2935 25.0003 29.0065 25.0003H24.327C24.0399 25.0003 23.8026 25.0941 23.6149 25.2816C23.4272 25.4691 23.3334 25.7063 23.3334 25.9931C23.3334 26.2799 23.4272 26.5173 23.6149 26.7054C23.8026 26.8934 24.0399 26.9874 24.327 26.9874ZM14.9962 25.0003C15.6184 25.0003 16.1485 24.7825 16.5866 24.347C17.0246 23.9115 17.2436 23.3827 17.2436 22.7605C17.2436 22.1383 17.0259 21.6082 16.5903 21.1702C16.1548 20.7322 15.626 20.5132 15.0038 20.5132C14.3817 20.5132 13.8516 20.7309 13.4135 21.1664C12.9755 21.6019 12.7565 22.1308 12.7565 22.753C12.7565 23.3751 12.9742 23.9052 13.4097 24.3432C13.8453 24.7813 14.3741 25.0003 14.9962 25.0003ZM24.327 22.5003H29.0065C29.2935 22.5003 29.5308 22.4065 29.7185 22.219C29.9062 22.0315 30 21.7943 30 21.5075C30 21.2206 29.9062 20.9832 29.7185 20.7952C29.5308 20.6072 29.2935 20.5132 29.0065 20.5132H24.327C24.0399 20.5132 23.8026 20.6069 23.6149 20.7945C23.4272 20.982 23.3334 21.2191 23.3334 21.506C23.3334 21.7928 23.4272 22.0302 23.6149 22.2182C23.8026 22.4063 24.0399 22.5003 24.327 22.5003ZM7.17958 35.8336C6.33769 35.8336 5.62508 35.5419 5.04175 34.9586C4.45841 34.3752 4.16675 33.6626 4.16675 32.8207V15.5132C4.16675 14.6713 4.45841 13.9587 5.04175 13.3753C5.62508 12.792 6.33769 12.5003 7.17958 12.5003H15.8334V6.66695C15.8334 5.97948 16.0782 5.39095 16.5678 4.90137C17.0574 4.41178 17.6459 4.16699 18.3334 4.16699H21.6667C22.3542 4.16699 22.9427 4.41178 23.4323 4.90137C23.9219 5.39095 24.1667 5.97948 24.1667 6.66695V12.5003H32.8205C33.6624 12.5003 34.375 12.792 34.9583 13.3753C35.5417 13.9587 35.8333 14.6713 35.8333 15.5132V32.8207C35.8333 33.6626 35.5417 34.3752 34.9583 34.9586C34.375 35.5419 33.6624 35.8336 32.8205 35.8336H7.17958ZM7.17958 33.3336H32.8205C32.9701 33.3336 33.093 33.2855 33.1891 33.1894C33.2853 33.0932 33.3334 32.9703 33.3334 32.8207V15.5132C33.3334 15.3636 33.2853 15.2407 33.1891 15.1445C33.093 15.0484 32.9701 15.0003 32.8205 15.0003H24.1667V15.6414C24.1667 16.323 23.9204 16.91 23.4279 17.4025C22.9354 17.895 22.3483 18.1413 21.6667 18.1413H18.3334C17.6518 18.1413 17.0647 17.895 16.5722 17.4025C16.0797 16.91 15.8334 16.323 15.8334 15.6414V15.0003H7.17958C7.03 15.0003
16.90712 15.0484 6.81096 15.1445C6.71479 15.2407 6.66671 15.3636 6.66671 15.5132V32.8207C6.66671 32.9703 6.71479 33.0932 6.81096 33.1894C6.90712 33.2855 7.03 33.3336 7.17958 33.3336ZM18.3334 15.6414H21.6667V6.66695H18.3334V15.6414Z",fill:"#2857FC"})],-1)),a("p",At,T(c(i)("l_ID_card_front")),1)]))]),tt(a("div",Rt,[c(_).imgidback?(E(),U("div",Ft,[L(d,{src:c(_).imgidback,width:"100%",height:"128px","class-name":"h-32 w-full object-cover rounded-lg"},null,8,["src"]),a("button",{type:"button",class:"absolute bottom-2 right-[50px] z-10 flex h-10 w-10 items-center justify-center rounded-full bg-white p-2 shadow",onClick:C[5]||(C[5]=k=>p("imgidback"))},[...C[11]||(C[11]=[a("span",{class:"text-xl text-[#2857FC]"},[a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},[a("path",{d:"M6.92336 10.8746C6.16964 10.8746 5.48204 10.6837 4.86055 10.3019C4.23907 9.92008 3.75962 9.40847 3.4222 8.76706C3.34804 8.63544 3.33474 8.49703 3.38232 8.35181C3.4299 8.2066 3.52242 8.1071 3.65986 8.0533C3.77616 7.99953 3.89464 7.99975 4.01529 8.05398C4.13595 8.10819 4.22918 8.19494 4.29499 8.31423C4.55063 8.79307 4.91278 9.17759 5.38144 9.4678C5.85011 9.75801 6.36493 9.90312 6.92591 9.90312C7.74819 9.90312 8.44996 9.61249 9.03122 9.03123C9.61249 8.44996 9.90312 7.74819 9.90312 6.92591C9.90312 6.10362 9.61249 5.40185 9.03122 4.82059C8.44996 4.23933 7.74819 3.9487 6.92591 3.9487C6.47776 3.9487 6.05781 4.04271 5.66606 4.23074C5.27432 4.41879 4.92698 4.67995 4.62403 5.01423H5.49998C5.6403 5.01423 5.75634 5.06008 5.84809 5.15177C5.93985 5.24345 5.98573 5.3594 5.98573 5.49961C5.98573 5.63983 5.93985 5.75591 5.84809 5.84785C5.75634 5.93977 5.6403 5.98573 5.49998 5.98573H3.71366C3.505 5.98573 3.33009 5.91516 3.18892 5.774C3.04777 5.63284 2.97719 5.45792 2.97719 5.24926V3.46294C2.97719 3.32262 3.02304 3.20658 3.11473 3.11483C3.20641 3.02307 3.32236 2.97719 3.46258 2.97719C3.60279 2.97719 3.71887 3.02307 3.81081 3.11483C3.90273 3.20658 3.94869 3.32262 3.94869 3.46294V4.31068C4.34252 3.90222 4.79563 3.57787 5.30803 3.3376C5.82041 3.09733 6.3597 2.97719 6.92591 2.97719C8.02172 2.97719 8.9538 3.36136 9.72213 4.12969C10.4905 4.89802 10.8746 5.83009 10.8746 6.92591C10.8746 8.02172 10.4905 8.9538 9.72213 9.72213C8.9538 10.4905 8.02087 10.8746 6.92336 10.8746ZM1.47294 13.8518C1.06135 13.8518 0.712963 13.7092 0.427778 13.424C0.142593 13.1389 0 12.7905 0 12.3789V9.98144C0 9.80831 0.0585919 9.66318 0.175776 9.54605C0.29296 9.42892 0.43816 9.37035 0.611376 9.37035C0.784606 9.37035 0.929717 9.42892 1.04671 9.54605C1.1637 9.66318 1.2222 9.80831 1.2222 9.98144V12.3789C1.2222 12.4416 1.24832 12.499 1.30055 12.5513C1.35279 12.6035 1.41025 12.6296 1.47294 12.6296H3.87037C4.04351 12.6296 4.18864 12.6882 4.30577 12.8054C4.4229 12.9226 4.48146 13.0678 4.48146 13.241C4.48146 13.4142 4.4229 13.5593 4.30577 13.6763C4.18864 13.7933 4.04351 13.8518 3.87037 13.8518H1.47294ZM12.3789 13.8518H9.98144C9.80831 13.8518 9.66317 13.7932 9.54605 13.676C9.42892 13.5589 9.37035 13.4137 9.37035 13.2404C9.37035 13.0672 9.42892 12.9221 9.54605 12.8051C9.66317 12.6881 9.80831 12.6296 9.98144 12.6296H12.3789C12.4416 12.6296 12.499 12.6035 12.5513 12.5513C12.6035 12.499 12.6296 12.4416 12.6296 12.3789V9.98144C12.6296 9.80831 12.6882 9.66318 12.8054 9.54605C12.9226 9.42892 13.0678 9.37035 13.241 9.37035C13.4142 9.37035 13.5593 9.42892 13.6763 9.54605C13.7933 9.66318 13.8518 9.80831 13.8518 9.98144V12.3789C13.8518 12.7905 13.7092 13.1389 13.424 13.424C13.1389 13.7092 12.7905 13.8518 12.3789 13.8518ZM0 3.87037V1.47294C0 1.06135 0.142593 0.712963 0.427778 0.427778C0.712963 0.142593 1.06135 0 1.47294 0H3.87037C4.04351 0 4.18864 0.0585926 4.30577 0.175777C4.4229 0.29296 4.48146 0.43816 4.48146 0.611376C4.48146 0.784606 4.4229 0.929718 4.30577 1.04671C4.18864 1.16371 4.04351 1.2222 3.87037 1.2222H1.47294C1.41025 1.2222 1.35279 1.24832 1.30055 1.30055C1.24832 1.35279 1.2222 1.41026 1.2222 1.47294V3.87037C1.2222 4.04351 1.16361 4.18864 1.04643 4.30577C0.929256 4.4229 0.784055 4.48146 0.610826 4.48146C0.43761 4.48146 0.292505 4.4229 0.175511 4.30577C0.0585036 4.18864 0 4.04351 0 3.87037ZM12.6296 3.87037V1.47294C12.6296 1.41026 12.6035 1.35279 12.5513 1.30055C12.499 1.24832 12.4416 1.2222 12.3789 1.2222H9.98144C9.80831 1.2222 9.66317 1.16361 9.54605 1.04643C9.42892 0.929256 9.37035 0.784056 9.37035 0.610826C9.37035 0.43761 9.42892 0.292506 9.54605 0.175512C9.66317 0.0585043 9.80831 0 9.98144 0H12.3789C12.7905 0 13.1389 0.142593 13.424 0.427778C13.7092 0.712963 13.8518 1.06135 13.8518 1.47294V3.87037C13.8518 4.04351 13.7932 4.18864 13.676 4.30577C13.5589 4.4229 13.4137 4.48146 13.2404 4.48146C13.0672 4.48146 12.9221 4.4229 12.8051 4.30577C12.6881 4.18864 12.6296 4.04351 12.6296 3.87037Z",fill:"#6D7885"})])],-1)])]),a("button",{type:"button",class:"absolute bottom-2 right-2 z-10 flex h-10 w-10 items-center justify-center rounded-full bg-white p-2 shadow",onClick:C[6]||(C[6]=k=>c(_).imgidback="")},[...C[12]||(C[12]=[a("span",{class:"text-xl text-[#ed1834]"},[a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},[a("path",{d:"M13.1716 1.22842C12.9761 1.03289 12.7195 0.934814 12.4502 0.959062C12.1808 0.983311 11.9269 1.12771 11.7574 1.36353L7 6.12095L2.24258 1.36353C2.07313 1.12771 1.81922 0.983311 1.54983 0.959062C1.28044 0.934814 1.02387 1.03289 0.828418 1.22842C0.632893 1.42394 0.534814 1.68051 0.560563 1.9499C0.584812 2.21929 0.729208 2.4732 0.96503 2.64265L5.72245 7.40007L0.96503 12.1575C0.729208 12.3269 0.584812 12.5808 0.560563 12.8502C0.534814 13.1196 0.632893 13.3762 0.828418 13.5716C1.02387 13.7671 1.28044 13.8652 1.54983 13.8409C1.81922 13.8167 2.07313 13.6723 2.24258 13.4365L7 8.67905L11.7574 13.4365C11.9269 13.6723 12.1808 13.8167 12.4502 13.8409C12.7195 13.8652 12.9761 13.7671 13.1716 13.5716C13.3671 13.3762 13.4652 13.1196 13.4409 12.8502C13.4167 12.5808 13.2723 12.3269 13.0365 12.1575L8.27905 7.40007L13.0365 2.64265C13.2723 2.4732 13.4167 2.21929 13.4409 1.9499C13.4652 1.68051 13.3671 1.42394 13.1716 1.22842Z",fill:"#F14635"})])],-1)])])])):(E(),U("div",{key:0,class:"relative z-10 flex cursor-pointer flex-col items-center gap-2 px-4 py-6",onClick:C[4]||(C[4]=k=>p("imgidback"))},[C[10]||(C[10]=a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none"},[a("path",{d:"M24.327 26.9874H29.0065C29.2935 26.9874 29.5308 26.8936 29.7185 26.7061C29.9062 26.5186 30 26.2814 30 25.9946C30 25.7078 29.9062 25.4704 29.7185 25.2823C29.5308 25.0943 29.2935 25.0003 29.0065 25.0003H24.327C24.0399 25.0003 23.8026 25.0941 23.6149 25.2816C23.4272 25.4691 23.3334 25.7063 23.3334 25.9931C23.3334 26.2799 23.4272 26.5173 23.6149 26.7054C23.8026 26.8934 24.0399 26.9874 24.327 26.9874ZM24.327 22.5003H29.0065C29.2935 22.5003 29.5308 22.4065 29.7185 22.219C29.9062 22.0315 30 21.7943 30 21.5075C30 21.2206 29.9062 20.9832 29.7185 20.7952C29.5308 20.6072 29.2935 20.5132 29.0065 20.5132H24.327C24.0399 20.5132 23.8026 20.6069 23.6149 20.7945C23.4272 20.982 23.3334 21.2191 23.3334 21.506C23.3334 21.7928 23.4272 22.0302 23.6149 22.2182C23.8026 22.4063 24.0399 22.5003 24.327 22.5003ZM7.17958 35.8336C6.33769 35.8336 5.62508 35.5419 5.04175 34.9586C4.45841 34.3752 4.16675 33.6626 4.16675 32.8207V15.5132C4.16675 14.6713 4.45841 13.9587 5.04175 13.3753C5.62508 12.792 6.33769 12.5003 7.17958 12.5003H15.8334V6.66695C15.8334 5.97948 16.0782 5.39095 16.5678 4.90137C17.0574 4.41178 17.6459 4.16699 18.3334 4.16699H21.6667C22.3542 4.16699 22.9427 4.41178 23.4323 4.90137C23.9219 5.39095 24.1667 5.97948 24.1667 6.66695V12.5003H32.8205C33.6624 12.5003 34.375 12.792 34.9583 13.3753C35.5417 13.9587 35.8333 14.6713 35.8333 15.5132V32.8207C35.8333 33.6626 35.5417 34.3752 34.9583 34.9586C34.375 35.5419 33.6624 35.8336 32.8205 35.8336H7.17958ZM7.17958 33.3336H32.8205C32.9701 33.3336 33.093 33.2855 33.1891 33.1894C33.2853 33.0932 33.3334 32.9703 33.3334 32.8207V15.5132C33.3334 15.3636 33.2853 15.2407 33.1891 15.1445C33.093 15.0484 32.9701 15.0003 32.8205 15.0003H24.1667V15.6414C24.1667 16.323 23.9204 16.91 23.4279 17.4025C22.9354 17.895 22.3483 18.1413 21.6667 18.1413H18.3334C17.6518 18.1413 17.0647 17.895 16.5722 17.4025C16.0797 16.91 15.8334 16.323 15.8334 15.6414V15.0003H7.17958C7.03 15.0003
16.90712 15.0484 6.81096 15.1445C6.71479 15.2407 6.66671 15.3636 6.66671 15.5132V32.8207C6.66671 32.9703 6.71479 33.0932 6.81096 33.1894C6.90712 33.2855 7.03 33.3336 7.17958 33.3336ZM18.3334 15.6414H21.6667V6.66695H18.3334V15.6414Z",fill:"#2857FC"}),a("path",{d:"M19.5836 26.9174H10.8298C10.9683 26.6657 11.1073 26.4068 11.2463 26.1436C12.0236 26.2228 12.9446 25.7209 13.9921 24.6439C14.0233 24.7237 14.0582 24.8058 14.0962 24.8889C14.4351 25.6214 14.8725 26.0389 15.3978 26.1306C15.9361 26.2267 16.4692 25.9755 17.0159 25.3707C17.3709 25.7583 18.0998 26.1489 19.5836 26.1489C19.694 26.1489 19.8 26.1084 19.8781 26.0363C19.9562 25.9643 20.0001 25.8665 20.0001 25.7646C20.0001 25.6627 19.9562 25.5649 19.8781 25.4929C19.8 25.4208 19.694 25.3803 19.5836 25.3803C17.9889 25.3803 17.5245 24.8716 17.5011 24.6012C17.4986 24.5118 17.4623 24.426 17.3986 24.3586C17.3349 24.2912 17.2477 24.2464 17.1521 24.232C17.0564 24.2175 16.9583 24.2343 16.8746 24.2794C16.7909 24.3245 16.7269 24.3952 16.6936 24.4792C16.06 25.3558 15.6846 25.3986 15.5482 25.3755C15.1146 25.3001 14.7111 24.3701 14.5752 23.7658C14.5574 23.6895 14.5149 23.62 14.4532 23.5665C14.3916 23.5131 14.3137 23.4782 14.2301 23.4666C14.1464 23.455 14.0609 23.4671 13.9849 23.5014C13.9089 23.5358 13.846 23.5906 13.8047 23.6587C12.7738 24.8413 12.0825 25.2439 11.6488 25.3467C12.0908 24.4398 12.4209 23.6438 12.6322 22.9737C12.9873 21.8478 13.0133 21.0605 12.7108 20.5671C12.5547 20.3097 12.2272 20.0027 11.5702 20.0003H11.5571C10.7242 20.0056 10.0682 20.7353 9.75475 22.0034C9.56785 22.758 9.53713 23.5977 9.66989 24.3091C9.80265 25.0205 10.0791 25.5345 10.4795 25.841C10.2858 26.2123 10.0874 26.5749 9.8948 26.9184H8.75464C8.64418 26.9184 8.53824 26.9589 8.46013 27.031C8.38202 27.103 8.33814 27.2008 8.33814 27.3027C8.33814 27.4046 8.38202 27.5023 8.46013 27.5744C8.53824 27.6465 8.64418 27.687 8.75464 27.687H9.45279C8.86345 28.6957 8.4053 29.399 8.39801 29.4105C8.36832 29.4538 8.3483 29.5021 8.33913 29.5526C8.32997 29.6031 8.33184 29.6548 8.34463 29.7046C8.35743 29.7545 8.38089 29.8014 8.41364 29.8428C8.4464 29.8841 8.48778 29.919 8.53536 29.9454C8.58294 29.9718 8.63575 29.9891 8.6907 29.9964C8.74564 30.0037 8.80161 30.0008 8.85531 29.9878C8.90902 29.9749 8.95937 29.9521 9.00342 29.9209C9.04746 29.8898 9.0843 29.8508 9.11179 29.8063C9.1196 29.7938 9.69853 28.9037 10.3977 27.687H19.5836C19.694 27.687 19.8 27.6465 19.8781 27.5744C19.9562 27.5023 20.0001 27.4046 20.0001 27.3027C20.0001 27.2008 19.9562 27.103 19.8781 27.031C19.8 26.9589 19.694 26.9174 19.5836 26.9174ZM17.5011 24.6117V24.6012C17.5014 24.6045 17.5014 24.6084 17.5011 24.6117ZM10.5659 22.1744C10.7736 21.3348 11.1745 20.7689 11.566 20.7689C11.8393 20.7689 11.9304 20.8582 11.9825 20.9452C12.1387 21.2012 12.3219 22.1072 10.8554 25.094C10.429 24.5517 10.2837 23.3148 10.5659 22.1744Z",fill:"#2857FC"})],-1)),a("p",zt,T(c(i)("l_ID_card_back")),1)]))],512),[[Ct,c(_).idcardtype!==1]])]),a("div",jt,[a("p",Zt,T(c(i)("l_Unfield_docs_descr")),1)]),a("div",Nt,[L(x,{onSave:$})]),a("input",{ref_key:"inputRef",ref:u,type:"file",class:"hidden",accept:"image/*",onChange:S},null,544)])}}}),Gt=Object.assign(qt,{__name:"SectionPublicShipDocs"}),Jt={class:"mt-10 pb-36"},Kt={class:"text-base font-medium text-[--ds-colorTextPrimary]"},Xt={class:"mt-4 flex flex-col gap-2"},Yt={class:"fixed bottom-4 left-4 right-4 md:left-1/2 md:w-[376px] md:-translate-x-1/2"},Qt=A({__name:"Address",props:{sid:{},handleActionHide:{type:Function}},setup(g){const t=g,e=j(),{t:i}=G(),s=X().$toast,r=O(()=>e.query.token??""),o=M([]),h=M([]),u=M([]),l=M(null),n=M(null),f=M(null),m=M(null),_=M(null),w=M(""),p=nt({street:"",postno:null,janacityid:null}),S=O(()=>n.value??l.value??null),$=O(()=>o.value.map(v=>({label:v.name,value:v.aid}))),y=O(()=>h.value.map(v=>({label:v.name,value:v.aid}))),C=O(()=>u.value.map(v=>({label:v.name,value:v.aid})));async function d(){const v=await B(`v0/ship-address/address/page?token=${r.value}`,{filter:{type:2}});v.result_code===0&&(o.value=v.data.rows||[])}async function x(v){const b=await B(`v0/ship-address/address/page?token=${r.value}`,{filter:{parentid:v}});
1return b.result_code!==0?[]:b.data.rows||[]}async function k(v){const b=await B(`v0/ship-address/address/page?token=${r.value}`,{length:-1,filter:{parentid:v}});b.result_code===0&&(u.value=b.data.rows||[])}function P(){n.value=null,m.value=null,h.value=[],u.value=[],w.value="",_.value=null,p.street="",p.postno=null,p.janacityid=null}function D(){u.value=[],w.value="",_.value=null,p.street="",p.postno=null,p.janacityid=null}async function H(){const v=o.value.find(b=>b.aid===f.value);if(!v){l.value=null,P();return}l.value?.aid!==v.aid&&(l.value=v,P(),h.value=await x(v.aid),h.value.length||await k(v.aid))}async function I(){const v=h.value.find(b=>b.aid===m.value);if(!v){n.value=null,D();return}n.value?.aid!==v.aid&&(n.value=v,D(),await k(v.aid))}function R(){const v=u.value.find(b=>b.aid===_.value);if(!v){p.street="",p.postno=null,p.janacityid=null,w.value="";return}p.street=v.name,p.postno=v.pindex,p.janacityid=v.aid}async function Z(){if(!l.value){s.warning(i("l_Select_city_region"));return}if(h.value.length&&!n.value){s.warning(i("l_Select_district"));return}if(!p.street){s.warning(i("l_Select_or_fill_in_the_village_MKR"));return}if(!w.value){s.warning(i("l_Please_fill_in_your_residential_address"));return}const v=S.value??l.value,b={...p,sid:t.sid,home:w.value,province:l.value.name,city:v?.name??l.value.name,janacityid:v?.aid??l.value.aid};(await B(`v0/ship-address/add-address?token=${r.value}`,b)).result_code===0&&(t.handleActionHide(),s.success(i("l_Successfully_executed")),l.value=null,n.value=null,f.value=null,m.value=null,_.value=null,w.value="",u.value=[],p.street="",p.postno=null,p.janacityid=null)}return Y(()=>{d()}),(v,b)=>{const N=yt,rt=wt,lt=Q;return E(),U("div",Jt,[a("h3",Kt,T(c(i)("l_Enter_the_address_of_delivery_of_the_goods")),1),a("div",Xt,[L(N,{modelValue:c(f),"onUpdate:modelValue":b[0]||(b[0]=W=>F(f)?f.value=W:null),label:`${c(i)("l_Select_region")}`,options:c($),"option-label":"label","option-value":"value","option-key":"value",placeholder:c(i)("l_Select_city_region"),disabled:!c(o).length,required:!0,"trigger-class":"flex items-center justify-between gap-3 h-12 rounded-xl bg-colorWhite px-4 py-[10px] leading-[140%] text-colorPrimaryText transition-colors border border-gray-200 focus:border-colorPrimary","listbox-class":"rounded-xl bg-colorWhite overflow-hidden border border-gray-200",onChange:H},null,8,["modelValue","label","options","placeholder","disabled"]),L(N,{modelValue:c(m),"onUpdate:modelValue":b[1]||(b[1]=W=>F(m)?m.value=W:null),label:c(i)("l_Select_district"),options:c(y),"option-label":"label","option-value":"value","option-key":"value",placeholder:c(i)("l_Select_district"),disabled:!c(l)||!c(y).length,required:!0,"trigger-class":"flex items-center justify-between gap-3 h-12 rounded-xl bg-colorWhite px-4 py-[10px] leading-[140%] text-colorPrimaryText transition-colors border border-gray-200 focus:border-colorPrimary","listbox-class":"rounded-xl bg-colorWhite overflow-hidden border border-gray-200",onChange:I},null,8,["modelValue","label","options","placeholder","disabled"]),L(N,{modelValue:c(_),"onUpdate:modelValue":b[2]||(b[2]=W=>F(_)?_.value=W:null),label:c(i)("l_Village_MKR"),options:c(C),"option-label":"label","option-value":"value","option-key":"value",placeholder:c(i)("l_Select_or_fill_in_the_village_MKR"),disabled:!c(S),required:!0,"trigger-class":"flex items-center justify-between gap-3 h-12 rounded-xl bg-colorWhite px-4 py-[10px] leading-[140%] text-colorPrimaryText transition-colors border border-gray-200 focus:border-colorPrimary","listbox-class":"rounded-xl bg-colorWhite overflow-hidden border border-gray-200",onChange:R},null,8,["modelValue","label","options","placeholder","disabled"]),L(rt,{modelValue:c(w),"onUpdate:modelValue":b[3]||(b[3]=W=>F(w)?w.value=W:null),label:c(i)("l_Address"),"placeholder-key":"l_Please_fill_in_your_residential_address",disabled:!c(p).street,"is-bordered":!0,"is-required":!0},null,8,["modelValue","label","disabled"])]),a("div",Yt,[L(lt,{onSave:Z})])])}}}),te=Object.assign(Qt,{__name:"SectionPublicShipAddress"});var q=class{x;y;pressure;time;constructor(g,t,e,i){if(isNaN(g)||isNaN(t))throw new Error(`Point is invali
1d: (${g}, ${t})`);this.x=+g,this.y=+t,this.pressure=e||0,this.time=i||Date.now()}distanceTo(g){return Math.sqrt(Math.pow(this.x-g.x,2)+Math.pow(this.y-g.y,2))}equals(g){return this.x===g.x&&this.y===g.y&&this.pressure===g.pressure&&this.time===g.time}velocityFrom(g){return this.time!==g.time?this.distanceTo(g)/(this.time-g.time):0}},ee=class at{constructor(t,e,i,s,r,o){this.startPoint=t,this.control2=e,this.control1=i,this.endPoint=s,this.startWidth=r,this.endWidth=o}static fromPoints(t,e){const i=this.calculateControlPoints(t[0],t[1],t[2]).c2,s=this.calculateControlPoints(t[1],t[2],t[3]).c1;return new at(t[1],i,s,t[2],e.start,e.end)}static calculateControlPoints(t,e,i){const s=t.x-e.x,r=t.y-e.y,o=e.x-i.x,h=e.y-i.y,u={x:(t.x+e.x)/2,y:(t.y+e.y)/2},l={x:(e.x+i.x)/2,y:(e.y+i.y)/2},n=Math.sqrt(s*s+r*r),f=Math.sqrt(o*o+h*h),m=u.x-l.x,_=u.y-l.y,w=n+f==0?0:f/(n+f),p={x:l.x+m*w,y:l.y+_*w},S=e.x-p.x,$=e.y-p.y;return{c1:new q(u.x+S,u.y+$),c2:new q(l.x+S,l.y+$)}}length(){let e=0,i,s;for(let r=0;r<=10;r+=1){const o=r/10,h=this.point(o,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),u=this.point(o,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(r>0){const l=h-i,n=u-s;e+=Math.sqrt(l*l+n*n)}i=h,s=u}return e}point(t,e,i,s,r){return e*(1-t)*(1-t)*(1-t)+3*i*(1-t)*(1-t)*t+3*s*(1-t)*t*t+r*t*t*t}},ne=class{_et;constructor(){try{this._et=new EventTarget}catch{this._et=document}}addEventListener(g,t,e){this._et.addEventListener(g,t,e)}dispatchEvent(g){return this._et.dispatchEvent(g)}removeEventListener(g,t,e){this._et.removeEventListener(g,t,e)}};function ie(g,t=250){let e=0,i=null,s,r,o;const h=()=>{e=Date.now(),i=null,s=g.apply(r,o),i||(r=null,o=[])};return function(...l){const n=Date.now(),f=t-(n-e);return r=this,o=l,f<=0||f>t?(i&&(clearTimeout(i),i=null),e=n,s=g.apply(r,o),i||(r=null,o=[])):i||(i=window.setTimeout(h,f)),s}}var oe=class K extends ne{constructor(t,e={}){super(),this.canvas=t,this.velocityFilterWeight=e.velocityFilterWeight||.7,this.minWidth=e.minWidth||.5,this.maxWidth=e.maxWidth||2.5,this.throttle=e.throttle??16,this.minDistance=e.minDistance??5,this.dotSize=e.dotSize||0,this.penColor=e.penColor||"black",this.backgroundColor=e.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=e.compositeOperation||"source-over",this.canvasContextOptions=e.canvasContextOptions??{},this._strokeMoveUpdate=this.throttle?ie(K.prototype._strokeUpdate,this.throttle):K.prototype._strokeUpdate,this._handleMouseDown=this._handleMouseDown.bind(this),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this._handleTouchStart=this._handleTouchStart.bind(this),this._handleTouchMove=this._handleTouchMove.bind(this),this._handleTouchEnd=this._handleTouchEnd.bind(this),this._handlePointerDown=this._handlePointerDown.bind(this),this._handlePointerMove=this._handlePointerMove.bind(this),this._handlePointerUp=this._handlePointerUp.bind(this),this._handlePointerCancel=this._handlePointerCancel.bind(this),this._handleTouchCancel=this._handleTouchCancel.bind(this),this._ctx=t.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}dotSize;minWidth;maxWidth;penColor;minDistance;velocityFilterWeight;compositeOperation;backgroundColor;throttle;canvasContextOptions;_ctx;_drawingStroke=!1;_isEmpty=!0;_dataUrl;_dataUrlOptions;_lastPoints=[];_data=[];_lastVelocity=0;_lastWidth=0;_strokeMoveUpdate;_strokePointerId;clear(){const{_ctx:t,canvas:e}=this;t.fillStyle=this.backgroundColor,t.clearRect(0,0,e.width,e.height),t.fillRect(0,0,e.width,e.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0,this._dataUrl=void 0,this._dataUrlOptions=void 0,this._strokePointerId=void 0}redraw(){const t=this._data,e=this._dataUrl,i=this._dataUrlOptions;this.clear(),e&&this.fromDataURL(e,i),this.fromData(t,{clear:!1})}fromDataURL(t,e={}){return new Promise((i,s)=>{const r=new Image,o=e.ratio||window.devicePixelRatio||1,h=e.width||this.canvas.width/o,u=e.height||this.canvas.height/o,l=e.xOffset||0,n=e.yOffset||0;this._reset(this._getPointGroupOptions()),r.onload=()=>{this._ctx.drawImage(r,l,n,h,u),i()},r.onerror=f=>{s(f)},r.crossOrigin="anonymous",r.src=t,this._isEmpty=!1,this._dataUrl=t,this._dataUrlOptions={...e}})}toDataURL(t="image/png",e){return t==="image/svg+xml"?(typeof e!="object"&&(e=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(e))}`):(typeof e!="number"&&(e=void 0),this.canvas.toDataURL(t,e))}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none",this.canvas.style.webkitUserSelect="none";const t=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!t?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.style.webkitUserSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerDown),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this._removeMoveUpEventListeners()}_getListenerFunctions(){const t=window.document===this.canvas.ownerDocument?window:this.canvas.ownerDocument.defaultView??this.canvas.ownerDocument;return{addEventListener:t.addEventListener.bind(t),removeEventListener:t.removeEventListener.bind(t)}}_removeMoveUpEventListeners(){const{removeEventListener:t}=this._getListenerFunctions();t("pointermove",this._handlePointerMove),t("pointerup",this._handlePointerUp),t("pointercancel",this._handlePointerCancel),t("mousemove",this._handleMouseMove),t("mouseup",this._handleMouseUp),t("touchmove",this._handleTouchMove),t("touchend",this._handleTouchEnd),t("touchcancel",this._handleTouchCancel)}isEmpty(){return this._isEmpty}fromData(t,{clear:e=!0}={}){e&&this.clear(),this._fromData(t,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(t)}toData(){return this._data}_isLeftButtonPressed(t,e){return e?t.buttons===1:(t.buttons&1)===1}_pointerEventToSignatureEvent(t){return{event:t,type:t.type,x:t.clientX,y:t.clientY,pressure:"pressure"in t?t.pressure:0}}_touchEventToSignatureEvent(t){const e=t.changedTouches[0];return{event:t,type:t.type,x:e.clientX,y:e.clientY,pressure:e.force}}_handleMouseDown(t){!this._isLeftButtonPressed(t,!0)||this._drawingStroke||this._strokeBegin(this._pointerEventToSignatureEvent(t))}_handleMouseMove(t){if(!this._isLeftButtonPressed(t,!0)||!this._drawingStroke){this._strokeEnd(this._pointerEventToSignatureEvent(t),!1);return}this._strokeMoveUpdate(this._pointerEventToSignatureEvent(t))}_handleMouseUp(t){this._isLeftButtonPressed(t)||this._strokeEnd(this._pointerEventToSignatureEvent(t))}_handleTouchStart(t){t.targetTouches.length!==1||this._drawingStroke||(t.cancelable&&t.preventDefault(),this._strokeBegin(this._touchEventToSignatureEvent(t)))}_handleTouchMove(t){if(t.targetTouches.length===1){if(t.cancelable&&t.preventDefault(),!this._drawingStroke){this._strokeEnd(this._touchEventToSignatureEvent(t),!1);return}this._strokeMoveUpdate(this._touchEventToSignatureEvent(t))}}_handleTouchEnd(t){t.targetTouches.length===0&&(t.cancelable&&t.preventDefault(),this._strokeEnd(this._touchEventToSignatureEvent(t)))}_handlePointerCancel(t){this._allowPointerId(t)&&(t.preventDefault(),this._strokeEnd(this._pointerEventToSignatureEvent(t),!1))}_handleTouchCancel(t){t.cancelable&&t.preventDefault(),this._strokeEnd(this._touchEventToSignatureEvent(t),!1)}_getPointerId(t){return t.persistentDeviceId||t.pointerId}_allowPointerId(t,e=!1){return typeof this._strokePointerId>"u"?e:this._getPointerId(t)===this._strokePointerId}_handlePointerDown(t){this._drawingStroke||!this._isLeftButtonPressed(t)||!this._allowPointerId(t,!0)||(this._strokePointerId=this._getPointerId(t),t.preventDefault(),this._strokeBegin(this._pointerEventToSignatureEvent(t)))}_handlePointerMove(t){if(this._allowPointerId(t)){if(!this._isLeftButtonPressed(t,!0)||!this._drawingStroke){this._strokeEnd(this._pointerEventToSignatureEvent(t),!1);return}t.preventDefault(),this._strokeMoveUpdate(this._pointerEventToSignatureEvent(t))}}_handlePointerUp(t){this._isLeftButtonPressed(t)||!this._allowPointerId(t)||(t.preventDefault(),this._strokeEnd(this._pointerEventToSignatureEvent(t)))}_getPointGroupOptions(t){return{penColor:t&&"penColor"in t?t.penColor:this.penColor,dotSize:t&&"dotSize"in t?t.dotSize:this.dotSize,minWidth:t&&"minWidth"in t?t.minWidth:this.minWidth,maxWidth:t&&"maxWidth"in t?t.maxWidth:this.maxWidth,velocityFilterWeight:t&&"velocityFilterWeight"in t?t.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:t&&"compositeOperation"in t?t.compositeOperation:this.compositeOperation}}_strokeBegin(t){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:t,cancelable:!0})))return;const{addEventListener:i}=this._getListenerFunctions();switch(t.event.type){case"mousedown":i("mousemove",this._handleMouseMove,{passive:!1}),i("mouseup",this._handleMouseUp,{passive:!1});break;case"touchstart":i("touchmove",this._handleTouchMove,{passive:!1}),i("touchend",this._handleTouchEnd,{passive:!1}),i("touchcancel",this._handleTouchCancel,{passive:!1});break;case"pointerdown":i("pointermove",this._handlePointerMove,{passive:!1}),i("pointerup",this._handlePointerUp,{passive:!1}),i("pointercancel",this._handlePointerCancel,{passive:!1});break}this._drawingStroke=!0;const s=this._getPointGroupOptions(),r={...s,points:[]};this._data.push(r),this._reset(s),this._strokeUpdate(t)}_strokeUpdate(t){if(!this._drawingStroke)return;if(this._data.length===0){this._strokeBegin(t);return}this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:t}));const e=this._createPoint(t.x,t.y,t.pressure),i=this._data[this._data.length-1],s=i.points,r=s.length>0&&s[s.length-1],o=r?e.distanceTo(r)<=this.minDistance:!1,h=this._getPointGroupOptions(i);if(!r||!(r&&o)){const u=this._addPoint(e,h);r?u&&this._drawCurve(u,h):this._drawDot(e,h),s.push({time:e.time,x:e.x,y:e.y,pressure:e.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:t}))}_strokeEnd(t,e=!0){this._removeMoveUpEventListeners(),this._drawingStroke&&(e&&this._strokeUpdate(t),this._drawingStroke=!1,this._strokePointerId=void 0,this.dispatchEvent(new CustomEvent("endStroke",{detail:t})))}_handlePointerEvents(){this._drawingStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerDown,{passive:!1})}_handleMouseEvents(){this._drawingStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown,{passive:!1})}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart,{passive:!1})}_reset(t){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(t.minWidth+t.maxWidth)/2,this._ctx.fillStyle=t.penColor,this._ctx.globalCompositeOperation=t.compositeOperation}_createPoint(t,e,i){const s=this.canvas.getBoundingClientRect();return new q(t-s.left,e-s.top,i,new Date().getTime())}_addPoint(t,e){const{_lastPoints:i}=this;if(i.push(t),i.length>2){i.length===3&&i.unshift(i[0]);const s=this._calculateCurveWidths(i[1],i[2],e),r=ee.fromPoints(i,s);return i.shift(),r}return null}_calculateCurveWidths(t,e,i){const s=i.velocityFilterWeight*e.velocityFrom(t)+(1-i.velocityFilterWeight)*this._lastVelocity,r=this._strokeWidth(s,i),o={end:r,start:this._lastWidth};return this._lastVelocity=s,this._lastWidth=r,o}_strokeWidth(t,e){return Math.max(e.maxWidth/(t+1),e.minWidth)}_drawCurveSegment(t,e,i){const s=this._ctx;s.moveTo(t,e),s.arc(t,e,i,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(t,e){const i=this._ctx,s=t.endWidth-t.startWidth,r=Math.ceil(t.length())*2;i.beginPath(),i.fillStyle=e.penColor;for(let o=0;o<r;o+=1){const h=o/r,u=h*h,l=u*h,n=1-h,f=n*n,m=f*n;let _=m*t.startPoint.x;_+=3*f*h*t.control1.x,_+=3*n*u*t.control2.x,_+=l*t.endPoint.x;let w=m*t.startPoint.y;w+=3*f*h*t.control1.y,w+=3*n*u*t.control2.y,w+=l*t.endPoint.y;const p=Math.min(t.startWidth+l*s,e.maxWidth);this._drawCurveSegment(_,w,p)}i.closePath(),i.fill()}_drawDot(t,e){const i=this._ctx,s=e.dotSize>0?e.dotSize:(e.minWidth+e.maxWidth)/2;i.beginPath(),this._drawCurveSegment(t.x,t.y,s),i.closePath(),i.fillStyle=e.penColor,i.fill()}
1_fromData(t,e,i){for(const s of t){const{points:r}=s,o=this._getPointGroupOptions(s);if(r.length>1)for(let h=0;h<r.length;h+=1){const u=r[h],l=new q(u.x,u.y,u.pressure,u.time);h===0&&this._reset(o);const n=this._addPoint(l,o);n&&e(n,o)}else this._reset(o),i(r[0],o)}}toSVG({includeBackgroundColor:t=!1,includeDataUrl:e=!1}={}){const i=this._data,s=Math.max(window.devicePixelRatio||1,1),r=0,o=0,h=this.canvas.width/s,u=this.canvas.height/s,l=document.createElementNS("http://www.w3.org/2000/svg","svg");if(l.setAttribute("xmlns","http://www.w3.org/2000/svg"),l.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),l.setAttribute("viewBox",`${r} ${o} ${h} ${u}`),l.setAttribute("width",h.toString()),l.setAttribute("height",u.toString()),t&&this.backgroundColor){const n=document.createElement("rect");n.setAttribute("width","100%"),n.setAttribute("height","100%"),n.setAttribute("fill",this.backgroundColor),l.appendChild(n)}if(e&&this._dataUrl){const n=this._dataUrlOptions?.ratio||window.devicePixelRatio||1,f=this._dataUrlOptions?.width||this.canvas.width/n,m=this._dataUrlOptions?.height||this.canvas.height/n,_=this._dataUrlOptions?.xOffset||0,w=this._dataUrlOptions?.yOffset||0,p=document.createElement("image");p.setAttribute("x",_.toString()),p.setAttribute("y",w.toString()),p.setAttribute("width",f.toString()),p.setAttribute("height",m.toString()),p.setAttribute("preserveAspectRatio","none"),p.setAttribute("href",this._dataUrl),l.appendChild(p)}return this._fromData(i,(n,{penColor:f})=>{const m=document.createElement("path");if(!isNaN(n.control1.x)&&!isNaN(n.control1.y)&&!isNaN(n.control2.x)&&!isNaN(n.control2.y)){const _=`M ${n.startPoint.x.toFixed(3)},${n.startPoint.y.toFixed(3)} C ${n.control1.x.toFixed(3)},${n.control1.y.toFixed(3)} ${n.control2.x.toFixed(3)},${n.control2.y.toFixed(3)} ${n.endPoint.x.toFixed(3)},${n.endPoint.y.toFixed(3)}`;m.setAttribute("d",_),m.setAttribute("stroke-width",(n.endWidth*2.25).toFixed(3)),m.setAttribute("stroke",f),m.setAttribute("fill","none"),m.setAttribute("stroke-linecap","round"),l.appendChild(m)}},(n,{penColor:f,dotSize:m,minWidth:_,maxWidth:w})=>{const p=document.createElement("circle"),S=m>0?m:(_+w)/2;p.setAttribute("r",S.toString()),p.setAttribute("cx",n.x.toString()),p.setAttribute("cy",n.y.toString()),p.setAttribute("fill",f),l.appendChild(p)}),l.outerHTML}};const se=["id","data-uid"],ae=A({__name:"VueSignaturePad",props:{options:{default:()=>({backgroundColor:"oklch(100.0% 0.000 89.9)",penColor:"oklch(0.0% 0.000 0.0)"})},width:{default:"100%"},height:{default:"100%"},minWidth:{default:5},maxWidth:{default:5},waterMark:{},throttle:{default:16},disabled:{type:Boolean,default:!1},clearOnResize:{type:Boolean,default:!1},defaultUrl:{default:""},scaleOnResize:{type:Boolean,default:!0}},emits:["beginStroke","endStroke","beforeUpdateStroke","afterUpdateStroke"],setup(g,{expose:t,emit:e}){let i;const s=g,r=e,o=M({signaturePad:{},dotSize:.5,minWidth:2,maxWidth:2,throttle:16,backgroundColor:s.options.backgroundColor,penColor:s.options.penColor,canvasUuid:`canvas_${crypto.randomUUID()}`});function h(){return o.value.signaturePad.isEmpty()}function u(d,x=1){return d!==void 0||x!==1?o.value.signaturePad.toDataURL(d,x):o.value.signaturePad?.toDataURL()}function l(){return o.value.signaturePad.clear()}function n(d){return o.value.signaturePad.fromDataURL(d)}function f(d,...x){return o.value.signaturePad.toDataURL(d,...x)}function m(){const d=o.value.signaturePad.toData();d.length&&(d.pop(),o.value.signaturePad.fromData(d))}function _(d){if(Object.prototype.toString.call(d)!=="[object Object]")throw new Error(`Expected Object, got ${typeof d}.`);{const x={text:d.text||"",x:d.x||20,y:d.y||20,sx:d.sx||40,sy:d.sy||40},P=document.getElementById(o.value.canvasUuid).getContext("2d");P&&(P.font=d.font||"20px sans-serif",P.fillStyle=d.fillStyle||"#333",P.strokeStyle=d.strokeStyle||"#333",d.style==="all"?(P.fillText(x.text,x.x,x.y),P.strokeText(x.text,x.sx,x.sy)):d.style==="stroke"?P.strokeText(x.text,x.sx,x.sy):P.fillText(x.text,x.x,x.y)),o.value.signaturePad._isEmpty=!1}}function w(){return o.value.signaturePad.addEventListener("beginStroke",()=>{r("beginStroke",o.value.signaturePad)})}function p(){return o.value.signaturePad.addEventListener("endStroke",()=>{r("endStroke",o.value.signaturePad)})}function S(){return o.value.signaturePad.addEventListener("beforeUpdateStroke",()=>{r("beforeUpdateStroke",o.value.signaturePad)})}function $(){return o.value.signaturePad.addEventListener("afterUpdateStroke",()=>{r("afterUpdateStroke",o.value.signaturePad)})}function y(){let d;if(d=i,!d)return;let x,k;h()||(s.scaleOnResize?x=u():k=o.value.signaturePad.toData());const P=Math.max(window.devicePixelRatio||1,1),D=d.getBoundingClientRect();if(!D.width||!D.height)return;d.width=D.width*P,d.height=D.height*P,d.style.width=`${D.width}px`,d.style.height=`${D.height}px`,d.getContext("2d")?.setTransform(P,0,0,P,0,0),l(),s.clearOnResize||(s.scaleOnResize&&x?n(x):!s.scaleOnResize&&k&&o.value.signaturePad.fromData(k)),s.waterMark&&Object.keys(s.waterMark).length&&_(s.waterMark)}function C(){if(!i)throw new Error(`Canvas element with ID ${o.value.canvasUuid} not found.`);o.value.signaturePad=new oe(i,o.value),w(),p(),S(),$(),s.disabled?o.value.signaturePad?.off():o.value.signaturePad?.on();const d=()=>{y()};window.addEventListener("resize",d),y(),s.defaultUrl!==""&&n(s.defaultUrl)}return t({saveSignature:u,clearCanvas:l,addWaterMark:_,isCanvasEmpty:h,fromDataURL:n,toDataURL:f,resizeCanvas:y,undo:m}),Y(()=>{i=document.getElementById(o.value.canvasUuid),C()}),_t(()=>{y(),window.removeEventListener("resize",y)}),mt(()=>s,d=>
1{o.value.signaturePad.penColor=d.options?.penColor,o.value.signaturePad.backgroundColor=d.options?.backgroundColor,o.value.signaturePad.minWidth=d.minWidth,o.value.signaturePad.maxWidth=d.maxWidth},{immediate:!0,deep:!0}),(d,x)=>(E(),U("canvas",{id:o.value.canvasUuid,style:ot({width:s.width,height:s.height}),"data-uid":o.value.canvasUuid},null,12,se))}});var re=ae;const le={class:"mt-10 pb-36"},de={class:"text-base font-medium text-[--ds-colorTextPrimary]"},ce={class:"relative mt-4 h-[calc(100vh-367px)] overflow-hidden rounded-2xl border bg-white pt-4 shadow-sm"},ue={class:"text-center text-base font-medium text-gray-500"},he={class:"fixed bottom-4 left-4 right-4 md:left-1/2 md:w-[376px] md:-translate-x-1/2"},pe={class:"text-base font-bold text-red-500"},Ce=A({__name:"Sign",props:{sid:{},handleActionHide:{type:Function}},setup(g){const t=g,{t:e}=G(),i=j(),s=X().$toast,r=st("api"),o=ft("signaturePad"),h=O(()=>i.query.token??""),u=M(!0),l=M(!0),n={backgroundColor:"#ffffff",penColor:"#000000"};function f(p){const S=p.split(","),$=S[0]?.match(/:(.*?);/),y=window.atob(S[1]??"");let C=y.length;const d=new Uint8Array(C);for(;C--;)d[C]=y.charCodeAt(C);return new Blob([d],{type:$?.[1]??"image/png"})}function m(){return typeof navigator>"u"?!1:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}function _(){o.value?.clearCanvas(),l.value||(u.value=!1)}async function w(){if(o.value?.isCanvasEmpty()){s.warning(e("l_Enter_your_signature"));return}const p=o.value?.toDataURL("image/png");if(!p){s.warning(e("l_Enter_your_signature"));return}try{const S=f(p),$=new File([S],"image.png",{type:"image/png"}),y=new FormData;y.append("file",$,$.name);const C=await $fetch(`${r}/public/v0/ship-address/upload?token=${h.value}`,{method:"POST",body:y}
1);if(C?.result_code!==0){s.warning(C?.result_msg||"Upload failed");return}const d=await B(`v0/ship-address/sign-img?token=${h.value}`,{sid:t.sid,imgsign:C?.data?.path});d.result_code===0?(t.handleActionHide(),o.value?.clearCanvas()):s.warning(d.result_msg)}catch(S){s.error("ERROR "+String(S))}}return Y(()=>{l.value=!m(),l.value&&(u.value=!1)}),(p,S)=>{const $=bt,y=Q;return E(),U("div",le,[a("h3",de,T(c(e)("l_To_confirm_the_correctness_of_the_documents_it_is_necessary")),1),a("div",ce,[a("p",ue,T(c(e)("l_Enter_your_signature")),1),L(c(re),{ref_key:"signaturePad",ref:o,width:"100%",height:"calc(100% - 25px)",option:n,"max-width":2,"min-width":2,onHandleBeginStroke:S[0]||(S[0]=C=>u.value=!1)},null,512),L($,{src:"https://cdn-static-front.janapost.kz/web/microapp/20241230111135_1c029e83-0096-4c19-bf0c-4012244ebc3e.png",width:"200",height:"200",alt:"sign",class:"pointer-events-none absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 opacity-30 transition-all",style:ot({display:c(u)?"block":"none"})},null,8,["style"])]),a("div",he,[L(y,{onSave:w},{default:et(()=>[a("button",{type:"button",class:"mt-2 w-full rounded-lg bg-gray-100 px-4 py-3",onClick:_},[a("span",pe,T(c(e)("l_Delete")),1)])]),_:1})])])}}}),_e=Object.assign(Ce,{__name:"SectionPublicShipSign"}),me={class:"mt-4 mx-4 md:w-[376px] md:mx-auto"},fe={class:"flex flex-col gap-3 mb-4"},ve={class:"flex items-center justify-start gap-2"},ge={class:"text-lg font-semibold text-gray-800"},De=A({__name:"edit",setup(g){const t=j(),e=vt(),i=O(()=>t.query.sid??null),s=O(()=>t.query.index??null);function r(){e.back()}return(o,h)=>{const u=Gt,l=te,n=_e;return E(),U("div",me,[a("div",fe,[a("button",{type:"button",class:"p-1 -ml-1 rounded-lg hover:bg-gray-100","aria-label":"Back",onClick:r},[...h[0]||(h[0]=[a("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-6 h-6 text-gray-700",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])]),a("div",ve,[h[1]||(h[1]=a("img",{src:ct,alt:"JaÅa Post",width:"32",height:"32"},null,-1)),a("h1",ge,T(o.$t("l_Upload_your_personal_documents")),1)])]),a("div",null,[c(s)==="0"?(E(),J(u,{key:0,sid:c(i),"handle-action-hide":r},null,8,["sid"])):c(s)==="1"?(E(),J(l,{key:1,sid:c(i),"handle-action-hide":r},null,8,["sid"])):c(s)==="2"?(E(),J(n,{key:2,sid:c(i),"handle-action-hide":r},null,8,["sid"])):it("",!0)])])}}});export{De 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.