"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue");require("../../../config-provider/index.js");const r=require("../utils/accept.js"),c=require("../utils/upload.js"),i=require("../../../config-provider/hooks/use-locale.js");function d(e){const{t:u}=i.useLocale(),l=a.computed(()=>e.title||u("ap.apUpload.clickOrDragUpload")),s=a.computed(()=>e.subTitle||`${u("ap.apUpload.supportExtension")}：${r.getAcceptText(e.accept)}，${u("ap.apUpload.maxWarnUploadFileSize",{maxSize:e.maxSize})}`);function n(t,o){return c.uploadBeforeUpload(t,o,e)&&(e?.beforeUpload?.(t,o)??!0)}return{title:l,subTitle:s,beforeUpload:n,customRequest:t=>{e?.customRequest?e?.customRequest?.(t):c.uploadCustomRequest?.(t,e)}}}exports.useSingleProps=d;
