@opencompass-fe/oc-webkit-eval 0.1.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 (98) 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/assets/svg/top-nav/AI4S.svg.js +1 -0
  21. package/dist/assets/svg/top-nav/LLM.svg.js +1 -0
  22. package/dist/assets/svg/top-nav/agent.svg.js +1 -0
  23. package/dist/assets/svg/top-nav/arena-flag-mobile.svg.js +1 -0
  24. package/dist/assets/svg/top-nav/arena-flag.svg.js +1 -0
  25. package/dist/assets/svg/top-nav/arrow-right-up.svg.js +1 -0
  26. package/dist/assets/svg/top-nav/arrow-up.svg.js +1 -0
  27. package/dist/assets/svg/top-nav/finance.svg.js +1 -0
  28. package/dist/assets/svg/top-nav/group-bullet.svg.js +1 -0
  29. package/dist/assets/svg/top-nav/image-understanding.svg.js +1 -0
  30. package/dist/assets/svg/top-nav/logo-mark.svg.js +1 -0
  31. package/dist/assets/svg/top-nav/logo-word.svg.js +1 -0
  32. package/dist/assets/svg/top-nav/medical.svg.js +1 -0
  33. package/dist/assets/svg/top-nav/nav-down.svg.js +1 -0
  34. package/dist/assets/svg/top-nav/physical-intelligence.svg.js +1 -0
  35. package/dist/assets/svg/top-nav/video-understanding.svg.js +1 -0
  36. package/dist/components/dropdown/dropdown.js +1 -0
  37. package/dist/components/dropdown/dropdown.module.less.js +175 -0
  38. package/dist/components/dropdown/index.js +1 -0
  39. package/dist/components/footer/footer.js +1 -0
  40. package/dist/components/footer/footer.module.less.js +68 -0
  41. package/dist/components/footer/index.js +1 -0
  42. package/dist/components/footer-expansion/footer-expansion.js +1 -0
  43. package/dist/components/footer-expansion/footer-expansion.module.less.js +120 -0
  44. package/dist/components/footer-expansion/index.js +1 -0
  45. package/dist/components/header/components/create-online-evaluation/component/create-evaluation/create-evaluation.js +1 -0
  46. package/dist/components/header/components/create-online-evaluation/component/create-evaluation/create-evaluation.module.less.js +249 -0
  47. package/dist/components/header/components/create-online-evaluation/component/evaluation-button/evaluation-button.js +1 -0
  48. package/dist/components/header/components/create-online-evaluation/component/evaluation-button/evaluation-button.module.less.js +19 -0
  49. package/dist/components/header/components/create-online-evaluation/component/pre-create-evaluation/index.js +1 -0
  50. package/dist/components/header/components/create-online-evaluation/component/pre-create-evaluation/index.module.less.js +68 -0
  51. package/dist/components/header/components/create-online-evaluation/component/sidebar/sidebar.module.less.js +18 -0
  52. package/dist/components/header/firstHeader.module.less.js +305 -0
  53. package/dist/components/header/header.js +1 -0
  54. package/dist/components/header/header.module.less.js +434 -0
  55. package/dist/components/header/hooks/useUrl.js +1 -0
  56. package/dist/components/header/index.js +1 -0
  57. package/dist/components/header/secondHeader.js +1 -0
  58. package/dist/components/md-render/index.js +6 -0
  59. package/dist/components/md-render/index.module.less.js +369 -0
  60. package/dist/components/online-evaluation/index.js +1 -0
  61. package/dist/components/online-evaluation/online-evaluation.js +1 -0
  62. package/dist/components/side-nav/index.js +1 -0
  63. package/dist/components/side-nav/side-nav.js +1 -0
  64. package/dist/components/side-nav/side-nav.module.less.js +80 -0
  65. package/dist/components/top-nav/index.js +1 -0
  66. package/dist/components/top-nav/shared.js +1 -0
  67. package/dist/components/top-nav/top-nav.js +1 -0
  68. package/dist/components/top-nav/top-nav.module.less.js +526 -0
  69. package/dist/constants/enums.js +1 -0
  70. package/dist/extraComponents/button/button.js +1 -0
  71. package/dist/extraComponents/button/button.module.less.js +52 -0
  72. package/dist/extraComponents/icon-font/index.js +1 -0
  73. package/dist/google-log/home.js +1 -0
  74. package/dist/helper/index.js +1 -0
  75. package/dist/index.js +1 -0
  76. package/dist/locale/en.js +3 -0
  77. package/dist/locale/index.js +1 -0
  78. package/dist/locale/zh.js +3 -0
  79. package/dist/mobile/components/top-nav/top-nav.js +1 -0
  80. package/dist/mobile/components/top-nav/top-nav.module.less.js +343 -0
  81. package/dist/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +1 -0
  82. package/dist/providers/OcConfigContext.js +1 -0
  83. package/dist/providers/OcContext.js +1 -0
  84. package/dist/types/components/dropdown/dropdown.d.ts +39 -0
  85. package/dist/types/components/dropdown/index.d.ts +2 -0
  86. package/dist/types/components/footer/index.d.ts +6 -0
  87. package/dist/types/components/footer-expansion/index.d.ts +6 -0
  88. package/dist/types/components/header/index.d.ts +6 -0
  89. package/dist/types/components/md-render/index.d.ts +9 -0
  90. package/dist/types/components/online-evaluation/index.d.ts +6 -0
  91. package/dist/types/components/side-nav/index.d.ts +6 -0
  92. package/dist/types/components/top-nav/index.d.ts +6 -0
  93. package/dist/types/constants/enums.d.ts +22 -0
  94. package/dist/types/google-log/home.d.ts +9 -0
  95. package/dist/types/helper/index.d.ts +13 -0
  96. package/dist/types/index.d.ts +164 -0
  97. package/dist/utils/utils.js +1 -0
  98. package/package.json +149 -0
@@ -0,0 +1,249 @@
1
+ import e from"../../../../../../node_modules/.pnpm/style-inject@0.3.0/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};
@@ -0,0 +1,19 @@
1
+ import n from"../../../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js";var e=`.evaluation-button-module_reviewButton__zHdme {
2
+ color: var(--Brand1-6, #1B3882);
3
+ font-family: "PingFang SC";
4
+ font-size: 16px;
5
+ font-style: normal;
6
+ font-weight: 400;
7
+ line-height: 24px;
8
+ /* 150% */
9
+ cursor: pointer;
10
+ border-radius: 40px;
11
+ border: 1px solid #1B3882;
12
+ padding: 4px 16px;
13
+ }
14
+ .evaluation-button-module_reviewButton__zHdme:hover {
15
+ color: #4568C1;
16
+ border: 1px solid #4568C1;
17
+ background: var(--Brand1-1, #F5F6FD);
18
+ }
19
+ `,o={reviewButton:"evaluation-button-module_reviewButton__zHdme"};n(e);export{o as default};
@@ -0,0 +1 @@
1
+ import r,{useContext as i,useMemo as c}from"react";import{Modal as p}from"antd";import n from"./index.module.less.js";import u from"../../../../../../assets/svg/llm-evaluation.svg.js";import d from"../../../../../../assets/svg/mm-evaluation.svg.js";import{OcContext as v}from"../../../../../../providers/OcContext.js";import f from"../../../../hooks/useUrl.js";import"../../../../../../providers/OcConfigContext.js";import"classnames";import"../../../../firstHeader.module.less.js";import"../../../../../../extraComponents/icon-font/index.js";import"../../../../secondHeader.js";import"react-router-dom";import"@ant-design/icons";import{evaluationTypeEnum as j}from"../../../../../../constants/enums.js";import"../../../../../../mobile/components/top-nav/top-nav.module.less.js";import"../../../../../top-nav/shared.js";import"../../../../../top-nav/top-nav.module.less.js";import"react-device-detect";import"../evaluation-button/evaluation-button.module.less.js";import"../create-evaluation/create-evaluation.js";import"../../../../../side-nav/side-nav.module.less.js";import"../../../../../footer/footer.module.less.js";import"../../../../../dropdown/dropdown.module.less.js";import"ahooks";import"../../../../../footer-expansion/footer-expansion.module.less.js";import"../../../../../md-render/index.js";import"../../../../../../helper/index.js";var E=Object.defineProperty,a=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,m=(o,e,t)=>e in o?E(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,x=(o,e)=>{for(var t in e||(e={}))_.call(e,t)&&m(o,t,e[t]);if(a)for(var t of a(e))g.call(e,t)&&m(o,t,e[t]);return o};const C=o=>{const{locales:e}=i(v),{urls:t}=f(),l=c(()=>[{icon:u,name:e.llmEvaluation,click:()=>{o.llmClick()}},{icon:d,name:e.mmEvaluation,click:()=>{window.open(`${t.VITE_RANK_URL}/create/custom?type=${j.mm}`,"self")}}],[o]);return r.createElement(r.Fragment,null,r.createElement(p,x({centered:!0,className:n.modal,width:800,footer:[r.createElement("button",{key:"cancel",className:n.cancel,onClick:o.onCancel},e.cancel)]},o),r.createElement("div",{className:n.container},l.map(s=>r.createElement("div",{className:n.content,onClick:s.click},r.createElement("img",{src:s.icon}),r.createElement("span",null,s.name))))))};export{C as default};
@@ -0,0 +1,68 @@
1
+ import n from"../../../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js";var e=`.index-module_modal__hRoZJ .ant-modal-content {
2
+ padding: 24px 32px;
3
+ }
4
+ .index-module_modal__hRoZJ .index-module_container__GuNuJ {
5
+ width: 100%;
6
+ display: flex;
7
+ justify-content: center;
8
+ gap: 8px;
9
+ padding-top: 60px;
10
+ padding-bottom: 44px;
11
+ }
12
+ .index-module_modal__hRoZJ .index-module_container__GuNuJ .index-module_content__C008M {
13
+ display: flex;
14
+ flex-direction: column;
15
+ gap: 24px;
16
+ padding: 12px 24px;
17
+ width: 192px;
18
+ height: 248px;
19
+ justify-content: center;
20
+ align-items: center;
21
+ border-radius: 2px;
22
+ border: 1px solid var(----line-3, #d7d8dd);
23
+ background: var(---fill-0, #fff);
24
+ }
25
+ .index-module_modal__hRoZJ .index-module_container__GuNuJ .index-module_content__C008M:hover {
26
+ cursor: pointer;
27
+ }
28
+ .index-module_modal__hRoZJ .index-module_container__GuNuJ .index-module_content__C008M:active {
29
+ border-radius: 2px;
30
+ border: 1px solid var(--Brand1-5, #36569B);
31
+ background: #F1F7FE;
32
+ color: var(--Brand1-6, #1B3882);
33
+ }
34
+ .index-module_modal__hRoZJ .index-module_container__GuNuJ .index-module_content__C008M img {
35
+ width: 40px;
36
+ height: 40px;
37
+ }
38
+ .index-module_modal__hRoZJ .index-module_container__GuNuJ .index-module_content__C008M span {
39
+ text-align: center;
40
+ color: var(--100-text-5, #121316);
41
+ font-feature-settings: 'liga' off, 'clig' off;
42
+ /* \u4E09\u7EA7\u7EC4\u4EF6\u6807\u9898/\u52A0\u7C97title-3-semibold */
43
+ font-family: 'PingFang SC';
44
+ font-size: 16px;
45
+ font-style: normal;
46
+ font-weight: 600;
47
+ line-height: 24px;
48
+ /* 150% */
49
+ }
50
+ .index-module_modal__hRoZJ .index-module_cancel__xUlEC {
51
+ border-radius: 2px;
52
+ background: var(--fill-2, #f4f5f9);
53
+ color: var(--80-text-4, rgba(18, 19, 22, 0.8));
54
+ text-align: center;
55
+ font-size: 14px;
56
+ font-style: normal;
57
+ font-weight: 400;
58
+ line-height: 21px;
59
+ border: 0px;
60
+ width: 76px;
61
+ height: 36px;
62
+ }
63
+ .index-module_modal__hRoZJ .index-module_cancel__xUlEC:hover {
64
+ background: var(--fill-2, #f4f5f9) !important;
65
+ color: var(--80-text-4, rgba(18, 19, 22, 0.8)) !important;
66
+ cursor: pointer;
67
+ }
68
+ `,o={modal:"index-module_modal__hRoZJ",container:"index-module_container__GuNuJ",content:"index-module_content__C008M",cancel:"index-module_cancel__xUlEC"};n(e);export{o as default};
@@ -0,0 +1,18 @@
1
+ import n from"../../../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js";var e=`.sidebar-module_sidebars__-rpRK {
2
+ padding: 32px 12px;
3
+ }
4
+ .sidebar-module_sidebars__-rpRK .sidebar-module_sidebar__dAYEP {
5
+ padding: 12px 16px;
6
+ border-radius: 2px;
7
+ background: rgba(27, 56, 130, 0.05);
8
+ display: flex;
9
+ flex-direction: column;
10
+ font-size: 16px;
11
+ font-weight: 600;
12
+ align-items: center;
13
+ line-height: 24px;
14
+ row-gap: 4px;
15
+ color: #1b3882;
16
+ cursor: pointer;
17
+ }
18
+ `;n(e);
@@ -0,0 +1,305 @@
1
+ import e from"../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js";var r=`.firstHeader-module_firstHeader__L3Yly {
2
+ height: 64px;
3
+ display: flex;
4
+ background: rgba(255, 255, 255, 0.08);
5
+ padding-left: 64px;
6
+ padding-right: 20px;
7
+ align-items: center;
8
+ justify-content: space-between;
9
+ position: sticky;
10
+ z-index: 999;
11
+ }
12
+ .firstHeader-module_firstHeader__L3Yly .firstHeader-module_logo__r1F7S {
13
+ height: 48px;
14
+ }
15
+ .firstHeader-module_firstHeader__L3Yly .firstHeader-module_logo__r1F7S img {
16
+ height: 48px;
17
+ }
18
+ .firstHeader-module_firstHeader__L3Yly .firstHeader-module_lang__0QHnx {
19
+ font-size: 20px;
20
+ color: #ffffff;
21
+ }
22
+ .firstHeader-module_firstHeader__L3Yly .firstHeader-module_lang__0QHnx:hover {
23
+ cursor: pointer;
24
+ color: rgba(255, 255, 255, 0.75);
25
+ }
26
+ .firstHeader-module_firstHeader__L3Yly .firstHeader-module_rightBox__9V7Ir {
27
+ display: flex;
28
+ gap: 32px;
29
+ align-items: center;
30
+ }
31
+ .firstHeader-module_firstHeader__L3Yly .firstHeader-module_rightBox__9V7Ir .firstHeader-module_firstMenuItem__mtc1k {
32
+ height: 64px;
33
+ line-height: 64px;
34
+ color: #fff;
35
+ font-size: 16px;
36
+ font-weight: 400;
37
+ }
38
+ .firstHeader-module_firstHeader__L3Yly .firstHeader-module_rightBox__9V7Ir .firstHeader-module_firstMenuItem__mtc1k:hover {
39
+ cursor: pointer;
40
+ color: rgba(255, 255, 255, 0.75);
41
+ }
42
+ .firstHeader-module_firstHeader__L3Yly .firstHeader-module_rightBox__9V7Ir .firstHeader-module_activeMenu__he8Lb {
43
+ display: flex;
44
+ position: relative;
45
+ }
46
+ .firstHeader-module_firstHeader__L3Yly .firstHeader-module_rightBox__9V7Ir .firstHeader-module_activeMenu__he8Lb::after {
47
+ content: '';
48
+ left: 0;
49
+ bottom: 0;
50
+ position: absolute;
51
+ width: 100%;
52
+ height: 2px;
53
+ background-color: #fff;
54
+ }
55
+ .firstHeader-module_lightHeader__3XdWF {
56
+ background: rgba(255, 255, 255, 0.6) !important;
57
+ border-bottom: 1px solid var(----line-2, #ebecf0);
58
+ backdrop-filter: blur(2px);
59
+ }
60
+ .firstHeader-module_lightHeader__3XdWF .firstHeader-module_rightBox__9V7Ir {
61
+ display: flex;
62
+ gap: 32px;
63
+ align-items: center;
64
+ }
65
+ .firstHeader-module_lightHeader__3XdWF .firstHeader-module_rightBox__9V7Ir .firstHeader-module_firstMenuItem__mtc1k {
66
+ height: 64px;
67
+ line-height: 64px;
68
+ color: var(--100-text-5, #121316);
69
+ font-size: 16px;
70
+ font-weight: 400;
71
+ }
72
+ .firstHeader-module_lightHeader__3XdWF .firstHeader-module_rightBox__9V7Ir .firstHeader-module_firstMenuItem__mtc1k:hover {
73
+ color: var(--Brand1-5, #36569b);
74
+ }
75
+ .firstHeader-module_lightHeader__3XdWF .firstHeader-module_rightBox__9V7Ir .firstHeader-module_activeMenu__he8Lb {
76
+ display: flex;
77
+ position: relative;
78
+ }
79
+ .firstHeader-module_lightHeader__3XdWF .firstHeader-module_rightBox__9V7Ir .firstHeader-module_activeMenu__he8Lb::after {
80
+ content: '';
81
+ left: 0;
82
+ bottom: 0;
83
+ position: absolute;
84
+ width: 100%;
85
+ height: 2px;
86
+ background-color: #365091;
87
+ }
88
+ .firstHeader-module_lightHeader__3XdWF .firstHeader-module_lang__0QHnx {
89
+ color: #464a53;
90
+ }
91
+ .firstHeader-module_lightHeader__3XdWF .firstHeader-module_lang__0QHnx:hover {
92
+ color: #121316;
93
+ }
94
+ .firstHeader-module_blueBackHeaderBox__MuAHr {
95
+ background: #192668;
96
+ }
97
+ .firstHeader-module_lightBackHeader__DusJi {
98
+ border-bottom: 1px solid var(----line-2, #ebecf0);
99
+ background: rgba(255, 255, 255, 0.8) !important;
100
+ backdrop-filter: blur(8px);
101
+ }
102
+ .firstHeader-module_blackMiniWeb__q2Qq5 {
103
+ background-color: rgba(5, 20, 90, 0.9) !important;
104
+ backdrop-filter: blur(4px);
105
+ }
106
+ .firstHeader-module_animateHide__Zu85W {
107
+ display: none;
108
+ opacity: 0;
109
+ }
110
+ .firstHeader-module_animateShow__Nk-zI {
111
+ display: flex;
112
+ opacity: 1;
113
+ }
114
+ .firstHeader-module_headerBox__oDPHm {
115
+ background: var(--Brand1-6, #1b3882);
116
+ position: sticky;
117
+ top: 0;
118
+ white-space: nowrap;
119
+ z-index: 9999;
120
+ }
121
+ .firstHeader-module_transparentWeb__bRqGL {
122
+ background: transparent;
123
+ }
124
+ .firstHeader-module_onlyFirstHeaderBox__C-k3Q {
125
+ height: 64px !important;
126
+ position: sticky;
127
+ top: 0;
128
+ z-index: 999;
129
+ }
130
+ .firstHeader-module_lightHeadBox__54aA7 {
131
+ background: transparent;
132
+ }
133
+ .firstHeader-module_lightHeadBox__54aA7 .firstHeader-module_loginBtn__j16aQ {
134
+ border-radius: 2px;
135
+ border: 1px solid var(--Brand1-6, #1b3882) !important;
136
+ color: var(--Brand1-6, #1b3882) !important;
137
+ font-size: 14px;
138
+ font-style: normal;
139
+ font-weight: 400;
140
+ line-height: 24px;
141
+ /* 171.429% */
142
+ padding: 4px 16px;
143
+ }
144
+ .firstHeader-module_lightHeadBox__54aA7 .firstHeader-module_loginBtn__j16aQ .firstHeader-module_active__wapX5,
145
+ .firstHeader-module_lightHeadBox__54aA7 .firstHeader-module_loginBtn__j16aQ:hover {
146
+ border-radius: 2px;
147
+ border: 1px solid var(--Brand1-5, #36569b) !important;
148
+ background: var(--fill-2, #f4f5f9) !important;
149
+ }
150
+ .firstHeader-module_lightMiniWeb__xAj6X {
151
+ background-color: #fff !important;
152
+ border-bottom: 1px solid var(----line-3, #d7d8dd);
153
+ }
154
+ .firstHeader-module_lightMiniWeb__xAj6X .firstHeader-module_loginBtn__j16aQ {
155
+ border-radius: 2px;
156
+ border: 1px solid var(--Brand1-6, #1b3882) !important;
157
+ color: var(--Brand1-6, #1b3882) !important;
158
+ font-size: 14px;
159
+ font-style: normal;
160
+ font-weight: 400;
161
+ line-height: 24px;
162
+ /* 171.429% */
163
+ padding: 4px 16px;
164
+ }
165
+ .firstHeader-module_lightMiniWeb__xAj6X .firstHeader-module_loginBtn__j16aQ .firstHeader-module_active__wapX5,
166
+ .firstHeader-module_lightMiniWeb__xAj6X .firstHeader-module_loginBtn__j16aQ:hover {
167
+ border-radius: 2px;
168
+ border: 1px solid var(--Brand1-5, #36569b) !important;
169
+ background: var(--fill-2, #f4f5f9) !important;
170
+ }
171
+ .firstHeader-module_miniWeb__WKbf1 {
172
+ background-color: transparent;
173
+ }
174
+ .firstHeader-module_userWrapper__tPSXF {
175
+ height: 32px;
176
+ display: flex;
177
+ }
178
+ .firstHeader-module_userWrapper__tPSXF .firstHeader-module_loginBtn__j16aQ {
179
+ border-radius: 2px;
180
+ border: 1px solid var(---fill-0, #fff);
181
+ background: rgba(255, 255, 255, 0.15);
182
+ color: var(---fill-0, #fff);
183
+ font-size: 14px;
184
+ font-style: normal;
185
+ font-weight: 400;
186
+ line-height: 24px;
187
+ /* 171.429% */
188
+ padding: 4px 16px;
189
+ }
190
+ .firstHeader-module_userWrapper__tPSXF .firstHeader-module_loginBtn__j16aQ .firstHeader-module_active__wapX5,
191
+ .firstHeader-module_userWrapper__tPSXF .firstHeader-module_loginBtn__j16aQ:hover {
192
+ cursor: pointer;
193
+ border-radius: 2px;
194
+ border: 1px solid var(---fill-0, #fff);
195
+ background: rgba(255, 255, 255, 0.2);
196
+ }
197
+ .firstHeader-module_userWrapper__tPSXF .firstHeader-module_avatar__kEK-Q {
198
+ line-height: 32px;
199
+ height: 32px;
200
+ font-size: 24px;
201
+ text-align: center;
202
+ }
203
+ .firstHeader-module_collaboration__8cU7r {
204
+ width: 144px;
205
+ display: inline-block;
206
+ }
207
+ @keyframes firstHeader-module_appear__-4PeY {
208
+ 0% {
209
+ opacity: 0;
210
+ transform: translateY(-64px);
211
+ }
212
+ 100% {
213
+ opacity: 1;
214
+ transform: translateY(0);
215
+ }
216
+ }
217
+ @keyframes firstHeader-module_disappear__PAK2P {
218
+ 0% {
219
+ opacity: 1;
220
+ transform: translateY(0px);
221
+ }
222
+ 100% {
223
+ opacity: 0;
224
+ transform: translateY(-64px);
225
+ }
226
+ }
227
+ .firstHeader-module_customDropdown__DXqrC .ant-dropdown-menu {
228
+ border-radius: 2px;
229
+ background: rgba(255, 255, 255, 0.06);
230
+ backdrop-filter: blur(5px);
231
+ padding: 4px 0px;
232
+ }
233
+ .firstHeader-module_customDropdown__DXqrC .ant-dropdown-menu-item {
234
+ height: 24px;
235
+ padding: 8px 20px 8px 24px !important;
236
+ display: flex;
237
+ align-items: center;
238
+ justify-content: flex-start;
239
+ }
240
+ .firstHeader-module_customDropdown__DXqrC .ant-dropdown-menu-item:hover {
241
+ background: rgba(255, 255, 255, 0.2) !important;
242
+ }
243
+ .firstHeader-module_customDropdown__DXqrC .ant-dropdown-menu-title-content {
244
+ color: var(---fill-0, #fff);
245
+ font-feature-settings: 'liga' off, 'clig' off;
246
+ /* \u6BB5\u843D\u6B63\u6587/\u5E38\u89C4 */
247
+ font-family: 'PingFang SC';
248
+ font-size: 14px;
249
+ font-style: normal;
250
+ font-weight: 400;
251
+ line-height: 24px;
252
+ /* 171.429% */
253
+ }
254
+ .firstHeader-module_whiteCustomDropdown__-clCl {
255
+ z-index: 10000;
256
+ }
257
+ .firstHeader-module_whiteCustomDropdown__-clCl .ant-dropdown-menu {
258
+ border-radius: 2px;
259
+ background: #fff;
260
+ /* \u6295\u5F71/\u6B21\u6295\u5F71 */
261
+ box-shadow: 0px 2px 10px 0px rgba(18, 19, 22, 0.1);
262
+ padding: 4px 0px;
263
+ }
264
+ .firstHeader-module_whiteCustomDropdown__-clCl .ant-dropdown-menu-item {
265
+ height: 24px;
266
+ padding: 8px 20px 8px 24px !important;
267
+ display: flex;
268
+ align-items: center;
269
+ justify-content: flex-start;
270
+ }
271
+ .firstHeader-module_whiteCustomDropdown__-clCl .ant-dropdown-menu-item:hover {
272
+ background: var(--fill-2, #f4f5f9) !important;
273
+ }
274
+ .firstHeader-module_whiteCustomDropdown__-clCl .ant-dropdown-menu-item:hover .ant-dropdown-menu-title-content {
275
+ color: #36569b !important;
276
+ }
277
+ .firstHeader-module_whiteCustomDropdown__-clCl .ant-dropdown-menu-title-content {
278
+ color: var(--100-text-5, #121316);
279
+ font-feature-settings: 'liga' off, 'clig' off;
280
+ /* \u6BB5\u843D\u6B63\u6587/\u5E38\u89C4 */
281
+ font-family: 'PingFang SC';
282
+ font-size: 14px;
283
+ font-style: normal;
284
+ font-weight: 400;
285
+ line-height: 24px;
286
+ /* 171.429% */
287
+ }
288
+ .firstHeader-module_userInfoDropdown__lhNV2 {
289
+ z-index: 10000 !important;
290
+ }
291
+ @media screen and (max-width: 1439px) {
292
+ .firstHeader-module_enHeader__xyOyE .firstHeader-module_rightBox__9V7Ir {
293
+ gap: 0px;
294
+ }
295
+ .firstHeader-module_enHeader__xyOyE .firstHeader-module_rightBox__9V7Ir .firstHeader-module_firstMenuItem__mtc1k:nth-child(-n+5) {
296
+ margin-right: 30px;
297
+ }
298
+ .firstHeader-module_enHeader__xyOyE .firstHeader-module_rightBox__9V7Ir .firstHeader-module_firstMenuItem__mtc1k:nth-child(6) {
299
+ margin-right: 8px;
300
+ }
301
+ .firstHeader-module_enHeader__xyOyE .firstHeader-module_rightBox__9V7Ir .firstHeader-module_lang__0QHnx {
302
+ margin-right: 8px;
303
+ }
304
+ }
305
+ `,n={firstHeader:"firstHeader-module_firstHeader__L3Yly",logo:"firstHeader-module_logo__r1F7S",lang:"firstHeader-module_lang__0QHnx",rightBox:"firstHeader-module_rightBox__9V7Ir",firstMenuItem:"firstHeader-module_firstMenuItem__mtc1k",activeMenu:"firstHeader-module_activeMenu__he8Lb",lightHeader:"firstHeader-module_lightHeader__3XdWF",blueBackHeaderBox:"firstHeader-module_blueBackHeaderBox__MuAHr",lightBackHeader:"firstHeader-module_lightBackHeader__DusJi",blackMiniWeb:"firstHeader-module_blackMiniWeb__q2Qq5",animateHide:"firstHeader-module_animateHide__Zu85W",animateShow:"firstHeader-module_animateShow__Nk-zI",headerBox:"firstHeader-module_headerBox__oDPHm",transparentWeb:"firstHeader-module_transparentWeb__bRqGL",onlyFirstHeaderBox:"firstHeader-module_onlyFirstHeaderBox__C-k3Q",lightHeadBox:"firstHeader-module_lightHeadBox__54aA7",loginBtn:"firstHeader-module_loginBtn__j16aQ",active:"firstHeader-module_active__wapX5",lightMiniWeb:"firstHeader-module_lightMiniWeb__xAj6X",miniWeb:"firstHeader-module_miniWeb__WKbf1",userWrapper:"firstHeader-module_userWrapper__tPSXF",avatar:"firstHeader-module_avatar__kEK-Q",collaboration:"firstHeader-module_collaboration__8cU7r",customDropdown:"firstHeader-module_customDropdown__DXqrC",whiteCustomDropdown:"firstHeader-module_whiteCustomDropdown__-clCl",userInfoDropdown:"firstHeader-module_userInfoDropdown__lhNV2",enHeader:"firstHeader-module_enHeader__xyOyE",appear:"firstHeader-module_appear__-4PeY",disappear:"firstHeader-module_disappear__PAK2P"};e(r);export{n as default};