Files
weiguang-jewelry-ledger/新账系统/web/dist/assets/ReloadOutlined-BW5sy5GM.js
T

1 line
5.4 KiB
JavaScript

import{n as e}from"./rolldown-runtime-Dl_DZoUm.js";import{i as t}from"./react-1o5M9n0k.js";import{D as n,Dn as r,E as i,En as a,St as o,Tt as s,Z as c,b as l,mt as u,nt as d,wn as f}from"./skeleton-B4Z0R3jQ.js";var p=e(t()),m=e(r());function h(e){return[`small`,`middle`,`large`].includes(e)}function g(e){return e?typeof e==`number`&&!Number.isNaN(e):!1}var _=e=>{let{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:i,paddingXS:a,fontSizeLG:o,fontSizeSM:s,borderRadiusLG:c,borderRadiusSM:u,colorBgContainerDisabled:d,lineWidth:f}=e;return{[t]:[{display:`inline-flex`,alignItems:`center`,gap:0,paddingInline:r,margin:0,background:d,borderWidth:f,borderStyle:`solid`,borderColor:i,borderRadius:n,"&-large":{fontSize:o,borderRadius:c},"&-small":{paddingInline:a,borderRadius:u,fontSize:s},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0}},l(e,{focus:!1})]}},v=d([`Space`,`Addon`],e=>[_(e)]),y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},b=p.forwardRef((e,t)=>{let{className:r,children:i,style:a,prefixCls:s}=e,c=y(e,[`className`,`children`,`style`,`prefixCls`]),{getPrefixCls:l,direction:u}=p.useContext(o),d=l(`space-addon`,s),[f,h,g]=v(d),{compactItemClassnames:_,compactSize:b}=n(d,u),x=(0,m.default)(d,h,_,g,{[`${d}-${b}`]:b},r);return f(p.createElement(`div`,Object.assign({ref:t,className:x,style:a},c),i))}),x=p.createContext({latestIndex:0}),S=x.Provider,C=({className:e,index:t,children:n,split:r,style:i})=>{let{latestIndex:a}=p.useContext(x);return n==null?null:p.createElement(p.Fragment,null,p.createElement(`div`,{className:e,style:i},n),t<a&&r&&p.createElement(`span`,{className:`${e}-split`},r))},w=e=>{let{componentCls:t,antCls:n}=e;return{[t]:{display:`inline-flex`,"&-rtl":{direction:`rtl`},"&-vertical":{flexDirection:`column`},"&-align":{flexDirection:`column`,"&-center":{alignItems:`center`},"&-start":{alignItems:`flex-start`},"&-end":{alignItems:`flex-end`},"&-baseline":{alignItems:`baseline`}},[`${t}-item:empty`]:{display:`none`},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:`block`}}}},T=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},E=d(`Space`,e=>{let t=u(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[w(t),T(t)]},()=>({}),{resetStyle:!1}),D=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},O=p.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,size:i,className:a,style:o,classNames:c,styles:l}=s(`space`),{size:u=i??`small`,align:d,className:_,rootClassName:v,children:y,direction:b=`horizontal`,prefixCls:x,split:w,style:T,wrap:O=!1,classNames:k,styles:A}=e,j=D(e,[`size`,`align`,`className`,`rootClassName`,`children`,`direction`,`prefixCls`,`split`,`style`,`wrap`,`classNames`,`styles`]),[M,N]=Array.isArray(u)?u:[u,u],P=h(N),F=h(M),I=g(N),L=g(M),R=f(y,{keepEmpty:!0}),z=d===void 0&&b===`horizontal`?`center`:d,B=n(`space`,x),[V,H,U]=E(B),W=(0,m.default)(B,a,H,`${B}-${b}`,{[`${B}-rtl`]:r===`rtl`,[`${B}-align-${z}`]:z,[`${B}-gap-row-${N}`]:P,[`${B}-gap-col-${M}`]:F},_,v,U),G=(0,m.default)(`${B}-item`,k?.item??c.item),K=Object.assign(Object.assign({},l.item),A?.item),q=R.map((e,t)=>{let n=e?.key||`${G}-${t}`;return p.createElement(C,{className:G,key:n,index:t,split:w,style:K},e)}),J=p.useMemo(()=>({latestIndex:R.reduce((e,t,n)=>t==null?e:n,0)}),[R]);if(R.length===0)return null;let Y={};return O&&(Y.flexWrap=`wrap`),!F&&L&&(Y.columnGap=M),!P&&I&&(Y.rowGap=N),V(p.createElement(`div`,Object.assign({ref:t,className:W,style:Object.assign(Object.assign(Object.assign({},Y),o),T)},j),p.createElement(S,{value:J},q)))});O.Compact=i,O.Addon=b;var k={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z`}}]},name:`reload`,theme:`outlined`},A=p.forwardRef(function(e,t){return p.createElement(c,a({},e,{ref:t,icon:k}))});export{O as n,A as t};