canyonapp 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/assets/{PlusOutlined-BKBEnSjP.js → PlusOutlined-sY_ekDgf.js} +2 -2
  2. package/dist/assets/{PlusOutlined-BKBEnSjP.js.map → PlusOutlined-sY_ekDgf.js.map} +1 -1
  3. package/dist/assets/{Primary-kRxOAMo2.js → Primary-BQrD5zmy.js} +2 -2
  4. package/dist/assets/{Primary-kRxOAMo2.js.map → Primary-BQrD5zmy.js.map} +1 -1
  5. package/dist/assets/{SearchOutlined-Gotzyolm.js → SearchOutlined-BbFgLxbH.js} +2 -2
  6. package/dist/assets/{SearchOutlined-Gotzyolm.js.map → SearchOutlined-BbFgLxbH.js.map} +1 -1
  7. package/dist/assets/{_cr_-bWnXW3i3.js → _cr_-C-b_iODB.js} +2 -2
  8. package/dist/assets/{_cr_-bWnXW3i3.js.map → _cr_-C-b_iODB.js.map} +1 -1
  9. package/dist/assets/{_repo_-wV83V_Ao.js → _repo_-67VixA7I.js} +3 -3
  10. package/dist/assets/{_repo_-wV83V_Ao.js.map → _repo_-67VixA7I.js.map} +1 -1
  11. package/dist/assets/{avatar-U3eONG6p.js → avatar-mH_YkdK6.js} +2 -2
  12. package/dist/assets/{avatar-U3eONG6p.js.map → avatar-mH_YkdK6.js.map} +1 -1
  13. package/dist/assets/{card-Dlwgxpi6.js → card-Bjmmjg43.js} +2 -2
  14. package/dist/assets/{card-Dlwgxpi6.js.map → card-Bjmmjg43.js.map} +1 -1
  15. package/dist/assets/{commits-BduDqkt0.js → commits-DYkmJ-uz.js} +2 -2
  16. package/dist/assets/{commits-BduDqkt0.js.map → commits-DYkmJ-uz.js.map} +1 -1
  17. package/dist/assets/{compare-Cw69owfd.js → compare-DoPa_nKN.js} +2 -2
  18. package/dist/assets/{compare-Cw69owfd.js.map → compare-DoPa_nKN.js.map} +1 -1
  19. package/dist/assets/{cssMode-pdWk0ODS.js → cssMode-CdL5sipT.js} +2 -2
  20. package/dist/assets/{cssMode-pdWk0ODS.js.map → cssMode-CdL5sipT.js.map} +1 -1
  21. package/dist/assets/{database-Do-CAKK7.js → database-DMgJWEa5.js} +2 -2
  22. package/dist/assets/{database-Do-CAKK7.js.map → database-DMgJWEa5.js.map} +1 -1
  23. package/dist/assets/{dropdown-BZRTBpNN.js → dropdown-CRMju3hp.js} +2 -2
  24. package/dist/assets/{dropdown-BZRTBpNN.js.map → dropdown-CRMju3hp.js.map} +1 -1
  25. package/dist/assets/{form-DIHIzAn0.js → form-agjas9M8.js} +2 -2
  26. package/dist/assets/{form-DIHIzAn0.js.map → form-agjas9M8.js.map} +1 -1
  27. package/dist/assets/{htmlMode-BJkP6ANp.js → htmlMode-DL-08zYm.js} +2 -2
  28. package/dist/assets/{htmlMode-BJkP6ANp.js.map → htmlMode-DL-08zYm.js.map} +1 -1
  29. package/dist/assets/{index-CmpgusTt.js → index-Buo2eS-Q.js} +6 -6
  30. package/dist/assets/{index-CmpgusTt.js.map → index-Buo2eS-Q.js.map} +1 -1
  31. package/dist/assets/{infra-q74EDR4f.js → infra-BiHKZ7O6.js} +2 -2
  32. package/dist/assets/{infra-q74EDR4f.js.map → infra-BiHKZ7O6.js.map} +1 -1
  33. package/dist/assets/{jsonMode-YEDssj9h.js → jsonMode-BgUWdwoZ.js} +2 -2
  34. package/dist/assets/{jsonMode-YEDssj9h.js.map → jsonMode-BgUWdwoZ.js.map} +1 -1
  35. package/dist/assets/{login--q88da0J.js → login-BIxW6k10.js} +2 -2
  36. package/dist/assets/{login--q88da0J.js.map → login-BIxW6k10.js.map} +1 -1
  37. package/dist/assets/{login-D0kwNFIZ.js → login-CeBa1WeH.js} +1 -1
  38. package/dist/assets/{new-DLzTRflL.js → new-urCghqqi.js} +2 -2
  39. package/dist/assets/{new-DLzTRflL.js.map → new-urCghqqi.js.map} +1 -1
  40. package/dist/assets/{popconfirm-hdbKlzM8.js → popconfirm-XB7pULHq.js} +2 -2
  41. package/dist/assets/{popconfirm-hdbKlzM8.js.map → popconfirm-XB7pULHq.js.map} +1 -1
  42. package/dist/assets/{projects-BQQMe3Sa.js → projects-DpKv9IY6.js} +2 -2
  43. package/dist/assets/{projects-BQQMe3Sa.js.map → projects-DpKv9IY6.js.map} +1 -1
  44. package/dist/assets/{request-DBcySI71.js → request-OsR-2ZDW.js} +2 -2
  45. package/dist/assets/{request-DBcySI71.js.map → request-OsR-2ZDW.js.map} +1 -1
  46. package/dist/assets/{settings-FOAFhNrB.js → settings-CTtlAnDi.js} +2 -2
  47. package/dist/assets/{settings-FOAFhNrB.js.map → settings-CTtlAnDi.js.map} +1 -1
  48. package/dist/assets/{settings-DRwbAfEP.js → settings-dgWrzHRY.js} +2 -2
  49. package/dist/assets/{settings-DRwbAfEP.js.map → settings-dgWrzHRY.js.map} +1 -1
  50. package/dist/assets/{skeleton-C7XdtHwK.js → skeleton-Cxf0Yj2M.js} +2 -2
  51. package/dist/assets/{skeleton-C7XdtHwK.js.map → skeleton-Cxf0Yj2M.js.map} +1 -1
  52. package/dist/assets/{tabs-QwRshmnh.js → tabs-DfQHMKH8.js} +2 -2
  53. package/dist/assets/{tabs-QwRshmnh.js.map → tabs-DfQHMKH8.js.map} +1 -1
  54. package/dist/assets/{tsMode-B8Haz2NH.js → tsMode-B2vhKML7.js} +2 -2
  55. package/dist/assets/{tsMode-B8Haz2NH.js.map → tsMode-B2vhKML7.js.map} +1 -1
  56. package/dist/index.html +6 -6
  57. package/dist/index.js +1 -1
  58. package/dist/index.js.map +1 -1
  59. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- import{Sr as e,r as t}from"./request-DBcySI71.js";import{t as n}from"./card-Dlwgxpi6.js";import{C as r,g as i,l as a,t as o}from"./index-CmpgusTt.js";var s=a();function c(){var e=`/home/runner/work/canyonapp/canyonapp/src/pages/settings/index.tsx`,t=`2a78959216c627b3fc66db05ca61d6f984819162`,n=globalThis,r=`__coverage__`,i={path:`/home/runner/work/canyonapp/canyonapp/src/pages/settings/index.tsx`,s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},f:{0:0,1:0,2:0},b:{0:[0,0]},_coverageSchema:`1a1c01bbd47fc00a2c39e90264f33305004495a9`,hash:`2a78959216c627b3fc66db05ca61d6f984819162`,buildHash:`4e4584c53a732c0623978f2104f72bd85754b73c`},a=n[r]||(n[r]={});(!a[e]||a[e].hash!==t)&&(a[e]=i);var o=a[e];return c=function(){return o},o}c();var l=(c().s[0]++,`language`),u=(c().s[1]++,[{value:`cn`,labelKey:`settings.language.option.cn`},{value:`en`,labelKey:`settings.language.option.en`},{value:`ja`,labelKey:`settings.language.option.ja`}]);c().s[2]++;var d=()=>{c().f[0]++;let{t:a,i18n:d}=(c().s[3]++,e()),f=(c().s[4]++,(c().b[0][0]++,localStorage.getItem(l))||(c().b[0][1]++,`cn`));return c().s[5]++,c().s[9]++,(0,s.jsx)(o,{children:(0,s.jsxs)(`div`,{className:`py-4`,children:[(0,s.jsxs)(t.Title,{level:4,className:`mb-4 flex items-center gap-2`,children:[(0,s.jsx)(i,{}),a(`menus.settings`)]}),(0,s.jsx)(t.Paragraph,{type:`secondary`,className:`mb-4`,children:a(`settings.desc`)}),(0,s.jsx)(n,{title:a(`settings.preference`),style:{maxWidth:560},children:(0,s.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,s.jsx)(t.Text,{children:a(`common.language`)}),(0,s.jsx)(r,{value:f,onChange:e=>{c().f[1]++,c().s[6]++,localStorage.setItem(l,e),c().s[7]++,d.changeLanguage(e),c().s[8]++,window.location.reload()},options:u.map(({value:e,labelKey:t})=>(c().f[2]++,c().s[10]++,{value:e,label:a(t)})),style:{width:160}})]})})]})})};export{d as default};
2
- //# sourceMappingURL=settings-FOAFhNrB.js.map
1
+ import{Sr as e,r as t}from"./request-OsR-2ZDW.js";import{t as n}from"./card-Bjmmjg43.js";import{C as r,g as i,l as a,t as o}from"./index-Buo2eS-Q.js";var s=a();function c(){var e=`/home/runner/work/canyonapp/canyonapp/src/pages/settings/index.tsx`,t=`2a78959216c627b3fc66db05ca61d6f984819162`,n=globalThis,r=`__coverage__`,i={path:`/home/runner/work/canyonapp/canyonapp/src/pages/settings/index.tsx`,s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},f:{0:0,1:0,2:0},b:{0:[0,0]},_coverageSchema:`1a1c01bbd47fc00a2c39e90264f33305004495a9`,hash:`2a78959216c627b3fc66db05ca61d6f984819162`,buildHash:`b39dd5f35e71ea8988cc899677b2be97c1a97732`},a=n[r]||(n[r]={});(!a[e]||a[e].hash!==t)&&(a[e]=i);var o=a[e];return c=function(){return o},o}c();var l=(c().s[0]++,`language`),u=(c().s[1]++,[{value:`cn`,labelKey:`settings.language.option.cn`},{value:`en`,labelKey:`settings.language.option.en`},{value:`ja`,labelKey:`settings.language.option.ja`}]);c().s[2]++;var d=()=>{c().f[0]++;let{t:a,i18n:d}=(c().s[3]++,e()),f=(c().s[4]++,(c().b[0][0]++,localStorage.getItem(l))||(c().b[0][1]++,`cn`));return c().s[5]++,c().s[9]++,(0,s.jsx)(o,{children:(0,s.jsxs)(`div`,{className:`py-4`,children:[(0,s.jsxs)(t.Title,{level:4,className:`mb-4 flex items-center gap-2`,children:[(0,s.jsx)(i,{}),a(`menus.settings`)]}),(0,s.jsx)(t.Paragraph,{type:`secondary`,className:`mb-4`,children:a(`settings.desc`)}),(0,s.jsx)(n,{title:a(`settings.preference`),style:{maxWidth:560},children:(0,s.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,s.jsx)(t.Text,{children:a(`common.language`)}),(0,s.jsx)(r,{value:f,onChange:e=>{c().f[1]++,c().s[6]++,localStorage.setItem(l,e),c().s[7]++,d.changeLanguage(e),c().s[8]++,window.location.reload()},options:u.map(({value:e,labelKey:t})=>(c().f[2]++,c().s[10]++,{value:e,label:a(t)})),style:{width:160}})]})})]})})};export{d as default};
2
+ //# sourceMappingURL=settings-CTtlAnDi.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"settings-FOAFhNrB.js","names":[],"sources":["../../src/pages/settings/index.tsx"],"sourcesContent":["import { SettingOutlined } from \"@ant-design/icons\";\nimport { Card, Select, Typography } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport BasicLayout from \"@/layouts/BasicLayout\";\n\nconst LANGUAGE_KEY = \"language\";\nconst LANGUAGES = [\n { value: \"cn\", labelKey: \"settings.language.option.cn\" },\n { value: \"en\", labelKey: \"settings.language.option.en\" },\n { value: \"ja\", labelKey: \"settings.language.option.ja\" },\n] as const;\n\nconst SettingsPage = () => {\n const { t, i18n } = useTranslation();\n const current = (localStorage.getItem(LANGUAGE_KEY) || \"cn\") as string;\n\n const handleLanguageChange = (value: string) => {\n localStorage.setItem(LANGUAGE_KEY, value);\n i18n.changeLanguage(value);\n window.location.reload();\n };\n\n return (\n <BasicLayout>\n <div className=\"py-4\">\n <Typography.Title level={4} className=\"mb-4 flex items-center gap-2\">\n <SettingOutlined />\n {t(\"menus.settings\")}\n </Typography.Title>\n <Typography.Paragraph type=\"secondary\" className=\"mb-4\">\n {t(\"settings.desc\")}\n </Typography.Paragraph>\n\n <Card title={t(\"settings.preference\")} style={{ maxWidth: 560 }}>\n <div className=\"flex items-center gap-3\">\n <Typography.Text>{t(\"common.language\")}</Typography.Text>\n <Select\n value={current}\n onChange={handleLanguageChange}\n options={LANGUAGES.map(({ value, labelKey }) => ({\n value,\n label: t(labelKey),\n }))}\n style={{ width: 160 }}\n />\n </div>\n </Card>\n </div>\n </BasicLayout>\n );\n};\n\nexport default SettingsPage;\n"],"mappings":"4rBASE,MAAA,GAAA,UAAA,CAAA,OAAA,GAAA,EAAA,GAAA,CAJF,IAAM,GAAA,GAAA,CAAA,EAAA,KAAe,YACf,GAAA,GAAA,CAAA,EAAA,KAAY,CAChB,CAAE,MAAO,KAAM,SAAU,8BAA+B,CACxD,CAAE,MAAO,KAAM,SAAU,8BAA+B,C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H,MAAO,CAAE,MAAO,IAAA,CAChB,CAAA,CAAA,GAEC,CAAA,CAAA,GAEG,CAAA"}
1
+ {"version":3,"file":"settings-CTtlAnDi.js","names":[],"sources":["../../src/pages/settings/index.tsx"],"sourcesContent":["import { SettingOutlined } from \"@ant-design/icons\";\nimport { Card, Select, Typography } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport BasicLayout from \"@/layouts/BasicLayout\";\n\nconst LANGUAGE_KEY = \"language\";\nconst LANGUAGES = [\n { value: \"cn\", labelKey: \"settings.language.option.cn\" },\n { value: \"en\", labelKey: \"settings.language.option.en\" },\n { value: \"ja\", labelKey: \"settings.language.option.ja\" },\n] as const;\n\nconst SettingsPage = () => {\n const { t, i18n } = useTranslation();\n const current = (localStorage.getItem(LANGUAGE_KEY) || \"cn\") as string;\n\n const handleLanguageChange = (value: string) => {\n localStorage.setItem(LANGUAGE_KEY, value);\n i18n.changeLanguage(value);\n window.location.reload();\n };\n\n return (\n <BasicLayout>\n <div className=\"py-4\">\n <Typography.Title level={4} className=\"mb-4 flex items-center gap-2\">\n <SettingOutlined />\n {t(\"menus.settings\")}\n </Typography.Title>\n <Typography.Paragraph type=\"secondary\" className=\"mb-4\">\n {t(\"settings.desc\")}\n </Typography.Paragraph>\n\n <Card title={t(\"settings.preference\")} style={{ maxWidth: 560 }}>\n <div className=\"flex items-center gap-3\">\n <Typography.Text>{t(\"common.language\")}</Typography.Text>\n <Select\n value={current}\n onChange={handleLanguageChange}\n options={LANGUAGES.map(({ value, labelKey }) => ({\n value,\n label: t(labelKey),\n }))}\n style={{ width: 160 }}\n />\n </div>\n </Card>\n </div>\n </BasicLayout>\n );\n};\n\nexport default SettingsPage;\n"],"mappings":"4rBASE,MAAA,GAAA,UAAA,CAAA,OAAA,GAAA,EAAA,GAAA,CAJF,IAAM,GAAA,GAAA,CAAA,EAAA,KAAe,YACf,GAAA,GAAA,CAAA,EAAA,KAAY,CAChB,CAAE,MAAO,KAAM,SAAU,8BAA+B,CAC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,QACA,MAAO,EAAE,EAAA,CACV,EAAE,CACH,MAAO,CAAE,MAAO,IAAA,CAChB,CAAA,CAAA,GAEC,CAAA,CAAA,GAEG,CAAA"}
@@ -1,2 +1,2 @@
1
- import{r as e}from"./chunk-DECur_0Z.js";import{o as t,s as n,u as r}from"./chunk-UVKPFVEO-B3Wzw28P.js";import{Sr as i,i as a,r as o,v as s}from"./request-DBcySI71.js";import{t as c}from"./form-DIHIzAn0.js";import{t as l}from"./card-Dlwgxpi6.js";import{c as u,f as d,h as f,l as p,m,s as h}from"./index-CmpgusTt.js";var g=e(r(),1),_=p();function v(){var e=`/home/runner/work/canyonapp/canyonapp/src/pages/[provider]/[org]/[repo]/index/settings/helpers/icons/SolarUserIdLinear.tsx`,t=`ae0a96e903ab32d9e1efc492c1f96260af55a7e0`,n=globalThis,r=`__coverage__`,i={path:`/home/runner/work/canyonapp/canyonapp/src/pages/[provider]/[org]/[repo]/index/settings/helpers/icons/SolarUserIdLinear.tsx`,s:{0:0},f:{0:0},b:{},_coverageSchema:`1a1c01bbd47fc00a2c39e90264f33305004495a9`,hash:`ae0a96e903ab32d9e1efc492c1f96260af55a7e0`,buildHash:`4e4584c53a732c0623978f2104f72bd85754b73c`},a=n[r]||(n[r]={});(!a[e]||a[e].hash!==t)&&(a[e]=i);var o=a[e];return v=function(){return o},o}v();function y(e){return v().f[0]++,v().s[0]++,(0,_.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,role:`img`,"aria-label":`用户基本信息`,...e,children:[(0,_.jsx)(`title`,{children:`用户基本信息`}),(0,_.jsxs)(`g`,{fill:`none`,stroke:`currentColor`,strokeWidth:1.5,children:[(0,_.jsx)(`circle`,{cx:9,cy:9,r:2}),(0,_.jsx)(`path`,{d:`M13 15c0 1.105 0 2-4 2s-4-.895-4-2s1.79-2 4-2s4 .895 4 2Z`}),(0,_.jsx)(`path`,{d:`M2 12c0-3.771 0-5.657 1.172-6.828C4.343 4 6.229 4 10 4h4c3.771 0 5.657 0 6.828 1.172C22 6.343 22 8.229 22 12c0 3.771 0 5.657-1.172 6.828C19.657 20 17.771 20 14 20h-4c-3.771 0-5.657 0-6.828-1.172C2 17.657 2 15.771 2 12Z`}),(0,_.jsx)(`path`,{strokeLinecap:`round`,d:`M19 12h-4m4-3h-5m5 6h-3`})]})]})}function b(){var e=`/home/runner/work/canyonapp/canyonapp/src/pages/[provider]/[org]/[repo]/index/settings/index.tsx`,t=`0541634b3a84797ea90dfc388786b72a00cd4fd1`,n=globalThis,r=`__coverage__`,i={path:`/home/runner/work/canyonapp/canyonapp/src/pages/[provider]/[org]/[repo]/index/settings/index.tsx`,s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0},f:{0:0,1:0,2:0,3:0,4:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0]},_coverageSchema:`1a1c01bbd47fc00a2c39e90264f33305004495a9`,hash:`0541634b3a84797ea90dfc388786b72a00cd4fd1`,buildHash:`4e4584c53a732c0623978f2104f72bd85754b73c`},a=n[r]||(n[r]={});(!a[e]||a[e].hash!==t)&&(a[e]=i);var o=a[e];return b=function(){return o},o}b();var{Title:x,Text:S}=(b().s[0]++,o),{useToken:C}=(b().s[1]++,a);b().s[2]++;var w=()=>{b().f[0]++;let{t:e}=(b().s[3]++,i()),{token:r}=(b().s[4]++,C()),{repo:a}=(b().s[5]++,t()),o=(b().s[6]++,n()),[p]=(b().s[7]++,c.useForm()),[v,S]=(b().s[8]++,(0,g.useState)((b().b[0][0]++,a?.config)||(b().b[0][1]++,``))),[w,T]=(b().s[9]++,(0,g.useState)(!1)),[E,D]=(b().s[10]++,(0,g.useState)(!1)),O=(b().s[11]++,(b().b[1][0]++,a?.pathWithNamespace)||(b().b[1][1]++,`${o.org}/${o.repo}`)),k=(b().s[12]++,u(a?.id)),A=(b().s[13]++,(b().b[2][0]++,a?.bu)||(b().b[2][1]++,``));b().s[14]++,(0,g.useEffect)(()=>{b().f[1]++,b().s[15]++,a?.config?(b().b[3][0]++,b().s[16]++,S(a.config)):b().b[3][1]++},[a]),b().s[17]++;let j=async()=>{if(b().f[2]++,b().s[18]++,k)b().b[4][1]++;else{b().b[4][0]++,b().s[19]++,d.error(`仓库 ID 不存在`),b().s[20]++;return}b().s[21]++,T(!0),b().s[22]++;try{let e=(b().s[23]++,p.getFieldsValue());b().s[24]++,await h(k,{bu:e.bu,description:e.description}),b().s[25]++,d.success(`保存成功`)}catch(e){b().s[26]++,d.error(`保存失败`),b().s[27]++,console.error(e)}finally{b().s[28]++,T(!1)}};if(b().s[29]++,b().s[46]++,a)b().b[8][1]++;else return b().b[8][0]++,b().s[47]++,(0,_.jsx)(`div`,{children:`加载中...`});return b().s[48]++,(0,_.jsx)(`div`,{className:` space-y-[12px]`,children:(0,_.jsx)(l,{title:`项目设置`,children:(0,_.jsxs)(`div`,{className:`space-y-[12px]`,children:[(0,_.jsxs)(x,{level:5,className:`flex items-center gap-1`,children:[(0,_.jsx)(f,{style:{fontSize:`20px`},component:y}),`基础信息`]}),(0,_.jsxs)(c,{form:p,layout:`vertical`,initialValues:{repoPath:O,repoID:k,bu:A,description:(b().b[9][0]++,a?.description)||(b().b[9][1]++,``)},onFinish:j,children:[(0,_.jsx)(c.Item,{label:`仓库`,name:`repoPath`,children:(0,_.jsx)(m,{disabled:!0})}),(0,_.jsx)(c.Item,{label:`项目 ID`,name:`repoID`,children:(0,_.jsx)(m,{disabled:!0})}),(0,_.jsx)(c.Item,{label:`Bu`,name:`bu`,children:(0,_.jsx)(m,{placeholder:`请输入 Bu`})}),(0,_.jsx)(c.Item,{label:`描述`,name:`description`,children:(0,_.jsx)(m.TextArea,{rows:4,placeholder:`请输入项目描述`})}),(0,_.jsx)(c.Item,{children:(0,_.jsx)(s,{type:`primary`,onClick:()=>(b().f[4]++,b().s[49]++,p.submit()),loading:w,children:`保存更改`})})]})]})})})};export{w as default};
2
- //# sourceMappingURL=settings-DRwbAfEP.js.map
1
+ import{r as e}from"./chunk-DECur_0Z.js";import{o as t,s as n,u as r}from"./chunk-UVKPFVEO-B3Wzw28P.js";import{Sr as i,i as a,r as o,v as s}from"./request-OsR-2ZDW.js";import{t as c}from"./form-agjas9M8.js";import{t as l}from"./card-Bjmmjg43.js";import{c as u,f as d,h as f,l as p,m,s as h}from"./index-Buo2eS-Q.js";var g=e(r(),1),_=p();function v(){var e=`/home/runner/work/canyonapp/canyonapp/src/pages/[provider]/[org]/[repo]/index/settings/helpers/icons/SolarUserIdLinear.tsx`,t=`ae0a96e903ab32d9e1efc492c1f96260af55a7e0`,n=globalThis,r=`__coverage__`,i={path:`/home/runner/work/canyonapp/canyonapp/src/pages/[provider]/[org]/[repo]/index/settings/helpers/icons/SolarUserIdLinear.tsx`,s:{0:0},f:{0:0},b:{},_coverageSchema:`1a1c01bbd47fc00a2c39e90264f33305004495a9`,hash:`ae0a96e903ab32d9e1efc492c1f96260af55a7e0`,buildHash:`b39dd5f35e71ea8988cc899677b2be97c1a97732`},a=n[r]||(n[r]={});(!a[e]||a[e].hash!==t)&&(a[e]=i);var o=a[e];return v=function(){return o},o}v();function y(e){return v().f[0]++,v().s[0]++,(0,_.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,role:`img`,"aria-label":`用户基本信息`,...e,children:[(0,_.jsx)(`title`,{children:`用户基本信息`}),(0,_.jsxs)(`g`,{fill:`none`,stroke:`currentColor`,strokeWidth:1.5,children:[(0,_.jsx)(`circle`,{cx:9,cy:9,r:2}),(0,_.jsx)(`path`,{d:`M13 15c0 1.105 0 2-4 2s-4-.895-4-2s1.79-2 4-2s4 .895 4 2Z`}),(0,_.jsx)(`path`,{d:`M2 12c0-3.771 0-5.657 1.172-6.828C4.343 4 6.229 4 10 4h4c3.771 0 5.657 0 6.828 1.172C22 6.343 22 8.229 22 12c0 3.771 0 5.657-1.172 6.828C19.657 20 17.771 20 14 20h-4c-3.771 0-5.657 0-6.828-1.172C2 17.657 2 15.771 2 12Z`}),(0,_.jsx)(`path`,{strokeLinecap:`round`,d:`M19 12h-4m4-3h-5m5 6h-3`})]})]})}function b(){var e=`/home/runner/work/canyonapp/canyonapp/src/pages/[provider]/[org]/[repo]/index/settings/index.tsx`,t=`0541634b3a84797ea90dfc388786b72a00cd4fd1`,n=globalThis,r=`__coverage__`,i={path:`/home/runner/work/canyonapp/canyonapp/src/pages/[provider]/[org]/[repo]/index/settings/index.tsx`,s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0},f:{0:0,1:0,2:0,3:0,4:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0]},_coverageSchema:`1a1c01bbd47fc00a2c39e90264f33305004495a9`,hash:`0541634b3a84797ea90dfc388786b72a00cd4fd1`,buildHash:`b39dd5f35e71ea8988cc899677b2be97c1a97732`},a=n[r]||(n[r]={});(!a[e]||a[e].hash!==t)&&(a[e]=i);var o=a[e];return b=function(){return o},o}b();var{Title:x,Text:S}=(b().s[0]++,o),{useToken:C}=(b().s[1]++,a);b().s[2]++;var w=()=>{b().f[0]++;let{t:e}=(b().s[3]++,i()),{token:r}=(b().s[4]++,C()),{repo:a}=(b().s[5]++,t()),o=(b().s[6]++,n()),[p]=(b().s[7]++,c.useForm()),[v,S]=(b().s[8]++,(0,g.useState)((b().b[0][0]++,a?.config)||(b().b[0][1]++,``))),[w,T]=(b().s[9]++,(0,g.useState)(!1)),[E,D]=(b().s[10]++,(0,g.useState)(!1)),O=(b().s[11]++,(b().b[1][0]++,a?.pathWithNamespace)||(b().b[1][1]++,`${o.org}/${o.repo}`)),k=(b().s[12]++,u(a?.id)),A=(b().s[13]++,(b().b[2][0]++,a?.bu)||(b().b[2][1]++,``));b().s[14]++,(0,g.useEffect)(()=>{b().f[1]++,b().s[15]++,a?.config?(b().b[3][0]++,b().s[16]++,S(a.config)):b().b[3][1]++},[a]),b().s[17]++;let j=async()=>{if(b().f[2]++,b().s[18]++,k)b().b[4][1]++;else{b().b[4][0]++,b().s[19]++,d.error(`仓库 ID 不存在`),b().s[20]++;return}b().s[21]++,T(!0),b().s[22]++;try{let e=(b().s[23]++,p.getFieldsValue());b().s[24]++,await h(k,{bu:e.bu,description:e.description}),b().s[25]++,d.success(`保存成功`)}catch(e){b().s[26]++,d.error(`保存失败`),b().s[27]++,console.error(e)}finally{b().s[28]++,T(!1)}};if(b().s[29]++,b().s[46]++,a)b().b[8][1]++;else return b().b[8][0]++,b().s[47]++,(0,_.jsx)(`div`,{children:`加载中...`});return b().s[48]++,(0,_.jsx)(`div`,{className:` space-y-[12px]`,children:(0,_.jsx)(l,{title:`项目设置`,children:(0,_.jsxs)(`div`,{className:`space-y-[12px]`,children:[(0,_.jsxs)(x,{level:5,className:`flex items-center gap-1`,children:[(0,_.jsx)(f,{style:{fontSize:`20px`},component:y}),`基础信息`]}),(0,_.jsxs)(c,{form:p,layout:`vertical`,initialValues:{repoPath:O,repoID:k,bu:A,description:(b().b[9][0]++,a?.description)||(b().b[9][1]++,``)},onFinish:j,children:[(0,_.jsx)(c.Item,{label:`仓库`,name:`repoPath`,children:(0,_.jsx)(m,{disabled:!0})}),(0,_.jsx)(c.Item,{label:`项目 ID`,name:`repoID`,children:(0,_.jsx)(m,{disabled:!0})}),(0,_.jsx)(c.Item,{label:`Bu`,name:`bu`,children:(0,_.jsx)(m,{placeholder:`请输入 Bu`})}),(0,_.jsx)(c.Item,{label:`描述`,name:`description`,children:(0,_.jsx)(m.TextArea,{rows:4,placeholder:`请输入项目描述`})}),(0,_.jsx)(c.Item,{children:(0,_.jsx)(s,{type:`primary`,onClick:()=>(b().f[4]++,b().s[49]++,p.submit()),loading:w,children:`保存更改`})})]})]})})})};export{w as default};
2
+ //# sourceMappingURL=settings-dgWrzHRY.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"settings-DRwbAfEP.js","names":[],"sources":["../../src/pages/[provider]/[org]/[repo]/index/settings/helpers/icons/SolarUserIdLinear.tsx","../../src/pages/[provider]/[org]/[repo]/index/settings/index.tsx"],"sourcesContent":["import type { SVGProps } from \"react\";\n\nexport function SolarUserIdLinear(props: SVGProps<SVGSVGElement>) {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"1em\"\n height=\"1em\"\n viewBox=\"0 0 24 24\"\n role=\"img\"\n aria-label=\"用户基本信息\"\n {...props}\n >\n <title>用户基本信息</title>\n <g fill=\"none\" stroke=\"currentColor\" strokeWidth={1.5}>\n <circle cx={9} cy={9} r={2}></circle>\n <path d=\"M13 15c0 1.105 0 2-4 2s-4-.895-4-2s1.79-2 4-2s4 .895 4 2Z\"></path>\n <path d=\"M2 12c0-3.771 0-5.657 1.172-6.828C4.343 4 6.229 4 10 4h4c3.771 0 5.657 0 6.828 1.172C22 6.343 22 8.229 22 12c0 3.771 0 5.657-1.172 6.828C19.657 20 17.771 20 14 20h-4c-3.771 0-5.657 0-6.828-1.172C2 17.657 2 15.771 2 12Z\"></path>\n <path strokeLinecap=\"round\" d=\"M19 12h-4m4-3h-5m5 6h-3\"></path>\n </g>\n </svg>\n );\n}\n","import Icon, { ExperimentOutlined } from \"@ant-design/icons\";\nimport { Editor } from \"@monaco-editor/react\";\nimport { Button, Card, Form, Input, message, Typography, theme } from \"antd\";\nimport { useEffect, useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useOutletContext, useParams } from \"react-router-dom\";\nimport { getRepoIDFromId } from \"@/helpers/repo\";\nimport { updateRepo } from \"@/services/repo\";\nimport { SolarUserIdLinear } from \"@/pages/[provider]/[org]/[repo]/index/settings/helpers/icons/SolarUserIdLinear.tsx\";\n\nconst { Title, Text } = Typography;\nconst { useToken } = theme;\n\ntype Repo = {\n id: string;\n pathWithNamespace: string;\n description: string;\n bu: string;\n tags: string;\n members: string;\n config: string;\n createdAt: string;\n updatedAt: string;\n};\n\nconst RepoSettings = () => {\n const { t } = useTranslation();\n const { token } = useToken();\n const { repo } = useOutletContext<{\n repo: Repo | null;\n }>();\n const params = useParams();\n const [form] = Form.useForm();\n const [config, setConfig] = useState<string>(repo?.config || \"\");\n const [loading, setLoading] = useState(false);\n const [configLoading, setConfigLoading] = useState(false);\n\n const repoPath = repo?.pathWithNamespace || `${params.org}/${params.repo}`;\n const repoID = getRepoIDFromId(repo?.id);\n const bu = repo?.bu || \"\";\n\n useEffect(() => {\n if (repo?.config) {\n setConfig(repo.config);\n }\n }, [repo]);\n\n const onFinish = async () => {\n if (!repoID) {\n message.error(\"仓库 ID 不存在\");\n return;\n }\n\n setLoading(true);\n try {\n const values = form.getFieldsValue() as { bu?: string; description?: string };\n await updateRepo(repoID, { bu: values.bu, description: values.description });\n message.success(\"保存成功\");\n } catch (error) {\n message.error(\"保存失败\");\n console.error(error);\n } finally {\n setLoading(false);\n }\n };\n\n const onSaveConfig = async () => {\n if (!repoID) {\n message.error(\"仓库 ID 不存在\");\n return;\n }\n\n try {\n if (config?.trim()) {\n try {\n JSON.parse(config);\n } catch {\n message.error(\"配置必须是合法的 JSON\");\n return;\n }\n }\n\n setConfigLoading(true);\n try {\n await updateRepo(repoID, { config });\n message.success(\"配置已保存\");\n } catch {\n message.error(\"保存失败\");\n }\n } catch (e: unknown) {\n message.error(String(e) || \"保存失败\");\n } finally {\n setConfigLoading(false);\n }\n };\n\n if (!repo) {\n return <div>加载中...</div>;\n }\n\n return (\n <div className={\" space-y-[12px]\"}>\n <Card title={\"项目设置\"}>\n <div className={\"space-y-[12px]\"}>\n <Title level={5} className={\"flex items-center gap-1\"}>\n <Icon style={{ fontSize: \"20px\" }} component={SolarUserIdLinear} />\n 基础信息\n </Title>\n <Form\n form={form}\n layout={\"vertical\"}\n initialValues={{\n repoPath,\n repoID,\n bu,\n description: repo?.description || \"\",\n }}\n onFinish={onFinish}\n >\n <Form.Item label={\"仓库\"} name={\"repoPath\"}>\n <Input disabled />\n </Form.Item>\n <Form.Item label={\"项目 ID\"} name={\"repoID\"}>\n <Input disabled />\n </Form.Item>\n <Form.Item label={\"Bu\"} name={\"bu\"}>\n <Input placeholder={\"请输入 Bu\"} />\n </Form.Item>\n <Form.Item label={\"描述\"} name={\"description\"}>\n <Input.TextArea rows={4} placeholder={\"请输入项目描述\"} />\n </Form.Item>\n\n <Form.Item>\n <Button type={\"primary\"} onClick={() => form.submit()} loading={loading}>\n 保存更改\n </Button>\n </Form.Item>\n </Form>\n </div>\n </Card>\n </div>\n );\n};\n\nexport default RepoSettings;\n"],"mappings":"w8BAEA,SAAA,EAAA,EAAA,CACE,MADgE,IAAA,CAAA,EAAA,KAAA,GAAA,CAAA,EAAA,MAChE,EAAA,EAAA,MAAA,MAAA,ohDCyBQ,MAAA,GAAA,UAAA,CAAA,OAAA,GAAA,EAAA,GAAA,CAlBV,GAAM,CAAE,QAAO,SAAA,GAAA,CAAA,EAAA,KAAS,GAClB,CAAE,aAAA,GAAA,CAAA,EAAA,KAAa,GAAA,GAAA,CAAA,EAAA,KAcrB,IAAM,MAAqB,CAAA,GAAA,CAAA,EAAA,KACzB,GAAM,CAAE,MAAA,GAAA,CAAA,EAAA,KAAM,GAAgB,EACxB,CAAE,UAAA,GAAA,CAAA,EAAA,KAAU,GAAU,EACtB,CAAE,SAAA,GAAA,CAAA,EAAA,KAAS,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,MAAO,KAAM,KAAM,eAC5B,EAAA,EAAA,KAAC,EAAD,CAAO,YAAa,SAAY,CAAA,CACtB,CAAA,EACZ,EAAA,EAAA,KAAC,EAAK,KAAN,CAAW,MAAO,KAAM,KAAM,wBAC5B,EAAA,EAAA,KAAC,EAAM,SAAP,CAAgB,KAAM,EAAG,YAAa,UAAa,CAAA,CACzC,CAAA,EAEZ,EAAA,EAAA,KAAC,EAAK,KAAN,CAAA,UACE,EAAA,EAAA,KAAC,EAAD,CAAQ,KAAM,UAAW,aAAe,GAAA,CAAA,EAAA,KAAA,GAAA,CAAA,EAAA,MAAA,EAAK,QAAQ,EAAW,mBAAS,OAEhE,CAAA,CACC,CAAA,CAAA,MAGX,CAAA,CACH,CAAA"}
1
+ {"version":3,"file":"settings-dgWrzHRY.js","names":[],"sources":["../../src/pages/[provider]/[org]/[repo]/index/settings/helpers/icons/SolarUserIdLinear.tsx","../../src/pages/[provider]/[org]/[repo]/index/settings/index.tsx"],"sourcesContent":["import type { SVGProps } from \"react\";\n\nexport function SolarUserIdLinear(props: SVGProps<SVGSVGElement>) {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"1em\"\n height=\"1em\"\n viewBox=\"0 0 24 24\"\n role=\"img\"\n aria-label=\"用户基本信息\"\n {...props}\n >\n <title>用户基本信息</title>\n <g fill=\"none\" stroke=\"currentColor\" strokeWidth={1.5}>\n <circle cx={9} cy={9} r={2}></circle>\n <path d=\"M13 15c0 1.105 0 2-4 2s-4-.895-4-2s1.79-2 4-2s4 .895 4 2Z\"></path>\n <path d=\"M2 12c0-3.771 0-5.657 1.172-6.828C4.343 4 6.229 4 10 4h4c3.771 0 5.657 0 6.828 1.172C22 6.343 22 8.229 22 12c0 3.771 0 5.657-1.172 6.828C19.657 20 17.771 20 14 20h-4c-3.771 0-5.657 0-6.828-1.172C2 17.657 2 15.771 2 12Z\"></path>\n <path strokeLinecap=\"round\" d=\"M19 12h-4m4-3h-5m5 6h-3\"></path>\n </g>\n </svg>\n );\n}\n","import Icon, { ExperimentOutlined } from \"@ant-design/icons\";\nimport { Editor } from \"@monaco-editor/react\";\nimport { Button, Card, Form, Input, message, Typography, theme } from \"antd\";\nimport { useEffect, useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useOutletContext, useParams } from \"react-router-dom\";\nimport { getRepoIDFromId } from \"@/helpers/repo\";\nimport { updateRepo } from \"@/services/repo\";\nimport { SolarUserIdLinear } from \"@/pages/[provider]/[org]/[repo]/index/settings/helpers/icons/SolarUserIdLinear.tsx\";\n\nconst { Title, Text } = Typography;\nconst { useToken } = theme;\n\ntype Repo = {\n id: string;\n pathWithNamespace: string;\n description: string;\n bu: string;\n tags: string;\n members: string;\n config: string;\n createdAt: string;\n updatedAt: string;\n};\n\nconst RepoSettings = () => {\n const { t } = useTranslation();\n const { token } = useToken();\n const { repo } = useOutletContext<{\n repo: Repo | null;\n }>();\n const params = useParams();\n const [form] = Form.useForm();\n const [config, setConfig] = useState<string>(repo?.config || \"\");\n const [loading, setLoading] = useState(false);\n const [configLoading, setConfigLoading] = useState(false);\n\n const repoPath = repo?.pathWithNamespace || `${params.org}/${params.repo}`;\n const repoID = getRepoIDFromId(repo?.id);\n const bu = repo?.bu || \"\";\n\n useEffect(() => {\n if (repo?.config) {\n setConfig(repo.config);\n }\n }, [repo]);\n\n const onFinish = async () => {\n if (!repoID) {\n message.error(\"仓库 ID 不存在\");\n return;\n }\n\n setLoading(true);\n try {\n const values = form.getFieldsValue() as { bu?: string; description?: string };\n await updateRepo(repoID, { bu: values.bu, description: values.description });\n message.success(\"保存成功\");\n } catch (error) {\n message.error(\"保存失败\");\n console.error(error);\n } finally {\n setLoading(false);\n }\n };\n\n const onSaveConfig = async () => {\n if (!repoID) {\n message.error(\"仓库 ID 不存在\");\n return;\n }\n\n try {\n if (config?.trim()) {\n try {\n JSON.parse(config);\n } catch {\n message.error(\"配置必须是合法的 JSON\");\n return;\n }\n }\n\n setConfigLoading(true);\n try {\n await updateRepo(repoID, { config });\n message.success(\"配置已保存\");\n } catch {\n message.error(\"保存失败\");\n }\n } catch (e: unknown) {\n message.error(String(e) || \"保存失败\");\n } finally {\n setConfigLoading(false);\n }\n };\n\n if (!repo) {\n return <div>加载中...</div>;\n }\n\n return (\n <div className={\" space-y-[12px]\"}>\n <Card title={\"项目设置\"}>\n <div className={\"space-y-[12px]\"}>\n <Title level={5} className={\"flex items-center gap-1\"}>\n <Icon style={{ fontSize: \"20px\" }} component={SolarUserIdLinear} />\n 基础信息\n </Title>\n <Form\n form={form}\n layout={\"vertical\"}\n initialValues={{\n repoPath,\n repoID,\n bu,\n description: repo?.description || \"\",\n }}\n onFinish={onFinish}\n >\n <Form.Item label={\"仓库\"} name={\"repoPath\"}>\n <Input disabled />\n </Form.Item>\n <Form.Item label={\"项目 ID\"} name={\"repoID\"}>\n <Input disabled />\n </Form.Item>\n <Form.Item label={\"Bu\"} name={\"bu\"}>\n <Input placeholder={\"请输入 Bu\"} />\n </Form.Item>\n <Form.Item label={\"描述\"} name={\"description\"}>\n <Input.TextArea rows={4} placeholder={\"请输入项目描述\"} />\n </Form.Item>\n\n <Form.Item>\n <Button type={\"primary\"} onClick={() => form.submit()} loading={loading}>\n 保存更改\n </Button>\n </Form.Item>\n </Form>\n </div>\n </Card>\n </div>\n );\n};\n\nexport default RepoSettings;\n"],"mappings":"w8BAEA,SAAA,EAAA,EAAA,CACE,MADgE,IAAA,CAAA,EAAA,KAAA,GAAA,CAAA,EAAA,MAChE,EAAA,EAAA,MAAA,MAAA,ohDCyBQ,MAAA,GAAA,UAAA,CAAA,OAAA,GAAA,EAAA,GAAA,CAlBV,GAAM,CAAE,QAAO,SAAA,GAAA,CAAA,EAAA,KAAS,GAClB,CAAE,aAAA,GAAA,CAAA,EAAA,KAAa,GAAA,GAAA,CAAA,EAAA,KAcrB,IAAM,MAAqB,CAAA,GAAA,CAAA,EAAA,KACzB,GAAM,CAAE,MAAA,GAAA,CAAA,EAAA,KAAM,GAAgB,E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,KAAC,EAAD,CAAO,SAAA,GAAW,CAAA,CACR,CAAA,EACZ,EAAA,EAAA,KAAC,EAAK,KAAN,CAAW,MAAO,KAAM,KAAM,eAC5B,EAAA,EAAA,KAAC,EAAD,CAAO,YAAa,SAAY,CAAA,CACtB,CAAA,EACZ,EAAA,EAAA,KAAC,EAAK,KAAN,CAAW,MAAO,KAAM,KAAM,wBAC5B,EAAA,EAAA,KAAC,EAAM,SAAP,CAAgB,KAAM,EAAG,YAAa,UAAa,CAAA,CACzC,CAAA,EAEZ,EAAA,EAAA,KAAC,EAAK,KAAN,CAAA,UACE,EAAA,EAAA,KAAC,EAAD,CAAQ,KAAM,UAAW,aAAe,GAAA,CAAA,EAAA,KAAA,GAAA,CAAA,EAAA,MAAA,EAAK,QAAQ,EAAW,mBAAS,OAEhE,CAAA,CACC,CAAA,CAAA,MAGX,CAAA,CACH,CAAA"}
@@ -1,4 +1,4 @@
1
- import{r as e}from"./chunk-DECur_0Z.js";import{u as t}from"./chunk-UVKPFVEO-B3Wzw28P.js";import{An as n,Gn as r,Jn as i,Qn as a,Un as o,Wn as s,Yn as c,an as l}from"./request-DBcySI71.js";var u=e(t()),d=e=>{let{prefixCls:t,className:n,style:r,size:i,shape:o}=e,s=a({[`${t}-lg`]:i===`large`,[`${t}-sm`]:i===`small`}),c=a({[`${t}-circle`]:o===`circle`,[`${t}-square`]:o===`square`,[`${t}-round`]:o===`round`}),l=u.useMemo(()=>typeof i==`number`?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return u.createElement(`span`,{className:a(t,s,c,n),style:{...l,...r}})},f=new s(`ant-skeleton-loading`,{"0%":{backgroundPosition:`100% 50%`},"100%":{backgroundPosition:`0 50%`}}),p=e=>({height:e,lineHeight:r(e)}),m=e=>({width:e,...p(e)}),h=e=>({background:e.skeletonLoadingBackground,backgroundSize:`400% 100%`,animationName:f,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:`ease`,animationIterationCount:`infinite`}),g=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...p(e)}),_=e=>{let{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a}=e;return{[t]:{display:`inline-block`,verticalAlign:`top`,background:n,...m(r)},[`${t}${t}-circle`]:{borderRadius:`50%`},[`${t}${t}-lg`]:{...m(i)},[`${t}${t}-sm`]:{...m(a)}}},v=e=>{let{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[r]:{display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:n,...g(t,s)},[`${r}-lg`]:{...g(i,s)},[`${r}-sm`]:{...g(a,s)}}},y=e=>{let{gradientFromColor:t,borderRadiusSM:n,imageSizeBase:r,calc:i}=e;return{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,verticalAlign:`middle`,background:t,borderRadius:n,...m(i(r).mul(2).equal())}},b=e=>({[e.skeletonNodeCls]:{...y(e)}}),x=e=>{let{skeletonImageCls:t,imageSizeBase:n,calc:r}=e;return{[t]:{...y(e),[`${t}-path`]:{fill:`#bfbfbf`},[`${t}-svg`]:{...m(n),maxWidth:r(n).mul(4).equal(),maxHeight:r(n).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:`50%`}},[`${t}${t}-circle`]:{borderRadius:`50%`}}},S=(e,t,n)=>{let{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:`50%`},[`${n}${r}-round`]:{borderRadius:t}}},C=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...p(e)}),w=e=>{let{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[n]:{display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal(),...C(r,s)},...S(e,r,n),[`${n}-lg`]:{...C(i,s)},...S(e,i,`${n}-lg`),[`${n}-sm`]:{...C(a,s)},...S(e,a,`${n}-sm`)}},T=e=>{let{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:a,skeletonInputCls:o,skeletonNodeCls:s,skeletonImageCls:c,controlHeight:l,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:p,marginSM:g,borderRadius:y,titleHeight:S,blockRadius:C,paragraphLiHeight:T,controlHeightXS:E,paragraphMarginTop:D}=e;return{[t]:{display:`table`,width:`100%`,[`${t}-header`]:{display:`table-cell`,paddingInlineEnd:p,verticalAlign:`top`,[n]:{display:`inline-block`,verticalAlign:`top`,background:f,...m(l)},[`${n}-circle`]:{borderRadius:`50%`},[`${n}-lg`]:{...m(u)},[`${n}-sm`]:{...m(d)}},[`${t}-section`]:{display:`table-cell`,width:`100%`,verticalAlign:`top`,[r]:{width:`100%`,height:S,background:f,borderRadius:C,[`+ ${i}`]:{marginBlockStart:d}},[i]:{padding:0,"> li":{width:`100%`,height:T,listStyle:`none`,background:f,borderRadius:C,"+ li":{marginBlockStart:E}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:`61%`}},[`&-round ${t}-section`]:{[`${r}, ${i} > li`]:{borderRadius:y}}},[`${t}-with-avatar ${t}-section`]:{[r]:{marginBlockStart:g,[`+ ${i}`]:{marginBlockStart:D}}},[`${t}${t}-element`]:{display:`inline-block`,width:`auto`,...w(e),..._(e),...v(e),...b(e),...x(e)},[`${t}${t}-block`]:{width:`100%`,[a]:{width:`100%`},[o]:{width:`100%`}},[`${t}${t}-active`]:{[`
1
+ import{r as e}from"./chunk-DECur_0Z.js";import{u as t}from"./chunk-UVKPFVEO-B3Wzw28P.js";import{An as n,Gn as r,Jn as i,Qn as a,Un as o,Wn as s,Yn as c,an as l}from"./request-OsR-2ZDW.js";var u=e(t()),d=e=>{let{prefixCls:t,className:n,style:r,size:i,shape:o}=e,s=a({[`${t}-lg`]:i===`large`,[`${t}-sm`]:i===`small`}),c=a({[`${t}-circle`]:o===`circle`,[`${t}-square`]:o===`square`,[`${t}-round`]:o===`round`}),l=u.useMemo(()=>typeof i==`number`?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return u.createElement(`span`,{className:a(t,s,c,n),style:{...l,...r}})},f=new s(`ant-skeleton-loading`,{"0%":{backgroundPosition:`100% 50%`},"100%":{backgroundPosition:`0 50%`}}),p=e=>({height:e,lineHeight:r(e)}),m=e=>({width:e,...p(e)}),h=e=>({background:e.skeletonLoadingBackground,backgroundSize:`400% 100%`,animationName:f,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:`ease`,animationIterationCount:`infinite`}),g=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...p(e)}),_=e=>{let{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a}=e;return{[t]:{display:`inline-block`,verticalAlign:`top`,background:n,...m(r)},[`${t}${t}-circle`]:{borderRadius:`50%`},[`${t}${t}-lg`]:{...m(i)},[`${t}${t}-sm`]:{...m(a)}}},v=e=>{let{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[r]:{display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:n,...g(t,s)},[`${r}-lg`]:{...g(i,s)},[`${r}-sm`]:{...g(a,s)}}},y=e=>{let{gradientFromColor:t,borderRadiusSM:n,imageSizeBase:r,calc:i}=e;return{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,verticalAlign:`middle`,background:t,borderRadius:n,...m(i(r).mul(2).equal())}},b=e=>({[e.skeletonNodeCls]:{...y(e)}}),x=e=>{let{skeletonImageCls:t,imageSizeBase:n,calc:r}=e;return{[t]:{...y(e),[`${t}-path`]:{fill:`#bfbfbf`},[`${t}-svg`]:{...m(n),maxWidth:r(n).mul(4).equal(),maxHeight:r(n).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:`50%`}},[`${t}${t}-circle`]:{borderRadius:`50%`}}},S=(e,t,n)=>{let{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:`50%`},[`${n}${r}-round`]:{borderRadius:t}}},C=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...p(e)}),w=e=>{let{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[n]:{display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal(),...C(r,s)},...S(e,r,n),[`${n}-lg`]:{...C(i,s)},...S(e,i,`${n}-lg`),[`${n}-sm`]:{...C(a,s)},...S(e,a,`${n}-sm`)}},T=e=>{let{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:a,skeletonInputCls:o,skeletonNodeCls:s,skeletonImageCls:c,controlHeight:l,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:p,marginSM:g,borderRadius:y,titleHeight:S,blockRadius:C,paragraphLiHeight:T,controlHeightXS:E,paragraphMarginTop:D}=e;return{[t]:{display:`table`,width:`100%`,[`${t}-header`]:{display:`table-cell`,paddingInlineEnd:p,verticalAlign:`top`,[n]:{display:`inline-block`,verticalAlign:`top`,background:f,...m(l)},[`${n}-circle`]:{borderRadius:`50%`},[`${n}-lg`]:{...m(u)},[`${n}-sm`]:{...m(d)}},[`${t}-section`]:{display:`table-cell`,width:`100%`,verticalAlign:`top`,[r]:{width:`100%`,height:S,background:f,borderRadius:C,[`+ ${i}`]:{marginBlockStart:d}},[i]:{padding:0,"> li":{width:`100%`,height:T,listStyle:`none`,background:f,borderRadius:C,"+ li":{marginBlockStart:E}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:`61%`}},[`&-round ${t}-section`]:{[`${r}, ${i} > li`]:{borderRadius:y}}},[`${t}-with-avatar ${t}-section`]:{[r]:{marginBlockStart:g,[`+ ${i}`]:{marginBlockStart:D}}},[`${t}${t}-element`]:{display:`inline-block`,width:`auto`,...w(e),..._(e),...v(e),...b(e),...x(e)},[`${t}${t}-block`]:{width:`100%`,[a]:{width:`100%`},[o]:{width:`100%`}},[`${t}${t}-active`]:{[`
2
2
  ${r},
3
3
  ${i} > li,
4
4
  ${n},
@@ -7,4 +7,4 @@ import{r as e}from"./chunk-DECur_0Z.js";import{u as t}from"./chunk-UVKPFVEO-B3Wz
7
7
  ${s},
8
8
  ${c}
9
9
  `]:{...h(e)}}}},E=n(`Skeleton`,e=>{let{componentCls:t,calc:n}=e;return T(o(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:`1.4s`}))},e=>{let{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[[`color`,`gradientFromColor`],[`colorGradientEnd`,`gradientToColor`]]}),D=e=>{let{prefixCls:t,className:n,classNames:r,rootClassName:o,active:s,style:c,styles:l,shape:f=`circle`,size:p=`default`,...m}=e,{getPrefixCls:h}=u.useContext(i),g=h(`skeleton`,t),[_,v]=E(g),y=a(g,`${g}-element`,{[`${g}-active`]:s},r?.root,n,o,_,v);return u.createElement(`div`,{className:y,style:l?.root},u.createElement(d,{prefixCls:`${g}-avatar`,className:r?.content,style:{...l?.content,...c},shape:f,size:p,...m}))},O=e=>{let{prefixCls:t,className:n,rootClassName:r,classNames:o,active:s,style:c,styles:l,block:f=!1,size:p=`default`,...m}=e,{getPrefixCls:h}=u.useContext(i),g=h(`skeleton`,t),[_,v]=E(g),y=a(g,`${g}-element`,{[`${g}-active`]:s,[`${g}-block`]:f},o?.root,n,r,_,v);return u.createElement(`div`,{className:y,style:l?.root},u.createElement(d,{prefixCls:`${g}-button`,className:o?.content,style:{...l?.content,...c},size:p,...m}))},k=e=>{let{prefixCls:t,className:n,classNames:r,rootClassName:o,internalClassName:s,style:c,styles:l,active:d,children:f}=e,{getPrefixCls:p}=u.useContext(i),m=p(`skeleton`,t),[h,g]=E(m),_=a(m,`${m}-element`,{[`${m}-active`]:d},h,r?.root,n,o,g);return u.createElement(`div`,{className:_,style:l?.root},u.createElement(`div`,{className:a(r?.content,s||`${m}-node`),style:{...l?.content,...c}},f))},A=`M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z`,j=e=>{let{getPrefixCls:t}=u.useContext(i),n=t(`skeleton`,e.prefixCls);return u.createElement(k,{...e,internalClassName:`${n}-image`},u.createElement(`svg`,{viewBox:`0 0 1098 1024`,xmlns:`http://www.w3.org/2000/svg`,className:`${n}-image-svg`},u.createElement(`title`,null,`Image placeholder`),u.createElement(`path`,{d:A,className:`${n}-image-path`})))},M=e=>{let{prefixCls:t,className:n,classNames:r,rootClassName:o,active:s,block:c,style:l,styles:f,size:p=`default`,...m}=e,{getPrefixCls:h}=u.useContext(i),g=h(`skeleton`,t),[_,v]=E(g),y=a(g,`${g}-element`,{[`${g}-active`]:s,[`${g}-block`]:c},r?.root,n,o,_,v);return u.createElement(`div`,{className:y,style:f?.root},u.createElement(d,{prefixCls:`${g}-input`,className:r?.content,style:{...f?.content,...l},size:p,...m}))},N=(e,t)=>{let{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},P=e=>{let{prefixCls:t,className:n,style:r,rows:i=0}=e,o=Array.from({length:i}).map((t,n)=>u.createElement(`li`,{key:n,style:{width:N(n,e)}}));return u.createElement(`ul`,{className:a(t,n),style:r},o)},F=({prefixCls:e,className:t,width:n,style:r})=>u.createElement(`h3`,{className:a(e,t),style:{width:n,...r}});function I(e){return e&&typeof e==`object`?e:{}}function L(e,t){return e&&!t?{size:`large`,shape:`square`}:{size:`large`,shape:`circle`}}function R(e,t){return!e&&t?{width:`38%`}:e&&t?{width:`50%`}:{}}function z(e,t){let n={};return(!e||!t)&&(n.width=`61%`),!e&&t?n.rows=3:n.rows=2,n}var B=e=>{let{prefixCls:t,loading:n,className:r,rootClassName:i,classNames:o,style:s,styles:f,children:p,avatar:m=!1,title:h=!0,paragraph:g=!0,active:_,round:v}=e,{getPrefixCls:y,direction:b,className:x,style:S,classNames:C,styles:w}=c(`skeleton`),T=y(`skeleton`,t),[D,O]=E(T),k={...e,avatar:m,title:h,paragraph:g},[A,j]=l([C,o],[w,f],{props:k});if(n||!(`loading`in e)){let e=!!m,t=!!h,n=!!g,o;if(e){let e={className:A.avatar,prefixCls:`${T}-avatar`,...L(t,n),...I(m),style:j.avatar};o=u.createElement(`div`,{className:a(A.header,`${T}-header`),style:j.header},u.createElement(d,{...e}))}let c;if(t||n){let r;if(t){let t={className:A.title,prefixCls:`${T}-title`,...R(e,n),...I(h),style:j.title};r=u.createElement(F,{...t})}let i;if(n){let n={className:A.paragraph,prefixCls:`${T}-paragraph`,...z(e,t),...I(g),style:j.paragraph};i=u.createElement(P,{...n})}c=u.createElement(`div`,{className:a(A.section,`${T}-section`),style:j.section},r,i)}let l=a(T,{[`${T}-with-avatar`]:e,[`${T}-active`]:_,[`${T}-rtl`]:b===`rtl`,[`${T}-round`]:v},A.root,x,r,i,D,O);return u.createElement(`div`,{className:l,style:{...j.root,...S,...s}},o,c)}return p??null};B.Button=O,B.Avatar=D,B.Input=M,B.Image=j,B.Node=k;var V=B;export{V as t};
10
- //# sourceMappingURL=skeleton-C7XdtHwK.js.map
10
+ //# sourceMappingURL=skeleton-Cxf0Yj2M.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"skeleton-C7XdtHwK.js","names":["Keyframes","mergeToken","useStyle","useStyle","useStyle","useStyle","useStyle"],"sources":["../../node_modules/.pnpm/antd@6.1.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/antd/es/skeleton/Element.js","../../node_modules/.pnpm/antd@6.1.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/antd/es/skeleton/style/index.js","../../node_modules/.pnpm/antd@6.1.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/antd/es/skeleton/Avatar.js","../../node_modules/.pnpm/antd@6.1.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/antd/es/skeleton/Button.js","../../node_modules/.pnpm/antd@6.1.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/antd/es/skeleton/Node.js","../../node_modules/.pnpm/antd@6.1.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/antd/es/skeleton/Image.js","../../node_modules/.pnpm/antd@6.1.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/antd/es/skeleton/Input.js","../../node_modules/.pnpm/antd@6.1.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/antd/es/skeleton/Paragraph.js","../../node_modules/.pnpm/antd@6.1.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/antd/es/skeleton/Title.js","../../node_modules/.pnpm/antd@6.1.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/antd/es/skeleton/Skeleton.js","../../node_modules/.pnpm/antd@6.1.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/antd/es/skeleton/index.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport { clsx } from 'clsx';\nconst Element = props => {\n const {\n prefixCls,\n className,\n style,\n size,\n shape\n } = props;\n const sizeCls = clsx({\n [`${prefixCls}-lg`]: size === 'large',\n [`${prefixCls}-sm`]: size === 'small'\n });\n const shapeCls = clsx({\n [`${prefixCls}-circle`]: shape === 'circle',\n [`${prefixCls}-square`]: shape === 'square',\n [`${prefixCls}-round`]: shape === 'round'\n });\n const sizeStyle = React.useMemo(() => typeof size === 'number' ? {\n width: size,\n height: size,\n lineHeight: `${size}px`\n } : {}, [size]);\n return /*#__PURE__*/React.createElement(\"span\", {\n className: clsx(prefixCls, sizeCls, shapeCls, className),\n style: {\n ...sizeStyle,\n ...style\n }\n });\n};\nexport default Element;","import { Keyframes, unit } from '@ant-design/cssinjs';\nimport { genStyleHooks, mergeToken } from '../../theme/internal';\nconst skeletonClsLoading = new Keyframes(`ant-skeleton-loading`, {\n '0%': {\n backgroundPosition: '100% 50%'\n },\n '100%': {\n backgroundPosition: '0 50%'\n }\n});\nconst genSkeletonElementCommonSize = size => ({\n height: size,\n lineHeight: unit(size)\n});\nconst genSkeletonElementSize = size => ({\n width: size,\n ...genSkeletonElementCommonSize(size)\n});\nconst genSkeletonColor = token => ({\n background: token.skeletonLoadingBackground,\n backgroundSize: '400% 100%',\n animationName: skeletonClsLoading,\n animationDuration: token.skeletonLoadingMotionDuration,\n animationTimingFunction: 'ease',\n animationIterationCount: 'infinite'\n});\nconst genSkeletonElementInputSize = (size, calc) => ({\n width: calc(size).mul(5).equal(),\n minWidth: calc(size).mul(5).equal(),\n ...genSkeletonElementCommonSize(size)\n});\nconst genSkeletonElementAvatar = token => {\n const {\n skeletonAvatarCls,\n gradientFromColor,\n controlHeight,\n controlHeightLG,\n controlHeightSM\n } = token;\n return {\n [skeletonAvatarCls]: {\n display: 'inline-block',\n verticalAlign: 'top',\n background: gradientFromColor,\n ...genSkeletonElementSize(controlHeight)\n },\n [`${skeletonAvatarCls}${skeletonAvatarCls}-circle`]: {\n borderRadius: '50%'\n },\n [`${skeletonAvatarCls}${skeletonAvatarCls}-lg`]: {\n ...genSkeletonElementSize(controlHeightLG)\n },\n [`${skeletonAvatarCls}${skeletonAvatarCls}-sm`]: {\n ...genSkeletonElementSize(controlHeightSM)\n }\n };\n};\nconst genSkeletonElementInput = token => {\n const {\n controlHeight,\n borderRadiusSM,\n skeletonInputCls,\n controlHeightLG,\n controlHeightSM,\n gradientFromColor,\n calc\n } = token;\n return {\n [skeletonInputCls]: {\n display: 'inline-block',\n verticalAlign: 'top',\n background: gradientFromColor,\n borderRadius: borderRadiusSM,\n ...genSkeletonElementInputSize(controlHeight, calc)\n },\n [`${skeletonInputCls}-lg`]: {\n ...genSkeletonElementInputSize(controlHeightLG, calc)\n },\n [`${skeletonInputCls}-sm`]: {\n ...genSkeletonElementInputSize(controlHeightSM, calc)\n }\n };\n};\nconst genSkeletonElementShape = token => {\n const {\n gradientFromColor,\n borderRadiusSM,\n imageSizeBase,\n calc\n } = token;\n return {\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n verticalAlign: 'middle',\n background: gradientFromColor,\n borderRadius: borderRadiusSM,\n ...genSkeletonElementSize(calc(imageSizeBase).mul(2).equal())\n };\n};\nconst genSkeletonElementNode = token => {\n return {\n [token.skeletonNodeCls]: {\n ...genSkeletonElementShape(token)\n }\n };\n};\nconst genSkeletonElementImage = token => {\n const {\n skeletonImageCls,\n imageSizeBase,\n calc\n } = token;\n return {\n [skeletonImageCls]: {\n ...genSkeletonElementShape(token),\n [`${skeletonImageCls}-path`]: {\n fill: '#bfbfbf'\n },\n [`${skeletonImageCls}-svg`]: {\n ...genSkeletonElementSize(imageSizeBase),\n maxWidth: calc(imageSizeBase).mul(4).equal(),\n maxHeight: calc(imageSizeBase).mul(4).equal()\n },\n [`${skeletonImageCls}-svg${skeletonImageCls}-svg-circle`]: {\n borderRadius: '50%'\n }\n },\n [`${skeletonImageCls}${skeletonImageCls}-circle`]: {\n borderRadius: '50%'\n }\n };\n};\nconst genSkeletonElementButtonShape = (token, size, buttonCls) => {\n const {\n skeletonButtonCls\n } = token;\n return {\n [`${buttonCls}${skeletonButtonCls}-circle`]: {\n width: size,\n minWidth: size,\n borderRadius: '50%'\n },\n [`${buttonCls}${skeletonButtonCls}-round`]: {\n borderRadius: size\n }\n };\n};\nconst genSkeletonElementButtonSize = (size, calc) => ({\n width: calc(size).mul(2).equal(),\n minWidth: calc(size).mul(2).equal(),\n ...genSkeletonElementCommonSize(size)\n});\nconst genSkeletonElementButton = token => {\n const {\n borderRadiusSM,\n skeletonButtonCls,\n controlHeight,\n controlHeightLG,\n controlHeightSM,\n gradientFromColor,\n calc\n } = token;\n return {\n [skeletonButtonCls]: {\n display: 'inline-block',\n verticalAlign: 'top',\n background: gradientFromColor,\n borderRadius: borderRadiusSM,\n width: calc(controlHeight).mul(2).equal(),\n minWidth: calc(controlHeight).mul(2).equal(),\n ...genSkeletonElementButtonSize(controlHeight, calc)\n },\n ...genSkeletonElementButtonShape(token, controlHeight, skeletonButtonCls),\n [`${skeletonButtonCls}-lg`]: {\n ...genSkeletonElementButtonSize(controlHeightLG, calc)\n },\n ...genSkeletonElementButtonShape(token, controlHeightLG, `${skeletonButtonCls}-lg`),\n [`${skeletonButtonCls}-sm`]: {\n ...genSkeletonElementButtonSize(controlHeightSM, calc)\n },\n ...genSkeletonElementButtonShape(token, controlHeightSM, `${skeletonButtonCls}-sm`)\n };\n};\n// =============================== Base ===============================\nconst genBaseStyle = token => {\n const {\n componentCls,\n skeletonAvatarCls,\n skeletonTitleCls,\n skeletonParagraphCls,\n skeletonButtonCls,\n skeletonInputCls,\n skeletonNodeCls,\n skeletonImageCls,\n controlHeight,\n controlHeightLG,\n controlHeightSM,\n gradientFromColor,\n padding,\n marginSM,\n borderRadius,\n titleHeight,\n blockRadius,\n paragraphLiHeight,\n controlHeightXS,\n paragraphMarginTop\n } = token;\n return {\n [componentCls]: {\n display: 'table',\n width: '100%',\n [`${componentCls}-header`]: {\n display: 'table-cell',\n paddingInlineEnd: padding,\n verticalAlign: 'top',\n // Avatar\n [skeletonAvatarCls]: {\n display: 'inline-block',\n verticalAlign: 'top',\n background: gradientFromColor,\n ...genSkeletonElementSize(controlHeight)\n },\n [`${skeletonAvatarCls}-circle`]: {\n borderRadius: '50%'\n },\n [`${skeletonAvatarCls}-lg`]: {\n ...genSkeletonElementSize(controlHeightLG)\n },\n [`${skeletonAvatarCls}-sm`]: {\n ...genSkeletonElementSize(controlHeightSM)\n }\n },\n [`${componentCls}-section`]: {\n display: 'table-cell',\n width: '100%',\n verticalAlign: 'top',\n // Title\n [skeletonTitleCls]: {\n width: '100%',\n height: titleHeight,\n background: gradientFromColor,\n borderRadius: blockRadius,\n [`+ ${skeletonParagraphCls}`]: {\n marginBlockStart: controlHeightSM\n }\n },\n // paragraph\n [skeletonParagraphCls]: {\n padding: 0,\n '> li': {\n width: '100%',\n height: paragraphLiHeight,\n listStyle: 'none',\n background: gradientFromColor,\n borderRadius: blockRadius,\n '+ li': {\n marginBlockStart: controlHeightXS\n }\n }\n },\n [`${skeletonParagraphCls}> li:last-child:not(:first-child):not(:nth-child(2))`]: {\n width: '61%'\n }\n },\n [`&-round ${componentCls}-section`]: {\n [`${skeletonTitleCls}, ${skeletonParagraphCls} > li`]: {\n borderRadius\n }\n }\n },\n [`${componentCls}-with-avatar ${componentCls}-section`]: {\n // Title\n [skeletonTitleCls]: {\n marginBlockStart: marginSM,\n [`+ ${skeletonParagraphCls}`]: {\n marginBlockStart: paragraphMarginTop\n }\n }\n },\n // Skeleton with element\n [`${componentCls}${componentCls}-element`]: {\n display: 'inline-block',\n width: 'auto',\n ...genSkeletonElementButton(token),\n ...genSkeletonElementAvatar(token),\n ...genSkeletonElementInput(token),\n ...genSkeletonElementNode(token),\n ...genSkeletonElementImage(token)\n },\n // Skeleton Block Button, Input\n [`${componentCls}${componentCls}-block`]: {\n width: '100%',\n [skeletonButtonCls]: {\n width: '100%'\n },\n [skeletonInputCls]: {\n width: '100%'\n }\n },\n // With active animation\n [`${componentCls}${componentCls}-active`]: {\n [`\n ${skeletonTitleCls},\n ${skeletonParagraphCls} > li,\n ${skeletonAvatarCls},\n ${skeletonButtonCls},\n ${skeletonInputCls},\n ${skeletonNodeCls},\n ${skeletonImageCls}\n `]: {\n ...genSkeletonColor(token)\n }\n }\n };\n};\n// ============================== Export ==============================\nexport const prepareComponentToken = token => {\n const {\n colorFillContent,\n colorFill\n } = token;\n const gradientFromColor = colorFillContent;\n const gradientToColor = colorFill;\n return {\n color: gradientFromColor,\n colorGradientEnd: gradientToColor,\n gradientFromColor,\n gradientToColor,\n titleHeight: token.controlHeight / 2,\n blockRadius: token.borderRadiusSM,\n paragraphMarginTop: token.marginLG + token.marginXXS,\n paragraphLiHeight: token.controlHeight / 2\n };\n};\nexport default genStyleHooks('Skeleton', token => {\n const {\n componentCls,\n calc\n } = token;\n const skeletonToken = mergeToken(token, {\n skeletonAvatarCls: `${componentCls}-avatar`,\n skeletonTitleCls: `${componentCls}-title`,\n skeletonParagraphCls: `${componentCls}-paragraph`,\n skeletonButtonCls: `${componentCls}-button`,\n skeletonInputCls: `${componentCls}-input`,\n skeletonNodeCls: `${componentCls}-node`,\n skeletonImageCls: `${componentCls}-image`,\n imageSizeBase: calc(token.controlHeight).mul(1.5).equal(),\n borderRadius: 100,\n // Large number to make capsule shape\n skeletonLoadingBackground: `linear-gradient(90deg, ${token.gradientFromColor} 25%, ${token.gradientToColor} 37%, ${token.gradientFromColor} 63%)`,\n skeletonLoadingMotionDuration: '1.4s'\n });\n return genBaseStyle(skeletonToken);\n}, prepareComponentToken, {\n deprecatedTokens: [['color', 'gradientFromColor'], ['colorGradientEnd', 'gradientToColor']]\n});","\"use client\";\n\nimport * as React from 'react';\nimport { clsx } from 'clsx';\nimport { ConfigContext } from '../config-provider';\nimport Element from './Element';\nimport useStyle from './style';\nconst SkeletonAvatar = props => {\n const {\n prefixCls: customizePrefixCls,\n className,\n classNames,\n rootClassName,\n active,\n style,\n styles,\n shape = 'circle',\n size = 'default',\n ...rest\n } = props;\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('skeleton', customizePrefixCls);\n const [hashId, cssVarCls] = useStyle(prefixCls);\n const cls = clsx(prefixCls, `${prefixCls}-element`, {\n [`${prefixCls}-active`]: active\n }, classNames?.root, className, rootClassName, hashId, cssVarCls);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: cls,\n style: styles?.root\n }, /*#__PURE__*/React.createElement(Element, {\n prefixCls: `${prefixCls}-avatar`,\n className: classNames?.content,\n style: {\n ...styles?.content,\n ...style\n },\n shape: shape,\n size: size,\n ...rest\n }));\n};\nexport default SkeletonAvatar;","\"use client\";\n\nimport * as React from 'react';\nimport { clsx } from 'clsx';\nimport { ConfigContext } from '../config-provider';\nimport Element from './Element';\nimport useStyle from './style';\nconst SkeletonButton = props => {\n const {\n prefixCls: customizePrefixCls,\n className,\n rootClassName,\n classNames,\n active,\n style,\n styles,\n block = false,\n size = 'default',\n ...rest\n } = props;\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('skeleton', customizePrefixCls);\n const [hashId, cssVarCls] = useStyle(prefixCls);\n const cls = clsx(prefixCls, `${prefixCls}-element`, {\n [`${prefixCls}-active`]: active,\n [`${prefixCls}-block`]: block\n }, classNames?.root, className, rootClassName, hashId, cssVarCls);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: cls,\n style: styles?.root\n }, /*#__PURE__*/React.createElement(Element, {\n prefixCls: `${prefixCls}-button`,\n className: classNames?.content,\n style: {\n ...styles?.content,\n ...style\n },\n size: size,\n ...rest\n }));\n};\nexport default SkeletonButton;","\"use client\";\n\nimport * as React from 'react';\nimport { clsx } from 'clsx';\nimport { ConfigContext } from '../config-provider';\nimport useStyle from './style';\nconst SkeletonNode = props => {\n const {\n prefixCls: customizePrefixCls,\n className,\n classNames,\n rootClassName,\n internalClassName,\n style,\n styles,\n active,\n children\n } = props;\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('skeleton', customizePrefixCls);\n const [hashId, cssVarCls] = useStyle(prefixCls);\n const cls = clsx(prefixCls, `${prefixCls}-element`, {\n [`${prefixCls}-active`]: active\n }, hashId, classNames?.root, className, rootClassName, cssVarCls);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: cls,\n style: styles?.root\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: clsx(classNames?.content, internalClassName || `${prefixCls}-node`),\n style: {\n ...styles?.content,\n ...style\n }\n }, children));\n};\nexport default SkeletonNode;","\"use client\";\n\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport SkeletonNode from './Node';\nconst path = 'M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z';\nconst SkeletonImage = props => {\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('skeleton', props.prefixCls);\n return /*#__PURE__*/React.createElement(SkeletonNode, {\n ...props,\n internalClassName: `${prefixCls}-image`\n }, /*#__PURE__*/React.createElement(\"svg\", {\n viewBox: \"0 0 1098 1024\",\n xmlns: \"http://www.w3.org/2000/svg\",\n className: `${prefixCls}-image-svg`\n }, /*#__PURE__*/React.createElement(\"title\", null, \"Image placeholder\"), /*#__PURE__*/React.createElement(\"path\", {\n d: path,\n className: `${prefixCls}-image-path`\n })));\n};\nexport default SkeletonImage;","\"use client\";\n\nimport * as React from 'react';\nimport { clsx } from 'clsx';\nimport { ConfigContext } from '../config-provider';\nimport Element from './Element';\nimport useStyle from './style';\nconst SkeletonInput = props => {\n const {\n prefixCls: customizePrefixCls,\n className,\n classNames,\n rootClassName,\n active,\n block,\n style,\n styles,\n size = 'default',\n ...rest\n } = props;\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('skeleton', customizePrefixCls);\n const [hashId, cssVarCls] = useStyle(prefixCls);\n const cls = clsx(prefixCls, `${prefixCls}-element`, {\n [`${prefixCls}-active`]: active,\n [`${prefixCls}-block`]: block\n }, classNames?.root, className, rootClassName, hashId, cssVarCls);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: cls,\n style: styles?.root\n }, /*#__PURE__*/React.createElement(Element, {\n prefixCls: `${prefixCls}-input`,\n className: classNames?.content,\n style: {\n ...styles?.content,\n ...style\n },\n size: size,\n ...rest\n }));\n};\nexport default SkeletonInput;","\"use client\";\n\nimport * as React from 'react';\nimport { clsx } from 'clsx';\nconst getWidth = (index, props) => {\n const {\n width,\n rows = 2\n } = props;\n if (Array.isArray(width)) {\n return width[index];\n }\n // last paragraph\n if (rows - 1 === index) {\n return width;\n }\n return undefined;\n};\nconst Paragraph = props => {\n const {\n prefixCls,\n className,\n style,\n rows = 0\n } = props;\n const rowList = Array.from({\n length: rows\n }).map((_, index) => (\n /*#__PURE__*/\n // eslint-disable-next-line react/no-array-index-key\n React.createElement(\"li\", {\n key: index,\n style: {\n width: getWidth(index, props)\n }\n })));\n return /*#__PURE__*/React.createElement(\"ul\", {\n className: clsx(prefixCls, className),\n style: style\n }, rowList);\n};\nexport default Paragraph;","\"use client\";\n\n/* eslint-disable jsx-a11y/heading-has-content */\nimport * as React from 'react';\nimport { clsx } from 'clsx';\nconst Title = ({\n prefixCls,\n className,\n width,\n style\n}) => (\n/*#__PURE__*/\n// biome-ignore lint/a11y/useHeadingContent: HOC here\nReact.createElement(\"h3\", {\n className: clsx(prefixCls, className),\n style: {\n width,\n ...style\n }\n}));\nexport default Title;","\"use client\";\n\nimport * as React from 'react';\nimport { clsx } from 'clsx';\nimport { useMergeSemantic } from '../_util/hooks';\nimport { useComponentConfig } from '../config-provider/context';\nimport SkeletonAvatar from './Avatar';\nimport SkeletonButton from './Button';\nimport Element from './Element';\nimport SkeletonImage from './Image';\nimport SkeletonInput from './Input';\nimport SkeletonNode from './Node';\nimport Paragraph from './Paragraph';\nimport useStyle from './style';\nimport Title from './Title';\nfunction getComponentProps(prop) {\n if (prop && typeof prop === 'object') {\n return prop;\n }\n return {};\n}\nfunction getAvatarBasicProps(hasTitle, hasParagraph) {\n if (hasTitle && !hasParagraph) {\n // Square avatar\n return {\n size: 'large',\n shape: 'square'\n };\n }\n return {\n size: 'large',\n shape: 'circle'\n };\n}\nfunction getTitleBasicProps(hasAvatar, hasParagraph) {\n if (!hasAvatar && hasParagraph) {\n return {\n width: '38%'\n };\n }\n if (hasAvatar && hasParagraph) {\n return {\n width: '50%'\n };\n }\n return {};\n}\nfunction getParagraphBasicProps(hasAvatar, hasTitle) {\n const basicProps = {};\n // Width\n if (!hasAvatar || !hasTitle) {\n basicProps.width = '61%';\n }\n // Rows\n if (!hasAvatar && hasTitle) {\n basicProps.rows = 3;\n } else {\n basicProps.rows = 2;\n }\n return basicProps;\n}\n// Tips: ctx.classNames.root < ctx.className < cpns.classNames.root < cpns.className < rootClassName\nconst Skeleton = props => {\n const {\n prefixCls: customizePrefixCls,\n loading,\n className,\n rootClassName,\n classNames,\n style,\n styles,\n children,\n avatar = false,\n title = true,\n paragraph = true,\n active,\n round\n } = props;\n const {\n getPrefixCls,\n direction,\n className: contextClassName,\n style: contextStyle,\n classNames: contextClassNames,\n styles: contextStyles\n } = useComponentConfig('skeleton');\n const prefixCls = getPrefixCls('skeleton', customizePrefixCls);\n const [hashId, cssVarCls] = useStyle(prefixCls);\n const mergedProps = {\n ...props,\n avatar,\n title,\n paragraph\n };\n const [mergedClassNames, mergedStyles] = useMergeSemantic([contextClassNames, classNames], [contextStyles, styles], {\n props: mergedProps\n });\n if (loading || !('loading' in props)) {\n const hasAvatar = !!avatar;\n const hasTitle = !!title;\n const hasParagraph = !!paragraph;\n // Avatar\n let avatarNode;\n if (hasAvatar) {\n const avatarProps = {\n className: mergedClassNames.avatar,\n prefixCls: `${prefixCls}-avatar`,\n ...getAvatarBasicProps(hasTitle, hasParagraph),\n ...getComponentProps(avatar),\n style: mergedStyles.avatar\n };\n // We direct use SkeletonElement as avatar in skeleton internal.\n avatarNode = /*#__PURE__*/React.createElement(\"div\", {\n className: clsx(mergedClassNames.header, `${prefixCls}-header`),\n style: mergedStyles.header\n }, /*#__PURE__*/React.createElement(Element, {\n ...avatarProps\n }));\n }\n let contentNode;\n if (hasTitle || hasParagraph) {\n // Title\n let $title;\n if (hasTitle) {\n const titleProps = {\n className: mergedClassNames.title,\n prefixCls: `${prefixCls}-title`,\n ...getTitleBasicProps(hasAvatar, hasParagraph),\n ...getComponentProps(title),\n style: mergedStyles.title\n };\n $title = /*#__PURE__*/React.createElement(Title, {\n ...titleProps\n });\n }\n // Paragraph\n let paragraphNode;\n if (hasParagraph) {\n const paragraphProps = {\n className: mergedClassNames.paragraph,\n prefixCls: `${prefixCls}-paragraph`,\n ...getParagraphBasicProps(hasAvatar, hasTitle),\n ...getComponentProps(paragraph),\n style: mergedStyles.paragraph\n };\n paragraphNode = /*#__PURE__*/React.createElement(Paragraph, {\n ...paragraphProps\n });\n }\n contentNode = /*#__PURE__*/React.createElement(\"div\", {\n className: clsx(mergedClassNames.section, `${prefixCls}-section`),\n style: mergedStyles.section\n }, $title, paragraphNode);\n }\n const cls = clsx(prefixCls, {\n [`${prefixCls}-with-avatar`]: hasAvatar,\n [`${prefixCls}-active`]: active,\n [`${prefixCls}-rtl`]: direction === 'rtl',\n [`${prefixCls}-round`]: round\n }, mergedClassNames.root, contextClassName, className, rootClassName, hashId, cssVarCls);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: cls,\n style: {\n ...mergedStyles.root,\n ...contextStyle,\n ...style\n }\n }, avatarNode, contentNode);\n }\n return children ?? null;\n};\nSkeleton.Button = SkeletonButton;\nSkeleton.Avatar = SkeletonAvatar;\nSkeleton.Input = SkeletonInput;\nSkeleton.Image = SkeletonImage;\nSkeleton.Node = SkeletonNode;\nif (process.env.NODE_ENV !== 'production') {\n Skeleton.displayName = 'Skeleton';\n}\nexport default Skeleton;","\"use client\";\n\nimport Skeleton from './Skeleton';\nexport default Skeleton;"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10],"mappings":"yMAIM,EAAU,GAAS,CACvB,GAAM,CACJ,YACA,YACA,QACA,OACA,SACE,EACE,EAAU,EAAK,EAClB,GAAG,EAAU,MAAO,IAAS,SAC7B,GAAG,EAAU,MAAO,IAAS,QAC/B,CAAC,CACI,EAAW,EAAK,EACnB,GAAG,EAAU,UAAW,IAAU,UAClC,GAAG,EAAU,UAAW,IAAU,UAClC,GAAG,EAAU,SAAU,IAAU,QACnC,CAAC,CACI,EAAA,EAAkB,YAAc,OAAO,GAAS,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_modules/.pnpm/antd@6.1.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/antd/es/skeleton/Element.js","../../node_modules/.pnpm/antd@6.1.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/antd/es/skeleton/style/index.js","../../node_modules/.pnpm/antd@6.1.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/antd/es/skeleton/Avatar.js","../../node_modules/.pnpm/antd@6.1.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/antd/es/skeleton/Button.js","../../node_modules/.pnpm/antd@6.1.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/antd/es/skeleton/Node.js","../../node_modules/.pnpm/antd@6.1.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/antd/es/skeleton/Image.js","../../node_modules/.pnpm/antd@6.1.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/antd/es/skeleton/Input.js","../../node_modules/.pnpm/antd@6.1.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/antd/es/skeleton/Paragraph.js","../../node_modules/.pnpm/antd@6.1.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/antd/es/skeleton/Title.js","../../node_modules/.pnpm/antd@6.1.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/antd/es/skeleton/Skeleton.js","../../node_modules/.pnpm/antd@6.1.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/antd/es/skeleton/index.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport { clsx } from 'clsx';\nconst Element = props => {\n const {\n prefixCls,\n className,\n style,\n size,\n shape\n } = props;\n const sizeCls = clsx({\n [`${prefixCls}-lg`]: size === 'large',\n [`${prefixCls}-sm`]: size === 'small'\n });\n const shapeCls = clsx({\n [`${prefixCls}-circle`]: shape === 'circle',\n [`${prefixCls}-square`]: shape === 'square',\n [`${prefixCls}-round`]: shape === 'round'\n });\n const sizeStyle = React.useMemo(() => typeof size === 'number' ? {\n width: size,\n height: size,\n lineHeight: `${size}px`\n } : {}, [size]);\n return /*#__PURE__*/React.createElement(\"span\", {\n className: clsx(prefixCls, sizeCls, shapeCls, className),\n style: {\n ...sizeStyle,\n ...style\n }\n });\n};\nexport default Element;","import { Keyframes, unit } from '@ant-design/cssinjs';\nimport { genStyleHooks, mergeToken } from '../../theme/internal';\nconst skeletonClsLoading = new Keyframes(`ant-skeleton-loading`, {\n '0%': {\n backgroundPosition: '100% 50%'\n },\n '100%': {\n backgroundPosition: '0 50%'\n }\n});\nconst genSkeletonElementCommonSize = size => ({\n height: size,\n lineHeight: unit(size)\n});\nconst genSkeletonElementSize = size => ({\n width: size,\n ...genSkeletonElementCommonSize(size)\n});\nconst genSkeletonColor = token => ({\n background: token.skeletonLoadingBackground,\n backgroundSize: '400% 100%',\n animationName: skeletonClsLoading,\n animationDuration: token.skeletonLoadingMotionDuration,\n animationTimingFunction: 'ease',\n animationIterationCount: 'infinite'\n});\nconst genSkeletonElementInputSize = (size, calc) => ({\n width: calc(size).mul(5).equal(),\n minWidth: calc(size).mul(5).equal(),\n ...genSkeletonElementCommonSize(size)\n});\nconst genSkeletonElementAvatar = token => {\n const {\n skeletonAvatarCls,\n gradientFromColor,\n controlHeight,\n controlHeightLG,\n controlHeightSM\n } = token;\n return {\n [skeletonAvatarCls]: {\n display: 'inline-block',\n verticalAlign: 'top',\n background: gradientFromColor,\n ...genSkeletonElementSize(controlHeight)\n },\n [`${skeletonAvatarCls}${skeletonAvatarCls}-circle`]: {\n borderRadius: '50%'\n },\n [`${skeletonAvatarCls}${skeletonAvatarCls}-lg`]: {\n ...genSkeletonElementSize(controlHeightLG)\n },\n [`${skeletonAvatarCls}${skeletonAvatarCls}-sm`]: {\n ...genSkeletonElementSize(controlHeightSM)\n }\n };\n};\nconst genSkeletonElementInput = token => {\n const {\n controlHeight,\n borderRadiusSM,\n skeletonInputCls,\n controlHeightLG,\n controlHeightSM,\n gradientFromColor,\n calc\n } = token;\n return {\n [skeletonInputCls]: {\n display: 'inline-block',\n verticalAlign: 'top',\n background: gradientFromColor,\n borderRadius: borderRadiusSM,\n ...genSkeletonElementInputSize(controlHeight, calc)\n },\n [`${skeletonInputCls}-lg`]: {\n ...genSkeletonElementInputSize(controlHeightLG, calc)\n },\n [`${skeletonInputCls}-sm`]: {\n ...genSkeletonElementInputSize(controlHeightSM, calc)\n }\n };\n};\nconst genSkeletonElementShape = token => {\n const {\n gradientFromColor,\n borderRadiusSM,\n imageSizeBase,\n calc\n } = token;\n return {\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n verticalAlign: 'middle',\n background: gradientFromColor,\n borderRadius: borderRadiusSM,\n ...genSkeletonElementSize(calc(imageSizeBase).mul(2).equal())\n };\n};\nconst genSkeletonElementNode = token => {\n return {\n [token.skeletonNodeCls]: {\n ...genSkeletonElementShape(token)\n }\n };\n};\nconst genSkeletonElementImage = token => {\n const {\n skeletonImageCls,\n imageSizeBase,\n calc\n } = token;\n return {\n [skeletonImageCls]: {\n ...genSkeletonElementShape(token),\n [`${skeletonImageCls}-path`]: {\n fill: '#bfbfbf'\n },\n [`${skeletonImageCls}-svg`]: {\n ...genSkeletonElementSize(imageSizeBase),\n maxWidth: calc(imageSizeBase).mul(4).equal(),\n maxHeight: calc(imageSizeBase).mul(4).equal()\n },\n [`${skeletonImageCls}-svg${skeletonImageCls}-svg-circle`]: {\n borderRadius: '50%'\n }\n },\n [`${skeletonImageCls}${skeletonImageCls}-circle`]: {\n borderRadius: '50%'\n }\n };\n};\nconst genSkeletonElementButtonShape = (token, size, buttonCls) => {\n const {\n skeletonButtonCls\n } = token;\n return {\n [`${buttonCls}${skeletonButtonCls}-circle`]: {\n width: size,\n minWidth: size,\n borderRadius: '50%'\n },\n [`${buttonCls}${skeletonButtonCls}-round`]: {\n borderRadius: size\n }\n };\n};\nconst genSkeletonElementButtonSize = (size, calc) => ({\n width: calc(size).mul(2).equal(),\n minWidth: calc(size).mul(2).equal(),\n ...genSkeletonElementCommonSize(size)\n});\nconst genSkeletonElementButton = token => {\n const {\n borderRadiusSM,\n skeletonButtonCls,\n controlHeight,\n controlHeightLG,\n controlHeightSM,\n gradientFromColor,\n calc\n } = token;\n return {\n [skeletonButtonCls]: {\n display: 'inline-block',\n verticalAlign: 'top',\n background: gradientFromColor,\n borderRadius: borderRadiusSM,\n width: calc(controlHeight).mul(2).equal(),\n minWidth: calc(controlHeight).mul(2).equal(),\n ...genSkeletonElementButtonSize(controlHeight, calc)\n },\n ...genSkeletonElementButtonShape(token, controlHeight, skeletonButtonCls),\n [`${skeletonButtonCls}-lg`]: {\n ...genSkeletonElementButtonSize(controlHeightLG, calc)\n },\n ...genSkeletonElementButtonShape(token, controlHeightLG, `${skeletonButtonCls}-lg`),\n [`${skeletonButtonCls}-sm`]: {\n ...genSkeletonElementButtonSize(controlHeightSM, calc)\n },\n ...genSkeletonElementButtonShape(token, controlHeightSM, `${skeletonButtonCls}-sm`)\n };\n};\n// =============================== Base ===============================\nconst genBaseStyle = token => {\n const {\n componentCls,\n skeletonAvatarCls,\n skeletonTitleCls,\n skeletonParagraphCls,\n skeletonButtonCls,\n skeletonInputCls,\n skeletonNodeCls,\n skeletonImageCls,\n controlHeight,\n controlHeightLG,\n controlHeightSM,\n gradientFromColor,\n padding,\n marginSM,\n borderRadius,\n titleHeight,\n blockRadius,\n paragraphLiHeight,\n controlHeightXS,\n paragraphMarginTop\n } = token;\n return {\n [componentCls]: {\n display: 'table',\n width: '100%',\n [`${componentCls}-header`]: {\n display: 'table-cell',\n paddingInlineEnd: padding,\n verticalAlign: 'top',\n // Avatar\n [skeletonAvatarCls]: {\n display: 'inline-block',\n verticalAlign: 'top',\n background: gradientFromColor,\n ...genSkeletonElementSize(controlHeight)\n },\n [`${skeletonAvatarCls}-circle`]: {\n borderRadius: '50%'\n },\n [`${skeletonAvatarCls}-lg`]: {\n ...genSkeletonElementSize(controlHeightLG)\n },\n [`${skeletonAvatarCls}-sm`]: {\n ...genSkeletonElementSize(controlHeightSM)\n }\n },\n [`${componentCls}-section`]: {\n display: 'table-cell',\n width: '100%',\n verticalAlign: 'top',\n // Title\n [skeletonTitleCls]: {\n width: '100%',\n height: titleHeight,\n background: gradientFromColor,\n borderRadius: blockRadius,\n [`+ ${skeletonParagraphCls}`]: {\n marginBlockStart: controlHeightSM\n }\n },\n // paragraph\n [skeletonParagraphCls]: {\n padding: 0,\n '> li': {\n width: '100%',\n height: paragraphLiHeight,\n listStyle: 'none',\n background: gradientFromColor,\n borderRadius: blockRadius,\n '+ li': {\n marginBlockStart: controlHeightXS\n }\n }\n },\n [`${skeletonParagraphCls}> li:last-child:not(:first-child):not(:nth-child(2))`]: {\n width: '61%'\n }\n },\n [`&-round ${componentCls}-section`]: {\n [`${skeletonTitleCls}, ${skeletonParagraphCls} > li`]: {\n borderRadius\n }\n }\n },\n [`${componentCls}-with-avatar ${componentCls}-section`]: {\n // Title\n [skeletonTitleCls]: {\n marginBlockStart: marginSM,\n [`+ ${skeletonParagraphCls}`]: {\n marginBlockStart: paragraphMarginTop\n }\n }\n },\n // Skeleton with element\n [`${componentCls}${componentCls}-element`]: {\n display: 'inline-block',\n width: 'auto',\n ...genSkeletonElementButton(token),\n ...genSkeletonElementAvatar(token),\n ...genSkeletonElementInput(token),\n ...genSkeletonElementNode(token),\n ...genSkeletonElementImage(token)\n },\n // Skeleton Block Button, Input\n [`${componentCls}${componentCls}-block`]: {\n width: '100%',\n [skeletonButtonCls]: {\n width: '100%'\n },\n [skeletonInputCls]: {\n width: '100%'\n }\n },\n // With active animation\n [`${componentCls}${componentCls}-active`]: {\n [`\n ${skeletonTitleCls},\n ${skeletonParagraphCls} > li,\n ${skeletonAvatarCls},\n ${skeletonButtonCls},\n ${skeletonInputCls},\n ${skeletonNodeCls},\n ${skeletonImageCls}\n `]: {\n ...genSkeletonColor(token)\n }\n }\n };\n};\n// ============================== Export ==============================\nexport const prepareComponentToken = token => {\n const {\n colorFillContent,\n colorFill\n } = token;\n const gradientFromColor = colorFillContent;\n const gradientToColor = colorFill;\n return {\n color: gradientFromColor,\n colorGradientEnd: gradientToColor,\n gradientFromColor,\n gradientToColor,\n titleHeight: token.controlHeight / 2,\n blockRadius: token.borderRadiusSM,\n paragraphMarginTop: token.marginLG + token.marginXXS,\n paragraphLiHeight: token.controlHeight / 2\n };\n};\nexport default genStyleHooks('Skeleton', token => {\n const {\n componentCls,\n calc\n } = token;\n const skeletonToken = mergeToken(token, {\n skeletonAvatarCls: `${componentCls}-avatar`,\n skeletonTitleCls: `${componentCls}-title`,\n skeletonParagraphCls: `${componentCls}-paragraph`,\n skeletonButtonCls: `${componentCls}-button`,\n skeletonInputCls: `${componentCls}-input`,\n skeletonNodeCls: `${componentCls}-node`,\n skeletonImageCls: `${componentCls}-image`,\n imageSizeBase: calc(token.controlHeight).mul(1.5).equal(),\n borderRadius: 100,\n // Large number to make capsule shape\n skeletonLoadingBackground: `linear-gradient(90deg, ${token.gradientFromColor} 25%, ${token.gradientToColor} 37%, ${token.gradientFromColor} 63%)`,\n skeletonLoadingMotionDuration: '1.4s'\n });\n return genBaseStyle(skeletonToken);\n}, prepareComponentToken, {\n deprecatedTokens: [['color', 'gradientFromColor'], ['colorGradientEnd', 'gradientToColor']]\n});","\"use client\";\n\nimport * as React from 'react';\nimport { clsx } from 'clsx';\nimport { ConfigContext } from '../config-provider';\nimport Element from './Element';\nimport useStyle from './style';\nconst SkeletonAvatar = props => {\n const {\n prefixCls: customizePrefixCls,\n className,\n classNames,\n rootClassName,\n active,\n style,\n styles,\n shape = 'circle',\n size = 'default',\n ...rest\n } = props;\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('skeleton', customizePrefixCls);\n const [hashId, cssVarCls] = useStyle(prefixCls);\n const cls = clsx(prefixCls, `${prefixCls}-element`, {\n [`${prefixCls}-active`]: active\n }, classNames?.root, className, rootClassName, hashId, cssVarCls);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: cls,\n style: styles?.root\n }, /*#__PURE__*/React.createElement(Element, {\n prefixCls: `${prefixCls}-avatar`,\n className: classNames?.content,\n style: {\n ...styles?.content,\n ...style\n },\n shape: shape,\n size: size,\n ...rest\n }));\n};\nexport default SkeletonAvatar;","\"use client\";\n\nimport * as React from 'react';\nimport { clsx } from 'clsx';\nimport { ConfigContext } from '../config-provider';\nimport Element from './Element';\nimport useStyle from './style';\nconst SkeletonButton = props => {\n const {\n prefixCls: customizePrefixCls,\n className,\n rootClassName,\n classNames,\n active,\n style,\n styles,\n block = false,\n size = 'default',\n ...rest\n } = props;\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('skeleton', customizePrefixCls);\n const [hashId, cssVarCls] = useStyle(prefixCls);\n const cls = clsx(prefixCls, `${prefixCls}-element`, {\n [`${prefixCls}-active`]: active,\n [`${prefixCls}-block`]: block\n }, classNames?.root, className, rootClassName, hashId, cssVarCls);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: cls,\n style: styles?.root\n }, /*#__PURE__*/React.createElement(Element, {\n prefixCls: `${prefixCls}-button`,\n className: classNames?.content,\n style: {\n ...styles?.content,\n ...style\n },\n size: size,\n ...rest\n }));\n};\nexport default SkeletonButton;","\"use client\";\n\nimport * as React from 'react';\nimport { clsx } from 'clsx';\nimport { ConfigContext } from '../config-provider';\nimport useStyle from './style';\nconst SkeletonNode = props => {\n const {\n prefixCls: customizePrefixCls,\n className,\n classNames,\n rootClassName,\n internalClassName,\n style,\n styles,\n active,\n children\n } = props;\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('skeleton', customizePrefixCls);\n const [hashId, cssVarCls] = useStyle(prefixCls);\n const cls = clsx(prefixCls, `${prefixCls}-element`, {\n [`${prefixCls}-active`]: active\n }, hashId, classNames?.root, className, rootClassName, cssVarCls);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: cls,\n style: styles?.root\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: clsx(classNames?.content, internalClassName || `${prefixCls}-node`),\n style: {\n ...styles?.content,\n ...style\n }\n }, children));\n};\nexport default SkeletonNode;","\"use client\";\n\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport SkeletonNode from './Node';\nconst path = 'M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z';\nconst SkeletonImage = props => {\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('skeleton', props.prefixCls);\n return /*#__PURE__*/React.createElement(SkeletonNode, {\n ...props,\n internalClassName: `${prefixCls}-image`\n }, /*#__PURE__*/React.createElement(\"svg\", {\n viewBox: \"0 0 1098 1024\",\n xmlns: \"http://www.w3.org/2000/svg\",\n className: `${prefixCls}-image-svg`\n }, /*#__PURE__*/React.createElement(\"title\", null, \"Image placeholder\"), /*#__PURE__*/React.createElement(\"path\", {\n d: path,\n className: `${prefixCls}-image-path`\n })));\n};\nexport default SkeletonImage;","\"use client\";\n\nimport * as React from 'react';\nimport { clsx } from 'clsx';\nimport { ConfigContext } from '../config-provider';\nimport Element from './Element';\nimport useStyle from './style';\nconst SkeletonInput = props => {\n const {\n prefixCls: customizePrefixCls,\n className,\n classNames,\n rootClassName,\n active,\n block,\n style,\n styles,\n size = 'default',\n ...rest\n } = props;\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('skeleton', customizePrefixCls);\n const [hashId, cssVarCls] = useStyle(prefixCls);\n const cls = clsx(prefixCls, `${prefixCls}-element`, {\n [`${prefixCls}-active`]: active,\n [`${prefixCls}-block`]: block\n }, classNames?.root, className, rootClassName, hashId, cssVarCls);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: cls,\n style: styles?.root\n }, /*#__PURE__*/React.createElement(Element, {\n prefixCls: `${prefixCls}-input`,\n className: classNames?.content,\n style: {\n ...styles?.content,\n ...style\n },\n size: size,\n ...rest\n }));\n};\nexport default SkeletonInput;","\"use client\";\n\nimport * as React from 'react';\nimport { clsx } from 'clsx';\nconst getWidth = (index, props) => {\n const {\n width,\n rows = 2\n } = props;\n if (Array.isArray(width)) {\n return width[index];\n }\n // last paragraph\n if (rows - 1 === index) {\n return width;\n }\n return undefined;\n};\nconst Paragraph = props => {\n const {\n prefixCls,\n className,\n style,\n rows = 0\n } = props;\n const rowList = Array.from({\n length: rows\n }).map((_, index) => (\n /*#__PURE__*/\n // eslint-disable-next-line react/no-array-index-key\n React.createElement(\"li\", {\n key: index,\n style: {\n width: getWidth(index, props)\n }\n })));\n return /*#__PURE__*/React.createElement(\"ul\", {\n className: clsx(prefixCls, className),\n style: style\n }, rowList);\n};\nexport default Paragraph;","\"use client\";\n\n/* eslint-disable jsx-a11y/heading-has-content */\nimport * as React from 'react';\nimport { clsx } from 'clsx';\nconst Title = ({\n prefixCls,\n className,\n width,\n style\n}) => (\n/*#__PURE__*/\n// biome-ignore lint/a11y/useHeadingContent: HOC here\nReact.createElement(\"h3\", {\n className: clsx(prefixCls, className),\n style: {\n width,\n ...style\n }\n}));\nexport default Title;","\"use client\";\n\nimport * as React from 'react';\nimport { clsx } from 'clsx';\nimport { useMergeSemantic } from '../_util/hooks';\nimport { useComponentConfig } from '../config-provider/context';\nimport SkeletonAvatar from './Avatar';\nimport SkeletonButton from './Button';\nimport Element from './Element';\nimport SkeletonImage from './Image';\nimport SkeletonInput from './Input';\nimport SkeletonNode from './Node';\nimport Paragraph from './Paragraph';\nimport useStyle from './style';\nimport Title from './Title';\nfunction getComponentProps(prop) {\n if (prop && typeof prop === 'object') {\n return prop;\n }\n return {};\n}\nfunction getAvatarBasicProps(hasTitle, hasParagraph) {\n if (hasTitle && !hasParagraph) {\n // Square avatar\n return {\n size: 'large',\n shape: 'square'\n };\n }\n return {\n size: 'large',\n shape: 'circle'\n };\n}\nfunction getTitleBasicProps(hasAvatar, hasParagraph) {\n if (!hasAvatar && hasParagraph) {\n return {\n width: '38%'\n };\n }\n if (hasAvatar && hasParagraph) {\n return {\n width: '50%'\n };\n }\n return {};\n}\nfunction getParagraphBasicProps(hasAvatar, hasTitle) {\n const basicProps = {};\n // Width\n if (!hasAvatar || !hasTitle) {\n basicProps.width = '61%';\n }\n // Rows\n if (!hasAvatar && hasTitle) {\n basicProps.rows = 3;\n } else {\n basicProps.rows = 2;\n }\n return basicProps;\n}\n// Tips: ctx.classNames.root < ctx.className < cpns.classNames.root < cpns.className < rootClassName\nconst Skeleton = props => {\n const {\n prefixCls: customizePrefixCls,\n loading,\n className,\n rootClassName,\n classNames,\n style,\n styles,\n children,\n avatar = false,\n title = true,\n paragraph = true,\n active,\n round\n } = props;\n const {\n getPrefixCls,\n direction,\n className: contextClassName,\n style: contextStyle,\n classNames: contextClassNames,\n styles: contextStyles\n } = useComponentConfig('skeleton');\n const prefixCls = getPrefixCls('skeleton', customizePrefixCls);\n const [hashId, cssVarCls] = useStyle(prefixCls);\n const mergedProps = {\n ...props,\n avatar,\n title,\n paragraph\n };\n const [mergedClassNames, mergedStyles] = useMergeSemantic([contextClassNames, classNames], [contextStyles, styles], {\n props: mergedProps\n });\n if (loading || !('loading' in props)) {\n const hasAvatar = !!avatar;\n const hasTitle = !!title;\n const hasParagraph = !!paragraph;\n // Avatar\n let avatarNode;\n if (hasAvatar) {\n const avatarProps = {\n className: mergedClassNames.avatar,\n prefixCls: `${prefixCls}-avatar`,\n ...getAvatarBasicProps(hasTitle, hasParagraph),\n ...getComponentProps(avatar),\n style: mergedStyles.avatar\n };\n // We direct use SkeletonElement as avatar in skeleton internal.\n avatarNode = /*#__PURE__*/React.createElement(\"div\", {\n className: clsx(mergedClassNames.header, `${prefixCls}-header`),\n style: mergedStyles.header\n }, /*#__PURE__*/React.createElement(Element, {\n ...avatarProps\n }));\n }\n let contentNode;\n if (hasTitle || hasParagraph) {\n // Title\n let $title;\n if (hasTitle) {\n const titleProps = {\n className: mergedClassNames.title,\n prefixCls: `${prefixCls}-title`,\n ...getTitleBasicProps(hasAvatar, hasParagraph),\n ...getComponentProps(title),\n style: mergedStyles.title\n };\n $title = /*#__PURE__*/React.createElement(Title, {\n ...titleProps\n });\n }\n // Paragraph\n let paragraphNode;\n if (hasParagraph) {\n const paragraphProps = {\n className: mergedClassNames.paragraph,\n prefixCls: `${prefixCls}-paragraph`,\n ...getParagraphBasicProps(hasAvatar, hasTitle),\n ...getComponentProps(paragraph),\n style: mergedStyles.paragraph\n };\n paragraphNode = /*#__PURE__*/React.createElement(Paragraph, {\n ...paragraphProps\n });\n }\n contentNode = /*#__PURE__*/React.createElement(\"div\", {\n className: clsx(mergedClassNames.section, `${prefixCls}-section`),\n style: mergedStyles.section\n }, $title, paragraphNode);\n }\n const cls = clsx(prefixCls, {\n [`${prefixCls}-with-avatar`]: hasAvatar,\n [`${prefixCls}-active`]: active,\n [`${prefixCls}-rtl`]: direction === 'rtl',\n [`${prefixCls}-round`]: round\n }, mergedClassNames.root, contextClassName, className, rootClassName, hashId, cssVarCls);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: cls,\n style: {\n ...mergedStyles.root,\n ...contextStyle,\n ...style\n }\n }, avatarNode, contentNode);\n }\n return children ?? null;\n};\nSkeleton.Button = SkeletonButton;\nSkeleton.Avatar = SkeletonAvatar;\nSkeleton.Input = SkeletonInput;\nSkeleton.Image = SkeletonImage;\nSkeleton.Node = SkeletonNode;\nif (process.env.NODE_ENV !== 'production') {\n Skeleton.displayName = 'Skeleton';\n}\nexport default Skeleton;","\"use client\";\n\nimport Skeleton from './Skeleton';\nexport default Skeleton;"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10],"mappings":"yMAIM,EAAU,GAAS,CACvB,GAAM,CACJ,YACA,YACA,QACA,OACA,SACE,EACE,EAAU,EAAK,EAClB,GAAG,EAAU,MAAO,IAAS,SAC7B,GAAG,EAAU,MAAO,IAAS,QAC/B,CAAC,CACI,EAAW,EAAK,EACnB,GAAG,EAAU,UAAW,IAAU,UAClC,GAAG,EAAU,UAAW,IAAU,UAClC,GAAG,EAAU,SAAU,IAAU,QACnC,CAAC,CACI,EAAA,EAAkB,YAAc,OAAO,GAAS,SAAW,CAC/D,MAAO,EACP,OAAQ,EACR,WAAY,GAAG,EAAK,IACrB,CAAG,EAAE,CAAE,CAAC,EAAK,CAAC,CACf,OAAoB,EAAM,cAAc,OAAQ,CAC9C,UAAW,EAAK,EAAW,EAAS,EAAU,EAAU,CACxD,MAAO,CACL,GAAG,EACH,GAAG,EACJ,CACF,CAAC,EC9BE,EAAqB,IAAIA,EAAU,uBAAwB,CAC/D,KAAM,CACJ,mBAAoB,WACrB,CACD,OAAQ,CACN,mBAAoB,QACrB,CACF,CAAC,CACI,EAA+B,IAAS,CAC5C,OAAQ,EACR,WAAY,EAAK,EAAK,CACvB,EACK,EAAyB,IAAS,CACtC,MAAO,EACP,GAAG,EAA6B,EAAK,CACtC,EACK,EAAmB,IAAU,CACjC,WAAY,EAAM,0BAClB,eAAgB,YAChB,cAAe,EACf,kBAAmB,EAAM,8BACzB,wBAAyB,OACzB,wBAAyB,WAC1B,EACK,GAA+B,EAAM,KAAU,CACnD,MAAO,EAAK,EAAK,CAAC,IAAI,EAAE,CAAC,OAAO,CAChC,SAAU,EAAK,EAAK,CAAC,IAAI,EAAE,CA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AM,EAAK,EAAW,EACzB,GAAG,EAAU,eAAgB,GAC7B,GAAG,EAAU,UAAW,GACxB,GAAG,EAAU,OAAQ,IAAc,OACnC,GAAG,EAAU,SAAU,EACzB,CAAE,EAAiB,KAAM,EAAkB,EAAW,EAAe,EAAQ,EAAU,CACxF,OAAoB,EAAM,cAAc,MAAO,CAC7C,UAAW,EACX,MAAO,CACL,GAAG,EAAa,KAChB,GAAG,EACH,GAAG,EACJ,CACF,CAAE,EAAY,EAAY,CAE7B,OAAO,GAAY,MAErB,EAAS,OAAS,EAClB,EAAS,OAAS,EAClB,EAAS,MAAQ,EACjB,EAAS,MAAQ,EACjB,EAAS,KAAO,EC5KhB,IAAA,EAAe"}
@@ -1,4 +1,4 @@
1
- import{r as e,t}from"./chunk-DECur_0Z.js";import{u as n}from"./chunk-UVKPFVEO-B3Wzw28P.js";import{$n as r,An as i,E as a,Gn as o,In as s,It as c,Jn as l,Nn as u,Ot as d,Pn as f,Qn as p,Rn as m,Tt as h,Un as g,Xn as _,Yn as ee,Yt as v,_n as y,_r as b,an as x,b as S,fr as C,ft as w,mr as T,nr as E,w as D,xn as O,y as k,yr as A}from"./request-DBcySI71.js";import{t as j}from"./PlusOutlined-BKBEnSjP.js";var M=e(t(((e,t)=>{t.exports=a,t.exports.isMobile=a,t.exports.default=a;var n=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,r=/CrOS/,i=/android|ipad|playbook|silk/i;function a(e){e||={};let t=e.ua;if(!t&&typeof navigator<`u`&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers[`user-agent`]==`string`&&(t=t.headers[`user-agent`]),typeof t!=`string`)return!1;let a=n.test(t)&&!r.test(t)||!!e.tablet&&i.test(t);return!a&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf(`Macintosh`)!==-1&&t.indexOf(`Safari`)!==-1&&(a=!0),a}}))()),N,P=()=>(N===void 0&&(N=(0,M.default)()),N),F=e(n()),I=(0,F.createContext)(null),L=e=>{let{activeTabOffset:t,horizontal:n,rtl:r,indicator:i={}}=e,{size:a,align:o=`center`}=i,[s,c]=(0,F.useState)(),l=(0,F.useRef)(),u=F.useCallback(e=>typeof a==`function`?a(e):typeof a==`number`?a:e,[a]);function d(){_.cancel(l.current)}return(0,F.useEffect)(()=>{let e={};if(t)if(n){e.width=u(t.width);let n=r?`right`:`left`;o===`start`&&(e[n]=t[n]),o===`center`&&(e[n]=t[n]+t.width/2,e.transform=r?`translateX(50%)`:`translateX(-50%)`),o===`end`&&(e[n]=t[n]+t.width,e.transform=`translateX(-100%)`)}else e.height=u(t.height),o===`start`&&(e.top=t.top),o===`center`&&(e.top=t.top+t.height/2,e.transform=`translateY(-50%)`),o===`end`&&(e.top=t.top+t.height,e.transform=`translateY(-100%)`);return d(),l.current=_(()=>{s&&e&&Object.keys(e).every(t=>{let n=e[t],r=s[t];return typeof n==`number`&&typeof r==`number`?Math.round(n)===Math.round(r):n===r})||c(e)}),d},[JSON.stringify(t),n,r,o,u]),{style:s}},R={width:0,height:0,left:0,top:0};function te(e,t,n){return(0,F.useMemo)(()=>{let n=new Map,r=t.get(e[0]?.key)||R,i=r.left+r.width;for(let r=0;r<e.length;r+=1){let{key:a}=e[r],o=t.get(a);o||=t.get(e[r-1]?.key)||R;let s=n.get(a)||{...o};s.right=i-s.left-s.width,n.set(a,s)}return n},[e.map(e=>e.key).join(`_`),t,n])}function ne(e,t){let n=F.useRef(e),[,r]=F.useState({});function i(e){let i=typeof e==`function`?e(n.current):e;i!==n.current&&t(i,n.current),n.current=i,r({})}return[n.current,i]}var re=.1,z=.01,B=20,V=.995**B;function H(e,t){let[n,r]=(0,F.useState)(),[i,a]=(0,F.useState)(0),[o,s]=(0,F.useState)(0),[c,l]=(0,F.useState)(),u=(0,F.useRef)();function d(e){let{screenX:t,screenY:n}=e.touches[0];r({x:t,y:n}),window.clearInterval(u.current)}function f(e){if(!n)return;let{screenX:o,screenY:c}=e.touches[0];r({x:o,y:c});let u=o-n.x,d=c-n.y;t(u,d);let f=Date.now();a(f),s(f-i),l({x:u,y:d})}function p(){if(n&&(r(null),l(null),c)){let e=c.x/o,n=c.y/o;if(Math.max(Math.abs(e),Math.abs(n))<re)return;let r=e,i=n;u.current=window.setInterval(()=>{if(Math.abs(r)<z&&Math.abs(i)<z){window.clearInterval(u.current);return}r*=V,i*=V,t(r*B,i*B)},B)}}let m=(0,F.useRef)();function h(e){let{deltaX:n,deltaY:r}=e,i=0,a=Math.abs(n),o=Math.abs(r);a===o?i=m.current===`x`?n:r:a>o?(i=n,m.current=`x`):(i=r,m.current=`y`),t(-i,-i)&&e.preventDefault()}let g=(0,F.useRef)(null);g.current={onTouchStart:d,onTouchMove:f,onTouchEnd:p,onWheel:h},F.useEffect(()=>{function t(e){g.current.onTouchStart(e)}function n(e){g.current.onTouchMove(e)}function r(e){g.current.onTouchEnd(e)}function i(e){g.current.onWheel(e)}return document.addEventListener(`touchmove`,n,{passive:!1}),document.addEventListener(`touchend`,r,{passive:!0}),e.current.addEventListener(`touchstart`,t,{passive:!0}),e.current.addEventListener(`wheel`,i,{passive:!1}),()=>{document.removeEventListener(`touchmove`,n),document.removeEventListener(`touchend`,r)}},[])}function U(e){let[t,n]=(0,F.useState)(0),r=(0,F.useRef)(0),i=(0,F.useRef)();return i.current=e,b(()=>{i.current?.()},[t]),()=>{r.current===t&&(r.current+=1,n(r.current))}}function ie(e){let t=(0,F.useRef)([]),[,n]=(0,F.useState)({}),r=(0,F.useRef)(typeof e==`function`?e():e),i=U(()=>{let e=r.current;t.current.forEach(t=>{e=t(e)}),t.current=[],r.current=e,n({})});function a(e){t.current.push(e),i()}return[r.current,a]}var ae={width:0,height:0,left:0,top:0,right:0};function oe(e,t,n,r,i,a,{tabs:o,tabPosition:s,rtl:c}){let l,u,d;return[`top`,`bottom`].includes(s)?(l=`width`,u=c?`right`:`left`,d=Math.abs(n)):(l=`height`,u=`top`,d=-n),(0,F.useMemo)(()=>{if(!o.length)return[0,0];let n=o.length,r=n;for(let i=0;i<n;i+=1){let n=e.get(o[i].key)||ae;if(Math.floor(n[u]+n[l])>Math.floor(d+t)){r=i-1;break}}let i=0;for(let t=n-1;t>=0;--t)if((e.get(o[t].key)||ae)[u]<d){i=t+1;break}return i>r?[0,-1]:[i,r]},[e,t,r,i,a,d,s,o.map(e=>e.key).join(`_`),c])}function se(e){let t;return e instanceof Map?(t={},e.forEach((e,n)=>{t[n]=e})):t=e,JSON.stringify(t)}var ce=`TABS_DQ`;function le(e){return String(e).replace(/"/g,ce)}function ue(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var de=F.forwardRef((e,t)=>{let{prefixCls:n,editable:r,locale:i,style:a}=e;return!r||r.showAdd===!1?null:F.createElement(`button`,{ref:t,type:`button`,className:`${n}-nav-add`,style:a,"aria-label":i?.addAriaLabel||`Add tab`,onClick:e=>{r.onEdit(`add`,{event:e})}},r.addIcon||`+`)}),fe=F.forwardRef((e,t)=>{let{position:n,prefixCls:r,extra:i}=e;if(!i)return null;let a,o={};return typeof i==`object`&&!F.isValidElement(i)?o=i:o.right=i,n===`right`&&(a=o.right),n===`left`&&(a=o.left),a?F.createElement(`div`,{className:`${r}-extra-content`,ref:t},a):null});function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W.apply(this,arguments)}var pe=F.forwardRef((e,t)=>{let{prefixCls:n,id:r,tabs:i,locale:o,mobile:s,more:l={},style:u,className:d,editable:f,tabBarGutter:m,rtl:h,removeAriaLabel:g,onTabClick:_,getPopupContainer:ee,popupClassName:v,popupStyle:y}=e,[b,x]=(0,F.useState)(!1),[C,w]=(0,F.useState)(null),{icon:T=`More`}=l,E=`${r}-more-popup`,O=`${n}-dropdown`,k=C===null?null:`${E}-${C}`,A=o?.dropdownAriaLabel;function j(e,t){e.preventDefault(),e.stopPropagation(),f.onEdit(`remove`,{key:t,event:e})}let M=F.createElement(S,{onClick:({key:e,domEvent:t})=>{_(e,t),x(!1)},prefixCls:`${O}-menu`,id:E,tabIndex:-1,role:`listbox`,"aria-activedescendant":k,selectedKeys:[C],"aria-label":A===void 0?`expanded dropdown`:A},i.map(e=>{let{closable:t,disabled:n,closeIcon:i,key:a,label:o}=e,s=ue(t,i,f,n);return F.createElement(D,{key:a,id:`${E}-${a}`,role:`option`,"aria-controls":r&&`${r}-panel-${a}`,disabled:n},F.createElement(`span`,null,o),s&&F.createElement(`button`,{type:`button`,"aria-label":g||`remove`,tabIndex:0,className:`${O}-menu-item-remove`,onClick:e=>{e.stopPropagation(),j(e,a)}},i||f.removeIcon||`×`))}));function N(e){let t=i.filter(e=>!e.disabled),n=t.findIndex(e=>e.key===C)||0,r=t.length;for(let i=0;i<r;i+=1){n=(n+e+r)%r;let i=t[n];if(!i.disabled){w(i.key);return}}}function P(e){let{which:t}=e;if(!b){[c.DOWN,c.SPACE,c.ENTER].includes(t)&&(x(!0),e.preventDefault());return}switch(t){case c.UP:N(-1),e.preventDefault();break;case c.DOWN:N(1),e.preventDefault();break;case c.ESC:x(!1);break;case c.SPACE:case c.ENTER:C!==null&&_(C,e);break}}(0,F.useEffect)(()=>{let e=document.getElementById(k);e?.scrollIntoView&&e.scrollIntoView(!1)},[k,C]),(0,F.useEffect)(()=>{b||w(null)},[b]);let I={marginInlineStart:m};i.length||(I.visibility=`hidden`,I.order=1);let L=p(v,{[`${O}-rtl`]:h}),R=s?null:F.createElement(a,W({prefixCls:O,overlay:M,visible:i.length?b:!1,onVisibleChange:x,overlayClassName:L,overlayStyle:y,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:ee},l),F.createElement(`button`,{type:`button`,className:`${n}-nav-more`,style:I,"aria-haspopup":`listbox`,"aria-controls":E,id:`${r}-more`,"aria-expanded":b,onKeyDown:P},T));return F.createElement(`div`,{className:p(`${n}-nav-operations`,d),style:u,ref:t},R,F.createElement(de,{prefixCls:n,locale:o,editable:f}))}),me=F.memo(pe,(e,t)=>t.tabMoving),he=e=>{let{prefixCls:t,id:n,active:r,focus:i,tab:{key:a,label:o,disabled:s,closeIcon:c,icon:l},closable:u,renderWrapper:d,removeAriaLabel:f,editable:m,onClick:h,onFocus:g,onBlur:_,onKeyDown:ee,onMouseDown:v,onMouseUp:y,style:b,className:x,tabCount:S,currentPosition:C}=e,w=`${t}-tab`,T=ue(u,c,m,s);function E(e){s||h(e)}function D(e){e.preventDefault(),e.stopPropagation(),m.onEdit(`remove`,{key:a,event:e})}let O=F.useMemo(()=>l&&typeof o==`string`?F.createElement(`span`,null,o):o,[o,l]),k=F.useRef(null);F.useEffect(()=>{i&&k.current&&k.current.focus()},[i]);let A=F.createElement(`div`,{key:a,"data-node-key":le(a),className:p(w,x,{[`${w}-with-remove`]:T,[`${w}-active`]:r,[`${w}-disabled`]:s,[`${w}-focus`]:i}),style:b,onClick:E},F.createElement(`div`,{ref:k,role:`tab`,"aria-selected":r,id:n&&`${n}-tab-${a}`,className:`${w}-btn`,"aria-controls":n&&`${n}-panel-${a}`,"aria-disabled":s,tabIndex:s?null:r?0:-1,onClick:e=>{e.stopPropagation(),E(e)},onKeyDown:ee,onMouseDown:v,onMouseUp:y,onFocus:g,onBlur:_},i&&F.createElement(`div`,{"aria-live":`polite`,style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},`Tab ${C} of ${S}`),l&&F.createElement(`span`,{className:`${w}-icon`},l),o&&O),T&&F.createElement(`button`,{type:`button`,"aria-label":f||`remove`,tabIndex:r?0:-1,className:`${w}-remove`,onClick:e=>{e.stopPropagation(),D(e)}},c||m.removeIcon||`×`));return d?d(A):A};function ge(){return ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ge.apply(this,arguments)}var _e=(e,t)=>{let{offsetWidth:n,offsetHeight:r,offsetTop:i,offsetLeft:a}=e,{width:o,height:s,left:c,top:l}=e.getBoundingClientRect();return Math.abs(o-n)<1?[o,s,c-t.left,l-t.top]:[n,r,a,i]},G=e=>{let{offsetWidth:t=0,offsetHeight:n=0}=e.current||{};if(e.current){let{width:n,height:r}=e.current.getBoundingClientRect();if(Math.abs(n-t)<1)return[n,r]}return[t,n]},ve=(e,t)=>e[t?0:1],ye=F.forwardRef((e,t)=>{let{className:n,style:i,id:a,animated:o,activeKey:s,rtl:c,extra:l,editable:u,locale:d,tabPosition:f,tabBarGutter:m,children:h,onTabClick:g,onTabScroll:_,indicator:ee,classNames:v,styles:y}=e,{prefixCls:b,tabs:x}=F.useContext(I),S=(0,F.useRef)(null),w=(0,F.useRef)(null),T=(0,F.useRef)(null),E=(0,F.useRef)(null),D=(0,F.useRef)(null),O=(0,F.useRef)(null),k=(0,F.useRef)(null),j=f===`top`||f===`bottom`,[M,N]=ne(0,(e,t)=>{j&&_&&_({direction:e>t?`left`:`right`})}),[P,R]=ne(0,(e,t)=>{!j&&_&&_({direction:e>t?`top`:`bottom`})}),[re,z]=(0,F.useState)([0,0]),[B,V]=(0,F.useState)([0,0]),[ae,ce]=(0,F.useState)([0,0]),[W,pe]=(0,F.useState)([0,0]),[ye,be]=ie(new Map),xe=te(x,ye,B[0]),K=ve(re,j),Se=ve(B,j),Ce=ve(ae,j),q=ve(W,j),we=Math.floor(K)<Math.floor(Se+Ce),J=we?K-q:K-Ce,Te=`${b}-nav-operations-hidden`,Y=0,X=0;j&&c?(Y=0,X=Math.max(0,Se-J)):(Y=Math.min(0,J-Se),X=0);function Ee(e){return e<Y?Y:e>X?X:e}let De=(0,F.useRef)(null),[Oe,ke]=(0,F.useState)();function Ae(){ke(Date.now())}function je(){De.current&&clearTimeout(De.current)}H(E,(e,t)=>{function n(e,t){e(e=>Ee(e+t))}return we?(j?n(N,e):n(R,t),je(),Ae(),!0):!1}),(0,F.useEffect)(()=>(je(),Oe&&(De.current=setTimeout(()=>{ke(0)},100)),je),[Oe]);let[Me,Ne]=oe(xe,J,j?M:P,Se,Ce,q,{...e,tabs:x}),Pe=A((e=s)=>{let t=xe.get(e)||{width:0,height:0,left:0,right:0,top:0};if(j){let e=M;c?t.right<M?e=t.right:t.right+t.width>M+J&&(e=t.right+t.width-J):t.left<-M?e=-t.left:t.left+t.width>-M+J&&(e=-(t.left+t.width-J)),R(0),N(Ee(e))}else{let e=P;t.top<-P?e=-t.top:t.top+t.height>-P+J&&(e=-(t.top+t.height-J)),N(0),R(Ee(e))}}),[Fe,Z]=(0,F.useState)(),[Ie,Le]=(0,F.useState)(!1),Q=x.filter(e=>!e.disabled).map(e=>e.key),$=e=>{let t=Q.indexOf(Fe||s),n=Q.length,r=Q[(t+e+n)%n];Z(r)},Re=(e,t)=>{let n=Q.indexOf(e),r=x.find(t=>t.key===e);ue(r?.closable,r?.closeIcon,u,r?.disabled)&&(t.preventDefault(),t.stopPropagation(),u.onEdit(`remove`,{key:e,event:t}),n===Q.length-1?$(-1):$(1))},ze=(e,t)=>{Le(!0),t.button===1&&Re(e,t)},Be=e=>{let{code:t}=e,n=c&&j,r=Q[0],i=Q[Q.length-1];switch(t){case`ArrowLeft`:j&&$(n?1:-1);break;case`ArrowRight`:j&&$(n?-1:1);break;case`ArrowUp`:e.preventDefault(),j||$(-1);break;case`ArrowDown`:e.preventDefault(),j||$(1);break;case`Home`:e.preventDefault(),Z(r);break;case`End`:e.preventDefault(),Z(i);break;case`Enter`:case`Space`:e.preventDefault(),g(Fe??s,e);break;case`Backspace`:case`Delete`:Re(Fe,e);break}},Ve={};j?Ve.marginInlineStart=m:Ve.marginTop=m;let He=x.map((e,t)=>{let{key:n}=e;return F.createElement(he,{id:a,prefixCls:b,key:n,tab:e,className:v?.item,style:t===0?y?.item:{...Ve,...y?.item},closable:e.closable,editable:u,active:n===s,focus:n===Fe,renderWrapper:h,removeAriaLabel:d?.removeAriaLabel,tabCount:Q.length,currentPosition:t+1,onClick:e=>{g(n,e)},onKeyDown:Be,onFocus:()=>{Ie||Z(n),Pe(n),Ae(),E.current&&(c||(E.current.scrollLeft=0),E.current.scrollTop=0)},onBlur:()=>{Z(void 0)},onMouseDown:e=>ze(n,e),onMouseUp:()=>{Le(!1)}})}),Ue=()=>be(()=>{let e=new Map,t=D.current?.getBoundingClientRect();return x.forEach(({key:n})=>{let r=D.current?.querySelector(`[data-node-key="${le(n)}"]`);if(r){let[i,a,o,s]=_e(r,t);e.set(n,{width:i,height:a,left:o,top:s})}}),e});(0,F.useEffect)(()=>{Ue()},[x.map(e=>e.key).join(`_`)]);let We=U(()=>{let e=G(S),t=G(w),n=G(T);z([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);let r=G(k);ce(r),pe(G(O));let i=G(D);V([i[0]-r[0],i[1]-r[1]]),Ue()}),Ge=x.slice(0,Me),Ke=x.slice(Ne+1),qe=[...Ge,...Ke],Je=xe.get(s),{style:Ye}=L({activeTabOffset:Je,horizontal:j,indicator:ee,rtl:c});(0,F.useEffect)(()=>{Pe()},[s,Y,X,se(Je),se(xe),j]),(0,F.useEffect)(()=>{We()},[c]);let Xe=!!qe.length,Ze=`${b}-nav-wrap`,Qe,$e,et,tt;return j?c?($e=M>0,Qe=M!==X):(Qe=M<0,$e=M!==Y):(et=P<0,tt=P!==Y),F.createElement(r,{onResize:We},F.createElement(`div`,{ref:C(t,S),role:`tablist`,"aria-orientation":j?`horizontal`:`vertical`,className:p(`${b}-nav`,n,v?.header),style:{...y?.header,...i},onKeyDown:()=>{Ae()}},F.createElement(fe,{ref:w,position:`left`,extra:l,prefixCls:b}),F.createElement(r,{onResize:We},F.createElement(`div`,{className:p(Ze,{[`${Ze}-ping-left`]:Qe,[`${Ze}-ping-right`]:$e,[`${Ze}-ping-top`]:et,[`${Ze}-ping-bottom`]:tt}),ref:E},F.createElement(r,{onResize:We},F.createElement(`div`,{ref:D,className:`${b}-nav-list`,style:{transform:`translate(${M}px, ${P}px)`,transition:Oe?`none`:void 0}},He,F.createElement(de,{ref:k,prefixCls:b,locale:d,editable:u,style:{...He.length===0?void 0:Ve,visibility:Xe?`hidden`:null}}),F.createElement(`div`,{className:p(`${b}-ink-bar`,v?.indicator,{[`${b}-ink-bar-animated`]:o.inkBar}),style:{...Ye,...y?.indicator}}))))),F.createElement(me,ge({},e,{removeAriaLabel:d?.removeAriaLabel,ref:O,prefixCls:b,tabs:qe,className:!Xe&&Te,popupStyle:y?.popup,tabMoving:!!Oe})),F.createElement(fe,{ref:T,position:`right`,extra:l,prefixCls:b})))}),be=({renderTabBar:e,...t})=>e?e(t,ye):F.createElement(ye,t),xe=F.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,id:a,active:o,tabKey:s,children:c}=e,l=F.Children.count(c)>0;return F.createElement(`div`,{id:a&&`${a}-panel-${s}`,role:`tabpanel`,tabIndex:o&&l?0:-1,"aria-labelledby":a&&`${a}-tab-${s}`,"aria-hidden":!o,style:i,className:p(n,o&&`${n}-active`,r),ref:t},c)});function K(){return K=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K.apply(this,arguments)}var Se=e=>{let{id:t,activeKey:n,animated:r,tabPosition:i,destroyOnHidden:a,contentStyle:o,contentClassName:s}=e,{prefixCls:c,tabs:l}=F.useContext(I),u=r.tabPane,d=`${c}-tabpane`;return F.createElement(`div`,{className:p(`${c}-content-holder`)},F.createElement(`div`,{className:p(`${c}-content`,`${c}-content-${i}`,{[`${c}-content-animated`]:u})},l.map(e=>{let{key:i,forceRender:c,style:l,className:f,destroyOnHidden:m,...h}=e,g=i===n;return F.createElement(y,K({key:i,visible:g,forceRender:c,removeOnLeave:!!(a??m),leavedClassName:`${d}-hidden`},r.tabPaneMotion),({style:e,className:n},r)=>F.createElement(xe,K({},h,{prefixCls:d,id:t,tabKey:i,animated:u,active:g,style:{...o,...l,...e},className:p(s,f,n),ref:r})))})))};function Ce(e={inkBar:!0,tabPane:!1}){let t;return t=e===!1?{inkBar:!1,tabPane:!1}:e===!0?{inkBar:!0,tabPane:!1}:{inkBar:!0,...typeof e==`object`?e:{}},t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}function q(){return q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},q.apply(this,arguments)}var we=0,J=F.forwardRef((e,t)=>{let{id:n,prefixCls:r=`rc-tabs`,className:i,items:a,direction:o,activeKey:s,defaultActiveKey:c,editable:l,animated:u,tabPosition:d=`top`,tabBarGutter:f,tabBarStyle:m,tabBarExtraContent:h,locale:g,more:_,destroyOnHidden:ee,renderTabBar:v,onChange:y,onTabClick:b,onTabScroll:x,getPopupContainer:S,popupClassName:C,indicator:w,classNames:E,styles:D,...O}=e,k=F.useMemo(()=>(a||[]).filter(e=>e&&typeof e==`object`&&`key`in e),[a]),A=o===`rtl`,j=Ce(u),[M,N]=(0,F.useState)(!1);(0,F.useEffect)(()=>{N(P())},[]);let[L,R]=T(c??k[0]?.key,s),[te,ne]=(0,F.useState)(()=>k.findIndex(e=>e.key===L));(0,F.useEffect)(()=>{let e=k.findIndex(e=>e.key===L);e===-1&&(e=Math.max(0,Math.min(te,k.length-1)),R(k[e]?.key)),ne(e)},[k.map(e=>e.key).join(`_`),L,te]);let[re,z]=T(null,n);(0,F.useEffect)(()=>{n||(z(`rc-tabs-${we}`),we+=1)},[]);function B(e,t){b?.(e,t);let n=e!==L;R(e),n&&y?.(e)}let V={id:re,activeKey:L,animated:j,tabPosition:d,rtl:A,mobile:M},H={...V,editable:l,locale:g,more:_,tabBarGutter:f,onTabClick:B,onTabScroll:x,extra:h,style:m,getPopupContainer:S,popupClassName:p(C,E?.popup),indicator:w,styles:D,classNames:E},U=F.useMemo(()=>({tabs:k,prefixCls:r}),[k,r]);return F.createElement(I.Provider,{value:U},F.createElement(`div`,q({ref:t,id:n,className:p(r,`${r}-${d}`,{[`${r}-mobile`]:M,[`${r}-editable`]:l,[`${r}-rtl`]:A},i)},O),F.createElement(be,q({},H,{renderTabBar:v})),F.createElement(Se,q({destroyOnHidden:ee},V,{contentStyle:D?.content,contentClassName:E?.content,animated:j}))))}),Te={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Y(e,t={inkBar:!0,tabPane:!1}){let n;return n=t===!1?{inkBar:!1,tabPane:!1}:t===!0?{inkBar:!0,tabPane:!0}:{inkBar:!0,...typeof t==`object`?t:{}},n.tabPane&&(n.tabPaneMotion={...Te,motionName:d(e,`switch`)}),n}function X(e){return e.filter(e=>e)}function Ee(e,t){return e?e.map(e=>({...e,destroyOnHidden:e.destroyOnHidden??e.destroyInactiveTabPane})):X(E(t).map(e=>{if(F.isValidElement(e)){let{key:t,props:n}=e,{tab:r,...i}=n||{};return{key:String(t),...i,label:r}}return null}))}var De=e=>{let{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:`none`,"&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:`absolute`,transition:`none`,inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[w(e,`slide-up`),w(e,`slide-down`)]]},Oe=e=>{let{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:a,itemSelectedColor:s}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${o(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:s,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:u(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:`none`},[`${t}-ink-bar`]:{visibility:`hidden`}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:o(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${o(e.borderRadiusLG)} ${o(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${o(e.borderRadiusLG)} ${o(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:o(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${o(e.borderRadiusLG)} 0 0 ${o(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${o(e.borderRadiusLG)} ${o(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},ke=e=>{let{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:{...s(e),position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:`block`,"&-hidden":{display:`none`},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${o(r)} 0`,overflowX:`hidden`,overflowY:`auto`,textAlign:{_skip_check_:!0,value:`left`},listStyleType:`none`,backgroundColor:e.colorBgContainer,backgroundClip:`padding-box`,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary,"&-item":{...m,display:`flex`,alignItems:`center`,minWidth:e.tabsDropdownWidth,margin:0,padding:`${o(e.paddingXXS)} ${o(e.paddingSM)}`,color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:`nowrap`},"&-remove":{flex:`none`,marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:`transparent`,border:0,cursor:`pointer`,"&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:`transparent`,cursor:`not-allowed`}}}}}}},Ae=e=>{let{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:a,verticalItemMargin:s,calc:c}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:`column`,[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:`absolute`,right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${o(e.lineWidth)} ${e.lineType} ${r}`,content:`''`},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
1
+ import{r as e,t}from"./chunk-DECur_0Z.js";import{u as n}from"./chunk-UVKPFVEO-B3Wzw28P.js";import{$n as r,An as i,E as a,Gn as o,In as s,It as c,Jn as l,Nn as u,Ot as d,Pn as f,Qn as p,Rn as m,Tt as h,Un as g,Xn as _,Yn as ee,Yt as v,_n as y,_r as b,an as x,b as S,fr as C,ft as w,mr as T,nr as E,w as D,xn as O,y as k,yr as A}from"./request-OsR-2ZDW.js";import{t as j}from"./PlusOutlined-sY_ekDgf.js";var M=e(t(((e,t)=>{t.exports=a,t.exports.isMobile=a,t.exports.default=a;var n=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,r=/CrOS/,i=/android|ipad|playbook|silk/i;function a(e){e||={};let t=e.ua;if(!t&&typeof navigator<`u`&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers[`user-agent`]==`string`&&(t=t.headers[`user-agent`]),typeof t!=`string`)return!1;let a=n.test(t)&&!r.test(t)||!!e.tablet&&i.test(t);return!a&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf(`Macintosh`)!==-1&&t.indexOf(`Safari`)!==-1&&(a=!0),a}}))()),N,P=()=>(N===void 0&&(N=(0,M.default)()),N),F=e(n()),I=(0,F.createContext)(null),L=e=>{let{activeTabOffset:t,horizontal:n,rtl:r,indicator:i={}}=e,{size:a,align:o=`center`}=i,[s,c]=(0,F.useState)(),l=(0,F.useRef)(),u=F.useCallback(e=>typeof a==`function`?a(e):typeof a==`number`?a:e,[a]);function d(){_.cancel(l.current)}return(0,F.useEffect)(()=>{let e={};if(t)if(n){e.width=u(t.width);let n=r?`right`:`left`;o===`start`&&(e[n]=t[n]),o===`center`&&(e[n]=t[n]+t.width/2,e.transform=r?`translateX(50%)`:`translateX(-50%)`),o===`end`&&(e[n]=t[n]+t.width,e.transform=`translateX(-100%)`)}else e.height=u(t.height),o===`start`&&(e.top=t.top),o===`center`&&(e.top=t.top+t.height/2,e.transform=`translateY(-50%)`),o===`end`&&(e.top=t.top+t.height,e.transform=`translateY(-100%)`);return d(),l.current=_(()=>{s&&e&&Object.keys(e).every(t=>{let n=e[t],r=s[t];return typeof n==`number`&&typeof r==`number`?Math.round(n)===Math.round(r):n===r})||c(e)}),d},[JSON.stringify(t),n,r,o,u]),{style:s}},R={width:0,height:0,left:0,top:0};function te(e,t,n){return(0,F.useMemo)(()=>{let n=new Map,r=t.get(e[0]?.key)||R,i=r.left+r.width;for(let r=0;r<e.length;r+=1){let{key:a}=e[r],o=t.get(a);o||=t.get(e[r-1]?.key)||R;let s=n.get(a)||{...o};s.right=i-s.left-s.width,n.set(a,s)}return n},[e.map(e=>e.key).join(`_`),t,n])}function ne(e,t){let n=F.useRef(e),[,r]=F.useState({});function i(e){let i=typeof e==`function`?e(n.current):e;i!==n.current&&t(i,n.current),n.current=i,r({})}return[n.current,i]}var re=.1,z=.01,B=20,V=.995**B;function H(e,t){let[n,r]=(0,F.useState)(),[i,a]=(0,F.useState)(0),[o,s]=(0,F.useState)(0),[c,l]=(0,F.useState)(),u=(0,F.useRef)();function d(e){let{screenX:t,screenY:n}=e.touches[0];r({x:t,y:n}),window.clearInterval(u.current)}function f(e){if(!n)return;let{screenX:o,screenY:c}=e.touches[0];r({x:o,y:c});let u=o-n.x,d=c-n.y;t(u,d);let f=Date.now();a(f),s(f-i),l({x:u,y:d})}function p(){if(n&&(r(null),l(null),c)){let e=c.x/o,n=c.y/o;if(Math.max(Math.abs(e),Math.abs(n))<re)return;let r=e,i=n;u.current=window.setInterval(()=>{if(Math.abs(r)<z&&Math.abs(i)<z){window.clearInterval(u.current);return}r*=V,i*=V,t(r*B,i*B)},B)}}let m=(0,F.useRef)();function h(e){let{deltaX:n,deltaY:r}=e,i=0,a=Math.abs(n),o=Math.abs(r);a===o?i=m.current===`x`?n:r:a>o?(i=n,m.current=`x`):(i=r,m.current=`y`),t(-i,-i)&&e.preventDefault()}let g=(0,F.useRef)(null);g.current={onTouchStart:d,onTouchMove:f,onTouchEnd:p,onWheel:h},F.useEffect(()=>{function t(e){g.current.onTouchStart(e)}function n(e){g.current.onTouchMove(e)}function r(e){g.current.onTouchEnd(e)}function i(e){g.current.onWheel(e)}return document.addEventListener(`touchmove`,n,{passive:!1}),document.addEventListener(`touchend`,r,{passive:!0}),e.current.addEventListener(`touchstart`,t,{passive:!0}),e.current.addEventListener(`wheel`,i,{passive:!1}),()=>{document.removeEventListener(`touchmove`,n),document.removeEventListener(`touchend`,r)}},[])}function U(e){let[t,n]=(0,F.useState)(0),r=(0,F.useRef)(0),i=(0,F.useRef)();return i.current=e,b(()=>{i.current?.()},[t]),()=>{r.current===t&&(r.current+=1,n(r.current))}}function ie(e){let t=(0,F.useRef)([]),[,n]=(0,F.useState)({}),r=(0,F.useRef)(typeof e==`function`?e():e),i=U(()=>{let e=r.current;t.current.forEach(t=>{e=t(e)}),t.current=[],r.current=e,n({})});function a(e){t.current.push(e),i()}return[r.current,a]}var ae={width:0,height:0,left:0,top:0,right:0};function oe(e,t,n,r,i,a,{tabs:o,tabPosition:s,rtl:c}){let l,u,d;return[`top`,`bottom`].includes(s)?(l=`width`,u=c?`right`:`left`,d=Math.abs(n)):(l=`height`,u=`top`,d=-n),(0,F.useMemo)(()=>{if(!o.length)return[0,0];let n=o.length,r=n;for(let i=0;i<n;i+=1){let n=e.get(o[i].key)||ae;if(Math.floor(n[u]+n[l])>Math.floor(d+t)){r=i-1;break}}let i=0;for(let t=n-1;t>=0;--t)if((e.get(o[t].key)||ae)[u]<d){i=t+1;break}return i>r?[0,-1]:[i,r]},[e,t,r,i,a,d,s,o.map(e=>e.key).join(`_`),c])}function se(e){let t;return e instanceof Map?(t={},e.forEach((e,n)=>{t[n]=e})):t=e,JSON.stringify(t)}var ce=`TABS_DQ`;function le(e){return String(e).replace(/"/g,ce)}function ue(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var de=F.forwardRef((e,t)=>{let{prefixCls:n,editable:r,locale:i,style:a}=e;return!r||r.showAdd===!1?null:F.createElement(`button`,{ref:t,type:`button`,className:`${n}-nav-add`,style:a,"aria-label":i?.addAriaLabel||`Add tab`,onClick:e=>{r.onEdit(`add`,{event:e})}},r.addIcon||`+`)}),fe=F.forwardRef((e,t)=>{let{position:n,prefixCls:r,extra:i}=e;if(!i)return null;let a,o={};return typeof i==`object`&&!F.isValidElement(i)?o=i:o.right=i,n===`right`&&(a=o.right),n===`left`&&(a=o.left),a?F.createElement(`div`,{className:`${r}-extra-content`,ref:t},a):null});function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W.apply(this,arguments)}var pe=F.forwardRef((e,t)=>{let{prefixCls:n,id:r,tabs:i,locale:o,mobile:s,more:l={},style:u,className:d,editable:f,tabBarGutter:m,rtl:h,removeAriaLabel:g,onTabClick:_,getPopupContainer:ee,popupClassName:v,popupStyle:y}=e,[b,x]=(0,F.useState)(!1),[C,w]=(0,F.useState)(null),{icon:T=`More`}=l,E=`${r}-more-popup`,O=`${n}-dropdown`,k=C===null?null:`${E}-${C}`,A=o?.dropdownAriaLabel;function j(e,t){e.preventDefault(),e.stopPropagation(),f.onEdit(`remove`,{key:t,event:e})}let M=F.createElement(S,{onClick:({key:e,domEvent:t})=>{_(e,t),x(!1)},prefixCls:`${O}-menu`,id:E,tabIndex:-1,role:`listbox`,"aria-activedescendant":k,selectedKeys:[C],"aria-label":A===void 0?`expanded dropdown`:A},i.map(e=>{let{closable:t,disabled:n,closeIcon:i,key:a,label:o}=e,s=ue(t,i,f,n);return F.createElement(D,{key:a,id:`${E}-${a}`,role:`option`,"aria-controls":r&&`${r}-panel-${a}`,disabled:n},F.createElement(`span`,null,o),s&&F.createElement(`button`,{type:`button`,"aria-label":g||`remove`,tabIndex:0,className:`${O}-menu-item-remove`,onClick:e=>{e.stopPropagation(),j(e,a)}},i||f.removeIcon||`×`))}));function N(e){let t=i.filter(e=>!e.disabled),n=t.findIndex(e=>e.key===C)||0,r=t.length;for(let i=0;i<r;i+=1){n=(n+e+r)%r;let i=t[n];if(!i.disabled){w(i.key);return}}}function P(e){let{which:t}=e;if(!b){[c.DOWN,c.SPACE,c.ENTER].includes(t)&&(x(!0),e.preventDefault());return}switch(t){case c.UP:N(-1),e.preventDefault();break;case c.DOWN:N(1),e.preventDefault();break;case c.ESC:x(!1);break;case c.SPACE:case c.ENTER:C!==null&&_(C,e);break}}(0,F.useEffect)(()=>{let e=document.getElementById(k);e?.scrollIntoView&&e.scrollIntoView(!1)},[k,C]),(0,F.useEffect)(()=>{b||w(null)},[b]);let I={marginInlineStart:m};i.length||(I.visibility=`hidden`,I.order=1);let L=p(v,{[`${O}-rtl`]:h}),R=s?null:F.createElement(a,W({prefixCls:O,overlay:M,visible:i.length?b:!1,onVisibleChange:x,overlayClassName:L,overlayStyle:y,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:ee},l),F.createElement(`button`,{type:`button`,className:`${n}-nav-more`,style:I,"aria-haspopup":`listbox`,"aria-controls":E,id:`${r}-more`,"aria-expanded":b,onKeyDown:P},T));return F.createElement(`div`,{className:p(`${n}-nav-operations`,d),style:u,ref:t},R,F.createElement(de,{prefixCls:n,locale:o,editable:f}))}),me=F.memo(pe,(e,t)=>t.tabMoving),he=e=>{let{prefixCls:t,id:n,active:r,focus:i,tab:{key:a,label:o,disabled:s,closeIcon:c,icon:l},closable:u,renderWrapper:d,removeAriaLabel:f,editable:m,onClick:h,onFocus:g,onBlur:_,onKeyDown:ee,onMouseDown:v,onMouseUp:y,style:b,className:x,tabCount:S,currentPosition:C}=e,w=`${t}-tab`,T=ue(u,c,m,s);function E(e){s||h(e)}function D(e){e.preventDefault(),e.stopPropagation(),m.onEdit(`remove`,{key:a,event:e})}let O=F.useMemo(()=>l&&typeof o==`string`?F.createElement(`span`,null,o):o,[o,l]),k=F.useRef(null);F.useEffect(()=>{i&&k.current&&k.current.focus()},[i]);let A=F.createElement(`div`,{key:a,"data-node-key":le(a),className:p(w,x,{[`${w}-with-remove`]:T,[`${w}-active`]:r,[`${w}-disabled`]:s,[`${w}-focus`]:i}),style:b,onClick:E},F.createElement(`div`,{ref:k,role:`tab`,"aria-selected":r,id:n&&`${n}-tab-${a}`,className:`${w}-btn`,"aria-controls":n&&`${n}-panel-${a}`,"aria-disabled":s,tabIndex:s?null:r?0:-1,onClick:e=>{e.stopPropagation(),E(e)},onKeyDown:ee,onMouseDown:v,onMouseUp:y,onFocus:g,onBlur:_},i&&F.createElement(`div`,{"aria-live":`polite`,style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},`Tab ${C} of ${S}`),l&&F.createElement(`span`,{className:`${w}-icon`},l),o&&O),T&&F.createElement(`button`,{type:`button`,"aria-label":f||`remove`,tabIndex:r?0:-1,className:`${w}-remove`,onClick:e=>{e.stopPropagation(),D(e)}},c||m.removeIcon||`×`));return d?d(A):A};function ge(){return ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ge.apply(this,arguments)}var _e=(e,t)=>{let{offsetWidth:n,offsetHeight:r,offsetTop:i,offsetLeft:a}=e,{width:o,height:s,left:c,top:l}=e.getBoundingClientRect();return Math.abs(o-n)<1?[o,s,c-t.left,l-t.top]:[n,r,a,i]},G=e=>{let{offsetWidth:t=0,offsetHeight:n=0}=e.current||{};if(e.current){let{width:n,height:r}=e.current.getBoundingClientRect();if(Math.abs(n-t)<1)return[n,r]}return[t,n]},ve=(e,t)=>e[t?0:1],ye=F.forwardRef((e,t)=>{let{className:n,style:i,id:a,animated:o,activeKey:s,rtl:c,extra:l,editable:u,locale:d,tabPosition:f,tabBarGutter:m,children:h,onTabClick:g,onTabScroll:_,indicator:ee,classNames:v,styles:y}=e,{prefixCls:b,tabs:x}=F.useContext(I),S=(0,F.useRef)(null),w=(0,F.useRef)(null),T=(0,F.useRef)(null),E=(0,F.useRef)(null),D=(0,F.useRef)(null),O=(0,F.useRef)(null),k=(0,F.useRef)(null),j=f===`top`||f===`bottom`,[M,N]=ne(0,(e,t)=>{j&&_&&_({direction:e>t?`left`:`right`})}),[P,R]=ne(0,(e,t)=>{!j&&_&&_({direction:e>t?`top`:`bottom`})}),[re,z]=(0,F.useState)([0,0]),[B,V]=(0,F.useState)([0,0]),[ae,ce]=(0,F.useState)([0,0]),[W,pe]=(0,F.useState)([0,0]),[ye,be]=ie(new Map),xe=te(x,ye,B[0]),K=ve(re,j),Se=ve(B,j),Ce=ve(ae,j),q=ve(W,j),we=Math.floor(K)<Math.floor(Se+Ce),J=we?K-q:K-Ce,Te=`${b}-nav-operations-hidden`,Y=0,X=0;j&&c?(Y=0,X=Math.max(0,Se-J)):(Y=Math.min(0,J-Se),X=0);function Ee(e){return e<Y?Y:e>X?X:e}let De=(0,F.useRef)(null),[Oe,ke]=(0,F.useState)();function Ae(){ke(Date.now())}function je(){De.current&&clearTimeout(De.current)}H(E,(e,t)=>{function n(e,t){e(e=>Ee(e+t))}return we?(j?n(N,e):n(R,t),je(),Ae(),!0):!1}),(0,F.useEffect)(()=>(je(),Oe&&(De.current=setTimeout(()=>{ke(0)},100)),je),[Oe]);let[Me,Ne]=oe(xe,J,j?M:P,Se,Ce,q,{...e,tabs:x}),Pe=A((e=s)=>{let t=xe.get(e)||{width:0,height:0,left:0,right:0,top:0};if(j){let e=M;c?t.right<M?e=t.right:t.right+t.width>M+J&&(e=t.right+t.width-J):t.left<-M?e=-t.left:t.left+t.width>-M+J&&(e=-(t.left+t.width-J)),R(0),N(Ee(e))}else{let e=P;t.top<-P?e=-t.top:t.top+t.height>-P+J&&(e=-(t.top+t.height-J)),N(0),R(Ee(e))}}),[Fe,Z]=(0,F.useState)(),[Ie,Le]=(0,F.useState)(!1),Q=x.filter(e=>!e.disabled).map(e=>e.key),$=e=>{let t=Q.indexOf(Fe||s),n=Q.length,r=Q[(t+e+n)%n];Z(r)},Re=(e,t)=>{let n=Q.indexOf(e),r=x.find(t=>t.key===e);ue(r?.closable,r?.closeIcon,u,r?.disabled)&&(t.preventDefault(),t.stopPropagation(),u.onEdit(`remove`,{key:e,event:t}),n===Q.length-1?$(-1):$(1))},ze=(e,t)=>{Le(!0),t.button===1&&Re(e,t)},Be=e=>{let{code:t}=e,n=c&&j,r=Q[0],i=Q[Q.length-1];switch(t){case`ArrowLeft`:j&&$(n?1:-1);break;case`ArrowRight`:j&&$(n?-1:1);break;case`ArrowUp`:e.preventDefault(),j||$(-1);break;case`ArrowDown`:e.preventDefault(),j||$(1);break;case`Home`:e.preventDefault(),Z(r);break;case`End`:e.preventDefault(),Z(i);break;case`Enter`:case`Space`:e.preventDefault(),g(Fe??s,e);break;case`Backspace`:case`Delete`:Re(Fe,e);break}},Ve={};j?Ve.marginInlineStart=m:Ve.marginTop=m;let He=x.map((e,t)=>{let{key:n}=e;return F.createElement(he,{id:a,prefixCls:b,key:n,tab:e,className:v?.item,style:t===0?y?.item:{...Ve,...y?.item},closable:e.closable,editable:u,active:n===s,focus:n===Fe,renderWrapper:h,removeAriaLabel:d?.removeAriaLabel,tabCount:Q.length,currentPosition:t+1,onClick:e=>{g(n,e)},onKeyDown:Be,onFocus:()=>{Ie||Z(n),Pe(n),Ae(),E.current&&(c||(E.current.scrollLeft=0),E.current.scrollTop=0)},onBlur:()=>{Z(void 0)},onMouseDown:e=>ze(n,e),onMouseUp:()=>{Le(!1)}})}),Ue=()=>be(()=>{let e=new Map,t=D.current?.getBoundingClientRect();return x.forEach(({key:n})=>{let r=D.current?.querySelector(`[data-node-key="${le(n)}"]`);if(r){let[i,a,o,s]=_e(r,t);e.set(n,{width:i,height:a,left:o,top:s})}}),e});(0,F.useEffect)(()=>{Ue()},[x.map(e=>e.key).join(`_`)]);let We=U(()=>{let e=G(S),t=G(w),n=G(T);z([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);let r=G(k);ce(r),pe(G(O));let i=G(D);V([i[0]-r[0],i[1]-r[1]]),Ue()}),Ge=x.slice(0,Me),Ke=x.slice(Ne+1),qe=[...Ge,...Ke],Je=xe.get(s),{style:Ye}=L({activeTabOffset:Je,horizontal:j,indicator:ee,rtl:c});(0,F.useEffect)(()=>{Pe()},[s,Y,X,se(Je),se(xe),j]),(0,F.useEffect)(()=>{We()},[c]);let Xe=!!qe.length,Ze=`${b}-nav-wrap`,Qe,$e,et,tt;return j?c?($e=M>0,Qe=M!==X):(Qe=M<0,$e=M!==Y):(et=P<0,tt=P!==Y),F.createElement(r,{onResize:We},F.createElement(`div`,{ref:C(t,S),role:`tablist`,"aria-orientation":j?`horizontal`:`vertical`,className:p(`${b}-nav`,n,v?.header),style:{...y?.header,...i},onKeyDown:()=>{Ae()}},F.createElement(fe,{ref:w,position:`left`,extra:l,prefixCls:b}),F.createElement(r,{onResize:We},F.createElement(`div`,{className:p(Ze,{[`${Ze}-ping-left`]:Qe,[`${Ze}-ping-right`]:$e,[`${Ze}-ping-top`]:et,[`${Ze}-ping-bottom`]:tt}),ref:E},F.createElement(r,{onResize:We},F.createElement(`div`,{ref:D,className:`${b}-nav-list`,style:{transform:`translate(${M}px, ${P}px)`,transition:Oe?`none`:void 0}},He,F.createElement(de,{ref:k,prefixCls:b,locale:d,editable:u,style:{...He.length===0?void 0:Ve,visibility:Xe?`hidden`:null}}),F.createElement(`div`,{className:p(`${b}-ink-bar`,v?.indicator,{[`${b}-ink-bar-animated`]:o.inkBar}),style:{...Ye,...y?.indicator}}))))),F.createElement(me,ge({},e,{removeAriaLabel:d?.removeAriaLabel,ref:O,prefixCls:b,tabs:qe,className:!Xe&&Te,popupStyle:y?.popup,tabMoving:!!Oe})),F.createElement(fe,{ref:T,position:`right`,extra:l,prefixCls:b})))}),be=({renderTabBar:e,...t})=>e?e(t,ye):F.createElement(ye,t),xe=F.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,id:a,active:o,tabKey:s,children:c}=e,l=F.Children.count(c)>0;return F.createElement(`div`,{id:a&&`${a}-panel-${s}`,role:`tabpanel`,tabIndex:o&&l?0:-1,"aria-labelledby":a&&`${a}-tab-${s}`,"aria-hidden":!o,style:i,className:p(n,o&&`${n}-active`,r),ref:t},c)});function K(){return K=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K.apply(this,arguments)}var Se=e=>{let{id:t,activeKey:n,animated:r,tabPosition:i,destroyOnHidden:a,contentStyle:o,contentClassName:s}=e,{prefixCls:c,tabs:l}=F.useContext(I),u=r.tabPane,d=`${c}-tabpane`;return F.createElement(`div`,{className:p(`${c}-content-holder`)},F.createElement(`div`,{className:p(`${c}-content`,`${c}-content-${i}`,{[`${c}-content-animated`]:u})},l.map(e=>{let{key:i,forceRender:c,style:l,className:f,destroyOnHidden:m,...h}=e,g=i===n;return F.createElement(y,K({key:i,visible:g,forceRender:c,removeOnLeave:!!(a??m),leavedClassName:`${d}-hidden`},r.tabPaneMotion),({style:e,className:n},r)=>F.createElement(xe,K({},h,{prefixCls:d,id:t,tabKey:i,animated:u,active:g,style:{...o,...l,...e},className:p(s,f,n),ref:r})))})))};function Ce(e={inkBar:!0,tabPane:!1}){let t;return t=e===!1?{inkBar:!1,tabPane:!1}:e===!0?{inkBar:!0,tabPane:!1}:{inkBar:!0,...typeof e==`object`?e:{}},t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}function q(){return q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},q.apply(this,arguments)}var we=0,J=F.forwardRef((e,t)=>{let{id:n,prefixCls:r=`rc-tabs`,className:i,items:a,direction:o,activeKey:s,defaultActiveKey:c,editable:l,animated:u,tabPosition:d=`top`,tabBarGutter:f,tabBarStyle:m,tabBarExtraContent:h,locale:g,more:_,destroyOnHidden:ee,renderTabBar:v,onChange:y,onTabClick:b,onTabScroll:x,getPopupContainer:S,popupClassName:C,indicator:w,classNames:E,styles:D,...O}=e,k=F.useMemo(()=>(a||[]).filter(e=>e&&typeof e==`object`&&`key`in e),[a]),A=o===`rtl`,j=Ce(u),[M,N]=(0,F.useState)(!1);(0,F.useEffect)(()=>{N(P())},[]);let[L,R]=T(c??k[0]?.key,s),[te,ne]=(0,F.useState)(()=>k.findIndex(e=>e.key===L));(0,F.useEffect)(()=>{let e=k.findIndex(e=>e.key===L);e===-1&&(e=Math.max(0,Math.min(te,k.length-1)),R(k[e]?.key)),ne(e)},[k.map(e=>e.key).join(`_`),L,te]);let[re,z]=T(null,n);(0,F.useEffect)(()=>{n||(z(`rc-tabs-${we}`),we+=1)},[]);function B(e,t){b?.(e,t);let n=e!==L;R(e),n&&y?.(e)}let V={id:re,activeKey:L,animated:j,tabPosition:d,rtl:A,mobile:M},H={...V,editable:l,locale:g,more:_,tabBarGutter:f,onTabClick:B,onTabScroll:x,extra:h,style:m,getPopupContainer:S,popupClassName:p(C,E?.popup),indicator:w,styles:D,classNames:E},U=F.useMemo(()=>({tabs:k,prefixCls:r}),[k,r]);return F.createElement(I.Provider,{value:U},F.createElement(`div`,q({ref:t,id:n,className:p(r,`${r}-${d}`,{[`${r}-mobile`]:M,[`${r}-editable`]:l,[`${r}-rtl`]:A},i)},O),F.createElement(be,q({},H,{renderTabBar:v})),F.createElement(Se,q({destroyOnHidden:ee},V,{contentStyle:D?.content,contentClassName:E?.content,animated:j}))))}),Te={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Y(e,t={inkBar:!0,tabPane:!1}){let n;return n=t===!1?{inkBar:!1,tabPane:!1}:t===!0?{inkBar:!0,tabPane:!0}:{inkBar:!0,...typeof t==`object`?t:{}},n.tabPane&&(n.tabPaneMotion={...Te,motionName:d(e,`switch`)}),n}function X(e){return e.filter(e=>e)}function Ee(e,t){return e?e.map(e=>({...e,destroyOnHidden:e.destroyOnHidden??e.destroyInactiveTabPane})):X(E(t).map(e=>{if(F.isValidElement(e)){let{key:t,props:n}=e,{tab:r,...i}=n||{};return{key:String(t),...i,label:r}}return null}))}var De=e=>{let{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:`none`,"&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:`absolute`,transition:`none`,inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[w(e,`slide-up`),w(e,`slide-down`)]]},Oe=e=>{let{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:a,itemSelectedColor:s}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${o(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:s,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:u(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:`none`},[`${t}-ink-bar`]:{visibility:`hidden`}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:o(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${o(e.borderRadiusLG)} ${o(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${o(e.borderRadiusLG)} ${o(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:o(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${o(e.borderRadiusLG)} 0 0 ${o(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${o(e.borderRadiusLG)} ${o(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},ke=e=>{let{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:{...s(e),position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:`block`,"&-hidden":{display:`none`},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${o(r)} 0`,overflowX:`hidden`,overflowY:`auto`,textAlign:{_skip_check_:!0,value:`left`},listStyleType:`none`,backgroundColor:e.colorBgContainer,backgroundClip:`padding-box`,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary,"&-item":{...m,display:`flex`,alignItems:`center`,minWidth:e.tabsDropdownWidth,margin:0,padding:`${o(e.paddingXXS)} ${o(e.paddingSM)}`,color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:`nowrap`},"&-remove":{flex:`none`,marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:`transparent`,border:0,cursor:`pointer`,"&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:`transparent`,cursor:`not-allowed`}}}}}}},Ae=e=>{let{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:a,verticalItemMargin:s,calc:c}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:`column`,[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:`absolute`,right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${o(e.lineWidth)} ${e.lineType} ${r}`,content:`''`},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
2
2
  right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
3
3
  > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:`column`,minWidth:c(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:`center`},[`${t}-tab + ${t}-tab`]:{margin:s},[`${t}-nav-wrap`]:{flexDirection:`column`,"&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:`1 0 auto`,flexDirection:`column`}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:o(c(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${o(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:c(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${o(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},je=e=>{let{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:i,cardHeightLG:a,horizontalItemPaddingSM:s,horizontalItemPaddingLG:c}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:c,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:i,minHeight:i}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${o(e.borderRadius)} ${o(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${o(e.borderRadius)} ${o(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${o(e.borderRadius)} ${o(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${o(e.borderRadius)} 0 0 ${o(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:a,minHeight:a}}}}}},Me=e=>{let{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:a,horizontalItemPadding:o,itemSelectedColor:s,itemColor:c}=e,l=`${t}-tab`;return{[l]:{position:`relative`,WebkitTouchCallout:`none`,WebkitTapHighlightColor:`transparent`,display:`inline-flex`,alignItems:`center`,padding:o,fontSize:e.titleFontSize,background:`transparent`,border:0,outline:`none`,cursor:`pointer`,color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:`none`,transition:`all ${e.motionDurationSlow}`,[`${l}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:`none`,lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:`transparent`,border:`none`,outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading},...f(e)},"&:hover":{color:r},[`&${l}-active ${l}-btn`]:{color:s},[`&${l}-focus ${l}-btn:focus-visible`]:u(e),[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${i}`]:{margin:0,verticalAlign:`middle`},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:a}}}},Ne=e=>{let{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:a}=e;return{[`${t}-rtl`]:{direction:`rtl`,[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:o(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:o(e.marginXS)},marginLeft:{_skip_check_:!0,value:o(a(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:`rtl`},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:`right`}}}}},Pe=e=>{let{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:a,itemActiveColor:c,colorBorderSecondary:l}=e;return{[t]:{...s(e),display:`flex`,[`> ${t}-nav, > div > ${t}-nav`]:{position:`relative`,display:`flex`,flex:`none`,alignItems:`center`,[`${t}-nav-wrap`]:{position:`relative`,display:`flex`,flex:`auto`,alignSelf:`stretch`,overflow:`hidden`,whiteSpace:`nowrap`,transform:`translate(0)`,"&::before, &::after":{position:`absolute`,zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:`''`,pointerEvents:`none`}},[`${t}-nav-list`]:{position:`relative`,display:`flex`,transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:`flex`,alignSelf:`stretch`},[`${t}-nav-operations-hidden`]:{position:`absolute`,visibility:`hidden`,pointerEvents:`none`},[`${t}-nav-more`]:{position:`relative`,padding:n,background:`transparent`,border:0,color:e.colorText,"&::after":{position:`absolute`,right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:`translateY(100%)`,content:`''`}},[`${t}-nav-add`]:{minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:i},background:`transparent`,border:`${o(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${o(e.borderRadiusLG)} ${o(e.borderRadiusLG)} 0 0`,outline:`none`,cursor:`pointer`,color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:c},...f(e,-3)}},[`${t}-extra-content`]:{flex:`none`},[`${t}-ink-bar`]:{position:`absolute`,background:e.inkBarColor,pointerEvents:`none`},...Me(e),[`${t}-content`]:{position:`relative`,width:`100%`},[`${t}-content-holder`]:{flex:`auto`,minWidth:0,minHeight:0},[`${t}-tabpane`]:{...f(e),"&-hidden":{display:`none`}}},[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:`auto`}}}}}},Fe=i(`Tabs`,e=>{let t=g(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${o(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${o(e.horizontalItemGutter)}`});return[je(t),Ne(t),Ae(t),ke(t),Oe(t),Pe(t),De(t)]},e=>{let{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:i,controlHeightLG:a}=e,o=t||a,s=n||i,c=r||a+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:o,cardHeightSM:s,cardHeightLG:c,cardPadding:`${(o-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(c-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:``,horizontalItemMarginRTL:``,horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),Z=()=>null,Ie=F.forwardRef((e,t)=>{let{type:n,className:r,rootClassName:i,size:a,onEdit:o,hideAdd:s,centered:c,addIcon:u,removeIcon:d,moreIcon:f,more:m,popupClassName:g,children:_,items:y,animated:b,style:S,indicatorSize:C,indicator:w,classNames:T,styles:E,destroyInactiveTabPane:D,destroyOnHidden:A,tabPlacement:M,tabPosition:N,...P}=e,{prefixCls:I}=P,{getPrefixCls:L,direction:R,getPopupContainer:te,className:ne,style:re,classNames:z,styles:B}=ee(`tabs`),{tabs:V}=F.useContext(l),H=L(`tabs`,I),U=v(H),[ie,ae]=Fe(H,U),oe=F.useRef(null);F.useImperativeHandle(t,()=>({nativeElement:oe.current}));let se;n===`editable-card`&&(se={onEdit:(e,{key:t,event:n})=>{o?.(e===`add`?n:t,e)},removeIcon:d??V?.removeIcon??F.createElement(O,null),addIcon:(u??V?.addIcon)||F.createElement(j,null),showAdd:s!==!0});let ce=L(),le=h(a),ue=Ee(y,_),de=Y(H,b),fe={align:w?.align??V?.indicator?.align,size:w?.size??C??V?.indicator?.size??V?.indicatorSize},W=F.useMemo(()=>{let e=M??N??void 0,t=R===`rtl`;switch(e){case`start`:return t?`right`:`left`;case`end`:return t?`left`:`right`;default:return e}},[M,N,R]),pe={...e,size:le,tabPlacement:W,items:ue},[me,he]=x([z,T],[B,E],{props:pe},{popup:{_default:`root`}});return F.createElement(J,{ref:oe,direction:R,getPopupContainer:te,...P,items:ue,className:p({[`${H}-${le}`]:le,[`${H}-card`]:[`card`,`editable-card`].includes(n),[`${H}-editable-card`]:n===`editable-card`,[`${H}-centered`]:c},ne,r,i,me.root,ie,ae,U),classNames:{...me,popup:p(g,ie,ae,U,me.popup?.root)},styles:he,style:{...he.root,...re,...S},editable:se,more:{icon:V?.more?.icon??V?.moreIcon??f??F.createElement(k,null),transitionName:`${ce}-slide-up`,...m},prefixCls:H,animated:de,indicator:fe,destroyOnHidden:A??D,tabPosition:W})});Ie.TabPane=Z;export{Ie as t};
4
- //# sourceMappingURL=tabs-QwRshmnh.js.map
4
+ //# sourceMappingURL=tabs-DfQHMKH8.js.map