PageSourceSearch

https://www.online-convert.com/build-legacy/1997.6bf11f3b.js

js online-convert.com collected 2026-10-01 08:33:45 UTC 28,654 bytes, 4 lines download raw bytes

1"use strict";
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a8a4a12c-ee16-5293-9212-7f9abea5322b")}catch(e){}}();
3(globalThis.webpackChunksat_monorepo=globalThis.webpackChunksat_monorepo||[]).push([[1997],{93952(e,t,i){i.d(t,{B:()=>u});var s=i(3598),o=i(12747),n=i(49972),a=(i(82091),i(20548)),r=i(74692),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";var a=[];t?a.push({url:t}):r(".file-checkbox:checked").each(function(e){let t=r(this).val();a.push({url:t})}),(new o.C).postJson({url:n.d.getApiUrl("api/storage/url"),dataType:"json",data:a,xhrFields:{withCredentials:!0},cache:!1,maxRetries:3}).done(function(t){const s=e+"#su="+t.id+(i?"&pj="+i:"");window.open(s,"_blank")}).fail(function(e,t,i){s.q.log("url storage reconvert - fail - connection problem",{http_status:e.status,ajax_status:t,ajax_error:i})})},d=function(e){try{var t={content:"",placement:"top",trigger:"hover",template:'<div class="popover" role="tooltip"><div class="arrow"></div><div class="popover-body"></div></div>'};if(r(".tile-link").popover("hide").popover("disable").popover("dispose"),r(".popover").remove(),r.each(r(".tile-link"),function(){r(this).prop("title",r(this).data("original-title"))}),0===e)return t.content=window.qgResultConfig.translations.reconvertNoneSelected,void r(".reconvert-button-list .tile").addClass("tile-disabled").parent(".tile-link").popover(t);e>50&&(t.content=window.qgResultConfig.translations.reconvertTotalInputLimitReached,r(".reconvert-button-list .tile").addClass("tile-disabled").parent(".tile-link").popover(t)),e>1&&(t.content=window.qgResultConfig.translations.reconvertSingleFileLimit,r(".singleFile .tile").addClass("tile-disabled").parent(".tile-link").popover(t))}catch(e){s.q.log("reconvert fail exception",e)}},u={setup:function(e){const t=(0,a.gN)(e?.sat_links?.redo?.href?.link);t&&"createpdf"!==e?.sat?.operation||r(".convert-again-btn").addClass("hidden"),t?r(".convert-again-btn").on("click",function(t){t.preventDefault(),window.location.href=e.sat_links.redo.href.link+"#j="+e.sat.hierarchy.path[0].id}):s.q.log("_setupReconvert :: no reconvert link",JSON.stringify({operation:e?.sat?.operation?e?.sat?.operation:""})),r(".reconvert-input").on("click",function(t){if(t.preventDefault(),!(r(this).find(".tile-disabled").length>0)){l("/","",e.id)}});var i={};Array.isArray(e?.sat_links?.reconvert)&&e.sat_links.reconvert.length>0&&r.each(e.sat_links.reconvert,function(e,t){if(!(0,a.gN)(t.operation)||!(0,a.gN)(t?.href?.link))return;let s="reconvert"+t.operation;i[s]={url:t.href.link,singleFile:!t.multifile}}),r.each(i,function(t,i){i.singleFile&&r("#"+t).addClass("singleFile"),r(".reconvert-button-list").on("click","#"+t,function(t){if(t.preventDefault(),!(r(this).find(".tile-disabled").length>0)){var s=i.url;l(s,"",e.id)}}),r(".reconvert-button").on("click","#"+t,function(t){if(t.preventDefault(),!(r(this).find(".tile-disabled").length>0)){var s=i.url;l(s,"",e.id)}})}),d(e.output.length),r(document).on("click","#select-all-checkbox-top, #select-all-checkbox-bottom",function(){r("#file-select-all").click()}),r(document).on("click",".file-checkbox, #select-all-checkbox-top, #select-all-checkbox-bottom, #file-select-all",function(){r(".tile").removeClass("tile-disabled"),d(r(".file-checkbox:checked").length)})},redirectWithStorage:l}},60433(e,t,i){i.d(t,{$W:()=>r,Gf:()=>a,if:()=>n});var s=i(2119),o=i(3598);function n(e){const t=Array.from(e,e=>String.fromCodePoint(e)).join("");return btoa(t)}async function a(e){try{const t=await s.o.get(e,{},{responseType:"blob"}),i=await t.data;return i instanceof Blob?"undefined"==typeof FileReader?(o.q.log("base64 - encodeImageToBase64 - FileReader unavailable",e),null):new Promise(t=>{const s=new FileReader;s.onload=()=>{t(s.result.split(",")[1])},s.onerror=()=>{o.q.log("base64 - encodeImageToBase64 - could not read image",e),t(null)},s.readAsDataURL(i)}):(o.q.log("base64 - encodeImageToBase64 - response was not a Blob",e),null)}catch(e){return o.q.log("base64 - encodeImageToBase64 - error encoding image to base64",e),null}}function r(e,t){return`data:${t||"image/jpeg"};base64,${e}`}},27606(e,t,i){i.d(t,{S:()=>s});const s=209715200},18676(e,t,i){i.d(t,{Bz:()=>
3c,Fe:()=>b,GE:()=>d,I9:()=>a,Wn:()=>u,ah:()=>h,fR:()=>g,m5:()=>o,n8:()=>p,pB:()=>l,sZ:()=>r,sk:()=>s,y7:()=>n});const s="draft",o="zip",n="uploading",a="uploading-completed",r="processing",l="downloaded",d="completed",u="failed",c="incomplete",p="not_found",h="cancelled",g="unauthorized",b=[d,o,l,n,a]},47210(e,t,i){i.d(t,{FN:()=>o,N5:()=>a,bG:()=>n,tt:()=>s,z8:()=>r});const s="navigate",o="error",n="share",a="qr_share",r="open_feedback_modal"},78322(e,t,i){i.d(t,{l:()=>o});const s=(0,i(27380).A)(),o={$on(e,t){s.on(e,t)},$off(e,t){s.off(e,t)},$emit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s.emit(e,t)}}},84406(e,t,i){i.d(t,{Ft:()=>o,OG:()=>s,Qe:()=>r,WH:()=>l,Z6:()=>d,ug:()=>n,uv:()=>a});const s="job_start",o="job_complete",n="job_fail",a="job_init_success",r="job_cancel",l="job_delete_init",d="job_cancel_init"},10977(e,t,i){i.d(t,{Bn:()=>n,N9:()=>s,Ns:()=>a,Ps:()=>o,xh:()=>r});const s="unlock_pro",o="unlock_starter",n="unlock_ultimate",a="credits_needed",r="max_concurrent_conversion"},3856(e,t,i){i.d(t,{A:()=>a});var s=i(78322),o=i(10977),n=i(47210);const a=new class{constructor(){}handle(e){switch(e?.status){case 200:break;case 402:this._handlePremium(e);break;default:s.l.$emit(n.FN,{})}}_handlePremium(e){switch(e.data[0].ident){case"credits_consumed":s.l.$emit(o.Ns,{});break;case"concurrent_conversions":s.l.$emit(o.xh,{});break;default:s.l.$emit(o.N9,{})}}}},53051(e,t,i){i.d(t,{A:()=>l});var s=i(84166),o=i(3856),n=i(49972),a=i(3598),r=i(18676);const l=new class{constructor(){}async create(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=null;try{e.async=!0,i=await s.A.post(this._getUrl("api/jobs"),e,{withCredentials:!0}),!0===t&&await this._waitUntilReady(i.data),i=await this.get(i.data,!0)}catch(e){return e.response&&o.A.handle(e.response),null}return i}async delete(e){await s.A.post(this._getUrl(`api/jobs/${this._sanitizeId(e)}/delete`),{},{withCredentials:!0})}async setShareAccessScope(e,t){await s.A.post(this._getUrl(`api/jobs/${this._sanitizeId(e)}/share`),t,{withCredentials:!0})}async removeShareAccess(e,t){await s.A.post(this._getUrl(`api/jobs/${this._sanitizeId(e)}/share/remove-user/${this._sanitizeId(t)}`),{},{withCredentials:!0})}async addShareAccess(e,t){return s.A.post(this._getUrl(`api/jobs/${this._sanitizeId(e)}/share/add-user`),{email:t},{withCredentials:!0})}async getShareAccessScope(e){return s.A.get(this._getUrl(`api/jobs/${this._sanitizeId(e)}/share`),!0,{withCredentials:!0})}async uploadBase64(e,t){const i=`${this._validateServerUrl(e.server)}/upload-base64/${this._sanitizeId(e.id)}`;let o={headers:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"GET, POST, PATCH, PUT, DELETE, OPTIONS","Access-Control-Allow-Headers":"Origin, Content-Type, X-Auth-Token","Access-Control-Allow-Credentials":!0,"X-Oc-Token":e.token},withCredentials:!1};return(await s.A.post(i,t,o)).data}async start(e,t){let i;try{i=await s.A.post(this._getUrl(`api/jobs/${this._sanitizeId(e?.id)}/conversions`),t,{withCredentials:!0})}catch(e){return e.response&&o.A.handle(e.response),null}return i.data}async addInputs(e,t){let i;try{i=await s.A.post(this._getUrl(`api/jobs/${this._sanitizeId(e?.id)}/input`),t,{withCredentials:!0}),await this._waitForInputs(e,t)}catch(e){return e.response&&o.A.handle(e.response),null}return i.data}async get(e){let t,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return null;if(!0===i&&e?.sat?.id_job&&(e.id=e.sat.id_job),null===e.id||void 0===e.id||""===e.id)return a.q.log("result api - cannot fetch job without an id"),null;const n=!0===i?this._getUrl(`api/jobs/${this._sanitizeId(e.id)}`)+"?async=true":this._getUrl(`api/jobs/${this._sanitizeId(e.id)}`);try{t=await s.A.get(n,{withCredentials:!0})}catch(e){if(e.response){if(o.A.handle(e.response),404===e.response?.status)return 404;if(401===e.response?.status)return 401;if(402===e.response?.status)return 402;if(403===e.response?.status)return 403}return null}return t.data}_validateServerUrl(e){const t=new URL(e);if("https:"!==t.protocol)throw new Error("Only HTTPS server URLs are allowed");const i=n.d.getBaseDomain().replace(/^[^.]+\./,"");if(t.hostname!==i&&!t.hostname.endsWith(`.${i}`))throw new Error("Untrusted server URL");const s=t.pathname.replace(/\/$/,"");return`${t.protocol}//${t.host}${s}`}_sanitizeId(e){if(null==e||""===e)throw new Error("Invalid ID format");const t=String(e).replace(/[^a-zA-Z0-9_-]/g,"");if(t!==String(e))throw new Error("Invalid ID format");return t}_getUrl(e){return n.d.getApiUrl(e)}async _waitForInputs(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=this;return new Promise((o,n)=>{!async function e(i){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=await s.get(i);if(null!==a){if("object"!=typeof t||Array.isArray(t)){if(a.input.length===t.length)return void o()}else if(1===a.input.length)return void o();if(n>60)return i.state=r.Wn,void o();setTimeout(()=>{e(i,++n)},1e3)}else o()}(e,i)})}async _waitUntilReady(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=this;return new Promise((s,o)=>{!async function e(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=await i.get(t,!0);if(null!==n){if(n.status?.code!==r.Bz)return n.status?.code!==r.Bz?o>60?(t.state=r.Wn,void s()):void setTimeout(()=>{e(t,++o)},500):void setTimeout(()=>{e(t)},500);s()}else s()}(e,t)})}}},53699(e,t,i){i.d(t,{A:()=>n});var s=i(49972),o=i(15472);const n=new class{constructor(){}setDownloadCookie(e){const t=s.d.getBaseDomain();o.b4.setCookie("x-open",e,86400,"/",t)}}},73435(e,t,i){i.d(t,{A:()=>v});i(74423);var s=i(68886);class o{target="text-to-image";category="operation";options={width:1024,height:1024,style:"photorealistic",allow_multiple_outputs:!0,cfg_scale:7,num_inference_steps:20};constructor(){}}class n{conversion={};layout={sidebarLeftOpen:!1};constructor(){this.conversion=new o}}var a=i(18676);class r{submitted=!1;submittedFull=!1;rating=0;message="";loading=!1;constructor(){}}class l{small=[];preview=[];small_enabled=!0;constructor(){}}
3var d=i(53209);class u{id="";apiJob=null;base64_output_images=[];settings={};state=(()=>a.sk)();uploadTo="";zipJob=null;selectedOutputs=[];downloadedOutputs=[];feedback={};thumbnails={};createdAt=null;constructor(){this.id=(0,d.C)(),this.settings=new n,this.feedback=new r,this.thumbnails=new l}isStateCompleted(){return a.Fe.includes(this.state)}isRecentlyCompleted(){if(!this.isStateCompleted()||!this.createdAt)return!1;const e=new Date;return 36e5*e.getHours()+6e4*e.getMinutes()+1e3*e.getSeconds()+e.getMilliseconds()-this.createdAt<=3e4}}var c=i(84406),p=i(78322),h=i(53051),g=(i(60433),i(93952)),b=i(50111),m=i(20548),_=i(53699),f=(i(49972),i(18541));const v=new class{listener=!1;constructor(){}create(){this.store=(0,s.j)();const e=new u;return e.settings.prompt="",this.store.addJob(e),e.id}async delete(e){e.apiJob&&(b.A.send("result_job","delete",e),f.A.trackDeleteTaskClick(e),await h.A.delete(e.apiJob.id))}async getShareAccessScope(e){return e.apiJob?(await h.A.getShareAccessScope(e.apiJob.id)).data:null}async setShareAccessScope(e,t){e.apiJob&&(b.A.send("result_job","share_access",e),await h.A.setShareAccessScope(e.apiJob.id,{scope:t}))}async removeShareAccess(e,t){e.apiJob&&(b.A.send("result_job","remove_share_access",e),await h.A.removeShareAccess(e.apiJob.id,t))}async addShareAccess(e,t){if(e.apiJob)return b.A.send("result_job","add_share_access",e),h.A.addShareAccess(e.apiJob.id,t)}async initFromJobId(e,t){this.store=(0,s.j)();let i,o=this.store.getJobById(e);o.state=a.sZ;try{i=await h.A.get({id:t})}catch(t){return void(this.store.getJobById(e).state=a.n8)}if(403===i||401===i)return b.A.send("result_job","unauthorized",this.store.getJobById(e)),this.store.getJobById(e).state=a.fR,void p.l.$emit(a.fR,{});if(404===i)return this.store.getJobById(e).state=a.n8,void b.A.send("result_job","not_found",{apiJob:{id:t}});if(null!=i){if(o.apiJob=i,i.created_at){const e=new Date(i.created_at);o.createdAt=36e5*e.getHours()+6e4*e.getMinutes()+1e3*e.getSeconds()+e.getMilliseconds()}window.qgJob=i,p.l.$emit(c.uv,o),await this._waitUntilComplete(e,i)}else this.store.getJobById(e).state=a.Wn}async _waitUntilComplete(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.store=(0,s.j)();let o=await h.A.get(t);if(403===o||401===o)return b.A.send("result_job","unauthorized",this.store.getJobById(e)),this.store.getJobById(e).state=a.fR,void p.l.$emit(a.fR,{});if(404!==o)if(null!=o){if(window.qgJob=o,this.store.getJobById(e).apiJob=o,!this.store.getJobById(e).createdAt&&o?.created_at){const t=new Date(o.created_at);this.store.getJobById(e).createdAt=36e5*t.getHours()+6e4*t.getMinutes()+1e3*t.getSeconds()+t.getMilliseconds()}if(o?.status?.code===a.Wn)return b.A.send("result_job","failed",this.store.getJobById(e)),this.store.getJobById(e).state=a.Wn,p.l.$emit(c.ug,{}),f.A.trackLimitError(this.store.getJobById(e)),void f.A.trackTaskViewed(this.store.getJobById(e));if(o?.status?.code===a.ah)return b.A.send("result_job","cancelled",this.store.getJobById(e)),this.store.getJobById(e).state=a.ah,void p.l.$emit(c.ug,{});if(o?.status?.code===a.GE){b.A.send("result_job","complete",this.store.getJobById(e)),(0,m.gN)(o.sat?.download_password)&&_.A.setDownloadCookie(o.sat?.download_password);const t=this.store.getJobById(e);return t&&(t.state=t.apiJob?.status?.code),this._populateBase64Images(e),p.l.$emit(c.Ft,this.store.getJobById(e)),void f.A.trackTaskViewed(this.store.getJobById(e))}if(o?.status?.code===a.Bz)return i>60?(b.A.send("result_job","failed_incomplete",this.store.getJobById(e)),t.state=a.Wn,void(this.store.getJobById(e).state=a.Wn)):void setTimeout(()=>{this._waitUntilComplete(e,t,++i)},2e3);setTimeout(()=>{this._waitUntilComplete(e,t)},2e3)}else setTimeout(()=>{this._waitUntilComplete(e,t,++i)},2e3);else this.store.getJobById(e).state=a.n8}_populateBase64Images(e){}listen(){!0!==this.listener&&(this.listener=!0,p.l.$on(c.OG,e=>{this.start(e.id)}))}openOperation(e,t){this.store=(0,s.j)();const i=this.store.getJobById(e);if(!i?.apiJob?.sat_links?.reconvert)return;let o=i.apiJob.sat_links.reconvert.filter(e=>e.operation===t);o[0]?.href?.link&&i.apiJob.output?.[0]?.uri&&g.B.redirectWithStorage(o[0].href.link,i.apiJob.output[0].uri,i.apiJob?.id)}getExtensionFromOutput(e){let t=e.uri.lastIndexOf(".");return e.uri.substring(t+1)}getFilenameFromOutput(e){let t=e.uri.lastIndexOf("/");return e.uri.substring(t+1)}getInputByOutputSource(e,t){return t?.apiJob?.input?t.apiJob.input.filter(t=>t.id_api===e.source.input[0]||t.id===e.source.input[0]):[]}getInputByWarningSource(e,t){return t?.apiJob?.input?t.apiJob.input.filter(t=>t.id_api===e.id_source||t.id===e.id_source):[]}getErrorCodePerInput(e){const t=[],i=(e.apiJob?.info??[]).filter(e=>Array.isArray(e?.input_id));let s=[];
3try{s=this.getMissingInputs(e).filter(Boolean)}catch(e){s=[]}const o=e.apiJob?.warnings?.[0]?.code;return e.apiJob?.input?.forEach(e=>{const n=i.find(t=>t.input_id[0]===e.id);n&&n.error&&0!==n.error.length?t.push({file_name:e.filename,error_code:n.error.code}):void 0!==o&&s.includes(e)&&t.push({file_name:e.filename,error_code:o})}),t}getInputById(e,t){return t.apiJob.input.filter(t=>t.id_api===e||t.id===e)}getMissingInputs(e){let t=this.getMissingInputIds(e),i=[];return t.forEach(t=>{let s=this.getInputById(t,e);i.push(s[0])}),i}getMissingInputIds(e){const t=this.getInputIdsFromJob(e),i=this.getInputIdsFromOutputs(e);return t.filter(e=>!i.includes(e))}getInputIdsFromJob(e){let t=[];return e.apiJob.input.forEach(e=>{(0,m.gN)(e.id_api)?t.push(e.id_api):t.push(e.id)}),t}getInputIdsFromOutputs(e){let t=[];return e.apiJob.output.forEach(e=>{t=t.concat(e.source.input)}),t}isCompressJob(e){return!!e.apiJob.sat.operation.includes("compress")||"compress"===e.apiJob.sat.operation}getOutputCompressDiff(e,t){let i=this.getInputByOutputSource(e,t);return 0===i.length?{diff_size:0,diff_perc:0}:{diff_size:i[0].size-e.size,diff_perc:(100-100/i[0].size*e.size).toFixed(2)}}isResizeJob(e){return!!e.apiJob.sat.operation.includes("resize")||"resize"===e.apiJob.sat.operation}isComparePDFJob(e){return"compare-pdf"===e.apiJob?.conversion[0]?.target&&(!!e.apiJob?.sat?.operation?.includes("compare")||"compare"===e.apiJob?.sat?.operation)}isOutputSmaller(e,t){let i=this.getInputByOutputSource(e,t);return 0===i.length?null:e.size<i[0].size}}},96192(e,t,i){i.d(t,{A:()=>n});i(74423);var s=i(68886),o=i(50111);const n=new class{listener=!1;constructor(){}toggleOutput(e,t){o.A.send("result_action","select_toggle",e),this.store=(0,s.j)();let i=this.store.getJobById(e.id);if(i.selectedOutputs.includes(t.id)){let e=i.selectedOutputs.indexOf(t.id);return void i.selectedOutputs.splice(e,1)}i.selectedOutputs.push(t.id)}isOutputSelected(e,t){return this.store=(0,s.j)(),this.store.getJobById(e.id).selectedOutputs.includes(t.id)}selectAll(e){this.store=(0,s.j)();let t=this.store.getJobById(e.id);t?.apiJob&&(this.deselectAll(e),t.apiJob.output.forEach(e=>{t.selectedOutputs.push(e.id)}))}deselectAll(e){this.store=(0,s.j)();let t=this.store.getJobById(e.id);for(;t.selectedOutputs.length>0;)t.selectedOutputs.pop()}getSelected(e){if(this.store=(0,s.j)(),void 0===e)return[];return this.store.getJobById(e.id).selectedOutputs}getAllOutputs(e){this.store=(0,s.j)();let t=this.store.getJobById(e.id);return t?.apiJob?.output??[]}getSelectedOutputs(e){this.store=(0,s.j)();let t=this.store.getJobById(e.id);if(!t?.apiJob)return[];let i=this.getSelected(e),o=[];return t.apiJob.output.forEach(e=>{i.includes(e.id)&&o.push(e)}),o}getSelectedUrls(e){this.store=(0,s.j)();let t=this.getSelected(e),i=[];return t.forEach(t=>{let s=this.store.getOutputById(e.id,t);i.push({url:s.uri})}),i}}},7614(e,t,i){i.d(t,{A:()=>u});var s=i(63876),o=i(96192),n=i(50111),a=i(27606);const r=[{extension:"jpg"},{extension:"jpeg"},{extension:"png"},{extension:"pdf"},{extension:"odp"},{extension:"ods"},{extension:"odt"},{extension:"3g2"},{extension:"3gp"},{extension:"avi"},{extension:"flac"},{extension:"flv"},{extension:"mkv"},{extension:"mov"},{extension:"mp3"},{extension:"mp4"},{extension:"mpg"},{extension:"ogg"},{extension:"ogv"},{extension:"webm"},{extension:"wmv"},{extension:"azw"},{extension:"azw3"},{extension:"azw4"},{extension:"epub"},{extension:"fb2"},{extension:"lit"},{extension:"lrf"},{extension:"mobi"},{extension:"pdb"},{extension:"bmp"},{extension:"eps"},{extension:"exr"},{extension:"gif"},{extension:"ico"},{extension:"svg"},{extension:"tga"},{extension:"tif"},{extension:"tiff"},{extension:"webmp"},{extension:"webp"}],l=[{name:"Preview Text",path:"/no_job_id/no_output_id/txt",type:"preview_txt",extension:"txt"},{name:"Preview Image",path:"/no_job_id/no_output_id/image",type:"preview_image",extension:"jpg"},{name:"Preview Image",path:"/no_job_id/no_output_id/image",type:"preview_image",extension:"jpeg"},{name:"Preview Image",path:"/no_job_id/no_output_id/image",type:"preview_image",extension:"png"}],d=[{name:"Metadata",path:"/no_job_id/no_output_id/metadata",type:"metadata",category:"metadata",target:"json",operation:"",dismissable:!1},{name:"Analyze Image",path:"/no_job_id/no_output_id/analyze-image",type:"analyze_image",category:"operation",target:"analyze-image",operation:"",dismissable:!1},{name:"Compare Video",path:"/no_job_id/no_output_id/compare-video",type:"compare_video",category:"operation",target:"compare-video",operation:"",dismissable:!1},{name:"Compare Image",path:"/no_job_id/no_output_id/compare-image",type:"compare_image",category:"operation",target:"compare-image",operation:"",dismissable:!1},{name:"Validate PDFA",path:"/no_job_id/no_output_id/validate-pdfa",type:"validate_pdfa",category:"operation",target:"validate-pdfa",operation:"",dismissable:!1},{name:"Hash",path:"/no_job_id/no_output_id/hash",type:"hash",category:"hash",target:null,operation:"",dismissable:!1}];const u=new class{features=(()=>d)();previews=(()=>l)();previews_mini=(()=>r)();listener=!1;constructor(){}updatePath(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"no_output_id";return e=(e=e.replace("no_job_id",t)).replace("no_output_id",i)}getPreviewItemByExtenion(e){return this.previews.filter(t=>t.extension===e)}getPreviewMiniItemByExtenion(e){return this.previews_mini.filter(t=>t.extension===e)}getFeatureItemByJob(e){if(!e.apiJob||!e.apiJob.conversion||!e.apiJob.conversion[0])return[];let t=this.features.filter(t=>t.category===e.apiJob.conversion[0].category&&t.target===e.apiJob.conversion[0].target);return t.length>0?t:(t=this.features.filter(t=>t.operation===e.apiJob?.sat?.operation),t.length>0?t:(t=this.features.filter(t=>t.category===e.apiJob.conversion[0].category&&null===t.target),t.length>0?t:[]))}canPreview(e){return this.getPreviewItemByExtenion(e).length>0}canPreviewMini(e,t){return this.getPreviewMiniItemByExtenion(e).length>0&&t<a.S}hasFeature(e){return this.getFeatureItemByJob(e).length>0}canPreviewSelectedOne(e){let t=o.A.getSelectedOutputs(e);return 1===t.length&&this.canPreview(this.getExtensionFromOutput(t[0]))}openPreview(e,t){if(!1===this.canPreview(this.getExtensionFromOutput(t)))return;let i=this.getPreviewItemByExtenion(this.getExtensionFromOutput(t)),o=s.A.create();o.name=this.getFilenameFromOutput(t),o.path=this.updatePath(i[0].path,e.id,t.id),o.type=i[0].type,s.A.createTab(o),s.A.openTab(o)}openInitialFeature(e){let t=this.getFeatureItemByJob(e);n.A.send("result_action",`open_initial_feature_${t[0].type}`,e);let i=s.A.create();i.name="Processing",i.path=this.updatePath(t[0].path,e.id),i.type=t[0].type,i.dismissable=t[0].dismissable,s.A.createTab(i),s.A.openTab(i)}openInitialPreview(e){let t=this.getPreviewItemByExtenion(e.apiJob.conversion[0].target);n.A.send("result_action",`open_initial_preview_${t[0].type}`,e);let i=s.A.create();i.name="Processing",i.path=this.updatePath(t[0].path,e.id),i.type=t[0].type,s.A.createTab(i),s.A.openTab(i)}getFilenameFromOutput(e){let t=e.uri.lastIndexOf("/");return e.uri.substring(t+1)}getExtensionFromOutput(e){let t=e.uri.lastIndexOf(".");return e.uri.substring(t+1)}}},63876(e,t,i){i.d(t,{A:()=>d});i(74423);class s{path="/";name="This is a Tab";type="file_list";icon="far fa-image";dismissable=!0;constructor(){}}var o=i(78322),n=i(47210),a=i(68886),r=i(7614),l=i(50111);const d=new class{listener=!1;constructor(){}openTab(e){l.A.send("result_tab",`open_tab_${e.type}`),o.l.$emit(n.tt,e.path,{}),setTimeout(()=>{const e=document.querySelector("#files-bar-container .nav-item-file.active");e&&e.scrollIntoView({behavior:"smooth",block:"center"})},100)}createTab(e){this.store=(0,a.j)(),this.store.resultPage.openTabs.filter(t=>t.path===e.path).length>0||this.store.addTab(e)}getTabByPath(e){return this.store.resultPage.openTabs.filter(t=>t.path===e)}removeTab(e,t){this.store=(0,a.j)(),e.path===t&&this.openTab(this.store.resultPage.openTabs[0]),this.store.resultPage.openTabs=this.store.resultPage.openTabs.filter(t=>t.path!==e.path)}updateTab(e,t){let i=this.getTabByPath(e);i[0].path=t.path,i[0].name=t.name}updateOutputTabs(e){if(this.store=(0,a.j)(),!e?.apiJob?.output?.[0])return;
3this.store.resultPage.openTabs.forEach(t=>{t.path.includes("no_output_id")&&(t.path=t.path.replace("no_output_id",e.apiJob.output[0].id),t.name=r.A.getFilenameFromOutput(e.apiJob.output[0]))})}create(){return new s}}},59183(e,t,i){i.d(t,{A:()=>a});var s=i(18676),o=i(78322),n=i(84406);i(63876),i(73435),i(7614);const a={props:{},data:()=>({}),created:function(){let e=this;"no_output_id"===this.outputId&&o.l.$on(n.Ft,t=>{t?.apiJob?.output?.[0]&&e.$router.replace({params:{outputid:t.apiJob.output[0].id}})})},mounted:function(){},methods:{},computed:{id(){return this.$route?.params.uuid},outputId(){return this.$route?.params.outputid},currentJob(){return this.getJobById(this.id)},currentOutput(){return this.getOutputById(this.id,this.outputId)},loading(){return this.getJobById(this.id).state===s.sZ},complete(){return!0===this.getJobById(this.id).isStateCompleted()},downloadedOutputs(){return this.complete?this.getJobById(this.id).downloadedOutputs:[]},selectedOutputs(){return this.complete?this.getJobById(this.id).selectedOutputs:[]},isAllSelected(){if(!this.complete)return!1;const e=this.getJobById(this.id);return!!e?.apiJob?.output&&e.selectedOutputs.length===e.apiJob.output.length},isNoneSelected(){return!!this.complete&&0===this.getJobById(this.id).selectedOutputs.length}}}},94035(e,t,i){i.d(t,{A:()=>a});var s=i(68886),o=i(6314),n=i(38745);const a={props:{},data:()=>({}),created:function(){},mounted:function(){},methods:{},computed:{...(0,n.n2)(s.j,o.k),...(0,n.aH)(s.j,["resultPage","getJobById","getSettings","getOutputById","getOpenTabs","addTab"]),...(0,n.aH)(o.k,["user","getUser"])}}},68886(e,t,i){i.d(t,{j:()=>n});var s=i(38745),o=i(49347);const n=(0,s.nY)("resultPage",()=>{const e=(0,o.reactive)({jobs:[],openTabs:[],settings:{},tools:null,isMobile:!1,activeToolGroup:"all"});return{resultPage:e,getResultPage:function(){return e.jobs},addTab:function(t){e.openTabs.push(t)},getOpenTabs:function(){return e.openTabs},addJob:function(t){e.jobs.push(t)},getJobs:function(){return e.jobs},getJobById:function(t){return e.jobs.find(e=>e.id===t)},getOutputById:function(e,t){let i=this.getJobById(e);return i?.apiJob?i.apiJob.output.find(e=>e.id===t):null},getSettings:function(){return e.settings},updateSettings:function(t){e.settings=t}}})},50111(e,t,i){i.d(t,{A:()=>o});var s=i(49972);const o=new class{listener=!1;constructor(){}async send(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{apiJob:{id:"no_id",sat:{operation:"no_operation"}}},s=i.apiJob?.sat?.operation,o=i.apiJob?.id;this._beacon({message:e,job_id:o,action:t,operation:s})}async sendWithData(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{apiJob:{id:"no_id"}},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this._beacon({...s,message:e,job_id:i.apiJob.id,action:t})}_beacon(e){try{const t=s.d.getApiUrl("api/z"),i=JSON.stringify({data:e});if(navigator.sendBeacon){const e=new Blob([i],{type:"text/plain"});if(navigator.sendBeacon(t,e))return}fetch(t,{body:i,method:"POST",credentials:"include",keepalive:!0}).catch(()=>{})}catch(e){}}}},18541(e,t,i){i.d(t,{A:()=>n});i(74423);var s=i(39476);class o{static trackedLimits=(()=>new Map)();static trackTaskViewed(e){this.trackEventWithType("page_result_task_viewed",e)}static trackDownloadClick(e){const t=this.getFileExtension(e?.apiJob?.output?.[0]?.filename);this.trackEventWithType("page_result_download_click",e,{file_type:t})}static trackShareClick(e,t){this.trackEventWithType("page_result_share_click",e,t)}static trackRedoConvertClick(e){this.trackEventWithType("page_result_redo",e)}static trackFurtherConvertClick(e,t){this.trackEventWithType("page_result_further_convert",e,{next_tool:t})}static trackDeleteTaskClick(e){this.trackEventWithType("page_result_delete",e)}static trackFeedback(e,t){this.trackEventWithType("page_result_feedback",e,{rating:t})}static trackLimitError(e){if(!e?.id)return;const t={6020:"max_processing_time",premium_limit_reached:"premium_limit_reached"},i=Object.keys(t),o=e?.apiJob?.errors;o&&Array.isArray(o)&&o.forEach(o=>{const n=[o];
3o.details&&Array.isArray(o.details)&&o.details.forEach(e=>n.push(e)),n.forEach(o=>{const n=String(o.code);if(i.includes(n)){const i=t[n]||n,o=e.id;let a=this.trackedLimits.get(o);if(a||(a=new Set,this.trackedLimits.set(o,a)),!a.has(i)){a.add(i);const{operation:t,product:o}=this.getCustomDimensions(e);(0,s.sx)("task_limit_hit",{operation:t,product:o,limit_type:i},["limit"])}}})})}static trackEventWithType(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const s={...this.getCustomDimensions(t),category:"page_result"};this.sendToAnalytics(e,i,s)}static getCustomDimensions(e){const t=e?.apiJob?.sat||{},i=e?.apiJob?.sat_links||{},s=(t.product?.name||"unknown").toLowerCase().replace(/\s+/g,"_");return{operation:i.redo?.operation||"unknown",product:s}}static sendToAnalytics(e,t,i){const o={...i,...t};(0,s.sx)(e,o)}static getFileExtension(e){if(!e)return"unknown";const t=e.split(".");return t.length>1?t[t.length-1].toLowerCase():"unknown"}}const n=o}}]);
4//# debugId=a8a4a12c-ee16-5293-9212-7f9abea5322b

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.