You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__AIgc__index.16063e72.asy...

2 lines
13 KiB

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[953],{79733:function(){},8222:function(ze,F,l){l.r(F),l.d(F,{default:function(){return pe}});var i=l(59301),ee=l(65582),Ae=l(79733),z={flexitem:"flexitem___fug1d",leftimg:"leftimg___ugMly",rightcoent:"rightcoent___D4BPl",rightcoenttitle:"rightcoenttitle___g2HfC",rightcent:"rightcent____vXkF",from:"from___uZ0Lb"},te=l(6848),ne=l(92310),A=l.n(ne),G=l(54476),D=l(42978),ae=l(75931),P=l(20068),Z=l(33885),Y=l(76190),ie=l(18929),W=l(8654),le=l(2738),oe=l(77900),re=l(34280),U=function(t){return t?{left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth}:null},p=function(t){return t!==void 0?"".concat(t,"px"):void 0};function se(e){var t=e.prefixCls,n=e.containerRef,a=e.value,o=e.getValueIndex,r=e.motionName,f=e.onMotionStart,v=e.onMotionEnd,u=e.direction,s=i.useRef(null),E=i.useState(a),b=(0,D.Z)(E,2),g=b[0],M=b[1],I=function(C){var d,j=o(C),S=(d=n.current)===null||d===void 0?void 0:d.querySelectorAll(".".concat(t,"-item"))[j];return(S==null?void 0:S.offsetParent)&&S},$=i.useState(null),T=(0,D.Z)($,2),c=T[0],O=T[1],L=i.useState(null),y=(0,D.Z)(L,2),m=y[0],x=y[1];(0,re.Z)(function(){if(g!==a){var h=I(g),C=I(a),d=U(h),j=U(C);M(a),O(d),x(j),h&&C?f():v()}},[a]);var R=i.useMemo(function(){return p(u==="rtl"?-(c==null?void 0:c.right):c==null?void 0:c.left)},[u,c]),V=i.useMemo(function(){return p(u==="rtl"?-(m==null?void 0:m.right):m==null?void 0:m.left)},[u,m]),w=function(){return{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},B=function(){return{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},H=function(){O(null),x(null),v()};return!c||!m?null:i.createElement(oe.default,{visible:!0,motionName:r,motionAppear:!0,onAppearStart:w,onAppearActive:B,onVisibleChanged:H},function(h,C){var d=h.className,j=h.style,S=(0,Z.Z)((0,Z.Z)({},j),{},{"--thumb-start-left":R,"--thumb-start-width":p(c==null?void 0:c.width),"--thumb-active-left":V,"--thumb-active-width":p(m==null?void 0:m.width)}),Oe={ref:(0,W.sQ)(s,C),style:S,className:A()("".concat(t,"-thumb"),d)};return i.createElement("div",Oe)})}var de=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"];function ue(e){if(typeof e.title!="undefined")return e.title;if((0,Y.Z)(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function ce(e){return e.map(function(t){if((0,Y.Z)(t)==="object"&&t!==null){var n=ue(t);return(0,Z.Z)((0,Z.Z)({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var me=function(t){var n=t.prefixCls,a=t.className,o=t.disabled,r=t.checked,f=t.label,v=t.title,u=t.value,s=t.onChange,E=function(g){o||s(g,u)};return i.createElement("label",{className:A()(a,(0,P.Z)({},"".concat(n,"-item-disabled"),o))},i.createElement("input",{className:"".concat(n,"-item-input"),type:"radio",disabled:o,checked:r,onChange:E}),i.createElement("div",{className:"".concat(n,"-item-label"),title:v},f))},Q=i.forwardRef(function(e,t){var n,a,o=e.prefixCls,r=o===void 0?"rc-segmented":o,f=e.direction,v=e.options,u=e.disabled,s=e.defaultValue,E=e.value,b=e.onChange,g=e.className,M=g===void 0?"":g,I=e.motionName,$=I===void 0?"thumb-motion":I,T=(0,ae.Z)(e,de),c=i.useRef(null),O=i.useMemo(function(){return(0,W.sQ)(c,t)},[c,t]),L=i.useMemo(function(){return ce(v)},[v]),y=(0,ie.Z)((n=L[0])===null||n===void 0?void 0:n.value,{value:E,defaultValue:s}),m=(0,D.Z)(y,2),x=m[0],R=m[1],V=i.useState(!1),w=(0,D.Z)(V,2),B=w[0],H=w[1],h=function(j,S){u||(R(S),b==null||b(S))},C=(0,le.Z)(T,["children"]);return i.createElement("div",(0,G.Z)({},C,{className:A()(r,(a={},(0,P.Z)(a,"".concat(r,"-rtl"),f==="rtl"),(0,P.Z)(a,"".concat(r,"-disabled"),u),a),M),ref:O}),i.createElement("div",{className:"".concat(r,"-group")},i.createElement(se,{prefixCls:r,value:x,containerRef:c,motionName:"".concat(r,"-").concat($),direction:f,getValueIndex:function(j){return L.findIndex(function(S){return S.value===j})},onMotionStart:function(){H(!0)},onMotionEnd:function(){H(!1)}}),L.map(function(d){return i.createElement(me,(0,G.Z)({},d,{key:d.value,prefixCls:r,className:A()(d.className,"".concat(r,"-item"),(0,P.Z)({},"".concat(r,"-item-selected"),d.value===x&&!B)),checked:d.value===x,onChange:h,disabled:!!u||!!d.disabled}))})))});Q.displayName="Segmented",Q.defaultProps={options:[]};var ge=Q,ve=l(36355),fe=l(19716),X=l(17313),Me=l(83116),he=l(37613);function J(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function K(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const Se=Object.assign({overflow:"hidden"},X.vS),Ne=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,X.Wf)(e)),{display:"inline-block",padding:e.segmentedPadding,color:e.itemColor,backgroundColor:e.segmentedBgColor,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,"&-selected":Object.assign(Object.assign({},K(e)),{color:e.itemSelectedColor}),"&::after":{content:'""',position:"absolute",width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:e.controlHeight-e.segmentedPadding*2,lineHeight:`${e.controlHeight-e.segmentedPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontal}px`},Se),"&-icon + *":{marginInlineStart:e.marginSM/2},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},K(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${e.paddingXXS}px 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:e.controlHeightLG-e.segmentedPadding*2,lineHeight:`${e.controlHeightLG-e.segmentedPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontal}px`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:e.controlHeightSM-e.segmentedPadding*2,lineHeight:`${e.controlHeightSM-e.segmentedPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontalSM}px`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),J(`&-disabled ${t}-item`,e)),J(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}};var be=(0,Me.Z)("Segmented",e=>{const{lineWidth:t,lineWidthBold:n,colorBgLayout:a}=e,o=(0,he.TS)(e,{segmentedPadding:n,segmentedBgColor:a,segmentedPaddingHorizontal:e.controlPaddingHorizontal-t,segmentedPaddingHorizontalSM:e.controlPaddingHorizontalSM-t});return[Ne(o)]},e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:a,colorBgElevated:o,colorFill:r}=e;return{itemColor:t,itemHoverColor:n,itemHoverBg:a,itemSelectedBg:o,itemActiveBg:r,itemSelectedColor:n}}),q=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]]);return n};function ye(e){return typeof e=="object"&&!!(e!=null&&e.icon)}var xe=i.forwardRef((e,t)=>{const{prefixCls:n,className:a,rootClassName:o,block:r,options:f=[],size:v="middle",style:u}=e,s=q(e,["prefixCls","className","rootClassName","block","options","size","style"]),{getPrefixCls:E,direction:b,segmented:g}=i.useContext(ve.E_),M=E("segmented",n),[I,$]=be(M),T=(0,fe.Z)(v),c=i.useMemo(()=>f.map(y=>{if(ye(y)){const{icon:m,label:x}=y,R=q(y,["icon","label"]);return Object.assign(Object.assign({},R),{label:i.createElement(i.Fragment,null,i.createElement("span",{className:`${M}-item-icon`},m),x&&i.createElement("span",null,x))})}return y}),[f,M]),O=A()(a,o,g==null?void 0:g.className,{[`${M}-block`]:r,[`${M}-sm`]:T==="small",[`${M}-lg`]:T==="large"},$),L=Object.assign(Object.assign({},g==null?void 0:g.style),u);return I(i.createElement(ge,Object.assign({},s,{className:O,style:L,options:c,ref:t,prefixCls:M,direction:b})))}),Ce=Object.defineProperty,k=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,_=(e,t,n)=>t in e?Ce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ie=(e,t)=>{for(var n in t||(t={}))je.call(t,n)&&_(e,n,t[n]);if(k)for(var n of k(t))Ee.call(t,n)&&_(e,n,t[n]);return e};const $e=e=>React.createElement("svg",Ie({width:40,height:37,xmlns:"http://www.w3.org/2000/svg"},e),React.createElement("title",null,"AI\u8F85\u5BFC"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("path",{d:"M18.18 26.066c0-4.623 2.754-8.598 6.708-10.38.397-.575.544-1.27.617-1.947a1.783 1.783 0 0 0-.712-1.61c.643-1.994 1.088-4.1.859-6.194-.134-1.243-.605-2.52-1.61-3.384-.69-.6-1.615-.91-2.534-1.04-.224-.315-.51-.6-.859-.794-.945-.544-2.089-.682-3.18-.704-1.93.026-3.963.332-5.556 1.42a5.558 5.558 0 0 0-1.852 2.093c-.518 1.01-.738 2.141-.79 3.255-.077 1.804.264 3.595.73 5.343a1.768 1.768 0 0 0-.721 1.516c.039.57.16 1.148.401 1.674.216.484.64.924 1.209 1.015.147.992.57 1.925 1.01 2.84.553 1.156 1.502 1.597 2.011 1.713v1.74c-.397 1.057-8.093 3.237-10.186 4.454-.91.548-1.774 1.191-2.413 2.012C.505 30.119.095 33.382 0 34.725v.077h22.263a11.36 11.36 0 0 1-4.083-8.736Z",fill:"#75E7FF",fillRule:"nonzero"}),React.createElement("circle",{fill:"#145DFF",cx:28.729,cy:25.635,r:11.271}),React.createElement("path",{d:"m23.79 31.16.995-2.77h4.574l.994 2.77h1.912L28.09 20.11h-2.034l-4.177 11.05h1.913Zm4.94-4.199h-3.537l1.745-4.862H27l1.73 4.862Zm6.408 4.2V20.11H33.37v11.05h1.768Z",fill:"#FFF",fillRule:"nonzero"})));var Te="data:image/svg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lPSJub256ZXJvIi8+PGNpcmNsZSBmaWxsPSIjMTQ1REZGIiBjeD0iMjguNzI5IiBjeT0iMjUuNjM1IiByPSIxMS4yNzEiLz48cGF0aCBkPSJtMjMuNzkgMzEuMTYuOTk1LTIuNzdoNC41NzRsLjk5NCAyLjc3aDEuOTEyTDI4LjA5IDIwLjExaC0yLjAzNGwtNC4xNzcgMTEuMDVoMS45MTNabTQuOTQtNC4xOTloLTMuNTM3bDEuNzQ1LTQuODYySDI3bDEuNzMgNC44NjJabTYuNDA4IDQuMlYyMC4xMUgzMy4zN3YxMS4wNWgxLjc2OFoiIGZpbGw9IiNGRkYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvZz48L3N2Zz4=",N=l(59301);const Le=({globalSetting:e})=>{var t,n,a,o;const[r,f]=(0,i.useState)("\u4E13\u5C5E\u667A\u80FD\u4F53"),v=u=>u==null?void 0:u.map(s=>N.createElement("div",{onClick:()=>{window.open(s==null?void 0:s.url)},className:z.flexitem},N.createElement("img",{className:z.leftimg,src:(s==null?void 0:s.icon)||Te}),N.createElement("div",{className:z.rightcoent},N.createElement("div",{className:z.rightcoenttitle},s==null?void 0:s.name),N.createElement(te.Z,{title:s==null?void 0:s.connect,placement:"top",overlayInnerStyle:{maxWidth:260}},N.createElement("div",{className:z.rightcent},s==null?void 0:s.connect)))));return N.createElement("section",{style:{width:1200,margin:"0 auto"}},N.createElement(xe,{options:["\u4E13\u5C5E\u667A\u80FD\u4F53","AIGC\u591A\u6A21\u6001\u5E94\u7528"],style:{marginTop:20},size:"large",value:r,onChange:u=>{f(u)}}),r==="\u4E13\u5C5E\u667A\u80FD\u4F53"&&N.createElement("div",{style:{display:"flex",flexWrap:"wrap",gap:16,marginTop:20}},v(((n=(t=e==null?void 0:e.setting)==null?void 0:t.application_list)==null?void 0:n.agents)||[{name:"123",connect:"456"}])),r==="AIGC\u591A\u6A21\u6001\u5E94\u7528"&&N.createElement("div",{style:{display:"flex",flexWrap:"wrap",gap:16,marginTop:20}},v(((o=(a=e==null?void 0:e.setting)==null?void 0:a.application_list)==null?void 0:o.aigcapps)||[{name:"123",connect:"456"}])))};var pe=(0,ee.connect)(({classroomList:e,loading:t,globalSetting:n})=>({classroomList:e,globalSetting:n,loading:t.models.classroomList}))(Le)}}]);