(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[62548],{24950:function(e){e.exports={bypassHumanizerButton:"HumanizeButton_bypassHumanizerButton__8Pm6M"}},699525:function(e){e.exports={bypassEditor:"EntryForm_bypassEditor__MicFu"}},31585:function(e){e.exports={highLightBlinK:"UsageTips_highLightBlinK__DpknS",blink:"UsageTips_blink__XkcaZ"}},534955:function(e){e.exports={bypassEditor:"OutputForm_bypassEditor__EywfG"}},535514:function(e){e.exports={scrollbar:"MobileHistoryDrawer_scrollbar__BHMm3"}},212701:function(e){e.exports={gradient:"HightFont_gradient__3i49H"}},558156:function(e,t,s){"use strict";s.d(t,{W:function(){return l}});var n=s(629232),r=s(504071),i=s(560256);function l(e,t){let s=(0,r.default)(e);return s.map((e,r)=>(0,n.jsxs)(i.Fragment,{children:[e,r+1!==s.length&&t]},r))}},539437:function(e,t,s){"use strict";var n=s(629232),r=s(255147);t.Z=function(e){let{children:t}=e;return(0,n.jsx)(r.Z,{permissionKey:"upgradeTips",children:t})}},76590:function(e,t,s){"use strict";var n=s(560256),r=s(629232),i=s(856582),l=s(883186),a=s(638414),c=s(319883);t.Z=function(e){var t;let{textList:s=[]}=e,{isLoading:o}=(0,l.s)(),d=(0,a.bS)(),[u,x]=(0,n.useState)(),m=(0,n.useMemo)(()=>{let e=[];return Object.values(d).forEach(t=>{e.push(t,t)}),e},[d]);(0,i.mV)();let[f,h]=(0,n.useState)(null==s?void 0:null===(t=s[0])||void 0===t?void 0:t.text),[p,j]=(0,n.useState)(".");return(0,c.Z)({delay:500,shouldRun:o,fn:()=>{j(p.length<3?"".concat(p,"."):".")},maxCount:1e6}),(0,c.Z)({shouldRun:o,delay:1e3,fn:e=>{s.forEach(t=>{e>t.delaySecond&&(h(t.text),t.withPlatform&&x(m[e%16]))})},maxCount:1e6}),(0,r.jsx)("div",{className:"px-6",children:(0,r.jsxs)("div",{className:"text-center font-semibold",children:[(0,r.jsx)("span",{children:f}),(0,r.jsxs)("div",{className:"inline-flex items-center justify-center",children:[(null==u?void 0:u.Logo)?(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("span",{children:"\xa0"}),(0,r.jsx)("div",{className:"flex h-5 w-5 items-center",children:u.Logo("h-5 w-5")})]}):null,(null==u?void 0:u.text)?(0,r.jsxs)("span",{children:["\xa0",null==u?void 0:u.text]}):null,(0,r.jsx)("span",{children:p})]})]})})}},529296:function(e,t,s){"use strict";s.d(t,{$:function(){return u},y:function(){return d}});var n=s(925114),r=s(560256),i=s(818344),l=s(696062),a=s(128445),c=s(965624);let o={client_id:"",redirect_uri:"",response_type:"",scope:"",state:""},d="gpts-connect-params";function u(e){var t,s;let{serverSession:u}=e,{email:x,isSignIn:m,sessionLoading:f}=(0,l.Q)(),h=!!((null==u?void 0:null===(t=u.user)||void 0===t?void 0:t.email)||m),p=(null==u?void 0:null===(s=u.user)||void 0===s?void 0:s.email)||x,j=(0,n.tv)(),[v,g]=(0,a.Z)(d,{defaultValue:o}),{query:y}=j;(0,r.useEffect)(()=>{if(!i.TQ){if(0===Object.keys(y).length){j.replace("/");return}for(let e in y)if(!y[e]||"string"!=typeof y[e]){j.replace("/");return}h||(g({...y}),j.push("/sign-up")),h&&g(o)}},[j,h,f]);let[b,N]=(0,r.useState)(!1),w=async()=>{try{N(!0);let e=await c.default.get("api/oauth2/connect",{params:y});if(200===e.status){let{redirectUrl:t}=e.data;window.location.href=t}}catch(e){console.error("\uD83D\uDE80 ~ handleContinue ~ error:",e)}finally{N(!1)}};return{handleContinue:w,loading:b,isSignIn:h,email:p}}},185100:function(e,t,s){"use strict";s.d(t,{L:function(){return l}});var n=s(629232);s(560256);var r=s(46040);let i=(0,r.ti)("span","inline-flex justify-center items-center"),l=(0,r.A3)((e,t)=>{let{containerClassName:s,containerProps:r,...a}=e;return s?(0,n.jsx)(l,{ref:t,...r,className:s,children:(0,n.jsx)(i,{...a})}):(0,n.jsx)(i,{ref:t,...a})})},276569:function(e,t,s){"use strict";s.d(t,{b:function(){return r}});var n=s(529296);function r(){let e={response_type:"",client_id:"",redirect_uri:"",scope:"",state:""},t=sessionStorage.getItem(n.y);if(t)try{let s=JSON.parse(t)||e;return s}catch(e){console.error(e)}return e}},979469:function(e,t,s){"use strict";s.d(t,{QJ:function(){return F},g_:function(){return E},lV:function(){return z},sT:function(){return Z},zy:function(){return A}});var n=s(925114),r=s(560256),i=s(419914),l=s(912801),a=s(295715),c=s(211168),o=s(919172),d=s(141547),u=s(513899),x=s(256195),m=s(64193),f=s.n(m),h=s(856582),p=s(448030),j=s.n(p),v=s(865495),g=s.n(v),y=s(684885),b=s.n(y),N=s(870119),w=s(457478),_=s(751740),C=s(276569),k=s(696062),S=s(544736);function A(e){(0,l.setCookie)(null,"user-info",JSON.stringify(e),{maxAge:7776e3,path:"/"})}function F(){let e=(0,n.tv)(),{posthogRef:t}=(0,S.I)(),s=(0,r.useCallback)(async s=>{var n,r;let{redirect:i="/sign-in"}=s||{};await (0,a.signOut)({redirect:!1}),(0,l.destroyCookie)(null,"user-info",{path:"/"}),null==t||null===(r=t.current)||void 0===r||null===(n=r.reset)||void 0===n||n.call(r),e.push(i)},[t,e]);return s}function Z(e){let{runAsync:t,loading:s}=function(){let{userId:e,isSignIn:t,email:s,userDateCreated:n}=(0,k.Q)(),[l,o]=(0,r.useState)(!1),{trackSignIn:u}=(0,S.I)();(0,c.Z)(async()=>{if(l&&e&&t&&s){let t=await (0,w.J)(s.toLowerCase()),n={method:"email",origin_url:window.location.href,user_id:e,email_sha256:t},r=(0,C.b)();r.redirect_uri&&(n.origin_referrer="https://chat.openai.com/g/g-TiS7zU3kO-ai-humanizer-pro"),u({...n}),o(!1)}},[l,s,t,e,n]);let m=(0,d.Z)(a.signIn,{manual:!0,onSuccess:async(e,t)=>{"google"!==t[0]&&((null==e?void 0:e.ok)?o(!0):x.ZP.error((null==e?void 0:e.error)||i.ag._({id:"EPCBqk"})))},onError:async e=>{x.ZP.error((null==e?void 0:e.message)||i.ag._({id:"EPCBqk"}))}}),f=async(e,t,s)=>{let n="system-user"===e?{...await (0,N.j)((null==t?void 0:t.password)||""),...t}:t;m.run(e,n,s)},h=async(e,t,s)=>{let n="system-user"===e?{...await (0,N.j)((null==t?void 0:t.password)||""),...t}:t;return m.runAsync(e,n,s)};return{...m,run:f,runAsync:h}}(),l=(0,n.tv)(),o=async n=>{if(s)return;let r="md5Password"in n?n:{email:n.email,md5Password:f()(n.password)},i=await t("system-user",{email:r.email,password:r.md5Password,redirect:!1});if(!(null==i?void 0:i.ok))return;if(e){e();return}let{redirect:a}=l.query;a&&"string"==typeof a?l.push(a):l.push("/")};return{handleSignIn:o,loading:s}}function E(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{modifyAccountFields:t,onSignUpSuccess:s,resendCodeInterval:n=30}=e,{trackSignUp:i}=(0,S.I)(),[l]=u.Z.useForm(),[a,c]=(0,r.useState)(0),d=(0,r.useRef)(!1),{handleSignIn:m,loading:h}=Z(s),p=(0,r.useRef)(!1),[v,g]=(0,r.useState)(),[y]=(0,o.Z)({targetDate:v,onEnd:()=>{g(void 0)}}),b=Math.round(y/1e3),{mutateAsync:N,isLoading:k}=_.h.user.sendRegisterEmailCode.useMutation({onSuccess:async()=>{x.ZP.success("Email sent!",5)}}),{mutateAsync:A,isLoading:F}=_.h.user.verifyRegisterEmailCode.useMutation(),{mutateAsync:E,isLoading:z}=_.h.user.createUserByVerifiedEmail.useMutation({onSuccess:async(e,t)=>{p.current=!0;let s=await (0,w.J)(t.email.toLowerCase()),n={method:"email",user_id:e.id,email_sha256:s,origin_url:window.location.href},r=(0,C.b)();r.redirect_uri&&(n.origin_referrer="https://chat.openai.com/g/g-TiS7zU3kO-ai-humanizer-pro"),i({...n,timestamp:e.date_created||new Date}),await m({email:t.email,md5Password:t.password})}}),P=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(b){console.warn("send code countdown is running...");return}e?d.current=!0:await l.validateFields(),await N({email:l.getFieldValue("email")}),e?d.current=!1:c(a+1),g(Date.now()+1e3*n)},V=async()=>{await l.validateFields(),await A({email:l.getFieldValue("email"),code:l.getFieldValue("code")}),c(a+1)},O=async()=>{await l.validateFields();let e=l.getFieldsValue(!0),s={...e,password:f()(e.password),timeZone:j().tz.guess()};if(p.current){m({email:e.email,password:e.password});return}await E(t?t(s):s)},T=async()=>{let e=[P,V,O][a];if(!e)throw Error("Unexpected step callback of [".concat(a,"]"));await e()},I=1===a;return{loading:k&&!d.current||F||z||h,countdownSendCode:b,backable:I,step:a,handleNext:T,handleBack:()=>{if(I){c(a-1);return}console.warn("Back ignored, only step 1 can be back to 0.")},sendEmailVerifiedCode:()=>P(!0),form:l}}j().extend(b()),j().extend(g());let z=e=>{let t=(0,h.mV)(),s={required:!0,message:e?t.i18n._(i.ag._({id:"PO6IIn"})):t.i18n._(i.ag._({id:"52g+IY"}))};return e?[s]:[s,{pattern:/^(?=.*[a-zA-Z])(?=.*\d)[\s\S]{6,16}$/,message:t.i18n._(i.ag._({id:"YODheh"}))}]}},188510:function(e,t,s){"use strict";s.d(t,{W:function(){return x},vT:function(){return u}});var n=s(560256),r=s(629232),i=s(856582),l=s(419914),a=s(883186),c=s(572580);let o={[c.V.FAST]:{label:(0,r.jsx)(i.cC,{id:"alIh7h"}),desc:(0,r.jsx)(i.cC,{id:"ZtfDBu"}),value:c.V.FAST},[c.V.AGGRESSIVE]:{label:(0,r.jsx)(i.cC,{id:"4yv9An"}),desc:(0,r.jsx)(i.cC,{id:"d5gzy9"}),value:c.V.AGGRESSIVE},[c.V.LATEST]:{label:(0,r.jsx)(i.cC,{id:"sxkWRg"}),desc:(0,r.jsx)(i.cC,{id:"7WSITt"}),value:c.V.LATEST}},d=Object.values(o).map(e=>(0,r.jsxs)(r.Fragment,{children:[e.label," ",(0,r.jsx)(i.cC,{id:"zzWdb8"})]})),u=(0,r.jsx)("div",{className:"",children:Object.values(o).map((e,t)=>{let s=t===d.length-1;return(0,r.jsxs)(n.Fragment,{children:[e.label,!s&&"/",s&&(0,r.jsx)(i.cC,{id:"HpjOOc",components:{0:(0,r.jsx)("span",{})}})]},t)})});function x(){let{bypassGptModel:e,setBypassGptModel:t}=(0,a.s)();(0,i.mV)();let s=(0,n.useMemo)(()=>Object.values(o),[]),r=(0,n.useMemo)(()=>{var n;return{type:"button",label:l.ag._({id:"zzWdb8"}),key:"modelType",list:s,value:e,desc:null===(n=s.find(t=>t.value===e))||void 0===n?void 0:n.desc,onChange:e=>{t(e)}}},[e,s,t]);return{list:[r]}}},26262:function(e,t,s){"use strict";s.d(t,{i:function(){return r}});var n=s(14219);function r(){let{user:e}=(0,n.ec)(),{homePageGroupInfo:t,loading:s}=e,r=(null==t?void 0:t.direction)||"y";return{direction:r,isDirectionCol:"y"===r,loading:s}}},419110:function(e,t,s){"use strict";s.d(t,{Z:function(){return tU}});var n=s(629232),r=s(427377),i=s(856582),l=s(560256),a=s(1823),c=s(883186);let o=(0,l.createContext)(null),d=e=>{let{children:t,initialContextValue:s}=e,n=function(e){let[t,s]=(0,l.useState)({}),{permissionMap:n}=(0,c.s)(),{onceLimitWords:r,hasActivePlan:i,freeOnceLimitWords:o}=(0,a.J)({limitRequestCount:100,usageCount:150},n.checkWords),d=(0,l.useRef)();return{optionsForm:t,setOptionsForm:s,isCanUpgrade:!i,onceLimitWords:r,freeOnceLimitWords:o,refreshHistoryRef:d,...e}}(Object.assign({},s));return(0,l.createElement)(o.Provider,{value:n},t)},u=()=>{let e=(0,l.useContext)(o);return e};var x=s(70967),m=s(621529),f=s(415454),h=s(348851),p=s(85888),j=s(818344),v=s(185100),g=s(853043),y=s(290585),b=s(109028),N=s(696062),w=s(751740),_=s(419914),C=s(176352),k=s.n(C),S=s(941687),A=e=>{let{isLoading:t,onCancel:s,onOk:r,...l}=e;return(0,i.mV)(),(0,n.jsx)(S.Z,{centered:!0,footer:null,width:415,...l,destroyOnClose:!0,closable:!1,className:"[&_[class=coco-modal-close]]:right-1 [&_[class=coco-modal-close]]:top-1",children:(0,n.jsxs)("div",{className:"w-full",children:[(0,n.jsxs)("div",{className:"flex gap-x-4",children:[(0,n.jsx)("div",{children:(0,n.jsx)("span",{className:"i-com--warning size-6"})}),(0,n.jsx)("div",{className:"font-semibold",children:_.ag._({id:"hsYW0C"})})]}),(0,n.jsxs)("div",{className:"mt-5 flex justify-end gap-x-2",children:[(0,n.jsx)(k(),{className:"h-8 w-[120px]",onClick:s,children:(0,n.jsx)(i.cC,{id:"dEgA5A"})}),(0,n.jsx)(k(),{type:"primary",className:"h-8 w-[120px]",onClick:r,children:(0,n.jsx)(i.cC,{id:"cnGeoo"})})]})]})})},F=s(602810);function Z(){let e=(0,p._)(["\n        \n              ","\n            "]);return Z=function(){return e},e}function E(){let e=(0,p._)(["\n            text-f-text hover:bg-f-secondary-hover bg-f-secondary mt-4 \n            flex w-full items-center justify-center \n            gap-2 rounded py-[7px] text-sm font-semibold\n            ","\n          "]);return E=function(){return e},e}var z=e=>{(0,i.mV)();let{className:t,icon:s=!1,children:r=_.ag._({id:"7aHRdp"}),onClick:l,type:a="button"}=e,{plan:c}=(0,b.RV)(),{loading:o}=c,{upgradePlan:d}=(0,F.V)();return"span"===a?(0,n.jsx)(n.Fragment,{children:(null==c?void 0:c.hasActivePlan)?null:(0,n.jsx)("span",{onClick:()=>{null==l||l(),d.show()},className:(0,h.y)(Z(),t),children:r})}):(0,n.jsx)(m.default,{spinning:o,children:(null==c?void 0:c.hasActivePlan)?null:(0,n.jsxs)("button",{onClick:()=>{null==l||l(),d.show()},className:(0,h.y)(E(),t),children:[s&&(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",children:(0,n.jsxs)("g",{stroke:"#000",children:[(0,n.jsx)("path",{d:"M12.16 1.76H3.84a1.223 1.223 0 0 0-.971.526l-2.08 2.88A1.2 1.2 0 0 0 .857 6.64l6.24 7.189a1.142 1.142 0 0 0 1.806 0l6.24-7.19a1.2 1.2 0 0 0 .069-1.473l-2.08-2.88a1.222 1.222 0 0 0-.972-.526Z"}),(0,n.jsx)("path",{d:"m7.406 1.749-2.789 4.32L8 14.24l3.406-8.171-2.777-4.32M.594 6.069h14.812"})]})}),r]})})};function P(){let e=(0,p._)(["i-cus--d-history hover:text-f-primary mt-4 size-5 cursor-pointer ",""]);return P=function(){return e},e}function V(){let e=(0,p._)(["i-cus--d-side-diamond hover:text-f-primary mt-4 size-5 ",""]);return V=function(){return e},e}function O(){let e=(0,p._)([""," ",""]);return O=function(){return e},e}function T(){let e=(0,p._)([""]);return T=function(){return e},e}function I(){let e=(0,p._)(["text-sm"]);return I=function(){return e},e}function L(){let e=(0,p._)(["\n                        group flex cursor-pointer items-center \n                        justify-between gap-x-1 rounded px-2\n                        py-[6px] transition-all hover:bg-[#232525]\n                      "]);return L=function(){return e},e}function M(){let e=(0,p._)(["text-f-text-secondary line-clamp-1 w-0 flex-1 text-start text-xs"]);return M=function(){return e},e}function R(){let e=(0,p._)(["\n                          i-com--trash size-4 cursor-pointer text-[#FF4F51] group-hover:inline-flex md:inline-flex\n                          ","\n                        "]);return R=function(){return e},e}function B(){let e=(0,p._)(["border-f-border border-t pt-4 ",""]);return B=function(){return e},e}function D(){let e=(0,p._)(["\n            [&>div]:border-f-border \n            mt-2 flex \n            items-center gap-2 \n            [&>div]:flex\n            [&>div]:flex-1\n            [&>div]:flex-col \n            [&>div]:gap-[2px]\n            [&>div]:rounded\n            [&>div]:border\n            [&>div]:p-3\n          "]);return D=function(){return e},e}var U=e=>{var t;let{visible:s,className:r,onClick:a}=e,{getDetailByTaskIdRef:o}=(0,c.s)(),{refreshHistoryRef:d}=u(),x=(0,l.useRef)(null),f=(0,N.Q)(),p=f.sessionAuthenticated,{plan:C,usage:k}=(0,b.RV)(),{gtp3_5PlanIsUnlimitedAndActive:S,hasActivePlan:F,gtp3_5Plan:Z}=C,{gpt3_5Usage:E}=k,{useWords:U,totalWords:W}=(0,l.useMemo)(()=>{let e=(null==E?void 0:E.total_count)||0,t=(null==E?void 0:E.use_count)||0;return{useWords:t,totalWords:e}},[null==E?void 0:E.total_count,null==E?void 0:E.use_count]),H=(0,l.useMemo)(()=>!!p,[p]),[G,K]=(0,l.useState)(1),[Q,J]=(0,l.useState)(!0),[X,Y]=(0,l.useState)(),[q,$]=(0,l.useState)(!1),[ee,et]=(0,l.useState)([]),{isLoading:es,refetch:en,isRefetching:er,isInitialLoading:ei}=w.h.byPass.historyList.useQuery({page:G,size:30},{enabled:H,onSuccess(e){let t=e.list||[],s=[...ee,...t];et([...s]),J(s.length<e.count)},refetchOnWindowFocus:!1}),el=function(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return p?en(...t):(j.XK||console.warn("isAuth is false"),Promise.resolve({}))},{message:ea}=(0,g.r6)(),{mutateAsync:ec,isLoading:eo}=w.h.byPass.delete.useMutation({onSuccess(){ea.success(_.ag._({id:"uNTuV6"}))}});d.current=()=>{K(1),J(!0),Y(void 0),et([]),el()},(0,l.useEffect)(()=>{let e=x.current;if(e)return e.addEventListener("scroll",t),()=>{e.removeEventListener("scroll",t)};function t(){if(e){let t=e.scrollHeight-e.scrollTop-e.clientHeight<1;t&&Q&&!er&&K(G+1)}}},[Q,er,G]),(0,l.useEffect)(()=>{var e;null===(e=d.current)||void 0===e||e.call(d)},[d,f.isSignIn]);let ed=e=>{Y(e),$(!0)},eu=async()=>{if(null==X?void 0:X.task_id){await ec({taskId:X.task_id}),$(!1);let e=ee.filter(e=>e.task_id!==(null==X?void 0:X.task_id));et([...e])}},ex=e=>{o.current(e.task_id)},em=(0,l.useMemo)(()=>{if(F){let e=null==Z?void 0:Z.ProductsSub.duration,t=(0,y.rC)({product:(null==Z?void 0:Z.ProductsSub)||{product_name:"Pro"}}),s=_.ag._({id:"+8NekL"}),n=_.ag._({id:"zkWmBh"}),r=e===y.$5.MONTHLY?s:n;return"".concat(t,"-").concat(r)}{let e=_.ag._({id:"2POOFK"});return e}},[F,Z]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{onClick:a,className:(0,h.y)(P(),s?"hidden":"block")}),!(null==C?void 0:C.hasActivePlan)&&(0,n.jsx)("span",{onClick:a,className:(0,h.y)(V(),s&&"hidden")}),(0,n.jsx)("div",{ref:x,className:(0,h.y)(O(),r,!s&&"hidden"),children:(0,n.jsx)(m.default,{spinning:ei||er,children:(0,n.jsx)("div",{className:(0,h.y)(T()),children:ee.length>0?(0,n.jsx)("ul",{className:(0,h.y)(I()),children:ee.map(e=>(0,n.jsxs)("li",{className:(0,h.y)(L()),onClick:()=>{ex(e)},children:[(0,n.jsx)("div",{className:(0,h.y)(M()),title:e.input||"",children:e.input}),(0,n.jsx)(v.L,{className:(0,h.y)(R(),(null==X?void 0:X.task_id)===e.task_id&&q?"inline-flex":"hidden"),onClick:t=>{t.stopPropagation(),ed(e)}})]},e.id))}):(0,n.jsxs)("div",{className:"text-f-text-tertiary overflow-hidden pt-9 text-xs",children:[(0,n.jsx)("span",{className:"i-cus--d-history mx-auto block size-6"}),(0,n.jsx)("p",{className:"mt-3 text-center",children:(0,n.jsx)(i.cC,{id:"Nc0Q8N"})})]})})})}),(0,n.jsxs)("div",{className:(0,h.y)(B(),!s&&"hidden"),children:[(0,n.jsxs)("div",{className:"text-f-text-secondary flex items-center justify-between text-sm",children:[(0,n.jsxs)("span",{className:"font-semibold",children:[(0,n.jsx)(i.cC,{id:"bKXRJl"})," ",(0,n.jsxs)("span",{children:[" ",em]})]}),(0,n.jsx)(z,{type:"span",className:"hover:text-f-primary after:i-com--right flex cursor-pointer items-center after:inline-block after:size-[14px]",children:(0,n.jsx)(i.cC,{id:"kwkhPe"})})]}),(0,n.jsx)("div",{className:(0,h.y)(D()),children:(0,n.jsxs)("div",{className:"",children:[(0,n.jsx)("span",{className:"text-start text-sm text-white",children:(0,n.jsx)(i.cC,{id:"2lMti7"})}),(0,n.jsx)("span",{className:"text-f-primary text-start text-sm font-semibold",children:S?(0,n.jsx)(n.Fragment,{children:_.ag._({id:"NIuIk1"})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{children:((t=W-U)<0?0:t).toLocaleString("en-us")}),(0,n.jsxs)("span",{children:[" ",_.ag._({id:"DwZnWm"})," / "]}),(0,n.jsxs)("span",{children:[W.toLocaleString("en-us")," ",_.ag._({id:"GSEMLK"})]})]})})]})}),(0,n.jsx)(z,{icon:!0})]}),(0,n.jsx)(A,{open:q,onCancel:()=>$(!1),isLoading:eo,onOk:eu})]})};function W(){let e=(0,p._)([""," block lg:hidden ",""]);return W=function(){return e},e}function H(){let e=(0,p._)(["flex h-full transition-all duration-300 "," flex-col"]);return H=function(){return e},e}function G(){let e=(0,p._)(["i-cus--d-panel-close size-5 cursor-pointer ",""]);return G=function(){return e},e}var K=e=>{let{className:t}=e,[s,r]=(0,l.useState)(!0);return(0,n.jsx)("div",{className:(0,h.y)(W(),t,s?"pe-[16.5px]":"pe-3"),children:(0,n.jsxs)("div",{className:(0,h.y)(H(),s?"w-[240px]":"w-5"),children:[(0,n.jsx)("div",{className:"border-f-border hover:text-f-primary flex cursor-pointer justify-start border-b pb-2",children:(0,n.jsx)("span",{onClick:()=>{r(!s)},className:(0,h.y)(G(),s?"rotate-0":"rotate-180")})}),(0,n.jsx)(U,{visible:s,onClick:()=>{r(!0)},className:"scrollbar h-0 flex-1 overflow-y-auto py-2"})]})})},Q=s(26262),J=s(116058),X=s(638414),Y=s(106268),q=s(681211),$=s(508505),ee=s(491141);function et(){let e=(0,p._)(["bg-f-bg-base flex flex-col overflow-hidden rounded-xl ",""]);return et=function(){return e},e}function es(){let e=(0,p._)(["border-f-border border-b px-6 py-3 md:px-4 ",""]);return es=function(){return e},e}function en(){let e=(0,p._)(["h-0 flex-1 px-6 md:px-4 ",""]);return en=function(){return e},e}function er(e){let{Header:t,children:s,rootClassName:r,headerClassName:i,className:l,id:a}=e;return(0,n.jsxs)("div",{className:(0,h.tw)(et(),r),id:a,children:[(0,n.jsx)(f.nA,{condition:!!t,children:(0,n.jsx)("div",{className:(0,h.tw)(es(),i),children:t})}),(0,n.jsx)("div",{className:(0,h.tw)(en(),l),children:s})]})}function ei(){let e=(0,p._)(["h-12 w-12 ",""]);return ei=function(){return e},e}function el(){let e=(0,p._)([""," h-5 w-5 ",""]);return el=function(){return e},e}function ea(){let e=(0,p._)([""," "," h-5 w-5"]);return ea=function(){return e},e}function ec(e){let{className:t}=e,{checkForAiLoading:s,percent:r,setPercent:a,checkGptResult:o,checkModel:d}=(0,c.s)(),u=(0,X.bS)();(0,Y.P)({loading:s,onChange(e){a(e)}});let{langCheckErrorTips:x}=(0,$.j)({checkGptResult:o}),[m,p]=(0,l.useState)(".");(0,l.useEffect)(()=>{let e;return s&&(e=window.setInterval(()=>{m.length>2?p("."):p("".concat(m,"."))},500)),()=>{e&&clearInterval(e)}},[s,m]);let j=(0,l.useMemo)(()=>{var e;return null==o?void 0:null===(e=o.summary)||void 0===e?void 0:e.eval},[o]),v=(0,l.useMemo)(()=>{let e=((null==o?void 0:o.platforms)||[]).filter(e=>{let t=e.name;return!!u[t]}).map(e=>{let t=e.name;return{...e,...u[t]}}).sort((e,t)=>e.seq-t.seq);return e},[null==o?void 0:o.platforms,u]),g=(0,l.useMemo)(()=>{let e=[{evalType:X.xF.POSITIVE,output:_.ag._({id:"r0jAm4"}),input:_.ag._({id:"fy32co"}),iconClassName:"i-com--circle-check-solid text-primary"},{evalType:X.xF.NEGATIVE,output:_.ag._({id:"f2xAAw"}),input:_.ag._({id:"elH6hl"}),iconClassName:"i-cus--d-error"},{evalType:X.xF.NEUTRAL,output:_.ag._({id:"IWGFkV"}),input:_.ag._({id:"xgkqD5"}),iconClassName:"i-cus--d-half"}],t=e.find(e=>e.evalType===j);return t},[j]),y={[X.xF.POSITIVE]:{className:"text-primary",iconClassName:"i-com--circle-check-solid",text:_.ag._({id:"ucfmiC"})},[X.xF.NEUTRAL]:{className:"text-primary",iconClassName:"i-cus--d-half",text:_.ag._({id:"hg0ads"})},[X.xF.NEGATIVE]:{className:"text-[#DC0000]",iconClassName:"i-cus--d-error",text:_.ag._({id:"cV6Rxr"})}};return(0,n.jsx)(f.nA,{condition:s||j,children:(0,n.jsx)(er,{rootClassName:t,id:ee.U.detectionResult.id,children:(0,n.jsx)("div",{className:"py-6 md:py-4",children:(0,n.jsxs)("div",{className:"pb-6 pt-5 md:py-0",children:[(0,n.jsxs)(f.If,{condition:s,children:[(0,n.jsx)(f.Zf,{children:(0,n.jsxs)("div",{className:"mx-auto mb-2 w-full max-w-[600px]",children:[(0,n.jsx)("div",{className:"text-center text-lg font-bold",children:(0,n.jsxs)(q.Z,{children:[(0,n.jsx)(i.cC,{id:"iKvAeG"}),m]})}),(0,n.jsxs)("div",{className:"mt-2 flex items-center justify-between space-x-2",children:[(0,n.jsx)("div",{className:"relative flex-1",children:(0,n.jsx)(J.Z,{showInfo:!1,size:["100%",6],className:"w-full",percent:r,trailColor:"#9FAFA7",strokeColor:"#4DFFA7"})}),(0,n.jsxs)("div",{className:"-translate-y-[3px] text-xs",children:[r.toFixed(1),"%"]})]})]})}),(0,n.jsx)(f.Ot,{children:g?(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center text-center",children:[(0,n.jsx)("span",{className:(0,h.y)(ei(),g.iconClassName)}),(0,n.jsx)("div",{className:"gradient mt-3 text-lg font-bold",children:(0,n.jsx)(q.Z,{children:(0,n.jsxs)(f.If,{condition:null==o?void 0:o.message,children:[(0,n.jsx)(f.Zf,{children:null==o?void 0:o.message}),(0,n.jsx)(f.Ot,{children:"humanize"===d?g.output:g.input})]})})}),(0,n.jsx)(f.nA,{condition:x,children:(0,n.jsx)("div",{className:"text-display-secondary mt-1 text-xs",children:x})})]}):null})]}),v.length?(0,n.jsxs)("div",{className:"mx-auto mt-5 max-w-[800px] px-4 md:px-0",children:[(0,n.jsx)("div",{className:"flex justify-center",children:(0,n.jsx)("div",{className:"grid w-full grid-cols-4 gap-2 md:grid-cols-2 lg:grid-cols-3",children:v.map(e=>(0,n.jsxs)("div",{className:"flex items-center justify-between rounded bg-[rgba(51,53,53,0.30)] px-[10px] py-1 md:px-1",children:[(0,n.jsxs)("div",{className:"flex items-center gap-x-[6px]",children:[(0,n.jsx)("div",{className:"h-[18px] w-[18px]",children:e.Logo("h-[18px] w-[18px]")}),(0,n.jsx)("div",{className:"text-display-secondary text-left text-sm font-semibold md:text-sm",children:(0,n.jsx)("span",{children:e.text})})]}),(0,n.jsx)("div",{className:"h-5 w-5",children:s?(0,n.jsx)("span",{className:"i-svg-spinners--180-ring-with-bg h-5 w-5 text-[rgb(172,174,198)]"}):(0,n.jsx)(n.Fragment,{children:!!(e.eval&&y[e.eval])&&(0,n.jsx)("span",{className:(0,h.y)(el(),y[e.eval].iconClassName,y[e.eval].className)})})})]},e.name))})}),(0,n.jsx)("div",{className:"mt-6 flex flex-wrap items-center justify-center gap-x-6 gap-y-3 md:justify-start",children:Object.values(y).map((e,t)=>(0,n.jsxs)("div",{className:"flex items-center gap-x-1",children:[(0,n.jsx)("span",{className:(0,h.y)(ea(),e.iconClassName,e.className)}),(0,n.jsx)("span",{className:"text-display-secondary text-sm",children:e.text})]},t))})]}):null]})})})})}var eo=s(40995),ed=s(72493);function eu(){let e=(0,p._)(["\n          hover:text-primary group flex h-fit w-fit min-w-[170px] items-center gap-x-2\n          rounded-lg bg-[#1C1C1D] p-4 text-center\n          text-[#9FAFA7] transition-all hover:cursor-pointer\n          hover:bg-[#2C2C2E]\n          ","\n        "]);return eu=function(){return e},e}function ex(e){let{className:t}=e;return(0,n.jsx)(ed.Z,{children:(0,n.jsxs)("div",{className:(0,h.tw)(eu(),t),children:[(0,n.jsx)("span",{className:"i-com--copy h-7 w-7"}),(0,n.jsx)("span",{children:(0,n.jsx)(i.cC,{id:"CoRRTS"})})]})})}var em=s(120624);function ef(){let e=(0,p._)(["\n          hover:text-primary group flex h-fit min-w-[170px] items-center gap-x-2\n          rounded-lg bg-[#1C1C1D] p-4 text-center\n          text-[#9FAFA7] transition-all hover:cursor-pointer\n          hover:bg-[#2C2C2E]\n            ","\n        "]);return ef=function(){return e},e}function eh(e){let{className:t}=e;return(0,n.jsx)(em.Z,{children:(0,n.jsxs)("div",{className:(0,h.tw)(ef(),t),children:[(0,n.jsx)("span",{className:"i-cus--d-sample h-7 w-7"}),(0,n.jsx)("span",{children:(0,n.jsx)(i.cC,{id:"cA2OaD"})})]})})}var ep=s(925114),ej=s(183419),ev=s(13809),eg=s(337464),ey=e=>{let{isRetry:t}=e,{textContent:s}=(0,c.s)();(0,i.mV)();let{limitWords:n}=(0,F.V)(),{onceLimitWords:r,isCanUpgrade:l,refreshHistoryRef:a}=u(),{safeText:o,overflowText:d}=(0,ej.Z)({textContent:s,limitWords:r}),x=(0,ep.tv)(),m=(0,eg.nb)(eg.Qn.BYPASS_GPT3_5_USAGE),{isLoading:f,onGenerate:h,disabled:p}=(0,ev.m)({isRetry:!!t,safeText:o,exceptionMessage:_.ag._({id:"ekxpXh"}),retrievalSuccess:()=>{var e;null===(e=a.current)||void 0===e||e.call(a)},checkCanGenerate:async e=>{let t=!0;return!e&&(t=await m({signUpParams:{onSignUpSuccess:()=>{x.push("/")}}}))&&d&&l&&(t=!1,n.show({onceLimitWords:r})),t&&(0,ee.Z)({selectors:ee.U.output.selector}),t}});return{isRetry:t,textContent:s,isLoading:f,onGenerate:h,disabled:p}},eb=s(279429),eN=s(141961),ew=s(518149);function e_(){let e=(0,p._)(["border-primary text-primary hover:bg-primary hover:text-bg-primary ",""]);return e_=function(){return e},e}function eC(){let e=(0,p._)(["\n          ","\n          flex h-12 w-fit items-center justify-center space-x-1\n          rounded border px-8\n          text-base font-bold transition-all md:w-fit md:px-4 md:text-sm\n          ","\n        "]);return eC=function(){return e},e}var ek=e=>{let{className:t}=e,s=(0,eg.nb)(eg.Qn.BYPASS_CHECK_FOR_AI),r=(0,ep.tv)(),a=(0,F.V)(),{isSignIn:c}=(0,N.Q)(),{layoutType:o}=u(),{onDetector:d,isLoading:x,disabled:m}=(0,eN.n)({checkCanDetector:async()=>{let e=await s({signUpParams:{onSignUpSuccess:()=>{r.push("/")}}});return e&&(0,ee.Z)({selectors:ee.U.detectionResult.selector}),e},onError(e){e.message===ew._y.TOO_MANY_REQUESTS&&(c?a.upgradeWords.show({buttonText:"Upgrade Now",desc:_.ag._({id:"SAud9Z"})}):a.signUp.show({onSignUpSuccess:()=>{r.push("/")}}))}}),p=(0,l.useMemo)(()=>"col"===o?(0,h.y)(e_(),m&&"cursor-not-allowed"):m?"border-f-text-disabled text-f-text-disabled":"border-primary text-primary hover:bg-primary hover:text-bg-primary cursor-pointer",[m,o]);return(0,n.jsx)(eb.Z,{children:(0,n.jsxs)("button",{disabled:m,className:(0,h.tw)(eC(),p,t),onClick:d,children:[(0,n.jsx)(f.nA,{condition:x,children:(0,n.jsx)("span",{className:"i-svg-spinners--180-ring-with-bg size-5"})}),(0,n.jsx)("span",{children:(0,n.jsx)(i.cC,{id:"nHU1PO"})})]})})},eS=s(906026),eA=s(645867),eF=s(336229),eZ=s(24950),eE=s.n(eZ);function ez(){let e=(0,p._)(["text-bg-primary "," ",""]);return ez=function(){return e},e}function eP(){let e=(0,p._)(["text-bg-primary ",""]);return eP=function(){return e},e}function eV(){let e=(0,p._)(["\n          flex h-12 cursor-pointer items-center justify-center\n          gap-x-1 rounded px-8 text-base font-bold\n          md:w-fit md:px-4\n          md:text-sm\n          ","\n          ","\n        "]);return eV=function(){return e},e}function eO(e){let{isRetry:t,onGenerate:s,isLoading:r,className:a,disabled:c}=e,{layoutType:o}=u(),d=(0,l.useMemo)(()=>"col"===o?(0,h.y)(ez(),eE().bypassHumanizerButton,c&&"cursor-not-allowed"):c?"text-f-text-disabled bg-f-bg-disabled":(0,h.y)(eP(),eE().bypassHumanizerButton),[c,o]);return t?(0,n.jsx)(eA.Z,{children:(0,n.jsx)(eF.Z,{onGenerate:s,className:a})}):(0,n.jsx)(eS.Z,{children:(0,n.jsxs)("button",{disabled:c,onClick:s,className:(0,h.tw)(eV(),d,a),children:[(0,n.jsx)(f.nA,{condition:r,children:(0,n.jsx)("span",{className:"i-svg-spinners--180-ring-with-bg size-5"})}),(0,n.jsx)("span",{children:(0,n.jsx)(i.cC,{id:"FF6fWx"})})]})})}var eT=s(222792),eI=s(167118);function eL(){let e=(0,p._)(["group/delete flex h-6 w-6 items-center justify-center rounded transition-all hover:cursor-pointer hover:bg-[rgb(43,50,50)] ",""]);return eL=function(){return e},e}function eM(){let e=(0,p._)(["i-com--trash group-hover/delete:text-primary h-full w-full transition-all ",""]);return eM=function(){return e},e}var eR=e=>{let{iconClassName:t,className:s}=e;return(0,n.jsx)(eI.Z,{children:(0,n.jsx)("div",{className:(0,h.tw)(eL(),s),children:(0,n.jsx)("div",{className:"h-5 w-5",children:(0,n.jsx)("span",{className:(0,h.y)(eM(),t)})})})})};function eB(){let e=(0,p._)(["\n        flex w-full items-center justify-between ","\n      "]);return eB=function(){return e},e}function eD(){let e=(0,p._)(["",""]);return eD=function(){return e},e}var eU=e=>{let{className:t}=e,{textContentWords:s}=(0,c.s)(),{onceLimitWords:r}=u();return(0,n.jsxs)("div",{className:(0,h.tw)(eB(),t),children:[(0,n.jsx)("div",{children:(0,n.jsx)(f.nA,{condition:s,children:(0,n.jsxs)("div",{className:"text-display-secondary flex items-center gap-x-1 text-sm md:w-full",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:(0,h.y)(eD(),s>r&&"text-[#FF4D4F]"),children:s.toLocaleString("en-us")}),(0,n.jsxs)(f.nA,{condition:s>r,children:[(0,n.jsx)("span",{className:"mx-1",children:"/"}),(0,n.jsx)("span",{children:r.toLocaleString("en-us")})]})]}),(0,n.jsx)("span",{children:(0,n.jsx)(eT.Z,{value:s,one:_.ag._({id:"dZiBrj"}),other:_.ag._({id:"5tK0NB"})})})]})})}),(0,n.jsx)("div",{children:(0,n.jsx)(eR,{className:"text-display-secondary"})})]})};function eW(){let e=(0,p._)(["flex flex-wrap items-center justify-between gap-3 pt-3 ",""]);return eW=function(){return e},e}function eH(){let e=(0,p._)(["",""]);return eH=function(){return e},e}var eG=e=>{let{className:t}=e,{layoutType:s}=u(),{isDirectionCol:r}=(0,Q.i)(),i=ey({isRetry:!1});return(0,n.jsxs)("div",{className:(0,h.y)(eW(),t),children:[(0,n.jsx)(eU,{className:(0,h.y)(eH(),r?"w-0 flex-1":"w-fit")}),"row"===s?(0,n.jsxs)("div",{className:"ml-auto flex items-center gap-x-3",children:[(0,n.jsx)(ek,{className:"h-8 w-fit px-5 text-sm md:w-fit md:px-3 md:font-semibold"}),(0,n.jsx)(eO,{className:"h-8 w-fit px-5 text-sm md:w-fit md:px-3 md:font-semibold",...i})]}):null]})},eK=s(699525),eQ=s.n(eK),eJ=s(876307),eX=s(539437);function eY(){let e=(0,p._)(["text-sm ",""]);return eY=function(){return e},e}function eq(){let e=(0,p._)(["i-com--x h-4 w-4 ",""]);return eq=function(){return e},e}var e$=e=>{let{className:t}=e,{textContentWords:s,isShowUpgradeTip:r,setIsShowUpgradeTip:a,textContent:o}=(0,c.s)(),{isCanUpgrade:d,onceLimitWords:x}=u(),{upgradePlan:m}=(0,F.V)(),{setDetectionTextContent:p}=(0,eJ.Z)(),j=(0,l.useMemo)(()=>s>2e3,[s]);return(0,l.useEffect)(()=>{j||s>x&&d?a(!0):a(!1)},[a,x,d,s,j]),(0,n.jsx)(eX.Z,{children:(0,n.jsx)(f.nA,{condition:r,children:(0,n.jsx)("div",{className:(0,h.y)(eY(),t),children:(0,n.jsxs)("div",{className:"flex w-fit items-center rounded",children:[(0,n.jsxs)(f.If,{condition:j,children:[(0,n.jsx)(f.Zf,{children:(0,n.jsx)("div",{className:"flex cursor-pointer items-center text-sm text-[#EA2F2F]",children:(0,n.jsx)("span",{children:(0,n.jsx)(i.cC,{id:"clQuFz",values:{0:2e3.toLocaleString("en-us")}})})})}),(0,n.jsx)(f.Ot,{children:(0,n.jsxs)("div",{className:"flex cursor-pointer items-center",onClick:()=>{p(o),m.show()},children:[(0,n.jsx)("div",{className:"flex items-center",children:(0,n.jsx)("span",{className:"i-com--warning mr-2 h-[14px] w-[14px]"})}),(0,n.jsx)("span",{className:"text-primary",children:(0,n.jsx)(i.cC,{id:"kwkhPe"})}),"\xa0",(0,n.jsx)("span",{className:"text-[rgb(250,173,20)]",children:(0,n.jsx)(i.cC,{id:"CjGAi8"})})]})})]}),(0,n.jsx)("div",{className:"hover:text-primary flex h-6 w-6 cursor-pointer items-center justify-center",onClick:()=>{a(!1)},children:(0,n.jsx)("span",{className:(0,h.y)(eq(),j&&"text-[#EA2F2F]")})})]})})})})};function e0(){let e=(0,p._)(["",""]);return e0=function(){return e},e}function e1(e){let{className:t}=e,{textContent:s="",errorTipsContent:r,detailLoading:l}=(0,c.s)(),{onceLimitWords:a}=u();(0,i.mV)();let o=_.ag._({id:"ZBL9TG"});return(0,n.jsx)(er,{rootClassName:t,children:(0,n.jsxs)("div",{className:"relative flex h-full flex-col pb-4 text-left",children:[(0,n.jsx)("div",{className:"group relative h-0 flex-1 pb-2 pt-4",children:(0,n.jsxs)("div",{className:"relative size-full",children:[(0,n.jsx)(eo.Z,{onceLimitWords:a,className:(0,h.y)(e0(),eQ().bypassEditor),placeholder:o},o),(0,n.jsx)(f.nA,{condition:!s||l,children:(0,n.jsx)("div",{className:"absolute left-1/2 top-1/2 z-[3] flex -translate-x-1/2 -translate-y-1/2 items-center gap-x-3 font-semibold md:flex-col md:gap-y-3",children:(0,n.jsxs)(f.If,{condition:l,children:[(0,n.jsx)(f.Zf,{children:(0,n.jsx)(v.L,{className:"i-svg-spinners--180-ring-with-bg text-f-text-secondary size-12"})}),(0,n.jsx)(f.Ot,{children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eh,{}),(0,n.jsx)(ex,{})]})})]})})})]})}),(0,n.jsx)(e$,{className:"block"}),(0,n.jsx)(eG,{}),(0,n.jsx)(f.nA,{condition:r,children:(0,n.jsx)("div",{className:"mt-1 flex justify-end px-4 text-left text-xs text-[#F77062]",children:(0,n.jsx)("span",{children:r})})})]})})}var e2=s(817285);function e5(){let e=ey({isRetry:!1});return(0,n.jsxs)("div",{className:"my-6 flex items-center justify-center space-x-6 font-bold md:space-x-2",children:[(0,n.jsx)(ek,{}),(0,n.jsx)(eO,{...e}),(0,n.jsx)(e2.Z,{})]})}var e4=s(527008),e3=s(170551),e6=s(188510);function e8(){let e=(0,p._)(["\n                            flex h-9 items-center rounded border border-[rgb(74,78,78)] px-6 text-xs transition-all last:border-r-0 hover:cursor-pointer ","\n                            md:px-4\n                          "]);return e8=function(){return e},e}function e9(){let{list:e}=(0,e6.W)();return(0,n.jsx)("div",{className:"mt-6 space-y-[18px] pb-3",children:e.map(e=>(0,n.jsxs)("div",{className:"flex gap-x-3 gap-y-3 md:flex-col md:gap-x-0",children:[(0,n.jsx)("div",{className:"items-center py-[7px] text-left text-xs font-semibold text-white md:py-0",children:e.label}),(0,n.jsxs)("div",{className:"w-0 flex-1 md:w-full",children:[(0,n.jsxs)(f.rs,{children:[(0,n.jsx)(f.JZ,{condition:"select"===e.type,children:(0,n.jsx)("div",{className:"flex justify-start",children:(0,n.jsx)(e3.default,{value:e.value,style:{width:228},onChange:e.onChange,children:e.list.map(e=>(0,n.jsx)(e3.default.Option,{children:e.label},e.value))})})}),(0,n.jsx)(f.gA,{children:(0,n.jsx)("div",{className:"flex w-fit flex-wrap items-center gap-2 overflow-hidden",children:e.list.map(t=>{let s=t.value===e.value;return(0,n.jsx)("div",{className:(0,h.y)(e8(),s?"bg-primary text-[#101414]":"bg-[rgb(43,50,50)] text-white"),onClick:()=>e.onChange(t.value),children:t.label},t.value)})})})]}),(0,n.jsx)("div",{className:"mt-2 text-left text-xs",children:e.desc})]})]},e.key))})}var e7=s(224049),te=s(535514),tt=s.n(te);function ts(){let e=(0,p._)([""," flex-1 overflow-y-auto"]);return ts=function(){return e},e}var tn=e=>{let[t,s]=(0,l.useState)(!1);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"i-cus--d-panel-close hover:text-f-primary hidden size-6 rotate-180 cursor-pointer text-white text-opacity-70 lg:block",onClick:()=>{s(!0)}}),(0,n.jsx)(e7.Z,{onClose:()=>{s(!1)},styles:{body:{padding:16}},open:t,children:(0,n.jsx)("div",{className:"flex h-full flex-col",children:(0,n.jsx)(U,{visible:!0,className:(0,h.y)(ts(),tt().scrollbar)})})})]})},tr=s(429231),ti=s(97044),tl=s(314322),ta=s(523210),tc=s(31585),to=s.n(tc);function td(){let e=(0,p._)(["\n              hover:text-primary flex cursor-pointer items-center gap-x-[2px] text-left transition-all\n              md:gap-x-0\n              ","\n            "]);return td=function(){return e},e}var tu=()=>{let{usageTipsRef:e}=(0,c.s)(),[t,s]=(0,l.useState)(!1),[r,a]=(0,l.useState)(!1),[o,d]=(0,tr.Z)("bypassUsageTipsCloseTime",{defaultValue:void 0}),u=async e=>{if(!o){let t=e.target,{y:n}=t.getBoundingClientRect(),r=n+window.scrollY;window.scrollTo({top:r-window.innerHeight/2,behavior:"smooth"}),a(!0),await (0,tl._)(1500),a(!1),s(!0),d(Date.now())}};return(0,n.jsx)(ta.Z,{children:(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{ref:t=>{t&&(e.current=t)},onClick:u}),(0,n.jsx)(ti.default,{trigger:"hover",placement:"bottom",open:t,onOpenChange:s,content:(0,n.jsxs)("div",{className:"w-[280px] md:max-w-[88vw]",children:[(0,n.jsx)("div",{children:(0,n.jsx)("span",{className:"i-cus--d-tips text-primary h-6 w-6"})}),(0,n.jsx)("div",{className:"py-[6px] text-sm font-semibold text-white",children:(0,n.jsx)(i.cC,{id:"gBZKV0"})}),(0,n.jsxs)("div",{className:"text-xs text-[rgba(255,255,255,0.65)]",children:[(0,n.jsx)("div",{children:(0,n.jsx)(i.cC,{id:"1kH8CH"})}),(0,n.jsx)("div",{className:"mt-3",children:(0,n.jsx)(i.cC,{id:"44WhpJ"})})]})]}),overlayClassName:"px-3 py-0 [&_[class=coco-popover-arrow]]:before:bg-[#333535] [&_[class=coco-popover-inner]]:bg-[#333535] [&_[class=coco-popover-inner]]:p-3",children:(0,n.jsxs)("div",{className:(0,h.y)(td(),r&&to().highLightBlinK),children:[(0,n.jsx)("div",{className:"flex items-center md:hidden",children:(0,n.jsx)("span",{className:"i-cus--d-tips h-4 w-4"})}),(0,n.jsx)("span",{className:"text-xs font-semibold",children:(0,n.jsx)(i.cC,{id:"gBZKV0"})})]})})]})})};function tx(){let e=(0,p._)(["flex items-center gap-2 md:w-full md:justify-between ",""]);return tx=function(){return e},e}var tm=e=>{let{className:t}=e;return(0,n.jsxs)("div",{className:(0,h.tw)(tx(),t),children:[(0,n.jsx)(tu,{}),(0,n.jsx)(tn,{})]})};function tf(){let e=(0,p._)(["border-f-border bg-f-bg-base border-t px-6 py-3 md:px-4 ",""]);return tf=function(){return e},e}function th(){let e=(0,p._)(["i-com--up h-4 w-4 "," transition-all"]);return th=function(){return e},e}function tp(e){let{className:t}=e,[s,r]=(0,l.useState)(!1);return(0,n.jsxs)("div",{className:(0,h.tw)(tf(),t),children:[(0,n.jsxs)("div",{className:"flex items-center justify-between gap-x-2",children:[(0,n.jsxs)("div",{className:"flex cursor-pointer items-center space-x-1 text-white",onClick:()=>{r(!s)},children:[(0,n.jsx)("span",{className:"text-left text-xs font-semibold",children:(0,n.jsx)(i.cC,{id:"NFIOKv"})}),(0,n.jsx)("span",{className:(0,h.y)(th(),!s&&"rotate-180")})]}),(0,n.jsx)(tm,{})]}),(0,n.jsx)(e4.E.div,{className:"overflow-hidden",initial:!1,animate:{height:s?"auto":0},transition:{duration:.15},children:(0,n.jsx)(e9,{})})]})}var tj=s(458483);function tv(){let e=(0,p._)(["w-[30px] cursor-pointer rounded-full p-1 transition-colors duration-300 ease-in-out ",""]);return tv=function(){return e},e}function tg(){let e=(0,p._)(["size-2 transform rounded-full bg-black transition-transform duration-300 ease-in-out ",""]);return tg=function(){return e},e}var ty=()=>{var e;let{plan:t}=(0,b.RV)(),s=null===(e=t.currentPlan)||void 0===e?void 0:e.SubProductRelation[0].ProductsSub.product_name,[r,a]=(0,l.useState)(!1),[c,o]=(0,l.useState)(!1),d=(0,l.useRef)(!1),{isDirectionCol:u,loading:f}=(0,Q.i)(),{upgradePlan:p}=(0,F.V)();return(0,l.useMemo)(()=>{(null==s?void 0:s.includes("Phantom model"))?a(!0):a(!1)},[s]),(0,x.Z)(()=>{d.current=!0}),(0,n.jsx)(m.default,{spinning:f,children:d.current&&!u&&s&&(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsxs)("div",{className:"ms-6 flex w-fit items-center gap-[2px] bg-gradient-to-r from-[#89FFF8] to-[#4DFFA7] bg-clip-text font-bold text-transparent md:ms-0",children:[(0,n.jsx)("span",{className:"text-base md:text-sm",children:(0,n.jsx)(i.cC,{id:"W+XCmx"})}),(0,n.jsx)(ti.default,{open:c,trigger:"hover",overlayInnerStyle:{borderRadius:"12px",backgroundColor:"#2d3130"},placement:"bottom",onOpenChange:e=>o(e),content:(0,n.jsxs)("div",{className:"text-f-text-light rounded-xl p-3",children:[(0,n.jsx)("p",{className:"w-fit bg-gradient-to-r from-[#89FFF8] to-[#4DFFA7] bg-clip-text font-bold text-transparent sm:text-sm",children:(0,n.jsx)(i.cC,{id:"TCe2Pm"})}),(0,n.jsx)("ul",{className:"text-f-text-secondary mx-auto mt-3 max-w-[352px] space-y-1 text-sm",children:[_.ag._({id:"35zcxp"}),_.ag._({id:"NsOWX5"}),_.ag._({id:"+Jhglg"})].map(e=>(0,n.jsxs)("li",{className:"flex items-center gap-[3px]",children:[(0,n.jsx)("span",{className:"i-com--select size-4"}),(0,n.jsx)("p",{className:"flex-1",children:e})]},e))}),(0,n.jsx)(z,{onClick:()=>{o(!1)},children:(0,n.jsx)(i.cC,{id:"EDl9kS"})})]}),children:(0,n.jsx)("span",{className:"i-com--help text-f-text-secondary size-[14px] cursor-pointer"})})]}),(0,n.jsx)("div",{className:(0,h.y)(tv(),r?"bg-f-primary":" bg-[#AABEB4]"),onClick:()=>{(null==t?void 0:t.hasActivePlan)?a(!r):p.show()},children:(0,n.jsx)("div",{className:(0,h.y)(tg(),r?"translate-x-3.5":"translate-x-0")})})]})})};function tb(){let e=(0,p._)(["\n                        flex h-8 items-center ps-2 text-sm transition-all first:ps-0 hover:cursor-pointer ","\n                        md:text-xs\n                      "]);return tb=function(){return e},e}var tN=e=>{let{className:t}=e,{list:s}=(0,e6.W)(),r=(0,l.useMemo)(()=>s.find(e=>"modelType"===e.key),[s]);return(0,n.jsx)(tj.Z,{children:(0,n.jsxs)("div",{className:t,children:[r?(0,n.jsxs)("div",{className:"flex items-center gap-x-3 rounded-lg border border-[#30342f] px-2 py-1 md:gap-x-2",children:[(0,n.jsxs)("div",{className:"text-sm font-semibold text-white",children:[r.label,":"]}),(0,n.jsx)("div",{className:"flex flex-wrap items-center gap-2 divide-x divide-[#30342f]",children:r.list.map(e=>{let t=e.value===r.value;return(0,n.jsx)(ti.default,{trigger:"hover",placement:"top",content:(0,n.jsx)("div",{className:"text-f-text-light text-xs",children:e.desc}),overlayClassName:"px-3 py-0 [&_[class=coco-popover-arrow]]:before:bg-[#333535] [&_[class=coco-popover-inner]]:bg-[#333535] [&_[class=coco-popover-inner]]:p-3",children:(0,n.jsx)("div",{className:(0,h.y)(tb(),t?"text-f-primary":"text-f-text-secondary hover:text-f-primary-hover"),onClick:()=>r.onChange(e.value),children:e.label})},e.value)})})]}):null,(0,n.jsx)(ty,{})]})})},tw=s(867751),t_=s(76590),tC=s(335390),tk=s(684204),tS=s(256195),tA=s(693534),tF=s(74295);let tZ=()=>{let{feedBackData:e,taskId:t,setFeedBackData:s}=(0,c.s)(),[n,r]=(0,l.useState)(!1),{mutateAsync:i,isLoading:a}=w.h.byPass.feedBack.useMutation(),o=async e=>{if(!a){s({detail:"",subject:"",task_id:t,like_state:e});try{await i({detail:"",subject:"",taskId:t,like_state:e})}catch(e){console.log("e",e)}}};return{feedBackData:e,setFeedBackData:s,isModalOpen:n,showModal:()=>{r(!0)},handleOk:()=>{r(!1)},handleCancel:()=>{r(!1)},updateLikeState:o}};var tE=s(467339),tz=s(761359),tP=s(135729);function tV(e){let{submittedCallback:t}=e,[s,r]=(0,l.useState)(""),[a,o]=(0,l.useState)("");(0,i.mV)();let{list:d}=function(){(0,i.mV)();let e=[{label:_.ag._({id:"0rxw2Q"}),value:"Unable to bypass AI detection"},{label:_.ag._({id:"uIVfDH"}),value:"Incoherent or doesn't flow smoothly"},{label:_.ag._({id:"1wabaE"}),value:"Too long/short"},{label:_.ag._({id:"YWdvCj"}),value:"Includes a mix of other languages"},{label:_.ag._({id:"J+1kbN"}),value:"Contains irrelevant content"},{label:_.ag._({id:"IX7x3+"}),value:"Other"}];return{list:e,getSubjectLabel:t=>{var s;return null===(s=e.find(e=>e.value===t))||void 0===s?void 0:s.label}}}(),{taskId:u,feedBackData:x,setFeedBackData:m,usageTipsRef:f}=(0,c.s)(),{mutateAsync:h,isLoading:p}=w.h.byPass.feedBack.useMutation({onSuccess(){var e;null===(e=f.current)||void 0===e||e.click()}});(0,l.useEffect)(()=>{r((null==x?void 0:x.subject)||""),o((null==x?void 0:x.detail)||"")},[x]);let j=(0,l.useMemo)(()=>{let e=[{subject:"Unable to bypass AI detection",label:_.ag._({id:"8aMtXK"}),placeholder:""},{subject:"Other",placeholder:""}];return e},[]),{label:v,placeholder:g,buttonDisabled:y}=(0,l.useMemo)(()=>{var e,t;let n=j.find(e=>e.subject===s),r=null!==(e=null==n?void 0:n.label)&&void 0!==e?e:_.ag._({id:"Ddhkuq"}),i=null!==(t=null==n?void 0:n.placeholder)&&void 0!==t?t:_.ag._({id:"WyGyYp"}),l=n&&!a||!s;return{label:r,placeholder:i,buttonDisabled:l}},[a,s,j]);return(0,n.jsxs)("div",{className:"p-4 md:p-0",children:[(0,n.jsx)("p",{className:"mb-5 font-semibold leading-6 text-[#FFF]",children:(0,n.jsx)(i.cC,{id:"fyXwOs"})}),(0,n.jsx)("div",{children:(0,n.jsx)("ul",{className:"mb-4 flex flex-col gap-y-5",children:(0,n.jsx)(tz.ZP.Group,{onChange:e=>{r(e.target.value)},value:s,children:(0,n.jsx)(tP.default,{size:"middle",direction:"vertical",children:d.map(e=>(0,n.jsx)(tz.ZP,{value:e.value,children:(0,n.jsx)("span",{className:"text-sm text-[#9FAFA7]",children:e.label})},e.value))})})})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"mb-2 text-sm text-[#9FAFA7]",children:v}),(0,n.jsx)(tE.default.TextArea,{className:"text-sm placeholder:text-sm placeholder:font-normal",placeholder:g,onChange:e=>{o(e.target.value)},value:a,rows:6})]}),(0,n.jsx)("div",{className:"mt-4 flex w-full justify-end",children:(0,n.jsx)(k(),{loading:p,disabled:y,onClick:async()=>{if(u)try{let e=await h({subject:s,detail:a,taskId:u,like_state:2});"success"===e.status&&t&&m&&(m((null==e?void 0:e.data)||null),t())}catch(e){console.log("e",e)}},className:"w-fit !shadow-none md:w-full",type:"primary",children:(0,n.jsx)("span",{children:(0,n.jsx)(i.cC,{id:"hQRttt"})})})})]})}var tO=()=>{let{feedBackData:e,taskId:t}=(0,c.s)(),{isModalOpen:s,showModal:r,handleOk:l,handleCancel:a,updateLikeState:o}=tZ(),[d,u]=tS.ZP.useMessage();return(0,i.mV)(),(0,n.jsx)(tF.Z,{children:(0,n.jsxs)(n.Fragment,{children:[u,(0,n.jsx)(S.Z,{width:530,centered:!0,open:s,cancelText:null,onOk:l,okText:_.ag._({id:"hQRttt"}),onCancel:a,confirmLoading:!0,footer:null,children:(0,n.jsx)(tV,{submittedCallback:()=>{a(),d.success(_.ag._({id:"KTsXUh"}))},closeModal:a,feedBackData:e,taskId:t})}),!(0,tA.Z)(e)&&(0,n.jsxs)("div",{className:"flex items-center gap-x-4 md:gap-x-2",children:[(null==e?void 0:e.like_state)===1&&(0,n.jsxs)("div",{onClick:async()=>{t&&o(0)},className:"flex h-6 cursor-pointer items-center gap-x-1 rounded border border-[#303030] bg-[#1C1C1D] px-2",children:[(0,n.jsx)("div",{className:"flex items-center justify-center",children:(0,n.jsx)("span",{className:"i-com--like-solid h-5 w-5"})}),(0,n.jsx)("div",{className:"text-xs text-[#9FAFA7]",children:(0,n.jsx)(i.cC,{id:"8ab1sR"})})]}),(null==e?void 0:e.like_state)===2&&(0,n.jsxs)("div",{onClick:()=>{r()},className:"group relative  flex h-6 cursor-pointer items-center gap-x-1 rounded border border-[#303030] bg-[#1C1C1D] px-2",children:[(0,n.jsx)("div",{className:"flex items-center justify-center",children:(0,n.jsx)("span",{className:"i-com--dislike-solid h-5 w-5 md:h-4 md:w-4"})}),(0,n.jsx)("div",{className:"xs:line-clamp-1 xs:max-w-[70px] whitespace-nowrap text-xs text-[#9FAFA7]",children:""===e.subject?_.ag._({id:"RoafuO"}):_.ag._({id:"QxYXhK"})}),(0,n.jsx)("svg",{onClick:e=>{e.stopPropagation(),o(0)},stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",className:"absolute right-[-8px] top-[-8px] hidden h-4 w-4 text-[#94A2AE] opacity-50 group-hover:block",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.514 2 12 2zm4.207 12.793-1.414 1.414L12 13.414l-2.793 2.793-1.414-1.414L10.586 12 7.793 9.207l1.414-1.414L12 10.586l2.793-2.793 1.414 1.414L13.414 12l2.793 2.793z"})})]}),(null==e?void 0:e.like_state)===0&&(0,n.jsx)(tk.default,{color:"#1677ff",placement:"bottom",title:_.ag._({id:"W9FRBT"}),children:(0,n.jsx)("div",{onClick:async()=>{t&&o(1)},className:"group flex cursor-pointer items-center justify-center rounded p-1 hover:bg-[#162c23] ",children:(0,n.jsx)("span",{className:"i-com--like group-hover:text-primary h-5 w-5"})})}),(null==e?void 0:e.like_state)===0&&(0,n.jsx)(tk.default,{color:"#1677ff",placement:"bottom",title:_.ag._({id:"0JJQe6"}),children:(0,n.jsx)("div",{onClick:async()=>{t&&(r(),o(2))},className:"group flex cursor-pointer items-center justify-center rounded p-1 hover:bg-[#162c23] ",children:(0,n.jsx)("span",{className:"i-com--dislike group-hover:text-primary h-5 w-5"})})})]})]})})},tT=s(534955),tI=s.n(tT);function tL(){let e=(0,p._)(["",""]);return tL=function(){return e},e}function tM(e){let{className:t}=e,{resultContent:s,resultContentWords:r,isLoading:l,detailLoading:a}=(0,c.s)(),o=ey({isRetry:!0});(0,i.mV)();let d=[{delaySecond:0,text:_.ag._({id:"Pi61x5"})},{delaySecond:10,text:_.ag._({id:"WXzJEU"}),withPlatform:!0}],{isDirectionCol:u}=(0,Q.i)();return(0,n.jsx)(er,{id:ee.U.output.id,rootClassName:t,children:(0,n.jsx)("div",{className:"relative h-full text-left md:rounded-none",children:(0,n.jsx)("div",{className:"size-full",children:(0,n.jsxs)(f.If,{condition:s.length||l&&!a,children:[(0,n.jsx)(f.Zf,{children:(0,n.jsxs)(f.If,{condition:s.length,children:[(0,n.jsx)(f.Zf,{children:(0,n.jsxs)("div",{className:"flex size-full flex-col py-4",children:[(0,n.jsx)("div",{className:"scrollbar text-display-secondary h-0 w-full flex-1 overflow-y-auto pr-[2px]",children:(0,n.jsx)(tC.Z,{className:(0,h.y)(tL(),tI().bypassEditor)})}),(0,n.jsx)("div",{className:"flex w-full items-center",children:(0,n.jsxs)("div",{className:"text-display-secondary flex min-h-[44px] w-full flex-wrap items-center justify-between gap-2 pt-3",children:[(0,n.jsx)("div",{className:"flex gap-x-1 text-sm",children:(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{children:r.toLocaleString("en-us")}),"\xa0",(0,n.jsx)("span",{children:(0,n.jsx)(i.cC,{id:"5tK0NB"})})]})}),(0,n.jsxs)("div",{className:"flex items-center gap-x-4 md:gap-x-2",children:[(0,n.jsx)(tO,{}),(0,n.jsx)(eO,{...o}),(0,n.jsx)(tw.Z,{})]})]})})]})}),(0,n.jsx)(f.Ot,{children:(0,n.jsxs)("div",{className:"flex size-full flex-col items-center justify-center gap-y-2",children:[(0,n.jsx)("span",{className:"i-svg-spinners--180-ring-with-bg text-primary size-12"}),(0,n.jsx)(t_.Z,{textList:d})]})})]})}),(0,n.jsx)(f.Ot,{children:(0,n.jsx)("div",{className:"flex size-full items-center justify-center",children:(0,n.jsx)("span",{className:"text-f-text-tertiary text-center",children:(0,n.jsx)(i.cC,{id:"tMVSbz"})})})})]})})})})}function tR(){return(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{style:{background:"linear-gradient(180deg, rgba(90, 88, 88, 0.3) 0%, rgba(50, 50, 50, 0.3) 69.79%, rgba(40, 38, 38, 0.3) 100%)"},className:"flex h-[640px] gap-[16.5px] rounded-xl bg-red-400 p-4 backdrop-blur-2xl lg:h-full",children:[(0,n.jsx)(K,{className:"border-e"}),(0,n.jsxs)("div",{className:"flex-1",children:[(0,n.jsxs)("div",{className:"flex w-full flex-wrap-reverse items-center justify-between gap-y-3 rounded-t-xl pb-2 md:flex-col-reverse md:items-end",children:[(0,n.jsx)(tN,{className:"flex items-center md:flex-col md:items-start md:gap-3"}),(0,n.jsx)(tm,{})]}),(0,n.jsxs)("div",{className:"flex w-full items-center gap-y-2 md:flex-col",children:[(0,n.jsx)(e1,{className:"border-f-border h-[565px] w-0 flex-1 rounded-none md:h-[400px] md:w-full md:flex-initial md:rounded-b-xl ltr:rounded-l-xl ltr:border-r rtl:rounded-r-xl rtl:border-l"}),(0,n.jsx)(tM,{className:"h-[565px] w-0 flex-1 rounded-none md:h-[400px] md:w-full md:flex-initial md:rounded-xl ltr:rounded-r-xl rtl:rounded-l-xl"})]})]})]}),(0,n.jsx)(ec,{})]})}function tB(){let{checkModel:e,resultContent:t,isLoading:s}=(0,c.s)();return(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"overflow-hidden rounded-b-xl",children:[(0,n.jsx)(e1,{className:"h-[400px] rounded-b-none"}),(0,n.jsx)(tp,{})]}),(0,n.jsx)(f.nA,{condition:"check-for-ai"===e,children:(0,n.jsx)(ec,{className:"mt-3"})}),(0,n.jsx)(e5,{}),(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)(f.nA,{condition:(null==t?void 0:t.length)||s,children:(0,n.jsx)(tM,{className:"h-[400px]"})}),(0,n.jsx)(f.nA,{condition:"humanize"===e,children:(0,n.jsx)(ec,{})})]})]})}function tD(){let{isDirectionCol:e,loading:t}=(0,Q.i)(),s=(0,l.useRef)(!1),{isDirectionCol:r,layoutType:i}=u();return(0,l.useMemo)(()=>void 0!==r?r:e,[r,e]),(0,x.Z)(()=>{s.current=!0}),(0,n.jsx)(m.default,{spinning:t,children:(0,n.jsxs)(f.If,{condition:s.current,children:[(0,n.jsx)(f.Zf,{children:"row"===i?(0,n.jsx)(tR,{}):(0,n.jsx)(tB,{})}),(0,n.jsx)(f.Ot,{children:(0,n.jsx)("div",{className:"bg-f-bg-base h-[440px] w-full rounded-xl"})})]})})}function tU(e){let{initialContextValue:t,isDirectionCol:s,layoutType:l="row"}=e;return(0,i.mV)(),(0,n.jsx)(r.Z,{initialContextValue:{...t},children:(0,n.jsx)(d,{initialContextValue:{isDirectionCol:s,layoutType:l},children:(0,n.jsx)(tD,{})})})}},681211:function(e,t,s){"use strict";var n=s(348851),r=s(85888),i=s(629232),l=s(212701),a=s.n(l);function c(){let e=(0,r._)(["text-transparent "," ",""]);return c=function(){return e},e}t.Z=e=>{let{children:t,className:s}=e;return(0,i.jsx)("span",{className:(0,n.y)(c(),a().gradient,s),children:t})}}}]);