找回密码
 立即注册
搜索
热搜: 丝袜 魅魔 黑丝
查看: 5|回复: 0

14682995_榨汁狐娘

[复制链接]

13万

主题

343

回帖

22万

积分

管理员

站长

UID
1
积分
224400
余额
13 R
Moe币
84881
在线时间
279 小时
注册时间
2025-12-28
最后登录
2026-11-9
发表于 2026-9-3 23:00:59 | 显示全部楼层 |阅读模式
.push("kd-icon-rtl"),P&&y.push("kd-icon-spin");var T=w.tag;return T.length===0?G(we,null,[n(w)]):G(T,{class:y.join(" "),style:{lineHeight:0}},$0(l=n(w))?l:{default:function(){return[l]}})}}};return r}const U0=Gs("loading",!1,function(e){return G("svg",{width:e.size,height:e.size,viewBox:"0 0 16 16",fill:"none"},[G("style",null,[".kd-stroke-width-icon-regular{stroke-width:var(--kd-stroke-width-icon-regular, 1px); }.kd-color-icon-info{color:#1F69E0; color:var(--kd-color-icon-info, #1F69E0); }"]),G("g",{class:"kd-stroke-width-icon-regular kd-color-icon-info"},[G("path",{d:"M8 14C8.34071 14 8.67479 13.9716 9 13.917","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",stroke:"currentColor","vector-effect":"non-scaling-stroke"},null)]),G("g",{class:"kd-stroke-width-icon-regular kd-color-icon-info"},[G("path",{d:"M8 14C11.3137 14 14 11.3137 14 7.99996C14 4.6863 11.3137 2 8 2",stroke:"url(#"+e.id+"470a6419)","stroke-linejoin":"round",fill:"none","vector-effect":"non-scaling-stroke"},null),G("defs",null,[G("linearGradient",{id:e.id+"470a6419",x1:"8",y1:"12",x2:"8",y2:"3",gradientUnits:"userSpaceOnUse"},[G("stop",{offset:"0","stop-color":"currentColor"},null),G("stop",{offset:"1","stop-color":"currentColor","stop-opacity":"0.5"},null)])])]),G("g",{class:"kd-stroke-width-icon-regular kd-color-icon-info"},[G("path",{d:"M8 2C4.68629 2 2 4.6863 2 8C2 11.3137 4.68629 14 8 14",stroke:"url(#"+e.id+"6d055fea)","stroke-linejoin":"round",fill:"none","vector-effect":"non-scaling-stroke"},null),G("defs",null,[G("linearGradient",{id:e.id+"6d055fea",x1:"7.5",y1:"14",x2:"8",y2:"3",gradientUnits:"userSpaceOnUse"},[G("stop",{offset:"0","stop-color":"currentColor","stop-opacity":"0"},null),G("stop",{offset:"1","stop-color":"currentColor","stop-opacity":"0.5"},null)])])])])}),Mu="__epPropKey",or=e=>e,H0=e=>Pe(e)&&!!e[Mu],Bu=(e,t)=>{if(!Pe(e)||H0(e))return e;const{values:n,required:r,default:o,type:i,validator:s}=e,l={type:i,required:!!r,validator:n||s?c=>{let u=!1,p=[];if(n&&(p=Array.from(n),be(e,"default")&&p.push(o),u||(u=p.includes(c))),s&&(u||(u=s(c))),!u&&p.length>0){const d=[...new Set(p)].map(A=>JSON.stringify(A)).join(", ");Jf(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${d}], got value ${JSON.stringify(c)}.`)}return u}:void 0,[Mu]:!0};return be(e,"default")&&(l.default=o),l},Fu=e=>j0(Object.entries(e).map(([t,n])=>[t,Bu(n,t)])),bo=or([String,Object,Function]),Uu=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},z0=e=>(e.install=It,e),W0=["","x-large","large","medium","small"],q0=({from:e,replacement:t,scope:n,version:r,ref:o,type:i="API"},s)=>{Ft(()=>K(s),a=>{},{immediate:!0})},Li="kdv",V0="is-",On=(e,t,n,r,o)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),r&&(i+=`__${r}`),o&&(i+=`--${o}`),i},K0=Symbol("namespaceContextKey"),G0=e=>{const t=e||(Br()?Xt(K0,de(Li)):de(Li));return ee(()=>K(t)||Li)},Zo=(e,t)=>{const n=G0(t);return{namespace:n,b:(E="")=>On(n.value,e,E,"",""),e:E=>E?On(n.value,e,"",E,""):"",m:E=>E?On(n.value,e,"","",E):"",be:(E,P)=>E&&P?On(n.value,e,E,P,""):"",em:(E,P)=>E&&P?On(n.value,e,"",E,P):"",bm:(E,P)=>E&&P?On(n.value,e,E,"",P):"",bem:(E,P,w)=>E&&P&&w?On(n.value,e,E,P,w):"",is:(E,...P)=>{const w=P.length>=1?P[0]:!0;return E&&w?`${V0}${E}`:""},cssVar:E=>{const P={};for(const w in E)E[w]&&(P[`--${n.value}-${w}`]=E[w]);return P},cssVarName:E=>`--${n.value}-${E}`,cssVarBlock:E=>{const P={};for(const w in E)E[w]&&(P[`--${n.value}-${e}-${w}`]=E[w]);return P},cssVarBlockName:E=>`--${n.value}-${e}-${E}`}},ss=e=>{const t=Br();return ee(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})},J0=Bu({type:String,values:W0,required:!1}),Z0=Symbol("size"),Q0=()=>{const e=Xt(Z0,{});return ee(()=>K(e.size)||"")},Y0=Symbol(),Ll=de();function X0(e,t=void 0){const n=Br()?Xt(Y0,Ll):Ll;return e?ee(()=>{var r,o;return(o=(r=n.value)==null?void 0:r[e])!=null?o:t}):n}const eb=Fu({size:{type:or([Number,String])},color:{type:or([String,Array]),default:void 0},fill:{type:String},iconClass:{type:[String,Array]},icon:{type:bo,default:void 0}});var Js=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const tb=Le({name:"KdIcon",inheritAttrs:!1}),nb=Le({...tb,props:eb,setup(e){const t=e,n=Zo("icon"),r=ee(()=>typeof t.icon=="object");return(o,i)=>o.$slots.default?(j(),J("i",ko({key:0,class:[K(n).b(),o.iconClass]},o.$attrs,{style:{"line-height":"0"}}),[jn(o.$slots,"default")],16)):K(r)?(j(),Ye(Or(o.icon),ko({key:1,size:o.size,fill:o.color||o.fill,class:[K(n).b(),o.iconClass]},o.$attrs),null,16,["size","fill","class"])):$e("v-if",!0)}});var rb=Js(nb,[["__file","/workspace/source/kdesign-kdesign-vue3/packages/components/icon/src/icon.vue"]]);const ao=Uu(rb),ob=Gs("arrow_down_s",!1,function(e){return G("svg",{width:e.size,height:e.size,viewBox:"0 0 16 16",fill:"none"},[G("style",null,[".kd-stroke-width-icon-bold{stroke-width:1.2px; stroke-width:var(--kd-stroke-width-icon-bold, 1.2px); }.kd-color-icon-secondary{fill:#757575; fill:var(--kd-color-icon-secondary, #757575); stroke:#757575; stroke:var(--kd-color-icon-secondary, #757575); }"]),G("g",{class:"kd-color-icon-secondary kd-stroke-width-icon-bold"},[G("path",{d:"M12 6.5L8.00718 10H7.99262L4 6.5","stroke-linecap":"round","stroke-linejoin":"round",fill:"none","vector-effect":"non-scaling-stroke"},null)])])}),ib=Gs("loading_white",!1,function(e){return G("svg",{width:e.size,height:e.size,viewBox:"0 0 16 16",fill:"none"},[G("style",null,[".kd-stroke-width-icon-regular{stroke-width:var(--kd-stroke-width-icon-regular, 1px); }.kd-color-icon-white{color:#ffffff; color:var(--kd-color-icon-white, #ffffff); }"]),G("g",{class:"kd-stroke-width-icon-regular kd-color-icon-white"},[G("path",{d:"M8 14C9.09286 14 10.1175 13.7078 11 13.1973","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",stroke:"url(#"+e.id+"91df64b2)","vector-effect":"non-scaling-stroke"},null)]),G("g",{class:"kd-stroke-width-icon-regular kd-color-icon-white"},[G("path",{d:"M8 2C11.3137 2 14 4.6863 14 7.99996C14 10.2208 12.7934 12.1598 11 13.1973","stroke-linejoin":"round",fill:"none",stroke:"url(#"+e.id+"91df64b2)","vector-effect":"non-scaling-stroke"},null),G("defs",null,[G("linearGradient",{id:e.id+"91df64b2",x1:"8",y1:"12",x2:"8",y2:"3",gradientUnits:"userSpaceOnUse"},[G("stop",{offset:"0","stop-color":"currentColor"},null),G("stop",{offset:"1","stop-color":"currentColor","stop-opacity":"0.5"},null)])])]),G("g",{class:"kd-stroke-width-icon-regular kd-color-icon-white"},[G("path",{d:"M8 2C4.68629 2 2 4.6863 2 8C2 11.3137 4.68629 14 8 14","stroke-linejoin":"round",fill:"none",stroke:"url(#"+e.id+"cbc9c22c)","vector-effect":"non-scaling-stroke"},null),G("defs",null,[G("linearGradient",{id:e.id+"cbc9c22c",x1:"7.5",y1:"14",x2:"8",y2:"3",gradientUnits:"userSpaceOnUse"},[G("stop",{offset:"0","stop-color":"currentColor","stop-opacity":"0"},null),G("stop",{offset:"1","stop-color":"currentColor","stop-opacity":"0.5"},null)])])])])}),Hu=Symbol("buttonGroupContextKey"),sb=(e,t)=>{q0({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},ee(()=>e.type==="text"));const n=Xt(Hu,void 0),r=X0("button"),o=ee(()=>ss("size").value||(n==null?void 0:n.size)||Q0().value||"large"),i=ee(()=>ss("disabled").value||!1),s=de(),a=Ed(),l=ee(()=>e.type||(n==null?void 0:n.type)||"light"),c=ee(()=>{var w,y,T;return(T=(y=e.autoInsertSpace)!=null?y:(w=r.value)==null?void 0:w.autoInsertSpace)!=null?T:!1}),u=ee(()=>e.tag==="button"?{ariaDisabled:i.value||e.loading,disabled:i.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),p=ee(()=>{var w;const y=(w=a.default)==null?void 0:w.call(a);if(c.value&&(y==null?void 0:y.length)===1){const T=y[0];if((T==null?void 0:T.type)===Mr){const k=T.children;return/^\p{Unified_Ideograph}{2}$/u.test(k.trim())}}return!1}),d=w=>{t("click",w)},A=ee(()=>e.loading&&e.icon),N=ee(()=>{let w="";return e.type==="primary"&&(w="currentColor"),w}),E=ee(()=>e.loadingIcon?e.loadingIcon:e.type==="primary"?ib:U0),P=ee(()=>e.icon?12:e.size==="x-large"?16:12);return{_disabled:i,_size:o,_type:l,_ref:s,_props:u,shouldAddSpace:p,handleClick:d,iconBtnLoading:A,loadingIconColor:N,menuIconSize:P,_loadingIcon:E,IconArrowDown:ob}},ab=["text","primary","secondary","light",""],lb=["button","submit","reset"],as=Fu({size:J0,disabled:Boolean,type:{type:String,values:ab,default:""},icon:{type:Boolean},nativeType:{type:String,values:lb,default:"button"},loading:Boolean,danger:Boolean,active:Boolean,highlight:Boolean,loadingIcon:{type:bo,default:null},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:or([String,Object]),default:"button"},iconSize:{type:or([Number,String]),default:16},iconColor:{type:or([String,Array]),default:void 0},prefixIcon:{type:bo,default:void 0},suffixIcon:{type:bo,default:void 0},menu:{type:Boolean,default:!1}}),cb={click:e=>e instanceof MouseEvent};function it(e,t){ub(e)&&(e="100%");var n=fb(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function lo(e){return Math.min(1,Math.max(0,e))}function ub(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function fb(e){return typeof e=="string"&&e.indexOf("%")!==-1}function zu(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function co(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Nn(e){return e.length===1?"0"+e:String(e)}function db(e,t,n){return{r:it(e,255)*255,g:it(t,255)*255,b:it(n,255)*255}}function Nl(e,t,n){e=it(e,255),t=it(t,255),n=it(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,s=0,a=(r+o)/2;if(r===o)s=0,i=0;else{var l=r-o;switch(s=a>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break}i/=6}return{h:i,s,l:a}}function Ni(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function pb(e,t,n){var r,o,i;if(e=it(e,360),t=it(t,100),n=it(n,100),t===0)o=n,i=n,r=n;else{var s=n<.5?n*(1+t):n+t-n*t,a=2*n-s;r=Ni(a,s,e+1/3),o=Ni(a,s,e),i=Ni(a,s,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function Dl(e,t,n){e=it(e,255),t=it(t,255),n=it(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,s=r,a=r-o,l=r===0?0:a/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/a+(t<n?6:0);break;case t:i=(n-e)/a+2;break;case n:i=(e-t)/a+4;break}i/=6}return{h:i,s:l,v:s}}function hb(e,t,n){e=it(e,360)*6,t=it(t,100),n=it(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),s=n*(1-o*t),a=n*(1-(1-o)*t),l=r%6,c=[n,s,i,i,a,n][l],u=[a,n,n,s,i,i][l],p=[i,i,a,n,n,s][l];return{r:c*255,g:u*255,b:p*255}}function jl(e,t,n,r){var o=[Nn(Math.round(e).toString(16)),Nn(Math.round(t).toString(16)),Nn(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function vb(e,t,n,r,o){var i=[Nn(Math.round(e).toString(16)),Nn(Math.round(t).toString(16)),Nn(Math.round(n).toString(16)),Nn(gb(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function gb(e){return Math.round(parseFloat(e)*255).toString(16)}function $l(e){return At(e)/255}function At(e){return parseInt(e,16)}function _b(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var ls={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function mb(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,s=!1,a=!1;return typeof e=="string"&&(e=wb(e)),typeof e=="object"&&(Jt(e.r)&&Jt(e.g)&&Jt(e.b)?(t=db(e.r,e.g,e.b),s=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Jt(e.h)&&Jt(e.s)&&Jt(e.v)?(r=co(e.s),o=co(e.v),t=hb(e.h,r,o),s=!0,a="hsv"):Jt(e.h)&&Jt(e.s)&&Jt(e.l)&&(r=co(e.s),i=co(e.l),t=pb(e.h,r,i),s=!0,a="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=zu(n),{ok:s,format:e.format||a,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var bb="[-\\+]?\\d+%?",yb="[-\\+]?\\d*\\.\\d+%?",gn="(?:".concat(yb,")|(?:").concat(bb,")"),Di="[\\s|\\(]+(".concat(gn,")[,|\\s]+(").concat(gn,")[,|\\s]+(").concat(gn,")\\s*\\)?"),ji="[\\s|\\(]+(".concat(gn,")[,|\\s]+(").concat(gn,")[,|\\s]+(").concat(gn,")[,|\\s]+(").concat(gn,")\\s*\\)?"),jt={CSS_UNIT:new RegExp(gn),rgb:new RegExp("rgb"+Di),rgba:new RegExp("rgba"+ji),hsl:new RegExp("hsl"+Di),hsla:new RegExp("hsla"+ji),hsv:new RegExp("hsv"+Di),hsva:new RegExp("hsva"+ji),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function wb(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(ls[e])e=ls[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=jt.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=jt.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=jt.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=jt.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=jt.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=jt.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=jt.hex8.exec(e),n?{r:At(n[1]),g:At(n[2]),b:At(n[3]),a:$l(n[4]),format:t?"name":"hex8"}:(n=jt.hex6.exec(e),n?{r:At(n[1]),g:At(n[2]),b:At(n[3]),format:t?"name":"hex"}:(n=jt.hex4.exec(e),n?{r:At(n[1]+n[1]),g:At(n[2]+n[2]),b:At(n[3]+n[3]),a:$l(n[4]+n[4]),format:t?"name":"hex8"}:(n=jt.hex3.exec(e),n?{r:At(n[1]+n[1]),g:At(n[2]+n[2]),b:At(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Jt(e){return!!jt.CSS_UNIT.exec(String(e))}var Cb=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=_b(t)),this.originalInput=t;var o=mb(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,s=t.g/255,a=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),s<=.03928?r=s/12.92:r=Math.pow((s+.055)/1.055,2.4),a<=.03928?o=a/12.92:o=Math.pow((a+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=zu(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Dl(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Dl(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Nl(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Nl(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),jl(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),vb(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(it(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(it(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+jl(this.r,this.g,this.b,!1),n=0,r=Object.entries(ls);n<r.length;n++){var o=r[n],i=o[0],s=o[1];if(t===s)return i}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=lo(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=lo(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=lo(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=lo(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,s={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(s)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,s=[],a=1/t;t--;)s.push(new e({h:r,s:o,v:i})),i=(i+a)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,s=1;s<t;s++)o.push(new e({h:(r+s*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function un(e,t=20){return e.mix("#141414",t).toString()}function Eb(e){const t=ee(()=>ss("disabled").value||!1),n=Zo("button");return ee(()=>{let r={};const o=e.color;if(o){const i=new Cb(o),s=e.dark?i.tint(20).toString():un(i,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?un(i,90):i.tint(90).toString(),"text-color":o,"border-color":e.dark?un(i,50):i.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":s,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":s}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?un(i,90):i.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?un(i,50):i.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?un(i,80):i.tint(80).toString());else{const a=e.dark?un(i,30):i.tint(30).toString(),l=i.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":o,"text-color":l,"border-color":o,"hover-bg-color":a,"hover-text-color":l,"hover-border-color":a,"active-bg-color":s,"active-border-color":s}),t.value){const c=e.dark?un(i,50):i.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=c,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=c}}}return r})}const Ab=Le({name:"KdButton"}),xb=Le({...Ab,props:as,emits:cb,setup(e,{expose:t,emit:n}){const r=e,o=Eb(r),i=Zo("button"),{_ref:s,_size:a,_type:l,_disabled:c,_props:u,shouldAddSpace:p,handleClick:d,iconBtnLoading:A,loadingIconColor:N,_loadingIcon:E,menuIconSize:P,IconArrowDown:w}=sb(r,n);return t({ref:s,size:a,type:l,disabled:c,shouldAddSpace:p}),(y,T)=>(j(),Ye(Or(y.tag),ko({ref_key:"_ref",ref:s},K(u),{class:[K(i).b(),K(i).m(K(l)),K(i).m(K(a)),K(i).is("disabled",K(c)),K(i).is("loading",y.loading),K(i).is("danger",y.danger),K(i).is("active",y.active),K(i).is("highlight",y.highlight),K(i).is("icon",!!y.icon),K(i).is("has-bg",y.bg),K(i).is("menu",y.menu)],style:K(o),onClick:K(d)}),{default:Bo(()=>[y.loading?(j(),J(we,{key:0},[y.$slots.loading?jn(y.$slots,"loading",{key:0}):(j(),Ye(K(ao),{key:1,class:Fe([K(i).is("loading"),K(i).m("loading")]),icon:K(E),color:K(N),size:y.iconSize},null,8,["class","icon","color","size"]))],64)):y.prefixIcon?(j(),Ye(K(ao),{key:1,class:Fe(K(i).m("prefix")),icon:y.prefixIcon,color:y.iconColor||"currentColor",size:y.iconSize},null,8,["class","icon","color","size"])):$e("v-if",!0),y.$slots.default&&!K(A)&&y.icon?jn(y.$slots,"default",{key:2}):y.$slots.default&&!K(A)?(j(),J("span",{key:3,class:Fe({[K(i).em("text","expand")]:K(p),[K(i).bm("menu","content")]:y.menu})},[jn(y.$slots,"default")],2)):$e("v-if",!0),y.suffixIcon?(j(),Ye(K(ao),{key:4,class:Fe(K(i).m("suffix")),icon:y.suffixIcon,color:y.iconColor||"currentColor",size:y.iconSize},null,8,["class","icon","color","size"])):$e("v-if",!0),y.menu?(j(),Ye(K(ao),{key:5,class:Fe(K(i).bm("menu","arrow")),icon:K(w),color:K(N),size:K(P)},null,8,["class","icon","color","size"])):$e("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var kb=Js(xb,[["__file","/workspace/source/kdesign-kdesign-vue3/packages/components/button/src/button.vue"]]);const Tb={size:as.size,type:as.type},Sb=Le({name:"KdButtonGroup"}),Rb=Le({...Sb,props:Tb,setup(e){const t=e;xc(Hu,hr({size:la(t,"size"),type:la(t,"type")}));const n=Zo("button");return(r,o)=>(j(),J("div",{class:Fe(`${K(n).b("group")}`)},[jn(r.$slots,"default")],2))}});var Wu=Js(Rb,[["__file","/workspace/source/kdesign-kdesign-vue3/packages/components/button/src/button-group.vue"]]);const Ob=Uu(kb,{ButtonGroup:Wu});z0(Wu);const Ib={class:"tp-container"},Pb={class:"tp-main"},Lb={class:"tp-check-list__title"},Nb={class:"tp-check-list__subtitle"},Db=Le({__name:"appContent",props:{app:{}},emits:["handle-click"],setup(e,{emit:t}){const n=e,{selected:r,title:o,subtitle:i}=Wf(n.app),s=()=>{t("handle-click",!r.value)};return(a,l)=>(j(),J("div",{class:Fe(["tp-check-list__item",{"is-checked":K(r)}]),onClick:s},[b("div",Ib,[b("div",Pb,[b("div",Lb,je(K(o)),1),b("div",Nb,je(K(i)),1)])])],2))}});const jb=Ke(Db,[["__scopeId","data-v-460b4a9a"]]);const Zs=e=>(Vt("data-v-87df2cb9"),e=e(),Kt(),e),$b={class:"layout tp-ai"},Mb={class:"tp-AIImage",gap:"10px"},Bb={class:"main-content"},Fb={class:"icon-container"},Ub=Zs(()=>b("div",{class:"icon-top"},null,-1)),Hb={class:Fe(["app-icon"])},zb={key:0,class:"default-icon-gray"},Wb=["src"],qb={class:"tp-container-left"},Vb=Zs(()=>b("div",{class:"title"},[Lr(" 收藏高频功能 "),b("span",{class:"gradient"},"一键直达效率翻倍")],-1)),Kb=Zs(()=>b("div",{class:"sub-title"},"一键添加高频工具至「我的应用」,随时调用省时省力",-1)),Gb={class:"tp-check-list__titlecheck"},Jb={class:"tp-check-list__inner"},Zb={__name:"WpsApp",setup(e){const t=de(!1);let n={};const r=de([]),o=de([]),i=hr([{name:"apps",selected:!0,children:[{name:"web_aippt",selected:!0,title:"AI PPT",subtitle:"一句话即可生成完整美观PPT",icon:wt(Tl)},{name:"kwebphonetic",selected:!0,title:"WPS 听记",subtitle:"实时语音转文字,记录天马行空",icon:wt(Sl)},{name:"kaiaccompanywrite",selected:!0,title:"AI 伴写",subtitle:"实时伴你写作,助你文思泉涌",icon:wt(kl)}]},{name:"apps2",selected:!1,children:[{name:"backupcenterv3",selected:!0,title:"备份中心",subtitle:"实时文档备份,寻回丢失文件",icon:wt(Rl)},{name:"kbillprintv2",selected:!1,title:"发票打印",subtitle:"智能识别、快速一页两张排版",icon:wt(Qm)},{name:"kpromeprocesson_flow",selected:!1,title:"在线流程图",subtitle:"便捷、专业的流程图应用",icon:wt(Ym)}]},{name:"apps3",selected:!1,children:[{name:"kpdf2wordv2",selected:!1,title:"WPS PDF转换",subtitle:"支持PDF转为多种格式",icon:wt(Jm)},{name:"ksplitmerge",selected:!1,title:"拆分合并器",subtitle:"一键拆分合并文档",icon:wt(Zm)},{name:"photo2pdf",selected:!1,title:"图片转PDF",subtitle:"一键图片转换为PDF",icon:wt(Xm)}]}]),s=de([{name:"web_aippt",selected:!0,title:"AI PPT",subtitle:"一句话即可生成完整美观PPT",icon:wt(Tl)},{name:"kwebphonetic",selected:!0,title:"WPS 听记",subtitle:"实时语音转文字,记录天马行空",icon:wt(Sl)},{name:"kaiaccompanywrite",selected:!0,title:"AI 伴写",subtitle:"实时伴你写作,助你文思泉涌",icon:wt(kl)},{name:"backupcenterv3",selected:!0,title:"备份中心",subtitle:"实时文档备份,寻回丢失文件",icon:wt(Rl)}]),a=de({name:"defaultGray",selected:!0,title:"",subtitle:"",icon:""}),l=de({web_aippt:!1,kwebphonetic:!1,kaiaccompanywrite:!1,backupcenterv3:!1,kbillprintv2:!1,kpromeprocesson_flow:!1,kpdf2wordv2:!1,ksplitmerge:!1,photo2pdf:!1}),c=["AI 智能","便携工具","格式转换"],u=(T,k)=>{A(T,k),k.selected=T,i.forEach(C=>{C.selected=C.children.every(te=>te.selected)}),y()},p=()=>{t.value=Object.values(l.value).some(C=>C===!0),Object.entries(l.value).forEach(([C,te])=>{te?r.value.push(C):o.value.push(C)});const T=["web_aippt","kwebphonetic","kaiaccompanywrite","backupcenterv3"];n=r.value.length===T.length&&T.every(C=>r.value.includes(C))?"default_page":"nondefault_page"},d=()=>{nt(),p(),ce("whatsnew_click",{source:"fakeTab",scene:n,page_name:"Favorites",action:"Favorites_more",apps_name:r.value.join(",")})},A=(T,k)=>{for(s.value=s.value.filter(C=>C.name!==a.value.name),T?(s.value=s.value.filter(C=>C.name!==k.name),s.value.push(k)):s.value=s.value.filter(C=>C.name!==k.name);s.value.length<4;)s.value.push(a.value)},N=(T,k)=>{i[k].children.forEach(te=>{te.selected=T,A(T,te)});const C={};so.value.forEach(({name:te,key:pe})=>{var Q;C[pe]=((Q=w.value[te])==null?void 0:Q.selected)??!1}),i[k].selected=T,l.value=C},E=ee(()=>i.flatMap(T=>T.children)),P=()=>{p(),ce("whatsnew_click",{source:"fakeTab",scene:n,page_name:"Favorites",action:"Favorites_confirm",apps_name:r.value.join(",")});for(const T of r.value)Kp(T).then(k=>{k.success?Fp(T):console.error("应用收藏失败",k.msg)});for(const T of o.value)Gp(T).then(k=>{k.success?Up(T):console.error("应用移除失败",k.msg)});nt(),Jp()},w=ee(()=>{const T={};return so.value.forEach(({name:k})=>{const C=E.value.find(te=>te.name===k);C&&(T[k]=C)}),T});vr(()=>{Vp().then(T=>{if(T.data||T.data.length!==0){const k=T.data;so.value.forEach(({name:C,key:te})=>{const pe=w.value[C];pe&&k.indexOf(te)>-1?(pe.selected=!0,A(!0,pe)):$a("first_in")==="false"&&(pe.selected=!1,A(!1,pe))}),i.forEach(C=>{C.selected=C.children.every(te=>te.selected)})}}).finally(()=>{$a("first_in")==="true"&&Ip("first_in",!1),y()})});const y=()=>{const T={};so.value.forEach(({name:k,key:C})=>{var te;T[C]=((te=w.value[k])==null?void 0:te.selected)??!1}),l.value=T};return Bn(()
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|M男之家

GMT+8, 2026-11-13 08:22 , Processed in 0.047111 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表