@ttmg/cli 0.3.7 → 0.3.8-beta.2

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 (44) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/package.json +1 -1
  3. package/dist/public/assets/Detail-DS6U5mRS.js +1 -0
  4. package/dist/public/assets/Detail-DS6U5mRS.js.br +0 -0
  5. package/dist/public/assets/{MonetizationMode-gxP1CQqy.js → MonetizationMode-C8WTPdaL.js} +1 -1
  6. package/dist/public/assets/{MonetizationModeSummary-CD54_ROf.js → MonetizationModeSummary-BS7EmGz7.js} +1 -1
  7. package/dist/public/assets/{baseForm-d3x5z6BS.js → baseForm-Dj23Zmdr.js} +1 -1
  8. package/dist/public/assets/baseForm-Dj23Zmdr.js.br +0 -0
  9. package/dist/public/assets/{index-Bz8ZWlHc.js → index-BOpd1gIe.js} +1 -1
  10. package/dist/public/assets/{index-07cXGo3a.js → index-BVIWa0s0.js} +3 -3
  11. package/dist/public/assets/index-BVIWa0s0.js.br +0 -0
  12. package/dist/public/assets/{index-E142v_RY.js → index-BY1PUmxY.js} +1 -1
  13. package/dist/public/assets/index-BY1PUmxY.js.br +0 -0
  14. package/dist/public/assets/{index-CQR5bkkv.js → index-C6Obic7Y.js} +1 -1
  15. package/dist/public/assets/{index-CYD_pNmH.js → index-C6fJhGVf.js} +1 -1
  16. package/dist/public/assets/{index-utYbqRWL.js → index-C898tUMR.js} +1 -1
  17. package/dist/public/assets/index-C898tUMR.js.br +0 -0
  18. package/dist/public/assets/{index-C0Izps-u.js → index-C8Mc6d6E.js} +1 -1
  19. package/dist/public/assets/{index-Cr55HKuS.js → index-CCoPaW9N.js} +1 -1
  20. package/dist/public/assets/{index-766JxwXs.js → index-Ca4ZdkdC.js} +1 -1
  21. package/dist/public/assets/index-Ca4ZdkdC.js.br +0 -0
  22. package/dist/public/assets/{index-Ba-my-vz.js → index-Co_mqsxn.js} +1 -1
  23. package/dist/public/assets/{index-BNtIdKnQ.js → index-DZTvsbCe.js} +1 -1
  24. package/dist/public/assets/{index-B7M-KACw.js → index-D_Y0HD2X.js} +1 -1
  25. package/dist/public/assets/{index-BBHUSsVA.js → index-TXPH6UQv.js} +1 -1
  26. package/dist/public/assets/index-TXPH6UQv.js.br +0 -0
  27. package/dist/public/assets/{index-C4Lcagww.js → index-UZ08kMPF.js} +1 -1
  28. package/dist/public/assets/{index-CLDvvBgM.js → index-oYIBlQRY.js} +1 -1
  29. package/dist/public/assets/{index-BZOItUfZ.js → index-sGtn40-w.js} +1 -1
  30. package/dist/public/assets/index-sGtn40-w.js.br +0 -0
  31. package/dist/public/assets/{times-BvsrZcqF.js → times-_NUvbbyU.js} +1 -1
  32. package/dist/public/index.html +1 -1
  33. package/dist/scripts/docs/capture.js +71 -3
  34. package/dist/scripts/docs/render.js +334 -62
  35. package/package.json +1 -1
  36. package/dist/public/assets/Detail-BzyVtzyL.js +0 -1
  37. package/dist/public/assets/Detail-BzyVtzyL.js.br +0 -0
  38. package/dist/public/assets/baseForm-d3x5z6BS.js.br +0 -0
  39. package/dist/public/assets/index-07cXGo3a.js.br +0 -0
  40. package/dist/public/assets/index-766JxwXs.js.br +0 -0
  41. package/dist/public/assets/index-BBHUSsVA.js.br +0 -0
  42. package/dist/public/assets/index-BZOItUfZ.js.br +0 -0
  43. package/dist/public/assets/index-E142v_RY.js.br +0 -0
  44. package/dist/public/assets/index-utYbqRWL.js.br +0 -0
@@ -1 +1 @@
1
- import{K as Te,r as F,h as we,k as ne,_ as W,O as R,U as Ce,R as l,m as oe,V as ye,W as Ne,n as v,X as Ae,q as o,t as E,Y as De,A as ie,b as ae,Z as le,L as Le,s as Pe,j as h,$ as ee,u as je,a0 as Me,i as J}from"./index-07cXGo3a.js";import{_ as Oe,I as re,C as He}from"./times-BvsrZcqF.js";import{D as te}from"./index-Ba-my-vz.js";function Re(u){return F.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},u),F.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2h14a3 3 0 0 1 3 3v14a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V5a3 3 0 0 1 3-3Zm1 2a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H6Z",fill:"currentColor"}))}const ke=Te(Re,"sidebar"),ce="horizontal",de="vertical",K={PREFIX:`${we}-navigation`},p={MODE:[de,ce],MODE_VERTICAL:de,MODE_HORIZONTAL:ce,ICON_POS_LEFT:"left",ICON_POS_RIGHT:"right",TOGGLE_ICON_LEFT:"left",TOGGLE_ICON_RIGHT:"right"},V={DEFAULT_SUBNAV_MAX_HEIGHT:999,DEFAULT_TOOLTIP_SHOW_DELAY:0,DEFAULT_TOOLTIP_HIDE_DELAY:100,DEFAULT_SUBNAV_OPEN_DELAY:0,DEFAULT_SUBNAV_CLOSE_DELAY:100},pe={open:"chevron_up",closed:"chevron_down"};let Ve=class se{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(t==null||typeof t!="object")&&(t={text:t,itemKey:t,maxHeight:V.DEFAULT_SUBNAV_MAX_HEIGHT,link:null,items:null,icon:"",indent:!1});for(const e of Object.keys(t))this[e]=t[e];t.items&&Array.isArray(t.items)&&t.items.length?(this.items=t.items.map(e=>new se(e)),"toggleIcon"in t?this.toggleIcon=se.isValidToggleIcon(t.toggleIcon)?Object.assign({},t.toggleIcon):Object.assign({},pe):this.toggleIcon=Object.assign({},pe)):this.items=null}static isValidToggleIcon(t){return!!(t&&typeof t=="object"&&typeof t.open=="string"&&t.open.length&&typeof t.closed=="string"&&t.closed.length)}};class $ extends ne{constructor(t){super(Object.assign({},t))}static getZeroParentKeys(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const e=[];for(var n=arguments.length,s=new Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];if(s.length){for(const i of s)if(Array.isArray(t[i])&&t[i].length){const r=t[i][0];R(r)||e.push(r)}}return e}static buildItemKeysMap(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"itemKey";var a;if(Array.isArray(t)&&t.length)for(const i of t)if(Array.isArray(i))$.buildItemKeysMap(i,e,[...n],s);else{let r;if(i&&typeof i=="object"&&(r=i[s]||i.props&&i.props[s]),r){e[r]=[...n];const c=(a=i.props)===null||a===void 0?void 0:a.children;if(Array.isArray(i.items)&&i.items.length)$.buildItemKeysMap(i.items,e,[...n,r],s);else if(c){const d=Array.isArray(c)?c:[c];$.buildItemKeysMap(d,e,[...n,r],s)}}}return e}init(t){const{defaultSelectedKeys:e,selectedKeys:n}=this.getProps();let s=n||e||[];const{itemKeysMap:a,willOpenKeys:i,formattedItems:r}=this.getCalcState(),c=this.selectLevelZeroParentKeys(a,s);if(s=s.concat(c),t==="constructor")return{selectedKeys:s,itemKeysMap:a,openKeys:i,items:r};this._adapter.updateSelectedKeys(s,!1),this._adapter.setItemKeysMap(a),this._adapter.updateOpenKeys(i),this._adapter.updateItems(r),this._adapter.setItemsChanged(!0)}getCalcState(){const{itemKeysMap:t,formattedItems:e}=this.getFormattedItems(),n=this.getWillOpenKeys(t);return{itemKeysMap:t,willOpenKeys:n,formattedItems:e}}getFormattedItems(){const{items:t,children:e}=this.getProps(),n=this.formatItems(t),s=Array.isArray(t)&&t.length?n:e;return{itemKeysMap:$.buildItemKeysMap(s),formattedItems:n}}getWillOpenKeys(t){const{defaultOpenKeys:e,openKeys:n,defaultSelectedKeys:s,selectedKeys:a,mode:i}=this.getProps(),{openKeys:r=[]}=this.getStates();let c=n||e||[];if(!(Array.isArray(e)||Array.isArray(n))&&i===p.MODE_VERTICAL&&(Array.isArray(s)||Array.isArray(a))){const d=Array.isArray(a)?a:s;c=r.concat(this.getShouldOpenKeys(t,d)),c=Array.from(new Set(c))}return[...c]}getShouldOpenKeys(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const n=new Set;return Array.isArray(e)&&e.length&&e.forEach(s=>{if(s){const a=W(t,s);Array.isArray(a)&&a.forEach(i=>n.add(i))}}),[...n]}destroy(){}selectLevelZeroParentKeys(t,e){const n=R(t)?this.getState("itemKeysMap"):t,s=[];if(e.length){for(const a of e)if(Array.isArray(n[a])&&n[a].length){const i=n[a][0];R(i)||s.push(i)}}return s.length?s:[]}formatItems(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const e=[];for(const n of t)e.push(new Ve(n));return e}handleSelect(t){this._adapter.notifySelect(t)}judgeIfOpen(t,e){let n=!1;const s=Array.isArray(t)?t:t&&[t];if(s&&Array.isArray(e)&&e.length){for(const a of e)if(n=s.includes(a.itemKey)||this.judgeIfOpen(s,a.items),n)break}return n}handleCollapseChange(){const t=!this.getState("isCollapsed");this._isControlledComponent("isCollapsed")||this._adapter.setIsCollapsed(t),this._adapter.notifyCollapseChange(t)}handleItemsChange(t){this._adapter.setItemsChanged(t)}}const ue=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const e=new Set(t);for(var n=arguments.length,s=new Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return s.forEach(i=>i&&e.add(i)),Array.from(e)},he=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const e=new Set(t);for(var n=arguments.length,s=new Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return s.forEach(i=>i&&e.delete(i)),Array.from(e)};class $e extends ne{constructor(t){super(Object.assign({},t))}init(){this._timer=null}destroy(){this.clearDelayTimer()}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}isValidKey(t){return t!=null&&(typeof t=="number"||typeof t=="string")}handleDropdownVisibleChange(t){const e=this.getProp("itemKey"),n=this._adapter.getOpenKeysIsControlled(),s=this._adapter.getCanUpdateOpenKeys(),a=this._adapter.getOpenKeys(),i=t?ue(a,e):he(a,e);this.clearDelayTimer(),n||s&&this._adapter.updateOpen(t),this._adapter.notifyGlobalOpenChange({itemKey:e,openKeys:i,isOpen:t})}handleClick(t,e){const{itemKey:n,disabled:s}=this.getProps();if(s)return;const a=e&&e.contains(t.target);let i=!!this._adapter.getIsOpen();a?i=!i:i=!1;const r=i?ue(this._adapter.getOpenKeys(),n):he(this._adapter.getOpenKeys(),n),c={itemKey:n,openKeys:r,isOpen:i,domEvent:t},d=this._adapter.getOpenKeysIsControlled(),m=this._adapter.getCanUpdateOpenKeys();!d&&m&&this._adapter.updateOpen(i),this._adapter.notifyGlobalOpenChange(c),this._adapter.notifyGlobalOnClick(c)}handleKeyPress(t,e){Ce(t)&&this.handleClick(t,e)}}class Fe extends ne{constructor(t){super(Object.assign({},t))}init(){this._timer=null,this._mounted=!0}destroy(){this._mounted=!1}isValidKey(t){return t!=null&&(typeof t=="string"||typeof t=="number")}handleClick(t){const{isSubNav:e,itemKey:n,text:s,disabled:a}=this.getProps();if(a)return;!e&&this.isValidKey(n)&&!this._adapter.getSelectedKeysIsControlled()&&!this._adapter.getSelected()&&this._adapter.updateSelected(!0);const i=[n];if(!e){if(!this._adapter.getSelected()){const r=[this._adapter.cloneDeep(this.getProps())];this._adapter.notifyGlobalOnSelect({itemKey:n,selectedKeys:i,selectedItems:r,domEvent:t})}this._adapter.notifyGlobalOnClick({itemKey:n,text:s,domEvent:t})}this._adapter.notifyClick({itemKey:n,text:s,domEvent:t})}handleKeyPress(t){if(Ce(t)){const{link:e,linkOptions:n}=this.getProps(),s=W(n,"target","_self");this.handleClick(t),typeof e=="string"&&(s==="_blank"?window.open(e):window.location.href=e)}}}const G=l.createContext({isCollapsed:!1,selectedKeys:[],openKeys:[]}),y=`${K.PREFIX}-item`;class U extends oe{constructor(t){super(t),this.setItemRef=e=>{this.props.forwardRef&&this.props.forwardRef(e)},this.wrapTooltip=e=>{const{text:n,tooltipHideDelay:s,tooltipShowDelay:a}=this.props,i=s??this.context.tooltipHideDelay,r=a??this.context.tooltipShowDelay;return l.createElement(ye,{content:n,wrapWhenSpecial:!1,position:"right",trigger:"hover",mouseEnterDelay:r,mouseLeaveDelay:i},e)},this.handleClick=e=>this.foundation.handleClick(e),this.handleKeyPress=e=>this.foundation.handleKeyPress(e),this.state={tooltipShow:!1},this.foundation=new Fe(this.adapter)}_invokeContextFunc(t){if(t&&this.context&&typeof this.context[t]=="function"){for(var e=arguments.length,n=new Array(e>1?e-1:0),s=1;s<e;s++)n[s-1]=arguments[s];return this.context[t](...n)}return null}get adapter(){var t=this;return Object.assign(Object.assign({},super.adapter),{cloneDeep:Ne,updateTooltipShow:e=>this.setState({tooltipShow:e}),updateSelected:e=>this._invokeContextFunc("updateSelectedKeys",[this.props.itemKey]),updateGlobalSelectedKeys:e=>this._invokeContextFunc("updateSelectedKeys",[...e]),getSelectedKeys:()=>this.context&&this.context.selectedKeys,getSelectedKeysIsControlled:()=>this.context&&this.context.selectedKeysIsControlled,notifyGlobalOnSelect:function(){for(var e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return t._invokeContextFunc("onSelect",...n)},notifyGlobalOnClick:function(){for(var e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return t._invokeContextFunc("onClick",...n)},notifyClick:function(){return t.props.onClick(...arguments)},notifyMouseEnter:function(){return t.props.onMouseEnter(...arguments)},notifyMouseLeave:function(){return t.props.onMouseLeave(...arguments)},getIsCollapsed:()=>this.props.isCollapsed||!!(this.context&&this.context.isCollapsed)||!1,getSelected:()=>!!(this.context&&this.context.selectedKeys&&this.context.selectedKeys.includes(this.props.itemKey)),getIsOpen:()=>!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(this.props.itemKey))})}renderIcon(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if(this.props.isSubNav||!t&&this.context.mode===p.MODE_HORIZONTAL)return null;let a="large";e===p.ICON_POS_RIGHT&&(a="default");const i=v(`${y}-icon`,{[`${y}-icon-toggle-${this.context.toggleIconPosition}`]:n,[`${y}-icon-info`]:!n});return l.createElement("i",{className:i,key:s},Ae(t)?l.cloneElement(t,{size:t.props.size||a}):t)}render(){var t;const{text:e,icon:n,toggleIcon:s,className:a,isSubNav:i,style:r,indent:c,onMouseEnter:d,onMouseLeave:m,link:f,linkOptions:S,disabled:b,level:C=0,tabIndex:M}=this.props,{mode:O,isInSubNav:g,prefixCls:I,limitIndent:B}=this.context,_=this.adapter.getIsCollapsed(),A=this.adapter.getSelected();let x=null;const Y=(t=this.props)===null||t===void 0?void 0:t.children;if(!R(Y))x=Y;else{let L=null;if(O===p.MODE_VERTICAL&&!B&&!_){const T=n&&!c?C:C-1;L=Oe(T,Z=>this.renderIcon(null,p.ICON_POS_RIGHT,!1,Z))}x=l.createElement(l.Fragment,null,L,this.context.toggleIconPosition===p.TOGGLE_ICON_LEFT&&this.renderIcon(s,p.ICON_POS_RIGHT,!0,"key-toggle-pos-right"),n||c||g?this.renderIcon(n,p.ICON_POS_LEFT,!1,"key-position-left"):null,R(e)?"":l.createElement("span",{className:`${K.PREFIX}-item-text`},e),this.context.toggleIconPosition===p.TOGGLE_ICON_RIGHT&&this.renderIcon(s,p.ICON_POS_RIGHT,!0,"key-toggle-pos-right"))}typeof f=="string"&&(x=l.createElement("a",Object.assign({className:`${I}-item-link`,href:f,tabIndex:-1},S),x));let D="";if(g&&(_||O===p.MODE_HORIZONTAL)){const L=v({[y]:!0,[`${y}-sub`]:i,[`${y}-selected`]:A,[`${y}-collapsed`]:_,[`${y}-disabled`]:b});D=l.createElement(te.Item,{selected:A,active:A,forwardRef:this.setItemRef,className:L,onClick:this.handleClick,onMouseEnter:d,onMouseLeave:m,disabled:b,onKeyDown:this.handleKeyPress},x)}else{const L=v(`${a||`${y}-normal`}`,{[y]:!0,[`${y}-sub`]:i,[`${y}-selected`]:A&&!i,[`${y}-collapsed`]:_,[`${y}-disabled`]:b,[`${y}-has-link`]:typeof f=="string"}),T={"aria-disabled":b};if(i){const Z=this.adapter.getIsOpen();T["aria-expanded"]=Z}D=l.createElement("li",Object.assign({role:i?null:"menuitem",tabIndex:i?-1:M},T,{style:r,ref:this.setItemRef,className:L,onClick:this.handleClick,onMouseEnter:d,onMouseLeave:m,onKeyPress:this.handleKeyPress},this.getDataAttr(this.props)),x)}return(_&&!g&&!i||_&&i&&b)&&(D=this.wrapTooltip(D)),typeof this.context.renderWrapper=="function"?this.context.renderWrapper({itemElement:D,isSubNav:i,isInSubNav:g,props:this.props}):D}}U.contextType=G;U.propTypes={text:o.oneOfType([o.string,o.node]),itemKey:o.oneOfType([o.string,o.number]),onClick:o.func,onMouseEnter:o.func,onMouseLeave:o.func,icon:o.oneOfType([o.node]),className:o.string,toggleIcon:o.string,style:o.object,forwardRef:o.func,indent:o.oneOfType([o.bool,o.number]),isCollapsed:o.bool,isSubNav:o.bool,link:o.string,linkOptions:o.object,disabled:o.bool,tabIndex:o.number};U.defaultProps={isSubNav:!1,indent:!1,forwardRef:E,isCollapsed:!1,onClick:E,onMouseEnter:E,onMouseLeave:E,disabled:!1,tabIndex:0};class z extends oe{constructor(t){super(t),this.setItemRef=e=>{e&&e.current?this.itemRef=e:this.itemRef={current:e}},this.setTitleRef=e=>{e&&e.current?this.titleRef=e:this.titleRef={current:e}},this.handleClick=e=>{this.foundation.handleClick(e&&e.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleKeyPress=e=>{this.foundation.handleKeyPress(e&&e.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleDropdownVisible=e=>this.foundation.handleDropdownVisibleChange(e),this.state={isHovered:!1},this.adapter.setCache("firstMounted",!0),this.titleRef=l.createRef(),this.itemRef=l.createRef(),this.foundation=new $e(this.adapter)}_invokeContextFunc(t){if(t&&this.context&&typeof this.context[t]=="function"){for(var e=arguments.length,n=new Array(e>1?e-1:0),s=1;s<e;s++)n[s-1]=arguments[s];return this.context[t](...n)}return null}get adapter(){var t=this;return Object.assign(Object.assign({},super.adapter),{updateIsHovered:e=>this.setState({isHovered:e}),getOpenKeys:()=>this.context&&this.context.openKeys,getOpenKeysIsControlled:()=>this.context&&this.context.openKeysIsControlled,getCanUpdateOpenKeys:()=>this.context&&this.context.canUpdateOpenKeys,updateOpen:e=>this._invokeContextFunc(e?"addOpenKeys":"removeOpenKeys",this.props.itemKey),notifyGlobalOpenChange:function(){for(var e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return t._invokeContextFunc("onOpenChange",...n)},notifyGlobalOnSelect:function(){for(var e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return t._invokeContextFunc("onSelect",...n)},notifyGlobalOnClick:function(){for(var e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return t._invokeContextFunc("onClick",...n)},getIsSelected:e=>!!(!R(e)&&W(this.context,"selectedKeys",[]).includes(String(e))),getIsOpen:()=>{const{itemKey:e}=this.props;return!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(this.props.itemKey))}})}renderIcon(t,e,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const{prefixCls:i}=this.context;let r="large";e===p.ICON_POS_RIGHT&&(r="default");const c=v(`${i}-item-icon`,{[`${i}-item-icon-toggle-${this.context.toggleIconPosition}`]:s,[`${i}-item-icon-info`]:!s}),d=this.adapter.getIsOpen(),m=l.isValidElement(t)?n?l.createElement(De,{animationState:d?"enter":"leave",startClassName:`${K.PREFIX}-icon-rotate-${d?"180":"0"}`},f=>{let{animationClassName:S}=f;return l.cloneElement(t,{size:r,className:S})}):l.cloneElement(t,{size:r}):null;return l.createElement("i",{key:a,className:c},m)}renderTitleDiv(){const{text:t,icon:e,itemKey:n,indent:s,disabled:a,level:i,expandIcon:r}=this.props,{mode:c,isInSubNav:d,isCollapsed:m,prefixCls:f,subNavMotion:S,limitIndent:b}=this.context,C=this.adapter.getIsOpen(),M=v(`${f}-sub-title`,{[`${f}-sub-title-selected`]:this.adapter.getIsSelected(n),[`${f}-sub-title-disabled`]:a});let O=!1,g="";m?d?g=l.createElement(re,null):g=null:c===p.MODE_HORIZONTAL?d?g=l.createElement(re,{"aria-hidden":!0}):g=r||l.createElement(ie,{"aria-hidden":!0}):(S&&(O=!0),g=r||l.createElement(ie,{"aria-hidden":!0}));let I=null;if(c===p.MODE_VERTICAL&&!b&&!m){const A=e&&!s?i:i-1;I=Oe(A,x=>this.renderIcon(null,p.ICON_POS_RIGHT,!1,!1,x))}const B=!m&&d&&c===p.MODE_HORIZONTAL||m&&d;return l.createElement("div",{role:"menuitem",tabIndex:B?-1:0,ref:this.setTitleRef,className:M,onClick:this.handleClick,onKeyPress:this.handleKeyPress,"aria-expanded":C?"true":"false"},l.createElement("div",{className:`${f}-item-inner`},I,this.context.toggleIconPosition===p.TOGGLE_ICON_LEFT&&this.renderIcon(g,p.ICON_POS_RIGHT,O,!0,"key-toggle-position-left"),e||s||d&&c!==p.MODE_HORIZONTAL?this.renderIcon(e,p.ICON_POS_LEFT,!1,!1,"key-inSubNav-position-left"):null,l.createElement("span",{className:`${f}-item-text`},t),this.context.toggleIconPosition===p.TOGGLE_ICON_RIGHT&&this.renderIcon(g,p.ICON_POS_RIGHT,O,!0,"key-toggle-position-right")))}renderSubUl(){const{children:t,maxHeight:e}=this.props,{isCollapsed:n,mode:s,subNavMotion:a,prefixCls:i}=this.context,r=this.adapter.getIsOpen(),c=s===p.MODE_HORIZONTAL,d=v(`${i}-sub`,{[`${i}-sub-open`]:r,[`${i}-sub-popover`]:n||c});return c?null:a?l.createElement(He,{motion:a,isOpen:r,keepDOM:!1,fade:!0},n?null:l.createElement("ul",{className:d},t)):r&&!n?l.createElement("ul",{className:d},t):null}wrapDropdown(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const{children:n,dropdownStyle:s,disabled:a,subDropdownProps:i,dropdownProps:r}=this.props,{mode:c,isInSubNav:d,isCollapsed:m,subNavCloseDelay:f,subNavOpenDelay:S,prefixCls:b,getPopupContainer:C}=this.context,M=this.adapter.getIsOpen(),O=this.adapter.getOpenKeysIsControlled(),g=v({[`${b}-popover`]:m}),I={trigger:"hover",style:s};return O&&(I.trigger="custom",I.visible=M),C&&(I.getPopupContainer=C),(m||c===p.MODE_HORIZONTAL)&&(e=a?e:l.createElement(te,Object.assign({className:g,render:l.createElement(te.Menu,null,n),position:c===p.MODE_HORIZONTAL&&!d?"bottomLeft":"rightTop",mouseEnterDelay:S,mouseLeaveDelay:f,onVisibleChange:this.handleDropdownVisible},r||i,I),e)),e}render(){const{itemKey:t,style:e,onMouseEnter:n,onMouseLeave:s,disabled:a,text:i}=this.props,{mode:r,isCollapsed:c,prefixCls:d}=this.context;let m=this.renderTitleDiv();const f=this.renderSubUl();return(c||r===p.MODE_HORIZONTAL)&&(m=this.wrapDropdown(m)),l.createElement(U,{style:e,isSubNav:!0,itemKey:t,forwardRef:this.setItemRef,isCollapsed:c,className:`${d}-sub-wrap`,onMouseEnter:n,onMouseLeave:s,disabled:a,text:i},l.createElement(G.Provider,{value:Object.assign(Object.assign({},this.context),{isInSubNav:!0})},m,f))}}z.contextType=G;z.propTypes={itemKey:o.oneOfType([o.string,o.number]),text:o.oneOfType([o.string,o.node]),isOpen:o.bool,isCollapsed:o.bool,indent:o.oneOfType([o.bool,o.number]),children:o.node,style:o.object,icon:o.node,maxHeight:o.number,onMouseEnter:o.func,onMouseLeave:o.func,disabled:o.bool,level:o.number};z.defaultProps={level:0,indent:!1,isCollapsed:!1,isOpen:!1,maxHeight:V.DEFAULT_SUBNAV_MAX_HEIGHT,disabled:!1};function Ge(u){let{prefixCls:t,locale:e,collapseText:n,isCollapsed:s,onClick:a=E}=u;const i=()=>{typeof a=="function"&&a(!s)},r={icon:l.createElement(ke,null),type:"tertiary",theme:"borderless",onClick:i};let c=s?e?.expandText:e?.collapseText;return typeof n=="function"&&(c=n(s)),l.createElement("div",{className:`${t}-collapse-btn`},s?l.createElement(ye,{content:c,position:"right"},l.createElement(ae,Object.assign({},r))):l.createElement(ae,Object.assign({},r),c))}class P extends F.PureComponent{constructor(){super(...arguments),this.renderCollapseButton=()=>{const{collapseButton:t,collapseText:e}=this.props;if(l.isValidElement(t))return t;const{onCollapseChange:n,prefixCls:s,locale:a,isCollapsed:i}=this.context;return l.createElement(Ge,{prefixCls:s,isCollapsed:i,locale:a,onClick:n,collapseText:e})}}render(){const{style:t,className:e,collapseButton:n,onClick:s}=this.props;let{children:a}=this.props;const{isCollapsed:i,mode:r}=this.context;!l.isValidElement(a)&&n&&r!==p.MODE_HORIZONTAL&&(a=this.renderCollapseButton());const c=v(e,`${K.PREFIX}-footer`,{[`${K.PREFIX}-footer-collapsed`]:i});return l.createElement("div",{className:c,style:t,onClick:s},a)}}P.contextType=G;P.propTypes={children:o.node,style:o.object,className:o.string,collapseButton:o.oneOfType([o.node,o.bool]),collapseText:o.func,onClick:o.func};P.defaultProps={collapseButton:!1,onClick:E};P.elementType="NavFooter";class j extends F.PureComponent{renderLogo(t){return l.isValidElement(t)?t:null}render(){const{children:t,style:e,className:n,logo:s,text:a,link:i,linkOptions:r,prefixCls:c}=this.props,{isCollapsed:d}=this.context,m=v(n,`${K.PREFIX}-header`,{[`${K.PREFIX}-header-collapsed`]:d});let f=l.createElement(l.Fragment,null,s?l.createElement("i",{className:`${K.PREFIX}-header-logo`},this.renderLogo(s)):null,!R(a)&&!d?l.createElement("span",{className:`${K.PREFIX}-header-text`},a):null,t);return typeof i=="string"&&(f=l.createElement("a",Object.assign({className:`${c}-header-link`,href:i},r),f)),l.createElement("div",{className:m,style:e},f)}}j.contextType=G;j.propTypes={prefixCls:o.string,logo:o.oneOfType([o.string,o.object,o.node]),text:o.oneOfType([o.string,o.node]),children:o.node,style:o.object,className:o.string,link:o.string,linkOptions:o.object};j.defaultProps={prefixCls:K.PREFIX};j.elementType="NavHeader";var Ue=function(u,t){var e={};for(var n in u)Object.prototype.hasOwnProperty.call(u,n)&&t.indexOf(n)<0&&(e[n]=u[n]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(u);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(u,n[s])&&(e[n[s]]=u[n[s]]);return e};function me(u,t){return function(){const n=new Set(u.state[t]);for(var s=arguments.length,a=new Array(s),i=0;i<s;i++)a[i]=arguments[i];a.forEach(r=>r&&n.add(r)),u.setState({[t]:Array.from(n)})}}function fe(u,t){return function(){const n=new Set(u.state[t]);for(var s=arguments.length,a=new Array(s),i=0;i<s;i++)a[i]=arguments[i];a.forEach(r=>r&&n.delete(r)),u.setState({[t]:Array.from(n)})}}const{hasOwnProperty:Be}=Object.prototype;class N extends oe{constructor(t){super(t),this.onCollapseChange=()=>{this.foundation.handleCollapseChange()},this.foundation=new $(this.adapter),this.itemsChanged=!0;const{isCollapsed:e,defaultIsCollapsed:n,items:s,children:a}=t,i={isCollapsed:!!(this.isControlled("isCollapsed")?e:n),openKeys:[],items:[],itemKeysMap:{},selectedKeys:[]};if(this.state=Object.assign({},i),s&&s.length||a){const r=this.foundation.init("constructor");this.state=Object.assign(Object.assign({},i),r)}}static getDerivedStateFromProps(t,e){const n={};return Be.call(t,"isCollapsed")&&t.isCollapsed!==e.isCollapsed&&(n.isCollapsed=t.isCollapsed),n}componentDidMount(){}componentDidUpdate(t){if(t.items!==this.props.items||t.children!==this.props.children)this.foundation.init();else{if(this.foundation.handleItemsChange(!1),this.props.selectedKeys&&!le(t.selectedKeys,this.props.selectedKeys)){this.adapter.updateSelectedKeys(this.props.selectedKeys);const e=this.foundation.getWillOpenKeys(this.state.itemKeysMap);this.adapter.updateOpenKeys(e)}this.props.openKeys&&!le(t.openKeys,this.props.openKeys)&&this.adapter.updateOpenKeys(this.props.openKeys)}}get adapter(){var t=this;return Object.assign(Object.assign({},super.adapter),{notifySelect:function(){return t.props.onSelect(...arguments)},notifyOpenChange:function(){return t.props.onOpenChange(...arguments)},setIsCollapsed:e=>this.setState({isCollapsed:e}),notifyCollapseChange:function(){return t.props.onCollapseChange(...arguments)},updateItems:e=>this.setState({items:[...e]}),setItemKeysMap:e=>this.setState({itemKeysMap:Object.assign({},e)}),addSelectedKeys:me(this,"selectedKeys"),removeSelectedKeys:fe(this,"selectedKeys"),updateSelectedKeys:function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,s=e;if(n){const a=t.foundation.selectLevelZeroParentKeys(null,e);s=Array.from(new Set(e.concat(a)))}t.setState({selectedKeys:s})},updateOpenKeys:e=>this.setState({openKeys:[...e]}),addOpenKeys:me(this,"openKeys"),removeOpenKeys:fe(this,"openKeys"),setItemsChanged:e=>{this.itemsChanged=e}})}renderItems(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const{expandIcon:n,subDropdownProps:s}=this.props;return l.createElement(l.Fragment,null,t.map((i,r)=>Array.isArray(i.items)&&i.items.length?l.createElement(z,Object.assign({key:i.itemKey||String(e)+r},i,{level:e,expandIcon:n,subDropdownProps:s}),this.renderItems(i.items,e+1)):l.createElement(U,Object.assign({key:i.itemKey||String(e)+r},i,{level:e}))))}render(){const t=this.props,{children:e,mode:n,onOpenChange:s,onSelect:a,onClick:i,style:r,className:c,subNavCloseDelay:d,subNavOpenDelay:m,subNavMotion:f,tooltipShowDelay:S,tooltipHideDelay:b,prefixCls:C,bodyStyle:M,footer:O,header:g,toggleIconPosition:I,limitIndent:B,renderWrapper:_,getPopupContainer:A}=t,x=Ue(t,["children","mode","onOpenChange","onSelect","onClick","style","className","subNavCloseDelay","subNavOpenDelay","subNavMotion","tooltipShowDelay","tooltipHideDelay","prefixCls","bodyStyle","footer","header","toggleIconPosition","limitIndent","renderWrapper","getPopupContainer"]),{selectedKeys:Y,openKeys:D,items:L,isCollapsed:T}=this.state,{updateOpenKeys:Z,addOpenKeys:be,removeOpenKeys:Ie,updateSelectedKeys:ve,addSelectedKeys:Ke,removeSelectedKeys:xe}=this.adapter,Ee=Object.assign({},r);let w=F.Children.toArray(e);const q=[],Q=[];if(l.isValidElement(O)?q.push(l.createElement(P,{key:0},O)):O&&typeof O=="object"&&q.push(l.createElement(P,Object.assign({key:0},O))),l.isValidElement(g)?Q.push(l.createElement(j,{key:0},g)):g&&typeof g=="object"&&Q.push(l.createElement(j,Object.assign({key:0},g))),Array.isArray(w)&&w.length){w=[...w];let X=w.length;for(let H=0;H<X;H++){const k=w[H];k.type===P||W(k,"type.elementType")==="NavFooter"?(q.push(k),w.splice(H,1),H--,X--):(k.type===j||W(k,"type.elementType")==="NavHeader")&&(Q.push(k),w.splice(H,1),H--,X--)}}const Se=v(C,c,{[`${C}-collapsed`]:T,[`${C}-horizontal`]:n==="horizontal",[`${C}-vertical`]:n==="vertical"}),_e=v(`${C}-header-list-outer`,{[`${C}-header-list-outer-collapsed`]:T});return this.itemsChanged&&this.adapter.setCache("itemElems",this.renderItems(L)),l.createElement(Le,{componentName:"Navigation"},X=>l.createElement(G.Provider,{value:{subNavCloseDelay:d,subNavOpenDelay:m,subNavMotion:f,tooltipShowDelay:S,tooltipHideDelay:b,openKeys:D,openKeysIsControlled:this.isControlled("openKeys")&&n==="vertical"&&!T,canUpdateOpenKeys:!0,selectedKeys:Y,selectedKeysIsControlled:this.isControlled("selectedKeys"),isCollapsed:T,onCollapseChange:this.onCollapseChange,mode:n,onSelect:a,onOpenChange:s,updateOpenKeys:Z,addOpenKeys:be,removeOpenKeys:Ie,updateSelectedKeys:ve,addSelectedKeys:Ke,removeSelectedKeys:xe,onClick:i,locale:X,prefixCls:C,toggleIconPosition:I,limitIndent:B,renderWrapper:_,getPopupContainer:A}},l.createElement("div",Object.assign({className:Se,style:Ee},this.getDataAttr(x)),l.createElement("div",{className:`${C}-inner`},l.createElement("div",{className:_e},Q,l.createElement("div",{style:M,className:`${C}-list-wrapper`},l.createElement("ul",{role:"menu","aria-orientation":n,className:`${C}-list`},this.adapter.getCache("itemElems"),w))),q))))}}N.Sub=z;N.Item=U;N.Header=j;N.Footer=P;N.propTypes={collapseIcon:o.node,defaultOpenKeys:o.arrayOf(o.oneOfType([o.string,o.number])),openKeys:o.arrayOf(o.oneOfType([o.string,o.number])),defaultSelectedKeys:o.arrayOf(o.oneOfType([o.string,o.number])),expandIcon:o.node,selectedKeys:o.arrayOf(o.oneOfType([o.string,o.number])),mode:o.oneOf([...p.MODE]),onSelect:o.func,onClick:o.func,onOpenChange:o.func,items:o.array,isCollapsed:o.bool,defaultIsCollapsed:o.bool,onCollapseChange:o.func,multiple:o.bool,onDeselect:o.func,subNavMotion:o.oneOfType([o.bool,o.object,o.func]),subNavCloseDelay:o.number,subNavOpenDelay:o.number,tooltipShowDelay:o.number,tooltipHideDelay:o.number,children:o.node,style:o.object,bodyStyle:o.object,className:o.string,toggleIconPosition:o.string,prefixCls:o.string,header:o.oneOfType([o.node,o.object]),footer:o.oneOfType([o.node,o.object]),limitIndent:o.bool,getPopupContainer:o.func};N.__SemiComponentName__="Navigation";N.defaultProps=Pe(N.__SemiComponentName__,{subNavCloseDelay:V.DEFAULT_SUBNAV_CLOSE_DELAY,subNavOpenDelay:V.DEFAULT_SUBNAV_OPEN_DELAY,tooltipHideDelay:V.DEFAULT_TOOLTIP_HIDE_DELAY,tooltipShowDelay:V.DEFAULT_TOOLTIP_SHOW_DELAY,onCollapseChange:E,onSelect:E,onClick:E,onOpenChange:E,toggleIconPosition:"right",limitIndent:!0,prefixCls:K.PREFIX,subNavMotion:!0,mode:p.MODE_VERTICAL});function Ze(){return h.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:h.jsx("path",{d:"M8.48092 0.748384C8.16727 0.653859 7.83272 0.653859 7.51907 0.748384C7.30423 0.813133 7.13028 0.92386 6.97716 1.04125C6.83512 1.15015 6.67675 1.2924 6.50211 1.44927L2.21784 5.29713C2.00105 5.49145 1.80997 5.66273 1.66845 5.87532C1.54419 6.062 1.4522 6.26826 1.39635 6.48545C1.33275 6.73279 1.333 6.9894 1.33329 7.28054L1.33333 12.4241C1.33331 12.6835 1.3333 12.9169 1.34917 13.1111C1.36616 13.3191 1.40462 13.5401 1.51499 13.7567C1.67477 14.0703 1.92974 14.3253 2.24335 14.485C2.45995 14.5954 2.68093 14.6339 2.88891 14.6509C3.08312 14.6667 3.31653 14.6667 3.57591 14.6667H12.4241C12.6835 14.6667 12.9169 14.6667 13.1111 14.6509C13.3191 14.6339 13.54 14.5954 13.7566 14.485C14.0703 14.3253 14.3252 14.0703 14.485 13.7567C14.5954 13.5401 14.6338 13.3191 14.6508 13.1111C14.6667 12.9169 14.6667 12.6835 14.6667 12.4241L14.6667 7.28053C14.667 6.9894 14.6672 6.73279 14.6036 6.48545C14.5478 6.26826 14.4558 6.062 14.3315 5.87532C14.19 5.66273 13.9989 5.49145 13.7822 5.29713L9.49788 1.44927C9.32325 1.2924 9.16488 1.15015 9.02284 1.04125C8.86971 0.923861 8.69577 0.813133 8.48092 0.748384ZM7.90381 2.025C7.96654 2.0061 8.03345 2.0061 8.09618 2.025C8.09682 2.02519 8.10364 2.0272 8.11997 2.0364C8.13837 2.04678 8.16717 2.06534 8.21161 2.0994C8.30743 2.17287 8.42696 2.27959 8.62365 2.45625L12.8467 6.24917C13.1328 6.50615 13.1858 6.56032 13.2216 6.61414C13.263 6.67637 13.2937 6.74512 13.3123 6.81752C13.3284 6.88014 13.3333 6.95575 13.3333 7.34034V12.4C13.3333 12.6911 13.3328 12.8692 13.3219 13.0025C13.3168 13.0646 13.3105 13.1022 13.3051 13.125C13.3025 13.1359 13.3004 13.1426 13.2991 13.1462C13.2979 13.1496 13.2971 13.1511 13.297 13.1514C13.265 13.2141 13.214 13.2651 13.1513 13.297C13.1511 13.2972 13.1496 13.2979 13.1461 13.2991C13.1425 13.3004 13.1359 13.3026 13.125 13.3051C13.1022 13.3105 13.0646 13.3169 13.0025 13.322C12.8692 13.3328 12.691 13.3334 12.4 13.3334H8.66667V8.50008C8.66667 8.31599 8.51743 8.16675 8.33333 8.16675H7.66667C7.48257 8.16675 7.33333 8.31599 7.33333 8.50008V13.3334H3.6C3.30897 13.3334 3.13079 13.3328 2.99749 13.322C2.93539 13.3169 2.89781 13.3105 2.875 13.3051C2.86414 13.3026 2.85747 13.3004 2.85386 13.2991C2.85039 13.2979 2.84894 13.2972 2.84867 13.297C2.78595 13.2651 2.73495 13.2141 2.70299 13.1514C2.70291 13.1512 2.70256 13.1505 2.70199 13.1491C2.70168 13.1483 2.70131 13.1474 2.70088 13.1462C2.69959 13.1426 2.69745 13.1359 2.69489 13.125C2.68952 13.1022 2.68315 13.0646 2.67807 13.0025C2.66718 12.8692 2.66666 12.6911 2.66666 12.4V7.34034C2.66666 6.95575 2.67157 6.88014 2.68767 6.81752C2.70629 6.74512 2.73695 6.67637 2.77837 6.61414C2.8142 6.56032 2.86717 6.50615 3.1533 6.24917L7.37634 2.45625C7.57304 2.27959 7.69256 2.17287 7.78839 2.0994C7.83282 2.06534 7.86162 2.04678 7.88003 2.0364C7.89635 2.0272 7.90317 2.02519 7.90381 2.025Z",fill:"black",fillOpacity:"0.65"})})}const Xe=()=>h.jsx(ee,{svg:h.jsx(Ze,{})});function We(){return h.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("path",{d:"M5.33333 7.66675C5.14924 7.66675 5 7.51751 5 7.33341V6.66675C5 6.48265 5.14924 6.33341 5.33333 6.33341H10.6667C10.8508 6.33341 11 6.48265 11 6.66675V7.33341C11 7.51751 10.8508 7.66675 10.6667 7.66675H5.33333Z",fill:"black",fillOpacity:"0.65"}),h.jsx("path",{d:"M5.33333 10.6667C5.14924 10.6667 5 10.5175 5 10.3334V9.66675C5 9.48265 5.14924 9.33341 5.33333 9.33341H8.33333C8.51743 9.33341 8.66667 9.48265 8.66667 9.66675V10.3334C8.66667 10.5175 8.51743 10.6667 8.33333 10.6667H5.33333Z",fill:"black",fillOpacity:"0.65"}),h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.33333 0.666748C5.14924 0.666748 5 0.815986 5 1.00008V2.00013C4.01165 2.0009 3.49359 2.01346 3.09202 2.21807C2.71569 2.40982 2.40973 2.71578 2.21799 3.0921C2 3.51992 2 4.07998 2 5.20008V12.1334C2 13.2535 2 13.8136 2.21799 14.2414C2.40973 14.6177 2.71569 14.9237 3.09202 15.1154C3.51984 15.3334 4.0799 15.3334 5.2 15.3334H10.8C11.9201 15.3334 12.4802 15.3334 12.908 15.1154C13.2843 14.9237 13.5903 14.6177 13.782 14.2414C14 13.8136 14 13.2535 14 12.1334V5.20008C14 4.07998 14 3.51992 13.782 3.0921C13.5903 2.71578 13.2843 2.40982 12.908 2.21807C12.5064 2.01346 11.9883 2.0009 11 2.00013V1.00008C11 0.815986 10.8508 0.666748 10.6667 0.666748H10C9.81591 0.666748 9.66667 0.815986 9.66667 1.00008V2.00008H6.33333V1.00008C6.33333 0.815986 6.1841 0.666748 6 0.666748H5.33333ZM3.99498 3.35623C4.22961 3.33707 4.53372 3.33396 5 3.33349V4.00008C5 4.18418 5.14924 4.33341 5.33333 4.33341H6C6.1841 4.33341 6.33333 4.18418 6.33333 4.00008V3.33341H9.66667V4.00008C9.66667 4.18418 9.81591 4.33341 10 4.33341H10.6667C10.8508 4.33341 11 4.18418 11 4.00008V3.33349C11.4663 3.33396 11.7704 3.33707 12.005 3.35623C12.1292 3.36638 12.2044 3.37913 12.25 3.38988C12.2717 3.39499 12.2851 3.39927 12.2923 3.40185C12.2992 3.40432 12.3027 3.40608 12.3027 3.40608C12.4281 3.46999 12.5301 3.57198 12.594 3.69742C12.594 3.69742 12.5958 3.70087 12.5982 3.7078C12.6008 3.71502 12.6051 3.72837 12.6102 3.75008C12.621 3.79572 12.6337 3.87086 12.6438 3.99506C12.6656 4.26168 12.6667 4.61803 12.6667 5.20008V12.1334C12.6667 12.7155 12.6656 13.0718 12.6438 13.3384C12.6337 13.4626 12.621 13.5378 12.6102 13.5834C12.6051 13.6051 12.6008 13.6185 12.5982 13.6257C12.5969 13.6295 12.5958 13.632 12.5951 13.6337C12.5945 13.6351 12.594 13.6361 12.594 13.6361C12.5301 13.7615 12.4281 13.8635 12.3027 13.9274C12.3027 13.9274 12.2992 13.9292 12.2923 13.9316C12.2851 13.9342 12.2717 13.9385 12.25 13.9436C12.2044 13.9544 12.1292 13.9671 12.005 13.9773C11.7384 13.999 11.3821 14.0001 10.8 14.0001H5.2C4.61795 14.0001 4.26159 13.999 3.99498 13.9773C3.87078 13.9671 3.79563 13.9544 3.75 13.9436C3.72829 13.9385 3.71494 13.9342 3.70772 13.9316C3.70078 13.9292 3.69734 13.9274 3.69734 13.9274C3.5719 13.8635 3.46991 13.7615 3.406 13.6361C3.406 13.6361 3.40424 13.6326 3.40177 13.6257C3.39919 13.6185 3.39491 13.6051 3.38979 13.5834C3.37905 13.5378 3.3663 13.4626 3.35615 13.3384C3.33437 13.0718 3.33333 12.7155 3.33333 12.1334V5.20008C3.33333 4.61803 3.33437 4.26168 3.35615 3.99506C3.3663 3.87086 3.37905 3.79572 3.38979 3.75008C3.39491 3.72837 3.39919 3.71502 3.40177 3.7078C3.40424 3.70087 3.406 3.69742 3.406 3.69742C3.46991 3.57198 3.5719 3.46999 3.69734 3.40608C3.69734 3.40608 3.70078 3.40432 3.70772 3.40185C3.71494 3.39927 3.72829 3.39499 3.75 3.38988C3.79563 3.37913 3.87078 3.36638 3.99498 3.35623Z",fill:"black",fillOpacity:"0.65"})]})}const ze=()=>h.jsx(ee,{svg:h.jsx(We,{})});function Ye(){return h.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.00001 1.33325C4.31811 1.33325 1.33334 4.31802 1.33334 7.99992C1.33334 11.6818 4.31811 14.6666 8.00001 14.6666C11.6819 14.6666 14.6667 11.6818 14.6667 7.99992C14.6667 4.31802 11.6819 1.33325 8.00001 1.33325ZM2.66668 7.99992C2.66668 5.0544 5.05449 2.66659 8.00001 2.66659C10.9455 2.66659 13.3333 5.0544 13.3333 7.99992C13.3333 10.9454 10.9455 13.3333 8.00001 13.3333C5.05449 13.3333 2.66668 10.9454 2.66668 7.99992Z",fill:"black",fillOpacity:"0.65"}),h.jsx("path",{d:"M10.5774 5.42256C10.7058 5.551 10.7248 5.75177 10.6226 5.90174L8.94059 8.36882C8.77293 8.61474 8.64922 8.79611 8.50084 8.93411C8.33623 9.08721 8.13565 9.19632 7.91765 9.25117C7.7212 9.3006 7.50169 9.30058 7.20415 9.30054H5.33334C5.14925 9.30054 5.00001 9.15131 5.00001 8.96721V8.30054C5.00001 8.11645 5.14925 7.96721 5.33334 7.96721H7.12446C7.34737 7.96721 7.42005 7.96547 7.47857 7.95074C7.54397 7.93428 7.60415 7.90155 7.65353 7.85563C7.69773 7.81451 7.7387 7.75445 7.86425 7.57046L9.62255 4.99293C9.74585 4.81211 9.99247 4.78872 10.1457 4.94185L10.5774 5.42256Z",fill:"black",fillOpacity:"0.65"}),h.jsx("path",{d:"M8.7713 6.17157C8.98705 5.95582 9.3368 5.95582 9.55255 6.17157L10.4956 7.11462C10.7113 7.33037 10.7113 7.68012 10.4956 7.89587L9.55255 8.83891C9.3368 9.05466 8.98705 9.05466 8.7713 8.83891L7.82825 7.89587C7.6125 7.68012 7.6125 7.33037 7.82825 7.11462L8.7713 6.17157Z",fill:"black",fillOpacity:"0.65"})]})}const qe=()=>h.jsx(ee,{svg:h.jsx(Ye,{})});function Qe(){return h.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:h.jsx("path",{d:"M6.67719 3.25174C4.45075 2.48478 2.06357 4.24855 2.06345 6.61273C1.2164 7.25921 0.666626 8.28994 0.666626 9.45161C0.666626 11.4113 2.23008 13 4.15869 13H11.4897C11.5315 13 11.5725 12.9963 11.6123 12.9891C13.6928 12.8354 15.3333 11.0723 15.3333 8.91935C15.3333 7.50456 14.6244 6.25874 13.5506 5.52743C13.2846 3.53512 11.6047 2 9.57139 2C8.43412 2 7.40708 2.481 6.67719 3.25174ZM6.24293 4.51237L7.05483 4.79205L7.6453 4.16855C8.13654 3.64981 8.81905 3.33333 9.57139 3.33333C10.9112 3.33333 12.048 4.34848 12.229 5.70388L12.3078 6.29421L12.8001 6.62946C13.5202 7.11991 14 7.95877 14 8.91935C14 10.3867 12.8856 11.5581 11.5141 11.6594L11.4451 11.6645L11.4331 11.6667H8.66663V7.94281L9.95952 9.2357C10.0897 9.36588 10.3007 9.36588 10.4309 9.2357L10.9023 8.7643C11.0325 8.63412 11.0325 8.42307 10.9023 8.29289L8.47136 5.86193C8.21101 5.60158 7.7889 5.60158 7.52855 5.86193L5.09759 8.29289C4.96742 8.42307 4.96741 8.63412 5.09759 8.7643L5.56899 9.2357C5.69917 9.36588 5.91022 9.36588 6.0404 9.2357L7.33329 7.94281V11.6667H4.15869C2.98649 11.6667 1.99996 10.6951 1.99996 9.45161C1.99996 8.71875 2.34528 8.07493 2.87239 7.67263L3.39675 7.27243L3.39678 6.61279C3.39686 5.12619 4.91793 4.05594 6.24293 4.51237Z",fill:"black",fillOpacity:"0.65"})})}const Je=()=>h.jsx(ee,{svg:h.jsx(Qe,{})}),ge=[{text:J("scanQRCode2Debug"),itemKey:"scan_qrcode",icon:h.jsx(Xe,{}),path:"/"},{itemKey:"project_overview",text:J("projectInfo"),icon:h.jsx(ze,{}),path:"/project_overview"},{itemKey:"integration_assistant",text:J("integrationAssistant"),icon:h.jsx(qe,{}),path:"/integration_assistant"},{itemKey:"upload_publish",text:J("codePreCheck"),icon:h.jsx(Je,{}),path:"/upload_publish"}],nt=()=>{const u=je(),t=Me(),e=s=>{const a=ge.find(i=>i.itemKey===s.itemKey);a&&u(a.path)},n=F.useMemo(()=>{const s=t.pathname;return s==="/"||["/basic_debug_guide","/network_diagnostics","/manual_connect","/launch_mode","/debug_setting"].includes(s)?"scan_qrcode":s.startsWith("/integration_assistant")?"integration_assistant":s==="/project_overview"||s==="/project_detail"?"project_overview":s==="/upload_publish"||s==="/version_upload"||s==="/precheck_code"?"upload_publish":""},[t.pathname]);return h.jsx(N,{limitIndent:!1,bodyStyle:{height:"100vh",padding:"0 12px",width:"100%",boxSizing:"border-box"},items:ge,selectedKeys:[n],onSelect:e})};export{nt as Sidebar};
1
+ import{K as Te,r as F,h as we,k as ne,_ as W,O as R,U as Ce,R as l,m as oe,V as ye,W as Ne,n as v,X as Ae,q as o,t as E,Y as De,A as ie,b as ae,Z as le,L as Le,s as Pe,j as h,$ as ee,u as je,a0 as Me,i as J}from"./index-BVIWa0s0.js";import{_ as Oe,I as re,C as He}from"./times-_NUvbbyU.js";import{D as te}from"./index-Co_mqsxn.js";function Re(u){return F.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},u),F.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2h14a3 3 0 0 1 3 3v14a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V5a3 3 0 0 1 3-3Zm1 2a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H6Z",fill:"currentColor"}))}const ke=Te(Re,"sidebar"),ce="horizontal",de="vertical",K={PREFIX:`${we}-navigation`},p={MODE:[de,ce],MODE_VERTICAL:de,MODE_HORIZONTAL:ce,ICON_POS_LEFT:"left",ICON_POS_RIGHT:"right",TOGGLE_ICON_LEFT:"left",TOGGLE_ICON_RIGHT:"right"},V={DEFAULT_SUBNAV_MAX_HEIGHT:999,DEFAULT_TOOLTIP_SHOW_DELAY:0,DEFAULT_TOOLTIP_HIDE_DELAY:100,DEFAULT_SUBNAV_OPEN_DELAY:0,DEFAULT_SUBNAV_CLOSE_DELAY:100},pe={open:"chevron_up",closed:"chevron_down"};let Ve=class se{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(t==null||typeof t!="object")&&(t={text:t,itemKey:t,maxHeight:V.DEFAULT_SUBNAV_MAX_HEIGHT,link:null,items:null,icon:"",indent:!1});for(const e of Object.keys(t))this[e]=t[e];t.items&&Array.isArray(t.items)&&t.items.length?(this.items=t.items.map(e=>new se(e)),"toggleIcon"in t?this.toggleIcon=se.isValidToggleIcon(t.toggleIcon)?Object.assign({},t.toggleIcon):Object.assign({},pe):this.toggleIcon=Object.assign({},pe)):this.items=null}static isValidToggleIcon(t){return!!(t&&typeof t=="object"&&typeof t.open=="string"&&t.open.length&&typeof t.closed=="string"&&t.closed.length)}};class $ extends ne{constructor(t){super(Object.assign({},t))}static getZeroParentKeys(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const e=[];for(var n=arguments.length,s=new Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];if(s.length){for(const i of s)if(Array.isArray(t[i])&&t[i].length){const r=t[i][0];R(r)||e.push(r)}}return e}static buildItemKeysMap(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"itemKey";var a;if(Array.isArray(t)&&t.length)for(const i of t)if(Array.isArray(i))$.buildItemKeysMap(i,e,[...n],s);else{let r;if(i&&typeof i=="object"&&(r=i[s]||i.props&&i.props[s]),r){e[r]=[...n];const c=(a=i.props)===null||a===void 0?void 0:a.children;if(Array.isArray(i.items)&&i.items.length)$.buildItemKeysMap(i.items,e,[...n,r],s);else if(c){const d=Array.isArray(c)?c:[c];$.buildItemKeysMap(d,e,[...n,r],s)}}}return e}init(t){const{defaultSelectedKeys:e,selectedKeys:n}=this.getProps();let s=n||e||[];const{itemKeysMap:a,willOpenKeys:i,formattedItems:r}=this.getCalcState(),c=this.selectLevelZeroParentKeys(a,s);if(s=s.concat(c),t==="constructor")return{selectedKeys:s,itemKeysMap:a,openKeys:i,items:r};this._adapter.updateSelectedKeys(s,!1),this._adapter.setItemKeysMap(a),this._adapter.updateOpenKeys(i),this._adapter.updateItems(r),this._adapter.setItemsChanged(!0)}getCalcState(){const{itemKeysMap:t,formattedItems:e}=this.getFormattedItems(),n=this.getWillOpenKeys(t);return{itemKeysMap:t,willOpenKeys:n,formattedItems:e}}getFormattedItems(){const{items:t,children:e}=this.getProps(),n=this.formatItems(t),s=Array.isArray(t)&&t.length?n:e;return{itemKeysMap:$.buildItemKeysMap(s),formattedItems:n}}getWillOpenKeys(t){const{defaultOpenKeys:e,openKeys:n,defaultSelectedKeys:s,selectedKeys:a,mode:i}=this.getProps(),{openKeys:r=[]}=this.getStates();let c=n||e||[];if(!(Array.isArray(e)||Array.isArray(n))&&i===p.MODE_VERTICAL&&(Array.isArray(s)||Array.isArray(a))){const d=Array.isArray(a)?a:s;c=r.concat(this.getShouldOpenKeys(t,d)),c=Array.from(new Set(c))}return[...c]}getShouldOpenKeys(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const n=new Set;return Array.isArray(e)&&e.length&&e.forEach(s=>{if(s){const a=W(t,s);Array.isArray(a)&&a.forEach(i=>n.add(i))}}),[...n]}destroy(){}selectLevelZeroParentKeys(t,e){const n=R(t)?this.getState("itemKeysMap"):t,s=[];if(e.length){for(const a of e)if(Array.isArray(n[a])&&n[a].length){const i=n[a][0];R(i)||s.push(i)}}return s.length?s:[]}formatItems(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const e=[];for(const n of t)e.push(new Ve(n));return e}handleSelect(t){this._adapter.notifySelect(t)}judgeIfOpen(t,e){let n=!1;const s=Array.isArray(t)?t:t&&[t];if(s&&Array.isArray(e)&&e.length){for(const a of e)if(n=s.includes(a.itemKey)||this.judgeIfOpen(s,a.items),n)break}return n}handleCollapseChange(){const t=!this.getState("isCollapsed");this._isControlledComponent("isCollapsed")||this._adapter.setIsCollapsed(t),this._adapter.notifyCollapseChange(t)}handleItemsChange(t){this._adapter.setItemsChanged(t)}}const ue=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const e=new Set(t);for(var n=arguments.length,s=new Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return s.forEach(i=>i&&e.add(i)),Array.from(e)},he=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const e=new Set(t);for(var n=arguments.length,s=new Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return s.forEach(i=>i&&e.delete(i)),Array.from(e)};class $e extends ne{constructor(t){super(Object.assign({},t))}init(){this._timer=null}destroy(){this.clearDelayTimer()}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}isValidKey(t){return t!=null&&(typeof t=="number"||typeof t=="string")}handleDropdownVisibleChange(t){const e=this.getProp("itemKey"),n=this._adapter.getOpenKeysIsControlled(),s=this._adapter.getCanUpdateOpenKeys(),a=this._adapter.getOpenKeys(),i=t?ue(a,e):he(a,e);this.clearDelayTimer(),n||s&&this._adapter.updateOpen(t),this._adapter.notifyGlobalOpenChange({itemKey:e,openKeys:i,isOpen:t})}handleClick(t,e){const{itemKey:n,disabled:s}=this.getProps();if(s)return;const a=e&&e.contains(t.target);let i=!!this._adapter.getIsOpen();a?i=!i:i=!1;const r=i?ue(this._adapter.getOpenKeys(),n):he(this._adapter.getOpenKeys(),n),c={itemKey:n,openKeys:r,isOpen:i,domEvent:t},d=this._adapter.getOpenKeysIsControlled(),m=this._adapter.getCanUpdateOpenKeys();!d&&m&&this._adapter.updateOpen(i),this._adapter.notifyGlobalOpenChange(c),this._adapter.notifyGlobalOnClick(c)}handleKeyPress(t,e){Ce(t)&&this.handleClick(t,e)}}class Fe extends ne{constructor(t){super(Object.assign({},t))}init(){this._timer=null,this._mounted=!0}destroy(){this._mounted=!1}isValidKey(t){return t!=null&&(typeof t=="string"||typeof t=="number")}handleClick(t){const{isSubNav:e,itemKey:n,text:s,disabled:a}=this.getProps();if(a)return;!e&&this.isValidKey(n)&&!this._adapter.getSelectedKeysIsControlled()&&!this._adapter.getSelected()&&this._adapter.updateSelected(!0);const i=[n];if(!e){if(!this._adapter.getSelected()){const r=[this._adapter.cloneDeep(this.getProps())];this._adapter.notifyGlobalOnSelect({itemKey:n,selectedKeys:i,selectedItems:r,domEvent:t})}this._adapter.notifyGlobalOnClick({itemKey:n,text:s,domEvent:t})}this._adapter.notifyClick({itemKey:n,text:s,domEvent:t})}handleKeyPress(t){if(Ce(t)){const{link:e,linkOptions:n}=this.getProps(),s=W(n,"target","_self");this.handleClick(t),typeof e=="string"&&(s==="_blank"?window.open(e):window.location.href=e)}}}const G=l.createContext({isCollapsed:!1,selectedKeys:[],openKeys:[]}),y=`${K.PREFIX}-item`;class U extends oe{constructor(t){super(t),this.setItemRef=e=>{this.props.forwardRef&&this.props.forwardRef(e)},this.wrapTooltip=e=>{const{text:n,tooltipHideDelay:s,tooltipShowDelay:a}=this.props,i=s??this.context.tooltipHideDelay,r=a??this.context.tooltipShowDelay;return l.createElement(ye,{content:n,wrapWhenSpecial:!1,position:"right",trigger:"hover",mouseEnterDelay:r,mouseLeaveDelay:i},e)},this.handleClick=e=>this.foundation.handleClick(e),this.handleKeyPress=e=>this.foundation.handleKeyPress(e),this.state={tooltipShow:!1},this.foundation=new Fe(this.adapter)}_invokeContextFunc(t){if(t&&this.context&&typeof this.context[t]=="function"){for(var e=arguments.length,n=new Array(e>1?e-1:0),s=1;s<e;s++)n[s-1]=arguments[s];return this.context[t](...n)}return null}get adapter(){var t=this;return Object.assign(Object.assign({},super.adapter),{cloneDeep:Ne,updateTooltipShow:e=>this.setState({tooltipShow:e}),updateSelected:e=>this._invokeContextFunc("updateSelectedKeys",[this.props.itemKey]),updateGlobalSelectedKeys:e=>this._invokeContextFunc("updateSelectedKeys",[...e]),getSelectedKeys:()=>this.context&&this.context.selectedKeys,getSelectedKeysIsControlled:()=>this.context&&this.context.selectedKeysIsControlled,notifyGlobalOnSelect:function(){for(var e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return t._invokeContextFunc("onSelect",...n)},notifyGlobalOnClick:function(){for(var e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return t._invokeContextFunc("onClick",...n)},notifyClick:function(){return t.props.onClick(...arguments)},notifyMouseEnter:function(){return t.props.onMouseEnter(...arguments)},notifyMouseLeave:function(){return t.props.onMouseLeave(...arguments)},getIsCollapsed:()=>this.props.isCollapsed||!!(this.context&&this.context.isCollapsed)||!1,getSelected:()=>!!(this.context&&this.context.selectedKeys&&this.context.selectedKeys.includes(this.props.itemKey)),getIsOpen:()=>!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(this.props.itemKey))})}renderIcon(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if(this.props.isSubNav||!t&&this.context.mode===p.MODE_HORIZONTAL)return null;let a="large";e===p.ICON_POS_RIGHT&&(a="default");const i=v(`${y}-icon`,{[`${y}-icon-toggle-${this.context.toggleIconPosition}`]:n,[`${y}-icon-info`]:!n});return l.createElement("i",{className:i,key:s},Ae(t)?l.cloneElement(t,{size:t.props.size||a}):t)}render(){var t;const{text:e,icon:n,toggleIcon:s,className:a,isSubNav:i,style:r,indent:c,onMouseEnter:d,onMouseLeave:m,link:f,linkOptions:S,disabled:b,level:C=0,tabIndex:M}=this.props,{mode:O,isInSubNav:g,prefixCls:I,limitIndent:B}=this.context,_=this.adapter.getIsCollapsed(),A=this.adapter.getSelected();let x=null;const Y=(t=this.props)===null||t===void 0?void 0:t.children;if(!R(Y))x=Y;else{let L=null;if(O===p.MODE_VERTICAL&&!B&&!_){const T=n&&!c?C:C-1;L=Oe(T,Z=>this.renderIcon(null,p.ICON_POS_RIGHT,!1,Z))}x=l.createElement(l.Fragment,null,L,this.context.toggleIconPosition===p.TOGGLE_ICON_LEFT&&this.renderIcon(s,p.ICON_POS_RIGHT,!0,"key-toggle-pos-right"),n||c||g?this.renderIcon(n,p.ICON_POS_LEFT,!1,"key-position-left"):null,R(e)?"":l.createElement("span",{className:`${K.PREFIX}-item-text`},e),this.context.toggleIconPosition===p.TOGGLE_ICON_RIGHT&&this.renderIcon(s,p.ICON_POS_RIGHT,!0,"key-toggle-pos-right"))}typeof f=="string"&&(x=l.createElement("a",Object.assign({className:`${I}-item-link`,href:f,tabIndex:-1},S),x));let D="";if(g&&(_||O===p.MODE_HORIZONTAL)){const L=v({[y]:!0,[`${y}-sub`]:i,[`${y}-selected`]:A,[`${y}-collapsed`]:_,[`${y}-disabled`]:b});D=l.createElement(te.Item,{selected:A,active:A,forwardRef:this.setItemRef,className:L,onClick:this.handleClick,onMouseEnter:d,onMouseLeave:m,disabled:b,onKeyDown:this.handleKeyPress},x)}else{const L=v(`${a||`${y}-normal`}`,{[y]:!0,[`${y}-sub`]:i,[`${y}-selected`]:A&&!i,[`${y}-collapsed`]:_,[`${y}-disabled`]:b,[`${y}-has-link`]:typeof f=="string"}),T={"aria-disabled":b};if(i){const Z=this.adapter.getIsOpen();T["aria-expanded"]=Z}D=l.createElement("li",Object.assign({role:i?null:"menuitem",tabIndex:i?-1:M},T,{style:r,ref:this.setItemRef,className:L,onClick:this.handleClick,onMouseEnter:d,onMouseLeave:m,onKeyPress:this.handleKeyPress},this.getDataAttr(this.props)),x)}return(_&&!g&&!i||_&&i&&b)&&(D=this.wrapTooltip(D)),typeof this.context.renderWrapper=="function"?this.context.renderWrapper({itemElement:D,isSubNav:i,isInSubNav:g,props:this.props}):D}}U.contextType=G;U.propTypes={text:o.oneOfType([o.string,o.node]),itemKey:o.oneOfType([o.string,o.number]),onClick:o.func,onMouseEnter:o.func,onMouseLeave:o.func,icon:o.oneOfType([o.node]),className:o.string,toggleIcon:o.string,style:o.object,forwardRef:o.func,indent:o.oneOfType([o.bool,o.number]),isCollapsed:o.bool,isSubNav:o.bool,link:o.string,linkOptions:o.object,disabled:o.bool,tabIndex:o.number};U.defaultProps={isSubNav:!1,indent:!1,forwardRef:E,isCollapsed:!1,onClick:E,onMouseEnter:E,onMouseLeave:E,disabled:!1,tabIndex:0};class z extends oe{constructor(t){super(t),this.setItemRef=e=>{e&&e.current?this.itemRef=e:this.itemRef={current:e}},this.setTitleRef=e=>{e&&e.current?this.titleRef=e:this.titleRef={current:e}},this.handleClick=e=>{this.foundation.handleClick(e&&e.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleKeyPress=e=>{this.foundation.handleKeyPress(e&&e.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleDropdownVisible=e=>this.foundation.handleDropdownVisibleChange(e),this.state={isHovered:!1},this.adapter.setCache("firstMounted",!0),this.titleRef=l.createRef(),this.itemRef=l.createRef(),this.foundation=new $e(this.adapter)}_invokeContextFunc(t){if(t&&this.context&&typeof this.context[t]=="function"){for(var e=arguments.length,n=new Array(e>1?e-1:0),s=1;s<e;s++)n[s-1]=arguments[s];return this.context[t](...n)}return null}get adapter(){var t=this;return Object.assign(Object.assign({},super.adapter),{updateIsHovered:e=>this.setState({isHovered:e}),getOpenKeys:()=>this.context&&this.context.openKeys,getOpenKeysIsControlled:()=>this.context&&this.context.openKeysIsControlled,getCanUpdateOpenKeys:()=>this.context&&this.context.canUpdateOpenKeys,updateOpen:e=>this._invokeContextFunc(e?"addOpenKeys":"removeOpenKeys",this.props.itemKey),notifyGlobalOpenChange:function(){for(var e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return t._invokeContextFunc("onOpenChange",...n)},notifyGlobalOnSelect:function(){for(var e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return t._invokeContextFunc("onSelect",...n)},notifyGlobalOnClick:function(){for(var e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return t._invokeContextFunc("onClick",...n)},getIsSelected:e=>!!(!R(e)&&W(this.context,"selectedKeys",[]).includes(String(e))),getIsOpen:()=>{const{itemKey:e}=this.props;return!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(this.props.itemKey))}})}renderIcon(t,e,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const{prefixCls:i}=this.context;let r="large";e===p.ICON_POS_RIGHT&&(r="default");const c=v(`${i}-item-icon`,{[`${i}-item-icon-toggle-${this.context.toggleIconPosition}`]:s,[`${i}-item-icon-info`]:!s}),d=this.adapter.getIsOpen(),m=l.isValidElement(t)?n?l.createElement(De,{animationState:d?"enter":"leave",startClassName:`${K.PREFIX}-icon-rotate-${d?"180":"0"}`},f=>{let{animationClassName:S}=f;return l.cloneElement(t,{size:r,className:S})}):l.cloneElement(t,{size:r}):null;return l.createElement("i",{key:a,className:c},m)}renderTitleDiv(){const{text:t,icon:e,itemKey:n,indent:s,disabled:a,level:i,expandIcon:r}=this.props,{mode:c,isInSubNav:d,isCollapsed:m,prefixCls:f,subNavMotion:S,limitIndent:b}=this.context,C=this.adapter.getIsOpen(),M=v(`${f}-sub-title`,{[`${f}-sub-title-selected`]:this.adapter.getIsSelected(n),[`${f}-sub-title-disabled`]:a});let O=!1,g="";m?d?g=l.createElement(re,null):g=null:c===p.MODE_HORIZONTAL?d?g=l.createElement(re,{"aria-hidden":!0}):g=r||l.createElement(ie,{"aria-hidden":!0}):(S&&(O=!0),g=r||l.createElement(ie,{"aria-hidden":!0}));let I=null;if(c===p.MODE_VERTICAL&&!b&&!m){const A=e&&!s?i:i-1;I=Oe(A,x=>this.renderIcon(null,p.ICON_POS_RIGHT,!1,!1,x))}const B=!m&&d&&c===p.MODE_HORIZONTAL||m&&d;return l.createElement("div",{role:"menuitem",tabIndex:B?-1:0,ref:this.setTitleRef,className:M,onClick:this.handleClick,onKeyPress:this.handleKeyPress,"aria-expanded":C?"true":"false"},l.createElement("div",{className:`${f}-item-inner`},I,this.context.toggleIconPosition===p.TOGGLE_ICON_LEFT&&this.renderIcon(g,p.ICON_POS_RIGHT,O,!0,"key-toggle-position-left"),e||s||d&&c!==p.MODE_HORIZONTAL?this.renderIcon(e,p.ICON_POS_LEFT,!1,!1,"key-inSubNav-position-left"):null,l.createElement("span",{className:`${f}-item-text`},t),this.context.toggleIconPosition===p.TOGGLE_ICON_RIGHT&&this.renderIcon(g,p.ICON_POS_RIGHT,O,!0,"key-toggle-position-right")))}renderSubUl(){const{children:t,maxHeight:e}=this.props,{isCollapsed:n,mode:s,subNavMotion:a,prefixCls:i}=this.context,r=this.adapter.getIsOpen(),c=s===p.MODE_HORIZONTAL,d=v(`${i}-sub`,{[`${i}-sub-open`]:r,[`${i}-sub-popover`]:n||c});return c?null:a?l.createElement(He,{motion:a,isOpen:r,keepDOM:!1,fade:!0},n?null:l.createElement("ul",{className:d},t)):r&&!n?l.createElement("ul",{className:d},t):null}wrapDropdown(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const{children:n,dropdownStyle:s,disabled:a,subDropdownProps:i,dropdownProps:r}=this.props,{mode:c,isInSubNav:d,isCollapsed:m,subNavCloseDelay:f,subNavOpenDelay:S,prefixCls:b,getPopupContainer:C}=this.context,M=this.adapter.getIsOpen(),O=this.adapter.getOpenKeysIsControlled(),g=v({[`${b}-popover`]:m}),I={trigger:"hover",style:s};return O&&(I.trigger="custom",I.visible=M),C&&(I.getPopupContainer=C),(m||c===p.MODE_HORIZONTAL)&&(e=a?e:l.createElement(te,Object.assign({className:g,render:l.createElement(te.Menu,null,n),position:c===p.MODE_HORIZONTAL&&!d?"bottomLeft":"rightTop",mouseEnterDelay:S,mouseLeaveDelay:f,onVisibleChange:this.handleDropdownVisible},r||i,I),e)),e}render(){const{itemKey:t,style:e,onMouseEnter:n,onMouseLeave:s,disabled:a,text:i}=this.props,{mode:r,isCollapsed:c,prefixCls:d}=this.context;let m=this.renderTitleDiv();const f=this.renderSubUl();return(c||r===p.MODE_HORIZONTAL)&&(m=this.wrapDropdown(m)),l.createElement(U,{style:e,isSubNav:!0,itemKey:t,forwardRef:this.setItemRef,isCollapsed:c,className:`${d}-sub-wrap`,onMouseEnter:n,onMouseLeave:s,disabled:a,text:i},l.createElement(G.Provider,{value:Object.assign(Object.assign({},this.context),{isInSubNav:!0})},m,f))}}z.contextType=G;z.propTypes={itemKey:o.oneOfType([o.string,o.number]),text:o.oneOfType([o.string,o.node]),isOpen:o.bool,isCollapsed:o.bool,indent:o.oneOfType([o.bool,o.number]),children:o.node,style:o.object,icon:o.node,maxHeight:o.number,onMouseEnter:o.func,onMouseLeave:o.func,disabled:o.bool,level:o.number};z.defaultProps={level:0,indent:!1,isCollapsed:!1,isOpen:!1,maxHeight:V.DEFAULT_SUBNAV_MAX_HEIGHT,disabled:!1};function Ge(u){let{prefixCls:t,locale:e,collapseText:n,isCollapsed:s,onClick:a=E}=u;const i=()=>{typeof a=="function"&&a(!s)},r={icon:l.createElement(ke,null),type:"tertiary",theme:"borderless",onClick:i};let c=s?e?.expandText:e?.collapseText;return typeof n=="function"&&(c=n(s)),l.createElement("div",{className:`${t}-collapse-btn`},s?l.createElement(ye,{content:c,position:"right"},l.createElement(ae,Object.assign({},r))):l.createElement(ae,Object.assign({},r),c))}class P extends F.PureComponent{constructor(){super(...arguments),this.renderCollapseButton=()=>{const{collapseButton:t,collapseText:e}=this.props;if(l.isValidElement(t))return t;const{onCollapseChange:n,prefixCls:s,locale:a,isCollapsed:i}=this.context;return l.createElement(Ge,{prefixCls:s,isCollapsed:i,locale:a,onClick:n,collapseText:e})}}render(){const{style:t,className:e,collapseButton:n,onClick:s}=this.props;let{children:a}=this.props;const{isCollapsed:i,mode:r}=this.context;!l.isValidElement(a)&&n&&r!==p.MODE_HORIZONTAL&&(a=this.renderCollapseButton());const c=v(e,`${K.PREFIX}-footer`,{[`${K.PREFIX}-footer-collapsed`]:i});return l.createElement("div",{className:c,style:t,onClick:s},a)}}P.contextType=G;P.propTypes={children:o.node,style:o.object,className:o.string,collapseButton:o.oneOfType([o.node,o.bool]),collapseText:o.func,onClick:o.func};P.defaultProps={collapseButton:!1,onClick:E};P.elementType="NavFooter";class j extends F.PureComponent{renderLogo(t){return l.isValidElement(t)?t:null}render(){const{children:t,style:e,className:n,logo:s,text:a,link:i,linkOptions:r,prefixCls:c}=this.props,{isCollapsed:d}=this.context,m=v(n,`${K.PREFIX}-header`,{[`${K.PREFIX}-header-collapsed`]:d});let f=l.createElement(l.Fragment,null,s?l.createElement("i",{className:`${K.PREFIX}-header-logo`},this.renderLogo(s)):null,!R(a)&&!d?l.createElement("span",{className:`${K.PREFIX}-header-text`},a):null,t);return typeof i=="string"&&(f=l.createElement("a",Object.assign({className:`${c}-header-link`,href:i},r),f)),l.createElement("div",{className:m,style:e},f)}}j.contextType=G;j.propTypes={prefixCls:o.string,logo:o.oneOfType([o.string,o.object,o.node]),text:o.oneOfType([o.string,o.node]),children:o.node,style:o.object,className:o.string,link:o.string,linkOptions:o.object};j.defaultProps={prefixCls:K.PREFIX};j.elementType="NavHeader";var Ue=function(u,t){var e={};for(var n in u)Object.prototype.hasOwnProperty.call(u,n)&&t.indexOf(n)<0&&(e[n]=u[n]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(u);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(u,n[s])&&(e[n[s]]=u[n[s]]);return e};function me(u,t){return function(){const n=new Set(u.state[t]);for(var s=arguments.length,a=new Array(s),i=0;i<s;i++)a[i]=arguments[i];a.forEach(r=>r&&n.add(r)),u.setState({[t]:Array.from(n)})}}function fe(u,t){return function(){const n=new Set(u.state[t]);for(var s=arguments.length,a=new Array(s),i=0;i<s;i++)a[i]=arguments[i];a.forEach(r=>r&&n.delete(r)),u.setState({[t]:Array.from(n)})}}const{hasOwnProperty:Be}=Object.prototype;class N extends oe{constructor(t){super(t),this.onCollapseChange=()=>{this.foundation.handleCollapseChange()},this.foundation=new $(this.adapter),this.itemsChanged=!0;const{isCollapsed:e,defaultIsCollapsed:n,items:s,children:a}=t,i={isCollapsed:!!(this.isControlled("isCollapsed")?e:n),openKeys:[],items:[],itemKeysMap:{},selectedKeys:[]};if(this.state=Object.assign({},i),s&&s.length||a){const r=this.foundation.init("constructor");this.state=Object.assign(Object.assign({},i),r)}}static getDerivedStateFromProps(t,e){const n={};return Be.call(t,"isCollapsed")&&t.isCollapsed!==e.isCollapsed&&(n.isCollapsed=t.isCollapsed),n}componentDidMount(){}componentDidUpdate(t){if(t.items!==this.props.items||t.children!==this.props.children)this.foundation.init();else{if(this.foundation.handleItemsChange(!1),this.props.selectedKeys&&!le(t.selectedKeys,this.props.selectedKeys)){this.adapter.updateSelectedKeys(this.props.selectedKeys);const e=this.foundation.getWillOpenKeys(this.state.itemKeysMap);this.adapter.updateOpenKeys(e)}this.props.openKeys&&!le(t.openKeys,this.props.openKeys)&&this.adapter.updateOpenKeys(this.props.openKeys)}}get adapter(){var t=this;return Object.assign(Object.assign({},super.adapter),{notifySelect:function(){return t.props.onSelect(...arguments)},notifyOpenChange:function(){return t.props.onOpenChange(...arguments)},setIsCollapsed:e=>this.setState({isCollapsed:e}),notifyCollapseChange:function(){return t.props.onCollapseChange(...arguments)},updateItems:e=>this.setState({items:[...e]}),setItemKeysMap:e=>this.setState({itemKeysMap:Object.assign({},e)}),addSelectedKeys:me(this,"selectedKeys"),removeSelectedKeys:fe(this,"selectedKeys"),updateSelectedKeys:function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,s=e;if(n){const a=t.foundation.selectLevelZeroParentKeys(null,e);s=Array.from(new Set(e.concat(a)))}t.setState({selectedKeys:s})},updateOpenKeys:e=>this.setState({openKeys:[...e]}),addOpenKeys:me(this,"openKeys"),removeOpenKeys:fe(this,"openKeys"),setItemsChanged:e=>{this.itemsChanged=e}})}renderItems(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const{expandIcon:n,subDropdownProps:s}=this.props;return l.createElement(l.Fragment,null,t.map((i,r)=>Array.isArray(i.items)&&i.items.length?l.createElement(z,Object.assign({key:i.itemKey||String(e)+r},i,{level:e,expandIcon:n,subDropdownProps:s}),this.renderItems(i.items,e+1)):l.createElement(U,Object.assign({key:i.itemKey||String(e)+r},i,{level:e}))))}render(){const t=this.props,{children:e,mode:n,onOpenChange:s,onSelect:a,onClick:i,style:r,className:c,subNavCloseDelay:d,subNavOpenDelay:m,subNavMotion:f,tooltipShowDelay:S,tooltipHideDelay:b,prefixCls:C,bodyStyle:M,footer:O,header:g,toggleIconPosition:I,limitIndent:B,renderWrapper:_,getPopupContainer:A}=t,x=Ue(t,["children","mode","onOpenChange","onSelect","onClick","style","className","subNavCloseDelay","subNavOpenDelay","subNavMotion","tooltipShowDelay","tooltipHideDelay","prefixCls","bodyStyle","footer","header","toggleIconPosition","limitIndent","renderWrapper","getPopupContainer"]),{selectedKeys:Y,openKeys:D,items:L,isCollapsed:T}=this.state,{updateOpenKeys:Z,addOpenKeys:be,removeOpenKeys:Ie,updateSelectedKeys:ve,addSelectedKeys:Ke,removeSelectedKeys:xe}=this.adapter,Ee=Object.assign({},r);let w=F.Children.toArray(e);const q=[],Q=[];if(l.isValidElement(O)?q.push(l.createElement(P,{key:0},O)):O&&typeof O=="object"&&q.push(l.createElement(P,Object.assign({key:0},O))),l.isValidElement(g)?Q.push(l.createElement(j,{key:0},g)):g&&typeof g=="object"&&Q.push(l.createElement(j,Object.assign({key:0},g))),Array.isArray(w)&&w.length){w=[...w];let X=w.length;for(let H=0;H<X;H++){const k=w[H];k.type===P||W(k,"type.elementType")==="NavFooter"?(q.push(k),w.splice(H,1),H--,X--):(k.type===j||W(k,"type.elementType")==="NavHeader")&&(Q.push(k),w.splice(H,1),H--,X--)}}const Se=v(C,c,{[`${C}-collapsed`]:T,[`${C}-horizontal`]:n==="horizontal",[`${C}-vertical`]:n==="vertical"}),_e=v(`${C}-header-list-outer`,{[`${C}-header-list-outer-collapsed`]:T});return this.itemsChanged&&this.adapter.setCache("itemElems",this.renderItems(L)),l.createElement(Le,{componentName:"Navigation"},X=>l.createElement(G.Provider,{value:{subNavCloseDelay:d,subNavOpenDelay:m,subNavMotion:f,tooltipShowDelay:S,tooltipHideDelay:b,openKeys:D,openKeysIsControlled:this.isControlled("openKeys")&&n==="vertical"&&!T,canUpdateOpenKeys:!0,selectedKeys:Y,selectedKeysIsControlled:this.isControlled("selectedKeys"),isCollapsed:T,onCollapseChange:this.onCollapseChange,mode:n,onSelect:a,onOpenChange:s,updateOpenKeys:Z,addOpenKeys:be,removeOpenKeys:Ie,updateSelectedKeys:ve,addSelectedKeys:Ke,removeSelectedKeys:xe,onClick:i,locale:X,prefixCls:C,toggleIconPosition:I,limitIndent:B,renderWrapper:_,getPopupContainer:A}},l.createElement("div",Object.assign({className:Se,style:Ee},this.getDataAttr(x)),l.createElement("div",{className:`${C}-inner`},l.createElement("div",{className:_e},Q,l.createElement("div",{style:M,className:`${C}-list-wrapper`},l.createElement("ul",{role:"menu","aria-orientation":n,className:`${C}-list`},this.adapter.getCache("itemElems"),w))),q))))}}N.Sub=z;N.Item=U;N.Header=j;N.Footer=P;N.propTypes={collapseIcon:o.node,defaultOpenKeys:o.arrayOf(o.oneOfType([o.string,o.number])),openKeys:o.arrayOf(o.oneOfType([o.string,o.number])),defaultSelectedKeys:o.arrayOf(o.oneOfType([o.string,o.number])),expandIcon:o.node,selectedKeys:o.arrayOf(o.oneOfType([o.string,o.number])),mode:o.oneOf([...p.MODE]),onSelect:o.func,onClick:o.func,onOpenChange:o.func,items:o.array,isCollapsed:o.bool,defaultIsCollapsed:o.bool,onCollapseChange:o.func,multiple:o.bool,onDeselect:o.func,subNavMotion:o.oneOfType([o.bool,o.object,o.func]),subNavCloseDelay:o.number,subNavOpenDelay:o.number,tooltipShowDelay:o.number,tooltipHideDelay:o.number,children:o.node,style:o.object,bodyStyle:o.object,className:o.string,toggleIconPosition:o.string,prefixCls:o.string,header:o.oneOfType([o.node,o.object]),footer:o.oneOfType([o.node,o.object]),limitIndent:o.bool,getPopupContainer:o.func};N.__SemiComponentName__="Navigation";N.defaultProps=Pe(N.__SemiComponentName__,{subNavCloseDelay:V.DEFAULT_SUBNAV_CLOSE_DELAY,subNavOpenDelay:V.DEFAULT_SUBNAV_OPEN_DELAY,tooltipHideDelay:V.DEFAULT_TOOLTIP_HIDE_DELAY,tooltipShowDelay:V.DEFAULT_TOOLTIP_SHOW_DELAY,onCollapseChange:E,onSelect:E,onClick:E,onOpenChange:E,toggleIconPosition:"right",limitIndent:!0,prefixCls:K.PREFIX,subNavMotion:!0,mode:p.MODE_VERTICAL});function Ze(){return h.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:h.jsx("path",{d:"M8.48092 0.748384C8.16727 0.653859 7.83272 0.653859 7.51907 0.748384C7.30423 0.813133 7.13028 0.92386 6.97716 1.04125C6.83512 1.15015 6.67675 1.2924 6.50211 1.44927L2.21784 5.29713C2.00105 5.49145 1.80997 5.66273 1.66845 5.87532C1.54419 6.062 1.4522 6.26826 1.39635 6.48545C1.33275 6.73279 1.333 6.9894 1.33329 7.28054L1.33333 12.4241C1.33331 12.6835 1.3333 12.9169 1.34917 13.1111C1.36616 13.3191 1.40462 13.5401 1.51499 13.7567C1.67477 14.0703 1.92974 14.3253 2.24335 14.485C2.45995 14.5954 2.68093 14.6339 2.88891 14.6509C3.08312 14.6667 3.31653 14.6667 3.57591 14.6667H12.4241C12.6835 14.6667 12.9169 14.6667 13.1111 14.6509C13.3191 14.6339 13.54 14.5954 13.7566 14.485C14.0703 14.3253 14.3252 14.0703 14.485 13.7567C14.5954 13.5401 14.6338 13.3191 14.6508 13.1111C14.6667 12.9169 14.6667 12.6835 14.6667 12.4241L14.6667 7.28053C14.667 6.9894 14.6672 6.73279 14.6036 6.48545C14.5478 6.26826 14.4558 6.062 14.3315 5.87532C14.19 5.66273 13.9989 5.49145 13.7822 5.29713L9.49788 1.44927C9.32325 1.2924 9.16488 1.15015 9.02284 1.04125C8.86971 0.923861 8.69577 0.813133 8.48092 0.748384ZM7.90381 2.025C7.96654 2.0061 8.03345 2.0061 8.09618 2.025C8.09682 2.02519 8.10364 2.0272 8.11997 2.0364C8.13837 2.04678 8.16717 2.06534 8.21161 2.0994C8.30743 2.17287 8.42696 2.27959 8.62365 2.45625L12.8467 6.24917C13.1328 6.50615 13.1858 6.56032 13.2216 6.61414C13.263 6.67637 13.2937 6.74512 13.3123 6.81752C13.3284 6.88014 13.3333 6.95575 13.3333 7.34034V12.4C13.3333 12.6911 13.3328 12.8692 13.3219 13.0025C13.3168 13.0646 13.3105 13.1022 13.3051 13.125C13.3025 13.1359 13.3004 13.1426 13.2991 13.1462C13.2979 13.1496 13.2971 13.1511 13.297 13.1514C13.265 13.2141 13.214 13.2651 13.1513 13.297C13.1511 13.2972 13.1496 13.2979 13.1461 13.2991C13.1425 13.3004 13.1359 13.3026 13.125 13.3051C13.1022 13.3105 13.0646 13.3169 13.0025 13.322C12.8692 13.3328 12.691 13.3334 12.4 13.3334H8.66667V8.50008C8.66667 8.31599 8.51743 8.16675 8.33333 8.16675H7.66667C7.48257 8.16675 7.33333 8.31599 7.33333 8.50008V13.3334H3.6C3.30897 13.3334 3.13079 13.3328 2.99749 13.322C2.93539 13.3169 2.89781 13.3105 2.875 13.3051C2.86414 13.3026 2.85747 13.3004 2.85386 13.2991C2.85039 13.2979 2.84894 13.2972 2.84867 13.297C2.78595 13.2651 2.73495 13.2141 2.70299 13.1514C2.70291 13.1512 2.70256 13.1505 2.70199 13.1491C2.70168 13.1483 2.70131 13.1474 2.70088 13.1462C2.69959 13.1426 2.69745 13.1359 2.69489 13.125C2.68952 13.1022 2.68315 13.0646 2.67807 13.0025C2.66718 12.8692 2.66666 12.6911 2.66666 12.4V7.34034C2.66666 6.95575 2.67157 6.88014 2.68767 6.81752C2.70629 6.74512 2.73695 6.67637 2.77837 6.61414C2.8142 6.56032 2.86717 6.50615 3.1533 6.24917L7.37634 2.45625C7.57304 2.27959 7.69256 2.17287 7.78839 2.0994C7.83282 2.06534 7.86162 2.04678 7.88003 2.0364C7.89635 2.0272 7.90317 2.02519 7.90381 2.025Z",fill:"black",fillOpacity:"0.65"})})}const Xe=()=>h.jsx(ee,{svg:h.jsx(Ze,{})});function We(){return h.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("path",{d:"M5.33333 7.66675C5.14924 7.66675 5 7.51751 5 7.33341V6.66675C5 6.48265 5.14924 6.33341 5.33333 6.33341H10.6667C10.8508 6.33341 11 6.48265 11 6.66675V7.33341C11 7.51751 10.8508 7.66675 10.6667 7.66675H5.33333Z",fill:"black",fillOpacity:"0.65"}),h.jsx("path",{d:"M5.33333 10.6667C5.14924 10.6667 5 10.5175 5 10.3334V9.66675C5 9.48265 5.14924 9.33341 5.33333 9.33341H8.33333C8.51743 9.33341 8.66667 9.48265 8.66667 9.66675V10.3334C8.66667 10.5175 8.51743 10.6667 8.33333 10.6667H5.33333Z",fill:"black",fillOpacity:"0.65"}),h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.33333 0.666748C5.14924 0.666748 5 0.815986 5 1.00008V2.00013C4.01165 2.0009 3.49359 2.01346 3.09202 2.21807C2.71569 2.40982 2.40973 2.71578 2.21799 3.0921C2 3.51992 2 4.07998 2 5.20008V12.1334C2 13.2535 2 13.8136 2.21799 14.2414C2.40973 14.6177 2.71569 14.9237 3.09202 15.1154C3.51984 15.3334 4.0799 15.3334 5.2 15.3334H10.8C11.9201 15.3334 12.4802 15.3334 12.908 15.1154C13.2843 14.9237 13.5903 14.6177 13.782 14.2414C14 13.8136 14 13.2535 14 12.1334V5.20008C14 4.07998 14 3.51992 13.782 3.0921C13.5903 2.71578 13.2843 2.40982 12.908 2.21807C12.5064 2.01346 11.9883 2.0009 11 2.00013V1.00008C11 0.815986 10.8508 0.666748 10.6667 0.666748H10C9.81591 0.666748 9.66667 0.815986 9.66667 1.00008V2.00008H6.33333V1.00008C6.33333 0.815986 6.1841 0.666748 6 0.666748H5.33333ZM3.99498 3.35623C4.22961 3.33707 4.53372 3.33396 5 3.33349V4.00008C5 4.18418 5.14924 4.33341 5.33333 4.33341H6C6.1841 4.33341 6.33333 4.18418 6.33333 4.00008V3.33341H9.66667V4.00008C9.66667 4.18418 9.81591 4.33341 10 4.33341H10.6667C10.8508 4.33341 11 4.18418 11 4.00008V3.33349C11.4663 3.33396 11.7704 3.33707 12.005 3.35623C12.1292 3.36638 12.2044 3.37913 12.25 3.38988C12.2717 3.39499 12.2851 3.39927 12.2923 3.40185C12.2992 3.40432 12.3027 3.40608 12.3027 3.40608C12.4281 3.46999 12.5301 3.57198 12.594 3.69742C12.594 3.69742 12.5958 3.70087 12.5982 3.7078C12.6008 3.71502 12.6051 3.72837 12.6102 3.75008C12.621 3.79572 12.6337 3.87086 12.6438 3.99506C12.6656 4.26168 12.6667 4.61803 12.6667 5.20008V12.1334C12.6667 12.7155 12.6656 13.0718 12.6438 13.3384C12.6337 13.4626 12.621 13.5378 12.6102 13.5834C12.6051 13.6051 12.6008 13.6185 12.5982 13.6257C12.5969 13.6295 12.5958 13.632 12.5951 13.6337C12.5945 13.6351 12.594 13.6361 12.594 13.6361C12.5301 13.7615 12.4281 13.8635 12.3027 13.9274C12.3027 13.9274 12.2992 13.9292 12.2923 13.9316C12.2851 13.9342 12.2717 13.9385 12.25 13.9436C12.2044 13.9544 12.1292 13.9671 12.005 13.9773C11.7384 13.999 11.3821 14.0001 10.8 14.0001H5.2C4.61795 14.0001 4.26159 13.999 3.99498 13.9773C3.87078 13.9671 3.79563 13.9544 3.75 13.9436C3.72829 13.9385 3.71494 13.9342 3.70772 13.9316C3.70078 13.9292 3.69734 13.9274 3.69734 13.9274C3.5719 13.8635 3.46991 13.7615 3.406 13.6361C3.406 13.6361 3.40424 13.6326 3.40177 13.6257C3.39919 13.6185 3.39491 13.6051 3.38979 13.5834C3.37905 13.5378 3.3663 13.4626 3.35615 13.3384C3.33437 13.0718 3.33333 12.7155 3.33333 12.1334V5.20008C3.33333 4.61803 3.33437 4.26168 3.35615 3.99506C3.3663 3.87086 3.37905 3.79572 3.38979 3.75008C3.39491 3.72837 3.39919 3.71502 3.40177 3.7078C3.40424 3.70087 3.406 3.69742 3.406 3.69742C3.46991 3.57198 3.5719 3.46999 3.69734 3.40608C3.69734 3.40608 3.70078 3.40432 3.70772 3.40185C3.71494 3.39927 3.72829 3.39499 3.75 3.38988C3.79563 3.37913 3.87078 3.36638 3.99498 3.35623Z",fill:"black",fillOpacity:"0.65"})]})}const ze=()=>h.jsx(ee,{svg:h.jsx(We,{})});function Ye(){return h.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.00001 1.33325C4.31811 1.33325 1.33334 4.31802 1.33334 7.99992C1.33334 11.6818 4.31811 14.6666 8.00001 14.6666C11.6819 14.6666 14.6667 11.6818 14.6667 7.99992C14.6667 4.31802 11.6819 1.33325 8.00001 1.33325ZM2.66668 7.99992C2.66668 5.0544 5.05449 2.66659 8.00001 2.66659C10.9455 2.66659 13.3333 5.0544 13.3333 7.99992C13.3333 10.9454 10.9455 13.3333 8.00001 13.3333C5.05449 13.3333 2.66668 10.9454 2.66668 7.99992Z",fill:"black",fillOpacity:"0.65"}),h.jsx("path",{d:"M10.5774 5.42256C10.7058 5.551 10.7248 5.75177 10.6226 5.90174L8.94059 8.36882C8.77293 8.61474 8.64922 8.79611 8.50084 8.93411C8.33623 9.08721 8.13565 9.19632 7.91765 9.25117C7.7212 9.3006 7.50169 9.30058 7.20415 9.30054H5.33334C5.14925 9.30054 5.00001 9.15131 5.00001 8.96721V8.30054C5.00001 8.11645 5.14925 7.96721 5.33334 7.96721H7.12446C7.34737 7.96721 7.42005 7.96547 7.47857 7.95074C7.54397 7.93428 7.60415 7.90155 7.65353 7.85563C7.69773 7.81451 7.7387 7.75445 7.86425 7.57046L9.62255 4.99293C9.74585 4.81211 9.99247 4.78872 10.1457 4.94185L10.5774 5.42256Z",fill:"black",fillOpacity:"0.65"}),h.jsx("path",{d:"M8.7713 6.17157C8.98705 5.95582 9.3368 5.95582 9.55255 6.17157L10.4956 7.11462C10.7113 7.33037 10.7113 7.68012 10.4956 7.89587L9.55255 8.83891C9.3368 9.05466 8.98705 9.05466 8.7713 8.83891L7.82825 7.89587C7.6125 7.68012 7.6125 7.33037 7.82825 7.11462L8.7713 6.17157Z",fill:"black",fillOpacity:"0.65"})]})}const qe=()=>h.jsx(ee,{svg:h.jsx(Ye,{})});function Qe(){return h.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:h.jsx("path",{d:"M6.67719 3.25174C4.45075 2.48478 2.06357 4.24855 2.06345 6.61273C1.2164 7.25921 0.666626 8.28994 0.666626 9.45161C0.666626 11.4113 2.23008 13 4.15869 13H11.4897C11.5315 13 11.5725 12.9963 11.6123 12.9891C13.6928 12.8354 15.3333 11.0723 15.3333 8.91935C15.3333 7.50456 14.6244 6.25874 13.5506 5.52743C13.2846 3.53512 11.6047 2 9.57139 2C8.43412 2 7.40708 2.481 6.67719 3.25174ZM6.24293 4.51237L7.05483 4.79205L7.6453 4.16855C8.13654 3.64981 8.81905 3.33333 9.57139 3.33333C10.9112 3.33333 12.048 4.34848 12.229 5.70388L12.3078 6.29421L12.8001 6.62946C13.5202 7.11991 14 7.95877 14 8.91935C14 10.3867 12.8856 11.5581 11.5141 11.6594L11.4451 11.6645L11.4331 11.6667H8.66663V7.94281L9.95952 9.2357C10.0897 9.36588 10.3007 9.36588 10.4309 9.2357L10.9023 8.7643C11.0325 8.63412 11.0325 8.42307 10.9023 8.29289L8.47136 5.86193C8.21101 5.60158 7.7889 5.60158 7.52855 5.86193L5.09759 8.29289C4.96742 8.42307 4.96741 8.63412 5.09759 8.7643L5.56899 9.2357C5.69917 9.36588 5.91022 9.36588 6.0404 9.2357L7.33329 7.94281V11.6667H4.15869C2.98649 11.6667 1.99996 10.6951 1.99996 9.45161C1.99996 8.71875 2.34528 8.07493 2.87239 7.67263L3.39675 7.27243L3.39678 6.61279C3.39686 5.12619 4.91793 4.05594 6.24293 4.51237Z",fill:"black",fillOpacity:"0.65"})})}const Je=()=>h.jsx(ee,{svg:h.jsx(Qe,{})}),ge=[{text:J("scanQRCode2Debug"),itemKey:"scan_qrcode",icon:h.jsx(Xe,{}),path:"/"},{itemKey:"project_overview",text:J("projectInfo"),icon:h.jsx(ze,{}),path:"/project_overview"},{itemKey:"integration_assistant",text:J("integrationAssistant"),icon:h.jsx(qe,{}),path:"/integration_assistant"},{itemKey:"upload_publish",text:J("codePreCheck"),icon:h.jsx(Je,{}),path:"/upload_publish"}],nt=()=>{const u=je(),t=Me(),e=s=>{const a=ge.find(i=>i.itemKey===s.itemKey);a&&u(a.path)},n=F.useMemo(()=>{const s=t.pathname;return s==="/"||["/basic_debug_guide","/network_diagnostics","/manual_connect","/launch_mode","/debug_setting"].includes(s)?"scan_qrcode":s.startsWith("/integration_assistant")?"integration_assistant":s==="/project_overview"||s==="/project_detail"?"project_overview":s==="/upload_publish"||s==="/version_upload"||s==="/precheck_code"?"upload_publish":""},[t.pathname]);return h.jsx(N,{limitIndent:!1,bodyStyle:{height:"100vh",padding:"0 12px",width:"100%",boxSizing:"border-box"},items:ge,selectedKeys:[n],onSelect:e})};export{nt as Sidebar};
@@ -1 +1 @@
1
- import{a1 as G,h as X,k as B,a2 as z,a3 as U,a4 as _,a5 as Y,a6 as q,a7 as W,a8 as Z,a9 as H,aa as J,ab as Q,R as a,m as F,n as g,q as s,ac as V,t as N,r as ee,V as te,_ as $,s as se,ad as ne}from"./index-07cXGo3a.js";const w={PREFIX:`${X}-dropdown`},O={POSITION_SET:G.POSITION_SET,TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_LEAVE_DELAY:100,ITEM_TYPE:["primary","secondary","tertiary","warning","danger"]},R={SPACING:4,NESTED_SPACING:2};class oe extends B{handleVisibleChange(e){this._adapter.setPopVisible(e),this._adapter.notifyVisibleChange(e);const{trigger:n}=this.getProps();if(e&&n==="click"){const t=this._adapter.getPopupId();this.setFocusToFirstMenuItem(t)}}getMenuItemNodes(e){const n=document.getElementById(e);return n?Array.from(n.getElementsByTagName("li")).filter(t=>t.ariaDisabled==="false"):null}setFocusToFirstMenuItem(e){const n=this.getMenuItemNodes(e);n&&z(n)}setFocusToLastMenuItem(e){const n=this.getMenuItemNodes(e);n&&U(n)}handleKeyDown(e){var n,t;const o=(t=(n=e.target)===null||n===void 0?void 0:n.attributes["data-popupid"])===null||t===void 0?void 0:t.value,{visible:r}=this._adapter.getStates();switch(e.key){case" ":case"Enter":e.target.click();break;case"ArrowDown":this.setFocusToFirstMenuItem(o),r&&_(e);break;case"ArrowUp":this.setFocusToLastMenuItem(o),r&&_(e);break}}}class re extends B{constructor(){super(...arguments),this.menuItemNodes=null,this.firstChars=[]}handleEscape(e){this._adapter.getContext("trigger")==="custom"&&(e&&Y(document.querySelectorAll("[data-popupid]"),e.id)).focus()}setFocusByFirstCharacter(e,n){const t=q(this.menuItemNodes,e,this.firstChars,n);t>=0&&W(this.menuItemNodes,this.menuItemNodes[t])}onMenuKeydown(e){const n=Z(e.target,"tooltip");this.menuItemNodes||(this.menuItemNodes=[...e.target.parentNode.getElementsByTagName("li")].filter(o=>o.ariaDisabled!=="true")),this.firstChars.length===0&&this.menuItemNodes.forEach(o=>{var r;this.firstChars.push((r=o.textContent.trim()[0])===null||r===void 0?void 0:r.toLowerCase())});const t=this.menuItemNodes.find(o=>o.tabIndex===0);switch(e.key){case" ":case"Enter":e.target.click();break;case"Escape":this.handleEscape(n);break;case"ArrowUp":Q(this.menuItemNodes,t),_(e);break;case"ArrowDown":J(this.menuItemNodes,t),_(e);break;default:H(e.key)&&this.setFocusByFirstCharacter(t,e.key);break}}}const E=a.createContext({level:0});var ae=function(i,e){var n={};for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&e.indexOf(t)<0&&(n[t]=i[t]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(i);o<t.length;o++)e.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(i,t[o])&&(n[t[o]]=i[t[o]]);return n};const ie=w.PREFIX;class M extends F{constructor(e){super(e),this.foundation=new re(this.adapter)}get adapter(){return Object.assign({},super.adapter)}render(){const e=this.props,{children:n,className:t,style:o}=e,r=ae(e,["children","className","style"]);return a.createElement("ul",Object.assign({role:"menu","aria-orientation":"vertical"},r,{className:g(`${ie}-menu`,t),style:o,onKeyDown:l=>this.foundation.onMenuKeydown(l)}),n)}}M.propTypes={children:s.node,className:s.string,style:s.object};M.contextType=E;const f=w.PREFIX;class x extends F{render(){const{children:e,disabled:n,className:t,forwardRef:o,style:r,type:l,active:u,icon:m,onKeyDown:I,showTick:v,hover:h}=this.props,{showTick:C}=this.context,d=C??v,P=g(t,{[`${f}-item`]:!0,[`${f}-item-disabled`]:n,[`${f}-item-hover`]:h,[`${f}-item-withTick`]:d,[`${f}-item-${l}`]:l,[`${f}-item-active`]:u}),y={};n||["onClick","onMouseEnter","onMouseLeave","onContextMenu"].forEach(p=>{this.context.level!==1&&p==="onClick"?y.onMouseDown=A=>{var j,D;A.button===0&&((D=(j=this.props)[p])===null||D===void 0||D.call(j,A))}:y[p]=this.props[p]});let b=null;switch(!0){case(d&&u):b=a.createElement(V,null);break;case(d&&!u):b=a.createElement(V,{style:{color:"transparent"}});break;default:b=null;break}let T=null;return m&&(T=a.createElement("div",{className:`${f}-item-icon`},m)),a.createElement("li",Object.assign({role:"menuitem",tabIndex:-1,"aria-disabled":n},y,{onKeyDown:I,ref:p=>o(p),className:P,style:r},this.getDataAttr(this.props)),b,T,e)}}x.propTypes={children:s.oneOfType([s.string,s.node]),name:s.string,disabled:s.bool,selected:s.bool,onClick:s.func,onMouseEnter:s.func,onMouseLeave:s.func,onContextMenu:s.func,className:s.string,style:s.object,forwardRef:s.func,type:s.oneOf(O.ITEM_TYPE),active:s.bool,icon:s.node};x.contextType=E;x.defaultProps={disabled:!1,divided:!1,selected:!1,onMouseEnter:N,onMouseLeave:N,forwardRef:N};x.elementType="Dropdown.Item";const le=w.PREFIX,K=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{style:e,className:n}=i;return a.createElement("div",{className:g(`${le}-divider`,n),style:e})};K.propTypes={style:s.object,className:s.string};const L=w.PREFIX;class S extends ee.PureComponent{render(){const{className:e,style:n,children:t}=this.props,{showTick:o}=this.context,r=g({[`${L}-title`]:!0,[`${L}-title-withTick`]:o},e);return a.createElement("div",{className:r,style:n},t)}}S.propTypes={children:s.node,className:s.string,style:s.object};S.contextType=E;var k=function(i,e){var n={};for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&e.indexOf(t)<0&&(n[t]=i[t]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(i);o<t.length;o++)e.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(i,t[o])&&(n[t[o]]=i[t[o]]);return n};const ce=O.POSITION_SET,ue=O.TRIGGER_SET;class c extends F{constructor(e){super(e),this.handleVisibleChange=n=>this.foundation.handleVisibleChange(n),this.state={popVisible:e.visible},this.foundation=new oe(this.adapter),this.tooltipRef=a.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPopVisible:e=>this.setState({popVisible:e}),notifyVisibleChange:e=>{var n,t;return(t=(n=this.props).onVisibleChange)===null||t===void 0?void 0:t.call(n,e)},getPopupId:()=>this.tooltipRef.current.getPopupId()})}renderContent(){const{render:e,menu:n,contentClassName:t,style:o,showTick:r,prefixCls:l,trigger:u}=this.props,m=g(l,t),{level:I=0}=this.context,v={showTick:r,level:I+1,trigger:u};let h=null;return a.isValidElement(e)?h=e:Array.isArray(n)&&(h=this.renderMenu()),a.createElement(E.Provider,{value:v},a.createElement("div",{className:m,style:o},a.createElement("div",{className:`${l}-content`,"x-semi-prop":"render"},h)))}renderMenu(){const{menu:e}=this.props,n=e.map((t,o)=>{switch(t.node){case"title":{const{name:r,node:l}=t,u=k(t,["name","node"]);return a.createElement(c.Title,Object.assign({},u,{key:l+r+o}),r)}case"item":{const{node:r,name:l}=t,u=k(t,["node","name"]);return a.createElement(c.Item,Object.assign({},u,{key:r+l+o}),l)}case"divider":return a.createElement(c.Divider,{key:t.node+o});default:return null}});return a.createElement(c.Menu,null,n)}renderPopCard(){const{render:e,contentClassName:n,style:t,showTick:o,prefixCls:r}=this.props,l=g(r,n),{level:u=0}=this.context,m={showTick:o,level:u+1};return a.createElement(E.Provider,{value:m},a.createElement("div",{className:l,style:t},a.createElement("div",{className:`${r}-content`},e)))}render(){const e=this.props,{children:n,position:t,trigger:o,onVisibleChange:r,zIndex:l,className:u,motion:m,margin:I,style:v,prefixCls:h}=e,C=k(e,["children","position","trigger","onVisibleChange","zIndex","className","motion","margin","style","prefixCls"]);let{spacing:d}=this.props;const{level:P}=this.context,{popVisible:y}=this.state,b=this.renderContent();return P>0?d=typeof d=="number"?d:R.NESTED_SPACING:(d===null||typeof d>"u")&&(d=R.SPACING),a.createElement(te,Object.assign({zIndex:l,motion:m,margin:I,content:b,className:u,prefixCls:h,spacing:d,position:t,trigger:o,onVisibleChange:this.handleVisibleChange,showArrow:!1,returnFocusOnClose:!0,ref:this.tooltipRef},C),a.isValidElement(n)?a.cloneElement(n,{className:g($(n,"props.className"),{[`${h}-showing`]:y}),"aria-haspopup":!0,"aria-expanded":y,onKeyDown:T=>{this.foundation.handleKeyDown(T);const p=$(n,"props.onKeyDown");p&&p(T)}}):n)}}c.Menu=M;c.Item=x;c.Divider=K;c.Title=S;c.contextType=E;c.propTypes={children:s.node,contentClassName:s.oneOfType([s.string,s.array]),className:s.string,getPopupContainer:s.func,margin:s.oneOfType([s.number,s.object]),mouseEnterDelay:s.number,mouseLeaveDelay:s.number,menu:s.array,motion:s.oneOfType([s.bool,s.func,s.object]),onVisibleChange:s.func,prefixCls:s.string,position:s.oneOf(ce),rePosKey:s.oneOfType([s.string,s.number]),render:s.node,spacing:s.oneOfType([s.number,s.object]),showTick:s.bool,style:s.object,trigger:s.oneOf(ue),visible:s.bool,zIndex:s.number};c.__SemiComponentName__="Dropdown";c.defaultProps=se(c.__SemiComponentName__,{onVisibleChange:N,prefixCls:w.PREFIX,zIndex:ne.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",position:"bottom",mouseLeaveDelay:O.DEFAULT_LEAVE_DELAY,showTick:!1,closeOnEsc:!0,onEscKeyDown:N});export{c as D};
1
+ import{a1 as G,h as X,k as B,a2 as z,a3 as U,a4 as _,a5 as Y,a6 as q,a7 as W,a8 as Z,a9 as H,aa as J,ab as Q,R as a,m as F,n as g,q as s,ac as V,t as N,r as ee,V as te,_ as $,s as se,ad as ne}from"./index-BVIWa0s0.js";const w={PREFIX:`${X}-dropdown`},O={POSITION_SET:G.POSITION_SET,TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_LEAVE_DELAY:100,ITEM_TYPE:["primary","secondary","tertiary","warning","danger"]},R={SPACING:4,NESTED_SPACING:2};class oe extends B{handleVisibleChange(e){this._adapter.setPopVisible(e),this._adapter.notifyVisibleChange(e);const{trigger:n}=this.getProps();if(e&&n==="click"){const t=this._adapter.getPopupId();this.setFocusToFirstMenuItem(t)}}getMenuItemNodes(e){const n=document.getElementById(e);return n?Array.from(n.getElementsByTagName("li")).filter(t=>t.ariaDisabled==="false"):null}setFocusToFirstMenuItem(e){const n=this.getMenuItemNodes(e);n&&z(n)}setFocusToLastMenuItem(e){const n=this.getMenuItemNodes(e);n&&U(n)}handleKeyDown(e){var n,t;const o=(t=(n=e.target)===null||n===void 0?void 0:n.attributes["data-popupid"])===null||t===void 0?void 0:t.value,{visible:r}=this._adapter.getStates();switch(e.key){case" ":case"Enter":e.target.click();break;case"ArrowDown":this.setFocusToFirstMenuItem(o),r&&_(e);break;case"ArrowUp":this.setFocusToLastMenuItem(o),r&&_(e);break}}}class re extends B{constructor(){super(...arguments),this.menuItemNodes=null,this.firstChars=[]}handleEscape(e){this._adapter.getContext("trigger")==="custom"&&(e&&Y(document.querySelectorAll("[data-popupid]"),e.id)).focus()}setFocusByFirstCharacter(e,n){const t=q(this.menuItemNodes,e,this.firstChars,n);t>=0&&W(this.menuItemNodes,this.menuItemNodes[t])}onMenuKeydown(e){const n=Z(e.target,"tooltip");this.menuItemNodes||(this.menuItemNodes=[...e.target.parentNode.getElementsByTagName("li")].filter(o=>o.ariaDisabled!=="true")),this.firstChars.length===0&&this.menuItemNodes.forEach(o=>{var r;this.firstChars.push((r=o.textContent.trim()[0])===null||r===void 0?void 0:r.toLowerCase())});const t=this.menuItemNodes.find(o=>o.tabIndex===0);switch(e.key){case" ":case"Enter":e.target.click();break;case"Escape":this.handleEscape(n);break;case"ArrowUp":Q(this.menuItemNodes,t),_(e);break;case"ArrowDown":J(this.menuItemNodes,t),_(e);break;default:H(e.key)&&this.setFocusByFirstCharacter(t,e.key);break}}}const E=a.createContext({level:0});var ae=function(i,e){var n={};for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&e.indexOf(t)<0&&(n[t]=i[t]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(i);o<t.length;o++)e.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(i,t[o])&&(n[t[o]]=i[t[o]]);return n};const ie=w.PREFIX;class M extends F{constructor(e){super(e),this.foundation=new re(this.adapter)}get adapter(){return Object.assign({},super.adapter)}render(){const e=this.props,{children:n,className:t,style:o}=e,r=ae(e,["children","className","style"]);return a.createElement("ul",Object.assign({role:"menu","aria-orientation":"vertical"},r,{className:g(`${ie}-menu`,t),style:o,onKeyDown:l=>this.foundation.onMenuKeydown(l)}),n)}}M.propTypes={children:s.node,className:s.string,style:s.object};M.contextType=E;const f=w.PREFIX;class x extends F{render(){const{children:e,disabled:n,className:t,forwardRef:o,style:r,type:l,active:u,icon:m,onKeyDown:I,showTick:v,hover:h}=this.props,{showTick:C}=this.context,d=C??v,P=g(t,{[`${f}-item`]:!0,[`${f}-item-disabled`]:n,[`${f}-item-hover`]:h,[`${f}-item-withTick`]:d,[`${f}-item-${l}`]:l,[`${f}-item-active`]:u}),y={};n||["onClick","onMouseEnter","onMouseLeave","onContextMenu"].forEach(p=>{this.context.level!==1&&p==="onClick"?y.onMouseDown=A=>{var j,D;A.button===0&&((D=(j=this.props)[p])===null||D===void 0||D.call(j,A))}:y[p]=this.props[p]});let b=null;switch(!0){case(d&&u):b=a.createElement(V,null);break;case(d&&!u):b=a.createElement(V,{style:{color:"transparent"}});break;default:b=null;break}let T=null;return m&&(T=a.createElement("div",{className:`${f}-item-icon`},m)),a.createElement("li",Object.assign({role:"menuitem",tabIndex:-1,"aria-disabled":n},y,{onKeyDown:I,ref:p=>o(p),className:P,style:r},this.getDataAttr(this.props)),b,T,e)}}x.propTypes={children:s.oneOfType([s.string,s.node]),name:s.string,disabled:s.bool,selected:s.bool,onClick:s.func,onMouseEnter:s.func,onMouseLeave:s.func,onContextMenu:s.func,className:s.string,style:s.object,forwardRef:s.func,type:s.oneOf(O.ITEM_TYPE),active:s.bool,icon:s.node};x.contextType=E;x.defaultProps={disabled:!1,divided:!1,selected:!1,onMouseEnter:N,onMouseLeave:N,forwardRef:N};x.elementType="Dropdown.Item";const le=w.PREFIX,K=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{style:e,className:n}=i;return a.createElement("div",{className:g(`${le}-divider`,n),style:e})};K.propTypes={style:s.object,className:s.string};const L=w.PREFIX;class S extends ee.PureComponent{render(){const{className:e,style:n,children:t}=this.props,{showTick:o}=this.context,r=g({[`${L}-title`]:!0,[`${L}-title-withTick`]:o},e);return a.createElement("div",{className:r,style:n},t)}}S.propTypes={children:s.node,className:s.string,style:s.object};S.contextType=E;var k=function(i,e){var n={};for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&e.indexOf(t)<0&&(n[t]=i[t]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(i);o<t.length;o++)e.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(i,t[o])&&(n[t[o]]=i[t[o]]);return n};const ce=O.POSITION_SET,ue=O.TRIGGER_SET;class c extends F{constructor(e){super(e),this.handleVisibleChange=n=>this.foundation.handleVisibleChange(n),this.state={popVisible:e.visible},this.foundation=new oe(this.adapter),this.tooltipRef=a.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPopVisible:e=>this.setState({popVisible:e}),notifyVisibleChange:e=>{var n,t;return(t=(n=this.props).onVisibleChange)===null||t===void 0?void 0:t.call(n,e)},getPopupId:()=>this.tooltipRef.current.getPopupId()})}renderContent(){const{render:e,menu:n,contentClassName:t,style:o,showTick:r,prefixCls:l,trigger:u}=this.props,m=g(l,t),{level:I=0}=this.context,v={showTick:r,level:I+1,trigger:u};let h=null;return a.isValidElement(e)?h=e:Array.isArray(n)&&(h=this.renderMenu()),a.createElement(E.Provider,{value:v},a.createElement("div",{className:m,style:o},a.createElement("div",{className:`${l}-content`,"x-semi-prop":"render"},h)))}renderMenu(){const{menu:e}=this.props,n=e.map((t,o)=>{switch(t.node){case"title":{const{name:r,node:l}=t,u=k(t,["name","node"]);return a.createElement(c.Title,Object.assign({},u,{key:l+r+o}),r)}case"item":{const{node:r,name:l}=t,u=k(t,["node","name"]);return a.createElement(c.Item,Object.assign({},u,{key:r+l+o}),l)}case"divider":return a.createElement(c.Divider,{key:t.node+o});default:return null}});return a.createElement(c.Menu,null,n)}renderPopCard(){const{render:e,contentClassName:n,style:t,showTick:o,prefixCls:r}=this.props,l=g(r,n),{level:u=0}=this.context,m={showTick:o,level:u+1};return a.createElement(E.Provider,{value:m},a.createElement("div",{className:l,style:t},a.createElement("div",{className:`${r}-content`},e)))}render(){const e=this.props,{children:n,position:t,trigger:o,onVisibleChange:r,zIndex:l,className:u,motion:m,margin:I,style:v,prefixCls:h}=e,C=k(e,["children","position","trigger","onVisibleChange","zIndex","className","motion","margin","style","prefixCls"]);let{spacing:d}=this.props;const{level:P}=this.context,{popVisible:y}=this.state,b=this.renderContent();return P>0?d=typeof d=="number"?d:R.NESTED_SPACING:(d===null||typeof d>"u")&&(d=R.SPACING),a.createElement(te,Object.assign({zIndex:l,motion:m,margin:I,content:b,className:u,prefixCls:h,spacing:d,position:t,trigger:o,onVisibleChange:this.handleVisibleChange,showArrow:!1,returnFocusOnClose:!0,ref:this.tooltipRef},C),a.isValidElement(n)?a.cloneElement(n,{className:g($(n,"props.className"),{[`${h}-showing`]:y}),"aria-haspopup":!0,"aria-expanded":y,onKeyDown:T=>{this.foundation.handleKeyDown(T);const p=$(n,"props.onKeyDown");p&&p(T)}}):n)}}c.Menu=M;c.Item=x;c.Divider=K;c.Title=S;c.contextType=E;c.propTypes={children:s.node,contentClassName:s.oneOfType([s.string,s.array]),className:s.string,getPopupContainer:s.func,margin:s.oneOfType([s.number,s.object]),mouseEnterDelay:s.number,mouseLeaveDelay:s.number,menu:s.array,motion:s.oneOfType([s.bool,s.func,s.object]),onVisibleChange:s.func,prefixCls:s.string,position:s.oneOf(ce),rePosKey:s.oneOfType([s.string,s.number]),render:s.node,spacing:s.oneOfType([s.number,s.object]),showTick:s.bool,style:s.object,trigger:s.oneOf(ue),visible:s.bool,zIndex:s.number};c.__SemiComponentName__="Dropdown";c.defaultProps=se(c.__SemiComponentName__,{onVisibleChange:N,prefixCls:w.PREFIX,zIndex:ne.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",position:"bottom",mouseLeaveDelay:O.DEFAULT_LEAVE_DELAY,showTick:!1,closeOnEsc:!0,onEscKeyDown:N});export{c as D};
@@ -1 +1 @@
1
- import{j as e,T as s,i as c,A as o}from"./index-07cXGo3a.js";import{D as n}from"./index-Ba-my-vz.js";const a=[{node:"item",name:c("quickStart"),link:"https://bytedance.sg.larkoffice.com/docx/MarqdNvQLoihvjxN4rFllgjBgwb"},{node:"item",name:c("jsApiList"),link:"https://bytedance.larkoffice.com/wiki/GQscwDOQSiPxyjkbzyfckh2pnDg"},{node:"item",name:c("advancedGuide"),link:"https://bytedance.larkoffice.com/wiki/AGqRwu0qQiXZpVkkToUcRP99nwc"},{node:"item",name:c("faq"),link:"https://bytedance.larkoffice.com/wiki/O6aWwFhDBiEglwkcnJ4ccJpdnmb"}],m=()=>e.jsx(n,{trigger:"hover",position:"bottomRight",render:e.jsx(e.Fragment,{children:a.map(i=>e.jsx(n.Item,{onClick:()=>{window.open(i.link)},children:i.name},i.name))}),children:e.jsxs("div",{className:"access-docs",children:[e.jsx(s.Text,{className:"access-docs-text",type:"primary",children:c("docs")}),e.jsx(o,{className:"access-docs-icon"})]})});export{m as AccessDocs};
1
+ import{j as e,T as s,i as c,A as o}from"./index-BVIWa0s0.js";import{D as n}from"./index-Co_mqsxn.js";const a=[{node:"item",name:c("quickStart"),link:"https://bytedance.sg.larkoffice.com/docx/MarqdNvQLoihvjxN4rFllgjBgwb"},{node:"item",name:c("jsApiList"),link:"https://bytedance.larkoffice.com/wiki/GQscwDOQSiPxyjkbzyfckh2pnDg"},{node:"item",name:c("advancedGuide"),link:"https://bytedance.larkoffice.com/wiki/AGqRwu0qQiXZpVkkToUcRP99nwc"},{node:"item",name:c("faq"),link:"https://bytedance.larkoffice.com/wiki/O6aWwFhDBiEglwkcnJ4ccJpdnmb"}],m=()=>e.jsx(n,{trigger:"hover",position:"bottomRight",render:e.jsx(e.Fragment,{children:a.map(i=>e.jsx(n.Item,{onClick:()=>{window.open(i.link)},children:i.name},i.name))}),children:e.jsxs("div",{className:"access-docs",children:[e.jsx(s.Text,{className:"access-docs-text",type:"primary",children:c("docs")}),e.jsx(o,{className:"access-docs-icon"})]})});export{m as AccessDocs};
@@ -1 +1 @@
1
- import{u as o,j as s,T as t,i}from"./index-07cXGo3a.js";import{m as r,M as c,C as l,o as d}from"./MonetizationModeSummary-CD54_ROf.js";import"./index-tOg_vZEc.js";const p=()=>{const e=o(),n=a=>i(a);return s.jsx("div",{className:"integration-assistant-page",children:s.jsxs("div",{className:"integration-assistant-map-layout",children:[s.jsx("section",{className:"integration-assistant-map-intro",children:s.jsxs("div",{className:"integration-assistant-map-intro-copy",children:[s.jsx(t.Title,{heading:2,className:"integration-assistant-title",children:i("ia.overview.title")}),s.jsx(t.Paragraph,{className:"integration-assistant-subtitle",children:i("ia.overview.desc")})]})}),s.jsxs("section",{className:"integration-assistant-mode-section integration-assistant-map-tile",children:[s.jsxs("div",{className:"integration-assistant-mode-head",children:[s.jsx(t.Title,{heading:4,className:"integration-assistant-map-section-title",children:i("ia.monetization.title")}),s.jsx(t.Paragraph,{className:"integration-assistant-section-desc",children:i("ia.monetization.desc")})]}),s.jsx("div",{className:"integration-assistant-mode-grid",children:r.map(a=>s.jsxs("button",{type:"button",className:`integration-assistant-mode-card integration-assistant-mode-card-${a.key}`,onClick:()=>e(`/integration_assistant/mode/${a.key}`),children:[s.jsx("div",{className:"integration-assistant-mode-card-title-row",children:s.jsx(t.Title,{heading:5,className:"integration-assistant-mode-card-title",children:n(a.titleKey)})}),s.jsx(c,{mode:a,compact:!0})]},a.key))})]}),s.jsxs("section",{className:"integration-assistant-overview-card integration-assistant-map-tile",children:[s.jsx("div",{className:"integration-assistant-key-intro",children:s.jsxs("div",{className:"integration-assistant-map-section-head-main",children:[s.jsx(t.Title,{heading:4,className:"integration-assistant-map-section-title",children:i("ia.overview.groups.title")}),s.jsx(t.Paragraph,{className:"integration-assistant-section-desc",children:i("ia.overview.groups.desc")})]})}),s.jsx(l,{sections:d.map(a=>({...a,sectionClassName:`integration-assistant-map-section integration-assistant-fixed-section ${a.sectionClassName}`}))})]})]})})};export{p as IntegrationAssistant};
1
+ import{u as o,j as s,T as t,i}from"./index-BVIWa0s0.js";import{m as r,M as c,C as l,o as d}from"./MonetizationModeSummary-BS7EmGz7.js";import"./index-tOg_vZEc.js";const p=()=>{const e=o(),n=a=>i(a);return s.jsx("div",{className:"integration-assistant-page",children:s.jsxs("div",{className:"integration-assistant-map-layout",children:[s.jsx("section",{className:"integration-assistant-map-intro",children:s.jsxs("div",{className:"integration-assistant-map-intro-copy",children:[s.jsx(t.Title,{heading:2,className:"integration-assistant-title",children:i("ia.overview.title")}),s.jsx(t.Paragraph,{className:"integration-assistant-subtitle",children:i("ia.overview.desc")})]})}),s.jsxs("section",{className:"integration-assistant-mode-section integration-assistant-map-tile",children:[s.jsxs("div",{className:"integration-assistant-mode-head",children:[s.jsx(t.Title,{heading:4,className:"integration-assistant-map-section-title",children:i("ia.monetization.title")}),s.jsx(t.Paragraph,{className:"integration-assistant-section-desc",children:i("ia.monetization.desc")})]}),s.jsx("div",{className:"integration-assistant-mode-grid",children:r.map(a=>s.jsxs("button",{type:"button",className:`integration-assistant-mode-card integration-assistant-mode-card-${a.key}`,onClick:()=>e(`/integration_assistant/mode/${a.key}`),children:[s.jsx("div",{className:"integration-assistant-mode-card-title-row",children:s.jsx(t.Title,{heading:5,className:"integration-assistant-mode-card-title",children:n(a.titleKey)})}),s.jsx(c,{mode:a,compact:!0})]},a.key))})]}),s.jsxs("section",{className:"integration-assistant-overview-card integration-assistant-map-tile",children:[s.jsx("div",{className:"integration-assistant-key-intro",children:s.jsxs("div",{className:"integration-assistant-map-section-head-main",children:[s.jsx(t.Title,{heading:4,className:"integration-assistant-map-section-title",children:i("ia.overview.groups.title")}),s.jsx(t.Paragraph,{className:"integration-assistant-section-desc",children:i("ia.overview.groups.desc")})]})}),s.jsx(l,{sections:d.map(a=>({...a,sectionClassName:`integration-assistant-map-section integration-assistant-fixed-section ${a.sectionClassName}`}))})]})]})})};export{p as IntegrationAssistant};
@@ -1 +1 @@
1
- import{r as a,j as e,T as l,i,S as R,a as S,u as C,B as z,b as M,c as L,d as F,e as B,g as O,f as A}from"./index-07cXGo3a.js";var G=Object.defineProperty,Z=Object.getOwnPropertySymbols,U=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable,w=(r,t,s)=>t in r?G(r,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[t]=s,V=(r,t)=>{for(var s in t||(t={}))U.call(t,s)&&w(r,s,t[s]);if(Z)for(var s of Z(t))W.call(t,s)&&w(r,s,t[s]);return r};function H(r){return a.createElement("svg",V({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},r),a.createElement("rect",{width:200,height:200,fill:"transparent"}),a.createElement("path",{d:"M74.7 78.6c20.78-6.32 57.55-12.26 71.81-9.86 4.21.7 8.12 1.98 11.36 3.42-.51-1.69-.95-3.5-1.38-5.3l-.04-.18c-1.03-4.27-2.05-8.44-3.95-10.55-4.8-5.32.67-10.12.67-10.12l.93-10.53c13.02 4.82 21.65 14.92 27 25.08 4.57 8.67 6.75 17.37 7.25 22.89 1.06 12-8.18 18.86-19.2 18.86-9.74 0-18.36-1.64-24.81-3.1.64 2.18 5.44 19.18 7.53 32.66l-46.15.58-7.58-14.68-4.66-12.26c-19.46 7.46-50.77 19.02-64.9 18.44-10.35-.42-15.68-15.68-17.44-28.7a71.55 71.55 0 0 1-.67-9.4c0-5.64.3-12.18 2.22-17.89.74-2.21 1.73-4.3 3.04-6.17a18.1 18.1 0 0 1 4.6-4.59c0 4-1.02 13.54 2.8 14.12 5.06.78 10.4-9.08 13.85-7.06 3.87 2.27-1.65 16.34-1.33 17.2.27.7.53 1.4.76 2.07a48.99 48.99 0 0 1 2.25 8.55C46.59 87.56 60 83.06 74.69 78.6Z",fill:"white"}),a.createElement("path",{d:"M181.1 60.56c4.57 8.67 6.75 17.37 7.25 22.89 1.06 12-8.18 18.86-19.2 18.86-9.74 0-18.36-1.64-24.81-3.1m36.77-38.65c-5.36-10.16-13.99-20.26-27-25.08l-.94 10.53s-5.46 4.8-.67 10.12c1.9 2.11 2.92 6.28 3.95 10.55m24.66-6.12c-6-.37-18.32.8-24.66 6.12m0 0c1.57 6.53 3.15 13.3 7.91 13.3 7.2 0-3.6-8.84-17.85-11.24-14.25-2.4-51.03 3.54-71.82 9.86-20.78 6.32-39.04 12.71-42.77 19.1-3.63 6.23 13.24 10.92 4.49-14.17m0 0c-.23-.67-.49-1.36-.76-2.08-.32-.85 5.2-14.92 1.33-17.19-3.45-2.02-8.8 7.84-13.85 7.06-3.82-.58-2.8-10.12-2.8-14.12a18.1 18.1 0 0 0-4.6 4.6M36.4 83.52c-7.27 1.58-21.92 8.1-25.27 11.73m0 0a71.55 71.55 0 0 1-.67-9.41c0-5.64.3-12.18 2.22-17.89m-1.55 27.3c1.76 13 7.09 28.27 17.45 28.7 14.12.57 45.43-10.99 64.89-18.45l4.66 12.26 7.58 14.68 46.15-.58c-2.09-13.48-6.89-30.48-7.53-32.67M15.73 61.8c-.98 3-1.08 5.5.19 7.8m-.2-7.8a24.08 24.08 0 0 0-3.03 6.16m0 0a5.43 5.43 0 0 0 1.25 4.22m130.4 27.02c-.9-3.08-3.12-9.95-4.76-12.76",stroke:"#515151"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m156.89 15.66-2.04 27.96 2.57 28.1c-7.51-3.07-13.32-4.34-27.25-3.36-11.94.83-31.75 3.95-46.23 7.62-16.66 4.27-37.81 11.64-45.21 15.9-.77-4.64-2.92-10.15-2.92-10.15-.07-.7 2.63-8.32 2.73-13.06.08-3.08-.91-4.45-2.33-4.75a3.47 3.47 0 0 0-2.05.35c-.63.32-.86.48-1.38.84-1.34.98-2.38 2.02-3.95 3.34a17.14 17.14 0 0 1-3.04 2.17 4.6 4.6 0 0 1-2.89.63c-.63-.1-1.21-.47-1.71-1.58l-.07-.89c-.5-5.79-2.7-20.12-2.7-34.91 0-7.74 1.61-10.04 2.7-11.59l.13-.18c3.85-5.53 13.67-6.75 23.12-6.96 2.5-.14 5.2-.2 8.1-.17l.11.15H53.15l-.52.07 18.32 25.49-3.62 14.08 10.2 15.98-2.84-16.49 10-11.99-3.5-27.7s8.78-.5 19.47-1.77c10.69-1.28 18.47-1.9 29.42-1.83 1.64.01 3.4.1 5.23.22 9.64.65 18.55 2.56 21.46 4.4l.13.09h-.01Z",fill:"var(--semi-color-primary-light-default)"}),a.createElement("path",{d:"M143 27.91a1.38 1.38 0 0 1 1.77-.85c.5.18.98.41 1.44.71a1.38 1.38 0 0 1-1.53 2.31c-.26-.17-.53-.3-.82-.4a1.38 1.38 0 0 1-.85-1.77Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M140.65 28.12c.21.74-.21 1.5-.95 1.72-.36.1-.73.22-1.11.36a1.38 1.38 0 1 1-.95-2.6c.43-.16.87-.3 1.3-.43.74-.2 1.5.22 1.71.95Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M134.74 30.4c.37.67.14 1.51-.53 1.89l-1.07.62a1.38 1.38 0 1 1-1.41-2.38l1.12-.65a1.38 1.38 0 0 1 1.89.52Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M97.86 31.43h.76a1.38 1.38 0 1 1-.06 2.77h-.52a6.7 6.7 0 0 0-.57.1 1.38 1.38 0 0 1-.64-2.68c.33-.08.64-.14.94-.18l.09-.01Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M147.78 31.75c.73-.23 1.5.19 1.72.92.13.43.25.88.35 1.35a1.38 1.38 0 0 1-2.7.58c-.1-.4-.19-.78-.3-1.13-.22-.73.2-1.5.93-1.72Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M102.27 33.13c.19-.75.94-1.2 1.68-1.01.45.11.89.23 1.3.37a1.38 1.38 0 0 1-.84 2.63c-.36-.11-.73-.22-1.13-.32a1.38 1.38 0 0 1-1-1.67Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M129.3 33.68c.42.64.25 1.5-.4 1.92l-.52.34-.53.36a1.38 1.38 0 0 1-1.53-2.31l.32-.21.21-.14.3-.2.23-.15c.64-.42 1.5-.25 1.92.39Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M108.25 35.22c.36-.67 1.2-.92 1.88-.55a246.5 246.5 0 0 1 1.11.61 1.38 1.38 0 0 1-1.33 2.43l-.5-.28h-.01l-.6-.34a1.38 1.38 0 0 1-.55-1.87Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M92.83 35.77c.76-.01 1.4.6 1.4 1.36.01.16.03.34.07.55a1.38 1.38 0 1 1-2.7.58 5.62 5.62 0 0 1-.13-1.08c-.01-.76.6-1.4 1.36-1.4Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M124 37.2c.31.7 0 1.51-.7 1.82a6.07 6.07 0 0 1-1.44.45 1.38 1.38 0 1 1-.67-2.68l.58-.16c.1-.03.24-.07.42-.15.7-.3 1.51.02 1.82.72Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M113.9 38.14c.15-.75.89-1.22 1.63-1.06.35.07.72.13 1.1.16a1.38 1.38 0 0 1-.26 2.76c-.49-.05-.96-.12-1.41-.22a1.38 1.38 0 0 1-1.07-1.64Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M148.98 37.95c.76-.01 1.4.6 1.4 1.36a38.45 38.45 0 0 1 0 1.42 1.38 1.38 0 0 1-2.77-.08 24.28 24.28 0 0 0 0-1.3c0-.76.6-1.39 1.37-1.4Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M148.6 44.88c.75.16 1.22.9 1.06 1.65-.1.47-.22.94-.34 1.41a1.38 1.38 0 1 1-2.68-.7c.12-.43.22-.87.31-1.3.17-.75.9-1.22 1.65-1.06Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M146.69 51.6c.7.31 1 1.13.7 1.83-.2.44-.41.88-.63 1.31a1.38 1.38 0 0 1-2.48-1.24c.2-.4.4-.8.58-1.2.31-.7 1.13-1.01 1.83-.7Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M41.67 55.45c.07.77-.5 1.44-1.25 1.5-.43.04-.86.1-1.26.19a1.38 1.38 0 1 1-.54-2.72c.5-.1 1.02-.17 1.55-.22.76-.07 1.43.5 1.5 1.25Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M44.58 55.78c.22-.73 1-1.15 1.72-.93l.74.23a1.38 1.38 0 1 1-.9 2.62l-.62-.2a1.38 1.38 0 0 1-.94-1.72Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M91.9 56.9c.05.76-.52 1.42-1.29 1.47-.44.02-.89.06-1.32.11a1.38 1.38 0 0 1-.31-2.75c.48-.05.96-.1 1.45-.13.77-.05 1.42.53 1.47 1.3Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M94.72 56.95c.07-.76.74-1.33 1.5-1.26l1.43.14a1.38 1.38 0 0 1-.32 2.75c-.45-.05-.9-.1-1.35-.13a1.38 1.38 0 0 1-1.26-1.5Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M101.64 57.83c.16-.75.9-1.22 1.64-1.07l1.39.31a1.38 1.38 0 1 1-.62 2.7l-1.34-.3a1.38 1.38 0 0 1-1.07-1.64Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M34.85 57.26c.48.6.39 1.46-.2 1.94-.33.27-.63.55-.9.84a1.38 1.38 0 0 1-2.03-1.89c.36-.39.76-.75 1.18-1.1.6-.48 1.46-.39 1.95.2Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M85 57.9c.29.71-.06 1.51-.78 1.8a15.8 15.8 0 0 0-1.26.54 1.38 1.38 0 1 1-1.15-2.52 71.64 71.64 0 0 1 1.4-.6c.71-.28 1.52.07 1.8.78Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M143.4 57.76c.61.47.72 1.34.26 1.95-.3.39-.62.77-.94 1.14a1.38 1.38 0 0 1-2.09-1.81 24 24 0 0 0 .84-1.03c.47-.6 1.33-.71 1.94-.25Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M108.43 59.46c.22-.74.99-1.15 1.72-.93l1.35.41a1.38 1.38 0 1 1-.82 2.64l-1.32-.4a1.38 1.38 0 0 1-.93-1.72Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M115.08 61.58a1.38 1.38 0 0 1 1.77-.82l1.32.48a1.38 1.38 0 0 1-.97 2.6c-.43-.17-.87-.33-1.3-.48a1.38 1.38 0 0 1-.82-1.78Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M138.67 62.89c.42.64.25 1.5-.4 1.92-.41.27-.85.54-1.29.78a1.38 1.38 0 0 1-1.32-2.43c.37-.2.73-.43 1.1-.66.63-.42 1.49-.25 1.91.39Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M30.5 62.78c.77.07 1.33.74 1.26 1.5l-.03.59.01.75-1.6 1.4a1.38 1.38 0 0 1-1.16-1.32l-.02-.83c0-.28.02-.56.04-.84.07-.76.75-1.32 1.5-1.25Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M121.6 64.07c.3-.7 1.1-1.04 1.8-.75a146.8 146.8 0 0 1 1.26.52 1.38 1.38 0 1 1-.97 2.59 19.62 19.62 0 0 1-1.35-.55c-.7-.3-1.04-1.1-.74-1.81Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M72.11 64.94c.48.6.4 1.47-.2 1.95-.38.3-.74.62-1.09.92A1.38 1.38 0 1 1 69 65.73c.37-.33.76-.66 1.17-.99.59-.48 1.46-.39 1.94.2Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M132.4 65.92c.09.76-.46 1.44-1.22 1.53-.5.05-1.02.08-1.53.09a1.38 1.38 0 1 1-.02-2.77c.42 0 .84-.03 1.25-.07.76-.09 1.44.46 1.53 1.22Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M66.66 69.9c.57.52.6 1.4.09 1.96l-.73.8-.02.02-.16.18-.08.09a1.38 1.38 0 0 1-2.05-1.86l.25-.28.75-.82c.51-.56 1.39-.6 1.95-.09Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M61.6 75.28c.45.61.31 1.48-.3 1.93-.44.31-.88.61-1.36.89a1.38 1.38 0 1 1-1.4-2.4c.4-.22.77-.46 1.12-.72a1.38 1.38 0 0 1 1.94.3Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M37.67 75.97c.42.19.86.37 1.35.53a1.38 1.38 0 0 1-.89 2.62c-.56-.19-1.1-.4-1.6-.63l.72-2.63c.14.01.28.05.42.11Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M55.05 78.57c.12.75-.4 1.46-1.15 1.58-.5.08-1 .15-1.54.2a1.38 1.38 0 1 1-.28-2.75c.49-.05.95-.11 1.39-.18.75-.12 1.46.4 1.58 1.15Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M43.4 78.87c.06-.76.73-1.33 1.49-1.27a38.43 38.43 0 0 0 1.5.1 1.38 1.38 0 1 1-.12 2.76 62.94 62.94 0 0 1-1.6-.1 1.38 1.38 0 0 1-1.27-1.49Z",fill:"var(--semi-color-primary)"}),a.createElement("g",{clipPath:"url(#clip_failure_96_39_65)"},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30.9 46.87a13.45 13.45 0 0 1 9.37-16.53 13.46 13.46 0 0 1 16.52 9.39c2.64 9.56-4.76 29.27-5.14 29.9a.75.75 0 0 1-.99.27c-.64-.34-17.11-13.47-19.76-23.03Zm14.36 1.54a6.1 6.1 0 0 1-3.25-11.75 6.1 6.1 0 0 1 3.25 11.75Z",fill:"var(--semi-color-primary)"})),a.createElement("path",{d:"M102.31 100.69c-2.8 1.55-5.63 2.85-9.36 4.58l1.48 3.92c2.14-.96 6.16-6.03 7.88-8.5Z",fill:"#515151"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M121 63.04c8.85 2.1 12.43-6.5 13.12-8.77.68-2.27-5.6-11.86-8-11.2l-.42.12-.23.06c-3.1.82-11.15 2.94-12.35 8-1.3 5.46 2.4 10.49 7.88 11.79Z",fill:"#515151"}),a.createElement("path",{d:"M134.5 64.73c-.43.47-1.2.74-2.33.73a12.7 12.7 0 0 1-4.06-.86 31.25 31.25 0 0 1-9.94-6.22c-3.25-2.97-5.97-5.8-7.59-8.42-1.61-2.61-2.05-4.88-.98-6.84a3.7 3.7 0 0 1 2.11-1.86 4.53 4.53 0 0 1 2.9.15c2.16.76 4.57 2.83 6.48 6.02 3.4 5.63 6.89 8.23 9.7 10.33.49.35.95.7 1.38 1.03a7.29 7.29 0 0 1 2.61 3.48c.34 1.1.16 1.97-.28 2.46Z",fill:"white",stroke:"#515151"}),a.createElement("mask",{id:"mask_failure_130_526","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:98,y:44,width:36,height:27},a.createElement("path",{d:"M130.53 62.1c-.5-3.3-9.52-14.75-16.08-15.03l-12.68 4.52 6.47 14.16 17.25 3.07c1.84-1.14 5.43-4.07 5.04-6.72Z",fill:"#C4C4C4"})),a.createElement("g",{mask:"url(#mask_failure_130_526)"},a.createElement("path",{d:"M127.2 63.62a9.74 9.74 0 0 1-13.76.5 9.74 9.74 0 0 1-.32-13.77 9.74 9.74 0 0 1 13.77-.5 9.74 9.74 0 0 1 .32 13.77Z",fill:"white",stroke:"#515151"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m116.79 47.35-.02.37c2.86.5 8.57 2.59 8.58 6.87 0 5.36-7.44 9.34-14.47 3.46-.34-.28-.66-.53-.95-.74a10.09 10.09 0 0 0 3.17 7.17 10.24 10.24 0 0 0 14.47-.52 10.24 10.24 0 0 0-.34-14.47 10.16 10.16 0 0 0-10.44-2.14Z",fill:"#515151"}),a.createElement("path",{d:"M119.34 55a.79.79 0 1 0-1.1-1.12.79.79 0 0 0 1.1 1.12Z",fill:"#515151"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M119.98 50.72c.21-.09.45.01.54.22a7.87 7.87 0 0 0 1.84 2.65.41.41 0 1 1-.55.62 8.67 8.67 0 0 1-2.05-2.95.41.41 0 0 1 .22-.54Z",fill:"#515151"}),a.createElement("path",{d:"M114.85 52.4a.79.79 0 1 0-1.1-1.1.79.79 0 0 0 1.1 1.1Z",fill:"#515151"}),a.createElement("mask",{id:"path-18-inside-1",fill:"white"},a.createElement("ellipse",{rx:2.97818,ry:2.97818,transform:"matrix(0.727696 0.6859 -0.685903 0.727693 128.435 60.0508)"})),a.createElement("ellipse",{rx:2.97818,ry:2.97818,transform:"matrix(0.727696 0.6859 -0.685903 0.727693 128.435 60.0508)",fill:"white"}),a.createElement("path",{d:"m128.42 60.04.01-.01a.03.03 0 0 1 .02 0l-4.12 4.37a5.98 5.98 0 0 0 8.45-.25l-4.36-4.11Zm.03 0v.02l-4.37-4.11a5.98 5.98 0 0 0 .25 8.45l4.12-4.37Zm0 .03h-.01a.03.03 0 0 1-.02 0l4.12-4.37a5.98 5.98 0 0 0-8.46.25l4.37 4.12Zm-.03 0v-.03l4.37 4.11a5.98 5.98 0 0 0-.25-8.45l-4.12 4.37Z",fill:"#515151",mask:"url(#path-18-inside-1)"})),a.createElement("path",{d:"M145.63 40.19c1.37-2.75 12.75 2.35 16.14 6.78 3.38 4.43 1.48 10.74-1.9 9.68-6.69-2.12-7.56-6.7-7.94-9.48-1.2-1.85-7.67-4.24-6.3-6.98Z",fill:"white",stroke:"#515151"}),a.createElement("path",{d:"m158.95 41.56 6.64 2.52 1.66 12.47-8.3 1.98-3.47-12.03 3.47-4.94Z",fill:"white"}),a.createElement("path",{d:"M167.3 151.94c5.19 1.66 23.35 35.57 19.05 35.57-13.86 0-34.5.53-71.42.53-15.63 0-17.9-5.16-11.79-22.08a353.23 353.23 0 0 1 6.14-15.76l32.5 1.26c-.43 1.53-.91 3.07-1.38 4.4a26.82 26.82 0 0 1 8.73-1.47c5.27 0 7.04 1.4 11.77 0 2.13-.62 4.8-2.97 6.4-2.45Z",fill:"white",className:""}),a.createElement("path",{d:"M140.4 155.87c.47-1.34.95-2.88 1.38-4.4l-32.5-1.27a353.23 353.23 0 0 0-6.14 15.76c-6.1 16.92-3.84 22.08 11.79 22.08 36.93 0 57.56-.53 71.42-.53 4.3 0-13.86-33.91-19.06-35.57-1.6-.52-4.26 1.83-6.4 2.45-4.72 1.4-6.5 0-11.76 0-3.08 0-6.06.55-8.72 1.48Zm0 0a26.67 26.67 0 0 1-4.44 8.38c-1.7 2.22-3.99 4.43-5.43 4.33-1.44-.1-1.42-3.18 0-5.66 1.97-3.44 6.45-5.87 9.88-7.05Z",stroke:"#1C1F23",className:""}),a.createElement("path",{d:"M149.25 131.7s3.36 19.46-12.34 21.04c-11.53 1.15-40.77-4.55-53.76-7.79 4.72 12.82 9.61 39.86 7 42.16-3.33 2.93-47.55 1.76-55.96 0-8.42-1.75 13.82-11.46 15.45-14.66 2.99-5.84-5.48-21.18-5.75-45.45-.27-24.27 18.18-24.86 34.47-21.64 13.02 2.57 41.63 18.33 52.56 26.86l18.33-.52Z",fill:"white",stroke:"#515151"}),a.createElement("path",{d:"M141.5 153.87c-3.11 2.55-27.72 5-35.58 3.53l2.75-6.8c20.23 2.85 28.08 3.34 33.46 1.16l-.63 2.11Z",fill:"#515151",className:"__web-inspector-hide-shortcut__"}),a.createElement("path",{d:"M141.5 153.87c-3.11 2.55-27.72 5-35.58 3.53l2.75-6.8c20.23 2.85 28.08 3.34 33.46 1.16l-.63 2.11Z",fill:"#515151"}),a.createElement("path",{d:"M126.02 142.7c-3.1-2.99-4.99-7.5-4.16-12.35",stroke:"#515151"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M130.6 95.65c-9.03-10.98-18.97-19.74-25.5-24.56l1.63-2.22c6.7 4.95 16.81 13.86 26 25.02 9.18 11.16 17.54 24.67 20.59 38.83l-2.7.59c-2.91-13.56-10.97-26.67-20.02-37.66Z",fill:"#515151"}),a.createElement("path",{d:"m149.12 107.09-16.36 13.2 22.27 17.8 8.87-19.19c-.14-3.93-2.34-5.34-5.83-4.66l-3.12-2.5c.08-3.5-2.18-5.64-5.83-4.65Z",fill:"#E6E8EA"}),a.createElement("path",{d:"m148.24 128.62 9.45-14.34-2.91-2.33-10.94 13.07 4.4 3.6Z",stroke:"#515151"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M143.67 127.98a6.93 6.93 0 1 1-10.82-8.65 6.93 6.93 0 0 1 10.82 8.65Zm12.28 9.82a6.93 6.93 0 1 1-10.82-8.66 6.93 6.93 0 0 1 10.82 8.66Z",fill:"#515151"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m133.43 123.46 9.21-1.8.32 1.61-9.2 1.81-.33-1.62Z",fill:"white"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m145.5 133.11 9.21-1.8.32 1.62-9.2 1.8-.33-1.62Z",fill:"white"}),a.createElement("defs",null,a.createElement("clipPath",{id:"clip_failure_96_39_65"},a.createElement("rect",{width:44.4004,height:44.4627,transform:"matrix(0.963965 -0.266028 0.266198 0.963918 18.4214 34.6221)",fill:"white"}))))}var q=H;const K=({packages:r})=>e.jsx("div",{children:r.map(({name:t,size:s},c)=>{const n=(s/1024/1024).toFixed(2)+"MB",d=s<=4*1024*1024;return e.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"2px 8px",borderRadius:6,backgroundColor:d?"#E8F5E9":"#FCE4EC",marginBottom:c===r.length-1?0:8,width:"fit-content"},children:[e.jsxs(l.Text,{style:{fontWeight:600,fontSize:14},children:[t,":"]}),e.jsx(l.Text,{style:{color:d?"#4CAF50":"#F44336",fontWeight:600},children:n}),e.jsx(l.Text,{type:"tertiary",style:{marginLeft:8},children:d?i("notExceedIndependentPkgSizeLimit",{limit:"4MB"}):i("exceedIndependentPkgSizeLimit",{limit:"4MB"})})]},t)})}),Y=({size:r,limit:t})=>{const s=(r/1024/1024).toFixed(2)+"MB",c=r<=t*1024*1024,n=c?i("notExceedSizeLimit",{limit:t+"MB"}):i("exceedSizeLimit",{limit:t+"MB"});return e.jsxs("div",{style:{display:"flex",alignItems:"center",width:"fit-content",padding:"2px 8px",borderRadius:6,backgroundColor:c?"#E8F5E9":"#FCE4EC"},children:[e.jsx(l.Text,{style:{fontWeight:600,color:c?"#4CAF50":"#F44336"},children:s}),e.jsx(l.Text,{type:"tertiary",style:{marginLeft:8},children:n})]})},X=({packages:r,limit:t})=>{const s=r.find(m=>m.type==="main")?.size,c=(s/1024/1024).toFixed(2)+"MB",n=s<=t*1024*1024,d=n?i("notExceedMainPkgSizeLimit",{limit:t+"MB"}):i("exceedMainPkgSizeLimit",{limit:t+"MB"});return e.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"2px 8px",width:"fit-content",borderRadius:6,backgroundColor:n?"#E8F5E9":"#FCE4EC"},children:[e.jsx(l.Text,{style:{fontWeight:600,color:n?"#4CAF50":"#F44336"},children:c}),e.jsx(l.Text,{type:"tertiary",style:{marginLeft:8},children:d})]})},$=({domains:r=[]})=>r?.length?e.jsx(R,{className:"trusted-domain-list",style:{flexWrap:"wrap"},children:r.map(t=>e.jsx(S,{className:"trusted-domain-tag",children:t},t))}):e.jsx("div",{className:"project-detail-warning",children:e.jsx(l.Text,{className:"project-detail-warning-text",children:i("trustDomainEmptyTip")})}),J=({termsOfServiceLink:r})=>{const t=i("termsLabel");return r?e.jsxs("div",{className:"terms-privacy-item",children:[e.jsx(l.Text,{type:"tertiary",className:"terms-privacy-label",children:t}),e.jsx("a",{className:"terms-privacy-value",href:r,title:r,target:"_blank",rel:"noreferrer",children:r})]}):e.jsxs("div",{className:"terms-privacy-item",children:[e.jsx(l.Text,{type:"tertiary",className:"terms-privacy-label",children:t}),e.jsx("div",{className:"project-detail-warning",children:e.jsx(l.Text,{className:"project-detail-warning-text",children:i("termsOfServiceEmptyTip")})})]})},Q=({privacyPolicyLink:r})=>{const t=i("privacyLabel");return r?e.jsxs("div",{className:"terms-privacy-item",children:[e.jsx(l.Text,{type:"tertiary",className:"terms-privacy-label",children:t}),e.jsx("a",{className:"terms-privacy-value",href:r,title:r,target:"_blank",rel:"noreferrer",children:r})]}):e.jsxs("div",{className:"terms-privacy-item",children:[e.jsx(l.Text,{type:"tertiary",className:"terms-privacy-label",children:t}),e.jsx("div",{className:"project-detail-warning",children:e.jsx(l.Text,{className:"project-detail-warning-text",children:i("privacyPolicyEmptyTip")})})]})},ee=({logo:r,placeholder:t})=>{if(!r?.trim())return e.jsx("div",{className:"project-detail-warning",children:e.jsx(l.Text,{className:"project-detail-warning-text",children:i("gameIconEmptyTip")})});const[s,c]=a.useState(!1);return e.jsxs("div",{style:{width:100,height:100,borderRadius:4,overflow:"hidden",position:"relative",background:"#f0f0f0",display:"flex",alignItems:"center",justifyContent:"center"},children:[!s&&(t||e.jsx("div",{style:{width:"100%",height:"100%",background:"#e0e0e0",display:"flex",alignItems:"center",justifyContent:"center",color:"#aaa",fontSize:14}})),e.jsx("img",{src:r,alt:"logo",style:{width:"100%",height:"100%",borderRadius:4,objectFit:"cover",position:"absolute",top:0,left:0,opacity:s?1:0,transition:"opacity 0.3s"},onLoad:()=>c(!0)})]})},ae=({description:r})=>r?e.jsx(l.Text,{style:{fontSize:14},children:r}):e.jsx("div",{className:"project-detail-warning",children:e.jsx(l.Text,{className:"project-detail-warning-text",children:i("gameDescEmptyTip")})}),re="https://bytedance.larkoffice.com/wiki/PeIawT4M4ia9R8kYyLMcjwHknOg",te=({errorMsg:r,errorState:t="unknown"})=>{const s=C(),c=t==="notLoggedIn"||t==="loginExpired",n=t==="noPermission",d=c?"projectInfo.error.login.title":n?"projectInfo.error.permission.title":"projectInfo.error.general.title",m=c?"projectInfo.error.login.desc":n?"projectInfo.error.permission.desc":"projectInfo.error.general.desc",v=c?["projectInfo.error.login.stepLogin","projectInfo.error.login.stepRestart","projectInfo.error.login.stepProxy"]:n?["projectInfo.error.permission.stepCheckAccount","projectInfo.error.permission.stepApply","projectInfo.error.permission.stepRestart"]:["projectInfo.error.general.stepCheck","projectInfo.error.general.stepRetry"],g=()=>{window.open(re,"_blank","noopener,noreferrer")};return e.jsxs("div",{className:"error-display",children:[e.jsx(z,{className:"error-display-banner",type:"info",closeIcon:null,description:e.jsxs("div",{className:"error-display-banner-content",children:[e.jsx(l.Text,{strong:!0,children:i(d)}),e.jsx(l.Text,{children:i(m)})]})}),e.jsxs("div",{className:"error-display-panel",children:[e.jsxs("div",{className:"error-display-hero",children:[e.jsx("div",{className:"error-display-hero-illustration",children:e.jsx(q,{})}),e.jsxs("div",{className:"error-display-hero-copy",children:[e.jsx(l.Title,{heading:4,children:i("projectInfo.error.guideTitle")}),e.jsx(l.Paragraph,{className:"error-display-main-text",children:r})]})]}),e.jsxs("div",{className:"error-display-guide-grid",children:[e.jsxs("section",{className:"error-display-guide-card",children:[e.jsx(l.Text,{strong:!0,children:i("projectInfo.error.stepTitle")}),e.jsx("div",{className:"error-display-step-list",children:v.map((f,u)=>e.jsxs("div",{className:"error-display-step-item",children:[e.jsx("span",{className:"error-display-step-index",children:u+1}),e.jsx(l.Text,{children:i(f)})]},f))}),c?e.jsxs("div",{className:"error-display-command-list",children:[e.jsxs("div",{className:"error-display-command-item",children:[e.jsx(l.Text,{type:"tertiary",children:i("projectInfo.error.commandLogin")}),e.jsx("code",{children:"ttmg login"})]}),e.jsxs("div",{className:"error-display-command-item",children:[e.jsx(l.Text,{type:"tertiary",children:i("projectInfo.error.commandRestart")}),e.jsx("code",{children:"ttmg dev"})]}),e.jsxs("div",{className:"error-display-command-item",children:[e.jsx(l.Text,{type:"tertiary",children:i("projectInfo.error.commandProxy")}),e.jsx("code",{children:"ttmg config set proxy http://127.0.0.1:7890"}),e.jsx(l.Text,{type:"tertiary",className:"error-display-command-hint",children:i("projectInfo.error.commandProxyHint")})]})]}):null]}),e.jsxs("section",{className:"error-display-guide-card",children:[e.jsx(l.Text,{strong:!0,children:i("projectInfo.error.helpTitle")}),e.jsx(l.Paragraph,{className:"error-display-help-text",children:c?i("projectInfo.error.helpLoginDesc"):n?i("projectInfo.error.helpPermissionDesc"):i("projectInfo.error.helpGeneralDesc")}),c?e.jsxs("div",{className:"error-display-actions",children:[e.jsx(M,{theme:"light",onClick:()=>s("/basic_debug_guide"),children:i("basicDebugGuide.entryAction")}),e.jsx(M,{theme:"solid",type:"primary",onClick:g,children:i("projectInfo.error.openProxyDoc")})]}):null]})]})]})]})},E=({label:r,children:t,wide:s=!1})=>e.jsxs("div",{className:`game-detail-field ${s?"game-detail-field-wide":""}`,children:[e.jsx(l.Text,{type:"tertiary",className:"game-detail-field-label",children:r}),e.jsx("div",{className:"game-detail-field-value",children:t})]}),ie=()=>{const{state:{gameDetail:r,user:t,packages:s,engine:c},setGameDetail:n}=L(),[d,m]=a.useState(!0),[v,g]=a.useState(!1),[f,u]=a.useState(""),[T,b]=a.useState("unknown"),N=({errorCode:p,errorMsg:h,clientKey:j})=>{m(!1),g(!0),b(O({errorCode:p,user:t})),u(A({errorCode:p,errorMsg:h,clientKey:j,user:t}))};a.useEffect(()=>{if(r&&!r.has_error){m(!1);return}r?.has_error&&(g(!0),N({errorCode:r.error_code,errorMsg:r.error_msg,clientKey:r.client_key})),F({url:"/game/detail",method:"GET"}).then(p=>{if(p?.error)m(!1),N(p.error);else{const{data:h}=p;n(h),m(!1)}})},[]);const o=a.useMemo(()=>{if(!r||r?.has_error)return null;const{size:p,request_allowed_domains:h}=r,j=c==="unity",y=s?.length>0?s:r.packages??[],k=y.reduce((x,D)=>x+(D?.size??0),0)||p,_=j?60:30,I=y.filter(x=>x.type==="independent"),P=y.some(x=>x.type==="main");return{isUnity:j,packageList:y,projectSize:k,projectSizeLimit:_,independentPackages:I,hasMainPackage:P,domains:h}},[c,r,s]);return d&&!r?e.jsx("div",{className:"game-detail-loading-container",children:e.jsx(B,{size:"large"})}):v?e.jsx(te,{errorMsg:f,errorState:T}):!r||!o?null:e.jsx("div",{className:"game-detail-container",children:e.jsxs("div",{className:"game-detail-page",children:[e.jsxs("section",{className:"game-detail-intro",children:[e.jsx(l.Paragraph,{className:"game-detail-page-desc",children:i("projectInfoDesc")}),e.jsx(l.Paragraph,{className:"game-detail-page-desc",children:i("projectInfoDescTip")})]}),e.jsxs("section",{className:"game-detail-panel",children:[e.jsx("div",{className:"game-detail-panel-head",children:e.jsx(l.Text,{strong:!0,children:i("projectInfo.section.basic")})}),e.jsxs("div",{className:"game-detail-basic-hero",children:[e.jsx("div",{className:"game-detail-logo-shell game-detail-logo-shell-basic",children:e.jsx(ee,{logo:r.display_icon_url||""})}),e.jsx("div",{className:"game-detail-basic-main",children:e.jsxs("div",{className:"game-detail-basic-meta",children:[e.jsxs("div",{className:"game-detail-basic-row",children:[e.jsx(l.Text,{type:"tertiary",className:"game-detail-basic-meta-label",children:i("gameName")}),e.jsx("div",{className:"game-detail-basic-meta-value",children:r.name?.trim()?e.jsx(l.Text,{strong:!0,className:"game-detail-basic-name",children:r.name}):e.jsx("div",{className:"project-detail-warning",children:e.jsx(l.Text,{className:"project-detail-warning-text",children:i("gameNameEmptyTip")})})})]}),e.jsxs("div",{className:"game-detail-basic-row",children:[e.jsx(l.Text,{type:"tertiary",className:"game-detail-basic-meta-label",children:i("gameID")}),e.jsx(l.Text,{className:"game-detail-basic-meta-value game-detail-basic-meta-value-code",children:r.client_key||"-"})]}),e.jsxs("div",{className:"game-detail-basic-row",children:[e.jsx(l.Text,{type:"tertiary",className:"game-detail-basic-meta-label",children:i("gameDesc")}),e.jsx("div",{className:"game-detail-basic-meta-value",children:e.jsx(ae,{description:r.description})})]})]})})]})]}),e.jsxs("div",{className:"game-detail-section-grid",children:[e.jsxs("section",{className:"game-detail-panel",children:[e.jsx("div",{className:"game-detail-panel-head",children:e.jsx(l.Text,{strong:!0,children:i("projectInfo.section.package")})}),e.jsxs("div",{className:"game-detail-fields-grid",children:[e.jsx(E,{label:i("gameSize"),children:e.jsx(Y,{size:o.projectSize,limit:o.projectSizeLimit})}),!o.isUnity&&o.hasMainPackage?e.jsx(E,{label:i("gameMainPackageSize"),children:e.jsx(X,{packages:o.packageList,limit:4})}):null,!o.isUnity&&o.independentPackages.length>0?e.jsx(E,{label:i("gameIndependentPackageSize"),wide:!0,children:e.jsx(K,{packages:o.independentPackages})}):null]})]}),e.jsxs("section",{className:"game-detail-panel",children:[e.jsx("div",{className:"game-detail-panel-head",children:e.jsx(l.Text,{strong:!0,children:i("projectInfo.section.platform")})}),e.jsxs("div",{className:"game-detail-platform-stack",children:[e.jsxs("div",{className:"game-detail-platform-card",children:[e.jsx("div",{className:"game-detail-platform-card-head",children:e.jsx(l.Text,{strong:!0,children:i("gameTrustDomains")})}),e.jsx($,{domains:o.domains})]}),e.jsxs("div",{className:"game-detail-platform-card",children:[e.jsx("div",{className:"game-detail-platform-card-head",children:e.jsx(l.Text,{strong:!0,children:i("gameTermsAndPrivacy")})}),e.jsxs("div",{className:"game-detail-terms-stack",children:[e.jsx(J,{termsOfServiceLink:r.terms_of_service_link}),e.jsx(Q,{privacyPolicyLink:r.privacy_policy_link})]})]})]})]})]})]})})};export{ie as ProjectDetail};
1
+ import{r as a,j as e,T as l,i,S as R,a as S,u as C,B as z,b as M,c as L,d as F,e as B,g as O,f as A}from"./index-BVIWa0s0.js";var G=Object.defineProperty,Z=Object.getOwnPropertySymbols,U=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable,w=(r,t,s)=>t in r?G(r,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[t]=s,V=(r,t)=>{for(var s in t||(t={}))U.call(t,s)&&w(r,s,t[s]);if(Z)for(var s of Z(t))W.call(t,s)&&w(r,s,t[s]);return r};function H(r){return a.createElement("svg",V({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},r),a.createElement("rect",{width:200,height:200,fill:"transparent"}),a.createElement("path",{d:"M74.7 78.6c20.78-6.32 57.55-12.26 71.81-9.86 4.21.7 8.12 1.98 11.36 3.42-.51-1.69-.95-3.5-1.38-5.3l-.04-.18c-1.03-4.27-2.05-8.44-3.95-10.55-4.8-5.32.67-10.12.67-10.12l.93-10.53c13.02 4.82 21.65 14.92 27 25.08 4.57 8.67 6.75 17.37 7.25 22.89 1.06 12-8.18 18.86-19.2 18.86-9.74 0-18.36-1.64-24.81-3.1.64 2.18 5.44 19.18 7.53 32.66l-46.15.58-7.58-14.68-4.66-12.26c-19.46 7.46-50.77 19.02-64.9 18.44-10.35-.42-15.68-15.68-17.44-28.7a71.55 71.55 0 0 1-.67-9.4c0-5.64.3-12.18 2.22-17.89.74-2.21 1.73-4.3 3.04-6.17a18.1 18.1 0 0 1 4.6-4.59c0 4-1.02 13.54 2.8 14.12 5.06.78 10.4-9.08 13.85-7.06 3.87 2.27-1.65 16.34-1.33 17.2.27.7.53 1.4.76 2.07a48.99 48.99 0 0 1 2.25 8.55C46.59 87.56 60 83.06 74.69 78.6Z",fill:"white"}),a.createElement("path",{d:"M181.1 60.56c4.57 8.67 6.75 17.37 7.25 22.89 1.06 12-8.18 18.86-19.2 18.86-9.74 0-18.36-1.64-24.81-3.1m36.77-38.65c-5.36-10.16-13.99-20.26-27-25.08l-.94 10.53s-5.46 4.8-.67 10.12c1.9 2.11 2.92 6.28 3.95 10.55m24.66-6.12c-6-.37-18.32.8-24.66 6.12m0 0c1.57 6.53 3.15 13.3 7.91 13.3 7.2 0-3.6-8.84-17.85-11.24-14.25-2.4-51.03 3.54-71.82 9.86-20.78 6.32-39.04 12.71-42.77 19.1-3.63 6.23 13.24 10.92 4.49-14.17m0 0c-.23-.67-.49-1.36-.76-2.08-.32-.85 5.2-14.92 1.33-17.19-3.45-2.02-8.8 7.84-13.85 7.06-3.82-.58-2.8-10.12-2.8-14.12a18.1 18.1 0 0 0-4.6 4.6M36.4 83.52c-7.27 1.58-21.92 8.1-25.27 11.73m0 0a71.55 71.55 0 0 1-.67-9.41c0-5.64.3-12.18 2.22-17.89m-1.55 27.3c1.76 13 7.09 28.27 17.45 28.7 14.12.57 45.43-10.99 64.89-18.45l4.66 12.26 7.58 14.68 46.15-.58c-2.09-13.48-6.89-30.48-7.53-32.67M15.73 61.8c-.98 3-1.08 5.5.19 7.8m-.2-7.8a24.08 24.08 0 0 0-3.03 6.16m0 0a5.43 5.43 0 0 0 1.25 4.22m130.4 27.02c-.9-3.08-3.12-9.95-4.76-12.76",stroke:"#515151"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m156.89 15.66-2.04 27.96 2.57 28.1c-7.51-3.07-13.32-4.34-27.25-3.36-11.94.83-31.75 3.95-46.23 7.62-16.66 4.27-37.81 11.64-45.21 15.9-.77-4.64-2.92-10.15-2.92-10.15-.07-.7 2.63-8.32 2.73-13.06.08-3.08-.91-4.45-2.33-4.75a3.47 3.47 0 0 0-2.05.35c-.63.32-.86.48-1.38.84-1.34.98-2.38 2.02-3.95 3.34a17.14 17.14 0 0 1-3.04 2.17 4.6 4.6 0 0 1-2.89.63c-.63-.1-1.21-.47-1.71-1.58l-.07-.89c-.5-5.79-2.7-20.12-2.7-34.91 0-7.74 1.61-10.04 2.7-11.59l.13-.18c3.85-5.53 13.67-6.75 23.12-6.96 2.5-.14 5.2-.2 8.1-.17l.11.15H53.15l-.52.07 18.32 25.49-3.62 14.08 10.2 15.98-2.84-16.49 10-11.99-3.5-27.7s8.78-.5 19.47-1.77c10.69-1.28 18.47-1.9 29.42-1.83 1.64.01 3.4.1 5.23.22 9.64.65 18.55 2.56 21.46 4.4l.13.09h-.01Z",fill:"var(--semi-color-primary-light-default)"}),a.createElement("path",{d:"M143 27.91a1.38 1.38 0 0 1 1.77-.85c.5.18.98.41 1.44.71a1.38 1.38 0 0 1-1.53 2.31c-.26-.17-.53-.3-.82-.4a1.38 1.38 0 0 1-.85-1.77Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M140.65 28.12c.21.74-.21 1.5-.95 1.72-.36.1-.73.22-1.11.36a1.38 1.38 0 1 1-.95-2.6c.43-.16.87-.3 1.3-.43.74-.2 1.5.22 1.71.95Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M134.74 30.4c.37.67.14 1.51-.53 1.89l-1.07.62a1.38 1.38 0 1 1-1.41-2.38l1.12-.65a1.38 1.38 0 0 1 1.89.52Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M97.86 31.43h.76a1.38 1.38 0 1 1-.06 2.77h-.52a6.7 6.7 0 0 0-.57.1 1.38 1.38 0 0 1-.64-2.68c.33-.08.64-.14.94-.18l.09-.01Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M147.78 31.75c.73-.23 1.5.19 1.72.92.13.43.25.88.35 1.35a1.38 1.38 0 0 1-2.7.58c-.1-.4-.19-.78-.3-1.13-.22-.73.2-1.5.93-1.72Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M102.27 33.13c.19-.75.94-1.2 1.68-1.01.45.11.89.23 1.3.37a1.38 1.38 0 0 1-.84 2.63c-.36-.11-.73-.22-1.13-.32a1.38 1.38 0 0 1-1-1.67Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M129.3 33.68c.42.64.25 1.5-.4 1.92l-.52.34-.53.36a1.38 1.38 0 0 1-1.53-2.31l.32-.21.21-.14.3-.2.23-.15c.64-.42 1.5-.25 1.92.39Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M108.25 35.22c.36-.67 1.2-.92 1.88-.55a246.5 246.5 0 0 1 1.11.61 1.38 1.38 0 0 1-1.33 2.43l-.5-.28h-.01l-.6-.34a1.38 1.38 0 0 1-.55-1.87Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M92.83 35.77c.76-.01 1.4.6 1.4 1.36.01.16.03.34.07.55a1.38 1.38 0 1 1-2.7.58 5.62 5.62 0 0 1-.13-1.08c-.01-.76.6-1.4 1.36-1.4Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M124 37.2c.31.7 0 1.51-.7 1.82a6.07 6.07 0 0 1-1.44.45 1.38 1.38 0 1 1-.67-2.68l.58-.16c.1-.03.24-.07.42-.15.7-.3 1.51.02 1.82.72Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M113.9 38.14c.15-.75.89-1.22 1.63-1.06.35.07.72.13 1.1.16a1.38 1.38 0 0 1-.26 2.76c-.49-.05-.96-.12-1.41-.22a1.38 1.38 0 0 1-1.07-1.64Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M148.98 37.95c.76-.01 1.4.6 1.4 1.36a38.45 38.45 0 0 1 0 1.42 1.38 1.38 0 0 1-2.77-.08 24.28 24.28 0 0 0 0-1.3c0-.76.6-1.39 1.37-1.4Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M148.6 44.88c.75.16 1.22.9 1.06 1.65-.1.47-.22.94-.34 1.41a1.38 1.38 0 1 1-2.68-.7c.12-.43.22-.87.31-1.3.17-.75.9-1.22 1.65-1.06Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M146.69 51.6c.7.31 1 1.13.7 1.83-.2.44-.41.88-.63 1.31a1.38 1.38 0 0 1-2.48-1.24c.2-.4.4-.8.58-1.2.31-.7 1.13-1.01 1.83-.7Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M41.67 55.45c.07.77-.5 1.44-1.25 1.5-.43.04-.86.1-1.26.19a1.38 1.38 0 1 1-.54-2.72c.5-.1 1.02-.17 1.55-.22.76-.07 1.43.5 1.5 1.25Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M44.58 55.78c.22-.73 1-1.15 1.72-.93l.74.23a1.38 1.38 0 1 1-.9 2.62l-.62-.2a1.38 1.38 0 0 1-.94-1.72Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M91.9 56.9c.05.76-.52 1.42-1.29 1.47-.44.02-.89.06-1.32.11a1.38 1.38 0 0 1-.31-2.75c.48-.05.96-.1 1.45-.13.77-.05 1.42.53 1.47 1.3Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M94.72 56.95c.07-.76.74-1.33 1.5-1.26l1.43.14a1.38 1.38 0 0 1-.32 2.75c-.45-.05-.9-.1-1.35-.13a1.38 1.38 0 0 1-1.26-1.5Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M101.64 57.83c.16-.75.9-1.22 1.64-1.07l1.39.31a1.38 1.38 0 1 1-.62 2.7l-1.34-.3a1.38 1.38 0 0 1-1.07-1.64Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M34.85 57.26c.48.6.39 1.46-.2 1.94-.33.27-.63.55-.9.84a1.38 1.38 0 0 1-2.03-1.89c.36-.39.76-.75 1.18-1.1.6-.48 1.46-.39 1.95.2Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M85 57.9c.29.71-.06 1.51-.78 1.8a15.8 15.8 0 0 0-1.26.54 1.38 1.38 0 1 1-1.15-2.52 71.64 71.64 0 0 1 1.4-.6c.71-.28 1.52.07 1.8.78Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M143.4 57.76c.61.47.72 1.34.26 1.95-.3.39-.62.77-.94 1.14a1.38 1.38 0 0 1-2.09-1.81 24 24 0 0 0 .84-1.03c.47-.6 1.33-.71 1.94-.25Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M108.43 59.46c.22-.74.99-1.15 1.72-.93l1.35.41a1.38 1.38 0 1 1-.82 2.64l-1.32-.4a1.38 1.38 0 0 1-.93-1.72Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M115.08 61.58a1.38 1.38 0 0 1 1.77-.82l1.32.48a1.38 1.38 0 0 1-.97 2.6c-.43-.17-.87-.33-1.3-.48a1.38 1.38 0 0 1-.82-1.78Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M138.67 62.89c.42.64.25 1.5-.4 1.92-.41.27-.85.54-1.29.78a1.38 1.38 0 0 1-1.32-2.43c.37-.2.73-.43 1.1-.66.63-.42 1.49-.25 1.91.39Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M30.5 62.78c.77.07 1.33.74 1.26 1.5l-.03.59.01.75-1.6 1.4a1.38 1.38 0 0 1-1.16-1.32l-.02-.83c0-.28.02-.56.04-.84.07-.76.75-1.32 1.5-1.25Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M121.6 64.07c.3-.7 1.1-1.04 1.8-.75a146.8 146.8 0 0 1 1.26.52 1.38 1.38 0 1 1-.97 2.59 19.62 19.62 0 0 1-1.35-.55c-.7-.3-1.04-1.1-.74-1.81Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M72.11 64.94c.48.6.4 1.47-.2 1.95-.38.3-.74.62-1.09.92A1.38 1.38 0 1 1 69 65.73c.37-.33.76-.66 1.17-.99.59-.48 1.46-.39 1.94.2Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M132.4 65.92c.09.76-.46 1.44-1.22 1.53-.5.05-1.02.08-1.53.09a1.38 1.38 0 1 1-.02-2.77c.42 0 .84-.03 1.25-.07.76-.09 1.44.46 1.53 1.22Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M66.66 69.9c.57.52.6 1.4.09 1.96l-.73.8-.02.02-.16.18-.08.09a1.38 1.38 0 0 1-2.05-1.86l.25-.28.75-.82c.51-.56 1.39-.6 1.95-.09Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M61.6 75.28c.45.61.31 1.48-.3 1.93-.44.31-.88.61-1.36.89a1.38 1.38 0 1 1-1.4-2.4c.4-.22.77-.46 1.12-.72a1.38 1.38 0 0 1 1.94.3Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M37.67 75.97c.42.19.86.37 1.35.53a1.38 1.38 0 0 1-.89 2.62c-.56-.19-1.1-.4-1.6-.63l.72-2.63c.14.01.28.05.42.11Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M55.05 78.57c.12.75-.4 1.46-1.15 1.58-.5.08-1 .15-1.54.2a1.38 1.38 0 1 1-.28-2.75c.49-.05.95-.11 1.39-.18.75-.12 1.46.4 1.58 1.15Z",fill:"var(--semi-color-primary)"}),a.createElement("path",{d:"M43.4 78.87c.06-.76.73-1.33 1.49-1.27a38.43 38.43 0 0 0 1.5.1 1.38 1.38 0 1 1-.12 2.76 62.94 62.94 0 0 1-1.6-.1 1.38 1.38 0 0 1-1.27-1.49Z",fill:"var(--semi-color-primary)"}),a.createElement("g",{clipPath:"url(#clip_failure_96_39_65)"},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30.9 46.87a13.45 13.45 0 0 1 9.37-16.53 13.46 13.46 0 0 1 16.52 9.39c2.64 9.56-4.76 29.27-5.14 29.9a.75.75 0 0 1-.99.27c-.64-.34-17.11-13.47-19.76-23.03Zm14.36 1.54a6.1 6.1 0 0 1-3.25-11.75 6.1 6.1 0 0 1 3.25 11.75Z",fill:"var(--semi-color-primary)"})),a.createElement("path",{d:"M102.31 100.69c-2.8 1.55-5.63 2.85-9.36 4.58l1.48 3.92c2.14-.96 6.16-6.03 7.88-8.5Z",fill:"#515151"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M121 63.04c8.85 2.1 12.43-6.5 13.12-8.77.68-2.27-5.6-11.86-8-11.2l-.42.12-.23.06c-3.1.82-11.15 2.94-12.35 8-1.3 5.46 2.4 10.49 7.88 11.79Z",fill:"#515151"}),a.createElement("path",{d:"M134.5 64.73c-.43.47-1.2.74-2.33.73a12.7 12.7 0 0 1-4.06-.86 31.25 31.25 0 0 1-9.94-6.22c-3.25-2.97-5.97-5.8-7.59-8.42-1.61-2.61-2.05-4.88-.98-6.84a3.7 3.7 0 0 1 2.11-1.86 4.53 4.53 0 0 1 2.9.15c2.16.76 4.57 2.83 6.48 6.02 3.4 5.63 6.89 8.23 9.7 10.33.49.35.95.7 1.38 1.03a7.29 7.29 0 0 1 2.61 3.48c.34 1.1.16 1.97-.28 2.46Z",fill:"white",stroke:"#515151"}),a.createElement("mask",{id:"mask_failure_130_526","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:98,y:44,width:36,height:27},a.createElement("path",{d:"M130.53 62.1c-.5-3.3-9.52-14.75-16.08-15.03l-12.68 4.52 6.47 14.16 17.25 3.07c1.84-1.14 5.43-4.07 5.04-6.72Z",fill:"#C4C4C4"})),a.createElement("g",{mask:"url(#mask_failure_130_526)"},a.createElement("path",{d:"M127.2 63.62a9.74 9.74 0 0 1-13.76.5 9.74 9.74 0 0 1-.32-13.77 9.74 9.74 0 0 1 13.77-.5 9.74 9.74 0 0 1 .32 13.77Z",fill:"white",stroke:"#515151"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m116.79 47.35-.02.37c2.86.5 8.57 2.59 8.58 6.87 0 5.36-7.44 9.34-14.47 3.46-.34-.28-.66-.53-.95-.74a10.09 10.09 0 0 0 3.17 7.17 10.24 10.24 0 0 0 14.47-.52 10.24 10.24 0 0 0-.34-14.47 10.16 10.16 0 0 0-10.44-2.14Z",fill:"#515151"}),a.createElement("path",{d:"M119.34 55a.79.79 0 1 0-1.1-1.12.79.79 0 0 0 1.1 1.12Z",fill:"#515151"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M119.98 50.72c.21-.09.45.01.54.22a7.87 7.87 0 0 0 1.84 2.65.41.41 0 1 1-.55.62 8.67 8.67 0 0 1-2.05-2.95.41.41 0 0 1 .22-.54Z",fill:"#515151"}),a.createElement("path",{d:"M114.85 52.4a.79.79 0 1 0-1.1-1.1.79.79 0 0 0 1.1 1.1Z",fill:"#515151"}),a.createElement("mask",{id:"path-18-inside-1",fill:"white"},a.createElement("ellipse",{rx:2.97818,ry:2.97818,transform:"matrix(0.727696 0.6859 -0.685903 0.727693 128.435 60.0508)"})),a.createElement("ellipse",{rx:2.97818,ry:2.97818,transform:"matrix(0.727696 0.6859 -0.685903 0.727693 128.435 60.0508)",fill:"white"}),a.createElement("path",{d:"m128.42 60.04.01-.01a.03.03 0 0 1 .02 0l-4.12 4.37a5.98 5.98 0 0 0 8.45-.25l-4.36-4.11Zm.03 0v.02l-4.37-4.11a5.98 5.98 0 0 0 .25 8.45l4.12-4.37Zm0 .03h-.01a.03.03 0 0 1-.02 0l4.12-4.37a5.98 5.98 0 0 0-8.46.25l4.37 4.12Zm-.03 0v-.03l4.37 4.11a5.98 5.98 0 0 0-.25-8.45l-4.12 4.37Z",fill:"#515151",mask:"url(#path-18-inside-1)"})),a.createElement("path",{d:"M145.63 40.19c1.37-2.75 12.75 2.35 16.14 6.78 3.38 4.43 1.48 10.74-1.9 9.68-6.69-2.12-7.56-6.7-7.94-9.48-1.2-1.85-7.67-4.24-6.3-6.98Z",fill:"white",stroke:"#515151"}),a.createElement("path",{d:"m158.95 41.56 6.64 2.52 1.66 12.47-8.3 1.98-3.47-12.03 3.47-4.94Z",fill:"white"}),a.createElement("path",{d:"M167.3 151.94c5.19 1.66 23.35 35.57 19.05 35.57-13.86 0-34.5.53-71.42.53-15.63 0-17.9-5.16-11.79-22.08a353.23 353.23 0 0 1 6.14-15.76l32.5 1.26c-.43 1.53-.91 3.07-1.38 4.4a26.82 26.82 0 0 1 8.73-1.47c5.27 0 7.04 1.4 11.77 0 2.13-.62 4.8-2.97 6.4-2.45Z",fill:"white",className:""}),a.createElement("path",{d:"M140.4 155.87c.47-1.34.95-2.88 1.38-4.4l-32.5-1.27a353.23 353.23 0 0 0-6.14 15.76c-6.1 16.92-3.84 22.08 11.79 22.08 36.93 0 57.56-.53 71.42-.53 4.3 0-13.86-33.91-19.06-35.57-1.6-.52-4.26 1.83-6.4 2.45-4.72 1.4-6.5 0-11.76 0-3.08 0-6.06.55-8.72 1.48Zm0 0a26.67 26.67 0 0 1-4.44 8.38c-1.7 2.22-3.99 4.43-5.43 4.33-1.44-.1-1.42-3.18 0-5.66 1.97-3.44 6.45-5.87 9.88-7.05Z",stroke:"#1C1F23",className:""}),a.createElement("path",{d:"M149.25 131.7s3.36 19.46-12.34 21.04c-11.53 1.15-40.77-4.55-53.76-7.79 4.72 12.82 9.61 39.86 7 42.16-3.33 2.93-47.55 1.76-55.96 0-8.42-1.75 13.82-11.46 15.45-14.66 2.99-5.84-5.48-21.18-5.75-45.45-.27-24.27 18.18-24.86 34.47-21.64 13.02 2.57 41.63 18.33 52.56 26.86l18.33-.52Z",fill:"white",stroke:"#515151"}),a.createElement("path",{d:"M141.5 153.87c-3.11 2.55-27.72 5-35.58 3.53l2.75-6.8c20.23 2.85 28.08 3.34 33.46 1.16l-.63 2.11Z",fill:"#515151",className:"__web-inspector-hide-shortcut__"}),a.createElement("path",{d:"M141.5 153.87c-3.11 2.55-27.72 5-35.58 3.53l2.75-6.8c20.23 2.85 28.08 3.34 33.46 1.16l-.63 2.11Z",fill:"#515151"}),a.createElement("path",{d:"M126.02 142.7c-3.1-2.99-4.99-7.5-4.16-12.35",stroke:"#515151"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M130.6 95.65c-9.03-10.98-18.97-19.74-25.5-24.56l1.63-2.22c6.7 4.95 16.81 13.86 26 25.02 9.18 11.16 17.54 24.67 20.59 38.83l-2.7.59c-2.91-13.56-10.97-26.67-20.02-37.66Z",fill:"#515151"}),a.createElement("path",{d:"m149.12 107.09-16.36 13.2 22.27 17.8 8.87-19.19c-.14-3.93-2.34-5.34-5.83-4.66l-3.12-2.5c.08-3.5-2.18-5.64-5.83-4.65Z",fill:"#E6E8EA"}),a.createElement("path",{d:"m148.24 128.62 9.45-14.34-2.91-2.33-10.94 13.07 4.4 3.6Z",stroke:"#515151"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M143.67 127.98a6.93 6.93 0 1 1-10.82-8.65 6.93 6.93 0 0 1 10.82 8.65Zm12.28 9.82a6.93 6.93 0 1 1-10.82-8.66 6.93 6.93 0 0 1 10.82 8.66Z",fill:"#515151"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m133.43 123.46 9.21-1.8.32 1.61-9.2 1.81-.33-1.62Z",fill:"white"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m145.5 133.11 9.21-1.8.32 1.62-9.2 1.8-.33-1.62Z",fill:"white"}),a.createElement("defs",null,a.createElement("clipPath",{id:"clip_failure_96_39_65"},a.createElement("rect",{width:44.4004,height:44.4627,transform:"matrix(0.963965 -0.266028 0.266198 0.963918 18.4214 34.6221)",fill:"white"}))))}var q=H;const K=({packages:r})=>e.jsx("div",{children:r.map(({name:t,size:s},c)=>{const n=(s/1024/1024).toFixed(2)+"MB",d=s<=4*1024*1024;return e.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"2px 8px",borderRadius:6,backgroundColor:d?"#E8F5E9":"#FCE4EC",marginBottom:c===r.length-1?0:8,width:"fit-content"},children:[e.jsxs(l.Text,{style:{fontWeight:600,fontSize:14},children:[t,":"]}),e.jsx(l.Text,{style:{color:d?"#4CAF50":"#F44336",fontWeight:600},children:n}),e.jsx(l.Text,{type:"tertiary",style:{marginLeft:8},children:d?i("notExceedIndependentPkgSizeLimit",{limit:"4MB"}):i("exceedIndependentPkgSizeLimit",{limit:"4MB"})})]},t)})}),Y=({size:r,limit:t})=>{const s=(r/1024/1024).toFixed(2)+"MB",c=r<=t*1024*1024,n=c?i("notExceedSizeLimit",{limit:t+"MB"}):i("exceedSizeLimit",{limit:t+"MB"});return e.jsxs("div",{style:{display:"flex",alignItems:"center",width:"fit-content",padding:"2px 8px",borderRadius:6,backgroundColor:c?"#E8F5E9":"#FCE4EC"},children:[e.jsx(l.Text,{style:{fontWeight:600,color:c?"#4CAF50":"#F44336"},children:s}),e.jsx(l.Text,{type:"tertiary",style:{marginLeft:8},children:n})]})},X=({packages:r,limit:t})=>{const s=r.find(m=>m.type==="main")?.size,c=(s/1024/1024).toFixed(2)+"MB",n=s<=t*1024*1024,d=n?i("notExceedMainPkgSizeLimit",{limit:t+"MB"}):i("exceedMainPkgSizeLimit",{limit:t+"MB"});return e.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"2px 8px",width:"fit-content",borderRadius:6,backgroundColor:n?"#E8F5E9":"#FCE4EC"},children:[e.jsx(l.Text,{style:{fontWeight:600,color:n?"#4CAF50":"#F44336"},children:c}),e.jsx(l.Text,{type:"tertiary",style:{marginLeft:8},children:d})]})},$=({domains:r=[]})=>r?.length?e.jsx(R,{className:"trusted-domain-list",style:{flexWrap:"wrap"},children:r.map(t=>e.jsx(S,{className:"trusted-domain-tag",children:t},t))}):e.jsx("div",{className:"project-detail-warning",children:e.jsx(l.Text,{className:"project-detail-warning-text",children:i("trustDomainEmptyTip")})}),J=({termsOfServiceLink:r})=>{const t=i("termsLabel");return r?e.jsxs("div",{className:"terms-privacy-item",children:[e.jsx(l.Text,{type:"tertiary",className:"terms-privacy-label",children:t}),e.jsx("a",{className:"terms-privacy-value",href:r,title:r,target:"_blank",rel:"noreferrer",children:r})]}):e.jsxs("div",{className:"terms-privacy-item",children:[e.jsx(l.Text,{type:"tertiary",className:"terms-privacy-label",children:t}),e.jsx("div",{className:"project-detail-warning",children:e.jsx(l.Text,{className:"project-detail-warning-text",children:i("termsOfServiceEmptyTip")})})]})},Q=({privacyPolicyLink:r})=>{const t=i("privacyLabel");return r?e.jsxs("div",{className:"terms-privacy-item",children:[e.jsx(l.Text,{type:"tertiary",className:"terms-privacy-label",children:t}),e.jsx("a",{className:"terms-privacy-value",href:r,title:r,target:"_blank",rel:"noreferrer",children:r})]}):e.jsxs("div",{className:"terms-privacy-item",children:[e.jsx(l.Text,{type:"tertiary",className:"terms-privacy-label",children:t}),e.jsx("div",{className:"project-detail-warning",children:e.jsx(l.Text,{className:"project-detail-warning-text",children:i("privacyPolicyEmptyTip")})})]})},ee=({logo:r,placeholder:t})=>{if(!r?.trim())return e.jsx("div",{className:"project-detail-warning",children:e.jsx(l.Text,{className:"project-detail-warning-text",children:i("gameIconEmptyTip")})});const[s,c]=a.useState(!1);return e.jsxs("div",{style:{width:100,height:100,borderRadius:4,overflow:"hidden",position:"relative",background:"#f0f0f0",display:"flex",alignItems:"center",justifyContent:"center"},children:[!s&&(t||e.jsx("div",{style:{width:"100%",height:"100%",background:"#e0e0e0",display:"flex",alignItems:"center",justifyContent:"center",color:"#aaa",fontSize:14}})),e.jsx("img",{src:r,alt:"logo",style:{width:"100%",height:"100%",borderRadius:4,objectFit:"cover",position:"absolute",top:0,left:0,opacity:s?1:0,transition:"opacity 0.3s"},onLoad:()=>c(!0)})]})},ae=({description:r})=>r?e.jsx(l.Text,{style:{fontSize:14},children:r}):e.jsx("div",{className:"project-detail-warning",children:e.jsx(l.Text,{className:"project-detail-warning-text",children:i("gameDescEmptyTip")})}),re="https://bytedance.larkoffice.com/wiki/PeIawT4M4ia9R8kYyLMcjwHknOg",te=({errorMsg:r,errorState:t="unknown"})=>{const s=C(),c=t==="notLoggedIn"||t==="loginExpired",n=t==="noPermission",d=c?"projectInfo.error.login.title":n?"projectInfo.error.permission.title":"projectInfo.error.general.title",m=c?"projectInfo.error.login.desc":n?"projectInfo.error.permission.desc":"projectInfo.error.general.desc",v=c?["projectInfo.error.login.stepLogin","projectInfo.error.login.stepRestart","projectInfo.error.login.stepProxy"]:n?["projectInfo.error.permission.stepCheckAccount","projectInfo.error.permission.stepApply","projectInfo.error.permission.stepRestart"]:["projectInfo.error.general.stepCheck","projectInfo.error.general.stepRetry"],g=()=>{window.open(re,"_blank","noopener,noreferrer")};return e.jsxs("div",{className:"error-display",children:[e.jsx(z,{className:"error-display-banner",type:"info",closeIcon:null,description:e.jsxs("div",{className:"error-display-banner-content",children:[e.jsx(l.Text,{strong:!0,children:i(d)}),e.jsx(l.Text,{children:i(m)})]})}),e.jsxs("div",{className:"error-display-panel",children:[e.jsxs("div",{className:"error-display-hero",children:[e.jsx("div",{className:"error-display-hero-illustration",children:e.jsx(q,{})}),e.jsxs("div",{className:"error-display-hero-copy",children:[e.jsx(l.Title,{heading:4,children:i("projectInfo.error.guideTitle")}),e.jsx(l.Paragraph,{className:"error-display-main-text",children:r})]})]}),e.jsxs("div",{className:"error-display-guide-grid",children:[e.jsxs("section",{className:"error-display-guide-card",children:[e.jsx(l.Text,{strong:!0,children:i("projectInfo.error.stepTitle")}),e.jsx("div",{className:"error-display-step-list",children:v.map((f,u)=>e.jsxs("div",{className:"error-display-step-item",children:[e.jsx("span",{className:"error-display-step-index",children:u+1}),e.jsx(l.Text,{children:i(f)})]},f))}),c?e.jsxs("div",{className:"error-display-command-list",children:[e.jsxs("div",{className:"error-display-command-item",children:[e.jsx(l.Text,{type:"tertiary",children:i("projectInfo.error.commandLogin")}),e.jsx("code",{children:"ttmg login"})]}),e.jsxs("div",{className:"error-display-command-item",children:[e.jsx(l.Text,{type:"tertiary",children:i("projectInfo.error.commandRestart")}),e.jsx("code",{children:"ttmg dev"})]}),e.jsxs("div",{className:"error-display-command-item",children:[e.jsx(l.Text,{type:"tertiary",children:i("projectInfo.error.commandProxy")}),e.jsx("code",{children:"ttmg config set proxy http://127.0.0.1:7890"}),e.jsx(l.Text,{type:"tertiary",className:"error-display-command-hint",children:i("projectInfo.error.commandProxyHint")})]})]}):null]}),e.jsxs("section",{className:"error-display-guide-card",children:[e.jsx(l.Text,{strong:!0,children:i("projectInfo.error.helpTitle")}),e.jsx(l.Paragraph,{className:"error-display-help-text",children:c?i("projectInfo.error.helpLoginDesc"):n?i("projectInfo.error.helpPermissionDesc"):i("projectInfo.error.helpGeneralDesc")}),c?e.jsxs("div",{className:"error-display-actions",children:[e.jsx(M,{theme:"light",onClick:()=>s("/basic_debug_guide"),children:i("basicDebugGuide.entryAction")}),e.jsx(M,{theme:"solid",type:"primary",onClick:g,children:i("projectInfo.error.openProxyDoc")})]}):null]})]})]})]})},E=({label:r,children:t,wide:s=!1})=>e.jsxs("div",{className:`game-detail-field ${s?"game-detail-field-wide":""}`,children:[e.jsx(l.Text,{type:"tertiary",className:"game-detail-field-label",children:r}),e.jsx("div",{className:"game-detail-field-value",children:t})]}),ie=()=>{const{state:{gameDetail:r,user:t,packages:s,engine:c},setGameDetail:n}=L(),[d,m]=a.useState(!0),[v,g]=a.useState(!1),[f,u]=a.useState(""),[T,b]=a.useState("unknown"),N=({errorCode:p,errorMsg:h,clientKey:j})=>{m(!1),g(!0),b(O({errorCode:p,user:t})),u(A({errorCode:p,errorMsg:h,clientKey:j,user:t}))};a.useEffect(()=>{if(r&&!r.has_error){m(!1);return}r?.has_error&&(g(!0),N({errorCode:r.error_code,errorMsg:r.error_msg,clientKey:r.client_key})),F({url:"/game/detail",method:"GET"}).then(p=>{if(p?.error)m(!1),N(p.error);else{const{data:h}=p;n(h),m(!1)}})},[]);const o=a.useMemo(()=>{if(!r||r?.has_error)return null;const{size:p,request_allowed_domains:h}=r,j=c==="unity",y=s?.length>0?s:r.packages??[],k=y.reduce((x,D)=>x+(D?.size??0),0)||p,_=j?60:30,I=y.filter(x=>x.type==="independent"),P=y.some(x=>x.type==="main");return{isUnity:j,packageList:y,projectSize:k,projectSizeLimit:_,independentPackages:I,hasMainPackage:P,domains:h}},[c,r,s]);return d&&!r?e.jsx("div",{className:"game-detail-loading-container",children:e.jsx(B,{size:"large"})}):v?e.jsx(te,{errorMsg:f,errorState:T}):!r||!o?null:e.jsx("div",{className:"game-detail-container",children:e.jsxs("div",{className:"game-detail-page",children:[e.jsxs("section",{className:"game-detail-intro",children:[e.jsx(l.Paragraph,{className:"game-detail-page-desc",children:i("projectInfoDesc")}),e.jsx(l.Paragraph,{className:"game-detail-page-desc",children:i("projectInfoDescTip")})]}),e.jsxs("section",{className:"game-detail-panel",children:[e.jsx("div",{className:"game-detail-panel-head",children:e.jsx(l.Text,{strong:!0,children:i("projectInfo.section.basic")})}),e.jsxs("div",{className:"game-detail-basic-hero",children:[e.jsx("div",{className:"game-detail-logo-shell game-detail-logo-shell-basic",children:e.jsx(ee,{logo:r.display_icon_url||""})}),e.jsx("div",{className:"game-detail-basic-main",children:e.jsxs("div",{className:"game-detail-basic-meta",children:[e.jsxs("div",{className:"game-detail-basic-row",children:[e.jsx(l.Text,{type:"tertiary",className:"game-detail-basic-meta-label",children:i("gameName")}),e.jsx("div",{className:"game-detail-basic-meta-value",children:r.name?.trim()?e.jsx(l.Text,{strong:!0,className:"game-detail-basic-name",children:r.name}):e.jsx("div",{className:"project-detail-warning",children:e.jsx(l.Text,{className:"project-detail-warning-text",children:i("gameNameEmptyTip")})})})]}),e.jsxs("div",{className:"game-detail-basic-row",children:[e.jsx(l.Text,{type:"tertiary",className:"game-detail-basic-meta-label",children:i("gameID")}),e.jsx(l.Text,{className:"game-detail-basic-meta-value game-detail-basic-meta-value-code",children:r.client_key||"-"})]}),e.jsxs("div",{className:"game-detail-basic-row",children:[e.jsx(l.Text,{type:"tertiary",className:"game-detail-basic-meta-label",children:i("gameDesc")}),e.jsx("div",{className:"game-detail-basic-meta-value",children:e.jsx(ae,{description:r.description})})]})]})})]})]}),e.jsxs("div",{className:"game-detail-section-grid",children:[e.jsxs("section",{className:"game-detail-panel",children:[e.jsx("div",{className:"game-detail-panel-head",children:e.jsx(l.Text,{strong:!0,children:i("projectInfo.section.package")})}),e.jsxs("div",{className:"game-detail-fields-grid",children:[e.jsx(E,{label:i("gameSize"),children:e.jsx(Y,{size:o.projectSize,limit:o.projectSizeLimit})}),!o.isUnity&&o.hasMainPackage?e.jsx(E,{label:i("gameMainPackageSize"),children:e.jsx(X,{packages:o.packageList,limit:4})}):null,!o.isUnity&&o.independentPackages.length>0?e.jsx(E,{label:i("gameIndependentPackageSize"),wide:!0,children:e.jsx(K,{packages:o.independentPackages})}):null]})]}),e.jsxs("section",{className:"game-detail-panel",children:[e.jsx("div",{className:"game-detail-panel-head",children:e.jsx(l.Text,{strong:!0,children:i("projectInfo.section.platform")})}),e.jsxs("div",{className:"game-detail-platform-stack",children:[e.jsxs("div",{className:"game-detail-platform-card",children:[e.jsx("div",{className:"game-detail-platform-card-head",children:e.jsx(l.Text,{strong:!0,children:i("gameTrustDomains")})}),e.jsx($,{domains:o.domains})]}),e.jsxs("div",{className:"game-detail-platform-card",children:[e.jsx("div",{className:"game-detail-platform-card-head",children:e.jsx(l.Text,{strong:!0,children:i("gameTermsAndPrivacy")})}),e.jsxs("div",{className:"game-detail-terms-stack",children:[e.jsx(J,{termsOfServiceLink:r.terms_of_service_link}),e.jsx(Q,{privacyPolicyLink:r.privacy_policy_link})]})]})]})]})]})]})})};export{ie as ProjectDetail};
@@ -1 +1 @@
1
- import{u as t,r as a,j as e,b as c,i as o,H as r,M as i}from"./index-07cXGo3a.js";const d=()=>{const n=t();return a.useEffect(()=>{const s=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=s}},[]),e.jsxs("div",{className:"manual-connect-container",children:[e.jsx("div",{className:"manual-connect-back",children:e.jsx(c,{className:"devtool-page-back",theme:"borderless",onClick:()=>n("/network_diagnostics"),children:o("back")})}),e.jsx(r,{title:o("netDiagManualBindEntry"),children:e.jsx(i,{onClose:()=>n("/network_diagnostics"),onSuccess:()=>n("/network_diagnostics")})})]})};export{d as ManualConnect};
1
+ import{u as t,r as a,j as e,b as c,i as o,H as r,M as i}from"./index-BVIWa0s0.js";const d=()=>{const n=t();return a.useEffect(()=>{const s=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=s}},[]),e.jsxs("div",{className:"manual-connect-container",children:[e.jsx("div",{className:"manual-connect-back",children:e.jsx(c,{className:"devtool-page-back",theme:"borderless",onClick:()=>n("/network_diagnostics"),children:o("back")})}),e.jsx(r,{title:o("netDiagManualBindEntry"),children:e.jsx(i,{onClose:()=>n("/network_diagnostics"),onSuccess:()=>n("/network_diagnostics")})})]})};export{d as ManualConnect};
@@ -1 +1 @@
1
- import{u as r,c as l,z as c,j as s,P as t,ae as i,i as o,T as n,b as d}from"./index-07cXGo3a.js";const g=()=>{const a=r(),{state:{user:e}}=l();return c(e)?s.jsx(t,{position:"bottom",content:s.jsx("div",{className:"login-user-popover",children:e?.email||e?.user_id}),children:s.jsx(i,{color:"amber",style:{flexShrink:0},alt:e?.email||e?.user_id||void 0,size:"small",children:(e?.email||e?.user_id||"?").trim()[0]?.toUpperCase()||"?"})}):s.jsx(t,{position:"bottom",trigger:"hover",content:s.jsxs("div",{className:"not-login-status-popover",children:[s.jsxs("div",{className:"not-login-status-popover-copy",children:[s.jsx(n.Text,{strong:!0,children:o("notLogin")}),s.jsx(n.Text,{children:o("notLoginTip")}),s.jsx("code",{className:"not-login-status-command",children:"ttmg login"})]}),s.jsx("div",{className:"not-login-status-popover-actions",children:s.jsx(d,{size:"small",theme:"light",onClick:()=>a("/basic_debug_guide"),children:o("basicDebugGuide.entryAction")})})]}),children:s.jsx(i,{color:"grey",style:{flexShrink:0},size:"small",children:o("notLogin")})})};export{g as LoginStatus};
1
+ import{u as r,c as l,z as c,j as s,P as t,ae as i,i as o,T as n,b as d}from"./index-BVIWa0s0.js";const g=()=>{const a=r(),{state:{user:e}}=l();return c(e)?s.jsx(t,{position:"bottom",content:s.jsx("div",{className:"login-user-popover",children:e?.email||e?.user_id}),children:s.jsx(i,{color:"amber",style:{flexShrink:0},alt:e?.email||e?.user_id||void 0,size:"small",children:(e?.email||e?.user_id||"?").trim()[0]?.toUpperCase()||"?"})}):s.jsx(t,{position:"bottom",trigger:"hover",content:s.jsxs("div",{className:"not-login-status-popover",children:[s.jsxs("div",{className:"not-login-status-popover-copy",children:[s.jsx(n.Text,{strong:!0,children:o("notLogin")}),s.jsx(n.Text,{children:o("notLoginTip")}),s.jsx("code",{className:"not-login-status-command",children:"ttmg login"})]}),s.jsx("div",{className:"not-login-status-popover-actions",children:s.jsx(d,{size:"small",theme:"light",onClick:()=>a("/basic_debug_guide"),children:o("basicDebugGuide.entryAction")})})]}),children:s.jsx(i,{color:"grey",style:{flexShrink:0},size:"small",children:o("notLogin")})})};export{g as LoginStatus};
@@ -1 +1 @@
1
- import{K as U,r as T,bl as z,bm as H,ak as J,h as R,k as L,aD as _,U as Q,R as o,n as P,t as I,q as t,m as M,aH as j,aC as ee,Z as te}from"./index-07cXGo3a.js";function ae(u){return T.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},u),T.createElement("path",{d:"M5 12.5c0-.83.67-1.5 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 5 12.5Z",fill:"currentColor"}))}const se=U(ae,"checkbox_indeterminate");function ne(u){return T.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},u),T.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.41 7.3c.66.51.78 1.45.28 2.11l-6.5 8.5a1.5 1.5 0 0 1-2.37.01l-3.5-4.5a1.5 1.5 0 1 1 2.36-1.84L10 14.54l5.32-6.95a1.5 1.5 0 0 1 2.1-.28Z",fill:"currentColor"}))}const re=U(ne,"checkbox_tick");var $,w;function ie(){if(w)return $;w=1;var u=z(),e=H(),a="[object Boolean]";function s(r){return r===!0||r===!1||e(r)&&u(r)==a}return $=s,$}var oe=ie();const de=J(oe),G={PREFIX:`${R}-checkbox`,INPUT:`${R}-checkbox-input`,WRAPPER:""},le={PREFIX:`${R}-checkboxGroup`},p={DIRECTION_SET:["horizontal","vertical"],TYPE_DEFAULT:"default",TYPE_CARD:"card",TYPE_PURECARD:"pureCard",DEFAULT_DIRECTION:"vertical"};class ce extends L{constructor(e){super(Object.assign({},e)),this.clickState=!1,this.handleFocusVisible=a=>{const{target:s}=a;try{if(this.clickState){this.clickState=!1;return}s.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_(!0,"Warning: [Semi Checkbox] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this.clickState=!1,this._adapter.setFocusVisible(!1)}}init(){const{children:e,extra:a,extraId:s,addonId:r}=this.getProps();e&&!r&&this._adapter.setAddonId(),a&&!s&&this._adapter.setExtraId()}notifyChange(e,a){const s=this._adapter.generateEvent(e,a);this._adapter.notifyChange(s)}handleChange(e){if(this.getProp("disabled"))return;if(e?.type==="click"&&(this.clickState=!0),this._adapter.focusCheckboxEntity(),this._adapter.getIsInGroup()){this._adapter.getGroupDisabled()||this.handleChangeInGroup(e);return}const l=!this.getState("checked");this._isControlledComponent("checked")?this.notifyChange(l,e):(this.setChecked(l),this.notifyChange(l,e))}handleChangeInGroup(e){const{value:a}=this.getProps(),l=!this._adapter.getGroupValue().includes(a),c=this._adapter.generateEvent(l,e);this._adapter.notifyChange(c),this._adapter.notifyGroupChange(c)}handleEnterPress(e){Q(e)&&this.handleChange(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}destroy(){}}const N=o.createContext({});class A extends T.PureComponent{blur(){this.inputEntity.blur()}focus(){const{preventScroll:e}=this.props;this.inputEntity.focus({preventScroll:e})}render(){const{indeterminate:e,checked:a,disabled:s,prefixCls:r,name:l,isPureCardType:c,addonId:E,extraId:x,focusInner:f,onInputFocus:g,onInputBlur:m}=this.props,h=r||G.PREFIX,v=P({[`${h}-inner`]:!0,[`${h}-inner-checked`]:!!a,[`${h}-inner-pureCardType`]:c},G.WRAPPER),k=P({[`${h}-inner-display`]:!0,[`${h}-focus`]:f,[`${h}-focus-border`]:f&&!a}),C=a?o.createElement(re,null):e?o.createElement(se,null):null,i={type:"checkbox","aria-label":this.props["aria-label"],"aria-disabled":s,"aria-checked":a,"aria-labelledby":E,"aria-describedby":x||this.props["aria-describedby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-required":this.props["aria-required"],className:G.INPUT,onChange:I,checked:a,disabled:s,onFocus:g,onBlur:m};return l&&(i.name=l),o.createElement("span",{className:v},o.createElement("input",Object.assign({},i,{ref:b=>{this.inputEntity=b}})),o.createElement("span",{className:k},C))}}A.contextType=N;A.propTypes={"aria-describedby":t.string,"aria-errormessage":t.string,"aria-invalid":t.bool,"aria-labelledby":t.string,"aria-required":t.bool,checked:t.bool,disabled:t.bool,onChange:t.func,children:t.node,grouped:t.bool,value:t.any,isPureCardType:t.bool,addonId:t.string,extraId:t.string,focusInner:t.bool,onInputFocus:t.func,onInputBlur:t.func,preventScroll:t.bool};A.defaultProps={onChange:I};class y extends M{get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({checked:e})},notifyChange:e=>{const{onChange:a}=this.props;a&&a(e)},generateEvent:(e,a)=>{const{props:s}=this;return{target:Object.assign(Object.assign({},s),{checked:e}),stopPropagation:()=>{a.stopPropagation()},preventDefault:()=>{a.preventDefault()},nativeEvent:{stopImmediatePropagation:()=>{a.nativeEvent&&typeof a.nativeEvent.stopImmediatePropagation=="function"&&a.nativeEvent.stopImmediatePropagation()}}}},getIsInGroup:()=>this.isInGroup(),getGroupValue:()=>this.context&&this.context.checkboxGroup.value||[],notifyGroupChange:e=>{this.context.checkboxGroup.onChange(e)},getGroupDisabled:()=>this.context&&this.context.checkboxGroup.disabled,setAddonId:()=>{this.setState({addonId:j({prefix:"addon"})})},setExtraId:()=>{this.setState({extraId:j({prefix:"extra"})})},setFocusVisible:e=>{this.setState({focusVisible:e})},focusCheckboxEntity:()=>{this.focus()}})}constructor(e){super(e),this.handleChange=s=>this.foundation.handleChange(s),this.handleEnterPress=s=>this.foundation.handleEnterPress(s),this.handleFocusVisible=s=>{this.foundation.handleFocusVisible(s)},this.handleBlur=s=>{this.foundation.handleBlur()};const a=!1;this.state={checked:e.checked||e.defaultChecked||a,addonId:e.addonId,extraId:e.extraId,focusVisible:!1},this.checkboxEntity=null,this.foundation=new ce(this.adapter)}componentDidUpdate(e){this.props.checked!==e.checked&&(ee(this.props.checked)?this.foundation.setChecked(!1):de(this.props.checked)&&this.foundation.setChecked(this.props.checked))}isInGroup(){return!!(this.context&&this.context.checkboxGroup&&"value"in this.props)}focus(){this.checkboxEntity&&this.checkboxEntity.focus()}blur(){this.checkboxEntity&&this.checkboxEntity.blur()}render(){const{disabled:e,style:a,prefixCls:s,className:r,indeterminate:l,children:c,onMouseEnter:E,onMouseLeave:x,extra:f,value:g,role:m,tabIndex:h,id:v,type:k}=this.props,{checked:C,addonId:i,extraId:b,focusVisible:F}=this.state,n={checked:C,disabled:e},O=this.isInGroup();if(O){if(this.context.checkboxGroup.value){const K=(this.context.checkboxGroup.value||[]).includes(g);n.checked=K}this.context.checkboxGroup.disabled&&(n.disabled=this.context.checkboxGroup.disabled||this.props.disabled);const{isCardType:D,isPureCardType:Z}=this.context.checkboxGroup;n.isCardType=D,n.isPureCardType=Z,n.name=this.context.checkboxGroup.name}else n.isPureCardType=k===p.TYPE_PURECARD,n.isCardType=k===p.TYPE_CARD||n.isPureCardType;const d=s||G.PREFIX,B=n.isCardType||n.isPureCardType,q=P(d,{[`${d}-disabled`]:n.disabled,[`${d}-indeterminate`]:l,[`${d}-checked`]:n.checked,[`${d}-unChecked`]:!n.checked,[`${d}-cardType`]:n.isCardType,[`${d}-cardType_disabled`]:n.disabled&&n.isCardType,[`${d}-cardType_enable`]:!(n.disabled&&n.isCardType),[`${d}-cardType_checked`]:n.isCardType&&n.checked&&!n.disabled,[`${d}-cardType_checked_disabled`]:n.isCardType&&n.checked&&n.disabled,[r]:!!r,[`${d}-focus`]:F&&B}),Y=P(`${d}-extra`,{[`${d}-cardType_extra_noChildren`]:n.isCardType&&!c});O&&this.context.checkboxGroup.name;const W=this.props["x-semi-children-alias"]||"children",X=()=>!c&&!f?null:o.createElement("div",{className:`${d}-content`},c?o.createElement("span",{id:i,className:`${d}-addon`,"x-semi-prop":W},c):null,f?o.createElement("div",{id:b,className:Y,"x-semi-prop":"extra"},f):null);return o.createElement("span",Object.assign({role:m,tabIndex:h,style:a,className:q,id:v,onMouseEnter:E,onMouseLeave:x,onClick:this.handleChange,onKeyPress:this.handleEnterPress,"aria-labelledby":this.props["aria-labelledby"]},this.getDataAttr(this.props)),o.createElement(A,Object.assign({},this.props,n,{addonId:c&&i,extraId:f&&b,isPureCardType:n.isPureCardType,ref:D=>{this.checkboxEntity=D},focusInner:F&&!B,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),X())}}y.contextType=N;y.propTypes={"aria-describedby":t.string,"aria-errormessage":t.string,"aria-invalid":t.bool,"aria-labelledby":t.string,"aria-required":t.bool,checked:t.bool,defaultChecked:t.bool,disabled:t.bool,indeterminate:t.bool,onChange:t.func,value:t.any,style:t.object,className:t.string,prefixCls:t.string,onMouseEnter:t.func,onMouseLeave:t.func,extra:t.node,index:t.number,"aria-label":t.string,tabIndex:t.number,preventScroll:t.bool,type:t.string};y.defaultProps={defaultChecked:!1,indeterminate:!1,onChange:I,onMouseEnter:I,onMouseLeave:I,type:"default"};y.elementType="Checkbox";class S extends L{static get checkboxGroupDefaultAdapter(){return{}}constructor(e){super(Object.assign(Object.assign({},S.checkboxGroupDefaultAdapter),e))}init(){const{defaultValue:e,value:a}=this.getProps();typeof e<"u"&&!Array.isArray(e)&&_(!0,"Warning: [Semi CheckboxGroup] defaultValue should be an Array"),typeof a<"u"&&!Array.isArray(a)&&_(!0,"Warning: [Semi CheckboxGroup] value should be an Array")}notifyChange(e){this._adapter.notifyChange(e)}handleChange(e){const a=this.getState("value");let s=[];Array.isArray(a)||(s=[a]),e.target.checked?s=[...a,e.target.value]:s=a.filter((l,c)=>l!==e.target.value),"value"in this.getProps()?this.notifyChange(s):(this._adapter.updateGroupValue(s),this.notifyChange(s))}getFormatName(){return this.getProp("name")||"default"}handlePropValueChange(e){Array.isArray(e)?this._adapter.updateGroupValue(e):(typeof e>"u"&&this._adapter.updateGroupValue([]),_(!0,"Warning: [Semi CheckboxGroup] value should be an Array"))}destroy(){}}class V extends M{get adapter(){return Object.assign(Object.assign({},super.adapter),{updateGroupValue:e=>{this.setState({value:e})},notifyChange:e=>{this.props.onChange&&this.props.onChange(e)}})}constructor(e){super(e),this.state={value:e.value||e.defaultValue},this.foundation=new S(this.adapter),this.onChange=this.onChange.bind(this)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){te(e.value,this.props.value)||this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}onChange(e){this.foundation.handleChange(e)}render(){const{children:e,options:a,prefixCls:s,direction:r,className:l,id:c,style:E,type:x,disabled:f}=this.props,g=x===p.TYPE_PURECARD,m=x===p.TYPE_CARD||g,h=s||le.PREFIX,v=P({[h]:!0,[`${h}-wrapper`]:!0,[`${h}-${r}`]:r,[`${h}-${r}-cardType`]:r&&m,[`${h}-${r}-pureCardType`]:r&&g},l),k=this.state.value.slice();let C;return a?C=(a||[]).map((i,b)=>typeof i=="string"?o.createElement(y,{role:"listitem",key:b,disabled:this.props.disabled,value:i,prefixCls:s},i):o.createElement(y,{role:"listitem",key:b,disabled:i.disabled||this.props.disabled,value:i.value,prefixCls:s,extra:i.extra,className:i.className,style:i.style,onChange:i.onChange},i.label)):e&&(C=o.Children.toArray(e).map((i,b)=>o.cloneElement(i,{key:b,role:"listitem"}))),o.createElement("div",Object.assign({id:c,role:"list","aria-label":this.props["aria-label"],className:v,style:E,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"]},this.getDataAttr(this.props)),o.createElement(N.Provider,{value:{checkboxGroup:{onChange:this.onChange,value:k,disabled:this.props.disabled,name:this.foundation.getFormatName(),isCardType:m,isPureCardType:g}}},C))}}V.propTypes={"aria-describedby":t.string,"aria-errormessage":t.string,"aria-invalid":t.bool,"aria-labelledby":t.string,"aria-required":t.bool,defaultValue:t.array,disabled:t.bool,name:t.string,options:t.array,value:t.array,onChange:t.func,children:t.node,prefixCls:t.string,direction:t.oneOf(p.DIRECTION_SET),className:t.string,type:t.oneOf([p.TYPE_DEFAULT,p.TYPE_CARD,p.TYPE_PURECARD]),style:t.object};V.defaultProps={disabled:!1,onChange:()=>{},type:p.TYPE_DEFAULT,defaultValue:[],direction:p.DEFAULT_DIRECTION};class he extends y{}he.Group=V;export{he as C,de as _,y as a,V as b};
1
+ import{K as U,r as T,bl as z,bm as H,ak as J,h as R,k as L,aD as _,U as Q,R as o,n as P,t as I,q as t,m as M,aH as j,aC as ee,Z as te}from"./index-BVIWa0s0.js";function ae(u){return T.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},u),T.createElement("path",{d:"M5 12.5c0-.83.67-1.5 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 5 12.5Z",fill:"currentColor"}))}const se=U(ae,"checkbox_indeterminate");function ne(u){return T.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},u),T.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.41 7.3c.66.51.78 1.45.28 2.11l-6.5 8.5a1.5 1.5 0 0 1-2.37.01l-3.5-4.5a1.5 1.5 0 1 1 2.36-1.84L10 14.54l5.32-6.95a1.5 1.5 0 0 1 2.1-.28Z",fill:"currentColor"}))}const re=U(ne,"checkbox_tick");var $,w;function ie(){if(w)return $;w=1;var u=z(),e=H(),a="[object Boolean]";function s(r){return r===!0||r===!1||e(r)&&u(r)==a}return $=s,$}var oe=ie();const de=J(oe),G={PREFIX:`${R}-checkbox`,INPUT:`${R}-checkbox-input`,WRAPPER:""},le={PREFIX:`${R}-checkboxGroup`},p={DIRECTION_SET:["horizontal","vertical"],TYPE_DEFAULT:"default",TYPE_CARD:"card",TYPE_PURECARD:"pureCard",DEFAULT_DIRECTION:"vertical"};class ce extends L{constructor(e){super(Object.assign({},e)),this.clickState=!1,this.handleFocusVisible=a=>{const{target:s}=a;try{if(this.clickState){this.clickState=!1;return}s.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_(!0,"Warning: [Semi Checkbox] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this.clickState=!1,this._adapter.setFocusVisible(!1)}}init(){const{children:e,extra:a,extraId:s,addonId:r}=this.getProps();e&&!r&&this._adapter.setAddonId(),a&&!s&&this._adapter.setExtraId()}notifyChange(e,a){const s=this._adapter.generateEvent(e,a);this._adapter.notifyChange(s)}handleChange(e){if(this.getProp("disabled"))return;if(e?.type==="click"&&(this.clickState=!0),this._adapter.focusCheckboxEntity(),this._adapter.getIsInGroup()){this._adapter.getGroupDisabled()||this.handleChangeInGroup(e);return}const l=!this.getState("checked");this._isControlledComponent("checked")?this.notifyChange(l,e):(this.setChecked(l),this.notifyChange(l,e))}handleChangeInGroup(e){const{value:a}=this.getProps(),l=!this._adapter.getGroupValue().includes(a),c=this._adapter.generateEvent(l,e);this._adapter.notifyChange(c),this._adapter.notifyGroupChange(c)}handleEnterPress(e){Q(e)&&this.handleChange(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}destroy(){}}const N=o.createContext({});class A extends T.PureComponent{blur(){this.inputEntity.blur()}focus(){const{preventScroll:e}=this.props;this.inputEntity.focus({preventScroll:e})}render(){const{indeterminate:e,checked:a,disabled:s,prefixCls:r,name:l,isPureCardType:c,addonId:E,extraId:x,focusInner:f,onInputFocus:g,onInputBlur:m}=this.props,h=r||G.PREFIX,v=P({[`${h}-inner`]:!0,[`${h}-inner-checked`]:!!a,[`${h}-inner-pureCardType`]:c},G.WRAPPER),k=P({[`${h}-inner-display`]:!0,[`${h}-focus`]:f,[`${h}-focus-border`]:f&&!a}),C=a?o.createElement(re,null):e?o.createElement(se,null):null,i={type:"checkbox","aria-label":this.props["aria-label"],"aria-disabled":s,"aria-checked":a,"aria-labelledby":E,"aria-describedby":x||this.props["aria-describedby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-required":this.props["aria-required"],className:G.INPUT,onChange:I,checked:a,disabled:s,onFocus:g,onBlur:m};return l&&(i.name=l),o.createElement("span",{className:v},o.createElement("input",Object.assign({},i,{ref:b=>{this.inputEntity=b}})),o.createElement("span",{className:k},C))}}A.contextType=N;A.propTypes={"aria-describedby":t.string,"aria-errormessage":t.string,"aria-invalid":t.bool,"aria-labelledby":t.string,"aria-required":t.bool,checked:t.bool,disabled:t.bool,onChange:t.func,children:t.node,grouped:t.bool,value:t.any,isPureCardType:t.bool,addonId:t.string,extraId:t.string,focusInner:t.bool,onInputFocus:t.func,onInputBlur:t.func,preventScroll:t.bool};A.defaultProps={onChange:I};class y extends M{get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({checked:e})},notifyChange:e=>{const{onChange:a}=this.props;a&&a(e)},generateEvent:(e,a)=>{const{props:s}=this;return{target:Object.assign(Object.assign({},s),{checked:e}),stopPropagation:()=>{a.stopPropagation()},preventDefault:()=>{a.preventDefault()},nativeEvent:{stopImmediatePropagation:()=>{a.nativeEvent&&typeof a.nativeEvent.stopImmediatePropagation=="function"&&a.nativeEvent.stopImmediatePropagation()}}}},getIsInGroup:()=>this.isInGroup(),getGroupValue:()=>this.context&&this.context.checkboxGroup.value||[],notifyGroupChange:e=>{this.context.checkboxGroup.onChange(e)},getGroupDisabled:()=>this.context&&this.context.checkboxGroup.disabled,setAddonId:()=>{this.setState({addonId:j({prefix:"addon"})})},setExtraId:()=>{this.setState({extraId:j({prefix:"extra"})})},setFocusVisible:e=>{this.setState({focusVisible:e})},focusCheckboxEntity:()=>{this.focus()}})}constructor(e){super(e),this.handleChange=s=>this.foundation.handleChange(s),this.handleEnterPress=s=>this.foundation.handleEnterPress(s),this.handleFocusVisible=s=>{this.foundation.handleFocusVisible(s)},this.handleBlur=s=>{this.foundation.handleBlur()};const a=!1;this.state={checked:e.checked||e.defaultChecked||a,addonId:e.addonId,extraId:e.extraId,focusVisible:!1},this.checkboxEntity=null,this.foundation=new ce(this.adapter)}componentDidUpdate(e){this.props.checked!==e.checked&&(ee(this.props.checked)?this.foundation.setChecked(!1):de(this.props.checked)&&this.foundation.setChecked(this.props.checked))}isInGroup(){return!!(this.context&&this.context.checkboxGroup&&"value"in this.props)}focus(){this.checkboxEntity&&this.checkboxEntity.focus()}blur(){this.checkboxEntity&&this.checkboxEntity.blur()}render(){const{disabled:e,style:a,prefixCls:s,className:r,indeterminate:l,children:c,onMouseEnter:E,onMouseLeave:x,extra:f,value:g,role:m,tabIndex:h,id:v,type:k}=this.props,{checked:C,addonId:i,extraId:b,focusVisible:F}=this.state,n={checked:C,disabled:e},O=this.isInGroup();if(O){if(this.context.checkboxGroup.value){const K=(this.context.checkboxGroup.value||[]).includes(g);n.checked=K}this.context.checkboxGroup.disabled&&(n.disabled=this.context.checkboxGroup.disabled||this.props.disabled);const{isCardType:D,isPureCardType:Z}=this.context.checkboxGroup;n.isCardType=D,n.isPureCardType=Z,n.name=this.context.checkboxGroup.name}else n.isPureCardType=k===p.TYPE_PURECARD,n.isCardType=k===p.TYPE_CARD||n.isPureCardType;const d=s||G.PREFIX,B=n.isCardType||n.isPureCardType,q=P(d,{[`${d}-disabled`]:n.disabled,[`${d}-indeterminate`]:l,[`${d}-checked`]:n.checked,[`${d}-unChecked`]:!n.checked,[`${d}-cardType`]:n.isCardType,[`${d}-cardType_disabled`]:n.disabled&&n.isCardType,[`${d}-cardType_enable`]:!(n.disabled&&n.isCardType),[`${d}-cardType_checked`]:n.isCardType&&n.checked&&!n.disabled,[`${d}-cardType_checked_disabled`]:n.isCardType&&n.checked&&n.disabled,[r]:!!r,[`${d}-focus`]:F&&B}),Y=P(`${d}-extra`,{[`${d}-cardType_extra_noChildren`]:n.isCardType&&!c});O&&this.context.checkboxGroup.name;const W=this.props["x-semi-children-alias"]||"children",X=()=>!c&&!f?null:o.createElement("div",{className:`${d}-content`},c?o.createElement("span",{id:i,className:`${d}-addon`,"x-semi-prop":W},c):null,f?o.createElement("div",{id:b,className:Y,"x-semi-prop":"extra"},f):null);return o.createElement("span",Object.assign({role:m,tabIndex:h,style:a,className:q,id:v,onMouseEnter:E,onMouseLeave:x,onClick:this.handleChange,onKeyPress:this.handleEnterPress,"aria-labelledby":this.props["aria-labelledby"]},this.getDataAttr(this.props)),o.createElement(A,Object.assign({},this.props,n,{addonId:c&&i,extraId:f&&b,isPureCardType:n.isPureCardType,ref:D=>{this.checkboxEntity=D},focusInner:F&&!B,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),X())}}y.contextType=N;y.propTypes={"aria-describedby":t.string,"aria-errormessage":t.string,"aria-invalid":t.bool,"aria-labelledby":t.string,"aria-required":t.bool,checked:t.bool,defaultChecked:t.bool,disabled:t.bool,indeterminate:t.bool,onChange:t.func,value:t.any,style:t.object,className:t.string,prefixCls:t.string,onMouseEnter:t.func,onMouseLeave:t.func,extra:t.node,index:t.number,"aria-label":t.string,tabIndex:t.number,preventScroll:t.bool,type:t.string};y.defaultProps={defaultChecked:!1,indeterminate:!1,onChange:I,onMouseEnter:I,onMouseLeave:I,type:"default"};y.elementType="Checkbox";class S extends L{static get checkboxGroupDefaultAdapter(){return{}}constructor(e){super(Object.assign(Object.assign({},S.checkboxGroupDefaultAdapter),e))}init(){const{defaultValue:e,value:a}=this.getProps();typeof e<"u"&&!Array.isArray(e)&&_(!0,"Warning: [Semi CheckboxGroup] defaultValue should be an Array"),typeof a<"u"&&!Array.isArray(a)&&_(!0,"Warning: [Semi CheckboxGroup] value should be an Array")}notifyChange(e){this._adapter.notifyChange(e)}handleChange(e){const a=this.getState("value");let s=[];Array.isArray(a)||(s=[a]),e.target.checked?s=[...a,e.target.value]:s=a.filter((l,c)=>l!==e.target.value),"value"in this.getProps()?this.notifyChange(s):(this._adapter.updateGroupValue(s),this.notifyChange(s))}getFormatName(){return this.getProp("name")||"default"}handlePropValueChange(e){Array.isArray(e)?this._adapter.updateGroupValue(e):(typeof e>"u"&&this._adapter.updateGroupValue([]),_(!0,"Warning: [Semi CheckboxGroup] value should be an Array"))}destroy(){}}class V extends M{get adapter(){return Object.assign(Object.assign({},super.adapter),{updateGroupValue:e=>{this.setState({value:e})},notifyChange:e=>{this.props.onChange&&this.props.onChange(e)}})}constructor(e){super(e),this.state={value:e.value||e.defaultValue},this.foundation=new S(this.adapter),this.onChange=this.onChange.bind(this)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){te(e.value,this.props.value)||this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}onChange(e){this.foundation.handleChange(e)}render(){const{children:e,options:a,prefixCls:s,direction:r,className:l,id:c,style:E,type:x,disabled:f}=this.props,g=x===p.TYPE_PURECARD,m=x===p.TYPE_CARD||g,h=s||le.PREFIX,v=P({[h]:!0,[`${h}-wrapper`]:!0,[`${h}-${r}`]:r,[`${h}-${r}-cardType`]:r&&m,[`${h}-${r}-pureCardType`]:r&&g},l),k=this.state.value.slice();let C;return a?C=(a||[]).map((i,b)=>typeof i=="string"?o.createElement(y,{role:"listitem",key:b,disabled:this.props.disabled,value:i,prefixCls:s},i):o.createElement(y,{role:"listitem",key:b,disabled:i.disabled||this.props.disabled,value:i.value,prefixCls:s,extra:i.extra,className:i.className,style:i.style,onChange:i.onChange},i.label)):e&&(C=o.Children.toArray(e).map((i,b)=>o.cloneElement(i,{key:b,role:"listitem"}))),o.createElement("div",Object.assign({id:c,role:"list","aria-label":this.props["aria-label"],className:v,style:E,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"]},this.getDataAttr(this.props)),o.createElement(N.Provider,{value:{checkboxGroup:{onChange:this.onChange,value:k,disabled:this.props.disabled,name:this.foundation.getFormatName(),isCardType:m,isPureCardType:g}}},C))}}V.propTypes={"aria-describedby":t.string,"aria-errormessage":t.string,"aria-invalid":t.bool,"aria-labelledby":t.string,"aria-required":t.bool,defaultValue:t.array,disabled:t.bool,name:t.string,options:t.array,value:t.array,onChange:t.func,children:t.node,prefixCls:t.string,direction:t.oneOf(p.DIRECTION_SET),className:t.string,type:t.oneOf([p.TYPE_DEFAULT,p.TYPE_CARD,p.TYPE_PURECARD]),style:t.object};V.defaultProps={disabled:!1,onChange:()=>{},type:p.TYPE_DEFAULT,defaultValue:[],direction:p.DEFAULT_DIRECTION};class he extends y{}he.Group=V;export{he as C,de as _,y as a,V as b};
@@ -1 +1 @@
1
- import{K,r as P,bN as X,by as G,bX as L,bY as N,bZ as V,bf as $,b_ as U,b$ as Y,bh as Z,c0 as W,ak as A,k as J,h as Q,m as j,R as m,Z as M,n as ee,s as te,q as d,c1 as se,c2 as ie}from"./index-07cXGo3a.js";function re(r){return P.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},r),P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.44 19.8a1.5 1.5 0 0 1 0-2.13l5.66-5.65-5.66-5.66a1.5 1.5 0 1 1 2.12-2.12l6.72 6.72a1.5 1.5 0 0 1 0 2.12L9.56 19.8a1.5 1.5 0 0 1-2.12 0Z",fill:"currentColor"}))}const Re=K(re,"chevron_right");var b,S;function ne(){if(S)return b;S=1;var r=X(),e=1/0,s=17976931348623157e292;function i(t){if(!t)return t===0?t:0;if(t=r(t),t===e||t===-e){var a=t<0?-1:1;return a*s}return t===t?t:0}return b=i,b}var R,E;function ae(){if(E)return R;E=1;var r=ne();function e(s){var i=r(s),t=i%1;return i===i?t?i-t:i:0}return R=e,R}var v,k;function oe(){if(k)return v;k=1;var r=G(),e=L(),s=N();function i(t,a,o){for(var n=-1,h=a.length,l={};++n<h;){var p=a[n],u=r(t,p);o(u,p)&&e(l,s(p,t),u)}return l}return v=i,v}var I,D;function he(){if(D)return I;D=1;function r(e,s){return e!=null&&s in Object(e)}return I=r,I}var _,y;function ue(){if(y)return _;y=1;var r=N(),e=V(),s=$(),i=U(),t=Y(),a=Z();function o(n,h,l){h=r(h,n);for(var p=-1,u=h.length,f=!1;++p<u;){var g=a(h[p]);if(!(f=n!=null&&l(n,g)))break;n=n[g]}return f||++p!=u?f:(u=n==null?0:n.length,!!u&&t(u)&&i(g,u)&&(s(n)||e(n)))}return _=o,_}var O,x;function de(){if(x)return O;x=1;var r=he(),e=ue();function s(i,t){return i!=null&&e(i,t,r)}return O=s,O}var T,w;function pe(){if(w)return T;w=1;var r=oe(),e=de();function s(i,t){return r(i,t,function(a,o){return e(i,o)})}return T=s,T}var q,C;function le(){if(C)return q;C=1;var r=pe(),e=W(),s=e(function(i,t){return i==null?{}:r(i,t)});return q=s,q}var ce=le();const B=A(ce);class fe extends J{constructor(e){super(Object.assign({},e)),this.updateDOMInRenderTree=s=>{this._adapter.setDOMInRenderTree(s)},this.updateDOMHeight=s=>{this._adapter.setDOMHeight(s)},this.updateVisible=s=>{this._adapter.setVisible(s)},this.updateIsTransitioning=s=>{this._adapter.setIsTransitioning(s)}}}const F={PREFIX:`${Q}-collapsible`};class c extends j{constructor(e){super(e),this.domRef=m.createRef(),this.hasBeenRendered=!1,this.handleResize=s=>{const i=s[0];if(i){const t=c.getEntryInfo(i);this.foundation.updateDOMHeight(t.height),this.foundation.updateDOMInRenderTree(t.isShown)}},this.isChildrenInRenderTree=()=>this.domRef.current?this.domRef.current.offsetHeight>0:!1,this.state={domInRenderTree:!1,domHeight:0,visible:this.props.isOpen,isTransitioning:!1},this.foundation=new fe(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setDOMInRenderTree:e=>{this.state.domInRenderTree!==e&&this.setState({domInRenderTree:e})},setDOMHeight:e=>{this.state.domHeight!==e&&this.setState({domHeight:e})},setVisible:e=>{this.state.visible!==e&&this.setState({visible:e})},setIsTransitioning:e=>{this.state.isTransitioning!==e&&this.setState({isTransitioning:e})}})}componentDidMount(){super.componentDidMount(),this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.domRef.current);const e=this.isChildrenInRenderTree();this.foundation.updateDOMInRenderTree(e),e&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight)}componentDidUpdate(e,s,i){const t=Object.keys(B(this.props,["reCalcKey","isOpen"])).filter(o=>!M(this.props[o],e[o])),a=Object.keys(B(this.state,["domInRenderTree"])).filter(o=>!M(this.state[o],s[o]));t.includes("reCalcKey")&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),a.includes("domInRenderTree")&&this.state.domInRenderTree&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),t.includes("isOpen")&&(this.props.isOpen||!this.props.motion)&&this.foundation.updateVisible(this.props.isOpen),this.props.motion&&e.isOpen!==this.props.isOpen&&this.foundation.updateIsTransitioning(!0)}componentWillUnmount(){super.componentWillUnmount(),this.resizeObserver.disconnect()}render(){const e=Object.assign({overflow:"hidden",height:this.props.isOpen?this.state.domHeight:this.props.collapseHeight,opacity:this.props.isOpen||!this.props.fade||this.props.collapseHeight!==0?1:0,transitionDuration:`${this.props.motion&&this.state.isTransitioning?this.props.duration:0}ms`},this.props.style),s=ee(`${F.PREFIX}-wrapper`,{[`${F.PREFIX}-transition`]:this.props.motion&&this.state.isTransitioning},this.props.className),i=this.props.keepDOM&&(this.props.lazyRender?this.hasBeenRendered:!0)||this.props.collapseHeight!==0||this.state.visible||this.props.isOpen;return i&&!this.hasBeenRendered&&(this.hasBeenRendered=!0),m.createElement("div",Object.assign({className:s,style:e,onTransitionEnd:()=>{var t,a;this.props.isOpen||this.foundation.updateVisible(!1),this.foundation.updateIsTransitioning(!1),(a=(t=this.props).onMotionEnd)===null||a===void 0||a.call(t)}},this.getDataAttr(this.props)),m.createElement("div",{"x-semi-prop":"children",ref:this.domRef,style:{overflow:"hidden"},id:this.props.id},i&&this.props.children))}}c.__SemiComponentName__="Collapsible";c.defaultProps=te(c.__SemiComponentName__,{isOpen:!1,duration:250,motion:!0,keepDOM:!1,lazyRender:!1,collapseHeight:0,fade:!1});c.getEntryInfo=r=>{let e;r.borderBoxSize?e=!(r.borderBoxSize[0].blockSize===0&&r.borderBoxSize[0].inlineSize===0):e=!(r.contentRect.height===0&&r.contentRect.width===0);let s=0;return r.borderBoxSize?s=Math.ceil(r.borderBoxSize[0].blockSize):s=r.target.clientHeight,{isShown:e,height:s}};c.propTypes={motion:d.bool,children:d.node,isOpen:d.bool,duration:d.number,keepDOM:d.bool,collapseHeight:d.number,style:d.object,className:d.string,reCalcKey:d.oneOfType([d.string,d.number])};var H,z;function ge(){if(z)return H;z=1;var r=se(),e=ie(),s=ae(),i=9007199254740991,t=4294967295,a=Math.min;function o(n,h){if(n=s(n),n<1||n>i)return[];var l=t,p=a(n,t);h=e(h),n-=t;for(var u=r(p,h);++l<n;)h(l);return u}return H=o,H}var me=ge();const ve=A(me);export{c as C,Re as I,ve as _,B as a,ue as b,de as c,ae as r};
1
+ import{K,r as P,bN as X,by as G,bX as L,bY as N,bZ as V,bf as $,b_ as U,b$ as Y,bh as Z,c0 as W,ak as A,k as J,h as Q,m as j,R as m,Z as M,n as ee,s as te,q as d,c1 as se,c2 as ie}from"./index-BVIWa0s0.js";function re(r){return P.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},r),P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.44 19.8a1.5 1.5 0 0 1 0-2.13l5.66-5.65-5.66-5.66a1.5 1.5 0 1 1 2.12-2.12l6.72 6.72a1.5 1.5 0 0 1 0 2.12L9.56 19.8a1.5 1.5 0 0 1-2.12 0Z",fill:"currentColor"}))}const Re=K(re,"chevron_right");var b,S;function ne(){if(S)return b;S=1;var r=X(),e=1/0,s=17976931348623157e292;function i(t){if(!t)return t===0?t:0;if(t=r(t),t===e||t===-e){var a=t<0?-1:1;return a*s}return t===t?t:0}return b=i,b}var R,E;function ae(){if(E)return R;E=1;var r=ne();function e(s){var i=r(s),t=i%1;return i===i?t?i-t:i:0}return R=e,R}var v,k;function oe(){if(k)return v;k=1;var r=G(),e=L(),s=N();function i(t,a,o){for(var n=-1,h=a.length,l={};++n<h;){var p=a[n],u=r(t,p);o(u,p)&&e(l,s(p,t),u)}return l}return v=i,v}var I,D;function he(){if(D)return I;D=1;function r(e,s){return e!=null&&s in Object(e)}return I=r,I}var _,y;function ue(){if(y)return _;y=1;var r=N(),e=V(),s=$(),i=U(),t=Y(),a=Z();function o(n,h,l){h=r(h,n);for(var p=-1,u=h.length,f=!1;++p<u;){var g=a(h[p]);if(!(f=n!=null&&l(n,g)))break;n=n[g]}return f||++p!=u?f:(u=n==null?0:n.length,!!u&&t(u)&&i(g,u)&&(s(n)||e(n)))}return _=o,_}var O,x;function de(){if(x)return O;x=1;var r=he(),e=ue();function s(i,t){return i!=null&&e(i,t,r)}return O=s,O}var T,w;function pe(){if(w)return T;w=1;var r=oe(),e=de();function s(i,t){return r(i,t,function(a,o){return e(i,o)})}return T=s,T}var q,C;function le(){if(C)return q;C=1;var r=pe(),e=W(),s=e(function(i,t){return i==null?{}:r(i,t)});return q=s,q}var ce=le();const B=A(ce);class fe extends J{constructor(e){super(Object.assign({},e)),this.updateDOMInRenderTree=s=>{this._adapter.setDOMInRenderTree(s)},this.updateDOMHeight=s=>{this._adapter.setDOMHeight(s)},this.updateVisible=s=>{this._adapter.setVisible(s)},this.updateIsTransitioning=s=>{this._adapter.setIsTransitioning(s)}}}const F={PREFIX:`${Q}-collapsible`};class c extends j{constructor(e){super(e),this.domRef=m.createRef(),this.hasBeenRendered=!1,this.handleResize=s=>{const i=s[0];if(i){const t=c.getEntryInfo(i);this.foundation.updateDOMHeight(t.height),this.foundation.updateDOMInRenderTree(t.isShown)}},this.isChildrenInRenderTree=()=>this.domRef.current?this.domRef.current.offsetHeight>0:!1,this.state={domInRenderTree:!1,domHeight:0,visible:this.props.isOpen,isTransitioning:!1},this.foundation=new fe(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setDOMInRenderTree:e=>{this.state.domInRenderTree!==e&&this.setState({domInRenderTree:e})},setDOMHeight:e=>{this.state.domHeight!==e&&this.setState({domHeight:e})},setVisible:e=>{this.state.visible!==e&&this.setState({visible:e})},setIsTransitioning:e=>{this.state.isTransitioning!==e&&this.setState({isTransitioning:e})}})}componentDidMount(){super.componentDidMount(),this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.domRef.current);const e=this.isChildrenInRenderTree();this.foundation.updateDOMInRenderTree(e),e&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight)}componentDidUpdate(e,s,i){const t=Object.keys(B(this.props,["reCalcKey","isOpen"])).filter(o=>!M(this.props[o],e[o])),a=Object.keys(B(this.state,["domInRenderTree"])).filter(o=>!M(this.state[o],s[o]));t.includes("reCalcKey")&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),a.includes("domInRenderTree")&&this.state.domInRenderTree&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),t.includes("isOpen")&&(this.props.isOpen||!this.props.motion)&&this.foundation.updateVisible(this.props.isOpen),this.props.motion&&e.isOpen!==this.props.isOpen&&this.foundation.updateIsTransitioning(!0)}componentWillUnmount(){super.componentWillUnmount(),this.resizeObserver.disconnect()}render(){const e=Object.assign({overflow:"hidden",height:this.props.isOpen?this.state.domHeight:this.props.collapseHeight,opacity:this.props.isOpen||!this.props.fade||this.props.collapseHeight!==0?1:0,transitionDuration:`${this.props.motion&&this.state.isTransitioning?this.props.duration:0}ms`},this.props.style),s=ee(`${F.PREFIX}-wrapper`,{[`${F.PREFIX}-transition`]:this.props.motion&&this.state.isTransitioning},this.props.className),i=this.props.keepDOM&&(this.props.lazyRender?this.hasBeenRendered:!0)||this.props.collapseHeight!==0||this.state.visible||this.props.isOpen;return i&&!this.hasBeenRendered&&(this.hasBeenRendered=!0),m.createElement("div",Object.assign({className:s,style:e,onTransitionEnd:()=>{var t,a;this.props.isOpen||this.foundation.updateVisible(!1),this.foundation.updateIsTransitioning(!1),(a=(t=this.props).onMotionEnd)===null||a===void 0||a.call(t)}},this.getDataAttr(this.props)),m.createElement("div",{"x-semi-prop":"children",ref:this.domRef,style:{overflow:"hidden"},id:this.props.id},i&&this.props.children))}}c.__SemiComponentName__="Collapsible";c.defaultProps=te(c.__SemiComponentName__,{isOpen:!1,duration:250,motion:!0,keepDOM:!1,lazyRender:!1,collapseHeight:0,fade:!1});c.getEntryInfo=r=>{let e;r.borderBoxSize?e=!(r.borderBoxSize[0].blockSize===0&&r.borderBoxSize[0].inlineSize===0):e=!(r.contentRect.height===0&&r.contentRect.width===0);let s=0;return r.borderBoxSize?s=Math.ceil(r.borderBoxSize[0].blockSize):s=r.target.clientHeight,{isShown:e,height:s}};c.propTypes={motion:d.bool,children:d.node,isOpen:d.bool,duration:d.number,keepDOM:d.bool,collapseHeight:d.number,style:d.object,className:d.string,reCalcKey:d.oneOfType([d.string,d.number])};var H,z;function ge(){if(z)return H;z=1;var r=se(),e=ie(),s=ae(),i=9007199254740991,t=4294967295,a=Math.min;function o(n,h){if(n=s(n),n<1||n>i)return[];var l=t,p=a(n,t);h=e(h),n-=t;for(var u=r(p,h);++l<n;)h(l);return u}return H=o,H}var me=ge();const ve=A(me);export{c as C,Re as I,ve as _,B as a,ue as b,de as c,ae as r};
@@ -12,7 +12,7 @@
12
12
  rel="stylesheet"
13
13
  />
14
14
  <title>TikTok Mini Games DevTool</title>
15
- <script type="module" crossorigin src="/assets/index-07cXGo3a.js"></script>
15
+ <script type="module" crossorigin src="/assets/index-BVIWa0s0.js"></script>
16
16
  <link rel="stylesheet" crossorigin href="/assets/index-D2LsTDVa.css">
17
17
  </head>
18
18
  <body>