PageSourceSearch

https://img.itingnao.com/prod-assets/_next/static/chunks/app/layout-214a07d651a02a2e.js

js itingnao.com collected 2026-10-09 01:03:08 UTC 104,538 bytes, 1 lines download raw bytes

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.