oc-webkit-xiamen 0.10.0

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 (73) hide show
  1. package/README.md +37 -0
  2. package/dist/assets/svg/arrow.svg.js +1 -0
  3. package/dist/assets/svg/blueNewLogo.svg.js +1 -0
  4. package/dist/assets/svg/blueNewLogoEn.svg.js +1 -0
  5. package/dist/assets/svg/evaluation/comprehensive.svg.js +1 -0
  6. package/dist/assets/svg/evaluation/customize.svg.js +1 -0
  7. package/dist/assets/svg/evaluation/done.svg.js +1 -0
  8. package/dist/assets/svg/evaluation/part.svg.js +1 -0
  9. package/dist/assets/svg/evaluation/quick.svg.js +1 -0
  10. package/dist/assets/svg/footer/github.svg.js +1 -0
  11. package/dist/assets/svg/footer/twitter.svg.js +1 -0
  12. package/dist/assets/svg/footer/wechat.svg.js +1 -0
  13. package/dist/assets/svg/footer/zhihu.svg.js +1 -0
  14. package/dist/assets/svg/left-wing.svg.js +1 -0
  15. package/dist/assets/svg/llm-evaluation.svg.js +1 -0
  16. package/dist/assets/svg/mm-evaluation.svg.js +1 -0
  17. package/dist/assets/svg/newLogo.svg.js +1 -0
  18. package/dist/assets/svg/newLogoEn.svg.js +1 -0
  19. package/dist/assets/svg/right-wing.svg.js +1 -0
  20. package/dist/components/dropdown/dropdown.js +1 -0
  21. package/dist/components/dropdown/dropdown.module.less.js +175 -0
  22. package/dist/components/dropdown/index.js +1 -0
  23. package/dist/components/footer/footer.js +1 -0
  24. package/dist/components/footer/footer.module.less.js +68 -0
  25. package/dist/components/footer/index.js +1 -0
  26. package/dist/components/footer-expansion/footer-expansion.js +1 -0
  27. package/dist/components/footer-expansion/footer-expansion.module.less.js +120 -0
  28. package/dist/components/footer-expansion/index.js +1 -0
  29. package/dist/components/header/components/create-online-evaluation/component/create-evaluation/create-evaluation.js +1 -0
  30. package/dist/components/header/components/create-online-evaluation/component/create-evaluation/create-evaluation.module.less.js +249 -0
  31. package/dist/components/header/components/create-online-evaluation/component/evaluation-button/evaluation-button.js +1 -0
  32. package/dist/components/header/components/create-online-evaluation/component/evaluation-button/evaluation-button.module.less.js +19 -0
  33. package/dist/components/header/components/create-online-evaluation/component/pre-create-evaluation/index.js +1 -0
  34. package/dist/components/header/components/create-online-evaluation/component/pre-create-evaluation/index.module.less.js +68 -0
  35. package/dist/components/header/components/create-online-evaluation/component/sidebar/sidebar.module.less.js +18 -0
  36. package/dist/components/header/firstHeader.module.less.js +305 -0
  37. package/dist/components/header/header.js +1 -0
  38. package/dist/components/header/header.module.less.js +434 -0
  39. package/dist/components/header/hooks/useUrl.js +1 -0
  40. package/dist/components/header/index.js +1 -0
  41. package/dist/components/header/secondHeader.js +1 -0
  42. package/dist/components/md-render/index.js +6 -0
  43. package/dist/components/md-render/index.module.less.js +328 -0
  44. package/dist/components/online-evaluation/index.js +1 -0
  45. package/dist/components/online-evaluation/online-evaluation.js +1 -0
  46. package/dist/components/side-nav/index.js +1 -0
  47. package/dist/components/side-nav/side-nav.js +1 -0
  48. package/dist/components/side-nav/side-nav.module.less.js +80 -0
  49. package/dist/extraComponents/button/button.js +1 -0
  50. package/dist/extraComponents/button/button.module.less.js +52 -0
  51. package/dist/extraComponents/icon-font/index.js +1 -0
  52. package/dist/google-log/home.js +1 -0
  53. package/dist/helper/index.js +1 -0
  54. package/dist/index.js +1 -0
  55. package/dist/locale/en.js +3 -0
  56. package/dist/locale/index.js +1 -0
  57. package/dist/locale/zh.js +3 -0
  58. package/dist/node_modules/style-inject/dist/style-inject.es.js +1 -0
  59. package/dist/providers/OcConfigContext.js +1 -0
  60. package/dist/providers/OcContext.js +1 -0
  61. package/dist/types/components/dropdown/dropdown.d.ts +39 -0
  62. package/dist/types/components/dropdown/index.d.ts +2 -0
  63. package/dist/types/components/footer/index.d.ts +6 -0
  64. package/dist/types/components/footer-expansion/index.d.ts +6 -0
  65. package/dist/types/components/header/index.d.ts +6 -0
  66. package/dist/types/components/md-render/index.d.ts +9 -0
  67. package/dist/types/components/online-evaluation/index.d.ts +6 -0
  68. package/dist/types/components/side-nav/index.d.ts +6 -0
  69. package/dist/types/google-log/home.d.ts +9 -0
  70. package/dist/types/helper/index.d.ts +13 -0
  71. package/dist/types/index.d.ts +117 -0
  72. package/dist/utils/utils.js +1 -0
  73. package/package.json +140 -0
@@ -0,0 +1,175 @@
1
+ import o from"../../node_modules/style-inject/dist/style-inject.es.js";var n=`body {
2
+ --white: #ffffff;
3
+ --grey-4: #ebecf0;
4
+ --scroll-width: 8px;
5
+ }
6
+ @-webkit-keyframes dropdown-module_typing__geoyZ {
7
+ from {
8
+ width: 100%;
9
+ }
10
+ to {
11
+ width: 0;
12
+ }
13
+ }
14
+ @-webkit-keyframes dropdown-module_cursor__Xo8SL {
15
+ 50% {
16
+ border-color: rgba(18, 19, 22, 0.35);
17
+ }
18
+ }
19
+ @keyframes dropdown-module_typing__geoyZ {
20
+ from {
21
+ width: 100%;
22
+ }
23
+ to {
24
+ width: 0;
25
+ }
26
+ }
27
+ @keyframes dropdown-module_cursor__Xo8SL {
28
+ 50% {
29
+ border-color: rgba(18, 19, 22, 0.35);
30
+ }
31
+ }
32
+ .dropdown-module_dropdown__MZcCo {
33
+ position: fixed;
34
+ display: inline-block;
35
+ border-radius: 4px;
36
+ z-index: 999;
37
+ overflow-y: auto;
38
+ }
39
+ .dropdown-module_dark__EA3gN {
40
+ background: #26272E;
41
+ box-shadow: 0 2px 10px 0 rgba(18, 19, 22, 0.1);
42
+ }
43
+ .dropdown-module_dark__EA3gN .dropdown-module_menuItem__FxuNX {
44
+ color: var(--fill-0, #FFF);
45
+ border-radius: 2px;
46
+ }
47
+ .dropdown-module_dark__EA3gN .dropdown-module_menuItem__FxuNX:first-child {
48
+ margin-top: 4px;
49
+ }
50
+ .dropdown-module_dark__EA3gN .dropdown-module_menuItem__FxuNX:last-child {
51
+ margin-bottom: 4px;
52
+ }
53
+ .dropdown-module_dark__EA3gN .dropdown-module_menuItem__FxuNX:hover {
54
+ background: rgba(78, 78, 78, 0.7);
55
+ }
56
+ .dropdown-module_dark__EA3gN .dropdown-module_selected__-oFPg {
57
+ background: rgba(78, 78, 78, 0.7);
58
+ }
59
+ .dropdown-module_light__6qAsk {
60
+ background: var(--fill-0, #FFF);
61
+ box-shadow: 0 2px 10px 0 rgba(18, 19, 22, 0.1);
62
+ }
63
+ .dropdown-module_light__6qAsk .dropdown-module_menuItem__FxuNX {
64
+ color: var(--80-text-4, rgba(18, 19, 22, 0.8));
65
+ border-radius: 2px;
66
+ }
67
+ .dropdown-module_light__6qAsk .dropdown-module_menuItem__FxuNX:hover {
68
+ color: var(--Brand1-6, #1B3882);
69
+ background: var(--fill-2, #F4F5F9);
70
+ }
71
+ .dropdown-module_light__6qAsk .dropdown-module_selected__-oFPg {
72
+ color: var(--Brand1-6, #1B3882);
73
+ background: var(--fill-2, #F4F5F9);
74
+ }
75
+ .dropdown-module_menuItem__FxuNX {
76
+ display: flex;
77
+ padding: 8px 20px 8px 24px;
78
+ align-items: center;
79
+ cursor: pointer;
80
+ font-feature-settings: 'clig' off, 'liga' off;
81
+ font-size: 14px;
82
+ font-style: normal;
83
+ font-weight: 400;
84
+ line-height: 24px;
85
+ /* 171.429% */
86
+ }
87
+ .dropdown-module_cascadeMenuBox__3Fh6k {
88
+ display: flex;
89
+ border-radius: 4px;
90
+ box-shadow: 0 2px 10px 0 rgba(18, 19, 22, 0.1);
91
+ padding-top: 8px;
92
+ padding-bottom: 8px;
93
+ }
94
+ .dropdown-module_cascadeMenuBox__3Fh6k .dropdown-module_yearBox__g8pxr {
95
+ width: 100%;
96
+ }
97
+ .dropdown-module_cascadeMenuBox__3Fh6k .dropdown-module_monthBox__Ky8tK {
98
+ max-height: 296px;
99
+ height: auto;
100
+ background: #FFF;
101
+ border-left: 1px solid #F4F5F9;
102
+ }
103
+ .dropdown-module_cascadeMenuBox__3Fh6k .dropdown-module_scrollMonthBox__E-43X {
104
+ overflow-y: scroll;
105
+ height: 100%;
106
+ width: 100%;
107
+ }
108
+ .dropdown-module_cascadeMenuBox__3Fh6k .dropdown-module_scrollMonthBox__E-43X::-webkit-scrollbar {
109
+ width: 4px;
110
+ background: #fff;
111
+ }
112
+ .dropdown-module_cascadeMenuBox__3Fh6k .dropdown-module_scrollMonthBox__E-43X::-webkit-scrollbar-thumb {
113
+ border-radius: 90px;
114
+ background: #B4B6BC;
115
+ }
116
+ .dropdown-module_cascadeMenuBox__3Fh6k .dropdown-module_scrollMonthBox__E-43X::-webkit-scrollbar-track {
117
+ -webkit-box-shadow: inset 0 0 4px #fff;
118
+ border-radius: 90px;
119
+ background: #fff;
120
+ opacity: 0;
121
+ }
122
+ .dropdown-module_cascadeMenuBox__3Fh6k .dropdown-module_scrollMonthBox__E-43X:hover::-webkit-scrollbar-thumb {
123
+ background: #B4B6BC;
124
+ }
125
+ .dropdown-module_cascadeMenuBox__3Fh6k .dropdown-module_transparentScroll__O1XAd {
126
+ overflow-y: scroll;
127
+ height: 100%;
128
+ width: 100%;
129
+ }
130
+ .dropdown-module_cascadeMenuBox__3Fh6k .dropdown-module_transparentScroll__O1XAd::-webkit-scrollbar {
131
+ width: 0px;
132
+ background: transparent;
133
+ }
134
+ .dropdown-module_cascadeMenuBox__3Fh6k .dropdown-module_transparentScroll__O1XAd::-webkit-scrollbar-thumb {
135
+ border-radius: 90px;
136
+ background: transparent;
137
+ }
138
+ .dropdown-module_cascadeMenuBox__3Fh6k .dropdown-module_transparentScroll__O1XAd::-webkit-scrollbar-track {
139
+ -webkit-box-shadow: inset 0 0 4px transparent;
140
+ border-radius: 90px;
141
+ background: transparent;
142
+ opacity: 0;
143
+ }
144
+ .dropdown-module_cascadeMenuBox__3Fh6k .dropdown-module_transparentScroll__O1XAd:hover::-webkit-scrollbar-thumb {
145
+ background: transparent;
146
+ }
147
+ .dropdown-module_cascadeMenuBox__3Fh6k .dropdown-module_menuItem__FxuNX {
148
+ color: var(--80-text-4, rgba(18, 19, 22, 0.8));
149
+ font-feature-settings: 'liga' off, 'clig' off;
150
+ display: flex;
151
+ justify-content: center;
152
+ gap: 12px;
153
+ padding: 8px 20px 8px 24px;
154
+ justify-content: space-between;
155
+ align-items: center;
156
+ flex: 1 0 0;
157
+ font-family: "PingFang SC";
158
+ font-size: 14px;
159
+ font-style: normal;
160
+ font-weight: 400;
161
+ line-height: 24px;
162
+ /* 171.429% */
163
+ position: relative;
164
+ white-space: nowrap;
165
+ }
166
+ .dropdown-module_cascadeMenuBox__3Fh6k .dropdown-module_menuItem__FxuNX:hover {
167
+ background: var(--fill-2, #F4F5F9);
168
+ color: var(--Brand1-6, #1B3882);
169
+ }
170
+ .dropdown-module_cascadeMenuBox__3Fh6k .dropdown-module_selectedCascade__9vcmM {
171
+ background: var(--fill-2, #F4F5F9);
172
+ color: var(--Brand1-6, #1B3882);
173
+ position: relative;
174
+ }
175
+ `,d={dropdown:"dropdown-module_dropdown__MZcCo",dark:"dropdown-module_dark__EA3gN",menuItem:"dropdown-module_menuItem__FxuNX",selected:"dropdown-module_selected__-oFPg",light:"dropdown-module_light__6qAsk",cascadeMenuBox:"dropdown-module_cascadeMenuBox__3Fh6k",yearBox:"dropdown-module_yearBox__g8pxr",monthBox:"dropdown-module_monthBox__Ky8tK",scrollMonthBox:"dropdown-module_scrollMonthBox__E-43X",transparentScroll:"dropdown-module_transparentScroll__O1XAd",selectedCascade:"dropdown-module_selectedCascade__9vcmM",typing:"dropdown-module_typing__geoyZ",cursor:"dropdown-module_cursor__Xo8SL"};o(n);export{d as default};
@@ -0,0 +1 @@
1
+ import"./dropdown.js";export{default}from"./dropdown.js";
@@ -0,0 +1 @@
1
+ import f from"../../assets/svg/footer/zhihu.svg.js";import v from"../../assets/svg/footer/github.svg.js";import d from"../../assets/svg/footer/twitter.svg.js";import C from"../../assets/svg/footer/wechat.svg.js";import{Popover as h}from"antd";import s from"./footer.module.less.js";import e,{useContext as r,useEffect as k,useMemo as E}from"react";import{OcContext as N}from"../../providers/OcContext.js";import{OcConfigContext as w}from"../../providers/OcConfigContext.js";import j from"../header/hooks/useUrl.js";import x from"classnames";import O from"../../assets/svg/blueNewLogo.svg.js";import L from"../../assets/svg/blueNewLogoEn.svg.js";const y=o=>{const{setConfig:l,config:c}=r(w),{locales:n}=r(N),{locale:m}=c;k(()=>{l(o)},[o]);const{urls:i}=j(),a=(t,u)=>{u?window.open(t):window.location.href=t},g=[{img:f,link:"https://www.zhihu.com/people/jue-qi-36-21",outlink:!0},{img:v,link:"https://github.com/open-compass",outlink:!0},{img:d,link:"https://x.com/OpenCompassX",outlink:!0}],p=E(()=>m==="en-US"?L:O,[m]);return e.createElement("div",{className:x(s.footer,o.isSticky&&s.stickyFooter,o.customClassname)},e.createElement("img",{className:s.left,src:p,alt:""}),e.createElement("div",{className:s.center},e.createElement("span",null,"\xA9 2023-2025 OpenCompass All Rights Reserved"),e.createElement("div",{className:s.columnLine}),e.createElement("span",{className:s.icp,onClick:()=>{window.open("https://beian.miit.gov.cn/#/Integrated/index")}},"\u6CAAICP\u59072021009351\u53F7-23"),e.createElement("div",{className:s.columnLine}),e.createElement("span",{className:s.link,onClick:()=>a(`${i==null?void 0:i.VITE_COMPASS_URL}policy`)},n==null?void 0:n.agreement)),e.createElement("div",{className:s.right},g.map(t=>e.createElement("div",{key:t.link,onClick:()=>a(t.link,t.outlink),className:s.logo},e.createElement("img",{src:t.img,alt:""}))),e.createElement(h,{content:e.createElement("img",{src:"https://opencompass.oss-cn-shanghai.aliyuncs.com/image/qrcode_compass.png",className:s.qrCode,alt:"qrCode"})},e.createElement("div",{className:s.logo},e.createElement("img",{src:C,alt:""})))))};export{y as default};
@@ -0,0 +1,68 @@
1
+ import o from"../../node_modules/style-inject/dist/style-inject.es.js";var e=`.footer-module_footer__MPpjt {
2
+ width: 100%;
3
+ min-width: calc(1280px - 8px);
4
+ padding: 12px 120px;
5
+ box-sizing: border-box;
6
+ border-top: 1px solid var(----line-2, #ebecf0);
7
+ background-color: #f9f9f9;
8
+ display: flex;
9
+ align-items: center;
10
+ gap: 24px;
11
+ }
12
+ .footer-module_footer__MPpjt .footer-module_center__aO76i {
13
+ color: var(--50-text-3, rgba(18, 19, 22, 0.5));
14
+ font-size: 12px;
15
+ font-style: normal;
16
+ font-weight: 400;
17
+ line-height: 32px;
18
+ display: flex;
19
+ align-items: center;
20
+ gap: 8px;
21
+ }
22
+ .footer-module_footer__MPpjt .footer-module_center__aO76i .footer-module_link__90LOF:hover {
23
+ cursor: pointer;
24
+ color: var(--100-text-5, #121316);
25
+ }
26
+ .footer-module_footer__MPpjt .footer-module_center__aO76i .footer-module_columnLine__wb-h7 {
27
+ border-left: 1px solid rgba(18, 19, 22, 0.5);
28
+ height: 12px;
29
+ width: 1px;
30
+ }
31
+ .footer-module_footer__MPpjt .footer-module_center__aO76i .footer-module_icp__x9ICQ:hover {
32
+ cursor: pointer;
33
+ color: var(--100-text-5, #121316);
34
+ }
35
+ .footer-module_footer__MPpjt .footer-module_left__Eb2rO {
36
+ height: 32px;
37
+ }
38
+ .footer-module_footer__MPpjt .footer-module_right__mL6Rh {
39
+ margin-left: auto;
40
+ display: flex;
41
+ align-items: center;
42
+ gap: 12px;
43
+ }
44
+ .footer-module_footer__MPpjt .footer-module_right__mL6Rh .footer-module_logo__MdlJ8 {
45
+ width: 24px;
46
+ height: 24px;
47
+ cursor: pointer;
48
+ }
49
+ .footer-module_footer__MPpjt .footer-module_right__mL6Rh .footer-module_logo__MdlJ8 img {
50
+ width: 100%;
51
+ height: 100%;
52
+ }
53
+ .footer-module_stickyFooter__JDzr1 {
54
+ position: sticky;
55
+ bottom: 0;
56
+ }
57
+ .footer-module_qrCode__EFOd- {
58
+ width: 100px;
59
+ height: 100px;
60
+ border-radius: 4px;
61
+ background: var(---fill-0, #fff);
62
+ }
63
+ @media (max-width: 1400px) {
64
+ .footer-module_footer__MPpjt .footer-module_con__VinqZ {
65
+ width: 1280px;
66
+ }
67
+ }
68
+ `,t={footer:"footer-module_footer__MPpjt",center:"footer-module_center__aO76i",link:"footer-module_link__90LOF",columnLine:"footer-module_columnLine__wb-h7",icp:"footer-module_icp__x9ICQ",left:"footer-module_left__Eb2rO",right:"footer-module_right__mL6Rh",logo:"footer-module_logo__MdlJ8",stickyFooter:"footer-module_stickyFooter__JDzr1",qrCode:"footer-module_qrCode__EFOd-",con:"footer-module_con__VinqZ"};o(e);export{t as default};
@@ -0,0 +1 @@
1
+ import m from"../../providers/OcContext.js";import p from"../../providers/OcConfigContext.js";import i from"./footer.js";import{ConfigProvider as c}from"antd";import o from"react";var f=Object.defineProperty,n=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,a=(t,r,e)=>r in t?f(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,O=(t,r)=>{for(var e in r||(r={}))l.call(r,e)&&a(t,e,r[e]);if(n)for(var e of n(r))s.call(r,e)&&a(t,e,r[e]);return t};const u=t=>o.createElement(p,null,o.createElement(m,null,o.createElement(c,{theme:{components:{}}},o.createElement(i,O({},t)))));export{u as default};
@@ -0,0 +1 @@
1
+ import e,{useContext as c,useEffect as k}from"react";import E from"../../assets/svg/footer/zhihu.svg.js";import f from"../../assets/svg/footer/github.svg.js";import N from"../../assets/svg/footer/twitter.svg.js";import d from"classnames";import u from"../../extraComponents/icon-font/index.js";import l from"./footer-expansion.module.less.js";import{OcContext as h}from"../../providers/OcContext.js";import{OcConfigContext as C}from"../../providers/OcConfigContext.js";import b from"../header/hooks/useUrl.js";const p="https://opencompass.oss-cn-shanghai.aliyuncs.com/image/open-compass/",L=m=>{const{setConfig:v,config:g}=c(C),{locales:t}=c(h),{locale:i}=g,{urls:a}=b();k(()=>{v(m)},[m]);const r=(n,o)=>{o?window.open(n):window.location.href=n},s=[{title:t==null?void 0:t.evalRank,items:[{name:t==null?void 0:t.closeLeaderboard,link:"/leaderboard-llm"},{name:t==null?void 0:t.openLeaderboard,link:"/leaderboard-llm-academic"},{name:t==null?void 0:t.arenaLeader,link:"/leaderboard-arena"},{name:t==null?void 0:t.mmLeaderboard,link:"/leaderboard-multimodal"}]},{title:t==null?void 0:t.exploreMore,items:[{name:t==null?void 0:t.compassHub,link:a==null?void 0:a.VITE_HUB_URL},{name:t==null?void 0:t.compassKit,link:"https://github.com/open-compass/OpenCompass/",outlink:!0}]},{title:t==null?void 0:t.docsCenter,items:[{name:t==null?void 0:t.rankRules,link:"/rule"},{name:t==null?void 0:t.useGuide,link:i==="en-US"?a==null?void 0:a.VITE_DOC_URL:a==null?void 0:a.VITE_DOC_URL_ZH}]},{title:t==null?void 0:t.compassCommunity,logos:[{img:E,link:"https://www.zhihu.com/people/jue-qi-36-21",outlink:!0},{img:f,link:"https://github.com/open-compass",outlink:!0},{img:N,link:"https://x.com/OpenCompassX",outlink:!0}]}];return e.createElement("div",{className:l.footerExpansion},e.createElement("div",{className:l.top},e.createElement("div",{className:l.left},e.createElement("img",{src:`${p}logo-icon.svg`,alt:"logo-icon"})),e.createElement("div",{className:l.center,style:{marginLeft:80}},e.createElement("div",{key:s[0].title,className:l.section},e.createElement("div",{className:l.sectionTitle},s[0].title),s[0].items&&e.createElement("div",{className:l.items},s[0].items.map(n=>e.createElement("a",{href:`${a==null?void 0:a.VITE_RANK_URL}${n.link}?lang=${i}`,target:n.outlink?"_blank":"_self",key:n.name,className:d(l.sectionLink,{[l.outLink]:n.outlink}),rel:"noreferrer"},n.name,n.outlink&&e.createElement(u,{type:"icon-GotoOutline"}))))),e.createElement("div",{className:l.centerRight},e.createElement("div",{className:l.center},s.slice(1).map(n=>e.createElement("div",{key:n.title,className:l.section},e.createElement("div",{className:l.sectionTitle},n.title),n.items&&e.createElement("div",{className:l.items},n.items.map(o=>e.createElement("a",{href:`${o.link}${o.outlink?"":`?lang=${i}`}`,target:o.outlink?"_blank":"_self",key:o.name,className:d(l.sectionLink,{[l.outLink]:o.outlink}),rel:"noreferrer"},o.name,o.outlink&&e.createElement(u,{type:"icon-GotoOutline"})))),n.logos&&e.createElement("div",{className:l.logos},n.logos.map(o=>e.createElement("div",{key:o.img,onClick:()=>r(o.link,o.outlink)},e.createElement("img",{className:l.logo,src:o.img,alt:"logo"}))))))),e.createElement("div",null,e.createElement("div",{className:l.section},e.createElement("span",{className:l.sectionTitle},t==null?void 0:t.contactUs),e.createElement("span",{className:l.sectionEmail},"opencompass@pjlab.org.cn"))))),e.createElement("div",{className:l.right},e.createElement("img",{src:"https://opencompass.oss-cn-shanghai.aliyuncs.com/image/qrcode_compass.png",className:l.qrCode,alt:"qrCode"}),e.createElement("div",null,t==null?void 0:t.followUs))),e.createElement("div",{className:l.bottom},e.createElement("span",{className:l.agreement,onClick:()=>r(`${a==null?void 0:a.VITE_COMPASS_URL}policy`)},t==null?void 0:t.agreement),e.createElement("span",null,"\xA9 2023-2025 OpenCompass All Rights Reserved"),e.createElement("div",{className:l.columnLine}),e.createElement("span",{className:l.icp,onClick:()=>{window.open("https://beian.miit.gov.cn/#/Integrated/index")}},"\u6CAAICP\u59072021009351\u53F7-23")))};export{L as default,p as imgUrl};
@@ -0,0 +1,120 @@
1
+ import o from"../../node_modules/style-inject/dist/style-inject.es.js";var n=`.footer-expansion-module_footerExpansion__LNPan {
2
+ background-color: #f9f9f9;
3
+ min-width: calc(1280px - 8px);
4
+ width: 100%;
5
+ }
6
+ .footer-expansion-module_footerExpansion__LNPan .footer-expansion-module_top__UcqAx {
7
+ padding: 40px 0;
8
+ display: flex;
9
+ box-sizing: border-box;
10
+ width: 1200px;
11
+ margin: auto;
12
+ }
13
+ .footer-expansion-module_footerExpansion__LNPan .footer-expansion-module_top__UcqAx .footer-expansion-module_left__QDxdB .footer-expansion-module_logo__F32MD {
14
+ width: 80px;
15
+ height: 80px;
16
+ }
17
+ .footer-expansion-module_footerExpansion__LNPan .footer-expansion-module_top__UcqAx .footer-expansion-module_right__Ra74H {
18
+ color: var(--80-text-4, rgba(18, 19, 22, 0.8));
19
+ text-align: center;
20
+ font-size: 12px;
21
+ font-style: normal;
22
+ font-weight: 400;
23
+ line-height: 18px;
24
+ margin-left: auto;
25
+ white-space: pre-wrap;
26
+ }
27
+ .footer-expansion-module_footerExpansion__LNPan .footer-expansion-module_top__UcqAx .footer-expansion-module_right__Ra74H .footer-expansion-module_qrCode__gjY9c {
28
+ width: 100px;
29
+ height: 100px;
30
+ border-radius: 4px;
31
+ background: var(---fill-0, #fff);
32
+ padding: 10px;
33
+ margin-bottom: 4px;
34
+ }
35
+ .footer-expansion-module_footerExpansion__LNPan .footer-expansion-module_top__UcqAx .footer-expansion-module_center__XBAjM {
36
+ display: flex;
37
+ align-items: flex-start;
38
+ gap: 64px;
39
+ }
40
+ .footer-expansion-module_footerExpansion__LNPan .footer-expansion-module_top__UcqAx .footer-expansion-module_center__XBAjM .footer-expansion-module_sectionTitle__NraTl {
41
+ color: var(--100-text-5, #121316);
42
+ font-size: 14px;
43
+ font-style: normal;
44
+ font-weight: 600;
45
+ line-height: 24px;
46
+ margin-bottom: 16px;
47
+ }
48
+ .footer-expansion-module_footerExpansion__LNPan .footer-expansion-module_top__UcqAx .footer-expansion-module_center__XBAjM .footer-expansion-module_sectionLink__sdR1Z {
49
+ color: var(--80-text-4, rgba(18, 19, 22, 0.8));
50
+ font-size: 14px;
51
+ font-style: normal;
52
+ font-weight: 400;
53
+ line-height: 24px;
54
+ cursor: pointer;
55
+ text-decoration: none;
56
+ display: block;
57
+ }
58
+ .footer-expansion-module_footerExpansion__LNPan .footer-expansion-module_top__UcqAx .footer-expansion-module_center__XBAjM .footer-expansion-module_sectionLink__sdR1Z:not(:last-child) {
59
+ margin-bottom: 8px;
60
+ }
61
+ .footer-expansion-module_footerExpansion__LNPan .footer-expansion-module_top__UcqAx .footer-expansion-module_center__XBAjM .footer-expansion-module_sectionEmail__ytm3O {
62
+ color: rgba(18, 19, 22, 0.8);
63
+ font-size: 14px;
64
+ font-style: normal;
65
+ font-weight: 400;
66
+ line-height: 24px;
67
+ margin-left: 16px;
68
+ }
69
+ .footer-expansion-module_footerExpansion__LNPan .footer-expansion-module_top__UcqAx .footer-expansion-module_center__XBAjM .footer-expansion-module_logos__-TI0c {
70
+ display: flex;
71
+ align-items: center;
72
+ gap: 12px;
73
+ }
74
+ .footer-expansion-module_footerExpansion__LNPan .footer-expansion-module_top__UcqAx .footer-expansion-module_center__XBAjM .footer-expansion-module_logos__-TI0c .footer-expansion-module_logo__F32MD {
75
+ width: 24px;
76
+ height: 24px;
77
+ cursor: pointer;
78
+ }
79
+ .footer-expansion-module_footerExpansion__LNPan .footer-expansion-module_top__UcqAx .footer-expansion-module_center__XBAjM .footer-expansion-module_outLink__wUVDH {
80
+ display: flex;
81
+ align-items: center;
82
+ gap: 2px;
83
+ }
84
+ .footer-expansion-module_footerExpansion__LNPan .footer-expansion-module_top__UcqAx .footer-expansion-module_centerRight__JTqwl {
85
+ display: flex;
86
+ flex-direction: column;
87
+ justify-content: space-between;
88
+ height: 100%;
89
+ }
90
+ .footer-expansion-module_footerExpansion__LNPan .footer-expansion-module_bottom__QBcuG {
91
+ border-top: 1px solid var(----line-2, #ebecf0);
92
+ text-align: center;
93
+ justify-content: center;
94
+ padding: 8px 0;
95
+ color: var(--50-text-3, rgba(18, 19, 22, 0.5));
96
+ font-size: 12px;
97
+ font-style: normal;
98
+ font-weight: 400;
99
+ line-height: 18px;
100
+ display: flex;
101
+ align-items: center;
102
+ gap: 8px;
103
+ }
104
+ .footer-expansion-module_footerExpansion__LNPan .footer-expansion-module_bottom__QBcuG .footer-expansion-module_agreement__1WFo0 {
105
+ margin-right: 8px;
106
+ }
107
+ .footer-expansion-module_footerExpansion__LNPan .footer-expansion-module_bottom__QBcuG .footer-expansion-module_agreement__1WFo0:hover {
108
+ cursor: pointer;
109
+ color: var(--100-text-5, #121316);
110
+ }
111
+ .footer-expansion-module_footerExpansion__LNPan .footer-expansion-module_bottom__QBcuG .footer-expansion-module_icp__zP9D0:hover {
112
+ cursor: pointer;
113
+ color: var(--100-text-5, #121316);
114
+ }
115
+ .footer-expansion-module_footerExpansion__LNPan .footer-expansion-module_bottom__QBcuG .footer-expansion-module_columnLine__zKnuw {
116
+ border-left: 1px solid rgba(18, 19, 22, 0.5);
117
+ height: 12px;
118
+ width: 1px;
119
+ }
120
+ `,e={footerExpansion:"footer-expansion-module_footerExpansion__LNPan",top:"footer-expansion-module_top__UcqAx",left:"footer-expansion-module_left__QDxdB",logo:"footer-expansion-module_logo__F32MD",right:"footer-expansion-module_right__Ra74H",qrCode:"footer-expansion-module_qrCode__gjY9c",center:"footer-expansion-module_center__XBAjM",sectionTitle:"footer-expansion-module_sectionTitle__NraTl",sectionLink:"footer-expansion-module_sectionLink__sdR1Z",sectionEmail:"footer-expansion-module_sectionEmail__ytm3O",logos:"footer-expansion-module_logos__-TI0c",outLink:"footer-expansion-module_outLink__wUVDH",centerRight:"footer-expansion-module_centerRight__JTqwl",bottom:"footer-expansion-module_bottom__QBcuG",agreement:"footer-expansion-module_agreement__1WFo0",icp:"footer-expansion-module_icp__zP9D0",columnLine:"footer-expansion-module_columnLine__zKnuw"};o(n);export{e as default};
@@ -0,0 +1 @@
1
+ import p from"../../providers/OcContext.js";import i from"../../providers/OcConfigContext.js";import m from"./footer-expansion.js";import{ConfigProvider as f}from"antd";import t from"react";var l=Object.defineProperty,n=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,a=(o,r,e)=>r in o?l(o,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[r]=e,u=(o,r)=>{for(var e in r||(r={}))s.call(r,e)&&a(o,e,r[e]);if(n)for(var e of n(r))c.call(r,e)&&a(o,e,r[e]);return o};const v=o=>t.createElement(i,null,t.createElement(p,null,t.createElement(f,{theme:{components:{}}},t.createElement(m,u({},o)))));export{v as default};
@@ -0,0 +1 @@
1
+ import e,{useContext as N,useState as b}from"react";import{Form as m,Select as h,Modal as C,Tooltip as x,Input as E,Button as O,message as k}from"antd";import y from"classnames";import a from"./create-evaluation.module.less.js";import _ from"../../../../../../assets/svg/evaluation/quick.svg.js";import z from"../../../../../../assets/svg/evaluation/customize.svg.js";import q from"../../../../../../assets/svg/evaluation/comprehensive.svg.js";import i from"../../../../../../assets/svg/evaluation/part.svg.js";import v from"../../../../../../assets/svg/evaluation/done.svg.js";import{QuestionCircleOutlined as A}from"@ant-design/icons";import{CN as j}from"country-flag-icons/react/3x2";import{OcContext as I}from"../../../../../../providers/OcContext.js";import{OcConfigContext as B}from"../../../../../../providers/OcConfigContext.js";var L=Object.defineProperty,P=Object.getOwnPropertySymbols,M=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,w=(l,t,r)=>t in l?L(l,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):l[t]=r,W=(l,t)=>{for(var r in t||(t={}))M.call(t,r)&&w(l,r,t[r]);if(P)for(var r of P(t))T.call(t,r)&&w(l,r,t[r]);return l},$=(l,t,r)=>new Promise((p,c)=>{var g=n=>{try{u(r.next(n))}catch(d){c(d)}},o=n=>{try{u(r.throw(n))}catch(d){c(d)}},u=n=>n.done?p(n.value):Promise.resolve(n.value).then(g,o);u((r=r.apply(l,t)).next())});const{Option:R}=h,F=e.createElement(m.Item,{name:"prefix",noStyle:!0},e.createElement(h,{style:{width:100}},e.createElement(R,{value:"+86"},e.createElement(j,{style:{width:16,marginRight:4}}),"+86"))),V=l=>{const{locales:t}=N(I),{config:r}=N(B),{applyAbilityEval:p}=r,[c]=m.useForm(),[g,o]=b(!1),[u,n]=b(!1),d=()=>{o(!0)},f=()=>{o(!1),c.resetFields()},S=()=>{c.validateFields().then(s=>$(void 0,null,function*(){n(!0),(yield p({orgName:s.orgName,modelName:s.modelName,modelScenarios:s.modelScenarios,phoneNumber:s.phoneNumber,email:s.email})).success&&(k.success(t.submitSuccess),o(!1),c.resetFields()),n(!1)})).catch(s=>{n(!1),k.error(s==null?void 0:s.message)})};return e.createElement(e.Fragment,null,e.createElement(C,W({centered:!0,className:a.modal,width:800,footer:[e.createElement("div",{className:a.footerContainer},l.goPrevStep&&e.createElement("button",{key:"cancel",className:a.prevStep,onClick:l.goPrevStep},t.prevStep),e.createElement("div",{className:a.right},e.createElement("button",{key:"cancel",className:a.cancel,onClick:l.onCancel},t.cancel),e.createElement("button",{key:"create",onClick:l.onOk,className:a.submit},t.create)))]},l),e.createElement("div",{className:a.content},e.createElement("div",{className:y(a.work,l.type===0&&a.active),onClick:()=>l.onTypeChange(0)},e.createElement("img",{src:_,alt:""}),e.createElement("div",{className:a.title},t.quick),e.createElement("div",{className:a.introduce},e.createElement("div",{className:a.part},e.createElement("img",{src:i,alt:""}),e.createElement("span",null,t.quickFeatures2,e.createElement("span",{style:{fontWeight:600}},t.quickFeatures21))),e.createElement("div",{className:a.part},e.createElement("img",{src:i,alt:""}),e.createElement("span",null,t.quickFeatures1)),e.createElement("div",{className:a.done},e.createElement("img",{src:v,alt:""}),e.createElement("span",null,t.quickFeatures3)))),e.createElement("div",{className:y(a.work,l.type===1&&a.active),onClick:()=>l.onTypeChange(1)},e.createElement("div",{className:a.tip},t.createAbilityCompany,e.createElement(x,{title:e.createElement(e.Fragment,null,e.createElement("span",null,t.createAbilityTip),e.createElement("span",{className:a.applyBtn,onClick:d},t.applyNow)),overlayStyle:{maxWidth:334,zIndex:10001}},e.createElement("span",null,e.createElement(A,null)))),e.createElement("img",{src:q,alt:""}),e.createElement("div",{className:a.title},t.comprehensive),e.createElement("div",{className:a.introduce},e.createElement("div",{className:a.part},e.createElement("img",{src:i,alt:""}),e.createElement("span",null,t.abilityFeatures2,e.createElement("span",{style:{fontWeight:600}},t.abilityFeatures21))),e.createElement("div",{className:a.part},e.createElement("img",{src:i,alt:""}),e.createElement("span",null,t.abilityFeatures1)),e.createElement("div",{className:a.done},e.createElement("img",{src:v,alt:""}),e.createElement("span",null,t.abilityFeatures3)))),e.createElement("div",{className:y(a.work,l.type===2&&a.active),onClick:()=>l.onTypeChange(2)},e.createElement("img",{src:z,alt:""}),e.createElement("div",{className:a.title},t.customize),e.createElement("div",{className:a.introduce},e.createElement("div",{className:a.introduce},e.createElement("div",{className:a.part},e.createElement("img",{src:i,alt:""}),e.createElement("span",null,t.customFeature2)),e.createElement("div",{className:a.part},e.createElement("img",{src:i,alt:""}),e.createElement("span",null,t.customFeature1)),e.createElement("div",{className:a.done},e.createElement("img",{src:v,alt:""}),e.createElement("span",null,t.customFeature3))))))),e.createElement(C,{open:g,centered:!0,className:a.applyModal,width:800,onCancel:f,title:t.abilityPermissionApply,footer:!1},e.createElement("div",{className:a.content},e.createElement(m,{form:c,layout:"vertical",variant:"filled",initialValues:{prefix:"+86"},className:a.form},e.createElement(m.Item,{label:t.orgName,name:"orgName",rules:[{required:!0,message:t.abilityOrganizeNameError}]},e.createElement(E,{maxLength:50,showCount:!0,placeholder:t.abilityOrganizeNameError})),e.createElement(m.Item,{label:t.abilityBaseNameEN,name:"modelName",rules:[{required:!0,message:t.abilityBaseNameENError1}]},e.createElement(E,{maxLength:40,showCount:!0,placeholder:t.abilityBaseNameENError1})),e.createElement(m.Item,{label:t.abilityModelUsage,name:"modelScenarios",rules:[{required:!0,message:t.abilityModelPlaceholder}]},e.createElement(E,{maxLength:100,showCount:!0,placeholder:t.abilityModelPlaceholder})),e.createElement(m.Item,{name:"phoneNumber",label:t.abilityOrganizePhone,rules:[{required:!0,message:t.abilityOrganizePhonePlaceholder},{pattern:/^1[3-9]\d{9}$/,message:t.abilityOrganizeError}]},e.createElement(E,{addonBefore:F,style:{width:"100%"},placeholder:t.abilityOrganizePhonePlaceholder})),e.createElement(m.Item,{label:t.abilityOrganizeEmail,name:"email",rules:[{required:!0,message:t.abilityOrganizeEmailError},{type:"email",message:t.abilityOrganizeEmailError}]},e.createElement(E,{placeholder:t.abilityOrganizeEmailPlaceholder})))),e.createElement("div",{className:a.footer},e.createElement("div",{className:a.footerWarning},t.abilityApplyWarning),e.createElement("div",null,e.createElement(O,{key:"cancel",onClick:f},t.cancel),e.createElement(O,{key:"submit",onClick:S,style:{background:"#1B3882",marginLeft:12,color:"#fff"},disabled:u},t.abilityApplySubmit)))))};export{V as default,F as prefixSelector};
@@ -0,0 +1,249 @@
1
+ import e from"../../../../../../node_modules/style-inject/dist/style-inject.es.js";var a=`.create-evaluation-module_modal__wDhgT .ant-modal-content {
2
+ padding: 24px 32px;
3
+ }
4
+ .create-evaluation-module_modal__wDhgT .create-evaluation-module_content__Qf9Yq {
5
+ margin-top: 72px;
6
+ display: flex;
7
+ column-gap: 8px;
8
+ margin-bottom: 56px;
9
+ }
10
+ .create-evaluation-module_modal__wDhgT .create-evaluation-module_content__Qf9Yq .create-evaluation-module_work__JojaP {
11
+ cursor: pointer;
12
+ padding: 20px 20px;
13
+ border-radius: 2px;
14
+ flex: 1;
15
+ border: 1px solid #d7d8dd;
16
+ position: relative;
17
+ }
18
+ .create-evaluation-module_modal__wDhgT .create-evaluation-module_content__Qf9Yq .create-evaluation-module_work__JojaP .create-evaluation-module_tip__87zvK {
19
+ position: absolute;
20
+ top: 4px;
21
+ right: 4px;
22
+ color: #006641;
23
+ background-color: #daf2e4;
24
+ line-height: 21px;
25
+ padding: 3px 8px;
26
+ display: flex;
27
+ align-items: center;
28
+ column-gap: 2px;
29
+ border-radius: 1px;
30
+ }
31
+ .create-evaluation-module_modal__wDhgT .create-evaluation-module_content__Qf9Yq .create-evaluation-module_work__JojaP .create-evaluation-module_tip__87zvK span {
32
+ position: relative;
33
+ top: 0.4px;
34
+ }
35
+ .create-evaluation-module_modal__wDhgT .create-evaluation-module_content__Qf9Yq .create-evaluation-module_work__JojaP .create-evaluation-module_title__CFUX2 {
36
+ color: #1b3882;
37
+ font-size: 16px;
38
+ font-weight: 600;
39
+ margin-top: 16px;
40
+ margin-bottom: 16px;
41
+ }
42
+ .create-evaluation-module_modal__wDhgT .create-evaluation-module_content__Qf9Yq .create-evaluation-module_work__JojaP .create-evaluation-module_introduce__orWbU {
43
+ display: flex;
44
+ flex-direction: column;
45
+ row-gap: 8px;
46
+ }
47
+ .create-evaluation-module_modal__wDhgT .create-evaluation-module_content__Qf9Yq .create-evaluation-module_work__JojaP .create-evaluation-module_introduce__orWbU .create-evaluation-module_part__LN9zR {
48
+ display: flex;
49
+ align-items: start;
50
+ column-gap: 4px;
51
+ line-height: 24px;
52
+ }
53
+ .create-evaluation-module_modal__wDhgT .create-evaluation-module_content__Qf9Yq .create-evaluation-module_work__JojaP .create-evaluation-module_introduce__orWbU .create-evaluation-module_part__LN9zR img {
54
+ position: relative;
55
+ top: 6px;
56
+ }
57
+ .create-evaluation-module_modal__wDhgT .create-evaluation-module_content__Qf9Yq .create-evaluation-module_work__JojaP .create-evaluation-module_introduce__orWbU .create-evaluation-module_done__gKZzg {
58
+ display: flex;
59
+ column-gap: 4px;
60
+ align-items: start;
61
+ line-height: 24px;
62
+ }
63
+ .create-evaluation-module_modal__wDhgT .create-evaluation-module_content__Qf9Yq .create-evaluation-module_work__JojaP .create-evaluation-module_introduce__orWbU .create-evaluation-module_done__gKZzg img {
64
+ position: relative;
65
+ top: 6px;
66
+ }
67
+ .create-evaluation-module_modal__wDhgT .create-evaluation-module_content__Qf9Yq .create-evaluation-module_active__KrFUv {
68
+ border: 1px solid #36569b;
69
+ background: #f1f7fe;
70
+ }
71
+ .create-evaluation-module_modal__wDhgT .create-evaluation-module_content__Qf9Yq .create-evaluation-module_soon__sAqQF {
72
+ cursor: auto;
73
+ border-radius: 2px;
74
+ border: 1px solid #d7d8dd;
75
+ background: #fff;
76
+ display: flex;
77
+ flex-direction: column;
78
+ }
79
+ .create-evaluation-module_modal__wDhgT .create-evaluation-module_content__Qf9Yq .create-evaluation-module_soon__sAqQF img {
80
+ width: 40px;
81
+ }
82
+ .create-evaluation-module_modal__wDhgT .create-evaluation-module_content__Qf9Yq .create-evaluation-module_soon__sAqQF img,
83
+ .create-evaluation-module_modal__wDhgT .create-evaluation-module_content__Qf9Yq .create-evaluation-module_soon__sAqQF div {
84
+ opacity: 0.5;
85
+ }
86
+ .create-evaluation-module_modal__wDhgT .create-evaluation-module_content__Qf9Yq .create-evaluation-module_soon__sAqQF .create-evaluation-module_title__CFUX2 {
87
+ color: rgba(18, 19, 22, 0.8);
88
+ }
89
+ .create-evaluation-module_modal__wDhgT .create-evaluation-module_content__Qf9Yq .create-evaluation-module_soon__sAqQF .create-evaluation-module_introduce__orWbU {
90
+ flex: 1;
91
+ }
92
+ .create-evaluation-module_modal__wDhgT .create-evaluation-module_content__Qf9Yq .create-evaluation-module_soon__sAqQF .create-evaluation-module_introduce__orWbU .create-evaluation-module_ing__pOejE {
93
+ height: 100%;
94
+ display: flex;
95
+ justify-content: center;
96
+ align-items: center;
97
+ color: #121316;
98
+ }
99
+ .create-evaluation-module_modal__wDhgT .create-evaluation-module_footerContainer__odBUD {
100
+ display: flex;
101
+ justify-content: space-between;
102
+ }
103
+ .create-evaluation-module_modal__wDhgT .create-evaluation-module_footerContainer__odBUD button {
104
+ border-radius: 2px;
105
+ text-align: center;
106
+ font-size: 14px;
107
+ font-style: normal;
108
+ font-weight: 400;
109
+ line-height: 21px;
110
+ border: 0px;
111
+ width: 76px;
112
+ height: 36px;
113
+ }
114
+ .create-evaluation-module_modal__wDhgT .create-evaluation-module_footerContainer__odBUD button:hover {
115
+ cursor: pointer;
116
+ }
117
+ .create-evaluation-module_modal__wDhgT .create-evaluation-module_footerContainer__odBUD .create-evaluation-module_prevStep__-Wgsp {
118
+ background-color: transparent;
119
+ border: 0;
120
+ color: var(--80-text-4, rgba(18, 19, 22, 0.8));
121
+ }
122
+ .create-evaluation-module_modal__wDhgT .create-evaluation-module_footerContainer__odBUD .create-evaluation-module_right__-E3w6 {
123
+ display: flex;
124
+ gap: 12px;
125
+ }
126
+ .create-evaluation-module_modal__wDhgT .create-evaluation-module_footerContainer__odBUD .create-evaluation-module_right__-E3w6 .create-evaluation-module_cancel__JHleb {
127
+ background: var(--fill-2, #f4f5f9);
128
+ color: var(--80-text-4, rgba(18, 19, 22, 0.8));
129
+ }
130
+ .create-evaluation-module_modal__wDhgT .create-evaluation-module_footerContainer__odBUD .create-evaluation-module_right__-E3w6 .create-evaluation-module_cancel__JHleb:hover {
131
+ background: var(--fill-2, #f4f5f9) !important;
132
+ color: var(--80-text-4, rgba(18, 19, 22, 0.8)) !important;
133
+ }
134
+ .create-evaluation-module_modal__wDhgT .create-evaluation-module_footerContainer__odBUD .create-evaluation-module_right__-E3w6 .create-evaluation-module_submit__5BJ9H {
135
+ background: #1b3882;
136
+ margin-left: 12;
137
+ color: #fff;
138
+ }
139
+ .create-evaluation-module_modal__wDhgT .create-evaluation-module_footerContainer__odBUD .create-evaluation-module_right__-E3w6 .create-evaluation-module_submit__5BJ9H:hover {
140
+ background: #1b3882;
141
+ color: #fff;
142
+ }
143
+ .create-evaluation-module_apply-modal__0mD4L .ant-modal-content {
144
+ padding: 24px 32px 20px;
145
+ }
146
+ .create-evaluation-module_apply-modal__0mD4L .ant-modal-header {
147
+ margin-bottom: 24px;
148
+ }
149
+ .create-evaluation-module_apply-modal__0mD4L .ant-modal-footer {
150
+ margin-top: 0;
151
+ }
152
+ .create-evaluation-module_apply-modal__0mD4L .create-evaluation-module_content__Qf9Yq {
153
+ display: flex;
154
+ column-gap: 8px;
155
+ }
156
+ .create-evaluation-module_apply-modal__0mD4L .create-evaluation-module_content__Qf9Yq .create-evaluation-module_tip__87zvK {
157
+ font-weight: 600;
158
+ }
159
+ .create-evaluation-module_apply-modal__0mD4L .create-evaluation-module_content__Qf9Yq .create-evaluation-module_warn__Ui1u2 {
160
+ margin-top: 8px;
161
+ }
162
+ .create-evaluation-module_apply-modal__0mD4L .create-evaluation-module_footer__Viv90 {
163
+ display: flex;
164
+ justify-content: space-between;
165
+ column-gap: 12px;
166
+ margin-top: 24px;
167
+ }
168
+ .create-evaluation-module_apply-modal__0mD4L .create-evaluation-module_footer__Viv90 .create-evaluation-module_footer-warning__v0LLM {
169
+ color: var(--60-text-3, rgba(18, 19, 22, 0.6));
170
+ font-family: 'PingFang SC';
171
+ font-size: 13px;
172
+ font-style: normal;
173
+ font-weight: 400;
174
+ line-height: 20px;
175
+ }
176
+ .create-evaluation-module_apply-modal__0mD4L .create-evaluation-module_form__N1Uw4 {
177
+ width: 100%;
178
+ }
179
+ .create-evaluation-module_apply-modal__0mD4L .create-evaluation-module_form__N1Uw4 .ant-input-group-addon {
180
+ color: rgba(18, 19, 22, 0.8);
181
+ background-color: #f4f5f9;
182
+ }
183
+ .create-evaluation-module_apply-modal__0mD4L .create-evaluation-module_form__N1Uw4 .ant-input-filled {
184
+ background-color: #f4f5f9 !important;
185
+ }
186
+ .create-evaluation-module_apply-modal__0mD4L .create-evaluation-module_form__N1Uw4 label {
187
+ color: rgba(18, 19, 22, 0.8);
188
+ }
189
+ .create-evaluation-module_apply-modal__0mD4L .create-evaluation-module_form__N1Uw4 .ant-input-status-error .ant-input {
190
+ color: rgba(0, 0, 0, 0.88);
191
+ }
192
+ .create-evaluation-module_apply-modal__0mD4L .create-evaluation-module_form__N1Uw4 .ant-input-filled.ant-input-status-error,
193
+ .create-evaluation-module_apply-modal__0mD4L .create-evaluation-module_form__N1Uw4 .ant-input-number-filled.ant-input-number-status-error {
194
+ border-color: #f5483b;
195
+ background-color: #f4f5f9;
196
+ color: rgba(0, 0, 0, 0.88);
197
+ }
198
+ .create-evaluation-module_apply-modal__0mD4L .create-evaluation-module_form__N1Uw4 .ant-input-filled.ant-input-status-error:focus,
199
+ .create-evaluation-module_apply-modal__0mD4L .create-evaluation-module_form__N1Uw4 .ant-input-number-filled.ant-input-number-status-error:focus {
200
+ background-color: #ffffff;
201
+ }
202
+ .create-evaluation-module_apply-modal__0mD4L .create-evaluation-module_form__N1Uw4 .ant-input-filled.ant-input-status-error input,
203
+ .create-evaluation-module_apply-modal__0mD4L .create-evaluation-module_form__N1Uw4 .ant-input-number-filled.ant-input-number-status-error input {
204
+ color: rgba(0, 0, 0, 0.88);
205
+ }
206
+ .create-evaluation-module_apply-modal__0mD4L .create-evaluation-module_form__N1Uw4 textarea,
207
+ .create-evaluation-module_apply-modal__0mD4L .create-evaluation-module_form__N1Uw4 input {
208
+ line-height: 26px;
209
+ }
210
+ .create-evaluation-module_apply-modal__0mD4L .create-evaluation-module_form__N1Uw4 textarea::placeholder,
211
+ .create-evaluation-module_apply-modal__0mD4L .create-evaluation-module_form__N1Uw4 input::placeholder {
212
+ color: rgba(18, 19, 22, 0.35);
213
+ }
214
+ .create-evaluation-module_apply-modal__0mD4L .create-evaluation-module_form__N1Uw4 .ant-form-item-extra {
215
+ font-size: 13px;
216
+ color: rgba(18, 19, 22, 0.6);
217
+ }
218
+ .create-evaluation-module_apply-modal__0mD4L .create-evaluation-module_form__N1Uw4 .ant-form-item-tooltip {
219
+ cursor: pointer;
220
+ position: relative;
221
+ top: 1px;
222
+ }
223
+ .create-evaluation-module_apply-modal__0mD4L .create-evaluation-module_form__N1Uw4 .ant-input-number-handler-wrap {
224
+ align-items: center;
225
+ justify-content: center;
226
+ background-color: transparent;
227
+ margin-right: 4px;
228
+ }
229
+ .create-evaluation-module_apply-modal__0mD4L .create-evaluation-module_form__N1Uw4 .ant-input-number-handler-wrap .ant-input-number-handler {
230
+ width: 18px;
231
+ height: 10px;
232
+ border: none;
233
+ flex: none;
234
+ background-color: #f9f9f9;
235
+ border-radius: 0%;
236
+ }
237
+ .create-evaluation-module_applyBtn__Xbanh {
238
+ margin-left: 4px;
239
+ color: var(--95-text-dark-5, rgba(255, 255, 255, 0.95));
240
+ font-feature-settings: 'liga' off, 'clig' off;
241
+ font-family: 'PingFang SC';
242
+ font-size: 14px;
243
+ font-style: normal;
244
+ font-weight: 600;
245
+ line-height: 21px;
246
+ text-decoration-line: underline;
247
+ cursor: pointer;
248
+ }
249
+ `,o={modal:"create-evaluation-module_modal__wDhgT",content:"create-evaluation-module_content__Qf9Yq",work:"create-evaluation-module_work__JojaP",tip:"create-evaluation-module_tip__87zvK",title:"create-evaluation-module_title__CFUX2",introduce:"create-evaluation-module_introduce__orWbU",part:"create-evaluation-module_part__LN9zR",done:"create-evaluation-module_done__gKZzg",active:"create-evaluation-module_active__KrFUv",soon:"create-evaluation-module_soon__sAqQF",ing:"create-evaluation-module_ing__pOejE",footerContainer:"create-evaluation-module_footerContainer__odBUD",prevStep:"create-evaluation-module_prevStep__-Wgsp",right:"create-evaluation-module_right__-E3w6",cancel:"create-evaluation-module_cancel__JHleb",submit:"create-evaluation-module_submit__5BJ9H","apply-modal":"create-evaluation-module_apply-modal__0mD4L",warn:"create-evaluation-module_warn__Ui1u2",footer:"create-evaluation-module_footer__Viv90","footer-warning":"create-evaluation-module_footer-warning__v0LLM",form:"create-evaluation-module_form__N1Uw4",applyBtn:"create-evaluation-module_applyBtn__Xbanh"};e(a);export{o as default};
@@ -0,0 +1 @@
1
+ import o,{useContext as v,useState as c}from"react";import $ from"./evaluation-button.module.less.js";import y from"../create-evaluation/create-evaluation.js";import T from"../pre-create-evaluation/index.js";import{OcContext as U}from"../../../../../../providers/OcContext.js";import N from"../../../../hooks/useUrl.js";import{OcConfigContext as P}from"../../../../../../providers/OcConfigContext.js";const b=({onclick:u,children:e,style:C,text:f})=>{const{urls:t}=N(),{locales:i}=v(U),{config:d}=v(P),{locale:s}=d,[E,a]=c(!1),[r,O]=c(0),g=()=>{r===0&&(window.location.href=`${t==null?void 0:t.VITE_RANK_URL}/create/quick?lang=${s}`),r===1&&(window.location.href=`${t==null?void 0:t.VITE_RANK_URL}/create/ability?lang=${s}`),r===2&&(window.location.href=`${t==null?void 0:t.VITE_RANK_URL}/create/custom?lang=${s}`),a(!1)},k=()=>{a(!1)},_=l=>{O(l)},w=()=>{n(!0),a(!1)},[R,n]=c(!1),j=()=>{n(!1)},x=()=>{n(!1),a(!0)};return i?o.createElement(o.Fragment,null,f?o.createElement("div",{style:C,className:$.reviewButton,onClick:l=>{n(!0),u&&u(l)}},f):e&&o.cloneElement(e,{onClick:l=>{var p,m;n(!0),((p=e==null?void 0:e.props)==null?void 0:p.onclick)&&((m=e==null?void 0:e.props)==null||m.onclick(l))}}),o.createElement(T,{open:R,onCancel:j,title:i.createOnlineEvaluation,llmClick:x}),o.createElement(y,{goPrevStep:w,open:E,onOk:g,onCancel:k,title:i.createOnlineEvaluation,onTypeChange:_,type:r})):null};export{b as default};