@ttmg/cli 0.3.7-beta.1 → 0.3.7-beta.3
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.
- package/dist/index.js +307 -36
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/public/assets/Detail-DZjhasKd.js +1 -0
- package/dist/public/assets/Detail-DZjhasKd.js.br +0 -0
- package/dist/public/assets/{baseForm-B7tArmif.js → baseForm-Dyl22bqB.js} +1 -1
- package/dist/public/assets/baseForm-Dyl22bqB.js.br +0 -0
- package/dist/public/assets/{index-TYa4eXxF.css → index-BBnWlodN.css} +1 -1
- package/dist/public/assets/index-BBnWlodN.css.br +0 -0
- package/dist/public/assets/{index-D35C4ac4.js → index-BKY0zDI7.js} +1 -1
- package/dist/public/assets/{index-aD1InxYk.js → index-BLRDSesS.js} +1 -1
- package/dist/public/assets/{index-BOiN8aIS.js → index-BUy8I0vu.js} +1 -1
- package/dist/public/assets/{index-DQqzytdw.js → index-BrSFFuip.js} +1 -1
- package/dist/public/assets/index-BrSFFuip.js.br +0 -0
- package/dist/public/assets/{index-BswgGVlz.js → index-C5pUkGpS.js} +1 -1
- package/dist/public/assets/index-C5pUkGpS.js.br +0 -0
- package/dist/public/assets/{index-tXDZpXMk.js → index-CBkk8KwT.js} +1 -1
- package/dist/public/assets/index-CBkk8KwT.js.br +0 -0
- package/dist/public/assets/{index-BVi9swz_.js → index-Cx35BU6U.js} +1 -1
- package/dist/public/assets/index-Cx35BU6U.js.br +0 -0
- package/dist/public/assets/{index-Sk6u8HWP.js → index-D48tyFsA.js} +1 -1
- package/dist/public/assets/{index-DkXWo3Jg.js → index-DD7xtDwI.js} +3 -3
- package/dist/public/assets/index-DD7xtDwI.js.br +0 -0
- package/dist/public/assets/{index-CDrq3KnY.js → index-HL2ryl1V.js} +1 -1
- package/dist/public/assets/{index-B0CT2rYr.js → index-KxEzggZ9.js} +1 -1
- package/dist/public/assets/{index-BlXhGm9R.js → index-_INIaBu0.js} +1 -1
- package/dist/public/assets/{index-DdH9Yin-.js → index-aXJ7ldcB.js} +1 -1
- package/dist/public/assets/{index-B-rc2X1H.js → index-bAz3gu-3.js} +1 -1
- package/dist/public/assets/{index-Cj-lTEG1.js → index-rDVdz60K.js} +1 -1
- package/dist/public/assets/index-rDVdz60K.js.br +0 -0
- package/dist/public/assets/{times-CCIAbLYL.js → times-Cue9NmYo.js} +1 -1
- package/dist/public/index.html +1 -1
- package/package.json +1 -1
- package/dist/public/assets/Detail-BInCTDTx.js +0 -1
- package/dist/public/assets/Detail-BInCTDTx.js.br +0 -0
- package/dist/public/assets/baseForm-B7tArmif.js.br +0 -0
- package/dist/public/assets/index-BVi9swz_.js.br +0 -0
- package/dist/public/assets/index-BswgGVlz.js.br +0 -0
- package/dist/public/assets/index-Cj-lTEG1.js.br +0 -0
- package/dist/public/assets/index-DQqzytdw.js.br +0 -0
- package/dist/public/assets/index-DkXWo3Jg.js.br +0 -0
- package/dist/public/assets/index-tXDZpXMk.js.br +0 -0
- /package/dist/public/assets/{index-OIQapQiA.js → index-4r0PC3Bk.js} +0 -0
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as I,k as q,l as R,_ as k,m as D,n as T,R as r,b as x,I as A,o as U,L as z,p as M,P as X,C as Q,q as o,s as Z,t as j,v as G,i as s,u as H,c as J,r as y,N as w,j as m,B as K,w as W}from"./index-DkXWo3Jg.js";import{F as P}from"./baseForm-B7tArmif.js";import"./times-CCIAbLYL.js";import"./index-tXDZpXMk.js";const B={PREFIX:`${I}-popconfirm`,POPOVER:`${I}-popconfirm-popover`},Y={DEFAULT_Z_INDEX:1030};class ee extends q{init(){}destroy(){}handleCancel(e){const t=this._adapter.notifyCancel(e);R(t)?(this._adapter.updateCancelLoading(!0),t.then(n=>{this.handleVisibleChange(!1),this._adapter.updateCancelLoading(!1)},n=>{this._adapter.updateCancelLoading(!1)})):this.handleVisibleChange(!1)}handleConfirm(e){const t=this._adapter.notifyConfirm(e);R(t)?(this._adapter.updateConfirmLoading(!0),t.then(n=>{this._adapter.updateConfirmLoading(!1),this.handleVisibleChange(!1)},n=>{this._adapter.updateConfirmLoading(!1)})):this.handleVisibleChange(!1)}handleClickOutSide(e){this._adapter.notifyClickOutSide(e)}handleVisibleChange(e){this._isControlledComponent("visible")||this._adapter.setVisible(e),e?this.handleFocusOperateButton():this._adapter.focusPrevFocusElement(),this._adapter.notifyVisibleChange(e)}handleFocusOperateButton(){const{cancelButtonProps:e,okButtonProps:t}=this._adapter.getProps();k(e,"autoFocus")&&!k(e,"disabled")?this._adapter.focusCancelButton():k(t,"autoFocus")&&!k(t,"disabled")&&this._adapter.focusOkButton()}}var te=function(u,e){var t={};for(var n in u)Object.prototype.hasOwnProperty.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(u);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(u,n[i])&&(t[n[i]]=u[n[i]]);return t};class O extends D{constructor(e){super(e),this.handleCancel=t=>this.foundation.handleCancel(t&&t.nativeEvent),this.handleConfirm=t=>this.foundation.handleConfirm(t&&t.nativeEvent),this.handleVisibleChange=t=>this.foundation.handleVisibleChange(t),this.handleClickOutSide=t=>this.foundation.handleClickOutSide(t),this.stopImmediatePropagation=t=>t&&t.nativeEvent&&t.nativeEvent.stopImmediatePropagation(),this.renderConfirmPopCard=t=>{let{initialFocusRef:n}=t;const{content:i,title:g,className:p,style:f,cancelType:b,icon:h,prefixCls:l,showCloseIcon:v}=this.props,{direction:_}=this.context,S=T(l,p,{[`${l}-rtl`]:_==="rtl"}),E=g!==null&&typeof g<"u",F=!(i===null||typeof i>"u"),V=r.isValidElement(h),N=T({[`${l}-body`]:!0,[`${l}-body-withIcon`]:V});return r.createElement("div",{className:S,onClick:this.stopImmediatePropagation,style:f},r.createElement("div",{className:`${l}-inner`},r.createElement("div",{className:`${l}-header`},V?r.createElement("i",{className:`${l}-header-icon`,"x-semi-prop":"icon"},h):null,r.createElement("div",{className:`${l}-header-body`},E?r.createElement("div",{className:`${l}-header-title`,"x-semi-prop":"title"},g):null),v?r.createElement(x,{className:`${l}-btn-close`,icon:r.createElement(A,null),size:"small",theme:"borderless",type:b,onClick:this.handleCancel}):null),F?r.createElement("div",{className:N,"x-semi-prop":"content"},U(i)?i({initialFocusRef:n}):i):null,r.createElement("div",{className:`${l}-footer`,ref:this.footerRef},this.renderControls())))},this.state={cancelLoading:!1,confirmLoading:!1,visible:e.defaultVisible||!1},this.foundation=new ee(this.adapter),this.footerRef=r.createRef(),this.popoverRef=r.createRef()}static getDerivedStateFromProps(e,t){const n={},{hasOwnProperty:i}=Object.prototype;return i.call(e,"visible")&&(n.visible=e.visible),n}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVisible:e=>this.setState({visible:e}),updateConfirmLoading:e=>this.setState({confirmLoading:e}),updateCancelLoading:e=>this.setState({cancelLoading:e}),notifyConfirm:e=>this.props.onConfirm(e),notifyCancel:e=>this.props.onCancel(e),notifyVisibleChange:e=>this.props.onVisibleChange(e),notifyClickOutSide:e=>this.props.onClickOutSide(e),focusCancelButton:()=>{var e,t;const n=(t=(e=this.footerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.querySelector("[data-type=cancel]");n?.focus({preventScroll:!0})},focusOkButton:()=>{var e,t;const n=(t=(e=this.footerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.querySelector("[data-type=ok]");n?.focus({preventScroll:!0})},focusPrevFocusElement:()=>{var e;(e=this.popoverRef.current)===null||e===void 0||e.focusTrigger()}})}renderControls(){const{okText:e,cancelText:t,okType:n,cancelType:i,cancelButtonProps:g,okButtonProps:p}=this.props,{cancelLoading:f,confirmLoading:b}=this.state;return r.createElement(z,{componentName:"Popconfirm"},(h,l)=>r.createElement(r.Fragment,null,r.createElement(x,Object.assign({"data-type":"cancel",type:i,onClick:this.handleCancel,loading:f},M(g,"autoFocus")),t||k(h,"cancel")),r.createElement(x,Object.assign({"data-type":"ok",type:n,theme:"solid",onClick:this.handleConfirm,loading:b},M(p,"autoFocus")),e||k(h,"confirm"))))}render(){const{direction:e}=this.context,t=e==="rtl"?"bottomRight":"bottomLeft",n=this.props,{className:i,prefixCls:g,disabled:p,children:f,style:b,position:h=t}=n,l=te(n,["className","prefixCls","disabled","children","style","position"]);if(p)return f;const{visible:v}=this.state,_={onVisibleChange:this.handleVisibleChange,className:B.POPOVER,onClickOutSide:this.handleClickOutSide};return this.isControlled("visible")&&(_.trigger="custom"),r.createElement(X,Object.assign({ref:this.popoverRef},l,{content:S=>{let{initialFocusRef:E}=S;return this.renderConfirmPopCard({initialFocusRef:E})},visible:v,position:h},_),f)}}O.contextType=Q;O.propTypes={motion:o.oneOfType([o.bool,o.func,o.object]),disabled:o.bool,content:o.oneOfType([o.node,o.func]),title:o.any,prefixCls:o.string,className:o.string,style:o.object,icon:o.node,okText:o.string,okType:o.string,cancelText:o.string,cancelType:o.string,onCancel:o.func,onConfirm:o.func,onClickOutSide:o.func,onVisibleChange:o.func,visible:o.bool,defaultVisible:o.bool,okButtonProps:o.object,cancelButtonProps:o.object,stopPropagation:o.oneOfType([o.bool,o.string]),showCloseIcon:o.bool,zIndex:o.number,trigger:o.string,position:o.string};O.__SemiComponentName__="Popconfirm";O.defaultProps=Z(O.__SemiComponentName__,{stopPropagation:!0,trigger:"click",onVisibleChange:j,disabled:!1,icon:r.createElement(G,{size:"extra-large"}),okType:"primary",cancelType:"tertiary",prefixCls:B.PREFIX,zIndex:Y.DEFAULT_Z_INDEX,showCloseIcon:!0,onCancel:j,onConfirm:j,onClickOutSide:j});const ne=[{label:s("scene_scan_qrcode"),value:"scan_qrcode"},{label:s("scene_search"),value:"search"},{label:s("scene_fyf_promotion_direct_feed_play"),value:"fyf_promotion_direct_feed_play"},{label:s("scene_anchor"),value:"anchor"},{label:s("scene_center"),value:"center"},{label:s("scene_ad"),value:"ads"},{label:s("scene_shortcut"),value:"desktop_shortcut"},{label:s("scene_sharing"),value:"dm_sharing"},{label:s("scene_link"),value:"minis_link"}],le=()=>{const u=H(),{state:{launchOptions:e,selectedLaunchOption:t,packages:n},setLaunchOptions:i,setSelectedLaunchOption:g}=J(),p=y.useRef(null),f=t||w,[b,h]=y.useState(f),[l,v]=y.useState(f.id),_=n.map(a=>{if(a.type==="main")return{label:s("gameMainPackage"),value:a.name};if(a.type==="independent")return{label:`${s("independentPackage")}: ${a.name}`,value:a.name}}).filter(Boolean),S=y.useCallback(a=>{const c={...b,...a};c.pkgType==="main"&&c.independentPkg!==void 0&&(c.independentPkg=void 0,p.current&&p.current.setValues({independentPkg:void 0})),h(c)},[b]),E=y.useCallback(()=>{if(!p.current)return;const a=p.current.getValues();a.pkgType==="main"&&(a.independentPkg=void 0);const c=e.findIndex(C=>C.name===a.name&&C.id!=="created"&&C.id!=="normal");let d;c!==-1?(d=[...e],d[c]=a):(a.id=Date.now().toString(),d=[...e.slice(0,-1),a,...e.slice(-1)]),i(d),h(a),g(a),u("/")},[e,u,i,g]),F=y.useCallback(a=>{const c=e.find(d=>d.id===a);if(c){v(a);const d={...c};a==="created"?d.name="":a==="normal"&&(d.name=s("normalLaunchMode")),h(d),p.current?.setValues(d)}},[e]),V=y.useCallback(()=>{const a=l;if(["normal","created"].includes(a))return;const c=e.filter(L=>L.id!==a);i(c);const d=c.find(L=>L.id==="normal")||c.find(L=>L.id==="created")||c[0]||w,C={...d,...d.id==="created"?{name:""}:{},...d.id==="normal"?{name:s("normalLaunchMode")}:{}};g(C),v(C.id),h(C),p.current?.setValues(C)},[e,l,i,g]),N=y.useCallback(()=>{h(f),p.current?.setValues(f),u("/")},[f,u]),$=e.find(a=>a.id===l);return m.jsxs("div",{children:[m.jsx(K,{style:{marginBottom:32},fullMode:!1,icon:null,closeIcon:null,description:s("launchModeDesc"),type:"info"}),m.jsxs(P,{initValues:b,onValueChange:S,getFormApi:a=>p.current=a,style:{padding:20,border:"1px solid #eee",borderRadius:8},onSubmit:E,children:[m.jsx(P.Select,{placeholder:s("selectLaunchMode"),rules:[{required:!0,message:s("selectLaunchMode")}],field:"id",label:s("selectLaunchMode"),optionList:e.map(a=>({label:a.name,value:a.id})),onChange:F,style:{width:"100%"},value:l}),m.jsx(P.Input,{required:!0,placeholder:s("launchModeName"),field:"name",label:s("launchModeName"),rules:[{required:!0,message:s("notEmpty")}],style:{width:"100%"},trigger:"blur"}),m.jsx(P.Select,{field:"pkgName",label:s("selectLaunchPkg"),placeholder:s("selectLaunchPkg"),rules:[{required:!0,message:s("notEmpty")}],optionList:_,style:{width:"100%"}}),m.jsx(P.Select,{field:"scene",label:s("selectScene"),rules:[{required:!0,message:s("notEmpty")}],placeholder:s("selectScene"),optionList:ne,style:{width:"100%"},filter:!0}),m.jsx(P.Input,{field:"queries",label:s("launchQueries"),placeholder:s("launchQueriesDesc"),trigger:"blur",rules:[{validator:(a,c)=>{const{isValid:d,message:C}=W(c);return d?Promise.resolve():Promise.reject(C)}}],style:{width:"100%"}}),m.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",alignItems:"center",marginTop:20},children:[["created","normal"].includes(l)?m.jsx(x,{style:{marginRight:12},onClick:N,children:s("cancel")}):m.jsx(O,{title:s("deleteLaunchModeConfirm",{name:$?.name??""}),onConfirm:V,position:"bottomRight",children:m.jsx(x,{type:"danger",style:{marginRight:12},children:s("delete")})}),m.jsx(x,{htmlType:"submit",type:"primary",children:s("saveAndUse")})]})]})]})};export{le as LaunchMode};
|
|
1
|
+
import{h as I,k as q,l as R,_ as k,m as D,n as T,R as r,b as x,I as A,o as U,L as z,p as M,P as X,C as Q,q as o,s as Z,t as j,v as G,i as s,u as H,c as J,r as y,N as w,j as m,B as K,w as W}from"./index-DD7xtDwI.js";import{F as P}from"./baseForm-Dyl22bqB.js";import"./times-Cue9NmYo.js";import"./index-CBkk8KwT.js";const B={PREFIX:`${I}-popconfirm`,POPOVER:`${I}-popconfirm-popover`},Y={DEFAULT_Z_INDEX:1030};class ee extends q{init(){}destroy(){}handleCancel(e){const t=this._adapter.notifyCancel(e);R(t)?(this._adapter.updateCancelLoading(!0),t.then(n=>{this.handleVisibleChange(!1),this._adapter.updateCancelLoading(!1)},n=>{this._adapter.updateCancelLoading(!1)})):this.handleVisibleChange(!1)}handleConfirm(e){const t=this._adapter.notifyConfirm(e);R(t)?(this._adapter.updateConfirmLoading(!0),t.then(n=>{this._adapter.updateConfirmLoading(!1),this.handleVisibleChange(!1)},n=>{this._adapter.updateConfirmLoading(!1)})):this.handleVisibleChange(!1)}handleClickOutSide(e){this._adapter.notifyClickOutSide(e)}handleVisibleChange(e){this._isControlledComponent("visible")||this._adapter.setVisible(e),e?this.handleFocusOperateButton():this._adapter.focusPrevFocusElement(),this._adapter.notifyVisibleChange(e)}handleFocusOperateButton(){const{cancelButtonProps:e,okButtonProps:t}=this._adapter.getProps();k(e,"autoFocus")&&!k(e,"disabled")?this._adapter.focusCancelButton():k(t,"autoFocus")&&!k(t,"disabled")&&this._adapter.focusOkButton()}}var te=function(u,e){var t={};for(var n in u)Object.prototype.hasOwnProperty.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(u);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(u,n[i])&&(t[n[i]]=u[n[i]]);return t};class O extends D{constructor(e){super(e),this.handleCancel=t=>this.foundation.handleCancel(t&&t.nativeEvent),this.handleConfirm=t=>this.foundation.handleConfirm(t&&t.nativeEvent),this.handleVisibleChange=t=>this.foundation.handleVisibleChange(t),this.handleClickOutSide=t=>this.foundation.handleClickOutSide(t),this.stopImmediatePropagation=t=>t&&t.nativeEvent&&t.nativeEvent.stopImmediatePropagation(),this.renderConfirmPopCard=t=>{let{initialFocusRef:n}=t;const{content:i,title:g,className:p,style:f,cancelType:b,icon:h,prefixCls:l,showCloseIcon:v}=this.props,{direction:_}=this.context,S=T(l,p,{[`${l}-rtl`]:_==="rtl"}),E=g!==null&&typeof g<"u",F=!(i===null||typeof i>"u"),V=r.isValidElement(h),N=T({[`${l}-body`]:!0,[`${l}-body-withIcon`]:V});return r.createElement("div",{className:S,onClick:this.stopImmediatePropagation,style:f},r.createElement("div",{className:`${l}-inner`},r.createElement("div",{className:`${l}-header`},V?r.createElement("i",{className:`${l}-header-icon`,"x-semi-prop":"icon"},h):null,r.createElement("div",{className:`${l}-header-body`},E?r.createElement("div",{className:`${l}-header-title`,"x-semi-prop":"title"},g):null),v?r.createElement(x,{className:`${l}-btn-close`,icon:r.createElement(A,null),size:"small",theme:"borderless",type:b,onClick:this.handleCancel}):null),F?r.createElement("div",{className:N,"x-semi-prop":"content"},U(i)?i({initialFocusRef:n}):i):null,r.createElement("div",{className:`${l}-footer`,ref:this.footerRef},this.renderControls())))},this.state={cancelLoading:!1,confirmLoading:!1,visible:e.defaultVisible||!1},this.foundation=new ee(this.adapter),this.footerRef=r.createRef(),this.popoverRef=r.createRef()}static getDerivedStateFromProps(e,t){const n={},{hasOwnProperty:i}=Object.prototype;return i.call(e,"visible")&&(n.visible=e.visible),n}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVisible:e=>this.setState({visible:e}),updateConfirmLoading:e=>this.setState({confirmLoading:e}),updateCancelLoading:e=>this.setState({cancelLoading:e}),notifyConfirm:e=>this.props.onConfirm(e),notifyCancel:e=>this.props.onCancel(e),notifyVisibleChange:e=>this.props.onVisibleChange(e),notifyClickOutSide:e=>this.props.onClickOutSide(e),focusCancelButton:()=>{var e,t;const n=(t=(e=this.footerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.querySelector("[data-type=cancel]");n?.focus({preventScroll:!0})},focusOkButton:()=>{var e,t;const n=(t=(e=this.footerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.querySelector("[data-type=ok]");n?.focus({preventScroll:!0})},focusPrevFocusElement:()=>{var e;(e=this.popoverRef.current)===null||e===void 0||e.focusTrigger()}})}renderControls(){const{okText:e,cancelText:t,okType:n,cancelType:i,cancelButtonProps:g,okButtonProps:p}=this.props,{cancelLoading:f,confirmLoading:b}=this.state;return r.createElement(z,{componentName:"Popconfirm"},(h,l)=>r.createElement(r.Fragment,null,r.createElement(x,Object.assign({"data-type":"cancel",type:i,onClick:this.handleCancel,loading:f},M(g,"autoFocus")),t||k(h,"cancel")),r.createElement(x,Object.assign({"data-type":"ok",type:n,theme:"solid",onClick:this.handleConfirm,loading:b},M(p,"autoFocus")),e||k(h,"confirm"))))}render(){const{direction:e}=this.context,t=e==="rtl"?"bottomRight":"bottomLeft",n=this.props,{className:i,prefixCls:g,disabled:p,children:f,style:b,position:h=t}=n,l=te(n,["className","prefixCls","disabled","children","style","position"]);if(p)return f;const{visible:v}=this.state,_={onVisibleChange:this.handleVisibleChange,className:B.POPOVER,onClickOutSide:this.handleClickOutSide};return this.isControlled("visible")&&(_.trigger="custom"),r.createElement(X,Object.assign({ref:this.popoverRef},l,{content:S=>{let{initialFocusRef:E}=S;return this.renderConfirmPopCard({initialFocusRef:E})},visible:v,position:h},_),f)}}O.contextType=Q;O.propTypes={motion:o.oneOfType([o.bool,o.func,o.object]),disabled:o.bool,content:o.oneOfType([o.node,o.func]),title:o.any,prefixCls:o.string,className:o.string,style:o.object,icon:o.node,okText:o.string,okType:o.string,cancelText:o.string,cancelType:o.string,onCancel:o.func,onConfirm:o.func,onClickOutSide:o.func,onVisibleChange:o.func,visible:o.bool,defaultVisible:o.bool,okButtonProps:o.object,cancelButtonProps:o.object,stopPropagation:o.oneOfType([o.bool,o.string]),showCloseIcon:o.bool,zIndex:o.number,trigger:o.string,position:o.string};O.__SemiComponentName__="Popconfirm";O.defaultProps=Z(O.__SemiComponentName__,{stopPropagation:!0,trigger:"click",onVisibleChange:j,disabled:!1,icon:r.createElement(G,{size:"extra-large"}),okType:"primary",cancelType:"tertiary",prefixCls:B.PREFIX,zIndex:Y.DEFAULT_Z_INDEX,showCloseIcon:!0,onCancel:j,onConfirm:j,onClickOutSide:j});const ne=[{label:s("scene_scan_qrcode"),value:"scan_qrcode"},{label:s("scene_search"),value:"search"},{label:s("scene_fyf_promotion_direct_feed_play"),value:"fyf_promotion_direct_feed_play"},{label:s("scene_anchor"),value:"anchor"},{label:s("scene_center"),value:"center"},{label:s("scene_ad"),value:"ads"},{label:s("scene_shortcut"),value:"desktop_shortcut"},{label:s("scene_sharing"),value:"dm_sharing"},{label:s("scene_link"),value:"minis_link"}],le=()=>{const u=H(),{state:{launchOptions:e,selectedLaunchOption:t,packages:n},setLaunchOptions:i,setSelectedLaunchOption:g}=J(),p=y.useRef(null),f=t||w,[b,h]=y.useState(f),[l,v]=y.useState(f.id),_=n.map(a=>{if(a.type==="main")return{label:s("gameMainPackage"),value:a.name};if(a.type==="independent")return{label:`${s("independentPackage")}: ${a.name}`,value:a.name}}).filter(Boolean),S=y.useCallback(a=>{const c={...b,...a};c.pkgType==="main"&&c.independentPkg!==void 0&&(c.independentPkg=void 0,p.current&&p.current.setValues({independentPkg:void 0})),h(c)},[b]),E=y.useCallback(()=>{if(!p.current)return;const a=p.current.getValues();a.pkgType==="main"&&(a.independentPkg=void 0);const c=e.findIndex(C=>C.name===a.name&&C.id!=="created"&&C.id!=="normal");let d;c!==-1?(d=[...e],d[c]=a):(a.id=Date.now().toString(),d=[...e.slice(0,-1),a,...e.slice(-1)]),i(d),h(a),g(a),u("/")},[e,u,i,g]),F=y.useCallback(a=>{const c=e.find(d=>d.id===a);if(c){v(a);const d={...c};a==="created"?d.name="":a==="normal"&&(d.name=s("normalLaunchMode")),h(d),p.current?.setValues(d)}},[e]),V=y.useCallback(()=>{const a=l;if(["normal","created"].includes(a))return;const c=e.filter(L=>L.id!==a);i(c);const d=c.find(L=>L.id==="normal")||c.find(L=>L.id==="created")||c[0]||w,C={...d,...d.id==="created"?{name:""}:{},...d.id==="normal"?{name:s("normalLaunchMode")}:{}};g(C),v(C.id),h(C),p.current?.setValues(C)},[e,l,i,g]),N=y.useCallback(()=>{h(f),p.current?.setValues(f),u("/")},[f,u]),$=e.find(a=>a.id===l);return m.jsxs("div",{children:[m.jsx(K,{style:{marginBottom:32},fullMode:!1,icon:null,closeIcon:null,description:s("launchModeDesc"),type:"info"}),m.jsxs(P,{initValues:b,onValueChange:S,getFormApi:a=>p.current=a,style:{padding:20,border:"1px solid #eee",borderRadius:8},onSubmit:E,children:[m.jsx(P.Select,{placeholder:s("selectLaunchMode"),rules:[{required:!0,message:s("selectLaunchMode")}],field:"id",label:s("selectLaunchMode"),optionList:e.map(a=>({label:a.name,value:a.id})),onChange:F,style:{width:"100%"},value:l}),m.jsx(P.Input,{required:!0,placeholder:s("launchModeName"),field:"name",label:s("launchModeName"),rules:[{required:!0,message:s("notEmpty")}],style:{width:"100%"},trigger:"blur"}),m.jsx(P.Select,{field:"pkgName",label:s("selectLaunchPkg"),placeholder:s("selectLaunchPkg"),rules:[{required:!0,message:s("notEmpty")}],optionList:_,style:{width:"100%"}}),m.jsx(P.Select,{field:"scene",label:s("selectScene"),rules:[{required:!0,message:s("notEmpty")}],placeholder:s("selectScene"),optionList:ne,style:{width:"100%"},filter:!0}),m.jsx(P.Input,{field:"queries",label:s("launchQueries"),placeholder:s("launchQueriesDesc"),trigger:"blur",rules:[{validator:(a,c)=>{const{isValid:d,message:C}=W(c);return d?Promise.resolve():Promise.reject(C)}}],style:{width:"100%"}}),m.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",alignItems:"center",marginTop:20},children:[["created","normal"].includes(l)?m.jsx(x,{style:{marginRight:12},onClick:N,children:s("cancel")}):m.jsx(O,{title:s("deleteLaunchModeConfirm",{name:$?.name??""}),onConfirm:V,position:"bottomRight",children:m.jsx(x,{type:"danger",style:{marginRight:12},children:s("delete")})}),m.jsx(x,{htmlType:"submit",type:"primary",children:s("saveAndUse")})]})]})]})};export{le as LaunchMode};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as t,j as e,B as b,T as s,i,b as d}from"./index-
|
|
1
|
+
import{u as t,j as e,B as b,T as s,i,b as d}from"./index-DD7xtDwI.js";const u="https://bytedance.larkoffice.com/wiki/PeIawT4M4ia9R8kYyLMcjwHknOg",n=[{titleKey:"basicDebugGuide.available.scan.title",descKey:"basicDebugGuide.available.scan.desc"},{titleKey:"basicDebugGuide.available.launch.title",descKey:"basicDebugGuide.available.launch.desc"},{titleKey:"basicDebugGuide.available.preview.title",descKey:"basicDebugGuide.available.preview.desc"},{titleKey:"basicDebugGuide.available.network.title",descKey:"basicDebugGuide.available.network.desc"},{titleKey:"basicDebugGuide.available.manual.title",descKey:"basicDebugGuide.available.manual.desc"}],g=[{titleKey:"basicDebugGuide.locked.project.title",descKey:"basicDebugGuide.locked.project.desc"},{titleKey:"basicDebugGuide.locked.upload.title",descKey:"basicDebugGuide.locked.upload.desc"},{titleKey:"basicDebugGuide.locked.platform.title",descKey:"basicDebugGuide.locked.platform.desc"}],r=["basicDebugGuide.step1","basicDebugGuide.step2","basicDebugGuide.step3","basicDebugGuide.step4"],x=()=>{const l=t();return e.jsxs("div",{className:"basic-debug-guide-page",children:[e.jsx(b,{className:"basic-debug-guide-banner",fullMode:!1,bordered:!1,closeIcon:null,type:"info",description:e.jsxs("div",{className:"basic-debug-guide-banner-copy",children:[e.jsx(s.Text,{strong:!0,children:i("basicDebugGuide.bannerTitle")}),e.jsx(s.Text,{children:i("basicDebugGuide.bannerDesc")})]})}),e.jsxs("section",{className:"basic-debug-guide-hero",children:[e.jsxs("div",{className:"basic-debug-guide-hero-copy",children:[e.jsx(s.Title,{heading:3,children:i("basicDebugGuide.title")}),e.jsx(s.Paragraph,{className:"basic-debug-guide-hero-desc",children:i("basicDebugGuide.desc")})]}),e.jsxs("div",{className:"basic-debug-guide-actions",children:[e.jsx(d,{theme:"solid",type:"primary",onClick:()=>l("/"),children:i("basicDebugGuide.actionScan")}),e.jsx(d,{theme:"light",onClick:()=>l("/network_diagnostics"),children:i("basicDebugGuide.actionNetwork")}),e.jsx(d,{theme:"borderless",onClick:()=>window.open(u,"_blank","noopener,noreferrer"),children:i("basicDebugGuide.actionProxy")})]})]}),e.jsxs("section",{className:"basic-debug-guide-section",children:[e.jsxs("div",{className:"basic-debug-guide-section-head",children:[e.jsx(s.Text,{strong:!0,children:i("basicDebugGuide.availableTitle")}),e.jsx(s.Text,{className:"basic-debug-guide-section-desc",children:i("basicDebugGuide.availableDesc")})]}),e.jsx("div",{className:"basic-debug-guide-list",children:n.map((c,a)=>e.jsxs("div",{className:"basic-debug-guide-item",children:[e.jsx("span",{className:"basic-debug-guide-item-index",children:a+1}),e.jsxs("div",{className:"basic-debug-guide-item-copy",children:[e.jsx(s.Text,{strong:!0,children:i(c.titleKey)}),e.jsx(s.Text,{children:i(c.descKey)})]})]},c.titleKey))})]}),e.jsxs("section",{className:"basic-debug-guide-section",children:[e.jsxs("div",{className:"basic-debug-guide-section-head",children:[e.jsx(s.Text,{strong:!0,children:i("basicDebugGuide.lockedTitle")}),e.jsx(s.Text,{className:"basic-debug-guide-section-desc",children:i("basicDebugGuide.lockedDesc")})]}),e.jsx("div",{className:"basic-debug-guide-list",children:g.map((c,a)=>e.jsxs("div",{className:"basic-debug-guide-item basic-debug-guide-item-muted",children:[e.jsx("span",{className:"basic-debug-guide-item-index",children:a+1}),e.jsxs("div",{className:"basic-debug-guide-item-copy",children:[e.jsx(s.Text,{strong:!0,children:i(c.titleKey)}),e.jsx(s.Text,{children:i(c.descKey)})]})]},c.titleKey))})]}),e.jsxs("section",{className:"basic-debug-guide-section",children:[e.jsxs("div",{className:"basic-debug-guide-section-head",children:[e.jsx(s.Text,{strong:!0,children:i("basicDebugGuide.stepsTitle")}),e.jsx(s.Text,{className:"basic-debug-guide-section-desc",children:i("basicDebugGuide.stepsDesc")})]}),e.jsx("div",{className:"basic-debug-guide-steps",children:r.map((c,a)=>e.jsxs("div",{className:"basic-debug-guide-step",children:[e.jsx("span",{className:"basic-debug-guide-step-index",children:a+1}),e.jsx(s.Text,{children:i(c)})]},c))}),e.jsxs("div",{className:"basic-debug-guide-command-list",children:[e.jsxs("div",{className:"basic-debug-guide-command-item",children:[e.jsx(s.Text,{type:"tertiary",children:i("basicDebugGuide.commandProxy")}),e.jsx("code",{children:"ttmg config set proxy http://127.0.0.1:7890"}),e.jsx(s.Text,{type:"tertiary",children:i("basicDebugGuide.commandProxyHint")})]}),e.jsxs("div",{className:"basic-debug-guide-command-item",children:[e.jsx(s.Text,{type:"tertiary",children:i("basicDebugGuide.commandLogin")}),e.jsx("code",{children:"ttmg login"})]}),e.jsxs("div",{className:"basic-debug-guide-command-item",children:[e.jsx(s.Text,{type:"tertiary",children:i("basicDebugGuide.commandDev")}),e.jsx("code",{children:"ttmg dev"})]})]})]})]})};export{x as BasicDebugGuide};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,r as d,F as l,j as e,i,a as s,G as r}from"./index-
|
|
1
|
+
import{c,r as d,F as l,j as e,i,a as s,G as r}from"./index-DD7xtDwI.js";const g=[{title:"0.3.6",target:{iOS:">=43.1",Android:">=43.1"},changes:{bugfix:[{desc:{"zh-CN":"优化请求超时时间,避免分包预处理超时导致分包无法进行","en-US":"Optimize request timeout, avoid package preprocess timeout causing package not to be processed"},module:"new"}]}},{title:"0.3.5",target:{iOS:">=43.1",Android:">=43.1"},changes:{feature:[{desc:{"zh-CN":"连接状态展示更多信息,帮助开发者了解调试环境状态","en-US":"Show more information about the debugging environment to help developers understand the debugging environment status"},module:"new"},{desc:{"zh-CN":"支持手动配置客户端 IP、端口、WebSocket 端口,便于开发者调试","en-US":"Support manually configuring client IP, port, WebSocket port, for developer debugging"},module:"new"}]}},{title:"0.3.4",target:{iOS:">=43.1",Android:">=43.1"},changes:{optimize:[{desc:{"zh-CN":"顶部透出 wasm 分包建议提示信息,让开发者感知代码分包","en-US":"Top area now displays wasm split suggestion information, making it easier for developers to understand code split"},module:"check"}]}},{title:"0.3.3",target:{iOS:">=43.1",Android:">=43.1"},changes:{bugfix:[{desc:{"zh-CN":"修复安卓 unity 调试启动失败问题","en-US":"Fix android unity debug start failed issue"},module:"scanQrcode"}]}},{title:"0.3.2",target:{iOS:">=43.1",Android:">=43.1"},changes:{feature:[{desc:{"zh-CN":"支持通过 ttmg config set proxy 配置终端网络代理,便于调试时使用","en-US":"Support configuring terminal network proxy via `ttmg config set proxy`,便于调试时使用"},module:"new",link:"https://bytedance.larkoffice.com/wiki/PeIawT4M4ia9R8kYyLMcjwHknOg"},{desc:{"zh-CN":"支持通过 ttmg upload --client-key 上传游戏包到开发者平台","en-US":"Support uploading game package to developer platform via `ttmg upload --client-key`"},module:"new",link:"https://bytedance.larkoffice.com/wiki/Y9Pkwm7nMiYiifk0iCbcDAGYnQh"},{desc:{"zh-CN":"增加对 unity 是否需要分包的检查,对于需要分包的 unity 项目,给出明确提示","en-US":"Add check for whether unity project needs subpackage, for unity projects that need subpackage, give clear prompt"},module:"new"},{desc:{"zh-CN":"调试与预检支持多语言展示,关键提示与校验信息更易理解","en-US":"Debugging and precheck flows now support multilingual display, making key prompts and validation messages easier to understand"},module:"new"},{desc:{"zh-CN":"支持 Cocos 2.0 openDataContext 配置","en-US":"Support Cocos 2.0 openDataContext configuration"},module:"openDataContext"},{desc:{"zh-CN":"变更记录新增提醒功能,当有新版本发布时,会通过弹窗提醒开发者更新","en-US":"Change log now has a reminder function, when a new version is released, a popup will remind developers to update"},module:"new"}],optimize:[{desc:{"zh-CN":"ttmg login 支持 ttmg login --verbose 参数,打印更多登录信息","en-US":"ttmg login supports ttmg login --verbose parameter, print more login information"},module:"new"},{desc:{"zh-CN":"API 预检建议文案统一收敛,避免重复提示,阅读更清晰","en-US":"API precheck suggestion messages are now unified to avoid duplicated hints and improve readability"},module:"check"},{desc:{"zh-CN":"顶部区域透出项目预检错误与警告信息,便于开发者及时发现问题并修复","en-US":"Top area now displays project precheck error and warning information, making it easier for developers to find and fix problems"},module:"check"},{desc:{"zh-CN":"语言选择策略优化:优先使用 CLI 本地设置,未设置时自动回退浏览器语言","en-US":"Language selection is optimized: CLI local setting is preferred, and browser language is used as fallback when unset"},module:"check"},{desc:{"zh-CN":"启动校验增强:检查是否在小游戏根目录执行,对于分包配置 subPackages 给出明确报错,引导开发者修改为 subpackages","en-US":"Enhance entry validation: ensure running in project root and warn about subPackages typo; subpackages is required"},module:"check"},{desc:{"zh-CN":"启动界面增加如何解决调试连接不上的问题引导","en-US":"Add guidance on how to solve the problem of debugging connection not working"},link:"https://bytedance.larkoffice.com/wiki/WvifwWjGri7bTzkPbqKcqVi5ntc",module:"new"}],bugfix:[{desc:{"zh-CN":"修复项目详情中展示的主包大小限制和代码预检不一致的情况","en-US":"Fix the issue that the main package size limit and code precheck are inconsistent in the project details"},module:"detail"},{desc:{"zh-CN":"修复 CLI npm package size 过大问题","en-US":"Fix the issue that the CLI npm package size is too large"},module:"detail"}]}},{title:"0.3.1",target:{iOS:">=43.1",Android:">=43.1"},changes:{feature:[{desc:{"zh-CN":"支持 unity 小游戏本地一些列调试功能,如 Wasm 分包、包大小校验、一键上传代码包至平台等","en-US":"Support unity debug features, such as Wasm split, package size check, one-click upload code package to platform, etc."},link:"https://bytedance.larkoffice.com/wiki/E5TAwQ1O1iylUXkoQFocfdL0ntG",module:"new"},{desc:{"zh-CN":"增加用户登录过期的异常提示,提醒开发者重新登录","en-US":"Add login expired exception prompt, prompt developers to re-login."},module:"login"}],optimize:[{desc:{"zh-CN":"优化上传代码包至平台功能,开发者只用添加描述后点击上传便可自动压缩当前目录下的代码包上传至开发者平台","en-US":"Optimize upload code package to platform function, developers only need to add a description and click upload to automatically compress the code package in the current directory to the developer platform."},module:"upload"},{desc:{"zh-CN":"优化 ttmg login 终端网络代理异常导致无法登录的报错引导,提示用户检查网络设置","en-US":"Optimize ttmg login terminal network proxy exception login prompt, prompt check network settings."},module:"login"}]}},{title:"0.3.0",target:{iOS:">=43.1",Android:">=43.1"},changes:{feature:[{desc:{"zh-CN":"支持了开发信息蒙层,打开后可以查看游戏 FPS、设备信息、调试开关等信息,便于查看游戏运行状态","en-US":"Support devInfo panel, which can show game FPS, device info, debug switch, etc."},link:"https://bytedance.larkoffice.com/wiki/PaK1wSu0eiPrxrkrqtrcR3VEnjf",module:"devOptions"},{desc:{"zh-CN":"支持删除历史启动模式,便于管理历史启动模式","en-US":"Support delete historical launch mode,keep consistent with client dev options"},module:"devOptions"},{desc:{"zh-CN":"调整调试设置模块名称为开发选项,和客户端内调开发者选项保持一致","en-US":"Rename debug setting module to dev options, keep consistent with client dev options"},module:"devOptions",link:"https://bytedance.larkoffice.com/wiki/PaK1wSu0eiPrxrkrqtrcR3VEnjf"},{desc:{"zh-CN":"调试设置新增定义 vConsole 和 开发信息浮层设置","en-US":"Add debug setting to define vConsole and dev overlay"},module:"devOptions"},{desc:{"zh-CN":"支持了变更日志,用户可以在调试环境下查看游戏的变更记录,部分新功能可通过更多信息查看使用","en-US":"Support change log, user can view game change log in IDE, some new features can be viewed in more info"},module:"new"}],optimize:[{desc:{"zh-CN":"支持了调试设置开关本地缓存,避免每次都需要重新设置","en-US":"Support debug setting cache, avoid setting debug mode every time"},module:"devOptions"}],bugfix:[{desc:{"zh-CN":"修复上传名称为中文的游戏时,平台展示乱码的问题","en-US":"Fix the issue that the platform shows garbled code when the game name is in Chinese"},module:"upload"},{desc:{"zh-CN":"修复启动模式模块,自定义query 参数无法持久化的问题","en-US":"Fix the issue that custom query parameters cannot be persisted in launch mode module"},module:"launchMode"},{desc:{"zh-CN":"修复扫描二维码模块,内容过多,纵向无法滚动问题","en-US":"Fix the issue that the content in scan QR code module is too long, and cannot be scrolled vertically"},module:"scanQrcode"}]}}],p=()=>{const{state:{devToolVersion:a}}=c(),o=r;return d.useEffect(()=>{a&&l(a)},[a]),e.jsx("div",{className:"change-log-container",children:g.map(n=>e.jsxs("div",{className:"change-log-item",children:[e.jsx("h2",{className:"change-log-title",children:n.title}),e.jsx("div",{className:"change-log-target",children:e.jsxs("div",{className:"change-log-target-title",children:[i("changelogTarget")," iOS ",n.target.iOS," | Android",n.target.Android]})}),n?.changes?.feature?.length>0&&e.jsxs("div",{children:[e.jsx("div",{className:"change-log-feature-title",children:e.jsx(s,{color:"green",size:"large",shape:"circle",type:"solid",children:i("changelogFeature")})}),e.jsx("ul",{className:"change-log-changes-feature",children:n.changes.feature.map(t=>e.jsxs("li",{className:"change-log-change",children:[t.desc[o]," ",t?.link?e.jsx("a",{style:{fontWeight:600,color:"orange"},href:t.link,target:"_blank",rel:"noopener noreferrer",children:i("changelogLink")}):null]},t.desc[o]))})]}),n?.changes?.optimize?.length>0&&e.jsxs("div",{children:[e.jsx("div",{className:"change-log-optimize-title",children:e.jsx(s,{color:"orange",size:"large",shape:"circle",type:"solid",children:i("changelogOptimize")})}),e.jsx("ul",{className:"change-log-changes-optimize",children:n.changes.optimize.map(t=>e.jsx("li",{className:"change-log-change",children:t.desc[o]},t.desc[o]))})]}),n?.changes?.bugfix?.length>0&&e.jsxs("div",{children:[e.jsx("div",{className:"change-log-bugfix-title",children:e.jsx(s,{color:"red",size:"large",shape:"circle",type:"solid",children:i("changelogBugfix")})}),e.jsx("ul",{className:"change-log-changes-bugfix",children:n.changes.bugfix.map(t=>e.jsx("li",{className:"change-log-change",children:t.desc[o]},t.desc[o]))})]})]},n.title))})};export{p as ChangeLog};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,j as e,S as b,T as k}from"./index-
|
|
1
|
+
import{r as s,j as e,S as b,T as k}from"./index-DD7xtDwI.js";import{C as g}from"./index-CBkk8KwT.js";const S=c=>{const{open:C,onClose:u}=c,[t,n]=s.useState(!0),[o,l]=s.useState(!1),[r,d]=s.useState(!1),[x,m]=s.useState(!1),i=[{label:"是否开启域名校验",description:"开启后,客户端将校验所有请求的域名是否合法,建议开发环境关闭以便调试。",checked:t,onChange:n},{label:"是否开启 IAA Mock",description:"启用后,广告相关接口将返回模拟数据,方便开发和测试广告逻辑。",checked:o,onChange:l},{label:"是否开启 IAP Mock",description:"启用后,内购相关流程将使用模拟支付,避免真实扣费。",checked:r,onChange:d}];return e.jsx("div",{children:e.jsx(b,{vertical:!0,align:"start",spacing:"loose",children:i.map((a,h)=>e.jsxs("div",{children:[e.jsx(g,{checked:a.checked,onChange:p=>a.onChange(p.target.checked),children:a.label}),e.jsx(k.Text,{type:"tertiary",style:{display:"block",marginTop:4},children:a.description})]},h))})})};export{S as DebugSetting};
|
|
@@ -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-
|
|
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-DD7xtDwI.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{r as a,j as e,T as l,i,S as D,a as R,u as C,B as L,b as M,c as z,d as F,e as B,g as O,f as A}from"./index-DkXWo3Jg.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(D,{style:{flexWrap:"wrap"},children:r.map(t=>e.jsx(R,{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(l.Text,{type:"tertiary",className:"terms-privacy-value",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(l.Text,{type:"tertiary",className:"terms-privacy-value",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",u=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"],f=()=>{window.open(re,"_blank","noopener,noreferrer")};return e.jsxs("div",{className:"error-display",children:[e.jsx(L,{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:u.map((y,E)=>e.jsxs("div",{className:"error-display-step-item",children:[e.jsx("span",{className:"error-display-step-index",children:E+1}),e.jsx(l.Text,{children:i(y)})]},y))}),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:f,children:i("projectInfo.error.openProxyDoc")})]}):null]})]})]})]})},g=({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}=z(),[d,m]=a.useState(!0),[u,f]=a.useState(!1),[y,E]=a.useState(""),[T,b]=a.useState("unknown"),N=({errorCode:p,errorMsg:h,clientKey:j})=>{m(!1),f(!0),b(O({errorCode:p,user:t})),E(A({errorCode:p,errorMsg:h,clientKey:j,user:t}))};a.useEffect(()=>{if(r&&!r.has_error){m(!1);return}r?.has_error&&(f(!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",v=s?.length>0?s:r.packages??[],k=v.reduce((x,S)=>x+(S?.size??0),0)||p,_=j?60:30,I=v.filter(x=>x.type==="independent"),P=v.some(x=>x.type==="main");return{isUnity:j,packageList:v,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"})}):u?e.jsx(te,{errorMsg:y,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(g,{label:i("gameSize"),children:e.jsx(Y,{size:o.projectSize,limit:o.projectSizeLimit})}),!o.isUnity&&o.hasMainPackage?e.jsx(g,{label:i("gameMainPackageSize"),children:e.jsx(X,{packages:o.packageList,limit:4})}):null,!o.isUnity&&o.independentPackages.length>0?e.jsx(g,{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-fields-grid",children:[e.jsx(g,{label:i("gameTrustDomains"),wide:!0,children:e.jsx($,{domains:o.domains})}),e.jsx(g,{label:i("gameTermsAndPrivacy"),wide:!0,children: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 D,a as R,u as C,B as L,b as M,c as z,d as F,e as B,g as O,f as A}from"./index-DD7xtDwI.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(D,{style:{flexWrap:"wrap"},children:r.map(t=>e.jsx(R,{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(l.Text,{type:"tertiary",className:"terms-privacy-value",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(l.Text,{type:"tertiary",className:"terms-privacy-value",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",u=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"],f=()=>{window.open(re,"_blank","noopener,noreferrer")};return e.jsxs("div",{className:"error-display",children:[e.jsx(L,{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:u.map((y,E)=>e.jsxs("div",{className:"error-display-step-item",children:[e.jsx("span",{className:"error-display-step-index",children:E+1}),e.jsx(l.Text,{children:i(y)})]},y))}),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:f,children:i("projectInfo.error.openProxyDoc")})]}):null]})]})]})]})},g=({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}=z(),[d,m]=a.useState(!0),[u,f]=a.useState(!1),[y,E]=a.useState(""),[T,b]=a.useState("unknown"),N=({errorCode:p,errorMsg:h,clientKey:j})=>{m(!1),f(!0),b(O({errorCode:p,user:t})),E(A({errorCode:p,errorMsg:h,clientKey:j,user:t}))};a.useEffect(()=>{if(r&&!r.has_error){m(!1);return}r?.has_error&&(f(!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",v=s?.length>0?s:r.packages??[],k=v.reduce((x,S)=>x+(S?.size??0),0)||p,_=j?60:30,I=v.filter(x=>x.type==="independent"),P=v.some(x=>x.type==="main");return{isUnity:j,packageList:v,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"})}):u?e.jsx(te,{errorMsg:y,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(g,{label:i("gameSize"),children:e.jsx(Y,{size:o.projectSize,limit:o.projectSizeLimit})}),!o.isUnity&&o.hasMainPackage?e.jsx(g,{label:i("gameMainPackageSize"),children:e.jsx(X,{packages:o.packageList,limit:4})}):null,!o.isUnity&&o.independentPackages.length>0?e.jsx(g,{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-fields-grid",children:[e.jsx(g,{label:i("gameTrustDomains"),wide:!0,children:e.jsx($,{domains:o.domains})}),e.jsx(g,{label:i("gameTermsAndPrivacy"),wide:!0,children: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};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{K,r as H,bP as X,bz as G,bZ as L,b_ as A,b$ as V,bg as $,c0 as U,c1 as Z,bi as W,c2 as Y,al as N,k as J,h as Q,m as j,R as m,Z as M,n as ee,s as te,q as d,c3 as se,c4 as ie}from"./index-
|
|
1
|
+
import{K,r as H,bP as X,bz as G,bZ as L,b_ as A,b$ as V,bg as $,c0 as U,c1 as Z,bi as W,c2 as Y,al as N,k as J,h as Q,m as j,R as m,Z as M,n as ee,s as te,q as d,c3 as se,c4 as ie}from"./index-DD7xtDwI.js";function re(r){return H.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),H.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,D;function oe(){if(D)return v;D=1;var r=G(),e=L(),s=A();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,k;function he(){if(k)return I;k=1;function r(e,s){return e!=null&&s in Object(e)}return I=r,I}var _,x;function ue(){if(x)return _;x=1;var r=A(),e=V(),s=$(),i=U(),t=Z(),a=W();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,y;function de(){if(y)return O;y=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=Y(),s=e(function(i,t){return i==null?{}:r(i,t)});return q=s,q}var ce=le();const B=N(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 z={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(`${z.PREFIX}-wrapper`,{[`${z.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 P,F;function ge(){if(F)return P;F=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 P=o,P}var me=ge();const ve=N(me);export{c as C,Re as I,ve as _,B as a,ue as b,de as c,ae as r};
|
package/dist/public/index.html
CHANGED
|
@@ -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-
|
|
15
|
+
<script type="module" crossorigin src="/assets/index-DD7xtDwI.js"></script>
|
|
16
16
|
<link rel="stylesheet" crossorigin href="/assets/index-6LE--ADL.css">
|
|
17
17
|
</head>
|
|
18
18
|
<body>
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as ie,m as ne,R as j,n as re,T as r,d as D,u as R,c as W,r as d,i as t,j as e,H as P,b as T,B as A,e as le,E as U,Q as ce,N as Y,J as de,a as q}from"./index-DkXWo3Jg.js";import{c as oe}from"./index-OIQapQiA.js";const ge={PREFIX:`${ie}-empty`};var pe=function(s,c){var i={};for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&c.indexOf(l)<0&&(i[l]=s[l]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(s);o<l.length;o++)c.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(s,l[o])&&(i[l[o]]=s[l[o]]);return i};const w=ge.PREFIX;class J extends ne{constructor(c){super(c),this.observe=i=>{for(const l of i)l.type==="attributes"&&l.attributeName==="theme-mode"&&this.updateMode()},this.updateMode=()=>{const i=this.body.getAttribute("theme-mode");i!==this.state.mode&&this.setState({mode:i})},this.state={mode:null}}componentDidMount(){if(this.props.darkModeImage){this.body=window.document.body,this.updateMode();const c={attributes:!0,childList:!1,subtree:!1};this.observer=new MutationObserver(this.observe),this.observer.observe(this.body,c)}}componentWillUnmount(){this.observer&&this.observer.disconnect()}render(){const c=this.props,{className:i,image:l,description:o,style:y,title:a,imageStyle:_,children:x,layout:v,darkModeImage:g}=c,f=pe(c,["className","image","description","style","title","imageStyle","children","layout","darkModeImage"]),h=typeof o=="string"?o:"empty",p=this.state.mode==="dark"&&g?g:l;let N=null;typeof p=="string"?N=j.createElement("img",{alt:h,src:p}):p&&"id"in p?N=j.createElement("svg",{"aria-hidden":"true"},j.createElement("use",{xlinkHref:`#${p.id}`})):N=p;const C=re(i,w,{[`${w}-${v}`]:v}),S=N?{heading:4}:{heading:6,style:{fontWeight:400}};return j.createElement("div",Object.assign({className:C,style:y},this.getDataAttr(f)),j.createElement("div",{className:`${w}-image`,style:_,"x-semi-prop":"image,darkModeImage"},N),j.createElement("div",{className:`${w}-content`},a?j.createElement(r.Title,Object.assign({},S,{className:`${w}-title`,"x-semi-prop":"title"}),a):null,o?j.createElement("div",{className:`${w}-description`,"x-semi-prop":"description"},o):null,x?j.createElement("div",{className:`${w}-footer`,"x-semi-prop":"children"},x):null))}}J.defaultProps={layout:"vertical"};function ue(s={}){return D({url:"/game/direct-feed-card/list",method:"POST",data:s})}function he(s){return D({url:"/game/direct-feed-card/asset-preview",method:"POST",data:s})}function me(s={}){return D({url:"/game/assets",method:"POST",data:s})}const ye="fyf_promotion_direct_feed_play",H="direct-play-debug";function O(s,c){if(typeof s=="string"&&s.trim())return s;if(s&&typeof s=="object"){const i=s;if(i.errorMsg)return i.errorMsg;if(i.StatusMessage)return i.StatusMessage;if(i.message)return i.message}return c}function xe(s){return s?s<1024?`${s} B`:s<1024*1024?`${(s/1024).toFixed(1)} KB`:`${(s/1024/1024).toFixed(2)} MB`:"-"}function je(s){return s?new Date(s*1e3).toLocaleString():"-"}function ve(s){return s==="preview"?t("ia.directPlay.stage2.assetGroup.preview"):s==="live"?t("ia.directPlay.stage2.assetGroup.live"):t("ia.directPlay.stage2.assetGroup.review")}function fe(s){return{...s||Y,scene:ye}}function Ne(s){return s.pkgType==="independent"?s.independentPkg||s.pkgName||t("independentPackage"):t("gameMainPackage")}function X(s){return!s||s==="__GAME__"?t("gameMainPackage"):s}const be=()=>{const s=R(),{state:{selectedLaunchOption:c,gameDetail:i,launchOptions:l},setLaunchOptions:o,setSelectedLaunchOption:y}=W(),[a,_]=d.useState([]),[x,v]=d.useState([]),[g,f]=d.useState(""),[h,p]=d.useState(""),[N,C]=d.useState(""),[S,F]=d.useState(""),[G,E]=d.useState(""),[z,V]=d.useState(!0),[Z,Q]=d.useState(!1),K=d.useMemo(()=>fe(c),[c]),b=d.useMemo(()=>({appId:i?.app_id,clientKey:i?.client_key,miniGameId:i?.app_id}),[i?.app_id,i?.client_key]),I=d.useMemo(()=>a.find(n=>n.content_id===g)||null,[a,g]),M=d.useMemo(()=>x.find(n=>n.asset_id===h)||null,[x,h]),ee=d.useMemo(()=>x.map(n=>({label:`${n.file_name||n.asset_id} · v${n.version||"-"}`,value:n.asset_id})),[x]),te=d.useMemo(()=>a.map(n=>({label:`${n.card_name} · ${n.scenario||"-"} · ${X(n.sub_pkg)}`,value:n.content_id})),[a]),B=d.useCallback(async()=>{V(!0),F("");try{const[n,m]=await Promise.all([ue({appId:b.appId,clientKey:b.clientKey}),me({appId:b.appId,miniGameId:b.miniGameId,clientKey:b.clientKey})]);if(n?.error||n?.code!==0||!n?.data)throw new Error(O(n?.error,t("ia.directPlay.stage2.loadCardsFailed")));if(m?.error||m?.code!==0||!m?.data)throw new Error(O(m?.error,t("ia.directPlay.stage2.loadAssetsFailed")));const k=n.data.cards||[],$=(m.data.preview_assets||[]).map(u=>({...u,group:"preview"}));_(k),v($),f(u=>u&&k.some(L=>L.content_id===u)?u:k[0]?.content_id||""),p(u=>u&&$.some(L=>L.asset_id===u)?u:$[0]?.asset_id||"")}catch(n){F(O(n,t("ia.directPlay.stage2.loadResourcesFailed")))}finally{V(!1)}},[b.appId,b.clientKey,b.miniGameId]);d.useEffect(()=>{B()},[B]);const se=d.useCallback(()=>{const n={...K,id:H,name:t("ia.directPlay.stage1.generatedModeName")},m=l.filter(u=>u.id!==H),k=m.findIndex(u=>u.id==="created"),$=k>=0?[...m.slice(0,k),n,...m.slice(k)]:[...m,n];o($),y(n),s("/")},[l,s,o,y,K]),ae=d.useCallback(async()=>{if(!g||!h){E(t("ia.directPlay.stage2.selectRequired"));return}Q(!0),E("");try{const n=await he({assetId:h,contentId:g});if(n?.error||n?.code!==0||!n?.data?.preview_url)throw new Error(O(n?.error,t("ia.directPlay.stage2.previewFailed")));C(n.data.preview_url)}catch(n){C(""),E(O(n,t("ia.directPlay.stage2.previewFailed")))}finally{Q(!1)}},[h,g]);return e.jsxs("div",{className:"integration-assistant-direct-play-grid",children:[e.jsxs(P,{className:"integration-assistant-direct-play-card",bordered:!0,children:[e.jsx("div",{className:"integration-assistant-section-head",children:e.jsxs("div",{children:[e.jsx(r.Title,{heading:5,children:t("ia.directPlay.stage1.title")}),e.jsx(r.Paragraph,{className:"integration-assistant-section-desc",children:t("ia.directPlay.stage1.desc")})]})}),e.jsxs("div",{className:"integration-assistant-direct-play-summary",children:[e.jsxs("div",{className:"integration-assistant-direct-play-row",children:[e.jsx(r.Text,{strong:!0,children:t("ia.directPlay.stage1.modeName")}),e.jsx(r.Text,{children:t("ia.directPlay.stage1.modeValue")})]}),e.jsxs("div",{className:"integration-assistant-direct-play-row",children:[e.jsx(r.Text,{strong:!0,children:t("ia.directPlay.stage1.scene")}),e.jsx(r.Text,{children:t("scene_fyf_promotion_direct_feed_play")})]}),e.jsxs("div",{className:"integration-assistant-direct-play-row",children:[e.jsx(r.Text,{strong:!0,children:t("ia.directPlay.stage1.package")}),e.jsx(r.Text,{children:Ne(K)})]})]}),e.jsx("div",{className:"integration-assistant-actions",children:e.jsx(T,{theme:"solid",onClick:se,children:t("ia.directPlay.stage1.createQr")})})]}),e.jsxs(P,{className:"integration-assistant-direct-play-card",bordered:!0,children:[e.jsx("div",{className:"integration-assistant-section-head",children:e.jsxs("div",{children:[e.jsx(r.Title,{heading:5,children:t("ia.directPlay.stage2.title")}),e.jsx(r.Paragraph,{className:"integration-assistant-section-desc",children:t("ia.directPlay.stage2.desc")})]})}),e.jsx(A,{fullMode:!1,bordered:!1,closeIcon:null,type:"info",description:t("ia.directPlay.stage2.banner")}),S?e.jsx(A,{className:"integration-assistant-direct-play-banner",fullMode:!1,bordered:!1,closeIcon:null,type:"danger",description:S}):null,G?e.jsx(A,{className:"integration-assistant-direct-play-banner",fullMode:!1,bordered:!1,closeIcon:null,type:"danger",description:G}):null,z?e.jsx("div",{className:"integration-assistant-direct-play-loading",children:e.jsx(le,{size:"large"})}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"integration-assistant-direct-play-form",children:[e.jsxs("div",{children:[e.jsx(r.Text,{strong:!0,children:t("ia.directPlay.stage2.cardSelect")}),e.jsx(U,{className:"integration-assistant-direct-play-select",value:g||void 0,optionList:te,onChange:n=>f(n),placeholder:t("ia.directPlay.stage2.cardSelect")})]}),e.jsxs("div",{children:[e.jsx(r.Text,{strong:!0,children:t("ia.directPlay.stage2.assetSelect")}),e.jsx(U,{className:"integration-assistant-direct-play-select",value:h||void 0,optionList:ee,onChange:n=>p(n),placeholder:t("ia.directPlay.stage2.assetSelect")})]})]}),e.jsxs("div",{className:"integration-assistant-direct-play-details",children:[e.jsxs("div",{className:"integration-assistant-direct-play-panel",children:[e.jsx(r.Text,{strong:!0,children:t("ia.directPlay.stage2.selectedCard")}),I?e.jsxs("ul",{className:"integration-assistant-detail-list",children:[e.jsx("li",{children:`${t("ia.directPlay.stage2.cardName")}${I.card_name}`}),e.jsx("li",{children:`${t("ia.directPlay.stage2.cardDesc")}${I.card_desc||"-"}`}),e.jsx("li",{children:`${t("ia.directPlay.stage2.cardScenario")}${I.scenario||"-"}`}),e.jsx("li",{children:`${t("ia.directPlay.stage2.cardPackage")}${X(I.sub_pkg)}`}),e.jsx("li",{children:`${t("ia.directPlay.stage2.cardQueries")}${I.params||"-"}`})]}):e.jsx(r.Paragraph,{className:"integration-assistant-section-desc",children:t("ia.directPlay.stage2.emptyCard")})]}),e.jsxs("div",{className:"integration-assistant-direct-play-panel",children:[e.jsx(r.Text,{strong:!0,children:t("ia.directPlay.stage2.selectedAsset")}),M?e.jsxs("ul",{className:"integration-assistant-detail-list",children:[e.jsx("li",{children:`${t("ia.directPlay.stage2.assetGroup")}${ve(M.group)}`}),e.jsx("li",{children:`${t("ia.directPlay.stage2.assetFile")}${M.file_name||"-"}`}),e.jsx("li",{children:`${t("ia.directPlay.stage2.assetVersion")}${M.version||"-"}`}),e.jsx("li",{children:`${t("ia.directPlay.stage2.assetSize")}${xe(M.file_size)}`}),e.jsx("li",{children:`${t("ia.directPlay.stage2.assetUploaded")}${je(M.uploaded_at)}`})]}):e.jsx(r.Paragraph,{className:"integration-assistant-section-desc",children:t("ia.directPlay.stage2.emptyAsset")})]})]}),e.jsx("div",{className:"integration-assistant-actions",children:e.jsx(T,{theme:"solid",loading:Z,onClick:ae,children:t("ia.directPlay.stage2.generate")})}),N?e.jsxs("div",{className:"integration-assistant-direct-play-preview",children:[e.jsx("div",{className:"integration-assistant-direct-play-qr",children:e.jsx(ce,{value:N,size:180})}),e.jsx("div",{className:"integration-assistant-direct-play-preview-content",children:e.jsx(r.Text,{className:"integration-assistant-section-desc",children:t("ia.directPlay.stage2.qrDesc")})})]}):null]})]})]})},Pe={sidebar_revisit:{modeId:"sidebar-revisit-debug",scene:"center",sceneKey:"scene_center",titleKey:"ia.revisit.sidebar.panel.title",descKey:"ia.revisit.sidebar.panel.desc",modeValueKey:"ia.revisit.sidebar.panel.modeValue",generatedModeNameKey:"ia.revisit.sidebar.panel.generatedModeName",signalValueKey:"ia.revisit.sidebar.panel.signalValue",createQrKey:"ia.revisit.sidebar.panel.createQr"},shortcut_revisit:{modeId:"shortcut-revisit-debug",scene:"desktop_shortcut",sceneKey:"scene_shortcut",titleKey:"ia.revisit.shortcut.panel.title",descKey:"ia.revisit.shortcut.panel.desc",modeValueKey:"ia.revisit.shortcut.panel.modeValue",generatedModeNameKey:"ia.revisit.shortcut.panel.generatedModeName",signalValueKey:"ia.revisit.shortcut.panel.signalValue",createQrKey:"ia.revisit.shortcut.panel.createQr"}};function _e(s,c){return{...s||Y,scene:c}}function ke(s){return s.pkgType==="independent"?s.independentPkg||s.pkgName||t("independentPackage"):t("gameMainPackage")}const we=({capabilityKey:s})=>{const c=R(),{state:{selectedLaunchOption:i,launchOptions:l},setLaunchOptions:o,setSelectedLaunchOption:y}=W(),a=Pe[s],_=d.useMemo(()=>_e(i,a.scene),[a.scene,i]),x=d.useCallback(()=>{const v={..._,id:a.modeId,name:t(a.generatedModeNameKey)},g=l.filter(p=>p.id!==a.modeId),f=g.findIndex(p=>p.id==="created"),h=f>=0?[...g.slice(0,f),v,...g.slice(f)]:[...g,v];o(h),y(v),c("/")},[a.generatedModeNameKey,a.modeId,l,c,_,o,y]);return e.jsx("div",{className:"integration-assistant-direct-play-grid",children:e.jsxs(P,{className:"integration-assistant-direct-play-card",bordered:!0,children:[e.jsx("div",{className:"integration-assistant-section-head",children:e.jsxs("div",{children:[e.jsx(r.Title,{heading:5,children:t(a.titleKey)}),e.jsx(r.Paragraph,{className:"integration-assistant-section-desc",children:t(a.descKey)})]})}),e.jsxs("div",{className:"integration-assistant-direct-play-summary",children:[e.jsxs("div",{className:"integration-assistant-direct-play-row",children:[e.jsx(r.Text,{strong:!0,children:t("ia.revisit.panel.modeName")}),e.jsx(r.Text,{children:t(a.modeValueKey)})]}),e.jsxs("div",{className:"integration-assistant-direct-play-row",children:[e.jsx(r.Text,{strong:!0,children:t("ia.revisit.panel.scene")}),e.jsx(r.Text,{children:t(a.sceneKey)})]}),e.jsxs("div",{className:"integration-assistant-direct-play-row",children:[e.jsx(r.Text,{strong:!0,children:t("ia.revisit.panel.launchParams")}),e.jsx(r.Text,{children:`scene=${a.scene}`})]}),e.jsxs("div",{className:"integration-assistant-direct-play-row",children:[e.jsx(r.Text,{strong:!0,children:t("ia.revisit.panel.package")}),e.jsx(r.Text,{children:ke(_)})]}),e.jsxs("div",{className:"integration-assistant-direct-play-row",children:[e.jsx(r.Text,{strong:!0,children:t("ia.revisit.panel.signal")}),e.jsx(r.Text,{children:t(a.signalValueKey)})]})]}),e.jsx("div",{className:"integration-assistant-actions",children:e.jsx(T,{theme:"solid",onClick:x,children:t(a.createQrKey)})})]})})},Te=()=>{const s=R(),{capabilityKey:c}=de(),i=c?oe[c]:void 0,l=a=>t(a),o=i?.actions.filter(a=>a.labelKey==="ia.action.openCapabilityDoc")||[],y=a=>{if(a.type==="external"&&a.href){window.open(a.href,a.target||"_blank","noopener,noreferrer");return}a.type==="route"&&a.path&&s(a.path)};return!i||i.hidden?e.jsx("div",{className:"integration-assistant-page integration-assistant-detail-page",children:e.jsxs(P,{bordered:!0,children:[e.jsx(J,{description:t("ia.detail.notFound")}),e.jsx("div",{className:"integration-assistant-detail-backalone",children:e.jsx(T,{onClick:()=>s("/integration_assistant"),children:t("ia.detail.backToMap")})})]})}):e.jsxs("div",{className:"integration-assistant-page integration-assistant-detail-page",children:[e.jsx("div",{className:"integration-assistant-detail-backalone",children:e.jsx(T,{theme:"borderless",onClick:()=>s("/integration_assistant"),children:t("ia.detail.backToMap")})}),e.jsx(P,{className:"integration-assistant-detail-hero",bordered:!1,children:e.jsxs("div",{className:"integration-assistant-detail-hero-content",children:[e.jsxs("div",{className:"integration-assistant-detail-title-row",children:[e.jsx("div",{className:"integration-assistant-map-icon","aria-hidden":"true",children:i.icon}),e.jsxs("div",{children:[e.jsx(r.Title,{heading:3,className:"integration-assistant-title",children:l(i.titleKey)}),e.jsx(r.Paragraph,{className:"integration-assistant-subtitle",children:l(i.summaryKey)})]})]}),e.jsxs("div",{className:"integration-assistant-map-meta",children:[i.sceneKey&&e.jsx(q,{color:"blue",children:`${t("ia.sceneLabel")}${l(i.sceneKey)}`}),i.apiTags.map(a=>e.jsx("span",{children:e.jsx(q,{children:a})},a))]}),e.jsx("div",{className:"integration-assistant-actions",children:o.map(a=>e.jsx(T,{theme:a.theme||"light",onClick:()=>y(a),children:l(a.labelKey)},`${a.type}:${a.path||a.href||a.labelKey}`))})]})}),e.jsxs("div",{className:"integration-assistant-detail-grid",children:[e.jsxs(P,{className:"integration-assistant-detail-card",bordered:!0,children:[e.jsx(r.Title,{heading:5,children:t("ia.section.prerequisites")}),e.jsx("ul",{className:"integration-assistant-detail-list",children:i.prerequisiteKeys.map(a=>e.jsx("li",{children:l(a)},a))})]}),e.jsxs(P,{className:"integration-assistant-detail-card",bordered:!0,children:[e.jsx(r.Title,{heading:5,children:t("ia.section.steps")}),e.jsx("ol",{className:"integration-assistant-detail-list ordered",children:i.stepKeys.map(a=>e.jsx("li",{children:l(a)},a))})]}),e.jsxs(P,{className:"integration-assistant-detail-card",bordered:!0,children:[e.jsx(r.Title,{heading:5,children:t("ia.section.tips")}),e.jsx("ul",{className:"integration-assistant-detail-list",children:i.tipKeys.map(a=>e.jsx("li",{children:l(a)},a))})]})]}),i.key==="direct_play_card"?e.jsx(be,{}):null,i.key==="sidebar_revisit"||i.key==="shortcut_revisit"?e.jsx(we,{capabilityKey:i.key}):null]})};export{Te as IntegrationAssistantDetail};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|