PageSourceSearch

https://bgov.kz/build/assets/StageFileInput-53ec9a4f.js

js bgov.kz collected 2026-10-08 00:01:56 UTC 1,924 bytes, 1 lines download raw bytes

1import{o as u,e as p,a as t,t as r,g as x,n as h,l as f,h as w}from"./app-3767b508.js";const y={class:"text-center"},b={class:"mt-4"},k={class:"cursor-pointer"},D={key:0,class:"max-h-[200px] overflow-y-auto mt-[15px]"},C={class:"mt-2 text-sm text-gray-500 flex items-center justify-between"},B={__name:"StageFileInput",props:{file:String},emits:["upload"],setup(i,{emit:m}){const v=m,s=w(!1);function c(a){a.preventDefault(),s.value=!1;const e=a.dataTransfer.files;e&&d(e[0])}function g(a){const e=a.target.files;e&&d(e[0])}async function d(a){var e,l;try{const n=new FormData;n.append("upload",a);const o=await axios({url:route("upload"),method:"post",data:n,headers:{"Content-Type":"multipart/form-data;"},withCredentials:!1});(e=o==null?void 0:o.data)!=null&&e.path&&v("upload",(l=o==null?void 0:o.data)==null?void 0:l.path)}catch(n){console.log(n)}}return(a,e)=>(u(),p("div",{class:h(["mt-4 border-2 border-dashed rounded-lg p-6",{"border-blue-500 bg-blue-50":s.value,"border-gray-300":!s.value}]),onDragover:e[0]||(e[0]=f(l=>s.value=!0,["prevent"])),onDragleave:e[1]||(e[1]=f(l=>s.value=!1,["prevent"])),onDrop:c},[t("div",y,[e[5]||(e[5]=t("svg",{xmlns:"http://www.w3.org/2000/svg",class:"mx-auto h-12 w-12 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"})],-1)),t("div",b,[t("label",k,[e[2]||(e[2]=t("span",{class:"text-blue-600 hover:text-blue-500"},r("Загрузите файл"),-1)),e[3]||(e[3]=t("span",{class:"text-gray-500"},r(" или перетащите и отпустите"),-1)),t("input",{type:"file",class:"hidden",onChange:g},null,32)])]),i.file?(u(),p("div",D,[e[4]||(e[4]=t("p",null,r("Выбранный файл:"),-1)),t("p",C,[t("span",null,r(i.file),1)])])):x("",!0)])],34))}};export{B 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.