/*! For license information please see __federation_expose_Language.c136abee.chunk.js.LICENSE.txt */
(self.webpackChunk_components_admin_1_1_41=self.webpackChunk_components_admin_1_1_41||[]).push([[579,1854,2960,5817],{35795(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>g});var n=r(5544),l=r(80045);const o="style_language__jjP0+__iP5qK",a="style_is-colorful__DC7fI__iP5qK",i="style_icon__pQadO__iP5qK",s="style_item__uDOaw__iP5qK",u="style_is-active__dYoEr__iP5qK";var c=r(24934),_=r(34070),f=r(40147),p=r(75496),d=r(98139),y=r.n(d),v=r(70579);const m=["remoteModules","className","list","colorful"],g=(0,c.createWithRemoteLoader)({modules:["components-core:Icon"]})(e=>{let t=e.remoteModules,r=e.className,c=e.list,d=void 0===c?[{label:"\u4e2d\u6587",value:"zh-CN"},{label:"EN",value:"en-US"}]:c,g=e.colorful,h=void 0===g||g,x=(0,l.A)(e,m);const j=(0,_.default)(Object.assign({},{defaultLocale:"zh-CN"},x),{defaultValue:"defaultLocale",value:"locale",onChange:"onChange"}),b=(0,n.A)(j,2),O=b[0],C=b[1],k=(0,n.A)(t,1)[0],P=d.findIndex(e=>e.value===O),S=d.slice(0,2);P>S.length-1&&(S[S.length-1]=d[P]);const N=d.filter((e,t)=>-1===S.indexOf(e));return(0,v.jsxs)("div",{className:y()(r,"language",o,{"is-colorful":h,[a]:h}),onClick:e=>{e.stopPropagation()},children:[(0,v.jsx)(k,{className:y()(i,"language-icon"),type:"icon-yuyanqiehuan"}),(0,v.jsx)(f.Space,{split:(0,v.jsx)(f.Divider,{type:"vertical"}),size:0,children:S.slice(0,2).map(e=>{let t=e.label,r=e.value;return(0,v.jsx)(f.Button,{type:"text",className:y()("btn-no-padding",s,"language-item",{[u]:r===O,"is-active":r===O}),onClick:()=>{C(r)},children:t},r)})}),N.length>0&&(0,v.jsx)(f.Dropdown,{menu:{items:N.map(e=>{let t=e.label,r=e.value;return{label:t,key:r,onClick:()=>{C(r)}}})},children:(0,v.jsx)(f.Button,{size:"small",type:"text",icon:(0,v.jsx)(p.CaretDownOutlined,{})})})]})})},51153(e,t,r){"use strict";var n=r(13732),l=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var n,o={},u=null,c=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,n)&&!s.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:l,type:e,key:u,ref:c,props:o,_owner:i.current}}t.Fragment=o,t.jsx=u,t.jsxs=u},70579(e,t,r){"use strict";e.exports=r(51153)},98139(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function l(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,o(r)))}return e}function o(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return l.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=a(t,r));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(l.default=l,e.exports=l):void 0===(r=function(){return l}.apply(t,[]))||(e.exports=r)}()}}]);
//# sourceMappingURL=__federation_expose_Language.c136abee.chunk.js.map