1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[832157],{954273:function(e,t,r){r.d(t,{Bt:function(){return s},Mj:function(){return i},aC:function(){return o}});let i={en:"English",ru:"Ð ÑÑÑкий",ar:"Ø§ÙØ¹Ø±Ø¨ÙØ©",es:"Espa\xf1ol",de:"Deutsch",fr:"Fran\xe7ais",ja:"æ¥æ¬èª",it:"Italiano",vn:"Tiếng Viá»t",pt:"Portugu\xeas",nl:"Dutch",tr:"T\xfcrk\xe7e",zh:"ç®ä½ä¸æ",kr:"íêµì´",pl:"Polski"},s=["about-us","article","blog","advantages","convert","convert-meta","convert-detail","convert-format-meta","convert-format-detail","convert-format-text","converter-type","edit-image","edit-image-meta","file-format","file-format-detail","form-error","index","ocr","ocr-price","personal","pricing","pricing-faq","my-files","privacy-policy","register-form","reset-password","support","translation","recovery-password","screenshot","screenshot-detail","reviews-external","reviews-employees","file-conversion-api","file-conversion-api-detail","sustainability"],o=[{routes:["/"],namespacesRequired:["index","converter-type","file-conversion-api-detail"]},{routes:["/about-us"],namespacesRequired:["about-us"]},{routes:["/blog"],namespacesRequired:["blog"]},{routes:["/blog/[slug]"],namespacesRequired:["article"]},{routes:["/sustainability"],namespacesRequired:["sustainability"]},{routes:["/privacy-policy"],namespacesRequired:["privacy-policy"]},{routes:["/support"],namespacesRequired:["support","form-error"]},{routes:["/[imageEditor]","/[imageEditor]/[format]"],namespacesRequired:["edit-image","edit-image-meta"]},{routes:["/convert"],namespacesRequired:["file-format","convert-detail","convert"]},{routes:["/converter/[type]"],namespacesRequired:["converter-type","edit-image"]},{routes:["/file-format"],namespacesRequired:["file-format"]},{routes:["/file-format/[format]"],namespacesRequired:["file-format-detail"]},{routes:["/convert/[format]"],namespacesRequired:["advantages","convert-meta","convert-detail","file-format-detail","edit-image"]},{routes:["/personal","/personal/support","/personal/settings"],namespacesRequired:["personal","form-error","support"]},{routes:["/ocr","/ocr/[type]"],namespacesRequired:["ocr"]},{routes:["/ocr-pricing"],namespacesRequired:["ocr","ocr-price"]},{routes:["/pricing"],namespacesRequired:["pricing","pricing-faq","register-form","reviews-external","reviews-employees"]},{routes:["/my-files"],namespacesRequired:["my-files"]},{routes:["/register","/403"],namespacesRequired:["register-form"]},{routes:["/convert-format/[format]"],namespacesRequired:["convert-format-meta","convert-format-detail","convert-format-text","edit-image","file-format-detail"]},{routes:["/password"],namespacesRequired:["reset-password"]},{routes:["/changepass"],namespacesRequired:["recovery-password"]},{routes:["/website-screenshot"],namespacesRequired:["screenshot"]},{routes:["/website-screenshot/[type]"],namespacesRequired:["screenshot-detail","screenshot"]},{routes:["/file-conversion-api"],namespacesRequired:["file-conversion-api","register-form","file-conversion-api-detail","reviews-employees"]},{routes:["/file-conversion-api/[format]"],namespacesRequired:["file-conversion-api","file-conversion-api-detail","register-form"]}]},298273:function(e,t,r){var i=r(197431),s=r(411735),o=r(44785),a=r(930305),n=r(613638),c=r(741686),l=r(259392);let d={userId:"",email:"",name:"",plan:"Free",timeLeft:"",isFree:!0,updateUrl:"",cancelUrl:""};class u{get isFreeUser(){return this.data.isFree}get hasPlan(){return!this.getUserField("isFree")}constructor(){(0,i._)(this,"data",void 0),(0,i._)(this,"sessionId",void 0),(0,i._)(this,"authorized",!1),(0,i._)(this,"redirectRoute",void 0),(0,i._)(this,"currentBackRoute",(0,l.bR)()),(0,i._)(this,"isPlanFree",e=>"Free"===e||""===e),(0,i._)(this,"setRedirect",e=>{this.redirectRoute=e}),(0,i._)(this,"setData",e=>{this.data={userId:e.userId,email:e.email,name:e.name,plan:e.plan,timeLeft:e.timeLeft,isFree:this.isPlanFree(e.plan),updateUrl:e.updateUrl,cancelUrl:e.cancelUrl},this.authorized=!0}),(0,i._)(this,"setSessionId",e=>{this.sessionId=e}),(0,i._)(this,"getUserField",e=>this.data[e]),(0,i._)(this,"getProfile",async()=>
1{if(!this.authorized)try{let{data:e}=await c.b.get("/user/profile/");e.status?this.setData(e):this.clear()}catch(e){window.location.pathname.includes("/personal/")&&(window.location.href="/403")}}),(0,i._)(this,"authorize",async e=>{try{let t=await c.b.post("/authorize/",e);return t.data.status&&(this.setSessionId(t.data.php_session_id),await this.getProfile(),localStorage.setItem("currentFileList",JSON.stringify([]))),t.data}catch(e){return"Connection error"}}),(0,i._)(this,"logout",async()=>{try{await c.b.post("/user/logout/"),this.clear(),o.Z.remove("token"),localStorage.setItem("currentFileList",JSON.stringify([]))}catch(e){console.error(Error(e).message)}}),(0,i._)(this,"onGoogleAuthSuccess",async e=>{var t;let{data:r}=await c.b.get("/authorize/oauth/google/",{params:{code:e.code}}),{pathname:i}=null===(t=window)||void 0===t?void 0:t.location;r.status?(i.includes("file-conversion-api")?n.r.createAccountOnApiPage():n.r.signInWithGoogle(),this.setSessionId(r.php_session_id),await this.getProfile()):console.error("OAuth google fetch error:",Object.values(r.errors))}),(0,i._)(this,"onFacebookAuthSuccess",async e=>{var t;let{data:r}=await c.b.get("/authorize/oauth/facebook/",{headers:{Authorization:e.accessToken}}),{pathname:i}=null===(t=window)||void 0===t?void 0:t.location;r.status?(i.includes("file-conversion-api")?n.r.createAccountOnApiPage():n.r.signInWithFacebook(),this.setSessionId(r.php_session_id),await this.getProfile()):console.error("OAuth facebook fetch error:",Object.values(r.errors))}),(0,i._)(this,"clear",()=>{this.data=d,this.sessionId="",this.authorized=!1}),this.data=d,(0,a.ky)(this)}}(0,s.gn)([a.LO],u.prototype,"authorized",void 0),t.default=new u},613638:function(e,t,r){r.d(t,{r:function(){return i}});let i={sendEvent(e,t){let r={event:e,...t};(null==t?void 0:t.productId)&&(r.productId=t.productId),(null==t?void 0:t.fileType)&&(r.fileType=t.fileType),(null==t?void 0:t.formatFrom)&&(r.formatFrom=t.formatFrom),(null==t?void 0:t.formatTo)&&(r.formatTo=t.formatTo),(window.dataLayer||[]).push(r)},dispatchCustomEvent(e,t){var r,i,s,o,a,n;let c=null===(r=document)||void 0===r?void 0:r.querySelector("#converter");if(c){let r=new CustomEvent(e,{detail:{state:{formatFrom:(null==t?void 0:null===(i=t.state)||void 0===i?void 0:i.formatFrom)||"",formatTo:(null==t?void 0:null===(s=t.state)||void 0===s?void 0:s.formatTo)||"",fileType:(null==t?void 0:null===(o=t.state)||void 0===o?void 0:o.fileType)||[]},serverResponse:{status:(null==t?void 0:null===(a=t.serverResponse)||void 0===a?void 0:a.status)||"",errors:(null==t?void 0:null===(n=t.serverResponse)||void 0===n?void 0:n.errors)||[]}}});c.dispatchEvent(r)}},chooseFile(){this.sendEvent("Addfile_choose_file")},addMoreFiles(e){this.sendEvent("Addfile_file_add_more",{state:{fileType:e}})},dragFile(e){this.sendEvent("Addfile_file_drag",{state:{fileType:e}})},validateFile(){this.sendEvent("validation")},chooseFormatTo(e){this.sendEvent("format_click_to",{state:{formatTo:e}})},chooseFormatFrom(e){this.sendEvent("format_click_from",{state:{formatFrom:e}})},chooseAllFormatTo(e){this.sendEvent("format_click_all_to",{state:{formatTo:e}})},convertClick(e,t){this.sendEvent("convert",{state:{formatFrom:e,formatTo:t}})},downloadFile(){this.sendEvent("download")},downloadAllInZip(){this.sendEvent("download_all")},selectTariffPlan(){this.sendEvent("select_tariff")},sendOrderProcessed(e){this.sendEvent("order_processed",{state:{productId:e}})},signInWithGoogle(){this.sendEvent("authorization_google")},signInWithFacebook(){this.sendEvent("authorization_facebook")},sendSuccessRegistration(){this.sendEvent("registration_account_validation")},pushAds(){setTimeout(()=>{var e;let t=null===(e=document)||void 0===e?void 0:e.querySelectorAll("#ads-top > ins");if(!(null==t?void 0:t.length))return;let r=[...t].map((e,t)=>{let{offsetWidth:r,offsetHeight:i,parentElement:s,dataset:{adSlot:o,adFormat:a,fullWidthResponsive:n}}=e,c="adFormat: ".concat(a," / adFullWidthResponsive: ").concat(n),l="mainSize: ".concat(r,"x ").concat(i),d="clientSize: ".concat(s.clientWidth,"x ").concat(s.clientHeight),u="offsetSize: ".concat(s.offsetWidth,"x ").concat(s.offsetWidth);return{id:o,name:"Adsense ".concat(o),price:"0",brand:"Google Adsense",category:"".concat(l," / ").concat(d," / ").concat(u," / ").concat(c),position:t+1}});(window.dataLayer||[]).push({event:"ECC_view",ecommerce:{currencyCode:"USD",impressions:r}})})},clickDocApi(){this.sendEvent("doc_api_click")},copyApiKey(){this.sendEvent("api_key_copy")},selectApiPlan(){this.sendEvent("select_api_select")},createAccountOnApiPage(){this.sendEvent("registration_api_account")}}},731780:function(e,t,r){var i=r(197431),s=r(930305),o=r(954273),a=r(874782),n=r(47739);class c{constructor(){(0,i._)(this,"language",a.ZW),(0,i._)(this,"resources",a.pb),(0,i._)(this,"t",(e,t,r)=>{try{return n.Z.getLocale(t,r,this.resources[this.language][e])}catch(r){throw Error("undefined locale \xab".concat(t,"\xbb in \xab").concat(e,"\xbb namespace"))}}),(0,i._)(this,"changeLanguage",e=>{this.isValidLanguage(e)&&(this.language=e)}),(0,i._)(this,"initLocalizationResources",e=>{let{locale:t,ns:r}=e,i=Object.keys(r);
1this.validate(t,i),i.forEach(e=>this.setLocaleResource(t,e,r[e]))}),(0,i._)(this,"setLocaleResource",(e,t,r)=>{this.resources[e].hasOwnProperty(t)||(this.resources[e][t]=r)}),(0,i._)(this,"validate",(e,t)=>{if(!this.isValidNamespaces(t))throw Error("invalid namespaces");if(!this.isValidLanguage(e))throw Error("undefined language")}),(0,i._)(this,"isValidLanguage",e=>Object.keys(o.Mj).includes(e)),(0,i._)(this,"isValidNamespaces",e=>!(null==e?void 0:e.some(e=>!o.Bt.includes(e)))),(0,s.ky)(this)}}t.default=new c},47739:function(e,t,r){var i=r(197431);class s{constructor(){(0,i._)(this,"maxUpdates",150),(0,i._)(this,"checkVariableInString",e=>e&&"string"==typeof e&&(null==e?void 0:e.includes("{{"))&&(null==e?void 0:e.includes("}}"))),(0,i._)(this,"checkVariableInObjArray",e=>Array.isArray(e)&&e.every(e=>Object.keys(e).length>0)&&e.some(e=>Object.values(e).some(e=>this.checkVariableInString(e)))),(0,i._)(this,"replaceInString",(e,t)=>{let r=e,i=0;for(;this.checkVariableInString(r);){let e=r.indexOf("{{")+2,s=r.indexOf("}}"),o=r.substring(e,s);if(t.hasOwnProperty(o)&&(r=r.replace("{{".concat(o,"}}"),t[o])),(i+=1)>this.maxUpdates)throw Error("maximum update depth")}return r}),(0,i._)(this,"replaceInArray",(e,t)=>{let r=0,i=e.findIndex(e=>Object.values(e).some(e=>this.checkVariableInString(e)));for(;i>=0;){let s=e[i],o=Object.keys(s).find(e=>this.checkVariableInString(s[e])),a={...s,[o]:this.replaceInString(s[o],t)};if(e.splice(i,1,a),r+=1,i=e.findIndex(e=>Object.values(e).some(e=>this.checkVariableInString(e))),r>this.maxUpdates)throw Error("maximum update depth")}return e}),(0,i._)(this,"replaceVar",(e,t)=>(this.checkVariableInString(e)&&(e=this.replaceInString(e,t)),this.checkVariableInObjArray(e)&&this.replaceInArray(e,t),e)),(0,i._)(this,"resolve",(e,t)=>e.split(".").reduce((e,t)=>e?e[t]:null,t||void 0)),(0,i._)(this,"getLocale",(e,t,r)=>{let i=this.resolve(e,r);return this.replaceVar(i,t)})}}t.Z=new s},874782:function(e,t,r){r.d(t,{ZW:function(){return s},pb:function(){return a},zG:function(){return o}});var i=r(954273);let s="en",o="translation",a=Object.keys(i.Mj).reduce((e,t)=>(e[t]={},e),{})},741686:function(e,t,r){r.d(t,{b:function(){return l}});var i=r(259392),s=r(441974),o=r(166038),a=r(273360),n=r.n(a),c=r(420357);let l=n().create({withCredentials:!0,auth:{username:c.env.HTTP_AUTH_LOGIN||"",password:c.env.HTTP_AUTH_PASS||""},timeout:1e3});l.interceptors.request.use(e=>(e.baseURL=(0,i.bR)(),e),e=>Promise.reject(e)),(0,s.ZP)(l,{retries:2,retryDelay:e=>1e3*e,shouldResetTimeout:!0,retryCondition:e=>{var t;return!!(0,s.eE)(e)||"ECONNABORTED"===e.code&&(null===(t=e.message)||void 0===t?void 0:t.includes("timeout"))},onRetry:(e,t,r)=>{console.log("[axios-retry] retry attempt ".concat(e),t.code),2===e&&((0,o.Rg)(),r.baseURL=(0,i.bR)())}})},166038:function(e,t,r){r.d(t,{Rg:function(){return u},bw:function(){return d}});var i=r(112138);let s="useProxy",o=!1,a=()=>o,n=()=>{o=!0},c=()=>{if(i.s)return!1;try{return"1"===window.localStorage.getItem(s)}catch(e){return!1}},l=()=>{if(!i.s)try{window.localStorage.setItem(s,"1")}catch(e){}},d=()=>i.s?a():c(),u=()=>{i.s?n():l()}},259392:function(e,t,r){r.d(t,{Gl:function(){return c},KI:function(){return a},bR:function(){return n}});var i=r(166038),s=r(112138),o=r(420357);let a=()=>{let e=s.s||"true"!==o.env.LOCALHOST_PROXY?"".concat("https://back.onlineconvertfree.com"):"/local-proxy",t=s.s||"true"!==o.env.LOCALHOST_PROXY?"".concat("https://prod.back.proxy.onlineconvertfree.com"):"/fallback-proxy",r=(0,i.bw)();return"".concat(r&&t?t:e)},n=()=>"".concat(a(),"/api"),c=()=>a()},112138:function(e,t,r){r.d(t,{s:function(){return i}});let i=!1}}]);
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.