"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("../../../config-provider/index.js");const i=require("../../../config-provider/hooks/use-token.js"),d=require("../style/index.js"),w=require("../utils/getFileInfo.js"),m=require("../../../config-provider/hooks/use-namespace.js");function v(n,l){const{b:e,bm:r}=m.useNamespace("ap-download"),t=d.default("ap-download"),{token:a}=i.useToken(),s=o.computed(()=>({"--download-main-color":a.value?.colorLink,"--download-main-color-opacity":w.getHexWithOpacity(a.value?.colorLink,.6)})),c=o.computed(()=>[e("wrapper"),r("wrapper",n.value),t.value].filter(Boolean)),p=o.computed(()=>{const u=[e(),e("inner-wrapper"),r("inner-wrapper",n.value)];return l.value&&u.push(r("inner-wrapper","disabled")),[...u,t.value]});return{wrapperStyle:s,getWrapperClass:c,getInnerWrapperClass:p}}exports.useStyle=v;
