@ttmg/cli 0.4.0-beta.1 → 0.4.1-beta.wasm1
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/CHANGELOG.md +256 -0
- package/dist/index.js +365 -19
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/public/assets/{Card-C35olIke.js → Card-ASGGlJ8S.js} +1 -1
- package/dist/public/assets/Detail-DY__Zw0r.js +1 -0
- package/dist/public/assets/Detail-DY__Zw0r.js.br +0 -0
- package/dist/public/assets/MonetizationMode-sHN_4ybQ.js +1 -0
- package/dist/public/assets/MonetizationModeSummary-DLvyriLM.js +1 -0
- package/dist/public/assets/{SectionHeader-DRXnax7L.js → SectionHeader-B7dueBCf.js} +1 -1
- package/dist/public/assets/{Tag-CgPHrk93.js → Tag-BsX0d6UL.js} +1 -1
- package/dist/public/assets/{arrow-left-CNdHGsDz.js → arrow-left-uixm7Sd1.js} +1 -1
- package/dist/public/assets/{baseForm-C2Ms-wqt.js → baseForm-C8XfTFyG.js} +1 -1
- package/dist/public/assets/baseForm-C8XfTFyG.js.br +0 -0
- package/dist/public/assets/boxes-C7RoIbId.js +1 -0
- package/dist/public/assets/{chevron-right-CX-Bo3I2.js → chevron-right-B1WBZrrD.js} +1 -1
- package/dist/public/assets/circle-check-wUxXeINd.js +1 -0
- package/dist/public/assets/{compass-BUqxZo39.js → compass-VJNhHwqW.js} +1 -1
- package/dist/public/assets/{index-Dd2rc2_1.js → index-BBR3CPkN.js} +1 -1
- package/dist/public/assets/index-BBR3CPkN.js.br +0 -0
- package/dist/public/assets/{index-CxeatYOZ.js → index-BH099q_U.js} +1 -1
- package/dist/public/assets/{index-ROKxx4f7.css → index-BJZ4gOGZ.css} +1 -1
- package/dist/public/assets/index-BJZ4gOGZ.css.br +0 -0
- package/dist/public/assets/{index-CLXkCzG6.js → index-BNc8JtET.js} +1 -1
- package/dist/public/assets/{index-B8dmfh3A.js → index-BO5MBsdm.js} +1 -1
- package/dist/public/assets/index-Bd-f8ERX.js +1 -0
- package/dist/public/assets/{index-B9C7FZes.js → index-C1C34gtn.js} +1 -1
- package/dist/public/assets/{index-AGEFeR2m.js → index-C7Tmy9g3.js} +1 -1
- package/dist/public/assets/index-CCKb9Y-j.js +14 -0
- package/dist/public/assets/index-CCKb9Y-j.js.br +0 -0
- package/dist/public/assets/index-CKhfKyA3.js +1 -0
- package/dist/public/assets/index-CKhfKyA3.js.br +0 -0
- package/dist/public/assets/{index-BuGJ38RF.js → index-C_npSvtQ.js} +1 -1
- package/dist/public/assets/{index-BOl1-Siv.css → index-DHXlsTU6.css} +1 -1
- package/dist/public/assets/index-DHXlsTU6.css.br +0 -0
- package/dist/public/assets/index-DMsjcIN8.js +1 -0
- package/dist/public/assets/index-DNd8ZTok.js +1 -0
- package/dist/public/assets/index-DNd8ZTok.js.br +0 -0
- package/dist/public/assets/{index-8z6tNstf.js → index-DbxY65Om.js} +1 -1
- package/dist/public/assets/{index-DCZsvwKh.js → index-Dn5HHf-0.js} +1 -1
- package/dist/public/assets/index-DpkktYot.css +1 -0
- package/dist/public/assets/index-DtoDrber.js +1 -0
- package/dist/public/assets/index-DtoDrber.js.br +0 -0
- package/dist/public/assets/index-Dx5VGEQm.css +1 -0
- package/dist/public/assets/{index-BULJJdeE.js → index-ZHPtAdJM.js} +1 -1
- package/dist/public/assets/index-ZHPtAdJM.js.br +0 -0
- package/dist/public/assets/{index-D0DgrJ_K.js → index-ZtlCPCV9.js} +1 -1
- package/dist/public/assets/{index-CUV27PJL.js → index-a-rMUS2V.js} +1 -1
- package/dist/public/assets/{index-Dk9_4hQ4.js → index-bQUQ2Wmz.js} +1 -1
- package/dist/public/assets/{index-ByqGLZ4G.js → index-qqnHwFjO.js} +1 -1
- package/dist/public/assets/{index-CIIptoBi.js → index-r3aSeNL1.js} +1 -1
- package/dist/public/assets/{index-EorOvXWq.js → index-s_30KWiA.js} +1 -1
- package/dist/public/assets/index-t4JeqZ4a.js +1 -0
- package/dist/public/assets/layers-Biv61qtE.js +1 -0
- package/dist/public/assets/{sparkles-C54nzN2M.js → sparkles-Bv2GxrFr.js} +1 -1
- package/dist/public/assets/{zap-g-acVHwy.js → zap-CjkC_qWZ.js} +1 -1
- package/dist/public/index.html +2 -2
- package/package.json +1 -1
- package/dist/public/assets/Detail-Bw_dl9hw.js +0 -1
- package/dist/public/assets/Detail-Bw_dl9hw.js.br +0 -0
- package/dist/public/assets/MonetizationMode-C7Wyv9Mg.js +0 -1
- package/dist/public/assets/MonetizationModeSummary-D-zuX05a.js +0 -1
- package/dist/public/assets/baseForm-C2Ms-wqt.js.br +0 -0
- package/dist/public/assets/index-BOl1-Siv.css.br +0 -0
- package/dist/public/assets/index-BULJJdeE.js.br +0 -0
- package/dist/public/assets/index-B_iiHvzl.js +0 -1
- package/dist/public/assets/index-B_iiHvzl.js.br +0 -0
- package/dist/public/assets/index-BmmpJdOy.js +0 -1
- package/dist/public/assets/index-BmmpJdOy.js.br +0 -0
- package/dist/public/assets/index-CjInIkcE.js +0 -1
- package/dist/public/assets/index-D28D1GWM.js +0 -1
- package/dist/public/assets/index-Dd2rc2_1.js.br +0 -0
- package/dist/public/assets/index-Dvg_oNs7.css +0 -1
- package/dist/public/assets/index-ROKxx4f7.css.br +0 -0
- package/dist/public/assets/index-cC0QApVl.js +0 -14
- package/dist/public/assets/index-cC0QApVl.js.br +0 -0
- package/dist/public/assets/index-l16xoaSk.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,c as Z,j as e,T as s,i as l,S as C,a as B,u as O,B as A,b,d as F,e as G,f as H,P as U,g as V,h as W}from"./index-cC0QApVl.js";import{S as E}from"./SectionHeader-DRXnax7L.js";import{C as M}from"./Card-C35olIke.js";var q=Object.defineProperty,_=Object.getOwnPropertySymbols,$=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,I=(t,a,i)=>a in t?q(t,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[a]=i,Y=(t,a)=>{for(var i in a||(a={}))$.call(a,i)&&I(t,i,a[i]);if(_)for(var i of _(a))K.call(a,i)&&I(t,i,a[i]);return t};function X(t){return r.createElement("svg",Y({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},t),r.createElement("rect",{width:200,height:200,fill:"transparent"}),r.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"}),r.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"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.createElement("g",{clipPath:"url(#clip_failure_96_39_65)"},r.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)"})),r.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"}),r.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"}),r.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"}),r.createElement("mask",{id:"mask_failure_130_526","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:98,y:44,width:36,height:27},r.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"})),r.createElement("g",{mask:"url(#mask_failure_130_526)"},r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.createElement("mask",{id:"path-18-inside-1",fill:"white"},r.createElement("ellipse",{rx:2.97818,ry:2.97818,transform:"matrix(0.727696 0.6859 -0.685903 0.727693 128.435 60.0508)"})),r.createElement("ellipse",{rx:2.97818,ry:2.97818,transform:"matrix(0.727696 0.6859 -0.685903 0.727693 128.435 60.0508)",fill:"white"}),r.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)"})),r.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"}),r.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"}),r.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:""}),r.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:""}),r.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"}),r.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__"}),r.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"}),r.createElement("path",{d:"M126.02 142.7c-3.1-2.99-4.99-7.5-4.16-12.35",stroke:"#515151"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.createElement("defs",null,r.createElement("clipPath",{id:"clip_failure_96_39_65"},r.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 J=X;const Q=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],ee=Z("globe",Q);const re=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],te=Z("info",re);const ae=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],le=Z("package",ae),ie=({packages:t})=>e.jsx("div",{children:t.map(({name:a,size:i},c)=>{const n=(i/1024/1024).toFixed(2)+"MB",d=i<=4*1024*1024;return e.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"2px 8px",borderRadius:6,backgroundColor:d?"var(--tt-success-bg)":"var(--tt-error-bg)",marginBottom:c===t.length-1?0:8,width:"fit-content"},children:[e.jsxs(s.Text,{style:{fontWeight:600,fontSize:14},children:[a,":"]}),e.jsx(s.Text,{style:{color:d?"var(--tt-success-text)":"var(--tt-error-text)",fontWeight:600},children:n}),e.jsx(s.Text,{type:"tertiary",style:{marginLeft:8},children:d?l("notExceedIndependentPkgSizeLimit",{limit:"4MB"}):l("exceedIndependentPkgSizeLimit",{limit:"4MB"})})]},a)})}),se=({size:t,limit:a})=>{const i=(t/1024/1024).toFixed(2)+"MB",c=t<=a*1024*1024,n=c?l("notExceedSizeLimit",{limit:a+"MB"}):l("exceedSizeLimit",{limit:a+"MB"});return e.jsxs("div",{style:{display:"flex",alignItems:"center",width:"fit-content",padding:"2px 8px",borderRadius:6,backgroundColor:c?"var(--tt-success-bg)":"var(--tt-error-bg)"},children:[e.jsx(s.Text,{style:{fontWeight:600,color:c?"var(--tt-success-text)":"var(--tt-error-text)"},children:i}),e.jsx(s.Text,{type:"tertiary",style:{marginLeft:8},children:n})]})},ce=({packages:t,limit:a})=>{const i=t.find(m=>m.type==="main")?.size,c=(i/1024/1024).toFixed(2)+"MB",n=i<=a*1024*1024,d=n?l("notExceedMainPkgSizeLimit",{limit:a+"MB"}):l("exceedMainPkgSizeLimit",{limit:a+"MB"});return e.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"2px 8px",width:"fit-content",borderRadius:6,backgroundColor:n?"var(--tt-success-bg)":"var(--tt-error-bg)"},children:[e.jsx(s.Text,{style:{fontWeight:600,color:n?"var(--tt-success-text)":"var(--tt-error-text)"},children:c}),e.jsx(s.Text,{type:"tertiary",style:{marginLeft:8},children:d})]})},ne=({domains:t=[]})=>t?.length?e.jsx(C,{className:"trusted-domain-list",style:{flexWrap:"wrap"},children:t.map(a=>e.jsx(B,{className:"trusted-domain-tag",children:a},a))}):e.jsx("div",{className:"project-detail-warning",children:e.jsx(s.Text,{className:"project-detail-warning-text",children:l("trustDomainEmptyTip")})}),oe=({termsOfServiceLink:t})=>{const a=l("termsLabel");return t?e.jsxs("div",{className:"terms-privacy-item",children:[e.jsx(s.Text,{type:"tertiary",className:"terms-privacy-label",children:a}),e.jsx("a",{className:"terms-privacy-value",href:t,title:t,target:"_blank",rel:"noreferrer",children:t})]}):e.jsxs("div",{className:"terms-privacy-item",children:[e.jsx(s.Text,{type:"tertiary",className:"terms-privacy-label",children:a}),e.jsx("div",{className:"project-detail-warning",children:e.jsx(s.Text,{className:"project-detail-warning-text",children:l("termsOfServiceEmptyTip")})})]})},de=({privacyPolicyLink:t})=>{const a=l("privacyLabel");return t?e.jsxs("div",{className:"terms-privacy-item",children:[e.jsx(s.Text,{type:"tertiary",className:"terms-privacy-label",children:a}),e.jsx("a",{className:"terms-privacy-value",href:t,title:t,target:"_blank",rel:"noreferrer",children:t})]}):e.jsxs("div",{className:"terms-privacy-item",children:[e.jsx(s.Text,{type:"tertiary",className:"terms-privacy-label",children:a}),e.jsx("div",{className:"project-detail-warning",children:e.jsx(s.Text,{className:"project-detail-warning-text",children:l("privacyPolicyEmptyTip")})})]})},me=({logo:t,placeholder:a})=>{if(!t?.trim())return e.jsx("div",{className:"project-detail-warning",children:e.jsx(s.Text,{className:"project-detail-warning-text",children:l("gameIconEmptyTip")})});const[i,c]=r.useState(!1);return e.jsxs("div",{style:{width:100,height:100,borderRadius:4,overflow:"hidden",position:"relative",background:"var(--tt-bg-sunken)",display:"flex",alignItems:"center",justifyContent:"center"},children:[!i&&(a||e.jsx("div",{style:{width:"100%",height:"100%",background:"var(--tt-overlay-medium)",display:"flex",alignItems:"center",justifyContent:"center",color:"var(--tt-text-faint)",fontSize:14}})),e.jsx("img",{src:t,alt:"logo",style:{width:"100%",height:"100%",borderRadius:4,objectFit:"cover",position:"absolute",top:0,left:0,opacity:i?1:0,transition:"opacity 0.3s"},onLoad:()=>c(!0)})]})},pe=({description:t})=>t?e.jsx(s.Text,{style:{fontSize:14},children:t}):e.jsx("div",{className:"project-detail-warning",children:e.jsx(s.Text,{className:"project-detail-warning-text",children:l("gameDescEmptyTip")})}),he="https://bytedance.larkoffice.com/wiki/PeIawT4M4ia9R8kYyLMcjwHknOg",xe=({errorMsg:t,errorState:a="unknown"})=>{const i=O(),c=a==="notLoggedIn"||a==="loginExpired",n=a==="noPermission",d=c?"projectInfo.error.login.title":n?"projectInfo.error.permission.title":"projectInfo.error.general.title",m=c?"projectInfo.error.login.desc":n?"projectInfo.error.permission.desc":"projectInfo.error.general.desc",v=c?["projectInfo.error.login.stepLogin","projectInfo.error.login.stepRestart","projectInfo.error.login.stepProxy"]:n?["projectInfo.error.permission.stepCheckAccount","projectInfo.error.permission.stepApply","projectInfo.error.permission.stepRestart"]:["projectInfo.error.general.stepCheck","projectInfo.error.general.stepRetry"],f=()=>{window.open(he,"_blank","noopener,noreferrer")};return e.jsxs("div",{className:"error-display",children:[e.jsx(A,{className:"error-display-banner",type:"info",closeIcon:null,description:e.jsxs("div",{className:"error-display-banner-content",children:[e.jsx(s.Text,{strong:!0,children:l(d)}),e.jsx(s.Text,{children:l(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(J,{})}),e.jsxs("div",{className:"error-display-hero-copy",children:[e.jsx(s.Title,{heading:4,children:l("projectInfo.error.guideTitle")}),e.jsx(s.Paragraph,{className:"error-display-main-text",children:t})]})]}),e.jsxs("div",{className:"error-display-guide-grid",children:[e.jsxs("section",{className:"error-display-guide-card",children:[e.jsx(s.Text,{strong:!0,children:l("projectInfo.error.stepTitle")}),e.jsx("div",{className:"error-display-step-list",children:v.map((y,u)=>e.jsxs("div",{className:"error-display-step-item",children:[e.jsx("span",{className:"error-display-step-index",children:u+1}),e.jsx(s.Text,{children:l(y)})]},y))}),c?e.jsxs("div",{className:"error-display-command-list",children:[e.jsxs("div",{className:"error-display-command-item",children:[e.jsx(s.Text,{type:"tertiary",children:l("projectInfo.error.commandLogin")}),e.jsx("code",{children:"ttmg login"})]}),e.jsxs("div",{className:"error-display-command-item",children:[e.jsx(s.Text,{type:"tertiary",children:l("projectInfo.error.commandRestart")}),e.jsx("code",{children:"ttmg dev"})]}),e.jsxs("div",{className:"error-display-command-item",children:[e.jsx(s.Text,{type:"tertiary",children:l("projectInfo.error.commandProxy")}),e.jsx("code",{children:"ttmg config set proxy http://127.0.0.1:7890"}),e.jsx(s.Text,{type:"tertiary",className:"error-display-command-hint",children:l("projectInfo.error.commandProxyHint")})]})]}):null]}),e.jsxs("section",{className:"error-display-guide-card",children:[e.jsx(s.Text,{strong:!0,children:l("projectInfo.error.helpTitle")}),e.jsx(s.Paragraph,{className:"error-display-help-text",children:c?l("projectInfo.error.helpLoginDesc"):n?l("projectInfo.error.helpPermissionDesc"):l("projectInfo.error.helpGeneralDesc")}),c?e.jsxs("div",{className:"error-display-actions",children:[e.jsx(b,{theme:"light",onClick:()=>i("/basic_debug_guide"),children:l("basicDebugGuide.entryAction")}),e.jsx(b,{theme:"solid",type:"primary",onClick:f,children:l("projectInfo.error.openProxyDoc")})]}):null]})]})]})]})},N=({label:t,children:a,wide:i=!1})=>e.jsxs("div",{className:`pd-field ${i?"pd-field-wide":""}`,children:[e.jsx("span",{className:"pd-field-label",children:t}),e.jsx("div",{className:"pd-field-value",children:a})]}),k=({label:t,children:a})=>e.jsxs("div",{className:"pd-hero-row",children:[e.jsx("span",{className:"pd-hero-row-label",children:t}),e.jsx("div",{className:"pd-hero-row-value",children:a})]}),ge=()=>{const{state:{gameDetail:t,user:a,packages:i,engine:c},setGameDetail:n}=F(),[d,m]=r.useState(!0),[v,f]=r.useState(!1),[y,u]=r.useState(""),[T,P]=r.useState("unknown"),w=({errorCode:p,errorMsg:h,clientKey:j})=>{m(!1),f(!0),P(V({errorCode:p,user:a})),u(W({errorCode:p,errorMsg:h,clientKey:j,user:a}))};r.useEffect(()=>{if(t&&!t.has_error){m(!1);return}t?.has_error&&(f(!0),w({errorCode:t.error_code,errorMsg:t.error_msg,clientKey:t.client_key})),G({url:"/game/detail",method:"GET"}).then(p=>{if(p?.error)m(!1),w(p.error);else{const{data:h}=p;n(h),m(!1)}})},[]);const o=r.useMemo(()=>{if(!t||t?.has_error)return null;const{size:p,request_allowed_domains:h}=t,j=c==="unity",g=i?.length>0?i:t.packages??[],S=g.reduce((x,L)=>x+(L?.size??0),0)||p,R=j?60:30,D=g.filter(x=>x.type==="independent"),z=g.some(x=>x.type==="main");return{isUnity:j,packageList:g,projectSize:S,projectSizeLimit:R,independentPackages:D,hasMainPackage:z,domains:h}},[c,t,i]);return d&&!t?e.jsx("div",{className:"pd-loading",children:e.jsx(H,{size:"large"})}):v?e.jsx(xe,{errorMsg:y,errorState:T}):!t||!o?null:e.jsxs("div",{className:"pd-page",children:[e.jsx(U,{title:l("projectInfo"),subtitle:l("projectInfo.summary")}),e.jsxs(M,{padding:"md",children:[e.jsx(E,{icon:te,title:l("projectInfo.section.basic")}),e.jsxs("div",{className:"pd-hero",children:[e.jsx("div",{className:"pd-hero-logo",children:e.jsx(me,{logo:t.display_icon_url||""})}),e.jsxs("div",{className:"pd-hero-meta",children:[e.jsx(k,{label:l("gameName"),children:t.name?.trim()?e.jsx("span",{className:"pd-hero-name",children:t.name}):e.jsx("span",{className:"pd-warning-text",children:l("gameNameEmptyTip")})}),e.jsx(k,{label:l("gameID"),children:e.jsx("span",{className:"pd-hero-code",children:t.client_key||"-"})}),e.jsx(k,{label:l("gameDesc"),children:e.jsx(pe,{description:t.description})})]})]})]}),e.jsxs(M,{padding:"md",children:[e.jsx(E,{icon:le,title:l("projectInfo.section.package")}),e.jsxs("div",{className:"pd-fields-grid",children:[e.jsx(N,{label:l("gameSize"),children:e.jsx(se,{size:o.projectSize,limit:o.projectSizeLimit})}),!o.isUnity&&o.hasMainPackage?e.jsx(N,{label:l("gameMainPackageSize"),children:e.jsx(ce,{packages:o.packageList,limit:4})}):null,!o.isUnity&&o.independentPackages.length>0?e.jsx(N,{label:l("gameIndependentPackageSize"),wide:!0,children:e.jsx(ie,{packages:o.independentPackages})}):null]})]}),e.jsxs(M,{padding:"md",children:[e.jsx(E,{icon:ee,title:l("projectInfo.section.platform")}),e.jsxs("div",{className:"pd-platform-stack",children:[e.jsxs("div",{className:"pd-platform-subsection",children:[e.jsx("span",{className:"pd-subsection-label",children:l("gameTrustDomains")}),e.jsx(ne,{domains:o.domains})]}),e.jsxs("div",{className:"pd-platform-subsection",children:[e.jsx("span",{className:"pd-subsection-label",children:l("gameTermsAndPrivacy")}),e.jsxs("div",{className:"pd-terms-stack",children:[e.jsx(oe,{termsOfServiceLink:t.terms_of_service_link}),e.jsx(de,{privacyPolicyLink:t.privacy_policy_link})]})]})]})]})]})};export{ge as ProjectDetail};
|
|
1
|
+
import{r,c as Z,j as e,T as s,i as l,S as C,a as B,u as O,B as A,b,d as F,e as G,f as H,P as U,g as V,h as W}from"./index-CCKb9Y-j.js";import{S as E}from"./SectionHeader-B7dueBCf.js";import{C as M}from"./Card-ASGGlJ8S.js";var q=Object.defineProperty,_=Object.getOwnPropertySymbols,$=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,I=(t,a,i)=>a in t?q(t,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[a]=i,Y=(t,a)=>{for(var i in a||(a={}))$.call(a,i)&&I(t,i,a[i]);if(_)for(var i of _(a))K.call(a,i)&&I(t,i,a[i]);return t};function X(t){return r.createElement("svg",Y({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},t),r.createElement("rect",{width:200,height:200,fill:"transparent"}),r.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"}),r.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"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.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)"}),r.createElement("g",{clipPath:"url(#clip_failure_96_39_65)"},r.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)"})),r.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"}),r.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"}),r.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"}),r.createElement("mask",{id:"mask_failure_130_526","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:98,y:44,width:36,height:27},r.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"})),r.createElement("g",{mask:"url(#mask_failure_130_526)"},r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.createElement("mask",{id:"path-18-inside-1",fill:"white"},r.createElement("ellipse",{rx:2.97818,ry:2.97818,transform:"matrix(0.727696 0.6859 -0.685903 0.727693 128.435 60.0508)"})),r.createElement("ellipse",{rx:2.97818,ry:2.97818,transform:"matrix(0.727696 0.6859 -0.685903 0.727693 128.435 60.0508)",fill:"white"}),r.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)"})),r.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"}),r.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"}),r.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:""}),r.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:""}),r.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"}),r.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__"}),r.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"}),r.createElement("path",{d:"M126.02 142.7c-3.1-2.99-4.99-7.5-4.16-12.35",stroke:"#515151"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.createElement("defs",null,r.createElement("clipPath",{id:"clip_failure_96_39_65"},r.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 J=X;const Q=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],ee=Z("globe",Q);const re=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],te=Z("info",re);const ae=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],le=Z("package",ae),ie=({packages:t})=>e.jsx("div",{children:t.map(({name:a,size:i},c)=>{const n=(i/1024/1024).toFixed(2)+"MB",d=i<=4*1024*1024;return e.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"2px 8px",borderRadius:6,backgroundColor:d?"var(--tt-success-bg)":"var(--tt-error-bg)",marginBottom:c===t.length-1?0:8,width:"fit-content"},children:[e.jsxs(s.Text,{style:{fontWeight:600,fontSize:14},children:[a,":"]}),e.jsx(s.Text,{style:{color:d?"var(--tt-success-text)":"var(--tt-error-text)",fontWeight:600},children:n}),e.jsx(s.Text,{type:"tertiary",style:{marginLeft:8},children:d?l("notExceedIndependentPkgSizeLimit",{limit:"4MB"}):l("exceedIndependentPkgSizeLimit",{limit:"4MB"})})]},a)})}),se=({size:t,limit:a})=>{const i=(t/1024/1024).toFixed(2)+"MB",c=t<=a*1024*1024,n=c?l("notExceedSizeLimit",{limit:a+"MB"}):l("exceedSizeLimit",{limit:a+"MB"});return e.jsxs("div",{style:{display:"flex",alignItems:"center",width:"fit-content",padding:"2px 8px",borderRadius:6,backgroundColor:c?"var(--tt-success-bg)":"var(--tt-error-bg)"},children:[e.jsx(s.Text,{style:{fontWeight:600,color:c?"var(--tt-success-text)":"var(--tt-error-text)"},children:i}),e.jsx(s.Text,{type:"tertiary",style:{marginLeft:8},children:n})]})},ce=({packages:t,limit:a})=>{const i=t.find(m=>m.type==="main")?.size,c=(i/1024/1024).toFixed(2)+"MB",n=i<=a*1024*1024,d=n?l("notExceedMainPkgSizeLimit",{limit:a+"MB"}):l("exceedMainPkgSizeLimit",{limit:a+"MB"});return e.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"2px 8px",width:"fit-content",borderRadius:6,backgroundColor:n?"var(--tt-success-bg)":"var(--tt-error-bg)"},children:[e.jsx(s.Text,{style:{fontWeight:600,color:n?"var(--tt-success-text)":"var(--tt-error-text)"},children:c}),e.jsx(s.Text,{type:"tertiary",style:{marginLeft:8},children:d})]})},ne=({domains:t=[]})=>t?.length?e.jsx(C,{className:"trusted-domain-list",style:{flexWrap:"wrap"},children:t.map(a=>e.jsx(B,{className:"trusted-domain-tag",children:a},a))}):e.jsx("div",{className:"project-detail-warning",children:e.jsx(s.Text,{className:"project-detail-warning-text",children:l("trustDomainEmptyTip")})}),oe=({termsOfServiceLink:t})=>{const a=l("termsLabel");return t?e.jsxs("div",{className:"terms-privacy-item",children:[e.jsx(s.Text,{type:"tertiary",className:"terms-privacy-label",children:a}),e.jsx("a",{className:"terms-privacy-value",href:t,title:t,target:"_blank",rel:"noreferrer",children:t})]}):e.jsxs("div",{className:"terms-privacy-item",children:[e.jsx(s.Text,{type:"tertiary",className:"terms-privacy-label",children:a}),e.jsx("div",{className:"project-detail-warning",children:e.jsx(s.Text,{className:"project-detail-warning-text",children:l("termsOfServiceEmptyTip")})})]})},de=({privacyPolicyLink:t})=>{const a=l("privacyLabel");return t?e.jsxs("div",{className:"terms-privacy-item",children:[e.jsx(s.Text,{type:"tertiary",className:"terms-privacy-label",children:a}),e.jsx("a",{className:"terms-privacy-value",href:t,title:t,target:"_blank",rel:"noreferrer",children:t})]}):e.jsxs("div",{className:"terms-privacy-item",children:[e.jsx(s.Text,{type:"tertiary",className:"terms-privacy-label",children:a}),e.jsx("div",{className:"project-detail-warning",children:e.jsx(s.Text,{className:"project-detail-warning-text",children:l("privacyPolicyEmptyTip")})})]})},me=({logo:t,placeholder:a})=>{if(!t?.trim())return e.jsx("div",{className:"project-detail-warning",children:e.jsx(s.Text,{className:"project-detail-warning-text",children:l("gameIconEmptyTip")})});const[i,c]=r.useState(!1);return e.jsxs("div",{style:{width:100,height:100,borderRadius:4,overflow:"hidden",position:"relative",background:"var(--tt-bg-sunken)",display:"flex",alignItems:"center",justifyContent:"center"},children:[!i&&(a||e.jsx("div",{style:{width:"100%",height:"100%",background:"var(--tt-overlay-medium)",display:"flex",alignItems:"center",justifyContent:"center",color:"var(--tt-text-faint)",fontSize:14}})),e.jsx("img",{src:t,alt:"logo",style:{width:"100%",height:"100%",borderRadius:4,objectFit:"cover",position:"absolute",top:0,left:0,opacity:i?1:0,transition:"opacity 0.3s"},onLoad:()=>c(!0)})]})},pe=({description:t})=>t?e.jsx(s.Text,{style:{fontSize:14},children:t}):e.jsx("div",{className:"project-detail-warning",children:e.jsx(s.Text,{className:"project-detail-warning-text",children:l("gameDescEmptyTip")})}),he="https://bytedance.larkoffice.com/wiki/PeIawT4M4ia9R8kYyLMcjwHknOg",xe=({errorMsg:t,errorState:a="unknown"})=>{const i=O(),c=a==="notLoggedIn"||a==="loginExpired",n=a==="noPermission",d=c?"projectInfo.error.login.title":n?"projectInfo.error.permission.title":"projectInfo.error.general.title",m=c?"projectInfo.error.login.desc":n?"projectInfo.error.permission.desc":"projectInfo.error.general.desc",v=c?["projectInfo.error.login.stepLogin","projectInfo.error.login.stepRestart","projectInfo.error.login.stepProxy"]:n?["projectInfo.error.permission.stepCheckAccount","projectInfo.error.permission.stepApply","projectInfo.error.permission.stepRestart"]:["projectInfo.error.general.stepCheck","projectInfo.error.general.stepRetry"],f=()=>{window.open(he,"_blank","noopener,noreferrer")};return e.jsxs("div",{className:"error-display",children:[e.jsx(A,{className:"error-display-banner",type:"info",closeIcon:null,description:e.jsxs("div",{className:"error-display-banner-content",children:[e.jsx(s.Text,{strong:!0,children:l(d)}),e.jsx(s.Text,{children:l(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(J,{})}),e.jsxs("div",{className:"error-display-hero-copy",children:[e.jsx(s.Title,{heading:4,children:l("projectInfo.error.guideTitle")}),e.jsx(s.Paragraph,{className:"error-display-main-text",children:t})]})]}),e.jsxs("div",{className:"error-display-guide-grid",children:[e.jsxs("section",{className:"error-display-guide-card",children:[e.jsx(s.Text,{strong:!0,children:l("projectInfo.error.stepTitle")}),e.jsx("div",{className:"error-display-step-list",children:v.map((y,u)=>e.jsxs("div",{className:"error-display-step-item",children:[e.jsx("span",{className:"error-display-step-index",children:u+1}),e.jsx(s.Text,{children:l(y)})]},y))}),c?e.jsxs("div",{className:"error-display-command-list",children:[e.jsxs("div",{className:"error-display-command-item",children:[e.jsx(s.Text,{type:"tertiary",children:l("projectInfo.error.commandLogin")}),e.jsx("code",{children:"ttmg login"})]}),e.jsxs("div",{className:"error-display-command-item",children:[e.jsx(s.Text,{type:"tertiary",children:l("projectInfo.error.commandRestart")}),e.jsx("code",{children:"ttmg dev"})]}),e.jsxs("div",{className:"error-display-command-item",children:[e.jsx(s.Text,{type:"tertiary",children:l("projectInfo.error.commandProxy")}),e.jsx("code",{children:"ttmg config set proxy http://127.0.0.1:7890"}),e.jsx(s.Text,{type:"tertiary",className:"error-display-command-hint",children:l("projectInfo.error.commandProxyHint")})]})]}):null]}),e.jsxs("section",{className:"error-display-guide-card",children:[e.jsx(s.Text,{strong:!0,children:l("projectInfo.error.helpTitle")}),e.jsx(s.Paragraph,{className:"error-display-help-text",children:c?l("projectInfo.error.helpLoginDesc"):n?l("projectInfo.error.helpPermissionDesc"):l("projectInfo.error.helpGeneralDesc")}),c?e.jsxs("div",{className:"error-display-actions",children:[e.jsx(b,{theme:"light",onClick:()=>i("/basic_debug_guide"),children:l("basicDebugGuide.entryAction")}),e.jsx(b,{theme:"solid",type:"primary",onClick:f,children:l("projectInfo.error.openProxyDoc")})]}):null]})]})]})]})},N=({label:t,children:a,wide:i=!1})=>e.jsxs("div",{className:`pd-field ${i?"pd-field-wide":""}`,children:[e.jsx("span",{className:"pd-field-label",children:t}),e.jsx("div",{className:"pd-field-value",children:a})]}),k=({label:t,children:a})=>e.jsxs("div",{className:"pd-hero-row",children:[e.jsx("span",{className:"pd-hero-row-label",children:t}),e.jsx("div",{className:"pd-hero-row-value",children:a})]}),ge=()=>{const{state:{gameDetail:t,user:a,packages:i,engine:c},setGameDetail:n}=F(),[d,m]=r.useState(!0),[v,f]=r.useState(!1),[y,u]=r.useState(""),[T,P]=r.useState("unknown"),w=({errorCode:p,errorMsg:h,clientKey:j})=>{m(!1),f(!0),P(V({errorCode:p,user:a})),u(W({errorCode:p,errorMsg:h,clientKey:j,user:a}))};r.useEffect(()=>{if(t&&!t.has_error){m(!1);return}t?.has_error&&(f(!0),w({errorCode:t.error_code,errorMsg:t.error_msg,clientKey:t.client_key})),G({url:"/game/detail",method:"GET"}).then(p=>{if(p?.error)m(!1),w(p.error);else{const{data:h}=p;n(h),m(!1)}})},[]);const o=r.useMemo(()=>{if(!t||t?.has_error)return null;const{size:p,request_allowed_domains:h}=t,j=c==="unity",g=i?.length>0?i:t.packages??[],S=g.reduce((x,L)=>x+(L?.size??0),0)||p,R=j?60:30,D=g.filter(x=>x.type==="independent"),z=g.some(x=>x.type==="main");return{isUnity:j,packageList:g,projectSize:S,projectSizeLimit:R,independentPackages:D,hasMainPackage:z,domains:h}},[c,t,i]);return d&&!t?e.jsx("div",{className:"pd-loading",children:e.jsx(H,{size:"large"})}):v?e.jsx(xe,{errorMsg:y,errorState:T}):!t||!o?null:e.jsxs("div",{className:"pd-page",children:[e.jsx(U,{title:l("projectInfo"),subtitle:l("projectInfo.summary")}),e.jsxs(M,{padding:"md",children:[e.jsx(E,{icon:te,title:l("projectInfo.section.basic")}),e.jsxs("div",{className:"pd-hero",children:[e.jsx("div",{className:"pd-hero-logo",children:e.jsx(me,{logo:t.display_icon_url||""})}),e.jsxs("div",{className:"pd-hero-meta",children:[e.jsx(k,{label:l("gameName"),children:t.name?.trim()?e.jsx("span",{className:"pd-hero-name",children:t.name}):e.jsx("span",{className:"pd-warning-text",children:l("gameNameEmptyTip")})}),e.jsx(k,{label:l("gameID"),children:e.jsx("span",{className:"pd-hero-code",children:t.client_key||"-"})}),e.jsx(k,{label:l("gameDesc"),children:e.jsx(pe,{description:t.description})})]})]})]}),e.jsxs(M,{padding:"md",children:[e.jsx(E,{icon:le,title:l("projectInfo.section.package")}),e.jsxs("div",{className:"pd-fields-grid",children:[e.jsx(N,{label:l("gameSize"),children:e.jsx(se,{size:o.projectSize,limit:o.projectSizeLimit})}),!o.isUnity&&o.hasMainPackage?e.jsx(N,{label:l("gameMainPackageSize"),children:e.jsx(ce,{packages:o.packageList,limit:4})}):null,!o.isUnity&&o.independentPackages.length>0?e.jsx(N,{label:l("gameIndependentPackageSize"),wide:!0,children:e.jsx(ie,{packages:o.independentPackages})}):null]})]}),e.jsxs(M,{padding:"md",children:[e.jsx(E,{icon:ee,title:l("projectInfo.section.platform")}),e.jsxs("div",{className:"pd-platform-stack",children:[e.jsxs("div",{className:"pd-platform-subsection",children:[e.jsx("span",{className:"pd-subsection-label",children:l("gameTrustDomains")}),e.jsx(ne,{domains:o.domains})]}),e.jsxs("div",{className:"pd-platform-subsection",children:[e.jsx("span",{className:"pd-subsection-label",children:l("gameTermsAndPrivacy")}),e.jsxs("div",{className:"pd-terms-stack",children:[e.jsx(oe,{termsOfServiceLink:t.terms_of_service_link}),e.jsx(de,{privacyPolicyLink:t.privacy_policy_link})]})]})]})]})]})};export{ge as ProjectDetail};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{aa as p,r as l,u as h,d as v,l as u,g,i as t,j as e,A as w,q as x}from"./index-CCKb9Y-j.js";/* empty css */function b(a){return l.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},a),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 4c0-1.1.9-2 2-2h5a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4Zm0 11c0-1.1.9-2 2-2h5a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-5ZM15 2a2 2 0 0 0-2 2v5c0 1.1.9 2 2 2h5a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2h-5Zm1 12.5a1.5 1.5 0 0 1 3 0V16h1.5a1.5 1.5 0 0 1 0 3H19v1.5a1.5 1.5 0 0 1-3 0V19h-1.5a1.5 1.5 0 0 1 0-3H16v-1.5Z",fill:"currentColor"}))}const f=p(b,"customize"),D=()=>{const a=h(),{state:{user:i,gameDetail:n}}=v(),o=u(i),r=g({errorCode:n?.has_error?n.error_code:void 0,user:i})==="noPermission",s=!o||r,d=o?r?t("wasmSplit.disabled.noPermission"):"":t("wasmSplit.disabled.notLoggedIn"),m=()=>{s||a("/wasm_split")},c=e.jsxs("div",{className:w("wasm-code-split","tt-wasm-entry","tt-header-chip",{"tt-wasm-entry-disabled":s}),onClick:m,"aria-disabled":s,role:"button",tabIndex:s?-1:0,children:[e.jsx("span",{className:"tt-wasm-entry-icon",children:e.jsx(f,{size:"default"})}),e.jsx("span",{className:"wasm-code-split-text",children:t("wasmSplit")})]});return s?e.jsx(x,{content:()=>e.jsx("div",{className:"wasm-code-split-disabled-tip",children:d}),children:c}):c};export{D as WasmCodeSplit};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as
|
|
1
|
+
import{u as r,d as l,l as c,j as s,q as t,ca as i,i as o,T as n,b as d}from"./index-CCKb9Y-j.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{
|
|
1
|
+
import{ac as G,w as X,x as B,ad as z,ae as U,af as _,ag as Y,ah as q,ai as H,aj as J,ak as W,al as Z,am as Q,R as a,z as F,A as g,H as s,an as V,K as w,r as ee,a5 as te,_ as $,J as se,ao as ne}from"./index-CCKb9Y-j.js";const N={PREFIX:`${X}-dropdown`},O={POSITION_SET:G.POSITION_SET,TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_LEAVE_DELAY:100,ITEM_TYPE:["primary","secondary","tertiary","warning","danger"]},R={SPACING:4,NESTED_SPACING:2};class oe extends B{handleVisibleChange(e){this._adapter.setPopVisible(e),this._adapter.notifyVisibleChange(e);const{trigger:n}=this.getProps();if(e&&n==="click"){const t=this._adapter.getPopupId();this.setFocusToFirstMenuItem(t)}}getMenuItemNodes(e){const n=document.getElementById(e);return n?Array.from(n.getElementsByTagName("li")).filter(t=>t.ariaDisabled==="false"):null}setFocusToFirstMenuItem(e){const n=this.getMenuItemNodes(e);n&&z(n)}setFocusToLastMenuItem(e){const n=this.getMenuItemNodes(e);n&&U(n)}handleKeyDown(e){var n,t;const o=(t=(n=e.target)===null||n===void 0?void 0:n.attributes["data-popupid"])===null||t===void 0?void 0:t.value,{visible:r}=this._adapter.getStates();switch(e.key){case" ":case"Enter":e.target.click();break;case"ArrowDown":this.setFocusToFirstMenuItem(o),r&&_(e);break;case"ArrowUp":this.setFocusToLastMenuItem(o),r&&_(e);break}}}class re extends B{constructor(){super(...arguments),this.menuItemNodes=null,this.firstChars=[]}handleEscape(e){this._adapter.getContext("trigger")==="custom"&&(e&&Y(document.querySelectorAll("[data-popupid]"),e.id)).focus()}setFocusByFirstCharacter(e,n){const t=q(this.menuItemNodes,e,this.firstChars,n);t>=0&&H(this.menuItemNodes,this.menuItemNodes[t])}onMenuKeydown(e){const n=J(e.target,"tooltip");this.menuItemNodes||(this.menuItemNodes=[...e.target.parentNode.getElementsByTagName("li")].filter(o=>o.ariaDisabled!=="true")),this.firstChars.length===0&&this.menuItemNodes.forEach(o=>{var r;this.firstChars.push((r=o.textContent.trim()[0])===null||r===void 0?void 0:r.toLowerCase())});const t=this.menuItemNodes.find(o=>o.tabIndex===0);switch(e.key){case" ":case"Enter":e.target.click();break;case"Escape":this.handleEscape(n);break;case"ArrowUp":Q(this.menuItemNodes,t),_(e);break;case"ArrowDown":Z(this.menuItemNodes,t),_(e);break;default:W(e.key)&&this.setFocusByFirstCharacter(t,e.key);break}}}const E=a.createContext({level:0});var ae=function(i,e){var n={};for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&e.indexOf(t)<0&&(n[t]=i[t]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(i);o<t.length;o++)e.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(i,t[o])&&(n[t[o]]=i[t[o]]);return n};const ie=N.PREFIX;class M extends F{constructor(e){super(e),this.foundation=new re(this.adapter)}get adapter(){return Object.assign({},super.adapter)}render(){const e=this.props,{children:n,className:t,style:o}=e,r=ae(e,["children","className","style"]);return a.createElement("ul",Object.assign({role:"menu","aria-orientation":"vertical"},r,{className:g(`${ie}-menu`,t),style:o,onKeyDown:l=>this.foundation.onMenuKeydown(l)}),n)}}M.propTypes={children:s.node,className:s.string,style:s.object};M.contextType=E;const f=N.PREFIX;class x extends F{render(){const{children:e,disabled:n,className:t,forwardRef:o,style:r,type:l,active:u,icon:m,onKeyDown:I,showTick:v,hover:h}=this.props,{showTick:C}=this.context,d=C??v,P=g(t,{[`${f}-item`]:!0,[`${f}-item-disabled`]:n,[`${f}-item-hover`]:h,[`${f}-item-withTick`]:d,[`${f}-item-${l}`]:l,[`${f}-item-active`]:u}),y={};n||["onClick","onMouseEnter","onMouseLeave","onContextMenu"].forEach(p=>{this.context.level!==1&&p==="onClick"?y.onMouseDown=A=>{var j,D;A.button===0&&((D=(j=this.props)[p])===null||D===void 0||D.call(j,A))}:y[p]=this.props[p]});let b=null;switch(!0){case(d&&u):b=a.createElement(V,null);break;case(d&&!u):b=a.createElement(V,{style:{color:"transparent"}});break;default:b=null;break}let T=null;return m&&(T=a.createElement("div",{className:`${f}-item-icon`},m)),a.createElement("li",Object.assign({role:"menuitem",tabIndex:-1,"aria-disabled":n},y,{onKeyDown:I,ref:p=>o(p),className:P,style:r},this.getDataAttr(this.props)),b,T,e)}}x.propTypes={children:s.oneOfType([s.string,s.node]),name:s.string,disabled:s.bool,selected:s.bool,onClick:s.func,onMouseEnter:s.func,onMouseLeave:s.func,onContextMenu:s.func,className:s.string,style:s.object,forwardRef:s.func,type:s.oneOf(O.ITEM_TYPE),active:s.bool,icon:s.node};x.contextType=E;x.defaultProps={disabled:!1,divided:!1,selected:!1,onMouseEnter:w,onMouseLeave:w,forwardRef:w};x.elementType="Dropdown.Item";const le=N.PREFIX,K=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{style:e,className:n}=i;return a.createElement("div",{className:g(`${le}-divider`,n),style:e})};K.propTypes={style:s.object,className:s.string};const L=N.PREFIX;class S extends ee.PureComponent{render(){const{className:e,style:n,children:t}=this.props,{showTick:o}=this.context,r=g({[`${L}-title`]:!0,[`${L}-title-withTick`]:o},e);return a.createElement("div",{className:r,style:n},t)}}S.propTypes={children:s.node,className:s.string,style:s.object};S.contextType=E;var k=function(i,e){var n={};for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&e.indexOf(t)<0&&(n[t]=i[t]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(i);o<t.length;o++)e.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(i,t[o])&&(n[t[o]]=i[t[o]]);return n};const ce=O.POSITION_SET,ue=O.TRIGGER_SET;class c extends F{constructor(e){super(e),this.handleVisibleChange=n=>this.foundation.handleVisibleChange(n),this.state={popVisible:e.visible},this.foundation=new oe(this.adapter),this.tooltipRef=a.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPopVisible:e=>this.setState({popVisible:e}),notifyVisibleChange:e=>{var n,t;return(t=(n=this.props).onVisibleChange)===null||t===void 0?void 0:t.call(n,e)},getPopupId:()=>this.tooltipRef.current.getPopupId()})}renderContent(){const{render:e,menu:n,contentClassName:t,style:o,showTick:r,prefixCls:l,trigger:u}=this.props,m=g(l,t),{level:I=0}=this.context,v={showTick:r,level:I+1,trigger:u};let h=null;return a.isValidElement(e)?h=e:Array.isArray(n)&&(h=this.renderMenu()),a.createElement(E.Provider,{value:v},a.createElement("div",{className:m,style:o},a.createElement("div",{className:`${l}-content`,"x-semi-prop":"render"},h)))}renderMenu(){const{menu:e}=this.props,n=e.map((t,o)=>{switch(t.node){case"title":{const{name:r,node:l}=t,u=k(t,["name","node"]);return a.createElement(c.Title,Object.assign({},u,{key:l+r+o}),r)}case"item":{const{node:r,name:l}=t,u=k(t,["node","name"]);return a.createElement(c.Item,Object.assign({},u,{key:r+l+o}),l)}case"divider":return a.createElement(c.Divider,{key:t.node+o});default:return null}});return a.createElement(c.Menu,null,n)}renderPopCard(){const{render:e,contentClassName:n,style:t,showTick:o,prefixCls:r}=this.props,l=g(r,n),{level:u=0}=this.context,m={showTick:o,level:u+1};return a.createElement(E.Provider,{value:m},a.createElement("div",{className:l,style:t},a.createElement("div",{className:`${r}-content`},e)))}render(){const e=this.props,{children:n,position:t,trigger:o,onVisibleChange:r,zIndex:l,className:u,motion:m,margin:I,style:v,prefixCls:h}=e,C=k(e,["children","position","trigger","onVisibleChange","zIndex","className","motion","margin","style","prefixCls"]);let{spacing:d}=this.props;const{level:P}=this.context,{popVisible:y}=this.state,b=this.renderContent();return P>0?d=typeof d=="number"?d:R.NESTED_SPACING:(d===null||typeof d>"u")&&(d=R.SPACING),a.createElement(te,Object.assign({zIndex:l,motion:m,margin:I,content:b,className:u,prefixCls:h,spacing:d,position:t,trigger:o,onVisibleChange:this.handleVisibleChange,showArrow:!1,returnFocusOnClose:!0,ref:this.tooltipRef},C),a.isValidElement(n)?a.cloneElement(n,{className:g($(n,"props.className"),{[`${h}-showing`]:y}),"aria-haspopup":!0,"aria-expanded":y,onKeyDown:T=>{this.foundation.handleKeyDown(T);const p=$(n,"props.onKeyDown");p&&p(T)}}):n)}}c.Menu=M;c.Item=x;c.Divider=K;c.Title=S;c.contextType=E;c.propTypes={children:s.node,contentClassName:s.oneOfType([s.string,s.array]),className:s.string,getPopupContainer:s.func,margin:s.oneOfType([s.number,s.object]),mouseEnterDelay:s.number,mouseLeaveDelay:s.number,menu:s.array,motion:s.oneOfType([s.bool,s.func,s.object]),onVisibleChange:s.func,prefixCls:s.string,position:s.oneOf(ce),rePosKey:s.oneOfType([s.string,s.number]),render:s.node,spacing:s.oneOfType([s.number,s.object]),showTick:s.bool,style:s.object,trigger:s.oneOf(ue),visible:s.bool,zIndex:s.number};c.__SemiComponentName__="Dropdown";c.defaultProps=se(c.__SemiComponentName__,{onVisibleChange:w,prefixCls:N.PREFIX,zIndex:ne.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",position:"bottom",mouseLeaveDelay:O.DEFAULT_LEAVE_DELAY,showTick:!1,closeOnEsc:!0,onEscKeyDown:w});export{c as D};
|
|
@@ -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-CCKb9Y-j.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 as h,e as N,d as M,r as s,s as v,j as e,f as b,P as L,i as o,B as S,T as z,p as C}from"./index-
|
|
1
|
+
import{c as h,e as N,d as M,r as s,s as v,j as e,f as b,P as L,i as o,B as S,T as z,p as C}from"./index-CCKb9Y-j.js";import{S as E}from"./SectionHeader-B7dueBCf.js";import{C as f}from"./Card-ASGGlJ8S.js";import{T as x}from"./Tag-BsX0d6UL.js";import{S as I}from"./sparkles-Bv2GxrFr.js";const T=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],_=h("bug",T);const q=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],w=h("external-link",q);const B=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],H=h("wrench",B);function V(){return N({url:"/game/changelog",method:"GET"})}const A=[{key:"feature",icon:I,titleI18n:"changelogFeature",tone:"success"},{key:"optimize",icon:H,titleI18n:"changelogOptimize",tone:"warn"},{key:"bugfix",icon:_,titleI18n:"changelogBugfix",tone:"error"}],D=()=>{const{state:{devToolVersion:r}}=M(),d=C,[p,u]=s.useState([]),[j,l]=s.useState(!0),[c,m]=s.useState("");return s.useEffect(()=>{r&&v(r)},[r]),s.useEffect(()=>{let a=!1;return(async()=>{l(!0),m("");const n=await V();if(!a){if(n?.error||n?.code!==0||!n?.data){u([]),m(typeof n?.error=="object"&&n.error?.errorMsg||"Failed to load changelog."),l(!1);return}u(n.data.items||[]),l(!1)}})(),()=>{a=!0}},[]),j?e.jsx("div",{className:"change-log-container change-log-loading",children:e.jsx(b,{size:"large"})}):e.jsxs("div",{className:"change-log-container",children:[e.jsx(L,{title:o("changelog"),subtitle:o("changelogTip")}),c?e.jsx(S,{fullMode:!1,bordered:!1,closeIcon:null,type:"danger",description:c}):null,!c&&p.length===0?e.jsx(f,{padding:"lg",children:e.jsx(z.Paragraph,{className:"change-log-empty",children:"No changelog entries yet."})}):null,p.map(a=>e.jsxs(f,{padding:"md",className:"change-log-item",children:[e.jsxs("div",{className:"change-log-item-head",children:[e.jsx("h2",{className:"change-log-version",children:a.title}),e.jsxs(x,{tone:"neutral",size:"sm",children:["iOS ",a.target.iOS," · Android ",a.target.Android]})]}),A.map(({key:i,icon:n,titleI18n:k,tone:y})=>{const g=a.changes?.[i]||[];return g.length?e.jsxs("section",{className:"change-log-section",children:[e.jsx(E,{icon:n,title:e.jsxs("span",{className:"change-log-section-title",children:[e.jsx("span",{children:o(k)}),e.jsx(x,{tone:y,size:"sm",children:g.length})]})}),e.jsx("ul",{className:"change-log-changes",children:g.map(t=>e.jsxs("li",{className:"change-log-change",children:[e.jsx("span",{className:"change-log-change-bullet","aria-hidden":!0}),e.jsxs("span",{className:"change-log-change-body",children:[t.desc[d],t?.link?e.jsxs("a",{className:"change-log-change-link",href:t.link,target:"_blank",rel:"noopener noreferrer",children:[o("changelogLink"),e.jsx(w,{size:12,strokeWidth:2})]}):null]})]},t.desc[d]))})]},i):null})]},a.title))]})};export{D as ChangeLog};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e,T as o,i as c,m as s}from"./index-
|
|
1
|
+
import{j as e,T as o,i as c,m as s}from"./index-CCKb9Y-j.js";import{D as i}from"./index-bQUQ2Wmz.js";const t=[{node:"item",name:c("quickStart"),link:"https://bytedance.sg.larkoffice.com/docx/MarqdNvQLoihvjxN4rFllgjBgwb"},{node:"item",name:c("jsApiList"),link:"https://bytedance.larkoffice.com/wiki/GQscwDOQSiPxyjkbzyfckh2pnDg"},{node:"item",name:c("advancedGuide"),link:"https://bytedance.larkoffice.com/wiki/AGqRwu0qQiXZpVkkToUcRP99nwc"},{node:"item",name:c("faq"),link:"https://bytedance.larkoffice.com/wiki/O6aWwFhDBiEglwkcnJ4ccJpdnmb"}],d=()=>e.jsx(i,{trigger:"hover",position:"bottomRight",render:e.jsx(e.Fragment,{children:t.map(n=>e.jsx(i.Item,{onClick:()=>{window.open(n.link)},children:n.name},n.name))}),children:e.jsxs("div",{className:"access-docs tt-header-chip",role:"button",tabIndex:0,children:[e.jsx(o.Text,{className:"access-docs-text",type:"primary",children:c("docs")}),e.jsx(s,{className:"access-docs-icon"})]})});export{d as AccessDocs};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as o,u as r,j as e,P as c,i as a}from"./index-CCKb9Y-j.js";import{S as t}from"./SectionHeader-B7dueBCf.js";import{C as d,m,M as l,a as p,o as h}from"./MonetizationModeSummary-DLvyriLM.js";import"./index-DMsjcIN8.js";import{L as x}from"./layers-Biv61qtE.js";import{C as v}from"./chevron-right-B1WBZrrD.js";import{C as y}from"./compass-VJNhHwqW.js";import"./Card-ASGGlJ8S.js";import"./Tag-BsX0d6UL.js";const j=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],u=o("credit-card",j);const g=[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]],k=o("megaphone",g),N={iaa:k,iap:u,iaap:x},C=s=>a(s),L=()=>{const s=r();return e.jsxs("div",{className:"ia-page",children:[e.jsx(c,{title:a("ia.overview.title"),subtitle:a("ia.overview.desc")}),e.jsxs("section",{className:"ia-section ia-section-modes",children:[e.jsx(t,{icon:d,title:a("ia.monetization.title"),subtitle:a("ia.monetization.desc")}),e.jsx("div",{className:"ia-mode-grid",children:m.map(i=>{const n=N[i.key];return e.jsxs("button",{type:"button",className:`ia-mode-card ia-mode-card-${i.key}`,onClick:()=>s(`/integration_assistant/mode/${i.key}`),children:[e.jsxs("header",{className:"ia-mode-card-head",children:[e.jsx("span",{className:"ia-mode-card-badge","aria-hidden":"true",children:e.jsx(n,{size:17,strokeWidth:2})}),e.jsx("h4",{className:"ia-mode-card-title",children:C(i.titleKey)}),e.jsx("span",{className:"ia-mode-card-chevron","aria-hidden":"true",children:e.jsx(v,{size:14,strokeWidth:2})})]}),e.jsx(l,{mode:i,compact:!0})]},i.key)})})]}),e.jsxs("section",{className:"ia-section",children:[e.jsx(t,{icon:y,title:a("ia.overview.groups.title"),subtitle:a("ia.overview.groups.desc")}),e.jsx("div",{className:"ia-section-stack",children:e.jsx(p,{sections:h})})]})]})};export{L as IntegrationAssistant};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as a}from"./index-CCKb9Y-j.js";const e=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],c=a("layers",e);export{c as L};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a}from"./index-
|
|
1
|
+
import{c as a}from"./index-CCKb9Y-j.js";const e=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],l=a("sparkles",e);export{l as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a}from"./index-
|
|
1
|
+
import{c as a}from"./index-CCKb9Y-j.js";const o=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],e=a("zap",o);export{e as Z};
|
package/dist/public/index.html
CHANGED
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
rel="stylesheet"
|
|
13
13
|
/>
|
|
14
14
|
<title>TikTok Mini Games DevTool</title>
|
|
15
|
-
<script type="module" crossorigin src="/assets/index-
|
|
16
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
15
|
+
<script type="module" crossorigin src="/assets/index-CCKb9Y-j.js"></script>
|
|
16
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BJZ4gOGZ.css">
|
|
17
17
|
</head>
|
|
18
18
|
<!--
|
|
19
19
|
Theme attributes (`theme-mode` for Semi UI + `data-theme` for our
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as Ae,e as F,u as pe,d as Oe,r as n,i as a,j as e,q as ta,n as sa,T as l,C as Z,b as w,B as C,f as ia,o as we,Q as ra,N as $e,t as na,P as ca}from"./index-cC0QApVl.js";import{E as la}from"./index-8z6tNstf.js";import{S as le}from"./SectionHeader-DRXnax7L.js";import{C as W}from"./Card-C35olIke.js";import{T as da}from"./Tag-CgPHrk93.js";import{P as oa}from"./index-DCZsvwKh.js";import{F as M}from"./baseForm-C2Ms-wqt.js";import{c as ua}from"./index-CjInIkcE.js";import{A as pa}from"./arrow-left-CNdHGsDz.js";import{S as ga}from"./sparkles-C54nzN2M.js";import"./index-Dd2rc2_1.js";const ya=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],ma=Ae("book-open",ya);const ha=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]],xa=Ae("list-checks",ha);function fa(t={}){return F({url:"/game/direct-feed-card/list",method:"POST",data:t})}function ja(t={}){return F({url:"/game/direct-feed-card/scenarios",method:"POST",data:t})}function _a(t){return F({url:"/game/direct-feed-card/create",method:"POST",data:t})}function Pa(t){return F({url:"/game/direct-feed-card/asset-preview",method:"POST",data:t})}function ba(t){return F({url:"/game/direct-feed-card/status",method:"POST",data:t})}function va(t={}){return F({url:"/game/assets",method:"POST",data:t})}const Na="fyf_promotion_direct_feed_play",De="direct-play-debug",de="__create_direct_play_card__",oe="recover_stamina_dynamic",Sa=0,ee=1,Ca=2,U=String(Ca),Ta={cardName:"",cardDesc:"",cardType:U,scenario:oe,subPkg:"__GAME__",params:""};function T(t,c){if(typeof t=="string"&&t.trim())return t;if(t&&typeof t=="object"){const i=t;if(i.errorMsg)return i.errorMsg;if(i.StatusMessage)return i.StatusMessage;if(i.message)return i.message}return c}function Ia(t){return t?t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/1024/1024).toFixed(2)} MB`:"-"}function ka(t){return t?new Date(t*1e3).toLocaleString():"-"}function Ea(t){return t==="preview"?a("ia.directPlay.stage2.assetGroup.preview"):t==="live"?a("ia.directPlay.stage2.assetGroup.live"):a("ia.directPlay.stage2.assetGroup.review")}function wa(t){return{...t||$e,scene:Na}}function Da(t){return t.pkgType==="independent"?t.independentPkg||t.pkgName||a("independentPackage"):a("gameMainPackage")}function J(t){return!t||t==="__GAME__"?a("gameMainPackage"):t}function Ke(t){const c=String(t||"").trim();return c?c==="reward_issue_static"||c==="reward_issue_dynamic"?a("ia.directPlay.stage2.create.scenario.rewardIssue"):c==="recover_stamina_static"||c==="recover_stamina_dynamic"||c==="strength_recovery"?a("ia.directPlay.stage2.create.scenario.recoverStamina"):c==="unlock_level_static"||c==="unlock_level_dynamic"?a("ia.directPlay.stage2.create.scenario.unlockLevel"):c==="recall_scenario"?a("ia.directPlay.stage2.create.scenario.rewardIssue"):"":""}function R(t,c){if(!t)return"-";const i=Ke(t);return i||(c?.[t]?c[t]:t)}function Ma(t){const c=String(t||"").trim();if(c.endsWith("_static"))return 1;if(c.endsWith("_dynamic"))return 2}function Me(t,c){const i=Number(c),g=t.cardType===void 0?Ma(t.value):Number(t.cardType);return g===void 0||g===i}function Le(t,c){const i=new Set;return t.filter(g=>{const _=R(g.value,c);return i.has(_)?!1:(i.add(_),!0)})}function La(t){return t?Number(t.audit_status)===1?a("ia.directPlay.stage2.cardStatus.approved"):Number(t.audit_status)===0||Number(t.status)===0?a("ia.directPlay.stage2.cardStatus.pending"):"":""}function ue(t){return Number(t?.status)===ee}function Aa(t){return t?ue(t)?a("ia.directPlay.stage3.cardStatus.online"):a("ia.directPlay.stage3.cardStatus.notOnline"):"-"}function Oa(t,c){const i=t?.direct_feed_card||{},g=String(t?.content_id||i.content_id||"").trim();return g?{audit_status:Number(i.audit_status??1),status:Number(i.status??1),content_id:g,card_name:String(i.card_name||c.cardName),card_desc:String(i.card_desc||c.cardDesc),card_type:Number(i.card_type??c.cardType),scenario:String(i.scenario||c.scenario),sub_pkg:String(i.sub_pkg||c.subPkg),params:String(i.params||c.params||""),priority:i.priority===void 0?void 0:Number(i.priority)}:null}function X(){return[{value:oe,label:R(oe)}]}const $a=()=>{const t=pe(),{state:{selectedLaunchOption:c,gameDetail:i,launchOptions:g,packages:_},setLaunchOptions:d,setSelectedLaunchOption:p}=Oe(),[I,B]=n.useState([]),[k,L]=n.useState([]),[P,V]=n.useState("select"),[j,Q]=n.useState(""),[A,ge]=n.useState(""),[ye,Y]=n.useState(""),[me,he]=n.useState(""),[xe,G]=n.useState(""),[fe,ae]=n.useState(""),[je,te]=n.useState(""),[_e,z]=n.useState(""),[Pe,se]=n.useState(""),[be,ve]=n.useState(!0),[Re,Ne]=n.useState(!1),[Fe,Se]=n.useState(!1),[Ce,Te]=n.useState(!1),[Ie,ie]=n.useState(U),[O,ke]=n.useState(X),E=n.useRef(null),re=n.useMemo(()=>wa(c),[c]),y=n.useMemo(()=>({appId:i?.app_id,clientKey:i?.client_key,miniGameId:i?.app_id}),[i?.app_id,i?.client_key]),u=n.useMemo(()=>I.find(s=>s.content_id===j)||null,[I,j]),$=n.useMemo(()=>k.find(s=>s.asset_id===A)||null,[k,A]),N=n.useMemo(()=>O.reduce((s,r)=>(r?.value&&(s[r.value]=Ke(r.value)||(r.label&&r.label!==r.value?r.label:r.value)),s),{}),[O]),H=n.useMemo(()=>{const s=O.filter(o=>Me(o,Ie)),r=s.length>0?s:X();return Le(r,N).map(o=>({...o,label:R(o.value,N)}))},[Ie,N,O]),Ve=n.useMemo(()=>k.map(s=>({label:`${s.file_name||s.asset_id} · v${s.version||"-"}`,value:s.asset_id})),[k]),Ge=n.useMemo(()=>[{label:a("ia.directPlay.stage2.create.option"),value:de},...I.map(s=>({label:`${s.card_name} · ${R(s.scenario,N)} · ${J(s.sub_pkg)}`,value:s.content_id}))],[I,N]),qe=n.useMemo(()=>[{label:a("ia.directPlay.stage2.create.cardType.fixed"),value:"1"},{label:a("ia.directPlay.stage2.create.cardType.dynamic"),value:"2"}],[]),Ue=n.useMemo(()=>{const s=new Set(["__GAME__"]);return(_||[]).forEach(r=>{r?.type==="independent"&&r.name&&s.add(r.name)}),g.forEach(r=>{r.pkgType==="independent"&&r.independentPkg&&s.add(r.independentPkg)}),Array.from(s).map(r=>({label:J(r),value:r}))},[g,_]),Be=n.useMemo(()=>e.jsxs("span",{className:"integration-assistant-direct-play-label-with-info",children:[e.jsx("span",{children:a("ia.directPlay.stage2.create.cardType")}),e.jsx(ta,{position:"top",trigger:"hover",showArrow:!0,content:e.jsxs("div",{className:"integration-assistant-direct-play-info-popover",children:[e.jsx(l.Text,{children:a("ia.directPlay.stage2.create.cardType.dynamicDesc")}),e.jsx(l.Text,{children:a("ia.directPlay.stage2.create.cardType.fixedDesc")})]}),children:e.jsx("span",{className:"integration-assistant-direct-play-info-icon","aria-label":"card type info",children:e.jsx(sa,{})})})]}),[]),Qe=n.useCallback(s=>{const r=String(s||U);ie(r);const o=O.filter(h=>Me(h,r)),f=o.length>0?Le(o,N):X(),x=f[0]?.value,b=E.current?.getValue?.("scenario"),S=f.some(h=>h.value===b);E.current?.setValue?.("cardType",r),x&&!S&&E.current?.setValue?.("scenario",x)},[N,O]),D=n.useCallback(async s=>{ve(!0),he("");try{const[r,o,f]=await Promise.allSettled([fa({appId:y.appId,clientKey:y.clientKey}),va({appId:y.appId,miniGameId:y.miniGameId,clientKey:y.clientKey}),ja({appId:y.appId,clientKey:y.clientKey})]),x=r.status==="fulfilled"?r.value:null,b=o.status==="fulfilled"?o.value:null,S=f.status==="fulfilled"?f.value:null;if(r.status==="rejected"||x?.error||x?.code!==0||!x?.data)throw new Error(T(x?.error,a("ia.directPlay.stage2.loadCardsFailed")));if(o.status==="rejected"||b?.error||b?.code!==0||!b?.data)throw new Error(T(b?.error,a("ia.directPlay.stage2.loadAssetsFailed")));const h=x.data.cards||[],q=(b.data.preview_assets||[]).map(m=>({...m,group:"preview"}));B(h),L(q),S?.code===0&&S.data?.scenarios?.length?ke(S.data.scenarios):ke(m=>m.length>0?m:X()),Q(m=>{if(s?.contentId&&h.some(v=>v.content_id===s.contentId))return s.contentId;if(s?.cardName){const v=h.find(ce=>ce.card_name===s.cardName);if(v?.content_id)return v.content_id}return m&&h.some(v=>v.content_id===m)?m:h[0]?.content_id||""}),ge(m=>m&&q.some(v=>v.asset_id===m)?m:q[0]?.asset_id||"")}catch(r){he(T(r,a("ia.directPlay.stage2.loadResourcesFailed")))}finally{ve(!1)}},[y.appId,y.clientKey,y.miniGameId]);n.useEffect(()=>{D()},[D]),n.useEffect(()=>{z(""),se("")},[j]),n.useEffect(()=>{const s=H[0]?.value;if(!s)return;const r=E.current?.getValue?.("scenario");H.some(f=>f.value===r)||E.current?.setValue?.("scenario",s)},[H]);const Ye=n.useCallback(()=>{const s={...re,id:De,name:a("ia.directPlay.stage1.generatedModeName")},r=g.filter(x=>x.id!==De),o=r.findIndex(x=>x.id==="created"),f=o>=0?[...r.slice(0,o),s,...r.slice(o)]:[...r,s];d(f),p(s),t("/")},[g,t,d,p,re]),ze=n.useCallback(async()=>{try{const s=await E.current?.validate(),r=String(s?.cardName||"").trim(),o=String(s?.cardDesc||"").trim(),f=String(s?.scenario||"").trim(),x=String(s?.subPkg||"__GAME__").trim()||"__GAME__",b=String(s?.params||"").trim(),S=Number(s?.cardType||0);if(!r||!o||!f||!S)return;Se(!0),ae(""),te("");const h=await _a({appId:y.appId,clientKey:y.clientKey,directFeedCard:{cardName:r,cardDesc:o,cardType:S,scenario:f,subPkg:x,params:b||void 0}});if(h?.error||h?.code!==0)throw new Error(T(h?.error,a("ia.directPlay.stage2.create.failed")));const q=String(h?.data?.content_id||h?.data?.direct_feed_card?.content_id||""),m=Oa(h?.data,{cardName:r,cardDesc:o,cardType:S,scenario:f,subPkg:x,params:b});await D({contentId:q,cardName:r}),m&&(B(v=>{const ce=v.filter(aa=>aa.content_id!==m.content_id);return[m,...ce]}),Q(m.content_id)),V("select"),te(a("ia.directPlay.stage2.create.success")),G(""),Y(""),E.current?.reset?.(),ie(U)}catch(s){if(s?.name==="ValidateError")return;ae(T(s,a("ia.directPlay.stage2.create.failed")))}finally{Se(!1)}},[D,y.appId,y.clientKey]),He=n.useCallback(s=>{if(s===de){V("create"),Q(""),G(""),Y("");return}V("select"),Q(s||"")},[]),We=n.useCallback(async()=>{if(!u?.content_id){z(a("ia.directPlay.stage3.selectRequired"));return}const s=ue(u)?Sa:ee,r=s===ee?a("ia.directPlay.stage3.publishFailed"):a("ia.directPlay.stage3.offlineFailed");Te(!0),z(""),se("");try{const o=await ba({appId:y.appId,clientKey:y.clientKey,contentStatus:{[u.content_id]:s}});if(o?.error||o?.code!==0)throw new Error(T(o?.error,r));await D({contentId:u.content_id}),se(s===ee?a("ia.directPlay.stage3.publishSuccess"):a("ia.directPlay.stage3.offlineSuccess"))}catch(o){z(T(o,r))}finally{Te(!1)}},[D,y.appId,y.clientKey,u]),Je=n.useCallback(async()=>{if(!j||!A){G(a("ia.directPlay.stage2.selectRequired"));return}Ne(!0),G("");try{const s=await Pa({assetId:A,contentId:j});if(s?.error||s?.code!==0||!s?.data?.preview_url)throw new Error(T(s?.error,a("ia.directPlay.stage2.previewFailed")));Y(s.data.preview_url)}catch(s){Y(""),G(T(s,a("ia.directPlay.stage2.previewFailed")))}finally{Ne(!1)}},[A,j]),Xe=be||Ce,Ze=P==="select",ea=!!u?.content_id,ne=ue(u),Ee=Xe||!Ze||!ea;return e.jsxs("div",{className:"integration-assistant-direct-play-grid",children:[e.jsxs(Z,{className:"integration-assistant-direct-play-card",bordered:!0,children:[e.jsx("div",{className:"integration-assistant-section-head",children:e.jsxs("div",{children:[e.jsx(l.Title,{heading:5,children:a("ia.directPlay.stage1.title")}),e.jsx(l.Paragraph,{className:"integration-assistant-section-desc",children:a("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(l.Text,{strong:!0,children:a("ia.directPlay.stage1.modeName")}),e.jsx(l.Text,{children:a("ia.directPlay.stage1.modeValue")})]}),e.jsxs("div",{className:"integration-assistant-direct-play-row",children:[e.jsx(l.Text,{strong:!0,children:a("ia.directPlay.stage1.scene")}),e.jsx(l.Text,{children:a("scene_fyf_promotion_direct_feed_play")})]}),e.jsxs("div",{className:"integration-assistant-direct-play-row",children:[e.jsx(l.Text,{strong:!0,children:a("ia.directPlay.stage1.package")}),e.jsx(l.Text,{children:Da(re)})]})]}),e.jsx("div",{className:"integration-assistant-actions",children:e.jsx(w,{theme:"solid",onClick:Ye,children:a("ia.directPlay.stage1.createQr")})})]}),e.jsxs(Z,{className:"integration-assistant-direct-play-card",bordered:!0,children:[e.jsx(C,{className:"integration-assistant-direct-play-banner integration-assistant-direct-play-banner-top",fullMode:!1,bordered:!1,closeIcon:null,type:"info",description:a("ia.directPlay.stage2.banner")}),e.jsx("div",{className:"integration-assistant-section-head",children:e.jsxs("div",{className:"integration-assistant-direct-play-stage-head",children:[e.jsx(l.Title,{heading:5,children:a("ia.directPlay.stage2.title")}),e.jsx(l.Paragraph,{className:"integration-assistant-section-desc",children:a("ia.directPlay.stage2.desc")})]})}),e.jsx(C,{className:"integration-assistant-direct-play-banner integration-assistant-direct-play-banner-inline",fullMode:!1,bordered:!1,closeIcon:null,type:"warning",description:a("ia.directPlay.versionNotice")}),me?e.jsx(C,{className:"integration-assistant-direct-play-banner",fullMode:!1,bordered:!1,closeIcon:null,type:"danger",description:me}):null,xe?e.jsx(C,{className:"integration-assistant-direct-play-banner",fullMode:!1,bordered:!1,closeIcon:null,type:"danger",description:xe}):null,fe?e.jsx(C,{className:"integration-assistant-direct-play-banner",fullMode:!1,bordered:!1,closeIcon:null,type:"danger",description:fe}):null,je?e.jsx(C,{className:"integration-assistant-direct-play-banner",fullMode:!1,bordered:!1,closeIcon:null,type:"success",description:je}):null,be?e.jsx("div",{className:"integration-assistant-direct-play-loading",children:e.jsx(ia,{size:"large"})}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"integration-assistant-direct-play-form",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"integration-assistant-direct-play-field-head",children:[e.jsx(l.Text,{strong:!0,children:a("ia.directPlay.stage2.cardSelect")}),e.jsx(w,{theme:"borderless",onClick:()=>D(),children:a("ia.directPlay.stage2.refresh")})]}),e.jsx(we,{className:"integration-assistant-direct-play-select",value:P==="create"?de:j||void 0,optionList:Ge,onChange:s=>He(s),placeholder:a("ia.directPlay.stage2.cardSelect")})]}),P==="select"?e.jsxs("div",{children:[e.jsx(l.Text,{strong:!0,children:a("ia.directPlay.stage2.assetSelect")}),e.jsx(we,{className:"integration-assistant-direct-play-select",value:A||void 0,optionList:Ve,onChange:s=>ge(s),placeholder:a("ia.directPlay.stage2.assetSelect")})]}):null]}),P==="create"?e.jsx("div",{className:"integration-assistant-direct-play-create-wrap",children:e.jsxs("div",{className:"integration-assistant-direct-play-panel",children:[e.jsx(l.Text,{strong:!0,children:a("ia.directPlay.stage2.create.title")}),e.jsx(l.Paragraph,{className:"integration-assistant-section-desc",children:a("ia.directPlay.stage2.create.desc")}),e.jsx(M,{className:"integration-assistant-direct-play-create-form",initValues:Ta,getFormApi:s=>{E.current=s},onValueChange:s=>{if(ae(""),te(""),s&&typeof s=="object"&&"cardType"in s){const r=String(s.cardType||U);ie(r)}},children:e.jsxs("div",{className:"integration-assistant-direct-play-create-grid",children:[e.jsx(M.Input,{field:"cardName",label:a("ia.directPlay.stage2.create.cardName"),placeholder:a("ia.directPlay.stage2.create.cardNamePlaceholder"),rules:[{required:!0,message:a("notEmpty")}]}),e.jsx(M.Select,{field:"cardType",label:Be,optionList:qe,onChange:Qe,rules:[{required:!0,message:a("notEmpty")}]}),e.jsx(M.Input,{field:"cardDesc",label:a("ia.directPlay.stage2.create.cardDesc"),placeholder:a("ia.directPlay.stage2.create.cardDescPlaceholder"),rules:[{required:!0,message:a("notEmpty")}]}),e.jsx(M.Select,{field:"subPkg",label:a("ia.directPlay.stage2.create.subPkg"),optionList:Ue,rules:[{required:!0,message:a("notEmpty")}]}),e.jsx(M.Select,{field:"scenario",label:a("ia.directPlay.stage2.create.scenario"),optionList:H,rules:[{required:!0,message:a("notEmpty")}]}),e.jsx(M.Input,{field:"params",label:a("ia.directPlay.stage2.create.params"),placeholder:a("ia.directPlay.stage2.create.paramsPlaceholder")})]})}),e.jsx("div",{className:"integration-assistant-actions",children:e.jsx(w,{theme:"solid",type:"primary",loading:Fe,onClick:ze,children:a("ia.directPlay.stage2.create.submit")})})]})}):null,P==="select"?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"integration-assistant-direct-play-details",children:[e.jsxs("div",{className:"integration-assistant-direct-play-panel",children:[e.jsx(l.Text,{strong:!0,children:a("ia.directPlay.stage2.selectedCard")}),u?e.jsxs("ul",{className:"integration-assistant-detail-list",children:[e.jsx("li",{children:`${a("ia.directPlay.stage2.cardName")}${u.card_name}`}),e.jsx("li",{children:`${a("ia.directPlay.stage2.cardContentId")}${u.content_id||"-"}`}),e.jsx("li",{children:`${a("ia.directPlay.stage2.cardDesc")}${u.card_desc||"-"}`}),e.jsx("li",{children:`${a("ia.directPlay.stage2.cardScenario")}${R(u.scenario,N)}`}),e.jsx("li",{children:`${a("ia.directPlay.stage2.cardStatus")}${La(u)||"-"}`}),e.jsx("li",{children:`${a("ia.directPlay.stage2.cardPackage")}${J(u.sub_pkg)}`}),e.jsx("li",{children:`${a("ia.directPlay.stage2.cardQueries")}${u.params||"-"}`})]}):e.jsx(l.Paragraph,{className:"integration-assistant-section-desc",children:a("ia.directPlay.stage2.emptyCard")})]}),e.jsxs("div",{className:"integration-assistant-direct-play-panel",children:[e.jsx(l.Text,{strong:!0,children:a("ia.directPlay.stage2.selectedAsset")}),$?e.jsxs("ul",{className:"integration-assistant-detail-list",children:[e.jsx("li",{children:`${a("ia.directPlay.stage2.assetGroup")}${Ea($.group)}`}),e.jsx("li",{children:`${a("ia.directPlay.stage2.assetFile")}${$.file_name||"-"}`}),e.jsx("li",{children:`${a("ia.directPlay.stage2.assetVersion")}${$.version||"-"}`}),e.jsx("li",{children:`${a("ia.directPlay.stage2.assetSize")}${Ia($.file_size)}`}),e.jsx("li",{children:`${a("ia.directPlay.stage2.assetUploaded")}${ka($.uploaded_at)}`})]}):e.jsx(l.Paragraph,{className:"integration-assistant-section-desc",children:a("ia.directPlay.stage2.emptyAsset")})]})]}),e.jsx("div",{className:"integration-assistant-actions",children:e.jsx(w,{theme:"solid",loading:Re,onClick:Je,children:a("ia.directPlay.stage2.generate")})})]}):null,P==="select"&&ye?e.jsxs("div",{className:"integration-assistant-direct-play-preview",children:[e.jsx("div",{className:"integration-assistant-direct-play-qr",children:e.jsx(ra,{value:ye,size:180})}),e.jsx("div",{className:"integration-assistant-direct-play-preview-content",children:e.jsx(l.Text,{className:"integration-assistant-section-desc",children:a("ia.directPlay.stage2.qrDesc")})})]}):null]})]}),e.jsxs(Z,{className:"integration-assistant-direct-play-card integration-assistant-direct-play-card-wide",bordered:!0,children:[e.jsx(C,{className:"integration-assistant-direct-play-banner integration-assistant-direct-play-banner-top",fullMode:!1,bordered:!1,closeIcon:null,type:"warning",description:a("ia.directPlay.stage3.banner")}),e.jsx("div",{className:"integration-assistant-section-head",children:e.jsxs("div",{className:"integration-assistant-direct-play-stage-head",children:[e.jsx(l.Title,{heading:5,children:a("ia.directPlay.stage3.title")}),e.jsx(l.Paragraph,{className:"integration-assistant-section-desc",children:a("ia.directPlay.stage3.desc")})]})}),_e?e.jsx(C,{className:"integration-assistant-direct-play-banner",fullMode:!1,bordered:!1,closeIcon:null,type:"danger",description:_e}):null,Pe?e.jsx(C,{className:"integration-assistant-direct-play-banner",fullMode:!1,bordered:!1,closeIcon:null,type:"success",description:Pe}):null,e.jsxs("div",{className:"integration-assistant-direct-play-panel integration-assistant-direct-play-stage3-panel",children:[e.jsx(l.Text,{strong:!0,children:a("ia.directPlay.stage3.selectedCard")}),u?e.jsxs("ul",{className:"integration-assistant-detail-list",children:[e.jsx("li",{children:`${a("ia.directPlay.stage2.cardName")}${u.card_name}`}),e.jsx("li",{children:`${a("ia.directPlay.stage2.cardContentId")}${u.content_id||"-"}`}),e.jsx("li",{children:`${a("ia.directPlay.stage2.cardDesc")}${u.card_desc||"-"}`}),e.jsx("li",{children:`${a("ia.directPlay.stage2.cardScenario")}${R(u.scenario,N)}`}),e.jsx("li",{children:`${a("ia.directPlay.stage2.cardPackage")}${J(u.sub_pkg)}`}),e.jsx("li",{children:`${a("ia.directPlay.stage2.cardQueries")}${u.params||"-"}`}),e.jsx("li",{children:`${a("ia.directPlay.stage3.publishStatus")}${Aa(u)}`})]}):e.jsx(l.Paragraph,{className:"integration-assistant-section-desc",children:a("ia.directPlay.stage3.emptyCard")})]}),e.jsx("div",{className:"integration-assistant-actions",children:e.jsx(oa,{title:a(ne?"ia.directPlay.stage3.offlineConfirmTitle":"ia.directPlay.stage3.confirmTitle",{name:u?.card_name||"-",contentId:u?.content_id||"-"}),onConfirm:We,position:"topLeft",disabled:Ee,children:e.jsx(w,{theme:"solid",type:ne?"danger":"primary",loading:Ce,disabled:Ee,children:ne?a("ia.directPlay.stage3.offline"):a("ia.directPlay.stage3.publish")})})})]})]})},Ka={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 Ra(t,c){return{...t||$e,scene:c}}function Fa(t){return t.pkgType==="independent"?t.independentPkg||t.pkgName||a("independentPackage"):a("gameMainPackage")}const Va=({capabilityKey:t})=>{const c=pe(),{state:{selectedLaunchOption:i,launchOptions:g},setLaunchOptions:_,setSelectedLaunchOption:d}=Oe(),p=Ka[t],I=n.useMemo(()=>Ra(i,p.scene),[p.scene,i]),B=n.useCallback(()=>{const k={...I,id:p.modeId,name:a(p.generatedModeNameKey)},L=g.filter(j=>j.id!==p.modeId),P=L.findIndex(j=>j.id==="created"),V=P>=0?[...L.slice(0,P),k,...L.slice(P)]:[...L,k];_(V),d(k),c("/")},[p.generatedModeNameKey,p.modeId,g,c,I,_,d]);return e.jsx("div",{className:"integration-assistant-direct-play-grid",children:e.jsxs(Z,{className:"integration-assistant-direct-play-card",bordered:!0,children:[e.jsx("div",{className:"integration-assistant-section-head",children:e.jsxs("div",{children:[e.jsx(l.Title,{heading:5,children:a(p.titleKey)}),e.jsx(l.Paragraph,{className:"integration-assistant-section-desc",children:a(p.descKey)})]})}),e.jsxs("div",{className:"integration-assistant-direct-play-summary",children:[e.jsxs("div",{className:"integration-assistant-direct-play-row",children:[e.jsx(l.Text,{strong:!0,children:a("ia.revisit.panel.modeName")}),e.jsx(l.Text,{children:a(p.modeValueKey)})]}),e.jsxs("div",{className:"integration-assistant-direct-play-row",children:[e.jsx(l.Text,{strong:!0,children:a("ia.revisit.panel.scene")}),e.jsx(l.Text,{children:a(p.sceneKey)})]}),e.jsxs("div",{className:"integration-assistant-direct-play-row",children:[e.jsx(l.Text,{strong:!0,children:a("ia.revisit.panel.launchParams")}),e.jsx(l.Text,{children:`scene=${p.scene}`})]}),e.jsxs("div",{className:"integration-assistant-direct-play-row",children:[e.jsx(l.Text,{strong:!0,children:a("ia.revisit.panel.package")}),e.jsx(l.Text,{children:Fa(I)})]}),e.jsxs("div",{className:"integration-assistant-direct-play-row",children:[e.jsx(l.Text,{strong:!0,children:a("ia.revisit.panel.signal")}),e.jsx(l.Text,{children:a(p.signalValueKey)})]})]}),e.jsx("div",{className:"integration-assistant-actions",children:e.jsx(w,{theme:"solid",onClick:B,children:a(p.createQrKey)})})]})})},K=t=>a(t),Za=()=>{const t=pe(),{capabilityKey:c}=na(),i=c?ua[c]:void 0;n.useEffect(()=>{i?.customPath&&t(i.customPath,{replace:!0})},[i,t]);const g=i?.actions.filter(d=>d.labelKey==="ia.action.openCapabilityDoc")||[],_=d=>{if(d.type==="external"&&d.href){window.open(d.href,d.target||"_blank","noopener,noreferrer");return}d.type==="route"&&d.path&&t(d.path)};return!i||i.hidden?e.jsx("div",{className:"ia-page ia-page-detail",children:e.jsxs(W,{padding:"lg",children:[e.jsx(la,{description:a("ia.detail.notFound")}),e.jsx("div",{className:"ia-back-row",children:e.jsx(w,{onClick:()=>t("/integration_assistant"),children:a("ia.detail.backToMap")})})]})}):e.jsxs("div",{className:"ia-page ia-page-detail",children:[e.jsxs("button",{type:"button",className:"ia-back-link",onClick:()=>t("/integration_assistant"),children:[e.jsx(pa,{size:14,strokeWidth:2}),e.jsx("span",{children:a("ia.detail.backToMap")})]}),e.jsx(ca,{title:e.jsxs("span",{className:"ia-detail-title-row",children:[e.jsx("span",{className:"ia-detail-glyph","aria-hidden":"true",children:i.icon}),e.jsx("span",{children:K(i.titleKey)})]}),subtitle:K(i.summaryKey),action:g.length?e.jsx("div",{className:"ia-detail-actions",children:g.map(d=>e.jsx(w,{theme:d.theme||"solid",type:"primary",onClick:()=>_(d),children:K(d.labelKey)},`${d.type}:${d.path||d.href||d.labelKey}`))}):null}),i.apiTags.length?e.jsx("div",{className:"ia-detail-tags",children:i.apiTags.map(d=>e.jsx(da,{tone:"neutral",size:"sm",children:e.jsx("code",{className:"ia-detail-tag-code",children:d})},d))}):null,e.jsxs("div",{className:"ia-detail-grid",children:[e.jsxs(W,{padding:"md",children:[e.jsx(le,{icon:ma,title:a("ia.section.prerequisites"),as:"h3"}),e.jsx("ul",{className:"ia-detail-list",children:i.prerequisiteKeys.map(d=>e.jsxs("li",{className:"ia-detail-list-item",children:[e.jsx("span",{className:"ia-detail-list-bullet","aria-hidden":"true"}),e.jsx("span",{children:K(d)})]},d))})]}),e.jsxs(W,{padding:"md",children:[e.jsx(le,{icon:xa,title:a("ia.section.steps"),as:"h3"}),e.jsx("ol",{className:"ia-detail-steps",children:i.stepKeys.map((d,p)=>e.jsxs("li",{className:"ia-detail-step",children:[e.jsx("span",{className:"ia-detail-step-index",children:p+1}),e.jsx("span",{className:"ia-detail-step-text",children:K(d)})]},d))})]}),e.jsxs(W,{padding:"md",children:[e.jsx(le,{icon:ga,title:a("ia.section.tips"),as:"h3"}),e.jsx("ul",{className:"ia-detail-list",children:i.tipKeys.map(d=>e.jsxs("li",{className:"ia-detail-list-item",children:[e.jsx("span",{className:"ia-detail-list-bullet","aria-hidden":"true"}),e.jsx("span",{children:K(d)})]},d))})]})]}),i.key==="direct_play_card"?e.jsx($a,{}):null,i.key==="sidebar_revisit"||i.key==="shortcut_revisit"?e.jsx(Va,{capabilityKey:i.key}):null]})};export{Za as IntegrationAssistantDetail};
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as l,t as m,r as d,j as i,i as t,b as p,P as x}from"./index-cC0QApVl.js";import{E as j}from"./index-8z6tNstf.js";import{S as o}from"./SectionHeader-DRXnax7L.js";import{C as u}from"./Card-C35olIke.js";import{T as b}from"./Tag-CgPHrk93.js";import{b as y,f as g,C as r,M as f,c as h,a as v}from"./MonetizationModeSummary-D-zuX05a.js";import"./index-CjInIkcE.js";import{A as M}from"./arrow-left-CNdHGsDz.js";import{C}from"./compass-BUqxZo39.js";import"./chevron-right-CX-Bo3I2.js";const e=s=>t(s),R=()=>{const s=l(),{modeKey:n}=m(),a=n?y[n]:void 0,c=d.useMemo(()=>g,[]);return a?i.jsxs("div",{className:"ia-page ia-page-detail",children:[i.jsxs("button",{type:"button",className:"ia-back-link",onClick:()=>s("/integration_assistant"),children:[i.jsx(M,{size:14,strokeWidth:2}),i.jsx("span",{children:t("ia.detail.backToMap")})]}),i.jsx(x,{title:e(a.titleKey),subtitle:e(a.summaryKey),action:i.jsx(b,{tone:"accent",size:"md",children:e(a.titleKey)})}),i.jsxs("section",{className:"ia-section",children:[i.jsx(o,{icon:r,title:t("ia.monetization.core.title"),subtitle:e(a.descriptionKey)}),i.jsx(f,{mode:a,clickableTags:!0})]}),i.jsxs("section",{className:"ia-section",children:[i.jsx(o,{icon:r,title:t("ia.monetization.core.title")}),i.jsx(h,{capabilityKeys:a.capabilityKeys,capabilityRequirementMap:a.capabilityRequirementMap,columns:2})]}),i.jsxs("section",{className:"ia-section",children:[i.jsx(o,{icon:C,title:t("ia.overview.groups.title"),subtitle:t("ia.overview.groups.desc")}),i.jsx("div",{className:"ia-section-stack",children:i.jsx(v,{sections:c})})]})]}):i.jsx("div",{className:"ia-page ia-page-detail",children:i.jsxs(u,{padding:"lg",children:[i.jsx(j,{description:t("ia.detail.notFound")}),i.jsx("div",{className:"ia-back-row",children:i.jsx(p,{onClick:()=>s("/integration_assistant"),children:t("ia.detail.backToMap")})})]})})};export{R as IntegrationAssistantMonetizationMode};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as b,u as f,j as a,i as s,r as g,b as w}from"./index-cC0QApVl.js";import{S as z}from"./SectionHeader-DRXnax7L.js";import{C as k}from"./Card-C35olIke.js";import{c as v}from"./index-CjInIkcE.js";import{T as h}from"./Tag-CgPHrk93.js";import{C as j}from"./chevron-right-CX-Bo3I2.js";const q=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],N=b("chevron-down",q);const _=[["path",{d:"M13.744 17.736a6 6 0 1 1-7.48-7.48",key:"bq4yh3"}],["path",{d:"M15 6h1v4",key:"11y1tn"}],["path",{d:"m6.134 14.768.866-.5 2 3.464",key:"17snzx"}],["circle",{cx:"16",cy:"8",r:"6",key:"14bfc9"}]],F=b("coins",_);const M=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],$=b("layers",M),R=[{key:"iaa",titleKey:"ia.monetization.mode.iaa.title",summaryKey:"ia.monetization.mode.iaa.summary",descriptionKey:"ia.monetization.mode.iaa.desc",capabilityKeys:["login","authorize","ad"],capabilityRequirementMap:{login:"required",authorize:"optional",ad:"required"},supportCapabilityKeys:["network","sidebar_revisit","shortcut_revisit"],experimentalCapabilityKeys:["direct_play_card"]},{key:"iap",titleKey:"ia.monetization.mode.iap.title",summaryKey:"ia.monetization.mode.iap.summary",descriptionKey:"ia.monetization.mode.iap.desc",capabilityKeys:["login","authorize","payment"],capabilityRequirementMap:{login:"required",authorize:"optional",payment:"required"},supportCapabilityKeys:["network","sidebar_revisit","shortcut_revisit"],experimentalCapabilityKeys:["direct_play_card"]},{key:"iaap",titleKey:"ia.monetization.mode.iaap.title",summaryKey:"ia.monetization.mode.iaap.summary",descriptionKey:"ia.monetization.mode.iaap.desc",capabilityKeys:["login","authorize","ad","payment"],capabilityRequirementMap:{login:"required",authorize:"optional",ad:"required",payment:"required"},supportCapabilityKeys:["network","sidebar_revisit","shortcut_revisit"],experimentalCapabilityKeys:["direct_play_card"]}],G=R.reduce((e,r)=>(e[r.key]=r,e),{}),S=[{key:"growth",titleKey:"ia.overview.section.growth.title",descriptionKey:"ia.overview.section.growth.desc",capabilityKeys:["sidebar_revisit","shortcut_revisit","direct_play_card"],capabilityRequirementMap:{sidebar_revisit:"required",shortcut_revisit:"required",direct_play_card:"experimental"},sectionClassName:"integration-assistant-map-section-growth",gridClassName:"integration-assistant-map-section-grid-two",defaultCollapsed:!0},{key:"share",titleKey:"ia.overview.section.share.title",descriptionKey:"ia.overview.section.share.desc",capabilityKeys:["share_message","share_story"],capabilityRequirementMap:{share_message:"recommended"},sectionClassName:"integration-assistant-map-section-share",gridClassName:"integration-assistant-map-section-grid-two",defaultCollapsed:!0},{key:"foundation",titleKey:"ia.overview.section.foundation.title",descriptionKey:"ia.overview.section.foundation.desc",capabilityKeys:["ui_adaptation","subpackage","network"],capabilityRequirementMap:{ui_adaptation:"recommended",subpackage:"basic",network:"basic"},sectionClassName:"integration-assistant-map-section-foundation",gridClassName:"integration-assistant-map-section-grid-two",defaultCollapsed:!0}],O=[{key:"identity",titleKey:"ia.overview.section.identity.title",descriptionKey:"ia.overview.section.identity.desc",capabilityKeys:["login","authorize"],capabilityRequirementMap:{login:"required",authorize:"optional"},sectionClassName:"integration-assistant-map-section-identity",gridClassName:"integration-assistant-map-section-grid-two",defaultCollapsed:!0},{key:"monetization",titleKey:"ia.overview.section.monetization.title",descriptionKey:"ia.overview.section.monetization.desc",capabilityKeys:["payment","ad"],sectionClassName:"integration-assistant-map-section-monetization",gridClassName:"integration-assistant-map-section-grid-two",defaultCollapsed:!0},...S],x=e=>s(e),T=e=>e==="required"?s("ia.requirement.required"):e==="optional"?s("ia.requirement.optional"):e==="recommended"?s("ia.requirement.recommended"):e==="basic"?s("ia.requirement.basic"):s("ia.requirement.experimental"),L={required:"accent",recommended:"success",basic:"info",experimental:"warn",optional:"neutral"},E=({capabilityKeys:e,columns:r="auto",capabilityRequirementMap:d})=>{const p=f(),i=e.map(t=>v[t]).filter(t=>!t.hidden);if(!i.length)return null;const o=i.length===1?"ia-cap-grid-cols-1":`ia-cap-grid-cols-${r}`;return a.jsx("div",{className:`ia-cap-grid ${o}`,children:i.map(t=>{const n=d?.[t.key];return a.jsxs(k,{padding:"md",interactive:!0,onClick:()=>p(t.customPath||`/integration_assistant/${t.key}`),role:"button",tabIndex:0,className:"ia-cap-card",children:[a.jsxs("header",{className:"ia-cap-card-head",children:[a.jsx("span",{className:"ia-cap-card-glyph","aria-hidden":"true",children:t.icon}),a.jsx("div",{className:"ia-cap-card-titlewrap",children:a.jsxs("div",{className:"ia-cap-card-title-row",children:[a.jsx("h4",{className:"ia-cap-card-title",children:x(t.titleKey)}),n?a.jsx(h,{tone:L[n],size:"sm",children:T(n)}):null]})}),a.jsx("span",{className:"ia-cap-card-chevron","aria-hidden":"true",children:a.jsx(j,{size:14,strokeWidth:2})})]}),a.jsx("p",{className:"ia-cap-card-summary",children:x(t.summaryKey)}),t.apiTags.length?a.jsx("div",{className:"ia-cap-card-tags",children:t.apiTags.slice(0,2).map(c=>a.jsx(h,{tone:"neutral",size:"sm",children:a.jsx("code",{className:"ia-detail-tag-code",children:c})},c))}):null]},t.key)})})},C=e=>s(e),P=({sections:e})=>{const[r,d]=g.useState({}),p=g.useMemo(()=>e.map(i=>`${i.key}:${i.defaultCollapsed?1:0}:${i.collapsible===!1?0:1}`).join("|"),[e]);return g.useEffect(()=>{d(i=>e.reduce((o,t)=>(o[t.key]=i[t.key]??t.defaultCollapsed??!1,o),{}))},[p,e]),a.jsx(a.Fragment,{children:e.map(i=>{const o=i.capabilityKeys.map(l=>v[l]).filter(l=>!l.hidden);if(o.length===0)return null;const t=i.collapsible!==!1,n=t?r[i.key]:!1,c=!i.hideHeader,y=o.length===1?1:i.gridClassName.includes("two")?2:i.gridClassName.includes("growth")?3:"auto",m=()=>d(l=>({...l,[i.key]:!l[i.key]}));return a.jsxs(k,{padding:"md",className:"ia-section-card",children:[c?a.jsx(z,{icon:$,title:C(i.titleKey),subtitle:C(i.descriptionKey),action:t?a.jsx(w,{theme:"borderless",size:"small",onClick:m,icon:a.jsx(N,{size:14,strokeWidth:2,style:{transform:n?"rotate(-90deg)":"rotate(0deg)",transition:"transform 0.18s ease"}}),children:n?s("netDiagExpand"):s("netDiagCollapse")}):void 0}):null,n?null:a.jsx(E,{capabilityKeys:i.capabilityKeys,columns:y,capabilityRequirementMap:i.capabilityRequirementMap})]},i.key)})})},K=e=>s(e),J=({mode:e,compact:r=!1,clickableTags:d=!1})=>{const p=f(),i=e.capabilityKeys.filter(n=>e.capabilityRequirementMap[n]==="required"),o=e.capabilityKeys.filter(n=>e.capabilityRequirementMap[n]==="optional"),t=(n,c="neutral",y="solid")=>n.map(m=>{const l=K(v[m].titleKey);return d?a.jsx("button",{type:"button",className:"ia-mode-tag-button",onClick:()=>p(`/integration_assistant/${m}`),children:a.jsx(h,{tone:c,variant:y,size:"sm",children:l})},`${e.key}-${m}`):a.jsx(h,{tone:c,variant:y,size:"sm",children:l},`${e.key}-${m}`)});return a.jsxs("div",{className:`ia-mode-summary ${r?"ia-mode-summary-compact":""}`,children:[a.jsx("p",{className:"ia-mode-summary-text",children:K(e.summaryKey)}),a.jsxs("div",{className:"ia-mode-summary-list",children:[a.jsx(u,{label:s("ia.monetization.meta.required"),children:t(i,"accent")}),o.length?a.jsx(u,{label:s("ia.monetization.meta.optional"),children:t(o,"neutral","outline")}):null,e.supportCapabilityKeys.length?a.jsx(u,{label:s("ia.monetization.meta.support"),children:t(e.supportCapabilityKeys)}):null,e.experimentalCapabilityKeys.length?a.jsx(u,{label:s("ia.monetization.meta.experimental"),children:t(e.experimentalCapabilityKeys,"warn")}):null]})]})},u=({label:e,children:r})=>a.jsxs("div",{className:"ia-mode-summary-row",children:[a.jsx("span",{className:"ia-mode-summary-label",children:e}),a.jsx("div",{className:"ia-mode-summary-tags",children:r})]});export{F as C,$ as L,J as M,P as a,G as b,E as c,S as f,R as m,O as o};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|