1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{17418:function(e,t,s){Promise.resolve().then(s.t.bind(s,58877,23)),Promise.resolve().then(s.bind(s,13444)),Promise.resolve().then(s.bind(s,21087)),Promise.resolve().then(s.bind(s,54322)),Promise.resolve().then(s.bind(s,92940)),Promise.resolve().then(s.t.bind(s,84080,23)),Promise.resolve().then(s.bind(s,10912)),Promise.resolve().then(s.bind(s,61481)),Promise.resolve().then(s.bind(s,95956)),Promise.resolve().then(s.t.bind(s,34025,23))},13444:function(e,t,s){"use strict";s.r(t);var a=s(2265),i=s(93122),n=s(53282);let l=new Set(["http:","https:"]),r=["itingnao.com","699pic.com","feishu.cn","qq.com","apps.apple.com","miit.gov.cn","beian.gov.cn","scjgj.sh.gov.cn","douyin.com","bilibili.com","xiaohongshu.com","kuaishou.com","ximalaya.com","xiaoyuzhoufm.com","meeting.tencent.com","meeting.qq.com","mp.weixin.qq.com","zhihu.com","weibo.com","douban.com","toutiao.com","36kr.com"],c=[n.sI,n.yb,n.FB,n.JU,n.Qn,n.mR];function o(e){let t;let s=e.trim();if(!s||s.startsWith("#"))return!0;try{t=new URL(s,window.location.href)}catch(e){return!1}return!!l.has(t.protocol)&&(t.origin===window.location.origin||function(e){let t=e.toLowerCase();return[...r,...c.map(e=>e?function(e){try{return new URL(e).hostname.toLowerCase()}catch(t){try{return new URL("https://".concat(e)).hostname.toLowerCase()}catch(e){return""}}}(e):"").filter(Boolean)].some(e=>{let s=e.toLowerCase();return t===s||t.endsWith(".".concat(s))})}(t.hostname))}t.default=function(){return(0,a.useEffect)(()=>{let e=0,t=window.open,s=t=>{let s=Date.now();s-e<1200||(e=s,console.warn("[GlobalLinkGuard] blocked unsafe link:",t),i.ZP.warning("龿¥ä¸ç¬¦åå®å
¨è¦æ±ï¼å·²é»æ¢è·³è½¬"))},a=e=>(s(e),null),n=e=>{let t=e.target instanceof Element?e.target.closest("a[href]"):null;if(!t||t.hasAttribute("download"))return;let s=t.getAttribute("href")||"";o(s)||(e.preventDefault(),e.stopImmediatePropagation(),a(s))};return window.open=(e,s,i)=>e&&!o(String(e))?a(String(e)):t.call(window,e,s,i),document.addEventListener("click",n,!0),()=>{document.removeEventListener("click",n,!0),window.open=t}},[]),null}},21087:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return ez}});var a=s(57437),i=s(2265),n=s(43290),l=s(90590),r=s(16463),c=s(44939),o=s(74715),d=s(79898),x=s(50055),p=s(53282),m=s(39238),u=s(3181);s(75808);var h=function(){var e;let t=(0,d.ZV)(m.j2.PreferenceOverlay),s=(0,d.Jh)(),{teamInfo:n}=(0,d.$h)(),l=(0,r.useSearchParams)(),h=(0,u.fJ)(null!==(e=null==l?void 0:l.toString())&&void 0!==e?e:null),[f,v]=(0,i.useState)(1),[g,j]=(0,i.useState)([]),[b,w]=(0,i.useState)(!1),[N,y]=(0,i.useState)({industry:"",career:"",gender:69,age:void 0,source:""}),[_,k]=(0,i.useState)({flag:!1,value:""}),[F,E]=(0,i.useState)({flag:!1,value:""}),[C,S]=(0,i.useState)({flag:!1,value:""}),[P,O]=(0,i.useState)(null),Z=async()=>{let e=await (0,x.et)();if(200===e.code){let t={};Object.keys(e.data).forEach(s=>{t[s]=[],Object.keys(e.data[s]).forEach(a=>{t[s].push(e.data[s][a])})}),O(t)}};(0,i.useEffect)(()=>{t.open&&Z()},[t]),(0,i.useEffect)(()=>{let e=e=>{let{type:t}=e.detail||{};"preference"===t&&(0,d.dr)(m.j2.PreferenceOverlay),"close-all"===t&&(0,d.mh)(m.j2.PreferenceOverlay)};return window.addEventListener(u.vH,e),()=>window.removeEventListener(u.vH,e)},[]),(0,i.useEffect)(()=>{!h&&(null==n?void 0:n.team_id)&&t.open&&(0,d.mh)(m.j2.PreferenceOverlay)},[null==n?void 0:n.team_id,t.open,h]);let I=e=>{console.log("item",e),y(Object.assign({},N,{career:e.id})),"å
¶ä»"===e.name?k({flag:!0,value:""}):k({flag:!1,value:""})},J=e=>{y(Object.assign({},N,{industry:e.id})),j(1930===e.id?P[9]:32===e.id?P[10]:P["2"]),"å
¶ä»"===e.name?E({flag:!0,value:""}):E({flag:!1,value:""})},A=e=>{y(Object.assign({},N,{age:e.id}))},D=e=>{y(Object.assign({},N,{gender:e.id}))},z=e=>{k(t=>Object.assign({},t,{value:e.target.value}))},L=e=>{E(t=>Object.assign({},t,{value:e.target.value}))},U=e=>{S(t=>Object.assign({},t,{value:e.target.value}))},B=e=>{y(Object.assign({},N,{source:e.id})),"å
¶ä»"===e.name?S({flag:!0,value:""}):S({flag:!1,value:""})},T=async()=>
1{if(1===f&&N.industry){if(F.flag&&!F.value){c.yw.warning("请è¾å
¥å
¶ä»è¡ä¸");return}v(2)}if(2===f&&N.career){if(_.flag&&!_.value){c.yw.warning("请è¾å
¥å
¶ä»èä¸");return}v(3);return}if(3===f){if(!N.age)return c.yw.warning("è¯·éæ©å¹´é¾"),!1;if(!N.source)return c.yw.warning("è¯·éæ©æ¥æº"),!1;if(C.flag&&!C.value)return c.yw.warning("请è¾å
¥å
¶ä»æ¥æº"),!1;let t=[],a=null;if(N.career){let e=g.filter(e=>e.id=N.career);t.push({note:_.value,type:2,p_id:Number.parseInt("0"===e[0].id?P[2].filter(e=>"å
¶ä»"===e.name)[0].id:e[0].id),uid:null==s?void 0:s.id})}if(N.industry){let e=P["1"].filter(e=>e.id=N.industry);t.push({note:F.value,type:1,p_id:Number.parseInt(e[0].id),uid:null==s?void 0:s.id})}if(N.gender){var e;a=P["3"].filter(e=>e.id=N.gender),t.push({note:"",type:3,p_id:a&&Number.parseInt(null===(e=a[0])||void 0===e?void 0:e.id),uid:null==s?void 0:s.id})}if(N.age){let e=P["4"].filter(e=>e.id=N.age);e[0].pid=a&&a[0].id,t.push({note:"",type:4,p_id:Number.parseInt(e[0].id),uid:null==s?void 0:s.id})}if(N.source){let e=P["5"].filter(e=>e.id=N.source);t.push({note:C.value,type:5,p_id:Number.parseInt(e[0].id),uid:null==s?void 0:s.id})}if(b)return;w(!0);let i=/macintosh|mac os x/i.test(navigator.userAgent),n=await (0,x.Lj)({data:t,deviceBrand:i?"mac":"windows",deviceModel:i?"mac":"windows",ua:navigator.userAgent});w(!1),200===n.code?(c.yw.success("已填åæå"),(0,d.mh)(m.j2.PreferenceOverlay)):c.yw.warning(n.msg)}};return(null==n?void 0:n.team_id)?null:(0,a.jsx)(a.Fragment,{children:t.open&&(0,a.jsx)("div",{className:"preference-row",children:(0,a.jsxs)("div",{className:"preference-row-box",children:[(0,a.jsxs)("div",{className:"preference-row-box-head",children:[(0,a.jsxs)("strong",{className:"preference-row-box-head-title",children:["ä»
é3æ¥ï¼å¡«å宿å³å¯",(0,a.jsx)("em",{className:"text-[#0F67FE]",children:"å
è´¹é¢å20åéè½¬åæ¶é¿"})]}),(0,a.jsx)("div",{className:"preference-steps-wrap",children:(0,a.jsx)(o.Z,{current:f-1,items:[{key:1,title:"éæ©æ¨çè¡ä¸"},{key:2,title:"éæ©æ¨çèä¸"},{key:3,title:"å¡«åä¿¡æ¯"}],size:"small"})}),(0,a.jsx)("span",{className:"close",onClick:()=>{(0,d.mh)(m.j2.PreferenceOverlay)},children:"æåæ³æ³"})]}),(0,a.jsxs)("div",{className:"preference-row-box-con",children:[(0,a.jsx)("div",{className:"preference-row-box-con-scene ".concat(1===f?"active":""),children:P&&P[1].map((e,t)=>"å
¶ä»"!==e.name?(0,a.jsxs)("div",{className:"preference-row-box-con-scene-item ".concat(N.industry===e.id?"active":""),onClick:()=>J(e),children:[e.name,(0,a.jsx)("i",{className:"iconfont",children:(0,a.jsx)(c.JO,{name:"icon-fanhui1"})})]},t):null)}),1===f&&(0,a.jsx)("div",{className:"preference-row-box-con-scene-item-input",children:(0,a.jsx)("input",{value:F.value,maxLength:16,onClick:()=>J(g.filter(e=>"å
¶ä»"===e.name)[0]),onChange:e=>L(e),placeholder:"请è¾å
¥å
¶ä»è¡ä¸"})}),(0,a.jsx)("div",{className:"preference-row-box-con-scene ".concat(2===f?"active":""),children:g.map((e,t)=>"å
¶ä»"!==e.name?(0,a.jsxs)("div",{className:"preference-row-box-con-scene-item ".concat(N.career===e.id?"active":""),onClick:()=>I(e),children:[(0,a.jsx)("span",{children:e.name}),(0,a.jsx)("i",{className:"iconfont",children:(0,a.jsx)(c.JO,{name:"icon-fanhui1"})})]},t):null)}),2===f&&(0,a.jsx)("div",{className:"preference-row-box-con-scene-item-input",children:(0,a.jsx)("input",{value:_.value,onClick:()=>I({id:"0",name:"å
¶ä»"}),maxLength:16,onChange:e=>z(e),placeholder:"请è¾å
¥å
¶ä»èä¸"})}),(0,a.jsxs)("div",{className:"preference-row-box-con-base ".concat(3===f?"active":""),children:[(0,a.jsx)("div",{className:"base-gender",children:P&&P["3"].map((e,t)=>(0,a.jsxs)("div",{className:"base-gender-item ".concat(N.gender===e.id?"active":""),onClick:()=>D(e),children:[(0,a.jsx)("img",{src:"".concat(p.JU,"/assets/images/").concat(69===e.id?"photo-nan":"photo-nv",".png"),alt:""}),(0,a.jsx)("span",{children:e.name}),(0,a.jsx)("i",{className:"iconfont",children:(0,a.jsx)(c.JO,{name:"icon-fanhui1",color:"#fff"})})]},t))}),(0,a.jsx)("div",{className:"base-select",children:(0,a.jsx)("div",{className:"base-select-item-age",children:P&&P["4"].map((e,t)=>(0,a.jsx)("div",{className:"age-item ".concat(e.id===N.age?"active":""),onClick:()=>A(e),children:e.name},t))})}),(0,a.jsx)("p",{className:"preference-source-title",children:"æ¨ä»åªéæ¾å°æä»¬?"}),(0,a.jsxs)("div",{className:"base-select",children:[(0,a.jsx)("div",{className:"base-select-item-age overflow-hidden !mt-[6px]",children:P&&P["5"].map((e,t)=>"å
¶ä»"!==e.name?(0,a.jsx)("div",{className:"age-item ".concat(e.id===N.source?"active":""),onClick:()=>B(e),children:e.name},t):null)}),(0,a.jsx)("div",{className:"preference-row-box-con-scene-item-input",children:(0,a.jsx)("input",{value:C.value,maxLength:16,onClick:()=>B(P["5"].filter(e=>"å
¶ä»"===e.name)[0]),onChange:e=>U(e),placeholder:"请è¾å
¥å
¶ä»æ¸ é"})})]})]})]}),(0,a.jsxs)("div",{className:"preference-row-box-foot",children:[f>1&&(0,a.jsx)("button",{className:"ai_ant-btn-gray",onClick:()=>{v(f-1),2===f&&(y(Object.assign({},N,{career:""})),k({flag:!1,value:""}),k({flag:!1,value:""}))},children:"ä¸ä¸æ¥"}),(0,a.jsx)("button",{className:"ant-btn-default",disabled:!N.industry&&1===f||!N.career&&2===f,onClick:T,children:3!==f?"ä¸ä¸æ¥":"宿"})]})]})})})},f=s(32578),v=s(56955),g=s(99052),j=s(14441),b=s(91987),w=s(70358),N=s(16152);s(7654);let y=e=>[{name:"20åéè½¬åæ¶é¿",icon:"/assets/images/vip/1.png"},{name:e?"5 积å":"10,000AIåæ°",icon:"/assets/images/vip/2.png"}];var _=function(){var e;let t=(0,d.Jh)(),s=(0,r.useSearchParams)(),{teamInfo:n}=(0,d.$h)(),l=(0,w.dD)(),o=(0,d.ZV)(m.j2.ActivityOverlay),x=(0,d.ZV)(m.j2.VipActivityOverlay),h=(0,d.ZV)(m.j2.PreferenceOverlay),v=(0,u.fJ)(null!==(e=null==s?void 0:s.toString())&&void 0!==e?e:null),g=o.open&&(!l||v),_=x.open&&(!l||v),[k,F]=(0,i.useState)(!1),E=(0,i.useMemo)(()=>y(k),[k]);(0,i.useEffect)(()=>{(0,j.tk)(N.qI).then(e=>{var t;200===e.code&&(null===(t=e.data)||void 0===t?void 0:t[N.qI])&&F(!0)})},[]),(0,i.useEffect)(()=>{let e=e=>{let{type:t}=e.detail||{};"activity"===t&&(0,d.dr)(m.j2.ActivityOverlay),"vip-activity"===t&&(0,d.dr)(m.j2.VipActivityOverlay),"close-all"===t&&((0,d.mh)(m.j2.ActivityOverlay),(0,d.mh)(m.j2.VipActivityOverlay))};return window.addEventListener(u.vH,e),()=>window.removeEventListener(u.vH,e)},[]),(0,i.useEffect)(()=>{!v&&(null==n?void 0:n.team_id)&&o.open&&(0,d.mh)(m.j2.ActivityOverlay)},[null==n?void 0:n.team_id,o.open,v]),(0,i.useEffect)(()=>{!v&&l&&(o.open&&(0,d.mh)(m.j2.ActivityOverlay),x.open&&(0,d.mh)(m.j2.VipActivityOverlay))},[l,o.open,x.open,v]);let C=async()=>{(0,d.mh)(m.j2.ActivityOverlay);let e=await (0,b.s8)();if((200!==e.code||1!==e.data.has_buy)&&(!l||v)&&(null==t?void 0:t.uuid)&&!(null==n?void 0:n.team_id)&&!h.open&&!s.get("team_id")&&!x.open){let e=localStorage.getItem("activityStore_".concat(null==t?void 0:t.uuid))?JSON.parse(localStorage.getItem("activityStore_".concat(null==t?void 0:t.uuid))):null,
1s=new Date().getDay();(!e||e&&e.t!==s)&&((0,d.dr)(m.j2.VipActivityOverlay),localStorage.setItem("activityStore_".concat(null==t?void 0:t.uuid),JSON.stringify({t:s})))}};return(null==n?void 0:n.team_id)&&!v?null:(0,a.jsxs)(a.Fragment,{children:[g&&(0,a.jsx)("div",{className:"activity-row fixed left-0 top-0 w-full h-full bg-black/50 flex justify-center items-center",children:(0,a.jsxs)("div",{className:"activity-box",children:[(0,a.jsxs)("strong",{className:"activity-box__title",children:["HI å¬èAIæ¯æ¥ç¦å©",(0,a.jsx)("br",{}),"已为æ¨åæ¾ä»æ¥å
è´¹ç¦å©ï¼å¿«å»ä½¿ç¨å§ï¼"]}),(0,a.jsx)("div",{className:"activity-box__sku-list",children:E.map((e,t)=>(0,a.jsxs)("div",{className:"activity-box__sku-item",children:[(0,a.jsx)("img",{className:"activity-box__sku-icon",src:p.JU+e.icon,alt:""}),(0,a.jsx)("p",{className:"activity-box__sku-name",children:e.name})]},t))}),(0,a.jsx)("p",{className:"activity-box__tip",children:"以䏿çä»
24å°æ¶å
ææï¼å¿«å»ä½¿ç¨å§ï½"}),(0,a.jsx)("div",{className:"activity-box__btn",onClick:C,children:"ç«å³ä½¿ç¨"})]})}),_&&(0,a.jsx)("div",{className:"activity-row fixed left-0 top-0 w-full h-full bg-black/50 flex justify-center items-center z-[1000]",children:(0,a.jsxs)("div",{className:"w-[410px] max-w-[calc(100vw-32px)] relative",children:[(0,a.jsx)("img",{className:"w-full block cursor-pointer",src:"".concat(p.JU,"/assets/images/app/recharge/activity-recharge1.png"),alt:"",onClick:()=>{(0,f.U9)({event:"web_click",page_model:201}),window.open("/activity"),(0,d.mh)(m.j2.VipActivityOverlay)}}),(0,a.jsx)("span",{className:"absolute w-[22px] h-[22px] shrink-0 rounded-[22px] bg-[rgba(255,255,255,0.4)] left-0 right-0 m-auto bottom-[-30px] cursor-pointer flex items-center justify-center text-[#fff]",onClick:()=>{(0,d.mh)(m.j2.VipActivityOverlay)},children:(0,a.jsx)(c.JO,{name:"icon-guanbi-copy"})})]})})]})},k=s(9257),F=s(32225),E=s(56800),C=s.n(E),S=s(71763);s(83598);var P=function(){let e=(0,i.useRef)(0),[t,s]=k.Z.useModal(),n=(0,w.dD)(),[l,r]=(0,i.useState)([]),[o,x]=(0,i.useState)([]),[p,u]=(0,i.useState)(""),h=(0,d.ZV)(m.j2.WordListOverlay),[f,v]=(0,i.useState)(!1),[g,b]=(0,i.useState)(!1),N=(0,d.Jh)(),y=(0,i.useMemo)(()=>(null==N?void 0:N.is_life_vip)===!0||(null==N?void 0:N.is_vip)===1,[N]),_=y?100:10,E=(0,i.useRef)(!0),P=async()=>{let e=await (0,j.Up)();200===e.code&&(v(e.data.hot),b(e.data.trade_status),setTimeout(()=>{E.current=!1},100))},O=async()=>{let e=await (0,j.o3)();if(e&&200===e.code&&e.data){let t=[];Array.isArray(e.data)&&e.data.forEach(e=>{e.data&&Array.isArray(e.data)&&e.data.forEach(e=>{t.push({id:e.id,name:e.name,type_id:e.type_id,CreateAt:e.CreateAt||e.create_time||Date.now()})})}),r(t)}},Z=async()=>{try{var e;let t=await (0,j.ds)();t&&200===t.code&&(null===(e=t.data)||void 0===e?void 0:e.list)&&x(t.data.list)}catch(e){console.error("è·åAIæ¨èè¯å¤±è´¥:",e)}},I=async()=>{let e=await (0,j.TS)({trade_id:g?16:75,hot:f});200===e.code?c.yw.success("ä¿®æ¹æå"):c.yw.error(e.message)};(0,i.useEffect)(()=>{h.open&&(e.current=Date.now(),O(),P(),Z()),u("")},[h.open]),(0,i.useEffect)(()=>{E.current||I()},[f,g]);let J=()=>{let e=l.length;if(e>=_){let t="";return t=y||10!==e?y&&e>=100?"è¯åºå·²æ»¡ï¼VIPç¨æ·æå¤100ä¸ªè¯æ¡":"è¯åºå·²æ»¡":"è¯åºå·²æ»¡ï¼æ®éç¨æ·æå¤10ä¸ªè¯æ¡",c.yw.warning(t),!1}return!0},A=async e=>{t.confirm({title:"æç¤º",content:'ç¡®å®å é¤"'.concat(e.name,'"åï¼'),okText:"ç¡®å®",cancelText:"åæ¶",onOk:async()=>{let t=await (0,j.oY)(e.id);200===t.code?(c.yw.success("å 餿å"),O()):c.yw.error(t.message||"å é¤å¤±è´¥")}})},D=async()=>{let e=p.trim();if(!e){c.yw.warning("请è¾å
¥è¯æ¡");return}if(l.some(t=>t.name===e))return c.yw.warning("è¯¥è¯æ¡å·²åå¨");if(!J())return;let t=await (0,j.Bd)({type_id:0,hotword:e});200===t.code?(c.yw.success("æ·»å æå"),O(),u("")):c.yw.error(t.message||"æ·»å 失败")},z=async(e,t)=>{if(l.some(t=>t.name===e.name))return c.yw.warning("è¯¥è¯æ¡å·²åå¨");if(!J())return;let s=await (0,j.Bd)({type_id:0,hotword:e.name});if(200===s.code){let e=[...o];e.splice(t,1),x(e),c.yw.success("æ·»å æå"),O(),0===e.length&&Z()}else c.yw.error(s.message||"æ·»å 失败")};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(k.Z,{open:h.open,width:n?"100%":750,footer:null,centered:!n,rootClassName:"hotwordModel",className:C()("pointer-events-auto",{"hotwordModel--mobile":n}),classNames:n?{wrapper:"hotwordModel--mobile-wrap"}:void 0,style:{pointerEvents:"auto"},styles:n?{wrapper:{display:"flex",alignItems:"flex-end",overflow:"hidden",pointerEvents:"none"},body:{maxHeight:"calc(92dvh - 48px)",overflowY:"auto",paddingBottom:"env(safe-area-inset-bottom)"}}:{container:{pointerEvents:"auto"}},onCancel:()=>{Date.now()-e.current<300||(0,d.mh)(m.j2.WordListOverlay)},children:(0,a.jsxs)("div",{className:"hotword-modal",children:[(0,a.jsxs)("div",{className:"hotword-modal__header",children:[(0,a.jsx)("span",{className:"hotword-modal__header-bar"}),(0,a.jsx)("div",{className:"hotword-modal__title",children:"è¯åºç®¡ç"})]}),(0,a.jsxs)("div",{className:"hotword-modal__switches",children:[(0,a.jsxs)("div",{className:"hotword-modal__switch-card",children:[(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("p",{className:"hotword-modal__switch-name",children:"è¡ä¸è¯åº"}),(0,a.jsx)("p",{className:"hotword-modal__switch-desc",children:"æé«è¡ä¸æ¯è¯çè¯å«åç¡®ç"})]}),(0,a.jsx)(F.Z,{value:g,onChange:e=>{b(e)}})]}),(0,a.jsxs)("div",{className:"hotword-modal__switch-card",children:[(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("p",{className:"hotword-modal__switch-name",children:"çé¨è¯åº"}),(0,a.jsx)("p",{className:"hotword-modal__switch-desc",children:"äºèç½æ°è¯æ°æ¢çè¯å«åç¡®çæ´é«"})]}),(0,a.jsx)(F.Z,{value:f,onChange:e=>{v(e)}})]})]}),(0,a.jsxs)("div",{className:"hotword-modal__recommend",children:[(0,a.jsxs)("div",{className:"hotword-modal__recommend-header",children:[(0,a.jsx)("img",{className:"hotword-modal__recommend-icon",src:"".concat(S.p,"images/icon/ai_recommend_revision.png"),alt:""}),(0,a.jsx)("span",{className:"hotword-modal__recommend-label",children:"AIçè¯æ¨è"})]}),(0,a.jsx)("div",{className:"hotword-modal__recommend-body",children:o.length>0?o.map((e,t)=>(0,a.jsxs)("div",{className:"hotword-modal__recommend-tag",onClick:()=>z(e,t),children:[(0,a.jsx)("span",{className:"hotword-modal__tag-text",children:e.name}),(0,a.jsx)("span",{className:"hotword-modal__recommend-add",children:"+"})]},"ai-".concat(t))):(0,a.jsx)("div",{className:"hotword-modal__recommend-empty",children:"积累å½é³æä»¶ï¼å³å¯å¼å¯AIçè¯æ¨è"})})]}),(0,a.jsxs)("div",{className:"hotword-modal__panel",children:[(0,a.jsxs)("div",{className:"hotword-modal__panel-head",children:[(0,a.jsxs)("div",{id:m.j2.WordListOverlay,className:"hotword-modal__panel-title",children:["æçè¯åºï¼",l.length,"ï¼"]}),(0,a.jsxs)("div",{className:"hotword-modal__add-wrap",children:[(0,a.jsx)("input",{type:"text",placeholder:"请è¾å
¥è¯æ¡",className:"hotword-modal__add-input",value:p,maxLength:10,onChange:e=>u(e.target.value),onKeyDown:e=>"Enter"===e.key&&D()}),(0,a.jsx)("div",{className:C()("hotword-modal__add-btn",{"hotword-modal__add-btn--active":p.trim()}),onClick:()=>D(),children:"æ·»å "})]})]}),(0,a.jsx)("div",{className:"hotword-modal__tags",children:l.length>0?l.map(e=>(0,a.jsxs)("div",{className:"hotword-modal__tag",children:[(0,a.jsx)("span",{className:"hotword-modal__tag-text",children:e.name}),(0,a.jsx)("span",{className:"hotword-modal__tag-delete",onClick:()=>A(e),children:"\xd7"})]},e.id)):(0,a.jsx)("div",{className:"hotword-modal__tags-empty",children:"ææ è¯æ¡ï¼æ·»å è¯æ¡æåè¯å«åç¡®ç"})})]})]})}),s]})},O=s(93122),Z=s(38984),I=s(85508),J=s(87793),A=s(73683);s(6050);var D=function(){let{open:e,folderId:t=0,initialName:s="",initialDesc:n="",initialCover:l,success:r}=(0,d.ZV)(m.j2.EditFolderInfoOverlay),o=!!e&&t>0,[x,p]=(0,i.useState)(""),[u,h]=(0,i.useState)(""),[f,v]=(0,i.useState)(void 0),[g,j]=(0,i.useState)(!1),[b,w]=(0,i.useState)(!1),N=(0,i.useRef)(null),y=()=>(0,d.mh)(m.j2.EditFolderInfoOverlay);(0,i.useEffect)(()=>{o&&(p(s),h(n||""),v(l))},[o,s,n,l]);let _=f||"https://img.itingnao.com/assets/images/icon/fileFolder.svg",F=async e=>{var t;let s=null===(t=e.target.files)||void 0===t?void 0:t[0];if(e.target.value="",s){if(!s.type.startsWith("image/")){O.ZP.warning("è¯·éæ©å¾çæä»¶");return}if(s.size>5242880){O.ZP.warning("å¾ç请å°äº 5MB");return}w(!0);try{let e=await (0,J.sr)(s);v(e)}catch(e){O.ZP.error("å°é¢ä¸ä¼ 失败")}finally{w(!1)}}},E=()=>{(0,d.bO)(),t>0&&window.dispatchEvent(new CustomEvent(d.N8,{detail:{folderId:t}}))},C=async()=>
1{if(!x.trim()){O.ZP.error("æä»¶å¤¹åç§°ä¸è½ä¸ºç©º");return}j(!0);try{let e=await (0,A.M7)({id:t,name:x.trim(),desc:u.trim(),status:1,...f?{cover:f}:{}});(null==e?void 0:e.code)===200?(O.ZP.success("ä¿®æ¹æå"),E(),y(),null==r||r()):O.ZP.warning((null==e?void 0:e.message)||"æä½å¤±è´¥")}finally{j(!1)}};return(0,a.jsxs)(k.Z,{open:o,onCancel:y,footer:null,closable:!1,width:540,centered:!0,destroyOnHidden:!0,wrapClassName:"edit-folder-info-modal-wrap",className:"pointer-events-auto",children:[(0,a.jsx)("input",{ref:N,type:"file",accept:"image/*",className:"hidden",onChange:F}),(0,a.jsxs)("div",{className:"flex flex-col bg-white",children:[(0,a.jsxs)("div",{className:"flex h-[64px] shrink-0 items-center justify-between border-b border-solid border-[#DCDCDC] px-[24px]",children:[(0,a.jsx)("h2",{className:"m-0 text-[20px] leading-[28px] tracking-[-0.45px] text-[#101828]",children:"ä¿®æ¹æä»¶å¤¹ä¿¡æ¯"}),(0,a.jsx)("button",{type:"button",className:"flex size-[28px] cursor-pointer items-center justify-center rounded-full border-0 bg-transparent p-0 text-[#8999B5] hover:bg-[#F5F8FF]","aria-label":"å
³é",onClick:y,children:(0,a.jsx)(c.JO,{name:"icon-guanbi",className:"text-[18px]"})})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-[32px] p-[24px]",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-[12px]",children:[(0,a.jsx)("div",{className:"text-[16px] font-semibold leading-[28px] tracking-[-0.44px] text-[#352F44]",children:"åç§°"}),(0,a.jsx)(Z.default,{value:x,onChange:e=>p(e.target.value),maxLength:15,placeholder:"请è¾å
¥æä»¶å¤¹åç§°",className:"h-[40px] rounded-[8px] border-[#E7E7E7] text-[14px] font-medium text-[#352F44]"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-[12px]",children:[(0,a.jsx)("div",{className:"text-[16px] font-semibold leading-[28px] tracking-[-0.44px] text-[#352F44]",children:"å°é¢"}),(0,a.jsx)("div",{className:"relative size-[80px] shrink-0",children:(0,a.jsxs)("button",{type:"button",disabled:b,className:"relative size-[80px] cursor-pointer overflow-hidden rounded-full border-0 bg-[#F4F9FF] p-0",onClick:()=>{var e;return null===(e=N.current)||void 0===e?void 0:e.click()},children:[(0,a.jsx)("img",{src:_,alt:"",className:"size-full object-cover"}),(0,a.jsx)("span",{className:"pointer-events-none absolute bottom-[6px] right-[6px] flex size-[28px] items-center justify-center rounded-full bg-[rgba(44,44,44,0.6)]",children:(0,a.jsx)(c.JO,{name:"icon-bianji1",className:"text-[14px] text-white"})})]})})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-[12px]",children:[(0,a.jsx)("div",{className:"text-[16px] font-semibold leading-[28px] tracking-[-0.44px] text-[#352F44]",children:"æè¿°"}),(0,a.jsx)(Z.default.TextArea,{value:u,onChange:e=>h(e.target.value),placeholder:"å¡«åæä»¶å¤¹æè¿°",autoSize:{minRows:4,maxRows:8},maxLength:255,showCount:!0,className:"min-h-[120px] rounded-[14px] border-[#E7E7E7] py-[12px] text-[16px] leading-[24px] text-[#352F44] placeholder:text-[rgba(0,0,0,0.4)]"})]})]}),(0,a.jsxs)("div",{className:"flex h-[87px] items-center justify-end gap-[12px] bg-white pr-[30px]",children:[(0,a.jsx)(I.ZP,{className:"!h-[40px] min-w-[78px] rounded-full border-[#E7E7E7] px-[24px] text-[14px] text-[#352F44]",onClick:y,shape:"round",children:"åæ¶"}),(0,a.jsx)(I.ZP,{type:"primary",loading:g,className:"!h-[40px] min-w-[76px] rounded-full border-0 bg-[#0F67FE] px-[24px] text-[14px]",onClick:C,shape:"round",children:"确认"})]})]})]})};function z(){let e=(0,d.aA)(),[t,s]=(0,i.useState)(""),n=(0,i.useRef)(null),l=(0,i.useRef)(!1),c=(0,d.ZV)(m.j2.FolderOverlay),o=(0,d.ZV)(m.j2.MoveOverlay);(0,r.useRouter)();let x=async()=>{if(""===t.trim())return O.ZP.error("æä»¶å¤¹åç§°ä¸è½ä¸ºç©º");let a=await (0,A.M7)({name:t,id:null==e?void 0:e.id,status:1,pid:null==e?void 0:e.pid});if(200===a.code){var i;if((0,f.U9)({event:"web_click",page_model:(null==e?void 0:e.id)?78:77}),O.ZP.success((null==e?void 0:e.id)?"éå½åæå!":"æä»¶å¤¹å建æå!"),(0,d.mh)(m.j2.FolderOverlay),(0,d.bO)(),s(""),null==e||null===(i=e.onSuccess)||void 0===i||i.call(e,a.data.id),o.open)return!1;!(null==e?void 0:e.onSuccess)&&(null==e?void 0:e.pid)&&(location.href="/folders?folder_id=".concat(null==e?void 0:e.pid))}};(0,i.useEffect)(()=>
1{e.name?s(e.name):s("")},[e]),(0,i.useEffect)(()=>{if(!c.open){l.current=!1;return}if(!t.trim()||l.current||!(null==e?void 0:e.id))return;let s=window.setTimeout(()=>{var e,t,s,a;null===(t=n.current)||void 0===t||null===(e=t.select)||void 0===e||e.call(t),l.current=!0,null===(a=n.current)||void 0===a||null===(s=a.focus)||void 0===s||s.call(a)},0);return()=>window.clearTimeout(s)},[c.open,t]);let p=()=>{(0,d.mh)(m.j2.FolderOverlay)};return(0,a.jsxs)(k.Z,{open:c.open,onCancel:p,footer:null,width:500,closable:!0,centered:!0,className:"pointer-events-auto",title:(null==e?void 0:e.id)?"éå½å":"æ°å»ºæä»¶å¤¹",zIndex:1003,children:[(0,a.jsx)("div",{className:"border-b border-solid border-[#DCDCDC] mb-[30px] mt-[17px] mx-[-22px]"}),(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)(Z.default,{ref:n,className:"w-full",value:t,onChange:e=>s(e.target.value),maxLength:15,onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),x())},size:"large",placeholder:"请è¾å
¥æä»¶å¤¹åç§°",suffix:(0,a.jsxs)("span",{className:"text-[16px] text-[#352F44]",children:[t.length,"/15"]})}),(0,a.jsxs)("div",{className:"flex justify-end mt-[20px]",children:[(0,a.jsx)(I.ZP,{onClick:p,className:"mr-[12px] !h-[40px] !px-[24px]",shape:"round",children:"åæ¶"}),(0,a.jsx)(I.ZP,{htmlType:"submit",type:"primary",onClick:x,className:"!h-[40px] !px-[24px]",shape:"round",children:"确认"})]})]})]})}var L=s(62737),U=s.n(L);let B=e=>{if(!e)return"";let t=U()(e),s=U()();return t.isSame(s,"day")?"ä»å¤© ".concat(t.format("HH:mm")):t.isSame(s.subtract(1,"day"),"day")?"æ¨å¤© ".concat(t.format("HH:mm")):t.isSame(s,"year")?t.format("MM-DD HH:mm"):t.format("YYYY-MM-DD HH:mm")};function T(){let e=(0,d.y3)(),{teamList:t,teamInfo:s}=(0,d.$h)(),n=(0,d.Ao)(),[l,o]=(0,i.useState)([]),[x,p]=(0,i.useState)(!1);(0,i.useEffect)(()=>{var e;o([...(null===(e=n.editInfo)||void 0===e?void 0:e.foldersId)||[]])},[n]);let u=(0,d.ZV)(m.j2.MoveOverlay),h=(0,r.usePathname)(),[v,g]=(0,i.useState)(0),[b,w]=(0,i.useState)(""),[N,y]=(0,i.useState)(""),_=()=>{(0,d.mh)(m.j2.MoveOverlay),S()},F=async()=>{var e,t;let s=n.list[0],a={record_id_list:n.list,type:0};if((0,f.U9)({event:"web_click",page_model:5355}),v&&(a.folder_id=v),l.length&&(a.folder_ids=l),b&&(a.team_id=b),!(null===(e=n.editInfo)||void 0===e?void 0:e.foldersId.length)&&!l.length)return _(),S(),!1;if(!v&&!l.length&&!b&&!(null===(t=n.editInfo)||void 0===t?void 0:t.foldersId.length))return O.ZP.warning("è¯·éæ©æä»¶å¤¹æä¼ä¸"),!1;let i=async()=>{if(u.isCopy){let e=await (0,A.r)({record_id:s,folder_ids:l,team_id:b});200===e.code?(O.ZP.success("å¤å¶æå"),(0,d.ns)({type:0,list:[]}),_(),(0,d.bO)()):O.ZP.warning(e.message)}else{var e;let t=l.filter(e=>{var t;return!(null===(t=n.editInfo)||void 0===t?void 0:t.foldersId.includes(e))}),s=null===(e=n.editInfo)||void 0===e?void 0:e.foldersId.filter(e=>!l.includes(e));if(t.length){let e=await (0,A.vT)({...a,folder_ids:t,record_id_list:n.list,operate_type:1});200===e.code?s.length||O.ZP.success("æ·»å æå"):O.ZP.warning(e.message)}s.length&&200==(await (0,A.vT)({folder_ids:s,record_id_list:n.list,operate_type:-1,team_id:b,type:0})).code&&!t.length&&O.ZP.success("ç§»åºæå"),(0,d.ns)({type:0,list:[]}),_(),h.includes("/home")&&(0,d.dV)(),(0,d.bO)()}};if(1!==n.example_fake)return i();{let e=await (0,j.nI)(n.list[0]);if(200===e.code)return s=e.data.record_id_new,i()}};(0,i.useEffect)(()=>{u.open&&(g(0),w(""),(0,d.po)())},[u]),(null==s?void 0:s.team_id)&&!u.isCopy||(e.map(e=>(0,a.jsxs)("div",{className:"w-full text-left h-[34px] text-[14px] leading-[34px] pl-[32px] cursor-pointer flex items-center justify-between pr-[6px] hover:bg-[#D5E7FF] rounded-[6px]",onClick:()=>{g(e.id),w("")},children:[(0,a.jsx)("span",{children:e.name}),v===e.id&&(0,a.jsx)("span",{className:"text-[#0F67FE] font-bold text-[20px]",children:(0,a.jsx)(c.JO,{name:"icon-fanhui1"})})]},e.id)),c.JO);let E=function(e){o(t=>t.includes(e.id)?t.filter(t=>t!==e.id):[...t,e.id])},C=async()=>{if(""===N.trim())return O.ZP.error("æä»¶å¤¹åç§°ä¸è½ä¸ºç©º");let e=await (0,A.M7)({name:N,id:null==n?void 0:n.id,status:1});(0,f.U9)({event:"web_click",page_model:5351}),200===e.code&&(O.ZP.success((null==n?void 0:n.id)?"éå½åæå!":"æä»¶å¤¹å建æå!"),(0,d.bO)(),y(""),p(!1))},S=()=>{p(!1),y("")};return(0,a.jsx)(k.Z,{open:u.open,onCancel:()=>{_(),(0,f.U9)({event:"web_click",page_model:5353})},footer:null,width:540,closable:!0,centered:!0,className:"pointer-events-auto",title:u.isCopy?"åå»ºå¯æ¬å°":"æ·»å å°",styles:{container:{boxShadow:"none"}},children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsxs)("div",{className:"h-[626px] overflow-y-auto bar mr-[-23px] pr-[23px] pb-[70px]",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between h-[40p
1x] text-[#999]",children:[(0,a.jsx)("div",{className:"text-[14px]",children:"æä»¶å¤¹"}),(0,a.jsx)("div",{className:"cursor-pointer",onClick:()=>{p(!0),(0,f.U9)({event:"web_click",page_model:5356})},children:(0,a.jsx)(c.JO,{name:"icon-jiajian-1"})})]}),x&&(0,a.jsxs)("div",{className:"flex items-center justify-between h-[72px] pl-[2px] border-b border-gray-100 f_item cursor-pointer",children:[(0,a.jsx)("img",{className:"mr-[10px]",width:"38",src:"https://img.itingnao.com/assets/images/icon/fileFolder.svg",alt:""}),(0,a.jsx)("div",{className:"flex-1 mr-[20px]",children:(0,a.jsx)("input",{value:N,onChange:e=>y(e.target.value),maxLength:15,onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),C())},type:"text",className:"w-full h-[40px] px-[10px] border rounded-[6px] transition-all duration-200 focus:outline-none focus:border-[#0F67FE]",style:{fontSize:"14px"},placeholder:"请è¾å
¥æä»¶å¤¹åç§°"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)(I.ZP,{onClick:S,style:{borderRadius:16},children:"åæ¶"}),(0,a.jsx)(I.ZP,{className:"ml-[7px]",disabled:!N,onClick:C,type:"primary",style:{borderRadius:16},children:"ç¡®å®"})]})]}),e.map(e=>(0,a.jsxs)("div",{onClick:()=>{E(e),w("")},className:"flex items-center justify-between h-[72px] px-[2px] border-b border-[#e0e6ed] f_item cursor-pointer hover:bg-[#EFF5FE] pr-[4px]",children:[(0,a.jsx)("img",{className:"mr-[10px]",width:"38",src:"https://img.itingnao.com/assets/images/icon/fileFolder.svg",alt:""}),(0,a.jsxs)("dl",{className:"flex-1",children:[(0,a.jsx)("dt",{className:"text-left text-[#352F44] text-[16px]",children:e.name}),(0,a.jsxs)("dd",{className:"flex items-center text-[14px] text-[#999]",children:[(0,a.jsx)(c.JO,{className:"mr-[4px] text-[18px]",name:"icon-rili2"})," ",B(e.updated_at||""),(0,a.jsx)(c.JO,{className:"mr-[4px] ml-[12px] text-[20px]",name:"icon-wodewenjian"})," ",e.record_count]})]}),(0,a.jsx)("div",{children:l.includes(e.id)?(0,a.jsx)("div",{className:"w-[20px] h-[20px] rounded-[10px] bg-[#0F67FE] flex items-center justify-center",children:(0,a.jsx)(c.JO,{name:"icon-duigou",className:"text-[13px] text-[#ffffff]"})}):(0,a.jsx)("div",{className:"w-[20px] h-[20px] border border-[#A6A6A6] rounded-[10px]"})})]},e.id)),t.map(e=>(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"flex items-center justify-between py-2 pt-[15px] text-[#999]",children:(0,a.jsx)("div",{className:"text-[13px]",children:e.team_name})}),e.team_folder.map(t=>(0,a.jsxs)("div",{onClick:()=>{E(t),w(e.team_id)},className:"flex items-center justify-between h-[72px] px-[2px] border-b border-[#e0e6ed] f_item cursor-pointer hover:bg-[#EFF5FE] pr-[4px]",children:[(0,a.jsx)("img",{className:"mr-[10px]",width:"38",src:"https://img.itingnao.com/assets/images/icon/fileFolder.svg",alt:""}),(0,a.jsxs)("dl",{className:"flex-1",children:[(0,a.jsx)("dt",{className:"text-left text-[#352F44] text-[16px]",children:t.name}),(0,a.jsxs)("dd",{className:"flex items-center text-[14px] text-[#999]",children:[(0,a.jsx)(c.JO,{className:"mr-[4px] text-[18px]",name:"icon-rili2"})," ",B(t.updated_at||"")]})]}),(0,a.jsx)("div",{children:l.includes(t.id)?(0,a.jsx)("div",{className:"w-[20px] h-[20px] rounded-[10px] bg-[#0F67FE] flex items-center justify-center",children:(0,a.jsx)(c.JO,{name:"icon-duigou",className:"text-[13px] text-[#ffffff]"})}):(0,a.jsx)("div",{className:"w-[20px] h-[20px] border border-[#A6A6A6] rounded-[10px]"})})]},t.id))]},e.team_id)),0==e.length&&0==t.length&&!x&&(0,a.jsxs)("div",{className:"pt-[86px] text-center",children:[(0,a.jsx)("img",{className:"w-[350px] mx-auto",src:"https://img.itingnao.com/assets/images/empty.png",alt:""}),(0,a.jsx)("div",{className:"text-[#888888] text-[16px] mt-[-50px]",children:"ææªæ°å»ºè¿æä»¶å¤¹ï¼å¼å§æ°å»ºå§ï½"}),(0,a.jsxs)(I.ZP,{size:"large",onClick:()=>p(!0),color:"primary",variant:"outlined",className:"w-[144px] mt-[30px]",style:{borderRadius:19,height:38},children:[(0,a.jsx)(c.JO,{name:"icon-fangda1",className:"text-[19px]"}),"æ°å»ºæä»¶å¤¹"]})]})]}),(0,a.jsxs)("div",{className:"absolute bg-[#ffffff] rounded-b-[8px] bottom-[0] left-[0] right-[0] px-[25px] h-[87px] flex justify-between items-center shadow-[-2px_0_16px_0_rgba(0,_0,_0,_0.07)]",children:[(0,a.jsxs)("div",{className:"text-[14px] text-[#999]",children:["已鿩 ",l.length," 个æä»¶å¤¹"]}),(0,a.jsxs)("div",{className:"flex justify-end",children:[(0,a.jsx)(I.ZP,{onClick:()=>{_(),(0,f.U9)({event:"web_click",page_model:5352})},size:"large",className:"mr-[12px] w-[76px]",style:{borderRadius:20},children:"åæ¶"}),(0,a.jsx)(I.ZP,{htmlType:"submit",size:"large",type:"primary",className:"w-[76px]",onClick:F,style:{borderRadius:20},children:"确认"})]})]})]})})}var M=s(58097);function V(){let[e,t]=(0,i.useState)(""),s=(0,d.ZV)(m.j2.TeamOverlay),n=(0,d.ZV)(m.j2.MoveOverlay),l=(0,r.useRouter)(),c=(0,r.usePathname)(),o=async()=>
1{if(""===e.trim())return O.ZP.error("ä¼ä¸åç§°ä¸è½ä¸ºç©º");let s=await (0,M.Cm)({team_name:e});if(200===s.code){if(O.ZP.success("æåä½ å建ä¼ä¸æå!"),(0,d.mh)(m.j2.TeamOverlay),(0,d.po)(),t(""),n.open)return!1;if(null==c?void 0:c.startsWith("/enterprise")){var a;let e=null===(a=s.data)||void 0===a?void 0:a.team_id;e&&(localStorage.setItem("currentTeamId",e),await (0,d.Iu)(e),(0,d.bO)());return}l.push("/home")}(0,f.U9)({event:"web_click",page_model:41})},x=()=>{(0,d.mh)(m.j2.TeamOverlay)};return(0,a.jsx)(k.Z,{open:s.open,onCancel:x,footer:null,width:500,closable:!0,className:"pointer-events-auto",zIndex:1e3,title:"å建ä¼ä¸",centered:!0,children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)(Z.default,{className:"w-full",value:e,onChange:e=>t(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),o())},size:"large",placeholder:"请è¾å
¥ä¼ä¸åç§°"}),(0,a.jsx)("p",{className:"text-[14px] text-[#4E6181] mt-[10px] mb-[10px] text-left",children:"ä¼ä¸å建æåå¯é请å
¶ä»äººå å
¥"}),(0,a.jsxs)("div",{className:"flex justify-end mt-[20px]",children:[(0,a.jsx)(I.ZP,{onClick:x,className:"mr-[20px] h-[32px] h-[36px]",children:"åæ¶"}),(0,a.jsx)(I.ZP,{htmlType:"submit",type:"primary",onClick:o,className:"h-[36px]",children:"å建ä¼ä¸"})]})]})})}var R=s(9261),q=s(28370);s(84450);let H=e=>({1:{name:"è½¬åæ¶é¿",icon:"/assets/images/vip/1.png",list:[]},[e?7:2]:{name:e?"AI积å":"AIåæ°",icon:"/assets/images/vip/2.png",list:[]}}),K=(e,t)=>7===e?"7":2===e?"2":1===e?"1":t?"7":"2",Q=null;var W=function(){var e,t,s,n,l,r,o,x,u,h,v;let g=(0,d.ZV)(m.j2.RechargeOverlay),N=(0,d.Jh)(),y=(0,w.dD)(),_=(0,d.bg)(),F=(0,d.RZ)(),E=(0,d.hG)(),[S,P]=(0,i.useState)(!1),[Z,I]=(0,i.useState)(0),[J,A]=(0,i.useState)([]),[D,z]=(0,i.useState)("0"),[L,U]=(0,i.useState)(()=>H(!1)),[B,T]=(0,i.useState)(!1),[M,V]=(0,i.useState)(0),[W,G]=(0,i.useState)(0),[Y,$]=(0,i.useState)(""),[X,ee]=(0,i.useState)(""),[et,es]=(0,i.useState)(0),ea=(0,i.useRef)({}),ei=(0,i.useRef)([]),en=(0,i.useRef)(0),el=()=>{(0,d.mh)(m.j2.RechargeOverlay),(0,d.c7)(0),I(0),V(0),Q&&clearInterval(Q),Q=null},er=async()=>{if(0===M)return!1;P(!0);let e=await (0,b.OI)(M,0,F||0,E||0);200===e.code&&($(e.data.ali_pay),ee(e.data.weixin_pay),G(e.data.order_id)),P(!1)},ec=e=>{if(e===Z)return!1;I(e)},eo=async e=>{let t=await (0,b.O8)(e||Z);if(200===t.code){let a={};t.data.forEach(e=>{e.id&&e.vip_auth_list&&(a[e.id]=e.vip_auth_list)}),ea.current=a;let i=Object.keys(ea.current)[0];if(ei.current=void 0!==i?ea.current[i]:[],1===Z||1===e){let e=JSON.parse(JSON.stringify(H(B||7===g.singlePurchasePrivilegeType)));t.data.forEach(t=>{var s;null===(s=e[t.privilege_type])||void 0===s||s.list.push(t)}),U(e)}else{var s;A(t.data),V((null===(s=t.data.filter(e=>1===e.is_recommend)[0])||void 0===s?void 0:s.id)||43)}1===e&&(ec(1),z(K(g.singlePurchasePrivilegeType,B||7===g.singlePurchasePrivilegeType)))}},ed=()=>{if(Q&&clearInterval(Q),Q=null,0===W)return!1;Q=setInterval(async()=>{let e=await (0,b.sP)(W);if(200===e.code&&1===e.data.pay_status){if(clearInterval(Q),el(),(0,d.C5)(),O.ZP.success("æåä½ ï¼å
弿åï¼"),_){let e=await (0,j.QO)(_);200===e.code?(0,d.pk)(-1):O.ZP.error(e.message)}else(0,d.pk)(0)}},1500)};(0,i.useEffect)(()=>{(0,j.tk)("gray_vgtzegl6t1qy").then(e=>{var t;200===e.code&&(null===(t=e.data)||void 0===t?void 0:t.gray_vgtzegl6t1qy)&&T(!0)})},[]),(0,i.useEffect)(()=>{let e=B?"7":"2";z(t=>"2"===t||"7"===t?e:t),g.open&&1===Z&&eo()},[B]),(0,i.useEffect)(()=>{if(g.open){en.current=Date.now();let e=g.singlePurchasePrivilegeType;7===e||2===e||1===e?(I(1),z(K(e,B||7===e)),eo(1)):eo(0),(0,f.U9)({event:"web_click",page_model:5140})}},[g.open,g.singlePurchasePrivilegeType]),(0,i.useEffect)(()=>{g.open&&eo()},[Z]),(0,i.useEffect)(()=>{g.open&&($(""),ee(""),er(),ei.current=ea.current[M],W>0&&(0,f.U9)({event:"web_click",page_model:5139,order_id:W}))},[M]),(0,i.useEffect)(()=>{W>0&&ed()},[W]),(0,i.useEffect)(()=>{if(D){var e,t;V(null===(t=L[D])||void 0===t?void 0:null===(e=t.list[0])||void 0===e?void 0:e.id)}},[D,L]),(0,i.useEffect)(()=>{y&&es(0)},[y]);let ex=async()=>{el(),(0,f.U9)({event:"web_click",page_model:5141})};return(0,a.jsx)(k.Z,{open:g.open,onCancel:()=>{Date.now()-en.current<300||ex()},footer:null,width:y?"100%":1065,closable:!0,centered:!y,className:C()("pointer-events-auto without-vip-recharge-modal",{"without-vip-recharge-modal--mobile":y}),style:{pointerEvents:"auto"},classNames:y?{wrapper:"without-vip-recharge-modal-wrap--mobile"}:void 0,styles:y?{wrapper:{display:"flex",alignItems:"flex-end",overflow:"hidden",pointerEvents:"none"},body:{maxHeight:"calc(92dvh - 52px)",overflowY:"auto",padding:0,WebkitOverflowScrolling:"touch"}}:{container:{pointerEvents:"auto"}},children:(0,a.jsxs)("div",{className:C()("not-vip-recharge",{"not-vip-recharge--mobile":y}),children:[(0,a.jsxs)("div",{className:"recharge-modal-header w-full h-[82px] px-[20px] flex items-center",children:[(0,a.jsx)("div",{className:"recharge-modal-header__avatar w-[47px] h-[47px] rounded-full mr-[14px]",style:{background:"url(".concat((null==N?void 0:N.portrait)?"https://oss.itingnao.com/".concat(null==N?void 0:N.portrait):"".concat(p.JU,"/assets/users/1.png"),")"),backgroundSize:"cover"}}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[y?(0,a.jsx)("p",{className:"recharge-modal-header__title text-[17px] text-[#352F44] font-semibold leading-tight",children:"å¼éå¬è VIP"}):(0,a.jsxs)("p",{className:"text-[14px] text-[#352F44] font-bold",children:["è´¦æ·IDï¼",null==N?void 0:N.uuid]}),(0,a.jsx)("div",{className:"flex items-center",children:0>=((null==N?void 0:null===(e=N.maximum_equity_vip)||void 0===e?void 0:e.vip_id)||0)?(0,a.jsx)("span",{className:"text-[12px] text-[#fff] px-[6px] py-[1px] bg-[rgba(0,0,0,0.3)] rounded-[4px] mt-[4px]",children:"VIPæªå¼é"}):(0,a.jsxs)("div",{className:C()("w-[auto] border-solid py-[2px] px-[16px] text-[12px] text-[#888B91] mt-[4px]",{"is-3 is-vip text-[#fff]":(null==N?void 0:null===(t=N.maximum_equity_vip)||void 0===t?void 0:t.vip_level)===4,"is-2 border-[#
1ECE5FF] is-vip":(null==N?void 0:null===(s=N.maximum_equity_vip)||void 0===s?void 0:s.vip_level)===3,"is-1 is-vip":(null==N?void 0:null===(n=N.maximum_equity_vip)||void 0===n?void 0:n.vip_level)===1||(null==N?void 0:null===(l=N.maximum_equity_vip)||void 0===l?void 0:l.vip_level)===2}),children:[(0,a.jsx)("strong",{className:"text-[12px] text-[#352F44]",children:null==N?void 0:null===(r=N.maximum_equity_vip)||void 0===r?void 0:r.name})," ",null==N?void 0:null===(o=N.maximum_equity_vip)||void 0===o?void 0:o.expiration_time_str]})})]})]}),(0,a.jsx)("div",{className:"recharge-modal-body p-4 pt-0",children:(0,a.jsxs)("div",{className:"recharge-modal-layout h-[calc(100%-102px)] rounded-[20px] bg-white flex justify-between",children:[(0,a.jsxs)("div",{className:"charge_left recharge-modal-left w-[253px] h-full flex-1",children:[(0,a.jsx)("div",{className:"text-[20px] text-[#352f44] font-medium pb-[20px]",children:"ä¼åä¸å±ç¦å©"}),(0,a.jsx)("div",{className:"vip-previlege-item",children:(ei.current||[]).map((e,t)=>e?(0,a.jsxs)("div",{className:"flex mb-[20px]",children:[(0,a.jsx)("div",{className:"w-[34px] h-[34px] mr-[8px]",children:(0,a.jsx)("img",{className:"w-full",src:e.icon_url,alt:e.title||"ä¼åä¸å±ç¦å©å¾æ "})}),(0,a.jsxs)("div",{className:"w-[calc(100%-36px)]",children:[(0,a.jsx)("div",{className:"text-[#352F44] text-[14px]",children:e.title}),(0,a.jsx)("div",{className:"text-[#888B91] text-[12px]",children:e.desc})]})]},t):null)})]}),(0,a.jsxs)("div",{className:"chrage_right recharge-modal-right bg-white w-[calc(100%-253px)] px-[14px] pr-[20px] pl-[25px] rounded-[20px]",children:[(0,a.jsxs)(a.Fragment,{children:[!y&&J.length&&J.length>4&&(0,a.jsxs)(a.Fragment,{children:[et<0&&(0,a.jsx)("span",{className:"recharge-sku-arrow recharge-sku-arrow--left cursor-pointer w-[24px] h-[24px] rounded-[50%] border border-[#B4CAF4] bg-[#fff] flex items-center justify-center absolute top-[195px] bottom-0 z-[100] left-[275px] text-[#8999B5] hover:text-[#0F67FE]",onClick:()=>{if(0===et)return!1;es(0)},children:(0,a.jsx)(c.JO,{name:"icon-arrowleft"})}),et>=0&&(0,a.jsx)("span",{className:"recharge-sku-arrow recharge-sku-arrow--right cursor-pointer w-[24px] h-[24px] rounded-[50%] border border-[#B4CAF4] bg-[#fff] flex items-center justify-center absolute top-[195px] bottom-0 z-[100] right-[20px] text-[#8999B5] hover:text-[#0F67FE]",onClick:()=>{if(-184===et)return!1;es(-184)},children:(0,a.jsx)(c.JO,{name:"icon-arrowright"})})]}),(0,a.jsx)("div",{className:"recharge-sku-scroll relative w-full overflow-x-auto overflow-y-hidden pt-[20px]",children:(0,a.jsxs)("div",{className:"w-full h-auto sku-list",style:{marginLeft:y?0:"".concat(et,"px")},children:[J.map((e,t)=>e.short_desc_map?(0,a.jsxs)("div",{className:C()("bg-[#fff] border border-solid border-[#D9D9D9] w-[172px] h-[202px] rounded-[10px] pt-[14px] sku-item",{active:M===e.id}),onClick:()=>V(e.id),children:[""!==e.tips&&(0,a.jsx)("span",{className:"tips",children:e.tips}),(0,a.jsx)("strong",{className:"text-[color:var(--1,#352F44)] text-base font-[20px] sku-name leading-[normal] pl-[14px]",children:e.name}),(0,a.jsxs)("p",{className:"pl-[14px] text-[#352F44] text-[12px] price mt-[3px]",children:[(0,a.jsxs)("span",{className:"text-[#EE6131] text-[14px]",children:["\xa5",(0,a.jsx)("span",{className:"text-[40px] text-nowrap ml-[8px] font-semibold",children:e.show_price})]}),43!==e.id&&(0,a.jsx)("span",{className:"text-[12px] text-[#B4B6BA] ml-[6px] origin-price mr-[10px]",children:e.origin_price})]}),(0,a.jsx)("p",{className:"sku-total-time text-[#E67A1B] mt-[5px]",children:(0,a.jsxs)("p",{children:[(0,a.jsx)("span",{className:"text-[14px] font-medium",children:"æ»"}),(0,a.jsx)("span",{className:"text-[18px] ont-semibold mx-[5px]",children:e.total_time_text}),(0,a.jsx)("span",{className:"text-[14px] font-medium",children:"å°æ¶"})]})}),(0,a.jsx)("ul",{className:"sku-info-desc",children:(null==e?void 0:e.short_desc_map_new)&&(null==e?void 0:e.short_desc_map_new.map((e,t)=>(0,a.jsx)("li",{children:(0,a.jsxs)("span",{children:[(0,a.jsx)("span",{className:"bold-circle",children:"ã»"}),(0,a.jsx)("span",{className:"name",children:e.title})]})},t)))})]},t):(0,a.jsx)(a.Fragment,{})),!y&&J.filter(e=>e.short_desc_map).length>4&&(0,a.jsx)("div",{className:"bg-[#fff] border border-solid border-[#B4CAF4] w-[172px] h-[202px] rounded-[10px] pt-[14px] sku-item sku-item--placeholder","aria-hidden":!0})]})})]}),71===M&&(0,a.jsxs)("div",{className:"middle-banner flex items-center mt-1 mb-2",children:[(0,a.jsxs)("div",{className:"flex items-center mt-[10px] ml-[12px]",children:[(0,a.jsx)("img",{src:"https://img.itingnao.com/assets/images/fulibg/coupons.png",alt:"gift",className:"w-5 h-5 mr-2"}),(0,a.jsx)("span",{className:"text-[#666]",children:"é¦è´éæ¶ç¦å©"}),(0,a.jsx)("span",{className:"text-[#f04843] ml-2",children:"100å
ç°éå¸"})]}),(0,a.jsxs)("div",{className:"flex items-center mt-[10px] mr-[12px] ml-[20px]",children:[(0,a.jsx)("span",{className:"text-[#666]",children:"ç¦å©å³å°ç»æï¼"}),(0,a.jsx)("span",{className:"text-[#666]"}),(0,a.jsx)("a",{href:"/activity",target:"_blank",rel:"noopener noreferrer",className:"text-[#0F67FE]",children:"详æ
请æ¥çæ´»å¨é¡µé¢"})]})]}),1===Z&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"w-full h-[48px] flex items-center justify-between sku-head",children:Object.keys(L).map(e=>(0,a.jsxs)("div",{className:C()("sku-head-item h-[100%] w-[50%] bg-[#F3F6FD] rounded-tl-[10px] rounded-tr-[10px] flex items-center justify-center text-[16px] text-[#000] font-weight-bold cursor-pointer",{active:D===e}),onClick:()=>{z(e)},children:[(0,a.jsx)("img",{className:"block w-[18px] h-[18px] mr-[8px]",src:p.JU+L[e].icon,alt:""})," ",L[e].name]},e))}),(0,a.jsxs)("div",{className:"recharge-sku-num-panel w-full h-[144px] bg-[#E6ECFB] rounded-bl-[10px] rounded-br-[10px]",children:[(0,a.jsx)("ul",{className:"flex items-center justify-between px-[20px] pt-[20px]",children:null===(x=L[D])||void 0===x?void 0:x.list.map((e,t)=>(0,a.jsxs)("li",{className:C()("sku-num-item flex items-center justify-between p-[20px] border border-solid border-[#B4CAF4] w-[212px] h-[84px] bg-[#fff] rounded-[10px] cursor-pointer",{active:M===e.id}),onClick:()=>V(e.id),children:[(0,a.jsx)("span",{className:"text-[16px] text-[#352F44]",children:e.name}),(0,a.jsxs)("span",{className:"text-[14px] text-[#EE6131]",children:["\xa5",(0,a.jsx)("em",{className:"text-[30px] font-bold",children:e.show_price})]})]},t))}),(0,a.jsx)("p",{className:"text-[14px] text-[#A3A1A9] text-center mt-[10px]",children:"以ä¸å¥é¤å¨è´ä¹°æ¥èµ·ï¼ä¸å¹´ææ"})]})]}),(0,a.jsxs)("div",{className:"recharge-pay-panel w-full h-[220px] border border-solid border-[#F9D276] rounded-[10px] mt-[20px] flex overflow-hidden",children:[(0,a.jsxs)("div",{className:"recharge-pay-panel__qr w-[340px] h-[100%] flex items-center justify-between p-[30px]",children:[(0,a.jsxs)("div",{className:"w-[130px]",children:[(0,a.jsx)("div",{className:"border border-solid border-[#ffecbe] rounded-[4px] p-[5px] h-[130px]",children:(0,a.jsx)(R.Z,{bordered:!1,size:y?96:120,errorLevel:"M",status:S?"loading":"active",value:X})}),(0,a.jsxs)("p",{className:"text-[#352F44] text-[12px] flex items-center justify-center mt-[10px]",children:[(0,a.jsx)("img",{className:"w-[20px] h-[20px] mr-[4px]",src:"".concat(p.JU,"/assets/images/vip/wx-icon.png"),alt:""}),"微信æ«ç æ¯ä»"]})]}),(0,a.jsxs)("div",{className:"w-[130px]",children:[(0,a.jsx)("div",{className:"border border-solid border-[#ffecbe] rounded-[4px] p-[5px] h-[130px]",children:(0,a.jsx)(R.Z,{bordered:!1,size:y?96:120,errorLevel:"M",status:S?"loading":"active",value:Y})}),(0,a.jsxs)("p",{className:"text-[#352F44] text-[12px] flex items-center justify-center mt-[10px]",children:[(0,a.jsx)("img",{className:"w-[20px] h-[20px] mr-[4px]",src:"".concat(p.JU,"/assets/images/vip/zfb-icon.png"),alt:""}),"æ¯ä»å®æ«ç æ¯ä»"]})]})]}),(0,a.jsx)("div",{className:"flex w-[10px] middle-fix-bar bg-red-100"}),(0,a.jsxs)("div",{className:"recharge-pay-panel__info flex-1 p-[30px] pl-[40px]",children:[(0,a.jsx)("span",{className:"text-[12px] text-[#352F44]",children:"åºä»éé¢ï¼"}),(0,a.jsxs)("p",{className:"text-[26px] text-[#EE6131] mb-[5px] relative",children:["\xa5"," ",(0,a.jsx)("strong",{className:"text-[46px]",children:0===Z?null===(u=J.filter(e=>e.id===M)[0])||void 0===u?void 0:u.show_price:null===(v=L[D])||void 0===v?void 0:null===(h=v.list.filter(e=>e.id===M)[0])||void 0===h?void 0:h.show_price}),71===M&&(0,a.jsx)("span",{className:"text-[12px] text-[#F04843] border border-[#F04843] rounded-[40px] px-[16px] py-[6px] ml-[16px] absolute bottom-[
118px]",children:"å·²å100å
"})]}),(0,a.jsxs)("p",{className:"text-[12px] text-[#352F44]",children:["è´ä¹°å³è¡¨ç¤ºæ¥å",(0,a.jsx)("a",{className:"text-[#0F67FE] underline",href:"".concat(p.JU,"/assets/about/vip.html"),target:"_blank",rel:"noreferrer",children:"ãVIPä¼ååè®®ã"}),"å
å¼å®æå",(0,a.jsx)("a",{className:"text-[#0F67FE] underline",href:"https://xiuyuai6.feishu.cn/share/base/form/shrcnEZJeQtqdLzGeVbkp04MzWg",target:"_blank",rel:"noreferrer",children:"å¯å¼å票"})]}),(0,a.jsx)(q.Z,{trigger:y?"click":"hover",style:{width:358},content:(0,a.jsxs)("div",{className:"w-full h-auto",children:[(0,a.jsxs)("p",{className:"text-[color:var(--,#352F44)] text-xs font-normal leading-[normal] px-[22px] py-[12px] w-[338px] h-[91px] shrink-0 rounded [background-image:url(https://img.itingnao.com/assets/activity/fp-back.png)] [background-repeat:no-repeat] [background-size:cover]",children:["åç§°:䏿µ·ç§å¾¡ç½ç»ç§ææéå
¬å¸"," ",(0,a.jsx)("br",{}),"ç¨å·:91310115MABW46FPAU"," ",(0,a.jsx)("br",{}),"弿·è¡è´¦å·:09762301040022527"," ",(0,a.jsx)("br",{}),"弿·è¡å°å:ä¸å½åä¸é¶è¡è¡ä»½æéå
¬å¸ä¸æµ·æµ¦ä¸è·¯æ¯è¡"]}),(0,a.jsxs)("div",{className:"text-[#352F44] text-xs font-normal leading-[normal] decoration-auto underline-offset-auto [text-underline-position:from-font] mt-[10px]",children:["ææ¬¾å请",(0,a.jsx)(q.Z,{style:{width:160},content:(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,a.jsx)("p",{className:'text-[color:var(--,#352F44)] [font-family:"PingFang_SC"] text-xs font-normal leading-[normal]',children:"æ·»å 客æåéææ¬¾ä¿¡æ¯"}),(0,a.jsx)("img",{className:"w-[100px] h-[100px] mt-[10px]",src:"".concat(p.JU,"/assets/images/newIndex/fk-qr.jpg?v=").concat(Date.now()),alt:""})]}),trigger:y?"click":"hover",children:(0,a.jsx)("span",{className:"cursor-pointer text-[color:var(--5,#0F67FE)] text-xs font-normal leading-[normal] underline decoration-solid [text-decoration-skip-ink:auto]",children:"è系客æ"})}),"åéææ¬¾æªå¾ä¿¡æ¯åï¼å³å¯å®æè´ä¹°"]})]}),placement:"top",arrow:!1,children:(0,a.jsx)("div",{className:"inline-flex justify-center items-center gap-2.5 rounded [background:#F2F4FB] px-4 py-[5px] text-[color:var(--,#4E6181)] text-xs font-normal leading-[normal] mt-[20px] cursor-pointer hover:bg-[#EAEDF4] hover:text-[#000]",children:"对å
¬ææ¬¾"})})]})]}),71!==M&&(0,a.jsx)("div",{className:"perch-height mb-1"})]})]})})]})})};s(21619);let G=e=>({1:{name:"è½¬åæ¶é¿",icon:"/assets/images/vip/1.png",list:[]},[e?7:2]:{name:e?"AI积å":"AIåæ°",icon:"/assets/images/vip/2.png",list:[]}}),Y=(e,t)=>7===e?"7":2===e?"2":1===e?"1":t?"7":"2",$=null;var X=function(){var e,t,s,n,l,r,o,x,u,h,v;let g=(0,d.ZV)(m.j2.RechargeOverlay),N=(0,d.Jh)(),y=(0,w.dD)(),_=(0,d.bg)(),F=(0,d.RZ)(),E=(0,d.hG)(),[S,P]=(0,i.useState)(!1),[Z,I]=(0,i.useState)(1),[J,A]=(0,i.useState)([]),[D,z]=(0,i.useState)("1"),[L,U]=(0,i.useState)(()=>G(!1)),[B,T]=(0,i.useState)(!1),[M,V]=(0,i.useState)(0),[H,K]=(0,i.useState)(0),[Q,W]=(0,i.useState)(""),[X,ee]=(0,i.useState)(""),[et,es]=(0,i.useState)(0),ea=(0,i.useRef)(0),ei=()=>{(0,d.mh)(m.j2.RechargeOverlay),(0,d.c7)(0),I(0),V(0),$&&clearInterval($),$=null},en=async()=>{if(0===M)return!1;P(!0);let e=await (0,b.OI)(M,0,F||0,E||0);200===e.code&&(W(e.data.ali_pay),ee(e.data.weixin_pay),K(e.data.order_id)),P(!1)},el=e=>{if(e===Z)return!1;I(e)},er=async e=>{let t=await (0,b.O8)(e||Z);if(200===t.code){let a=B||7===g.singlePurchasePrivilegeType;if(1===Z||1===e){let e=JSON.parse(JSON.stringify(G(a)));t.data.forEach(t=>{var s;null===(s=e[t.privilege_type])||void 0===s||s.list.push(t)}),console.log(e,"data"),U(e)}else{var s;A(t.data),V((null===(s=t.data.filter(e=>1===e.is_recommend)[0])||void 0===s?void 0:s.id)||43)}1===e&&(el(1),z(Y(g.singlePurchasePrivilegeType,a)))}},ec=()=>{if($&&clearInterval($),$=null,0===H)return!1;$=setInterval(async()=>{let e=await (0,b.sP)(H);if(200===e.code&&1===e.data.pay_status){if(clearInterval($),ei(),(0,d.C5)(),O.ZP.success("æåä½ ï¼å
弿åï¼"),_){let e=await (0,j.QO)(_);200===e.code?(0,d.pk)(-1):O.ZP.error(e.message)}else(0,d.pk)(0)}},1500)};return(0,i.useEffect)(()=>{(0,j.tk)("gray_vgtzegl6t1qy").then(e=>{var t;200===e.code&&(null===(t=e.data)||void 0===t?void 0:t.gray_vgtzegl6t1qy)&&T(!0)})},[]),(0,i.useEffect)(()=>{let e=B?"7":"2";z(t=>"2"===t||"7"===t?e:t),g.open&&1===Z&&er()},[B]),(0,i.useEffect)(()=>
1{if(g.open){ea.current=Date.now();let e=g.singlePurchasePrivilegeType;7===e||2===e||1===e?(I(1),z(Y(e,B||7===e)),er(1)):er(0),(0,f.U9)({event:"web_click",page_model:F,parent_model:E||0})}},[g.open,g.singlePurchasePrivilegeType]),(0,i.useEffect)(()=>{g.open&&er()},[Z]),(0,i.useEffect)(()=>{g.open&&(W(""),ee(""),en())},[M]),(0,i.useEffect)(()=>{H>0&&ec()},[H]),(0,i.useEffect)(()=>{if(D){var e,t;V(null===(t=L[D])||void 0===t?void 0:null===(e=t.list[0])||void 0===e?void 0:e.id)}},[D,L]),(0,a.jsx)(k.Z,{open:g.open,onCancel:()=>{Date.now()-ea.current<300||((0,d.pk)(0),ei())},width:y?"100%":"auto",footer:null,centered:!y,closeIcon:(0,a.jsx)("div",{className:"w-[18px] h-[18px] rounded-[50%] bg-[rgba(0,0,0,0.3)] text-white text-[12px] text-center leading-[18px]",children:"â"}),className:C()("pointer-events-auto recharge-modal",{"recharge-modal--mobile":y}),style:{pointerEvents:"auto"},classNames:y?{wrapper:"recharge-modal-wrap--mobile"}:void 0,styles:y?{wrapper:{display:"flex",alignItems:"flex-end",overflow:"hidden",pointerEvents:"none"},body:{maxHeight:"calc(92vh - 48px)",overflowY:"auto",padding:0}}:{container:{pointerEvents:"auto"}},children:(0,a.jsxs)("div",{className:"recharge-modal-inner p-0 w-full h-[615px] rounded-[22px]",children:[(0,a.jsxs)("div",{className:"recharge-modal-header w-full h-[82px] px-[20px] flex items-center",children:[(0,a.jsx)("div",{className:"w-[47px] h-[47px] rounded-full mr-[14px]",style:{background:"url(".concat((null==N?void 0:N.portrait)?"https://oss.itingnao.com/".concat(null==N?void 0:N.portrait):"".concat(p.JU,"/assets/users/1.png"),")"),backgroundSize:"cover"}}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsxs)("p",{className:"text-[14px] text-[#fff]",children:["è´¦æ·IDï¼",null==N?void 0:N.uuid]}),(0,a.jsx)("div",{className:"flex items-center",children:0>=((null==N?void 0:null===(e=N.maximum_equity_vip)||void 0===e?void 0:e.vip_id)||0)?(0,a.jsx)("span",{className:"text-[12px] text-[#fff] px-[6px] py-[1px] bg-[rgba(0,0,0,0.3)] rounded-[4px] mt-[4px]",children:"VIPæªå¼é"}):(0,a.jsxs)("div",{className:C()("w-[auto] border-solid py-[2px] px-[16px] text-[12px] text-[#888B91] mt-[4px]",{"is-3 is-vip text-[#fff]":(null==N?void 0:null===(t=N.maximum_equity_vip)||void 0===t?void 0:t.vip_level)===4,"is-2 border-[#ECE5FF] is-vip":(null==N?void 0:null===(s=N.maximum_equity_vip)||void 0===s?void 0:s.vip_level)===3,"is-1 is-vip":(null==N?void 0:null===(n=N.maximum_equity_vip)||void 0===n?void 0:n.vip_level)===1||(null==N?void 0:null===(l=N.maximum_equity_vip)||void 0===l?void 0:l.vip_level)===2}),children:[(0,a.jsx)("strong",{className:"text-[12px] text-[#352F44]",children:null==N?void 0:null===(r=N.maximum_equity_vip)||void 0===r?void 0:r.name})," ",null==N?void 0:null===(o=N.maximum_equity_vip)||void 0===o?void 0:o.expiration_time_str]})})]})]}),(0,a.jsxs)("div",{className:"recharge-modal-main w-[760px] mx-auto h-[523px]",children:[(0,a.jsxs)("div",{className:"recharge-modal-tabs w-full h-[50px] flex rounded-tl-[22px] rounded-tr-[22px]",children:[(0,a.jsxs)("div",{className:C()("flex-1 h-[100%] flex items-center justify-center mr-[8px] rounded-tl-[22px] rounded-tr-[22px] cursor-pointer",{"bg-[#fff] text-[#0F67FE]":0===Z,"bg-[rgba(0,0,0,0.5)] text-[#fff]":1===Z}),onClick:()=>el(0),children:[(0,a.jsx)(c.JO,{name:"icon-taocan",className:"mr-[8px] text-[18px]"}),(0,a.jsx)("strong",{className:C()("mr-[8px] text-[16px]"),children:"å¥é¤è´ä¹°"})]}),0===_&&(0,a.jsxs)("div",{className:C()("flex-1 h-[100% flex items-center justify-center rounded-tl-[22px] rounded-tr-[22px] cursor-pointer",{"bg-[#fff] text-[#0F67FE]":1===Z,"bg-[rgba(0,0,0,0.5)] text-[#fff]":0===Z}),onClick:()=>{el(1),z("1")},children:[(0,a.jsx)(c.JO,{name:"icon-danxiang",className:"mr-[8px] text-[18px]"}),(0,a.jsxs)("strong",{className:"mr-[8px] text-[16px] relative",children:["åç¬è´ä¹°",(0,a.jsx)("em",{className:"absolute bg-[#FA4D5E] text-[12px] text-[#fff] px-[8px] py-[1px] block w-[64px] rounded-[4px] top-[-10px] right-[-64px] font-normal",children:" å³ä¹°å³ç¨"})]})]})]}),(0,a.jsxs)("div",{className:"recharge-modal-content w-full h-[calc(100%-50px)] bg-[#fff] px-[14px] py-[20px] rounded-bl-[22px] rounded-br-[22px]",children:[0===Z&&(0,a.jsxs)(a.Fragment,{children:[J.length&&J.length>4&&(0,a.jsxs)(a.Fragment,{children:[et<0&&(0,a.jsx)("span",{className:"recharge-sku-arrow recharge-sku-arrow--left cursor-pointer w-[24px] h-[24px] rounded-[50%] border border-[#B4CAF4] bg-[#fff] flex items-center justify-center absolute top-[240px] bottom-0 z-[100] left-[12px] text-[#8999B5] hover:text-[#0F67FE]",onClick:()=>
1{if(0===et)return!1;es(0)},children:(0,a.jsx)(c.JO,{name:"icon-arrowleft"})}),et>=0&&(0,a.jsx)("span",{className:"recharge-sku-arrow recharge-sku-arrow--right cursor-pointer w-[24px] h-[24px] rounded-[50%] border border-[#B4CAF4] bg-[#fff] flex items-center justify-center absolute top-[240px] bottom-0 z-[100] right-[20px] text-[#8999B5] hover:text-[#0F67FE]",onClick:()=>{if(-184===et)return!1;es(-184)},children:(0,a.jsx)(c.JO,{name:"icon-arrowright"})})]}),(0,a.jsx)("div",{className:"relative w-full overflow-hidden pt-[20px] mt-[-20px]",children:(0,a.jsxs)("div",{className:"w-full h-auto sku-list",style:{marginLeft:"".concat(et,"px")},children:[J.map((e,t)=>e.short_desc_map?(0,a.jsxs)("div",{className:C()("bg-[#fff] border border-solid border-[#B4CAF4] w-[172px] rounded-[10px] pt-[14px] sku-item",{active:M===e.id}),onClick:()=>V(e.id),children:[""!==e.tips&&(0,a.jsx)("span",{className:"tips",children:e.tips}),(0,a.jsx)("strong",{className:"text-[color:var(--1,#352F44)] text-base font-medium leading-[normal] pl-[14px]",children:e.name}),(0,a.jsxs)("p",{className:"pl-[14px] text-[#352F44] text-[12px] price",children:[(0,a.jsxs)("span",{className:"text-[#EE6131] text-[12px]",children:["\xa5",(0,a.jsx)("em",{className:"text-[30px] text-nowrap normal",children:e.show_price})]}),"/",e.unit,43!==e.id&&(0,a.jsx)("span",{className:"text-[12px] text-[#B4B6BA] ml-[6px] origin-price",children:e.origin_price})]}),(0,a.jsx)("ul",{children:(null==e?void 0:e.short_desc_map)&&(null==e?void 0:e.short_desc_map.map((e,t)=>(0,a.jsx)("li",{children:(0,a.jsx)("span",{children:e.title})},t)))}),(0,a.jsx)("p",{className:"w-full h-[32px] text-[#0F67FE] text-[14px] text-center leading-[32px] leading-1 line-clamp-1 text-ellipsis px-[4px]",children:e.scene_desc})]},t):(0,a.jsx)(a.Fragment,{})),!y&&J.filter(e=>e.short_desc_map).length>4&&(0,a.jsx)("div",{className:"bg-[#fff] border border-solid border-[#B4CAF4] w-[172px] rounded-[10px] pt-[14px] sku-item sku-item--placeholder","aria-hidden":!0})]})})]}),1===Z&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"w-full h-[48px] flex items-center justify-between sku-head",children:Object.keys(L).map(e=>(0,a.jsxs)("div",{className:C()("sku-head-item h-[100%] w-[50%] bg-[#F3F6FD] rounded-tl-[10px] rounded-tr-[10px] flex items-center justify-center text-[16px] text-[#000] font-weight-bold cursor-pointer",{active:D===e}),onClick:()=>{z(e)},children:[(0,a.jsx)("img",{className:"block w-[18px] h-[18px] mr-[8px]",src:p.JU+L[e].icon,alt:""})," ",L[e].name]},e))}),(0,a.jsxs)("div",{className:"recharge-sku-num-panel w-full h-[144px] bg-[#E6ECFB] rounded-bl-[10px] rounded-br-[10px]",children:[(0,a.jsx)("ul",{className:"flex items-center justify-between px-[20px] pt-[20px]",children:null===(x=L[D])||void 0===x?void 0:x.list.map((e,t)=>(0,a.jsxs)("li",{className:C()("sku-num-item flex items-center justify-between p-[20px] border border-solid border-[#B4CAF4] w-[212px] h-[84px] bg-[#fff] rounded-[10px] cursor-pointer",{active:M===e.id}),onClick:()=>V(e.id),children:[(0,a.jsx)("span",{className:"text-[16px] text-[#352F44]",children:e.name}),(0,a.jsxs)("span",{className:"text-[14px] text-[#EE6131]",children:["\xa5",(0,a.jsx)("em",{className:"text-[30px] font-bold",children:e.show_price})]})]},t))}),(0,a.jsx)("p",{className:"text-[14px] text-[#A3A1A9] text-center mt-[10px]",children:"以ä¸å¥é¤å¨è´ä¹°æ¥èµ·ï¼ä¸å¹´ææ"})]})]}),(0,a.jsxs)("div",{className:"recharge-pay-panel w-full h-[220px] border border-solid border-[#B4CAF4] rounded-[10px] mt-[20px] flex overflow-hidden",children:[(0,a.jsxs)("div",{className:"recharge-pay-panel__qr w-[340px] h-[100%] flex items-center justify-between p-[30px] shadow-[0_0_60px_-15px_#B4CAF4]",children:[(0,a.jsxs)("div",{className:"w-[130px]",children:[(0,a.jsx)("div",{className:"border border-solid border-[#B4CAF4] rounded-[4px] p-[5px] h-[130px]",children:(0,a.jsx)(R.Z,{bordered:!1,size:120,errorLevel:"M",status:S?"loading":"active",value:X})}),(0,a.jsxs)("p",{className:"text-[#352F44] text-[12px] flex items-center justify-center mt-[10px]",children:[(0,a.jsx)("img",{className:"w-[20px] h-[20px] mr-[4px]",src:"".concat(p.JU,"/assets/images/vip/wx-icon.png"),alt:""}),"微信æ«ç æ¯ä»"]})]}),(0,a.jsxs)("div",{className:"w-[130px]",children:[(0,a.jsx)("div",{className:"border border-solid border-[#B4CAF4] rounded-[4px] p-[5px] h-[130px]",children:(0,a.jsx)(R.Z,{bordered:!1,size:120,errorLevel:"M",status:S?"loading":"active",value:Q})}),(0,a.jsxs)("p",{className:"text-[#352F44] text-[12px] flex items-center justify-center mt-[10px]",children:[(0,a.jsx)("img",{className:"w-[20px] h-[20px] mr-[4px]",src:"".concat(p.JU,"/assets/images/vip/zfb-icon.png"),alt:""}),"æ¯ä»å®æ«ç æ¯ä»"]})]})]}),(0,a.jsxs)("div",{className:"recharge-pay-panel__info flex-1 p-[30px] pl-[40px]",children:[(0,a.jsx)("span",{className:"text-[12px] text-[#352F44]",children:"åºä»éé¢ï¼"}),(0,a.jsxs)("p",{className:"text-[12px] text-[#EE6131] my-[10px]",children:["\xa5"," ",(0,a.jsx)("strong",{className:"text-[30px]",children:0===Z?null===(u=J.filter(e=>e.id===M)[0])||void 0===u?void 0:u.show_price:null===(v=L[D])||void 0===v?void 0:null===(h=v.list.filter(e=>e.id===M)[0])||void 0===h?void 0:h.show_price})]}),(0,a.jsxs)("p",{className:"text-[12px] text-[#352F44]",children:["è´ä¹°å³è¡¨ç¤ºæ¥å",(0,a.jsx)("a",{className:"text-[#0F67FE] underline",href:"".concat(p.JU,"/assets/about/vip.html"),target:"_blank",rel:"noreferrer",children:"ãVIPä¼ååè®®ã"}),"å
å¼å®æå",(0,a.jsx)("a",{className:"text-[#0F67FE] underline",href:"https://xiuyuai6.feishu.cn/share/base/form/shrcnEZJeQtqdLzGeVbkp04MzWg",target:"_blank",rel:"noreferrer",children:"å¯å¼å票"})]}),(0,a.jsx)(q.Z,{trigger:"hover",style:{width:358},content:(0,a.jsxs)("div",{className:"w-full h-auto",children:[(0,a.jsxs)("p",{className:"text-[color:var(--,#352F44)] text-xs font-normal leading-[normal] px-[22px] py-[12px] w-[338px] h-[91px] shrink-0 rounded [background-image:url(https://img.itingnao.com/assets/activity/fp-back.png)] [background-repeat:no-repeat] [background-size:cover]",children:["åç§°:䏿µ·ç§å¾¡ç½ç»ç§ææéå
¬å¸"," ",(0,a.jsx)("br",{}),"ç¨å·:91310115MABW46FPAU"," ",(0,a.jsx)("br",{}),"弿·è¡è´¦å·:09762301040022527"," ",(0,a.jsx)("br",{}),"弿·è¡å°å:ä¸å½åä¸é¶è¡è¡ä»½æéå
¬å¸ä¸æµ·æµ¦ä¸è·¯æ¯è¡"]}),(0,a.jsxs)("div",{className:"text-[#352F44] text-xs font-normal leading-[normal] decoration-auto underline-offset-auto [text-underline-position:from-font] mt-[10px]",children:["ææ¬¾å请",(0,a.jsx)(q.Z,{style:{width:160},content:(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,a.jsx)("p",{className:'text-[color:var(--,#352F44)] [font-family:"PingFang_SC"] text-xs font-normal leading-[normal]',children:"æ·»å 客æåéææ¬¾ä¿¡æ¯"}),(0,a.jsx)("img",{className:"w-[100px] h-[100px] mt-[10px]",src:"".concat(p.JU,"/assets/images/newIndex/fk-qr.jpg?v=").concat(Date.now()),alt:""})]}),trigger:"hover",children:(0,a.jsx)("span",{className:"cursor-pointer text-[color:var(--5,#0F67FE)] text-xs font-normal leading-[normal] underline decoration-solid [text-decoration-skip-ink:auto]",children:"è系客æ"})}),"åéææ¬¾æªå¾ä¿¡æ¯åï¼å³å¯å®æè´ä¹°"]})]}),placement:"top",arrow:!1,children:(0,a.jsx)("div",{className:"inline-flex justify-center items-center gap-2.5 rounded [background:#F2F4FB] px-4 py-[5px] text-[color:var(--,#4E6181)] text-xs font-normal leading-[normal] mt-[20px] cursor-pointer hover:bg-[#
1EAEDF4] hover:text-[#000]",children:"对å
¬ææ¬¾"})}),71===M&&(0,a.jsxs)("div",{className:"text-[12px] mt-3 text-[#4d4b51]",children:["注ï¼è¯¥é项为活å¨ä¿éä¼åï¼è¯¦æ
请åå¾",(0,a.jsx)("a",{className:"text-[#0F67FE] underline cursor-pointer",onClick:e=>{e.preventDefault(),window.open("/activity")},target:"_blank",rel:"noreferrer",children:"æ´»å¨é¡µé¢"}),"æ¥ç"]})]})]})]})]})]})},m.j2.RechargeOverlay)},ee=function(){var e;let t=(0,d.ZV)(m.j2.RechargeOverlay),s=(0,d.Jh)(),[n,l]=(0,i.useState)(null),r=0>=((null==s?void 0:null===(e=s.maximum_equity_vip)||void 0===e?void 0:e.vip_id)||0);(0,i.useEffect)(()=>{let e=e=>{let{type:t}=e.detail||{};"recharge-not-vip"===t&&(l("notVip"),(0,d.dr)(m.j2.RechargeOverlay)),"recharge-vip"===t&&(l("vip"),(0,d.dr)(m.j2.RechargeOverlay)),"close-all"===t&&(l(null),(0,d.mh)(m.j2.RechargeOverlay))};return window.addEventListener(u.vH,e),()=>window.removeEventListener(u.vH,e)},[]);let c=t.open&&("notVip"===n||!n&&r),o=t.open&&("vip"===n||!n&&!r);return(0,a.jsxs)(a.Fragment,{children:[c?(0,a.jsx)(W,{}):null,o?(0,a.jsx)(X,{}):null]})},et=s(62476),es=s(11191),ea=s(26524);let ei=null,en=0,el=null,er=null,ec="";var eo=function(){let e=(0,d.ZV)(m.j2.LoginOverlay),t=(0,d.XZ)(),[s,n]=(0,i.useState)(null),[l,r]=(0,i.useState)(null),[o,x]=(0,i.useState)("step1"),[u,h]=(0,i.useState)(0),[f,v]=(0,i.useState)(null),[b,w]=(0,i.useState)(0),N=(0,i.useRef)([]),y=(0,d.SY)(),[_,k]=(0,i.useState)(null),F=()=>{ei=setInterval(()=>{w(e=>(en=e+1,e+1))},1e3)},E=()=>{w(0),h(0),x("step1"),(0,d.P)(!1),v(null),ec="",ei&&clearTimeout(ei),ei=null,s&&s.stream.getTracks().forEach(e=>e.stop()),el&&el.stream.getTracks().forEach(e=>e.stop())},C=async e=>{let t="".concat(new Date().getTime()).concat(Math.floor(1e3*Math.random())),s=new File([e],t),a=await (0,j.$6)();if(200===a.code){let e=new FormData,i="".concat(a.data.dir).concat("".concat(t,".mp3"));e.append("key",i),e.append("policy",a.data.policy),e.append("OSSAccessKeyId",a.data.accessid),e.append("success_action_status","200"),e.append("signature",a.data.signature),e.append("file",s),e.append("name","".concat(t,".mp3")),await (0,j.xL)(a.data.host,e,async e=>{(e.progress?100*e.progress:0)>=100&&(ec=i)})}},S=async()=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(e=>{if(!e)return O.ZP.error("å¼å¯å¤±è´¥ï¼æªæ£æµå°å¯ç¨ç麦å
é£è®¾å¤"),E(),!1;el=new MediaRecorder(e,{mimeType:"audio/webm"}),er=[],el.ondataavailable=e=>{e.data&&e.data.size>0&&er.push(e.data)},el.start(),el.onstop=()=>{C(new Blob(er,{type:"audio/mp3"}))}}).catch(()=>{O.ZP.error("æªæ£æµå°å¯ç¨ç麦å
é£è®¾å¤ï¼å°æ æ³å½å¶éº¦å
é£å£°é³ï¼")})},P=async()=>{S();try{let e=await navigator.mediaDevices.getDisplayMedia({video:{cursor:"always"},audio:!0});e.getVideoTracks()[0].onended=async()=>{v(m.Kw.End)};let t=new MediaStream([...e.getTracks()]),s=new MediaRecorder(t,{mimeType:"video/webm;codecs=vp9",audioBitsPerSecond:128e3,videoBitsPerSecond:25e5});n(s),r(t),s.ondataavailable=e=>{e.data&&e.data.size>0&&N.current.push(e.data)},s.start(),F(),x("step2")}catch(e){E(),console.error("Error capturing screen and audio:",e)}},Z=async()=>{s&&(s.stop(),s.stream.getTracks().forEach(e=>e.stop()),clearTimeout(ei))},J=async e=>{let t=new Date().getTime()+Math.floor(1e4*Math.random()),s=new File([e],t),a=await (0,j.$6)();if(200===a.code){let e=new FormData,i="".concat(a.data.dir).concat("".concat(t,".mp4"));e.append("key",i),e.append("policy",a.data.policy),e.append("OSSAccessKeyId",a.data.accessid),e.append("success_action_status","200"),e.append("signature",a.data.signature),e.append("file",s),e.append("name","".concat(t,".mp4")),await (0,j.xL)(a.data.host,e,async e=>{let t=e.progress?100*e.progress:0;if(h(t),t>=100){let e=await (0,ea.ae)({trans_type:1,chat_num:1,style:1,file_source_type:4,is_screen:1,screen_video:i,screen_audio:ec||"",file_path:"",name:"".concat(new Date().getFullYear(),"-").concat(new Date().getMonth()+1,"-").concat(new Date().getDate()," ").concat(new Date().getHours(),":").concat(new Date().getMinutes()," å±å¹å½å¶"),file_long:(0,g.LU)(en),scene_id:0,team_id:"",folder_id:y[0]?y[0].id:0,source_channel:1});200===e.code?(x("step4"),(0,d.dV)()):O.ZP.warning(e.message)}})}};return(0,i.useEffect)(()=>{s&&f===m.Kw.End&&s.addEventListener("stop",async()=>{let e=new Blob(N.current,{type:"video/mp4"});N.current=[],k(e);let t=await (0,d.C5)();if(!(null==t?void 0:t.uuid)){O.ZP.error("ç»å½å·²å¤±æï¼è¯·éæ°ç»å½å忥å½å¶å
容"),(0,d.dr)(m.j2.LoginOverlay);return}x("step3"),J(e)})},[s,f]),(0,i.useEffect)(()=>{switch(f){case m.Kw.Start:P();break;case m.Kw.Resume:s&&(s.resume(),el&&el.resume(),F());break;case m.Kw.Pause:s&&(s.pause(),el&&el.pause(),clearTimeout(ei),ei=null);break;case m.Kw.End:el&&el.stop(),Z()}},[f]),(0,i.useEffect)(()=>()=>
1{l&&l.getTracks().forEach(e=>e.stop())},[l]),(0,i.useEffect)(()=>{!e.open&&"step2"===o&&_&&(x("step3"),J(_))},[e]),(0,a.jsxs)(a.Fragment,{children:[t&&(0,a.jsxs)("div",{children:["step1"===o&&(0,a.jsx)("div",{className:"w-full h-full fixed top-0 left-0 z-50 bg-[rgba(0,0,0,0.5)] flex items-center justify-center",children:(0,a.jsxs)("div",{className:"w-[650px] h-[530px] bg-[#fff] rounded-[10px] p-[20px] relative",children:[(0,a.jsx)("span",{className:"absolute right-[10px] top-[10px] cursor-pointer",onClick:()=>(0,d.P)(!1),children:(0,a.jsx)(c.JO,{name:"icon-guanbi"})}),(0,a.jsxs)("div",{className:"flex items-center text-[18px] text-[#352F44]",children:[(0,a.jsx)("img",{className:"block w-[36px] mr-[6px]",src:"".concat(p.JU,"/assets/images/newIndex/model-icon.png")}),"å½å¶åæç¤º"]}),(0,a.jsx)("p",{className:"text-[14px] text-[#352F44] mt-[10px]",children:"1ã妿ªå¼å¯éº¦å
飿éï¼è¯·å
è§å¯å±å¹æ ç¾å·¦ä¸è§å¹¶ç¹å»âå
许â麦å
飿é"}),(0,a.jsx)("p",{className:"text-[14px] text-[#352F44] mt-[10px]",children:"2ãå½å¶å请å
宿以䏿ä½"}),(0,a.jsxs)("div",{className:"flex justify-between mt-[10px] bg-[#F4F6FA] rounded-[10px] py-[10px] px-[22px]",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"text-[14px] text-[#352F44]",children:["å¦éå½å¶ç½é¡µå£°é³ï¼è¯·å
éæ©âChrome æ ",(0,a.jsx)("br",{})," ","ç¾é¡µâå¹¶æå¼âåæ¶å享æ ç¾é¡µä¸çé³é¢â"]}),(0,a.jsx)("img",{className:"w-[278px] mt-[10px] block",src:"".concat(p.JU,"/assets/images/newIndex/model-icon-1.jpg")})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"text-[14px] text-[#352F44]",children:["å¦éå½å¶",(0,a.jsx)("span",{className:"text-[#0F67FE]",children:"æ¬å°è½¯ä»¶æå¨çº¿å½é³"})," ","ç声é³ï¼è¯·",(0,a.jsx)("br",{})," ","éæ©âæ´ä¸ªå±å¹âæâçªå£â"]}),(0,a.jsx)("img",{className:"w-[278px] mt-[10px] block",src:"".concat(p.JU,"/assets/images/newIndex/model-icon-2.png")})]})]}),(0,a.jsxs)("p",{className:"text-[14px] text-[#352F44] mt-[10px]",children:["3ã",(0,a.jsx)("span",{className:"text-[#0F67FE]",children:"ä¸è¦ä½©æ´è³æº"}),"ï¼ä½©æ´è³æºå°æ æ³æ¶å½çµè声é³"]}),(0,a.jsx)("div",{className:"flex justify-end mt-[10px]",children:(0,a.jsx)(I.ZP,{type:"primary",onClick:()=>{v(m.Kw.Start)},children:"æå·²ç¥æï¼å»éæ©"})})]})}),"step2"===o&&(0,a.jsxs)("div",{className:"fixed bg-[rgba(0,0,0,0.7)] right-[10px] top-[240px] p-[20px] border border-[rgba(255, 255, 255, 0.70)] rounded-[10px] w-[280px] z-[200]",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("strong",{className:"text-[#fff] text-[14px] block",children:"å±å¹å½å¶"}),(0,a.jsxs)("p",{className:"text-[14px] text-[#fff] flex items-center",children:[(0,a.jsx)("span",{className:"text-[#FF6F6F] mr-[6px]",children:(0,a.jsx)(c.JO,{name:"icon-xuanze"})}),(0,g.LU)(b)]})]}),(0,a.jsxs)("div",{className:"w-full mt-[7px] block",children:[(0,a.jsx)("p",{className:"text-[14px] text-[#fff]",children:"æ£å¨å½å¶ä¸"}),(0,a.jsxs)("div",{className:"w-full mt-[10px] flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center justify-center w-[64px] h-[28px] rounded-[28px] cursor-pointer bg-[rgba(255,255,255,0.2)] text-[14px] text-[#fff]",onClick:()=>{f===m.Kw.Resume||f===m.Kw.Start?v(m.Kw.Pause):v(m.Kw.Resume)},children:[(0,a.jsx)("span",{className:"mr-[3px] text-[14px] text-[#fff]",children:(0,a.jsx)(c.JO,{name:f===m.Kw.Start?"icon-zanting":"icon-kaishi"})}),f===m.Kw.Resume||f===m.Kw.Start?"æå":"ç»§ç»"]}),(0,a.jsxs)("div",{className:"flex items-center justify-center w-[92px] h-[28px] rounded-[28px] cursor-pointer bg-[rgba(255,255,255,0.2)] text-[14px] text-[#fff]",onClick:()=>{v(m.Kw.End)},children:[(0,a.jsx)("span",{className:"mr-[3px] text-[14px] text-[#fff]",children:(0,a.jsx)(c.JO,{name:"icon-jieshu2"})}),"宿å½å¶"]}),(0,a.jsx)(et.Z,{title:"å é¤æç¤º",description:"æ¯å¦ç¡®è®¤å 餿件ï¼å é¤åæ æ³æ¢å¤",okText:"确认",cancelText:"åæ¶",onConfirm:()=>{E()},children:(0,a.jsxs)("div",{className:"flex items-center justify-center w-[64px] h-[28px] rounded-[28px] curs
1or-pointer bg-[rgba(255,255,255,0.2)] text-[14px] text-[#fff]",children:[(0,a.jsx)("span",{className:"mr-[3px] text-[14px] text-[#fff]",children:(0,a.jsx)(c.JO,{name:"icon-shanchu"})}),"å é¤"]})})]})]})]})]}),("step3"===o||"step4"===o)&&(0,a.jsxs)("div",{className:"fixed bg-[#fff] w-[300px] right-[10px] top-[200px] p-[20px] rounded-[10px] z-[200] shadow-md [box-shadow:_0px_4px_15px_0px_rgba(0,_78,_230,_0.15)]",children:[100!==u&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"text-[14px] text-[#352F44]",children:"å½å¶å®æåæ¥å¬èä¸..."}),(0,a.jsx)("div",{className:"w-full mt-[6px]",children:(0,a.jsx)(es.Z,{percent:u,showInfo:!1,strokeColor:{"0%":"#458CFF","100%":"#6A45FF"}})}),(0,a.jsxs)("div",{className:"flex items-center justify-between mt-[10px]",children:[(0,a.jsxs)("span",{className:"text-[14px] text-[#0F67FE] flex items-center",children:[(0,a.jsx)(c.JO,{name:"icon-a-shipin4",className:"mr-[4px]"})," ",(0,g.LU)(b)]}),(0,a.jsxs)("span",{className:"text-[14px] text-[#8999B5]",children:["已忥",Number.parseInt(u),"%"]})]})]}),"step4"===o&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"absolute top-[10px] right-[10px] text-[20px] text-[#8999B5] cursor-pointer",onClick:E,children:(0,a.jsx)(c.JO,{name:"icon-guanbi"})}),(0,a.jsx)("div",{className:"w-[34px] h-[34px] rounded-[50%] bg-[#D4E4FF] mx-auto flex items-center justify-center",children:(0,a.jsx)("span",{className:"flex items-center justify-center w-[30px] h-[30px] bg-[#0F67FE] text-[#fff] text-[22px] rounded-[50%]",children:(0,a.jsx)(c.JO,{name:"icon-duigou"})})}),(0,a.jsxs)("p",{className:"flex items-center mt-[10px] justify-center text-[14px] text-[#0F67FE]",children:[(0,a.jsx)(c.JO,{name:"icon-a-shipin4",className:"mr-[4px]"}),(0,g.LU)(b)]}),(0,a.jsx)("p",{className:"w-full text-center text-[14px] text-[#352F44] mt-[4px]",children:"忥宿ï¼å¯å徿çè®°å½ä¸æ¥ç"}),(0,a.jsx)("div",{className:"w-full flex items-center mt-[18px] justify-center",children:(0,a.jsx)(I.ZP,{type:"primary",onClick:()=>{E(),setTimeout(()=>{location.href="/folders"},300)},children:"廿¥ç"})})]})]})]})},ed=s(6960),ex=s(57566);function ep(e){let{getBaiduPanAuthorize:t}=function(){let e=e=>{let t=(0,p.r8)()?"https://test.itingnao.com/home":"https://itingnao.com/home",s="https://openapi.baidu.com/oauth/2.0/authorize?response_type=".concat("token","&client_id=").concat(e,"&redirect_uri=").concat(t,"&scope=").concat("basic,netdisk"),a=document.createElement("a");a.href=s,a.rel="noreferrer",a.click()};return{getBaiduPanAuthorize:async()=>{try{let t=await ed.ZP.get("/baidu/pan/auth_info");200===t.code?(console.log("è·åç¾åº¦ç½çææä¿¡æ¯æå:",t.data),e(t.data.app_key)):O.ZP.error(t.message||"è·åç¾åº¦ç½çææä¿¡æ¯å¤±è´¥")}catch(e){console.error("è·åç¾åº¦ç½çææä¿¡æ¯å¤±è´¥:",e)}},getBaiduPanUserInfo:()=>{}}}(),{diskType:s,setDiskType:n,handleCloseLayer:l,setModalType:r}=e,o=(0,d.uz)(),[x,m]=(0,i.useState)(!1),u=()=>{(0,f.U9)({event:"web_click",page_model:5144}),o.baidu_name?r(2):1===s&&t()},h=async e=>{if(!o.baidu_name)try{let t=await ed.ZP.get("/baidu/pan/user_info",{params:{access_token:ex.Q.get("nd_baidu_access_token")||""}});console.log("res:",t),200===t.code&&((0,d.jx)(t.data),e&&r(2))}catch(e){console.error("è·åç¾åº¦ç½çç¨æ·ä¿¡æ¯å¤±è´¥:",e)}};return(0,i.useEffect)(()=>{let e=!1;if(new URLSearchParams(window.location.hash.substring(1)).get("access_token")){let t=window.location.href.split("#")[0];window.history.replaceState({},document.title,t),e=!0}h(e)},[]),(0,a.jsxs)("div",{className:"modal-box pb-[48px]",onClick:()=>{n(0)},children:[(0,a.jsx)("div",{className:"flex justify-end h-[24px] relative",children:(0,a.jsx)("div",{className:"cursor-pointer",onClick:e=>{e.stopPropagation(),l(),m(!1)},children:(0,a.jsx)(c.JO,{name:"icon-guanbi"})})}),(0,a.jsx)("div",{className:"mt-[16px] flex items-center justify-center",children:(0,a.jsxs)("div",{className:"text-[18px] text-[#352F44] font-[500]",children:[(0,a.jsx)("span",{className:"mr-[5px]",children:"è¯·éæ©"}),(0,a.jsx)("span",{className:"text-[#0F67FE]",children:"è¦è¿æ¥çç½ç"})]})}),(0,a.jsxs)("div",{className:"flex justify-center items-center text-[12px] text-[#352F44]",children:[(0,a.jsx)("span",{className:"mr-[5px]",children:"é³è§é¢æé¿æ¯æ6å°æ¶ï¼å次æå¤å¯ä¸ä¼ 6个"}),(0,a.jsx)(q.Z,{placement:"right",content:(0,a.jsxs)("div",{className:"network-disk-rule-tips",children:[(0,a.jsx)("span",{children:"æ¯æmp3ãwavãm4açé³é¢ç±»åï¼å个æä»¶æå¤§500Mã"}),(0,a.jsx)("span",{children:"æ¯æmp4ãwmvãm4vçè§é¢ç±»åï¼å个æä»¶æå¤§6Gã"})]}),children:(0,a.jsx)(c.JO,{name:"icon-zhuanxieshibai",className:"cursor-pointer"})})]}),(0,a.jsx)("div",{className:"mt-[10px] flex justify-center p-[24px]",children:(0,a.jsxs)("div",{className:C()("network-disk-item",{active:1===s}),onClick:e=>{e.stopPropagation(),n(1)},children:[(0,a.jsx)("div",{className:"img",children:(0,a.jsx)("img",{src:"".concat(p.JU,"/assets/images/home/baiduyun.png"),alt:""})}),(0,a.jsx)("div",{className:"mt-[10px] text-[16px] text-[#352F44]",children:(0,a.jsx)("span",{children:"ç¾åº¦äºç"})}),o.baidu_name&&(0,a.jsxs)("div",{className:"w-full flex items-center justify-center gap-[5px] text-[14px] text-[#352F44] mt-[2px] overflow-hidden",children:[(0,a.jsx)("span",{className:"overflow-hidden whitespace-nowrap text-ellipsis",title:o.baidu_name,children:o.baidu_name}),(0,a.jsx)("div",{className:"group flex items-center justify-center w-[20px] h-[20px] cursor-pointer shrink-0 bg-[#E0E6ED] rounded-[50%] hover:bg-[#0F67FE]",onClick:e=>{e.stopPropagation(),ex.Q.remove("nd_baidu_access_token",{domain:".itingnao.com"}),ex.Q.remove("nd_baidu_access_token",{domain:"localhost"}),(0,d.jx)(),m(!0)},title:"éåºè´¦å·",children:(0,a.jsx)(c.JO,{name:"icon-mi_log-out1",className:"text-[#352F44] text-[14px] group-hover:text-[#fff]"})})]})]})}),(0,a.jsx)("div",{className:"mt-[16px] flex justify-center items-center",children:(0,a.jsx)("div",{className:C()("w-[252px] h-[36px] flex justify-center items-center rounded-[30px] text-[#fff] text-[14px] curs
1or-pointer",[0===s?"bg-[#78AEFF] pointer-events-none":"bg-[#0F67FE]"]),onClick:e=>{e.stopPropagation(),u()},children:(0,a.jsx)("span",{children:"è¿æ¥æçç½ç"})})}),x&&(0,a.jsx)("div",{className:"mt-[15px] flex justify-center items-center text-[12px] text-[#352F44] cursor-pointer",onClick:e=>{e.stopPropagation(),window.open("https://pan.baidu.com","_blank")},children:(0,a.jsx)("span",{className:"hover:underline",children:"æ æ³éåºï¼ç¹å»æå¨å»å®ç½éåº"})})]})}var em=s(88625);function eu(e){return e?e<1024?"".concat(e," B"):e<1048576?"".concat((e/1024).toFixed(2)," KB"):e<1073741824?"".concat((e/1024/1024).toFixed(2)," MB"):"".concat((e/1024/1024/1024).toFixed(2)," GB"):"-"}var eh=s(91595),ef=e=>{let{text:t}=e;return(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center gap-[10px] h-full",children:[(0,a.jsx)(eh.J,{name:"icon-jiazaizhong",className:"animate-spin text-[28px]"}),t&&(0,a.jsx)("span",{className:"text-[#4E6181]",children:t})]})};function ev(){return(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center h-full select-none",children:[(0,a.jsx)("span",{className:"text-[#0F67FE] text-[18px] font-[500]",children:"该æä»¶å¤¹ä¸æ å¯è§£ææä»¶"}),(0,a.jsxs)("div",{className:"text-[12px] text-[#8999B5] mt-[10px] leading-[20px]",children:[(0,a.jsx)("p",{children:"⢠é³é¢æ¯æï¼ .mp3ã.wavã.m4aã.wmaã.aacã.oggã.amrã.flacï¼å个æä»¶æå¤§500Mã"}),(0,a.jsx)("p",{children:"⢠è§é¢æ¯æï¼ .mp4ã.wmvã.m4vã.flvã.rmvbã.movã.mkvã.webmï¼å个æä»¶æå¤§6Gã"})]})]})}function eg(e){let{type:t}=e;return(0,a.jsxs)("div",{className:"w-[24px] h-[24px] overflow-hidden rounded-[8px] mr-[8px] shrink-0",children:[1===t&&(0,a.jsx)("img",{src:"".concat(p.JU,"/assets/images/home/baiduyun.png"),alt:"Baidu Pan",className:"w-full h-full object-cover"}),2===t&&(0,a.jsx)("img",{src:"".concat(p.JU,"/assets/images/home/aliyun.png"),alt:"Aliyun Pan",className:"w-full h-full object-cover"})]})}function ej(e){let{diskType:t,breadList:s,goBack:n,open:l}=e,r=(0,i.useMemo)(()=>s.slice(-5),[s.length]);return(0,a.jsxs)("div",{className:"network-disk-bread flex items-center",children:[(0,a.jsx)(c.JO,{name:"icon-arrowleft",className:"mr-[5px] text-[24px] text-[#352F44] cursor-pointer hover:text-[#0F67FE] shrink-0",onClick:n}),(0,a.jsx)(eg,{type:t}),(0,a.jsxs)("div",{className:"flex overflow-hidden",children:[(0,a.jsx)("div",{className:"nd-bread-item shrink-0",children:(0,a.jsx)("span",{className:"nd-bread-text",onClick:()=>l("/"),children:"å
¨é¨æä»¶"})}),s.length>5&&(0,a.jsxs)("div",{className:"nd-bread-item",children:[(0,a.jsx)(c.JO,{name:"icon-arrowright",className:"nd-bread-delimiter"}),(0,a.jsx)("span",{className:"nd-bread-text",children:"..."})]}),r.map(e=>(0,a.jsxs)("div",{className:"nd-bread-item",title:e.server_filename,children:[(0,a.jsx)(c.JO,{name:"icon-arrowright",className:"nd-bread-delimiter"}),(0,a.jsx)("span",{className:"nd-bread-text",onClick:()=>l(e),children:e.server_filename})]},e.fs_id))]})]})}function eb(e){let{isdir:t,category:s}=e;return t?(0,a.jsx)(c.JO,{name:"icon-folder",className:"text-[24px] mr-[4px] shrink-0"}):1===s?(0,a.jsx)(c.JO,{name:"icon-smart_display",className:"text-[24px] mr-[4px] shrink-0"}):2===s?(0,a.jsx)(c.JO,{name:"icon-music_video",className:"text-[24px] mr-[4px] shrink-0"}):void 0}function ew(e){var t;let{isdir:s,server_filename:i}=e;if(s)return(0,a.jsx)("div",{className:"name-text",title:i,children:(0,a.jsx)("span",{className:"text",children:i})});let n=i.split(/\.(?=[a-zA-Z0-9]+$)/),l=n[0],r=".".concat(null===(t=n[1])||void 0===t?void 0:t.toLowerCase());return(0,a.jsxs)("div",{className:"name-text",title:i,children:[(0,a.jsx)("span",{className:"text",children:l}),(0,a.jsx)("span",{className:"type",children:r})]})}function eN(e){let{checked:t}=e;return t?(0,a.jsx)(c.JO,{name:"icon-wancheng",className:"nd-checkbox checked"}):(0,a.jsx)("span",{className:"nd-checkbox unchecked"})}function ey(e){let{freeType:t,language:s,setLanguage:n}=e,l=(0,i.useMemo)(()=>1===t?p.Tk:p.V1,[t]);return(0,a.jsxs)("div",{className:"mt-[16px]",children:[(0,a.jsx)("span",{className:"text-tertiary text-1 text-sm mr-[10px]",children:"é³é¢è¯è¨ï¼"}),(0,a.jsx)("div",{className:"flex gap-[12px] mt-[10px]",children:l.map(e=>(0,a.jsx)("div",{onClick:()=>n(e.value),className:(0,g.cn)("px-[14px] py-[6px] rounded-[6px] border border-[#
1E3E7EC] cursor-pointer",{"border-[#A6CBFF]":s===e.value,"bg-[#EDF5FF]":s===e.value}),children:e.label},e.label))})]})}function e_(e){let{freeType:t,setFreeType:s}=e;return(0,a.jsxs)("div",{className:"mt-[10px]",children:[(0,a.jsx)("span",{className:"text-tertiary text-1 text-sm mr-[10px]",children:"è½¬åæ¨¡å¼ï¼"}),(0,a.jsx)("div",{className:"flex gap-[12px] mt-[10px]",children:(0,a.jsxs)("div",{className:(0,g.cn)("px-[14px] py-[6px] rounded-[6px] border border-[#E3E7EC] cursor-pointer flex items-center gap-[4px]",{"border-[#A6CBFF]":0===t,"bg-[#EDF5FF]":0===t}),onClick:e=>{e.stopPropagation(),s(0)},children:[(0,a.jsx)(em.Z,{rootClassName:"max-w-none",title:(0,a.jsx)("div",{className:"whitespace-pre-wrap",children:"é另宿´AIåè½"}),children:(0,a.jsx)("img",{src:"".concat(p.JU,"/assets/images/newIndex/vip-icon.png"),className:"block ml-[4px] w-[18px] h-[18px]",alt:""})}),"ä¸ä¸ç"]})})]})}function ek(e){let{checkList:t,onSubmit:s,onCancel:i}=e;return(0,a.jsx)("div",{className:"flex flex-col justify-between",children:(0,a.jsxs)("div",{className:"flex justify-center mt-[10px]",children:[(0,a.jsx)("button",{className:(0,g.cn)("btn mr-[20px] btn-primary btn-sm w-52 h-10 rounded-3xl",{"pointer-events-none bg-gray-400 border-[gray]":0===t.length}),onClick:s,children:"è§£ææä»¶"}),(0,a.jsx)("form",{method:"dialog",children:(0,a.jsx)("button",{className:"btn btn-sm w-20 h-10 rounded-3xl",onClick:i,children:"åæ¶"})})]})})}function eF(e){let{diskType:t,handleCloseLayer:s,setModalType:n,isFolderImport:l}=e,o=(0,d.Jh)(),x=(0,d.uz)(),{teamInfo:m}=(0,d.$h)(),u=(0,r.useSearchParams)(),h=(0,d.SY)(),v=(0,i.useMemo)(()=>{var e;let t=u.get("folder_id");return t?Number(t):null==h?void 0:null===(e=h[0])||void 0===e?void 0:e.id},[u,h.length]),[j,b]=(0,i.useState)(p.$v.Chinese),[w,N]=(0,i.useState)(0),[y,_]=(0,i.useState)([]),[k,F]=(0,i.useState)(!1),[E,C]=(0,i.useState)([]),[S,P]=(0,i.useState)([]),[Z,I]=(0,i.useState)(!1),J=e=>S.some(t=>t.fs_id===e.fs_id),A=e=>{P(S.filter(t=>t.fs_id!==e.fs_id))},D=async e=>{let t=[];if("/"===e)t=[];else{let s=y.findIndex(t=>t.fs_id===e.fs_id);t=s>-1?y.slice(0,s+1):[...y,e]}_(t);let s=t.map(e=>e.server_filename).reduce((e,t)=>"".concat(e,"/").concat(t),"");try{F(!0);let e=await function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/";return ed.ZP.get("/baidu/pan/list",{params:{access_token:ex.Q.get("nd_baidu_access_token")||"",dir:e}})}(s);if(200===e.code){let t=e.data.list||[];C(t)}else e.message.includes("errno=-6")?(O.ZP.error("ç¨æ·ä¿¡æ¯å·²è¿æï¼è¯·éæ°ææ"),n(1)):O.ZP.error("è·åç¾åº¦ç½çæä»¶å表失败")}catch(e){console.error("è·åç¾åº¦ç½çæä»¶å表失败:",e)}F(!1)},z=e=>{if(e.isdir)D(e);else if(console.log("networkDiskFile.tsx 181",e),S.findIndex(t=>t.fs_id===e.fs_id)>-1)P(S.filter(t=>t.fs_id!==e.fs_id));else{if(S.length>=6){O.ZP.warning("æå¤åªè½éæ©6个æä»¶");return}if(1===e.category&&e.size>6442450944){O.ZP.warning("è§é¢æä»¶å¤§å°ä¸è½è¶
è¿6Gï¼è¯·éæ°éæ©");return}if(2===e.category&&e.size>524288e3){O.ZP.warning("é³é¢æä»¶å¤§å°ä¸è½è¶
è¿500Mï¼è¯·éæ°éæ©");return}P([...S,e])}},L=()=>{s()},U=async()=>{l&&(0,f.U9)({event:"web_click",page_model:5487});try{let e=await function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ed.ZP.post("/baidu/pan/sync_file",{team_id:e.team_id,folder_id:e.folder_id,trans_type:e.trans_type,language:e.language,is_free_type:e.is_free_type,parent_model:e.parent_model||0,fs_ids:(e.fs_ids||[]).join(","),access_token:ex.Q.get("nd_baidu_access_token"),is_baidu_vip:e.is_baidu_vip||0})}({team_id:m.team_id,folder_id:v,trans_type:p.Kr.NO,language:j,is_free_type:w,parent_model:13,fs_ids:S.map(e=>e.fs_id),is_baidu_vip:x.vip_type});200===e.code?(O.ZP.success("æäº¤è§£ææä»¶æå"),(0,d.dV)(),L(),v&&setTimeout(()=>{location.reload()},1500)):O.ZP.error(e.message||"æäº¤è§£ææä»¶å¤±è´¥ï¼è¯·ç¨ååè¯")}catch(e){console.error("æäº¤è§£ææä»¶å¤±è´¥:",e)}l||(0,f.U9)({event:"web_click",page_model:5142})};return(0,i.useEffect)(()=>{D("/")},[]),(0,i.useEffect)(()=>{S.length>0&&I(!0)},[S.length]),(0,a.jsxs)("div",{className:"modal-box network-disk-file-box",children:[(0,a.jsxs)("div",{className:"flex justify-between h-[24px]",children:[(0,a.jsx)("span",{children:"ç½çä¸ä¼ "}),(0,a.jsx)("div",{className:"cursor-pointer",onClick:s,children:(0,a.jsx)(c.JO,{name:"icon-guanbi"})})]}),(0,a.jsxs)("div",{className:"mt-[16px] p-[16px] border border-dashed border-[#A6CBFF] rounded-[12px] bg-[#EDF5FF]",children:[(0,a.jsx)(ej,{diskType:t,breadList:y,goBack:e=>{if(e.stopPropagation(),0===y.length)n(1);else{let e=y[y.length-2];e?D(e):D("/")}},open:D}),(0,a.jsxs)("div",{className:"h-[264px] flex flex-col overflow-hidden mt-[10px]",children:[k&&(0,a.jsx)(ef,{}),!k&&!E.length&&(0,a.jsx)(ev,{}),!k&&E.length>0&&(0,a.jsxs)("div",{className:"h-full flex flex-col overflow-hidden",children:[(0,a.jsxs)("div",{className:"nd-file-row nd-file-header",children:[(0,a.jsx)("div",{className:"nd-file-name-pl",children:"æä»¶åç§°"}),(0,a.jsx)("div",{children:"æä»¶å¤§å°"}),(0,a.jsx)("div",{children:"ä¿®æ¹æ¶é´"})]}),(0,a.jsx)("div",{className:"nd-fill-body",children:E.map(e=>(0,a.jsxs)("div",{className:(0,g.cn)("nd-file-row",{active:J(e)}),onClick:()=>z(e),children:[(0,a.jsxs)("div",{className:"nd-file-name nd-file-name-pl",children:[!e.isdir&&(0,a.jsx)(eN,{
1checked:J(e)}),(0,a.jsx)(eb,{...e}),(0,a.jsx)(ew,{...e})]}),(0,a.jsx)("div",{className:"nd-file-size",children:(0,a.jsx)("span",{children:eu(e.size)})}),(0,a.jsx)("div",{className:"nd-file-time",children:(0,a.jsx)("span",{children:function(e){if(!e)return"-";let t=new Date(1e3*e),s=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),i=String(t.getDate()).padStart(2,"0"),n=String(t.getHours()).padStart(2,"0"),l=String(t.getMinutes()).padStart(2,"0");return"".concat(s,"-").concat(a,"-").concat(i," ").concat(n,":").concat(l)}(e.server_mtime)})})]},e.fs_id))})]})]})]}),Z&&(0,a.jsxs)("div",{className:"nd-selected",children:[(0,a.jsxs)("span",{className:"text-[14px] text-[#352F44] mr-[10px]",children:["å·²é䏿件(",S.length,"/6)"]}),(0,a.jsx)("div",{className:"nd-slected-list",children:S.map(e=>(0,a.jsxs)("div",{className:"nd-selected-item",children:[(0,a.jsxs)("div",{className:"nd-file-name",children:[(0,a.jsx)(eb,{...e}),(0,a.jsx)(ew,{...e}),(0,a.jsx)("div",{className:"nd-file-size",children:(0,a.jsxs)("span",{children:["(",eu(e.size),")"]})})]}),(0,a.jsx)(c.JO,{name:"icon-guanbi-copy",className:"nd-selected-close",onClick:()=>A(e)})]},e.fs_id))})]}),(0,a.jsx)(ey,{freeType:w,language:j,setLanguage:b}),(0,a.jsx)(e_,{freeType:w,setFreeType:e=>{N(e),0===e&&j===p.$v.Korean&&b(p.$v.Chinese),localStorage.setItem("freeType_upload_".concat(null==o?void 0:o.uuid),1===e?"1":"2")}}),(0,a.jsx)(ek,{checkList:S,onCancel:L,onSubmit:U})]})}function eE(){let e=(0,d.ZV)(m.j2.NetworkDiskOverlay),t=(null==e?void 0:e.folderImport)===!0,[s,n]=(0,i.useState)(1),[l,r]=(0,i.useState)(1),c=()=>{t&&(0,f.U9)({event:"web_click",page_model:5485}),(0,d.mh)(m.j2.NetworkDiskOverlay),n(1),r(1)};return(0,a.jsx)(k.Z,{open:e.open,onCancel:c,footer:null,centered:!0,width:600,closable:!1,className:"pointer-events-auto",children:2===s?(0,a.jsx)(eF,{setModalType:n,diskType:l,setDiskType:r,handleCloseLayer:c,isFolderImport:t}):(0,a.jsx)(ep,{setModalType:n,diskType:l,setDiskType:r,handleCloseLayer:c})})}s(85220),s(83215);var eC=s(21399);function eS(){let[e,t]=(0,i.useState)(!1),[s,n]=(0,i.useState)(0),[l,r]=(0,i.useState)([]),[o,d]=(0,i.useState)(""),[x,p]=(0,i.useState)(""),m=()=>{(0,f.U9)({event:"web_click",page_model:5346}),t(!1)};(0,i.useEffect)(()=>{u()},[]);let u=async()=>{var e,s;let a=localStorage.getItem("version_number")||"0.0.9",i=await eC.Z.post("/api/v1/app_version/check_version",{version_number:a,platform:"web"});if(200==i.code&&i.data){let{target_version:a,need_update:n,version_content:l,record_id:c,download_url:o}=i.data;if(d(l),p(o),a&&localStorage.setItem("version_number",a),n&&c){await (s={record_id:c,action_type:"upgrade"},eC.Z.post("/api/v1/app_version/record_action",s));let i=await eC.Z.post("/api/v1/app_version/version_guide",{target_version:a});if(200==i.code&&(null===(e=i.data)||void 0===e?void 0:e.guide_imgs)){let{guide_imgs:e}=i.data;r(e||[]),(0,f.U9)({event:"web_click",page_model:5342}),t(!0)}}}},h=()=>{s<l.length-1?((0,f.U9)({event:"web_click",page_model:5343}),n(s+1)):((0,f.U9)({event:"web_click",page_model:5344}),m())};return(0,a.jsx)(k.Z,{open:e,onCancel:m,footer:null,width:720,centered:!0,className:"upgrade-guide-modal",closable:!1,children:(0,a.jsxs)("div",{className:"upgrade-guide-content",children:[(0,a.jsx)("div",{className:"upgrade-close-button",onClick:m,children:(0,a.jsx)(c.JO,{name:"icon-guanbi",className:"close-icon"})}),(0,a.jsxs)("div",{className:"upgrade-image-container",children:[l.length>0&&(0,a.jsx)("img",{src:l[s],className:"upgrade-image"}),(0,a.jsxs)("div",{className:"upgrade-navigation",children:[(0,a.jsx)("a",{className:"nav-button prev-button",onClick:()=>{s>0&&n(s-1)},children:(0,a.jsx)(c.JO,{name:"icon-arrowleft",className:"nav-icon"})}),(0,a.jsx)("a",{className:"nav-button next-button",onClick:h,children:(0,a.jsx)(c.JO,{name:"icon-arrowright",className:"nav-icon"})})]})]}),l.length>0&&(0,a.jsx)("div",{className:"upgrade-step-indicator",children:l.map((e,t)=>(0,a.jsx)("div",{className:"step-dot ".concat(t===s?"active":"")},t))}),(0,a.jsxs)("div",{className:"upgrade-text-container",children:[(0,a.jsx)("div",{className:"text-[#352F44] text-[16px] font-[600] mb-[9px]",children:"åè½æ´æ°ä»ç»"}),(0,a.jsx)("h3",{className:"upgrade-title",children:o}),(0,a.jsxs)("div",{className:"upgrade-actions",children:[(0,a.jsx)("div",{className:"upgrade-left-actions",children:(0,a.jsx)("a",{href:x,target:"_blank",className:"update-log-link",onClick:()=>
1{(0,f.U9)({event:"web_click",page_model:5345})},children:"æ¥çæ´æ°æ¥å¿"})}),l.length>0&&(0,a.jsx)("div",{className:"upgrade-right-actions",children:(0,a.jsx)(I.ZP,{type:"primary",className:"next-step-button",onClick:h,children:s<l.length-1?"ä¸ä¸æ¡":"å¼å§ä½¿ç¨"})})]})]})]})})}s(35505);var eP=function(){var e;let t=(0,d.Jh)(),{teamInfo:s}=(0,d.$h)(),n=(0,r.useSearchParams)(),l=(0,w.dD)(),o=(0,u.fJ)(null!==(e=null==n?void 0:n.toString())&&void 0!==e?e:null),[x,m]=(0,i.useState)(!1),h=null==t?void 0:t.id,f=!!(null==s?void 0:s.team_id),v=(0,i.useCallback)(()=>{(0,N.PF)(h),m(!1)},[h]);return(0,i.useEffect)(()=>{let e=e=>{let{type:t}=e.detail||{};"ai-point-upgrade"===t&&m(!0),"close-all"===t&&m(!1)};return window.addEventListener(u.vH,e),()=>window.removeEventListener(u.vH,e)},[]),(0,i.useEffect)(()=>{if(o||l||!h)return;if(f){m(!1);return}if((0,N.sN)(h))return;let e=!1;return Promise.all([(0,N.ju)(),(0,J.tk)(N.Lc)]).then(t=>{var s;let[a,i]=t;!e&&a&&(null==i?void 0:i.code)===200&&(null==i?void 0:null===(s=i.data)||void 0===s?void 0:s[N.Lc])&&m(!0)}),()=>{e=!0}},[o,f,l,h]),(0,a.jsxs)(k.Z,{open:x,footer:null,closable:!1,centered:!0,width:340,maskClosable:!1,className:"app-rights-ai-point-upgrade-notice",destroyOnClose:!0,children:[(0,a.jsx)("button",{type:"button",className:"app-rights-ai-point-upgrade-notice__close","aria-label":"å
³é",onClick:v,children:(0,a.jsx)(c.JO,{name:"icon-guanbi",className:"text-[14px]"})}),(0,a.jsx)("img",{className:"app-rights-ai-point-upgrade-notice__icon",src:"".concat(p.JU,"/assets/images/vip/bg-diamond.png"),alt:""}),(0,a.jsxs)("div",{className:"app-rights-ai-point-upgrade-notice__panel",children:[(0,a.jsx)("h3",{className:"app-rights-ai-point-upgrade-notice__title",children:"AI 积åä½ç³»å级说æ"}),(0,a.jsxs)("p",{className:"app-rights-ai-point-upgrade-notice__subtitle",children:["为æä¾æ´éæçæå¡ï¼åã",(0,a.jsx)("span",{className:"app-rights-ai-point-upgrade-notice__highlight",children:"AIåæ°"}),"ãå·²å级为ã",(0,a.jsx)("span",{className:"app-rights-ai-point-upgrade-notice__highlight",children:"AI积å"}),"ã"]}),(0,a.jsxs)("div",{className:"app-rights-ai-point-upgrade-notice__features",children:[(0,a.jsxs)("div",{className:"app-rights-ai-point-upgrade-notice__feature",children:[(0,a.jsx)("div",{className:"app-rights-ai-point-upgrade-notice__feature-icon",children:(0,a.jsx)(c.JO,{name:"icon-wendangzichan",className:"text-[16px]"})}),(0,a.jsxs)("div",{className:"app-rights-ai-point-upgrade-notice__feature-text",children:[(0,a.jsx)("p",{className:"app-rights-ai-point-upgrade-notice__feature-title",children:"æ¶èéæï¼"}),(0,a.jsx)("p",{className:"app-rights-ai-point-upgrade-notice__feature-desc",children:"使ç¨åè½åå°æç¡®æç¤ºæéç§¯åæ°ã"})]})]}),(0,a.jsxs)("div",{className:"app-rights-ai-point-upgrade-notice__feature",children:[(0,a.jsx)("div",{className:"app-rights-ai-point-upgrade-notice__feature-icon",children:(0,a.jsx)(c.JO,{name:"icon-shijian",className:"text-[16px]"})}),(0,a.jsxs)("div",{className:"app-rights-ai-point-upgrade-notice__feature-text",children:[(0,a.jsx)("p",{className:"app-rights-ai-point-upgrade-notice__feature-title",children:"卿éç½®ï¼"}),(0,a.jsx)("p",{className:"app-rights-ai-point-upgrade-notice__feature-desc",children:"æ¨ç积åå°å¨æ¯ä¸ªVIPæç卿èªå¨éç½®ï¼æ¹ä¾¿æ¨ç»ç¹ä½¿ç¨ã"})]})]})]}),(0,a.jsxs)("p",{className:"app-rights-ai-point-upgrade-notice__note",children:["注ï¼åå©ä½AIåæ°å·²ææ¯ä¾æç®ä¸ºç§¯åï¼",(0,a.jsx)("span",{className:"app-rights-ai-point-upgrade-notice__highlight",children:"2000åæ° = 1积å"}),"ï¼ä¸éç½®æçã"]}),(0,a.jsx)("button",{type:"button",className:"app-rights-ai-point-upgrade-notice__btn",onClick:v,children:"äºè§£å¹¶ç»§ç»ä½¿ç¨"})]})]})},eO=s(87138);let eZ=(0,s(57818).default)(()=>Promise.all([s.e(129),s.e(1103)]).then(s.bind(s,51103)),{loadableGenerated:{webpack:()=>[51103]},ssr:!1});function eI(e){let{open:t,onClose:s}=e;return(0,a.jsx)(k.Z,{open:t,title:"æç¤º",centered:!0,width:420,onCancel:s,footer:(0,a.jsxs)("div",{className:"flex justify-end gap-[12px]",children:[(0,a.jsx)(I.ZP,{shape:"round",onClick:s,style:{minWidth:76,height:40},children:"åæ¶"}),(0,a.jsx)(I.ZP,{type:"primary",shape:"round",onClick:s,style:{minWidth:76,height:40},children:"确认"})]}),children:(0,a.jsxs)("div",{className:"text-[14px] leading-[22px] text-[#352F44]",children:[(0,a.jsx)("p",{className:"mb-[12px]",children:"该åè½å¼å¯åï¼äºèç½ä¸è·å¾é¾æ¥ç人é½è½å¤è®¿é®æ¤é¡¹ç®ãä½ä¸ºé¡¹ç®ææè
ï¼éè¦å¯¹å
¶åæ³åè§æ§è´è´£ã"}),(0,a.jsx)("p",{className:"mb-[12px]",children:"请å¿åäº«è¿æ³ãè¿è§æä¾µæå
容ãç»å¹³å°æ ¸å®è¿è§è¡ä¸ºå°ä¾æ®æå¡åè®®è¿è¡å¤çï¼å¹¶ä¾æ³åæå
³é¨é¨æ¥åã"}),(0,a.jsxs)("p",{children:["å
·ä½è¯´æåå®å
¨äºé¡¹è¯·æ¥ç",(0,a.jsx)(eO.default,{href:"".concat(p.JU,"/assets/about/user.html?s=1"),target:"_blank",className:"text-[#0F67FE] mx-[4px]",children:"æå¡åè®®"}),"å",(0,a.jsx)(eO.default,{href:"".concat(p.JU,"/assets/about/yingsi.html?s=1"),target:"_blank",className:"text-[#0F67FE] ml-[4px]",children:"éç§æ¿ç"})]})]})})}var eJ=function(){var e;let t=(0,r.useSearchParams)(),s=(0,r.usePathname)(),n=(0,u.fJ)(null!==(e=null==t?void 0:t.toString())&&void 0!==e?e:null),[l,c]=(0,i.useState)(!1),[o,d]=(0,i.useState)(!1);return((0,i.useEffect)(()=>
1{if(!n)return;let e=e=>{let{type:t}=e.detail||{};"share-policy"===t&&c(!0),"close-all"===t&&c(!1)};return window.addEventListener("tingnao:debug-modal",e),()=>window.removeEventListener("tingnao:debug-modal",e)},[n]),(0,i.useEffect)(()=>{if(!n)return;let e=(null==t?void 0:t.get("force"))==="all",s=null==t?void 0:t.get("modal");if(s){(0,u.S_)(s);return}if(e){u.FS.forEach(e=>{(0,u.S_)(e)});return}u.FS.forEach(e=>{(0,u.S_)(e)})},[n,t]),n)?(0,a.jsxs)(a.Fragment,{children:["/home"!==s&&(0,a.jsx)(eZ,{}),(0,a.jsx)(eI,{open:l,onClose:()=>c(!1)}),(0,a.jsxs)("div",{className:"fixed right-[12px] bottom-[12px] z-[100000] bg-white/95 border border-[#E5E7EB] rounded-[12px] shadow-lg p-[12px] max-w-[320px]",style:{backdropFilter:"blur(8px)"},children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-[8px]",children:[(0,a.jsx)("strong",{className:"text-[13px] text-[#352F44]",children:"å¼¹çªæ ·å¼è°è¯"}),(0,a.jsx)("button",{type:"button",className:"text-[12px] text-[#0F67FE]",onClick:()=>d(e=>!e),children:o?"å±å¼":"æ¶èµ·"})]}),!o&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"text-[11px] text-[#8999B5] mb-[8px] leading-[16px]",children:"URL: ?debugModals=1ï¼å·²å
¨é¨å¼ºå¶æå¼ï¼ãVIPæ´»å¨å¼¹çªéå¨ /home 页ã"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-[6px] mb-[8px]",children:u.qL.map(e=>(0,a.jsx)("button",{type:"button",className:"px-[8px] py-[4px] text-[11px] rounded-[6px] bg-[#F1F6FF] text-[#0F67FE] hover:bg-[#E2EDFF]",onClick:()=>(0,u.S_)(e.type),children:e.label},e.type))}),(0,a.jsx)("button",{type:"button",className:"w-full py-[6px] text-[12px] rounded-[6px] bg-[#352F44] text-white",onClick:()=>(0,u.S_)("close-all"),children:"å
³éå
¨é¨"})]})]})]}):null},eA=s(76903);let eD={host:"cn-hangzhou.log.aliyuncs.com",project:"tingnao",logstore:"web-tracking",time:1,count:10,topic:"topic",source:"source",tags:{tags:"tags"}};var ez=function(){let e=(0,d.DC)(),t=(0,d.XZ)(),s=(0,d.I4)(),o=(0,r.usePathname)(),x=(0,r.useSearchParams)(),m=(0,d.G)(),u=(0,r.useParams)();(0,i.useEffect)(()=>{(0,eA.m0)(window.location.search)},[o,x]),(0,i.useEffect)(()=>{(0,g.s2)()||window.addEventListener("beforeunload",a=>{a.returnValue=s.length||t||e?"ç³»ç»å¯è½ä¸ä¼ä¿åä½ å½åæåçæ´æ¹ï¼":""})},[s,t]);let b=async()=>{let e=x.get("token")||"",t=x.get("channel_tag")||"",s=await (0,j.im)(e,t);200===s.code&&(ex.Q.set("auth_token",s.data.jwt,{expires:30,domain:".itingnao.com"}),ex.Q.set("auth_token",s.data.jwt,{expires:30,domain:"127.0.0.1"}),history.pushState({},"","/home"),(0,d.C5)())};(0,l.Z)(()=>{let e=(0,g.VW)(location.href),t=x.get("client_token");if(t)ex.Q.set("auth_token",t,{expires:30,domain:".itingnao.com"}),ex.Q.set("auth_token",t,{expires:30,domain:"127.0.0.1"}),(0,d.C5)();else if(p.hi[e]){if(x.get("token"))b();else if(ex.Q.get("auth_token"))(0,d.C5)();else{var s;location.href=null===(s=p.hi[e])||void 0===s?void 0:s.homeUrl}}else ex.Q.get("auth_token")&&(0,d.C5)()},[]),(0,l.Z)(()=>{(0,v.V5)()&&document.body.classList.add("font-mac"),(0,v.ED)()&&document.body.classList.add("font-windows")},[]),(0,i.useEffect)(()=>{if(window){if(!m){(0,f.wf)(new n.Z(eD)),setTimeout(()=>{(0,f.tN)({pathname:o,params:u})},100);return}m&&(0,f.tN)({pathname:o,params:u})}},[o]);let w=/^\/m(-|$)/.test(o||"");return(0,a.jsx)(a.Fragment,{children:!w&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.m3,{}),(0,a.jsx)(h,{}),(0,a.jsx)(ee,{}),(0,a.jsx)(_,{}),(0,a.jsx)(V,{}),(0,a.jsx)(z,{}),(0,a.jsx)(D,{}),(0,a.jsx)(T,{}),(0,a.jsx)(eo,{}),(0,a.jsx)(P,{}),(0,a.jsx)(eE,{}),(0,a.jsx)(eS,{}),(0,a.jsx)(eP,{}),(0,a.jsx)(eJ,{})]})})}},3181:function(e,t,s){"use strict";s.d(t,{FS:function(){return r},S_:function(){return n},fJ:function(){return i},qL:function(){return l},vH:function(){return a}});let a="tingnao:debug-modal";function i(e){return"1"===new URLSearchParams(null!=e?e:window.location.search).get("debugModals")}function n(e){window.dispatchEvent(new CustomEvent(a,{detail:{type:e}}))}let l=[{label:"æ¯æ¥ç¦å©",type:"activity"},{label:"ç¨æ·ç»å",type:"preference"},{label:"å¼éVIP",type:"recharge-not-vip"},{label:"VIPç»è´¹",type:"recharge-vip"},{label:"VIPæ´»å¨-å¯å¨",type:"vip-start"},{label:"VIPæ´»å¨-æ´»å¨é¡µ",type:"vip-page"},{label:"VIPæ´»å¨-æ½ç",type:"vip-retain"},{label:"VIPæ´»å¨-æ¯ä»ç ",type:"vip-qr"},{label:"VIPæ´»å¨å¼¹çª",type:"vip-activity"},{label:"å享æ¿ç",type:"share-policy"},{label:"积åå级å
Œ",type:"ai-point-upgrade"}],r=l.map(e=>e.type)},58877:function(){},6050:function(){},7654:function(){},35505:function(){},83598:function(){},85220:function(){},75808:function(){},84450:function(){},21619:function(){},83215:function(){}},function(e){e.O(0,[404,7269,510,2212,6525,6486,3927,9077,7866,1644,3858,6276,4315,6128,2498,1705,6787,2649,4893,874,4819,5223,7924,5396,2971,7023,1744],function(){return e(e.s=17418)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.