(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{69757:function(e,t,r){Promise.resolve().then(r.bind(r,71640)),Promise.resolve().then(r.bind(r,41737)),Promise.resolve().then(r.bind(r,32766)),Promise.resolve().then(r.bind(r,77132)),Promise.resolve().then(r.bind(r,39399)),Promise.resolve().then(r.bind(r,24355)),Promise.resolve().then(r.bind(r,48225)),Promise.resolve().then(r.bind(r,65689)),Promise.resolve().then(r.bind(r,23183)),Promise.resolve().then(r.bind(r,38885)),Promise.resolve().then(r.bind(r,32111)),Promise.resolve().then(r.bind(r,45610)),Promise.resolve().then(r.bind(r,49790)),Promise.resolve().then(r.bind(r,10698)),Promise.resolve().then(r.bind(r,66573)),Promise.resolve().then(r.bind(r,99185)),Promise.resolve().then(r.bind(r,12385)),Promise.resolve().then(r.bind(r,81067)),Promise.resolve().then(r.bind(r,94784)),Promise.resolve().then(r.bind(r,2511)),Promise.resolve().then(r.bind(r,99818)),Promise.resolve().then(r.bind(r,96042)),Promise.resolve().then(r.bind(r,23085)),Promise.resolve().then(r.bind(r,62271)),Promise.resolve().then(r.bind(r,69445)),Promise.resolve().then(r.bind(r,2582)),Promise.resolve().then(r.bind(r,23272)),Promise.resolve().then(r.bind(r,79095)),Promise.resolve().then(r.bind(r,28128)),Promise.resolve().then(r.bind(r,99666)),Promise.resolve().then(r.bind(r,33691)),Promise.resolve().then(r.bind(r,90326)),Promise.resolve().then(r.bind(r,75819)),Promise.resolve().then(r.bind(r,5880)),Promise.resolve().then(r.bind(r,9915)),Promise.resolve().then(r.bind(r,9728)),Promise.resolve().then(r.bind(r,41694)),Promise.resolve().then(r.bind(r,40525)),Promise.resolve().then(r.bind(r,71963)),Promise.resolve().then(r.bind(r,23824)),Promise.resolve().then(r.bind(r,5362)),Promise.resolve().then(r.bind(r,41273)),Promise.resolve().then(r.t.bind(r,73917,23)),Promise.resolve().then(r.t.bind(r,3125,23)),Promise.resolve().then(r.bind(r,51107)),Promise.resolve().then(r.bind(r,68715)),Promise.resolve().then(r.bind(r,19389)),Promise.resolve().then(r.bind(r,79006)),Promise.resolve().then(r.bind(r,42846)),Promise.resolve().then(r.bind(r,63501))},2478:function(e,t,r){"use strict";r.d(t,{q5:function(){return v},AT:function(){return d},hu:function(){return f},m$:function(){return p},gu:function(){return h},z9:function(){return c},n3:function(){return b},bG:function(){return g},AA:function(){return y},gS:function(){return m},n$:function(){return u},ek:function(){return x}});var s=r(28535),n=r(41085),a=r(18963);let o=async e=>{if(!e.headers)return e;let t=e.headers.get("content-type"),r=e.headers.get("content-disposition");return null===t?null:-1!==t.indexOf("application/json")?await e.json():-1!==t.indexOf("text/plain")?await e.text():null!=r&&-1!==r.indexOf("attachment")?await e.blob():e},i=async e=>{let t=await o(e),r=(null==t?void 0:t.message)||(null==t?void 0:t.errMessage)||t;switch(e.status){case 500:r="内部服务器错误,请稍后再试";break;case 401:(0,a.rf)();return;case 403:r="资源拒绝授权访问",(0,a.d6)(1e3);break;case 404:return;default:r="string"==typeof r&&""!==r?r:"操作失败,请稍后再试,或联系技术人员"}throw s.ZP.error(r),t},l=()=>{let e=async(e,t,r)=>{let s=(0,n.kG)(),l="".concat(s).concat(e).concat((null==t?void 0:t.params)?t.params:""),d=(null==t?void 0:t.body)?t.body instanceof FormData?{...t,body:t.body}:{...t,body:JSON.stringify(t.body)}:t,c={...null==t?void 0:t.headers,...(null==t?void 0:t.body)&&t.body instanceof FormData?{}:{"Content-type":"application/json"},Authorization:"Bearer ".concat((0,a.cw)())};return fetch(l,{...d,headers:c,signal:r}).then(async e=>{if(!e.ok)throw e;return o(e)}).catch(async e=>{await i(e)})};return{get:async(t,r)=>e(t,{...r,method:"get"}),post:async(t,r)=>e(t,{...r,method:"post"}),put:async(t,r)=>e(t,{...r,method:"put"}),patch:async(t,r)=>e(t,{...r,method:"patch"}),delete:async(t,r)=>e(t,{...r,method:"delete"})}},d=e=>l().post("/category/list",{body:e}),c=e=>l().post("/employee/search",{body:e}),h=e=>l().post("/employee/detail",{body:e}),u=e=>l().post("/gpts/user/login",{body:e}),x=e=>l().post("/gpts/user/password",{body:e}),m=e=>l().post("/gpts/user/update",{body:e}),g=()=>l().post("/gpts/user/info"),b=()=>l().post("/gpts/user/balance"),f=e=>l().post("/gpts/chat/message",{body:e}),p=e=>l().post("/gpts/chat/session",{body:e}),v=e=>l().post("/gpts/chat/session/delete",{body:e}),y=e=>l().post("/gpts/chat/session/rename",{body:e})},51107:function(e,t,r){"use strict";r.r(t);var s=r(82267),n=r(38786);t.default=()=>{let[e,t]=(0,n.useState)(!1);return((0,n.useEffect)(()=>{t(!0)},[]),e)?null:(0,s.jsx)("div",{className:"fixed flex w-screen h-screen justify-center items-center flex-col z-[99] overflow-hidden bg-white dark:bg-slate-900",children:(0,s.jsx)("div",{className:"relative w-12 h-12 rotate-[165deg] before:content-[''] after:content-[''] before:absolute after:absolute before:top-2/4 after:top-2/4 before:left-2/4 after:left-2/4 before:block after:block before:w-[.5em] after:w-[.5em] before:h-[.5em] after:h-[.5em] before:rounded after:rounded before:-translate-x-1/2 after:-translate-x-1/2 before:-translate-y-2/4 after:-translate-y-2/4 before:animate-[loaderBefore_2s_infinite] after:animate-[loaderAfter_2s_infinite]"})})}},68715:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return v}});var s,n,a,o,i,l,d=r(82267),c=r(38786),h=r(5292),u=r(85098),x=r(41273),m=r(88904);(s=o||(o={})).SYSTEM="system",s.LIGHT="light",s.DARK="dark",(n=i||(i={}))[n.SUCCESS=200]="SUCCESS",n[n.ERROR=500]="ERROR",(a=l||(l={})).SUCCESS="请求成功",a.ERROR="请求失败";var g=()=>{let[e,t]=(0,c.useState)(!1),{theme:r,setTheme:s}=(0,x.useTheme)(),n=r===o.LIGHT;return((0,c.useEffect)(()=>{t(!0)},[]),e)?(0,d.jsx)(u.e,{showArrow:!0,content:n?"浅色模式":"深色模式",placement:"bottom",children:(0,d.jsx)("div",{onClick:()=>s(n?"dark":"light"),className:"cursor-pointer ease-in-out p-2 rounded-md text-gray-700 dark:text-gray-200 hover:text-gray-900 dark:hover:text-white hover:bg-gray-50 dark:hover:bg-gray-800",children:n?(0,d.jsx)(m.sEY,{size:20}):(0,d.jsx)(m.S6R,{size:20})})}):null},b=r(63501),f=r(18963),p=r(2478);function v(e){let{name:t}=e,r=(0,h.useRouter)(),{loginShow:s,changeLoginShow:n,uploadUserInfoState:a}=(0,b.useGlobalContext)(),[o,i]=(0,c.useState)(!1),[l,u]=(0,c.useState)("");return(0,c.useEffect)(()=>{(0,f.cw)()&&(0,p.bG)().then(e=>{0===e.code&&(i(!0),u(e.data.nickname))})},[s,a]),(0,d.jsxs)("header",{className:"sticky w-full flex gap-4 justify-between items-center top-0 shadow dark:shadow-none backdrop-blur dark:bg-transparent transition-all py-2 px-1 z-50",children:[(0,d.jsxs)("div",{className:"flex gap-3 justify-between items-center grow-0 shrink-0",children:[(0,d.jsx)("img",{src:"/logo.png",alt:"logo",width:40,height:40}),(0,d.jsx)("div",{className:"hidden md:block",children:(0,d.jsx)("h1",{className:"global-txt-color text-xl",children:t})})]}),(0,d.jsx)("div",{className:"absolute top-2/4 left-1/2 -translate-x-1/2 -translate-y-2/4 max-md:hidden"}),(0,d.jsxs)("div",{className:"flex justify-between items-center grow-0 shrink-0",children:[o&&(0,d.jsx)("a",{onClick:()=>r.push("/user-center.html"),className:"cursor-pointer ease-in-out p-2 rounded-md text-gray-700 dark:text-gray-200 hover:text-gray-900 dark:hover:text-white hover:bg-gray-50 dark:hover:bg-gray-800",children:l}),!o&&(0,d.jsx)("button",{className:"inline-flex py-2 px-2 rounded-lg items-center text-white global-bg-color border-0 focus:outline-none mr-3",onClick:()=>{n(!0)},children:(0,d.jsx)("span",{className:"ml-1 pr-2 flex items-start flex-col leading-none",children:(0,d.jsx)("span",{className:"title-font font-medium",children:"用户登录"})})}),(0,d.jsx)(g,{})]})]})}},19389:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return c}});var s=r(82267),n=r(38786),a=r(63501),o=r(2478),i=r(28535),l=r(18963),d=r(88904);function c(){let{loginShow:e,changeLoginShow:t}=(0,a.useGlobalContext)(),[r,c]=(0,n.useState)(""),[h,u]=(0,n.useState)(""),x=(0,n.useRef)(null),m=(0,n.useRef)(null);return(0,s.jsx)(s.Fragment,{children:e&&(0,s.jsxs)("div",{className:"login-box",children:[(0,s.jsx)("div",{className:"login-mask"}),(0,s.jsxs)("div",{className:"login-div dark:bg-gray-800 w-11/12 md:w-128",children:[(0,s.jsx)("h4",{className:"text-2xl text-center dark:text-blue-50",children:"登 录"}),(0,s.jsx)("ul",{className:"flex justify-around mt-1 mb-3"}),(0,s.jsx)("div",{className:"login pt-2 h-92.5 rounded-lg bg-white dark:bg-gray-800 dark:opacity-75",children:(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"mt-8 px-6",children:(0,s.jsx)("div",{className:"flex items-center justify-between h-13 px-2.5 py-2 rounded bg-gray-100 dark:bg-gray-900",children:(0,s.jsx)("input",{ref:x,className:"flex-1 h-full",type:"text",placeholder:"请输入登录账户",value:r,onChange:e=>c(e.target.value),autoComplete:"new-password"})})}),(0,s.jsxs)("div",{className:"mt-5 px-6",children:[(0,s.jsx)("div",{className:"flex items-center justify-between h-13 px-2.5 py-2 rounded bg-gray-100 dark:bg-gray-900",children:(0,s.jsx)("input",{ref:m,className:"flex-1 h-full",type:"password",placeholder:"请输入登录密码",value:h,onChange:e=>u(e.target.value),autoComplete:"new-password"})}),(0,s.jsx)("p",{className:"h-5 mt-2 px-2.5 text-red-500"})]}),(0,s.jsxs)("div",{className:"mt-4 text-center text-gray-400",children:[(0,s.jsx)("label",{className:"text-gray-500 dark:text-gray-700",children:"同意"}),(0,s.jsx)("a",{href:"/",className:"text-gray-600 hover:text-[#0061ff] mx-1",children:"用户协议"}),(0,s.jsx)("label",{className:"text-gray-500 dark:text-gray-700",children:"和"}),(0,s.jsx)("a",{href:"/",className:"text-gray-600 hover:text-[#0061ff] mx-1",children:"隐私政策"})]}),(0,s.jsx)("div",{className:"mt-3 px-8",children:(0,s.jsx)("button",{className:"block w-full h-12 rounded text-base text-white global-bg-color focus:outline-none focus:ring sm:mt-6 transition ease-in-out hover:-translate-y-1 hover:scale-105 duration-300",onClick:e=>{var s,n;e.preventDefault(),r?h?(0,o.n$)({username:r,password:h}).then(e=>{0==e.code?(i.ZP.success("登录成功"),(0,l.Sm)(e.data.token,e.data.expireTime),t(!1)):i.ZP.error("用户名或密码错误")}):null===(s=m.current)||void 0===s||s.focus():null===(n=x.current)||void 0===n||n.focus()},children:"登 录"})})]})}),(0,s.jsx)(d.tgW,{className:"close absolute right-2.5 top-2.5 w-7 h-7 text-gray-600 dark:text-gray-300 cursor-pointer transform duration-500 ease-in-out hover:scale-110",onClick:()=>{t(!e),c(""),u("")}})]})]})})}},42846:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l}});var s=r(82267),n=r(5292),a=r(54648),o=r.n(a),i=r(63501);function l(){let e=(0,n.useRouter)(),{menuIndex:t}=(0,i.useGlobalContext)();return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"relative h-full",children:[(0,s.jsxs)("div",{className:"flex flex-col items-center space-4 select-none",children:[(0,s.jsxs)("div",{className:"p-1 my-2 rounded-md text-center ".concat(1==t?"bg-blue-50 dark:bg-blue-950 text-[#0061ff]":"text-gray-500 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white hover:bg-gray-50 dark:hover:bg-gray-800"," cursor-pointer"),onClick:()=>e.push("/dialogue.html"),children:[(0,s.jsx)(o(),{src:"/icons/icon-talk.svg",alt:"聊天",width:50,height:50}),(0,s.jsx)("p",{className:"text-sm text-center py-1",children:"对话"})]}),(0,s.jsxs)("div",{className:"p-1 my-2 rounded-md text-center ".concat(2==t?"bg-blue-50 dark:bg-blue-950 text-[#0061ff]":"text-gray-500 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white hover:bg-gray-50 dark:hover:bg-gray-800"," cursor-pointer"),onClick:()=>e.push("/"),children:[(0,s.jsx)(o(),{src:"/icons/icon-app.svg",alt:"应用",width:50,height:50}),(0,s.jsx)("p",{className:"text-sm text-center py-1",children:"应用"})]}),(0,s.jsxs)("div",{style:{display:"none"},className:"p-1 my-2 rounded-md text-center ".concat(3==t?"bg-blue-50 dark:bg-blue-950 text-[#0061ff]":"text-gray-500 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white hover:bg-gray-50 dark:hover:bg-gray-800"," cursor-pointer"),onClick:()=>e.push("/vip.html"),children:[(0,s.jsx)(o(),{src:"/icons/icon-vip.svg",alt:"会员",width:50,height:50}),(0,s.jsx)("p",{className:"text-sm text-center py-1",children:"会员"})]}),(0,s.jsxs)("div",{style:{display:"none"},className:"p-1 my-2 rounded-md text-center ".concat(4==t?"bg-blue-50 dark:bg-blue-950 text-[#0061ff]":"text-gray-500 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white hover:bg-gray-50 dark:hover:bg-gray-800"," cursor-pointer"),onClick:()=>e.push("/help.html"),children:[(0,s.jsx)(o(),{src:"/icons/icon-question.svg",alt:"帮助",width:50,height:50}),(0,s.jsx)("p",{className:"text-sm text-center py-1",children:"帮助"})]})]}),(0,s.jsxs)("div",{className:"flex flex-col items-center space-4 select-none inset-x-0 mt-2",children:[(0,s.jsx)("div",{className:"w-full my-2 py-3 rounded-md text-center text-gray-900 dark:text-gray-500 bg-gray-50 dark:bg-gray-800 border border-slate-200 dark:border-slate-700",children:(0,s.jsxs)("a",{href:"https://fenshen.zyldai.com/login?site=RQZvQjDa",target:"_blank",children:[(0,s.jsx)(o(),{src:"/icons/a-1.svg",alt:"数字人",width:40,height:40,className:"mx-auto"}),(0,s.jsx)("p",{className:"text-sm text-center",children:"数字人"})]})}),(0,s.jsxs)("div",{className:"hidden",children:[(0,s.jsx)("div",{className:"w-full my-2 py-3 rounded-md text-center text-gray-900 dark:text-gray-500 bg-gray-50 dark:bg-gray-800 border border-slate-200 dark:border-slate-700",children:(0,s.jsxs)("a",{href:"https://gpts.gkscrm.com/",target:"_blank",children:[(0,s.jsx)(o(),{src:"/icons/a-2.svg",alt:"课程入驻",width:40,height:40,className:"mx-auto"}),(0,s.jsx)("p",{className:"text-sm text-center",children:"课程入驻"})]})}),(0,s.jsx)("div",{className:"w-full my-2 py-3 rounded-md text-center text-gray-900 dark:text-gray-500 bg-gray-50 dark:bg-gray-800 border border-slate-200 dark:border-slate-700",children:(0,s.jsxs)("a",{href:"https://gpts.gkscrm.com/",target:"_blank",children:[(0,s.jsx)(o(),{src:"/icons/a-3.svg",alt:"加入分销",width:50,height:50,className:"mx-auto"}),(0,s.jsx)("p",{className:"text-sm text-center",children:"加入分销"})]})}),(0,s.jsx)("div",{className:"w-full my-2 py-3 rounded-md text-center text-gray-900 dark:text-gray-500 bg-gray-50 dark:bg-gray-800 border border-slate-200 dark:border-slate-700",children:(0,s.jsxs)("a",{href:"https://gpts.gkscrm.com/",target:"_blank",children:[(0,s.jsx)(o(),{src:"/icons/a-4.svg",alt:"小程序推广",width:40,height:40,className:"mx-auto"}),(0,s.jsx)("p",{className:"text-sm text-center",children:"小程序推广"})]})}),(0,s.jsx)("div",{className:"w-full my-2 py-3 rounded-md text-center text-gray-900 dark:text-gray-500 bg-gray-50 dark:bg-gray-800 border border-slate-200 dark:border-slate-700",children:(0,s.jsxs)("a",{href:"https://gpts.gkscrm.com/",target:"_blank",children:[(0,s.jsx)(o(),{src:"/icons/a-5.svg",alt:"电商带货",width:40,height:40,className:"mx-auto"}),(0,s.jsx)("p",{className:"text-sm text-center",children:"电商带货"})]})}),(0,s.jsx)("div",{className:"w-full my-2 py-3 rounded-md text-center text-gray-900 dark:text-gray-500 bg-gray-50 dark:bg-gray-800 border border-slate-200 dark:border-slate-700",children:(0,s.jsxs)("a",{href:"https://gpts.gkscrm.com/",target:"_blank",children:[(0,s.jsx)(o(),{src:"/icons/a-6.svg",alt:"生财有道 - 副业圈子",width:40,height:40,className:"mx-auto"}),(0,s.jsx)("p",{className:"text-sm text-center",children:"生财有道"}),(0,s.jsx)("p",{className:"text-sm text-center",children:"副业圈子"})]})})]})]})]})})}},79006:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l}});var s=r(82267),n=r(5292),a=r(54648),o=r.n(a),i=r(63501);function l(){let e=(0,n.useRouter)(),{menuIndex:t}=(0,i.useGlobalContext)();return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"fixed bottom-0 left-0 right-0 py-1 bg-[#ffffff] dark:bg-[#202123] shadow-2xl shadow-black z-50",children:(0,s.jsxs)("div",{className:"flex justify-around items-center py-1 text-gray-500 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white hover:bg-gray-50 dark:hover:bg-gray-800 text-center text-sm",children:[(0,s.jsxs)("a",{className:1==t?"bg-blue-50 dark:bg-blue-950 text-[#0061ff] rounded px-3":"px-3",onClick:()=>e.push("/dialogue.html"),children:[(0,s.jsx)(o(),{src:"/icons/icon-talk.svg",alt:"聊天",width:28,height:28}),(0,s.jsx)("p",{className:"text-sm text-center py-1",children:"对话"})]}),(0,s.jsxs)("a",{className:2==t?"bg-blue-50 dark:bg-blue-950 text-[#0061ff] rounded px-3":"px-3",onClick:()=>e.push("/"),children:[(0,s.jsx)(o(),{src:"/icons/icon-app.svg",alt:"应用",width:28,height:28}),(0,s.jsx)("p",{className:"text-sm text-center py-1",children:"应用"})]}),(0,s.jsxs)("a",{className:3==t?"bg-blue-50 dark:bg-blue-950 text-[#0061ff] rounded px-3":"px-3",onClick:()=>e.push("/vip.html"),children:[(0,s.jsx)(o(),{src:"/icons/icon-vip.svg",alt:"会员",width:28,height:28}),(0,s.jsx)("p",{className:"text-sm text-center py-1",children:"会员"})]}),(0,s.jsxs)("a",{className:4==t?"bg-blue-50 dark:bg-blue-950 text-[#0061ff] rounded px-3":"px-3",onClick:()=>e.push("/help.html"),children:[(0,s.jsx)(o(),{src:"/icons/icon-question.svg",alt:"帮助",width:28,height:28}),(0,s.jsx)("p",{className:"text-sm text-center py-1",children:"帮助"})]})]})})})}},63501:function(e,t,r){"use strict";r.r(t),r.d(t,{GlobalProvider:function(){return o},useGlobalContext:function(){return i}});var s=r(82267),n=r(38786);let a=(0,n.createContext)(null),o=e=>{let{children:t}=e,[r,o]=(0,n.useState)(0),[i,l]=(0,n.useState)(!1),[d,c]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{},[]),(0,s.jsx)(a.Provider,{value:{menuIndex:r,changeMenuIndex:e=>{o(e)},loginShow:i,changeLoginShow:e=>{l(e)},uploadUserInfoState:d,changeUploadUserInfoState:e=>{c(e)}},children:t})},i=()=>(0,n.useContext)(a)},41085:function(e,t,r){"use strict";r.d(t,{kG:function(){return n},tq:function(){return s}});let s=()=>{let e=void 0===window.navigator?"":navigator.userAgent;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(e)},n=()=>"https://wxadminapi.gkscrm.com/wechat-api"},18963:function(e,t,r){"use strict";r.d(t,{Sm:function(){return o},cw:function(){return i},d6:function(){return a},rf:function(){return n}});let s=()=>"/login",n=()=>{location.href=s()},a=e=>{let t=()=>{location.href="/"};e?setTimeout(t,e):t()},o=(e,t)=>{localStorage.setItem("session",JSON.stringify({sessionId:e,expires:t}))},i=()=>{if("undefined"==typeof localStorage)return"";let e=JSON.parse(localStorage.getItem("session")||"{}");return(null==e?void 0:e.expires)&&(null==e?void 0:e.expires)>new Date().getTime()?e.sessionId:""}},73917:function(){}},function(e){e.O(0,[6407,9791,5220,6379,3463,7717,1744],function(){return e(e.s=69757)}),_N_E=e.O()}]);