Browse Source

fix: 裁剪去掉返回按钮

version/2.0.4
WIN-UGQIHHLSKBB\EDY 3 months ago
parent
commit
939081d64e
  1. 4
      dist/assets/index-0g1zo0LN.js
  2. 2
      dist/assets/index-0g1zo0LN.js.map
  3. 4
      dist/assets/index-1yZBYa5P.js
  4. 1
      dist/assets/index-1yZBYa5P.js.map
  5. 4
      dist/assets/index-B02RCqdn.js
  6. 1
      dist/assets/index-B02RCqdn.js.map
  7. 1
      dist/assets/index-BDC8KaRm.js.map
  8. 4
      dist/assets/index-BM9QAcCh.js
  9. 2
      dist/assets/index-BM9QAcCh.js.map
  10. 4
      dist/assets/index-BSJJRwck.js
  11. 2
      dist/assets/index-BSJJRwck.js.map
  12. 4
      dist/assets/index-BZANaSgq.js
  13. 1
      dist/assets/index-BZANaSgq.js.map
  14. 4
      dist/assets/index-Bj4q7EWv.js
  15. 1
      dist/assets/index-Bj4q7EWv.js.map
  16. 4
      dist/assets/index-BkZYQz86.js
  17. 1
      dist/assets/index-BkZYQz86.js.map
  18. 4
      dist/assets/index-CDuvQOUi.js
  19. 2
      dist/assets/index-CDuvQOUi.js.map
  20. 4
      dist/assets/index-CaB9Tp2z.js
  21. 2
      dist/assets/index-CaB9Tp2z.js.map
  22. 8
      dist/assets/index-CcS3ZJ2N.js
  23. 2
      dist/assets/index-CcS3ZJ2N.js.map
  24. 4
      dist/assets/index-CczrSKyj.js
  25. 2
      dist/assets/index-CczrSKyj.js.map
  26. 4
      dist/assets/index-CgCMSU56.js
  27. 2
      dist/assets/index-CgCMSU56.js.map
  28. 2
      dist/assets/index-CsBHCn_F.css
  29. 4
      dist/assets/index-DECeFNkj.js
  30. 2
      dist/assets/index-DECeFNkj.js.map
  31. 4
      dist/assets/index-DNjn-J4R.js
  32. 2
      dist/assets/index-DNjn-J4R.js.map
  33. 4
      dist/assets/index-DQVkVlCb.js
  34. 2
      dist/assets/index-DQVkVlCb.js.map
  35. 1
      dist/assets/index-DXdwagkg.js.map
  36. 4
      dist/assets/index-Dk6ALk06.js
  37. 2
      dist/assets/index-Dk6ALk06.js.map
  38. 1
      dist/assets/index-DrTYY_Is.js.map
  39. 4
      dist/assets/index-DrTeHAR1.js
  40. 2
      dist/assets/index-DrTeHAR1.js.map
  41. 4
      dist/assets/index-Fdvm4IPN.js
  42. 2
      dist/assets/index-Fdvm4IPN.js.map
  43. 1
      dist/assets/index-HRnSMO45.js.map
  44. 4
      dist/assets/index-HjlepRMm.js
  45. 2
      dist/assets/index-HjlepRMm.js.map
  46. 4
      dist/assets/index-Lh0BLoYQ.js
  47. 2
      dist/assets/index-Lh0BLoYQ.js.map
  48. 4
      dist/assets/index-YLy7nrYs.js
  49. 2
      dist/assets/index-YLy7nrYs.js.map
  50. 4
      dist/assets/index-cN-iJFCM.js
  51. 2
      dist/assets/index-cN-iJFCM.js.map
  52. 4
      dist/assets/index-fXtsv2My.js
  53. 2
      dist/assets/index-fXtsv2My.js.map
  54. 4
      dist/assets/index-i60yJLzt.js
  55. 2
      dist/assets/index-i60yJLzt.js.map
  56. 1
      dist/assets/index-l82-b93a.js.map
  57. 2
      dist/index.html
  58. BIN
      popiart-website-new.zip
  59. 6
      src/components/AvatarCropModal/index.scss
  60. 4
      src/components/AvatarCropModal/index.tsx

4
dist/assets/index-BfPEBKIl.js → dist/assets/index-0g1zo0LN.js

File diff suppressed because one or more lines are too long

2
dist/assets/index-BfPEBKIl.js.map → dist/assets/index-0g1zo0LN.js.map

File diff suppressed because one or more lines are too long

4
dist/assets/index-DXdwagkg.js → dist/assets/index-1yZBYa5P.js

File diff suppressed because one or more lines are too long

1
dist/assets/index-1yZBYa5P.js.map

File diff suppressed because one or more lines are too long

4
dist/assets/index-DrTYY_Is.js → dist/assets/index-B02RCqdn.js

File diff suppressed because one or more lines are too long

1
dist/assets/index-B02RCqdn.js.map

File diff suppressed because one or more lines are too long

1
dist/assets/index-BDC8KaRm.js.map

File diff suppressed because one or more lines are too long

4
dist/assets/index-Bp4wBagX.js → dist/assets/index-BM9QAcCh.js

@ -1,2 +1,2 @@
import{j as s}from"./markdown-vendor-DnN-_XEd.js";import{u as $,r as t}from"./data-vendor-DOiUz3Tw.js";import{g as q}from"./react-vendor-B8OyfHW2.js";import{bf as G,bg as U,o as V,f as H}from"./index-D1KhT7yD.js";import"./arco-vendor-Cm-ntj-q.js";const _=20,w=[{title:"image",assetType:"1"},{title:"video",assetType:"2"},{title:"template",assetType:"4"},{title:"character",assetType:"5"}];function R(o){const l=o;return l?.data?.list??l?.list??[]}function Y(o){const l=o?.id??o?.assetId;return l==null||l===""?null:String(l)}function W({tabIdPrefix:o}){const{t:l}=$(),[y,x]=q(),[r,S]=t.useState("1"),[m,f]=t.useState([]),[b,N]=t.useState(1),[g,c]=t.useState(!0),[u,j]=t.useState(!1),[v,F]=t.useState(!1),[h,C]=t.useState(null),I=t.useRef(null),P=t.useRef(!1),i=t.useRef(0),L=t.useRef(async()=>{});t.useEffect(()=>{const e=y.get("type");e!=null&&w.some(a=>a.assetType===e)&&S(e)},[y]);const k=t.useCallback(e=>({assetType:r,page:e,pageSize:_}),[r]),p=t.useCallback(e=>r==="5"?G({page:e,pageSize:_}):U(k(e)),[k,r]);t.useEffect(()=>{let e=!1;i.current+=1;const a=i.current;return N(1),c(!0),f([]),j(!0),C(null),p(1).then(n=>{if(e||i.current!==a)return;const d=R(n);f(d),c(d.length>=_)}).catch(n=>{e||i.current!==a||(C(n instanceof Error?n:new Error(String(n))),f([]),c(!1))}).finally(()=>{!e&&i.current===a&&j(!1)}),()=>{e=!0}},[p,r]);const T=t.useCallback(async()=>{if(!g||P.current||u||v)return;P.current=!0,F(!0);const e=i.current,a=b+1;try{const n=await p(a);if(i.current!==e)return;const d=R(n);d.length===0?c(!1):(f(O=>[...O,...d]),N(a),c(d.length>=_))}catch{i.current===e&&c(!1)}finally{P.current=!1,F(!1)}},[p,g,u,v,b]);L.current=T,t.useEffect(()=>{const e=I.current;if(!e||!g||u)return;const a=new IntersectionObserver(n=>{n[0]?.isIntersecting&&L.current()},{root:null,rootMargin:"200px",threshold:0});return a.observe(e),()=>a.disconnect()},[g,u,m.length]);const M=t.useCallback(e=>{S(e),x(a=>{const n=new URLSearchParams(a);return n.set("type",String(e)),n},{replace:!0})},[x]),E=t.useCallback(async e=>{const a=e.assetId;a!=null&&await V({assetId:a})},[]),A=t.useCallback(async e=>{H({id:e.id})},[]),D=t.useCallback(e=>{e.currentTarget.querySelector("video")?.play()},[]),z=t.useCallback(e=>{e.currentTarget.querySelector("video")?.pause()},[]);return s.jsxs("div",{className:"myFavoritePanel",children:[s.jsx("div",{className:"createPage__subRow myFavoritePanel__subRow",children:s.jsx("div",{className:"createPage__filters",role:"group","aria-label":l("pages.create.filtersAria"),"data-active-tab":r,children:w.map(({title:e,assetType:a})=>s.jsx("button",{type:"button","data-type":a,"data-selected":r===a,"aria-pressed":r===a,className:classNames("createPage__filterPill",r===a&&"createPage__filterPill_active"),onClick:()=>M(a),children:l(`pages.create.filters.${e}`)},a))})}),s.jsxs("section",{className:"createPage__panel createPage__panel_below_filters",id:`${o}-panel-favorite`,role:"tabpanel","aria-labelledby":`${o}-tab-favorite`,children:[u&&m.length===0?s.jsx("p",{className:"createPage__panelStatus",children:l("common.loading")}):null,h?s.jsx("p",{className:"createPage__panelStatus createPage__panelStatus_error",children:h.message}):null,!u&&!h&&m.length===0?s.jsx("p",{className:"createPage__panelPlaceholder",children:l("pages.create.panels.favorite.placeholder")}):null,m.length>0?s.jsxs(s.Fragment,{children:[s.jsx("ul",{className:"myFavoritePanel__list",role:"list",children:m.map(e=>{const a=Y(e)??`row-${r}`;return r=="2"?s.jsx("li",{className:"myFavoritePanel__item",onClick:()=>void E(e),onMouseEnter:D,onMouseLeave:z,children:s.jsx("video",{className:"myFavoritePanel__media",src:e.asset.video,muted:!0,playsInline:!0,loop:!0,preload:"metadata",poster:e.asset.cover,"aria-hidden":!0})},a):r=="1"||r=="4"?s.jsx("li",{className:"myFavoritePanel__item",onClick:()=>void E(e),children:s.jsx("img",{className:"myFavoritePanel__media",src:e?.asset?.images?.[0],alt:"",loading:"lazy"})},a):r=="5"?s.jsx("li",{className:"myFavoritePanel__item",onClick:()=>void A(e),children:s.jsx("img",{className:"myFavoritePanel__media",src:e.avatar,alt:"",loading:"lazy"})},a):s.jsx("li",{className:"myFavoritePanel__item myFavoritePanel__item_empty",children:s.jsx("span",{className:"myFavoritePanel__emptyLabel",children:l("pages.create.panels.favorite.noPreview")})},a)})}),g?s.jsx("div",{ref:I,className:"myFavoritePanel__sentinel","aria-hidden":!0}):null,v?s.jsx("p",{className:"createPage__panelStatus myFavoritePanel__loadMore",children:l("common.loading")}):null]}):null]})]})}export{W as default};
//# sourceMappingURL=index-Bp4wBagX.js.map
import{j as s}from"./markdown-vendor-DnN-_XEd.js";import{u as $,r as t}from"./data-vendor-DOiUz3Tw.js";import{g as q}from"./react-vendor-B8OyfHW2.js";import{bf as G,bg as U,o as V,f as H}from"./index-CcS3ZJ2N.js";import"./arco-vendor-Cm-ntj-q.js";const _=20,w=[{title:"image",assetType:"1"},{title:"video",assetType:"2"},{title:"template",assetType:"4"},{title:"character",assetType:"5"}];function R(o){const l=o;return l?.data?.list??l?.list??[]}function Y(o){const l=o?.id??o?.assetId;return l==null||l===""?null:String(l)}function W({tabIdPrefix:o}){const{t:l}=$(),[y,x]=q(),[r,S]=t.useState("1"),[m,f]=t.useState([]),[b,N]=t.useState(1),[g,c]=t.useState(!0),[u,j]=t.useState(!1),[v,F]=t.useState(!1),[h,C]=t.useState(null),I=t.useRef(null),P=t.useRef(!1),i=t.useRef(0),L=t.useRef(async()=>{});t.useEffect(()=>{const e=y.get("type");e!=null&&w.some(a=>a.assetType===e)&&S(e)},[y]);const k=t.useCallback(e=>({assetType:r,page:e,pageSize:_}),[r]),p=t.useCallback(e=>r==="5"?G({page:e,pageSize:_}):U(k(e)),[k,r]);t.useEffect(()=>{let e=!1;i.current+=1;const a=i.current;return N(1),c(!0),f([]),j(!0),C(null),p(1).then(n=>{if(e||i.current!==a)return;const d=R(n);f(d),c(d.length>=_)}).catch(n=>{e||i.current!==a||(C(n instanceof Error?n:new Error(String(n))),f([]),c(!1))}).finally(()=>{!e&&i.current===a&&j(!1)}),()=>{e=!0}},[p,r]);const T=t.useCallback(async()=>{if(!g||P.current||u||v)return;P.current=!0,F(!0);const e=i.current,a=b+1;try{const n=await p(a);if(i.current!==e)return;const d=R(n);d.length===0?c(!1):(f(O=>[...O,...d]),N(a),c(d.length>=_))}catch{i.current===e&&c(!1)}finally{P.current=!1,F(!1)}},[p,g,u,v,b]);L.current=T,t.useEffect(()=>{const e=I.current;if(!e||!g||u)return;const a=new IntersectionObserver(n=>{n[0]?.isIntersecting&&L.current()},{root:null,rootMargin:"200px",threshold:0});return a.observe(e),()=>a.disconnect()},[g,u,m.length]);const M=t.useCallback(e=>{S(e),x(a=>{const n=new URLSearchParams(a);return n.set("type",String(e)),n},{replace:!0})},[x]),E=t.useCallback(async e=>{const a=e.assetId;a!=null&&await V({assetId:a})},[]),A=t.useCallback(async e=>{H({id:e.id})},[]),D=t.useCallback(e=>{e.currentTarget.querySelector("video")?.play()},[]),z=t.useCallback(e=>{e.currentTarget.querySelector("video")?.pause()},[]);return s.jsxs("div",{className:"myFavoritePanel",children:[s.jsx("div",{className:"createPage__subRow myFavoritePanel__subRow",children:s.jsx("div",{className:"createPage__filters",role:"group","aria-label":l("pages.create.filtersAria"),"data-active-tab":r,children:w.map(({title:e,assetType:a})=>s.jsx("button",{type:"button","data-type":a,"data-selected":r===a,"aria-pressed":r===a,className:classNames("createPage__filterPill",r===a&&"createPage__filterPill_active"),onClick:()=>M(a),children:l(`pages.create.filters.${e}`)},a))})}),s.jsxs("section",{className:"createPage__panel createPage__panel_below_filters",id:`${o}-panel-favorite`,role:"tabpanel","aria-labelledby":`${o}-tab-favorite`,children:[u&&m.length===0?s.jsx("p",{className:"createPage__panelStatus",children:l("common.loading")}):null,h?s.jsx("p",{className:"createPage__panelStatus createPage__panelStatus_error",children:h.message}):null,!u&&!h&&m.length===0?s.jsx("p",{className:"createPage__panelPlaceholder",children:l("pages.create.panels.favorite.placeholder")}):null,m.length>0?s.jsxs(s.Fragment,{children:[s.jsx("ul",{className:"myFavoritePanel__list",role:"list",children:m.map(e=>{const a=Y(e)??`row-${r}`;return r=="2"?s.jsx("li",{className:"myFavoritePanel__item",onClick:()=>void E(e),onMouseEnter:D,onMouseLeave:z,children:s.jsx("video",{className:"myFavoritePanel__media",src:e.asset.video,muted:!0,playsInline:!0,loop:!0,preload:"metadata",poster:e.asset.cover,"aria-hidden":!0})},a):r=="1"||r=="4"?s.jsx("li",{className:"myFavoritePanel__item",onClick:()=>void E(e),children:s.jsx("img",{className:"myFavoritePanel__media",src:e?.asset?.images?.[0],alt:"",loading:"lazy"})},a):r=="5"?s.jsx("li",{className:"myFavoritePanel__item",onClick:()=>void A(e),children:s.jsx("img",{className:"myFavoritePanel__media",src:e.avatar,alt:"",loading:"lazy"})},a):s.jsx("li",{className:"myFavoritePanel__item myFavoritePanel__item_empty",children:s.jsx("span",{className:"myFavoritePanel__emptyLabel",children:l("pages.create.panels.favorite.noPreview")})},a)})}),g?s.jsx("div",{ref:I,className:"myFavoritePanel__sentinel","aria-hidden":!0}):null,v?s.jsx("p",{className:"createPage__panelStatus myFavoritePanel__loadMore",children:l("common.loading")}):null]}):null]})]})}export{W as default};
//# sourceMappingURL=index-BM9QAcCh.js.map

2
dist/assets/index-Bp4wBagX.js.map → dist/assets/index-BM9QAcCh.js.map

File diff suppressed because one or more lines are too long

4
dist/assets/index-B5FQDeGZ.js → dist/assets/index-BSJJRwck.js

File diff suppressed because one or more lines are too long

2
dist/assets/index-B5FQDeGZ.js.map → dist/assets/index-BSJJRwck.js.map

File diff suppressed because one or more lines are too long

4
dist/assets/index-l82-b93a.js → dist/assets/index-BZANaSgq.js

File diff suppressed because one or more lines are too long

1
dist/assets/index-BZANaSgq.js.map

File diff suppressed because one or more lines are too long

4
dist/assets/index-HRnSMO45.js → dist/assets/index-Bj4q7EWv.js

@ -1,2 +1,2 @@
import{j as t}from"./markdown-vendor-DnN-_XEd.js";import{u as H,r}from"./data-vendor-DOiUz3Tw.js";import{k as K,bc as Z}from"./index-D1KhT7yD.js";import{D as F}from"./arco-vendor-Cm-ntj-q.js";import"./react-vendor-B8OyfHW2.js";function D(u){const m=u;return m?.data?.list??m?.list??[]}const T=120;function $({onClose:u,onSelect:m,initialCategoryId:z=null}){const{t:n}=H(),N=r.useRef(null),S=r.useRef(null),[p,B]=r.useState(""),[f,O]=r.useState(""),[U,L]=r.useState([]),[h,I]=r.useState([]),[c,M]=r.useState(z),[w,_]=r.useState(!1),[C,v]=r.useState(1),[d,y]=r.useState(!0),[b,R]=r.useState(!1),k=r.useRef(!1),x=r.useRef(new Set);r.useEffect(()=>{const e=window.setTimeout(()=>{O(p.trim())},300);return()=>window.clearTimeout(e)},[p]),r.useEffect(()=>{let e=!1;return K().then(a=>{if(e)return;const i=D(a).sort((s,l)=>Number(s.sort??0)-Number(l.sort??0));I(i)}).catch(()=>{e||I([])}),()=>{e=!0}},[]);const g=r.useCallback((e,a)=>{if(a&&(k.current||x.current.has(e)))return;a?(k.current=!0,R(!0)):x.current.clear();let i=!1;const s={page:e,pageSize:T};return c!=null&&(s.categoryId=c),f&&(s.keyword=f),Z(s).then(l=>{if(i)return;const o=D(l);L(P=>{if(!a)return o;const q=new Set(P.map(j=>String(j.id??""))),A=o.filter(j=>!q.has(String(j.id??"")));return A.length===0?P:[...P,...A]}),v(e),y(o.length>=T),x.current.add(e)}).catch(()=>{!i&&!a&&L([]),y(!1)}).finally(()=>{i||a&&(k.current=!1,R(!1))}),()=>{i=!0}},[f,c]);r.useEffect(()=>(v(1),y(!0),g(1,!1)),[g]);const E=r.useCallback(()=>{b||!d||g(C+1,!0)},[g,d,b,C]);r.useEffect(()=>{if(!d)return;const e=S.current;if(!e)return;const a=e.parentElement;if(!a)return;const i=new IntersectionObserver(l=>{l.some(o=>o.isIntersecting)&&E()},{root:a,rootMargin:"240px 0px",threshold:0}),s=document.createElement("div");return s.style.height="1px",e.appendChild(s),i.observe(s),()=>{i.disconnect(),s.parentNode&&s.parentNode.removeChild(s)}},[d,E]);const G=r.useMemo(()=>{if(c==null)return n("pages.create.inspiration.materialLibrary.categoryAll");const e=h.find(a=>Number(a.id)===c);return String(e?.name??n("pages.create.inspiration.materialLibrary.categoryAll"))},[h,c,n]),V=e=>{m?.(e),u?.()};return t.jsx("div",{className:"materialPicker",children:t.jsxs("div",{className:"materialPicker__surface",children:[t.jsx("button",{type:"button",className:"materialPicker__close",onClick:()=>u?.(),"aria-label":n("dialog.common.closeAria"),children:t.jsx("img",{src:new URL("/assets/ic_close-C0Ltcj9g.png",import.meta.url).href,alt:""})}),t.jsxs("div",{className:"materialPicker__topBar",children:[t.jsx("h3",{className:"materialPicker__title",children:n("pages.create.inspiration.filters.characterAssets")}),t.jsxs("div",{className:"materialPicker__tools",children:[t.jsxs("label",{className:"materialPicker__search",children:[t.jsx("img",{className:"materialPicker__searchIcon",src:new URL("/assets/ic_search-DREI2NzL.png",import.meta.url).href,alt:""}),t.jsx("input",{className:"materialPicker__searchInput",type:"search",value:p,onChange:e=>{B(e.target.value)},placeholder:n("pages.characters.search_placeholder")})]}),t.jsx("div",{ref:N,children:t.jsx(F,{trigger:"click",position:"br",popupVisible:w,onVisibleChange:_,triggerProps:{style:{zIndex:3e3}},getPopupContainer:()=>N.current??document.body,droplist:t.jsxs("div",{className:"materialPicker__categoryDropdown",role:"menu","aria-label":n("pages.create.inspiration.materialLibrary.categoryLabel"),children:[t.jsx("button",{type:"button",className:c==null?"materialPicker__categoryItem materialPicker__categoryItem--active":"materialPicker__categoryItem",role:"menuitem",onClick:()=>{M(null),_(!1)},children:n("pages.create.inspiration.materialLibrary.categoryAll")}),h.map(e=>{const a=e.id,i=c===a;return t.jsx("button",{type:"button",className:i?"materialPicker__categoryItem materialPicker__categoryItem--active":"materialPicker__categoryItem",role:"menuitem",onClick:()=>{M(typeof a=="number"?a:null),_(!1)},children:String(e.name??e.id)},String(e.id))})]}),children:t.jsxs("button",{type:"button",className:"materialPicker__categoryButton","aria-expanded":w,"aria-haspopup":"menu",children:[t.jsx("span",{children:G}),t.jsx("img",{src:new URL("/assets/ic_arrow_right_gray-DM6GPP4g.png",import.meta.url).href,alt:""})]})})})]})]}),t.jsxs("div",{className:"materialPicker__grid",ref:S,children:[U.map((e,a)=>t.jsxs("button",{type:"button",className:"materialPicker__card",onClick:()=>{V(e)},children:[t.jsx("img",{className:"materialPicker__cardImage",src:String(e.url??e.icon??""),alt:String(e.name??"")}),t.jsx("span",{className:"materialPicker__useMask",children:n("pages.create.inspiration.materialLibrary.useMaterial")})]},String(e.id??a))),b?t.jsx("p",{className:"materialPicker__loadingMore",children:n("pages.explore.feed.loadingMore")}):null]})]})})}export{$ as default};
//# sourceMappingURL=index-HRnSMO45.js.map
import{j as t}from"./markdown-vendor-DnN-_XEd.js";import{u as H,r}from"./data-vendor-DOiUz3Tw.js";import{k as K,bc as Z}from"./index-CcS3ZJ2N.js";import{D as F}from"./arco-vendor-Cm-ntj-q.js";import"./react-vendor-B8OyfHW2.js";function D(u){const m=u;return m?.data?.list??m?.list??[]}const T=120;function $({onClose:u,onSelect:m,initialCategoryId:z=null}){const{t:n}=H(),N=r.useRef(null),S=r.useRef(null),[p,B]=r.useState(""),[f,O]=r.useState(""),[U,L]=r.useState([]),[h,I]=r.useState([]),[c,M]=r.useState(z),[w,_]=r.useState(!1),[C,v]=r.useState(1),[d,y]=r.useState(!0),[b,R]=r.useState(!1),k=r.useRef(!1),x=r.useRef(new Set);r.useEffect(()=>{const e=window.setTimeout(()=>{O(p.trim())},300);return()=>window.clearTimeout(e)},[p]),r.useEffect(()=>{let e=!1;return K().then(a=>{if(e)return;const i=D(a).sort((s,l)=>Number(s.sort??0)-Number(l.sort??0));I(i)}).catch(()=>{e||I([])}),()=>{e=!0}},[]);const g=r.useCallback((e,a)=>{if(a&&(k.current||x.current.has(e)))return;a?(k.current=!0,R(!0)):x.current.clear();let i=!1;const s={page:e,pageSize:T};return c!=null&&(s.categoryId=c),f&&(s.keyword=f),Z(s).then(l=>{if(i)return;const o=D(l);L(P=>{if(!a)return o;const q=new Set(P.map(j=>String(j.id??""))),A=o.filter(j=>!q.has(String(j.id??"")));return A.length===0?P:[...P,...A]}),v(e),y(o.length>=T),x.current.add(e)}).catch(()=>{!i&&!a&&L([]),y(!1)}).finally(()=>{i||a&&(k.current=!1,R(!1))}),()=>{i=!0}},[f,c]);r.useEffect(()=>(v(1),y(!0),g(1,!1)),[g]);const E=r.useCallback(()=>{b||!d||g(C+1,!0)},[g,d,b,C]);r.useEffect(()=>{if(!d)return;const e=S.current;if(!e)return;const a=e.parentElement;if(!a)return;const i=new IntersectionObserver(l=>{l.some(o=>o.isIntersecting)&&E()},{root:a,rootMargin:"240px 0px",threshold:0}),s=document.createElement("div");return s.style.height="1px",e.appendChild(s),i.observe(s),()=>{i.disconnect(),s.parentNode&&s.parentNode.removeChild(s)}},[d,E]);const G=r.useMemo(()=>{if(c==null)return n("pages.create.inspiration.materialLibrary.categoryAll");const e=h.find(a=>Number(a.id)===c);return String(e?.name??n("pages.create.inspiration.materialLibrary.categoryAll"))},[h,c,n]),V=e=>{m?.(e),u?.()};return t.jsx("div",{className:"materialPicker",children:t.jsxs("div",{className:"materialPicker__surface",children:[t.jsx("button",{type:"button",className:"materialPicker__close",onClick:()=>u?.(),"aria-label":n("dialog.common.closeAria"),children:t.jsx("img",{src:new URL("/assets/ic_close-C0Ltcj9g.png",import.meta.url).href,alt:""})}),t.jsxs("div",{className:"materialPicker__topBar",children:[t.jsx("h3",{className:"materialPicker__title",children:n("pages.create.inspiration.filters.characterAssets")}),t.jsxs("div",{className:"materialPicker__tools",children:[t.jsxs("label",{className:"materialPicker__search",children:[t.jsx("img",{className:"materialPicker__searchIcon",src:new URL("/assets/ic_search-DREI2NzL.png",import.meta.url).href,alt:""}),t.jsx("input",{className:"materialPicker__searchInput",type:"search",value:p,onChange:e=>{B(e.target.value)},placeholder:n("pages.characters.search_placeholder")})]}),t.jsx("div",{ref:N,children:t.jsx(F,{trigger:"click",position:"br",popupVisible:w,onVisibleChange:_,triggerProps:{style:{zIndex:3e3}},getPopupContainer:()=>N.current??document.body,droplist:t.jsxs("div",{className:"materialPicker__categoryDropdown",role:"menu","aria-label":n("pages.create.inspiration.materialLibrary.categoryLabel"),children:[t.jsx("button",{type:"button",className:c==null?"materialPicker__categoryItem materialPicker__categoryItem--active":"materialPicker__categoryItem",role:"menuitem",onClick:()=>{M(null),_(!1)},children:n("pages.create.inspiration.materialLibrary.categoryAll")}),h.map(e=>{const a=e.id,i=c===a;return t.jsx("button",{type:"button",className:i?"materialPicker__categoryItem materialPicker__categoryItem--active":"materialPicker__categoryItem",role:"menuitem",onClick:()=>{M(typeof a=="number"?a:null),_(!1)},children:String(e.name??e.id)},String(e.id))})]}),children:t.jsxs("button",{type:"button",className:"materialPicker__categoryButton","aria-expanded":w,"aria-haspopup":"menu",children:[t.jsx("span",{children:G}),t.jsx("img",{src:new URL("/assets/ic_arrow_right_gray-DM6GPP4g.png",import.meta.url).href,alt:""})]})})})]})]}),t.jsxs("div",{className:"materialPicker__grid",ref:S,children:[U.map((e,a)=>t.jsxs("button",{type:"button",className:"materialPicker__card",onClick:()=>{V(e)},children:[t.jsx("img",{className:"materialPicker__cardImage",src:String(e.url??e.icon??""),alt:String(e.name??"")}),t.jsx("span",{className:"materialPicker__useMask",children:n("pages.create.inspiration.materialLibrary.useMaterial")})]},String(e.id??a))),b?t.jsx("p",{className:"materialPicker__loadingMore",children:n("pages.explore.feed.loadingMore")}):null]})]})})}export{$ as default};
//# sourceMappingURL=index-Bj4q7EWv.js.map

1
dist/assets/index-Bj4q7EWv.js.map

File diff suppressed because one or more lines are too long

4
dist/assets/index-BDC8KaRm.js → dist/assets/index-BkZYQz86.js

File diff suppressed because one or more lines are too long

1
dist/assets/index-BkZYQz86.js.map

File diff suppressed because one or more lines are too long

4
dist/assets/index-BPh_Hf8m.js → dist/assets/index-CDuvQOUi.js

File diff suppressed because one or more lines are too long

2
dist/assets/index-BPh_Hf8m.js.map → dist/assets/index-CDuvQOUi.js.map

File diff suppressed because one or more lines are too long

4
dist/assets/index-4C3wSUVp.js → dist/assets/index-CaB9Tp2z.js

File diff suppressed because one or more lines are too long

2
dist/assets/index-4C3wSUVp.js.map → dist/assets/index-CaB9Tp2z.js.map

File diff suppressed because one or more lines are too long

8
dist/assets/index-D1KhT7yD.js → dist/assets/index-CcS3ZJ2N.js

File diff suppressed because one or more lines are too long

2
dist/assets/index-D1KhT7yD.js.map → dist/assets/index-CcS3ZJ2N.js.map

File diff suppressed because one or more lines are too long

4
dist/assets/index-DRMBLEuE.js → dist/assets/index-CczrSKyj.js

File diff suppressed because one or more lines are too long

2
dist/assets/index-DRMBLEuE.js.map → dist/assets/index-CczrSKyj.js.map

File diff suppressed because one or more lines are too long

4
dist/assets/index-IEI03ma5.js → dist/assets/index-CgCMSU56.js

File diff suppressed because one or more lines are too long

2
dist/assets/index-IEI03ma5.js.map → dist/assets/index-CgCMSU56.js.map

File diff suppressed because one or more lines are too long

2
dist/assets/index-wfiUM3sf.css → dist/assets/index-CsBHCn_F.css

File diff suppressed because one or more lines are too long

4
dist/assets/index-CtSs2gOo.js → dist/assets/index-DECeFNkj.js

@ -1,2 +1,2 @@
import{j as e}from"./markdown-vendor-DnN-_XEd.js";import{u as s,r as i}from"./data-vendor-DOiUz3Tw.js";import{g as l}from"./index-D1KhT7yD.js";import"./react-vendor-B8OyfHW2.js";import"./arco-vendor-Cm-ntj-q.js";function p({onClose:r}){const{t:c}=s(),[t,a]=i.useState("");return i.useEffect(()=>{l().then(o=>{a(o?.systemConfig?.serviceQrCode??"")}).catch(()=>{a("")})},[]),e.jsxs("div",{className:"contactServiceDialog",children:[e.jsx("button",{type:"button",className:"contactServiceDialog__close",onClick:()=>r?.(),"aria-label":c("dialog.common.closeAria"),children:e.jsx("img",{src:new URL("/assets/ic_close-C0Ltcj9g.png",import.meta.url).href,alt:""})}),e.jsx("h3",{className:"contactServiceDialog__title",children:c("contactService.title")}),e.jsx("p",{className:"contactServiceDialog__desc",children:c("contactService.description")}),t?e.jsx("div",{className:"contactServiceDialog__qrBlock",children:e.jsx("img",{className:"contactServiceDialog__qrImage",src:t,alt:c("contactService.qrAlt")})}):e.jsx("div",{className:"contactServiceDialog__qrPlaceholder","aria-hidden":!0}),e.jsx("p",{className:"contactServiceDialog__tip",children:c("contactService.tip")})]})}export{p as default};
//# sourceMappingURL=index-CtSs2gOo.js.map
import{j as e}from"./markdown-vendor-DnN-_XEd.js";import{u as s,r as i}from"./data-vendor-DOiUz3Tw.js";import{g as l}from"./index-CcS3ZJ2N.js";import"./react-vendor-B8OyfHW2.js";import"./arco-vendor-Cm-ntj-q.js";function p({onClose:r}){const{t:c}=s(),[t,a]=i.useState("");return i.useEffect(()=>{l().then(o=>{a(o?.systemConfig?.serviceQrCode??"")}).catch(()=>{a("")})},[]),e.jsxs("div",{className:"contactServiceDialog",children:[e.jsx("button",{type:"button",className:"contactServiceDialog__close",onClick:()=>r?.(),"aria-label":c("dialog.common.closeAria"),children:e.jsx("img",{src:new URL("/assets/ic_close-C0Ltcj9g.png",import.meta.url).href,alt:""})}),e.jsx("h3",{className:"contactServiceDialog__title",children:c("contactService.title")}),e.jsx("p",{className:"contactServiceDialog__desc",children:c("contactService.description")}),t?e.jsx("div",{className:"contactServiceDialog__qrBlock",children:e.jsx("img",{className:"contactServiceDialog__qrImage",src:t,alt:c("contactService.qrAlt")})}):e.jsx("div",{className:"contactServiceDialog__qrPlaceholder","aria-hidden":!0}),e.jsx("p",{className:"contactServiceDialog__tip",children:c("contactService.tip")})]})}export{p as default};
//# sourceMappingURL=index-DECeFNkj.js.map

2
dist/assets/index-CtSs2gOo.js.map → dist/assets/index-DECeFNkj.js.map

@ -1 +1 @@
{"version":3,"file":"index-CtSs2gOo.js","sources":["../../src/dialog/contact-service/index.tsx"],"sourcesContent":["import { useEffect, useState } from \"react\";\n\nimport { getParamConfig } from \"@/api/api\";\n\nimport \"./index.scss\";\nimport { useTranslation } from \"react-i18next\";\n\nexport interface ContactServiceDialogProps {\n onClose?: () => void;\n}\n\nexport default function ContactServiceDialog({ onClose }: ContactServiceDialogProps) {\n const { t } = useTranslation();\n const [serviceQrCode, setServiceQrCode] = useState(\"\");\n\n useEffect(() => {\n void getParamConfig()\n .then((res: any) => {\n setServiceQrCode(res?.systemConfig?.serviceQrCode ?? \"\");\n })\n .catch(() => {\n setServiceQrCode(\"\");\n });\n }, []);\n\n return (\n <div className=\"contactServiceDialog\">\n <button type=\"button\" className=\"contactServiceDialog__close\" onClick={() => onClose?.()} aria-label={t(\"dialog.common.closeAria\")}>\n <img src={new URL(\"/src/assets/images/ic_close.png\", import.meta.url).href} alt=\"\" />\n </button>\n\n <h3 className=\"contactServiceDialog__title\">{t(\"contactService.title\")}</h3>\n <p className=\"contactServiceDialog__desc\">{t(\"contactService.description\")}</p>\n {serviceQrCode ? (\n <div className=\"contactServiceDialog__qrBlock\">\n <img className=\"contactServiceDialog__qrImage\" src={serviceQrCode} alt={t(\"contactService.qrAlt\")} />\n </div>\n ) : (\n <div className=\"contactServiceDialog__qrPlaceholder\" aria-hidden />\n )}\n <p className=\"contactServiceDialog__tip\">{t(\"contactService.tip\")}</p>\n </div>\n );\n}\n"],"names":["ContactServiceDialog","onClose","t","useTranslation","serviceQrCode","setServiceQrCode","useState","useEffect","getParamConfig","res","jsxs","jsx"],"mappings":"oNAWA,SAAwBA,EAAqB,CAAE,QAAAC,GAAsC,CACnF,KAAM,CAAE,EAAAC,CAAA,EAAMC,EAAA,EACR,CAACC,EAAeC,CAAgB,EAAIC,EAAAA,SAAS,EAAE,EAErDC,OAAAA,EAAAA,UAAU,IAAM,CACTC,EAAA,EACF,KAAMC,GAAa,CAClBJ,EAAiBI,GAAK,cAAc,eAAiB,EAAE,CACzD,CAAC,EACA,MAAM,IAAM,CACXJ,EAAiB,EAAE,CACrB,CAAC,CACL,EAAG,CAAA,CAAE,EAGHK,EAAAA,KAAC,MAAA,CAAI,UAAU,uBACb,SAAA,CAAAC,EAAAA,IAAC,SAAA,CAAO,KAAK,SAAS,UAAU,8BAA8B,QAAS,IAAMV,IAAA,EAAa,aAAYC,EAAE,yBAAyB,EAC/H,SAAAS,EAAAA,IAAC,MAAA,CAAI,IAAK,IAAA,IAAA,gCAAA,YAAA,GAAA,EAA4D,KAAM,IAAI,EAAA,CAAG,CAAA,CACrF,QAEC,KAAA,CAAG,UAAU,8BAA+B,SAAAT,EAAE,sBAAsB,EAAE,QACtE,IAAA,CAAE,UAAU,6BAA8B,SAAAA,EAAE,4BAA4B,EAAE,EAC1EE,QACE,MAAA,CAAI,UAAU,gCACb,SAAAO,EAAAA,IAAC,MAAA,CAAI,UAAU,gCAAgC,IAAKP,EAAe,IAAKF,EAAE,sBAAsB,EAAG,CAAA,CACrG,QAEC,MAAA,CAAI,UAAU,sCAAsC,cAAW,EAAA,CAAC,QAElE,IAAA,CAAE,UAAU,4BAA6B,SAAAA,EAAE,oBAAoB,CAAA,CAAE,CAAA,EACpE,CAEJ"}
{"version":3,"file":"index-DECeFNkj.js","sources":["../../src/dialog/contact-service/index.tsx"],"sourcesContent":["import { useEffect, useState } from \"react\";\n\nimport { getParamConfig } from \"@/api/api\";\n\nimport \"./index.scss\";\nimport { useTranslation } from \"react-i18next\";\n\nexport interface ContactServiceDialogProps {\n onClose?: () => void;\n}\n\nexport default function ContactServiceDialog({ onClose }: ContactServiceDialogProps) {\n const { t } = useTranslation();\n const [serviceQrCode, setServiceQrCode] = useState(\"\");\n\n useEffect(() => {\n void getParamConfig()\n .then((res: any) => {\n setServiceQrCode(res?.systemConfig?.serviceQrCode ?? \"\");\n })\n .catch(() => {\n setServiceQrCode(\"\");\n });\n }, []);\n\n return (\n <div className=\"contactServiceDialog\">\n <button type=\"button\" className=\"contactServiceDialog__close\" onClick={() => onClose?.()} aria-label={t(\"dialog.common.closeAria\")}>\n <img src={new URL(\"/src/assets/images/ic_close.png\", import.meta.url).href} alt=\"\" />\n </button>\n\n <h3 className=\"contactServiceDialog__title\">{t(\"contactService.title\")}</h3>\n <p className=\"contactServiceDialog__desc\">{t(\"contactService.description\")}</p>\n {serviceQrCode ? (\n <div className=\"contactServiceDialog__qrBlock\">\n <img className=\"contactServiceDialog__qrImage\" src={serviceQrCode} alt={t(\"contactService.qrAlt\")} />\n </div>\n ) : (\n <div className=\"contactServiceDialog__qrPlaceholder\" aria-hidden />\n )}\n <p className=\"contactServiceDialog__tip\">{t(\"contactService.tip\")}</p>\n </div>\n );\n}\n"],"names":["ContactServiceDialog","onClose","t","useTranslation","serviceQrCode","setServiceQrCode","useState","useEffect","getParamConfig","res","jsxs","jsx"],"mappings":"oNAWA,SAAwBA,EAAqB,CAAE,QAAAC,GAAsC,CACnF,KAAM,CAAE,EAAAC,CAAA,EAAMC,EAAA,EACR,CAACC,EAAeC,CAAgB,EAAIC,EAAAA,SAAS,EAAE,EAErDC,OAAAA,EAAAA,UAAU,IAAM,CACTC,EAAA,EACF,KAAMC,GAAa,CAClBJ,EAAiBI,GAAK,cAAc,eAAiB,EAAE,CACzD,CAAC,EACA,MAAM,IAAM,CACXJ,EAAiB,EAAE,CACrB,CAAC,CACL,EAAG,CAAA,CAAE,EAGHK,EAAAA,KAAC,MAAA,CAAI,UAAU,uBACb,SAAA,CAAAC,EAAAA,IAAC,SAAA,CAAO,KAAK,SAAS,UAAU,8BAA8B,QAAS,IAAMV,IAAA,EAAa,aAAYC,EAAE,yBAAyB,EAC/H,SAAAS,EAAAA,IAAC,MAAA,CAAI,IAAK,IAAA,IAAA,gCAAA,YAAA,GAAA,EAA4D,KAAM,IAAI,EAAA,CAAG,CAAA,CACrF,QAEC,KAAA,CAAG,UAAU,8BAA+B,SAAAT,EAAE,sBAAsB,EAAE,QACtE,IAAA,CAAE,UAAU,6BAA8B,SAAAA,EAAE,4BAA4B,EAAE,EAC1EE,QACE,MAAA,CAAI,UAAU,gCACb,SAAAO,EAAAA,IAAC,MAAA,CAAI,UAAU,gCAAgC,IAAKP,EAAe,IAAKF,EAAE,sBAAsB,EAAG,CAAA,CACrG,QAEC,MAAA,CAAI,UAAU,sCAAsC,cAAW,EAAA,CAAC,QAElE,IAAA,CAAE,UAAU,4BAA6B,SAAAA,EAAE,oBAAoB,CAAA,CAAE,CAAA,EACpE,CAEJ"}

4
dist/assets/index-4XTmEVjY.js → dist/assets/index-DNjn-J4R.js

@ -1,2 +1,2 @@
import{j as e}from"./markdown-vendor-DnN-_XEd.js";import{u as A,r}from"./data-vendor-DOiUz3Tw.js";import{h as x,aW as f,g as v,bz as j,aY as N}from"./index-D1KhT7yD.js";import{M as y}from"./arco-vendor-Cm-ntj-q.js";import"./react-vendor-B8OyfHW2.js";function w({title:h}){const{t:a}=A(),o=x(),i=f(s=>s.user),[d,l]=r.useState(""),[g,p]=r.useState([]),[n,c]=r.useState(null);r.useEffect(()=>{let s=!1;return(async()=>{try{const t=await v();s||l(t.systemConfig.servicePhone??"")}catch{s||l("")}})(),()=>{s=!0}},[]),r.useEffect(()=>{let s=!1;return(async()=>{try{const{data:t}=await j(),_=Array.isArray(t)?t:t?.data??[];s||(p(_),c(_[0]??null))}catch{s||(p([]),c(null))}})(),()=>{s=!0}},[]);const m=r.useCallback(async()=>{await o(i?.id)},[o,i?.id]),u=r.useCallback(()=>{if(!n){y.warning(a("points_recharge.select_option_first"));return}N({type:"points",plan:n})},[n,a]);return e.jsxs("div",{className:"points_recharge_panel",children:[e.jsx("div",{className:"points_recharge_title",children:h??a("points_recharge.title")}),e.jsxs("div",{className:"points_recharge_balance_card",children:[e.jsx("img",{className:"points_recharge_avatar",src:String(i?.avatar??""),alt:""}),e.jsxs("div",{className:"points_recharge_user",children:[e.jsx("div",{className:"points_recharge_user_name",children:String(i?.name??"")}),e.jsxs("div",{className:"points_recharge_user_id_row",children:[e.jsxs("div",{className:"points_recharge_user_id",children:["ID:",String(i?.id??"")]}),e.jsx("button",{type:"button",className:"points_recharge_id_copy",onClick:()=>void m(),"aria-label":"copy id",children:e.jsx("img",{className:"points_recharge_id_copy_icon",src:new URL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAACXBIWXMAAAsTAAALEwEAmpwYAAABWUlEQVRYhe3YsS8DURzA8U8FiYSGxGCRzkwYROwWU0mMwtQY+5dgbgi7wcR/YDUYLDWIwSQiBoNKa+g1qtreta5VyX2Tl/fu3e/37nuXd5f3LlWpVAwSQ38t0EgiFMbACQ036ywUCvWH4yhiJuZrZ3K53EMkoQamA5kSHmMQSWMKk+hKqMYtFmIQyuOg1cn/MYdwjsWGmHncRxy3iC28xCWUbdI3gkzEcTO4wBre4hCC1w4E6rnBLFZxpnpzpTiEKrp45CgH9RPWcYydYLxQejmps3jGNvajJvVS6BITQTuPvShJvRC6Duq06otQYyVKci+ENpGqKxudJA/chzERCiMRCiMRCqOTBdpvWcahr2VNU/opNBeUGk1XAP0UusJR0H5XXcT9oJ9CdzgNC2onNIrdGESWOgluJzSGk9+5fOMjSlAroYzqvikuyiJuEFLJ75gQEqEwBk7oE5CnMiGC6jI6AAAAAElFTkSuQmCC",import.meta.url).href,alt:""})})]})]}),e.jsxs("div",{className:"points_recharge_balance_right",children:[e.jsx("div",{className:"points_recharge_balance_amount",children:String(i?.allCoins??"")}),e.jsx("div",{className:"points_recharge_balance_label",children:a("points_recharge.balance_label")})]})]}),e.jsx("div",{className:"points_recharge_options_grid",children:g.map(s=>e.jsxs("div",{className:["points_recharge_option_card",s.id===n?.id?"selected":""].filter(Boolean).join(" "),onClick:()=>c(s),children:[e.jsxs("div",{className:"points_recharge_option_top",children:[e.jsx("img",{className:"points_recharge_option_star",src:new URL("/assets/ic_stars_active-qa63FBqE.png",import.meta.url).href,alt:""}),e.jsx("div",{className:"points_recharge_option_amount",children:s.points_amount})]}),e.jsxs("div",{className:"points_recharge_option_price",children:["¥",s.price_amount]})]},s.id))}),e.jsxs("p",{className:"points_recharge_tip",children:[a("points_recharge.tip_prefix"),d,a("points_recharge.tip_middle"),e.jsx("a",{className:"points_recharge_tip_link",href:"/content/userTerms",target:"_blank",rel:"noopener noreferrer",children:a("app.user_terms")}),a("auth.agreement_sub2"),e.jsx("a",{className:"points_recharge_tip_link",href:"/content/privacyPolicy",target:"_blank",rel:"noopener noreferrer",children:a("app.privacy_policy")})]}),e.jsx("button",{type:"button",className:"points_recharge_confirm_btn",onClick:u,children:a("points_recharge.confirm_recharge")})]})}export{w as default};
//# sourceMappingURL=index-4XTmEVjY.js.map
import{j as e}from"./markdown-vendor-DnN-_XEd.js";import{u as A,r}from"./data-vendor-DOiUz3Tw.js";import{h as x,aW as f,g as v,bz as j,aY as N}from"./index-CcS3ZJ2N.js";import{M as y}from"./arco-vendor-Cm-ntj-q.js";import"./react-vendor-B8OyfHW2.js";function w({title:h}){const{t:a}=A(),o=x(),i=f(s=>s.user),[d,l]=r.useState(""),[g,p]=r.useState([]),[n,c]=r.useState(null);r.useEffect(()=>{let s=!1;return(async()=>{try{const t=await v();s||l(t.systemConfig.servicePhone??"")}catch{s||l("")}})(),()=>{s=!0}},[]),r.useEffect(()=>{let s=!1;return(async()=>{try{const{data:t}=await j(),_=Array.isArray(t)?t:t?.data??[];s||(p(_),c(_[0]??null))}catch{s||(p([]),c(null))}})(),()=>{s=!0}},[]);const m=r.useCallback(async()=>{await o(i?.id)},[o,i?.id]),u=r.useCallback(()=>{if(!n){y.warning(a("points_recharge.select_option_first"));return}N({type:"points",plan:n})},[n,a]);return e.jsxs("div",{className:"points_recharge_panel",children:[e.jsx("div",{className:"points_recharge_title",children:h??a("points_recharge.title")}),e.jsxs("div",{className:"points_recharge_balance_card",children:[e.jsx("img",{className:"points_recharge_avatar",src:String(i?.avatar??""),alt:""}),e.jsxs("div",{className:"points_recharge_user",children:[e.jsx("div",{className:"points_recharge_user_name",children:String(i?.name??"")}),e.jsxs("div",{className:"points_recharge_user_id_row",children:[e.jsxs("div",{className:"points_recharge_user_id",children:["ID:",String(i?.id??"")]}),e.jsx("button",{type:"button",className:"points_recharge_id_copy",onClick:()=>void m(),"aria-label":"copy id",children:e.jsx("img",{className:"points_recharge_id_copy_icon",src:new URL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAACXBIWXMAAAsTAAALEwEAmpwYAAABWUlEQVRYhe3YsS8DURzA8U8FiYSGxGCRzkwYROwWU0mMwtQY+5dgbgi7wcR/YDUYLDWIwSQiBoNKa+g1qtreta5VyX2Tl/fu3e/37nuXd5f3LlWpVAwSQ38t0EgiFMbACQ036ywUCvWH4yhiJuZrZ3K53EMkoQamA5kSHmMQSWMKk+hKqMYtFmIQyuOg1cn/MYdwjsWGmHncRxy3iC28xCWUbdI3gkzEcTO4wBre4hCC1w4E6rnBLFZxpnpzpTiEKrp45CgH9RPWcYydYLxQejmps3jGNvajJvVS6BITQTuPvShJvRC6Duq06otQYyVKci+ENpGqKxudJA/chzERCiMRCiMRCqOTBdpvWcahr2VNU/opNBeUGk1XAP0UusJR0H5XXcT9oJ9CdzgNC2onNIrdGESWOgluJzSGk9+5fOMjSlAroYzqvikuyiJuEFLJ75gQEqEwBk7oE5CnMiGC6jI6AAAAAElFTkSuQmCC",import.meta.url).href,alt:""})})]})]}),e.jsxs("div",{className:"points_recharge_balance_right",children:[e.jsx("div",{className:"points_recharge_balance_amount",children:String(i?.allCoins??"")}),e.jsx("div",{className:"points_recharge_balance_label",children:a("points_recharge.balance_label")})]})]}),e.jsx("div",{className:"points_recharge_options_grid",children:g.map(s=>e.jsxs("div",{className:["points_recharge_option_card",s.id===n?.id?"selected":""].filter(Boolean).join(" "),onClick:()=>c(s),children:[e.jsxs("div",{className:"points_recharge_option_top",children:[e.jsx("img",{className:"points_recharge_option_star",src:new URL("/assets/ic_stars_active-qa63FBqE.png",import.meta.url).href,alt:""}),e.jsx("div",{className:"points_recharge_option_amount",children:s.points_amount})]}),e.jsxs("div",{className:"points_recharge_option_price",children:["¥",s.price_amount]})]},s.id))}),e.jsxs("p",{className:"points_recharge_tip",children:[a("points_recharge.tip_prefix"),d,a("points_recharge.tip_middle"),e.jsx("a",{className:"points_recharge_tip_link",href:"/content/userTerms",target:"_blank",rel:"noopener noreferrer",children:a("app.user_terms")}),a("auth.agreement_sub2"),e.jsx("a",{className:"points_recharge_tip_link",href:"/content/privacyPolicy",target:"_blank",rel:"noopener noreferrer",children:a("app.privacy_policy")})]}),e.jsx("button",{type:"button",className:"points_recharge_confirm_btn",onClick:u,children:a("points_recharge.confirm_recharge")})]})}export{w as default};
//# sourceMappingURL=index-DNjn-J4R.js.map

2
dist/assets/index-4XTmEVjY.js.map → dist/assets/index-DNjn-J4R.js.map

File diff suppressed because one or more lines are too long

4
dist/assets/index-lPqr0jjH.js → dist/assets/index-DQVkVlCb.js

File diff suppressed because one or more lines are too long

2
dist/assets/index-lPqr0jjH.js.map → dist/assets/index-DQVkVlCb.js.map

File diff suppressed because one or more lines are too long

1
dist/assets/index-DXdwagkg.js.map

File diff suppressed because one or more lines are too long

4
dist/assets/index-B-2Jtd4P.js → dist/assets/index-Dk6ALk06.js

File diff suppressed because one or more lines are too long

2
dist/assets/index-B-2Jtd4P.js.map → dist/assets/index-Dk6ALk06.js.map

File diff suppressed because one or more lines are too long

1
dist/assets/index-DrTYY_Is.js.map

File diff suppressed because one or more lines are too long

4
dist/assets/index-BJjoFS0W.js → dist/assets/index-DrTeHAR1.js

@ -1,2 +1,2 @@
import{j as e}from"./markdown-vendor-DnN-_XEd.js";import{b2 as m,b3 as d}from"./index-D1KhT7yD.js";import{u as g,r as o}from"./data-vendor-DOiUz3Tw.js";import{b as _}from"./react-vendor-B8OyfHW2.js";import"./arco-vendor-Cm-ntj-q.js";const h="#user-agreement",c="#privacy-policy";function j(){const{t:l}=g(),{hash:i}=_(),t=i===c,r=l(t?"app.privacy_policy":"app.user_terms"),n=t?c.replace("#",""):h.replace("#",""),[p,a]=o.useState(void 0);return o.useEffect(()=>{a(void 0),t?m().then(s=>a(s.data?.content)):d().then(s=>a(s.data?.content))},[t]),e.jsx("div",{className:"legal-page",children:e.jsxs("section",{className:"legal-page__section",id:n,"aria-labelledby":"legal-doc-title",children:[e.jsx("h1",{className:"legal-page__title",id:"legal-doc-title",children:r}),e.jsx("div",{className:"legal-page__content",children:e.jsx("div",{dangerouslySetInnerHTML:{__html:p??""}})})]})})}export{j as default};
//# sourceMappingURL=index-BJjoFS0W.js.map
import{j as e}from"./markdown-vendor-DnN-_XEd.js";import{b2 as m,b3 as d}from"./index-CcS3ZJ2N.js";import{u as g,r as o}from"./data-vendor-DOiUz3Tw.js";import{b as _}from"./react-vendor-B8OyfHW2.js";import"./arco-vendor-Cm-ntj-q.js";const h="#user-agreement",c="#privacy-policy";function j(){const{t:l}=g(),{hash:i}=_(),t=i===c,r=l(t?"app.privacy_policy":"app.user_terms"),n=t?c.replace("#",""):h.replace("#",""),[p,a]=o.useState(void 0);return o.useEffect(()=>{a(void 0),t?m().then(s=>a(s.data?.content)):d().then(s=>a(s.data?.content))},[t]),e.jsx("div",{className:"legal-page",children:e.jsxs("section",{className:"legal-page__section",id:n,"aria-labelledby":"legal-doc-title",children:[e.jsx("h1",{className:"legal-page__title",id:"legal-doc-title",children:r}),e.jsx("div",{className:"legal-page__content",children:e.jsx("div",{dangerouslySetInnerHTML:{__html:p??""}})})]})})}export{j as default};
//# sourceMappingURL=index-DrTeHAR1.js.map

2
dist/assets/index-BJjoFS0W.js.map → dist/assets/index-DrTeHAR1.js.map

@ -1 +1 @@
{"version":3,"file":"index-BJjoFS0W.js","sources":["../../src/pages/legal/index.tsx"],"sourcesContent":["import { getPrivacyPolicy, getUserTerms } from \"@/api/api\";\nimport { useEffect, useState } from \"react\";\nimport { useLocation } from \"react-router-dom\";\nimport { useTranslation } from \"react-i18next\";\nimport \"./index.scss\";\n\nconst USER_AGREEMENT_HASH = \"#user-agreement\";\nconst PRIVACY_POLICY_HASH = \"#privacy-policy\";\n\nexport default function Legal() {\n const { t } = useTranslation();\n const { hash } = useLocation();\n const showPrivacy = hash === PRIVACY_POLICY_HASH;\n const title = showPrivacy ? t(\"app.privacy_policy\") : t(\"app.user_terms\");\n const sectionId = showPrivacy\n ? PRIVACY_POLICY_HASH.replace(\"#\", \"\")\n : USER_AGREEMENT_HASH.replace(\"#\", \"\");\n\n const [html, setHtml] = useState<string | undefined>(undefined);\n\n useEffect(() => {\n setHtml(undefined);\n if (showPrivacy) {\n getPrivacyPolicy().then((res) => setHtml(res.data?.content));\n } else {\n getUserTerms().then((res) => setHtml(res.data?.content));\n }\n }, [showPrivacy]);\n\n return (\n <div className=\"legal-page\">\n <section\n className=\"legal-page__section\"\n id={sectionId}\n aria-labelledby=\"legal-doc-title\"\n >\n <h1 className=\"legal-page__title\" id=\"legal-doc-title\">\n {title}\n </h1>\n <div className=\"legal-page__content\">\n <div dangerouslySetInnerHTML={{ __html: html ?? \"\" }} />\n </div>\n </section>\n </div>\n );\n}\n"],"names":["USER_AGREEMENT_HASH","PRIVACY_POLICY_HASH","Legal","t","useTranslation","hash","useLocation","showPrivacy","title","sectionId","html","setHtml","useState","useEffect","getPrivacyPolicy","res","getUserTerms","jsx","jsxs"],"mappings":"yOAMA,MAAMA,EAAsB,kBACtBC,EAAsB,kBAE5B,SAAwBC,GAAQ,CAC9B,KAAM,CAAE,EAAAC,CAAA,EAAMC,EAAA,EACR,CAAE,KAAAC,CAAA,EAASC,EAAA,EACXC,EAAcF,IAASJ,EACvBO,EAAsBL,EAAdI,EAAgB,qBAA0B,gBAAN,EAC5CE,EAAYF,EACdN,EAAoB,QAAQ,IAAK,EAAE,EACnCD,EAAoB,QAAQ,IAAK,EAAE,EAEjC,CAACU,EAAMC,CAAO,EAAIC,EAAAA,SAA6B,MAAS,EAE9DC,OAAAA,EAAAA,UAAU,IAAM,CACdF,EAAQ,MAAS,EACbJ,EACFO,EAAA,EAAmB,KAAMC,GAAQJ,EAAQI,EAAI,MAAM,OAAO,CAAC,EAE3DC,EAAA,EAAe,KAAMD,GAAQJ,EAAQI,EAAI,MAAM,OAAO,CAAC,CAE3D,EAAG,CAACR,CAAW,CAAC,EAGdU,EAAAA,IAAC,MAAA,CAAI,UAAU,aACb,SAAAC,EAAAA,KAAC,UAAA,CACC,UAAU,sBACV,GAAIT,EACJ,kBAAgB,kBAEhB,SAAA,CAAAQ,MAAC,KAAA,CAAG,UAAU,oBAAoB,GAAG,kBAClC,SAAAT,EACH,EACAS,EAAAA,IAAC,MAAA,CAAI,UAAU,sBACb,SAAAA,EAAAA,IAAC,MAAA,CAAI,wBAAyB,CAAE,OAAQP,GAAQ,EAAA,CAAG,CAAG,CAAA,CACxD,CAAA,CAAA,CAAA,EAEJ,CAEJ"}
{"version":3,"file":"index-DrTeHAR1.js","sources":["../../src/pages/legal/index.tsx"],"sourcesContent":["import { getPrivacyPolicy, getUserTerms } from \"@/api/api\";\nimport { useEffect, useState } from \"react\";\nimport { useLocation } from \"react-router-dom\";\nimport { useTranslation } from \"react-i18next\";\nimport \"./index.scss\";\n\nconst USER_AGREEMENT_HASH = \"#user-agreement\";\nconst PRIVACY_POLICY_HASH = \"#privacy-policy\";\n\nexport default function Legal() {\n const { t } = useTranslation();\n const { hash } = useLocation();\n const showPrivacy = hash === PRIVACY_POLICY_HASH;\n const title = showPrivacy ? t(\"app.privacy_policy\") : t(\"app.user_terms\");\n const sectionId = showPrivacy\n ? PRIVACY_POLICY_HASH.replace(\"#\", \"\")\n : USER_AGREEMENT_HASH.replace(\"#\", \"\");\n\n const [html, setHtml] = useState<string | undefined>(undefined);\n\n useEffect(() => {\n setHtml(undefined);\n if (showPrivacy) {\n getPrivacyPolicy().then((res) => setHtml(res.data?.content));\n } else {\n getUserTerms().then((res) => setHtml(res.data?.content));\n }\n }, [showPrivacy]);\n\n return (\n <div className=\"legal-page\">\n <section\n className=\"legal-page__section\"\n id={sectionId}\n aria-labelledby=\"legal-doc-title\"\n >\n <h1 className=\"legal-page__title\" id=\"legal-doc-title\">\n {title}\n </h1>\n <div className=\"legal-page__content\">\n <div dangerouslySetInnerHTML={{ __html: html ?? \"\" }} />\n </div>\n </section>\n </div>\n );\n}\n"],"names":["USER_AGREEMENT_HASH","PRIVACY_POLICY_HASH","Legal","t","useTranslation","hash","useLocation","showPrivacy","title","sectionId","html","setHtml","useState","useEffect","getPrivacyPolicy","res","getUserTerms","jsx","jsxs"],"mappings":"yOAMA,MAAMA,EAAsB,kBACtBC,EAAsB,kBAE5B,SAAwBC,GAAQ,CAC9B,KAAM,CAAE,EAAAC,CAAA,EAAMC,EAAA,EACR,CAAE,KAAAC,CAAA,EAASC,EAAA,EACXC,EAAcF,IAASJ,EACvBO,EAAsBL,EAAdI,EAAgB,qBAA0B,gBAAN,EAC5CE,EAAYF,EACdN,EAAoB,QAAQ,IAAK,EAAE,EACnCD,EAAoB,QAAQ,IAAK,EAAE,EAEjC,CAACU,EAAMC,CAAO,EAAIC,EAAAA,SAA6B,MAAS,EAE9DC,OAAAA,EAAAA,UAAU,IAAM,CACdF,EAAQ,MAAS,EACbJ,EACFO,EAAA,EAAmB,KAAMC,GAAQJ,EAAQI,EAAI,MAAM,OAAO,CAAC,EAE3DC,EAAA,EAAe,KAAMD,GAAQJ,EAAQI,EAAI,MAAM,OAAO,CAAC,CAE3D,EAAG,CAACR,CAAW,CAAC,EAGdU,EAAAA,IAAC,MAAA,CAAI,UAAU,aACb,SAAAC,EAAAA,KAAC,UAAA,CACC,UAAU,sBACV,GAAIT,EACJ,kBAAgB,kBAEhB,SAAA,CAAAQ,MAAC,KAAA,CAAG,UAAU,oBAAoB,GAAG,kBAClC,SAAAT,EACH,EACAS,EAAAA,IAAC,MAAA,CAAI,UAAU,sBACb,SAAAA,EAAAA,IAAC,MAAA,CAAI,wBAAyB,CAAE,OAAQP,GAAQ,EAAA,CAAG,CAAG,CAAA,CACxD,CAAA,CAAA,CAAA,EAEJ,CAEJ"}

4
dist/assets/index-DkCi538x.js → dist/assets/index-Fdvm4IPN.js

File diff suppressed because one or more lines are too long

2
dist/assets/index-DkCi538x.js.map → dist/assets/index-Fdvm4IPN.js.map

File diff suppressed because one or more lines are too long

1
dist/assets/index-HRnSMO45.js.map

File diff suppressed because one or more lines are too long

4
dist/assets/index-BV5F4h8-.js → dist/assets/index-HjlepRMm.js

@ -1,2 +1,2 @@
import{j as t}from"./markdown-vendor-DnN-_XEd.js";import{b4 as d}from"./index-D1KhT7yD.js";import{r as a}from"./data-vendor-DOiUz3Tw.js";import{f as m,g}from"./react-vendor-B8OyfHW2.js";import"./arco-vendor-Cm-ntj-q.js";function _(){const[i,s]=a.useState(void 0),[o,r]=a.useState(void 0),{id:n}=m(),[c]=g(),e=n??c.get("id")??void 0;return a.useEffect(()=>{e&&(s(void 0),d({id:e}).then(l=>{s(l.data?.content),r(l.data?.title)}))},[e]),t.jsx("div",{className:"legal-page",children:t.jsxs("section",{className:"legal-page__section",id:e,"aria-labelledby":"legal-doc-title",children:[t.jsx("h1",{className:"legal-page__title",id:"legal-doc-title",children:o}),t.jsx("div",{className:"legal-page__content",children:t.jsx("div",{dangerouslySetInnerHTML:{__html:i??""}})})]})})}export{_ as default};
//# sourceMappingURL=index-BV5F4h8-.js.map
import{j as t}from"./markdown-vendor-DnN-_XEd.js";import{b4 as d}from"./index-CcS3ZJ2N.js";import{r as a}from"./data-vendor-DOiUz3Tw.js";import{f as m,g}from"./react-vendor-B8OyfHW2.js";import"./arco-vendor-Cm-ntj-q.js";function _(){const[i,s]=a.useState(void 0),[o,r]=a.useState(void 0),{id:n}=m(),[c]=g(),e=n??c.get("id")??void 0;return a.useEffect(()=>{e&&(s(void 0),d({id:e}).then(l=>{s(l.data?.content),r(l.data?.title)}))},[e]),t.jsx("div",{className:"legal-page",children:t.jsxs("section",{className:"legal-page__section",id:e,"aria-labelledby":"legal-doc-title",children:[t.jsx("h1",{className:"legal-page__title",id:"legal-doc-title",children:o}),t.jsx("div",{className:"legal-page__content",children:t.jsx("div",{dangerouslySetInnerHTML:{__html:i??""}})})]})})}export{_ as default};
//# sourceMappingURL=index-HjlepRMm.js.map

2
dist/assets/index-BV5F4h8-.js.map → dist/assets/index-HjlepRMm.js.map

@ -1 +1 @@
{"version":3,"file":"index-BV5F4h8-.js","sources":["../../src/pages/content/page/index.tsx"],"sourcesContent":["import { getContent } from \"@/api/api\";\r\nimport { useEffect, useState } from \"react\";\r\nimport { useParams, useSearchParams } from \"react-router-dom\";\r\nimport \"./index.scss\";\r\n\r\nexport default function Content() {\r\n\r\n const [html, setHtml] = useState<string | undefined>(undefined);\r\n const [title, setTitle] = useState<string | undefined>(undefined);\r\n const { id: idFromPath } = useParams();\r\n const [searchParams] = useSearchParams();\r\n const id = idFromPath ?? searchParams.get(\"id\") ?? undefined;\r\n\r\n useEffect(() => {\r\n if (!id) return;\r\n setHtml(undefined);\r\n getContent({ id }).then((res) => {\r\n setHtml(res.data?.content);\r\n setTitle(res.data?.title);\r\n });\r\n }, [id]);\r\n\r\n return (\r\n <div className=\"legal-page\">\r\n <section\r\n className=\"legal-page__section\"\r\n id={id}\r\n aria-labelledby=\"legal-doc-title\"\r\n >\r\n <h1 className=\"legal-page__title\" id=\"legal-doc-title\">\r\n {title}\r\n </h1>\r\n <div className=\"legal-page__content\">\r\n <div dangerouslySetInnerHTML={{ __html: html ?? \"\" }} />\r\n </div>\r\n </section>\r\n </div>\r\n );\r\n}\r\n"],"names":["Content","html","setHtml","useState","title","setTitle","idFromPath","useParams","searchParams","useSearchParams","id","useEffect","getContent","res","jsx","jsxs"],"mappings":"4NAKA,SAAwBA,GAAU,CAE9B,KAAM,CAACC,EAAMC,CAAO,EAAIC,EAAAA,SAA6B,MAAS,EACxD,CAACC,EAAOC,CAAQ,EAAIF,EAAAA,SAA6B,MAAS,EAC1D,CAAE,GAAIG,CAAA,EAAeC,EAAA,EACrB,CAACC,CAAY,EAAIC,EAAA,EACjBC,EAAKJ,GAAcE,EAAa,IAAI,IAAI,GAAK,OAEnDG,OAAAA,EAAAA,UAAU,IAAM,CACPD,IACLR,EAAQ,MAAS,EACjBU,EAAW,CAAE,GAAAF,CAAA,CAAI,EAAE,KAAMG,GAAQ,CAC7BX,EAAQW,EAAI,MAAM,OAAO,EACzBR,EAASQ,EAAI,MAAM,KAAK,CAC5B,CAAC,EACL,EAAG,CAACH,CAAE,CAAC,EAGHI,EAAAA,IAAC,MAAA,CAAI,UAAU,aACX,SAAAC,EAAAA,KAAC,UAAA,CACG,UAAU,sBACV,GAAAL,EACA,kBAAgB,kBAEhB,SAAA,CAAAI,MAAC,KAAA,CAAG,UAAU,oBAAoB,GAAG,kBAChC,SAAAV,EACL,EACAU,EAAAA,IAAC,MAAA,CAAI,UAAU,sBACX,SAAAA,EAAAA,IAAC,MAAA,CAAI,wBAAyB,CAAE,OAAQb,GAAQ,EAAA,CAAG,CAAG,CAAA,CAC1D,CAAA,CAAA,CAAA,EAER,CAER"}
{"version":3,"file":"index-HjlepRMm.js","sources":["../../src/pages/content/page/index.tsx"],"sourcesContent":["import { getContent } from \"@/api/api\";\r\nimport { useEffect, useState } from \"react\";\r\nimport { useParams, useSearchParams } from \"react-router-dom\";\r\nimport \"./index.scss\";\r\n\r\nexport default function Content() {\r\n\r\n const [html, setHtml] = useState<string | undefined>(undefined);\r\n const [title, setTitle] = useState<string | undefined>(undefined);\r\n const { id: idFromPath } = useParams();\r\n const [searchParams] = useSearchParams();\r\n const id = idFromPath ?? searchParams.get(\"id\") ?? undefined;\r\n\r\n useEffect(() => {\r\n if (!id) return;\r\n setHtml(undefined);\r\n getContent({ id }).then((res) => {\r\n setHtml(res.data?.content);\r\n setTitle(res.data?.title);\r\n });\r\n }, [id]);\r\n\r\n return (\r\n <div className=\"legal-page\">\r\n <section\r\n className=\"legal-page__section\"\r\n id={id}\r\n aria-labelledby=\"legal-doc-title\"\r\n >\r\n <h1 className=\"legal-page__title\" id=\"legal-doc-title\">\r\n {title}\r\n </h1>\r\n <div className=\"legal-page__content\">\r\n <div dangerouslySetInnerHTML={{ __html: html ?? \"\" }} />\r\n </div>\r\n </section>\r\n </div>\r\n );\r\n}\r\n"],"names":["Content","html","setHtml","useState","title","setTitle","idFromPath","useParams","searchParams","useSearchParams","id","useEffect","getContent","res","jsx","jsxs"],"mappings":"4NAKA,SAAwBA,GAAU,CAE9B,KAAM,CAACC,EAAMC,CAAO,EAAIC,EAAAA,SAA6B,MAAS,EACxD,CAACC,EAAOC,CAAQ,EAAIF,EAAAA,SAA6B,MAAS,EAC1D,CAAE,GAAIG,CAAA,EAAeC,EAAA,EACrB,CAACC,CAAY,EAAIC,EAAA,EACjBC,EAAKJ,GAAcE,EAAa,IAAI,IAAI,GAAK,OAEnDG,OAAAA,EAAAA,UAAU,IAAM,CACPD,IACLR,EAAQ,MAAS,EACjBU,EAAW,CAAE,GAAAF,CAAA,CAAI,EAAE,KAAMG,GAAQ,CAC7BX,EAAQW,EAAI,MAAM,OAAO,EACzBR,EAASQ,EAAI,MAAM,KAAK,CAC5B,CAAC,EACL,EAAG,CAACH,CAAE,CAAC,EAGHI,EAAAA,IAAC,MAAA,CAAI,UAAU,aACX,SAAAC,EAAAA,KAAC,UAAA,CACG,UAAU,sBACV,GAAAL,EACA,kBAAgB,kBAEhB,SAAA,CAAAI,MAAC,KAAA,CAAG,UAAU,oBAAoB,GAAG,kBAChC,SAAAV,EACL,EACAU,EAAAA,IAAC,MAAA,CAAI,UAAU,sBACX,SAAAA,EAAAA,IAAC,MAAA,CAAI,wBAAyB,CAAE,OAAQb,GAAQ,EAAA,CAAG,CAAG,CAAA,CAC1D,CAAA,CAAA,CAAA,EAER,CAER"}

4
dist/assets/index-DkI_6eNL.js → dist/assets/index-Lh0BLoYQ.js

@ -1,2 +1,2 @@
import{j as e}from"./markdown-vendor-DnN-_XEd.js";import{u as z,r as n}from"./data-vendor-DOiUz3Tw.js";import{aW as B,bA as U}from"./index-D1KhT7yD.js";import"./react-vendor-B8OyfHW2.js";import"./arco-vendor-Cm-ntj-q.js";const b=20,G=24;function H(s){const t=s.id!=null?String(s.id):"",a=s.createTime??"",r=s.content??"";return`${t}|${a}|${r}|${s.points}|${s.changeType}`}function K(s,t,a){return typeof s?.hasMore=="boolean"?s.hasMore:typeof s?.hasNext=="boolean"?s.hasNext:Number.isFinite(Number(s?.pages))?t<Number(s.pages):Number.isFinite(Number(s?.pageCount))?t<Number(s.pageCount):Number.isFinite(Number(s?.total))?t*b<Number(s.total):a>=b}function W(s,t="zh-CN"){if(!s)return"";const a=new Date(s);return Number.isNaN(a.getTime())?s:new Intl.DateTimeFormat(t,{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1}).format(a)}function Y({initialTab:s="points"}){const{t,i18n:a}=z(),r=B(i=>i.user),[$]=n.useState("points"),[c,q]=n.useState(void 0),[j,w]=n.useState([]),[f,S]=n.useState(!1),[g,y]=n.useState(!1),[P,L]=n.useState(1),[T,u]=n.useState(!0),A=n.useRef(null),p=n.useRef(!1),_=n.useRef(0),m=n.useCallback(async(i,o,l)=>{const d=++_.current;l?(y(!0),p.current=!0):(S(!0),u(!0));try{const{data:N}=await U({changeType:i,page:o,pageSize:b});if(d!==_.current)return;const x=N?.data??N??{},h=Array.isArray(x?.list)?x.list:[];let k=h.length;w(M=>{if(!l)return h;const C=new Set(M.map(v=>H(v))),D=[...M];let R=0;return h.forEach(v=>{const E=H(v);C.has(E)||(C.add(E),D.push(v),R+=1)}),k=R,D}),L(o);const I=K(x,o,h.length);u(I&&(!l||k>0))}catch{if(d!==_.current)return;l?u(!1):w([])}finally{if(d!==_.current)return;l?(y(!1),p.current=!1):S(!1)}},[]);n.useEffect(()=>{p.current=!1,L(1),u(!0),m(c,1,!1)},[c,m]);const F=n.useCallback(i=>{if(f||g||!T||p.current)return;const{scrollTop:o,scrollHeight:l,clientHeight:d}=i.currentTarget;l-o-d>G||m(c,P+1,!0)},[c,T,m,P,f,g]),O=n.useMemo(()=>[{key:"all",value:void 0,label:t("points_detail.tab_all")},{key:"debit",value:"debit",label:t("points_detail.tab_consume")},{key:"credit",value:"credit",label:t("points_detail.tab_gain")}],[t]);return e.jsx("div",{className:"points_detail_modal_panel",children:e.jsxs("div",{className:"points_detail_layout",children:[e.jsx("nav",{className:"points_detail_nav",children:e.jsx("div",{className:["points_detail_nav_item",$==="points"?"active":""].join(" "),children:t("points_detail.title")})}),e.jsxs("div",{ref:A,className:"points_detail_main",onScroll:F,children:[e.jsx("h2",{className:"points_detail_page_title",children:t("points_detail.title")}),e.jsxs("div",{className:"points_overview",children:[e.jsxs("div",{className:"points_overview_block",children:[e.jsx("span",{className:"points_overview_label",children:t("points_detail.remaining")}),e.jsx("span",{className:"points_overview_num points_remaining",children:r?.allCoins||0})]}),e.jsx("span",{className:"points_overview_op",children:"="}),e.jsxs("div",{className:"points_overview_block",children:[e.jsx("span",{className:"points_overview_label",children:t("points_detail.recharge")}),e.jsx("span",{className:"points_overview_num",children:r?.memberCoins||0})]}),e.jsx("span",{className:"points_overview_op",children:"+"}),e.jsxs("div",{className:"points_overview_block",children:[e.jsx("span",{className:"points_overview_label",children:t("points_detail.gift")}),e.jsx("span",{className:"points_overview_num",children:r?.otherCoins||0})]}),e.jsx("span",{className:"points_overview_op",children:"+"}),e.jsxs("div",{className:"points_overview_block",children:[e.jsx("span",{className:"points_overview_label",children:t("points_detail.point_package")}),e.jsx("span",{className:"points_overview_num",children:r?.pointPackageCoins||0})]})]}),e.jsx("div",{className:"points_tabs",children:O.map(i=>e.jsx("button",{type:"button",className:["points_tab",c===i.value?"active":""].join(" "),onClick:()=>q(i.value),children:i.label},i.key))}),e.jsx("ul",{className:"points_detail_list",children:j.map((i,o)=>e.jsxs("li",{className:"points_detail_item",children:[e.jsxs("div",{className:"points_detail_item_left",children:[e.jsx("span",{className:"points_detail_item_title",children:i.content||t("points_detail.points_change")}),e.jsx("span",{className:"points_detail_item_date",children:W(i.createTime,a.language)})]}),e.jsxs("span",{className:["points_detail_item_amount",i.points>0?"in":"",i.points<0?"out":""].join(" "),children:[i.changeType===1?"+":"",i.points]})]},i.id??`${i.createTime??"row"}-${o}`))}),!f&&j.length===0?e.jsx("p",{className:"points_detail_empty",children:t("points_detail.empty")}):null,g?e.jsx("p",{className:"points_detail_loading_more",children:t("common.loading")}):null,e.jsx("p",{className:"points_detail_footer",children:t("points_detail.footer")})]})]})})}export{Y as default};
//# sourceMappingURL=index-DkI_6eNL.js.map
import{j as e}from"./markdown-vendor-DnN-_XEd.js";import{u as z,r as n}from"./data-vendor-DOiUz3Tw.js";import{aW as B,bA as U}from"./index-CcS3ZJ2N.js";import"./react-vendor-B8OyfHW2.js";import"./arco-vendor-Cm-ntj-q.js";const b=20,G=24;function H(s){const t=s.id!=null?String(s.id):"",a=s.createTime??"",r=s.content??"";return`${t}|${a}|${r}|${s.points}|${s.changeType}`}function K(s,t,a){return typeof s?.hasMore=="boolean"?s.hasMore:typeof s?.hasNext=="boolean"?s.hasNext:Number.isFinite(Number(s?.pages))?t<Number(s.pages):Number.isFinite(Number(s?.pageCount))?t<Number(s.pageCount):Number.isFinite(Number(s?.total))?t*b<Number(s.total):a>=b}function W(s,t="zh-CN"){if(!s)return"";const a=new Date(s);return Number.isNaN(a.getTime())?s:new Intl.DateTimeFormat(t,{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1}).format(a)}function Y({initialTab:s="points"}){const{t,i18n:a}=z(),r=B(i=>i.user),[$]=n.useState("points"),[c,q]=n.useState(void 0),[j,w]=n.useState([]),[f,S]=n.useState(!1),[g,y]=n.useState(!1),[P,L]=n.useState(1),[T,u]=n.useState(!0),A=n.useRef(null),p=n.useRef(!1),_=n.useRef(0),m=n.useCallback(async(i,o,l)=>{const d=++_.current;l?(y(!0),p.current=!0):(S(!0),u(!0));try{const{data:N}=await U({changeType:i,page:o,pageSize:b});if(d!==_.current)return;const x=N?.data??N??{},h=Array.isArray(x?.list)?x.list:[];let k=h.length;w(M=>{if(!l)return h;const C=new Set(M.map(v=>H(v))),D=[...M];let R=0;return h.forEach(v=>{const E=H(v);C.has(E)||(C.add(E),D.push(v),R+=1)}),k=R,D}),L(o);const I=K(x,o,h.length);u(I&&(!l||k>0))}catch{if(d!==_.current)return;l?u(!1):w([])}finally{if(d!==_.current)return;l?(y(!1),p.current=!1):S(!1)}},[]);n.useEffect(()=>{p.current=!1,L(1),u(!0),m(c,1,!1)},[c,m]);const F=n.useCallback(i=>{if(f||g||!T||p.current)return;const{scrollTop:o,scrollHeight:l,clientHeight:d}=i.currentTarget;l-o-d>G||m(c,P+1,!0)},[c,T,m,P,f,g]),O=n.useMemo(()=>[{key:"all",value:void 0,label:t("points_detail.tab_all")},{key:"debit",value:"debit",label:t("points_detail.tab_consume")},{key:"credit",value:"credit",label:t("points_detail.tab_gain")}],[t]);return e.jsx("div",{className:"points_detail_modal_panel",children:e.jsxs("div",{className:"points_detail_layout",children:[e.jsx("nav",{className:"points_detail_nav",children:e.jsx("div",{className:["points_detail_nav_item",$==="points"?"active":""].join(" "),children:t("points_detail.title")})}),e.jsxs("div",{ref:A,className:"points_detail_main",onScroll:F,children:[e.jsx("h2",{className:"points_detail_page_title",children:t("points_detail.title")}),e.jsxs("div",{className:"points_overview",children:[e.jsxs("div",{className:"points_overview_block",children:[e.jsx("span",{className:"points_overview_label",children:t("points_detail.remaining")}),e.jsx("span",{className:"points_overview_num points_remaining",children:r?.allCoins||0})]}),e.jsx("span",{className:"points_overview_op",children:"="}),e.jsxs("div",{className:"points_overview_block",children:[e.jsx("span",{className:"points_overview_label",children:t("points_detail.recharge")}),e.jsx("span",{className:"points_overview_num",children:r?.memberCoins||0})]}),e.jsx("span",{className:"points_overview_op",children:"+"}),e.jsxs("div",{className:"points_overview_block",children:[e.jsx("span",{className:"points_overview_label",children:t("points_detail.gift")}),e.jsx("span",{className:"points_overview_num",children:r?.otherCoins||0})]}),e.jsx("span",{className:"points_overview_op",children:"+"}),e.jsxs("div",{className:"points_overview_block",children:[e.jsx("span",{className:"points_overview_label",children:t("points_detail.point_package")}),e.jsx("span",{className:"points_overview_num",children:r?.pointPackageCoins||0})]})]}),e.jsx("div",{className:"points_tabs",children:O.map(i=>e.jsx("button",{type:"button",className:["points_tab",c===i.value?"active":""].join(" "),onClick:()=>q(i.value),children:i.label},i.key))}),e.jsx("ul",{className:"points_detail_list",children:j.map((i,o)=>e.jsxs("li",{className:"points_detail_item",children:[e.jsxs("div",{className:"points_detail_item_left",children:[e.jsx("span",{className:"points_detail_item_title",children:i.content||t("points_detail.points_change")}),e.jsx("span",{className:"points_detail_item_date",children:W(i.createTime,a.language)})]}),e.jsxs("span",{className:["points_detail_item_amount",i.points>0?"in":"",i.points<0?"out":""].join(" "),children:[i.changeType===1?"+":"",i.points]})]},i.id??`${i.createTime??"row"}-${o}`))}),!f&&j.length===0?e.jsx("p",{className:"points_detail_empty",children:t("points_detail.empty")}):null,g?e.jsx("p",{className:"points_detail_loading_more",children:t("common.loading")}):null,e.jsx("p",{className:"points_detail_footer",children:t("points_detail.footer")})]})]})})}export{Y as default};
//# sourceMappingURL=index-Lh0BLoYQ.js.map

2
dist/assets/index-DkI_6eNL.js.map → dist/assets/index-Lh0BLoYQ.js.map

File diff suppressed because one or more lines are too long

4
dist/assets/index-DV1Bg3kx.js → dist/assets/index-YLy7nrYs.js

File diff suppressed because one or more lines are too long

2
dist/assets/index-DV1Bg3kx.js.map → dist/assets/index-YLy7nrYs.js.map

File diff suppressed because one or more lines are too long

4
dist/assets/index-D3BRWOBP.js → dist/assets/index-cN-iJFCM.js

@ -1,2 +1,2 @@
import{j as t}from"./markdown-vendor-DnN-_XEd.js";import{L as o}from"./react-vendor-B8OyfHW2.js";import{R as s}from"./index-D1KhT7yD.js";import{u as r}from"./data-vendor-DOiUz3Tw.js";import"./arco-vendor-Cm-ntj-q.js";function c(){const{t:e}=r();return t.jsxs("div",{className:"flex min-h-[60vh] flex-col items-center justify-center text-gray-600",children:[t.jsx("p",{className:"text-6xl font-bold text-gray-300",children:"404"}),t.jsx("p",{className:"mt-2",children:e("notFound.title")}),t.jsx(o,{to:s.EXPLORE,className:"mt-4 text-blue-600 hover:underline",children:e("notFound.backHome")})]})}export{c as default};
//# sourceMappingURL=index-D3BRWOBP.js.map
import{j as t}from"./markdown-vendor-DnN-_XEd.js";import{L as o}from"./react-vendor-B8OyfHW2.js";import{R as s}from"./index-CcS3ZJ2N.js";import{u as r}from"./data-vendor-DOiUz3Tw.js";import"./arco-vendor-Cm-ntj-q.js";function c(){const{t:e}=r();return t.jsxs("div",{className:"flex min-h-[60vh] flex-col items-center justify-center text-gray-600",children:[t.jsx("p",{className:"text-6xl font-bold text-gray-300",children:"404"}),t.jsx("p",{className:"mt-2",children:e("notFound.title")}),t.jsx(o,{to:s.EXPLORE,className:"mt-4 text-blue-600 hover:underline",children:e("notFound.backHome")})]})}export{c as default};
//# sourceMappingURL=index-cN-iJFCM.js.map

2
dist/assets/index-D3BRWOBP.js.map → dist/assets/index-cN-iJFCM.js.map

@ -1 +1 @@
{"version":3,"file":"index-D3BRWOBP.js","sources":["../../src/pages/NotFound/index.tsx"],"sourcesContent":["import { Link } from \"react-router-dom\";\nimport { useTranslation } from \"react-i18next\";\nimport { ROUTES } from \"@/constants\";\n\nexport default function NotFound() {\n const { t } = useTranslation();\n return (\n <div className=\"flex min-h-[60vh] flex-col items-center justify-center text-gray-600\">\n <p className=\"text-6xl font-bold text-gray-300\">404</p>\n <p className=\"mt-2\">{t(\"notFound.title\")}</p>\n <Link to={ROUTES.EXPLORE} className=\"mt-4 text-blue-600 hover:underline\">\n {t(\"notFound.backHome\")}\n </Link>\n </div>\n );\n}\n"],"names":["NotFound","t","useTranslation","jsxs","jsx","Link","ROUTES"],"mappings":"yNAIA,SAAwBA,GAAW,CACjC,KAAM,CAAE,EAAAC,CAAA,EAAMC,EAAA,EACd,OACEC,EAAAA,KAAC,MAAA,CAAI,UAAU,uEACb,SAAA,CAAAC,EAAAA,IAAC,IAAA,CAAE,UAAU,mCAAmC,SAAA,MAAG,QAClD,IAAA,CAAE,UAAU,OAAQ,SAAAH,EAAE,gBAAgB,EAAE,EACzCG,EAAAA,IAACC,GAAK,GAAIC,EAAO,QAAS,UAAU,qCACjC,SAAAL,EAAE,mBAAmB,CAAA,CACxB,CAAA,EACF,CAEJ"}
{"version":3,"file":"index-cN-iJFCM.js","sources":["../../src/pages/NotFound/index.tsx"],"sourcesContent":["import { Link } from \"react-router-dom\";\nimport { useTranslation } from \"react-i18next\";\nimport { ROUTES } from \"@/constants\";\n\nexport default function NotFound() {\n const { t } = useTranslation();\n return (\n <div className=\"flex min-h-[60vh] flex-col items-center justify-center text-gray-600\">\n <p className=\"text-6xl font-bold text-gray-300\">404</p>\n <p className=\"mt-2\">{t(\"notFound.title\")}</p>\n <Link to={ROUTES.EXPLORE} className=\"mt-4 text-blue-600 hover:underline\">\n {t(\"notFound.backHome\")}\n </Link>\n </div>\n );\n}\n"],"names":["NotFound","t","useTranslation","jsxs","jsx","Link","ROUTES"],"mappings":"yNAIA,SAAwBA,GAAW,CACjC,KAAM,CAAE,EAAAC,CAAA,EAAMC,EAAA,EACd,OACEC,EAAAA,KAAC,MAAA,CAAI,UAAU,uEACb,SAAA,CAAAC,EAAAA,IAAC,IAAA,CAAE,UAAU,mCAAmC,SAAA,MAAG,QAClD,IAAA,CAAE,UAAU,OAAQ,SAAAH,EAAE,gBAAgB,EAAE,EACzCG,EAAAA,IAACC,GAAK,GAAIC,EAAO,QAAS,UAAU,qCACjC,SAAAL,EAAE,mBAAmB,CAAA,CACxB,CAAA,EACF,CAEJ"}

4
dist/assets/index-B4QwmRF1.js → dist/assets/index-fXtsv2My.js

@ -1,2 +1,2 @@
import{j as a}from"./markdown-vendor-DnN-_XEd.js";import{u as A,r as s}from"./data-vendor-DOiUz3Tw.js";import{h as k,bB as h,bC as m}from"./index-D1KhT7yD.js";import{M as x}from"./arco-vendor-Cm-ntj-q.js";import"./react-vendor-B8OyfHW2.js";function N(e){if(e==null)return"-";const i=new Date(e);if(Number.isNaN(i.getTime()))return String(e);const n=i.getFullYear(),o=String(i.getMonth()+1).padStart(2,"0"),l=String(i.getDate()).padStart(2,"0"),_=String(i.getHours()).padStart(2,"0"),d=String(i.getMinutes()).padStart(2,"0");return`${n}-${o}-${l} ${_}:${d}`}function j(e){return e?e.length<=10?e:`${e.slice(0,5)}...${e.slice(-4)}`:"-"}function T(){const{t:e}=A(),i=k(),[n,o]=s.useState(!1),[l,_]=s.useState([]),[d,g]=s.useState(null),c=s.useCallback(async()=>{o(!0);try{const t=await h({page:1,pageSize:20}),r=Array.isArray(t?.data?.list)?t.data.list:[];_(r)}catch{_([])}finally{o(!1)}},[]);s.useEffect(()=>{c()},[c]);const p=s.useMemo(()=>l.length>0,[l]),w=s.useCallback(async t=>{if(d!=null)return;const r=t.status!==1;g(t.id);try{await m({id:t.id,enabled:r}),_(u=>u.map(y=>y.id!==t.id?y:{...y,status:r?1:2}))}catch{x.error(e("gatewayApiKey.updateStatusFailed"))}finally{g(null)}},[e,d]);return a.jsxs("div",{className:"gateway_apikey_dialog",children:[a.jsx("h2",{className:"gateway_apikey_dialog__title",children:e("gatewayApiKey.title")}),n?a.jsx("div",{className:"gateway_apikey_dialog__statusText",children:e("common.loading")}):null,!n&&!p?a.jsx("div",{className:"gateway_apikey_dialog__statusText",children:e("gatewayApiKey.empty")}):null,l.map(t=>a.jsxs("div",{className:"gateway_apikey_dialog__card",children:[a.jsx("div",{className:"gateway_apikey_dialog__row gateway_apikey_dialog__row_header",children:a.jsx("span",{className:"gateway_apikey_dialog__headerText",children:"Apikey"})}),a.jsxs("div",{className:"gateway_apikey_dialog__row gateway_apikey_dialog__row_user",children:[a.jsx("span",{className:"gateway_apikey_dialog__userCode",children:t.code}),a.jsxs("span",{className:["gateway_apikey_dialog__switch",t.status===1?"gateway_apikey_dialog__switch_on":"gateway_apikey_dialog__switch_off",d===t.id?"gateway_apikey_dialog__switch_loading":""].join(" "),role:"switch","aria-checked":t.status===1,"aria-label":e("gatewayApiKey.statusAria"),onClick:()=>void w(t),children:[a.jsx("span",{className:"gateway_apikey_dialog__switchLabel",children:t.status===1?"ON":"OFF"}),a.jsx("span",{className:"gateway_apikey_dialog__switchKnob"})]})]}),a.jsxs("div",{className:"gateway_apikey_dialog__detail",children:[a.jsx("span",{className:"gateway_apikey_dialog__detailLabel",children:"Key"}),a.jsxs("span",{className:"gateway_apikey_dialog__detailValue gateway_apikey_dialog__detailValue_key",children:[j(t.apikey),a.jsx("button",{type:"button",className:"gateway_apikey_dialog__copyBtn",onClick:()=>void i(t.apikey),"aria-label":e("gatewayApiKey.copyKey"),children:a.jsx("img",{className:"gateway_apikey_dialog__copyIcon",src:new URL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAACXBIWXMAAAsTAAALEwEAmpwYAAABWUlEQVRYhe3YsS8DURzA8U8FiYSGxGCRzkwYROwWU0mMwtQY+5dgbgi7wcR/YDUYLDWIwSQiBoNKa+g1qtreta5VyX2Tl/fu3e/37nuXd5f3LlWpVAwSQ38t0EgiFMbACQ036ywUCvWH4yhiJuZrZ3K53EMkoQamA5kSHmMQSWMKk+hKqMYtFmIQyuOg1cn/MYdwjsWGmHncRxy3iC28xCWUbdI3gkzEcTO4wBre4hCC1w4E6rnBLFZxpnpzpTiEKrp45CgH9RPWcYydYLxQejmps3jGNvajJvVS6BITQTuPvShJvRC6Duq06otQYyVKci+ENpGqKxudJA/chzERCiMRCiMRCqOTBdpvWcahr2VNU/opNBeUGk1XAP0UusJR0H5XXcT9oJ9CdzgNC2onNIrdGESWOgluJzSGk9+5fOMjSlAroYzqvikuyiJuEFLJ75gQEqEwBk7oE5CnMiGC6jI6AAAAAElFTkSuQmCC",import.meta.url).href,alt:""})})]})]}),a.jsx("div",{className:"gateway_apikey_dialog__divider"}),a.jsxs("div",{className:"gateway_apikey_dialog__detail gateway_apikey_dialog__detail_last",children:[a.jsx("span",{className:"gateway_apikey_dialog__detailLabel",children:e("gatewayApiKey.createdAt")}),a.jsx("span",{className:"gateway_apikey_dialog__detailValue",children:N(t.createTime)})]})]},t.id))]})}export{T as default};
//# sourceMappingURL=index-B4QwmRF1.js.map
import{j as a}from"./markdown-vendor-DnN-_XEd.js";import{u as A,r as s}from"./data-vendor-DOiUz3Tw.js";import{h as k,bB as h,bC as m}from"./index-CcS3ZJ2N.js";import{M as x}from"./arco-vendor-Cm-ntj-q.js";import"./react-vendor-B8OyfHW2.js";function N(e){if(e==null)return"-";const i=new Date(e);if(Number.isNaN(i.getTime()))return String(e);const n=i.getFullYear(),o=String(i.getMonth()+1).padStart(2,"0"),l=String(i.getDate()).padStart(2,"0"),_=String(i.getHours()).padStart(2,"0"),d=String(i.getMinutes()).padStart(2,"0");return`${n}-${o}-${l} ${_}:${d}`}function j(e){return e?e.length<=10?e:`${e.slice(0,5)}...${e.slice(-4)}`:"-"}function T(){const{t:e}=A(),i=k(),[n,o]=s.useState(!1),[l,_]=s.useState([]),[d,g]=s.useState(null),c=s.useCallback(async()=>{o(!0);try{const t=await h({page:1,pageSize:20}),r=Array.isArray(t?.data?.list)?t.data.list:[];_(r)}catch{_([])}finally{o(!1)}},[]);s.useEffect(()=>{c()},[c]);const p=s.useMemo(()=>l.length>0,[l]),w=s.useCallback(async t=>{if(d!=null)return;const r=t.status!==1;g(t.id);try{await m({id:t.id,enabled:r}),_(u=>u.map(y=>y.id!==t.id?y:{...y,status:r?1:2}))}catch{x.error(e("gatewayApiKey.updateStatusFailed"))}finally{g(null)}},[e,d]);return a.jsxs("div",{className:"gateway_apikey_dialog",children:[a.jsx("h2",{className:"gateway_apikey_dialog__title",children:e("gatewayApiKey.title")}),n?a.jsx("div",{className:"gateway_apikey_dialog__statusText",children:e("common.loading")}):null,!n&&!p?a.jsx("div",{className:"gateway_apikey_dialog__statusText",children:e("gatewayApiKey.empty")}):null,l.map(t=>a.jsxs("div",{className:"gateway_apikey_dialog__card",children:[a.jsx("div",{className:"gateway_apikey_dialog__row gateway_apikey_dialog__row_header",children:a.jsx("span",{className:"gateway_apikey_dialog__headerText",children:"Apikey"})}),a.jsxs("div",{className:"gateway_apikey_dialog__row gateway_apikey_dialog__row_user",children:[a.jsx("span",{className:"gateway_apikey_dialog__userCode",children:t.code}),a.jsxs("span",{className:["gateway_apikey_dialog__switch",t.status===1?"gateway_apikey_dialog__switch_on":"gateway_apikey_dialog__switch_off",d===t.id?"gateway_apikey_dialog__switch_loading":""].join(" "),role:"switch","aria-checked":t.status===1,"aria-label":e("gatewayApiKey.statusAria"),onClick:()=>void w(t),children:[a.jsx("span",{className:"gateway_apikey_dialog__switchLabel",children:t.status===1?"ON":"OFF"}),a.jsx("span",{className:"gateway_apikey_dialog__switchKnob"})]})]}),a.jsxs("div",{className:"gateway_apikey_dialog__detail",children:[a.jsx("span",{className:"gateway_apikey_dialog__detailLabel",children:"Key"}),a.jsxs("span",{className:"gateway_apikey_dialog__detailValue gateway_apikey_dialog__detailValue_key",children:[j(t.apikey),a.jsx("button",{type:"button",className:"gateway_apikey_dialog__copyBtn",onClick:()=>void i(t.apikey),"aria-label":e("gatewayApiKey.copyKey"),children:a.jsx("img",{className:"gateway_apikey_dialog__copyIcon",src:new URL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAACXBIWXMAAAsTAAALEwEAmpwYAAABWUlEQVRYhe3YsS8DURzA8U8FiYSGxGCRzkwYROwWU0mMwtQY+5dgbgi7wcR/YDUYLDWIwSQiBoNKa+g1qtreta5VyX2Tl/fu3e/37nuXd5f3LlWpVAwSQ38t0EgiFMbACQ036ywUCvWH4yhiJuZrZ3K53EMkoQamA5kSHmMQSWMKk+hKqMYtFmIQyuOg1cn/MYdwjsWGmHncRxy3iC28xCWUbdI3gkzEcTO4wBre4hCC1w4E6rnBLFZxpnpzpTiEKrp45CgH9RPWcYydYLxQejmps3jGNvajJvVS6BITQTuPvShJvRC6Duq06otQYyVKci+ENpGqKxudJA/chzERCiMRCiMRCqOTBdpvWcahr2VNU/opNBeUGk1XAP0UusJR0H5XXcT9oJ9CdzgNC2onNIrdGESWOgluJzSGk9+5fOMjSlAroYzqvikuyiJuEFLJ75gQEqEwBk7oE5CnMiGC6jI6AAAAAElFTkSuQmCC",import.meta.url).href,alt:""})})]})]}),a.jsx("div",{className:"gateway_apikey_dialog__divider"}),a.jsxs("div",{className:"gateway_apikey_dialog__detail gateway_apikey_dialog__detail_last",children:[a.jsx("span",{className:"gateway_apikey_dialog__detailLabel",children:e("gatewayApiKey.createdAt")}),a.jsx("span",{className:"gateway_apikey_dialog__detailValue",children:N(t.createTime)})]})]},t.id))]})}export{T as default};
//# sourceMappingURL=index-fXtsv2My.js.map

2
dist/assets/index-B4QwmRF1.js.map → dist/assets/index-fXtsv2My.js.map

File diff suppressed because one or more lines are too long

4
dist/assets/index-DL-YrAe9.js → dist/assets/index-i60yJLzt.js

@ -1,2 +1,2 @@
import{j as e}from"./markdown-vendor-DnN-_XEd.js";import{u as T,r as a}from"./data-vendor-DOiUz3Tw.js";import{bL as w,bU as A}from"./index-D1KhT7yD.js";import{M as d,I as N,B}from"./arco-vendor-Cm-ntj-q.js";import"./react-vendor-B8OyfHW2.js";const b=15,j=50,O=N.TextArea;function G({initialData:_,onClose:m,onSaved:f}){const{t:p}=T(),t=a.useCallback((r,s)=>p(r,{defaultValue:s}),[p]),[U,h]=a.useState(!1),[n,k]=a.useState(_.name??""),[l,y]=a.useState(_.signature??""),[c,L]=a.useState(_.avatar??""),[g,R]=a.useState(null),x=a.useRef(null),i=a.useRef(null),C=a.useMemo(()=>n.length,[n]),S=a.useMemo(()=>l.length,[l]),I=a.useCallback(()=>{x.current?.click()},[]),E=a.useCallback(r=>{const s=r.target.files?.[0];if(!s)return;R(s),i.current&&URL.revokeObjectURL(i.current);const u=URL.createObjectURL(s);i.current=u,L(u)},[]);a.useEffect(()=>()=>{i.current&&URL.revokeObjectURL(i.current)},[]);const M=a.useCallback(async()=>{const r=n.trim(),s=l.trim();if(!r){d.warning(t("user.nickname_input_placeholder","Please enter nickname"));return}if(!s){d.warning(t("user.signature_input_placeholder","Please enter profile"));return}h(!0);try{let u="";if(g){const v=await w(g,"avatar");u=String(v?.url??v?.data?.url??"")}const o={avatar:u||c,name:r,signature:s};await A({name:o.name,signature:o.signature,avatar:o.avatar}),f?.(o),d.success(t("common.save_success","Saved successfully")),m()}catch{d.error(t("common.operate_failed","Operation failed, please try again later"))}finally{h(!1)}},[c,n,m,f,l,t,g]);return e.jsxs("div",{className:"user_edit_dialog",children:[e.jsxs("div",{className:"user_edit_dialog__title",children:[e.jsx("span",{children:t("user.edit_profile","Edit profile")}),e.jsx("button",{type:"button",className:"user_edit_dialog__close",onClick:m,"aria-label":t("button.close","Close"),children:"×"})]}),e.jsxs("div",{className:"user_edit_dialog__content",children:[e.jsx("div",{className:"user_edit_dialog__avatarWrapper",children:c?e.jsx("img",{className:"user_edit_dialog__avatar",src:c,alt:"avatar"}):null}),e.jsx("input",{ref:x,type:"file",accept:"image/*",className:"user_edit_dialog__hiddenInput",onChange:E}),e.jsx("button",{type:"button",className:"user_edit_dialog__avatarButton",onClick:I,children:t("user.change_avatar","Change avatar")}),e.jsx("label",{className:"user_edit_dialog__label user_edit_dialog__label_required",children:t("user.nickname","Nickname")}),e.jsxs("div",{className:"user_edit_dialog__inputBody",children:[e.jsx(N,{className:"user_edit_dialog__input",name:"name",placeholder:t("user.nickname_input_placeholder","Please enter nickname"),maxLength:b,value:n,onChange:k}),e.jsxs("div",{className:"user_edit_dialog__suffix",children:[e.jsx("span",{children:C})," / ",b]})]}),e.jsx("div",{className:"user_edit_dialog__description",children:t("user.nickname_input_description","You can use letters and numbers. Up to 15 characters.")}),e.jsx("label",{className:"user_edit_dialog__label user_edit_dialog__label_required",children:t("user.signature","Profile")}),e.jsxs("div",{className:"user_edit_dialog__inputBody",children:[e.jsx(O,{className:"user_edit_dialog__textarea",name:"signature",placeholder:t("user.signature_input_placeholder","Tell us about yourself"),maxLength:j,value:l,onChange:y,autoSize:!1}),e.jsxs("div",{className:"user_edit_dialog__suffix",children:[e.jsx("span",{children:S})," / ",j]})]}),e.jsx("div",{className:"user_edit_dialog__buttons",children:e.jsx(B,{type:"primary",loading:U,onClick:()=>void M(),children:p("button.save")})})]})]})}export{G as default};
//# sourceMappingURL=index-DL-YrAe9.js.map
import{j as e}from"./markdown-vendor-DnN-_XEd.js";import{u as T,r as a}from"./data-vendor-DOiUz3Tw.js";import{bL as w,bU as A}from"./index-CcS3ZJ2N.js";import{M as d,I as N,B}from"./arco-vendor-Cm-ntj-q.js";import"./react-vendor-B8OyfHW2.js";const b=15,j=50,O=N.TextArea;function G({initialData:_,onClose:m,onSaved:f}){const{t:p}=T(),t=a.useCallback((r,s)=>p(r,{defaultValue:s}),[p]),[U,h]=a.useState(!1),[n,k]=a.useState(_.name??""),[l,y]=a.useState(_.signature??""),[c,L]=a.useState(_.avatar??""),[g,R]=a.useState(null),x=a.useRef(null),i=a.useRef(null),C=a.useMemo(()=>n.length,[n]),S=a.useMemo(()=>l.length,[l]),I=a.useCallback(()=>{x.current?.click()},[]),E=a.useCallback(r=>{const s=r.target.files?.[0];if(!s)return;R(s),i.current&&URL.revokeObjectURL(i.current);const u=URL.createObjectURL(s);i.current=u,L(u)},[]);a.useEffect(()=>()=>{i.current&&URL.revokeObjectURL(i.current)},[]);const M=a.useCallback(async()=>{const r=n.trim(),s=l.trim();if(!r){d.warning(t("user.nickname_input_placeholder","Please enter nickname"));return}if(!s){d.warning(t("user.signature_input_placeholder","Please enter profile"));return}h(!0);try{let u="";if(g){const v=await w(g,"avatar");u=String(v?.url??v?.data?.url??"")}const o={avatar:u||c,name:r,signature:s};await A({name:o.name,signature:o.signature,avatar:o.avatar}),f?.(o),d.success(t("common.save_success","Saved successfully")),m()}catch{d.error(t("common.operate_failed","Operation failed, please try again later"))}finally{h(!1)}},[c,n,m,f,l,t,g]);return e.jsxs("div",{className:"user_edit_dialog",children:[e.jsxs("div",{className:"user_edit_dialog__title",children:[e.jsx("span",{children:t("user.edit_profile","Edit profile")}),e.jsx("button",{type:"button",className:"user_edit_dialog__close",onClick:m,"aria-label":t("button.close","Close"),children:"×"})]}),e.jsxs("div",{className:"user_edit_dialog__content",children:[e.jsx("div",{className:"user_edit_dialog__avatarWrapper",children:c?e.jsx("img",{className:"user_edit_dialog__avatar",src:c,alt:"avatar"}):null}),e.jsx("input",{ref:x,type:"file",accept:"image/*",className:"user_edit_dialog__hiddenInput",onChange:E}),e.jsx("button",{type:"button",className:"user_edit_dialog__avatarButton",onClick:I,children:t("user.change_avatar","Change avatar")}),e.jsx("label",{className:"user_edit_dialog__label user_edit_dialog__label_required",children:t("user.nickname","Nickname")}),e.jsxs("div",{className:"user_edit_dialog__inputBody",children:[e.jsx(N,{className:"user_edit_dialog__input",name:"name",placeholder:t("user.nickname_input_placeholder","Please enter nickname"),maxLength:b,value:n,onChange:k}),e.jsxs("div",{className:"user_edit_dialog__suffix",children:[e.jsx("span",{children:C})," / ",b]})]}),e.jsx("div",{className:"user_edit_dialog__description",children:t("user.nickname_input_description","You can use letters and numbers. Up to 15 characters.")}),e.jsx("label",{className:"user_edit_dialog__label user_edit_dialog__label_required",children:t("user.signature","Profile")}),e.jsxs("div",{className:"user_edit_dialog__inputBody",children:[e.jsx(O,{className:"user_edit_dialog__textarea",name:"signature",placeholder:t("user.signature_input_placeholder","Tell us about yourself"),maxLength:j,value:l,onChange:y,autoSize:!1}),e.jsxs("div",{className:"user_edit_dialog__suffix",children:[e.jsx("span",{children:S})," / ",j]})]}),e.jsx("div",{className:"user_edit_dialog__buttons",children:e.jsx(B,{type:"primary",loading:U,onClick:()=>void M(),children:p("button.save")})})]})]})}export{G as default};
//# sourceMappingURL=index-i60yJLzt.js.map

2
dist/assets/index-DL-YrAe9.js.map → dist/assets/index-i60yJLzt.js.map

File diff suppressed because one or more lines are too long

1
dist/assets/index-l82-b93a.js.map

File diff suppressed because one or more lines are too long

2
dist/index.html

@ -18,7 +18,7 @@
<!-- <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet"> -->
<!-- <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> -->
<!-- <link href="https://cdn.quilljs.com/1.3.6/quill.snow.css" rel="stylesheet"> -->
<script type="module" crossorigin src="/assets/index-D1KhT7yD.js"></script>
<script type="module" crossorigin src="/assets/index-CcS3ZJ2N.js"></script>
<link rel="modulepreload" crossorigin href="/assets/data-vendor-DOiUz3Tw.js">
<link rel="modulepreload" crossorigin href="/assets/markdown-vendor-DnN-_XEd.js">
<link rel="modulepreload" crossorigin href="/assets/react-vendor-B8OyfHW2.js">

BIN
popiart-website-new.zip

Binary file not shown.

6
src/components/AvatarCropModal/index.scss

@ -26,7 +26,8 @@ $font: "Source Han Sans CN", "Noto Sans SC", system-ui, sans-serif;
padding: 11px 22px 0;
display: flex;
align-items: flex-start;
justify-content: space-between;
justify-content: center;
position: relative;
}
.avatarCropModal__backBtn {
@ -59,6 +60,9 @@ $font: "Source Han Sans CN", "Noto Sans SC", system-ui, sans-serif;
}
.avatarCropModal__closeBtn {
position: absolute;
top: 10px;
right: 10px;
width: 20px;
height: 20px;
border: none;

4
src/components/AvatarCropModal/index.tsx

@ -128,10 +128,10 @@ export default function AvatarCropModal({ image, onUploaded, onClose }: AvatarCr
<div className="avatarCropModal">
<div className="avatarCropModal__container" role="dialog" aria-modal="true" aria-label={t("avatarCrop.dialogAria")}>
<div className="avatarCropModal__header">
<button type="button" className="avatarCropModal__backBtn" onClick={closeModal} disabled={uploading}>
{/* <button type="button" className="avatarCropModal__backBtn" onClick={closeModal} disabled={uploading}>
<span className="avatarCropModal__backText">{t("avatarCrop.back")}</span>
<img alt="" className="avatarCropModal__backIcon" src={CROP_BACK_ICON} />
</button>
</button> */}
<h3 className="avatarCropModal__title">{t("avatarCrop.title")}</h3>
<button type="button" className="avatarCropModal__closeBtn" onClick={closeModal} disabled={uploading} aria-label={t("avatarCrop.closeAria")}>
<img alt="" src={CROP_CLOSE_ICON} />

Loading…
Cancel
Save