1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3637],{3637:function(e,a,t){"use strict";t.d(a,{Z:function(){return M}});var r=t(85893),o=t(67294),s=t(25675),n=t.n(s),i=t(55733),d=t.n(i),l=t(45007),c=t(88457),_=t(5055),m=t.n(_),h=t(30053),u=t(78077),p=t(42870),g=t(55757),x=t(98252),y=t(5159),v=t(89381),b=t(80586),f=t(31722),w=t(79965),T=t(91316),k=t(895),P=t(9102),j=t(36059),S=t.n(j),N=t(36639),C=t(86895),E=e=>{let{value:a,onChange:t,toggle:s,setToggle:n,dropdownOptions:i,isComposer:d,data_testid:c="drop_down_",mediumSize:_,isChecker:m,isParaphrase:h,placeholderText:u,userStyle:p,setStylePopupOpen:g,isCitation:x}=e,[y,v]=(0,o.useState)(()=>{{let e=localStorage.getItem("customStyles")?JSON.parse(localStorage.getItem("customStyles")):[];return[...P.ip,...e.map(e=>({sortKey:(0,C.V8)(e),value:e,text:e}))]}}),{authUser:b}=(0,l.v9)(e=>e.auth);return(0,o.useEffect)(()=>{if(!(null==b?void 0:b.idToken)){let e=(0,C.Kg)();v([...P.ip,...e.map(e=>({sortKey:(0,C.V8)(e),value:e,text:e}))])}},[null==b?void 0:b.idToken]),(0,r.jsx)(N.Z,{mediumSize:_,options:y,value:a,onChange:t,toggle:s,setToggle:n,isComposer:d,data_testid:c,isChecker:m||!1,isParaphrase:h||!1,isCitation:x||!1,placeholderText:u||"Find a checker",userStyle:p,setStylePopupOpen:g,handleCustomMode:e=>{if(null!=e&&e.trim()){let a=null==e?void 0:e.toLowerCase();if(P.ip.some(e=>{var t;return(null===(t=e.value)||void 0===t?void 0:t.toLowerCase())===a}))return;let t=(0,C.Kg)();if(t.some(e=>(null==e?void 0:e.toLowerCase())===a))return;let r=[...t,e];localStorage.setItem("customStyles",JSON.stringify(r)),v([...P.ip,...r.map(e=>({sortKey:(0,C.V8)(e),value:e,text:e}))])}}})};function M(e){var a,t,s;let{query:i,data_testid:_,enableTurnstile:j,setMaxCharLengthError:N=()=>{},onLinkClick:C=()=>{}}=e,[M,R]=(0,o.useState)(""),[D,L]=(0,o.useState)("txt"),[A,O]=(0,o.useState)(!1),[B,I]=(0,o.useState)(!1),[F,H]=(0,o.useState)(""),[G,z]=(0,o.useState)(""),[U,W]=(0,o.useState)(!1),[Z,K]=(0,o.useState)(!1),[V,Y]=(0,o.useState)(!1),[q,J]=(0,o.useState)(!1),[Q,X]=(0,o.useState)(!1),[$,ee]=(0,o.useState)(!1),[ea,et]=(0,o.useState)(!1),[er,eo]=(0,o.useState)({msg:"",display:!1,type:f.v.INFO,isClossVisible:!1}),[es,en]=(0,o.useState)((null===(a=P.ip[0])||void 0===a?void 0:a.value)||""),[ei,ed]=(0,o.useState)(!1),[el,ec]=(0,o.useState)(!1),[e_,em]=(0,o.useState)(!1),[eh,eu]=(0,o.useState)((null===(s=P.Os.models)||void 0===s?void 0:null===(t=s[0])||void 0===t?void 0:t.id)||""),{authUser:ep}=(0,l.v9)(e=>e.auth),{openEmailVerifiedModal:eg}=(0,l.v9)(e=>e.modal),{mediaType:ex,clearInputs:ey}=(0,l.v9)(e=>e.media),ev=(0,l.I0)(),eb=(0,o.useRef)(null),ef=["doc","docx","txt","pdf"];function ew(){let e=new Date,a=e.getUTCDate(),t=e.getMonth()+1,r=e.getUTCFullYear();return"citationClickCount_".concat(a,"_").concat(t,"_").concat(r)}(0,o.useEffect)(()=>{R(""),z("")},[ey]),(0,o.useEffect)(()=>{try{let e=JSON.parse(localStorage.getItem("citationText"));R(null!=e?e:"")}catch(e){console.error("Error retrieving citation text from localStorage:",e),R("")}},[]);let eT=async()=>{if(N(!1),!M){J(!0);return}(async()=>{try{var e,a,t,r;let o;let s=+(JSON.parse(localStorage.getItem(ew()))||"0");if((0==Object.keys(ep).length||Object.keys(ep).length>0&&!ep.isPremium)&&s>=10){ee(!0);return}if(Y(!0),null==(o=await T.ApiService.generateCitation({text:M,style:es,model:eh}))?void 0:null===(e=o.success)||void 0===e?void 0:e.data){let e=null==o?void 0:null===(a=o.success)||void 0===a?void 0:a.data;K(!0);let n=(null==e?void 0:null===(r=e.output)||void 0===r?void 0:null===(t=r.cite)||void 0===t?void 0:t.text)||"";z(n),ec(!el),ed(!0),Y(!1),(null==ep?void 0:ep.isPremium)||localStorage.setItem(ew(),JSON.stringify(s+1))}else o.error&&(Y(!1),X(!0))}catch(e){Y(!1),X(!0)}})()},ek=async(e,a)=>{var t,r;let o=null==a?void 0:null===(t=a.name.split(".")[(null==a?void 0:null===(r=a.name)||void 0===r?void 0:r.split(".").length)-1])||void 0===t?void 0:t.toLowerCase();if(ef.includes(o)){if(L(o),"txt"===o){let e=new FileReader;e.onload=()=>{let a=e.result;W(!1),R(a.toString().substring(0,5e3)),H(a.toString().substring(0,5e3)),a.toString().length>5e3&&N(!0)},e.readAsText(a)}else if("docx"===o){let e=new FileReader;e.readAsArrayBuffer(a),e.onload=async()=>{let a=e.result;if(a instanceof ArrayBuffer){var t;let e=await (t="word/document.xml",new(d())().loadAsync(a).then(e=>{let a=e.file(t);return a?a.async("string").then(e=>new(m()).Parser().parseStringPromise(e).then(e=>{var a,t;let r=null===(t=e["w:document"]["w:body"])||void 0===t?void 0:null===(a=t[0]["w:p"])||void 0===a?void 0:a.map(e=>{var a,t;return null===(t=e["w:r"])||void 0===t?void 0:null===(a=t[0]["w:t"])||void 0===a?void 0:a[0]}),o=[];for(let e of r)e&&o.push((null==e?void 0:e._)||e);return o.join("\n")})):""}));W(!1),R(e.toString().substring(0,5e3)),H(e.toString().substring(0,5e3)),e.toString().length>3e3&&N(!0)}}}else if("pdf"===o){let e=await (0,k.d7)(a);W(!1),R(e.toString().substring(0,3e3)),H(e.toString().substring(0,3e3)),e.toString().length>3e3&&N(!0)}else{let e=new FileReader;e.addEventListener("load",()=>{let a=e.result;W(!1),R(a.toString().substring(0,5e3)),H(a.toString().substring(0,5e3)),a.toString().length>3e3&&N(!0)},!1),a&&e.readAsText(a)}}},eP=function(){var e,a;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";null===(a=navigator)||void 0===a||null===(e=a.clipboard)||void 0===e||e.
1writeText(t),eo({msg:"Copied to clipboard",display:!0,type:f.v.SUCCESS,isClossVisible:!1}),setTimeout(()=>{eo(e=>({...e,msg:"",display:!1}))},1500)},ej=()=>{let e;if(!G)return;e="CitationText-".concat(new Date().getTime(),".").concat(D);let a=document.createElement("a"),t=new Blob([G],{type:"text/plain"});a.href=URL.createObjectURL(t),a.download=e,document.body.appendChild(a),a.click(),a.remove()},eS=e=>{en(e)},eN=e=>{if(P.Os.premium_models.some(a=>a.id===e)&&(!ep.isPremium||0==Object.keys(ep).length)){if(Object.keys(ep).length&&!(null==ep?void 0:ep.emailVerified)){ev((0,w.Vv)(!0));return}ee(!0);return}eu(e)};return(0,o.useEffect)(()=>{z("")},[es]),(0,r.jsxs)(r.Fragment,{children:[er.display&&(0,r.jsx)("div",{className:"notification_mb",children:(0,r.jsx)(f.j,{errorMessage:er.msg,type:er.type,data_testid:"paraphrase_notification",handleCloseClick:()=>eo(e=>({...e,msg:"",display:!1})),isCloseVisible:er.isClossVisible})}),Q&&(0,r.jsx)(f.j,{handleCloseClick:()=>{X(!1)},type:f.v.ERROR,data_testid:_+"error_palgiarism_checker"}),(0,r.jsxs)("div",{className:"".concat(S().entryBlock," max-w-1200 mx-auto"),"data-testid":_+"plag_cjeck_container",id:_+"plag_cjeck_container",children:[(0,r.jsxs)("div",{className:"".concat(S().entryTools," bg-white dark:bg-black"),children:[(0,r.jsx)("label",{className:"dark:text-gray-10 ".concat(S().label_mobile),children:"Mode"}),(0,r.jsxs)("div",{className:"".concat(S().entrytab," border-t border-b border_gray_lighter dark:border-gray"),children:[(0,r.jsx)("a",{onClick:()=>W(!1),"data-testid":_+"header_original_button",id:_+"header_original_button",className:"".concat(S().entrylink," ").concat(!U&&"".concat(S().tab_active," border-b opacity-100")," border-dark text_black dark:text-gray-10 dark:border-gray-10"),children:"Original"}),(0,r.jsx)("a",{className:"".concat(S().entrylink," ").concat(U&&"".concat(S().tab_active," border-b opacity-100")," dark:border-gray-10 opacity-50"),children:"Checked"})]})]}),(0,r.jsxs)("div",{className:"".concat(S().entryWrap," re-shadow "),children:[(0,r.jsx)("div",{className:"".concat(S().entryHead," w-full border-b dark:border-gray border_gray_lighter "),children:(0,r.jsxs)("div",{className:"flex items-center w-full",children:[(0,r.jsxs)("div",{className:"flex items-center mr-2",children:[(0,r.jsx)("div",{className:"dark:text-gray-10 ".concat(S().citationTitle," text-xl font-bold whitespace-nowrap "),children:"Generate citations from your text"}),(0,r.jsx)("label",{className:"dark:text-gray-10 ".concat(S().label_desk," ml-5"),children:"Style:"}),(0,r.jsx)(E,{mediumSize:!0,value:es,onChange:eS,toggle:B,setToggle:I,placeholderText:"Select a style or create one",isCitation:!0,dropdownOptions:P.ip})]}),(0,r.jsxs)("div",{className:"flex items-center ml-auto",children:[(0,r.jsx)("label",{className:"dark:text-gray-10 ".concat(S().label_desk),children:"Models:"}),(0,r.jsx)(v.Z,{mediumSize:!0,value:eh,onChange:eN,toggle:e_,setToggle:em,data_testid:"drop_down_"})]})]})}),(0,r.jsxs)("div",{className:"".concat(S().entryCol," ").concat(!U&&S().active_tab),children:[(0,r.jsx)("div",{className:"flex items-center w-full flex-wrap",children:ex==P.w_.MOBILE&&(0,r.jsxs)("div",{className:"flex items-center flex-wrap ".concat(S().modeMobile," "),children:[(0,r.jsx)("div",{className:"dark:text-gray-10 ".concat(S().citationTitle," text-xl font-bold whitespace-nowrap mb-3"),children:"Generate citations from your text"}),(0,r.jsx)("label",{className:"dark:text-gray-10 ".concat(S().label_desk),children:"Style:"}),(0,r.jsx)(E,{mediumSize:!0,value:es,onChange:eS,toggle:B,setToggle:I,placeholderText:"Select a style or create one",isCitation:!0}),(0,r.jsx)("label",{className:"dark:text-gray-10 mt-3 ".concat(S().label_desk),children:"Models:"}),(0,r.jsx)(v.Z,{mediumSize:!0,value:eh,onChange:eN,toggle:e_,setToggle:em,data_testid:"drop_down_"})]})}),(0,r.jsx)("hr",{className:"dark:border-gray ".concat(S().line_mobile," ").concat(S().bordrezero," ")}),(0,r.jsxs)("label",{className:"dark:text-gray-10 font_600 px-6 pt-6 block border-r dark:border-gray border_gray_lighter ".concat(S().label_mobile),children:["Original:"," "]}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsxs)("div",{onClick:()=>{O(!0)},className:"".concat(S().textAreaHeight," border-r dark:border-gray border_gray_lighter "),children:[!M&&!F&&!A&&(0,r.jsx)(y.NL,{setEntryText:R,hideSampleText:!0,sampleText:y.y7}),(M||F||A)&&(0,r.jsx)("form",{className:"h-full",children:(0,r.jsx)("div",{className:"flex h-full",children:(0,r.jsx)(y.oi,{handleChange:e=>{let a=e.target.value;e.target.value.length>5e3&&(a=a.substring(0,5e3)),R(a),localStorage.setItem("citationText",JSON.stringify(a)),J(!1)},entryText:M,data_testid:_+"citation_checker_text_input"})})})]}),ei&&(0,r.jsx)(b.Z,{onGenerate:el,text:M,setShowPopup:ed})]}),(0,r.jsx)("div",{className:"".concat(S().bottom," ").concat(S().hide_mobilebtn," border-t border-r dark:border-gray border_gray_lighter "),children:(0,r.jsxs)("div",{className:"".concat(S().bottomBtn," flex gap-x-4 items-center"),children:[q&&!M&&(0,r.jsxs)("div",{className:"flex gap-x-2 items-center text-error text_sm",children:[(0,r.jsx)(g.Z,{height:18,width:18,className:"fill-current text-error"}),"Text required"]}),(0,r.jsx)("div",{className:"".concat(S().text),children:(0,r.jsx)(y.Ht,{text:M,limit:5e3})}),(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsxs)("div",{onClick:()=>{var e;null==eb||null===(e=eb.current)||void 0===e||e.click()},className:"tooltipMain ".concat(S().bottomBtnUpload),children:[(0,r.jsx)("input",{accept:".doc, .docx, .txt ,.pdf",value:"",ref:eb,style:{visibility:"hidden",opacity:0}
1,onChange:e=>{var a,t;return ek(e,null==e?void 0:null===(t=e.target)||void 0===t?void 0:null===(a=t.files)||void 0===a?void 0:a[0])},type:"file"}),(0,r.jsxs)("div",{children:[(0,r.jsx)(n(),{src:"/images/upload.svg",className:"img_normal",alt:"upload",width:24,height:24,style:{width:"auto",height:"auto"}}),(0,r.jsx)(n(),{src:"/images/upload-white.svg",className:"img_dark",alt:"upload",width:24,height:24,style:{width:"auto",height:"auto"}})]}),(0,r.jsx)("div",{className:"customToolTip",children:(0,r.jsx)("p",{children:"Upload txt, pdf, and docx files"})})]}),(0,r.jsx)("button",{onClick:eT,className:" ".concat(V?"cursor-not-allowed":""," button-style button_bg hover:bg-opacity-90 focus:outline-none"),"data-testid":_+"check_citation_button",id:_+"check_citation_button",disabled:V,children:"Generate"})]})]})})]}),(0,r.jsxs)("div",{className:"".concat(S().entryCol," ").concat(U&&S().active_tab),"data-testid":"plag_check_text_area_2",id:"plag_check_text_area_2",children:[(0,r.jsxs)("div",{className:"".concat(S().bottomBtnUploadIcons," flex items-center justify-between"),children:[(0,r.jsxs)("div",{onClick:()=>{var e;null==eb||null===(e=eb.current)||void 0===e||e.click()},className:"".concat(S().bottomBtnUpload),children:[(0,r.jsx)("input",{accept:".doc, .docx, .txt ,.pdf",value:"",ref:eb,style:{visibility:"hidden",opacity:0},type:"file",onChange:e=>{var a,t;return ek(e,null==e?void 0:null===(t=e.target)||void 0===t?void 0:null===(a=t.files)||void 0===a?void 0:a[0])}}),(0,r.jsxs)("div",{children:[(0,r.jsx)(n(),{src:"/images/upload.svg",className:"img_normal",alt:"upload",width:24,height:24,style:{width:"auto",height:"auto"}}),(0,r.jsx)(n(),{src:"/images/upload-white.svg",className:"img_dark",alt:"upload",width:24,height:24,style:{width:"auto",height:"auto"}})]})]}),(0,r.jsx)(y.Ht,{text:M,limit:5e3})]}),(0,r.jsx)("hr",{className:"dark:border-gray ".concat(S().line_mobile)}),(0,r.jsxs)("label",{className:"dark:text-gray-10 ".concat(S().label_mobile," ").concat(S().hide_desktop),children:["Citations:"," "]}),(0,r.jsx)("div",{className:"".concat(S().entryHead," ").concat(S().entryHeadOutput," "),children:(0,r.jsx)("span",{className:"font_600 dark:text-gray-10",children:"Citations:"})}),(0,r.jsx)("div",{className:"".concat(S().textAreaHeight," "),children:(0,r.jsxs)("div",{className:"".concat(S().textAreaHeightauto," "),children:[!V&&!G&&(0,r.jsx)(x.Z,{animation:!1}),V&&(0,r.jsx)(x.Z,{animation:"wave"}),!V&&Z&&(0,r.jsx)(r.Fragment,{children:G&&(0,r.jsx)("div",{className:"".concat(S().markdownContainer),children:(0,r.jsx)(c.UG,{children:G.replace(/\n/g,"\n\n ")})})})]})}),(0,r.jsxs)("div",{className:"".concat(S().bottomBtnUploadIcons," ").concat(S().bottomButtonDownload," flex items-center justify-between"),children:[(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsxs)("div",{onClick:()=>{ej()},className:"".concat(S().bottomBtnDownload),children:[(0,r.jsx)(n(),{src:"/images/download.svg",className:"img_normal",alt:"download",width:24,height:24,style:{width:"auto",height:"auto"}}),(0,r.jsx)(n(),{src:"/images/download-white.svg",className:"img_dark",alt:"download",width:24,height:24,style:{width:"auto",height:"auto"}})]}),(0,r.jsxs)("div",{onClick:()=>{G&&eP(G)},className:"ml-copy ".concat(S().bottomBtnDownload," ").concat(G?"":S().buttonDisable),children:[(0,r.jsx)(n(),{src:"/images/copy-black.svg",className:"img_normal",alt:"copy",width:24,height:24,style:{width:"auto",height:"auto"}}),(0,r.jsx)(n(),{src:"/images/copy-white.svg",className:"img_dark",alt:"copy",width:24,height:24,style:{width:"auto",height:"auto"}})]})]}),(0,r.jsxs)("span",{className:" dark:text-gray-10 text_gray",children:[" ",(0,r.jsx)(y.Ht,{text:G.length>0?G:"",showLimit:!1,limit:5e3})]})]}),(0,r.jsxs)("div",{className:"".concat(S().bottom," ").concat(S().hide_desktop," border-t border-r dark:border-gray border_gray_lighter "),children:[(0,r.jsx)("div",{className:"".concat(S().bottomBtn," flex gap-x-4 items-center"),children:(0,r.jsx)("button",{onClick:eT,className:" ".concat(V?"cursor-not-allowed":""," button-style button_bg button_bg hover:bg-opacity-90 focus:outline-none"),"data-testid":"check_citation_button",id:"check_citation_button",disabled:V,children:"Generate"})}),(0,r.jsx)("div",{className:S().text})]}),(0,r.jsx)("div",{className:"".concat(S().bottom," border-t dark:border-gray border_gray_lighter "),children:(0,r.jsxs)("div",{className:"flex justify-between items-center w-full ".concat(S().textHideforMobile," "),children:[(0,r.jsx)("div",{className:"".concat(S().text," "),children:(0,r.jsx)("span",{className:" dark:text-gray-10 text_gray",children:(0,r.jsx)(y.Ht,{text:G.length>0?G:"",showLimit:!1,limit:5e3})})}),(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsxs)("div",{onClick:()=>{G&&eP(G)},className:"mr-copy ".concat(S().bottomBtnDownload," ").concat(G?"":S().buttonDisable),children:[(0,r.jsx)(n(),{src:"/images/copy-black.svg",className:"img_normal",alt:"copy",width:24,height:24,style:{width:"auto",height:"auto"}}),(0,r.jsx)(n(),{src:"/images/copy-white.svg",className:"img_dark",alt:"copy",width:24,height:24,style:{width:"auto",height:"auto"}})]}),(0,r.jsxs)("div",{onClick:()=>{ej()},className:"".concat(S().bottomBtnDownload),children:[(0,r.jsx)(n(),{src:"/images/download.svg",className:"img_normal",alt:"download",width:24,height:24,style:{width:"auto",height:"auto"}}),(0,r.jsx)(n(),{src:"/images/download-white.svg",className:"img_dark",alt:"download",width:24,height:24,style:{width:"auto",height:"auto"}})]})]})]})})]})]})]}),(0,r.jsx)(p.Z,{open:$,close:()=>ee(!1),data_testid:"citation-payment"}),(0,r.jsx)(h.Z,{open:ea,close:()=>et(!1),showSignUp:!0,text:"Create an account for a free composition and citation check",data_testid:"citation-auth"}),(0,r.jsx)(u.Z,{open:eg,close:()=>ev((0,w.Vv)(!1)),title:"Please verify your email",subtitle:"Please verify your email to receive a free Citation Check. Resend verification email",footer:"Didn't get an email?",footerLink:"Resend",footerLinkClick:()=>{ev((0,w.Vv)(!1)),C()},showClose:!0,data_testid:_+"text_entry_",custom:!1})]})}},98252:function(e,a,t){"use strict";t.d(a,{Z:function(){return s}});var r=t(85893),o=t(64347);function s(e){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Z,{animation:e.animation}),(0,r.jsx)(o.Z,{width:"60%",animation:e.animation})]})}},78077:function(e,a,t){"use strict";t.d(a,{Z:function(){return c}});var r=t(85893);t(67294);
1var o=t(33453),s=t(45007),n=t(88601),i=t(9102),d=t(80798),l=t.n(d);function c(e){let{open:a,close:t,showClose:d,title:c,subtitle:_,footer:m,actionButton:h,actionButtonClick:u,footerLink:p,footerLinkClick:g,headerLogo:x,data_testid:y,custom:v=!1,children:b}=e,{mediaType:f}=(0,s.v9)(e=>e.media);return(0,r.jsxs)(o.Z,{open:a,onClose:t,fullScreen:f==i.w_.MOBILE,PaperProps:{classes:{root:"mobile_poup"},style:{width:"100%"}},children:[d&&(0,r.jsx)("div",{onClick:t,className:"".concat(l().close_btn),id:y+"index_cross_close","data-testid":y+"index_cross_close",children:(0,r.jsx)("span",{className:"close_cross",children:(0,r.jsx)("span",{className:"close_line dark:arrow-bg-light"})})}),v?(0,r.jsxs)("div",{children:[" ",b]}):(0,r.jsxs)("div",{className:"dark:bg-dark ".concat(l().modalBlock),children:[(0,r.jsx)("div",{className:"".concat(l().logoIcon),children:x}),(0,r.jsx)("h2",{className:"dark:text-gray-10",children:c&&c}),(0,r.jsx)("p",{className:"dark:text-gray-10 ".concat(l().subtitle),children:_&&_}),h&&(0,r.jsx)("div",{className:"".concat(l().actionButton),children:(0,r.jsx)(n.Z,{label:h,isDarkModeEnabled:!0,handleButtonClick:u,data_testid:y+"index_action_button"})}),m&&(0,r.jsxs)("span",{className:"dark:text-gray-10 ".concat(l().footerInfo),children:[m,p&&(0,r.jsxs)("a",{className:"dark:color-lightblue",onClick:g,id:y+"index_footer_link","data-testid":y+"index_footer_link",children:[" ",p," "]})]})]})]})}},89381:function(e,a,t){"use strict";var r=t(85893),o=t(67294),s=t(25675),n=t.n(s),i=t(45007),d=t(84781);t(91708),t(74087),t(85516);var l=t(42870),c=t(30053),_=t(9102),m=t(62544),h=t.n(m);let u=e=>{var a;let{value:t,onChange:s,toggle:d,setToggle:m,data_testid:u,isCompose:p=!1,mediumSize:g}=e,x=(0,o.useRef)(null),{authUser:y}=(0,i.v9)(e=>e.auth),[v,b]=(0,o.useState)(""),[f,w]=(0,o.useState)([]),[T,k]=(0,o.useState)(""),[P,j]=(0,o.useState)(!1),[S,N]=(0,o.useState)(!1),[C,E]=(0,o.useState)(""),[M,R]=(0,o.useState)(""),[D,L]=(0,o.useState)(!1),A=e=>e.filter(e=>e.display_name.toLowerCase().includes(v.toLowerCase())),O=(0,o.useCallback)(e=>{setTimeout(()=>{m(!d)},0),d||setTimeout(()=>{j(!0)},0)},[m,d]);(0,o.useEffect)(()=>{var e,a;(null==y?void 0:y.isPremium)?(w([..._.Os.models,..._.Os.premium_models]),k((null===(e=_.Os.premium_models.find(e=>e.premium_default))||void 0===e?void 0:e.id)||_.Os.models[0].id)):(w(_.Os.models),k((null===(a=_.Os.models.find(e=>e.default))||void 0===a?void 0:a.id)||_.Os.models[0].id))},[null==y?void 0:y.isPremium]),(0,o.useEffect)(()=>{if(!d){document.querySelector("html").classList.remove("dropdown_modal");return}document.querySelector("html").classList.add("dropdown_modal");let e=e=>{x.current&&!x.current.contains(e.target)&&d&&P&&(j(!1),b(""),O(e))};return window.addEventListener("click",e),()=>window.removeEventListener("click",e)},[O,d,P]);let B=(e,a)=>{k(a),s(a),O(e),b("")},I=A((null==y?void 0:y.isPremium)?f:_.Os.models).map((e,a)=>{var t,o;let s=(null==y?void 0:y.isPremium)&&e.id===(null===(t=_.Os.premium_models.find(e=>e.premium_default))||void 0===t?void 0:t.id)||!(null==y?void 0:y.isPremium)&&e.id===(null===(o=_.Os.models.find(e=>e.default))||void 0===o?void 0:o.id);return(0,r.jsx)("li",{className:"".concat(h().item," ").concat(e.id===T&&h().selectedItem," dark:border-gray border-b border_gray_lighter dark:text-gray-10"),"data-value":e.id,onClick:a=>B(a,e.id),"data-testid":u+"drop_down_modes"+e.id,id:u+"drop_down_modes"+e.id,children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[e.display_name," ",s&&(0,r.jsx)("span",{children:"(default)"})]})},a)}),F=A(_.Os.premium_models).map((e,a)=>{var t;let o=e.id===(null===(t=_.Os.premium_models.find(e=>e.premium_default))||void 0===t?void 0:t.id);return(0,r.jsx)("li",{className:"".concat(h().item," ").concat(h().premium," ").concat(e.id===T&&h().selectedItem," dark:border-gray border-b border_gray_lighter dark:text-gray-10"),"data-value":e.id,onClick:a=>B(a,e.id),"data-testid":u+"drop_down_modes"+e.id,id:u+"drop_down_modes"+e.id,children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[e.display_name," ",o&&(0,r.jsx)("span",{children:"(default)"})]})},a)});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"".concat(h().dropdown," ").concat(g?h().isMedium:""),children:[(0,r.jsx)("div",{className:"".concat(h().holder," ").concat(h().modeborder," ").concat(d?h().holderActive:""," dark:text-gray-10 dar
1k:arrow-color dark:border-gray border border_gray_lighter "),onClick:O,"data-testid":u+"dropdown_holder",id:u+"dropdown_holder",children:(0,r.jsxs)("span",{children:[(0,r.jsx)("span",{className:"".concat(h().modehide),children:"Mode: \xa0"}),(0,r.jsx)("span",{className:"dark:border-gray-10 border-b border-gray-light ",children:(e=>{let a=f.find(a=>a.id===e);return a?a.display_name:e})(T)})]})}),d&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{ref:x,className:"desktop-dropdown ".concat(p?h().composeParent:""," ").concat(h().list," dark:bg-dark bg-white"),children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"".concat(h().composerModeLabel),children:"Models:"}),(0,r.jsxs)("div",{className:"".concat(h().searchBox),children:[(0,r.jsx)(n(),{src:"/images/search.svg",alt:"",width:24,height:24,style:{width:"auto",height:"auto"}}),(0,r.jsx)("input",{className:"dark:bg-dark dark:border-gray",type:"text",placeholder:"Find a model",value:v,onChange:e=>{b(e.target.value)}})]}),(0,r.jsxs)("div",{className:"".concat(h().composerListScroll),children:[" ",(0,r.jsxs)("div",{className:"".concat(h().composerList),children:[" ",A(_.Os.models).length||A(_.Os.premium_models).length?(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"".concat(h().listInner," w-full"),children:[(0,r.jsxs)("aside",{className:"".concat(y.isPremium?"full-w":"overflow-y-auto"),children:[!y.isPremium&&(0,r.jsxs)("h4",{className:"dark:text-gray-10 ".concat(h().modetitle),children:[(0,r.jsx)("span",{children:"Free"})," Models:"]}),(0,r.jsxs)("ul",{className:"w-full ".concat(h().simpleList," ").concat(y.isPremium?h().noSection:h().seperateSections),children:[(0,r.jsx)("li",{className:"".concat(h().listHolder," dark:bg-dark bg-white dark:text-gray-10 dark:arrow-bg-light dark:border-gray border_gray_lighter "),onClick:O,"data-testid":u+"drop_down_close",id:u+"drop_down_close"}),I]})]}),!y.isPremium&&(0,r.jsxs)("aside",{className:h().premiumBlock,children:[(0,r.jsxs)("h5",{className:" dark:text-gray-10 ".concat(h().premiummodetitle),children:[(0,r.jsx)(n(),{src:"/images/premium-mode.svg",className:"img_normal",alt:"Premium Modes",width:24,height:24,style:{width:"auto",height:"auto"}}),"Premium Models:"]}),(0,r.jsx)("div",{onClick:e=>{var a;return B(e,null===_.Os||void 0===_.Os?void 0:null===(a=_.Os.premium_models[0])||void 0===a?void 0:a.id)},className:"".concat(h().premium_li," ").concat(h().premiumBlock__btn),children:(0,r.jsx)("span",{className:" ".concat(h().premium_btn),children:"Get Premium"})}),(0,r.jsxs)("ul",{className:"".concat(h().premiummode),style:{columnCount:Math.ceil((null===_.Os||void 0===_.Os?void 0:null===(a=_.Os.premium_models)||void 0===a?void 0:a.length)/5)},children:[(0,r.jsx)("li",{className:"".concat(h().listHolder," dark:bg-dark bg-white dark:text-gray-10 dark:arrow-bg-light dark:border-gray border_gray_lighter "),onClick:O,"data-testid":u+"drop_down_close",id:u+"drop_down_close"}),F]})]})]})}):(0,r.jsx)("div",{className:"noda-language dark:text-gray-10 ".concat(h().nodata),children:"No Data found"})]})]})]})})})]}),(0,r.jsx)(l.Z,{open:S,close:()=>N(!1),text:C,data_testid:"paraphrase-mystle"}),(0,r.jsx)(c.Z,{open:D,close:()=>L(!1),showSignUp:!0,text:M,data_testid:"paraphrase-mystle"})]})};
1u.Divider=d.Z.Divider,a.Z=u},5159:function(e,a,t){"use strict";t.d(a,{AW:function(){return f},Ht:function(){return w},NL:function(){return j},Wl:function(){return P},hf:function(){return k},jj:function(){return S},oi:function(){return T},y7:function(){return y}});var r=t(85893),o=t(67294),s=t(4723),n=t(62494),i=t(64010),d=t(25675),l=t.n(d),c=t(52736),_=t(28287),m=t(91316),h=t(45483),u=t(6814),p=t(67287),g=t.n(p);let x="REPHRASELY"==c.env.SKIN?u.oH.name:"Paraphrase Tool",y="".concat(x," has 15 FREE rephrasing modes to rephrase your text. Get started by typing or pasting something here and then click the Paraphrase button."),v={standard:"The paraphrase tool paraphrases the text with 15 FREE modes. Start by typing or pasting something here and click the Paraphrase button.",expand:'The Paraphrase Tool will paraphrase your text in 15 FREE styles. To get started, type or paste something here, and then click the "Paraphrase" button.',shorten:'This paraphrase tool has 15 FREE styles to rephrase your text when you insert text and press "Paraphrase".',diplomatic:"The tool has 15 FREE modes to help you to rephrase your text politely, showing more appreciation for your readers. Start by typing or pasting something here and click the Paraphrase button.",smooth:"Paraphrase tool will make your text oh so suave with 15 FREE styles. Start typing, or paste, and see what magic lies in wait when you press the Paraphrase button.",clear:"With 15 FREE modes, Paraphrase Tool will change text into something that would be more to the point and concise.\xa0 You can start by typing or pasting something here and then click the Paraphrase button.",formal:'With great astuteness and care, Paraphrase Tool paraphrases the text in 15 different FREE styles. To get started, type or paste something here, and then click the "Paraphrase" button.',simple:'The text will be rephrased in one of 15 FREE modes. To get started, type or paste something here, and then click the "Paraphrase" button.',informal:'The paraphrase tool paraphrases the text with 15 FREE styles. To get started, type or paste something here, and then click the "Paraphrase" button.',confident:'With 15 FREE modes, the tool will rephrase your text, all day, all night, any time. Copy and paste or text or start something new. Then hit the "Paraphrase" button. You can do this.',grammar:'With 15 FREE modes, Paraphrase Tool will make your text sound like the most articulate native speaker has given breath to your thoughts. Get your text, paste it in, or write something from scratch, and hit the "Paraphrase" button.',elaborate:"In 15 FREE modes, the paraphrase tool--the one here, with you, eager to serve you as you sit contemplative, will rephrase your text. Start by typing or pasting something here and click the Paraphrase button.",summary:'This paraphrase tool, in one of 15 FREE styles, will rephrase your text when you insert text and press "Paraphrase".',creative:'I had a dream that I was a paragraph and was paraphrased by a tool like this, in 15 different, free styles. Someone just threw me in a box and pressed "Paraphrase".',academic:'It\xa0 has been contended and well researched that this Paraphrase Tool offers the most value, transforming your text into something quite new in 15 different free modes. It is supposed that you merely need to insert a text and click "Paraphrase".',literary:"The paraphrase tool has 15 free restatement modes to restate your text. Start by typing or pasting something here and then clicking the Paraphrase button.",smart:"Paraphrase Tool has 15 free rephrasing modes. Start by typing or pasting something here and then clicking the Paraphrase button.",thoughtful:"Paraphrase Tool has 15 FREE rephrasing modes to rephrase your text. Start by typing or pasting something here and then clicking the Paraphrase button",cohesive:"Insert your text and see the 15 ways Paraphrase Tool can rephrase it for you.",emphatic:"Change your text using this Paraphrase Tool, which offers 15 different writing styles.",human:"Fifteen modes of complimentary rephrasing await you at Paraphrase Tool, allowing for the transformation of your text. Begin by typing or pasting your desired content, and then, with a mere click of the Paraphrase button, witness the magic unfold."},b=async e=>{let{mode:a,text:t,selectedLangCode:r,userStyle:o,variation:s,model:n}=e;if(t===y&&!r){let e={output:{[a]:{text:v[a]}},mode:a};return new Promise(a=>setTimeout(()=>a(e),2e3))}try{let e=await m.ApiService.paraphraseText(JSON.stringify({mode:a,text:t,lang:r,userStyle:o,variation:s,model:n}));if((null==e?void 0:e.status)===200)return null==e?void 0:e.data;return Promise.reject()}catch(e){return Promise.reject(e)}},f=(0,s.J)({id:"ParaphraseMachine",initial:"initial",context:{paraphrasedText:"",mode:h.XG.Standard,error:null,lastEntryText:"",lastMode:"",lastParaphrasedText:"",modeArray:["standard","expand","shorten"],isLocalText:!1,paraphrasedHTML:""},states:{initial:{},textEntry:{on:{PARAPHRASE_TEXT:"loading",ERROR_EMPTY_TEXT:".error",DISMISS_ERROR:".default"},initial:"default",states:{default:{},error:{}}},loading:{invoke:{id:"paraphraseText",src:(e,a)=>b({mode:e.mode,text:a.data.entryText,selectedLangCode:a.data.selectedLangCode,userStyle:(null==e?void 0:e.mode)===h.XG.Mystyle,variation:a.data.variation,model:a.data.model}),onDone:{target:"success",actions:(0,n.f0)({paraphrasedText:(e,a)=>{var t,r;let{mode:o,output:s}=a.data;return{text:s[o].text,lang:null!==(r=null==a?void 0:null===(t=a.data)||void 0===t?void 0:t.lang)&&void 0!==r?r:""}},lastParaphrasedText:(e,a)=>{let{mode:t,output:r}=a.data;return r},paraphrasedHTML:(e,a)=>{var t;let{mode:r,output:o}=a.data;return null==o?void 0:null===(t=o.standard)||void 0===t?void 0:t.html_diff}})},onError:{target:"failure",actions:(0,n.f0)({error:()=>"some error"})}}},success:{initial:"default",states:{default:{on:{COPY_TEXT:"copiedText"}},copiedText:{after:{3e3:{target:"default"}}}},on:{PARAPHRASE_TEXT:"loading"}},failure:{on:{DISMISS_ERROR:"textEntry"}}},on:{RESET:{target:"initial",actions:"reset"},TEXT_ENTRY:"textEntry",SHOW_PARAPRHASED:"success",SET_MODE:{actions:"setMode"}}},{actions:{reset:(0,n.f0)({paraphrasedText:()=>""}),setMode:(0,n.f0)({mode:(e,a)=>a.payload})}}),w=e=>{let{text:a,showLimit:t=!0,limit:o=1e3}=e;return(0,r.jsxs)("span",{className:" dark:text-gray-10 text_gray",children:[(null==a?void 0:a.length)||0," ",t?" / "+o:null," characters"]})},T=e=>{let{entryText:a,handleChange:t,data_testid:s}=e,n=(0,o.useRef)(null);return(0,o.useEffect)(()=>
1{if(a===y){var e;null===(e=n.current)||void 0===e||e.setSelectionRange(a.length,a.length)}},[]),(0,r.jsx)("textarea",{ref:n,className:"w-full h-full dark:text-gray-10 text-gray-20 leading-7 focus:border-none focus:outline-none bg-opacity-0",onChange:t,value:null!=a?a:"",style:{cursor:"text"},autoFocus:a!==y,id:s,"data-testid":s})},k=e=>{var a,t,s;let{current:n,entryText:d}=e,l=null!==(s=null==n?void 0:null===(t=n.context)||void 0===t?void 0:null===(a=t.paraphrasedText)||void 0===a?void 0:a.text)&&void 0!==s?s:"",c=(0,o.useMemo)(()=>d&&l?(0,i.NV)(d,l):[{value:l,added:!1,removed:!1}],[d,l]);return(0,r.jsx)("span",{children:c.map((e,a)=>e.removed?null:e.added?(0,r.jsx)("mark",{className:"paraphraseHighlight",children:e.value},a):(0,r.jsx)("span",{className:"w-full h-full dark:text-gray-10 text-gray-20 leading-7 focus:border-none focus:outline-none bg-opacity-0",children:e.value},a))})},P=e=>{let{entryText:a,paraphrasedText:t,setShowStats:s}=e,n=(0,o.useMemo)(()=>{if(!a||!t)return 0;let e=(0,i.NV)(a,t),r=e.reduce((e,a)=>{var t;return e+((null===(t=a.value)||void 0===t?void 0:t.trim().split(/\s+/).filter(Boolean).length)||0)},0),o=e.filter(e=>e.added||e.removed).reduce((e,a)=>{var t;return e+((null===(t=a.value)||void 0===t?void 0:t.trim().split(/\s+/).filter(Boolean).length)||0)},0);return 0===r?0:Math.min(Math.round(o/r*100),100)},[a,t]);return(0,r.jsx)("div",{className:"changeStats",children:(0,r.jsx)("div",{className:"changeStats__tabs",children:(0,r.jsxs)("div",{className:"changeStats__items",children:[(0,r.jsxs)("div",{className:"changeStats__titleContainer",children:[(0,r.jsxs)("span",{className:"changeStats__label Medium14",children:[n,"% changed"]}),(0,r.jsx)("div",{className:"changeStats__barWrap",children:(0,r.jsx)("div",{className:"changeStats__bar",children:(0,r.jsx)("div",{className:"changeStats__fill",style:{width:"".concat(n,"%")}})})})]}),(0,r.jsx)("span",{onClick:()=>s(!1),className:"changeStats__close",children:(0,r.jsx)(l(),{src:"/images/close.svg",alt:"close",width:14,height:14})})]})})})},j=e=>{let{send:a=()=>{},setEntryText:t=()=>{},sampleText:o,hideSampleText:s}=e;return(0,r.jsx)("div",{className:"flex align-top justify-start w-full flex-row gap-1",children:(0,r.jsxs)("p",{children:[(0,r.jsx)("span",{onClick:()=>a("TEXT_ENTRY"),className:" dark:text-gray-10 text-gray-20 italic","data-testid":"typing_or_paste_helper",id:"typing_or_paste_helper",children:"Begin typing or paste text here."}),s?"":(0,r.jsx)("span",{onClick:()=>{a("TEXT_ENTRY"),t(o)},className:" italic dark:text-gray-10 text-gray-20 underline text-underline pl-1 cursor-pointer",style:{textUnderlineOffset:".25rem"},"data-testid":"sample_text_helper",id:"sample_text_helper",children:"Try sample text"})]})})},S=e=>{var a,t,o,s,n,i,d;let{current:l,send:c}=e;return(0,r.jsxs)("div",{className:"".concat(g().entryAlert," flex justify-between items-center py-2 px-4 bg-error text_base mb-6"),children:[(null==l?void 0:null===(o=l.event)||void 0===o?void 0:null===(t=o.data)||void 0===t?void 0:null===(a=t.response)||void 0===a?void 0:a.status)===429?"You've exceeded our rate limit. Please wait a little while before trying again":(null==l?void 0:null===(d=l.event)||void 0===d?void 0:null===(i=d.data)||void 0===i?void 0:null===(n=i.response)||void 0===n?void 0:null===(s=n.data)||void 0===s?void 0:s.detail)||" Uh oh something went wrong. Please refresh and try again.",(0,r.jsx)("div",{onClick:()=>{c("DISMISS_ERROR")},className:"cursor-pointer","data-testid":"entry_text_dismiss_error",id:"entry_text_dismiss_error",children:(0,r.jsx)(_.Z,{width:"12",height:"12"})})]})}},80586:function(e,a,t){"use strict";var r=t(85893),o=t(67294),s=t(11163),n=t(25675),i=t.n(n),d=t(73996),l=t(9102),c=t(51613),_=t.n(c);a.Z=e=>{let{text:a,setShowPopup:t,onGetFeedbackClick:n,onGenerate:c}=e,[m,h]=(0,o.useState)(""),{sendEvent:u}=(0,o.useContext)(d.qv),p=(0,s.useRouter)(),g=()=>{h(l.Ss[Math.floor(Math.random()*l.Ss.length)])};return(0,o.useEffect)(()=>{g()},[c]),(0,r.jsx)("div",{className:_().feedbackContainer,children:(0,r.jsx)("div",{className:_().feedbackTabs,children:(0,r.jsxs)("div",{className:_().feedbackTabItems,children:[(0,r.jsxs)("div",{className:_().feedbackTitleContainer,children:[(0,r.jsx)(i(),{src:"/images/feedback-icon.svg",alt:"aifilled",className:_().aiFilledIcon,width:24,height:24}),(0,r.jsx)("div",{className:_().feedbackTextContainer,children:(0,r.jsx)("span",{className:"".concat(_().feedbackText1," Medium14"),children:m})})]}),(0,r.jsxs)("div",{className:"".concat(_().feedbackItemContainer),children:[(0,r.jsx)("span",{onClick:()=>
1{if(u("user-feedback-click"),n){n();return}localStorage.setItem("mode","feedback"),localStorage.setItem("checkerText",a),t(!1),p.push("/plagiarism-checker")},className:"".concat(_().feedbackText2," Medium14"),children:"Get feedback"}),(0,r.jsx)("span",{onClick:()=>{u("user-feedback-cancel"),t(!1)},className:"".concat(_().closeIcon),children:(0,r.jsx)(i(),{src:"/images/close.svg",alt:"close",width:14,height:14})})]})]})})})}},55757:function(e,a,t){"use strict";var r=t(85893);a.Z=function(e){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",...e,children:(0,r.jsx)("path",{d:"M11 15h2v2h-2v-2zm0-8h2v6h-2V7zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})})}},51821:function(e,a,t){"use strict";t.d(a,{r:function(){return o}});var r=t(34155);let o=(void 0!==r&&r.env.NEXT_PUBLIC_PDFJS_WORKER_URL?r.env.NEXT_PUBLIC_PDFJS_WORKER_URL:"")||"/pdf.worker.min.mjs"},36639:function(e,a,t){"use strict";var r=t(85893),o=t(67294),s=t(25675),n=t.n(s),i=t(45007),d=t(84781);t(91708),t(74087),t(85516);var l=t(42870),c=t(30053),_=t(79965),m=t(45483),h=t(62631),u=t.n(h);let p=["popular","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],g=["human","elaborate","creative","academic","formal","simple","clear","cohesive","emphatic","clear","confident","thoughtful","smart","human"],x=e=>{let a,{options:t,value:s,onChange:d,toggle:h,setToggle:x,isComposer:y,data_testid:v,mediumSize:b,isChecker:f,isParaphrase:w,userStyle:T,setStylePopupOpen:k,handleCustomMode:P,isCitation:j=!1,placeholderText:S="Find a composition mode",isPremium:N,showPaymentModal:C,...E}=e,M=(0,o.useRef)(null),{authUser:R}=(0,i.v9)(e=>e.auth),[D,L]=(0,o.useState)(!1),[A,O]=(0,o.useState)(""),[B,I]=(0,o.useState)(!1),[F,H]=(0,o.useState)(""),[G,z]=(0,o.useState)(""),[U,W]=(0,o.useState)(!1),[Z,K]=(0,o.useState)(""),V=(0,i.I0)(),Y=(0,o.useCallback)(e=>{setTimeout(()=>{x(!h)},0),h?K(""):setTimeout(()=>{L(!0)},0)},[x,h]),q=e=>{var a;if(e.stopPropagation(),R&&0==Object.keys(R).length){z("Create an account to select your custom style."),W(!0);return}if((null===(a=Object.keys(R))||void 0===a?void 0:a.length)&&!(null==R?void 0:R.emailVerified))return V((0,_.Vv)(!0)),!1;k&&k(!0)},J=(e,a)=>{if(e.preventDefault(),e.stopPropagation(),!N){null==C||C();return}null==P||P(a),d(a),Y(e),O("")};(0,o.useEffect)(()=>{if(!h){document.querySelector("html").classList.remove("dropdown_modal");return}document.querySelector("html").classList.add("dropdown_modal");let e=e=>{M.current&&!M.current.contains(e.target)&&h&&D&&(L(!1),O(""),Y(e))};return window.addEventListener("click",e),()=>window.removeEventListener("click",e)},[Y,h,D]);let Q=(e,a)=>{if(a===m.XG.Mystyle&&!T){q(e);return}d(a),Y(e),O("")},X=(a=f||w||j?t.filter(e=>{let a=A.trim()?A.trim().toLowerCase():"";return e.text.toLowerCase().includes(a)}):t).map((e,a)=>{if(!((null==g?void 0:g.includes(e.value))&&!(null==R?void 0:R.isPremium)))return(0,r.jsx)("li",{className:"".concat(u().item," ").concat(e.value===s&&u().selectedItem," dark:border-gray border-b border_gray_lighter dark:text-gray-10"),"data-value":e.value,onClick:a=>Q(a,e.value),"data-testid":v+"drop_down_modes"+e.value,id:v+"drop_down_modes"+e.value,children:(0,r.jsxs)("div",{className:"flex items-center gap-2 ".concat(j?"w-full":"w-24"),children:[e.text," ",e.value===m.XG.Mystyle&&(0,r.jsx)("span",{className:"pencil-icon",onClick:e=>q(e),children:(0,r.jsx)(n(),{src:"/images/pencil-edit.svg",alt:"",width:24,height:24,style:{width:"auto",height:"auto"}})})]})},a)}),$=null==a?void 0:a.map((e,a)=>{if((null==g?void 0:g.includes(e.value))&&!(null==R?void 0:R.isPremium))return(0,r.jsx)("li",{className:"".concat(u().item," ").concat(u().premium," ").concat(e.value===s&&u().selectedItem," dark:border-gray border-b border_gray_lighter dark:text-gray-10"),"data-value":e.value,onClick:a=>Q(a,e.value),"data-testid":v+"drop_down_modes"+e.value,id:v+"drop_down_modes"+e.value,children:e.text},a)}),ee=()=>{let e=t.filter(e=>{let a=A.trim()?A.trim().toLowerCase():"";return e.text.toLowerCase().startsWith(a)});1===e.length&&Q(!1,e[0].value)},ea=()=>{let e=A.trim()?A.trim().toLowerCase():"",a=t.some(a=>a.text.toLowerCase()===e),o=t.filter(a=>a.text.toLowerCase().includes(e));return o.length||w||j?f?(0,r.jsx)("div",{className:"".concat(u().composerMain),children:(0,r.jsxs)("ul",{className:"".concat(u().simpleList," ").concat(f?u(
1).composerList:""),children:[(0,r.jsx)("li",{className:"".concat(u().listHolder," dark:bg-dark bg-white dark:text-gray-10 dark:arrow-bg-light dark:border-gray border_gray_lighter "),onClick:Y,"data-testid":v+"drop_down_close",id:v+"drop_down_close"}),o.map((e,a)=>(0,r.jsx)("li",{className:"".concat(u().item," ").concat(e.value===s&&u().selectedItem," dark:border-gray border-b border_gray_lighter dark:text-gray-10"),"data-value":e.value,onClick:a=>Q(a,e.value),"data-testid":v+"drop_down_modes"+e.value,id:v+"drop_down_modes"+e.value,children:(0,r.jsxs)("span",{className:"".concat(u().composerlistText),children:[" ",e.text]})},a))]})}):w?(0,r.jsxs)(r.Fragment,{children:[e&&!a&&(0,r.jsxs)("div",{onClick:e=>J(e,(null==A?void 0:A.trim())||""),className:"dark:text-gray-10 w-full ".concat(u().addCustomMode),children:["Add ",(0,r.jsx)("span",{className:"".concat(u().customModeLabel),children:A.trim()}),!(null==R?void 0:R.isPremium)&&(0,r.jsx)("span",{className:u().premiumBadge,children:"Premium"})]}),(null==o?void 0:o.length)>0&&(0,r.jsxs)("div",{className:"".concat(u().listInner," w-full"),children:[(0,r.jsxs)("aside",{className:"".concat(R.isPremium||y?"full-w":"overflow-y-auto"),children:[!R.isPremium&&(0,r.jsxs)("h4",{className:"dark:text-gray-10 ".concat(u().modetitle),children:[(0,r.jsx)("span",{children:"Free"})," ","Modes:"]}),(0,r.jsxs)("ul",{className:"w-full ".concat(u().simpleList," ").concat(R.isPremium?u().paraphraseModeList:""," ").concat(y?u().composerList:""),children:[(0,r.jsx)("li",{className:"".concat(u().listHolder," dark:bg-dark bg-white dark:text-gray-10 dark:arrow-bg-light dark:border-gray border_gray_lighter "),onClick:Y,"data-testid":v+"drop_down_close",id:v+"drop_down_close"}),X]})]}),!R.isPremium&&!y&&!f&&(0,r.jsxs)("aside",{className:u().premiumBlock,children:[(0,r.jsxs)("h5",{className:" dark:text-gray-10 ".concat(u().premiummodetitle),children:[(0,r.jsx)(n(),{src:"/images/premium-mode.svg",className:"img_normal",alt:"Premium Modes",width:24,height:24,style:{width:"auto",height:"auto"}}),"Premium Modes:"]}),(0,r.jsx)("div",{onClick:e=>Q(e,"academic"),className:"".concat(u().premium_li," ").concat(u().premiumBlock__btn),children:(0,r.jsx)("span",{className:" ".concat(u().premium_btn),children:"Get Premium"})}),(0,r.jsxs)("ul",{className:"".concat(u().premiummode),style:{columnCount:Math.ceil((null==g?void 0:g.length)/5)},children:[(0,r.jsx)("li",{className:"".concat(u().listHolder," ").concat(u().premiumModes," dark:bg-dark bg-white dark:text-gray-10 dark:arrow-bg-light dark:border-gray border_gray_lighter "),onClick:Y,"data-testid":v+"drop_down_close",id:v+"drop_down_close"}),$]})]})]})]}):j?(0,r.jsxs)(r.Fragment,{children:[e&&!a&&(0,r.jsxs)("div",{onClick:e=>J(e,(null==A?void 0:A.trim())||""),className:"dark:text-gray-10 w-full ".concat(u().addCustomMode),children:["Add ",(0,r.jsx)("span",{className:"".concat(u().customModeLabel),children:A.trim()}),!(null==R?void 0:R.isPremium)&&(0,r.jsx)("span",{className:u().premiumBadge,children:"Premium"})]}),p.map((e,a)=>{let t=o.filter(a=>a.sortKey===e);if(t.length)return(0,r.jsxs)("div",{className:"".concat(u().composerMain),children:[(0,r.jsx)("h4",{children:"popular"===e?"Popular styles :":e}),(0,r.jsxs)("ul",{className:"".concat(u().simpleList," ").concat(u().composerList),children:[(0,r.jsx)("li",{className:"".concat(u().listHolder," dark:bg-dark bg-white dark:text-gray-10 dark:arrow-bg-light dark:border-gray border_gray_lighter "),onClick:Y,"data-testid":v+"drop_down_close",id:v+"drop_down_close"}),t.map((e,a)=>(0,r.jsx)("li",{className:"".concat(u().item," ").concat(e.value===s&&u().selectedItem," dark:border-gray border-b border_gray_lighter dark:text-gray-10"),"data-value":e.value,onClick:a=>Q(a,e.value),"data-testid":v+"drop_down_modes"+e.value,id:v+"drop_down_modes"+e.value,children:(0,r.jsxs)("span",{className:"".concat(u().composerlistText),children:[" ",e.text]})},a))]})]},a)})]}):p.map((e,a)=>{let t=o.filter(a=>a.sortKey===e);if(t.length)return(0,r.jsxs)("div",{className:"".concat(u().composerMain),children:[(0,r.jsx)("h4",{children:"popular"===e?"Popular modes :":e}),(0,r.jsxs)("ul",{className:"".concat(u().simpleList," ").concat(y?u().composerList:""),children:[(0,r.jsx)("li",{className:"".concat(u().listHolder," dark:bg-dark bg-white dark:text-gray-10 dar
1k:arrow-bg-light dark:border-gray border_gray_lighter "),onClick:Y,"data-testid":v+"drop_down_close",id:v+"drop_down_close"}),t.map((e,a)=>(0,r.jsx)("li",{className:"".concat(u().item," ").concat(e.value===s&&u().selectedItem," dark:border-gray border-b border_gray_lighter dark:text-gray-10"),"data-value":e.value,onClick:a=>Q(a,e.value),"data-testid":v+"drop_down_modes"+e.value,id:v+"drop_down_modes"+e.value,children:(0,r.jsxs)("span",{className:"".concat(u().composerlistText),children:[" ",e.text]})},a))]})]},a)}):(0,r.jsx)("div",{className:"noda-language dark:text-gray-10 ".concat(u().nodata),children:"No Data found"})};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"".concat(u().dropdown," ").concat(b?u().isMedium:""," ").concat(y?u().composer_dropdown:""),children:[(0,r.jsx)("div",{className:"".concat(u().holder," ").concat(u().modeborder," ").concat(y&&u().composerWidth," ").concat(h?u().holderActive:""," dark:text-gray-10 dark:arrow-color dark:border-gray border border_gray_lighter "),onClick:Y,"data-testid":v+"dropdown_holder",id:v+"dropdown_holder",children:(0,r.jsxs)("span",{className:"".concat(y?"dropdownads":""," "),children:[!y&&(0,r.jsx)("span",{className:"".concat(u().modehide),children:"Mode: \xa0"}),(0,r.jsx)("span",{className:"dark:border-gray-10 border-b border-gray-light ",children:s})]})}),h&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{ref:M,className:"desktop-dropdown ".concat(u().list," ").concat(y?u().listComposer:""," dark:bg-dark bg-white"),children:y||f?(0,r.jsxs)(r.Fragment,{children:[y||f&&(0,r.jsx)("span",{className:"".concat(u().composerModeLabel),children:"Mode:"}),(0,r.jsxs)("div",{className:"".concat(u().searchBox),children:[(0,r.jsx)(n(),{src:"/images/search.svg",alt:"",width:24,height:24,style:{width:"auto",height:"auto"}}),(0,r.jsx)("input",{className:"dark:bg-dark dark:border-gray",type:"text",placeholder:S,value:A,onChange:e=>{O(e.target.value)},onKeyDown:e=>{if("Enter"===e.key){ee();return}}})]}),(0,r.jsxs)("div",{className:"".concat(u().composerListScroll),children:[" ",(0,r.jsxs)("div",{className:"".concat(u().composerList),children:[" ",ea()]})]})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"".concat(u().composerModeLabel),children:j?"Style:":"Modes:"}),(0,r.jsxs)("div",{className:"".concat(u().searchBox),children:[(0,r.jsx)(n(),{src:"/images/search.svg",alt:"",width:24,height:24,style:{width:"auto",height:"auto"}}),(0,r.jsx)("input",{className:"dark:bg-dark dark:border-gray",type:"text",placeholder:S,value:A,onChange:e=>{O(e.target.value)},onKeyDown:e=>{if("Enter"===e.key){ee();return}}})]}),(0,r.jsxs)("div",{className:"".concat(u().composerListScroll),children:[" ",(0,r.jsxs)("div",{className:"".concat(u().composerList),children:[" ",ea()]})]})]})})})]}),(0,r.jsx)(l.Z,{open:B,close:()=>I(!1),text:F,data_testid:"paraphrase-mystle"}),(0,r.jsx)(c.Z,{open:U,close:()=>W(!1),showSignUp:!0,text:G,data_testid:"paraphrase-mystle"})]})};x.Divider=d.Z.Divider,a.Z=x},45483:function(e,a,t){"use strict";t.d(a,{wb:function(){return l},XG:function(){return s}});var r,o,s,n,i=t(52736),d=t(6814);(r=s||(s={})).Standard="standard",r.Shorten="shorten",r.Summary="summary",r.Diplomatic="diplomatic",r.Expand="expand",r.Academic="academic",r.Creative="creative",r.Smooth="smooth",r.Formal="formal",r.Informal="informal",r.Grammar="grammar",r.Simple="simple",r.Clear="clear",r.Confident="confident",r.Elaborate="elaborate",r.Literary="literary",r.Smart="smart",r.Thoughtful="thoughtful",r.Cohesive="cohesive",r.Emphatic="emphatic",r.Human="human",r.Mystyle="My style",r.Article_Spinner="standard",r.Auto_Paraphrase="standard",r.Best_Paraphrasing_Tool="standard",r.Free_Paraphrasing="standard",r.Online_Paraphrase_Tool="standard",r.Online_Paraphrasing_Tool="standard",r.Paragraph_Tool="elaborate",r.Paragraphing_Tools="elaborate",r.Paraphrase_Free="standard",r.Paraphrase_Generator="standard",r.Paraphrase_It="standard",r.Paraphrase_Machine="standard",r.Paraphrase_Online_Free="standard",r.Paraphrase_Online_Tool="standard",r.Paraphrase_Online="standard",r.Paraphrase_Text="standard",r.Paraphrase_Tool_Free="standard",r.Paraphrase_Tool_Online="standard",r.Paraphrase_Tools="standard",r.Paraphrasing_Website="standard",r.Paraphrasing="standard",r.Paraphraser_Tool="standard",r.Paraphrasing_Tool_Free="standard",r.Paraphrasing_Tool_Online_Free="standard",r.Paraphrasing_Tool="standard",r.Paraphrasing_Tools="standard",r.Rephrase_Generator="standard",r.Rephrase_My_Paragraph="standard",r.Rephrase_Online="standard",r.Rephrase_Sentence_Generator="standard",r.Rephrase_Tool="standard",r.Rephrase_Tools="standard",r.Rephrase="standard",r.Rephraser="standard",r.Rephrasing_Tool="standard",r.Sentence_Paraphrase="standard",r.Word_Rephrase_Tool="standard",r.Paraphrase_Maker="standard",r.Paraphrasing_And_Summarizing_Tool="standard",r.Scholarly_Paraphrasing_Tool="academic",r.Summarizing_And_Paraphrasing_Tool="standard",r.Clarify_Tool="clear",r.Elaborating_Tool="elaborate",r.Essay_Paraphrasing_Tool="academic",r.Essay_Rephrase="academic",r.Essay_Rewriter="academic",r.Go_Paraphrase="standard",r.Paraphrase_App="standard",r.Paraphrase_My_Work="standard",r.Rephrase_App="standard",r.Rephrase_Sentence_Tool="standard",r.Rephrase_Sentences="standard",r.Rephraser_Free="standard",r.Reword_Generator="standard",r.Reword_Tool="standard",r.Rewording_Tool="standard",r.Sentence_Rephraser_Online="standard",r.Grammar_Paraphrase="grammar",r.Paragraph_Rephrase="standard",r.Phrase_Tool="standard",r.Rephrasing_App="standard",r.Grammar_Corrector="grammar",r.Grammar_Checker_Free="grammar",r.Grammar_Checker_Online="grammar",r.Online_Grammar_Checker="grammar",r.Sentence_Checker="grammar",r.Sentence_Corrector="grammar",r.Correct_Grammar_Check="grammar",r.Art
1icle_Summarizer="summary",r.Online_Summary_Generator="summary",r.Parahprase="standard",r.Paraphrase_Bot="standard",r.Rephrasing_Software="standard",r.Rewriter="standard",r.Summarising_Tool="summary",r.Summarization_Tool="summary",r.Summarize_Article="summary",r.Summarize_Tool="summary",r.Summarizer_Tool="summary",r.Summarizer="summary",r.Summarizing_Tool="summary",r.Summary_Generator="summary",r.Summary_Maker="summary",r.Summary_Tool="summary",r.Text_Summarizer="summary",r.Spell_Checker="grammar",r.Punctuation_Checker="grammar",r.Tool_For_Paraphrasing="standard",r.Grammar_Check="grammar",r.Sentence_Rewriter="standard",r.Paragraph_Rewriter="standard",r.Arabic_Paraphrasing_Tool="standard",r.Best_Paraphrasing_Tool_Tagalog="standard",r.Filipino_Paraphrase="standard",r.Filipino_Paraphraser="standard",r.Filipino_Paraphrasing_Tool="standard",r.Filipino_Rephraser="standard",r.Greek_Paraphrasing_Tool="standard",r.Omformulera_Text="standard",r.Parafrasa_Bahasa_Melayu="standard",r.Parafrase_Online="standard",r.Parafrase_Tool="standard",r.Parafrase="standard",r.Parafrasear_Online="standard",r.Parafrasear_Textos="standard",r.Parafrasear="standard",r.Parafrasing_Tool="standard",r.Paraphrase_Filipino="standard",r.Paraphrase_Bahasa_Melayu="standard",r.Paraphrase_In_Tagalog="standard",r.Paraphrase_Melayu="standard",r.Paraphrase_Tagalog_Tool="standard",r.Paraphrase_Tagalog="standard",r.Paraphrase_Tool_Tagalog="standard",r.Paraphrasieren_Tool="standard",r.Paraphrasing_Bahasa_Melayu="standard",r.Paraphrasing_Tagalog="standard",r.Paraphrasing_Tool_Arabic="standard",r.Paraphrasing_Tool_Chinese="standard",r.Paraphrasing_Tool_Croatian="standard",r.Paraphrasing_Tool_Deutsch="standard",r.Paraphrasing_Tool_Espanol="standard",r.Paraphrasing_Tool_Filipino="standard",r.Paraphrasing_Tool_Finnish="standard",r.Paraphrasing_Tool_Hindi="standard",r.Paraphrasing_Tool_In_Tagalog="standard",r.Paraphrasing_Tool_Japanese="standard",r.Paraphrasing_Tool_Malay="standard",r.Paraphrasing_Tool_Portuguese="standard",r.Paraphrasing_Tool_Tagalog_Free="standard",r.Paraphrasing_Tool_Tagalog="standard",r.Paraphrasing_Tool_Tagalog_To_English="standard",r.Paraphrasing_Tool_Tagalog_Version="standard",r.Paraphraze="standard",r.Reescribir_Textos="standard",r.Reescritor_De_Texto="standard",r.Rephrase_Bahasa_Melayu="standard",r.Rephrase_In_Malay="standard",r.Rephrase_Text_Russian="standard",r.Skriv_Om_Text="standard",r.Tagalog_Paraphrase_Tool="standard",r.Tagalog_Paraphrase="standard",r.Tagalog_Paraphraser="standard",r.Tagalog_Paraphrasing_Tool="standard",r.Tagalog_Paraphrasing="standard",r.Tagalog_Rephraser="standard",r.Paraphrasing_Tool_Armenian="standard",r.Paraphrasing_Tool_Czech="standard",r.Paraphrasing_Tool_Hebrew="standard",r.Paraphrasing_Tool_Hungarian="standard",r.Paraphrasing_Tool_Korean="standard",r.Paraphrasing_Tool_Thai="standard",r.Paraphrasing_Tool_Vietnamese="standard",r.Paraphrasing_Tool_Bengali="standard",r.Paraphrasing_Tool_Dutch="standard",r.Paraphrasing_Tool_Italian="standard",r.Paraphrasing_Tool_Norwegian="standard",r.Paraphrasing_Tool_Romanian="standard",r.Paraphrasing_Tool_Tamil="standard",r.Paraphrasing_Tool_Telugu="standard",r.Paraphrasing_Tool_Turkish="standard",r.Paraphrasing_Tool_Ukrainian="standard",r.Paraphrasing_Tool_Urdu="standard",r.Paraphrasing_Tool_English="standard",r.Omskrivning_Av_Text="standard",r.Paraphrase_Indonesia="standard",r.Summary_Generator_Tagalog="summary",r.Tulis_Ulang_Online_Gratis="standard",r.Tulis_Ulang="standard",r.Parafrase_Indonesia_Online="standard",r.Parafrase_Indonesia="standard",r.Parafrase_Online_Gratis="standard",r.Parafrase_Online_Indonesia="standard",r.Aplikasi_Parafrase_Indonesia="standard",r.Buod_Generator_Tagalog="summary",r.Elaborate_In_Tagalog="elaborate",r.Filipino_Buod_Generator="summary",r.Filipino_Language_Paraphrasing_Tool="standard",r.Malay_Summarizing_Tool="summary",r.Malay_To_Malay_Paraphrase="standard",r.Omformulering_Av_Text="standard",r.Pagina_Para_Parafrasear_Textos="standard",r.Parafrasa_Alat="standard",r.Parafrasear_Textos_Online="standard",r.Parafrasear_Un_Texto="standard",r.Paraphrase_Arabic_To_Arabic="standard",r.Paraphrase_Malay_To_Malay="standard",r.Paraphrase_Online_UK="standard",r.Paraphrasieren_Online="standard",r.Paraphrasing_In_Arabic="standard",r.Paraphrasing_Svenska="standard",r.Paraphrasing_Tool_Svenska="standard",r.Programa_Para_Parafrasear="standard",r.Reescribir_Automaticamente_El_Texto_Completo="standard",r.Reescriptor_De_Texto="standard",r.Rephrase_In_Tagalog="standard",r.Rephrase_Malay_Sentence="standard",r.Rephrase_Tool_For_Malay="standard",r.Summarizing_And_Paraphrasing_Tool_Tagalog="summary",r.Summarizing_Tool_Filipino="summary",r.Summary_Tool_Tagalog="summary",r.Summarizing_Tool_Indonesia="summary",r.Summarizing_Tool_Tagalog="summary",r.Tagalog_Summarizing_Tool="summary",r["ÏαÏαÏÏαÏη_κειμενοÏ
_δÏÏεαν"]="standard",r["ÏαÏαÏÏαÏη_κειμενοÏ
"]="standard",r["пеÑеÑÑазиÑоваÑÑ_ÑекÑÑ"]="standard",r["пеÑеÑÑазиÑоваÑÑ_онлайн"]="standard",r["пеÑеÑоÑмÑлиÑоваÑÑ_ÑекÑÑ_онлайн"]="standard",r["пеÑеÑÑазиÑоваÑÑ_пÑедложение"]="standard",r["пеÑеÑÑазиÑование_пÑедложений"]="standard",r.Paraphrasing_Tool_Cebuano="standard",r.Paraphrasing_Tool_Marathi="standard",r.Paraphrasing_Tool_Persian="standard",r.Paraphrasing_Tool_Punjabi="standard",r.Paraphrasing_Tool_Swahili="standard",r.English_Grammar_Check="grammar",r.Tagalog_To_English_Grammar_Corrector="grammar",r.Tagalog_Grammar_Checker="grammar",r.Filipino_Grammar_Checker="grammar",r.Paraphrasing_Tool_Afrikaans="standard",r.Paraphrasing_Tool_Albanian="standard",r.Paraphrasing_Tool_Amharic="standard",r.Paraphrasing_Tool_Azerbaijani="standard",r.Paraphrasing_Tool_Basque="standard",r.Paraphrasing_Tool_Belarusian="standard",r.Paraphrasing_Tool_Bosnian="standard",r.Paraphrasing_Tool_Catalan="standard",r.Paraphrasing_Tool_Corsican="standard",r.Paraphrasing_Tool_Danish="standard",r.Paraphrasing_Tool_Esperanto="standard",r.Paraphrasing_Tool_Estonian="standard",r.Paraphrasing_Tool_French="standard",r.Paraphrasing_Tool_Frisian="standard",r.Paraphrasing_Tool_Galician="standard",r.Paraphrasing_Tool_Georgian="standard",r.Paraphrasing_Tool_Gujarati="standard",r.Changeur_De_Phrase="standard",r.Hindi_Grammar_Checker="grammar",r.Malay_Paraphrasing_Tool="standard",r.Parafrase_Adalah="standard",r.Parafrase_Bahasa_Indonesia="standard",r.Parafrase_Online_Bahasa_Indonesia="standard",r.Parafraseo_Online="standard",r.Paraphrase_En_Ligne="standard",r.Paraphrase_Malay="standard",r.Paraphrase_Tieng_Viet="standard",r.Paraphrasing_In_Malay="standard",r.Paraphrasing_Tool_Bahasa_Melayu="standard",r.Reformulateur_De_Texte="standard",r.Reformulation_De_Phrase="standard",r.Reformuler_Une_Phrase="standard",r.Skriv_Om="standard",r.Web_Parafrase="standard",r.Cantonese_Grammar_Checker="grammar",r.Norwegian_Grammar_Checker="grammar",r.Icelandic_Grammar_Checker="grammar",r.Japanese_Grammar_Checker="grammar",r.Chinese_Grammar_Checker="grammar",r.Dutch_Grammar_Checker="grammar",r.Danish_Grammar_Checker="grammar",r.French_Grammar_Checker="grammar",r.German_Grammar_Checker="grammar",r.Polish_Summarizing_Tool="summary",r.Romanian_Summarizing_Tool="summary",r.Turkish_Summarizing_Tool="summary",r.Arabic_Summarizing_Tool="summary",r.Danish_Summarizing_Tool="summary",r.Espanol_Summarizing_Tool="summary",r.Greek_Summarizing_Tool="summary",r.Swedis
1h_Summarizing_Tool="summary",r.Summarize_Bahasa_Melayu="summary",r.Summary_Generator_Malay="summary",r.Tekst_Herschrijven="standard",r.Cong_Cu_Giai_Thich="standard",r.Outil_De_Paraphrase="standard",r.Parafraseringsverktoy="standard",r.Paragraf_Degistirici="standard",r.Perefraziruyesh_Instrument="standard",r.Rangkuman_Online="summary",r.Resumidor_De_Textos="summary",r.Resumir_Texto="summary",r.Riassunto_Online="summary",r.Text_Umschreiben="standard",r.Text_Zusammenfassung="summary",(o=n||(n={})).Standard="standard",o.Shorten="shorten",o.Expand="expand",o.Grammar="grammar",o.Summary="summary",o.Diplomatic="diplomatic",o.Academic="academic",o.Creative="creative",o.Smooth="smooth",o.Formal="formal",o.Informal="informal",o.Simple="simple",o.Clear="clear",o.Confident="confident",o.Elaborate="elaborate",o.Literary="literary",o.Smart="smart",o.Thoughtful="thoughtful",o.Emphatic="emphatic",o.Cohesive="cohesive";let l={Title:"REPHRASELY"==i.env.SKIN?d.QQ.Title:"Free Paraphrasing For All Languages",Description:"REPHRASELY"==i.env.SKIN?d.QQ.Description:"Paraphrase Tool with 15 FREE Modes for 100+ Languages - Rephrases Sentences, Rewords Paragraphs, Rewrites Essays, Checks Grammar and Eliminates Plagiarism",Keywords:"REPHRASELY"==i.env.SKIN?d.QQ.Keywords:"paraphrase, paraphrasing tool, definition of paraphrase, rephrase, reword, essay rewriter, sentence rewriter, rephrase tool, rewriter tool"}},895:function(e,a,t){"use strict";t.d(a,{d7:function(){return p},c0:function(){return x},aD:function(){return u}});var r,o=t(51821),s=t(78756),n=t.n(s),i=t(58828),d=t.n(i);async function l(e){return(await n()().use(d()).process(e)).toString()}var c=t(52736),_=t(6814),m=t(9102),h=t(34155);let u="REPHRASELY"==c.env.SKIN?_.oH.name:"Paraphrase Tool",p=async e=>{var a,r;let s=await Promise.all([t.e(4928),t.e(8764)]).then(t.bind(t,28541));s.GlobalWorkerOptions.workerSrc=o.r;let n=s.getDocument(URL.createObjectURL(e)),i=await n.promise,d=null==i?void 0:i.numPages,l=[];for(let e=1;e<=d;e++)l.push(null==i?void 0:null===(a=i.getPage(e))||void 0===a?void 0:a.then(e=>null==e?void 0:e.getTextContent()));let c=await Promise.all(l),_=[];for(let e=0;e<(null==c?void 0:c.length);e++){let a=null==c?void 0:null===(r=c[e].items.map(e=>null==e?void 0:e.str))||void 0===r?void 0:r.join(" ");_.push(a)}let m="";return _.forEach(e=>{m=m+"\n"+e}),m},g=(null===(r=h.env.SKIN)||void 0===r?void 0:r.trim())==="REPHRASELY"?c.env.endPoints.REPHRASELY.GUIDES:c.env.endPoints.PARAPHRASETOOL.GUIDES,x=async e=>{let a;let t={};try{let o=await fetch("".concat(c.env.apiUrls.firebaseApiUrl,"/").concat(g,"/").concat(e));if((null==o?void 0:o.status)!==200)return console.log("error while fetching guide details",null==o?void 0:o.status),null;a=await o.json();let s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1?arguments[1]:void 0,t={};return e.forEach(e=>{var r;t[e]=null==a?void 0:null===(r=a[e])||void 0===r?void 0:r.stringValue}),t}(m.P2,null==a?void 0:a.fields);for(let e of Object.keys(s)){var r;t[e]=await l(null!==(r=s[e])&&void 0!==r?r:"")}a={...a.fields,content:t}}catch(e){console.log("error while fetching guide details",e),a=null}return a}},86895:function(e,a,t){"use strict";t.d(a,{Kg:function(){return i},Rv:function(){return o},V8:function(){return d},fv:function(){return r},ge:function(){return n},pM:function(){return s}});let r=(e,a,t)=>{var r=RegExp("(^|\\s)"+a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+"(?!\\S)","gi");return null==e?void 0:e.replace(r,"$1"+t)},o=e=>{let a="",t=e.split("."),r=0,o=t.length-1;for(;r<2&&o>-1;)t[o].length>0?(a="".concat(t[o],".").concat(a),t[o].replaceAll("\n","").length>0&&r++):o!==t.length-1&&(a=".".concat(a)),o--;return e.charAt(e.length-1)!==a.charAt(a.length-1)?a.slice(0,-1):a},s=e=>RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e);"composeClickCount_".concat(new Date().getUTCDate(),"_").concat(new Date().getMonth()+1,"_").concat(new Date().getFullYear());let n=()=>{try{let e=localStorage.getItem("customModes");return e?JSON.parse(e):[]}catch(e){return console.error("Error handling custom modes:",e),[]}},i=()=>{try{let e=localStorage.getItem("customStyles");return e?JSON.parse(e):[]}catch(e){return console.error("Error handling custom styles:",e),[]}},d=e=>{var a;return null===(a=e.charAt(0))||void 0===a?void 0:a.toUpperCase()}},36059:function(e){e.exports={entryBlock:"citation_entryBlock__03sTM",entryWrap:"citation_entryWrap__i2EKc",entryTools:"citation_entryTools__xdL7w",entrytab:"citation_entrytab__ChWHb",entrylink:"citation_entrylink__LKmg1",tab_active:"citation_tab_active__fTYiy",entryCol:"citation_entryCol__rkZyG",entryHead:"citation_entryHead__wOaQ_",entryHeadOutput:"citation_entryHeadOutput__RjtHX",textAreaHeight:"citation_textAreaHeight__rFfqI",bottom:"citation_bottom___Xq2O",socialBlock:"citation_socialBlock__q_KqL",socialTitle:"citation_socialTitle__qahJ1",shareIcons:"citation_shareIcons__4i8ub",line_mobile:"citation_line_mobile__hhDcy",hide_desktop:"citation_hide_desktop__qhfUU",plagiarismHighlighhter:"citation_plagiarismHighlighhter__YF6hs",highlightedText:"citation_highlightedText__sSOZG",textAreaHeightauto:"citation_textAreaHeightauto__CYV5x",bottomBtn:"citation_bottomBtn__rMYvL",possible_plag_container:"citation_possible_plag_container__6KXjW",orangebtn:"citation_orangebtn__qqwPz",yellowbtn:"citation_yellowbtn__7tuE3",plag_score:"citation_plag_score__rYmYj",plag_score_container:"citation_plag_score_container__69_zL",langMobile:"citation_langMobile__DBCQ5",bottomBtnUpload:"citation_bottomBtnUpload__u9y0V",bottomBtnDownload:"citation_bottomBtnDownload__w7cyW",bottomButtonDownload:"citation_bottomButtonDownload__ly_Oy",bottomBtnUploadIcons:"citation_bottomBtnUploadIcons__F__uw",markdownContainer:"citation_markdownContainer__YsTCY",citationTitle:"citation_citationTitle__e4GYR",buttonDisable:"citation_buttonDisable__zp3nu",label_desk:"citation_label_desk__KCAZs",modeMobile:"citation_modeMobile__VuABt",text:"citation_text__LkNFt",bordrezero:"citation_bordrezero__8SxHt",entryToolsActive:"citation_entryToolsActive__hSLqv",entryMenu:"citation_entryMenu__RjRfu",active_tab:"citation_active_tab__Zm60T",left:"citation_left__RTji5",entryAlert:"citation_entryAlert__aMXfK",label_mobile:"citation_label_mobile__Zuj8P",hide_mobilebtn:"citation_hide_mobilebtn__r2a3a",textHideforMobile:"citation_textHideforMobile__6sPaG"}},80798:function(e){e.exports={modalBlock:"ModalWrapper_modalBlock__RpQoj",close_btn:"ModalWrapper_close_btn__6daYD",subtitle:"ModalWrapper_subtitle__bx9sn",footerInfo:"ModalWrapper_footerInfo__nuSJR",logoIcon:"ModalWrapper_logoIcon__Ncozp",actionButton:"ModalWrapper_actionButton__EpvW4"}},62544:function(e){e.exports={dropdown:"modeldropdown_dropdown__pedCB",holder:"modeldropdown_holder__boDUC",
1nodata:"modeldropdown_nodata___q2ow",holderActive:"modeldropdown_holderActive__J9RHU",list:"modeldropdown_list__xKmrL",composeParent:"modeldropdown_composeParent__izXsQ",listInner:"modeldropdown_listInner__wHFFX",listComposer:"modeldropdown_listComposer__M2zYt",listHolder:"modeldropdown_listHolder__U_zTn",item:"modeldropdown_item__xosy6",premium:"modeldropdown_premium__anry6",premium_btn:"modeldropdown_premium_btn__9NcZd",premium_li:"modeldropdown_premium_li__pf2bp",selectedItem:"modeldropdown_selectedItem__xb65D",premiummode:"modeldropdown_premiummode__7Luyp",simpleList:"modeldropdown_simpleList__2OuSe",composerListScroll:"modeldropdown_composerListScroll__pljzx",composerlistText:"modeldropdown_composerlistText__cVsED",modetitle:"modeldropdown_modetitle__rOFAw",premiummodetitle:"modeldropdown_premiummodetitle__GVAuh",composerList:"modeldropdown_composerList__Xqfoc",composerMain:"modeldropdown_composerMain__cQyJ1",seperateSections:"modeldropdown_seperateSections__AgYEs",premiumBlock:"modeldropdown_premiumBlock__0qhp3",premiumBlock__btn:"modeldropdown_premiumBlock__btn__S93i_",searchBox:"modeldropdown_searchBox__2Hxac",modeborder:"modeldropdown_modeborder__pNdV8",isMedium:"modeldropdown_isMedium__RomZ3",modehide:"modeldropdown_modehide__9yGl3",composerWidth:"modeldropdown_composerWidth__HQes2",composerModeLabel:"modeldropdown_composerModeLabel__DIDWu",nodataDropdown:"modeldropdown_nodataDropdown__hWZt_",modePlagCheck:"modeldropdown_modePlagCheck__EXBac",headerSticky:"modeldropdown_headerSticky__nj1u5",selectAddModeOptoinLabel:"modeldropdown_selectAddModeOptoinLabel__RQrZh",addCustomMode:"modeldropdown_addCustomMode__9gny7",customModeLabel:"modeldropdown_customModeLabel__s0WBZ",noSection:"modeldropdown_noSection__7tzwv",citation:"modeldropdown_citation__ssxTy"}},67287:function(e){e.exports={entryBlock:"TextEntry_entryBlock__m8SDj",entryWrap:"TextEntry_entryWrap__bodWu",entryTools:"TextEntry_entryTools__e3_Ja",entrytab:"TextEntry_entrytab__8_X6H",entrylink:"TextEntry_entrylink__MnSza",tab_active:"TextEntry_tab_active__EB5h3",entryCol:"TextEntry_entryCol__pN4JB",entryHead:"TextEntry_entryHead__mJuPJ",entryHeadRight:"TextEntry_entryHeadRight__8pPVB",textAreaHeight:"TextEntry_textAreaHeight__9s499",textAreaHeightOutput:"TextEntry_textAreaHeightOutput__Eg8z4",loader:"TextEntry_loader__lSwJj",bottom:"TextEntry_bottom__aT5M2",socialBlock:"TextEntry_socialBlock__iQ6G_",socialTitle:"TextEntry_socialTitle__1344A",shareIcons:"TextEntry_shareIcons__yklq0",line_mobile:"TextEntry_line_mobile__M_kv5",hide_desktop:"TextEntry_hide_desktop__1TRUj",label_lang:"TextEntry_label_lang__oF6Dx",label_desk:"TextEntry_label_desk__x2w1A",bottomBtnUpload:"TextEntry_bottomBtnUpload__HJQHY",textMobile:"TextEntry_textMobile__qBUsa",bottomBtnDownload:"TextEntry_bottomBtnDownload__QBPaV",buttonDisable:"TextEntry_buttonDisable__GQAN0",bottomStart:"TextEntry_bottomStart__DIUGq",sliderContainer:"TextEntry_sliderContainer__5LB88",bottomBtn:"TextEntry_bottomBtn__ZKVBp",text:"TextEntry_text__ERVR0",entryToolsActive:"TextEntry_entryToolsActive__7U4kB",entryMenu:"TextEntry_entryMenu__4P9aW",active_tab:"TextEntry_active_tab__KFvoR",left:"TextEntry_left__WCEGQ",entryAlert:"TextEntry_entryAlert__DTk_Q",label_mobile:"TextEntry_label_mobile__TOhHs",paraphraseLable:"TextEntry_paraphraseLable__ssl4M",variationSection:"TextEntry_variationSection__wlkAb",hide_mobilebtn:"TextEntry_hide_mobilebtn__Ntesq",textMobileDownload:"TextEntry_textMobileDownload__3bbOp",textHideforMobile:"TextEntry_textHideforMobile__cgbtR",textAreaHeightFocusedMain:"TextEntry_textAreaHeightFocusedMain__RFxT_",textAreaHeightFixed:"TextEntry_textAreaHeightFixed___0hAM",textAreaHeightNotFixed:"TextEntry_textAreaHeightNotFixed__NRTz9"}},51613:function(e){e.exports={feedbackContainer:"feedback_feedbackContainer__u7W__",feedbackTabs:"feedback_feedbackTabs__qwfhn",feedbackTabItems:"feedback_feedbackTabItems__cdUHE",feedbackItemContainer:"feedback_feedbackItemContainer___ffMQ",closeIcon:"feedback_closeIcon__oORwO",feedbackTitleContainer:"feedback_feedbackTitleContainer__wMzBq",aiFilledIcon:"feedback_aiFilledIcon__Aif9e",feedbackTextContainer:"feedback_feedbackTextContainer__iC8cE",feedbackText1:"feedback_feedbackText1__jnvf0",feedbackText2:"feedback_feedbackText2__rbLeq"}},62631:function(e){e.exports={dropdown:"Dropdown_dropdown__B6nVP",holder:"Dropdown_holder__lIQdF",nodata:"Dropdown_nodata__Far1b",holderActive:"Dropdown_holderActive__tPS6d",list:"Dropdown_list__AtojR",listInner:"Dropdown_listInner__40RHd",listComposer:"Dropdown_listComposer__HCOPF",listHolder:"Dropdown_listHolder__4Mguj",item:"Dropdown_item__9NsK_",premium:"Dropdown_premium__VjVoH",premium_btn:"Dropdown_premium_btn__wRlLG",premium_li:"Dropdown_premium_li__0T_rW",selectedItem:"Dropdown_selectedItem__PmFN_",premiummode:"Dropdown_premiummode__UKSrn",simpleList:"Dropdown_simpleList__ENwOq",composerListScroll:"Dropdown_composerListScroll__PP2ke",composerlistText:"Dropdown_composerlistText__mtP1Q",modetitle:"Dropdown_modetitle__NScfL",premiummodetitle:"Dropdown_premiummodetitle__jAES_",composerList:"Dropdown_composerList__9Yj9p",composerMain:"Dropdown_composerMain__PBH_g",premiumBlock:"Dropdown_premiumBlock__2fhaD",premiumBlock__btn:"Dropdown_premiumBlock__btn__EOl0e",searchBox:"Dropdown_searchBox__KjWli",modeborder:"Dropdown_modeborder__VWqzn",isMedium:"Dropdown_isMedium__DKgWK",modehide:"Dropdown_modehide__myo8E",composerWidth:"Dropdown_composerWidth__e2KB3",composerModeLabel:"Dropdown_composerModeLabel__DCoW4",nodataDropdown:"Dropdown_nodataDropdown__mLnJQ",modePlagCheck:"Dropdown_modePlagCheck__yKw_v",headerSticky:"Dropdown_headerSticky__s19YW",selectAddModeOptoinLabel:"Dropdown_selectAddModeOptoinLabel__L_PJf",addCustomMode:"Dropdown_addCustomMode__nyzEW",customModeLabel:"Dropdown_customModeLabel__5EheA",paraphraseModeList:"Dropdown_paraphraseModeList__MlxcT",citation:"Dropdown_citation__5GIOT",premiumBadge:"Dropdown_premiumBadge__5kqaS",premiumModes:"Dropdown_premiumModes__ShbYP"}}}]);
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.