PageSourceSearch

https://soloncloud.web.app/_nuxt/CUaGNYBf.js

js soloncloud.web.app collected 2026-10-03 12:37:58 UTC 3,673 bytes, 1 lines download raw bytes

1import{_ as v}from"./CM-NhgdL.js";import{u as k,_ as w}from"./xe5xIhte.js";import{r as y,c as t,e as o,H as f,h as c,n as g,F as b,E as V,o as s,a as q,w as j,I as D,t as i,b as R}from"./CI1C_uXz.js";import{_ as z,a as B,b as C,c as P}from"./DXzazHMT.js";import{_ as S}from"./DlAUqK2U.js";import"./DB_vzzlN.js";const F={name:"Dropzone",props:{modelValue:{type:[Object,Array]},multiple:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(l,{emit:d}){let n=[];l.modelValue&&(n=l.multiple?l.modelValue:[l.modelValue]);const a=y(n);function p(m){a.value=m.map(x=>Object.assign(x,{preview:URL.createObjectURL(x)})),d("update:modelValue",l.multiple?a.value:a.value[0])}function _(m){a.value.splice(m,1),d("update:modelValue",l.multiple?a.value:a.value[0])}const{multiple:u}=l,{getRootProps:e,getInputProps:r,...h}=k({onDrop:p,multiple:u});return{getRootProps:e,getInputProps:r,handleRemoveFile:_,...h,files:a}}},I={key:0},N=["id"],L=o("img",{src:w,alt:"",class:"mx-auto mb-4"},null,-1),O={key:0,class:"text-sm text-slate-500 dark:text-slate-300 font-light"},A={key:0},E={key:1},U={key:1,class:"text-sm text-slate-500 dark:text-slate-300 font-light"},H={key:0},M={key:1},T={key:0,class:"w-28 text-center"},W=["src"],X={class:"block break-words w-full"},Z={key:1,class:"w-28 text-center"},G=o("img",{src:z,class:"h-28 w-28 mx-auto"},null,-1),J={class:"block break-words w-full"},K={key:2,class:"w-28 text-center"},Q=o("img",{src:B,class:"h-28 w-28 mx-auto"},null,-1),Y={class:"block break-words w-full"},$={key:3,class:"w-28 text-center"},ee=o("img",{src:C,class:"h-28 w-28 mx-auto"},null,-1),te={class:"block break-words w-full"},se={key:4,class:"w-28 text-center"},oe=o("img",{src:P,class:"h-28 w-28 mx-auto"},null,-1),ae={class:"block break-words w-full"};function le(l,d,n,a,p,_){const u=v;return s(),t("div",null,[o("div",f(a.getRootProps(),{class:["w-full text-center border-dashed border border-secondary-500 rounded-md p-[25px] flex flex-col justify-center items-center",a.files.length===0?"cursor-pointer":""]}),[a.files.length===0?(s(),t("div",I,[o("input",f(a.getInputProps(),{id:l.inputId,class:"hidden"}),null,16,N),L,l.isDragActive?(s(),t("p",O,[n.multiple?(s(),t("span",A,"Solte os arquivos aqui...")):c("",!0),n.multiple?c("",!0):(s(),t("span",E,"Solte um arquivo aqui..."))])):(s(),t("p",U,[n.multiple?(s(),t("span",H," Solte os arquivos aqui ou clique para fazer upload. ")):c("",!0),n.multiple?c("",!0):(s(),t("span",M," Solte um arquivo aqui ou clique para fazer upload. "))]))])):c("",!0),o("div",{class:g(n.multiple?"grid grid-cols-2 lg:grid-cols-3 gap-4":"")},[(s(!0),t(b,null,V(a.files,(e,r)=>(s(),t("div",{key:r,class:"mb-4"},[o("div",{key:"{i}",class:g(["mx-auto mt-6 rounded-md relative",n.multiple?"h-[200px] w-full max-w-[200px]":""])},[q(u,{class:"absolute -top-2 -right-2","btn-class":"btn-danger btn-xs rounded-full",onClick:D(h=>a.handleRemoveFile(r),["stop","prevent"])},{default:j(()=>[R(" X ")]),_:2},1032,["onClick"]),e.type.startsWith("image/")||e.name.match(/\.(jpg|jpeg|png|gif|bmp|webp)$/i)?(s(),t("div",T,[o("img",{src:e.preview,class:"h-28 w-28 mx-auto"},null,8,W),o("span",X,i(e.name),1)])):e.type==="application/pdf"||e.type==="pdf"?(s(),t("div",Z,[G,o("span",J,i(e.name),1)])):e.type==="application/vnd.ms-excel"||e.type==="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"||e.type==="xlsx"?(s(),t("div",K,[Q,o("span",Y,i(e.name),1)])):e.type==="application/vnd.openxmlformats-officedocument.wordprocessingml.document"||e.type==="docx"?(s(),t("div",$,[ee,o("span",te,i(e.name),1)])):(s(),t("div",se,[oe,o("span",ae,i(e.name),1)]))],2)]))),128))],2)],16)])}const me=S(F,[["render",le]]);export{me 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.